@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.7

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 (290) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.d.ts +10 -2
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.js +1 -1
  185. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  186. package/src/aichat/ui/aichatfeedview.js +1 -1
  187. package/src/aichat/ui/aichatheaderview.js +1 -1
  188. package/src/aichat/ui/aichatview.js +1 -1
  189. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichat/utils/scrollmanager.js +1 -1
  213. package/src/aichathistory/aichathistory.js +1 -1
  214. package/src/aichathistory/aichathistorycontroller.js +1 -1
  215. package/src/aichathistory/aichathistoryui.js +1 -1
  216. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  217. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  219. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  222. package/src/aicore/aiconnector.js +1 -1
  223. package/src/aicore/aiediting.js +1 -1
  224. package/src/aicore/model/aicapabilities.js +1 -1
  225. package/src/aicore/model/aicontext.js +1 -1
  226. package/src/aicore/model/aiinteraction.js +1 -1
  227. package/src/aicore/model/aimodels.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  284. package/src/aitabs/aitabs.js +1 -1
  285. package/src/aitabs/aitabsmainview.js +1 -1
  286. package/src/aitabs/tabs/aitabsview.js +1 -1
  287. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  288. package/src/aitabs/tabs/tabpanelview.js +1 -1
  289. package/src/errors.js +1 -1
  290. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x535928=_0x411c;function _0x3046(){const _0x55aedd=['_toggleAddCurrentDocumentOptionVisibility','addSelectionToContext','document','_addContextOptionsState','FILE','object\x20with\x20content\x20and\x20type\x20properties','resources','_connector','HTML','filter','_addContextItem','data','addFilesToContext','text/html','URL','abortController','message','_updateResourceInContextState','error','start','type','_finishUploadOperation','3LdElwK','getPendingContextItems','url-','length','_mapContextItemToRequestData','addContextOptionsChanged','loadSourceResources','_isResourceInContext','MARKDOWN','files-','ai-chat-file-upload-failed','169438XrgAHz','8275700pdOWOo','_finishContextItemLoading','content','label','_removeContextItem','ai-chat-context-invalid-data','mapContextItemsToRequestData','Current\x20document','ai-chat-source-resources-load-failed','object','_ongoingUploads','get','startsWith','hidden','_addToConversationContextItem','24uZybdp','delete','isSelectionInContext','uploadProgressChanged','_convertTextResourceToFile','end','set','_conversationContextItems','find','ai-chat-document-upload-failed','stack','text/plain','getData','_ongoingUploadOperations','getResources','738164FUNHAU','forEach','_pendingContextItems','all','_createContextItemFromContent','addCurrentDocumentToContext','9PxNatN','size','getDocument','TEXT','_getCustomSourcesInitialState','fire','111235FmZdHN','url','from','addToConversationContext','string','populateFromMessage','File','file-','isCurrentDocumentInContext','removeSelectionFromContext','fetchDocument','attributes','525030AINTQI','1117312DtEbMF','push','values','_ownerId','updateCurrentDocument','map','DOCUMENT','ai-chat-resource-load-failed','sourceResourcesLoaded','_startUploadOperation','contextItemAdded','uploadUrl','isCurrentDocumentInConversation','sources','getId','uploadFile','init','ai-request-aborted','SELECTION','resourceId','has','resourceStateChanged','version','isReadOnly','files','clearPendingContextItems','isInContext','text/markdown','urls','contextItemRemoved','uploadDocument','uiId','ai-chat-context-unsupported-type','sessionId','contextItemLoadingEnded','308322uZAXei','getSentContextItems','selection','addUrlToContext','ai-chat-resource-no-data','contextSent','removeFromContext','abort','_config','_findSourceIdsByResourceId','addResourceToContext','_setAddContextOptionsDefaultState','name','isHidden','ai-chat-source-not-found','enabled','current-document','ai-chat-url-upload-failed'];_0x3046=function(){return _0x55aedd;};return _0x3046();}(function(_0x171fe2,_0x3124aa){const _0x51ddc4=_0x411c,_0x158fbb=_0x171fe2();while(!![]){try{const _0x19ce12=-parseInt(_0x51ddc4(0x155))/0x1+-parseInt(_0x51ddc4(0x12a))/0x2*(parseInt(_0x51ddc4(0x11f))/0x3)+-parseInt(_0x51ddc4(0x162))/0x4+parseInt(_0x51ddc4(0x161))/0x5+parseInt(_0x51ddc4(0xf7))/0x6+parseInt(_0x51ddc4(0x149))/0x7*(-parseInt(_0x51ddc4(0x13a))/0x8)+-parseInt(_0x51ddc4(0x14f))/0x9*(-parseInt(_0x51ddc4(0x12b))/0xa);if(_0x19ce12===_0x3124aa)break;else _0x158fbb['push'](_0x158fbb['shift']());}catch(_0x345e8b){_0x158fbb['push'](_0x158fbb['shift']());}}}(_0x3046,0x2ef45));import{CKEditorError as _0x2c0c39,ObservableMixin as _0xe121a0,uid as _0x4bc2d8}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x60d99e,AIContextTextResourceType as _0x3dfab2}from'../../aicore/model/aicontext.js';import{escape as _0x28a211}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x535928(0x16c),_0x535928(0xf1),_0x535928(0xf6),_0x535928(0xfc),_0x535928(0x11b),_0x535928(0x124),_0x535928(0x16a),_0x535928(0xe9),_0x535928(0x13d)];function _0x411c(_0x12c023,_0x49321c){const _0x304655=_0x3046();return _0x411c=function(_0x411c2b,_0x4f9da0){_0x411c2b=_0x411c2b-0xe1;let _0x5530f7=_0x304655[_0x411c2b];return _0x5530f7;},_0x411c(_0x12c023,_0x49321c);}export class AIChatContext extends _0xe121a0(){[_0x535928(0x110)];[_0x535928(0xff)];[_0x535928(0x165)];constructor({connector:_0x26647c,config:_0x5d854f,ownerId:_0x4410ae}){const _0x127188=_0x535928;super(),this[_0x127188(0x110)]=_0x26647c,this[_0x127188(0xff)]=_0x5d854f,this[_0x127188(0x165)]=_0x4410ae;}[_0x535928(0xe4)](){const _0x21ad46=_0x535928;this[_0x21ad46(0x14b)]=new Map(),this[_0x21ad46(0x141)]=new Map(),this[_0x21ad46(0x135)]=new Map(),this[_0x21ad46(0x147)]=new Map(),this[_0x21ad46(0x102)]();}[_0x535928(0x120)](){const _0x372716=_0x535928;return this[_0x372716(0x14b)];}async[_0x535928(0x15a)](_0x2ea1f4){const _0xbfbd72=_0x535928,_0x5d6180=await this[_0xbfbd72(0x14d)](_0x2ea1f4);return this[_0xbfbd72(0x139)](_0x5d6180),_0xbfbd72(0x107)===_0x5d6180[_0xbfbd72(0xf3)]&&this[_0xbfbd72(0x109)](),_0x5d6180;}async[_0x535928(0x14d)](_0x5f4bc3){const _0xb53bc1=_0x535928;if(_0x5f4bc3[_0xb53bc1(0x11d)]===_0x60d99e[_0xb53bc1(0x168)]){const _0x3fd40c=await this[_0xb53bc1(0x110)][_0xb53bc1(0x15f)](this[_0xb53bc1(0x165)],_0x5f4bc3['id'])[_0xb53bc1(0x151)]();return{'id':_0xb53bc1(0x107),'uiId':_0xb53bc1(0x107),'label':_0xb53bc1(0x132),'type':_0x5f4bc3[_0xb53bc1(0x11d)],'content':_0x3fd40c[_0xb53bc1(0x12d)],'hidden':this[_0xb53bc1(0x141)][_0xb53bc1(0xe8)](_0xb53bc1(0x107)),'version':_0x3fd40c[_0xb53bc1(0x160)]?.[_0xb53bc1(0xea)],'sessionId':_0x3fd40c[_0xb53bc1(0x160)]?.[_0xb53bc1(0xf5)]};}return{'id':_0x5f4bc3['id'],'uiId':_0x5f4bc3['id'],'label':_0x5f4bc3[_0xb53bc1(0x160)]?.[_0xb53bc1(0x12e)]||_0x5f4bc3[_0xb53bc1(0x103)]||_0x5f4bc3[_0xb53bc1(0x156)]||_0x5f4bc3['id'],'type':_0x5f4bc3[_0xb53bc1(0x11d)],..._0x5f4bc3?.[_0xb53bc1(0x160)]?.[_0xb53bc1(0xe7)]?{'resourceId':_0x5f4bc3[_0xb53bc1(0x160)]?.[_0xb53bc1(0xe7)]}:{}};}[_0x535928(0xf8)](){const _0x4a1da2=_0x535928;return new Map(this[_0x4a1da2(0x141)]);}[_0x535928(0xfd)](_0x37f109){const _0x3720b7=_0x535928,_0x24ae11=this[_0x3720b7(0x14b)][_0x3720b7(0x136)](_0x37f109);_0x24ae11?.[_0x3720b7(0xeb)]||this[_0x3720b7(0x12f)](_0x37f109);}[_0x535928(0xed)](){const _0x3e4223=_0x535928;if(0x0===this[_0x3e4223(0x14b)][_0x3e4223(0x150)])return;for(const _0x8ccdc of this[_0x3e4223(0x14b)][_0x3e4223(0x164)]())this[_0x3e4223(0x12f)](_0x8ccdc[_0x3e4223(0xf3)]);const _0x42a6a8=this[_0x3e4223(0x141)][_0x3e4223(0x136)](_0x3e4223(0x107))||this[_0x3e4223(0x14b)][_0x3e4223(0x136)](_0x3e4223(0x107));_0x42a6a8&&this[_0x3e4223(0x113)]({..._0x42a6a8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x535928(0x158)](_0x2fcb02){const _0x24e46c=_0x535928;for(const _0x45500d of _0x2fcb02[_0x24e46c(0x164)]())this[_0x24e46c(0x139)](_0x45500d);this[_0x24e46c(0xed)](),this[_0x24e46c(0x154)](_0x24e46c(0xfc),{'contextItems':Array[_0x24e46c(0x157)](this[_0x24e46c(0xf8)]()[_0x24e46c(0x164)]())});}[_0x535928(0x15d)](){const _0x2252c0=_0x535928;return this[_0x2252c0(0x14b)][_0x2252c0(0xe8)](_0x2252c0(0x107));}[_0x535928(0x13c)](){const _0x20acc4=_0x535928;return this[_0x20acc4(0x14b)][_0x20acc4(0xe8)](_0x20acc4(0xf9));}[_0x535928(0x16e)](){const _0x90c3a0=_0x535928;return this[_0x90c3a0(0x141)][_0x90c3a0(0xe8)](_0x90c3a0(0x107));}static[_0x535928(0x131)](_0x18bafc){const _0x5f29a8=_0x535928;return Array[_0x5f29a8(0x157)](_0x18bafc[_0x5f29a8(0x164)]())[_0x5f29a8(0x167)](_0x146dae=>this[_0x5f29a8(0x123)](_0x146dae))[_0x5f29a8(0x112)](_0x81e7a5=>null!==_0x81e7a5);}async[_0x535928(0x115)](_0x4c00df,_0x13eee3,_0x441c3a=_0x60d99e[_0x535928(0x10d)]){const _0x4632bc=_0x535928,_0x141567=_0x4632bc(0x128)+_0x4bc2d8();this[_0x4632bc(0x16b)](_0x141567);try{await Promise[_0x4632bc(0x14c)](_0x4c00df[_0x4632bc(0x167)](async _0xceff2b=>{const _0x20982a=_0x4632bc,_0x482af4=_0x20982a(0x15c)+_0x4bc2d8(),_0x2775de=_0x28a211(_0xceff2b[_0x20982a(0x103)]);try{this[_0x20982a(0x113)]({'type':_0x441c3a,'label':_0x13eee3?.[_0x20982a(0x12e)]||_0x2775de,'uiId':_0x482af4,'resourceId':_0x13eee3?.[_0x20982a(0xe7)]},!0x0);const _0x416b55=this[_0x20982a(0x110)][_0x20982a(0xe3)](this[_0x20982a(0x165)],_0xceff2b,_0x13eee3);this[_0x20982a(0x135)][_0x20982a(0x140)](_0x482af4,_0x416b55[_0x20982a(0x118)]);const {id:_0x479132}=await _0x416b55[_0x20982a(0xe2)]();this[_0x20982a(0x135)][_0x20982a(0x13b)](_0x482af4),this[_0x20982a(0x12c)]({'type':_0x441c3a,'id':_0x479132,'label':_0x13eee3?.[_0x20982a(0x12e)]||_0x2775de,'uiId':_0x482af4,'resourceId':_0x13eee3?.[_0x20982a(0xe7)]},!0x1);}catch(_0x17db66){this[_0x20982a(0x135)][_0x20982a(0x13b)](_0x482af4);if(!_0x17db66[_0x20982a(0x119)][_0x20982a(0x137)](_0x20982a(0xe5))){const _0x17d0d2=new _0x2c0c39(_0x20982a(0x129),null,{'fileName':_0x2775de});_0x17d0d2[_0x20982a(0x144)]=_0x17db66[_0x20982a(0x144)],this[_0x20982a(0x154)](_0x20982a(0x11b),{'error':_0x17d0d2,'fileName':_0x2775de});}this[_0x20982a(0x12f)](_0x482af4);}}));}finally{this[_0x4632bc(0x11e)](_0x141567);}}[_0x535928(0x14e)](_0xe712a4){const _0x11fcc8=_0x535928;if(this[_0x11fcc8(0x15d)]())return;const _0x395a13={'type':_0x60d99e[_0x11fcc8(0x168)],'uiId':_0x11fcc8(0x107),'label':_0xe712a4,'isReadOnly':this[_0x11fcc8(0x141)][_0x11fcc8(0xe8)](_0x11fcc8(0x107)),'hidden':this[_0x11fcc8(0x141)][_0x11fcc8(0xe8)](_0x11fcc8(0x107))};this[_0x11fcc8(0x113)](_0x395a13);}async[_0x535928(0x166)](_0x56d055,_0x20b59f,_0x3283c9,_0x33464e){const _0xdfd472=_0x535928,_0x2486f2=this[_0xdfd472(0x14b)][_0xdfd472(0x136)](_0xdfd472(0x107));if(_0x2486f2&&_0x56d055){_0x2486f2[_0xdfd472(0xf9)]=_0x33464e?_0x33464e[_0xdfd472(0x167)](_0x519b65=>({'start':_0x519b65[_0xdfd472(0x11c)],'end':_0x519b65[_0xdfd472(0x13f)]})):[];try{if(_0x2486f2[_0xdfd472(0xea)]===_0x20b59f)return;const {id:_0x31b040}=await this[_0xdfd472(0x110)][_0xdfd472(0xf2)](this[_0xdfd472(0x165)],_0x56d055,{'version':_0x20b59f,'sessionId':_0x3283c9})[_0xdfd472(0xe2)]();_0x2486f2['id']=_0x31b040,_0x2486f2[_0xdfd472(0x12d)]=_0x56d055,_0x2486f2[_0xdfd472(0xea)]=_0x20b59f,_0x2486f2[_0xdfd472(0xf5)]=_0x3283c9;}catch(_0x57b905){const _0x261ae9=new _0x2c0c39(_0xdfd472(0x143),null);_0x261ae9[_0xdfd472(0x144)]=_0x57b905[_0xdfd472(0x144)],this[_0xdfd472(0x154)](_0xdfd472(0x11b),{'error':_0x261ae9});}}}[_0x535928(0x10a)](_0x29d9fc){const _0x5b35b7=_0x535928;this[_0x5b35b7(0x113)]({'type':_0x60d99e[_0x5b35b7(0xe6)],'label':_0x29d9fc,'uiId':_0x5b35b7(0xf9),'content':_0x29d9fc});}[_0x535928(0x15e)](){const _0x34fd0e=_0x535928;this[_0x34fd0e(0x12f)](_0x34fd0e(0xf9));}async[_0x535928(0xfa)](_0x38ed88,_0x22893f){const _0x361708=_0x535928,_0x33666b=_0x361708(0x121)+_0x4bc2d8();this[_0x361708(0x16b)](_0x33666b);const _0x91c0c8=_0x361708(0x121)+_0x4bc2d8();try{this[_0x361708(0x113)]({'type':_0x60d99e[_0x361708(0x117)],'label':_0x22893f?.[_0x361708(0x12e)]||_0x38ed88,'uiId':_0x91c0c8,'resourceId':_0x22893f?.[_0x361708(0xe7)]},!0x0);const _0x260256=this[_0x361708(0x110)][_0x361708(0x16d)](this[_0x361708(0x165)],_0x38ed88,_0x22893f);this[_0x361708(0x135)][_0x361708(0x140)](_0x91c0c8,_0x260256[_0x361708(0x118)]);const {id:_0x3de350}=await _0x260256[_0x361708(0xe2)]();this[_0x361708(0x135)][_0x361708(0x13b)](_0x91c0c8),this[_0x361708(0x12c)]({'type':_0x60d99e[_0x361708(0x117)],'id':_0x3de350,'label':_0x22893f?.[_0x361708(0x12e)]||_0x38ed88,'uiId':_0x91c0c8,'resourceId':_0x22893f?.[_0x361708(0xe7)]},!0x1);}catch(_0x501bb8){this[_0x361708(0x135)][_0x361708(0x13b)](_0x91c0c8),(_0x501bb8[_0x361708(0x119)][_0x361708(0x137)](_0x361708(0xe5))||this[_0x361708(0x154)](_0x361708(0x11b),{'error':new _0x2c0c39(_0x361708(0x108),this,{'url':_0x38ed88,'originalError':_0x501bb8}),'url':_0x38ed88}),this[_0x361708(0x12f)](_0x91c0c8));}finally{this[_0x361708(0x11e)](_0x33666b);}}async[_0x535928(0x125)](_0x2f7770,_0x1e42a5,_0x2212f5){const _0x2c969a=_0x535928,_0xff091d=this[_0x2c969a(0x10c)][_0x2c969a(0xe1)][_0x2c969a(0x142)](_0x2c3b30=>_0x2c3b30['id']===_0x2f7770);if(!_0xff091d)return this[_0x2c969a(0x154)](_0x2c969a(0x11b),{'error':new _0x2c0c39(_0x2c969a(0x105),this,{'sourceId':_0x2f7770}),'sourceId':_0x2f7770}),[];try{const _0x246bb8=(await _0xff091d[_0x2c969a(0x148)](_0x1e42a5))[_0x2c969a(0x167)](_0x5d9656=>{const _0x2a6fe8=_0x2c969a,_0x171ab3=this[_0x2a6fe8(0x126)](_0x5d9656['id']);return{..._0x5d9656,'isInContext':_0x171ab3};});return _0xff091d[_0x2c969a(0x10f)]=_0x246bb8,this[_0x2c969a(0x154)](_0x2c969a(0x16a),{'sourceId':_0x2f7770,'source':_0xff091d,'resources':_0x246bb8,'uid':_0x2212f5}),_0x246bb8;}catch(_0x4b79f4){return this[_0x2c969a(0x154)](_0x2c969a(0x11b),{'error':new _0x2c0c39(_0x2c969a(0x133),this,{'sourceId':_0x2f7770,'originalError':_0x4b79f4}),'sourceId':_0x2f7770,'sourceLabel':_0xff091d[_0x2c969a(0x12e)]}),[];}}async[_0x535928(0x101)](_0x58f885,_0x401e92){const _0x34ec14=_0x535928;if(this[_0x34ec14(0x126)](_0x401e92['id']))return;let _0x475421=_0x401e92[_0x34ec14(0x114)];if(!_0x475421&&_0x58f885[_0x34ec14(0x146)])try{_0x475421=await _0x58f885[_0x34ec14(0x146)](_0x401e92['id']);}catch(_0x41fb87){return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x169),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'originalError':_0x41fb87}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});}if(_0x475421)switch(_0x401e92[_0x34ec14(0x11d)]){case _0x60d99e[_0x34ec14(0x117)]:if(_0x34ec14(0x159)!=typeof _0x475421)return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x130),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'expectedType':_0x34ec14(0x159),'actualType':typeof _0x475421}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});await this[_0x34ec14(0xfa)](_0x475421,{'label':_0x401e92[_0x34ec14(0x12e)],'resourceId':_0x401e92['id']});break;case _0x60d99e[_0x34ec14(0x10d)]:if(!(_0x475421 instanceof File))return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x130),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'expectedType':_0x34ec14(0x15b),'actualType':typeof _0x475421}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});await this[_0x34ec14(0x115)]([_0x475421],{'label':_0x401e92[_0x34ec14(0x12e)],'resourceId':_0x401e92['id']});break;case _0x60d99e[_0x34ec14(0x152)]:if(_0x34ec14(0x134)!=typeof _0x475421||!(_0x34ec14(0x12d)in _0x475421)||!(_0x34ec14(0x11d)in _0x475421))return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x130),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'expectedType':_0x34ec14(0x10e),'actualType':typeof _0x475421}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});_0x475421=AIChatContext[_0x34ec14(0x13e)](_0x475421,_0x401e92[_0x34ec14(0x12e)]),await this[_0x34ec14(0x115)]([_0x475421],{'label':_0x401e92[_0x34ec14(0x12e)],'resourceId':_0x401e92['id']},_0x60d99e[_0x34ec14(0x152)]);break;default:this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0xf4),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'resourceType':_0x401e92[_0x34ec14(0x11d)]}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});}else this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0xfb),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});}static[_0x535928(0x13e)](_0x3d879d,_0x55b3f1){const _0x524eab=_0x535928;switch(_0x3d879d[_0x524eab(0x11d)]){case _0x3dfab2[_0x524eab(0x127)]:return new File([_0x3d879d[_0x524eab(0x12d)]],_0x55b3f1,{'type':_0x524eab(0xef)});case _0x3dfab2[_0x524eab(0x111)]:return new File([_0x3d879d[_0x524eab(0x12d)]],_0x55b3f1,{'type':_0x524eab(0x116)});default:return new File([_0x3d879d[_0x524eab(0x12d)]],_0x55b3f1,{'type':_0x524eab(0x145)});}}static[_0x535928(0x123)](_0x1334d0){const _0x3b9a62=_0x535928;switch(_0x1334d0[_0x3b9a62(0x11d)]){case _0x60d99e[_0x3b9a62(0x10d)]:return{'type':_0x60d99e[_0x3b9a62(0x10d)],'id':_0x1334d0['id']};case _0x60d99e[_0x3b9a62(0x117)]:return{'type':_0x60d99e[_0x3b9a62(0x117)],'id':_0x1334d0['id']};case _0x60d99e[_0x3b9a62(0x168)]:return{'type':_0x60d99e[_0x3b9a62(0x168)],'id':_0x1334d0['id'],..._0x1334d0[_0x3b9a62(0xf9)]?.[_0x3b9a62(0x122)]&&{'selection':_0x1334d0[_0x3b9a62(0xf9)]}};case _0x60d99e[_0x3b9a62(0x152)]:return{'type':_0x60d99e[_0x3b9a62(0x10d)],'id':_0x1334d0['id']};default:return null;}}[_0x535928(0x113)](_0x2f4f62,_0x8622d4=!0x1){const _0x46b1c3=_0x535928;if(this[_0x46b1c3(0x14b)][_0x46b1c3(0x140)](_0x2f4f62[_0x46b1c3(0xf3)],_0x2f4f62),_0x2f4f62[_0x46b1c3(0x138)]||this[_0x46b1c3(0x154)](_0x46b1c3(0x16c),{'contextItem':_0x2f4f62,'isLoading':_0x8622d4}),_0x46b1c3(0x107)===_0x2f4f62[_0x46b1c3(0xf3)]&&this[_0x46b1c3(0x109)](),_0x2f4f62[_0x46b1c3(0xe7)]){const _0x41b299=this[_0x46b1c3(0x100)](_0x2f4f62[_0x46b1c3(0xe7)]);_0x41b299&&_0x41b299[_0x46b1c3(0x14a)](_0x304c23=>{const _0x3efe00=_0x46b1c3;this[_0x3efe00(0x11a)](_0x304c23,_0x2f4f62[_0x3efe00(0xe7)],!0x0);});}}[_0x535928(0x12f)](_0xadaf2e){const _0x3e2432=_0x535928,_0x21514c=this[_0x3e2432(0x14b)][_0x3e2432(0x136)](_0xadaf2e),_0x582178=this[_0x3e2432(0x135)][_0x3e2432(0x136)](_0xadaf2e);if(_0x582178&&(_0x582178[_0x3e2432(0xfe)](),this[_0x3e2432(0x135)][_0x3e2432(0x13b)](_0xadaf2e)),_0x21514c?.[_0x3e2432(0xe7)]){const _0x29255f=this[_0x3e2432(0x100)](_0x21514c[_0x3e2432(0xe7)]);_0x29255f&&_0x29255f[_0x3e2432(0x14a)](_0x54df0f=>{const _0x3ed75d=_0x3e2432;this[_0x3ed75d(0x11a)](_0x54df0f,_0x21514c[_0x3ed75d(0xe7)],!0x1);});}this[_0x3e2432(0x14b)][_0x3e2432(0x13b)](_0xadaf2e),this[_0x3e2432(0x154)](_0x3e2432(0xf1),{'uiId':_0xadaf2e,'type':_0x21514c?.[_0x3e2432(0x11d)]}),_0x3e2432(0x107)===_0xadaf2e&&this[_0x3e2432(0x109)]();}[_0x535928(0x12c)](_0x33136a,_0x32ed49){const _0x4d0f4d=_0x535928;if(this[_0x4d0f4d(0x14b)][_0x4d0f4d(0xe8)](_0x33136a[_0x4d0f4d(0xf3)])&&(this[_0x4d0f4d(0x14b)][_0x4d0f4d(0x140)](_0x33136a[_0x4d0f4d(0xf3)],_0x33136a),this[_0x4d0f4d(0x154)](_0x4d0f4d(0xf6),{'contextItem':_0x33136a,'isLoading':_0x32ed49}),_0x33136a[_0x4d0f4d(0xe7)])){const _0xadaf7d=this[_0x4d0f4d(0x100)](_0x33136a[_0x4d0f4d(0xe7)]);_0xadaf7d&&_0xadaf7d[_0x4d0f4d(0x14a)](_0x5412e1=>{const _0x4af712=_0x4d0f4d;this[_0x4af712(0x11a)](_0x5412e1,_0x33136a[_0x4af712(0xe7)],!0x0);});}}[_0x535928(0x139)](_0x9c34c7){const _0x48e9c8=_0x535928;this[_0x48e9c8(0x141)][_0x48e9c8(0x140)](_0x9c34c7[_0x48e9c8(0xf3)],_0x9c34c7);}[_0x535928(0x102)](){const _0x64aaf=_0x535928;this[_0x64aaf(0x10c)]={'document':{'enabled':!0x1!==this[_0x64aaf(0xff)]?.[_0x64aaf(0x10b)]?.[_0x64aaf(0x106)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x64aaf(0xff)]?.[_0x64aaf(0xf0)]?.[_0x64aaf(0x106)]},'files':{'enabled':!0x1!==this[_0x64aaf(0xff)]?.[_0x64aaf(0xec)]?.[_0x64aaf(0x106)]},'sources':this[_0x64aaf(0x153)]()},this[_0x64aaf(0x154)](_0x64aaf(0x124),{'options':this[_0x64aaf(0x10c)]});}[_0x535928(0x153)](){const _0x34b34d=_0x535928;return this[_0x34b34d(0xff)]?.[_0x34b34d(0xe1)]?.[_0x34b34d(0x167)](_0x24c278=>({..._0x24c278,'resources':[]}))??[];}[_0x535928(0x109)](){const _0x548477=_0x535928,_0x3f42b0=this[_0x548477(0x15d)]()||this[_0x548477(0x16e)]();this[_0x548477(0x10c)][_0x548477(0x10b)][_0x548477(0x104)]=_0x3f42b0,this[_0x548477(0x154)](_0x548477(0x124),{'options':this[_0x548477(0x10c)]});}[_0x535928(0x126)](_0x3fcec5){const _0xa741d9=_0x535928;for(const _0x23ce80 of this[_0xa741d9(0x14b)][_0xa741d9(0x164)]())if(_0x23ce80[_0xa741d9(0xe7)]===_0x3fcec5)return!0x0;for(const _0x2559c8 of this[_0xa741d9(0x141)][_0xa741d9(0x164)]())if(_0x2559c8[_0xa741d9(0xe7)]===_0x3fcec5)return!0x0;return!0x1;}[_0x535928(0x100)](_0x384a86){const _0x38118a=_0x535928,_0x523a15=[];for(const _0x3ed67f of this[_0x38118a(0x10c)][_0x38118a(0xe1)]){_0x3ed67f[_0x38118a(0x10f)][_0x38118a(0x142)](_0x443cb1=>_0x443cb1['id']===_0x384a86)&&_0x523a15[_0x38118a(0x163)](_0x3ed67f['id']);}return 0x0===_0x523a15[_0x38118a(0x122)]?null:_0x523a15;}[_0x535928(0x11a)](_0xf4f586,_0x399201,_0x310b26){const _0x4c1c74=_0x535928,_0x4d18ce=this[_0x4c1c74(0x10c)][_0x4c1c74(0xe1)][_0x4c1c74(0x142)](_0x2e9ed3=>_0x2e9ed3['id']===_0xf4f586);if(!_0x4d18ce)return;const _0x5abb50=_0x4d18ce[_0x4c1c74(0x10f)][_0x4c1c74(0x142)](_0xedf466=>_0xedf466['id']===_0x399201);_0x5abb50&&(_0x5abb50[_0x4c1c74(0xee)]=_0x310b26,this[_0x4c1c74(0x154)](_0x4c1c74(0xe9),{'sourceId':_0xf4f586,'resourceId':_0x399201,'isInContext':_0x310b26}));}[_0x535928(0x16b)](_0x82f2e8){const _0x228b55=_0x535928;this[_0x228b55(0x147)][_0x228b55(0x140)](_0x82f2e8,!0x0),this[_0x228b55(0x147)][_0x228b55(0x150)]&&this[_0x228b55(0x154)](_0x228b55(0x13d),{'isUploadInProgress':!0x0});}[_0x535928(0x11e)](_0xc3864d){const _0xad1ca8=_0x535928;this[_0xad1ca8(0x147)][_0xad1ca8(0x13b)](_0xc3864d),0x0===this[_0xad1ca8(0x147)][_0xad1ca8(0x150)]&&this[_0xad1ca8(0x154)](_0xad1ca8(0x13d),{'isUploadInProgress':!0x1});}}
