@ckeditor/ckeditor5-ai 47.6.1 → 47.6.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 (324) hide show
  1. package/LICENSE.md +0 -4
  2. package/build/ai.js +2 -1
  3. package/dist/index.js +5 -5
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.js +1 -1
  13. package/dist/translations/be.umd.js +1 -1
  14. package/dist/translations/bg.js +1 -1
  15. package/dist/translations/bg.umd.js +1 -1
  16. package/dist/translations/bn.js +1 -1
  17. package/dist/translations/bn.umd.js +1 -1
  18. package/dist/translations/bs.js +1 -1
  19. package/dist/translations/bs.umd.js +1 -1
  20. package/dist/translations/ca.js +1 -1
  21. package/dist/translations/ca.umd.js +1 -1
  22. package/dist/translations/cs.js +1 -1
  23. package/dist/translations/cs.umd.js +1 -1
  24. package/dist/translations/da.js +1 -1
  25. package/dist/translations/da.umd.js +1 -1
  26. package/dist/translations/de-ch.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.js +1 -1
  39. package/dist/translations/eo.umd.js +1 -1
  40. package/dist/translations/es-co.js +1 -1
  41. package/dist/translations/es-co.umd.js +1 -1
  42. package/dist/translations/es.js +1 -1
  43. package/dist/translations/es.umd.js +1 -1
  44. package/dist/translations/et.js +1 -1
  45. package/dist/translations/et.umd.js +1 -1
  46. package/dist/translations/eu.js +1 -1
  47. package/dist/translations/eu.umd.js +1 -1
  48. package/dist/translations/fa.js +1 -1
  49. package/dist/translations/fa.umd.js +1 -1
  50. package/dist/translations/fi.js +1 -1
  51. package/dist/translations/fi.umd.js +1 -1
  52. package/dist/translations/fr.js +1 -1
  53. package/dist/translations/fr.umd.js +1 -1
  54. package/dist/translations/gl.js +1 -1
  55. package/dist/translations/gl.umd.js +1 -1
  56. package/dist/translations/gu.js +1 -1
  57. package/dist/translations/gu.umd.js +1 -1
  58. package/dist/translations/he.js +1 -1
  59. package/dist/translations/he.umd.js +1 -1
  60. package/dist/translations/hi.js +1 -1
  61. package/dist/translations/hi.umd.js +1 -1
  62. package/dist/translations/hr.js +1 -1
  63. package/dist/translations/hr.umd.js +1 -1
  64. package/dist/translations/hu.js +1 -1
  65. package/dist/translations/hu.umd.js +1 -1
  66. package/dist/translations/hy.js +1 -1
  67. package/dist/translations/hy.umd.js +1 -1
  68. package/dist/translations/id.js +1 -1
  69. package/dist/translations/id.umd.js +1 -1
  70. package/dist/translations/it.js +1 -1
  71. package/dist/translations/it.umd.js +1 -1
  72. package/dist/translations/ja.js +1 -1
  73. package/dist/translations/ja.umd.js +1 -1
  74. package/dist/translations/jv.js +1 -1
  75. package/dist/translations/jv.umd.js +1 -1
  76. package/dist/translations/kk.js +1 -1
  77. package/dist/translations/kk.umd.js +1 -1
  78. package/dist/translations/km.js +1 -1
  79. package/dist/translations/km.umd.js +1 -1
  80. package/dist/translations/kn.js +1 -1
  81. package/dist/translations/kn.umd.js +1 -1
  82. package/dist/translations/ko.js +1 -1
  83. package/dist/translations/ko.umd.js +1 -1
  84. package/dist/translations/ku.js +1 -1
  85. package/dist/translations/ku.umd.js +1 -1
  86. package/dist/translations/lt.js +1 -1
  87. package/dist/translations/lt.umd.js +1 -1
  88. package/dist/translations/lv.js +1 -1
  89. package/dist/translations/lv.umd.js +1 -1
  90. package/dist/translations/ms.js +1 -1
  91. package/dist/translations/ms.umd.js +1 -1
  92. package/dist/translations/nb.js +1 -1
  93. package/dist/translations/nb.umd.js +1 -1
  94. package/dist/translations/ne.js +1 -1
  95. package/dist/translations/ne.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/oc.js +1 -1
  101. package/dist/translations/oc.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/si.js +1 -1
  113. package/dist/translations/si.umd.js +1 -1
  114. package/dist/translations/sk.js +1 -1
  115. package/dist/translations/sk.umd.js +1 -1
  116. package/dist/translations/sl.js +1 -1
  117. package/dist/translations/sl.umd.js +1 -1
  118. package/dist/translations/sq.js +1 -1
  119. package/dist/translations/sq.umd.js +1 -1
  120. package/dist/translations/sr-latn.js +1 -1
  121. package/dist/translations/sr-latn.umd.js +1 -1
  122. package/dist/translations/sr.js +1 -1
  123. package/dist/translations/sr.umd.js +1 -1
  124. package/dist/translations/sv.js +1 -1
  125. package/dist/translations/sv.umd.js +1 -1
  126. package/dist/translations/th.js +1 -1
  127. package/dist/translations/th.umd.js +1 -1
  128. package/dist/translations/ti.js +1 -1
  129. package/dist/translations/ti.umd.js +1 -1
  130. package/dist/translations/tk.js +1 -1
  131. package/dist/translations/tk.umd.js +1 -1
  132. package/dist/translations/tr.js +1 -1
  133. package/dist/translations/tr.umd.js +1 -1
  134. package/dist/translations/tt.js +1 -1
  135. package/dist/translations/tt.umd.js +1 -1
  136. package/dist/translations/ug.js +1 -1
  137. package/dist/translations/ug.umd.js +1 -1
  138. package/dist/translations/uk.js +1 -1
  139. package/dist/translations/uk.umd.js +1 -1
  140. package/dist/translations/ur.js +1 -1
  141. package/dist/translations/ur.umd.js +1 -1
  142. package/dist/translations/uz.js +1 -1
  143. package/dist/translations/uz.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/lang/contexts.json +1 -0
  151. package/package.json +15 -16
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.d.ts +15 -156
  158. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  159. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  160. package/src/aiassistant/aiassistant.d.ts +2 -0
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatballoon.js +1 -1
  181. package/src/aichat/aichatcontroller.js +1 -1
  182. package/src/aichat/aichatui.js +1 -1
  183. package/src/aichat/model/aichatcontext.js +1 -1
  184. package/src/aichat/model/aichatconversation.js +1 -1
  185. package/src/aichat/model/aichatinteraction.js +1 -1
  186. package/src/aichat/ui/aichatballoonview.js +1 -1
  187. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  188. package/src/aichat/ui/aichatfeedview.js +1 -1
  189. package/src/aichat/ui/aichatheaderview.js +1 -1
  190. package/src/aichat/ui/aichatview.js +1 -1
  191. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  195. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  213. package/src/aichat/utils/eventnames.js +1 -1
  214. package/src/aichat/utils/promisequeue.js +1 -1
  215. package/src/aichathistory/aichathistory.js +1 -1
  216. package/src/aichathistory/aichathistorycontroller.js +1 -1
  217. package/src/aichathistory/aichathistoryui.js +1 -1
  218. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  219. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  221. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  223. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  224. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  225. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  226. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  227. package/src/aicore/aiconnector.js +1 -1
  228. package/src/aicore/aiediting.js +1 -1
  229. package/src/aicore/model/aicapabilities.js +1 -1
  230. package/src/aicore/model/aicontext.js +1 -1
  231. package/src/aicore/model/aiinteraction.js +1 -1
  232. package/src/aicore/model/aimodels.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  248. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  249. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  250. package/src/aicore/utils/common-translations.js +1 -1
  251. package/src/aicore/utils/createresizebutton.js +1 -1
  252. package/src/aicore/utils/documentposition.js +1 -1
  253. package/src/aicore/utils/documentrange.js +1 -1
  254. package/src/aicore/utils/eventnames.js +1 -1
  255. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  256. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  257. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  258. package/src/aicore/utils/htmlparser.js +1 -1
  259. package/src/aicore/utils/htmlstreamer.js +1 -1
  260. package/src/aicore/utils/scrollmanager.js +1 -1
  261. package/src/aieditorintegration/aieditorintegration.js +1 -1
  262. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  263. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  264. package/src/aiquickactions/aiquickactions.js +1 -1
  265. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  266. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  267. package/src/aiquickactions/aiquickactionsui.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  270. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  271. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  272. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  273. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  274. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  275. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  276. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  277. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  278. package/src/aireviewcore/aireviewcoreui.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  280. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  281. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  282. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  283. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  293. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  294. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  295. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  296. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  297. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  298. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  299. package/src/aireviewmode/aireviewmode.js +1 -1
  300. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  301. package/src/aireviewmode/aireviewmodeui.js +1 -1
  302. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  303. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  304. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  305. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  306. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  307. package/src/aitabs/aitabs.js +1 -1
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/aitranslate/aitranslate.js +1 -1
  313. package/src/aitranslate/aitranslatecontroller.js +1 -1
  314. package/src/aitranslate/aitranslateui.js +1 -1
  315. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  316. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  317. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  318. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  319. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  320. package/src/errors.js +1 -1
  321. package/src/errorsmap.js +1 -1
  322. package/src/index.js +1 -1
  323. package/build/966.ai.js +0 -5
  324. package/build/translations/en.js +0 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fc01e=_0x26eb;(function(_0x433b82,_0xd56dab){const _0x4faa2b=_0x26eb,_0x12c889=_0x433b82();while(!![]){try{const _0x56653e=parseInt(_0x4faa2b(0x191))/0x1*(-parseInt(_0x4faa2b(0xfc))/0x2)+parseInt(_0x4faa2b(0x18a))/0x3*(parseInt(_0x4faa2b(0x125))/0x4)+-parseInt(_0x4faa2b(0xf9))/0x5*(-parseInt(_0x4faa2b(0x119))/0x6)+-parseInt(_0x4faa2b(0x124))/0x7+-parseInt(_0x4faa2b(0x11e))/0x8+parseInt(_0x4faa2b(0x134))/0x9*(-parseInt(_0x4faa2b(0x133))/0xa)+-parseInt(_0x4faa2b(0x10b))/0xb*(-parseInt(_0x4faa2b(0x13d))/0xc);if(_0x56653e===_0xd56dab)break;else _0x12c889['push'](_0x12c889['shift']());}catch(_0x4898ca){_0x12c889['push'](_0x12c889['shift']());}}}(_0x2a5f,0x7c4c0));import{Plugin as _0x5df519}from'ckeditor5/src/core.js';import{IconMagicWand as _0x1ad2dd,IconRobotPencil as _0xbaecc0}from'ckeditor5/src/icons.js';import{first as _0x12aded,CKEditorError as _0x14b9a3}from'ckeditor5/src/utils.js';import{createDropdown as _0x50a37a,addMenuToDropdown as _0x4dd207,ButtonView as _0x5353b5,MenuBarMenuListItemButtonView as _0x595868,Dialog as _0x5f1d81,DialogViewPosition as _0x43747d,MenuBarMenuView as _0x5d9788,MenuBarMenuListView as _0x407472,MenuBarMenuListItemView as _0x59d9df}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x4e26c6,UNGROUPED_COMMANDS_GROUP_ID as _0x56201b}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x46c205}from'./aiassistantediting.js';function _0x26eb(_0x3b52e3,_0x29bde8){const _0x2a5f31=_0x2a5f();return _0x26eb=function(_0x26ebff,_0x59bcb1){_0x26ebff=_0x26ebff-0xed;let _0x406c46=_0x2a5f31[_0x26ebff];return _0x406c46;},_0x26eb(_0x3b52e3,_0x29bde8);}import{AIAdapter as _0x3d4ba1}from'./adapters/aiadapter.js';import{getTranslation as _0x2d1401}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x3b9a05}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x1f3843}from'./ui/aiassistantcontroller.js';function _0x2a5f(){const _0x3e8807=['trim','getRanges','\x20ck-ai-assistant-ui_theme','isCollapsed','splice','label','body','map','buttonView','285PjKWqu','ai.assistant.commands','evaluationLimit','8SBWSNg','requires','fire','replace','ck-ai-assistant-ui','menuPanelClass','commands','showFakeVisualSelection','text','values','aiLicenseKeyNotAllowed','AI\x20Assistant','change:enabledCommandsIds','change:value','REPLACE','121AsIPdH','pluginName','AIAssistantUI','document','showAIAssistant','getLimitElement','showUI','hideFakeVisualSelection','DataTransfer','contentArea','define','change','menuBar:aiAssistant','source','47622tampja','forEach','_forceMarkersCopy','aiLicenseKeyEvaluationLimit','featureNotAllowed','7898976iwhyhk','command:','includes','groupId','ai-commands-config-order-collision','order','763917ayFBMT','1880488rhbjTC','addMany','bind','<p>','schema','editing','AI\x20is\x20writing','aiLicenseKeyUsageLimit','insertContentBelow','aiLicenseKeyDomainLimit','getSelectedElement','replaceContent','requiresContent','_getResolvedCommandsDefinitions','9110eOEgkf','6309dpfjje','menuitemcheckbox','INSERT','items','listenTo','_getMenuBarGroupButtons','prompt','buttons','init','1773684aQVGDQ','add','ai.assistant.contentAreaCssClass','text/html','copy','expired','change:isError','from','isEnabled','menuView','aiLicenseKeyInvalid','_uiCssClasses','AIAssistant','once','focus','show','ck-ai-commands-dropdown\x20','media','reset','selection','insertContent','domainLimit','</p>','Generated\x20content:\x20%0','AI\x20Commands','menuBar:aiCommands','locale','panelView','Error\x20during\x20AI\x20content\x20generation:\x20%0','queryView','delegate','_formView','execute','fieldView','change:isProcessing','_initAriaAiStatusChangeAnnouncements','getData','enabledCommandsIds','promptView','_populateMenuBarMenu','isOn','custom','destroy','_showLicenseError','tableOfContents','get','config','length','update','rawHtml','announce','view','model','setSelection','set','_onExecute','sort','ai.assistant.disabledElements','licenseKey','isFlat','currentContext','polite','_createAIAssistantUIButton','render','aiLicenseKeyExpired','_commandDefinitions','wasMoved','isOfficialPlugin','componentFactory','hide','EDITOR_TOP_SIDE','updatePosition','aiCommands','groupLabel','_licenseKeyCheckInterval','_dialog','plugins','6rUKQCr','_aiAssistantController','usageLimit','editor','aiAssistant','aiLicenseKeyValid','textAdapter','193574BWQSvJ','comment','_initView','getSelectedBlocks','push','filter','children','invalid','_aiAdapter','hideUI','ai.assistant.useTheme','updateView','ck-ai-assistant-button\x20','isPremiumPlugin','errorView'];_0x2a5f=function(){return _0x3e8807;};return _0x2a5f();}import{AIFormView as _0x207d06}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0xbd38ce}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const lt=globalThis[_0x4fc01e(0x113)];import{ClipboardMarkersUtils as _0x4d7804}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x2cf6d8,ViewDataTransfer as _0x35d337}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x5df519{[_0x4fc01e(0x177)];[_0x4fc01e(0x187)];[_0x4fc01e(0x188)];[_0x4fc01e(0x15c)];[_0x4fc01e(0x199)];[_0x4fc01e(0x18b)];[_0x4fc01e(0x148)]='';static get[_0x4fc01e(0x10c)](){const _0xb974e=_0x4fc01e;return _0xb974e(0x10d);}static get[_0x4fc01e(0x180)](){return!0x0;}static get[_0x4fc01e(0xee)](){return!0x0;}static get[_0x4fc01e(0xfd)](){return[_0x4d7804,_0x46c205,_0x3d4ba1,_0x5f1d81];}constructor(_0xcdbcc5){const _0x230148=_0x4fc01e;super(_0xcdbcc5),_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x115)](_0x230148(0x176),[_0x230148(0x14e),_0x230148(0x16e),_0x230148(0x169)]),_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x115)](_0x230148(0x13f),''),_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x115)](_0x230148(0x19b),!0x0),this[_0x230148(0x148)]=_0x230148(0x100)+(_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x16a)](_0x230148(0x19b))?_0x230148(0xf2):'');}[_0x4fc01e(0x13c)](){const _0x38be9d=_0x4fc01e,{editor:_0x23a296}=this;this[_0x38be9d(0x199)]=_0x23a296[_0x38be9d(0x189)][_0x38be9d(0x16a)](_0x3d4ba1),this[_0x38be9d(0x188)]=_0x23a296[_0x38be9d(0x189)][_0x38be9d(0x16a)](_0x5f1d81),this[_0x38be9d(0x15c)]=null,this[_0x38be9d(0x17e)]=this[_0x38be9d(0x132)]();const _0x2325c=new _0x3b9a05(_0x23a296,Array[_0x38be9d(0x144)](this[_0x38be9d(0x17e)][_0x38be9d(0x105)]()));_0x23a296[_0x38be9d(0x102)][_0x38be9d(0x13e)](_0x38be9d(0x10f),_0x2325c),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x185),_0x21b153=>{const _0xeeda82=_0x38be9d,_0x2d0a5c=_0x50a37a(_0x21b153);return _0x2d0a5c[_0xeeda82(0x173)]({'class':_0xeeda82(0x14d)+this[_0xeeda82(0x148)]}),_0x2d0a5c[_0xeeda82(0xf8)][_0xeeda82(0x173)]({'label':_0x2d1401(_0x21b153,_0xeeda82(0x155)),'icon':_0x1ad2dd,'tooltip':!0x0}),_0x2d0a5c['on'](_0xeeda82(0x15d),_0xca95ca=>this[_0xeeda82(0x174)](_0xca95ca[_0xeeda82(0x118)]['id'])),_0x4dd207(_0x2d0a5c,_0x23a296['ui'][_0xeeda82(0x170)][_0xeeda82(0xf6)],function(_0x25937e){const _0x5f1541=_0xeeda82,_0x400645=_0x4e26c6(_0x25937e[_0x5f1541(0x16b)][_0x5f1541(0x16a)](_0x5f1541(0xfa)),_0x25937e[_0x5f1541(0x157)]),_0x34d341=gi(_0x25937e,_0x400645)[_0x5f1541(0x196)](_0x58fd6e=>_0x58fd6e[_0x5f1541(0x102)][_0x5f1541(0x16c)]);if(0x1===_0x34d341[_0x5f1541(0x16c)])return gi(_0x25937e,_0x34d341[0x0][_0x5f1541(0x102)])[_0x5f1541(0xf7)](_0x196af3=>({'id':_0x196af3['id'],'label':_0x196af3[_0x5f1541(0xf5)]}));return _0x34d341[_0x5f1541(0xf7)](_0x14952b=>{const _0x5eb4dd=_0x5f1541,{groupId:_0x52ce18,groupLabel:_0x3f5b53,commands:_0xa263c7}=_0x14952b,_0xdec991=gi(_0x25937e,_0xa263c7)[_0x5eb4dd(0xf7)](_0x59b985=>({'id':_0x59b985['id'],'label':_0x59b985[_0x5eb4dd(0xf5)]}));return{'id':_0x52ce18,'menu':_0x3f5b53||_0x52ce18,'children':_0xdec991};});}(_0x23a296),{'ariaLabel':_0x2d1401(_0x21b153,_0xeeda82(0x155))}),_0x2d0a5c[_0xeeda82(0x146)][_0xeeda82(0x101)]=_0xeeda82(0x14d)+this[_0xeeda82(0x148)],_0x2325c['on'](_0xeeda82(0x108),_0x3f581e),_0x2d0a5c[_0xeeda82(0x146)][_0xeeda82(0x14a)](_0xeeda82(0x17c),_0x3f581e),_0x2d0a5c;function _0x3f581e(){const _0x13629f=_0xeeda82;_0x2d0a5c[_0x13629f(0x145)]=_0x2325c[_0x13629f(0x162)][_0x13629f(0x16c)]>0x0;for(const _0x2d3936 of _0x2d0a5c[_0x13629f(0x146)][_0x13629f(0x13b)])_0x2d3936[_0x13629f(0x145)]=_0x2325c[_0x13629f(0x162)][_0x13629f(0x120)](_0x2d3936['id']);}}),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x156),_0x5eadc3=>{const _0x111dd6=_0x38be9d,_0x1955d2=new _0x5d9788(_0x5eadc3);_0x1955d2[_0x111dd6(0xf8)][_0x111dd6(0x173)]({'label':_0x2d1401(_0x5eadc3,_0x111dd6(0x155)),'icon':_0x1ad2dd}),_0x1955d2[_0x111dd6(0x127)](_0x111dd6(0x145))['to'](_0x2325c,_0x111dd6(0x162),_0x1d3ae6=>_0x1d3ae6[_0x111dd6(0x16c)]>0x0);const _0x53708b=_0x4e26c6(_0x23a296[_0x111dd6(0x16b)][_0x111dd6(0x16a)](_0x111dd6(0xfa)),_0x5eadc3);return this[_0x111dd6(0x164)](_0x2325c,_0x1955d2,_0x53708b,_0x5eb614=>this[_0x111dd6(0x174)](_0x5eb614)),_0x1955d2;}),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x18e),()=>{const _0x2d444d=_0x38be9d,_0x1f312d=this[_0x2d444d(0x17b)](_0x5353b5);return _0x1f312d[_0x2d444d(0x173)]({'tooltip':!0x0,'class':_0x2d444d(0xed)+this[_0x2d444d(0x148)]}),_0x1f312d;}),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x117),()=>{const _0x11e1fb=_0x38be9d,_0x8a94a1=this[_0x11e1fb(0x17b)](_0x595868);return _0x8a94a1[_0x11e1fb(0x173)]({'role':_0x11e1fb(0x135)}),_0x8a94a1;}),this[_0x38be9d(0x177)]=this[_0x38be9d(0x18d)][_0x38be9d(0x16b)][_0x38be9d(0x16a)](_0x38be9d(0x177));const _0x7f1176=this[_0x38be9d(0x18d)];this[_0x38be9d(0x187)]=setInterval(()=>{const _0x1ff2ee=_0x38be9d;let _0x5a302e;for(const _0x482457 in _0x7f1176){const _0x46c487=_0x482457,_0x248d52=_0x7f1176[_0x46c487];if(_0x1ff2ee(0x18f)==_0x248d52||_0x1ff2ee(0x147)==_0x248d52||_0x1ff2ee(0x17d)==_0x248d52||_0x1ff2ee(0x12e)==_0x248d52||_0x1ff2ee(0x106)==_0x248d52||_0x1ff2ee(0x11c)==_0x248d52||_0x1ff2ee(0x12c)==_0x248d52){delete _0x7f1176[_0x46c487],_0x5a302e=_0x248d52,clearInterval(this[_0x1ff2ee(0x187)]),this[_0x1ff2ee(0x187)]=void 0x0;break;}}_0x1ff2ee(0x147)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x198)),_0x1ff2ee(0x17d)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x142)),_0x1ff2ee(0x12e)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x152)),_0x1ff2ee(0x106)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x11d),_0x1ff2ee(0x149)),_0x1ff2ee(0x11c)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0xfb)),_0x1ff2ee(0x12c)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x18c));},0x3e8);}[_0x4fc01e(0x167)](){const _0x5c52b2=_0x4fc01e;super[_0x5c52b2(0x167)](),this[_0x5c52b2(0x187)]&&clearInterval(this[_0x5c52b2(0x187)]);}[_0x4fc01e(0x111)](_0x1474cf='',_0x296c7e='',_0x1f969a=_0x4fc01e(0x166)){const _0x2038c5=_0x4fc01e,_0x4d3eae=this[_0x2038c5(0x18d)],_0x4566d9=_0x4d3eae[_0x2038c5(0x12a)][_0x2038c5(0x170)],_0x1d7739=_0x4d3eae[_0x2038c5(0x189)][_0x2038c5(0x16a)](_0x46c205),_0x330740=_0x4d3eae[_0x2038c5(0x189)][_0x2038c5(0x16a)](_0x4d7804);_0x1d7739[_0x2038c5(0x103)]();const _0x2ad558=new lt(),_0x1c8890=new ClipboardEvent(_0x2038c5(0x141),{'clipboardData':_0x2ad558}),_0x57a358=new _0x35d337(_0x2ad558),_0x4bf552=new _0x2cf6d8(_0x4566d9,_0x1c8890,{'dataTransfer':_0x57a358});_0x330740[_0x2038c5(0x11b)](_0x2038c5(0x192),()=>{const _0x1ff55d=_0x2038c5;_0x4566d9[_0x1ff55d(0x10e)][_0x1ff55d(0xfe)](_0x1ff55d(0x141),_0x4bf552);}),this[_0x2038c5(0x15c)]||(this[_0x2038c5(0x193)](),this[_0x2038c5(0x18b)]=new _0x1f3843(_0x4d3eae,this[_0x2038c5(0x199)][_0x2038c5(0x190)],this[_0x2038c5(0x15c)]));let _0x125f3b=_0x57a358[_0x2038c5(0x161)](_0x2038c5(0x140));const _0x32ec42=_0x4d3eae[_0x2038c5(0x171)][_0x2038c5(0x10e)][_0x2038c5(0x150)],_0x3a8d7a=Array[_0x2038c5(0x144)](_0x32ec42[_0x2038c5(0xf1)]());0x1===_0x3a8d7a[_0x2038c5(0x16c)]&&_0x3a8d7a[0x0][_0x2038c5(0x178)]&&!_0x32ec42[_0x2038c5(0x12f)]()&&''!==_0x125f3b[_0x2038c5(0xff)](/&nbsp;/g,'')[_0x2038c5(0xf0)]()&&(_0x125f3b=_0x2038c5(0x128)+_0x125f3b+_0x2038c5(0x153)),this[_0x2038c5(0x18b)][_0x2038c5(0x19c)]({'actionId':_0x1f969a,'query':_0x1474cf,'htmlContent':_0x125f3b,'label':_0x296c7e,'mainActionLabel':_0xbd38ce[_0x4d3eae[_0x2038c5(0x171)][_0x2038c5(0x10e)][_0x2038c5(0x150)][_0x2038c5(0xf3)]?_0x2038c5(0x136):_0x2038c5(0x10a)]}),_0x2038c5(0x18e)!==this[_0x2038c5(0x188)]['id']?this[_0x2038c5(0x188)][_0x2038c5(0x14c)]({'id':_0x2038c5(0x18e),'icon':_0xbaecc0,'title':_0x2d1401(this[_0x2038c5(0x18d)][_0x2038c5(0x157)],_0x2038c5(0x107)),'content':this[_0x2038c5(0x15c)],'position':_0x43747d[_0x2038c5(0x183)],'onShow':()=>{const _0x3373e6=_0x2038c5;this[_0x3373e6(0x15c)][_0x3373e6(0x14b)]();},'onHide':()=>{const _0x265741=_0x2038c5;this[_0x265741(0x18b)][_0x265741(0x14f)](),_0x1d7739[_0x265741(0x112)]();}}):this[_0x2038c5(0x188)][_0x2038c5(0x170)][_0x2038c5(0x17f)]||this[_0x2038c5(0x188)][_0x2038c5(0x170)][_0x2038c5(0x184)]();}[_0x4fc01e(0x19a)](){const _0x2b415e=_0x4fc01e;this[_0x2b415e(0x188)][_0x2b415e(0x182)]();}[_0x4fc01e(0x132)](){const _0x4b9395=_0x4fc01e,_0x16e350=new Map(),_0x2a95a4=_0x4e26c6(this[_0x4b9395(0x18d)][_0x4b9395(0x16b)][_0x4b9395(0x16a)](_0x4b9395(0xfa)),this[_0x4b9395(0x18d)][_0x4b9395(0x157)]);for(const _0x51efb0 of _0x2a95a4)for(const _0x1e5459 of _0x51efb0[_0x4b9395(0x102)])_0x16e350[_0x4b9395(0x173)](_0x1e5459['id'],{..._0x1e5459,'groupId':_0x51efb0[_0x4b9395(0x121)],'groupLabel':_0x51efb0[_0x4b9395(0x186)]||_0x51efb0[_0x4b9395(0x121)]});return _0x16e350;}[_0x4fc01e(0x17b)](_0x446543){const _0x5d5f90=_0x4fc01e,_0x1595ee=this[_0x5d5f90(0x18d)],_0x45b2ba=_0x1595ee[_0x5d5f90(0x102)][_0x5d5f90(0x16a)](_0x5d5f90(0x10f)),_0x40420e=new _0x446543(_0x1595ee[_0x5d5f90(0x157)]);return _0x40420e[_0x5d5f90(0x173)]({'label':_0x2d1401(_0x1595ee[_0x5d5f90(0x157)],_0x5d5f90(0x107)),'icon':_0xbaecc0,'isToggleable':!0x0}),_0x40420e[_0x5d5f90(0x127)](_0x5d5f90(0x145))['to'](_0x45b2ba),_0x40420e[_0x5d5f90(0x127)](_0x5d5f90(0x165))['to'](this[_0x5d5f90(0x188)],'id',_0x3545c4=>_0x5d5f90(0x18e)===_0x3545c4),this[_0x5d5f90(0x138)](_0x40420e,_0x5d5f90(0x15d),()=>{const _0x2827e0=_0x5d5f90;_0x40420e[_0x2827e0(0x165)]?this[_0x2827e0(0x19a)]():_0x45b2ba[_0x2827e0(0x15d)]();}),_0x40420e;}[_0x4fc01e(0x193)](){const _0x3394a8=_0x4fc01e,_0x2a9351=this[_0x3394a8(0x18d)][_0x3394a8(0x189)][_0x3394a8(0x16a)](_0x46c205);this[_0x3394a8(0x15c)]=new _0x207d06(this[_0x3394a8(0x18d)][_0x3394a8(0x157)],this[_0x3394a8(0x148)],this[_0x3394a8(0x18d)][_0x3394a8(0x16b)][_0x3394a8(0x16a)](_0x3394a8(0x13f))),this[_0x3394a8(0x15c)]['on'](_0x3394a8(0x109),()=>{const _0x2b49c5=_0x3394a8;this[_0x2b49c5(0x188)][_0x2b49c5(0x170)][_0x2b49c5(0x17f)]||this[_0x2b49c5(0x188)][_0x2b49c5(0x170)][_0x2b49c5(0x184)]();}),this[_0x3394a8(0x15c)][_0x3394a8(0x163)][_0x3394a8(0x15a)][_0x3394a8(0x15e)]['on'](_0x3394a8(0x16d),()=>{const _0x598afe=_0x3394a8;this[_0x598afe(0x188)][_0x598afe(0x170)][_0x598afe(0x17f)]||this[_0x598afe(0x188)][_0x598afe(0x170)][_0x598afe(0x184)]();}),this[_0x3394a8(0x138)](this[_0x3394a8(0x15c)],_0x3394a8(0x130),()=>{const _0x526ce0=_0x3394a8;_0x2a9351[_0x526ce0(0x151)](this[_0x526ce0(0x18b)][_0x526ce0(0x179)]),this[_0x526ce0(0x19a)]();}),this[_0x3394a8(0x138)](this[_0x3394a8(0x15c)],_0x3394a8(0x12d),()=>{const _0x110239=_0x3394a8;_0x2a9351[_0x110239(0x12d)](this[_0x110239(0x18b)][_0x110239(0x179)]),this[_0x110239(0x19a)]();}),this[_0x3394a8(0x160)]();}[_0x4fc01e(0x160)](){const _0x462153=_0x4fc01e,{locale:_0xde90fd,ui:{ariaLiveAnnouncer:_0x3531be}}=this[_0x462153(0x18d)];this[_0x462153(0x15c)][_0x462153(0x114)]['on'](_0x462153(0x15f),(_0x3ab567,_0x3ffae3,_0x1311f3)=>{const _0x47699c=_0x462153,_0x26ca30=this[_0x47699c(0x18b)][_0x47699c(0x179)];_0x1311f3?_0x3531be[_0x47699c(0x16f)](_0x2d1401(_0xde90fd,_0x47699c(0x12b))):_0x26ca30&&_0x3531be[_0x47699c(0x16f)](_0x2d1401(_0xde90fd,_0x47699c(0x154),_0x26ca30),{'politeness':_0x47699c(0x17a),'isUnsafeHTML':!0x0});}),this[_0x462153(0x15c)]['on'](_0x462153(0x143),(_0x31b131,_0x249169,_0x621ae1)=>{const _0x2651c9=_0x462153;if(_0x621ae1){const _0xa7ba66=this[_0x2651c9(0x15c)][_0x2651c9(0xef)][_0x2651c9(0x104)];_0x3531be[_0x2651c9(0x16f)](_0x2d1401(_0xde90fd,_0x2651c9(0x159),_0xa7ba66));}});}[_0x4fc01e(0x174)](_0x374bbd){const _0x43bdab=_0x4fc01e,_0x351547=this[_0x43bdab(0x17e)][_0x43bdab(0x16a)](_0x374bbd),_0xeefb8b=this[_0x43bdab(0x18d)],_0x519228=_0xeefb8b[_0x43bdab(0x171)][_0x43bdab(0x10e)][_0x43bdab(0x150)],_0xe210b3=_0xeefb8b[_0x43bdab(0x102)][_0x43bdab(0x16a)](_0x43bdab(0x10f)),_0x3b83a9=_0xeefb8b[_0x43bdab(0x189)][_0x43bdab(0x16a)](_0x46c205),_0x7904f4=''+(_0x351547[_0x43bdab(0x121)]!==_0x56201b?_0x351547[_0x43bdab(0x186)]+':\x20':'')+_0x351547[_0x43bdab(0xf5)];if(!0x1!==_0x351547[_0x43bdab(0x131)]&&_0x519228[_0x43bdab(0xf3)]){const _0x59ec64=_0x12aded(_0x519228[_0x43bdab(0x194)]())||_0xeefb8b[_0x43bdab(0x171)][_0x43bdab(0x129)][_0x43bdab(0x110)](_0x519228);_0xeefb8b[_0x43bdab(0x171)][_0x43bdab(0x116)](_0x2fa347=>{const _0x2f9b6f=_0x43bdab;_0x2fa347[_0x2f9b6f(0x172)](_0x59ec64,'in');});}_0x3b83a9[_0x43bdab(0x103)](),_0xe210b3[_0x43bdab(0x15d)](_0x351547[_0x43bdab(0x13a)],_0x7904f4,_0x43bdab(0x11f)+_0x374bbd);}[_0x4fc01e(0x164)](_0x3cb2a4,_0x24a16c,_0x5789ac,_0x50f3f3){const _0x47f1aa=_0x4fc01e,_0x3ab680=this[_0x47f1aa(0x18d)],_0x155ece=_0x3ab680[_0x47f1aa(0x157)],_0x5c0193=new _0x407472(_0x155ece),_0x2cb534=gi(_0x3ab680,_0x5789ac)[_0x47f1aa(0x196)](_0x1e3814=>_0x1e3814[_0x47f1aa(0x102)][_0x47f1aa(0x16c)]);0x1===_0x2cb534[_0x47f1aa(0x16c)]?this[_0x47f1aa(0x139)]({'command':_0x3cb2a4,'commands':_0x2cb534[0x0][_0x47f1aa(0x102)],'parentMenuView':_0x24a16c,'onExecute':_0x50f3f3})[_0x47f1aa(0x11a)](_0x1ed0ba=>_0x5c0193[_0x47f1aa(0x137)][_0x47f1aa(0x13e)](_0x1ed0ba)):_0x2cb534[_0x47f1aa(0x11a)](({groupId:_0x5d2ec3,groupLabel:_0x1c626b,commands:_0x4abf02})=>{const _0x526f54=_0x47f1aa,_0x2f1686=new _0x59d9df(_0x155ece,_0x24a16c),_0x53d2d5=new _0x5d9788(_0x155ece),_0x1117ef=new _0x407472(_0x155ece),_0x5db376=this[_0x526f54(0x139)]({'command':_0x3cb2a4,'commands':_0x4abf02,'parentMenuView':_0x53d2d5,'onExecute':_0x50f3f3});_0x53d2d5[_0x526f54(0xf8)][_0x526f54(0x173)]({'label':_0x1c626b||_0x5d2ec3}),_0x53d2d5[_0x526f54(0x15b)](_0x526f54(0x15d))['to'](_0x24a16c),_0x1117ef[_0x526f54(0x137)][_0x526f54(0x126)](_0x5db376),_0x53d2d5[_0x526f54(0x158)][_0x526f54(0x197)][_0x526f54(0x13e)](_0x1117ef),_0x2f1686[_0x526f54(0x197)][_0x526f54(0x13e)](_0x53d2d5),_0x5c0193[_0x526f54(0x137)][_0x526f54(0x13e)](_0x2f1686);}),_0x24a16c[_0x47f1aa(0x158)][_0x47f1aa(0x197)][_0x47f1aa(0x13e)](_0x5c0193);}[_0x4fc01e(0x139)]({command:_0x17304b,commands:_0x1aab0e,parentMenuView:_0x5b395f,onExecute:_0x1abab4}){const _0x5e901d=_0x4fc01e,_0x20a0eb=this[_0x5e901d(0x18d)],_0x446efd=_0x20a0eb[_0x5e901d(0x157)];return gi(_0x20a0eb,_0x1aab0e)[_0x5e901d(0xf7)](_0x4ac39f=>{const _0x5a6cd4=_0x5e901d,_0x425548=new _0x59d9df(_0x446efd,_0x5b395f),_0x3971c0=new _0x595868(_0x446efd);return _0x3971c0[_0x5a6cd4(0x173)]({'label':_0x4ac39f[_0x5a6cd4(0xf5)]}),_0x3971c0[_0x5a6cd4(0x15b)](_0x5a6cd4(0x15d))['to'](_0x5b395f),_0x3971c0['on'](_0x5a6cd4(0x15d),()=>_0x1abab4(_0x4ac39f['id'])),_0x3971c0[_0x5a6cd4(0x127)](_0x5a6cd4(0x145))['to'](_0x17304b,_0x5a6cd4(0x162),_0x19475f=>_0x19475f[_0x5a6cd4(0x120)](_0x4ac39f['id'])),_0x425548[_0x5a6cd4(0x197)][_0x5a6cd4(0x13e)](_0x3971c0),_0x425548;});}}function wi(_0x107687,_0x183115){const _0x1bbfff=_0x4fc01e;return void 0x0!==_0x107687[_0x1bbfff(0x123)]&&void 0x0===_0x183115[_0x1bbfff(0x123)]?0x1:void 0x0===_0x107687[_0x1bbfff(0x123)]&&void 0x0!==_0x183115[_0x1bbfff(0x123)]?-0x1:void 0x0!==_0x107687[_0x1bbfff(0x123)]&&void 0x0!==_0x183115[_0x1bbfff(0x123)]?_0x107687[_0x1bbfff(0x123)]-_0x183115[_0x1bbfff(0x123)]:0x0;}function gi(_0x3a25cb,_0x30f233){const _0x4d4683=_0x4fc01e;_0x30f233[_0x4d4683(0x175)](wi);const _0x11c908={},_0x5ef9cc=[];for(const _0x16c711 of _0x30f233)if(void 0x0!==_0x16c711[_0x4d4683(0x123)]){if(_0x16c711[_0x4d4683(0x123)]in _0x11c908)throw new _0x14b9a3(_0x4d4683(0x122),_0x3a25cb,{'conflictingDefinitions':[_0x16c711,_0x11c908[_0x16c711[_0x4d4683(0x123)]]]});_0x11c908[_0x16c711[_0x4d4683(0x123)]]=_0x16c711,_0x5ef9cc[_0x4d4683(0xf4)](_0x16c711[_0x4d4683(0x123)],0x0,_0x16c711);}else _0x5ef9cc[_0x4d4683(0x195)](_0x16c711);return _0x5ef9cc;}
