@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.3

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 (78) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  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/awstextadapter.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aichat/aichat.js +1 -1
  13. package/src/aichat/aichatballoon.js +1 -1
  14. package/src/aichat/aichatcontroller.js +1 -1
  15. package/src/aichat/aichatui.js +1 -1
  16. package/src/aichat/model/aichatcontext.js +1 -1
  17. package/src/aichat/model/aichatconversation.js +1 -1
  18. package/src/aichat/model/aichatinteraction.js +1 -1
  19. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  20. package/src/aichat/ui/aichatfeedview.js +1 -1
  21. package/src/aichat/ui/aichatheaderview.js +1 -1
  22. package/src/aichat/ui/aichatview.js +1 -1
  23. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  24. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  25. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  26. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  27. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  28. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  29. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  30. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  31. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  32. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  33. package/src/aichat/utils/eventnames.js +1 -1
  34. package/src/aichathistory/aichathistory.js +1 -1
  35. package/src/aichathistory/aichathistorycontroller.js +1 -1
  36. package/src/aichathistory/aichathistoryui.js +1 -1
  37. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  38. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  39. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  40. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  41. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  42. package/src/aicore/aiediting.js +1 -1
  43. package/src/aicore/model/aiinteraction.js +1 -1
  44. package/src/aicore/model/aimodels.js +1 -1
  45. package/src/aicore/model/aireply.js +1 -1
  46. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  47. package/src/aicore/pipeline/airesponseparser.js +2 -2
  48. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  49. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  50. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  51. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  52. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  53. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  54. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  57. package/src/aicore/utils/documentrange.js +1 -1
  58. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  59. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  60. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  61. package/src/aicore/utils/htmlparser.js +1 -1
  62. package/src/aicore/utils/htmlstreamer.js +1 -1
  63. package/src/aieditorintegration/aieditorintegration.js +1 -1
  64. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  65. package/src/aiquickactions/aiquickactionsui.js +1 -1
  66. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  67. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  68. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  69. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  70. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  71. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  72. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  73. package/src/aireviewcore/aireviewcoreui.js +1 -1
  74. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  75. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  76. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  77. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  78. package/src/aitabs/aitabs.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36c7e9=_0x414a;(function(_0x2a57fe,_0x2c7232){const _0x9f8b8=_0x414a,_0x21cc21=_0x2a57fe();while(!![]){try{const _0x10feb7=-parseInt(_0x9f8b8(0xcf))/0x1*(parseInt(_0x9f8b8(0xe6))/0x2)+parseInt(_0x9f8b8(0xdc))/0x3+parseInt(_0x9f8b8(0xf5))/0x4*(parseInt(_0x9f8b8(0xe8))/0x5)+parseInt(_0x9f8b8(0xd3))/0x6+-parseInt(_0x9f8b8(0xfb))/0x7*(parseInt(_0x9f8b8(0xe5))/0x8)+parseInt(_0x9f8b8(0xff))/0x9+parseInt(_0x9f8b8(0xcb))/0xa*(-parseInt(_0x9f8b8(0xd6))/0xb);if(_0x10feb7===_0x2c7232)break;else _0x21cc21['push'](_0x21cc21['shift']());}catch(_0x4c6665){_0x21cc21['push'](_0x21cc21['shift']());}}}(_0x52b5,0xb2a1e));import{Plugin as _0x18fe8c}from'ckeditor5/src/core.js';import{AIBalloon as _0x24ff05}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x1f0a62}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1f0b92}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4d1f51}from'../aicore/utils/eventnames.js';import{Dialog as _0x127a1a}from'ckeditor5/src/ui.js';function _0x414a(_0xf7c221,_0x1ce93e){const _0x52b50c=_0x52b5();return _0x414a=function(_0x414ac8,_0x40475b){_0x414ac8=_0x414ac8-0xc4;let _0x95c486=_0x52b50c[_0x414ac8];return _0x95c486;},_0x414a(_0xf7c221,_0x1ce93e);}export class AIChatBalloon extends _0x18fe8c{static get[_0x36c7e9(0xfa)](){return[_0x127a1a,_0x24ff05];}static get[_0x36c7e9(0xe9)](){const _0x43e578=_0x36c7e9;return _0x43e578(0xf4);}static get[_0x36c7e9(0xd5)](){return!0x0;}static get[_0x36c7e9(0xda)](){return!0x0;}[_0x36c7e9(0xd2)];constructor(_0x5d81ba){const _0x523380=_0x36c7e9;super(_0x5d81ba),this[_0x523380(0x100)](_0x523380(0xc6),!0x1);}[_0x36c7e9(0x103)](_0x2d5d4a){const _0x3f8ef5=_0x36c7e9,_0x4a30cb=this[_0x3f8ef5(0xcc)];this[_0x3f8ef5(0xd2)]||(this[_0x3f8ef5(0xd2)]=this[_0x3f8ef5(0xde)]()),_0x4a30cb[_0x3f8ef5(0xef)][_0x3f8ef5(0xdd)](_0x3f8ef5(0xed))[_0x3f8ef5(0x103)]({..._0x2d5d4a,'id':_0x3f8ef5(0xf7),'class':_0x3f8ef5(0xc9),'mainView':this[_0x3f8ef5(0xd2)]}),this[_0x3f8ef5(0xd4)](_0x2d5d4a[_0x3f8ef5(0xe0)]),this[_0x3f8ef5(0xd2)][_0x3f8ef5(0xcd)](!_0x2d5d4a[_0x3f8ef5(0xce)]),this[_0x3f8ef5(0xd9)]();}[_0x36c7e9(0xec)](){const _0x5924d3=_0x36c7e9;this[_0x5924d3(0xcc)][_0x5924d3(0xef)][_0x5924d3(0xdd)](_0x5924d3(0xed))[_0x5924d3(0xec)]();}[_0x36c7e9(0x101)](_0x82a43){const _0x5856b3=_0x36c7e9;return this[_0x5856b3(0xd2)]||(this[_0x5856b3(0xd2)]=this[_0x5856b3(0xde)]()),this[_0x5856b3(0xd2)][_0x5856b3(0x101)](_0x82a43);}[_0x36c7e9(0x104)](_0x3ab07f){const _0x461e64=_0x36c7e9;this[_0x461e64(0xd2)]&&this[_0x461e64(0xd2)][_0x461e64(0x104)](_0x3ab07f);}[_0x36c7e9(0xde)](){const _0x2acf1c=_0x36c7e9,_0x414d32=this[_0x2acf1c(0xcc)],_0xcc536e=_0x414d32[_0x2acf1c(0xef)][_0x2acf1c(0xdd)](_0x2acf1c(0xed)),_0x10fd8b=_0x414d32[_0x2acf1c(0x102)][_0x2acf1c(0xdd)](_0x2acf1c(0x105));let _0x324e7b=_0x414d32[_0x2acf1c(0xea)][_0x2acf1c(0xdd)](_0x2acf1c(0xf3))||[..._0x1f0a62];_0x414d32[_0x2acf1c(0xef)][_0x2acf1c(0xe3)](_0x2acf1c(0xca))||(_0x324e7b=_0x324e7b[_0x2acf1c(0xf1)](_0xf2afbf=>_0x2acf1c(0xe7)!=_0xf2afbf));const _0x949d5e=new _0x1f0b92(_0x414d32[_0x2acf1c(0xdb)],{'availableActions':_0x324e7b,'showApplyButton':!0x0,'showSuggestButton':!!_0x10fd8b});return _0x949d5e[_0x2acf1c(0xe1)](_0x2acf1c(0xc6))['to'](this),_0x949d5e[_0x2acf1c(0xd8)](..._0x4d1f51)['to'](this),_0x949d5e[_0x2acf1c(0xd8)](_0x2acf1c(0xf6),_0x2acf1c(0xd0))['to'](this),_0xcc536e[_0x2acf1c(0xd8)](_0x2acf1c(0xd7))['to'](this),_0x949d5e['on'](_0x2acf1c(0xeb),this[_0x2acf1c(0xd9)][_0x2acf1c(0xe1)](this)),_0x949d5e['on'](_0x2acf1c(0xe7),this[_0x2acf1c(0xd9)][_0x2acf1c(0xe1)](this)),_0x949d5e['on'](_0x2acf1c(0xf8),this[_0x2acf1c(0xd9)][_0x2acf1c(0xe1)](this)),_0x10fd8b&&_0x949d5e[_0x2acf1c(0xe1)](_0x2acf1c(0xc8))['to'](_0x10fd8b,_0x2acf1c(0xe2)),_0x949d5e[_0x2acf1c(0xc4)](),_0x949d5e;}[_0x36c7e9(0xd4)](_0x3974ea){const _0x1c5de0=_0x36c7e9,_0x1904c1=this[_0x1c5de0(0xcc)],_0x151f9e=_0x1904c1[_0x1c5de0(0xef)][_0x1c5de0(0xdd)](_0x1c5de0(0xc5))[_0x1c5de0(0xee)][_0x1c5de0(0xc7)][_0x1c5de0(0xfc)];this[_0x1c5de0(0xd2)][_0x1c5de0(0xe4)](_0x3974ea),_0x151f9e[_0x1c5de0(0xe3)](this[_0x1c5de0(0xd2)][_0x1c5de0(0xf0)])||(_0x151f9e[_0x1c5de0(0xdf)]([this[_0x1c5de0(0xd2)][_0x1c5de0(0xf0)],this[_0x1c5de0(0xd2)][_0x1c5de0(0xd1)]],0x0),_0x1904c1[_0x1c5de0(0xef)][_0x1c5de0(0xdd)](_0x1c5de0(0xed))[_0x1c5de0(0xfd)](_0x1c5de0(0xf2),()=>{const _0x342baf=_0x1c5de0;_0x151f9e[_0x342baf(0xfe)](this[_0x342baf(0xd2)][_0x342baf(0xf0)]),_0x151f9e[_0x342baf(0xfe)](this[_0x342baf(0xd2)][_0x342baf(0xd1)]);}));}[_0x36c7e9(0xd9)](){const _0x49ce30=_0x36c7e9;this[_0x49ce30(0xd2)][_0x49ce30(0xf9)]();}}function _0x52b5(){const _0x42282b=['trackChanges','render','Dialog','showDiff','headerView','isTrackChangesOn','ck-ai-chat-balloon','TrackChanges','468320knghXN','editor','togglePartToolbarEnabled','areActionsDisabled','3NXcjOJ','showNext','nextButtonView','_chatBalloonView','6768276HzlwwI','_toggleRotatorButtonsInDialogHeader','isOfficialPlugin','55PGVqzr','dialogClosed','delegate','_restoreDefaultViewFocus','isPremiumPlugin','locale','1957668JKYXas','get','_createChatBalloonView','addMany','showRotator','bind','value','has','toggleRotatorButtonsVisibility','8uWSRcL','427560mHWnbr','insertSuggestion','300535CgBBqn','pluginName','config','applySuggestion','close','AIBalloon','view','plugins','previousButtonView','filter','beforeDialogClosed','ai.availableReplyActions','AIChatBalloon','16XUlnUk','showPrevious','aiChatBalloon','rejectSuggestion','focus','requires','9169167BmHtuP','children','once','remove','8064261cwTTaD','set','updateContent','commands','open','setState'];_0x52b5=function(){return _0x42282b;};return _0x52b5();}
