@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.0

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 (288) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  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/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.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/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  282. package/src/aitabs/aitabs.js +1 -1
  283. package/src/aitabs/aitabsmainview.js +1 -1
  284. package/src/aitabs/tabs/aitabsview.js +1 -1
  285. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  286. package/src/aitabs/tabs/tabpanelview.js +1 -1
  287. package/src/errors.js +1 -1
  288. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x410544=_0x6d10;(function(_0x37f2d4,_0x25d5ff){const _0x59ec0b=_0x6d10,_0x128f80=_0x37f2d4();while(!![]){try{const _0x40721c=-parseInt(_0x59ec0b(0x23d))/0x1*(-parseInt(_0x59ec0b(0x1c5))/0x2)+-parseInt(_0x59ec0b(0x1dc))/0x3*(-parseInt(_0x59ec0b(0x258))/0x4)+-parseInt(_0x59ec0b(0x24e))/0x5*(parseInt(_0x59ec0b(0x1e1))/0x6)+-parseInt(_0x59ec0b(0x1bc))/0x7+parseInt(_0x59ec0b(0x1c7))/0x8+parseInt(_0x59ec0b(0x249))/0x9+-parseInt(_0x59ec0b(0x1c2))/0xa;if(_0x40721c===_0x25d5ff)break;else _0x128f80['push'](_0x128f80['shift']());}catch(_0xca6a7e){_0x128f80['push'](_0x128f80['shift']());}}}(_0x2f80,0xe0b60));import{Plugin as _0x51632c}from'ckeditor5/src/core.js';import{AIConnector as _0x5d3ec2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x343e78}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x4fd0bc,ButtonView as _0x27534c,ViewCollection as _0x5b82a8,View as _0x5b2a42}from'ckeditor5/src/ui.js';import{AIEditing as _0x25f74e}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4f0ffc}from'./model/aiactionsinteraction.js';import{first as _0x520196}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1959ee,IconRefresh as _0x5cd54c,IconNextArrow as _0x357da0,IconPreviousArrow as _0x5e5e45,IconShowChangesOff as _0x4283d4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x461234}from'../aiballoon/aiballoon.js';function _0x2f80(){const _0x1bd81d=['isPremiumPlugin','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20during\x20navigation:','insert','ck-ai-custom-action-button','abort','AIActions','13065534fACLeu','rejected','_appendChild','startsWith','getSelectionAsFragment','7842025mVNnbD','clearLoading','document','Error\x20updating\x20content\x20in\x20replyCreated:','documentFragment','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_getExecuteDataInTable','length','toData','hideLoader','3236TqfFwi','_setLoadingState','setLoading','sourcePosition','setChangeGroupState','addOperation','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','getSelectedContent','nextSibling','indexOf','_customViews','random','getOperations','get','isLoading','replyCreated','replyContentUpdated','element','history','bind','bodyView','reinsert','AIBalloon','execute','queueEmptyPromise','_execute','AI_ACTIONS_TRY_AGAIN','_currentInteractionIndex','processor','clone','_navigateToNext','_setErrorState','static','_navigationCounter','accepted','mainView','change','_clearSuggestionContent','isCollapsed','actionName','nodeAfter','_aiConnector','setErrorState','start','getDocumentContext','isEnabled','AI_ACTIONS_NEXT_INTERACTION','_clearLoadingState','set','createPositionAt','selection','first','position','applyOperation','pending','_navigateToPrevious','includes','parent','modelToViewWithIds','applySuggestion','AI_ACTIONS_PREVIOUS_INTERACTION','Attribute','batch','showChangesButton','_refreshInteraction','stickiness','createPositionBefore','2360253SVceaJ','hasError','areChangesVisible','add','operationsA','isOfficialPlugin','32933070TcRplM','has','_navigationPreviousButton','862ZSUxGR','filter','11812648zZTazR','move','setSelection','setTemplate','upsertAIActionRating','Error\x20refreshing\x20interaction:','getCommonAncestor','replyChangeGroupStateUpdated','catch','interactionFinished','merge','signal','_anchorOperation','root','path','miniToolbarView','_isNavigationPreviousButtonInView','_interactionParams','dialogClosed','_children','span','5301gCoOBd','showError','_stopInteraction','_wrapWithCommonAncestors','getChild','6CtBXvJ','_applyChanges','getChildAtOffset','stopListening','editor','model','type','pluginName','rootName','actionCallId','TableSelection','TrackChangesEditing','_createInteraction','_executeAction','1/1','message','data','rename','ck-ai-interaction-counter','streaming','_interaction','hasPendingParts','map','changeGroups','upsertCustomAIActionRating','Error\x20updating\x20content\x20in\x20replyContentUpdated:','removeNavigationItem','_clone','error','_promiseQueue','toolbar','updateContent','_navigationNextButton','isBusy','slice','open','listenTo','split','ai-request-aborted','_clearInteractionHistory','_isNavigationNextButtonInView','ck-ai-navigation-button\x20ck-ai-next-button','getRanges','balloonView','getSelectedBlocks','_interactions','enqueue','_isNavigationCounterInView','insertSuggestion','AIConnector','getLimitElement','getRoot','_displayInteractionAtIndex','aiBalloon','_balloonShowDiff','_setupCustomViews','end','schema','hideError','_applyOperationsAsSuggestions','isDocumentOperation','remove','createRange','locale','_filterOperationsOutsideRange','push','getAncestors','replies','focus','ck-ai-navigation-button\x20ck-ai-previous-button','createPositionAfter','AI_ACTIONS_GENERIC_ERROR','showLoader','range','_isAbortError','textContent','_getExecuteDataRegular','close','state','baseVersion','howMany','documentContextContent','_updateNavigationUI','version','requires','stopInteraction','addNavigationItem','stop','_clearErrorState','getFirstRange','clearErrorState','plugins','4087yKRzxE','icon','executeAction','$graveyard','getSelectedTableCells'];_0x2f80=function(){return _0x1bd81d;};return _0x2f80();}import{PromiseQueue as _0x3710f6}from'../aichat/utils/promisequeue.js';function _0x6d10(_0x3b9e95,_0x4490bb){const _0x2f8043=_0x2f80();return _0x6d10=function(_0x6d10dd,_0x5e7c4b){_0x6d10dd=_0x6d10dd-0x1af;let _0x49fb74=_0x2f8043[_0x6d10dd];return _0x49fb74;},_0x6d10(_0x3b9e95,_0x4490bb);}import{getTranslation as _0x1933ba}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x37135b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x195bd6}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0xf3c669}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x413ac3,ModelRange as _0x50f276,ModelPosition as _0x51cfb4,_DetachOperation as _0x18765a,transformOperationSets as _0x157373}from'ckeditor5/src/engine.js';export class AIActions extends _0x51632c{static get[_0x410544(0x235)](){return[_0x5d3ec2,_0x4fd0bc,_0x25f74e,_0x461234,_0x195bd6];}static get[_0x410544(0x1e8)](){const _0xd93c88=_0x410544;return _0xd93c88(0x248);}static get[_0x410544(0x1c1)](){return!0x0;}static get[_0x410544(0x242)](){return!0x0;}[_0x410544(0x281)];[_0x410544(0x20e)]=[];[_0x410544(0x273)]=0x0;[_0x410544(0x1d8)];[_0x410544(0x217)]=!0x1;[_0x410544(0x262)]=new _0x5b82a8();[_0x410544(0x1c4)];[_0x410544(0x279)];[_0x410544(0x210)]=!0x1;[_0x410544(0x201)];[_0x410544(0x1d7)]=!0x1;[_0x410544(0x209)]=!0x1;[_0x410544(0x1fe)];get[_0x410544(0x1f5)](){const _0x9186b=_0x410544;return this[_0x9186b(0x20e)][this[_0x9186b(0x20e)][_0x9186b(0x255)]-0x1];}constructor(_0x58291f){const _0x402a4f=_0x410544;super(_0x58291f),this[_0x402a4f(0x281)]=this[_0x402a4f(0x1e5)][_0x402a4f(0x23c)][_0x402a4f(0x265)](_0x402a4f(0x212)),this[_0x402a4f(0x288)](_0x402a4f(0x202),!0x1),this[_0x402a4f(0x1fe)]=new _0x3710f6(),this[_0x402a4f(0x218)]();}[_0x410544(0x236)](){const _0x359ab1=_0x410544;this[_0x359ab1(0x1de)]();}async[_0x410544(0x23f)](_0x12fa92,_0xe65920,_0x59b323){const _0x43ce35=_0x410544;if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x1c3)](_0x43ce35(0x1eb))){if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x265)](_0x43ce35(0x1eb))[_0x43ce35(0x241)]()){const {modelFragment:_0x1e2797,anchorData:_0x2e5471}=this[_0x43ce35(0x254)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x1e2797,_0x2e5471,_0xe65920,_0x59b323);}}const {modelFragment:_0x34e5bd,anchorData:_0x4f84b5}=this[_0x43ce35(0x22d)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x34e5bd,_0x4f84b5,_0xe65920,_0x59b323);}[_0x410544(0x22d)](){const _0x3d569c=_0x410544,_0x34e567=this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x250)][_0x3d569c(0x28a)];if(_0x34e567[_0x3d569c(0x27e)]){const _0x62560a=_0x520196(_0x34e567[_0x3d569c(0x20d)]())||this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x21a)][_0x3d569c(0x213)](_0x34e567);this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x27c)](_0x213303=>{const _0xc8ad5d=_0x3d569c;_0x213303[_0xc8ad5d(0x1c9)](_0x62560a,'in');});}const _0xcc499d=_0x34e567[_0x3d569c(0x23a)](),_0x2989a6=this[_0x3d569c(0x1df)](this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x25f)](_0x34e567),_0xcc499d[_0x3d569c(0x283)],_0xcc499d[_0x3d569c(0x219)]),_0x284462=_0x34e567[_0x3d569c(0x23a)]()[_0x3d569c(0x283)],_0x2061aa=new Map();let _0x2a175a=_0x2989a6;for(let _0x549b31=0x0;_0x549b31<_0x284462[_0x3d569c(0x1d5)][_0x3d569c(0x255)];_0x549b31++)_0x2061aa[_0x3d569c(0x288)](_0x2a175a,_0x284462[_0x3d569c(0x1d5)][_0x549b31]),_0x2a175a=_0x2a175a[_0x3d569c(0x1e0)](0x0);return{'modelFragment':_0x2989a6,'anchorData':_0x2061aa};}[_0x410544(0x254)](){const _0x1ca93e=_0x410544,_0x2201ed=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x250)][_0x1ca93e(0x28a)],_0x2af650=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x23c)][_0x1ca93e(0x265)](_0x1ca93e(0x1eb))[_0x1ca93e(0x24d)](),_0x2bfcaf=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)][_0x1ca93e(0x1b2)][_0x1ca93e(0x1b2)],_0x6a0ca4=this[_0x1ca93e(0x1df)](_0x2af650,this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x1bb)](_0x2bfcaf),this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x227)](_0x2bfcaf)),_0x478247=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)],_0x308a7d=new Map();let _0xba8748=_0x6a0ca4;for(let _0x42c246=0x0;_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)];_0x42c246++)if(_0x308a7d[_0x1ca93e(0x288)](_0xba8748,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)]-0x1)_0xba8748=_0xba8748[_0x1ca93e(0x1e0)](0x0);else{let _0x36896e=_0xba8748[_0x1ca93e(0x260)];for(;_0x36896e;)_0x308a7d[_0x1ca93e(0x288)](_0x36896e,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x36896e=_0x36896e[_0x1ca93e(0x260)];}return{'modelFragment':_0x6a0ca4,'anchorData':_0x308a7d};}[_0x410544(0x1ee)](_0x4ca9c1,_0x139cbe,_0x3a0226,_0x48ab60,_0x5dcb3f){const _0x23dfea=_0x410544,_0x38fd28=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x25f74e),_0x18773b=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x461234),_0x1747f6=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x28a)],_0x186dec=_0x38fd28[_0x23dfea(0x1b3)](_0x139cbe),_0x2cf112=this[_0x23dfea(0x1e5)][_0x23dfea(0x1f1)][_0x23dfea(0x274)][_0x23dfea(0x256)](_0x186dec),_0x4ecb4c=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x234)],_0x1c4f98=[..._0x1747f6[_0x23dfea(0x20b)]()],_0x187ac8=new _0x343e78(this[_0x23dfea(0x1e5)][_0x23dfea(0x220)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x23dfea(0x23e),'customView':this[_0x23dfea(0x262)]},'showUnchangedParts':!0x0});return _0x18773b[_0x23dfea(0x204)]({'index':0x3e8*Math[_0x23dfea(0x263)]()%0x3e8,'title':_0x48ab60,'icon':_0x5dcb3f||_0x1959ee,'mainView':_0x187ac8,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x1c4f98}),this[_0x23dfea(0x259)](_0x187ac8,_0x18773b),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1b4),()=>{const _0x1a54f4=_0x23dfea;this[_0x1a54f4(0x1e2)](_0x139cbe,_0x3a0226,!0x1);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x211),()=>{const _0x3164a4=_0x23dfea;this[_0x3164a4(0x1e2)](_0x139cbe,_0x3a0226,!0x0);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1d9),()=>{const _0xb2a046=_0x23dfea;if(this[_0xb2a046(0x1f5)]&&this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]>0x0){const _0x54d18e=this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]-0x1],_0xb04b48=_0x54d18e[_0xb2a046(0x1f8)][0x0];_0xb04b48&&_0xb2a046(0x1af)===_0xb04b48[_0xb2a046(0x22f)]&&_0x54d18e[_0xb2a046(0x25c)](0x0,_0xb2a046(0x24a));}this[_0xb2a046(0x1de)](),this[_0xb2a046(0x208)](),this[_0xb2a046(0x1e4)](_0x18773b);}),this[_0x23dfea(0x1ed)](_0x2cf112,_0x4ecb4c,_0x187ac8,_0x18773b,_0x4ca9c1);}[_0x410544(0x1df)](_0x47da69,_0x2b5673,_0x357fc6){const _0x4d14bd=_0x410544,_0x2e06d0=this[_0x4d14bd(0x1e5)][_0x4d14bd(0x1e6)][_0x4d14bd(0x21f)](_0x2b5673,_0x357fc6)[_0x4d14bd(0x1cd)](),_0x267347=_0x2e06d0['is'](_0x4d14bd(0x252))?[]:_0x2e06d0[_0x4d14bd(0x223)]({'includeSelf':!0x0})[_0x4d14bd(0x203)](0x1);if(_0x267347[_0x4d14bd(0x255)]){const _0x34bf1b=_0x267347[_0x4d14bd(0x1f7)](_0x1e0040=>_0x1e0040[_0x4d14bd(0x1fc)](!0x1));for(let _0x27efe4=0x1;_0x27efe4<_0x34bf1b[_0x4d14bd(0x255)];_0x27efe4++)_0x34bf1b[_0x27efe4-0x1][_0x4d14bd(0x24b)](_0x34bf1b[_0x27efe4]);return _0x34bf1b[_0x34bf1b[_0x4d14bd(0x255)]-0x1][_0x4d14bd(0x24b)](_0x47da69),new _0x413ac3(_0x34bf1b[0x0]);}return _0x47da69;}async[_0x410544(0x1ed)](_0x4cc174,_0x3eae39,_0x588589,_0x38d19a,_0x3cf167){const _0xb20bdc=_0x410544,_0xad0c25=this[_0xb20bdc(0x1e5)];this[_0xb20bdc(0x1d8)]={'action':_0x3cf167,'content':_0x4cc174,'version':_0x3eae39,'mainView':_0x588589,'aiBalloon':_0x38d19a};const _0x152674=new _0x4f0ffc({'connector':this[_0xb20bdc(0x281)],'editor':_0xad0c25,'content':_0x4cc174,'version':_0x3eae39,..._0x3cf167});this[_0xb20bdc(0x20e)][_0xb20bdc(0x222)](_0x152674),_0x588589[_0xb20bdc(0x21b)]();const _0x1a2fe0=(_0x53c181,_0x197aa0,_0x3dad7d=!0x1,_0x19ea05=_0xb20bdc(0x1f4))=>this[_0xb20bdc(0x1fe)][_0xb20bdc(0x20f)](async _0x304942=>{const _0x15d4fd=_0xb20bdc;try{const _0x372ac9=_0x37135b({'editor':_0xad0c25,'changeGroups':_0x53c181[_0x15d4fd(0x1f8)],'documentContextContent':_0x53c181[_0x15d4fd(0x232)],'showDiff':_0x3dad7d,'trimUnchanged':!0x1});await _0x197aa0[_0x15d4fd(0x200)]({'parts':_0x372ac9,'renderingStrategy':_0x19ea05,'abortSignal':_0x304942});}catch(_0x410c49){if(this[_0x15d4fd(0x22b)](_0x410c49))return;throw _0x410c49;}});this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x267),(_0x2c5e14,_0x46d5ce)=>{const _0x23c2fe=_0xb20bdc;_0x588589[_0x23c2fe(0x257)](),_0x1a2fe0(_0x46d5ce,_0x588589)[_0x23c2fe(0x1cf)](_0x346b1f=>{const _0x4efea1=_0x23c2fe;this[_0x4efea1(0x22b)](_0x346b1f)||(console[_0x4efea1(0x1fd)](_0x4efea1(0x251),_0x346b1f),this[_0x4efea1(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x268),(_0x311bdd,_0x23ba09)=>{const _0xefc9f=_0xb20bdc;_0x1a2fe0(_0x23ba09,_0x588589)[_0xefc9f(0x1cf)](_0x528575=>{const _0x2a7b7c=_0xefc9f;this[_0x2a7b7c(0x22b)](_0x528575)||(console[_0x2a7b7c(0x1fd)](_0x2a7b7c(0x1fa),_0x528575),this[_0x2a7b7c(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1d0),async()=>{const _0x41e6e3=_0xb20bdc;try{await this[_0x41e6e3(0x287)](_0x588589,_0x38d19a),this[_0x41e6e3(0x233)]();}catch(_0x466849){this[_0x41e6e3(0x22b)](_0x466849)||(console[_0x41e6e3(0x1fd)](_0x41e6e3(0x253),_0x466849),this[_0x41e6e3(0x277)](_0x152674,_0x588589));}}),this[_0xb20bdc(0x205)](_0x588589,_0xb20bdc(0x243),(_0x4182a1,{showDiff:_0x488ca8})=>{const _0x3776ff=_0xb20bdc;this[_0x3776ff(0x217)]=_0x488ca8;const _0x5e6de4=this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][_0x3776ff(0x255)]-0x1];_0x5e6de4&&_0x1a2fe0(_0x5e6de4,_0x588589,_0x488ca8,_0x3776ff(0x278))[_0x3776ff(0x1cf)](_0x35ba7b=>{const _0x2e9586=_0x3776ff;this[_0x2e9586(0x22b)](_0x35ba7b)||(console[_0x2e9586(0x1fd)](_0x2e9586(0x25e),_0x35ba7b),this[_0x2e9586(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1ce),(_0x48b825,{reply:_0x5dc3d6})=>{const _0x58479d=_0xb20bdc,_0x24b709={'positiveCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x1c6)](_0x582ba0=>_0x58479d(0x27a)===_0x582ba0[_0x58479d(0x22f)])[_0x58479d(0x255)],'totalCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x255)]},_0x3a3f1a=this[_0x58479d(0x1f5)][_0x58479d(0x1ea)],_0x52ec98=this[_0x58479d(0x1f5)][_0x58479d(0x27f)];_0x52ec98?this[_0x58479d(0x281)][_0x58479d(0x1cb)](_0x52ec98,_0x3a3f1a,_0x24b709):this[_0x58479d(0x281)][_0x58479d(0x1f9)](_0x3a3f1a,_0x24b709);}),this[_0xb20bdc(0x259)](_0x588589,_0x38d19a);try{const _0x7d65a1=await this[_0xb20bdc(0x1f5)][_0xb20bdc(0x283)]();return this[_0xb20bdc(0x233)](),_0x7d65a1;}catch(_0x921ef1){if(this[_0xb20bdc(0x22b)](_0x921ef1))return;_0x588589[_0xb20bdc(0x257)](),this[_0xb20bdc(0x277)](_0x152674,_0x588589);}}[_0x410544(0x1e2)](_0x25b7a2,_0x59f186,_0x4b053c){const _0x4f3840=_0x410544,_0x38ffd8=this[_0x4f3840(0x1e5)],_0x3fcbf1=this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x195bd6),_0x3b6ce9=this[_0x4f3840(0x1f5)],_0x58b92f=this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][_0x4f3840(0x255)]-0x1],_0x4f9072=_0x58b92f[_0x4f3840(0x1f8)];_0x58b92f[_0x4f3840(0x25c)](0x0,_0x4f3840(0x27a));let _0x4fed40=_0xf3c669({'editor':_0x38ffd8,'reply':_0x58b92f,'interaction':_0x3b6ce9,'groups':_0x4f9072,'transform':!0x1,'documentCompare':_0x3fcbf1,'documentCompareOptions':{'anchor':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x289)](_0x25b7a2,0x0),'markDeletions':_0x4b053c}});_0x4fed40=this[_0x4f3840(0x221)](_0x4fed40,_0x59f186);for(const _0x1f5915 of _0x4fed40)this[_0x4f3840(0x1d3)](_0x59f186,_0x1f5915,_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x214)]());const _0x3e0975=_0x3b6ce9[_0x4f3840(0x284)]()[_0x4f3840(0x234)],_0x3d9d4c=_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x26a)][_0x4f3840(0x264)](_0x3e0975),_0x156384={'document':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2daeec=_0x157373(_0x4fed40,_0x3d9d4c,_0x156384)[_0x4f3840(0x1c0)];_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x27c)](_0x5212bf=>{const _0x316d82=_0x4f3840;if(_0x5212bf[_0x316d82(0x1c9)](_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x28a)][_0x316d82(0x225)]),_0x4b053c)_0x38ffd8[_0x316d82(0x23c)][_0x316d82(0x265)](_0x316d82(0x1ec))[_0x316d82(0x21c)](_0x2daeec);else{for(const _0x383a36 of _0x2daeec)_0x383a36[_0x316d82(0x230)]=_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x234)],_0x5212bf[_0x316d82(0x1b7)][_0x316d82(0x25d)](_0x383a36),_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x28d)](_0x383a36);}}),this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x4f3840(0x26e))[_0x4f3840(0x22e)]();}[_0x410544(0x221)](_0x4c0d85,_0x4a9a8b){const _0x514a2f=_0x410544;return _0x4c0d85[_0x514a2f(0x1c6)](_0x569456=>{const _0x3af971=_0x514a2f;if(_0x3af971(0x1f2)==_0x569456[_0x3af971(0x1e7)]){const _0x55c8a9=_0x569456[_0x3af971(0x28c)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x55c8a9);}if(_0x569456[_0x3af971(0x1e7)][_0x3af971(0x261)](_0x3af971(0x1b6))>-0x1){const _0x1a8eac=_0x569456[_0x3af971(0x22a)][_0x3af971(0x283)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x1a8eac);}return!0x0;});}[_0x410544(0x1d3)](_0x2e70d9,_0x48a445,_0x277b38){const _0x429831=_0x410544,_0x4afcbf=_0x48a445[_0x429831(0x275)]();for(const _0x3507bf in _0x48a445){const _0xde5f58=_0x48a445[_0x3507bf];_0xde5f58 instanceof _0x50f276?_0x48a445[_0x3507bf]=new _0x50f276(_0x5a2766(_0xde5f58[_0x429831(0x283)]),_0x5a2766(_0xde5f58[_0x429831(0x219)])):_0xde5f58 instanceof _0x51cfb4&&(_0x48a445[_0x3507bf]=_0x5a2766(_0xde5f58));}if([_0x429831(0x245),_0x429831(0x1c8),_0x429831(0x21e),_0x429831(0x26d),_0x429831(0x206),_0x429831(0x1d1)][_0x429831(0x1b1)](_0x4afcbf[_0x429831(0x1e7)])){if(_0x4afcbf[_0x429831(0x21d)]=!0x1,_0x4afcbf[_0x429831(0x230)]=null,_0x429831(0x21e)==_0x4afcbf[_0x429831(0x1e7)]){const _0x1b6224=_0x4afcbf[_0x429831(0x25b)],_0x4fbe15=_0x4afcbf[_0x429831(0x231)];new _0x18765a(_0x1b6224,_0x4fbe15)[_0x429831(0x271)]();}else _0x4afcbf[_0x429831(0x271)]();}function _0x5a2766(_0x1a8782){const _0x2ede8a=_0x429831;if(_0x2ede8a(0x240)==_0x1a8782[_0x2ede8a(0x1d4)][_0x2ede8a(0x1e9)])return _0x1a8782;const _0x1ba70e=[];let _0x24d46a=_0x1a8782[_0x2ede8a(0x1d4)];for(let _0x46aa20=0x0;_0x46aa20<_0x1a8782[_0x2ede8a(0x1d5)][_0x2ede8a(0x255)];_0x46aa20++){const _0xc38a55=_0x2e70d9[_0x2ede8a(0x265)](_0x24d46a)||0x0;_0x1ba70e[_0x46aa20]=_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]+_0xc38a55,_0x24d46a=_0x24d46a[_0x2ede8a(0x1e3)](_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]);}return new _0x51cfb4(_0x277b38,_0x1ba70e,_0x1a8782[_0x2ede8a(0x1ba)]);}}[_0x410544(0x1b9)](){const _0x4c3f1a=_0x410544;if(!this[_0x4c3f1a(0x1d8)])return;this[_0x4c3f1a(0x20e)][_0x4c3f1a(0x255)]>0x0&&this[_0x4c3f1a(0x1de)](),this[_0x4c3f1a(0x273)]=0x0,this[_0x4c3f1a(0x217)]=!0x1;const {action:_0x4f4c36,content:_0xb20a06,version:_0x86ab85,mainView:_0x75ee74,aiBalloon:_0x98803d}=this[_0x4c3f1a(0x1d8)];_0x75ee74[_0x4c3f1a(0x1be)]=!0x1,_0x75ee74[_0x4c3f1a(0x21b)](),this[_0x4c3f1a(0x239)](_0x75ee74,_0x98803d);const _0x3a504e=_0x75ee74;_0x3a504e[_0x4c3f1a(0x1d6)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)][_0x4c3f1a(0x288)]({'isOn':!0x1,'icon':_0x4283d4}),this[_0x4c3f1a(0x27d)](_0x75ee74),_0x75ee74[_0x4c3f1a(0x229)](),this[_0x4c3f1a(0x233)](),this[_0x4c3f1a(0x1ed)](_0xb20a06,_0x86ab85,_0x75ee74,_0x98803d,_0x4f4c36)[_0x4c3f1a(0x1cf)](_0x1820ec=>{const _0x4dacf8=_0x4c3f1a;this[_0x4dacf8(0x22b)](_0x1820ec)||console[_0x4dacf8(0x1fd)](_0x4dacf8(0x1cc),_0x1820ec);});}[_0x410544(0x27d)](_0x55f43f){const _0x424410=_0x410544,_0x4e7d15=_0x55f43f[_0x424410(0x26c)][_0x424410(0x1da)];for(;_0x4e7d15[_0x424410(0x255)]>0x0;)_0x4e7d15[_0x424410(0x21e)](_0x4e7d15[_0x424410(0x28b)]);_0x55f43f[_0x424410(0x26c)][_0x424410(0x1f6)]=!0x1;}[_0x410544(0x22b)](_0x36434f){const _0x22bacd=_0x410544;return!!_0x36434f[_0x22bacd(0x1f0)]&&_0x36434f[_0x22bacd(0x1f0)][_0x22bacd(0x24c)](_0x22bacd(0x207));}[_0x410544(0x208)](){const _0x46eeb2=_0x410544;this[_0x46eeb2(0x20e)]=[],this[_0x46eeb2(0x1d8)]=void 0x0,this[_0x46eeb2(0x273)]=0x0,this[_0x46eeb2(0x233)]();}[_0x410544(0x1de)](){const _0x41909a=_0x410544;this[_0x41909a(0x1f5)]&&this[_0x41909a(0x1f5)][_0x41909a(0x238)](),this[_0x41909a(0x1fe)][_0x41909a(0x247)](),this[_0x41909a(0x202)]=!0x1;}[_0x410544(0x218)](){const _0x16dcc2=_0x410544,_0x27a20=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x204668=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x4b5fe4=new _0x5b2a42(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x5a3cb2=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]);_0x27a20[_0x16dcc2(0x288)]({'icon':_0x5cd54c,'label':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x272)),'tooltip':!0x0,'class':_0x16dcc2(0x246)}),_0x204668[_0x16dcc2(0x288)]({'icon':_0x5e5e45,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x1b5)),'class':_0x16dcc2(0x226)}),_0x4b5fe4[_0x16dcc2(0x1ca)]({'tag':_0x16dcc2(0x1db),'attributes':{'class':[_0x16dcc2(0x1f3)]},'children':[_0x16dcc2(0x1ef)]}),_0x5a3cb2[_0x16dcc2(0x288)]({'icon':_0x357da0,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x286)),'class':_0x16dcc2(0x20a)}),_0x27a20[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x345c0c=>!_0x345c0c),_0x27a20['on'](_0x16dcc2(0x26f),()=>{const _0x4af22c=_0x16dcc2;this[_0x4af22c(0x1b9)]();}),_0x204668[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x2fb754=>!_0x2fb754),_0x204668['on'](_0x16dcc2(0x26f),()=>{const _0x25c0d2=_0x16dcc2;this[_0x25c0d2(0x1b0)]();}),_0x5a3cb2[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x393d1f=>!_0x393d1f),_0x5a3cb2['on'](_0x16dcc2(0x26f),()=>{const _0x60a7c9=_0x16dcc2;this[_0x60a7c9(0x276)]();}),this[_0x16dcc2(0x1c4)]=_0x204668,this[_0x16dcc2(0x279)]=_0x4b5fe4,this[_0x16dcc2(0x201)]=_0x5a3cb2,this[_0x16dcc2(0x262)][_0x16dcc2(0x1bf)](_0x27a20);}[_0x410544(0x1b0)](){const _0x33ca77=_0x410544,_0x547c8e=this[_0x33ca77(0x20e)][_0x33ca77(0x255)];this[_0x33ca77(0x273)]<_0x547c8e-0x1&&this[_0x33ca77(0x215)](this[_0x33ca77(0x273)]+0x1);}[_0x410544(0x276)](){const _0x51810e=_0x410544;this[_0x51810e(0x273)]>0x0&&this[_0x51810e(0x215)](this[_0x51810e(0x273)]-0x1);}async[_0x410544(0x215)](_0x2adc14){const _0xbcc471=_0x410544;if(!this[_0xbcc471(0x1d8)])return;this[_0xbcc471(0x273)]=_0x2adc14;const {mainView:_0x4b120e}=this[_0xbcc471(0x1d8)],_0x2c1547=this[_0xbcc471(0x20e)][this[_0xbcc471(0x20e)][_0xbcc471(0x255)]-0x1-this[_0xbcc471(0x273)]];if(!_0x2c1547)return;if(_0x2c1547[_0xbcc471(0x1bd)])return this[_0xbcc471(0x277)](_0x2c1547,_0x4b120e),void this[_0xbcc471(0x233)]();if(!_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)])return;_0x4b120e[_0xbcc471(0x21b)](),this[_0xbcc471(0x1d8)]&&this[_0xbcc471(0x239)](_0x4b120e,this[_0xbcc471(0x1d8)][_0xbcc471(0x216)]);const _0x54489e=_0x2c1547[_0xbcc471(0x224)][_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)]-0x1];if(_0x54489e){const _0x61d889=this[_0xbcc471(0x1e5)];this[_0xbcc471(0x27d)](_0x4b120e);try{const _0x2e5f7b=_0x37135b({'editor':_0x61d889,'changeGroups':_0x54489e[_0xbcc471(0x1f8)],'documentContextContent':_0x54489e[_0xbcc471(0x232)],'showDiff':this[_0xbcc471(0x217)],'trimUnchanged':!0x1});this[_0xbcc471(0x27d)](_0x4b120e),await new Promise(_0x58c58d=>setTimeout(_0x58c58d,0x32)),await _0x4b120e[_0xbcc471(0x200)]({'parts':_0x2e5f7b,'renderingStrategy':_0xbcc471(0x278),'abortSignal':new AbortController()[_0xbcc471(0x1d2)]});}catch(_0x4350ff){this[_0xbcc471(0x22b)](_0x4350ff)||console[_0xbcc471(0x1fd)](_0xbcc471(0x244),_0x4350ff);}}this[_0xbcc471(0x233)]();}[_0x410544(0x233)](){const _0x134f83=_0x410544;if(!this[_0x134f83(0x1c4)]||!this[_0x134f83(0x279)]||!this[_0x134f83(0x201)])return;const _0x185cd5=this[_0x134f83(0x20e)][_0x134f83(0x255)],_0x51422e=_0x185cd5>0x1,_0x25052f=this[_0x134f83(0x1d8)]?.[_0x134f83(0x27b)];if(_0x51422e){this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)]||(this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x0);const _0x45dc37=_0x185cd5-this[_0x134f83(0x273)];this[_0x134f83(0x279)][_0x134f83(0x269)]&&(this[_0x134f83(0x279)][_0x134f83(0x269)][_0x134f83(0x22c)]=_0x45dc37+'/'+_0x185cd5),this[_0x134f83(0x1c4)][_0x134f83(0x285)]=this[_0x134f83(0x273)]<_0x185cd5-0x1,this[_0x134f83(0x201)][_0x134f83(0x285)]=this[_0x134f83(0x273)]>0x0;}else(this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)])&&(this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x1);}[_0x410544(0x259)](_0x4ca1a9,_0x36f1fd){const _0x647178=_0x410544;_0x4ca1a9[_0x647178(0x25a)](),_0x36f1fd[_0x647178(0x20c)][_0x647178(0x25a)](),this[_0x647178(0x202)]=!0x0;}async[_0x410544(0x277)](_0x3ca01d,_0xc0214e){const _0x3a676c=_0x410544,_0x2fa2ea=_0x1933ba(this[_0x3a676c(0x1e5)][_0x3a676c(0x220)],_0x3a676c(0x228));_0xc0214e[_0x3a676c(0x1dd)](_0x2fa2ea),_0x3ca01d[_0x3a676c(0x1bd)]=!0x0,await this[_0x3a676c(0x1fe)][_0x3a676c(0x270)],_0xc0214e[_0x3a676c(0x282)](),this[_0x3a676c(0x1d8)]?.[_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)]&&(this[_0x3a676c(0x1d8)][_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)][_0x3a676c(0x266)]=!0x0);}[_0x410544(0x239)](_0x15acd9,_0x300ce5){const _0x3afcf4=_0x410544;_0x15acd9[_0x3afcf4(0x23b)](),_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)]&&(_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)][_0x3afcf4(0x266)]=!0x1);}async[_0x410544(0x287)](_0x443fc4,_0x31c875){const _0x473d2a=_0x410544;await this[_0x473d2a(0x1fe)][_0x473d2a(0x270)],this[_0x473d2a(0x202)]=!0x1,_0x443fc4[_0x473d2a(0x24f)](),_0x31c875[_0x473d2a(0x20c)][_0x473d2a(0x24f)]();}}