23
+ const _0x2994e8=_0x486d;(function(_0x242ec1,_0xf2c702){const _0x315a8f=_0x486d,_0x44aeb8=_0x242ec1();while(!![]){try{const _0x167616=parseInt(_0x315a8f(0x260))/0x1+parseInt(_0x315a8f(0x243))/0x2*(-parseInt(_0x315a8f(0x1ed))/0x3)+parseInt(_0x315a8f(0x22a))/0x4+-parseInt(_0x315a8f(0x1cc))/0x5+-parseInt(_0x315a8f(0x23e))/0x6+-parseInt(_0x315a8f(0x1f9))/0x7+-parseInt(_0x315a8f(0x26b))/0x8*(-parseInt(_0x315a8f(0x1cd))/0x9);if(_0x167616===_0xf2c702)break;else _0x44aeb8['push'](_0x44aeb8['shift']());}catch(_0x5e8b5f){_0x44aeb8['push'](_0x44aeb8['shift']());}}}(_0x4308,0xa2ea0));import{Plugin as _0x4ba6b3}from'ckeditor5/src/core.js';import{IconMagicWand as _0x4cb3d5,IconRobotPencil as _0x234715}from'ckeditor5/src/icons.js';import{first as _0x46b75c,CKEditorError as _0x3de911}from'ckeditor5/src/utils.js';import{createDropdown as _0x404ac9,addMenuToDropdown as _0x266103,ButtonView as _0x2feae8,MenuBarMenuListItemButtonView as _0x57ee01,Dialog as _0x454da7,DialogViewPosition as _0x4d36ba,MenuBarMenuView as _0x78b91f,MenuBarMenuListView as _0x424c4d,MenuBarMenuListItemView as _0x2ae7c8}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x5648bb,UNGROUPED_COMMANDS_GROUP_ID as _0x477f7f}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x129fae}from'./aiassistantediting.js';import{AIAdapter as _0x4f2f5d}from'./adapters/aiadapter.js';import{getTranslation as _0x54bee2}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x1c3b15}from'./ui/showaiassistantcommand.js';function _0x486d(_0x331820,_0x395680){const _0x430817=_0x4308();return _0x486d=function(_0x486d5f,_0x54cf10){_0x486d5f=_0x486d5f-0x1ca;let _0x371642=_0x430817[_0x486d5f];return _0x371642;},_0x486d(_0x331820,_0x395680);}import{AIAssistantController as _0x4c0702}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x321200}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x41146a}from'./ui/form/aiformtoolbarview.js';function _0x4308(){const _0xc6dfdb=['hideFakeVisualSelection','pluginName','requires','INSERT','aiLicenseKeyExpired','change:isError','_formView','buttons','AI\x20Commands','Generated\x20content:\x20%0','announce','listenTo','getSelectedBlocks','ai.assistant.useTheme','groupLabel','insertContentBelow','getRanges','replaceContent','aiCommands','isPremiumPlugin','comment','_showLicenseError','aiLicenseKeyInvalid','custom','isOn','_getResolvedCommandsDefinitions','ai.assistant.disabledElements','1076428xYurKx','EDITOR_TOP_SIDE','aiLicenseKeyNotAllowed','_getMenuBarGroupButtons','_populateMenuBarMenu','hideUI','replace','body','config','media','prompt','currentContext','text','set','_createAIAssistantUIButton','change:value','selection','ai.assistant.contentAreaCssClass','aiLicenseKeyValid','from','7173498dUMaDN','ck-ai-assistant-button\x20','commands','insertContent','ai.assistant.commands','39980DIKdIE','_onExecute','buttonView','updatePosition','show','editor','usageLimit','fieldView','aiLicenseKeyUsageLimit','licenseKey','polite','children','change','model','render','AI\x20is\x20writing','text/html','init','_forceMarkersCopy','schema','_dialog','_commandDefinitions','map','isCollapsed','execute','featureNotAllowed','_initAriaAiStatusChangeAnnouncements','getData','setSelection','237689iRZfII','includes','errorView','aiLicenseKeyEvaluationLimit','destroy','AIAssistant','push','delegate','source','isOfficialPlugin','_licenseKeyCheckInterval','1167704hqkWOa','label','_aiAssistantController','REPLACE','componentFactory','document','focus','change:enabledCommandsIds','hide','once','update','add','\x20ck-ai-assistant-ui_theme','plugins','2552635iSOuzn','171prjOxn','getLimitElement','editing','splice','isEnabled','aiLicenseKeyDomainLimit','_initView','menuitemcheckbox','rawHtml','filter','showAIAssistant','get','ck-ai-assistant-ui','showUI','addMany','change:isProcessing','</p>','requiresContent','menuPanelClass','copy','length','forEach','reset','tableOfContents','invalid','menuBar:aiCommands','getSelectedElement','promptView','groupId','view','Error\x20during\x20AI\x20content\x20generation:\x20%0','queryView','51HltxnU','expired','fire','textAdapter','isFlat','order','items','_aiAdapter','ck-ai-commands-dropdown\x20','panelView','domainLimit','locale','3967999smvyrK','DataTransfer','contentArea','aiAssistant','AIAssistantUI','values','sort','_uiCssClasses','define','evaluationLimit','menuBar:aiAssistant','bind','trim','ai-commands-config-order-collision','updateView','command:','enabledCommandsIds','AI\x20Assistant','showFakeVisualSelection','<p>','menuView','wasMoved'];_0x4308=function(){return _0xc6dfdb;};return _0x4308();}import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const w=globalThis[_0x2994e8(0x1fa)];import{ClipboardMarkersUtils as _0x56a17d}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x34dbf8,ViewDataTransfer as _0xd01ee8}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x4ba6b3{[_0x2994e8(0x24c)];[_0x2994e8(0x26a)];[_0x2994e8(0x257)];[_0x2994e8(0x215)];[_0x2994e8(0x1f4)];[_0x2994e8(0x26d)];[_0x2994e8(0x200)]='';static get[_0x2994e8(0x210)](){const _0x5ee583=_0x2994e8;return _0x5ee583(0x1fd);}static get[_0x2994e8(0x269)](){return!0x0;}static get[_0x2994e8(0x222)](){return!0x0;}static get[_0x2994e8(0x211)](){return[_0x56a17d,_0x129fae,_0x4f2f5d,_0x454da7];}constructor(_0x211f0a){const _0x11d16c=_0x2994e8;super(_0x211f0a),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x229),[_0x11d16c(0x233),_0x11d16c(0x1d5),_0x11d16c(0x1e4)]),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x23b),''),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x21c),!0x0),this[_0x11d16c(0x200)]=_0x11d16c(0x1d9)+(_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x1d8)](_0x11d16c(0x21c))?_0x11d16c(0x1ca):'');}[_0x2994e8(0x254)](){const _0x53347f=_0x2994e8,{editor:_0x324d57}=this;this[_0x53347f(0x1f4)]=_0x324d57[_0x53347f(0x1cb)][_0x53347f(0x1d8)](_0x4f2f5d),this[_0x53347f(0x257)]=_0x324d57[_0x53347f(0x1cb)][_0x53347f(0x1d8)](_0x454da7),this[_0x53347f(0x215)]=null,this[_0x53347f(0x258)]=this[_0x53347f(0x228)]();const _0x57598d=new _0x1c3b15(_0x324d57,Array[_0x53347f(0x23d)](this[_0x53347f(0x258)][_0x53347f(0x1fe)]()));_0x324d57[_0x53347f(0x240)][_0x53347f(0x276)](_0x53347f(0x1d7),_0x57598d),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x221),_0x2f1daa=>{const _0x471224=_0x53347f,_0x5cd742=_0x404ac9(_0x2f1daa);return _0x5cd742[_0x471224(0x237)]({'class':_0x471224(0x1f5)+this[_0x471224(0x200)]}),_0x5cd742[_0x471224(0x245)][_0x471224(0x237)]({'label':_0x54bee2(_0x2f1daa,_0x471224(0x217)),'icon':_0x4cb3d5,'tooltip':!0x0}),_0x5cd742['on'](_0x471224(0x25b),_0x175023=>this[_0x471224(0x244)](_0x175023[_0x471224(0x268)]['id'])),_0x266103(_0x5cd742,_0x324d57['ui'][_0x471224(0x1ea)][_0x471224(0x231)],function(_0x526a6d){const _0xf99ddd=_0x471224,_0x366484=_0x5648bb(_0x526a6d[_0xf99ddd(0x232)][_0xf99ddd(0x1d8)](_0xf99ddd(0x242)),_0x526a6d[_0xf99ddd(0x1f8)]),_0x211a86=B(_0x526a6d,_0x366484)[_0xf99ddd(0x1d6)](_0x5cd797=>_0x5cd797[_0xf99ddd(0x240)][_0xf99ddd(0x1e1)]);if(0x1===_0x211a86[_0xf99ddd(0x1e1)])return B(_0x526a6d,_0x211a86[0x0][_0xf99ddd(0x240)])[_0xf99ddd(0x259)](_0x46c776=>({'id':_0x46c776['id'],'label':_0x46c776[_0xf99ddd(0x26c)]}));return _0x211a86[_0xf99ddd(0x259)](_0x109509=>{const _0x46b4d8=_0xf99ddd,{groupId:_0x2bccfc,groupLabel:_0x20940b,commands:_0x53014c}=_0x109509,_0x91dbcf=B(_0x526a6d,_0x53014c)[_0x46b4d8(0x259)](_0xb3c820=>({'id':_0xb3c820['id'],'label':_0xb3c820[_0x46b4d8(0x26c)]}));return{'id':_0x2bccfc,'menu':_0x20940b||_0x2bccfc,'children':_0x91dbcf};});}(_0x324d57),{'ariaLabel':_0x54bee2(_0x2f1daa,_0x471224(0x217))}),_0x5cd742[_0x471224(0x20d)][_0x471224(0x1df)]=_0x471224(0x1f5)+this[_0x471224(0x200)],_0x57598d['on'](_0x471224(0x272),_0x564334),_0x5cd742[_0x471224(0x20d)][_0x471224(0x274)](_0x471224(0x251),_0x564334),_0x5cd742;function _0x564334(){const _0x497e3e=_0x471224;_0x5cd742[_0x497e3e(0x1d1)]=_0x57598d[_0x497e3e(0x209)][_0x497e3e(0x1e1)]>0x0;for(const _0x454420 of _0x5cd742[_0x497e3e(0x20d)][_0x497e3e(0x216)])_0x454420[_0x497e3e(0x1d1)]=_0x57598d[_0x497e3e(0x209)][_0x497e3e(0x261)](_0x454420['id']);}}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x1e6),_0x2d36fe=>{const _0x5740e8=_0x53347f,_0x17ed02=new _0x78b91f(_0x2d36fe);_0x17ed02[_0x5740e8(0x245)][_0x5740e8(0x237)]({'label':_0x54bee2(_0x2d36fe,_0x5740e8(0x217)),'icon':_0x4cb3d5}),_0x17ed02[_0x5740e8(0x204)](_0x5740e8(0x1d1))['to'](_0x57598d,_0x5740e8(0x209),_0x432cc1=>_0x432cc1[_0x5740e8(0x1e1)]>0x0);const _0x3692bf=_0x5648bb(_0x324d57[_0x5740e8(0x232)][_0x5740e8(0x1d8)](_0x5740e8(0x242)),_0x2d36fe);return this[_0x5740e8(0x22e)](_0x57598d,_0x17ed02,_0x3692bf,_0x5af75a=>this[_0x5740e8(0x244)](_0x5af75a)),_0x17ed02;}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x1fc),()=>{const _0x53ecc4=_0x53347f,_0x39ed1a=this[_0x53ecc4(0x238)](_0x2feae8);return _0x39ed1a[_0x53ecc4(0x237)]({'tooltip':!0x0,'class':_0x53ecc4(0x23f)+this[_0x53ecc4(0x200)]}),_0x39ed1a;}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x203),()=>{const _0x230fe8=_0x53347f,_0xcd77ad=this[_0x230fe8(0x238)](_0x57ee01);return _0xcd77ad[_0x230fe8(0x237)]({'role':_0x230fe8(0x1d4)}),_0xcd77ad;}),this[_0x53347f(0x24c)]=this[_0x53347f(0x248)][_0x53347f(0x232)][_0x53347f(0x1d8)](_0x53347f(0x24c));const _0x4eab6d=this[_0x53347f(0x248)];this[_0x53347f(0x26a)]=setInterval(()=>{const _0x1ccae7=_0x53347f;let _0x36cc45;for(const _0x3315e7 in _0x4eab6d){const _0x10d2e4=_0x3315e7,_0x51fdc0=_0x4eab6d[_0x10d2e4];if(_0x1ccae7(0x23c)==_0x51fdc0||_0x1ccae7(0x225)==_0x51fdc0||_0x1ccae7(0x213)==_0x51fdc0||_0x1ccae7(0x1d2)==_0x51fdc0||_0x1ccae7(0x22c)==_0x51fdc0||_0x1ccae7(0x263)==_0x51fdc0||_0x1ccae7(0x24b)==_0x51fdc0){delete _0x4eab6d[_0x10d2e4],_0x36cc45=_0x51fdc0,clearInterval(this[_0x1ccae7(0x26a)]),this[_0x1ccae7(0x26a)]=void 0x0;break;}}_0x1ccae7(0x225)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1e5)),_0x1ccae7(0x213)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1ee)),_0x1ccae7(0x1d2)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1f7)),_0x1ccae7(0x22c)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x25c),_0x1ccae7(0x265)),_0x1ccae7(0x263)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x202)),_0x1ccae7(0x24b)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x249));},0x3e8);}[_0x2994e8(0x264)](){const _0x17f8c0=_0x2994e8;super[_0x17f8c0(0x264)](),this[_0x17f8c0(0x26a)]&&clearInterval(this[_0x17f8c0(0x26a)]);}[_0x2994e8(0x1da)](_0x4b79b3='',_0x4c447b='',_0x3693bd=_0x2994e8(0x226)){const _0x59b50d=_0x2994e8,_0x430e03=this[_0x59b50d(0x248)],_0x4cfa20=_0x430e03[_0x59b50d(0x1cf)][_0x59b50d(0x1ea)],_0x15c004=_0x430e03[_0x59b50d(0x1cb)][_0x59b50d(0x1d8)](_0x129fae),_0x44f036=_0x430e03[_0x59b50d(0x1cb)][_0x59b50d(0x1d8)](_0x56a17d);_0x15c004[_0x59b50d(0x20b)]();const _0x54e346=new w(),_0x573346=new ClipboardEvent(_0x59b50d(0x1e0),{'clipboardData':_0x54e346}),_0x3f1caf=new _0xd01ee8(_0x54e346),_0x143365=new _0x34dbf8(_0x4cfa20,_0x573346,{'dataTransfer':_0x3f1caf});_0x44f036[_0x59b50d(0x255)](_0x59b50d(0x223),()=>{const _0x51af9d=_0x59b50d;_0x4cfa20[_0x51af9d(0x270)][_0x51af9d(0x1ef)](_0x51af9d(0x1e0),_0x143365);}),this[_0x59b50d(0x215)]||(this[_0x59b50d(0x1d3)](),this[_0x59b50d(0x26d)]=new _0x4c0702(_0x430e03,this[_0x59b50d(0x1f4)][_0x59b50d(0x1f0)],this[_0x59b50d(0x215)]));let _0x2b7941=_0x3f1caf[_0x59b50d(0x25e)](_0x59b50d(0x253));const _0x3a67db=_0x430e03[_0x59b50d(0x250)][_0x59b50d(0x270)][_0x59b50d(0x23a)],_0x1b90db=Array[_0x59b50d(0x23d)](_0x3a67db[_0x59b50d(0x21f)]());0x1===_0x1b90db[_0x59b50d(0x1e1)]&&_0x1b90db[0x0][_0x59b50d(0x1f1)]&&!_0x3a67db[_0x59b50d(0x1e7)]()&&''!==_0x2b7941[_0x59b50d(0x230)](/&nbsp;/g,'')[_0x59b50d(0x205)]()&&(_0x2b7941=_0x59b50d(0x20c)+_0x2b7941+_0x59b50d(0x1dd)),this[_0x59b50d(0x26d)][_0x59b50d(0x207)]({'actionId':_0x3693bd,'query':_0x4b79b3,'htmlContent':_0x2b7941,'label':_0x4c447b,'mainActionLabel':_0x41146a[_0x430e03[_0x59b50d(0x250)][_0x59b50d(0x270)][_0x59b50d(0x23a)][_0x59b50d(0x25a)]?_0x59b50d(0x212):_0x59b50d(0x26e)]}),_0x59b50d(0x1fc)!==this[_0x59b50d(0x257)]['id']?this[_0x59b50d(0x257)][_0x59b50d(0x247)]({'id':_0x59b50d(0x1fc),'icon':_0x234715,'title':_0x54bee2(this[_0x59b50d(0x248)][_0x59b50d(0x1f8)],_0x59b50d(0x20a)),'content':this[_0x59b50d(0x215)],'position':_0x4d36ba[_0x59b50d(0x22b)],'onShow':()=>{const _0x54c068=_0x59b50d;this[_0x54c068(0x215)][_0x54c068(0x271)]();},'onHide':()=>{const _0x33d37b=_0x59b50d;this[_0x33d37b(0x26d)][_0x33d37b(0x1e3)](),_0x15c004[_0x33d37b(0x20f)]();}}):this[_0x59b50d(0x257)][_0x59b50d(0x1ea)][_0x59b50d(0x20e)]||this[_0x59b50d(0x257)][_0x59b50d(0x1ea)][_0x59b50d(0x246)]();}[_0x2994e8(0x22f)](){const _0x30fa9c=_0x2994e8;this[_0x30fa9c(0x257)][_0x30fa9c(0x273)]();}[_0x2994e8(0x228)](){const _0x1d364f=_0x2994e8,_0xe692e=new Map(),_0x1f8f3f=_0x5648bb(this[_0x1d364f(0x248)][_0x1d364f(0x232)][_0x1d364f(0x1d8)](_0x1d364f(0x242)),this[_0x1d364f(0x248)][_0x1d364f(0x1f8)]);for(const _0x1b7277 of _0x1f8f3f)for(const _0x28960a of _0x1b7277[_0x1d364f(0x240)])_0xe692e[_0x1d364f(0x237)](_0x28960a['id'],{..._0x28960a,'groupId':_0x1b7277[_0x1d364f(0x1e9)],'groupLabel':_0x1b7277[_0x1d364f(0x21d)]||_0x1b7277[_0x1d364f(0x1e9)]});return _0xe692e;}[_0x2994e8(0x238)](_0x22e035){const _0x1cf281=_0x2994e8,_0x53dded=this[_0x1cf281(0x248)],_0x1f500b=_0x53dded[_0x1cf281(0x240)][_0x1cf281(0x1d8)](_0x1cf281(0x1d7)),_0x3fbdc6=new _0x22e035(_0x53dded[_0x1cf281(0x1f8)]);return _0x3fbdc6[_0x1cf281(0x237)]({'label':_0x54bee2(_0x53dded[_0x1cf281(0x1f8)],_0x1cf281(0x20a)),'icon':_0x234715,'isToggleable':!0x0}),_0x3fbdc6[_0x1cf281(0x204)](_0x1cf281(0x1d1))['to'](_0x1f500b),_0x3fbdc6[_0x1cf281(0x204)](_0x1cf281(0x227))['to'](this[_0x1cf281(0x257)],'id',_0x542575=>_0x1cf281(0x1fc)===_0x542575),this[_0x1cf281(0x21a)](_0x3fbdc6,_0x1cf281(0x25b),()=>{const _0x156cae=_0x1cf281;_0x3fbdc6[_0x156cae(0x227)]?this[_0x156cae(0x22f)]():_0x1f500b[_0x156cae(0x25b)]();}),_0x3fbdc6;}[_0x2994e8(0x1d3)](){const _0x13324c=_0x2994e8,_0x15cbec=this[_0x13324c(0x248)][_0x13324c(0x1cb)][_0x13324c(0x1d8)](_0x129fae);this[_0x13324c(0x215)]=new _0x321200(this[_0x13324c(0x248)][_0x13324c(0x1f8)],this[_0x13324c(0x200)],this[_0x13324c(0x248)][_0x13324c(0x232)][_0x13324c(0x1d8)](_0x13324c(0x23b))),this[_0x13324c(0x215)]['on'](_0x13324c(0x239),()=>{const _0x12108d=_0x13324c;this[_0x12108d(0x257)][_0x12108d(0x1ea)][_0x12108d(0x20e)]||this[_0x12108d(0x257)][_0x12108d(0x1ea)][_0x12108d(0x246)]();}),this[_0x13324c(0x215)][_0x13324c(0x1e8)][_0x13324c(0x1ec)][_0x13324c(0x24a)]['on'](_0x13324c(0x275),()=>{const _0x48e362=_0x13324c;this[_0x48e362(0x257)][_0x48e362(0x1ea)][_0x48e362(0x20e)]||this[_0x48e362(0x257)][_0x48e362(0x1ea)][_0x48e362(0x246)]();}),this[_0x13324c(0x21a)](this[_0x13324c(0x215)],_0x13324c(0x220),()=>{const _0x47c980=_0x13324c;_0x15cbec[_0x47c980(0x241)](this[_0x47c980(0x26d)][_0x47c980(0x235)]),this[_0x47c980(0x22f)]();}),this[_0x13324c(0x21a)](this[_0x13324c(0x215)],_0x13324c(0x21e),()=>{const _0xbcd16a=_0x13324c;_0x15cbec[_0xbcd16a(0x21e)](this[_0xbcd16a(0x26d)][_0xbcd16a(0x235)]),this[_0xbcd16a(0x22f)]();}),this[_0x13324c(0x25d)]();}[_0x2994e8(0x25d)](){const _0x10e495=_0x2994e8,{locale:_0x522a2b,ui:{ariaLiveAnnouncer:_0x25474d}}=this[_0x10e495(0x248)];this[_0x10e495(0x215)][_0x10e495(0x1fb)]['on'](_0x10e495(0x1dc),(_0x502922,_0x3594b2,_0x3c9b01)=>{const _0x8b3754=_0x10e495,_0xf0f43f=this[_0x8b3754(0x26d)][_0x8b3754(0x235)];_0x3c9b01?_0x25474d[_0x8b3754(0x219)](_0x54bee2(_0x522a2b,_0x8b3754(0x252))):_0xf0f43f&&_0x25474d[_0x8b3754(0x219)](_0x54bee2(_0x522a2b,_0x8b3754(0x218),_0xf0f43f),{'politeness':_0x8b3754(0x24d),'isUnsafeHTML':!0x0});}),this[_0x10e495(0x215)]['on'](_0x10e495(0x214),(_0x5ecba1,_0x8d9481,_0x489d21)=>{const _0x57b066=_0x10e495;if(_0x489d21){const _0x2295dc=this[_0x57b066(0x215)][_0x57b066(0x262)][_0x57b066(0x236)];_0x25474d[_0x57b066(0x219)](_0x54bee2(_0x522a2b,_0x57b066(0x1eb),_0x2295dc));}});}[_0x2994e8(0x244)](_0x81d986){const _0x3047d3=_0x2994e8,_0x1bb99b=this[_0x3047d3(0x258)][_0x3047d3(0x1d8)](_0x81d986),_0x2b171b=this[_0x3047d3(0x248)],_0x50709c=_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x270)][_0x3047d3(0x23a)],_0x5f4922=_0x2b171b[_0x3047d3(0x240)][_0x3047d3(0x1d8)](_0x3047d3(0x1d7)),_0x33714c=_0x2b171b[_0x3047d3(0x1cb)][_0x3047d3(0x1d8)](_0x129fae),_0x1263e1=''+(_0x1bb99b[_0x3047d3(0x1e9)]!==_0x477f7f?_0x1bb99b[_0x3047d3(0x21d)]+':\x20':'')+_0x1bb99b[_0x3047d3(0x26c)];if(!0x1!==_0x1bb99b[_0x3047d3(0x1de)]&&_0x50709c[_0x3047d3(0x25a)]){const _0x35d927=_0x46b75c(_0x50709c[_0x3047d3(0x21b)]())||_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x256)][_0x3047d3(0x1ce)](_0x50709c);_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x24f)](_0x2e7233=>{const _0x36687e=_0x3047d3;_0x2e7233[_0x36687e(0x25f)](_0x35d927,'in');});}_0x33714c[_0x3047d3(0x20b)](),_0x5f4922[_0x3047d3(0x25b)](_0x1bb99b[_0x3047d3(0x234)],_0x1263e1,_0x3047d3(0x208)+_0x81d986);}[_0x2994e8(0x22e)](_0x53a919,_0x225508,_0xbd0ba3,_0x256bc8){const _0x21e2dc=_0x2994e8,_0xd25104=this[_0x21e2dc(0x248)],_0x2b3737=_0xd25104[_0x21e2dc(0x1f8)],_0x206845=new _0x424c4d(_0x2b3737),_0x24cdb9=B(_0xd25104,_0xbd0ba3)[_0x21e2dc(0x1d6)](_0xc6cf66=>_0xc6cf66[_0x21e2dc(0x240)][_0x21e2dc(0x1e1)]);0x1===_0x24cdb9[_0x21e2dc(0x1e1)]?this[_0x21e2dc(0x22d)]({'command':_0x53a919,'commands':_0x24cdb9[0x0][_0x21e2dc(0x240)],'parentMenuView':_0x225508,'onExecute':_0x256bc8})[_0x21e2dc(0x1e2)](_0x42729c=>_0x206845[_0x21e2dc(0x1f3)][_0x21e2dc(0x276)](_0x42729c)):_0x24cdb9[_0x21e2dc(0x1e2)](({groupId:_0x3d023a,groupLabel:_0x42704c,commands:_0xa90caf})=>{const _0x9a625a=_0x21e2dc,_0x5b486f=new _0x2ae7c8(_0x2b3737,_0x225508),_0x1c51a3=new _0x78b91f(_0x2b3737),_0x3706c5=new _0x424c4d(_0x2b3737),_0x1f2fa2=this[_0x9a625a(0x22d)]({'command':_0x53a919,'commands':_0xa90caf,'parentMenuView':_0x1c51a3,'onExecute':_0x256bc8});_0x1c51a3[_0x9a625a(0x245)][_0x9a625a(0x237)]({'label':_0x42704c||_0x3d023a}),_0x1c51a3[_0x9a625a(0x267)](_0x9a625a(0x25b))['to'](_0x225508),_0x3706c5[_0x9a625a(0x1f3)][_0x9a625a(0x1db)](_0x1f2fa2),_0x1c51a3[_0x9a625a(0x1f6)][_0x9a625a(0x24e)][_0x9a625a(0x276)](_0x3706c5),_0x5b486f[_0x9a625a(0x24e)][_0x9a625a(0x276)](_0x1c51a3),_0x206845[_0x9a625a(0x1f3)][_0x9a625a(0x276)](_0x5b486f);}),_0x225508[_0x21e2dc(0x1f6)][_0x21e2dc(0x24e)][_0x21e2dc(0x276)](_0x206845);}[_0x2994e8(0x22d)]({command:_0x214e76,commands:_0x273d62,parentMenuView:_0x37be87,onExecute:_0x33bb5b}){const _0x1c410a=_0x2994e8,_0x2d089f=this[_0x1c410a(0x248)],_0x233418=_0x2d089f[_0x1c410a(0x1f8)];return B(_0x2d089f,_0x273d62)[_0x1c410a(0x259)](_0x200adf=>{const _0x2e436a=_0x1c410a,_0x47ec44=new _0x2ae7c8(_0x233418,_0x37be87),_0x17c5b6=new _0x57ee01(_0x233418);return _0x17c5b6[_0x2e436a(0x237)]({'label':_0x200adf[_0x2e436a(0x26c)]}),_0x17c5b6[_0x2e436a(0x267)](_0x2e436a(0x25b))['to'](_0x37be87),_0x17c5b6['on'](_0x2e436a(0x25b),()=>_0x33bb5b(_0x200adf['id'])),_0x17c5b6[_0x2e436a(0x204)](_0x2e436a(0x1d1))['to'](_0x214e76,_0x2e436a(0x209),_0xe33d25=>_0xe33d25[_0x2e436a(0x261)](_0x200adf['id'])),_0x47ec44[_0x2e436a(0x24e)][_0x2e436a(0x276)](_0x17c5b6),_0x47ec44;});}}function U(_0x20dfa3,_0x311208){const _0xce7f9a=_0x2994e8;return void 0x0!==_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0===_0x311208[_0xce7f9a(0x1f2)]?0x1:void 0x0===_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0!==_0x311208[_0xce7f9a(0x1f2)]?-0x1:void 0x0!==_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0!==_0x311208[_0xce7f9a(0x1f2)]?_0x20dfa3[_0xce7f9a(0x1f2)]-_0x311208[_0xce7f9a(0x1f2)]:0x0;}function B(_0x429f27,_0x2e5095){const _0x15efaa=_0x2994e8;_0x2e5095[_0x15efaa(0x1ff)](U);const _0x3d85a5={},_0x14e236=[];for(const _0x1b9d16 of _0x2e5095)if(void 0x0!==_0x1b9d16[_0x15efaa(0x1f2)]){if(_0x1b9d16[_0x15efaa(0x1f2)]in _0x3d85a5)throw new _0x3de911(_0x15efaa(0x206),_0x429f27,{'conflictingDefinitions':[_0x1b9d16,_0x3d85a5[_0x1b9d16[_0x15efaa(0x1f2)]]]});_0x3d85a5[_0x1b9d16[_0x15efaa(0x1f2)]]=_0x1b9d16,_0x14e236[_0x15efaa(0x1d0)](_0x1b9d16[_0x15efaa(0x1f2)],0x0,_0x1b9d16);}else _0x14e236[_0x15efaa(0x266)](_0x1b9d16);return _0x14e236;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5c32(){var _0x497ab3=['5038865StbahH','12awRDrY','1953hKjuUm','3592479wKYaMj','20272lvMDcx','376aHyIUa','15JecEzW','949578qqgdWY','790loYJhB','183gzdsOX','2AnMeJU','15732dqhrNJ','286289fEKvxa'];_0x5c32=function(){return _0x497ab3;};return _0x5c32();}function _0x1f9e(_0x5b5ce9,_0x403a78){var _0x5c3200=_0x5c32();return _0x1f9e=function(_0x1f9ee4,_0x2753c1){_0x1f9ee4=_0x1f9ee4-0x16f;var _0x1e462f=_0x5c3200[_0x1f9ee4];return _0x1e462f;},_0x1f9e(_0x5b5ce9,_0x403a78);}(function(_0x55e968,_0x5935e3){var _0x1e603c=_0x1f9e,_0x574c6a=_0x55e968();while(!![]){try{var _0x2419e4=parseInt(_0x1e603c(0x16f))/0x1*(-parseInt(_0x1e603c(0x17a))/0x2)+-parseInt(_0x1e603c(0x179))/0x3*(-parseInt(_0x1e603c(0x17b))/0x4)+-parseInt(_0x1e603c(0x176))/0x5*(-parseInt(_0x1e603c(0x177))/0x6)+parseInt(_0x1e603c(0x174))/0x7*(-parseInt(_0x1e603c(0x175))/0x8)+-parseInt(_0x1e603c(0x172))/0x9*(-parseInt(_0x1e603c(0x178))/0xa)+-parseInt(_0x1e603c(0x173))/0xb*(-parseInt(_0x1e603c(0x171))/0xc)+-parseInt(_0x1e603c(0x170))/0xd;if(_0x2419e4===_0x5935e3)break;else _0x574c6a['push'](_0x574c6a['shift']());}catch(_0x590718){_0x574c6a['push'](_0x574c6a['shift']());}}}(_0x5c32,0x3ca6c));import{CKEditorError as _0x150fc4}from'ckeditor5/src/utils.js';
23
+ (function(_0x8cbc1b,_0x1eeb2e){var _0x10ea29=_0x4837,_0x3e7cd1=_0x8cbc1b();while(!![]){try{var _0x52affe=-parseInt(_0x10ea29(0x151))/0x1+-parseInt(_0x10ea29(0x14f))/0x2*(parseInt(_0x10ea29(0x152))/0x3)+-parseInt(_0x10ea29(0x155))/0x4+parseInt(_0x10ea29(0x154))/0x5*(parseInt(_0x10ea29(0x150))/0x6)+parseInt(_0x10ea29(0x14c))/0x7+parseInt(_0x10ea29(0x14e))/0x8+-parseInt(_0x10ea29(0x14d))/0x9*(parseInt(_0x10ea29(0x153))/0xa);if(_0x52affe===_0x1eeb2e)break;else _0x3e7cd1['push'](_0x3e7cd1['shift']());}catch(_0x58c1ce){_0x3e7cd1['push'](_0x3e7cd1['shift']());}}}(_0x2337,0x35da2));function _0x2337(){var _0x59ba2b=['21HYDJSU','270fxWNhI','1333305gQiBAA','963648ynsdRP','1711010smOFfp','26010SWNIPh','2384616OpbxUY','62584auVdHE','6yJBOXf','50604PteyjB'];_0x2337=function(){return _0x59ba2b;};return _0x2337();}function _0x4837(_0x24c133,_0x87ea8c){var _0x23378d=_0x2337();return _0x4837=function(_0x4837f7,_0x285ca1){_0x4837f7=_0x4837f7-0x14c;var _0x2221e2=_0x23378d[_0x4837f7];return _0x2221e2;},_0x4837(_0x24c133,_0x87ea8c);}import{CKEditorError as _0x3bce4e}from'ckeditor5/src/utils.js';
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3d66(){const _0x704956=['_domParser','stopListening','value','body','21ybcKxi','abort','substring','```html','currentResponse','currentContext','previousLabel','document','view','get','textAdapter','finally','<h1></h1>','text/html','reverse','markers','stopProcessing','push','mainAction','previousQuery','trim','innerHTML','306032oSiuqj','viewToDom','startsWith','render','listenTo','toView','endsWith','updateView','editor','serializeToString','from','tryAgainEvent','setContentOf','destroy','nodeType','_parseAndNormalizeContent','6129886ljWXNX','domConverter','_sanitizationContainer','editing','querySelector','div','element','7716712IrcDXI','_stripMarkdownSyntax','config','_isH1TagSupportEnabled','initialContext','custom','12041307JTHwPj','processor','data','370936CosKjy','once','startProcessing','previousActionId','createElement','_normalizeResponseHeadings','htmlProcessor','catch','then','exec','toModel','reset','645664cbwIzR','isRendered','name','stringify','previousContext','_handleQuery','remove','makeRequest','rename','finishProcessing','length','ELEMENT_NODE','1626065ckotre','parseFromString','clear','```','_xmlSerializer','childNodes','message','_sanitizeHTML','match','set:currentContext','12sjjjGB','set','ai.assistant.preserveComments','handleError','submitPrompt','isProcessing','prompt'];_0x3d66=function(){return _0x704956;};return _0x3d66();}const _0x159c81=_0x2df2;(function(_0x181be9,_0x321fe1){const _0x106726=_0x2df2,_0xb21519=_0x181be9();while(!![]){try{const _0x1026b1=-parseInt(_0x106726(0xc4))/0x1+parseInt(_0x106726(0x8d))/0x2+parseInt(_0x106726(0xae))/0x3*(-parseInt(_0x106726(0xe4))/0x4)+parseInt(_0x106726(0x99))/0x5*(parseInt(_0x106726(0xa3))/0x6)+parseInt(_0x106726(0xd4))/0x7+parseInt(_0x106726(0xdb))/0x8+-parseInt(_0x106726(0xe1))/0x9;if(_0x1026b1===_0x321fe1)break;else _0xb21519['push'](_0xb21519['shift']());}catch(_0x5192c8){_0xb21519['push'](_0xb21519['shift']());}}}(_0x3d66,0x7f104));function _0x2df2(_0x4beab8,_0x2cd592){const _0x3d6693=_0x3d66();return _0x2df2=function(_0x2df293,_0x5bd1e2){_0x2df293=_0x2df293-0x85;let _0x35bf6d=_0x3d6693[_0x2df293];return _0x35bf6d;},_0x2df2(_0x4beab8,_0x2cd592);}import{ObservableMixin as _0x3dde72}from'ckeditor5/src/utils.js';import{AIRequestError as _0x170701}from'../adapters/aiadapter.js';import{Matcher as _0x71221f,ViewUpcastWriter as _0x3323e5}from'ckeditor5/src/engine.js';const vs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x3dde72(){[_0x159c81(0xcc)];[_0x159c81(0xb8)];[_0x159c81(0xb6)];[_0x159c81(0xd6)];[_0x159c81(0xaa)];[_0x159c81(0x9d)];constructor(_0x23836a,_0x22e268,_0xcf27d8){const _0x371e1b=_0x159c81;super(),this[_0x371e1b(0xcc)]=_0x23836a,this[_0x371e1b(0xb8)]=_0x22e268,this[_0x371e1b(0xd6)]=document[_0x371e1b(0x85)](_0x371e1b(0xd9)),this[_0x371e1b(0xaa)]=new DOMParser(),this[_0x371e1b(0x9d)]=new XMLSerializer(),this[_0x371e1b(0xb6)]=_0xcf27d8,this[_0x371e1b(0xa4)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x371e1b(0xa2),(_0x1e7226,_0x2ff0eb,_0x4b79ac)=>{const _0x5ebe00=_0x371e1b;this[_0x5ebe00(0xb6)][_0x5ebe00(0xac)]=this[_0x5ebe00(0xa0)](_0x4b79ac);}),this[_0x371e1b(0xc8)](this[_0x371e1b(0xb6)],_0x371e1b(0xa7),(_0x126c66,_0x2eb85c)=>{const _0x3f58e4=_0x371e1b,_0xea7d21=this[_0x3f58e4(0xb3)]||this[_0x3f58e4(0xdf)];this[_0x3f58e4(0x92)](_0x2eb85c,_0xea7d21,_0x3f58e4(0xe0));}),this[_0x371e1b(0xc8)](this[_0x371e1b(0xb6)],_0x371e1b(0xcf),()=>{const _0x1e9ea9=_0x371e1b;this[_0x1e9ea9(0xb6)][_0x1e9ea9(0xa9)]=this[_0x1e9ea9(0xb4)],this[_0x1e9ea9(0x92)](this[_0x1e9ea9(0xc1)],this[_0x1e9ea9(0x91)],this[_0x1e9ea9(0xe7)],this[_0x1e9ea9(0xb4)]);}),this[_0x371e1b(0xc8)](this[_0x371e1b(0xb6)],_0x371e1b(0xbe),()=>{const _0x4a56e8=_0x371e1b;this[_0x4a56e8(0xbe)]();});}[_0x159c81(0xd1)](){const _0x5cdd93=_0x159c81;this[_0x5cdd93(0xab)]();}async[_0x159c81(0xcb)]({actionId:_0x5f3068,query:_0x2cdd9d,htmlContent:_0x47ad54,label:_0x3c6d83,mainActionLabel:_0x56afd0}){const _0x3340e0=_0x159c81;this[_0x3340e0(0xb6)][_0x3340e0(0xa9)]=_0x3c6d83,this[_0x3340e0(0xb6)][_0x3340e0(0xc0)]=_0x56afd0,this[_0x3340e0(0xdf)]=_0x47ad54,_0x2cdd9d&&(this[_0x3340e0(0xb6)][_0x3340e0(0x8e)]?this[_0x3340e0(0x92)](_0x2cdd9d,_0x47ad54,_0x5f3068,_0x3c6d83):this[_0x3340e0(0xb6)][_0x3340e0(0xe5)](_0x3340e0(0xc7),()=>{const _0x49ce4c=_0x3340e0;this[_0x49ce4c(0x92)](_0x2cdd9d,_0x47ad54,_0x5f3068,_0x3c6d83);}));}[_0x159c81(0xbe)](){const _0x2063fe=_0x159c81;this[_0x2063fe(0xa8)]&&(this[_0x2063fe(0xa8)]=!0x1,this[_0x2063fe(0xb6)][_0x2063fe(0x96)](),this[_0x2063fe(0xb8)][_0x2063fe(0xaf)]());}[_0x159c81(0x8c)](){const _0x24400b=_0x159c81;this[_0x24400b(0xdf)]='',this[_0x24400b(0xb3)]='',this[_0x24400b(0xb2)]='',this[_0x24400b(0x91)]='',this[_0x24400b(0xc1)]='',this[_0x24400b(0xb4)]='',this[_0x24400b(0xe7)]=void 0x0,this[_0x24400b(0xb6)][_0x24400b(0x8c)](),this[_0x24400b(0xbe)]();}async[_0x159c81(0x92)](_0x3f8a15,_0x3d3864,_0x5d90e5,_0xcc461b){const _0x4c0480=_0x159c81;return this[_0x4c0480(0xa8)]=!0x0,this[_0x4c0480(0xb6)][_0x4c0480(0xe6)](),this[_0x4c0480(0x91)]=_0x3d3864,this[_0x4c0480(0xc1)]=_0x3f8a15,this[_0x4c0480(0xb4)]=_0xcc461b||_0x3f8a15,this[_0x4c0480(0xe7)]=_0x5d90e5,new Promise(_0x930b6f=>{const _0x11007c=_0x4c0480;this[_0x11007c(0xb8)][_0x11007c(0x94)]({'query':_0x3f8a15,'context':_0x3d3864,'onData':_0xf165de=>{const _0x9eb4de=_0x11007c;this[_0x9eb4de(0xb2)]=_0xf165de,this[_0x9eb4de(0xb3)]=this[_0x9eb4de(0xd3)](this[_0x9eb4de(0xb2)]);},'actionId':_0x5d90e5})[_0x11007c(0x89)](()=>{const _0x290570=_0x11007c;!this[_0x290570(0xb3)]&&this[_0x290570(0xb2)]&&(this[_0x290570(0xb3)]=this[_0x290570(0xd3)](this[_0x290570(0xb2)],!0x0));})[_0x11007c(0x88)](_0x5e4353=>{const _0x314343=_0x11007c;_0x5e4353 instanceof _0x170701?this[_0x314343(0xb6)][_0x314343(0xa6)](_0x5e4353[_0x314343(0x9f)]):this[_0x314343(0xb6)][_0x314343(0xa6)](),_0x930b6f();})[_0x11007c(0xb9)](()=>{const _0x3a77cd=_0x11007c;this[_0x3a77cd(0xbe)](),_0x930b6f();});});}[_0x159c81(0xd3)](_0x325a68,_0x98bc1d=!0x1){const _0x207590=_0x159c81,_0x3f9da7=vs[_0x207590(0x8a)](_0x325a68);_0x325a68=_0x3f9da7?_0x325a68[_0x207590(0xb0)](_0x3f9da7[0x1][_0x207590(0x97)]):_0x325a68[_0x207590(0x97)]<0x64&&!_0x98bc1d?'':this[_0x207590(0xdc)](_0x325a68);const _0x22b86a=this[_0x207590(0xaa)][_0x207590(0x9a)](_0x325a68,_0x207590(0xbb));if(_0x3f9da7){const _0x17c9f8=Array[_0x207590(0xce)](_0x22b86a[_0x207590(0xad)][_0x207590(0x9e)]);_0x17c9f8[_0x207590(0xbc)]();for(const _0x23c9cb of _0x17c9f8){if(_0x23c9cb[_0x207590(0xd2)]==Node[_0x207590(0x98)])break;_0x23c9cb[_0x207590(0x93)]();}}const _0x2eb8ef=this[_0x207590(0xcc)][_0x207590(0xe3)][_0x207590(0xe2)][_0x207590(0xc9)](this[_0x207590(0x9d)][_0x207590(0xcd)](_0x22b86a[_0x207590(0xad)]));this[_0x207590(0xde)]()||this[_0x207590(0x86)](_0x2eb8ef);const _0x23797d=this[_0x207590(0xcc)][_0x207590(0xdd)][_0x207590(0xb7)](_0x207590(0xa5)),_0x423dc2=this[_0x207590(0xcc)][_0x207590(0xe3)][_0x207590(0x8b)](_0x2eb8ef);return _0x23797d||_0x423dc2[_0x207590(0xbd)][_0x207590(0x9b)](),this[_0x207590(0xcc)][_0x207590(0xe3)][_0x207590(0x90)](_0x423dc2);}[_0x159c81(0x86)](_0x191e5b){const _0xde4c28=_0x159c81,_0x21d3d1=new _0x3323e5(this[_0xde4c28(0xcc)][_0xde4c28(0xd7)][_0xde4c28(0xb6)][_0xde4c28(0xb5)]),_0x40bf3a=new _0x71221f({'name':/^h[1-5]$/}),_0x5f3db0=[];let _0x480602=!0x1;for(const _0x4a1c6b of _0x191e5b)_0x4a1c6b['is'](_0xde4c28(0xda))&&_0x40bf3a[_0xde4c28(0xa1)](_0x4a1c6b)&&(_0x5f3db0[_0xde4c28(0xbf)](_0x4a1c6b),'h1'==_0x4a1c6b[_0xde4c28(0x8f)]&&(_0x480602=!0x0));if(_0x480602){for(const _0x30eb99 of _0x5f3db0)_0x21d3d1[_0xde4c28(0x95)]('h'+(parseInt(_0x30eb99[_0xde4c28(0x8f)][0x1])+0x1),_0x30eb99);}}[_0x159c81(0xde)](){const _0x53f8c1=_0x159c81,{data:_0xfb56f8,editing:_0x5072fe}=this[_0x53f8c1(0xcc)],_0x34ff4f=_0xfb56f8[_0x53f8c1(0x87)][_0x53f8c1(0xc9)](_0x53f8c1(0xba)),_0x58fe3c=_0xfb56f8[_0x53f8c1(0xc9)](_0xfb56f8[_0x53f8c1(0x8b)](_0x34ff4f));return!!_0x5072fe[_0x53f8c1(0xb6)][_0x53f8c1(0xd5)][_0x53f8c1(0xc5)](_0x58fe3c)[_0x53f8c1(0xd8)]('h1');}[_0x159c81(0xa0)](_0x518204){const _0x4ef8e7=_0x159c81;return this[_0x4ef8e7(0xcc)][_0x4ef8e7(0xd7)][_0x4ef8e7(0xb6)][_0x4ef8e7(0xd5)][_0x4ef8e7(0xd0)](this[_0x4ef8e7(0xd6)],_0x518204),this[_0x4ef8e7(0xd6)][_0x4ef8e7(0xc3)];}[_0x159c81(0xdc)](_0x1e0e8a){const _0x1dd9c0=_0x159c81,_0x44b555=_0x1e0e8a[_0x1dd9c0(0xc2)]();return _0x44b555[_0x1dd9c0(0xc6)](_0x1dd9c0(0xb1))?_0x44b555[_0x1dd9c0(0xca)](_0x1dd9c0(0x9c))?_0x44b555[_0x1dd9c0(0xb0)](0x7,_0x44b555[_0x1dd9c0(0x97)]-0x3):_0x44b555[_0x1dd9c0(0xb0)](0x7):_0x1e0e8a;}}
23
+ const _0x19946a=_0x23a8;(function(_0x2d2f7e,_0x592c87){const _0x323ea4=_0x23a8,_0x5afde1=_0x2d2f7e();while(!![]){try{const _0x1f84c6=-parseInt(_0x323ea4(0x124))/0x1+parseInt(_0x323ea4(0x123))/0x2+-parseInt(_0x323ea4(0x142))/0x3*(-parseInt(_0x323ea4(0x146))/0x4)+parseInt(_0x323ea4(0x129))/0x5+-parseInt(_0x323ea4(0x144))/0x6+-parseInt(_0x323ea4(0x112))/0x7*(parseInt(_0x323ea4(0x134))/0x8)+parseInt(_0x323ea4(0x133))/0x9;if(_0x1f84c6===_0x592c87)break;else _0x5afde1['push'](_0x5afde1['shift']());}catch(_0x32cd59){_0x5afde1['push'](_0x5afde1['shift']());}}}(_0x7645,0x467fd));import{ObservableMixin as _0x2f552b}from'ckeditor5/src/utils.js';import{AIRequestError as _0x1304f6}from'../adapters/aiadapter.js';import{Matcher as _0x5d4b2f,ViewUpcastWriter as _0x1850d6}from'ckeditor5/src/engine.js';function _0x23a8(_0x37e4ec,_0x452040){const _0x7645f5=_0x7645();return _0x23a8=function(_0x23a869,_0x3815b6){_0x23a869=_0x23a869-0xf7;let _0x15d373=_0x7645f5[_0x23a869];return _0x15d373;},_0x23a8(_0x37e4ec,_0x452040);}const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x2f552b(){[_0x19946a(0x130)];[_0x19946a(0xfe)];[_0x19946a(0x116)];[_0x19946a(0x10d)];[_0x19946a(0x105)];[_0x19946a(0x14f)];constructor(_0x2c2f49,_0x1ef4b7,_0x44d362){const _0xce46dc=_0x19946a;super(),this[_0xce46dc(0x130)]=_0x2c2f49,this[_0xce46dc(0xfe)]=_0x1ef4b7,this[_0xce46dc(0x10d)]=document[_0xce46dc(0x119)](_0xce46dc(0xf7)),this[_0xce46dc(0x105)]=new DOMParser(),this[_0xce46dc(0x14f)]=new XMLSerializer(),this[_0xce46dc(0x116)]=_0x44d362,this[_0xce46dc(0xfa)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0xce46dc(0x120),(_0x44d3d6,_0x381934,_0x2fdbbf)=>{const _0x37748d=_0xce46dc;this[_0x37748d(0x116)][_0x37748d(0x11c)]=this[_0x37748d(0xf8)](_0x2fdbbf);}),this[_0xce46dc(0x10f)](this[_0xce46dc(0x116)],_0xce46dc(0x157),(_0x464286,_0x11032e)=>{const _0x5f23e3=_0xce46dc,_0x11dec7=this[_0x5f23e3(0x152)]||this[_0x5f23e3(0x111)];this[_0x5f23e3(0x122)](_0x11032e,_0x11dec7,_0x5f23e3(0x140));}),this[_0xce46dc(0x10f)](this[_0xce46dc(0x116)],_0xce46dc(0xfd),()=>{const _0x1c80bd=_0xce46dc;this[_0x1c80bd(0x116)][_0x1c80bd(0x102)]=this[_0x1c80bd(0x115)],this[_0x1c80bd(0x122)](this[_0x1c80bd(0x132)],this[_0x1c80bd(0x14e)],this[_0x1c80bd(0x10e)],this[_0x1c80bd(0x115)]);}),this[_0xce46dc(0x10f)](this[_0xce46dc(0x116)],_0xce46dc(0x110),()=>{const _0x18c015=_0xce46dc;this[_0x18c015(0x110)]();});}[_0x19946a(0x11e)](){const _0x5c26a0=_0x19946a;this[_0x5c26a0(0x12a)]();}async[_0x19946a(0x151)]({actionId:_0x4068d7,query:_0x29a2f9,htmlContent:_0x77e41,label:_0x666343,mainActionLabel:_0xdbc9f}){const _0x4f22c5=_0x19946a;this[_0x4f22c5(0x116)][_0x4f22c5(0x102)]=_0x666343,this[_0x4f22c5(0x116)][_0x4f22c5(0x147)]=_0xdbc9f,this[_0x4f22c5(0x111)]=_0x77e41,_0x29a2f9&&(this[_0x4f22c5(0x116)][_0x4f22c5(0x12e)]?this[_0x4f22c5(0x122)](_0x29a2f9,_0x77e41,_0x4068d7,_0x666343):this[_0x4f22c5(0x116)][_0x4f22c5(0x13c)](_0x4f22c5(0x118),()=>{const _0x46815b=_0x4f22c5;this[_0x46815b(0x122)](_0x29a2f9,_0x77e41,_0x4068d7,_0x666343);}));}[_0x19946a(0x110)](){const _0x581afe=_0x19946a;this[_0x581afe(0x149)]&&(this[_0x581afe(0x149)]=!0x1,this[_0x581afe(0x116)][_0x581afe(0x159)](),this[_0x581afe(0xfe)][_0x581afe(0x156)]());}[_0x19946a(0x10a)](){const _0x57fccf=_0x19946a;this[_0x57fccf(0x111)]='',this[_0x57fccf(0x152)]='',this[_0x57fccf(0x158)]='',this[_0x57fccf(0x14e)]='',this[_0x57fccf(0x132)]='',this[_0x57fccf(0x115)]='',this[_0x57fccf(0x10e)]=void 0x0,this[_0x57fccf(0x116)][_0x57fccf(0x10a)](),this[_0x57fccf(0x110)]();}async[_0x19946a(0x122)](_0x202e89,_0x45a1f4,_0x12cd01,_0x176f54){const _0x22b1fd=_0x19946a;return this[_0x22b1fd(0x149)]=!0x0,this[_0x22b1fd(0x116)][_0x22b1fd(0x14d)](),this[_0x22b1fd(0x14e)]=_0x45a1f4,this[_0x22b1fd(0x132)]=_0x202e89,this[_0x22b1fd(0x115)]=_0x176f54||_0x202e89,this[_0x22b1fd(0x10e)]=_0x12cd01,new Promise(_0x59dba5=>{const _0x3e12fe=_0x22b1fd;this[_0x3e12fe(0xfe)][_0x3e12fe(0x101)]({'query':_0x202e89,'context':_0x45a1f4,'onData':_0x3943df=>{const _0x1015c1=_0x3e12fe;this[_0x1015c1(0x158)]=_0x3943df,this[_0x1015c1(0x152)]=this[_0x1015c1(0x14c)](this[_0x1015c1(0x158)]);},'actionId':_0x12cd01})[_0x3e12fe(0xfb)](()=>{const _0x5c4ce0=_0x3e12fe;!this[_0x5c4ce0(0x152)]&&this[_0x5c4ce0(0x158)]&&(this[_0x5c4ce0(0x152)]=this[_0x5c4ce0(0x14c)](this[_0x5c4ce0(0x158)],!0x0));})[_0x3e12fe(0x13d)](_0x1bd2f4=>{const _0x1dd26f=_0x3e12fe;_0x1bd2f4 instanceof _0x1304f6?this[_0x1dd26f(0x116)][_0x1dd26f(0x138)](_0x1bd2f4[_0x1dd26f(0x14b)]):this[_0x1dd26f(0x116)][_0x1dd26f(0x138)](),_0x59dba5();})[_0x3e12fe(0x139)](()=>{const _0x22b3f1=_0x3e12fe;this[_0x22b3f1(0x110)](),_0x59dba5();});});}[_0x19946a(0x14c)](_0x47ed19,_0xa0d759=!0x1){const _0x5efbb3=_0x19946a,_0x38907d=hs[_0x5efbb3(0x13b)](_0x47ed19);_0x47ed19=_0x38907d?_0x47ed19[_0x5efbb3(0x12d)](_0x38907d[0x1][_0x5efbb3(0x126)]):_0x47ed19[_0x5efbb3(0x126)]<0x64&&!_0xa0d759?'':this[_0x5efbb3(0x11b)](_0x47ed19);const _0x551a0e=this[_0x5efbb3(0x105)][_0x5efbb3(0x13f)](_0x47ed19,_0x5efbb3(0x143));if(_0x38907d){const _0x30c78f=Array[_0x5efbb3(0x117)](_0x551a0e[_0x5efbb3(0x128)][_0x5efbb3(0x10b)]);_0x30c78f[_0x5efbb3(0x13a)]();for(const _0x8d8ca7 of _0x30c78f){if(_0x8d8ca7[_0x5efbb3(0x114)]==Node[_0x5efbb3(0x107)])break;_0x8d8ca7[_0x5efbb3(0x141)]();}}const _0x6c7029=this[_0x5efbb3(0x130)][_0x5efbb3(0x10c)][_0x5efbb3(0x11f)][_0x5efbb3(0x127)](this[_0x5efbb3(0x14f)][_0x5efbb3(0x104)](_0x551a0e[_0x5efbb3(0x128)]));this[_0x5efbb3(0x131)]()||this[_0x5efbb3(0x12f)](_0x6c7029);const _0x40359b=this[_0x5efbb3(0x130)][_0x5efbb3(0x153)][_0x5efbb3(0xf9)](_0x5efbb3(0x12c)),_0x5b5415=this[_0x5efbb3(0x130)][_0x5efbb3(0x10c)][_0x5efbb3(0x11a)](_0x6c7029);return _0x40359b||_0x5b5415[_0x5efbb3(0x150)][_0x5efbb3(0xff)](),this[_0x5efbb3(0x130)][_0x5efbb3(0x10c)][_0x5efbb3(0x13e)](_0x5b5415);}[_0x19946a(0x12f)](_0x31c6f1){const _0x3c7fa2=_0x19946a,_0x8b277a=new _0x1850d6(this[_0x3c7fa2(0x130)][_0x3c7fa2(0x109)][_0x3c7fa2(0x116)][_0x3c7fa2(0x14a)]),_0x30dbd9=new _0x5d4b2f({'name':/^h[1-5]$/}),_0x55ae12=[];let _0x349f9f=!0x1;for(const _0x998a2e of _0x31c6f1)_0x998a2e['is'](_0x3c7fa2(0xfc))&&_0x30dbd9[_0x3c7fa2(0x154)](_0x998a2e)&&(_0x55ae12[_0x3c7fa2(0x135)](_0x998a2e),'h1'==_0x998a2e[_0x3c7fa2(0x108)]&&(_0x349f9f=!0x0));if(_0x349f9f){for(const _0x39bcaf of _0x55ae12)_0x8b277a[_0x3c7fa2(0x103)]('h'+(parseInt(_0x39bcaf[_0x3c7fa2(0x108)][0x1])+0x1),_0x39bcaf);}}[_0x19946a(0x131)](){const _0x41116b=_0x19946a,{data:_0x482b23,editing:_0x2eee47}=this[_0x41116b(0x130)],_0x2d98b5=_0x482b23[_0x41116b(0x11d)][_0x41116b(0x127)](_0x41116b(0x100)),_0x3b7627=_0x482b23[_0x41116b(0x127)](_0x482b23[_0x41116b(0x11a)](_0x2d98b5));return!!_0x2eee47[_0x41116b(0x116)][_0x41116b(0x12b)][_0x41116b(0x113)](_0x3b7627)[_0x41116b(0x106)]('h1');}[_0x19946a(0xf8)](_0x414c12){const _0x55565f=_0x19946a;return this[_0x55565f(0x130)][_0x55565f(0x109)][_0x55565f(0x116)][_0x55565f(0x12b)][_0x55565f(0x155)](this[_0x55565f(0x10d)],_0x414c12),this[_0x55565f(0x10d)][_0x55565f(0x125)];}[_0x19946a(0x11b)](_0x39650a){const _0x4add7c=_0x19946a,_0x48029d=_0x39650a[_0x4add7c(0x121)]();return _0x48029d[_0x4add7c(0x148)](_0x4add7c(0x145))?_0x48029d[_0x4add7c(0x136)](_0x4add7c(0x137))?_0x48029d[_0x4add7c(0x12d)](0x7,_0x48029d[_0x4add7c(0x126)]-0x3):_0x48029d[_0x4add7c(0x12d)](0x7):_0x39650a;}}function _0x7645(){const _0x258d67=['previousLabel','view','from','render','createElement','toModel','_stripMarkdownSyntax','value','htmlProcessor','destroy','processor','set:currentContext','trim','_handleQuery','381356YPnBHt','360676EUoctl','innerHTML','length','toView','body','1144965JPKbGq','stopListening','domConverter','ai.assistant.preserveComments','substring','isRendered','_normalizeResponseHeadings','editor','_isH1TagSupportEnabled','previousQuery','5419962GdgKfv','7272eAKUuE','push','endsWith','```','handleError','finally','reverse','exec','once','catch','stringify','parseFromString','custom','remove','3WYcKey','text/html','896172hiMBwr','```html','892932MRlyeU','mainAction','startsWith','isProcessing','document','message','_parseAndNormalizeContent','startProcessing','previousContext','_xmlSerializer','markers','updateView','currentContext','config','match','setContentOf','abort','submitPrompt','currentResponse','finishProcessing','div','_sanitizeHTML','get','set','then','element','tryAgainEvent','textAdapter','clear','<h1></h1>','makeRequest','prompt','rename','serializeToString','_domParser','querySelector','ELEMENT_NODE','name','editing','reset','childNodes','data','_sanitizationContainer','previousActionId','listenTo','stopProcessing','initialContext','3437LUqbVL','viewToDom','nodeType'];_0x7645=function(){return _0x258d67;};return _0x7645();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x482e1a=_0x1fba;(function(_0x132632,_0x5b10f7){const _0x483313=_0x1fba,_0x1cd77c=_0x132632();while(!![]){try{const _0x598900=-parseInt(_0x483313(0x16c))/0x1+parseInt(_0x483313(0x18b))/0x2*(parseInt(_0x483313(0x1aa))/0x3)+-parseInt(_0x483313(0x175))/0x4+-parseInt(_0x483313(0x18e))/0x5+-parseInt(_0x483313(0x1a5))/0x6+parseInt(_0x483313(0x1a1))/0x7*(-parseInt(_0x483313(0x18d))/0x8)+parseInt(_0x483313(0x15f))/0x9;if(_0x598900===_0x5b10f7)break;else _0x1cd77c['push'](_0x1cd77c['shift']());}catch(_0x37fa86){_0x1cd77c['push'](_0x1cd77c['shift']());}}}(_0x477f,0x4f81d));import{global as _0x5a0052}from'ckeditor5/src/utils.js';function _0x1fba(_0x46d287,_0x313489){const _0x477f2a=_0x477f();return _0x1fba=function(_0x1fba27,_0x5e156b){_0x1fba27=_0x1fba27-0x15a;let _0x511a04=_0x477f2a[_0x1fba27];return _0x511a04;},_0x1fba(_0x46d287,_0x313489);}import{View as _0x57b58a,ButtonView as _0x3802bf,SpinnerView as _0x140ea8}from'ckeditor5/src/ui.js';import{IconCheck as _0x49fe68,IconCopy as _0x308482}from'ckeditor5/src/icons.js';import{getTranslation as _0x117e9f}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x57b58a{[_0x482e1a(0x15a)];[_0x482e1a(0x17e)];constructor(_0x54c7b9,_0x18c751=''){const _0x15e7be=_0x482e1a;super(_0x54c7b9),this[_0x15e7be(0x162)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x3cf666=this[_0x15e7be(0x17a)];this[_0x15e7be(0x15a)]=new ContentFieldView(_0x54c7b9,_0x18c751),this[_0x15e7be(0x17e)]=this[_0x15e7be(0x192)](),this[_0x15e7be(0x16f)]({'tag':_0x15e7be(0x1a4),'attributes':{'class':['ck',_0x15e7be(0x182),_0x3cf666['if'](_0x15e7be(0x167),_0x15e7be(0x172),_0x371873=>!_0x371873)],'tabindex':'-1'},'children':[{'tag':_0x15e7be(0x1a4),'attributes':{'class':['ck',_0x15e7be(0x17f),_0x3cf666['if'](_0x15e7be(0x183),_0x15e7be(0x189))]},'children':[this[_0x15e7be(0x15a)],{'tag':_0x15e7be(0x1a4),'attributes':{'class':['ck',_0x15e7be(0x160)]},'children':[this[_0x15e7be(0x17e)]]}]}]});}[_0x482e1a(0x1ab)](){const _0xeaa047=_0x482e1a;super[_0xeaa047(0x1ab)](),this[_0xeaa047(0x198)]&&this[_0xeaa047(0x15a)][_0xeaa047(0x187)](this[_0xeaa047(0x198)]);let _0x45527d=!0x1;this['on'](_0xeaa047(0x169),(_0x31706a,_0x557139,_0x1a072e)=>{const _0x1f8d6e=_0xeaa047,_0x5c550b=!this[_0x1f8d6e(0x15a)][_0x1f8d6e(0x15e)][_0x1f8d6e(0x1a2)](_0x1f8d6e(0x1ac));this[_0x1f8d6e(0x15a)][_0x1f8d6e(0x187)](_0x1a072e),this[_0x1f8d6e(0x183)]&&_0x5c550b&&!_0x45527d&&this[_0x1f8d6e(0x15e)][_0x1f8d6e(0x18f)]({'top':this[_0x1f8d6e(0x15e)][_0x1f8d6e(0x18a)],'behavior':_0x1f8d6e(0x1a7)});}),this['on'](_0xeaa047(0x197),(_0x369ebf,_0x16ea93,_0x4b3c72)=>{const _0x26fb7c=_0xeaa047;_0x45527d=!0x1,_0x4b3c72?(this[_0x26fb7c(0x198)]=null,this[_0x26fb7c(0x15a)][_0x26fb7c(0x161)]()):this[_0x26fb7c(0x198)]||this[_0x26fb7c(0x15a)][_0x26fb7c(0x187)]('');}),this[_0xeaa047(0x16e)](this[_0xeaa047(0x15e)],_0xeaa047(0x15b),()=>{_0x45527d=!0x0;}),this[_0xeaa047(0x16e)](this[_0xeaa047(0x15e)],_0xeaa047(0x180),()=>{_0x45527d=!0x0;});}[_0x482e1a(0x19a)](){const _0x4a1e17=_0x482e1a;this[_0x4a1e17(0x15e)][_0x4a1e17(0x19a)]();}[_0x482e1a(0x192)](){const _0x5725f7=_0x482e1a,_0x10496e=this[_0x5725f7(0x166)],_0x54214c=new _0x3802bf(this[_0x5725f7(0x166)]),_0x4f3170=_0x5725f7(0x170);return _0x54214c[_0x5725f7(0x162)]({'label':_0x117e9f(_0x10496e,_0x5725f7(0x18c)),'icon':_0x308482,'class':_0x4f3170,'tooltip':!0x0}),_0x54214c[_0x5725f7(0x1ad)](_0x5725f7(0x167))['to'](this,_0x5725f7(0x198),_0x5a44b0=>!!_0x5a44b0),_0x54214c[_0x5725f7(0x1ad)](_0x5725f7(0x165))['to'](this,_0x5725f7(0x183),_0x344a0f=>!_0x344a0f),_0x54214c['on'](_0x5725f7(0x194),()=>{const _0x551667=_0x5725f7;this[_0x551667(0x188)](this[_0x551667(0x15a)][_0x551667(0x15e)]),_0x54214c[_0x551667(0x1a9)]=_0x49fe68,_0x54214c[_0x551667(0x171)]=_0x4f3170+_0x551667(0x19c),this[_0x551667(0x19a)](),setTimeout(()=>{const _0x1790e8=_0x551667;_0x54214c[_0x1790e8(0x1a9)]=_0x308482,_0x54214c[_0x1790e8(0x171)]=_0x4f3170;},0x3e8);}),_0x54214c;}[_0x482e1a(0x188)](_0xa55055){const _0x47ae73=_0x482e1a,{window:_0x446ac8,document:_0x10d8f7}=_0x5a0052;if(_0x446ac8[_0x47ae73(0x16b)]){const {Blob:_0x2a0f7e,ClipboardItem:_0x42b3a0}=_0x446ac8,_0x34ca06=[new _0x42b3a0({'text/html':new _0x2a0f7e([_0xa55055[_0x47ae73(0x176)]],{'type':_0x47ae73(0x173)}),'text/plain':new _0x2a0f7e([_0xa55055[_0x47ae73(0x15d)]||''],{'type':_0x47ae73(0x19f)})})];navigator[_0x47ae73(0x19d)][_0x47ae73(0x191)](_0x34ca06);}else{const _0x38a403=_0x10d8f7[_0x47ae73(0x196)](_0x47ae73(0x1a4));_0x38a403[_0x47ae73(0x179)][_0x47ae73(0x178)]=_0x47ae73(0x15c),_0x38a403[_0x47ae73(0x179)][_0x47ae73(0x16d)]=_0x47ae73(0x195),_0x38a403[_0x47ae73(0x176)]=_0x47ae73(0x163)+_0xa55055[_0x47ae73(0x176)]+_0x47ae73(0x199),_0x10d8f7[_0x47ae73(0x177)][_0x47ae73(0x1a0)](_0x38a403);const _0x367772=_0x10d8f7[_0x47ae73(0x19b)]();_0x367772[_0x47ae73(0x168)](_0x38a403[_0x47ae73(0x1a6)]),_0x367772[_0x47ae73(0x16a)](_0x38a403[_0x47ae73(0x17c)]);const _0x1d270d=_0x446ac8[_0x47ae73(0x190)]();_0x1d270d[_0x47ae73(0x174)](),_0x1d270d[_0x47ae73(0x193)](_0x367772),_0x10d8f7[_0x47ae73(0x184)](_0x47ae73(0x1a8)),_0x38a403[_0x47ae73(0x185)]();}}}export class ContentFieldView extends _0x57b58a{constructor(_0xedc049,_0x32cab5=''){const _0x25476b=_0x482e1a;super(_0xedc049),this[_0x25476b(0x186)]=this[_0x25476b(0x19e)](),this[_0x25476b(0x16f)]({'tag':_0x25476b(0x1a4),'attributes':{'class':['ck',_0x25476b(0x181),_0x32cab5,_0x25476b(0x164),_0x25476b(0x1a3)]}});}[_0x482e1a(0x187)](_0x133f0d){const _0x4d4eb1=_0x482e1a;this[_0x4d4eb1(0x15e)][_0x4d4eb1(0x176)]=_0x133f0d;}[_0x482e1a(0x161)](){const _0x5e137e=_0x482e1a;this[_0x5e137e(0x15e)][_0x5e137e(0x1a0)](this[_0x5e137e(0x186)][_0x5e137e(0x15e)]);}[_0x482e1a(0x19e)](){const _0x5e8653=_0x482e1a,_0x42a9c6=new _0x57b58a(),_0x11901b=this[_0x5e8653(0x166)],_0x4871aa=new _0x140ea8();return _0x4871aa[_0x5e8653(0x167)]=!0x0,_0x42a9c6[_0x5e8653(0x16f)]({'tag':_0x5e8653(0x1a4),'attributes':{'class':['ck',_0x5e8653(0x17b)]},'children':[_0x4871aa,{'text':_0x117e9f(_0x11901b,_0x5e8653(0x17d))}]}),_0x42a9c6[_0x5e8653(0x1ab)](),_0x42a9c6;}}function _0x477f(){const _0x479ec1=['Copy','8OmfZqp','972290dDKJOP','scrollTo','getSelection','write','_createCopyButton','addRange','execute','-9999px','createElement','change:isProcessing','value','<span>]</span>','focus','createRange','\x20ck-ai-form__copy-button--copied','clipboard','_createLoader','text/plain','appendChild','384181oUXlpH','querySelector','ck-ai-form__content-field','div','1768020CxASel','firstElementChild','smooth','copy','icon','348438XyrFsQ','render','.ck-ai-form__loader','bind','contentFieldView','wheel','absolute','textContent','element','17386227NAlKEo','ck-ai-form__copy-button-wrapper','appendLoader','set','<span>[</span>','ck-reset_all-excluded','isEnabled','locale','isVisible','setStartAfter','change:value','setEndBefore','ClipboardItem','579404dZEHOI','left','listenTo','setTemplate','ck-ai-form__copy-button','class','ck-hidden','text/html','removeAllRanges','2395492zLzJNU','innerHTML','body','position','style','bindTemplate','ck-ai-form__loader','lastElementChild','AI\x20is\x20writing...','copyButtonView','ck-ai-form__content-area','mousedown','ck-content','ck-ai-form__content-area-wrapper','isProcessing','execCommand','remove','loaderView','setContent','_copyHTMLToClipboard','ck-ai-form__content-area--processing','scrollHeight','2yMFVUS'];_0x477f=function(){return _0x479ec1;};return _0x477f();}
23
+ function _0x95b8(){const _0x4c2148=['isVisible','setStartAfter','-9999px','write','render','scrollHeight','value','AI\x20is\x20writing...','ck-ai-form__copy-button','listenTo','setContent','ck-ai-form__content-area','<span>[</span>','contentFieldView','execCommand','text/html','textContent','12uASlby','18484OHCTko','17tPGuMj','createElement','clipboard','appendChild','362298aoiftr','class','set','_copyHTMLToClipboard','mousedown','bind','ck-ai-form__content-area-wrapper','body','3229061PRmFYg','loaderView','style','getSelection','removeAllRanges','isEnabled','24246xAMyYU','ck-ai-form__content-field','setTemplate','1454523lobaDZ','absolute','position','_createCopyButton','createRange','copyButtonView','ck-ai-form__copy-button-wrapper','10AYBGYm','4duUjif','bindTemplate','wheel','ck-ai-form__loader','locale','ck-reset_all-excluded','ck-ai-form__content-area--processing','change:value','<span>]</span>','firstElementChild','Copy','ClipboardItem','scrollTo','.ck-ai-form__loader','ck-content','lastElementChild','isProcessing','appendLoader','smooth','addRange','element','copy','change:isProcessing','_createLoader','setEndBefore','777444dJvbxF','ck-hidden','innerHTML','text/plain','64790wNOujU','216mdXhZo','left','\x20ck-ai-form__copy-button--copied','icon','remove','div','querySelector','execute','focus'];_0x95b8=function(){return _0x4c2148;};return _0x95b8();}const _0x8f50c0=_0x50ec;(function(_0x102a6d,_0x4011a5){const _0x2383e1=_0x50ec,_0x382d40=_0x102a6d();while(!![]){try{const _0x4ff05f=parseInt(_0x2383e1(0x114))/0x1*(parseInt(_0x2383e1(0x113))/0x2)+-parseInt(_0x2383e1(0xf3))/0x3*(-parseInt(_0x2383e1(0xda))/0x4)+-parseInt(_0x2383e1(0xd9))/0x5*(parseInt(_0x2383e1(0x118))/0x6)+parseInt(_0x2383e1(0xd2))/0x7+parseInt(_0x2383e1(0xf8))/0x8*(-parseInt(_0x2383e1(0xcf))/0x9)+-parseInt(_0x2383e1(0xf7))/0xa+parseInt(_0x2383e1(0xc9))/0xb*(-parseInt(_0x2383e1(0x112))/0xc);if(_0x4ff05f===_0x4011a5)break;else _0x382d40['push'](_0x382d40['shift']());}catch(_0x32cdfa){_0x382d40['push'](_0x382d40['shift']());}}}(_0x95b8,0x1fdd5));function _0x50ec(_0x50e1a1,_0x323822){const _0x95b851=_0x95b8();return _0x50ec=function(_0x50ec6a,_0x2d1a75){_0x50ec6a=_0x50ec6a-0xc5;let _0xd2078a=_0x95b851[_0x50ec6a];return _0xd2078a;},_0x50ec(_0x50e1a1,_0x323822);}import{global as _0x39352b}from'ckeditor5/src/utils.js';import{View as _0xdb5ef4,ButtonView as _0x191ffd,SpinnerView as _0x3a8841}from'ckeditor5/src/ui.js';import{IconCheck as _0x4406cd,IconCopy as _0x536b14}from'ckeditor5/src/icons.js';import{getTranslation as _0x2fc6b4}from'../../utils/common-translations.js';export class AIFormContentArea extends _0xdb5ef4{[_0x8f50c0(0x10e)];[_0x8f50c0(0xd7)];constructor(_0x3ba779,_0x1b06c8=''){const _0x29de2e=_0x8f50c0;super(_0x3ba779),this[_0x29de2e(0x11a)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0xd99d5e=this[_0x29de2e(0xdb)];this[_0x29de2e(0x10e)]=new ContentFieldView(_0x3ba779,_0x1b06c8),this[_0x29de2e(0xd7)]=this[_0x29de2e(0xd5)](),this[_0x29de2e(0xd1)]({'tag':_0x29de2e(0xfd),'attributes':{'class':['ck',_0x29de2e(0xc7),_0xd99d5e['if'](_0x29de2e(0x101),_0x29de2e(0xf4),_0x46c448=>!_0x46c448)],'tabindex':'-1'},'children':[{'tag':_0x29de2e(0xfd),'attributes':{'class':['ck',_0x29de2e(0x10c),_0xd99d5e['if'](_0x29de2e(0xea),_0x29de2e(0xe0))]},'children':[this[_0x29de2e(0x10e)],{'tag':_0x29de2e(0xfd),'attributes':{'class':['ck',_0x29de2e(0xd8)]},'children':[this[_0x29de2e(0xd7)]]}]}]});}[_0x8f50c0(0x105)](){const _0x40c12f=_0x8f50c0;super[_0x40c12f(0x105)](),this[_0x40c12f(0x107)]&&this[_0x40c12f(0x10e)][_0x40c12f(0x10b)](this[_0x40c12f(0x107)]);let _0x59bd84=!0x1;this['on'](_0x40c12f(0xe1),(_0x434866,_0x60d793,_0x4144e6)=>{const _0x241087=_0x40c12f,_0x4aee59=!this[_0x241087(0x10e)][_0x241087(0xee)][_0x241087(0xfe)](_0x241087(0xe7));this[_0x241087(0x10e)][_0x241087(0x10b)](_0x4144e6),this[_0x241087(0xea)]&&_0x4aee59&&!_0x59bd84&&this[_0x241087(0xee)][_0x241087(0xe6)]({'top':this[_0x241087(0xee)][_0x241087(0x106)],'behavior':_0x241087(0xec)});}),this['on'](_0x40c12f(0xf0),(_0x4f360b,_0x483fd5,_0x4019e4)=>{const _0xb77f9a=_0x40c12f;_0x59bd84=!0x1,_0x4019e4?(this[_0xb77f9a(0x107)]=null,this[_0xb77f9a(0x10e)][_0xb77f9a(0xeb)]()):this[_0xb77f9a(0x107)]||this[_0xb77f9a(0x10e)][_0xb77f9a(0x10b)]('');}),this[_0x40c12f(0x10a)](this[_0x40c12f(0xee)],_0x40c12f(0xdc),()=>{_0x59bd84=!0x0;}),this[_0x40c12f(0x10a)](this[_0x40c12f(0xee)],_0x40c12f(0xc5),()=>{_0x59bd84=!0x0;});}[_0x8f50c0(0x100)](){const _0x1429ae=_0x8f50c0;this[_0x1429ae(0xee)][_0x1429ae(0x100)]();}[_0x8f50c0(0xd5)](){const _0x1c1903=_0x8f50c0,_0x11cca3=this[_0x1c1903(0xde)],_0x22cbab=new _0x191ffd(this[_0x1c1903(0xde)]),_0x5d6345=_0x1c1903(0x109);return _0x22cbab[_0x1c1903(0x11a)]({'label':_0x2fc6b4(_0x11cca3,_0x1c1903(0xe4)),'icon':_0x536b14,'class':_0x5d6345,'tooltip':!0x0}),_0x22cbab[_0x1c1903(0xc6)](_0x1c1903(0x101))['to'](this,_0x1c1903(0x107),_0xb8877a=>!!_0xb8877a),_0x22cbab[_0x1c1903(0xc6)](_0x1c1903(0xce))['to'](this,_0x1c1903(0xea),_0x291680=>!_0x291680),_0x22cbab['on'](_0x1c1903(0xff),()=>{const _0xf02384=_0x1c1903;this[_0xf02384(0x11b)](this[_0xf02384(0x10e)][_0xf02384(0xee)]),_0x22cbab[_0xf02384(0xfb)]=_0x4406cd,_0x22cbab[_0xf02384(0x119)]=_0x5d6345+_0xf02384(0xfa),this[_0xf02384(0x100)](),setTimeout(()=>{const _0x3811d8=_0xf02384;_0x22cbab[_0x3811d8(0xfb)]=_0x536b14,_0x22cbab[_0x3811d8(0x119)]=_0x5d6345;},0x3e8);}),_0x22cbab;}[_0x8f50c0(0x11b)](_0x30e227){const _0x9d335f=_0x8f50c0,{window:_0x3b5f6b,document:_0x48e506}=_0x39352b;if(_0x3b5f6b[_0x9d335f(0xe5)]){const {Blob:_0x4e5299,ClipboardItem:_0x274711}=_0x3b5f6b,_0x43a2d5=[new _0x274711({'text/html':new _0x4e5299([_0x30e227[_0x9d335f(0xf5)]],{'type':_0x9d335f(0x110)}),'text/plain':new _0x4e5299([_0x30e227[_0x9d335f(0x111)]||''],{'type':_0x9d335f(0xf6)})})];navigator[_0x9d335f(0x116)][_0x9d335f(0x104)](_0x43a2d5);}else{const _0x416405=_0x48e506[_0x9d335f(0x115)](_0x9d335f(0xfd));_0x416405[_0x9d335f(0xcb)][_0x9d335f(0xd4)]=_0x9d335f(0xd3),_0x416405[_0x9d335f(0xcb)][_0x9d335f(0xf9)]=_0x9d335f(0x103),_0x416405[_0x9d335f(0xf5)]=_0x9d335f(0x10d)+_0x30e227[_0x9d335f(0xf5)]+_0x9d335f(0xe2),_0x48e506[_0x9d335f(0xc8)][_0x9d335f(0x117)](_0x416405);const _0x2d9328=_0x48e506[_0x9d335f(0xd6)]();_0x2d9328[_0x9d335f(0x102)](_0x416405[_0x9d335f(0xe3)]),_0x2d9328[_0x9d335f(0xf2)](_0x416405[_0x9d335f(0xe9)]);const _0x4eae1b=_0x3b5f6b[_0x9d335f(0xcc)]();_0x4eae1b[_0x9d335f(0xcd)](),_0x4eae1b[_0x9d335f(0xed)](_0x2d9328),_0x48e506[_0x9d335f(0x10f)](_0x9d335f(0xef)),_0x416405[_0x9d335f(0xfc)]();}}}export class ContentFieldView extends _0xdb5ef4{constructor(_0x253c79,_0x342113=''){const _0x15cb90=_0x8f50c0;super(_0x253c79),this[_0x15cb90(0xca)]=this[_0x15cb90(0xf1)](),this[_0x15cb90(0xd1)]({'tag':_0x15cb90(0xfd),'attributes':{'class':['ck',_0x15cb90(0xe8),_0x342113,_0x15cb90(0xdf),_0x15cb90(0xd0)]}});}[_0x8f50c0(0x10b)](_0x4c5e68){const _0x112416=_0x8f50c0;this[_0x112416(0xee)][_0x112416(0xf5)]=_0x4c5e68;}[_0x8f50c0(0xeb)](){const _0x5b461f=_0x8f50c0;this[_0x5b461f(0xee)][_0x5b461f(0x117)](this[_0x5b461f(0xca)][_0x5b461f(0xee)]);}[_0x8f50c0(0xf1)](){const _0x832b0a=_0x8f50c0,_0x51dd14=new _0xdb5ef4(),_0x5a4ed0=this[_0x832b0a(0xde)],_0x2c38c8=new _0x3a8841();return _0x2c38c8[_0x832b0a(0x101)]=!0x0,_0x51dd14[_0x832b0a(0xd1)]({'tag':_0x832b0a(0xfd),'attributes':{'class':['ck',_0x832b0a(0xdd)]},'children':[_0x2c38c8,{'text':_0x2fc6b4(_0x5a4ed0,_0x832b0a(0x108))}]}),_0x51dd14[_0x832b0a(0x105)](),_0x51dd14;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2001(_0x5cea4c,_0x3c62c8){const _0x45d1c3=_0x45d1();return _0x2001=function(_0x20015c,_0x157fdc){_0x20015c=_0x20015c-0xf2;let _0x279615=_0x45d1c3[_0x20015c];return _0x279615;},_0x2001(_0x5cea4c,_0x3c62c8);}(function(_0x2f513a,_0x314e91){const _0x9c0156=_0x2001,_0x2578d9=_0x2f513a();while(!![]){try{const _0x2ea52a=-parseInt(_0x9c0156(0xfe))/0x1*(-parseInt(_0x9c0156(0xfd))/0x2)+parseInt(_0x9c0156(0x101))/0x3+-parseInt(_0x9c0156(0xfc))/0x4*(-parseInt(_0x9c0156(0xf7))/0x5)+parseInt(_0x9c0156(0xff))/0x6*(-parseInt(_0x9c0156(0xf2))/0x7)+-parseInt(_0x9c0156(0xfa))/0x8+parseInt(_0x9c0156(0xf8))/0x9*(parseInt(_0x9c0156(0xf5))/0xa)+parseInt(_0x9c0156(0xf6))/0xb*(-parseInt(_0x9c0156(0xf3))/0xc);if(_0x2ea52a===_0x314e91)break;else _0x2578d9['push'](_0x2578d9['shift']());}catch(_0x234e19){_0x2578d9['push'](_0x2578d9['shift']());}}}(_0x45d1,0x2e9b7));import{IconError as _0x15225c}from'ckeditor5/src/icons.js';import{View as _0x3dda4f,IconView as _0xde6b5a}from'ckeditor5/src/ui.js';function _0x45d1(){const _0x31687c=['36630WQKBZv','1250194htNnGh','31760JMXVyg','387aYzfQw','bindTemplate','1580752NSGGcp','text','56XABZtl','743474kbKWsc','1zYlYhT','54EyqtBF','set','356361FmjLqZ','content','setTemplate','div','182630BBmsrL','12SnSBoR','ck-ai-form__error'];_0x45d1=function(){return _0x31687c;};return _0x45d1();}export class AIFormErrorView extends _0x3dda4f{constructor(_0x367e78,_0x49e9cf=''){const _0x357859=_0x2001;super(_0x367e78);const _0x4d7131=new _0xde6b5a(),_0x29d272=this[_0x357859(0xf9)];this[_0x357859(0x100)](_0x357859(0xfb),_0x49e9cf),_0x4d7131[_0x357859(0x102)]=_0x15225c,this[_0x357859(0x103)]({'tag':_0x357859(0x104),'attributes':{'class':['ck',_0x357859(0xf4)]},'children':[_0x4d7131,{'text':_0x29d272['to'](_0x357859(0xfb))}]});}}
23
+ function _0xe904(_0x4e469c,_0x3480d4){const _0x30718f=_0x3071();return _0xe904=function(_0xe90499,_0x50e7e0){_0xe90499=_0xe90499-0x1a6;let _0x36f0f5=_0x30718f[_0xe90499];return _0x36f0f5;},_0xe904(_0x4e469c,_0x3480d4);}function _0x3071(){const _0x56cff7=['set','571946xZwxCo','3366840cTpkDh','7730bUTWan','ck-ai-form__error','2991lqxmrl','div','content','235454IKCRon','text','32XHIfeW','383490RiDnYT','184JaOZqm','bindTemplate','setTemplate','378777qNcXTe','696vmMEuN'];_0x3071=function(){return _0x56cff7;};return _0x3071();}(function(_0x4f199f,_0x103cf5){const _0x456ff5=_0xe904,_0x46e269=_0x4f199f();while(!![]){try{const _0x451127=-parseInt(_0x456ff5(0x1aa))/0x1+parseInt(_0x456ff5(0x1b4))/0x2+parseInt(_0x456ff5(0x1a7))/0x3*(parseInt(_0x456ff5(0x1ae))/0x4)+parseInt(_0x456ff5(0x1b6))/0x5*(parseInt(_0x456ff5(0x1b2))/0x6)+-parseInt(_0x456ff5(0x1b1))/0x7*(-parseInt(_0x456ff5(0x1ac))/0x8)+parseInt(_0x456ff5(0x1ad))/0x9+-parseInt(_0x456ff5(0x1b5))/0xa;if(_0x451127===_0x103cf5)break;else _0x46e269['push'](_0x46e269['shift']());}catch(_0x52bb06){_0x46e269['push'](_0x46e269['shift']());}}}(_0x3071,0x305c7));import{IconError as _0x301571}from'ckeditor5/src/icons.js';import{View as _0x2c86e6,IconView as _0x26e656}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x2c86e6{constructor(_0x5b5caf,_0x1d6a30=''){const _0x2e055f=_0xe904;super(_0x5b5caf);const _0xee9315=new _0x26e656(),_0xf40618=this[_0x2e055f(0x1af)];this[_0x2e055f(0x1b3)](_0x2e055f(0x1ab),_0x1d6a30),_0xee9315[_0x2e055f(0x1a9)]=_0x301571,this[_0x2e055f(0x1b0)]({'tag':_0x2e055f(0x1a8),'attributes':{'class':['ck',_0x2e055f(0x1a6)]},'children':[_0xee9315,{'text':_0xf40618['to'](_0x2e055f(0x1ab))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5512ff=_0x4af6;(function(_0x5122a4,_0x555091){const _0x599bad=_0x4af6,_0x5bdf2f=_0x5122a4();while(!![]){try{const _0x316bc4=-parseInt(_0x599bad(0x161))/0x1*(-parseInt(_0x599bad(0x171))/0x2)+parseInt(_0x599bad(0x17b))/0x3*(parseInt(_0x599bad(0x185))/0x4)+-parseInt(_0x599bad(0x192))/0x5+-parseInt(_0x599bad(0x18d))/0x6+parseInt(_0x599bad(0x195))/0x7+parseInt(_0x599bad(0x175))/0x8*(parseInt(_0x599bad(0x191))/0x9)+-parseInt(_0x599bad(0x165))/0xa*(parseInt(_0x599bad(0x169))/0xb);if(_0x316bc4===_0x555091)break;else _0x5bdf2f['push'](_0x5bdf2f['shift']());}catch(_0x1c6b4e){_0x5bdf2f['push'](_0x5bdf2f['shift']());}}}(_0x53cf,0x52a2d));import{Rect as _0x41e106,global as _0x2d9a08,isVisible as _0x37bcaa}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x415906,IconSubmit as _0x441fce}from'ckeditor5/src/icons.js';function _0x53cf(){const _0x3c6da0=['enter','10QOCPbe','queryView','focusLast','_createSubmitButton','6010323QAAXkx','excludeScrollbarsAndBorders','uiLanguageDirection','filteredView','focusFirst','History','isVisible','Submit','1010622YYpBWn','left','focusableChildren','add','16xHKIjn','fieldView','focus','showHistoryButtonView','keystrokes','render','134226gwqrKv','maxRows','isOn','set','target','minRows','locale','ck-ai-form__submit','resultsView','isEnabled','28gpuLxj','fire','bind','execute','requestAnimationFrame','submitButtonView','width','fieldWrapperChildren','3985338bVvqDW','ck-ai-form__toggle-history','window','isEmpty','2402910RpIAGP','1940070XWZkfe','update','_createShowHistoryButton','4092354SFAbyS','children','value','style','right','focusCycler','element','1dCItVu','rtl','submit'];_0x53cf=function(){return _0x3c6da0;};return _0x53cf();}import{AutocompleteView as _0x163e84,ButtonView as _0x32b95f}from'ckeditor5/src/ui.js';import{getTranslation as _0x17b804}from'../../utils/common-translations.js';function _0x4af6(_0x24e880,_0x1fc10e){const _0x53cf0f=_0x53cf();return _0x4af6=function(_0x4af699,_0xf52e78){_0x4af699=_0x4af699-0x15b;let _0x516480=_0x53cf0f[_0x4af699];return _0x516480;},_0x4af6(_0x24e880,_0x1fc10e);}export class AIFormPromptView extends _0x163e84{[_0x5512ff(0x18a)];[_0x5512ff(0x178)];constructor(_0x6f563c,_0x526506){const _0x57314c=_0x5512ff;super(_0x6f563c,_0x526506),this[_0x57314c(0x166)][_0x57314c(0x176)][_0x57314c(0x180)]=0x1,this[_0x57314c(0x166)][_0x57314c(0x176)][_0x57314c(0x17c)]=0x3,this[_0x57314c(0x18a)]=this[_0x57314c(0x168)](),this[_0x57314c(0x178)]=this[_0x57314c(0x194)](),this[_0x57314c(0x173)][_0x57314c(0x174)](this[_0x57314c(0x178)],0x1),this[_0x57314c(0x173)][_0x57314c(0x174)](this[_0x57314c(0x18a)]);}[_0x5512ff(0x17a)](){const _0x39d5b7=_0x5512ff;super[_0x39d5b7(0x17a)](),this[_0x39d5b7(0x166)][_0x39d5b7(0x18c)][_0x39d5b7(0x174)](this[_0x39d5b7(0x178)]),this[_0x39d5b7(0x15b)][_0x39d5b7(0x174)](this[_0x39d5b7(0x18a)]),this[_0x39d5b7(0x179)][_0x39d5b7(0x17e)](_0x39d5b7(0x164),(_0xe57898,_0x342f46)=>{const _0x471b36=_0x39d5b7;_0xe57898[_0x471b36(0x17f)]==this[_0x471b36(0x166)][_0x471b36(0x176)][_0x471b36(0x160)]&&(this[_0x471b36(0x163)](),_0x342f46());});}[_0x5512ff(0x168)](){const _0x63dee3=_0x5512ff,_0x2685d6=new _0x32b95f(this[_0x63dee3(0x181)]),_0x5036a2=this[_0x63dee3(0x181)];return _0x2685d6[_0x63dee3(0x17e)]({'icon':_0x441fce,'label':_0x17b804(_0x5036a2,_0x63dee3(0x170)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x63dee3(0x182)}),_0x2685d6['on'](_0x63dee3(0x188),()=>{const _0x30c71e=_0x63dee3;this[_0x30c71e(0x163)]();}),_0x2685d6[_0x63dee3(0x187)](_0x63dee3(0x184))['to'](this[_0x63dee3(0x166)][_0x63dee3(0x176)],_0x63dee3(0x190),this,_0x63dee3(0x184),(_0x23c7bb,_0x5dcec4)=>!_0x23c7bb&&_0x5dcec4),_0x2685d6;}[_0x5512ff(0x194)](){const _0x1fe8cf=_0x5512ff,_0x28815d=new _0x32b95f(this[_0x1fe8cf(0x181)]),_0x283d86=this[_0x1fe8cf(0x183)],_0x38727d=this[_0x1fe8cf(0x181)];_0x28815d[_0x1fe8cf(0x17e)]({'label':_0x17b804(_0x38727d,_0x1fe8cf(0x16e)),'withText':!0x1,'icon':_0x415906,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1fe8cf(0x18e)}),_0x28815d[_0x1fe8cf(0x187)](_0x1fe8cf(0x17d))['to'](_0x283d86,_0x1fe8cf(0x16f)),_0x28815d[_0x1fe8cf(0x187)](_0x1fe8cf(0x184))['to'](this,_0x1fe8cf(0x184)),_0x28815d['on'](_0x1fe8cf(0x188),()=>{const _0xe271d4=_0x1fe8cf;_0x283d86[_0xe271d4(0x16f)]=!_0x283d86[_0xe271d4(0x16f)],_0x283d86[_0xe271d4(0x16f)]?this[_0xe271d4(0x16c)][_0xe271d4(0x177)]():this[_0xe271d4(0x177)]();});const _0x3bbbd1=()=>{const _0x32f156=_0x1fe8cf;_0x2d9a08[_0x32f156(0x18f)][_0x32f156(0x189)](()=>{const _0x3d047f=_0x32f156;if(_0x37bcaa(this[_0x3d047f(0x160)])){const _0x338a30=new _0x41e106(this[_0x3d047f(0x166)][_0x3d047f(0x176)][_0x3d047f(0x160)]),_0x4bf32c=_0x338a30[_0x3d047f(0x18b)],_0x5ddb05=_0x3d047f(0x162)===_0x38727d[_0x3d047f(0x16b)]?_0x3d047f(0x172):_0x3d047f(0x15e);_0x338a30[_0x3d047f(0x16a)](),_0x28815d[_0x3d047f(0x160)][_0x3d047f(0x15d)][_0x5ddb05]=_0x4bf32c-_0x338a30[_0x3d047f(0x18b)]+0x1+'px';}});};return this[_0x1fe8cf(0x166)][_0x1fe8cf(0x176)]['on'](_0x1fe8cf(0x193),_0x3bbbd1),this['on'](_0x1fe8cf(0x17a),_0x3bbbd1),_0x28815d;}[_0x5512ff(0x163)](){const _0x63d8de=_0x5512ff,_0x228a36=this[_0x63d8de(0x166)][_0x63d8de(0x176)][_0x63d8de(0x160)][_0x63d8de(0x15c)];this[_0x63d8de(0x186)](_0x63d8de(0x163),_0x228a36);}[_0x5512ff(0x177)](_0x49f1d4){const _0x1f626f=_0x5512ff;-0x1===_0x49f1d4?this[_0x1f626f(0x15f)][_0x1f626f(0x167)]():this[_0x1f626f(0x15f)][_0x1f626f(0x16d)]();}}
23
+ function _0x2a9d(){const _0x2f134d=['isOn','_createShowHistoryButton','3767796qLOjod','focusableChildren','470232sOJFfj','locale','element','resultsView','ck-ai-form__toggle-history','execute','focusCycler','maxRows','queryView','showHistoryButtonView','update','isEnabled','render','right','width','focus','uiLanguageDirection','fire','4313432ILNixR','value','add','requestAnimationFrame','focusLast','style','ck-ai-form__submit','isVisible','fieldWrapperChildren','children','focusFirst','submitButtonView','set','keystrokes','_createSubmitButton','window','6724440JrFDcA','38KBhNiw','excludeScrollbarsAndBorders','target','1082532yAErrE','enter','bind','minRows','History','20nqozJC','313530DulTMY','rtl','Submit','43541WemaeY','fieldView','isEmpty','left','submit','filteredView'];_0x2a9d=function(){return _0x2f134d;};return _0x2a9d();}const _0x2d2c9c=_0x5167;(function(_0x1b444e,_0xfab4c0){const _0x37ed70=_0x5167,_0x181bb4=_0x1b444e();while(!![]){try{const _0x5c6caa=parseInt(_0x37ed70(0x125))/0x1*(-parseInt(_0x37ed70(0x152))/0x2)+-parseInt(_0x37ed70(0x155))/0x3+parseInt(_0x37ed70(0x151))/0x4+-parseInt(_0x37ed70(0x121))/0x5*(-parseInt(_0x37ed70(0x12f))/0x6)+-parseInt(_0x37ed70(0x122))/0x7+parseInt(_0x37ed70(0x141))/0x8+-parseInt(_0x37ed70(0x12d))/0x9;if(_0x5c6caa===_0xfab4c0)break;else _0x181bb4['push'](_0x181bb4['shift']());}catch(_0x5b48eb){_0x181bb4['push'](_0x181bb4['shift']());}}}(_0x2a9d,0xd762c));import{Rect as _0x2a6634,global as _0x470b18,isVisible as _0x3d4bc9}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x34ea11,IconSubmit as _0x18ef55}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x86cc5f,ButtonView as _0x38655d}from'ckeditor5/src/ui.js';function _0x5167(_0x30fb7b,_0x43e908){const _0x2a9df5=_0x2a9d();return _0x5167=function(_0x5167a5,_0x23d3df){_0x5167a5=_0x5167a5-0x11d;let _0x5b3ae7=_0x2a9df5[_0x5167a5];return _0x5b3ae7;},_0x5167(_0x30fb7b,_0x43e908);}import{getTranslation as _0x284464}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x86cc5f{[_0x2d2c9c(0x14c)];[_0x2d2c9c(0x138)];constructor(_0x4d8308,_0x36ce1f){const _0x154e6c=_0x2d2c9c;super(_0x4d8308,_0x36ce1f),this[_0x154e6c(0x137)][_0x154e6c(0x126)][_0x154e6c(0x11f)]=0x1,this[_0x154e6c(0x137)][_0x154e6c(0x126)][_0x154e6c(0x136)]=0x3,this[_0x154e6c(0x14c)]=this[_0x154e6c(0x14f)](),this[_0x154e6c(0x138)]=this[_0x154e6c(0x12c)](),this[_0x154e6c(0x12e)][_0x154e6c(0x143)](this[_0x154e6c(0x138)],0x1),this[_0x154e6c(0x12e)][_0x154e6c(0x143)](this[_0x154e6c(0x14c)]);}[_0x2d2c9c(0x13b)](){const _0xb83349=_0x2d2c9c;super[_0xb83349(0x13b)](),this[_0xb83349(0x137)][_0xb83349(0x149)][_0xb83349(0x143)](this[_0xb83349(0x138)]),this[_0xb83349(0x14a)][_0xb83349(0x143)](this[_0xb83349(0x14c)]),this[_0xb83349(0x14e)][_0xb83349(0x14d)](_0xb83349(0x11d),(_0x503687,_0x245da0)=>{const _0x38d71f=_0xb83349;_0x503687[_0x38d71f(0x154)]==this[_0x38d71f(0x137)][_0x38d71f(0x126)][_0x38d71f(0x131)]&&(this[_0x38d71f(0x129)](),_0x245da0());});}[_0x2d2c9c(0x14f)](){const _0x10db35=_0x2d2c9c,_0x1f197c=new _0x38655d(this[_0x10db35(0x130)]),_0x4e5ee4=this[_0x10db35(0x130)];return _0x1f197c[_0x10db35(0x14d)]({'icon':_0x18ef55,'label':_0x284464(_0x4e5ee4,_0x10db35(0x124)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x10db35(0x147)}),_0x1f197c['on'](_0x10db35(0x134),()=>{const _0x2f8e38=_0x10db35;this[_0x2f8e38(0x129)]();}),_0x1f197c[_0x10db35(0x11e)](_0x10db35(0x13a))['to'](this[_0x10db35(0x137)][_0x10db35(0x126)],_0x10db35(0x127),this,_0x10db35(0x13a),(_0x155487,_0x2be93a)=>!_0x155487&&_0x2be93a),_0x1f197c;}[_0x2d2c9c(0x12c)](){const _0x9cf6ec=_0x2d2c9c,_0x4799f3=new _0x38655d(this[_0x9cf6ec(0x130)]),_0x4ce4b7=this[_0x9cf6ec(0x132)],_0x415cf8=this[_0x9cf6ec(0x130)];_0x4799f3[_0x9cf6ec(0x14d)]({'label':_0x284464(_0x415cf8,_0x9cf6ec(0x120)),'withText':!0x1,'icon':_0x34ea11,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x9cf6ec(0x133)}),_0x4799f3[_0x9cf6ec(0x11e)](_0x9cf6ec(0x12b))['to'](_0x4ce4b7,_0x9cf6ec(0x148)),_0x4799f3[_0x9cf6ec(0x11e)](_0x9cf6ec(0x13a))['to'](this,_0x9cf6ec(0x13a)),_0x4799f3['on'](_0x9cf6ec(0x134),()=>{const _0x2b91c5=_0x9cf6ec;_0x4ce4b7[_0x2b91c5(0x148)]=!_0x4ce4b7[_0x2b91c5(0x148)],_0x4ce4b7[_0x2b91c5(0x148)]?this[_0x2b91c5(0x12a)][_0x2b91c5(0x13e)]():this[_0x2b91c5(0x13e)]();});const _0x237c77=()=>{const _0x6b2ec=_0x9cf6ec;_0x470b18[_0x6b2ec(0x150)][_0x6b2ec(0x144)](()=>{const _0x6203d6=_0x6b2ec;if(_0x3d4bc9(this[_0x6203d6(0x131)])){const _0x43e7d9=new _0x2a6634(this[_0x6203d6(0x137)][_0x6203d6(0x126)][_0x6203d6(0x131)]),_0x1cdeb4=_0x43e7d9[_0x6203d6(0x13d)],_0x1b0b85=_0x6203d6(0x123)===_0x415cf8[_0x6203d6(0x13f)]?_0x6203d6(0x128):_0x6203d6(0x13c);_0x43e7d9[_0x6203d6(0x153)](),_0x4799f3[_0x6203d6(0x131)][_0x6203d6(0x146)][_0x1b0b85]=_0x1cdeb4-_0x43e7d9[_0x6203d6(0x13d)]+0x1+'px';}});};return this[_0x9cf6ec(0x137)][_0x9cf6ec(0x126)]['on'](_0x9cf6ec(0x139),_0x237c77),this['on'](_0x9cf6ec(0x13b),_0x237c77),_0x4799f3;}[_0x2d2c9c(0x129)](){const _0x5a2bc9=_0x2d2c9c,_0x365a7d=this[_0x5a2bc9(0x137)][_0x5a2bc9(0x126)][_0x5a2bc9(0x131)][_0x5a2bc9(0x142)];this[_0x5a2bc9(0x140)](_0x5a2bc9(0x129),_0x365a7d);}[_0x2d2c9c(0x13e)](_0x3fe417){const _0x1f185e=_0x2d2c9c;-0x1===_0x3fe417?this[_0x1f185e(0x135)][_0x1f185e(0x145)]():this[_0x1f185e(0x135)][_0x1f185e(0x14b)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x19de(_0x3890f1,_0x85c621){const _0x2a3ce7=_0x2a3c();return _0x19de=function(_0x19de37,_0x22e0d5){_0x19de37=_0x19de37-0x1b3;let _0x278f42=_0x2a3ce7[_0x19de37];return _0x278f42;},_0x19de(_0x3890f1,_0x85c621);}function _0x2a3c(){const _0x4edadb=['216762neUtrm','stopButton','bindTemplate','Insert\x20below','extendTemplate','5625590YgXBaE','mainAction','Stop','set','items','1578414jRJPNm','3847362umSsRB','AI_','replaceButton','insertButton','bind','6MjkpkP','_CONTENT','insert','6664304wgISga','REPLACE','isVisible','tryAgainButton','locale','replace','toUpperCase','_createButton','ck-ai-form__toolbar','addMany','10850658BQKROE','label','ck-hidden','707864ggGZHQ','ck-button-action','Try\x20again','18oYaUeZ'];_0x2a3c=function(){return _0x4edadb;};return _0x2a3c();}const _0x402fac=_0x19de;(function(_0x2ee447,_0x15268c){const _0x48a790=_0x19de,_0xd274bb=_0x2ee447();while(!![]){try{const _0x981845=parseInt(_0x48a790(0x1bc))/0x1+parseInt(_0x48a790(0x1c6))/0x2+parseInt(_0x48a790(0x1c7))/0x3+-parseInt(_0x48a790(0x1cf))/0x4+parseInt(_0x48a790(0x1c1))/0x5*(-parseInt(_0x48a790(0x1cc))/0x6)+parseInt(_0x48a790(0x1b5))/0x7+parseInt(_0x48a790(0x1b8))/0x8*(-parseInt(_0x48a790(0x1bb))/0x9);if(_0x981845===_0x15268c)break;else _0xd274bb['push'](_0xd274bb['shift']());}catch(_0x829e64){_0xd274bb['push'](_0xd274bb['shift']());}}}(_0x2a3c,0xd47d5));import{ToolbarView as _0x4fd522,ButtonView as _0x57b0d2}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e2020}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x402fac(0x1d4),'INSERT':_0x402fac(0x1ce)};export class AIFormToolbarView extends _0x4fd522{constructor(_0x331670){const _0x133bcb=_0x402fac;super(_0x331670),this[_0x133bcb(0x1c4)](_0x133bcb(0x1d1),!0x1),this[_0x133bcb(0x1c4)](_0x133bcb(0x1c2),AIFormToolbarViewMainActionLabel[_0x133bcb(0x1d0)]),this[_0x133bcb(0x1c9)]=this[_0x133bcb(0x1d6)]('',_0x133bcb(0x1b9)),this[_0x133bcb(0x1c9)][_0x133bcb(0x1cb)](_0x133bcb(0x1b6))['to'](this,_0x133bcb(0x1c2),_0x38b542=>_0x5e2020(_0x331670,_0x133bcb(0x1c8)+_0x38b542[_0x133bcb(0x1d5)]()+_0x133bcb(0x1cd))),this[_0x133bcb(0x1ca)]=this[_0x133bcb(0x1d6)](_0x5e2020(_0x331670,_0x133bcb(0x1bf))),this[_0x133bcb(0x1d2)]=this[_0x133bcb(0x1d6)](_0x5e2020(_0x331670,_0x133bcb(0x1ba))),this[_0x133bcb(0x1bd)]=this[_0x133bcb(0x1d6)](_0x5e2020(_0x331670,_0x133bcb(0x1c3)));const _0x344fde=this[_0x133bcb(0x1be)];this[_0x133bcb(0x1c0)]({'attributes':{'class':[_0x133bcb(0x1b3),_0x344fde['if'](_0x133bcb(0x1d1),_0x133bcb(0x1b7),_0xdaf04b=>!_0xdaf04b)]}}),this[_0x133bcb(0x1c5)][_0x133bcb(0x1b4)]([this[_0x133bcb(0x1c9)],this[_0x133bcb(0x1ca)],this[_0x133bcb(0x1d2)],this[_0x133bcb(0x1bd)]]);}[_0x402fac(0x1d6)](_0x399e7b,_0x2e7d47){const _0x20017a=_0x402fac,_0x1174b8=new _0x57b0d2(this[_0x20017a(0x1d3)]);return _0x1174b8[_0x20017a(0x1c4)]({'label':_0x399e7b,'class':_0x2e7d47||'','isVisible':!0x0,'withText':!0x0}),_0x1174b8;}}
23
+ const _0x36bbf8=_0x1e7d;(function(_0x479a74,_0x3acc83){const _0x94bf64=_0x1e7d,_0xefc9d5=_0x479a74();while(!![]){try{const _0x2376f9=-parseInt(_0x94bf64(0x1f1))/0x1+-parseInt(_0x94bf64(0x1f3))/0x2+parseInt(_0x94bf64(0x1eb))/0x3*(-parseInt(_0x94bf64(0x1dd))/0x4)+parseInt(_0x94bf64(0x1dc))/0x5+parseInt(_0x94bf64(0x1f6))/0x6+parseInt(_0x94bf64(0x1f2))/0x7+-parseInt(_0x94bf64(0x1de))/0x8*(parseInt(_0x94bf64(0x1e5))/0x9);if(_0x2376f9===_0x3acc83)break;else _0xefc9d5['push'](_0xefc9d5['shift']());}catch(_0x2d8e19){_0xefc9d5['push'](_0xefc9d5['shift']());}}}(_0x55ac,0x733d8));import{ToolbarView as _0x37fc23,ButtonView as _0x31390d}from'ckeditor5/src/ui.js';function _0x55ac(){const _0x420065=['toUpperCase','insertButton','ck-hidden','extendTemplate','replaceButton','AI_','addMany','Insert\x20below','insert','3218095MJyACG','4NmeYPw','8IsNSsq','_createButton','bindTemplate','label','REPLACE','_CONTENT','tryAgainButton','7677081xmeyzf','bind','isVisible','Try\x20again','ck-ai-form__toolbar','replace','89031yjXjYk','set','Stop','ck-button-action','items','mainAction','345137QnGcZt','4606616dcCVoc','991752ZnXVmp','locale','stopButton','5364096TKCccR'];_0x55ac=function(){return _0x420065;};return _0x55ac();}import{getTranslation as _0x133a3a}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x36bbf8(0x1ea),'INSERT':_0x36bbf8(0x1db)};function _0x1e7d(_0x174ae5,_0x57e714){const _0x55ac20=_0x55ac();return _0x1e7d=function(_0x1e7d79,_0x5d0abb){_0x1e7d79=_0x1e7d79-0x1da;let _0x369f8d=_0x55ac20[_0x1e7d79];return _0x369f8d;},_0x1e7d(_0x174ae5,_0x57e714);}export class AIFormToolbarView extends _0x37fc23{constructor(_0x5662bb){const _0x45455c=_0x36bbf8;super(_0x5662bb),this[_0x45455c(0x1ec)](_0x45455c(0x1e7),!0x1),this[_0x45455c(0x1ec)](_0x45455c(0x1f0),AIFormToolbarViewMainActionLabel[_0x45455c(0x1e2)]),this[_0x45455c(0x1fb)]=this[_0x45455c(0x1df)]('',_0x45455c(0x1ee)),this[_0x45455c(0x1fb)][_0x45455c(0x1e6)](_0x45455c(0x1e1))['to'](this,_0x45455c(0x1f0),_0x3d36cf=>_0x133a3a(_0x5662bb,_0x45455c(0x1fc)+_0x3d36cf[_0x45455c(0x1f7)]()+_0x45455c(0x1e3))),this[_0x45455c(0x1f8)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1da))),this[_0x45455c(0x1e4)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1e8))),this[_0x45455c(0x1f5)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1ed)));const _0x1fbfd0=this[_0x45455c(0x1e0)];this[_0x45455c(0x1fa)]({'attributes':{'class':[_0x45455c(0x1e9),_0x1fbfd0['if'](_0x45455c(0x1e7),_0x45455c(0x1f9),_0x379534=>!_0x379534)]}}),this[_0x45455c(0x1ef)][_0x45455c(0x1fd)]([this[_0x45455c(0x1fb)],this[_0x45455c(0x1f8)],this[_0x45455c(0x1e4)],this[_0x45455c(0x1f5)]]);}[_0x36bbf8(0x1df)](_0x3b68a9,_0x13ed5f){const _0x56a59a=_0x36bbf8,_0x46506f=new _0x31390d(this[_0x56a59a(0x1f4)]);return _0x46506f[_0x56a59a(0x1ec)]({'label':_0x3b68a9,'class':_0x13ed5f||'','isVisible':!0x0,'withText':!0x0}),_0x46506f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x567c27=_0x5e6a;(function(_0x13a5bd,_0xf9244d){const _0x4e7c6c=_0x5e6a,_0x11ba0b=_0x13a5bd();while(!![]){try{const _0x23fc77=parseInt(_0x4e7c6c(0x194))/0x1*(-parseInt(_0x4e7c6c(0x17c))/0x2)+-parseInt(_0x4e7c6c(0x177))/0x3*(parseInt(_0x4e7c6c(0x199))/0x4)+-parseInt(_0x4e7c6c(0x183))/0x5+-parseInt(_0x4e7c6c(0x174))/0x6*(parseInt(_0x4e7c6c(0x191))/0x7)+-parseInt(_0x4e7c6c(0x1b2))/0x8+parseInt(_0x4e7c6c(0x18e))/0x9+parseInt(_0x4e7c6c(0x1ab))/0xa;if(_0x23fc77===_0xf9244d)break;else _0x11ba0b['push'](_0x11ba0b['shift']());}catch(_0x594467){_0x11ba0b['push'](_0x11ba0b['shift']());}}}(_0x58c2,0x8bb24));import{FocusTracker as _0x5a8825,KeystrokeHandler as _0x2fc56e}from'ckeditor5/src/utils.js';function _0x5e6a(_0x38644c,_0x9186f8){const _0x58c294=_0x58c2();return _0x5e6a=function(_0x5e6ae6,_0x3bb4d4){_0x5e6ae6=_0x5e6ae6-0x15e;let _0x103d69=_0x58c294[_0x5e6ae6];return _0x103d69;},_0x5e6a(_0x38644c,_0x9186f8);}import{View as _0x244f82,FocusCycler as _0x2cc247,createLabeledTextarea as _0x3f1b39}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xf1f8f,AIFormToolbarViewMainActionLabel as _0x50ce37}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x2db782}from'./aiformcontentarea.js';import{AIFormErrorView as _0x593849}from'./aiformerrorview.js';import{AIFormPromptView as _0x1a5597}from'./aiformpromptview.js';import{AIHistoryListView as _0x415bca}from'./aihistorylistview.js';function _0x58c2(){const _0x44857b=['text','handleError','focusLast','focusFirst','5815544YXwhij','bind','stopProcessing','contentArea','replaceButton','queryView','_createToolbar','insertContentBelow','bindTo','search','finishProcessing','errorView','promptView','startProcessing','toolbar','label','focusCycler','_createHistoryView','fire','chain','stopButton','prompt','REPLACE','238176sedvUs','isVisible','replaceContent','117QQHzFn','high','historyGroupView','clearHistory','listenTo','6spumqv','focusTracker','locale','clear','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','execute','2450565GXRGJf','items','submitPrompt','Ask\x20AI\x20to\x20improve\x20generated\x20text','tab','tryAgainButton','mainAction','bindTemplate','add','ck-ai-form-content','ck-hidden','3919383QPPlhq','element','_promptHistory','21kjijVF','render','trim','143818uMOjZK','_createPromptView','focus','shift\x20+\x20tab','value','106876ncuqiF','isEnabled','tryAgainEvent','setTemplate','isProcessing','insertButton','div','Ask\x20AI\x20to\x20edit\x20or\x20generate','copyButtonView','fieldView','AI_ERROR_FAILED','ck-ai-form','isError','set','_focusables','keystrokes','submit','delegate','29463480LPCGzt','Empty\x20history','reset'];_0x58c2=function(){return _0x44857b;};return _0x58c2();}import{AIHistoryListItemView as _0x2ca2f9}from'./aihistorylistitemview.js';import{PromptHistory as _0x4af8a0}from'./prompthistory.js';import{getTranslation as _0x17431e}from'../../utils/common-translations.js';import{escape as _0x4ef800}from'es-toolkit/compat';export class AIFormView extends _0x244f82{[_0x567c27(0x17d)];[_0x567c27(0x1a8)];[_0x567c27(0x160)];[_0x567c27(0x16b)];[_0x567c27(0x169)];[_0x567c27(0x168)];[_0x567c27(0x1a7)];[_0x567c27(0x16d)];[_0x567c27(0x190)];constructor(_0x310091,_0x15b3ca,_0x4a228b=''){const _0x52b948=_0x567c27;super(_0x310091),this[_0x52b948(0x1a6)](_0x52b948(0x19a),!0x0),this[_0x52b948(0x1a6)](_0x52b948(0x19d),!0x1),this[_0x52b948(0x1a6)](_0x52b948(0x172),''),this[_0x52b948(0x1a6)](_0x52b948(0x198),''),this[_0x52b948(0x1a6)](_0x52b948(0x1a5),!0x1),this[_0x52b948(0x1a6)](_0x52b948(0x189),_0x50ce37[_0x52b948(0x173)]),this[_0x52b948(0x190)]=new _0x4af8a0(),this[_0x52b948(0x168)]=new _0x593849(_0x310091),this[_0x52b948(0x160)]=new _0x2db782(_0x310091,_0x4a228b),this[_0x52b948(0x160)][_0x52b948(0x15e)](_0x52b948(0x19d))['to'](this),this[_0x52b948(0x160)][_0x52b948(0x15e)](_0x52b948(0x198))['to'](this),this[_0x52b948(0x16b)]=this[_0x52b948(0x163)](),this[_0x52b948(0x16b)][_0x52b948(0x15e)](_0x52b948(0x189))['to'](this),this[_0x52b948(0x169)]=this[_0x52b948(0x195)](),this[_0x52b948(0x17d)]=new _0x5a8825(),this[_0x52b948(0x1a8)]=new _0x2fc56e(),this[_0x52b948(0x1a7)]=this[_0x52b948(0x180)]([this[_0x52b948(0x160)],this[_0x52b948(0x160)][_0x52b948(0x1a1)],this[_0x52b948(0x16b)],this[_0x52b948(0x169)]]),this[_0x52b948(0x16d)]=new _0x2cc247({'focusables':this[_0x52b948(0x1a7)],'focusTracker':this[_0x52b948(0x17d)],'keystrokeHandler':this[_0x52b948(0x1a8)],'actions':{'focusPrevious':_0x52b948(0x197),'focusNext':_0x52b948(0x187)}}),this[_0x52b948(0x16d)][_0x52b948(0x170)](this[_0x52b948(0x169)][_0x52b948(0x16d)]),this[_0x52b948(0x169)][_0x52b948(0x162)][_0x52b948(0x1a2)][_0x52b948(0x15e)](_0x52b948(0x198))['to'](this,_0x52b948(0x172));const _0x21899e=this[_0x52b948(0x18a)];this[_0x52b948(0x19c)]({'tag':_0x52b948(0x19f),'attributes':{'class':['ck',_0x52b948(0x1a4),_0x15b3ca],'tabindex':'-1'},'children':[{'tag':_0x52b948(0x19f),'attributes':{'class':['ck',_0x52b948(0x18c)]},'children':[{'tag':_0x52b948(0x19f),'attributes':{'class':[_0x21899e['if'](_0x52b948(0x1a5),_0x52b948(0x18d),_0x757874=>!_0x757874)]},'children':[this[_0x52b948(0x168)]]},this[_0x52b948(0x160)],this[_0x52b948(0x16b)],this[_0x52b948(0x169)]]}]});}[_0x567c27(0x192)](){const _0x5ed56e=_0x567c27;super[_0x5ed56e(0x192)](),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x160)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x160)][_0x5ed56e(0x1a1)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x16b)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x169)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x1a8)][_0x5ed56e(0x17b)](this[_0x5ed56e(0x18f)]);}[_0x567c27(0x196)](_0x47d8ef=0x1){const _0xd2a91=_0x567c27;-0x1===_0x47d8ef?this[_0xd2a91(0x16d)][_0xd2a91(0x1b0)]():this[_0xd2a91(0x16d)][_0xd2a91(0x1b1)]();}[_0x567c27(0x1ad)](){const _0x531e83=_0x567c27;this[_0x531e83(0x172)]='',this[_0x531e83(0x198)]='',this[_0x531e83(0x1a5)]=!0x1,this[_0x531e83(0x169)][_0x531e83(0x1ad)](),this[_0x531e83(0x160)][_0x531e83(0x175)]=!0x1,this[_0x531e83(0x16b)][_0x531e83(0x175)]=!0x1;}[_0x567c27(0x195)](){const _0x419d7e=_0x567c27,_0xecc543=this[_0x419d7e(0x17e)],_0x1ce9df=new _0x1a5597(_0xecc543,{'queryView':{'label':_0x17431e(_0xecc543,_0x419d7e(0x1a0)),'creator':_0x3f1b39,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x17431e(_0xecc543,_0x419d7e(0x1ac)),'secondary':_0x17431e(_0xecc543,_0x419d7e(0x181))}}},'filteredView':this[_0x419d7e(0x16e)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1ce9df[_0x419d7e(0x15e)](_0x419d7e(0x19a))['to'](this,_0x419d7e(0x19a),this,_0x419d7e(0x19d),(_0x28ac17,_0x2284bd)=>_0x28ac17&&!_0x2284bd),this[_0x419d7e(0x17b)](_0x1ce9df,_0x419d7e(0x1a9),(_0x1b542c,_0x2ce3e5)=>{const _0x24f773=_0x419d7e;this[_0x24f773(0x172)]=_0x2ce3e5;const _0x1702ad=_0x4ef800(_0x2ce3e5);this[_0x24f773(0x16f)](_0x24f773(0x185),_0x1702ad),_0x2ce3e5[_0x24f773(0x193)]()&&this[_0x24f773(0x190)][_0x24f773(0x18b)]({'prompt':_0x1702ad},0x0);},{'priority':_0x419d7e(0x178)}),_0x1ce9df;}[_0x567c27(0x16e)](){const _0x2f1453=_0x567c27,_0x430b4c=new _0x415bca(this[_0x2f1453(0x17e)]);return _0x430b4c[_0x2f1453(0x179)][_0x2f1453(0x184)][_0x2f1453(0x165)](this[_0x2f1453(0x190)])['as'](_0x2ca2f9),_0x430b4c['on'](_0x2f1453(0x17a),()=>{const _0x2aa4c8=_0x2f1453;this[_0x2aa4c8(0x190)][_0x2aa4c8(0x17f)](),this[_0x2aa4c8(0x169)][_0x2aa4c8(0x166)](''),this[_0x2aa4c8(0x169)][_0x2aa4c8(0x196)]();}),_0x430b4c;}[_0x567c27(0x163)](){const _0x263876=_0x567c27,_0x281851=new _0xf1f8f(this[_0x263876(0x17e)]);return _0x281851[_0x263876(0x161)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),this,_0x263876(0x198),(_0x191383,_0x3927e0,_0x4a8541)=>_0x191383&&!_0x3927e0&&!!_0x4a8541),_0x281851[_0x263876(0x161)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x176)),_0x281851[_0x263876(0x19e)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),this,_0x263876(0x198),(_0xb25d,_0x319f6c,_0x2ecc1c)=>_0xb25d&&!_0x319f6c&&!!_0x2ecc1c),_0x281851[_0x263876(0x19e)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x164)),_0x281851[_0x263876(0x188)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),(_0x1b9e6d,_0x3addca)=>_0x1b9e6d&&!_0x3addca),_0x281851[_0x263876(0x188)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x19b)),_0x281851[_0x263876(0x171)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19d)),_0x281851[_0x263876(0x171)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x15f)),_0x281851;}[_0x567c27(0x16a)](){const _0x28bd8c=_0x567c27;this[_0x28bd8c(0x198)]='',this[_0x28bd8c(0x1a5)]=!0x1,this[_0x28bd8c(0x19d)]=!0x0,this[_0x28bd8c(0x160)][_0x28bd8c(0x175)]=!0x0,this[_0x28bd8c(0x16b)][_0x28bd8c(0x175)]=!0x0,this[_0x28bd8c(0x160)][_0x28bd8c(0x196)]();}[_0x567c27(0x167)](){const _0x3512cc=_0x567c27,_0x3cb714=this[_0x3512cc(0x17e)];this[_0x3512cc(0x19d)]=!0x1,this[_0x3512cc(0x172)]='',this[_0x3512cc(0x169)][_0x3512cc(0x1ad)](),this[_0x3512cc(0x198)]&&(this[_0x3512cc(0x169)][_0x3512cc(0x162)][_0x3512cc(0x16c)]=_0x17431e(_0x3cb714,_0x3512cc(0x186)));}[_0x567c27(0x1af)](_0x2e055d){const _0x2609dd=_0x567c27,_0x434b4a=this[_0x2609dd(0x17e)];this[_0x2609dd(0x167)](),this[_0x2609dd(0x1a5)]=!0x0,this[_0x2609dd(0x168)][_0x2609dd(0x1ae)]=_0x2e055d||_0x17431e(_0x434b4a,_0x2609dd(0x1a3)),this[_0x2609dd(0x198)]||(this[_0x2609dd(0x160)][_0x2609dd(0x175)]=!0x1);}}
23
+ const _0x5bf53b=_0x3729;(function(_0x3d5cf2,_0x2d9eb5){const _0x538c1e=_0x3729,_0x205d7b=_0x3d5cf2();while(!![]){try{const _0x1aad1a=parseInt(_0x538c1e(0x18e))/0x1*(parseInt(_0x538c1e(0x194))/0x2)+parseInt(_0x538c1e(0x1a9))/0x3*(-parseInt(_0x538c1e(0x1bb))/0x4)+parseInt(_0x538c1e(0x1b8))/0x5*(parseInt(_0x538c1e(0x1ac))/0x6)+-parseInt(_0x538c1e(0x1c9))/0x7*(parseInt(_0x538c1e(0x1d1))/0x8)+-parseInt(_0x538c1e(0x184))/0x9+-parseInt(_0x538c1e(0x1cf))/0xa*(parseInt(_0x538c1e(0x1b1))/0xb)+parseInt(_0x538c1e(0x182))/0xc;if(_0x1aad1a===_0x2d9eb5)break;else _0x205d7b['push'](_0x205d7b['shift']());}catch(_0x13e811){_0x205d7b['push'](_0x205d7b['shift']());}}}(_0x5c34,0xf0285));import{FocusTracker as _0x59d05d,KeystrokeHandler as _0x3f4ecd}from'ckeditor5/src/utils.js';function _0x5c34(){const _0x40777f=['submit','tab','_createPromptView','chain','focusFirst','2451453jiiDgv','reset','ck-hidden','18xpwbQV','Ask\x20AI\x20to\x20edit\x20or\x20generate','ck-ai-form-content','render','handleError','3070265xMrZYW','replaceButton','execute','errorView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','div','text','2148470rpTzGX','REPLACE','keystrokes','4hbcaAR','Ask\x20AI\x20to\x20improve\x20generated\x20text','items','bind','shift\x20+\x20tab','startProcessing','focusLast','locale','fire','element','createCollection','focusCycler','replaceContent','setTemplate','35NXHDrm','tryAgainButton','delegate','insertButton','ck-ai-form','insertContentBelow','60wugQCC','focus','2581160oOwfzw','Empty\x20history','prompt','add','high','copyButtonView','queryView','focusTracker','54353544kyWhPW','submitPrompt','7243362vIPsKS','contentArea','set','stopProcessing','bindTo','mainAction','trim','search','label','value','75025QpSxAJ','clearHistory','historyGroupView','_promptHistory','promptView','isEnabled','2YEtuOs','bindTemplate','toolbar','fieldView','isError','isVisible','tryAgainEvent','finishProcessing','_createHistoryView','listenTo','stopButton','clear','_createToolbar','isProcessing','AI_ERROR_FAILED','_focusables'];_0x5c34=function(){return _0x40777f;};return _0x5c34();}function _0x3729(_0x153eff,_0x192db8){const _0x5c3425=_0x5c34();return _0x3729=function(_0x372997,_0x5ec114){_0x372997=_0x372997-0x17c;let _0x48b201=_0x5c3425[_0x372997];return _0x48b201;},_0x3729(_0x153eff,_0x192db8);}import{View as _0x5254a6,FocusCycler as _0x3a04a1,createLabeledTextarea as _0x5974da}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xdd1cf1,AIFormToolbarViewMainActionLabel as _0x2e285f}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x3f5f69}from'./aiformcontentarea.js';import{AIFormErrorView as _0x14c13e}from'./aiformerrorview.js';import{AIFormPromptView as _0x14cc10}from'./aiformpromptview.js';import{AIHistoryListView as _0x18f091}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x460839}from'./aihistorylistitemview.js';import{PromptHistory as _0x4f8ef9}from'./prompthistory.js';import{getTranslation as _0x231419}from'../../utils/common-translations.js';import{escape as _0x1b4f82}from'es-toolkit/compat';export class AIFormView extends _0x5254a6{[_0x5bf53b(0x181)];[_0x5bf53b(0x1ba)];[_0x5bf53b(0x185)];[_0x5bf53b(0x196)];[_0x5bf53b(0x192)];[_0x5bf53b(0x1b4)];[_0x5bf53b(0x1a3)];[_0x5bf53b(0x1c6)];[_0x5bf53b(0x191)];constructor(_0x2aa8c8,_0x2702cb,_0x333cd7=''){const _0x34716b=_0x5bf53b;super(_0x2aa8c8),this[_0x34716b(0x186)](_0x34716b(0x193),!0x0),this[_0x34716b(0x186)](_0x34716b(0x1a1),!0x1),this[_0x34716b(0x186)](_0x34716b(0x17c),''),this[_0x34716b(0x186)](_0x34716b(0x18d),''),this[_0x34716b(0x186)](_0x34716b(0x198),!0x1),this[_0x34716b(0x186)](_0x34716b(0x189),_0x2e285f[_0x34716b(0x1b9)]),this[_0x34716b(0x191)]=new _0x4f8ef9(),this[_0x34716b(0x1b4)]=new _0x14c13e(_0x2aa8c8),this[_0x34716b(0x185)]=new _0x3f5f69(_0x2aa8c8,_0x333cd7),this[_0x34716b(0x185)][_0x34716b(0x1be)](_0x34716b(0x1a1))['to'](this),this[_0x34716b(0x185)][_0x34716b(0x1be)](_0x34716b(0x18d))['to'](this),this[_0x34716b(0x196)]=this[_0x34716b(0x1a0)](),this[_0x34716b(0x196)][_0x34716b(0x1be)](_0x34716b(0x189))['to'](this),this[_0x34716b(0x192)]=this[_0x34716b(0x1a6)](),this[_0x34716b(0x181)]=new _0x59d05d(),this[_0x34716b(0x1ba)]=new _0x3f4ecd(),this[_0x34716b(0x1a3)]=this[_0x34716b(0x1c5)]([this[_0x34716b(0x185)],this[_0x34716b(0x185)][_0x34716b(0x17f)],this[_0x34716b(0x196)],this[_0x34716b(0x192)]]),this[_0x34716b(0x1c6)]=new _0x3a04a1({'focusables':this[_0x34716b(0x1a3)],'focusTracker':this[_0x34716b(0x181)],'keystrokeHandler':this[_0x34716b(0x1ba)],'actions':{'focusPrevious':_0x34716b(0x1bf),'focusNext':_0x34716b(0x1a5)}}),this[_0x34716b(0x1c6)][_0x34716b(0x1a7)](this[_0x34716b(0x192)][_0x34716b(0x1c6)]),this[_0x34716b(0x192)][_0x34716b(0x180)][_0x34716b(0x197)][_0x34716b(0x1be)](_0x34716b(0x18d))['to'](this,_0x34716b(0x17c));const _0x34e119=this[_0x34716b(0x195)];this[_0x34716b(0x1c8)]({'tag':_0x34716b(0x1b6),'attributes':{'class':['ck',_0x34716b(0x1cd),_0x2702cb],'tabindex':'-1'},'children':[{'tag':_0x34716b(0x1b6),'attributes':{'class':['ck',_0x34716b(0x1ae)]},'children':[{'tag':_0x34716b(0x1b6),'attributes':{'class':[_0x34e119['if'](_0x34716b(0x198),_0x34716b(0x1ab),_0x3b3a6f=>!_0x3b3a6f)]},'children':[this[_0x34716b(0x1b4)]]},this[_0x34716b(0x185)],this[_0x34716b(0x196)],this[_0x34716b(0x192)]]}]});}[_0x5bf53b(0x1af)](){const _0x28aa12=_0x5bf53b;super[_0x28aa12(0x1af)](),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x185)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x185)][_0x28aa12(0x17f)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x196)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x192)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x1ba)][_0x28aa12(0x19d)](this[_0x28aa12(0x1c4)]);}[_0x5bf53b(0x1d0)](_0x49b408=0x1){const _0x28f4ba=_0x5bf53b;-0x1===_0x49b408?this[_0x28f4ba(0x1c6)][_0x28f4ba(0x1c1)]():this[_0x28f4ba(0x1c6)][_0x28f4ba(0x1a8)]();}[_0x5bf53b(0x1aa)](){const _0x519dd2=_0x5bf53b;this[_0x519dd2(0x17c)]='',this[_0x519dd2(0x18d)]='',this[_0x519dd2(0x198)]=!0x1,this[_0x519dd2(0x192)][_0x519dd2(0x1aa)](),this[_0x519dd2(0x185)][_0x519dd2(0x199)]=!0x1,this[_0x519dd2(0x196)][_0x519dd2(0x199)]=!0x1;}[_0x5bf53b(0x1a6)](){const _0x30426e=_0x5bf53b,_0x3b35ee=this[_0x30426e(0x1c2)],_0x56ba49=new _0x14cc10(_0x3b35ee,{'queryView':{'label':_0x231419(_0x3b35ee,_0x30426e(0x1ad)),'creator':_0x5974da,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x231419(_0x3b35ee,_0x30426e(0x1d2)),'secondary':_0x231419(_0x3b35ee,_0x30426e(0x1b5))}}},'filteredView':this[_0x30426e(0x19c)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x56ba49[_0x30426e(0x1be)](_0x30426e(0x193))['to'](this,_0x30426e(0x193),this,_0x30426e(0x1a1),(_0x399341,_0x4364ef)=>_0x399341&&!_0x4364ef),this[_0x30426e(0x19d)](_0x56ba49,_0x30426e(0x1a4),(_0x12f7ca,_0x4401d0)=>{const _0x32ca96=_0x30426e;this[_0x32ca96(0x17c)]=_0x4401d0;const _0x542b68=_0x1b4f82(_0x4401d0);this[_0x32ca96(0x1c3)](_0x32ca96(0x183),_0x542b68),_0x4401d0[_0x32ca96(0x18a)]()&&this[_0x32ca96(0x191)][_0x32ca96(0x17d)]({'prompt':_0x542b68},0x0);},{'priority':_0x30426e(0x17e)}),_0x56ba49;}[_0x5bf53b(0x19c)](){const _0x448df3=_0x5bf53b,_0x3d6d3f=new _0x18f091(this[_0x448df3(0x1c2)]);return _0x3d6d3f[_0x448df3(0x190)][_0x448df3(0x1bd)][_0x448df3(0x188)](this[_0x448df3(0x191)])['as'](_0x460839),_0x3d6d3f['on'](_0x448df3(0x18f),()=>{const _0x4cb413=_0x448df3;this[_0x4cb413(0x191)][_0x4cb413(0x19f)](),this[_0x4cb413(0x192)][_0x4cb413(0x18b)](''),this[_0x4cb413(0x192)][_0x4cb413(0x1d0)]();}),_0x3d6d3f;}[_0x5bf53b(0x1a0)](){const _0x1c111d=_0x5bf53b,_0x442f43=new _0xdd1cf1(this[_0x1c111d(0x1c2)]);return _0x442f43[_0x1c111d(0x1b2)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x193),this,_0x1c111d(0x1a1),this,_0x1c111d(0x18d),(_0x38be3b,_0x3839de,_0xe5609a)=>_0x38be3b&&!_0x3839de&&!!_0xe5609a),_0x442f43[_0x1c111d(0x1b2)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x1c7)),_0x442f43[_0x1c111d(0x1cc)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x193),this,_0x1c111d(0x1a1),this,_0x1c111d(0x18d),(_0x3e994b,_0x6c54ba,_0x1c8ae8)=>_0x3e994b&&!_0x6c54ba&&!!_0x1c8ae8),_0x442f43[_0x1c111d(0x1cc)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x1ce)),_0x442f43[_0x1c111d(0x1ca)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x193),this,_0x1c111d(0x1a1),(_0x81d256,_0x3977a6)=>_0x81d256&&!_0x3977a6),_0x442f43[_0x1c111d(0x1ca)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x19a)),_0x442f43[_0x1c111d(0x19e)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x1a1)),_0x442f43[_0x1c111d(0x19e)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x187)),_0x442f43;}[_0x5bf53b(0x1c0)](){const _0x140c9a=_0x5bf53b;this[_0x140c9a(0x18d)]='',this[_0x140c9a(0x198)]=!0x1,this[_0x140c9a(0x1a1)]=!0x0,this[_0x140c9a(0x185)][_0x140c9a(0x199)]=!0x0,this[_0x140c9a(0x196)][_0x140c9a(0x199)]=!0x0,this[_0x140c9a(0x185)][_0x140c9a(0x1d0)]();}[_0x5bf53b(0x19b)](){const _0x238f0d=_0x5bf53b,_0x516e07=this[_0x238f0d(0x1c2)];this[_0x238f0d(0x1a1)]=!0x1,this[_0x238f0d(0x17c)]='',this[_0x238f0d(0x192)][_0x238f0d(0x1aa)](),this[_0x238f0d(0x18d)]&&(this[_0x238f0d(0x192)][_0x238f0d(0x180)][_0x238f0d(0x18c)]=_0x231419(_0x516e07,_0x238f0d(0x1bc)));}[_0x5bf53b(0x1b0)](_0x31c8db){const _0xb7044c=_0x5bf53b,_0x149c3d=this[_0xb7044c(0x1c2)];this[_0xb7044c(0x19b)](),this[_0xb7044c(0x198)]=!0x0,this[_0xb7044c(0x1b4)][_0xb7044c(0x1b7)]=_0x31c8db||_0x231419(_0x149c3d,_0xb7044c(0x1a2)),this[_0xb7044c(0x18d)]||(this[_0xb7044c(0x185)][_0xb7044c(0x199)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3a3c(){const _0x48d327=['275610RgdLDK','locale','fire','prompt','execute','1882909fZovAO','1210864vQdwPW','set','2JDIrJa','children','188192TCmVHk','add','191885DbRNTk','102083djTXmO','2955276DvvgWf','6ztNQcj'];_0x3a3c=function(){return _0x48d327;};return _0x3a3c();}function _0x1f9d(_0xa03269,_0x2a0cc9){const _0x3a3cb8=_0x3a3c();return _0x1f9d=function(_0x1f9dd6,_0x193801){_0x1f9dd6=_0x1f9dd6-0x178;let _0x430f1c=_0x3a3cb8[_0x1f9dd6];return _0x430f1c;},_0x1f9d(_0xa03269,_0x2a0cc9);}(function(_0x20f57e,_0x4f8b5a){const _0x316d65=_0x1f9d,_0x9d58f3=_0x20f57e();while(!![]){try{const _0x4b6760=parseInt(_0x316d65(0x183))/0x1*(parseInt(_0x316d65(0x17e))/0x2)+-parseInt(_0x316d65(0x186))/0x3+parseInt(_0x316d65(0x17c))/0x4+parseInt(_0x316d65(0x182))/0x5*(-parseInt(_0x316d65(0x185))/0x6)+parseInt(_0x316d65(0x17b))/0x7+-parseInt(_0x316d65(0x180))/0x8+-parseInt(_0x316d65(0x184))/0x9;if(_0x4b6760===_0x4f8b5a)break;else _0x9d58f3['push'](_0x9d58f3['shift']());}catch(_0x2b44bf){_0x9d58f3['push'](_0x9d58f3['shift']());}}}(_0x3a3c,0x2eca3));import{ListItemView as _0x1b8932,ButtonView as _0x3d65d6,ButtonLabelView as _0x3c2826}from'ckeditor5/src/ui.js';import{unescape as _0xbfa1be}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x1b8932{constructor(_0x19bdbe){const _0x5d78e4=_0x1f9d;super();const _0x4da0e6=new _0x3c2826(),_0x19d28e=new _0x3d65d6(this[_0x5d78e4(0x187)],_0x4da0e6);this[_0x5d78e4(0x17f)][_0x5d78e4(0x181)](_0x19d28e),_0x19d28e[_0x5d78e4(0x17d)]({'label':_0x19bdbe[_0x5d78e4(0x179)],'withText':!0x0}),_0x19d28e['on'](_0x5d78e4(0x17a),()=>{const _0x5b91ee=_0x5d78e4;this[_0x5b91ee(0x178)](_0x5b91ee(0x17a),{'value':_0xbfa1be(_0x19bdbe[_0x5b91ee(0x179)])});});}}
23
+ function _0x462d(_0x2165c3,_0x48d0ca){const _0x503a18=_0x503a();return _0x462d=function(_0x462da5,_0x41a09f){_0x462da5=_0x462da5-0x147;let _0x26f9e1=_0x503a18[_0x462da5];return _0x26f9e1;},_0x462d(_0x2165c3,_0x48d0ca);}(function(_0x4355e5,_0xca323a){const _0x51f53a=_0x462d,_0x393c08=_0x4355e5();while(!![]){try{const _0x5158d4=parseInt(_0x51f53a(0x14c))/0x1*(-parseInt(_0x51f53a(0x14b))/0x2)+-parseInt(_0x51f53a(0x156))/0x3*(parseInt(_0x51f53a(0x158))/0x4)+parseInt(_0x51f53a(0x14e))/0x5*(-parseInt(_0x51f53a(0x148))/0x6)+-parseInt(_0x51f53a(0x149))/0x7*(parseInt(_0x51f53a(0x15a))/0x8)+parseInt(_0x51f53a(0x151))/0x9*(parseInt(_0x51f53a(0x154))/0xa)+-parseInt(_0x51f53a(0x14d))/0xb*(-parseInt(_0x51f53a(0x147))/0xc)+parseInt(_0x51f53a(0x150))/0xd;if(_0x5158d4===_0xca323a)break;else _0x393c08['push'](_0x393c08['shift']());}catch(_0x50ccd5){_0x393c08['push'](_0x393c08['shift']());}}}(_0x503a,0x5067d));import{ListItemView as _0x55c6bb,ButtonView as _0x34bdca,ButtonLabelView as _0x12b207}from'ckeditor5/src/ui.js';import{unescape as _0x30749b}from'es-toolkit/compat';function _0x503a(){const _0x40527c=['19498505NtHQEc','160038VLPGWG','children','execute','270whiEQI','set','112335PnDroA','locale','44NEaJAp','prompt','15216nWhkJm','35100yWDUQO','92196wFBtzZ','2359aDbxXo','add','119014fSFaya','6DxOOEj','77MYxwPw','85WeCGBh','fire'];_0x503a=function(){return _0x40527c;};return _0x503a();}export class AIHistoryListItemView extends _0x55c6bb{constructor(_0x4f2e85){const _0x3a1dec=_0x462d;super();const _0xd64eb8=new _0x12b207(),_0x5d9417=new _0x34bdca(this[_0x3a1dec(0x157)],_0xd64eb8);this[_0x3a1dec(0x152)][_0x3a1dec(0x14a)](_0x5d9417),_0x5d9417[_0x3a1dec(0x155)]({'label':_0x4f2e85[_0x3a1dec(0x159)],'withText':!0x0}),_0x5d9417['on'](_0x3a1dec(0x153),()=>{const _0x18f592=_0x3a1dec;this[_0x18f592(0x14f)](_0x18f592(0x153),{'value':_0x30749b(_0x4f2e85[_0x18f592(0x159)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbf2553=_0x7eb9;(function(_0x43ff42,_0x2f2cf0){const _0x41bf8b=_0x7eb9,_0x490768=_0x43ff42();while(!![]){try{const _0x5db169=-parseInt(_0x41bf8b(0x7b))/0x1*(parseInt(_0x41bf8b(0x71))/0x2)+-parseInt(_0x41bf8b(0x67))/0x3+-parseInt(_0x41bf8b(0x6a))/0x4*(parseInt(_0x41bf8b(0x6e))/0x5)+parseInt(_0x41bf8b(0x6d))/0x6*(parseInt(_0x41bf8b(0x66))/0x7)+parseInt(_0x41bf8b(0x74))/0x8*(parseInt(_0x41bf8b(0x6c))/0x9)+parseInt(_0x41bf8b(0x68))/0xa+-parseInt(_0x41bf8b(0x7f))/0xb;if(_0x5db169===_0x2f2cf0)break;else _0x490768['push'](_0x490768['shift']());}catch(_0xd3efae){_0x490768['push'](_0x490768['shift']());}}}(_0x4d92,0x24edf));import{ListView as _0x4baefb,ListItemGroupView as _0x1395d4,ButtonView as _0x2bb4c4}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c434f}from'../../utils/common-translations.js';function _0x7eb9(_0x36d91c,_0x2f787d){const _0x4d92ec=_0x4d92();return _0x7eb9=function(_0x7eb911,_0x1cba7a){_0x7eb911=_0x7eb911-0x64;let _0x5540a5=_0x4d92ec[_0x7eb911];return _0x5540a5;},_0x7eb9(_0x36d91c,_0x2f787d);}function _0x4d92(){const _0x155c9d=['21ogxlcJ','209640ksBskQ','2566940tWFqoJ','length','2588VrSPDA','set','27135ZSdziG','462546ydUlsw','2005lVjikS','delegate','items','86RthLtX','clearHistoryButton','historyGroupView','456xOlDUU','filter','fire','_createClearHistoryButton','Prompt\x20history','clearHistory','Clear','3183xWQkly','execute','label','locale','465993mLNJQY','children','add'];_0x4d92=function(){return _0x155c9d;};return _0x4d92();}export class AIHistoryListView extends _0x4baefb{[_0xbf2553(0x73)];[_0xbf2553(0x72)];constructor(_0x8455ba){const _0xdbb3ba=_0xbf2553;super(_0x8455ba),this[_0xdbb3ba(0x72)]=this[_0xdbb3ba(0x77)](),this[_0xdbb3ba(0x73)]=new _0x1395d4(),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x64)][_0xdbb3ba(0x65)](this[_0xdbb3ba(0x72)],0x1),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x7d)]=_0x1c434f(_0x8455ba,_0xdbb3ba(0x78)),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x70)][_0xdbb3ba(0x6f)](_0xdbb3ba(0x7c))['to'](this),this[_0xdbb3ba(0x70)][_0xdbb3ba(0x65)](this[_0xdbb3ba(0x73)]);}[_0xbf2553(0x75)](){const _0x21b924=_0xbf2553;let _0x406157=0x0;for(const _0x41cd39 of this[_0x21b924(0x70)])_0x406157+=_0x41cd39[_0x21b924(0x70)][_0x21b924(0x69)];return{'resultsCount':_0x406157,'totalItemsCount':_0x406157};}[_0xbf2553(0x77)](){const _0x44caed=_0xbf2553,_0x8ca67f=this[_0x44caed(0x7e)],_0x3159a1=new _0x2bb4c4(this[_0x44caed(0x7e)]);return _0x3159a1[_0x44caed(0x6b)]({'label':'('+_0x1c434f(_0x8ca67f,_0x44caed(0x7a))+')','withText':!0x0}),_0x3159a1['on'](_0x44caed(0x7c),()=>this[_0x44caed(0x76)](_0x44caed(0x79))),_0x3159a1;}}
23
+ const _0x3f62d2=_0x1fb5;(function(_0x4f2c44,_0x2184c7){const _0x59e398=_0x1fb5,_0x437688=_0x4f2c44();while(!![]){try{const _0xf8492f=-parseInt(_0x59e398(0x134))/0x1+parseInt(_0x59e398(0x140))/0x2*(parseInt(_0x59e398(0x141))/0x3)+parseInt(_0x59e398(0x135))/0x4+parseInt(_0x59e398(0x13b))/0x5*(parseInt(_0x59e398(0x127))/0x6)+-parseInt(_0x59e398(0x13c))/0x7*(-parseInt(_0x59e398(0x129))/0x8)+parseInt(_0x59e398(0x13e))/0x9+-parseInt(_0x59e398(0x12b))/0xa;if(_0xf8492f===_0x2184c7)break;else _0x437688['push'](_0x437688['shift']());}catch(_0x3ff494){_0x437688['push'](_0x437688['shift']());}}}(_0x734f,0x290f3));import{ListView as _0x1874c2,ListItemGroupView as _0xa2c7ae,ButtonView as _0x137f53}from'ckeditor5/src/ui.js';function _0x734f(){const _0x16c11c=['556472GKSlJz','Clear','3110530aeDudu','locale','set','_createClearHistoryButton','items','clearHistoryButton','delegate','clearHistory','historyGroupView','112055oygwRP','629516fYROAB','children','execute','length','label','filter','180aFiLSh','7kPkJtg','fire','2815200kNBDYr','Prompt\x20history','74946eYcVXz','3ZUUVwK','2346DBUHwQ','add'];_0x734f=function(){return _0x16c11c;};return _0x734f();}function _0x1fb5(_0x411fa5,_0x1310cf){const _0x734f0a=_0x734f();return _0x1fb5=function(_0x1fb549,_0x528925){_0x1fb549=_0x1fb549-0x127;let _0x58063f=_0x734f0a[_0x1fb549];return _0x58063f;},_0x1fb5(_0x411fa5,_0x1310cf);}import{getTranslation as _0xa8c5e}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1874c2{[_0x3f62d2(0x133)];[_0x3f62d2(0x130)];constructor(_0x852d54){const _0x44ac94=_0x3f62d2;super(_0x852d54),this[_0x44ac94(0x130)]=this[_0x44ac94(0x12e)](),this[_0x44ac94(0x133)]=new _0xa2c7ae(),this[_0x44ac94(0x133)][_0x44ac94(0x136)][_0x44ac94(0x128)](this[_0x44ac94(0x130)],0x1),this[_0x44ac94(0x133)][_0x44ac94(0x139)]=_0xa8c5e(_0x852d54,_0x44ac94(0x13f)),this[_0x44ac94(0x133)][_0x44ac94(0x12f)][_0x44ac94(0x131)](_0x44ac94(0x137))['to'](this),this[_0x44ac94(0x12f)][_0x44ac94(0x128)](this[_0x44ac94(0x133)]);}[_0x3f62d2(0x13a)](){const _0x50707e=_0x3f62d2;let _0x208eb0=0x0;for(const _0x3999a9 of this[_0x50707e(0x12f)])_0x208eb0+=_0x3999a9[_0x50707e(0x12f)][_0x50707e(0x138)];return{'resultsCount':_0x208eb0,'totalItemsCount':_0x208eb0};}[_0x3f62d2(0x12e)](){const _0xa1d3b2=_0x3f62d2,_0x1e86fd=this[_0xa1d3b2(0x12c)],_0x271b4c=new _0x137f53(this[_0xa1d3b2(0x12c)]);return _0x271b4c[_0xa1d3b2(0x12d)]({'label':'('+_0xa8c5e(_0x1e86fd,_0xa1d3b2(0x12a))+')','withText':!0x0}),_0x271b4c['on'](_0xa1d3b2(0x137),()=>this[_0xa1d3b2(0x13d)](_0xa1d3b2(0x132))),_0x271b4c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x502c0b=_0x138e;(function(_0x5e5712,_0x4bafef){const _0x14e84c=_0x138e,_0x5dc79a=_0x5e5712();while(!![]){try{const _0x5ee6f7=parseInt(_0x14e84c(0x173))/0x1+parseInt(_0x14e84c(0x168))/0x2+parseInt(_0x14e84c(0x16f))/0x3+-parseInt(_0x14e84c(0x163))/0x4+-parseInt(_0x14e84c(0x165))/0x5*(-parseInt(_0x14e84c(0x16c))/0x6)+parseInt(_0x14e84c(0x171))/0x7*(parseInt(_0x14e84c(0x166))/0x8)+-parseInt(_0x14e84c(0x162))/0x9;if(_0x5ee6f7===_0x4bafef)break;else _0x5dc79a['push'](_0x5dc79a['shift']());}catch(_0x447979){_0x5dc79a['push'](_0x5dc79a['shift']());}}}(_0x5379,0x542e9));import{Collection as _0x379e4b}from'ckeditor5/src/utils.js';const Sr=_0x502c0b(0x16e);export class PromptHistory extends _0x379e4b{constructor(){const _0x1757cd=_0x502c0b;super(),this[_0x1757cd(0x170)](),this['on'](_0x1757cd(0x174),(_0x4cb265,_0x4b234d)=>{const _0x239793=_0x1757cd,_0x168a8d=Fr(_0x4b234d[_0x239793(0x16a)]);for(const _0x5c8b74 of this)if(_0x5c8b74!=_0x4b234d&&Fr(_0x5c8b74[_0x239793(0x16a)])===_0x168a8d){this[_0x239793(0x15e)](_0x5c8b74);break;}this[_0x239793(0x16d)]>0x14&&this[_0x239793(0x15e)](this[_0x239793(0x15f)]),this[_0x239793(0x160)]();}),this['on'](_0x1757cd(0x15e),()=>{const _0x49269a=_0x1757cd;this[_0x49269a(0x160)]();});}[_0x502c0b(0x170)](){const _0x3f1eb1=_0x502c0b,_0x3e5b70=sessionStorage[_0x3f1eb1(0x164)](Sr)||'[]';this[_0x3f1eb1(0x167)](JSON[_0x3f1eb1(0x16b)](_0x3e5b70));}[_0x502c0b(0x160)](){const _0x4f4736=_0x502c0b;sessionStorage[_0x4f4736(0x169)](Sr,JSON[_0x4f4736(0x15d)](this[_0x4f4736(0x15c)](_0x42b39f=>_0x42b39f)));}}function Fr(_0x42646f){const _0x135810=_0x502c0b;return _0x42646f[_0x135810(0x172)]()[_0x135810(0x161)]();}function _0x138e(_0x43caa9,_0xefaa8e){const _0x537903=_0x5379();return _0x138e=function(_0x138eb6,_0x42d818){_0x138eb6=_0x138eb6-0x15c;let _0x2b737b=_0x537903[_0x138eb6];return _0x2b737b;},_0x138e(_0x43caa9,_0xefaa8e);}function _0x5379(){const _0x453479=['getItem','5ROZcYl','1536NdINCG','addMany','1303768psIHHP','setItem','prompt','parse','4071876ymMtTX','length','CKEditor/AIFormView/PromptHistory','1857081lATBBI','_loadFromSessionStorage','1316XgFrKt','toLowerCase','372988QqlDPd','add','map','stringify','remove','last','_saveToSessionStorage','trim','17268696rQCKnI','380352nxLHzc'];_0x5379=function(){return _0x453479;};return _0x5379();}
23
+ const _0x40ed72=_0x2293;(function(_0x10f138,_0x170994){const _0xe4d0f8=_0x2293,_0x25f208=_0x10f138();while(!![]){try{const _0x434547=parseInt(_0xe4d0f8(0x1f5))/0x1*(-parseInt(_0xe4d0f8(0x1f3))/0x2)+parseInt(_0xe4d0f8(0x1f1))/0x3+parseInt(_0xe4d0f8(0x1df))/0x4*(parseInt(_0xe4d0f8(0x1f2))/0x5)+-parseInt(_0xe4d0f8(0x1f6))/0x6+-parseInt(_0xe4d0f8(0x1db))/0x7*(parseInt(_0xe4d0f8(0x1de))/0x8)+parseInt(_0xe4d0f8(0x1e4))/0x9*(parseInt(_0xe4d0f8(0x1e7))/0xa)+-parseInt(_0xe4d0f8(0x1e8))/0xb*(-parseInt(_0xe4d0f8(0x1ec))/0xc);if(_0x434547===_0x170994)break;else _0x25f208['push'](_0x25f208['shift']());}catch(_0x194bf5){_0x25f208['push'](_0x25f208['shift']());}}}(_0x2c13,0x67223));function _0x2293(_0x3d6477,_0x557fe8){const _0x2c134c=_0x2c13();return _0x2293=function(_0x229347,_0x282311){_0x229347=_0x229347-0x1db;let _0x3173da=_0x2c134c[_0x229347];return _0x3173da;},_0x2293(_0x3d6477,_0x557fe8);}function _0x2c13(){const _0x381ba5=['1313496SXxmZH','35895fnMQJf','10TsiyJr','last','164231smCfYa','1041312RtbVfA','7rrLlvf','add','toLowerCase','3106792YmOVkv','344OdOtKD','parse','length','_loadFromSessionStorage','setItem','9QKiICm','CKEditor/AIFormView/PromptHistory','addMany','6271220JIIqUQ','1354573TnYQkn','remove','getItem','stringify','12zCPJbb','map','_saveToSessionStorage','prompt','trim'];_0x2c13=function(){return _0x381ba5;};return _0x2c13();}import{Collection as _0x2e0b58}from'ckeditor5/src/utils.js';const So=_0x40ed72(0x1e5);export class PromptHistory extends _0x2e0b58{constructor(){const _0x101305=_0x40ed72;super(),this[_0x101305(0x1e2)](),this['on'](_0x101305(0x1dc),(_0x5dc229,_0x4aed54)=>{const _0x21821b=_0x101305,_0xb0952a=go(_0x4aed54[_0x21821b(0x1ef)]);for(const _0x2d5c6f of this)if(_0x2d5c6f!=_0x4aed54&&go(_0x2d5c6f[_0x21821b(0x1ef)])===_0xb0952a){this[_0x21821b(0x1e9)](_0x2d5c6f);break;}this[_0x21821b(0x1e1)]>0x14&&this[_0x21821b(0x1e9)](this[_0x21821b(0x1f4)]),this[_0x21821b(0x1ee)]();}),this['on'](_0x101305(0x1e9),()=>{const _0x26e010=_0x101305;this[_0x26e010(0x1ee)]();});}[_0x40ed72(0x1e2)](){const _0x546fb3=_0x40ed72,_0x2a5723=sessionStorage[_0x546fb3(0x1ea)](So)||'[]';this[_0x546fb3(0x1e6)](JSON[_0x546fb3(0x1e0)](_0x2a5723));}[_0x40ed72(0x1ee)](){const _0x1018fa=_0x40ed72;sessionStorage[_0x1018fa(0x1e3)](So,JSON[_0x1018fa(0x1eb)](this[_0x1018fa(0x1ed)](_0x4108c3=>_0x4108c3)));}}function go(_0x1f2112){const _0x46c6d3=_0x40ed72;return _0x1f2112[_0x46c6d3(0x1dd)]()[_0x46c6d3(0x1f0)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x396f4d=_0x1bad;function _0x4685(){const _0x21f502=['getRanges','editor','includes','_commandDefinitions','plugins','getItems','12174670YDGpmR','showUI','1tYnwhX','9144kxJgtH','2639PPrrfP','1728894XjFovY','requiresContent','length','enabledCommandsIds','ai.assistant.disabledElements','isEnabled','1572zvxaaF','getFirstRange','element','add','selection','2521503lwaVeE','custom','isEmpty','change:_hasContext','model','4775GfrcDh','3945900mndULt','document','values','get','from','isCollapsed','_hasContext','getSelectedBlocks','1520EnoElb','change:isEnabled','name','hasContent','execute','set','refresh','config'];_0x4685=function(){return _0x21f502;};return _0x4685();}(function(_0xed944,_0x2188e){const _0x537bcf=_0x1bad,_0x4d060d=_0xed944();while(!![]){try{const _0xb1bfe=-parseInt(_0x537bcf(0xbc))/0x1*(-parseInt(_0x537bcf(0xbf))/0x2)+-parseInt(_0x537bcf(0xca))/0x3+-parseInt(_0x537bcf(0xd0))/0x4+parseInt(_0x537bcf(0xcf))/0x5+-parseInt(_0x537bcf(0xc5))/0x6*(-parseInt(_0x537bcf(0xbe))/0x7)+-parseInt(_0x537bcf(0xd8))/0x8*(-parseInt(_0x537bcf(0xbd))/0x9)+parseInt(_0x537bcf(0xba))/0xa;if(_0xb1bfe===_0x2188e)break;else _0x4d060d['push'](_0x4d060d['shift']());}catch(_0x2a735b){_0x4d060d['push'](_0x4d060d['shift']());}}}(_0x4685,0x85b7b));import{Command as _0x39f3d4}from'ckeditor5/src/core.js';function _0x1bad(_0x1c114f,_0x4ffcfc){const _0x46851a=_0x4685();return _0x1bad=function(_0x1bad9d,_0x4ba0d8){_0x1bad9d=_0x1bad9d-0xba;let _0x24e704=_0x46851a[_0x1bad9d];return _0x24e704;},_0x1bad(_0x1c114f,_0x4ffcfc);}import{AIAssistantUI as _0x3f994e}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x39f3d4{[_0x396f4d(0xe3)];constructor(_0x24b8e1,_0x52ae48){const _0x117c23=_0x396f4d;super(_0x24b8e1),this[_0x117c23(0xe3)]=_0x52ae48,this[_0x117c23(0xdd)](_0x117c23(0xc2),[]),this['on'](_0x117c23(0xcd),(_0x156d47,_0x1f430b,_0x2655a6)=>{const _0x2d2d4c=_0x117c23;this[_0x2d2d4c(0xc4)]&&(this[_0x2d2d4c(0xc2)]=js(this[_0x2d2d4c(0xe3)],_0x2655a6));}),this[_0x117c23(0xdd)](_0x117c23(0xd6),!0x1),this['on'](_0x117c23(0xd9),(_0x2ba3c1,_0x2d94e9,_0x4f67ee)=>{const _0x2b540c=_0x117c23;this[_0x2b540c(0xc2)]=_0x4f67ee?js(this[_0x2b540c(0xe3)],this[_0x2b540c(0xd6)]):[];});}[_0x396f4d(0xde)](){const _0x214ebe=_0x396f4d,_0xd336eb=this[_0x214ebe(0xe1)][_0x214ebe(0xce)];this[_0x214ebe(0xd6)]=function(_0x46a71c){const _0xf95f51=_0x214ebe,_0x4cfe77=_0x46a71c[_0xf95f51(0xd1)][_0xf95f51(0xc9)];return _0x4cfe77[_0xf95f51(0xd5)]?0x0!==[..._0x4cfe77[_0xf95f51(0xd7)]()][_0xf95f51(0xc1)]&&![..._0x4cfe77[_0xf95f51(0xd7)]()][0x0][_0xf95f51(0xcc)]:!!_0x46a71c[_0xf95f51(0xdb)](_0x4cfe77[_0xf95f51(0xc6)]());}(_0xd336eb);const _0x10f359=_0xd336eb[_0x214ebe(0xd1)][_0x214ebe(0xc9)],_0x50964d=this[_0x214ebe(0xe1)][_0x214ebe(0xdf)][_0x214ebe(0xd3)](_0x214ebe(0xc3));for(const _0x408cf0 of _0x10f359[_0x214ebe(0xe0)]())for(const _0x15495f of _0x408cf0[_0x214ebe(0xe5)]())if(_0x15495f['is'](_0x214ebe(0xc7))&&_0x50964d[_0x214ebe(0xe2)](_0x15495f[_0x214ebe(0xda)]))return void(this[_0x214ebe(0xc4)]=!0x1);this[_0x214ebe(0xc4)]=!0x0;}[_0x396f4d(0xdc)](_0x5c8aca='',_0xfb3d91='',_0x8c4d08=_0x396f4d(0xcb)){const _0x48ca40=_0x396f4d;this[_0x48ca40(0xe1)][_0x48ca40(0xe4)][_0x48ca40(0xd3)](_0x3f994e)[_0x48ca40(0xbb)](_0x5c8aca,_0xfb3d91,_0x8c4d08);}}function js(_0xbc9c01,_0x1a4564){const _0x33533d=_0x396f4d,_0x425dd9=new Set();for(const _0x5c4aa1 of _0xbc9c01[_0x33533d(0xd2)]())(_0x1a4564||!0x1===_0x5c4aa1[_0x33533d(0xc0)])&&_0x425dd9[_0x33533d(0xc8)](_0x5c4aa1['id']);return Array[_0x33533d(0xd4)](_0x425dd9);}
23
+ const _0x44d18e=_0x3de4;(function(_0x2828fb,_0x2248c2){const _0x4dc3c7=_0x3de4,_0x22273b=_0x2828fb();while(!![]){try{const _0x27ef55=-parseInt(_0x4dc3c7(0x13f))/0x1+parseInt(_0x4dc3c7(0x162))/0x2*(parseInt(_0x4dc3c7(0x14c))/0x3)+parseInt(_0x4dc3c7(0x152))/0x4*(parseInt(_0x4dc3c7(0x147))/0x5)+parseInt(_0x4dc3c7(0x14a))/0x6*(parseInt(_0x4dc3c7(0x151))/0x7)+-parseInt(_0x4dc3c7(0x13d))/0x8*(parseInt(_0x4dc3c7(0x149))/0x9)+-parseInt(_0x4dc3c7(0x15c))/0xa+-parseInt(_0x4dc3c7(0x153))/0xb*(-parseInt(_0x4dc3c7(0x166))/0xc);if(_0x27ef55===_0x2248c2)break;else _0x22273b['push'](_0x22273b['shift']());}catch(_0x3f357a){_0x22273b['push'](_0x22273b['shift']());}}}(_0x3053,0xcbc84));function _0x3de4(_0x22ac19,_0x5f03e3){const _0x3053b4=_0x3053();return _0x3de4=function(_0x3de4ef,_0x1df5ec){_0x3de4ef=_0x3de4ef-0x13c;let _0x486841=_0x3053b4[_0x3de4ef];return _0x486841;},_0x3de4(_0x22ac19,_0x5f03e3);}import{Command as _0x9f4bf2}from'ckeditor5/src/core.js';function _0x3053(){const _0xb6e30f=['requiresContent','length','values','change:_hasContext','getFirstRange','11930610PfGgnL','getItems','getRanges','isEnabled','selection','includes','404KCIxya','hasContent','refresh','get','30816ocRRdS','model','element','isEmpty','plugins','619000LkyjEY','showUI','405884yTmdtQ','add','execute','enabledCommandsIds','isCollapsed','config','editor','custom','905WhiGYa','change:isEnabled','81ZiuKIL','6iqsKlA','set','9117rdUCQi','ai.assistant.disabledElements','name','document','_hasContext','6888721gbeoIf','32268qvzqQb','308AqHLhW','getSelectedBlocks','from','_commandDefinitions'];_0x3053=function(){return _0xb6e30f;};return _0x3053();}import{AIAssistantUI as _0x21a013}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x9f4bf2{[_0x44d18e(0x156)];constructor(_0x52c8cd,_0x1a1b20){const _0x32ae9d=_0x44d18e;super(_0x52c8cd),this[_0x32ae9d(0x156)]=_0x1a1b20,this[_0x32ae9d(0x14b)](_0x32ae9d(0x142),[]),this['on'](_0x32ae9d(0x15a),(_0x582542,_0x14dd86,_0x40fddf)=>{const _0x5a2898=_0x32ae9d;this[_0x5a2898(0x15f)]&&(this[_0x5a2898(0x142)]=ns(this[_0x5a2898(0x156)],_0x40fddf));}),this[_0x32ae9d(0x14b)](_0x32ae9d(0x150),!0x1),this['on'](_0x32ae9d(0x148),(_0x1853b0,_0x137255,_0x175438)=>{const _0x271a36=_0x32ae9d;this[_0x271a36(0x142)]=_0x175438?ns(this[_0x271a36(0x156)],this[_0x271a36(0x150)]):[];});}[_0x44d18e(0x164)](){const _0x3d83dc=_0x44d18e,_0x33ad5d=this[_0x3d83dc(0x145)][_0x3d83dc(0x167)];this[_0x3d83dc(0x150)]=function(_0x248b49){const _0x2f7f89=_0x3d83dc,_0x11852=_0x248b49[_0x2f7f89(0x14f)][_0x2f7f89(0x160)];return _0x11852[_0x2f7f89(0x143)]?0x0!==[..._0x11852[_0x2f7f89(0x154)]()][_0x2f7f89(0x158)]&&![..._0x11852[_0x2f7f89(0x154)]()][0x0][_0x2f7f89(0x169)]:!!_0x248b49[_0x2f7f89(0x163)](_0x11852[_0x2f7f89(0x15b)]());}(_0x33ad5d);const _0x2cf491=_0x33ad5d[_0x3d83dc(0x14f)][_0x3d83dc(0x160)],_0x58b08b=this[_0x3d83dc(0x145)][_0x3d83dc(0x144)][_0x3d83dc(0x165)](_0x3d83dc(0x14d));for(const _0x59a2f6 of _0x2cf491[_0x3d83dc(0x15e)]())for(const _0x15a39a of _0x59a2f6[_0x3d83dc(0x15d)]())if(_0x15a39a['is'](_0x3d83dc(0x168))&&_0x58b08b[_0x3d83dc(0x161)](_0x15a39a[_0x3d83dc(0x14e)]))return void(this[_0x3d83dc(0x15f)]=!0x1);this[_0x3d83dc(0x15f)]=!0x0;}[_0x44d18e(0x141)](_0x1eff7e='',_0x52c22e='',_0xec6f2b=_0x44d18e(0x146)){const _0x1ae122=_0x44d18e;this[_0x1ae122(0x145)][_0x1ae122(0x13c)][_0x1ae122(0x165)](_0x21a013)[_0x1ae122(0x13e)](_0x1eff7e,_0x52c22e,_0xec6f2b);}}function ns(_0x278f25,_0x366e41){const _0xa054b1=_0x44d18e,_0x12ded6=new Set();for(const _0x32d067 of _0x278f25[_0xa054b1(0x159)]())(_0x366e41||!0x1===_0x32d067[_0xa054b1(0x157)])&&_0x12ded6[_0xa054b1(0x140)](_0x32d067['id']);return Array[_0xa054b1(0x155)](_0x12ded6);}