@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4a5b(_0x4a3bf6,_0x39df33){const _0x14e7b6=_0x14e7();return _0x4a5b=function(_0x4a5bc7,_0x25efd5){_0x4a5bc7=_0x4a5bc7-0xc7;let _0x458d86=_0x14e7b6[_0x4a5bc7];return _0x458d86;},_0x4a5b(_0x4a3bf6,_0x39df33);}const _0x336815=_0x4a5b;(function(_0x2d43c5,_0x20be59){const _0x2bc0b6=_0x4a5b,_0x4296ca=_0x2d43c5();while(!![]){try{const _0xca7b08=-parseInt(_0x2bc0b6(0xed))/0x1+parseInt(_0x2bc0b6(0xd4))/0x2+parseInt(_0x2bc0b6(0xeb))/0x3*(parseInt(_0x2bc0b6(0xec))/0x4)+parseInt(_0x2bc0b6(0xdf))/0x5+parseInt(_0x2bc0b6(0xd6))/0x6+-parseInt(_0x2bc0b6(0xda))/0x7*(-parseInt(_0x2bc0b6(0xf1))/0x8)+parseInt(_0x2bc0b6(0xd8))/0x9*(-parseInt(_0x2bc0b6(0xe7))/0xa);if(_0xca7b08===_0x20be59)break;else _0x4296ca['push'](_0x4296ca['shift']());}catch(_0x328826){_0x4296ca['push'](_0x4296ca['shift']());}}}(_0x14e7,0xa94a5));import{Command as _0x1a00d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x589c3f}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1a00d{[_0x336815(0xe4)];constructor(_0x13e686,_0x170caa){const _0x26d47d=_0x336815;super(_0x13e686),this[_0x26d47d(0xe4)]=_0x170caa,this[_0x26d47d(0xd1)](_0x26d47d(0xd5),[]),this['on'](_0x26d47d(0xf0),(_0x3fe034,_0x29b7b2,_0x527abe)=>{const _0x540fb8=_0x26d47d;this[_0x540fb8(0xce)]&&(this[_0x540fb8(0xd5)]=fs(this[_0x540fb8(0xe4)],_0x527abe));}),this[_0x26d47d(0xd1)](_0x26d47d(0xd3),!0x1),this['on'](_0x26d47d(0xe2),(_0x459799,_0x105159,_0x5650c8)=>{const _0x350915=_0x26d47d;this[_0x350915(0xd5)]=_0x5650c8?fs(this[_0x350915(0xe4)],this[_0x350915(0xd3)]):[];});}[_0x336815(0xd9)](){const _0xfab26a=_0x336815,_0x43beaf=this[_0xfab26a(0xdd)][_0xfab26a(0xdb)];this[_0xfab26a(0xd3)]=function(_0x31a63e){const _0x21fe9b=_0xfab26a,_0x1c8402=_0x31a63e[_0x21fe9b(0xcd)][_0x21fe9b(0xd7)];return _0x1c8402[_0x21fe9b(0xe1)]?0x0!==[..._0x1c8402[_0x21fe9b(0xf2)]()][_0x21fe9b(0xe9)]&&![..._0x1c8402[_0x21fe9b(0xf2)]()][0x0][_0x21fe9b(0xe5)]:!!_0x31a63e[_0x21fe9b(0xe3)](_0x1c8402[_0x21fe9b(0xe6)]());}(_0x43beaf);const _0x1bd26f=_0x43beaf[_0xfab26a(0xcd)][_0xfab26a(0xd7)],_0x205847=this[_0xfab26a(0xdd)][_0xfab26a(0xd0)][_0xfab26a(0xe8)](_0xfab26a(0xcb));for(const _0x423b99 of _0x1bd26f[_0xfab26a(0xca)]())for(const _0x4ff920 of _0x423b99[_0xfab26a(0xef)]())if(_0x4ff920['is'](_0xfab26a(0xe0))&&_0x205847[_0xfab26a(0xee)](_0x4ff920[_0xfab26a(0xcc)]))return void(this[_0xfab26a(0xce)]=!0x1);this[_0xfab26a(0xce)]=!0x0;}[_0x336815(0xc9)](_0x2b11ae='',_0x360749='',_0x644904=_0x336815(0xc7)){const _0x3d5fd4=_0x336815;this[_0x3d5fd4(0xdd)][_0x3d5fd4(0xcf)][_0x3d5fd4(0xe8)](_0x589c3f)[_0x3d5fd4(0xdc)](_0x2b11ae,_0x360749,_0x644904);}}function fs(_0x4432b4,_0x167db0){const _0x8a3183=_0x336815,_0x2ba2ca=new Set();for(const _0x2bea81 of _0x4432b4[_0x8a3183(0xea)]())(_0x167db0||!0x1===_0x2bea81[_0x8a3183(0xd2)])&&_0x2ba2ca[_0x8a3183(0xc8)](_0x2bea81['id']);return Array[_0x8a3183(0xde)](_0x2ba2ca);}function _0x14e7(){const _0xc4e82b=['_hasContext','169484nMyegA','enabledCommandsIds','1999674AmNFKw','selection','4973571xWLTHj','refresh','7574MYtPjO','model','showUI','editor','from','4474070LAGADi','element','isCollapsed','change:isEnabled','hasContent','_commandDefinitions','isEmpty','getFirstRange','10CijeVX','get','length','values','524751mFltSx','8VBDgHk','742319EkmkWA','includes','getItems','change:_hasContext','2408PUNIMd','getSelectedBlocks','custom','add','execute','getRanges','ai.assistant.disabledElements','name','document','isEnabled','plugins','config','set','requiresContent'];_0x14e7=function(){return _0xc4e82b;};return _0x14e7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2af3c4=_0x36e7;(function(_0x8f379c,_0x1fef1a){const _0x2431e6=_0x36e7,_0x58309f=_0x8f379c();while(!![]){try{const _0x216680=parseInt(_0x2431e6(0xf3))/0x1*(parseInt(_0x2431e6(0xef))/0x2)+parseInt(_0x2431e6(0x137))/0x3*(parseInt(_0x2431e6(0x118))/0x4)+-parseInt(_0x2431e6(0x12b))/0x5+-parseInt(_0x2431e6(0xd9))/0x6+-parseInt(_0x2431e6(0x12c))/0x7+parseInt(_0x2431e6(0xda))/0x8+-parseInt(_0x2431e6(0xdf))/0x9*(-parseInt(_0x2431e6(0x143))/0xa);if(_0x216680===_0x1fef1a)break;else _0x58309f['push'](_0x58309f['shift']());}catch(_0x43640c){_0x58309f['push'](_0x58309f['shift']());}}}(_0x74ee,0xa2083));import{ContextPlugin as _0x403328}from'ckeditor5/src/core.js';import{AIConnector as _0x1f3731}from'../aicore/aiconnector.js';function _0x36e7(_0x410e36,_0x40e54f){const _0x74eeaf=_0x74ee();return _0x36e7=function(_0x36e76,_0x459ee2){_0x36e76=_0x36e76-0xd8;let _0x283227=_0x74eeaf[_0x36e76];return _0x283227;},_0x36e7(_0x410e36,_0x40e54f);}import{AIEditing as _0x450285}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4a64df,AIBalloonView as _0x38bdb3}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x74ee(){const _0x1078fd=['1291131VLWEOj','document','_pendingRenderCallback','_setupMarkerRemovalListener','isOfficialPlugin','stopListening','fire','startsWith','end','requires','hide','Dialog','_getSelectionElements','ai-balloon-selection','length','getChangedMarkers','window','_setupVisualSelection','markers','hideFakeVisualSelection','top','AIEditing','_calculateDialogPosition','bind','isTrackChangesOn','icon','round','showFakeVisualSelection','pluginName','differ','ai-balloon-','left','isEqual','balloonView','_config','ai-balloon','once','1047972VPOwdV','ai-selection:','selectionRemoved','_updateBalloon','AI_ACTIONS_SELECTION_REMOVED_ERROR','listenTo','updatePosition','ai.availableReplyActions','setupRotator','filter','getBoundingRect','get','index','_calculateOptimalTopPosition','root','_isUpdatingMarkers','getIntersection','title','headerView','6541445ksSEKe','7406959nZMynb','startAutoScroll','iconView','show','showBlockingError','dialogClosed','off','width','stopAutoScroll','isOpen','model','6DrboXT','locale','getMarkersGroup','render','ai-selection','updateContent','bottom','close','_cleanupMarkerRemovalListener','config','start','context','9230MTcYgF','commands','height','172062muZCfs','2927168agDCem','showRotator','getVisible','\x20ai-balloon-rotator','trackChanges','8559LPDYnh','isPremiumPlugin','plugins','_showDialog','AIBalloon','value','ranges','view','aiBalloon','$graveyard','rootName','content','open','change','max','editing','2cXTOCV','mainView','label','delegate'];_0x74ee=function(){return _0x1078fd;};return _0x74ee();}import{getAllMarkersDomElementsSorted as _0x429885}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x166334,Rect as _0x540e4d,scrollViewportToShowTarget as _0x48702c}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2e6b0b}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x51d904}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x1e0357}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4a64df,_0x2af3c4(0x131),_0x2af3c4(0x11a)];const x=0xa;export class AIBalloon extends _0x403328{static get[_0x2af3c4(0xfc)](){return[_0x1f3731,_0x450285];}static get[_0x2af3c4(0x10f)](){const _0x3a6213=_0x2af3c4;return _0x3a6213(0xe3);}static get[_0x2af3c4(0xf7)](){return!0x0;}static get[_0x2af3c4(0xe0)](){return!0x0;}[_0x2af3c4(0x135)]=!0x1;[_0x2af3c4(0x115)];[_0x2af3c4(0x127)]=!0x1;[_0x2af3c4(0xf5)]=null;[_0x2af3c4(0xeb)](_0x47b9d9){const _0x24ce0e=_0x2af3c4,_0xe50cb7=_0x2e6b0b(this[_0x24ce0e(0x142)]);if(this[_0x24ce0e(0x115)]=_0x47b9d9,this[_0x24ce0e(0x135)])return void this[_0x24ce0e(0x11b)](_0x47b9d9);const _0x303ca8=this[_0x24ce0e(0x142)][_0x24ce0e(0x140)][_0x24ce0e(0x123)](_0x24ce0e(0x11f))||[..._0x51d904],_0x39feba=_0xe50cb7?.[_0x24ce0e(0x144)][_0x24ce0e(0x123)](_0x24ce0e(0xde)),_0x7861c0=_0x39feba?.[_0x24ce0e(0xe4)];this[_0x24ce0e(0x114)]=new _0x38bdb3(_0xe50cb7[_0x24ce0e(0x138)],_0x47b9d9,_0x303ca8,!!_0x7861c0),this[_0x24ce0e(0x114)][_0x24ce0e(0xf2)](..._0x4a64df)['to'](this),_0x39feba&&this[_0x24ce0e(0x114)][_0x24ce0e(0x10a)](_0x24ce0e(0x10b))['to'](_0x39feba,_0x24ce0e(0xe4)),this[_0x24ce0e(0xe2)](_0x47b9d9);}[_0x2af3c4(0x13e)](){const _0x57d48c=_0x2af3c4;_0x2e6b0b(this[_0x57d48c(0x142)])[_0x57d48c(0xe1)][_0x57d48c(0x123)](_0x57d48c(0xfe))[_0x57d48c(0xfd)]();}[_0x2af3c4(0x12d)](){const _0xdd349b=_0x2af3c4;this[_0xdd349b(0x114)]&&this[_0xdd349b(0x114)][_0xdd349b(0x12d)]();}[_0x2af3c4(0x134)](){const _0x4f897a=_0x2af3c4;this[_0x4f897a(0x114)]&&this[_0x4f897a(0x114)][_0x4f897a(0x134)]();}[_0x2af3c4(0x11b)](_0x22f50d){const _0x4e809f=_0x2af3c4,_0x178988=_0x2e6b0b(this[_0x4e809f(0x142)]),_0x2144a4=_0x178988[_0x4e809f(0xe1)][_0x4e809f(0x123)](_0x4e809f(0xfe));this[_0x4e809f(0xf5)]&&(_0x178988[_0x4e809f(0xee)][_0x4e809f(0xe6)][_0x4e809f(0x132)](_0x4e809f(0x13a),this[_0x4e809f(0xf5)]),this[_0x4e809f(0xf5)]=null),this[_0x4e809f(0x127)]=!0x0,_0x2144a4[_0x4e809f(0xe6)]?.[_0x4e809f(0x12a)]&&(_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0xf1)]=_0x22f50d[_0x4e809f(0x129)],_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0x12e)]&&_0x22f50d[_0x4e809f(0x10c)]&&(_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0x12e)][_0x4e809f(0xea)]=_0x22f50d[_0x4e809f(0x10c)])),this[_0x4e809f(0x114)][_0x4e809f(0x13c)](_0x22f50d[_0x4e809f(0xf0)]),this[_0x4e809f(0x104)](_0x22f50d[_0x4e809f(0xe5)],_0x22f50d[_0x4e809f(0x124)]),this[_0x4e809f(0xf5)]=()=>{const _0x475114=_0x4e809f;this[_0x475114(0x127)]=!0x1,this[_0x475114(0xf5)]=null,_0x2144a4[_0x475114(0xe6)]&&_0x2144a4[_0x475114(0xe6)][_0x475114(0x11e)]();},_0x178988[_0x4e809f(0xee)][_0x4e809f(0xe6)][_0x4e809f(0x117)](_0x4e809f(0x13a),this[_0x4e809f(0xf5)]);}[_0x2af3c4(0x104)](_0x3d363b,_0x53cb72){const _0x2e6c14=_0x2af3c4;this[_0x2e6c14(0x142)][_0x2e6c14(0xe1)][_0x2e6c14(0x123)](_0x450285)[_0x2e6c14(0x10e)](_0x3d363b,_0x2e6c14(0x111)+_0x53cb72,!0x0,!0x0);}[_0x2af3c4(0xe2)](_0xba2340){const _0x536ce2=_0x2af3c4,_0x2cea3a=_0x2e6b0b(this[_0x536ce2(0x142)]);this[_0x536ce2(0x104)](_0xba2340[_0x536ce2(0xe5)],_0xba2340[_0x536ce2(0x124)]);const _0x4b23ed=this[_0x536ce2(0xff)]();_0x4b23ed&&_0x4b23ed[0x0]&&_0x48702c({'target':_0x4b23ed[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2cea3a[_0x536ce2(0xe1)][_0x536ce2(0x123)](_0x536ce2(0xfe))[_0x536ce2(0x12f)]({'title':_0xba2340[_0x536ce2(0x129)],'icon':_0xba2340[_0x536ce2(0x10c)],'hasCloseButton':!0x0,'id':_0x536ce2(0xe7),'position':this[_0x536ce2(0x109)][_0x536ce2(0x10a)](this),'className':_0x536ce2(0x116)+(_0xba2340[_0x536ce2(0xdb)]?_0x536ce2(0xdd):''),'content':this[_0x536ce2(0x114)],'onShow':_0x731d45=>{const _0x302476=_0x536ce2;_0xba2340[_0x302476(0xdb)]&&this[_0x302476(0x114)][_0x302476(0x120)](_0x731d45),this[_0x302476(0xf6)](),this[_0x302476(0x135)]=!0x0;},'onHide':()=>{const _0x46930f=_0x536ce2;this[_0x46930f(0x142)][_0x46930f(0xe1)][_0x46930f(0x123)](_0x46930f(0x108))[_0x46930f(0x106)](_0x46930f(0x111)+this[_0x46930f(0x115)][_0x46930f(0x124)]),this[_0x46930f(0x13f)](),this[_0x46930f(0xf9)](_0x46930f(0x131)),this[_0x46930f(0x135)]=!0x1;}});}[_0x2af3c4(0x109)](_0x4c334f,_0x49f69b){const _0x77a22a=_0x2af3c4;if(!_0x49f69b)return null;const _0x54fd24=this[_0x77a22a(0xff)]();if(!_0x54fd24||0x0===_0x54fd24[_0x77a22a(0x101)])return{'left':Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x112)]+_0x49f69b[_0x77a22a(0x133)]/0x2-_0x4c334f[_0x77a22a(0x133)]/0x2),'top':Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x107)]+_0x49f69b[_0x77a22a(0xd8)]/0x2-_0x4c334f[_0x77a22a(0xd8)]/0x2)};const _0x2a0bec=Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x112)]+_0x49f69b[_0x77a22a(0x133)]/0x2-_0x4c334f[_0x77a22a(0x133)]/0x2),_0x5e9af8=new _0x540e4d(_0x54fd24[0x0]),_0x2ee1e5=new _0x540e4d(_0x54fd24[_0x54fd24[_0x77a22a(0x101)]-0x1]),_0x1f680d=_0x4c334f[_0x77a22a(0xd8)],_0x1dec5c=this[_0x77a22a(0x115)][_0x77a22a(0xdb)]?0x8:0x0;return{'left':_0x2a0bec,'top':this[_0x77a22a(0x125)](_0x5e9af8,_0x2ee1e5,_0x1f680d,_0x1dec5c,_0x49f69b)};}[_0x2af3c4(0x125)](_0x5ec4a1,_0x931860,_0x2f7996,_0x5c36ad=0x0,_0x215b5a){const _0x365a28=_0x2af3c4,_0x4ec4ec=_0x2f7996+_0x5c36ad,_0x363f3e=new _0x540e4d(_0x166334[_0x365a28(0x103)]),_0x33f8a2=[_0x5ec4a1[_0x365a28(0xdc)](),_0x931860[_0x365a28(0xdc)]()][_0x365a28(0x121)](_0x418af7=>_0x418af7),_0xf1e001=_0x540e4d[_0x365a28(0x122)](_0x33f8a2);if(!_0xf1e001)return Math[_0x365a28(0x10d)](_0x215b5a[_0x365a28(0x107)]+_0x215b5a[_0x365a28(0xd8)]/0x2);const _0x3c32ec=_0x363f3e[_0x365a28(0x128)](_0xf1e001);if(!_0x3c32ec)return Math[_0x365a28(0x10d)](_0x215b5a[_0x365a28(0x107)]+_0x215b5a[_0x365a28(0xd8)]/0x2);const _0x57e76f=_0x215b5a[_0x365a28(0xdc)](),_0x52797a=_0x57e76f&&_0xf1e001[_0x365a28(0xd8)]>_0x57e76f[_0x365a28(0xd8)],_0x327825=_0x3c32ec[_0x365a28(0x107)],_0x1085ee=_0x3c32ec[_0x365a28(0x13d)];if(_0x52797a){const _0x3999b6=(_0x57e76f||_0x363f3e)[_0x365a28(0xd8)]/0x2-_0x4ec4ec/0x2,_0x1ec011=_0x327825-x-_0x215b5a[_0x365a28(0x107)],_0x917ba4=_0x215b5a[_0x365a28(0x13d)]-_0x1085ee-x;return _0x1ec011>=_0x4ec4ec?Math[_0x365a28(0xed)](x,_0x327825-_0x4ec4ec-x):_0x917ba4>=_0x4ec4ec?_0x1085ee+x:Math[_0x365a28(0xed)](x,_0x3999b6);}const _0x66884=_0x327825-_0x4ec4ec,_0x158e82=_0x215b5a[_0x365a28(0x13d)]-_0x1085ee-x,_0x171919=_0x327825-x-_0x215b5a[_0x365a28(0x107)];let _0x44a1b6;if(_0x158e82>=_0x4ec4ec)_0x44a1b6=_0x1085ee+x;else{if(_0x171919>=_0x4ec4ec)_0x44a1b6=_0x66884-x;else _0x44a1b6=_0x327825+_0xf1e001[_0x365a28(0xd8)]/0x2-_0x4ec4ec/0x2;}return _0x44a1b6;}[_0x2af3c4(0xf6)](){const _0x802b51=_0x2af3c4,_0x98468e=_0x2e6b0b(this[_0x802b51(0x142)]);this[_0x802b51(0x11d)](_0x98468e[_0x802b51(0x136)][_0x802b51(0xf4)],_0x802b51(0xec),()=>{const _0x167e3c=_0x802b51;if(this[_0x167e3c(0x127)])return;for(const {name:_0x59db0d,data:{newRange:_0x321c3d}}of _0x98468e[_0x167e3c(0x136)][_0x167e3c(0xf4)][_0x167e3c(0x110)][_0x167e3c(0x102)]())if(_0x59db0d[_0x167e3c(0xfa)](_0x167e3c(0x119))&&(_0x321c3d&&(_0x321c3d[_0x167e3c(0x141)][_0x167e3c(0x113)](_0x321c3d[_0x167e3c(0xfb)])||_0x167e3c(0xe8)==_0x321c3d[_0x167e3c(0x126)][_0x167e3c(0xe9)])||null==_0x321c3d)){const _0x7a790=_0x1e0357(this[_0x167e3c(0x142)][_0x167e3c(0x138)],_0x167e3c(0x11c));this[_0x167e3c(0x114)][_0x167e3c(0x130)](_0x7a790),this[_0x167e3c(0xf9)](_0x167e3c(0x11a));}});}[_0x2af3c4(0x13f)](){const _0x537377=_0x2af3c4,_0x1db4ff=_0x2e6b0b(this[_0x537377(0x142)]);this[_0x537377(0xf8)](_0x1db4ff[_0x537377(0x136)][_0x537377(0xf4)]);}[_0x2af3c4(0xff)](){const _0x1a7d62=_0x2af3c4,_0x3463b5=_0x2e6b0b(this[_0x1a7d62(0x142)]);return _0x429885(_0x3463b5[_0x1a7d62(0xee)],[..._0x3463b5[_0x1a7d62(0x136)][_0x1a7d62(0x105)][_0x1a7d62(0x139)](_0x1a7d62(0x13b)),..._0x3463b5[_0x1a7d62(0x136)][_0x1a7d62(0x105)][_0x1a7d62(0x139)](_0x1a7d62(0x100))]);}}
|
|
23
|
+
const _0x2c3ce1=_0x2c6c;(function(_0x1acdf8,_0x1a5965){const _0x37d953=_0x2c6c,_0x446c2f=_0x1acdf8();while(!![]){try{const _0x795926=parseInt(_0x37d953(0x14a))/0x1+-parseInt(_0x37d953(0x139))/0x2*(-parseInt(_0x37d953(0x11b))/0x3)+parseInt(_0x37d953(0xfa))/0x4*(-parseInt(_0x37d953(0x100))/0x5)+parseInt(_0x37d953(0x14b))/0x6*(-parseInt(_0x37d953(0x112))/0x7)+parseInt(_0x37d953(0x11d))/0x8*(-parseInt(_0x37d953(0x120))/0x9)+-parseInt(_0x37d953(0x157))/0xa*(-parseInt(_0x37d953(0x108))/0xb)+parseInt(_0x37d953(0x109))/0xc;if(_0x795926===_0x1a5965)break;else _0x446c2f['push'](_0x446c2f['shift']());}catch(_0x171e9b){_0x446c2f['push'](_0x446c2f['shift']());}}}(_0xdafe,0x6917d));import{ContextPlugin as _0x5d7822}from'ckeditor5/src/core.js';import{AIConnector as _0x19d7eb}from'../aicore/aiconnector.js';import{AIEditing as _0x6b735e}from'../aicore/aiediting.js';function _0xdafe(){const _0x5b66d0=['stopAutoScroll','context','open','fire','off','563510xOrNNQ','ai-selection','commands','max','startsWith','render','\x20ai-balloon-rotator','isTrackChangesOn','editing','root','_isUpdatingMarkers','markers','_pendingRenderCallback','delegate','updateContent','close','aiBalloon','showBlockingError','108CfYHka','view','width','ranges','showFakeVisualSelection','plugins','76035gwxlhA','round','end','title','_cleanupMarkerRemovalListener','trackChanges','content','dialogClosed','44GTPqjr','7425144vKcwgP','balloonView','isOfficialPlugin','label','hideFakeVisualSelection','get','getMarkersGroup','left','length','7ZYuRUC','isEqual','updatePosition','isOpen','_updateBalloon','index','isPremiumPlugin','_getSelectionElements','window','30396ZwmnJq','AI_ACTIONS_SELECTION_REMOVED_ERROR','33744qolMyn','requires','listenTo','27NQxIzp','height','_setupMarkerRemovalListener','show','model','_setupVisualSelection','locale','once','AIEditing','value','bottom','config','startAutoScroll','selectionRemoved','setupRotator','Dialog','change','bind','iconView','icon','pluginName','ai-balloon-selection','ai.availableReplyActions','rootName','mainView','56oPMHAl','_config','$graveyard','ai-selection:','stopListening','start','_showDialog','ai-balloon','getVisible','ai-balloon-','AIBalloon','top','filter','_calculateOptimalTopPosition','getIntersection','getChangedMarkers','headerView','245397yJBncH','3117330vYsGHP','_calculateDialogPosition','showRotator','hide','document','getBoundingRect','differ'];_0xdafe=function(){return _0x5b66d0;};return _0xdafe();}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x887d9b,AIBalloonView as _0x51807e}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5b74de}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1d0d58,Rect as _0x151388,scrollViewportToShowTarget as _0x29b416}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x498fab}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x42c921}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x24bc97}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x887d9b,_0x2c3ce1(0x107),_0x2c3ce1(0x12d)];const g=0xa;function _0x2c6c(_0x195ecf,_0x482068){const _0xdafe90=_0xdafe();return _0x2c6c=function(_0x2c6c28,_0x30e1ef){_0x2c6c28=_0x2c6c28-0xf4;let _0x5b580e=_0xdafe90[_0x2c6c28];return _0x5b580e;},_0x2c6c(_0x195ecf,_0x482068);}export class AIBalloon extends _0x5d7822{static get[_0x2c3ce1(0x11e)](){return[_0x19d7eb,_0x6b735e];}static get[_0x2c3ce1(0x134)](){const _0x3e7010=_0x2c3ce1;return _0x3e7010(0x143);}static get[_0x2c3ce1(0x10b)](){return!0x0;}static get[_0x2c3ce1(0x118)](){return!0x0;}[_0x2c3ce1(0x115)]=!0x1;[_0x2c3ce1(0x13a)];[_0x2c3ce1(0x161)]=!0x1;[_0x2c3ce1(0xf4)]=null;[_0x2c3ce1(0x154)](_0x1219e1){const _0x483b5e=_0x2c3ce1,_0xbdeee3=_0x498fab(this[_0x483b5e(0x153)]);if(this[_0x483b5e(0x13a)]=_0x1219e1,this[_0x483b5e(0x115)])return void this[_0x483b5e(0x116)](_0x1219e1);const _0x4a4dac=this[_0x483b5e(0x153)][_0x483b5e(0x12b)][_0x483b5e(0x10e)](_0x483b5e(0x136))||[..._0x42c921],_0x5bf0af=_0xbdeee3?.[_0x483b5e(0x159)][_0x483b5e(0x10e)](_0x483b5e(0x105)),_0x3adacc=_0x5bf0af?.[_0x483b5e(0x129)];this[_0x483b5e(0x10a)]=new _0x51807e(_0xbdeee3[_0x483b5e(0x126)],_0x1219e1,_0x4a4dac,!!_0x3adacc),this[_0x483b5e(0x10a)][_0x483b5e(0xf5)](..._0x887d9b)['to'](this),_0x5bf0af&&this[_0x483b5e(0x10a)][_0x483b5e(0x131)](_0x483b5e(0x15e))['to'](_0x5bf0af,_0x483b5e(0x129)),this[_0x483b5e(0x13f)](_0x1219e1);}[_0x2c3ce1(0xf7)](){const _0x5c2a6c=_0x2c3ce1;_0x498fab(this[_0x5c2a6c(0x153)])[_0x5c2a6c(0xff)][_0x5c2a6c(0x10e)](_0x5c2a6c(0x12f))[_0x5c2a6c(0x14e)]();}[_0x2c3ce1(0x12c)](){const _0x2d2922=_0x2c3ce1;this[_0x2d2922(0x10a)]&&this[_0x2d2922(0x10a)][_0x2d2922(0x12c)]();}[_0x2c3ce1(0x152)](){const _0x216997=_0x2c3ce1;this[_0x216997(0x10a)]&&this[_0x216997(0x10a)][_0x216997(0x152)]();}[_0x2c3ce1(0x116)](_0x9a17af){const _0x258015=_0x2c3ce1,_0x277e1a=_0x498fab(this[_0x258015(0x153)]),_0x53a10b=_0x277e1a[_0x258015(0xff)][_0x258015(0x10e)](_0x258015(0x12f));this[_0x258015(0xf4)]&&(_0x277e1a[_0x258015(0x15f)][_0x258015(0xfb)][_0x258015(0x156)](_0x258015(0x15c),this[_0x258015(0xf4)]),this[_0x258015(0xf4)]=null),this[_0x258015(0x161)]=!0x0,_0x53a10b[_0x258015(0xfb)]?.[_0x258015(0x149)]&&(_0x53a10b[_0x258015(0xfb)][_0x258015(0x149)][_0x258015(0x10c)]=_0x9a17af[_0x258015(0x103)],_0x53a10b[_0x258015(0xfb)][_0x258015(0x149)][_0x258015(0x132)]&&_0x9a17af[_0x258015(0x133)]&&(_0x53a10b[_0x258015(0xfb)][_0x258015(0x149)][_0x258015(0x132)][_0x258015(0x106)]=_0x9a17af[_0x258015(0x133)])),this[_0x258015(0x10a)][_0x258015(0xf6)](_0x9a17af[_0x258015(0x138)]),this[_0x258015(0x125)](_0x9a17af[_0x258015(0xfd)],_0x9a17af[_0x258015(0x117)]),this[_0x258015(0xf4)]=()=>{const _0x94b04b=_0x258015;this[_0x94b04b(0x161)]=!0x1,this[_0x94b04b(0xf4)]=null,_0x53a10b[_0x94b04b(0xfb)]&&_0x53a10b[_0x94b04b(0xfb)][_0x94b04b(0x114)]();},_0x277e1a[_0x258015(0x15f)][_0x258015(0xfb)][_0x258015(0x127)](_0x258015(0x15c),this[_0x258015(0xf4)]);}[_0x2c3ce1(0x125)](_0x583aa9,_0x1bcfd2){const _0x3edd76=_0x2c3ce1;this[_0x3edd76(0x153)][_0x3edd76(0xff)][_0x3edd76(0x10e)](_0x6b735e)[_0x3edd76(0xfe)](_0x583aa9,_0x3edd76(0x142)+_0x1bcfd2,!0x0,!0x0);}[_0x2c3ce1(0x13f)](_0x3562c7){const _0xbe44c8=_0x2c3ce1,_0x2d8e2a=_0x498fab(this[_0xbe44c8(0x153)]);this[_0xbe44c8(0x125)](_0x3562c7[_0xbe44c8(0xfd)],_0x3562c7[_0xbe44c8(0x117)]);const _0x35d770=this[_0xbe44c8(0x119)]();_0x35d770&&_0x35d770[0x0]&&_0x29b416({'target':_0x35d770[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2d8e2a[_0xbe44c8(0xff)][_0xbe44c8(0x10e)](_0xbe44c8(0x12f))[_0xbe44c8(0x123)]({'title':_0x3562c7[_0xbe44c8(0x103)],'icon':_0x3562c7[_0xbe44c8(0x133)],'hasCloseButton':!0x0,'id':_0xbe44c8(0xf8),'position':this[_0xbe44c8(0x14c)][_0xbe44c8(0x131)](this),'className':_0xbe44c8(0x140)+(_0x3562c7[_0xbe44c8(0x14d)]?_0xbe44c8(0x15d):''),'content':this[_0xbe44c8(0x10a)],'onShow':_0x80448=>{const _0x48630a=_0xbe44c8;_0x3562c7[_0x48630a(0x14d)]&&this[_0x48630a(0x10a)][_0x48630a(0x12e)](_0x80448),this[_0x48630a(0x122)](),this[_0x48630a(0x115)]=!0x0;},'onHide':()=>{const _0x4866ed=_0xbe44c8;this[_0x4866ed(0x153)][_0x4866ed(0xff)][_0x4866ed(0x10e)](_0x4866ed(0x128))[_0x4866ed(0x10d)](_0x4866ed(0x142)+this[_0x4866ed(0x13a)][_0x4866ed(0x117)]),this[_0x4866ed(0x104)](),this[_0x4866ed(0x155)](_0x4866ed(0x107)),this[_0x4866ed(0x115)]=!0x1;}});}[_0x2c3ce1(0x14c)](_0x327177,_0x2c8fc0){const _0x14db39=_0x2c3ce1;if(!_0x2c8fc0)return null;const _0x3233c7=this[_0x14db39(0x119)]();if(!_0x3233c7||0x0===_0x3233c7[_0x14db39(0x111)])return{'left':Math[_0x14db39(0x101)](_0x2c8fc0[_0x14db39(0x110)]+_0x2c8fc0[_0x14db39(0xfc)]/0x2-_0x327177[_0x14db39(0xfc)]/0x2),'top':Math[_0x14db39(0x101)](_0x2c8fc0[_0x14db39(0x144)]+_0x2c8fc0[_0x14db39(0x121)]/0x2-_0x327177[_0x14db39(0x121)]/0x2)};const _0x597181=Math[_0x14db39(0x101)](_0x2c8fc0[_0x14db39(0x110)]+_0x2c8fc0[_0x14db39(0xfc)]/0x2-_0x327177[_0x14db39(0xfc)]/0x2),_0x3af71e=new _0x151388(_0x3233c7[0x0]),_0x5b9c3b=new _0x151388(_0x3233c7[_0x3233c7[_0x14db39(0x111)]-0x1]),_0x1ae1ff=_0x327177[_0x14db39(0x121)],_0x16a033=this[_0x14db39(0x13a)][_0x14db39(0x14d)]?0x8:0x0;return{'left':_0x597181,'top':this[_0x14db39(0x146)](_0x3af71e,_0x5b9c3b,_0x1ae1ff,_0x16a033,_0x2c8fc0)};}[_0x2c3ce1(0x146)](_0x1b0247,_0x493157,_0x467a2b,_0x58747d=0x0,_0x3ee8d1){const _0x196d36=_0x2c3ce1,_0xe016b4=_0x467a2b+_0x58747d,_0x291005=new _0x151388(_0x1d0d58[_0x196d36(0x11a)]),_0x157242=[_0x1b0247[_0x196d36(0x141)](),_0x493157[_0x196d36(0x141)]()][_0x196d36(0x145)](_0x4ca895=>_0x4ca895),_0x434b58=_0x151388[_0x196d36(0x150)](_0x157242);if(!_0x434b58)return Math[_0x196d36(0x101)](_0x3ee8d1[_0x196d36(0x144)]+_0x3ee8d1[_0x196d36(0x121)]/0x2);const _0x4fff18=_0x291005[_0x196d36(0x147)](_0x434b58);if(!_0x4fff18)return Math[_0x196d36(0x101)](_0x3ee8d1[_0x196d36(0x144)]+_0x3ee8d1[_0x196d36(0x121)]/0x2);const _0x1d5cd9=_0x3ee8d1[_0x196d36(0x141)](),_0x32b5e3=_0x1d5cd9&&_0x434b58[_0x196d36(0x121)]>_0x1d5cd9[_0x196d36(0x121)],_0x18f3ed=_0x4fff18[_0x196d36(0x144)],_0x19ea13=_0x4fff18[_0x196d36(0x12a)];if(_0x32b5e3){const _0x347328=(_0x1d5cd9||_0x291005)[_0x196d36(0x121)]/0x2-_0xe016b4/0x2,_0x79d6=_0x18f3ed-g-_0x3ee8d1[_0x196d36(0x144)],_0x1c9f1d=_0x3ee8d1[_0x196d36(0x12a)]-_0x19ea13-g;return _0x79d6>=_0xe016b4?Math[_0x196d36(0x15a)](g,_0x18f3ed-_0xe016b4-g):_0x1c9f1d>=_0xe016b4?_0x19ea13+g:Math[_0x196d36(0x15a)](g,_0x347328);}const _0x299811=_0x18f3ed-_0xe016b4,_0x118185=_0x3ee8d1[_0x196d36(0x12a)]-_0x19ea13-g,_0x451b9f=_0x18f3ed-g-_0x3ee8d1[_0x196d36(0x144)];let _0x2de88f;if(_0x118185>=_0xe016b4)_0x2de88f=_0x19ea13+g;else{if(_0x451b9f>=_0xe016b4)_0x2de88f=_0x299811-g;else _0x2de88f=_0x18f3ed+_0x434b58[_0x196d36(0x121)]/0x2-_0xe016b4/0x2;}return _0x2de88f;}[_0x2c3ce1(0x122)](){const _0x115d42=_0x2c3ce1,_0x256fdb=_0x498fab(this[_0x115d42(0x153)]);this[_0x115d42(0x11f)](_0x256fdb[_0x115d42(0x124)][_0x115d42(0x14f)],_0x115d42(0x130),()=>{const _0x4970e8=_0x115d42;if(this[_0x4970e8(0x161)])return;for(const {name:_0x481aeb,data:{newRange:_0x4c825a}}of _0x256fdb[_0x4970e8(0x124)][_0x4970e8(0x14f)][_0x4970e8(0x151)][_0x4970e8(0x148)]())if(_0x481aeb[_0x4970e8(0x15b)](_0x4970e8(0x13c))&&(_0x4c825a&&(_0x4c825a[_0x4970e8(0x13e)][_0x4970e8(0x113)](_0x4c825a[_0x4970e8(0x102)])||_0x4970e8(0x13b)==_0x4c825a[_0x4970e8(0x160)][_0x4970e8(0x137)])||null==_0x4c825a)){const _0x4924e7=_0x24bc97(this[_0x4970e8(0x153)][_0x4970e8(0x126)],_0x4970e8(0x11c));this[_0x4970e8(0x10a)][_0x4970e8(0xf9)](_0x4924e7),this[_0x4970e8(0x155)](_0x4970e8(0x12d));}});}[_0x2c3ce1(0x104)](){const _0x553a2f=_0x2c3ce1,_0x32bce2=_0x498fab(this[_0x553a2f(0x153)]);this[_0x553a2f(0x13d)](_0x32bce2[_0x553a2f(0x124)][_0x553a2f(0x14f)]);}[_0x2c3ce1(0x119)](){const _0x31838c=_0x2c3ce1,_0x3ce29e=_0x498fab(this[_0x31838c(0x153)]);return _0x5b74de(_0x3ce29e[_0x31838c(0x15f)],[..._0x3ce29e[_0x31838c(0x124)][_0x31838c(0x162)][_0x31838c(0x10f)](_0x31838c(0x158)),..._0x3ce29e[_0x31838c(0x124)][_0x31838c(0x162)][_0x31838c(0x10f)](_0x31838c(0x135))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1270(_0x2450cf,_0x2b21c9){var _0x418d3d=_0x418d();return _0x1270=function(_0x127064,_0x1b965d){_0x127064=_0x127064-0x162;var _0x1871b2=_0x418d3d[_0x127064];return _0x1871b2;},_0x1270(_0x2450cf,_0x2b21c9);}(function(_0x17c9a4,_0x2c9b2f){var _0x211cc2=_0x1270,_0x4e1922=_0x17c9a4();while(!![]){try{var _0x34172c=parseInt(_0x211cc2(0x170))/0x1*(parseInt(_0x211cc2(0x171))/0x2)+-parseInt(_0x211cc2(0x169))/0x3*(-parseInt(_0x211cc2(0x165))/0x4)+-parseInt(_0x211cc2(0x16a))/0x5*(parseInt(_0x211cc2(0x164))/0x6)+parseInt(_0x211cc2(0x167))/0x7+-parseInt(_0x211cc2(0x16b))/0x8*(parseInt(_0x211cc2(0x16d))/0x9)+parseInt(_0x211cc2(0x162))/0xa*(parseInt(_0x211cc2(0x166))/0xb)+-parseInt(_0x211cc2(0x16c))/0xc;if(_0x34172c===_0x2c9b2f)break;else _0x4e1922['push'](_0x4e1922['shift']());}catch(_0x10acaa){_0x4e1922['push'](_0x4e1922['shift']());}}}(_0x418d,0xa0df2));function _0x418d(){var _0x22969a=['AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer','20694KAsFTZ','74tLLmHy','setTemplate','411860emRpSr','ck-ai-balloon__disclaimer-content','186WWVmjn','76aXSIgH','77QNAFrB','7608034dGMxBi','div','184089nnlvWv','188785FjzpOK','8hlylmm','10750608BsSJAN','5233122Xmwrsp'];_0x418d=function(){return _0x22969a;};return _0x418d();}import{View as _0xb8ee84}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b0ef3}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0xb8ee84{constructor(_0x81118f){var _0x1cd55d=_0x1270;super(_0x81118f),this[_0x1cd55d(0x172)]({'tag':_0x1cd55d(0x168),'attributes':{'class':['ck',_0x1cd55d(0x16f)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1cd55d(0x163)]},'children':[{'text':_0x3b0ef3(_0x81118f,_0x1cd55d(0x16e))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13e2aa=_0x1859;(function(_0x200112,_0x264e2c){const _0x15af10=_0x1859,_0xe96764=_0x200112();while(!![]){try{const _0x55c7f7=parseInt(_0x15af10(0xe8))/0x1*(-parseInt(_0x15af10(0xf9))/0x2)+-parseInt(_0x15af10(0xf3))/0x3*(-parseInt(_0x15af10(0xec))/0x4)+parseInt(_0x15af10(0xe9))/0x5*(parseInt(_0x15af10(0xea))/0x6)+parseInt(_0x15af10(0xfa))/0x7+parseInt(_0x15af10(0xed))/0x8+-parseInt(_0x15af10(0xf7))/0x9*(-parseInt(_0x15af10(0xee))/0xa)+-parseInt(_0x15af10(0xf0))/0xb*(parseInt(_0x15af10(0x100))/0xc);if(_0x55c7f7===_0x264e2c)break;else _0xe96764['push'](_0xe96764['shift']());}catch(_0x3904b5){_0xe96764['push'](_0xe96764['shift']());}}}(_0x1d73,0xef90e));function _0x1859(_0x19411d,_0x4ee685){const _0x1d7373=_0x1d73();return _0x1859=function(_0x18596e,_0xd83ce4){_0x18596e=_0x18596e-0xe6;let _0x551d82=_0x1d7373[_0x18596e];return _0x551d82;},_0x1859(_0x19411d,_0x4ee685);}import{ToolbarView as _0x473848,ButtonView as _0x43801b}from'ckeditor5/src/ui.js';import{getTranslation as _0xe7f68c}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x473848{constructor(_0x1bdb08,_0x5cea67=!0x0,_0x21287b=!0x0){const _0x4ddb8e=_0x1859;super(_0x1bdb08),this[_0x4ddb8e(0xfc)](_0x4ddb8e(0xf4),!0x1),_0x5cea67&&(this[_0x4ddb8e(0xef)]=this[_0x4ddb8e(0xe6)](_0xe7f68c(_0x1bdb08,_0x4ddb8e(0xf1)),_0x4ddb8e(0xfd)),this[_0x4ddb8e(0xef)][_0x4ddb8e(0xfb)](_0x4ddb8e(0xeb))['to'](this,_0x4ddb8e(0xf4),_0x520145=>!_0x520145),this[_0x4ddb8e(0xf5)][_0x4ddb8e(0xf2)](this[_0x4ddb8e(0xef)])),_0x21287b&&(this[_0x4ddb8e(0xf6)]=this[_0x4ddb8e(0xe6)](_0xe7f68c(_0x1bdb08,_0x4ddb8e(0xe7)),_0x5cea67?_0x4ddb8e(0xff):_0x4ddb8e(0xfd)),this[_0x4ddb8e(0xf6)][_0x4ddb8e(0xfb)](_0x4ddb8e(0xeb))['to'](this,_0x4ddb8e(0xf4),_0x186154=>!_0x186154),this[_0x4ddb8e(0xf5)][_0x4ddb8e(0xf2)](this[_0x4ddb8e(0xf6)])),this[_0x4ddb8e(0xfe)]({'attributes':{'class':[_0x4ddb8e(0x101)]}});}[_0x13e2aa(0xe6)](_0x15109c,_0x11d02d){const _0x2cc8e0=_0x13e2aa,_0x180237=new _0x43801b(this[_0x2cc8e0(0xf8)]);return _0x180237[_0x2cc8e0(0xfc)]({'label':_0x15109c,'class':_0x11d02d||'','isVisible':!0x0,'withText':!0x0}),_0x180237;}}function _0x1d73(){const _0x4e5e2a=['548414lwWjOu','9840481leVikk','bind','set','ck-ai-button-primary','extendTemplate','ck-ai-button-secondary','12EGETrF','ck-ai-balloon__toolbar','_createButton','AI_BALLOON_SUGGEST_BUTTON','3jCUixi','68205wCGVJb','606OXZgXp','isEnabled','34792tsJsPB','4598032BgtAIx','6980bMvykJ','applyButton','41983689EABoUN','AI_BALLOON_APPLY_BUTTON','add','417yAKDcy','isLoading','items','suggestButton','13581OJujDA','locale'];_0x1d73=function(){return _0x4e5e2a;};return _0x1d73();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1573e0=_0x19ac;function _0x19ac(_0x1ef5cf,_0x43509f){const _0x173296=_0x1732();return _0x19ac=function(_0x19acb9,_0x4f301f){_0x19acb9=_0x19acb9-0x188;let _0x1146fb=_0x173296[_0x19acb9];return _0x1146fb;},_0x19ac(_0x1ef5cf,_0x43509f);}(function(_0x53f496,_0x2176a3){const _0x86b532=_0x19ac,_0x274ce7=_0x53f496();while(!![]){try{const _0x26ab7f=parseInt(_0x86b532(0x1c2))/0x1*(parseInt(_0x86b532(0x197))/0x2)+-parseInt(_0x86b532(0x18a))/0x3+parseInt(_0x86b532(0x18d))/0x4*(-parseInt(_0x86b532(0x1ba))/0x5)+-parseInt(_0x86b532(0x1e3))/0x6*(parseInt(_0x86b532(0x1bb))/0x7)+-parseInt(_0x86b532(0x1ae))/0x8+-parseInt(_0x86b532(0x1dc))/0x9*(parseInt(_0x86b532(0x1a2))/0xa)+-parseInt(_0x86b532(0x191))/0xb*(-parseInt(_0x86b532(0x1bc))/0xc);if(_0x26ab7f===_0x2176a3)break;else _0x274ce7['push'](_0x274ce7['shift']());}catch(_0x3cedde){_0x274ce7['push'](_0x274ce7['shift']());}}}(_0x1732,0xbd2ac));import{ButtonView as _0x12c99f,View as _0x26ef86,ViewCollection as _0x1ec540,FocusCycler as _0x1bee75}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5da652,KeystrokeHandler as _0xfee0bc}from'ckeditor5/src/utils.js';import{IconNextArrow as _0xffe363,IconPreviousArrow as _0xdda64d}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0xb064d3}from'./aiballoontoolbarview.js';function _0x1732(){const _0x301b84=['getIndex','198670onpYNR','189kPrryb','43691112bmlors','_addContentView','hideError','_dialogContent','setupRotator','stopAutoScroll','1RlNszv','AI_BALLOON_NEXT_TOOLTIP','_addToolbar','bind','applyButton','destroy','focusCycler','listenTo','showSuggestButton','errorMessage','render','createCollection','children','view','bindTemplate','disclaimerView','ck-hidden','isLoading','ai-balloon-content','shift\x20+\x20tab','showApplyButton','stop','focusTracker','_addDisclaimerView','execute','_createNextButtonView','18hhAgIY','change:isTrackChangesOn','locale','focus','toolbar','setTemplate','suggestButton','123996WdtjQP','scrollManager','showRecoverableError','showPrevious','ck-ai-suggestion__error-text','905922cZWISM','_availableActions','_mainView','48MynniV','remove','showNext','ai-balloon-error','11vCmvyL','isEnabled','set','clear','mainView','add','1252346GDrCgO','applySuggestion','_errorView','div','includes','showBlockingError','bodyView','setLoading','_focusables','_initializeScrollManager','_createErrorView','6840230bxiFlm','insertSuggestion','_getScrollableElement','focusLast','clearLoading','span','startAutoScroll','headerView','element','AI_BALLOON_PREVIOUS_TOOLTIP','keystrokes','showError','6299688lQUTNq','focusFirst','isTrackChangesOn','ck-ai-suggestion__error','updateContent','isErrorVisible','start','_createPreviousButtonView','tab','fire','addMany'];_0x1732=function(){return _0x301b84;};return _0x1732();}import{AIBalloonDisclaimerView as _0x592807}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4eff51}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x49e0ea}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0xd91d72}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1573e0(0x198),_0x1573e0(0x1a3),_0x1573e0(0x18f),_0x1573e0(0x188)];export class AIBalloonView extends _0x26ef86{[_0x1573e0(0x1d8)];[_0x1573e0(0x1ac)];[_0x1573e0(0x1c8)];[_0x1573e0(0x18b)];[_0x1573e0(0x19f)];[_0x1573e0(0x199)];[_0x1573e0(0x1e4)];constructor(_0x2018d9,_0x56a332,_0xe83fa2,_0x5da162){const _0x1f2b2c=_0x1573e0;super(_0x2018d9),this[_0x1f2b2c(0x18b)]=_0xe83fa2,this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1d3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b0),_0x5da162),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1cb),''),this[_0x1f2b2c(0x1d8)]=new _0x5da652(),this[_0x1f2b2c(0x1ac)]=new _0xfee0bc(),this[_0x1f2b2c(0x19f)]=this[_0x1f2b2c(0x1cd)](),this[_0x1f2b2c(0x1c8)]=new _0x1bee75({'focusables':this[_0x1f2b2c(0x19f)],'focusTracker':this[_0x1f2b2c(0x1d8)],'keystrokeHandler':this[_0x1f2b2c(0x1ac)],'actions':{'focusPrevious':_0x1f2b2c(0x1d5),'focusNext':_0x1f2b2c(0x1b6)}}),this[_0x1f2b2c(0x1bf)]=new _0x1ec540(),this[_0x1f2b2c(0x1bd)](_0x56a332[_0x1f2b2c(0x195)]),this[_0x1f2b2c(0x1d9)](),this[_0x1f2b2c(0x1c4)](_0x56a332[_0x1f2b2c(0x1d6)],_0x56a332[_0x1f2b2c(0x1ca)]),this[_0x1f2b2c(0x1e0)][_0x1f2b2c(0x1c5)](_0x1f2b2c(0x1d3))['to'](this),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x194)](),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x1b8)]([this[_0x1f2b2c(0x1e0)]]),this[_0x1f2b2c(0x1e1)]({'tag':_0x1f2b2c(0x19a),'attributes':{'class':_0x1f2b2c(0x1d4)},'children':this[_0x1f2b2c(0x1bf)]}),this['on'](_0x1f2b2c(0x1dd),()=>{const _0x261672=_0x1f2b2c;this[_0x261672(0x1bf)][_0x261672(0x18e)](this[_0x261672(0x1e0)]),this[_0x261672(0x1c4)](_0x56a332[_0x261672(0x1d6)],_0x56a332[_0x261672(0x1ca)]);});}[_0x1573e0(0x1cc)](){const _0x3d9994=_0x1573e0;super[_0x3d9994(0x1cc)]();for(const _0x2f1ae6 of this[_0x3d9994(0x19f)])this[_0x3d9994(0x1d8)][_0x3d9994(0x196)](_0x2f1ae6[_0x3d9994(0x1aa)]);this[_0x3d9994(0x1ac)][_0x3d9994(0x1c9)](this[_0x3d9994(0x1aa)]),this[_0x3d9994(0x1a0)]();}[_0x1573e0(0x1c7)](){const _0x341125=_0x1573e0;super[_0x341125(0x1c7)](),this[_0x341125(0x1e4)]&&this[_0x341125(0x1e4)][_0x341125(0x1c7)]();}[_0x1573e0(0x1df)](_0x48dfad){const _0x29b688=_0x1573e0;-0x1===_0x48dfad?this[_0x29b688(0x1c8)][_0x29b688(0x1a5)]():this[_0x29b688(0x1c8)][_0x29b688(0x1af)]();}[_0x1573e0(0x19e)](){const _0x578619=_0x1573e0;this[_0x578619(0x1d3)]=!0x0;}[_0x1573e0(0x1a6)](){const _0x3c069c=_0x1573e0;this[_0x3c069c(0x1d3)]=!0x1;}[_0x1573e0(0x1ad)](_0x4fd17b){const _0x1711d3=_0x1573e0;this[_0x1711d3(0x199)]||(this[_0x1711d3(0x199)]=this[_0x1711d3(0x1a1)](),this[_0x1711d3(0x1bf)][_0x1711d3(0x1b8)]([this[_0x1711d3(0x199)]],0x0)),this[_0x1711d3(0x1cb)]=_0x4fd17b,this[_0x1711d3(0x1b3)]=!0x0;}[_0x1573e0(0x1be)](){const _0x1c0af3=_0x1573e0;this[_0x1c0af3(0x1b3)]=!0x1;}[_0x1573e0(0x1e5)](_0x3a55da){const _0x4e1135=_0x1573e0;this[_0x4e1135(0x1ad)](_0x3a55da);}[_0x1573e0(0x19c)](_0xedcf7){const _0x3f0a84=_0x1573e0;this[_0x3f0a84(0x1ad)](_0xedcf7),this[_0x3f0a84(0x1e0)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)][_0x3f0a84(0x192)]=!0x1),this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)][_0x3f0a84(0x192)]=!0x1));}[_0x1573e0(0x1c0)](_0x20e3c9){const _0x37756e=_0x1573e0,_0xa9da45=this[_0x37756e(0x1db)](),_0x275182=this[_0x37756e(0x1b5)]();_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0xa9da45,0x2),_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0x275182,0x0),this[_0x37756e(0x19f)][_0x37756e(0x1b8)]([_0xa9da45,_0x275182]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0xa9da45[_0x37756e(0x1aa)]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0x275182[_0x37756e(0x1aa)]);}[_0x1573e0(0x1bd)](_0x23037b){const _0x25cbe7=_0x1573e0;this[_0x25cbe7(0x18c)]=_0x23037b,this[_0x25cbe7(0x1bf)][_0x25cbe7(0x196)](this[_0x25cbe7(0x18c)]);}[_0x1573e0(0x1b2)](_0x516742){const _0xda9279=_0x1573e0,_0x35e0eb=this[_0xda9279(0x1bf)][_0xda9279(0x1b9)](this[_0xda9279(0x18c)]);this[_0xda9279(0x1bf)][_0xda9279(0x18e)](this[_0xda9279(0x18c)]),this[_0xda9279(0x18c)]=_0x516742,this[_0xda9279(0x1bf)][_0xda9279(0x196)](this[_0xda9279(0x18c)],_0x35e0eb),this[_0xda9279(0x1be)](),this[_0xda9279(0x1e4)]&&this[_0xda9279(0x1e4)][_0xda9279(0x1c7)](),this[_0xda9279(0x1a0)]();}[_0x1573e0(0x1d9)](){const _0x3b2e36=_0x1573e0;this[_0x3b2e36(0x1d1)]=new _0x592807(this[_0x3b2e36(0x1de)]),this[_0x3b2e36(0x1bf)][_0x3b2e36(0x196)](this[_0x3b2e36(0x1d1)]);}[_0x1573e0(0x1c4)](_0x1e3525=!0x0,_0x520255=!0x0){const _0x32f3e4=_0x1573e0;_0x1e3525=_0x1e3525&&!this[_0x32f3e4(0x1b0)]&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x198)),_0x520255=_0x520255&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x1a3)),this[_0x32f3e4(0x1e0)]=new _0xb064d3(this[_0x32f3e4(0x1de)],_0x1e3525,_0x520255),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1c6)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x1ab830=_0x32f3e4;this[_0x1ab830(0x1b7)](_0x1ab830(0x198));}),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1e2)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x25bd8e=_0x32f3e4;this[_0x25bd8e(0x1b7)](_0x25bd8e(0x1a3));}),this[_0x32f3e4(0x1bf)][_0x32f3e4(0x196)](this[_0x32f3e4(0x1e0)]);}[_0x1573e0(0x1db)](){const _0x540eef=_0x1573e0,_0xe8a6b5=new _0x12c99f(this[_0x540eef(0x1de)]);return _0xe8a6b5[_0x540eef(0x193)]({'icon':_0xffe363,'tooltip':_0x4eff51(this[_0x540eef(0x1de)],_0x540eef(0x1c3))}),_0xe8a6b5['on'](_0x540eef(0x1da),()=>{const _0x24857b=_0x540eef;this[_0x24857b(0x1b7)](_0x24857b(0x18f));}),_0xe8a6b5;}[_0x1573e0(0x1b5)](){const _0x436ed7=_0x1573e0,_0x362510=new _0x12c99f(this[_0x436ed7(0x1de)]);return _0x362510[_0x436ed7(0x193)]({'icon':_0xdda64d,'tooltip':_0x4eff51(this[_0x436ed7(0x1de)],_0x436ed7(0x1ab))}),_0x362510['on'](_0x436ed7(0x1da),()=>{const _0x3811d0=_0x436ed7;this[_0x3811d0(0x1b7)](_0x3811d0(0x188));}),_0x362510;}[_0x1573e0(0x1a1)](){const _0x3af806=_0x1573e0,_0x38a87a=new _0x26ef86(this[_0x3af806(0x1de)]),_0x1617fd=new _0x26ef86(this[_0x3af806(0x1de)]);return _0x1617fd[_0x3af806(0x1e1)]({'tag':_0x3af806(0x1a7),'attributes':{'class':['ck',_0x3af806(0x189)]},'children':[{'text':this[_0x3af806(0x1d0)]['to'](_0x3af806(0x1cb))}]}),_0x38a87a[_0x3af806(0x1e1)]({'tag':_0x3af806(0x19a),'attributes':{'class':['ck',_0x3af806(0x1b1),_0x3af806(0x190),this[_0x3af806(0x1d0)]['if'](_0x3af806(0x1b3),_0x3af806(0x1d2),_0x3ff930=>!_0x3ff930)]},'children':[_0x1617fd]}),_0x38a87a;}[_0x1573e0(0x1a8)](){const _0x1b8ba1=_0x1573e0;this[_0x1b8ba1(0x1a0)](),this[_0x1b8ba1(0x1e4)]&&this[_0x1b8ba1(0x1e4)][_0x1b8ba1(0x1b4)]();}[_0x1573e0(0x1c1)](){const _0x519bdc=_0x1573e0;this[_0x519bdc(0x1e4)]&&this[_0x519bdc(0x1e4)][_0x519bdc(0x1d7)]();}[_0x1573e0(0x1a0)](){const _0x194b13=_0x1573e0,_0x1faa49=this[_0x194b13(0x1a4)]();_0x1faa49&&!this[_0x194b13(0x1e4)]&&(this[_0x194b13(0x1e4)]=new _0x49e0ea(_0x1faa49));}[_0x1573e0(0x1a4)](){const _0x1f3f6b=_0x1573e0;return this[_0x1f3f6b(0x18c)]instanceof _0xd91d72&&this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]?this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]:null;}}
|
|
23
|
+
function _0x3242(_0x13aad0,_0x4f6e05){const _0x19b780=_0x19b7();return _0x3242=function(_0x3242a5,_0x52e486){_0x3242a5=_0x3242a5-0x6b;let _0xff5a22=_0x19b780[_0x3242a5];return _0xff5a22;},_0x3242(_0x13aad0,_0x4f6e05);}const _0x482c40=_0x3242;(function(_0x34e323,_0x12bcaa){const _0x1e462c=_0x3242,_0x18d665=_0x34e323();while(!![]){try{const _0x50f6db=parseInt(_0x1e462c(0xbe))/0x1+-parseInt(_0x1e462c(0x9a))/0x2*(-parseInt(_0x1e462c(0x8b))/0x3)+-parseInt(_0x1e462c(0xad))/0x4*(parseInt(_0x1e462c(0x93))/0x5)+parseInt(_0x1e462c(0x83))/0x6*(parseInt(_0x1e462c(0xb7))/0x7)+parseInt(_0x1e462c(0xc6))/0x8*(parseInt(_0x1e462c(0xab))/0x9)+parseInt(_0x1e462c(0x6b))/0xa+-parseInt(_0x1e462c(0x87))/0xb*(parseInt(_0x1e462c(0x7e))/0xc);if(_0x50f6db===_0x12bcaa)break;else _0x18d665['push'](_0x18d665['shift']());}catch(_0x439411){_0x18d665['push'](_0x18d665['shift']());}}}(_0x19b7,0xf2d8c));function _0x19b7(){const _0x12d095=['10332BlFMey','insertSuggestion','stopAutoScroll','AI_BALLOON_NEXT_TOOLTIP','isErrorVisible','222hXEkIB','_getScrollableElement','start','bodyView','37598RBaIKI','createCollection','view','destroy','12399ThbrZi','_addContentView','clear','set','startAutoScroll','AI_BALLOON_PREVIOUS_TOOLTIP','_errorView','showRecoverableError','60DCiKUf','setLoading','isTrackChangesOn','focusCycler','ck-hidden','change:isTrackChangesOn','clearLoading','418gQDXKP','stop','applyButton','keystrokes','showBlockingError','focus','setupRotator','_dialogContent','ck-ai-suggestion__error-text','remove','add','_addToolbar','suggestButton','div','_createNextButtonView','_createErrorView','showPrevious','16173DSroNl','children','213232gETjyT','addMany','isLoading','locale','getIndex','_initializeScrollManager','element','errorMessage','hideError','mainView','344365uTzajX','headerView','applySuggestion','scrollManager','ai-balloon-content','_availableActions','isEnabled','599116ouUsve','bindTemplate','setTemplate','execute','focusTracker','listenTo','_mainView','_addDisclaimerView','2872QpleTw','render','showApplyButton','6490430jzVSxk','ai-balloon-error','bind','showSuggestButton','includes','tab','toolbar','focusFirst','updateContent','disclaimerView','showNext','focusLast','showError','_focusables','fire','_createPreviousButtonView','span','shift\x20+\x20tab','ck-ai-suggestion__error'];_0x19b7=function(){return _0x12d095;};return _0x19b7();}import{ButtonView as _0x7d3814,View as _0x5ed552,ViewCollection as _0x24b545,FocusCycler as _0x1113e0}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1b84ff,KeystrokeHandler as _0x3985f1}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x1c0761,IconPreviousArrow as _0x3bad8c}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x29622d}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x39ebb7}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4aebde}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x39c572}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x3c9056}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x482c40(0xb9),_0x482c40(0x7f),_0x482c40(0x75),_0x482c40(0xaa)];export class AIBalloonView extends _0x5ed552{[_0x482c40(0xc2)];[_0x482c40(0x9d)];[_0x482c40(0x96)];[_0x482c40(0xbc)];[_0x482c40(0x78)];[_0x482c40(0x91)];[_0x482c40(0xba)];constructor(_0x35c24d,_0x1b7625,_0x3f831c,_0x1492e2){const _0x1534b0=_0x482c40;super(_0x35c24d),this[_0x1534b0(0xbc)]=_0x3f831c,this[_0x1534b0(0x8e)](_0x1534b0(0xaf),!0x1),this[_0x1534b0(0x8e)](_0x1534b0(0x95),_0x1492e2),this[_0x1534b0(0x8e)](_0x1534b0(0x82),!0x1),this[_0x1534b0(0x8e)](_0x1534b0(0xb4),''),this[_0x1534b0(0xc2)]=new _0x1b84ff(),this[_0x1534b0(0x9d)]=new _0x3985f1(),this[_0x1534b0(0x78)]=this[_0x1534b0(0x88)](),this[_0x1534b0(0x96)]=new _0x1113e0({'focusables':this[_0x1534b0(0x78)],'focusTracker':this[_0x1534b0(0xc2)],'keystrokeHandler':this[_0x1534b0(0x9d)],'actions':{'focusPrevious':_0x1534b0(0x7c),'focusNext':_0x1534b0(0x70)}}),this[_0x1534b0(0xa1)]=new _0x24b545(),this[_0x1534b0(0x8c)](_0x1b7625[_0x1534b0(0xb6)]),this[_0x1534b0(0xc5)](),this[_0x1534b0(0xa5)](_0x1b7625[_0x1534b0(0xc8)],_0x1b7625[_0x1534b0(0x6e)]),this[_0x1534b0(0x71)][_0x1534b0(0x6d)](_0x1534b0(0xaf))['to'](this),this[_0x1534b0(0x78)][_0x1534b0(0x8d)](),this[_0x1534b0(0x78)][_0x1534b0(0xae)]([this[_0x1534b0(0x71)]]),this[_0x1534b0(0xc0)]({'tag':_0x1534b0(0xa7),'attributes':{'class':_0x1534b0(0xbb)},'children':this[_0x1534b0(0xa1)]}),this['on'](_0x1534b0(0x98),()=>{const _0x201c35=_0x1534b0;this[_0x201c35(0xa1)][_0x201c35(0xa3)](this[_0x201c35(0x71)]),this[_0x201c35(0xa5)](_0x1b7625[_0x201c35(0xc8)],_0x1b7625[_0x201c35(0x6e)]);});}[_0x482c40(0xc7)](){const _0x56e548=_0x482c40;super[_0x56e548(0xc7)]();for(const _0x40974b of this[_0x56e548(0x78)])this[_0x56e548(0xc2)][_0x56e548(0xa4)](_0x40974b[_0x56e548(0xb3)]);this[_0x56e548(0x9d)][_0x56e548(0xc3)](this[_0x56e548(0xb3)]),this[_0x56e548(0xb2)]();}[_0x482c40(0x8a)](){const _0x7076db=_0x482c40;super[_0x7076db(0x8a)](),this[_0x7076db(0xba)]&&this[_0x7076db(0xba)][_0x7076db(0x8a)]();}[_0x482c40(0x9f)](_0x8177a2){const _0x1f75be=_0x482c40;-0x1===_0x8177a2?this[_0x1f75be(0x96)][_0x1f75be(0x76)]():this[_0x1f75be(0x96)][_0x1f75be(0x72)]();}[_0x482c40(0x94)](){const _0x2194d4=_0x482c40;this[_0x2194d4(0xaf)]=!0x0;}[_0x482c40(0x99)](){const _0xc03a55=_0x482c40;this[_0xc03a55(0xaf)]=!0x1;}[_0x482c40(0x77)](_0x26e84e){const _0x585c1d=_0x482c40;this[_0x585c1d(0x91)]||(this[_0x585c1d(0x91)]=this[_0x585c1d(0xa9)](),this[_0x585c1d(0xa1)][_0x585c1d(0xae)]([this[_0x585c1d(0x91)]],0x0)),this[_0x585c1d(0xb4)]=_0x26e84e,this[_0x585c1d(0x82)]=!0x0;}[_0x482c40(0xb5)](){const _0x38718a=_0x482c40;this[_0x38718a(0x82)]=!0x1;}[_0x482c40(0x92)](_0x4a547d){const _0x29432d=_0x482c40;this[_0x29432d(0x77)](_0x4a547d);}[_0x482c40(0x9e)](_0x18d3b9){const _0x1efc02=_0x482c40;this[_0x1efc02(0x77)](_0x18d3b9),this[_0x1efc02(0x71)]&&(this[_0x1efc02(0x71)][_0x1efc02(0x9c)]&&(this[_0x1efc02(0x71)][_0x1efc02(0x9c)][_0x1efc02(0xbd)]=!0x1),this[_0x1efc02(0x71)][_0x1efc02(0xa6)]&&(this[_0x1efc02(0x71)][_0x1efc02(0xa6)][_0x1efc02(0xbd)]=!0x1));}[_0x482c40(0xa0)](_0x52534c){const _0x54e3e2=_0x482c40,_0x4b77ce=this[_0x54e3e2(0xa8)](),_0x556b20=this[_0x54e3e2(0x7a)]();_0x52534c[_0x54e3e2(0x89)][_0x54e3e2(0xb8)][_0x54e3e2(0xac)][_0x54e3e2(0xa4)](_0x4b77ce,0x2),_0x52534c[_0x54e3e2(0x89)][_0x54e3e2(0xb8)][_0x54e3e2(0xac)][_0x54e3e2(0xa4)](_0x556b20,0x0),this[_0x54e3e2(0x78)][_0x54e3e2(0xae)]([_0x4b77ce,_0x556b20]),this[_0x54e3e2(0xc2)][_0x54e3e2(0xa4)](_0x4b77ce[_0x54e3e2(0xb3)]),this[_0x54e3e2(0xc2)][_0x54e3e2(0xa4)](_0x556b20[_0x54e3e2(0xb3)]);}[_0x482c40(0x8c)](_0x481fcb){const _0x3bbb9c=_0x482c40;this[_0x3bbb9c(0xc4)]=_0x481fcb,this[_0x3bbb9c(0xa1)][_0x3bbb9c(0xa4)](this[_0x3bbb9c(0xc4)]);}[_0x482c40(0x73)](_0x44c253){const _0x427cef=_0x482c40,_0x4d874=this[_0x427cef(0xa1)][_0x427cef(0xb1)](this[_0x427cef(0xc4)]);this[_0x427cef(0xa1)][_0x427cef(0xa3)](this[_0x427cef(0xc4)]),this[_0x427cef(0xc4)]=_0x44c253,this[_0x427cef(0xa1)][_0x427cef(0xa4)](this[_0x427cef(0xc4)],_0x4d874),this[_0x427cef(0xb5)](),this[_0x427cef(0xba)]&&this[_0x427cef(0xba)][_0x427cef(0x8a)](),this[_0x427cef(0xb2)]();}[_0x482c40(0xc5)](){const _0x3d01ac=_0x482c40;this[_0x3d01ac(0x74)]=new _0x39ebb7(this[_0x3d01ac(0xb0)]),this[_0x3d01ac(0xa1)][_0x3d01ac(0xa4)](this[_0x3d01ac(0x74)]);}[_0x482c40(0xa5)](_0x1f16df=!0x0,_0x426be1=!0x0){const _0x5eb897=_0x482c40;_0x1f16df=_0x1f16df&&!this[_0x5eb897(0x95)]&&this[_0x5eb897(0xbc)][_0x5eb897(0x6f)](_0x5eb897(0xb9)),_0x426be1=_0x426be1&&this[_0x5eb897(0xbc)][_0x5eb897(0x6f)](_0x5eb897(0x7f)),this[_0x5eb897(0x71)]=new _0x29622d(this[_0x5eb897(0xb0)],_0x1f16df,_0x426be1),this[_0x5eb897(0x71)][_0x5eb897(0x9c)]?.['on'](_0x5eb897(0xc1),()=>{const _0x503bd3=_0x5eb897;this[_0x503bd3(0x79)](_0x503bd3(0xb9));}),this[_0x5eb897(0x71)][_0x5eb897(0xa6)]?.['on'](_0x5eb897(0xc1),()=>{const _0x37217d=_0x5eb897;this[_0x37217d(0x79)](_0x37217d(0x7f));}),this[_0x5eb897(0xa1)][_0x5eb897(0xa4)](this[_0x5eb897(0x71)]);}[_0x482c40(0xa8)](){const _0x36c14f=_0x482c40,_0x5b4e34=new _0x7d3814(this[_0x36c14f(0xb0)]);return _0x5b4e34[_0x36c14f(0x8e)]({'icon':_0x1c0761,'tooltip':_0x4aebde(this[_0x36c14f(0xb0)],_0x36c14f(0x81))}),_0x5b4e34['on'](_0x36c14f(0xc1),()=>{const _0x10957c=_0x36c14f;this[_0x10957c(0x79)](_0x10957c(0x75));}),_0x5b4e34;}[_0x482c40(0x7a)](){const _0x174721=_0x482c40,_0x2944b2=new _0x7d3814(this[_0x174721(0xb0)]);return _0x2944b2[_0x174721(0x8e)]({'icon':_0x3bad8c,'tooltip':_0x4aebde(this[_0x174721(0xb0)],_0x174721(0x90))}),_0x2944b2['on'](_0x174721(0xc1),()=>{const _0x169f9e=_0x174721;this[_0x169f9e(0x79)](_0x169f9e(0xaa));}),_0x2944b2;}[_0x482c40(0xa9)](){const _0x3deb7d=_0x482c40,_0x1cbfd4=new _0x5ed552(this[_0x3deb7d(0xb0)]),_0x34a7a7=new _0x5ed552(this[_0x3deb7d(0xb0)]);return _0x34a7a7[_0x3deb7d(0xc0)]({'tag':_0x3deb7d(0x7b),'attributes':{'class':['ck',_0x3deb7d(0xa2)]},'children':[{'text':this[_0x3deb7d(0xbf)]['to'](_0x3deb7d(0xb4))}]}),_0x1cbfd4[_0x3deb7d(0xc0)]({'tag':_0x3deb7d(0xa7),'attributes':{'class':['ck',_0x3deb7d(0x7d),_0x3deb7d(0x6c),this[_0x3deb7d(0xbf)]['if'](_0x3deb7d(0x82),_0x3deb7d(0x97),_0x62180c=>!_0x62180c)]},'children':[_0x34a7a7]}),_0x1cbfd4;}[_0x482c40(0x8f)](){const _0x414a2a=_0x482c40;this[_0x414a2a(0xb2)](),this[_0x414a2a(0xba)]&&this[_0x414a2a(0xba)][_0x414a2a(0x85)]();}[_0x482c40(0x80)](){const _0x59ed08=_0x482c40;this[_0x59ed08(0xba)]&&this[_0x59ed08(0xba)][_0x59ed08(0x9b)]();}[_0x482c40(0xb2)](){const _0x4f0747=_0x482c40,_0x53894c=this[_0x4f0747(0x84)]();_0x53894c&&!this[_0x4f0747(0xba)]&&(this[_0x4f0747(0xba)]=new _0x39c572(_0x53894c));}[_0x482c40(0x84)](){const _0x2d65a9=_0x482c40;return this[_0x2d65a9(0xc4)]instanceof _0x3c9056&&this[_0x2d65a9(0xc4)][_0x2d65a9(0x86)][_0x2d65a9(0xb3)]?this[_0x2d65a9(0xc4)][_0x2d65a9(0x86)][_0x2d65a9(0xb3)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4945ac=_0x4b70;(function(_0x2ab75b,_0x59dfbf){var _0x1f7485=_0x4b70,_0x13b44c=_0x2ab75b();while(!![]){try{var _0x3ea00f=-parseInt(_0x1f7485(0xf6))/0x1+-parseInt(_0x1f7485(0xea))/0x2*(-parseInt(_0x1f7485(0xfc))/0x3)+parseInt(_0x1f7485(0xf8))/0x4+-parseInt(_0x1f7485(0xf3))/0x5+-parseInt(_0x1f7485(0xf5))/0x6*(parseInt(_0x1f7485(0xef))/0x7)+parseInt(_0x1f7485(0xf7))/0x8*(parseInt(_0x1f7485(0xf4))/0x9)+parseInt(_0x1f7485(0xf0))/0xa*(-parseInt(_0x1f7485(0xee))/0xb);if(_0x3ea00f===_0x59dfbf)break;else _0x13b44c['push'](_0x13b44c['shift']());}catch(_0x54a289){_0x13b44c['push'](_0x13b44c['shift']());}}}(_0x298b,0x620d7));function _0x298b(){var _0x3d7966=['AIChat','plugins','requires','sendMessage','ai.chat.models','2nSPAIN','config','pluginName','isOfficialPlugin','503129tqmSdn','721PboVXS','190zBQMzk','isPremiumPlugin','removeSelectionFromChatContext','693010trOzUG','9JascWa','3678JxOfvq','303226MEjxjD','5920280MUvCGS','1540596aDyzCQ','startConversation','define','focusPromptInput','1951341wclQBb','get','addSelectionToChatContext','ai.chat.context','context'];_0x298b=function(){return _0x3d7966;};return _0x298b();}function _0x4b70(_0xebcbb,_0x5f282e){var _0x298bf1=_0x298b();return _0x4b70=function(_0x4b704c,_0x59f03e){_0x4b704c=_0x4b704c-0xe6;var _0x308391=_0x298bf1[_0x4b704c];return _0x308391;},_0x4b70(_0xebcbb,_0x5f282e);}import{ContextPlugin as _0xfef4fb}from'ckeditor5/src/core.js';import{AIChatController as _0x4e4d5e}from'./aichatcontroller.js';import{AIEditing as _0x3368a1}from'../aicore/aiediting.js';import{AIChatUI as _0x42fcf5}from'./aichatui.js';import{AIChatHistory as _0x489b41}from'../aichathistory/aichathistory.js';export class AIChat extends _0xfef4fb{static get[_0x4945ac(0xe7)](){return[_0x4e4d5e,_0x3368a1,_0x42fcf5,_0x489b41];}static get[_0x4945ac(0xec)](){var _0x3cc056=_0x4945ac;return _0x3cc056(0x101);}static get[_0x4945ac(0xed)](){return!0x0;}static get[_0x4945ac(0xf1)](){return!0x0;}constructor(_0x34ce41){var _0x137190=_0x4945ac;super(_0x34ce41),this[_0x137190(0x100)][_0x137190(0xeb)][_0x137190(0xfa)](_0x137190(0xff),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x137190(0x100)][_0x137190(0xeb)][_0x137190(0xfa)](_0x137190(0xe9),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x4945ac(0xfe)](){var _0x4e2c2d=_0x4945ac;await this[_0x4e2c2d(0x100)][_0x4e2c2d(0xe6)][_0x4e2c2d(0xfd)](_0x4e4d5e)[_0x4e2c2d(0xfe)]();}async[_0x4945ac(0xf9)](){var _0x20d2f5=_0x4945ac;await this[_0x20d2f5(0x100)][_0x20d2f5(0xe6)][_0x20d2f5(0xfd)](_0x4e4d5e)[_0x20d2f5(0xf9)]();}async[_0x4945ac(0xe8)]({message:_0x259389,quickActionData:_0x59f17c}){var _0x3290a8=_0x4945ac;await this[_0x3290a8(0x100)][_0x3290a8(0xe6)][_0x3290a8(0xfd)](_0x4e4d5e)[_0x3290a8(0xe8)]({'message':_0x259389,'quickActionData':_0x59f17c});}[_0x4945ac(0xf2)](){var _0x561b26=_0x4945ac;this[_0x561b26(0x100)][_0x561b26(0xe6)][_0x561b26(0xfd)](_0x4e4d5e)[_0x561b26(0xf2)]();}[_0x4945ac(0xfb)](){var _0x1d5be2=_0x4945ac;this[_0x1d5be2(0x100)][_0x1d5be2(0xe6)][_0x1d5be2(0xfd)](_0x4e4d5e)[_0x1d5be2(0xfb)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32f9e9=_0x1a1c;(function(_0x403cfb,_0x5842ec){const _0x505420=_0x1a1c,_0x55b1fb=_0x403cfb();while(!![]){try{const _0x2c9135=-parseInt(_0x505420(0x10e))/0x1*(-parseInt(_0x505420(0xb7))/0x2)+-parseInt(_0x505420(0x124))/0x3*(parseInt(_0x505420(0x192))/0x4)+parseInt(_0x505420(0xe5))/0x5*(-parseInt(_0x505420(0xd1))/0x6)+parseInt(_0x505420(0x12b))/0x7*(parseInt(_0x505420(0x152))/0x8)+-parseInt(_0x505420(0x1d0))/0x9+-parseInt(_0x505420(0x133))/0xa*(parseInt(_0x505420(0xb2))/0xb)+parseInt(_0x505420(0xbd))/0xc;if(_0x2c9135===_0x5842ec)break;else _0x55b1fb['push'](_0x55b1fb['shift']());}catch(_0x2d569b){_0x55b1fb['push'](_0x55b1fb['shift']());}}}(_0x434b,0x9c37a));import{ContextPlugin as _0x160e9f,Editor as _0x5c9320}from'ckeditor5/src/core.js';import{CKEditorError as _0x4f662e,logError as _0x402656,scrollViewportToShowTarget as _0x4d71d9,uid as _0x53bca2}from'ckeditor5/src/utils.js';import{AIConnector as _0x4da528}from'../aicore/aiconnector.js';import{AITabs as _0x18e5e0}from'../aitabs/aitabs.js';function _0x1a1c(_0x23520a,_0x255263){const _0x434b30=_0x434b();return _0x1a1c=function(_0x1a1ce4,_0xdeee1a){_0x1a1ce4=_0x1a1ce4-0x95;let _0x4cbaf6=_0x434b30[_0x1a1ce4];return _0x4cbaf6;},_0x1a1c(_0x23520a,_0x255263);}import{AIChatConversation as _0x3dfc61}from'./model/aichatconversation.js';import{getTranslation as _0x293a47}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x4452cb}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x54810b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x373b10}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2fb4d2}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x45a94c,DATA_ID_MODEL_ATTRIBUTE as _0x1de6ee}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x96fa53,getOperationsFromReply as _0x35d81a}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2d8db0,getMinimalSelection as _0x3c6251}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0xa4175c,_DetachOperation as _0x5a552b}from'ckeditor5/src/engine.js';import{findOne as _0x2682e8,getAttribute as _0x582ccb,serialize as _0x4229f4,Document as _0x30b153,findByAttribute as _0x1082e2}from'../aicore/utils/htmlparser.js';import{IconAI as _0x230613}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x30c4c1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x22f8df}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x160e9f{[_0x32f9e9(0x1b9)];[_0x32f9e9(0x1c2)];[_0x32f9e9(0xb6)];[_0x32f9e9(0xdd)];[_0x32f9e9(0x117)]=new Map();[_0x32f9e9(0x179)]=null;[_0x32f9e9(0x112)]=!0x1;static get[_0x32f9e9(0x17c)](){return[_0x4da528,_0x22f8df,_0x45a94c];}static get[_0x32f9e9(0xdc)](){const _0x3e5d26=_0x32f9e9;return _0x3e5d26(0x1c6);}static get[_0x32f9e9(0xf6)](){return!0x0;}static get[_0x32f9e9(0xcf)](){return!0x0;}[_0x32f9e9(0x1ff)](){const _0x5ed0cc=_0x32f9e9;this[_0x5ed0cc(0x1c2)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0xb0)),this[_0x5ed0cc(0xb6)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x12d)),this[_0x5ed0cc(0x1b9)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x19a)),this[_0x5ed0cc(0xdd)]=new _0x373b10({'connector':this[_0x5ed0cc(0x1c2)],'availableModels':this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x156)][_0x5ed0cc(0x190)](_0x5ed0cc(0x123)),'defaultModelId':this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x156)][_0x5ed0cc(0x190)](_0x5ed0cc(0xa0))});const _0x1c1316=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x1a3));this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x15a),()=>{const _0x12530a=_0x5ed0cc;this[_0x12530a(0x149)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x139),(_0x5df8d3,_0x44282e)=>{const _0x52edf7=_0x5ed0cc;this[_0x52edf7(0x1b4)]({'userMessage':_0x44282e});}),this[_0x5ed0cc(0x1b8)](_0x1c1316,_0x5ed0cc(0xa1),(_0xea4b7d,_0x4506bd)=>{const _0x33f2a1=_0x5ed0cc;this[_0x33f2a1(0x108)](_0x4506bd);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1a1),()=>{const _0x3d4817=_0x5ed0cc;_0x1c1316[_0x3d4817(0x103)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1fb),async()=>{const _0x2959cb=_0x5ed0cc;await this[_0x2959cb(0xfb)](),await this[_0x2959cb(0xa9)](),this[_0x2959cb(0x155)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa6),()=>{const _0x478ff9=_0x5ed0cc;this[_0x478ff9(0x1bf)]?.[_0x478ff9(0x1f8)](_0x293a47(this[_0x478ff9(0x11a)][_0x478ff9(0xf9)],_0x478ff9(0x107)));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x12f),(_0x1db14f,_0x9dbc4)=>{const _0x2145f6=_0x5ed0cc;this[_0x2145f6(0x1bf)]?.[_0x2145f6(0xc8)](Array[_0x2145f6(0x18a)](_0x9dbc4));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x170),(_0x4938c9,_0x1c3c24)=>{const _0x5ecda5=_0x5ed0cc;this[_0x5ecda5(0x1bf)]?.[_0x5ecda5(0x170)](_0x1c3c24);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x127),(_0x11f501,_0x9fd166)=>{const _0x2a2592=_0x5ed0cc;this[_0x2a2592(0x1bf)]?.[_0x2a2592(0x127)](_0x9fd166[_0x2a2592(0x119)],_0x9fd166[_0x2a2592(0xc1)]);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x95),(_0x406fae,_0xfe2e96)=>{const _0x27d782=_0x5ed0cc;this[_0x27d782(0xde)](_0xfe2e96);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1b0),(_0x5e7e9d,_0x5442d9)=>{const _0x358a4a=_0x5ed0cc;this[_0x358a4a(0x1bf)]?.[_0x358a4a(0x1b0)](_0x5442d9[_0x358a4a(0x15d)],_0x5442d9[_0x358a4a(0xec)],_0x5442d9[_0x358a4a(0x1f1)]);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe8),()=>{const _0x830bf2=_0x5ed0cc;this[_0x830bf2(0x172)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x13f),()=>{const _0x49cabe=_0x5ed0cc;this[_0x49cabe(0x194)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x199),(_0x1fefff,_0x40025a)=>{const _0x5b6a23=_0x5ed0cc;this[_0x5b6a23(0x1bf)]?.[_0x5b6a23(0xc0)](_0x40025a);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe0),(_0x5237fc,{replyId:_0x45ef48})=>{const _0xe1cc1f=_0x5ed0cc;console[_0xe1cc1f(0x171)](_0xe1cc1f(0xd7),_0x45ef48);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x9b),(_0x305241,{replyId:_0x24b007})=>{const _0x158926=_0x5ed0cc;console[_0x158926(0x171)](_0x158926(0xbf),_0x24b007);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1d2),(_0x4f7822,_0x53fa9c)=>{const _0x4a5053=_0x5ed0cc;this[_0x4a5053(0x11a)][_0x4a5053(0x167)][_0x4a5053(0x190)](_0x22f8df)[_0x4a5053(0x1ae)](),this[_0x4a5053(0x148)](_0x53fa9c);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x145),(_0x164307,{replyId:_0x631187,partIndex:_0x1f1965})=>{const _0x1895e7=_0x5ed0cc;this[_0x1895e7(0x112)]=this[_0x1895e7(0xb6)][_0x1895e7(0x189)],this[_0x1895e7(0x110)](_0x631187,_0x1f1965);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa5),(_0x472c00,{replyId:_0x228133,partIndex:_0x583b7b})=>{const _0x54f4c3=_0x5ed0cc,_0x579dfe=this[_0x54f4c3(0x1ea)](_0x228133,_0x583b7b);_0x579dfe&&_0x54f4c3(0xb5)!=_0x579dfe[_0x54f4c3(0x128)][_0x54f4c3(0x1ab)][_0x54f4c3(0x1d7)]&&this[_0x54f4c3(0x1b9)][_0x54f4c3(0x1d1)]([_0x579dfe[_0x54f4c3(0x128)]],_0x54f4c3(0xd2));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa4),()=>{const _0x4b6eaa=_0x5ed0cc;this[_0x4b6eaa(0x1b9)][_0x4b6eaa(0x144)](_0x4b6eaa(0xd2));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x147),(_0x25572d,_0x146a18)=>{const _0x526c81=_0x5ed0cc;this[_0x526c81(0x11a)][_0x526c81(0x167)][_0x526c81(0x190)](_0x22f8df)[_0x526c81(0x1ae)](),this[_0x526c81(0x1e2)](_0x146a18);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x9c),async(_0x2a8a33,{replyId:_0xf613f4,showDiff:_0x402253})=>{const _0x21ed25=_0x5ed0cc,{reply:_0x183b5a}=this[_0x21ed25(0x9f)](_0xf613f4),_0x2f80f0=_0x183b5a[_0x21ed25(0x104)]({'showDiff':_0x402253});await this[_0x21ed25(0xb6)][_0x21ed25(0x1c8)]({'id':_0x183b5a['id'],'parts':_0x2f80f0,'renderingStrategy':_0x21ed25(0xbb)});}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe6),(_0x2e544d,{replyId:_0x16643d,partIndex:_0x475b79})=>{const _0x2fd448=_0x5ed0cc;this[_0x2fd448(0x179)]?.[_0x2fd448(0xdf)]==_0x16643d&&this[_0x2fd448(0x179)]?.[_0x2fd448(0x19e)]==_0x475b79&&this[_0x2fd448(0x11a)][_0x2fd448(0x167)][_0x2fd448(0x190)](_0x22f8df)[_0x2fd448(0x1ae)]();const {reply:_0x46a2b1}=this[_0x2fd448(0x9f)](_0x16643d);_0x46a2b1[_0x2fd448(0x14d)](_0x475b79,_0x2fd448(0x15f)),this[_0x2fd448(0x1b9)][_0x2fd448(0x144)](_0x2fd448(0xd2));});}async[_0x32f9e9(0x1d3)](){const _0x1d87e9=_0x32f9e9;this[_0x1d87e9(0x11a)]instanceof _0x5c9320?this[_0x1d87e9(0x1f4)](this[_0x1d87e9(0x11a)]):this[_0x1d87e9(0x1b8)](this[_0x1d87e9(0x11a)][_0x1d87e9(0xd6)],_0x1d87e9(0xef),(_0x3df279,_0x248598)=>{const _0x550825=_0x1d87e9;_0x248598['on'](_0x550825(0x1d8),()=>{const _0x466d7c=_0x550825;this[_0x466d7c(0x1f4)](_0x248598);});}),await this[_0x1d87e9(0x149)]();}[_0x32f9e9(0x148)](_0x31194c){const _0x26359d=_0x32f9e9,_0x2bc6a0=_0x2fb4d2(this[_0x26359d(0x11a)]);if(!_0x2bc6a0[_0x26359d(0x167)][_0x26359d(0x1ba)](_0x26359d(0x14b)))throw new _0x4f662e(_0x26359d(0x137),null);const _0x1b7c62=this[_0x26359d(0x11a)][_0x26359d(0x167)][_0x26359d(0x190)](_0x26359d(0xeb)),{reply:_0x4d0f51,interaction:_0x518445}=this[_0x26359d(0x9f)](_0x31194c[_0x26359d(0xdf)]),_0xdb7311=this[_0x26359d(0x1ea)](_0x31194c[_0x26359d(0xdf)],_0x31194c[_0x26359d(0x19e)]),_0x35bcb3=void 0x0!==_0x31194c[_0x26359d(0x19e)]?[_0x4d0f51[_0x26359d(0xab)][_0x31194c[_0x26359d(0x19e)]]]:_0x4d0f51[_0x26359d(0xab)][_0x26359d(0xc7)](_0xdee74c=>_0x26359d(0x159)==_0xdee74c[_0x26359d(0x132)]),_0x40371f=_0x35bcb3[_0x26359d(0x114)](_0x2c0c93=>_0x4d0f51[_0x26359d(0xab)][_0x26359d(0x105)](_0x2c0c93));if(!_0xdb7311||_0x26359d(0xb5)==_0xdb7311[_0x26359d(0x128)][_0x26359d(0x1ab)][_0x26359d(0x1d7)])return void _0x40371f[_0x26359d(0x10b)](_0xa05894=>_0x4d0f51[_0x26359d(0x14d)](_0xa05894,_0x26359d(0x13a)));_0x40371f[_0x26359d(0x10b)](_0x543267=>_0x4d0f51[_0x26359d(0x14d)](_0x543267,_0x26359d(0xcc)));const _0xa5f620=_0x35d81a({'editor':_0x2bc6a0,'reply':_0x4d0f51,'interaction':_0x518445,'groups':_0x35bcb3,'transform':!0x0,'documentCompare':_0x1b7c62,'documentCompareOptions':{'anchor':_0x26359d(0x11d),'markDeletions':!0x0}});let _0x5eb937;_0xdb7311&&this[_0x26359d(0x166)](_0xdb7311[_0x26359d(0x128)]),_0x2bc6a0[_0x26359d(0xfe)][_0x26359d(0x1a9)](_0x101aa7=>{const _0x474654=_0x26359d;_0x5eb937=_0x101aa7[_0x474654(0x1a8)],_0x2bc6a0[_0x474654(0x167)][_0x474654(0x190)](_0x474654(0xb9))[_0x474654(0x11f)](_0xa5f620),this[_0x474654(0x1b9)][_0x474654(0x144)](_0x474654(0xd2));}),this[_0x26359d(0x117)][_0x26359d(0x16a)](_0x5eb937,{'interactionId':_0x518445['id'],'replyId':_0x4d0f51['id'],'indexes':_0x40371f[_0x26359d(0x17a)]()}),this[_0x26359d(0x14a)](_0x4d0f51);}[_0x32f9e9(0x1e2)](_0xfab59c){const _0x3acdf2=_0x32f9e9,_0x4d81a3=_0x2fb4d2(this[_0x3acdf2(0x11a)]),_0x5aefd7=this[_0x3acdf2(0x11a)][_0x3acdf2(0x167)][_0x3acdf2(0x190)](_0x45a94c),{reply:_0x5afff5,interaction:_0x188790}=this[_0x3acdf2(0x9f)](_0xfab59c[_0x3acdf2(0xdf)]),_0x2ed696=this[_0x3acdf2(0x1ea)](_0xfab59c[_0x3acdf2(0xdf)],_0xfab59c[_0x3acdf2(0x19e)]),_0x1b5983=void 0x0!==_0xfab59c[_0x3acdf2(0x19e)]?[_0x5afff5[_0x3acdf2(0xab)][_0xfab59c[_0x3acdf2(0x19e)]]]:_0x5afff5[_0x3acdf2(0xab)][_0x3acdf2(0xc7)](_0x938059=>_0x3acdf2(0x159)==_0x938059[_0x3acdf2(0x132)]),_0x40831b=_0x1b5983[_0x3acdf2(0x114)](_0x39011f=>_0x5afff5[_0x3acdf2(0xab)][_0x3acdf2(0x105)](_0x39011f));if(!_0x2ed696||_0x3acdf2(0xb5)==_0x2ed696[_0x3acdf2(0x128)][_0x3acdf2(0x1ab)][_0x3acdf2(0x1d7)])return void _0x40831b[_0x3acdf2(0x10b)](_0x45bede=>_0x5afff5[_0x3acdf2(0x14d)](_0x45bede,_0x3acdf2(0x13a)));_0x40831b[_0x3acdf2(0x10b)](_0x186b18=>_0x5afff5[_0x3acdf2(0x14d)](_0x186b18,_0x3acdf2(0xcc)));const _0x3aad44=_0x35d81a({'editor':_0x4d81a3,'reply':_0x5afff5,'interaction':_0x188790,'groups':_0x1b5983,'transform':!0x0,'documentCompare':_0x5aefd7,'documentCompareOptions':{'anchor':_0x3acdf2(0x11d),'markDeletions':!0x1}});let _0x3df717;_0x2ed696&&this[_0x3acdf2(0x166)](_0x2ed696[_0x3acdf2(0x128)]),_0x4d81a3[_0x3acdf2(0xfe)][_0x3acdf2(0x1a9)](_0x1070b5=>{const _0x2be9e9=_0x3acdf2;_0x3df717=_0x1070b5[_0x2be9e9(0x1a8)];for(const _0x3aa8a7 of _0x3aad44)_0x3aa8a7[_0x2be9e9(0xb3)]=_0x4d81a3[_0x2be9e9(0xfe)][_0x2be9e9(0x1a0)][_0x2be9e9(0x183)],_0x96fa53(_0x4d81a3,_0x3aa8a7),_0x1070b5[_0x2be9e9(0x1a8)][_0x2be9e9(0xf0)](_0x3aa8a7),_0x4d81a3[_0x2be9e9(0xfe)][_0x2be9e9(0x168)](_0x3aa8a7);}),this[_0x3acdf2(0x117)][_0x3acdf2(0x16a)](_0x3df717,{'interactionId':_0x188790['id'],'replyId':_0x5afff5['id'],'indexes':_0x40831b[_0x3acdf2(0x17a)]()}),this[_0x3acdf2(0x14a)](_0x5afff5);}[_0x32f9e9(0x110)](_0x4567f2,_0x3f77bc){const _0x7139e=_0x32f9e9,_0x7493b1=_0x2fb4d2(this[_0x7139e(0x11a)]),_0x104d92=this[_0x7139e(0x1ea)](_0x4567f2,_0x3f77bc),_0x3783aa=this[_0x7139e(0x11a)][_0x7139e(0x167)][_0x7139e(0x190)](_0x22f8df);if(!_0x104d92)return void _0x3783aa[_0x7139e(0x1ae)]();const {range:_0x551a0b,currentIndex:_0x85c36b}=_0x104d92;if(_0x7139e(0xb5)==_0x551a0b[_0x7139e(0x1ab)][_0x7139e(0x1d7)]){const {reply:_0x510304}=this[_0x7139e(0x9f)](_0x4567f2);return _0x510304[_0x7139e(0x14d)](_0x85c36b,_0x7139e(0x13a)),void _0x3783aa[_0x7139e(0x1ae)]();}if(this[_0x7139e(0x179)]?.[_0x7139e(0xdf)]==_0x4567f2&&this[_0x7139e(0x179)]?.[_0x7139e(0x19e)]==_0x85c36b)return;this[_0x7139e(0xc6)](_0x3783aa),this[_0x7139e(0x179)]={'replyId':_0x4567f2,'partIndex':_0x85c36b};let _0x2d1bca=_0x7493b1[_0x7139e(0x156)][_0x7139e(0x190)](_0x7139e(0xce))||[..._0x54810b];_0x7493b1[_0x7139e(0x167)][_0x7139e(0x1ba)](_0x7139e(0x14b))||(_0x2d1bca=_0x2d1bca[_0x7139e(0xc7)](_0x4a2af9=>_0x7139e(0x1d2)!=_0x4a2af9));const _0x2592e0=new _0x30c4c1(_0x7493b1[_0x7139e(0xf9)],{'showDiff':this[_0x7139e(0x112)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x7139e(0x1cf)},'hideHeader':!0x0,'availableActions':_0x2d1bca});this[_0x7139e(0xc6)](_0x2592e0);const {reply:_0x3557c3}=this[_0x7139e(0x9f)](_0x4567f2),_0x858b07=_0x3557c3[_0x7139e(0x104)]({'showDiff':this[_0x7139e(0x112)]})[_0x7139e(0xc7)](_0x4007e9=>_0x4007e9[_0x7139e(0x1d4)]),_0x42d217=_0x858b07[_0x7139e(0xe1)](_0x4802e0=>_0x4802e0[_0x7139e(0x1e4)]==_0x85c36b);if(-0x1==_0x42d217)return;const _0x3e0fbc=_0x858b07[_0x42d217],_0x234d49=_0x858b07['at']((_0x42d217-0x1)%_0x858b07[_0x7139e(0x1e1)])?.[_0x7139e(0x1e4)],_0x4321cb=_0x858b07['at']((_0x42d217+0x1)%_0x858b07[_0x7139e(0x1e1)])?.[_0x7139e(0x1e4)];_0x2592e0[_0x7139e(0x1f0)]({'parts':[_0x3e0fbc],'renderingStrategy':_0x7139e(0xbb)});const _0xc566af=_0x85c36b!==_0x234d49;this[_0x7139e(0x166)](_0x551a0b,!0x0),_0x3783aa[_0x7139e(0x10a)]({'index':_0x85c36b,'title':_0x293a47(this[_0x7139e(0x11a)][_0x7139e(0xf9)],_0x7139e(0xbc),(_0x42d217+0x1)[_0x7139e(0xb4)]()),'icon':_0x230613,'mainView':_0x2592e0,'showRotator':_0xc566af,'showApplyButton':!0x0,'showSuggestButton':_0x7493b1[_0x7139e(0x167)][_0x7139e(0x1ba)](_0x7139e(0x14b)),'ranges':[_0x551a0b]}),this[_0x7139e(0xb6)][_0x7139e(0x10d)](_0x4567f2,_0x85c36b),this[_0x7139e(0x1b8)](_0x2592e0,_0x7139e(0x9c),(_0x15b850,{showDiff:_0x33d99c})=>{const _0x1e969e=_0x7139e;this[_0x1e969e(0x112)]=_0x33d99c;const {reply:_0x1cff89}=this[_0x1e969e(0x9f)](_0x4567f2),_0x39b829=_0x1cff89[_0x1e969e(0x104)]({'showDiff':_0x33d99c,'groupIndex':_0x85c36b});_0x2592e0[_0x1e969e(0x1f0)]({'parts':_0x39b829,'renderingStrategy':_0x1e969e(0xbb)});}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x147),()=>{const _0x302dae=_0x7139e;this[_0x302dae(0x1e2)]({'replyId':_0x4567f2,'partIndex':_0x85c36b}),_0xc566af?this[_0x302dae(0x110)](_0x4567f2,_0x4321cb):_0x3783aa[_0x302dae(0x1ae)]();}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x1d2),()=>{const _0x4294e3=_0x7139e;this[_0x4294e3(0x148)]({'replyId':_0x4567f2,'partIndex':_0x85c36b}),_0xc566af?this[_0x4294e3(0x110)](_0x4567f2,_0x4321cb):_0x3783aa[_0x4294e3(0x1ae)]();}),_0xc566af&&(this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x173),()=>{const _0x307d1a=_0x7139e;this[_0x307d1a(0x110)](_0x4567f2,_0x4321cb);}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x18c),()=>{const _0x8b05c5=_0x7139e;this[_0x8b05c5(0x110)](_0x4567f2,_0x234d49);})),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x120),()=>{const _0x5843f0=_0x7139e;this[_0x5843f0(0xc6)](_0x3783aa),this[_0x5843f0(0xc6)](_0x2592e0),this[_0x5843f0(0x179)]=null;});}[_0x32f9e9(0x1ea)](_0x21f80c,_0x5e895e){const _0xa1cea6=_0x32f9e9,_0x800cd5=_0x2fb4d2(this[_0xa1cea6(0x11a)]),{reply:_0x30c464,interaction:_0x87906e}=this[_0xa1cea6(0x9f)](_0x21f80c),_0x17f7ce=_0x30c464[_0xa1cea6(0xab)][_0xa1cea6(0xc7)](_0x40efd5=>_0xa1cea6(0x159)==_0x40efd5[_0xa1cea6(0x132)]),_0x299a13=_0x17f7ce[_0xa1cea6(0x114)](_0xd2f051=>_0x30c464[_0xa1cea6(0xab)][_0xa1cea6(0x105)](_0xd2f051));void 0x0===_0x5e895e&&(_0x5e895e=_0x299a13[0x0]);const _0x499bd4=_0x299a13[_0xa1cea6(0x105)](_0x5e895e);if(-0x1==_0x499bd4)return null;const _0x4b0e98=_0x17f7ce[_0x499bd4],_0x26ec43=new _0x30b153([]),_0x2f5416=new _0x30b153([]);for(const _0x253aa7 of _0x4b0e98[_0xa1cea6(0x165)])if(_0xa1cea6(0x181)!=_0x253aa7[_0xa1cea6(0x184)]&&_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x253aa7[_0xa1cea6(0xee)][_0xa1cea6(0x1bd)](!0x0)),_0xa1cea6(0x13c)!=_0x253aa7[_0xa1cea6(0x184)]){const _0xd51655=_0x2682e8(_0x36de38=>_0x582ccb(_0x36de38,_0xa1cea6(0x14f))==_0x253aa7['id'],_0x30c464[_0xa1cea6(0x1bb)],!0x0);_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0xd51655[_0xa1cea6(0x1bd)](!0x0));}if(0x0==_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x1e1)]){if(_0x4b0e98[_0xa1cea6(0x165)][0x0][_0xa1cea6(0x1bc)]){const _0x2ea799=_0x1082e2(_0xa1cea6(0x14f),_0x4b0e98[_0xa1cea6(0x165)][0x0][_0xa1cea6(0x1bc)],_0x30c464[_0xa1cea6(0x1bb)]);_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x195)](_0x2ea799[_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x195)](_0x2ea799[_0xa1cea6(0x1bd)](!0x0)),_0x2ea799[_0xa1cea6(0x121)]&&(_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2ea799[_0xa1cea6(0x121)][_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2ea799[_0xa1cea6(0x121)][_0xa1cea6(0x1bd)](!0x0)));}else{const _0x2f489a=_0x30c464[_0xa1cea6(0x1bb)][_0xa1cea6(0x1af)][0x0];if(!_0x2f489a)return null;_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2f489a[_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2f489a[_0xa1cea6(0x1bd)](!0x0));}}const _0x50d59a=_0x87906e[_0xa1cea6(0xf5)](),_0x1eccf5=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x50d59a[_0xa1cea6(0xda)]),_0x588f94=_0x4229f4(_0x26ec43),_0x3f0b35=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x588f94),_0x18ef41=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x588f94),_0x21a2e7=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x11c)](_0x3f0b35,0x0),_0xe72e12=_0x4229f4(_0x2f5416),_0x2dc7d6={'anchor':_0x21a2e7,'markDeletions':!0x1},_0x445ff3=_0x800cd5[_0xa1cea6(0x167)][_0xa1cea6(0x190)](_0x45a94c)[_0xa1cea6(0x101)](_0x588f94,_0xe72e12,_0x2dc7d6)[_0xa1cea6(0x19f)]();if(!_0x445ff3[_0xa1cea6(0x1e1)])return null;_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a9)](_0x2f42c4=>{const _0x252a41=_0xa1cea6;for(const _0xba971f of _0x445ff3)if(_0x252a41(0xad)==_0xba971f[_0x252a41(0x184)]){const _0xd9b304=_0xba971f[_0x252a41(0xa7)],_0x383bf3=_0xba971f[_0x252a41(0x1ce)],_0x47821c=new _0x5a552b(_0xd9b304,_0x383bf3);_0x2f42c4[_0x252a41(0x1a8)][_0x252a41(0xf0)](_0x47821c),_0x800cd5[_0x252a41(0xfe)][_0x252a41(0x168)](_0x47821c);}else _0x252a41(0xac)!==_0xba971f[_0x252a41(0x184)]&&(_0xba971f[_0x252a41(0xb3)]=null,_0xba971f[_0x252a41(0x11e)]=!0x1,_0x2f42c4[_0x252a41(0x1a8)][_0x252a41(0xf0)](_0xba971f),_0x800cd5[_0x252a41(0xfe)][_0x252a41(0x168)](_0xba971f));});const _0x5ddbd2=_0x3c6251(_0x800cd5,_0x445ff3,_0x3f0b35);_0x2d8db0(_0x800cd5[_0xa1cea6(0xfe)],_0x5ddbd2);const _0x5cdae0=_0x5ddbd2[_0xa1cea6(0x1c5)]()[_0xa1cea6(0x113)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x42962c=_0x5ddbd2[_0xa1cea6(0x1c5)]()[_0xa1cea6(0x13d)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x17553f=[];let _0x381db3=_0x3f0b35,_0xc695a8=_0x18ef41;for(let _0x1dbd8c=0x0;_0x1dbd8c<_0x42962c[_0xa1cea6(0x1e1)];_0x1dbd8c++){const _0x2687f6=_0x381db3[_0xa1cea6(0x198)]-_0x42962c[_0x1dbd8c];_0x17553f[_0x1dbd8c]=_0xc695a8[_0xa1cea6(0x198)]-_0x2687f6,_0x381db3=_0x381db3[_0xa1cea6(0x1eb)](_0x42962c[_0x1dbd8c]),_0xc695a8=_0xc695a8[_0xa1cea6(0x1eb)](_0x17553f[_0x1dbd8c]);}const _0x4aca38=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x111)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x18ef41,_0x5cdae0),_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x18ef41,_0x17553f)),_0x387b02=_0x18ef41[_0xa1cea6(0x1fe)](0x0)[_0xa1cea6(0x135)](_0x1de6ee),_0x33b9de=Array[_0xa1cea6(0x18a)](_0x1eccf5[_0xa1cea6(0x1d9)]())[_0xa1cea6(0xa2)](_0x4a481e=>_0x4a481e[_0xa1cea6(0x135)](_0x1de6ee)==_0x387b02)[_0xa1cea6(0x141)](),_0x58c549=_0x4aca38[_0xa1cea6(0x113)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x53ee6b=_0x4aca38[_0xa1cea6(0x13d)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)]();_0x58c549[0x0]=_0x33b9de[0x0]+_0x58c549[0x0],_0x53ee6b[0x0]=_0x33b9de[0x0]+_0x53ee6b[0x0];let _0x3bc8eb=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x111)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0x187)](),_0x58c549),_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0x187)](),_0x53ee6b));const _0x213892=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0xa8)][_0xa1cea6(0x19f)](_0x50d59a[_0xa1cea6(0x183)]);for(const _0x110599 of _0x213892)_0x3bc8eb=_0xa4175c[_0xa1cea6(0x186)](_0x3bc8eb[_0xa1cea6(0x201)](_0x110599));return{'range':_0x3bc8eb,'currentIndex':_0x5e895e};}[_0x32f9e9(0x1f4)](_0x390375){const _0x4e96fb=_0x32f9e9;if(!_0x390375[_0x4e96fb(0x167)][_0x4e96fb(0x1ba)](_0x4e96fb(0x16d)))return;const _0x42c250=_0x390375[_0x4e96fb(0x12e)][_0x4e96fb(0x190)](_0x4e96fb(0x98)),_0x1fc142=_0x390375[_0x4e96fb(0x12e)][_0x4e96fb(0x190)](_0x4e96fb(0xdb));this[_0x4e96fb(0x1b8)](_0x42c250,_0x4e96fb(0xf8),(_0xc9d956,_0x1d8daa,_0x333382)=>{const _0x56048f=_0x4e96fb,_0xd52e84=this[_0x56048f(0x117)][_0x56048f(0x190)](_0x1d8daa);if(!_0xd52e84)return;const _0x1e9cae=this[_0x56048f(0x1bf)][_0x56048f(0x1e0)](_0xd52e84[_0x56048f(0x19c)])[_0x56048f(0xfa)](_0xd52e84[_0x56048f(0xdf)]);_0xd52e84[_0x56048f(0x1dd)][_0x56048f(0x10b)](_0xe9299f=>_0x1e9cae[_0x56048f(0x14d)](_0xe9299f,_0x56048f(0x159))),this[_0x56048f(0x117)][_0x56048f(0x1c1)](_0x1d8daa),this[_0x56048f(0x117)][_0x56048f(0x16a)](_0x333382,_0xd52e84);}),this[_0x4e96fb(0x1b8)](_0x1fc142,_0x4e96fb(0xf8),(_0x565824,_0x5f5219,_0x2b2108)=>{const _0x6e3f7e=_0x4e96fb,_0x4949f4=this[_0x6e3f7e(0x117)][_0x6e3f7e(0x190)](_0x5f5219);if(!_0x4949f4)return;const _0x46ae1b=this[_0x6e3f7e(0x1bf)][_0x6e3f7e(0x1e0)](_0x4949f4[_0x6e3f7e(0x19c)])[_0x6e3f7e(0xfa)](_0x4949f4[_0x6e3f7e(0xdf)]);_0x4949f4[_0x6e3f7e(0x1dd)][_0x6e3f7e(0x10b)](_0x34b13c=>_0x46ae1b[_0x6e3f7e(0x14d)](_0x34b13c,_0x6e3f7e(0xcc))),this[_0x6e3f7e(0x117)][_0x6e3f7e(0x1c1)](_0x5f5219),this[_0x6e3f7e(0x117)][_0x6e3f7e(0x16a)](_0x2b2108,_0x4949f4);});}async[_0x32f9e9(0x1e8)](_0x2ef91e){const _0x24793a=_0x32f9e9;this[_0x24793a(0x11a)][_0x24793a(0x167)][_0x24793a(0x190)](_0x22f8df)[_0x24793a(0x1ae)](),this[_0x24793a(0xb6)][_0x24793a(0x18b)](_0x24793a(0xbb)),this[_0x24793a(0xb6)][_0x24793a(0x1a7)](!0x0),await this[_0x24793a(0xfb)]();try{await this[_0x24793a(0x1c2)][_0x24793a(0x118)](_0x2ef91e)[_0x24793a(0x1be)](),await this[_0x24793a(0x149)](_0x2ef91e),this[_0x24793a(0x163)]('\x20');const {sessionId:_0x52a45d}=this[_0x24793a(0x1b9)][_0x24793a(0x1e7)]();await this[_0x24793a(0x1bf)][_0x24793a(0xae)](_0x2ef91e,_0x52a45d),this[_0x24793a(0x1bf)][_0x24793a(0x1ac)]()&&this[_0x24793a(0x1bf)][_0x24793a(0x1f8)](_0x293a47(this[_0x24793a(0x11a)][_0x24793a(0xf9)],_0x24793a(0x107)));}catch(_0x576299){this[_0x24793a(0xb6)][_0x24793a(0x136)]({'errorMessage':_0x293a47(this[_0x24793a(0x11a)][_0x24793a(0xf9)],_0x24793a(0x1b6)),'id':_0x2ef91e}),this[_0x24793a(0x197)](new _0x4f662e(_0x24793a(0x1e6),this,{'error':_0x576299}));}finally{this[_0x24793a(0x11a)][_0x24793a(0x167)][_0x24793a(0x190)](_0x18e5e0)[_0x24793a(0x1a5)][_0x24793a(0x174)](_0x24793a(0x1e9)),this[_0x24793a(0xb6)][_0x24793a(0xe9)](),this[_0x24793a(0xb6)][_0x24793a(0x18b)](_0x24793a(0x17e)),this[_0x24793a(0xb6)][_0x24793a(0x1a7)](!0x1);}}[_0x32f9e9(0x142)](_0x4726d4){const _0x1babe=_0x32f9e9;this[_0x1babe(0x1bf)]['id']===_0x4726d4&&this[_0x1babe(0x149)]();}async[_0x32f9e9(0xfc)](){const _0x63c7ea=_0x32f9e9,_0x55e52c=this[_0x63c7ea(0x1b9)][_0x63c7ea(0x1b5)]();this[_0x63c7ea(0x1bf)]?.[_0x63c7ea(0xc9)](_0x55e52c),this[_0x63c7ea(0x1bf)]?.[_0x63c7ea(0x1f8)](_0x293a47(this[_0x63c7ea(0x11a)][_0x63c7ea(0xf9)],_0x63c7ea(0x107)));}[_0x32f9e9(0x155)](){const _0x36e45d=_0x32f9e9;this[_0x36e45d(0x1bf)]?.[_0x36e45d(0xf4)]();}[_0x32f9e9(0x1cc)](){const _0x431c6f=_0x32f9e9;this[_0x431c6f(0xb6)][_0x431c6f(0x1cc)]();}async[_0x32f9e9(0x15a)](){const _0xb795b6=_0x32f9e9;await this[_0xb795b6(0x149)]();}async[_0x32f9e9(0x9a)]({message:_0x348676,quickActionData:_0x760c3d}){const _0x46dfb1=_0x32f9e9;await this[_0x46dfb1(0x1b4)]({'userMessage':_0x348676,'quickActionData':_0x760c3d});}[_0x32f9e9(0xd8)](){const _0x19652b=_0x32f9e9,_0x342356=this[_0x19652b(0x11a)][_0x19652b(0x156)][_0x19652b(0x190)](_0x19652b(0x138));if(!_0x342356)throw new _0x4f662e(_0x19652b(0x1b3),this);return _0x342356;}async[_0x32f9e9(0x149)](_0x1c08c0){const _0x321bb0=_0x32f9e9;try{this[_0x321bb0(0xb6)][_0x321bb0(0x191)](),await this[_0x321bb0(0x164)](_0x1c08c0);}catch(_0x4e103d){this[_0x321bb0(0xb6)][_0x321bb0(0x136)]({'errorMessage':_0x293a47(this[_0x321bb0(0x11a)][_0x321bb0(0xf9)],_0x321bb0(0x129)),'id':_0x1c08c0||_0x53bca2()}),console[_0x321bb0(0xd5)](_0x4e103d),this[_0x321bb0(0x1bf)]=void 0x0,this[_0x321bb0(0xb6)][_0x321bb0(0x1a4)]();}}async[_0x32f9e9(0x164)](_0x21cd6e){const _0x4a365e=_0x32f9e9,_0x59c459=this[_0x4a365e(0x11a)][_0x4a365e(0x167)][_0x4a365e(0x190)](_0x22f8df);let _0x48caa6;_0x59c459[_0x4a365e(0x13e)]&&_0x59c459[_0x4a365e(0x1ae)](),_0x21cd6e||!this[_0x4a365e(0x1bf)]?_0x48caa6=this[_0x4a365e(0x11a)][_0x4a365e(0x156)][_0x4a365e(0x190)](_0x4a365e(0xa0)):this[_0x4a365e(0xb6)][_0x4a365e(0x17d)]&&(_0x48caa6=this[_0x4a365e(0x1bf)][_0x4a365e(0x14c)]['id']),await this[_0x4a365e(0xfb)]();const _0x115889=this[_0x4a365e(0xd8)](),_0x3b5b63=_0x21cd6e||_0x53bca2();this[_0x4a365e(0x1bf)]=new _0x3dfc61({'connector':this[_0x4a365e(0x1c2)],'chatModels':this[_0x4a365e(0xdd)],'selectedModelId':_0x48caa6,'conversationId':_0x3b5b63,'group':_0x115889,'getEditor':()=>_0x2fb4d2(this[_0x4a365e(0x11a)])}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xba),(_0x157398,_0x351898)=>{const _0x7574ad=_0x4a365e;this[_0x7574ad(0xb6)][_0x7574ad(0x1e5)](_0x351898),this[_0x7574ad(0xb6)][_0x7574ad(0x188)](),this[_0x7574ad(0xb6)][_0x7574ad(0x106)](),this[_0x7574ad(0xb6)][_0x7574ad(0x162)](),_0x21cd6e||(this[_0x7574ad(0xb6)][_0x7574ad(0x140)](),this[_0x7574ad(0x1bf)]?.[_0x7574ad(0x1f8)](_0x293a47(this[_0x7574ad(0x11a)][_0x7574ad(0xf9)],_0x7574ad(0x107))));}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xc5),(_0x1406e6,_0x1ef51d)=>{const _0x281bed=_0x4a365e;this[_0x281bed(0xb6)][_0x281bed(0xbe)](_0x1ef51d[_0x281bed(0xe7)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1aa),(_0x320968,_0x243258)=>{const _0x1c5c06=_0x4a365e;this[_0x1c5c06(0xb6)][_0x1c5c06(0x153)](_0x243258);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1da),()=>{const _0x422ca0=_0x4a365e;this[_0x422ca0(0xb6)][_0x422ca0(0x202)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c7),()=>{const _0x5343a0=_0x4a365e;this[_0x5343a0(0xb6)][_0x5343a0(0x202)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1a6),(_0x417a58,_0x2224eb)=>{const _0x114d9b=_0x4a365e;this[_0x114d9b(0xb6)][_0x114d9b(0x1db)](_0x2224eb,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x182),(_0xa2d69c,_0x42bad9)=>{const _0xaf86e3=_0x4a365e;this[_0xaf86e3(0xb6)][_0xaf86e3(0x1db)](_0x42bad9,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x16e),()=>{const _0x2ba7da=_0x4a365e;this[_0x2ba7da(0xb6)][_0x2ba7da(0xea)]();}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x17f),async()=>{const _0x2a3be9=_0x4a365e;await this[_0x2a3be9(0xb6)][_0x2a3be9(0x18d)]();}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c9),(_0xafdb84,_0x213527)=>{const _0x5dc8d3=_0x4a365e;this[_0x5dc8d3(0xb6)][_0x5dc8d3(0x1cd)](_0x213527['id']);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x134),(_0x133742,_0xcc921,_0x33aab3)=>{const _0x1ba7ab=_0x4a365e;this[_0x1ba7ab(0x163)](_0xcc921,_0x33aab3);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x160),(_0x10e535,_0x1cc8a7)=>{const _0x50337b=_0x4a365e;_0x50337b(0x1fd)===_0x1cc8a7[_0x50337b(0x184)]?this[_0x50337b(0xb6)][_0x50337b(0x102)](_0x1cc8a7):this[_0x50337b(0xb6)][_0x50337b(0x157)](_0x1cc8a7);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd4),async(_0x374515,_0xd6a922)=>{const _0x5a4a67=_0x4a365e;await this[_0x5a4a67(0x131)]({'reply':_0xd6a922});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1f6),(_0x2ccdbf,{reply:_0x217359,index:_0x589d0a,state:_0x459095})=>{const _0x3f4c56=_0x4a365e;this[_0x3f4c56(0xb6)][_0x3f4c56(0x180)]({'id':_0x217359['id'],'index':_0x589d0a,'state':_0x459095});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x19d),(_0x1f4923,_0x2c4f1b)=>{const _0x575aaa=_0x4a365e;if(this[_0x575aaa(0xb6)][_0x575aaa(0x1f2)](_0x2c4f1b[_0x575aaa(0xc3)],_0x2c4f1b[_0x575aaa(0x151)]),_0x575aaa(0x17b)===_0x2c4f1b[_0x575aaa(0xc3)][_0x575aaa(0x184)]){const _0x43091f=[..._0x2fb4d2(this[_0x575aaa(0x11a)])[_0x575aaa(0xfe)][_0x575aaa(0x1a0)][_0x575aaa(0x17b)][_0x575aaa(0x99)]()];this[_0x575aaa(0x1b9)][_0x575aaa(0x1d1)](_0x43091f,_0x575aaa(0xd9)+this[_0x575aaa(0x1bf)]?.['id']);}}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1cb),(_0x589c52,_0x59858d)=>{const _0x2a0152=_0x4a365e;this[_0x2a0152(0xb6)][_0x2a0152(0x95)](_0x59858d[_0x2a0152(0x1f9)]),_0x2a0152(0x14e)==_0x59858d[_0x2a0152(0x1f9)]&&this[_0x2a0152(0x155)](),_0x2a0152(0x17b)===_0x59858d[_0x2a0152(0x184)]&&this[_0x2a0152(0x1b9)][_0x2a0152(0x144)](_0x2a0152(0xd9)+this[_0x2a0152(0x1bf)]?.['id']);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1ad),(_0x4bf7c1,_0x2610b7)=>{const _0x472131=_0x4a365e;this[_0x472131(0xb6)][_0x472131(0x12a)](_0x2610b7[_0x472131(0xc3)][_0x472131(0x1f9)],_0x2610b7[_0x472131(0x151)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1d6),(_0x69c0,_0x7eacf2)=>{const _0x14f2c3=_0x4a365e;this[_0x14f2c3(0xb6)][_0x14f2c3(0x15e)](_0x7eacf2[_0x14f2c3(0x100)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd0),(_0x19460d,_0x2cb975)=>{const _0x7e07f3=_0x4a365e;this[_0x7e07f3(0xb6)][_0x7e07f3(0x10c)](_0x2cb975[_0x7e07f3(0x176)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xfd),(_0x5bb55f,_0x43f0c2)=>{const _0x492899=_0x4a365e;this[_0x492899(0xb6)][_0x492899(0xb8)](_0x43f0c2[_0x492899(0x15d)],_0x43f0c2[_0x492899(0x119)],_0x43f0c2[_0x492899(0x1a2)],_0x43f0c2[_0x492899(0x1f1)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xaa),(_0x46dcfb,_0x3ee352)=>{const _0x25f699=_0x4a365e;this[_0x25f699(0xb6)][_0x25f699(0xcd)](_0x3ee352[_0x25f699(0x15d)],_0x3ee352[_0x25f699(0xf3)],_0x3ee352[_0x25f699(0x1ec)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x158),(_0xd848d1,_0x337a1c)=>{const _0x1edf38=_0x4a365e;this[_0x1edf38(0xb6)][_0x1edf38(0xd3)](_0x337a1c);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c0),(_0x42b549,_0x55a80f)=>{const _0x563b97=_0x4a365e;this[_0x563b97(0xb6)][_0x563b97(0x1ef)](_0x55a80f[_0x563b97(0x14c)],_0x55a80f[_0x563b97(0x9e)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd5),(_0xab4d1f,{error:_0x1b1993,interactionId:_0x1edf63,fileName:_0x19d4a7,url:_0x331383,sourceId:_0x859444,sourceLabel:_0x4133d5})=>{const _0x10b5f1=_0x4a365e,_0x21caf7=_0x1edf63?_0x1edf63+':'+_0x53bca2():_0x53bca2();_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1b7))?this[_0x10b5f1(0xb6)][_0x10b5f1(0xff)]({'staticMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1f3)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xe2))||_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x146))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x129)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x126))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x177),_0x19d4a7),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1df))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x18f),_0x331383),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x115))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xa3)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xcb))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1dc)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xf1))?(_0x859444&&this[_0x10b5f1(0xb6)][_0x10b5f1(0x16b)](_0x859444),this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x18e),_0x4133d5||_0x10b5f1(0x119)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1d5))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xca)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x116))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1de)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x11b))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xed)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1c4))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xe4)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x9d))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xf7)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x196))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xaf)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x97)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993));}),await this[_0x4a365e(0x1bf)][_0x4a365e(0x1ff)](this[_0x4a365e(0x11a)][_0x4a365e(0x156)][_0x4a365e(0x190)](_0x4a365e(0x193))),_0x21cd6e||await this[_0x4a365e(0x1bf)][_0x4a365e(0x113)]();}async[_0x32f9e9(0x1b4)]({userMessage:_0xe98774,quickActionData:_0x50136b}){const _0x20e20b=_0x32f9e9;if(!this[_0x20e20b(0x1bf)])throw new _0x4f662e(_0x20e20b(0x1c3));this[_0x20e20b(0x1bf)][_0x20e20b(0x1b1)]()&&await this[_0x20e20b(0x1bf)][_0x20e20b(0x185)](this[_0x20e20b(0x1b9)][_0x20e20b(0x1e7)]()),this[_0x20e20b(0x1bf)]['id']&&this[_0x20e20b(0x1bf)][_0x20e20b(0x200)]&&await this[_0x20e20b(0x1bf)][_0x20e20b(0xf2)]({'userMessage':_0xe98774,'quickActionData':_0x50136b}),this[_0x20e20b(0x150)]();}[_0x32f9e9(0x150)](){const _0x24d952=_0x32f9e9,_0x5dab0e=_0x2fb4d2(this[_0x24d952(0x11a)])[_0x24d952(0xfe)],_0x34dd6f=Array[_0x24d952(0x18a)](_0x5dab0e[_0x24d952(0x12c)][_0x24d952(0x96)](_0x4452cb));_0x5dab0e[_0x24d952(0x1a9)](_0x1f981d=>{const _0x4bb638=_0x24d952;_0x34dd6f[_0x4bb638(0x10b)](_0x3ca3d5=>_0x1f981d[_0x4bb638(0x13b)](_0x3ca3d5));});}[_0x32f9e9(0x1e3)](){const _0x3a1ebb=_0x32f9e9;console[_0x3a1ebb(0x171)](_0x3a1ebb(0x19b));}[_0x32f9e9(0x108)](_0x88cdbb){const _0x2dccf3=_0x32f9e9;this[_0x2dccf3(0xb6)][_0x2dccf3(0x122)](_0x88cdbb);}[_0x32f9e9(0x197)](_0x9e7b08){const _0x58384d=_0x32f9e9;_0x402656(_0x9e7b08[_0x58384d(0x175)]);}[_0x32f9e9(0xde)](_0x537c52){const _0x54b05c=_0x32f9e9;this[_0x54b05c(0x1bf)]?.[_0x54b05c(0x169)](_0x537c52);}[_0x32f9e9(0x172)](){const _0x3a5943=_0x32f9e9;this[_0x3a5943(0x1bf)]?.[_0x3a5943(0xe8)]();}[_0x32f9e9(0x194)](){const _0x42f6ea=_0x32f9e9;this[_0x42f6ea(0x1bf)]?.[_0x42f6ea(0x13f)]();}[_0x32f9e9(0x9f)](_0x4e0df3){const _0x3a7d1c=_0x32f9e9,[_0x3dae6b,_0x2d56eb]=_0x4e0df3[_0x3a7d1c(0x1fc)](':'),_0x51ee12=this[_0x3a7d1c(0x1bf)][_0x3a7d1c(0x1e0)](_0x3dae6b),_0x4a7349=_0x51ee12[_0x3a7d1c(0xfa)](_0x2d56eb);return{'interaction':_0x51ee12,'reply':_0x4a7349};}[_0x32f9e9(0x166)](_0x10888a,_0x1fbfaf=!0x1){const _0x36eed8=_0x32f9e9,_0x4e028a=_0x2fb4d2(this[_0x36eed8(0x11a)]),_0x3ef968={'target':_0x4e028a[_0x36eed8(0x143)][_0x36eed8(0x1a5)][_0x36eed8(0x125)][_0x36eed8(0x130)](_0x4e028a[_0x36eed8(0x143)][_0x36eed8(0x10f)][_0x36eed8(0xc2)](_0x10888a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1fbfaf};_0x1fbfaf&&(_0x3ef968[_0x36eed8(0x178)]=!0x0),_0x4d71d9(_0x3ef968);}[_0x32f9e9(0x163)](_0x4b3ff2,_0x39d61f=!0x1){const _0x581714=_0x32f9e9;this[_0x581714(0xb6)][_0x581714(0x134)](_0x4b3ff2||_0x293a47(this[_0x581714(0x11a)][_0x581714(0xf9)],_0x581714(0x16f)),_0x39d61f);}async[_0x32f9e9(0x131)]({reply:_0x4df877,renderingStrategy:_0x44f19e}){const _0x26ce6b=_0x32f9e9,{id:_0x1cc209,isDone:_0x40c1e3,type:_0x521003,parsedContent:_0x11ad92}=_0x4df877;if(_0x26ce6b(0x1ca)===_0x521003){const _0x18007b=_0x4df877[_0x26ce6b(0x104)]({'showDiff':this[_0x26ce6b(0xb6)][_0x26ce6b(0x189)]});await this[_0x26ce6b(0xb6)][_0x26ce6b(0x1c8)]({'id':_0x1cc209,'parts':_0x18007b,'renderingStrategy':_0x44f19e,'isDone':_0x40c1e3});}else _0x26ce6b(0x1fd)===_0x521003&&await this[_0x26ce6b(0xb6)][_0x26ce6b(0x1fa)]({'id':_0x1cc209,'parsedContent':_0x11ad92,'renderingStrategy':_0x44f19e,'isDone':_0x40c1e3});_0x40c1e3&&_0x4df877[_0x26ce6b(0x1f5)][_0x26ce6b(0x1e1)]>0x0&&this[_0x26ce6b(0xb6)][_0x26ce6b(0x109)](_0x1cc209,_0x4df877[_0x26ce6b(0x1f5)]);}async[_0x32f9e9(0xfb)](){const _0x5b7d48=_0x32f9e9,_0x2c861f=this[_0x5b7d48(0x1bf)]?.[_0x5b7d48(0x15b)];_0x2c861f&&(_0x2c861f[_0x5b7d48(0xe3)](),this[_0x5b7d48(0xb6)][_0x5b7d48(0x1ed)](_0x2c861f));}async[_0x32f9e9(0xa9)](){const _0x136919=_0x32f9e9,_0x495e0a=this[_0x136919(0x1bf)]?.[_0x136919(0x15b)];if(_0x495e0a){for await(const _0x3106d6 of _0x495e0a[_0x136919(0x16c)])await this[_0x136919(0x131)]({'reply':_0x3106d6,'renderingStrategy':_0x136919(0xbb)});}}[_0x32f9e9(0x14a)](_0x26679c){const _0x24ace5=_0x32f9e9,_0x261638={'positiveCount':_0x26679c[_0x24ace5(0xab)][_0x24ace5(0xc7)](_0x543c59=>_0x24ace5(0xcc)===_0x543c59[_0x24ace5(0x132)])[_0x24ace5(0x1e1)],'totalCount':_0x26679c[_0x24ace5(0xab)][_0x24ace5(0x1e1)],'modificationId':_0x26679c['id']},_0x4c7703=this[_0x24ace5(0x1bf)][_0x24ace5(0x1e0)](_0x26679c[_0x24ace5(0x19c)])[_0x24ace5(0x1b2)];this[_0x24ace5(0x1c2)][_0x24ace5(0x15c)](this[_0x24ace5(0x1bf)]['id'],_0x4c7703,_0x261638);}}function _0x434b(){const _0x5a5eb6=['_removeAISelectionMarkers','isLoading','2295416KbjpeD','addFeedItemUserMessage','push','removeSelectionFromChatContext','config','addFeedItemAISuggestion','capabilitiesUpdated','pending','startConversation','lastInteraction','upsertAIChatRating','sourceId','setConversationContext','rejected','replyCreated','startsWith','clearConversationContextUI','updateConversationTitle','_handleStartConversation','changes','_scrollToSuggestionRange','plugins','applyOperation','removeFromContext','set','closeSourceResourceBalloon','replies','Undo','interactionStarted','AI_CHAT_UNTITLED_CONVERSATION','addUrlToContext','log','_toggleWebSearch','showNext','activateTab','message','options','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','alignToTop','_previewedChangeGroup','slice','selection','requires','isModelAvailable','streaming','interactionFinished','updateFeedItemAIReplySuggestionPartState','removed','reasoningFinished','version','type','updateCurrentDocumentInContext','_createFromRanges','getRoot','resetMessageInput','showDiff','from','setFeedItemRenderingStrategy','showPrevious','finishInteraction','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','get','enableControls','316sWzidB','ai.chat.context','_toggleReasoning','unshift','ai-chat-context-form-data-size-limits-exceeded','_logError','maxOffset','selectModel','AIEditing','Showing\x20conversation\x20history...','interactionId','contextItemAdded','partIndex','getOperations','document','resizeTabs','resources','AITabs','disableControls','view','webSearchFinished','toggleLoadingSkeleton','batch','change','interactionCreated','root','isCurrentDocumentInConversation','contextItemLoadingEnded','close','children','loadSourceResources','isCurrentDocumentInContext','messageId','ai-chat-missing-channel-id','_handleUIUserMessage','getSelectionText','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','ai-request-aborted','listenTo','_aiEditing','has','documentContextContent','anchorId','cloneNode','getConversation','activeConversation','modelSelected','delete','_aiConnector','ai-chat-controller-no-active-conversation','ai-chat-context-file-too-large','getFirstRange','AIChatController','reasoningStarted','updateFeedItemAIReplySuggestionContent','interactionDestroyed','modification-delta','contextItemRemoved','focusPromptInput','removeFeedInteraction','howMany','full','8025237pJNRBL','showFakeVisualSelection','insertSuggestion','afterInit','hasChanges','ai-chat-resource-load-failed','contextSent','rootName','ready','getChildren','webSearchStarted','addFeedInteractionHeader','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','indexes','AI_CHAT_INVALID_REQUEST','ai-chat-url-upload-failed','getInteraction','length','_applySuggestion','_showConversationHistory','index','createConversation','ai-chat-conversation-not-found','getDocumentData','loadConversation','chat','_getDocumentRangeForReplyChanges','getChildAtOffset','isInContext','stopInteraction','path','setSelectedModel','updateContent','uid','addContextItem','AI_CHAT_ABORTED_MESSAGE','_integrateEditor','sources','replyChangeGroupStateUpdated','parse','addCurrentDocumentToContext','uiId','updateFeedItemAIReplyContent','abortPromptStream','split','text-delta','getChild','init','isStarted','getTransformedByOperation','setLoadingMessage','removeContextItem','getMarkersGroup','AI_CHAT_GENERIC_ERROR','undo','getRanges','sendMessage','dislike','toggleSuggestionDisplayMode','ai-chat-context-file-too-many-pages','isDisabled','getInteractionAndReplyById','ai.chat.models.defaultModelId','resizedTabs','find','AI_CHAT_CONTEXT_INVALID_DATA','mouseLeaveSuggestion','mouseOverSuggestion','addDocumentToContext','sourcePosition','history','_flushLastInteractionUI','resourceStateChanged','changeGroups','marker','remove','load','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','AIConnector','data','85558FTLPqO','baseVersion','toString','$graveyard','_aiChatUi','46974laPLzM','populateSourceResourceBalloon','TrackChangesEditing','conversationInitialized','static','AI_BALLOON_HEADER_TITLE','34372296ELWEYD','setIsUploadInProgress','Disliked\x20response','setModel','resource','toViewRange','contextItem','createPositionFromPath','uploadProgressChanged','stopListening','filter','addFilesToContext','addSelectionToContext','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-context-unsupported-type','accepted','updateResourceState','ai.availableReplyActions','isPremiumPlugin','addContextOptionsChanged','315624kzTmMq','ai-chat-controller-mouse-over','updateCapabilities','replyContentUpdated','error','editors','Liked\x20response','getGroupId','ai-conversation-','content','redo','pluginName','_aiChatModels','_removeFromContext','replyId','like','findIndex','ai-chat-conversation-init-failed','stop','AI_CHAT_CONTEXT_FILE_TOO_LARGE','50AqFObq','rejectSuggestion','isUploadInProgress','toggleWebSearch','startAutoScroll','startInteraction','DocumentCompare','query','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','node','add','addOperation','ai-chat-source-resources-load-failed','handleUserInteraction','resourceId','removeSelectionFromContext','getDocumentContext','isOfficialPlugin','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','revert','locale','getReply','_stopLastInteraction','addSelectionToChatContext','sourceResourcesLoaded','model','addFeedItemStaticMessage','contextItems','getDiff','addFeedItemAIReply','resize','getContentParts','indexOf','clearPendingContextUI','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_setIsMaximized','updateFeedItemAIReplySources','open','forEach','setAddContextOptions','scrollFeedToSuggestion','5eojETa','mapper','_openBalloonFor','createRange','_balloonShowDiff','start','map','ai-chat-context-invalid-data','ai-chat-invalid-request','_batchToChanges','fetchConversation','source','context','ai-chat-context-unsupported-file-type','createPositionAt','main','isDocumentOperation','_applyOperationsAsSuggestions','dialogClosed','nextSibling','setIsMaximized','ai.chat.models.displayedModels','43629UlkHEo','domConverter','ai-chat-file-upload-failed','addResourceToContext','range','AI_CHAT_UNABLE_TO_START_CONVERSATION','setContextItemLoading','7AtcLEz','markers','AIChatUI','commands','addFileToContext','viewRangeToDom','_updateReplyContent','state','80crgjri','setConversationTitle','getAttribute','addFeedItemError','ai-no-track-changes','collaboration.channelId','sendUserMessage','outdated','removeMarker','new','end','isOpen','toggleReasoning','resetConversationTitle','getPath','handleRemovedConversation','editing','hideFakeVisualSelection','showChangeInText','ai-chat-conversation-start-failed','applySuggestion','_insertSuggestion','_startConversationSafely','_updateRatings','TrackChanges','selectedModel','setChangeGroupState','current-document','data-id'];_0x434b=function(){return _0x5a5eb6;};return _0x434b();}
|
|
23
|
+
const _0x292fdf=_0x5d74;(function(_0x3897f5,_0x4a54be){const _0x5c7488=_0x5d74,_0x233347=_0x3897f5();while(!![]){try{const _0x19829c=parseInt(_0x5c7488(0x10b))/0x1*(parseInt(_0x5c7488(0x128))/0x2)+-parseInt(_0x5c7488(0x175))/0x3*(-parseInt(_0x5c7488(0x121))/0x4)+-parseInt(_0x5c7488(0xb1))/0x5*(parseInt(_0x5c7488(0x188))/0x6)+-parseInt(_0x5c7488(0x12d))/0x7+parseInt(_0x5c7488(0x106))/0x8*(parseInt(_0x5c7488(0x165))/0x9)+-parseInt(_0x5c7488(0xeb))/0xa*(-parseInt(_0x5c7488(0xa4))/0xb)+parseInt(_0x5c7488(0x164))/0xc*(parseInt(_0x5c7488(0x134))/0xd);if(_0x19829c===_0x4a54be)break;else _0x233347['push'](_0x233347['shift']());}catch(_0x47688f){_0x233347['push'](_0x233347['shift']());}}}(_0x4807,0x4c44b));import{ContextPlugin as _0x3e3d89,Editor as _0x1067a3}from'ckeditor5/src/core.js';import{CKEditorError as _0x101c33,logError as _0x5365ce,scrollViewportToShowTarget as _0xa69f74,uid as _0x3de7ae}from'ckeditor5/src/utils.js';import{AIConnector as _0x14978f}from'../aicore/aiconnector.js';import{AITabs as _0x26b979}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2d1f1e}from'./model/aichatconversation.js';import{getTranslation as _0x11b60c}from'../aicore/utils/common-translations.js';function _0x4807(){const _0x20c8e1=['open','modification-delta','uploadProgressChanged','setAddContextOptions','focusPromptInput','AIChatUI','redo','mouseLeaveSuggestion','showNext','_getDocumentRangeForReplyChanges','load','addCurrentDocumentToContext','isDocumentOperation','sendMessage','getInteractionAndReplyById','addFilesToContext','applySuggestion','history','_aiChatModels','stopListening','isCurrentDocumentInContext','clearConversationContextUI','requires','AI_CHAT_GENERIC_ERROR','getPath','replyCreated','contextItems','addFeedInteractionHeader','1800zcvNyb','18693wdiaEU','parse','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','resize','index','isStarted','ai-no-track-changes','resources','rejectSuggestion','ai-chat-context-file-too-large','addResourceToContext','resetMessageInput','get','insertSuggestion','updateFeedItemAIReplySuggestionPartState','AI_CHAT_CONTEXT_FILE_TOO_LARGE','713010rSmNaE','undo','text-delta','toViewRange','activeConversation','ai-chat-controller-mouse-over','commands','delete','interactionId','ai-chat-context-form-data-size-limits-exceeded','clearPendingContextUI','selection','_handleStartConversation','_toggleReasoning','node','reasoningStarted','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','removeMarker','partIndex','42QLvNeP','sendUserMessage','indexOf','getConversation','DocumentCompare','getChildAtOffset','resizeTabs','startInteraction','addFeedItemUserMessage','ai-chat-conversation-start-failed','createPositionAt','replyChangeGroupStateUpdated','full','indexes','loadSourceResources','accepted','howMany','_createFromRanges','hasChanges','addFeedItemError','content','markers','handleRemovedConversation','change','ai.chat.context','ai-chat-context-unsupported-file-type','uiId','AI_CHAT_ABORTED_MESSAGE','ai-chat-context-file-too-many-pages','getRoot','updateCapabilities','ai-chat-invalid-request','startAutoScroll','startConversation','abortPromptStream','collaboration.channelId','contextSent','rootName','ai-chat-context-unsupported-type','sourceResourcesLoaded','updateCurrentDocumentInContext','getTransformedByOperation','stop','ai-request-aborted','AI_CHAT_INVALID_REQUEST','sources','setContextItemLoading','interactionDestroyed','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-missing-channel-id','_aiEditing','createConversation','init','applyOperation','getSelectionText','createPositionFromPath','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','isInContext','Undo','updateResourceState','AITabs','ai-chat-controller-no-active-conversation','disableControls','hideFakeVisualSelection','filter','getContentParts','AIEditing','current-document','handleUserInteraction','log','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getRanges','replies','updateFeedItemAIReplyContent','marker','contextItem','uid','fetchConversation','close','_scrollToSuggestionRange','toggleReasoning','toggleSuggestionDisplayMode','isLoading','addFeedItemAISuggestion','_updateReplyContent','setChangeGroupState','AIConnector','resetConversationTitle','populateSourceResourceBalloon','changes','removeFromContext','dialogClosed','afterInit','setConversationContext','getDocumentContext','contextItemAdded','_setIsMaximized','listenTo','_applyOperationsAsSuggestions','ai-conversation-','anchorId','Liked\x20response','ai-chat-file-upload-failed','set','getAttribute','$graveyard','removeSelectionFromContext','ai-chat-conversation-not-found','pluginName','static','view','cloneNode','baseVersion','_integrateEditor','resourceStateChanged','addOperation','_balloonShowDiff','main','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','rejected','sourcePosition','map','editors','getDocumentData','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','toggleWebSearch','finishInteraction','replyContentUpdated','_previewedChangeGroup','selectModel','domConverter','setLoadingMessage','children','removeContextItem','new','source','modelSelected','scrollFeedToSuggestion','_aiChatUi','736087TxQvlN','loadConversation','setFeedItemRenderingStrategy','streaming','like','_toggleWebSearch','documentContextContent','webSearchFinished','revert','_aiConnector','addUrlToContext','push','batch','385075ZICePZ','_insertSuggestion','reasoningFinished','closeSourceResourceBalloon','interactionCreated','unshift','selectedModel','from','resourceId','slice','mouseOverSuggestion','TrackChanges','root','getInteraction','isUploadInProgress','options','updateConversationTitle','pending','query','getOperations','remove','AI_BALLOON_HEADER_TITLE','isDisabled','capabilitiesUpdated','_applySuggestion','setIsMaximized','state','find','resource','getGroupId','data-id','sourceId','addFileToContext','Showing\x20conversation\x20history...','removed','showFakeVisualSelection','_startConversationSafely','addSelectionToContext','startsWith','getFirstRange','AI_CHAT_UNTITLED_CONVERSATION','addDocumentToContext','showDiff','interactionFinished','locale','_flushLastInteractionUI','setSelectedModel','_batchToChanges','getDiff','updateFeedItemAIReplySuggestionContent','showPrevious','Disliked\x20response','plugins','isOpen','setIsUploadInProgress','createRange','toggleLoadingSkeleton','conversationInitialized','20dlSwXb','chat','removeFeedInteraction','addSelectionToChatContext','toString','setModel','mapper','type','AI_CHAT_RESOURCE_LOAD_FAILED','updateFeedItemAIReplySources','alignToTop','_openBalloonFor','start','resizedTabs','_updateRatings','message','enableControls','config','activateTab','ai-chat-url-upload-failed','getChildren','_logError','AIChatController','maxOffset','messageId','contextItemRemoved','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','1864oDXmvF','findIndex','ai.chat.models.displayedModels','changeGroups','model','9FrIAGB','range','error','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','forEach','viewRangeToDom','end','contextItemLoadingEnded','_removeAISelectionMarkers','setConversationTitle','ai.availableReplyActions','document','_removeFromContext','getChild','addFeedItemStaticMessage','replyId','nextSibling','data','stopInteraction','isCurrentDocumentInConversation','addContextOptionsChanged','isOfficialPlugin','4CvAFDM','ai-chat-context-invalid-data','ready','editing','_handleUIUserMessage','length','path','39154pBjIgn','AI_CHAT_UNABLE_TO_START_CONVERSATION','isPremiumPlugin','TrackChangesEditing','getMarkersGroup','1468866oNkUJr','add','version','updateContent','ai-chat-resource-load-failed','upsertAIChatRating','interactionStarted','2574QgReXa','_showConversationHistory','showChangeInText','addFeedItemAIReply','lastInteraction','removeSelectionFromChatContext','ai.chat.models.defaultModelId','context','webSearchStarted','ai-chat-conversation-init-failed','ai-chat-source-resources-load-failed','outdated','getReply','isModelAvailable','dislike','has','_stopLastInteraction','split','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addContextItem'];_0x4807=function(){return _0x20c8e1;};return _0x4807();}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x17a7aa}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x563e79}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x557d0d}from'./model/aichatmodels.js';function _0x5d74(_0xd57a28,_0x256cbd){const _0x480759=_0x4807();return _0x5d74=function(_0x5d74f2,_0x218d7b){_0x5d74f2=_0x5d74f2-0x8b;let _0x5b2d01=_0x480759[_0x5d74f2];return _0x5b2d01;},_0x5d74(_0xd57a28,_0x256cbd);}import{getEditorFromContext as _0x226eec}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x457681,DATA_ID_MODEL_ATTRIBUTE as _0x2d7496}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x31c633,getOperationsFromReply as _0x52c944}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x501679,getMinimalSelection as _0x4a29af}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x321a8d,_DetachOperation as _0x58b918}from'ckeditor5/src/engine.js';import{findOne as _0x1dac0c,getAttribute as _0x27afbd,serialize as _0x3e1bd3,Document as _0x5e6d9b,findByAttribute as _0x225c72}from'../aicore/utils/htmlparser.js';import{IconAI as _0x1e590e}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0xee1d9e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x41286c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3e3d89{[_0x292fdf(0x1ba)];[_0x292fdf(0xad)];[_0x292fdf(0xa3)];[_0x292fdf(0x15a)];[_0x292fdf(0xe0)]=new Map();[_0x292fdf(0x99)]=null;[_0x292fdf(0x8d)]=!0x1;static get[_0x292fdf(0x15e)](){return[_0x14978f,_0x41286c,_0x457681];}static get[_0x292fdf(0x1f4)](){const _0xab3d0e=_0x292fdf;return _0xab3d0e(0x101);}static get[_0x292fdf(0x120)](){return!0x0;}static get[_0x292fdf(0x12a)](){return!0x0;}[_0x292fdf(0x1bc)](){const _0x3348a2=_0x292fdf;this[_0x3348a2(0xad)]=this[_0x3348a2(0x13b)][_0x3348a2(0xe5)][_0x3348a2(0x171)](_0x3348a2(0x1de)),this[_0x3348a2(0xa3)]=this[_0x3348a2(0x13b)][_0x3348a2(0xe5)][_0x3348a2(0x171)](_0x3348a2(0x14d)),this[_0x3348a2(0x1ba)]=this[_0x3348a2(0x13b)][_0x3348a2(0xe5)][_0x3348a2(0x171)](_0x3348a2(0x1ca)),this[_0x3348a2(0x15a)]=new _0x557d0d({'connector':this[_0x3348a2(0xad)],'availableModels':this[_0x3348a2(0x13b)][_0x3348a2(0xfc)][_0x3348a2(0x171)](_0x3348a2(0x108)),'defaultModelId':this[_0x3348a2(0x13b)][_0x3348a2(0xfc)][_0x3348a2(0x171)](_0x3348a2(0x13a))});const _0x2aacec=this[_0x3348a2(0x13b)][_0x3348a2(0xe5)][_0x3348a2(0x171)](_0x3348a2(0x1c4));this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x1a9),()=>{const _0x387fe3=_0x3348a2;this[_0x387fe3(0xd5)]();}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x189),(_0x43920e,_0x241e8f)=>{const _0x32ff18=_0x3348a2;this[_0x32ff18(0x125)]({'userMessage':_0x241e8f});}),this[_0x3348a2(0x1e9)](_0x2aacec,_0x3348a2(0xf8),(_0x20bf57,_0x16eadf)=>{const _0xb3ab23=_0x3348a2;this[_0xb3ab23(0x1e8)](_0x16eadf);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x18e),()=>{const _0x4264a5=_0x3348a2;_0x2aacec[_0x4264a5(0x168)]();}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x1aa),async()=>{const _0x4527b5=_0x3348a2;await this[_0x4527b5(0x144)](),await this[_0x4527b5(0xde)](),this[_0x4527b5(0x139)]();}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0xda),()=>{const _0x4b264f=_0x3348a2;this[_0x4b264f(0x179)]?.[_0x4b264f(0x153)](_0x11b60c(this[_0x4b264f(0x13b)][_0x4b264f(0xdd)],_0x4b264f(0x167)));}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0xd1),(_0x256880,_0x36e582)=>{const _0x10e84d=_0x3348a2;this[_0x10e84d(0x179)]?.[_0x10e84d(0x157)](Array[_0x10e84d(0xb8)](_0x36e582));}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0xae),(_0x265f93,_0x3c523e)=>{const _0x328863=_0x3348a2;this[_0x328863(0x179)]?.[_0x328863(0xae)](_0x3c523e);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x16f),(_0x1f08f7,_0x5e9a29)=>{const _0x1499b1=_0x3348a2;this[_0x1499b1(0x179)]?.[_0x1499b1(0x16f)](_0x5e9a29[_0x1499b1(0xa0)],_0x5e9a29[_0x1499b1(0xcd)]);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x9e),(_0x212407,_0x18b7ab)=>{const _0x3dc122=_0x3348a2;this[_0x3dc122(0x117)](_0x18b7ab);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x196),(_0x3d0362,_0x1c29c4)=>{const _0xcc1726=_0x3348a2;this[_0xcc1726(0x179)]?.[_0xcc1726(0x196)](_0x1c29c4[_0xcc1726(0xd0)],_0x1c29c4[_0xcc1726(0xc3)],_0x1c29c4[_0xcc1726(0x1d4)]);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x96),()=>{const _0x5e93ff=_0x3348a2;this[_0x5e93ff(0xa9)]();}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x1d8),()=>{const _0x170111=_0x3348a2;this[_0x170111(0x182)]();}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x9a),(_0x453a1b,_0x5b3b19)=>{const _0x1bc0d7=_0x3348a2;this[_0x1bc0d7(0x179)]?.[_0x1bc0d7(0xf0)](_0x5b3b19);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0xa8),(_0x20a8e6,{replyId:_0xc08173})=>{const _0x521f58=_0x3348a2;console[_0x521f58(0x1cd)](_0x521f58(0x1ed),_0xc08173);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x142),(_0x3b5fc4,{replyId:_0x1c032d})=>{const _0x128058=_0x3348a2;console[_0x128058(0x1cd)](_0x128058(0xe4),_0x1c032d);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x172),(_0x8c12c7,_0x1c3013)=>{const _0xb8da62=_0x3348a2;this[_0xb8da62(0x13b)][_0xb8da62(0xe5)][_0xb8da62(0x171)](_0x41286c)[_0xb8da62(0x1d6)](),this[_0xb8da62(0xb2)](_0x1c3013);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x136),(_0x2feaa5,{replyId:_0x9fe79e,partIndex:_0xaa10c7})=>{const _0x109e6c=_0x3348a2;this[_0x109e6c(0x8d)]=this[_0x109e6c(0xa3)][_0x109e6c(0xdb)],this[_0x109e6c(0xf6)](_0x9fe79e,_0xaa10c7);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0xbb),(_0x4443af,{replyId:_0x186ffc,partIndex:_0x38e71b})=>{const _0x28d950=_0x3348a2,_0x28d559=this[_0x28d950(0x151)](_0x186ffc,_0x38e71b);_0x28d559&&_0x28d950(0x1f1)!=_0x28d559[_0x28d950(0x10c)][_0x28d950(0xbd)][_0x28d950(0x1ad)]&&this[_0x28d950(0x1ba)][_0x28d950(0xd4)]([_0x28d559[_0x28d950(0x10c)]],_0x28d950(0x17a));}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x14f),()=>{const _0x539918=_0x3348a2;this[_0x539918(0x1ba)][_0x539918(0x1c7)](_0x539918(0x17a));}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x158),(_0x623fd2,_0xc21516)=>{const _0x3d2873=_0x3348a2;this[_0x3d2873(0x13b)][_0x3d2873(0xe5)][_0x3d2873(0x171)](_0x41286c)[_0x3d2873(0x1d6)](),this[_0x3d2873(0xc9)](_0xc21516);}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x1d9),async(_0x2bbf9c,{replyId:_0x31786f,showDiff:_0x315882})=>{const _0x2efe05=_0x3348a2,{reply:_0x278ef9}=this[_0x2efe05(0x156)](_0x31786f),_0x2b9f59=_0x278ef9[_0x2efe05(0x1c9)]({'showDiff':_0x315882});await this[_0x2efe05(0xa3)][_0x2efe05(0xe2)]({'id':_0x278ef9['id'],'parts':_0x2b9f59,'renderingStrategy':_0x2efe05(0x1f5)});}),this[_0x3348a2(0x1e9)](this[_0x3348a2(0xa3)],_0x3348a2(0x16d),(_0x37117c,{replyId:_0x32c173,partIndex:_0x37fca6})=>{const _0x40f2c6=_0x3348a2;this[_0x40f2c6(0x99)]?.[_0x40f2c6(0x11a)]==_0x32c173&&this[_0x40f2c6(0x99)]?.[_0x40f2c6(0x187)]==_0x37fca6&&this[_0x40f2c6(0x13b)][_0x40f2c6(0xe5)][_0x40f2c6(0x171)](_0x41286c)[_0x40f2c6(0x1d6)]();const {reply:_0x992909}=this[_0x40f2c6(0x156)](_0x32c173);_0x992909[_0x40f2c6(0x1dd)](_0x37fca6,_0x40f2c6(0x90)),this[_0x40f2c6(0x1ba)][_0x40f2c6(0x1c7)](_0x40f2c6(0x17a));});}async[_0x292fdf(0x1e4)](){const _0x1fd414=_0x292fdf;this[_0x1fd414(0x13b)]instanceof _0x1067a3?this[_0x1fd414(0x1f9)](this[_0x1fd414(0x13b)]):this[_0x1fd414(0x1e9)](this[_0x1fd414(0x13b)][_0x1fd414(0x93)],_0x1fd414(0x12e),(_0x30d52d,_0x441a5e)=>{const _0x4b0dcc=_0x1fd414;_0x441a5e['on'](_0x4b0dcc(0x123),()=>{const _0x5d1382=_0x4b0dcc;this[_0x5d1382(0x1f9)](_0x441a5e);});}),await this[_0x1fd414(0xd5)]();}[_0x292fdf(0xb2)](_0x474e5e){const _0x51fe88=_0x292fdf,_0x127ff3=_0x226eec(this[_0x51fe88(0x13b)]);if(!_0x127ff3[_0x51fe88(0xe5)][_0x51fe88(0x143)](_0x51fe88(0xbc)))throw new _0x101c33(_0x51fe88(0x16b),null);const _0x36ec01=this[_0x51fe88(0x13b)][_0x51fe88(0xe5)][_0x51fe88(0x171)](_0x51fe88(0x18c)),{reply:_0x1764f6,interaction:_0x1b5143}=this[_0x51fe88(0x156)](_0x474e5e[_0x51fe88(0x11a)]),_0x476c7c=this[_0x51fe88(0x151)](_0x474e5e[_0x51fe88(0x11a)],_0x474e5e[_0x51fe88(0x187)]),_0x433759=void 0x0!==_0x474e5e[_0x51fe88(0x187)]?[_0x1764f6[_0x51fe88(0x109)][_0x474e5e[_0x51fe88(0x187)]]]:_0x1764f6[_0x51fe88(0x109)][_0x51fe88(0x1c8)](_0x19e9b7=>_0x51fe88(0xc2)==_0x19e9b7[_0x51fe88(0xcb)]),_0x2784be=_0x433759[_0x51fe88(0x92)](_0x37912c=>_0x1764f6[_0x51fe88(0x109)][_0x51fe88(0x18a)](_0x37912c));if(!_0x476c7c||_0x51fe88(0x1f1)==_0x476c7c[_0x51fe88(0x10c)][_0x51fe88(0xbd)][_0x51fe88(0x1ad)])return void _0x2784be[_0x51fe88(0x10f)](_0x5ad786=>_0x1764f6[_0x51fe88(0x1dd)](_0x5ad786,_0x51fe88(0x13f)));_0x2784be[_0x51fe88(0x10f)](_0x5ba04a=>_0x1764f6[_0x51fe88(0x1dd)](_0x5ba04a,_0x51fe88(0x197)));const _0x45ba35=_0x52c944({'editor':_0x127ff3,'reply':_0x1764f6,'interaction':_0x1b5143,'groups':_0x433759,'transform':!0x0,'documentCompare':_0x36ec01,'documentCompareOptions':{'anchor':_0x51fe88(0x8e),'markDeletions':!0x0}});let _0x5d8640;_0x476c7c&&this[_0x51fe88(0x1d7)](_0x476c7c[_0x51fe88(0x10c)]),_0x127ff3[_0x51fe88(0x10a)][_0x51fe88(0x19f)](_0x22b5fe=>{const _0x2c93a1=_0x51fe88;_0x5d8640=_0x22b5fe[_0x2c93a1(0xb0)],_0x127ff3[_0x2c93a1(0xe5)][_0x2c93a1(0x171)](_0x2c93a1(0x12b))[_0x2c93a1(0x1ea)](_0x45ba35),this[_0x2c93a1(0x1ba)][_0x2c93a1(0x1c7)](_0x2c93a1(0x17a));}),this[_0x51fe88(0xe0)][_0x51fe88(0x1ef)](_0x5d8640,{'interactionId':_0x1b5143['id'],'replyId':_0x1764f6['id'],'indexes':_0x2784be[_0x51fe88(0xba)]()}),this[_0x51fe88(0xf9)](_0x1764f6);}[_0x292fdf(0xc9)](_0x3c19cf){const _0x1417ed=_0x292fdf,_0x5871cf=_0x226eec(this[_0x1417ed(0x13b)]),_0x70310=this[_0x1417ed(0x13b)][_0x1417ed(0xe5)][_0x1417ed(0x171)](_0x457681),{reply:_0x59a0d9,interaction:_0x1ea780}=this[_0x1417ed(0x156)](_0x3c19cf[_0x1417ed(0x11a)]),_0x2bbe8e=this[_0x1417ed(0x151)](_0x3c19cf[_0x1417ed(0x11a)],_0x3c19cf[_0x1417ed(0x187)]),_0x3f18b6=void 0x0!==_0x3c19cf[_0x1417ed(0x187)]?[_0x59a0d9[_0x1417ed(0x109)][_0x3c19cf[_0x1417ed(0x187)]]]:_0x59a0d9[_0x1417ed(0x109)][_0x1417ed(0x1c8)](_0x46967a=>_0x1417ed(0xc2)==_0x46967a[_0x1417ed(0xcb)]),_0x34a5ac=_0x3f18b6[_0x1417ed(0x92)](_0x1d6281=>_0x59a0d9[_0x1417ed(0x109)][_0x1417ed(0x18a)](_0x1d6281));if(!_0x2bbe8e||_0x1417ed(0x1f1)==_0x2bbe8e[_0x1417ed(0x10c)][_0x1417ed(0xbd)][_0x1417ed(0x1ad)])return void _0x34a5ac[_0x1417ed(0x10f)](_0x2432b4=>_0x59a0d9[_0x1417ed(0x1dd)](_0x2432b4,_0x1417ed(0x13f)));_0x34a5ac[_0x1417ed(0x10f)](_0x3f6601=>_0x59a0d9[_0x1417ed(0x1dd)](_0x3f6601,_0x1417ed(0x197)));const _0x122f0a=_0x52c944({'editor':_0x5871cf,'reply':_0x59a0d9,'interaction':_0x1ea780,'groups':_0x3f18b6,'transform':!0x0,'documentCompare':_0x70310,'documentCompareOptions':{'anchor':_0x1417ed(0x8e),'markDeletions':!0x1}});let _0x25cad4;_0x2bbe8e&&this[_0x1417ed(0x1d7)](_0x2bbe8e[_0x1417ed(0x10c)]),_0x5871cf[_0x1417ed(0x10a)][_0x1417ed(0x19f)](_0x37b665=>{const _0x1cbe89=_0x1417ed;_0x25cad4=_0x37b665[_0x1cbe89(0xb0)];for(const _0x47ba9b of _0x122f0a)_0x47ba9b[_0x1cbe89(0x1f8)]=_0x5871cf[_0x1cbe89(0x10a)][_0x1cbe89(0x116)][_0x1cbe89(0x12f)],_0x31c633(_0x5871cf,_0x47ba9b),_0x37b665[_0x1cbe89(0xb0)][_0x1cbe89(0x8c)](_0x47ba9b),_0x5871cf[_0x1cbe89(0x10a)][_0x1cbe89(0x1bd)](_0x47ba9b);}),this[_0x1417ed(0xe0)][_0x1417ed(0x1ef)](_0x25cad4,{'interactionId':_0x1ea780['id'],'replyId':_0x59a0d9['id'],'indexes':_0x34a5ac[_0x1417ed(0xba)]()}),this[_0x1417ed(0xf9)](_0x59a0d9);}[_0x292fdf(0xf6)](_0x454a68,_0x3b5c78){const _0x3ed172=_0x292fdf,_0x3b0f52=_0x226eec(this[_0x3ed172(0x13b)]),_0x7ec3bf=this[_0x3ed172(0x151)](_0x454a68,_0x3b5c78),_0x8cc9ec=this[_0x3ed172(0x13b)][_0x3ed172(0xe5)][_0x3ed172(0x171)](_0x41286c);if(!_0x7ec3bf)return void _0x8cc9ec[_0x3ed172(0x1d6)]();const {range:_0x5014bc,currentIndex:_0x7420f9}=_0x7ec3bf;if(_0x3ed172(0x1f1)==_0x5014bc[_0x3ed172(0xbd)][_0x3ed172(0x1ad)]){const {reply:_0x4e2f3d}=this[_0x3ed172(0x156)](_0x454a68);return _0x4e2f3d[_0x3ed172(0x1dd)](_0x7420f9,_0x3ed172(0x13f)),void _0x8cc9ec[_0x3ed172(0x1d6)]();}if(this[_0x3ed172(0x99)]?.[_0x3ed172(0x11a)]==_0x454a68&&this[_0x3ed172(0x99)]?.[_0x3ed172(0x187)]==_0x7420f9)return;this[_0x3ed172(0x15b)](_0x8cc9ec),this[_0x3ed172(0x99)]={'replyId':_0x454a68,'partIndex':_0x7420f9};let _0x16068b=_0x3b0f52[_0x3ed172(0xfc)][_0x3ed172(0x171)](_0x3ed172(0x115))||[..._0x563e79];_0x3b0f52[_0x3ed172(0xe5)][_0x3ed172(0x143)](_0x3ed172(0xbc))||(_0x16068b=_0x16068b[_0x3ed172(0x1c8)](_0x483f96=>_0x3ed172(0x172)!=_0x483f96));const _0x4d415c=new _0xee1d9e(_0x3b0f52[_0x3ed172(0xdd)],{'showDiff':this[_0x3ed172(0x8d)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x3ed172(0x194)},'hideHeader':!0x0,'availableActions':_0x16068b});this[_0x3ed172(0x15b)](_0x4d415c);const {reply:_0x334b9d}=this[_0x3ed172(0x156)](_0x454a68),_0x5878d9=_0x334b9d[_0x3ed172(0x1c9)]({'showDiff':this[_0x3ed172(0x8d)]})[_0x3ed172(0x1c8)](_0x19b64f=>_0x19b64f[_0x3ed172(0x19a)]),_0x4eee8b=_0x5878d9[_0x3ed172(0x107)](_0x471616=>_0x471616[_0x3ed172(0x169)]==_0x7420f9);if(-0x1==_0x4eee8b)return;const _0x36dc66=_0x5878d9[_0x4eee8b],_0xe3eabc=_0x5878d9['at']((_0x4eee8b-0x1)%_0x5878d9[_0x3ed172(0x126)])?.[_0x3ed172(0x169)],_0x9bf8a9=_0x5878d9['at']((_0x4eee8b+0x1)%_0x5878d9[_0x3ed172(0x126)])?.[_0x3ed172(0x169)];_0x4d415c[_0x3ed172(0x130)]({'parts':[_0x36dc66],'renderingStrategy':_0x3ed172(0x1f5)});const _0x5518ad=_0x7420f9!==_0xe3eabc;this[_0x3ed172(0x1d7)](_0x5014bc,!0x0),_0x8cc9ec[_0x3ed172(0x148)]({'index':_0x7420f9,'title':_0x11b60c(this[_0x3ed172(0x13b)][_0x3ed172(0xdd)],_0x3ed172(0xc6),(_0x4eee8b+0x1)[_0x3ed172(0xef)]()),'icon':_0x1e590e,'mainView':_0x4d415c,'showRotator':_0x5518ad,'showApplyButton':!0x0,'showSuggestButton':_0x3b0f52[_0x3ed172(0xe5)][_0x3ed172(0x143)](_0x3ed172(0xbc)),'ranges':[_0x5014bc]}),this[_0x3ed172(0xa3)][_0x3ed172(0xa2)](_0x454a68,_0x7420f9),this[_0x3ed172(0x1e9)](_0x4d415c,_0x3ed172(0x1d9),(_0x53858d,{showDiff:_0x8b14fe})=>{const _0x3b64b3=_0x3ed172;this[_0x3b64b3(0x8d)]=_0x8b14fe;const {reply:_0x242375}=this[_0x3b64b3(0x156)](_0x454a68),_0x360c50=_0x242375[_0x3b64b3(0x1c9)]({'showDiff':_0x8b14fe,'groupIndex':_0x7420f9});_0x4d415c[_0x3b64b3(0x130)]({'parts':_0x360c50,'renderingStrategy':_0x3b64b3(0x1f5)});}),this[_0x3ed172(0x1e9)](_0x8cc9ec,_0x3ed172(0x158),()=>{const _0x14d2f9=_0x3ed172;this[_0x14d2f9(0xc9)]({'replyId':_0x454a68,'partIndex':_0x7420f9}),_0x5518ad?this[_0x14d2f9(0xf6)](_0x454a68,_0x9bf8a9):_0x8cc9ec[_0x14d2f9(0x1d6)]();}),this[_0x3ed172(0x1e9)](_0x8cc9ec,_0x3ed172(0x172),()=>{const _0x4f961f=_0x3ed172;this[_0x4f961f(0xb2)]({'replyId':_0x454a68,'partIndex':_0x7420f9}),_0x5518ad?this[_0x4f961f(0xf6)](_0x454a68,_0x9bf8a9):_0x8cc9ec[_0x4f961f(0x1d6)]();}),_0x5518ad&&(this[_0x3ed172(0x1e9)](_0x8cc9ec,_0x3ed172(0x150),()=>{const _0x5a0f6b=_0x3ed172;this[_0x5a0f6b(0xf6)](_0x454a68,_0x9bf8a9);}),this[_0x3ed172(0x1e9)](_0x8cc9ec,_0x3ed172(0xe3),()=>{const _0x23ecfa=_0x3ed172;this[_0x23ecfa(0xf6)](_0x454a68,_0xe3eabc);})),this[_0x3ed172(0x1e9)](_0x8cc9ec,_0x3ed172(0x1e3),()=>{const _0x2412cf=_0x3ed172;this[_0x2412cf(0x15b)](_0x8cc9ec),this[_0x2412cf(0x15b)](_0x4d415c),this[_0x2412cf(0x99)]=null;});}[_0x292fdf(0x151)](_0x4a0e38,_0x2f16e8){const _0x307b09=_0x292fdf,_0x30ea61=_0x226eec(this[_0x307b09(0x13b)]),{reply:_0x3b5525,interaction:_0xf821a5}=this[_0x307b09(0x156)](_0x4a0e38),_0x186360=_0x3b5525[_0x307b09(0x109)][_0x307b09(0x1c8)](_0x2f2b74=>_0x307b09(0xc2)==_0x2f2b74[_0x307b09(0xcb)]),_0x358bc5=_0x186360[_0x307b09(0x92)](_0x59f74c=>_0x3b5525[_0x307b09(0x109)][_0x307b09(0x18a)](_0x59f74c));void 0x0===_0x2f16e8&&(_0x2f16e8=_0x358bc5[0x0]);const _0x5e12c6=_0x358bc5[_0x307b09(0x18a)](_0x2f16e8);if(-0x1==_0x5e12c6)return null;const _0x577b30=_0x186360[_0x5e12c6],_0xe56812=new _0x5e6d9b([]),_0x1406cc=new _0x5e6d9b([]);for(const _0xdd8095 of _0x577b30[_0x307b09(0x1e1)])if(_0x307b09(0xd3)!=_0xdd8095[_0x307b09(0xf2)]&&_0x1406cc[_0x307b09(0x9d)][_0x307b09(0xaf)](_0xdd8095[_0x307b09(0x183)][_0x307b09(0x1f7)](!0x0)),_0x307b09(0x9f)!=_0xdd8095[_0x307b09(0xf2)]){const _0x4450bb=_0x1dac0c(_0x18ba29=>_0x27afbd(_0x18ba29,_0x307b09(0xcf))==_0xdd8095['id'],_0x3b5525[_0x307b09(0xaa)],!0x0);_0xe56812[_0x307b09(0x9d)][_0x307b09(0xaf)](_0x4450bb[_0x307b09(0x1f7)](!0x0));}if(0x0==_0xe56812[_0x307b09(0x9d)][_0x307b09(0x126)]){if(_0x577b30[_0x307b09(0x1e1)][0x0][_0x307b09(0x1ec)]){const _0xb80e3d=_0x225c72(_0x307b09(0xcf),_0x577b30[_0x307b09(0x1e1)][0x0][_0x307b09(0x1ec)],_0x3b5525[_0x307b09(0xaa)]);_0xe56812[_0x307b09(0x9d)][_0x307b09(0xb6)](_0xb80e3d[_0x307b09(0x1f7)](!0x0)),_0x1406cc[_0x307b09(0x9d)][_0x307b09(0xb6)](_0xb80e3d[_0x307b09(0x1f7)](!0x0)),_0xb80e3d[_0x307b09(0x11b)]&&(_0xe56812[_0x307b09(0x9d)][_0x307b09(0xaf)](_0xb80e3d[_0x307b09(0x11b)][_0x307b09(0x1f7)](!0x0)),_0x1406cc[_0x307b09(0x9d)][_0x307b09(0xaf)](_0xb80e3d[_0x307b09(0x11b)][_0x307b09(0x1f7)](!0x0)));}else{const _0x44ba0d=_0x3b5525[_0x307b09(0xaa)][_0x307b09(0x9d)][0x0];if(!_0x44ba0d)return null;_0xe56812[_0x307b09(0x9d)][_0x307b09(0xaf)](_0x44ba0d[_0x307b09(0x1f7)](!0x0)),_0x1406cc[_0x307b09(0x9d)][_0x307b09(0xaf)](_0x44ba0d[_0x307b09(0x1f7)](!0x0));}}const _0x4eca5a=_0xf821a5[_0x307b09(0x1e6)](),_0x2804e9=_0x30ea61[_0x307b09(0x11c)][_0x307b09(0x166)](_0x4eca5a[_0x307b09(0x19c)]),_0x296936=_0x3e1bd3(_0xe56812),_0x3496df=_0x30ea61[_0x307b09(0x11c)][_0x307b09(0x166)](_0x296936),_0x3fed1d=_0x30ea61[_0x307b09(0x11c)][_0x307b09(0x166)](_0x296936),_0xf45d20=_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x192)](_0x3496df,0x0),_0x34970f=_0x3e1bd3(_0x1406cc),_0x5db072={'anchor':_0xf45d20,'markDeletions':!0x1},_0xaac568=_0x30ea61[_0x307b09(0xe5)][_0x307b09(0x171)](_0x457681)[_0x307b09(0xe1)](_0x296936,_0x34970f,_0x5db072)[_0x307b09(0xc4)]();if(!_0xaac568[_0x307b09(0x126)])return null;_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x19f)](_0xaacc04=>{const _0x16e9a3=_0x307b09;for(const _0x2e4458 of _0xaac568)if(_0x16e9a3(0xc5)==_0x2e4458[_0x16e9a3(0xf2)]){const _0x13e8ea=_0x2e4458[_0x16e9a3(0x91)],_0x1df691=_0x2e4458[_0x16e9a3(0x198)],_0x366b27=new _0x58b918(_0x13e8ea,_0x1df691);_0xaacc04[_0x16e9a3(0xb0)][_0x16e9a3(0x8c)](_0x366b27),_0x30ea61[_0x16e9a3(0x10a)][_0x16e9a3(0x1bd)](_0x366b27);}else _0x16e9a3(0x1d2)!==_0x2e4458[_0x16e9a3(0xf2)]&&(_0x2e4458[_0x16e9a3(0x1f8)]=null,_0x2e4458[_0x16e9a3(0x154)]=!0x1,_0xaacc04[_0x16e9a3(0xb0)][_0x16e9a3(0x8c)](_0x2e4458),_0x30ea61[_0x16e9a3(0x10a)][_0x16e9a3(0x1bd)](_0x2e4458));});const _0x3dd63f=_0x4a29af(_0x30ea61,_0xaac568,_0x3496df);_0x501679(_0x30ea61[_0x307b09(0x10a)],_0x3dd63f);const _0x5dc9ee=_0x3dd63f[_0x307b09(0xd8)]()[_0x307b09(0xf7)][_0x307b09(0x127)][_0x307b09(0xba)](),_0x587ba1=_0x3dd63f[_0x307b09(0xd8)]()[_0x307b09(0x111)][_0x307b09(0x127)][_0x307b09(0xba)](),_0x1db74d=[];let _0x195673=_0x3496df,_0x5999f1=_0x3fed1d;for(let _0x33daa3=0x0;_0x33daa3<_0x587ba1[_0x307b09(0x126)];_0x33daa3++){const _0x5efeb0=_0x195673[_0x307b09(0x102)]-_0x587ba1[_0x33daa3];_0x1db74d[_0x33daa3]=_0x5999f1[_0x307b09(0x102)]-_0x5efeb0,_0x195673=_0x195673[_0x307b09(0x18d)](_0x587ba1[_0x33daa3]),_0x5999f1=_0x5999f1[_0x307b09(0x18d)](_0x1db74d[_0x33daa3]);}const _0x1bd9a6=_0x30ea61[_0x307b09(0x10a)][_0x307b09(0xe8)](_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x1bf)](_0x3fed1d,_0x5dc9ee),_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x1bf)](_0x3fed1d,_0x1db74d)),_0x4e56e0=_0x3fed1d[_0x307b09(0x118)](0x0)[_0x307b09(0x1f0)](_0x2d7496),_0x56671c=Array[_0x307b09(0xb8)](_0x2804e9[_0x307b09(0xff)]())[_0x307b09(0xcc)](_0x4dabc6=>_0x4dabc6[_0x307b09(0x1f0)](_0x2d7496)==_0x4e56e0)[_0x307b09(0x160)](),_0x16b0bc=_0x1bd9a6[_0x307b09(0xf7)][_0x307b09(0x127)][_0x307b09(0xba)](),_0x5daea6=_0x1bd9a6[_0x307b09(0x111)][_0x307b09(0x127)][_0x307b09(0xba)]();_0x16b0bc[0x0]=_0x56671c[0x0]+_0x16b0bc[0x0],_0x5daea6[0x0]=_0x56671c[0x0]+_0x5daea6[0x0];let _0x1d3028=_0x30ea61[_0x307b09(0x10a)][_0x307b09(0xe8)](_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x1bf)](_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x116)][_0x307b09(0x1a5)](),_0x16b0bc),_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x1bf)](_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x116)][_0x307b09(0x1a5)](),_0x5daea6));const _0xb77601=_0x30ea61[_0x307b09(0x10a)][_0x307b09(0x116)][_0x307b09(0x159)][_0x307b09(0xc4)](_0x4eca5a[_0x307b09(0x12f)]);for(const _0x5cd072 of _0xb77601)_0x1d3028=_0x321a8d[_0x307b09(0x199)](_0x1d3028[_0x307b09(0x1b1)](_0x5cd072));return{'range':_0x1d3028,'currentIndex':_0x2f16e8};}[_0x292fdf(0x1f9)](_0x55db9e){const _0x4fd9c2=_0x292fdf;if(!_0x55db9e[_0x4fd9c2(0xe5)][_0x4fd9c2(0x143)](_0x4fd9c2(0x1c2)))return;const _0x59a99b=_0x55db9e[_0x4fd9c2(0x17b)][_0x4fd9c2(0x171)](_0x4fd9c2(0x176)),_0x5ded78=_0x55db9e[_0x4fd9c2(0x17b)][_0x4fd9c2(0x171)](_0x4fd9c2(0x14e));this[_0x4fd9c2(0x1e9)](_0x59a99b,_0x4fd9c2(0xac),(_0x220a6e,_0x22799b,_0x2868e5)=>{const _0x5db924=_0x4fd9c2,_0x3ace71=this[_0x5db924(0xe0)][_0x5db924(0x171)](_0x22799b);if(!_0x3ace71)return;const _0x535c9e=this[_0x5db924(0x179)][_0x5db924(0xbe)](_0x3ace71[_0x5db924(0x17d)])[_0x5db924(0x140)](_0x3ace71[_0x5db924(0x11a)]);_0x3ace71[_0x5db924(0x195)][_0x5db924(0x10f)](_0x3f37e8=>_0x535c9e[_0x5db924(0x1dd)](_0x3f37e8,_0x5db924(0xc2))),this[_0x5db924(0xe0)][_0x5db924(0x17c)](_0x22799b),this[_0x5db924(0xe0)][_0x5db924(0x1ef)](_0x2868e5,_0x3ace71);}),this[_0x4fd9c2(0x1e9)](_0x5ded78,_0x4fd9c2(0xac),(_0x288e57,_0x16151f,_0x20e7ff)=>{const _0x5a4a34=_0x4fd9c2,_0x13a968=this[_0x5a4a34(0xe0)][_0x5a4a34(0x171)](_0x16151f);if(!_0x13a968)return;const _0x15a047=this[_0x5a4a34(0x179)][_0x5a4a34(0xbe)](_0x13a968[_0x5a4a34(0x17d)])[_0x5a4a34(0x140)](_0x13a968[_0x5a4a34(0x11a)]);_0x13a968[_0x5a4a34(0x195)][_0x5a4a34(0x10f)](_0x535d9c=>_0x15a047[_0x5a4a34(0x1dd)](_0x535d9c,_0x5a4a34(0x197))),this[_0x5a4a34(0xe0)][_0x5a4a34(0x17c)](_0x16151f),this[_0x5a4a34(0xe0)][_0x5a4a34(0x1ef)](_0x20e7ff,_0x13a968);});}async[_0x292fdf(0xa5)](_0x3ecd1f){const _0xca517e=_0x292fdf;this[_0xca517e(0x13b)][_0xca517e(0xe5)][_0xca517e(0x171)](_0x41286c)[_0xca517e(0x1d6)](),this[_0xca517e(0xa3)][_0xca517e(0xa6)](_0xca517e(0x1f5)),this[_0xca517e(0xa3)][_0xca517e(0xe9)](!0x0),await this[_0xca517e(0x144)]();try{await this[_0xca517e(0xad)][_0xca517e(0x1d5)](_0x3ecd1f)[_0xca517e(0x18b)](),await this[_0xca517e(0xd5)](_0x3ecd1f),this[_0xca517e(0xc1)]('\x20');const {sessionId:_0x3d3507}=this[_0xca517e(0x1ba)][_0xca517e(0x94)]();await this[_0xca517e(0x179)][_0xca517e(0x152)](_0x3ecd1f,_0x3d3507),this[_0xca517e(0x179)][_0xca517e(0x11e)]()&&this[_0xca517e(0x179)][_0xca517e(0x153)](_0x11b60c(this[_0xca517e(0x13b)][_0xca517e(0xdd)],_0xca517e(0x167)));}catch(_0x5181bf){this[_0xca517e(0xa3)][_0xca517e(0x19b)]({'errorMessage':_0x11b60c(this[_0xca517e(0x13b)][_0xca517e(0xdd)],_0xca517e(0x10e)),'id':_0x3ecd1f}),this[_0xca517e(0x100)](new _0x101c33(_0xca517e(0x1f3),this,{'error':_0x5181bf}));}finally{this[_0xca517e(0x13b)][_0xca517e(0xe5)][_0xca517e(0x171)](_0x26b979)[_0xca517e(0x1f6)][_0xca517e(0xfd)](_0xca517e(0xec)),this[_0xca517e(0xa3)][_0xca517e(0x1a8)](),this[_0xca517e(0xa3)][_0xca517e(0xa6)](_0xca517e(0xa7)),this[_0xca517e(0xa3)][_0xca517e(0xe9)](!0x1);}}[_0x292fdf(0x19e)](_0x4d71b7){const _0x19f7fb=_0x292fdf;this[_0x19f7fb(0x179)]['id']===_0x4d71b7&&this[_0x19f7fb(0xd5)]();}async[_0x292fdf(0xee)](){const _0x577f4d=_0x292fdf,_0x3d7009=this[_0x577f4d(0x1ba)][_0x577f4d(0x1be)]();this[_0x577f4d(0x179)]?.[_0x577f4d(0xd6)](_0x3d7009),this[_0x577f4d(0x179)]?.[_0x577f4d(0x153)](_0x11b60c(this[_0x577f4d(0x13b)][_0x577f4d(0xdd)],_0x577f4d(0x167)));}[_0x292fdf(0x139)](){const _0x40ada1=_0x292fdf;this[_0x40ada1(0x179)]?.[_0x40ada1(0x1f2)]();}[_0x292fdf(0x14c)](){const _0x4cdd6f=_0x292fdf;this[_0x4cdd6f(0xa3)][_0x4cdd6f(0x14c)]();}async[_0x292fdf(0x1a9)](){const _0x3c0bad=_0x292fdf;await this[_0x3c0bad(0xd5)]();}async[_0x292fdf(0x155)]({message:_0x1ffeaa,quickActionData:_0x5c135f}){const _0x4f98ad=_0x292fdf;await this[_0x4f98ad(0x125)]({'userMessage':_0x1ffeaa,'quickActionData':_0x5c135f});}[_0x292fdf(0xce)](){const _0x5277bb=_0x292fdf,_0x59d264=this[_0x5277bb(0x13b)][_0x5277bb(0xfc)][_0x5277bb(0x171)](_0x5277bb(0x1ab));if(!_0x59d264)throw new _0x101c33(_0x5277bb(0x1b9),this);return _0x59d264;}async[_0x292fdf(0xd5)](_0x569ca8){const _0x194737=_0x292fdf;try{this[_0x194737(0xa3)][_0x194737(0xfb)](),await this[_0x194737(0x181)](_0x569ca8);}catch(_0x1da5bc){this[_0x194737(0xa3)][_0x194737(0x19b)]({'errorMessage':_0x11b60c(this[_0x194737(0x13b)][_0x194737(0xdd)],_0x194737(0x129)),'id':_0x569ca8||_0x3de7ae()}),console[_0x194737(0x10d)](_0x1da5bc),this[_0x194737(0x179)]=void 0x0,this[_0x194737(0xa3)][_0x194737(0x1c6)]();}}async[_0x292fdf(0x181)](_0x245207){const _0x3c62ae=_0x292fdf,_0x2c667c=this[_0x3c62ae(0x13b)][_0x3c62ae(0xe5)][_0x3c62ae(0x171)](_0x41286c);let _0x21ead6;_0x2c667c[_0x3c62ae(0xe6)]&&_0x2c667c[_0x3c62ae(0x1d6)](),_0x245207||!this[_0x3c62ae(0x179)]?_0x21ead6=this[_0x3c62ae(0x13b)][_0x3c62ae(0xfc)][_0x3c62ae(0x171)](_0x3c62ae(0x13a)):this[_0x3c62ae(0xa3)][_0x3c62ae(0x141)]&&(_0x21ead6=this[_0x3c62ae(0x179)][_0x3c62ae(0xb7)]['id']),await this[_0x3c62ae(0x144)]();const _0xb1add7=this[_0x3c62ae(0xce)](),_0x40a7c1=_0x245207||_0x3de7ae();this[_0x3c62ae(0x179)]=new _0x2d1f1e({'connector':this[_0x3c62ae(0xad)],'chatModels':this[_0x3c62ae(0x15a)],'selectedModelId':_0x21ead6,'conversationId':_0x40a7c1,'group':_0xb1add7,'getEditor':()=>_0x226eec(this[_0x3c62ae(0x13b)])}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0xea),(_0x21aa87,_0x4da377)=>{const _0x577e53=_0x3c62ae;this[_0x577e53(0xa3)][_0x577e53(0x1bb)](_0x4da377),this[_0x577e53(0xa3)][_0x577e53(0x170)](),this[_0x577e53(0xa3)][_0x577e53(0x17f)](),this[_0x577e53(0xa3)][_0x577e53(0x15d)](),_0x245207||(this[_0x577e53(0xa3)][_0x577e53(0x1df)](),this[_0x577e53(0x179)]?.[_0x577e53(0x153)](_0x11b60c(this[_0x577e53(0x13b)][_0x577e53(0xdd)],_0x577e53(0x167))));}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x14a),(_0x6148df,_0x44af6a)=>{const _0x54c36a=_0x3c62ae;this[_0x54c36a(0xa3)][_0x54c36a(0xe7)](_0x44af6a[_0x54c36a(0xbf)]);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0xb5),(_0x209d81,_0x59ed70)=>{const _0x6a9a2c=_0x3c62ae;this[_0x6a9a2c(0xa3)][_0x6a9a2c(0x190)](_0x59ed70);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x13c),()=>{const _0x361ab7=_0x3c62ae;this[_0x361ab7(0xa3)][_0x361ab7(0x9c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x184),()=>{const _0x194ca4=_0x3c62ae;this[_0x194ca4(0xa3)][_0x194ca4(0x9c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0xab),(_0x10173b,_0x2bd738)=>{const _0x59a498=_0x3c62ae;this[_0x59a498(0xa3)][_0x59a498(0x163)](_0x2bd738,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0xb3),(_0xa5be7d,_0x57ce48)=>{const _0x77784d=_0x3c62ae;this[_0x77784d(0xa3)][_0x77784d(0x163)](_0x57ce48,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x133),()=>{const _0x1afe20=_0x3c62ae;this[_0x1afe20(0xa3)][_0x1afe20(0x18f)]();}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0xdc),async()=>{const _0x20c392=_0x3c62ae;await this[_0x20c392(0xa3)][_0x20c392(0x97)]();}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x1b7),(_0xd2afdb,_0x813522)=>{const _0xa8bc19=_0x3c62ae;this[_0xa8bc19(0xa3)][_0xa8bc19(0xed)](_0x813522['id']);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x114),(_0x3a93ee,_0x54b66a,_0x3be12c)=>{const _0x51e407=_0x3c62ae;this[_0x51e407(0xc1)](_0x54b66a,_0x3be12c);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x161),(_0x4eac88,_0x3800b3)=>{const _0x34cd18=_0x3c62ae;_0x34cd18(0x177)===_0x3800b3[_0x34cd18(0xf2)]?this[_0x34cd18(0xa3)][_0x34cd18(0x137)](_0x3800b3):this[_0x34cd18(0xa3)][_0x34cd18(0x1db)](_0x3800b3);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x98),async(_0x4a18dd,_0x34bd96)=>{const _0x2f1227=_0x3c62ae;await this[_0x2f1227(0x1dc)]({'reply':_0x34bd96});}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x193),(_0x1238ef,{reply:_0x305cb1,index:_0x58f48d,state:_0x1c9ab4})=>{const _0x4752a9=_0x3c62ae;this[_0x4752a9(0xa3)][_0x4752a9(0x173)]({'id':_0x305cb1['id'],'index':_0x58f48d,'state':_0x1c9ab4});}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x1e7),(_0x465be0,_0x5d782a)=>{const _0x3459fd=_0x3c62ae;if(this[_0x3459fd(0xa3)][_0x3459fd(0x147)](_0x5d782a[_0x3459fd(0x1d3)],_0x5d782a[_0x3459fd(0x1da)]),_0x3459fd(0x180)===_0x5d782a[_0x3459fd(0x1d3)][_0x3459fd(0xf2)]){const _0x28ecb8=[..._0x226eec(this[_0x3459fd(0x13b)])[_0x3459fd(0x10a)][_0x3459fd(0x116)][_0x3459fd(0x180)][_0x3459fd(0x1cf)]()];this[_0x3459fd(0x1ba)][_0x3459fd(0xd4)](_0x28ecb8,_0x3459fd(0x1eb)+this[_0x3459fd(0x179)]?.['id']);}}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x104),(_0x53a461,_0x3aee65)=>{const _0xa016f0=_0x3c62ae;this[_0xa016f0(0xa3)][_0xa016f0(0x9e)](_0x3aee65[_0xa016f0(0x1a2)]),_0xa016f0(0x1cb)==_0x3aee65[_0xa016f0(0x1a2)]&&this[_0xa016f0(0x139)](),_0xa016f0(0x180)===_0x3aee65[_0xa016f0(0xf2)]&&this[_0xa016f0(0x1ba)][_0xa016f0(0x1c7)](_0xa016f0(0x1eb)+this[_0xa016f0(0x179)]?.['id']);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x112),(_0x2efb72,_0x4f9f84)=>{const _0x11d474=_0x3c62ae;this[_0x11d474(0xa3)][_0x11d474(0x1b6)](_0x4f9f84[_0x11d474(0x1d3)][_0x11d474(0x1a2)],_0x4f9f84[_0x11d474(0x1da)]);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x1ac),(_0x2d9573,_0x547e7e)=>{const _0x1a63ef=_0x3c62ae;this[_0x1a63ef(0xa3)][_0x1a63ef(0x1e5)](_0x547e7e[_0x1a63ef(0x162)]);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x11f),(_0x341211,_0x4ccb70)=>{const _0x4b125e=_0x3c62ae;this[_0x4b125e(0xa3)][_0x4b125e(0x14b)](_0x4ccb70[_0x4b125e(0xc0)]);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x1af),(_0x330ae5,_0x23842a)=>{const _0x4bf780=_0x3c62ae;this[_0x4bf780(0xa3)][_0x4bf780(0x1e0)](_0x23842a[_0x4bf780(0xd0)],_0x23842a[_0x4bf780(0xa0)],_0x23842a[_0x4bf780(0x16c)],_0x23842a[_0x4bf780(0x1d4)]);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x8b),(_0x144d31,_0x23ac6f)=>{const _0x42054b=_0x3c62ae;this[_0x42054b(0xa3)][_0x42054b(0x1c3)](_0x23ac6f[_0x42054b(0xd0)],_0x23ac6f[_0x42054b(0xb9)],_0x23ac6f[_0x42054b(0x1c1)]);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0xc8),(_0x1cdc03,_0x4cf08d)=>{const _0x228177=_0x3c62ae;this[_0x228177(0xa3)][_0x228177(0x1a6)](_0x4cf08d);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0xa1),(_0x4a2acc,_0x4311e7)=>{const _0x575059=_0x3c62ae;this[_0x575059(0xa3)][_0x575059(0xdf)](_0x4311e7[_0x575059(0xb7)],_0x4311e7[_0x575059(0xc7)]);}),this[_0x3c62ae(0x179)]['on'](_0x3c62ae(0x10d),(_0x111ec9,{error:_0xafe2cf,interactionId:_0x3920ca,fileName:_0x4436a7,url:_0x9c5ec2,sourceId:_0x2ac452,sourceLabel:_0x441e0d})=>{const _0x1c2188=_0x3c62ae,_0x42f10a=_0x3920ca?_0x3920ca+':'+_0x3de7ae():_0x3de7ae();_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x1b3))?this[_0x1c2188(0xa3)][_0x1c2188(0x119)]({'staticMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x1a3)),'id':_0x42f10a}):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x13d))||_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x191))?(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x129)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x1ee))?this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x8f),_0x4436a7),'id':_0x42f10a}):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0xfe))?this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x95),_0x9c5ec2),'id':_0x42f10a}):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x122))?this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x1b8)),'id':_0x42f10a}):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x1ae))?this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x146)),'id':_0x42f10a}):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x13e))?(_0x2ac452&&this[_0x1c2188(0xa3)][_0x1c2188(0xb4)](_0x2ac452),this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x105),_0x441e0d||_0x1c2188(0xa0)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x131))?(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0xf3)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x1a7))?(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x1b4)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x1a1))?(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x185)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x16e))?(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x174)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x1a4))?(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x1c0)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):_0xafe2cf[_0x1c2188(0xfa)][_0x1c2188(0xd7)](_0x1c2188(0x17e))?(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x1ce)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf)):(this[_0x1c2188(0xa3)][_0x1c2188(0x19b)]({'errorMessage':_0x11b60c(this[_0x1c2188(0x13b)][_0x1c2188(0xdd)],_0x1c2188(0x15f)),'id':_0x42f10a}),this[_0x1c2188(0x100)](_0xafe2cf));}),await this[_0x3c62ae(0x179)][_0x3c62ae(0x1bc)](this[_0x3c62ae(0x13b)][_0x3c62ae(0xfc)][_0x3c62ae(0x171)](_0x3c62ae(0x1a0))),_0x245207||await this[_0x3c62ae(0x179)][_0x3c62ae(0xf7)]();}async[_0x292fdf(0x125)]({userMessage:_0x3128fe,quickActionData:_0x3e8e75}){const _0x309006=_0x292fdf;if(!this[_0x309006(0x179)])throw new _0x101c33(_0x309006(0x1c5));this[_0x309006(0x179)][_0x309006(0x15c)]()&&await this[_0x309006(0x179)][_0x309006(0x1b0)](this[_0x309006(0x1ba)][_0x309006(0x94)]()),this[_0x309006(0x179)]['id']&&this[_0x309006(0x179)][_0x309006(0x16a)]&&await this[_0x309006(0x179)][_0x309006(0x1cc)]({'userMessage':_0x3128fe,'quickActionData':_0x3e8e75}),this[_0x309006(0x113)]();}[_0x292fdf(0x113)](){const _0x3c7572=_0x292fdf,_0x42cf38=_0x226eec(this[_0x3c7572(0x13b)])[_0x3c7572(0x10a)],_0x5d6cd4=Array[_0x3c7572(0xb8)](_0x42cf38[_0x3c7572(0x19d)][_0x3c7572(0x12c)](_0x17a7aa));_0x42cf38[_0x3c7572(0x19f)](_0x3efb51=>{const _0x217470=_0x3c7572;_0x5d6cd4[_0x217470(0x10f)](_0x3d1364=>_0x3efb51[_0x217470(0x186)](_0x3d1364));});}[_0x292fdf(0x135)](){const _0x584279=_0x292fdf;console[_0x584279(0x1cd)](_0x584279(0xd2));}[_0x292fdf(0x1e8)](_0x138edc){const _0x57574d=_0x292fdf;this[_0x57574d(0xa3)][_0x57574d(0xca)](_0x138edc);}[_0x292fdf(0x100)](_0x5ada62){const _0x2bca58=_0x292fdf;_0x5365ce(_0x5ada62[_0x2bca58(0xfa)]);}[_0x292fdf(0x117)](_0x27ee0f){const _0x148fb8=_0x292fdf;this[_0x148fb8(0x179)]?.[_0x148fb8(0x1e2)](_0x27ee0f);}[_0x292fdf(0xa9)](){const _0x3687ad=_0x292fdf;this[_0x3687ad(0x179)]?.[_0x3687ad(0x96)]();}[_0x292fdf(0x182)](){const _0x58b68a=_0x292fdf;this[_0x58b68a(0x179)]?.[_0x58b68a(0x1d8)]();}[_0x292fdf(0x156)](_0x295073){const _0x214cc5=_0x292fdf,[_0x4ee3ae,_0x32f13e]=_0x295073[_0x214cc5(0x145)](':'),_0x50d51b=this[_0x214cc5(0x179)][_0x214cc5(0xbe)](_0x4ee3ae),_0x491d02=_0x50d51b[_0x214cc5(0x140)](_0x32f13e);return{'interaction':_0x50d51b,'reply':_0x491d02};}[_0x292fdf(0x1d7)](_0xa3744d,_0x4b9225=!0x1){const _0x271aa5=_0x292fdf,_0x432bdc=_0x226eec(this[_0x271aa5(0x13b)]),_0x44c985={'target':_0x432bdc[_0x271aa5(0x124)][_0x271aa5(0x1f6)][_0x271aa5(0x9b)][_0x271aa5(0x110)](_0x432bdc[_0x271aa5(0x124)][_0x271aa5(0xf1)][_0x271aa5(0x178)](_0xa3744d)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4b9225};_0x4b9225&&(_0x44c985[_0x271aa5(0xf5)]=!0x0),_0xa69f74(_0x44c985);}[_0x292fdf(0xc1)](_0x401ec1,_0x577f82=!0x1){const _0x5604e8=_0x292fdf;this[_0x5604e8(0xa3)][_0x5604e8(0x114)](_0x401ec1||_0x11b60c(this[_0x5604e8(0x13b)][_0x5604e8(0xdd)],_0x5604e8(0xd9)),_0x577f82);}async[_0x292fdf(0x1dc)]({reply:_0x4cc1be,renderingStrategy:_0x4ad561}){const _0xb24823=_0x292fdf,{id:_0x70e38f,isDone:_0x27d82a,type:_0x3e1e08,parsedContent:_0x5e52f7}=_0x4cc1be;if(_0xb24823(0x149)===_0x3e1e08){const _0x558e35=_0x4cc1be[_0xb24823(0x1c9)]({'showDiff':this[_0xb24823(0xa3)][_0xb24823(0xdb)]});await this[_0xb24823(0xa3)][_0xb24823(0xe2)]({'id':_0x70e38f,'parts':_0x558e35,'renderingStrategy':_0x4ad561,'isDone':_0x27d82a});}else _0xb24823(0x177)===_0x3e1e08&&await this[_0xb24823(0xa3)][_0xb24823(0x1d1)]({'id':_0x70e38f,'parsedContent':_0x5e52f7,'renderingStrategy':_0x4ad561,'isDone':_0x27d82a});_0x27d82a&&_0x4cc1be[_0xb24823(0x1b5)][_0xb24823(0x126)]>0x0&&this[_0xb24823(0xa3)][_0xb24823(0xf4)](_0x70e38f,_0x4cc1be[_0xb24823(0x1b5)]);}async[_0x292fdf(0x144)](){const _0xdaa2a0=_0x292fdf,_0x2b1624=this[_0xdaa2a0(0x179)]?.[_0xdaa2a0(0x138)];_0x2b1624&&(_0x2b1624[_0xdaa2a0(0x1b2)](),this[_0xdaa2a0(0xa3)][_0xdaa2a0(0x11d)](_0x2b1624));}async[_0x292fdf(0xde)](){const _0x45a219=_0x292fdf,_0x1fe1d7=this[_0x45a219(0x179)]?.[_0x45a219(0x138)];if(_0x1fe1d7){for await(const _0x387ed3 of _0x1fe1d7[_0x45a219(0x1d0)])await this[_0x45a219(0x1dc)]({'reply':_0x387ed3,'renderingStrategy':_0x45a219(0x1f5)});}}[_0x292fdf(0xf9)](_0x2d0356){const _0xbc83ea=_0x292fdf,_0xf45c38={'positiveCount':_0x2d0356[_0xbc83ea(0x109)][_0xbc83ea(0x1c8)](_0x293d15=>_0xbc83ea(0x197)===_0x293d15[_0xbc83ea(0xcb)])[_0xbc83ea(0x126)],'totalCount':_0x2d0356[_0xbc83ea(0x109)][_0xbc83ea(0x126)],'modificationId':_0x2d0356['id']},_0x314b8a=this[_0xbc83ea(0x179)][_0xbc83ea(0xbe)](_0x2d0356[_0xbc83ea(0x17d)])[_0xbc83ea(0x103)];this[_0xbc83ea(0xad)][_0xbc83ea(0x132)](this[_0xbc83ea(0x179)]['id'],_0x314b8a,_0xf45c38);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2dbc2b=_0x5a3f;(function(_0x33d7a8,_0xb311bd){const _0x1acae1=_0x5a3f,_0x136551=_0x33d7a8();while(!![]){try{const _0x45e577=-parseInt(_0x1acae1(0x203))/0x1*(parseInt(_0x1acae1(0x192))/0x2)+-parseInt(_0x1acae1(0x172))/0x3*(parseInt(_0x1acae1(0x1d1))/0x4)+parseInt(_0x1acae1(0x1f5))/0x5+-parseInt(_0x1acae1(0x17d))/0x6*(parseInt(_0x1acae1(0x1b1))/0x7)+parseInt(_0x1acae1(0x1d0))/0x8*(parseInt(_0x1acae1(0x1dd))/0x9)+-parseInt(_0x1acae1(0x1a0))/0xa*(parseInt(_0x1acae1(0x179))/0xb)+parseInt(_0x1acae1(0x166))/0xc*(parseInt(_0x1acae1(0x1c9))/0xd);if(_0x45e577===_0xb311bd)break;else _0x136551['push'](_0x136551['shift']());}catch(_0x4c9ab4){_0x136551['push'](_0x136551['shift']());}}}(_0x4bbb,0xd92e6));import{ContextPlugin as _0x45d7cd}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x28d2fa}from'ckeditor5/src/utils.js';import{AIChatView as _0x1e4a78}from'./ui/aichatview.js';import{AITabs as _0x42f081}from'../aitabs/aitabs.js';import{getTranslation as _0x515d47}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x96cb73}from'ckeditor5/src/icons.js';function _0x5a3f(_0xb185d7,_0x148dca){const _0x4bbb14=_0x4bbb();return _0x5a3f=function(_0x5a3f6b,_0x1ef179){_0x5a3f6b=_0x5a3f6b-0x162;let _0x9702d6=_0x4bbb14[_0x5a3f6b];return _0x9702d6;},_0x5a3f(_0xb185d7,_0x148dca);}import{AIChatFeedInteractionHeaderView as _0x2a5d2f}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x8cc8de}from'./utils/promisequeue.js';function _0x4bbb(){const _0x22f2a8=['delegate','toggleLoadingSkeleton','startAutoScroll','chatControls','focusPromptInput','updateSuggestionItem','value','then','markFeedItemAsDone','ai-suggestion-reply','isOfficialPlugin','90toNOFF','addFeedInteractionHeader','_titleAnimationInterval','setModel','isWebSearchEnabled','_animateConversationTitle','find','conversation-start','get','_getLoadingMessage','AI_CHAT_WELCOME_MESSAGE','updateFeedItemAIReplySuggestionContent','showResizeButton','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','1590QtMEHT','plugins','queueEmptyPromise','availableModels','startsWith','resetMessageInput','remove','populateSourceResourceBalloon','stopInteraction','disableModelSelector','setReasoning','last','isModelAvailable','addFeedItemAIReply','enableControls','clearPendingContextUI','addFeedItemAISuggestion','7jQWFZh','destroy','_view','from','removeItem','setModelList','updateFeedItemAIReplySources','startInteraction','chatHeader','removeContextItem','TrackChanges','updateReplyItem','ai.availableReplyActions','showDiff','getItemIds','bind','displayedPrompt','AIChatUI','scrollFeedToSuggestion','config','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','pluginName','addFeedItemError','ai-reply','50024QCKubv','createConversation','context','setAddContextOptions','removeFeedInteraction','clearConversationContextUI','error-message','1484968KAOzkW','80488lCXqwg','interaction-header','contextItems','isTrackChangesOn','setSelectedModel','chatFeed','updateSuggestionPartState','capabilities','AITabs','commands','children','quickActionData','9hXaflt','scrollToSuggestion','<p>','addItem','_getInputPlaceholder','isLoading','finishInteraction','forEach','isDisabled','isPending','addFeedItemUserMessage','updateFeedItemAIReplySuggestionPartState','setIsMaximized','isVisible','enqueue','setConversationContext','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','abort','requires','disableControls','updateWebSources','updateFeedInteractionHeader','has','setLoadingMessage','4509985KbsYhX','updateCapabilities','renderingStrategy','clear','setWebSearch','stopAutoScroll','isMaximized','options','areActionsDisabled','updateFeedItemAIReplyContent','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AI_CHAT_HEADING','updateResourceState','setConversationTitle','26669uvfTkk','user-message','_promiseQueue','filter','setIsUploadInProgress','streaming','length','closeSourceResourceBalloon','_interactionPromiseResolver','addFeedItemStaticMessage','isPremiumPlugin','chat','markItemAsDone','7800bqVHsU','interactionId','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai.chat.models.modelSelectorAlwaysVisible','label','</p>','toggleSuggestionDisplayMode','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','locale','view','87NIXekK','userMessage','setContextItemLoading','isDone','feedItemRenderingStrategy','ai.chat.context.searchInputVisibleFrom','isBusy','38654gHJjMC','insertSuggestion','setFeedItemRenderingStrategy','resetConversationTitle','2141250qkvJTl','addContextItem','_isTrackChangesCommandValueBound','values','addTab','isReasoningEnabled','trackChanges','set','enableModelSelector','setInputPlaceholder'];_0x4bbb=function(){return _0x22f2a8;};return _0x4bbb();}import{AI_CHAT_UI_EVENT_NAMES as _0x3502c8}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x2cded5}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2c79ab}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x45d7cd{static get[_0x2dbc2b(0x1ef)](){return[_0x42f081];}[_0x2dbc2b(0x1b3)];static get[_0x2dbc2b(0x1c6)](){const _0xc87111=_0x2dbc2b;return _0xc87111(0x1c2);}static get[_0x2dbc2b(0x191)](){return!0x0;}static get[_0x2dbc2b(0x163)](){return!0x0;}[_0x2dbc2b(0x176)]=_0x2dbc2b(0x208);[_0x2dbc2b(0x1be)]=!0x0;[_0x2dbc2b(0x205)];[_0x2dbc2b(0x20b)];[_0x2dbc2b(0x194)]=void 0x0;[_0x2dbc2b(0x17f)]=!0x1;constructor(_0x595e8f){const _0x2212f9=_0x2dbc2b;super(_0x595e8f);const _0x2115f4=this[_0x2212f9(0x1cb)][_0x2212f9(0x1a1)][_0x2212f9(0x19a)](_0x2212f9(0x1d9));this[_0x2212f9(0x184)](_0x2212f9(0x178),!0x1),this[_0x2212f9(0x205)]=new _0x8cc8de(),this[_0x2212f9(0x1b3)]=new _0x1e4a78(this[_0x2212f9(0x1cb)][_0x2212f9(0x170)],{'showResizeButton':_0x2115f4[_0x2212f9(0x19e)],'contextResourcesSearchInputVisibleFrom':this[_0x2212f9(0x1cb)][_0x2212f9(0x1c4)][_0x2212f9(0x19a)](_0x2212f9(0x177))}),this[_0x2212f9(0x1b3)][_0x2212f9(0x187)](..._0x3502c8)['to'](this),this[_0x2212f9(0x1b3)]['on'](_0x2212f9(0x16e),(_0x5dc0d9,{showDiff:_0x506b4e})=>{const _0x53d0a7=_0x2212f9;this[_0x53d0a7(0x1be)]=_0x506b4e;}),_0x2115f4[_0x2212f9(0x171)][_0x2212f9(0x181)]({'id':_0x2212f9(0x164),'buttonLabel':_0x515d47(this[_0x2212f9(0x1cb)][_0x2212f9(0x170)],_0x2212f9(0x200)),'buttonIcon':_0x96cb73,'order':0x0,'content':this[_0x2212f9(0x1b3)]}),this[_0x2212f9(0x1b3)][_0x2212f9(0x18a)][_0x2212f9(0x1c0)](_0x2212f9(0x1e2))['to'](this,_0x2212f9(0x178),_0x34a110=>_0x34a110),this[_0x2212f9(0x1b3)][_0x2212f9(0x1d6)][_0x2212f9(0x1c0)](_0x2212f9(0x1e6))['to'](this,_0x2212f9(0x178),_0x5ce88f=>_0x5ce88f),this[_0x2212f9(0x1b3)][_0x2212f9(0x18a)][_0x2212f9(0x186)](this[_0x2212f9(0x1e1)]()),this[_0x2212f9(0x1c0)](_0x2212f9(0x1ac))['to'](this[_0x2212f9(0x1b3)][_0x2212f9(0x18a)],_0x2212f9(0x1ac));}[_0x2dbc2b(0x1b2)](){const _0x573330=_0x2dbc2b;super[_0x573330(0x1b2)](),this[_0x573330(0x194)]&&clearInterval(this[_0x573330(0x194)]);}[_0x2dbc2b(0x1ca)](_0x14c639){const _0x41e848=_0x2dbc2b;this[_0x41e848(0x1b3)][_0x41e848(0x1d6)][_0x41e848(0x1f8)](),this[_0x41e848(0x1b3)][_0x41e848(0x18a)][_0x41e848(0x185)](),this[_0x41e848(0x1b3)][_0x41e848(0x18a)][_0x41e848(0x1b6)](_0x14c639[_0x41e848(0x1a3)],!this[_0x41e848(0x1cb)][_0x41e848(0x1c4)][_0x41e848(0x19a)](_0x41e848(0x16b))),this[_0x41e848(0x162)]({'id':_0x41e848(0x199),'staticMessage':_0x515d47(this[_0x41e848(0x1cb)][_0x41e848(0x170)],_0x41e848(0x19c))});}[_0x2dbc2b(0x162)]({id:_0x10f8fb,staticMessage:_0xfdb511}){const _0x4802e9=_0x2dbc2b;this[_0x4802e9(0x1b3)][_0x4802e9(0x1d6)][_0x4802e9(0x1e0)](_0x4802e9(0x1c8),{'id':_0x10f8fb,'initialContent':_0x4802e9(0x1df)+_0xfdb511+_0x4802e9(0x16d)});}[_0x2dbc2b(0x1e7)](_0x4c6bdb){const _0x560a3a=_0x2dbc2b,_0x52a25d=_0x4c6bdb[_0x560a3a(0x1dc)]?.[_0x560a3a(0x1c1)]||_0x4c6bdb[_0x560a3a(0x173)];this[_0x560a3a(0x1b3)][_0x560a3a(0x1d6)][_0x560a3a(0x1e0)](_0x560a3a(0x204),{'contextItems':Array[_0x560a3a(0x1b4)](_0x4c6bdb[_0x560a3a(0x1d3)][_0x560a3a(0x180)]()),'initialContent':_0x560a3a(0x1df)+_0x52a25d+_0x560a3a(0x16d),'id':_0x4c6bdb['id']});}[_0x2dbc2b(0x1c7)]({errorMessage:_0x4d1a89,id:_0x3c9de7}){const _0xe5c56e=_0x2dbc2b;this[_0xe5c56e(0x1b3)][_0xe5c56e(0x1d6)][_0xe5c56e(0x1e0)](_0xe5c56e(0x1cf),{'initialContent':_0xe5c56e(0x1df)+_0x4d1a89+_0xe5c56e(0x16d),'id':_0x3c9de7});}[_0x2dbc2b(0x1ad)](_0x292fc6){const _0x29b1d2=_0x2dbc2b;return this[_0x29b1d2(0x205)][_0x29b1d2(0x1eb)](async()=>{const _0x2d7caa=_0x29b1d2;this[_0x2d7caa(0x1b3)][_0x2d7caa(0x1d6)][_0x2d7caa(0x1e0)](_0x2d7caa(0x1c8),{'id':_0x292fc6[_0x2d7caa(0x167)]+':'+_0x292fc6['id']}),this[_0x2d7caa(0x1f4)](null);});}async[_0x2dbc2b(0x1b0)](_0xc37d1a){const _0x1cc637=_0x2dbc2b,_0x404742=_0x2cded5(this[_0x1cc637(0x1cb)]);let _0x3994bd=_0x404742[_0x1cc637(0x1c4)][_0x1cc637(0x19a)](_0x1cc637(0x1bd))||[..._0x2c79ab];if(_0x404742[_0x1cc637(0x1a1)][_0x1cc637(0x1f3)](_0x1cc637(0x1bb))){if(!this[_0x1cc637(0x17f)]){this[_0x1cc637(0x17f)]=!0x0;const _0x16cfca=_0x404742[_0x1cc637(0x1da)][_0x1cc637(0x19a)](_0x1cc637(0x183));this[_0x1cc637(0x1b3)][_0x1cc637(0x1d6)][_0x1cc637(0x1c0)](_0x1cc637(0x1d4))['to'](_0x16cfca,_0x1cc637(0x18d));}}else _0x3994bd=_0x3994bd[_0x1cc637(0x206)](_0x32d7d1=>_0x1cc637(0x17a)!=_0x32d7d1);return this[_0x1cc637(0x205)][_0x1cc637(0x1eb)](async()=>{const _0x3c1d7d=_0x1cc637;this[_0x3c1d7d(0x1b3)][_0x3c1d7d(0x1d6)][_0x3c1d7d(0x1e0)](_0x3c1d7d(0x190),{'id':_0xc37d1a[_0x3c1d7d(0x167)]+':'+_0xc37d1a['id'],'areActionsDisabled':_0xc37d1a[_0x3c1d7d(0x1fd)],'showDiff':this[_0x3c1d7d(0x1be)],'availableActions':_0x3994bd}),this[_0x3c1d7d(0x1f4)](null);});}[_0x2dbc2b(0x193)](_0x4983ac,_0xb38f4f){const _0xb5b057=_0x2dbc2b,_0x2e7239=this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1db)][_0xb5b057(0x1ab)];if(_0x2e7239 instanceof _0x2a5d2f)return this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1db)][_0xb5b057(0x1a6)](_0x2e7239),void this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1e0)](_0xb5b057(0x1d2),{'id':_0x4983ac['id'],'capabilities':{'isWebSearchEnabled':_0x2e7239[_0xb5b057(0x1d8)][_0xb5b057(0x196)]||_0xb38f4f[_0xb5b057(0x196)],'isReasoningEnabled':_0x2e7239[_0xb5b057(0x1d8)][_0xb5b057(0x182)]||_0xb38f4f[_0xb5b057(0x182)]}});this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1e0)](_0xb5b057(0x1d2),{'id':_0x4983ac['id'],'capabilities':_0xb38f4f});}[_0x2dbc2b(0x1f2)](_0x152413){const _0x54ee83=_0x2dbc2b,_0x4fbd81=this[_0x54ee83(0x1b3)][_0x54ee83(0x1d6)][_0x54ee83(0x1db)][_0x54ee83(0x198)](_0x2e5ab6=>_0x2e5ab6[_0x54ee83(0x1fc)]['id']==_0x152413['id']&&_0x2e5ab6 instanceof _0x2a5d2f);_0x4fbd81&&_0x4fbd81[_0x54ee83(0x184)](_0x54ee83(0x1ea),_0x152413[_0x54ee83(0x1ea)]);}async[_0x2dbc2b(0x1fe)](_0x537c56){const _0x27ae6f=_0x2dbc2b,_0x200ce6=_0x537c56[_0x27ae6f(0x1f7)]||this[_0x27ae6f(0x176)];return this[_0x27ae6f(0x205)][_0x27ae6f(0x1eb)](async _0x37bc90=>{const _0x2adea9=_0x27ae6f;await this[_0x2adea9(0x1b3)][_0x2adea9(0x1d6)][_0x2adea9(0x1bc)]({..._0x537c56,'abortSignal':_0x37bc90,'renderingStrategy':_0x200ce6}),_0x537c56[_0x2adea9(0x175)]&&this[_0x2adea9(0x18f)](_0x537c56['id']);});}[_0x2dbc2b(0x1b7)](_0x5a651a,_0x1a7b57){const _0x1b2394=_0x2dbc2b;this[_0x1b2394(0x1b3)][_0x1b2394(0x1d6)][_0x1b2394(0x1f1)](_0x5a651a,_0x1a7b57);}async[_0x2dbc2b(0x19d)](_0x342906){const _0x4958cf=_0x2dbc2b,_0x555c0c=_0x342906[_0x4958cf(0x1f7)]||this[_0x4958cf(0x176)];return this[_0x4958cf(0x205)][_0x4958cf(0x1eb)](async _0x20cde0=>{const _0x5dcba4=_0x4958cf;await this[_0x5dcba4(0x1b3)][_0x5dcba4(0x1d6)][_0x5dcba4(0x18c)]({..._0x342906,'abortSignal':_0x20cde0,'renderingStrategy':_0x555c0c}),_0x342906[_0x5dcba4(0x175)]&&this[_0x5dcba4(0x18f)](_0x342906['id']);});}[_0x2dbc2b(0x1e8)](_0x5a2c4f){const _0x59d932=_0x2dbc2b;this[_0x59d932(0x1b3)][_0x59d932(0x1d6)][_0x59d932(0x1d7)](_0x5a2c4f);}[_0x2dbc2b(0x18f)](_0x2e83fa){const _0x4d0290=_0x2dbc2b;this[_0x4d0290(0x1b3)][_0x4d0290(0x1d6)][_0x4d0290(0x165)](_0x2e83fa);}[_0x2dbc2b(0x1cd)](_0x4745be){const _0x5cc10f=_0x2dbc2b;this[_0x5cc10f(0x1b3)][_0x5cc10f(0x1d6)][_0x5cc10f(0x1bf)]()[_0x5cc10f(0x206)](_0x50368e=>_0x50368e[_0x5cc10f(0x1a4)](_0x4745be))[_0x5cc10f(0x1e4)](_0x1f7f55=>this[_0x5cc10f(0x1b3)][_0x5cc10f(0x1d6)][_0x5cc10f(0x1b5)](_0x1f7f55));}[_0x2dbc2b(0x1b8)](){const _0x555b65=_0x2dbc2b;this[_0x555b65(0x1f4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x555b65(0x1b3)][_0x555b65(0x18a)][_0x555b65(0x1a9)](!this[_0x555b65(0x1cb)][_0x555b65(0x1c4)][_0x555b65(0x19a)](_0x555b65(0x16b))),this[_0x555b65(0x178)]=!0x0,this[_0x555b65(0x1b3)][_0x555b65(0x1d6)][_0x555b65(0x189)]();}[_0x2dbc2b(0x1a8)](_0x325cb5){const _0x36c418=_0x2dbc2b;this[_0x36c418(0x205)][_0x36c418(0x1ee)](),this[_0x36c418(0x1b3)][_0x36c418(0x1d6)][_0x36c418(0x1bf)]()[_0x36c418(0x206)](_0x1d37df=>_0x1d37df[_0x36c418(0x1a4)](_0x325cb5['id']))[_0x36c418(0x1e4)](_0x56d749=>this[_0x36c418(0x18f)](_0x56d749)),this[_0x36c418(0x178)]=!0x1,this[_0x36c418(0x1b3)][_0x36c418(0x1d6)][_0x36c418(0x1fa)]();}async[_0x2dbc2b(0x1e3)](){const _0x3ed061=_0x2dbc2b;return this[_0x3ed061(0x205)][_0x3ed061(0x1a2)][_0x3ed061(0x18e)](()=>{const _0x2f2c7a=_0x3ed061;this[_0x2f2c7a(0x178)]=!0x1,this[_0x2f2c7a(0x1b3)][_0x2f2c7a(0x1d6)][_0x2f2c7a(0x1fa)]();});}[_0x2dbc2b(0x17e)](_0x17142f,_0x2c9009){const _0xfdb452=_0x2dbc2b;this[_0xfdb452(0x1b3)][_0xfdb452(0x18a)][_0xfdb452(0x17e)](_0x17142f,_0x2c9009);}[_0x2dbc2b(0x1ba)](_0x5c273b){const _0x3926e3=_0x2dbc2b;this[_0x3926e3(0x1b3)][_0x3926e3(0x18a)][_0x3926e3(0x1ba)](_0x5c273b);}[_0x2dbc2b(0x174)](_0xcfe8f0,_0x2f8af1){const _0x51f918=_0x2dbc2b;this[_0x51f918(0x1b3)][_0x51f918(0x18a)][_0x51f918(0x174)](_0xcfe8f0,_0x2f8af1);}[_0x2dbc2b(0x207)](_0x4f2527){const _0x43fd30=_0x2dbc2b;this[_0x43fd30(0x1b3)][_0x43fd30(0x18a)][_0x43fd30(0x207)](_0x4f2527);}[_0x2dbc2b(0x1ec)](_0x1dcc9d){const _0x3ca2d8=_0x2dbc2b;this[_0x3ca2d8(0x1b3)][_0x3ca2d8(0x18a)][_0x3ca2d8(0x1ec)](_0x1dcc9d);}[_0x2dbc2b(0x1af)](){const _0x8fcd6b=_0x2dbc2b;this[_0x8fcd6b(0x1b3)][_0x8fcd6b(0x18a)][_0x8fcd6b(0x1af)]();}[_0x2dbc2b(0x1ce)](){const _0x522189=_0x2dbc2b;this[_0x522189(0x1b3)][_0x522189(0x18a)][_0x522189(0x1ce)]();}[_0x2dbc2b(0x201)](_0x3e6e07,_0x777877,_0x11f89a){const _0x28e706=_0x2dbc2b;this[_0x28e706(0x1b3)][_0x28e706(0x18a)][_0x28e706(0x201)](_0x3e6e07,_0x777877,_0x11f89a);}[_0x2dbc2b(0x1a5)](){const _0x3ce95b=_0x2dbc2b;this[_0x3ce95b(0x1b3)][_0x3ce95b(0x18a)][_0x3ce95b(0x1a5)](),this[_0x3ce95b(0x1b3)][_0x3ce95b(0x18a)][_0x3ce95b(0x186)](this[_0x3ce95b(0x1e1)]());}[_0x2dbc2b(0x1cc)](_0x403f88){const _0x32441e=_0x2dbc2b;this[_0x32441e(0x1b3)][_0x32441e(0x18a)][_0x32441e(0x1cc)](_0x403f88);}[_0x2dbc2b(0x1f6)](_0x128d5d){const _0x48e078=_0x2dbc2b;this[_0x48e078(0x1b3)][_0x48e078(0x18a)][_0x48e078(0x1f9)](_0x128d5d[_0x48e078(0x196)]),this[_0x48e078(0x1b3)][_0x48e078(0x18a)][_0x48e078(0x1aa)](_0x128d5d[_0x48e078(0x182)]),this[_0x48e078(0x1b3)][_0x48e078(0x18a)][_0x48e078(0x186)](this[_0x48e078(0x1e1)](_0x128d5d));}[_0x2dbc2b(0x1d5)](_0x46f7f4,_0x230fc2){const _0x4d8ba3=_0x2dbc2b;this[_0x4d8ba3(0x1b3)][_0x4d8ba3(0x18a)][_0x4d8ba3(0x195)](_0x46f7f4),_0x230fc2&&this[_0x4d8ba3(0x1b3)][_0x4d8ba3(0x18a)][_0x4d8ba3(0x1a9)](!0x1);}[_0x2dbc2b(0x17b)](_0x4b45ba){const _0x30fb81=_0x2dbc2b;this[_0x30fb81(0x176)]=_0x4b45ba;}[_0x2dbc2b(0x188)](_0x401be6){const _0x5e11ab=_0x2dbc2b;this[_0x5e11ab(0x1b3)][_0x5e11ab(0x1d6)][_0x5e11ab(0x188)](_0x401be6);}[_0x2dbc2b(0x17c)](){const _0x39b6f2=_0x2dbc2b;this[_0x39b6f2(0x202)](_0x515d47(this[_0x39b6f2(0x1cb)][_0x39b6f2(0x170)],_0x39b6f2(0x200)));}[_0x2dbc2b(0x202)](_0x545987,_0x24b843=!0x1){const _0x4fcbac=_0x2dbc2b;if(_0x24b843&&!_0x28d2fa()&&_0x545987[_0x4fcbac(0x209)])return this[_0x4fcbac(0x1b3)][_0x4fcbac(0x1b9)][_0x4fcbac(0x16c)]='',void this[_0x4fcbac(0x197)](_0x545987);this[_0x4fcbac(0x1b3)][_0x4fcbac(0x1b9)][_0x4fcbac(0x16c)]=_0x545987;}[_0x2dbc2b(0x1f4)](_0x5e8f56){const _0x473a6d=_0x2dbc2b,_0xa3cc75=this[_0x473a6d(0x19b)](_0x5e8f56);this[_0x473a6d(0x1b3)][_0x473a6d(0x1d6)][_0x473a6d(0x1f4)](_0xa3cc75);}[_0x2dbc2b(0x197)](_0x10bba2){const _0x51003d=_0x2dbc2b;let _0x591a07=0x0;clearInterval(this[_0x51003d(0x194)]),this[_0x51003d(0x194)]=setInterval(()=>{const _0x493934=_0x51003d;this[_0x493934(0x1b3)][_0x493934(0x1b9)][_0x493934(0x16c)]=this[_0x493934(0x1b3)][_0x493934(0x1b9)][_0x493934(0x16c)]+_0x10bba2[_0x591a07],_0x591a07++,_0x591a07===_0x10bba2[_0x493934(0x209)]&&clearInterval(this[_0x493934(0x194)]);},0x1e);}[_0x2dbc2b(0x1e9)](_0x3ce2b0){const _0x3e6325=_0x2dbc2b;this[_0x3e6325(0x1b3)][_0x3e6325(0x1b9)][_0x3e6325(0x1fb)]=_0x3ce2b0;}[_0x2dbc2b(0x19b)](_0x127277){const _0x5de9b4=_0x2dbc2b;return _0x127277?_0x127277[_0x5de9b4(0x196)]&&_0x127277[_0x5de9b4(0x182)]?_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x169)):_0x127277[_0x5de9b4(0x196)]?_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x1ff)):_0x127277[_0x5de9b4(0x182)]?_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x168)):_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x19f)):'';}[_0x2dbc2b(0x1e1)](_0x2d750b){const _0x42634e=_0x2dbc2b;return _0x2d750b?_0x2d750b[_0x42634e(0x196)]&&_0x2d750b[_0x42634e(0x182)]?_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x1c5)):_0x2d750b[_0x42634e(0x196)]?_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x16a)):_0x2d750b[_0x42634e(0x182)]?_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x16f)):_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x1ed)):_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x1ed));}[_0x2dbc2b(0x1a7)](_0x13fa8a,_0x2069a1,_0x2cffd4,_0x13a728){const _0x1e9b4e=_0x2dbc2b;this[_0x1e9b4e(0x1b3)][_0x1e9b4e(0x1a7)](_0x13fa8a,_0x2069a1,_0x2cffd4,_0x13a728);}[_0x2dbc2b(0x20a)](_0x59177d){const _0x3ddd11=_0x2dbc2b;this[_0x3ddd11(0x1b3)][_0x3ddd11(0x20a)](_0x59177d);}[_0x2dbc2b(0x18b)](){const _0x25f228=_0x2dbc2b;this[_0x25f228(0x1b3)][_0x25f228(0x18a)][_0x25f228(0x18b)]();}[_0x2dbc2b(0x1c3)](_0x15231f,_0x5de3f9){const _0x543749=_0x2dbc2b;this[_0x543749(0x1b3)][_0x543749(0x1d6)][_0x543749(0x1de)](_0x15231f,_0x5de3f9);}[_0x2dbc2b(0x189)](){const _0x432d50=_0x2dbc2b;this[_0x432d50(0x1b3)][_0x432d50(0x1d6)][_0x432d50(0x189)]();}[_0x2dbc2b(0x1f0)](){const _0x3110ae=_0x2dbc2b;this[_0x3110ae(0x1b3)][_0x3110ae(0x18a)][_0x3110ae(0x1e5)]=!0x0;}[_0x2dbc2b(0x1ae)](){const _0x59d142=_0x2dbc2b;this[_0x59d142(0x1b3)][_0x59d142(0x18a)][_0x59d142(0x1e5)]=!0x1;}}
|
|
23
|
+
const _0x4e3e1b=_0x3fdc;(function(_0x34567e,_0x4be82d){const _0x50cec1=_0x3fdc,_0x3491b4=_0x34567e();while(!![]){try{const _0x2bafce=-parseInt(_0x50cec1(0x187))/0x1*(parseInt(_0x50cec1(0x105))/0x2)+-parseInt(_0x50cec1(0x1a4))/0x3*(parseInt(_0x50cec1(0x111))/0x4)+-parseInt(_0x50cec1(0x115))/0x5+-parseInt(_0x50cec1(0x113))/0x6+parseInt(_0x50cec1(0x19c))/0x7+-parseInt(_0x50cec1(0x139))/0x8+parseInt(_0x50cec1(0x198))/0x9;if(_0x2bafce===_0x4be82d)break;else _0x3491b4['push'](_0x3491b4['shift']());}catch(_0xd66b46){_0x3491b4['push'](_0x3491b4['shift']());}}}(_0x54d1,0xa54a2));import{ContextPlugin as _0x330b0f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x262090}from'ckeditor5/src/utils.js';import{AIChatView as _0x21655f}from'./ui/aichatview.js';import{AITabs as _0x5da74f}from'../aitabs/aitabs.js';function _0x54d1(){const _0x3ca6bc=['closeSourceResourceBalloon','isWebSearchEnabled','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_HEADING','enqueue','updateFeedItemAIReplySources','value','chatHeader','TrackChanges','setModel','scrollToSuggestion','ai.chat.context.searchInputVisibleFrom','disableControls','queueEmptyPromise','removeFeedInteraction','clear','interactionId','scrollFeedToSuggestion','conversation-start','resetMessageInput','bind','toggleSuggestionDisplayMode','_interactionPromiseResolver','28523dESklp','updateSuggestionItem','chatControls','user-message','ai-suggestion-reply','updateResourceState','setAddContextOptions','isBusy','finishInteraction','view','destroy','setConversationContext','find','addFeedItemStaticMessage','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplyContent','requires','28165041rHyPBu','setIsMaximized','setFeedItemRenderingStrategy','<p>','3069395UBgtye','length','createConversation','insertSuggestion','ai.chat.models.modelSelectorAlwaysVisible','addFeedItemError','chatFeed','AIChatUI','184218CSKeHj','renderingStrategy','children','values','addContextItem','then','updateReplyItem','28nGSfQS','focusPromptInput','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setConversationTitle','abort','_promiseQueue','isModelAvailable','from','isLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','interaction-header','8JXIUFH','feedItemRenderingStrategy','3407442GVYpDV','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','2288385CWKDAi','displayedPrompt','startAutoScroll','showResizeButton','error-message','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySuggestionPartState','resetConversationTitle','plugins','delegate','markFeedItemAsDone','chat','setWebSearch','stopInteraction','locale','setContextItemLoading','setModelList','quickActionData','ai-reply','populateSourceResourceBalloon','addFeedItemAISuggestion','forEach','remove','AITabs','isTrackChangesOn','capabilities','toggleLoadingSkeleton','pluginName','getItemIds','addItem','setSelectedModel','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setIsUploadInProgress','enableModelSelector','_view','updateFeedInteractionHeader','10745520YJJILc','config','setInputPlaceholder','streaming','markItemAsDone','setReasoning','context','isDisabled','contextItems','disableModelSelector','get','filter','label','addFeedInteractionHeader','isDone','updateWebSources','set','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','</p>','isPremiumPlugin','addTab','_getLoadingMessage','_titleAnimationInterval','_animateConversationTitle','commands','isMaximized','addFeedItemUserMessage','stopAutoScroll','has','updateCapabilities','addFeedItemAIReply','clearPendingContextUI','isPending','removeContextItem','userMessage','ai.availableReplyActions','areActionsDisabled','last','isReasoningEnabled','isOfficialPlugin','_isTrackChangesCommandValueBound','clearConversationContextUI','setLoadingMessage','startInteraction','isVisible','_getInputPlaceholder','removeItem','showDiff','options','AI_CHAT_WELCOME_MESSAGE','updateSuggestionPartState','startsWith','enableControls','trackChanges','availableModels'];_0x54d1=function(){return _0x3ca6bc;};return _0x54d1();}import{getTranslation as _0x273aee}from'../aicore/utils/common-translations.js';import{IconAIChat as _0xd84c93}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x49c1a5}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x48b8dd}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2a81b1}from'./utils/eventnames.js';function _0x3fdc(_0x5a9afb,_0x1031e7){const _0x54d14e=_0x54d1();return _0x3fdc=function(_0x3fdc7c,_0x405c7a){_0x3fdc7c=_0x3fdc7c-0x104;let _0x26091e=_0x54d14e[_0x3fdc7c];return _0x26091e;},_0x3fdc(_0x5a9afb,_0x1031e7);}import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x37b722}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x10fd3f}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x330b0f{static get[_0x4e3e1b(0x197)](){return[_0x5da74f];}[_0x4e3e1b(0x137)];static get[_0x4e3e1b(0x130)](){const _0x556d3a=_0x4e3e1b;return _0x556d3a(0x1a3);}static get[_0x4e3e1b(0x160)](){return!0x0;}static get[_0x4e3e1b(0x14c)](){return!0x0;}[_0x4e3e1b(0x112)]=_0x4e3e1b(0x13c);[_0x4e3e1b(0x168)]=!0x0;[_0x4e3e1b(0x10b)];[_0x4e3e1b(0x186)];[_0x4e3e1b(0x14f)]=void 0x0;[_0x4e3e1b(0x161)]=!0x1;constructor(_0x3e39f3){const _0x187bdb=_0x4e3e1b;super(_0x3e39f3);const _0x3280d6=this[_0x187bdb(0x13f)][_0x187bdb(0x11d)][_0x187bdb(0x143)](_0x187bdb(0x12c));this[_0x187bdb(0x149)](_0x187bdb(0x18e),!0x1),this[_0x187bdb(0x10b)]=new _0x48b8dd(),this[_0x187bdb(0x137)]=new _0x21655f(this[_0x187bdb(0x13f)][_0x187bdb(0x123)],{'showResizeButton':_0x3280d6[_0x187bdb(0x118)],'contextResourcesSearchInputVisibleFrom':this[_0x187bdb(0x13f)][_0x187bdb(0x13a)][_0x187bdb(0x143)](_0x187bdb(0x17b))}),this[_0x187bdb(0x137)][_0x187bdb(0x11e)](..._0x2a81b1)['to'](this),this[_0x187bdb(0x137)]['on'](_0x187bdb(0x185),(_0x3e61a6,{showDiff:_0x182b2a})=>{const _0xee3b6a=_0x187bdb;this[_0xee3b6a(0x168)]=_0x182b2a;}),_0x3280d6[_0x187bdb(0x190)][_0x187bdb(0x14d)]({'id':_0x187bdb(0x120),'buttonLabel':_0x273aee(this[_0x187bdb(0x13f)][_0x187bdb(0x123)],_0x187bdb(0x173)),'buttonIcon':_0xd84c93,'order':0x0,'content':this[_0x187bdb(0x137)]}),this[_0x187bdb(0x137)][_0x187bdb(0x189)][_0x187bdb(0x184)](_0x187bdb(0x10e))['to'](this,_0x187bdb(0x18e),_0x142dbb=>_0x142dbb),this[_0x187bdb(0x137)][_0x187bdb(0x1a2)][_0x187bdb(0x184)](_0x187bdb(0x159))['to'](this,_0x187bdb(0x18e),_0x222297=>_0x222297),this[_0x187bdb(0x137)][_0x187bdb(0x189)][_0x187bdb(0x13b)](this[_0x187bdb(0x166)]()),this[_0x187bdb(0x184)](_0x187bdb(0x10c))['to'](this[_0x187bdb(0x137)][_0x187bdb(0x189)],_0x187bdb(0x10c));}[_0x4e3e1b(0x191)](){const _0x3ff838=_0x4e3e1b;super[_0x3ff838(0x191)](),this[_0x3ff838(0x14f)]&&clearInterval(this[_0x3ff838(0x14f)]);}[_0x4e3e1b(0x19e)](_0x334de5){const _0x1c46dd=_0x4e3e1b;this[_0x1c46dd(0x137)][_0x1c46dd(0x1a2)][_0x1c46dd(0x17f)](),this[_0x1c46dd(0x137)][_0x1c46dd(0x189)][_0x1c46dd(0x136)](),this[_0x1c46dd(0x137)][_0x1c46dd(0x189)][_0x1c46dd(0x125)](_0x334de5[_0x1c46dd(0x16f)],!this[_0x1c46dd(0x13f)][_0x1c46dd(0x13a)][_0x1c46dd(0x143)](_0x1c46dd(0x1a0))),this[_0x1c46dd(0x194)]({'id':_0x1c46dd(0x182),'staticMessage':_0x273aee(this[_0x1c46dd(0x13f)][_0x1c46dd(0x123)],_0x1c46dd(0x16a))});}[_0x4e3e1b(0x194)]({id:_0x24a09f,staticMessage:_0x3f8a2d}){const _0x8bb6dc=_0x4e3e1b;this[_0x8bb6dc(0x137)][_0x8bb6dc(0x1a2)][_0x8bb6dc(0x132)](_0x8bb6dc(0x127),{'id':_0x24a09f,'initialContent':_0x8bb6dc(0x19b)+_0x3f8a2d+_0x8bb6dc(0x14b)});}[_0x4e3e1b(0x153)](_0x1c0f81){const _0x3c06b9=_0x4e3e1b,_0x459080=_0x1c0f81[_0x3c06b9(0x126)]?.[_0x3c06b9(0x116)]||_0x1c0f81[_0x3c06b9(0x15b)];this[_0x3c06b9(0x137)][_0x3c06b9(0x1a2)][_0x3c06b9(0x132)](_0x3c06b9(0x18a),{'contextItems':Array[_0x3c06b9(0x10d)](_0x1c0f81[_0x3c06b9(0x141)][_0x3c06b9(0x1a7)]()),'initialContent':_0x3c06b9(0x19b)+_0x459080+_0x3c06b9(0x14b),'id':_0x1c0f81['id']});}[_0x4e3e1b(0x1a1)]({errorMessage:_0x5c997d,id:_0x256ae3}){const _0x22bebe=_0x4e3e1b;this[_0x22bebe(0x137)][_0x22bebe(0x1a2)][_0x22bebe(0x132)](_0x22bebe(0x119),{'initialContent':_0x22bebe(0x19b)+_0x5c997d+_0x22bebe(0x14b),'id':_0x256ae3});}[_0x4e3e1b(0x157)](_0x171095){const _0x35db8b=_0x4e3e1b;return this[_0x35db8b(0x10b)][_0x35db8b(0x174)](async()=>{const _0x48204c=_0x35db8b;this[_0x48204c(0x137)][_0x48204c(0x1a2)][_0x48204c(0x132)](_0x48204c(0x127),{'id':_0x171095[_0x48204c(0x180)]+':'+_0x171095['id']}),this[_0x48204c(0x163)](null);});}async[_0x4e3e1b(0x129)](_0x332724){const _0x1f65d0=_0x4e3e1b,_0x312c4a=_0x37b722(this[_0x1f65d0(0x13f)]);let _0x37815f=_0x312c4a[_0x1f65d0(0x13a)][_0x1f65d0(0x143)](_0x1f65d0(0x15c))||[..._0x10fd3f];if(_0x312c4a[_0x1f65d0(0x11d)][_0x1f65d0(0x155)](_0x1f65d0(0x178))){if(!this[_0x1f65d0(0x161)]){this[_0x1f65d0(0x161)]=!0x0;const _0x4c2a27=_0x312c4a[_0x1f65d0(0x151)][_0x1f65d0(0x143)](_0x1f65d0(0x16e));this[_0x1f65d0(0x137)][_0x1f65d0(0x1a2)][_0x1f65d0(0x184)](_0x1f65d0(0x12d))['to'](_0x4c2a27,_0x1f65d0(0x176));}}else _0x37815f=_0x37815f[_0x1f65d0(0x144)](_0x34ed90=>_0x1f65d0(0x19f)!=_0x34ed90);return this[_0x1f65d0(0x10b)][_0x1f65d0(0x174)](async()=>{const _0x44e751=_0x1f65d0;this[_0x44e751(0x137)][_0x44e751(0x1a2)][_0x44e751(0x132)](_0x44e751(0x18b),{'id':_0x332724[_0x44e751(0x180)]+':'+_0x332724['id'],'areActionsDisabled':_0x332724[_0x44e751(0x15d)],'showDiff':this[_0x44e751(0x168)],'availableActions':_0x37815f}),this[_0x44e751(0x163)](null);});}[_0x4e3e1b(0x146)](_0x4e3e1d,_0x2aac8e){const _0x77a190=_0x4e3e1b,_0x429050=this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x1a6)][_0x77a190(0x15e)];if(_0x429050 instanceof _0x49c1a5)return this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x1a6)][_0x77a190(0x12b)](_0x429050),void this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x132)](_0x77a190(0x110),{'id':_0x4e3e1d['id'],'capabilities':{'isWebSearchEnabled':_0x429050[_0x77a190(0x12e)][_0x77a190(0x171)]||_0x2aac8e[_0x77a190(0x171)],'isReasoningEnabled':_0x429050[_0x77a190(0x12e)][_0x77a190(0x15f)]||_0x2aac8e[_0x77a190(0x15f)]}});this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x132)](_0x77a190(0x110),{'id':_0x4e3e1d['id'],'capabilities':_0x2aac8e});}[_0x4e3e1b(0x138)](_0x548f08){const _0x3029f9=_0x4e3e1b,_0xcae46d=this[_0x3029f9(0x137)][_0x3029f9(0x1a2)][_0x3029f9(0x1a6)][_0x3029f9(0x193)](_0x191344=>_0x191344[_0x3029f9(0x169)]['id']==_0x548f08['id']&&_0x191344 instanceof _0x49c1a5);_0xcae46d&&_0xcae46d[_0x3029f9(0x149)](_0x3029f9(0x165),_0x548f08[_0x3029f9(0x165)]);}async[_0x4e3e1b(0x196)](_0x3a16a3){const _0x520f10=_0x4e3e1b,_0x502071=_0x3a16a3[_0x520f10(0x1a5)]||this[_0x520f10(0x112)];return this[_0x520f10(0x10b)][_0x520f10(0x174)](async _0x2b705e=>{const _0x108ca7=_0x520f10;await this[_0x108ca7(0x137)][_0x108ca7(0x1a2)][_0x108ca7(0x104)]({..._0x3a16a3,'abortSignal':_0x2b705e,'renderingStrategy':_0x502071}),_0x3a16a3[_0x108ca7(0x147)]&&this[_0x108ca7(0x11f)](_0x3a16a3['id']);});}[_0x4e3e1b(0x175)](_0x465c5b,_0xe45395){const _0x1e32d7=_0x4e3e1b;this[_0x1e32d7(0x137)][_0x1e32d7(0x1a2)][_0x1e32d7(0x148)](_0x465c5b,_0xe45395);}async[_0x4e3e1b(0x195)](_0x29a328){const _0x599ccd=_0x4e3e1b,_0x2bca9b=_0x29a328[_0x599ccd(0x1a5)]||this[_0x599ccd(0x112)];return this[_0x599ccd(0x10b)][_0x599ccd(0x174)](async _0x156676=>{const _0x1840ce=_0x599ccd;await this[_0x1840ce(0x137)][_0x1840ce(0x1a2)][_0x1840ce(0x188)]({..._0x29a328,'abortSignal':_0x156676,'renderingStrategy':_0x2bca9b}),_0x29a328[_0x1840ce(0x147)]&&this[_0x1840ce(0x11f)](_0x29a328['id']);});}[_0x4e3e1b(0x11b)](_0x2b14bf){const _0x41cef5=_0x4e3e1b;this[_0x41cef5(0x137)][_0x41cef5(0x1a2)][_0x41cef5(0x16b)](_0x2b14bf);}[_0x4e3e1b(0x11f)](_0xb267ed){const _0x4bf56f=_0x4e3e1b;this[_0x4bf56f(0x137)][_0x4bf56f(0x1a2)][_0x4bf56f(0x13d)](_0xb267ed);}[_0x4e3e1b(0x17e)](_0x504a06){const _0x31a47f=_0x4e3e1b;this[_0x31a47f(0x137)][_0x31a47f(0x1a2)][_0x31a47f(0x131)]()[_0x31a47f(0x144)](_0x2a66a7=>_0x2a66a7[_0x31a47f(0x16c)](_0x504a06))[_0x31a47f(0x12a)](_0x435f20=>this[_0x31a47f(0x137)][_0x31a47f(0x1a2)][_0x31a47f(0x167)](_0x435f20));}[_0x4e3e1b(0x164)](){const _0xef4361=_0x4e3e1b;this[_0xef4361(0x163)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0xef4361(0x137)][_0xef4361(0x189)][_0xef4361(0x142)](!this[_0xef4361(0x13f)][_0xef4361(0x13a)][_0xef4361(0x143)](_0xef4361(0x1a0))),this[_0xef4361(0x18e)]=!0x0,this[_0xef4361(0x137)][_0xef4361(0x1a2)][_0xef4361(0x117)]();}[_0x4e3e1b(0x122)](_0x361e65){const _0x37f481=_0x4e3e1b;this[_0x37f481(0x10b)][_0x37f481(0x10a)](),this[_0x37f481(0x137)][_0x37f481(0x1a2)][_0x37f481(0x131)]()[_0x37f481(0x144)](_0x4354cb=>_0x4354cb[_0x37f481(0x16c)](_0x361e65['id']))[_0x37f481(0x12a)](_0x2cf29a=>this[_0x37f481(0x11f)](_0x2cf29a)),this[_0x37f481(0x18e)]=!0x1,this[_0x37f481(0x137)][_0x37f481(0x1a2)][_0x37f481(0x154)]();}async[_0x4e3e1b(0x18f)](){const _0x5efe46=_0x4e3e1b;return this[_0x5efe46(0x10b)][_0x5efe46(0x17d)][_0x5efe46(0x1a9)](()=>{const _0x5d5b56=_0x5efe46;this[_0x5d5b56(0x18e)]=!0x1,this[_0x5d5b56(0x137)][_0x5d5b56(0x1a2)][_0x5d5b56(0x154)]();});}[_0x4e3e1b(0x1a8)](_0x21ef9e,_0x4cb3c2){const _0x541660=_0x4e3e1b;this[_0x541660(0x137)][_0x541660(0x189)][_0x541660(0x1a8)](_0x21ef9e,_0x4cb3c2);}[_0x4e3e1b(0x15a)](_0x2c8d5e){const _0x2f2456=_0x4e3e1b;this[_0x2f2456(0x137)][_0x2f2456(0x189)][_0x2f2456(0x15a)](_0x2c8d5e);}[_0x4e3e1b(0x124)](_0x363c74,_0x5a36d5){const _0x259785=_0x4e3e1b;this[_0x259785(0x137)][_0x259785(0x189)][_0x259785(0x124)](_0x363c74,_0x5a36d5);}[_0x4e3e1b(0x135)](_0x522354){const _0x29df07=_0x4e3e1b;this[_0x29df07(0x137)][_0x29df07(0x189)][_0x29df07(0x135)](_0x522354);}[_0x4e3e1b(0x192)](_0x41d9ad){const _0x307859=_0x4e3e1b;this[_0x307859(0x137)][_0x307859(0x189)][_0x307859(0x192)](_0x41d9ad);}[_0x4e3e1b(0x158)](){const _0xd97a7c=_0x4e3e1b;this[_0xd97a7c(0x137)][_0xd97a7c(0x189)][_0xd97a7c(0x158)]();}[_0x4e3e1b(0x162)](){const _0x45e5f1=_0x4e3e1b;this[_0x45e5f1(0x137)][_0x45e5f1(0x189)][_0x45e5f1(0x162)]();}[_0x4e3e1b(0x18c)](_0x5238ca,_0x3e9c3b,_0x26d790){const _0x533cef=_0x4e3e1b;this[_0x533cef(0x137)][_0x533cef(0x189)][_0x533cef(0x18c)](_0x5238ca,_0x3e9c3b,_0x26d790);}[_0x4e3e1b(0x183)](){const _0x48fada=_0x4e3e1b;this[_0x48fada(0x137)][_0x48fada(0x189)][_0x48fada(0x183)](),this[_0x48fada(0x137)][_0x48fada(0x189)][_0x48fada(0x13b)](this[_0x48fada(0x166)]());}[_0x4e3e1b(0x18d)](_0x3c238c){const _0x528819=_0x4e3e1b;this[_0x528819(0x137)][_0x528819(0x189)][_0x528819(0x18d)](_0x3c238c);}[_0x4e3e1b(0x156)](_0x284803){const _0xdea1ae=_0x4e3e1b;this[_0xdea1ae(0x137)][_0xdea1ae(0x189)][_0xdea1ae(0x121)](_0x284803[_0xdea1ae(0x171)]),this[_0xdea1ae(0x137)][_0xdea1ae(0x189)][_0xdea1ae(0x13e)](_0x284803[_0xdea1ae(0x15f)]),this[_0xdea1ae(0x137)][_0xdea1ae(0x189)][_0xdea1ae(0x13b)](this[_0xdea1ae(0x166)](_0x284803));}[_0x4e3e1b(0x133)](_0x582551,_0x25071e){const _0x23433b=_0x4e3e1b;this[_0x23433b(0x137)][_0x23433b(0x189)][_0x23433b(0x179)](_0x582551),_0x25071e&&this[_0x23433b(0x137)][_0x23433b(0x189)][_0x23433b(0x142)](!0x1);}[_0x4e3e1b(0x19a)](_0x109cf0){const _0x568ddf=_0x4e3e1b;this[_0x568ddf(0x112)]=_0x109cf0;}[_0x4e3e1b(0x12f)](_0x1c8030){const _0x551f28=_0x4e3e1b;this[_0x551f28(0x137)][_0x551f28(0x1a2)][_0x551f28(0x12f)](_0x1c8030);}[_0x4e3e1b(0x11c)](){const _0x44fceb=_0x4e3e1b;this[_0x44fceb(0x109)](_0x273aee(this[_0x44fceb(0x13f)][_0x44fceb(0x123)],_0x44fceb(0x173)));}[_0x4e3e1b(0x109)](_0x24c2b2,_0x5c31c1=!0x1){const _0x11419c=_0x4e3e1b;if(_0x5c31c1&&!_0x262090()&&_0x24c2b2[_0x11419c(0x19d)])return this[_0x11419c(0x137)][_0x11419c(0x177)][_0x11419c(0x145)]='',void this[_0x11419c(0x150)](_0x24c2b2);this[_0x11419c(0x137)][_0x11419c(0x177)][_0x11419c(0x145)]=_0x24c2b2;}[_0x4e3e1b(0x163)](_0x29b029){const _0x14aaed=_0x4e3e1b,_0xab2cdf=this[_0x14aaed(0x14e)](_0x29b029);this[_0x14aaed(0x137)][_0x14aaed(0x1a2)][_0x14aaed(0x163)](_0xab2cdf);}[_0x4e3e1b(0x150)](_0x11b1e7){const _0x2ce424=_0x4e3e1b;let _0x5a5e1b=0x0;clearInterval(this[_0x2ce424(0x14f)]),this[_0x2ce424(0x14f)]=setInterval(()=>{const _0x218b90=_0x2ce424;this[_0x218b90(0x137)][_0x218b90(0x177)][_0x218b90(0x145)]=this[_0x218b90(0x137)][_0x218b90(0x177)][_0x218b90(0x145)]+_0x11b1e7[_0x5a5e1b],_0x5a5e1b++,_0x5a5e1b===_0x11b1e7[_0x218b90(0x19d)]&&clearInterval(this[_0x218b90(0x14f)]);},0x1e);}[_0x4e3e1b(0x199)](_0x4c7a7c){const _0x32d7bc=_0x4e3e1b;this[_0x32d7bc(0x137)][_0x32d7bc(0x177)][_0x32d7bc(0x152)]=_0x4c7a7c;}[_0x4e3e1b(0x14e)](_0xa7dca9){const _0x8bd827=_0x4e3e1b;return _0xa7dca9?_0xa7dca9[_0x8bd827(0x171)]&&_0xa7dca9[_0x8bd827(0x15f)]?_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x14a)):_0xa7dca9[_0x8bd827(0x171)]?_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x107)):_0xa7dca9[_0x8bd827(0x15f)]?_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x134)):_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x172)):'';}[_0x4e3e1b(0x166)](_0x5c13cb){const _0x12679a=_0x4e3e1b;return _0x5c13cb?_0x5c13cb[_0x12679a(0x171)]&&_0x5c13cb[_0x12679a(0x15f)]?_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x11a)):_0x5c13cb[_0x12679a(0x171)]?_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x108)):_0x5c13cb[_0x12679a(0x15f)]?_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x114)):_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x10f)):_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x10f));}[_0x4e3e1b(0x128)](_0x309970,_0x568191,_0x126a74,_0x51e21e){const _0x286f27=_0x4e3e1b;this[_0x286f27(0x137)][_0x286f27(0x128)](_0x309970,_0x568191,_0x126a74,_0x51e21e);}[_0x4e3e1b(0x170)](_0x22dfaf){const _0x366f95=_0x4e3e1b;this[_0x366f95(0x137)][_0x366f95(0x170)](_0x22dfaf);}[_0x4e3e1b(0x106)](){const _0x88f428=_0x4e3e1b;this[_0x88f428(0x137)][_0x88f428(0x189)][_0x88f428(0x106)]();}[_0x4e3e1b(0x181)](_0x37a626,_0x2a32de){const _0x3e0171=_0x4e3e1b;this[_0x3e0171(0x137)][_0x3e0171(0x1a2)][_0x3e0171(0x17a)](_0x37a626,_0x2a32de);}[_0x4e3e1b(0x117)](){const _0x13165=_0x4e3e1b;this[_0x13165(0x137)][_0x13165(0x1a2)][_0x13165(0x117)]();}[_0x4e3e1b(0x17c)](){const _0x2c87d2=_0x4e3e1b;this[_0x2c87d2(0x137)][_0x2c87d2(0x189)][_0x2c87d2(0x140)]=!0x0;}[_0x4e3e1b(0x16d)](){const _0x3b6677=_0x4e3e1b;this[_0x3b6677(0x137)][_0x3b6677(0x189)][_0x3b6677(0x140)]=!0x1;}}
|