23
+ const _0x2479e0=_0x9c3d;function _0x9c3d(_0x3586fc,_0x58b81e){const _0x385163=_0x3851();return _0x9c3d=function(_0x9c3d5b,_0x86f40a){_0x9c3d5b=_0x9c3d5b-0x15a;let _0x49c35e=_0x385163[_0x9c3d5b];return _0x49c35e;},_0x9c3d(_0x3586fc,_0x58b81e);}(function(_0x33060b,_0x4991f0){const _0x5573ed=_0x9c3d,_0x3d9888=_0x33060b();while(!![]){try{const _0x19877c=parseInt(_0x5573ed(0x1e0))/0x1*(parseInt(_0x5573ed(0x18b))/0x2)+parseInt(_0x5573ed(0x213))/0x3+-parseInt(_0x5573ed(0x1cd))/0x4+parseInt(_0x5573ed(0x22f))/0x5+parseInt(_0x5573ed(0x1bd))/0x6*(parseInt(_0x5573ed(0x1d4))/0x7)+parseInt(_0x5573ed(0x196))/0x8+-parseInt(_0x5573ed(0x1a2))/0x9;if(_0x19877c===_0x4991f0)break;else _0x3d9888['push'](_0x3d9888['shift']());}catch(_0x1b0e6c){_0x3d9888['push'](_0x3d9888['shift']());}}}(_0x3851,0xe95ec));import{Plugin as _0x237fee}from'ckeditor5/src/core.js';import{AIConnector as _0x4af7c2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x9c00ca}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x21b127,ButtonView as _0x4add50,ViewCollection as _0x46fe62,View as _0x1ec23b}from'ckeditor5/src/ui.js';import{AIEditing as _0x96b669}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x188218}from'./model/aiactionsinteraction.js';import{first as _0x5c3470}from'ckeditor5/src/utils.js';function _0x3851(){const _0x4d34b6=['startsWith','message','setLoading','getSelectionAsFragment','getChildAtOffset','replyCreated','hasPendingParts','error','editor','sourcePosition','isCollapsed','1/1','stopInteraction','path','removeNavigationItem','ck-ai-interaction-counter','start','_createInteraction','TableSelection','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','set','add','isDocumentOperation','isLoading','actionCallId','documentContextContent','open','_clearInteractionHistory','miniToolbarView','isPremiumPlugin','setErrorState','toggleSuggestionDisplayMode','queueEmptyPromise','AIBalloon','focus','_isNavigationPreviousButtonInView','setSelection','AI_ACTIONS_TRY_AGAIN','createPositionAt','icon','actionName','document','stopListening','isOfficialPlugin','bodyView','getRoot','reinsert','batch','history','nodeAfter','_applyOperationsAsSuggestions','22reyQkx','clearErrorState','toolbar','showLoader','filter','_refreshInteraction','_aiConnector','Error\x20updating\x20content\x20in\x20replyContentUpdated:','getDocumentContext','state','_filterOperationsOutsideRange','7665264HSrkcB','mainView','documentFragment','AI_ACTIONS_PREVIOUS_INTERACTION','howMany','getLimitElement','stop','split','insert','upsertCustomAIActionRating','dialogClosed','requires','27747099iMasdi','setChangeGroupState','end','stickiness','rootName','applySuggestion','ck-ai-custom-action-button','change','Error\x20updating\x20content\x20during\x20navigation:','changeGroups','addNavigationItem','catch','length','_clearSuggestionContent','upsertAIActionRating','_setLoadingState','slice','close','updateContent','replyChangeGroupStateUpdated','_getExecuteDataRegular','_clearLoadingState','plugins','getOperations','nextSibling','balloonView','Error\x20refreshing\x20interaction:','6VPUEIq','getSelectedTableCells','first','_customViews','getRanges','pluginName','AI_ACTIONS_GENERIC_ERROR','operationsA','createPositionAfter','model','_setErrorState','_navigationNextButton','execute','_applyChanges','clone','createPositionBefore','3063056HXaprc','push','modelToViewWithIds','executeAction','_clearErrorState','replies','clearLoading','10797367uReNAL','processor','_children','insertSuggestion','toData','version','parent','textContent','ck-ai-navigation-button\x20ck-ai-next-button','replyContentUpdated','remove','enqueue','25019ohLMFf','_clone','pending','setTemplate','getChild','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','$graveyard','_executeAction','_displayInteractionAtIndex','position','has','isBusy','_currentInteractionIndex','_interactions','move','getFirstRange','type','static','baseVersion','random','AIConnector','_navigateToPrevious','bind','get','element','createRange','_navigateToNext','signal','applyOperation','accepted','schema','_navigationPreviousButton','aiBalloon','_execute','selection','rejected','_setupCustomViews','_interaction','showError','includes','AI_ACTIONS_NEXT_INTERACTION','Attribute','interactionFinished','_updateNavigationUI','showChangesButton','AIActions','getAncestors','streaming','_appendChild','_interactionParams','ck-ai-navigation-button\x20ck-ai-previous-button','5524593Plwuhc','_getExecuteDataInTable','_isNavigationCounterInView','merge','data','getSelectedBlocks','addOperation','span','range','rename','Error\x20updating\x20content\x20in\x20replyCreated:','_isAbortError','listenTo','abort','locale','_isNavigationNextButtonInView','getSelectedContent','getCommonAncestor','_balloonShowDiff','_navigationCounter','TrackChangesEditing','hasError','hideLoader','map','indexOf','hideError','isEnabled','areChangesVisible','936400rnFApn','_anchorOperation','_promiseQueue','ai-request-aborted','_wrapWithCommonAncestors','root','_stopInteraction'];_0x3851=function(){return _0x4d34b6;};return _0x3851();}import{IconAIQuickActions as _0x362165,IconRefresh as _0x1a5cb6,IconNextArrow as _0x1a6bc0,IconPreviousArrow as _0xc58103,IconShowChangesOff as _0x2c4432}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1671e1}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x769762}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x335cac}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2b0cca}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3ee950}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x50152c}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1e8921,ModelRange as _0x5275ab,ModelPosition as _0x25505,_DetachOperation as _0x1204ad,transformOperationSets as _0x296773}from'ckeditor5/src/engine.js';export class AIActions extends _0x237fee{static get[_0x2479e0(0x1a1)](){return[_0x4af7c2,_0x21b127,_0x96b669,_0x1671e1,_0x3ee950];}static get[_0x2479e0(0x1c2)](){const _0x29edd0=_0x2479e0;return _0x29edd0(0x20d);}static get[_0x2479e0(0x183)](){return!0x0;}static get[_0x2479e0(0x175)](){return!0x0;}[_0x2479e0(0x191)];[_0x2479e0(0x1ed)]=[];[_0x2479e0(0x1ec)]=0x0;[_0x2479e0(0x211)];[_0x2479e0(0x225)]=!0x1;[_0x2479e0(0x1c0)]=new _0x46fe62();[_0x2479e0(0x1ff)];[_0x2479e0(0x226)];[_0x2479e0(0x215)]=!0x1;[_0x2479e0(0x1c8)];[_0x2479e0(0x17b)]=!0x1;[_0x2479e0(0x222)]=!0x1;[_0x2479e0(0x231)];get[_0x2479e0(0x205)](){const _0x26eb15=_0x2479e0;return this[_0x26eb15(0x1ed)][this[_0x26eb15(0x1ed)][_0x26eb15(0x1ae)]-0x1];}constructor(_0x40e251){const _0x14f42f=_0x2479e0;super(_0x40e251),this[_0x14f42f(0x191)]=this[_0x14f42f(0x160)][_0x14f42f(0x1b8)][_0x14f42f(0x1f7)](_0x14f42f(0x1f4)),this[_0x14f42f(0x16c)](_0x14f42f(0x1eb),!0x1),this[_0x14f42f(0x231)]=new _0x769762(),this[_0x14f42f(0x204)]();}[_0x2479e0(0x164)](){const _0x2b87d9=_0x2479e0;this[_0x2b87d9(0x235)]();}async[_0x2479e0(0x1d0)](_0x340927,_0x27bab2,_0x352685){const _0x13541f=_0x2479e0;if(this[_0x13541f(0x160)][_0x13541f(0x1b8)][_0x13541f(0x1ea)](_0x13541f(0x16a))){if(this[_0x13541f(0x160)][_0x13541f(0x1b8)][_0x13541f(0x1f7)](_0x13541f(0x16a))[_0x13541f(0x1be)]()){const {modelFragment:_0x472def,anchorData:_0x5c3662}=this[_0x13541f(0x214)]();return this[_0x13541f(0x1e7)](_0x340927,_0x472def,_0x5c3662,_0x27bab2,_0x352685);}}const {modelFragment:_0x4a2087,anchorData:_0x14a65d}=this[_0x13541f(0x1b6)]();return this[_0x13541f(0x1e7)](_0x340927,_0x4a2087,_0x14a65d,_0x27bab2,_0x352685);}[_0x2479e0(0x1b6)](){const _0x57d34c=_0x2479e0,_0x4bb531=this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x181)][_0x57d34c(0x202)];if(_0x4bb531[_0x57d34c(0x162)]){const _0x419a30=_0x5c3470(_0x4bb531[_0x57d34c(0x218)]())||this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x1fe)][_0x57d34c(0x19b)](_0x4bb531);this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x1a9)](_0x179c34=>{const _0x140626=_0x57d34c;_0x179c34[_0x140626(0x17c)](_0x419a30,'in');});}const _0x34e996=_0x4bb531[_0x57d34c(0x1ef)](),_0x75ffd5=this[_0x57d34c(0x233)](this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x223)](_0x4bb531),_0x34e996[_0x57d34c(0x168)],_0x34e996[_0x57d34c(0x1a4)]),_0x22f5b4=_0x4bb531[_0x57d34c(0x1ef)]()[_0x57d34c(0x168)],_0x2aac6e=new Map();let _0x8e8866=_0x75ffd5;for(let _0x306617=0x0;_0x306617<_0x22f5b4[_0x57d34c(0x165)][_0x57d34c(0x1ae)];_0x306617++)_0x2aac6e[_0x57d34c(0x16c)](_0x8e8866,_0x22f5b4[_0x57d34c(0x165)][_0x306617]),_0x8e8866=_0x8e8866[_0x57d34c(0x1e4)](0x0);return{'modelFragment':_0x75ffd5,'anchorData':_0x2aac6e};}[_0x2479e0(0x214)](){const _0x1497be=_0x2479e0,_0x242623=this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x181)][_0x1497be(0x202)],_0x294240=this[_0x1497be(0x160)][_0x1497be(0x1b8)][_0x1497be(0x1f7)](_0x1497be(0x16a))[_0x1497be(0x15b)](),_0x5dc38b=_0x242623[_0x1497be(0x1ef)]()[_0x1497be(0x168)][_0x1497be(0x1da)][_0x1497be(0x1da)],_0x165851=this[_0x1497be(0x233)](_0x294240,this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x1cc)](_0x5dc38b),this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x1c5)](_0x5dc38b)),_0x3b84a6=_0x242623[_0x1497be(0x1ef)]()[_0x1497be(0x168)],_0x383ebc=new Map();let _0x5b3e3d=_0x165851;for(let _0x4e268d=0x0;_0x4e268d<_0x3b84a6[_0x1497be(0x165)][_0x1497be(0x1ae)];_0x4e268d++)if(_0x383ebc[_0x1497be(0x16c)](_0x5b3e3d,_0x3b84a6[_0x1497be(0x165)][_0x4e268d]),_0x4e268d<_0x3b84a6[_0x1497be(0x165)][_0x1497be(0x1ae)]-0x1)_0x5b3e3d=_0x5b3e3d[_0x1497be(0x1e4)](0x0);else{let _0x703c87=_0x5b3e3d[_0x1497be(0x1ba)];for(;_0x703c87;)_0x383ebc[_0x1497be(0x16c)](_0x703c87,_0x3b84a6[_0x1497be(0x165)][_0x4e268d]),_0x703c87=_0x703c87[_0x1497be(0x1ba)];}return{'modelFragment':_0x165851,'anchorData':_0x383ebc};}[_0x2479e0(0x1e7)](_0x172fc9,_0x2b9544,_0x10275a,_0x2ae408,_0x1fd311){const _0x2c858c=_0x2479e0,_0xf26977=this[_0x2c858c(0x160)][_0x2c858c(0x1b8)][_0x2c858c(0x1f7)](_0x96b669),_0x15e205=this[_0x2c858c(0x160)][_0x2c858c(0x1b8)][_0x2c858c(0x1f7)](_0x1671e1),_0x2e22c1=this[_0x2c858c(0x160)][_0x2c858c(0x1c6)][_0x2c858c(0x181)][_0x2c858c(0x202)],_0x49aeb0=_0xf26977[_0x2c858c(0x1cf)](_0x2b9544),_0x4010c3=this[_0x2c858c(0x160)][_0x2c858c(0x217)][_0x2c858c(0x1d5)][_0x2c858c(0x1d8)](_0x49aeb0),_0x1caa00=this[_0x2c858c(0x160)][_0x2c858c(0x1c6)][_0x2c858c(0x181)][_0x2c858c(0x1d9)],_0x31827b=[..._0x2e22c1[_0x2c858c(0x1c1)]()],_0x3c38c6=new _0x9c00ca(this[_0x2c858c(0x160)][_0x2c858c(0x221)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2c858c(0x17f),'customView':this[_0x2c858c(0x1c0)]},'showUnchangedParts':!0x0});return _0x15e205[_0x2c858c(0x172)]({'index':0x3e8*Math[_0x2c858c(0x1f3)]()%0x3e8,'title':_0x2ae408,'icon':_0x1fd311||_0x362165,'mainView':_0x3c38c6,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x31827b}),this[_0x2c858c(0x1b1)](_0x3c38c6,_0x15e205),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1a7),()=>{const _0x345aff=_0x2c858c;this[_0x345aff(0x1ca)](_0x2b9544,_0x10275a,!0x1);}),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1d7),()=>{const _0x22fbaa=_0x2c858c;this[_0x22fbaa(0x1ca)](_0x2b9544,_0x10275a,!0x0);}),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1a0),()=>{const _0x50a0c0=_0x2c858c;if(this[_0x50a0c0(0x205)]&&this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][_0x50a0c0(0x1ae)]>0x0){const _0x4e7a7e=this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][_0x50a0c0(0x1ae)]-0x1],_0x57fba3=_0x4e7a7e[_0x50a0c0(0x1ab)][0x0];_0x57fba3&&_0x50a0c0(0x1e2)===_0x57fba3[_0x50a0c0(0x194)]&&_0x4e7a7e[_0x50a0c0(0x1a3)](0x0,_0x50a0c0(0x203));}this[_0x50a0c0(0x235)](),this[_0x50a0c0(0x173)](),this[_0x50a0c0(0x182)](_0x15e205);}),this[_0x2c858c(0x169)](_0x4010c3,_0x1caa00,_0x3c38c6,_0x15e205,_0x172fc9);}[_0x2479e0(0x233)](_0x3edc9e,_0x3164d2,_0x2701cf){const _0x57777e=_0x2479e0,_0x35c55e=this[_0x57777e(0x160)][_0x57777e(0x1c6)][_0x57777e(0x1f9)](_0x3164d2,_0x2701cf)[_0x57777e(0x224)](),_0x131847=_0x35c55e['is'](_0x57777e(0x198))?[]:_0x35c55e[_0x57777e(0x20e)]({'includeSelf':!0x0})[_0x57777e(0x1b2)](0x1);if(_0x131847[_0x57777e(0x1ae)]){const _0x305933=_0x131847[_0x57777e(0x22a)](_0x26e3d0=>_0x26e3d0[_0x57777e(0x1e1)](!0x1));for(let _0x209112=0x1;_0x209112<_0x305933[_0x57777e(0x1ae)];_0x209112++)_0x305933[_0x209112-0x1][_0x57777e(0x210)](_0x305933[_0x209112]);return _0x305933[_0x305933[_0x57777e(0x1ae)]-0x1][_0x57777e(0x210)](_0x3edc9e),new _0x1e8921(_0x305933[0x0]);}return _0x3edc9e;}async[_0x2479e0(0x169)](_0x373310,_0x32328d,_0x40f871,_0x510115,_0x26db83){const _0x58bf20=_0x2479e0,_0x41855e=this[_0x58bf20(0x160)];this[_0x58bf20(0x211)]={'action':_0x26db83,'content':_0x373310,'version':_0x32328d,'mainView':_0x40f871,'aiBalloon':_0x510115};const _0x34f731=new _0x188218({'connector':this[_0x58bf20(0x191)],'editor':_0x41855e,'content':_0x373310,'version':_0x32328d,..._0x26db83});this[_0x58bf20(0x1ed)][_0x58bf20(0x1ce)](_0x34f731),_0x40f871[_0x58bf20(0x22c)]();const _0x4de5ea=(_0x56bd3d,_0x40fdf4,_0x4f8863=!0x1,_0x22071b=_0x58bf20(0x20f))=>this[_0x58bf20(0x231)][_0x58bf20(0x1df)](async _0x59d8f3=>{const _0x5238ec=_0x58bf20;try{const _0x57ce30=_0x2b0cca({'editor':_0x41855e,'changeGroups':_0x56bd3d[_0x5238ec(0x1ab)],'documentContextContent':_0x56bd3d[_0x5238ec(0x171)],'showDiff':_0x4f8863,'trimUnchanged':!0x1});await _0x40fdf4[_0x5238ec(0x1b4)]({'parts':_0x57ce30,'renderingStrategy':_0x22071b,'abortSignal':_0x59d8f3});}catch(_0x48e776){if(this[_0x5238ec(0x21e)](_0x48e776))return;throw _0x48e776;}});this[_0x58bf20(0x205)]['on'](_0x58bf20(0x15d),(_0x50c757,_0x359f8c)=>{const _0xab1895=_0x58bf20;_0x40f871[_0xab1895(0x229)](),_0x4de5ea(_0x359f8c,_0x40f871)[_0xab1895(0x1ad)](_0x494574=>{const _0x44ce2e=_0xab1895;this[_0x44ce2e(0x21e)](_0x494574)||(console[_0x44ce2e(0x15f)](_0x44ce2e(0x21d),_0x494574),this[_0x44ce2e(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x1dd),(_0x3fd68d,_0x300660)=>{const _0xf5b49f=_0x58bf20;_0x4de5ea(_0x300660,_0x40f871)[_0xf5b49f(0x1ad)](_0x1c8210=>{const _0x5b7813=_0xf5b49f;this[_0x5b7813(0x21e)](_0x1c8210)||(console[_0x5b7813(0x15f)](_0x5b7813(0x192),_0x1c8210),this[_0x5b7813(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x20a),async()=>{const _0xdbd97c=_0x58bf20;try{await this[_0xdbd97c(0x1b7)](_0x40f871,_0x510115),this[_0xdbd97c(0x20b)]();}catch(_0x25a8c6){this[_0xdbd97c(0x21e)](_0x25a8c6)||(console[_0xdbd97c(0x15f)](_0xdbd97c(0x1e5),_0x25a8c6),this[_0xdbd97c(0x1c7)](_0x34f731,_0x40f871));}}),this[_0x58bf20(0x21f)](_0x40f871,_0x58bf20(0x177),(_0x5c4efd,{showDiff:_0x2772a4})=>{const _0x2899ed=_0x58bf20;this[_0x2899ed(0x225)]=_0x2772a4;const _0x38da21=this[_0x2899ed(0x205)][_0x2899ed(0x1d2)][this[_0x2899ed(0x205)][_0x2899ed(0x1d2)][_0x2899ed(0x1ae)]-0x1];_0x38da21&&_0x4de5ea(_0x38da21,_0x40f871,_0x2772a4,_0x2899ed(0x1f1))[_0x2899ed(0x1ad)](_0x91968d=>{const _0x6360eb=_0x2899ed;this[_0x6360eb(0x21e)](_0x91968d)||(console[_0x6360eb(0x15f)](_0x6360eb(0x16b),_0x91968d),this[_0x6360eb(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x1b5),(_0xb6fc04,{reply:_0x345860})=>{const _0x365ed7=_0x58bf20,_0x11469a={'positiveCount':_0x345860[_0x365ed7(0x1ab)][_0x365ed7(0x18f)](_0x493eb4=>_0x365ed7(0x1fd)===_0x493eb4[_0x365ed7(0x194)])[_0x365ed7(0x1ae)],'totalCount':_0x345860[_0x365ed7(0x1ab)][_0x365ed7(0x1ae)]},_0x130d79=this[_0x365ed7(0x205)][_0x365ed7(0x170)],_0x490204=this[_0x365ed7(0x205)][_0x365ed7(0x180)];_0x490204?this[_0x365ed7(0x191)][_0x365ed7(0x1b0)](_0x490204,_0x130d79,_0x11469a):this[_0x365ed7(0x191)][_0x365ed7(0x19f)](_0x130d79,_0x11469a);}),this[_0x58bf20(0x1b1)](_0x40f871,_0x510115);try{const _0x2403c1=await this[_0x58bf20(0x205)][_0x58bf20(0x168)]();return this[_0x58bf20(0x20b)](),_0x2403c1;}catch(_0x285f46){if(this[_0x58bf20(0x21e)](_0x285f46))return;_0x40f871[_0x58bf20(0x229)](),this[_0x58bf20(0x1c7)](_0x34f731,_0x40f871);}}[_0x2479e0(0x1ca)](_0x4b3b8d,_0x58b92e,_0x55a6a4){const _0xf0d9f0=_0x2479e0,_0x7830e=this[_0xf0d9f0(0x160)],_0x21493b=this[_0xf0d9f0(0x160)][_0xf0d9f0(0x1b8)][_0xf0d9f0(0x1f7)](_0x3ee950),_0x1c855d=this[_0xf0d9f0(0x205)],_0x3c6d1c=this[_0xf0d9f0(0x205)][_0xf0d9f0(0x1d2)][this[_0xf0d9f0(0x205)][_0xf0d9f0(0x1d2)][_0xf0d9f0(0x1ae)]-0x1],_0x2564f9=_0x3c6d1c[_0xf0d9f0(0x1ab)];_0x3c6d1c[_0xf0d9f0(0x1a3)](0x0,_0xf0d9f0(0x1fd));let _0x6ab507=_0x50152c({'editor':_0x7830e,'reply':_0x3c6d1c,'interaction':_0x1c855d,'groups':_0x2564f9,'transform':!0x1,'documentCompare':_0x21493b,'documentCompareOptions':{'anchor':_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x17e)](_0x4b3b8d,0x0),'markDeletions':_0x55a6a4}});_0x6ab507=this[_0xf0d9f0(0x195)](_0x6ab507,_0x58b92e);for(const _0xe58c7e of _0x6ab507)this[_0xf0d9f0(0x230)](_0x58b92e,_0xe58c7e,_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)][_0xf0d9f0(0x185)]());const _0xec9634=_0x1c855d[_0xf0d9f0(0x193)]()[_0xf0d9f0(0x1d9)],_0x59d91b=_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)][_0xf0d9f0(0x188)][_0xf0d9f0(0x1b9)](_0xec9634),_0x26ff10={'document':_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x227c10=_0x296773(_0x6ab507,_0x59d91b,_0x26ff10)[_0xf0d9f0(0x1c4)];_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x1a9)](_0x3cf540=>{const _0x1d5a1c=_0xf0d9f0;if(_0x3cf540[_0x1d5a1c(0x17c)](_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x181)][_0x1d5a1c(0x202)][_0x1d5a1c(0x17a)]),_0x55a6a4)_0x7830e[_0x1d5a1c(0x1b8)][_0x1d5a1c(0x1f7)](_0x1d5a1c(0x227))[_0x1d5a1c(0x18a)](_0x227c10);else{for(const _0x4f345f of _0x227c10)_0x4f345f[_0x1d5a1c(0x1f2)]=_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x181)][_0x1d5a1c(0x1d9)],_0x3cf540[_0x1d5a1c(0x187)][_0x1d5a1c(0x219)](_0x4f345f),_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x1fc)](_0x4f345f);}}),this[_0xf0d9f0(0x160)][_0xf0d9f0(0x1b8)][_0xf0d9f0(0x1f7)](_0xf0d9f0(0x179))[_0xf0d9f0(0x1b3)]();}[_0x2479e0(0x195)](_0x15e224,_0x20e8b9){const _0x252b5c=_0x2479e0;return _0x15e224[_0x252b5c(0x18f)](_0x2f5c1f=>{const _0x7ef5cc=_0x252b5c;if(_0x7ef5cc(0x21c)==_0x2f5c1f[_0x7ef5cc(0x1f0)]){const _0x4e52eb=_0x2f5c1f[_0x7ef5cc(0x1e9)][_0x7ef5cc(0x189)];return!_0x20e8b9[_0x7ef5cc(0x1ea)](_0x4e52eb);}if(_0x2f5c1f[_0x7ef5cc(0x1f0)][_0x7ef5cc(0x22b)](_0x7ef5cc(0x209))>-0x1){const _0xb05ecf=_0x2f5c1f[_0x7ef5cc(0x21b)][_0x7ef5cc(0x168)][_0x7ef5cc(0x189)];return!_0x20e8b9[_0x7ef5cc(0x1ea)](_0xb05ecf);}return!0x0;});}[_0x2479e0(0x230)](_0x48981f,_0x262b1c,_0x24c238){const _0x76d996=_0x2479e0,_0x34a225=_0x262b1c[_0x76d996(0x1cb)]();for(const _0x4c02ac in _0x262b1c){const _0xd8c5bd=_0x262b1c[_0x4c02ac];_0xd8c5bd instanceof _0x5275ab?_0x262b1c[_0x4c02ac]=new _0x5275ab(_0x2af09b(_0xd8c5bd[_0x76d996(0x168)]),_0x2af09b(_0xd8c5bd[_0x76d996(0x1a4)])):_0xd8c5bd instanceof _0x25505&&(_0x262b1c[_0x4c02ac]=_0x2af09b(_0xd8c5bd));}if([_0x76d996(0x19e),_0x76d996(0x1ee),_0x76d996(0x1de),_0x76d996(0x186),_0x76d996(0x19d),_0x76d996(0x216)][_0x76d996(0x207)](_0x34a225[_0x76d996(0x1f0)])){if(_0x34a225[_0x76d996(0x16e)]=!0x1,_0x34a225[_0x76d996(0x1f2)]=null,_0x76d996(0x1de)==_0x34a225[_0x76d996(0x1f0)]){const _0x2d9024=_0x34a225[_0x76d996(0x161)],_0x5b14d9=_0x34a225[_0x76d996(0x19a)];new _0x1204ad(_0x2d9024,_0x5b14d9)[_0x76d996(0x201)]();}else _0x34a225[_0x76d996(0x201)]();}function _0x2af09b(_0xacdf6a){const _0x5559b3=_0x76d996;if(_0x5559b3(0x1e6)==_0xacdf6a[_0x5559b3(0x234)][_0x5559b3(0x1a6)])return _0xacdf6a;const _0x558075=[];let _0x568f7b=_0xacdf6a[_0x5559b3(0x234)];for(let _0x51446f=0x0;_0x51446f<_0xacdf6a[_0x5559b3(0x165)][_0x5559b3(0x1ae)];_0x51446f++){const _0x5f59d5=_0x48981f[_0x5559b3(0x1f7)](_0x568f7b)||0x0;_0x558075[_0x51446f]=_0xacdf6a[_0x5559b3(0x165)][_0x51446f]+_0x5f59d5,_0x568f7b=_0x568f7b[_0x5559b3(0x15c)](_0xacdf6a[_0x5559b3(0x165)][_0x51446f]);}return new _0x25505(_0x24c238,_0x558075,_0xacdf6a[_0x5559b3(0x1a5)]);}}[_0x2479e0(0x190)](){const _0x4f37b5=_0x2479e0;if(!this[_0x4f37b5(0x211)])return;this[_0x4f37b5(0x1ed)][_0x4f37b5(0x1ae)]>0x0&&this[_0x4f37b5(0x235)](),this[_0x4f37b5(0x1ec)]=0x0,this[_0x4f37b5(0x225)]=!0x1;const {action:_0x5b5f9a,content:_0x51482c,version:_0x48e892,mainView:_0x5c003d,aiBalloon:_0x40a631}=this[_0x4f37b5(0x211)];_0x5c003d[_0x4f37b5(0x22e)]=!0x1,_0x5c003d[_0x4f37b5(0x22c)](),this[_0x4f37b5(0x1d1)](_0x5c003d,_0x40a631);const _0x132fcc=_0x5c003d;_0x132fcc[_0x4f37b5(0x174)]&&_0x132fcc[_0x4f37b5(0x174)][_0x4f37b5(0x20c)]&&_0x132fcc[_0x4f37b5(0x174)][_0x4f37b5(0x20c)][_0x4f37b5(0x16c)]({'isOn':!0x1,'icon':_0x2c4432}),this[_0x4f37b5(0x1af)](_0x5c003d),_0x5c003d[_0x4f37b5(0x18e)](),this[_0x4f37b5(0x20b)](),this[_0x4f37b5(0x169)](_0x51482c,_0x48e892,_0x5c003d,_0x40a631,_0x5b5f9a)[_0x4f37b5(0x1ad)](_0x42638c=>{const _0x2641b8=_0x4f37b5;this[_0x2641b8(0x21e)](_0x42638c)||console[_0x2641b8(0x15f)](_0x2641b8(0x1bc),_0x42638c);});}[_0x2479e0(0x1af)](_0xc14997){const _0x1ac4d1=_0x2479e0,_0x1a828a=_0xc14997[_0x1ac4d1(0x184)][_0x1ac4d1(0x1d6)];for(;_0x1a828a[_0x1ac4d1(0x1ae)]>0x0;)_0x1a828a[_0x1ac4d1(0x1de)](_0x1a828a[_0x1ac4d1(0x1bf)]);_0xc14997[_0x1ac4d1(0x184)][_0x1ac4d1(0x15e)]=!0x1;}[_0x2479e0(0x21e)](_0x4cbdec){const _0x558d08=_0x2479e0;return!!_0x4cbdec[_0x558d08(0x237)]&&_0x4cbdec[_0x558d08(0x237)][_0x558d08(0x236)](_0x558d08(0x232));}[_0x2479e0(0x173)](){const _0x1cbc18=_0x2479e0;this[_0x1cbc18(0x1ed)]=[],this[_0x1cbc18(0x211)]=void 0x0,this[_0x1cbc18(0x1ec)]=0x0,this[_0x1cbc18(0x20b)]();}[_0x2479e0(0x235)](){const _0x46c345=_0x2479e0;this[_0x46c345(0x205)]&&this[_0x46c345(0x205)][_0x46c345(0x19c)](),this[_0x46c345(0x231)][_0x46c345(0x220)](),this[_0x46c345(0x1eb)]=!0x1;}[_0x2479e0(0x204)](){const _0xf871ab=_0x2479e0,_0xc9b852=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x4741fd=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x3a8473=new _0x1ec23b(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x44b0a4=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]);_0xc9b852[_0xf871ab(0x16c)]({'icon':_0x1a5cb6,'label':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x17d)),'tooltip':!0x0,'class':_0xf871ab(0x1a8)}),_0x4741fd[_0xf871ab(0x16c)]({'icon':_0xc58103,'tooltip':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x199)),'class':_0xf871ab(0x212)}),_0x3a8473[_0xf871ab(0x1e3)]({'tag':_0xf871ab(0x21a),'attributes':{'class':[_0xf871ab(0x167)]},'children':[_0xf871ab(0x163)]}),_0x44b0a4[_0xf871ab(0x16c)]({'icon':_0x1a6bc0,'tooltip':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x208)),'class':_0xf871ab(0x1dc)}),_0xc9b852[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x4e6aac=>!_0x4e6aac),_0xc9b852['on'](_0xf871ab(0x1c9),()=>{const _0x66f958=_0xf871ab;this[_0x66f958(0x190)]();}),_0x4741fd[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x8448da=>!_0x8448da),_0x4741fd['on'](_0xf871ab(0x1c9),()=>{const _0x44558d=_0xf871ab;this[_0x44558d(0x1f5)]();}),_0x44b0a4[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x217ab7=>!_0x217ab7),_0x44b0a4['on'](_0xf871ab(0x1c9),()=>{const _0x482b8a=_0xf871ab;this[_0x482b8a(0x1fa)]();}),this[_0xf871ab(0x1ff)]=_0x4741fd,this[_0xf871ab(0x226)]=_0x3a8473,this[_0xf871ab(0x1c8)]=_0x44b0a4,this[_0xf871ab(0x1c0)][_0xf871ab(0x16d)](_0xc9b852);}[_0x2479e0(0x1f5)](){const _0x263ea8=_0x2479e0,_0x31a722=this[_0x263ea8(0x1ed)][_0x263ea8(0x1ae)];this[_0x263ea8(0x1ec)]<_0x31a722-0x1&&this[_0x263ea8(0x1e8)](this[_0x263ea8(0x1ec)]+0x1);}[_0x2479e0(0x1fa)](){const _0x225ecc=_0x2479e0;this[_0x225ecc(0x1ec)]>0x0&&this[_0x225ecc(0x1e8)](this[_0x225ecc(0x1ec)]-0x1);}async[_0x2479e0(0x1e8)](_0x4d317e){const _0x52eb4c=_0x2479e0;if(!this[_0x52eb4c(0x211)])return;this[_0x52eb4c(0x1ec)]=_0x4d317e;const {mainView:_0x5d3a24}=this[_0x52eb4c(0x211)],_0x100717=this[_0x52eb4c(0x1ed)][this[_0x52eb4c(0x1ed)][_0x52eb4c(0x1ae)]-0x1-this[_0x52eb4c(0x1ec)]];if(!_0x100717)return;if(_0x100717[_0x52eb4c(0x228)])return this[_0x52eb4c(0x1c7)](_0x100717,_0x5d3a24),void this[_0x52eb4c(0x20b)]();if(!_0x100717[_0x52eb4c(0x1d2)][_0x52eb4c(0x1ae)])return;_0x5d3a24[_0x52eb4c(0x22c)](),this[_0x52eb4c(0x211)]&&this[_0x52eb4c(0x1d1)](_0x5d3a24,this[_0x52eb4c(0x211)][_0x52eb4c(0x200)]);const _0x5d1d8a=_0x100717[_0x52eb4c(0x1d2)][_0x100717[_0x52eb4c(0x1d2)][_0x52eb4c(0x1ae)]-0x1];if(_0x5d1d8a){const _0x468f09=this[_0x52eb4c(0x160)];this[_0x52eb4c(0x1af)](_0x5d3a24);try{const _0x201af3=_0x2b0cca({'editor':_0x468f09,'changeGroups':_0x5d1d8a[_0x52eb4c(0x1ab)],'documentContextContent':_0x5d1d8a[_0x52eb4c(0x171)],'showDiff':this[_0x52eb4c(0x225)],'trimUnchanged':!0x1});this[_0x52eb4c(0x1af)](_0x5d3a24),await new Promise(_0x5d4e8e=>setTimeout(_0x5d4e8e,0x32)),await _0x5d3a24[_0x52eb4c(0x1b4)]({'parts':_0x201af3,'renderingStrategy':_0x52eb4c(0x1f1),'abortSignal':new AbortController()[_0x52eb4c(0x1fb)]});}catch(_0x146b5f){this[_0x52eb4c(0x21e)](_0x146b5f)||console[_0x52eb4c(0x15f)](_0x52eb4c(0x1aa),_0x146b5f);}}this[_0x52eb4c(0x20b)]();}[_0x2479e0(0x20b)](){const _0x16ea9c=_0x2479e0;if(!this[_0x16ea9c(0x1ff)]||!this[_0x16ea9c(0x226)]||!this[_0x16ea9c(0x1c8)])return;const _0x25c409=this[_0x16ea9c(0x1ed)][_0x16ea9c(0x1ae)],_0x3e1f0b=_0x25c409>0x1,_0x5d51b5=this[_0x16ea9c(0x211)]?.[_0x16ea9c(0x197)];if(_0x3e1f0b){this[_0x16ea9c(0x17b)]||this[_0x16ea9c(0x215)]||this[_0x16ea9c(0x222)]||(this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x1ff)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x1ff)]),this[_0x16ea9c(0x17b)]=!0x0,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x226)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x226)]),this[_0x16ea9c(0x215)]=!0x0,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x1c8)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x1c8)]),this[_0x16ea9c(0x222)]=!0x0);const _0x346194=_0x25c409-this[_0x16ea9c(0x1ec)];this[_0x16ea9c(0x226)][_0x16ea9c(0x1f8)]&&(this[_0x16ea9c(0x226)][_0x16ea9c(0x1f8)][_0x16ea9c(0x1db)]=_0x346194+'/'+_0x25c409),this[_0x16ea9c(0x1ff)][_0x16ea9c(0x22d)]=this[_0x16ea9c(0x1ec)]<_0x25c409-0x1,this[_0x16ea9c(0x1c8)][_0x16ea9c(0x22d)]=this[_0x16ea9c(0x1ec)]>0x0;}else(this[_0x16ea9c(0x17b)]||this[_0x16ea9c(0x215)]||this[_0x16ea9c(0x222)])&&(this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x1ff)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x1ff)]),this[_0x16ea9c(0x17b)]=!0x1,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x226)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x226)]),this[_0x16ea9c(0x215)]=!0x1,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x1c8)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x1c8)]),this[_0x16ea9c(0x222)]=!0x1);}[_0x2479e0(0x1b1)](_0x1f6438,_0x44e83d){const _0x24b2e6=_0x2479e0;_0x1f6438[_0x24b2e6(0x15a)](),_0x44e83d[_0x24b2e6(0x1bb)][_0x24b2e6(0x15a)](),this[_0x24b2e6(0x1eb)]=!0x0;}async[_0x2479e0(0x1c7)](_0xf0b78e,_0x31bbbc){const _0x31bdb4=_0x2479e0,_0x55e810=_0x335cac(this[_0x31bdb4(0x160)][_0x31bdb4(0x221)],_0x31bdb4(0x1c3));_0x31bbbc[_0x31bdb4(0x206)](_0x55e810),_0xf0b78e[_0x31bdb4(0x228)]=!0x0,await this[_0x31bdb4(0x231)][_0x31bdb4(0x178)],_0x31bbbc[_0x31bdb4(0x176)](),this[_0x31bdb4(0x211)]?.[_0x31bdb4(0x200)][_0x31bdb4(0x1bb)][_0x31bdb4(0x18d)]&&(this[_0x31bdb4(0x211)][_0x31bdb4(0x200)][_0x31bdb4(0x1bb)][_0x31bdb4(0x18d)][_0x31bdb4(0x16f)]=!0x0);}[_0x2479e0(0x1d1)](_0x80028a,_0xc1bad3){const _0x27e281=_0x2479e0;_0x80028a[_0x27e281(0x18c)](),_0xc1bad3[_0x27e281(0x1bb)][_0x27e281(0x18d)]&&(_0xc1bad3[_0x27e281(0x1bb)][_0x27e281(0x18d)][_0x27e281(0x16f)]=!0x1);}async[_0x2479e0(0x1b7)](_0x261a3a,_0x57098b){const _0x25c80d=_0x2479e0;await this[_0x25c80d(0x231)][_0x25c80d(0x178)],this[_0x25c80d(0x1eb)]=!0x1,_0x261a3a[_0x25c80d(0x1d3)](),_0x57098b[_0x25c80d(0x1bb)][_0x25c80d(0x1d3)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3f4d(){const _0x49c092=['actionName','180DmwAqj','html','executeAction','getDocumentContext','1294676bSdWXi','connector','push','version','11643876lOjoWJ','replyCreated','createReply','5YwFgJO','16589avNmfu','2384008tMImab','22MqWoCQ','6seeXwu','current-document','sendRequest','executeCustomAction','fire','replies','6399hfllBY','content','model','Current\x20document','userMessage','2430342ThZokH','1990240GeeFil','TEXT','86zjBkkl','args','editor','delegate','hasError'];_0x3f4d=function(){return _0x49c092;};return _0x3f4d();}const _0x518a51=_0x36a1;function _0x36a1(_0x3bcbba,_0x30c0fe){const _0x3f4de6=_0x3f4d();return _0x36a1=function(_0x36a17e,_0x4c3115){_0x36a17e=_0x36a17e-0x183;let _0x62ef64=_0x3f4de6[_0x36a17e];return _0x62ef64;},_0x36a1(_0x3bcbba,_0x30c0fe);}(function(_0x16c762,_0x5eb664){const _0x54bbfa=_0x36a1,_0x52c214=_0x16c762();while(!![]){try{const _0x5c8438=parseInt(_0x54bbfa(0x19d))/0x1*(parseInt(_0x54bbfa(0x18b))/0x2)+-parseInt(_0x54bbfa(0x1a0))/0x3*(-parseInt(_0x54bbfa(0x195))/0x4)+parseInt(_0x54bbfa(0x19c))/0x5*(parseInt(_0x54bbfa(0x188))/0x6)+parseInt(_0x54bbfa(0x189))/0x7+parseInt(_0x54bbfa(0x19e))/0x8+-parseInt(_0x54bbfa(0x183))/0x9*(parseInt(_0x54bbfa(0x191))/0xa)+parseInt(_0x54bbfa(0x19f))/0xb*(-parseInt(_0x54bbfa(0x199))/0xc);if(_0x5c8438===_0x5eb664)break;else _0x52c214['push'](_0x52c214['shift']());}catch(_0x3ec4eb){_0x52c214['push'](_0x52c214['shift']());}}}(_0x3f4d,0x60567));import{AIInteraction as _0x351d25,AI_MODEL_EVENT_NAMES as _0x1747a1}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x252d1a}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0xc6b58b}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x351d25{[_0x518a51(0x184)];[_0x518a51(0x198)];[_0x518a51(0x190)];[_0x518a51(0x18c)];[_0x518a51(0x187)];[_0x518a51(0x185)];[_0x518a51(0x18f)]=!0x1;constructor(_0x4128ea){const _0x22c837=_0x518a51;super(_0x4128ea),this[_0x22c837(0x184)]=_0x4128ea[_0x22c837(0x184)],this[_0x22c837(0x198)]=_0x4128ea[_0x22c837(0x198)],this[_0x22c837(0x190)]=_0x4128ea[_0x22c837(0x190)],this[_0x22c837(0x18c)]=_0x4128ea[_0x22c837(0x18c)],this[_0x22c837(0x187)]=_0x4128ea[_0x22c837(0x187)],this[_0x22c837(0x185)]=_0x4128ea[_0x22c837(0x185)];}async[_0x518a51(0x1a2)](){const _0x2cd8b2=_0x518a51;return this[_0x2cd8b2(0x190)]?this[_0x2cd8b2(0x196)][_0x2cd8b2(0x193)]({'content':this[_0x2cd8b2(0x184)],'actionName':this[_0x2cd8b2(0x190)],'args':this[_0x2cd8b2(0x18c)]}):this[_0x2cd8b2(0x196)][_0x2cd8b2(0x1a3)]({'content':this[_0x2cd8b2(0x184)],'message':this[_0x2cd8b2(0x187)],'model':this[_0x2cd8b2(0x185)],'outputFormat':_0x2cd8b2(0x192)});}[_0x518a51(0x194)](){const _0x526b0a=_0x518a51;return{'type':_0x252d1a[_0x526b0a(0x18a)],'content':this[_0x526b0a(0x184)],'version':this[_0x526b0a(0x198)],'label':_0x526b0a(0x186),'uiId':_0x526b0a(0x1a1)};}[_0x518a51(0x19b)](_0x184445){const _0x35ee3e=_0x518a51,_0x16f019=new _0xc6b58b({'editor':this[_0x35ee3e(0x18d)],'documentContextContent':this[_0x35ee3e(0x184)],..._0x184445});return this[_0x35ee3e(0x1a5)][_0x35ee3e(0x197)](_0x16f019),_0x16f019[_0x35ee3e(0x18e)](..._0x1747a1)['to'](this),this[_0x35ee3e(0x1a4)](_0x35ee3e(0x19a),_0x16f019),_0x16f019;}}
23
+ const _0x55e02e=_0x2495;function _0x4bca(){const _0x237ede=['TEXT','replies','executeCustomAction','hasError','delegate','userMessage','fire','connector','content','22693610pmtocT','826468RUemhQ','executeAction','createReply','html','version','Current\x20document','getDocumentContext','editor','261UJPgaQ','282136VxMzLc','model','21wCXhRQ','24296COwMRz','replyCreated','1320683bNWXwn','args','15220kDOwkM','actionName','current-document','458706Ihjmbf','sendRequest','push','546kmZtao'];_0x4bca=function(){return _0x237ede;};return _0x4bca();}function _0x2495(_0x4b4c04,_0x88ef7){const _0x4bca42=_0x4bca();return _0x2495=function(_0x249543,_0x242e9f){_0x249543=_0x249543-0x1ba;let _0x545249=_0x4bca42[_0x249543];return _0x545249;},_0x2495(_0x4b4c04,_0x88ef7);}(function(_0x499112,_0x13e370){const _0xbf2934=_0x2495,_0x4601aa=_0x499112();while(!![]){try{const _0x5640f5=-parseInt(_0xbf2934(0x1c0))/0x1+-parseInt(_0xbf2934(0x1d3))/0x2+parseInt(_0xbf2934(0x1cb))/0x3*(-parseInt(_0xbf2934(0x1cc))/0x4)+parseInt(_0xbf2934(0x1d0))/0x5*(parseInt(_0xbf2934(0x1d6))/0x6)+parseInt(_0xbf2934(0x1ce))/0x7+-parseInt(_0xbf2934(0x1c9))/0x8*(parseInt(_0xbf2934(0x1c8))/0x9)+parseInt(_0xbf2934(0x1bf))/0xa;if(_0x5640f5===_0x13e370)break;else _0x4601aa['push'](_0x4601aa['shift']());}catch(_0x4b089c){_0x4601aa['push'](_0x4601aa['shift']());}}}(_0x4bca,0x95e40));import{AIInteraction as _0x184a33,AI_MODEL_EVENT_NAMES as _0x14d863}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x38c97c}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x4ca46e}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x184a33{[_0x55e02e(0x1be)];[_0x55e02e(0x1c4)];[_0x55e02e(0x1d1)];[_0x55e02e(0x1cf)];[_0x55e02e(0x1bb)];[_0x55e02e(0x1ca)];[_0x55e02e(0x1da)]=!0x1;constructor(_0xddb4c0){const _0x251445=_0x55e02e;super(_0xddb4c0),this[_0x251445(0x1be)]=_0xddb4c0[_0x251445(0x1be)],this[_0x251445(0x1c4)]=_0xddb4c0[_0x251445(0x1c4)],this[_0x251445(0x1d1)]=_0xddb4c0[_0x251445(0x1d1)],this[_0x251445(0x1cf)]=_0xddb4c0[_0x251445(0x1cf)],this[_0x251445(0x1bb)]=_0xddb4c0[_0x251445(0x1bb)],this[_0x251445(0x1ca)]=_0xddb4c0[_0x251445(0x1ca)];}async[_0x55e02e(0x1d4)](){const _0xa74c89=_0x55e02e;return this[_0xa74c89(0x1d1)]?this[_0xa74c89(0x1bd)][_0xa74c89(0x1c1)]({'content':this[_0xa74c89(0x1be)],'actionName':this[_0xa74c89(0x1d1)],'args':this[_0xa74c89(0x1cf)]}):this[_0xa74c89(0x1bd)][_0xa74c89(0x1d9)]({'content':this[_0xa74c89(0x1be)],'message':this[_0xa74c89(0x1bb)],'model':this[_0xa74c89(0x1ca)],'outputFormat':_0xa74c89(0x1c3)});}[_0x55e02e(0x1c6)](){const _0x48051b=_0x55e02e;return{'type':_0x38c97c[_0x48051b(0x1d7)],'content':this[_0x48051b(0x1be)],'version':this[_0x48051b(0x1c4)],'label':_0x48051b(0x1c5),'uiId':_0x48051b(0x1d2)};}[_0x55e02e(0x1c2)](_0x1c45a4){const _0x2c34b3=_0x55e02e,_0x589789=new _0x4ca46e({'editor':this[_0x2c34b3(0x1c7)],'documentContextContent':this[_0x2c34b3(0x1be)],..._0x1c45a4});return this[_0x2c34b3(0x1d8)][_0x2c34b3(0x1d5)](_0x589789),_0x589789[_0x2c34b3(0x1ba)](..._0x14d863)['to'](this),this[_0x2c34b3(0x1bc)](_0x2c34b3(0x1cd),_0x589789),_0x589789;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b8b82=_0x3b6f;(function(_0x5ec03a,_0x24788a){const _0x19741a=_0x3b6f,_0xc8526b=_0x5ec03a();while(!![]){try{const _0x2e4612=-parseInt(_0x19741a(0x186))/0x1*(parseInt(_0x19741a(0x198))/0x2)+-parseInt(_0x19741a(0x18d))/0x3*(-parseInt(_0x19741a(0x188))/0x4)+parseInt(_0x19741a(0x18a))/0x5+parseInt(_0x19741a(0x184))/0x6+parseInt(_0x19741a(0x196))/0x7*(parseInt(_0x19741a(0x193))/0x8)+-parseInt(_0x19741a(0x18e))/0x9*(parseInt(_0x19741a(0x187))/0xa)+-parseInt(_0x19741a(0x192))/0xb;if(_0x2e4612===_0x24788a)break;else _0xc8526b['push'](_0xc8526b['shift']());}catch(_0x302146){_0xc8526b['push'](_0xc8526b['shift']());}}}(_0x349a,0xb2e0d));import{AIReply as _0x56475f}from'../../aicore/model/aireply.js';function _0x349a(){const _0x46e7f1=['56948QGQYhy','cloneNode','3632100npxjKa','isDone','childNodes','75roMSCg','5617071krZITz','node','changeGroups','value','4586879KbWilD','104CxEVhT','data-id','updateChangeGroups','598129uEgicj','new','2YwJNGJ','children','pop','length','parsedMergedContent','added','documentContextContent','modified','pending','_getDifferentChangeGroups','map','parsedContent','8261610ikIcrL','removed','1172179SqNZKR','20YPINJG'];_0x349a=function(){return _0x46e7f1;};return _0x349a();}function _0x3b6f(_0x5685ea,_0x1066f2){const _0x349a04=_0x349a();return _0x3b6f=function(_0x3b6f91,_0xd85fd){_0x3b6f91=_0x3b6f91-0x17d;let _0xd925cd=_0x349a04[_0x3b6f91];return _0xd925cd;},_0x3b6f(_0x5685ea,_0x1066f2);}import{getAttribute as _0x436538}from'../../aicore/utils/htmlparser.js';import{uid as _0x3082e7}from'ckeditor5/src/utils.js';import{diffArrays as _0x1aa18c}from'diff';export class AIActionsReply extends _0x56475f{[_0x5b8b82(0x195)](){const _0x4d623d=_0x5b8b82;if(this[_0x4d623d(0x19c)]=this[_0x4d623d(0x183)][_0x4d623d(0x189)](!0x0),0x0==this[_0x4d623d(0x19c)][_0x4d623d(0x18c)][_0x4d623d(0x19b)])return void(this[_0x4d623d(0x190)]=[]);const _0x1c7683=this[_0x4d623d(0x17e)][_0x4d623d(0x199)][_0x4d623d(0x182)](_0x794b0e=>({'node':_0x794b0e,'id':_0x436538(_0x794b0e,_0x4d623d(0x194))})),_0xeea7a2=this[_0x4d623d(0x19c)][_0x4d623d(0x199)][_0x4d623d(0x182)](_0x1bf6c1=>({'node':_0x1bf6c1,'id':_0x436538(_0x1bf6c1,_0x4d623d(0x194))||_0x3082e7()})),_0x2b17fe=_0x1aa18c(_0x1c7683,_0xeea7a2,{'comparator':(_0x3b483d,_0x554a98)=>_0x3b483d['id']==_0x554a98['id'],'oneChangePerToken':!0x0});if(!this[_0x4d623d(0x18b)]){for(;_0x2b17fe[_0x4d623d(0x19b)]&&_0x2b17fe[_0x2b17fe[_0x4d623d(0x19b)]-0x1][_0x4d623d(0x185)];)_0x2b17fe[_0x4d623d(0x19a)]();}const _0x4d5d76=_0x2b17fe[_0x4d623d(0x182)](_0x5f334c=>{const _0x554ad4=_0x4d623d,_0x48103a=_0x5f334c[_0x554ad4(0x17d)]?_0x554ad4(0x197):_0x5f334c[_0x554ad4(0x185)]?_0x554ad4(0x185):_0x554ad4(0x17f);return{'node':_0x5f334c[_0x554ad4(0x191)][0x0][_0x554ad4(0x18f)],'type':_0x48103a,'id':_0x5f334c[_0x554ad4(0x191)][0x0]['id']};});this[_0x4d623d(0x190)]=[{'changes':_0x4d5d76,'state':_0x4d623d(0x180),'index':0x0}];}[_0x5b8b82(0x181)](_0x4f0048,_0x26fd3b){return _0x26fd3b;}}
23
+ const _0xaabb0a=_0xf0fc;(function(_0x2162ea,_0x22040d){const _0x38f3b1=_0xf0fc,_0x595a92=_0x2162ea();while(!![]){try{const _0x5db228=-parseInt(_0x38f3b1(0x194))/0x1*(parseInt(_0x38f3b1(0x193))/0x2)+-parseInt(_0x38f3b1(0x191))/0x3*(-parseInt(_0x38f3b1(0x181))/0x4)+-parseInt(_0x38f3b1(0x196))/0x5*(-parseInt(_0x38f3b1(0x198))/0x6)+parseInt(_0x38f3b1(0x188))/0x7*(-parseInt(_0x38f3b1(0x197))/0x8)+-parseInt(_0x38f3b1(0x182))/0x9+parseInt(_0x38f3b1(0x18b))/0xa+parseInt(_0x38f3b1(0x18f))/0xb*(parseInt(_0x38f3b1(0x1a0))/0xc);if(_0x5db228===_0x22040d)break;else _0x595a92['push'](_0x595a92['shift']());}catch(_0x24ec34){_0x595a92['push'](_0x595a92['shift']());}}}(_0x5dd6,0xc0f18));import{AIReply as _0x5821bb}from'../../aicore/model/aireply.js';import{getAttribute as _0x5856a2}from'../../aicore/utils/htmlparser.js';import{uid as _0x3aeff2}from'ckeditor5/src/utils.js';function _0x5dd6(){const _0x53c5d5=['cloneNode','3khyysA','isDone','1815826THcHJk','1CfhoSK','added','697955VMALFg','27520nOmTeI','6ApaUdh','new','pop','pending','removed','length','documentContextContent','value','12tIMVxi','modified','6098300sHuAMJ','10654839QUYbvM','updateChangeGroups','_getDifferentChangeGroups','map','changeGroups','parsedContent','1729acCazN','node','childNodes','2963550KUtSkU','parsedMergedContent','children','data-id','19483629BqWqsg'];_0x5dd6=function(){return _0x53c5d5;};return _0x5dd6();}import{diffArrays as _0x132061}from'diff';function _0xf0fc(_0x5c5402,_0x2dff7b){const _0x5dd63c=_0x5dd6();return _0xf0fc=function(_0xf0fcd3,_0x34319f){_0xf0fcd3=_0xf0fcd3-0x181;let _0x36fcd8=_0x5dd63c[_0xf0fcd3];return _0x36fcd8;},_0xf0fc(_0x5c5402,_0x2dff7b);}export class AIActionsReply extends _0x5821bb{[_0xaabb0a(0x183)](){const _0x4697dc=_0xaabb0a;if(this[_0x4697dc(0x18c)]=this[_0x4697dc(0x187)][_0x4697dc(0x190)](!0x0),0x0==this[_0x4697dc(0x18c)][_0x4697dc(0x18a)][_0x4697dc(0x19d)])return void(this[_0x4697dc(0x186)]=[]);const _0x50fc2b=this[_0x4697dc(0x19e)][_0x4697dc(0x18d)][_0x4697dc(0x185)](_0x5aed54=>({'node':_0x5aed54,'id':_0x5856a2(_0x5aed54,_0x4697dc(0x18e))})),_0x33aab5=this[_0x4697dc(0x18c)][_0x4697dc(0x18d)][_0x4697dc(0x185)](_0x4aaa95=>({'node':_0x4aaa95,'id':_0x5856a2(_0x4aaa95,_0x4697dc(0x18e))||_0x3aeff2()})),_0x29dde7=_0x132061(_0x50fc2b,_0x33aab5,{'comparator':(_0x571413,_0x2c8341)=>_0x571413['id']==_0x2c8341['id'],'oneChangePerToken':!0x0});if(!this[_0x4697dc(0x192)]){for(;_0x29dde7[_0x4697dc(0x19d)]&&_0x29dde7[_0x29dde7[_0x4697dc(0x19d)]-0x1][_0x4697dc(0x19c)];)_0x29dde7[_0x4697dc(0x19a)]();}const _0x145437=_0x29dde7[_0x4697dc(0x185)](_0x46d7fe=>{const _0x563e46=_0x4697dc,_0x7972b0=_0x46d7fe[_0x563e46(0x195)]?_0x563e46(0x199):_0x46d7fe[_0x563e46(0x19c)]?_0x563e46(0x19c):_0x563e46(0x1a1);return{'node':_0x46d7fe[_0x563e46(0x19f)][0x0][_0x563e46(0x189)],'type':_0x7972b0,'id':_0x46d7fe[_0x563e46(0x19f)][0x0]['id']};});this[_0x4697dc(0x186)]=[{'changes':_0x145437,'state':_0x4697dc(0x19b),'index':0x0}];}[_0xaabb0a(0x184)](_0x10068c,_0x5e63d9){return _0x5e63d9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x16fa74=_0x542d;(function(_0x206588,_0x1f6288){var _0x477ee8=_0x542d,_0x1254d4=_0x206588();while(!![]){try{var _0x2c5345=-parseInt(_0x477ee8(0x73))/0x1+parseInt(_0x477ee8(0x6e))/0x2+-parseInt(_0x477ee8(0x74))/0x3+-parseInt(_0x477ee8(0x71))/0x4*(parseInt(_0x477ee8(0x7e))/0x5)+-parseInt(_0x477ee8(0x7c))/0x6*(parseInt(_0x477ee8(0x77))/0x7)+-parseInt(_0x477ee8(0x7f))/0x8+-parseInt(_0x477ee8(0x80))/0x9*(-parseInt(_0x477ee8(0x78))/0xa);if(_0x2c5345===_0x1f6288)break;else _0x1254d4['push'](_0x1254d4['shift']());}catch(_0x3d3ffe){_0x1254d4['push'](_0x1254d4['shift']());}}}(_0x1435,0x94f5a));import{Plugin as _0x3b89b4}from'ckeditor5/src/core.js';function _0x542d(_0x46d0a3,_0x15428c){var _0x14355c=_0x1435();return _0x542d=function(_0x542d79,_0xbbc4c4){_0x542d79=_0x542d79-0x6e;var _0x132f99=_0x14355c[_0x542d79];return _0x132f99;},_0x542d(_0x46d0a3,_0x15428c);}function _0x1435(){var _0x16edf3=['AIAdapter','5820Dbgsfr','281943qMHEVx','textAdapter','AIRequestError','215026VKLSdj','26260370RCZGTb','pluginName','afterInit','isOfficialPlugin','204iQGkbZ','name','5yTsoju','3713232bIjDXN','9aFIEIY','81582uszAJd','aiadapter-text-adapter-not-set','isPremiumPlugin','1793292FFGPlD'];_0x1435=function(){return _0x16edf3;};return _0x1435();}import{CKEditorError as _0x41636f}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x3b89b4{static get[_0x16fa74(0x79)](){var _0x37d8a4=_0x16fa74;return _0x37d8a4(0x72);}static get[_0x16fa74(0x7b)](){return!0x0;}static get[_0x16fa74(0x70)](){return!0x0;}[_0x16fa74(0x7a)](){var _0x3d9d9a=_0x16fa74;if(!this[_0x3d9d9a(0x75)])throw new _0x41636f(_0x3d9d9a(0x6f),null);}}export class AIRequestError extends Error{constructor(_0x598d30){var _0x25ae64=_0x16fa74;super(_0x598d30),this[_0x25ae64(0x7d)]=_0x25ae64(0x76);}}
23
+ var _0x49b8bd=_0x1003;function _0x2f2c(){var _0x1aa638=['aiadapter-text-adapter-not-set','textAdapter','911785rasUio','isOfficialPlugin','name','AIAdapter','AIRequestError','4oFYQDN','707435noxGlg','1082679YxTQyC','1088Pvgvto','10068etjidG','32283sOHVTh','1068jlCKQS','isPremiumPlugin','20kgkubF','49GLgTQU','2649713HnLuOu','afterInit','322972fDFdPz','10XaSRnd','pluginName'];_0x2f2c=function(){return _0x1aa638;};return _0x2f2c();}(function(_0x184d1c,_0x16cded){var _0x358a4a=_0x1003,_0x29cd1c=_0x184d1c();while(!![]){try{var _0x424ba2=-parseInt(_0x358a4a(0x141))/0x1+parseInt(_0x358a4a(0x146))/0x2*(-parseInt(_0x358a4a(0x148))/0x3)+-parseInt(_0x358a4a(0x14e))/0x4*(parseInt(_0x358a4a(0x147))/0x5)+parseInt(_0x358a4a(0x14a))/0x6*(-parseInt(_0x358a4a(0x14f))/0x7)+parseInt(_0x358a4a(0x149))/0x8*(parseInt(_0x358a4a(0x14b))/0x9)+-parseInt(_0x358a4a(0x13d))/0xa*(-parseInt(_0x358a4a(0x150))/0xb)+parseInt(_0x358a4a(0x14c))/0xc*(parseInt(_0x358a4a(0x13c))/0xd);if(_0x424ba2===_0x16cded)break;else _0x29cd1c['push'](_0x29cd1c['shift']());}catch(_0x7e22de){_0x29cd1c['push'](_0x29cd1c['shift']());}}}(_0x2f2c,0x8f547));import{Plugin as _0x58578f}from'ckeditor5/src/core.js';import{CKEditorError as _0x5f2660}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x58578f{static get[_0x49b8bd(0x13e)](){var _0x3c5482=_0x49b8bd;return _0x3c5482(0x144);}static get[_0x49b8bd(0x142)](){return!0x0;}static get[_0x49b8bd(0x14d)](){return!0x0;}[_0x49b8bd(0x151)](){var _0x41537c=_0x49b8bd;if(!this[_0x41537c(0x140)])throw new _0x5f2660(_0x41537c(0x13f),null);}}function _0x1003(_0x1ad133,_0x1697f4){var _0x2f2cd0=_0x2f2c();return _0x1003=function(_0x100362,_0x1ca1d8){_0x100362=_0x100362-0x13c;var _0x52fd08=_0x2f2cd0[_0x100362];return _0x52fd08;},_0x1003(_0x1ad133,_0x1697f4);}export class AIRequestError extends Error{constructor(_0x1657f7){var _0x803880=_0x49b8bd;super(_0x1657f7),this[_0x803880(0x143)]=_0x803880(0x145);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e6f3c=_0x4cb5;(function(_0x5d576d,_0x40edcd){const _0x50bdbc=_0x4cb5,_0x54c96f=_0x5d576d();while(!![]){try{const _0x13b256=parseInt(_0x50bdbc(0x16d))/0x1+parseInt(_0x50bdbc(0x151))/0x2+-parseInt(_0x50bdbc(0x14a))/0x3*(-parseInt(_0x50bdbc(0x162))/0x4)+parseInt(_0x50bdbc(0x15e))/0x5*(-parseInt(_0x50bdbc(0x16c))/0x6)+-parseInt(_0x50bdbc(0x15f))/0x7*(-parseInt(_0x50bdbc(0x163))/0x8)+-parseInt(_0x50bdbc(0x14e))/0x9+-parseInt(_0x50bdbc(0x16e))/0xa;if(_0x13b256===_0x40edcd)break;else _0x54c96f['push'](_0x54c96f['shift']());}catch(_0x5cebcf){_0x54c96f['push'](_0x54c96f['shift']());}}}(_0xa072,0x77433));function _0xa072(){const _0x5a68b4=['511wyUsVo','_prepareRequestHeaders','aitextadapter-send-request-failed','4mTsOhh','81544FxujQV','get','sendRequest','textAdapter','init','AI_ERROR_GET_PARAMETERS','editor','reject','error','6rdtBIs','274927RWUtCP','6121320UsPBnv','219282vkkfXw','resolve','plugins','requires','124326Eelavv','signal','object','1857148wCjkSS','makeRequest','name','abortController','_prepareRequestParameters','catch','locale','aborted','assign','AI_ERROR_GET_HEADERS','AbortError','application/json','abort','4531195TqnfRd'];_0xa072=function(){return _0x5a68b4;};return _0xa072();}import{Plugin as _0x1ad7c3}from'ckeditor5/src/core.js';import{CKEditorError as _0x3ae9ff}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4a43cd,AIRequestError as _0x80876b}from'./aiadapter.js';import{getTranslation as _0x2a9018}from'../utils/common-translations.js';function _0x4cb5(_0x401737,_0x33d1b1){const _0xa072e7=_0xa072();return _0x4cb5=function(_0x4cb5e8,_0x59a4f1){_0x4cb5e8=_0x4cb5e8-0x14a;let _0x55f4c0=_0xa072e7[_0x4cb5e8];return _0x55f4c0;},_0x4cb5(_0x401737,_0x33d1b1);}export class AITextAdapter extends _0x1ad7c3{[_0x1e6f3c(0x154)];static get[_0x1e6f3c(0x14d)](){return[_0x4a43cd];}constructor(_0xee7b5b){const _0x516be3=_0x1e6f3c;super(_0xee7b5b),this[_0x516be3(0x154)]=new AbortController();}[_0x1e6f3c(0x167)](){const _0x5bb540=_0x1e6f3c;this[_0x5bb540(0x169)][_0x5bb540(0x14c)][_0x5bb540(0x164)](_0x4a43cd)[_0x5bb540(0x166)]=this;}[_0x1e6f3c(0x15d)](){const _0xe49b62=_0x1e6f3c;this[_0xe49b62(0x154)][_0xe49b62(0x14f)][_0xe49b62(0x158)]||(this[_0xe49b62(0x154)][_0xe49b62(0x15d)](),this[_0xe49b62(0x154)]=new AbortController());}async[_0x1e6f3c(0x152)](_0x5a7171){const _0x17a9d7=_0x1e6f3c;return this[_0x17a9d7(0x165)](_0x5a7171)[_0x17a9d7(0x156)](_0x338147=>{const _0x4bd6df=_0x17a9d7;if(_0x338147 instanceof _0x80876b)return Promise[_0x4bd6df(0x16a)](_0x338147);if(_0x4bd6df(0x15b)==_0x338147[_0x4bd6df(0x153)])return Promise[_0x4bd6df(0x14b)]();throw console[_0x4bd6df(0x16b)](_0x338147),new _0x3ae9ff(_0x4bd6df(0x161),null);});}async[_0x1e6f3c(0x160)](_0x4e15b3,_0x12009b){const _0x1e0950=_0x1e6f3c,_0x3cb210=this[_0x1e0950(0x169)][_0x1e0950(0x157)],_0x1e0352={'Content-Type':_0x1e0950(0x15c)};if(_0x1e0950(0x150)==typeof _0x4e15b3)Object[_0x1e0950(0x159)](_0x1e0352,_0x4e15b3);else{if(_0x4e15b3)try{const _0x176fde=await _0x4e15b3(_0x12009b);Object[_0x1e0950(0x159)](_0x1e0352,_0x176fde);}catch{return Promise[_0x1e0950(0x16a)](new _0x80876b(_0x2a9018(_0x3cb210,_0x1e0950(0x15a))));}}return _0x1e0352;}async[_0x1e6f3c(0x155)](_0x166d5c,_0x4f82d5){const _0x2d2e47=_0x1e6f3c,_0x4077d6=this[_0x2d2e47(0x169)][_0x2d2e47(0x157)];if(_0x2d2e47(0x150)==typeof _0x166d5c)return _0x166d5c;try{return await _0x166d5c(_0x4f82d5);}catch{return Promise[_0x2d2e47(0x16a)](new _0x80876b(_0x2a9018(_0x4077d6,_0x2d2e47(0x168))));}}}
23
+ function _0x1835(_0x318fce,_0x28ae91){const _0x380b33=_0x380b();return _0x1835=function(_0x183552,_0x1d6861){_0x183552=_0x183552-0x13d;let _0x1b8a56=_0x380b33[_0x183552];return _0x1b8a56;},_0x1835(_0x318fce,_0x28ae91);}const _0x269abf=_0x1835;(function(_0x3a2800,_0x302722){const _0x50a3bf=_0x1835,_0x50a918=_0x3a2800();while(!![]){try{const _0x1e1358=parseInt(_0x50a3bf(0x14d))/0x1*(parseInt(_0x50a3bf(0x144))/0x2)+parseInt(_0x50a3bf(0x15f))/0x3+parseInt(_0x50a3bf(0x15e))/0x4*(-parseInt(_0x50a3bf(0x14c))/0x5)+-parseInt(_0x50a3bf(0x140))/0x6+parseInt(_0x50a3bf(0x161))/0x7*(-parseInt(_0x50a3bf(0x153))/0x8)+parseInt(_0x50a3bf(0x146))/0x9+parseInt(_0x50a3bf(0x151))/0xa*(parseInt(_0x50a3bf(0x159))/0xb);if(_0x1e1358===_0x302722)break;else _0x50a918['push'](_0x50a918['shift']());}catch(_0x14dcce){_0x50a918['push'](_0x50a918['shift']());}}}(_0x380b,0x8d517));import{Plugin as _0x5b8c81}from'ckeditor5/src/core.js';function _0x380b(){const _0xed19e8=['textAdapter','reject','signal','requires','_prepareRequestHeaders','37605cteUPT','1lSzsiK','abortController','error','resolve','35590KATHkB','assign','4179920mNUWfd','AbortError','locale','catch','application/json','AI_ERROR_GET_HEADERS','2519gfQJOb','sendRequest','abort','init','object','60kVRqrR','2815659aLQahg','makeRequest','14jSnRmB','_prepareRequestParameters','aborted','aitextadapter-send-request-failed','name','4670796NrZmHO','editor','get','AI_ERROR_GET_PARAMETERS','1203080sWPNYc','plugins','1439964zZjxCo'];_0x380b=function(){return _0xed19e8;};return _0x380b();}import{CKEditorError as _0x51cf37}from'ckeditor5/src/utils.js';import{AIAdapter as _0x32a673,AIRequestError as _0x5a117a}from'./aiadapter.js';import{getTranslation as _0x381932}from'../utils/common-translations.js';export class AITextAdapter extends _0x5b8c81{[_0x269abf(0x14e)];static get[_0x269abf(0x14a)](){return[_0x32a673];}constructor(_0x4e1d7e){const _0x5b0705=_0x269abf;super(_0x4e1d7e),this[_0x5b0705(0x14e)]=new AbortController();}[_0x269abf(0x15c)](){const _0x4144f0=_0x269abf;this[_0x4144f0(0x141)][_0x4144f0(0x145)][_0x4144f0(0x142)](_0x32a673)[_0x4144f0(0x147)]=this;}[_0x269abf(0x15b)](){const _0x127eae=_0x269abf;this[_0x127eae(0x14e)][_0x127eae(0x149)][_0x127eae(0x13d)]||(this[_0x127eae(0x14e)][_0x127eae(0x15b)](),this[_0x127eae(0x14e)]=new AbortController());}async[_0x269abf(0x160)](_0x2dbcd0){const _0x283397=_0x269abf;return this[_0x283397(0x15a)](_0x2dbcd0)[_0x283397(0x156)](_0x242eef=>{const _0xb5ae6b=_0x283397;if(_0x242eef instanceof _0x5a117a)return Promise[_0xb5ae6b(0x148)](_0x242eef);if(_0xb5ae6b(0x154)==_0x242eef[_0xb5ae6b(0x13f)])return Promise[_0xb5ae6b(0x150)]();throw console[_0xb5ae6b(0x14f)](_0x242eef),new _0x51cf37(_0xb5ae6b(0x13e),null);});}async[_0x269abf(0x14b)](_0x2259dc,_0x117d9b){const _0x43711a=_0x269abf,_0xaa5452=this[_0x43711a(0x141)][_0x43711a(0x155)],_0x482106={'Content-Type':_0x43711a(0x157)};if(_0x43711a(0x15d)==typeof _0x2259dc)Object[_0x43711a(0x152)](_0x482106,_0x2259dc);else{if(_0x2259dc)try{const _0x28d9a6=await _0x2259dc(_0x117d9b);Object[_0x43711a(0x152)](_0x482106,_0x28d9a6);}catch{return Promise[_0x43711a(0x148)](new _0x5a117a(_0x381932(_0xaa5452,_0x43711a(0x158))));}}return _0x482106;}async[_0x269abf(0x162)](_0x189bed,_0x32c928){const _0x5bf037=_0x269abf,_0x48e64b=this[_0x5bf037(0x141)][_0x5bf037(0x155)];if(_0x5bf037(0x15d)==typeof _0x189bed)return _0x189bed;try{return await _0x189bed(_0x32c928);}catch{return Promise[_0x5bf037(0x148)](new _0x5a117a(_0x381932(_0x48e64b,_0x5bf037(0x143))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5642bf=_0xf88c;(function(_0x4819de,_0x190d95){const _0xd86ba3=_0xf88c,_0x5932f8=_0x4819de();while(!![]){try{const _0x5c3993=parseInt(_0xd86ba3(0x105))/0x1+-parseInt(_0xd86ba3(0xf4))/0x2*(parseInt(_0xd86ba3(0x119))/0x3)+parseInt(_0xd86ba3(0x102))/0x4*(-parseInt(_0xd86ba3(0x104))/0x5)+parseInt(_0xd86ba3(0x115))/0x6*(-parseInt(_0xd86ba3(0x101))/0x7)+-parseInt(_0xd86ba3(0xde))/0x8*(-parseInt(_0xd86ba3(0xfd))/0x9)+-parseInt(_0xd86ba3(0xf5))/0xa+parseInt(_0xd86ba3(0x11d))/0xb*(parseInt(_0xd86ba3(0xdf))/0xc);if(_0x5c3993===_0x190d95)break;else _0x5932f8['push'](_0x5932f8['shift']());}catch(_0x15b20e){_0x5932f8['push'](_0x5932f8['shift']());}}}(_0x5918,0x450a3));import{AITextAdapter as _0x430538}from'./aitextadapter.js';import{AIRequestError as _0x5c0fce}from'./aiadapter.js';import{BedrockRuntimeClient as _0x18ffeb,InvokeModelCommand as _0x3cb64b,InvokeModelWithResponseStreamCommand as _0x203bf3}from'@aws-sdk/client-bedrock-runtime';function _0xf88c(_0x514580,_0x103bcd){const _0x591846=_0x5918();return _0xf88c=function(_0xf88c7e,_0x4757d7){_0xf88c7e=_0xf88c7e-0xd0;let _0x38b8f5=_0x591846[_0xf88c7e];return _0x38b8f5;},_0xf88c(_0x514580,_0x103bcd);}function _0x5918(){const _0x3fe2e6=['_prepareRequestHeaders','config','resolve','86898qEpVIy','send','Human:\x0a','bytes','1344021rxdmUv','filter','data','get','11UvHToV','length','bedrock-2023-05-31','body','AWSTextAdapter','application/json','pluginName','ai21.j2','split','editor','getModelFamily','signal','ai.assistant.adapter.aws.requestParameters','\x0a<</SYS>>\x0a[INST]\x0a','_processAWSRequest','utf-8','generation','_readStreamableResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','1552IylEKI','11315076ZVmUvx','meta.llama','stringify','test','_bedrockClientConfig','text','decode','ai.assistant.adapter.aws.bedrockClientConfig','completion','AI_ERROR_UNSUPPORTED_MODEL','_requestHeaders','chunk','locale','POST','anthropic.claude','_readStaticResponse','anthropic.claude-v2','_apiUrl','preparePrompt','cohere.command','json','2CyWgXk','1136610EuideG','sendRequest','_requestParameters','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','\x0a[/INST]','join','<<SYS>>\x0a','4113XgrBDQ','abortController','_processProxyRequest','Instruction:\x0a','42MoFQdO','4vPpPVg','completions','2493070jYrcws','398386CZNgXi','\x0a\x0aAssistant:','parse','_readAsyncIterableResponse','generations','ai.assistant.adapter.aws.apiUrl','_prepareRequestParameters','ai.assistant.adapter.aws.requestHeaders','map','read','define','getReader','_getGeneratedText'];_0x5918=function(){return _0x3fe2e6;};return _0x5918();}import{getTranslation as _0x47beab}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x430538{[_0x5642bf(0xf0)];[_0x5642bf(0xe9)];[_0x5642bf(0xe3)];[_0x5642bf(0xf7)];static get[_0x5642bf(0xd1)](){const _0x1dd9b4=_0x5642bf;return _0x1dd9b4(0x121);}constructor(_0x33e560){const _0x57b937=_0x5642bf;super(_0x33e560),_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xd7))||_0x33e560[_0x57b937(0x113)][_0x57b937(0x10f)](_0x57b937(0xd7),{'model':_0x57b937(0xef),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x57b937(0x11f),'stream':!0x0}),this[_0x57b937(0xf0)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0x10a)),this[_0x57b937(0xe3)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xe6)),this[_0x57b937(0xe9)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0x10c)),this[_0x57b937(0xf7)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xd7));}async[_0x5642bf(0xf6)]({query:_0x1b99a1,context:_0x5b5ddd,onData:_0x2d7923,actionId:_0x34ae30}){const _0x368c6b=_0x5642bf,{model:_0x9e11d0,stream:_0x5368c3,..._0x222e93}=await this[_0x368c6b(0x10b)](this[_0x368c6b(0xf7)],_0x34ae30),_0x24edb8={'prompt':await this[_0x368c6b(0xf1)](_0x1b99a1,_0x5b5ddd,_0x9e11d0,_0x34ae30),..._0x222e93};this[_0x368c6b(0xf0)]?await this[_0x368c6b(0xff)](_0x24edb8,_0x9e11d0,_0x5368c3,_0x2d7923,_0x34ae30):await this[_0x368c6b(0xd9)](_0x24edb8,_0x9e11d0,_0x5368c3,_0x2d7923);}async[_0x5642bf(0xf1)](_0x1d85d6,_0x128cee,_0x8b714e,_0x5e8377){const _0x384308=_0x5642bf;let _0x33d30c,_0x52fcf2;return _0x128cee?(_0x33d30c=_0x384308(0xf9),_0x52fcf2=_0x384308(0x100)+_0x1d85d6+_0x384308(0xdd)+_0x128cee):(_0x33d30c=_0x384308(0xf8),_0x52fcf2=_0x1d85d6),_0x384308(0xe0)==this[_0x384308(0xd5)](_0x8b714e)?_0x384308(0xfc)+_0x33d30c+_0x384308(0xd8)+_0x52fcf2+_0x384308(0xfa):_0x384308(0x117)+_0x33d30c+'\x0a'+_0x52fcf2+_0x384308(0x106);}[_0x5642bf(0xd5)](_0x4ea2a9){const _0x439615=_0x5642bf;if(/^anthropic\.claude/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xed);if(/^ai21\.j2/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xd2);if(/^cohere\.command/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xf2);if(/^meta\.llama/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xe0);throw new _0x5c0fce(_0x47beab(this[_0x439615(0xd4)][_0x439615(0xeb)],_0x439615(0xe8),_0x4ea2a9));}async[_0x5642bf(0xff)](_0x3b95a3,_0x282f1a,_0x328075,_0x48d5d1,_0x189216){const _0x15c2ac=_0x5642bf,_0xc9a1c={'method':_0x15c2ac(0xec),'headers':await this[_0x15c2ac(0x112)](this[_0x15c2ac(0xe9)],_0x189216),'body':JSON[_0x15c2ac(0xe1)]({..._0x3b95a3,'model':_0x282f1a,'stream':_0x328075}),'signal':this[_0x15c2ac(0xfe)][_0x15c2ac(0xd6)]},_0x6d7024=await fetch(this[_0x15c2ac(0xf0)],_0xc9a1c);_0x328075?await this[_0x15c2ac(0xdc)](_0x6d7024,_0x282f1a,_0x48d5d1):await this[_0x15c2ac(0xee)](_0x6d7024,_0x282f1a,_0x48d5d1);}async[_0x5642bf(0xd9)](_0x39cb3d,_0xe2173e,_0x2e9b1e,_0x61a4fe){const _0x35f8fe=_0x5642bf,_0x5a9e45=new _0x18ffeb(this[_0x35f8fe(0xe3)]),_0x463608={'body':JSON[_0x35f8fe(0xe1)](_0x39cb3d),'contentType':_0x35f8fe(0xd0),'accept':_0x35f8fe(0xd0),'modelId':_0xe2173e};let _0xccc69b;if(_0x2e9b1e){const _0x3d6c2d=new _0x203bf3(_0x463608);_0xccc69b=await _0x5a9e45[_0x35f8fe(0x116)](_0x3d6c2d,{'abortSignal':this[_0x35f8fe(0xfe)][_0x35f8fe(0xd6)]}),await this[_0x35f8fe(0x108)](_0xccc69b,_0xe2173e,_0x61a4fe);}else{const _0x3ef6c2=new _0x3cb64b(_0x463608);_0xccc69b=await _0x5a9e45[_0x35f8fe(0x116)](_0x3ef6c2,{'abortSignal':this[_0x35f8fe(0xfe)][_0x35f8fe(0xd6)]}),await this[_0x35f8fe(0xee)](_0xccc69b,_0xe2173e,_0x61a4fe);}}async[_0x5642bf(0x108)](_0x31af57,_0x3acb2e,_0x381706){const _0x135822=_0x5642bf,_0x4f02c9=_0x31af57[_0x135822(0x120)],_0x357c5a=new TextDecoder(_0x135822(0xda));let _0x44727c='';for await(const _0x1a5fc4 of _0x4f02c9)if(_0x1a5fc4[_0x135822(0xea)]){const _0x531b3a=_0x357c5a[_0x135822(0xe5)](_0x1a5fc4[_0x135822(0xea)][_0x135822(0x118)]),_0x2bbcf8=JSON[_0x135822(0x107)](_0x531b3a);_0x44727c+=this[_0x135822(0x111)](_0x2bbcf8,_0x3acb2e),_0x381706(_0x44727c);}return Promise[_0x135822(0x114)]();}async[_0x5642bf(0xdc)](_0x543648,_0x62c5b3,_0x392217){const _0xe27dc9=_0x5642bf,_0x3cf32f=_0x543648[_0xe27dc9(0x120)],_0x58ff3c=new TextDecoder(_0xe27dc9(0xda)),_0x17103b=_0x3cf32f[_0xe27dc9(0x110)]();let _0x2f4819='',_0x2e1483='',_0x394b25=!0x1;for(;!_0x394b25;){const {done:_0x4dc060,value:_0x546f23}=await _0x17103b[_0xe27dc9(0x10e)]();if(_0x394b25=_0x4dc060,_0x394b25)break;const _0x1333c7=(_0x2f4819+_0x58ff3c[_0xe27dc9(0xe5)](_0x546f23))[_0xe27dc9(0xd3)]('\x0a')[_0xe27dc9(0x10d)](_0x56866d=>{const _0x148447=_0xe27dc9;try{return _0x2f4819='',JSON[_0x148447(0x107)](_0x56866d);}catch{return _0x2f4819=_0x56866d,null;}})[_0xe27dc9(0x11a)](_0x17cfb4=>null!==_0x17cfb4);_0x1333c7[_0xe27dc9(0x11e)]&&(_0x2e1483+=_0x1333c7[_0xe27dc9(0x10d)](_0x4f256c=>this[_0xe27dc9(0x111)](_0x4f256c,_0x62c5b3))[_0xe27dc9(0xfb)](''),_0x392217(_0x2e1483));}return Promise[_0xe27dc9(0x114)]();}async[_0x5642bf(0xee)](_0x50248b,_0x146f37,_0x33c5bf){const _0xdbf572=_0x5642bf;let _0x3c4f7a;return _0x3c4f7a=_0x50248b instanceof Response?await _0x50248b[_0xdbf572(0xf3)]():JSON[_0xdbf572(0x107)](new TextDecoder(_0xdbf572(0xda))[_0xdbf572(0xe5)](_0x50248b[_0xdbf572(0x120)])),(_0x33c5bf(this[_0xdbf572(0x111)](_0x3c4f7a,_0x146f37)),Promise[_0xdbf572(0x114)]());}[_0x5642bf(0x111)](_0x114318,_0x14bac1){const _0x5991b6=_0x5642bf;switch(this[_0x5991b6(0xd5)](_0x14bac1)){case _0x5991b6(0xed):return _0x114318[_0x5991b6(0xe7)];case _0x5991b6(0xd2):return _0x114318[_0x5991b6(0x103)][0x0][_0x5991b6(0x11b)][_0x5991b6(0xe4)];case _0x5991b6(0xf2):return _0x114318[_0x5991b6(0x109)][0x0][_0x5991b6(0xe4)];case _0x5991b6(0xe0):return _0x114318[_0x5991b6(0xdb)];}}}
23
+ function _0xb188(_0x3dabaf,_0x30c469){const _0x583fb1=_0x583f();return _0xb188=function(_0xb18869,_0x51489e){_0xb18869=_0xb18869-0xc1;let _0x4cdcd7=_0x583fb1[_0xb18869];return _0x4cdcd7;},_0xb188(_0x3dabaf,_0x30c469);}const _0x5aa151=_0xb188;(function(_0x2d94a8,_0x3804a4){const _0x502bfe=_0xb188,_0x14909d=_0x2d94a8();while(!![]){try{const _0x156eba=-parseInt(_0x502bfe(0xd1))/0x1*(parseInt(_0x502bfe(0xe5))/0x2)+parseInt(_0x502bfe(0xc5))/0x3+-parseInt(_0x502bfe(0x101))/0x4+parseInt(_0x502bfe(0xe6))/0x5+parseInt(_0x502bfe(0xf8))/0x6+parseInt(_0x502bfe(0xc2))/0x7+parseInt(_0x502bfe(0x10a))/0x8*(-parseInt(_0x502bfe(0xc1))/0x9);if(_0x156eba===_0x3804a4)break;else _0x14909d['push'](_0x14909d['shift']());}catch(_0x4b58dc){_0x14909d['push'](_0x14909d['shift']());}}}(_0x583f,0xeead7));import{AITextAdapter as _0x21084b}from'./aitextadapter.js';import{AIRequestError as _0x1abbff}from'./aiadapter.js';import{BedrockRuntimeClient as _0x2bce99,InvokeModelCommand as _0xe06c69,InvokeModelWithResponseStreamCommand as _0xf40813}from'@aws-sdk/client-bedrock-runtime';function _0x583f(){const _0x42ccbc=['send','16qBWoZB','Instruction:\x0a','json','utf-8','define','cohere.command','_readStreamableResponse','\x0a\x0aAssistant:','decode','pluginName','_processAWSRequest','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','length','generations','_getGeneratedText','abortController','bytes','split','text','bedrock-2023-05-31','200276oXgqdO','8074300vVHcxl','getModelFamily','_requestHeaders','body','POST','ai21.j2','stringify','ai.assistant.adapter.aws.apiUrl','preparePrompt','sendRequest','resolve','completion','map','meta.llama','AI_ERROR_UNSUPPORTED_MODEL','test','getReader','_readAsyncIterableResponse','3528186GHkGnd','get','signal','parse','editor','Human:\x0a','anthropic.claude','_bedrockClientConfig','application/json','994132WFJBau','AWSTextAdapter','anthropic.claude-v2','_prepareRequestParameters','generation','ai.assistant.adapter.aws.requestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','_readStaticResponse','join','60136ycmzsh','config','ai.assistant.adapter.aws.bedrockClientConfig','read','completions','data','1107WLyYfy','7020454SNSfle','chunk','<<SYS>>\x0a','1641426OwxPEg','filter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_processProxyRequest','_apiUrl','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','\x0a[/INST]','ai.assistant.adapter.aws.requestParameters','_requestParameters','_prepareRequestHeaders','locale'];_0x583f=function(){return _0x42ccbc;};return _0x583f();}import{getTranslation as _0x3c261e}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x21084b{[_0x5aa151(0xc9)];[_0x5aa151(0xe8)];[_0x5aa151(0xff)];[_0x5aa151(0xcd)];static get[_0x5aa151(0xda)](){const _0x51adaf=_0x5aa151;return _0x51adaf(0x102);}constructor(_0x2315cd){const _0x1fb907=_0x5aa151;super(_0x2315cd),_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0xcc))||_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xd5)](_0x1fb907(0xcc),{'model':_0x1fb907(0x103),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1fb907(0xe4),'stream':!0x0}),this[_0x1fb907(0xc9)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0xed)),this[_0x1fb907(0xff)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0x10c)),this[_0x1fb907(0xe8)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0x106)),this[_0x1fb907(0xcd)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0xcc));}async[_0x5aa151(0xef)]({query:_0x1d6f63,context:_0xbf7289,onData:_0x19e47c,actionId:_0x2d666b}){const _0x1aec7d=_0x5aa151,{model:_0x5b6fd8,stream:_0x11c8bb,..._0x58457c}=await this[_0x1aec7d(0x104)](this[_0x1aec7d(0xcd)],_0x2d666b),_0x18230d={'prompt':await this[_0x1aec7d(0xee)](_0x1d6f63,_0xbf7289,_0x5b6fd8,_0x2d666b),..._0x58457c};this[_0x1aec7d(0xc9)]?await this[_0x1aec7d(0xc8)](_0x18230d,_0x5b6fd8,_0x11c8bb,_0x19e47c,_0x2d666b):await this[_0x1aec7d(0xdb)](_0x18230d,_0x5b6fd8,_0x11c8bb,_0x19e47c);}async[_0x5aa151(0xee)](_0x2a71cb,_0x4cb3f6,_0x2af56f,_0x238ec6){const _0x8886f9=_0x5aa151;let _0x3bf686,_0x5ec109;return _0x4cb3f6?(_0x3bf686=_0x8886f9(0xca),_0x5ec109=_0x8886f9(0xd2)+_0x2a71cb+_0x8886f9(0xc7)+_0x4cb3f6):(_0x3bf686=_0x8886f9(0xdc),_0x5ec109=_0x2a71cb),_0x8886f9(0xf3)==this[_0x8886f9(0xe7)](_0x2af56f)?_0x8886f9(0xc4)+_0x3bf686+_0x8886f9(0x107)+_0x5ec109+_0x8886f9(0xcb):_0x8886f9(0xfd)+_0x3bf686+'\x0a'+_0x5ec109+_0x8886f9(0xd8);}[_0x5aa151(0xe7)](_0x3b456a){const _0x313783=_0x5aa151;if(/^anthropic\.claude/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xfe);if(/^ai21\.j2/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xeb);if(/^cohere\.command/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xd6);if(/^meta\.llama/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xf3);throw new _0x1abbff(_0x3c261e(this[_0x313783(0xfc)][_0x313783(0xcf)],_0x313783(0xf4),_0x3b456a));}async[_0x5aa151(0xc8)](_0x212c8a,_0x1e9488,_0x19185b,_0x26f5bc,_0x57d101){const _0x745028=_0x5aa151,_0x506bc5={'method':_0x745028(0xea),'headers':await this[_0x745028(0xce)](this[_0x745028(0xe8)],_0x57d101),'body':JSON[_0x745028(0xec)]({..._0x212c8a,'model':_0x1e9488,'stream':_0x19185b}),'signal':this[_0x745028(0xe0)][_0x745028(0xfa)]},_0x5a1e9d=await fetch(this[_0x745028(0xc9)],_0x506bc5);_0x19185b?await this[_0x745028(0xd7)](_0x5a1e9d,_0x1e9488,_0x26f5bc):await this[_0x745028(0x108)](_0x5a1e9d,_0x1e9488,_0x26f5bc);}async[_0x5aa151(0xdb)](_0x3ea5d8,_0x52b4e6,_0x43ddf0,_0x40dc2e){const _0x4f95a9=_0x5aa151,_0x4a7c36=new _0x2bce99(this[_0x4f95a9(0xff)]),_0x317029={'body':JSON[_0x4f95a9(0xec)](_0x3ea5d8),'contentType':_0x4f95a9(0x100),'accept':_0x4f95a9(0x100),'modelId':_0x52b4e6};let _0x42eb1c;if(_0x43ddf0){const _0x1fd45c=new _0xf40813(_0x317029);_0x42eb1c=await _0x4a7c36[_0x4f95a9(0xd0)](_0x1fd45c,{'abortSignal':this[_0x4f95a9(0xe0)][_0x4f95a9(0xfa)]}),await this[_0x4f95a9(0xf7)](_0x42eb1c,_0x52b4e6,_0x40dc2e);}else{const _0x4cc2ee=new _0xe06c69(_0x317029);_0x42eb1c=await _0x4a7c36[_0x4f95a9(0xd0)](_0x4cc2ee,{'abortSignal':this[_0x4f95a9(0xe0)][_0x4f95a9(0xfa)]}),await this[_0x4f95a9(0x108)](_0x42eb1c,_0x52b4e6,_0x40dc2e);}}async[_0x5aa151(0xf7)](_0xcad743,_0x2b4900,_0x1f182a){const _0x24981e=_0x5aa151,_0x42e2b3=_0xcad743[_0x24981e(0xe9)],_0x3bd606=new TextDecoder(_0x24981e(0xd4));let _0x3822c1='';for await(const _0x2f129a of _0x42e2b3)if(_0x2f129a[_0x24981e(0xc3)]){const _0xf5b8cf=_0x3bd606[_0x24981e(0xd9)](_0x2f129a[_0x24981e(0xc3)][_0x24981e(0xe1)]),_0x2dddde=JSON[_0x24981e(0xfb)](_0xf5b8cf);_0x3822c1+=this[_0x24981e(0xdf)](_0x2dddde,_0x2b4900),_0x1f182a(_0x3822c1);}return Promise[_0x24981e(0xf0)]();}async[_0x5aa151(0xd7)](_0x276e7b,_0x7cac7a,_0x2925bb){const _0x3edcd5=_0x5aa151,_0x4ef1bb=_0x276e7b[_0x3edcd5(0xe9)],_0x363e9f=new TextDecoder(_0x3edcd5(0xd4)),_0x82e6b5=_0x4ef1bb[_0x3edcd5(0xf6)]();let _0x401db3='',_0x13577f='',_0xcf736c=!0x1;for(;!_0xcf736c;){const {done:_0x5c7a75,value:_0x214477}=await _0x82e6b5[_0x3edcd5(0x10d)]();if(_0xcf736c=_0x5c7a75,_0xcf736c)break;const _0x1e00c8=(_0x401db3+_0x363e9f[_0x3edcd5(0xd9)](_0x214477))[_0x3edcd5(0xe2)]('\x0a')[_0x3edcd5(0xf2)](_0x1b07c8=>{const _0x56a1d0=_0x3edcd5;try{return _0x401db3='',JSON[_0x56a1d0(0xfb)](_0x1b07c8);}catch{return _0x401db3=_0x1b07c8,null;}})[_0x3edcd5(0xc6)](_0x1a9217=>null!==_0x1a9217);_0x1e00c8[_0x3edcd5(0xdd)]&&(_0x13577f+=_0x1e00c8[_0x3edcd5(0xf2)](_0x5e746f=>this[_0x3edcd5(0xdf)](_0x5e746f,_0x7cac7a))[_0x3edcd5(0x109)](''),_0x2925bb(_0x13577f));}return Promise[_0x3edcd5(0xf0)]();}async[_0x5aa151(0x108)](_0x167231,_0x67d28a,_0x2ba7c9){const _0x596599=_0x5aa151;let _0x5edfd8;return _0x5edfd8=_0x167231 instanceof Response?await _0x167231[_0x596599(0xd3)]():JSON[_0x596599(0xfb)](new TextDecoder(_0x596599(0xd4))[_0x596599(0xd9)](_0x167231[_0x596599(0xe9)])),(_0x2ba7c9(this[_0x596599(0xdf)](_0x5edfd8,_0x67d28a)),Promise[_0x596599(0xf0)]());}[_0x5aa151(0xdf)](_0x2184e9,_0x502350){const _0x20166e=_0x5aa151;switch(this[_0x20166e(0xe7)](_0x502350)){case _0x20166e(0xfe):return _0x2184e9[_0x20166e(0xf1)];case _0x20166e(0xeb):return _0x2184e9[_0x20166e(0x10e)][0x0][_0x20166e(0x10f)][_0x20166e(0xe3)];case _0x20166e(0xd6):return _0x2184e9[_0x20166e(0xde)][0x0][_0x20166e(0xe3)];case _0x20166e(0xf3):return _0x2184e9[_0x20166e(0x105)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33b32d=_0x568f;(function(_0x5a8f3d,_0x2bab9f){const _0x425f06=_0x568f,_0x2c7f1b=_0x5a8f3d();while(!![]){try{const _0x1b26e7=-parseInt(_0x425f06(0x8d))/0x1*(-parseInt(_0x425f06(0x84))/0x2)+-parseInt(_0x425f06(0x92))/0x3*(-parseInt(_0x425f06(0xc6))/0x4)+parseInt(_0x425f06(0x90))/0x5+parseInt(_0x425f06(0xc0))/0x6+parseInt(_0x425f06(0xbf))/0x7*(-parseInt(_0x425f06(0x8b))/0x8)+-parseInt(_0x425f06(0xa1))/0x9+-parseInt(_0x425f06(0xaf))/0xa;if(_0x1b26e7===_0x2bab9f)break;else _0x2c7f1b['push'](_0x2c7f1b['shift']());}catch(_0x3c2f1d){_0x2c7f1b['push'](_0x2c7f1b['shift']());}}}(_0x28a8,0x8a544));function _0x568f(_0x56242e,_0x43375b){const _0x28a876=_0x28a8();return _0x568f=function(_0x568fc7,_0x4f914f){_0x568fc7=_0x568fc7-0x84;let _0x3f0f89=_0x28a876[_0x568fc7];return _0x3f0f89;},_0x568f(_0x56242e,_0x43375b);}import{AITextAdapter as _0x557cec}from'./aitextadapter.js';import{AIRequestError as _0x14dfa9}from'./aiadapter.js';import{getTranslation as _0xb4eeb6}from'../utils/common-translations.js';function _0x28a8(){const _0xe7bd70=['getReader','pluginName','_requestHeaders','2317860MMQVNk','_prepareRequestParameters','https://api.openai.com/v1/chat/completions','_readStreamableResponse','ai.assistant.adapter.openAI.apiUrl','reject','split','config','replace','AI_ERROR_MODERATION','content','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','abortController','_requestParameters','Moderation','signal','7904183vouRGG','4976502uaptdl','stringify','body','stream','gpt-4o','length','2041624SroLQc','resolve','sendRequest','POST','22bVXuSV','delta','define','text','choices','_cleanUpData','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','8Wamgzb','context_length_exceeded','190vPXOMb','map','prepareMessages','3812930ssgUGZ','_prepareRequestHeaders','6kHgRTz','get','_isBufferIncomplete','user','AI_ERROR_CONTEXT_LENGTH','OpenAITextAdapter','parse','editor','[DONE]','ai.assistant.adapter.openAI.requestParameters','ai.assistant.adapter.openAI.requestHeaders','Instruction:\x0a','json','filter','_apiUrl','6186186lXmiiS','message','_readStaticResponse','data:\x20','read','includes','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','join','locale','system'];_0x28a8=function(){return _0xe7bd70;};return _0x28a8();}export class OpenAITextAdapter extends _0x557cec{[_0x33b32d(0xa0)];[_0x33b32d(0xae)];[_0x33b32d(0xbc)];static get[_0x33b32d(0xad)](){const _0xa269d9=_0x33b32d;return _0xa269d9(0x97);}constructor(_0x24bfa8){const _0x492df6=_0x33b32d;super(_0x24bfa8),_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x86)](_0x492df6(0xb3),_0x492df6(0xb1)),_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9b))||_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x86)](_0x492df6(0x9b),{'model':_0x492df6(0xc4),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x492df6(0xa0)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0xb3)),this[_0x492df6(0xae)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9c))||{},this[_0x492df6(0xbc)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9b));}async[_0x33b32d(0xc8)]({query:_0x7117b1,context:_0x449b04,onData:_0x1a88f5,actionId:_0x224dfa}){const _0x82449f=_0x33b32d,_0x283a51=this[_0x82449f(0x99)][_0x82449f(0xaa)],_0x5c3d57=await this[_0x82449f(0x8f)](_0x7117b1,_0x449b04,_0x224dfa),_0x4d96f7=await this[_0x82449f(0x91)](this[_0x82449f(0xae)],_0x224dfa),_0x3e21da=await this[_0x82449f(0xb0)](this[_0x82449f(0xbc)],_0x224dfa),_0x5aea18={'messages':_0x5c3d57,..._0x3e21da},_0x4f93ab={'method':_0x82449f(0xc9),'headers':_0x4d96f7,'body':JSON[_0x82449f(0xc1)](_0x5aea18),'signal':this[_0x82449f(0xbb)][_0x82449f(0xbe)]},_0x33ff17=await fetch(this[_0x82449f(0xa0)],_0x4f93ab);if(_0x33ff17['ok'])return _0x3e21da[_0x82449f(0xc3)]?await this[_0x82449f(0xb2)](_0x33ff17,_0x1a88f5):await this[_0x82449f(0xa3)](_0x33ff17,_0x1a88f5),Promise[_0x82449f(0xc7)]();{const _0xaafa36=await _0x33ff17[_0x82449f(0x87)]();return _0xaafa36[_0x82449f(0xa6)](_0x82449f(0x8c))?Promise[_0x82449f(0xb4)](new _0x14dfa9(_0xb4eeb6(_0x283a51,_0x82449f(0x96)))):_0xaafa36[_0x82449f(0xa6)](_0x82449f(0xbd))?Promise[_0x82449f(0xb4)](new _0x14dfa9(_0xb4eeb6(_0x283a51,_0x82449f(0xb8)))):Promise[_0x82449f(0xb4)](new Error(_0xaafa36));}}async[_0x33b32d(0x8f)](_0x1d078a,_0x1ff34c,_0x36d065){const _0x1f46a5=_0x33b32d;let _0x59a605,_0x46d6f7;return _0x1ff34c?(_0x59a605=_0x1f46a5(0xba),_0x46d6f7=_0x1f46a5(0x9d)+_0x1d078a+_0x1f46a5(0xa7)+_0x1ff34c):(_0x59a605=_0x1f46a5(0x8a),_0x46d6f7=_0x1d078a),[{'role':_0x1f46a5(0xab),'content':_0x59a605},{'role':_0x1f46a5(0x95),'content':_0x46d6f7}];}async[_0x33b32d(0xb2)](_0x50619d,_0x280794){const _0x2552b8=_0x33b32d,_0x5484d2=_0x50619d[_0x2552b8(0xc2)][_0x2552b8(0xac)](),_0x58bb3d=new TextDecoder();let _0x1ac41e='',_0x7fc76b='',_0x520215='',_0x535de1=!0x1;for(;!_0x535de1;){const {done:_0x3e3ec0,value:_0x31aa21}=await _0x5484d2[_0x2552b8(0xa5)](),_0x182af4=_0x1ac41e+_0x58bb3d[_0x2552b8(0xa8)](_0x31aa21);let _0x560caf='';_0x535de1=_0x3e3ec0;try{_0x560caf=this[_0x2552b8(0x89)](_0x182af4),_0x1ac41e='';}catch{_0x1ac41e=_0x182af4;continue;}_0x7fc76b+=_0x560caf,!_0x535de1&&this[_0x2552b8(0x94)](_0x7fc76b)||_0x7fc76b&&(_0x520215+=_0x7fc76b,_0x7fc76b='',_0x280794(_0x520215));}return Promise[_0x2552b8(0xc7)]();}async[_0x33b32d(0xa3)](_0x188938,_0x7a5b1b){const _0xaeb57b=_0x33b32d;return _0x7a5b1b((await _0x188938[_0xaeb57b(0x9e)]())[_0xaeb57b(0x88)][0x0][_0xaeb57b(0xa2)][_0xaeb57b(0xb9)]),Promise[_0xaeb57b(0xc7)]();}[_0x33b32d(0x94)](_0x25587d){const _0x4fa19a=_0x33b32d,_0x44bcfa=_0x25587d[_0x4fa19a(0xb5)]('<')[_0x4fa19a(0xc5)]!==_0x25587d[_0x4fa19a(0xb5)]('>')[_0x4fa19a(0xc5)],_0x5251ea=_0x25587d[_0x4fa19a(0xc5)]<0x1e;return _0x44bcfa&&_0x5251ea;}[_0x33b32d(0x89)](_0x2122ce){const _0xaec61d=_0x33b32d;return _0x2122ce[_0xaec61d(0xb5)](/\n(?![^{]*\})/g)[_0xaec61d(0x8e)](_0x22f8bd=>_0x22f8bd[_0xaec61d(0xb7)](_0xaec61d(0xa4),''))[_0xaec61d(0x9f)](_0x16249c=>_0x16249c&&_0x16249c[_0xaec61d(0xc5)]>0x0&&_0xaec61d(0x9a)!==_0x16249c)[_0xaec61d(0x8e)](_0x4d8315=>{const _0x231771=_0xaec61d,{choices:_0x40f090}=JSON[_0x231771(0x98)](_0x4d8315);if(_0x40f090[0x0]?.[_0x231771(0x85)]?.[_0x231771(0xb9)])return _0x40f090[0x0][_0x231771(0x85)][_0x231771(0xb9)];})[_0xaec61d(0x9f)](_0x5d1de2=>_0x5d1de2)[_0xaec61d(0xa9)]('');}}
23
+ const _0x3cbf68=_0x3492;(function(_0x17bfb7,_0x540ba3){const _0x4e5926=_0x3492,_0x4dcf10=_0x17bfb7();while(!![]){try{const _0x2ba7d5=-parseInt(_0x4e5926(0x1f3))/0x1*(parseInt(_0x4e5926(0x1c8))/0x2)+parseInt(_0x4e5926(0x1e5))/0x3*(-parseInt(_0x4e5926(0x1ea))/0x4)+-parseInt(_0x4e5926(0x1f1))/0x5*(-parseInt(_0x4e5926(0x1ca))/0x6)+-parseInt(_0x4e5926(0x1fa))/0x7*(parseInt(_0x4e5926(0x1dd))/0x8)+parseInt(_0x4e5926(0x1c5))/0x9*(parseInt(_0x4e5926(0x1e7))/0xa)+parseInt(_0x4e5926(0x1bd))/0xb+-parseInt(_0x4e5926(0x1de))/0xc;if(_0x2ba7d5===_0x540ba3)break;else _0x4dcf10['push'](_0x4dcf10['shift']());}catch(_0xb5feb7){_0x4dcf10['push'](_0x4dcf10['shift']());}}}(_0x14f8,0x4f3a2));function _0x3492(_0x4fd767,_0x4721bc){const _0x14f895=_0x14f8();return _0x3492=function(_0x349250,_0x5d7e55){_0x349250=_0x349250-0x1bb;let _0x440d10=_0x14f895[_0x349250];return _0x440d10;},_0x3492(_0x4fd767,_0x4721bc);}import{AITextAdapter as _0x2f2f2b}from'./aitextadapter.js';function _0x14f8(){const _0x12bba2=['signal','map','55xzLTlI','split','1319dwDEdu','message','ai.assistant.adapter.openAI.requestHeaders','ai.assistant.adapter.openAI.requestParameters','AI_ERROR_CONTEXT_LENGTH','stringify','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','259mevpwy','content','[DONE]','editor','pluginName','Instruction:\x0a','filter','config','text','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','join','5395192qPqfLF','gpt-4o','body','OpenAITextAdapter','reject','locale','get','delta','4226841AczZYy','includes','abortController','902CuOpAX','data:\x20','141126FtJUsx','_readStreamableResponse','user','https://api.openai.com/v1/chat/completions','system','_prepareRequestParameters','_requestHeaders','json','getReader','_requestParameters','parse','_readStaticResponse','POST','stream','length','prepareMessages','AI_ERROR_MODERATION','choices','resolve','200ekDugA','3292176MIXHbP','_apiUrl','replace','Moderation','_isBufferIncomplete','_prepareRequestHeaders','define','3156edUZEt','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','10lOmtwZ','decode','read','92Sbteru','ai.assistant.adapter.openAI.apiUrl','_cleanUpData','context_length_exceeded','sendRequest'];_0x14f8=function(){return _0x12bba2;};return _0x14f8();}import{AIRequestError as _0x2917e7}from'./aiadapter.js';import{getTranslation as _0x177bc6}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2f2f2b{[_0x3cbf68(0x1df)];[_0x3cbf68(0x1d0)];[_0x3cbf68(0x1d3)];static get[_0x3cbf68(0x1fe)](){const _0xada52c=_0x3cbf68;return _0xada52c(0x1c0);}constructor(_0x4e1e04){const _0x1838dd=_0x3cbf68;super(_0x4e1e04),_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1e4)](_0x1838dd(0x1eb),_0x1838dd(0x1cd)),_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1f6))||_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1e4)](_0x1838dd(0x1f6),{'model':_0x1838dd(0x1be),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1838dd(0x1df)]=_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1eb)),this[_0x1838dd(0x1d0)]=_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1f5))||{},this[_0x1838dd(0x1d3)]=_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1f6));}async[_0x3cbf68(0x1ee)]({query:_0x48c09a,context:_0x3e03d0,onData:_0x525b73,actionId:_0x264357}){const _0x58737a=_0x3cbf68,_0x4aa57a=this[_0x58737a(0x1fd)][_0x58737a(0x1c2)],_0x2ef763=await this[_0x58737a(0x1d9)](_0x48c09a,_0x3e03d0,_0x264357),_0x12c2db=await this[_0x58737a(0x1e3)](this[_0x58737a(0x1d0)],_0x264357),_0x4373c5=await this[_0x58737a(0x1cf)](this[_0x58737a(0x1d3)],_0x264357),_0x34b887={'messages':_0x2ef763,..._0x4373c5},_0x109364={'method':_0x58737a(0x1d6),'headers':_0x12c2db,'body':JSON[_0x58737a(0x1f8)](_0x34b887),'signal':this[_0x58737a(0x1c7)][_0x58737a(0x1ef)]},_0xdc677a=await fetch(this[_0x58737a(0x1df)],_0x109364);if(_0xdc677a['ok'])return _0x4373c5[_0x58737a(0x1d7)]?await this[_0x58737a(0x1cb)](_0xdc677a,_0x525b73):await this[_0x58737a(0x1d5)](_0xdc677a,_0x525b73),Promise[_0x58737a(0x1dc)]();{const _0x45b822=await _0xdc677a[_0x58737a(0x202)]();return _0x45b822[_0x58737a(0x1c6)](_0x58737a(0x1ed))?Promise[_0x58737a(0x1c1)](new _0x2917e7(_0x177bc6(_0x4aa57a,_0x58737a(0x1f7)))):_0x45b822[_0x58737a(0x1c6)](_0x58737a(0x1e1))?Promise[_0x58737a(0x1c1)](new _0x2917e7(_0x177bc6(_0x4aa57a,_0x58737a(0x1da)))):Promise[_0x58737a(0x1c1)](new Error(_0x45b822));}}async[_0x3cbf68(0x1d9)](_0x169e7e,_0x1ab2cc,_0x210a17){const _0x563b2c=_0x3cbf68;let _0x20d7ee,_0x23e09a;return _0x1ab2cc?(_0x20d7ee=_0x563b2c(0x1f9),_0x23e09a=_0x563b2c(0x1ff)+_0x169e7e+_0x563b2c(0x1bb)+_0x1ab2cc):(_0x20d7ee=_0x563b2c(0x1e6),_0x23e09a=_0x169e7e),[{'role':_0x563b2c(0x1ce),'content':_0x20d7ee},{'role':_0x563b2c(0x1cc),'content':_0x23e09a}];}async[_0x3cbf68(0x1cb)](_0x2ab897,_0x5a3ac3){const _0x380a09=_0x3cbf68,_0x665613=_0x2ab897[_0x380a09(0x1bf)][_0x380a09(0x1d2)](),_0x2306ab=new TextDecoder();let _0x34347b='',_0x2eee39='',_0x52569a='',_0x16a4e0=!0x1;for(;!_0x16a4e0;){const {done:_0x44b77b,value:_0x2d21be}=await _0x665613[_0x380a09(0x1e9)](),_0x1167e8=_0x34347b+_0x2306ab[_0x380a09(0x1e8)](_0x2d21be);let _0x49f5a8='';_0x16a4e0=_0x44b77b;try{_0x49f5a8=this[_0x380a09(0x1ec)](_0x1167e8),_0x34347b='';}catch{_0x34347b=_0x1167e8;continue;}_0x2eee39+=_0x49f5a8,!_0x16a4e0&&this[_0x380a09(0x1e2)](_0x2eee39)||_0x2eee39&&(_0x52569a+=_0x2eee39,_0x2eee39='',_0x5a3ac3(_0x52569a));}return Promise[_0x380a09(0x1dc)]();}async[_0x3cbf68(0x1d5)](_0x5c316f,_0x5b67bf){const _0x123ecd=_0x3cbf68;return _0x5b67bf((await _0x5c316f[_0x123ecd(0x1d1)]())[_0x123ecd(0x1db)][0x0][_0x123ecd(0x1f4)][_0x123ecd(0x1fb)]),Promise[_0x123ecd(0x1dc)]();}[_0x3cbf68(0x1e2)](_0x38654e){const _0x5a5411=_0x3cbf68,_0x594261=_0x38654e[_0x5a5411(0x1f2)]('<')[_0x5a5411(0x1d8)]!==_0x38654e[_0x5a5411(0x1f2)]('>')[_0x5a5411(0x1d8)],_0x3116e1=_0x38654e[_0x5a5411(0x1d8)]<0x1e;return _0x594261&&_0x3116e1;}[_0x3cbf68(0x1ec)](_0x5b63d7){const _0x66a17e=_0x3cbf68;return _0x5b63d7[_0x66a17e(0x1f2)](/\n(?![^{]*\})/g)[_0x66a17e(0x1f0)](_0x1fedf0=>_0x1fedf0[_0x66a17e(0x1e0)](_0x66a17e(0x1c9),''))[_0x66a17e(0x200)](_0x39ac8=>_0x39ac8&&_0x39ac8[_0x66a17e(0x1d8)]>0x0&&_0x66a17e(0x1fc)!==_0x39ac8)[_0x66a17e(0x1f0)](_0x4249e5=>{const _0x4fa0d6=_0x66a17e,{choices:_0x32238f}=JSON[_0x4fa0d6(0x1d4)](_0x4249e5);if(_0x32238f[0x0]?.[_0x4fa0d6(0x1c4)]?.[_0x4fa0d6(0x1fb)])return _0x32238f[0x0][_0x4fa0d6(0x1c4)][_0x4fa0d6(0x1fb)];})[_0x66a17e(0x200)](_0x17e9a9=>_0x17e9a9)[_0x66a17e(0x1bc)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1a41(_0x50e9cf,_0x1ae728){const _0x6a5143=_0x6a51();return _0x1a41=function(_0x1a41ea,_0x217420){_0x1a41ea=_0x1a41ea-0x1b5;let _0x12163a=_0x6a5143[_0x1a41ea];return _0x12163a;},_0x1a41(_0x50e9cf,_0x1ae728);}const _0x4d19fa=_0x1a41;function _0x6a51(){const _0x438061=['professional','isPremiumPlugin','Direct','isOfficialPlugin','Simplified\x20Chinese','translateGerman','3KNyeUO','Change\x20style','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Change\x20tone','Continue','AIAssistant','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Spanish','1RTAHNK','editOrReview','commands','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Professional','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','1159776UxBsrI','makeLonger','simplifyLanguage','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','1294510gWhblH','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Hindi','push','translateEnglish','Translate\x20the\x20content\x20to\x20German\x20language.','includes','translateChinese','French','ai.assistant.removeCommands','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Business','ai.assistant.extraCommandGroups','filter','ai.assistant.preserveComments','friendly','132298zVvYSu','1598427NqZmoc','Arabic','Portuguese','translateHindi','translatePortuguese','988564MUaeSt','Confident','config','translateFrench','poetic','journalism','pluginName','summarize','Make\x20longer','groupId','Translate','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','forEach','translateSpanish','6fEoNLA','business','changeTone','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','direct','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20writing','locale','ai.assistant.commands','Legal','confident','Simplify\x20language','Friendly','Translate\x20the\x20content\x20to\x20English\x20language.','requires','977522BLOXnn','changeStyle','improveWriting','Translate\x20the\x20content\x20to\x20Hindi\x20language.','set','Casual','generate','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','define','concat','Summarize','casual','translateArabic','English','find','3065775dXhXUr','continue','Journalism','get','Edit\x20or\x20review','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','German','makeShorter','translate','Translate\x20the\x20content\x20to\x20French\x20language.','Generate\x20from\x20selection','Make\x20shorter','legal','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'];_0x6a51=function(){return _0x438061;};return _0x6a51();}(function(_0x18281b,_0x21df92){const _0x2cb444=_0x1a41,_0xf56ffd=_0x18281b();while(!![]){try{const _0x36b598=-parseInt(_0x2cb444(0x1bd))/0x1*(parseInt(_0x2cb444(0x1da))/0x2)+parseInt(_0x2cb444(0x223))/0x3*(-parseInt(_0x2cb444(0x1e0))/0x4)+parseInt(_0x2cb444(0x20f))/0x5+-parseInt(_0x2cb444(0x1f1))/0x6*(parseInt(_0x2cb444(0x200))/0x7)+-parseInt(_0x2cb444(0x1c3))/0x8+parseInt(_0x2cb444(0x1db))/0x9+parseInt(_0x2cb444(0x1c9))/0xa;if(_0x36b598===_0x21df92)break;else _0xf56ffd['push'](_0xf56ffd['shift']());}catch(_0x5f03f4){_0xf56ffd['push'](_0xf56ffd['shift']());}}}(_0x6a51,0x4eafd));import{Plugin as _0x297345}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x525cdd}from'./aiassistantui.js';import{AIAssistantEditing as _0x5aeb9a}from'./aiassistantediting.js';import{getTranslation as _0x920f9a}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3040bc}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x297345{static get[_0x4d19fa(0x1ff)](){return[_0x525cdd,_0x5aeb9a];}static get[_0x4d19fa(0x1e6)](){const _0xbb30f2=_0x4d19fa;return _0xbb30f2(0x1ba);}static get[_0x4d19fa(0x220)](){return!0x0;}static get[_0x4d19fa(0x21e)](){return!0x0;}constructor(_0x50bafe){const _0xae6be6=_0x4d19fa;super(_0x50bafe);const _0x450a46=_0x50bafe[_0xae6be6(0x1e2)],_0x28285f=_0x50bafe[_0xae6be6(0x1f8)];_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d8),!0x0),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1f9),getDefaultAICommands(_0x28285f)),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d6),[]),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d3),[]);let _0x302fb=_0x3040bc(_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1f9)),_0x28285f);const _0x44be3c=_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1d6)),_0x3b5345=_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1d3));_0x44be3c[_0xae6be6(0x1ef)](_0x453e5d=>{const _0x2f26a6=_0xae6be6,_0x3c0616=_0x302fb[_0x2f26a6(0x20e)](_0x33517a=>_0x33517a[_0x2f26a6(0x1e9)]===_0x453e5d[_0x2f26a6(0x1e9)]);_0x3c0616?_0x3c0616[_0x2f26a6(0x1bf)]=_0x3c0616[_0x2f26a6(0x1bf)][_0x2f26a6(0x209)](_0x453e5d[_0x2f26a6(0x1bf)]):_0x302fb[_0x2f26a6(0x1cd)](_0x453e5d);}),_0x302fb=_0x302fb[_0xae6be6(0x1d7)](_0x2c4a19=>!_0x3b5345[_0xae6be6(0x1d0)](_0x2c4a19[_0xae6be6(0x1e9)])),_0x302fb[_0xae6be6(0x1ef)](_0x128844=>{const _0x1567f5=_0xae6be6;_0x128844[_0x1567f5(0x1bf)]=_0x128844[_0x1567f5(0x1bf)][_0x1567f5(0x1d7)](_0x25deed=>!_0x3b5345[_0x1567f5(0x1d0)](_0x25deed['id']));}),_0x450a46[_0xae6be6(0x204)](_0xae6be6(0x1f9),_0x302fb);}}export function getDefaultAICommands(_0x7e19f4){const _0xc46b37=_0x4d19fa;return[{'groupId':_0xc46b37(0x1be),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x213)),'commands':[{'id':_0xc46b37(0x202),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1f7)),'prompt':_0xc46b37(0x1b7)},{'id':_0xc46b37(0x216),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x21a)),'prompt':_0xc46b37(0x1f4)},{'id':_0xc46b37(0x1c4),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1e8)),'prompt':_0xc46b37(0x1ec)},{'id':_0xc46b37(0x1c5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fc)),'prompt':_0xc46b37(0x214)}]},{'groupId':_0xc46b37(0x206),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x219)),'commands':[{'id':_0xc46b37(0x1e7),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x20a)),'prompt':_0xc46b37(0x1c0)},{'id':_0xc46b37(0x210),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b9)),'prompt':_0xc46b37(0x1bb)}]},{'groupId':_0xc46b37(0x1f3),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b8)),'commands':[{'id':_0xc46b37(0x21d),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1c1)),'prompt':_0xc46b37(0x21c)},{'id':_0xc46b37(0x20b),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x205)),'prompt':_0xc46b37(0x1c7)},{'id':_0xc46b37(0x1f5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x21f)),'prompt':_0xc46b37(0x1eb)},{'id':_0xc46b37(0x1fb),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1e1)),'prompt':_0xc46b37(0x1c2)},{'id':_0xc46b37(0x1d9),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fd)),'prompt':_0xc46b37(0x1f6)}]},{'groupId':_0xc46b37(0x201),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b5)),'commands':[{'id':_0xc46b37(0x1f2),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1d5)),'prompt':_0xc46b37(0x1ee)},{'id':_0xc46b37(0x21b),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fa)),'prompt':_0xc46b37(0x1d4)},{'id':_0xc46b37(0x1e5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x211)),'prompt':_0xc46b37(0x1cb)},{'id':_0xc46b37(0x1e4),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1ed)),'prompt':_0xc46b37(0x1b6)}]},{'groupId':_0xc46b37(0x217),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1ea)),'commands':[{'id':_0xc46b37(0x1ce),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x20d)),'prompt':_0xc46b37(0x1fe)},{'id':_0xc46b37(0x1f0),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1bc)),'prompt':_0xc46b37(0x1c8)},{'id':_0xc46b37(0x1df),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1dd)),'prompt':_0xc46b37(0x1c6)},{'id':_0xc46b37(0x222),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x215)),'prompt':_0xc46b37(0x1cf)},{'id':_0xc46b37(0x1e3),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1d2)),'prompt':_0xc46b37(0x218)},{'id':_0xc46b37(0x1d1),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x221)),'prompt':_0xc46b37(0x207)},{'id':_0xc46b37(0x1de),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1cc)),'prompt':_0xc46b37(0x203)},{'id':_0xc46b37(0x20c),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1dc)),'prompt':_0xc46b37(0x1ca)}]}];}
23
+ const _0x28869f=_0x31fc;(function(_0x5283ba,_0x5b02c2){const _0x43baa9=_0x31fc,_0x46b4f8=_0x5283ba();while(!![]){try{const _0x3e910b=-parseInt(_0x43baa9(0x14d))/0x1*(-parseInt(_0x43baa9(0x16e))/0x2)+parseInt(_0x43baa9(0x18e))/0x3+parseInt(_0x43baa9(0x18b))/0x4*(parseInt(_0x43baa9(0x17d))/0x5)+-parseInt(_0x43baa9(0x14f))/0x6*(parseInt(_0x43baa9(0x143))/0x7)+parseInt(_0x43baa9(0x15f))/0x8*(-parseInt(_0x43baa9(0x17c))/0x9)+parseInt(_0x43baa9(0x15a))/0xa+parseInt(_0x43baa9(0x193))/0xb*(-parseInt(_0x43baa9(0x186))/0xc);if(_0x3e910b===_0x5b02c2)break;else _0x46b4f8['push'](_0x46b4f8['shift']());}catch(_0x32c09f){_0x46b4f8['push'](_0x46b4f8['shift']());}}}(_0x219b,0x8505a));import{Plugin as _0x481307}from'ckeditor5/src/core.js';function _0x31fc(_0xada52e,_0x32b267){const _0x219b65=_0x219b();return _0x31fc=function(_0x31fc8f,_0x1ff4d7){_0x31fc8f=_0x31fc8f-0x12a;let _0x4ebd94=_0x219b65[_0x31fc8f];return _0x4ebd94;},_0x31fc(_0xada52e,_0x32b267);}import{AIAssistantUI as _0x416f73}from'./aiassistantui.js';import{AIAssistantEditing as _0x9b57f}from'./aiassistantediting.js';import{getTranslation as _0x3f7e31}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x54a2c3}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x481307{static get[_0x28869f(0x158)](){return[_0x416f73,_0x9b57f];}static get[_0x28869f(0x140)](){const _0x431ce0=_0x28869f;return _0x431ce0(0x14e);}static get[_0x28869f(0x185)](){return!0x0;}static get[_0x28869f(0x175)](){return!0x0;}constructor(_0x3c0042){const _0x3a42d1=_0x28869f;super(_0x3c0042);const _0xe1b17a=_0x3c0042[_0x3a42d1(0x177)],_0x3398f7=_0x3c0042[_0x3a42d1(0x147)];_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x180),!0x0),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x16b),getDefaultAICommands(_0x3398f7)),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x165),[]),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x132),[]);let _0x4fd0bd=_0x54a2c3(_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x16b)),_0x3398f7);const _0x4e40e8=_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x165)),_0x4dbb6e=_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x132));_0x4e40e8[_0x3a42d1(0x13b)](_0x2ae76a=>{const _0x51b3d6=_0x3a42d1,_0x5d52f8=_0x4fd0bd[_0x51b3d6(0x153)](_0x31e5b9=>_0x31e5b9[_0x51b3d6(0x196)]===_0x2ae76a[_0x51b3d6(0x196)]);_0x5d52f8?_0x5d52f8[_0x51b3d6(0x163)]=_0x5d52f8[_0x51b3d6(0x163)][_0x51b3d6(0x16c)](_0x2ae76a[_0x51b3d6(0x163)]):_0x4fd0bd[_0x51b3d6(0x173)](_0x2ae76a);}),_0x4fd0bd=_0x4fd0bd[_0x3a42d1(0x13e)](_0x3e172c=>!_0x4dbb6e[_0x3a42d1(0x135)](_0x3e172c[_0x3a42d1(0x196)])),_0x4fd0bd[_0x3a42d1(0x13b)](_0x43702=>{const _0x52f042=_0x3a42d1;_0x43702[_0x52f042(0x163)]=_0x43702[_0x52f042(0x163)][_0x52f042(0x13e)](_0x51ddb3=>!_0x4dbb6e[_0x52f042(0x135)](_0x51ddb3['id']));}),_0xe1b17a[_0x3a42d1(0x159)](_0x3a42d1(0x16b),_0x4fd0bd);}}function _0x219b(){const _0x397fab=['ai.assistant.removeCommands','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Improve\x20writing','includes','Hindi','Legal','translateHindi','Friendly','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','forEach','friendly','Continue','filter','Translate','pluginName','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','translatePortuguese','15491DgpbRQ','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','English','translate','locale','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Portuguese','continue','Make\x20shorter','854893BdyEOB','AIAssistant','156LVPevR','Summarize','Change\x20tone','changeTone','find','Spanish','Generate\x20from\x20selection','Make\x20longer','Business','requires','set','7489900FiWZZM','translateSpanish','summarize','translateEnglish','Casual','2848LaKlRV','Simplified\x20Chinese','define','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','commands','makeLonger','ai.assistant.extraCommandGroups','confident','journalism','French','Edit\x20or\x20review','editOrReview','ai.assistant.commands','concat','generate','2MslaxB','changeStyle','Journalism','simplifyLanguage','German','push','Translate\x20the\x20content\x20to\x20Spanish\x20language.','isPremiumPlugin','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','config','Arabic','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Poetic','8892mtxuIK','485JnExim','Professional','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.preserveComments','Direct','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','isOfficialPlugin','3242628TiwNTx','poetic','business','casual','translateChinese','32520ZvrmNX','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','2980806FXiKID','Confident','makeShorter','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','professional','99NKVmEY','translateFrench','Translate\x20the\x20content\x20to\x20English\x20language.','groupId','legal','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','get','direct','Simplify\x20language','translateGerman','translateArabic','improveWriting','Change\x20style','Translate\x20the\x20content\x20to\x20Portuguese\x20language.'];_0x219b=function(){return _0x397fab;};return _0x219b();}export function getDefaultAICommands(_0x404033){const _0x571fce=_0x28869f;return[{'groupId':_0x571fce(0x16a),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x169)),'commands':[{'id':_0x571fce(0x12f),'label':_0x3f7e31(_0x404033,_0x571fce(0x134)),'prompt':_0x571fce(0x141)},{'id':_0x571fce(0x190),'label':_0x3f7e31(_0x404033,_0x571fce(0x14c)),'prompt':_0x571fce(0x162)},{'id':_0x571fce(0x164),'label':_0x3f7e31(_0x404033,_0x571fce(0x156)),'prompt':_0x571fce(0x13a)},{'id':_0x571fce(0x171),'label':_0x3f7e31(_0x404033,_0x571fce(0x12c)),'prompt':_0x571fce(0x144)}]},{'groupId':_0x571fce(0x16d),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x155)),'commands':[{'id':_0x571fce(0x15c),'label':_0x3f7e31(_0x404033,_0x571fce(0x150)),'prompt':_0x571fce(0x133)},{'id':_0x571fce(0x14b),'label':_0x3f7e31(_0x404033,_0x571fce(0x13d)),'prompt':_0x571fce(0x176)}]},{'groupId':_0x571fce(0x152),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x151)),'commands':[{'id':_0x571fce(0x192),'label':_0x3f7e31(_0x404033,_0x571fce(0x17e)),'prompt':_0x571fce(0x179)},{'id':_0x571fce(0x189),'label':_0x3f7e31(_0x404033,_0x571fce(0x15e)),'prompt':_0x571fce(0x149)},{'id':_0x571fce(0x12b),'label':_0x3f7e31(_0x404033,_0x571fce(0x181)),'prompt':_0x571fce(0x18c)},{'id':_0x571fce(0x166),'label':_0x3f7e31(_0x404033,_0x571fce(0x18f)),'prompt':_0x571fce(0x184)},{'id':_0x571fce(0x13c),'label':_0x3f7e31(_0x404033,_0x571fce(0x139)),'prompt':_0x571fce(0x17f)}]},{'groupId':_0x571fce(0x16f),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x130)),'commands':[{'id':_0x571fce(0x188),'label':_0x3f7e31(_0x404033,_0x571fce(0x157)),'prompt':_0x571fce(0x191)},{'id':_0x571fce(0x197),'label':_0x3f7e31(_0x404033,_0x571fce(0x137)),'prompt':_0x571fce(0x182)},{'id':_0x571fce(0x167),'label':_0x3f7e31(_0x404033,_0x571fce(0x170)),'prompt':_0x571fce(0x198)},{'id':_0x571fce(0x187),'label':_0x3f7e31(_0x404033,_0x571fce(0x17b)),'prompt':_0x571fce(0x18d)}]},{'groupId':_0x571fce(0x146),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x13f)),'commands':[{'id':_0x571fce(0x15d),'label':_0x3f7e31(_0x404033,_0x571fce(0x145)),'prompt':_0x571fce(0x195)},{'id':_0x571fce(0x15b),'label':_0x3f7e31(_0x404033,_0x571fce(0x154)),'prompt':_0x571fce(0x174)},{'id':_0x571fce(0x142),'label':_0x3f7e31(_0x404033,_0x571fce(0x14a)),'prompt':_0x571fce(0x131)},{'id':_0x571fce(0x12d),'label':_0x3f7e31(_0x404033,_0x571fce(0x172)),'prompt':_0x571fce(0x148)},{'id':_0x571fce(0x194),'label':_0x3f7e31(_0x404033,_0x571fce(0x168)),'prompt':_0x571fce(0x199)},{'id':_0x571fce(0x18a),'label':_0x3f7e31(_0x404033,_0x571fce(0x160)),'prompt':_0x571fce(0x19a)},{'id':_0x571fce(0x138),'label':_0x3f7e31(_0x404033,_0x571fce(0x136)),'prompt':_0x571fce(0x183)},{'id':_0x571fce(0x12e),'label':_0x3f7e31(_0x404033,_0x571fce(0x178)),'prompt':_0x571fce(0x17a)}]}];}