@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.5

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 (292) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x306904=_0x1f95;(function(_0x3630af,_0x483f33){const _0x1b90cd=_0x1f95,_0x20bacd=_0x3630af();while(!![]){try{const _0x43e7e6=parseInt(_0x1b90cd(0x17a))/0x1+parseInt(_0x1b90cd(0x187))/0x2+parseInt(_0x1b90cd(0x18b))/0x3*(parseInt(_0x1b90cd(0x1ad))/0x4)+parseInt(_0x1b90cd(0x18c))/0x5*(-parseInt(_0x1b90cd(0x1aa))/0x6)+parseInt(_0x1b90cd(0x19d))/0x7*(parseInt(_0x1b90cd(0x1a6))/0x8)+parseInt(_0x1b90cd(0x1a1))/0x9+-parseInt(_0x1b90cd(0x1a4))/0xa;if(_0x43e7e6===_0x483f33)break;else _0x20bacd['push'](_0x20bacd['shift']());}catch(_0x5d4bba){_0x20bacd['push'](_0x20bacd['shift']());}}}(_0x472f,0x30edc));function _0x1f95(_0x77c93c,_0x5c700a){const _0x472f81=_0x472f();return _0x1f95=function(_0x1f95a2,_0x14f94d){_0x1f95a2=_0x1f95a2-0x178;let _0xa97cb8=_0x472f81[_0x1f95a2];return _0xa97cb8;},_0x1f95(_0x77c93c,_0x5c700a);}import{CKEditorError as _0x50eb47,EmitterMixin as _0x3b24ec,uid as _0x5927be}from'ckeditor5/src/utils.js';import{AIReply as _0x2417f7,isIgnoredReplyType as _0x3d689,isValidReplyType as _0x4a1b62,isReplyTitleType as _0x1658f5,isSourceType as _0x5819ab}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x306904(0x198),_0x306904(0x191),_0x306904(0x1ab),_0x306904(0x1a7),_0x306904(0x18d),_0x306904(0x1a5),_0x306904(0x1bd),_0x306904(0x1b0),_0x306904(0x178),_0x306904(0x1b1),_0x306904(0x194),_0x306904(0x195),_0x306904(0x1af),_0x306904(0x1ac)];function _0x472f(){const _0x5a0e0c=['messageId','delegate','1449ojzWFC','abortController','replies','3903040JaTcxR','replyCreated','40ZAdvav','interactionFinished','find','isStopped','330ZFXqbh','interactionStopped','error','72ONadrL','length','reasoningFinished','replyChangeGroupStateUpdated','webSearchStarted','source','sendRequest','getDocumentContext','appendContent','stopListening','action-metadata','getReply','currentRequest','callId','currentReply','data','replyContentUpdated','setConversationTitle','textDelta','216662UltIsk','sources','destroy','done','actionCallId','_isReasoning','reasoning','content','connector','message-metadata','_isWebSearching','fire','push','621044Ungzki','isDestroyed','_finalizeInteraction','editor','57126KVQXDr','29065BYKjoU','interactionDestroyed','abort','start','web-search','interactionStarted','createReply','getStream','webSearchFinished','reasoningStarted','ai-chat-interaction-error','event','interactionCreated','conversationTitle','forEach','modification-delta','splice','56462SASczT','stop'];_0x472f=function(){return _0x5a0e0c;};return _0x472f();}export class AIInteraction extends _0x3b24ec(){['id'];[_0x306904(0x1a3)]=[];[_0x306904(0x1bb)];[_0x306904(0x19f)];[_0x306904(0x17e)];[_0x306904(0x1b9)];[_0x306904(0x182)];[_0x306904(0x1a9)]=!0x1;[_0x306904(0x188)]=!0x1;[_0x306904(0x18a)];[_0x306904(0x17f)]=!0x1;[_0x306904(0x184)]=!0x1;constructor({connector:_0xfa3797,editor:_0x3f7781}){const _0x13e42d=_0x306904;super(),this['id']=_0x5927be(),this[_0x13e42d(0x182)]=_0xfa3797,this[_0x13e42d(0x1a9)]=!0x0,this[_0x13e42d(0x18a)]=_0x3f7781;}async[_0x306904(0x18f)](){const _0x41cf66=_0x306904;let _0x2fe158;const _0x1a458f=[];this[_0x41cf66(0x1a9)]=!0x1;try{this[_0x41cf66(0x1b9)]=await this[_0x41cf66(0x1b3)](),this[_0x41cf66(0x185)](_0x41cf66(0x191),this);const _0x57fdcb=await this[_0x41cf66(0x1b9)][_0x41cf66(0x193)]();for await(const _0x29cde0 of _0x57fdcb){if(this[_0x41cf66(0x1a9)])return;if(_0x41cf66(0x1ac)===_0x29cde0[_0x41cf66(0x197)])return void this[_0x41cf66(0x185)](_0x41cf66(0x1ac),{'error':new _0x50eb47(_0x41cf66(0x196),this)});if(_0x41cf66(0x183)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x41cf66(0x1b7)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x1658f5(_0x29cde0[_0x41cf66(0x197)])&&this[_0x41cf66(0x178)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x199)],!0x0),_0x5819ab(_0x29cde0[_0x41cf66(0x197)]))_0x1a458f[_0x41cf66(0x186)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1b2)]);else{if(_0x4a1b62(_0x29cde0[_0x41cf66(0x197)])){if(_0x29cde0[_0x41cf66(0x197)]!==_0x2fe158){if(_0x2fe158=_0x29cde0[_0x41cf66(0x197)],_0x41cf66(0x190)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x184)]||(this[_0x41cf66(0x184)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x1b1),this));continue;}if(_0x41cf66(0x180)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x17f)]||(this[_0x41cf66(0x17f)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x195),this));continue;}this[_0x41cf66(0x17f)]&&(this[_0x41cf66(0x17f)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x1af),this)),this[_0x41cf66(0x184)]&&(this[_0x41cf66(0x184)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x194),this)),this[_0x41cf66(0x1bb)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x17d)](),this[_0x41cf66(0x1bb)]=this[_0x41cf66(0x192)]({'type':_0x29cde0[_0x41cf66(0x197)],'interactionId':this['id'],'id':_0x29cde0[_0x41cf66(0x1bc)]?.['id']}),_0x1a458f[_0x41cf66(0x1ae)]>0x0&&_0x41cf66(0x19b)===_0x29cde0[_0x41cf66(0x197)]&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0));}_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x1b5)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]);}else _0x3d689(_0x29cde0[_0x41cf66(0x197)]);}}else this[_0x41cf66(0x17e)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1ba)];}else this[_0x41cf66(0x19f)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x19f)];}}finally{this[_0x41cf66(0x1a9)]||(_0x1a458f[_0x41cf66(0x1ae)]>0x0&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0)),this[_0x41cf66(0x189)](),this[_0x41cf66(0x185)](_0x41cf66(0x1a7),this));}}[_0x306904(0x19e)](){const _0x58d47e=_0x306904;this[_0x58d47e(0x1a9)]||(this[_0x58d47e(0x189)](),this[_0x58d47e(0x185)](_0x58d47e(0x1ab),this));}[_0x306904(0x1b8)](_0x1f6c9d){const _0x328fa4=_0x306904;return this[_0x328fa4(0x1a3)][_0x328fa4(0x1a8)](_0xa3fb=>_0xa3fb['id']===_0x1f6c9d);}[_0x306904(0x17c)](){const _0x58adc4=_0x306904;this[_0x58adc4(0x188)]||(this[_0x58adc4(0x19e)](),this[_0x58adc4(0x1a3)][_0x58adc4(0x19a)](_0x1bfac0=>_0x1bfac0[_0x58adc4(0x17c)]()),this[_0x58adc4(0x1a3)]=[],this[_0x58adc4(0x188)]=!0x0,this[_0x58adc4(0x185)](_0x58adc4(0x18d),this),this[_0x58adc4(0x1b6)]());}[_0x306904(0x192)](_0x311a6f){const _0x259c7b=_0x306904,_0x15a5e1=new _0x2417f7({'editor':this[_0x259c7b(0x18a)],'documentContextContent':this[_0x259c7b(0x1b4)]()?.[_0x259c7b(0x181)],..._0x311a6f});return this[_0x259c7b(0x1a3)][_0x259c7b(0x186)](_0x15a5e1),_0x15a5e1[_0x259c7b(0x1a0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x259c7b(0x185)](_0x259c7b(0x1a5),_0x15a5e1),_0x15a5e1;}[_0x306904(0x178)](_0x11de92,_0xc78851=!0x1){const _0x20ab12=_0x306904;this[_0x20ab12(0x185)](_0x20ab12(0x178),_0x11de92,_0xc78851);}[_0x306904(0x189)](){const _0x58e02a=_0x306904;this[_0x58e02a(0x1a9)]=!0x0,this[_0x58e02a(0x1b9)]&&this[_0x58e02a(0x1b9)][_0x58e02a(0x1a2)][_0x58e02a(0x18e)](),this[_0x58e02a(0x1bb)]&&this[_0x58e02a(0x1bb)][_0x58e02a(0x17d)](),this[_0x58e02a(0x1b9)]=this[_0x58e02a(0x1bb)]=void 0x0;}}
23
+ const _0x4009c3=_0x25bb;(function(_0x204e67,_0x2eeb7a){const _0x2df5c6=_0x25bb,_0x11e66c=_0x204e67();while(!![]){try{const _0x3637bb=-parseInt(_0x2df5c6(0xa9))/0x1+-parseInt(_0x2df5c6(0x8e))/0x2+-parseInt(_0x2df5c6(0x99))/0x3*(parseInt(_0x2df5c6(0x6d))/0x4)+-parseInt(_0x2df5c6(0x89))/0x5+parseInt(_0x2df5c6(0x9d))/0x6*(-parseInt(_0x2df5c6(0x75))/0x7)+-parseInt(_0x2df5c6(0x66))/0x8+-parseInt(_0x2df5c6(0x83))/0x9*(-parseInt(_0x2df5c6(0x9c))/0xa);if(_0x3637bb===_0x2eeb7a)break;else _0x11e66c['push'](_0x11e66c['shift']());}catch(_0x3314ca){_0x11e66c['push'](_0x11e66c['shift']());}}}(_0x4d50,0xaaf45));import{CKEditorError as _0x58c3ab,EmitterMixin as _0x5e8850,uid as _0x14a591}from'ckeditor5/src/utils.js';function _0x4d50(){const _0x370179=['stop','86096COylqw','setConversationTitle','webSearchFinished','abortController','destroy','splice','find','21948jiOZCM','messageId','fire','done','_isWebSearching','currentReply','error','message-metadata','21KviRGf','interactionDestroyed','delegate','replyCreated','interactionStarted','createReply','_isReasoning','sendRequest','abort','length','event','stopListening','push','textDelta','9jNUQuZ','reasoningStarted','replyChangeGroupStateUpdated','data','interactionStopped','connector','2823375OPwdXE','source','interactionFinished','getDocumentContext','getReply','550356VctiXa','getStream','sources','forEach','reasoningFinished','appendContent','reasoning','isStopped','currentRequest','ai-chat-interaction-error','_finalizeInteraction','114wMfnxD','callId','modification-delta','27307160WxYPHU','1787070JmsYXg','webSearchStarted','actionCallId','editor','content','action-metadata','replies','start','interactionCreated','isDestroyed','web-search','conversationTitle','77831KEiPnw','replyContentUpdated'];_0x4d50=function(){return _0x370179;};return _0x4d50();}import{AIReply as _0x4422d8,isIgnoredReplyType as _0x1dbe5b,isValidReplyType as _0x313bfc,isReplyTitleType as _0x383122,isSourceType as _0x481070}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4009c3(0xa5),_0x4009c3(0x79),_0x4009c3(0x87),_0x4009c3(0x8b),_0x4009c3(0x76),_0x4009c3(0x78),_0x4009c3(0xaa),_0x4009c3(0x85),_0x4009c3(0x67),_0x4009c3(0x9e),_0x4009c3(0x68),_0x4009c3(0x84),_0x4009c3(0x92),_0x4009c3(0x73)];function _0x25bb(_0x3ee4a0,_0x54abe1){const _0x4d5081=_0x4d50();return _0x25bb=function(_0x25bbf0,_0x59b935){_0x25bbf0=_0x25bbf0-0x66;let _0x1450af=_0x4d5081[_0x25bbf0];return _0x1450af;},_0x25bb(_0x3ee4a0,_0x54abe1);}export class AIInteraction extends _0x5e8850(){['id'];[_0x4009c3(0xa3)]=[];[_0x4009c3(0x72)];[_0x4009c3(0x6e)];[_0x4009c3(0x9f)];[_0x4009c3(0x96)];[_0x4009c3(0x88)];[_0x4009c3(0x95)]=!0x1;[_0x4009c3(0xa6)]=!0x1;[_0x4009c3(0xa0)];[_0x4009c3(0x7b)]=!0x1;[_0x4009c3(0x71)]=!0x1;constructor({connector:_0x2ae294,editor:_0x1f0869}){const _0x3b2560=_0x4009c3;super(),this['id']=_0x14a591(),this[_0x3b2560(0x88)]=_0x2ae294,this[_0x3b2560(0x95)]=!0x0,this[_0x3b2560(0xa0)]=_0x1f0869;}async[_0x4009c3(0xa4)](){const _0x14fee3=_0x4009c3;let _0x432336;const _0xeb6691=[];this[_0x14fee3(0x95)]=!0x1;try{this[_0x14fee3(0x96)]=await this[_0x14fee3(0x7c)](),this[_0x14fee3(0x6f)](_0x14fee3(0x79),this);const _0x3f47c9=await this[_0x14fee3(0x96)][_0x14fee3(0x8f)]();for await(const _0x9b44f6 of _0x3f47c9){if(this[_0x14fee3(0x95)])return;if(_0x14fee3(0x73)===_0x9b44f6[_0x14fee3(0x7f)])return void this[_0x14fee3(0x6f)](_0x14fee3(0x73),{'error':new _0x58c3ab(_0x14fee3(0x97),this)});if(_0x14fee3(0x74)!==_0x9b44f6[_0x14fee3(0x7f)]){if(_0x14fee3(0xa2)!==_0x9b44f6[_0x14fee3(0x7f)]){if(_0x383122(_0x9b44f6[_0x14fee3(0x7f)])&&this[_0x14fee3(0x67)](_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0xa8)],!0x0),_0x481070(_0x9b44f6[_0x14fee3(0x7f)]))_0xeb6691[_0x14fee3(0x81)](_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x8a)]);else{if(_0x313bfc(_0x9b44f6[_0x14fee3(0x7f)])){if(_0x9b44f6[_0x14fee3(0x7f)]!==_0x432336){if(_0x432336=_0x9b44f6[_0x14fee3(0x7f)],_0x14fee3(0xa7)===_0x9b44f6[_0x14fee3(0x7f)]){this[_0x14fee3(0x71)]||(this[_0x14fee3(0x71)]=!0x0,this[_0x14fee3(0x6f)](_0x14fee3(0x9e),this));continue;}if(_0x14fee3(0x94)===_0x9b44f6[_0x14fee3(0x7f)]){this[_0x14fee3(0x7b)]||(this[_0x14fee3(0x7b)]=!0x0,this[_0x14fee3(0x6f)](_0x14fee3(0x84),this));continue;}this[_0x14fee3(0x7b)]&&(this[_0x14fee3(0x7b)]=!0x1,this[_0x14fee3(0x6f)](_0x14fee3(0x92),this)),this[_0x14fee3(0x71)]&&(this[_0x14fee3(0x71)]=!0x1,this[_0x14fee3(0x6f)](_0x14fee3(0x68),this)),this[_0x14fee3(0x72)]&&this[_0x14fee3(0x72)][_0x14fee3(0x70)](),this[_0x14fee3(0x72)]=this[_0x14fee3(0x7a)]({'type':_0x9b44f6[_0x14fee3(0x7f)],'interactionId':this['id'],'id':_0x9b44f6[_0x14fee3(0x86)]?.['id']}),_0xeb6691[_0x14fee3(0x7e)]>0x0&&_0x14fee3(0x9b)===_0x9b44f6[_0x14fee3(0x7f)]&&(this[_0x14fee3(0x72)][_0x14fee3(0x90)]=_0xeb6691[_0x14fee3(0x6b)](0x0));}_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x82)]&&this[_0x14fee3(0x72)][_0x14fee3(0x93)](_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x82)]);}else _0x1dbe5b(_0x9b44f6[_0x14fee3(0x7f)]);}}else this[_0x14fee3(0x9f)]=_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x9a)];}else this[_0x14fee3(0x6e)]=_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x6e)];}}finally{this[_0x14fee3(0x95)]||(_0xeb6691[_0x14fee3(0x7e)]>0x0&&(this[_0x14fee3(0x72)][_0x14fee3(0x90)]=_0xeb6691[_0x14fee3(0x6b)](0x0)),this[_0x14fee3(0x98)](),this[_0x14fee3(0x6f)](_0x14fee3(0x8b),this));}}[_0x4009c3(0xab)](){const _0x49a276=_0x4009c3;this[_0x49a276(0x95)]||(this[_0x49a276(0x98)](),this[_0x49a276(0x6f)](_0x49a276(0x87),this));}[_0x4009c3(0x8d)](_0x13c68b){const _0x446a4f=_0x4009c3;return this[_0x446a4f(0xa3)][_0x446a4f(0x6c)](_0x12e5aa=>_0x12e5aa['id']===_0x13c68b);}[_0x4009c3(0x6a)](){const _0x438350=_0x4009c3;this[_0x438350(0xa6)]||(this[_0x438350(0xab)](),this[_0x438350(0xa3)][_0x438350(0x91)](_0x65d0ef=>_0x65d0ef[_0x438350(0x6a)]()),this[_0x438350(0xa3)]=[],this[_0x438350(0xa6)]=!0x0,this[_0x438350(0x6f)](_0x438350(0x76),this),this[_0x438350(0x80)]());}[_0x4009c3(0x7a)](_0x45d7ff){const _0x3f5f50=_0x4009c3,_0x23c9c9=new _0x4422d8({'editor':this[_0x3f5f50(0xa0)],'documentContextContent':this[_0x3f5f50(0x8c)]()?.[_0x3f5f50(0xa1)],..._0x45d7ff});return this[_0x3f5f50(0xa3)][_0x3f5f50(0x81)](_0x23c9c9),_0x23c9c9[_0x3f5f50(0x77)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3f5f50(0x6f)](_0x3f5f50(0x78),_0x23c9c9),_0x23c9c9;}[_0x4009c3(0x67)](_0x4ac2f6,_0x54a06e=!0x1){const _0x30b730=_0x4009c3;this[_0x30b730(0x6f)](_0x30b730(0x67),_0x4ac2f6,_0x54a06e);}[_0x4009c3(0x98)](){const _0x48592a=_0x4009c3;this[_0x48592a(0x95)]=!0x0,this[_0x48592a(0x96)]&&this[_0x48592a(0x96)][_0x48592a(0x69)][_0x48592a(0x7d)](),this[_0x48592a(0x72)]&&this[_0x48592a(0x72)][_0x48592a(0x70)](),this[_0x48592a(0x96)]=this[_0x48592a(0x72)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55b7fb=_0xbbfa;function _0xbbfa(_0x554b6a,_0x4d2549){const _0x58aac2=_0x58aa();return _0xbbfa=function(_0xbbfae1,_0x1f8f62){_0xbbfae1=_0xbbfae1-0x7c;let _0x22c6af=_0x58aac2[_0xbbfae1];return _0x22c6af;},_0xbbfa(_0x554b6a,_0x4d2549);}function _0x58aa(){const _0x1c0e2c=['agent','30qBnrel','15455736wLRuLo','getModels','297345AAZXeg','map','getDefault','length','auto','startsWith','getAll','getModel','isAvailable','ai-models-unable-to-retrieve','2393343sqHanJ','push','_filterModels','ai-chat-default-model-id-unrecognized','9016532MLDJaC','_connector','list','string','uiLanguage','AI_MODEL_NAME_AUTO','find','_getModelById','259976behDaZ','provider','some','ai-chat-model-id-unrecognized','_availableModels','_defaultModelId','_modelList','toLocaleLowerCase','83546TYtQBq','items','_locale','name','2304728wdsErM','getAvailableModels'];_0x58aa=function(){return _0x1c0e2c;};return _0x58aa();}(function(_0x117f08,_0x2164e3){const _0x1a31ba=_0xbbfa,_0x4b739a=_0x117f08();while(!![]){try{const _0x589696=-parseInt(_0x1a31ba(0x8f))/0x1+parseInt(_0x1a31ba(0x87))/0x2+-parseInt(_0x1a31ba(0xa3))/0x3+parseInt(_0x1a31ba(0x93))/0x4+parseInt(_0x1a31ba(0x99))/0x5*(parseInt(_0x1a31ba(0x96))/0x6)+-parseInt(_0x1a31ba(0x7f))/0x7+parseInt(_0x1a31ba(0x97))/0x8;if(_0x589696===_0x2164e3)break;else _0x4b739a['push'](_0x4b739a['shift']());}catch(_0x152533){_0x4b739a['push'](_0x4b739a['shift']());}}}(_0x58aa,0xbb07f));import{EmitterMixin as _0x3e4a73,logWarning as _0x223659,logError as _0x4a0444}from'ckeditor5/src/utils.js';import{getTranslation as _0x249b76}from'../utils/common-translations.js';export class AIModels extends _0x3e4a73(){[_0x55b7fb(0x80)];[_0x55b7fb(0x8b)];[_0x55b7fb(0x8c)];[_0x55b7fb(0x91)];[_0x55b7fb(0x8d)]=[];constructor({connector:_0x2fe5d1,availableModels:_0x515fa1,defaultModelId:_0x2bbb43,locale:_0x406c9c}){const _0x2e1fb0=_0x55b7fb;super(),this[_0x2e1fb0(0x80)]=_0x2fe5d1,this[_0x2e1fb0(0x8b)]=_0x515fa1,this[_0x2e1fb0(0x8c)]=_0x2bbb43,this[_0x2e1fb0(0x91)]=_0x406c9c;}async[_0x55b7fb(0x9f)](){const _0x27065b=_0x55b7fb;if(!this[_0x27065b(0x8d)][_0x27065b(0x9c)])try{const _0x5976c3=this[_0x27065b(0x91)][_0x27065b(0x83)]||'en',_0x4275f3=this[_0x27065b(0x80)][_0x27065b(0x98)](_0x5976c3),_0x54a25d=await _0x4275f3[_0x27065b(0x81)]();this[_0x27065b(0x8d)]=_0x54a25d[_0x27065b(0x90)][_0x27065b(0x9a)](_0x4a4e72=>ze(_0x4a4e72)?{..._0x4a4e72,'name':_0x249b76(this[_0x27065b(0x91)],_0x27065b(0x84))}:_0x4a4e72);}catch(_0xae335d){throw _0x4a0444(_0x27065b(0xa2),{'error':_0xae335d}),_0xae335d;}return[...this[_0x27065b(0x8d)]];}async[_0x55b7fb(0x94)](){const _0x5adfd8=_0x55b7fb,_0x5f0983=await this[_0x5adfd8(0x9f)]();return this[_0x5adfd8(0x7d)](_0x5f0983,this[_0x5adfd8(0x8b)]);}async[_0x55b7fb(0xa0)](_0x237afd){const _0x170e9a=_0x55b7fb,_0x721c11=await this[_0x170e9a(0x9f)]();if(!_0x721c11[_0x170e9a(0x9c)])return null;if(_0x237afd){const _0x3fa70d=this[_0x170e9a(0x86)](_0x721c11,_0x237afd);if(_0x3fa70d)return _0x3fa70d;_0x223659(_0x170e9a(0x8a),{'modelId':_0x237afd,'fallBackModelId':this[_0x170e9a(0x8c)]});}return this[_0x170e9a(0x9b)]();}async[_0x55b7fb(0x9b)](){const _0x579f82=_0x55b7fb,_0x2b181f=await this[_0x579f82(0x94)]();if(!_0x2b181f[_0x579f82(0x9c)])return null;if(this[_0x579f82(0x8c)]){const _0x5ea01a=this[_0x579f82(0x86)](_0x2b181f,this[_0x579f82(0x8c)]);if(_0x5ea01a)return _0x5ea01a;_0x223659(_0x579f82(0x7e),{'defaultModelId':this[_0x579f82(0x8c)],'fallBackModelId':_0x2b181f[0x0]['id']});}return _0x2b181f[0x0];}async[_0x55b7fb(0xa1)](_0x1bb382){const _0x5d39cb=_0x55b7fb;return(await this[_0x5d39cb(0x94)]())[_0x5d39cb(0x89)](_0x422e38=>_0x422e38[_0x5d39cb(0x92)]===_0x1bb382[_0x5d39cb(0x92)]&&_0x422e38[_0x5d39cb(0x88)]===_0x1bb382[_0x5d39cb(0x88)]);}[_0x55b7fb(0x7d)](_0x566968,_0x2e04b9){const _0x4057d2=_0x55b7fb;let _0x50a15e;if(_0x2e04b9){_0x50a15e=[];const _0x488ec1=_0x4057d2(0x82)==typeof _0x2e04b9?[_0x2e04b9[_0x4057d2(0x8e)]()]:_0x2e04b9[_0x4057d2(0x9a)](_0x309327=>_0x309327[_0x4057d2(0x8e)]());for(const _0x5108d2 of _0x488ec1)for(const _0x371734 of _0x566968)(_0x371734['id'][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734[_0x4057d2(0x92)][_0x4057d2(0x8e)]()===_0x5108d2||ze(_0x371734)&&_0x4057d2(0x9d)===_0x5108d2||_0x371734[_0x4057d2(0x88)][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734['id'][_0x4057d2(0x8e)]()[_0x4057d2(0x9e)](_0x5108d2))&&_0x50a15e[_0x4057d2(0x7c)](_0x371734);}else _0x50a15e=_0x566968;return _0x50a15e;}[_0x55b7fb(0x86)](_0x4d9938,_0xb99ea6){const _0x49f56c=_0x55b7fb;return _0x4d9938[_0x49f56c(0x85)](_0x285c34=>ze(_0x285c34)&&_0x49f56c(0x9d)===_0xb99ea6?_0x285c34:_0x285c34['id']===_0xb99ea6)||null;}}function ze(_0xb31763){const _0x236a15=_0x55b7fb;return _0xb31763['id'][_0x236a15(0x9e)](_0x236a15(0x95));}
23
+ function _0x56ae(){const _0x476c5c=['_modelList','map','getDefault','uiLanguage','_getModelById','auto','provider','startsWith','7523030mIjjyM','items','AI_MODEL_NAME_AUTO','669602IZDMuM','list','14385sImvGc','_availableModels','2318373YnRRVo','9WRjqSD','getAll','_filterModels','some','ai-chat-model-id-unrecognized','4936jpDXAX','_defaultModelId','8HfAdCL','4CxUBaB','_connector','ai-chat-default-model-id-unrecognized','1403380fMAHfc','length','getModel','agent','name','toLocaleLowerCase','_locale','9683814igSJvp','276FGtxYl','isAvailable','getModels','getAvailableModels','ai-models-unable-to-retrieve','find','string','3120165dFMKqm','push'];_0x56ae=function(){return _0x476c5c;};return _0x56ae();}const _0x33b55b=_0x2d34;(function(_0x78c32d,_0x79da56){const _0x1d8f9d=_0x2d34,_0x136bac=_0x78c32d();while(!![]){try{const _0x428f4b=parseInt(_0x1d8f9d(0xd8))/0x1*(parseInt(_0x1d8f9d(0xe5))/0x2)+-parseInt(_0x1d8f9d(0xdc))/0x3*(-parseInt(_0x1d8f9d(0xe4))/0x4)+parseInt(_0x1d8f9d(0xf7))/0x5+-parseInt(_0x1d8f9d(0xef))/0x6+-parseInt(_0x1d8f9d(0xda))/0x7*(-parseInt(_0x1d8f9d(0xe2))/0x8)+-parseInt(_0x1d8f9d(0xdd))/0x9*(-parseInt(_0x1d8f9d(0xd5))/0xa)+parseInt(_0x1d8f9d(0xe8))/0xb*(-parseInt(_0x1d8f9d(0xf0))/0xc);if(_0x428f4b===_0x79da56)break;else _0x136bac['push'](_0x136bac['shift']());}catch(_0x55ed55){_0x136bac['push'](_0x136bac['shift']());}}}(_0x56ae,0xef70c));import{EmitterMixin as _0x12af8a,logWarning as _0x3a4c63,logError as _0x10553a}from'ckeditor5/src/utils.js';import{getTranslation as _0x4bcef1}from'../utils/common-translations.js';export class AIModels extends _0x12af8a(){[_0x33b55b(0xe6)];[_0x33b55b(0xdb)];[_0x33b55b(0xe3)];[_0x33b55b(0xee)];[_0x33b55b(0xf9)]=[];constructor({connector:_0x2061db,availableModels:_0x3cee59,defaultModelId:_0x5b411f,locale:_0x4955f9}){const _0x5aa64d=_0x33b55b;super(),this[_0x5aa64d(0xe6)]=_0x2061db,this[_0x5aa64d(0xdb)]=_0x3cee59,this[_0x5aa64d(0xe3)]=_0x5b411f,this[_0x5aa64d(0xee)]=_0x4955f9;}async[_0x33b55b(0xde)](){const _0x2ad40b=_0x33b55b;if(!this[_0x2ad40b(0xf9)][_0x2ad40b(0xe9)])try{const _0x1705d4=this[_0x2ad40b(0xee)][_0x2ad40b(0xd0)]||'en',_0x2cfc46=this[_0x2ad40b(0xe6)][_0x2ad40b(0xf2)](_0x1705d4),_0x48da30=await _0x2cfc46[_0x2ad40b(0xd9)]();this[_0x2ad40b(0xf9)]=_0x48da30[_0x2ad40b(0xd6)][_0x2ad40b(0xfa)](_0x4d8d2d=>ze(_0x4d8d2d)?{..._0x4d8d2d,'name':_0x4bcef1(this[_0x2ad40b(0xee)],_0x2ad40b(0xd7))}:_0x4d8d2d);}catch(_0x36122d){throw _0x10553a(_0x2ad40b(0xf4),{'error':_0x36122d}),_0x36122d;}return[...this[_0x2ad40b(0xf9)]];}async[_0x33b55b(0xf3)](){const _0x1d801c=_0x33b55b,_0x577092=await this[_0x1d801c(0xde)]();return this[_0x1d801c(0xdf)](_0x577092,this[_0x1d801c(0xdb)]);}async[_0x33b55b(0xea)](_0x442c25){const _0x46c13f=_0x33b55b,_0x5963ef=await this[_0x46c13f(0xde)]();if(!_0x5963ef[_0x46c13f(0xe9)])return null;if(_0x442c25){const _0x3fa479=this[_0x46c13f(0xd1)](_0x5963ef,_0x442c25);if(_0x3fa479)return _0x3fa479;_0x3a4c63(_0x46c13f(0xe1),{'modelId':_0x442c25,'fallBackModelId':this[_0x46c13f(0xe3)]});}return this[_0x46c13f(0xfb)]();}async[_0x33b55b(0xfb)](){const _0x3e5bbb=_0x33b55b,_0x24600b=await this[_0x3e5bbb(0xf3)]();if(!_0x24600b[_0x3e5bbb(0xe9)])return null;if(this[_0x3e5bbb(0xe3)]){const _0x258515=this[_0x3e5bbb(0xd1)](_0x24600b,this[_0x3e5bbb(0xe3)]);if(_0x258515)return _0x258515;_0x3a4c63(_0x3e5bbb(0xe7),{'defaultModelId':this[_0x3e5bbb(0xe3)],'fallBackModelId':_0x24600b[0x0]['id']});}return _0x24600b[0x0];}async[_0x33b55b(0xf1)](_0x41f120){const _0x5b3b58=_0x33b55b;return(await this[_0x5b3b58(0xf3)]())[_0x5b3b58(0xe0)](_0x34539c=>_0x34539c[_0x5b3b58(0xec)]===_0x41f120[_0x5b3b58(0xec)]&&_0x34539c[_0x5b3b58(0xd3)]===_0x41f120[_0x5b3b58(0xd3)]);}[_0x33b55b(0xdf)](_0x409212,_0xbb1f73){const _0x3d20eb=_0x33b55b;let _0x19fffe;if(_0xbb1f73){_0x19fffe=[];const _0x4e460e=_0x3d20eb(0xf6)==typeof _0xbb1f73?[_0xbb1f73[_0x3d20eb(0xed)]()]:_0xbb1f73[_0x3d20eb(0xfa)](_0x51979=>_0x51979[_0x3d20eb(0xed)]());for(const _0x26876c of _0x4e460e)for(const _0xfc25ef of _0x409212)(_0xfc25ef['id'][_0x3d20eb(0xed)]()===_0x26876c||_0xfc25ef[_0x3d20eb(0xec)][_0x3d20eb(0xed)]()===_0x26876c||ze(_0xfc25ef)&&_0x3d20eb(0xd2)===_0x26876c||_0xfc25ef[_0x3d20eb(0xd3)][_0x3d20eb(0xed)]()===_0x26876c||_0xfc25ef['id'][_0x3d20eb(0xed)]()[_0x3d20eb(0xd4)](_0x26876c))&&_0x19fffe[_0x3d20eb(0xf8)](_0xfc25ef);}else _0x19fffe=_0x409212;return _0x19fffe;}[_0x33b55b(0xd1)](_0x56bd32,_0x2234c3){const _0x1b089a=_0x33b55b;return _0x56bd32[_0x1b089a(0xf5)](_0x3f5a86=>ze(_0x3f5a86)&&_0x1b089a(0xd2)===_0x2234c3?_0x3f5a86:_0x3f5a86['id']===_0x2234c3)||null;}}function _0x2d34(_0x27d3f2,_0x25aa18){const _0x56ae46=_0x56ae();return _0x2d34=function(_0x2d3404,_0x2debbd){_0x2d3404=_0x2d3404-0xd0;let _0x5264f5=_0x56ae46[_0x2d3404];return _0x5264f5;},_0x2d34(_0x27d3f2,_0x25aa18);}function ze(_0x597d0f){const _0x54c777=_0x33b55b;return _0x597d0f['id'][_0x54c777(0xd4)](_0x54c777(0xeb));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x421906=_0x1862;(function(_0x3415a0,_0x229462){const _0x4ebe9f=_0x1862,_0x4915f6=_0x3415a0();while(!![]){try{const _0x45d7c5=parseInt(_0x4ebe9f(0x1a5))/0x1*(parseInt(_0x4ebe9f(0x192))/0x2)+parseInt(_0x4ebe9f(0x1c0))/0x3+parseInt(_0x4ebe9f(0x197))/0x4+-parseInt(_0x4ebe9f(0x17f))/0x5+-parseInt(_0x4ebe9f(0x185))/0x6*(parseInt(_0x4ebe9f(0x176))/0x7)+parseInt(_0x4ebe9f(0x1ab))/0x8*(-parseInt(_0x4ebe9f(0x187))/0x9)+parseInt(_0x4ebe9f(0x1b0))/0xa;if(_0x45d7c5===_0x229462)break;else _0x4915f6['push'](_0x4915f6['shift']());}catch(_0x90c4c9){_0x4915f6['push'](_0x4915f6['shift']());}}}(_0x2b79,0x9e23e));import{CKEditorError as _0x36b64d,ObservableMixin as _0x1de503,uid as _0x29b3ba}from'ckeditor5/src/utils.js';import{Element as _0x4e86bb,findAll as _0x4f7572,getAttribute as _0x21030a,getParents as _0x202a00,Document as _0x544027,parse as _0x24b5bb,Text as _0x360a82}from'../utils/htmlparser.js';function _0x1862(_0x3607fe,_0x129aac){const _0x2b792a=_0x2b79();return _0x1862=function(_0x18625e,_0x38c8dd){_0x18625e=_0x18625e-0x170;let _0x528a5c=_0x2b792a[_0x18625e];return _0x528a5c;},_0x1862(_0x3607fe,_0x129aac);}import{AIResponseParser as _0x23ab1b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x15b45e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3e0f8d}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x378c95}from'../utils/common-translations.js';function _0x2b79(){const _0x4d4a95=['conversation-title','7538490wxLyOL','reasoning','AI_SUGGESTION_CONTENT_PART_REMOVED','fire','values','interactionId','aiResponseApplier','withoutDiff','node','_setCachedContentParts','destroy','4WuWDuD','cloneNode','state','pending','push','4441924oJYraW','length','convertMarkdownToHTML','onContentChange','replyContentUpdated','aiResponseParser','color:\x20#808080;\x20font-style:\x20italic','context','cachedSuggestionContentParts','sources','done','_getDifferentChangeGroups','change:content','editor','41879LIsQaB','parsedContent','unshift','map','new','replyChangeGroupStateUpdated','8OZwGLm','removedNodeIds','updateChangeGroups','splice','withDiff','13796520jdCbkr','modifiedNodeIds','ai-get-editor-from-context-no-editor','every','stopListening','merge','set','modification-delta','parsedMergedContent','getContentParts','nextSibling','content','removed','data-id','locale','parseAndNormalizeHTML','334644BbXNct','previousSibling','includes','filter','web-search','changes','forEach','setChangeGroupState','documentContextContent','appendContent','newNodeIds','data-unstable','14lYOPyn','ai-reply-get-content-parts-group-not-found','changeGroups','indexOf','areActionsDisabled','index','modified','span','isDone','4355905zFRRcC','_getCachedContentParts','find','source','type','text-delta','986718Venhti'];_0x2b79=function(){return _0x4d4a95;};return _0x2b79();}import{cloneDeep as _0x3a3d82}from'es-toolkit';export const AI_REPLY_TYPES=[_0x421906(0x1b7),_0x421906(0x184),_0x421906(0x1c4),_0x421906(0x188)];export const AI_REPLY_TYPES_IGNORED=[_0x421906(0x186)];export const AI_REPLY_TITLE_TYPE=_0x421906(0x186);export class AIReply extends _0x1de503(){['id'];[_0x421906(0x18c)];[_0x421906(0x183)];[_0x421906(0x1a0)]=[];[_0x421906(0x1a6)]=new _0x544027([]);[_0x421906(0x1b8)]=new _0x544027([]);[_0x421906(0x178)]=[];[_0x421906(0x17a)]=!0x1;[_0x421906(0x172)];[_0x421906(0x19c)];[_0x421906(0x18d)];[_0x421906(0x1a4)];[_0x421906(0x19f)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x47dbaf,content:_0x204e5e='',isDone:_0x4a212e=!0x1,interactionId:_0x238757,areActionsDisabled:_0xb27fd5,documentContextContent:_0x318e7f,editor:_0x1f3517,id:_0x1881ce}){const _0xf1772b=_0x421906;super(),this['id']=_0x1881ce||_0x29b3ba(),this[_0xf1772b(0x18c)]=_0x238757,this[_0xf1772b(0x183)]=_0x47dbaf,this[_0xf1772b(0x17a)]=!!_0xb27fd5,this[_0xf1772b(0x1a4)]=_0x1f3517,this[_0xf1772b(0x19c)]=new _0x23ab1b(),this[_0xf1772b(0x18d)]=new _0x15b45e(),this[_0xf1772b(0x172)]=_0x24b5bb(_0x318e7f||''),this[_0xf1772b(0x1b6)](_0xf1772b(0x17e),_0x4a212e),this['on'](_0xf1772b(0x1a3),()=>{const _0x114a7c=_0xf1772b;this[_0x114a7c(0x19a)]();}),this[_0xf1772b(0x1b6)](_0xf1772b(0x1bb),_0x204e5e);}[_0x421906(0x173)](_0x51d695){const _0x4202e4=_0x421906;this[_0x4202e4(0x1b6)](_0x4202e4(0x1bb),this[_0x4202e4(0x1bb)]+_0x51d695);}[_0x421906(0x1a1)](){const _0xdba8b2=_0x421906;this[_0xdba8b2(0x17e)]||(this[_0xdba8b2(0x1b6)](_0xdba8b2(0x17e),!0x0),this[_0xdba8b2(0x19a)]());}[_0x421906(0x191)](){const _0xf53500=_0x421906;this[_0xf53500(0x1b4)]();}[_0x421906(0x171)](_0xe4a478,_0x1cbbc6){const _0x495bcf=_0x421906;this[_0x495bcf(0x178)][_0xe4a478][_0x495bcf(0x194)]=_0x1cbbc6,this[_0x495bcf(0x18a)](_0x495bcf(0x1aa),{'reply':this,'index':_0xe4a478,'state':_0x1cbbc6});}[_0x421906(0x1b9)]({showDiff:_0x301c32,groupIndex:_0x27a5ba}){const _0x11f468=_0x421906;if(!this[_0x11f468(0x1a4)])throw new _0x36b64d(_0x11f468(0x1b2),null,{'aiReply':this});const _0x1cb6cd=this[_0x11f468(0x180)](_0x301c32,_0x27a5ba);if(_0x1cb6cd)return _0x1cb6cd;let _0xa3869c=[];if(void 0x0===_0x27a5ba)_0xa3869c=this[_0x11f468(0x178)];else{const _0x516b7c=this[_0x11f468(0x178)][_0x11f468(0x181)](({index:_0x3dc651})=>_0x3dc651===_0x27a5ba);if(!_0x516b7c)throw new _0x36b64d(_0x11f468(0x177),null,{'aiReply':this,'groupIndex':_0x27a5ba});_0xa3869c=[_0x516b7c];}const _0x5223ac=_0x3e0f8d({'editor':this[_0x11f468(0x1a4)],'showDiff':_0x301c32,'changeGroups':_0xa3869c,'documentContextContent':this[_0x11f468(0x172)]});return this[_0x11f468(0x190)](_0x301c32,_0x5223ac),_0x5223ac;}[_0x421906(0x180)](_0x235c34,_0x175c6f){const _0x5dec8a=_0x421906,_0x4bcfd6=_0x235c34?_0x5dec8a(0x1af):_0x5dec8a(0x18e);if(!this[_0x5dec8a(0x19f)][_0x4bcfd6][_0x5dec8a(0x198)])return null;const _0x47b128=this[_0x5dec8a(0x19f)][_0x4bcfd6];if(void 0x0===_0x175c6f)return _0x3a3d82(_0x47b128);{const _0x18215f=_0x47b128[_0x5dec8a(0x181)](({index:_0x398af4})=>_0x398af4===_0x175c6f);if(_0x18215f)return[_0x3a3d82(_0x18215f)];}return null;}[_0x421906(0x190)](_0x409c24,_0x49a3d0){const _0x31ff6e=_0x421906,_0x246b4a=_0x409c24?_0x31ff6e(0x1af):_0x31ff6e(0x18e);_0x49a3d0[_0x31ff6e(0x170)](_0x53c698=>{const _0x502ad5=_0x31ff6e,_0x568799=this[_0x502ad5(0x19f)][_0x246b4a],_0x1612e4=_0x568799[_0x502ad5(0x181)](({index:_0x14c2d8})=>_0x14c2d8===_0x53c698[_0x502ad5(0x17b)]);if(_0x1612e4){const _0x15a7b8=_0x568799[_0x502ad5(0x179)](_0x1612e4);_0x568799[_0x502ad5(0x1ae)](_0x15a7b8,0x1,_0x53c698);}else _0x568799[_0x502ad5(0x196)](_0x53c698);});}[_0x421906(0x19a)](){const _0xe2b875=_0x421906;if(_0xe2b875(0x1b7)===this[_0xe2b875(0x183)]){this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x1bf)](this[_0xe2b875(0x1bb)]);const _0x5bed0b=this[_0xe2b875(0x178)];this[_0xe2b875(0x1ad)]();const _0x25c824=this[_0xe2b875(0x1a2)](_0x5bed0b,this[_0xe2b875(0x178)]);(_0x25c824[_0xe2b875(0x198)]||this[_0xe2b875(0x17e)])&&(this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this,_0x25c824),this[_0xe2b875(0x19f)][_0xe2b875(0x1af)][_0xe2b875(0x198)]=this[_0xe2b875(0x19f)][_0xe2b875(0x18e)][_0xe2b875(0x198)]=0x0);}else this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x199)](this[_0xe2b875(0x1bb)]),this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this);}[_0x421906(0x1a2)](_0x17052e,_0x15a21b){const _0x4a17fe=_0x421906,_0x3ecae2=[];for(const _0x229669 of _0x15a21b){const _0xb7e501=_0x17052e[_0x229669[_0x4a17fe(0x17b)]];_0xb7e501?_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]!==_0x229669[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]?_0x3ecae2[_0x4a17fe(0x196)](_0x229669):_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x170)]((_0x32b1f3,_0x165167)=>{const _0xac56f5=_0x4a17fe,_0x24c901=_0x229669[_0xac56f5(0x1c5)][_0x165167];_0x32b1f3['id']!==_0x24c901['id']&&_0x3ecae2[_0xac56f5(0x196)](_0x229669);}):_0x3ecae2[_0x4a17fe(0x196)](_0x229669);}return _0x3ecae2;}[_0x421906(0x1ad)](){const _0x5062f3=_0x421906,_0x13a9a8=new _0x4e86bb('p',{},[new _0x4e86bb(_0x5062f3(0x17d),{'style':_0x5062f3(0x19d)},[new _0x360a82(_0x378c95(this[_0x5062f3(0x1a4)][_0x5062f3(0x1be)],_0x5062f3(0x189)))])]),_0x174517=this[_0x5062f3(0x18d)][_0x5062f3(0x1b5)](this[_0x5062f3(0x1a6)],this[_0x5062f3(0x172)][_0x5062f3(0x193)](!0x0),{'markUnstableElements':!this[_0x5062f3(0x17e)],'replaceRemovedWith':_0x13a9a8,'cutAfterLastChange':!this[_0x5062f3(0x17e)]});if(!_0x174517[_0x5062f3(0x1b1)][_0x5062f3(0x198)]&&!this[_0x5062f3(0x17e)])return;this[_0x5062f3(0x1b8)]=_0x174517[_0x5062f3(0x1a6)];let _0x2a16a2=[];if(_0x4f7572(_0xf5b872=>{const _0x1bac20=_0x5062f3,_0x2367b4=_0x21030a(_0xf5b872,_0x1bac20(0x1bd));if(!_0x2367b4||!_0x45be95(_0x2367b4))return!0x1;const _0x478e10=[_0xf5b872,..._0x202a00(_0xf5b872)]['at'](-0x2);if(_0xf5b872!=_0x478e10){const _0xc144b1=_0x21030a(_0x478e10,_0x1bac20(0x1bd));_0x45be95(_0xc144b1)||(_0x2a16a2[_0x1bac20(0x196)]({'node':_0x478e10,'id':_0xc144b1,'type':_0x1bac20(0x17c)}),_0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x196)](_0xc144b1));}else _0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x17c),'id':_0x2367b4}):_0x174517[_0x1bac20(0x174)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1a9),'id':_0x2367b4,'anchorId':_0x21030a(_0xf5b872[_0x1bac20(0x1c1)],_0x1bac20(0x1bd))}):_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1bc),'id':_0x2367b4});return!0x0;},this[_0x5062f3(0x1b8)]),_0x2a16a2=_0x2a16a2[_0x5062f3(0x1c3)](({node:_0x565c72})=>[..._0x202a00(_0x565c72),_0x565c72][_0x5062f3(0x1b3)](_0x346b21=>!_0x21030a(_0x346b21,_0x5062f3(0x175)))),0x0==_0x2a16a2[_0x5062f3(0x198)])return;const _0x2a46e8=[[_0x2a16a2[0x0]]];for(let _0x1201b2=0x1;_0x1201b2<_0x2a16a2[_0x5062f3(0x198)];_0x1201b2++){const _0x364710=_0x2a46e8[_0x2a46e8[_0x5062f3(0x198)]-0x1],_0x57cabc=_0x364710[_0x364710[_0x5062f3(0x198)]-0x1];_0x2a16a2[_0x1201b2][_0x5062f3(0x18f)][_0x5062f3(0x1c1)]==_0x57cabc[_0x5062f3(0x18f)]&&_0x5062f3(0x17c)!=_0x2a16a2[_0x1201b2][_0x5062f3(0x183)]&&_0x5062f3(0x17c)!=_0x57cabc[_0x5062f3(0x183)]?_0x364710[_0x5062f3(0x196)](_0x2a16a2[_0x1201b2]):_0x2a46e8[_0x5062f3(0x196)]([_0x2a16a2[_0x1201b2]]);}for(const _0x27beaa of _0x2a46e8){const _0x55482c=_0x27beaa[0x0],_0x160509=_0x27beaa[_0x27beaa[_0x5062f3(0x198)]-0x1],_0x15881c=_0x262d2b(_0x55482c[_0x5062f3(0x18f)][_0x5062f3(0x1c1)]);_0x15881c&&_0x27beaa[_0x5062f3(0x1a7)](_0x15881c);const _0x21cb61=_0x262d2b(_0x160509[_0x5062f3(0x18f)][_0x5062f3(0x1ba)]);_0x21cb61&&_0x27beaa[_0x5062f3(0x196)](_0x21cb61);}function _0x45be95(_0x52a0e9){const _0x43828e=_0x5062f3;return _0x174517[_0x43828e(0x1b1)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x174)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x1ac)][_0x43828e(0x1c2)](_0x52a0e9);}function _0x262d2b(_0x41f889){const _0x2b9820=_0x5062f3;if(_0x41f889&&_0x21030a(_0x41f889,_0x2b9820(0x1bd))&&!_0x21030a(_0x41f889,_0x2b9820(0x175))){const _0x3b291d=_0x21030a(_0x41f889,_0x2b9820(0x1bd));if(!_0x45be95(_0x3b291d))return{'node':_0x41f889,'type':_0x2b9820(0x19e),'id':_0x3b291d};}return null;}this[_0x5062f3(0x178)]=_0x2a46e8[_0x5062f3(0x1a8)]((_0x2adb0f,_0x40d5b3)=>({'changes':_0x2adb0f,'state':_0x5062f3(0x195),'index':_0x40d5b3}));}}export function isValidReplyType(_0x3fb51d){const _0x44c1c6=_0x421906;return Object[_0x44c1c6(0x18b)](AI_REPLY_TYPES)[_0x44c1c6(0x1c2)](_0x3fb51d);}export function isIgnoredReplyType(_0x27dbbe){const _0x1d2bc7=_0x421906;return AI_REPLY_TYPES_IGNORED[_0x1d2bc7(0x1c2)](_0x27dbbe);}export function isReplyTitleType(_0x5d1f18){return _0x5d1f18===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xad9043){const _0x436aad=_0x421906;return _0x436aad(0x182)===_0xad9043;}
23
+ function _0x2b97(){const _0xd1dce4=['changes','appendContent','interactionId','cloneNode','6rmVzIJ','9131220opovUN','forEach','parsedContent','documentContextContent','replyContentUpdated','conversation-title','locale','filter','parsedMergedContent','updateChangeGroups','values','getContentParts','850OWcszS','pending','data-unstable','453QNKnBp','aiResponseParser','6752wbSUwn','find','changeGroups','source','AI_SUGGESTION_CONTENT_PART_REMOVED','change:content','withoutDiff','push','744020iATSle','201908RzRBAk','areActionsDisabled','set','aiResponseApplier','withDiff','every','stopListening','2529096pfwaOk','text-delta','web-search','setChangeGroupState','done','nextSibling','span','onContentChange','destroy','reasoning','replyChangeGroupStateUpdated','parseAndNormalizeHTML','editor','_getDifferentChangeGroups','modification-delta','color:\x20#808080;\x20font-style:\x20italic','modified','new','sources','convertMarkdownToHTML','cachedSuggestionContentParts','2629345sKnlap','unshift','length','13qdajSs','indexOf','ai-reply-get-content-parts-group-not-found','node','data-id','_setCachedContentParts','55cwvnOo','context','type','previousSibling','1175uWRBbv','isDone','map','removedNodeIds','includes','fire','ai-get-editor-from-context-no-editor','merge','modifiedNodeIds','state','_getCachedContentParts','content','index','9qaRCgF','removed','splice','newNodeIds'];_0x2b97=function(){return _0xd1dce4;};return _0x2b97();}const _0x19802d=_0x3057;(function(_0x481a51,_0x13dfbf){const _0x3227fc=_0x3057,_0x181c22=_0x481a51();while(!![]){try{const _0x4d314e=-parseInt(_0x3227fc(0x10e))/0x1*(-parseInt(_0x3227fc(0xd7))/0x2)+-parseInt(_0x3227fc(0xda))/0x3*(-parseInt(_0x3227fc(0xdc))/0x4)+parseInt(_0x3227fc(0x101))/0x5*(-parseInt(_0x3227fc(0xca))/0x6)+-parseInt(_0x3227fc(0xe5))/0x7+-parseInt(_0x3227fc(0xec))/0x8*(parseInt(_0x3227fc(0x11b))/0x9)+parseInt(_0x3227fc(0xe4))/0xa*(-parseInt(_0x3227fc(0x10a))/0xb)+parseInt(_0x3227fc(0xcb))/0xc*(parseInt(_0x3227fc(0x104))/0xd);if(_0x4d314e===_0x13dfbf)break;else _0x181c22['push'](_0x181c22['shift']());}catch(_0x138f31){_0x181c22['push'](_0x181c22['shift']());}}}(_0x2b97,0x427d2));import{CKEditorError as _0x45eaec,ObservableMixin as _0x4c7156,uid as _0x8fd10f}from'ckeditor5/src/utils.js';function _0x3057(_0x34cc90,_0x37e594){const _0x2b973a=_0x2b97();return _0x3057=function(_0x3057db,_0x58f137){_0x3057db=_0x3057db-0xc7;let _0xe9d815=_0x2b973a[_0x3057db];return _0xe9d815;},_0x3057(_0x34cc90,_0x37e594);}import{Element as _0x3c0f5e,findAll as _0x5547b7,getAttribute as _0x22cf8c,getParents as _0x557046,Document as _0x2ce9a1,parse as _0x2e0c24,Text as _0x5b3951}from'../utils/htmlparser.js';import{AIResponseParser as _0x1213e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x19820c}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x14fc5b}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x57c541}from'../utils/common-translations.js';import{cloneDeep as _0x4a51b3}from'es-toolkit';export const AI_REPLY_TYPES=[_0x19802d(0xfa),_0x19802d(0xed),_0x19802d(0xee),_0x19802d(0xf5)];export const AI_REPLY_TYPES_IGNORED=[_0x19802d(0xd0)];export const AI_REPLY_TITLE_TYPE=_0x19802d(0xd0);export class AIReply extends _0x4c7156(){['id'];[_0x19802d(0xc8)];[_0x19802d(0x10c)];[_0x19802d(0xfe)]=[];[_0x19802d(0xcd)]=new _0x2ce9a1([]);[_0x19802d(0xd3)]=new _0x2ce9a1([]);[_0x19802d(0xde)]=[];[_0x19802d(0xe6)]=!0x1;[_0x19802d(0xce)];[_0x19802d(0xdb)];[_0x19802d(0xe8)];[_0x19802d(0xf8)];[_0x19802d(0x100)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x25fa59,content:_0xc56d74='',isDone:_0x5c757b=!0x1,interactionId:_0xb76d14,areActionsDisabled:_0x40b310,documentContextContent:_0x177ca1,editor:_0x16d2c2,id:_0x31e025}){const _0xd1dcdd=_0x19802d;super(),this['id']=_0x31e025||_0x8fd10f(),this[_0xd1dcdd(0xc8)]=_0xb76d14,this[_0xd1dcdd(0x10c)]=_0x25fa59,this[_0xd1dcdd(0xe6)]=!!_0x40b310,this[_0xd1dcdd(0xf8)]=_0x16d2c2,this[_0xd1dcdd(0xdb)]=new _0x1213e5(),this[_0xd1dcdd(0xe8)]=new _0x19820c(),this[_0xd1dcdd(0xce)]=_0x2e0c24(_0x177ca1||''),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x10f),_0x5c757b),this['on'](_0xd1dcdd(0xe1),()=>{const _0x2c88fb=_0xd1dcdd;this[_0x2c88fb(0xf3)]();}),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x119),_0xc56d74);}[_0x19802d(0xc7)](_0x330b6a){const _0xa8fda2=_0x19802d;this[_0xa8fda2(0xe7)](_0xa8fda2(0x119),this[_0xa8fda2(0x119)]+_0x330b6a);}[_0x19802d(0xf0)](){const _0x35bef1=_0x19802d;this[_0x35bef1(0x10f)]||(this[_0x35bef1(0xe7)](_0x35bef1(0x10f),!0x0),this[_0x35bef1(0xf3)]());}[_0x19802d(0xf4)](){const _0x25fdf2=_0x19802d;this[_0x25fdf2(0xeb)]();}[_0x19802d(0xef)](_0x44e7da,_0x4ade33){const _0x2a7d19=_0x19802d;this[_0x2a7d19(0xde)][_0x44e7da][_0x2a7d19(0x117)]=_0x4ade33,this[_0x2a7d19(0x113)](_0x2a7d19(0xf6),{'reply':this,'index':_0x44e7da,'state':_0x4ade33});}[_0x19802d(0xd6)]({showDiff:_0x703a65,groupIndex:_0x22e428}){const _0x281b20=_0x19802d;if(!this[_0x281b20(0xf8)])throw new _0x45eaec(_0x281b20(0x114),null,{'aiReply':this});const _0x465dee=this[_0x281b20(0x118)](_0x703a65,_0x22e428);if(_0x465dee)return _0x465dee;let _0x2781bd=[];if(void 0x0===_0x22e428)_0x2781bd=this[_0x281b20(0xde)];else{const _0x573605=this[_0x281b20(0xde)][_0x281b20(0xdd)](({index:_0xb54601})=>_0xb54601===_0x22e428);if(!_0x573605)throw new _0x45eaec(_0x281b20(0x106),null,{'aiReply':this,'groupIndex':_0x22e428});_0x2781bd=[_0x573605];}const _0x54a695=_0x14fc5b({'editor':this[_0x281b20(0xf8)],'showDiff':_0x703a65,'changeGroups':_0x2781bd,'documentContextContent':this[_0x281b20(0xce)]});return this[_0x281b20(0x109)](_0x703a65,_0x54a695),_0x54a695;}[_0x19802d(0x118)](_0x46e524,_0xd04bc4){const _0x1123ae=_0x19802d,_0x459adc=_0x46e524?_0x1123ae(0xe9):_0x1123ae(0xe2);if(!this[_0x1123ae(0x100)][_0x459adc][_0x1123ae(0x103)])return null;const _0x5ee115=this[_0x1123ae(0x100)][_0x459adc];if(void 0x0===_0xd04bc4)return _0x4a51b3(_0x5ee115);{const _0x4a7798=_0x5ee115[_0x1123ae(0xdd)](({index:_0x134b5f})=>_0x134b5f===_0xd04bc4);if(_0x4a7798)return[_0x4a51b3(_0x4a7798)];}return null;}[_0x19802d(0x109)](_0x1ab82b,_0x2244ae){const _0x50675a=_0x19802d,_0xc77a90=_0x1ab82b?_0x50675a(0xe9):_0x50675a(0xe2);_0x2244ae[_0x50675a(0xcc)](_0x5dfc4f=>{const _0x114f16=_0x50675a,_0x1ac61c=this[_0x114f16(0x100)][_0xc77a90],_0x9310d9=_0x1ac61c[_0x114f16(0xdd)](({index:_0x2de9b0})=>_0x2de9b0===_0x5dfc4f[_0x114f16(0x11a)]);if(_0x9310d9){const _0x388170=_0x1ac61c[_0x114f16(0x105)](_0x9310d9);_0x1ac61c[_0x114f16(0x11d)](_0x388170,0x1,_0x5dfc4f);}else _0x1ac61c[_0x114f16(0xe3)](_0x5dfc4f);});}[_0x19802d(0xf3)](){const _0x25202d=_0x19802d;if(_0x25202d(0xfa)===this[_0x25202d(0x10c)]){this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xf7)](this[_0x25202d(0x119)]);const _0x301010=this[_0x25202d(0xde)];this[_0x25202d(0xd4)]();const _0x5dd1e3=this[_0x25202d(0xf9)](_0x301010,this[_0x25202d(0xde)]);(_0x5dd1e3[_0x25202d(0x103)]||this[_0x25202d(0x10f)])&&(this[_0x25202d(0x113)](_0x25202d(0xcf),this,_0x5dd1e3),this[_0x25202d(0x100)][_0x25202d(0xe9)][_0x25202d(0x103)]=this[_0x25202d(0x100)][_0x25202d(0xe2)][_0x25202d(0x103)]=0x0);}else this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xff)](this[_0x25202d(0x119)]),this[_0x25202d(0x113)](_0x25202d(0xcf),this);}[_0x19802d(0xf9)](_0x28c7ff,_0x2f0b25){const _0x2869b7=_0x19802d,_0x2957c0=[];for(const _0x159f0d of _0x2f0b25){const _0x341de1=_0x28c7ff[_0x159f0d[_0x2869b7(0x11a)]];_0x341de1?_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0x103)]!==_0x159f0d[_0x2869b7(0x11f)][_0x2869b7(0x103)]?_0x2957c0[_0x2869b7(0xe3)](_0x159f0d):_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0xcc)]((_0x345435,_0x4c7b26)=>{const _0x25d5f6=_0x2869b7,_0x3adc22=_0x159f0d[_0x25d5f6(0x11f)][_0x4c7b26];_0x345435['id']!==_0x3adc22['id']&&_0x2957c0[_0x25d5f6(0xe3)](_0x159f0d);}):_0x2957c0[_0x2869b7(0xe3)](_0x159f0d);}return _0x2957c0;}[_0x19802d(0xd4)](){const _0x557a4a=_0x19802d,_0x56f33a=new _0x3c0f5e('p',{},[new _0x3c0f5e(_0x557a4a(0xf2),{'style':_0x557a4a(0xfb)},[new _0x5b3951(_0x57c541(this[_0x557a4a(0xf8)][_0x557a4a(0xd1)],_0x557a4a(0xe0)))])]),_0x4afaad=this[_0x557a4a(0xe8)][_0x557a4a(0x115)](this[_0x557a4a(0xcd)],this[_0x557a4a(0xce)][_0x557a4a(0xc9)](!0x0),{'markUnstableElements':!this[_0x557a4a(0x10f)],'replaceRemovedWith':_0x56f33a,'cutAfterLastChange':!this[_0x557a4a(0x10f)]});if(!_0x4afaad[_0x557a4a(0x116)][_0x557a4a(0x103)]&&!this[_0x557a4a(0x10f)])return;this[_0x557a4a(0xd3)]=_0x4afaad[_0x557a4a(0xcd)];let _0x341cfd=[];if(_0x5547b7(_0x56ca12=>{const _0x1b7a76=_0x557a4a,_0x26b43c=_0x22cf8c(_0x56ca12,_0x1b7a76(0x108));if(!_0x26b43c||!_0x301880(_0x26b43c))return!0x1;const _0x4e13c7=[_0x56ca12,..._0x557046(_0x56ca12)]['at'](-0x2);if(_0x56ca12!=_0x4e13c7){const _0x1dcf67=_0x22cf8c(_0x4e13c7,_0x1b7a76(0x108));_0x301880(_0x1dcf67)||(_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x4e13c7,'id':_0x1dcf67,'type':_0x1b7a76(0xfc)}),_0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0xe3)](_0x1dcf67));}else _0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfc),'id':_0x26b43c}):_0x4afaad[_0x1b7a76(0x11e)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfd),'id':_0x26b43c,'anchorId':_0x22cf8c(_0x56ca12[_0x1b7a76(0x10d)],_0x1b7a76(0x108))}):_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0x11c),'id':_0x26b43c});return!0x0;},this[_0x557a4a(0xd3)]),_0x341cfd=_0x341cfd[_0x557a4a(0xd2)](({node:_0x297d00})=>[..._0x557046(_0x297d00),_0x297d00][_0x557a4a(0xea)](_0x4f9dd9=>!_0x22cf8c(_0x4f9dd9,_0x557a4a(0xd9)))),0x0==_0x341cfd[_0x557a4a(0x103)])return;const _0x386360=[[_0x341cfd[0x0]]];for(let _0x4495f4=0x1;_0x4495f4<_0x341cfd[_0x557a4a(0x103)];_0x4495f4++){const _0xb0fa5b=_0x386360[_0x386360[_0x557a4a(0x103)]-0x1],_0xad4333=_0xb0fa5b[_0xb0fa5b[_0x557a4a(0x103)]-0x1];_0x341cfd[_0x4495f4][_0x557a4a(0x107)][_0x557a4a(0x10d)]==_0xad4333[_0x557a4a(0x107)]&&_0x557a4a(0xfc)!=_0x341cfd[_0x4495f4][_0x557a4a(0x10c)]&&_0x557a4a(0xfc)!=_0xad4333[_0x557a4a(0x10c)]?_0xb0fa5b[_0x557a4a(0xe3)](_0x341cfd[_0x4495f4]):_0x386360[_0x557a4a(0xe3)]([_0x341cfd[_0x4495f4]]);}for(const _0x1b8a54 of _0x386360){const _0x34d27b=_0x1b8a54[0x0],_0x1b118d=_0x1b8a54[_0x1b8a54[_0x557a4a(0x103)]-0x1],_0x2e3f70=_0x41cd10(_0x34d27b[_0x557a4a(0x107)][_0x557a4a(0x10d)]);_0x2e3f70&&_0x1b8a54[_0x557a4a(0x102)](_0x2e3f70);const _0x4a2096=_0x41cd10(_0x1b118d[_0x557a4a(0x107)][_0x557a4a(0xf1)]);_0x4a2096&&_0x1b8a54[_0x557a4a(0xe3)](_0x4a2096);}function _0x301880(_0x38cba1){const _0x1423b4=_0x557a4a;return _0x4afaad[_0x1423b4(0x116)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x11e)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x111)][_0x1423b4(0x112)](_0x38cba1);}function _0x41cd10(_0x121447){const _0x5467f9=_0x557a4a;if(_0x121447&&_0x22cf8c(_0x121447,_0x5467f9(0x108))&&!_0x22cf8c(_0x121447,_0x5467f9(0xd9))){const _0x52a73d=_0x22cf8c(_0x121447,_0x5467f9(0x108));if(!_0x301880(_0x52a73d))return{'node':_0x121447,'type':_0x5467f9(0x10b),'id':_0x52a73d};}return null;}this[_0x557a4a(0xde)]=_0x386360[_0x557a4a(0x110)]((_0x478d68,_0x46ceeb)=>({'changes':_0x478d68,'state':_0x557a4a(0xd8),'index':_0x46ceeb}));}}export function isValidReplyType(_0x5988e6){const _0x1f7c80=_0x19802d;return Object[_0x1f7c80(0xd5)](AI_REPLY_TYPES)[_0x1f7c80(0x112)](_0x5988e6);}export function isIgnoredReplyType(_0x44a0ca){const _0x3a7ad8=_0x19802d;return AI_REPLY_TYPES_IGNORED[_0x3a7ad8(0x112)](_0x44a0ca);}export function isReplyTitleType(_0x32b0c4){return _0x32b0c4===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x57afd5){const _0x5f5db1=_0x19802d;return _0x5f5db1(0xdf)===_0x57afd5;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x53aa(_0x2274d2,_0x422aa0){const _0x3f8a92=_0x3f8a();return _0x53aa=function(_0x53aab3,_0x11fbfb){_0x53aab3=_0x53aab3-0xd1;let _0x3fc47f=_0x3f8a92[_0x53aab3];return _0x3fc47f;},_0x53aa(_0x2274d2,_0x422aa0);}function _0x3f8a(){const _0x586948=['12SUmNjv','7829000uyMcAN','previousSibling','data-unstable','8450071XxewfB','_markWrappedElements','data-removed','_existingDataIds','_generateUid','4429707oKzKYP','length','markUnstableElements','childNodes','_getNodeDataId','_markLastTagElementUnstable','new-element','includes','markUnstableElementsDepth','_isDelNode','_findNextElementWithDataId','_getUid','lastTouchedId','nodeType','3956900SoiFVm','has','_findFallbackReferenceNode','_isExistingContentComment','_touchedNodesState','replaceRemovedWith','merge','forEach','parentNode','reverse','trim','map','splice','74138RMRetE','newIds','slice','_isNewNode','removedIds','_insertNodes','_findPrevElementWithDataId','697380RzUUnw','afterbegin','_markUnstableElements','push','filter','_storeDeletedElementIds','27144225ejaFbX','cloneNode','cutAfterLastChange','afterend','true','19SMaYHk','_findReferenceNode','_removeSpecialComments','_hasWrappedParent','_replaceNode','indexOf','invalidIds','lastChild','modifiedIds','data-wrapped-id','nextSibling','from','data-id','_isExistingNode','match','beforebegin'];_0x3f8a=function(){return _0x586948;};return _0x3f8a();}const _0xa22a5b=_0x53aa;(function(_0x3eb6d4,_0x16e4b1){const _0x5bd760=_0x53aa,_0x43449e=_0x3eb6d4();while(!![]){try{const _0xb1a8ea=parseInt(_0x5bd760(0x10f))/0x1*(parseInt(_0x5bd760(0xfd))/0x2)+-parseInt(_0x5bd760(0xe2))/0x3+-parseInt(_0x5bd760(0xf0))/0x4+-parseInt(_0x5bd760(0x104))/0x5*(parseInt(_0x5bd760(0xd9))/0x6)+-parseInt(_0x5bd760(0xdd))/0x7+parseInt(_0x5bd760(0xda))/0x8+parseInt(_0x5bd760(0x10a))/0x9;if(_0xb1a8ea===_0x16e4b1)break;else _0x43449e['push'](_0x43449e['shift']());}catch(_0x52d12f){_0x43449e['push'](_0x43449e['shift']());}}}(_0x3f8a,0xb6636));import{ObservableMixin as _0x490767,uid as _0x7dcf7b}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x115cec,findByAttribute as _0x1c323b,getAttribute as _0x2946a5,isComment as _0x382de5,isTag as _0x3ecd8b,insertElement as _0x30f484,moveElement as _0x47b18b,removeElement as _0x3b07f4,replaceElement as _0x558d5d,serialize as _0x3f0e33,setAttribute as _0x10261f,clone as _0x49bbac,findAllComments as _0x12afb2,getParents as _0x51bd01,getNodeNestingLevel as _0x1dbfa5,areNodesSame as _0x138cb6,removeElementsAfter as _0x4d89bf}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x490767(){[_0xa22a5b(0xe1)];[_0xa22a5b(0xf4)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xa22a5b(0xe0)]=new Set();constructor(_0x58b109){const _0x342a66=_0xa22a5b;super(),this[_0x342a66(0xe1)]=_0x58b109||_0x7dcf7b;}[_0xa22a5b(0xf6)](_0x490dce,_0x5ae247,_0x3c16e2){const _0x4bbf83=_0xa22a5b,_0x179318=_0x49bbac(_0x490dce);if(0x0===_0x5ae247[_0x4bbf83(0xe5)][_0x4bbf83(0xe3)]){const _0x51f110=[];return _0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x179318)[_0x4bbf83(0xf7)](_0x21c979=>{const _0x1c33bc=_0x4bbf83,_0x18881a=this[_0x1c33bc(0xe1)]();_0x10261f(_0x21c979,_0x1c33bc(0xd5),_0x18881a),_0x51f110[_0x1c33bc(0x107)](_0x18881a);}),this[_0x4bbf83(0x111)](_0x179318),{'parsedContent':_0x179318,'newNodeIds':_0x51f110,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0xe7)](_0x179318),this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x115)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=null,this[_0x4bbf83(0xe0)]=new Set(_0x115cec(_0x4bbf83(0xd5),null,_0x5ae247)[_0x4bbf83(0xfb)](_0x387b9e=>_0x2946a5(_0x387b9e,_0x4bbf83(0xd5)))[_0x4bbf83(0x108)](_0x4469eb=>!!_0x4469eb));let _0x177788=-0x1,_0x10bfb3=!0x1;const _0x2b4137=_0x179318[_0x4bbf83(0xe5)],_0x4bf22c=Array[_0x4bbf83(0xd4)](_0x2b4137)[_0x4bbf83(0x108)](_0x1c15bb=>!(0x3===_0x1c15bb[_0x4bbf83(0xef)]&&''===_0x3f0e33(_0x1c15bb)[_0x4bbf83(0xfa)]())),_0x18a477=_0x4bf22c[_0x4bbf83(0xe3)];for(let _0x50f75c=0x0;_0x50f75c<_0x18a477;_0x50f75c++){const _0xd352da=_0x4bf22c[_0x50f75c],_0x14ced5=_0x4bf22c[_0x50f75c+0x1];if(this[_0x4bbf83(0x100)](_0xd352da)){if(-0x1===_0x177788&&(_0x177788=_0x50f75c),this[_0x4bbf83(0xde)](_0xd352da),!this[_0x4bbf83(0x100)](_0x14ced5)){const [_0xb54e33,_0x2c3a19]=this[_0x4bbf83(0x110)](_0xd352da,_0x10bfb3,_0x5ae247);if(_0xb54e33){const _0x2a529f=Array[_0x4bbf83(0xd4)](_0x4bf22c)[_0x4bbf83(0xff)](_0x177788,_0x50f75c+0x1);this[_0x4bbf83(0x102)](_0xb54e33,_0x2a529f,_0x2c3a19),_0x177788=-0x1;}}}else{if(this[_0x4bbf83(0xf3)](_0xd352da))_0x10bfb3=!0x0;else{if(this[_0x4bbf83(0xd6)](_0xd352da)){const _0x5236f3=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));if(_0x5236f3&&this[_0x4bbf83(0xe0)][_0x4bbf83(0xf1)](_0x5236f3)){const _0x384d18=_0x1c323b(_0x4bbf83(0xd5),_0x5236f3,_0x5ae247);this[_0x4bbf83(0x113)](_0x384d18,_0xd352da);}if(this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xe9)](_0x5236f3)){const _0xd6d8e8=this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0x114)](_0x5236f3);this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xfc)](_0xd6d8e8,0x1);}}else{if(this[_0x4bbf83(0xeb)](_0xd352da)){const _0xdbb8cb=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)][_0x4bbf83(0xe9)](_0xdbb8cb)||this[_0x4bbf83(0x109)](_0xd352da);}}}}}for(const _0x587721 of this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]){const _0x5a78a9=_0x1c323b(_0x4bbf83(0xd5),_0x587721,_0x5ae247);if(_0x5a78a9){if(_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xf5)]){this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=_0x587721;const _0x175c90=_0x3c16e2[_0x4bbf83(0xf5)][_0x4bbf83(0x10b)](!0x0);_0x10261f(_0x175c90,_0x4bbf83(0xd5),_0x587721),_0x10261f(_0x175c90,_0x4bbf83(0xdf),_0x4bbf83(0x10e)),_0x558d5d(_0x5a78a9,_0x175c90);}else _0x3b07f4(_0x5a78a9);}}if(_0x115cec(_0x4bbf83(0xd2),null,_0x5ae247)[_0x4bbf83(0xf7)](_0x382f01=>{const _0x905d08=_0x4bbf83,_0x2f52ee=_0x2946a5(_0x382f01,_0x905d08(0xd2)),_0x2e2c08=_0x1c323b(_0x905d08(0xd5),_0x2f52ee,_0x5ae247);_0x2e2c08&&_0x47b18b(_0x2e2c08,_0x382f01);}),_0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x5ae247)[_0x4bbf83(0xf7)](_0x330c67=>{const _0x4d79f4=_0x4bbf83,_0x52ff50=this[_0x4d79f4(0xed)](_0x330c67);_0x10261f(_0x330c67,_0x4d79f4(0xd5),_0x52ff50),this[_0x4d79f4(0xf4)][_0x4d79f4(0xfe)][_0x4d79f4(0x107)](_0x52ff50);}),this[_0x4bbf83(0x111)](_0x5ae247),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0x106)](_0x5ae247,_0x3c16e2[_0x4bbf83(0xea)]||0x0),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0x10c)]&&this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]){let _0x59a869=_0x1c323b(_0x4bbf83(0xd5),this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)],_0x5ae247);for(;_0x59a869;)_0x4d89bf(_0x59a869),_0x59a869=_0x59a869[_0x4bbf83(0xf8)];}return{'parsedContent':_0x5ae247,'newNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)],'modifiedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)],'removedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]};}[_0xa22a5b(0x102)](_0x6c6579,_0x35baac,_0x4dde69){const _0x5bb32c=_0xa22a5b;for(const _0x29538a of _0x35baac){const _0x19d83b=this[_0x5bb32c(0xed)](_0x29538a);_0x10261f(_0x29538a,_0x5bb32c(0xd5),_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xfe)][_0x5bb32c(0x107)](_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xee)]=_0x19d83b;}const _0x2f1eff=_0x5bb32c(0x105)===_0x4dde69||_0x5bb32c(0x10d)===_0x4dde69?_0x35baac[_0x5bb32c(0xf9)]():_0x35baac;for(const _0x42a73d of _0x2f1eff)_0x30f484(_0x6c6579,_0x42a73d,_0x4dde69);}[_0xa22a5b(0x113)](_0x275061,_0x129644){const _0x51baa3=_0xa22a5b;if(!_0x275061)return;if(_0x138cb6(_0x275061,_0x129644))return;const _0x2e6535=this[_0x51baa3(0xed)](_0x275061);_0x10261f(_0x129644,_0x51baa3(0xd5),_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xd1)][_0x51baa3(0x107)](_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xee)]=_0x2e6535,_0x558d5d(_0x275061,_0x129644[_0x51baa3(0x10b)](!0x0));}[_0xa22a5b(0x110)](_0x1522ec,_0x52c129,_0x2481c0){const _0x55975e=_0xa22a5b,_0x5d836e=this[_0x55975e(0x103)](_0x1522ec,!0x1);if(_0x5d836e){const _0x22fc22=this[_0x55975e(0xe6)](_0x5d836e),_0x284420=_0x1c323b(_0x55975e(0xd5),_0x22fc22,_0x2481c0);if(_0x284420)return[_0x284420,_0x55975e(0x10d)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x22fc22);}const _0x52cd80=this[_0x55975e(0xec)](_0x1522ec,!0x1);if(_0x52cd80){const _0x258c07=this[_0x55975e(0xe6)](_0x52cd80),_0x5abec6=_0x1c323b(_0x55975e(0xd5),_0x258c07,_0x2481c0);if(_0x5abec6)return[_0x5abec6,_0x55975e(0xd8)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x258c07);}return _0x52c129?_0x1522ec[_0x55975e(0xd3)]?this[_0x55975e(0xf2)](_0x1522ec,_0x2481c0):[_0x2481c0[_0x55975e(0xe5)][_0x2481c0[_0x55975e(0xe5)][_0x55975e(0xe3)]-0x1],_0x55975e(0x10d)]:[_0x2481c0[_0x55975e(0xe5)][0x0],_0x55975e(0xd8)];}[_0xa22a5b(0xf2)](_0x5e0c9f,_0x391cd5){const _0x4c58fb=_0xa22a5b,_0x1e5dec=[],_0x4a956b=this[_0x4c58fb(0x103)](_0x5e0c9f,!0x0);if(_0x4a956b){const _0x5cbd86=this[_0x4c58fb(0xe6)](_0x4a956b),_0x11eb9f=_0x1c323b(_0x4c58fb(0xd5),_0x5cbd86,_0x391cd5);_0x11eb9f&&_0x1e5dec[_0x4c58fb(0x107)]([_0x11eb9f,_0x4c58fb(0x10d)]);}const _0x411958=this[_0x4c58fb(0xec)](_0x5e0c9f,!0x0);if(_0x411958){const _0x7764da=this[_0x4c58fb(0xe6)](_0x411958),_0x18245a=_0x1c323b(_0x4c58fb(0xd5),_0x7764da,_0x391cd5);_0x18245a&&_0x1e5dec[_0x4c58fb(0x107)]([_0x18245a,_0x4c58fb(0xd8)]);}if(_0x1e5dec[_0x4c58fb(0xe3)]>0x1)return _0x1dbfa5(_0x1e5dec[0x0][0x0])<=_0x1dbfa5(_0x1e5dec[0x1][0x0])?_0x1e5dec[0x0]:_0x1e5dec[0x1];return 0x1===_0x1e5dec[_0x4c58fb(0xe3)]?_0x1e5dec[0x0]:[_0x391cd5[_0x4c58fb(0x116)],_0x4c58fb(0x10d)];}[_0xa22a5b(0xec)](_0x28f726,_0x15c3d1){const _0x36f2ca=_0xa22a5b;let _0x17b31d=_0x28f726[_0x36f2ca(0xd3)],_0x569d0e=null,_0x12d9a3=!0x1;for(;_0x17b31d;){if(_0x382de5(_0x17b31d)){if(this[_0x36f2ca(0xeb)](_0x17b31d)&&(_0x569d0e=_0x17b31d),this[_0x36f2ca(0xf3)](_0x17b31d)&&_0x15c3d1&&!_0x12d9a3){_0x12d9a3=!0x0,_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];continue;}break;}const _0xfce0dd=_0x2946a5(_0x17b31d,_0x36f2ca(0xd5));if(_0xfce0dd&&_0x36f2ca(0xe8)!==_0xfce0dd&&this[_0x36f2ca(0xe0)][_0x36f2ca(0xf1)](_0xfce0dd)){_0x569d0e=_0x17b31d;break;}_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];}return _0x569d0e;}[_0xa22a5b(0x103)](_0x959158,_0x42b730){const _0x20f3c7=_0xa22a5b;let _0x2330f5=_0x959158[_0x20f3c7(0xdb)],_0x524425=null,_0xb54807=!0x1;for(;_0x2330f5;){if(_0x382de5(_0x2330f5)){if(this[_0x20f3c7(0xeb)](_0x2330f5)&&(_0x524425=_0x2330f5),this[_0x20f3c7(0xf3)](_0x2330f5)&&_0x42b730&&!_0xb54807){_0xb54807=!0x0,_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];continue;}break;}const _0x78a01=_0x2946a5(_0x2330f5,_0x20f3c7(0xd5));if(_0x78a01&&_0x20f3c7(0xe8)!==_0x78a01&&this[_0x20f3c7(0xe0)][_0x20f3c7(0xf1)](_0x78a01)){_0x524425=_0x2330f5;break;}_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];}return _0x524425;}[_0xa22a5b(0xde)](_0x5dc72f){const _0x53b41b=_0xa22a5b;_0x3ecd8b(_0x5dc72f)&&_0x115cec(_0x53b41b(0xd5),null,_0x5dc72f)[_0x53b41b(0xf7)](_0x431d7e=>{const _0x407507=_0x53b41b;if(this[_0x407507(0xd6)](_0x431d7e)&&!this[_0x407507(0x112)](_0x431d7e)){const _0x1332ca=_0x2946a5(_0x431d7e,_0x407507(0xd5));_0x10261f(_0x431d7e,_0x407507(0xd2),_0x1332ca),_0x10261f(_0x431d7e,_0x407507(0xd5),null);}});}[_0xa22a5b(0xe6)](_0x4f4e9b){const _0x21469=_0xa22a5b;if(!_0x4f4e9b)return null;if(_0x3ecd8b(_0x4f4e9b))return _0x2946a5(_0x4f4e9b,_0x21469(0xd5));if(_0x382de5(_0x4f4e9b)){const _0x46ad58=_0x3f0e33(_0x4f4e9b)[_0x21469(0xd7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x46ad58&&_0x46ad58[0x1])return _0x46ad58[0x1];}return null;}[_0xa22a5b(0x109)](_0x65d643){const _0x2e0b28=_0xa22a5b;if(_0x382de5(_0x65d643)){const _0x2dcfce=_0x3f0e33(_0x65d643)[_0x2e0b28(0xd7)](/removed[\s*-]data-id="([^"]+)"/);_0x2dcfce&&_0x2dcfce[0x1]&&this[_0x2e0b28(0xf4)][_0x2e0b28(0x101)][_0x2e0b28(0x107)](_0x2dcfce[0x1]);}}[_0xa22a5b(0xed)](_0x2c448f){const _0x2982f4=_0xa22a5b;return this[_0x2982f4(0xd6)](_0x2c448f)?_0x2946a5(_0x2c448f,_0x2982f4(0xd5)):this[_0x2982f4(0xe1)]();}[_0xa22a5b(0x111)](_0x47a7b6){const _0x54f61f=_0xa22a5b;_0x12afb2(_0x47a7b6)[_0x54f61f(0x108)](_0x40a913=>this[_0x54f61f(0xeb)](_0x40a913)||this[_0x54f61f(0xf3)](_0x40a913))[_0x54f61f(0xf7)](_0x5b43ab=>{_0x3b07f4(_0x5b43ab);});}[_0xa22a5b(0xe7)](_0x198a93){const _0x590241=_0xa22a5b,_0x55771f=_0x198a93[_0x590241(0xe5)],_0x4e867d=_0x55771f[_0x55771f[_0x590241(0xe3)]-0x1];_0x4e867d&&_0x3ecd8b(_0x4e867d)&&_0x10261f(_0x4e867d,_0x590241(0xdc),_0x590241(0x10e));}[_0xa22a5b(0x106)](_0x3aca38,_0x607ad5){const _0x3b4d36=_0xa22a5b,_0x1436a0=_0x1c323b(_0x3b4d36(0xdc),_0x3b4d36(0x10e),_0x3aca38);if(!_0x1436a0)return;const _0x39bb70=_0x51bd01(_0x1436a0)[_0x3b4d36(0xff)](0x0,-0x1),_0x48bcaa=_0x39bb70[_0x3b4d36(0xe3)];let _0x36d20c=_0x1436a0;if(_0x48bcaa>_0x607ad5){let _0x3cfb16=_0x48bcaa,_0x21005a=null;for(;_0x3cfb16>_0x607ad5&&_0x3cfb16>=0x0;)_0x3cfb16--,_0x21005a=_0x39bb70[_0x3cfb16];_0x21005a&&(_0x36d20c=_0x21005a,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x21005a,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}else{if(_0x48bcaa<_0x607ad5){let _0x358d85=_0x48bcaa,_0x914add=_0x1436a0;for(;_0x358d85<_0x607ad5;){const _0x5dcdff=_0x914add[_0x3b4d36(0xe5)][_0x3b4d36(0x108)](_0x7b725b=>_0x3ecd8b(_0x7b725b));if(0x0===_0x5dcdff[_0x3b4d36(0xe3)])break;_0x358d85++,_0x914add=_0x5dcdff[_0x5dcdff[_0x3b4d36(0xe3)]-0x1];}_0x914add&&(_0x36d20c=_0x914add,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x914add,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}}let _0x52750f=_0x36d20c;for(;_0x52750f;){for(;_0x52750f[_0x3b4d36(0xd3)];)_0x52750f=_0x52750f[_0x3b4d36(0xd3)],_0x3ecd8b(_0x52750f)&&_0x10261f(_0x52750f,_0x3b4d36(0xdc),_0x3b4d36(0x10e));_0x52750f=_0x52750f[_0x3b4d36(0xf8)];}}[_0xa22a5b(0x100)](_0x433cda){const _0x3ad879=_0xa22a5b;return Boolean(_0x3ad879(0xe8)===_0x2946a5(_0x433cda,_0x3ad879(0xd5)));}[_0xa22a5b(0xd6)](_0x3d5b9d){const _0x584166=_0xa22a5b;return Boolean((_0x2946a5(_0x3d5b9d,_0x584166(0xd5))||'')[_0x584166(0xe3)]>0x0&&_0x584166(0xe8)!==_0x2946a5(_0x3d5b9d,_0x584166(0xd5)));}[_0xa22a5b(0xeb)](_0x3c4835){const _0x4cdc2c=_0xa22a5b;return!!_0x3c4835&&Boolean(_0x382de5(_0x3c4835)&&_0x3f0e33(_0x3c4835)[_0x4cdc2c(0xd7)](/removed[\s*-]data-id="[^"]+"/));}[_0xa22a5b(0x112)](_0xfa9151){const _0xdc09a=_0xa22a5b;let _0x7e4161=_0xfa9151[_0xdc09a(0xf8)];for(;_0x7e4161;){if(_0x2946a5(_0x7e4161,_0xdc09a(0xd2)))return!0x0;_0x7e4161=_0x7e4161[_0xdc09a(0xf8)];}return!0x1;}[_0xa22a5b(0xf3)](_0x5aae87){const _0x100f5e=_0xa22a5b;return Boolean(_0x382de5(_0x5aae87)&&_0x3f0e33(_0x5aae87)[_0x100f5e(0xd7)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0xe8ab9d=_0x4457;(function(_0x5e447c,_0x5112fd){const _0x245106=_0x4457,_0x9cbb90=_0x5e447c();while(!![]){try{const _0x121d81=parseInt(_0x245106(0xe7))/0x1*(-parseInt(_0x245106(0xfb))/0x2)+parseInt(_0x245106(0x105))/0x3+parseInt(_0x245106(0x116))/0x4*(parseInt(_0x245106(0xef))/0x5)+parseInt(_0x245106(0xe3))/0x6+parseInt(_0x245106(0x129))/0x7*(-parseInt(_0x245106(0x128))/0x8)+parseInt(_0x245106(0xe6))/0x9*(parseInt(_0x245106(0x11b))/0xa)+parseInt(_0x245106(0xeb))/0xb*(parseInt(_0x245106(0x119))/0xc);if(_0x121d81===_0x5112fd)break;else _0x9cbb90['push'](_0x9cbb90['shift']());}catch(_0x5653ca){_0x9cbb90['push'](_0x9cbb90['shift']());}}}(_0x570a,0xee48d));import{ObservableMixin as _0x42c2a4,uid as _0x50c796}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x59e44a,findByAttribute as _0x24d805,getAttribute as _0x2c50d8,isComment as _0x176b9f,isTag as _0x43d485,insertElement as _0x13357b,moveElement as _0x21d76f,removeElement as _0x2275b9,replaceElement as _0x5505e3,serialize as _0x4dc70f,setAttribute as _0x52dd,clone as _0x27178a,findAllComments as _0x582f31,getParents as _0x40e20c,getNodeNestingLevel as _0x2775e0,areNodesSame as _0x161cd2,removeElementsAfter as _0x109aba}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x42c2a4(){[_0xe8ab9d(0x11c)];[_0xe8ab9d(0xf9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xe8ab9d(0xf0)]=new Set();constructor(_0x1da65a){const _0x3f6d39=_0xe8ab9d;super(),this[_0x3f6d39(0x11c)]=_0x1da65a||_0x50c796;}[_0xe8ab9d(0xf5)](_0x4e9e0c,_0x4c9d3b,_0xd9b94b){const _0x5ea1ee=_0xe8ab9d,_0x39c84a=_0x27178a(_0x4e9e0c);if(0x0===_0x4c9d3b[_0x5ea1ee(0xf4)][_0x5ea1ee(0x11e)]){const _0x483caf=[];return _0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x39c84a)[_0x5ea1ee(0xe8)](_0x444afc=>{const _0x57289f=_0x5ea1ee,_0x1b7287=this[_0x57289f(0x11c)]();_0x52dd(_0x444afc,_0x57289f(0x117),_0x1b7287),_0x483caf[_0x57289f(0xec)](_0x1b7287);}),this[_0x5ea1ee(0xf7)](_0x39c84a),{'parsedContent':_0x39c84a,'newNodeIds':_0x483caf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x11d)](_0x39c84a),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x118)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=null,this[_0x5ea1ee(0xf0)]=new Set(_0x59e44a(_0x5ea1ee(0x117),null,_0x4c9d3b)[_0x5ea1ee(0xf3)](_0x10e7e=>_0x2c50d8(_0x10e7e,_0x5ea1ee(0x117)))[_0x5ea1ee(0x110)](_0x42b43e=>!!_0x42b43e));let _0x4f87dd=-0x1,_0x32e839=!0x1;const _0x514185=_0x39c84a[_0x5ea1ee(0xf4)],_0x958b04=Array[_0x5ea1ee(0xf8)](_0x514185)[_0x5ea1ee(0x110)](_0x178b33=>!(0x3===_0x178b33[_0x5ea1ee(0x10a)]&&''===_0x4dc70f(_0x178b33)[_0x5ea1ee(0x125)]())),_0x2456e5=_0x958b04[_0x5ea1ee(0x11e)];for(let _0x26bf64=0x0;_0x26bf64<_0x2456e5;_0x26bf64++){const _0x283c91=_0x958b04[_0x26bf64],_0x283a51=_0x958b04[_0x26bf64+0x1];if(this[_0x5ea1ee(0xe5)](_0x283c91)){if(-0x1===_0x4f87dd&&(_0x4f87dd=_0x26bf64),this[_0x5ea1ee(0xfe)](_0x283c91),!this[_0x5ea1ee(0xe5)](_0x283a51)){const [_0x524b03,_0x4bba5]=this[_0x5ea1ee(0x104)](_0x283c91,_0x32e839,_0x4c9d3b);if(_0x524b03){const _0x3cfeae=Array[_0x5ea1ee(0xf8)](_0x958b04)[_0x5ea1ee(0x12a)](_0x4f87dd,_0x26bf64+0x1);this[_0x5ea1ee(0x121)](_0x524b03,_0x3cfeae,_0x4bba5),_0x4f87dd=-0x1;}}}else{if(this[_0x5ea1ee(0xe9)](_0x283c91))_0x32e839=!0x0;else{if(this[_0x5ea1ee(0x106)](_0x283c91)){const _0xf8c7bb=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));if(_0xf8c7bb&&this[_0x5ea1ee(0xf0)][_0x5ea1ee(0x101)](_0xf8c7bb)){const _0x1c5bab=_0x24d805(_0x5ea1ee(0x117),_0xf8c7bb,_0x4c9d3b);this[_0x5ea1ee(0xf2)](_0x1c5bab,_0x283c91);}if(this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0xfd)](_0xf8c7bb)){const _0x542e2a=this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x107)](_0xf8c7bb);this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x11a)](_0x542e2a,0x1);}}else{if(this[_0x5ea1ee(0x114)](_0x283c91)){const _0x131afa=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)][_0x5ea1ee(0xfd)](_0x131afa)||this[_0x5ea1ee(0x108)](_0x283c91);}}}}}for(const _0x2b9dc6 of this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]){const _0x47c32c=_0x24d805(_0x5ea1ee(0x117),_0x2b9dc6,_0x4c9d3b);if(_0x47c32c){if(_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x126)]){this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=_0x2b9dc6;const _0xc42291=_0xd9b94b[_0x5ea1ee(0x126)][_0x5ea1ee(0x127)](!0x0);_0x52dd(_0xc42291,_0x5ea1ee(0x117),_0x2b9dc6),_0x52dd(_0xc42291,_0x5ea1ee(0xf1),_0x5ea1ee(0xee)),_0x5505e3(_0x47c32c,_0xc42291);}else _0x2275b9(_0x47c32c);}}if(_0x59e44a(_0x5ea1ee(0x11f),null,_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x22641e=>{const _0x4b1663=_0x5ea1ee,_0xd135fb=_0x2c50d8(_0x22641e,_0x4b1663(0x11f)),_0x2aebdf=_0x24d805(_0x4b1663(0x117),_0xd135fb,_0x4c9d3b);_0x2aebdf&&_0x21d76f(_0x2aebdf,_0x22641e);}),_0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x4dffcc=>{const _0x2cd156=_0x5ea1ee,_0x3b0e64=this[_0x2cd156(0xed)](_0x4dffcc);_0x52dd(_0x4dffcc,_0x2cd156(0x117),_0x3b0e64),this[_0x2cd156(0xf9)][_0x2cd156(0x10f)][_0x2cd156(0xec)](_0x3b0e64);}),this[_0x5ea1ee(0xf7)](_0x4c9d3b),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x103)](_0x4c9d3b,_0xd9b94b[_0x5ea1ee(0xfa)]||0x0),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x10c)]&&this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]){let _0x2b5964=_0x24d805(_0x5ea1ee(0x117),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)],_0x4c9d3b);for(;_0x2b5964;)_0x109aba(_0x2b5964),_0x2b5964=_0x2b5964[_0x5ea1ee(0xf6)];}return{'parsedContent':_0x4c9d3b,'newNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)],'modifiedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)],'removedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]};}[_0xe8ab9d(0x121)](_0x3046ad,_0x56a2d0,_0x199d2d){const _0x2a907a=_0xe8ab9d;for(const _0x5cf4d1 of _0x56a2d0){const _0x4738a2=this[_0x2a907a(0xed)](_0x5cf4d1);_0x52dd(_0x5cf4d1,_0x2a907a(0x117),_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x10f)][_0x2a907a(0xec)](_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x113)]=_0x4738a2;}const _0x29698e=_0x2a907a(0xe4)===_0x199d2d||_0x2a907a(0x10b)===_0x199d2d?_0x56a2d0[_0x2a907a(0x12b)]():_0x56a2d0;for(const _0x4dbe2b of _0x29698e)_0x13357b(_0x3046ad,_0x4dbe2b,_0x199d2d);}[_0xe8ab9d(0xf2)](_0xfdfbfd,_0x583e04){const _0x53afca=_0xe8ab9d;if(!_0xfdfbfd)return;if(_0x161cd2(_0xfdfbfd,_0x583e04))return;const _0x2c62b8=this[_0x53afca(0xed)](_0xfdfbfd);_0x52dd(_0x583e04,_0x53afca(0x117),_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x100)][_0x53afca(0xec)](_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x113)]=_0x2c62b8,_0x5505e3(_0xfdfbfd,_0x583e04[_0x53afca(0x127)](!0x0));}[_0xe8ab9d(0x104)](_0x1cc39a,_0x33e2de,_0xf1f4f7){const _0x3f43f2=_0xe8ab9d,_0x4781e8=this[_0x3f43f2(0xff)](_0x1cc39a,!0x1);if(_0x4781e8){const _0x94e7c9=this[_0x3f43f2(0x123)](_0x4781e8),_0x4ebc30=_0x24d805(_0x3f43f2(0x117),_0x94e7c9,_0xf1f4f7);if(_0x4ebc30)return[_0x4ebc30,_0x3f43f2(0x10b)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x94e7c9);}const _0x4d8e7c=this[_0x3f43f2(0x10e)](_0x1cc39a,!0x1);if(_0x4d8e7c){const _0x32a20d=this[_0x3f43f2(0x123)](_0x4d8e7c),_0x50544d=_0x24d805(_0x3f43f2(0x117),_0x32a20d,_0xf1f4f7);if(_0x50544d)return[_0x50544d,_0x3f43f2(0x122)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x32a20d);}return _0x33e2de?_0x1cc39a[_0x3f43f2(0xea)]?this[_0x3f43f2(0xfc)](_0x1cc39a,_0xf1f4f7):[_0xf1f4f7[_0x3f43f2(0xf4)][_0xf1f4f7[_0x3f43f2(0xf4)][_0x3f43f2(0x11e)]-0x1],_0x3f43f2(0x10b)]:[_0xf1f4f7[_0x3f43f2(0xf4)][0x0],_0x3f43f2(0x122)];}[_0xe8ab9d(0xfc)](_0x220331,_0x2aac8e){const _0x102821=_0xe8ab9d,_0x2a0605=[],_0x1e61e3=this[_0x102821(0xff)](_0x220331,!0x0);if(_0x1e61e3){const _0x3aa496=this[_0x102821(0x123)](_0x1e61e3),_0xeb25ce=_0x24d805(_0x102821(0x117),_0x3aa496,_0x2aac8e);_0xeb25ce&&_0x2a0605[_0x102821(0xec)]([_0xeb25ce,_0x102821(0x10b)]);}const _0x56eabb=this[_0x102821(0x10e)](_0x220331,!0x0);if(_0x56eabb){const _0x25ba44=this[_0x102821(0x123)](_0x56eabb),_0x586810=_0x24d805(_0x102821(0x117),_0x25ba44,_0x2aac8e);_0x586810&&_0x2a0605[_0x102821(0xec)]([_0x586810,_0x102821(0x122)]);}if(_0x2a0605[_0x102821(0x11e)]>0x1)return _0x2775e0(_0x2a0605[0x0][0x0])<=_0x2775e0(_0x2a0605[0x1][0x0])?_0x2a0605[0x0]:_0x2a0605[0x1];return 0x1===_0x2a0605[_0x102821(0x11e)]?_0x2a0605[0x0]:[_0x2aac8e[_0x102821(0x120)],_0x102821(0x10b)];}[_0xe8ab9d(0x10e)](_0x1f09e0,_0x521fea){const _0x51ef59=_0xe8ab9d;let _0x187103=_0x1f09e0[_0x51ef59(0xea)],_0x19fe93=null,_0x590b27=!0x1;for(;_0x187103;){if(_0x176b9f(_0x187103)){if(this[_0x51ef59(0x114)](_0x187103)&&(_0x19fe93=_0x187103),this[_0x51ef59(0xe9)](_0x187103)&&_0x521fea&&!_0x590b27){_0x590b27=!0x0,_0x187103=_0x187103[_0x51ef59(0xea)];continue;}break;}const _0x18b367=_0x2c50d8(_0x187103,_0x51ef59(0x117));if(_0x18b367&&_0x51ef59(0x112)!==_0x18b367&&this[_0x51ef59(0xf0)][_0x51ef59(0x101)](_0x18b367)){_0x19fe93=_0x187103;break;}_0x187103=_0x187103[_0x51ef59(0xea)];}return _0x19fe93;}[_0xe8ab9d(0xff)](_0x421726,_0x3badbd){const _0x216741=_0xe8ab9d;let _0x4d8098=_0x421726[_0x216741(0x102)],_0x10c943=null,_0x3d7a88=!0x1;for(;_0x4d8098;){if(_0x176b9f(_0x4d8098)){if(this[_0x216741(0x114)](_0x4d8098)&&(_0x10c943=_0x4d8098),this[_0x216741(0xe9)](_0x4d8098)&&_0x3badbd&&!_0x3d7a88){_0x3d7a88=!0x0,_0x4d8098=_0x4d8098[_0x216741(0x102)];continue;}break;}const _0x5629d0=_0x2c50d8(_0x4d8098,_0x216741(0x117));if(_0x5629d0&&_0x216741(0x112)!==_0x5629d0&&this[_0x216741(0xf0)][_0x216741(0x101)](_0x5629d0)){_0x10c943=_0x4d8098;break;}_0x4d8098=_0x4d8098[_0x216741(0x102)];}return _0x10c943;}[_0xe8ab9d(0xfe)](_0x4986da){const _0x4c41d0=_0xe8ab9d;_0x43d485(_0x4986da)&&_0x59e44a(_0x4c41d0(0x117),null,_0x4986da)[_0x4c41d0(0xe8)](_0x49fc98=>{const _0x264999=_0x4c41d0;if(this[_0x264999(0x106)](_0x49fc98)&&!this[_0x264999(0x109)](_0x49fc98)){const _0x56821d=_0x2c50d8(_0x49fc98,_0x264999(0x117));_0x52dd(_0x49fc98,_0x264999(0x11f),_0x56821d),_0x52dd(_0x49fc98,_0x264999(0x117),null);}});}[_0xe8ab9d(0x123)](_0x21a37d){const _0x4b622f=_0xe8ab9d;if(!_0x21a37d)return null;if(_0x43d485(_0x21a37d))return _0x2c50d8(_0x21a37d,_0x4b622f(0x117));if(_0x176b9f(_0x21a37d)){const _0x3bc405=_0x4dc70f(_0x21a37d)[_0x4b622f(0x111)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3bc405&&_0x3bc405[0x1])return _0x3bc405[0x1];}return null;}[_0xe8ab9d(0x108)](_0x488077){const _0x386dc1=_0xe8ab9d;if(_0x176b9f(_0x488077)){const _0xe098d3=_0x4dc70f(_0x488077)[_0x386dc1(0x111)](/removed[\s*-]data-id="([^"]+)"/);_0xe098d3&&_0xe098d3[0x1]&&this[_0x386dc1(0xf9)][_0x386dc1(0x115)][_0x386dc1(0xec)](_0xe098d3[0x1]);}}[_0xe8ab9d(0xed)](_0x2c5308){const _0x1b31ed=_0xe8ab9d;return this[_0x1b31ed(0x106)](_0x2c5308)?_0x2c50d8(_0x2c5308,_0x1b31ed(0x117)):this[_0x1b31ed(0x11c)]();}[_0xe8ab9d(0xf7)](_0x1e4085){const _0x19f4d6=_0xe8ab9d;_0x582f31(_0x1e4085)[_0x19f4d6(0x110)](_0x231944=>this[_0x19f4d6(0x114)](_0x231944)||this[_0x19f4d6(0xe9)](_0x231944))[_0x19f4d6(0xe8)](_0x39d46f=>{_0x2275b9(_0x39d46f);});}[_0xe8ab9d(0x11d)](_0x4e6166){const _0x57b6b5=_0xe8ab9d,_0x79b4f3=_0x4e6166[_0x57b6b5(0xf4)],_0x520e35=_0x79b4f3[_0x79b4f3[_0x57b6b5(0x11e)]-0x1];_0x520e35&&_0x43d485(_0x520e35)&&_0x52dd(_0x520e35,_0x57b6b5(0x10d),_0x57b6b5(0xee));}[_0xe8ab9d(0x103)](_0x3908a7,_0x44a836){const _0x55c4a7=_0xe8ab9d,_0x294370=_0x24d805(_0x55c4a7(0x10d),_0x55c4a7(0xee),_0x3908a7);if(!_0x294370)return;const _0x4efd85=_0x40e20c(_0x294370)[_0x55c4a7(0x12a)](0x0,-0x1),_0x3d8aa0=_0x4efd85[_0x55c4a7(0x11e)];let _0x1cd126=_0x294370;if(_0x3d8aa0>_0x44a836){let _0x314260=_0x3d8aa0,_0x5554ac=null;for(;_0x314260>_0x44a836&&_0x314260>=0x0;)_0x314260--,_0x5554ac=_0x4efd85[_0x314260];_0x5554ac&&(_0x1cd126=_0x5554ac,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x5554ac,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}else{if(_0x3d8aa0<_0x44a836){let _0x4fe444=_0x3d8aa0,_0x2de79b=_0x294370;for(;_0x4fe444<_0x44a836;){const _0x94afc9=_0x2de79b[_0x55c4a7(0xf4)][_0x55c4a7(0x110)](_0x1da654=>_0x43d485(_0x1da654));if(0x0===_0x94afc9[_0x55c4a7(0x11e)])break;_0x4fe444++,_0x2de79b=_0x94afc9[_0x94afc9[_0x55c4a7(0x11e)]-0x1];}_0x2de79b&&(_0x1cd126=_0x2de79b,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x2de79b,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}}let _0x122dd5=_0x1cd126;for(;_0x122dd5;){for(;_0x122dd5[_0x55c4a7(0xea)];)_0x122dd5=_0x122dd5[_0x55c4a7(0xea)],_0x43d485(_0x122dd5)&&_0x52dd(_0x122dd5,_0x55c4a7(0x10d),_0x55c4a7(0xee));_0x122dd5=_0x122dd5[_0x55c4a7(0xf6)];}}[_0xe8ab9d(0xe5)](_0x5720f2){const _0x523723=_0xe8ab9d;return Boolean(_0x523723(0x112)===_0x2c50d8(_0x5720f2,_0x523723(0x117)));}[_0xe8ab9d(0x106)](_0x3688c0){const _0xe52ae=_0xe8ab9d;return Boolean((_0x2c50d8(_0x3688c0,_0xe52ae(0x117))||'')[_0xe52ae(0x11e)]>0x0&&_0xe52ae(0x112)!==_0x2c50d8(_0x3688c0,_0xe52ae(0x117)));}[_0xe8ab9d(0x114)](_0x3f8ae3){const _0x58db0d=_0xe8ab9d;return!!_0x3f8ae3&&Boolean(_0x176b9f(_0x3f8ae3)&&_0x4dc70f(_0x3f8ae3)[_0x58db0d(0x111)](/removed[\s*-]data-id="[^"]+"/));}[_0xe8ab9d(0x109)](_0x50e216){const _0xc1d1bb=_0xe8ab9d;let _0xb9e2a7=_0x50e216[_0xc1d1bb(0xf6)];for(;_0xb9e2a7;){if(_0x2c50d8(_0xb9e2a7,_0xc1d1bb(0x11f)))return!0x0;_0xb9e2a7=_0xb9e2a7[_0xc1d1bb(0xf6)];}return!0x1;}[_0xe8ab9d(0xe9)](_0x2de973){const _0x5cc87d=_0xe8ab9d;return Boolean(_0x176b9f(_0x2de973)&&_0x4dc70f(_0x2de973)[_0x5cc87d(0x111)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x4457(_0x3bc497,_0x3f305f){const _0x570ac8=_0x570a();return _0x4457=function(_0x445757,_0x11eab3){_0x445757=_0x445757-0xe3;let _0x3e2b02=_0x570ac8[_0x445757];return _0x3e2b02;},_0x4457(_0x3bc497,_0x3f305f);}function _0x570a(){const _0x3e1387=['lastChild','_insertNodes','beforebegin','_getNodeDataId','markUnstableElements','trim','replaceRemovedWith','cloneNode','13107760IbmZjN','7zjaMzu','slice','reverse','8072154WbEiho','afterbegin','_isNewNode','233919MWnnvi','1jlEeDs','forEach','_isExistingContentComment','nextSibling','1471811xvWBzk','push','_getUid','true','1149730hiILhJ','_existingDataIds','data-removed','_replaceNode','map','childNodes','merge','parentNode','_removeSpecialComments','from','_touchedNodesState','markUnstableElementsDepth','1680412XzQpCG','_findFallbackReferenceNode','includes','_markWrappedElements','_findPrevElementWithDataId','modifiedIds','has','previousSibling','_markUnstableElements','_findReferenceNode','3475191hsQbil','_isExistingNode','indexOf','_storeDeletedElementIds','_hasWrappedParent','nodeType','afterend','cutAfterLastChange','data-unstable','_findNextElementWithDataId','newIds','filter','match','new-element','lastTouchedId','_isDelNode','removedIds','4QnktCC','data-id','invalidIds','60zsvLAo','splice','20soMrro','_generateUid','_markLastTagElementUnstable','length','data-wrapped-id'];_0x570a=function(){return _0x3e1387;};return _0x570a();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x64a5ec=_0x51e2;(function(_0x354d25,_0x5d6167){const _0x246c99=_0x51e2,_0x519747=_0x354d25();while(!![]){try{const _0x2e87a6=-parseInt(_0x246c99(0x16d))/0x1*(-parseInt(_0x246c99(0x16b))/0x2)+parseInt(_0x246c99(0x163))/0x3*(-parseInt(_0x246c99(0x177))/0x4)+-parseInt(_0x246c99(0x175))/0x5*(-parseInt(_0x246c99(0x173))/0x6)+-parseInt(_0x246c99(0x165))/0x7*(-parseInt(_0x246c99(0x167))/0x8)+parseInt(_0x246c99(0x166))/0x9+parseInt(_0x246c99(0x174))/0xa*(parseInt(_0x246c99(0x171))/0xb)+-parseInt(_0x246c99(0x16f))/0xc;if(_0x2e87a6===_0x5d6167)break;else _0x519747['push'](_0x519747['shift']());}catch(_0x247945){_0x519747['push'](_0x519747['shift']());}}}(_0x294d,0x343df));function _0x51e2(_0x8d61b7,_0x5096f6){const _0x294dc0=_0x294d();return _0x51e2=function(_0x51e2c6,_0x1e10b0){_0x51e2c6=_0x51e2c6-0x163;let _0x3e36d9=_0x294dc0[_0x51e2c6];return _0x3e36d9;},_0x51e2(_0x8d61b7,_0x5096f6);}import{ObservableMixin as _0x47ca7d}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f3919}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x7486a6}from'../utils/htmlparser.js';function _0x294d(){const _0x4dd219=['460SmTzyD','_parseHTML','52NavLgg','78114JBkFyi','children','1799dEnuAz','1041480afSQYh','11496cHLdMI','<dummy>','convertMarkdownToHTML','_m2html','34978Xvpgfl','parse','9ZJEvkB','parseAndNormalizeHTML','7899216vtprrI','replace','2027377MzMhjc','</dummy>','25044uQbYgx','10UICPZz'];_0x294d=function(){return _0x4dd219;};return _0x294d();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x47ca7d(){[_0x64a5ec(0x16a)];constructor(){const _0x333d57=_0x64a5ec;super(),this[_0x333d57(0x16a)]=new _0x2f3919();}[_0x64a5ec(0x169)](_0x4b7486){const _0x2f0433=_0x64a5ec,_0x5774b0=this[_0x2f0433(0x16a)][_0x2f0433(0x16c)](_0x4b7486);return this[_0x2f0433(0x16e)](_0x5774b0);}[_0x64a5ec(0x16e)](_0x2c6616){const _0x39c9f8=_0x64a5ec;return this[_0x39c9f8(0x176)](_0x2c6616);}[_0x64a5ec(0x176)](_0x557363){const _0x2402d8=_0x64a5ec,_0x1e416b=_0x557363[_0x2402d8(0x170)](/^\t+/gm,'\x20')[_0x2402d8(0x170)](/\n*/g,'')[_0x2402d8(0x170)](/\s+/g,'\x20')[_0x2402d8(0x170)](/<[^>]*?$/g,''),_0x10403f=_0x7486a6(_0x2402d8(0x168)+_0x1e416b+_0x2402d8(0x172));return _0x10403f[_0x2402d8(0x164)]=_0x10403f[_0x2402d8(0x164)][0x0][_0x2402d8(0x164)],_0x10403f;}}
23
+ const _0x533c10=_0x5ac2;(function(_0x448c84,_0x2256c9){const _0x35e5a4=_0x5ac2,_0x4b63d5=_0x448c84();while(!![]){try{const _0x4e0ff3=-parseInt(_0x35e5a4(0x8c))/0x1*(parseInt(_0x35e5a4(0x7c))/0x2)+parseInt(_0x35e5a4(0x82))/0x3*(parseInt(_0x35e5a4(0x7f))/0x4)+parseInt(_0x35e5a4(0x85))/0x5*(-parseInt(_0x35e5a4(0x87))/0x6)+parseInt(_0x35e5a4(0x7a))/0x7+parseInt(_0x35e5a4(0x7e))/0x8+parseInt(_0x35e5a4(0x83))/0x9+-parseInt(_0x35e5a4(0x80))/0xa;if(_0x4e0ff3===_0x2256c9)break;else _0x4b63d5['push'](_0x4b63d5['shift']());}catch(_0x5b2da){_0x4b63d5['push'](_0x4b63d5['shift']());}}}(_0x1563,0x65af8));import{ObservableMixin as _0x313bce}from'ckeditor5/src/utils.js';function _0x1563(){const _0x3172ba=['331splVGX','3823386UOuVzb','</dummy>','2084MHJJFy','parseAndNormalizeHTML','2288456uiaXgu','2090724oOgssb','9817670YNaPHG','children','3tJgusC','6523002zcLOEP','<dummy>','25115YeiRws','replace','402sVApBK','_parseHTML','_m2html','convertMarkdownToHTML','parse'];_0x1563=function(){return _0x3172ba;};return _0x1563();}import{MarkdownGfmMdToHtml as _0x2d6879}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x463498}from'../utils/htmlparser.js';function _0x5ac2(_0x3c7e55,_0x5421cc){const _0x15638e=_0x1563();return _0x5ac2=function(_0x5ac243,_0x293dfa){_0x5ac243=_0x5ac243-0x7a;let _0x382962=_0x15638e[_0x5ac243];return _0x382962;},_0x5ac2(_0x3c7e55,_0x5421cc);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x313bce(){[_0x533c10(0x89)];constructor(){const _0x4390a9=_0x533c10;super(),this[_0x4390a9(0x89)]=new _0x2d6879();}[_0x533c10(0x8a)](_0x47ea9f){const _0x51c945=_0x533c10,_0x5b75f1=this[_0x51c945(0x89)][_0x51c945(0x8b)](_0x47ea9f);return this[_0x51c945(0x7d)](_0x5b75f1);}[_0x533c10(0x7d)](_0x26a2fb){const _0x3bca8c=_0x533c10;return this[_0x3bca8c(0x88)](_0x26a2fb);}[_0x533c10(0x88)](_0x51b7f2){const _0x413896=_0x533c10,_0x3091fa=_0x51b7f2[_0x413896(0x86)](/^\t+/gm,'\x20')[_0x413896(0x86)](/\n*/g,'')[_0x413896(0x86)](/\s+/g,'\x20')[_0x413896(0x86)](/<[^>]*?$/g,''),_0x4220a1=_0x463498(_0x413896(0x84)+_0x3091fa+_0x413896(0x7b));return _0x4220a1[_0x413896(0x81)]=_0x4220a1[_0x413896(0x81)][0x0][_0x413896(0x81)],_0x4220a1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x9970e5,_0x2a6955){var _0x507e28=_0x1411,_0x2c589a=_0x9970e5();while(!![]){try{var _0x3082b1=-parseInt(_0x507e28(0x1e1))/0x1+-parseInt(_0x507e28(0x1da))/0x2+-parseInt(_0x507e28(0x1e5))/0x3*(parseInt(_0x507e28(0x1dc))/0x4)+-parseInt(_0x507e28(0x1df))/0x5*(parseInt(_0x507e28(0x1d9))/0x6)+-parseInt(_0x507e28(0x1de))/0x7+parseInt(_0x507e28(0x1e2))/0x8*(-parseInt(_0x507e28(0x1e4))/0x9)+parseInt(_0x507e28(0x1e3))/0xa;if(_0x3082b1===_0x2a6955)break;else _0x2c589a['push'](_0x2c589a['shift']());}catch(_0x266208){_0x2c589a['push'](_0x2c589a['shift']());}}}(_0x3457,0x89fa8));import{View as _0x469114}from'ckeditor5/src/ui.js';import{getTranslation as _0x5decfe}from'../../aicore/utils/common-translations.js';function _0x1411(_0x2200ba,_0x489ac1){var _0x345706=_0x3457();return _0x1411=function(_0x1411d5,_0x253e33){_0x1411d5=_0x1411d5-0x1d8;var _0x322449=_0x345706[_0x1411d5];return _0x322449;},_0x1411(_0x2200ba,_0x489ac1);}export class AIDisclaimerView extends _0x469114{constructor(_0xf3ae4f){var _0x173313=_0x1411;super(_0xf3ae4f),this[_0x173313(0x1d8)]({'tag':_0x173313(0x1db),'attributes':{'class':['ck',_0x173313(0x1e0)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x173313(0x1e6)]},'children':[{'text':_0x5decfe(_0xf3ae4f,_0x173313(0x1dd))}]}]});}}function _0x3457(){var _0x3c2dd4=['10028YXKbRS','AI_DISCLAIMER_TEXT','7696710JuJZAt','180ChZeQf','ck-ai-disclaimer','161929JyClBP','16HEeSUh','44992460bkOvbA','2515968SAyreg','1203dTahlT','ck-ai-disclaimer__content','setTemplate','128328eXYACu','676496jouXYf','div'];_0x3457=function(){return _0x3c2dd4;};return _0x3457();}
23
+ (function(_0x26178e,_0x37deca){var _0x3cf6ef=_0xaeac,_0xf34c86=_0x26178e();while(!![]){try{var _0x292071=-parseInt(_0x3cf6ef(0xdd))/0x1*(-parseInt(_0x3cf6ef(0xea))/0x2)+parseInt(_0x3cf6ef(0xe4))/0x3+-parseInt(_0x3cf6ef(0xdf))/0x4+-parseInt(_0x3cf6ef(0xeb))/0x5*(parseInt(_0x3cf6ef(0xe2))/0x6)+-parseInt(_0x3cf6ef(0xe9))/0x7*(parseInt(_0x3cf6ef(0xe1))/0x8)+parseInt(_0x3cf6ef(0xe7))/0x9+parseInt(_0x3cf6ef(0xe0))/0xa*(parseInt(_0x3cf6ef(0xde))/0xb);if(_0x292071===_0x37deca)break;else _0xf34c86['push'](_0xf34c86['shift']());}catch(_0x183820){_0xf34c86['push'](_0xf34c86['shift']());}}}(_0x5765,0x2e7f5));import{View as _0x3923d1}from'ckeditor5/src/ui.js';import{getTranslation as _0x2d1ec6}from'../../aicore/utils/common-translations.js';function _0x5765(){var _0x399483=['2516576WVNvGu','42NkVLYS','ck-ai-disclaimer','325749UAiZGT','AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content','199062hpgusK','div','7ZIsGAj','854BNuggr','5040szbFXl','setTemplate','277OycUfY','4162862MDEMaY','461364TMLZAz','10sIXdzp'];_0x5765=function(){return _0x399483;};return _0x5765();}function _0xaeac(_0x49b0e8,_0x5106b2){var _0x5765f5=_0x5765();return _0xaeac=function(_0xaeacb5,_0x4b0b56){_0xaeacb5=_0xaeacb5-0xdc;var _0x276391=_0x5765f5[_0xaeacb5];return _0x276391;},_0xaeac(_0x49b0e8,_0x5106b2);}export class AIDisclaimerView extends _0x3923d1{constructor(_0x23a44d){var _0x76a9fc=_0xaeac;super(_0x23a44d),this[_0x76a9fc(0xdc)]({'tag':_0x76a9fc(0xe8),'attributes':{'class':['ck',_0x76a9fc(0xe3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x76a9fc(0xe6)]},'children':[{'text':_0x2d1ec6(_0x23a44d,_0x76a9fc(0xe5))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406ca0=_0x2d99;(function(_0x21b170,_0x1f12c7){const _0x4d479d=_0x2d99,_0x10bafa=_0x21b170();while(!![]){try{const _0x5b41e8=-parseInt(_0x4d479d(0x9e))/0x1+parseInt(_0x4d479d(0xa3))/0x2+parseInt(_0x4d479d(0x96))/0x3+parseInt(_0x4d479d(0x9c))/0x4*(parseInt(_0x4d479d(0x91))/0x5)+-parseInt(_0x4d479d(0xb1))/0x6+-parseInt(_0x4d479d(0xaf))/0x7+parseInt(_0x4d479d(0xa2))/0x8;if(_0x5b41e8===_0x1f12c7)break;else _0x10bafa['push'](_0x10bafa['shift']());}catch(_0xcabb30){_0x10bafa['push'](_0x10bafa['shift']());}}}(_0x6b3c,0xd788e));import{View as _0x2967a0}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x2967a0{constructor(_0x104903,_0x5dcc21){const _0x1964f2=_0x2d99;super(_0x104903),this[_0x1964f2(0xac)]({'tag':_0x1964f2(0xb4),'attributes':{'class':['ck',_0x1964f2(0xa8)]},'children':this[_0x1964f2(0x99)](_0x5dcc21)});}[_0x406ca0(0x99)](_0x3e948b){const _0x3373ef=_0x406ca0,_0x41a2ad=['ck',_0x3373ef(0xab)];return _0x3e948b[_0x3373ef(0x8f)](_0x544917=>{const _0x2529ae=_0x3373ef;let _0x5c61a3='';switch(_0x544917[_0x2529ae(0x90)][_0x2529ae(0xaa)]){case _0x2529ae(0xb2):_0x5c61a3=_0x2529ae(0x98);break;case _0x2529ae(0x9b):_0x5c61a3=_0x2529ae(0x95);break;case _0x2529ae(0xa6):_0x5c61a3=_0x2529ae(0x94);}return{'tag':_0x544917[_0x2529ae(0xa7)],'attributes':{'class':[..._0x41a2ad,_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]?_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]:''],'style':_0x2529ae(0xa0)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa9)]+_0x2529ae(0x97)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa5)]+';'+_0x5c61a3}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xad),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x9a),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0x92),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}}],'aiHistory':ta(0x5,_0x406ca0(0xa4),_0x406ca0(0x9d),_0x406ca0(0xb2)),'aiChatResources':ta(0x8,_0x406ca0(0xa4),_0x406ca0(0xae),_0x406ca0(0xb2)),'aiReviewChecks':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}}]};function _0x6b3c(){const _0x2fb2b4=['fill','div','40px','map','attributes','50tKuicd','140px','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1447095NcwXzr',';\x20height:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','_createSkeletonItems','150px','center','235228RzlkkV','44px','816617WALjAb','class','width:\x20','88px','8253592eDfwSv','501396BmyRTs','100%','height','left','tag','ck-ai-skeleton','width','align','ck-ai-skeleton__item','setTemplate','72px','24px','2188053YuTZXB','250px','2044836fFGmTk','right'];_0x6b3c=function(){return _0x2fb2b4;};return _0x6b3c();}function _0x2d99(_0x316906,_0x1c5386){const _0x6b3c4=_0x6b3c();return _0x2d99=function(_0x2d9925,_0x636df2){_0x2d9925=_0x2d9925-0x8f;let _0x3718ec=_0x6b3c4[_0x2d9925];return _0x3718ec;},_0x2d99(_0x316906,_0x1c5386);}function ta(_0x4b1f33,_0x5c51d8,_0x37f27a,_0x3935ad){const _0x89540d=_0x406ca0;return new Array(_0x4b1f33)[_0x89540d(0xb3)](null)[_0x89540d(0x8f)](()=>({'tag':_0x89540d(0xb4),'attributes':{'width':_0x5c51d8,'height':_0x37f27a,'align':_0x3935ad}}));}
23
+ const _0x111a72=_0x3dab;function _0x4c00(){const _0x37f4e7=['height','ck-ai-skeleton','949554TLsggj','44px','fill','attributes','140px','7228151vhQuPS','width:\x20','24px','tag','150px','align','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','40px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','center','class','200CMZGSn','setTemplate','250px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','div','72px','_createSkeletonItems','220mKFgir','842720VJuQOl','right','88px','46041nAMDej',';\x20height:\x20','ck-ai-skeleton__item','1909045ZeXPnC','100%','left','690466jscerI','width','59058mnYnyW','map'];_0x4c00=function(){return _0x37f4e7;};return _0x4c00();}function _0x3dab(_0x8f29ac,_0xa2b0fc){const _0x4c0033=_0x4c00();return _0x3dab=function(_0x3dab53,_0x1f29f5){_0x3dab53=_0x3dab53-0x113;let _0x5f0e64=_0x4c0033[_0x3dab53];return _0x5f0e64;},_0x3dab(_0x8f29ac,_0xa2b0fc);}(function(_0x33cd36,_0x2033b1){const _0x6f0f98=_0x3dab,_0x252113=_0x33cd36();while(!![]){try{const _0x2c8af9=parseInt(_0x6f0f98(0x138))/0x1+-parseInt(_0x6f0f98(0x12f))/0x2+parseInt(_0x6f0f98(0x132))/0x3*(-parseInt(_0x6f0f98(0x12e))/0x4)+-parseInt(_0x6f0f98(0x135))/0x5+-parseInt(_0x6f0f98(0x13a))/0x6+-parseInt(_0x6f0f98(0x11b))/0x7+parseInt(_0x6f0f98(0x127))/0x8*(parseInt(_0x6f0f98(0x116))/0x9);if(_0x2c8af9===_0x2033b1)break;else _0x252113['push'](_0x252113['shift']());}catch(_0x4c2580){_0x252113['push'](_0x252113['shift']());}}}(_0x4c00,0x9bdda));import{View as _0x314925}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x314925{constructor(_0x39a46c,_0x615045){const _0x660bbe=_0x3dab;super(_0x39a46c),this[_0x660bbe(0x128)]({'tag':_0x660bbe(0x12b),'attributes':{'class':['ck',_0x660bbe(0x115)]},'children':this[_0x660bbe(0x12d)](_0x615045)});}[_0x111a72(0x12d)](_0x4011e6){const _0x27bd73=_0x111a72,_0x1f515b=['ck',_0x27bd73(0x134)];return _0x4011e6[_0x27bd73(0x113)](_0x36013c=>{const _0x38a445=_0x27bd73;let _0x4386b1='';switch(_0x36013c[_0x38a445(0x119)][_0x38a445(0x120)]){case _0x38a445(0x130):_0x4386b1=_0x38a445(0x12a);break;case _0x38a445(0x125):_0x4386b1=_0x38a445(0x124);break;case _0x38a445(0x137):_0x4386b1=_0x38a445(0x122);}return{'tag':_0x36013c[_0x38a445(0x11e)],'attributes':{'class':[..._0x1f515b,_0x36013c[_0x38a445(0x119)][_0x38a445(0x126)]?_0x36013c[_0x38a445(0x119)][_0x38a445(0x126)]:''],'style':_0x38a445(0x11c)+_0x36013c[_0x38a445(0x119)][_0x38a445(0x139)]+_0x38a445(0x133)+_0x36013c[_0x38a445(0x119)][_0x38a445(0x114)]+';'+_0x4386b1}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x12c),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x129),'height':_0x111a72(0x123),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x131),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x11f),'height':_0x111a72(0x123),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x11a),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x129),'height':_0x111a72(0x123),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x131),'align':_0x111a72(0x130)}}],'aiHistory':ta(0x5,_0x111a72(0x136),_0x111a72(0x117),_0x111a72(0x130)),'aiChatResources':ta(0x8,_0x111a72(0x136),_0x111a72(0x11d),_0x111a72(0x130)),'aiReviewChecks':[{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x121),'height':_0x111a72(0x11d),'align':_0x111a72(0x137)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x11d),'align':_0x111a72(0x137)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x121),'height':_0x111a72(0x11d),'align':_0x111a72(0x137)}}]};function ta(_0x33ac0f,_0x37e537,_0x1ead43,_0x41f2de){const _0x348a2c=_0x111a72;return new Array(_0x33ac0f)[_0x348a2c(0x118)](null)[_0x348a2c(0x113)](()=>({'tag':_0x348a2c(0x12b),'attributes':{'width':_0x37e537,'height':_0x1ead43,'align':_0x41f2de}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x44b3(_0x2314c5,_0x41d668){const _0x509cdb=_0x509c();return _0x44b3=function(_0x44b3eb,_0x17abb9){_0x44b3eb=_0x44b3eb-0x19a;let _0xcae72c=_0x509cdb[_0x44b3eb];return _0xcae72c;},_0x44b3(_0x2314c5,_0x41d668);}(function(_0x393138,_0x54da2d){const _0x4aa19f=_0x44b3,_0x3bcaab=_0x393138();while(!![]){try{const _0xc5de45=-parseInt(_0x4aa19f(0x1a6))/0x1*(-parseInt(_0x4aa19f(0x19a))/0x2)+parseInt(_0x4aa19f(0x1a2))/0x3*(-parseInt(_0x4aa19f(0x1a8))/0x4)+parseInt(_0x4aa19f(0x19e))/0x5*(-parseInt(_0x4aa19f(0x19b))/0x6)+parseInt(_0x4aa19f(0x1a7))/0x7*(parseInt(_0x4aa19f(0x1a9))/0x8)+-parseInt(_0x4aa19f(0x19f))/0x9+-parseInt(_0x4aa19f(0x19c))/0xa*(parseInt(_0x4aa19f(0x1a0))/0xb)+parseInt(_0x4aa19f(0x1a5))/0xc;if(_0xc5de45===_0x54da2d)break;else _0x3bcaab['push'](_0x3bcaab['shift']());}catch(_0x5cb9a2){_0x3bcaab['push'](_0x3bcaab['shift']());}}}(_0x509c,0xb7e20));import{SpinnerView as _0x3ba110}from'ckeditor5/src/ui.js';function _0x509c(){const _0xf997cf=['20907804TEaopL','1OGgrgt','126UYrrsc','106844wUXVSA','159096HeJPyR','434046glHBwB','207168Nndoiz','6454010ZJVBLF','extendTemplate','110DMunJF','951147kpJoHD','11ojWoDM','ck-ai-spinner','6UyJRhL','span','ck-ai-spinner_'];_0x509c=function(){return _0xf997cf;};return _0x509c();}export class AISpinnerView extends _0x3ba110{constructor(_0x48efc9=void 0x0){const _0xf55904=_0x44b3;super();const _0x385012=_0x48efc9?_0xf55904(0x1a4)+_0x48efc9:'';this[_0xf55904(0x19d)]({'tag':_0xf55904(0x1a3),'attributes':{'class':[_0xf55904(0x1a1),_0x385012]}});}}
23
+ (function(_0x2de583,_0x41e187){const _0x4c9462=_0x9e13,_0x2db3ce=_0x2de583();while(!![]){try{const _0x1cf155=-parseInt(_0x4c9462(0x18f))/0x1*(-parseInt(_0x4c9462(0x190))/0x2)+-parseInt(_0x4c9462(0x18c))/0x3*(parseInt(_0x4c9462(0x18d))/0x4)+-parseInt(_0x4c9462(0x189))/0x5+-parseInt(_0x4c9462(0x18a))/0x6*(parseInt(_0x4c9462(0x188))/0x7)+-parseInt(_0x4c9462(0x194))/0x8+parseInt(_0x4c9462(0x191))/0x9*(-parseInt(_0x4c9462(0x195))/0xa)+-parseInt(_0x4c9462(0x192))/0xb*(-parseInt(_0x4c9462(0x187))/0xc);if(_0x1cf155===_0x41e187)break;else _0x2db3ce['push'](_0x2db3ce['shift']());}catch(_0x12d280){_0x2db3ce['push'](_0x2db3ce['shift']());}}}(_0xe632,0xba91c));function _0x9e13(_0x183eaf,_0x2914d4){const _0xe632a7=_0xe632();return _0x9e13=function(_0x9e137b,_0x244485){_0x9e137b=_0x9e137b-0x186;let _0x363aaa=_0xe632a7[_0x9e137b];return _0x363aaa;},_0x9e13(_0x183eaf,_0x2914d4);}function _0xe632(){const _0x28629f=['ck-ai-spinner','6871ZCWQup','230yyKUqY','216RgtOTy','11fPZskw','ck-ai-spinner_','8608280IYQXMx','227930qhXOhI','span','49570956MWDkXw','20447psAjzp','3910205BrnnXC','2262lUvmuA','extendTemplate','6399pCzSzU','1220WGowde'];_0xe632=function(){return _0x28629f;};return _0xe632();}import{SpinnerView as _0x4f78c5}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x4f78c5{constructor(_0x433d2a=void 0x0){const _0x1a93ac=_0x9e13;super();const _0x3d4166=_0x433d2a?_0x1a93ac(0x193)+_0x433d2a:'';this[_0x1a93ac(0x18b)]({'tag':_0x1a93ac(0x186),'attributes':{'class':[_0x1a93ac(0x18e),_0x3d4166]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x302d(){const _0x4c5548=['length','isLoading','showCopy','396639aIsuST','full','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','ck-ai-mini-toolbar','execute','class','bind','showDislike','fire','22EbTKLx','_setupRatingButtons','AI_MINI_TOOLBAR_LIKE','add','set','locale','isEnabled','showLike','14497HykkaB','53945GAyNlA','4664BAXHuA','364VktlZa','likeButton','like','_setupCopyButton','5TnlrWZ','ck-ai-mini-toolbar-copy-button__check-mark','AI_MINI_TOOLBAR_DISLIKE','showChangesButton','AI_MINI_TOOLBAR_COPY','142166mOThdA','dislikeButton','16227NJpZnh','10121124NYasQQ','_setupShowChangesButton','7970OwUVOP','8958672ICAEmi','extendTemplate','isOn','addMany','copyButton','customView','dislike','children','items','toggleShowChanges','_config','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button'];_0x302d=function(){return _0x4c5548;};return _0x302d();}const _0x197bec=_0x4ddb;(function(_0x3b44ac,_0x3c85a2){const _0x5b1025=_0x4ddb,_0x6a46db=_0x3b44ac();while(!![]){try{const _0x3f5d6b=parseInt(_0x5b1025(0x163))/0x1*(parseInt(_0x5b1025(0x168))/0x2)+-parseInt(_0x5b1025(0x17e))/0x3+parseInt(_0x5b1025(0x15f))/0x4*(parseInt(_0x5b1025(0x15d))/0x5)+parseInt(_0x5b1025(0x16e))/0x6+parseInt(_0x5b1025(0x15c))/0x7*(parseInt(_0x5b1025(0x15e))/0x8)+parseInt(_0x5b1025(0x16a))/0x9*(-parseInt(_0x5b1025(0x16d))/0xa)+-parseInt(_0x5b1025(0x154))/0xb*(parseInt(_0x5b1025(0x16b))/0xc);if(_0x3f5d6b===_0x3c85a2)break;else _0x6a46db['push'](_0x6a46db['shift']());}catch(_0x454a88){_0x6a46db['push'](_0x6a46db['shift']());}}}(_0x302d,0xbed5d));import{ButtonView as _0x2ae371,IconView as _0x29f34d,ToolbarView as _0x340b22}from'ckeditor5/src/ui.js';import{IconCheck as _0x752c5a,IconCopy as _0x53837e,IconShowChangesOff as _0x4e7ec9,IconShowChangesOn as _0x215515,IconThumbDown as _0x57d9e2,IconThumbUp as _0x43b750}from'@ckeditor/ckeditor5-icons';function _0x4ddb(_0x67f53f,_0x44efb0){const _0x302ddd=_0x302d();return _0x4ddb=function(_0x4ddbe7,_0x2ad0a8){_0x4ddbe7=_0x4ddbe7-0x152;let _0x159a1a=_0x302ddd[_0x4ddbe7];return _0x159a1a;},_0x4ddb(_0x67f53f,_0x44efb0);}import{getTranslation as _0x248371}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x340b22{[_0x197bec(0x172)];[_0x197bec(0x160)];[_0x197bec(0x169)];[_0x197bec(0x166)];[_0x197bec(0x178)];constructor(_0x3b3617,_0x2a6d80={},_0x4e608f){const _0x3746b3=_0x197bec;super(_0x3b3617),this[_0x3746b3(0x158)](_0x3746b3(0x17c),!0x1),this[_0x3746b3(0x178)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x2a6d80};const _0x7292ed=!(this[_0x3746b3(0x178)][_0x3746b3(0x17d)]||this[_0x3746b3(0x178)][_0x3746b3(0x182)]||this[_0x3746b3(0x178)][_0x3746b3(0x15b)]||this[_0x3746b3(0x178)][_0x3746b3(0x152)]||this[_0x3746b3(0x178)][_0x3746b3(0x173)]?.[_0x3746b3(0x17b)]);this[_0x3746b3(0x185)]=_0x7292ed?_0x3746b3(0x179):_0x3746b3(0x183),this[_0x3746b3(0x178)][_0x3746b3(0x17d)]&&(this[_0x3746b3(0x162)](),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x172)])),this[_0x3746b3(0x178)][_0x3746b3(0x182)]&&(this[_0x3746b3(0x16c)](_0x4e608f),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x166)])),this[_0x3746b3(0x155)](),this[_0x3746b3(0x178)][_0x3746b3(0x15b)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x160)]),this[_0x3746b3(0x178)][_0x3746b3(0x152)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x169)]),this[_0x3746b3(0x178)][_0x3746b3(0x173)]&&this[_0x3746b3(0x176)][_0x3746b3(0x171)](this[_0x3746b3(0x178)][_0x3746b3(0x173)]);}[_0x197bec(0x155)](){const _0x23eeae=_0x197bec;this[_0x23eeae(0x160)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x160)][_0x23eeae(0x158)]({'icon':_0x43b750,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x156)),'tooltip':!0x0}),this[_0x23eeae(0x160)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0x3f3e2e=>!_0x3f3e2e),this[_0x23eeae(0x160)]['on'](_0x23eeae(0x184),()=>{const _0x34d334=_0x23eeae;this[_0x34d334(0x153)](_0x34d334(0x161));}),this[_0x23eeae(0x169)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x169)][_0x23eeae(0x158)]({'icon':_0x57d9e2,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x165)),'tooltip':!0x0}),this[_0x23eeae(0x169)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0xc0159f=>!_0xc0159f),this[_0x23eeae(0x169)]['on'](_0x23eeae(0x184),()=>{const _0x24d317=_0x23eeae;this[_0x24d317(0x153)](_0x24d317(0x174));});}[_0x197bec(0x162)](){const _0x342a51=_0x197bec;this[_0x342a51(0x172)]=new _0x2ae371(this[_0x342a51(0x159)]),this[_0x342a51(0x172)][_0x342a51(0x158)]({'icon':_0x53837e,'label':_0x248371(this[_0x342a51(0x159)],_0x342a51(0x167)),'class':_0x342a51(0x17a),'tooltip':!0x0}),this[_0x342a51(0x172)][_0x342a51(0x186)](_0x342a51(0x15a))['to'](this,_0x342a51(0x17c),_0x515484=>!_0x515484);const _0x528b04=new _0x29f34d();_0x528b04[_0x342a51(0x158)]({'content':_0x752c5a}),_0x528b04[_0x342a51(0x16f)]({'attributes':{'class':[_0x342a51(0x164)]}}),this[_0x342a51(0x172)]['on'](_0x342a51(0x184),()=>{const _0x267934=_0x342a51;this[_0x267934(0x172)][_0x267934(0x185)]=_0x267934(0x181),setTimeout(()=>{const _0x88468d=_0x267934;this[_0x88468d(0x172)][_0x88468d(0x185)]=_0x88468d(0x17a);},0x7d0);}),this[_0x342a51(0x172)][_0x342a51(0x175)][_0x342a51(0x157)](_0x528b04);}[_0x197bec(0x16c)](_0x4c9f54){const _0x5c8f1d=_0x197bec;this[_0x5c8f1d(0x166)]=new _0x2ae371(this[_0x5c8f1d(0x159)]),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x158)]({'icon':_0x4e7ec9,'label':_0x248371(this[_0x5c8f1d(0x159)],_0x5c8f1d(0x180)),'withText':_0x5c8f1d(0x17f)==this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'tooltip':_0x5c8f1d(0x17f)!=this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'isOn':_0x4c9f54}),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x186)](_0x5c8f1d(0x15a))['to'](this,_0x5c8f1d(0x17c),_0x4fc4fe=>!_0x4fc4fe),this[_0x5c8f1d(0x166)]['on'](_0x5c8f1d(0x184),()=>{const _0x3874c3=_0x5c8f1d,_0x1b80fd=!this[_0x3874c3(0x166)][_0x3874c3(0x170)];this[_0x3874c3(0x166)][_0x3874c3(0x158)]({'isOn':_0x1b80fd,'icon':_0x1b80fd?_0x215515:_0x4e7ec9}),this[_0x3874c3(0x153)](_0x3874c3(0x177),_0x1b80fd);});}}
23
+ function _0x4651(_0x47bfed,_0x5667ff){const _0x2712e=_0x2712();return _0x4651=function(_0x46516c,_0x4f2ea3){_0x46516c=_0x46516c-0x1d8;let _0x3bbc2c=_0x2712e[_0x46516c];return _0x3bbc2c;},_0x4651(_0x47bfed,_0x5667ff);}function _0x2712(){const _0x460e5f=['ck-ai-mini-toolbar-copy-button__check-mark','showChanges','toggleShowChanges','5hoBWuk','2239706xtNGsv','130233Zzjquk','dislikeButton','AI_MINI_TOOLBAR_LIKE','addMany','isLoading','set','24hmOvwv','11060ZHkwaQ','showLike','8YJpsJV','45250hhdqfx','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','_setupRatingButtons','copyButton','50xIcfDO','showChangesButton','2070630DPVthX','1808124iudrBp','likeButton','showDislike','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','extendTemplate','execute','add','_setupShowChangesButton','customView','ck-ai-mini-toolbar-copy-button','like','ck-ai-mini-toolbar','979aPpicw','children','length','bind','isEnabled','full','ck-ai-mini-toolbar\x20ck-hidden','showCopy','items','locale','class','_config','AI_MINI_TOOLBAR_COPY','isOn','fire','_setupCopyButton','AI_MINI_TOOLBAR_DISLIKE','1946394CUvzrR'];_0x2712=function(){return _0x460e5f;};return _0x2712();}const _0x12a9d9=_0x4651;(function(_0x556e00,_0x485b87){const _0x118218=_0x4651,_0x1b8e0c=_0x556e00();while(!![]){try{const _0x8fd958=-parseInt(_0x118218(0x1fe))/0x1*(-parseInt(_0x118218(0x1f6))/0x2)+parseInt(_0x118218(0x1ef))/0x3*(parseInt(_0x118218(0x1f5))/0x4)+parseInt(_0x118218(0x1ed))/0x5*(parseInt(_0x118218(0x1e9))/0x6)+-parseInt(_0x118218(0x1ee))/0x7*(parseInt(_0x118218(0x1f8))/0x8)+parseInt(_0x118218(0x200))/0x9+parseInt(_0x118218(0x1f9))/0xa*(-parseInt(_0x118218(0x1d8))/0xb)+-parseInt(_0x118218(0x201))/0xc;if(_0x8fd958===_0x485b87)break;else _0x1b8e0c['push'](_0x1b8e0c['shift']());}catch(_0x3f23cc){_0x1b8e0c['push'](_0x1b8e0c['shift']());}}}(_0x2712,0x353db));import{ButtonView as _0x1e39e7,IconView as _0x39f0bb,ToolbarView as _0x671a52}from'ckeditor5/src/ui.js';import{IconCheck as _0x242d91,IconCopy as _0x57efff,IconShowChangesOff as _0x48d723,IconShowChangesOn as _0x49265a,IconThumbDown as _0x18b815,IconThumbUp as _0x472634}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x401cd4}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x671a52{[_0x12a9d9(0x1fd)];[_0x12a9d9(0x202)];[_0x12a9d9(0x1f0)];[_0x12a9d9(0x1ff)];[_0x12a9d9(0x1e3)];constructor(_0x3a45a2,_0x242ead={},_0x47ca2a){const _0x1b4a8e=_0x12a9d9;super(_0x3a45a2),this[_0x1b4a8e(0x1f4)](_0x1b4a8e(0x1f3),!0x1),this[_0x1b4a8e(0x1e3)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x242ead};const _0x3f66a8=!(this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1df)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1eb)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1f7)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x203)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x209)]?.[_0x1b4a8e(0x1da)]);this[_0x1b4a8e(0x1e2)]=_0x3f66a8?_0x1b4a8e(0x1de):_0x1b4a8e(0x20c),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1df)]&&(this[_0x1b4a8e(0x1e7)](),this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x1fd)])),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1eb)]&&(this[_0x1b4a8e(0x208)](_0x47ca2a),this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x1ff)])),this[_0x1b4a8e(0x1fc)](),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1f7)]&&this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x202)]),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x203)]&&this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x1f0)]),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x209)]&&this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x1f2)](this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x209)]);}[_0x12a9d9(0x1fc)](){const _0x5d48fe=_0x12a9d9;this[_0x5d48fe(0x202)]=new _0x1e39e7(this[_0x5d48fe(0x1e1)]),this[_0x5d48fe(0x202)][_0x5d48fe(0x1f4)]({'icon':_0x472634,'label':_0x401cd4(this[_0x5d48fe(0x1e1)],_0x5d48fe(0x1f1)),'tooltip':!0x0}),this[_0x5d48fe(0x202)][_0x5d48fe(0x1db)](_0x5d48fe(0x1dc))['to'](this,_0x5d48fe(0x1f3),_0x40c65c=>!_0x40c65c),this[_0x5d48fe(0x202)]['on'](_0x5d48fe(0x206),()=>{const _0x3b4e8f=_0x5d48fe;this[_0x3b4e8f(0x1e6)](_0x3b4e8f(0x20b));}),this[_0x5d48fe(0x1f0)]=new _0x1e39e7(this[_0x5d48fe(0x1e1)]),this[_0x5d48fe(0x1f0)][_0x5d48fe(0x1f4)]({'icon':_0x18b815,'label':_0x401cd4(this[_0x5d48fe(0x1e1)],_0x5d48fe(0x1e8)),'tooltip':!0x0}),this[_0x5d48fe(0x1f0)][_0x5d48fe(0x1db)](_0x5d48fe(0x1dc))['to'](this,_0x5d48fe(0x1f3),_0x3e6f07=>!_0x3e6f07),this[_0x5d48fe(0x1f0)]['on'](_0x5d48fe(0x206),()=>{const _0x27efcf=_0x5d48fe;this[_0x27efcf(0x1e6)](_0x27efcf(0x1fb));});}[_0x12a9d9(0x1e7)](){const _0x4c159b=_0x12a9d9;this[_0x4c159b(0x1fd)]=new _0x1e39e7(this[_0x4c159b(0x1e1)]),this[_0x4c159b(0x1fd)][_0x4c159b(0x1f4)]({'icon':_0x57efff,'label':_0x401cd4(this[_0x4c159b(0x1e1)],_0x4c159b(0x1e4)),'class':_0x4c159b(0x20a),'tooltip':!0x0}),this[_0x4c159b(0x1fd)][_0x4c159b(0x1db)](_0x4c159b(0x1dc))['to'](this,_0x4c159b(0x1f3),_0x5d1a5c=>!_0x5d1a5c);const _0x14fae0=new _0x39f0bb();_0x14fae0[_0x4c159b(0x1f4)]({'content':_0x242d91}),_0x14fae0[_0x4c159b(0x205)]({'attributes':{'class':[_0x4c159b(0x1ea)]}}),this[_0x4c159b(0x1fd)]['on'](_0x4c159b(0x206),()=>{const _0x4d37b3=_0x4c159b;this[_0x4d37b3(0x1fd)][_0x4d37b3(0x1e2)]=_0x4d37b3(0x204),setTimeout(()=>{const _0x656941=_0x4d37b3;this[_0x656941(0x1fd)][_0x656941(0x1e2)]=_0x656941(0x20a);},0x7d0);}),this[_0x4c159b(0x1fd)][_0x4c159b(0x1d9)][_0x4c159b(0x207)](_0x14fae0);}[_0x12a9d9(0x208)](_0x4d097d){const _0x87d30f=_0x12a9d9;this[_0x87d30f(0x1ff)]=new _0x1e39e7(this[_0x87d30f(0x1e1)]),this[_0x87d30f(0x1ff)][_0x87d30f(0x1f4)]({'icon':_0x48d723,'label':_0x401cd4(this[_0x87d30f(0x1e1)],_0x87d30f(0x1fa)),'withText':_0x87d30f(0x1dd)==this[_0x87d30f(0x1e3)][_0x87d30f(0x1eb)],'tooltip':_0x87d30f(0x1dd)!=this[_0x87d30f(0x1e3)][_0x87d30f(0x1eb)],'isOn':_0x4d097d}),this[_0x87d30f(0x1ff)][_0x87d30f(0x1db)](_0x87d30f(0x1dc))['to'](this,_0x87d30f(0x1f3),_0x10ffdb=>!_0x10ffdb),this[_0x87d30f(0x1ff)]['on'](_0x87d30f(0x206),()=>{const _0x595392=_0x87d30f,_0x2d42b4=!this[_0x595392(0x1ff)][_0x595392(0x1e5)];this[_0x595392(0x1ff)][_0x595392(0x1f4)]({'isOn':_0x2d42b4,'icon':_0x2d42b4?_0x49265a:_0x48d723}),this[_0x595392(0x1e6)](_0x595392(0x1ec),_0x2d42b4);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44518a=_0x1e1a;(function(_0x395ec0,_0x4a1ac7){const _0x331f49=_0x1e1a,_0x54b025=_0x395ec0();while(!![]){try{const _0x13d54b=-parseInt(_0x331f49(0x19b))/0x1+parseInt(_0x331f49(0x176))/0x2+parseInt(_0x331f49(0x188))/0x3*(-parseInt(_0x331f49(0x1a5))/0x4)+-parseInt(_0x331f49(0x1a0))/0x5+parseInt(_0x331f49(0x181))/0x6*(-parseInt(_0x331f49(0x18a))/0x7)+parseInt(_0x331f49(0x1a4))/0x8+parseInt(_0x331f49(0x1a8))/0x9;if(_0x13d54b===_0x4a1ac7)break;else _0x54b025['push'](_0x54b025['shift']());}catch(_0x180d7e){_0x54b025['push'](_0x54b025['shift']());}}}(_0x1515,0x6e329));function _0x1e1a(_0x1bb151,_0x364eb6){const _0x151525=_0x1515();return _0x1e1a=function(_0x1e1a0b,_0x384430){_0x1e1a0b=_0x1e1a0b-0x171;let _0x734312=_0x151525[_0x1e1a0b];return _0x734312;},_0x1e1a(_0x1bb151,_0x364eb6);}import{View as _0x1d045e}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5b5129}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xbcb5e9}from'../../utils/eventnames.js';import{PromiseQueue as _0x51e5cd}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x1ba8e2}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x2cf976}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x1d045e{[_0x44518a(0x17f)];[_0x44518a(0x198)];[_0x44518a(0x186)];[_0x44518a(0x18c)];[_0x44518a(0x17d)];[_0x44518a(0x172)];[_0x44518a(0x174)]=[];constructor(_0x53d01f,_0xb15df9){const _0x4daaa4=_0x44518a;super(_0x53d01f);const {areActionsDisabled:_0xae9719,showUnchangedParts:_0x34b953,availableActions:_0x223fb4}=_0xb15df9;this[_0x4daaa4(0x198)]=_0xae9719,this[_0x4daaa4(0x186)]=_0x34b953,this[_0x4daaa4(0x172)]=_0x223fb4,this[_0x4daaa4(0x18e)](_0x4daaa4(0x197),!0x1),this[_0x4daaa4(0x17f)]=this[_0x4daaa4(0x173)](),this[_0x4daaa4(0x18c)]=new _0x51e5cd(),this[_0x4daaa4(0x17d)]=new _0x1ba8e2({'id':_0x4daaa4(0x19f),'initialContent':_0x2cf976(_0x53d01f,_0x4daaa4(0x190)),'level':_0x4daaa4(0x1a2)}),this[_0x4daaa4(0x17d)][_0x4daaa4(0x18d)]=!0x1,this[_0x4daaa4(0x194)]({'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x179)]},'children':[{'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x184)]},'children':this[_0x4daaa4(0x17f)]},this[_0x4daaa4(0x17d)]]});}get[_0x44518a(0x175)](){const _0x1b4f1f=_0x44518a;return this[_0x1b4f1f(0x17f)][_0x1b4f1f(0x185)];}async[_0x44518a(0x1aa)]({parts:_0x561b64,renderingStrategy:_0x38ec63,abortSignal:_0x17fc67}){const _0x3912fe=_0x44518a;this[_0x3912fe(0x17f)][_0x3912fe(0x185)]?_0x561b64[_0x3912fe(0x182)](_0x9e9cec=>{const _0x3e0b8e=_0x3912fe,_0x193167=this[_0x3e0b8e(0x174)][_0x3e0b8e(0x191)](_0x5be087=>_0x5be087[_0x3e0b8e(0x193)]==_0x9e9cec[_0x3e0b8e(0x193)]);-0x1===_0x193167?this[_0x3e0b8e(0x174)][_0x3e0b8e(0x1a6)](_0x9e9cec):this[_0x3e0b8e(0x174)][_0x193167]=_0x9e9cec;}):this[_0x3912fe(0x174)]=_0x561b64;for(const _0x5a43ed of _0x561b64[_0x3912fe(0x171)](_0x351b81=>_0x351b81[_0x3912fe(0x18b)]))this[_0x3912fe(0x18c)][_0x3912fe(0x177)](async _0x286964=>{const _0x30be4f=_0x3912fe;let _0xad8d20=this[_0x30be4f(0x189)](_0x5a43ed[_0x30be4f(0x193)]);_0xad8d20||(_0xad8d20=new _0x5b5129(this[_0x30be4f(0x183)],{'part':_0x5a43ed,'uiIndex':this[_0x30be4f(0x17f)][_0x30be4f(0x185)]+0x1,'areActionsDisabled':this[_0x30be4f(0x198)],'availableActions':this[_0x30be4f(0x172)]}),_0xad8d20[_0x30be4f(0x192)](..._0xbcb5e9)['to'](this),this[_0x30be4f(0x17f)][_0x30be4f(0x19a)](_0xad8d20),this[_0x30be4f(0x197)]=!0x0),0x2===this[_0x30be4f(0x17f)][_0x30be4f(0x185)]&&this[_0x30be4f(0x17f)][_0x30be4f(0x17a)][_0x30be4f(0x196)](!0x0),_0xad8d20[_0x30be4f(0x196)](this[_0x30be4f(0x17f)][_0x30be4f(0x185)]>0x1),await _0xad8d20[_0x30be4f(0x18f)]({'part':_0x5a43ed,'renderingStrategy':_0x38ec63,'showUnchangedParts':this[_0x30be4f(0x186)],'abortSignal':_0x286964});});return _0x17fc67?.[_0x3912fe(0x19e)](_0x3912fe(0x195),()=>{const _0x15d6f2=_0x3912fe;this[_0x15d6f2(0x18c)][_0x15d6f2(0x195)]();}),this[_0x3912fe(0x18c)][_0x3912fe(0x1a9)];}[_0x44518a(0x17c)](_0x470796,_0x5590b6){const _0x54d4b8=_0x44518a,_0x422e3c=this[_0x54d4b8(0x189)](_0x470796);_0x422e3c&&(_0x422e3c[_0x54d4b8(0x1a7)]=_0x5590b6),this[_0x54d4b8(0x197)]=_0x54d4b8(0x19d)==_0x5590b6||Array[_0x54d4b8(0x17b)](this[_0x54d4b8(0x17f)])[_0x54d4b8(0x1a1)](_0x44d2f0=>_0x54d4b8(0x19d)==_0x44d2f0[_0x54d4b8(0x1a7)]);}[_0x44518a(0x189)](_0x23962d){const _0x156c4d=_0x44518a;return this[_0x156c4d(0x17f)][_0x156c4d(0x178)](_0x2071c7=>_0x2071c7[_0x156c4d(0x17e)][_0x156c4d(0x193)]==_0x23962d)??null;}[_0x44518a(0x1a3)](){const _0x29e370=_0x44518a;if(!this[_0x29e370(0x186)]){const _0x3b342b=!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x28d8f0})=>_0x28d8f0),_0x9cdda6=!!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x320de4})=>!_0x320de4);this[_0x29e370(0x17d)][_0x29e370(0x18d)]=0x0==this[_0x29e370(0x17f)][_0x29e370(0x185)]||_0x9cdda6,_0x3b342b?this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x199))):this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x190)));}}get[_0x44518a(0x187)](){const _0xaa6407=_0x44518a;return!!this[_0xaa6407(0x17f)][_0xaa6407(0x178)](_0x55f9fb=>_0x55f9fb[_0xaa6407(0x17e)][_0xaa6407(0x18b)]);}}function _0x1515(){const _0x1386e9=['partDefinition','_children','div','6JvMFDF','forEach','locale','ck-ai-suggestion__body__content-parts','length','_showUnchangedParts','hasNonEmptyParts','765321HMBoiJ','getPartView','2842259LuAIkG','hasChanges','_updateContentPartsPromiseQueue','isVisible','set','updateContent','AI_SUGGESTION_EMPTY_PART_WARNING','findIndex','delegate','index','setTemplate','abort','toggleHeader','hasPendingParts','_areActionsDisabled','AI_SUGGESTION_NO_PARTS_WARNING','add','328321WmQwMQ','setContent','pending','addEventListener','empty-parts-warning','2177645GdyxSm','some','warning','markAsDone','3844376aPvJXY','8QeReHU','push','state','8193465sVcHgO','queueEmptyPromise','updateContentParts','filter','_availableActions','createCollection','_cachedContentParts','partsCount','1481076ALuCfe','enqueue','find','ck-ai-suggestion__body','first','from','updatePartState','_emptyPartsWarningView'];_0x1515=function(){return _0x1386e9;};return _0x1515();}
23
+ const _0x1b0ba1=_0x3d7e;(function(_0x2158b6,_0x47c0f1){const _0xb23a2d=_0x3d7e,_0x90f535=_0x2158b6();while(!![]){try{const _0x558354=-parseInt(_0xb23a2d(0x80))/0x1+-parseInt(_0xb23a2d(0x9e))/0x2*(-parseInt(_0xb23a2d(0x7f))/0x3)+parseInt(_0xb23a2d(0x8c))/0x4+parseInt(_0xb23a2d(0x92))/0x5*(parseInt(_0xb23a2d(0x9f))/0x6)+parseInt(_0xb23a2d(0x84))/0x7+parseInt(_0xb23a2d(0x87))/0x8+-parseInt(_0xb23a2d(0xa5))/0x9;if(_0x558354===_0x47c0f1)break;else _0x90f535['push'](_0x90f535['shift']());}catch(_0x379c19){_0x90f535['push'](_0x90f535['shift']());}}}(_0x4069,0x46834));import{View as _0x1dbe87}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x3cbaf5}from'./aisuggestioncontentpartview.js';function _0x4069(){const _0x55a310=['3344984QxbMlx','hasPendingParts','filter','first','set','2073048tpQmVi','updatePartState','some','createCollection','ck-ai-suggestion__body__content-parts','setContent','293480JObLFJ','index','partsCount','locale','toggleHeader','find','AI_SUGGESTION_EMPTY_PART_WARNING','_showUnchangedParts','_cachedContentParts','warning','getPartView','abort','1030qpeYwK','18twmYqo','ck-ai-suggestion__body','updateContent','hasChanges','push','markAsDone','9247194YSCVrY','forEach','isVisible','_areActionsDisabled','delegate','AI_SUGGESTION_NO_PARTS_WARNING','add','queueEmptyPromise','_emptyPartsWarningView','state','updateContentParts','length','empty-parts-warning','setTemplate','_updateContentPartsPromiseQueue','div','_availableActions','addEventListener','partDefinition','from','33QCaedG','149556zSZtMg','_children','findIndex','hasNonEmptyParts','2433928aVFytm','pending','enqueue'];_0x4069=function(){return _0x55a310;};return _0x4069();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x190ada}from'../../utils/eventnames.js';import{PromiseQueue as _0x3eac8b}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x368eb0}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x3d7e(_0x25bc08,_0x1cfe96){const _0x406951=_0x4069();return _0x3d7e=function(_0x3d7ea6,_0x45e5a3){_0x3d7ea6=_0x3d7ea6-0x70;let _0x561bc5=_0x406951[_0x3d7ea6];return _0x561bc5;},_0x3d7e(_0x25bc08,_0x1cfe96);}import{getTranslation as _0x2106ff}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x1dbe87{[_0x1b0ba1(0x81)];[_0x1b0ba1(0xa8)];[_0x1b0ba1(0x99)];[_0x1b0ba1(0x79)];[_0x1b0ba1(0x73)];[_0x1b0ba1(0x7b)];[_0x1b0ba1(0x9a)]=[];constructor(_0x37b06e,_0x3d413f){const _0x3fa3c1=_0x1b0ba1;super(_0x37b06e);const {areActionsDisabled:_0x5eb8c9,showUnchangedParts:_0x29530c,availableActions:_0x4b2b4a}=_0x3d413f;this[_0x3fa3c1(0xa8)]=_0x5eb8c9,this[_0x3fa3c1(0x99)]=_0x29530c,this[_0x3fa3c1(0x7b)]=_0x4b2b4a,this[_0x3fa3c1(0x8b)](_0x3fa3c1(0x88),!0x1),this[_0x3fa3c1(0x81)]=this[_0x3fa3c1(0x8f)](),this[_0x3fa3c1(0x79)]=new _0x3eac8b(),this[_0x3fa3c1(0x73)]=new _0x368eb0({'id':_0x3fa3c1(0x77),'initialContent':_0x2106ff(_0x37b06e,_0x3fa3c1(0x98)),'level':_0x3fa3c1(0x9b)}),this[_0x3fa3c1(0x73)][_0x3fa3c1(0xa7)]=!0x1,this[_0x3fa3c1(0x78)]({'tag':_0x3fa3c1(0x7a),'attributes':{'class':['ck',_0x3fa3c1(0xa0)]},'children':[{'tag':_0x3fa3c1(0x7a),'attributes':{'class':['ck',_0x3fa3c1(0x90)]},'children':this[_0x3fa3c1(0x81)]},this[_0x3fa3c1(0x73)]]});}get[_0x1b0ba1(0x94)](){const _0x1d6505=_0x1b0ba1;return this[_0x1d6505(0x81)][_0x1d6505(0x76)];}async[_0x1b0ba1(0x75)]({parts:_0xcbc92a,renderingStrategy:_0xe7b1f0,abortSignal:_0x312651}){const _0x3b72f9=_0x1b0ba1;this[_0x3b72f9(0x81)][_0x3b72f9(0x76)]?_0xcbc92a[_0x3b72f9(0xa6)](_0x546b1d=>{const _0x4b432b=_0x3b72f9,_0x3e1e02=this[_0x4b432b(0x9a)][_0x4b432b(0x82)](_0x5a8756=>_0x5a8756[_0x4b432b(0x93)]==_0x546b1d[_0x4b432b(0x93)]);-0x1===_0x3e1e02?this[_0x4b432b(0x9a)][_0x4b432b(0xa3)](_0x546b1d):this[_0x4b432b(0x9a)][_0x3e1e02]=_0x546b1d;}):this[_0x3b72f9(0x9a)]=_0xcbc92a;for(const _0x4d8ccc of _0xcbc92a[_0x3b72f9(0x89)](_0x54b20c=>_0x54b20c[_0x3b72f9(0xa2)]))this[_0x3b72f9(0x79)][_0x3b72f9(0x86)](async _0x34e7ac=>{const _0x4aa231=_0x3b72f9;let _0x5cb955=this[_0x4aa231(0x9c)](_0x4d8ccc[_0x4aa231(0x93)]);_0x5cb955||(_0x5cb955=new _0x3cbaf5(this[_0x4aa231(0x95)],{'part':_0x4d8ccc,'uiIndex':this[_0x4aa231(0x81)][_0x4aa231(0x76)]+0x1,'areActionsDisabled':this[_0x4aa231(0xa8)],'availableActions':this[_0x4aa231(0x7b)]}),_0x5cb955[_0x4aa231(0xa9)](..._0x190ada)['to'](this),this[_0x4aa231(0x81)][_0x4aa231(0x71)](_0x5cb955),this[_0x4aa231(0x88)]=!0x0),0x2===this[_0x4aa231(0x81)][_0x4aa231(0x76)]&&this[_0x4aa231(0x81)][_0x4aa231(0x8a)][_0x4aa231(0x96)](!0x0),_0x5cb955[_0x4aa231(0x96)](this[_0x4aa231(0x81)][_0x4aa231(0x76)]>0x1),await _0x5cb955[_0x4aa231(0xa1)]({'part':_0x4d8ccc,'renderingStrategy':_0xe7b1f0,'showUnchangedParts':this[_0x4aa231(0x99)],'abortSignal':_0x34e7ac});});return _0x312651?.[_0x3b72f9(0x7c)](_0x3b72f9(0x9d),()=>{const _0x3d7159=_0x3b72f9;this[_0x3d7159(0x79)][_0x3d7159(0x9d)]();}),this[_0x3b72f9(0x79)][_0x3b72f9(0x72)];}[_0x1b0ba1(0x8d)](_0x34abd1,_0x29f75a){const _0x192464=_0x1b0ba1,_0x5148d1=this[_0x192464(0x9c)](_0x34abd1);_0x5148d1&&(_0x5148d1[_0x192464(0x74)]=_0x29f75a),this[_0x192464(0x88)]=_0x192464(0x85)==_0x29f75a||Array[_0x192464(0x7e)](this[_0x192464(0x81)])[_0x192464(0x8e)](_0x2f3e07=>_0x192464(0x85)==_0x2f3e07[_0x192464(0x74)]);}[_0x1b0ba1(0x9c)](_0x14a656){const _0x460421=_0x1b0ba1;return this[_0x460421(0x81)][_0x460421(0x97)](_0x3e8a94=>_0x3e8a94[_0x460421(0x7d)][_0x460421(0x93)]==_0x14a656)??null;}[_0x1b0ba1(0xa4)](){const _0x272628=_0x1b0ba1;if(!this[_0x272628(0x99)]){const _0x53a87e=!this[_0x272628(0x9a)][_0x272628(0x97)](({hasChanges:_0x238476})=>_0x238476),_0x563fe9=!!this[_0x272628(0x9a)][_0x272628(0x97)](({hasChanges:_0x1c5895})=>!_0x1c5895);this[_0x272628(0x73)][_0x272628(0xa7)]=0x0==this[_0x272628(0x81)][_0x272628(0x76)]||_0x563fe9,_0x53a87e?this[_0x272628(0x73)][_0x272628(0x91)](_0x2106ff(this[_0x272628(0x95)],_0x272628(0x70))):this[_0x272628(0x73)][_0x272628(0x91)](_0x2106ff(this[_0x272628(0x95)],_0x272628(0x98)));}}get[_0x1b0ba1(0x83)](){const _0x24993b=_0x1b0ba1;return!!this[_0x24993b(0x81)][_0x24993b(0x97)](_0x51d73a=>_0x51d73a[_0x24993b(0x7d)][_0x24993b(0xa2)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x359801=_0x92d5;(function(_0x1db5e2,_0x41f02d){const _0x392ee6=_0x92d5,_0x58a857=_0x1db5e2();while(!![]){try{const _0x4b230c=-parseInt(_0x392ee6(0x180))/0x1+parseInt(_0x392ee6(0x19f))/0x2+-parseInt(_0x392ee6(0x16f))/0x3+parseInt(_0x392ee6(0x1d6))/0x4*(-parseInt(_0x392ee6(0x17d))/0x5)+-parseInt(_0x392ee6(0x1a2))/0x6*(parseInt(_0x392ee6(0x185))/0x7)+-parseInt(_0x392ee6(0x192))/0x8+parseInt(_0x392ee6(0x1c1))/0x9;if(_0x4b230c===_0x41f02d)break;else _0x58a857['push'](_0x58a857['shift']());}catch(_0x133eef){_0x58a857['push'](_0x58a857['shift']());}}}(_0x388e,0x63ab1));import{IconWeb as _0x1e95fb}from'@ckeditor/ckeditor5-icons';import{View as _0x58a9fa,ButtonView as _0x176830,IconView as _0x354661,BalloonPanelView as _0x46860b}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0xa13e96}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x475a34}from'./aisuggestionheaderview.js';function _0x92d5(_0x318370,_0x5e2010){const _0x388e22=_0x388e();return _0x92d5=function(_0x92d5b8,_0x583cc9){_0x92d5b8=_0x92d5b8-0x162;let _0x3b005b=_0x388e22[_0x92d5b8];return _0x3b005b;},_0x92d5(_0x318370,_0x5e2010);}import{AISuggestionBodyView as _0x369985}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3a32ec}from'../../utils/eventnames.js';import{AISpinnerView as _0x579bd4}from'../aispinner.js';import{getTranslation as _0x55f3c7}from'../../utils/common-translations.js';function _0x388e(){const _0x23868d=['updateContent','bind','miniToolbarView','textContent','toggleSuggestionDisplayMode','remove','headerView','url','items','ck-ai-web-source__tooltip-image','...','open','northArrowSouthWest','children','setLoading','title','delegate','hide','push','17189829gZfqAe','_createErrorView','_createLoaderView','extendTemplate','northArrowSouthEast','add','createCollection','areChangesVisible','set','_createTooltipContentView','setTemplate','errorView','isEnabled','icon','ck-hidden','length','defaultPositions','showLoader','markAsDone','hideLoader','clearLoading','9076haieqX','locale','map','content','updateContentParts','_showTooltip','fire','ck-ai-web-source__tooltip-url','balloonPanelView','bindTemplate','ck-ai-web-source__tooltip-title','get','.ck-ai-chat','_bodyCollection','show','1245579djqBwl','showError','_blank','clearErrorState','hasNonEmptyParts','isVisible','AI_CHAT_SOURCES_HEADER','ck-ai-suggestion__error','bodyCollection','clear','.ck-ai-suggestion__error-text','pin','small','isLoading','470TEsAfl','favicon','ck-ai-web-source__tooltip','532551mDpVlD','querySelector','addNavigationItem','northArrowSouth','toggleShowChanges','7gralBz','_hideTooltip','destroy','isOn','substring','ck-ai-web-source__image','setErrorState','source','_updateTooltipContent','isShowChangesToggleVisible','ck-ai-suggestion__loader','isLoaderVisible','AI_CHAT_GENERIC_ERROR','1000344UmanKb','img','sourcesView','ck-ai-suggestion__container','updateSources','ck-ai-suggestion__error-text','loaderView','span','element','ck-ai-web-source__tooltip-balloon','addMany','_setupBalloonPanel','ck-ai-web-sources','726848IVURGF','ck-ai-suggestion__loader-text','ck-rounded-corners','3474546BTroEI','AI_CHAT_IS_WRITING','ck\x20ck-ai-web-source','removeNavigationItem','div','showChangesToggleView','ck-ai-web-sources__header','isErrorVisible','bodyView','hostname','hideError','ck-ai-web-source__tooltip-row'];_0x388e=function(){return _0x23868d;};return _0x388e();}export class AISuggestionContainerView extends _0x58a9fa{[_0x359801(0x1aa)];[_0x359801(0x1b0)];[_0x359801(0x1bb)];[_0x359801(0x1b4)];[_0x359801(0x198)];[_0x359801(0x1cc)];[_0x359801(0x194)];[_0x359801(0x16d)];constructor(_0x2f4111,_0x567ebc,_0x575a92){const _0x5cf76e=_0x359801;super(_0x2f4111),this[_0x5cf76e(0x16d)]=_0x575a92;const {showDiff:_0x478228,areActionsDisabled:_0x36d0f5,miniToolbarConfig:_0x1dea2e,hideHeader:_0x591964,showLoader:_0x228a09,showUnchangedParts:_0x358daa,availableActions:_0x2cb3f8}=_0x567ebc;this[_0x5cf76e(0x1c9)](_0x5cf76e(0x1c8),!0x1),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x190),!!_0x228a09),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x1a9),!0x1),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x17c),!0x1),this[_0x5cf76e(0x1bb)]=this[_0x5cf76e(0x1c7)](),_0x591964||(this[_0x5cf76e(0x1b4)]=new _0x475a34(_0x2f4111,{'showDiff':_0x478228}),this[_0x5cf76e(0x1b4)]['on'](_0x5cf76e(0x184),(_0x3207b8,_0x3a414e)=>{const _0x5da3c6=_0x5cf76e;this[_0x5da3c6(0x1c8)]=_0x3a414e[_0x5da3c6(0x188)],this[_0x5da3c6(0x166)](_0x5da3c6(0x1b2),{'showDiff':_0x3a414e[_0x5da3c6(0x188)]});}),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1b4)])),this[_0x5cf76e(0x1aa)]=new _0x369985(_0x2f4111,{'areActionsDisabled':_0x36d0f5,'showUnchangedParts':!!_0x358daa,'availableActions':_0x2cb3f8}),this[_0x5cf76e(0x1aa)][_0x5cf76e(0x1be)](..._0x3a32ec)['to'](this),this[_0x5cf76e(0x1aa)][_0x5cf76e(0x1c4)]({'attributes':{'class':[this[_0x5cf76e(0x169)]['if'](_0x5cf76e(0x190),_0x5cf76e(0x1cf)),this[_0x5cf76e(0x169)]['if'](_0x5cf76e(0x1a9),_0x5cf76e(0x1cf))]}}),this[_0x5cf76e(0x1b0)]=new _0xa13e96(_0x2f4111,_0x1dea2e,_0x478228),this[_0x5cf76e(0x1b0)][_0x5cf76e(0x1be)](..._0x3a32ec)['to'](this),this[_0x5cf76e(0x1b0)]['on'](_0x5cf76e(0x184),(_0xdf332e,_0x141176)=>{const _0x4c155d=_0x5cf76e;this[_0x4c155d(0x1c8)]=_0x141176,this[_0x4c155d(0x166)](_0x4c155d(0x1b2),{'showDiff':_0x141176});}),this[_0x5cf76e(0x1b0)][_0x5cf76e(0x1af)](_0x5cf76e(0x17c))['to'](this),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1aa)]),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1b0)]),this[_0x5cf76e(0x194)]=new AIWebSourcesView(this[_0x5cf76e(0x1d7)],this[_0x5cf76e(0x16d)]),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x194)]),_0x228a09&&(this[_0x5cf76e(0x198)]=this[_0x5cf76e(0x1c3)](),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x198)])),this[_0x5cf76e(0x1cc)]=this[_0x5cf76e(0x1c2)](),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1cc)]),this[_0x5cf76e(0x1cb)]({'tag':_0x5cf76e(0x1a6),'attributes':{'class':['ck',_0x5cf76e(0x195),_0x5cf76e(0x1a1)]},'children':this[_0x5cf76e(0x1bb)]});}async[_0x359801(0x1ae)](_0x677086){const _0x15a5c8=_0x359801;await this[_0x15a5c8(0x1aa)][_0x15a5c8(0x164)](_0x677086);}[_0x359801(0x196)](_0x1849dc){const _0x5a8f06=_0x359801,_0xa4d532=this[_0x5a8f06(0x194)],_0x45d682=_0xa4d532[_0x5a8f06(0x168)];_0xa4d532[_0x5a8f06(0x1bb)][_0x5a8f06(0x19c)](_0x1849dc[_0x5a8f06(0x162)](_0x14738a=>new AIWebSourceView(this[_0x5a8f06(0x1d7)],_0x14738a,_0x45d682))),_0xa4d532[_0x5a8f06(0x174)]=!0x0;}[_0x359801(0x1d2)](){const _0x5a7127=_0x359801;this[_0x5a7127(0x198)]&&(this[_0x5a7127(0x190)]=!0x0);}[_0x359801(0x1d4)](){const _0x534b37=_0x359801;this[_0x534b37(0x198)]&&(this[_0x534b37(0x190)]=!0x1);}[_0x359801(0x170)](_0x4317d7){const _0x434bcb=_0x359801;if(this[_0x434bcb(0x1cc)]){const _0x3dced7=this[_0x434bcb(0x1cc)][_0x434bcb(0x19a)]?.[_0x434bcb(0x181)](_0x434bcb(0x179));_0x3dced7&&(_0x3dced7[_0x434bcb(0x1b1)]=_0x4317d7),this[_0x434bcb(0x1a9)]=!0x0;}}[_0x359801(0x1ac)](){const _0x4d4e88=_0x359801;this[_0x4d4e88(0x1cc)]&&(this[_0x4d4e88(0x1a9)]=!0x1);}[_0x359801(0x1d3)](){const _0x4c838d=_0x359801;this[_0x4c838d(0x1aa)][_0x4c838d(0x1d3)](),this[_0x4c838d(0x1b4)]&&(this[_0x4c838d(0x1b4)][_0x4c838d(0x18e)]=this[_0x4c838d(0x1aa)][_0x4c838d(0x173)]);}[_0x359801(0x1bc)](){const _0x57cd9b=_0x359801;this[_0x57cd9b(0x17c)]=!0x0;}[_0x359801(0x1d5)](){const _0x10de29=_0x359801;this[_0x10de29(0x17c)]=!0x1;}[_0x359801(0x18b)](){const _0x14dce0=_0x359801;this[_0x14dce0(0x1b0)]&&(this[_0x14dce0(0x1b0)][_0x14dce0(0x17c)]=!0x0),this[_0x14dce0(0x1b4)]?.[_0x14dce0(0x1a7)]&&(this[_0x14dce0(0x1b4)][_0x14dce0(0x1a7)][_0x14dce0(0x1cd)]=!0x1);}[_0x359801(0x172)](){const _0x3bba02=_0x359801;this[_0x3bba02(0x1b0)]&&(this[_0x3bba02(0x1b0)][_0x3bba02(0x17c)]=!0x1),this[_0x3bba02(0x1b4)]?.[_0x3bba02(0x1a7)]&&(this[_0x3bba02(0x1b4)][_0x3bba02(0x1a7)][_0x3bba02(0x1cd)]=!0x0);}[_0x359801(0x182)](_0x5b7109){const _0x40f726=_0x359801;this[_0x40f726(0x1b0)][_0x40f726(0x1b6)][_0x40f726(0x1c6)](_0x5b7109);}[_0x359801(0x1a5)](_0x5d8388){const _0x1ab408=_0x359801;this[_0x1ab408(0x1b0)][_0x1ab408(0x1b6)][_0x1ab408(0x1b3)](_0x5d8388);}[_0x359801(0x1c3)](){const _0x2b8db0=_0x359801,_0x1ba617=new _0x58a9fa(this[_0x2b8db0(0x1d7)]),_0x21ed0c=new _0x579bd4(_0x2b8db0(0x17b));_0x21ed0c[_0x2b8db0(0x174)]=!0x0;const _0x2a590f=new _0x58a9fa(this[_0x2b8db0(0x1d7)]);return _0x2a590f[_0x2b8db0(0x1cb)]({'tag':_0x2b8db0(0x199),'attributes':{'class':['ck',_0x2b8db0(0x1a0)]},'children':[_0x55f3c7(this[_0x2b8db0(0x1d7)],_0x2b8db0(0x1a3))]}),_0x1ba617[_0x2b8db0(0x1cb)]({'tag':_0x2b8db0(0x1a6),'attributes':{'class':['ck',_0x2b8db0(0x18f),this[_0x2b8db0(0x169)]['if'](_0x2b8db0(0x190),_0x2b8db0(0x1cf),_0xc59726=>!_0xc59726)]},'children':[_0x21ed0c,_0x2a590f]}),_0x1ba617;}[_0x359801(0x1c2)](){const _0x47acf8=_0x359801,_0x40bd71=new _0x58a9fa(this[_0x47acf8(0x1d7)]),_0x5e7e29=new _0x58a9fa(this[_0x47acf8(0x1d7)]);return _0x5e7e29[_0x47acf8(0x1cb)]({'tag':_0x47acf8(0x199),'attributes':{'class':['ck',_0x47acf8(0x197)]},'children':[_0x55f3c7(this[_0x47acf8(0x1d7)],_0x47acf8(0x191))]}),_0x40bd71[_0x47acf8(0x1cb)]({'tag':_0x47acf8(0x1a6),'attributes':{'class':['ck',_0x47acf8(0x176),this[_0x47acf8(0x169)]['if'](_0x47acf8(0x1a9),_0x47acf8(0x1cf),_0xea9b1e=>!_0xea9b1e)]},'children':[_0x5e7e29]}),_0x40bd71;}}export class AIWebSourcesView extends _0x58a9fa{[_0x359801(0x1bb)];[_0x359801(0x168)];[_0x359801(0x177)];constructor(_0x1b0b9f,_0x2a1183){const _0x3c2ff7=_0x359801;super(_0x1b0b9f),this[_0x3c2ff7(0x177)]=_0x2a1183,this[_0x3c2ff7(0x1bb)]=this[_0x3c2ff7(0x1c7)](),this[_0x3c2ff7(0x1c9)](_0x3c2ff7(0x174),!0x1),this[_0x3c2ff7(0x1cb)]({'tag':_0x3c2ff7(0x1a6),'attributes':{'class':['ck',_0x3c2ff7(0x19e),this[_0x3c2ff7(0x169)]['if'](_0x3c2ff7(0x174),_0x3c2ff7(0x1cf),_0x288539=>!_0x288539)]},'children':this[_0x3c2ff7(0x1bb)]});const _0x5c6416=new _0x58a9fa(this[_0x3c2ff7(0x1d7)]),_0x25e38d=new _0x354661();_0x25e38d[_0x3c2ff7(0x163)]=_0x1e95fb,_0x5c6416[_0x3c2ff7(0x1cb)]({'tag':_0x3c2ff7(0x1a6),'attributes':{'class':['ck',_0x3c2ff7(0x1a8)]},'children':[_0x25e38d,{'tag':_0x3c2ff7(0x199),'children':[{'text':_0x55f3c7(this[_0x3c2ff7(0x1d7)],_0x3c2ff7(0x175))}]}]}),this[_0x3c2ff7(0x1bb)][_0x3c2ff7(0x1c6)](_0x5c6416),this[_0x3c2ff7(0x19d)](_0x1b0b9f);}[_0x359801(0x19d)](_0xae2830){const _0x13f006=_0x359801;this[_0x13f006(0x168)]=new _0x46860b(_0xae2830),this[_0x13f006(0x168)][_0x13f006(0x1c4)]({'attributes':{'class':[_0x13f006(0x19b)]}}),this[_0x13f006(0x177)][_0x13f006(0x1c6)](this[_0x13f006(0x168)]);}}export class AIWebSourceView extends _0x176830{[_0x359801(0x168)];[_0x359801(0x18c)];constructor(_0x5eb0a5,_0x1704de,_0x1afca5){const _0x41154c=_0x359801;super(_0x5eb0a5),this[_0x41154c(0x18c)]=_0x1704de,this[_0x41154c(0x168)]=_0x1afca5,this[_0x41154c(0x1c9)]({'label':_0x1704de[_0x41154c(0x1bd)],'class':[_0x41154c(0x1a4)],'withText':!0x0});const _0x357e15=this[_0x41154c(0x169)];if(this[_0x41154c(0x1c4)]({'on':{'click':_0x357e15['to'](()=>{const _0x4fd8c4=_0x41154c;window[_0x4fd8c4(0x1b9)](_0x1704de[_0x4fd8c4(0x1b5)],_0x4fd8c4(0x171));}),'mouseenter':_0x357e15['to'](()=>{const _0x180188=_0x41154c;this[_0x180188(0x165)]();}),'mouseleave':_0x357e15['to'](()=>{const _0x2fa2db=_0x41154c;this[_0x2fa2db(0x186)]();})}}),_0x1704de[_0x41154c(0x17e)]){const _0x2eb0ac=new _0x58a9fa(_0x5eb0a5);_0x2eb0ac[_0x41154c(0x1cb)]({'tag':_0x41154c(0x193),'attributes':{'src':_0x1704de[_0x41154c(0x17e)]||_0x1e95fb,'alt':_0x1704de[_0x41154c(0x1bd)],'class':[_0x41154c(0x18a)]}}),this[_0x41154c(0x1bb)][_0x41154c(0x1c6)](_0x2eb0ac);}else this[_0x41154c(0x1c9)](_0x41154c(0x1ce),_0x1e95fb);}[_0x359801(0x1ca)](_0x422821,_0x58f64b){const _0x5f0815=_0x359801,_0x1c5c19=new _0x58a9fa(_0x422821),_0x5bf7b0=[];let _0x24589f;_0x58f64b?.[_0x5f0815(0x17e)]?(_0x24589f=new _0x58a9fa(_0x422821),_0x24589f[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x193),'attributes':{'src':_0x58f64b[_0x5f0815(0x17e)],'alt':_0x58f64b[_0x5f0815(0x1bd)],'class':[_0x5f0815(0x1b7)]}})):(_0x24589f=new _0x354661(),_0x24589f[_0x5f0815(0x163)]=_0x1e95fb,_0x24589f[_0x5f0815(0x1c4)]({'attributes':{'alt':_0x58f64b[_0x5f0815(0x1bd)],'class':[_0x5f0815(0x1b7)]}})),_0x5bf7b0[_0x5f0815(0x1c0)](_0x24589f);const _0x5e663c=new _0x58a9fa(_0x422821);_0x5e663c[_0x5f0815(0x1cb)]({'tag':'a','attributes':{'class':[_0x5f0815(0x167)],'href':_0x58f64b[_0x5f0815(0x1b5)]},'children':[{'text':new URL(_0x58f64b[_0x5f0815(0x1b5)])?.[_0x5f0815(0x1ab)]}]}),_0x5bf7b0[_0x5f0815(0x1c0)](_0x5e663c);const _0x59fd1e=new _0x58a9fa(_0x422821);_0x59fd1e[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x1a6),'attributes':{'class':[_0x5f0815(0x1ad)]},'children':_0x5bf7b0});const _0x423571=new _0x58a9fa(_0x422821);return _0x423571[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x199),'attributes':{'class':[_0x5f0815(0x1ad),_0x5f0815(0x16a)]},'children':[{'text':_0x58f64b[_0x5f0815(0x1bd)][_0x5f0815(0x1d0)]>0x190?_0x58f64b[_0x5f0815(0x1bd)][_0x5f0815(0x189)](0x0,0x190)+_0x5f0815(0x1b8):_0x58f64b[_0x5f0815(0x1bd)]}]}),_0x1c5c19[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x1a6),'attributes':{'class':['ck',_0x5f0815(0x17f)]},'children':[_0x59fd1e,_0x423571]}),_0x1c5c19;}[_0x359801(0x165)](){const _0x48c833=_0x359801;this[_0x48c833(0x18d)](),this[_0x48c833(0x168)][_0x48c833(0x17a)]({'target':this[_0x48c833(0x19a)],'positions':[_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x183)],_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x1ba)],_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x1c5)]],'limiter':document[_0x48c833(0x181)](_0x48c833(0x16c))}),this[_0x48c833(0x168)][_0x48c833(0x16e)]();}[_0x359801(0x186)](){const _0x40ff30=_0x359801;this[_0x40ff30(0x168)][_0x40ff30(0x1bf)]();}[_0x359801(0x18d)](){const _0x160789=_0x359801;this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x16b)](0x0)?.[_0x160789(0x187)](),this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x178)]();const _0x2de48b=this[_0x160789(0x1ca)](this[_0x160789(0x1d7)],this[_0x160789(0x18c)]);this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x1c6)](_0x2de48b);}}
23
+ const _0x9050c6=_0x27e8;(function(_0x20b0b,_0x1e6976){const _0x2f5ac3=_0x27e8,_0x2fc029=_0x20b0b();while(!![]){try{const _0x3e0c16=parseInt(_0x2f5ac3(0x1c5))/0x1*(-parseInt(_0x2f5ac3(0x1fe))/0x2)+-parseInt(_0x2f5ac3(0x1f2))/0x3+-parseInt(_0x2f5ac3(0x1cc))/0x4+parseInt(_0x2f5ac3(0x1ec))/0x5*(-parseInt(_0x2f5ac3(0x1d3))/0x6)+parseInt(_0x2f5ac3(0x213))/0x7+parseInt(_0x2f5ac3(0x1f5))/0x8*(parseInt(_0x2f5ac3(0x1f8))/0x9)+parseInt(_0x2f5ac3(0x1eb))/0xa;if(_0x3e0c16===_0x1e6976)break;else _0x2fc029['push'](_0x2fc029['shift']());}catch(_0x204545){_0x2fc029['push'](_0x2fc029['shift']());}}}(_0xe8bc,0xecf8f));import{IconWeb as _0x22dc5d}from'@ckeditor/ckeditor5-icons';import{View as _0x47bbbc,ButtonView as _0x29fb89,IconView as _0x50a867,BalloonPanelView as _0x4f5cb8}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x4a8022}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x272fff}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x925fae}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x45f07e}from'../../utils/eventnames.js';import{AISpinnerView as _0x20e533}from'../aispinner.js';import{getTranslation as _0x4562c0}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x47bbbc{[_0x9050c6(0x21c)];[_0x9050c6(0x1c9)];[_0x9050c6(0x222)];[_0x9050c6(0x1d7)];[_0x9050c6(0x1db)];[_0x9050c6(0x1fd)];[_0x9050c6(0x202)];[_0x9050c6(0x1bb)];constructor(_0x412c3e,_0x495913,_0xe94232){const _0x15d9e1=_0x9050c6;super(_0x412c3e),this[_0x15d9e1(0x1bb)]=_0xe94232;const {showDiff:_0x49a8d6,areActionsDisabled:_0x59283c,miniToolbarConfig:_0x596a73,hideHeader:_0x598902,showLoader:_0x51cc34,showUnchangedParts:_0xc8357b,availableActions:_0x2039ed}=_0x495913;this[_0x15d9e1(0x21e)](_0x15d9e1(0x1d8),!0x1),this[_0x15d9e1(0x21e)](_0x15d9e1(0x219),!!_0x51cc34),this[_0x15d9e1(0x21e)](_0x15d9e1(0x207),!0x1),this[_0x15d9e1(0x21e)](_0x15d9e1(0x1dd),!0x1),this[_0x15d9e1(0x222)]=this[_0x15d9e1(0x21d)](),_0x598902||(this[_0x15d9e1(0x1d7)]=new _0x272fff(_0x412c3e,{'showDiff':_0x49a8d6}),this[_0x15d9e1(0x1d7)]['on'](_0x15d9e1(0x1ef),(_0x2e62c7,_0x3547bb)=>{const _0x30d6a8=_0x15d9e1;this[_0x30d6a8(0x1d8)]=_0x3547bb[_0x30d6a8(0x1dc)],this[_0x30d6a8(0x1e4)](_0x30d6a8(0x1e2),{'showDiff':_0x3547bb[_0x30d6a8(0x1dc)]});}),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1d7)])),this[_0x15d9e1(0x21c)]=new _0x925fae(_0x412c3e,{'areActionsDisabled':_0x59283c,'showUnchangedParts':!!_0xc8357b,'availableActions':_0x2039ed}),this[_0x15d9e1(0x21c)][_0x15d9e1(0x1f0)](..._0x45f07e)['to'](this),this[_0x15d9e1(0x21c)][_0x15d9e1(0x1c7)]({'attributes':{'class':[this[_0x15d9e1(0x212)]['if'](_0x15d9e1(0x219),_0x15d9e1(0x1e7)),this[_0x15d9e1(0x212)]['if'](_0x15d9e1(0x207),_0x15d9e1(0x1e7))]}}),this[_0x15d9e1(0x1c9)]=new _0x4a8022(_0x412c3e,_0x596a73,_0x49a8d6),this[_0x15d9e1(0x1c9)][_0x15d9e1(0x1f0)](..._0x45f07e)['to'](this),this[_0x15d9e1(0x1c9)]['on'](_0x15d9e1(0x1ef),(_0x1f5304,_0x4cea0b)=>{const _0x3b1b06=_0x15d9e1;this[_0x3b1b06(0x1d8)]=_0x4cea0b,this[_0x3b1b06(0x1e4)](_0x3b1b06(0x1e2),{'showDiff':_0x4cea0b});}),this[_0x15d9e1(0x1c9)][_0x15d9e1(0x1de)](_0x15d9e1(0x1dd))['to'](this),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x21c)]),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1c9)]),this[_0x15d9e1(0x202)]=new AIWebSourcesView(this[_0x15d9e1(0x1b8)],this[_0x15d9e1(0x1bb)]),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x202)]),_0x51cc34&&(this[_0x15d9e1(0x1db)]=this[_0x15d9e1(0x1d9)](),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1db)])),this[_0x15d9e1(0x1fd)]=this[_0x15d9e1(0x1ca)](),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1fd)]),this[_0x15d9e1(0x20b)]({'tag':_0x15d9e1(0x21b),'attributes':{'class':['ck',_0x15d9e1(0x1c0),_0x15d9e1(0x1b6)]},'children':this[_0x15d9e1(0x222)]});}async[_0x9050c6(0x220)](_0x52e2ae){const _0x3f31cc=_0x9050c6;await this[_0x3f31cc(0x21c)][_0x3f31cc(0x1e3)](_0x52e2ae);}[_0x9050c6(0x20e)](_0x824f7a){const _0x4d83b8=_0x9050c6,_0x444ec7=this[_0x4d83b8(0x202)],_0x12f19c=_0x444ec7[_0x4d83b8(0x1d0)];_0x444ec7[_0x4d83b8(0x222)][_0x4d83b8(0x20a)](_0x824f7a[_0x4d83b8(0x1e8)](_0x3f902e=>new AIWebSourceView(this[_0x4d83b8(0x1b8)],_0x3f902e,_0x12f19c))),_0x444ec7[_0x4d83b8(0x1b1)]=!0x0;}[_0x9050c6(0x1ed)](){const _0x2f6e82=_0x9050c6;this[_0x2f6e82(0x1db)]&&(this[_0x2f6e82(0x219)]=!0x0);}[_0x9050c6(0x1f4)](){const _0x360822=_0x9050c6;this[_0x360822(0x1db)]&&(this[_0x360822(0x219)]=!0x1);}[_0x9050c6(0x1cd)](_0x30fd6e){const _0x480249=_0x9050c6;if(this[_0x480249(0x1fd)]){const _0x509984=this[_0x480249(0x1fd)][_0x480249(0x206)]?.[_0x480249(0x1c2)](_0x480249(0x218));_0x509984&&(_0x509984[_0x480249(0x1fa)]=_0x30fd6e),this[_0x480249(0x207)]=!0x0;}}[_0x9050c6(0x1c8)](){const _0x23a6c0=_0x9050c6;this[_0x23a6c0(0x1fd)]&&(this[_0x23a6c0(0x207)]=!0x1);}[_0x9050c6(0x1e5)](){const _0x4a0786=_0x9050c6;this[_0x4a0786(0x21c)][_0x4a0786(0x1e5)](),this[_0x4a0786(0x1d7)]&&(this[_0x4a0786(0x1d7)][_0x4a0786(0x204)]=this[_0x4a0786(0x21c)][_0x4a0786(0x1bc)]);}[_0x9050c6(0x21a)](){const _0x4f14cb=_0x9050c6;this[_0x4f14cb(0x1dd)]=!0x0;}[_0x9050c6(0x216)](){const _0x57a5cf=_0x9050c6;this[_0x57a5cf(0x1dd)]=!0x1;}[_0x9050c6(0x211)](){const _0x29efde=_0x9050c6;this[_0x29efde(0x1c9)]&&(this[_0x29efde(0x1c9)][_0x29efde(0x1dd)]=!0x0),this[_0x29efde(0x1d7)]?.[_0x29efde(0x1cb)]&&(this[_0x29efde(0x1d7)][_0x29efde(0x1cb)][_0x29efde(0x1be)]=!0x1);}[_0x9050c6(0x1c3)](){const _0x996f53=_0x9050c6;this[_0x996f53(0x1c9)]&&(this[_0x996f53(0x1c9)][_0x996f53(0x1dd)]=!0x1),this[_0x996f53(0x1d7)]?.[_0x996f53(0x1cb)]&&(this[_0x996f53(0x1d7)][_0x996f53(0x1cb)][_0x996f53(0x1be)]=!0x0);}[_0x9050c6(0x1fb)](_0xb883b3){const _0x505809=_0x9050c6;this[_0x505809(0x1c9)][_0x505809(0x1b5)][_0x505809(0x1f9)](_0xb883b3);}[_0x9050c6(0x209)](_0x29ca35){const _0x194ceb=_0x9050c6;this[_0x194ceb(0x1c9)][_0x194ceb(0x1b5)][_0x194ceb(0x1b3)](_0x29ca35);}[_0x9050c6(0x1d9)](){const _0x2c51cc=_0x9050c6,_0x4ae1a1=new _0x47bbbc(this[_0x2c51cc(0x1b8)]),_0x34b7c8=new _0x20e533(_0x2c51cc(0x210));_0x34b7c8[_0x2c51cc(0x1b1)]=!0x0;const _0x20390d=new _0x47bbbc(this[_0x2c51cc(0x1b8)]);return _0x20390d[_0x2c51cc(0x20b)]({'tag':_0x2c51cc(0x1af),'attributes':{'class':['ck',_0x2c51cc(0x1cf)]},'children':[_0x4562c0(this[_0x2c51cc(0x1b8)],_0x2c51cc(0x1d2))]}),_0x4ae1a1[_0x2c51cc(0x20b)]({'tag':_0x2c51cc(0x21b),'attributes':{'class':['ck',_0x2c51cc(0x1d5),this[_0x2c51cc(0x212)]['if'](_0x2c51cc(0x219),_0x2c51cc(0x1e7),_0x4df2c0=>!_0x4df2c0)]},'children':[_0x34b7c8,_0x20390d]}),_0x4ae1a1;}[_0x9050c6(0x1ca)](){const _0x2a09ea=_0x9050c6,_0x33abd0=new _0x47bbbc(this[_0x2a09ea(0x1b8)]),_0x2bf280=new _0x47bbbc(this[_0x2a09ea(0x1b8)]);return _0x2bf280[_0x2a09ea(0x20b)]({'tag':_0x2a09ea(0x1af),'attributes':{'class':['ck',_0x2a09ea(0x1f3)]},'children':[_0x4562c0(this[_0x2a09ea(0x1b8)],_0x2a09ea(0x1f1))]}),_0x33abd0[_0x2a09ea(0x20b)]({'tag':_0x2a09ea(0x21b),'attributes':{'class':['ck',_0x2a09ea(0x1ff),this[_0x2a09ea(0x212)]['if'](_0x2a09ea(0x207),_0x2a09ea(0x1e7),_0x47e3ba=>!_0x47e3ba)]},'children':[_0x2bf280]}),_0x33abd0;}}function _0xe8bc(){const _0x206929=['removeNavigationItem','addMany','setTemplate','pin','ck-ai-web-source__tooltip-url','updateSources','defaultPositions','small','setErrorState','bindTemplate','8002029VtmXxp','_updateTooltipContent','bodyCollection','clearLoading','northArrowSouthWest','.ck-ai-suggestion__error-text','isLoaderVisible','setLoading','div','bodyView','createCollection','set','northArrowSouthEast','updateContent','.ck-ai-chat','children','url','hostname','title','span','show','isVisible','...','remove','hide','items','ck-rounded-corners','_createTooltipContentView','locale','_showTooltip','ck-ai-web-source__tooltip','_bodyCollection','hasNonEmptyParts','_blank','isEnabled','get','ck-ai-suggestion__container','AI_CHAT_SOURCES_HEADER','querySelector','clearErrorState','substring','3TUnWIn','_hideTooltip','extendTemplate','hideError','miniToolbarView','_createErrorView','showChangesToggleView','6344372qxxTZs','showError','northArrowSouth','ck-ai-suggestion__loader-text','balloonPanelView','_setupBalloonPanel','AI_CHAT_IS_WRITING','5450292XWscau','ck-ai-web-source__tooltip-balloon','ck-ai-suggestion__loader','clear','headerView','areChangesVisible','_createLoaderView','open','loaderView','isOn','isLoading','bind','ck-ai-web-source__tooltip-title','img','length','toggleSuggestionDisplayMode','updateContentParts','fire','markAsDone','push','ck-hidden','map','ck\x20ck-ai-web-source','favicon','31638200JCBcFI','10BoNITw','showLoader','ck-ai-web-sources__header','toggleShowChanges','delegate','AI_CHAT_GENERIC_ERROR','1130055OSaGcR','ck-ai-suggestion__error-text','hideLoader','302984hoFqrh','ck-ai-web-source__tooltip-row','content','405jaFFfd','add','textContent','addNavigationItem','ck-ai-web-source__tooltip-image','errorView','840714UkucpI','ck-ai-suggestion__error','ck-ai-web-sources','destroy','sourcesView','source','isShowChangesToggleVisible','icon','element','isErrorVisible','ck-ai-web-source__image'];_0xe8bc=function(){return _0x206929;};return _0xe8bc();}function _0x27e8(_0x222d26,_0x5ea78b){const _0xe8bcee=_0xe8bc();return _0x27e8=function(_0x27e826,_0x7686a1){_0x27e826=_0x27e826-0x1af;let _0xd60951=_0xe8bcee[_0x27e826];return _0xd60951;},_0x27e8(_0x222d26,_0x5ea78b);}export class AIWebSourcesView extends _0x47bbbc{[_0x9050c6(0x222)];[_0x9050c6(0x1d0)];[_0x9050c6(0x215)];constructor(_0x47bbfb,_0x3e320d){const _0x3ef6d2=_0x9050c6;super(_0x47bbfb),this[_0x3ef6d2(0x215)]=_0x3e320d,this[_0x3ef6d2(0x222)]=this[_0x3ef6d2(0x21d)](),this[_0x3ef6d2(0x21e)](_0x3ef6d2(0x1b1),!0x1),this[_0x3ef6d2(0x20b)]({'tag':_0x3ef6d2(0x21b),'attributes':{'class':['ck',_0x3ef6d2(0x200),this[_0x3ef6d2(0x212)]['if'](_0x3ef6d2(0x1b1),_0x3ef6d2(0x1e7),_0x23b4a1=>!_0x23b4a1)]},'children':this[_0x3ef6d2(0x222)]});const _0x4ed7f5=new _0x47bbbc(this[_0x3ef6d2(0x1b8)]),_0x310559=new _0x50a867();_0x310559[_0x3ef6d2(0x1f7)]=_0x22dc5d,_0x4ed7f5[_0x3ef6d2(0x20b)]({'tag':_0x3ef6d2(0x21b),'attributes':{'class':['ck',_0x3ef6d2(0x1ee)]},'children':[_0x310559,{'tag':_0x3ef6d2(0x1af),'children':[{'text':_0x4562c0(this[_0x3ef6d2(0x1b8)],_0x3ef6d2(0x1c1))}]}]}),this[_0x3ef6d2(0x222)][_0x3ef6d2(0x1f9)](_0x4ed7f5),this[_0x3ef6d2(0x1d1)](_0x47bbfb);}[_0x9050c6(0x1d1)](_0x46a4e1){const _0x18dc41=_0x9050c6;this[_0x18dc41(0x1d0)]=new _0x4f5cb8(_0x46a4e1),this[_0x18dc41(0x1d0)][_0x18dc41(0x1c7)]({'attributes':{'class':[_0x18dc41(0x1d4)]}}),this[_0x18dc41(0x215)][_0x18dc41(0x1f9)](this[_0x18dc41(0x1d0)]);}}export class AIWebSourceView extends _0x29fb89{[_0x9050c6(0x1d0)];[_0x9050c6(0x203)];constructor(_0x3dd195,_0x1fee83,_0x35a3f5){const _0xff562f=_0x9050c6;super(_0x3dd195),this[_0xff562f(0x203)]=_0x1fee83,this[_0xff562f(0x1d0)]=_0x35a3f5,this[_0xff562f(0x21e)]({'label':_0x1fee83[_0xff562f(0x225)],'class':[_0xff562f(0x1e9)],'withText':!0x0});const _0x3cbe0e=this[_0xff562f(0x212)];if(this[_0xff562f(0x1c7)]({'on':{'click':_0x3cbe0e['to'](()=>{const _0x5326b0=_0xff562f;window[_0x5326b0(0x1da)](_0x1fee83[_0x5326b0(0x223)],_0x5326b0(0x1bd));}),'mouseenter':_0x3cbe0e['to'](()=>{const _0x87d03e=_0xff562f;this[_0x87d03e(0x1b9)]();}),'mouseleave':_0x3cbe0e['to'](()=>{const _0x4ac073=_0xff562f;this[_0x4ac073(0x1c6)]();})}}),_0x1fee83[_0xff562f(0x1ea)]){const _0x4fabf2=new _0x47bbbc(_0x3dd195);_0x4fabf2[_0xff562f(0x20b)]({'tag':_0xff562f(0x1e0),'attributes':{'src':_0x1fee83[_0xff562f(0x1ea)]||_0x22dc5d,'alt':_0x1fee83[_0xff562f(0x225)],'class':[_0xff562f(0x208)]}}),this[_0xff562f(0x222)][_0xff562f(0x1f9)](_0x4fabf2);}else this[_0xff562f(0x21e)](_0xff562f(0x205),_0x22dc5d);}[_0x9050c6(0x1b7)](_0x3852eb,_0x31bac7){const _0x324eeb=_0x9050c6,_0x5cfc53=new _0x47bbbc(_0x3852eb),_0x5536b5=[];let _0x270509;_0x31bac7?.[_0x324eeb(0x1ea)]?(_0x270509=new _0x47bbbc(_0x3852eb),_0x270509[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x1e0),'attributes':{'src':_0x31bac7[_0x324eeb(0x1ea)],'alt':_0x31bac7[_0x324eeb(0x225)],'class':[_0x324eeb(0x1fc)]}})):(_0x270509=new _0x50a867(),_0x270509[_0x324eeb(0x1f7)]=_0x22dc5d,_0x270509[_0x324eeb(0x1c7)]({'attributes':{'alt':_0x31bac7[_0x324eeb(0x225)],'class':[_0x324eeb(0x1fc)]}})),_0x5536b5[_0x324eeb(0x1e6)](_0x270509);const _0x4f8adb=new _0x47bbbc(_0x3852eb);_0x4f8adb[_0x324eeb(0x20b)]({'tag':'a','attributes':{'class':[_0x324eeb(0x20d)],'href':_0x31bac7[_0x324eeb(0x223)]},'children':[{'text':new URL(_0x31bac7[_0x324eeb(0x223)])?.[_0x324eeb(0x224)]}]}),_0x5536b5[_0x324eeb(0x1e6)](_0x4f8adb);const _0x47c24a=new _0x47bbbc(_0x3852eb);_0x47c24a[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x21b),'attributes':{'class':[_0x324eeb(0x1f6)]},'children':_0x5536b5});const _0x1f5810=new _0x47bbbc(_0x3852eb);return _0x1f5810[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x1af),'attributes':{'class':[_0x324eeb(0x1f6),_0x324eeb(0x1df)]},'children':[{'text':_0x31bac7[_0x324eeb(0x225)][_0x324eeb(0x1e1)]>0x190?_0x31bac7[_0x324eeb(0x225)][_0x324eeb(0x1c4)](0x0,0x190)+_0x324eeb(0x1b2):_0x31bac7[_0x324eeb(0x225)]}]}),_0x5cfc53[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x21b),'attributes':{'class':['ck',_0x324eeb(0x1ba)]},'children':[_0x47c24a,_0x1f5810]}),_0x5cfc53;}[_0x9050c6(0x1b9)](){const _0x2b93bd=_0x9050c6;this[_0x2b93bd(0x214)](),this[_0x2b93bd(0x1d0)][_0x2b93bd(0x20c)]({'target':this[_0x2b93bd(0x206)],'positions':[_0x4f5cb8[_0x2b93bd(0x20f)][_0x2b93bd(0x1ce)],_0x4f5cb8[_0x2b93bd(0x20f)][_0x2b93bd(0x217)],_0x4f5cb8[_0x2b93bd(0x20f)][_0x2b93bd(0x21f)]],'limiter':document[_0x2b93bd(0x1c2)](_0x2b93bd(0x221))}),this[_0x2b93bd(0x1d0)][_0x2b93bd(0x1b0)]();}[_0x9050c6(0x1c6)](){const _0x20e43e=_0x9050c6;this[_0x20e43e(0x1d0)][_0x20e43e(0x1b4)]();}[_0x9050c6(0x214)](){const _0x2afef2=_0x9050c6;this[_0x2afef2(0x1d0)][_0x2afef2(0x1f7)][_0x2afef2(0x1bf)](0x0)?.[_0x2afef2(0x201)](),this[_0x2afef2(0x1d0)][_0x2afef2(0x1f7)][_0x2afef2(0x1d6)]();const _0x77eed3=this[_0x2afef2(0x1b7)](this[_0x2afef2(0x1b8)],this[_0x2afef2(0x203)]);this[_0x2afef2(0x1d0)][_0x2afef2(0x1f7)][_0x2afef2(0x1f9)](_0x77eed3);}}