@ckeditor/ckeditor5-ai 47.0.0-alpha.3 → 47.0.0-alpha.4

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 (107) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/legacyerrors.js +1 -1
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  22. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  23. package/src/aiballoon/aiballoon.js +1 -1
  24. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  25. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  26. package/src/aiballoon/ui/aiballoonview.js +1 -1
  27. package/src/aichat/aichat.js +1 -1
  28. package/src/aichat/aichatcontroller.js +1 -1
  29. package/src/aichat/aichatui.js +1 -1
  30. package/src/aichat/model/aichatcontext.js +1 -1
  31. package/src/aichat/model/aichatconversation.js +1 -1
  32. package/src/aichat/model/aichatinteraction.js +1 -1
  33. package/src/aichat/model/aichatmodels.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  55. package/src/aichat/utils/promisequeue.js +1 -1
  56. package/src/aichathistory/aichathistory.js +1 -1
  57. package/src/aichathistory/aichathistorycontroller.js +1 -1
  58. package/src/aichathistory/aichathistoryui.js +1 -1
  59. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  60. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  61. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  62. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  63. package/src/aicore/aiconnector.js +1 -1
  64. package/src/aicore/aiediting.js +1 -1
  65. package/src/aicore/model/aicapabilities.js +1 -1
  66. package/src/aicore/model/aiinteraction.js +1 -1
  67. package/src/aicore/model/aireply.js +1 -1
  68. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  69. package/src/aicore/ui/aidisclaimerview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  75. package/src/aicore/utils/createresizebutton.js +1 -1
  76. package/src/aicore/utils/documentposition.js +1 -1
  77. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  78. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  79. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  80. package/src/aiquickactions/aiquickactions.js +1 -1
  81. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  82. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  83. package/src/aiquickactions/aiquickactionsui.js +1 -1
  84. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  87. package/src/aireviewmode/aireviewmode.js +1 -1
  88. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  89. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  90. package/src/aireviewmode/aireviewmodeui.js +1 -1
  91. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  92. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  93. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  94. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  95. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  96. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  97. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  98. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  99. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  100. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  101. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  102. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  103. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  104. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  105. package/src/aitabs/aitabs.js +1 -1
  106. package/src/aitabs/tabs/aitabsview.js +1 -1
  107. package/src/aitabs/tabs/tabbuttonview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11b550=_0x376e;function _0x376e(_0x22451b,_0x4f9ef1){const _0x40d57c=_0x40d5();return _0x376e=function(_0x376e5e,_0x6289ed){_0x376e5e=_0x376e5e-0x1ee;let _0x19c8fa=_0x40d57c[_0x376e5e];return _0x19c8fa;},_0x376e(_0x22451b,_0x4f9ef1);}(function(_0x10a805,_0x19fd46){const _0x551be6=_0x376e,_0x10d707=_0x10a805();while(!![]){try{const _0x3a4749=parseInt(_0x551be6(0x20f))/0x1+-parseInt(_0x551be6(0x1f9))/0x2+-parseInt(_0x551be6(0x213))/0x3*(-parseInt(_0x551be6(0x205))/0x4)+-parseInt(_0x551be6(0x203))/0x5*(-parseInt(_0x551be6(0x1ef))/0x6)+-parseInt(_0x551be6(0x214))/0x7*(-parseInt(_0x551be6(0x20a))/0x8)+-parseInt(_0x551be6(0x204))/0x9*(-parseInt(_0x551be6(0x20e))/0xa)+-parseInt(_0x551be6(0x1f1))/0xb;if(_0x3a4749===_0x19fd46)break;else _0x10d707['push'](_0x10d707['shift']());}catch(_0x5eddfc){_0x10d707['push'](_0x10d707['shift']());}}}(_0x40d5,0x9d1eb));function _0x40d5(){const _0x1652ad=['3cUmDwG','7pQVnuI','add','change:_hasContext','enabledCommandsIds','_commandDefinitions','getItems','set','isCollapsed','2454786KLfIFn','model','29040209BbjTIY','refresh','ai.assistant.disabledElements','execute','_hasContext','getSelectedBlocks','showUI','getRanges','355556LueQkA','includes','get','requiresContent','plugins','from','config','isEnabled','values','element','10VMONJs','49689cObThg','1604228OrvSwN','hasContent','selection','custom','isEmpty','5457440mefeVE','name','editor','getFirstRange','1790yARjgY','571602ILuIpT','document','length','change:isEnabled'];_0x40d5=function(){return _0x1652ad;};return _0x40d5();}import{Command as _0x54fa53}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x587b26}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x54fa53{[_0x11b550(0x218)];constructor(_0x50276c,_0x5e585e){const _0x23efa7=_0x11b550;super(_0x50276c),this[_0x23efa7(0x218)]=_0x5e585e,this[_0x23efa7(0x21a)](_0x23efa7(0x217),[]),this['on'](_0x23efa7(0x216),(_0x18f629,_0x44714f,_0xf0b306)=>{const _0x508e8d=_0x23efa7;this[_0x508e8d(0x200)]&&(this[_0x508e8d(0x217)]=ns(this[_0x508e8d(0x218)],_0xf0b306));}),this[_0x23efa7(0x21a)](_0x23efa7(0x1f5),!0x1),this['on'](_0x23efa7(0x212),(_0x14d412,_0x4a66b8,_0xffd770)=>{const _0x4d12d7=_0x23efa7;this[_0x4d12d7(0x217)]=_0xffd770?ns(this[_0x4d12d7(0x218)],this[_0x4d12d7(0x1f5)]):[];});}[_0x11b550(0x1f2)](){const _0x78ed5=_0x11b550,_0x24d896=this[_0x78ed5(0x20c)][_0x78ed5(0x1f0)];this[_0x78ed5(0x1f5)]=function(_0x14b19f){const _0x2dc452=_0x78ed5,_0x4e96f5=_0x14b19f[_0x2dc452(0x210)][_0x2dc452(0x207)];return _0x4e96f5[_0x2dc452(0x1ee)]?0x0!==[..._0x4e96f5[_0x2dc452(0x1f6)]()][_0x2dc452(0x211)]&&![..._0x4e96f5[_0x2dc452(0x1f6)]()][0x0][_0x2dc452(0x209)]:!!_0x14b19f[_0x2dc452(0x206)](_0x4e96f5[_0x2dc452(0x20d)]());}(_0x24d896);const _0x1872bf=_0x24d896[_0x78ed5(0x210)][_0x78ed5(0x207)],_0x48467b=this[_0x78ed5(0x20c)][_0x78ed5(0x1ff)][_0x78ed5(0x1fb)](_0x78ed5(0x1f3));for(const _0x39d420 of _0x1872bf[_0x78ed5(0x1f8)]())for(const _0x433b62 of _0x39d420[_0x78ed5(0x219)]())if(_0x433b62['is'](_0x78ed5(0x202))&&_0x48467b[_0x78ed5(0x1fa)](_0x433b62[_0x78ed5(0x20b)]))return void(this[_0x78ed5(0x200)]=!0x1);this[_0x78ed5(0x200)]=!0x0;}[_0x11b550(0x1f4)](_0x3be300='',_0x2f5632='',_0x3c0d8b=_0x11b550(0x208)){const _0x5e8d4d=_0x11b550;this[_0x5e8d4d(0x20c)][_0x5e8d4d(0x1fd)][_0x5e8d4d(0x1fb)](_0x587b26)[_0x5e8d4d(0x1f7)](_0x3be300,_0x2f5632,_0x3c0d8b);}}function ns(_0x5151ac,_0x532bae){const _0x11498b=_0x11b550,_0x1e2cb4=new Set();for(const _0x2576da of _0x5151ac[_0x11498b(0x201)]())(_0x532bae||!0x1===_0x2576da[_0x11498b(0x1fc)])&&_0x1e2cb4[_0x11498b(0x215)](_0x2576da['id']);return Array[_0x11498b(0x1fe)](_0x1e2cb4);}