23
+ const _0x271efb=_0x3369;(function(_0x290c70,_0x149317){const _0x451d6a=_0x3369,_0x437152=_0x290c70();while(!![]){try{const _0x31ae62=-parseInt(_0x451d6a(0xf8))/0x1*(-parseInt(_0x451d6a(0xee))/0x2)+-parseInt(_0x451d6a(0xd5))/0x3*(-parseInt(_0x451d6a(0xdc))/0x4)+-parseInt(_0x451d6a(0x11b))/0x5+parseInt(_0x451d6a(0xd8))/0x6*(parseInt(_0x451d6a(0xc3))/0x7)+parseInt(_0x451d6a(0xc1))/0x8*(-parseInt(_0x451d6a(0x10a))/0x9)+-parseInt(_0x451d6a(0xb4))/0xa*(-parseInt(_0x451d6a(0xb1))/0xb)+-parseInt(_0x451d6a(0xb8))/0xc*(parseInt(_0x451d6a(0xd0))/0xd);if(_0x31ae62===_0x149317)break;else _0x437152['push'](_0x437152['shift']());}catch(_0x2066e7){_0x437152['push'](_0x437152['shift']());}}}(_0x4893,0x61659));function _0x4893(){const _0x10e81a=['ai-chat-url-upload-failed','selection','uploadFile','getId','length','getData','isSelectionInContext','getResources','ai-chat-context-invalid-data','size','isHidden','string','forEach','File','end','getPendingContextItems','type','ai-chat-resource-no-data','MARKDOWN','files-','_setAddContextOptionsDefaultState','_ownerId','fetchDocument','_toggleAddCurrentDocumentOptionVisibility','data','_ongoingUploadOperations','_addContextOptionsState','enabled','_ongoingUploads','FILE','_conversationContextItems','clearPendingContextItems','11UaFGsq','addFilesToContext','map','3076870ndhKGt','contextItemAdded','Current\x20document','message','12cptrvR','addResourceToContext','resourceId','HTML','URL','addToConversationContext','_removeContextItem','abortController','ai-chat-file-upload-failed','1156232pAZYlW','populateFromMessage','38297fPYilk','content','urls','hidden','abort','init','uploadUrl','mapContextItemsToRequestData','isCurrentDocumentInContext','resources','document','_createContextItemFromContent','_convertTextResourceToFile','6664164ycUpmk','resourceStateChanged','_mapContextItemToRequestData','TEXT','DOCUMENT','651933OBjsBK','sessionId','updateCurrentDocument','642gjEfPi','_addContextItem','filter','_isResourceInContext','12JCHhHK','uploadProgressChanged','get','fire','_startUploadOperation','ai-chat-document-upload-failed','object','_finishContextItemLoading','attributes','url','_updateResourceInContextState','ai-chat-source-not-found','file-','uiId','_getCustomSourcesInitialState','find','stack','_finishUploadOperation','230JSIDLc','getDocument','sources','push','uploadDocument','removeFromContext','version','_connector','isReadOnly','text/plain','1693gBenyY','from','contextItemRemoved','ai-request-aborted','sourceResourcesLoaded','contextSent','error','start','_pendingContextItems','addContextOptionsChanged','addUrlToContext','addCurrentDocumentToContext','isCurrentDocumentInConversation','has','_addToConversationContextItem','SELECTION','_findSourceIdsByResourceId','all','36iBFvMN','ai-chat-resource-load-failed','delete','files','ai-chat-context-unsupported-type','set','values','getSentContextItems','text/markdown','isInContext','loadSourceResources','_config','label','url-','contextItemLoadingEnded','object\x20with\x20content\x20and\x20type\x20properties','current-document','1250155WGxekG','startsWith','text/html','name','addSelectionToContext','removeSelectionFromContext','ai-chat-source-resources-load-failed'];_0x4893=function(){return _0x10e81a;};return _0x4893();}function _0x3369(_0x30403f,_0x58ee1d){const _0x489334=_0x4893();return _0x3369=function(_0x336994,_0x45f3ae){_0x336994=_0x336994-0xaf;let _0x26e242=_0x489334[_0x336994];return _0x26e242;},_0x3369(_0x30403f,_0x58ee1d);}import{CKEditorError as _0x15d81b,ObservableMixin as _0x13cac4,uid as _0x5c57c1}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x15f526,AIContextTextResourceType as _0x566476}from'../../aicore/model/aicontext.js';import{escape as _0x3bdac7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x271efb(0xb5),_0x271efb(0xfa),_0x271efb(0x118),_0x271efb(0xfd),_0x271efb(0xfe),_0x271efb(0x101),_0x271efb(0xfc),_0x271efb(0xd1),_0x271efb(0xdd)];export class AIChatContext extends _0x13cac4(){[_0x271efb(0xf5)];[_0x271efb(0x115)];[_0x271efb(0x137)];constructor({connector:_0x2c5fb1,config:_0x14965b,ownerId:_0x4539d4}){const _0x45ca73=_0x271efb;super(),this[_0x45ca73(0xf5)]=_0x2c5fb1,this[_0x45ca73(0x115)]=_0x14965b,this[_0x45ca73(0x137)]=_0x4539d4;}[_0x271efb(0xc8)](){const _0xacf21f=_0x271efb;this[_0xacf21f(0x100)]=new Map(),this[_0xacf21f(0xaf)]=new Map(),this[_0xacf21f(0x13e)]=new Map(),this[_0xacf21f(0x13b)]=new Map(),this[_0xacf21f(0x136)]();}[_0x271efb(0x131)](){const _0xcef379=_0x271efb;return this[_0xcef379(0x100)];}async[_0x271efb(0xc2)](_0xd79b1d){const _0x281451=_0x271efb,_0x3566b2=await this[_0x281451(0xce)](_0xd79b1d);return this[_0x281451(0x106)](_0x3566b2),_0x281451(0x11a)===_0x3566b2[_0x281451(0xe9)]&&this[_0x281451(0x139)](),_0x3566b2;}async[_0x271efb(0xce)](_0x4cc012){const _0x2a42b7=_0x271efb;if(_0x4cc012[_0x2a42b7(0x132)]===_0x15f526[_0x2a42b7(0xd4)]){const _0x624b19=await this[_0x2a42b7(0xf5)][_0x2a42b7(0x138)](this[_0x2a42b7(0x137)],_0x4cc012['id'])[_0x2a42b7(0xef)]();return{'id':_0x2a42b7(0x11a),'uiId':_0x2a42b7(0x11a),'label':_0x2a42b7(0xb6),'type':_0x4cc012[_0x2a42b7(0x132)],'content':_0x624b19[_0x2a42b7(0xc4)],'hidden':this[_0x2a42b7(0xaf)][_0x2a42b7(0x105)](_0x2a42b7(0x11a)),'version':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xf4)],'sessionId':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xd6)]};}return{'id':_0x4cc012['id'],'uiId':_0x4cc012['id'],'label':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0x116)]||_0x4cc012[_0x2a42b7(0x11e)]||_0x4cc012[_0x2a42b7(0xe5)]||_0x4cc012['id'],'type':_0x4cc012[_0x2a42b7(0x132)],..._0x4cc012?.[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]?{'resourceId':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]}:{}};}[_0x271efb(0x111)](){const _0xba5ca9=_0x271efb;return new Map(this[_0xba5ca9(0xaf)]);}[_0x271efb(0xf3)](_0x3e0e3e){const _0x51a22f=_0x271efb,_0x278d33=this[_0x51a22f(0x100)][_0x51a22f(0xde)](_0x3e0e3e);_0x278d33?.[_0x51a22f(0xf6)]||this[_0x51a22f(0xbe)](_0x3e0e3e);}[_0x271efb(0xb0)](){const _0x3388c9=_0x271efb;if(0x0===this[_0x3388c9(0x100)][_0x3388c9(0x12b)])return;for(const _0x5f4a9b of this[_0x3388c9(0x100)][_0x3388c9(0x110)]())this[_0x3388c9(0xbe)](_0x5f4a9b[_0x3388c9(0xe9)]);const _0x2470d8=this[_0x3388c9(0xaf)][_0x3388c9(0xde)](_0x3388c9(0x11a))||this[_0x3388c9(0x100)][_0x3388c9(0xde)](_0x3388c9(0x11a));_0x2470d8&&this[_0x3388c9(0xd9)]({..._0x2470d8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x271efb(0xbd)](_0x2d4da5){const _0x3151e7=_0x271efb;for(const _0xecb01 of _0x2d4da5[_0x3151e7(0x110)]())this[_0x3151e7(0x106)](_0xecb01);this[_0x3151e7(0xb0)](),this[_0x3151e7(0xdf)](_0x3151e7(0xfd),{'contextItems':Array[_0x3151e7(0xf9)](this[_0x3151e7(0x111)]()[_0x3151e7(0x110)]())});}[_0x271efb(0xcb)](){const _0x26923c=_0x271efb;return this[_0x26923c(0x100)][_0x26923c(0x105)](_0x26923c(0x11a));}[_0x271efb(0x128)](){const _0x325dc5=_0x271efb;return this[_0x325dc5(0x100)][_0x325dc5(0x105)](_0x325dc5(0x123));}[_0x271efb(0x104)](){const _0x19390e=_0x271efb;return this[_0x19390e(0xaf)][_0x19390e(0x105)](_0x19390e(0x11a));}static[_0x271efb(0xca)](_0x52a1ae){const _0x588719=_0x271efb;return Array[_0x588719(0xf9)](_0x52a1ae[_0x588719(0x110)]())[_0x588719(0xb3)](_0x5b6c36=>this[_0x588719(0xd2)](_0x5b6c36))[_0x588719(0xda)](_0x19b3f9=>null!==_0x19b3f9);}async[_0x271efb(0xb2)](_0x223c08,_0x439d4b,_0x306149=_0x15f526[_0x271efb(0x13f)]){const _0x1a5642=_0x271efb,_0x1a4561=_0x1a5642(0x135)+_0x5c57c1();this[_0x1a5642(0xe0)](_0x1a4561);try{await Promise[_0x1a5642(0x109)](_0x223c08[_0x1a5642(0xb3)](async _0x492eda=>{const _0x1c59f8=_0x1a5642,_0x11af76=_0x1c59f8(0xe8)+_0x5c57c1(),_0x26cac6=_0x3bdac7(_0x492eda[_0x1c59f8(0x11e)]);try{this[_0x1c59f8(0xd9)]({'type':_0x306149,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x0);const _0x49ec97=this[_0x1c59f8(0xf5)][_0x1c59f8(0x124)](this[_0x1c59f8(0x137)],_0x492eda,_0x439d4b);this[_0x1c59f8(0x13e)][_0x1c59f8(0x10f)](_0x11af76,_0x49ec97[_0x1c59f8(0xbf)]);const {id:_0x1eb148}=await _0x49ec97[_0x1c59f8(0x125)]();this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76),this[_0x1c59f8(0xe3)]({'type':_0x306149,'id':_0x1eb148,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x1);}catch(_0x4f2b77){this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76);if(!_0x4f2b77[_0x1c59f8(0xb7)][_0x1c59f8(0x11c)](_0x1c59f8(0xfb))){const _0x508bea=new _0x15d81b(_0x1c59f8(0xc0),null,{'fileName':_0x26cac6});_0x508bea[_0x1c59f8(0xec)]=_0x4f2b77[_0x1c59f8(0xec)],this[_0x1c59f8(0xdf)](_0x1c59f8(0xfe),{'error':_0x508bea,'fileName':_0x26cac6});}this[_0x1c59f8(0xbe)](_0x11af76);}}));}finally{this[_0x1a5642(0xed)](_0x1a4561);}}[_0x271efb(0x103)](_0x1d0418){const _0x44004d=_0x271efb;if(this[_0x44004d(0xcb)]())return;const _0x2ec486={'type':_0x15f526[_0x44004d(0xd4)],'uiId':_0x44004d(0x11a),'label':_0x1d0418,'isReadOnly':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a)),'hidden':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a))};this[_0x44004d(0xd9)](_0x2ec486);}async[_0x271efb(0xd7)](_0x5dde5e,_0x3e9816,_0x226c9b,_0xb0c700){const _0x1e7a96=_0x271efb,_0x2f5677=this[_0x1e7a96(0x100)][_0x1e7a96(0xde)](_0x1e7a96(0x11a));if(_0x2f5677&&_0x5dde5e){_0x2f5677[_0x1e7a96(0x123)]=_0xb0c700?_0xb0c700[_0x1e7a96(0xb3)](_0x31c0cf=>({'start':_0x31c0cf[_0x1e7a96(0xff)],'end':_0x31c0cf[_0x1e7a96(0x130)]})):[];try{if(_0x2f5677[_0x1e7a96(0xf4)]===_0x3e9816)return;const {id:_0xa04804}=await this[_0x1e7a96(0xf5)][_0x1e7a96(0xf2)](this[_0x1e7a96(0x137)],_0x5dde5e,{'version':_0x3e9816,'sessionId':_0x226c9b})[_0x1e7a96(0x125)]();_0x2f5677['id']=_0xa04804,_0x2f5677[_0x1e7a96(0xc4)]=_0x5dde5e,_0x2f5677[_0x1e7a96(0xf4)]=_0x3e9816,_0x2f5677[_0x1e7a96(0xd6)]=_0x226c9b;}catch(_0x1927b2){const _0x3cc330=new _0x15d81b(_0x1e7a96(0xe1),null);_0x3cc330[_0x1e7a96(0xec)]=_0x1927b2[_0x1e7a96(0xec)],this[_0x1e7a96(0xdf)](_0x1e7a96(0xfe),{'error':_0x3cc330});}}}[_0x271efb(0x11f)](_0x51a704){const _0x368578=_0x271efb;this[_0x368578(0xd9)]({'type':_0x15f526[_0x368578(0x107)],'label':_0x51a704,'uiId':_0x368578(0x123),'content':_0x51a704});}[_0x271efb(0x120)](){const _0x2b3492=_0x271efb;this[_0x2b3492(0xbe)](_0x2b3492(0x123));}async[_0x271efb(0x102)](_0x58e557,_0x27016f){const _0x11298c=_0x271efb,_0x4604ce=_0x11298c(0x117)+_0x5c57c1();this[_0x11298c(0xe0)](_0x4604ce);const _0x184f81=_0x11298c(0x117)+_0x5c57c1();try{this[_0x11298c(0xd9)]({'type':_0x15f526[_0x11298c(0xbc)],'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x0);const _0x19567a=this[_0x11298c(0xf5)][_0x11298c(0xc9)](this[_0x11298c(0x137)],_0x58e557,_0x27016f);this[_0x11298c(0x13e)][_0x11298c(0x10f)](_0x184f81,_0x19567a[_0x11298c(0xbf)]);const {id:_0xe5a2ff}=await _0x19567a[_0x11298c(0x125)]();this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),this[_0x11298c(0xe3)]({'type':_0x15f526[_0x11298c(0xbc)],'id':_0xe5a2ff,'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x1);}catch(_0x2ae12d){this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),(_0x2ae12d[_0x11298c(0xb7)][_0x11298c(0x11c)](_0x11298c(0xfb))||this[_0x11298c(0xdf)](_0x11298c(0xfe),{'error':new _0x15d81b(_0x11298c(0x122),this,{'url':_0x58e557,'originalError':_0x2ae12d}),'url':_0x58e557}),this[_0x11298c(0xbe)](_0x184f81));}finally{this[_0x11298c(0xed)](_0x4604ce);}}async[_0x271efb(0x114)](_0x7ed02f,_0x379aa1,_0x22e5b){const _0x63f8eb=_0x271efb,_0xc20965=this[_0x63f8eb(0x13c)][_0x63f8eb(0xf0)][_0x63f8eb(0xeb)](_0x574203=>_0x574203['id']===_0x7ed02f);if(!_0xc20965)return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0xe7),this,{'sourceId':_0x7ed02f}),'sourceId':_0x7ed02f}),[];try{const _0x11238c=(await _0xc20965[_0x63f8eb(0x129)](_0x379aa1))[_0x63f8eb(0xb3)](_0xa82321=>{const _0x52a787=_0x63f8eb,_0x2f3840=this[_0x52a787(0xdb)](_0xa82321['id']);return{..._0xa82321,'isInContext':_0x2f3840};});return _0xc20965[_0x63f8eb(0xcc)]=_0x11238c,this[_0x63f8eb(0xdf)](_0x63f8eb(0xfc),{'sourceId':_0x7ed02f,'source':_0xc20965,'resources':_0x11238c,'uid':_0x22e5b}),_0x11238c;}catch(_0x1ec224){return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0x121),this,{'sourceId':_0x7ed02f,'originalError':_0x1ec224}),'sourceId':_0x7ed02f,'sourceLabel':_0xc20965[_0x63f8eb(0x116)]}),[];}}async[_0x271efb(0xb9)](_0x3d624b,_0x58ca0c){const _0x477de9=_0x271efb;if(this[_0x477de9(0xdb)](_0x58ca0c['id']))return;let _0x3d4051=_0x58ca0c[_0x477de9(0x13a)];if(!_0x3d4051&&_0x3d624b[_0x477de9(0x127)])try{_0x3d4051=await _0x3d624b[_0x477de9(0x127)](_0x58ca0c['id']);}catch(_0x51ec10){return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10b),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'originalError':_0x51ec10}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}if(_0x3d4051)switch(_0x58ca0c[_0x477de9(0x132)]){case _0x15f526[_0x477de9(0xbc)]:if(_0x477de9(0x12d)!=typeof _0x3d4051)return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12d),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0x102)](_0x3d4051,{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0x13f)]:if(!(_0x3d4051 instanceof File))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12f),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0xd3)]:if(_0x477de9(0xe2)!=typeof _0x3d4051||!(_0x477de9(0xc4)in _0x3d4051)||!(_0x477de9(0x132)in _0x3d4051))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x119),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});_0x3d4051=AIChatContext[_0x477de9(0xcf)](_0x3d4051,_0x58ca0c[_0x477de9(0x116)]),await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']},_0x15f526[_0x477de9(0xd3)]);break;default:this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10e),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'resourceType':_0x58ca0c[_0x477de9(0x132)]}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}else this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x133),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}static[_0x271efb(0xcf)](_0x121e1c,_0xfe25bb){const _0x4c92c2=_0x271efb;switch(_0x121e1c[_0x4c92c2(0x132)]){case _0x566476[_0x4c92c2(0x134)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x112)});case _0x566476[_0x4c92c2(0xbb)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x11d)});default:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0xf7)});}}static[_0x271efb(0xd2)](_0x3d5cb8){const _0x1062c6=_0x271efb;switch(_0x3d5cb8[_0x1062c6(0x132)]){case _0x15f526[_0x1062c6(0x13f)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xbc)]:return{'type':_0x15f526[_0x1062c6(0xbc)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xd4)]:return{'type':_0x15f526[_0x1062c6(0xd4)],'id':_0x3d5cb8['id'],..._0x3d5cb8[_0x1062c6(0x123)]?.[_0x1062c6(0x126)]&&{'selection':_0x3d5cb8[_0x1062c6(0x123)]}};case _0x15f526[_0x1062c6(0xd3)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};default:return null;}}[_0x271efb(0xd9)](_0x73a7a,_0x4308f2=!0x1){const _0xc4df98=_0x271efb;if(this[_0xc4df98(0x100)][_0xc4df98(0x10f)](_0x73a7a[_0xc4df98(0xe9)],_0x73a7a),_0x73a7a[_0xc4df98(0xc6)]||this[_0xc4df98(0xdf)](_0xc4df98(0xb5),{'contextItem':_0x73a7a,'isLoading':_0x4308f2}),_0xc4df98(0x11a)===_0x73a7a[_0xc4df98(0xe9)]&&this[_0xc4df98(0x139)](),_0x73a7a[_0xc4df98(0xba)]){const _0x330047=this[_0xc4df98(0x108)](_0x73a7a[_0xc4df98(0xba)]);_0x330047&&_0x330047[_0xc4df98(0x12e)](_0xf3c0ad=>{const _0x20994e=_0xc4df98;this[_0x20994e(0xe6)](_0xf3c0ad,_0x73a7a[_0x20994e(0xba)],!0x0);});}}[_0x271efb(0xbe)](_0x6a3026){const _0x5d88c1=_0x271efb,_0xc9683b=this[_0x5d88c1(0x100)][_0x5d88c1(0xde)](_0x6a3026),_0xc7a036=this[_0x5d88c1(0x13e)][_0x5d88c1(0xde)](_0x6a3026);if(_0xc7a036&&(_0xc7a036[_0x5d88c1(0xc7)](),this[_0x5d88c1(0x13e)][_0x5d88c1(0x10c)](_0x6a3026)),_0xc9683b?.[_0x5d88c1(0xba)]){const _0x3f70fb=this[_0x5d88c1(0x108)](_0xc9683b[_0x5d88c1(0xba)]);_0x3f70fb&&_0x3f70fb[_0x5d88c1(0x12e)](_0xda8fc5=>{const _0x3489d5=_0x5d88c1;this[_0x3489d5(0xe6)](_0xda8fc5,_0xc9683b[_0x3489d5(0xba)],!0x1);});}this[_0x5d88c1(0x100)][_0x5d88c1(0x10c)](_0x6a3026),this[_0x5d88c1(0xdf)](_0x5d88c1(0xfa),{'uiId':_0x6a3026,'type':_0xc9683b?.[_0x5d88c1(0x132)]}),_0x5d88c1(0x11a)===_0x6a3026&&this[_0x5d88c1(0x139)]();}[_0x271efb(0xe3)](_0x5c20cf,_0xbdc7a3){const _0x3bd718=_0x271efb;if(this[_0x3bd718(0x100)][_0x3bd718(0x105)](_0x5c20cf[_0x3bd718(0xe9)])&&(this[_0x3bd718(0x100)][_0x3bd718(0x10f)](_0x5c20cf[_0x3bd718(0xe9)],_0x5c20cf),this[_0x3bd718(0xdf)](_0x3bd718(0x118),{'contextItem':_0x5c20cf,'isLoading':_0xbdc7a3}),_0x5c20cf[_0x3bd718(0xba)])){const _0xd1af6d=this[_0x3bd718(0x108)](_0x5c20cf[_0x3bd718(0xba)]);_0xd1af6d&&_0xd1af6d[_0x3bd718(0x12e)](_0x18c880=>{const _0x450bf8=_0x3bd718;this[_0x450bf8(0xe6)](_0x18c880,_0x5c20cf[_0x450bf8(0xba)],!0x0);});}}[_0x271efb(0x106)](_0x3d3175){const _0x1b4649=_0x271efb;this[_0x1b4649(0xaf)][_0x1b4649(0x10f)](_0x3d3175[_0x1b4649(0xe9)],_0x3d3175);}[_0x271efb(0x136)](){const _0x2e39ab=_0x271efb;this[_0x2e39ab(0x13c)]={'document':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xcd)]?.[_0x2e39ab(0x13d)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xc5)]?.[_0x2e39ab(0x13d)]},'files':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0x10d)]?.[_0x2e39ab(0x13d)]},'sources':this[_0x2e39ab(0xea)]()},this[_0x2e39ab(0xdf)](_0x2e39ab(0x101),{'options':this[_0x2e39ab(0x13c)]});}[_0x271efb(0xea)](){const _0x434091=_0x271efb;return this[_0x434091(0x115)]?.[_0x434091(0xf0)]?.[_0x434091(0xb3)](_0x3b3a8f=>({..._0x3b3a8f,'resources':[]}))??[];}[_0x271efb(0x139)](){const _0x1c4e60=_0x271efb,_0x1f21c1=this[_0x1c4e60(0xcb)]()||this[_0x1c4e60(0x104)]();this[_0x1c4e60(0x13c)][_0x1c4e60(0xcd)][_0x1c4e60(0x12c)]=_0x1f21c1,this[_0x1c4e60(0xdf)](_0x1c4e60(0x101),{'options':this[_0x1c4e60(0x13c)]});}[_0x271efb(0xdb)](_0xb0839b){const _0x55f606=_0x271efb;for(const _0x21974b of this[_0x55f606(0x100)][_0x55f606(0x110)]())if(_0x21974b[_0x55f606(0xba)]===_0xb0839b)return!0x0;for(const _0x3097c4 of this[_0x55f606(0xaf)][_0x55f606(0x110)]())if(_0x3097c4[_0x55f606(0xba)]===_0xb0839b)return!0x0;return!0x1;}[_0x271efb(0x108)](_0x593a4b){const _0x3aab44=_0x271efb,_0x526b16=[];for(const _0x6e2596 of this[_0x3aab44(0x13c)][_0x3aab44(0xf0)]){_0x6e2596[_0x3aab44(0xcc)][_0x3aab44(0xeb)](_0x19367a=>_0x19367a['id']===_0x593a4b)&&_0x526b16[_0x3aab44(0xf1)](_0x6e2596['id']);}return 0x0===_0x526b16[_0x3aab44(0x126)]?null:_0x526b16;}[_0x271efb(0xe6)](_0x3bcfe2,_0x276e9b,_0x555f0e){const _0x242721=_0x271efb,_0x25e095=this[_0x242721(0x13c)][_0x242721(0xf0)][_0x242721(0xeb)](_0x1ea521=>_0x1ea521['id']===_0x3bcfe2);if(!_0x25e095)return;const _0x170b73=_0x25e095[_0x242721(0xcc)][_0x242721(0xeb)](_0x10e162=>_0x10e162['id']===_0x276e9b);_0x170b73&&(_0x170b73[_0x242721(0x113)]=_0x555f0e,this[_0x242721(0xdf)](_0x242721(0xd1),{'sourceId':_0x3bcfe2,'resourceId':_0x276e9b,'isInContext':_0x555f0e}));}[_0x271efb(0xe0)](_0x2a0738){const _0x3b5546=_0x271efb;this[_0x3b5546(0x13b)][_0x3b5546(0x10f)](_0x2a0738,!0x0),this[_0x3b5546(0x13b)][_0x3b5546(0x12b)]&&this[_0x3b5546(0xdf)](_0x3b5546(0xdd),{'isUploadInProgress':!0x0});}[_0x271efb(0xed)](_0x387ec8){const _0x56fece=_0x271efb;this[_0x56fece(0x13b)][_0x56fece(0x10c)](_0x387ec8),0x0===this[_0x56fece(0x13b)][_0x56fece(0x12b)]&&this[_0x56fece(0xdf)](_0x56fece(0xdd),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x59eb(){const _0x1aba50=['webSearch','createReply','destroy','getEditor','start','isSelectionInContext','modification-delta','selectedModelId','lastInteraction','8276634FXADOi','text-delta','7adxqhR','getCapabilitiesConfig','currentReply','reasoning','addToConversationContext','conversationInitialized','user','ai-chat-handle-user-interaction-already-in-progress','interactions','interactionCreated','removeFromContext','getAvailableModels','isCurrentDocumentInContext','type','group','ai-chat-conversation-already-started','chatContext','addResourceToContext','splice','fire','text','fetchConversation','load','setModel','getDocumentContext','getModel','init','3844750UKsSWt','toggleReasoning','ai-chat-conversation-init-failed','ai-chat-conversation-init-from-id-failed','contextItems','createInteraction','capabilities','loadSourceResources','length','quickActionData','modelSelected','stop','addFilesToContext','hasOwn','removeInteraction','message','_processMessagesToInteractions','conversationId','appendContent','attributes','currentInteraction','421249IkzKLp','getInteraction','prompt','sessionId','addCurrentDocumentToContext','selectedModel','ai-chat-conversation-start-failed','populateFromMessage','error','addSelectionToContext','startConversation','isStarted','964844fBZmbQ','6841416IxsluK','chatModels','conversationStarted','1285293qdzGWf','ai-chat-conversation-set-model-not-available','set','stack','getConversation','getCurrentDocumentContext','find','handleUserInteraction','title','connector','ai-chat-conversation-set-model-null','role','assistant','ai-chat-handle-user-conversation-not-initialized','content','updateCurrentDocument','reset','removeSelectionFromContext','5920gwiJHt','getPendingContextItems','chatCapabilities','setConversationTitle','options','1038Yzbcgq','toLowerCase','getAll','indexOf','isAvailable','addUrlToContext','getMessages','2OFaOXa','toggleWebSearch','isCurrentDocumentInConversation','delegate','ai-chat-conversation-start-no-model-selected','updateCurrentDocumentInContext','_extractContextItems','push','model','fetchConversationMessages'];_0x59eb=function(){return _0x1aba50;};return _0x59eb();}const _0x2fba7c=_0xc252;(function(_0x4b8fcc,_0x29dc19){const _0x197183=_0xc252,_0x37b5f9=_0x4b8fcc();while(!![]){try{const _0x9d8616=-parseInt(_0x197183(0x17a))/0x1*(parseInt(_0x197183(0x1a8))/0x2)+-parseInt(_0x197183(0x18a))/0x3+-parseInt(_0x197183(0x186))/0x4+-parseInt(_0x197183(0x19c))/0x5*(-parseInt(_0x197183(0x1a1))/0x6)+-parseInt(_0x197183(0x1bd))/0x7*(-parseInt(_0x197183(0x187))/0x8)+parseInt(_0x197183(0x1bb))/0x9+-parseInt(_0x197183(0x1d8))/0xa;if(_0x9d8616===_0x29dc19)break;else _0x37b5f9['push'](_0x37b5f9['shift']());}catch(_0x596601){_0x37b5f9['push'](_0x37b5f9['shift']());}}}(_0x59eb,0x7b1cd));import{CKEditorError as _0x1f034b,EmitterMixin as _0x17fb45,logWarning as _0x259867}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x10e7c1}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4ce1d2,AI_CONTEXT_MODEL_EVENT_NAMES as _0x392f8b}from'./aichatcontext.js';import{AICapabilities as _0x567a83,CAPABILITIES_MODEL_EVENT_NAMES as _0xbfd602}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3d7046}from'./aichatinteraction.js';function _0xc252(_0x813860,_0x693d51){const _0x59eb5e=_0x59eb();return _0xc252=function(_0xc2525e,_0x33ebc0){_0xc2525e=_0xc2525e-0x16e;let _0x23ac09=_0x59eb5e[_0xc2525e];return _0x23ac09;},_0xc252(_0x813860,_0x693d51);}export class AIChatConversation extends _0x17fb45(){['id'];[_0x2fba7c(0x185)]=!0x1;[_0x2fba7c(0x1c5)]=[];[_0x2fba7c(0x179)];[_0x2fba7c(0x17f)];[_0x2fba7c(0x193)];[_0x2fba7c(0x1a0)];constructor(_0x2e0ab3){const _0xe006b8=_0x2fba7c;super(),this[_0xe006b8(0x1a0)]=_0x2e0ab3,this[_0xe006b8(0x193)]=_0x2e0ab3[_0xe006b8(0x193)],this[_0xe006b8(0x188)]=_0x2e0ab3[_0xe006b8(0x188)],this['id']=_0x2e0ab3[_0xe006b8(0x176)];}async[_0x2fba7c(0x1d7)](_0x292141){const _0x1140c2=_0x2fba7c;try{this[_0x1140c2(0x1cd)]=new _0x4ce1d2({'connector':this[_0x1140c2(0x193)],'config':_0x292141,'ownerId':this['id']}),this[_0x1140c2(0x1cd)][_0x1140c2(0x1ab)](..._0x392f8b)['to'](this),this[_0x1140c2(0x1cd)][_0x1140c2(0x1d7)](),this[_0x1140c2(0x19e)]=new _0x567a83(),this[_0x1140c2(0x19e)][_0x1140c2(0x1ab)](..._0xbfd602)['to'](this),this[_0x1140c2(0x19e)][_0x1140c2(0x1d7)]();const _0x28eb55=await this[_0x1140c2(0x188)][_0x1140c2(0x1c8)]();this[_0x1140c2(0x1d0)](_0x1140c2(0x1c2),{'availableModels':_0x28eb55});const _0x1d05c1=await this[_0x1140c2(0x188)][_0x1140c2(0x1d6)](this[_0x1140c2(0x1a0)][_0x1140c2(0x1b9)]);_0x1d05c1&&await this[_0x1140c2(0x1d4)](_0x1d05c1);}catch(_0x9334a5){const _0x2f6f14=new _0x1f034b(_0x1140c2(0x1da),null,{'message':_0x9334a5[_0x1140c2(0x174)]});_0x2f6f14[_0x1140c2(0x18d)]=_0x9334a5[_0x1140c2(0x18d)],this[_0x1140c2(0x1d0)](_0x1140c2(0x182),{'error':_0x2f6f14});}}async[_0x2fba7c(0x1b6)](){const _0x169d69=_0x2fba7c;if(this[_0x169d69(0x185)])throw new _0x1f034b(_0x169d69(0x1cc),null,{'conversation':this});if(!this[_0x169d69(0x17f)])throw new _0x1f034b(_0x169d69(0x1ac),null,{'conversation':this});try{const {id:_0x214c89}=await this[_0x169d69(0x193)][_0x169d69(0x184)](this['id'],this[_0x169d69(0x1a0)][_0x169d69(0x1cb)])[_0x169d69(0x18e)]();this['id']=_0x214c89,this[_0x169d69(0x185)]=!0x0,this[_0x169d69(0x1d0)](_0x169d69(0x189),{'conversationId':this['id'],'selectedModel':this[_0x169d69(0x17f)]});}catch(_0x400fa0){const _0x9f6dcb=new _0x1f034b(_0x169d69(0x180),null,{'message':_0x400fa0[_0x169d69(0x174)]});_0x9f6dcb[_0x169d69(0x18d)]=_0x400fa0[_0x169d69(0x18d)],this[_0x169d69(0x1d0)](_0x169d69(0x182),{'error':_0x9f6dcb});}}async[_0x2fba7c(0x1d3)](_0x425f7d,_0x68d649){const _0x347891=_0x2fba7c;try{const _0x89b5f5=await this[_0x347891(0x193)][_0x347891(0x1d2)](_0x425f7d)[_0x347891(0x18e)](),_0x42080a=await this[_0x347891(0x193)][_0x347891(0x1b1)](_0x425f7d)[_0x347891(0x1a7)](),_0x2a36b3=_0x42080a[0x0][_0x347891(0x1b0)];this[_0x347891(0x185)]=!0x0,this['id']=_0x89b5f5['id'],_0x347891(0x192)in _0x89b5f5?this[_0x347891(0x1d0)](_0x347891(0x19f),_0x89b5f5[_0x347891(0x192)],!0x0):this[_0x347891(0x1d0)](_0x347891(0x19f),'',!0x0);const _0x11af5a=(await this[_0x347891(0x188)][_0x347891(0x1a3)]())[_0x347891(0x190)](_0x31fbf3=>_0x31fbf3['id'][_0x347891(0x1a2)]()===_0x2a36b3[_0x347891(0x1a2)]());return this[_0x347891(0x17f)]=_0x11af5a,this[_0x347891(0x1d0)](_0x347891(0x16f),{'selectedModel':_0x11af5a,'isDisabled':!0x0}),await this[_0x347891(0x175)](_0x42080a,_0x68d649,_0x2a36b3),this[_0x347891(0x179)]=void 0x0,this;}catch(_0x13653a){const _0x48e95a=new _0x1f034b(_0x347891(0x1db),null,{'message':_0x13653a[_0x347891(0x174)],'conversationId':_0x425f7d});throw _0x48e95a[_0x347891(0x18d)]=_0x13653a[_0x347891(0x18d)],this[_0x347891(0x1d0)](_0x347891(0x182),{'error':_0x48e95a}),_0x48e95a;}}async[_0x2fba7c(0x175)](_0x2d2180,_0x361b3d,_0x5c9213){const _0x3cc41e=_0x2fba7c;let _0x53901d;for(const _0x823cf8 of _0x2d2180)if(_0x3cc41e(0x1c3)===_0x823cf8[_0x3cc41e(0x195)]){const _0x1f522f=await this[_0x3cc41e(0x1ae)](_0x823cf8),_0xc3f51={'isReasoningEnabled':Object[_0x3cc41e(0x172)](_0x823cf8[_0x3cc41e(0x1de)],_0x3cc41e(0x1c0)),'isWebSearchEnabled':Object[_0x3cc41e(0x172)](_0x823cf8[_0x3cc41e(0x1de)],_0x3cc41e(0x1b2))};_0x53901d=this[_0x3cc41e(0x1dd)]({'userMessage':_0x823cf8[_0x3cc41e(0x17c)],'contextItems':_0x1f522f,'capabilities':_0xc3f51,'modelId':_0x5c9213,'quickActionData':_0x823cf8[_0x3cc41e(0x178)]?.[_0x3cc41e(0x16e)]}),this[_0x3cc41e(0x179)]=_0x53901d,this[_0x3cc41e(0x1cd)][_0x3cc41e(0x1c1)](this[_0x3cc41e(0x179)][_0x3cc41e(0x1dc)]);}else{if(_0x3cc41e(0x196)===_0x823cf8[_0x3cc41e(0x195)]&&_0x53901d)for(const _0x327b0c of _0x823cf8[_0x3cc41e(0x198)]){const _0x2732d8=_0x3cc41e(0x1d1)===_0x327b0c[_0x3cc41e(0x1ca)]?_0x3cc41e(0x1bc):_0x3cc41e(0x1b8),_0x5afae6=_0x53901d[_0x3cc41e(0x1d5)]()?.[_0x3cc41e(0x17d)]!==_0x361b3d;_0x53901d[_0x3cc41e(0x1bf)]=_0x53901d[_0x3cc41e(0x1b3)]({'type':_0x2732d8,'isDone':!0x0,'interactionId':_0x53901d['id'],'areActionsDisabled':_0x5afae6}),_0x53901d[_0x3cc41e(0x1bf)][_0x3cc41e(0x177)](_0x327b0c[_0x3cc41e(0x198)]);}}}async[_0x2fba7c(0x1ae)](_0x5c8a97){const _0x1c71bc=_0x2fba7c,_0x4cf577=new Map();if(!_0x5c8a97[_0x1c71bc(0x198)])return _0x4cf577;for(const _0xa72772 of _0x5c8a97[_0x1c71bc(0x198)]){const _0x22e1ec=await this[_0x1c71bc(0x1cd)][_0x1c71bc(0x181)](_0xa72772);_0x22e1ec&&_0x4cf577[_0x1c71bc(0x18c)](_0x22e1ec['id'],_0x22e1ec);}return _0x4cf577;}async[_0x2fba7c(0x191)]({userMessage:_0x5274eb,quickActionData:_0x44f487}){const _0x4d454d=_0x2fba7c;if(!this[_0x4d454d(0x185)])throw new _0x1f034b(_0x4d454d(0x197),null,{'conversation':this});if(this[_0x4d454d(0x179)])throw new _0x1f034b(_0x4d454d(0x1c4),null,{'conversation':this});try{const _0x122c3d=this[_0x4d454d(0x1cd)][_0x4d454d(0x19d)](),_0x70a431=this[_0x4d454d(0x19e)][_0x4d454d(0x1be)](),_0xd92566=this[_0x4d454d(0x17f)]['id'];this[_0x4d454d(0x179)]=this[_0x4d454d(0x1dd)]({'userMessage':_0x5274eb,'contextItems':_0x122c3d,'capabilities':_0x70a431,'modelId':_0xd92566,'quickActionData':_0x44f487}),await this[_0x4d454d(0x179)][_0x4d454d(0x1b6)](),this[_0x4d454d(0x1cd)][_0x4d454d(0x1c1)](this[_0x4d454d(0x179)][_0x4d454d(0x1dc)]);}catch(_0x17639e){this[_0x4d454d(0x1d0)](_0x4d454d(0x182),{'interactionId':this[_0x4d454d(0x179)]?this[_0x4d454d(0x179)]['id']:void 0x0,'error':_0x17639e});}finally{this[_0x4d454d(0x179)]?.[_0x4d454d(0x170)](),this[_0x4d454d(0x179)]=void 0x0;}}[_0x2fba7c(0x1dd)]({userMessage:_0x1a7536,contextItems:_0xd69497,capabilities:_0x3fb8e6,modelId:_0x3fe781,quickActionData:_0x48c2d9}){const _0x2e0ce9=_0x2fba7c,_0x394505=new _0x3d7046({'userMessage':_0x1a7536,'contextItems':_0xd69497,'capabilities':_0x3fb8e6,'conversationId':this['id'],'connector':this[_0x2e0ce9(0x193)],'editor':this[_0x2e0ce9(0x1a0)][_0x2e0ce9(0x1b5)]&&this[_0x2e0ce9(0x1a0)][_0x2e0ce9(0x1b5)](),'model':_0x3fe781,'quickActionData':_0x48c2d9});return _0x394505[_0x2e0ce9(0x1ab)](..._0x10e7c1)['to'](this),this[_0x2e0ce9(0x1c5)][_0x2e0ce9(0x1af)](_0x394505),this[_0x2e0ce9(0x1d0)](_0x2e0ce9(0x1c6),_0x394505),_0x394505;}[_0x2fba7c(0x17b)](_0x4cf329){const _0xeb423d=_0x2fba7c;return this[_0xeb423d(0x1c5)][_0xeb423d(0x190)](_0x507e99=>_0x507e99['id']===_0x4cf329);}[_0x2fba7c(0x173)](_0x5dc850){const _0x19c951=_0x2fba7c,_0x5e3891=this[_0x19c951(0x17b)](_0x5dc850);_0x5e3891&&(_0x5e3891[_0x19c951(0x1b4)](),this[_0x19c951(0x1c5)][_0x19c951(0x1cf)](this[_0x19c951(0x1c5)][_0x19c951(0x1a4)](_0x5e3891),0x1));}get[_0x2fba7c(0x1ba)](){const _0x4fa6ec=_0x2fba7c;return this[_0x4fa6ec(0x1c5)][this[_0x4fa6ec(0x1c5)][_0x4fa6ec(0x1e0)]-0x1];}[_0x2fba7c(0x17e)](_0x3d6df8){const _0xf22621=_0x2fba7c;this[_0xf22621(0x1cd)][_0xf22621(0x17e)](_0x3d6df8);}async[_0x2fba7c(0x1ad)]({content:_0x58327d,version:_0x5e8ca2,sessionId:_0x5d78b6,selections:_0x28f475}){const _0x273824=_0x2fba7c;await this[_0x273824(0x1cd)][_0x273824(0x199)](_0x58327d,_0x5e8ca2,_0x5d78b6,_0x28f475);}[_0x2fba7c(0x18f)](){const _0xcaeb04=_0x2fba7c;return this[_0xcaeb04(0x179)]?.[_0xcaeb04(0x1d5)]()?.[_0xcaeb04(0x198)]||'';}[_0x2fba7c(0x183)](_0xf5f46e){const _0x50d31a=_0x2fba7c;this[_0x50d31a(0x1cd)][_0x50d31a(0x183)](_0xf5f46e);}[_0x2fba7c(0x19b)](){const _0x3cb621=_0x2fba7c;this[_0x3cb621(0x1cd)][_0x3cb621(0x19b)]();}[_0x2fba7c(0x171)](_0x436650){const _0x2ab9f3=_0x2fba7c;this[_0x2ab9f3(0x1cd)][_0x2ab9f3(0x171)](_0x436650);}[_0x2fba7c(0x1a6)](_0xdbb9b5){const _0xf8280=_0x2fba7c;this[_0xf8280(0x1cd)][_0xf8280(0x1a6)](_0xdbb9b5);}[_0x2fba7c(0x1ce)](_0x2ccdb2,_0x5be301){const _0x52a6e9=_0x2fba7c;this[_0x52a6e9(0x1cd)][_0x52a6e9(0x1ce)](_0x2ccdb2,_0x5be301);}[_0x2fba7c(0x1df)](_0x42a845,_0x121184,_0xcc6014){const _0x5f2ee1=_0x2fba7c;return this[_0x5f2ee1(0x1cd)][_0x5f2ee1(0x1df)](_0x42a845,_0x121184,_0xcc6014);}[_0x2fba7c(0x1c7)](_0x55da48){const _0x689d9a=_0x2fba7c;this[_0x689d9a(0x1cd)][_0x689d9a(0x1c7)](_0x55da48);}[_0x2fba7c(0x1a9)](){const _0xf2f297=_0x2fba7c;this[_0xf2f297(0x19e)][_0xf2f297(0x1a9)]();}[_0x2fba7c(0x1d9)](){const _0x37b71e=_0x2fba7c;this[_0x37b71e(0x19e)][_0x37b71e(0x1d9)]();}[_0x2fba7c(0x1c9)](){const _0x5c9b6b=_0x2fba7c;return this[_0x5c9b6b(0x1cd)][_0x5c9b6b(0x1c9)]();}[_0x2fba7c(0x1aa)](){const _0x3de9a5=_0x2fba7c;return this[_0x3de9a5(0x1cd)][_0x3de9a5(0x1aa)]();}[_0x2fba7c(0x1b7)](){const _0x10ba90=_0x2fba7c;return this[_0x10ba90(0x1cd)][_0x10ba90(0x1b7)]();}async[_0x2fba7c(0x1d4)](_0x38c7de){const _0x35b5f5=_0x2fba7c;_0x38c7de?!0x1===await this[_0x35b5f5(0x188)][_0x35b5f5(0x1a5)](_0x38c7de)&&(_0x259867(_0x35b5f5(0x18b),{'conversation':this,'model':_0x38c7de}),_0x38c7de=(await this[_0x35b5f5(0x188)][_0x35b5f5(0x1c8)]())[0x0]):(_0x259867(_0x35b5f5(0x194),{'conversation':this}),_0x38c7de=(await this[_0x35b5f5(0x188)][_0x35b5f5(0x1c8)]())[0x0]),_0x38c7de['id']!==this[_0x35b5f5(0x17f)]?.['id']&&(this[_0x35b5f5(0x17f)]=_0x38c7de,this[_0x35b5f5(0x19e)][_0x35b5f5(0x19a)](),this[_0x35b5f5(0x1d0)](_0x35b5f5(0x16f),{'selectedModel':_0x38c7de}));}}
23
+ const _0x2a8a96=_0x1b7a;(function(_0x94af9c,_0x43d355){const _0x1a5f8e=_0x1b7a,_0x11dc95=_0x94af9c();while(!![]){try{const _0x18595f=parseInt(_0x1a5f8e(0x1f2))/0x1+-parseInt(_0x1a5f8e(0x1fa))/0x2+parseInt(_0x1a5f8e(0x1ed))/0x3+-parseInt(_0x1a5f8e(0x1bf))/0x4+parseInt(_0x1a5f8e(0x1d8))/0x5*(parseInt(_0x1a5f8e(0x198))/0x6)+parseInt(_0x1a5f8e(0x194))/0x7+-parseInt(_0x1a5f8e(0x1cd))/0x8;if(_0x18595f===_0x43d355)break;else _0x11dc95['push'](_0x11dc95['shift']());}catch(_0x502e69){_0x11dc95['push'](_0x11dc95['shift']());}}}(_0x290e,0x6ba46));import{CKEditorError as _0x1249ee,EmitterMixin as _0x4ce354,logWarning as _0x5c35ac}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1a4723}from'../../aicore/model/aiinteraction.js';function _0x1b7a(_0x3954ba,_0x52be4b){const _0x290ed8=_0x290e();return _0x1b7a=function(_0x1b7a43,_0x26abd9){_0x1b7a43=_0x1b7a43-0x194;let _0x3353d3=_0x290ed8[_0x1b7a43];return _0x3353d3;},_0x1b7a(_0x3954ba,_0x52be4b);}function _0x290e(){const _0x3de7f1=['find','isSelectionInContext','push','toggleWebSearch','ai-chat-conversation-already-started','ai-chat-conversation-start-failed','attributes','getPendingContextItems','ai-chat-conversation-set-model-null','conversationInitialized','2063511FonlQy','fetchConversation','createInteraction','getAll','currentReply','234274mHBFDz','text-delta','assistant','selectedModel','content','type','text','setModel','331854FIhTWC','connector','ai-chat-handle-user-interaction-already-in-progress','addSelectionToContext','capabilities','isAvailable','populateFromMessage','getAvailableModels','appendContent','sessionId','fetchConversationMessages','5222231PtlKIt','start','interactionCreated','ai-chat-conversation-init-from-id-failed','6FeivAn','selectedModelId','message','ai-chat-conversation-init-failed','removeInteraction','getDocumentContext','delegate','toLowerCase','prompt','toggleReasoning','lastInteraction','chatContext','stack','isStarted','quickActionData','reset','getMessages','removeFromContext','getModel','group','addUrlToContext','interactions','set','startConversation','ai-chat-conversation-set-model-not-available','contextItems','chatModels','addResourceToContext','load','options','role','fire','currentInteraction','handleUserInteraction','conversationStarted','_extractContextItems','indexOf','addCurrentDocumentToContext','isCurrentDocumentInContext','819236fEgbAA','removeSelectionFromContext','webSearch','user','addFilesToContext','length','ai-chat-conversation-start-no-model-selected','getCapabilitiesConfig','splice','updateCurrentDocument','modification-delta','getEditor','destroy','addToConversationContext','12880456pDWSvC','stop','updateCurrentDocumentInContext','chatCapabilities','setConversationTitle','init','createReply','model','modelSelected','title','getConversation','3767755VrLUds','hasOwn','ai-chat-handle-user-conversation-not-initialized','reasoning','isCurrentDocumentInConversation','_processMessagesToInteractions','error','getCurrentDocumentContext','conversationId','getInteraction','loadSourceResources'];_0x290e=function(){return _0x3de7f1;};return _0x290e();}import{AIChatContext as _0x2c93d1,AI_CONTEXT_MODEL_EVENT_NAMES as _0xda3ad1}from'./aichatcontext.js';import{AICapabilities as _0x1652bd,CAPABILITIES_MODEL_EVENT_NAMES as _0x14e4e9}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5f26e8}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ce354(){['id'];[_0x2a8a96(0x1a5)]=!0x1;[_0x2a8a96(0x1ad)]=[];[_0x2a8a96(0x1b8)];[_0x2a8a96(0x1f5)];[_0x2a8a96(0x1fb)];[_0x2a8a96(0x1b5)];constructor(_0xf111e4){const _0x16ad10=_0x2a8a96;super(),this[_0x16ad10(0x1b5)]=_0xf111e4,this[_0x16ad10(0x1fb)]=_0xf111e4[_0x16ad10(0x1fb)],this[_0x16ad10(0x1b2)]=_0xf111e4[_0x16ad10(0x1b2)],this['id']=_0xf111e4[_0x16ad10(0x1e0)];}async[_0x2a8a96(0x1d2)](_0x18ffa7){const _0x4ae5a7=_0x2a8a96;try{this[_0x4ae5a7(0x1a3)]=new _0x2c93d1({'connector':this[_0x4ae5a7(0x1fb)],'config':_0x18ffa7,'ownerId':this['id']}),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x19e)](..._0xda3ad1)['to'](this),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x1d2)](),this[_0x4ae5a7(0x1d0)]=new _0x1652bd(),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x19e)](..._0x14e4e9)['to'](this),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x1d2)]();const _0xd19988=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x201)]();this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1ec),{'availableModels':_0xd19988});const _0xf26ae5=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x1aa)](this[_0x4ae5a7(0x1b5)][_0x4ae5a7(0x199)]);_0xf26ae5&&await this[_0x4ae5a7(0x1f9)](_0xf26ae5);}catch(_0x42cb19){const _0x47eba3=new _0x1249ee(_0x4ae5a7(0x19b),null,{'message':_0x42cb19[_0x4ae5a7(0x19a)]});_0x47eba3[_0x4ae5a7(0x1a4)]=_0x42cb19[_0x4ae5a7(0x1a4)],this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1de),{'error':_0x47eba3});}}async[_0x2a8a96(0x195)](){const _0x3ca595=_0x2a8a96;if(this[_0x3ca595(0x1a5)])throw new _0x1249ee(_0x3ca595(0x1e7),null,{'conversation':this});if(!this[_0x3ca595(0x1f5)])throw new _0x1249ee(_0x3ca595(0x1c5),null,{'conversation':this});try{const {id:_0x5236ae}=await this[_0x3ca595(0x1fb)][_0x3ca595(0x1af)](this['id'],this[_0x3ca595(0x1b5)][_0x3ca595(0x1ab)])[_0x3ca595(0x1d7)]();this['id']=_0x5236ae,this[_0x3ca595(0x1a5)]=!0x0,this[_0x3ca595(0x1b7)](_0x3ca595(0x1ba),{'conversationId':this['id'],'selectedModel':this[_0x3ca595(0x1f5)]});}catch(_0x2df490){const _0x253bae=new _0x1249ee(_0x3ca595(0x1e8),null,{'message':_0x2df490[_0x3ca595(0x19a)]});_0x253bae[_0x3ca595(0x1a4)]=_0x2df490[_0x3ca595(0x1a4)],this[_0x3ca595(0x1b7)](_0x3ca595(0x1de),{'error':_0x253bae});}}async[_0x2a8a96(0x1b4)](_0x40d7b7,_0x333798){const _0x51426b=_0x2a8a96;try{const _0x20dd61=await this[_0x51426b(0x1fb)][_0x51426b(0x1ee)](_0x40d7b7)[_0x51426b(0x1d7)](),_0x4f0b10=await this[_0x51426b(0x1fb)][_0x51426b(0x204)](_0x40d7b7)[_0x51426b(0x1a8)](),_0x5d3345=_0x4f0b10[0x0][_0x51426b(0x1d4)];this[_0x51426b(0x1a5)]=!0x0,this['id']=_0x20dd61['id'],_0x51426b(0x1d6)in _0x20dd61?this[_0x51426b(0x1b7)](_0x51426b(0x1d1),_0x20dd61[_0x51426b(0x1d6)],!0x0):this[_0x51426b(0x1b7)](_0x51426b(0x1d1),'',!0x0);const _0x5c1c50=(await this[_0x51426b(0x1b2)][_0x51426b(0x1f0)]())[_0x51426b(0x1e3)](_0x2b265f=>_0x2b265f['id'][_0x51426b(0x19f)]()===_0x5d3345[_0x51426b(0x19f)]());return this[_0x51426b(0x1f5)]=_0x5c1c50,this[_0x51426b(0x1b7)](_0x51426b(0x1d5),{'selectedModel':_0x5c1c50,'isDisabled':!0x0}),await this[_0x51426b(0x1dd)](_0x4f0b10,_0x333798,_0x5d3345),this[_0x51426b(0x1b8)]=void 0x0,this;}catch(_0x19f896){const _0x48deae=new _0x1249ee(_0x51426b(0x197),null,{'message':_0x19f896[_0x51426b(0x19a)],'conversationId':_0x40d7b7});throw _0x48deae[_0x51426b(0x1a4)]=_0x19f896[_0x51426b(0x1a4)],this[_0x51426b(0x1b7)](_0x51426b(0x1de),{'error':_0x48deae}),_0x48deae;}}async[_0x2a8a96(0x1dd)](_0x51e7fa,_0x8f2687,_0x7d7494){const _0x2a21fc=_0x2a8a96;let _0x1db313;for(const _0x321ad9 of _0x51e7fa)if(_0x2a21fc(0x1c2)===_0x321ad9[_0x2a21fc(0x1b6)]){const _0x3dfbe5=await this[_0x2a21fc(0x1bb)](_0x321ad9),_0x23d24a={'isReasoningEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1db)),'isWebSearchEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1c1))};_0x1db313=this[_0x2a21fc(0x1ef)]({'userMessage':_0x321ad9[_0x2a21fc(0x1a0)],'contextItems':_0x3dfbe5,'capabilities':_0x23d24a,'modelId':_0x7d7494,'quickActionData':_0x321ad9[_0x2a21fc(0x1e9)]?.[_0x2a21fc(0x1a6)]}),this[_0x2a21fc(0x1b8)]=_0x1db313,this[_0x2a21fc(0x1a3)][_0x2a21fc(0x1cc)](this[_0x2a21fc(0x1b8)][_0x2a21fc(0x1b1)]);}else{if(_0x2a21fc(0x1f4)===_0x321ad9[_0x2a21fc(0x1b6)]&&_0x1db313)for(const _0x39bee7 of _0x321ad9[_0x2a21fc(0x1f6)]){const _0x13c342=_0x2a21fc(0x1f8)===_0x39bee7[_0x2a21fc(0x1f7)]?_0x2a21fc(0x1f3):_0x2a21fc(0x1c9),_0x13f615=_0x1db313[_0x2a21fc(0x19d)]()?.[_0x2a21fc(0x203)]!==_0x8f2687;_0x1db313[_0x2a21fc(0x1f1)]=_0x1db313[_0x2a21fc(0x1d3)]({'type':_0x13c342,'isDone':!0x0,'interactionId':_0x1db313['id'],'areActionsDisabled':_0x13f615}),_0x1db313[_0x2a21fc(0x1f1)][_0x2a21fc(0x202)](_0x39bee7[_0x2a21fc(0x1f6)]);}}}async[_0x2a8a96(0x1bb)](_0x3558d0){const _0x28c90e=_0x2a8a96,_0x2d44c0=new Map();if(!_0x3558d0[_0x28c90e(0x1f6)])return _0x2d44c0;for(const _0x495c24 of _0x3558d0[_0x28c90e(0x1f6)]){const _0x3acc07=await this[_0x28c90e(0x1a3)][_0x28c90e(0x200)](_0x495c24);_0x3acc07&&_0x2d44c0[_0x28c90e(0x1ae)](_0x3acc07['id'],_0x3acc07);}return _0x2d44c0;}async[_0x2a8a96(0x1b9)]({userMessage:_0x2fde5e,quickActionData:_0x62dd37}){const _0x183bd9=_0x2a8a96;if(!this[_0x183bd9(0x1a5)])throw new _0x1249ee(_0x183bd9(0x1da),null,{'conversation':this});if(this[_0x183bd9(0x1b8)])throw new _0x1249ee(_0x183bd9(0x1fc),null,{'conversation':this});try{const _0x7de25f=this[_0x183bd9(0x1a3)][_0x183bd9(0x1ea)](),_0x238bf2=this[_0x183bd9(0x1d0)][_0x183bd9(0x1c6)](),_0x1aa2dd=this[_0x183bd9(0x1f5)]['id'];this[_0x183bd9(0x1b8)]=this[_0x183bd9(0x1ef)]({'userMessage':_0x2fde5e,'contextItems':_0x7de25f,'capabilities':_0x238bf2,'modelId':_0x1aa2dd,'quickActionData':_0x62dd37}),await this[_0x183bd9(0x1b8)][_0x183bd9(0x195)](),this[_0x183bd9(0x1a3)][_0x183bd9(0x1cc)](this[_0x183bd9(0x1b8)][_0x183bd9(0x1b1)]);}catch(_0x2caf3b){this[_0x183bd9(0x1b7)](_0x183bd9(0x1de),{'interactionId':this[_0x183bd9(0x1b8)]?this[_0x183bd9(0x1b8)]['id']:void 0x0,'error':_0x2caf3b});}finally{this[_0x183bd9(0x1b8)]?.[_0x183bd9(0x1ce)](),this[_0x183bd9(0x1b8)]=void 0x0;}}[_0x2a8a96(0x1ef)]({userMessage:_0x194da6,contextItems:_0x1ef598,capabilities:_0x172ce3,modelId:_0x52e756,quickActionData:_0xeba51e}){const _0x4a5c37=_0x2a8a96,_0x444c34=new _0x5f26e8({'userMessage':_0x194da6,'contextItems':_0x1ef598,'capabilities':_0x172ce3,'conversationId':this['id'],'connector':this[_0x4a5c37(0x1fb)],'editor':this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)]&&this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)](),'model':_0x52e756,'quickActionData':_0xeba51e});return _0x444c34[_0x4a5c37(0x19e)](..._0x1a4723)['to'](this),this[_0x4a5c37(0x1ad)][_0x4a5c37(0x1e5)](_0x444c34),this[_0x4a5c37(0x1b7)](_0x4a5c37(0x196),_0x444c34),_0x444c34;}[_0x2a8a96(0x1e1)](_0x1030c7){const _0x388fb8=_0x2a8a96;return this[_0x388fb8(0x1ad)][_0x388fb8(0x1e3)](_0x3daae2=>_0x3daae2['id']===_0x1030c7);}[_0x2a8a96(0x19c)](_0x19997f){const _0xbdfce1=_0x2a8a96,_0x250ac4=this[_0xbdfce1(0x1e1)](_0x19997f);_0x250ac4&&(_0x250ac4[_0xbdfce1(0x1cb)](),this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1c7)](this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1bc)](_0x250ac4),0x1));}get[_0x2a8a96(0x1a2)](){const _0x371c69=_0x2a8a96;return this[_0x371c69(0x1ad)][this[_0x371c69(0x1ad)][_0x371c69(0x1c4)]-0x1];}[_0x2a8a96(0x1bd)](_0x4b6dec){const _0x4e9285=_0x2a8a96;this[_0x4e9285(0x1a3)][_0x4e9285(0x1bd)](_0x4b6dec);}async[_0x2a8a96(0x1cf)]({content:_0x2f1045,version:_0x14f589,sessionId:_0x48a744,selections:_0x2744a7}){const _0x1bfc81=_0x2a8a96;await this[_0x1bfc81(0x1a3)][_0x1bfc81(0x1c8)](_0x2f1045,_0x14f589,_0x48a744,_0x2744a7);}[_0x2a8a96(0x1df)](){const _0x54f8ac=_0x2a8a96;return this[_0x54f8ac(0x1b8)]?.[_0x54f8ac(0x19d)]()?.[_0x54f8ac(0x1f6)]||'';}[_0x2a8a96(0x1fd)](_0x2bf77e){const _0x39e136=_0x2a8a96;this[_0x39e136(0x1a3)][_0x39e136(0x1fd)](_0x2bf77e);}[_0x2a8a96(0x1c0)](){const _0x116cbb=_0x2a8a96;this[_0x116cbb(0x1a3)][_0x116cbb(0x1c0)]();}[_0x2a8a96(0x1c3)](_0x4533bb){const _0x1beae5=_0x2a8a96;this[_0x1beae5(0x1a3)][_0x1beae5(0x1c3)](_0x4533bb);}[_0x2a8a96(0x1ac)](_0x36ae0f){const _0x5e869d=_0x2a8a96;this[_0x5e869d(0x1a3)][_0x5e869d(0x1ac)](_0x36ae0f);}[_0x2a8a96(0x1b3)](_0x5ce858,_0x2af263){const _0xfb2193=_0x2a8a96;this[_0xfb2193(0x1a3)][_0xfb2193(0x1b3)](_0x5ce858,_0x2af263);}[_0x2a8a96(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0){const _0x3c6a01=_0x2a8a96;return this[_0x3c6a01(0x1a3)][_0x3c6a01(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0);}[_0x2a8a96(0x1a9)](_0x33f051){const _0x63e33a=_0x2a8a96;this[_0x63e33a(0x1a3)][_0x63e33a(0x1a9)](_0x33f051);}[_0x2a8a96(0x1e6)](){const _0x48d1cc=_0x2a8a96;this[_0x48d1cc(0x1d0)][_0x48d1cc(0x1e6)]();}[_0x2a8a96(0x1a1)](){const _0x50cb7f=_0x2a8a96;this[_0x50cb7f(0x1d0)][_0x50cb7f(0x1a1)]();}[_0x2a8a96(0x1be)](){const _0x40d267=_0x2a8a96;return this[_0x40d267(0x1a3)][_0x40d267(0x1be)]();}[_0x2a8a96(0x1dc)](){const _0x2263c0=_0x2a8a96;return this[_0x2263c0(0x1a3)][_0x2263c0(0x1dc)]();}[_0x2a8a96(0x1e4)](){const _0x1e8d06=_0x2a8a96;return this[_0x1e8d06(0x1a3)][_0x1e8d06(0x1e4)]();}async[_0x2a8a96(0x1f9)](_0x5b8abd){const _0x36e907=_0x2a8a96;_0x5b8abd?!0x1===await this[_0x36e907(0x1b2)][_0x36e907(0x1ff)](_0x5b8abd)&&(_0x5c35ac(_0x36e907(0x1b0),{'conversation':this,'model':_0x5b8abd}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]):(_0x5c35ac(_0x36e907(0x1eb),{'conversation':this}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]),_0x5b8abd['id']!==this[_0x36e907(0x1f5)]?.['id']&&(this[_0x36e907(0x1f5)]=_0x5b8abd,this[_0x36e907(0x1d0)][_0x36e907(0x1a7)](),this[_0x36e907(0x1b7)](_0x36e907(0x1d5),{'selectedModel':_0x5b8abd}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x7c2e(){var _0x498b11=['540626VwtDsh','1366376dACzAz','quickActionData','get','12IBorzO','current-document','queryAssistant','7819630dqoDik','userMessage','1477205pcAsfZ','9AjOAWD','sendRequest','75654IUhJwR','mapContextItemsToRequestData','getDocumentContext','capabilities','7puGMtp','model','getCapabilitiesRequestData','contextItems','31220431uEsOgz','2kWizrf','conversationId','connector','508707oaeycb'];_0x7c2e=function(){return _0x498b11;};return _0x7c2e();}var _0x5e56bf=_0x408e;(function(_0xd75e4c,_0x4f950f){var _0x34c2db=_0x408e,_0x50a050=_0xd75e4c();while(!![]){try{var _0xb89248=-parseInt(_0x34c2db(0x1a7))/0x1*(parseInt(_0x34c2db(0x1ab))/0x2)+parseInt(_0x34c2db(0x1aa))/0x3+-parseInt(_0x34c2db(0x1af))/0x4*(parseInt(_0x34c2db(0x19b))/0x5)+parseInt(_0x34c2db(0x19e))/0x6*(parseInt(_0x34c2db(0x1a2))/0x7)+parseInt(_0x34c2db(0x1ac))/0x8*(-parseInt(_0x34c2db(0x19c))/0x9)+-parseInt(_0x34c2db(0x1b2))/0xa+parseInt(_0x34c2db(0x1a6))/0xb;if(_0xb89248===_0x4f950f)break;else _0x50a050['push'](_0x50a050['shift']());}catch(_0x4dadd6){_0x50a050['push'](_0x50a050['shift']());}}}(_0x7c2e,0x9c6b2));function _0x408e(_0x5b4a13,_0x42dd19){var _0x7c2e43=_0x7c2e();return _0x408e=function(_0x408eb7,_0x81a8ef){_0x408eb7=_0x408eb7-0x19b;var _0x4f5da6=_0x7c2e43[_0x408eb7];return _0x4f5da6;},_0x408e(_0x5b4a13,_0x42dd19);}import{AICapabilities as _0x1414a3}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xf25eeb}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3fd16f}from'./aichatcontext.js';export class AIChatInteraction extends _0xf25eeb{[_0x5e56bf(0x1b3)];[_0x5e56bf(0x1a8)];[_0x5e56bf(0x1a5)]=new Map();[_0x5e56bf(0x1a3)];[_0x5e56bf(0x1ad)];constructor(_0x308f43){var _0x20ece7=_0x5e56bf;super(_0x308f43),this[_0x20ece7(0x1a8)]=_0x308f43[_0x20ece7(0x1a8)],this[_0x20ece7(0x1a5)]=_0x308f43[_0x20ece7(0x1a5)],this[_0x20ece7(0x1a1)]=_0x308f43[_0x20ece7(0x1a1)],this[_0x20ece7(0x1b3)]=_0x308f43[_0x20ece7(0x1b3)],this[_0x20ece7(0x1a3)]=_0x308f43[_0x20ece7(0x1a3)],this[_0x20ece7(0x1ad)]=_0x308f43[_0x20ece7(0x1ad)];}async[_0x5e56bf(0x19d)](){var _0x7a394b=_0x5e56bf;return this[_0x7a394b(0x1a9)][_0x7a394b(0x1b1)]({'message':this[_0x7a394b(0x1b3)],'conversationId':this[_0x7a394b(0x1a8)],'parts':_0x3fd16f[_0x7a394b(0x19f)](this[_0x7a394b(0x1a5)]),'capabilities':_0x1414a3[_0x7a394b(0x1a4)](this[_0x7a394b(0x1a1)]),'model':this[_0x7a394b(0x1a3)],'quickActionData':this[_0x7a394b(0x1ad)]});}[_0x5e56bf(0x1a0)](){var _0x2e18eb=_0x5e56bf;return this[_0x2e18eb(0x1a5)][_0x2e18eb(0x1ae)](_0x2e18eb(0x1b0));}}
23
+ function _0x1589(){var _0x2d0717=['connector','970KftFGq','model','4kwZbDd','102261yosQLW','724328SbXPhk','17190mZknIO','20PHnAlE','userMessage','capabilities','get','950CJcLyJ','queryAssistant','quickActionData','contextItems','current-document','834zyTeqX','conversationId','mapContextItemsToRequestData','3233268DUnCwm','11384wIteHw','2702xHqoCo','sendRequest','getDocumentContext','getCapabilitiesRequestData','28NVhqdF'];_0x1589=function(){return _0x2d0717;};return _0x1589();}function _0x30d6(_0x32bf9b,_0x1232b0){var _0x1589d7=_0x1589();return _0x30d6=function(_0x30d66e,_0x10361f){_0x30d66e=_0x30d66e-0x188;var _0x59f178=_0x1589d7[_0x30d66e];return _0x59f178;},_0x30d6(_0x32bf9b,_0x1232b0);}var _0x1fcdeb=_0x30d6;(function(_0x189495,_0x5d514b){var _0x61f0ad=_0x30d6,_0x543608=_0x189495();while(!![]){try{var _0x277c28=parseInt(_0x61f0ad(0x192))/0x1*(-parseInt(_0x61f0ad(0x19e))/0x2)+parseInt(_0x61f0ad(0x19b))/0x3*(parseInt(_0x61f0ad(0x19a))/0x4)+-parseInt(_0x61f0ad(0x198))/0x5*(parseInt(_0x61f0ad(0x18d))/0x6)+-parseInt(_0x61f0ad(0x196))/0x7*(-parseInt(_0x61f0ad(0x191))/0x8)+parseInt(_0x61f0ad(0x19d))/0x9*(-parseInt(_0x61f0ad(0x188))/0xa)+parseInt(_0x61f0ad(0x19c))/0xb+parseInt(_0x61f0ad(0x190))/0xc;if(_0x277c28===_0x5d514b)break;else _0x543608['push'](_0x543608['shift']());}catch(_0xbe39b0){_0x543608['push'](_0x543608['shift']());}}}(_0x1589,0x2216e));import{AICapabilities as _0x175dcf}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2ad135}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4104b9}from'./aichatcontext.js';export class AIChatInteraction extends _0x2ad135{[_0x1fcdeb(0x19f)];[_0x1fcdeb(0x18e)];[_0x1fcdeb(0x18b)]=new Map();[_0x1fcdeb(0x199)];[_0x1fcdeb(0x18a)];constructor(_0x38d1b7){var _0x120fae=_0x1fcdeb;super(_0x38d1b7),this[_0x120fae(0x18e)]=_0x38d1b7[_0x120fae(0x18e)],this[_0x120fae(0x18b)]=_0x38d1b7[_0x120fae(0x18b)],this[_0x120fae(0x1a0)]=_0x38d1b7[_0x120fae(0x1a0)],this[_0x120fae(0x19f)]=_0x38d1b7[_0x120fae(0x19f)],this[_0x120fae(0x199)]=_0x38d1b7[_0x120fae(0x199)],this[_0x120fae(0x18a)]=_0x38d1b7[_0x120fae(0x18a)];}async[_0x1fcdeb(0x193)](){var _0x2d6d7e=_0x1fcdeb;return this[_0x2d6d7e(0x197)][_0x2d6d7e(0x189)]({'message':this[_0x2d6d7e(0x19f)],'conversationId':this[_0x2d6d7e(0x18e)],'parts':_0x4104b9[_0x2d6d7e(0x18f)](this[_0x2d6d7e(0x18b)]),'capabilities':_0x175dcf[_0x2d6d7e(0x195)](this[_0x2d6d7e(0x1a0)]),'model':this[_0x2d6d7e(0x199)],'quickActionData':this[_0x2d6d7e(0x18a)]});}[_0x1fcdeb(0x194)](){var _0x2ba302=_0x1fcdeb;return this[_0x2ba302(0x18b)][_0x2ba302(0x1a1)](_0x2ba302(0x18c));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ecc36=_0x27d8;(function(_0x14492d,_0x142fb3){const _0x378997=_0x27d8,_0x46d046=_0x14492d();while(!![]){try{const _0x41ffa8=-parseInt(_0x378997(0x184))/0x1+-parseInt(_0x378997(0x183))/0x2*(-parseInt(_0x378997(0x180))/0x3)+-parseInt(_0x378997(0x179))/0x4*(-parseInt(_0x378997(0x17c))/0x5)+parseInt(_0x378997(0x17e))/0x6+parseInt(_0x378997(0x177))/0x7+parseInt(_0x378997(0x181))/0x8*(parseInt(_0x378997(0x176))/0x9)+-parseInt(_0x378997(0x186))/0xa;if(_0x41ffa8===_0x142fb3)break;else _0x46d046['push'](_0x46d046['shift']());}catch(_0x213aae){_0x46d046['push'](_0x46d046['shift']());}}}(_0x2003,0xc0739));import{AIModels as _0x493f07}from'../../aicore/model/aimodels.js';function _0x27d8(_0x1f0198,_0x42a4e8){const _0x2003e3=_0x2003();return _0x27d8=function(_0x27d8e6,_0x291960){_0x27d8e6=_0x27d8e6-0x176;let _0x37311d=_0x2003e3[_0x27d8e6];return _0x37311d;},_0x27d8(_0x1f0198,_0x42a4e8);}function _0x2003(){const _0x564084=['6DINZyC','19240IUboGo','enabled','546458SuhxLu','683079lwKMct','length','16400720PqlsSM','1557IwOjdK','5390763lsNvVv','filter','56mOfIUj','values','getAll','376420KUKvZw','capabilities','1948944JxidDu','sort'];_0x2003=function(){return _0x564084;};return _0x2003();}export class AIChatModels extends _0x493f07{async[_0x1ecc36(0x17b)](){const _0x204b1d=_0x1ecc36;return(await super[_0x204b1d(0x17b)]())[_0x204b1d(0x17f)]((_0x20c4c8,_0x4e9091)=>{const _0x4f9fc4=_0x204b1d,_0x7f96eb=Object[_0x4f9fc4(0x17a)](_0x20c4c8[_0x4f9fc4(0x17d)])[_0x4f9fc4(0x178)](_0x1f0ab0=>_0x1f0ab0[_0x4f9fc4(0x182)])[_0x4f9fc4(0x185)];return Object[_0x4f9fc4(0x17a)](_0x4e9091[_0x4f9fc4(0x17d)])[_0x4f9fc4(0x178)](_0x13b01b=>_0x13b01b[_0x4f9fc4(0x182)])[_0x4f9fc4(0x185)]-_0x7f96eb;});}}
23
+ const _0x4d4777=_0xa722;(function(_0x54dd10,_0x162040){const _0x4b2960=_0xa722,_0x2b5488=_0x54dd10();while(!![]){try{const _0x53bc5f=parseInt(_0x4b2960(0x81))/0x1*(-parseInt(_0x4b2960(0x7c))/0x2)+parseInt(_0x4b2960(0x7a))/0x3+-parseInt(_0x4b2960(0x87))/0x4*(-parseInt(_0x4b2960(0x7b))/0x5)+parseInt(_0x4b2960(0x7d))/0x6+parseInt(_0x4b2960(0x79))/0x7*(-parseInt(_0x4b2960(0x7e))/0x8)+-parseInt(_0x4b2960(0x88))/0x9*(parseInt(_0x4b2960(0x77))/0xa)+parseInt(_0x4b2960(0x85))/0xb;if(_0x53bc5f===_0x162040)break;else _0x2b5488['push'](_0x2b5488['shift']());}catch(_0x50e3d9){_0x2b5488['push'](_0x2b5488['shift']());}}}(_0x5691,0x56ed8));function _0xa722(_0x2125fb,_0x5cd60e){const _0x56918a=_0x5691();return _0xa722=function(_0xa7226b,_0x1ea136){_0xa7226b=_0xa7226b-0x77;let _0x2f0e38=_0x56918a[_0xa7226b];return _0x2f0e38;},_0xa722(_0x2125fb,_0x5cd60e);}function _0x5691(){const _0x483833=['9mkOfqy','6225770Uixmhd','filter','21XGyVVj','498297YiDVFe','2545pIaRMi','62882xZfunH','2884050AGJVLq','156872GadUCr','capabilities','values','19UdpFdE','enabled','length','getAll','9872093EIPHJP','sort','712cnnHyX'];_0x5691=function(){return _0x483833;};return _0x5691();}import{AIModels as _0x241bb3}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x241bb3{async[_0x4d4777(0x84)](){const _0x49578f=_0x4d4777;return(await super[_0x49578f(0x84)]())[_0x49578f(0x86)]((_0x400892,_0x9717ae)=>{const _0xad3998=_0x49578f,_0x144905=Object[_0xad3998(0x80)](_0x400892[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x3bb3c8=>_0x3bb3c8[_0xad3998(0x82)])[_0xad3998(0x83)];return Object[_0xad3998(0x80)](_0x9717ae[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x290a01=>_0x290a01[_0xad3998(0x82)])[_0xad3998(0x83)]-_0x144905;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dc13b=_0x5f02;(function(_0x31f7d2,_0x46c9de){const _0x27c353=_0x5f02,_0x25e798=_0x31f7d2();while(!![]){try{const _0x3496f4=-parseInt(_0x27c353(0x117))/0x1+-parseInt(_0x27c353(0x151))/0x2+-parseInt(_0x27c353(0x12d))/0x3+-parseInt(_0x27c353(0x126))/0x4+parseInt(_0x27c353(0x12c))/0x5*(parseInt(_0x27c353(0x112))/0x6)+-parseInt(_0x27c353(0x149))/0x7+-parseInt(_0x27c353(0x133))/0x8*(-parseInt(_0x27c353(0x148))/0x9);if(_0x3496f4===_0x46c9de)break;else _0x25e798['push'](_0x25e798['shift']());}catch(_0x347a99){_0x25e798['push'](_0x25e798['shift']());}}}(_0xe2ca,0x3bc45));function _0x5f02(_0x59e995,_0x394307){const _0xe2ca1=_0xe2ca();return _0x5f02=function(_0x5f02a6,_0x4b5207){_0x5f02a6=_0x5f02a6-0x10f;let _0x239770=_0xe2ca1[_0x5f02a6];return _0x239770;},_0x5f02(_0x59e995,_0x394307);}import{ButtonView as _0x577638,clickOutsideHandler as _0x1435c2,View as _0x59a4e5}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x5c48a8}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x511ecd}from'./controls/aichatpromptcapabilitiesview.js';function _0xe2ca(){const _0x1ea33a=['345246fUhqwE','_createModelUnavailableMessageView','focusPromptInput','setModel','_createLoaderView','focus','setWebSearch','setModelList','ck-ai-chat-controls__start-new-chat-button','setAddContextOptions','delegate','clearConversationContextItems','_createPromptInputView','closeSourceResourceBalloon','removeContextItem','814444UVYVnR','setConversationContext','setTemplate','agent','addContextItem','enableModelSelector','1793515LySypO','293142fNWITt','resetMessageInput','setContextItemLoading','sendUserMessage','_loaderView','isLoading','7506232tGFiTI','_modelUnavailableMessageView','setPlaceholderText','reset','_displayedModels','selectModel','change:isLoading','ck-hidden','isModelAvailable','bindTemplate','addContextButtonView','_createPromptCapabilitiesView','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','updateResourceState','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','contextResourcesSearchInputVisibleFrom','_promptInputView','isDisabled','abortPromptStream','9blsFvQ','1885331cGaVCz','find','disableModelSelector','_contextPanelView','startConversation','_handlePromptInputFocus','setIsUploadInProgress','form','272546zRFazH','_createContextPanelView','element','startsWith','set','setReasoning','clearConversationContextUI','clearCurrentContextItems','ck-ai-chat-controls-model-unavailable-message','bodyCollection','low','execute','clearPendingContextUI','setInputPlaceholder','populateSourceResourceBalloon','ck-ai-chat-controls','ck-ai-chat-controls-disabled','6uQJOyJ','div','toggleReasoning','toggleWebSearch','locale'];_0xe2ca=function(){return _0x1ea33a;};return _0xe2ca();}import{AIChatContextPanelView as _0x2f068d,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5af801}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4acebd}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x24ddd6}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x59a4e5{[_0x4dc13b(0x137)]=[];[_0x4dc13b(0x14c)];[_0x4dc13b(0x145)];[_0x4dc13b(0x142)];[_0x4dc13b(0x131)];[_0x4dc13b(0x134)];[_0x4dc13b(0x13f)];constructor(_0x899852,_0x43e96d){const _0x28ad0b=_0x4dc13b;super(_0x899852),this[_0x28ad0b(0x14c)]=this[_0x28ad0b(0x152)](_0x899852,{'bodyCollection':_0x43e96d[_0x28ad0b(0x15a)],'searchInputVisibleFrom':_0x43e96d[_0x28ad0b(0x144)]}),this[_0x28ad0b(0x145)]=this[_0x28ad0b(0x123)](_0x899852),this[_0x28ad0b(0x142)]=this[_0x28ad0b(0x13e)](_0x899852),this[_0x28ad0b(0x131)]=this[_0x28ad0b(0x11b)](_0x899852),this[_0x28ad0b(0x134)]=this[_0x28ad0b(0x118)](_0x899852),this[_0x28ad0b(0x13f)]=!0x1,this[_0x28ad0b(0x145)][_0x28ad0b(0x121)](_0x28ad0b(0x130))['to'](this),this[_0x28ad0b(0x131)][_0x28ad0b(0x121)](_0x28ad0b(0x147))['to'](this),this[_0x28ad0b(0x142)][_0x28ad0b(0x121)](_0x28ad0b(0x115))['to'](this),this[_0x28ad0b(0x142)][_0x28ad0b(0x121)](_0x28ad0b(0x114))['to'](this),this[_0x28ad0b(0x142)][_0x28ad0b(0x121)](_0x28ad0b(0x138))['to'](this),this[_0x28ad0b(0x14c)][_0x28ad0b(0x121)](..._0x5af801)['to'](this),this[_0x28ad0b(0x155)](_0x28ad0b(0x13b),!0x0),this[_0x28ad0b(0x155)](_0x28ad0b(0x146),!0x1);const _0xc23a09=this[_0x28ad0b(0x13c)];this[_0x28ad0b(0x128)]({'tag':_0x28ad0b(0x150),'attributes':{'class':['ck',_0x28ad0b(0x110),_0xc23a09['if'](_0x28ad0b(0x146),_0x28ad0b(0x111))]},'children':[{'tag':_0x28ad0b(0x113),'attributes':{'class':[_0xc23a09['if'](_0x28ad0b(0x132),_0x28ad0b(0x13a),_0x3cce52=>_0x3cce52||!this[_0x28ad0b(0x13b)]),_0xc23a09['if'](_0x28ad0b(0x13b),_0x28ad0b(0x13a),_0x2103b9=>!_0x2103b9||this[_0x28ad0b(0x132)])]},'children':[this[_0x28ad0b(0x14c)],this[_0x28ad0b(0x145)],this[_0x28ad0b(0x142)]]},{'tag':_0x28ad0b(0x113),'attributes':{'class':[_0xc23a09['if'](_0x28ad0b(0x132),_0x28ad0b(0x13a),_0x50119e=>!_0x50119e)]},'children':[this[_0x28ad0b(0x131)]]},{'tag':_0x28ad0b(0x113),'attributes':{'class':[_0xc23a09['if'](_0x28ad0b(0x13b),_0x28ad0b(0x13a),_0x448bc9=>_0x448bc9)]},'children':[this[_0x28ad0b(0x134)]]}]}),_0x1435c2({'emitter':this[_0x28ad0b(0x145)],'activator':()=>this[_0x28ad0b(0x132)],'contextElements':()=>[this[_0x28ad0b(0x153)]],'callback':()=>{const _0x42a273=_0x28ad0b;this[_0x42a273(0x13f)]=!0x1;}}),this['on'](_0x28ad0b(0x139),this[_0x28ad0b(0x14e)],{'priority':_0x28ad0b(0x15b)});}[_0x4dc13b(0x152)](_0x6f6287,_0x510b77){return new _0x2f068d(_0x6f6287,_0x510b77);}[_0x4dc13b(0x123)](_0x254573){const _0x1416aa=_0x4dc13b;return new _0x5c48a8(_0x254573,this[_0x1416aa(0x14c)][_0x1416aa(0x13d)]);}[_0x4dc13b(0x13e)](_0x195226){return new _0x511ecd(_0x195226);}[_0x4dc13b(0x11b)](_0x74ac6e){return new _0x4acebd(_0x74ac6e);}[_0x4dc13b(0x118)](_0x47bf20){const _0x26a18d=_0x4dc13b,_0x31a37f=new vs(_0x47bf20);return _0x31a37f[_0x26a18d(0x121)](_0x26a18d(0x14d))['to'](this),_0x31a37f;}[_0x4dc13b(0x14e)](_0x2f33bc,_0x210996,_0x4a4ec8){const _0x54e217=_0x4dc13b;_0x4a4ec8?this[_0x54e217(0x13f)]=!0x0:this[_0x54e217(0x13f)]&&this[_0x54e217(0x145)][_0x54e217(0x11c)]();}[_0x4dc13b(0x12a)](_0x5455d7,_0x91a10d){const _0xf340a3=_0x4dc13b;this[_0xf340a3(0x14c)][_0xf340a3(0x12a)](_0x5455d7,_0x91a10d);}[_0x4dc13b(0x125)](_0x3a881b){const _0x170a8f=_0x4dc13b;this[_0x170a8f(0x14c)][_0x170a8f(0x125)](_0x3a881b);}[_0x4dc13b(0x12f)](_0x3265f0,_0x227731){const _0x82683c=_0x4dc13b;this[_0x82683c(0x14c)][_0x82683c(0x12f)](_0x3265f0,_0x227731);}[_0x4dc13b(0x14f)](_0x6f0944){const _0x2377fd=_0x4dc13b;this[_0x2377fd(0x145)][_0x2377fd(0x14f)](_0x6f0944);}[_0x4dc13b(0x127)](_0x36d279){const _0x3b619a=_0x4dc13b;this[_0x3b619a(0x14c)][_0x3b619a(0x127)](_0x36d279);}[_0x4dc13b(0x15d)](){const _0x51b5c0=_0x4dc13b;this[_0x51b5c0(0x14c)][_0x51b5c0(0x158)]();}[_0x4dc13b(0x157)](){const _0x80b7eb=_0x4dc13b;this[_0x80b7eb(0x14c)][_0x80b7eb(0x122)]();}[_0x4dc13b(0x141)](_0x54697d,_0x4c6e20,_0x3c2209){const _0x99c2f3=_0x4dc13b;this[_0x99c2f3(0x14c)][_0x99c2f3(0x141)](_0x54697d,_0x4c6e20,_0x3c2209);}[_0x4dc13b(0x11d)](_0x5e4b62){const _0x582198=_0x4dc13b;this[_0x582198(0x142)][_0x582198(0x11d)](_0x5e4b62);}[_0x4dc13b(0x156)](_0x1a3156){const _0x4618eb=_0x4dc13b;this[_0x4618eb(0x142)][_0x4618eb(0x156)](_0x1a3156);}[_0x4dc13b(0x12e)](){const _0x2b01a6=_0x4dc13b;this[_0x2b01a6(0x145)][_0x2b01a6(0x136)]();}[_0x4dc13b(0x120)](_0x1a9d17){const _0x4f63dc=_0x4dc13b;this[_0x4f63dc(0x14c)][_0x4f63dc(0x120)](_0x1a9d17);}[_0x4dc13b(0x15e)](_0x6435e9){const _0x1d74fa=_0x4dc13b;this[_0x1d74fa(0x145)][_0x1d74fa(0x135)](_0x6435e9);}[_0x4dc13b(0x11e)](_0xb856b,_0x46ee8c){const _0x43db5b=_0x4dc13b;this[_0x43db5b(0x137)]=_0xb856b,this[_0x43db5b(0x142)][_0x43db5b(0x11e)](_0xb856b,_0x46ee8c);}[_0x4dc13b(0x11a)](_0x226a20){const _0x2fb333=_0x4dc13b;(_0x226a20?this[_0x2fb333(0x137)][_0x2fb333(0x14a)](_0x114082=>_0x114082['id']===_0x226a20['id']):null)?(this[_0x2fb333(0x13b)]=!0x0,this[_0x2fb333(0x142)][_0x2fb333(0x11a)](_0x226a20)):_0x226a20?.['id'][_0x2fb333(0x154)](_0x2fb333(0x129))?(this[_0x2fb333(0x13b)]=!0x0,this[_0x2fb333(0x142)][_0x2fb333(0x11a)](this[_0x2fb333(0x137)][0x0])):this[_0x2fb333(0x13b)]=!0x1;}[_0x4dc13b(0x12b)](){const _0x1c64a4=_0x4dc13b;this[_0x1c64a4(0x142)][_0x1c64a4(0x12b)]();}[_0x4dc13b(0x14b)](_0x2477ab){const _0x479f43=_0x4dc13b;this[_0x479f43(0x142)][_0x479f43(0x14b)](_0x2477ab);}[_0x4dc13b(0x10f)](_0x5c85c5,_0x20aed6,_0x39bbd0,_0x505e51){const _0x3c887e=_0x4dc13b;this[_0x3c887e(0x14c)][_0x3c887e(0x10f)](_0x5c85c5,_0x20aed6,_0x39bbd0,_0x505e51);}[_0x4dc13b(0x124)](_0x4c7750){const _0x21b315=_0x4dc13b;this[_0x21b315(0x14c)][_0x21b315(0x124)](_0x4c7750);}[_0x4dc13b(0x119)](){const _0x3dcc95=_0x4dc13b;this[_0x3dcc95(0x145)][_0x3dcc95(0x11c)]();}}class vs extends _0x59a4e5{constructor(_0x143ecb){const _0x1dee09=_0x4dc13b;super(_0x143ecb);const _0x3cbad0=new _0x577638(_0x143ecb);_0x3cbad0[_0x1dee09(0x155)]({'label':_0x24ddd6(this[_0x1dee09(0x116)],_0x1dee09(0x143)),'withText':!0x0,'class':[_0x1dee09(0x11f)],'tooltip':''}),_0x3cbad0[_0x1dee09(0x121)](_0x1dee09(0x15c))['to'](this,_0x1dee09(0x14d)),this[_0x1dee09(0x128)]({'tag':_0x1dee09(0x113),'attributes':{'class':['ck',_0x1dee09(0x159)]},'children':[{'tag':'p','children':[{'text':_0x24ddd6(this[_0x1dee09(0x116)],_0x1dee09(0x140))+'\x20'},_0x3cbad0]}]});}}
23
+ const _0x589bec=_0x1726;(function(_0x38d4d3,_0x3f9dd7){const _0x532159=_0x1726,_0x31c67b=_0x38d4d3();while(!![]){try{const _0x34d3cb=parseInt(_0x532159(0x218))/0x1*(-parseInt(_0x532159(0x1f7))/0x2)+parseInt(_0x532159(0x1f3))/0x3+parseInt(_0x532159(0x206))/0x4*(-parseInt(_0x532159(0x1de))/0x5)+-parseInt(_0x532159(0x1ee))/0x6*(parseInt(_0x532159(0x213))/0x7)+-parseInt(_0x532159(0x1d2))/0x8+-parseInt(_0x532159(0x208))/0x9*(-parseInt(_0x532159(0x216))/0xa)+-parseInt(_0x532159(0x1e7))/0xb*(-parseInt(_0x532159(0x1f5))/0xc);if(_0x34d3cb===_0x3f9dd7)break;else _0x31c67b['push'](_0x31c67b['shift']());}catch(_0xff7c1e){_0x31c67b['push'](_0x31c67b['shift']());}}}(_0x3cb7,0x9374f));import{ButtonView as _0x491f7f,clickOutsideHandler as _0x4b5afb,View as _0x1b6ddb}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4d7125}from'./controls/aichatpromptinputview.js';function _0x3cb7(){const _0x763121=['855996zXzkhf','setPlaceholderText','122670KhMpip','locale','div','updateResourceState','reset','removeContextItem','set','execute','ck-hidden','resetMessageInput','setModelList','7EDOGdd','ck-ai-chat-controls__start-new-chat-button','_modelUnavailableMessageView','660RDhdPo','toggleReasoning','43BnUeHf','isLoading','setAddContextOptions','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_displayedModels','focusPromptInput','agent','setContextItemLoading','addContextItem','find','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','populateSourceResourceBalloon','startsWith','1548616YKCqqE','bindTemplate','isModelAvailable','element','setIsUploadInProgress','closeSourceResourceBalloon','abortPromptStream','ck-ai-chat-controls','focus','clearConversationContextItems','bodyCollection','_createLoaderView','20KcNhrC','_createPromptInputView','ck-ai-chat-controls-model-unavailable-message','toggleWebSearch','clearConversationContextUI','setModel','setReasoning','setWebSearch','_createModelUnavailableMessageView','11YrnSmo','_promptCapabilitiesView','form','sendUserMessage','_shouldRestorePromptInputFocus','selectModel','delegate','487218vCkmKo','addContextButtonView','_createPromptCapabilitiesView','low','_contextPanelView','3020067RzpoeI','_createContextPanelView','1498668zLawej','contextResourcesSearchInputVisibleFrom','13786JrAIIL','setConversationContext','_promptInputView','_handlePromptInputFocus','clearCurrentContextItems','disableModelSelector','startConversation','_loaderView','setInputPlaceholder','clearPendingContextUI','enableModelSelector','change:isLoading','setTemplate','ck-ai-chat-controls-disabled','isDisabled'];_0x3cb7=function(){return _0x763121;};return _0x3cb7();}import{AIChatPromptCapabilitiesView as _0x134960}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1ae562,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x19e09b}from'./controls/aichatcontextpanelview.js';function _0x1726(_0x15cc67,_0x470ebe){const _0x3cb7cb=_0x3cb7();return _0x1726=function(_0x172662,_0x190850){_0x172662=_0x172662-0x1cc;let _0x48a1ee=_0x3cb7cb[_0x172662];return _0x48a1ee;},_0x1726(_0x15cc67,_0x470ebe);}import{AIChatControlsLoaderView as _0x1361a6}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x425536}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x1b6ddb{[_0x589bec(0x21c)]=[];[_0x589bec(0x1f2)];[_0x589bec(0x1f9)];[_0x589bec(0x1e8)];[_0x589bec(0x1fe)];[_0x589bec(0x215)];[_0x589bec(0x1eb)];constructor(_0x26aab3,_0x1778a3){const _0x10770a=_0x589bec;super(_0x26aab3),this[_0x10770a(0x1f2)]=this[_0x10770a(0x1f4)](_0x26aab3,{'bodyCollection':_0x1778a3[_0x10770a(0x1dc)],'searchInputVisibleFrom':_0x1778a3[_0x10770a(0x1f6)]}),this[_0x10770a(0x1f9)]=this[_0x10770a(0x1df)](_0x26aab3),this[_0x10770a(0x1e8)]=this[_0x10770a(0x1f0)](_0x26aab3),this[_0x10770a(0x1fe)]=this[_0x10770a(0x1dd)](_0x26aab3),this[_0x10770a(0x215)]=this[_0x10770a(0x1e6)](_0x26aab3),this[_0x10770a(0x1eb)]=!0x1,this[_0x10770a(0x1f9)][_0x10770a(0x1ed)](_0x10770a(0x1ea))['to'](this),this[_0x10770a(0x1fe)][_0x10770a(0x1ed)](_0x10770a(0x1d8))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x1e1))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x217))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x1ec))['to'](this),this[_0x10770a(0x1f2)][_0x10770a(0x1ed)](..._0x19e09b)['to'](this),this[_0x10770a(0x20e)](_0x10770a(0x1d4),!0x0),this[_0x10770a(0x20e)](_0x10770a(0x205),!0x1);const _0x5c19e8=this[_0x10770a(0x1d3)];this[_0x10770a(0x203)]({'tag':_0x10770a(0x1e9),'attributes':{'class':['ck',_0x10770a(0x1d9),_0x5c19e8['if'](_0x10770a(0x205),_0x10770a(0x204))]},'children':[{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x219),_0x10770a(0x210),_0x309014=>_0x309014||!this[_0x10770a(0x1d4)]),_0x5c19e8['if'](_0x10770a(0x1d4),_0x10770a(0x210),_0x49cd0a=>!_0x49cd0a||this[_0x10770a(0x219)])]},'children':[this[_0x10770a(0x1f2)],this[_0x10770a(0x1f9)],this[_0x10770a(0x1e8)]]},{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x219),_0x10770a(0x210),_0xab87cf=>!_0xab87cf)]},'children':[this[_0x10770a(0x1fe)]]},{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x1d4),_0x10770a(0x210),_0x38bc13=>_0x38bc13)]},'children':[this[_0x10770a(0x215)]]}]}),_0x4b5afb({'emitter':this[_0x10770a(0x1f9)],'activator':()=>this[_0x10770a(0x219)],'contextElements':()=>[this[_0x10770a(0x1d5)]],'callback':()=>{const _0x2bcd23=_0x10770a;this[_0x2bcd23(0x1eb)]=!0x1;}}),this['on'](_0x10770a(0x202),this[_0x10770a(0x1fa)],{'priority':_0x10770a(0x1f1)});}[_0x589bec(0x1f4)](_0x418694,_0x3160e3){return new _0x1ae562(_0x418694,_0x3160e3);}[_0x589bec(0x1df)](_0x15245a){const _0x36c7b8=_0x589bec;return new _0x4d7125(_0x15245a,this[_0x36c7b8(0x1f2)][_0x36c7b8(0x1ef)]);}[_0x589bec(0x1f0)](_0x134f0b){return new _0x134960(_0x134f0b);}[_0x589bec(0x1dd)](_0x182950){return new _0x1361a6(_0x182950);}[_0x589bec(0x1e6)](_0x46acf0){const _0x4b5d52=_0x589bec,_0x4bf262=new gs(_0x46acf0);return _0x4bf262[_0x4b5d52(0x1ed)](_0x4b5d52(0x1fd))['to'](this),_0x4bf262;}[_0x589bec(0x1fa)](_0x4a1ed6,_0x4715d3,_0x68fa4d){const _0x1eb8ef=_0x589bec;_0x68fa4d?this[_0x1eb8ef(0x1eb)]=!0x0:this[_0x1eb8ef(0x1eb)]&&this[_0x1eb8ef(0x1f9)][_0x1eb8ef(0x1da)]();}[_0x589bec(0x1cd)](_0x18418e,_0x855fd9){const _0x4c1c7f=_0x589bec;this[_0x4c1c7f(0x1f2)][_0x4c1c7f(0x1cd)](_0x18418e,_0x855fd9);}[_0x589bec(0x20d)](_0x3b38c7){const _0x2435f3=_0x589bec;this[_0x2435f3(0x1f2)][_0x2435f3(0x20d)](_0x3b38c7);}[_0x589bec(0x1cc)](_0x250422,_0x1e0a49){const _0x49ca49=_0x589bec;this[_0x49ca49(0x1f2)][_0x49ca49(0x1cc)](_0x250422,_0x1e0a49);}[_0x589bec(0x1d6)](_0x1a8efc){const _0xe35536=_0x589bec;this[_0xe35536(0x1f9)][_0xe35536(0x1d6)](_0x1a8efc);}[_0x589bec(0x1f8)](_0x5ade9f){const _0x439abf=_0x589bec;this[_0x439abf(0x1f2)][_0x439abf(0x1f8)](_0x5ade9f);}[_0x589bec(0x200)](){const _0x181580=_0x589bec;this[_0x181580(0x1f2)][_0x181580(0x1fb)]();}[_0x589bec(0x1e2)](){const _0x239015=_0x589bec;this[_0x239015(0x1f2)][_0x239015(0x1db)]();}[_0x589bec(0x20b)](_0x305b24,_0x171d96,_0x4c97e4){const _0x53c649=_0x589bec;this[_0x53c649(0x1f2)][_0x53c649(0x20b)](_0x305b24,_0x171d96,_0x4c97e4);}[_0x589bec(0x1e5)](_0x234482){const _0x4f98fe=_0x589bec;this[_0x4f98fe(0x1e8)][_0x4f98fe(0x1e5)](_0x234482);}[_0x589bec(0x1e4)](_0x510704){const _0x2f80a4=_0x589bec;this[_0x2f80a4(0x1e8)][_0x2f80a4(0x1e4)](_0x510704);}[_0x589bec(0x211)](){const _0x413dc7=_0x589bec;this[_0x413dc7(0x1f9)][_0x413dc7(0x20c)]();}[_0x589bec(0x21a)](_0x2709b5){const _0x1d5e3a=_0x589bec;this[_0x1d5e3a(0x1f2)][_0x1d5e3a(0x21a)](_0x2709b5);}[_0x589bec(0x1ff)](_0x195d86){const _0x1e11bd=_0x589bec;this[_0x1e11bd(0x1f9)][_0x1e11bd(0x207)](_0x195d86);}[_0x589bec(0x212)](_0x4ab3f4,_0x27a27e){const _0x1f43b4=_0x589bec;this[_0x1f43b4(0x21c)]=_0x4ab3f4,this[_0x1f43b4(0x1e8)][_0x1f43b4(0x212)](_0x4ab3f4,_0x27a27e);}[_0x589bec(0x1e3)](_0x3f35a0){const _0x3db612=_0x589bec;(_0x3f35a0?this[_0x3db612(0x21c)][_0x3db612(0x1ce)](_0x182e2b=>_0x182e2b['id']===_0x3f35a0['id']):null)?(this[_0x3db612(0x1d4)]=!0x0,this[_0x3db612(0x1e8)][_0x3db612(0x1e3)](_0x3f35a0)):_0x3f35a0?.['id'][_0x3db612(0x1d1)](_0x3db612(0x21e))?(this[_0x3db612(0x1d4)]=!0x0,this[_0x3db612(0x1e8)][_0x3db612(0x1e3)](this[_0x3db612(0x21c)][0x0])):this[_0x3db612(0x1d4)]=!0x1;}[_0x589bec(0x201)](){const _0x86b002=_0x589bec;this[_0x86b002(0x1e8)][_0x86b002(0x201)]();}[_0x589bec(0x1fc)](_0x86d45c){const _0x5ced35=_0x589bec;this[_0x5ced35(0x1e8)][_0x5ced35(0x1fc)](_0x86d45c);}[_0x589bec(0x1d0)](_0x3900c9,_0x3679fc,_0x2a3146,_0x10b511){const _0x312309=_0x589bec;this[_0x312309(0x1f2)][_0x312309(0x1d0)](_0x3900c9,_0x3679fc,_0x2a3146,_0x10b511);}[_0x589bec(0x1d7)](_0x2f0508){const _0x55073c=_0x589bec;this[_0x55073c(0x1f2)][_0x55073c(0x1d7)](_0x2f0508);}[_0x589bec(0x21d)](){const _0x4ba8dc=_0x589bec;this[_0x4ba8dc(0x1f9)][_0x4ba8dc(0x1da)]();}}class gs extends _0x1b6ddb{constructor(_0x1556e3){const _0x1ec0cb=_0x589bec;super(_0x1556e3);const _0x3f69cb=new _0x491f7f(_0x1556e3);_0x3f69cb[_0x1ec0cb(0x20e)]({'label':_0x425536(this[_0x1ec0cb(0x209)],_0x1ec0cb(0x1cf)),'withText':!0x0,'class':[_0x1ec0cb(0x214)],'tooltip':''}),_0x3f69cb[_0x1ec0cb(0x1ed)](_0x1ec0cb(0x20f))['to'](this,_0x1ec0cb(0x1fd)),this[_0x1ec0cb(0x203)]({'tag':_0x1ec0cb(0x20a),'attributes':{'class':['ck',_0x1ec0cb(0x1e0)]},'children':[{'tag':'p','children':[{'text':_0x425536(this[_0x1ec0cb(0x209)],_0x1ec0cb(0x21b))+'\x20'},_0x3f69cb]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ac673=_0x486b;(function(_0x2d3e45,_0x32e427){const _0x3c3d2e=_0x486b,_0x962029=_0x2d3e45();while(!![]){try{const _0xef66cf=-parseInt(_0x3c3d2e(0x183))/0x1*(parseInt(_0x3c3d2e(0x1a0))/0x2)+-parseInt(_0x3c3d2e(0x16d))/0x3+parseInt(_0x3c3d2e(0x16a))/0x4*(-parseInt(_0x3c3d2e(0x16f))/0x5)+-parseInt(_0x3c3d2e(0x16b))/0x6*(parseInt(_0x3c3d2e(0x15c))/0x7)+-parseInt(_0x3c3d2e(0x160))/0x8+-parseInt(_0x3c3d2e(0x18c))/0x9+parseInt(_0x3c3d2e(0x18b))/0xa;if(_0xef66cf===_0x32e427)break;else _0x962029['push'](_0x962029['shift']());}catch(_0x2a7fc5){_0x962029['push'](_0x962029['shift']());}}}(_0x5ed3,0xee348));function _0x486b(_0x425e0e,_0x516708){const _0x5ed331=_0x5ed3();return _0x486b=function(_0x486b47,_0x2e3e6b){_0x486b47=_0x486b47-0x150;let _0x133adb=_0x5ed331[_0x486b47];return _0x133adb;},_0x486b(_0x425e0e,_0x516708);}import{CKEditorError as _0x2ff4a0,logWarning as _0x363779,scrollViewportToShowTarget as _0x51b3fc}from'ckeditor5/src/utils.js';import{View as _0x2bb2e5}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5187c9}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2cfeb0}from'./feed/aichatfeedsuggestionitemview.js';function _0x5ed3(){const _0x2d0303=['updateSuggestionItem','updateSources','setLoadingMessage','stopAutoScroll','user-message','markItemAsDone','isTrackChangesOn','locale','ck-hidden','remove','updateSuggestionPartState','find','scrollToSuggestion','_createFeedItems','4ZGRVHT','extendTemplate','isLoadingSkeletonVisible','delegate','getItemIds','updateContent','updateWebSources','set','scrollManager','ck-ai-chat__loader-text','isPending','includes','aiFeed','28RiaekA','start','ai-chat-feed-view-item-not-a-suggestion-item','updatePartState','13345208IXpBmM','div','isVisible','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getPartView','_createSkeletonLoader','ck-ai-chat__feed__items','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','bind','element','1844FuWqRF','2201082VjyVRj','stop','1913952WzKzUC','_setupTemplate','16945paErNk','_createFeedLoader','ck-ai-chat__feed','bindTemplate','ck-ai-chat__loader','_bodyCollection','render','children','loadingMessage','removeItem','add','createCollection','span','interaction-header','map','ai-reply','toggleLoadingSkeleton','markAsDone','addItem','clear','750031pKhNlx','updateReplyItem','_createTemplateChildren','ai-suggestion-reply','_createLoaderChildren','destroy','setTemplate','ai-chat-feed-view-item-not-a-reply-item','85613010DEjhmi','6747291grkOId','ai-chat-feed-view-item-not-found','options','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getItemById','startAutoScroll'];_0x5ed3=function(){return _0x2d0303;};return _0x5ed3();}import{AIChatFeedReplyItemView as _0x3cb136}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4ee865}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x18e2f8}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x11c892}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x5c5a4f}from'../utils/scrollmanager.js';import{AISkeletonView as _0x334cb7,SKELETON_DEFINITIONS as _0x138556}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x96a9b0}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x2bb2e5{[_0x2ac673(0x176)];[_0x2ac673(0x157)];[_0x2ac673(0x174)];constructor(_0x4f43f4,_0x41ff95){const _0x2713a2=_0x2ac673;super(_0x4f43f4),this[_0x2713a2(0x174)]=_0x41ff95,this[_0x2713a2(0x156)](_0x2713a2(0x159),!0x1),this[_0x2713a2(0x156)](_0x2713a2(0x177),''),this[_0x2713a2(0x156)](_0x2713a2(0x151),!0x1),this[_0x2713a2(0x156)](_0x2713a2(0x198),!0x1),this[_0x2713a2(0x176)]=this[_0x2713a2(0x17a)](),this[_0x2713a2(0x176)][_0x2713a2(0x152)](..._0x5187c9)['to'](this),this[_0x2713a2(0x16e)]();}[_0x2ac673(0x175)](){const _0x8a1279=_0x2ac673;super[_0x8a1279(0x175)](),this[_0x8a1279(0x157)]=new _0x5c5a4f(this[_0x8a1279(0x169)]);}[_0x2ac673(0x188)](){const _0x142585=_0x2ac673;super[_0x142585(0x188)](),this[_0x142585(0x157)][_0x142585(0x188)]();}[_0x2ac673(0x182)](){const _0x3d5da2=_0x2ac673;this[_0x3d5da2(0x176)][_0x3d5da2(0x182)]();}[_0x2ac673(0x181)](_0x34e957,_0x308e7b){const _0x1ccfec=_0x2ac673;let _0x5177a7;_0x1ccfec(0x17e)===_0x34e957?_0x5177a7=new _0x3cb136(this[_0x1ccfec(0x199)],_0x308e7b):_0x1ccfec(0x186)===_0x34e957?(_0x5177a7=new _0x2cfeb0(this[_0x1ccfec(0x199)],_0x308e7b),_0x5177a7[_0x1ccfec(0x168)](_0x1ccfec(0x198))['to'](this,_0x1ccfec(0x198))):_0x5177a7=_0x1ccfec(0x196)===_0x34e957?new _0x4ee865(this[_0x1ccfec(0x199)],_0x308e7b,this[_0x1ccfec(0x174)]):_0x1ccfec(0x17c)===_0x34e957?new _0x11c892(this[_0x1ccfec(0x199)],_0x308e7b):new _0x18e2f8(_0x308e7b),this[_0x1ccfec(0x176)][_0x1ccfec(0x179)](_0x5177a7);}async[_0x2ac673(0x184)]({id:_0xed506d,parsedContent:_0x5eb03d,renderingStrategy:_0x151438,abortSignal:_0x2964eb}){const _0x38f932=_0x2ac673,_0x1bb21a=this[_0x38f932(0x190)](_0xed506d);if(!(_0x1bb21a instanceof _0x3cb136))throw new _0x2ff4a0(_0x38f932(0x18a),null,{'itemView':_0x1bb21a,'id':_0xed506d,'parsedContent':_0x5eb03d});await _0x1bb21a[_0x38f932(0x154)]({'parsedContent':_0x5eb03d,'renderingStrategy':_0x151438,'abortSignal':_0x2964eb});}async[_0x2ac673(0x155)](_0x4a4bae,_0x423c0c){const _0x93e34e=_0x2ac673,_0x46a643=this[_0x93e34e(0x190)](_0x4a4bae);if(_0x46a643 instanceof _0x2cfeb0)_0x46a643[_0x93e34e(0x193)](_0x423c0c);else{if(!(_0x46a643 instanceof _0x3cb136))throw new _0x2ff4a0(_0x93e34e(0x163),null,{'itemView':_0x46a643,'id':_0x4a4bae,'sources':_0x423c0c});_0x46a643[_0x93e34e(0x193)](_0x423c0c);}}async[_0x2ac673(0x192)]({id:_0x41f374,parts:_0x107d13,renderingStrategy:_0x158a9e,abortSignal:_0x522a8d}){const _0x2e5470=_0x2ac673,_0x10f2c4=this[_0x2e5470(0x190)](_0x41f374);if(!(_0x10f2c4 instanceof _0x2cfeb0))throw new _0x2ff4a0(_0x2e5470(0x15e),null,{'itemView':_0x10f2c4,'id':_0x41f374,'parts':_0x107d13});await _0x10f2c4[_0x2e5470(0x154)]({'parts':_0x107d13,'renderingStrategy':_0x158a9e,'abortSignal':_0x522a8d});}[_0x2ac673(0x19c)]({id:_0x3245d8,index:_0x5dd035,state:_0x102334}){const _0x25bc45=_0x2ac673,_0x9a2f0d=this[_0x25bc45(0x190)](_0x3245d8);if(!(_0x9a2f0d instanceof _0x2cfeb0))throw new _0x2ff4a0(_0x25bc45(0x15e),this,{'id':_0x3245d8});_0x9a2f0d[_0x25bc45(0x15f)](_0x5dd035,_0x102334);}[_0x2ac673(0x197)](_0x13c27a){const _0x441b8a=_0x2ac673;this[_0x441b8a(0x190)](_0x13c27a)[_0x441b8a(0x180)]();}[_0x2ac673(0x153)](){const _0x32ccf8=_0x2ac673;return this[_0x32ccf8(0x176)][_0x32ccf8(0x17d)](_0x1b1837=>_0x1b1837[_0x32ccf8(0x18e)]['id']);}[_0x2ac673(0x178)](_0x105f48){const _0x4c1523=_0x2ac673;this[_0x4c1523(0x176)][_0x4c1523(0x19b)](this[_0x4c1523(0x190)](_0x105f48));}[_0x2ac673(0x19e)](_0x52fbf1,_0x48820c){const _0x4d8035=_0x2ac673,_0x52ec00=this[_0x4d8035(0x190)](_0x52fbf1);if(!(_0x52ec00 instanceof _0x2cfeb0))return void _0x363779(_0x4d8035(0x18f),{'replyId':_0x52fbf1,'partIndex':_0x48820c});const _0x4d0805=_0x52ec00[_0x4d8035(0x164)](_0x48820c);_0x4d0805?_0x51b3fc({'target':_0x4d0805[_0x4d8035(0x169)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x363779(_0x4d8035(0x167),{'replyId':_0x52fbf1,'partIndex':_0x48820c});}[_0x2ac673(0x16e)](){const _0x41348d=_0x2ac673;this[_0x41348d(0x189)]({'tag':_0x41348d(0x161),'attributes':{'class':['ck',_0x41348d(0x171)]},'children':this[_0x41348d(0x185)]()});}[_0x2ac673(0x185)](){const _0x1f4ede=_0x2ac673,_0x4838fa=this[_0x1f4ede(0x165)]();return[this[_0x1f4ede(0x19f)](),_0x4838fa,this[_0x1f4ede(0x170)]()];}[_0x2ac673(0x165)](){const _0x173c03=_0x2ac673,_0x5698a7=new _0x334cb7(this[_0x173c03(0x199)],_0x138556[_0x173c03(0x15b)]);return _0x5698a7[_0x173c03(0x150)]({'attributes':{'class':[this[_0x173c03(0x172)]['if'](_0x173c03(0x151),_0x173c03(0x19a),_0x8b9018=>!_0x8b9018)]}}),_0x5698a7;}[_0x2ac673(0x19f)](){const _0x1e5757=_0x2ac673,_0x33e235=new _0x2bb2e5(this[_0x1e5757(0x199)]);return _0x33e235[_0x1e5757(0x189)]({'tag':_0x1e5757(0x161),'attributes':{'class':['ck',_0x1e5757(0x166),this[_0x1e5757(0x172)]['if'](_0x1e5757(0x151),_0x1e5757(0x19a))]},'children':this[_0x1e5757(0x176)]}),_0x33e235;}[_0x2ac673(0x170)](){const _0x2c4787=_0x2ac673,_0x4f66d1=new _0x2bb2e5(this[_0x2c4787(0x199)]);return _0x4f66d1[_0x2c4787(0x189)]({'tag':_0x2c4787(0x161),'attributes':{'class':['ck',_0x2c4787(0x173),this[_0x2c4787(0x172)]['if'](_0x2c4787(0x159),_0x2c4787(0x19a),_0x27f41e=>!_0x27f41e)]},'children':this[_0x2c4787(0x187)]()}),_0x4f66d1;}[_0x2ac673(0x187)](){const _0x45d6f4=_0x2ac673,_0x5a6416=new _0x96a9b0();return _0x5a6416[_0x45d6f4(0x162)]=!0x0,[_0x5a6416,{'tag':_0x45d6f4(0x17b),'attributes':{'class':['ck',_0x45d6f4(0x158)]},'children':[{'text':this[_0x45d6f4(0x172)]['to'](_0x45d6f4(0x177))}]}];}[_0x2ac673(0x190)](_0x3d1da7){const _0x469d66=_0x2ac673,_0x74e325=this[_0x469d66(0x176)][_0x469d66(0x19d)](_0x5684ec=>_0x5684ec[_0x469d66(0x18e)]['id'][_0x469d66(0x15a)](_0x3d1da7));if(!_0x74e325)throw new _0x2ff4a0(_0x469d66(0x18d),this,{'id':_0x3d1da7});return _0x74e325;}[_0x2ac673(0x194)](_0x422250){const _0x490171=_0x2ac673;this[_0x490171(0x156)](_0x490171(0x177),_0x422250);}[_0x2ac673(0x17f)](_0x21360a){const _0x284cdf=_0x2ac673;this[_0x284cdf(0x156)](_0x284cdf(0x151),_0x21360a);}[_0x2ac673(0x191)](){const _0x2c6b5f=_0x2ac673;this[_0x2c6b5f(0x157)][_0x2c6b5f(0x15d)]();}[_0x2ac673(0x195)](){const _0x2e6e55=_0x2ac673;this[_0x2e6e55(0x157)][_0x2e6e55(0x16c)]();}}
23
+ const _0x543a98=_0x41cd;(function(_0x586006,_0x537aca){const _0x347540=_0x41cd,_0x93603c=_0x586006();while(!![]){try{const _0x5aeeec=parseInt(_0x347540(0x13a))/0x1+parseInt(_0x347540(0x150))/0x2+parseInt(_0x347540(0x137))/0x3+-parseInt(_0x347540(0x12d))/0x4*(parseInt(_0x347540(0x10a))/0x5)+parseInt(_0x347540(0x14b))/0x6+-parseInt(_0x347540(0x107))/0x7+parseInt(_0x347540(0x14d))/0x8*(-parseInt(_0x347540(0x136))/0x9);if(_0x5aeeec===_0x537aca)break;else _0x93603c['push'](_0x93603c['shift']());}catch(_0x3defde){_0x93603c['push'](_0x93603c['shift']());}}}(_0x56b0,0xb524a));import{CKEditorError as _0x4f2416,logWarning as _0x5d26b5,scrollViewportToShowTarget as _0x2a20fc}from'ckeditor5/src/utils.js';function _0x56b0(){const _0x39e765=['start','isTrackChangesOn','ai-chat-feed-view-item-not-a-reply-item','markAsDone','addItem','aiFeed','_createTemplateChildren','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionItem','clear','getItemIds','ck-hidden','markItemAsDone','bindTemplate','options','5194104neVHnk','ai-reply','272LQszln','setLoadingMessage','setTemplate','831260FVugrA','locale','remove','stop','isVisible','updateSources','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','8144773gdLRUg','find','interaction-header','4465MhrlBk','updateSuggestionPartState','destroy','add','_createSkeletonLoader','getItemById','removeItem','user-message','scrollManager','element','updateWebSources','startAutoScroll','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-found','getPartView','loadingMessage','updatePartState','_bodyCollection','ck-ai-chat__loader','children','_setupTemplate','_createFeedItems','map','updateContent','toggleLoadingSkeleton','includes','scrollToSuggestion','bind','stopAutoScroll','delegate','updateReplyItem','createCollection','_createFeedLoader','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','render','3532RkGRIz','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','div','isPending','_createLoaderChildren','ai-suggestion-reply','extendTemplate','ck-ai-chat__feed__items','131283MfjjXD','2155881wcMiaA','span','ck-ai-chat__feed','1190037fvwmjX','ck-ai-chat__loader-text'];_0x56b0=function(){return _0x39e765;};return _0x56b0();}import{View as _0x31f453}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xdd73e6}from'../utils/eventnames.js';function _0x41cd(_0x5a9a00,_0x42fff9){const _0x56b034=_0x56b0();return _0x41cd=function(_0x41cd6d,_0x547c4d){_0x41cd6d=_0x41cd6d-0x107;let _0x1db732=_0x56b034[_0x41cd6d];return _0x1db732;},_0x41cd(_0x5a9a00,_0x42fff9);}import{AIChatFeedSuggestionItemView as _0x181727}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x4ae46c}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4861d1}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5cf404}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x59ecd5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3fb8df}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5ca3d8,SKELETON_DEFINITIONS as _0x4c8f45}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x436d94}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x31f453{[_0x543a98(0x11d)];[_0x543a98(0x112)];[_0x543a98(0x11b)];constructor(_0x586ec9,_0x38822d){const _0x39e14b=_0x543a98;super(_0x586ec9),this[_0x39e14b(0x11b)]=_0x38822d,this[_0x39e14b(0x12e)](_0x39e14b(0x131),!0x1),this[_0x39e14b(0x12e)](_0x39e14b(0x119),''),this[_0x39e14b(0x12e)](_0x39e14b(0x116),!0x1),this[_0x39e14b(0x12e)](_0x39e14b(0x13d),!0x1),this[_0x39e14b(0x11d)]=this[_0x39e14b(0x129)](),this[_0x39e14b(0x11d)][_0x39e14b(0x127)](..._0xdd73e6)['to'](this),this[_0x39e14b(0x11e)]();}[_0x543a98(0x12c)](){const _0x1e1117=_0x543a98;super[_0x1e1117(0x12c)](),this[_0x1e1117(0x112)]=new _0x3fb8df(this[_0x1e1117(0x113)]);}[_0x543a98(0x10c)](){const _0x372d4c=_0x543a98;super[_0x372d4c(0x10c)](),this[_0x372d4c(0x112)][_0x372d4c(0x10c)]();}[_0x543a98(0x145)](){const _0x49d091=_0x543a98;this[_0x49d091(0x11d)][_0x49d091(0x145)]();}[_0x543a98(0x140)](_0x1c54b,_0x254c01){const _0x1d9131=_0x543a98;let _0x1b9121;_0x1d9131(0x14c)===_0x1c54b?_0x1b9121=new _0x4ae46c(this[_0x1d9131(0x151)],_0x254c01):_0x1d9131(0x133)===_0x1c54b?(_0x1b9121=new _0x181727(this[_0x1d9131(0x151)],_0x254c01),_0x1b9121[_0x1d9131(0x125)](_0x1d9131(0x13d))['to'](this,_0x1d9131(0x13d))):_0x1b9121=_0x1d9131(0x111)===_0x1c54b?new _0x4861d1(this[_0x1d9131(0x151)],_0x254c01,this[_0x1d9131(0x11b)]):_0x1d9131(0x109)===_0x1c54b?new _0x59ecd5(this[_0x1d9131(0x151)],_0x254c01):new _0x5cf404(_0x254c01),this[_0x1d9131(0x11d)][_0x1d9131(0x10d)](_0x1b9121);}async[_0x543a98(0x128)]({id:_0x49cddc,parsedContent:_0x39c66a,renderingStrategy:_0x5799e2,abortSignal:_0x24f6e5}){const _0x2e0859=_0x543a98,_0x533742=this[_0x2e0859(0x10f)](_0x49cddc);if(!(_0x533742 instanceof _0x4ae46c))throw new _0x4f2416(_0x2e0859(0x13e),null,{'itemView':_0x533742,'id':_0x49cddc,'parsedContent':_0x39c66a});await _0x533742[_0x2e0859(0x121)]({'parsedContent':_0x39c66a,'renderingStrategy':_0x5799e2,'abortSignal':_0x24f6e5});}async[_0x543a98(0x114)](_0x27821a,_0x1c6f82){const _0x213e21=_0x543a98,_0x4eb787=this[_0x213e21(0x10f)](_0x27821a);if(_0x4eb787 instanceof _0x181727)_0x4eb787[_0x213e21(0x155)](_0x1c6f82);else{if(!(_0x4eb787 instanceof _0x4ae46c))throw new _0x4f2416(_0x213e21(0x156),null,{'itemView':_0x4eb787,'id':_0x27821a,'sources':_0x1c6f82});_0x4eb787[_0x213e21(0x155)](_0x1c6f82);}}async[_0x543a98(0x144)]({id:_0x41a67a,parts:_0x22e67c,renderingStrategy:_0xe74a1c,abortSignal:_0x510372}){const _0x434c21=_0x543a98,_0x54da29=this[_0x434c21(0x10f)](_0x41a67a);if(!(_0x54da29 instanceof _0x181727))throw new _0x4f2416(_0x434c21(0x143),null,{'itemView':_0x54da29,'id':_0x41a67a,'parts':_0x22e67c});await _0x54da29[_0x434c21(0x121)]({'parts':_0x22e67c,'renderingStrategy':_0xe74a1c,'abortSignal':_0x510372});}[_0x543a98(0x10b)]({id:_0x5c8686,index:_0x19216f,state:_0x543d02}){const _0x95f0ec=_0x543a98,_0x533cff=this[_0x95f0ec(0x10f)](_0x5c8686);if(!(_0x533cff instanceof _0x181727))throw new _0x4f2416(_0x95f0ec(0x143),this,{'id':_0x5c8686});_0x533cff[_0x95f0ec(0x11a)](_0x19216f,_0x543d02);}[_0x543a98(0x148)](_0x21e7d7){const _0x41651a=_0x543a98;this[_0x41651a(0x10f)](_0x21e7d7)[_0x41651a(0x13f)]();}[_0x543a98(0x146)](){const _0x44890c=_0x543a98;return this[_0x44890c(0x11d)][_0x44890c(0x120)](_0x1f8716=>_0x1f8716[_0x44890c(0x14a)]['id']);}[_0x543a98(0x110)](_0x19fc7d){const _0xce94f3=_0x543a98;this[_0xce94f3(0x11d)][_0xce94f3(0x152)](this[_0xce94f3(0x10f)](_0x19fc7d));}[_0x543a98(0x124)](_0x2c7e3c,_0x366dc2){const _0x460208=_0x543a98,_0x1ec90a=this[_0x460208(0x10f)](_0x2c7e3c);if(!(_0x1ec90a instanceof _0x181727))return void _0x5d26b5(_0x460208(0x12f),{'replyId':_0x2c7e3c,'partIndex':_0x366dc2});const _0x541d6f=_0x1ec90a[_0x460208(0x118)](_0x366dc2);_0x541d6f?_0x2a20fc({'target':_0x541d6f[_0x460208(0x113)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5d26b5(_0x460208(0x12b),{'replyId':_0x2c7e3c,'partIndex':_0x366dc2});}[_0x543a98(0x11e)](){const _0x47c93e=_0x543a98;this[_0x47c93e(0x14f)]({'tag':_0x47c93e(0x130),'attributes':{'class':['ck',_0x47c93e(0x139)]},'children':this[_0x47c93e(0x142)]()});}[_0x543a98(0x142)](){const _0xa1814=_0x543a98,_0x5101ca=this[_0xa1814(0x10e)]();return[this[_0xa1814(0x11f)](),_0x5101ca,this[_0xa1814(0x12a)]()];}[_0x543a98(0x10e)](){const _0x557cc8=_0x543a98,_0x3fd7df=new _0x5ca3d8(this[_0x557cc8(0x151)],_0x4c8f45[_0x557cc8(0x141)]);return _0x3fd7df[_0x557cc8(0x134)]({'attributes':{'class':[this[_0x557cc8(0x149)]['if'](_0x557cc8(0x116),_0x557cc8(0x147),_0x16e8a8=>!_0x16e8a8)]}}),_0x3fd7df;}[_0x543a98(0x11f)](){const _0x1c8ebc=_0x543a98,_0x592830=new _0x31f453(this[_0x1c8ebc(0x151)]);return _0x592830[_0x1c8ebc(0x14f)]({'tag':_0x1c8ebc(0x130),'attributes':{'class':['ck',_0x1c8ebc(0x135),this[_0x1c8ebc(0x149)]['if'](_0x1c8ebc(0x116),_0x1c8ebc(0x147))]},'children':this[_0x1c8ebc(0x11d)]}),_0x592830;}[_0x543a98(0x12a)](){const _0x3c336f=_0x543a98,_0x5d76b6=new _0x31f453(this[_0x3c336f(0x151)]);return _0x5d76b6[_0x3c336f(0x14f)]({'tag':_0x3c336f(0x130),'attributes':{'class':['ck',_0x3c336f(0x11c),this[_0x3c336f(0x149)]['if'](_0x3c336f(0x131),_0x3c336f(0x147),_0x11efe6=>!_0x11efe6)]},'children':this[_0x3c336f(0x132)]()}),_0x5d76b6;}[_0x543a98(0x132)](){const _0x2eb358=_0x543a98,_0x3f9cb4=new _0x436d94();return _0x3f9cb4[_0x2eb358(0x154)]=!0x0,[_0x3f9cb4,{'tag':_0x2eb358(0x138),'attributes':{'class':['ck',_0x2eb358(0x13b)]},'children':[{'text':this[_0x2eb358(0x149)]['to'](_0x2eb358(0x119))}]}];}[_0x543a98(0x10f)](_0x139ad6){const _0x42ab78=_0x543a98,_0x274849=this[_0x42ab78(0x11d)][_0x42ab78(0x108)](_0x1d844e=>_0x1d844e[_0x42ab78(0x14a)]['id'][_0x42ab78(0x123)](_0x139ad6));if(!_0x274849)throw new _0x4f2416(_0x42ab78(0x117),this,{'id':_0x139ad6});return _0x274849;}[_0x543a98(0x14e)](_0x1453b1){const _0x53a364=_0x543a98;this[_0x53a364(0x12e)](_0x53a364(0x119),_0x1453b1);}[_0x543a98(0x122)](_0x17e3c2){const _0x437b9e=_0x543a98;this[_0x437b9e(0x12e)](_0x437b9e(0x116),_0x17e3c2);}[_0x543a98(0x115)](){const _0x29087e=_0x543a98;this[_0x29087e(0x112)][_0x29087e(0x13c)]();}[_0x543a98(0x126)](){const _0x343cfe=_0x543a98;this[_0x343cfe(0x112)][_0x343cfe(0x153)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47d137=_0x1ad8;(function(_0x1f8e60,_0x209131){const _0x4cceda=_0x1ad8,_0x45028c=_0x1f8e60();while(!![]){try{const _0x2f43e1=parseInt(_0x4cceda(0xd3))/0x1+parseInt(_0x4cceda(0xe6))/0x2*(parseInt(_0x4cceda(0xd0))/0x3)+parseInt(_0x4cceda(0xd1))/0x4+-parseInt(_0x4cceda(0xe4))/0x5*(parseInt(_0x4cceda(0xdb))/0x6)+parseInt(_0x4cceda(0xe1))/0x7+parseInt(_0x4cceda(0xd5))/0x8+-parseInt(_0x4cceda(0xe5))/0x9*(parseInt(_0x4cceda(0xd2))/0xa);if(_0x2f43e1===_0x209131)break;else _0x45028c['push'](_0x45028c['shift']());}catch(_0x2d23ca){_0x45028c['push'](_0x45028c['shift']());}}}(_0x3958,0xe7dd0));import{ButtonView as _0x2a44ff,FormHeaderView as _0x549a3f}from'ckeditor5/src/ui.js';import{IconPlus as _0x618c52,IconAIChat as _0x514d7c}from'ckeditor5/src/icons.js';function _0x1ad8(_0x9b5b5d,_0x5a4647){const _0x39584b=_0x3958();return _0x1ad8=function(_0x1ad8e9,_0x4705da){_0x1ad8e9=_0x1ad8e9-0xce;let _0x293ae4=_0x39584b[_0x1ad8e9];return _0x293ae4;},_0x1ad8(_0x9b5b5d,_0x5a4647);}import{getTranslation as _0x232e28}from'../../aicore/utils/common-translations.js';function _0x3958(){const _0x499e6f=['resizeButton','fire','conversationStartButton','set','570axyQkE','AI_CHAT_LABEL_NEW_CHAT','children','locale','isMaximized','_createStartConversationButton','117866aeBQET','ck-ai-header\x20ck-ai-header_chat','ck-ai-chat__start-conversation','22885CwQfWq','27rjEfDw','48asEVbR','AI_CHAT_HEADING','execute','125310elHKQz','1488444HqSyxE','5144160ngTqhn','1004418ESzhnJ','startConversation','4255424FjqCvO','add'];_0x3958=function(){return _0x499e6f;};return _0x3958();}import{createResizeButton as _0x497276}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x549a3f{[_0x47d137(0xd9)];[_0x47d137(0xd7)];constructor(_0x308181,_0x59afbb){const _0x33fa09=_0x47d137;super(_0x308181,{'label':_0x232e28(_0x308181,_0x33fa09(0xce)),'class':_0x33fa09(0xe2),'icon':_0x514d7c}),this[_0x33fa09(0xda)](_0x33fa09(0xdf),!0x1),this[_0x33fa09(0xd9)]=this[_0x33fa09(0xe0)](_0x308181),this[_0x33fa09(0xdd)][_0x33fa09(0xd6)](this[_0x33fa09(0xd9)]),_0x59afbb&&(this[_0x33fa09(0xd7)]=_0x497276(_0x308181,this),this[_0x33fa09(0xdd)][_0x33fa09(0xd6)](this[_0x33fa09(0xd7)]));}[_0x47d137(0xe0)](_0xafefc5){const _0x1d7a9e=_0x47d137,_0x408776=new _0x2a44ff(_0xafefc5);return _0x408776[_0x1d7a9e(0xda)]({'label':_0x232e28(this[_0x1d7a9e(0xde)],_0x1d7a9e(0xdc)),'withText':!0x0,'icon':_0x618c52,'class':_0x1d7a9e(0xe3)}),_0x408776['on'](_0x1d7a9e(0xcf),()=>{const _0x36ba7e=_0x1d7a9e;this[_0x36ba7e(0xd8)](_0x36ba7e(0xd4));}),_0x408776;}}
23
+ const _0x3970fc=_0x16ad;(function(_0x530b24,_0x59c7a5){const _0x397e8d=_0x16ad,_0x1a7399=_0x530b24();while(!![]){try{const _0x1e4821=-parseInt(_0x397e8d(0x1cf))/0x1*(parseInt(_0x397e8d(0x1c8))/0x2)+parseInt(_0x397e8d(0x1c3))/0x3+-parseInt(_0x397e8d(0x1c4))/0x4*(-parseInt(_0x397e8d(0x1c5))/0x5)+-parseInt(_0x397e8d(0x1d6))/0x6*(-parseInt(_0x397e8d(0x1d2))/0x7)+-parseInt(_0x397e8d(0x1c7))/0x8*(parseInt(_0x397e8d(0x1ce))/0x9)+-parseInt(_0x397e8d(0x1c9))/0xa*(parseInt(_0x397e8d(0x1ca))/0xb)+parseInt(_0x397e8d(0x1c2))/0xc;if(_0x1e4821===_0x59c7a5)break;else _0x1a7399['push'](_0x1a7399['shift']());}catch(_0x1d81b8){_0x1a7399['push'](_0x1a7399['shift']());}}}(_0x4079,0x95743));import{ButtonView as _0x36663c,FormHeaderView as _0x591679}from'ckeditor5/src/ui.js';function _0x4079(){const _0x212acf=['1275528qwkxZY','358196azxQYV','25SJmGjN','children','2342704LHugGw','1118462ypVCKk','160CyUYxN','799557cstNVt','execute','set','ck-ai-chat__start-conversation','36vFykJo','1OBZRdh','startConversation','AI_CHAT_LABEL_NEW_CHAT','1995fbhekk','add','AI_CHAT_HEADING','isMaximized','7374JdrhMb','fire','ck-ai-header\x20ck-ai-header_chat','resizeButton','conversationStartButton','_createStartConversationButton','locale','27390624AwJqDD'];_0x4079=function(){return _0x212acf;};return _0x4079();}import{IconPlus as _0x8e7d13,IconAIChat as _0x1fc793}from'ckeditor5/src/icons.js';import{getTranslation as _0x25fd05}from'../../aicore/utils/common-translations.js';function _0x16ad(_0x577bba,_0x116256){const _0x40790c=_0x4079();return _0x16ad=function(_0x16add5,_0x1a50a2){_0x16add5=_0x16add5-0x1be;let _0x218800=_0x40790c[_0x16add5];return _0x218800;},_0x16ad(_0x577bba,_0x116256);}import{createResizeButton as _0x13571c}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x591679{[_0x3970fc(0x1bf)];[_0x3970fc(0x1be)];constructor(_0x2186ad,_0x3039d5){const _0x2c53da=_0x3970fc;super(_0x2186ad,{'label':_0x25fd05(_0x2186ad,_0x2c53da(0x1d4)),'class':_0x2c53da(0x1d8),'icon':_0x1fc793}),this[_0x2c53da(0x1cc)](_0x2c53da(0x1d5),!0x1),this[_0x2c53da(0x1bf)]=this[_0x2c53da(0x1c0)](_0x2186ad),this[_0x2c53da(0x1c6)][_0x2c53da(0x1d3)](this[_0x2c53da(0x1bf)]),_0x3039d5&&(this[_0x2c53da(0x1be)]=_0x13571c(_0x2186ad,this),this[_0x2c53da(0x1c6)][_0x2c53da(0x1d3)](this[_0x2c53da(0x1be)]));}[_0x3970fc(0x1c0)](_0x2fbf30){const _0x1f07f5=_0x3970fc,_0x818856=new _0x36663c(_0x2fbf30);return _0x818856[_0x1f07f5(0x1cc)]({'label':_0x25fd05(this[_0x1f07f5(0x1c1)],_0x1f07f5(0x1d1)),'withText':!0x0,'icon':_0x8e7d13,'class':_0x1f07f5(0x1cd)}),_0x818856['on'](_0x1f07f5(0x1cb),()=>{const _0x18a850=_0x1f07f5;this[_0x18a850(0x1d7)](_0x18a850(0x1d0));}),_0x818856;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x28eb6c=_0x43d1;(function(_0x55d8bf,_0x437a53){var _0x38d66d=_0x43d1,_0x5e22c3=_0x55d8bf();while(!![]){try{var _0x1d5416=parseInt(_0x38d66d(0x164))/0x1*(-parseInt(_0x38d66d(0x165))/0x2)+parseInt(_0x38d66d(0x16c))/0x3*(-parseInt(_0x38d66d(0x16a))/0x4)+-parseInt(_0x38d66d(0x161))/0x5+parseInt(_0x38d66d(0x15b))/0x6*(parseInt(_0x38d66d(0x15f))/0x7)+parseInt(_0x38d66d(0x16b))/0x8+parseInt(_0x38d66d(0x171))/0x9+parseInt(_0x38d66d(0x173))/0xa*(parseInt(_0x38d66d(0x168))/0xb);if(_0x1d5416===_0x437a53)break;else _0x5e22c3['push'](_0x5e22c3['shift']());}catch(_0x4c32af){_0x5e22c3['push'](_0x5e22c3['shift']());}}}(_0x9e1f,0x97b23));import{View as _0xa7306a,BodyCollection as _0x134f71}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x25348f}from'../utils/eventnames.js';import{AIChatFeedView as _0xe78333}from'./aichatfeedview.js';import{AIChatControlsView as _0x5d7532}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x1606d8}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2a9f51}from'../../aicore/ui/aidisclaimerview.js';function _0x43d1(_0x3adca9,_0x9c2161){var _0x9e1f0d=_0x9e1f();return _0x43d1=function(_0x43d17f,_0x51fdd0){_0x43d17f=_0x43d17f-0x15a;var _0x865d01=_0x9e1f0d[_0x43d17f];return _0x865d01;},_0x43d1(_0x3adca9,_0x9c2161);}function _0x9e1f(){var _0x5cda5e=['detachFromDom','delegate','203886ObRJdf','div','_bodyCollection','uiLanguageDirection','70xBEjua','ck-ai-chat','3434905afYtpK','showResizeButton','chatHeader','361246KxUtKp','6pqQCjw','contextResourcesSearchInputVisibleFrom','destroy','250459IyUzwb','closeSourceResourceBalloon','444MEgEsu','5537744YbGJca','2772NliLVm','setTemplate','ck-rounded-corners','chatControls','attachToDom','9679761espypa','populateSourceResourceBalloon','170RnGFOj','chatFeed','chatDisclaimer','ck-reset_all'];_0x9e1f=function(){return _0x5cda5e;};return _0x9e1f();}export class AIChatView extends _0xa7306a{[_0x28eb6c(0x163)];[_0x28eb6c(0x174)];[_0x28eb6c(0x16f)];[_0x28eb6c(0x175)];[_0x28eb6c(0x15d)];constructor(_0x20d2ca,_0x458bbe){var _0x2ec418=_0x28eb6c;super(_0x20d2ca),this[_0x2ec418(0x15d)]=new _0x134f71(_0x20d2ca),this[_0x2ec418(0x15d)][_0x2ec418(0x170)](),this[_0x2ec418(0x163)]=new _0x1606d8(_0x20d2ca,_0x458bbe[_0x2ec418(0x162)]),this[_0x2ec418(0x163)][_0x2ec418(0x15a)](..._0x25348f)['to'](this),this[_0x2ec418(0x174)]=new _0xe78333(_0x20d2ca,this[_0x2ec418(0x15d)]),this[_0x2ec418(0x174)][_0x2ec418(0x15a)](..._0x25348f)['to'](this),this[_0x2ec418(0x16f)]=new _0x5d7532(_0x20d2ca,{'bodyCollection':this[_0x2ec418(0x15d)],'contextResourcesSearchInputVisibleFrom':_0x458bbe[_0x2ec418(0x166)]}),this[_0x2ec418(0x16f)][_0x2ec418(0x15a)](..._0x25348f)['to'](this),this[_0x2ec418(0x175)]=new _0x2a9f51(_0x20d2ca),this[_0x2ec418(0x16d)]({'tag':_0x2ec418(0x15c),'attributes':{'class':['ck',_0x2ec418(0x176),_0x2ec418(0x160),_0x2ec418(0x16e)],'dir':_0x20d2ca[_0x2ec418(0x15e)]},'children':[this[_0x2ec418(0x163)],this[_0x2ec418(0x174)],this[_0x2ec418(0x16f)],this[_0x2ec418(0x175)]]});}[_0x28eb6c(0x172)](_0x1b6603,_0xc29798,_0xf40f70,_0x5c292f){var _0x48612e=_0x28eb6c;this[_0x48612e(0x16f)][_0x48612e(0x172)](_0x1b6603,_0xc29798,_0xf40f70,_0x5c292f);}[_0x28eb6c(0x169)](_0x260a92){var _0x1bc227=_0x28eb6c;this[_0x1bc227(0x16f)][_0x1bc227(0x169)](_0x260a92);}[_0x28eb6c(0x167)](){var _0x6f97dc=_0x28eb6c;this[_0x6f97dc(0x15d)][_0x6f97dc(0x177)](),super[_0x6f97dc(0x167)]();}}
23
+ var _0x33bdac=_0xa8fd;(function(_0x299098,_0x5990a0){var _0x2c2139=_0xa8fd,_0x415395=_0x299098();while(!![]){try{var _0x195d75=-parseInt(_0x2c2139(0x1aa))/0x1*(parseInt(_0x2c2139(0x1b9))/0x2)+parseInt(_0x2c2139(0x1b6))/0x3+-parseInt(_0x2c2139(0x1ba))/0x4+parseInt(_0x2c2139(0x1af))/0x5*(-parseInt(_0x2c2139(0x1a9))/0x6)+-parseInt(_0x2c2139(0x1ae))/0x7*(-parseInt(_0x2c2139(0x1b1))/0x8)+-parseInt(_0x2c2139(0x1a2))/0x9*(parseInt(_0x2c2139(0x1ab))/0xa)+parseInt(_0x2c2139(0x1a7))/0xb;if(_0x195d75===_0x5990a0)break;else _0x415395['push'](_0x415395['shift']());}catch(_0x53d0b8){_0x415395['push'](_0x415395['shift']());}}}(_0x52fc,0xbefd6));import{View as _0x4ba800,BodyCollection as _0x54f60b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2b1d20}from'../utils/eventnames.js';function _0xa8fd(_0xc455e,_0x1f5802){var _0x52fc24=_0x52fc();return _0xa8fd=function(_0xa8fd44,_0x437618){_0xa8fd44=_0xa8fd44-0x1a1;var _0x529eda=_0x52fc24[_0xa8fd44];return _0x529eda;},_0xa8fd(_0xc455e,_0x1f5802);}import{AIChatFeedView as _0xfe5ac5}from'./aichatfeedview.js';import{AIChatControlsView as _0x1d650b}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x288460}from'./aichatheaderview.js';import{AIDisclaimerView as _0x34b883}from'../../aicore/ui/aidisclaimerview.js';function _0x52fc(){var _0x2e0fec=['uiLanguageDirection','chatHeader','4104835xSDkOs','4329905JJHhcZ','ck-rounded-corners','16SaBOYw','destroy','detachFromDom','div','chatDisclaimer','2741358ZaHgqf','_bodyCollection','attachToDom','72578pCAJVR','5275992HuDwAq','showResizeButton','chatFeed','setTemplate','contextResourcesSearchInputVisibleFrom','ck-reset_all','9QJmhTO','delegate','ck-ai-chat','populateSourceResourceBalloon','chatControls','22694441tMMTRy','closeSourceResourceBalloon','6JhttKT','31HCLItl','574950IJCdee'];_0x52fc=function(){return _0x2e0fec;};return _0x52fc();}export class AIChatView extends _0x4ba800{[_0x33bdac(0x1ad)];[_0x33bdac(0x1bc)];[_0x33bdac(0x1a6)];[_0x33bdac(0x1b5)];[_0x33bdac(0x1b7)];constructor(_0xfd6d5c,_0x50f749){var _0x1ea2e9=_0x33bdac;super(_0xfd6d5c),this[_0x1ea2e9(0x1b7)]=new _0x54f60b(_0xfd6d5c),this[_0x1ea2e9(0x1b7)][_0x1ea2e9(0x1b8)](),this[_0x1ea2e9(0x1ad)]=new _0x288460(_0xfd6d5c,_0x50f749[_0x1ea2e9(0x1bb)]),this[_0x1ea2e9(0x1ad)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1bc)]=new _0xfe5ac5(_0xfd6d5c,this[_0x1ea2e9(0x1b7)]),this[_0x1ea2e9(0x1bc)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1a6)]=new _0x1d650b(_0xfd6d5c,{'bodyCollection':this[_0x1ea2e9(0x1b7)],'contextResourcesSearchInputVisibleFrom':_0x50f749[_0x1ea2e9(0x1be)]}),this[_0x1ea2e9(0x1a6)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1b5)]=new _0x34b883(_0xfd6d5c),this[_0x1ea2e9(0x1bd)]({'tag':_0x1ea2e9(0x1b4),'attributes':{'class':['ck',_0x1ea2e9(0x1a1),_0x1ea2e9(0x1a4),_0x1ea2e9(0x1b0)],'dir':_0xfd6d5c[_0x1ea2e9(0x1ac)]},'children':[this[_0x1ea2e9(0x1ad)],this[_0x1ea2e9(0x1bc)],this[_0x1ea2e9(0x1a6)],this[_0x1ea2e9(0x1b5)]]});}[_0x33bdac(0x1a5)](_0x3d56c0,_0x4513b2,_0x223a64,_0x48598b){var _0xe42ae=_0x33bdac;this[_0xe42ae(0x1a6)][_0xe42ae(0x1a5)](_0x3d56c0,_0x4513b2,_0x223a64,_0x48598b);}[_0x33bdac(0x1a8)](_0x3ecc88){var _0xdf4eb=_0x33bdac;this[_0xdf4eb(0x1a6)][_0xdf4eb(0x1a8)](_0x3ecc88);}[_0x33bdac(0x1b2)](){var _0x11876b=_0x33bdac;this[_0x11876b(0x1b7)][_0x11876b(0x1b3)](),super[_0x11876b(0x1b2)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2195ee=_0x176c;(function(_0x48815a,_0x303aea){const _0x205ca4=_0x176c,_0x5d4487=_0x48815a();while(!![]){try{const _0x2873f7=-parseInt(_0x205ca4(0x1d1))/0x1*(-parseInt(_0x205ca4(0x242))/0x2)+-parseInt(_0x205ca4(0x21d))/0x3+parseInt(_0x205ca4(0x23a))/0x4*(parseInt(_0x205ca4(0x1ef))/0x5)+parseInt(_0x205ca4(0x229))/0x6*(-parseInt(_0x205ca4(0x210))/0x7)+parseInt(_0x205ca4(0x1fd))/0x8*(-parseInt(_0x205ca4(0x1fc))/0x9)+parseInt(_0x205ca4(0x258))/0xa*(-parseInt(_0x205ca4(0x1f6))/0xb)+parseInt(_0x205ca4(0x20a))/0xc;if(_0x2873f7===_0x303aea)break;else _0x5d4487['push'](_0x5d4487['shift']());}catch(_0x2cb45e){_0x5d4487['push'](_0x5d4487['shift']());}}}(_0xb42c,0x4dbdd));function _0x176c(_0x5bb0c7,_0x1f9002){const _0xb42c02=_0xb42c();return _0x176c=function(_0x176cb8,_0x18fbfe){_0x176cb8=_0x176cb8-0x1cc;let _0x4acc73=_0xb42c02[_0x176cb8];return _0x4acc73;},_0x176c(_0x5bb0c7,_0x1f9002);}import{View as _0x5a7bed,BalloonPanelView as _0x23eb95,ButtonView as _0x5a955d,clickOutsideHandler as _0x20b850}from'ckeditor5/src/ui.js';function _0xb42c(){const _0x42dd3d=['tagName','hide','_renderChipsAndCountRows','some','showBalloonPanel','pop','+\x201','controlsButton','body','maxVisibleRows','cloneNode','none','overflowContainer','calculationContainer','visible','textContent','top','showMoreLabelPrefix','bottom','_handleShowMoreButtonClick','_checkAndHandleOverflow','_updateOverflowUI','set','isIntersecting','render','_repinBalloonPanel','button','height','_bodyCollection','5TcFbjL','_calculateOverflowInContainer','setTemplate','_parentView','_createShowMoreButton','_createShowMoreBalloonPanelView','zIndex','22CrZlDg','_locale','innerHeight','clientWidth','observe','opacity','747bmqNFx','21320pNrCYy','div','content','50px','isOn','show','reorganizeChips','disableAnimationOnEnter','_distributeChips','_setupVisibilityObserver','right','isConnected','-9999px','12420684rlQGhJ','_overflowChips','showMoreBalloon','absolute','_createShowMoreButtonView','_makeAncestorsVisible','14FVKJWz','_updateShowMoreButtonVisibility','filter','pin','offsetWidth','execute','300px','hidden','clientHeight','0px','setContainerElement','showMoreButton','border-box','1324557EfynnW','className','position','showMoreButtonView','_pendingCalculation','_intersectionObserver','visibility','.ck-ai-chat','display','extendTemplate','push','clear','1275174eLiPSA','getBoundingClientRect','_showMoreButtonView','_applyOverflowResults','includes','ck-calculation-container','from','_config','add','undefined','block\x20!important','_updateBalloonContent','_findTargetContainer','_createContainerElements','auto','disconnect','boxSizing','976828cTXMQG','forEach','slice','cssClasses','visible\x20!important','block','_createCalculationContainer','abs','2hQKUkC','_createMockButton','hideBalloonPanel','_testButtonFit','innerHTML','_visibleChips','_showMoreBalloonPanelView','_calculateContainerWidth','destroy','isVisible','children','_isContainerVisible','_targetContainer','documentElement','style','remove','innerWidth','appendChild','getComputedStyle','pointerEvents','label','toLowerCase','1195930SyxuVZ','classList','length','overflowChips','_containerElement','_restoreAncestorVisibility','querySelector','createElement','_applyCalculationStyles','parentElement','_ancestorsToRestore','left','element','rowDetectionTolerance','width','366123lQzcaf'];_0xb42c=function(){return _0x42dd3d;};return _0xb42c();}import{Collection as _0xd9f10a}from'ckeditor5/src/utils.js';const dn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},bn=_0x2195ee(0x216);export class AIChatChipsOverflowManager{[_0x2195ee(0x1f7)];[_0x2195ee(0x230)];[_0x2195ee(0x247)];[_0x2195ee(0x20b)];[_0x2195ee(0x22b)]=null;[_0x2195ee(0x248)]=null;[_0x2195ee(0x25c)]=null;[_0x2195ee(0x1ee)];[_0x2195ee(0x1f2)]=null;[_0x2195ee(0x222)]=null;[_0x2195ee(0x221)]=!0x1;constructor(_0x33d135,_0x4a2f58,_0x46e5dd,_0x4bbe60,_0x54e2fb){const _0xd2d8f0=_0x2195ee;this[_0xd2d8f0(0x1f7)]=_0x33d135,this[_0xd2d8f0(0x247)]=_0x4a2f58,this[_0xd2d8f0(0x230)]={...dn,..._0x46e5dd,'cssClasses':{'controlsButton':'','calculationContainer':_0xd2d8f0(0x22e),..._0x46e5dd[_0xd2d8f0(0x23d)]}},this[_0xd2d8f0(0x20b)]=new _0xd9f10a(),this[_0xd2d8f0(0x1ee)]=_0x4bbe60,this[_0xd2d8f0(0x1f2)]=_0x54e2fb||null;}[_0x2195ee(0x21a)](_0x9efdc2){const _0x18a004=_0x2195ee;this[_0x18a004(0x222)]&&(this[_0x18a004(0x222)][_0x18a004(0x238)](),this[_0x18a004(0x222)]=null),this[_0x18a004(0x25c)]=_0x9efdc2,this[_0x18a004(0x206)]();}get[_0x2195ee(0x220)](){const _0x1c8c9b=_0x2195ee;return this[_0x1c8c9b(0x22b)];}get[_0x2195ee(0x25b)](){const _0x55dd4a=_0x2195ee;return this[_0x55dd4a(0x20b)];}[_0x2195ee(0x203)](){requestAnimationFrame(()=>{const _0x41a561=_0x176c;this[_0x41a561(0x1e6)]();});}[_0x2195ee(0x1d6)](){const _0x5b1ab9=_0x2195ee;this[_0x5b1ab9(0x22b)]&&this[_0x5b1ab9(0x248)]&&(this[_0x5b1ab9(0x234)](),this[_0x5b1ab9(0x22b)][_0x5b1ab9(0x201)]=!0x0,this[_0x5b1ab9(0x248)][_0x5b1ab9(0x202)](),this[_0x5b1ab9(0x248)][_0x5b1ab9(0x213)]({'target':this[_0x5b1ab9(0x22b)][_0x5b1ab9(0x1ce)],'limiter':document[_0x5b1ab9(0x25e)](_0x5b1ab9(0x224))}));}[_0x2195ee(0x244)](){const _0x33159d=_0x2195ee;this[_0x33159d(0x22b)]&&this[_0x33159d(0x248)]&&(this[_0x33159d(0x22b)][_0x33159d(0x201)]=!0x1,this[_0x33159d(0x248)][_0x33159d(0x1d3)]());}[_0x2195ee(0x228)](){const _0x3186e4=_0x2195ee;this[_0x3186e4(0x20b)][_0x3186e4(0x228)](),this[_0x3186e4(0x244)](),this[_0x3186e4(0x211)](),this[_0x3186e4(0x22b)]&&(this[_0x3186e4(0x22b)][_0x3186e4(0x256)]=''),this[_0x3186e4(0x248)]&&this[_0x3186e4(0x248)][_0x3186e4(0x1ff)][_0x3186e4(0x228)]();}[_0x2195ee(0x24a)](){const _0x1393b6=_0x2195ee;this[_0x1393b6(0x222)]&&(this[_0x1393b6(0x222)][_0x1393b6(0x238)](),this[_0x1393b6(0x222)]=null),this[_0x1393b6(0x22b)]&&(this[_0x1393b6(0x22b)][_0x1393b6(0x24a)](),this[_0x1393b6(0x22b)]=null),this[_0x1393b6(0x248)]&&(this[_0x1393b6(0x248)][_0x1393b6(0x24a)](),this[_0x1393b6(0x248)]=null);}[_0x2195ee(0x1e6)](){const _0x5b0540=_0x2195ee;if(!this[_0x5b0540(0x25c)])return;if(!this[_0x5b0540(0x24d)]())return void(this[_0x5b0540(0x221)]=!0x0);this[_0x5b0540(0x221)]=!0x1;const _0x446b91=[...this[_0x5b0540(0x247)],...this[_0x5b0540(0x20b)]],_0x5c77e7=this[_0x5b0540(0x240)](),_0x1dac45=this[_0x5b0540(0x1f0)](_0x5c77e7,_0x446b91),_0x5bd0d5=_0x5c77e7[_0x5b0540(0x1cc)];_0x5bd0d5&&this[_0x5b0540(0x25d)](_0x5bd0d5),_0x5c77e7[_0x5b0540(0x251)](),this[_0x5b0540(0x22c)](_0x446b91,_0x1dac45);}[_0x2195ee(0x1f3)](){const _0x1b530e=_0x2195ee;this[_0x1b530e(0x22b)]=this[_0x1b530e(0x20e)](),this[_0x1b530e(0x248)]=this[_0x1b530e(0x1f4)](),this[_0x1b530e(0x22b)][_0x1b530e(0x1ea)](),this[_0x1b530e(0x25c)][_0x1b530e(0x253)](this[_0x1b530e(0x22b)][_0x1b530e(0x1ce)]),this[_0x1b530e(0x22b)]['on'](_0x1b530e(0x215),()=>{const _0x46fcb8=_0x1b530e;this[_0x46fcb8(0x1e5)]();}),_0x20b850({'emitter':this[_0x1b530e(0x248)],'contextElements':[this[_0x1b530e(0x248)][_0x1b530e(0x1ce)],this[_0x1b530e(0x22b)][_0x1b530e(0x1ce)]],'callback':()=>this[_0x1b530e(0x244)](),'activator':()=>this[_0x1b530e(0x22b)][_0x1b530e(0x201)]});}[_0x2195ee(0x20e)](){const _0x15e879=_0x2195ee,_0x9761fa=new _0x5a955d(this[_0x15e879(0x1f7)]);_0x9761fa[_0x15e879(0x1e8)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3b3da0=[this[_0x15e879(0x230)][_0x15e879(0x23d)][_0x15e879(0x21b)]];return this[_0x15e879(0x230)][_0x15e879(0x23d)][_0x15e879(0x1d9)]&&_0x3b3da0[_0x15e879(0x227)](this[_0x15e879(0x230)][_0x15e879(0x23d)][_0x15e879(0x1d9)]),_0x9761fa[_0x15e879(0x226)]({'attributes':{'class':_0x3b3da0}}),_0x9761fa;}[_0x2195ee(0x1f4)](){const _0x46785=_0x2195ee,_0xc89efa=new _0x23eb95(this[_0x46785(0x1f7)]);return _0xc89efa[_0x46785(0x226)]({'attributes':{'class':this[_0x46785(0x230)][_0x46785(0x23d)][_0x46785(0x20c)]}}),this[_0x46785(0x1ee)][_0x46785(0x231)](_0xc89efa),_0xc89efa;}[_0x2195ee(0x234)](){const _0x2bcaeb=_0x2195ee;if(this[_0x2bcaeb(0x248)]&&(this[_0x2bcaeb(0x248)][_0x2bcaeb(0x1ff)][_0x2bcaeb(0x228)](),this[_0x2bcaeb(0x20b)][_0x2bcaeb(0x25a)]>0x0)){this[_0x2bcaeb(0x20b)][_0x2bcaeb(0x23b)](_0x59f466=>{const _0x39b4f4=_0x2bcaeb;_0x59f466[_0x39b4f4(0x204)]();});const _0x416a59=new _0x5a7bed(this[_0x2bcaeb(0x1f7)]);_0x416a59[_0x2bcaeb(0x1f1)]({'tag':_0x2bcaeb(0x1fe),'attributes':{'class':this[_0x2bcaeb(0x230)][_0x2bcaeb(0x23d)][_0x2bcaeb(0x1de)]},'children':this[_0x2bcaeb(0x20b)]}),this[_0x2bcaeb(0x248)][_0x2bcaeb(0x1ff)][_0x2bcaeb(0x231)](_0x416a59);}}[_0x2195ee(0x1e5)](){const _0x224533=_0x2195ee;this[_0x224533(0x22b)][_0x224533(0x201)]?this[_0x224533(0x244)]():this[_0x224533(0x1d6)]();}[_0x2195ee(0x211)](){const _0x18b7e6=_0x2195ee,_0x4daa43=this[_0x18b7e6(0x20b)][_0x18b7e6(0x25a)]>0x0;this[_0x18b7e6(0x22b)]?.[_0x18b7e6(0x1ce)]&&(this[_0x18b7e6(0x22b)][_0x18b7e6(0x1ce)][_0x18b7e6(0x250)][_0x18b7e6(0x225)]=_0x4daa43?'':_0x18b7e6(0x1dd));}[_0x2195ee(0x1eb)](){const _0x396001=_0x2195ee;this[_0x396001(0x22b)]?.[_0x396001(0x201)]&&this[_0x396001(0x248)]?.[_0x396001(0x24b)]&&this[_0x396001(0x22b)][_0x396001(0x1ce)]&&this[_0x396001(0x248)][_0x396001(0x213)]({'target':this[_0x396001(0x22b)][_0x396001(0x1ce)],'limiter':document[_0x396001(0x25e)](_0x396001(0x224))});}[_0x2195ee(0x235)](_0x5966f3){const _0x453edd=_0x2195ee,_0x135cdb=this[_0x453edd(0x25c)]?.[_0x453edd(0x1d2)][_0x453edd(0x257)]()||_0x453edd(0x1fe),_0x4275ee=this[_0x453edd(0x25c)]?.[_0x453edd(0x259)];if(_0x4275ee){const _0x4ef1b9=_0x4275ee[0x0]||'',_0x2d0c5a=_0x5966f3[_0x453edd(0x25e)]('.'+_0x4ef1b9),_0x5f45e5=_0x5966f3[_0x453edd(0x25e)](_0x135cdb);return _0x2d0c5a||_0x5f45e5||_0x5966f3;}return _0x5966f3[_0x453edd(0x25e)](_0x135cdb)||_0x5966f3;}[_0x2195ee(0x249)](){const _0xf70e47=_0x2195ee,_0x42c363=this[_0xf70e47(0x1f2)]?.[_0xf70e47(0x1ce)]||this[_0xf70e47(0x25c)];if(!_0x42c363)return bn;const _0x42aab3=window[_0xf70e47(0x254)](_0x42c363)[_0xf70e47(0x1d0)];if(_0xf70e47(0x237)===_0x42aab3||_0xf70e47(0x219)===_0x42aab3||!_0x42aab3){const _0x2b9be3=_0x42c363[_0xf70e47(0x261)];if(_0x2b9be3){const _0x4069b6=window[_0xf70e47(0x254)](_0x2b9be3);return _0xf70e47(0x237)!==_0x4069b6[_0xf70e47(0x1d0)]?_0x4069b6[_0xf70e47(0x1d0)]:bn;}return bn;}return _0x42aab3;}[_0x2195ee(0x260)](_0x1ab2fb,_0x16cb3b){const _0x1f0201=_0x2195ee;this[_0x1f0201(0x230)][_0x1f0201(0x23d)][_0x1f0201(0x1df)]&&_0x1ab2fb[_0x1f0201(0x259)][_0x1f0201(0x231)](this[_0x1f0201(0x230)][_0x1f0201(0x23d)][_0x1f0201(0x1df)]),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1d0)]=_0x16cb3b,_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x21f)]=_0x1f0201(0x20d),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1e2)]=_0x1f0201(0x209),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1cd)]=_0x1f0201(0x209),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1fb)]='0',_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x255)]=_0x1f0201(0x1dd),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1f5)]='-1',_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x223)]=_0x1f0201(0x23e),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x225)]=_0x1f0201(0x233),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x239)]=_0x1f0201(0x21c);}[_0x2195ee(0x25d)](_0x49d65c){const _0xd819cc=_0x2195ee;_0x49d65c[_0xd819cc(0x23b)](({element:_0x2f001c,originalDisplay:_0x222190,originalVisibility:_0x3c576d})=>{const _0x4ccb92=_0xd819cc;_0x2f001c[_0x4ccb92(0x250)][_0x4ccb92(0x225)]=_0x222190,_0x2f001c[_0x4ccb92(0x250)][_0x4ccb92(0x223)]=_0x3c576d;});}[_0x2195ee(0x20f)](_0x314dcd){const _0x37bf1a=_0x2195ee,_0x36bfbc=[];let _0x3cafea=_0x314dcd;for(;_0x3cafea&&_0x3cafea!==document[_0x37bf1a(0x1da)];){const _0x2bc4cc=window[_0x37bf1a(0x254)](_0x3cafea);_0x37bf1a(0x1dd)!==_0x2bc4cc[_0x37bf1a(0x225)]&&_0x37bf1a(0x217)!==_0x2bc4cc[_0x37bf1a(0x223)]||(_0x36bfbc[_0x37bf1a(0x227)]({'element':_0x3cafea,'originalDisplay':_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x225)],'originalVisibility':_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x223)]}),_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x225)]=_0x37bf1a(0x23f),_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x223)]=_0x37bf1a(0x1e0)),_0x3cafea=_0x3cafea[_0x37bf1a(0x261)];}return _0x36bfbc;}[_0x2195ee(0x236)](){const _0x4a6783=_0x2195ee;let _0x5dbc66,_0x31d1cb;return this[_0x4a6783(0x1f2)]?.[_0x4a6783(0x1ce)]?(_0x5dbc66=this[_0x4a6783(0x1f2)][_0x4a6783(0x1ce)][_0x4a6783(0x1dc)](!0x0),_0x31d1cb=this[_0x4a6783(0x235)](_0x5dbc66)):(_0x5dbc66=document[_0x4a6783(0x25f)](_0x4a6783(0x1fe)),_0x31d1cb=_0x5dbc66),{'calculationContainer':_0x5dbc66,'targetContainer':_0x31d1cb};}[_0x2195ee(0x240)](){const _0x231049=_0x2195ee,{calculationContainer:_0x2592b9,targetContainer:_0x37c859}=this[_0x231049(0x236)](),_0x320665=this[_0x231049(0x249)]();this[_0x231049(0x260)](_0x2592b9,_0x320665);const _0x27183d=this[_0x231049(0x1f2)]?.[_0x231049(0x1ce)]||this[_0x231049(0x25c)],_0xd234dc=_0x27183d?.[_0x231049(0x261)];_0xd234dc?_0xd234dc[_0x231049(0x253)](_0x2592b9):document[_0x231049(0x1da)][_0x231049(0x253)](_0x2592b9),_0x2592b9[_0x231049(0x24e)]=_0x37c859;const _0x53d2f2=this[_0x231049(0x20f)](_0xd234dc||null);return _0x2592b9[_0x231049(0x214)],_0x2592b9[_0x231049(0x1cc)]=_0x53d2f2,_0x2592b9;}[_0x2195ee(0x1f0)](_0x2a73b9,_0xa433aa){const _0x288443=_0x2195ee,_0x2b1a41=_0x2a73b9[_0x288443(0x24e)]||_0x2a73b9,_0x2d1197=[],{rowCount:_0x2af79f}=this[_0x288443(0x1d4)](_0x2b1a41,_0xa433aa);if(_0x2af79f<=this[_0x288443(0x230)][_0x288443(0x1db)])return _0x2d1197;const _0x4e7ec1=_0xa433aa[_0x288443(0x23c)]();for(;_0x4e7ec1[_0x288443(0x25a)]>0x0;){if(this[_0x288443(0x245)](_0x2a73b9,_0x2b1a41,_0x4e7ec1)){const _0x561114=_0xa433aa[_0x288443(0x212)](_0x198720=>!_0x4e7ec1[_0x288443(0x22d)](_0x198720));_0x2d1197[_0x288443(0x227)](..._0x561114);break;}if(!_0x4e7ec1[_0x288443(0x1d7)]())break;}return _0x2d1197;}[_0x2195ee(0x1d4)](_0xf58be7,_0x3c06d3){const _0x60c0d5=_0x2195ee;_0xf58be7[_0x60c0d5(0x246)]='',_0x3c06d3[_0x60c0d5(0x23b)](_0x5384f8=>{const _0x14e86b=_0x60c0d5;if(_0x5384f8[_0x14e86b(0x1ce)]){const _0x460205=_0x5384f8[_0x14e86b(0x1ce)][_0x14e86b(0x1dc)](!0x0);_0xf58be7[_0x14e86b(0x253)](_0x460205);}}),_0xf58be7[_0x60c0d5(0x214)];const _0x3c3cd3=_0xf58be7[_0x60c0d5(0x24c)],_0x5cfaae=[];return Array[_0x60c0d5(0x22f)](_0x3c3cd3)[_0x60c0d5(0x23b)](_0x23a23a=>{const _0x17fa07=_0x60c0d5,_0x2e3a30=_0x23a23a[_0x17fa07(0x22a)]()[_0x17fa07(0x1e2)];_0x5cfaae[_0x17fa07(0x1d5)](_0x3165ae=>Math[_0x17fa07(0x241)](_0x3165ae-_0x2e3a30)<this[_0x17fa07(0x230)][_0x17fa07(0x1cf)])||_0x5cfaae[_0x17fa07(0x227)](_0x2e3a30);}),{'rowCount':_0x5cfaae[_0x60c0d5(0x25a)]};}[_0x2195ee(0x243)](){const _0x43d80b=_0x2195ee,_0x12dfd1=document[_0x43d80b(0x25f)](_0x43d80b(0x1ec));return _0x12dfd1[_0x43d80b(0x21e)]=this[_0x43d80b(0x230)][_0x43d80b(0x23d)][_0x43d80b(0x21b)],this[_0x43d80b(0x230)][_0x43d80b(0x23d)][_0x43d80b(0x1d9)]&&_0x12dfd1[_0x43d80b(0x259)][_0x43d80b(0x231)](this[_0x43d80b(0x230)][_0x43d80b(0x23d)][_0x43d80b(0x1d9)]),_0x12dfd1[_0x43d80b(0x1e1)]=_0x43d80b(0x1d8),_0x12dfd1;}[_0x2195ee(0x245)](_0x3541bf,_0x151348,_0x1fcad3){const _0x49d869=_0x2195ee;this[_0x49d869(0x1d4)](_0x151348,_0x1fcad3);const _0x2dd10a=this[_0x49d869(0x243)]();_0x3541bf[_0x49d869(0x253)](_0x2dd10a),_0x3541bf[_0x49d869(0x214)];const _0x20bfc4=[..._0x151348[_0x49d869(0x24c)],_0x2dd10a],_0x429939=[];_0x20bfc4[_0x49d869(0x23b)](_0x450b4b=>{const _0x324a43=_0x49d869,_0xac8393=_0x450b4b[_0x324a43(0x22a)]()[_0x324a43(0x1e2)];_0x429939[_0x324a43(0x1d5)](_0x3cd75e=>Math[_0x324a43(0x241)](_0x3cd75e-_0xac8393)<this[_0x324a43(0x230)][_0x324a43(0x1cf)])||_0x429939[_0x324a43(0x227)](_0xac8393);});const _0x1c51e5=_0x429939[_0x49d869(0x25a)];return _0x2dd10a[_0x49d869(0x251)](),_0x1c51e5<=this[_0x49d869(0x230)][_0x49d869(0x1db)];}[_0x2195ee(0x205)](_0x16026a,_0x1e04d2){const _0x784482=_0x2195ee;this[_0x784482(0x247)][_0x784482(0x228)](),this[_0x784482(0x20b)][_0x784482(0x228)](),_0x16026a[_0x784482(0x23b)](_0x3ebc7b=>{const _0x1321c6=_0x784482;_0x1e04d2[_0x1321c6(0x22d)](_0x3ebc7b)?this[_0x1321c6(0x20b)][_0x1321c6(0x231)](_0x3ebc7b):this[_0x1321c6(0x247)][_0x1321c6(0x231)](_0x3ebc7b);});}[_0x2195ee(0x1e7)](_0x252882){const _0x3f8a88=_0x2195ee;if(_0x252882>0x0&&!this[_0x3f8a88(0x22b)]&&this[_0x3f8a88(0x1f3)](),_0x252882>0x0&&this[_0x3f8a88(0x22b)]){const _0x1693cb=''+this[_0x3f8a88(0x230)][_0x3f8a88(0x1e3)]+(_0x252882<0x63?_0x252882:'99');this[_0x3f8a88(0x22b)][_0x3f8a88(0x256)]=_0x1693cb;}this[_0x3f8a88(0x234)](),this[_0x3f8a88(0x211)](),this[_0x3f8a88(0x1eb)]();}[_0x2195ee(0x22c)](_0x2b5050,_0x2e9023){const _0x2d7e51=_0x2195ee;this[_0x2d7e51(0x205)](_0x2b5050,_0x2e9023),this[_0x2d7e51(0x1e7)](_0x2e9023[_0x2d7e51(0x25a)]);}[_0x2195ee(0x206)](){const _0x4be090=_0x2195ee;this[_0x4be090(0x25c)]&&_0x4be090(0x232)!=typeof IntersectionObserver&&(this[_0x4be090(0x222)]=new IntersectionObserver(_0xa20c2e=>{const _0xaac589=_0x4be090;_0xa20c2e[0x0][_0xaac589(0x1e9)]&&this[_0xaac589(0x221)]&&requestAnimationFrame(()=>{const _0x5636ad=_0xaac589;this[_0x5636ad(0x1e6)]();});},{'threshold':0.01,'rootMargin':_0x4be090(0x200)}),this[_0x4be090(0x222)][_0x4be090(0x1fa)](this[_0x4be090(0x25c)]));}[_0x2195ee(0x24d)](){const _0x2e4356=_0x2195ee;if(!this[_0x2e4356(0x25c)])return!0x1;if(!this[_0x2e4356(0x25c)][_0x2e4356(0x208)])return!0x1;const _0x284420=this[_0x2e4356(0x25c)][_0x2e4356(0x22a)]();if(0x0===_0x284420[_0x2e4356(0x1d0)]||0x0===_0x284420[_0x2e4356(0x1ed)])return!0x1;const _0x1d9686=window[_0x2e4356(0x1f8)]||document[_0x2e4356(0x24f)][_0x2e4356(0x218)],_0x4201ae=window[_0x2e4356(0x252)]||document[_0x2e4356(0x24f)][_0x2e4356(0x1f9)],_0x477a84=0xc8;return _0x284420[_0x2e4356(0x1e4)]>=-0xc8&&_0x284420[_0x2e4356(0x1e2)]<=_0x1d9686+_0x477a84&&_0x284420[_0x2e4356(0x207)]>=-0xc8&&_0x284420[_0x2e4356(0x1cd)]<=_0x4201ae+_0x477a84;}}
23
+ const _0x473cc4=_0x5599;function _0x48ec(){const _0x22007d=['div','destroy','1721442dpOwZP','visible','tagName','parentElement','4069618aDWNNR','-9999px','15814NSEmVe','cloneNode','_createShowMoreBalloonPanelView','hideBalloonPanel','none','auto','_createShowMoreButtonView','_createShowMoreButton','content','opacity','clientHeight','clear','300px','_ancestorsToRestore','children','pop','_createCalculationContainer','textContent','_overflowChips','showMoreButton','innerHTML','innerHeight','zIndex','disableAnimationOnEnter','slice','createElement','_calculateOverflowInContainer','overflowContainer','clientWidth','from','block\x20!important','_calculateContainerWidth','bottom','_makeAncestorsVisible','.ck-ai-chat','_findTargetContainer','body','absolute','className','showMoreButtonView','_createContainerElements','boxSizing','_intersectionObserver','15259068SXhAJc','display','2908236bPEomL','maxVisibleRows','showMoreBalloon','visibility','_updateOverflowUI','left','_showMoreButtonView','block','forEach','_repinBalloonPanel','hidden','ck-calculation-container','_updateBalloonContent','_pendingCalculation','height','_showMoreBalloonPanelView','_handleShowMoreButtonClick','overflowChips','show','innerWidth','disconnect','0px','_visibleChips','observe','element','455728HcIFFG','isConnected','reorganizeChips','label','cssClasses','remove','offsetWidth','_bodyCollection','border-box','_config','render','classList','getBoundingClientRect','top','_applyCalculationStyles','_locale','+\x201','style','_parentView','_checkAndHandleOverflow','position','extendTemplate','_restoreAncestorVisibility','pointerEvents','documentElement','button','undefined','execute','20SjRRJD','_createMockButton','toLowerCase','controlsButton','width','483765gEhsUF','isIntersecting','50px','_testButtonFit','_updateShowMoreButtonVisibility','_setupVisibilityObserver','some','getComputedStyle','isVisible','filter','includes','abs','_containerElement','setTemplate','set','isOn','23lJxAPU','showBalloonPanel','querySelector','calculationContainer','right','hide','showMoreLabelPrefix','add','_renderChipsAndCountRows','push','_applyOverflowResults','rowDetectionTolerance','appendChild','length','pin','setContainerElement','_distributeChips','_targetContainer','visible\x20!important','_isContainerVisible'];_0x48ec=function(){return _0x22007d;};return _0x48ec();}(function(_0x4b47c2,_0x5e1dea){const _0x544220=_0x5599,_0x17fbb2=_0x4b47c2();while(!![]){try{const _0x2a3f95=parseInt(_0x544220(0x1d3))/0x1*(-parseInt(_0x544220(0x15c))/0x2)+-parseInt(_0x544220(0x156))/0x3+parseInt(_0x544220(0x1be))/0x4*(parseInt(_0x544220(0x1c3))/0x5)+-parseInt(_0x544220(0x189))/0x6+-parseInt(_0x544220(0x15a))/0x7+-parseInt(_0x544220(0x1a2))/0x8+parseInt(_0x544220(0x187))/0x9;if(_0x2a3f95===_0x5e1dea)break;else _0x17fbb2['push'](_0x17fbb2['shift']());}catch(_0x740dee){_0x17fbb2['push'](_0x17fbb2['shift']());}}}(_0x48ec,0x495d0));import{View as _0x40ad50,BalloonPanelView as _0x30ba49,ButtonView as _0x24285e,clickOutsideHandler as _0x270fd4}from'ckeditor5/src/ui.js';import{Collection as _0x19347f}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x473cc4(0x168);function _0x5599(_0x2e6188,_0x4a9a14){const _0x48ecf2=_0x48ec();return _0x5599=function(_0x559933,_0x5ac85f){_0x559933=_0x559933-0x14a;let _0x20c54e=_0x48ecf2[_0x559933];return _0x20c54e;},_0x5599(_0x2e6188,_0x4a9a14);}export class AIChatChipsOverflowManager{[_0x473cc4(0x1b1)];[_0x473cc4(0x1ab)];[_0x473cc4(0x19f)];[_0x473cc4(0x16e)];[_0x473cc4(0x18f)]=null;[_0x473cc4(0x198)]=null;[_0x473cc4(0x1cf)]=null;[_0x473cc4(0x1a9)];[_0x473cc4(0x1b4)]=null;[_0x473cc4(0x186)]=null;[_0x473cc4(0x196)]=!0x1;constructor(_0x5acb21,_0x3a72b0,_0x5cde32,_0x26c6e9,_0x54c8e3){const _0x454f11=_0x473cc4;this[_0x454f11(0x1b1)]=_0x5acb21,this[_0x454f11(0x19f)]=_0x3a72b0,this[_0x454f11(0x1ab)]={...hn,..._0x5cde32,'cssClasses':{'controlsButton':'','calculationContainer':_0x454f11(0x194),..._0x5cde32[_0x454f11(0x1a6)]}},this[_0x454f11(0x16e)]=new _0x19347f(),this[_0x454f11(0x1a9)]=_0x26c6e9,this[_0x454f11(0x1b4)]=_0x54c8e3||null;}[_0x473cc4(0x14f)](_0x430948){const _0x4b58de=_0x473cc4;this[_0x4b58de(0x186)]&&(this[_0x4b58de(0x186)][_0x4b58de(0x19d)](),this[_0x4b58de(0x186)]=null),this[_0x4b58de(0x1cf)]=_0x430948,this[_0x4b58de(0x1c8)]();}get[_0x473cc4(0x183)](){const _0x19b9d4=_0x473cc4;return this[_0x19b9d4(0x18f)];}get[_0x473cc4(0x19a)](){const _0x155634=_0x473cc4;return this[_0x155634(0x16e)];}[_0x473cc4(0x1a4)](){requestAnimationFrame(()=>{const _0x56ac1b=_0x5599;this[_0x56ac1b(0x1b5)]();});}[_0x473cc4(0x1d4)](){const _0x5af1ee=_0x473cc4;this[_0x5af1ee(0x18f)]&&this[_0x5af1ee(0x198)]&&(this[_0x5af1ee(0x195)](),this[_0x5af1ee(0x18f)][_0x5af1ee(0x1d2)]=!0x0,this[_0x5af1ee(0x198)][_0x5af1ee(0x19b)](),this[_0x5af1ee(0x198)][_0x5af1ee(0x14e)]({'target':this[_0x5af1ee(0x18f)][_0x5af1ee(0x1a1)],'limiter':document[_0x5af1ee(0x1d5)](_0x5af1ee(0x17e))}));}[_0x473cc4(0x15f)](){const _0x2f23c9=_0x473cc4;this[_0x2f23c9(0x18f)]&&this[_0x2f23c9(0x198)]&&(this[_0x2f23c9(0x18f)][_0x2f23c9(0x1d2)]=!0x1,this[_0x2f23c9(0x198)][_0x2f23c9(0x1d8)]());}[_0x473cc4(0x167)](){const _0x4c2f38=_0x473cc4;this[_0x4c2f38(0x16e)][_0x4c2f38(0x167)](),this[_0x4c2f38(0x15f)](),this[_0x4c2f38(0x1c7)](),this[_0x4c2f38(0x18f)]&&(this[_0x4c2f38(0x18f)][_0x4c2f38(0x1a5)]=''),this[_0x4c2f38(0x198)]&&this[_0x4c2f38(0x198)][_0x4c2f38(0x164)][_0x4c2f38(0x167)]();}[_0x473cc4(0x155)](){const _0x206971=_0x473cc4;this[_0x206971(0x186)]&&(this[_0x206971(0x186)][_0x206971(0x19d)](),this[_0x206971(0x186)]=null),this[_0x206971(0x18f)]&&(this[_0x206971(0x18f)][_0x206971(0x155)](),this[_0x206971(0x18f)]=null),this[_0x206971(0x198)]&&(this[_0x206971(0x198)][_0x206971(0x155)](),this[_0x206971(0x198)]=null);}[_0x473cc4(0x1b5)](){const _0x2f93e6=_0x473cc4;if(!this[_0x2f93e6(0x1cf)])return;if(!this[_0x2f93e6(0x153)]())return void(this[_0x2f93e6(0x196)]=!0x0);this[_0x2f93e6(0x196)]=!0x1;const _0x1f4266=[...this[_0x2f93e6(0x19f)],...this[_0x2f93e6(0x16e)]],_0x5a17b0=this[_0x2f93e6(0x16c)](),_0x4a03ba=this[_0x2f93e6(0x176)](_0x5a17b0,_0x1f4266),_0x2b8bb0=_0x5a17b0[_0x2f93e6(0x169)];_0x2b8bb0&&this[_0x2f93e6(0x1b8)](_0x2b8bb0),_0x5a17b0[_0x2f93e6(0x1a7)](),this[_0x2f93e6(0x14a)](_0x1f4266,_0x4a03ba);}[_0x473cc4(0x163)](){const _0x1b1ba4=_0x473cc4;this[_0x1b1ba4(0x18f)]=this[_0x1b1ba4(0x162)](),this[_0x1b1ba4(0x198)]=this[_0x1b1ba4(0x15e)](),this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1ac)](),this[_0x1b1ba4(0x1cf)][_0x1b1ba4(0x14c)](this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1a1)]),this[_0x1b1ba4(0x18f)]['on'](_0x1b1ba4(0x1bd),()=>{const _0x48c4f6=_0x1b1ba4;this[_0x48c4f6(0x199)]();}),_0x270fd4({'emitter':this[_0x1b1ba4(0x198)],'contextElements':[this[_0x1b1ba4(0x198)][_0x1b1ba4(0x1a1)],this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1a1)]],'callback':()=>this[_0x1b1ba4(0x15f)](),'activator':()=>this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1d2)]});}[_0x473cc4(0x162)](){const _0x3118b4=_0x473cc4,_0x16e531=new _0x24285e(this[_0x3118b4(0x1b1)]);_0x16e531[_0x3118b4(0x1d1)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1971ad=[this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x16f)]];return this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x1c1)]&&_0x1971ad[_0x3118b4(0x1dc)](this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x1c1)]),_0x16e531[_0x3118b4(0x1b7)]({'attributes':{'class':_0x1971ad}}),_0x16e531;}[_0x473cc4(0x15e)](){const _0x123cd7=_0x473cc4,_0x3633f8=new _0x30ba49(this[_0x123cd7(0x1b1)]);return _0x3633f8[_0x123cd7(0x1b7)]({'attributes':{'class':this[_0x123cd7(0x1ab)][_0x123cd7(0x1a6)][_0x123cd7(0x18b)]}}),this[_0x123cd7(0x1a9)][_0x123cd7(0x1da)](_0x3633f8),_0x3633f8;}[_0x473cc4(0x195)](){const _0x4519cb=_0x473cc4;if(this[_0x4519cb(0x198)]&&(this[_0x4519cb(0x198)][_0x4519cb(0x164)][_0x4519cb(0x167)](),this[_0x4519cb(0x16e)][_0x4519cb(0x14d)]>0x0)){this[_0x4519cb(0x16e)][_0x4519cb(0x191)](_0x375185=>{const _0x79a1af=_0x4519cb;_0x375185[_0x79a1af(0x173)]();});const _0x54c495=new _0x40ad50(this[_0x4519cb(0x1b1)]);_0x54c495[_0x4519cb(0x1d0)]({'tag':_0x4519cb(0x154),'attributes':{'class':this[_0x4519cb(0x1ab)][_0x4519cb(0x1a6)][_0x4519cb(0x177)]},'children':this[_0x4519cb(0x16e)]}),this[_0x4519cb(0x198)][_0x4519cb(0x164)][_0x4519cb(0x1da)](_0x54c495);}}[_0x473cc4(0x199)](){const _0x264cbd=_0x473cc4;this[_0x264cbd(0x18f)][_0x264cbd(0x1d2)]?this[_0x264cbd(0x15f)]():this[_0x264cbd(0x1d4)]();}[_0x473cc4(0x1c7)](){const _0x5240cd=_0x473cc4,_0x1b7e68=this[_0x5240cd(0x16e)][_0x5240cd(0x14d)]>0x0;this[_0x5240cd(0x18f)]?.[_0x5240cd(0x1a1)]&&(this[_0x5240cd(0x18f)][_0x5240cd(0x1a1)][_0x5240cd(0x1b3)][_0x5240cd(0x188)]=_0x1b7e68?'':_0x5240cd(0x160));}[_0x473cc4(0x192)](){const _0x78efe7=_0x473cc4;this[_0x78efe7(0x18f)]?.[_0x78efe7(0x1d2)]&&this[_0x78efe7(0x198)]?.[_0x78efe7(0x1cb)]&&this[_0x78efe7(0x18f)][_0x78efe7(0x1a1)]&&this[_0x78efe7(0x198)][_0x78efe7(0x14e)]({'target':this[_0x78efe7(0x18f)][_0x78efe7(0x1a1)],'limiter':document[_0x78efe7(0x1d5)](_0x78efe7(0x17e))});}[_0x473cc4(0x17f)](_0x595664){const _0x190575=_0x473cc4,_0x5343e6=this[_0x190575(0x1cf)]?.[_0x190575(0x158)][_0x190575(0x1c0)]()||_0x190575(0x154),_0x13a3af=this[_0x190575(0x1cf)]?.[_0x190575(0x1ad)];if(_0x13a3af){const _0x5c1c71=_0x13a3af[0x0]||'',_0x3641a3=_0x595664[_0x190575(0x1d5)]('.'+_0x5c1c71),_0x3e225a=_0x595664[_0x190575(0x1d5)](_0x5343e6);return _0x3641a3||_0x3e225a||_0x595664;}return _0x595664[_0x190575(0x1d5)](_0x5343e6)||_0x595664;}[_0x473cc4(0x17b)](){const _0x5d2644=_0x473cc4,_0x11440c=this[_0x5d2644(0x1b4)]?.[_0x5d2644(0x1a1)]||this[_0x5d2644(0x1cf)];if(!_0x11440c)return an;const _0x5dc413=window[_0x5d2644(0x1ca)](_0x11440c)[_0x5d2644(0x1c2)];if(_0x5d2644(0x161)===_0x5dc413||_0x5d2644(0x19e)===_0x5dc413||!_0x5dc413){const _0x4bc42b=_0x11440c[_0x5d2644(0x159)];if(_0x4bc42b){const _0x1ed2a4=window[_0x5d2644(0x1ca)](_0x4bc42b);return _0x5d2644(0x161)!==_0x1ed2a4[_0x5d2644(0x1c2)]?_0x1ed2a4[_0x5d2644(0x1c2)]:an;}return an;}return _0x5dc413;}[_0x473cc4(0x1b0)](_0x1f09a7,_0x4b92d0){const _0x11fd00=_0x473cc4;this[_0x11fd00(0x1ab)][_0x11fd00(0x1a6)][_0x11fd00(0x1d6)]&&_0x1f09a7[_0x11fd00(0x1ad)][_0x11fd00(0x1da)](this[_0x11fd00(0x1ab)][_0x11fd00(0x1a6)][_0x11fd00(0x1d6)]),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1c2)]=_0x4b92d0,_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1b6)]=_0x11fd00(0x181),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1af)]=_0x11fd00(0x15b),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x18e)]=_0x11fd00(0x15b),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x165)]='0',_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1b9)]=_0x11fd00(0x160),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x172)]='-1',_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x18c)]=_0x11fd00(0x152),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x188)]=_0x11fd00(0x17a),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x185)]=_0x11fd00(0x1aa);}[_0x473cc4(0x1b8)](_0x65722c){const _0x53c028=_0x473cc4;_0x65722c[_0x53c028(0x191)](({element:_0x1e38e1,originalDisplay:_0x582b53,originalVisibility:_0x55ce7b})=>{const _0x5ede39=_0x53c028;_0x1e38e1[_0x5ede39(0x1b3)][_0x5ede39(0x188)]=_0x582b53,_0x1e38e1[_0x5ede39(0x1b3)][_0x5ede39(0x18c)]=_0x55ce7b;});}[_0x473cc4(0x17d)](_0x59d78d){const _0x3ca0f6=_0x473cc4,_0x3facd6=[];let _0x1e91b3=_0x59d78d;for(;_0x1e91b3&&_0x1e91b3!==document[_0x3ca0f6(0x180)];){const _0x3d3a19=window[_0x3ca0f6(0x1ca)](_0x1e91b3);_0x3ca0f6(0x160)!==_0x3d3a19[_0x3ca0f6(0x188)]&&_0x3ca0f6(0x193)!==_0x3d3a19[_0x3ca0f6(0x18c)]||(_0x3facd6[_0x3ca0f6(0x1dc)]({'element':_0x1e91b3,'originalDisplay':_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x188)],'originalVisibility':_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x18c)]}),_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x188)]=_0x3ca0f6(0x190),_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x18c)]=_0x3ca0f6(0x157)),_0x1e91b3=_0x1e91b3[_0x3ca0f6(0x159)];}return _0x3facd6;}[_0x473cc4(0x184)](){const _0x2c75f7=_0x473cc4;let _0x4d15e9,_0x1af885;return this[_0x2c75f7(0x1b4)]?.[_0x2c75f7(0x1a1)]?(_0x4d15e9=this[_0x2c75f7(0x1b4)][_0x2c75f7(0x1a1)][_0x2c75f7(0x15d)](!0x0),_0x1af885=this[_0x2c75f7(0x17f)](_0x4d15e9)):(_0x4d15e9=document[_0x2c75f7(0x175)](_0x2c75f7(0x154)),_0x1af885=_0x4d15e9),{'calculationContainer':_0x4d15e9,'targetContainer':_0x1af885};}[_0x473cc4(0x16c)](){const _0x5166b5=_0x473cc4,{calculationContainer:_0x48af77,targetContainer:_0x841373}=this[_0x5166b5(0x184)](),_0x7b0106=this[_0x5166b5(0x17b)]();this[_0x5166b5(0x1b0)](_0x48af77,_0x7b0106);const _0x4a5b1c=this[_0x5166b5(0x1b4)]?.[_0x5166b5(0x1a1)]||this[_0x5166b5(0x1cf)],_0x10418c=_0x4a5b1c?.[_0x5166b5(0x159)];_0x10418c?_0x10418c[_0x5166b5(0x14c)](_0x48af77):document[_0x5166b5(0x180)][_0x5166b5(0x14c)](_0x48af77),_0x48af77[_0x5166b5(0x151)]=_0x841373;const _0xd10414=this[_0x5166b5(0x17d)](_0x10418c||null);return _0x48af77[_0x5166b5(0x1a8)],_0x48af77[_0x5166b5(0x169)]=_0xd10414,_0x48af77;}[_0x473cc4(0x176)](_0x1b4370,_0x43c8e5){const _0x35a137=_0x473cc4,_0x222a95=_0x1b4370[_0x35a137(0x151)]||_0x1b4370,_0x1a2b25=[],{rowCount:_0x51d71e}=this[_0x35a137(0x1db)](_0x222a95,_0x43c8e5);if(_0x51d71e<=this[_0x35a137(0x1ab)][_0x35a137(0x18a)])return _0x1a2b25;const _0x23faa8=_0x43c8e5[_0x35a137(0x174)]();for(;_0x23faa8[_0x35a137(0x14d)]>0x0;){if(this[_0x35a137(0x1c6)](_0x1b4370,_0x222a95,_0x23faa8)){const _0x1e4b00=_0x43c8e5[_0x35a137(0x1cc)](_0x3cc0b6=>!_0x23faa8[_0x35a137(0x1cd)](_0x3cc0b6));_0x1a2b25[_0x35a137(0x1dc)](..._0x1e4b00);break;}if(!_0x23faa8[_0x35a137(0x16b)]())break;}return _0x1a2b25;}[_0x473cc4(0x1db)](_0x2abf6f,_0x2ff570){const _0x1f7256=_0x473cc4;_0x2abf6f[_0x1f7256(0x170)]='',_0x2ff570[_0x1f7256(0x191)](_0x449b77=>{const _0x57f848=_0x1f7256;if(_0x449b77[_0x57f848(0x1a1)]){const _0x2ba41e=_0x449b77[_0x57f848(0x1a1)][_0x57f848(0x15d)](!0x0);_0x2abf6f[_0x57f848(0x14c)](_0x2ba41e);}}),_0x2abf6f[_0x1f7256(0x1a8)];const _0x2c397c=_0x2abf6f[_0x1f7256(0x16a)],_0xba668d=[];return Array[_0x1f7256(0x179)](_0x2c397c)[_0x1f7256(0x191)](_0x34080d=>{const _0x10f4c5=_0x1f7256,_0x31adbc=_0x34080d[_0x10f4c5(0x1ae)]()[_0x10f4c5(0x1af)];_0xba668d[_0x10f4c5(0x1c9)](_0xef0f4e=>Math[_0x10f4c5(0x1ce)](_0xef0f4e-_0x31adbc)<this[_0x10f4c5(0x1ab)][_0x10f4c5(0x14b)])||_0xba668d[_0x10f4c5(0x1dc)](_0x31adbc);}),{'rowCount':_0xba668d[_0x1f7256(0x14d)]};}[_0x473cc4(0x1bf)](){const _0x522e3f=_0x473cc4,_0x8351c7=document[_0x522e3f(0x175)](_0x522e3f(0x1bb));return _0x8351c7[_0x522e3f(0x182)]=this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x16f)],this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x1c1)]&&_0x8351c7[_0x522e3f(0x1ad)][_0x522e3f(0x1da)](this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x1c1)]),_0x8351c7[_0x522e3f(0x16d)]=_0x522e3f(0x1b2),_0x8351c7;}[_0x473cc4(0x1c6)](_0x449f2c,_0x413683,_0xc0be33){const _0x289df9=_0x473cc4;this[_0x289df9(0x1db)](_0x413683,_0xc0be33);const _0x591866=this[_0x289df9(0x1bf)]();_0x449f2c[_0x289df9(0x14c)](_0x591866),_0x449f2c[_0x289df9(0x1a8)];const _0x4d6063=[..._0x413683[_0x289df9(0x16a)],_0x591866],_0x550cdc=[];_0x4d6063[_0x289df9(0x191)](_0x590824=>{const _0x251987=_0x289df9,_0x169502=_0x590824[_0x251987(0x1ae)]()[_0x251987(0x1af)];_0x550cdc[_0x251987(0x1c9)](_0x570b5d=>Math[_0x251987(0x1ce)](_0x570b5d-_0x169502)<this[_0x251987(0x1ab)][_0x251987(0x14b)])||_0x550cdc[_0x251987(0x1dc)](_0x169502);});const _0x15ecf6=_0x550cdc[_0x289df9(0x14d)];return _0x591866[_0x289df9(0x1a7)](),_0x15ecf6<=this[_0x289df9(0x1ab)][_0x289df9(0x18a)];}[_0x473cc4(0x150)](_0x5071b8,_0x808e89){const _0x5e5060=_0x473cc4;this[_0x5e5060(0x19f)][_0x5e5060(0x167)](),this[_0x5e5060(0x16e)][_0x5e5060(0x167)](),_0x5071b8[_0x5e5060(0x191)](_0x182895=>{const _0x34ed6c=_0x5e5060;_0x808e89[_0x34ed6c(0x1cd)](_0x182895)?this[_0x34ed6c(0x16e)][_0x34ed6c(0x1da)](_0x182895):this[_0x34ed6c(0x19f)][_0x34ed6c(0x1da)](_0x182895);});}[_0x473cc4(0x18d)](_0x17b751){const _0x3e9322=_0x473cc4;if(_0x17b751>0x0&&!this[_0x3e9322(0x18f)]&&this[_0x3e9322(0x163)](),_0x17b751>0x0&&this[_0x3e9322(0x18f)]){const _0x5b6869=''+this[_0x3e9322(0x1ab)][_0x3e9322(0x1d9)]+(_0x17b751<0x63?_0x17b751:'99');this[_0x3e9322(0x18f)][_0x3e9322(0x1a5)]=_0x5b6869;}this[_0x3e9322(0x195)](),this[_0x3e9322(0x1c7)](),this[_0x3e9322(0x192)]();}[_0x473cc4(0x14a)](_0xb3255,_0x246d08){const _0x21dd3c=_0x473cc4;this[_0x21dd3c(0x150)](_0xb3255,_0x246d08),this[_0x21dd3c(0x18d)](_0x246d08[_0x21dd3c(0x14d)]);}[_0x473cc4(0x1c8)](){const _0x48bc97=_0x473cc4;this[_0x48bc97(0x1cf)]&&_0x48bc97(0x1bc)!=typeof IntersectionObserver&&(this[_0x48bc97(0x186)]=new IntersectionObserver(_0x30ca2e=>{const _0x49c58f=_0x48bc97;_0x30ca2e[0x0][_0x49c58f(0x1c4)]&&this[_0x49c58f(0x196)]&&requestAnimationFrame(()=>{const _0x422e7f=_0x49c58f;this[_0x422e7f(0x1b5)]();});},{'threshold':0.01,'rootMargin':_0x48bc97(0x1c5)}),this[_0x48bc97(0x186)][_0x48bc97(0x1a0)](this[_0x48bc97(0x1cf)]));}[_0x473cc4(0x153)](){const _0x32dc91=_0x473cc4;if(!this[_0x32dc91(0x1cf)])return!0x1;if(!this[_0x32dc91(0x1cf)][_0x32dc91(0x1a3)])return!0x1;const _0x3bd16e=this[_0x32dc91(0x1cf)][_0x32dc91(0x1ae)]();if(0x0===_0x3bd16e[_0x32dc91(0x1c2)]||0x0===_0x3bd16e[_0x32dc91(0x197)])return!0x1;const _0x3f88f0=window[_0x32dc91(0x171)]||document[_0x32dc91(0x1ba)][_0x32dc91(0x166)],_0x4640ba=window[_0x32dc91(0x19c)]||document[_0x32dc91(0x1ba)][_0x32dc91(0x178)],_0x28d786=0xc8;return _0x3bd16e[_0x32dc91(0x17c)]>=-0xc8&&_0x3bd16e[_0x32dc91(0x1af)]<=_0x3f88f0+_0x28d786&&_0x3bd16e[_0x32dc91(0x1d7)]>=-0xc8&&_0x3bd16e[_0x32dc91(0x18e)]<=_0x4640ba+_0x28d786;}}