23
+ const _0x56d8a8=_0x3944;(function(_0x2dd065,_0x3d283c){const _0x3eb7e0=_0x3944,_0x503427=_0x2dd065();while(!![]){try{const _0xf2d368=-parseInt(_0x3eb7e0(0x6a))/0x1+-parseInt(_0x3eb7e0(0x9e))/0x2*(parseInt(_0x3eb7e0(0x99))/0x3)+-parseInt(_0x3eb7e0(0x70))/0x4*(parseInt(_0x3eb7e0(0x87))/0x5)+-parseInt(_0x3eb7e0(0x9f))/0x6*(parseInt(_0x3eb7e0(0x8d))/0x7)+-parseInt(_0x3eb7e0(0x82))/0x8*(-parseInt(_0x3eb7e0(0x92))/0x9)+-parseInt(_0x3eb7e0(0x8c))/0xa*(-parseInt(_0x3eb7e0(0x98))/0xb)+parseInt(_0x3eb7e0(0x6c))/0xc;if(_0xf2d368===_0x3d283c)break;else _0x503427['push'](_0x503427['shift']());}catch(_0x29ba8b){_0x503427['push'](_0x503427['shift']());}}}(_0x1f7c,0xca459));import{Plugin as _0x2014f5}from'ckeditor5/src/core.js';function _0x1f7c(){const _0x216334=['requires','insertSuggestion','view','AIChatBalloon','rejectSuggestion','setState','commands','render','remove','isOfficialPlugin','areActionsDisabled','aiChatBalloon','155225efGjZq','showRotator','6465000OgavkS','plugins','toggleRotatorButtonsVisibility','value','329668PbcDaX','togglePartToolbarEnabled','close','showPrevious','TrackChanges','ck-ai-chat-balloon','addMany','_restoreDefaultViewFocus','Dialog','has','delegate','nextButtonView','applySuggestion','isPremiumPlugin','previousButtonView','editor','beforeDialogClosed','_createChatBalloonView','12215072RMrJzh','AIBalloon','focus','once','_chatBalloonView','95pmSeLz','_toggleRotatorButtonsInDialogHeader','headerView','updateContent','locale','155790aleLOC','10129jctdhU','showDiff','showNext','trackChanges','children','9fMgrho','config','open','isTrackChangesOn','get','filter','1089yREfgK','3aGIjOb','dialogClosed','pluginName','ai.availableReplyActions','set','2067406BNtujy','102IpfzFw','bind'];_0x1f7c=function(){return _0x216334;};return _0x1f7c();}import{AIBalloon as _0x16050a}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x479cd3}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1c173c}from'./ui/aichatballoonview.js';function _0x3944(_0x1b1fa3,_0x2d0ac3){const _0x1f7c52=_0x1f7c();return _0x3944=function(_0x394466,_0x260ef4){_0x394466=_0x394466-0x64;let _0x2e2d19=_0x1f7c52[_0x394466];return _0x2e2d19;},_0x3944(_0x1b1fa3,_0x2d0ac3);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4d7995}from'../aicore/utils/eventnames.js';import{Dialog as _0xf2aefc}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x2014f5{static get[_0x56d8a8(0xa1)](){return[_0xf2aefc,_0x16050a];}static get[_0x56d8a8(0x9b)](){const _0x373848=_0x56d8a8;return _0x373848(0xa4);}static get[_0x56d8a8(0x67)](){return!0x0;}static get[_0x56d8a8(0x7d)](){return!0x0;}[_0x56d8a8(0x86)];constructor(_0x2be77d){const _0x3b8e61=_0x56d8a8;super(_0x2be77d),this[_0x3b8e61(0x9d)](_0x3b8e61(0x8e),!0x1);}[_0x56d8a8(0x94)](_0x3027ed){const _0x1b916c=_0x56d8a8,_0x3eda4e=this[_0x1b916c(0x7f)];this[_0x1b916c(0x86)]||(this[_0x1b916c(0x86)]=this[_0x1b916c(0x81)]()),_0x3eda4e[_0x1b916c(0x6d)][_0x1b916c(0x96)](_0x1b916c(0x83))[_0x1b916c(0x94)]({..._0x3027ed,'id':_0x1b916c(0x69),'class':_0x1b916c(0x75),'mainView':this[_0x1b916c(0x86)]}),this[_0x1b916c(0x88)](_0x3027ed[_0x1b916c(0x6b)]),this[_0x1b916c(0x86)][_0x1b916c(0x71)](!_0x3027ed[_0x1b916c(0x68)]),this[_0x1b916c(0x77)]();}[_0x56d8a8(0x72)](){const _0x10ee9b=_0x56d8a8;this[_0x10ee9b(0x7f)][_0x10ee9b(0x6d)][_0x10ee9b(0x96)](_0x10ee9b(0x83))[_0x10ee9b(0x72)]();}[_0x56d8a8(0x8a)](_0x4f1198){const _0xd2cd9b=_0x56d8a8;return this[_0xd2cd9b(0x86)]||(this[_0xd2cd9b(0x86)]=this[_0xd2cd9b(0x81)]()),this[_0xd2cd9b(0x86)][_0xd2cd9b(0x8a)](_0x4f1198);}[_0x56d8a8(0xa6)](_0x421d43){const _0x2b6207=_0x56d8a8;this[_0x2b6207(0x86)]&&this[_0x2b6207(0x86)][_0x2b6207(0xa6)](_0x421d43);}[_0x56d8a8(0x81)](){const _0x591a0d=_0x56d8a8,_0x7591e6=this[_0x591a0d(0x7f)],_0x126856=_0x7591e6[_0x591a0d(0x6d)][_0x591a0d(0x96)](_0x591a0d(0x83)),_0x56c313=_0x7591e6[_0x591a0d(0x64)][_0x591a0d(0x96)](_0x591a0d(0x90));let _0xacf402=_0x7591e6[_0x591a0d(0x93)][_0x591a0d(0x96)](_0x591a0d(0x9c))||[..._0x479cd3];_0x7591e6[_0x591a0d(0x6d)][_0x591a0d(0x79)](_0x591a0d(0x74))||(_0xacf402=_0xacf402[_0x591a0d(0x97)](_0xbfa3b9=>_0x591a0d(0xa2)!=_0xbfa3b9));const _0x551db9=new _0x1c173c(_0x7591e6[_0x591a0d(0x8b)],{'availableActions':_0xacf402,'showApplyButton':!0x0,'showSuggestButton':!!_0x56c313});return _0x551db9[_0x591a0d(0xa0)](_0x591a0d(0x8e))['to'](this),_0x551db9[_0x591a0d(0x7a)](..._0x4d7995)['to'](this),_0x551db9[_0x591a0d(0x7a)](_0x591a0d(0x73),_0x591a0d(0x8f))['to'](this),_0x126856[_0x591a0d(0x7a)](_0x591a0d(0x9a))['to'](this),_0x551db9['on'](_0x591a0d(0x7c),this[_0x591a0d(0x77)][_0x591a0d(0xa0)](this)),_0x551db9['on'](_0x591a0d(0xa2),this[_0x591a0d(0x77)][_0x591a0d(0xa0)](this)),_0x551db9['on'](_0x591a0d(0xa5),this[_0x591a0d(0x77)][_0x591a0d(0xa0)](this)),_0x56c313&&_0x551db9[_0x591a0d(0xa0)](_0x591a0d(0x95))['to'](_0x56c313,_0x591a0d(0x6f)),_0x551db9[_0x591a0d(0x65)](),_0x551db9;}[_0x56d8a8(0x88)](_0x511035){const _0x36cd7d=_0x56d8a8,_0x16a671=this[_0x36cd7d(0x7f)],_0x3dcfe0=_0x16a671[_0x36cd7d(0x6d)][_0x36cd7d(0x96)](_0x36cd7d(0x78))[_0x36cd7d(0xa3)][_0x36cd7d(0x89)][_0x36cd7d(0x91)];this[_0x36cd7d(0x86)][_0x36cd7d(0x6e)](_0x511035),_0x3dcfe0[_0x36cd7d(0x79)](this[_0x36cd7d(0x86)][_0x36cd7d(0x7e)])||(_0x3dcfe0[_0x36cd7d(0x76)]([this[_0x36cd7d(0x86)][_0x36cd7d(0x7e)],this[_0x36cd7d(0x86)][_0x36cd7d(0x7b)]],0x0),_0x16a671[_0x36cd7d(0x6d)][_0x36cd7d(0x96)](_0x36cd7d(0x83))[_0x36cd7d(0x85)](_0x36cd7d(0x80),()=>{const _0x571998=_0x36cd7d;_0x3dcfe0[_0x571998(0x66)](this[_0x571998(0x86)][_0x571998(0x7e)]),_0x3dcfe0[_0x571998(0x66)](this[_0x571998(0x86)][_0x571998(0x7b)]);}));}[_0x56d8a8(0x77)](){const _0x4bc36f=_0x56d8a8;this[_0x4bc36f(0x86)][_0x4bc36f(0x84)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x549e58=_0x2831;(function(_0x1b3890,_0x384e77){const _0x14e4d6=_0x2831,_0x5b9f03=_0x1b3890();while(!![]){try{const _0x118a91=parseInt(_0x14e4d6(0x248))/0x1*(parseInt(_0x14e4d6(0x23e))/0x2)+-parseInt(_0x14e4d6(0x2dc))/0x3+parseInt(_0x14e4d6(0x19e))/0x4+-parseInt(_0x14e4d6(0x2a4))/0x5*(parseInt(_0x14e4d6(0x1de))/0x6)+parseInt(_0x14e4d6(0x1ca))/0x7*(-parseInt(_0x14e4d6(0x1ec))/0x8)+-parseInt(_0x14e4d6(0x1fc))/0x9+parseInt(_0x14e4d6(0x2c5))/0xa;if(_0x118a91===_0x384e77)break;else _0x5b9f03['push'](_0x5b9f03['shift']());}catch(_0x4977dd){_0x5b9f03['push'](_0x5b9f03['shift']());}}}(_0x34e4,0x4eb0b));import{ContextPlugin as _0x532a15,Editor as _0x49cd1c}from'ckeditor5/src/core.js';import{BodyCollection as _0x304253}from'ckeditor5/src/ui.js';import{CKEditorError as _0x4463ae,logError as _0x5d0d75,scrollViewportToShowTarget as _0x2f1661,uid as _0x327016}from'ckeditor5/src/utils.js';import{AIConnector as _0x5d5837}from'../aicore/aiconnector.js';import{AITabs as _0xf3132e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3c92d0}from'./model/aichatconversation.js';import{getTranslation as _0x4b3662}from'../aicore/utils/common-translations.js';function _0x34e4(){const _0x31f4e9=['_getUserPresentableContentPartDocumentRange','isInContext','chat','root','_bodyCollection','resource','editors','addFileToContext','ai-conversation-','clearConversationContextUI','getDocumentContext','updateFeedItemAIReplySuggestionContent','listenTo','ai-no-track-changes','interactionFinished','change','3551580DkXvxd','baseVersion','delegate','accepted','contextItemRemoved','getChild','replyCreated','cloneNode','resources','ai-chat-url-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','updateConversationTitle','removeFeedInteraction','source','dialogClosed','streaming','selectModel','partIndex','state','new','mouseOverSuggestion','revert','_scrollToSuggestionRange','30210WByBPk','setModel','AITabs','AIConnector','getSelectionText','detachFromDom','createRange','isUploadInProgress','ai-chat-conversation-start-failed','contextItems','updateCapabilities','updateFeedItemAIReplySources','ai-chat-controller-mouse-over','getChildren','_setIsMaximized','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','config','stop','domConverter','updateFeedItemAIReplySuggestionPartState','push','addFilesToContext','handleUserInteraction','selection','ai-chat-controller-no-active-conversation','getOperations','ai-chat-context-invalid-data','_applySuggestion','nextSibling','removeSelectionFromChatContext','setAddContextOptions','ai.models','getConversation','alignToTop','static','history','activateTab','_stopLastInteraction','content','addFeedItemError','getRoot','removed','getContentParts','AI_CHAT_GENERIC_ERROR','abortPromptStream','updateResourceState','interactionId','find','createPositionAt','setIsUploadInProgress','messageId','clearLoadingMessage','ai-chat-context-unsupported-type','scrollFeedToSuggestion','replies','isDocumentOperation','ai-chat-context-form-data-size-limits-exceeded','resourceStateChanged','context','populateSourceResourceBalloon','setFeedItemAIReplySuggestionPartActive','focusPromptInput','_aiChatBalloonShowDiff','fetchConversations','callback','batch','getAttribute','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','insertSuggestion','type','changes','locale','current-document','ai.models.defaultModelId','_createFromRanges','ai-chat-source-resources-load-failed','findIndex','addSelectionToChatContext','1818696YJyYks','split','unshift','mapper','version','activeConversation','isPremiumPlugin','getRanges','done','sourceResourcesLoaded','getDiff','$graveyard','Undo','ai-chat-conversation-init-failed','applyOperation','aiChatBalloon','ai-chat-context-unsupported-file-type','setContextItemLoading','open','addContextOptionsChanged','fetchConversation','interactionStarted','addSelectionToContext','toString','closeSourceResourceBalloon','selectedModel','AIChatController','startInteraction','getAll','addFeedItemAIReply','updateContent','message','Disliked\x20response','reasoningStarted','_toggleReasoning','_getLastCreatedConversationId','contextItemLoadingEnded','maxOffset','_openBalloonFor','AI_CHAT_ABORTED_MESSAGE','replyId','getChildAtOffset','addFeedItemCustomElement','resetMessageInput','171794CDhmrF','DocumentCompare','_integrateEditor','setLoadingMessage','addFeedItemAISuggestion','showFakeVisualSelection','addResourceToContext','redo','sendMessage','interactionCreated','addContextItem','disableControls','resize','undo','previous','AI_CHAT_INVALID_REQUEST','updateCurrentDocumentInContext','ai-request-aborted','showDiff','loadSourceResources','6mzIaqQ','uiId','resetConversationTitle','startsWith','set','Liked\x20response','ai.chat.initialConversation','addCurrentDocumentToChatContext','_showConversationHistory','applySuggestion','interactionDestroyed','isStarted','contextItem','options','112PScoTW','_registerToolDataCallback','_updateReplyContent','modification','getInteraction','sourceId','stopInteraction','editing','showNext','plugins','pending','_currentPreviewedChangeGroup','changeGroups','toViewRange','setIsMaximized','ai-chat-file-upload-failed','4395627bCtABF','getConversations','uploadProgressChanged','from','toolDataReceived','load','anchorId','start','range','_aiEditing','clearPendingContextUI','_applyOperationsAsSuggestions','createPositionFromPath','webSearchStarted','contextItemAdded','ai-chat-resource-load-failed','addCurrentDocumentToContext','resizedTabs','resizeTabs','ai-chat-conversation-not-found','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','startAutoScroll','TrackChangesEditing','ai-chat-invalid-request','has','isModelAvailable','main','rejectSuggestion','data-id','document','handleRemovedConversation','delete','children','ai.chat.context','addFeedItemStaticMessage','mouseLeaveSuggestion','resetReasoningState','lastCreated','map','sourcePosition','createReply','finishInteraction','parse','_toggleWebSearch','_flushLastInteractionUI','toggleWebSearch','AI_CHAT_RESOURCE_LOAD_FAILED','addFeedInteractionHeader','capabilitiesUpdated','ai-chat-context-file-too-many-pages','_getDocumentRangeForReplyChanges','init','dislike','getDocumentData','bind','enableControls','AIEditing','removeSelectionFromContext','_getPresentableSiblingContentPartIndex','replyContentUpdated','close','_insertSuggestion','viewRangeToDom','setFeedItemRenderingStrategy','model','getTransformedByOperation','1204342QVhlTF','isDisabled','toggleLoadingSkeleton','_handleStartConversation','modelSelected','currentReply','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','howMany','loadConversation','1gaOofr','_startConversationSafely','getFirstRange','startConversation','addOperation','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getPath','_removeFromContext','_getAIChatInteractionAPI','length','_handleUIUserMessage','resourceId','replyChangeGroupStateUpdated','like','_aiChatUi','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','executeCustomItemCallback','commands','conversationInitialized','setState','resetWebSearchState','showPrevious','getReply','attachToDom','collaboration.channelId','requires','isCurrentDocumentInContext','webSearchFinished','Showing\x20conversation\x20history...','hideFakeVisualSelection','marker','sendUserMessage','log','hasChanges','_batchToChanges','createConversation','setConversationTitle','ready','getGroupId','isCurrentDocumentInConversation','showChangeInText','slice','ai-chat-missing-channel-id','data','rootName','filter','outdated','addFeedItemUserMessage','sessionId','sources','query','end','remove','AI_CHAT_CONTEXT_INVALID_DATA','areActionsDisabled','view','AIChatUI','TrackChanges','getInteractionAndReplyById','_aiConnector','lastInteraction','isLoading','createdAt','upsertAIChatRating','error','uid','node','rejected','prepareLoadingMessage','toggleReasoning','add','setChangeGroupState','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','forEach','afterInit','path','AI_CHAT_UNABLE_TO_START_CONVERSATION','_rejectSuggestion','addUrlToContext','index','removeContextItem','includes','_updateRatings','AI_CHAT_CONTEXT_FILE_TOO_LARGE','text','get','AI_BALLOON_HEADER_TITLE','contextSent','AIChatBalloon','destroy','addDocumentToContext','_logError','1238135oXhaeg','indexes','reasoningFinished','indexOf','removeFromContext','updateFeedItemAIReplyContent','setSelectedModel','setConversationContext','documentContextContent','isOfficialPlugin','_aiChatModels','next','toggleSuggestionDisplayMode','pluginName','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_aiChatBalloon','ai-chat-context-file-too-large'];_0x34e4=function(){return _0x31f4e9;};return _0x34e4();}import{AIModels as _0x1574f3}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x4ee1ac}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x181444,DATA_ID_MODEL_ATTRIBUTE as _0x5a92da}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x595e85,getOperationsFromReply as _0x1f974c}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3cc810,getMinimalSelection as _0x515b44}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4a1aab,_DetachOperation as _0x467c1c}from'ckeditor5/src/engine.js';function _0x2831(_0x403949,_0x57b4ca){const _0x34e4a8=_0x34e4();return _0x2831=function(_0x283108,_0x2d5fd0){_0x283108=_0x283108-0x190;let _0x12bbee=_0x34e4a8[_0x283108];return _0x12bbee;},_0x2831(_0x403949,_0x57b4ca);}import{findOne as _0x2a7a53,getAttribute as _0x51229b,serialize as _0x45c6b5,Document as _0x5b8bb4,findByAttribute as _0x1d2477}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x532a15{[_0x549e58(0x205)];[_0x549e58(0x283)];[_0x549e58(0x256)];[_0x549e58(0x2ae)];[_0x549e58(0x2b3)];[_0x549e58(0x26a)]=new Map();[_0x549e58(0x1f7)]=null;[_0x549e58(0x2b9)];static get[_0x549e58(0x261)](){return[_0x5d5837,_0x181444];}static get[_0x549e58(0x2b1)](){const _0x2721f7=_0x549e58;return _0x2721f7(0x1b8);}static get[_0x549e58(0x2ad)](){return!0x0;}static get[_0x549e58(0x1a4)](){return!0x0;}[_0x549e58(0x22f)](){const _0x5134f8=_0x549e58;this[_0x5134f8(0x2b9)]=new _0x304253(this[_0x5134f8(0x316)][_0x5134f8(0x197)]),this[_0x5134f8(0x2b9)][_0x5134f8(0x25f)](),this[_0x5134f8(0x283)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x2df)),this[_0x5134f8(0x256)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x280)),this[_0x5134f8(0x205)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x234)),this[_0x5134f8(0x2ae)]=new _0x1574f3({'connector':this[_0x5134f8(0x283)],'config':this[_0x5134f8(0x316)][_0x5134f8(0x2ec)][_0x5134f8(0x29d)](_0x5134f8(0x2fb)),'locale':this[_0x5134f8(0x316)][_0x5134f8(0x197)]});const _0x9c68be=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x2de));this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x24b),()=>{const _0x13da72=_0x5134f8;this[_0x13da72(0x249)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x267),(_0x1fbf28,_0x1ec1e7)=>{const _0x38d695=_0x5134f8;this[_0x38d695(0x252)]({'userMessage':_0x1ec1e7});}),this[_0x5134f8(0x2c1)](_0x9c68be,_0x5134f8(0x20d),(_0x45fa38,_0x129fde)=>{const _0x153927=_0x5134f8;this[_0x153927(0x2ea)](_0x129fde);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x20e),()=>{const _0x4675f2=_0x5134f8;_0x9c68be[_0x4675f2(0x1d6)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x308),async()=>{const _0x502f42=_0x5134f8;await this[_0x502f42(0x301)](),await this[_0x502f42(0x228)](),this[_0x502f42(0x2f9)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2a2),()=>{const _0x19929d=_0x5134f8;this[_0x19929d(0x1e5)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2bc),(_0x2b97da,_0x2ee259)=>{const _0x55dc9e=_0x5134f8;this[_0x55dc9e(0x1a3)]?.[_0x55dc9e(0x2f1)](Array[_0x55dc9e(0x1ff)](_0x2ee259));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x296),(_0x410f06,_0x246e62)=>{const _0x208f74=_0x5134f8;this[_0x208f74(0x1a3)]?.[_0x208f74(0x296)](_0x246e62);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x258),(_0x221b26,_0x810224)=>{const _0x5c0de7=_0x5134f8;_0x810224[_0x5c0de7(0x190)](this[_0x5c0de7(0x316)]);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x1d0),(_0x4a6d0e,_0x572a46)=>{const _0x56ab12=_0x5134f8;this[_0x56ab12(0x1a3)]?.[_0x56ab12(0x1d0)](_0x572a46[_0x56ab12(0x2d2)],_0x572a46[_0x56ab12(0x2ba)]);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x298),(_0xb7b871,_0x53cb4b)=>{const _0x1a47bc=_0x5134f8;this[_0x1a47bc(0x24f)](_0x53cb4b);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x1dd),(_0x5b01ce,_0x2662a1)=>{const _0x598a36=_0x5134f8;this[_0x598a36(0x1a3)]?.[_0x598a36(0x1dd)](_0x2662a1[_0x598a36(0x1f1)],_0x2662a1[_0x598a36(0x27a)],_0x2662a1[_0x598a36(0x289)]);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x229),()=>{const _0x54f136=_0x5134f8;this[_0x54f136(0x227)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x28d),()=>{const _0x5ceb3e=_0x5134f8;this[_0x5ceb3e(0x1c0)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2d5),(_0x448e75,_0x38c366)=>{const _0x30c59b=_0x5134f8;this[_0x30c59b(0x1a3)]?.[_0x30c59b(0x2dd)](_0x38c366);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x255),(_0x3c6551,{replyId:_0x2aa711})=>{const _0x4cbd04=_0x5134f8;console[_0x4cbd04(0x268)](_0x4cbd04(0x1e3),_0x2aa711);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x230),(_0x4d4ee0,{replyId:_0x46f7a3})=>{const _0x265caf=_0x5134f8;console[_0x265caf(0x268)](_0x265caf(0x1be),_0x46f7a3);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x194),(_0x46da20,_0x4c9e4f)=>{const _0x44bb03=_0x5134f8;this[_0x44bb03(0x239)](_0x4c9e4f);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x270),(_0x2b1e1e,{replyId:_0x16654c,partIndex:_0x2780f8})=>{const _0x59e50f=_0x5134f8;this[_0x59e50f(0x31a)]=this[_0x59e50f(0x256)][_0x59e50f(0x1dc)],this[_0x59e50f(0x1c4)](_0x16654c,_0x2780f8);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2d9),(_0x3b5b00,{replyId:_0x4da5b4,partIndex:_0x421490})=>{const _0x42b29a=_0x5134f8,_0x3f572e=this[_0x42b29a(0x22e)](_0x4da5b4,_0x421490);_0x3f572e&&_0x42b29a(0x1a9)!=_0x3f572e[_0x42b29a(0x204)][_0x42b29a(0x2b8)][_0x42b29a(0x274)]&&this[_0x42b29a(0x205)][_0x42b29a(0x1cf)]([_0x3f572e[_0x42b29a(0x204)]],_0x42b29a(0x2e8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x21f),()=>{const _0xaee70f=_0x5134f8;this[_0xaee70f(0x205)][_0xaee70f(0x265)](_0xaee70f(0x2e8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x1e7),(_0x3a7e2c,_0x2e113f)=>{const _0x2e6cb5=_0x5134f8;this[_0x2e6cb5(0x205)][_0x2e6cb5(0x265)](_0x2e6cb5(0x2e8)),this[_0x2e6cb5(0x2f7)](_0x2e113f);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2b0),async(_0xce90f6,{replyId:_0x30c15b,showDiff:_0x4a81c9})=>{const _0x5e2ad0=_0x5134f8,{reply:_0x50ceb4}=this[_0x5e2ad0(0x282)](_0x30c15b),_0x219d10=_0x50ceb4[_0x5e2ad0(0x306)]({'showDiff':_0x4a81c9});await this[_0x5e2ad0(0x256)][_0x5e2ad0(0x2c0)]({'id':_0x50ceb4['id'],'parts':_0x219d10,'renderingStrategy':_0x5e2ad0(0x2fe)});}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x217),(_0x2e7c33,{replyId:_0x3f8b77,partIndex:_0x228ad4})=>{const _0x4037a4=_0x5134f8;this[_0x4037a4(0x295)]({'replyId':_0x3f8b77,'partIndex':_0x228ad4}),this[_0x4037a4(0x205)][_0x4037a4(0x265)](_0x4037a4(0x2e8));}),this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x214)](_0x5134f8(0x2a0))&&(this[_0x5134f8(0x2b3)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x2a0)),this[_0x5134f8(0x1e2)](_0x5134f8(0x31a),!0x1),this[_0x5134f8(0x2b3)][_0x5134f8(0x232)](_0x5134f8(0x1dc))['to'](this,_0x5134f8(0x31a)),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x2b0),()=>{const _0x11d0a7=_0x5134f8,{replyId:_0x205007,partIndex:_0x154c70}=this[_0x11d0a7(0x1f7)];this[_0x11d0a7(0x31a)]=!this[_0x11d0a7(0x31a)];const {reply:_0x3c362d}=this[_0x11d0a7(0x282)](_0x205007),_0x122c6d=_0x3c362d[_0x11d0a7(0x306)]({'showDiff':this[_0x11d0a7(0x31a)],'groupIndex':_0x154c70});this[_0x11d0a7(0x2b3)][_0x11d0a7(0x1bc)]({'part':_0x122c6d[0x0],'renderingStrategy':_0x11d0a7(0x2fe),'keepErrors':!0x0});}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x1e7),()=>{const _0x562a68=_0x5134f8,{replyId:_0x3d72e6,partIndex:_0x33eb9e}=this[_0x562a68(0x1f7)];this[_0x562a68(0x2f7)]({'replyId':_0x3d72e6,'partIndex':_0x33eb9e}),this[_0x562a68(0x2b3)][_0x562a68(0x25b)](_0x562a68(0x2c8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x194),()=>{const _0x2c9b9c=_0x5134f8,{replyId:_0x5a0299,partIndex:_0x1104eb}=this[_0x2c9b9c(0x1f7)];this[_0x2c9b9c(0x239)]({'replyId':_0x5a0299,'partIndex':_0x1104eb}),this[_0x2c9b9c(0x2b3)][_0x2c9b9c(0x25b)](_0x2c9b9c(0x2c8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x217),()=>{const _0x3d7c54=_0x5134f8,{replyId:_0x4c80ad,partIndex:_0x3f2de8}=this[_0x3d7c54(0x1f7)];this[_0x3d7c54(0x295)]({'replyId':_0x4c80ad,'partIndex':_0x3f2de8}),this[_0x3d7c54(0x2b3)][_0x3d7c54(0x25b)](_0x3d7c54(0x28b));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x1f4),()=>{const _0x17bd62=_0x5134f8,{replyId:_0x3c044b,partIndex:_0x59970b}=this[_0x17bd62(0x1f7)],_0x5275f0=this[_0x17bd62(0x236)](_0x3c044b,_0x59970b,_0x17bd62(0x2af));null!==_0x5275f0&&this[_0x17bd62(0x1c4)](_0x3c044b,_0x5275f0);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x25d),()=>{const _0x7ba9f=_0x5134f8,{replyId:_0x34dfae,partIndex:_0x342356}=this[_0x7ba9f(0x1f7)],_0x635678=this[_0x7ba9f(0x236)](_0x34dfae,_0x342356,_0x7ba9f(0x1d8));null!==_0x635678&&this[_0x7ba9f(0x1c4)](_0x34dfae,_0x635678);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x2d3),(_0x1a8370,{id:_0x5bae2a})=>{const _0x533204=_0x5134f8;if(_0x533204(0x1ad)!==_0x5bae2a)return;const {replyId:_0x99be5b,partIndex:_0x2e5aef}=this[_0x533204(0x1f7)];this[_0x533204(0x1f7)]=null,this[_0x533204(0x256)][_0x533204(0x318)]({'id':_0x99be5b,'index':_0x2e5aef,'isActive':!0x1});}));}async[_0x549e58(0x292)](){const _0x263c23=_0x549e58;this[_0x263c23(0x316)]instanceof _0x49cd1c?this[_0x263c23(0x1cc)](this[_0x263c23(0x316)]):this[_0x263c23(0x2c1)](this[_0x263c23(0x316)][_0x263c23(0x2bb)],_0x263c23(0x28e),(_0x4ff037,_0x3b9ba4)=>{const _0x1a5651=_0x263c23;_0x3b9ba4['on'](_0x1a5651(0x26d),()=>{const _0x4e3fa9=_0x1a5651;this[_0x4e3fa9(0x1cc)](_0x3b9ba4);});});const _0x21c16c=this[_0x263c23(0x316)][_0x263c23(0x2ec)][_0x263c23(0x29d)](_0x263c23(0x1e4));let _0x36216d=_0x21c16c;if(_0x263c23(0x221)!=_0x21c16c||(_0x36216d=await this[_0x263c23(0x1c1)](),_0x36216d))return _0x263c23(0x2d8)==_0x36216d?this[_0x263c23(0x249)]():this[_0x263c23(0x247)](_0x36216d);}async[_0x549e58(0x2a1)](){const _0x218160=_0x549e58;return await this[_0x218160(0x301)](),this[_0x218160(0x2b9)][_0x218160(0x2e1)](),super[_0x218160(0x2a1)]();}[_0x549e58(0x239)](_0x2b8829){const _0x590b58=_0x549e58,_0x482193=_0x4ee1ac(this[_0x590b58(0x316)]);if(!_0x482193[_0x590b58(0x1f5)][_0x590b58(0x214)](_0x590b58(0x281)))throw new _0x4463ae(_0x590b58(0x2c2),null);const _0x4c8d19=this[_0x590b58(0x316)][_0x590b58(0x1f5)][_0x590b58(0x29d)](_0x590b58(0x1cb)),{reply:_0x1b0e67,interaction:_0x41f93e}=this[_0x590b58(0x282)](_0x2b8829[_0x590b58(0x1c6)]),_0x3143c5=this[_0x590b58(0x22e)](_0x2b8829[_0x590b58(0x1c6)],_0x2b8829[_0x590b58(0x2d6)]),_0xe42fbf=void 0x0!==_0x2b8829[_0x590b58(0x2d6)]?[_0x1b0e67[_0x590b58(0x1f8)][_0x2b8829[_0x590b58(0x2d6)]]]:_0x1b0e67[_0x590b58(0x1f8)][_0x590b58(0x275)](_0x5dce58=>_0x590b58(0x1f6)==_0x5dce58[_0x590b58(0x2d7)]),_0x58a113=_0xe42fbf[_0x590b58(0x222)](_0x1042f6=>_0x1b0e67[_0x590b58(0x1f8)][_0x590b58(0x2a7)](_0x1042f6));if(!_0x3143c5||_0x590b58(0x1a9)==_0x3143c5[_0x590b58(0x204)][_0x590b58(0x2b8)][_0x590b58(0x274)])return void _0x58a113[_0x590b58(0x291)](_0x3b9891=>_0x1b0e67[_0x590b58(0x28f)](_0x3b9891,_0x590b58(0x276)));_0x58a113[_0x590b58(0x291)](_0x34872c=>_0x1b0e67[_0x590b58(0x28f)](_0x34872c,_0x590b58(0x2c8)));const _0x1f6b0a=_0x1f974c({'editor':_0x482193,'reply':_0x1b0e67,'interaction':_0x41f93e,'groups':_0xe42fbf,'transform':!0x0,'documentCompare':_0x4c8d19,'documentCompareOptions':{'anchor':_0x590b58(0x216),'markDeletions':!0x0}});let _0x55b8bd;_0x3143c5&&this[_0x590b58(0x2db)](_0x3143c5[_0x590b58(0x204)]),_0x482193[_0x590b58(0x23c)][_0x590b58(0x2c4)](_0x30fcfd=>{const _0xd96f31=_0x590b58;_0x55b8bd=_0x30fcfd[_0xd96f31(0x191)],_0x482193[_0xd96f31(0x1f5)][_0xd96f31(0x29d)](_0xd96f31(0x212))[_0xd96f31(0x207)](_0x1f6b0a),this[_0xd96f31(0x205)][_0xd96f31(0x265)](_0xd96f31(0x2e8));}),this[_0x590b58(0x26a)][_0x590b58(0x1e2)](_0x55b8bd,{'interactionId':_0x41f93e['id'],'replyId':_0x1b0e67['id'],'indexes':_0x58a113[_0x590b58(0x271)]()}),this[_0x590b58(0x29a)](_0x1b0e67);}[_0x549e58(0x2f7)](_0x8d5d4b){const _0x12acd8=_0x549e58,_0x503fcc=_0x4ee1ac(this[_0x12acd8(0x316)]),_0x2e4365=this[_0x12acd8(0x316)][_0x12acd8(0x1f5)][_0x12acd8(0x29d)](_0x181444),{reply:_0x5d16cd,interaction:_0x362640}=this[_0x12acd8(0x282)](_0x8d5d4b[_0x12acd8(0x1c6)]),_0x5ade61=this[_0x12acd8(0x22e)](_0x8d5d4b[_0x12acd8(0x1c6)],_0x8d5d4b[_0x12acd8(0x2d6)]),_0x2500d2=void 0x0!==_0x8d5d4b[_0x12acd8(0x2d6)]?[_0x5d16cd[_0x12acd8(0x1f8)][_0x8d5d4b[_0x12acd8(0x2d6)]]]:_0x5d16cd[_0x12acd8(0x1f8)][_0x12acd8(0x275)](_0x53ca91=>_0x12acd8(0x1f6)==_0x53ca91[_0x12acd8(0x2d7)]),_0x3e416d=_0x2500d2[_0x12acd8(0x222)](_0x523923=>_0x5d16cd[_0x12acd8(0x1f8)][_0x12acd8(0x2a7)](_0x523923));if(!_0x5ade61||_0x12acd8(0x1a9)==_0x5ade61[_0x12acd8(0x204)][_0x12acd8(0x2b8)][_0x12acd8(0x274)])return void _0x3e416d[_0x12acd8(0x291)](_0x356011=>_0x5d16cd[_0x12acd8(0x28f)](_0x356011,_0x12acd8(0x276)));_0x3e416d[_0x12acd8(0x291)](_0x3d7eb5=>_0x5d16cd[_0x12acd8(0x28f)](_0x3d7eb5,_0x12acd8(0x2c8)));const _0x22f46c=_0x1f974c({'editor':_0x503fcc,'reply':_0x5d16cd,'interaction':_0x362640,'groups':_0x2500d2,'transform':!0x0,'documentCompare':_0x2e4365,'documentCompareOptions':{'anchor':_0x12acd8(0x216),'markDeletions':!0x1}});let _0x51028c;_0x5ade61&&this[_0x12acd8(0x2db)](_0x5ade61[_0x12acd8(0x204)]),_0x503fcc[_0x12acd8(0x23c)][_0x12acd8(0x2c4)](_0x2d395f=>{const _0x40810e=_0x12acd8;_0x51028c=_0x2d395f[_0x40810e(0x191)];for(const _0x3d095f of _0x22f46c)_0x3d095f[_0x40810e(0x2c6)]=_0x503fcc[_0x40810e(0x23c)][_0x40810e(0x219)][_0x40810e(0x1a2)],_0x595e85(_0x503fcc,_0x3d095f),_0x2d395f[_0x40810e(0x191)][_0x40810e(0x24c)](_0x3d095f),_0x503fcc[_0x40810e(0x23c)][_0x40810e(0x1ac)](_0x3d095f);}),this[_0x12acd8(0x26a)][_0x12acd8(0x1e2)](_0x51028c,{'interactionId':_0x362640['id'],'replyId':_0x5d16cd['id'],'indexes':_0x3e416d[_0x12acd8(0x271)]()}),this[_0x12acd8(0x29a)](_0x5d16cd);}[_0x549e58(0x295)](_0x3111cf){const _0x310318=_0x549e58,{reply:_0x4bc04e}=this[_0x310318(0x282)](_0x3111cf[_0x310318(0x1c6)]);_0x4bc04e[_0x310318(0x28f)](_0x3111cf[_0x310318(0x2d6)],_0x310318(0x28b));}[_0x549e58(0x1c4)](_0x195cb9,_0x1bf2cc){const _0x567e19=_0x549e58;if(!this[_0x567e19(0x2b3)])return;const {reply:_0x549369}=this[_0x567e19(0x282)](_0x195cb9),_0x31f506=_0x549369[_0x567e19(0x306)]({'showDiff':this[_0x567e19(0x31a)]});let _0x23f16,_0x399427;if(void 0x0!==_0x1bf2cc?(_0x399427=_0x31f506[_0x567e19(0x30b)](_0x171965=>_0x171965[_0x567e19(0x297)]==_0x1bf2cc),_0x23f16=_0x399427?.[_0x567e19(0x297)]):(_0x399427=_0x31f506[0x0],_0x23f16=_0x399427[_0x567e19(0x297)]),this[_0x567e19(0x1f7)]?.[_0x567e19(0x1c6)]==_0x195cb9&&this[_0x567e19(0x1f7)]?.[_0x567e19(0x2d6)]==_0x23f16)return;const _0x27df77=this[_0x567e19(0x2b5)](_0x195cb9,_0x549369,_0x399427);if(!_0x27df77)return void this[_0x567e19(0x2b3)][_0x567e19(0x238)]();this[_0x567e19(0x1f7)]={'replyId':_0x195cb9,'partIndex':_0x23f16},this[_0x567e19(0x2db)](_0x27df77,!0x0);const _0x36e4e5=this[_0x567e19(0x236)](_0x195cb9,_0x23f16,_0x567e19(0x2af));this[_0x567e19(0x2b3)][_0x567e19(0x1bc)]({'part':_0x399427,'renderingStrategy':_0x567e19(0x2fe)}),this[_0x567e19(0x2b3)][_0x567e19(0x1b0)]({'index':_0x23f16,'title':_0x4b3662(this[_0x567e19(0x316)][_0x567e19(0x197)],_0x567e19(0x29e),(_0x23f16+0x1)[_0x567e19(0x1b5)]()),'showRotator':null!==_0x36e4e5,'ranges':[_0x27df77],'areActionsDisabled':_0x549369[_0x567e19(0x27e)]}),this[_0x567e19(0x2b3)][_0x567e19(0x25b)](_0x567e19(0x1f6)),this[_0x567e19(0x256)][_0x567e19(0x311)](_0x195cb9,_0x23f16),this[_0x567e19(0x256)][_0x567e19(0x318)]({'id':_0x195cb9,'index':_0x23f16,'isActive':!0x0});}[_0x549e58(0x236)](_0x5a7af1,_0x9b722b,_0x43b5e1){const _0x32f5db=_0x549e58,{reply:_0x1c906f}=this[_0x32f5db(0x282)](_0x5a7af1),_0x55baa4=_0x1c906f[_0x32f5db(0x306)]({'showDiff':this[_0x32f5db(0x31a)]});if(0x1==_0x55baa4[_0x32f5db(0x251)])return null;const _0x11c0fb=_0x55baa4[_0x32f5db(0x19c)](_0x4790a9=>_0x4790a9[_0x32f5db(0x297)]==_0x9b722b),_0x44b1e0=_0x32f5db(0x2af)==_0x43b5e1?0x1:-0x1;let _0x522e08=_0x55baa4['at']((_0x11c0fb+_0x44b1e0)%_0x55baa4[_0x32f5db(0x251)])[_0x32f5db(0x297)],_0x5b60a3=_0x55baa4[_0x522e08];for(;!this[_0x32f5db(0x2b5)](_0x5a7af1,_0x1c906f,_0x5b60a3);){if(_0x522e08=_0x55baa4['at']((_0x522e08+_0x44b1e0)%_0x55baa4[_0x32f5db(0x251)])[_0x32f5db(0x297)],_0x522e08===_0x11c0fb)return null;_0x5b60a3=_0x55baa4[_0x522e08];}return _0x522e08;}[_0x549e58(0x2b5)](_0x37a016,_0x792f23,_0xd6a4a0){const _0x29a2e6=_0x549e58,_0x294d3b=_0x792f23[_0x29a2e6(0x1f8)];if(!_0xd6a4a0[_0x29a2e6(0x269)])return null;const _0x5aec53=_0x294d3b[_0x29a2e6(0x30b)](_0x564782=>_0x564782[_0x29a2e6(0x297)]==_0xd6a4a0[_0x29a2e6(0x297)]);if(_0x29a2e6(0x1f6)!==_0x5aec53?.[_0x29a2e6(0x2d7)])return null;const _0x151c82=this[_0x29a2e6(0x22e)](_0x37a016,_0xd6a4a0[_0x29a2e6(0x297)]);if(!_0x151c82)return null;const {range:_0x4b3ebe,currentIndex:_0x387838}=_0x151c82;return _0x29a2e6(0x1a9)==_0x4b3ebe[_0x29a2e6(0x2b8)][_0x29a2e6(0x274)]?(_0x792f23[_0x29a2e6(0x28f)](_0x387838,_0x29a2e6(0x276)),null):_0x151c82[_0x29a2e6(0x204)];}[_0x549e58(0x22e)](_0x5a65b8,_0x59c8d7){const _0x3efdaf=_0x549e58,_0x28531e=_0x4ee1ac(this[_0x3efdaf(0x316)]),{reply:_0x323c7e,interaction:_0x3788cb}=this[_0x3efdaf(0x282)](_0x5a65b8),_0x4106bb=_0x323c7e[_0x3efdaf(0x1f8)][_0x3efdaf(0x275)](_0x5ece1a=>_0x3efdaf(0x1f6)==_0x5ece1a[_0x3efdaf(0x2d7)]),_0x572d9=_0x4106bb[_0x3efdaf(0x222)](_0x4908f6=>_0x323c7e[_0x3efdaf(0x1f8)][_0x3efdaf(0x2a7)](_0x4908f6));void 0x0===_0x59c8d7&&(_0x59c8d7=_0x572d9[0x0]);const _0x11cf25=_0x572d9[_0x3efdaf(0x2a7)](_0x59c8d7);if(-0x1==_0x11cf25)return null;const _0x3bb4d2=_0x4106bb[_0x11cf25],_0x49701e=new _0x5b8bb4([]),_0x4f3731=new _0x5b8bb4([]);for(const _0x2ca06f of _0x3bb4d2[_0x3efdaf(0x196)])if(_0x3efdaf(0x305)!=_0x2ca06f[_0x3efdaf(0x195)]&&_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x2ca06f[_0x3efdaf(0x28a)][_0x3efdaf(0x2cc)](!0x0)),_0x3efdaf(0x2d8)!=_0x2ca06f[_0x3efdaf(0x195)]){const _0x3cf0bc=_0x2a7a53(_0x5cc7fe=>_0x51229b(_0x5cc7fe,_0x3efdaf(0x218))==_0x2ca06f['id'],_0x323c7e[_0x3efdaf(0x2ac)],!0x0);_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x3cf0bc[_0x3efdaf(0x2cc)](!0x0));}if(0x0==_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x251)]){if(_0x3bb4d2[_0x3efdaf(0x196)][0x0][_0x3efdaf(0x202)]){const _0x29c15a=_0x1d2477(_0x3efdaf(0x218),_0x3bb4d2[_0x3efdaf(0x196)][0x0][_0x3efdaf(0x202)],_0x323c7e[_0x3efdaf(0x2ac)]);_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x1a0)](_0x29c15a[_0x3efdaf(0x2cc)](!0x0)),_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x1a0)](_0x29c15a[_0x3efdaf(0x2cc)](!0x0)),_0x29c15a[_0x3efdaf(0x2f8)]&&(_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x29c15a[_0x3efdaf(0x2f8)][_0x3efdaf(0x2cc)](!0x0)),_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x29c15a[_0x3efdaf(0x2f8)][_0x3efdaf(0x2cc)](!0x0)));}else{const _0x2513e2=_0x323c7e[_0x3efdaf(0x2ac)][_0x3efdaf(0x21c)][0x0];if(!_0x2513e2)return null;_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x2513e2[_0x3efdaf(0x2cc)](!0x0)),_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x2513e2[_0x3efdaf(0x2cc)](!0x0));}}const _0x30d4e5=_0x3788cb[_0x3efdaf(0x2bf)](),_0x537a7e=_0x28531e[_0x3efdaf(0x273)][_0x3efdaf(0x226)](_0x30d4e5[_0x3efdaf(0x302)]),_0x1295fa=_0x45c6b5(_0x49701e),_0x5e2312=_0x28531e[_0x3efdaf(0x273)][_0x3efdaf(0x226)](_0x1295fa),_0x21b297=_0x28531e[_0x3efdaf(0x273)][_0x3efdaf(0x226)](_0x1295fa),_0x33a1e6=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x30c)](_0x5e2312,0x0),_0x49285c=_0x45c6b5(_0x4f3731),_0x228b8b={'anchor':_0x33a1e6,'markDeletions':!0x1},_0x5de7f6=_0x28531e[_0x3efdaf(0x1f5)][_0x3efdaf(0x29d)](_0x181444)[_0x3efdaf(0x1a8)](_0x1295fa,_0x49285c,_0x228b8b)[_0x3efdaf(0x2f5)]();if(!_0x5de7f6[_0x3efdaf(0x251)])return null;_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x2c4)](_0xf4c8c6=>{const _0x17f887=_0x3efdaf;for(const _0xb99f8a of _0x5de7f6)if(_0x17f887(0x27c)==_0xb99f8a[_0x17f887(0x195)]){const _0x2ca690=_0xb99f8a[_0x17f887(0x223)],_0x462ca6=_0xb99f8a[_0x17f887(0x246)],_0x2dc69d=new _0x467c1c(_0x2ca690,_0x462ca6);_0xf4c8c6[_0x17f887(0x191)][_0x17f887(0x24c)](_0x2dc69d),_0x28531e[_0x17f887(0x23c)][_0x17f887(0x1ac)](_0x2dc69d);}else _0x17f887(0x266)!==_0xb99f8a[_0x17f887(0x195)]&&(_0xb99f8a[_0x17f887(0x2c6)]=null,_0xb99f8a[_0x17f887(0x313)]=!0x1,_0xf4c8c6[_0x17f887(0x191)][_0x17f887(0x24c)](_0xb99f8a),_0x28531e[_0x17f887(0x23c)][_0x17f887(0x1ac)](_0xb99f8a));});const _0x4a2b63=_0x515b44(_0x28531e,_0x5de7f6,_0x5e2312);_0x3cc810(_0x28531e[_0x3efdaf(0x23c)],_0x4a2b63);const _0x3b55ef=_0x4a2b63[_0x3efdaf(0x24a)]()[_0x3efdaf(0x203)][_0x3efdaf(0x293)][_0x3efdaf(0x271)](),_0x5d6150=_0x4a2b63[_0x3efdaf(0x24a)]()[_0x3efdaf(0x27b)][_0x3efdaf(0x293)][_0x3efdaf(0x271)](),_0x3306c4=[];let _0x8e6236=_0x5e2312,_0xb05d9a=_0x21b297;for(let _0x298933=0x0;_0x298933<_0x5d6150[_0x3efdaf(0x251)];_0x298933++){const _0x3f68f1=_0x8e6236[_0x3efdaf(0x1c3)]-_0x5d6150[_0x298933];_0x3306c4[_0x298933]=_0xb05d9a[_0x3efdaf(0x1c3)]-_0x3f68f1,_0x8e6236=_0x8e6236[_0x3efdaf(0x1c7)](_0x5d6150[_0x298933]),_0xb05d9a=_0xb05d9a[_0x3efdaf(0x1c7)](_0x3306c4[_0x298933]);}const _0x5d3a53=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x2e2)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x21b297,_0x3b55ef),_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x21b297,_0x3306c4)),_0x434555=_0x21b297[_0x3efdaf(0x2ca)](0x0)[_0x3efdaf(0x192)](_0x5a92da),_0x952069=Array[_0x3efdaf(0x1ff)](_0x537a7e[_0x3efdaf(0x2e9)]())[_0x3efdaf(0x30b)](_0x1f9dca=>_0x1f9dca[_0x3efdaf(0x192)](_0x5a92da)==_0x434555)[_0x3efdaf(0x24e)](),_0x25d3a1=_0x5d3a53[_0x3efdaf(0x203)][_0x3efdaf(0x293)][_0x3efdaf(0x271)](),_0x7b6fe0=_0x5d3a53[_0x3efdaf(0x27b)][_0x3efdaf(0x293)][_0x3efdaf(0x271)]();_0x25d3a1[0x0]=_0x952069[0x0]+_0x25d3a1[0x0],_0x7b6fe0[0x0]=_0x952069[0x0]+_0x7b6fe0[0x0];let _0x32182d=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x2e2)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x219)][_0x3efdaf(0x304)](),_0x25d3a1),_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x219)][_0x3efdaf(0x304)](),_0x7b6fe0));const _0xcf1977=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x219)][_0x3efdaf(0x2ff)][_0x3efdaf(0x2f5)](_0x30d4e5[_0x3efdaf(0x1a2)]);for(const _0x219e67 of _0xcf1977)_0x32182d=_0x4a1aab[_0x3efdaf(0x19a)](_0x32182d[_0x3efdaf(0x23d)](_0x219e67));return{'range':_0x32182d,'currentIndex':_0x59c8d7};}[_0x549e58(0x1cc)](_0x5f23f1){const _0x2b90cf=_0x549e58;if(!_0x5f23f1[_0x2b90cf(0x1f5)][_0x2b90cf(0x214)](_0x2b90cf(0x1aa)))return;const _0x44ed83=_0x5f23f1[_0x2b90cf(0x259)][_0x2b90cf(0x29d)](_0x2b90cf(0x1d7)),_0x597e8a=_0x5f23f1[_0x2b90cf(0x259)][_0x2b90cf(0x29d)](_0x2b90cf(0x1d1));this[_0x2b90cf(0x2c1)](_0x44ed83,_0x2b90cf(0x2da),(_0x2df795,_0x17614b,_0x7954d3)=>{const _0x4e19a2=_0x2b90cf,_0x47141c=this[_0x4e19a2(0x26a)][_0x4e19a2(0x29d)](_0x17614b);if(!_0x47141c)return;const _0x5a3c88=this[_0x4e19a2(0x1a3)][_0x4e19a2(0x1f0)](_0x47141c[_0x4e19a2(0x30a)])[_0x4e19a2(0x25e)](_0x47141c[_0x4e19a2(0x1c6)]);_0x47141c[_0x4e19a2(0x2a5)][_0x4e19a2(0x291)](_0x374649=>_0x5a3c88[_0x4e19a2(0x28f)](_0x374649,_0x4e19a2(0x1f6))),this[_0x4e19a2(0x26a)][_0x4e19a2(0x21b)](_0x17614b),this[_0x4e19a2(0x26a)][_0x4e19a2(0x1e2)](_0x7954d3,_0x47141c);}),this[_0x2b90cf(0x2c1)](_0x597e8a,_0x2b90cf(0x2da),(_0x11b710,_0x45971b,_0x2f652f)=>{const _0x1664b1=_0x2b90cf,_0x2b17f8=this[_0x1664b1(0x26a)][_0x1664b1(0x29d)](_0x45971b);if(!_0x2b17f8)return;const _0x55ef1d=this[_0x1664b1(0x1a3)][_0x1664b1(0x1f0)](_0x2b17f8[_0x1664b1(0x30a)])[_0x1664b1(0x25e)](_0x2b17f8[_0x1664b1(0x1c6)]);_0x2b17f8[_0x1664b1(0x2a5)][_0x1664b1(0x291)](_0x41c697=>_0x55ef1d[_0x1664b1(0x28f)](_0x41c697,_0x1664b1(0x2c8))),this[_0x1664b1(0x26a)][_0x1664b1(0x21b)](_0x45971b),this[_0x1664b1(0x26a)][_0x1664b1(0x1e2)](_0x2f652f,_0x2b17f8);});}async[_0x549e58(0x247)](_0xba540b){const _0x39f4da=_0x549e58;this[_0x39f4da(0x316)][_0x39f4da(0x1f5)][_0x39f4da(0x214)](_0x39f4da(0x2a0))&&this[_0x39f4da(0x316)][_0x39f4da(0x1f5)][_0x39f4da(0x29d)](_0x39f4da(0x2a0))[_0x39f4da(0x238)](),(this[_0x39f4da(0x316)][_0x39f4da(0x1f5)][_0x39f4da(0x29d)](_0xf3132e)[_0x39f4da(0x27f)][_0x39f4da(0x300)](_0x39f4da(0x2b7)),this[_0x39f4da(0x256)][_0x39f4da(0x23b)](_0x39f4da(0x2fe)),this[_0x39f4da(0x256)][_0x39f4da(0x240)](!0x0),await this[_0x39f4da(0x301)]());try{await this[_0x39f4da(0x283)][_0x39f4da(0x1b2)](_0xba540b)[_0x39f4da(0x2fc)](),await this[_0x39f4da(0x249)](_0xba540b),this[_0x39f4da(0x2d0)]('\x20'),await this[_0x39f4da(0x1a3)][_0x39f4da(0x201)](_0xba540b,this[_0x39f4da(0x205)][_0x39f4da(0x278)]),this[_0x39f4da(0x1a3)][_0x39f4da(0x26f)]()&&this[_0x39f4da(0x1e5)]();}catch(_0x1edf7f){this[_0x39f4da(0x256)][_0x39f4da(0x303)]({'errorMessage':_0x4b3662(this[_0x39f4da(0x316)][_0x39f4da(0x197)],_0x39f4da(0x210)),'id':_0xba540b}),this[_0x39f4da(0x2a3)](new _0x4463ae(_0x39f4da(0x20f),this,{'error':_0x1edf7f}));}finally{this[_0x39f4da(0x256)][_0x39f4da(0x211)](),this[_0x39f4da(0x256)][_0x39f4da(0x23b)](_0x39f4da(0x2d4)),this[_0x39f4da(0x256)][_0x39f4da(0x240)](!0x1);}}async[_0x549e58(0x1c1)](){const _0x1def88=_0x549e58,_0x29fdb9=this[_0x1def88(0x283)][_0x1def88(0x31b)](this[_0x1def88(0x26e)](),{'limit':0x1,'sortBy':_0x1def88(0x286)});try{const _0x819eda=await _0x29fdb9[_0x1def88(0x1fd)]();return _0x819eda[_0x1def88(0x251)]?_0x819eda[0x0]['id']:_0x1def88(0x2d8);}catch(_0x547bdb){return this[_0x1def88(0x256)][_0x1def88(0x303)]({'errorMessage':_0x4b3662(this[_0x1def88(0x316)][_0x1def88(0x197)],_0x1def88(0x210)),'id':_0x327016()}),this[_0x1def88(0x2a3)](new _0x4463ae(_0x1def88(0x1ab),this,{'error':_0x547bdb})),this[_0x1def88(0x256)][_0x1def88(0x240)](!0x1),this[_0x1def88(0x256)][_0x1def88(0x1d5)](),null;}}[_0x549e58(0x21a)](_0x171605){const _0x5468f2=_0x549e58;this[_0x5468f2(0x1a3)]['id']===_0x171605&&this[_0x5468f2(0x249)]();}[_0x549e58(0x1e5)](){const _0x4dec69=_0x549e58;this[_0x4dec69(0x1a3)]?.[_0x4dec69(0x20c)](_0x4b3662(this[_0x4dec69(0x316)][_0x4dec69(0x197)],_0x4dec69(0x245)));}async[_0x549e58(0x19d)](){const _0x1b6b38=_0x549e58,_0x52a9eb=this[_0x1b6b38(0x205)][_0x1b6b38(0x2e0)]();this[_0x1b6b38(0x1a3)]?.[_0x1b6b38(0x1b4)](_0x52a9eb),this[_0x1b6b38(0x1e5)]();}[_0x549e58(0x2f9)](){const _0x24e882=_0x549e58;this[_0x24e882(0x1a3)]?.[_0x24e882(0x235)]();}[_0x549e58(0x319)](){const _0x1dc4d9=_0x549e58;this[_0x1dc4d9(0x256)][_0x1dc4d9(0x319)]();}async[_0x549e58(0x24b)](){const _0x271550=_0x549e58;await this[_0x271550(0x249)]();}async[_0x549e58(0x1d2)]({message:_0x2f5c85,attributes:_0x2efcc1}){const _0x2c9b9a=_0x549e58;await this[_0x2c9b9a(0x252)]({'userMessage':_0x2f5c85,'attributes':_0x2efcc1});}[_0x549e58(0x26e)](){const _0x1f8742=_0x549e58,_0x2a0c82=this[_0x1f8742(0x316)][_0x1f8742(0x2ec)][_0x1f8742(0x29d)](_0x1f8742(0x260));if(!_0x2a0c82)throw new _0x4463ae(_0x1f8742(0x272),this);return _0x2a0c82;}async[_0x549e58(0x249)](_0x11751e){const _0x3f293e=_0x549e58;try{this[_0x3f293e(0x256)][_0x3f293e(0x233)](),await this[_0x3f293e(0x241)](_0x11751e);}catch(_0x12213c){this[_0x3f293e(0x256)][_0x3f293e(0x303)]({'errorMessage':_0x4b3662(this[_0x3f293e(0x316)][_0x3f293e(0x197)],_0x3f293e(0x294)),'id':_0x11751e||_0x327016()}),console[_0x3f293e(0x288)](_0x12213c),this[_0x3f293e(0x1a3)]=void 0x0,this[_0x3f293e(0x256)][_0x3f293e(0x1d5)]();}}async[_0x549e58(0x241)](_0x2e21e8){const _0x23468e=_0x549e58;let _0x53e4cc;this[_0x23468e(0x316)][_0x23468e(0x1f5)][_0x23468e(0x214)](_0x23468e(0x2a0))&&this[_0x23468e(0x316)][_0x23468e(0x1f5)][_0x23468e(0x29d)](_0x23468e(0x2a0))[_0x23468e(0x238)](),_0x2e21e8||!this[_0x23468e(0x1a3)]?_0x53e4cc=this[_0x23468e(0x316)][_0x23468e(0x2ec)][_0x23468e(0x29d)](_0x23468e(0x199)):this[_0x23468e(0x256)][_0x23468e(0x215)]&&(_0x53e4cc=this[_0x23468e(0x1a3)][_0x23468e(0x1b7)]['id']),await this[_0x23468e(0x301)]();const _0x1cdb76=this[_0x23468e(0x26e)](),_0x1bf4be=_0x2e21e8||_0x327016();this[_0x23468e(0x1a3)]=new _0x3c92d0({'connector':this[_0x23468e(0x283)],'chatModels':this[_0x23468e(0x2ae)],'selectedModelId':_0x53e4cc,'conversationId':_0x1bf4be,'group':_0x1cdb76,'getEditor':()=>_0x4ee1ac(this[_0x23468e(0x316)]),'isFromHistory':!!_0x2e21e8}),this[_0x23468e(0x1a3)][_0x23468e(0x2c7)](_0x23468e(0x200),_0x23468e(0x1b3))['to'](this),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x25a),(_0x37a61c,_0x37e815)=>{const _0x2001ff=_0x23468e;this[_0x2001ff(0x256)][_0x2001ff(0x26b)](_0x37e815),this[_0x2001ff(0x256)][_0x2001ff(0x1c9)](),this[_0x2001ff(0x256)][_0x2001ff(0x206)](),this[_0x2001ff(0x256)][_0x2001ff(0x2be)](),_0x2e21e8||(this[_0x2001ff(0x256)][_0x2001ff(0x1e0)](),this[_0x2001ff(0x1e5)]());}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1fe),(_0x4d0709,_0x161ee7)=>{const _0x582e4d=_0x23468e;this[_0x582e4d(0x256)][_0x582e4d(0x30d)](_0x161ee7[_0x582e4d(0x2e3)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1d3),(_0x4419b2,_0x12fc01)=>{const _0xa3d7e0=_0x23468e;this[_0xa3d7e0(0x256)][_0xa3d7e0(0x277)](_0x12fc01);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x209),()=>{const _0xc57575=_0x23468e,_0x54ed27=this[_0xc57575(0x256)][_0xc57575(0x28c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0xc57575(0x256)][_0xc57575(0x1cd)](_0x54ed27);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1bf),()=>{const _0x23e538=_0x23468e,_0x2f1c09=this[_0x23e538(0x256)][_0x23e538(0x28c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x23e538(0x256)][_0x23e538(0x1cd)](_0x2f1c09);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x263),(_0x38cdc0,_0x5d646d)=>{const _0x409644=_0x23468e;this[_0x409644(0x256)][_0x409644(0x22b)](_0x5d646d,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2a6),(_0x17d5a5,_0x5c694b)=>{const _0x58aef4=_0x23468e;this[_0x58aef4(0x256)][_0x58aef4(0x22b)](_0x5c694b,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1b3),()=>{const _0x4f0867=_0x23468e;this[_0x4f0867(0x256)][_0x4f0867(0x1b9)]();}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2c3),async()=>{const _0x3c3d16=_0x23468e;await this[_0x3c3d16(0x256)][_0x3c3d16(0x225)]();}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1e8),(_0x2d24e7,_0xaa2970)=>{const _0x9dcbd5=_0x23468e;this[_0x9dcbd5(0x256)][_0x9dcbd5(0x2d1)](_0xaa2970['id']);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x26c),(_0x3da819,_0x39770d,_0xa3b591)=>{const _0x5e6cde=_0x23468e;this[_0x5e6cde(0x2d0)](_0x39770d,_0xa3b591);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2cb),(_0xe751d,_0xdf0653)=>{const _0x34aff6=_0x23468e;_0x34aff6(0x29c)===_0xdf0653[_0x34aff6(0x195)]?this[_0x34aff6(0x256)][_0x34aff6(0x1bb)](_0xdf0653):this[_0x34aff6(0x256)][_0x34aff6(0x1ce)](_0xdf0653);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x237),async(_0x122261,_0x162478)=>{const _0x87b7e7=_0x23468e;await this[_0x87b7e7(0x1ee)]({'reply':_0x162478});}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x254),(_0x1f20e0,{reply:_0x154d3e,index:_0x28ab83,state:_0x4d35c5})=>{const _0x24cde8=_0x23468e;this[_0x24cde8(0x256)][_0x24cde8(0x2ef)]({'id':_0x154d3e['id'],'index':_0x28ab83,'state':_0x4d35c5}),this[_0x24cde8(0x1f7)]?.[_0x24cde8(0x1c6)][_0x24cde8(0x299)](_0x154d3e['id'])&&this[_0x24cde8(0x1f7)]?.[_0x24cde8(0x2d6)]==_0x28ab83&&this[_0x24cde8(0x2b3)]?.[_0x24cde8(0x25b)](_0x4d35c5);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x20a),(_0x265087,_0x5cb021)=>{const _0x35c2a9=_0x23468e;if(this[_0x35c2a9(0x256)][_0x35c2a9(0x1d4)](_0x5cb021[_0x35c2a9(0x1ea)],_0x5cb021[_0x35c2a9(0x285)]),_0x35c2a9(0x2f3)===_0x5cb021[_0x35c2a9(0x1ea)][_0x35c2a9(0x195)]){const _0x12d95f=[..._0x4ee1ac(this[_0x35c2a9(0x316)])[_0x35c2a9(0x23c)][_0x35c2a9(0x219)][_0x35c2a9(0x2f3)][_0x35c2a9(0x1a5)]()];this[_0x35c2a9(0x205)][_0x35c2a9(0x1cf)](_0x12d95f,_0x35c2a9(0x2bd)+this[_0x35c2a9(0x1a3)]?.['id']);}}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2c9),(_0x3ba5f8,_0x3da658)=>{const _0x284e4e=_0x23468e;this[_0x284e4e(0x256)][_0x284e4e(0x298)](_0x3da658[_0x284e4e(0x1df)]),_0x284e4e(0x198)==_0x3da658[_0x284e4e(0x1df)]&&this[_0x284e4e(0x2f9)](),_0x284e4e(0x2f3)===_0x3da658[_0x284e4e(0x195)]&&this[_0x284e4e(0x205)][_0x284e4e(0x265)](_0x284e4e(0x2bd)+this[_0x284e4e(0x1a3)]?.['id']);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1c2),(_0x17c800,_0x54af4f)=>{const _0x58f94e=_0x23468e;this[_0x58f94e(0x256)][_0x58f94e(0x1af)](_0x54af4f[_0x58f94e(0x1ea)][_0x58f94e(0x1df)],_0x54af4f[_0x58f94e(0x285)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x29f),(_0x4d42c9,_0x10b24b)=>{const _0x76caa2=_0x23468e;this[_0x76caa2(0x256)][_0x76caa2(0x2ab)](_0x10b24b[_0x76caa2(0x2e5)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1b1),(_0x175ba0,_0x2779fb)=>{const _0x4ff4f6=_0x23468e;this[_0x4ff4f6(0x256)][_0x4ff4f6(0x2fa)](_0x2779fb[_0x4ff4f6(0x1eb)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1a7),(_0x544fcb,_0x58e969)=>{const _0x2d25f7=_0x23468e;this[_0x2d25f7(0x256)][_0x2d25f7(0x317)](_0x58e969[_0x2d25f7(0x1f1)],_0x58e969[_0x2d25f7(0x2d2)],_0x58e969[_0x2d25f7(0x2cd)],_0x58e969[_0x2d25f7(0x289)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x315),(_0x10bce1,_0x2e36cb)=>{const _0x3f1dcb=_0x23468e;this[_0x3f1dcb(0x256)][_0x3f1dcb(0x309)](_0x2e36cb[_0x3f1dcb(0x1f1)],_0x2e36cb[_0x3f1dcb(0x253)],_0x2e36cb[_0x3f1dcb(0x2b6)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x22c),(_0x182543,_0x1ced36)=>{const _0x19438f=_0x23468e;this[_0x19438f(0x256)][_0x19438f(0x2e6)](_0x1ced36);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x242),async(_0x5c28a9,_0x2c567e)=>{const _0x5a8bd6=_0x23468e,_0x4e8f28=(await this[_0x5a8bd6(0x2ae)][_0x5a8bd6(0x1ba)]())[_0x5a8bd6(0x30b)](_0x2fc143=>_0x2fc143['id']===_0x2c567e[_0x5a8bd6(0x1b7)]?.['id'])||null;this[_0x5a8bd6(0x256)][_0x5a8bd6(0x2aa)](_0x4e8f28,_0x2c567e[_0x5a8bd6(0x23f)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x288),(_0x528136,{error:_0x3350dc,interactionId:_0x5af8d9,fileName:_0x21e311,url:_0x3e6167,sourceId:_0x206f11,sourceLabel:_0x414121})=>{const _0x5b103e=_0x23468e,_0x3042da=_0x5af8d9?_0x5af8d9+':'+_0x327016():_0x327016();_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1db))?this[_0x5b103e(0x256)][_0x5b103e(0x21e)]({'staticMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x1c5)),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1ab))||_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2e4))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x294)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1fb))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x24d),_0x21e311),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2ce))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x2eb),_0x3e6167),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2f6))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x27d)),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x310))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x244)),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x19b))?(_0x206f11&&this[_0x5b103e(0x256)][_0x5b103e(0x1b6)](_0x206f11),this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x2b2),_0x414121||_0x5b103e(0x2d2)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x20b))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x22a)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x213))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x1d9)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1ae))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x193)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2b4))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x29b)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x22d))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x257)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x314))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x290)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x307)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc));}),await this[_0x23468e(0x1a3)][_0x23468e(0x22f)](this[_0x23468e(0x316)][_0x23468e(0x2ec)][_0x23468e(0x29d)](_0x23468e(0x21d))),_0x2e21e8||await this[_0x23468e(0x1a3)][_0x23468e(0x203)]();}async[_0x549e58(0x252)]({userMessage:_0x466e6f,attributes:_0x21b2c2}){const _0x186a92=_0x549e58;if(!this[_0x186a92(0x1a3)])throw new _0x4463ae(_0x186a92(0x2f4));if(this[_0x186a92(0x1a3)][_0x186a92(0x262)]()){const _0x4b322e=await this[_0x186a92(0x205)][_0x186a92(0x231)]();await this[_0x186a92(0x1a3)][_0x186a92(0x1da)](_0x4b322e);}this[_0x186a92(0x1a3)]['id']&&this[_0x186a92(0x1a3)][_0x186a92(0x1e9)]&&await this[_0x186a92(0x1a3)][_0x186a92(0x2f2)]({'userMessage':_0x466e6f,'attributes':_0x21b2c2});}[_0x549e58(0x1e6)](){const _0x52b855=_0x549e58;console[_0x52b855(0x268)](_0x52b855(0x264));}[_0x549e58(0x2ea)](_0x46814e){const _0xc652c=_0x549e58;this[_0xc652c(0x256)][_0xc652c(0x1fa)](_0x46814e);}[_0x549e58(0x2a3)](_0x199568){const _0x5b80b9=_0x549e58;_0x5d0d75(_0x199568[_0x5b80b9(0x1bd)]);}[_0x549e58(0x24f)](_0x182cd4){const _0x2d4f67=_0x549e58;this[_0x2d4f67(0x1a3)]?.[_0x2d4f67(0x2a8)](_0x182cd4);}[_0x549e58(0x227)](){const _0x29c436=_0x549e58;this[_0x29c436(0x1a3)]?.[_0x29c436(0x229)]();}[_0x549e58(0x1c0)](){const _0x6cfd80=_0x549e58;this[_0x6cfd80(0x1a3)]?.[_0x6cfd80(0x28d)]();}[_0x549e58(0x282)](_0x4055e1){const _0x210623=_0x549e58,[_0x37c9e0,_0x5729bc]=_0x4055e1[_0x210623(0x19f)](':'),_0x14c550=this[_0x210623(0x1a3)][_0x210623(0x1f0)](_0x37c9e0),_0x4b5f51=_0x14c550[_0x210623(0x25e)](_0x5729bc);return{'interaction':_0x14c550,'reply':_0x4b5f51};}[_0x549e58(0x2db)](_0x4918b7,_0x281cfa=!0x1){const _0x557bb8=_0x549e58,_0x3c7b74=_0x4ee1ac(this[_0x557bb8(0x316)]),_0x44ff6c={'target':_0x3c7b74[_0x557bb8(0x1f3)][_0x557bb8(0x27f)][_0x557bb8(0x2ee)][_0x557bb8(0x23a)](_0x3c7b74[_0x557bb8(0x1f3)][_0x557bb8(0x1a1)][_0x557bb8(0x1f9)](_0x4918b7)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x281cfa};_0x281cfa&&(_0x44ff6c[_0x557bb8(0x2fd)]=!0x0),_0x2f1661(_0x44ff6c);}[_0x549e58(0x2d0)](_0x45d587,_0x3dee12=!0x1){const _0x40562b=_0x549e58;this[_0x40562b(0x256)][_0x40562b(0x26c)](_0x45d587||_0x4b3662(this[_0x40562b(0x316)][_0x40562b(0x197)],_0x40562b(0x2cf)),_0x3dee12);}async[_0x549e58(0x1ee)]({reply:_0x2a476a,renderingStrategy:_0x48f4bd}){const _0x9bd327=_0x549e58,{id:_0x120f15,interactionId:_0x4ba276,isDone:_0x32c155,type:_0x5629bb,parsedContent:_0x153661}=_0x2a476a,_0x488fb0=_0x4ba276+':'+_0x120f15;if(_0x9bd327(0x1ef)===_0x5629bb){const _0xc5012f=_0x2a476a[_0x9bd327(0x306)]({'showDiff':this[_0x9bd327(0x256)][_0x9bd327(0x1dc)]});await this[_0x9bd327(0x256)][_0x9bd327(0x2c0)]({'id':_0x488fb0,'parts':_0xc5012f,'renderingStrategy':_0x48f4bd,'isDone':_0x32c155});}else _0x9bd327(0x29c)===_0x5629bb&&await this[_0x9bd327(0x256)][_0x9bd327(0x2a9)]({'id':_0x488fb0,'parsedContent':_0x153661,'renderingStrategy':_0x48f4bd,'isDone':_0x32c155});_0x32c155&&_0x2a476a[_0x9bd327(0x279)][_0x9bd327(0x251)]>0x0&&this[_0x9bd327(0x256)][_0x9bd327(0x2e7)](_0x488fb0,_0x2a476a[_0x9bd327(0x279)]);}async[_0x549e58(0x301)](){const _0x55b142=_0x549e58,_0x2b02a0=this[_0x55b142(0x1a3)]?.[_0x55b142(0x284)];_0x2b02a0&&(_0x2b02a0[_0x55b142(0x2ed)](),this[_0x55b142(0x256)][_0x55b142(0x1f2)](_0x2b02a0));}async[_0x549e58(0x228)](){const _0x333cf2=_0x549e58,_0x15e8b5=this[_0x333cf2(0x1a3)]?.[_0x333cf2(0x284)];if(_0x15e8b5){for await(const _0x2722ec of _0x15e8b5[_0x333cf2(0x312)])await this[_0x333cf2(0x1ee)]({'reply':_0x2722ec,'renderingStrategy':_0x333cf2(0x2fe)});}}[_0x549e58(0x29a)](_0x1d2f58){const _0x52bda4=_0x549e58,_0x267ea1={'positiveCount':_0x1d2f58[_0x52bda4(0x1f8)][_0x52bda4(0x275)](_0x5709c7=>_0x52bda4(0x2c8)===_0x5709c7[_0x52bda4(0x2d7)])[_0x52bda4(0x251)],'totalCount':_0x1d2f58[_0x52bda4(0x1f8)][_0x52bda4(0x251)],'modificationId':_0x1d2f58['id']},_0x3198d5=this[_0x52bda4(0x1a3)][_0x52bda4(0x1f0)](_0x1d2f58[_0x52bda4(0x30a)])[_0x52bda4(0x30e)];_0x3198d5&&this[_0x52bda4(0x283)][_0x52bda4(0x287)](this[_0x52bda4(0x1a3)]['id'],_0x3198d5,_0x267ea1);}[_0x549e58(0x1ed)](_0x397437){const _0x1bef6f=_0x549e58;let _0x5a30ee=null,_0x1caacd=null;this['on'](_0x1bef6f(0x200),(_0x358507,_0x511a8f,_0x2081b8)=>{const _0x17ca84=_0x1bef6f;_0x2081b8['id']!==_0x5a30ee&&(_0x5a30ee=_0x2081b8['id'],_0x1caacd=this[_0x17ca84(0x250)](_0x2081b8)),_0x397437(_0x511a8f,_0x1caacd);});}[_0x549e58(0x250)](_0x2324f6){const _0x3cc9f6=_0x549e58,_0x24573f=this[_0x3cc9f6(0x256)],_0xf1c82d=()=>{const _0x49ca50=_0x3cc9f6;_0x2324f6[_0x49ca50(0x25c)](),_0x2324f6[_0x49ca50(0x220)](),_0x24573f[_0x49ca50(0x30f)]();},_0x3ffeaa=()=>{const _0xcd9475=_0x3cc9f6;_0x2324f6[_0xcd9475(0x243)]&&(_0x2324f6[_0xcd9475(0x243)][_0xcd9475(0x1a6)](),_0x2324f6[_0xcd9475(0x243)]=void 0x0);};return{'insertTextReply':(_0x17d826,_0x234a4d)=>{const _0x57c9a5=_0x3cc9f6;_0x3ffeaa(),_0xf1c82d();const _0x316734=_0x2324f6[_0x57c9a5(0x243)]=_0x2324f6[_0x57c9a5(0x224)]({'type':_0x57c9a5(0x29c),'interactionId':_0x2324f6['id'],'content':_0x17d826,'id':_0x234a4d||_0x327016()});return _0x3ffeaa(),_0x316734;},'insertCustomElement':async(_0x5e1ae6,_0x40e29b)=>(_0x3ffeaa(),_0xf1c82d(),_0x24573f[_0x3cc9f6(0x1c8)](_0x5e1ae6,_0x40e29b||_0x327016())),'setLoadingMessage':_0x2bd119=>{const _0x2a2e48=_0x3cc9f6;_0x24573f[_0x2a2e48(0x1cd)](_0x2bd119);},'clearLoadingMessage':()=>{const _0x1f891c=_0x3cc9f6;_0x24573f[_0x1f891c(0x30f)]();}};}}
23
+ const _0xd55167=_0x130b;(function(_0x544136,_0x16e562){const _0x61a648=_0x130b,_0x4cc10=_0x544136();while(!![]){try{const _0x5bd4ff=parseInt(_0x61a648(0x27a))/0x1+parseInt(_0x61a648(0x128))/0x2*(parseInt(_0x61a648(0x1a7))/0x3)+-parseInt(_0x61a648(0x130))/0x4*(-parseInt(_0x61a648(0x257))/0x5)+parseInt(_0x61a648(0x23e))/0x6+-parseInt(_0x61a648(0x123))/0x7+-parseInt(_0x61a648(0x1a8))/0x8*(parseInt(_0x61a648(0x13d))/0x9)+parseInt(_0x61a648(0x194))/0xa*(-parseInt(_0x61a648(0x207))/0xb);if(_0x5bd4ff===_0x16e562)break;else _0x4cc10['push'](_0x4cc10['shift']());}catch(_0x7e4c6b){_0x4cc10['push'](_0x4cc10['shift']());}}}(_0x6326,0x5a791));import{ContextPlugin as _0x2a6f07,Editor as _0x25028b}from'ckeditor5/src/core.js';function _0x130b(_0x16db60,_0x4e0e9e){const _0x632600=_0x6326();return _0x130b=function(_0x130b09,_0x3224a2){_0x130b09=_0x130b09-0xee;let _0x216d8d=_0x632600[_0x130b09];return _0x216d8d;},_0x130b(_0x16db60,_0x4e0e9e);}import{BodyCollection as _0x652687}from'ckeditor5/src/ui.js';import{CKEditorError as _0x530add,logError as _0x59170a,scrollViewportToShowTarget as _0x535cd8,uid as _0x14288b}from'ckeditor5/src/utils.js';import{AIConnector as _0x3a059d}from'../aicore/aiconnector.js';import{AITabs as _0x216e50}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5e8d16}from'./model/aichatconversation.js';import{getTranslation as _0x2a2ee7}from'../aicore/utils/common-translations.js';import{AIModels as _0x487057}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x431b31}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x19b14b,DATA_ID_MODEL_ATTRIBUTE as _0x35bef5}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2f1bdf,getOperationsFromReply as _0x1deed5}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xa6396a,getMinimalSelection as _0x2aa2f8}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x53e345,_DetachOperation as _0x393399}from'ckeditor5/src/engine.js';import{findOne as _0x5955b6,getAttribute as _0xfcd8bd,serialize as _0x5921ad,Document as _0x10dcfc,findByAttribute as _0x40dbf0}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x2a6f07{[_0xd55167(0x140)];[_0xd55167(0x26a)];[_0xd55167(0x1b2)];[_0xd55167(0x276)];[_0xd55167(0x1df)];[_0xd55167(0x163)]=new Map();[_0xd55167(0x24a)]=null;[_0xd55167(0x101)];static get[_0xd55167(0x186)](){return[_0x3a059d,_0x19b14b];}static get[_0xd55167(0x14d)](){const _0x1e970a=_0xd55167;return _0x1e970a(0x24d);}static get[_0xd55167(0x210)](){return!0x0;}static get[_0xd55167(0x109)](){return!0x0;}[_0xd55167(0x23f)](){const _0x103c9a=_0xd55167;this[_0x103c9a(0x101)]=new _0x652687(this[_0x103c9a(0x16b)][_0x103c9a(0x1cc)]),this[_0x103c9a(0x101)][_0x103c9a(0x12e)](),this[_0x103c9a(0x26a)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x240)),this[_0x103c9a(0x1b2)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x173)),this[_0x103c9a(0x140)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x148)),this[_0x103c9a(0x276)]=new _0x487057({'connector':this[_0x103c9a(0x26a)],'config':this[_0x103c9a(0x16b)][_0x103c9a(0x13c)][_0x103c9a(0x1fc)](_0x103c9a(0x127)),'locale':this[_0x103c9a(0x16b)][_0x103c9a(0x1cc)]});const _0x5f59b9=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x219));this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x21c),()=>{const _0x9fa2d0=_0x103c9a;this[_0x9fa2d0(0x20c)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1ea),(_0x30202d,_0x162a1b)=>{const _0x1ad690=_0x103c9a;this[_0x1ad690(0x11b)]({'userMessage':_0x162a1b});}),this[_0x103c9a(0x218)](_0x5f59b9,_0x103c9a(0x232),(_0x314263,_0x5cd489)=>{const _0x2997cb=_0x103c9a;this[_0x2997cb(0x25a)](_0x5cd489);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1fb),()=>{const _0x39b49=_0x103c9a;_0x5f59b9[_0x39b49(0x278)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x139),async()=>{const _0x808e46=_0x103c9a;await this[_0x808e46(0x106)](),await this[_0x808e46(0x1ba)](),this[_0x808e46(0x201)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x15d),()=>{const _0x2f2d5a=_0x103c9a;this[_0x2f2d5a(0x100)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x161),(_0x38f5f6,_0xc364e5)=>{const _0x4f92b2=_0x103c9a;this[_0x4f92b2(0x122)]?.[_0x4f92b2(0x22a)](Array[_0x4f92b2(0x126)](_0xc364e5));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x174),(_0x24db01,_0x19d2f2)=>{const _0x4633b1=_0x103c9a;this[_0x4633b1(0x122)]?.[_0x4633b1(0x174)](_0x19d2f2);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x11d),(_0x348215,_0x5444d2)=>{const _0x2abbde=_0x103c9a;_0x5444d2[_0x2abbde(0x204)](this[_0x2abbde(0x16b)]);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x274),(_0x284aba,_0x256caf)=>{const _0x4b9eb4=_0x103c9a;this[_0x4b9eb4(0x122)]?.[_0x4b9eb4(0x274)](_0x256caf[_0x4b9eb4(0x19e)],_0x256caf[_0x4b9eb4(0x258)]);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x154),(_0x28225f,_0x1104f9)=>{const _0x533de1=_0x103c9a;this[_0x533de1(0x1b1)](_0x1104f9);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x18c),(_0x539c27,_0x1152d7)=>{const _0x309921=_0x103c9a;this[_0x309921(0x122)]?.[_0x309921(0x18c)](_0x1152d7[_0x309921(0x137)],_0x1152d7[_0x309921(0x1ec)],_0x1152d7[_0x309921(0x14c)]);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1b9),()=>{const _0xf9c305=_0x103c9a;this[_0xf9c305(0x1aa)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x12a),()=>{const _0x7d6a45=_0x103c9a;this[_0x7d6a45(0x22b)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x102),(_0x4b4112,_0xf35d06)=>{const _0x1bfc87=_0x103c9a;this[_0x1bfc87(0x122)]?.[_0x1bfc87(0x1a5)](_0xf35d06);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0xf8),(_0x1bd8a,{replyId:_0x8b86dd})=>{const _0x2b44ca=_0x103c9a;console[_0x2b44ca(0x220)](_0x2b44ca(0x1a6),_0x8b86dd);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x143),(_0x3d5bcd,{replyId:_0x111f5c})=>{const _0xa39884=_0x103c9a;console[_0xa39884(0x220)](_0xa39884(0x12f),_0x111f5c);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x244),(_0x4b66a6,_0x5da662)=>{const _0x252a57=_0x103c9a;this[_0x252a57(0x152)](_0x5da662);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1bd),(_0x536606,{replyId:_0xb6ca02,partIndex:_0x2f2719})=>{const _0x1837c9=_0x103c9a;this[_0x1837c9(0x1bf)]=this[_0x1837c9(0x1b2)][_0x1837c9(0x1d2)],this[_0x1837c9(0x224)](_0xb6ca02,_0x2f2719);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x21f),(_0x202fd6,{replyId:_0x4c4a44,partIndex:_0x446ee6})=>{const _0x81458c=_0x103c9a,_0x246534=this[_0x81458c(0x119)](_0x4c4a44,_0x446ee6);_0x246534&&_0x81458c(0x18a)!=_0x246534[_0x81458c(0x253)][_0x81458c(0x110)][_0x81458c(0x132)]&&this[_0x81458c(0x140)][_0x81458c(0x21a)]([_0x246534[_0x81458c(0x253)]],_0x81458c(0xf0));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x183),()=>{const _0x57cff4=_0x103c9a;this[_0x57cff4(0x140)][_0x57cff4(0x21d)](_0x57cff4(0xf0));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1f5),(_0x1b79cf,_0x1443a9)=>{const _0x19aed4=_0x103c9a;this[_0x19aed4(0x140)][_0x19aed4(0x21d)](_0x19aed4(0xf0)),this[_0x19aed4(0x144)](_0x1443a9);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x275),async(_0x3e3be9,{replyId:_0x32341e,showDiff:_0x543eca})=>{const _0x326c03=_0x103c9a,{reply:_0x240111}=this[_0x326c03(0x1fe)](_0x32341e),_0x21687b=_0x240111[_0x326c03(0x1a4)]({'showDiff':_0x543eca});await this[_0x326c03(0x1b2)][_0x326c03(0x214)]({'id':_0x240111['id'],'parts':_0x21687b,'renderingStrategy':_0x326c03(0xef)});}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x12d),(_0x51d1dd,{replyId:_0x19d589,partIndex:_0xe72c29})=>{const _0x5e5a08=_0x103c9a;this[_0x5e5a08(0xf7)]({'replyId':_0x19d589,'partIndex':_0xe72c29}),this[_0x5e5a08(0x140)][_0x5e5a08(0x21d)](_0x5e5a08(0xf0));}),this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x168)](_0x103c9a(0x26c))&&(this[_0x103c9a(0x1df)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x26c)),this[_0x103c9a(0x157)](_0x103c9a(0x1bf),!0x1),this[_0x103c9a(0x1df)][_0x103c9a(0x19f)](_0x103c9a(0x1d2))['to'](this,_0x103c9a(0x1bf)),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x275),()=>{const _0x59a539=_0x103c9a,{replyId:_0x17485d,partIndex:_0x3c4585}=this[_0x59a539(0x24a)];this[_0x59a539(0x1bf)]=!this[_0x59a539(0x1bf)];const {reply:_0x1f1385}=this[_0x59a539(0x1fe)](_0x17485d),_0x1db44c=_0x1f1385[_0x59a539(0x1a4)]({'showDiff':this[_0x59a539(0x1bf)],'groupIndex':_0x3c4585});this[_0x59a539(0x1df)][_0x59a539(0xfe)]({'part':_0x1db44c[0x0],'renderingStrategy':_0x59a539(0xef),'keepErrors':!0x0});}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x1f5),()=>{const _0x320ca5=_0x103c9a,{replyId:_0x275655,partIndex:_0x3f3c7e}=this[_0x320ca5(0x24a)];this[_0x320ca5(0x144)]({'replyId':_0x275655,'partIndex':_0x3f3c7e}),this[_0x320ca5(0x1df)][_0x320ca5(0x1c2)](_0x320ca5(0x238));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x244),()=>{const _0x4b8f0f=_0x103c9a,{replyId:_0x3010fc,partIndex:_0xe7f693}=this[_0x4b8f0f(0x24a)];this[_0x4b8f0f(0x152)]({'replyId':_0x3010fc,'partIndex':_0xe7f693}),this[_0x4b8f0f(0x1df)][_0x4b8f0f(0x1c2)](_0x4b8f0f(0x238));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x12d),()=>{const _0x21c601=_0x103c9a,{replyId:_0x57547f,partIndex:_0x3a6683}=this[_0x21c601(0x24a)];this[_0x21c601(0xf7)]({'replyId':_0x57547f,'partIndex':_0x3a6683}),this[_0x21c601(0x1df)][_0x21c601(0x1c2)](_0x21c601(0x266));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x216),()=>{const _0x40812d=_0x103c9a,{replyId:_0x43e0a7,partIndex:_0x26a3d1}=this[_0x40812d(0x24a)],_0x1788d5=this[_0x40812d(0x175)](_0x43e0a7,_0x26a3d1,_0x40812d(0x182));null!==_0x1788d5&&this[_0x40812d(0x224)](_0x43e0a7,_0x1788d5);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0xf5),()=>{const _0x500692=_0x103c9a,{replyId:_0x50cb35,partIndex:_0x291de8}=this[_0x500692(0x24a)],_0x400efa=this[_0x500692(0x175)](_0x50cb35,_0x291de8,_0x500692(0x1f9));null!==_0x400efa&&this[_0x500692(0x224)](_0x50cb35,_0x400efa);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x176),(_0x2f604d,{id:_0x97a777})=>{const _0x58e909=_0x103c9a;if(_0x58e909(0x112)!==_0x97a777)return;const {replyId:_0x326781,partIndex:_0x42440c}=this[_0x58e909(0x24a)];this[_0x58e909(0x24a)]=null,this[_0x58e909(0x1b2)][_0x58e909(0x212)]({'id':_0x326781,'index':_0x42440c,'isActive':!0x1});}));}async[_0xd55167(0x142)](){const _0x4a065b=_0xd55167;this[_0x4a065b(0x16b)]instanceof _0x25028b?this[_0x4a065b(0x19c)](this[_0x4a065b(0x16b)]):this[_0x4a065b(0x218)](this[_0x4a065b(0x16b)][_0x4a065b(0xfc)],_0x4a065b(0x10c),(_0x3736fb,_0x431045)=>{const _0x408798=_0x4a065b;_0x431045['on'](_0x408798(0x116),()=>{const _0x3765c8=_0x408798;this[_0x3765c8(0x19c)](_0x431045);});});const _0x4fcbc8=this[_0x4a065b(0x16b)][_0x4a065b(0x13c)][_0x4a065b(0x1fc)](_0x4a065b(0x221));let _0x576a17=_0x4fcbc8;if(_0x4a065b(0x150)!=_0x4fcbc8||(_0x576a17=await this[_0x4a065b(0x20f)](),_0x576a17))return _0x4a065b(0x145)==_0x576a17?this[_0x4a065b(0x20c)]():this[_0x4a065b(0x1b3)](_0x576a17);}async[_0xd55167(0xf1)](){const _0x4f5064=_0xd55167;return await this[_0x4f5064(0x106)](),this[_0x4f5064(0x101)][_0x4f5064(0x230)](),super[_0x4f5064(0xf1)]();}[_0xd55167(0x152)](_0x3f3918){const _0x5309d0=_0xd55167,_0x542515=_0x431b31(this[_0x5309d0(0x16b)]);if(!_0x542515[_0x5309d0(0x164)][_0x5309d0(0x168)](_0x5309d0(0x1cf)))throw new _0x530add(_0x5309d0(0x23d),null);const _0x4980c5=this[_0x5309d0(0x16b)][_0x5309d0(0x164)][_0x5309d0(0x1fc)](_0x5309d0(0x1f7)),{reply:_0x27bc87,interaction:_0x451488}=this[_0x5309d0(0x1fe)](_0x3f3918[_0x5309d0(0x10f)]),_0x4f5bf=this[_0x5309d0(0x119)](_0x3f3918[_0x5309d0(0x10f)],_0x3f3918[_0x5309d0(0x120)]),_0x3ed143=void 0x0!==_0x3f3918[_0x5309d0(0x120)]?[_0x27bc87[_0x5309d0(0x21b)][_0x3f3918[_0x5309d0(0x120)]]]:_0x27bc87[_0x5309d0(0x21b)][_0x5309d0(0x153)](_0x566b8c=>_0x5309d0(0x227)==_0x566b8c[_0x5309d0(0x267)]),_0x339639=_0x3ed143[_0x5309d0(0x160)](_0x2f436b=>_0x27bc87[_0x5309d0(0x21b)][_0x5309d0(0x1ae)](_0x2f436b));if(!_0x4f5bf||_0x5309d0(0x18a)==_0x4f5bf[_0x5309d0(0x253)][_0x5309d0(0x110)][_0x5309d0(0x132)])return void _0x339639[_0x5309d0(0x22c)](_0x526558=>_0x27bc87[_0x5309d0(0x26f)](_0x526558,_0x5309d0(0x252)));_0x339639[_0x5309d0(0x22c)](_0x109d85=>_0x27bc87[_0x5309d0(0x26f)](_0x109d85,_0x5309d0(0x238)));const _0x4766e0=_0x1deed5({'editor':_0x542515,'reply':_0x27bc87,'interaction':_0x451488,'groups':_0x3ed143,'transform':!0x0,'documentCompare':_0x4980c5,'documentCompareOptions':{'anchor':_0x5309d0(0x131),'markDeletions':!0x0}});let _0x113282;_0x4f5bf&&this[_0x5309d0(0x1a3)](_0x4f5bf[_0x5309d0(0x253)]),_0x542515[_0x5309d0(0x113)][_0x5309d0(0x1d1)](_0x332a23=>{const _0x214aa8=_0x5309d0;_0x113282=_0x332a23[_0x214aa8(0x279)],_0x542515[_0x214aa8(0x164)][_0x214aa8(0x1fc)](_0x214aa8(0x104))[_0x214aa8(0x115)](_0x4766e0),this[_0x214aa8(0x140)][_0x214aa8(0x21d)](_0x214aa8(0xf0));}),this[_0x5309d0(0x163)][_0x5309d0(0x157)](_0x113282,{'interactionId':_0x451488['id'],'replyId':_0x27bc87['id'],'indexes':_0x339639[_0x5309d0(0x165)]()}),this[_0x5309d0(0x22d)](_0x27bc87);}[_0xd55167(0x144)](_0x3e2f8f){const _0x4acb7c=_0xd55167,_0x2ec4c0=_0x431b31(this[_0x4acb7c(0x16b)]),_0x1d450b=this[_0x4acb7c(0x16b)][_0x4acb7c(0x164)][_0x4acb7c(0x1fc)](_0x19b14b),{reply:_0x4de9f2,interaction:_0x369ca1}=this[_0x4acb7c(0x1fe)](_0x3e2f8f[_0x4acb7c(0x10f)]),_0x1aa3c1=this[_0x4acb7c(0x119)](_0x3e2f8f[_0x4acb7c(0x10f)],_0x3e2f8f[_0x4acb7c(0x120)]),_0x59039e=void 0x0!==_0x3e2f8f[_0x4acb7c(0x120)]?[_0x4de9f2[_0x4acb7c(0x21b)][_0x3e2f8f[_0x4acb7c(0x120)]]]:_0x4de9f2[_0x4acb7c(0x21b)][_0x4acb7c(0x153)](_0x251b6a=>_0x4acb7c(0x227)==_0x251b6a[_0x4acb7c(0x267)]),_0x5cb058=_0x59039e[_0x4acb7c(0x160)](_0x33719e=>_0x4de9f2[_0x4acb7c(0x21b)][_0x4acb7c(0x1ae)](_0x33719e));if(!_0x1aa3c1||_0x4acb7c(0x18a)==_0x1aa3c1[_0x4acb7c(0x253)][_0x4acb7c(0x110)][_0x4acb7c(0x132)])return void _0x5cb058[_0x4acb7c(0x22c)](_0x549f8b=>_0x4de9f2[_0x4acb7c(0x26f)](_0x549f8b,_0x4acb7c(0x252)));_0x5cb058[_0x4acb7c(0x22c)](_0x3ae4c5=>_0x4de9f2[_0x4acb7c(0x26f)](_0x3ae4c5,_0x4acb7c(0x238)));const _0x421d73=_0x1deed5({'editor':_0x2ec4c0,'reply':_0x4de9f2,'interaction':_0x369ca1,'groups':_0x59039e,'transform':!0x0,'documentCompare':_0x1d450b,'documentCompareOptions':{'anchor':_0x4acb7c(0x131),'markDeletions':!0x1}});let _0x552050;_0x1aa3c1&&this[_0x4acb7c(0x1a3)](_0x1aa3c1[_0x4acb7c(0x253)]),_0x2ec4c0[_0x4acb7c(0x113)][_0x4acb7c(0x1d1)](_0x5e0086=>{const _0x2f6174=_0x4acb7c;_0x552050=_0x5e0086[_0x2f6174(0x279)];for(const _0x571b06 of _0x421d73)_0x571b06[_0x2f6174(0x24f)]=_0x2ec4c0[_0x2f6174(0x113)][_0x2f6174(0x14b)][_0x2f6174(0x193)],_0x2f1bdf(_0x2ec4c0,_0x571b06),_0x5e0086[_0x2f6174(0x279)][_0x2f6174(0x105)](_0x571b06),_0x2ec4c0[_0x2f6174(0x113)][_0x2f6174(0x268)](_0x571b06);}),this[_0x4acb7c(0x163)][_0x4acb7c(0x157)](_0x552050,{'interactionId':_0x369ca1['id'],'replyId':_0x4de9f2['id'],'indexes':_0x5cb058[_0x4acb7c(0x165)]()}),this[_0x4acb7c(0x22d)](_0x4de9f2);}[_0xd55167(0xf7)](_0xa7f46){const _0x598f10=_0xd55167,{reply:_0x142262}=this[_0x598f10(0x1fe)](_0xa7f46[_0x598f10(0x10f)]);_0x142262[_0x598f10(0x26f)](_0xa7f46[_0x598f10(0x120)],_0x598f10(0x266));}[_0xd55167(0x224)](_0x3e5373,_0x54128d){const _0x26b496=_0xd55167;if(!this[_0x26b496(0x1df)])return;const {reply:_0x59786e}=this[_0x26b496(0x1fe)](_0x3e5373),_0x775186=_0x59786e[_0x26b496(0x1a4)]({'showDiff':this[_0x26b496(0x1bf)]});let _0x153f51,_0x2eb6ad;if(void 0x0!==_0x54128d?(_0x2eb6ad=_0x775186[_0x26b496(0x133)](_0x38d2a7=>_0x38d2a7[_0x26b496(0x1ed)]==_0x54128d),_0x153f51=_0x2eb6ad?.[_0x26b496(0x1ed)]):(_0x2eb6ad=_0x775186[0x0],_0x153f51=_0x2eb6ad[_0x26b496(0x1ed)]),this[_0x26b496(0x24a)]?.[_0x26b496(0x10f)]==_0x3e5373&&this[_0x26b496(0x24a)]?.[_0x26b496(0x120)]==_0x153f51)return;const _0x4185a4=this[_0x26b496(0x141)](_0x3e5373,_0x59786e,_0x2eb6ad);if(!_0x4185a4)return void this[_0x26b496(0x1df)][_0x26b496(0x1dd)]();this[_0x26b496(0x24a)]={'replyId':_0x3e5373,'partIndex':_0x153f51},this[_0x26b496(0x1a3)](_0x4185a4,!0x0);const _0x2b001c=this[_0x26b496(0x175)](_0x3e5373,_0x153f51,_0x26b496(0x182));this[_0x26b496(0x1df)][_0x26b496(0xfe)]({'part':_0x2eb6ad,'renderingStrategy':_0x26b496(0xef)}),this[_0x26b496(0x1df)][_0x26b496(0x1c9)]({'index':_0x153f51,'title':_0x2a2ee7(this[_0x26b496(0x16b)][_0x26b496(0x1cc)],_0x26b496(0x17f),(_0x153f51+0x1)[_0x26b496(0x178)]()),'showRotator':null!==_0x2b001c,'ranges':[_0x4185a4],'areActionsDisabled':_0x59786e[_0x26b496(0x117)]}),this[_0x26b496(0x1df)][_0x26b496(0x1c2)](_0x26b496(0x227)),this[_0x26b496(0x1b2)][_0x26b496(0xee)](_0x3e5373,_0x153f51),this[_0x26b496(0x1b2)][_0x26b496(0x212)]({'id':_0x3e5373,'index':_0x153f51,'isActive':!0x0});}[_0xd55167(0x175)](_0x43cff0,_0x70b0c6,_0x387dad){const _0x439d2f=_0xd55167,{reply:_0x11b28e}=this[_0x439d2f(0x1fe)](_0x43cff0),_0x9dad19=_0x11b28e[_0x439d2f(0x1a4)]({'showDiff':this[_0x439d2f(0x1bf)]});if(0x1==_0x9dad19[_0x439d2f(0x1bc)])return null;const _0x3e1258=_0x9dad19[_0x439d2f(0x1ef)](_0x225885=>_0x225885[_0x439d2f(0x1ed)]==_0x70b0c6),_0x5bf4a7=_0x439d2f(0x182)==_0x387dad?0x1:-0x1;let _0x59517a=_0x9dad19['at']((_0x3e1258+_0x5bf4a7)%_0x9dad19[_0x439d2f(0x1bc)])[_0x439d2f(0x1ed)],_0x5160a6=_0x9dad19[_0x59517a];for(;!this[_0x439d2f(0x141)](_0x43cff0,_0x11b28e,_0x5160a6);){if(_0x59517a=_0x9dad19['at']((_0x59517a+_0x5bf4a7)%_0x9dad19[_0x439d2f(0x1bc)])[_0x439d2f(0x1ed)],_0x59517a===_0x3e1258)return null;_0x5160a6=_0x9dad19[_0x59517a];}return _0x59517a;}[_0xd55167(0x141)](_0x6668de,_0x3524ad,_0xbe8444){const _0xc7f8f3=_0xd55167,_0x172959=_0x3524ad[_0xc7f8f3(0x21b)];if(!_0xbe8444[_0xc7f8f3(0x1da)])return null;const _0x2605b1=_0x172959[_0xc7f8f3(0x133)](_0x2e7e4f=>_0x2e7e4f[_0xc7f8f3(0x1ed)]==_0xbe8444[_0xc7f8f3(0x1ed)]);if(_0xc7f8f3(0x227)!==_0x2605b1?.[_0xc7f8f3(0x267)])return null;const _0x1f8f78=this[_0xc7f8f3(0x119)](_0x6668de,_0xbe8444[_0xc7f8f3(0x1ed)]);if(!_0x1f8f78)return null;const {range:_0x1b6184,currentIndex:_0x2649cd}=_0x1f8f78;return _0xc7f8f3(0x18a)==_0x1b6184[_0xc7f8f3(0x110)][_0xc7f8f3(0x132)]?(_0x3524ad[_0xc7f8f3(0x26f)](_0x2649cd,_0xc7f8f3(0x252)),null):_0x1f8f78[_0xc7f8f3(0x253)];}[_0xd55167(0x119)](_0x1528e8,_0x5b7de0){const _0x228a1e=_0xd55167,_0x3636f0=_0x431b31(this[_0x228a1e(0x16b)]),{reply:_0x30a393,interaction:_0x1af8a6}=this[_0x228a1e(0x1fe)](_0x1528e8),_0x5cc6e1=_0x30a393[_0x228a1e(0x21b)][_0x228a1e(0x153)](_0x1da0e1=>_0x228a1e(0x227)==_0x1da0e1[_0x228a1e(0x267)]),_0x5ae1c5=_0x5cc6e1[_0x228a1e(0x160)](_0x3369f6=>_0x30a393[_0x228a1e(0x21b)][_0x228a1e(0x1ae)](_0x3369f6));void 0x0===_0x5b7de0&&(_0x5b7de0=_0x5ae1c5[0x0]);const _0x406edf=_0x5ae1c5[_0x228a1e(0x1ae)](_0x5b7de0);if(-0x1==_0x406edf)return null;const _0x3b8cdf=_0x5cc6e1[_0x406edf],_0x243f52=new _0x10dcfc([]),_0x203cec=new _0x10dcfc([]);for(const _0x9245be of _0x3b8cdf[_0x228a1e(0x261)])if(_0x228a1e(0x1af)!=_0x9245be[_0x228a1e(0x1f0)]&&_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x9245be[_0x228a1e(0x254)][_0x228a1e(0x264)](!0x0)),_0x228a1e(0x145)!=_0x9245be[_0x228a1e(0x1f0)]){const _0x82e402=_0x5955b6(_0x2a37d4=>_0xfcd8bd(_0x2a37d4,_0x228a1e(0x24e))==_0x9245be['id'],_0x30a393[_0x228a1e(0x1a9)],!0x0);_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x82e402[_0x228a1e(0x264)](!0x0));}if(0x0==_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1bc)]){if(_0x3b8cdf[_0x228a1e(0x261)][0x0][_0x228a1e(0x170)]){const _0x2d8c8d=_0x40dbf0(_0x228a1e(0x24e),_0x3b8cdf[_0x228a1e(0x261)][0x0][_0x228a1e(0x170)],_0x30a393[_0x228a1e(0x1a9)]);_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x269)](_0x2d8c8d[_0x228a1e(0x264)](!0x0)),_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x269)](_0x2d8c8d[_0x228a1e(0x264)](!0x0)),_0x2d8c8d[_0x228a1e(0x273)]&&(_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x2d8c8d[_0x228a1e(0x273)][_0x228a1e(0x264)](!0x0)),_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x2d8c8d[_0x228a1e(0x273)][_0x228a1e(0x264)](!0x0)));}else{const _0x1d5e5b=_0x30a393[_0x228a1e(0x1a9)][_0x228a1e(0x1e3)][0x0];if(!_0x1d5e5b)return null;_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x1d5e5b[_0x228a1e(0x264)](!0x0)),_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x1d5e5b[_0x228a1e(0x264)](!0x0));}}const _0xfb25bf=_0x1af8a6[_0x228a1e(0x271)](),_0xb4a284=_0x3636f0[_0x228a1e(0x1b8)][_0x228a1e(0x1a0)](_0xfb25bf[_0x228a1e(0x23c)]),_0x3a2ca7=_0x5921ad(_0x243f52),_0xaaa7c0=_0x3636f0[_0x228a1e(0x1b8)][_0x228a1e(0x1a0)](_0x3a2ca7),_0x4a0b90=_0x3636f0[_0x228a1e(0x1b8)][_0x228a1e(0x1a0)](_0x3a2ca7),_0x2fb66f=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1a2)](_0xaaa7c0,0x0),_0x4eadaf=_0x5921ad(_0x203cec),_0x1af562={'anchor':_0x2fb66f,'markDeletions':!0x1},_0x1480dd=_0x3636f0[_0x228a1e(0x164)][_0x228a1e(0x1fc)](_0x19b14b)[_0x228a1e(0x225)](_0x3a2ca7,_0x4eadaf,_0x1af562)[_0x228a1e(0x235)]();if(!_0x1480dd[_0x228a1e(0x1bc)])return null;_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1d1)](_0x588469=>{const _0x27eb59=_0x228a1e;for(const _0x4ed3df of _0x1480dd)if(_0x27eb59(0x1de)==_0x4ed3df[_0x27eb59(0x1f0)]){const _0xb54c89=_0x4ed3df[_0x27eb59(0x15f)],_0x56d473=_0x4ed3df[_0x27eb59(0x237)],_0x346f11=new _0x393399(_0xb54c89,_0x56d473);_0x588469[_0x27eb59(0x279)][_0x27eb59(0x105)](_0x346f11),_0x3636f0[_0x27eb59(0x113)][_0x27eb59(0x268)](_0x346f11);}else _0x27eb59(0x15e)!==_0x4ed3df[_0x27eb59(0x1f0)]&&(_0x4ed3df[_0x27eb59(0x24f)]=null,_0x4ed3df[_0x27eb59(0x18d)]=!0x1,_0x588469[_0x27eb59(0x279)][_0x27eb59(0x105)](_0x4ed3df),_0x3636f0[_0x27eb59(0x113)][_0x27eb59(0x268)](_0x4ed3df));});const _0xff8919=_0x2aa2f8(_0x3636f0,_0x1480dd,_0xaaa7c0);_0xa6396a(_0x3636f0[_0x228a1e(0x113)],_0xff8919);const _0x5f37fe=_0xff8919[_0x228a1e(0x215)]()[_0x228a1e(0x236)][_0x228a1e(0x211)][_0x228a1e(0x165)](),_0x3fe96d=_0xff8919[_0x228a1e(0x215)]()[_0x228a1e(0x247)][_0x228a1e(0x211)][_0x228a1e(0x165)](),_0x4935c5=[];let _0x2941b1=_0xaaa7c0,_0x24b7ef=_0x4a0b90;for(let _0x34ca86=0x0;_0x34ca86<_0x3fe96d[_0x228a1e(0x1bc)];_0x34ca86++){const _0x6c697f=_0x2941b1[_0x228a1e(0x1fd)]-_0x3fe96d[_0x34ca86];_0x4935c5[_0x34ca86]=_0x24b7ef[_0x228a1e(0x1fd)]-_0x6c697f,_0x2941b1=_0x2941b1[_0x228a1e(0x21e)](_0x3fe96d[_0x34ca86]),_0x24b7ef=_0x24b7ef[_0x228a1e(0x21e)](_0x4935c5[_0x34ca86]);}const _0x41cd9c=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1b7)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x4a0b90,_0x5f37fe),_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x4a0b90,_0x4935c5)),_0x4c142e=_0x4a0b90[_0x228a1e(0x146)](0x0)[_0x228a1e(0x14a)](_0x35bef5),_0x53e7a5=Array[_0x228a1e(0x126)](_0xb4a284[_0x228a1e(0x192)]())[_0x228a1e(0x133)](_0x47b500=>_0x47b500[_0x228a1e(0x14a)](_0x35bef5)==_0x4c142e)[_0x228a1e(0x14e)](),_0x3e5642=_0x41cd9c[_0x228a1e(0x236)][_0x228a1e(0x211)][_0x228a1e(0x165)](),_0x46d925=_0x41cd9c[_0x228a1e(0x247)][_0x228a1e(0x211)][_0x228a1e(0x165)]();_0x3e5642[0x0]=_0x53e7a5[0x0]+_0x3e5642[0x0],_0x46d925[0x0]=_0x53e7a5[0x0]+_0x46d925[0x0];let _0x232ac5=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1b7)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x14b)][_0x228a1e(0x1a1)](),_0x3e5642),_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x14b)][_0x228a1e(0x1a1)](),_0x46d925));const _0x4f7d68=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x14b)][_0x228a1e(0x16f)][_0x228a1e(0x235)](_0xfb25bf[_0x228a1e(0x193)]);for(const _0x3c9817 of _0x4f7d68)_0x232ac5=_0x53e345[_0x228a1e(0x190)](_0x232ac5[_0x228a1e(0x147)](_0x3c9817));return{'range':_0x232ac5,'currentIndex':_0x5b7de0};}[_0xd55167(0x19c)](_0xb6f161){const _0x44ea5a=_0xd55167;if(!_0xb6f161[_0x44ea5a(0x164)][_0x44ea5a(0x168)](_0x44ea5a(0x17c)))return;const _0x26adb5=_0xb6f161[_0x44ea5a(0x1b5)][_0x44ea5a(0x1fc)](_0x44ea5a(0x20b)),_0x231840=_0xb6f161[_0x44ea5a(0x1b5)][_0x44ea5a(0x1fc)](_0x44ea5a(0x1d9));this[_0x44ea5a(0x218)](_0x26adb5,_0x44ea5a(0x1c3),(_0x8f1682,_0x3df38c,_0x316bd3)=>{const _0x5aa5b3=_0x44ea5a,_0x144364=this[_0x5aa5b3(0x163)][_0x5aa5b3(0x1fc)](_0x3df38c);if(!_0x144364)return;const _0x38e1ed=this[_0x5aa5b3(0x122)][_0x5aa5b3(0x111)](_0x144364[_0x5aa5b3(0x11c)])[_0x5aa5b3(0x184)](_0x144364[_0x5aa5b3(0x10f)]);_0x144364[_0x5aa5b3(0x13f)][_0x5aa5b3(0x22c)](_0x127b0c=>_0x38e1ed[_0x5aa5b3(0x26f)](_0x127b0c,_0x5aa5b3(0x227))),this[_0x5aa5b3(0x163)][_0x5aa5b3(0x13e)](_0x3df38c),this[_0x5aa5b3(0x163)][_0x5aa5b3(0x157)](_0x316bd3,_0x144364);}),this[_0x44ea5a(0x218)](_0x231840,_0x44ea5a(0x1c3),(_0xb16a3f,_0x8074ae,_0x38bb9c)=>{const _0x157c26=_0x44ea5a,_0x5467f7=this[_0x157c26(0x163)][_0x157c26(0x1fc)](_0x8074ae);if(!_0x5467f7)return;const _0x58d67e=this[_0x157c26(0x122)][_0x157c26(0x111)](_0x5467f7[_0x157c26(0x11c)])[_0x157c26(0x184)](_0x5467f7[_0x157c26(0x10f)]);_0x5467f7[_0x157c26(0x13f)][_0x157c26(0x22c)](_0x834037=>_0x58d67e[_0x157c26(0x26f)](_0x834037,_0x157c26(0x238))),this[_0x157c26(0x163)][_0x157c26(0x13e)](_0x8074ae),this[_0x157c26(0x163)][_0x157c26(0x157)](_0x38bb9c,_0x5467f7);});}async[_0xd55167(0x1b3)](_0x1249f9){const _0x180028=_0xd55167;this[_0x180028(0x16b)][_0x180028(0x164)][_0x180028(0x168)](_0x180028(0x26c))&&this[_0x180028(0x16b)][_0x180028(0x164)][_0x180028(0x1fc)](_0x180028(0x26c))[_0x180028(0x1dd)](),(this[_0x180028(0x16b)][_0x180028(0x164)][_0x180028(0x1fc)](_0x216e50)[_0x180028(0x16d)][_0x180028(0x169)](_0x180028(0x242)),this[_0x180028(0x1b2)][_0x180028(0x12c)](_0x180028(0xef)),this[_0x180028(0x1b2)][_0x180028(0x1d7)](!0x0),await this[_0x180028(0x106)]());try{await this[_0x180028(0x26a)][_0x180028(0x13a)](_0x1249f9)[_0x180028(0x1d0)](),await this[_0x180028(0x20c)](_0x1249f9),this[_0x180028(0x25d)]('\x20'),await this[_0x180028(0x122)][_0x180028(0x198)](_0x1249f9,this[_0x180028(0x140)][_0x180028(0x25f)]),this[_0x180028(0x122)][_0x180028(0x1ff)]()&&this[_0x180028(0x100)]();}catch(_0xde2286){this[_0x180028(0x1b2)][_0x180028(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x180028(0x16b)][_0x180028(0x1cc)],_0x180028(0x249)),'id':_0x1249f9}),this[_0x180028(0x200)](new _0x530add(_0x180028(0x10a),this,{'error':_0xde2286}));}finally{this[_0x180028(0x1b2)][_0x180028(0x10d)](),this[_0x180028(0x1b2)][_0x180028(0x12c)](_0x180028(0x1d3)),this[_0x180028(0x1b2)][_0x180028(0x1d7)](!0x1);}}async[_0xd55167(0x20f)](){const _0x36c068=_0xd55167,_0x28cba1=this[_0x36c068(0x26a)][_0x36c068(0xf9)](this[_0x36c068(0x179)](),{'limit':0x1,'sortBy':_0x36c068(0x24b)});try{const _0x11af48=await _0x28cba1[_0x36c068(0x251)]();return _0x11af48[_0x36c068(0x1bc)]?_0x11af48[0x0]['id']:_0x36c068(0x145);}catch(_0x581d0c){return this[_0x36c068(0x1b2)][_0x36c068(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x36c068(0x16b)][_0x36c068(0x1cc)],_0x36c068(0x249)),'id':_0x14288b()}),this[_0x36c068(0x200)](new _0x530add(_0x36c068(0x1bb),this,{'error':_0x581d0c})),this[_0x36c068(0x1b2)][_0x36c068(0x1d7)](!0x1),this[_0x36c068(0x1b2)][_0x36c068(0xfd)](),null;}}[_0xd55167(0x10e)](_0xc17a0){const _0x28d10b=_0xd55167;this[_0x28d10b(0x122)]['id']===_0xc17a0&&this[_0x28d10b(0x20c)]();}[_0xd55167(0x100)](){const _0x2e95dd=_0xd55167;this[_0x2e95dd(0x122)]?.[_0x2e95dd(0x114)](_0x2a2ee7(this[_0x2e95dd(0x16b)][_0x2e95dd(0x1cc)],_0x2e95dd(0x1e5)));}async[_0xd55167(0x196)](){const _0x3c734c=_0xd55167,_0x4c5af5=this[_0x3c734c(0x140)][_0x3c734c(0x20d)]();this[_0x3c734c(0x122)]?.[_0x3c734c(0x1e6)](_0x4c5af5),this[_0x3c734c(0x100)]();}[_0xd55167(0x201)](){const _0x5c3061=_0xd55167;this[_0x5c3061(0x122)]?.[_0x5c3061(0x1dc)]();}[_0xd55167(0x213)](){const _0x1a08d4=_0xd55167;this[_0x1a08d4(0x1b2)][_0x1a08d4(0x213)]();}async[_0xd55167(0x21c)](){const _0x743631=_0xd55167;await this[_0x743631(0x20c)]();}async[_0xd55167(0x1c5)]({message:_0x331303,attributes:_0x55f0d0}){const _0x5427fc=_0xd55167;await this[_0x5427fc(0x11b)]({'userMessage':_0x331303,'attributes':_0x55f0d0});}[_0xd55167(0x179)](){const _0xc6c6c0=_0xd55167,_0x12c9c9=this[_0xc6c6c0(0x16b)][_0xc6c6c0(0x13c)][_0xc6c6c0(0x1fc)](_0xc6c6c0(0x243));if(!_0x12c9c9)throw new _0x530add(_0xc6c6c0(0x18e),this);return _0x12c9c9;}async[_0xd55167(0x20c)](_0x1e9151){const _0x2df07e=_0xd55167;try{this[_0x2df07e(0x1b2)][_0x2df07e(0x25b)](),await this[_0x2df07e(0x125)](_0x1e9151);}catch(_0x54b829){this[_0x2df07e(0x1b2)][_0x2df07e(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x2df07e(0x16b)][_0x2df07e(0x1cc)],_0x2df07e(0x277)),'id':_0x1e9151||_0x14288b()}),console[_0x2df07e(0x239)](_0x54b829),this[_0x2df07e(0x122)]=void 0x0,this[_0x2df07e(0x1b2)][_0x2df07e(0xfd)]();}}async[_0xd55167(0x125)](_0x59289e){const _0x3b4d11=_0xd55167;let _0x3f4e04;this[_0x3b4d11(0x16b)][_0x3b4d11(0x164)][_0x3b4d11(0x168)](_0x3b4d11(0x26c))&&this[_0x3b4d11(0x16b)][_0x3b4d11(0x164)][_0x3b4d11(0x1fc)](_0x3b4d11(0x26c))[_0x3b4d11(0x1dd)](),_0x59289e||!this[_0x3b4d11(0x122)]?_0x3f4e04=this[_0x3b4d11(0x16b)][_0x3b4d11(0x13c)][_0x3b4d11(0x1fc)](_0x3b4d11(0x1e4)):this[_0x3b4d11(0x1b2)][_0x3b4d11(0x11a)]&&(_0x3f4e04=this[_0x3b4d11(0x122)][_0x3b4d11(0x171)]['id']),await this[_0x3b4d11(0x106)]();const _0x9a863=this[_0x3b4d11(0x179)](),_0x541b94=_0x59289e||_0x14288b();this[_0x3b4d11(0x122)]=new _0x5e8d16({'connector':this[_0x3b4d11(0x26a)],'chatModels':this[_0x3b4d11(0x276)],'selectedModelId':_0x3f4e04,'conversationId':_0x541b94,'group':_0x9a863,'getEditor':()=>_0x431b31(this[_0x3b4d11(0x16b)]),'isFromHistory':!!_0x59289e}),this[_0x3b4d11(0x122)][_0x3b4d11(0x16a)](_0x3b4d11(0x167),_0x3b4d11(0x11f))['to'](this),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1e1),(_0x59a1ab,_0x1d2df8)=>{const _0x3417b7=_0x3b4d11;this[_0x3417b7(0x1b2)][_0x3417b7(0x1b4)](_0x1d2df8),this[_0x3417b7(0x1b2)][_0x3417b7(0x246)](),this[_0x3417b7(0x1b2)][_0x3417b7(0x231)](),this[_0x3417b7(0x1b2)][_0x3417b7(0x185)](),_0x59289e||(this[_0x3417b7(0x1b2)][_0x3417b7(0x25e)](),this[_0x3417b7(0x100)]());}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x172),(_0x272e57,_0x5d1358)=>{const _0x8a1705=_0x3b4d11;this[_0x8a1705(0x1b2)][_0x8a1705(0x13b)](_0x5d1358[_0x8a1705(0x259)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x265),(_0x217304,_0x4ccf78)=>{const _0x484d32=_0x3b4d11;this[_0x484d32(0x1b2)][_0x484d32(0x10b)](_0x4ccf78);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x270),()=>{const _0x107b1c=_0x3b4d11,_0x46e81a=this[_0x107b1c(0x1b2)][_0x107b1c(0x1f4)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x107b1c(0x1b2)][_0x107b1c(0x263)](_0x46e81a);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1c1),()=>{const _0x14dabf=_0x3b4d11,_0x4dffdb=this[_0x14dabf(0x1b2)][_0x14dabf(0x1f4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x14dabf(0x1b2)][_0x14dabf(0x263)](_0x4dffdb);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x103),(_0x3ebefe,_0x1a5d24)=>{const _0x355196=_0x3b4d11;this[_0x355196(0x1b2)][_0x355196(0x19a)](_0x1a5d24,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x20e),(_0x44fc0b,_0x2e236f)=>{const _0x50ff09=_0x3b4d11;this[_0x50ff09(0x1b2)][_0x50ff09(0x19a)](_0x2e236f,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x11f),()=>{const _0x591ba6=_0x3b4d11;this[_0x591ba6(0x1b2)][_0x591ba6(0x1cb)]();}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x206),async()=>{const _0x1b0799=_0x3b4d11;await this[_0x1b0799(0x1b2)][_0x1b0799(0x17e)]();}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x255),(_0x3fb316,_0x59d12c)=>{const _0x80e196=_0x3b4d11;this[_0x80e196(0x1b2)][_0x80e196(0x17d)](_0x59d12c['id']);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1eb),(_0x1d4276,_0x31c1ac,_0x404a59)=>{const _0x4638c7=_0x3b4d11;this[_0x4638c7(0x25d)](_0x31c1ac,_0x404a59);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0xf3),(_0x1f8859,_0x543fac)=>{const _0x24d377=_0x3b4d11;_0x24d377(0x19d)===_0x543fac[_0x24d377(0x1f0)]?this[_0x24d377(0x1b2)][_0x24d377(0x188)](_0x543fac):this[_0x24d377(0x1b2)][_0x24d377(0x1ca)](_0x543fac);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x156),async(_0x219ceb,_0x18c9f3)=>{const _0x471ea0=_0x3b4d11;await this[_0x471ea0(0x177)]({'reply':_0x18c9f3});}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1b6),(_0x2465a4,{reply:_0x207fcc,index:_0x3f2fc6,state:_0x4a9d35})=>{const _0x545c4f=_0x3b4d11;this[_0x545c4f(0x1b2)][_0x545c4f(0x12b)]({'id':_0x207fcc['id'],'index':_0x3f2fc6,'state':_0x4a9d35}),this[_0x545c4f(0x24a)]?.[_0x545c4f(0x10f)][_0x545c4f(0x16e)](_0x207fcc['id'])&&this[_0x545c4f(0x24a)]?.[_0x545c4f(0x120)]==_0x3f2fc6&&this[_0x545c4f(0x1df)]?.[_0x545c4f(0x1c2)](_0x4a9d35);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x217),(_0x1f02ea,_0x46bb5c)=>{const _0x4e6789=_0x3b4d11;if(this[_0x4e6789(0x1b2)][_0x4e6789(0x234)](_0x46bb5c[_0x4e6789(0x233)],_0x46bb5c[_0x4e6789(0x1ee)]),_0x4e6789(0x180)===_0x46bb5c[_0x4e6789(0x233)][_0x4e6789(0x1f0)]){const _0x3d173f=[..._0x431b31(this[_0x4e6789(0x16b)])[_0x4e6789(0x113)][_0x4e6789(0x14b)][_0x4e6789(0x180)][_0x4e6789(0x22e)]()];this[_0x4e6789(0x140)][_0x4e6789(0x21a)](_0x3d173f,_0x4e6789(0x1f3)+this[_0x4e6789(0x122)]?.['id']);}}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1f6),(_0x30435a,_0x40ad70)=>{const _0x38c49c=_0x3b4d11;this[_0x38c49c(0x1b2)][_0x38c49c(0x154)](_0x40ad70[_0x38c49c(0xfa)]),_0x38c49c(0x181)==_0x40ad70[_0x38c49c(0xfa)]&&this[_0x38c49c(0x201)](),_0x38c49c(0x180)===_0x40ad70[_0x38c49c(0x1f0)]&&this[_0x38c49c(0x140)][_0x38c49c(0x21d)](_0x38c49c(0x1f3)+this[_0x38c49c(0x122)]?.['id']);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1fa),(_0xcf51d5,_0x3f2fb4)=>{const _0x51f301=_0x3b4d11;this[_0x51f301(0x1b2)][_0x51f301(0x1e2)](_0x3f2fb4[_0x51f301(0x233)][_0x51f301(0xfa)],_0x3f2fb4[_0x51f301(0x1ee)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x19b),(_0x469b46,_0x513a7c)=>{const _0x3b05e6=_0x3b4d11;this[_0x3b05e6(0x1b2)][_0x3b05e6(0x197)](_0x513a7c[_0x3b05e6(0x1d4)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x162),(_0x59206f,_0x39aac5)=>{const _0x135553=_0x3b4d11;this[_0x135553(0x1b2)][_0x135553(0x23b)](_0x39aac5[_0x135553(0x1c8)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1b0),(_0x13c939,_0x12ec2b)=>{const _0x3c95cc=_0x3b4d11;this[_0x3c95cc(0x1b2)][_0x3c95cc(0xff)](_0x12ec2b[_0x3c95cc(0x137)],_0x12ec2b[_0x3c95cc(0x19e)],_0x12ec2b[_0x3c95cc(0x159)],_0x12ec2b[_0x3c95cc(0x14c)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x107),(_0x21eb67,_0x4052da)=>{const _0x560277=_0x3b4d11;this[_0x560277(0x1b2)][_0x560277(0x136)](_0x4052da[_0x560277(0x137)],_0x4052da[_0x560277(0x1e7)],_0x4052da[_0x560277(0x1ac)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1be),(_0x531bd3,_0x4f48b0)=>{const _0x30d445=_0x3b4d11;this[_0x30d445(0x1b2)][_0x30d445(0x1c7)](_0x4f48b0);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x17b),async(_0x597628,_0x5233de)=>{const _0xc2186=_0x3b4d11,_0x158063=(await this[_0xc2186(0x276)][_0xc2186(0xf2)]())[_0xc2186(0x133)](_0x5aa6bf=>_0x5aa6bf['id']===_0x5233de[_0xc2186(0x171)]?.['id'])||null;this[_0xc2186(0x1b2)][_0xc2186(0x1db)](_0x158063,_0x5233de[_0xc2186(0xfb)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x239),(_0x345ecc,{error:_0x2a28b2,interactionId:_0x331aec,fileName:_0x2b5f12,url:_0x31f509,sourceId:_0x3e2efd,sourceLabel:_0x5b02f2})=>{const _0x41f3a2=_0x3b4d11,_0x2b4426=_0x331aec?_0x331aec+':'+_0x14288b():_0x14288b();_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x229))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1c0)]({'staticMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0xf6)),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x1bb))||_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x189))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x277)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x26d))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x155),_0x2b5f12),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x158))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x199),_0x31f509),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x135))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x209)),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x166))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x248)),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x1ad))?(_0x3e2efd&&this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1e0)](_0x3e2efd),this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x195),_0x5b02f2||_0x41f3a2(0x19e)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x17a))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x11e)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x226))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x1f1)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x245))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x223)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x118))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x241)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x22f))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x23a)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x205))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x222)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x1f2)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2));}),await this[_0x3b4d11(0x122)][_0x3b4d11(0x23f)](this[_0x3b4d11(0x16b)][_0x3b4d11(0x13c)][_0x3b4d11(0x1fc)](_0x3b4d11(0x16c))),_0x59289e||await this[_0x3b4d11(0x122)][_0x3b4d11(0x236)]();}async[_0xd55167(0x11b)]({userMessage:_0x1629c8,attributes:_0x4878fd}){const _0x33a6d5=_0xd55167;if(!this[_0x33a6d5(0x122)])throw new _0x530add(_0x33a6d5(0x138));if(this[_0x33a6d5(0x122)][_0x33a6d5(0x1d5)]()){const _0x2e81c2=await this[_0x33a6d5(0x140)][_0x33a6d5(0x20a)]();await this[_0x33a6d5(0x122)][_0x33a6d5(0x18b)](_0x2e81c2);}this[_0x33a6d5(0x122)]['id']&&this[_0x33a6d5(0x122)][_0x33a6d5(0x191)]&&await this[_0x33a6d5(0x122)][_0x33a6d5(0x272)]({'userMessage':_0x1629c8,'attributes':_0x4878fd});}[_0xd55167(0x202)](){const _0x206c84=_0xd55167;console[_0x206c84(0x220)](_0x206c84(0x260));}[_0xd55167(0x25a)](_0xbd81f5){const _0x5eec9e=_0xd55167;this[_0x5eec9e(0x1b2)][_0x5eec9e(0x208)](_0xbd81f5);}[_0xd55167(0x200)](_0x98be6a){const _0x37d6d9=_0xd55167;_0x59170a(_0x98be6a[_0x37d6d9(0x1ab)]);}[_0xd55167(0x1b1)](_0x1bfe25){const _0x30884d=_0xd55167;this[_0x30884d(0x122)]?.[_0x30884d(0x15c)](_0x1bfe25);}[_0xd55167(0x1aa)](){const _0x3050e4=_0xd55167;this[_0x3050e4(0x122)]?.[_0x3050e4(0x1b9)]();}[_0xd55167(0x22b)](){const _0x4c24a2=_0xd55167;this[_0x4c24a2(0x122)]?.[_0x4c24a2(0x12a)]();}[_0xd55167(0x1fe)](_0x5dd4bc){const _0x129125=_0xd55167,[_0x75faf5,_0xa72479]=_0x5dd4bc[_0x129125(0x18f)](':'),_0x3b68c3=this[_0x129125(0x122)][_0x129125(0x111)](_0x75faf5),_0xc1c43a=_0x3b68c3[_0x129125(0x184)](_0xa72479);return{'interaction':_0x3b68c3,'reply':_0xc1c43a};}[_0xd55167(0x1a3)](_0x411f61,_0x1cb924=!0x1){const _0x494d46=_0xd55167,_0x160e09=_0x431b31(this[_0x494d46(0x16b)]),_0x541696={'target':_0x160e09[_0x494d46(0x262)][_0x494d46(0x16d)][_0x494d46(0x1f8)][_0x494d46(0x203)](_0x160e09[_0x494d46(0x262)][_0x494d46(0x228)][_0x494d46(0x250)](_0x411f61)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1cb924};_0x1cb924&&(_0x541696[_0x494d46(0x1cd)]=!0x0),_0x535cd8(_0x541696);}[_0xd55167(0x25d)](_0x2a737f,_0x319dd0=!0x1){const _0x3f9c37=_0xd55167;this[_0x3f9c37(0x1b2)][_0x3f9c37(0x1eb)](_0x2a737f||_0x2a2ee7(this[_0x3f9c37(0x16b)][_0x3f9c37(0x1cc)],_0x3f9c37(0x1e8)),_0x319dd0);}async[_0xd55167(0x177)]({reply:_0xa97466,renderingStrategy:_0x53a2dd}){const _0x275fb8=_0xd55167,{id:_0x4fef18,interactionId:_0x49f9ae,isDone:_0x5c56a5,type:_0x5078bf,parsedContent:_0x366cea}=_0xa97466,_0x5db498=_0x49f9ae+':'+_0x4fef18;if(_0x275fb8(0x26b)===_0x5078bf){const _0x51a9cb=_0xa97466[_0x275fb8(0x1a4)]({'showDiff':this[_0x275fb8(0x1b2)][_0x275fb8(0x1d2)]});await this[_0x275fb8(0x1b2)][_0x275fb8(0x214)]({'id':_0x5db498,'parts':_0x51a9cb,'renderingStrategy':_0x53a2dd,'isDone':_0x5c56a5});}else _0x275fb8(0x19d)===_0x5078bf&&await this[_0x275fb8(0x1b2)][_0x275fb8(0x25c)]({'id':_0x5db498,'parsedContent':_0x366cea,'renderingStrategy':_0x53a2dd,'isDone':_0x5c56a5});_0x5c56a5&&_0xa97466[_0x275fb8(0x149)][_0x275fb8(0x1bc)]>0x0&&this[_0x275fb8(0x1b2)][_0x275fb8(0x15b)](_0x5db498,_0xa97466[_0x275fb8(0x149)]);}async[_0xd55167(0x106)](){const _0x114df8=_0xd55167,_0x5ec1c7=this[_0x114df8(0x122)]?.[_0x114df8(0x108)];_0x5ec1c7&&(_0x5ec1c7[_0x114df8(0x1d6)](),this[_0x114df8(0x1b2)][_0x114df8(0x24c)](_0x5ec1c7));}async[_0xd55167(0x1ba)](){const _0x586dc7=_0xd55167,_0x3e2631=this[_0x586dc7(0x122)]?.[_0x586dc7(0x108)];if(_0x3e2631){for await(const _0x158121 of _0x3e2631[_0x586dc7(0x124)])await this[_0x586dc7(0x177)]({'reply':_0x158121,'renderingStrategy':_0x586dc7(0xef)});}}[_0xd55167(0x22d)](_0x5a486a){const _0x3dd3ae=_0xd55167,_0x815e4b={'positiveCount':_0x5a486a[_0x3dd3ae(0x21b)][_0x3dd3ae(0x153)](_0x2c20af=>_0x3dd3ae(0x238)===_0x2c20af[_0x3dd3ae(0x267)])[_0x3dd3ae(0x1bc)],'totalCount':_0x5a486a[_0x3dd3ae(0x21b)][_0x3dd3ae(0x1bc)],'modificationId':_0x5a486a['id']},_0x4cf14f=this[_0x3dd3ae(0x122)][_0x3dd3ae(0x111)](_0x5a486a[_0x3dd3ae(0x11c)])[_0x3dd3ae(0xf4)];_0x4cf14f&&this[_0x3dd3ae(0x26a)][_0x3dd3ae(0x26e)](this[_0x3dd3ae(0x122)]['id'],_0x4cf14f,_0x815e4b);}[_0xd55167(0x187)](_0x1632cf){const _0x3a2c29=_0xd55167;let _0x50e0f9=null,_0x4f402e=null;this['on'](_0x3a2c29(0x167),(_0x23fddd,_0x37ac77,_0x445044)=>{const _0x4241b2=_0x3a2c29;_0x445044['id']!==_0x50e0f9&&(_0x50e0f9=_0x445044['id'],_0x4f402e=this[_0x4241b2(0x1e9)](_0x445044)),_0x1632cf(_0x37ac77,_0x4f402e);});}[_0xd55167(0x1e9)](_0x5117a0){const _0x248d7e=_0xd55167,_0x582ac0=this[_0x248d7e(0x1b2)],_0x1bff2f=()=>{const _0x134606=_0x248d7e;_0x5117a0[_0x134606(0x129)](),_0x5117a0[_0x134606(0x134)](),_0x582ac0[_0x134606(0x256)]();},_0xe9770=()=>{const _0x1d6e2e=_0x248d7e;_0x5117a0[_0x1d6e2e(0x1c6)]&&(_0x5117a0[_0x1d6e2e(0x1c6)][_0x1d6e2e(0x14f)](),_0x5117a0[_0x1d6e2e(0x1c6)]=void 0x0);};return{'insertTextReply':(_0x3b81d0,_0x20cd40)=>{const _0x53bfb3=_0x248d7e;_0xe9770(),_0x1bff2f();const _0x9648e1=_0x5117a0[_0x53bfb3(0x1c6)]=_0x5117a0[_0x53bfb3(0x1ce)]({'type':_0x53bfb3(0x19d),'interactionId':_0x5117a0['id'],'content':_0x3b81d0,'id':_0x20cd40||_0x14288b()});return _0xe9770(),_0x9648e1;},'insertCustomElement':async(_0x5f1710,_0x500583)=>(_0xe9770(),_0x1bff2f(),_0x582ac0[_0x248d7e(0x151)](_0x5f1710,_0x500583||_0x14288b())),'setLoadingMessage':_0x576770=>{const _0x4b8ca=_0x248d7e;_0x582ac0[_0x4b8ca(0x263)](_0x576770);},'clearLoadingMessage':()=>{const _0x1e88a8=_0x248d7e;_0x582ac0[_0x1e88a8(0x256)]();}};}}function _0x6326(){const _0x531a30=['createConversation','commands','replyChangeGroupStateUpdated','createRange','data','toggleWebSearch','_flushLastInteractionUI','ai-chat-conversation-init-failed','length','showChangeInText','capabilitiesUpdated','_aiChatBalloonShowDiff','addFeedItemStaticMessage','reasoningStarted','setState','revert','push','sendMessage','currentReply','updateCapabilities','options','open','addFeedItemAISuggestion','startInteraction','locale','alignToTop','createReply','TrackChanges','getConversation','change','showDiff','streaming','contextItems','isCurrentDocumentInContext','stop','toggleLoadingSkeleton','addFeedItemError','redo','hasChanges','setSelectedModel','removeSelectionFromContext','close','remove','_aiChatBalloon','closeSourceResourceBalloon','conversationInitialized','setContextItemLoading','children','ai.models.defaultModelId','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addSelectionToContext','resourceId','AI_CHAT_UNTITLED_CONVERSATION','_getAIChatInteractionAPI','sendUserMessage','setConversationTitle','query','index','isLoading','findIndex','type','AI_CHAT_INVALID_REQUEST','AI_CHAT_GENERIC_ERROR','ai-conversation-','prepareLoadingMessage','applySuggestion','contextItemRemoved','DocumentCompare','domConverter','previous','contextItemLoadingEnded','resizeTabs','get','maxOffset','getInteractionAndReplyById','isCurrentDocumentInConversation','_logError','removeSelectionFromChatContext','_showConversationHistory','viewRangeToDom','callback','ai-chat-context-form-data-size-limits-exceeded','interactionFinished','1633808UpLpVQ','setIsMaximized','AI_CHAT_CONTEXT_INVALID_DATA','getDocumentData','undo','_startConversationSafely','getSelectionText','reasoningFinished','_getLastCreatedConversationId','isOfficialPlugin','path','setFeedItemAIReplySuggestionPartActive','focusPromptInput','updateFeedItemAIReplySuggestionContent','getFirstRange','showNext','contextItemAdded','listenTo','AITabs','showFakeVisualSelection','changeGroups','startConversation','hideFakeVisualSelection','getChildAtOffset','mouseOverSuggestion','log','ai.chat.initialConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_openBalloonFor','getDiff','ai-chat-invalid-request','pending','mapper','ai-request-aborted','addFilesToContext','_toggleReasoning','forEach','_updateRatings','getRanges','ai-chat-context-file-too-many-pages','detachFromDom','clearPendingContextUI','resizedTabs','contextItem','addContextItem','getOperations','start','howMany','accepted','error','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','setAddContextOptions','content','ai-no-track-changes','1419354JzBkiw','init','AIConnector','AI_CHAT_CONTEXT_FILE_TOO_LARGE','chat','collaboration.channelId','insertSuggestion','ai-chat-context-unsupported-file-type','resetMessageInput','end','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','_currentPreviewedChangeGroup','createdAt','stopInteraction','AIChatController','data-id','baseVersion','toViewRange','getConversations','outdated','range','node','interactionDestroyed','clearLoadingMessage','3053665QDaLAC','resource','isUploadInProgress','_setIsMaximized','enableControls','updateFeedItemAIReplyContent','updateConversationTitle','resetConversationTitle','sessionId','Showing\x20conversation\x20history...','changes','editing','setLoadingMessage','cloneNode','interactionCreated','rejected','state','applyOperation','unshift','_aiConnector','modification','AIChatBalloon','ai-chat-file-upload-failed','upsertAIChatRating','setChangeGroupState','webSearchStarted','getDocumentContext','handleUserInteraction','nextSibling','addResourceToContext','toggleSuggestionDisplayMode','_aiChatModels','AI_CHAT_UNABLE_TO_START_CONVERSATION','resize','batch','240836uZqIvN','scrollFeedToSuggestion','static','ai-chat-controller-mouse-over','destroy','getAll','replyCreated','messageId','showPrevious','AI_CHAT_ABORTED_MESSAGE','_rejectSuggestion','like','fetchConversations','uiId','isDisabled','editors','disableControls','updateContent','populateSourceResourceBalloon','addCurrentDocumentToChatContext','_bodyCollection','selectModel','webSearchFinished','TrackChangesEditing','addOperation','_stopLastInteraction','resourceStateChanged','lastInteraction','isPremiumPlugin','ai-chat-conversation-not-found','addFeedItemUserMessage','add','startAutoScroll','handleRemovedConversation','replyId','root','getInteraction','aiChatBalloon','model','addCurrentDocumentToContext','_applyOperationsAsSuggestions','ready','areActionsDisabled','ai-chat-context-file-too-large','_getDocumentRangeForReplyChanges','isModelAvailable','_handleUIUserMessage','interactionId','executeCustomItemCallback','AI_CHAT_RESOURCE_LOAD_FAILED','interactionStarted','partIndex','startsWith','activeConversation','1086771azdvaf','replies','_handleStartConversation','from','ai.models','185390ulywsd','resetWebSearchState','toggleReasoning','updateFeedItemAIReplySuggestionPartState','setFeedItemRenderingStrategy','rejectSuggestion','attachToDom','Disliked\x20response','4dciGhb','main','rootName','find','resetReasoningState','ai-chat-context-invalid-data','updateResourceState','sourceId','ai-chat-controller-no-active-conversation','abortPromptStream','fetchConversation','setIsUploadInProgress','config','1629981PwRGoi','delete','indexes','_aiEditing','_getUserPresentableContentPartDocumentRange','afterInit','dislike','_applySuggestion','new','getChild','getTransformedByOperation','AIEditing','sources','getAttribute','document','uid','pluginName','getPath','done','lastCreated','addFeedItemCustomElement','_insertSuggestion','filter','removeContextItem','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyContentUpdated','set','ai-chat-url-upload-failed','resources','createPositionFromPath','updateFeedItemAIReplySources','removeFromContext','addDocumentToContext','marker','sourcePosition','map','addFileToContext','addContextOptionsChanged','_batchToChanges','plugins','slice','ai-chat-context-unsupported-type','toolDataReceived','has','activateTab','delegate','context','ai.chat.context','view','includes','history','anchorId','selectedModel','uploadProgressChanged','AIChatUI','addUrlToContext','_getPresentableSiblingContentPartIndex','dialogClosed','_updateReplyContent','toString','getGroupId','ai-chat-resource-load-failed','modelSelected','Undo','removeFeedInteraction','finishInteraction','AI_BALLOON_HEADER_TITLE','selection','current-document','next','mouseLeaveSuggestion','getReply','clearConversationContextUI','requires','_registerToolDataCallback','addFeedItemAIReply','ai-chat-conversation-start-failed','$graveyard','updateCurrentDocumentInContext','loadSourceResources','isDocumentOperation','ai-chat-missing-channel-id','split','_createFromRanges','isStarted','getChildren','version','20nCqnpS','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','addSelectionToChatContext','setConversationContext','load','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','addFeedInteractionHeader','contextSent','_integrateEditor','text','source','bind','parse','getRoot','createPositionAt','_scrollToSuggestionRange','getContentParts','setModel','Liked\x20response','9RfjcgV','24ctdzlA','documentContextContent','_toggleWebSearch','message','isInContext','ai-chat-source-resources-load-failed','indexOf','removed','sourceResourcesLoaded','_removeFromContext','_aiChatUi','loadConversation'];_0x6326=function(){return _0x531a30;};return _0x6326();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a0ffa=_0x28db;(function(_0x128897,_0x6af7d8){const _0x2caa68=_0x28db,_0x151681=_0x128897();while(!![]){try{const _0x2620b7=parseInt(_0x2caa68(0x24a))/0x1+parseInt(_0x2caa68(0x1fd))/0x2*(-parseInt(_0x2caa68(0x24c))/0x3)+-parseInt(_0x2caa68(0x278))/0x4*(parseInt(_0x2caa68(0x1e4))/0x5)+-parseInt(_0x2caa68(0x1e3))/0x6*(-parseInt(_0x2caa68(0x231))/0x7)+-parseInt(_0x2caa68(0x1da))/0x8+-parseInt(_0x2caa68(0x20b))/0x9*(parseInt(_0x2caa68(0x25f))/0xa)+parseInt(_0x2caa68(0x269))/0xb;if(_0x2620b7===_0x6af7d8)break;else _0x151681['push'](_0x151681['shift']());}catch(_0xba2268){_0x151681['push'](_0x151681['shift']());}}}(_0xe7ea,0x1c2c2));import{ContextPlugin as _0x4f2910}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x36b33c}from'ckeditor5/src/utils.js';import{AIChatView as _0x5a7760}from'./ui/aichatview.js';import{AITabs as _0x2c7996}from'../aitabs/aitabs.js';import{getTranslation as _0x5ea92d}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3a8131}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2a3413}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x3c63f6}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x59a95e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x28db(_0x4d5f3c,_0x18bbfc){const _0xe7eada=_0xe7ea();return _0x28db=function(_0x28db79,_0x206209){_0x28db79=_0x28db79-0x1ca;let _0x21f91d=_0xe7eada[_0x28db79];return _0x21f91d;},_0x28db(_0x4d5f3c,_0x18bbfc);}import{getEditorFromContext as _0x7083ab}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x505374}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4f2910{static get[_0x2a0ffa(0x1d7)](){return[_0x2c7996];}[_0x2a0ffa(0x26e)];static get[_0x2a0ffa(0x23e)](){const _0x6d6165=_0x2a0ffa;return _0x6d6165(0x279);}static get[_0x2a0ffa(0x24d)](){return!0x0;}static get[_0x2a0ffa(0x218)](){return!0x0;}[_0x2a0ffa(0x1df)]=_0x2a0ffa(0x271);[_0x2a0ffa(0x242)]=!0x0;[_0x2a0ffa(0x275)];[_0x2a0ffa(0x214)];[_0x2a0ffa(0x211)]=void 0x0;[_0x2a0ffa(0x230)]=!0x1;constructor(_0x356d7e){const _0x4e593f=_0x2a0ffa;super(_0x356d7e);const _0x1d917a=this[_0x4e593f(0x1f9)][_0x4e593f(0x216)][_0x4e593f(0x1dc)](_0x4e593f(0x1e7));this[_0x4e593f(0x222)](_0x4e593f(0x1fc),!0x1),this[_0x4e593f(0x275)]=new _0x3c63f6(),this[_0x4e593f(0x26e)]=new _0x5a7760(this[_0x4e593f(0x1f9)][_0x4e593f(0x1dd)],{'showResizeButton':_0x1d917a[_0x4e593f(0x20e)],'contextResourcesSearchInputVisibleFrom':this[_0x4e593f(0x1f9)][_0x4e593f(0x207)][_0x4e593f(0x1dc)](_0x4e593f(0x266))}),this[_0x4e593f(0x26e)][_0x4e593f(0x27d)](..._0x59a95e)['to'](this),this[_0x4e593f(0x26e)]['on'](_0x4e593f(0x272),(_0x546b50,{showDiff:_0x263085})=>{const _0x276789=_0x4e593f;this[_0x276789(0x242)]=_0x263085;}),_0x1d917a[_0x4e593f(0x25e)][_0x4e593f(0x22f)]({'id':_0x4e593f(0x243),'buttonLabel':_0x5ea92d(this[_0x4e593f(0x1f9)][_0x4e593f(0x1dd)],_0x4e593f(0x1d5)),'buttonIcon':_0x3a8131,'order':0x0,'content':this[_0x4e593f(0x26e)]}),this[_0x4e593f(0x26e)][_0x4e593f(0x209)][_0x4e593f(0x25a)](_0x4e593f(0x22a))['to'](this,_0x4e593f(0x1fc),_0x4e19a9=>_0x4e19a9),this[_0x4e593f(0x26e)][_0x4e593f(0x265)][_0x4e593f(0x25a)](_0x4e593f(0x1e9))['to'](this,_0x4e593f(0x1fc),_0xa2c83b=>_0xa2c83b),this[_0x4e593f(0x26e)][_0x4e593f(0x209)][_0x4e593f(0x26a)](this[_0x4e593f(0x233)]()),this[_0x4e593f(0x25a)](_0x4e593f(0x1cd))['to'](this[_0x4e593f(0x26e)][_0x4e593f(0x209)],_0x4e593f(0x1cd));}[_0x2a0ffa(0x25d)](){const _0x30f88d=_0x2a0ffa;super[_0x30f88d(0x25d)](),this[_0x30f88d(0x211)]&&clearInterval(this[_0x30f88d(0x211)]);}[_0x2a0ffa(0x1f0)](_0x14bb64){const _0x21b3a6=_0x2a0ffa,_0x30e35e=this[_0x21b3a6(0x1f9)][_0x21b3a6(0x207)][_0x21b3a6(0x1dc)](_0x21b3a6(0x1e5))??_0x5ea92d(this[_0x21b3a6(0x1f9)][_0x21b3a6(0x1dd)],_0x21b3a6(0x229));this[_0x21b3a6(0x26e)][_0x21b3a6(0x265)][_0x21b3a6(0x256)](),this[_0x21b3a6(0x26e)][_0x21b3a6(0x209)][_0x21b3a6(0x27a)](),this[_0x21b3a6(0x26e)][_0x21b3a6(0x209)][_0x21b3a6(0x1de)](_0x14bb64[_0x21b3a6(0x217)],!this[_0x21b3a6(0x1f9)][_0x21b3a6(0x207)][_0x21b3a6(0x1dc)](_0x21b3a6(0x1d4))),this[_0x21b3a6(0x234)]({'id':_0x21b3a6(0x22c),'staticMessage':_0x30e35e}),this[_0x21b3a6(0x220)](_0x21b3a6(0x1ea));}[_0x2a0ffa(0x234)]({id:_0x42e96d,staticMessage:_0x2b83e4}){const _0x24cab0=_0x2a0ffa;this[_0x24cab0(0x26e)][_0x24cab0(0x265)][_0x24cab0(0x276)](_0x24cab0(0x215),{'id':_0x42e96d,'initialContent':_0x24cab0(0x232)+_0x2b83e4+_0x24cab0(0x260)});}[_0x2a0ffa(0x1fe)](_0xefb567){const _0x2184c4=_0x2a0ffa,_0x203ba4=_0xefb567[_0x2184c4(0x20f)]?.[_0x2184c4(0x1f1)]||_0xefb567[_0x2184c4(0x21c)];this[_0x2184c4(0x26e)][_0x2184c4(0x265)][_0x2184c4(0x276)](_0x2184c4(0x1f4),{'contextItems':Array[_0x2184c4(0x258)](_0xefb567[_0x2184c4(0x25c)][_0x2184c4(0x246)]()),'initialContent':_0x2184c4(0x232)+_0x203ba4+_0x2184c4(0x260),'id':_0xefb567['id']});}[_0x2a0ffa(0x206)]({errorMessage:_0x4da9c5,id:_0x1a878b}){const _0xeca186=_0x2a0ffa;this[_0xeca186(0x26e)][_0xeca186(0x265)][_0xeca186(0x276)](_0xeca186(0x235),{'initialContent':_0xeca186(0x232)+_0x4da9c5+_0xeca186(0x260),'id':_0x1a878b});}[_0x2a0ffa(0x21b)](_0x2767e5){const _0x44817f=_0x2a0ffa;return this[_0x44817f(0x275)][_0x44817f(0x237)](async()=>{const _0xe2eb75=_0x44817f;this[_0xe2eb75(0x26e)][_0xe2eb75(0x265)][_0xe2eb75(0x276)](_0xe2eb75(0x215),{'id':_0x2767e5[_0xe2eb75(0x1fb)]+':'+_0x2767e5['id']}),this[_0xe2eb75(0x245)]();});}async[_0x2a0ffa(0x1d8)](_0x5d9bc0){const _0x959fdd=_0x2a0ffa,_0x3fea96=_0x7083ab(this[_0x959fdd(0x1f9)]);let _0x41d0b4=_0x3fea96[_0x959fdd(0x207)][_0x959fdd(0x1dc)](_0x959fdd(0x262))||[..._0x505374];if(_0x3fea96[_0x959fdd(0x216)][_0x959fdd(0x203)](_0x959fdd(0x22d))){if(!this[_0x959fdd(0x230)]){this[_0x959fdd(0x230)]=!0x0;const _0x376458=_0x3fea96[_0x959fdd(0x255)][_0x959fdd(0x1dc)](_0x959fdd(0x1cf));this[_0x959fdd(0x26e)][_0x959fdd(0x265)][_0x959fdd(0x25a)](_0x959fdd(0x267))['to'](_0x376458,_0x959fdd(0x1f8));}}else _0x41d0b4=_0x41d0b4[_0x959fdd(0x273)](_0x29aa6a=>_0x959fdd(0x24f)!=_0x29aa6a);return this[_0x959fdd(0x275)][_0x959fdd(0x237)](async()=>{const _0x4f4e41=_0x959fdd;this[_0x4f4e41(0x26e)][_0x4f4e41(0x265)][_0x4f4e41(0x276)](_0x4f4e41(0x23c),{'id':_0x5d9bc0[_0x4f4e41(0x1fb)]+':'+_0x5d9bc0['id'],'areActionsDisabled':_0x5d9bc0[_0x4f4e41(0x213)],'showDiff':this[_0x4f4e41(0x242)],'availableActions':_0x41d0b4}),this[_0x4f4e41(0x245)]();});}[_0x2a0ffa(0x210)](_0x3b2961,_0x5057e6){const _0xe34e71=_0x2a0ffa,_0x7cb3fd=this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x1f2)][_0xe34e71(0x21f)];if(_0x7cb3fd instanceof _0x2a3413)return this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x1f2)][_0xe34e71(0x1d9)](_0x7cb3fd),void this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x276)](_0xe34e71(0x240),{'id':_0x3b2961['id'],'capabilities':{'isWebSearchEnabled':_0x7cb3fd[_0xe34e71(0x239)][_0xe34e71(0x1ce)]||_0x5057e6[_0xe34e71(0x1ce)],'isReasoningEnabled':_0x7cb3fd[_0xe34e71(0x239)][_0xe34e71(0x223)]||_0x5057e6[_0xe34e71(0x223)]}});this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x276)](_0xe34e71(0x240),{'id':_0x3b2961['id'],'capabilities':_0x5057e6});}async[_0x2a0ffa(0x23b)](_0x41bea7,_0xdf571d){const _0x10baba=_0x2a0ffa;let _0x32ed62;return await this[_0x10baba(0x275)][_0x10baba(0x237)](async()=>{const _0x370822=_0x10baba;_0x32ed62=this[_0x370822(0x26e)][_0x370822(0x265)][_0x370822(0x276)](_0x370822(0x221),{'content':_0x41bea7,'id':_0xdf571d});}),_0x32ed62;}[_0x2a0ffa(0x224)](_0x43325e){const _0xa74f16=_0x2a0ffa;this[_0xa74f16(0x26e)][_0xa74f16(0x265)][_0xa74f16(0x263)](_0x43325e);}[_0x2a0ffa(0x21e)](_0x3c9dce){const _0x22e561=_0x2a0ffa;return this[_0x22e561(0x26e)][_0x22e561(0x265)][_0x22e561(0x1fa)](_0x3c9dce);}[_0x2a0ffa(0x1f5)](_0x3eaf41){const _0x53b9ec=_0x2a0ffa,_0x1b48f2=this[_0x53b9ec(0x26e)][_0x53b9ec(0x265)][_0x53b9ec(0x1f2)][_0x53b9ec(0x1e0)](_0x4ec0ae=>_0x4ec0ae[_0x53b9ec(0x219)]['id']==_0x3eaf41['id']&&_0x4ec0ae instanceof _0x2a3413);_0x1b48f2&&_0x1b48f2[_0x53b9ec(0x222)](_0x53b9ec(0x241),_0x3eaf41[_0x53b9ec(0x241)]);}async[_0x2a0ffa(0x264)](_0x5f4c60){const _0x53cc6e=_0x2a0ffa,_0x3559e2=_0x5f4c60[_0x53cc6e(0x1ec)]||this[_0x53cc6e(0x1df)];return this[_0x53cc6e(0x275)][_0x53cc6e(0x237)](async _0x39b7db=>{const _0x288fdb=_0x53cc6e;await this[_0x288fdb(0x26e)][_0x288fdb(0x265)][_0x288fdb(0x227)]({..._0x5f4c60,'abortSignal':_0x39b7db,'renderingStrategy':_0x3559e2}),_0x5f4c60[_0x288fdb(0x201)]&&this[_0x288fdb(0x22e)](_0x5f4c60['id']);});}[_0x2a0ffa(0x208)](_0x361abe,_0x1902b7){const _0x427518=_0x2a0ffa;this[_0x427518(0x26e)][_0x427518(0x265)][_0x427518(0x257)](_0x361abe,_0x1902b7);}async[_0x2a0ffa(0x1d0)](_0x1e285c){const _0x5b7970=_0x2a0ffa,_0xd91e5e=_0x1e285c[_0x5b7970(0x1ec)]||this[_0x5b7970(0x1df)];return this[_0x5b7970(0x275)][_0x5b7970(0x237)](async _0x308528=>{const _0x1567ec=_0x5b7970;await this[_0x1567ec(0x26e)][_0x1567ec(0x265)][_0x1567ec(0x21d)]({..._0x1e285c,'abortSignal':_0x308528,'renderingStrategy':_0xd91e5e}),_0x1e285c[_0x1567ec(0x201)]&&this[_0x1567ec(0x22e)](_0x1e285c['id']);});}[_0x2a0ffa(0x1d1)](_0x3ea17b){const _0x544720=_0x2a0ffa;this[_0x544720(0x26e)][_0x544720(0x265)][_0x544720(0x27c)](_0x3ea17b);}[_0x2a0ffa(0x226)](_0xefa298){const _0x118067=_0x2a0ffa;this[_0x118067(0x26e)][_0x118067(0x265)][_0x118067(0x1d6)](_0xefa298);}[_0x2a0ffa(0x22e)](_0x475a48){const _0x206b52=_0x2a0ffa;this[_0x206b52(0x26e)][_0x206b52(0x265)][_0x206b52(0x24b)](_0x475a48);}[_0x2a0ffa(0x238)](_0x2bfa87){const _0x5e7ff2=_0x2a0ffa;this[_0x5e7ff2(0x26e)][_0x5e7ff2(0x265)][_0x5e7ff2(0x277)]()[_0x5e7ff2(0x273)](_0x53c054=>_0x53c054[_0x5e7ff2(0x23f)](_0x2bfa87))[_0x5e7ff2(0x248)](_0x3a4cf7=>this[_0x5e7ff2(0x26e)][_0x5e7ff2(0x265)][_0x5e7ff2(0x263)](_0x3a4cf7));}[_0x2a0ffa(0x270)](){const _0x315778=_0x2a0ffa,_0x3dfe7a=this[_0x315778(0x1e2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x315778(0x1cc)](_0x3dfe7a),this[_0x315778(0x26e)][_0x315778(0x209)][_0x315778(0x202)](!this[_0x315778(0x1f9)][_0x315778(0x207)][_0x315778(0x1dc)](_0x315778(0x1d4))),this[_0x315778(0x1fc)]=!0x0,this[_0x315778(0x26e)][_0x315778(0x265)][_0x315778(0x200)]();}[_0x2a0ffa(0x228)](_0x1331aa){const _0x3c1b0b=_0x2a0ffa;this[_0x3c1b0b(0x275)][_0x3c1b0b(0x254)](),this[_0x3c1b0b(0x26e)][_0x3c1b0b(0x265)][_0x3c1b0b(0x277)]()[_0x3c1b0b(0x273)](_0x1c05bd=>_0x1c05bd[_0x3c1b0b(0x23f)](_0x1331aa['id']))[_0x3c1b0b(0x248)](_0x3e56d9=>this[_0x3c1b0b(0x22e)](_0x3e56d9)),this[_0x3c1b0b(0x1fc)]=!0x1,this[_0x3c1b0b(0x26e)][_0x3c1b0b(0x265)][_0x3c1b0b(0x20a)]();}async[_0x2a0ffa(0x253)](){const _0x555ba6=_0x2a0ffa;return this[_0x555ba6(0x275)][_0x555ba6(0x1e8)][_0x555ba6(0x1f7)](()=>{const _0x5a1218=_0x555ba6;this[_0x5a1218(0x1fc)]=!0x1,this[_0x5a1218(0x26e)][_0x5a1218(0x265)][_0x5a1218(0x20a)]();});}[_0x2a0ffa(0x1ee)](_0xcb5ee1,_0x4dd5f6){const _0x1937b7=_0x2a0ffa;this[_0x1937b7(0x26e)][_0x1937b7(0x209)][_0x1937b7(0x1ee)](_0xcb5ee1,_0x4dd5f6);}[_0x2a0ffa(0x212)](_0x124caf){const _0x4f372f=_0x2a0ffa;this[_0x4f372f(0x26e)][_0x4f372f(0x209)][_0x4f372f(0x212)](_0x124caf);}[_0x2a0ffa(0x1ed)](_0x148b5f,_0xc70085){const _0x5d3819=_0x2a0ffa;this[_0x5d3819(0x26e)][_0x5d3819(0x209)][_0x5d3819(0x1ed)](_0x148b5f,_0xc70085);}[_0x2a0ffa(0x22b)](_0x430b45){const _0x1d8954=_0x2a0ffa;this[_0x1d8954(0x26e)][_0x1d8954(0x209)][_0x1d8954(0x22b)](_0x430b45);}[_0x2a0ffa(0x20d)](_0x33121c){const _0x3d3f4d=_0x2a0ffa;this[_0x3d3f4d(0x26e)][_0x3d3f4d(0x209)][_0x3d3f4d(0x20d)](_0x33121c);}[_0x2a0ffa(0x251)](){const _0x55ae5d=_0x2a0ffa;this[_0x55ae5d(0x26e)][_0x55ae5d(0x209)][_0x55ae5d(0x251)]();}[_0x2a0ffa(0x26f)](){const _0x840909=_0x2a0ffa;this[_0x840909(0x26e)][_0x840909(0x209)][_0x840909(0x26f)]();}[_0x2a0ffa(0x1db)](_0x466de2,_0x5a33cb,_0x3ec379){const _0x310f9b=_0x2a0ffa;this[_0x310f9b(0x26e)][_0x310f9b(0x209)][_0x310f9b(0x1db)](_0x466de2,_0x5a33cb,_0x3ec379);}[_0x2a0ffa(0x1ff)](){const _0x481de3=_0x2a0ffa;this[_0x481de3(0x26e)][_0x481de3(0x209)][_0x481de3(0x1ff)](),this[_0x481de3(0x26e)][_0x481de3(0x209)][_0x481de3(0x26a)](this[_0x481de3(0x233)]());}[_0x2a0ffa(0x261)](_0x114e29){const _0x5afda9=_0x2a0ffa;this[_0x5afda9(0x26e)][_0x5afda9(0x209)][_0x5afda9(0x261)](_0x114e29);}[_0x2a0ffa(0x26b)](_0x2e5144){const _0x485de=_0x2a0ffa;this[_0x485de(0x26e)][_0x485de(0x209)][_0x485de(0x21a)](_0x2e5144[_0x485de(0x1ce)]),this[_0x485de(0x26e)][_0x485de(0x209)][_0x485de(0x252)](_0x2e5144[_0x485de(0x223)]),this[_0x485de(0x26e)][_0x485de(0x209)][_0x485de(0x26a)](this[_0x485de(0x233)](_0x2e5144));}[_0x2a0ffa(0x23d)](_0xb46e2f,_0x60e86e){const _0x843d44=_0x2a0ffa;this[_0x843d44(0x26e)][_0x843d44(0x209)][_0x843d44(0x20c)](_0xb46e2f),_0x60e86e&&this[_0x843d44(0x26e)][_0x843d44(0x209)][_0x843d44(0x202)](!0x1);}[_0x2a0ffa(0x1e1)](_0x396cd0){const _0x3d1229=_0x2a0ffa;this[_0x3d1229(0x1df)]=_0x396cd0;}[_0x2a0ffa(0x259)](_0x3fb747){const _0x4297f2=_0x2a0ffa;this[_0x4297f2(0x26e)][_0x4297f2(0x265)][_0x4297f2(0x259)](_0x3fb747);}[_0x2a0ffa(0x1d2)](){const _0x43960b=_0x2a0ffa;this[_0x43960b(0x205)](_0x5ea92d(this[_0x43960b(0x1f9)][_0x43960b(0x1dd)],_0x43960b(0x1d5)));}[_0x2a0ffa(0x205)](_0x1c5cc9,_0x17bd89=!0x1){const _0x493d0f=_0x2a0ffa;if(_0x17bd89&&!_0x36b33c()&&_0x1c5cc9[_0x493d0f(0x225)])return this[_0x493d0f(0x26e)][_0x493d0f(0x25b)][_0x493d0f(0x236)]='',void this[_0x493d0f(0x1eb)](_0x1c5cc9);this[_0x493d0f(0x26e)][_0x493d0f(0x25b)][_0x493d0f(0x236)]=_0x1c5cc9;}[_0x2a0ffa(0x1cc)](_0x6ee84b){const _0x451f79=_0x2a0ffa;this[_0x451f79(0x26e)][_0x451f79(0x265)][_0x451f79(0x1cc)](_0x6ee84b);}[_0x2a0ffa(0x245)](){const _0x3ae2e4=_0x2a0ffa;this[_0x3ae2e4(0x26e)][_0x3ae2e4(0x265)][_0x3ae2e4(0x1cc)]('');}[_0x2a0ffa(0x1eb)](_0x550218){const _0x3fa02b=_0x2a0ffa;let _0x325dba=0x0;clearInterval(this[_0x3fa02b(0x211)]),this[_0x3fa02b(0x211)]=setInterval(()=>{const _0xcd1501=_0x3fa02b;this[_0xcd1501(0x26e)][_0xcd1501(0x25b)][_0xcd1501(0x236)]=this[_0xcd1501(0x26e)][_0xcd1501(0x25b)][_0xcd1501(0x236)]+_0x550218[_0x325dba],_0x325dba++,_0x325dba===_0x550218[_0xcd1501(0x225)]&&clearInterval(this[_0xcd1501(0x211)]);},0x1e);}[_0x2a0ffa(0x1f3)](_0x9923f6){const _0x2ae4bd=_0x2a0ffa;this[_0x2ae4bd(0x26e)][_0x2ae4bd(0x25b)][_0x2ae4bd(0x1cb)]=_0x9923f6;}[_0x2a0ffa(0x1e2)](_0x32e1c9){const _0x31d36d=_0x2a0ffa;return _0x32e1c9[_0x31d36d(0x1ce)]&&_0x32e1c9[_0x31d36d(0x223)]?_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x26c)):_0x32e1c9[_0x31d36d(0x1ce)]?_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x268)):_0x32e1c9[_0x31d36d(0x223)]?_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x1e6)):_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x1f6));}[_0x2a0ffa(0x233)](_0x3ec333){const _0x44e892=_0x2a0ffa;return _0x3ec333?_0x3ec333[_0x44e892(0x1ce)]&&_0x3ec333[_0x44e892(0x223)]?_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x249)):_0x3ec333[_0x44e892(0x1ce)]?_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x27b)):_0x3ec333[_0x44e892(0x223)]?_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x204)):_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x1ca)):_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x1ca));}[_0x2a0ffa(0x26d)](_0x253c6b,_0x2dd29c,_0x356b30,_0x1b32ca){const _0x300b67=_0x2a0ffa;this[_0x300b67(0x26e)][_0x300b67(0x26d)](_0x253c6b,_0x2dd29c,_0x356b30,_0x1b32ca);}[_0x2a0ffa(0x23a)](_0x24db8b){const _0x4f85ec=_0x2a0ffa;this[_0x4f85ec(0x26e)][_0x4f85ec(0x23a)](_0x24db8b);}[_0x2a0ffa(0x247)](_0x5a0d99){const _0xa732=_0x2a0ffa;this[_0xa732(0x26e)][_0xa732(0x209)][_0xa732(0x247)](_0x5a0d99);}[_0x2a0ffa(0x274)](_0xdb3dae=!0x1){const _0x33f8d3=_0x2a0ffa;this[_0x33f8d3(0x26e)][_0x33f8d3(0x209)][_0x33f8d3(0x274)](_0xdb3dae);}[_0x2a0ffa(0x1ef)](_0x1606c9,_0x178f9a){const _0x446afc=_0x2a0ffa;this[_0x446afc(0x26e)][_0x446afc(0x265)][_0x446afc(0x250)](_0x1606c9,_0x178f9a);}[_0x2a0ffa(0x200)](){const _0x21964e=_0x2a0ffa;this[_0x21964e(0x26e)][_0x21964e(0x265)][_0x21964e(0x200)]();}[_0x2a0ffa(0x244)](){const _0x1eff6e=_0x2a0ffa;this[_0x1eff6e(0x26e)][_0x1eff6e(0x209)][_0x1eff6e(0x24e)]=!0x0;}[_0x2a0ffa(0x1d3)](){const _0x30aa4f=_0x2a0ffa;this[_0x30aa4f(0x26e)][_0x30aa4f(0x209)][_0x30aa4f(0x24e)]=!0x1;}}function _0xe7ea(){const _0x5e707f=['children','setIsMaximized','user-message','updateFeedInteractionHeader','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','then','value','context','hasItem','interactionId','isBusy','22alnarw','addFeedItemUserMessage','resetMessageInput','startAutoScroll','isDone','disableModelSelector','has','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setConversationTitle','addFeedItemError','config','updateFeedItemAIReplySources','chatControls','stopAutoScroll','667593zrFnbB','setModel','setConversationContext','showResizeButton','attributes','addFeedInteractionHeader','_titleAnimationInterval','removeContextItem','areActionsDisabled','_interactionPromiseResolver','ai-reply','plugins','availableModels','isPremiumPlugin','options','setWebSearch','addFeedItemAIReply','userMessage','updateSuggestionItem','hasFeedItem','last','fire','custom-element','set','isReasoningEnabled','removeFeedItem','length','setFeedItemAIReplySuggestionPartActive','updateReplyItem','stopInteraction','AI_CHAT_WELCOME_MESSAGE','isLoading','setIsUploadInProgress','conversation-start','TrackChanges','markFeedItemAsDone','addTab','_isTrackChangesCommandValueBound','7AzFOdl','<p>','_getInputPlaceholder','addFeedItemStaticMessage','error-message','label','enqueue','removeFeedInteraction','capabilities','closeSourceResourceBalloon','addFeedItemCustomElement','ai-suggestion-reply','setSelectedModel','pluginName','startsWith','interaction-header','isVisible','showDiff','chat','disableControls','clearLoadingMessage','values','setPromptInputValue','forEach','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','178389QLgDTX','markItemAsDone','42243Dceujd','isOfficialPlugin','isDisabled','insertSuggestion','scrollToSuggestion','clearPendingContextUI','setReasoning','finishInteraction','abort','commands','clear','updateWebSources','from','toggleLoadingSkeleton','bind','chatHeader','contextItems','destroy','view','30EpReBe','</p>','setAddContextOptions','ai.availableReplyActions','removeItem','updateFeedItemAIReplyContent','chatFeed','ai.chat.context.searchInputVisibleFrom','isTrackChangesOn','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','6349486wmAPDO','setInputPlaceholder','updateCapabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','populateSourceResourceBalloon','_view','clearConversationContextUI','startInteraction','streaming','toggleSuggestionDisplayMode','filter','focusPromptInput','_promiseQueue','addItem','getItemIds','4cZUZbn','AIChatUI','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateSuggestionPartState','delegate','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isMaximized','setLoadingMessage','isModelAvailable','isWebSearchEnabled','trackChanges','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplySuggestionPartState','resetConversationTitle','enableControls','ai.models.showModelSelector','AI_CHAT_HEADING','setSuggestionPartActive','requires','addFeedItemAISuggestion','remove','1305376EcTOeN','updateResourceState','get','locale','setModelList','feedItemRenderingStrategy','find','setFeedItemRenderingStrategy','prepareLoadingMessage','704502ivfAkL','1085220NDAqRY','ai.chat.welcomeMessage','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AITabs','queueEmptyPromise','isPending','conversationCreated','_animateConversationTitle','renderingStrategy','setContextItemLoading','addContextItem','scrollFeedToSuggestion','createConversation','displayedPrompt'];_0xe7ea=function(){return _0x5e707f;};return _0xe7ea();}
23
+ const _0x529712=_0x4dcc;(function(_0xc6dc0b,_0x25133){const _0x4631e5=_0x4dcc,_0x4ec864=_0xc6dc0b();while(!![]){try{const _0x1cb6f3=parseInt(_0x4631e5(0x1e6))/0x1+parseInt(_0x4631e5(0x1d0))/0x2*(parseInt(_0x4631e5(0x18c))/0x3)+-parseInt(_0x4631e5(0x1be))/0x4*(parseInt(_0x4631e5(0x1cc))/0x5)+parseInt(_0x4631e5(0x1e7))/0x6*(parseInt(_0x4631e5(0x17b))/0x7)+-parseInt(_0x4631e5(0x1aa))/0x8+parseInt(_0x4631e5(0x181))/0x9+-parseInt(_0x4631e5(0x17f))/0xa;if(_0x1cb6f3===_0x25133)break;else _0x4ec864['push'](_0x4ec864['shift']());}catch(_0x2acdfc){_0x4ec864['push'](_0x4ec864['shift']());}}}(_0x3098,0x21771));import{ContextPlugin as _0x2c780f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4e9925}from'ckeditor5/src/utils.js';import{AIChatView as _0x566c5b}from'./ui/aichatview.js';import{AITabs as _0x4d0825}from'../aitabs/aitabs.js';import{getTranslation as _0x4d6b1f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x37d766}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4484ad}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x36b1c2}from'./utils/promisequeue.js';function _0x4dcc(_0x2b45bb,_0x236efe){const _0x309810=_0x3098();return _0x4dcc=function(_0x4dcccd,_0x14a26a){_0x4dcccd=_0x4dcccd-0x16b;let _0x3d4c63=_0x309810[_0x4dcccd];return _0x3d4c63;},_0x4dcc(_0x2b45bb,_0x236efe);}import{AI_CHAT_UI_EVENT_NAMES as _0x3acec6}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x178c24}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5cfec2}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x3098(){const _0x454687=['resetMessageInput','clearPendingContextUI','finishInteraction','chatFeed','setContextItemLoading','addFeedItemError','setModel','setConversationContext','removeItem','addFeedItemStaticMessage','label','_titleAnimationInterval','resetConversationTitle','children','last','</p>','333704lXuDpT','addContextItem','setSuggestionPartActive','addFeedItemCustomElement','enableControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateFeedItemAIReplyContent','addFeedItemAISuggestion','disableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setFeedItemAIReplySuggestionPartActive','addFeedItemUserMessage','AIChatUI','scrollFeedToSuggestion','10obpbYU','clear','stopAutoScroll','_animateConversationTitle','2knurjy','chatControls','context','startAutoScroll','scrollToSuggestion','conversation-start','createConversation','enableModelSelector','filter','_promiseQueue','queueEmptyPromise','value','_getInputPlaceholder','renderingStrategy','setIsUploadInProgress','ai-reply','markItemAsDone','trackChanges','fire','updateFeedInteractionHeader','setSelectedModel','ai-suggestion-reply','191139oYRIsA','1464984NkcYYV','getItemIds','addFeedInteractionHeader','populateSourceResourceBalloon','remove','isVisible','interaction-header','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','removeFeedInteraction','markFeedItemAsDone','bind','interactionId','ai.models.showModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateFeedItemAIReplySuggestionPartState','isReasoningEnabled','attributes','updateCapabilities','ai.chat.welcomeMessage','forEach','displayedPrompt','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','isLoading','requires','has','availableModels','feedItemRenderingStrategy','chat','find','startsWith','updateSuggestionItem','isPremiumPlugin','isPending','abort','clearConversationContextUI','set','enqueue','chatHeader','updateFeedItemAIReplySources','delegate','isDone','_interactionPromiseResolver','view','error-message','toggleLoadingSkeleton','addItem','locale','get','config','clearLoadingMessage','isWebSearchEnabled','isModelAvailable','setIsMaximized','setLoadingMessage','addFeedItemAIReply','isOfficialPlugin','AITabs','showResizeButton','setConversationTitle','isMaximized','destroy','length','isBusy','setModelList','updateSuggestionPartState','showDiff','updateReplyItem','AI_CHAT_WELCOME_MESSAGE','addTab','7MShHWw','custom-element','closeSourceResourceBalloon','userMessage','836760TWSkdC','_isTrackChangesCommandValueBound','539244ZusLgX','user-message','updateWebSources','stopInteraction','TrackChanges','setFeedItemRenderingStrategy','updateFeedItemAIReplySuggestionContent','values','removeFeedItem','hasItem','prepareLoadingMessage','229545eUSFcz','conversationCreated','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','disableControls','startInteraction','AI_CHAT_HEADING','then','<p>','toggleSuggestionDisplayMode','insertSuggestion','setReasoning','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','ai.availableReplyActions','isDisabled','streaming','setWebSearch','from','commands','hasFeedItem','plugins','isTrackChangesOn','contextItems','areActionsDisabled','options','setPromptInputValue','setAddContextOptions','pluginName','setInputPlaceholder','removeContextItem','ai.chat.context.searchInputVisibleFrom','1473064uIXAXj','_view','updateResourceState','focusPromptInput'];_0x3098=function(){return _0x454687;};return _0x3098();}export class AIChatUI extends _0x2c780f{static get[_0x529712(0x200)](){return[_0x4d0825];}[_0x529712(0x1ab)];static get[_0x529712(0x1a6)](){const _0x5c711d=_0x529712;return _0x5c711d(0x1ca);}static get[_0x529712(0x16d)](){return!0x0;}static get[_0x529712(0x208)](){return!0x0;}[_0x529712(0x203)]=_0x529712(0x19a);[_0x529712(0x177)]=!0x0;[_0x529712(0x1d9)];[_0x529712(0x212)];[_0x529712(0x1b9)]=void 0x0;[_0x529712(0x180)]=!0x1;constructor(_0x48b05e){const _0x558954=_0x529712;super(_0x48b05e);const _0x281a0d=this[_0x558954(0x1d2)][_0x558954(0x19f)][_0x558954(0x218)](_0x558954(0x16e));this[_0x558954(0x20c)](_0x558954(0x174),!0x1),this[_0x558954(0x1d9)]=new _0x36b1c2(),this[_0x558954(0x1ab)]=new _0x566c5b(this[_0x558954(0x1d2)][_0x558954(0x217)],{'showResizeButton':_0x281a0d[_0x558954(0x16f)],'contextResourcesSearchInputVisibleFrom':this[_0x558954(0x1d2)][_0x558954(0x219)][_0x558954(0x218)](_0x558954(0x1a9))}),this[_0x558954(0x1ab)][_0x558954(0x210)](..._0x3acec6)['to'](this),this[_0x558954(0x1ab)]['on'](_0x558954(0x194),(_0x26a039,{showDiff:_0x496439})=>{const _0x3d4421=_0x558954;this[_0x3d4421(0x177)]=_0x496439;}),_0x281a0d[_0x558954(0x213)][_0x558954(0x17a)]({'id':_0x558954(0x204),'buttonLabel':_0x4d6b1f(this[_0x558954(0x1d2)][_0x558954(0x217)],_0x558954(0x191)),'buttonIcon':_0x37d766,'order':0x0,'content':this[_0x558954(0x1ab)]}),this[_0x558954(0x1ab)][_0x558954(0x1d1)][_0x558954(0x1f1)](_0x558954(0x1ff))['to'](this,_0x558954(0x174),_0xe230c2=>_0xe230c2),this[_0x558954(0x1ab)][_0x558954(0x1b1)][_0x558954(0x1f1)](_0x558954(0x209))['to'](this,_0x558954(0x174),_0x545a88=>_0x545a88),this[_0x558954(0x1ab)][_0x558954(0x1d1)][_0x558954(0x1a7)](this[_0x558954(0x1dc)]()),this[_0x558954(0x1f1)](_0x558954(0x21c))['to'](this[_0x558954(0x1ab)][_0x558954(0x1d1)],_0x558954(0x21c));}[_0x529712(0x172)](){const _0x15eb3c=_0x529712;super[_0x15eb3c(0x172)](),this[_0x15eb3c(0x1b9)]&&clearInterval(this[_0x15eb3c(0x1b9)]);}[_0x529712(0x1d6)](_0x22db02){const _0xd273e2=_0x529712,_0x51ccf0=this[_0xd273e2(0x1d2)][_0xd273e2(0x219)][_0xd273e2(0x218)](_0xd273e2(0x1fa))??_0x4d6b1f(this[_0xd273e2(0x1d2)][_0xd273e2(0x217)],_0xd273e2(0x179));this[_0xd273e2(0x1ab)][_0xd273e2(0x1b1)][_0xd273e2(0x1cd)](),this[_0xd273e2(0x1ab)][_0xd273e2(0x1d1)][_0xd273e2(0x1d7)](),this[_0xd273e2(0x1ab)][_0xd273e2(0x1d1)][_0xd273e2(0x175)](_0x22db02[_0xd273e2(0x202)],!this[_0xd273e2(0x1d2)][_0xd273e2(0x219)][_0xd273e2(0x218)](_0xd273e2(0x1f3))),this[_0xd273e2(0x1b7)]({'id':_0xd273e2(0x1d5),'staticMessage':_0x51ccf0}),this[_0xd273e2(0x1e2)](_0xd273e2(0x18d));}[_0x529712(0x1b7)]({id:_0xec523f,staticMessage:_0x115cc4}){const _0x1acf5a=_0x529712;this[_0x1acf5a(0x1ab)][_0x1acf5a(0x1b1)][_0x1acf5a(0x216)](_0x1acf5a(0x1df),{'id':_0xec523f,'initialContent':_0x1acf5a(0x193)+_0x115cc4+_0x1acf5a(0x1bd)});}[_0x529712(0x1c9)](_0x38d208){const _0xbbb121=_0x529712,_0x23a7ef=_0x38d208[_0xbbb121(0x1f8)]?.[_0xbbb121(0x1fc)]||_0x38d208[_0xbbb121(0x17e)];this[_0xbbb121(0x1ab)][_0xbbb121(0x1b1)][_0xbbb121(0x216)](_0xbbb121(0x182),{'contextItems':Array[_0xbbb121(0x19c)](_0x38d208[_0xbbb121(0x1a1)][_0xbbb121(0x188)]()),'initialContent':_0xbbb121(0x193)+_0x23a7ef+_0xbbb121(0x1bd),'id':_0x38d208['id']});}[_0x529712(0x1b3)]({errorMessage:_0x5044d9,id:_0x5320bc}){const _0x3f9d77=_0x529712;this[_0x3f9d77(0x1ab)][_0x3f9d77(0x1b1)][_0x3f9d77(0x216)](_0x3f9d77(0x214),{'initialContent':_0x3f9d77(0x193)+_0x5044d9+_0x3f9d77(0x1bd),'id':_0x5320bc});}[_0x529712(0x16c)](_0x3e8057){const _0x255197=_0x529712;return this[_0x255197(0x1d9)][_0x255197(0x20d)](async()=>{const _0x2db58a=_0x255197;this[_0x2db58a(0x1ab)][_0x2db58a(0x1b1)][_0x2db58a(0x216)](_0x2db58a(0x1df),{'id':_0x3e8057[_0x2db58a(0x1f2)]+':'+_0x3e8057['id']}),this[_0x2db58a(0x21a)]();});}async[_0x529712(0x1c5)](_0x1b5e3d){const _0x27cec5=_0x529712,_0x4cd7c9=_0x178c24(this[_0x27cec5(0x1d2)]);let _0xb8c206=_0x4cd7c9[_0x27cec5(0x219)][_0x27cec5(0x218)](_0x27cec5(0x198))||[..._0x5cfec2];if(_0x4cd7c9[_0x27cec5(0x19f)][_0x27cec5(0x201)](_0x27cec5(0x185))){if(!this[_0x27cec5(0x180)]){this[_0x27cec5(0x180)]=!0x0;const _0x21d168=_0x4cd7c9[_0x27cec5(0x19d)][_0x27cec5(0x218)](_0x27cec5(0x1e1));this[_0x27cec5(0x1ab)][_0x27cec5(0x1b1)][_0x27cec5(0x1f1)](_0x27cec5(0x1a0))['to'](_0x21d168,_0x27cec5(0x1db));}}else _0xb8c206=_0xb8c206[_0x27cec5(0x1d8)](_0xc8cc6=>_0x27cec5(0x195)!=_0xc8cc6);return this[_0x27cec5(0x1d9)][_0x27cec5(0x20d)](async()=>{const _0x154437=_0x27cec5;this[_0x154437(0x1ab)][_0x154437(0x1b1)][_0x154437(0x216)](_0x154437(0x1e5),{'id':_0x1b5e3d[_0x154437(0x1f2)]+':'+_0x1b5e3d['id'],'areActionsDisabled':_0x1b5e3d[_0x154437(0x1a2)],'showDiff':this[_0x154437(0x177)],'availableActions':_0xb8c206}),this[_0x154437(0x21a)]();});}[_0x529712(0x1e9)](_0x4ae250,_0x8fef15){const _0x294592=_0x529712,_0x3fc228=this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x1bb)][_0x294592(0x1bc)];if(_0x3fc228 instanceof _0x4484ad)return this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x1bb)][_0x294592(0x1eb)](_0x3fc228),void this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x216)](_0x294592(0x1ed),{'id':_0x4ae250['id'],'capabilities':{'isWebSearchEnabled':_0x3fc228[_0x294592(0x1fd)][_0x294592(0x21b)]||_0x8fef15[_0x294592(0x21b)],'isReasoningEnabled':_0x3fc228[_0x294592(0x1fd)][_0x294592(0x1f7)]||_0x8fef15[_0x294592(0x1f7)]}});this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x216)](_0x294592(0x1ed),{'id':_0x4ae250['id'],'capabilities':_0x8fef15});}async[_0x529712(0x1c1)](_0x2496e6,_0x401107){const _0x9cf743=_0x529712;let _0x33f75a;return await this[_0x9cf743(0x1d9)][_0x9cf743(0x20d)](async()=>{const _0x477456=_0x9cf743;_0x33f75a=this[_0x477456(0x1ab)][_0x477456(0x1b1)][_0x477456(0x216)](_0x477456(0x17c),{'content':_0x2496e6,'id':_0x401107});}),_0x33f75a;}[_0x529712(0x189)](_0x4e5f01){const _0x10b701=_0x529712;this[_0x10b701(0x1ab)][_0x10b701(0x1b1)][_0x10b701(0x1b6)](_0x4e5f01);}[_0x529712(0x19e)](_0x3c3664){const _0x1a2e16=_0x529712;return this[_0x1a2e16(0x1ab)][_0x1a2e16(0x1b1)][_0x1a2e16(0x18a)](_0x3c3664);}[_0x529712(0x1e3)](_0x2c9543){const _0x5c712a=_0x529712,_0x332ca7=this[_0x5c712a(0x1ab)][_0x5c712a(0x1b1)][_0x5c712a(0x1bb)][_0x5c712a(0x205)](_0x53e860=>_0x53e860[_0x5c712a(0x1a3)]['id']==_0x2c9543['id']&&_0x53e860 instanceof _0x4484ad);_0x332ca7&&_0x332ca7[_0x5c712a(0x20c)](_0x5c712a(0x1ec),_0x2c9543[_0x5c712a(0x1ec)]);}async[_0x529712(0x1c4)](_0x2739da){const _0x43c352=_0x529712,_0x19783c=_0x2739da[_0x43c352(0x1dd)]||this[_0x43c352(0x203)];return this[_0x43c352(0x1d9)][_0x43c352(0x20d)](async _0x5cc250=>{const _0x3f53a5=_0x43c352;await this[_0x3f53a5(0x1ab)][_0x3f53a5(0x1b1)][_0x3f53a5(0x178)]({..._0x2739da,'abortSignal':_0x5cc250,'renderingStrategy':_0x19783c}),_0x2739da[_0x3f53a5(0x211)]&&this[_0x3f53a5(0x1f0)](_0x2739da['id']);});}[_0x529712(0x20f)](_0x44301d,_0x362361){const _0x529bdf=_0x529712;this[_0x529bdf(0x1ab)][_0x529bdf(0x1b1)][_0x529bdf(0x183)](_0x44301d,_0x362361);}async[_0x529712(0x187)](_0x5b00ca){const _0xe4a890=_0x529712,_0x536d4a=_0x5b00ca[_0xe4a890(0x1dd)]||this[_0xe4a890(0x203)];return this[_0xe4a890(0x1d9)][_0xe4a890(0x20d)](async _0xb713e1=>{const _0x2e5336=_0xe4a890;await this[_0x2e5336(0x1ab)][_0x2e5336(0x1b1)][_0x2e5336(0x207)]({..._0x5b00ca,'abortSignal':_0xb713e1,'renderingStrategy':_0x536d4a}),_0x5b00ca[_0x2e5336(0x211)]&&this[_0x2e5336(0x1f0)](_0x5b00ca['id']);});}[_0x529712(0x1f6)](_0x449dcb){const _0x50c641=_0x529712;this[_0x50c641(0x1ab)][_0x50c641(0x1b1)][_0x50c641(0x176)](_0x449dcb);}[_0x529712(0x1c8)](_0x1c54c0){const _0x5b81cd=_0x529712;this[_0x5b81cd(0x1ab)][_0x5b81cd(0x1b1)][_0x5b81cd(0x1c0)](_0x1c54c0);}[_0x529712(0x1f0)](_0x31dfa9){const _0x420cd4=_0x529712;this[_0x420cd4(0x1ab)][_0x420cd4(0x1b1)][_0x420cd4(0x1e0)](_0x31dfa9);}[_0x529712(0x1ef)](_0x516291){const _0x4d9eea=_0x529712;this[_0x4d9eea(0x1ab)][_0x4d9eea(0x1b1)][_0x4d9eea(0x1e8)]()[_0x4d9eea(0x1d8)](_0x421233=>_0x421233[_0x4d9eea(0x206)](_0x516291))[_0x4d9eea(0x1fb)](_0xcc2a9=>this[_0x4d9eea(0x1ab)][_0x4d9eea(0x1b1)][_0x4d9eea(0x1b6)](_0xcc2a9));}[_0x529712(0x190)](){const _0x520e64=_0x529712,_0x4627bb=this[_0x520e64(0x18b)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x520e64(0x16b)](_0x4627bb),this[_0x520e64(0x1ab)][_0x520e64(0x1d1)][_0x520e64(0x1c6)](!this[_0x520e64(0x1d2)][_0x520e64(0x219)][_0x520e64(0x218)](_0x520e64(0x1f3))),this[_0x520e64(0x174)]=!0x0,this[_0x520e64(0x1ab)][_0x520e64(0x1b1)][_0x520e64(0x1d3)]();}[_0x529712(0x184)](_0x25d3ee){const _0x59465d=_0x529712;this[_0x59465d(0x1d9)][_0x59465d(0x20a)](),this[_0x59465d(0x1ab)][_0x59465d(0x1b1)][_0x59465d(0x1e8)]()[_0x59465d(0x1d8)](_0x4925c9=>_0x4925c9[_0x59465d(0x206)](_0x25d3ee['id']))[_0x59465d(0x1fb)](_0x29a157=>this[_0x59465d(0x1f0)](_0x29a157)),this[_0x59465d(0x174)]=!0x1,this[_0x59465d(0x1ab)][_0x59465d(0x1b1)][_0x59465d(0x1ce)]();}async[_0x529712(0x1b0)](){const _0x44deb2=_0x529712;return this[_0x44deb2(0x1d9)][_0x44deb2(0x1da)][_0x44deb2(0x192)](()=>{const _0x221fe5=_0x44deb2;this[_0x221fe5(0x174)]=!0x1,this[_0x221fe5(0x1ab)][_0x221fe5(0x1b1)][_0x221fe5(0x1ce)]();});}[_0x529712(0x1bf)](_0x3e4f3c,_0x56ae3d){const _0x3e212f=_0x529712;this[_0x3e212f(0x1ab)][_0x3e212f(0x1d1)][_0x3e212f(0x1bf)](_0x3e4f3c,_0x56ae3d);}[_0x529712(0x1a8)](_0x4fa1a5){const _0x30afad=_0x529712;this[_0x30afad(0x1ab)][_0x30afad(0x1d1)][_0x30afad(0x1a8)](_0x4fa1a5);}[_0x529712(0x1b2)](_0x5c2df2,_0x389996){const _0x590333=_0x529712;this[_0x590333(0x1ab)][_0x590333(0x1d1)][_0x590333(0x1b2)](_0x5c2df2,_0x389996);}[_0x529712(0x1de)](_0x5cdf3e){const _0x594df0=_0x529712;this[_0x594df0(0x1ab)][_0x594df0(0x1d1)][_0x594df0(0x1de)](_0x5cdf3e);}[_0x529712(0x1b5)](_0x2af990){const _0x2dd0a9=_0x529712;this[_0x2dd0a9(0x1ab)][_0x2dd0a9(0x1d1)][_0x2dd0a9(0x1b5)](_0x2af990);}[_0x529712(0x1af)](){const _0x53d398=_0x529712;this[_0x53d398(0x1ab)][_0x53d398(0x1d1)][_0x53d398(0x1af)]();}[_0x529712(0x20b)](){const _0x230e73=_0x529712;this[_0x230e73(0x1ab)][_0x230e73(0x1d1)][_0x230e73(0x20b)]();}[_0x529712(0x1ac)](_0x50d434,_0x5a57a6,_0x580552){const _0x269914=_0x529712;this[_0x269914(0x1ab)][_0x269914(0x1d1)][_0x269914(0x1ac)](_0x50d434,_0x5a57a6,_0x580552);}[_0x529712(0x1ae)](){const _0xe77b8c=_0x529712;this[_0xe77b8c(0x1ab)][_0xe77b8c(0x1d1)][_0xe77b8c(0x1ae)](),this[_0xe77b8c(0x1ab)][_0xe77b8c(0x1d1)][_0xe77b8c(0x1a7)](this[_0xe77b8c(0x1dc)]());}[_0x529712(0x1a5)](_0x3fc531){const _0x2b5e39=_0x529712;this[_0x2b5e39(0x1ab)][_0x2b5e39(0x1d1)][_0x2b5e39(0x1a5)](_0x3fc531);}[_0x529712(0x1f9)](_0x881803){const _0x59d715=_0x529712;this[_0x59d715(0x1ab)][_0x59d715(0x1d1)][_0x59d715(0x19b)](_0x881803[_0x59d715(0x21b)]),this[_0x59d715(0x1ab)][_0x59d715(0x1d1)][_0x59d715(0x196)](_0x881803[_0x59d715(0x1f7)]),this[_0x59d715(0x1ab)][_0x59d715(0x1d1)][_0x59d715(0x1a7)](this[_0x59d715(0x1dc)](_0x881803));}[_0x529712(0x1e4)](_0x4e7167,_0x568af5){const _0x34f97d=_0x529712;this[_0x34f97d(0x1ab)][_0x34f97d(0x1d1)][_0x34f97d(0x1b4)](_0x4e7167),_0x568af5&&this[_0x34f97d(0x1ab)][_0x34f97d(0x1d1)][_0x34f97d(0x1c6)](!0x1);}[_0x529712(0x186)](_0x42de5b){const _0x263094=_0x529712;this[_0x263094(0x203)]=_0x42de5b;}[_0x529712(0x215)](_0x48d54c){const _0x127076=_0x529712;this[_0x127076(0x1ab)][_0x127076(0x1b1)][_0x127076(0x215)](_0x48d54c);}[_0x529712(0x1ba)](){const _0x4620fe=_0x529712;this[_0x4620fe(0x170)](_0x4d6b1f(this[_0x4620fe(0x1d2)][_0x4620fe(0x217)],_0x4620fe(0x191)));}[_0x529712(0x170)](_0x414b24,_0x6892f4=!0x1){const _0xe8cbba=_0x529712;if(_0x6892f4&&!_0x4e9925()&&_0x414b24[_0xe8cbba(0x173)])return this[_0xe8cbba(0x1ab)][_0xe8cbba(0x20e)][_0xe8cbba(0x1b8)]='',void this[_0xe8cbba(0x1cf)](_0x414b24);this[_0xe8cbba(0x1ab)][_0xe8cbba(0x20e)][_0xe8cbba(0x1b8)]=_0x414b24;}[_0x529712(0x16b)](_0x58093f){const _0x1e8c74=_0x529712;this[_0x1e8c74(0x1ab)][_0x1e8c74(0x1b1)][_0x1e8c74(0x16b)](_0x58093f);}[_0x529712(0x21a)](){const _0x34ab39=_0x529712;this[_0x34ab39(0x1ab)][_0x34ab39(0x1b1)][_0x34ab39(0x16b)]('');}[_0x529712(0x1cf)](_0x15a084){const _0x27befe=_0x529712;let _0x23794e=0x0;clearInterval(this[_0x27befe(0x1b9)]),this[_0x27befe(0x1b9)]=setInterval(()=>{const _0x25d62b=_0x27befe;this[_0x25d62b(0x1ab)][_0x25d62b(0x20e)][_0x25d62b(0x1b8)]=this[_0x25d62b(0x1ab)][_0x25d62b(0x20e)][_0x25d62b(0x1b8)]+_0x15a084[_0x23794e],_0x23794e++,_0x23794e===_0x15a084[_0x25d62b(0x173)]&&clearInterval(this[_0x25d62b(0x1b9)]);},0x1e);}[_0x529712(0x21d)](_0x1b2d32){const _0xabf0=_0x529712;this[_0xabf0(0x1ab)][_0xabf0(0x20e)][_0xabf0(0x171)]=_0x1b2d32;}[_0x529712(0x18b)](_0x32c34d){const _0x22253e=_0x529712;return _0x32c34d[_0x22253e(0x21b)]&&_0x32c34d[_0x22253e(0x1f7)]?_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x1fe)):_0x32c34d[_0x22253e(0x21b)]?_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x18e)):_0x32c34d[_0x22253e(0x1f7)]?_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x1f5)):_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x1ee));}[_0x529712(0x1dc)](_0x202b19){const _0x2290e6=_0x529712;return _0x202b19?_0x202b19[_0x2290e6(0x21b)]&&_0x202b19[_0x2290e6(0x1f7)]?_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x1f4)):_0x202b19[_0x2290e6(0x21b)]?_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x1c3)):_0x202b19[_0x2290e6(0x1f7)]?_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x1c7)):_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x197)):_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x197));}[_0x529712(0x1ea)](_0x4e43d9,_0xd1ca24,_0x547427,_0x15b451){const _0x50226c=_0x529712;this[_0x50226c(0x1ab)][_0x50226c(0x1ea)](_0x4e43d9,_0xd1ca24,_0x547427,_0x15b451);}[_0x529712(0x17d)](_0x5ba8fd){const _0x2c9e34=_0x529712;this[_0x2c9e34(0x1ab)][_0x2c9e34(0x17d)](_0x5ba8fd);}[_0x529712(0x1a4)](_0x357148){const _0x250d12=_0x529712;this[_0x250d12(0x1ab)][_0x250d12(0x1d1)][_0x250d12(0x1a4)](_0x357148);}[_0x529712(0x1ad)](_0x5a23f3=!0x1){const _0x4c0560=_0x529712;this[_0x4c0560(0x1ab)][_0x4c0560(0x1d1)][_0x4c0560(0x1ad)](_0x5a23f3);}[_0x529712(0x1cb)](_0xc8d3d6,_0x30fec3){const _0xab5697=_0x529712;this[_0xab5697(0x1ab)][_0xab5697(0x1b1)][_0xab5697(0x1d4)](_0xc8d3d6,_0x30fec3);}[_0x529712(0x1d3)](){const _0x10070d=_0x529712;this[_0x10070d(0x1ab)][_0x10070d(0x1b1)][_0x10070d(0x1d3)]();}[_0x529712(0x18f)](){const _0x5f94e8=_0x529712;this[_0x5f94e8(0x1ab)][_0x5f94e8(0x1d1)][_0x5f94e8(0x199)]=!0x0;}[_0x529712(0x1c2)](){const _0x24a006=_0x529712;this[_0x24a006(0x1ab)][_0x24a006(0x1d1)][_0x24a006(0x199)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27a96b=_0x9508;(function(_0x11bcbb,_0x41a815){const _0x20396b=_0x9508,_0x1c3fef=_0x11bcbb();while(!![]){try{const _0x489aa2=-parseInt(_0x20396b(0x197))/0x1+parseInt(_0x20396b(0x16e))/0x2*(parseInt(_0x20396b(0x187))/0x3)+-parseInt(_0x20396b(0x152))/0x4+-parseInt(_0x20396b(0x1a0))/0x5+parseInt(_0x20396b(0x198))/0x6+parseInt(_0x20396b(0x159))/0x7*(parseInt(_0x20396b(0x1ce))/0x8)+-parseInt(_0x20396b(0x156))/0x9;if(_0x489aa2===_0x41a815)break;else _0x1c3fef['push'](_0x1c3fef['shift']());}catch(_0xbc73a2){_0x1c3fef['push'](_0x1c3fef['shift']());}}}(_0x5ecb,0xa6511));import{CKEditorError as _0x96d3b4,ObservableMixin as _0xe85e33,uid as _0x32b7ae}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4c0c19,AIContextTextResourceType as _0x203c83}from'../../aicore/model/aicontext.js';import{escape as _0x1533d3}from'es-toolkit/compat';import{errorsMap as _0x8de527}from'../../errorsmap.js';function _0x9508(_0x1cf429,_0x1fb513){const _0x5ecb0a=_0x5ecb();return _0x9508=function(_0x95081b,_0x1c9873){_0x95081b=_0x95081b-0x145;let _0x39f5c0=_0x5ecb0a[_0x95081b];return _0x39f5c0;},_0x9508(_0x1cf429,_0x1fb513);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x27a96b(0x1cd),_0x27a96b(0x168),_0x27a96b(0x1b3),_0x27a96b(0x1c7),_0x27a96b(0x151),_0x27a96b(0x169),_0x27a96b(0x1c5),_0x27a96b(0x14d),_0x27a96b(0x1b5)];function _0x5ecb(){const _0x57a565=['isCurrentDocumentInConversation','hidden','name','all','contextItemRemoved','addContextOptionsChanged','getSentContextItems','text/html','sources','_findSourceIdsByResourceId','1588BLsVAQ','isCurrentDocumentInContext','_pendingContextItems','ai-chat-url-upload-failed','clearPendingContextItems','attributes','DOCUMENT','_ongoingUploads','_addContextItem','removeFromContext','enabled','addToolItemToContext','delete','uploadUrl','URL','init','text/plain','updateCurrentDocument','file-','addCurrentDocumentToContext','uiId','ai-chat-context-unsupported-type','isInContext','end','toolName','3369lzQeOI','resources','getId','length','urls','_ownerId','addUrlToContext','HTML','label','files','values','substring','uploadDocument','MARKDOWN','start','ai-chat-file-upload-failed','40928IiJaTT','5241138CSIfmV','_convertTextResourceToFile','Current\x20document','message','url','string','find','addToConversationContext','145690uFmqyT','SELECTION','isSelectionInContext','abort','fetchDocument','ai-chat-source-not-found','isReadOnly','_startUploadOperation','getDocument','forEach','addSelectionToContext','ai-chat-resource-no-data','url-','from','startsWith','set','push','size','addFilesToContext','contextItemLoadingEnded','FILE','uploadProgressChanged','_getCustomSourcesInitialState','has','resourceId','document','content','populateFromMessage','fire','customItems','_toggleAddCurrentDocumentOptionVisibility','code','getResources','ai-chat-context-invalid-data','_setAddContextOptionsDefaultState','loadSourceResources','getData','sourceResourcesLoaded','current-document','contextSent','_removeContextItem','_addToConversationContextItem','_finishContextItemLoading','mapContextItemsToRequestData','sessionId','contextItemAdded','25880hOBGoC','files-','object','_conversationContextItems','object\x20with\x20content\x20and\x20type\x20properties','filter','mcpServerName','_finishUploadOperation','stack','uploadFile','TEXT','_config','text/markdown','TOOL','ai-chat-document-upload-failed','_createContextItemFromContent','ai-request-aborted','abortController','isHidden','resourceStateChanged','_connector','get','selection','error','4569576kqgcko','getPendingContextItems','_ongoingUploadOperations','version','2832183EvEcPq','_mapContextItemToRequestData','type','959umaJBs','File','_isResourceInContext','data','addResourceToContext','_updateResourceInContextState','ai-chat-source-resources-load-failed','_addContextOptionsState','ai-chat-resource-load-failed','map','removeSelectionFromContext'];_0x5ecb=function(){return _0x57a565;};return _0x5ecb();}export class AIChatContext extends _0xe85e33(){[_0x27a96b(0x14e)];[_0x27a96b(0x145)];[_0x27a96b(0x18c)];constructor({connector:_0x3f63e7,config:_0xb091c4,ownerId:_0xc89aba}){const _0x403382=_0x27a96b;super(),this[_0x403382(0x14e)]=_0x3f63e7,this[_0x403382(0x145)]=_0xb091c4,this[_0x403382(0x18c)]=_0xc89aba;}[_0x27a96b(0x17d)](){const _0x12377e=_0x27a96b;this[_0x12377e(0x170)]=new Map(),this[_0x12377e(0x1d1)]=new Map(),this[_0x12377e(0x175)]=new Map(),this[_0x12377e(0x154)]=new Map(),this[_0x12377e(0x1c2)]();}[_0x27a96b(0x153)](){const _0x22cfd7=_0x27a96b;return this[_0x22cfd7(0x170)];}async[_0x27a96b(0x1bb)](_0x4861c3){const _0x575366=_0x27a96b,_0x5a43a4=await this[_0x575366(0x149)](_0x4861c3);return this[_0x575366(0x1c9)](_0x5a43a4),_0x575366(0x1c6)===_0x5a43a4[_0x575366(0x182)]&&this[_0x575366(0x1be)](),_0x5a43a4;}async[_0x27a96b(0x149)](_0x4dd932){const _0x272367=_0x27a96b;if(_0x4dd932[_0x272367(0x158)]===_0x4c0c19[_0x272367(0x174)]){const _0x354e22=await this[_0x272367(0x14e)][_0x272367(0x1a4)](this[_0x272367(0x18c)],_0x4dd932['id'])[_0x272367(0x1a8)]();return{'id':_0x272367(0x1c6),'uiId':_0x272367(0x1c6),'label':_0x272367(0x19a),'type':_0x4dd932[_0x272367(0x158)],'content':_0x354e22[_0x272367(0x1ba)],'hidden':this[_0x272367(0x1d1)][_0x272367(0x1b7)](_0x272367(0x1c6)),'version':_0x354e22[_0x272367(0x173)]?.[_0x272367(0x155)],'sessionId':_0x354e22[_0x272367(0x173)]?.[_0x272367(0x1cc)]};}if(_0x4dd932[_0x272367(0x158)]===_0x4c0c19[_0x272367(0x147)])return{'id':_0x4dd932['id'],'uiId':_0x4dd932['id'],'label':_0x4dd932[_0x272367(0x15c)]?.[_0x272367(0x18f)]||_0x4dd932['id'],'type':_0x4c0c19[_0x272367(0x147)],'mcpServerName':_0x4dd932[_0x272367(0x1d4)],'toolName':_0x4dd932[_0x272367(0x186)],'data':_0x4dd932[_0x272367(0x15c)]||{}};return{'id':_0x4dd932['id'],'uiId':_0x4dd932['id'],'label':_0x4dd932[_0x272367(0x173)]?.[_0x272367(0x18f)]||_0x4dd932[_0x272367(0x166)]||_0x4dd932[_0x272367(0x19c)]||_0x4dd932['id'],'type':_0x4dd932[_0x272367(0x158)],..._0x4dd932?.[_0x272367(0x173)]?.[_0x272367(0x1b8)]?{'resourceId':_0x4dd932[_0x272367(0x173)]?.[_0x272367(0x1b8)]}:{}};}[_0x27a96b(0x16a)](){const _0x49a3ff=_0x27a96b;return new Map(this[_0x49a3ff(0x1d1)]);}[_0x27a96b(0x177)](_0xb0c652){const _0x3321ed=_0x27a96b,_0x467348=this[_0x3321ed(0x170)][_0x3321ed(0x14f)](_0xb0c652);_0x467348?.[_0x3321ed(0x1a6)]||this[_0x3321ed(0x1c8)](_0xb0c652);}[_0x27a96b(0x172)](){const _0x20b63c=_0x27a96b;if(0x0===this[_0x20b63c(0x170)][_0x20b63c(0x1b1)])return;for(const _0x2722ab of this[_0x20b63c(0x170)][_0x20b63c(0x191)]())this[_0x20b63c(0x1c8)](_0x2722ab[_0x20b63c(0x182)]);const _0x1683c6=this[_0x20b63c(0x1d1)][_0x20b63c(0x14f)](_0x20b63c(0x1c6))||this[_0x20b63c(0x170)][_0x20b63c(0x14f)](_0x20b63c(0x1c6));_0x1683c6&&this[_0x20b63c(0x176)]({..._0x1683c6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x27a96b(0x19f)](_0x2888ef){const _0x407a52=_0x27a96b;for(const _0x11d08e of _0x2888ef[_0x407a52(0x191)]())this[_0x407a52(0x1c9)](_0x11d08e);this[_0x407a52(0x172)](),this[_0x407a52(0x1bc)](_0x407a52(0x1c7),{'contextItems':Array[_0x407a52(0x1ad)](this[_0x407a52(0x16a)]()[_0x407a52(0x191)]())});}[_0x27a96b(0x16f)](){const _0x24adad=_0x27a96b;return this[_0x24adad(0x170)][_0x24adad(0x1b7)](_0x24adad(0x1c6));}[_0x27a96b(0x1a2)](){const _0x201bcf=_0x27a96b;return this[_0x201bcf(0x170)][_0x201bcf(0x1b7)](_0x201bcf(0x150));}[_0x27a96b(0x164)](){const _0x1d541d=_0x27a96b;return this[_0x1d541d(0x1d1)][_0x1d541d(0x1b7)](_0x1d541d(0x1c6));}static[_0x27a96b(0x1cb)](_0x10504e){const _0x2965cb=_0x27a96b;return Array[_0x2965cb(0x1ad)](_0x10504e[_0x2965cb(0x191)]())[_0x2965cb(0x162)](_0x15c94c=>this[_0x2965cb(0x157)](_0x15c94c))[_0x2965cb(0x1d3)](_0x2e3847=>null!==_0x2e3847);}async[_0x27a96b(0x1b2)](_0x3fcf86,_0x1b970b,_0xae4f3c=_0x4c0c19[_0x27a96b(0x1b4)]){const _0x281cb4=_0x27a96b,_0x2f7aea=_0x281cb4(0x1cf)+_0x32b7ae();this[_0x281cb4(0x1a7)](_0x2f7aea);try{await Promise[_0x281cb4(0x167)](_0x3fcf86[_0x281cb4(0x162)](async _0xaf60fb=>{const _0x18e90f=_0x281cb4,_0x18f8e3=_0x18e90f(0x180)+_0x32b7ae(),_0x31176c=_0x1533d3(_0xaf60fb[_0x18e90f(0x166)]);try{this[_0x18e90f(0x176)]({'type':_0xae4f3c,'label':_0x1b970b?.[_0x18e90f(0x18f)]||_0x31176c,'uiId':_0x18f8e3,'resourceId':_0x1b970b?.[_0x18e90f(0x1b8)]},!0x0);const _0x2b21bb=this[_0x18e90f(0x14e)][_0x18e90f(0x1d7)](this[_0x18e90f(0x18c)],_0xaf60fb,_0x1b970b);this[_0x18e90f(0x175)][_0x18e90f(0x1af)](_0x18f8e3,_0x2b21bb[_0x18e90f(0x14b)]);const {id:_0x1effdb}=await _0x2b21bb[_0x18e90f(0x189)]();this[_0x18e90f(0x175)][_0x18e90f(0x17a)](_0x18f8e3),this[_0x18e90f(0x1ca)]({'type':_0xae4f3c,'id':_0x1effdb,'label':_0x1b970b?.[_0x18e90f(0x18f)]||_0x31176c,'uiId':_0x18f8e3,'resourceId':_0x1b970b?.[_0x18e90f(0x1b8)]},!0x1);}catch(_0x2d24e3){this[_0x18e90f(0x175)][_0x18e90f(0x17a)](_0x18f8e3);if(!(_0x2d24e3 instanceof _0x96d3b4&&_0x2d24e3[_0x18e90f(0x19b)][_0x18e90f(0x1ae)](_0x18e90f(0x14a)))){const _0x57cf10=_0x8de527[_0x18e90f(0x14f)](_0x2d24e3[_0x18e90f(0x1bf)])||_0x18e90f(0x196),_0x37eaa6=new _0x96d3b4(_0x57cf10,null,{'fileName':_0x31176c,..._0x2d24e3});_0x37eaa6[_0x18e90f(0x1d6)]=_0x2d24e3[_0x18e90f(0x1d6)],this[_0x18e90f(0x1bc)](_0x18e90f(0x151),{'error':_0x37eaa6});}this[_0x18e90f(0x1c8)](_0x18f8e3);}}));}finally{this[_0x281cb4(0x1d5)](_0x2f7aea);}}[_0x27a96b(0x181)](_0x2f3056){const _0x260c64=_0x27a96b;if(this[_0x260c64(0x16f)]()||!this[_0x260c64(0x160)][_0x260c64(0x1b9)][_0x260c64(0x178)])return;const _0x23ce93={'type':_0x4c0c19[_0x260c64(0x174)],'uiId':_0x260c64(0x1c6),'label':_0x2f3056,'isReadOnly':this[_0x260c64(0x1d1)][_0x260c64(0x1b7)](_0x260c64(0x1c6)),'hidden':this[_0x260c64(0x1d1)][_0x260c64(0x1b7)](_0x260c64(0x1c6))};this[_0x260c64(0x176)](_0x23ce93);}async[_0x27a96b(0x17f)](_0x41690c,_0x5407ed,_0x2aa1fb,_0x1ae26b){const _0xa31356=_0x27a96b,_0x11b69e=this[_0xa31356(0x170)][_0xa31356(0x14f)](_0xa31356(0x1c6));if(_0x11b69e&&_0x41690c){_0x11b69e[_0xa31356(0x150)]=_0x1ae26b?_0x1ae26b[_0xa31356(0x162)](_0x4d4b09=>({'start':_0x4d4b09[_0xa31356(0x195)],'end':_0x4d4b09[_0xa31356(0x185)]})):[];try{if(_0x11b69e[_0xa31356(0x155)]===_0x5407ed)return;const {id:_0x54832a}=await this[_0xa31356(0x14e)][_0xa31356(0x193)](this[_0xa31356(0x18c)],_0x41690c,{'version':_0x5407ed,'sessionId':_0x2aa1fb})[_0xa31356(0x189)]();_0x11b69e['id']=_0x54832a,_0x11b69e[_0xa31356(0x1ba)]=_0x41690c,_0x11b69e[_0xa31356(0x155)]=_0x5407ed,_0x11b69e[_0xa31356(0x1cc)]=_0x2aa1fb;}catch(_0x5a39f0){const _0x6ffdf9=new _0x96d3b4(_0xa31356(0x148),null);_0x6ffdf9[_0xa31356(0x1d6)]=_0x5a39f0[_0xa31356(0x1d6)],this[_0xa31356(0x1bc)](_0xa31356(0x151),{'error':_0x6ffdf9});}}}[_0x27a96b(0x1aa)](_0x74fe7c){const _0x45d62c=_0x27a96b;this[_0x45d62c(0x176)]({'type':_0x4c0c19[_0x45d62c(0x1a1)],'label':_0x74fe7c,'uiId':_0x45d62c(0x150),'content':_0x74fe7c});}[_0x27a96b(0x163)](){const _0x222751=_0x27a96b;this[_0x222751(0x1c8)](_0x222751(0x150));}async[_0x27a96b(0x18d)](_0x2b805d,_0xdd4d36){const _0x17bcdf=_0x27a96b,_0x29761c=_0x17bcdf(0x1ac)+_0x32b7ae();this[_0x17bcdf(0x1a7)](_0x29761c);const _0x13df04=_0x17bcdf(0x1ac)+_0x32b7ae();try{this[_0x17bcdf(0x176)]({'type':_0x4c0c19[_0x17bcdf(0x17c)],'label':_0xdd4d36?.[_0x17bcdf(0x18f)]||_0x2b805d,'uiId':_0x13df04,'resourceId':_0xdd4d36?.[_0x17bcdf(0x1b8)]},!0x0);const _0x577438=this[_0x17bcdf(0x14e)][_0x17bcdf(0x17b)](this[_0x17bcdf(0x18c)],_0x2b805d,_0xdd4d36);this[_0x17bcdf(0x175)][_0x17bcdf(0x1af)](_0x13df04,_0x577438[_0x17bcdf(0x14b)]);const {id:_0x38fed8}=await _0x577438[_0x17bcdf(0x189)]();this[_0x17bcdf(0x175)][_0x17bcdf(0x17a)](_0x13df04),this[_0x17bcdf(0x1ca)]({'type':_0x4c0c19[_0x17bcdf(0x17c)],'id':_0x38fed8,'label':_0xdd4d36?.[_0x17bcdf(0x18f)]||_0x2b805d,'uiId':_0x13df04,'resourceId':_0xdd4d36?.[_0x17bcdf(0x1b8)]},!0x1);}catch(_0x4e5c93){this[_0x17bcdf(0x175)][_0x17bcdf(0x17a)](_0x13df04),(_0x4e5c93[_0x17bcdf(0x19b)][_0x17bcdf(0x1ae)](_0x17bcdf(0x14a))||this[_0x17bcdf(0x1bc)](_0x17bcdf(0x151),{'error':new _0x96d3b4(_0x17bcdf(0x171),this,{'url':_0x2b805d,'originalError':_0x4e5c93}),'url':_0x2b805d}),this[_0x17bcdf(0x1c8)](_0x13df04));}finally{this[_0x17bcdf(0x1d5)](_0x29761c);}}[_0x27a96b(0x179)](_0x3c97cd){const _0x461aef=_0x27a96b;_0x3c97cd['id']=_0x3c97cd['id']??_0x32b7ae()[_0x461aef(0x192)](0x0,0x15),this[_0x461aef(0x170)][_0x461aef(0x1af)](_0x3c97cd[_0x461aef(0x182)],_0x3c97cd),this[_0x461aef(0x1bc)](_0x461aef(0x1cd),{'contextItem':_0x3c97cd,'isLoading':!0x1});}async[_0x27a96b(0x1c3)](_0xf10e93,_0x8ac118,_0x25b05d){const _0x3c5b7d=_0x27a96b,_0x4022c0=this[_0x3c5b7d(0x160)][_0x3c5b7d(0x16c)][_0x3c5b7d(0x19e)](_0x373b9b=>_0x373b9b['id']===_0xf10e93);if(!_0x4022c0)return this[_0x3c5b7d(0x1bc)](_0x3c5b7d(0x151),{'error':new _0x96d3b4(_0x3c5b7d(0x1a5),this,{'sourceId':_0xf10e93}),'sourceId':_0xf10e93}),[];try{const _0x3db0ce=(await _0x4022c0[_0x3c5b7d(0x1c0)](_0x8ac118))[_0x3c5b7d(0x162)](_0x3173f1=>{const _0x3fbc84=_0x3c5b7d,_0x412171=this[_0x3fbc84(0x15b)](_0x3173f1['id']);return{..._0x3173f1,'isInContext':_0x412171};});return _0x4022c0[_0x3c5b7d(0x188)]=_0x3db0ce,this[_0x3c5b7d(0x1bc)](_0x3c5b7d(0x1c5),{'sourceId':_0xf10e93,'source':_0x4022c0,'resources':_0x3db0ce,'uid':_0x25b05d}),_0x3db0ce;}catch(_0x265ded){return this[_0x3c5b7d(0x1bc)](_0x3c5b7d(0x151),{'error':new _0x96d3b4(_0x3c5b7d(0x15f),this,{'sourceId':_0xf10e93,'originalError':_0x265ded}),'sourceId':_0xf10e93,'sourceLabel':_0x4022c0[_0x3c5b7d(0x18f)]}),[];}}async[_0x27a96b(0x15d)](_0x2fb7a8,_0x382939){const _0x36c95e=_0x27a96b;if(this[_0x36c95e(0x15b)](_0x382939['id']))return;let _0x1c953b=_0x382939[_0x36c95e(0x15c)];if(!_0x1c953b&&_0x2fb7a8[_0x36c95e(0x1c4)])try{_0x1c953b=await _0x2fb7a8[_0x36c95e(0x1c4)](_0x382939['id']);}catch(_0x9f66e1){return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x161),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'originalError':_0x9f66e1}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});}if(_0x1c953b)switch(_0x382939[_0x36c95e(0x158)]){case _0x4c0c19[_0x36c95e(0x17c)]:if(_0x36c95e(0x19d)!=typeof _0x1c953b)return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1c1),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'expectedType':_0x36c95e(0x19d),'actualType':typeof _0x1c953b}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});await this[_0x36c95e(0x18d)](_0x1c953b,{'label':_0x382939[_0x36c95e(0x18f)],'resourceId':_0x382939['id']});break;case _0x4c0c19[_0x36c95e(0x1b4)]:if(!(_0x1c953b instanceof File))return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1c1),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'expectedType':_0x36c95e(0x15a),'actualType':typeof _0x1c953b}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});await this[_0x36c95e(0x1b2)]([_0x1c953b],{'label':_0x382939[_0x36c95e(0x18f)],'resourceId':_0x382939['id']});break;case _0x4c0c19[_0x36c95e(0x1d8)]:if(_0x36c95e(0x1d0)!=typeof _0x1c953b||!(_0x36c95e(0x1ba)in _0x1c953b)||!(_0x36c95e(0x158)in _0x1c953b))return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1c1),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'expectedType':_0x36c95e(0x1d2),'actualType':typeof _0x1c953b}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});_0x1c953b=AIChatContext[_0x36c95e(0x199)](_0x1c953b,_0x382939[_0x36c95e(0x18f)]),await this[_0x36c95e(0x1b2)]([_0x1c953b],{'label':_0x382939[_0x36c95e(0x18f)],'resourceId':_0x382939['id']},_0x4c0c19[_0x36c95e(0x1d8)]);break;case _0x4c0c19[_0x36c95e(0x147)]:break;default:this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x183),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'resourceType':_0x382939[_0x36c95e(0x158)]}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});}else this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1ab),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});}static[_0x27a96b(0x199)](_0x42803f,_0x6369fa){const _0x1ba4b5=_0x27a96b;switch(_0x42803f[_0x1ba4b5(0x158)]){case _0x203c83[_0x1ba4b5(0x194)]:return new File([_0x42803f[_0x1ba4b5(0x1ba)]],_0x6369fa,{'type':_0x1ba4b5(0x146)});case _0x203c83[_0x1ba4b5(0x18e)]:return new File([_0x42803f[_0x1ba4b5(0x1ba)]],_0x6369fa,{'type':_0x1ba4b5(0x16b)});default:return new File([_0x42803f[_0x1ba4b5(0x1ba)]],_0x6369fa,{'type':_0x1ba4b5(0x17e)});}}static[_0x27a96b(0x157)](_0x115e53){const _0x193871=_0x27a96b;switch(_0x115e53[_0x193871(0x158)]){case _0x4c0c19[_0x193871(0x1b4)]:return{'type':_0x4c0c19[_0x193871(0x1b4)],'id':_0x115e53['id']};case _0x4c0c19[_0x193871(0x17c)]:return{'type':_0x4c0c19[_0x193871(0x17c)],'id':_0x115e53['id']};case _0x4c0c19[_0x193871(0x174)]:return{'type':_0x4c0c19[_0x193871(0x174)],'id':_0x115e53['id'],..._0x115e53[_0x193871(0x150)]?.[_0x193871(0x18a)]&&{'selection':_0x115e53[_0x193871(0x150)]}};case _0x4c0c19[_0x193871(0x1d8)]:return{'type':_0x4c0c19[_0x193871(0x1b4)],'id':_0x115e53['id']};case _0x4c0c19[_0x193871(0x147)]:{const _0x3a2ec7=_0x115e53;return{'type':_0x4c0c19[_0x193871(0x147)],'mcpServerName':_0x3a2ec7[_0x193871(0x1d4)],'toolName':_0x3a2ec7[_0x193871(0x186)],'data':_0x3a2ec7[_0x193871(0x15c)],'id':_0x3a2ec7['id']};}default:return null;}}[_0x27a96b(0x176)](_0x1c8e48,_0x22f3f2=!0x1){const _0x134f94=_0x27a96b;if(this[_0x134f94(0x170)][_0x134f94(0x1af)](_0x1c8e48[_0x134f94(0x182)],_0x1c8e48),_0x1c8e48[_0x134f94(0x165)]||this[_0x134f94(0x1bc)](_0x134f94(0x1cd),{'contextItem':_0x1c8e48,'isLoading':_0x22f3f2}),_0x134f94(0x1c6)===_0x1c8e48[_0x134f94(0x182)]&&this[_0x134f94(0x1be)](),_0x1c8e48[_0x134f94(0x1b8)]){const _0xe7b072=this[_0x134f94(0x16d)](_0x1c8e48[_0x134f94(0x1b8)]);_0xe7b072&&_0xe7b072[_0x134f94(0x1a9)](_0x5d9541=>{const _0x5646dc=_0x134f94;this[_0x5646dc(0x15e)](_0x5d9541,_0x1c8e48[_0x5646dc(0x1b8)],!0x0);});}}[_0x27a96b(0x1c8)](_0x26687f){const _0x268e47=_0x27a96b,_0x4963aa=this[_0x268e47(0x170)][_0x268e47(0x14f)](_0x26687f),_0x559340=this[_0x268e47(0x175)][_0x268e47(0x14f)](_0x26687f);if(_0x559340&&(_0x559340[_0x268e47(0x1a3)](),this[_0x268e47(0x175)][_0x268e47(0x17a)](_0x26687f)),_0x4963aa?.[_0x268e47(0x1b8)]){const _0x40294a=this[_0x268e47(0x16d)](_0x4963aa[_0x268e47(0x1b8)]);_0x40294a&&_0x40294a[_0x268e47(0x1a9)](_0x13811d=>{const _0x5130f3=_0x268e47;this[_0x5130f3(0x15e)](_0x13811d,_0x4963aa[_0x5130f3(0x1b8)],!0x1);});}this[_0x268e47(0x170)][_0x268e47(0x17a)](_0x26687f),this[_0x268e47(0x1bc)](_0x268e47(0x168),{'uiId':_0x26687f,'type':_0x4963aa?.[_0x268e47(0x158)]}),_0x268e47(0x1c6)===_0x26687f&&this[_0x268e47(0x1be)]();}[_0x27a96b(0x1ca)](_0x1c2790,_0x33b368){const _0x3123fc=_0x27a96b;if(this[_0x3123fc(0x170)][_0x3123fc(0x1b7)](_0x1c2790[_0x3123fc(0x182)])&&(this[_0x3123fc(0x170)][_0x3123fc(0x1af)](_0x1c2790[_0x3123fc(0x182)],_0x1c2790),this[_0x3123fc(0x1bc)](_0x3123fc(0x1b3),{'contextItem':_0x1c2790,'isLoading':_0x33b368}),_0x1c2790[_0x3123fc(0x1b8)])){const _0xfd800f=this[_0x3123fc(0x16d)](_0x1c2790[_0x3123fc(0x1b8)]);_0xfd800f&&_0xfd800f[_0x3123fc(0x1a9)](_0x5f3f78=>{const _0x15b375=_0x3123fc;this[_0x15b375(0x15e)](_0x5f3f78,_0x1c2790[_0x15b375(0x1b8)],!0x0);});}}[_0x27a96b(0x1c9)](_0xc29fef){const _0x45b84b=_0x27a96b;this[_0x45b84b(0x1d1)][_0x45b84b(0x1af)](_0xc29fef[_0x45b84b(0x182)],_0xc29fef);}[_0x27a96b(0x1c2)](){const _0x485986=_0x27a96b;this[_0x485986(0x160)]={'document':{'enabled':!0x1!==this[_0x485986(0x145)]?.[_0x485986(0x1b9)]?.[_0x485986(0x178)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x485986(0x145)]?.[_0x485986(0x18b)]?.[_0x485986(0x178)]},'files':{'enabled':!0x1!==this[_0x485986(0x145)]?.[_0x485986(0x190)]?.[_0x485986(0x178)]},'sources':this[_0x485986(0x1b6)](),'customItems':this[_0x485986(0x145)]?.[_0x485986(0x1bd)]?.[_0x485986(0x162)](_0x28fc17=>({..._0x28fc17,'enabled':!0x0}))??[]},this[_0x485986(0x1bc)](_0x485986(0x169),{'options':this[_0x485986(0x160)]});}[_0x27a96b(0x1b6)](){const _0x4ce1b0=_0x27a96b;return this[_0x4ce1b0(0x145)]?.[_0x4ce1b0(0x16c)]?.[_0x4ce1b0(0x162)](_0x317708=>({..._0x317708,'resources':[]}))??[];}[_0x27a96b(0x1be)](){const _0x5d892f=_0x27a96b,_0x4f2626=this[_0x5d892f(0x16f)]()||this[_0x5d892f(0x164)]();this[_0x5d892f(0x160)][_0x5d892f(0x1b9)][_0x5d892f(0x14c)]=_0x4f2626,this[_0x5d892f(0x1bc)](_0x5d892f(0x169),{'options':this[_0x5d892f(0x160)]});}[_0x27a96b(0x15b)](_0x3dfa2a){const _0x2cada9=_0x27a96b;for(const _0x1e3c76 of this[_0x2cada9(0x170)][_0x2cada9(0x191)]())if(_0x1e3c76[_0x2cada9(0x1b8)]===_0x3dfa2a)return!0x0;for(const _0xec7e6b of this[_0x2cada9(0x1d1)][_0x2cada9(0x191)]())if(_0xec7e6b[_0x2cada9(0x1b8)]===_0x3dfa2a)return!0x0;return!0x1;}[_0x27a96b(0x16d)](_0x8e736a){const _0x1b201c=_0x27a96b,_0x54958f=[];for(const _0x350631 of this[_0x1b201c(0x160)][_0x1b201c(0x16c)]){_0x350631[_0x1b201c(0x188)][_0x1b201c(0x19e)](_0x522b85=>_0x522b85['id']===_0x8e736a)&&_0x54958f[_0x1b201c(0x1b0)](_0x350631['id']);}return 0x0===_0x54958f[_0x1b201c(0x18a)]?null:_0x54958f;}[_0x27a96b(0x15e)](_0x918438,_0x14aa37,_0x2ad1d2){const _0xf7a949=_0x27a96b,_0x62c76b=this[_0xf7a949(0x160)][_0xf7a949(0x16c)][_0xf7a949(0x19e)](_0x3f1ae3=>_0x3f1ae3['id']===_0x918438);if(!_0x62c76b)return;const _0x84f3a7=_0x62c76b[_0xf7a949(0x188)][_0xf7a949(0x19e)](_0x50f353=>_0x50f353['id']===_0x14aa37);_0x84f3a7&&(_0x84f3a7[_0xf7a949(0x184)]=_0x2ad1d2,this[_0xf7a949(0x1bc)](_0xf7a949(0x14d),{'sourceId':_0x918438,'resourceId':_0x14aa37,'isInContext':_0x2ad1d2}));}[_0x27a96b(0x1a7)](_0x12e176){const _0x4e85ed=_0x27a96b;this[_0x4e85ed(0x154)][_0x4e85ed(0x1af)](_0x12e176,!0x0),this[_0x4e85ed(0x154)][_0x4e85ed(0x1b1)]&&this[_0x4e85ed(0x1bc)](_0x4e85ed(0x1b5),{'isUploadInProgress':!0x0});}[_0x27a96b(0x1d5)](_0x4eb162){const _0x244b71=_0x27a96b;this[_0x244b71(0x154)][_0x244b71(0x17a)](_0x4eb162),0x0===this[_0x244b71(0x154)][_0x244b71(0x1b1)]&&this[_0x244b71(0x1bc)](_0x244b71(0x1b5),{'isUploadInProgress':!0x1});}}
23
+ const _0x1dade9=_0x3b26;function _0x3b26(_0x2bd113,_0x4d8d09){const _0x28a4f6=_0x28a4();return _0x3b26=function(_0x3b267b,_0x2a1c04){_0x3b267b=_0x3b267b-0x145;let _0x30abba=_0x28a4f6[_0x3b267b];return _0x30abba;},_0x3b26(_0x2bd113,_0x4d8d09);}(function(_0x6142fd,_0x478c5a){const _0x2d36d1=_0x3b26,_0x118c7c=_0x6142fd();while(!![]){try{const _0x6262d7=-parseInt(_0x2d36d1(0x1cf))/0x1*(parseInt(_0x2d36d1(0x154))/0x2)+parseInt(_0x2d36d1(0x1af))/0x3+parseInt(_0x2d36d1(0x165))/0x4+parseInt(_0x2d36d1(0x182))/0x5+-parseInt(_0x2d36d1(0x189))/0x6*(parseInt(_0x2d36d1(0x19d))/0x7)+-parseInt(_0x2d36d1(0x19a))/0x8*(-parseInt(_0x2d36d1(0x188))/0x9)+-parseInt(_0x2d36d1(0x1cd))/0xa;if(_0x6262d7===_0x478c5a)break;else _0x118c7c['push'](_0x118c7c['shift']());}catch(_0x4fbad8){_0x118c7c['push'](_0x118c7c['shift']());}}}(_0x28a4,0xdb807));import{CKEditorError as _0x5921d4,ObservableMixin as _0x3b4078,uid as _0x28e5ce}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5b8b01,AIContextTextResourceType as _0x507e3f}from'../../aicore/model/aicontext.js';import{escape as _0x5b0833}from'es-toolkit/compat';function _0x28a4(){const _0x1f61ac=['_getCustomSourcesInitialState','ai-chat-resource-no-data','MARKDOWN','addFilesToContext','loadSourceResources','isCurrentDocumentInContext','3352728mOLgDX','error','_setAddContextOptionsDefaultState','startsWith','ai-chat-document-upload-failed','isHidden','_ownerId','url','label','map','ai-chat-context-unsupported-type','mapContextItemsToRequestData','ai-chat-source-resources-load-failed','substring','_createContextItemFromContent','text/plain','end','sourceResourcesLoaded','getData','resourceId','getDocument','length','updateCurrentDocument','contextSent','text/markdown','_pendingContextItems','files','_convertTextResourceToFile','object','contextItemLoadingEnded','10194670OXrszD','ai-chat-url-upload-failed','830cwJtRx','name','_ongoingUploads','contextItemAdded','_startUploadOperation','current-document','uiId','fire','addResourceToContext','data','content','TOOL','document','urls','_addContextOptionsState','abortController','_conversationContextItems','removeFromContext','isInContext','removeSelectionFromContext','getSentContextItems','customItems','all','DOCUMENT','addContextOptionsChanged','hidden','1816SXEYcn','ai-chat-source-not-found','_addContextItem','isSelectionInContext','version','toolName','message','_toggleAddCurrentDocumentOptionVisibility','_ongoingUploadOperations','getPendingContextItems','TEXT','resourceStateChanged','HTML','delete','SELECTION','get','uploadUrl','6331888bpwaSd','fetchDocument','_connector','File','contextItemRemoved','_finishContextItemLoading','push','abort','ai-chat-resource-load-failed','init','addUrlToContext','values','attributes','addCurrentDocumentToContext','addToConversationContext','code','selection','stack','ai-request-aborted','sessionId','files-','size','sources','URL','_isResourceInContext','_mapContextItemToRequestData','getResources','url-','_updateResourceInContextState','559125FDXaJb','_addToConversationContextItem','ai-chat-context-invalid-data','string','set','uploadDocument','3599991WkEIYr','18ZZYsrg','Current\x20document','type','enabled','FILE','_removeContextItem','isCurrentDocumentInConversation','file-','_findSourceIdsByResourceId','mcpServerName','populateFromMessage','find','text/html','ai-chat-file-upload-failed','from','forEach','addSelectionToContext','8OZOvsT','addToolItemToContext','has','1260434nnhgmp','resources','_finishUploadOperation','filter','getId','uploadFile','_config','object\x20with\x20content\x20and\x20type\x20properties','clearPendingContextItems','uploadProgressChanged','start','isReadOnly'];_0x28a4=function(){return _0x1f61ac;};return _0x28a4();}import{errorsMap as _0x4b39b1}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1dade9(0x1d2),_0x1dade9(0x169),_0x1dade9(0x1cc),_0x1dade9(0x1c6),_0x1dade9(0x1b0),_0x1dade9(0x152),_0x1dade9(0x1c0),_0x1dade9(0x15f),_0x1dade9(0x1a6)];export class AIChatContext extends _0x3b4078(){[_0x1dade9(0x167)];[_0x1dade9(0x1a3)];[_0x1dade9(0x1b5)];constructor({connector:_0x317f5b,config:_0x460efd,ownerId:_0x4c7ac7}){const _0x3f8cf5=_0x1dade9;super(),this[_0x3f8cf5(0x167)]=_0x317f5b,this[_0x3f8cf5(0x1a3)]=_0x460efd,this[_0x3f8cf5(0x1b5)]=_0x4c7ac7;}[_0x1dade9(0x16e)](){const _0x3a4d84=_0x1dade9;this[_0x3a4d84(0x1c8)]=new Map(),this[_0x3a4d84(0x14a)]=new Map(),this[_0x3a4d84(0x1d1)]=new Map(),this[_0x3a4d84(0x15c)]=new Map(),this[_0x3a4d84(0x1b1)]();}[_0x1dade9(0x15d)](){const _0x12259d=_0x1dade9;return this[_0x12259d(0x1c8)];}async[_0x1dade9(0x193)](_0x130005){const _0xf8f307=_0x1dade9,_0x450992=await this[_0xf8f307(0x1bd)](_0x130005);return this[_0xf8f307(0x183)](_0x450992),_0xf8f307(0x1d4)===_0x450992[_0xf8f307(0x1d5)]&&this[_0xf8f307(0x15b)](),_0x450992;}async[_0x1dade9(0x1bd)](_0x507481){const _0xca3939=_0x1dade9;if(_0x507481[_0xca3939(0x18b)]===_0x5b8b01[_0xca3939(0x151)]){const _0x2a07f8=await this[_0xca3939(0x167)][_0xca3939(0x166)](this[_0xca3939(0x1b5)],_0x507481['id'])[_0xca3939(0x1c3)]();return{'id':_0xca3939(0x1d4),'uiId':_0xca3939(0x1d4),'label':_0xca3939(0x18a),'type':_0x507481[_0xca3939(0x18b)],'content':_0x2a07f8[_0xca3939(0x1d9)],'hidden':this[_0xca3939(0x14a)][_0xca3939(0x19c)](_0xca3939(0x1d4)),'version':_0x2a07f8[_0xca3939(0x171)]?.[_0xca3939(0x158)],'sessionId':_0x2a07f8[_0xca3939(0x171)]?.[_0xca3939(0x178)]};}if(_0x507481[_0xca3939(0x18b)]===_0x5b8b01[_0xca3939(0x145)])return{'id':_0x507481['id'],'uiId':_0x507481['id'],'label':_0x507481[_0xca3939(0x1d8)]?.[_0xca3939(0x1b7)]||_0x507481['id'],'type':_0x5b8b01[_0xca3939(0x145)],'mcpServerName':_0x507481[_0xca3939(0x192)],'toolName':_0x507481[_0xca3939(0x159)],'data':_0x507481[_0xca3939(0x1d8)]||{}};return{'id':_0x507481['id'],'uiId':_0x507481['id'],'label':_0x507481[_0xca3939(0x171)]?.[_0xca3939(0x1b7)]||_0x507481[_0xca3939(0x1d0)]||_0x507481[_0xca3939(0x1b6)]||_0x507481['id'],'type':_0x507481[_0xca3939(0x18b)],..._0x507481?.[_0xca3939(0x171)]?.[_0xca3939(0x1c2)]?{'resourceId':_0x507481[_0xca3939(0x171)]?.[_0xca3939(0x1c2)]}:{}};}[_0x1dade9(0x14e)](){const _0x14e60c=_0x1dade9;return new Map(this[_0x14e60c(0x14a)]);}[_0x1dade9(0x14b)](_0x1ea40c){const _0x5e7688=_0x1dade9,_0x26a2fc=this[_0x5e7688(0x1c8)][_0x5e7688(0x163)](_0x1ea40c);_0x26a2fc?.[_0x5e7688(0x1a8)]||this[_0x5e7688(0x18e)](_0x1ea40c);}[_0x1dade9(0x1a5)](){const _0x32ecf1=_0x1dade9;if(0x0===this[_0x32ecf1(0x1c8)][_0x32ecf1(0x17a)])return;for(const _0x20b441 of this[_0x32ecf1(0x1c8)][_0x32ecf1(0x170)]())this[_0x32ecf1(0x18e)](_0x20b441[_0x32ecf1(0x1d5)]);const _0xccec41=this[_0x32ecf1(0x14a)][_0x32ecf1(0x163)](_0x32ecf1(0x1d4))||this[_0x32ecf1(0x1c8)][_0x32ecf1(0x163)](_0x32ecf1(0x1d4));_0xccec41&&this[_0x32ecf1(0x156)]({..._0xccec41,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1dade9(0x173)](_0x1c0881){const _0x329b84=_0x1dade9;for(const _0x1816a7 of _0x1c0881[_0x329b84(0x170)]())this[_0x329b84(0x183)](_0x1816a7);this[_0x329b84(0x1a5)](),this[_0x329b84(0x1d6)](_0x329b84(0x1c6),{'contextItems':Array[_0x329b84(0x197)](this[_0x329b84(0x14e)]()[_0x329b84(0x170)]())});}[_0x1dade9(0x1ae)](){const _0x3764ea=_0x1dade9;return this[_0x3764ea(0x1c8)][_0x3764ea(0x19c)](_0x3764ea(0x1d4));}[_0x1dade9(0x157)](){const _0x21508e=_0x1dade9;return this[_0x21508e(0x1c8)][_0x21508e(0x19c)](_0x21508e(0x175));}[_0x1dade9(0x18f)](){const _0x56b83b=_0x1dade9;return this[_0x56b83b(0x14a)][_0x56b83b(0x19c)](_0x56b83b(0x1d4));}static[_0x1dade9(0x1ba)](_0x4e6d52){const _0x5e5ae8=_0x1dade9;return Array[_0x5e5ae8(0x197)](_0x4e6d52[_0x5e5ae8(0x170)]())[_0x5e5ae8(0x1b8)](_0x5bcf46=>this[_0x5e5ae8(0x17e)](_0x5bcf46))[_0x5e5ae8(0x1a0)](_0x25332b=>null!==_0x25332b);}async[_0x1dade9(0x1ac)](_0x1406d9,_0x43d401,_0x314205=_0x5b8b01[_0x1dade9(0x18d)]){const _0x570fe7=_0x1dade9,_0x25f9df=_0x570fe7(0x179)+_0x28e5ce();this[_0x570fe7(0x1d3)](_0x25f9df);try{await Promise[_0x570fe7(0x150)](_0x1406d9[_0x570fe7(0x1b8)](async _0x4cd1f2=>{const _0x15a740=_0x570fe7,_0xb9e179=_0x15a740(0x190)+_0x28e5ce(),_0x1e9532=_0x5b0833(_0x4cd1f2[_0x15a740(0x1d0)]);try{this[_0x15a740(0x156)]({'type':_0x314205,'label':_0x43d401?.[_0x15a740(0x1b7)]||_0x1e9532,'uiId':_0xb9e179,'resourceId':_0x43d401?.[_0x15a740(0x1c2)]},!0x0);const _0x2c96f5=this[_0x15a740(0x167)][_0x15a740(0x1a2)](this[_0x15a740(0x1b5)],_0x4cd1f2,_0x43d401);this[_0x15a740(0x1d1)][_0x15a740(0x186)](_0xb9e179,_0x2c96f5[_0x15a740(0x149)]);const {id:_0x176fb5}=await _0x2c96f5[_0x15a740(0x1a1)]();this[_0x15a740(0x1d1)][_0x15a740(0x161)](_0xb9e179),this[_0x15a740(0x16a)]({'type':_0x314205,'id':_0x176fb5,'label':_0x43d401?.[_0x15a740(0x1b7)]||_0x1e9532,'uiId':_0xb9e179,'resourceId':_0x43d401?.[_0x15a740(0x1c2)]},!0x1);}catch(_0x2e5b7b){this[_0x15a740(0x1d1)][_0x15a740(0x161)](_0xb9e179);if(!(_0x2e5b7b instanceof _0x5921d4&&_0x2e5b7b[_0x15a740(0x15a)][_0x15a740(0x1b2)](_0x15a740(0x177)))){const _0x318f15=_0x4b39b1[_0x15a740(0x163)](_0x2e5b7b[_0x15a740(0x174)])||_0x15a740(0x196),_0x59cf73=new _0x5921d4(_0x318f15,null,{'fileName':_0x1e9532,..._0x2e5b7b});_0x59cf73[_0x15a740(0x176)]=_0x2e5b7b[_0x15a740(0x176)],this[_0x15a740(0x1d6)](_0x15a740(0x1b0),{'error':_0x59cf73});}this[_0x15a740(0x18e)](_0xb9e179);}}));}finally{this[_0x570fe7(0x19f)](_0x25f9df);}}[_0x1dade9(0x172)](_0x5e4782){const _0x3ff49a=_0x1dade9;if(this[_0x3ff49a(0x1ae)]()||!this[_0x3ff49a(0x148)][_0x3ff49a(0x146)][_0x3ff49a(0x18c)])return;const _0x72f500={'type':_0x5b8b01[_0x3ff49a(0x151)],'uiId':_0x3ff49a(0x1d4),'label':_0x5e4782,'isReadOnly':this[_0x3ff49a(0x14a)][_0x3ff49a(0x19c)](_0x3ff49a(0x1d4)),'hidden':this[_0x3ff49a(0x14a)][_0x3ff49a(0x19c)](_0x3ff49a(0x1d4))};this[_0x3ff49a(0x156)](_0x72f500);}async[_0x1dade9(0x1c5)](_0x5b7e87,_0x4c4a8b,_0x4ebb86,_0x342713){const _0x4a8ab0=_0x1dade9,_0x37f005=this[_0x4a8ab0(0x1c8)][_0x4a8ab0(0x163)](_0x4a8ab0(0x1d4));if(_0x37f005&&_0x5b7e87){_0x37f005[_0x4a8ab0(0x175)]=_0x342713?_0x342713[_0x4a8ab0(0x1b8)](_0x55fab3=>({'start':_0x55fab3[_0x4a8ab0(0x1a7)],'end':_0x55fab3[_0x4a8ab0(0x1bf)]})):[];try{if(_0x37f005[_0x4a8ab0(0x158)]===_0x4c4a8b)return;const {id:_0x3b6920}=await this[_0x4a8ab0(0x167)][_0x4a8ab0(0x187)](this[_0x4a8ab0(0x1b5)],_0x5b7e87,{'version':_0x4c4a8b,'sessionId':_0x4ebb86})[_0x4a8ab0(0x1a1)]();_0x37f005['id']=_0x3b6920,_0x37f005[_0x4a8ab0(0x1d9)]=_0x5b7e87,_0x37f005[_0x4a8ab0(0x158)]=_0x4c4a8b,_0x37f005[_0x4a8ab0(0x178)]=_0x4ebb86;}catch(_0x3a90dd){const _0x14d594=new _0x5921d4(_0x4a8ab0(0x1b3),null);_0x14d594[_0x4a8ab0(0x176)]=_0x3a90dd[_0x4a8ab0(0x176)],this[_0x4a8ab0(0x1d6)](_0x4a8ab0(0x1b0),{'error':_0x14d594});}}}[_0x1dade9(0x199)](_0x1f85ac){const _0x5aea1c=_0x1dade9;this[_0x5aea1c(0x156)]({'type':_0x5b8b01[_0x5aea1c(0x162)],'label':_0x1f85ac,'uiId':_0x5aea1c(0x175),'content':_0x1f85ac});}[_0x1dade9(0x14d)](){const _0x49bf44=_0x1dade9;this[_0x49bf44(0x18e)](_0x49bf44(0x175));}async[_0x1dade9(0x16f)](_0x450f63,_0x3e4783){const _0x363e1b=_0x1dade9,_0x461f1b=_0x363e1b(0x180)+_0x28e5ce();this[_0x363e1b(0x1d3)](_0x461f1b);const _0x3d285a=_0x363e1b(0x180)+_0x28e5ce();try{this[_0x363e1b(0x156)]({'type':_0x5b8b01[_0x363e1b(0x17c)],'label':_0x3e4783?.[_0x363e1b(0x1b7)]||_0x450f63,'uiId':_0x3d285a,'resourceId':_0x3e4783?.[_0x363e1b(0x1c2)]},!0x0);const _0x3307a5=this[_0x363e1b(0x167)][_0x363e1b(0x164)](this[_0x363e1b(0x1b5)],_0x450f63,_0x3e4783);this[_0x363e1b(0x1d1)][_0x363e1b(0x186)](_0x3d285a,_0x3307a5[_0x363e1b(0x149)]);const {id:_0x501fa5}=await _0x3307a5[_0x363e1b(0x1a1)]();this[_0x363e1b(0x1d1)][_0x363e1b(0x161)](_0x3d285a),this[_0x363e1b(0x16a)]({'type':_0x5b8b01[_0x363e1b(0x17c)],'id':_0x501fa5,'label':_0x3e4783?.[_0x363e1b(0x1b7)]||_0x450f63,'uiId':_0x3d285a,'resourceId':_0x3e4783?.[_0x363e1b(0x1c2)]},!0x1);}catch(_0x363ce5){this[_0x363e1b(0x1d1)][_0x363e1b(0x161)](_0x3d285a),(_0x363ce5[_0x363e1b(0x15a)][_0x363e1b(0x1b2)](_0x363e1b(0x177))||this[_0x363e1b(0x1d6)](_0x363e1b(0x1b0),{'error':new _0x5921d4(_0x363e1b(0x1ce),this,{'url':_0x450f63,'originalError':_0x363ce5}),'url':_0x450f63}),this[_0x363e1b(0x18e)](_0x3d285a));}finally{this[_0x363e1b(0x19f)](_0x461f1b);}}[_0x1dade9(0x19b)](_0x50bb48){const _0x1410d5=_0x1dade9;_0x50bb48['id']=_0x50bb48['id']??_0x28e5ce()[_0x1410d5(0x1bc)](0x0,0x15),this[_0x1410d5(0x1c8)][_0x1410d5(0x186)](_0x50bb48[_0x1410d5(0x1d5)],_0x50bb48),this[_0x1410d5(0x1d6)](_0x1410d5(0x1d2),{'contextItem':_0x50bb48,'isLoading':!0x1});}async[_0x1dade9(0x1ad)](_0x22e0b8,_0x3dec2a,_0x4615a4){const _0x2c56c0=_0x1dade9,_0xa926e4=this[_0x2c56c0(0x148)][_0x2c56c0(0x17b)][_0x2c56c0(0x194)](_0xa713c9=>_0xa713c9['id']===_0x22e0b8);if(!_0xa926e4)return this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1b0),{'error':new _0x5921d4(_0x2c56c0(0x155),this,{'sourceId':_0x22e0b8}),'sourceId':_0x22e0b8}),[];try{const _0x45f2f1=(await _0xa926e4[_0x2c56c0(0x17f)](_0x3dec2a))[_0x2c56c0(0x1b8)](_0x44a19b=>{const _0x2114e3=_0x2c56c0,_0x440d35=this[_0x2114e3(0x17d)](_0x44a19b['id']);return{..._0x44a19b,'isInContext':_0x440d35};});return _0xa926e4[_0x2c56c0(0x19e)]=_0x45f2f1,this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1c0),{'sourceId':_0x22e0b8,'source':_0xa926e4,'resources':_0x45f2f1,'uid':_0x4615a4}),_0x45f2f1;}catch(_0x47e478){return this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1b0),{'error':new _0x5921d4(_0x2c56c0(0x1bb),this,{'sourceId':_0x22e0b8,'originalError':_0x47e478}),'sourceId':_0x22e0b8,'sourceLabel':_0xa926e4[_0x2c56c0(0x1b7)]}),[];}}async[_0x1dade9(0x1d7)](_0x2abefe,_0x118656){const _0x2f2dd2=_0x1dade9;if(this[_0x2f2dd2(0x17d)](_0x118656['id']))return;let _0x3329c3=_0x118656[_0x2f2dd2(0x1d8)];if(!_0x3329c3&&_0x2abefe[_0x2f2dd2(0x1c1)])try{_0x3329c3=await _0x2abefe[_0x2f2dd2(0x1c1)](_0x118656['id']);}catch(_0x3b9027){return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x16d),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'originalError':_0x3b9027}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}if(_0x3329c3)switch(_0x118656[_0x2f2dd2(0x18b)]){case _0x5b8b01[_0x2f2dd2(0x17c)]:if(_0x2f2dd2(0x185)!=typeof _0x3329c3)return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x185),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});await this[_0x2f2dd2(0x16f)](_0x3329c3,{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']});break;case _0x5b8b01[_0x2f2dd2(0x18d)]:if(!(_0x3329c3 instanceof File))return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x168),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});await this[_0x2f2dd2(0x1ac)]([_0x3329c3],{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']});break;case _0x5b8b01[_0x2f2dd2(0x15e)]:if(_0x2f2dd2(0x1cb)!=typeof _0x3329c3||!(_0x2f2dd2(0x1d9)in _0x3329c3)||!(_0x2f2dd2(0x18b)in _0x3329c3))return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x1a4),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});_0x3329c3=AIChatContext[_0x2f2dd2(0x1ca)](_0x3329c3,_0x118656[_0x2f2dd2(0x1b7)]),await this[_0x2f2dd2(0x1ac)]([_0x3329c3],{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']},_0x5b8b01[_0x2f2dd2(0x15e)]);break;case _0x5b8b01[_0x2f2dd2(0x145)]:break;default:this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x1b9),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'resourceType':_0x118656[_0x2f2dd2(0x18b)]}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}else this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x1aa),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}static[_0x1dade9(0x1ca)](_0x14a238,_0x3166d5){const _0x51511c=_0x1dade9;switch(_0x14a238[_0x51511c(0x18b)]){case _0x507e3f[_0x51511c(0x1ab)]:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x1c7)});case _0x507e3f[_0x51511c(0x160)]:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x195)});default:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x1be)});}}static[_0x1dade9(0x17e)](_0x51169d){const _0x497f68=_0x1dade9;switch(_0x51169d[_0x497f68(0x18b)]){case _0x5b8b01[_0x497f68(0x18d)]:return{'type':_0x5b8b01[_0x497f68(0x18d)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x17c)]:return{'type':_0x5b8b01[_0x497f68(0x17c)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x151)]:return{'type':_0x5b8b01[_0x497f68(0x151)],'id':_0x51169d['id'],..._0x51169d[_0x497f68(0x175)]?.[_0x497f68(0x1c4)]&&{'selection':_0x51169d[_0x497f68(0x175)]}};case _0x5b8b01[_0x497f68(0x15e)]:return{'type':_0x5b8b01[_0x497f68(0x18d)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x145)]:{const _0x2f8214=_0x51169d;return{'type':_0x5b8b01[_0x497f68(0x145)],'mcpServerName':_0x2f8214[_0x497f68(0x192)],'toolName':_0x2f8214[_0x497f68(0x159)],'data':_0x2f8214[_0x497f68(0x1d8)],'id':_0x2f8214['id']};}default:return null;}}[_0x1dade9(0x156)](_0x4efbf8,_0x5d4af6=!0x1){const _0x3ddf7b=_0x1dade9;if(this[_0x3ddf7b(0x1c8)][_0x3ddf7b(0x186)](_0x4efbf8[_0x3ddf7b(0x1d5)],_0x4efbf8),_0x4efbf8[_0x3ddf7b(0x153)]||this[_0x3ddf7b(0x1d6)](_0x3ddf7b(0x1d2),{'contextItem':_0x4efbf8,'isLoading':_0x5d4af6}),_0x3ddf7b(0x1d4)===_0x4efbf8[_0x3ddf7b(0x1d5)]&&this[_0x3ddf7b(0x15b)](),_0x4efbf8[_0x3ddf7b(0x1c2)]){const _0x358a54=this[_0x3ddf7b(0x191)](_0x4efbf8[_0x3ddf7b(0x1c2)]);_0x358a54&&_0x358a54[_0x3ddf7b(0x198)](_0x32144d=>{const _0x3c2ada=_0x3ddf7b;this[_0x3c2ada(0x181)](_0x32144d,_0x4efbf8[_0x3c2ada(0x1c2)],!0x0);});}}[_0x1dade9(0x18e)](_0x25e359){const _0x5efbb6=_0x1dade9,_0x55845f=this[_0x5efbb6(0x1c8)][_0x5efbb6(0x163)](_0x25e359),_0x386c8f=this[_0x5efbb6(0x1d1)][_0x5efbb6(0x163)](_0x25e359);if(_0x386c8f&&(_0x386c8f[_0x5efbb6(0x16c)](),this[_0x5efbb6(0x1d1)][_0x5efbb6(0x161)](_0x25e359)),_0x55845f?.[_0x5efbb6(0x1c2)]){const _0x1e6e52=this[_0x5efbb6(0x191)](_0x55845f[_0x5efbb6(0x1c2)]);_0x1e6e52&&_0x1e6e52[_0x5efbb6(0x198)](_0x5fb372=>{const _0x465ac0=_0x5efbb6;this[_0x465ac0(0x181)](_0x5fb372,_0x55845f[_0x465ac0(0x1c2)],!0x1);});}this[_0x5efbb6(0x1c8)][_0x5efbb6(0x161)](_0x25e359),this[_0x5efbb6(0x1d6)](_0x5efbb6(0x169),{'uiId':_0x25e359,'type':_0x55845f?.[_0x5efbb6(0x18b)]}),_0x5efbb6(0x1d4)===_0x25e359&&this[_0x5efbb6(0x15b)]();}[_0x1dade9(0x16a)](_0x5bfea1,_0x263b75){const _0x4d0c6c=_0x1dade9;if(this[_0x4d0c6c(0x1c8)][_0x4d0c6c(0x19c)](_0x5bfea1[_0x4d0c6c(0x1d5)])&&(this[_0x4d0c6c(0x1c8)][_0x4d0c6c(0x186)](_0x5bfea1[_0x4d0c6c(0x1d5)],_0x5bfea1),this[_0x4d0c6c(0x1d6)](_0x4d0c6c(0x1cc),{'contextItem':_0x5bfea1,'isLoading':_0x263b75}),_0x5bfea1[_0x4d0c6c(0x1c2)])){const _0xfe384=this[_0x4d0c6c(0x191)](_0x5bfea1[_0x4d0c6c(0x1c2)]);_0xfe384&&_0xfe384[_0x4d0c6c(0x198)](_0x18ee32=>{const _0x6140b6=_0x4d0c6c;this[_0x6140b6(0x181)](_0x18ee32,_0x5bfea1[_0x6140b6(0x1c2)],!0x0);});}}[_0x1dade9(0x183)](_0xe6ca00){const _0xfd2dd3=_0x1dade9;this[_0xfd2dd3(0x14a)][_0xfd2dd3(0x186)](_0xe6ca00[_0xfd2dd3(0x1d5)],_0xe6ca00);}[_0x1dade9(0x1b1)](){const _0x38e44c=_0x1dade9;this[_0x38e44c(0x148)]={'document':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x146)]?.[_0x38e44c(0x18c)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x147)]?.[_0x38e44c(0x18c)]},'files':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x1c9)]?.[_0x38e44c(0x18c)]},'sources':this[_0x38e44c(0x1a9)](),'customItems':this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x14f)]?.[_0x38e44c(0x1b8)](_0x9cd7db=>({..._0x9cd7db,'enabled':!0x0}))??[]},this[_0x38e44c(0x1d6)](_0x38e44c(0x152),{'options':this[_0x38e44c(0x148)]});}[_0x1dade9(0x1a9)](){const _0x10eda6=_0x1dade9;return this[_0x10eda6(0x1a3)]?.[_0x10eda6(0x17b)]?.[_0x10eda6(0x1b8)](_0x7dd0e8=>({..._0x7dd0e8,'resources':[]}))??[];}[_0x1dade9(0x15b)](){const _0x2e2aa2=_0x1dade9,_0x1aeabc=this[_0x2e2aa2(0x1ae)]()||this[_0x2e2aa2(0x18f)]();this[_0x2e2aa2(0x148)][_0x2e2aa2(0x146)][_0x2e2aa2(0x1b4)]=_0x1aeabc,this[_0x2e2aa2(0x1d6)](_0x2e2aa2(0x152),{'options':this[_0x2e2aa2(0x148)]});}[_0x1dade9(0x17d)](_0x39b330){const _0x49205e=_0x1dade9;for(const _0x9f61f0 of this[_0x49205e(0x1c8)][_0x49205e(0x170)]())if(_0x9f61f0[_0x49205e(0x1c2)]===_0x39b330)return!0x0;for(const _0x406e55 of this[_0x49205e(0x14a)][_0x49205e(0x170)]())if(_0x406e55[_0x49205e(0x1c2)]===_0x39b330)return!0x0;return!0x1;}[_0x1dade9(0x191)](_0x515b95){const _0x5cf821=_0x1dade9,_0x215f3e=[];for(const _0x47c991 of this[_0x5cf821(0x148)][_0x5cf821(0x17b)]){_0x47c991[_0x5cf821(0x19e)][_0x5cf821(0x194)](_0x2b3773=>_0x2b3773['id']===_0x515b95)&&_0x215f3e[_0x5cf821(0x16b)](_0x47c991['id']);}return 0x0===_0x215f3e[_0x5cf821(0x1c4)]?null:_0x215f3e;}[_0x1dade9(0x181)](_0x5aa0e5,_0x9c620a,_0x33d433){const _0x50d579=_0x1dade9,_0x18c63b=this[_0x50d579(0x148)][_0x50d579(0x17b)][_0x50d579(0x194)](_0x5add5e=>_0x5add5e['id']===_0x5aa0e5);if(!_0x18c63b)return;const _0x33bc4d=_0x18c63b[_0x50d579(0x19e)][_0x50d579(0x194)](_0x3e4114=>_0x3e4114['id']===_0x9c620a);_0x33bc4d&&(_0x33bc4d[_0x50d579(0x14c)]=_0x33d433,this[_0x50d579(0x1d6)](_0x50d579(0x15f),{'sourceId':_0x5aa0e5,'resourceId':_0x9c620a,'isInContext':_0x33d433}));}[_0x1dade9(0x1d3)](_0x498268){const _0x40d469=_0x1dade9;this[_0x40d469(0x15c)][_0x40d469(0x186)](_0x498268,!0x0),this[_0x40d469(0x15c)][_0x40d469(0x17a)]&&this[_0x40d469(0x1d6)](_0x40d469(0x1a6),{'isUploadInProgress':!0x0});}[_0x1dade9(0x19f)](_0x4bfdc8){const _0x4edb46=_0x1dade9;this[_0x4edb46(0x15c)][_0x4edb46(0x161)](_0x4bfdc8),0x0===this[_0x4edb46(0x15c)][_0x4edb46(0x17a)]&&this[_0x4edb46(0x1d6)](_0x4edb46(0x1a6),{'isUploadInProgress':!0x1});}}