23
+ const _0x251163=_0x5718;(function(_0x6f510e,_0x580362){const _0x512d25=_0x5718,_0x1b2647=_0x6f510e();while(!![]){try{const _0x3a5adc=parseInt(_0x512d25(0x189))/0x1*(-parseInt(_0x512d25(0x17a))/0x2)+-parseInt(_0x512d25(0x191))/0x3*(parseInt(_0x512d25(0x178))/0x4)+-parseInt(_0x512d25(0x170))/0x5*(-parseInt(_0x512d25(0x16e))/0x6)+-parseInt(_0x512d25(0x18d))/0x7+parseInt(_0x512d25(0x198))/0x8+-parseInt(_0x512d25(0x180))/0x9*(-parseInt(_0x512d25(0x18f))/0xa)+parseInt(_0x512d25(0x18e))/0xb;if(_0x3a5adc===_0x580362)break;else _0x1b2647['push'](_0x1b2647['shift']());}catch(_0x5d6dab){_0x1b2647['push'](_0x1b2647['shift']());}}}(_0x47fc,0xce69a));import{Command as _0x3de4c0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2420ce}from'../aiassistantui.js';function _0x5718(_0x44b0ad,_0x14c84f){const _0x47fcac=_0x47fc();return _0x5718=function(_0x57182b,_0x9a133a){_0x57182b=_0x57182b-0x16c;let _0x46df34=_0x47fcac[_0x57182b];return _0x46df34;},_0x5718(_0x44b0ad,_0x14c84f);}function _0x47fc(){const _0x3f5fbd=['_commandDefinitions','getFirstRange','get','2601456pTlrik','getSelectedBlocks','model','934158CllAIo','getItems','45hwiJSv','change:_hasContext','element','document','requiresContent','add','enabledCommandsIds','editor','12QUwUqg','refresh','4996KiaVpv','selection','showUI','execute','plugins','values','9hRtNyc','isEnabled','includes','length','custom','hasContent','set','isCollapsed','ai.assistant.disabledElements','542rMXReX','change:isEnabled','from','name','1554994rEpCmt','13114321ZMHCCh','7268010YegDQK','isEmpty','1223907DBjPeE','getRanges','config','_hasContext'];_0x47fc=function(){return _0x3f5fbd;};return _0x47fc();}export class ShowAIAssistantCommand extends _0x3de4c0{[_0x251163(0x195)];constructor(_0x1c511c,_0x32dba8){const _0xcb2cd5=_0x251163;super(_0x1c511c),this[_0xcb2cd5(0x195)]=_0x32dba8,this[_0xcb2cd5(0x186)](_0xcb2cd5(0x176),[]),this['on'](_0xcb2cd5(0x171),(_0x580af2,_0xa3ffe7,_0x51d5e7)=>{const _0x10c1b7=_0xcb2cd5;this[_0x10c1b7(0x181)]&&(this[_0x10c1b7(0x176)]=ns(this[_0x10c1b7(0x195)],_0x51d5e7));}),this[_0xcb2cd5(0x186)](_0xcb2cd5(0x194),!0x1),this['on'](_0xcb2cd5(0x18a),(_0x3c31ec,_0x1ee5a8,_0x4bd0af)=>{const _0x189aab=_0xcb2cd5;this[_0x189aab(0x176)]=_0x4bd0af?ns(this[_0x189aab(0x195)],this[_0x189aab(0x194)]):[];});}[_0x251163(0x179)](){const _0x57a67f=_0x251163,_0x4f0086=this[_0x57a67f(0x177)][_0x57a67f(0x16d)];this[_0x57a67f(0x194)]=function(_0x4f1756){const _0x5bad0f=_0x57a67f,_0x1dd200=_0x4f1756[_0x5bad0f(0x173)][_0x5bad0f(0x17b)];return _0x1dd200[_0x5bad0f(0x187)]?0x0!==[..._0x1dd200[_0x5bad0f(0x16c)]()][_0x5bad0f(0x183)]&&![..._0x1dd200[_0x5bad0f(0x16c)]()][0x0][_0x5bad0f(0x190)]:!!_0x4f1756[_0x5bad0f(0x185)](_0x1dd200[_0x5bad0f(0x196)]());}(_0x4f0086);const _0x531c22=_0x4f0086[_0x57a67f(0x173)][_0x57a67f(0x17b)],_0x4d15bc=this[_0x57a67f(0x177)][_0x57a67f(0x193)][_0x57a67f(0x197)](_0x57a67f(0x188));for(const _0x5bdbc9 of _0x531c22[_0x57a67f(0x192)]())for(const _0x2f9779 of _0x5bdbc9[_0x57a67f(0x16f)]())if(_0x2f9779['is'](_0x57a67f(0x172))&&_0x4d15bc[_0x57a67f(0x182)](_0x2f9779[_0x57a67f(0x18c)]))return void(this[_0x57a67f(0x181)]=!0x1);this[_0x57a67f(0x181)]=!0x0;}[_0x251163(0x17d)](_0x156b73='',_0x248fee='',_0x188f36=_0x251163(0x184)){const _0x5ac1f6=_0x251163;this[_0x5ac1f6(0x177)][_0x5ac1f6(0x17e)][_0x5ac1f6(0x197)](_0x2420ce)[_0x5ac1f6(0x17c)](_0x156b73,_0x248fee,_0x188f36);}}function ns(_0x464646,_0x321c2c){const _0x3b6d2a=_0x251163,_0x4dfb24=new Set();for(const _0x5cc230 of _0x464646[_0x3b6d2a(0x17f)]())(_0x321c2c||!0x1===_0x5cc230[_0x3b6d2a(0x174)])&&_0x4dfb24[_0x3b6d2a(0x175)](_0x5cc230['id']);return Array[_0x3b6d2a(0x18b)](_0x4dfb24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5eeb50=_0x54ee;(function(_0x565964,_0x612625){const _0x28696b=_0x54ee,_0x5071d8=_0x565964();while(!![]){try{const _0x37573e=-parseInt(_0x28696b(0x21b))/0x1*(-parseInt(_0x28696b(0x208))/0x2)+parseInt(_0x28696b(0x1e4))/0x3+-parseInt(_0x28696b(0x20c))/0x4*(-parseInt(_0x28696b(0x1f6))/0x5)+parseInt(_0x28696b(0x1fe))/0x6*(parseInt(_0x28696b(0x21c))/0x7)+parseInt(_0x28696b(0x1fb))/0x8*(-parseInt(_0x28696b(0x203))/0x9)+parseInt(_0x28696b(0x21e))/0xa*(-parseInt(_0x28696b(0x1e7))/0xb)+-parseInt(_0x28696b(0x1f0))/0xc;if(_0x37573e===_0x612625)break;else _0x5071d8['push'](_0x5071d8['shift']());}catch(_0x4f6951){_0x5071d8['push'](_0x5071d8['shift']());}}}(_0x353b,0x4d76e));import{ContextPlugin as _0x371f94}from'ckeditor5/src/core.js';import{AIConnector as _0x50bba2}from'../aicore/aiconnector.js';import{AIEditing as _0x5699a1}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4a35d6,AIBalloonView as _0x28112e}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x353b(){const _0x23401e=['ai-balloon-selection','isOfficialPlugin','close','locale','left','1216305fTGkIB','setupRotator','top','1179563QbPnvU','width','title','getBoundingClientRect','fire','plugins','bind','editing','delegate','3838704bkcrNO','index','length','getMarkersGroup','isPremiumPlugin','round','15oitdSh','AIEditing','requires','Dialog','hideFakeVisualSelection','8fGHkUR','pluginName','ranges','6786SpdUqt','\x20ai-balloon-rotator','dialogClosed','aiBalloon','_calculateDialogPosition','3513528VrmgZq','showFakeVisualSelection','ai-balloon-','_calculateOptimalTopPosition','isOpen','65242yuOlgN','_config','markers','innerHeight','835748cIORaP','icon','showRotator','ai-selection','get','_setupVisualSelection','balloonView','AIBalloon','show','context','model','hide','open','height','ai-balloon','2qyKrlY','231BMbPfB','_showDialog','10sBrPRy'];_0x353b=function(){return _0x23401e;};return _0x353b();}import{getAllMarkersDomElementsSorted as _0x361e14}from'@ckeditor/ckeditor5-collaboration-core';function _0x54ee(_0x2d58b5,_0x1ce08a){const _0x353b54=_0x353b();return _0x54ee=function(_0x54ee8a,_0x311b30){_0x54ee8a=_0x54ee8a-0x1e4;let _0x2aa441=_0x353b54[_0x54ee8a];return _0x2aa441;},_0x54ee(_0x2d58b5,_0x1ce08a);}import{getEditorFromContext as _0x15d3ac}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4a35d6,_0x5eeb50(0x200)];export class AIBalloon extends _0x371f94{static get[_0x5eeb50(0x1f8)](){return[_0x50bba2,_0x5699a1];}static get[_0x5eeb50(0x1fc)](){const _0x1fc48d=_0x5eeb50;return _0x1fc48d(0x213);}static get[_0x5eeb50(0x220)](){return!0x0;}static get[_0x5eeb50(0x1f4)](){return!0x0;}[_0x5eeb50(0x207)]=!0x1;[_0x5eeb50(0x209)];[_0x5eeb50(0x218)](_0x279ca3){const _0x454e00=_0x5eeb50,_0x5372ed=_0x15d3ac(this[_0x454e00(0x215)]);this[_0x454e00(0x209)]=_0x279ca3,this[_0x454e00(0x212)]=new _0x28112e(_0x5372ed[_0x454e00(0x222)],_0x279ca3),this[_0x454e00(0x212)][_0x454e00(0x1ef)](..._0x4a35d6)['to'](this),this[_0x454e00(0x21d)](_0x279ca3);}[_0x5eeb50(0x221)](){const _0xa262ef=_0x5eeb50;_0x15d3ac(this[_0xa262ef(0x215)])[_0xa262ef(0x1ec)][_0xa262ef(0x210)](_0xa262ef(0x1f9))[_0xa262ef(0x217)]();}[_0x5eeb50(0x211)](_0x44e5db,_0x56be74){const _0x32a956=_0x5eeb50;this[_0x32a956(0x215)][_0x32a956(0x1ec)][_0x32a956(0x210)](_0x5699a1)[_0x32a956(0x204)](_0x44e5db,_0x32a956(0x205)+_0x56be74,!0x0,!0x0);}[_0x5eeb50(0x21d)](_0xb1aeb3){const _0x5dfabf=_0x5eeb50,_0xebfcd4=_0x15d3ac(this[_0x5dfabf(0x215)]);this[_0x5dfabf(0x211)](_0xb1aeb3[_0x5dfabf(0x1fd)],_0xb1aeb3[_0x5dfabf(0x1f1)]),_0xebfcd4[_0x5dfabf(0x1ec)][_0x5dfabf(0x210)](_0x5dfabf(0x1f9))[_0x5dfabf(0x214)]({'title':_0xb1aeb3[_0x5dfabf(0x1e9)],'icon':_0xb1aeb3[_0x5dfabf(0x20d)],'hasCloseButton':!0x0,'id':_0x5dfabf(0x201),'position':this[_0x5dfabf(0x202)][_0x5dfabf(0x1ed)](this),'className':_0x5dfabf(0x21a)+(_0xb1aeb3[_0x5dfabf(0x20e)]?_0x5dfabf(0x1ff):''),'content':this[_0x5dfabf(0x212)],'onShow':_0x12a4c8=>{const _0x1b575c=_0x5dfabf;_0xb1aeb3[_0x1b575c(0x20e)]&&this[_0x1b575c(0x212)][_0x1b575c(0x1e5)](_0x12a4c8),this[_0x1b575c(0x207)]=!0x0;},'onHide':()=>{const _0x3617ae=_0x5dfabf;this[_0x3617ae(0x215)][_0x3617ae(0x1ec)][_0x3617ae(0x210)](_0x3617ae(0x1f7))[_0x3617ae(0x1fa)](_0x3617ae(0x205)+_0xb1aeb3[_0x3617ae(0x1f1)]),this[_0x3617ae(0x1eb)](_0x3617ae(0x200)),this[_0x3617ae(0x207)]=!0x1;}});}[_0x5eeb50(0x202)](_0x517407,_0x53a75a){const _0x3a6c8a=_0x5eeb50,_0x764e67=_0x15d3ac(this[_0x3a6c8a(0x215)]);if(!_0x53a75a)return{'left':0x0,'top':0x0};const _0x3a7653=_0x361e14(_0x764e67[_0x3a6c8a(0x1ee)],[..._0x764e67[_0x3a6c8a(0x216)][_0x3a6c8a(0x20a)][_0x3a6c8a(0x1f3)](_0x3a6c8a(0x20f)),..._0x764e67[_0x3a6c8a(0x216)][_0x3a6c8a(0x20a)][_0x3a6c8a(0x1f3)](_0x3a6c8a(0x21f))]);if(!_0x3a7653||0x0===_0x3a7653[_0x3a6c8a(0x1f2)])return{'left':Math[_0x3a6c8a(0x1f5)](_0x53a75a[_0x3a6c8a(0x223)]+_0x53a75a[_0x3a6c8a(0x1e8)]/0x2-_0x517407[_0x3a6c8a(0x1e8)]/0x2),'top':Math[_0x3a6c8a(0x1f5)](_0x53a75a[_0x3a6c8a(0x1e6)]+_0x53a75a[_0x3a6c8a(0x219)]/0x2-_0x517407[_0x3a6c8a(0x219)]/0x2)};const _0x13d995=Math[_0x3a6c8a(0x1f5)](_0x53a75a[_0x3a6c8a(0x223)]+_0x53a75a[_0x3a6c8a(0x1e8)]/0x2-_0x517407[_0x3a6c8a(0x1e8)]/0x2),_0x410fe3=_0x3a7653[0x0][_0x3a6c8a(0x1ea)](),_0xef7e2d=_0x3a7653[_0x3a7653[_0x3a6c8a(0x1f2)]-0x1][_0x3a6c8a(0x1ea)](),_0x1a974c=_0x517407[_0x3a6c8a(0x219)],_0x5e0f8f=this[_0x3a6c8a(0x209)][_0x3a6c8a(0x20e)]?0x8:0x0;return{'left':_0x13d995,'top':this[_0x3a6c8a(0x206)](_0x410fe3,_0xef7e2d,_0x1a974c,_0x5e0f8f)};}[_0x5eeb50(0x206)](_0x18e30c,_0x5ac00b,_0x532a28,_0x25a714=0x0){const _0x16d324=_0x5eeb50,_0x5aba9f=_0x5ac00b[_0x16d324(0x1e6)]+_0x5ac00b[_0x16d324(0x219)],_0x527b3b=_0x18e30c[_0x16d324(0x1e6)]-_0x532a28-_0x25a714,_0x3e0110=window[_0x16d324(0x20b)]-_0x5aba9f-0xa,_0x3c5897=_0x18e30c[_0x16d324(0x1e6)]-_0x25a714-0xa;let _0x5a57f2;if(_0x3e0110>=_0x532a28)_0x5a57f2=_0x5aba9f+0xa;else{if(_0x3c5897>=_0x532a28)_0x5a57f2=_0x527b3b-0xa;else _0x5a57f2=_0x18e30c[_0x16d324(0x1e6)]+(_0x5ac00b[_0x16d324(0x1e6)]+_0x5ac00b[_0x16d324(0x219)])/0x2-(_0x532a28+_0x25a714)/0x2;}return _0x5a57f2;}}
23
+ const _0x41ba80=_0x17b9;(function(_0x4ee95c,_0x446acf){const _0x10b9d0=_0x17b9,_0x5ed7f8=_0x4ee95c();while(!![]){try{const _0x16f60d=-parseInt(_0x10b9d0(0x90))/0x1*(parseInt(_0x10b9d0(0xb0))/0x2)+parseInt(_0x10b9d0(0x95))/0x3*(-parseInt(_0x10b9d0(0x93))/0x4)+parseInt(_0x10b9d0(0x8f))/0x5*(parseInt(_0x10b9d0(0xc4))/0x6)+-parseInt(_0x10b9d0(0xab))/0x7*(-parseInt(_0x10b9d0(0x98))/0x8)+parseInt(_0x10b9d0(0xa3))/0x9*(-parseInt(_0x10b9d0(0xa2))/0xa)+-parseInt(_0x10b9d0(0xb2))/0xb+parseInt(_0x10b9d0(0x8d))/0xc;if(_0x16f60d===_0x446acf)break;else _0x5ed7f8['push'](_0x5ed7f8['shift']());}catch(_0x419561){_0x5ed7f8['push'](_0x5ed7f8['shift']());}}}(_0xf8bd,0xa1cbc));import{ContextPlugin as _0x1d5139}from'ckeditor5/src/core.js';import{AIConnector as _0x207f0e}from'../aicore/aiconnector.js';import{AIEditing as _0x148415}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x24e667,AIBalloonView as _0xeed289}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x8bfb1d}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x4a3fb5}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x24e667,_0x41ba80(0xa7)];export class AIBalloon extends _0x1d5139{static get[_0x41ba80(0x8c)](){return[_0x207f0e,_0x148415];}static get[_0x41ba80(0xb4)](){const _0xb2c915=_0x41ba80;return _0xb2c915(0xb5);}static get[_0x41ba80(0xa6)](){return!0x0;}static get[_0x41ba80(0xbd)](){return!0x0;}[_0x41ba80(0x97)]=!0x1;[_0x41ba80(0xc5)];[_0x41ba80(0xb1)](_0x37bafa){const _0x43d9d6=_0x41ba80,_0x23a979=_0x4a3fb5(this[_0x43d9d6(0xad)]);this[_0x43d9d6(0xc5)]=_0x37bafa,this[_0x43d9d6(0xbb)]=new _0xeed289(_0x23a979[_0x43d9d6(0xa1)],_0x37bafa),this[_0x43d9d6(0xbb)][_0x43d9d6(0x9e)](..._0x24e667)['to'](this),this[_0x43d9d6(0xbf)](_0x37bafa);}[_0x41ba80(0xaf)](){const _0x486a0e=_0x41ba80;_0x4a3fb5(this[_0x486a0e(0xad)])[_0x486a0e(0x96)][_0x486a0e(0xb7)](_0x486a0e(0xc2))[_0x486a0e(0xaa)]();}[_0x41ba80(0x91)](_0x27b436,_0x46fce3){const _0x491e75=_0x41ba80;this[_0x491e75(0xad)][_0x491e75(0x96)][_0x491e75(0xb7)](_0x148415)[_0x491e75(0xb6)](_0x27b436,_0x491e75(0xa9)+_0x46fce3,!0x0,!0x0);}[_0x41ba80(0xbf)](_0x38511e){const _0x4efd91=_0x41ba80,_0x529c88=_0x4a3fb5(this[_0x4efd91(0xad)]);this[_0x4efd91(0x91)](_0x38511e[_0x4efd91(0xbc)],_0x38511e[_0x4efd91(0xb3)]),_0x529c88[_0x4efd91(0x96)][_0x4efd91(0xb7)](_0x4efd91(0xc2))[_0x4efd91(0xba)]({'title':_0x38511e[_0x4efd91(0x9c)],'icon':_0x38511e[_0x4efd91(0xa0)],'hasCloseButton':!0x0,'id':_0x4efd91(0x9b),'position':this[_0x4efd91(0xc9)][_0x4efd91(0xbe)](this),'className':_0x4efd91(0x92)+(_0x38511e[_0x4efd91(0x9f)]?_0x4efd91(0xae):''),'content':this[_0x4efd91(0xbb)],'onShow':_0x43cebb=>{const _0x37baad=_0x4efd91;_0x38511e[_0x37baad(0x9f)]&&this[_0x37baad(0xbb)][_0x37baad(0xa8)](_0x43cebb),this[_0x37baad(0x97)]=!0x0;},'onHide':()=>{const _0x5300b4=_0x4efd91;this[_0x5300b4(0xad)][_0x5300b4(0x96)][_0x5300b4(0xb7)](_0x5300b4(0x8b))[_0x5300b4(0x8e)](_0x5300b4(0xa9)+_0x38511e[_0x5300b4(0xb3)]),this[_0x5300b4(0xca)](_0x5300b4(0xa7)),this[_0x5300b4(0x97)]=!0x1;}});}[_0x41ba80(0xc9)](_0x39a63e,_0x23fb46){const _0x193054=_0x41ba80,_0x18c74e=_0x4a3fb5(this[_0x193054(0xad)]);if(!_0x23fb46)return{'left':0x0,'top':0x0};const _0x4ddef1=_0x8bfb1d(_0x18c74e[_0x193054(0xc6)],[..._0x18c74e[_0x193054(0xb9)][_0x193054(0xc1)][_0x193054(0x99)](_0x193054(0xc3)),..._0x18c74e[_0x193054(0xb9)][_0x193054(0xc1)][_0x193054(0x99)](_0x193054(0xc7))]);if(!_0x4ddef1||0x0===_0x4ddef1[_0x193054(0x9d)])return{'left':Math[_0x193054(0xac)](_0x23fb46[_0x193054(0xc0)]+_0x23fb46[_0x193054(0xc8)]/0x2-_0x39a63e[_0x193054(0xc8)]/0x2),'top':Math[_0x193054(0xac)](_0x23fb46[_0x193054(0x94)]+_0x23fb46[_0x193054(0xb8)]/0x2-_0x39a63e[_0x193054(0xb8)]/0x2)};const _0x39b542=Math[_0x193054(0xac)](_0x23fb46[_0x193054(0xc0)]+_0x23fb46[_0x193054(0xc8)]/0x2-_0x39a63e[_0x193054(0xc8)]/0x2),_0xddfe9e=_0x4ddef1[0x0][_0x193054(0x9a)](),_0x3c2657=_0x4ddef1[_0x4ddef1[_0x193054(0x9d)]-0x1][_0x193054(0x9a)](),_0x2c8dbe=_0x39a63e[_0x193054(0xb8)],_0x269eec=this[_0x193054(0xc5)][_0x193054(0x9f)]?0x8:0x0;return{'left':_0x39b542,'top':this[_0x193054(0xa5)](_0xddfe9e,_0x3c2657,_0x2c8dbe,_0x269eec)};}[_0x41ba80(0xa5)](_0x151ade,_0x39f69a,_0x505d9b,_0x3346cc=0x0){const _0x277f02=_0x41ba80,_0x15d38a=_0x39f69a[_0x277f02(0x94)]+_0x39f69a[_0x277f02(0xb8)],_0x4dc32b=_0x151ade[_0x277f02(0x94)]-_0x505d9b-_0x3346cc,_0x5ade2d=window[_0x277f02(0xa4)]-_0x15d38a-0xa,_0x1705e4=_0x151ade[_0x277f02(0x94)]-_0x3346cc-0xa;let _0x5684e7;if(_0x5ade2d>=_0x505d9b)_0x5684e7=_0x15d38a+0xa;else{if(_0x1705e4>=_0x505d9b)_0x5684e7=_0x4dc32b-0xa;else _0x5684e7=_0x151ade[_0x277f02(0x94)]+(_0x39f69a[_0x277f02(0x94)]+_0x39f69a[_0x277f02(0xb8)])/0x2-(_0x505d9b+_0x3346cc)/0x2;}return _0x5684e7;}}function _0x17b9(_0x2cb844,_0x226b8a){const _0xf8bde4=_0xf8bd();return _0x17b9=function(_0x17b942,_0x5b05c8){_0x17b942=_0x17b942-0x8b;let _0x2615ca=_0xf8bde4[_0x17b942];return _0x2615ca;},_0x17b9(_0x2cb844,_0x226b8a);}function _0xf8bd(){const _0x4778cd=['setupRotator','ai-balloon-','hide','154aokTMv','round','context','\x20ai-balloon-rotator','close','34dZuBed','open','14255626LTZLvd','index','pluginName','AIBalloon','showFakeVisualSelection','get','height','model','show','balloonView','ranges','isPremiumPlugin','bind','_showDialog','left','markers','Dialog','ai-selection','606wRVEgm','_config','editing','ai-balloon-selection','width','_calculateDialogPosition','fire','AIEditing','requires','42962112DbeKPe','hideFakeVisualSelection','47165rxBhLb','74339YOLRuj','_setupVisualSelection','ai-balloon','15452YUHxEd','top','597JpHfiS','plugins','isOpen','274912JtdTtB','getMarkersGroup','getBoundingClientRect','aiBalloon','title','length','delegate','showRotator','icon','locale','10AthPKX','11679615KExgjH','innerHeight','_calculateOptimalTopPosition','isOfficialPlugin','dialogClosed'];_0xf8bd=function(){return _0x4778cd;};return _0xf8bd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xa59109,_0xf8d7e7){var _0x6ff300=_0x17d6,_0x564d55=_0xa59109();while(!![]){try{var _0x2496c7=-parseInt(_0x6ff300(0x144))/0x1*(parseInt(_0x6ff300(0x141))/0x2)+-parseInt(_0x6ff300(0x13f))/0x3+-parseInt(_0x6ff300(0x146))/0x4+-parseInt(_0x6ff300(0x13b))/0x5*(parseInt(_0x6ff300(0x13c))/0x6)+parseInt(_0x6ff300(0x13d))/0x7+parseInt(_0x6ff300(0x143))/0x8+parseInt(_0x6ff300(0x140))/0x9*(parseInt(_0x6ff300(0x13e))/0xa);if(_0x2496c7===_0xf8d7e7)break;else _0x564d55['push'](_0x564d55['shift']());}catch(_0x1524dd){_0x564d55['push'](_0x564d55['shift']());}}}(_0x88fa,0xeb7d8));function _0x17d6(_0x57e75e,_0xcb1aa8){var _0x88fa3=_0x88fa();return _0x17d6=function(_0x17d6b8,_0x36f847){_0x17d6b8=_0x17d6b8-0x138;var _0x2b2138=_0x88fa3[_0x17d6b8];return _0x2b2138;},_0x17d6(_0x57e75e,_0xcb1aa8);}import{View as _0x531159}from'ckeditor5/src/ui.js';function _0x88fa(){var _0x26bfda=['502894BcPhDm','446910vRkbvY','2392935jviWqu','801PdzkZH','1790722aiRbAY','ck-ai-balloon__disclaimer','1135640jIiocc','1JmrGau','ck-ai-balloon__disclaimer-content','3509640kMdCAt','div','AI_DISCLAIMER_TEXT','setTemplate','10ylngVi','1968936eeBsHF'];_0x88fa=function(){return _0x26bfda;};return _0x88fa();}import{getTranslation as _0x14e877}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x531159{constructor(_0x3b39de){var _0x2a129e=_0x17d6;super(_0x3b39de),this[_0x2a129e(0x13a)]({'tag':_0x2a129e(0x138),'attributes':{'class':['ck',_0x2a129e(0x142)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2a129e(0x145)]},'children':[{'text':_0x14e877(_0x3b39de,_0x2a129e(0x139))}]}]});}}
23
+ (function(_0x178ae8,_0x64a0d0){var _0x7064df=_0x1c0a,_0x1f7bde=_0x178ae8();while(!![]){try{var _0xf7a45b=-parseInt(_0x7064df(0x1ec))/0x1*(-parseInt(_0x7064df(0x1eb))/0x2)+parseInt(_0x7064df(0x1e7))/0x3+parseInt(_0x7064df(0x1e5))/0x4+parseInt(_0x7064df(0x1e6))/0x5*(parseInt(_0x7064df(0x1e2))/0x6)+-parseInt(_0x7064df(0x1e3))/0x7+parseInt(_0x7064df(0x1e8))/0x8*(parseInt(_0x7064df(0x1e0))/0x9)+-parseInt(_0x7064df(0x1e1))/0xa*(parseInt(_0x7064df(0x1ed))/0xb);if(_0xf7a45b===_0x64a0d0)break;else _0x1f7bde['push'](_0x1f7bde['shift']());}catch(_0x2911a0){_0x1f7bde['push'](_0x1f7bde['shift']());}}}(_0x227c,0xdd2d0));import{View as _0x2a3346}from'ckeditor5/src/ui.js';function _0x227c(){var _0x332c3c=['div','169326xKMDUu','10KWqycc','11ctwORm','ck-ai-balloon__disclaimer','AI_DISCLAIMER_TEXT','242208BYRJMy','33114010vAzYAk','10662fccRXA','1068564JpnnKk','ck-ai-balloon__disclaimer-content','1895068vDIiBV','145FHRXhG','3827073SIkqkn','512XaXGvA','setTemplate'];_0x227c=function(){return _0x332c3c;};return _0x227c();}function _0x1c0a(_0x55c7cc,_0x10cb99){var _0x227cfc=_0x227c();return _0x1c0a=function(_0x1c0a13,_0xd99b71){_0x1c0a13=_0x1c0a13-0x1de;var _0x3d77eb=_0x227cfc[_0x1c0a13];return _0x3d77eb;},_0x1c0a(_0x55c7cc,_0x10cb99);}import{getTranslation as _0x55de2c}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x2a3346{constructor(_0x2e5cb5){var _0x573cb8=_0x1c0a;super(_0x2e5cb5),this[_0x573cb8(0x1e9)]({'tag':_0x573cb8(0x1ea),'attributes':{'class':['ck',_0x573cb8(0x1de)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x573cb8(0x1e4)]},'children':[{'text':_0x55de2c(_0x2e5cb5,_0x573cb8(0x1df))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x424635=_0xcd83;(function(_0x1702db,_0x1ac6c0){const _0x38b39a=_0xcd83,_0x44cf89=_0x1702db();while(!![]){try{const _0xadae0=-parseInt(_0x38b39a(0x1da))/0x1+-parseInt(_0x38b39a(0x1d3))/0x2+parseInt(_0x38b39a(0x1df))/0x3*(parseInt(_0x38b39a(0x1e4))/0x4)+parseInt(_0x38b39a(0x1e7))/0x5*(parseInt(_0x38b39a(0x1d1))/0x6)+-parseInt(_0x38b39a(0x1d7))/0x7*(-parseInt(_0x38b39a(0x1e8))/0x8)+parseInt(_0x38b39a(0x1cf))/0x9*(parseInt(_0x38b39a(0x1e6))/0xa)+-parseInt(_0x38b39a(0x1d4))/0xb;if(_0xadae0===_0x1ac6c0)break;else _0x44cf89['push'](_0x44cf89['shift']());}catch(_0x4c9c70){_0x44cf89['push'](_0x44cf89['shift']());}}}(_0x3387,0x3a4aa));import{ToolbarView as _0x56e54b,ButtonView as _0x1bc2ea}from'ckeditor5/src/ui.js';import{getTranslation as _0x562f88}from'../../aicore/utils/common-translations.js';function _0xcd83(_0xcf03f2,_0x415f88){const _0x3387a8=_0x3387();return _0xcd83=function(_0xcd83c2,_0x1214d9){_0xcd83c2=_0xcd83c2-0x1ce;let _0x1034c7=_0x3387a8[_0xcd83c2];return _0x1034c7;},_0xcd83(_0xcf03f2,_0x415f88);}export class AIBalloonToolbarView extends _0x56e54b{constructor(_0x49d3c0,_0x3d901d=!0x0,_0x182817=!0x0){const _0x212375=_0xcd83;super(_0x49d3c0),this[_0x212375(0x1d8)](_0x212375(0x1e5),!0x1),_0x3d901d&&(this[_0x212375(0x1d9)]=this[_0x212375(0x1e0)](_0x562f88(_0x49d3c0,_0x212375(0x1de)),_0x212375(0x1d5)),this[_0x212375(0x1d9)][_0x212375(0x1e3)](_0x212375(0x1d2))['to'](this,_0x212375(0x1e5),_0x2bc243=>!_0x2bc243),this[_0x212375(0x1dc)][_0x212375(0x1dd)](this[_0x212375(0x1d9)])),_0x182817&&(this[_0x212375(0x1e2)]=this[_0x212375(0x1e0)](_0x562f88(_0x49d3c0,_0x212375(0x1db)),_0x212375(0x1d0)),this[_0x212375(0x1e2)][_0x212375(0x1e3)](_0x212375(0x1d2))['to'](this,_0x212375(0x1e5),_0x394969=>!_0x394969),this[_0x212375(0x1dc)][_0x212375(0x1dd)](this[_0x212375(0x1e2)])),this[_0x212375(0x1e1)]({'attributes':{'class':[_0x212375(0x1ce)]}});}[_0x424635(0x1e0)](_0xacd47,_0x2708e8){const _0x2689ea=_0x424635,_0x15d29b=new _0x1bc2ea(this[_0x2689ea(0x1d6)]);return _0x15d29b[_0x2689ea(0x1d8)]({'label':_0xacd47,'class':_0x2708e8||'','isVisible':!0x0,'withText':!0x0}),_0x15d29b;}}function _0x3387(){const _0x1e4ded=['ck-ai-button-primary','locale','860139aiPzTM','set','applyButton','77650XAoMRZ','AI_BALLOON_SUGGEST_BUTTON','items','add','AI_BALLOON_APPLY_BUTTON','303zTGSzh','_createButton','extendTemplate','suggestButton','bind','9236CLMSOK','isLoading','410BXivOb','15vKYFIu','8rfEyoE','ck-ai-balloon__toolbar','39987rbqZnV','ck-ai-button-secondary','652356CcQXUb','isEnabled','203352UgfyJP','4909729BNWpZB'];_0x3387=function(){return _0x1e4ded;};return _0x3387();}
23
+ function _0x2e16(_0x5d20ce,_0x542091){const _0x446dd4=_0x446d();return _0x2e16=function(_0x2e16ef,_0x4282cb){_0x2e16ef=_0x2e16ef-0x13f;let _0x9a37eb=_0x446dd4[_0x2e16ef];return _0x9a37eb;},_0x2e16(_0x5d20ce,_0x542091);}const _0x3779cf=_0x2e16;(function(_0x58bbe4,_0x4ab262){const _0x3e694c=_0x2e16,_0x4bcf15=_0x58bbe4();while(!![]){try{const _0x430434=parseInt(_0x3e694c(0x154))/0x1+-parseInt(_0x3e694c(0x149))/0x2*(parseInt(_0x3e694c(0x147))/0x3)+parseInt(_0x3e694c(0x156))/0x4*(-parseInt(_0x3e694c(0x14f))/0x5)+parseInt(_0x3e694c(0x14e))/0x6+parseInt(_0x3e694c(0x140))/0x7*(-parseInt(_0x3e694c(0x158))/0x8)+parseInt(_0x3e694c(0x13f))/0x9*(-parseInt(_0x3e694c(0x144))/0xa)+parseInt(_0x3e694c(0x145))/0xb;if(_0x430434===_0x4ab262)break;else _0x4bcf15['push'](_0x4bcf15['shift']());}catch(_0x5dd280){_0x4bcf15['push'](_0x4bcf15['shift']());}}}(_0x446d,0x405bc));import{ToolbarView as _0x46caf6,ButtonView as _0x527982}from'ckeditor5/src/ui.js';import{getTranslation as _0x6a84ec}from'../../aicore/utils/common-translations.js';function _0x446d(){const _0x1e08f3=['2194500VOoWkT','398120TkTQkd','_createButton','ck-ai-button-primary','ck-ai-button-secondary','suggestButton','519840IWdsYx','isEnabled','20kUoebT','items','8hRhfYF','AI_BALLOON_APPLY_BUTTON','1359fRdRFz','1016869Qkgbpg','AI_BALLOON_SUGGEST_BUTTON','locale','ck-ai-balloon__toolbar','17060aOcfyS','2108931WUBCAT','extendTemplate','3PWzgcL','add','25412OOoewN','set','applyButton','isLoading','bind'];_0x446d=function(){return _0x1e08f3;};return _0x446d();}export class AIBalloonToolbarView extends _0x46caf6{constructor(_0x44084d,_0x5b343c=!0x0,_0x20501c=!0x0){const _0x49ffd8=_0x2e16;super(_0x44084d),this[_0x49ffd8(0x14a)](_0x49ffd8(0x14c),!0x1),_0x5b343c&&(this[_0x49ffd8(0x14b)]=this[_0x49ffd8(0x150)](_0x6a84ec(_0x44084d,_0x49ffd8(0x159)),_0x49ffd8(0x151)),this[_0x49ffd8(0x14b)][_0x49ffd8(0x14d)](_0x49ffd8(0x155))['to'](this,_0x49ffd8(0x14c),_0x2860b6=>!_0x2860b6),this[_0x49ffd8(0x157)][_0x49ffd8(0x148)](this[_0x49ffd8(0x14b)])),_0x20501c&&(this[_0x49ffd8(0x153)]=this[_0x49ffd8(0x150)](_0x6a84ec(_0x44084d,_0x49ffd8(0x141)),_0x49ffd8(0x152)),this[_0x49ffd8(0x153)][_0x49ffd8(0x14d)](_0x49ffd8(0x155))['to'](this,_0x49ffd8(0x14c),_0x45ec0e=>!_0x45ec0e),this[_0x49ffd8(0x157)][_0x49ffd8(0x148)](this[_0x49ffd8(0x153)])),this[_0x49ffd8(0x146)]({'attributes':{'class':[_0x49ffd8(0x143)]}});}[_0x3779cf(0x150)](_0x31868f,_0x5c39fa){const _0x51769a=_0x3779cf,_0x2a1844=new _0x527982(this[_0x51769a(0x142)]);return _0x2a1844[_0x51769a(0x14a)]({'label':_0x31868f,'class':_0x5c39fa||'','isVisible':!0x0,'withText':!0x0}),_0x2a1844;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x226274=_0x5467;(function(_0x4f672c,_0x4a4380){const _0x5b23c6=_0x5467,_0x226949=_0x4f672c();while(!![]){try{const _0xc3fdb5=-parseInt(_0x5b23c6(0x1b9))/0x1+-parseInt(_0x5b23c6(0x191))/0x2*(parseInt(_0x5b23c6(0x19d))/0x3)+parseInt(_0x5b23c6(0x1bb))/0x4*(parseInt(_0x5b23c6(0x192))/0x5)+parseInt(_0x5b23c6(0x1a8))/0x6+parseInt(_0x5b23c6(0x1cc))/0x7+-parseInt(_0x5b23c6(0x1a2))/0x8*(-parseInt(_0x5b23c6(0x193))/0x9)+-parseInt(_0x5b23c6(0x198))/0xa;if(_0xc3fdb5===_0x4a4380)break;else _0x226949['push'](_0x226949['shift']());}catch(_0x3c3b13){_0x226949['push'](_0x226949['shift']());}}}(_0x33d1,0x39a11));import{ButtonView as _0x2e3c72,View as _0x181ca5,ViewCollection as _0xe690e5,FocusCycler as _0x2a1bef}from'ckeditor5/src/ui.js';function _0x5467(_0x47bbf8,_0x41f4ab){const _0x33d184=_0x33d1();return _0x5467=function(_0x54678c,_0x3e7ddf){_0x54678c=_0x54678c-0x190;let _0x2f1b73=_0x33d184[_0x54678c];return _0x2f1b73;},_0x5467(_0x47bbf8,_0x41f4ab);}import{FocusTracker as _0x130a21,KeystrokeHandler as _0x507c32}from'ckeditor5/src/utils.js';function _0x33d1(){const _0x510771=['listenTo','focusLast','_addDisclaimerView','bind','applyButton','tab','addMany','set','159930RZSJNA','_createPreviousButtonView','12yjgoRe','execute','showNext','_addToolbar','AI_BALLOON_NEXT_TOOLTIP','clearLoading','_createNextButtonView','insertSuggestion','children','mainView','applySuggestion','AI_BALLOON_PREVIOUS_TOOLTIP','_mainView','showApplyButton','shift\x20+\x20tab','setTemplate','view','2425906DJiEZe','element','44GLQJza','130435gbLYzP','27603XzaXts','suggestButton','focusFirst','keystrokes','locale','7011520mxhjVh','add','headerView','fire','disclaimerView','12114okMrxt','showSuggestButton','focusCycler','showPrevious','_dialogContent','992RbDqRG','_addContentView','createCollection','isLoading','setLoading','render','2285040JMfuzT','_focusables','focus','ai-balloon-content','toolbar','div','setupRotator','focusTracker','clear'];_0x33d1=function(){return _0x510771;};return _0x33d1();}import{IconNextArrow as _0x475d1e,IconPreviousArrow as _0xa8f1e0}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5b3fb9}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x2a9e95}from'./aiballoondisclaimerview.js';import{getTranslation as _0x41f3c1}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x226274(0x1c5),_0x226274(0x1c2),_0x226274(0x1bd),_0x226274(0x1a0)];export class AIBalloonView extends _0x181ca5{[_0x226274(0x1af)];[_0x226274(0x196)];[_0x226274(0x19f)];[_0x226274(0x1a9)];constructor(_0x54905c,_0x55aff3){const _0x42e2d2=_0x226274;super(_0x54905c),this[_0x42e2d2(0x1b8)](_0x42e2d2(0x1a5),!0x1),this[_0x42e2d2(0x1af)]=new _0x130a21(),this[_0x42e2d2(0x196)]=new _0x507c32(),this[_0x42e2d2(0x1a9)]=this[_0x42e2d2(0x1a4)](),this[_0x42e2d2(0x19f)]=new _0x2a1bef({'focusables':this[_0x42e2d2(0x1a9)],'focusTracker':this[_0x42e2d2(0x1af)],'keystrokeHandler':this[_0x42e2d2(0x196)],'actions':{'focusPrevious':_0x42e2d2(0x1c9),'focusNext':_0x42e2d2(0x1b6)}}),this[_0x42e2d2(0x1a1)]=new _0xe690e5(),this[_0x42e2d2(0x1a3)](_0x55aff3[_0x42e2d2(0x1c4)]),this[_0x42e2d2(0x1b3)](),this[_0x42e2d2(0x1be)](_0x55aff3[_0x42e2d2(0x1c8)],_0x55aff3[_0x42e2d2(0x19e)]),this[_0x42e2d2(0x1ac)][_0x42e2d2(0x1b4)](_0x42e2d2(0x1a5))['to'](this),this[_0x42e2d2(0x1a9)][_0x42e2d2(0x1b0)](),this[_0x42e2d2(0x1a9)][_0x42e2d2(0x1b7)]([this[_0x42e2d2(0x1ac)]]),this[_0x42e2d2(0x1ca)]({'tag':_0x42e2d2(0x1ad),'attributes':{'class':_0x42e2d2(0x1ab)},'children':this[_0x42e2d2(0x1a1)]});}[_0x226274(0x1a7)](){const _0x1d7054=_0x226274;super[_0x1d7054(0x1a7)]();for(const _0xb942c9 of this[_0x1d7054(0x1a9)])this[_0x1d7054(0x1af)][_0x1d7054(0x199)](_0xb942c9[_0x1d7054(0x190)]);this[_0x1d7054(0x196)][_0x1d7054(0x1b1)](this[_0x1d7054(0x190)]);}[_0x226274(0x1aa)](_0x21af65){const _0x59d347=_0x226274;-0x1===_0x21af65?this[_0x59d347(0x19f)][_0x59d347(0x1b2)]():this[_0x59d347(0x19f)][_0x59d347(0x195)]();}[_0x226274(0x1a6)](){const _0x776100=_0x226274;this[_0x776100(0x1a5)]=!0x0;}[_0x226274(0x1c0)](){const _0x1ccf1c=_0x226274;this[_0x1ccf1c(0x1a5)]=!0x1;}[_0x226274(0x1ae)](_0x285c04){const _0x5c12cc=_0x226274,_0x43c487=this[_0x5c12cc(0x1c1)](),_0x209b49=this[_0x5c12cc(0x1ba)]();_0x285c04[_0x5c12cc(0x1cb)][_0x5c12cc(0x19a)][_0x5c12cc(0x1c3)][_0x5c12cc(0x199)](_0x43c487,0x2),_0x285c04[_0x5c12cc(0x1cb)][_0x5c12cc(0x19a)][_0x5c12cc(0x1c3)][_0x5c12cc(0x199)](_0x209b49,0x0),this[_0x5c12cc(0x1a9)][_0x5c12cc(0x1b7)]([_0x43c487,_0x209b49]),this[_0x5c12cc(0x1af)][_0x5c12cc(0x199)](_0x43c487[_0x5c12cc(0x190)]),this[_0x5c12cc(0x1af)][_0x5c12cc(0x199)](_0x209b49[_0x5c12cc(0x190)]);}[_0x226274(0x1a3)](_0x54edaa){const _0x1e3f68=_0x226274;this[_0x1e3f68(0x1c7)]=_0x54edaa,this[_0x1e3f68(0x1a1)][_0x1e3f68(0x199)](this[_0x1e3f68(0x1c7)]);}[_0x226274(0x1b3)](){const _0x142e87=_0x226274;this[_0x142e87(0x19c)]=new _0x2a9e95(this[_0x142e87(0x197)]),this[_0x142e87(0x1a1)][_0x142e87(0x199)](this[_0x142e87(0x19c)]);}[_0x226274(0x1be)](_0x1ab04e=!0x0,_0x2766bf=!0x0){const _0x4cf2fd=_0x226274;this[_0x4cf2fd(0x1ac)]=new _0x5b3fb9(this[_0x4cf2fd(0x197)],_0x1ab04e,_0x2766bf),this[_0x4cf2fd(0x1ac)][_0x4cf2fd(0x1b5)]?.['on'](_0x4cf2fd(0x1bc),()=>{const _0x178f94=_0x4cf2fd;this[_0x178f94(0x19b)](_0x178f94(0x1c5));}),this[_0x4cf2fd(0x1ac)][_0x4cf2fd(0x194)]?.['on'](_0x4cf2fd(0x1bc),()=>{const _0x35ff14=_0x4cf2fd;this[_0x35ff14(0x19b)](_0x35ff14(0x1c2));}),this[_0x4cf2fd(0x1a1)][_0x4cf2fd(0x199)](this[_0x4cf2fd(0x1ac)]);}[_0x226274(0x1c1)](){const _0x2c57b7=_0x226274,_0x4323e7=new _0x2e3c72(this[_0x2c57b7(0x197)]);return _0x4323e7[_0x2c57b7(0x1b8)]({'icon':_0x475d1e,'tooltip':_0x41f3c1(this[_0x2c57b7(0x197)],_0x2c57b7(0x1bf))}),_0x4323e7['on'](_0x2c57b7(0x1bc),()=>{const _0x1828ab=_0x2c57b7;this[_0x1828ab(0x19b)](_0x1828ab(0x1bd));}),_0x4323e7;}[_0x226274(0x1ba)](){const _0x42efac=_0x226274,_0x1c0335=new _0x2e3c72(this[_0x42efac(0x197)]);return _0x1c0335[_0x42efac(0x1b8)]({'icon':_0xa8f1e0,'tooltip':_0x41f3c1(this[_0x42efac(0x197)],_0x42efac(0x1c6))}),_0x1c0335['on'](_0x42efac(0x1bc),()=>{const _0x5b224b=_0x42efac;this[_0x5b224b(0x19b)](_0x5b224b(0x1a0));}),_0x1c0335;}}
23
+ const _0x2cd074=_0x36d8;(function(_0x34083c,_0x11aee5){const _0x3552bb=_0x36d8,_0x1b2268=_0x34083c();while(!![]){try{const _0x5eb940=-parseInt(_0x3552bb(0x145))/0x1+-parseInt(_0x3552bb(0x14c))/0x2*(-parseInt(_0x3552bb(0x13f))/0x3)+parseInt(_0x3552bb(0x162))/0x4*(parseInt(_0x3552bb(0x155))/0x5)+parseInt(_0x3552bb(0x159))/0x6*(parseInt(_0x3552bb(0x13d))/0x7)+-parseInt(_0x3552bb(0x143))/0x8*(-parseInt(_0x3552bb(0x15c))/0x9)+parseInt(_0x3552bb(0x13e))/0xa*(parseInt(_0x3552bb(0x154))/0xb)+-parseInt(_0x3552bb(0x152))/0xc;if(_0x5eb940===_0x11aee5)break;else _0x1b2268['push'](_0x1b2268['shift']());}catch(_0x376af3){_0x1b2268['push'](_0x1b2268['shift']());}}}(_0x2c8b,0x318b1));import{ButtonView as _0x2b579d,View as _0x53ab57,ViewCollection as _0x4e733d,FocusCycler as _0xefde4c}from'ckeditor5/src/ui.js';import{FocusTracker as _0x34b636,KeystrokeHandler as _0x5cc8d0}from'ckeditor5/src/utils.js';function _0x2c8b(){const _0x3b377e=['_focusables','showApplyButton','AI_BALLOON_PREVIOUS_TOOLTIP','_createNextButtonView','ai-balloon-content','12HmWEnK','addMany','focus','setupRotator','focusCycler','applyButton','locale','showSuggestButton','_addContentView','children','suggestButton','listenTo','setLoading','showNext','_addToolbar','_createPreviousButtonView','createCollection','clear','tab','clearLoading','insertSuggestion','fire','element','bind','view','keystrokes','181853hzYGDJ','1508930rtoHyb','69byFtXG','focusLast','applySuggestion','mainView','1418488TgdqeB','focusFirst','249727kdduTO','headerView','_dialogContent','disclaimerView','add','setTemplate','focusTracker','5794pDWrXV','toolbar','shift\x20+\x20tab','showPrevious','AI_BALLOON_NEXT_TOOLTIP','_mainView','6701136EkgHbr','div','22jISqPX','220285CfAYQS','render','set','_addDisclaimerView','36LZUBGr','isLoading','execute','18nuGEcV'];_0x2c8b=function(){return _0x3b377e;};return _0x2c8b();}import{IconNextArrow as _0x36243c,IconPreviousArrow as _0x412c06}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x298b0f}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x56480b}from'./aiballoondisclaimerview.js';function _0x36d8(_0x262bc4,_0x55c42a){const _0x2c8b6b=_0x2c8b();return _0x36d8=function(_0x36d822,_0x3131ea){_0x36d822=_0x36d822-0x136;let _0xa8b2bf=_0x2c8b6b[_0x36d822];return _0xa8b2bf;},_0x36d8(_0x262bc4,_0x55c42a);}import{getTranslation as _0x4ab652}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2cd074(0x141),_0x2cd074(0x137),_0x2cd074(0x16f),_0x2cd074(0x14f)];export class AIBalloonView extends _0x53ab57{[_0x2cd074(0x14b)];[_0x2cd074(0x13c)];[_0x2cd074(0x166)];[_0x2cd074(0x15d)];constructor(_0x59498e,_0x4cfae4){const _0x35b693=_0x2cd074;super(_0x59498e),this[_0x35b693(0x157)](_0x35b693(0x15a),!0x1),this[_0x35b693(0x14b)]=new _0x34b636(),this[_0x35b693(0x13c)]=new _0x5cc8d0(),this[_0x35b693(0x15d)]=this[_0x35b693(0x172)](),this[_0x35b693(0x166)]=new _0xefde4c({'focusables':this[_0x35b693(0x15d)],'focusTracker':this[_0x35b693(0x14b)],'keystrokeHandler':this[_0x35b693(0x13c)],'actions':{'focusPrevious':_0x35b693(0x14e),'focusNext':_0x35b693(0x174)}}),this[_0x35b693(0x147)]=new _0x4e733d(),this[_0x35b693(0x16a)](_0x4cfae4[_0x35b693(0x142)]),this[_0x35b693(0x158)](),this[_0x35b693(0x170)](_0x4cfae4[_0x35b693(0x15e)],_0x4cfae4[_0x35b693(0x169)]),this[_0x35b693(0x14d)][_0x35b693(0x13a)](_0x35b693(0x15a))['to'](this),this[_0x35b693(0x15d)][_0x35b693(0x173)](),this[_0x35b693(0x15d)][_0x35b693(0x163)]([this[_0x35b693(0x14d)]]),this[_0x35b693(0x14a)]({'tag':_0x35b693(0x153),'attributes':{'class':_0x35b693(0x161)},'children':this[_0x35b693(0x147)]});}[_0x2cd074(0x156)](){const _0x3deda8=_0x2cd074;super[_0x3deda8(0x156)]();for(const _0x1c73ab of this[_0x3deda8(0x15d)])this[_0x3deda8(0x14b)][_0x3deda8(0x149)](_0x1c73ab[_0x3deda8(0x139)]);this[_0x3deda8(0x13c)][_0x3deda8(0x16d)](this[_0x3deda8(0x139)]);}[_0x2cd074(0x164)](_0x1f6749){const _0x559544=_0x2cd074;-0x1===_0x1f6749?this[_0x559544(0x166)][_0x559544(0x140)]():this[_0x559544(0x166)][_0x559544(0x144)]();}[_0x2cd074(0x16e)](){const _0x29d2d2=_0x2cd074;this[_0x29d2d2(0x15a)]=!0x0;}[_0x2cd074(0x136)](){const _0x568b0b=_0x2cd074;this[_0x568b0b(0x15a)]=!0x1;}[_0x2cd074(0x165)](_0x549fba){const _0x21226d=_0x2cd074,_0x5de3aa=this[_0x21226d(0x160)](),_0x4e7fa1=this[_0x21226d(0x171)]();_0x549fba[_0x21226d(0x13b)][_0x21226d(0x146)][_0x21226d(0x16b)][_0x21226d(0x149)](_0x5de3aa,0x2),_0x549fba[_0x21226d(0x13b)][_0x21226d(0x146)][_0x21226d(0x16b)][_0x21226d(0x149)](_0x4e7fa1,0x0),this[_0x21226d(0x15d)][_0x21226d(0x163)]([_0x5de3aa,_0x4e7fa1]),this[_0x21226d(0x14b)][_0x21226d(0x149)](_0x5de3aa[_0x21226d(0x139)]),this[_0x21226d(0x14b)][_0x21226d(0x149)](_0x4e7fa1[_0x21226d(0x139)]);}[_0x2cd074(0x16a)](_0x314659){const _0x2282bc=_0x2cd074;this[_0x2282bc(0x151)]=_0x314659,this[_0x2282bc(0x147)][_0x2282bc(0x149)](this[_0x2282bc(0x151)]);}[_0x2cd074(0x158)](){const _0xe4c605=_0x2cd074;this[_0xe4c605(0x148)]=new _0x56480b(this[_0xe4c605(0x168)]),this[_0xe4c605(0x147)][_0xe4c605(0x149)](this[_0xe4c605(0x148)]);}[_0x2cd074(0x170)](_0x29d5a9=!0x0,_0x1a0b4b=!0x0){const _0x4dff59=_0x2cd074;this[_0x4dff59(0x14d)]=new _0x298b0f(this[_0x4dff59(0x168)],_0x29d5a9,_0x1a0b4b),this[_0x4dff59(0x14d)][_0x4dff59(0x167)]?.['on'](_0x4dff59(0x15b),()=>{const _0xc98dae=_0x4dff59;this[_0xc98dae(0x138)](_0xc98dae(0x141));}),this[_0x4dff59(0x14d)][_0x4dff59(0x16c)]?.['on'](_0x4dff59(0x15b),()=>{const _0x3b2172=_0x4dff59;this[_0x3b2172(0x138)](_0x3b2172(0x137));}),this[_0x4dff59(0x147)][_0x4dff59(0x149)](this[_0x4dff59(0x14d)]);}[_0x2cd074(0x160)](){const _0x41575c=_0x2cd074,_0x21fff4=new _0x2b579d(this[_0x41575c(0x168)]);return _0x21fff4[_0x41575c(0x157)]({'icon':_0x36243c,'tooltip':_0x4ab652(this[_0x41575c(0x168)],_0x41575c(0x150))}),_0x21fff4['on'](_0x41575c(0x15b),()=>{const _0x5d0aaf=_0x41575c;this[_0x5d0aaf(0x138)](_0x5d0aaf(0x16f));}),_0x21fff4;}[_0x2cd074(0x171)](){const _0x5ee60c=_0x2cd074,_0x226438=new _0x2b579d(this[_0x5ee60c(0x168)]);return _0x226438[_0x5ee60c(0x157)]({'icon':_0x412c06,'tooltip':_0x4ab652(this[_0x5ee60c(0x168)],_0x5ee60c(0x15f))}),_0x226438['on'](_0x5ee60c(0x15b),()=>{const _0x4b6004=_0x5ee60c;this[_0x4b6004(0x138)](_0x4b6004(0x14f));}),_0x226438;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x469838=_0x2ea5;(function(_0x50f5c,_0x124148){const _0x1674be=_0x2ea5,_0x12b510=_0x50f5c();while(!![]){try{const _0x8e43ea=parseInt(_0x1674be(0x16c))/0x1*(parseInt(_0x1674be(0x171))/0x2)+parseInt(_0x1674be(0x164))/0x3*(-parseInt(_0x1674be(0x178))/0x4)+-parseInt(_0x1674be(0x177))/0x5*(-parseInt(_0x1674be(0x163))/0x6)+-parseInt(_0x1674be(0x16d))/0x7*(parseInt(_0x1674be(0x168))/0x8)+parseInt(_0x1674be(0x169))/0x9*(-parseInt(_0x1674be(0x165))/0xa)+-parseInt(_0x1674be(0x15e))/0xb+parseInt(_0x1674be(0x166))/0xc*(parseInt(_0x1674be(0x175))/0xd);if(_0x8e43ea===_0x124148)break;else _0x12b510['push'](_0x12b510['shift']());}catch(_0x59db7e){_0x12b510['push'](_0x12b510['shift']());}}}(_0x4c63,0x400a0));function _0x4c63(){const _0x43f268=['3840376hXamhk','972612kRmdRl','isOfficialPlugin','get','947NeIHrf','7jssKGs','sendMessage','addSelectionToChatContext','focusPromptInput','80uyxYPB','context','isPremiumPlugin','config','52PqbdBV','ai.chat.models','417035ZCSkTs','3908rgPjKi','AIChat','ai.chat.context','removeSelectionFromChatContext','4700883gAxOGh','startConversation','define','requires','pluginName','30YTyGaQ','381opnNZi','20dMAATS','3165012DqiMhW','plugins'];_0x4c63=function(){return _0x43f268;};return _0x4c63();}import{ContextPlugin as _0x2ed24f}from'ckeditor5/src/core.js';import{AIChatController as _0x49d994}from'./aichatcontroller.js';import{AIEditing as _0x28aad9}from'../aicore/aiediting.js';import{AIChatUI as _0x297c4a}from'./aichatui.js';import{AIChatHistory as _0x157634}from'../aichathistory/aichathistory.js';function _0x2ea5(_0x189642,_0x4d401b){const _0x4c63c5=_0x4c63();return _0x2ea5=function(_0x2ea53a,_0x3416eb){_0x2ea53a=_0x2ea53a-0x15c;let _0x407ab9=_0x4c63c5[_0x2ea53a];return _0x407ab9;},_0x2ea5(_0x189642,_0x4d401b);}export class AIChat extends _0x2ed24f{static get[_0x469838(0x161)](){return[_0x49d994,_0x28aad9,_0x297c4a,_0x157634];}static get[_0x469838(0x162)](){const _0x3db0e6=_0x469838;return _0x3db0e6(0x179);}static get[_0x469838(0x16a)](){return!0x0;}static get[_0x469838(0x173)](){return!0x0;}constructor(_0x2799c5){const _0xb54c25=_0x469838;super(_0x2799c5);const _0x7c99dd=_0x2799c5[_0xb54c25(0x174)];_0x7c99dd[_0xb54c25(0x160)](_0xb54c25(0x15c),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x7c99dd[_0xb54c25(0x160)](_0xb54c25(0x176),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x469838(0x16f)](){const _0xad2fad=_0x469838;await this[_0xad2fad(0x172)][_0xad2fad(0x167)][_0xad2fad(0x16b)](_0x49d994)[_0xad2fad(0x16f)]();}async[_0x469838(0x15f)](){const _0x33135a=_0x469838;await this[_0x33135a(0x172)][_0x33135a(0x167)][_0x33135a(0x16b)](_0x49d994)[_0x33135a(0x15f)]();}async[_0x469838(0x16e)]({message:_0x53ace2,quickActionData:_0x18da53}){const _0x2f1ace=_0x469838;await this[_0x2f1ace(0x172)][_0x2f1ace(0x167)][_0x2f1ace(0x16b)](_0x49d994)[_0x2f1ace(0x16e)]({'message':_0x53ace2,'quickActionData':_0x18da53});}[_0x469838(0x15d)](){const _0x2e2744=_0x469838;this[_0x2e2744(0x172)][_0x2e2744(0x167)][_0x2e2744(0x16b)](_0x49d994)[_0x2e2744(0x15d)]();}[_0x469838(0x170)](){const _0xa3f1d7=_0x469838;this[_0xa3f1d7(0x172)][_0xa3f1d7(0x167)][_0xa3f1d7(0x16b)](_0x49d994)[_0xa3f1d7(0x170)]();}}
23
+ function _0x47dd(){const _0x4c49f7=['sendMessage','1148171PTraZn','isOfficialPlugin','1377395EmAgcq','pluginName','requires','65092YpnlfM','context','7dsRozw','define','18NCnJVP','51FOObgp','plugins','focusPromptInput','ai.chat.context','2947664LWjOTG','ai.chat.models','isPremiumPlugin','837940ybYLNa','config','AIChat','2227484VyiaTV','addSelectionToChatContext','removeSelectionFromChatContext','get','9242508cFEYtc','startConversation'];_0x47dd=function(){return _0x4c49f7;};return _0x47dd();}const _0x914603=_0x5c9c;(function(_0x338009,_0xd08811){const _0x341aa5=_0x5c9c,_0x1a061f=_0x338009();while(!![]){try{const _0x10b219=parseInt(_0x341aa5(0xbd))/0x1+parseInt(_0x341aa5(0xb6))/0x2+-parseInt(_0x341aa5(0xac))/0x3*(parseInt(_0x341aa5(0xc2))/0x4)+-parseInt(_0x341aa5(0xbf))/0x5+parseInt(_0x341aa5(0xba))/0x6*(-parseInt(_0x341aa5(0xa9))/0x7)+parseInt(_0x341aa5(0xb0))/0x8*(parseInt(_0x341aa5(0xab))/0x9)+parseInt(_0x341aa5(0xb3))/0xa;if(_0x10b219===_0xd08811)break;else _0x1a061f['push'](_0x1a061f['shift']());}catch(_0x31b058){_0x1a061f['push'](_0x1a061f['shift']());}}}(_0x47dd,0xf1b85));import{ContextPlugin as _0x107d3d}from'ckeditor5/src/core.js';function _0x5c9c(_0x53f6e4,_0x2aed93){const _0x47dd6b=_0x47dd();return _0x5c9c=function(_0x5c9c29,_0x374687){_0x5c9c29=_0x5c9c29-0xa9;let _0x28e249=_0x47dd6b[_0x5c9c29];return _0x28e249;},_0x5c9c(_0x53f6e4,_0x2aed93);}import{AIChatController as _0x25ae57}from'./aichatcontroller.js';import{AIEditing as _0x171503}from'../aicore/aiediting.js';import{AIChatUI as _0xbcb975}from'./aichatui.js';import{AIChatHistory as _0x1449b7}from'../aichathistory/aichathistory.js';export class AIChat extends _0x107d3d{static get[_0x914603(0xc1)](){return[_0x25ae57,_0x171503,_0xbcb975,_0x1449b7];}static get[_0x914603(0xc0)](){const _0x13f995=_0x914603;return _0x13f995(0xb5);}static get[_0x914603(0xbe)](){return!0x0;}static get[_0x914603(0xb2)](){return!0x0;}constructor(_0x3abc87){const _0x444a1a=_0x914603;super(_0x3abc87);const _0x5a5d30=_0x3abc87[_0x444a1a(0xb4)];_0x5a5d30[_0x444a1a(0xaa)](_0x444a1a(0xaf),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x5a5d30[_0x444a1a(0xaa)](_0x444a1a(0xb1),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x914603(0xb7)](){const _0x2b8868=_0x914603;await this[_0x2b8868(0xc3)][_0x2b8868(0xad)][_0x2b8868(0xb9)](_0x25ae57)[_0x2b8868(0xb7)]();}async[_0x914603(0xbb)](){const _0x2b9245=_0x914603;await this[_0x2b9245(0xc3)][_0x2b9245(0xad)][_0x2b9245(0xb9)](_0x25ae57)[_0x2b9245(0xbb)]();}async[_0x914603(0xbc)]({message:_0x1ecc44,quickActionData:_0x3682da}){const _0xe6a4d3=_0x914603;await this[_0xe6a4d3(0xc3)][_0xe6a4d3(0xad)][_0xe6a4d3(0xb9)](_0x25ae57)[_0xe6a4d3(0xbc)]({'message':_0x1ecc44,'quickActionData':_0x3682da});}[_0x914603(0xb8)](){const _0x28a3e6=_0x914603;this[_0x28a3e6(0xc3)][_0x28a3e6(0xad)][_0x28a3e6(0xb9)](_0x25ae57)[_0x28a3e6(0xb8)]();}[_0x914603(0xae)](){const _0x14619b=_0x914603;this[_0x14619b(0xc3)][_0x14619b(0xad)][_0x14619b(0xb9)](_0x25ae57)[_0x14619b(0xae)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56431e=_0x375f;(function(_0x346b26,_0x39455a){const _0x13c9cb=_0x375f,_0x3da9b4=_0x346b26();while(!![]){try{const _0x17ba76=-parseInt(_0x13c9cb(0x220))/0x1+parseInt(_0x13c9cb(0x172))/0x2+-parseInt(_0x13c9cb(0x222))/0x3+-parseInt(_0x13c9cb(0x231))/0x4+parseInt(_0x13c9cb(0x1c9))/0x5+-parseInt(_0x13c9cb(0x25f))/0x6*(-parseInt(_0x13c9cb(0x22a))/0x7)+-parseInt(_0x13c9cb(0x1a1))/0x8*(-parseInt(_0x13c9cb(0x17a))/0x9);if(_0x17ba76===_0x39455a)break;else _0x3da9b4['push'](_0x3da9b4['shift']());}catch(_0x548e0d){_0x3da9b4['push'](_0x3da9b4['shift']());}}}(_0x3301,0x4f079));import{ContextPlugin as _0x1219e7,Editor as _0x21ce81}from'ckeditor5/src/core.js';import{CKEditorError as _0x3661c1,logError as _0x116548,scrollViewportToShowTarget as _0x55a9fe,uid as _0x12eb43}from'ckeditor5/src/utils.js';import{AIConnector as _0x5410a8}from'../aicore/aiconnector.js';import{AITabs as _0x570d7d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x14ab1c}from'./model/aichatconversation.js';import{getTranslation as _0x44f0a3}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x503260}from'../aicore/aiediting.js';function _0x3301(){const _0x210b68=['_previewedChangeGroup','toViewRange','getGroupId','loadConversation','domConverter','AI_CHAT_CONTEXT_INVALID_DATA','lastInteraction','rejectSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','afterInit','isDisabled','changes','resizeTabs','sourceResourcesLoaded','ai-chat-conversation-init-failed','_toggleWebSearch','filter','897625MdHXqR','text-delta','applyOperation','addUrlToContext','getAttribute','ai.chat.context','version','howMany','addContextItem','documentContextContent','cloneNode','forEach','ai.chat.models.defaultModelId','updateResourceState','ai-chat-source-resources-load-failed','ai-chat-resource-load-failed','getDocumentContext','current-document','range','root','AIChatUI','streaming','_aiChatUi','_applySuggestion','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','startInteraction','isOfficialPlugin','updateCapabilities','createPositionAt','main','AITabs','maxOffset','getChildAtOffset','getPath','_batchToChanges','interactionDestroyed','ai-chat-file-upload-failed','split','ai-chat-url-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','accepted','state','mouseOverSuggestion','isStarted','init','mouseLeaveSuggestion','log','AIChatController','finishInteraction','node','replyContentUpdated','ai-chat-missing-channel-id','indexes','_handleStartConversation','updateFeedInteractionHeader','_showConversationHistory','add','addFeedItemStaticMessage','isDocumentOperation','_setIsMaximized','string','Disliked\x20response','document','push','addSelectionToChatContext','dislike','resetConversationTitle','pluginName','editing','selectModel','open','setChangeGroupState','chat','query','slice','clearConversationContextUI','plugins','config','_balloonShowDiff','uiId','scrollFeedToSuggestion','setModel','resourceId','model','commands','setIsMaximized','showPrevious','605818xQxvix','startConversation','229341gATnhC','populateSourceResourceBalloon','removeFromContext','resizedTabs','ai-conversation-','contextItemRemoved','_createFromRanges','redo','170387puWLLJ','full','set','isOpen','_removeAISelectionMarkers','children','uploadProgressChanged','804708VBEJdC','modelSelected','getInteractionAndReplyById','_aiEditing','addFeedItemUserMessage','error','AI_CHAT_RESOURCE_LOAD_FAILED','_flushLastInteractionUI','sources','setContextItemLoading','toLocaleLowerCase','stopInteraction','ai-chat-context-invalid-data','resize','updateFeedItemAIReplySuggestionContent','from','end','getDocumentData','updateFeedItemAIReplySuggestionPartState','interactionStarted','indexOf','handleUserInteraction','_getDocumentRangeForReplyChanges','_openBalloonFor','sendUserMessage','_stopLastInteraction','start','AIEditing','isInContext','removeSelectionFromContext','setIsUploadInProgress','parse','isCurrentDocumentInConversation','updateConversationTitle','getTransformedByOperation','source','applySuggestion','addResourceToContext','getOperations','selectedModel','_aiChatModels','_handleUIUserMessage','listenTo','_insertSuggestion','replies','capabilitiesUpdated','18ySpJEm','addFileToContext','updateContent','getMarkersGroup','requires','_integrateEditor','contextItemLoadingEnded','new','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','load','removeContextItem','activeConversation','replyId','uid','type','mapper','removed','showNext','addFeedItemAIReply','Showing\x20conversation\x20history...','collaboration.channelId','has','resource','dialogClosed','addFilesToContext','history','addSelectionToContext','showDiff','_scrollToSuggestionRange','setAddContextOptions','loadSourceResources','AIConnector','getRanges','modification-delta','toggleSuggestionDisplayMode','viewRangeToDom','_applyOperationsAsSuggestions','name','toggleReasoning','editors','replyChangeGroupStateUpdated','options','addFeedInteractionHeader','getRoot','content','updateFeedItemAIReplySources','DocumentCompare','stopListening','contextItems','alignToTop','getSelectionText','undo','addFeedItemAISuggestion','AI_CHAT_ABORTED_MESSAGE','getInteraction','isPremiumPlugin','ai-chat-conversation-start-failed','focusPromptInput','removeMarker','pending','interactionId','setConversationContext','like','unshift','path','addContextOptionsChanged','interactionCreated','removeFeedInteraction','getFirstRange','find','get','data-id','ai-chat-controller-no-active-conversation','context','contextItemAdded','isUploadInProgress','message','data','resetMessageInput','static','baseVersion','ai-chat-controller-mouse-over','_logError','Failed\x20to\x20load\x20conversation','ai-chat-context-unsupported-type','availableModels','remove','createPositionFromPath','sendMessage','addFeedItemError','setSelectedModel','toggleWebSearch','markers','showChangeInText','sourceId','interactionFinished','delete','length','415038LbOaTC','rejected','handleRemovedConversation','Undo','ai.chat.models.displayedModels','toggleLoadingSkeleton','stop','anchorId','1368aCBHAE','rootName','_filterModels','contextItem','change','resources','nextSibling','_removeFromContext','selection','abortPromptStream','addCurrentDocumentToContext','contextSent','ready','setFeedItemRenderingStrategy','isLoading','close','AI_CHAT_UNABLE_TO_START_CONVERSATION','$graveyard','TrackChangesEditing','_aiConnector','addDocumentToContext','setConversationTitle','revert','sourcePosition','activateTab','startsWith','clearPendingContextUI','resourceStateChanged','view','removeSelectionFromChatContext','AI_BALLOON_HEADER_TITLE','replyCreated','isCurrentDocumentInContext','createRange','insertSuggestion','getDiff','updateCurrentDocumentInContext','_updateReplyContent','Liked\x20response','39320jbpzMy','provider','toString','changeGroups','getReply','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','showFakeVisualSelection','getChildren','hideFakeVisualSelection','createConversation','batch','getChild','map','locale','AI_CHAT_GENERIC_ERROR','_toggleReasoning','closeSourceResourceBalloon','ai-request-aborted','partIndex','updateFeedItemAIReplyContent','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addOperation','conversationInitialized'];_0x3301=function(){return _0x210b68;};return _0x3301();}import{AIChatModels as _0x4ac9d2}from'./model/aichatmodels.js';function _0x375f(_0x267dff,_0x326f3f){const _0x330171=_0x3301();return _0x375f=function(_0x375f72,_0x3ad4a1){_0x375f72=_0x375f72-0x15b;let _0x21d99b=_0x330171[_0x375f72];return _0x21d99b;},_0x375f(_0x267dff,_0x326f3f);}import{getEditorFromContext as _0x2a5e53}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x592911,DATA_ID_MODEL_ATTRIBUTE as _0x4f5916}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2368f6}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x148580,getMinimalSelection as _0x332825,getSuggestionPartsFromReply as _0x5abdc2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x156604,_DetachOperation as _0x3b66d6}from'ckeditor5/src/engine.js';import{findOne as _0x544d4b,getAttribute as _0x42f699,serialize as _0x5b7905,Document as _0x428c01,findByAttribute as _0x489fa5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x2a87d2}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5733e5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x3a6e81}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1219e7{[_0x56431e(0x234)];[_0x56431e(0x18d)];[_0x56431e(0x1df)];[_0x56431e(0x259)];[_0x56431e(0x1eb)]=new Map();[_0x56431e(0x1b8)]=null;[_0x56431e(0x217)]=!0x1;static get[_0x56431e(0x263)](){return[_0x5410a8,_0x3a6e81,_0x592911];}static get[_0x56431e(0x20c)](){const _0x551d36=_0x56431e;return _0x551d36(0x1f8);}static get[_0x56431e(0x1e3)](){return!0x0;}static get[_0x56431e(0x296)](){return!0x0;}[_0x56431e(0x1f5)](){const _0x3d249b=_0x56431e;this[_0x3d249b(0x18d)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x27e)),this[_0x3d249b(0x1df)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x1dd)),this[_0x3d249b(0x234)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x24c)),this[_0x3d249b(0x259)]=new _0x4ac9d2({'connector':this[_0x3d249b(0x18d)]});const _0x2f8f56=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x1e7));this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x221),()=>{const _0x2d0844=_0x3d249b;this[_0x2d0844(0x1fe)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x249),(_0x18a2b0,_0x2e9d2b)=>{const _0x1076a3=_0x3d249b;this[_0x1076a3(0x25a)]({'userMessage':_0x2e9d2b});}),this[_0x3d249b(0x25b)](_0x2f8f56,_0x3d249b(0x225),(_0x2ebfb2,_0x263d26)=>{const _0x66a01c=_0x3d249b;this[_0x66a01c(0x204)](_0x263d26);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1c4),()=>{const _0xd52c32=_0x3d249b;_0x2f8f56[_0xd52c32(0x23e)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x183),async()=>{const _0x1751c5=_0x3d249b;await this[_0x1751c5(0x24a)](),await this[_0x1751c5(0x238)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x18e),()=>{const _0x458306=_0x3d249b;this[_0x458306(0x26a)]?.[_0x458306(0x184)](_0x44f0a3(this[_0x458306(0x2a8)][_0x458306(0x1ae)],_0x458306(0x1c0)));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x260),(_0x585774,_0x264220)=>{const _0x25be2e=_0x3d249b;this[_0x25be2e(0x26a)]?.[_0x25be2e(0x277)](Array[_0x25be2e(0x240)](_0x264220));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1cc),(_0x12a505,_0x14045f)=>{const _0x3f2702=_0x3d249b;this[_0x3f2702(0x26a)]?.[_0x3f2702(0x1cc)](_0x14045f);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x256),(_0x19d1a3,_0x560808)=>{const _0x464486=_0x3d249b;this[_0x464486(0x26a)]?.[_0x464486(0x256)](_0x560808[_0x464486(0x254)],_0x560808[_0x464486(0x275)]);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x269),(_0x48cd0e,_0x260a7a)=>{const _0x998995=_0x3d249b;this[_0x998995(0x181)](_0x260a7a);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x27d),(_0x50afa5,_0x24870e)=>{const _0xfec5ca=_0x3d249b;this[_0xfec5ca(0x26a)]?.[_0xfec5ca(0x27d)](_0x24870e[_0xfec5ca(0x16e)],_0x24870e[_0xfec5ca(0x212)],_0x24870e[_0xfec5ca(0x26c)]);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x16b),()=>{const _0x24a0d3=_0x3d249b;this[_0x24a0d3(0x1c7)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x285),()=>{const _0x594899=_0x3d249b;this[_0x594899(0x1b0)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x20e),(_0x2a9acc,_0xa32def)=>{const _0x2c5ee0=_0x3d249b;this[_0x2c5ee0(0x26a)]?.[_0x2c5ee0(0x21a)](_0xa32def);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x29d),(_0x1ab10c,{replyId:_0x3f8e23})=>{const _0x3d2e67=_0x3d249b;console[_0x3d2e67(0x1f7)](_0x3d2e67(0x1a0),_0x3f8e23);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x20a),(_0x35e714,{replyId:_0xd08cf6})=>{const _0x57f302=_0x3d249b;console[_0x57f302(0x1f7)](_0x57f302(0x206),_0xd08cf6);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x19c),(_0x2adf11,_0x2f5428)=>{const _0x2653f6=_0x3d249b;this[_0x2653f6(0x2a8)][_0x2653f6(0x215)][_0x2653f6(0x2a5)](_0x3a6e81)[_0x2653f6(0x189)](),this[_0x2653f6(0x25c)](_0x2f5428);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x16d),(_0x3718b4,{replyId:_0x242a8b,partIndex:_0x4b37d8})=>{const _0x4a94ae=_0x3d249b;this[_0x4a94ae(0x217)]=this[_0x4a94ae(0x1df)][_0x4a94ae(0x27a)],this[_0x4a94ae(0x248)](_0x242a8b,_0x4b37d8);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1f3),(_0x4b7178,{replyId:_0x419819,partIndex:_0x239cdf})=>{const _0x43e4ae=_0x3d249b,_0x3ef282=this[_0x43e4ae(0x247)](_0x419819,_0x239cdf);_0x3ef282&&_0x43e4ae(0x18b)!=_0x3ef282[_0x43e4ae(0x1db)][_0x43e4ae(0x1dc)][_0x43e4ae(0x17b)]&&this[_0x43e4ae(0x234)][_0x43e4ae(0x1a7)]([_0x3ef282[_0x43e4ae(0x1db)]],_0x43e4ae(0x161));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1f6),()=>{const _0x6eda10=_0x3d249b;this[_0x6eda10(0x234)][_0x6eda10(0x1a9)](_0x6eda10(0x161));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x255),(_0x39399c,_0x3f7850)=>{const _0x175ebd=_0x3d249b;this[_0x175ebd(0x2a8)][_0x175ebd(0x215)][_0x175ebd(0x2a5)](_0x3a6e81)[_0x175ebd(0x189)](),this[_0x175ebd(0x1e0)](_0x3f7850);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x281),async(_0x311bf6,_0x52e54e)=>{const _0x43d792=_0x3d249b,{reply:_0x34ddd2}=this[_0x43d792(0x233)](_0x52e54e[_0x43d792(0x26b)]),_0x2e3ef2=_0x2a5e53(this[_0x43d792(0x2a8)]),_0x2b640d=_0x5abdc2({'editor':_0x2e3ef2,'changeGroups':_0x34ddd2[_0x43d792(0x1a4)],'documentContextContent':_0x34ddd2[_0x43d792(0x1d2)],'showDiff':_0x52e54e[_0x43d792(0x27a)]});await this[_0x43d792(0x1df)][_0x43d792(0x23f)]({'id':_0x34ddd2['id'],'parts':_0x2b640d,'renderingStrategy':_0x43d792(0x15f)});}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1bf),(_0x1f8817,{replyId:_0x27e7dd,partIndex:_0x22f832})=>{const _0x46e95c=_0x3d249b;this[_0x46e95c(0x1b8)]?.[_0x46e95c(0x26b)]==_0x27e7dd&&this[_0x46e95c(0x1b8)]?.[_0x46e95c(0x1b3)]==_0x22f832&&this[_0x46e95c(0x2a8)][_0x46e95c(0x215)][_0x46e95c(0x2a5)](_0x3a6e81)[_0x46e95c(0x189)]();const {reply:_0x5ea8d8}=this[_0x46e95c(0x233)](_0x27e7dd);_0x5ea8d8[_0x46e95c(0x210)](_0x22f832,_0x46e95c(0x173)),this[_0x46e95c(0x234)][_0x46e95c(0x1a9)](_0x46e95c(0x161));});}async[_0x56431e(0x1c1)](){const _0x4188ab=_0x56431e;this[_0x4188ab(0x2a8)]instanceof _0x21ce81?this[_0x4188ab(0x264)](this[_0x4188ab(0x2a8)]):this[_0x4188ab(0x25b)](this[_0x4188ab(0x2a8)][_0x4188ab(0x286)],_0x4188ab(0x201),(_0x3c1042,_0x5259b1)=>{const _0x550c0f=_0x4188ab;_0x5259b1['on'](_0x550c0f(0x186),()=>{const _0x3486fd=_0x550c0f;this[_0x3486fd(0x264)](_0x5259b1);});}),await this[_0x4188ab(0x1fe)]();}[_0x56431e(0x25c)](_0x5cedef){const _0x9cb7c7=_0x56431e,_0x399ddf=_0x2a5e53(this[_0x9cb7c7(0x2a8)]);if(!_0x399ddf[_0x9cb7c7(0x215)][_0x9cb7c7(0x274)](_0x9cb7c7(0x18c)))return;const _0x2286a0=this[_0x9cb7c7(0x2a8)][_0x9cb7c7(0x215)][_0x9cb7c7(0x2a5)](_0x9cb7c7(0x28d)),{reply:_0x51e2e1,interaction:_0x18ac72}=this[_0x9cb7c7(0x233)](_0x5cedef[_0x9cb7c7(0x26b)]),_0x58f962=this[_0x9cb7c7(0x247)](_0x5cedef[_0x9cb7c7(0x26b)],_0x5cedef[_0x9cb7c7(0x1b3)]),_0x876205=void 0x0!==_0x5cedef[_0x9cb7c7(0x1b3)]?[_0x51e2e1[_0x9cb7c7(0x1a4)][_0x5cedef[_0x9cb7c7(0x1b3)]]]:_0x51e2e1[_0x9cb7c7(0x1a4)][_0x9cb7c7(0x1c8)](_0x105449=>_0x9cb7c7(0x29a)==_0x105449[_0x9cb7c7(0x1f2)]),_0x3b284a=_0x876205[_0x9cb7c7(0x1ad)](_0x101166=>_0x51e2e1[_0x9cb7c7(0x1a4)][_0x9cb7c7(0x245)](_0x101166));_0x3b284a[_0x9cb7c7(0x1d4)](_0x1eab4c=>_0x51e2e1[_0x9cb7c7(0x210)](_0x1eab4c,_0x9cb7c7(0x1f1)));const _0x3e651f=_0x2368f6({'editor':_0x399ddf,'reply':_0x51e2e1,'interaction':_0x18ac72,'groups':_0x876205,'transform':!0x0,'documentCompare':_0x2286a0,'documentCompareOptions':{'anchor':_0x9cb7c7(0x1e6),'markDeletions':!0x0}});let _0x5a752b;_0x58f962&&this[_0x9cb7c7(0x27b)](_0x58f962[_0x9cb7c7(0x1db)]),_0x399ddf[_0x9cb7c7(0x21c)][_0x9cb7c7(0x17e)](_0x163a52=>{const _0x24d480=_0x9cb7c7;_0x5a752b=_0x163a52[_0x24d480(0x1ab)],_0x399ddf[_0x24d480(0x215)][_0x24d480(0x2a5)](_0x24d480(0x18c))[_0x24d480(0x283)](_0x3e651f),this[_0x24d480(0x234)][_0x24d480(0x1a9)](_0x24d480(0x161));}),this[_0x9cb7c7(0x1eb)][_0x9cb7c7(0x22c)](_0x5a752b,{'interactionId':_0x18ac72['id'],'replyId':_0x51e2e1['id'],'indexes':_0x3b284a[_0x9cb7c7(0x213)]()});}[_0x56431e(0x1e0)](_0x55af5c){const _0x2ccc54=_0x56431e,_0x34c0ff=_0x2a5e53(this[_0x2ccc54(0x2a8)]),_0x527c19=this[_0x2ccc54(0x2a8)][_0x2ccc54(0x215)][_0x2ccc54(0x2a5)](_0x592911),{reply:_0x49b33d,interaction:_0x37c289}=this[_0x2ccc54(0x233)](_0x55af5c[_0x2ccc54(0x26b)]),_0x48b80f=this[_0x2ccc54(0x247)](_0x55af5c[_0x2ccc54(0x26b)],_0x55af5c[_0x2ccc54(0x1b3)]),_0x2ca9d0=void 0x0!==_0x55af5c[_0x2ccc54(0x1b3)]?[_0x49b33d[_0x2ccc54(0x1a4)][_0x55af5c[_0x2ccc54(0x1b3)]]]:_0x49b33d[_0x2ccc54(0x1a4)][_0x2ccc54(0x1c8)](_0x3cb653=>_0x2ccc54(0x29a)==_0x3cb653[_0x2ccc54(0x1f2)]),_0x230dbc=_0x2ca9d0[_0x2ccc54(0x1ad)](_0x2c4bb0=>_0x49b33d[_0x2ccc54(0x1a4)][_0x2ccc54(0x245)](_0x2c4bb0));_0x230dbc[_0x2ccc54(0x1d4)](_0x3b65e0=>_0x49b33d[_0x2ccc54(0x210)](_0x3b65e0,_0x2ccc54(0x1f1)));const _0x1f83ab=_0x2368f6({'editor':_0x34c0ff,'reply':_0x49b33d,'interaction':_0x37c289,'groups':_0x2ca9d0,'transform':!0x0,'documentCompare':_0x527c19,'documentCompareOptions':{'anchor':_0x2ccc54(0x1e6),'markDeletions':!0x1}});let _0x1259f8;_0x48b80f&&this[_0x2ccc54(0x27b)](_0x48b80f[_0x2ccc54(0x1db)]),_0x34c0ff[_0x2ccc54(0x21c)][_0x2ccc54(0x17e)](_0x2a765c=>{const _0x1b7e40=_0x2ccc54;_0x1259f8=_0x2a765c[_0x1b7e40(0x1ab)];for(const _0x3b506b of _0x1f83ab)_0x3b506b[_0x1b7e40(0x160)]=_0x34c0ff[_0x1b7e40(0x21c)][_0x1b7e40(0x207)][_0x1b7e40(0x1cf)],_0x2a765c[_0x1b7e40(0x1ab)][_0x1b7e40(0x1b6)](_0x3b506b),_0x34c0ff[_0x1b7e40(0x21c)][_0x1b7e40(0x1cb)](_0x3b506b);}),this[_0x2ccc54(0x1eb)][_0x2ccc54(0x22c)](_0x1259f8,{'interactionId':_0x37c289['id'],'replyId':_0x49b33d['id'],'indexes':_0x230dbc[_0x2ccc54(0x213)]()});}[_0x56431e(0x248)](_0x273e3b,_0x42ff89){const _0x17ceca=_0x56431e,_0x2f52f7=_0x2a5e53(this[_0x17ceca(0x2a8)]),_0x19044e=this[_0x17ceca(0x247)](_0x273e3b,_0x42ff89),_0x4580e1=this[_0x17ceca(0x2a8)][_0x17ceca(0x215)][_0x17ceca(0x2a5)](_0x3a6e81);if(!_0x19044e)return void _0x4580e1[_0x17ceca(0x189)]();const {range:_0xa1ff9b,currentIndex:_0x2dc0ec,previousIndex:_0x12ce43,nextIndex:_0x5da606}=_0x19044e;if(this[_0x17ceca(0x1b8)]?.[_0x17ceca(0x26b)]==_0x273e3b&&this[_0x17ceca(0x1b8)]?.[_0x17ceca(0x1b3)]==_0x2dc0ec)return;this[_0x17ceca(0x1b8)]={'replyId':_0x273e3b,'partIndex':_0x2dc0ec};const _0x1acabc=new _0x5733e5(_0x2f52f7[_0x17ceca(0x1ae)],{'showDiff':this[_0x17ceca(0x217)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x17ceca(0x22b)},'hideHeader':!0x0}),{reply:_0x1c2c32}=this[_0x17ceca(0x233)](_0x273e3b),_0x599ad4=_0x5abdc2({'editor':_0x2f52f7,'changeGroups':[_0x1c2c32[_0x17ceca(0x1a4)][_0x2dc0ec]],'documentContextContent':_0x1c2c32[_0x17ceca(0x1d2)],'showDiff':this[_0x17ceca(0x217)]});_0x1acabc[_0x17ceca(0x261)]({'parts':_0x599ad4,'renderingStrategy':_0x17ceca(0x15f)});const _0x1985c3=_0x2dc0ec!==_0x12ce43;this[_0x17ceca(0x27b)](_0xa1ff9b,!0x0),_0x4580e1[_0x17ceca(0x20f)]({'index':_0x2dc0ec,'title':_0x44f0a3(this[_0x17ceca(0x2a8)][_0x17ceca(0x1ae)],_0x17ceca(0x198),(_0x2dc0ec+0x1)[_0x17ceca(0x1a3)]()),'icon':_0x2a87d2,'mainView':_0x1acabc,'showRotator':_0x1985c3,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0xa1ff9b]}),this[_0x17ceca(0x1df)][_0x17ceca(0x219)](_0x273e3b,_0x2dc0ec),this[_0x17ceca(0x25b)](_0x1acabc,_0x17ceca(0x281),(_0x32f107,{showDiff:_0x45449d})=>{const _0x503ebd=_0x17ceca;this[_0x503ebd(0x217)]=_0x45449d;const {reply:_0x33d1b6}=this[_0x503ebd(0x233)](_0x273e3b),_0xfacad4=_0x5abdc2({'editor':_0x2f52f7,'changeGroups':[_0x33d1b6[_0x503ebd(0x1a4)][_0x2dc0ec]],'documentContextContent':_0x33d1b6[_0x503ebd(0x1d2)],'showDiff':_0x45449d});_0x1acabc[_0x503ebd(0x261)]({'parts':_0xfacad4,'renderingStrategy':_0x503ebd(0x15f)});}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x255),()=>{const _0x5cec21=_0x17ceca;this[_0x5cec21(0x1e0)]({'replyId':_0x273e3b,'partIndex':_0x2dc0ec}),_0x1985c3?this[_0x5cec21(0x248)](_0x273e3b,_0x5da606):_0x4580e1[_0x5cec21(0x189)]();}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x19c),()=>{const _0x52e940=_0x17ceca;this[_0x52e940(0x25c)]({'replyId':_0x273e3b,'partIndex':_0x2dc0ec}),_0x1985c3?this[_0x52e940(0x248)](_0x273e3b,_0x5da606):_0x4580e1[_0x52e940(0x189)]();}),_0x1985c3&&(this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x270),()=>{const _0xb7de98=_0x17ceca;this[_0xb7de98(0x248)](_0x273e3b,_0x5da606);}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x21f),()=>{const _0x23dfce=_0x17ceca;this[_0x23dfce(0x248)](_0x273e3b,_0x12ce43);})),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x276),()=>{const _0x46c5b9=_0x17ceca;this[_0x46c5b9(0x28e)](_0x4580e1),this[_0x46c5b9(0x28e)](_0x1acabc),this[_0x46c5b9(0x1b8)]=null;});}[_0x56431e(0x247)](_0x6c9ac4,_0x55ddd0){const _0xccc43e=_0x56431e,_0x356d20=_0x2a5e53(this[_0xccc43e(0x2a8)]),{reply:_0x5cee96,interaction:_0x4bed1c}=this[_0xccc43e(0x233)](_0x6c9ac4),_0x13db08=_0x5cee96[_0xccc43e(0x1a4)][_0xccc43e(0x1c8)](_0x1bb1f1=>_0xccc43e(0x29a)==_0x1bb1f1[_0xccc43e(0x1f2)]),_0x363811=_0x13db08[_0xccc43e(0x1ad)](_0x37cf2a=>_0x5cee96[_0xccc43e(0x1a4)][_0xccc43e(0x245)](_0x37cf2a));void 0x0===_0x55ddd0&&(_0x55ddd0=_0x363811[0x0]);const _0x2e463c=_0x363811[_0xccc43e(0x245)](_0x55ddd0);if(-0x1==_0x2e463c)return null;const _0x3de0c5=0x0==_0x2e463c?_0x363811[_0x363811[_0xccc43e(0x171)]-0x1]:_0x363811[_0x2e463c-0x1],_0x368a94=_0x2e463c==_0x363811[_0xccc43e(0x171)]-0x1?_0x363811[0x0]:_0x363811[_0x2e463c+0x1],_0x27990a=_0x13db08[_0x2e463c],_0x3f4a90=new _0x428c01([]),_0x1b7d3d=new _0x428c01([]);for(const _0x3d64dc of _0x27990a[_0xccc43e(0x1c3)])if(_0xccc43e(0x26f)!=_0x3d64dc[_0xccc43e(0x26d)]&&_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x3d64dc[_0xccc43e(0x1fa)][_0xccc43e(0x1d3)](!0x0)),_0xccc43e(0x266)!=_0x3d64dc[_0xccc43e(0x26d)]){const _0x511d7d=_0x544d4b(_0x5c1d75=>_0x42f699(_0x5c1d75,_0xccc43e(0x2a6))==_0x3d64dc['id'],_0x5cee96[_0xccc43e(0x1d2)],!0x0);_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x511d7d[_0xccc43e(0x1d3)](!0x0));}if(0x0==_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x171)]){if(_0x27990a[_0xccc43e(0x1c3)][0x0][_0xccc43e(0x179)]){const _0x2f9e7b=_0x489fa5(_0xccc43e(0x2a6),_0x27990a[_0xccc43e(0x1c3)][0x0][_0xccc43e(0x179)],_0x5cee96[_0xccc43e(0x1d2)]);_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x29e)](_0x2f9e7b[_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x29e)](_0x2f9e7b[_0xccc43e(0x1d3)](!0x0)),_0x2f9e7b[_0xccc43e(0x180)]&&(_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x2f9e7b[_0xccc43e(0x180)][_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x2f9e7b[_0xccc43e(0x180)][_0xccc43e(0x1d3)](!0x0)));}else{const _0x11a0ba=_0x5cee96[_0xccc43e(0x1d2)][_0xccc43e(0x22f)][0x0];if(!_0x11a0ba)return null;_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x11a0ba[_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x11a0ba[_0xccc43e(0x1d3)](!0x0));}}const _0x5e53d0=_0x4bed1c[_0xccc43e(0x1d9)](),_0x4dff10=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x5e53d0[_0xccc43e(0x28b)]),_0x3947bc=_0x5b7905(_0x3f4a90),_0x460d63=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x3947bc),_0x21c546=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x3947bc),_0x58d169=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x1e5)](_0x460d63,0x0),_0x766565=_0x5b7905(_0x1b7d3d),_0x544e88={'anchor':_0x58d169,'markDeletions':!0x1},_0x2cc5b0=_0x356d20[_0xccc43e(0x215)][_0xccc43e(0x2a5)](_0x592911)[_0xccc43e(0x19d)](_0x3947bc,_0x766565,_0x544e88)[_0xccc43e(0x257)]();if(!_0x2cc5b0[_0xccc43e(0x171)])return null;_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x17e)](_0x54e82f=>{const _0x26a24c=_0xccc43e;for(const _0x2836f5 of _0x2cc5b0)if(_0x26a24c(0x166)==_0x2836f5[_0x26a24c(0x26d)]){const _0x1ab0a1=_0x2836f5[_0x26a24c(0x191)],_0x2c23e3=_0x2836f5[_0x26a24c(0x1d0)],_0x5a274b=new _0x3b66d6(_0x1ab0a1,_0x2c23e3);_0x54e82f[_0x26a24c(0x1ab)][_0x26a24c(0x1b6)](_0x5a274b),_0x356d20[_0x26a24c(0x21c)][_0x26a24c(0x1cb)](_0x5a274b);}else _0x2836f5[_0x26a24c(0x160)]=null,_0x2836f5[_0x26a24c(0x203)]=!0x1,_0x54e82f[_0x26a24c(0x1ab)][_0x26a24c(0x1b6)](_0x2836f5),_0x356d20[_0x26a24c(0x21c)][_0x26a24c(0x1cb)](_0x2836f5);});const _0x47b3c6=_0x332825(_0x356d20,_0x2cc5b0,_0x460d63);_0x148580(_0x356d20[_0xccc43e(0x21c)],_0x47b3c6);const _0x468568=_0x47b3c6[_0xccc43e(0x2a3)]()[_0xccc43e(0x24b)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x363821=_0x47b3c6[_0xccc43e(0x2a3)]()[_0xccc43e(0x241)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x4d7f9e=[];let _0x3d0ca4=_0x460d63,_0x175bae=_0x21c546;for(let _0x1cf326=0x0;_0x1cf326<_0x363821[_0xccc43e(0x171)];_0x1cf326++){const _0x1e3b50=_0x3d0ca4[_0xccc43e(0x1e8)]-_0x363821[_0x1cf326];_0x4d7f9e[_0x1cf326]=_0x175bae[_0xccc43e(0x1e8)]-_0x1e3b50,_0x3d0ca4=_0x3d0ca4[_0xccc43e(0x1e9)](_0x363821[_0x1cf326]),_0x175bae=_0x175bae[_0xccc43e(0x1e9)](_0x4d7f9e[_0x1cf326]);}const _0x58b609=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x19b)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x21c546,_0x468568),_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x21c546,_0x4d7f9e)),_0x2ae18b=_0x21c546[_0xccc43e(0x1ac)](0x0)[_0xccc43e(0x1cd)](_0x4f5916),_0x5ad2b7=Array[_0xccc43e(0x240)](_0x4dff10[_0xccc43e(0x1a8)]())[_0xccc43e(0x2a4)](_0x471fc3=>_0x471fc3[_0xccc43e(0x1cd)](_0x4f5916)==_0x2ae18b)[_0xccc43e(0x1ea)](),_0x52e2ed=_0x58b609[_0xccc43e(0x24b)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x18724a=_0x58b609[_0xccc43e(0x241)][_0xccc43e(0x29f)][_0xccc43e(0x213)]();_0x52e2ed[0x0]=_0x5ad2b7[0x0]+_0x52e2ed[0x0],_0x18724a[0x0]=_0x5ad2b7[0x0]+_0x18724a[0x0];let _0x2c689d=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x19b)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x28a)](),_0x52e2ed),_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x28a)](),_0x18724a));const _0x3cd1d0=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x278)][_0xccc43e(0x257)](_0x5e53d0[_0xccc43e(0x1cf)]);for(const _0x4acdc5 of _0x3cd1d0)_0x2c689d=_0x156604[_0xccc43e(0x228)](_0x2c689d[_0xccc43e(0x253)](_0x4acdc5));return{'range':_0x2c689d,'previousIndex':_0x3de0c5,'nextIndex':_0x368a94,'currentIndex':_0x55ddd0};}[_0x56431e(0x264)](_0x425b40){const _0x585130=_0x56431e;if(!_0x425b40[_0x585130(0x215)][_0x585130(0x274)](_0x585130(0x175)))return;const _0x30c9b7=_0x425b40[_0x585130(0x21d)][_0x585130(0x2a5)](_0x585130(0x292)),_0x529f1d=_0x425b40[_0x585130(0x21d)][_0x585130(0x2a5)](_0x585130(0x229));this[_0x585130(0x25b)](_0x30c9b7,_0x585130(0x190),(_0x354ab5,_0x186038,_0x23df4a)=>{const _0x5c47a9=_0x585130,_0x267873=this[_0x5c47a9(0x1eb)][_0x5c47a9(0x2a5)](_0x186038);if(!_0x267873)return;const _0x5cde9f=this[_0x5c47a9(0x26a)][_0x5c47a9(0x295)](_0x267873[_0x5c47a9(0x29b)])[_0x5c47a9(0x1a5)](_0x267873[_0x5c47a9(0x26b)]);_0x267873[_0x5c47a9(0x1fd)][_0x5c47a9(0x1d4)](_0x40f7a5=>_0x5cde9f[_0x5c47a9(0x210)](_0x40f7a5,_0x5c47a9(0x29a))),this[_0x5c47a9(0x1eb)][_0x5c47a9(0x170)](_0x186038),this[_0x5c47a9(0x1eb)][_0x5c47a9(0x22c)](_0x23df4a,_0x267873);}),this[_0x585130(0x25b)](_0x529f1d,_0x585130(0x190),(_0x40d99f,_0x5da79b,_0x213b71)=>{const _0x3fe157=_0x585130,_0x5f0f8f=this[_0x3fe157(0x1eb)][_0x3fe157(0x2a5)](_0x5da79b);if(!_0x5f0f8f)return;const _0x3d9289=this[_0x3fe157(0x26a)][_0x3fe157(0x295)](_0x5f0f8f[_0x3fe157(0x29b)])[_0x3fe157(0x1a5)](_0x5f0f8f[_0x3fe157(0x26b)]);_0x5f0f8f[_0x3fe157(0x1fd)][_0x3fe157(0x1d4)](_0x1bd2bc=>_0x3d9289[_0x3fe157(0x210)](_0x1bd2bc,_0x3fe157(0x1f1))),this[_0x3fe157(0x1eb)][_0x3fe157(0x170)](_0x5da79b),this[_0x3fe157(0x1eb)][_0x3fe157(0x22c)](_0x213b71,_0x5f0f8f);});}async[_0x56431e(0x1bb)](_0x578e74){const _0x1c0189=_0x56431e;this[_0x1c0189(0x2a8)][_0x1c0189(0x215)][_0x1c0189(0x2a5)](_0x3a6e81)[_0x1c0189(0x189)](),this[_0x1c0189(0x1df)][_0x1c0189(0x187)](_0x1c0189(0x15f)),this[_0x1c0189(0x1df)][_0x1c0189(0x177)](!0x0),await this[_0x1c0189(0x24a)]();try{const _0x380e22=this[_0x1c0189(0x2a8)][_0x1c0189(0x215)][_0x1c0189(0x2a5)](_0x570d7d);this[_0x1c0189(0x252)]('\x20'),_0x380e22[_0x1c0189(0x196)][_0x1c0189(0x192)](_0x1c0189(0x211)),await this[_0x1c0189(0x1fe)](_0x578e74);const {sessionId:_0x596594}=this[_0x1c0189(0x234)][_0x1c0189(0x242)]();await this[_0x1c0189(0x26a)][_0x1c0189(0x268)](_0x578e74,_0x596594),this[_0x1c0189(0x26a)][_0x1c0189(0x251)]()&&this[_0x1c0189(0x26a)][_0x1c0189(0x184)](_0x44f0a3(this[_0x1c0189(0x2a8)][_0x1c0189(0x1ae)],_0x1c0189(0x1c0)));}catch(_0x554754){console[_0x1c0189(0x236)](_0x1c0189(0x163),_0x554754);}finally{this[_0x1c0189(0x1df)][_0x1c0189(0x187)](_0x1c0189(0x1de)),this[_0x1c0189(0x1df)][_0x1c0189(0x177)](!0x1);}}[_0x56431e(0x174)](_0x306f0a){const _0x324d3d=_0x56431e;this[_0x324d3d(0x26a)]['id']===_0x306f0a&&this[_0x324d3d(0x1fe)]();}async[_0x56431e(0x209)](){const _0x187315=_0x56431e,_0x2ca118=this[_0x187315(0x234)][_0x187315(0x291)]();this[_0x187315(0x26a)]?.[_0x187315(0x279)](_0x2ca118),this[_0x187315(0x26a)]?.[_0x187315(0x184)](_0x44f0a3(this[_0x187315(0x2a8)][_0x187315(0x1ae)],_0x187315(0x1c0)));}[_0x56431e(0x197)](){const _0x538226=_0x56431e;this[_0x538226(0x26a)]?.[_0x538226(0x24e)]();}[_0x56431e(0x298)](){const _0x4f343b=_0x56431e;this[_0x4f343b(0x1df)][_0x4f343b(0x298)]();}async[_0x56431e(0x221)](){const _0x2b93ba=_0x56431e;await this[_0x2b93ba(0x1fe)]();}async[_0x56431e(0x168)]({message:_0x451e0f,quickActionData:_0x518c4a}){const _0x51a610=_0x56431e;await this[_0x51a610(0x25a)]({'userMessage':_0x451e0f,'quickActionData':_0x518c4a});}[_0x56431e(0x1ba)](){const _0x425e3c=_0x56431e,_0x27b392=this[_0x425e3c(0x2a8)][_0x425e3c(0x216)][_0x425e3c(0x2a5)](_0x425e3c(0x273));if(!_0x27b392)throw new _0x3661c1(_0x425e3c(0x1fc),this);return _0x27b392;}async[_0x56431e(0x1fe)](_0x23412b){const _0x47ea23=_0x56431e,_0x25e238=this[_0x47ea23(0x2a8)][_0x47ea23(0x215)][_0x47ea23(0x2a5)](_0x3a6e81);let _0xe30375;_0x25e238[_0x47ea23(0x22d)]&&_0x25e238[_0x47ea23(0x189)](),_0xe30375=_0x23412b||!this[_0x47ea23(0x26a)]?this[_0x47ea23(0x2a8)][_0x47ea23(0x216)][_0x47ea23(0x2a5)](_0x47ea23(0x1d5)):this[_0x47ea23(0x26a)][_0x47ea23(0x258)]['id'],await this[_0x47ea23(0x24a)]();const _0xbb701d=this[_0x47ea23(0x1ba)](),_0x2ffc15=_0x23412b||_0x12eb43();this[_0x47ea23(0x26a)]=new _0x14ab1c({'connector':this[_0x47ea23(0x18d)],'chatModels':this[_0x47ea23(0x259)],'defaultModelId':_0xe30375,'conversationId':_0x2ffc15,'group':_0xbb701d,'getEditor':()=>_0x2a5e53(this[_0x47ea23(0x2a8)])}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1b7),(_0x486d68,_0x59cf60)=>{const _0x367bd1=_0x47ea23;_0x59cf60[_0x367bd1(0x165)]=this[_0x367bd1(0x17c)](_0x59cf60[_0x367bd1(0x165)],this[_0x367bd1(0x2a8)][_0x367bd1(0x216)][_0x367bd1(0x2a5)](_0x367bd1(0x176))),this[_0x367bd1(0x1df)][_0x367bd1(0x1aa)](_0x59cf60),this[_0x367bd1(0x1df)][_0x367bd1(0x15e)](),this[_0x367bd1(0x1df)][_0x367bd1(0x194)](),this[_0x367bd1(0x1df)][_0x367bd1(0x214)](),_0x23412b||(this[_0x367bd1(0x1df)][_0x367bd1(0x20b)](),this[_0x367bd1(0x26a)]?.[_0x367bd1(0x184)](_0x44f0a3(this[_0x367bd1(0x2a8)][_0x367bd1(0x1ae)],_0x367bd1(0x1c0))));}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x230),(_0x5bbc42,_0x2363a7)=>{const _0x103ca0=_0x47ea23;this[_0x103ca0(0x1df)][_0x103ca0(0x24f)](_0x2363a7[_0x103ca0(0x15b)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a1),(_0x46531a,_0x24da8f)=>{const _0x2e4f55=_0x47ea23;this[_0x2e4f55(0x1df)][_0x2e4f55(0x235)](_0x24da8f),this[_0x2e4f55(0x1df)][_0x2e4f55(0x289)](_0x24da8f);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x244),(_0x611618,_0x403736)=>{const _0x1f2eee=_0x47ea23;this[_0x1f2eee(0x1df)][_0x1f2eee(0x1e2)](_0x403736);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x16f),async()=>{const _0x59682f=_0x47ea23;await this[_0x59682f(0x1df)][_0x59682f(0x1f9)]();}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1ec),(_0x3f805f,_0x4325e4)=>{const _0x5f2cca=_0x47ea23;this[_0x5f2cca(0x1df)][_0x5f2cca(0x2a2)](_0x4325e4['id']);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x18f),(_0x1e51c0,_0x3b59a5,_0x51a422)=>{const _0x68569b=_0x47ea23;this[_0x68569b(0x252)](_0x3b59a5,_0x51a422);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x199),(_0x26f89a,_0x5f020f)=>{const _0x1733d1=_0x47ea23;this[_0x1733d1(0x1df)][_0x1733d1(0x1ff)]({'isVisible':!0x0,'id':_0x5f020f[_0x1733d1(0x29b)]}),_0x1733d1(0x1ca)===_0x5f020f[_0x1733d1(0x26d)]?this[_0x1733d1(0x1df)][_0x1733d1(0x271)](_0x5f020f):this[_0x1733d1(0x1df)][_0x1733d1(0x293)](_0x5f020f);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1fb),async(_0x43a3ea,_0x3e738a,_0x27fc10)=>{const _0xd3a1f1=_0x47ea23;await this[_0xd3a1f1(0x19f)]({'reply':_0x3e738a,'changeGroups':_0x27fc10});}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x287),(_0x320bef,{reply:_0x9a5c2c,index:_0x2f9480,state:_0x3173dd})=>{const _0x494b8a=_0x47ea23;this[_0x494b8a(0x1df)][_0x494b8a(0x243)]({'id':_0x9a5c2c['id'],'index':_0x2f9480,'state':_0x3173dd});}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a9),(_0x3b4d69,_0x3d5e14)=>{const _0x3a3017=_0x47ea23;if(this[_0x3a3017(0x1df)][_0x3a3017(0x1d1)](_0x3d5e14[_0x3a3017(0x17d)],_0x3d5e14[_0x3a3017(0x188)]),_0x3a3017(0x182)===_0x3d5e14[_0x3a3017(0x17d)][_0x3a3017(0x26d)]){const _0xeba4ae=[..._0x2a5e53(this[_0x3a3017(0x2a8)])[_0x3a3017(0x21c)][_0x3a3017(0x207)][_0x3a3017(0x182)][_0x3a3017(0x27f)]()];this[_0x3a3017(0x234)][_0x3a3017(0x1a7)](_0xeba4ae,_0x3a3017(0x226)+this[_0x3a3017(0x26a)]?.['id']);}}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x227),(_0xdf07a9,_0xfa5a3f)=>{const _0x51c9c2=_0x47ea23;this[_0x51c9c2(0x1df)][_0x51c9c2(0x269)](_0xfa5a3f[_0x51c9c2(0x218)]),_0x51c9c2(0x1da)==_0xfa5a3f[_0x51c9c2(0x218)]&&this[_0x51c9c2(0x197)](),_0x51c9c2(0x182)===_0xfa5a3f[_0x51c9c2(0x26d)]&&this[_0x51c9c2(0x234)][_0x51c9c2(0x1a9)](_0x51c9c2(0x226)+this[_0x51c9c2(0x26a)]?.['id']);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x265),(_0x41b305,_0x35ea5d)=>{const _0x103d95=_0x47ea23;this[_0x103d95(0x1df)][_0x103d95(0x23a)](_0x35ea5d[_0x103d95(0x17d)][_0x103d95(0x218)],_0x35ea5d[_0x103d95(0x188)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x185),(_0x2970d7,_0x25b52f)=>{const _0x2cdd56=_0x47ea23;this[_0x2cdd56(0x1df)][_0x2cdd56(0x29c)](_0x25b52f[_0x2cdd56(0x28f)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a0),(_0x37c36a,_0x487206)=>{const _0x2c26d8=_0x47ea23;this[_0x2c26d8(0x1df)][_0x2c26d8(0x27c)](_0x487206[_0x2c26d8(0x288)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1c5),(_0x30f4cf,_0x75c24d)=>{const _0x439854=_0x47ea23;this[_0x439854(0x1df)][_0x439854(0x223)](_0x75c24d[_0x439854(0x16e)],_0x75c24d[_0x439854(0x254)],_0x75c24d[_0x439854(0x17f)],_0x75c24d[_0x439854(0x26c)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x195),(_0x37ad7e,_0x429d0f)=>{const _0x5ba07d=_0x47ea23;this[_0x5ba07d(0x1df)][_0x5ba07d(0x1d6)](_0x429d0f[_0x5ba07d(0x16e)],_0x429d0f[_0x5ba07d(0x21b)],_0x429d0f[_0x5ba07d(0x24d)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x25e),(_0x45c767,_0x192c72)=>{const _0x5348a7=_0x47ea23;this[_0x5348a7(0x1df)][_0x5348a7(0x1e4)](_0x192c72);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x232),(_0x2f091c,_0x30a8b2)=>{const _0x341d42=_0x47ea23;this[_0x341d42(0x1df)][_0x341d42(0x16a)](_0x30a8b2[_0x341d42(0x258)],_0x30a8b2[_0x341d42(0x1c2)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x236),(_0xadbac9,{error:_0x3f64f7,interactionId:_0x302c52,fileName:_0x46d251,url:_0x29567d,sourceId:_0x3d8d1d,sourceLabel:_0x3c4328})=>{const _0x5a3a69=_0x47ea23,_0xcc3bea=_0x302c52?_0x302c52+':'+_0x12eb43():_0x12eb43();_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1b2))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x202)]({'staticMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x294)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1c6))||_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x297))?(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x18a)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1ed))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1e1),_0x46d251),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1ef))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1a6),_0x29567d),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x23d))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1bd)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x164))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1b5)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1d7))?(_0x3d8d1d&&this[_0x5a3a69(0x1df)][_0x5a3a69(0x1b1)](_0x3d8d1d),this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x267),_0x3c4328||_0x5a3a69(0x254)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1d8))?(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x237)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1af)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7));}),await this[_0x47ea23(0x26a)][_0x47ea23(0x1f5)](this[_0x47ea23(0x2a8)][_0x47ea23(0x216)][_0x47ea23(0x2a5)](_0x47ea23(0x1ce))),_0x23412b||await this[_0x47ea23(0x26a)][_0x47ea23(0x24b)]();}async[_0x56431e(0x25a)]({userMessage:_0x489ec2,quickActionData:_0x4a1d43}){const _0x255e70=_0x56431e;if(!this[_0x255e70(0x26a)])throw new _0x3661c1(_0x255e70(0x2a7));this[_0x255e70(0x26a)][_0x255e70(0x19a)]()&&await this[_0x255e70(0x26a)][_0x255e70(0x19e)](this[_0x255e70(0x234)][_0x255e70(0x242)]()),this[_0x255e70(0x26a)]['id']&&this[_0x255e70(0x26a)][_0x255e70(0x1f4)]&&await this[_0x255e70(0x26a)][_0x255e70(0x246)]({'userMessage':_0x489ec2,'quickActionData':_0x4a1d43}),this[_0x255e70(0x22e)]();}[_0x56431e(0x22e)](){const _0x4efd37=_0x56431e,_0x474b1f=_0x2a5e53(this[_0x4efd37(0x2a8)])[_0x4efd37(0x21c)],_0x3bf376=Array[_0x4efd37(0x240)](_0x474b1f[_0x4efd37(0x16c)][_0x4efd37(0x262)](_0x503260));_0x474b1f[_0x4efd37(0x17e)](_0x144a89=>{const _0xe7710=_0x4efd37;_0x3bf376[_0xe7710(0x1d4)](_0x3a1161=>_0x144a89[_0xe7710(0x299)](_0x3a1161));});}[_0x56431e(0x200)](){const _0x2c98a7=_0x56431e;console[_0x2c98a7(0x1f7)](_0x2c98a7(0x272));}[_0x56431e(0x204)](_0x388304){const _0x48980a=_0x56431e;this[_0x48980a(0x1df)][_0x48980a(0x21e)](_0x388304);}[_0x56431e(0x162)](_0x1bfde8){const _0x1a9028=_0x56431e;_0x116548(_0x1bfde8[_0x1a9028(0x15c)]);}[_0x56431e(0x181)](_0x48655e){const _0x1c0751=_0x56431e;this[_0x1c0751(0x26a)]?.[_0x1c0751(0x224)](_0x48655e);}[_0x56431e(0x1c7)](){const _0x2e60aa=_0x56431e;this[_0x2e60aa(0x26a)]?.[_0x2e60aa(0x16b)]();}[_0x56431e(0x1b0)](){const _0x17013e=_0x56431e;this[_0x17013e(0x26a)]?.[_0x17013e(0x285)]();}[_0x56431e(0x233)](_0x1c9f4b){const _0x2070ab=_0x56431e,[_0x36ac3d,_0x58e4d8]=_0x1c9f4b[_0x2070ab(0x1ee)](':'),_0x1eb6e2=this[_0x2070ab(0x26a)][_0x2070ab(0x295)](_0x36ac3d),_0x497373=_0x1eb6e2[_0x2070ab(0x1a5)](_0x58e4d8);return{'interaction':_0x1eb6e2,'reply':_0x497373};}[_0x56431e(0x27b)](_0x2c17ab,_0x58a7d6=!0x1){const _0x44db4a=_0x56431e,_0x568dfe=_0x2a5e53(this[_0x44db4a(0x2a8)]),_0x138c8c={'target':_0x568dfe[_0x44db4a(0x20d)][_0x44db4a(0x196)][_0x44db4a(0x1bc)][_0x44db4a(0x282)](_0x568dfe[_0x44db4a(0x20d)][_0x44db4a(0x26e)][_0x44db4a(0x1b9)](_0x2c17ab)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x58a7d6};_0x58a7d6&&(_0x138c8c[_0x44db4a(0x290)]=!0x0),_0x55a9fe(_0x138c8c);}[_0x56431e(0x252)](_0x480854,_0x4cc63f=!0x1){const _0x414b02=_0x56431e;this[_0x414b02(0x1df)][_0x414b02(0x18f)](_0x480854||_0x44f0a3(this[_0x414b02(0x2a8)][_0x414b02(0x1ae)],_0x414b02(0x1f0)),_0x4cc63f);}[_0x56431e(0x17c)](_0x50bb56,_0x1ec5ba){const _0x5645d7=_0x56431e;let _0xca9266;if(_0x1ec5ba){_0xca9266=[];const _0x517341=_0x5645d7(0x205)==typeof _0x1ec5ba?[_0x1ec5ba[_0x5645d7(0x23b)]()]:_0x1ec5ba[_0x5645d7(0x1ad)](_0x27e957=>_0x27e957[_0x5645d7(0x23b)]());for(const _0x4b3022 of _0x517341)for(const _0xbd6dab of _0x50bb56)(_0xbd6dab['id'][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab[_0x5645d7(0x284)][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab[_0x5645d7(0x1a2)][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab['id'][_0x5645d7(0x23b)]()[_0x5645d7(0x193)](_0x4b3022))&&_0xca9266[_0x5645d7(0x208)](_0xbd6dab);}else _0xca9266=_0x50bb56;return _0xca9266;}async[_0x56431e(0x19f)]({reply:_0x51fb34,changeGroups:_0x31036a,renderingStrategy:_0x2cddc4}){const _0xea5ac7=_0x56431e,{id:_0x4e7c7d,isDone:_0x15bf71,type:_0x25d504,parsedContent:_0x5d87b4}=_0x51fb34;if(_0xea5ac7(0x280)===_0x25d504){const _0x3223ff=_0x2a5e53(this[_0xea5ac7(0x2a8)]),_0x2cc824=_0x5abdc2({'editor':_0x3223ff,'showDiff':this[_0xea5ac7(0x1df)][_0xea5ac7(0x27a)],'changeGroups':_0x31036a,'documentContextContent':_0x51fb34[_0xea5ac7(0x1d2)]});await this[_0xea5ac7(0x1df)][_0xea5ac7(0x23f)]({'id':_0x4e7c7d,'parts':_0x2cc824,'renderingStrategy':_0x2cddc4,'isDone':_0x15bf71});}else _0xea5ac7(0x1ca)===_0x25d504&&await this[_0xea5ac7(0x1df)][_0xea5ac7(0x1b4)]({'id':_0x4e7c7d,'parsedContent':_0x5d87b4,'renderingStrategy':_0x2cddc4,'isDone':_0x15bf71});_0x15bf71&&_0x51fb34[_0xea5ac7(0x239)][_0xea5ac7(0x171)]>0x0&&this[_0xea5ac7(0x1df)][_0xea5ac7(0x28c)](_0x4e7c7d,_0x51fb34[_0xea5ac7(0x239)]);}async[_0x56431e(0x24a)](){const _0x3123d6=_0x56431e,_0x152ca0=this[_0x3123d6(0x26a)]?.[_0x3123d6(0x1be)];_0x152ca0&&(_0x152ca0[_0x3123d6(0x178)](),this[_0x3123d6(0x1df)][_0x3123d6(0x23c)](_0x152ca0));}async[_0x56431e(0x238)](){const _0x671367=_0x56431e,_0xe87b0b=this[_0x671367(0x26a)]?.[_0x671367(0x1be)];if(_0xe87b0b){for await(const _0x1e737f of _0xe87b0b[_0x671367(0x25d)])await this[_0x671367(0x19f)]({'reply':_0x1e737f,'changeGroups':_0x1e737f[_0x671367(0x1a4)],'renderingStrategy':_0x671367(0x15f)});}}}
23
+ const _0xd34f13=_0x3dfb;(function(_0x300620,_0x1d575c){const _0x19bd51=_0x3dfb,_0x4b16d2=_0x300620();while(!![]){try{const _0x593a17=-parseInt(_0x19bd51(0x265))/0x1+-parseInt(_0x19bd51(0x231))/0x2+parseInt(_0x19bd51(0x165))/0x3+-parseInt(_0x19bd51(0x19a))/0x4+parseInt(_0x19bd51(0x201))/0x5*(-parseInt(_0x19bd51(0x267))/0x6)+parseInt(_0x19bd51(0x25d))/0x7+parseInt(_0x19bd51(0x23c))/0x8*(parseInt(_0x19bd51(0x1f2))/0x9);if(_0x593a17===_0x1d575c)break;else _0x4b16d2['push'](_0x4b16d2['shift']());}catch(_0x547a0d){_0x4b16d2['push'](_0x4b16d2['shift']());}}}(_0x23c1,0xb4d38));import{ContextPlugin as _0x1a2899,Editor as _0x3ebc31}from'ckeditor5/src/core.js';import{CKEditorError as _0x4b6396,logError as _0x422bdc,scrollViewportToShowTarget as _0x4020b8,uid as _0x23ccda}from'ckeditor5/src/utils.js';import{AIConnector as _0x38fbe1}from'../aicore/aiconnector.js';import{AITabs as _0x5cd7d6}from'../aitabs/aitabs.js';import{AIChatConversation as _0x35b316}from'./model/aichatconversation.js';import{getTranslation as _0x3c888f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5d9f5d}from'../aicore/aiediting.js';import{AIChatModels as _0x4284e4}from'./model/aichatmodels.js';import{getEditorFromContext as _0x24a6e8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x15f896,DATA_ID_MODEL_ATTRIBUTE as _0x14590e}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x48833e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3fda17,getMinimalSelection as _0x5bddc0,getSuggestionPartsFromReply as _0x2aabc7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x34695c,_DetachOperation as _0x252c87}from'ckeditor5/src/engine.js';import{findOne as _0x3eee92,getAttribute as _0x3ef17b,serialize as _0x4adf71,Document as _0x3c4540,findByAttribute as _0x232a5d}from'../aicore/utils/htmlparser.js';function _0x3dfb(_0x158538,_0x5e2520){const _0x23c170=_0x23c1();return _0x3dfb=function(_0x3dfb92,_0x42363d){_0x3dfb92=_0x3dfb92-0x14e;let _0xc891cc=_0x23c170[_0x3dfb92];return _0xc891cc;},_0x3dfb(_0x158538,_0x5e2520);}import{IconAI as _0x1cab71}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4bf453}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4c5548}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1a2899{[_0xd34f13(0x15b)];[_0xd34f13(0x223)];[_0xd34f13(0x1df)];[_0xd34f13(0x19f)];[_0xd34f13(0x252)]=new Map();[_0xd34f13(0x1bc)]=null;[_0xd34f13(0x246)]=!0x1;static get[_0xd34f13(0x178)](){return[_0x38fbe1,_0x4c5548,_0x15f896];}static get[_0xd34f13(0x273)](){const _0x43b0a6=_0xd34f13;return _0x43b0a6(0x154);}static get[_0xd34f13(0x1bf)](){return!0x0;}static get[_0xd34f13(0x18f)](){return!0x0;}[_0xd34f13(0x204)](){const _0x4e3e67=_0xd34f13;this[_0x4e3e67(0x223)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x19e)),this[_0x4e3e67(0x1df)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1c4)),this[_0x4e3e67(0x15b)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1a7)),this[_0x4e3e67(0x19f)]=new _0x4284e4({'connector':this[_0x4e3e67(0x223)]});const _0x3e58dd=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x156));this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x297),()=>{const _0x5f195b=_0x4e3e67;this[_0x5f195b(0x172)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x264),(_0x402d69,_0x45f035)=>{const _0x456742=_0x4e3e67;this[_0x456742(0x24d)]({'userMessage':_0x45f035});}),this[_0x4e3e67(0x1a5)](_0x3e58dd,_0x4e3e67(0x1e2),(_0x36d481,_0x94fe99)=>{const _0xce1a8d=_0x4e3e67;this[_0xce1a8d(0x1f4)](_0x94fe99);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17b),()=>{const _0x2ab330=_0x4e3e67;_0x3e58dd[_0x2ab330(0x1e5)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x174),async()=>{const _0x4bc830=_0x4e3e67;await this[_0x4bc830(0x1cd)](),await this[_0x4bc830(0x21f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1ab),()=>{const _0x326338=_0x4e3e67;this[_0x326338(0x26c)]?.[_0x326338(0x245)](_0x3c888f(this[_0x326338(0x216)][_0x326338(0x18a)],_0x326338(0x263)));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x25e),(_0x196ea6,_0x5e44ce)=>{const _0x131113=_0x4e3e67;this[_0x131113(0x26c)]?.[_0x131113(0x286)](Array[_0x131113(0x1f5)](_0x5e44ce));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1c5),(_0x1ccaf1,_0x401afb)=>{const _0x47823f=_0x4e3e67;this[_0x47823f(0x26c)]?.[_0x47823f(0x1c5)](_0x401afb);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x194),(_0x4d88f7,_0x387b1f)=>{const _0x35bc3c=_0x4e3e67;this[_0x35bc3c(0x26c)]?.[_0x35bc3c(0x194)](_0x387b1f[_0x35bc3c(0x1bb)],_0x387b1f[_0x35bc3c(0x1bd)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x27a),(_0x5773da,_0x50e1e9)=>{const _0x342f52=_0x4e3e67;this[_0x342f52(0x1d9)](_0x50e1e9);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1a6),(_0x1f9c1c,_0x42a859)=>{const _0x1e5338=_0x4e3e67;this[_0x1e5338(0x26c)]?.[_0x1e5338(0x1a6)](_0x42a859[_0x1e5338(0x1dd)],_0x42a859[_0x1e5338(0x272)],_0x42a859[_0x1e5338(0x211)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x181),()=>{const _0x271083=_0x4e3e67;this[_0x271083(0x17a)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x279),()=>{const _0xdbf6fe=_0x4e3e67;this[_0xdbf6fe(0x14f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x177),(_0x1ddbea,_0x541def)=>{const _0x44dbbd=_0x4e3e67;this[_0x44dbbd(0x26c)]?.[_0x44dbbd(0x1e1)](_0x541def);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d5),(_0x2c0f21,{replyId:_0x34be19})=>{const _0xd2f05d=_0x4e3e67;console[_0xd2f05d(0x21e)](_0xd2f05d(0x212),_0x34be19);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d7),(_0x3ee1e0,{replyId:_0xec8580})=>{const _0x184593=_0x4e3e67;console[_0x184593(0x21e)](_0x184593(0x22d),_0xec8580);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17e),(_0x1e3766,_0x1f9dc2)=>{const _0x4bbdee=_0x4e3e67;this[_0x4bbdee(0x216)][_0x4bbdee(0x243)][_0x4bbdee(0x176)](_0x4c5548)[_0x4bbdee(0x18d)](),this[_0x4bbdee(0x28d)](_0x1f9dc2);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x269),(_0x515e4b,{replyId:_0x439ddf,partIndex:_0x927c60})=>{const _0x2717c8=_0x4e3e67;this[_0x2717c8(0x246)]=this[_0x2717c8(0x1df)][_0x2717c8(0x221)],this[_0x2717c8(0x1c9)](_0x439ddf,_0x927c60);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1be),(_0x31814f,{replyId:_0x5db523,partIndex:_0x31f896})=>{const _0x1973ac=_0x4e3e67,_0x1ded32=this[_0x1973ac(0x184)](_0x5db523,_0x31f896);_0x1ded32&&_0x1973ac(0x240)!=_0x1ded32[_0x1973ac(0x160)][_0x1973ac(0x293)][_0x1973ac(0x23d)]&&this[_0x1973ac(0x15b)][_0x1973ac(0x1da)]([_0x1ded32[_0x1973ac(0x160)]],_0x1973ac(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x26b),()=>{const _0x47a65d=_0x4e3e67;this[_0x47a65d(0x15b)][_0x47a65d(0x1c0)](_0x47a65d(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20c),(_0xcbb27d,_0x280fb8)=>{const _0x1d7bdb=_0x4e3e67;this[_0x1d7bdb(0x216)][_0x1d7bdb(0x243)][_0x1d7bdb(0x176)](_0x4c5548)[_0x1d7bdb(0x18d)](),this[_0x1d7bdb(0x189)](_0x280fb8);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20d),async(_0x29b5ce,_0xf75ac7)=>{const _0x5beb5d=_0x4e3e67,{reply:_0x1a5f69}=this[_0x5beb5d(0x22c)](_0xf75ac7[_0x5beb5d(0x1ef)]),_0x3f385f=_0x24a6e8(this[_0x5beb5d(0x216)]),_0x3fe10b=_0x2aabc7({'editor':_0x3f385f,'changeGroups':_0x1a5f69[_0x5beb5d(0x23b)],'documentContextContent':_0x1a5f69[_0x5beb5d(0x22f)],'showDiff':_0xf75ac7[_0x5beb5d(0x221)]});await this[_0x5beb5d(0x1df)][_0x5beb5d(0x294)]({'id':_0x1a5f69['id'],'parts':_0x3fe10b,'renderingStrategy':_0x5beb5d(0x28e)});}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x287),(_0x4924d5,{replyId:_0x213f44,partIndex:_0x191858})=>{const _0x5f003f=_0x4e3e67;this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x1ef)]==_0x213f44&&this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x29c)]==_0x191858&&this[_0x5f003f(0x216)][_0x5f003f(0x243)][_0x5f003f(0x176)](_0x4c5548)[_0x5f003f(0x18d)]();const {reply:_0x30a3c3}=this[_0x5f003f(0x22c)](_0x213f44);_0x30a3c3[_0x5f003f(0x1b4)](_0x191858,_0x5f003f(0x1d6)),this[_0x5f003f(0x15b)][_0x5f003f(0x1c0)](_0x5f003f(0x23e));});}async[_0xd34f13(0x15d)](){const _0x339c68=_0xd34f13;this[_0x339c68(0x216)]instanceof _0x3ebc31?this[_0x339c68(0x224)](this[_0x339c68(0x216)]):this[_0x339c68(0x1a5)](this[_0x339c68(0x216)][_0x339c68(0x152)],_0x339c68(0x1c2),(_0x13e658,_0x43d53f)=>{const _0x44ada3=_0x339c68;_0x43d53f['on'](_0x44ada3(0x28b),()=>{const _0x3854af=_0x44ada3;this[_0x3854af(0x224)](_0x43d53f);});}),await this[_0x339c68(0x172)]();}[_0xd34f13(0x28d)](_0x236b55){const _0x2fa06a=_0xd34f13,_0x320650=_0x24a6e8(this[_0x2fa06a(0x216)]);if(!_0x320650[_0x2fa06a(0x243)][_0x2fa06a(0x151)](_0x2fa06a(0x209)))return;const _0x17b3a5=this[_0x2fa06a(0x216)][_0x2fa06a(0x243)][_0x2fa06a(0x176)](_0x2fa06a(0x282)),{reply:_0x488b71,interaction:_0x5893b4}=this[_0x2fa06a(0x22c)](_0x236b55[_0x2fa06a(0x1ef)]),_0x26522e=this[_0x2fa06a(0x184)](_0x236b55[_0x2fa06a(0x1ef)],_0x236b55[_0x2fa06a(0x29c)]),_0x2883cf=void 0x0!==_0x236b55[_0x2fa06a(0x29c)]?[_0x488b71[_0x2fa06a(0x23b)][_0x236b55[_0x2fa06a(0x29c)]]]:_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x163)](_0x9dacd9=>_0x2fa06a(0x203)==_0x9dacd9[_0x2fa06a(0x1b7)]),_0x120de1=_0x2883cf[_0x2fa06a(0x1b5)](_0x28c405=>_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x253)](_0x28c405));_0x120de1[_0x2fa06a(0x1aa)](_0x7610b4=>_0x488b71[_0x2fa06a(0x1b4)](_0x7610b4,_0x2fa06a(0x262)));const _0x343c97=_0x48833e({'editor':_0x320650,'reply':_0x488b71,'interaction':_0x5893b4,'groups':_0x2883cf,'transform':!0x0,'documentCompare':_0x17b3a5,'documentCompareOptions':{'anchor':_0x2fa06a(0x1a1),'markDeletions':!0x0}});let _0x150465;_0x26522e&&this[_0x2fa06a(0x1d2)](_0x26522e[_0x2fa06a(0x160)]),_0x320650[_0x2fa06a(0x1a3)][_0x2fa06a(0x1fb)](_0x8259b4=>{const _0x4bb6ab=_0x2fa06a;_0x150465=_0x8259b4[_0x4bb6ab(0x257)],_0x320650[_0x4bb6ab(0x243)][_0x4bb6ab(0x176)](_0x4bb6ab(0x209))[_0x4bb6ab(0x1ac)](_0x343c97),this[_0x4bb6ab(0x15b)][_0x4bb6ab(0x1c0)](_0x4bb6ab(0x23e));}),this[_0x2fa06a(0x252)][_0x2fa06a(0x16f)](_0x150465,{'interactionId':_0x5893b4['id'],'replyId':_0x488b71['id'],'indexes':_0x120de1[_0x2fa06a(0x236)]()});}[_0xd34f13(0x189)](_0x146db5){const _0x2cc18c=_0xd34f13,_0x3bc242=_0x24a6e8(this[_0x2cc18c(0x216)]),_0x21b8f0=this[_0x2cc18c(0x216)][_0x2cc18c(0x243)][_0x2cc18c(0x176)](_0x15f896),{reply:_0x6bb69b,interaction:_0x41122b}=this[_0x2cc18c(0x22c)](_0x146db5[_0x2cc18c(0x1ef)]),_0xe1997f=this[_0x2cc18c(0x184)](_0x146db5[_0x2cc18c(0x1ef)],_0x146db5[_0x2cc18c(0x29c)]),_0x2d5f96=void 0x0!==_0x146db5[_0x2cc18c(0x29c)]?[_0x6bb69b[_0x2cc18c(0x23b)][_0x146db5[_0x2cc18c(0x29c)]]]:_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x163)](_0xb0b1fa=>_0x2cc18c(0x203)==_0xb0b1fa[_0x2cc18c(0x1b7)]),_0x550d4c=_0x2d5f96[_0x2cc18c(0x1b5)](_0x2a8f31=>_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x253)](_0x2a8f31));_0x550d4c[_0x2cc18c(0x1aa)](_0x3d6bae=>_0x6bb69b[_0x2cc18c(0x1b4)](_0x3d6bae,_0x2cc18c(0x262)));const _0x2f0da9=_0x48833e({'editor':_0x3bc242,'reply':_0x6bb69b,'interaction':_0x41122b,'groups':_0x2d5f96,'transform':!0x0,'documentCompare':_0x21b8f0,'documentCompareOptions':{'anchor':_0x2cc18c(0x1a1),'markDeletions':!0x1}});let _0x474b94;_0xe1997f&&this[_0x2cc18c(0x1d2)](_0xe1997f[_0x2cc18c(0x160)]),_0x3bc242[_0x2cc18c(0x1a3)][_0x2cc18c(0x1fb)](_0x508023=>{const _0x515b22=_0x2cc18c;_0x474b94=_0x508023[_0x515b22(0x257)];for(const _0x30488c of _0x2f0da9)_0x30488c[_0x515b22(0x23f)]=_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x29a)][_0x515b22(0x166)],_0x508023[_0x515b22(0x257)][_0x515b22(0x171)](_0x30488c),_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x1cf)](_0x30488c);}),this[_0x2cc18c(0x252)][_0x2cc18c(0x16f)](_0x474b94,{'interactionId':_0x41122b['id'],'replyId':_0x6bb69b['id'],'indexes':_0x550d4c[_0x2cc18c(0x236)]()});}[_0xd34f13(0x1c9)](_0x53128a,_0x10796d){const _0x2f67f2=_0xd34f13,_0x40c0a0=_0x24a6e8(this[_0x2f67f2(0x216)]),_0x16f7d8=this[_0x2f67f2(0x184)](_0x53128a,_0x10796d),_0x57c6f2=this[_0x2f67f2(0x216)][_0x2f67f2(0x243)][_0x2f67f2(0x176)](_0x4c5548);if(!_0x16f7d8)return void _0x57c6f2[_0x2f67f2(0x18d)]();const {range:_0x415a46,currentIndex:_0x1ae69a,previousIndex:_0x5e4fff,nextIndex:_0x2c6467}=_0x16f7d8;if(this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x1ef)]==_0x53128a&&this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x29c)]==_0x1ae69a)return;this[_0x2f67f2(0x1bc)]={'replyId':_0x53128a,'partIndex':_0x1ae69a};const _0x499ae2=new _0x4bf453(_0x40c0a0[_0x2f67f2(0x18a)],{'showDiff':this[_0x2f67f2(0x246)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2f67f2(0x16b)},'hideHeader':!0x0}),{reply:_0x1d1bbb}=this[_0x2f67f2(0x22c)](_0x53128a),_0x4487ab=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x1d1bbb[_0x2f67f2(0x23b)][_0x1ae69a]],'documentContextContent':_0x1d1bbb[_0x2f67f2(0x22f)],'showDiff':this[_0x2f67f2(0x246)]});_0x499ae2[_0x2f67f2(0x270)]({'parts':_0x4487ab,'renderingStrategy':_0x2f67f2(0x28e)});const _0x212116=_0x1ae69a!==_0x5e4fff;this[_0x2f67f2(0x1d2)](_0x415a46,!0x0),_0x57c6f2[_0x2f67f2(0x1ff)]({'index':_0x1ae69a,'title':_0x3c888f(this[_0x2f67f2(0x216)][_0x2f67f2(0x18a)],_0x2f67f2(0x254),(_0x1ae69a+0x1)[_0x2f67f2(0x23a)]()),'icon':_0x1cab71,'mainView':_0x499ae2,'showRotator':_0x212116,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x415a46]}),this[_0x2f67f2(0x1df)][_0x2f67f2(0x155)](_0x53128a,_0x1ae69a),this[_0x2f67f2(0x1a5)](_0x499ae2,_0x2f67f2(0x20d),(_0xddb5aa,{showDiff:_0x217741})=>{const _0xdf34c3=_0x2f67f2;this[_0xdf34c3(0x246)]=_0x217741;const {reply:_0x5ed6bc}=this[_0xdf34c3(0x22c)](_0x53128a),_0x3d1f80=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x5ed6bc[_0xdf34c3(0x23b)][_0x1ae69a]],'documentContextContent':_0x5ed6bc[_0xdf34c3(0x22f)],'showDiff':_0x217741});_0x499ae2[_0xdf34c3(0x270)]({'parts':_0x3d1f80,'renderingStrategy':_0xdf34c3(0x28e)});}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20c),()=>{const _0x277e2b=_0x2f67f2;this[_0x277e2b(0x189)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x277e2b(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x277e2b(0x18d)]();}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x17e),()=>{const _0x4856e8=_0x2f67f2;this[_0x4856e8(0x28d)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x4856e8(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x4856e8(0x18d)]();}),_0x212116&&(this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x196),()=>{const _0x417c69=_0x2f67f2;this[_0x417c69(0x1c9)](_0x53128a,_0x2c6467);}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20f),()=>{const _0x2dba83=_0x2f67f2;this[_0x2dba83(0x1c9)](_0x53128a,_0x5e4fff);})),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x1f3),()=>{const _0x341767=_0x2f67f2;this[_0x341767(0x299)](_0x57c6f2),this[_0x341767(0x299)](_0x499ae2),this[_0x341767(0x1bc)]=null;});}[_0xd34f13(0x184)](_0x1cf80c,_0x2e157e){const _0x513f42=_0xd34f13,_0x54f093=_0x24a6e8(this[_0x513f42(0x216)]),{reply:_0x329e55,interaction:_0xace11c}=this[_0x513f42(0x22c)](_0x1cf80c),_0x114482=_0x329e55[_0x513f42(0x23b)][_0x513f42(0x163)](_0x22cbc2=>_0x513f42(0x203)==_0x22cbc2[_0x513f42(0x1b7)]),_0x141d0f=_0x114482[_0x513f42(0x1b5)](_0x99d181=>_0x329e55[_0x513f42(0x23b)][_0x513f42(0x253)](_0x99d181));void 0x0===_0x2e157e&&(_0x2e157e=_0x141d0f[0x0]);const _0x3bc4b4=_0x141d0f[_0x513f42(0x253)](_0x2e157e);if(-0x1==_0x3bc4b4)return null;const _0x250b4d=0x0==_0x3bc4b4?_0x141d0f[_0x141d0f[_0x513f42(0x26e)]-0x1]:_0x141d0f[_0x3bc4b4-0x1],_0x249539=_0x3bc4b4==_0x141d0f[_0x513f42(0x26e)]-0x1?_0x141d0f[0x0]:_0x141d0f[_0x3bc4b4+0x1],_0x38b0f8=_0x114482[_0x3bc4b4],_0x1857cd=new _0x3c4540([]),_0x19ae2e=new _0x3c4540([]);for(const _0xb59073 of _0x38b0f8[_0x513f42(0x234)])if(_0x513f42(0x1b0)!=_0xb59073[_0x513f42(0x1e4)]&&_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0xb59073[_0x513f42(0x281)][_0x513f42(0x280)](!0x0)),_0x513f42(0x19c)!=_0xb59073[_0x513f42(0x1e4)]){const _0x46c797=_0x3eee92(_0x34ebd4=>_0x3ef17b(_0x34ebd4,_0x513f42(0x271))==_0xb59073['id'],_0x329e55[_0x513f42(0x22f)],!0x0);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x46c797[_0x513f42(0x280)](!0x0));}if(0x0==_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x26e)]){if(_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)]){const _0x9e1811=_0x232a5d(_0x513f42(0x271),_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)],_0x329e55[_0x513f42(0x22f)]);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x9e1811[_0x513f42(0x230)]&&(_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)));}else{const _0x44ce04=_0x329e55[_0x513f42(0x22f)][_0x513f42(0x1f1)][0x0];if(!_0x44ce04)return null;_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0));}}const _0x3e369c=_0xace11c[_0x513f42(0x220)](),_0x5d108e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0x3e369c[_0x513f42(0x247)]),_0xbbc8ee=_0x4adf71(_0x1857cd),_0x55e367=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x57608e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x5274b3=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x188)](_0x55e367,0x0),_0xf01e18=_0x4adf71(_0x19ae2e),_0x1139dc={'anchor':_0x5274b3,'markDeletions':!0x1},_0x1edb67=_0x54f093[_0x513f42(0x243)][_0x513f42(0x176)](_0x15f896)[_0x513f42(0x20a)](_0xbbc8ee,_0xf01e18,_0x1139dc)[_0x513f42(0x16e)]();if(!_0x1edb67[_0x513f42(0x26e)])return null;_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1fb)](_0x55b363=>{const _0x13e203=_0x513f42;for(const _0xa3ffdb of _0x1edb67)if(_0x13e203(0x1b3)==_0xa3ffdb[_0x13e203(0x1e4)]){const _0x6ace33=_0xa3ffdb[_0x13e203(0x1ed)],_0xbec179=_0xa3ffdb[_0x13e203(0x1ce)],_0x2182ec=new _0x252c87(_0x6ace33,_0xbec179);_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0x2182ec),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0x2182ec);}else _0xa3ffdb[_0x13e203(0x23f)]=null,_0xa3ffdb[_0x13e203(0x191)]=!0x1,_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0xa3ffdb),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0xa3ffdb);});const _0x4c4ff9=_0x5bddc0(_0x54f093,_0x1edb67,_0x55e367);_0x3fda17(_0x54f093[_0x513f42(0x1a3)],_0x4c4ff9);const _0x100f89=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x33dff5=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x264965=[];let _0x13ec2c=_0x55e367,_0x170af9=_0x57608e;for(let _0x26ee82=0x0;_0x26ee82<_0x33dff5[_0x513f42(0x26e)];_0x26ee82++){const _0xe83cf7=_0x13ec2c[_0x513f42(0x162)]-_0x33dff5[_0x26ee82];_0x264965[_0x26ee82]=_0x170af9[_0x513f42(0x162)]-_0xe83cf7,_0x13ec2c=_0x13ec2c[_0x513f42(0x175)](_0x33dff5[_0x26ee82]),_0x170af9=_0x170af9[_0x513f42(0x175)](_0x264965[_0x26ee82]);}const _0x17f6e6=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x100f89),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x264965)),_0x54f3a0=_0x57608e[_0x513f42(0x159)](0x0)[_0x513f42(0x24e)](_0x14590e),_0x5a1eb7=Array[_0x513f42(0x1f5)](_0x5d108e[_0x513f42(0x278)]())[_0x513f42(0x27c)](_0x5c8d25=>_0x5c8d25[_0x513f42(0x24e)](_0x14590e)==_0x54f3a0)[_0x513f42(0x222)](),_0x44e259=_0x17f6e6[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x13487b=_0x17f6e6[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)]();_0x44e259[0x0]=_0x5a1eb7[0x0]+_0x44e259[0x0],_0x13487b[0x0]=_0x5a1eb7[0x0]+_0x13487b[0x0];let _0x486d47=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x44e259),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x13487b));const _0x186913=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x237)][_0x513f42(0x16e)](_0x3e369c[_0x513f42(0x166)]);for(const _0x3f1fe9 of _0x186913)_0x486d47=_0x34695c[_0x513f42(0x238)](_0x486d47[_0x513f42(0x1b8)](_0x3f1fe9));return{'range':_0x486d47,'previousIndex':_0x250b4d,'nextIndex':_0x249539,'currentIndex':_0x2e157e};}[_0xd34f13(0x224)](_0x1f540a){const _0x171f26=_0xd34f13;if(!_0x1f540a[_0x171f26(0x243)][_0x171f26(0x151)](_0x171f26(0x249)))return;const _0x8560d5=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x227)),_0x30abee=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x1e6));this[_0x171f26(0x1a5)](_0x8560d5,_0x171f26(0x1dc),(_0x5298b3,_0x1ef2d9,_0x57fce8)=>{const _0x33a029=_0x171f26,_0x43f48e=this[_0x33a029(0x252)][_0x33a029(0x176)](_0x1ef2d9);if(!_0x43f48e)return;const _0x157217=this[_0x33a029(0x26c)][_0x33a029(0x28a)](_0x43f48e[_0x33a029(0x16d)])[_0x33a029(0x164)](_0x43f48e[_0x33a029(0x1ef)]);_0x43f48e[_0x33a029(0x1e7)][_0x33a029(0x1aa)](_0x63d3b8=>_0x157217[_0x33a029(0x1b4)](_0x63d3b8,_0x33a029(0x203))),this[_0x33a029(0x252)][_0x33a029(0x1db)](_0x1ef2d9),this[_0x33a029(0x252)][_0x33a029(0x16f)](_0x57fce8,_0x43f48e);}),this[_0x171f26(0x1a5)](_0x30abee,_0x171f26(0x1dc),(_0x1b8737,_0x421358,_0x1b5ae8)=>{const _0x2cd166=_0x171f26,_0x265784=this[_0x2cd166(0x252)][_0x2cd166(0x176)](_0x421358);if(!_0x265784)return;const _0x9bee13=this[_0x2cd166(0x26c)][_0x2cd166(0x28a)](_0x265784[_0x2cd166(0x16d)])[_0x2cd166(0x164)](_0x265784[_0x2cd166(0x1ef)]);_0x265784[_0x2cd166(0x1e7)][_0x2cd166(0x1aa)](_0x63e3ee=>_0x9bee13[_0x2cd166(0x1b4)](_0x63e3ee,_0x2cd166(0x262))),this[_0x2cd166(0x252)][_0x2cd166(0x1db)](_0x421358),this[_0x2cd166(0x252)][_0x2cd166(0x16f)](_0x1b5ae8,_0x265784);});}async[_0xd34f13(0x1cc)](_0xe4a1e3){const _0x3315d7=_0xd34f13;this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x4c5548)[_0x3315d7(0x18d)](),this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x28e)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x0),await this[_0x3315d7(0x1cd)]();try{const _0xc2c900=this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x5cd7d6);this[_0x3315d7(0x1f7)]('\x20'),_0xc2c900[_0x3315d7(0x1e3)][_0x3315d7(0x15c)](_0x3315d7(0x22e)),await this[_0x3315d7(0x172)](_0xe4a1e3);const {sessionId:_0x2d687b}=this[_0x3315d7(0x15b)][_0x3315d7(0x1c1)]();await this[_0x3315d7(0x26c)][_0x3315d7(0x1c3)](_0xe4a1e3,_0x2d687b),this[_0x3315d7(0x26c)][_0x3315d7(0x199)]()&&this[_0x3315d7(0x26c)][_0x3315d7(0x245)](_0x3c888f(this[_0x3315d7(0x216)][_0x3315d7(0x18a)],_0x3315d7(0x263)));}catch(_0x46a103){console[_0x3315d7(0x275)](_0x3315d7(0x283),_0x46a103);}finally{this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x215)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x1);}}[_0xd34f13(0x20e)](_0x539663){const _0x2ab315=_0xd34f13;this[_0x2ab315(0x26c)]['id']===_0x539663&&this[_0x2ab315(0x172)]();}async[_0xd34f13(0x1eb)](){const _0x49e8cd=_0xd34f13,_0x5925c5=this[_0x49e8cd(0x15b)][_0x49e8cd(0x29b)]();this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x1c7)](_0x5925c5),this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x245)](_0x3c888f(this[_0x49e8cd(0x216)][_0x49e8cd(0x18a)],_0x49e8cd(0x263)));}[_0xd34f13(0x15e)](){const _0x51f54a=_0xd34f13;this[_0x51f54a(0x26c)]?.[_0x51f54a(0x1f6)]();}[_0xd34f13(0x153)](){const _0x3a9400=_0xd34f13;this[_0x3a9400(0x1df)][_0x3a9400(0x153)]();}async[_0xd34f13(0x297)](){const _0x299885=_0xd34f13;await this[_0x299885(0x172)]();}async[_0xd34f13(0x261)]({message:_0x43889e,quickActionData:_0x3b73db}){const _0x220c27=_0xd34f13;await this[_0x220c27(0x24d)]({'userMessage':_0x43889e,'quickActionData':_0x3b73db});}[_0xd34f13(0x26f)](){const _0x4e648b=_0xd34f13,_0xf3a7d8=this[_0x4e648b(0x216)][_0x4e648b(0x168)][_0x4e648b(0x176)](_0x4e648b(0x226));if(!_0xf3a7d8)throw new _0x4b6396(_0x4e648b(0x205),this);return _0xf3a7d8;}async[_0xd34f13(0x172)](_0x55e4be){const _0x415683=_0xd34f13,_0x3f53f7=this[_0x415683(0x216)][_0x415683(0x243)][_0x415683(0x176)](_0x4c5548);let _0x307d64;_0x3f53f7[_0x415683(0x25c)]&&_0x3f53f7[_0x415683(0x18d)](),_0x307d64=_0x55e4be||!this[_0x415683(0x26c)]?this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x25b)):this[_0x415683(0x26c)][_0x415683(0x18e)]['id'],await this[_0x415683(0x1cd)]();const _0x2e056b=this[_0x415683(0x26f)](),_0x19dc73=_0x55e4be||_0x23ccda();this[_0x415683(0x26c)]=new _0x35b316({'connector':this[_0x415683(0x223)],'chatModels':this[_0x415683(0x19f)],'defaultModelId':_0x307d64,'conversationId':_0x19dc73,'group':_0x2e056b,'getEditor':()=>_0x24a6e8(this[_0x415683(0x216)])}),this[_0x415683(0x26c)]['on'](_0x415683(0x251),(_0x59ef55,_0x49ea94)=>{const _0x3326d0=_0x415683;_0x49ea94[_0x3326d0(0x210)]=this[_0x3326d0(0x228)](_0x49ea94[_0x3326d0(0x210)],this[_0x3326d0(0x216)][_0x3326d0(0x168)][_0x3326d0(0x176)](_0x3326d0(0x170))),this[_0x3326d0(0x1df)][_0x3326d0(0x1ae)](_0x49ea94),this[_0x3326d0(0x1df)][_0x3326d0(0x289)](),this[_0x3326d0(0x1df)][_0x3326d0(0x17c)](),this[_0x3326d0(0x1df)][_0x3326d0(0x1ca)](),_0x55e4be||(this[_0x3326d0(0x1df)][_0x3326d0(0x288)](),this[_0x3326d0(0x26c)]?.[_0x3326d0(0x245)](_0x3c888f(this[_0x3326d0(0x216)][_0x3326d0(0x18a)],_0x3326d0(0x263))));}),this[_0x415683(0x26c)]['on'](_0x415683(0x21c),(_0x526168,_0x14c111)=>{const _0x34da3e=_0x415683;this[_0x34da3e(0x1df)][_0x34da3e(0x218)](_0x14c111[_0x34da3e(0x1c6)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x298),(_0x27a954,_0x52544d)=>{const _0x2ac664=_0x415683;this[_0x2ac664(0x1df)][_0x2ac664(0x1f8)](_0x52544d),this[_0x2ac664(0x1df)][_0x2ac664(0x21a)](_0x52544d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x250),(_0x147ef6,_0x2c4fe4)=>{const _0x4b5199=_0x415683;this[_0x4b5199(0x1df)][_0x4b5199(0x24f)](_0x2c4fe4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x256),async()=>{const _0x3afee0=_0x415683;await this[_0x3afee0(0x1df)][_0x3afee0(0x19d)]();}),this[_0x415683(0x26c)]['on'](_0x415683(0x1ee),(_0xd0e201,_0x496e28)=>{const _0x1ea0b5=_0x415683;this[_0x1ea0b5(0x1df)][_0x1ea0b5(0x235)](_0x496e28['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x290),(_0x402224,_0x3fd0f2,_0x5052f4)=>{const _0x529457=_0x415683;this[_0x529457(0x1f7)](_0x3fd0f2,_0x5052f4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1e8),(_0x1c24ea,_0x2663c9)=>{const _0x2f1069=_0x415683;this[_0x2f1069(0x1df)][_0x2f1069(0x1a8)]({'isVisible':!0x0,'id':_0x2663c9[_0x2f1069(0x16d)]}),_0x2f1069(0x1fa)===_0x2663c9[_0x2f1069(0x1e4)]?this[_0x2f1069(0x1df)][_0x2f1069(0x28c)](_0x2663c9):this[_0x2f1069(0x1df)][_0x2f1069(0x1a2)](_0x2663c9);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1f9),async(_0x5f4203,_0x1774ce,_0x2a9393)=>{const _0x16ad78=_0x415683;await this[_0x16ad78(0x197)]({'reply':_0x1774ce,'changeGroups':_0x2a9393});}),this[_0x415683(0x26c)]['on'](_0x415683(0x195),(_0x100a63,{reply:_0x2a7e27,index:_0x420534,state:_0x366b14})=>{const _0xbc4a5a=_0x415683;this[_0xbc4a5a(0x1df)][_0xbc4a5a(0x268)]({'id':_0x2a7e27['id'],'index':_0x420534,'state':_0x366b14});}),this[_0x415683(0x26c)]['on'](_0x415683(0x25a),(_0x26057a,_0x3ee83c)=>{const _0x23b90b=_0x415683;if(this[_0x23b90b(0x1df)][_0x23b90b(0x27f)](_0x3ee83c[_0x23b90b(0x255)],_0x3ee83c[_0x23b90b(0x1d3)]),_0x23b90b(0x1f0)===_0x3ee83c[_0x23b90b(0x255)][_0x23b90b(0x1e4)]){const _0x35ed85=[..._0x24a6e8(this[_0x23b90b(0x216)])[_0x23b90b(0x1a3)][_0x23b90b(0x29a)][_0x23b90b(0x1f0)][_0x23b90b(0x161)]()];this[_0x23b90b(0x15b)][_0x23b90b(0x1da)](_0x35ed85,_0x23b90b(0x24c)+this[_0x23b90b(0x26c)]?.['id']);}}),this[_0x415683(0x26c)]['on'](_0x415683(0x22a),(_0x305110,_0x558f49)=>{const _0x2f8379=_0x415683;this[_0x2f8379(0x1df)][_0x2f8379(0x27a)](_0x558f49[_0x2f8379(0x157)]),_0x2f8379(0x14e)==_0x558f49[_0x2f8379(0x157)]&&this[_0x2f8379(0x15e)](),_0x2f8379(0x1f0)===_0x558f49[_0x2f8379(0x1e4)]&&this[_0x2f8379(0x15b)][_0x2f8379(0x1c0)](_0x2f8379(0x24c)+this[_0x2f8379(0x26c)]?.['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x217),(_0x1d6774,_0x247bce)=>{const _0x4a6700=_0x415683;this[_0x4a6700(0x1df)][_0x4a6700(0x169)](_0x247bce[_0x4a6700(0x255)][_0x4a6700(0x157)],_0x247bce[_0x4a6700(0x1d3)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x182),(_0x323929,_0xff41d5)=>{const _0x1835b8=_0x415683;this[_0x1835b8(0x1df)][_0x1835b8(0x16c)](_0xff41d5[_0x1835b8(0x206)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x259),(_0x2bfb97,_0x2e28f1)=>{const _0x5cec19=_0x415683;this[_0x5cec19(0x1df)][_0x5cec19(0x158)](_0x2e28f1[_0x5cec19(0x22b)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1a9),(_0x3addbf,_0x567020)=>{const _0x58a5c2=_0x415683;this[_0x58a5c2(0x1df)][_0x58a5c2(0x242)](_0x567020[_0x58a5c2(0x1dd)],_0x567020[_0x58a5c2(0x1bb)],_0x567020[_0x58a5c2(0x214)],_0x567020[_0x58a5c2(0x211)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x26a),(_0x54e7ec,_0x16d9c0)=>{const _0x2aed54=_0x415683;this[_0x2aed54(0x1df)][_0x2aed54(0x187)](_0x16d9c0[_0x2aed54(0x1dd)],_0x16d9c0[_0x2aed54(0x24b)],_0x16d9c0[_0x2aed54(0x173)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x208),(_0x5eccdc,_0x9a0a8d)=>{const _0x3b49ca=_0x415683;this[_0x3b49ca(0x1df)][_0x3b49ca(0x27d)](_0x9a0a8d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1fe),(_0x58e67c,_0x2e54bb)=>{const _0x36471e=_0x415683;this[_0x36471e(0x1df)][_0x36471e(0x1ea)](_0x2e54bb[_0x36471e(0x18e)],_0x2e54bb[_0x36471e(0x28f)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x275),(_0x56c56a,{error:_0x1fe2d0,interactionId:_0x3616b2,fileName:_0x440901,url:_0x836ce1,sourceId:_0x386de2,sourceLabel:_0x5de0f5})=>{const _0xc7d8ad=_0x415683,_0x37ed6a=_0x3616b2?_0x3616b2+':'+_0x23ccda():_0x23ccda();_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x276))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x1fd)]({'staticMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1ba)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d0))||_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x296))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x291)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1b1))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x25f),_0x440901),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x186))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x183),_0x836ce1),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x180))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1de)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d4))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x190)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1c8))?(_0x386de2&&this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x17f)](_0x386de2),this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1fc),_0x5de0f5||_0xc7d8ad(0x1bb)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x21b))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x233)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x27b)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0));}),await this[_0x415683(0x26c)][_0x415683(0x204)](this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x292))),_0x55e4be||await this[_0x415683(0x26c)][_0x415683(0x167)]();}async[_0xd34f13(0x24d)]({userMessage:_0x65fa0a,quickActionData:_0x5f2d35}){const _0x39e787=_0xd34f13;if(!this[_0x39e787(0x26c)])throw new _0x4b6396(_0x39e787(0x1a4));this[_0x39e787(0x26c)][_0x39e787(0x15f)]()&&await this[_0x39e787(0x26c)][_0x39e787(0x225)](this[_0x39e787(0x15b)][_0x39e787(0x1c1)]()),this[_0x39e787(0x26c)]['id']&&this[_0x39e787(0x26c)][_0x39e787(0x179)]&&await this[_0x39e787(0x26c)][_0x39e787(0x185)]({'userMessage':_0x65fa0a,'quickActionData':_0x5f2d35}),this[_0x39e787(0x200)]();}[_0xd34f13(0x200)](){const _0x18b7fa=_0xd34f13,_0x1ee965=_0x24a6e8(this[_0x18b7fa(0x216)])[_0x18b7fa(0x1a3)],_0x336988=Array[_0x18b7fa(0x1f5)](_0x1ee965[_0x18b7fa(0x213)][_0x18b7fa(0x295)](_0x5d9f5d));_0x1ee965[_0x18b7fa(0x1fb)](_0x155b17=>{const _0x146396=_0x18b7fa;_0x336988[_0x146396(0x1aa)](_0x1300a0=>_0x155b17[_0x146396(0x207)](_0x1300a0));});}[_0xd34f13(0x1e9)](){const _0x19685f=_0xd34f13;console[_0x19685f(0x21e)](_0x19685f(0x21d));}[_0xd34f13(0x1f4)](_0x4d3cf2){const _0x1942fb=_0xd34f13;this[_0x1942fb(0x1df)][_0x1942fb(0x1e0)](_0x4d3cf2);}[_0xd34f13(0x15a)](_0xd501db){const _0x45e2d3=_0xd34f13;_0x422bdc(_0xd501db[_0x45e2d3(0x1d1)]);}[_0xd34f13(0x1d9)](_0x3d84e4){const _0x54d581=_0xd34f13;this[_0x54d581(0x26c)]?.[_0x54d581(0x1d8)](_0x3d84e4);}[_0xd34f13(0x17a)](){const _0xcbc03c=_0xd34f13;this[_0xcbc03c(0x26c)]?.[_0xcbc03c(0x181)]();}[_0xd34f13(0x14f)](){const _0x243dff=_0xd34f13;this[_0x243dff(0x26c)]?.[_0x243dff(0x279)]();}[_0xd34f13(0x22c)](_0x1af385){const _0x581dd8=_0xd34f13,[_0x5a6ea3,_0x1a6a76]=_0x1af385[_0x581dd8(0x19b)](':'),_0x5accbc=this[_0x581dd8(0x26c)][_0x581dd8(0x28a)](_0x5a6ea3),_0x5645cf=_0x5accbc[_0x581dd8(0x164)](_0x1a6a76);return{'interaction':_0x5accbc,'reply':_0x5645cf};}[_0xd34f13(0x1d2)](_0x59e820,_0x29069a=!0x1){const _0x2b9ce5=_0xd34f13,_0x495d43=_0x24a6e8(this[_0x2b9ce5(0x216)]),_0xdb92ff={'target':_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x1e3)][_0x2b9ce5(0x284)][_0x2b9ce5(0x248)](_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x16a)][_0x2b9ce5(0x27e)](_0x59e820)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x29069a};_0x29069a&&(_0xdb92ff[_0x2b9ce5(0x258)]=!0x0),_0x4020b8(_0xdb92ff);}[_0xd34f13(0x1f7)](_0x472a22,_0x51b1a6=!0x1){const _0x84a89f=_0xd34f13;this[_0x84a89f(0x1df)][_0x84a89f(0x290)](_0x472a22||_0x3c888f(this[_0x84a89f(0x216)][_0x84a89f(0x18a)],_0x84a89f(0x1b2)),_0x51b1a6);}[_0xd34f13(0x228)](_0x522695,_0x177df4){const _0x464830=_0xd34f13;let _0x131549;if(_0x177df4){_0x131549=[];const _0x128f66=_0x464830(0x24a)==typeof _0x177df4?[_0x177df4[_0x464830(0x150)]()]:_0x177df4[_0x464830(0x1b5)](_0x61091c=>_0x61091c[_0x464830(0x150)]());for(const _0x37345c of _0x128f66)for(const _0xaa82e0 of _0x522695)(_0xaa82e0['id'][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x26d)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x1ec)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0['id'][_0x464830(0x150)]()[_0x464830(0x1af)](_0x37345c))&&_0x131549[_0x464830(0x18c)](_0xaa82e0);}else _0x131549=_0x522695;return _0x131549;}async[_0xd34f13(0x197)]({reply:_0x5dc988,changeGroups:_0x34dcbd,renderingStrategy:_0x6b45fa}){const _0x1b7092=_0xd34f13,{id:_0x23d541,isDone:_0xfd66c9,type:_0x26b20d,parsedContent:_0x337eda}=_0x5dc988;if(_0x1b7092(0x266)===_0x26b20d){const _0x3e9592=_0x24a6e8(this[_0x1b7092(0x216)]),_0x56d142=_0x2aabc7({'editor':_0x3e9592,'showDiff':this[_0x1b7092(0x1df)][_0x1b7092(0x221)],'changeGroups':_0x34dcbd,'documentContextContent':_0x5dc988[_0x1b7092(0x22f)]});await this[_0x1b7092(0x1df)][_0x1b7092(0x294)]({'id':_0x23d541,'parts':_0x56d142,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});}else _0x1b7092(0x1fa)===_0x26b20d&&await this[_0x1b7092(0x1df)][_0x1b7092(0x260)]({'id':_0x23d541,'parsedContent':_0x337eda,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});_0xfd66c9&&_0x5dc988[_0x1b7092(0x241)][_0x1b7092(0x26e)]>0x0&&this[_0x1b7092(0x1df)][_0x1b7092(0x202)](_0x23d541,_0x5dc988[_0x1b7092(0x241)]);}async[_0xd34f13(0x1cd)](){const _0xe190de=_0xd34f13,_0x4e04a0=this[_0xe190de(0x26c)]?.[_0xe190de(0x239)];_0x4e04a0&&(_0x4e04a0[_0xe190de(0x192)](),this[_0xe190de(0x1df)][_0xe190de(0x232)](_0x4e04a0));}async[_0xd34f13(0x21f)](){const _0x59691c=_0xd34f13,_0x5115c6=this[_0x59691c(0x26c)]?.[_0x59691c(0x239)];if(_0x5115c6){for await(const _0x553add of _0x5115c6[_0x59691c(0x20b)])await this[_0x59691c(0x197)]({'reply':_0x553add,'changeGroups':_0x553add[_0x59691c(0x23b)],'renderingStrategy':_0x59691c(0x28e)});}}}function _0x23c1(){const _0x3c7068=['ai.chat.context','root','updateFeedItemAIReplySuggestionContent','getMarkersGroup','ai-chat-conversation-start-failed','startConversation','interactionCreated','stopListening','document','getSelectionText','partIndex','current-document','_toggleReasoning','toLocaleLowerCase','has','editors','focusPromptInput','AIChatController','scrollFeedToSuggestion','AITabs','uiId','setAddContextOptions','getChild','_logError','_aiEditing','activateTab','afterInit','removeSelectionFromChatContext','isCurrentDocumentInContext','range','getRanges','maxOffset','filter','getReply','3519132rVSLrP','version','start','config','setContextItemLoading','mapper','full','setConversationContext','interactionId','getOperations','set','ai.chat.models.displayedModels','addOperation','_handleStartConversation','isInContext','abortPromptStream','getChildAtOffset','get','selectModel','requires','isStarted','_toggleWebSearch','resizeTabs','clearPendingContextUI','end','insertSuggestion','closeSourceResourceBalloon','ai-chat-context-invalid-data','toggleWebSearch','contextSent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_getDocumentRangeForReplyChanges','handleUserInteraction','ai-chat-url-upload-failed','updateResourceState','createPositionAt','_applySuggestion','locale','toggleLoadingSkeleton','push','close','selectedModel','isPremiumPlugin','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','isDocumentOperation','stop','parse','addResourceToContext','replyChangeGroupStateUpdated','showNext','_updateReplyContent','commands','isCurrentDocumentInConversation','2023232yZFCIY','split','new','finishInteraction','AIConnector','_aiChatModels','anchorId','main','addFeedItemAISuggestion','model','ai-chat-controller-no-active-conversation','listenTo','loadSourceResources','AIEditing','updateFeedInteractionHeader','sourceResourcesLoaded','forEach','addDocumentToContext','_applyOperationsAsSuggestions','createRange','createConversation','startsWith','removed','ai-chat-file-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','remove','setChangeGroupState','map','getRoot','state','getTransformedByOperation','editing','AI_CHAT_ABORTED_MESSAGE','source','_previewedChangeGroup','resource','mouseOverSuggestion','isOfficialPlugin','hideFakeVisualSelection','getDocumentData','add','load','AIChatUI','addUrlToContext','isUploadInProgress','addSelectionToContext','ai-chat-source-resources-load-failed','_openBalloonFor','clearConversationContextUI','createPositionFromPath','loadConversation','_stopLastInteraction','howMany','applyOperation','ai-chat-conversation-init-failed','message','_scrollToSuggestionRange','isLoading','ai-chat-context-unsupported-type','like','rejected','dislike','removeFromContext','_removeFromContext','showFakeVisualSelection','delete','revert','sourceId','AI_CHAT_CONTEXT_INVALID_DATA','_aiChatUi','setIsMaximized','setModel','resizedTabs','view','type','resize','redo','indexes','replyCreated','_showConversationHistory','setSelectedModel','addSelectionToChatContext','provider','sourcePosition','interactionDestroyed','replyId','selection','children','1143CeTujN','dialogClosed','_setIsMaximized','from','removeSelectionFromContext','updateConversationTitle','addFeedItemUserMessage','replyContentUpdated','text-delta','change','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','addFeedItemStaticMessage','modelSelected','open','_removeAISelectionMarkers','4805jaSQcZ','updateFeedItemAIReplySources','pending','init','ai-chat-missing-channel-id','contextItems','removeMarker','capabilitiesUpdated','TrackChangesEditing','getDiff','replies','applySuggestion','toggleSuggestionDisplayMode','handleRemovedConversation','showPrevious','availableModels','uid','Liked\x20response','markers','resources','streaming','context','contextItemLoadingEnded','setIsUploadInProgress','setFeedItemRenderingStrategy','addFeedInteractionHeader','ai-chat-resource-load-failed','uploadProgressChanged','Showing\x20conversation\x20history...','log','_flushLastInteractionUI','getDocumentContext','showDiff','getPath','_aiConnector','_integrateEditor','updateCurrentDocumentInContext','collaboration.channelId','undo','_filterModels','addFeedItemError','contextItemRemoved','options','getInteractionAndReplyById','Disliked\x20response','chat','documentContextContent','nextSibling','34756BWFeec','stopInteraction','AI_CHAT_RESOURCE_LOAD_FAILED','changes','removeFeedInteraction','slice','history','_createFromRanges','lastInteraction','toString','changeGroups','28984gifaJB','rootName','ai-chat-controller-mouse-over','baseVersion','$graveyard','sources','populateSourceResourceBalloon','plugins','unshift','addCurrentDocumentToContext','_balloonShowDiff','content','viewRangeToDom','Undo','string','resourceId','ai-conversation-','_handleUIUserMessage','getAttribute','startInteraction','interactionStarted','conversationInitialized','_batchToChanges','indexOf','AI_BALLOON_HEADER_TITLE','contextItem','interactionFinished','batch','alignToTop','addContextOptionsChanged','contextItemAdded','ai.chat.models.defaultModelId','isOpen','5843201sBxMWt','addFileToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplyContent','sendMessage','accepted','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','sendUserMessage','599589KezsJV','modification-delta','3774nrNArb','updateFeedItemAIReplySuggestionPartState','showChangeInText','resourceStateChanged','mouseLeaveSuggestion','activeConversation','name','length','getGroupId','updateContent','data-id','query','pluginName','data','error','ai-request-aborted','getFirstRange','getChildren','toggleReasoning','removeContextItem','AI_CHAT_GENERIC_ERROR','find','updateCapabilities','toViewRange','addContextItem','cloneNode','node','DocumentCompare','Failed\x20to\x20load\x20conversation','domConverter','path','addFilesToContext','rejectSuggestion','resetConversationTitle','resetMessageInput','getInteraction','ready','addFeedItemAIReply','_insertSuggestion','static','isDisabled','setConversationTitle','AI_CHAT_UNABLE_TO_START_CONVERSATION'];_0x23c1=function(){return _0x3c7068;};return _0x23c1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46a9fd=_0x15d6;(function(_0x3d6240,_0x7a6480){const _0x1849ed=_0x15d6,_0x2771e0=_0x3d6240();while(!![]){try{const _0x15d3b9=-parseInt(_0x1849ed(0x22d))/0x1*(-parseInt(_0x1849ed(0x1c9))/0x2)+-parseInt(_0x1849ed(0x1ec))/0x3*(-parseInt(_0x1849ed(0x1f3))/0x4)+-parseInt(_0x1849ed(0x1db))/0x5+parseInt(_0x1849ed(0x1df))/0x6*(-parseInt(_0x1849ed(0x1bb))/0x7)+parseInt(_0x1849ed(0x1a4))/0x8*(-parseInt(_0x1849ed(0x1d8))/0x9)+-parseInt(_0x1849ed(0x20e))/0xa+parseInt(_0x1849ed(0x222))/0xb*(parseInt(_0x1849ed(0x1fb))/0xc);if(_0x15d3b9===_0x7a6480)break;else _0x2771e0['push'](_0x2771e0['shift']());}catch(_0x4912c7){_0x2771e0['push'](_0x2771e0['shift']());}}}(_0xf0be,0xa96af));function _0x15d6(_0x492358,_0x2e171f){const _0xf0bea6=_0xf0be();return _0x15d6=function(_0x15d686,_0x4cbb0c){_0x15d686=_0x15d686-0x1a0;let _0x3758ee=_0xf0bea6[_0x15d686];return _0x3758ee;},_0x15d6(_0x492358,_0x2e171f);}function _0xf0be(){const _0x5b586d=['22YuRIYD','addFeedItemStaticMessage','then','conversation-start','updateWebSources','ai-reply','chatFeed','scrollFeedToSuggestion','stopInteraction','addItem','find','11gtKNTK','pluginName','destroy','filter','setModel','plugins','availableModels','resetConversationTitle','clearConversationContextUI','isWebSearchEnabled','setWebSearch','setContextItemLoading','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','areActionsDisabled','chat','</p>','12016OUaouQ','clear','addContextItem','AITabs','error-message','quickActionData','interactionId','view','setConversationContext','context','isPending','setFeedItemRenderingStrategy','startInteraction','setIsUploadInProgress','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','markItemAsDone','set','resetMessageInput','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','showResizeButton','setIsMaximized','9171113DotEXP','feedItemRenderingStrategy','requires','updateCapabilities','streaming','length','addFeedInteractionHeader','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setLoadingMessage','clearPendingContextUI','_titleAnimationInterval','_promiseQueue','setModelList','37094YZJoLb','populateSourceResourceBalloon','chatHeader','options','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','enqueue','disableModelSelector','removeContextItem','isReasoningEnabled','createConversation','closeSourceResourceBalloon','values','startAutoScroll','AI_CHAT_WELCOME_MESSAGE','2763MhpTQi','setSelectedModel','label','4089000vbCdUg','removeItem','isOfficialPlugin','_getLoadingMessage','6fpWPGS','delegate','get','updateFeedItemAIReplySources','setReasoning','_view','renderingStrategy','isMaximized','stopAutoScroll','capabilities','displayedPrompt','updateFeedItemAIReplyContent','abort','81ujRzmK','updateSuggestionPartState','interaction-header','ai-suggestion-reply','getItemIds','updateFeedItemAIReplySuggestionContent','AIChatUI','34588CjIVLV','startsWith','locale','addFeedItemAIReply','isDone','updateFeedInteractionHeader','scrollToSuggestion','user-message','18226236iNQJzD','isBusy','removeFeedInteraction','userMessage','showDiff','config','setAddContextOptions','updateReplyItem','focusPromptInput','addTab','isVisible','_interactionPromiseResolver','isPremiumPlugin','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','queueEmptyPromise','isLoading','contextItems','addFeedItemError','1921840wVmIkO','ai.chat.models.modelSelectorAlwaysVisible','toggleSuggestionDisplayMode','<p>','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','children','forEach','chatControls','_getInputPlaceholder','updateFeedItemAIReplySuggestionPartState','setConversationTitle','AI_CHAT_HEADING','updateResourceState','enableModelSelector','addFeedItemUserMessage','bind','toggleLoadingSkeleton','setInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','addFeedItemAISuggestion'];_0xf0be=function(){return _0x5b586d;};return _0xf0be();}import{ContextPlugin as _0x42b8c6}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3e22b1}from'ckeditor5/src/utils.js';import{AIChatView as _0x450cb7}from'./ui/aichatview.js';import{AITabs as _0x613713}from'../aitabs/aitabs.js';import{getTranslation as _0x4a67c1}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x26d59d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2a1590}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x120cd5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xaa22b2}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x42b8c6{static get[_0x46a9fd(0x1bd)](){return[_0x613713];}[_0x46a9fd(0x1e4)];static get[_0x46a9fd(0x22e)](){const _0x426586=_0x46a9fd;return _0x426586(0x1f2);}static get[_0x46a9fd(0x1dd)](){return!0x0;}static get[_0x46a9fd(0x207)](){return!0x0;}[_0x46a9fd(0x1bc)]=_0x46a9fd(0x1bf);[_0x46a9fd(0x1ff)]=!0x0;[_0x46a9fd(0x1c7)];[_0x46a9fd(0x206)];[_0x46a9fd(0x1c6)]=void 0x0;constructor(_0xe54253){const _0x43baaf=_0x46a9fd;super(_0xe54253);const _0x12a893=this[_0x43baaf(0x1ad)][_0x43baaf(0x232)][_0x43baaf(0x1e1)](_0x43baaf(0x1a7));this[_0x43baaf(0x1b5)](_0x43baaf(0x1fc),!0x1),this[_0x43baaf(0x1c7)]=new _0x120cd5(),this[_0x43baaf(0x1e4)]=new _0x450cb7(this[_0x43baaf(0x1ad)][_0x43baaf(0x1f5)],_0x12a893[_0x43baaf(0x1b9)]),this[_0x43baaf(0x1e4)][_0x43baaf(0x1e0)](..._0xaa22b2)['to'](this),this[_0x43baaf(0x1e4)]['on'](_0x43baaf(0x210),(_0x36b118,{showDiff:_0x3fd8ea})=>{const _0x4b3a58=_0x43baaf;this[_0x4b3a58(0x1ff)]=_0x3fd8ea;}),_0x12a893[_0x43baaf(0x1ab)][_0x43baaf(0x204)]({'id':_0x43baaf(0x1a2),'buttonLabel':_0x4a67c1(this[_0x43baaf(0x1ad)][_0x43baaf(0x1f5)],_0x43baaf(0x219)),'buttonIcon':_0x26d59d,'order':0x0,'content':this[_0x43baaf(0x1e4)]}),this[_0x43baaf(0x1e4)][_0x43baaf(0x215)][_0x43baaf(0x21d)](_0x43baaf(0x20b))['to'](this,_0x43baaf(0x1fc),_0x165088=>_0x165088),this[_0x43baaf(0x1e4)][_0x43baaf(0x228)][_0x43baaf(0x21d)](_0x43baaf(0x1ae))['to'](this,_0x43baaf(0x1fc),_0x38cc5=>_0x38cc5),this[_0x43baaf(0x1e4)][_0x43baaf(0x215)][_0x43baaf(0x21f)](this[_0x43baaf(0x216)]());}[_0x46a9fd(0x22f)](){const _0x16b290=_0x46a9fd;super[_0x16b290(0x22f)](),this[_0x16b290(0x1c6)]&&clearInterval(this[_0x16b290(0x1c6)]);}[_0x46a9fd(0x1d3)](_0x2ed6ee){const _0x58afc2=_0x46a9fd;this[_0x58afc2(0x1e4)][_0x58afc2(0x228)][_0x58afc2(0x1a5)](),this[_0x58afc2(0x1e4)][_0x58afc2(0x215)][_0x58afc2(0x21b)](),this[_0x58afc2(0x1e4)][_0x58afc2(0x215)][_0x58afc2(0x1c8)](_0x2ed6ee[_0x58afc2(0x233)],!this[_0x58afc2(0x1ad)][_0x58afc2(0x200)][_0x58afc2(0x1e1)](_0x58afc2(0x20f))),this[_0x58afc2(0x223)]({'id':_0x58afc2(0x225),'staticMessage':_0x4a67c1(this[_0x58afc2(0x1ad)][_0x58afc2(0x1f5)],_0x58afc2(0x1d7))});}[_0x46a9fd(0x223)]({id:_0x1e0761,staticMessage:_0x1f7f08}){const _0x4982a9=_0x46a9fd;this[_0x4982a9(0x1e4)][_0x4982a9(0x228)][_0x4982a9(0x22b)](_0x4982a9(0x227),{'id':_0x1e0761,'initialContent':_0x4982a9(0x211)+_0x1f7f08+_0x4982a9(0x1a3)});}[_0x46a9fd(0x21c)](_0x5f0116){const _0x479ac=_0x46a9fd,_0x5b6fee=_0x5f0116[_0x479ac(0x1a9)]?.[_0x479ac(0x1e9)]||_0x5f0116[_0x479ac(0x1fe)];this[_0x479ac(0x1e4)][_0x479ac(0x228)][_0x479ac(0x22b)](_0x479ac(0x1fa),{'contextItems':Array[_0x479ac(0x208)](_0x5f0116[_0x479ac(0x20c)][_0x479ac(0x1d5)]()),'initialContent':_0x479ac(0x211)+_0x5b6fee+_0x479ac(0x1a3),'id':_0x5f0116['id']});}[_0x46a9fd(0x20d)]({errorMessage:_0x3707d6,id:_0x27edac}){const _0x2ed1c4=_0x46a9fd;this[_0x2ed1c4(0x1e4)][_0x2ed1c4(0x228)][_0x2ed1c4(0x22b)](_0x2ed1c4(0x1a8),{'initialContent':_0x2ed1c4(0x211)+_0x3707d6+_0x2ed1c4(0x1a3),'id':_0x27edac});}[_0x46a9fd(0x1f6)](_0x1391c0){const _0x5033a5=_0x46a9fd;return this[_0x5033a5(0x1c7)][_0x5033a5(0x1cf)](async()=>{const _0x1fa668=_0x5033a5;this[_0x1fa668(0x1e4)][_0x1fa668(0x228)][_0x1fa668(0x22b)](_0x1fa668(0x227),{'id':_0x1391c0[_0x1fa668(0x1aa)]+':'+_0x1391c0['id']}),this[_0x1fa668(0x1e4)][_0x1fa668(0x228)][_0x1fa668(0x1c4)]('');});}async[_0x46a9fd(0x221)](_0x1a6fb0){const _0x363d6b=_0x46a9fd;return this[_0x363d6b(0x1c7)][_0x363d6b(0x1cf)](async()=>{const _0x1fc9d7=_0x363d6b;this[_0x1fc9d7(0x1e4)][_0x1fc9d7(0x228)][_0x1fc9d7(0x22b)](_0x1fc9d7(0x1ef),{'id':_0x1a6fb0[_0x1fc9d7(0x1aa)]+':'+_0x1a6fb0['id'],'areActionsDisabled':_0x1a6fb0[_0x1fc9d7(0x1a1)],'showDiff':this[_0x1fc9d7(0x1ff)]}),this[_0x1fc9d7(0x1e4)][_0x1fc9d7(0x228)][_0x1fc9d7(0x1c4)]('');});}[_0x46a9fd(0x1c1)](_0x767c31){const _0x503eb3=_0x46a9fd;this[_0x503eb3(0x1e4)][_0x503eb3(0x228)][_0x503eb3(0x22b)](_0x503eb3(0x1ee),{'id':_0x767c31['id'],'capabilities':_0x767c31[_0x503eb3(0x1e8)]});}[_0x46a9fd(0x1f8)](_0x2e84b7){const _0x529847=_0x46a9fd,_0x46a2f6=this[_0x529847(0x1e4)][_0x529847(0x228)][_0x529847(0x213)][_0x529847(0x22c)](_0xe0debe=>_0xe0debe[_0x529847(0x1cc)]['id']==_0x2e84b7['id']&&_0xe0debe instanceof _0x2a1590);_0x46a2f6&&_0x46a2f6[_0x529847(0x1b5)](_0x529847(0x205),_0x2e84b7[_0x529847(0x205)]);}async[_0x46a9fd(0x1ea)](_0x2a781b){const _0x107553=_0x46a9fd,_0xc687c4=_0x2a781b[_0x107553(0x1e5)]||this[_0x107553(0x1bc)];return this[_0x107553(0x1c7)][_0x107553(0x1cf)](async _0x24afb5=>{const _0x16dbae=_0x107553;await this[_0x16dbae(0x1e4)][_0x16dbae(0x228)][_0x16dbae(0x202)]({..._0x2a781b,'abortSignal':_0x24afb5,'renderingStrategy':_0xc687c4}),_0x2a781b[_0x16dbae(0x1f7)]&&this[_0x16dbae(0x1cd)](_0x2a781b['id']);});}[_0x46a9fd(0x1e2)](_0x5dd1c6,_0x4f4cd3){const _0x251906=_0x46a9fd;this[_0x251906(0x1e4)][_0x251906(0x228)][_0x251906(0x226)](_0x5dd1c6,_0x4f4cd3);}async[_0x46a9fd(0x1f1)](_0x179825){const _0x531b78=_0x46a9fd,_0x1e3b12=_0x179825[_0x531b78(0x1e5)]||this[_0x531b78(0x1bc)];return this[_0x531b78(0x1c7)][_0x531b78(0x1cf)](async _0x3cb2b4=>{const _0x37b461=_0x531b78;await this[_0x37b461(0x1e4)][_0x37b461(0x228)][_0x37b461(0x1b7)]({..._0x179825,'abortSignal':_0x3cb2b4,'renderingStrategy':_0x1e3b12}),_0x179825[_0x37b461(0x1f7)]&&this[_0x37b461(0x1cd)](_0x179825['id']);});}[_0x46a9fd(0x217)](_0x35b363){const _0x5c2305=_0x46a9fd;this[_0x5c2305(0x1e4)][_0x5c2305(0x228)][_0x5c2305(0x1ed)](_0x35b363);}[_0x46a9fd(0x1cd)](_0x1eba53){const _0x2a27bc=_0x46a9fd;this[_0x2a27bc(0x1e4)][_0x2a27bc(0x228)][_0x2a27bc(0x1b4)](_0x1eba53);}[_0x46a9fd(0x1fd)](_0x99fd5a){const _0x5bbf4c=_0x46a9fd;this[_0x5bbf4c(0x1e4)][_0x5bbf4c(0x228)][_0x5bbf4c(0x1f0)]()[_0x5bbf4c(0x230)](_0x232bbc=>_0x232bbc[_0x5bbf4c(0x1f4)](_0x99fd5a))[_0x5bbf4c(0x214)](_0x3f05b2=>this[_0x5bbf4c(0x1e4)][_0x5bbf4c(0x228)][_0x5bbf4c(0x1dc)](_0x3f05b2));}[_0x46a9fd(0x1b0)](_0x56b3f7){const _0xe1b5be=_0x46a9fd;this[_0xe1b5be(0x1e4)][_0xe1b5be(0x228)][_0xe1b5be(0x1c4)](this[_0xe1b5be(0x1de)](_0x56b3f7)),this[_0xe1b5be(0x1e4)][_0xe1b5be(0x215)][_0xe1b5be(0x1d0)](!this[_0xe1b5be(0x1ad)][_0xe1b5be(0x200)][_0xe1b5be(0x1e1)](_0xe1b5be(0x20f))),this[_0xe1b5be(0x1fc)]=!0x0,this[_0xe1b5be(0x1e4)][_0xe1b5be(0x228)][_0xe1b5be(0x1d6)]();}[_0x46a9fd(0x22a)](_0x4c70aa){const _0x2256e5=_0x46a9fd;this[_0x2256e5(0x1c7)][_0x2256e5(0x1eb)](),this[_0x2256e5(0x1e4)][_0x2256e5(0x228)][_0x2256e5(0x1f0)]()[_0x2256e5(0x230)](_0x409921=>_0x409921[_0x2256e5(0x1f4)](_0x4c70aa['id']))[_0x2256e5(0x214)](_0x3e1344=>this[_0x2256e5(0x1cd)](_0x3e1344)),this[_0x2256e5(0x1fc)]=!0x1,this[_0x2256e5(0x1e4)][_0x2256e5(0x228)][_0x2256e5(0x1e7)]();}async[_0x46a9fd(0x1c2)](){const _0x4747e1=_0x46a9fd;return this[_0x4747e1(0x1c7)][_0x4747e1(0x20a)][_0x4747e1(0x224)](()=>{const _0xa37268=_0x4747e1;this[_0xa37268(0x1fc)]=!0x1,this[_0xa37268(0x1e4)][_0xa37268(0x228)][_0xa37268(0x1e7)]();});}[_0x46a9fd(0x1a6)](_0x155634,_0x5867d){const _0x5ec973=_0x46a9fd;this[_0x5ec973(0x1e4)][_0x5ec973(0x215)][_0x5ec973(0x1a6)](_0x155634,_0x5867d);}[_0x46a9fd(0x1d1)](_0x501df5){const _0x9afb44=_0x46a9fd;this[_0x9afb44(0x1e4)][_0x9afb44(0x215)][_0x9afb44(0x1d1)](_0x501df5);}[_0x46a9fd(0x238)](_0x548252,_0x4c786a){const _0x49fe58=_0x46a9fd;this[_0x49fe58(0x1e4)][_0x49fe58(0x215)][_0x49fe58(0x238)](_0x548252,_0x4c786a);}[_0x46a9fd(0x1b1)](_0x487bdc){const _0x3682d2=_0x46a9fd;this[_0x3682d2(0x1e4)][_0x3682d2(0x215)][_0x3682d2(0x1b1)](_0x487bdc);}[_0x46a9fd(0x1ac)](_0x403869){const _0x5c9248=_0x46a9fd;this[_0x5c9248(0x1e4)][_0x5c9248(0x215)][_0x5c9248(0x1ac)](_0x403869);}[_0x46a9fd(0x1c5)](){const _0x94dc9=_0x46a9fd;this[_0x94dc9(0x1e4)][_0x94dc9(0x215)][_0x94dc9(0x1c5)]();}[_0x46a9fd(0x235)](){const _0x369aab=_0x46a9fd;this[_0x369aab(0x1e4)][_0x369aab(0x215)][_0x369aab(0x235)]();}[_0x46a9fd(0x21a)](_0x4cb2f8,_0x17806e,_0x4ddcf7){const _0x347d0a=_0x46a9fd;this[_0x347d0a(0x1e4)][_0x347d0a(0x215)][_0x347d0a(0x21a)](_0x4cb2f8,_0x17806e,_0x4ddcf7);}[_0x46a9fd(0x1b6)](){const _0x3897a1=_0x46a9fd;this[_0x3897a1(0x1e4)][_0x3897a1(0x215)][_0x3897a1(0x1b6)](),this[_0x3897a1(0x1e4)][_0x3897a1(0x215)][_0x3897a1(0x21f)](this[_0x3897a1(0x216)]());}[_0x46a9fd(0x201)](_0xaa3ef8){const _0x5c2973=_0x46a9fd;this[_0x5c2973(0x1e4)][_0x5c2973(0x215)][_0x5c2973(0x201)](_0xaa3ef8);}[_0x46a9fd(0x1be)](_0x5f1c61){const _0x4481a5=_0x46a9fd;this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x237)](_0x5f1c61[_0x4481a5(0x236)]),this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x1e3)](_0x5f1c61[_0x4481a5(0x1d2)]),this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x21f)](this[_0x4481a5(0x216)](_0x5f1c61));}[_0x46a9fd(0x1d9)](_0x2cab87,_0x45cadf){const _0xae28e2=_0x46a9fd;this[_0xae28e2(0x1e4)][_0xae28e2(0x215)][_0xae28e2(0x231)](_0x2cab87),_0x45cadf&&this[_0xae28e2(0x1e4)][_0xae28e2(0x215)][_0xae28e2(0x1d0)](!0x1);}[_0x46a9fd(0x1af)](_0x5d5570){const _0x355b39=_0x46a9fd;this[_0x355b39(0x1bc)]=_0x5d5570;}[_0x46a9fd(0x21e)](_0x269e7c){const _0x48caf0=_0x46a9fd;this[_0x48caf0(0x1e4)][_0x48caf0(0x228)][_0x48caf0(0x21e)](_0x269e7c);}[_0x46a9fd(0x234)](){const _0x4f0d9a=_0x46a9fd;this[_0x4f0d9a(0x218)](_0x4a67c1(this[_0x4f0d9a(0x1ad)][_0x4f0d9a(0x1f5)],_0x4f0d9a(0x219)));}[_0x46a9fd(0x218)](_0x53e4ff,_0x23008e=!0x1){const _0x14152e=_0x46a9fd;if(_0x23008e&&!_0x3e22b1()&&_0x53e4ff[_0x14152e(0x1c0)])return this[_0x14152e(0x1e4)][_0x14152e(0x1cb)][_0x14152e(0x1da)]='',void this[_0x14152e(0x1b3)](_0x53e4ff);this[_0x14152e(0x1e4)][_0x14152e(0x1cb)][_0x14152e(0x1da)]=_0x53e4ff;}[_0x46a9fd(0x1b3)](_0x39e646){const _0x5ed375=_0x46a9fd;let _0x242cd1=0x0;clearInterval(this[_0x5ed375(0x1c6)]),this[_0x5ed375(0x1c6)]=setInterval(()=>{const _0x1dd4da=_0x5ed375;this[_0x1dd4da(0x1e4)][_0x1dd4da(0x1cb)][_0x1dd4da(0x1da)]=this[_0x1dd4da(0x1e4)][_0x1dd4da(0x1cb)][_0x1dd4da(0x1da)]+_0x39e646[_0x242cd1],_0x242cd1++,_0x242cd1===_0x39e646[_0x1dd4da(0x1c0)]&&clearInterval(this[_0x1dd4da(0x1c6)]);},0x1e);}[_0x46a9fd(0x1ba)](_0x2cb070){const _0x1b3959=_0x46a9fd;this[_0x1b3959(0x1e4)][_0x1b3959(0x1cb)][_0x1b3959(0x1e6)]=_0x2cb070;}[_0x46a9fd(0x1de)](_0x440a90){const _0x275ae4=_0x46a9fd,_0x1bd825=_0x440a90[_0x275ae4(0x1e8)];return _0x1bd825[_0x275ae4(0x236)]&&_0x1bd825[_0x275ae4(0x1d2)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x212)):_0x1bd825[_0x275ae4(0x236)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x220)):_0x1bd825[_0x275ae4(0x1d2)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x1c3)):_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x1a0));}[_0x46a9fd(0x216)](_0x2b6346){const _0x8e538e=_0x46a9fd;return _0x2b6346?_0x2b6346[_0x8e538e(0x236)]&&_0x2b6346[_0x8e538e(0x1d2)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1b8)):_0x2b6346[_0x8e538e(0x236)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1ce)):_0x2b6346[_0x8e538e(0x1d2)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1b2)):_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x209)):_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x209));}[_0x46a9fd(0x1ca)](_0x5c25ec,_0x2cd86e,_0x246437,_0x501b2a){const _0x42c536=_0x46a9fd;this[_0x42c536(0x1e4)][_0x42c536(0x1ca)](_0x5c25ec,_0x2cd86e,_0x246437,_0x501b2a);}[_0x46a9fd(0x1d4)](_0x1252fa){const _0x3c6d9b=_0x46a9fd;this[_0x3c6d9b(0x1e4)][_0x3c6d9b(0x1d4)](_0x1252fa);}[_0x46a9fd(0x203)](){const _0x31bf93=_0x46a9fd;this[_0x31bf93(0x1e4)][_0x31bf93(0x215)][_0x31bf93(0x203)]();}[_0x46a9fd(0x229)](_0x2d4ca0,_0xf9c9ef){const _0x864b6c=_0x46a9fd;this[_0x864b6c(0x1e4)][_0x864b6c(0x228)][_0x864b6c(0x1f9)](_0x2d4ca0,_0xf9c9ef);}}
23
+ const _0x3b5382=_0x59d2;(function(_0x57c006,_0xfd9ce6){const _0x559a90=_0x59d2,_0x49006e=_0x57c006();while(!![]){try{const _0x429795=parseInt(_0x559a90(0x173))/0x1*(-parseInt(_0x559a90(0x101))/0x2)+parseInt(_0x559a90(0x10a))/0x3+parseInt(_0x559a90(0xe6))/0x4*(-parseInt(_0x559a90(0x121))/0x5)+parseInt(_0x559a90(0xde))/0x6*(parseInt(_0x559a90(0xea))/0x7)+-parseInt(_0x559a90(0x14b))/0x8*(parseInt(_0x559a90(0x138))/0x9)+parseInt(_0x559a90(0x159))/0xa*(-parseInt(_0x559a90(0x13b))/0xb)+parseInt(_0x559a90(0xe8))/0xc;if(_0x429795===_0xfd9ce6)break;else _0x49006e['push'](_0x49006e['shift']());}catch(_0x126a59){_0x49006e['push'](_0x49006e['shift']());}}}(_0x5b22,0x54330));import{ContextPlugin as _0x4ec831}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2b4318}from'ckeditor5/src/utils.js';import{AIChatView as _0x5a28c8}from'./ui/aichatview.js';import{AITabs as _0x262287}from'../aitabs/aitabs.js';import{getTranslation as _0x4404f3}from'../aicore/utils/common-translations.js';function _0x5b22(){const _0x4632e9=['addItem','addContextItem','markFeedItemAsDone','options','removeContextItem','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','queueEmptyPromise','clearConversationContextUI','_titleAnimationInterval','capabilities','bind','plugins','finishInteraction','contextItems','resetConversationTitle','startsWith','interactionId','setIsUploadInProgress','setReasoning','</p>','toggleLoadingSkeleton','focusPromptInput','pluginName','145957Qmxwco','updateFeedItemAIReplySuggestionContent','_promiseQueue','displayedPrompt','82122DYiuax','interaction-header','updateSuggestionPartState','updateFeedItemAIReplyContent','addFeedInteractionHeader','startInteraction','resetMessageInput','isPremiumPlugin','652rwPVKi','then','11852856iNJLWI','scrollFeedToSuggestion','91BXcWpy','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','delegate','AIChatUI','isBusy','setInputPlaceholder','setContextItemLoading','user-message','enqueue','feedItemRenderingStrategy','context','ai.chat.models.modelSelectorAlwaysVisible','abort','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isVisible','view','_getInputPlaceholder','updateWebSources','forEach','availableModels','addFeedItemAIReply','_animateConversationTitle','2aHvDmG','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addTab','AITabs','_getLoadingMessage','conversation-start','updateSuggestionItem','find','stopInteraction','464736qkVbAc','_view','removeItem','disableModelSelector','getItemIds','isPending','closeSourceResourceBalloon','AI_CHAT_HEADING','clear','ai-reply','stopAutoScroll','chat','from','isLoading','areActionsDisabled','updateFeedItemAIReplySuggestionPartState','updateFeedItemAIReplySources','chatControls','isWebSearchEnabled','streaming','filter','values','createConversation','9845qToDxS','populateSourceResourceBalloon','label','setConversationTitle','clearPendingContextUI','chatHeader','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setAddContextOptions','get','chatFeed','addFeedItemError','setModel','toggleSuggestionDisplayMode','isOfficialPlugin','_interactionPromiseResolver','quickActionData','setModelList','destroy','requires','updateCapabilities','addFeedItemAISuggestion','setWebSearch','showResizeButton','471177bRvHvt','config','setSelectedModel','644853bHIZfu','startAutoScroll','setLoadingMessage','addFeedItemStaticMessage','updateFeedInteractionHeader','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','userMessage','isDone','set','setIsMaximized','length','setConversationContext','locale','updateResourceState','showDiff','AI_CHAT_WELCOME_MESSAGE','24pSLUfk','scrollToSuggestion','error-message','renderingStrategy','ai-suggestion-reply','children','enableModelSelector','removeFeedInteraction','isReasoningEnabled','addFeedItemUserMessage','<p>','isMaximized','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markItemAsDone','60pzLrZQ','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'];_0x5b22=function(){return _0x4632e9;};return _0x5b22();}function _0x59d2(_0x4ba91d,_0x3e6679){const _0x5b227a=_0x5b22();return _0x59d2=function(_0x59d20c,_0x6ec585){_0x59d20c=_0x59d20c-0xdb;let _0x1ce62=_0x5b227a[_0x59d20c];return _0x1ce62;},_0x59d2(_0x4ba91d,_0x3e6679);}import{IconAIChat as _0x4e1a1e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x10621f}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1d6154}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16ae80}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x4ec831{static get[_0x3b5382(0x133)](){return[_0x262287];}[_0x3b5382(0x10b)];static get[_0x3b5382(0x172)](){const _0x34ae2d=_0x3b5382;return _0x34ae2d(0xee);}static get[_0x3b5382(0x12e)](){return!0x0;}static get[_0x3b5382(0xe5)](){return!0x0;}[_0x3b5382(0xf4)]=_0x3b5382(0x11d);[_0x3b5382(0x149)]=!0x0;[_0x3b5382(0xdc)];[_0x3b5382(0x12f)];[_0x3b5382(0x164)]=void 0x0;constructor(_0x581d38){const _0x1d760e=_0x3b5382;super(_0x581d38);const _0x3b9f15=this[_0x1d760e(0xf5)][_0x1d760e(0x167)][_0x1d760e(0x129)](_0x1d760e(0x104));this[_0x1d760e(0x143)](_0x1d760e(0xef),!0x1),this[_0x1d760e(0xdc)]=new _0x1d6154(),this[_0x1d760e(0x10b)]=new _0x5a28c8(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x3b9f15[_0x1d760e(0x137)]),this[_0x1d760e(0x10b)][_0x1d760e(0xed)](..._0x16ae80)['to'](this),this[_0x1d760e(0x10b)]['on'](_0x1d760e(0x12d),(_0x55f128,{showDiff:_0x5d55c2})=>{const _0x18145e=_0x1d760e;this[_0x18145e(0x149)]=_0x5d55c2;}),_0x3b9f15[_0x1d760e(0xfa)][_0x1d760e(0x103)]({'id':_0x1d760e(0x115),'buttonLabel':_0x4404f3(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x1d760e(0x111)),'buttonIcon':_0x4e1a1e,'order':0x0,'content':this[_0x1d760e(0x10b)]}),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0x166)](_0x1d760e(0x117))['to'](this,_0x1d760e(0xef),_0x2f171e=>_0x2f171e),this[_0x1d760e(0x10b)][_0x1d760e(0x12a)][_0x1d760e(0x166)](_0x1d760e(0x10f))['to'](this,_0x1d760e(0xef),_0x4994c8=>_0x4994c8),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0xf0)](this[_0x1d760e(0xfb)]());}[_0x3b5382(0x132)](){const _0x8b2c9a=_0x3b5382;super[_0x8b2c9a(0x132)](),this[_0x8b2c9a(0x164)]&&clearInterval(this[_0x8b2c9a(0x164)]);}[_0x3b5382(0x120)](_0x4052d0){const _0x30880a=_0x3b5382;this[_0x30880a(0x10b)][_0x30880a(0x12a)][_0x30880a(0x112)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x151)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x131)](_0x4052d0[_0x30880a(0xfe)],!this[_0x30880a(0xf5)][_0x30880a(0x139)][_0x30880a(0x129)](_0x30880a(0xf6))),this[_0x30880a(0x13e)]({'id':_0x30880a(0x106),'staticMessage':_0x4404f3(this[_0x30880a(0xf5)][_0x30880a(0x147)],_0x30880a(0x14a))});}[_0x3b5382(0x13e)]({id:_0x101e58,staticMessage:_0x354e31}){const _0x5aafa8=_0x3b5382;this[_0x5aafa8(0x10b)][_0x5aafa8(0x12a)][_0x5aafa8(0x15b)](_0x5aafa8(0x113),{'id':_0x101e58,'initialContent':_0x5aafa8(0x155)+_0x354e31+_0x5aafa8(0x16f)});}[_0x3b5382(0x154)](_0x2eb3b2){const _0x330a6e=_0x3b5382,_0x24d0d4=_0x2eb3b2[_0x330a6e(0x130)]?.[_0x330a6e(0xdd)]||_0x2eb3b2[_0x330a6e(0x141)];this[_0x330a6e(0x10b)][_0x330a6e(0x12a)][_0x330a6e(0x15b)](_0x330a6e(0xf2),{'contextItems':Array[_0x330a6e(0x116)](_0x2eb3b2[_0x330a6e(0x169)][_0x330a6e(0x11f)]()),'initialContent':_0x330a6e(0x155)+_0x24d0d4+_0x330a6e(0x16f),'id':_0x2eb3b2['id']});}[_0x3b5382(0x12b)]({errorMessage:_0x5e5cc4,id:_0x1c06b0}){const _0x5ea6dd=_0x3b5382;this[_0x5ea6dd(0x10b)][_0x5ea6dd(0x12a)][_0x5ea6dd(0x15b)](_0x5ea6dd(0x14d),{'initialContent':_0x5ea6dd(0x155)+_0x5e5cc4+_0x5ea6dd(0x16f),'id':_0x1c06b0});}[_0x3b5382(0xff)](_0x27ab8d){const _0x1b65c1=_0x3b5382;return this[_0x1b65c1(0xdc)][_0x1b65c1(0xf3)](async()=>{const _0x4ac41b=_0x1b65c1;this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x15b)](_0x4ac41b(0x113),{'id':_0x27ab8d[_0x4ac41b(0x16c)]+':'+_0x27ab8d['id']}),this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x13d)]('');});}async[_0x3b5382(0x135)](_0x391317){const _0x45a149=_0x3b5382;return this[_0x45a149(0xdc)][_0x45a149(0xf3)](async()=>{const _0x4885f4=_0x45a149;this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x15b)](_0x4885f4(0x14f),{'id':_0x391317[_0x4885f4(0x16c)]+':'+_0x391317['id'],'areActionsDisabled':_0x391317[_0x4885f4(0x118)],'showDiff':this[_0x4885f4(0x149)]}),this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x13d)]('');});}[_0x3b5382(0xe2)](_0x12b354){const _0x4c0a16=_0x3b5382;this[_0x4c0a16(0x10b)][_0x4c0a16(0x12a)][_0x4c0a16(0x15b)](_0x4c0a16(0xdf),{'id':_0x12b354['id'],'capabilities':_0x12b354[_0x4c0a16(0x165)]});}[_0x3b5382(0x13f)](_0x30af60){const _0x119b52=_0x3b5382,_0x395800=this[_0x119b52(0x10b)][_0x119b52(0x12a)][_0x119b52(0x150)][_0x119b52(0x108)](_0x5ab651=>_0x5ab651[_0x119b52(0x15e)]['id']==_0x30af60['id']&&_0x5ab651 instanceof _0x10621f);_0x395800&&_0x395800[_0x119b52(0x143)](_0x119b52(0xf9),_0x30af60[_0x119b52(0xf9)]);}async[_0x3b5382(0xe1)](_0x1e6859){const _0x5097ca=_0x3b5382,_0x2ab723=_0x1e6859[_0x5097ca(0x14e)]||this[_0x5097ca(0xf4)];return this[_0x5097ca(0xdc)][_0x5097ca(0xf3)](async _0x5de92a=>{const _0x55ba11=_0x5097ca;await this[_0x55ba11(0x10b)][_0x55ba11(0x12a)][_0x55ba11(0xeb)]({..._0x1e6859,'abortSignal':_0x5de92a,'renderingStrategy':_0x2ab723}),_0x1e6859[_0x55ba11(0x142)]&&this[_0x55ba11(0x15d)](_0x1e6859['id']);});}[_0x3b5382(0x11a)](_0x3f466e,_0x229146){const _0x538dcd=_0x3b5382;this[_0x538dcd(0x10b)][_0x538dcd(0x12a)][_0x538dcd(0xfc)](_0x3f466e,_0x229146);}async[_0x3b5382(0xdb)](_0x477eaf){const _0x86d443=_0x3b5382,_0x32e4aa=_0x477eaf[_0x86d443(0x14e)]||this[_0x86d443(0xf4)];return this[_0x86d443(0xdc)][_0x86d443(0xf3)](async _0x140e8c=>{const _0x4bb422=_0x86d443;await this[_0x4bb422(0x10b)][_0x4bb422(0x12a)][_0x4bb422(0x107)]({..._0x477eaf,'abortSignal':_0x140e8c,'renderingStrategy':_0x32e4aa}),_0x477eaf[_0x4bb422(0x142)]&&this[_0x4bb422(0x15d)](_0x477eaf['id']);});}[_0x3b5382(0x119)](_0x38315d){const _0x3091cd=_0x3b5382;this[_0x3091cd(0x10b)][_0x3091cd(0x12a)][_0x3091cd(0xe0)](_0x38315d);}[_0x3b5382(0x15d)](_0x2ceae0){const _0x314fb5=_0x3b5382;this[_0x314fb5(0x10b)][_0x314fb5(0x12a)][_0x314fb5(0x158)](_0x2ceae0);}[_0x3b5382(0x152)](_0x4b038b){const _0x2c4adb=_0x3b5382;this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10e)]()[_0x2c4adb(0x11e)](_0x2d92cb=>_0x2d92cb[_0x2c4adb(0x16b)](_0x4b038b))[_0x2c4adb(0xfd)](_0x5e8a2a=>this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10c)](_0x5e8a2a));}[_0x3b5382(0xe3)](_0x589456){const _0x3bce0b=_0x3b5382;this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13d)](this[_0x3bce0b(0x105)](_0x589456)),this[_0x3bce0b(0x10b)][_0x3bce0b(0x11b)][_0x3bce0b(0x10d)](!this[_0x3bce0b(0xf5)][_0x3bce0b(0x139)][_0x3bce0b(0x129)](_0x3bce0b(0xf6))),this[_0x3bce0b(0xef)]=!0x0,this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13c)]();}[_0x3b5382(0x109)](_0x1d89b7){const _0x36353a=_0x3b5382;this[_0x36353a(0xdc)][_0x36353a(0xf7)](),this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x10e)]()[_0x36353a(0x11e)](_0x442875=>_0x442875[_0x36353a(0x16b)](_0x1d89b7['id']))[_0x36353a(0xfd)](_0x2f49cc=>this[_0x36353a(0x15d)](_0x2f49cc)),this[_0x36353a(0xef)]=!0x1,this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x114)]();}async[_0x3b5382(0x168)](){const _0x45c004=_0x3b5382;return this[_0x45c004(0xdc)][_0x45c004(0x162)][_0x45c004(0xe7)](()=>{const _0xc04d83=_0x45c004;this[_0xc04d83(0xef)]=!0x1,this[_0xc04d83(0x10b)][_0xc04d83(0x12a)][_0xc04d83(0x114)]();});}[_0x3b5382(0x15c)](_0x1433e6,_0x4cd0f9){const _0x47c644=_0x3b5382;this[_0x47c644(0x10b)][_0x47c644(0x11b)][_0x47c644(0x15c)](_0x1433e6,_0x4cd0f9);}[_0x3b5382(0x15f)](_0x457d12){const _0x2e576e=_0x3b5382;this[_0x2e576e(0x10b)][_0x2e576e(0x11b)][_0x2e576e(0x15f)](_0x457d12);}[_0x3b5382(0xf1)](_0xd52dda,_0x4074ad){const _0x5219c6=_0x3b5382;this[_0x5219c6(0x10b)][_0x5219c6(0x11b)][_0x5219c6(0xf1)](_0xd52dda,_0x4074ad);}[_0x3b5382(0x16d)](_0x3f7baa){const _0x5effcf=_0x3b5382;this[_0x5effcf(0x10b)][_0x5effcf(0x11b)][_0x5effcf(0x16d)](_0x3f7baa);}[_0x3b5382(0x146)](_0x889a84){const _0x5ea714=_0x3b5382;this[_0x5ea714(0x10b)][_0x5ea714(0x11b)][_0x5ea714(0x146)](_0x889a84);}[_0x3b5382(0x125)](){const _0x1facfb=_0x3b5382;this[_0x1facfb(0x10b)][_0x1facfb(0x11b)][_0x1facfb(0x125)]();}[_0x3b5382(0x163)](){const _0x4f290d=_0x3b5382;this[_0x4f290d(0x10b)][_0x4f290d(0x11b)][_0x4f290d(0x163)]();}[_0x3b5382(0x148)](_0x3e3847,_0x24123c,_0x1754e5){const _0x8936bb=_0x3b5382;this[_0x8936bb(0x10b)][_0x8936bb(0x11b)][_0x8936bb(0x148)](_0x3e3847,_0x24123c,_0x1754e5);}[_0x3b5382(0xe4)](){const _0x36b2d6=_0x3b5382;this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xe4)](),this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xf0)](this[_0x36b2d6(0xfb)]());}[_0x3b5382(0x128)](_0x35e638){const _0x5226d1=_0x3b5382;this[_0x5226d1(0x10b)][_0x5226d1(0x11b)][_0x5226d1(0x128)](_0x35e638);}[_0x3b5382(0x134)](_0x1ac2d4){const _0xcdd29a=_0x3b5382;this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x136)](_0x1ac2d4[_0xcdd29a(0x11c)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x16e)](_0x1ac2d4[_0xcdd29a(0x153)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0xf0)](this[_0xcdd29a(0xfb)](_0x1ac2d4));}[_0x3b5382(0x13a)](_0xb593dc,_0x2fb432){const _0x3f60b3=_0x3b5382;this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x12c)](_0xb593dc),_0x2fb432&&this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x10d)](!0x1);}[_0x3b5382(0x160)](_0x4aeb7d){const _0x48c5ff=_0x3b5382;this[_0x48c5ff(0xf4)]=_0x4aeb7d;}[_0x3b5382(0x170)](_0x288bd1){const _0x3c4088=_0x3b5382;this[_0x3c4088(0x10b)][_0x3c4088(0x12a)][_0x3c4088(0x170)](_0x288bd1);}[_0x3b5382(0x16a)](){const _0x547fd2=_0x3b5382;this[_0x547fd2(0x124)](_0x4404f3(this[_0x547fd2(0xf5)][_0x547fd2(0x147)],_0x547fd2(0x111)));}[_0x3b5382(0x124)](_0x50d136,_0x144cda=!0x1){const _0x1dc9df=_0x3b5382;if(_0x144cda&&!_0x2b4318()&&_0x50d136[_0x1dc9df(0x145)])return this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]='',void this[_0x1dc9df(0x100)](_0x50d136);this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]=_0x50d136;}[_0x3b5382(0x100)](_0x3bf405){const _0x282d82=_0x3b5382;let _0x349209=0x0;clearInterval(this[_0x282d82(0x164)]),this[_0x282d82(0x164)]=setInterval(()=>{const _0xea4b07=_0x282d82;this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]=this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]+_0x3bf405[_0x349209],_0x349209++,_0x349209===_0x3bf405[_0xea4b07(0x145)]&&clearInterval(this[_0xea4b07(0x164)]);},0x1e);}[_0x3b5382(0x144)](_0x4ccd5b){const _0x313810=_0x3b5382;this[_0x313810(0x10b)][_0x313810(0x126)][_0x313810(0x156)]=_0x4ccd5b;}[_0x3b5382(0x105)](_0x5ead87){const _0x2ad62d=_0x3b5382,_0x3d9c87=_0x5ead87[_0x2ad62d(0x165)];return _0x3d9c87[_0x2ad62d(0x11c)]&&_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x127)):_0x3d9c87[_0x2ad62d(0x11c)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x157)):_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xf8)):_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xec));}[_0x3b5382(0xfb)](_0x1faf4f){const _0x1b3fe9=_0x3b5382;return _0x1faf4f?_0x1faf4f[_0x1b3fe9(0x11c)]&&_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x15a)):_0x1faf4f[_0x1b3fe9(0x11c)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x102)):_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x140)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161));}[_0x3b5382(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36){const _0x1af17c=_0x3b5382;this[_0x1af17c(0x10b)][_0x1af17c(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36);}[_0x3b5382(0x110)](_0x2a4afa){const _0x4daa04=_0x3b5382;this[_0x4daa04(0x10b)][_0x4daa04(0x110)](_0x2a4afa);}[_0x3b5382(0x171)](){const _0x5db3bf=_0x3b5382;this[_0x5db3bf(0x10b)][_0x5db3bf(0x11b)][_0x5db3bf(0x171)]();}[_0x3b5382(0xe9)](_0x5915db,_0x348490){const _0x4c3653=_0x3b5382;this[_0x4c3653(0x10b)][_0x4c3653(0x12a)][_0x4c3653(0x14c)](_0x5915db,_0x348490);}}