@ckeditor/ckeditor5-ai 47.3.0-alpha.1 → 47.3.0-alpha.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 (296) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +0 -4
  3. package/dist/index.css +0 -4
  4. package/dist/index.js +5 -5
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +15 -15
  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.js +1 -1
  158. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  159. package/src/aiassistant/aiassistant.js +1 -1
  160. package/src/aiassistant/aiassistantediting.js +1 -1
  161. package/src/aiassistant/aiassistantui.js +1 -1
  162. package/src/aiassistant/legacyerrors.js +1 -1
  163. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  164. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  165. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformview.js +1 -1
  169. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  171. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  172. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  173. package/src/aiassistant/utils/common-translations.js +1 -1
  174. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  175. package/src/aiballoon/aiballoon.js +1 -1
  176. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  177. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatcontroller.js +1 -1
  181. package/src/aichat/aichatui.js +1 -1
  182. package/src/aichat/model/aichatcontext.js +1 -1
  183. package/src/aichat/model/aichatconversation.js +1 -1
  184. package/src/aichat/model/aichatinteraction.js +1 -1
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichathistory/aichathistory.js +1 -1
  214. package/src/aichathistory/aichathistorycontroller.js +1 -1
  215. package/src/aichathistory/aichathistoryui.js +1 -1
  216. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  217. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  219. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  222. package/src/aicore/aiconnector.js +1 -1
  223. package/src/aicore/aiediting.js +1 -1
  224. package/src/aicore/model/aicapabilities.js +1 -1
  225. package/src/aicore/model/aicontext.js +1 -1
  226. package/src/aicore/model/aiinteraction.js +1 -1
  227. package/src/aicore/model/aimodels.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aicore/utils/scrollmanager.js +1 -1
  250. package/src/aieditorintegration/aieditorintegration.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  252. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  253. package/src/aiquickactions/aiquickactions.js +1 -1
  254. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  255. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  256. package/src/aiquickactions/aiquickactionsui.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  259. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  260. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  261. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  262. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  263. package/src/aireviewmode/aireviewmode.js +1 -1
  264. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  265. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  266. package/src/aireviewmode/aireviewmodeui.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  269. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  272. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  273. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  274. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  275. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  286. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  287. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  288. package/src/aitabs/aitabs.js +1 -1
  289. package/src/aitabs/aitabsmainview.js +1 -1
  290. package/src/aitabs/tabs/aitabsview.js +1 -1
  291. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  292. package/src/aitabs/tabs/tabpanelview.js +1 -1
  293. package/src/errors.js +1 -1
  294. package/src/errorsmap.js +1 -1
  295. package/src/index.js +1 -1
  296. package/theme/aiquickactions/aiquickactions.css +0 -4
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39c9d0=_0x6f47;(function(_0x195895,_0x26fdc5){const _0x1d15f8=_0x6f47,_0x463d18=_0x195895();while(!![]){try{const _0x22b47c=parseInt(_0x1d15f8(0x144))/0x1*(-parseInt(_0x1d15f8(0x181))/0x2)+parseInt(_0x1d15f8(0x137))/0x3+-parseInt(_0x1d15f8(0x13d))/0x4*(-parseInt(_0x1d15f8(0x14b))/0x5)+-parseInt(_0x1d15f8(0x186))/0x6+parseInt(_0x1d15f8(0x158))/0x7*(parseInt(_0x1d15f8(0x138))/0x8)+-parseInt(_0x1d15f8(0x134))/0x9*(parseInt(_0x1d15f8(0x15b))/0xa)+parseInt(_0x1d15f8(0x169))/0xb;if(_0x22b47c===_0x26fdc5)break;else _0x463d18['push'](_0x463d18['shift']());}catch(_0xb501a7){_0x463d18['push'](_0x463d18['shift']());}}}(_0x5b67,0x9c349));import{FocusTracker as _0x1c9a35,KeystrokeHandler as _0x1ccffd}from'ckeditor5/src/utils.js';import{View as _0x51d6c5,FocusCycler as _0x39cda0,createLabeledTextarea as _0x2bb4d0}from'ckeditor5/src/ui.js';function _0x5b67(){const _0x45be8a=['delegate','createCollection','replaceContent','keystrokes','div','text','errorView','AI_ERROR_FAILED','label','Ask\x20AI\x20to\x20improve\x20generated\x20text','locale','fieldView','1012291LDKrIn','focusFirst','toolbar','88850gSGvUH','_createToolbar','search','setTemplate','items','isEnabled','REPLACE','focus','_createHistoryView','ck-ai-form-content','listenTo','bindTemplate','handleError','ck-hidden','7680915iJhvnQ','isError','mainAction','insertContentBelow','chain','reset','startProcessing','finishProcessing','shift\x20+\x20tab','trim','submit','insertButton','fire','historyGroupView','clear','isProcessing','set','high','execute','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainButton','tryAgainEvent','bindTo','focusLast','4yjqwSZ','bind','_createPromptView','element','clearHistory','3238554MbozjY','_promptHistory','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_focusables','891uAplok','promptView','queryView','2410437hEmiVO','64bLuyNP','copyButtonView','replaceButton','tab','isVisible','4LAKzSy','prompt','focusCycler','ck-ai-form','contentArea','stopButton','render','511814DCwyFD','add','submitPrompt','stopProcessing','Empty\x20history','focusTracker','value','2120855GTBVrE'];_0x5b67=function(){return _0x45be8a;};return _0x5b67();}import{AIFormToolbarView as _0x29815f,AIFormToolbarViewMainActionLabel as _0x4ce133}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x4cc0b6}from'./aiformcontentarea.js';import{AIFormErrorView as _0x301589}from'./aiformerrorview.js';import{AIFormPromptView as _0x280987}from'./aiformpromptview.js';import{AIHistoryListView as _0x52be35}from'./aihistorylistview.js';function _0x6f47(_0x3b0269,_0x2bdad8){const _0x5b6768=_0x5b67();return _0x6f47=function(_0x6f47e9,_0x4213cc){_0x6f47e9=_0x6f47e9-0x132;let _0x51a405=_0x5b6768[_0x6f47e9];return _0x51a405;},_0x6f47(_0x3b0269,_0x2bdad8);}import{AIHistoryListItemView as _0x1e5914}from'./aihistorylistitemview.js';import{PromptHistory as _0x3793a3}from'./prompthistory.js';import{getTranslation as _0x3d6cce}from'../../utils/common-translations.js';import{escape as _0xb32d93}from'es-toolkit/compat';export class AIFormView extends _0x51d6c5{[_0x39c9d0(0x149)];[_0x39c9d0(0x14f)];[_0x39c9d0(0x141)];[_0x39c9d0(0x15a)];[_0x39c9d0(0x135)];[_0x39c9d0(0x152)];[_0x39c9d0(0x133)];[_0x39c9d0(0x13f)];[_0x39c9d0(0x187)];constructor(_0x5f4728,_0x5e1402,_0x4d530d=''){const _0x1422b2=_0x39c9d0;super(_0x5f4728),this[_0x1422b2(0x179)](_0x1422b2(0x160),!0x0),this[_0x1422b2(0x179)](_0x1422b2(0x178),!0x1),this[_0x1422b2(0x179)](_0x1422b2(0x13e),''),this[_0x1422b2(0x179)](_0x1422b2(0x14a),''),this[_0x1422b2(0x179)](_0x1422b2(0x16a),!0x1),this[_0x1422b2(0x179)](_0x1422b2(0x16b),_0x4ce133[_0x1422b2(0x161)]),this[_0x1422b2(0x187)]=new _0x3793a3(),this[_0x1422b2(0x152)]=new _0x301589(_0x5f4728),this[_0x1422b2(0x141)]=new _0x4cc0b6(_0x5f4728,_0x4d530d),this[_0x1422b2(0x141)][_0x1422b2(0x182)](_0x1422b2(0x178))['to'](this),this[_0x1422b2(0x141)][_0x1422b2(0x182)](_0x1422b2(0x14a))['to'](this),this[_0x1422b2(0x15a)]=this[_0x1422b2(0x15c)](),this[_0x1422b2(0x15a)][_0x1422b2(0x182)](_0x1422b2(0x16b))['to'](this),this[_0x1422b2(0x135)]=this[_0x1422b2(0x183)](),this[_0x1422b2(0x149)]=new _0x1c9a35(),this[_0x1422b2(0x14f)]=new _0x1ccffd(),this[_0x1422b2(0x133)]=this[_0x1422b2(0x14d)]([this[_0x1422b2(0x141)],this[_0x1422b2(0x141)][_0x1422b2(0x139)],this[_0x1422b2(0x15a)],this[_0x1422b2(0x135)]]),this[_0x1422b2(0x13f)]=new _0x39cda0({'focusables':this[_0x1422b2(0x133)],'focusTracker':this[_0x1422b2(0x149)],'keystrokeHandler':this[_0x1422b2(0x14f)],'actions':{'focusPrevious':_0x1422b2(0x171),'focusNext':_0x1422b2(0x13b)}}),this[_0x1422b2(0x13f)][_0x1422b2(0x16d)](this[_0x1422b2(0x135)][_0x1422b2(0x13f)]),this[_0x1422b2(0x135)][_0x1422b2(0x136)][_0x1422b2(0x157)][_0x1422b2(0x182)](_0x1422b2(0x14a))['to'](this,_0x1422b2(0x13e));const _0x182e33=this[_0x1422b2(0x166)];this[_0x1422b2(0x15e)]({'tag':_0x1422b2(0x150),'attributes':{'class':['ck',_0x1422b2(0x140),_0x5e1402],'tabindex':'-1'},'children':[{'tag':_0x1422b2(0x150),'attributes':{'class':['ck',_0x1422b2(0x164)]},'children':[{'tag':_0x1422b2(0x150),'attributes':{'class':[_0x182e33['if'](_0x1422b2(0x16a),_0x1422b2(0x168),_0x1ab964=>!_0x1ab964)]},'children':[this[_0x1422b2(0x152)]]},this[_0x1422b2(0x141)],this[_0x1422b2(0x15a)],this[_0x1422b2(0x135)]]}]});}[_0x39c9d0(0x143)](){const _0x55d035=_0x39c9d0;super[_0x55d035(0x143)](),this[_0x55d035(0x149)][_0x55d035(0x145)](this[_0x55d035(0x141)][_0x55d035(0x184)]),this[_0x55d035(0x149)][_0x55d035(0x145)](this[_0x55d035(0x141)][_0x55d035(0x139)][_0x55d035(0x184)]),this[_0x55d035(0x149)][_0x55d035(0x145)](this[_0x55d035(0x15a)][_0x55d035(0x184)]),this[_0x55d035(0x149)][_0x55d035(0x145)](this[_0x55d035(0x135)][_0x55d035(0x184)]),this[_0x55d035(0x14f)][_0x55d035(0x165)](this[_0x55d035(0x184)]);}[_0x39c9d0(0x162)](_0x1bcfd6=0x1){const _0x36e6b6=_0x39c9d0;-0x1===_0x1bcfd6?this[_0x36e6b6(0x13f)][_0x36e6b6(0x180)]():this[_0x36e6b6(0x13f)][_0x36e6b6(0x159)]();}[_0x39c9d0(0x16e)](){const _0x26f03e=_0x39c9d0;this[_0x26f03e(0x13e)]='',this[_0x26f03e(0x14a)]='',this[_0x26f03e(0x16a)]=!0x1,this[_0x26f03e(0x135)][_0x26f03e(0x16e)](),this[_0x26f03e(0x141)][_0x26f03e(0x13c)]=!0x1,this[_0x26f03e(0x15a)][_0x26f03e(0x13c)]=!0x1;}[_0x39c9d0(0x183)](){const _0x1814fe=_0x39c9d0,_0x5f559f=this[_0x1814fe(0x156)],_0x28e747=new _0x280987(_0x5f559f,{'queryView':{'label':_0x3d6cce(_0x5f559f,_0x1814fe(0x17c)),'creator':_0x2bb4d0,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3d6cce(_0x5f559f,_0x1814fe(0x148)),'secondary':_0x3d6cce(_0x5f559f,_0x1814fe(0x132))}}},'filteredView':this[_0x1814fe(0x163)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x28e747[_0x1814fe(0x182)](_0x1814fe(0x160))['to'](this,_0x1814fe(0x160),this,_0x1814fe(0x178),(_0x4c0b60,_0x12dbb9)=>_0x4c0b60&&!_0x12dbb9),this[_0x1814fe(0x165)](_0x28e747,_0x1814fe(0x173),(_0x3cba4b,_0x41ff69)=>{const _0xa81488=_0x1814fe;this[_0xa81488(0x13e)]=_0x41ff69;const _0x24c759=_0xb32d93(_0x41ff69);this[_0xa81488(0x175)](_0xa81488(0x146),_0x24c759),_0x41ff69[_0xa81488(0x172)]()&&this[_0xa81488(0x187)][_0xa81488(0x145)]({'prompt':_0x24c759},0x0);},{'priority':_0x1814fe(0x17a)}),_0x28e747;}[_0x39c9d0(0x163)](){const _0x20377c=_0x39c9d0,_0x5806f8=new _0x52be35(this[_0x20377c(0x156)]);return _0x5806f8[_0x20377c(0x176)][_0x20377c(0x15f)][_0x20377c(0x17f)](this[_0x20377c(0x187)])['as'](_0x1e5914),_0x5806f8['on'](_0x20377c(0x185),()=>{const _0x3e779a=_0x20377c;this[_0x3e779a(0x187)][_0x3e779a(0x177)](),this[_0x3e779a(0x135)][_0x3e779a(0x15d)](''),this[_0x3e779a(0x135)][_0x3e779a(0x162)]();}),_0x5806f8;}[_0x39c9d0(0x15c)](){const _0x497794=_0x39c9d0,_0x2868d0=new _0x29815f(this[_0x497794(0x156)]);return _0x2868d0[_0x497794(0x13a)][_0x497794(0x182)](_0x497794(0x160))['to'](this,_0x497794(0x160),this,_0x497794(0x178),this,_0x497794(0x14a),(_0x240ad2,_0x5a99bc,_0xd4b352)=>_0x240ad2&&!_0x5a99bc&&!!_0xd4b352),_0x2868d0[_0x497794(0x13a)][_0x497794(0x14c)](_0x497794(0x17b))['to'](this,_0x497794(0x14e)),_0x2868d0[_0x497794(0x174)][_0x497794(0x182)](_0x497794(0x160))['to'](this,_0x497794(0x160),this,_0x497794(0x178),this,_0x497794(0x14a),(_0x1b46c0,_0x47619d,_0xa32d6d)=>_0x1b46c0&&!_0x47619d&&!!_0xa32d6d),_0x2868d0[_0x497794(0x174)][_0x497794(0x14c)](_0x497794(0x17b))['to'](this,_0x497794(0x16c)),_0x2868d0[_0x497794(0x17d)][_0x497794(0x182)](_0x497794(0x160))['to'](this,_0x497794(0x160),this,_0x497794(0x178),(_0x124ea7,_0x4227b3)=>_0x124ea7&&!_0x4227b3),_0x2868d0[_0x497794(0x17d)][_0x497794(0x14c)](_0x497794(0x17b))['to'](this,_0x497794(0x17e)),_0x2868d0[_0x497794(0x142)][_0x497794(0x182)](_0x497794(0x160))['to'](this,_0x497794(0x178)),_0x2868d0[_0x497794(0x142)][_0x497794(0x14c)](_0x497794(0x17b))['to'](this,_0x497794(0x147)),_0x2868d0;}[_0x39c9d0(0x16f)](){const _0x5e3b24=_0x39c9d0;this[_0x5e3b24(0x14a)]='',this[_0x5e3b24(0x16a)]=!0x1,this[_0x5e3b24(0x178)]=!0x0,this[_0x5e3b24(0x141)][_0x5e3b24(0x13c)]=!0x0,this[_0x5e3b24(0x15a)][_0x5e3b24(0x13c)]=!0x0,this[_0x5e3b24(0x141)][_0x5e3b24(0x162)]();}[_0x39c9d0(0x170)](){const _0x348cea=_0x39c9d0,_0x186687=this[_0x348cea(0x156)];this[_0x348cea(0x178)]=!0x1,this[_0x348cea(0x13e)]='',this[_0x348cea(0x135)][_0x348cea(0x16e)](),this[_0x348cea(0x14a)]&&(this[_0x348cea(0x135)][_0x348cea(0x136)][_0x348cea(0x154)]=_0x3d6cce(_0x186687,_0x348cea(0x155)));}[_0x39c9d0(0x167)](_0x3736ee){const _0x47c34c=_0x39c9d0,_0x2cf85a=this[_0x47c34c(0x156)];this[_0x47c34c(0x170)](),this[_0x47c34c(0x16a)]=!0x0,this[_0x47c34c(0x152)][_0x47c34c(0x151)]=_0x3736ee||_0x3d6cce(_0x2cf85a,_0x47c34c(0x153)),this[_0x47c34c(0x14a)]||(this[_0x47c34c(0x141)][_0x47c34c(0x13c)]=!0x1);}}
23
+ const _0x4aef03=_0x3270;function _0x3270(_0x23f77c,_0x5ea2d2){const _0x30e131=_0x30e1();return _0x3270=function(_0x327020,_0x35285d){_0x327020=_0x327020-0x15a;let _0x1066fb=_0x30e131[_0x327020];return _0x1066fb;},_0x3270(_0x23f77c,_0x5ea2d2);}(function(_0x14028f,_0x31503c){const _0x1b92f7=_0x3270,_0x1bc855=_0x14028f();while(!![]){try{const _0x5d5ac7=-parseInt(_0x1b92f7(0x1a9))/0x1+parseInt(_0x1b92f7(0x1ad))/0x2*(-parseInt(_0x1b92f7(0x199))/0x3)+-parseInt(_0x1b92f7(0x197))/0x4+parseInt(_0x1b92f7(0x180))/0x5+parseInt(_0x1b92f7(0x1a6))/0x6+parseInt(_0x1b92f7(0x187))/0x7*(parseInt(_0x1b92f7(0x176))/0x8)+parseInt(_0x1b92f7(0x15a))/0x9*(parseInt(_0x1b92f7(0x173))/0xa);if(_0x5d5ac7===_0x31503c)break;else _0x1bc855['push'](_0x1bc855['shift']());}catch(_0x13b5ed){_0x1bc855['push'](_0x1bc855['shift']());}}}(_0x30e1,0x38d75));import{FocusTracker as _0x47f0f9,KeystrokeHandler as _0x5b7c36}from'ckeditor5/src/utils.js';import{View as _0x2b17a5,FocusCycler as _0x18e031,createLabeledTextarea as _0xd2ede0}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x13a7bb,AIFormToolbarViewMainActionLabel as _0x1c2978}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xad4d61}from'./aiformcontentarea.js';import{AIFormErrorView as _0x45ecb0}from'./aiformerrorview.js';import{AIFormPromptView as _0x2dc665}from'./aiformpromptview.js';import{AIHistoryListView as _0x4d6204}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x17c86c}from'./aihistorylistitemview.js';import{PromptHistory as _0x4b27a0}from'./prompthistory.js';import{getTranslation as _0x30d4a2}from'../../utils/common-translations.js';import{escape as _0x5dcbbb}from'es-toolkit/compat';function _0x30e1(){const _0x4ded78=['ck-ai-form-content','setTemplate','insertButton','_focusables','focusFirst','mainAction','handleError','toolbar','10meUULU','bindTo','clearHistory','64leSPTr','Empty\x20history','keystrokes','AI_ERROR_FAILED','trim','search','_createPromptView','high','label','insertContentBelow','1820610eVKTxu','stopButton','set','copyButtonView','Ask\x20AI\x20to\x20improve\x20generated\x20text','historyGroupView','div','274463NcZSNA','reset','isError','clear','_createHistoryView','execute','isProcessing','replaceButton','listenTo','element','fire','queryView','tryAgainButton','focus','contentArea','tab','520552TetUzx','finishProcessing','147FUsgEA','focusCycler','_promptHistory','delegate','prompt','isVisible','render','shift\x20+\x20tab','ck-ai-form','promptView','submit','isEnabled','Ask\x20AI\x20to\x20edit\x20or\x20generate','1645206TLSIEu','value','ck-hidden','433017ubcVxX','_createToolbar','text','items','13228EoQkVw','focusTracker','1512603GxdVuL','locale','bind','fieldView','bindTemplate','add','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tryAgainEvent','startProcessing','focusLast','errorView','submitPrompt','replaceContent','createCollection','REPLACE','chain','stopProcessing'];_0x30e1=function(){return _0x4ded78;};return _0x30e1();}export class AIFormView extends _0x2b17a5{[_0x4aef03(0x1ae)];[_0x4aef03(0x178)];[_0x4aef03(0x195)];[_0x4aef03(0x172)];[_0x4aef03(0x1a2)];[_0x4aef03(0x164)];[_0x4aef03(0x16e)];[_0x4aef03(0x19a)];[_0x4aef03(0x19b)];constructor(_0xd822bc,_0x2d9409,_0x284cd8=''){const _0x324f0a=_0x4aef03;super(_0xd822bc),this[_0x324f0a(0x182)](_0x324f0a(0x1a4),!0x0),this[_0x324f0a(0x182)](_0x324f0a(0x18d),!0x1),this[_0x324f0a(0x182)](_0x324f0a(0x19d),''),this[_0x324f0a(0x182)](_0x324f0a(0x1a7),''),this[_0x324f0a(0x182)](_0x324f0a(0x189),!0x1),this[_0x324f0a(0x182)](_0x324f0a(0x170),_0x1c2978[_0x324f0a(0x168)]),this[_0x324f0a(0x19b)]=new _0x4b27a0(),this[_0x324f0a(0x164)]=new _0x45ecb0(_0xd822bc),this[_0x324f0a(0x195)]=new _0xad4d61(_0xd822bc,_0x284cd8),this[_0x324f0a(0x195)][_0x324f0a(0x15c)](_0x324f0a(0x18d))['to'](this),this[_0x324f0a(0x195)][_0x324f0a(0x15c)](_0x324f0a(0x1a7))['to'](this),this[_0x324f0a(0x172)]=this[_0x324f0a(0x1aa)](),this[_0x324f0a(0x172)][_0x324f0a(0x15c)](_0x324f0a(0x170))['to'](this),this[_0x324f0a(0x1a2)]=this[_0x324f0a(0x17c)](),this[_0x324f0a(0x1ae)]=new _0x47f0f9(),this[_0x324f0a(0x178)]=new _0x5b7c36(),this[_0x324f0a(0x16e)]=this[_0x324f0a(0x167)]([this[_0x324f0a(0x195)],this[_0x324f0a(0x195)][_0x324f0a(0x183)],this[_0x324f0a(0x172)],this[_0x324f0a(0x1a2)]]),this[_0x324f0a(0x19a)]=new _0x18e031({'focusables':this[_0x324f0a(0x16e)],'focusTracker':this[_0x324f0a(0x1ae)],'keystrokeHandler':this[_0x324f0a(0x178)],'actions':{'focusPrevious':_0x324f0a(0x1a0),'focusNext':_0x324f0a(0x196)}}),this[_0x324f0a(0x19a)][_0x324f0a(0x169)](this[_0x324f0a(0x1a2)][_0x324f0a(0x19a)]),this[_0x324f0a(0x1a2)][_0x324f0a(0x192)][_0x324f0a(0x15d)][_0x324f0a(0x15c)](_0x324f0a(0x1a7))['to'](this,_0x324f0a(0x19d));const _0x4907ff=this[_0x324f0a(0x15e)];this[_0x324f0a(0x16c)]({'tag':_0x324f0a(0x186),'attributes':{'class':['ck',_0x324f0a(0x1a1),_0x2d9409],'tabindex':'-1'},'children':[{'tag':_0x324f0a(0x186),'attributes':{'class':['ck',_0x324f0a(0x16b)]},'children':[{'tag':_0x324f0a(0x186),'attributes':{'class':[_0x4907ff['if'](_0x324f0a(0x189),_0x324f0a(0x1a8),_0x2c3c65=>!_0x2c3c65)]},'children':[this[_0x324f0a(0x164)]]},this[_0x324f0a(0x195)],this[_0x324f0a(0x172)],this[_0x324f0a(0x1a2)]]}]});}[_0x4aef03(0x19f)](){const _0x5d1143=_0x4aef03;super[_0x5d1143(0x19f)](),this[_0x5d1143(0x1ae)][_0x5d1143(0x15f)](this[_0x5d1143(0x195)][_0x5d1143(0x190)]),this[_0x5d1143(0x1ae)][_0x5d1143(0x15f)](this[_0x5d1143(0x195)][_0x5d1143(0x183)][_0x5d1143(0x190)]),this[_0x5d1143(0x1ae)][_0x5d1143(0x15f)](this[_0x5d1143(0x172)][_0x5d1143(0x190)]),this[_0x5d1143(0x1ae)][_0x5d1143(0x15f)](this[_0x5d1143(0x1a2)][_0x5d1143(0x190)]),this[_0x5d1143(0x178)][_0x5d1143(0x18f)](this[_0x5d1143(0x190)]);}[_0x4aef03(0x194)](_0x586e0c=0x1){const _0x5e8bf8=_0x4aef03;-0x1===_0x586e0c?this[_0x5e8bf8(0x19a)][_0x5e8bf8(0x163)]():this[_0x5e8bf8(0x19a)][_0x5e8bf8(0x16f)]();}[_0x4aef03(0x188)](){const _0x44adf3=_0x4aef03;this[_0x44adf3(0x19d)]='',this[_0x44adf3(0x1a7)]='',this[_0x44adf3(0x189)]=!0x1,this[_0x44adf3(0x1a2)][_0x44adf3(0x188)](),this[_0x44adf3(0x195)][_0x44adf3(0x19e)]=!0x1,this[_0x44adf3(0x172)][_0x44adf3(0x19e)]=!0x1;}[_0x4aef03(0x17c)](){const _0x111d4f=_0x4aef03,_0x387207=this[_0x111d4f(0x15b)],_0x45c207=new _0x2dc665(_0x387207,{'queryView':{'label':_0x30d4a2(_0x387207,_0x111d4f(0x1a5)),'creator':_0xd2ede0,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x30d4a2(_0x387207,_0x111d4f(0x177)),'secondary':_0x30d4a2(_0x387207,_0x111d4f(0x160))}}},'filteredView':this[_0x111d4f(0x18b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x45c207[_0x111d4f(0x15c)](_0x111d4f(0x1a4))['to'](this,_0x111d4f(0x1a4),this,_0x111d4f(0x18d),(_0x29c25d,_0x106cfe)=>_0x29c25d&&!_0x106cfe),this[_0x111d4f(0x18f)](_0x45c207,_0x111d4f(0x1a3),(_0x1667a6,_0x24acdb)=>{const _0x38fd76=_0x111d4f;this[_0x38fd76(0x19d)]=_0x24acdb;const _0x4440dc=_0x5dcbbb(_0x24acdb);this[_0x38fd76(0x191)](_0x38fd76(0x165),_0x4440dc),_0x24acdb[_0x38fd76(0x17a)]()&&this[_0x38fd76(0x19b)][_0x38fd76(0x15f)]({'prompt':_0x4440dc},0x0);},{'priority':_0x111d4f(0x17d)}),_0x45c207;}[_0x4aef03(0x18b)](){const _0x2e84f2=_0x4aef03,_0x3499e9=new _0x4d6204(this[_0x2e84f2(0x15b)]);return _0x3499e9[_0x2e84f2(0x185)][_0x2e84f2(0x1ac)][_0x2e84f2(0x174)](this[_0x2e84f2(0x19b)])['as'](_0x17c86c),_0x3499e9['on'](_0x2e84f2(0x175),()=>{const _0x28b426=_0x2e84f2;this[_0x28b426(0x19b)][_0x28b426(0x18a)](),this[_0x28b426(0x1a2)][_0x28b426(0x17b)](''),this[_0x28b426(0x1a2)][_0x28b426(0x194)]();}),_0x3499e9;}[_0x4aef03(0x1aa)](){const _0x1f35c4=_0x4aef03,_0xf1cee5=new _0x13a7bb(this[_0x1f35c4(0x15b)]);return _0xf1cee5[_0x1f35c4(0x18e)][_0x1f35c4(0x15c)](_0x1f35c4(0x1a4))['to'](this,_0x1f35c4(0x1a4),this,_0x1f35c4(0x18d),this,_0x1f35c4(0x1a7),(_0x4967fe,_0x5a2caf,_0x3daf08)=>_0x4967fe&&!_0x5a2caf&&!!_0x3daf08),_0xf1cee5[_0x1f35c4(0x18e)][_0x1f35c4(0x19c)](_0x1f35c4(0x18c))['to'](this,_0x1f35c4(0x166)),_0xf1cee5[_0x1f35c4(0x16d)][_0x1f35c4(0x15c)](_0x1f35c4(0x1a4))['to'](this,_0x1f35c4(0x1a4),this,_0x1f35c4(0x18d),this,_0x1f35c4(0x1a7),(_0x282da6,_0x44531b,_0x3eca17)=>_0x282da6&&!_0x44531b&&!!_0x3eca17),_0xf1cee5[_0x1f35c4(0x16d)][_0x1f35c4(0x19c)](_0x1f35c4(0x18c))['to'](this,_0x1f35c4(0x17f)),_0xf1cee5[_0x1f35c4(0x193)][_0x1f35c4(0x15c)](_0x1f35c4(0x1a4))['to'](this,_0x1f35c4(0x1a4),this,_0x1f35c4(0x18d),(_0x5a124d,_0x4aaa7e)=>_0x5a124d&&!_0x4aaa7e),_0xf1cee5[_0x1f35c4(0x193)][_0x1f35c4(0x19c)](_0x1f35c4(0x18c))['to'](this,_0x1f35c4(0x161)),_0xf1cee5[_0x1f35c4(0x181)][_0x1f35c4(0x15c)](_0x1f35c4(0x1a4))['to'](this,_0x1f35c4(0x18d)),_0xf1cee5[_0x1f35c4(0x181)][_0x1f35c4(0x19c)](_0x1f35c4(0x18c))['to'](this,_0x1f35c4(0x16a)),_0xf1cee5;}[_0x4aef03(0x162)](){const _0x5ad3bf=_0x4aef03;this[_0x5ad3bf(0x1a7)]='',this[_0x5ad3bf(0x189)]=!0x1,this[_0x5ad3bf(0x18d)]=!0x0,this[_0x5ad3bf(0x195)][_0x5ad3bf(0x19e)]=!0x0,this[_0x5ad3bf(0x172)][_0x5ad3bf(0x19e)]=!0x0,this[_0x5ad3bf(0x195)][_0x5ad3bf(0x194)]();}[_0x4aef03(0x198)](){const _0x829aab=_0x4aef03,_0x24429e=this[_0x829aab(0x15b)];this[_0x829aab(0x18d)]=!0x1,this[_0x829aab(0x19d)]='',this[_0x829aab(0x1a2)][_0x829aab(0x188)](),this[_0x829aab(0x1a7)]&&(this[_0x829aab(0x1a2)][_0x829aab(0x192)][_0x829aab(0x17e)]=_0x30d4a2(_0x24429e,_0x829aab(0x184)));}[_0x4aef03(0x171)](_0x37d9ba){const _0x519b01=_0x4aef03,_0x324526=this[_0x519b01(0x15b)];this[_0x519b01(0x198)](),this[_0x519b01(0x189)]=!0x0,this[_0x519b01(0x164)][_0x519b01(0x1ab)]=_0x37d9ba||_0x30d4a2(_0x324526,_0x519b01(0x179)),this[_0x519b01(0x1a7)]||(this[_0x519b01(0x195)][_0x519b01(0x19e)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1affb4,_0x29c5fe){const _0xf866c9=_0x3947,_0x6bd6b8=_0x1affb4();while(!![]){try{const _0x1e6aee=parseInt(_0xf866c9(0xe5))/0x1*(-parseInt(_0xf866c9(0xe1))/0x2)+-parseInt(_0xf866c9(0xdb))/0x3*(parseInt(_0xf866c9(0xe6))/0x4)+parseInt(_0xf866c9(0xda))/0x5+-parseInt(_0xf866c9(0xe9))/0x6+parseInt(_0xf866c9(0xdd))/0x7+parseInt(_0xf866c9(0xe3))/0x8+-parseInt(_0xf866c9(0xe7))/0x9*(-parseInt(_0xf866c9(0xdf))/0xa);if(_0x1e6aee===_0x29c5fe)break;else _0x6bd6b8['push'](_0x6bd6b8['shift']());}catch(_0x387b0c){_0x6bd6b8['push'](_0x6bd6b8['shift']());}}}(_0x192f,0x5accf));function _0x3947(_0x2b2510,_0x147ce7){const _0x192f6c=_0x192f();return _0x3947=function(_0x394758,_0x5080fe){_0x394758=_0x394758-0xda;let _0x1dc7ee=_0x192f6c[_0x394758];return _0x1dc7ee;},_0x3947(_0x2b2510,_0x147ce7);}import{ListItemView as _0x58a776,ButtonView as _0x289824,ButtonLabelView as _0x43eec5}from'ckeditor5/src/ui.js';import{unescape as _0x256cdc}from'es-toolkit/compat';function _0x192f(){const _0x1511ce=['126iyErAU','add','4083348HwGzFD','prompt','1118990JguvAh','736701yIIHfT','locale','3419171bDNtuH','children','926210qbUpXp','fire','2AYdDhW','set','2909040CaNkUw','execute','583397DUxXoR','12yazJId'];_0x192f=function(){return _0x1511ce;};return _0x192f();}export class AIHistoryListItemView extends _0x58a776{constructor(_0x3c907f){const _0x3da2ce=_0x3947;super();const _0x1317e3=new _0x43eec5(),_0x5fe86f=new _0x289824(this[_0x3da2ce(0xdc)],_0x1317e3);this[_0x3da2ce(0xde)][_0x3da2ce(0xe8)](_0x5fe86f),_0x5fe86f[_0x3da2ce(0xe2)]({'label':_0x3c907f[_0x3da2ce(0xea)],'withText':!0x0}),_0x5fe86f['on'](_0x3da2ce(0xe4),()=>{const _0x25869d=_0x3da2ce;this[_0x25869d(0xe0)](_0x25869d(0xe4),{'value':_0x256cdc(_0x3c907f[_0x25869d(0xea)])});});}}
23
+ (function(_0x448f4c,_0x38b237){const _0x2dd107=_0x2528,_0x3ed88b=_0x448f4c();while(!![]){try{const _0x3d6c06=-parseInt(_0x2dd107(0xfd))/0x1*(parseInt(_0x2dd107(0xfb))/0x2)+-parseInt(_0x2dd107(0x101))/0x3+-parseInt(_0x2dd107(0xf8))/0x4*(parseInt(_0x2dd107(0x105))/0x5)+-parseInt(_0x2dd107(0xf6))/0x6+-parseInt(_0x2dd107(0xff))/0x7*(parseInt(_0x2dd107(0xf7))/0x8)+parseInt(_0x2dd107(0xf5))/0x9+parseInt(_0x2dd107(0xf9))/0xa;if(_0x3d6c06===_0x38b237)break;else _0x3ed88b['push'](_0x3ed88b['shift']());}catch(_0x30cc83){_0x3ed88b['push'](_0x3ed88b['shift']());}}}(_0x1903,0x72819));import{ListItemView as _0x518920,ButtonView as _0x111563,ButtonLabelView as _0x323ffb}from'ckeditor5/src/ui.js';function _0x1903(){const _0x5e57e6=['6417144YyNuCo','3050310NYUCrG','6378296BxhLFg','68024NwJspw','24415490pveRlB','execute','19614XtFPMw','fire','79RqWJdB','prompt','7UqaEpJ','children','999081aKRhTa','locale','add','set','80DtquwO'];_0x1903=function(){return _0x5e57e6;};return _0x1903();}function _0x2528(_0x3ac8be,_0x3e226f){const _0x190341=_0x1903();return _0x2528=function(_0x252843,_0x57ca89){_0x252843=_0x252843-0xf5;let _0x4bc155=_0x190341[_0x252843];return _0x4bc155;},_0x2528(_0x3ac8be,_0x3e226f);}import{unescape as _0x2bf8ef}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x518920{constructor(_0x28f5df){const _0x5d4ba4=_0x2528;super();const _0x232b7d=new _0x323ffb(),_0x4672b7=new _0x111563(this[_0x5d4ba4(0x102)],_0x232b7d);this[_0x5d4ba4(0x100)][_0x5d4ba4(0x103)](_0x4672b7),_0x4672b7[_0x5d4ba4(0x104)]({'label':_0x28f5df[_0x5d4ba4(0xfe)],'withText':!0x0}),_0x4672b7['on'](_0x5d4ba4(0xfa),()=>{const _0x104acd=_0x5d4ba4;this[_0x104acd(0xfc)](_0x104acd(0xfa),{'value':_0x2bf8ef(_0x28f5df[_0x104acd(0xfe)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ab502=_0x3d5a;(function(_0xa2c1c4,_0x15f74a){const _0x5a24f0=_0x3d5a,_0x101f5d=_0xa2c1c4();while(!![]){try{const _0xeb1651=parseInt(_0x5a24f0(0x8a))/0x1+parseInt(_0x5a24f0(0x8b))/0x2*(-parseInt(_0x5a24f0(0xa7))/0x3)+parseInt(_0x5a24f0(0x90))/0x4*(parseInt(_0x5a24f0(0x96))/0x5)+-parseInt(_0x5a24f0(0x97))/0x6*(-parseInt(_0x5a24f0(0xa0))/0x7)+parseInt(_0x5a24f0(0x99))/0x8*(-parseInt(_0x5a24f0(0x8f))/0x9)+parseInt(_0x5a24f0(0xa6))/0xa*(-parseInt(_0x5a24f0(0xa5))/0xb)+-parseInt(_0x5a24f0(0x95))/0xc*(-parseInt(_0x5a24f0(0x92))/0xd);if(_0xeb1651===_0x15f74a)break;else _0x101f5d['push'](_0x101f5d['shift']());}catch(_0x8cce10){_0x101f5d['push'](_0x101f5d['shift']());}}}(_0x5e82,0xc3b77));import{ListView as _0x336dc0,ListItemGroupView as _0x449c59,ButtonView as _0x45990e}from'ckeditor5/src/ui.js';function _0x3d5a(_0x32af64,_0x3b728a){const _0x5e82c0=_0x5e82();return _0x3d5a=function(_0x3d5a58,_0x2227bf){_0x3d5a58=_0x3d5a58-0x8a;let _0x492d6a=_0x5e82c0[_0x3d5a58];return _0x492d6a;},_0x3d5a(_0x32af64,_0x3b728a);}import{getTranslation as _0x39b40f}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x336dc0{[_0x5ab502(0x9a)];[_0x5ab502(0x8e)];constructor(_0x1e8b9b){const _0x266b66=_0x5ab502;super(_0x1e8b9b),this[_0x266b66(0x8e)]=this[_0x266b66(0xa2)](),this[_0x266b66(0x9a)]=new _0x449c59(),this[_0x266b66(0x9a)][_0x266b66(0x98)][_0x266b66(0xa1)](this[_0x266b66(0x8e)],0x1),this[_0x266b66(0x9a)][_0x266b66(0x9b)]=_0x39b40f(_0x1e8b9b,_0x266b66(0xa3)),this[_0x266b66(0x9a)][_0x266b66(0x9c)][_0x266b66(0x91)](_0x266b66(0x9f))['to'](this),this[_0x266b66(0x9c)][_0x266b66(0xa1)](this[_0x266b66(0x9a)]);}[_0x5ab502(0x8c)](){const _0x12c063=_0x5ab502;let _0x409637=0x0;for(const _0x2cd755 of this[_0x12c063(0x9c)])_0x409637+=_0x2cd755[_0x12c063(0x9c)][_0x12c063(0x9d)];return{'resultsCount':_0x409637,'totalItemsCount':_0x409637};}[_0x5ab502(0xa2)](){const _0x252c2a=_0x5ab502,_0x5aa96a=this[_0x252c2a(0x8d)],_0x15d7a6=new _0x45990e(this[_0x252c2a(0x8d)]);return _0x15d7a6[_0x252c2a(0x93)]({'label':'('+_0x39b40f(_0x5aa96a,_0x252c2a(0x94))+')','withText':!0x0}),_0x15d7a6['on'](_0x252c2a(0x9f),()=>this[_0x252c2a(0x9e)](_0x252c2a(0xa4))),_0x15d7a6;}}function _0x5e82(){const _0x2f6990=['946226XoMqfs','1649066vqtIWk','filter','locale','clearHistoryButton','1467SEUHNH','508756setwUp','delegate','6344DwQMdo','set','Clear','26592qRobDt','15hpRGsi','246bhWFeU','children','16712BcGMFo','historyGroupView','label','items','length','fire','execute','187495rczjcH','add','_createClearHistoryButton','Prompt\x20history','clearHistory','1441KMwHMD','117610lhzOoj','3mFuxxt'];_0x5e82=function(){return _0x2f6990;};return _0x5e82();}
23
+ function _0x5118(){const _0x565623=['717793mmORyM','set','add','Prompt\x20history','4336268nBpKOZ','5jBuMBv','2438569tlDyBi','filter','1116BdhFMt','execute','children','fire','2fYyFaD','length','26587830ZSmMrG','delegate','5555772TgaZwo','_createClearHistoryButton','1399476AilAmS','Clear','clearHistory','locale','historyGroupView','items','clearHistoryButton','label','2088tEcOlx'];_0x5118=function(){return _0x565623;};return _0x5118();}const _0x20b595=_0x17b6;(function(_0x34bcca,_0x110716){const _0x3f51eb=_0x17b6,_0x2113dd=_0x34bcca();while(!![]){try{const _0x146468=parseInt(_0x3f51eb(0x112))/0x1+-parseInt(_0x3f51eb(0x11e))/0x2*(parseInt(_0x3f51eb(0x109))/0x3)+-parseInt(_0x3f51eb(0x116))/0x4*(parseInt(_0x3f51eb(0x117))/0x5)+-parseInt(_0x3f51eb(0x107))/0x6+-parseInt(_0x3f51eb(0x118))/0x7+-parseInt(_0x3f51eb(0x111))/0x8*(-parseInt(_0x3f51eb(0x11a))/0x9)+parseInt(_0x3f51eb(0x120))/0xa;if(_0x146468===_0x110716)break;else _0x2113dd['push'](_0x2113dd['shift']());}catch(_0x20179b){_0x2113dd['push'](_0x2113dd['shift']());}}}(_0x5118,0x8e974));function _0x17b6(_0x413b28,_0x4b9825){const _0x5118ee=_0x5118();return _0x17b6=function(_0x17b6d5,_0x1e198e){_0x17b6d5=_0x17b6d5-0x106;let _0x4dc91a=_0x5118ee[_0x17b6d5];return _0x4dc91a;},_0x17b6(_0x413b28,_0x4b9825);}import{ListView as _0x332771,ListItemGroupView as _0x1c38e3,ButtonView as _0x1fabca}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b569a}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x332771{[_0x20b595(0x10d)];[_0x20b595(0x10f)];constructor(_0x290dd3){const _0x2de8a2=_0x20b595;super(_0x290dd3),this[_0x2de8a2(0x10f)]=this[_0x2de8a2(0x108)](),this[_0x2de8a2(0x10d)]=new _0x1c38e3(),this[_0x2de8a2(0x10d)][_0x2de8a2(0x11c)][_0x2de8a2(0x114)](this[_0x2de8a2(0x10f)],0x1),this[_0x2de8a2(0x10d)][_0x2de8a2(0x110)]=_0x4b569a(_0x290dd3,_0x2de8a2(0x115)),this[_0x2de8a2(0x10d)][_0x2de8a2(0x10e)][_0x2de8a2(0x106)](_0x2de8a2(0x11b))['to'](this),this[_0x2de8a2(0x10e)][_0x2de8a2(0x114)](this[_0x2de8a2(0x10d)]);}[_0x20b595(0x119)](){const _0x3470a4=_0x20b595;let _0x5d4199=0x0;for(const _0x53aba2 of this[_0x3470a4(0x10e)])_0x5d4199+=_0x53aba2[_0x3470a4(0x10e)][_0x3470a4(0x11f)];return{'resultsCount':_0x5d4199,'totalItemsCount':_0x5d4199};}[_0x20b595(0x108)](){const _0x5a9e87=_0x20b595,_0x354a5a=this[_0x5a9e87(0x10c)],_0x5c9613=new _0x1fabca(this[_0x5a9e87(0x10c)]);return _0x5c9613[_0x5a9e87(0x113)]({'label':'('+_0x4b569a(_0x354a5a,_0x5a9e87(0x10a))+')','withText':!0x0}),_0x5c9613['on'](_0x5a9e87(0x11b),()=>this[_0x5a9e87(0x11d)](_0x5a9e87(0x10b))),_0x5c9613;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dcec2=_0x550e;(function(_0x5c7a38,_0xd699c){const _0x1c3c4b=_0x550e,_0x2224fb=_0x5c7a38();while(!![]){try{const _0x504ed3=parseInt(_0x1c3c4b(0x112))/0x1+-parseInt(_0x1c3c4b(0x113))/0x2+parseInt(_0x1c3c4b(0x103))/0x3*(-parseInt(_0x1c3c4b(0x115))/0x4)+parseInt(_0x1c3c4b(0x111))/0x5+parseInt(_0x1c3c4b(0x100))/0x6+-parseInt(_0x1c3c4b(0x114))/0x7*(parseInt(_0x1c3c4b(0x106))/0x8)+-parseInt(_0x1c3c4b(0x108))/0x9;if(_0x504ed3===_0xd699c)break;else _0x2224fb['push'](_0x2224fb['shift']());}catch(_0x4bbf19){_0x2224fb['push'](_0x2224fb['shift']());}}}(_0x22b1,0x21a88));function _0x22b1(){const _0xa62712=['last','setItem','1361880yQfnrn','116241XdwHHw','10592OgOCPm','79793sqdfOK','4ceLpCB','CKEditor/AIFormView/PromptHistory','length','parse','1147758RljPCr','prompt','remove','26463hmeTXA','addMany','_loadFromSessionStorage','176ymjFkY','_saveToSessionStorage','1594359vwlaXm','add','toLowerCase','trim','stringify','map','getItem'];_0x22b1=function(){return _0xa62712;};return _0x22b1();}import{Collection as _0x493614}from'ckeditor5/src/utils.js';const So=_0x3dcec2(0x116);export class PromptHistory extends _0x493614{constructor(){const _0x52ac0f=_0x3dcec2;super(),this[_0x52ac0f(0x105)](),this['on'](_0x52ac0f(0x109),(_0x4c2839,_0x4752c0)=>{const _0x28a1c7=_0x52ac0f,_0x1627ee=fo(_0x4752c0[_0x28a1c7(0x101)]);for(const _0x386f96 of this)if(_0x386f96!=_0x4752c0&&fo(_0x386f96[_0x28a1c7(0x101)])===_0x1627ee){this[_0x28a1c7(0x102)](_0x386f96);break;}this[_0x28a1c7(0x117)]>0x14&&this[_0x28a1c7(0x102)](this[_0x28a1c7(0x10f)]),this[_0x28a1c7(0x107)]();}),this['on'](_0x52ac0f(0x102),()=>{const _0x295053=_0x52ac0f;this[_0x295053(0x107)]();});}[_0x3dcec2(0x105)](){const _0x5110ae=_0x3dcec2,_0x28c0fe=sessionStorage[_0x5110ae(0x10e)](So)||'[]';this[_0x5110ae(0x104)](JSON[_0x5110ae(0xff)](_0x28c0fe));}[_0x3dcec2(0x107)](){const _0xc365b6=_0x3dcec2;sessionStorage[_0xc365b6(0x110)](So,JSON[_0xc365b6(0x10c)](this[_0xc365b6(0x10d)](_0x172503=>_0x172503)));}}function _0x550e(_0x35752f,_0x5004bb){const _0x22b18e=_0x22b1();return _0x550e=function(_0x550eb6,_0x3e3333){_0x550eb6=_0x550eb6-0xff;let _0x3f3ccb=_0x22b18e[_0x550eb6];return _0x3f3ccb;},_0x550e(_0x35752f,_0x5004bb);}function fo(_0x24fb6c){const _0x53941d=_0x3dcec2;return _0x24fb6c[_0x53941d(0x10a)]()[_0x53941d(0x10b)]();}
23
+ function _0x492d(){const _0x2b6529=['toLowerCase','469bZxulw','306FhnfkV','setItem','2325244cBqqJX','length','147IQeReu','16986UXbWiZ','trim','stringify','_saveToSessionStorage','addMany','map','CKEditor/AIFormView/PromptHistory','parse','remove','2290LvtDLX','7344VAijkY','5opejnw','last','prompt','2555196gDIVMP','add','6891918ImgUkh','getItem','1838500NLpziO','_loadFromSessionStorage'];_0x492d=function(){return _0x2b6529;};return _0x492d();}const _0x53019c=_0x5001;function _0x5001(_0x55b820,_0x49401f){const _0x492d18=_0x492d();return _0x5001=function(_0x500145,_0x5c097e){_0x500145=_0x500145-0x8c;let _0x47bb0f=_0x492d18[_0x500145];return _0x47bb0f;},_0x5001(_0x55b820,_0x49401f);}(function(_0x4c5cea,_0xc551d1){const _0x25f745=_0x5001,_0x14bffc=_0x4c5cea();while(!![]){try{const _0x440e66=-parseInt(_0x25f745(0x9d))/0x1*(-parseInt(_0x25f745(0x8c))/0x2)+parseInt(_0x25f745(0x91))/0x3+parseInt(_0x25f745(0x9b))/0x4*(parseInt(_0x25f745(0x8e))/0x5)+-parseInt(_0x25f745(0x9e))/0x6*(parseInt(_0x25f745(0x98))/0x7)+-parseInt(_0x25f745(0x8d))/0x8*(-parseInt(_0x25f745(0x99))/0x9)+-parseInt(_0x25f745(0x95))/0xa+-parseInt(_0x25f745(0x93))/0xb;if(_0x440e66===_0xc551d1)break;else _0x14bffc['push'](_0x14bffc['shift']());}catch(_0x9523cb){_0x14bffc['push'](_0x14bffc['shift']());}}}(_0x492d,0x9a6b9));import{Collection as _0x5afd67}from'ckeditor5/src/utils.js';const Jo=_0x53019c(0xa4);export class PromptHistory extends _0x5afd67{constructor(){const _0x465ef2=_0x53019c;super(),this[_0x465ef2(0x96)](),this['on'](_0x465ef2(0x92),(_0x4b5cc8,_0x351009)=>{const _0x282923=_0x465ef2,_0x3ae816=Ko(_0x351009[_0x282923(0x90)]);for(const _0x24f04f of this)if(_0x24f04f!=_0x351009&&Ko(_0x24f04f[_0x282923(0x90)])===_0x3ae816){this[_0x282923(0xa6)](_0x24f04f);break;}this[_0x282923(0x9c)]>0x14&&this[_0x282923(0xa6)](this[_0x282923(0x8f)]),this[_0x282923(0xa1)]();}),this['on'](_0x465ef2(0xa6),()=>{const _0x49bb19=_0x465ef2;this[_0x49bb19(0xa1)]();});}[_0x53019c(0x96)](){const _0x128cd8=_0x53019c,_0x51e157=sessionStorage[_0x128cd8(0x94)](Jo)||'[]';this[_0x128cd8(0xa2)](JSON[_0x128cd8(0xa5)](_0x51e157));}[_0x53019c(0xa1)](){const _0x55441d=_0x53019c;sessionStorage[_0x55441d(0x9a)](Jo,JSON[_0x55441d(0xa0)](this[_0x55441d(0xa3)](_0x2e3c75=>_0x2e3c75)));}}function Ko(_0x27c3d2){const _0xff1956=_0x53019c;return _0x27c3d2[_0xff1956(0x97)]()[_0xff1956(0x9f)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3085f0=_0x37f6;(function(_0x1c59d0,_0x11e61f){const _0x42561a=_0x37f6,_0x5377f1=_0x1c59d0();while(!![]){try{const _0x58dbaa=-parseInt(_0x42561a(0xba))/0x1*(parseInt(_0x42561a(0x96))/0x2)+parseInt(_0x42561a(0xbb))/0x3+-parseInt(_0x42561a(0xb4))/0x4*(-parseInt(_0x42561a(0xa1))/0x5)+parseInt(_0x42561a(0x92))/0x6+parseInt(_0x42561a(0xb6))/0x7*(-parseInt(_0x42561a(0xa2))/0x8)+-parseInt(_0x42561a(0xaf))/0x9*(-parseInt(_0x42561a(0xae))/0xa)+-parseInt(_0x42561a(0x97))/0xb*(parseInt(_0x42561a(0xad))/0xc);if(_0x58dbaa===_0x11e61f)break;else _0x5377f1['push'](_0x5377f1['shift']());}catch(_0x34f61c){_0x5377f1['push'](_0x5377f1['shift']());}}}(_0x15a2,0x1db00));import{Command as _0x30b6ef}from'ckeditor5/src/core.js';function _0x37f6(_0x54a803,_0x387637){const _0x15a2fb=_0x15a2();return _0x37f6=function(_0x37f6a1,_0x462a2d){_0x37f6a1=_0x37f6a1-0x90;let _0x10cfd1=_0x15a2fb[_0x37f6a1];return _0x10cfd1;},_0x37f6(_0x54a803,_0x387637);}function _0x15a2(){const _0x1938cf=['values','ai.assistant.disabledElements','isCollapsed','_commandDefinitions','getSelectedBlocks','config','showUI','12jAOOAB','1464010JpaMaP','9WDoaiR','enabledCommandsIds','refresh','change:isEnabled','name','348SgHlga','editor','5551pDaIFs','plugins','requiresContent','isEnabled','1VMKKpB','497364smKaMM','element','document','includes','getItems','87750ghExdp','isEmpty','model','from','86506fqpUTF','569558PJnLxL','execute','custom','get','length','change:_hasContext','_hasContext','selection','getRanges','getFirstRange','595IlGuLf','1216DQkWOL','hasContent','set','add'];_0x15a2=function(){return _0x1938cf;};return _0x15a2();}import{AIAssistantUI as _0x2364c2}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x30b6ef{[_0x3085f0(0xa9)];constructor(_0x8e1cce,_0x2a418a){const _0x44c292=_0x3085f0;super(_0x8e1cce),this[_0x44c292(0xa9)]=_0x2a418a,this[_0x44c292(0xa4)](_0x44c292(0xb0),[]),this['on'](_0x44c292(0x9c),(_0xca652b,_0x477596,_0x498bfe)=>{const _0x566c19=_0x44c292;this[_0x566c19(0xb9)]&&(this[_0x566c19(0xb0)]=ns(this[_0x566c19(0xa9)],_0x498bfe));}),this[_0x44c292(0xa4)](_0x44c292(0x9d),!0x1),this['on'](_0x44c292(0xb2),(_0x15981f,_0x10040d,_0x370327)=>{const _0x760077=_0x44c292;this[_0x760077(0xb0)]=_0x370327?ns(this[_0x760077(0xa9)],this[_0x760077(0x9d)]):[];});}[_0x3085f0(0xb1)](){const _0xb3a51=_0x3085f0,_0x22d0d7=this[_0xb3a51(0xb5)][_0xb3a51(0x94)];this[_0xb3a51(0x9d)]=function(_0x2d4d92){const _0x245942=_0xb3a51,_0x56b022=_0x2d4d92[_0x245942(0xbd)][_0x245942(0x9e)];return _0x56b022[_0x245942(0xa8)]?0x0!==[..._0x56b022[_0x245942(0xaa)]()][_0x245942(0x9b)]&&![..._0x56b022[_0x245942(0xaa)]()][0x0][_0x245942(0x93)]:!!_0x2d4d92[_0x245942(0xa3)](_0x56b022[_0x245942(0xa0)]());}(_0x22d0d7);const _0x525eb0=_0x22d0d7[_0xb3a51(0xbd)][_0xb3a51(0x9e)],_0x404ff3=this[_0xb3a51(0xb5)][_0xb3a51(0xab)][_0xb3a51(0x9a)](_0xb3a51(0xa7));for(const _0x507fa2 of _0x525eb0[_0xb3a51(0x9f)]())for(const _0x859c0 of _0x507fa2[_0xb3a51(0x91)]())if(_0x859c0['is'](_0xb3a51(0xbc))&&_0x404ff3[_0xb3a51(0x90)](_0x859c0[_0xb3a51(0xb3)]))return void(this[_0xb3a51(0xb9)]=!0x1);this[_0xb3a51(0xb9)]=!0x0;}[_0x3085f0(0x98)](_0x19b952='',_0x48cf6f='',_0x474139=_0x3085f0(0x99)){const _0x3b4fbd=_0x3085f0;this[_0x3b4fbd(0xb5)][_0x3b4fbd(0xb7)][_0x3b4fbd(0x9a)](_0x2364c2)[_0x3b4fbd(0xac)](_0x19b952,_0x48cf6f,_0x474139);}}function ns(_0x21946e,_0x1626d4){const _0x35defc=_0x3085f0,_0x8e1e03=new Set();for(const _0x1ddab0 of _0x21946e[_0x35defc(0xa6)]())(_0x1626d4||!0x1===_0x1ddab0[_0x35defc(0xb8)])&&_0x8e1e03[_0x35defc(0xa5)](_0x1ddab0['id']);return Array[_0x35defc(0x95)](_0x8e1e03);}
23
+ const _0x12aa1e=_0xbdfc;(function(_0x2e3d78,_0x5b7b86){const _0x7f901b=_0xbdfc,_0x527dfe=_0x2e3d78();while(!![]){try{const _0x4b887d=parseInt(_0x7f901b(0x8d))/0x1*(parseInt(_0x7f901b(0x98))/0x2)+parseInt(_0x7f901b(0x85))/0x3+parseInt(_0x7f901b(0x8a))/0x4*(-parseInt(_0x7f901b(0x89))/0x5)+parseInt(_0x7f901b(0x94))/0x6+parseInt(_0x7f901b(0x9c))/0x7+parseInt(_0x7f901b(0xa3))/0x8+-parseInt(_0x7f901b(0x80))/0x9;if(_0x4b887d===_0x5b7b86)break;else _0x527dfe['push'](_0x527dfe['shift']());}catch(_0x1a1771){_0x527dfe['push'](_0x527dfe['shift']());}}}(_0x2da0,0xa1646));import{Command as _0x51340c}from'ckeditor5/src/core.js';function _0x2da0(){const _0x448d77=['plugins','330103UhUEQu','isEnabled','from','hasContent','includes','getItems','model','7357644RkDFcR','change:isEnabled','change:_hasContext','isEmpty','2ycnJil','document','get','refresh','8837990kTcpRp','set','getRanges','requiresContent','execute','selection','length','1246672XHVdQd','isCollapsed','add','element','config','values','_commandDefinitions','_hasContext','22237839dZiVVC','custom','ai.assistant.disabledElements','enabledCommandsIds','getSelectedBlocks','1058118tvrEtV','editor','showUI','name','10ZusXCc','391108XJoMAt','getFirstRange'];_0x2da0=function(){return _0x448d77;};return _0x2da0();}import{AIAssistantUI as _0x3e6c33}from'../aiassistantui.js';function _0xbdfc(_0x1defbf,_0x1f3410){const _0x2da092=_0x2da0();return _0xbdfc=function(_0xbdfc23,_0x22e132){_0xbdfc23=_0xbdfc23-0x80;let _0xa4c074=_0x2da092[_0xbdfc23];return _0xa4c074;},_0xbdfc(_0x1defbf,_0x1f3410);}export class ShowAIAssistantCommand extends _0x51340c{[_0x12aa1e(0xa9)];constructor(_0x2679e9,_0x3a4f82){const _0xe3ac44=_0x12aa1e;super(_0x2679e9),this[_0xe3ac44(0xa9)]=_0x3a4f82,this[_0xe3ac44(0x9d)](_0xe3ac44(0x83),[]),this['on'](_0xe3ac44(0x96),(_0x439955,_0x318e76,_0x7d62fe)=>{const _0x904eb7=_0xe3ac44;this[_0x904eb7(0x8e)]&&(this[_0x904eb7(0x83)]=xs(this[_0x904eb7(0xa9)],_0x7d62fe));}),this[_0xe3ac44(0x9d)](_0xe3ac44(0xaa),!0x1),this['on'](_0xe3ac44(0x95),(_0x4c2686,_0x27ef4e,_0x23326a)=>{const _0x424e43=_0xe3ac44;this[_0x424e43(0x83)]=_0x23326a?xs(this[_0x424e43(0xa9)],this[_0x424e43(0xaa)]):[];});}[_0x12aa1e(0x9b)](){const _0x49fbd5=_0x12aa1e,_0x18b724=this[_0x49fbd5(0x86)][_0x49fbd5(0x93)];this[_0x49fbd5(0xaa)]=function(_0x14646a){const _0x5160b6=_0x49fbd5,_0x4437d0=_0x14646a[_0x5160b6(0x99)][_0x5160b6(0xa1)];return _0x4437d0[_0x5160b6(0xa4)]?0x0!==[..._0x4437d0[_0x5160b6(0x84)]()][_0x5160b6(0xa2)]&&![..._0x4437d0[_0x5160b6(0x84)]()][0x0][_0x5160b6(0x97)]:!!_0x14646a[_0x5160b6(0x90)](_0x4437d0[_0x5160b6(0x8b)]());}(_0x18b724);const _0x876209=_0x18b724[_0x49fbd5(0x99)][_0x49fbd5(0xa1)],_0x1014eb=this[_0x49fbd5(0x86)][_0x49fbd5(0xa7)][_0x49fbd5(0x9a)](_0x49fbd5(0x82));for(const _0x4caa67 of _0x876209[_0x49fbd5(0x9e)]())for(const _0x2990fc of _0x4caa67[_0x49fbd5(0x92)]())if(_0x2990fc['is'](_0x49fbd5(0xa6))&&_0x1014eb[_0x49fbd5(0x91)](_0x2990fc[_0x49fbd5(0x88)]))return void(this[_0x49fbd5(0x8e)]=!0x1);this[_0x49fbd5(0x8e)]=!0x0;}[_0x12aa1e(0xa0)](_0x58b8eb='',_0x471839='',_0x592d44=_0x12aa1e(0x81)){const _0x465218=_0x12aa1e;this[_0x465218(0x86)][_0x465218(0x8c)][_0x465218(0x9a)](_0x3e6c33)[_0x465218(0x87)](_0x58b8eb,_0x471839,_0x592d44);}}function xs(_0x45f541,_0x3007ca){const _0x15a6df=_0x12aa1e,_0x5552a6=new Set();for(const _0x363076 of _0x45f541[_0x15a6df(0xa8)]())(_0x3007ca||!0x1===_0x363076[_0x15a6df(0x9f)])&&_0x5552a6[_0x15a6df(0xa5)](_0x363076['id']);return Array[_0x15a6df(0x8f)](_0x5552a6);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x103468,_0x1d8070,_0x4ecb25){const t=_0x103468['t'];switch(_0x1d8070){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x4ecb25);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4ecb25);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x4ecb25);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x1d8070;}}
23
+ export function getTranslation(_0x141cb8,_0x5a7c1f,_0x5438c9){const t=_0x141cb8['t'];switch(_0x5a7c1f){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x5438c9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x5438c9);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x5438c9);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x5a7c1f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x5b3345,_0x28877d){const _0xead191=(0x0,_0x28877d['t'])('Other');return _0x5b3345['length']?'groupId'in _0x5b3345[0x0]?_0x5b3345:[{'groupId':'_ungrouppedCommands','groupLabel':_0xead191,'order':0x1/0x0,'commands':_0x5b3345}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0xead191,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x141361,_0x5f144f){const _0x1494d3=(0x0,_0x5f144f['t'])('Other');return _0x141361['length']?'groupId'in _0x141361[0x0]?_0x141361:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1494d3,'order':0x1/0x0,'commands':_0x141361}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1494d3,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52b466=_0x326a;function _0x326a(_0x6be726,_0x1c0f83){const _0x47993b=_0x4799();return _0x326a=function(_0x326a21,_0x5c5cc5){_0x326a21=_0x326a21-0x176;let _0x50503f=_0x47993b[_0x326a21];return _0x50503f;},_0x326a(_0x6be726,_0x1c0f83);}(function(_0x26df11,_0x78f615){const _0x5bf081=_0x326a,_0xfbd93c=_0x26df11();while(!![]){try{const _0x390abd=-parseInt(_0x5bf081(0x17f))/0x1*(-parseInt(_0x5bf081(0x1a9))/0x2)+-parseInt(_0x5bf081(0x199))/0x3*(-parseInt(_0x5bf081(0x1c0))/0x4)+parseInt(_0x5bf081(0x189))/0x5*(-parseInt(_0x5bf081(0x1cd))/0x6)+parseInt(_0x5bf081(0x18a))/0x7*(parseInt(_0x5bf081(0x1bd))/0x8)+-parseInt(_0x5bf081(0x19a))/0x9*(parseInt(_0x5bf081(0x1bb))/0xa)+-parseInt(_0x5bf081(0x1cc))/0xb*(parseInt(_0x5bf081(0x1e3))/0xc)+parseInt(_0x5bf081(0x19c))/0xd;if(_0x390abd===_0x78f615)break;else _0xfbd93c['push'](_0xfbd93c['shift']());}catch(_0xf675ff){_0xfbd93c['push'](_0xfbd93c['shift']());}}}(_0x4799,0xa0ed5));import{ContextPlugin as _0x3f4346}from'ckeditor5/src/core.js';import{AIConnector as _0x3385d5}from'../aicore/aiconnector.js';import{AIEditing as _0x13b972}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xf30232,AIBalloonView as _0x14a23b}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x470257}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4799(){const _0x461f=['39801pZpboW','9OHNkue','commands','11218766OTvIan','hide','left','open','content','listenTo','_setupVisualSelection','icon','view','index','getMarkersGroup','model','showBlockingError','2ruhpcw','_calculateOptimalTopPosition','AI_ACTIONS_SELECTION_REMOVED_ERROR','trackChanges','bind','round','plugins','top','fire','isPremiumPlugin','show','showRotator','filter','context','getVisible','once','rootName','AIBalloon','4395210nmjuUT','delegate','6089232CejOAL','stopListening','AIEditing','84gfCJpm','requires','ai-selection','document','length','start','window','selectionRemoved','off','width','close','Dialog','9164199dRuBBY','6546qjEsjz','pluginName','differ','hideFakeVisualSelection','ranges','bottom','render','height','setupRotator','label','_calculateDialogPosition','ai-balloon-','root','getChangedMarkers','stopAutoScroll','mainView','isOfficialPlugin','getBoundingRect','headerView','aiBalloon','showFakeVisualSelection','max','12tDpnhT','locale','value','ai-balloon','markers','balloonView','_pendingRenderCallback','get','$graveyard','isOpen','_getSelectionElements','startAutoScroll','1134227WsEMJG','isTrackChangesOn','_setupMarkerRemovalListener','_cleanupMarkerRemovalListener','isEqual','end','updatePosition','config','dialogClosed','ai-balloon-selection','5065UBdBwJ','7kVgDVX','ai.availableReplyActions','ai-selection:','_showDialog','_isUpdatingMarkers','\x20ai-balloon-rotator','title','startsWith','iconView','editing','change','_updateBalloon','getIntersection','updateContent','_config'];_0x4799=function(){return _0x461f;};return _0x4799();}import{global as _0x583d57,Rect as _0x140d5a,scrollViewportToShowTarget as _0x224229}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x584f9f}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3a5b16}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x14fa35}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0xf30232,_0x52b466(0x187),_0x52b466(0x1c7)];const ut=0xa;export class AIBalloon extends _0x3f4346{static get[_0x52b466(0x1c1)](){return[_0x3385d5,_0x13b972];}static get[_0x52b466(0x1ce)](){const _0x9c01a0=_0x52b466;return _0x9c01a0(0x1ba);}static get[_0x52b466(0x1dd)](){return!0x0;}static get[_0x52b466(0x1b2)](){return!0x0;}[_0x52b466(0x17c)]=!0x1;[_0x52b466(0x198)];[_0x52b466(0x18e)]=!0x1;[_0x52b466(0x179)]=null;[_0x52b466(0x19f)](_0x56b3ad){const _0x4a4d0d=_0x52b466,_0x2f8ab5=_0x584f9f(this[_0x4a4d0d(0x1b6)]);if(this[_0x4a4d0d(0x198)]=_0x56b3ad,this[_0x4a4d0d(0x17c)])return void this[_0x4a4d0d(0x195)](_0x56b3ad);const _0x417683=this[_0x4a4d0d(0x1b6)][_0x4a4d0d(0x186)][_0x4a4d0d(0x17a)](_0x4a4d0d(0x18b))||[..._0x3a5b16],_0xd65ea6=_0x2f8ab5?.[_0x4a4d0d(0x19b)][_0x4a4d0d(0x17a)](_0x4a4d0d(0x1ac)),_0x446ee8=_0xd65ea6?.[_0x4a4d0d(0x1e5)];this[_0x4a4d0d(0x178)]=new _0x14a23b(_0x2f8ab5[_0x4a4d0d(0x1e4)],_0x56b3ad,_0x417683,!!_0x446ee8),this[_0x4a4d0d(0x178)][_0x4a4d0d(0x1bc)](..._0xf30232)['to'](this),_0xd65ea6&&this[_0x4a4d0d(0x178)][_0x4a4d0d(0x1ad)](_0x4a4d0d(0x180))['to'](_0xd65ea6,_0x4a4d0d(0x1e5)),this[_0x4a4d0d(0x18d)](_0x56b3ad);}[_0x52b466(0x1ca)](){const _0x33dc41=_0x52b466;_0x584f9f(this[_0x33dc41(0x1b6)])[_0x33dc41(0x1af)][_0x33dc41(0x17a)](_0x33dc41(0x1cb))[_0x33dc41(0x19d)]();}[_0x52b466(0x17e)](){const _0x573dd5=_0x52b466;this[_0x573dd5(0x178)]&&this[_0x573dd5(0x178)][_0x573dd5(0x17e)]();}[_0x52b466(0x1db)](){const _0x1e3d6d=_0x52b466;this[_0x1e3d6d(0x178)]&&this[_0x1e3d6d(0x178)][_0x1e3d6d(0x1db)]();}[_0x52b466(0x195)](_0xefed94){const _0x3b9e68=_0x52b466,_0x5d30a2=_0x584f9f(this[_0x3b9e68(0x1b6)]),_0x379e03=_0x5d30a2[_0x3b9e68(0x1af)][_0x3b9e68(0x17a)](_0x3b9e68(0x1cb));this[_0x3b9e68(0x179)]&&(_0x5d30a2[_0x3b9e68(0x193)][_0x3b9e68(0x1a4)][_0x3b9e68(0x1c8)](_0x3b9e68(0x1d3),this[_0x3b9e68(0x179)]),this[_0x3b9e68(0x179)]=null),this[_0x3b9e68(0x18e)]=!0x0,_0x379e03[_0x3b9e68(0x1a4)]?.[_0x3b9e68(0x1df)]&&(_0x379e03[_0x3b9e68(0x1a4)][_0x3b9e68(0x1df)][_0x3b9e68(0x1d6)]=_0xefed94[_0x3b9e68(0x190)],_0x379e03[_0x3b9e68(0x1a4)][_0x3b9e68(0x1df)][_0x3b9e68(0x192)]&&_0xefed94[_0x3b9e68(0x1a3)]&&(_0x379e03[_0x3b9e68(0x1a4)][_0x3b9e68(0x1df)][_0x3b9e68(0x192)][_0x3b9e68(0x1a0)]=_0xefed94[_0x3b9e68(0x1a3)])),this[_0x3b9e68(0x178)][_0x3b9e68(0x197)](_0xefed94[_0x3b9e68(0x1dc)]),this[_0x3b9e68(0x1a2)](_0xefed94[_0x3b9e68(0x1d1)],_0xefed94[_0x3b9e68(0x1a5)]),this[_0x3b9e68(0x179)]=()=>{const _0x120100=_0x3b9e68;this[_0x120100(0x18e)]=!0x1,this[_0x120100(0x179)]=null,_0x379e03[_0x120100(0x1a4)]&&_0x379e03[_0x120100(0x1a4)][_0x120100(0x185)]();},_0x5d30a2[_0x3b9e68(0x193)][_0x3b9e68(0x1a4)][_0x3b9e68(0x1b8)](_0x3b9e68(0x1d3),this[_0x3b9e68(0x179)]);}[_0x52b466(0x1a2)](_0xbf374d,_0x46e616){const _0x2c2e5d=_0x52b466;this[_0x2c2e5d(0x1b6)][_0x2c2e5d(0x1af)][_0x2c2e5d(0x17a)](_0x13b972)[_0x2c2e5d(0x1e1)](_0xbf374d,_0x2c2e5d(0x1d8)+_0x46e616,!0x0,!0x0);}[_0x52b466(0x18d)](_0x400b0f){const _0x4aaad3=_0x52b466,_0x85dd6f=_0x584f9f(this[_0x4aaad3(0x1b6)]);this[_0x4aaad3(0x1a2)](_0x400b0f[_0x4aaad3(0x1d1)],_0x400b0f[_0x4aaad3(0x1a5)]);const _0xc87871=this[_0x4aaad3(0x17d)]();_0xc87871&&_0xc87871[0x0]&&_0x224229({'target':_0xc87871[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x85dd6f[_0x4aaad3(0x1af)][_0x4aaad3(0x17a)](_0x4aaad3(0x1cb))[_0x4aaad3(0x1b3)]({'title':_0x400b0f[_0x4aaad3(0x190)],'icon':_0x400b0f[_0x4aaad3(0x1a3)],'hasCloseButton':!0x0,'id':_0x4aaad3(0x1e0),'position':this[_0x4aaad3(0x1d7)][_0x4aaad3(0x1ad)](this),'className':_0x4aaad3(0x176)+(_0x400b0f[_0x4aaad3(0x1b4)]?_0x4aaad3(0x18f):''),'content':this[_0x4aaad3(0x178)],'onShow':_0x1ae872=>{const _0x5b5eab=_0x4aaad3;_0x400b0f[_0x5b5eab(0x1b4)]&&this[_0x5b5eab(0x178)][_0x5b5eab(0x1d5)](_0x1ae872),this[_0x5b5eab(0x181)](),this[_0x5b5eab(0x17c)]=!0x0;},'onHide':()=>{const _0x1df91b=_0x4aaad3;this[_0x1df91b(0x1b6)][_0x1df91b(0x1af)][_0x1df91b(0x17a)](_0x1df91b(0x1bf))[_0x1df91b(0x1d0)](_0x1df91b(0x1d8)+this[_0x1df91b(0x198)][_0x1df91b(0x1a5)]),this[_0x1df91b(0x182)](),this[_0x1df91b(0x1b1)](_0x1df91b(0x187)),this[_0x1df91b(0x17c)]=!0x1;}});}[_0x52b466(0x1d7)](_0x2b5e06,_0x5a7bda){const _0x2f9341=_0x52b466;if(!_0x5a7bda)return null;const _0x57dc78=this[_0x2f9341(0x17d)]();if(!_0x57dc78||0x0===_0x57dc78[_0x2f9341(0x1c4)])return{'left':Math[_0x2f9341(0x1ae)](_0x5a7bda[_0x2f9341(0x19e)]+_0x5a7bda[_0x2f9341(0x1c9)]/0x2-_0x2b5e06[_0x2f9341(0x1c9)]/0x2),'top':Math[_0x2f9341(0x1ae)](_0x5a7bda[_0x2f9341(0x1b0)]+_0x5a7bda[_0x2f9341(0x1d4)]/0x2-_0x2b5e06[_0x2f9341(0x1d4)]/0x2)};const _0x25ce80=Math[_0x2f9341(0x1ae)](_0x5a7bda[_0x2f9341(0x19e)]+_0x5a7bda[_0x2f9341(0x1c9)]/0x2-_0x2b5e06[_0x2f9341(0x1c9)]/0x2),_0x37eb9c=new _0x140d5a(_0x57dc78[0x0]),_0x403603=new _0x140d5a(_0x57dc78[_0x57dc78[_0x2f9341(0x1c4)]-0x1]),_0x44e936=_0x2b5e06[_0x2f9341(0x1d4)],_0x435e2f=this[_0x2f9341(0x198)][_0x2f9341(0x1b4)]?0x8:0x0;return{'left':_0x25ce80,'top':this[_0x2f9341(0x1aa)](_0x37eb9c,_0x403603,_0x44e936,_0x435e2f,_0x5a7bda)};}[_0x52b466(0x1aa)](_0x497492,_0x3273c3,_0x5948c5,_0x4ff74f=0x0,_0x1cbca1){const _0x209937=_0x52b466,_0x57666=_0x5948c5+_0x4ff74f,_0x210a1a=new _0x140d5a(_0x583d57[_0x209937(0x1c6)]),_0x2f3013=[_0x497492[_0x209937(0x1b7)](),_0x3273c3[_0x209937(0x1b7)]()][_0x209937(0x1b5)](_0x1628e0=>_0x1628e0),_0x37e63a=_0x140d5a[_0x209937(0x1de)](_0x2f3013);if(!_0x37e63a)return Math[_0x209937(0x1ae)](_0x1cbca1[_0x209937(0x1b0)]+_0x1cbca1[_0x209937(0x1d4)]/0x2);const _0x2d9684=_0x210a1a[_0x209937(0x196)](_0x37e63a);if(!_0x2d9684)return Math[_0x209937(0x1ae)](_0x1cbca1[_0x209937(0x1b0)]+_0x1cbca1[_0x209937(0x1d4)]/0x2);const _0x14e6e9=_0x1cbca1[_0x209937(0x1b7)](),_0x1a0727=_0x14e6e9&&_0x37e63a[_0x209937(0x1d4)]>_0x14e6e9[_0x209937(0x1d4)],_0x54549c=_0x2d9684[_0x209937(0x1b0)],_0xdcea7=_0x2d9684[_0x209937(0x1d2)];if(_0x1a0727){const _0x13bcfd=(_0x14e6e9||_0x210a1a)[_0x209937(0x1d4)]/0x2-_0x57666/0x2,_0x18fbfb=_0x54549c-ut-_0x1cbca1[_0x209937(0x1b0)],_0x119fc7=_0x1cbca1[_0x209937(0x1d2)]-_0xdcea7-ut;return _0x18fbfb>=_0x57666?Math[_0x209937(0x1e2)](ut,_0x54549c-_0x57666-ut):_0x119fc7>=_0x57666?_0xdcea7+ut:Math[_0x209937(0x1e2)](ut,_0x13bcfd);}const _0x52cd6b=_0x54549c-_0x57666,_0x457f71=_0x1cbca1[_0x209937(0x1d2)]-_0xdcea7-ut,_0x535938=_0x54549c-ut-_0x1cbca1[_0x209937(0x1b0)];let _0x2b6a16;if(_0x457f71>=_0x57666)_0x2b6a16=_0xdcea7+ut;else{if(_0x535938>=_0x57666)_0x2b6a16=_0x52cd6b-ut;else _0x2b6a16=_0x54549c+_0x37e63a[_0x209937(0x1d4)]/0x2-_0x57666/0x2;}return _0x2b6a16;}[_0x52b466(0x181)](){const _0xda3ed3=_0x52b466,_0x45de61=_0x584f9f(this[_0xda3ed3(0x1b6)]);this[_0xda3ed3(0x1a1)](_0x45de61[_0xda3ed3(0x1a7)][_0xda3ed3(0x1c3)],_0xda3ed3(0x194),()=>{const _0x21841e=_0xda3ed3;if(this[_0x21841e(0x18e)])return;for(const {name:_0x4820d4,data:{newRange:_0x39513a}}of _0x45de61[_0x21841e(0x1a7)][_0x21841e(0x1c3)][_0x21841e(0x1cf)][_0x21841e(0x1da)]())if(_0x4820d4[_0x21841e(0x191)](_0x21841e(0x18c))&&(_0x39513a&&(_0x39513a[_0x21841e(0x1c5)][_0x21841e(0x183)](_0x39513a[_0x21841e(0x184)])||_0x21841e(0x17b)==_0x39513a[_0x21841e(0x1d9)][_0x21841e(0x1b9)])||null==_0x39513a)){const _0x43b8df=_0x14fa35(this[_0x21841e(0x1b6)][_0x21841e(0x1e4)],_0x21841e(0x1ab));this[_0x21841e(0x178)][_0x21841e(0x1a8)](_0x43b8df),this[_0x21841e(0x1b1)](_0x21841e(0x1c7));}});}[_0x52b466(0x182)](){const _0x315aea=_0x52b466,_0x15707f=_0x584f9f(this[_0x315aea(0x1b6)]);this[_0x315aea(0x1be)](_0x15707f[_0x315aea(0x1a7)][_0x315aea(0x1c3)]);}[_0x52b466(0x17d)](){const _0x4fc1d5=_0x52b466,_0x376e1a=_0x584f9f(this[_0x4fc1d5(0x1b6)]);return _0x470257(_0x376e1a[_0x4fc1d5(0x193)],[..._0x376e1a[_0x4fc1d5(0x1a7)][_0x4fc1d5(0x177)][_0x4fc1d5(0x1a6)](_0x4fc1d5(0x1c2)),..._0x376e1a[_0x4fc1d5(0x1a7)][_0x4fc1d5(0x177)][_0x4fc1d5(0x1a6)](_0x4fc1d5(0x188))]);}}
23
+ function _0xc915(_0x3c742e,_0x3b09f1){const _0x2a0ebc=_0x2a0e();return _0xc915=function(_0xc91568,_0x5a94f7){_0xc91568=_0xc91568-0x116;let _0x356bd8=_0x2a0ebc[_0xc91568];return _0x356bd8;},_0xc915(_0x3c742e,_0x3b09f1);}const _0x23e6f9=_0xc915;(function(_0x537bfc,_0x341ab9){const _0x70eafd=_0xc915,_0x86a47f=_0x537bfc();while(!![]){try{const _0x216a30=parseInt(_0x70eafd(0x12b))/0x1*(parseInt(_0x70eafd(0x12f))/0x2)+-parseInt(_0x70eafd(0x14e))/0x3+-parseInt(_0x70eafd(0x12a))/0x4+-parseInt(_0x70eafd(0x177))/0x5+-parseInt(_0x70eafd(0x166))/0x6+parseInt(_0x70eafd(0x178))/0x7*(-parseInt(_0x70eafd(0x14a))/0x8)+parseInt(_0x70eafd(0x15e))/0x9;if(_0x216a30===_0x341ab9)break;else _0x86a47f['push'](_0x86a47f['shift']());}catch(_0x37ff78){_0x86a47f['push'](_0x86a47f['shift']());}}}(_0x2a0e,0x875e2));import{ContextPlugin as _0xa9c3c2}from'ckeditor5/src/core.js';import{AIConnector as _0xdf0bd7}from'../aicore/aiconnector.js';import{AIEditing as _0x17a0a4}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x70e63d,AIBalloonView as _0x39bad3}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x2a0e(){const _0x150cbc=['context','editing','updateContent','ranges','length','bottom','off','updatePosition','isPremiumPlugin','top','render','199552QsuKKt','2574WiUwKS','getVisible','pluginName','differ','226ykWtlN','model','showRotator','round','showFakeVisualSelection','headerView','selectionRemoved','end','once','rootName','startAutoScroll','_updateBalloon','$graveyard','startsWith','markers','getMarkersGroup','dialogClosed','filter','trackChanges','value','iconView','hideFakeVisualSelection','ai-balloon-selection','ai.availableReplyActions','bind','isTrackChangesOn','start','413144DhsGid','ai-balloon-','content','_showDialog','1874214mXDYQF','max','ai-selection:','open','AIBalloon','getIntersection','mainView','plugins','change','_cleanupMarkerRemovalListener','width','AIEditing','height','locale','ai-selection','delegate','31338792ZgLgJX','ai-balloon','view','balloonView','_calculateDialogPosition','aiBalloon','isEqual','stopListening','5753208UkZJxx','_setupMarkerRemovalListener','setupRotator','show','_getSelectionElements','icon','_pendingRenderCallback','_setupVisualSelection','requires','isOpen','_calculateOptimalTopPosition','\x20ai-balloon-rotator','root','hide','showBlockingError','get','index','3535295PGNxQY','119JCpXwh','_isUpdatingMarkers','window','_config','close','left','isOfficialPlugin','listenTo','document','title','stopAutoScroll','fire','commands','Dialog','AI_ACTIONS_SELECTION_REMOVED_ERROR','getChangedMarkers','getBoundingRect','label','config'];_0x2a0e=function(){return _0x150cbc;};return _0x2a0e();}import{getAllMarkersDomElementsSorted as _0x580bce}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4f7b75,Rect as _0x106e73,scrollViewportToShowTarget as _0x5dd310}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xaa5f7f}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4c667f}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x5b72d1}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x70e63d,_0x23e6f9(0x13f),_0x23e6f9(0x135)];const x=0xa;export class AIBalloon extends _0xa9c3c2{static get[_0x23e6f9(0x16e)](){return[_0xdf0bd7,_0x17a0a4];}static get[_0x23e6f9(0x12d)](){const _0x313f8b=_0x23e6f9;return _0x313f8b(0x152);}static get[_0x23e6f9(0x17e)](){return!0x0;}static get[_0x23e6f9(0x127)](){return!0x0;}[_0x23e6f9(0x16f)]=!0x1;[_0x23e6f9(0x17b)];[_0x23e6f9(0x179)]=!0x1;[_0x23e6f9(0x16c)]=null;[_0x23e6f9(0x151)](_0x30853c){const _0x44c3cf=_0x23e6f9,_0x2898c0=_0xaa5f7f(this[_0x44c3cf(0x11f)]);if(this[_0x44c3cf(0x17b)]=_0x30853c,this[_0x44c3cf(0x16f)])return void this[_0x44c3cf(0x13a)](_0x30853c);const _0x74200c=this[_0x44c3cf(0x11f)][_0x44c3cf(0x11e)][_0x44c3cf(0x175)](_0x44c3cf(0x146))||[..._0x4c667f],_0xa1f1b4=_0x2898c0?.[_0x44c3cf(0x118)][_0x44c3cf(0x175)](_0x44c3cf(0x141)),_0x3a325b=_0xa1f1b4?.[_0x44c3cf(0x142)];this[_0x44c3cf(0x161)]=new _0x39bad3(_0x2898c0[_0x44c3cf(0x15b)],_0x30853c,_0x74200c,!!_0x3a325b),this[_0x44c3cf(0x161)][_0x44c3cf(0x15d)](..._0x70e63d)['to'](this),_0xa1f1b4&&this[_0x44c3cf(0x161)][_0x44c3cf(0x147)](_0x44c3cf(0x148))['to'](_0xa1f1b4,_0x44c3cf(0x142)),this[_0x44c3cf(0x14d)](_0x30853c);}[_0x23e6f9(0x17c)](){const _0x3e2c83=_0x23e6f9;_0xaa5f7f(this[_0x3e2c83(0x11f)])[_0x3e2c83(0x155)][_0x3e2c83(0x175)](_0x3e2c83(0x119))[_0x3e2c83(0x173)]();}[_0x23e6f9(0x139)](){const _0x231fd2=_0x23e6f9;this[_0x231fd2(0x161)]&&this[_0x231fd2(0x161)][_0x231fd2(0x139)]();}[_0x23e6f9(0x116)](){const _0x44f19d=_0x23e6f9;this[_0x44f19d(0x161)]&&this[_0x44f19d(0x161)][_0x44f19d(0x116)]();}[_0x23e6f9(0x13a)](_0x599fe9){const _0x4c0373=_0x23e6f9,_0x245dad=_0xaa5f7f(this[_0x4c0373(0x11f)]),_0x1f0a33=_0x245dad[_0x4c0373(0x155)][_0x4c0373(0x175)](_0x4c0373(0x119));this[_0x4c0373(0x16c)]&&(_0x245dad[_0x4c0373(0x120)][_0x4c0373(0x160)][_0x4c0373(0x125)](_0x4c0373(0x129),this[_0x4c0373(0x16c)]),this[_0x4c0373(0x16c)]=null),this[_0x4c0373(0x179)]=!0x0,_0x1f0a33[_0x4c0373(0x160)]?.[_0x4c0373(0x134)]&&(_0x1f0a33[_0x4c0373(0x160)][_0x4c0373(0x134)][_0x4c0373(0x11d)]=_0x599fe9[_0x4c0373(0x181)],_0x1f0a33[_0x4c0373(0x160)][_0x4c0373(0x134)][_0x4c0373(0x143)]&&_0x599fe9[_0x4c0373(0x16b)]&&(_0x1f0a33[_0x4c0373(0x160)][_0x4c0373(0x134)][_0x4c0373(0x143)][_0x4c0373(0x14c)]=_0x599fe9[_0x4c0373(0x16b)])),this[_0x4c0373(0x161)][_0x4c0373(0x121)](_0x599fe9[_0x4c0373(0x154)]),this[_0x4c0373(0x16d)](_0x599fe9[_0x4c0373(0x122)],_0x599fe9[_0x4c0373(0x176)]),this[_0x4c0373(0x16c)]=()=>{const _0x53d6bb=_0x4c0373;this[_0x53d6bb(0x179)]=!0x1,this[_0x53d6bb(0x16c)]=null,_0x1f0a33[_0x53d6bb(0x160)]&&_0x1f0a33[_0x53d6bb(0x160)][_0x53d6bb(0x126)]();},_0x245dad[_0x4c0373(0x120)][_0x4c0373(0x160)][_0x4c0373(0x137)](_0x4c0373(0x129),this[_0x4c0373(0x16c)]);}[_0x23e6f9(0x16d)](_0x1a2216,_0x2bb611){const _0x2b8596=_0x23e6f9;this[_0x2b8596(0x11f)][_0x2b8596(0x155)][_0x2b8596(0x175)](_0x17a0a4)[_0x2b8596(0x133)](_0x1a2216,_0x2b8596(0x14b)+_0x2bb611,!0x0,!0x0);}[_0x23e6f9(0x14d)](_0x14b039){const _0x19b65b=_0x23e6f9,_0x4d9717=_0xaa5f7f(this[_0x19b65b(0x11f)]);this[_0x19b65b(0x16d)](_0x14b039[_0x19b65b(0x122)],_0x14b039[_0x19b65b(0x176)]);const _0x174388=this[_0x19b65b(0x16a)]();_0x174388&&_0x174388[0x0]&&_0x5dd310({'target':_0x174388[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4d9717[_0x19b65b(0x155)][_0x19b65b(0x175)](_0x19b65b(0x119))[_0x19b65b(0x169)]({'title':_0x14b039[_0x19b65b(0x181)],'icon':_0x14b039[_0x19b65b(0x16b)],'hasCloseButton':!0x0,'id':_0x19b65b(0x163),'position':this[_0x19b65b(0x162)][_0x19b65b(0x147)](this),'className':_0x19b65b(0x15f)+(_0x14b039[_0x19b65b(0x131)]?_0x19b65b(0x171):''),'content':this[_0x19b65b(0x161)],'onShow':_0x304daa=>{const _0x238264=_0x19b65b;_0x14b039[_0x238264(0x131)]&&this[_0x238264(0x161)][_0x238264(0x168)](_0x304daa),this[_0x238264(0x167)](),this[_0x238264(0x16f)]=!0x0;},'onHide':()=>{const _0x267bdf=_0x19b65b;this[_0x267bdf(0x11f)][_0x267bdf(0x155)][_0x267bdf(0x175)](_0x267bdf(0x159))[_0x267bdf(0x144)](_0x267bdf(0x14b)+this[_0x267bdf(0x17b)][_0x267bdf(0x176)]),this[_0x267bdf(0x157)](),this[_0x267bdf(0x117)](_0x267bdf(0x13f)),this[_0x267bdf(0x16f)]=!0x1;}});}[_0x23e6f9(0x162)](_0x44a97e,_0x2a5b25){const _0x109ecd=_0x23e6f9;if(!_0x2a5b25)return null;const _0x1c2c0e=this[_0x109ecd(0x16a)]();if(!_0x1c2c0e||0x0===_0x1c2c0e[_0x109ecd(0x123)])return{'left':Math[_0x109ecd(0x132)](_0x2a5b25[_0x109ecd(0x17d)]+_0x2a5b25[_0x109ecd(0x158)]/0x2-_0x44a97e[_0x109ecd(0x158)]/0x2),'top':Math[_0x109ecd(0x132)](_0x2a5b25[_0x109ecd(0x128)]+_0x2a5b25[_0x109ecd(0x15a)]/0x2-_0x44a97e[_0x109ecd(0x15a)]/0x2)};const _0x52400c=Math[_0x109ecd(0x132)](_0x2a5b25[_0x109ecd(0x17d)]+_0x2a5b25[_0x109ecd(0x158)]/0x2-_0x44a97e[_0x109ecd(0x158)]/0x2),_0x3e29c6=new _0x106e73(_0x1c2c0e[0x0]),_0x4c1e01=new _0x106e73(_0x1c2c0e[_0x1c2c0e[_0x109ecd(0x123)]-0x1]),_0x5aae7a=_0x44a97e[_0x109ecd(0x15a)],_0x1bc4b5=this[_0x109ecd(0x17b)][_0x109ecd(0x131)]?0x8:0x0;return{'left':_0x52400c,'top':this[_0x109ecd(0x170)](_0x3e29c6,_0x4c1e01,_0x5aae7a,_0x1bc4b5,_0x2a5b25)};}[_0x23e6f9(0x170)](_0x3afbce,_0x38dbc1,_0x3e78fe,_0x5d7365=0x0,_0x4fcabe){const _0xc0b6db=_0x23e6f9,_0x1623fa=_0x3e78fe+_0x5d7365,_0x476ae8=new _0x106e73(_0x4f7b75[_0xc0b6db(0x17a)]),_0x27d714=[_0x3afbce[_0xc0b6db(0x12c)](),_0x38dbc1[_0xc0b6db(0x12c)]()][_0xc0b6db(0x140)](_0x5f2f99=>_0x5f2f99),_0x17fbbf=_0x106e73[_0xc0b6db(0x11c)](_0x27d714);if(!_0x17fbbf)return Math[_0xc0b6db(0x132)](_0x4fcabe[_0xc0b6db(0x128)]+_0x4fcabe[_0xc0b6db(0x15a)]/0x2);const _0x482e02=_0x476ae8[_0xc0b6db(0x153)](_0x17fbbf);if(!_0x482e02)return Math[_0xc0b6db(0x132)](_0x4fcabe[_0xc0b6db(0x128)]+_0x4fcabe[_0xc0b6db(0x15a)]/0x2);const _0x25b683=_0x4fcabe[_0xc0b6db(0x12c)](),_0x502a83=_0x25b683&&_0x17fbbf[_0xc0b6db(0x15a)]>_0x25b683[_0xc0b6db(0x15a)],_0x4832d7=_0x482e02[_0xc0b6db(0x128)],_0x24db23=_0x482e02[_0xc0b6db(0x124)];if(_0x502a83){const _0x4e698c=(_0x25b683||_0x476ae8)[_0xc0b6db(0x15a)]/0x2-_0x1623fa/0x2,_0x3de3c9=_0x4832d7-x-_0x4fcabe[_0xc0b6db(0x128)],_0xe82add=_0x4fcabe[_0xc0b6db(0x124)]-_0x24db23-x;return _0x3de3c9>=_0x1623fa?Math[_0xc0b6db(0x14f)](x,_0x4832d7-_0x1623fa-x):_0xe82add>=_0x1623fa?_0x24db23+x:Math[_0xc0b6db(0x14f)](x,_0x4e698c);}const _0x1e67af=_0x4832d7-_0x1623fa,_0x314ae6=_0x4fcabe[_0xc0b6db(0x124)]-_0x24db23-x,_0x1daf83=_0x4832d7-x-_0x4fcabe[_0xc0b6db(0x128)];let _0x31b698;if(_0x314ae6>=_0x1623fa)_0x31b698=_0x24db23+x;else{if(_0x1daf83>=_0x1623fa)_0x31b698=_0x1e67af-x;else _0x31b698=_0x4832d7+_0x17fbbf[_0xc0b6db(0x15a)]/0x2-_0x1623fa/0x2;}return _0x31b698;}[_0x23e6f9(0x167)](){const _0x27ac94=_0x23e6f9,_0x159440=_0xaa5f7f(this[_0x27ac94(0x11f)]);this[_0x27ac94(0x17f)](_0x159440[_0x27ac94(0x130)][_0x27ac94(0x180)],_0x27ac94(0x156),()=>{const _0x485f09=_0x27ac94;if(this[_0x485f09(0x179)])return;for(const {name:_0x4a532e,data:{newRange:_0x139a19}}of _0x159440[_0x485f09(0x130)][_0x485f09(0x180)][_0x485f09(0x12e)][_0x485f09(0x11b)]())if(_0x4a532e[_0x485f09(0x13c)](_0x485f09(0x150))&&(_0x139a19&&(_0x139a19[_0x485f09(0x149)][_0x485f09(0x164)](_0x139a19[_0x485f09(0x136)])||_0x485f09(0x13b)==_0x139a19[_0x485f09(0x172)][_0x485f09(0x138)])||null==_0x139a19)){const _0x49607c=_0x5b72d1(this[_0x485f09(0x11f)][_0x485f09(0x15b)],_0x485f09(0x11a));this[_0x485f09(0x161)][_0x485f09(0x174)](_0x49607c),this[_0x485f09(0x117)](_0x485f09(0x135));}});}[_0x23e6f9(0x157)](){const _0x5b38d3=_0x23e6f9,_0x198f62=_0xaa5f7f(this[_0x5b38d3(0x11f)]);this[_0x5b38d3(0x165)](_0x198f62[_0x5b38d3(0x130)][_0x5b38d3(0x180)]);}[_0x23e6f9(0x16a)](){const _0x3f52a7=_0x23e6f9,_0x39c7d5=_0xaa5f7f(this[_0x3f52a7(0x11f)]);return _0x580bce(_0x39c7d5[_0x3f52a7(0x120)],[..._0x39c7d5[_0x3f52a7(0x130)][_0x3f52a7(0x13d)][_0x3f52a7(0x13e)](_0x3f52a7(0x15c)),..._0x39c7d5[_0x3f52a7(0x130)][_0x3f52a7(0x13d)][_0x3f52a7(0x13e)](_0x3f52a7(0x145))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x26f22c,_0x452140){var _0x268410=_0x297e,_0x49673f=_0x26f22c();while(!![]){try{var _0x43eeb2=-parseInt(_0x268410(0x14b))/0x1*(-parseInt(_0x268410(0x14d))/0x2)+-parseInt(_0x268410(0x148))/0x3+parseInt(_0x268410(0x13e))/0x4*(-parseInt(_0x268410(0x13f))/0x5)+-parseInt(_0x268410(0x141))/0x6*(parseInt(_0x268410(0x144))/0x7)+parseInt(_0x268410(0x142))/0x8*(-parseInt(_0x268410(0x14f))/0x9)+-parseInt(_0x268410(0x146))/0xa*(-parseInt(_0x268410(0x14c))/0xb)+-parseInt(_0x268410(0x145))/0xc*(-parseInt(_0x268410(0x143))/0xd);if(_0x43eeb2===_0x452140)break;else _0x49673f['push'](_0x49673f['shift']());}catch(_0x35d952){_0x49673f['push'](_0x49673f['shift']());}}}(_0xa69b,0xc3068));import{View as _0x5d5c79}from'ckeditor5/src/ui.js';import{getTranslation as _0x262ef0}from'../../aicore/utils/common-translations.js';function _0xa69b(){var _0x142b80=['3889395fgAKrf','div','ck-ai-balloon__disclaimer-content','29235vNpDcg','99737XKaYYd','20mhiBIY','ck-ai-balloon__disclaimer','4581ltaoQl','128428JWwlpE','205YUlPMZ','AI_DISCLAIMER_TEXT','4206yKfKMi','19576tkFQuQ','494ZzYkGL','441prGYSN','1375140bcXfBp','60OUCyuF','setTemplate'];_0xa69b=function(){return _0x142b80;};return _0xa69b();}function _0x297e(_0x2bb57a,_0x2b7b31){var _0xa69b16=_0xa69b();return _0x297e=function(_0x297e04,_0x4828c7){_0x297e04=_0x297e04-0x13e;var _0x3950e8=_0xa69b16[_0x297e04];return _0x3950e8;},_0x297e(_0x2bb57a,_0x2b7b31);}export class AIBalloonDisclaimerView extends _0x5d5c79{constructor(_0x19223c){var _0x33a030=_0x297e;super(_0x19223c),this[_0x33a030(0x147)]({'tag':_0x33a030(0x149),'attributes':{'class':['ck',_0x33a030(0x14e)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x33a030(0x14a)]},'children':[{'text':_0x262ef0(_0x19223c,_0x33a030(0x140))}]}]});}}
23
+ (function(_0x161c26,_0x179fd3){var _0x1b76ae=_0x1a8a,_0x3af530=_0x161c26();while(!![]){try{var _0x47657c=parseInt(_0x1b76ae(0x1b9))/0x1+parseInt(_0x1b76ae(0x1bc))/0x2+-parseInt(_0x1b76ae(0x1b5))/0x3*(parseInt(_0x1b76ae(0x1b2))/0x4)+-parseInt(_0x1b76ae(0x1b8))/0x5*(parseInt(_0x1b76ae(0x1b3))/0x6)+parseInt(_0x1b76ae(0x1bb))/0x7+parseInt(_0x1b76ae(0x1bd))/0x8+-parseInt(_0x1b76ae(0x1b4))/0x9*(parseInt(_0x1b76ae(0x1ba))/0xa);if(_0x47657c===_0x179fd3)break;else _0x3af530['push'](_0x3af530['shift']());}catch(_0x1f3f06){_0x3af530['push'](_0x3af530['shift']());}}}(_0x9704,0x7086e));import{View as _0x26f590}from'ckeditor5/src/ui.js';function _0x1a8a(_0x36ab3b,_0x4c3e76){var _0x970436=_0x9704();return _0x1a8a=function(_0x1a8ac5,_0x3470f1){_0x1a8ac5=_0x1a8ac5-0x1b1;var _0x53d0a1=_0x970436[_0x1a8ac5];return _0x53d0a1;},_0x1a8a(_0x36ab3b,_0x4c3e76);}function _0x9704(){var _0x1d1251=['div','AI_DISCLAIMER_TEXT','445044vgOXav','6opgTTM','108ypKGdp','24FUtQBU','setTemplate','ck-ai-balloon__disclaimer-content','2283005mQyvIk','853259pcuxpZ','1052020GDRuSq','5326237mnHCdo','1465798EFFjvx','5783792fzThlp','ck-ai-balloon__disclaimer'];_0x9704=function(){return _0x1d1251;};return _0x9704();}import{getTranslation as _0x222e5c}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x26f590{constructor(_0x232e48){var _0x8a581d=_0x1a8a;super(_0x232e48),this[_0x8a581d(0x1b6)]({'tag':_0x8a581d(0x1bf),'attributes':{'class':['ck',_0x8a581d(0x1be)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x8a581d(0x1b7)]},'children':[{'text':_0x222e5c(_0x232e48,_0x8a581d(0x1b1))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1325(){const _0x3ea826=['isLoading','7295200rIQdLR','4707530nYmEuI','18adAsOx','suggestButton','868882tJRcyu','ck-ai-button-primary','4608584cYyepM','1013386opHLXH','isEnabled','bind','_createButton','extendTemplate','ck-ai-balloon__toolbar','AI_BALLOON_APPLY_BUTTON','items','add','ck-ai-button-secondary','3aAAHQt','locale','2639175AZonFe','applyButton','AI_BALLOON_SUGGEST_BUTTON','set','25tmJpsp','645972ZFRIjO'];_0x1325=function(){return _0x3ea826;};return _0x1325();}const _0x2f0b0c=_0x3c49;function _0x3c49(_0x3765a4,_0xdf3bc5){const _0x13258a=_0x1325();return _0x3c49=function(_0x3c49c0,_0x360675){_0x3c49c0=_0x3c49c0-0x1c2;let _0x1ef978=_0x13258a[_0x3c49c0];return _0x1ef978;},_0x3c49(_0x3765a4,_0xdf3bc5);}(function(_0x1f6901,_0x34cda9){const _0x33ed6a=_0x3c49,_0x17b524=_0x1f6901();while(!![]){try{const _0xb1515c=-parseInt(_0x33ed6a(0x1c5))/0x1+parseInt(_0x33ed6a(0x1c2))/0x2*(parseInt(_0x33ed6a(0x1cf))/0x3)+parseInt(_0x33ed6a(0x1c4))/0x4+-parseInt(_0x33ed6a(0x1d5))/0x5*(-parseInt(_0x33ed6a(0x1d6))/0x6)+-parseInt(_0x33ed6a(0x1d1))/0x7+parseInt(_0x33ed6a(0x1d8))/0x8+-parseInt(_0x33ed6a(0x1da))/0x9*(parseInt(_0x33ed6a(0x1d9))/0xa);if(_0xb1515c===_0x34cda9)break;else _0x17b524['push'](_0x17b524['shift']());}catch(_0x1676e2){_0x17b524['push'](_0x17b524['shift']());}}}(_0x1325,0xac170));import{ToolbarView as _0x204c55,ButtonView as _0xe22e1e}from'ckeditor5/src/ui.js';import{getTranslation as _0x51e6e4}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x204c55{constructor(_0x1fa18e,_0x247058=!0x0,_0x233815=!0x0){const _0x4a16d4=_0x3c49;super(_0x1fa18e),this[_0x4a16d4(0x1d4)](_0x4a16d4(0x1d7),!0x1),_0x247058&&(this[_0x4a16d4(0x1d2)]=this[_0x4a16d4(0x1c8)](_0x51e6e4(_0x1fa18e,_0x4a16d4(0x1cb)),_0x4a16d4(0x1c3)),this[_0x4a16d4(0x1d2)][_0x4a16d4(0x1c7)](_0x4a16d4(0x1c6))['to'](this,_0x4a16d4(0x1d7),_0x1fd46f=>!_0x1fd46f),this[_0x4a16d4(0x1cc)][_0x4a16d4(0x1cd)](this[_0x4a16d4(0x1d2)])),_0x233815&&(this[_0x4a16d4(0x1db)]=this[_0x4a16d4(0x1c8)](_0x51e6e4(_0x1fa18e,_0x4a16d4(0x1d3)),_0x247058?_0x4a16d4(0x1ce):_0x4a16d4(0x1c3)),this[_0x4a16d4(0x1db)][_0x4a16d4(0x1c7)](_0x4a16d4(0x1c6))['to'](this,_0x4a16d4(0x1d7),_0x34eb6a=>!_0x34eb6a),this[_0x4a16d4(0x1cc)][_0x4a16d4(0x1cd)](this[_0x4a16d4(0x1db)])),this[_0x4a16d4(0x1c9)]({'attributes':{'class':[_0x4a16d4(0x1ca)]}});}[_0x2f0b0c(0x1c8)](_0x459914,_0x59edc9){const _0x556d95=_0x2f0b0c,_0x346d62=new _0xe22e1e(this[_0x556d95(0x1d0)]);return _0x346d62[_0x556d95(0x1d4)]({'label':_0x459914,'class':_0x59edc9||'','isVisible':!0x0,'withText':!0x0}),_0x346d62;}}
23
+ const _0x2e2d5e=_0x214f;function _0x214f(_0x28b0f3,_0xa10e41){const _0x2c4c33=_0x2c4c();return _0x214f=function(_0x214f33,_0x4caf43){_0x214f33=_0x214f33-0x118;let _0xe15412=_0x2c4c33[_0x214f33];return _0xe15412;},_0x214f(_0x28b0f3,_0xa10e41);}(function(_0x4975fd,_0x24535d){const _0x32f83f=_0x214f,_0xfd2a0b=_0x4975fd();while(!![]){try{const _0x2bc227=parseInt(_0x32f83f(0x120))/0x1+parseInt(_0x32f83f(0x130))/0x2*(-parseInt(_0x32f83f(0x12e))/0x3)+-parseInt(_0x32f83f(0x12a))/0x4*(-parseInt(_0x32f83f(0x12f))/0x5)+-parseInt(_0x32f83f(0x11c))/0x6*(-parseInt(_0x32f83f(0x124))/0x7)+-parseInt(_0x32f83f(0x119))/0x8*(parseInt(_0x32f83f(0x125))/0x9)+-parseInt(_0x32f83f(0x122))/0xa*(parseInt(_0x32f83f(0x128))/0xb)+parseInt(_0x32f83f(0x11a))/0xc;if(_0x2bc227===_0x24535d)break;else _0xfd2a0b['push'](_0xfd2a0b['shift']());}catch(_0xe6cc79){_0xfd2a0b['push'](_0xfd2a0b['shift']());}}}(_0x2c4c,0xabd60));function _0x2c4c(){const _0x2d9b01=['add','bind','1769142sGTULv','860375IJPxiH','2GtdqUT','suggestButton','locale','ck-ai-balloon__toolbar','extendTemplate','8QGCRBk','4490664EcjCYk','AI_BALLOON_APPLY_BUTTON','10242vtarsj','AI_BALLOON_SUGGEST_BUTTON','ck-ai-button-secondary','isLoading','812687XphRlO','set','1185430zRPplj','items','903mLYkfd','6149835jBeVkU','ck-ai-button-primary','_createButton','11IACGVU','isEnabled','16IsIPDX','applyButton'];_0x2c4c=function(){return _0x2d9b01;};return _0x2c4c();}import{ToolbarView as _0xc382a8,ButtonView as _0x26e21e}from'ckeditor5/src/ui.js';import{getTranslation as _0x508f9b}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0xc382a8{constructor(_0x471681,_0x337b03=!0x0,_0x33289c=!0x0){const _0x5c6dcf=_0x214f;super(_0x471681),this[_0x5c6dcf(0x121)](_0x5c6dcf(0x11f),!0x1),_0x337b03&&(this[_0x5c6dcf(0x12b)]=this[_0x5c6dcf(0x127)](_0x508f9b(_0x471681,_0x5c6dcf(0x11b)),_0x5c6dcf(0x126)),this[_0x5c6dcf(0x12b)][_0x5c6dcf(0x12d)](_0x5c6dcf(0x129))['to'](this,_0x5c6dcf(0x11f),_0x194ca2=>!_0x194ca2),this[_0x5c6dcf(0x123)][_0x5c6dcf(0x12c)](this[_0x5c6dcf(0x12b)])),_0x33289c&&(this[_0x5c6dcf(0x131)]=this[_0x5c6dcf(0x127)](_0x508f9b(_0x471681,_0x5c6dcf(0x11d)),_0x337b03?_0x5c6dcf(0x11e):_0x5c6dcf(0x126)),this[_0x5c6dcf(0x131)][_0x5c6dcf(0x12d)](_0x5c6dcf(0x129))['to'](this,_0x5c6dcf(0x11f),_0x4b2452=>!_0x4b2452),this[_0x5c6dcf(0x123)][_0x5c6dcf(0x12c)](this[_0x5c6dcf(0x131)])),this[_0x5c6dcf(0x118)]({'attributes':{'class':[_0x5c6dcf(0x133)]}});}[_0x2e2d5e(0x127)](_0x2872ed,_0x1c005f){const _0x5ccd1a=_0x2e2d5e,_0x45047d=new _0x26e21e(this[_0x5ccd1a(0x132)]);return _0x45047d[_0x5ccd1a(0x121)]({'label':_0x2872ed,'class':_0x1c005f||'','isVisible':!0x0,'withText':!0x0}),_0x45047d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5263ab=_0x539d;function _0x539d(_0x5c9e23,_0x263466){const _0x4cfc3a=_0x4cfc();return _0x539d=function(_0x539da3,_0x146eda){_0x539da3=_0x539da3-0x174;let _0x54a701=_0x4cfc3a[_0x539da3];return _0x54a701;},_0x539d(_0x5c9e23,_0x263466);}(function(_0x402c0,_0x354b1e){const _0x51f570=_0x539d,_0x4a3b55=_0x402c0();while(!![]){try{const _0x2d921e=parseInt(_0x51f570(0x18f))/0x1+parseInt(_0x51f570(0x19d))/0x2*(parseInt(_0x51f570(0x196))/0x3)+-parseInt(_0x51f570(0x174))/0x4+-parseInt(_0x51f570(0x18a))/0x5+parseInt(_0x51f570(0x182))/0x6+parseInt(_0x51f570(0x1cd))/0x7*(-parseInt(_0x51f570(0x1b5))/0x8)+-parseInt(_0x51f570(0x1b8))/0x9*(-parseInt(_0x51f570(0x1c6))/0xa);if(_0x2d921e===_0x354b1e)break;else _0x4a3b55['push'](_0x4a3b55['shift']());}catch(_0x163a1d){_0x4a3b55['push'](_0x4a3b55['shift']());}}}(_0x4cfc,0x850bb));import{ButtonView as _0x411a0b,View as _0x422a4a,ViewCollection as _0x3904c5,FocusCycler as _0x505bf1}from'ckeditor5/src/ui.js';import{FocusTracker as _0x212584,KeystrokeHandler as _0x3e21c1}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x5b7b86,IconPreviousArrow as _0x4b9cc0}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5dacb3}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x34a9a8}from'./aiballoondisclaimerview.js';import{getTranslation as _0x331d32}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x23e0f8}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x5cbe90}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5263ab(0x185),_0x5263ab(0x191),_0x5263ab(0x181),_0x5263ab(0x17a)];function _0x4cfc(){const _0x388f8b=['insertSuggestion','ai-balloon-error','fire','focusFirst','span','396507yzkoyL','startAutoScroll','execute','element','focus','suggestButton','focusLast','14nUbcZx','change:isTrackChangesOn','setupRotator','focusTracker','remove','set','bind','showSuggestButton','focusCycler','addMany','keystrokes','locale','_mainView','_dialogContent','bodyView','toolbar','_focusables','AI_BALLOON_NEXT_TOOLTIP','isErrorVisible','view','setLoading','_availableActions','errorMessage','_createErrorView','1272CRjTZO','_addToolbar','disclaimerView','45xTGgOJ','showRecoverableError','setTemplate','_createNextButtonView','start','showError','bindTemplate','listenTo','headerView','_errorView','AI_BALLOON_PREVIOUS_TOOLTIP','isEnabled','clearLoading','children','290110xGcfMn','getIndex','ck-ai-suggestion__error-text','clear','ck-ai-suggestion__error','destroy','scrollManager','24437hdVkgw','render','createCollection','973292KhMshm','tab','shift\x20+\x20tab','stop','_addContentView','updateContent','showPrevious','includes','add','ck-hidden','_getScrollableElement','showBlockingError','applyButton','showNext','1770642dqLZvU','stopAutoScroll','_addDisclaimerView','applySuggestion','_createPreviousButtonView','ai-balloon-content','mainView','showApplyButton','3400685lwgbBC','div','isLoading','isTrackChangesOn','hideError','658139nyODSh','_initializeScrollManager'];_0x4cfc=function(){return _0x388f8b;};return _0x4cfc();}export class AIBalloonView extends _0x422a4a{[_0x5263ab(0x1a0)];[_0x5263ab(0x1a7)];[_0x5263ab(0x1a5)];[_0x5263ab(0x1b2)];[_0x5263ab(0x1ad)];[_0x5263ab(0x1c1)];[_0x5263ab(0x1cc)];constructor(_0x213d7f,_0x2326ae,_0x4f4eab,_0x2f70ad){const _0x352a77=_0x5263ab;super(_0x213d7f),this[_0x352a77(0x1b2)]=_0x4f4eab,this[_0x352a77(0x1a2)](_0x352a77(0x18c),!0x1),this[_0x352a77(0x1a2)](_0x352a77(0x18d),_0x2f70ad),this[_0x352a77(0x1a2)](_0x352a77(0x1af),!0x1),this[_0x352a77(0x1a2)](_0x352a77(0x1b3),''),this[_0x352a77(0x1a0)]=new _0x212584(),this[_0x352a77(0x1a7)]=new _0x3e21c1(),this[_0x352a77(0x1ad)]=this[_0x352a77(0x1cf)](),this[_0x352a77(0x1a5)]=new _0x505bf1({'focusables':this[_0x352a77(0x1ad)],'focusTracker':this[_0x352a77(0x1a0)],'keystrokeHandler':this[_0x352a77(0x1a7)],'actions':{'focusPrevious':_0x352a77(0x176),'focusNext':_0x352a77(0x175)}}),this[_0x352a77(0x1aa)]=new _0x3904c5(),this[_0x352a77(0x178)](_0x2326ae[_0x352a77(0x188)]),this[_0x352a77(0x184)](),this[_0x352a77(0x1b6)](_0x2326ae[_0x352a77(0x189)],_0x2326ae[_0x352a77(0x1a4)]),this[_0x352a77(0x1ac)][_0x352a77(0x1a3)](_0x352a77(0x18c))['to'](this),this[_0x352a77(0x1ad)][_0x352a77(0x1c9)](),this[_0x352a77(0x1ad)][_0x352a77(0x1a6)]([this[_0x352a77(0x1ac)]]),this[_0x352a77(0x1ba)]({'tag':_0x352a77(0x18b),'attributes':{'class':_0x352a77(0x187)},'children':this[_0x352a77(0x1aa)]}),this['on'](_0x352a77(0x19e),()=>{const _0x66154a=_0x352a77;this[_0x66154a(0x1aa)][_0x66154a(0x1a1)](this[_0x66154a(0x1ac)]),this[_0x66154a(0x1b6)](_0x2326ae[_0x66154a(0x189)],_0x2326ae[_0x66154a(0x1a4)]);});}[_0x5263ab(0x1ce)](){const _0x5ad530=_0x5263ab;super[_0x5ad530(0x1ce)]();for(const _0x41e331 of this[_0x5ad530(0x1ad)])this[_0x5ad530(0x1a0)][_0x5ad530(0x17c)](_0x41e331[_0x5ad530(0x199)]);this[_0x5ad530(0x1a7)][_0x5ad530(0x1bf)](this[_0x5ad530(0x199)]),this[_0x5ad530(0x190)]();}[_0x5263ab(0x1cb)](){const _0x4915fa=_0x5263ab;super[_0x4915fa(0x1cb)](),this[_0x4915fa(0x1cc)]&&this[_0x4915fa(0x1cc)][_0x4915fa(0x1cb)]();}[_0x5263ab(0x19a)](_0xbd901f){const _0x286312=_0x5263ab;-0x1===_0xbd901f?this[_0x286312(0x1a5)][_0x286312(0x19c)]():this[_0x286312(0x1a5)][_0x286312(0x194)]();}[_0x5263ab(0x1b1)](){const _0x36970a=_0x5263ab;this[_0x36970a(0x18c)]=!0x0;}[_0x5263ab(0x1c4)](){const _0x5331d8=_0x5263ab;this[_0x5331d8(0x18c)]=!0x1;}[_0x5263ab(0x1bd)](_0x5767ad){const _0x29c835=_0x5263ab;this[_0x29c835(0x1c1)]||(this[_0x29c835(0x1c1)]=this[_0x29c835(0x1b4)](),this[_0x29c835(0x1aa)][_0x29c835(0x1a6)]([this[_0x29c835(0x1c1)]],0x0)),this[_0x29c835(0x1b3)]=_0x5767ad,this[_0x29c835(0x1af)]=!0x0;}[_0x5263ab(0x18e)](){const _0x1e91fa=_0x5263ab;this[_0x1e91fa(0x1af)]=!0x1;}[_0x5263ab(0x1b9)](_0x302fd1){const _0x2e3f82=_0x5263ab;this[_0x2e3f82(0x1bd)](_0x302fd1);}[_0x5263ab(0x17f)](_0x2b5f17){const _0x2adc01=_0x5263ab;this[_0x2adc01(0x1bd)](_0x2b5f17),this[_0x2adc01(0x1ac)]&&(this[_0x2adc01(0x1ac)][_0x2adc01(0x180)]&&(this[_0x2adc01(0x1ac)][_0x2adc01(0x180)][_0x2adc01(0x1c3)]=!0x1),this[_0x2adc01(0x1ac)][_0x2adc01(0x19b)]&&(this[_0x2adc01(0x1ac)][_0x2adc01(0x19b)][_0x2adc01(0x1c3)]=!0x1));}[_0x5263ab(0x19f)](_0x17d342){const _0x14086f=_0x5263ab,_0x5c3991=this[_0x14086f(0x1bb)](),_0xa9afa6=this[_0x14086f(0x186)]();_0x17d342[_0x14086f(0x1b0)][_0x14086f(0x1c0)][_0x14086f(0x1c5)][_0x14086f(0x17c)](_0x5c3991,0x2),_0x17d342[_0x14086f(0x1b0)][_0x14086f(0x1c0)][_0x14086f(0x1c5)][_0x14086f(0x17c)](_0xa9afa6,0x0),this[_0x14086f(0x1ad)][_0x14086f(0x1a6)]([_0x5c3991,_0xa9afa6]),this[_0x14086f(0x1a0)][_0x14086f(0x17c)](_0x5c3991[_0x14086f(0x199)]),this[_0x14086f(0x1a0)][_0x14086f(0x17c)](_0xa9afa6[_0x14086f(0x199)]);}[_0x5263ab(0x178)](_0xf606f7){const _0x38ab98=_0x5263ab;this[_0x38ab98(0x1a9)]=_0xf606f7,this[_0x38ab98(0x1aa)][_0x38ab98(0x17c)](this[_0x38ab98(0x1a9)]);}[_0x5263ab(0x179)](_0x246720){const _0x49ccda=_0x5263ab,_0x2abae5=this[_0x49ccda(0x1aa)][_0x49ccda(0x1c7)](this[_0x49ccda(0x1a9)]);this[_0x49ccda(0x1aa)][_0x49ccda(0x1a1)](this[_0x49ccda(0x1a9)]),this[_0x49ccda(0x1a9)]=_0x246720,this[_0x49ccda(0x1aa)][_0x49ccda(0x17c)](this[_0x49ccda(0x1a9)],_0x2abae5),this[_0x49ccda(0x18e)](),this[_0x49ccda(0x1cc)]&&this[_0x49ccda(0x1cc)][_0x49ccda(0x1cb)](),this[_0x49ccda(0x190)]();}[_0x5263ab(0x184)](){const _0x1e6191=_0x5263ab;this[_0x1e6191(0x1b7)]=new _0x34a9a8(this[_0x1e6191(0x1a8)]),this[_0x1e6191(0x1aa)][_0x1e6191(0x17c)](this[_0x1e6191(0x1b7)]);}[_0x5263ab(0x1b6)](_0x395167=!0x0,_0x134f1b=!0x0){const _0x2439c1=_0x5263ab;_0x395167=_0x395167&&!this[_0x2439c1(0x18d)]&&this[_0x2439c1(0x1b2)][_0x2439c1(0x17b)](_0x2439c1(0x185)),_0x134f1b=_0x134f1b&&this[_0x2439c1(0x1b2)][_0x2439c1(0x17b)](_0x2439c1(0x191)),this[_0x2439c1(0x1ac)]=new _0x5dacb3(this[_0x2439c1(0x1a8)],_0x395167,_0x134f1b),this[_0x2439c1(0x1ac)][_0x2439c1(0x180)]?.['on'](_0x2439c1(0x198),()=>{const _0x32e912=_0x2439c1;this[_0x32e912(0x193)](_0x32e912(0x185));}),this[_0x2439c1(0x1ac)][_0x2439c1(0x19b)]?.['on'](_0x2439c1(0x198),()=>{const _0x27ef53=_0x2439c1;this[_0x27ef53(0x193)](_0x27ef53(0x191));}),this[_0x2439c1(0x1aa)][_0x2439c1(0x17c)](this[_0x2439c1(0x1ac)]);}[_0x5263ab(0x1bb)](){const _0x49c09d=_0x5263ab,_0x1df3d4=new _0x411a0b(this[_0x49c09d(0x1a8)]);return _0x1df3d4[_0x49c09d(0x1a2)]({'icon':_0x5b7b86,'tooltip':_0x331d32(this[_0x49c09d(0x1a8)],_0x49c09d(0x1ae))}),_0x1df3d4['on'](_0x49c09d(0x198),()=>{const _0x28202d=_0x49c09d;this[_0x28202d(0x193)](_0x28202d(0x181));}),_0x1df3d4;}[_0x5263ab(0x186)](){const _0x4909c3=_0x5263ab,_0x2add8e=new _0x411a0b(this[_0x4909c3(0x1a8)]);return _0x2add8e[_0x4909c3(0x1a2)]({'icon':_0x4b9cc0,'tooltip':_0x331d32(this[_0x4909c3(0x1a8)],_0x4909c3(0x1c2))}),_0x2add8e['on'](_0x4909c3(0x198),()=>{const _0xf13f1b=_0x4909c3;this[_0xf13f1b(0x193)](_0xf13f1b(0x17a));}),_0x2add8e;}[_0x5263ab(0x1b4)](){const _0x1f2373=_0x5263ab,_0x3d67a9=new _0x422a4a(this[_0x1f2373(0x1a8)]),_0x4497b6=new _0x422a4a(this[_0x1f2373(0x1a8)]);return _0x4497b6[_0x1f2373(0x1ba)]({'tag':_0x1f2373(0x195),'attributes':{'class':['ck',_0x1f2373(0x1c8)]},'children':[{'text':this[_0x1f2373(0x1be)]['to'](_0x1f2373(0x1b3))}]}),_0x3d67a9[_0x1f2373(0x1ba)]({'tag':_0x1f2373(0x18b),'attributes':{'class':['ck',_0x1f2373(0x1ca),_0x1f2373(0x192),this[_0x1f2373(0x1be)]['if'](_0x1f2373(0x1af),_0x1f2373(0x17d),_0x451127=>!_0x451127)]},'children':[_0x4497b6]}),_0x3d67a9;}[_0x5263ab(0x197)](){const _0x42021f=_0x5263ab;this[_0x42021f(0x190)](),this[_0x42021f(0x1cc)]&&this[_0x42021f(0x1cc)][_0x42021f(0x1bc)]();}[_0x5263ab(0x183)](){const _0xe64ba9=_0x5263ab;this[_0xe64ba9(0x1cc)]&&this[_0xe64ba9(0x1cc)][_0xe64ba9(0x177)]();}[_0x5263ab(0x190)](){const _0x32516d=_0x5263ab,_0x463cae=this[_0x32516d(0x17e)]();_0x463cae&&!this[_0x32516d(0x1cc)]&&(this[_0x32516d(0x1cc)]=new _0x23e0f8(_0x463cae));}[_0x5263ab(0x17e)](){const _0x3a2674=_0x5263ab;return this[_0x3a2674(0x1a9)]instanceof _0x5cbe90&&this[_0x3a2674(0x1a9)][_0x3a2674(0x1ab)][_0x3a2674(0x199)]?this[_0x3a2674(0x1a9)][_0x3a2674(0x1ab)][_0x3a2674(0x199)]:null;}}
23
+ const _0x45481b=_0x59ac;function _0x59ac(_0x5603ab,_0x43061f){const _0x34f883=_0x34f8();return _0x59ac=function(_0x59acf4,_0x39663b){_0x59acf4=_0x59acf4-0x73;let _0x1a5802=_0x34f883[_0x59acf4];return _0x1a5802;},_0x59ac(_0x5603ab,_0x43061f);}(function(_0x40d40d,_0x738ea3){const _0xc4d440=_0x59ac,_0x2cde4e=_0x40d40d();while(!![]){try{const _0x1dce93=parseInt(_0xc4d440(0x73))/0x1+-parseInt(_0xc4d440(0x89))/0x2*(parseInt(_0xc4d440(0x77))/0x3)+parseInt(_0xc4d440(0x86))/0x4+-parseInt(_0xc4d440(0x8c))/0x5+-parseInt(_0xc4d440(0xb0))/0x6*(-parseInt(_0xc4d440(0x8f))/0x7)+-parseInt(_0xc4d440(0x9b))/0x8+parseInt(_0xc4d440(0x79))/0x9;if(_0x1dce93===_0x738ea3)break;else _0x2cde4e['push'](_0x2cde4e['shift']());}catch(_0x5321ea){_0x2cde4e['push'](_0x2cde4e['shift']());}}}(_0x34f8,0x2322d));import{ButtonView as _0x2438bd,View as _0x331020,ViewCollection as _0x450bbb,FocusCycler as _0x1450ee}from'ckeditor5/src/ui.js';import{FocusTracker as _0x41f12b,KeystrokeHandler as _0x55dbdf}from'ckeditor5/src/utils.js';import{IconNextArrow as _0xb83dc2,IconPreviousArrow as _0x3a2104}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x4a8ac3}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x95043d}from'./aiballoondisclaimerview.js';function _0x34f8(){const _0x1227d9=['disclaimerView','setTemplate','getIndex','applySuggestion','_mainView','errorMessage','bind','stopAutoScroll','focusFirst','_createPreviousButtonView','scrollManager','_createErrorView','bodyView','131931ehZOBz','focus','stop','keystrokes','474YysNXN','_focusables','132084QuOVCe','showPrevious','_addToolbar','focusCycler','showSuggestButton','_addContentView','showBlockingError','_createNextButtonView','AI_BALLOON_NEXT_TOOLTIP','change:isTrackChangesOn','showError','locale','element','375036ehNKdJ','destroy','includes','244uzrUFn','clearLoading','mainView','37515KrxPWa','startAutoScroll','insertSuggestion','14mMobOD','showRecoverableError','set','applyButton','span','isLoading','toolbar','fire','ck-ai-suggestion__error','addMany','div','clear','631760Spgbeb','isErrorVisible','_dialogContent','setLoading','isTrackChangesOn','view','children','showNext','execute','updateContent','suggestButton','shift\x20+\x20tab','isEnabled','focusTracker','ck-hidden','hideError','ai-balloon-content','tab','_initializeScrollManager','_availableActions','createCollection','27900WsfGnq','showApplyButton','add','AI_BALLOON_PREVIOUS_TOOLTIP','ai-balloon-error','ck-ai-suggestion__error-text','_getScrollableElement','remove','_addDisclaimerView','bindTemplate','_errorView','start','render','setupRotator','listenTo','headerView','focusLast'];_0x34f8=function(){return _0x1227d9;};return _0x34f8();}import{getTranslation as _0x92c833}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x5c8d7f}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x3248f9}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x45481b(0xc4),_0x45481b(0x8e),_0x45481b(0xa2),_0x45481b(0x7a)];export class AIBalloonView extends _0x331020{[_0x45481b(0xa8)];[_0x45481b(0x76)];[_0x45481b(0x7c)];[_0x45481b(0xae)];[_0x45481b(0x78)];[_0x45481b(0xba)];[_0x45481b(0xcb)];constructor(_0x1718cd,_0x2bdf5a,_0x4d2c0b,_0xc2158e){const _0xaf26ce=_0x45481b;super(_0x1718cd),this[_0xaf26ce(0xae)]=_0x4d2c0b,this[_0xaf26ce(0x91)](_0xaf26ce(0x94),!0x1),this[_0xaf26ce(0x91)](_0xaf26ce(0x9f),_0xc2158e),this[_0xaf26ce(0x91)](_0xaf26ce(0x9c),!0x1),this[_0xaf26ce(0x91)](_0xaf26ce(0xc6),''),this[_0xaf26ce(0xa8)]=new _0x41f12b(),this[_0xaf26ce(0x76)]=new _0x55dbdf(),this[_0xaf26ce(0x78)]=this[_0xaf26ce(0xaf)](),this[_0xaf26ce(0x7c)]=new _0x1450ee({'focusables':this[_0xaf26ce(0x78)],'focusTracker':this[_0xaf26ce(0xa8)],'keystrokeHandler':this[_0xaf26ce(0x76)],'actions':{'focusPrevious':_0xaf26ce(0xa6),'focusNext':_0xaf26ce(0xac)}}),this[_0xaf26ce(0x9d)]=new _0x450bbb(),this[_0xaf26ce(0x7e)](_0x2bdf5a[_0xaf26ce(0x8b)]),this[_0xaf26ce(0xb8)](),this[_0xaf26ce(0x7b)](_0x2bdf5a[_0xaf26ce(0xb1)],_0x2bdf5a[_0xaf26ce(0x7d)]),this[_0xaf26ce(0x95)][_0xaf26ce(0xc7)](_0xaf26ce(0x94))['to'](this),this[_0xaf26ce(0x78)][_0xaf26ce(0x9a)](),this[_0xaf26ce(0x78)][_0xaf26ce(0x98)]([this[_0xaf26ce(0x95)]]),this[_0xaf26ce(0xc2)]({'tag':_0xaf26ce(0x99),'attributes':{'class':_0xaf26ce(0xab)},'children':this[_0xaf26ce(0x9d)]}),this['on'](_0xaf26ce(0x82),()=>{const _0x5a197e=_0xaf26ce;this[_0x5a197e(0x9d)][_0x5a197e(0xb7)](this[_0x5a197e(0x95)]),this[_0x5a197e(0x7b)](_0x2bdf5a[_0x5a197e(0xb1)],_0x2bdf5a[_0x5a197e(0x7d)]);});}[_0x45481b(0xbc)](){const _0xe42880=_0x45481b;super[_0xe42880(0xbc)]();for(const _0x361a10 of this[_0xe42880(0x78)])this[_0xe42880(0xa8)][_0xe42880(0xb2)](_0x361a10[_0xe42880(0x85)]);this[_0xe42880(0x76)][_0xe42880(0xbe)](this[_0xe42880(0x85)]),this[_0xe42880(0xad)]();}[_0x45481b(0x87)](){const _0x42b6aa=_0x45481b;super[_0x42b6aa(0x87)](),this[_0x42b6aa(0xcb)]&&this[_0x42b6aa(0xcb)][_0x42b6aa(0x87)]();}[_0x45481b(0x74)](_0x45e3ac){const _0x59f36b=_0x45481b;-0x1===_0x45e3ac?this[_0x59f36b(0x7c)][_0x59f36b(0xc0)]():this[_0x59f36b(0x7c)][_0x59f36b(0xc9)]();}[_0x45481b(0x9e)](){const _0x1d8d94=_0x45481b;this[_0x1d8d94(0x94)]=!0x0;}[_0x45481b(0x8a)](){const _0x433c64=_0x45481b;this[_0x433c64(0x94)]=!0x1;}[_0x45481b(0x83)](_0x1d818c){const _0x3b0ca8=_0x45481b;this[_0x3b0ca8(0xba)]||(this[_0x3b0ca8(0xba)]=this[_0x3b0ca8(0xcc)](),this[_0x3b0ca8(0x9d)][_0x3b0ca8(0x98)]([this[_0x3b0ca8(0xba)]],0x0)),this[_0x3b0ca8(0xc6)]=_0x1d818c,this[_0x3b0ca8(0x9c)]=!0x0;}[_0x45481b(0xaa)](){const _0x5200a6=_0x45481b;this[_0x5200a6(0x9c)]=!0x1;}[_0x45481b(0x90)](_0x4c8a67){const _0x2b160b=_0x45481b;this[_0x2b160b(0x83)](_0x4c8a67);}[_0x45481b(0x7f)](_0x2feeb6){const _0x29809b=_0x45481b;this[_0x29809b(0x83)](_0x2feeb6),this[_0x29809b(0x95)]&&(this[_0x29809b(0x95)][_0x29809b(0x92)]&&(this[_0x29809b(0x95)][_0x29809b(0x92)][_0x29809b(0xa7)]=!0x1),this[_0x29809b(0x95)][_0x29809b(0xa5)]&&(this[_0x29809b(0x95)][_0x29809b(0xa5)][_0x29809b(0xa7)]=!0x1));}[_0x45481b(0xbd)](_0x2bc366){const _0x243c2b=_0x45481b,_0x2e68f1=this[_0x243c2b(0x80)](),_0x4ae2a3=this[_0x243c2b(0xca)]();_0x2bc366[_0x243c2b(0xa0)][_0x243c2b(0xbf)][_0x243c2b(0xa1)][_0x243c2b(0xb2)](_0x2e68f1,0x2),_0x2bc366[_0x243c2b(0xa0)][_0x243c2b(0xbf)][_0x243c2b(0xa1)][_0x243c2b(0xb2)](_0x4ae2a3,0x0),this[_0x243c2b(0x78)][_0x243c2b(0x98)]([_0x2e68f1,_0x4ae2a3]),this[_0x243c2b(0xa8)][_0x243c2b(0xb2)](_0x2e68f1[_0x243c2b(0x85)]),this[_0x243c2b(0xa8)][_0x243c2b(0xb2)](_0x4ae2a3[_0x243c2b(0x85)]);}[_0x45481b(0x7e)](_0x187bb3){const _0x534cd2=_0x45481b;this[_0x534cd2(0xc5)]=_0x187bb3,this[_0x534cd2(0x9d)][_0x534cd2(0xb2)](this[_0x534cd2(0xc5)]);}[_0x45481b(0xa4)](_0x3221d1){const _0x4dabef=_0x45481b,_0x13ecf3=this[_0x4dabef(0x9d)][_0x4dabef(0xc3)](this[_0x4dabef(0xc5)]);this[_0x4dabef(0x9d)][_0x4dabef(0xb7)](this[_0x4dabef(0xc5)]),this[_0x4dabef(0xc5)]=_0x3221d1,this[_0x4dabef(0x9d)][_0x4dabef(0xb2)](this[_0x4dabef(0xc5)],_0x13ecf3),this[_0x4dabef(0xaa)](),this[_0x4dabef(0xcb)]&&this[_0x4dabef(0xcb)][_0x4dabef(0x87)](),this[_0x4dabef(0xad)]();}[_0x45481b(0xb8)](){const _0x63f412=_0x45481b;this[_0x63f412(0xc1)]=new _0x95043d(this[_0x63f412(0x84)]),this[_0x63f412(0x9d)][_0x63f412(0xb2)](this[_0x63f412(0xc1)]);}[_0x45481b(0x7b)](_0x186ace=!0x0,_0x45ac2e=!0x0){const _0x3d5b37=_0x45481b;_0x186ace=_0x186ace&&!this[_0x3d5b37(0x9f)]&&this[_0x3d5b37(0xae)][_0x3d5b37(0x88)](_0x3d5b37(0xc4)),_0x45ac2e=_0x45ac2e&&this[_0x3d5b37(0xae)][_0x3d5b37(0x88)](_0x3d5b37(0x8e)),this[_0x3d5b37(0x95)]=new _0x4a8ac3(this[_0x3d5b37(0x84)],_0x186ace,_0x45ac2e),this[_0x3d5b37(0x95)][_0x3d5b37(0x92)]?.['on'](_0x3d5b37(0xa3),()=>{const _0x1f822d=_0x3d5b37;this[_0x1f822d(0x96)](_0x1f822d(0xc4));}),this[_0x3d5b37(0x95)][_0x3d5b37(0xa5)]?.['on'](_0x3d5b37(0xa3),()=>{const _0x2304be=_0x3d5b37;this[_0x2304be(0x96)](_0x2304be(0x8e));}),this[_0x3d5b37(0x9d)][_0x3d5b37(0xb2)](this[_0x3d5b37(0x95)]);}[_0x45481b(0x80)](){const _0x42a343=_0x45481b,_0x21d6d1=new _0x2438bd(this[_0x42a343(0x84)]);return _0x21d6d1[_0x42a343(0x91)]({'icon':_0xb83dc2,'tooltip':_0x92c833(this[_0x42a343(0x84)],_0x42a343(0x81))}),_0x21d6d1['on'](_0x42a343(0xa3),()=>{const _0x5a1fe1=_0x42a343;this[_0x5a1fe1(0x96)](_0x5a1fe1(0xa2));}),_0x21d6d1;}[_0x45481b(0xca)](){const _0xdead46=_0x45481b,_0x14ccc6=new _0x2438bd(this[_0xdead46(0x84)]);return _0x14ccc6[_0xdead46(0x91)]({'icon':_0x3a2104,'tooltip':_0x92c833(this[_0xdead46(0x84)],_0xdead46(0xb3))}),_0x14ccc6['on'](_0xdead46(0xa3),()=>{const _0x57d0c2=_0xdead46;this[_0x57d0c2(0x96)](_0x57d0c2(0x7a));}),_0x14ccc6;}[_0x45481b(0xcc)](){const _0x351cf3=_0x45481b,_0x234cc5=new _0x331020(this[_0x351cf3(0x84)]),_0x2172ba=new _0x331020(this[_0x351cf3(0x84)]);return _0x2172ba[_0x351cf3(0xc2)]({'tag':_0x351cf3(0x93),'attributes':{'class':['ck',_0x351cf3(0xb5)]},'children':[{'text':this[_0x351cf3(0xb9)]['to'](_0x351cf3(0xc6))}]}),_0x234cc5[_0x351cf3(0xc2)]({'tag':_0x351cf3(0x99),'attributes':{'class':['ck',_0x351cf3(0x97),_0x351cf3(0xb4),this[_0x351cf3(0xb9)]['if'](_0x351cf3(0x9c),_0x351cf3(0xa9),_0x5b71ef=>!_0x5b71ef)]},'children':[_0x2172ba]}),_0x234cc5;}[_0x45481b(0x8d)](){const _0x2107cf=_0x45481b;this[_0x2107cf(0xad)](),this[_0x2107cf(0xcb)]&&this[_0x2107cf(0xcb)][_0x2107cf(0xbb)]();}[_0x45481b(0xc8)](){const _0x2c809d=_0x45481b;this[_0x2c809d(0xcb)]&&this[_0x2c809d(0xcb)][_0x2c809d(0x75)]();}[_0x45481b(0xad)](){const _0x5b1587=_0x45481b,_0x3f1372=this[_0x5b1587(0xb6)]();_0x3f1372&&!this[_0x5b1587(0xcb)]&&(this[_0x5b1587(0xcb)]=new _0x5c8d7f(_0x3f1372));}[_0x45481b(0xb6)](){const _0x334c27=_0x45481b;return this[_0x334c27(0xc5)]instanceof _0x3248f9&&this[_0x334c27(0xc5)][_0x334c27(0xcd)][_0x334c27(0x85)]?this[_0x334c27(0xc5)][_0x334c27(0xcd)][_0x334c27(0x85)]:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x42bdf8=_0x5aff;(function(_0x29bc5b,_0x935f85){var _0x2b524f=_0x5aff,_0x3d8363=_0x29bc5b();while(!![]){try{var _0x5614ec=parseInt(_0x2b524f(0x168))/0x1+-parseInt(_0x2b524f(0x157))/0x2+-parseInt(_0x2b524f(0x160))/0x3*(parseInt(_0x2b524f(0x156))/0x4)+parseInt(_0x2b524f(0x159))/0x5*(-parseInt(_0x2b524f(0x166))/0x6)+-parseInt(_0x2b524f(0x164))/0x7+-parseInt(_0x2b524f(0x15f))/0x8+parseInt(_0x2b524f(0x165))/0x9;if(_0x5614ec===_0x935f85)break;else _0x3d8363['push'](_0x3d8363['shift']());}catch(_0xe61c1b){_0x3d8363['push'](_0x3d8363['shift']());}}}(_0x2d4b,0x38a65));import{ContextPlugin as _0x271b0e}from'ckeditor5/src/core.js';import{AIChatController as _0x25ff04}from'./aichatcontroller.js';import{AIEditing as _0x49cff0}from'../aicore/aiediting.js';function _0x2d4b(){var _0x142ec9=['requires','plugins','4CEnADu','789520GstkCH','context','4985aUpIgO','focusPromptInput','define','isOfficialPlugin','startConversation','AIChat','1490096ylCTov','820461PQbzNQ','sendMessage','isPremiumPlugin','addSelectionToChatContext','1372098EFeaiR','9006471oDgOMb','744wKfQhH','config','405469GDlaaM','pluginName','removeSelectionFromChatContext','get','ai.chat.context','ai.chat.models'];_0x2d4b=function(){return _0x142ec9;};return _0x2d4b();}import{AIChatUI as _0x354b7a}from'./aichatui.js';function _0x5aff(_0x345388,_0x25b1d9){var _0x2d4b33=_0x2d4b();return _0x5aff=function(_0x5aff04,_0x119e73){_0x5aff04=_0x5aff04-0x150;var _0x4f00dd=_0x2d4b33[_0x5aff04];return _0x4f00dd;},_0x5aff(_0x345388,_0x25b1d9);}import{AIChatHistory as _0x2c7ecf}from'../aichathistory/aichathistory.js';export class AIChat extends _0x271b0e{static get[_0x42bdf8(0x154)](){return[_0x25ff04,_0x49cff0,_0x354b7a,_0x2c7ecf];}static get[_0x42bdf8(0x169)](){var _0xf6542=_0x42bdf8;return _0xf6542(0x15e);}static get[_0x42bdf8(0x15c)](){return!0x0;}static get[_0x42bdf8(0x162)](){return!0x0;}constructor(_0x20fd4b){var _0x2dc513=_0x42bdf8;super(_0x20fd4b),this[_0x2dc513(0x158)][_0x2dc513(0x167)][_0x2dc513(0x15b)](_0x2dc513(0x152),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2dc513(0x158)][_0x2dc513(0x167)][_0x2dc513(0x15b)](_0x2dc513(0x153),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x42bdf8(0x163)](){var _0x3f725e=_0x42bdf8;await this[_0x3f725e(0x158)][_0x3f725e(0x155)][_0x3f725e(0x151)](_0x25ff04)[_0x3f725e(0x163)]();}async[_0x42bdf8(0x15d)](){var _0xb28f9b=_0x42bdf8;await this[_0xb28f9b(0x158)][_0xb28f9b(0x155)][_0xb28f9b(0x151)](_0x25ff04)[_0xb28f9b(0x15d)]();}async[_0x42bdf8(0x161)]({message:_0x226488,quickActionData:_0x22ba78}){var _0x4c1e63=_0x42bdf8;await this[_0x4c1e63(0x158)][_0x4c1e63(0x155)][_0x4c1e63(0x151)](_0x25ff04)[_0x4c1e63(0x161)]({'message':_0x226488,'quickActionData':_0x22ba78});}[_0x42bdf8(0x150)](){var _0x1cdb9f=_0x42bdf8;this[_0x1cdb9f(0x158)][_0x1cdb9f(0x155)][_0x1cdb9f(0x151)](_0x25ff04)[_0x1cdb9f(0x150)]();}[_0x42bdf8(0x15a)](){var _0x47fc67=_0x42bdf8;this[_0x47fc67(0x158)][_0x47fc67(0x155)][_0x47fc67(0x151)](_0x25ff04)[_0x47fc67(0x15a)]();}}
23
+ var _0x2db1d8=_0x29b3;function _0x29b3(_0x47a0bc,_0x27d216){var _0x2899f0=_0x2899();return _0x29b3=function(_0x29b394,_0x57c96b){_0x29b394=_0x29b394-0x16f;var _0x3ae180=_0x2899f0[_0x29b394];return _0x3ae180;},_0x29b3(_0x47a0bc,_0x27d216);}(function(_0x4ee936,_0x2c4254){var _0x22ec68=_0x29b3,_0xf91028=_0x4ee936();while(!![]){try{var _0x515fcf=-parseInt(_0x22ec68(0x180))/0x1*(parseInt(_0x22ec68(0x17c))/0x2)+parseInt(_0x22ec68(0x175))/0x3+-parseInt(_0x22ec68(0x17f))/0x4+-parseInt(_0x22ec68(0x184))/0x5+-parseInt(_0x22ec68(0x171))/0x6+parseInt(_0x22ec68(0x178))/0x7+-parseInt(_0x22ec68(0x174))/0x8*(-parseInt(_0x22ec68(0x186))/0x9);if(_0x515fcf===_0x2c4254)break;else _0xf91028['push'](_0xf91028['shift']());}catch(_0x51dbfa){_0xf91028['push'](_0xf91028['shift']());}}}(_0x2899,0x48b25));import{ContextPlugin as _0x5aed0e}from'ckeditor5/src/core.js';import{AIChatController as _0x409cce}from'./aichatcontroller.js';import{AIEditing as _0x19eb77}from'../aicore/aiediting.js';function _0x2899(){var _0x3c80f3=['ai.chat.models','isOfficialPlugin','871470OfgNga','focusPromptInput','858357cQwgaq','pluginName','define','addSelectionToChatContext','context','1113996wUOKUr','plugins','isPremiumPlugin','80olTEWv','178086XnluHD','requires','startConversation','2916256hxXlxE','config','removeSelectionFromChatContext','get','18eQasJT','ai.chat.context','AIChat','821268AhwuiS','62962aNhQCw','sendMessage'];_0x2899=function(){return _0x3c80f3;};return _0x2899();}import{AIChatUI as _0x56a154}from'./aichatui.js';import{AIChatHistory as _0x452716}from'../aichathistory/aichathistory.js';export class AIChat extends _0x5aed0e{static get[_0x2db1d8(0x176)](){return[_0x409cce,_0x19eb77,_0x56a154,_0x452716];}static get[_0x2db1d8(0x187)](){var _0x44c2ed=_0x2db1d8;return _0x44c2ed(0x17e);}static get[_0x2db1d8(0x183)](){return!0x0;}static get[_0x2db1d8(0x173)](){return!0x0;}constructor(_0x6b3ca0){var _0x5be466=_0x2db1d8;super(_0x6b3ca0),this[_0x5be466(0x170)][_0x5be466(0x179)][_0x5be466(0x188)](_0x5be466(0x17d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x5be466(0x170)][_0x5be466(0x179)][_0x5be466(0x188)](_0x5be466(0x182),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x2db1d8(0x16f)](){var _0x201869=_0x2db1d8;await this[_0x201869(0x170)][_0x201869(0x172)][_0x201869(0x17b)](_0x409cce)[_0x201869(0x16f)]();}async[_0x2db1d8(0x177)](){var _0x139a72=_0x2db1d8;await this[_0x139a72(0x170)][_0x139a72(0x172)][_0x139a72(0x17b)](_0x409cce)[_0x139a72(0x177)]();}async[_0x2db1d8(0x181)]({message:_0x52056b,quickActionData:_0x45b38b}){var _0x56b59b=_0x2db1d8;await this[_0x56b59b(0x170)][_0x56b59b(0x172)][_0x56b59b(0x17b)](_0x409cce)[_0x56b59b(0x181)]({'message':_0x52056b,'quickActionData':_0x45b38b});}[_0x2db1d8(0x17a)](){var _0x168534=_0x2db1d8;this[_0x168534(0x170)][_0x168534(0x172)][_0x168534(0x17b)](_0x409cce)[_0x168534(0x17a)]();}[_0x2db1d8(0x185)](){var _0x49ea21=_0x2db1d8;this[_0x49ea21(0x170)][_0x49ea21(0x172)][_0x49ea21(0x17b)](_0x409cce)[_0x49ea21(0x185)]();}}