@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.0-alpha.5
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/aiassistant/aiassistantediting.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/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.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/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.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/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/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/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.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/documentrange.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/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/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/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.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/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/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x39ed23=_0x2b0d;function _0x3c20(){const _0x442ab2=['parse','trim','1128pFfCSo','stringify','getItem','last','CKEditor/AIFormView/PromptHistory','length','addMany','prompt','add','_loadFromSessionStorage','179190aSBphR','_saveToSessionStorage','1097290fOLyeF','386HRynTu','remove','4615080otclLW','8595bsTHdQ','5257742BSHaBF','2158792adYRKD','setItem','toLowerCase','416114dwyryk','map'];_0x3c20=function(){return _0x442ab2;};return _0x3c20();}(function(_0x5e6eb2,_0x1a1c29){const _0x1e7aba=_0x2b0d,_0x5da8d=_0x5e6eb2();while(!![]){try{const _0x44b612=parseInt(_0x1e7aba(0x79))/0x1+parseInt(_0x1e7aba(0x71))/0x2*(-parseInt(_0x1e7aba(0x74))/0x3)+-parseInt(_0x1e7aba(0x76))/0x4+-parseInt(_0x1e7aba(0x70))/0x5+-parseInt(_0x1e7aba(0x73))/0x6+-parseInt(_0x1e7aba(0x75))/0x7+-parseInt(_0x1e7aba(0x7d))/0x8*(-parseInt(_0x1e7aba(0x6e))/0x9);if(_0x44b612===_0x1a1c29)break;else _0x5da8d['push'](_0x5da8d['shift']());}catch(_0x82c9c6){_0x5da8d['push'](_0x5da8d['shift']());}}}(_0x3c20,0x5f77d));import{Collection as _0x4ecf77}from'ckeditor5/src/utils.js';function _0x2b0d(_0x1a3c8d,_0x20f521){const _0x3c2060=_0x3c20();return _0x2b0d=function(_0x2b0dac,_0x51c0e6){_0x2b0dac=_0x2b0dac-0x67;let _0x24a422=_0x3c2060[_0x2b0dac];return _0x24a422;},_0x2b0d(_0x1a3c8d,_0x20f521);}const So=_0x39ed23(0x68);export class PromptHistory extends _0x4ecf77{constructor(){const _0x50772a=_0x39ed23;super(),this[_0x50772a(0x6d)](),this['on'](_0x50772a(0x6c),(_0x210e5e,_0x313619)=>{const _0xf4137d=_0x50772a,_0x5bce9f=fo(_0x313619[_0xf4137d(0x6b)]);for(const _0x5e13b4 of this)if(_0x5e13b4!=_0x313619&&fo(_0x5e13b4[_0xf4137d(0x6b)])===_0x5bce9f){this[_0xf4137d(0x72)](_0x5e13b4);break;}this[_0xf4137d(0x69)]>0x14&&this[_0xf4137d(0x72)](this[_0xf4137d(0x67)]),this[_0xf4137d(0x6f)]();}),this['on'](_0x50772a(0x72),()=>{const _0x237b87=_0x50772a;this[_0x237b87(0x6f)]();});}[_0x39ed23(0x6d)](){const _0x907349=_0x39ed23,_0x550e7d=sessionStorage[_0x907349(0x7f)](So)||'[]';this[_0x907349(0x6a)](JSON[_0x907349(0x7b)](_0x550e7d));}[_0x39ed23(0x6f)](){const _0x1c77eb=_0x39ed23;sessionStorage[_0x1c77eb(0x77)](So,JSON[_0x1c77eb(0x7e)](this[_0x1c77eb(0x7a)](_0x147902=>_0x147902)));}}function fo(_0x189250){const _0x304a28=_0x39ed23;return _0x189250[_0x304a28(0x78)]()[_0x304a28(0x7c)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5ea975=_0x323d;(function(_0x46ff0c,_0x1be69e){const _0x5565e1=_0x323d,_0x548a0e=_0x46ff0c();while(!![]){try{const _0x32f995=parseInt(_0x5565e1(0x10e))/0x1*(-parseInt(_0x5565e1(0x100))/0x2)+-parseInt(_0x5565e1(0x163))/0x3+-parseInt(_0x5565e1(0x15b))/0x4*(-parseInt(_0x5565e1(0x12c))/0x5)+-parseInt(_0x5565e1(0x121))/0x6*(-parseInt(_0x5565e1(0x10f))/0x7)+-parseInt(_0x5565e1(0x166))/0x8*(parseInt(_0x5565e1(0x165))/0x9)+-parseInt(_0x5565e1(0x114))/0xa*(-parseInt(_0x5565e1(0x145))/0xb)+-parseInt(_0x5565e1(0x128))/0xc*(parseInt(_0x5565e1(0x105))/0xd);if(_0x32f995===_0x1be69e)break;else _0x548a0e['push'](_0x548a0e['shift']());}catch(_0x22e48c){_0x548a0e['push'](_0x548a0e['shift']());}}}(_0x1bab,0x7114b));import{ContextPlugin as _0x407e92}from'ckeditor5/src/core.js';import{AIConnector as _0x404b18}from'../aicore/aiconnector.js';function _0x323d(_0x2d2733,_0x7fac2e){const _0x1bab38=_0x1bab();return _0x323d=function(_0x323dfb,_0x3ff277){_0x323dfb=_0x323dfb-0xfa;let _0x3c6af2=_0x1bab38[_0x323dfb];return _0x3c6af2;},_0x323d(_0x2d2733,_0x7fac2e);}import{AIEditing as _0x2fff82}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4fe0c8,AIBalloonView as _0x5f04eb}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1e3435}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x5e2c65,Rect as _0x4c9155,scrollViewportToShowTarget as _0x4e56ba}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x34a7a2}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x12605b}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0xce12da}from'../aicore/utils/common-translations.js';function _0x1bab(){const _0x4490ca=['$graveyard','_isUpdatingMarkers','requires','get','root','ranges','show','differ','isOfficialPlugin','22NtnxTB','isOpen','startsWith','delegate','filter','2977nsHnfs','commands','_showDialog','change','AIBalloon','view','trackChanges','window','markers','28195lTwsdU','455aMBuis','bind','updateContent','hide','_setupVisualSelection','250iuDvrt','left','locale','_calculateOptimalTopPosition','showRotator','plugins','fire','off','\x20ai-balloon-rotator','render','headerView','isPremiumPlugin','_cleanupMarkerRemovalListener','74778UwNyRb','top','width','showFakeVisualSelection','end','label','getIntersection','15996bkjZpe','ai-selection:','once','getMarkersGroup','1187005rpyycv','Dialog','config','stopAutoScroll','_calculateDialogPosition','balloonView','editing','_setupMarkerRemovalListener','stopListening','ai-balloon-selection','mainView','content','AIEditing','_getSelectionElements','hideFakeVisualSelection','ai.availableReplyActions','showBlockingError','ai-balloon-','listenTo','document','updatePosition','startAutoScroll','title','dialogClosed','ai-selection','25487yJXryp','rootName','start','selectionRemoved','length','getChangedMarkers','context','_updateBalloon','setupRotator','height','isTrackChangesOn','_config','icon','pluginName','aiBalloon','AI_ACTIONS_SELECTION_REMOVED_ERROR','model','round','getBoundingRect','close','open','_pendingRenderCallback','12uYvUUL','value','index','getVisible','ai-balloon','iconView','max','isEqual','286362oaHsQi','bottom','108obOlGm','270792xxbUgw'];_0x1bab=function(){return _0x4490ca;};return _0x1bab();}export const AI_BALLOON_EVENT_NAMES=[..._0x4fe0c8,_0x5ea975(0x143),_0x5ea975(0x148)];const z=0xa;export class AIBalloon extends _0x407e92{static get[_0x5ea975(0x169)](){return[_0x404b18,_0x2fff82];}static get[_0x5ea975(0x152)](){const _0x518604=_0x5ea975;return _0x518604(0x109);}static get[_0x5ea975(0xff)](){return!0x0;}static get[_0x5ea975(0x11f)](){return!0x0;}[_0x5ea975(0x101)]=!0x1;[_0x5ea975(0x150)];[_0x5ea975(0x168)]=!0x1;[_0x5ea975(0x15a)]=null;[_0x5ea975(0x159)](_0x47b3ce){const _0x29131a=_0x5ea975,_0x403316=_0x34a7a2(this[_0x29131a(0x14b)]);if(this[_0x29131a(0x150)]=_0x47b3ce,this[_0x29131a(0x101)])return void this[_0x29131a(0x14c)](_0x47b3ce);const _0x100535=this[_0x29131a(0x14b)][_0x29131a(0x12e)][_0x29131a(0xfa)](_0x29131a(0x13b))||[..._0x12605b],_0x2339da=_0x403316?.[_0x29131a(0x106)][_0x29131a(0xfa)](_0x29131a(0x10b)),_0x229a3e=_0x2339da?.[_0x29131a(0x15c)];this[_0x29131a(0x131)]=new _0x5f04eb(_0x403316[_0x29131a(0x116)],_0x47b3ce,_0x100535,!!_0x229a3e),this[_0x29131a(0x131)][_0x29131a(0x103)](..._0x4fe0c8)['to'](this),_0x2339da&&this[_0x29131a(0x131)][_0x29131a(0x110)](_0x29131a(0x14f))['to'](_0x2339da,_0x29131a(0x15c)),this[_0x29131a(0x107)](_0x47b3ce);}[_0x5ea975(0x158)](){const _0x145401=_0x5ea975;_0x34a7a2(this[_0x145401(0x14b)])[_0x145401(0x119)][_0x145401(0xfa)](_0x145401(0x12d))[_0x145401(0x112)]();}[_0x5ea975(0x141)](){const _0xcbefe7=_0x5ea975;this[_0xcbefe7(0x131)]&&this[_0xcbefe7(0x131)][_0xcbefe7(0x141)]();}[_0x5ea975(0x12f)](){const _0x4d09bf=_0x5ea975;this[_0x4d09bf(0x131)]&&this[_0x4d09bf(0x131)][_0x4d09bf(0x12f)]();}[_0x5ea975(0x14c)](_0x26b50f){const _0x8778ee=_0x5ea975,_0x5a81ee=_0x34a7a2(this[_0x8778ee(0x14b)]),_0x1e9257=_0x5a81ee[_0x8778ee(0x119)][_0x8778ee(0xfa)](_0x8778ee(0x12d));this[_0x8778ee(0x15a)]&&(_0x5a81ee[_0x8778ee(0x132)][_0x8778ee(0x10a)][_0x8778ee(0x11b)](_0x8778ee(0x11d),this[_0x8778ee(0x15a)]),this[_0x8778ee(0x15a)]=null),this[_0x8778ee(0x168)]=!0x0,_0x1e9257[_0x8778ee(0x10a)]?.[_0x8778ee(0x11e)]&&(_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x126)]=_0x26b50f[_0x8778ee(0x142)],_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x160)]&&_0x26b50f[_0x8778ee(0x151)]&&(_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x160)][_0x8778ee(0x137)]=_0x26b50f[_0x8778ee(0x151)])),this[_0x8778ee(0x131)][_0x8778ee(0x111)](_0x26b50f[_0x8778ee(0x136)]),this[_0x8778ee(0x113)](_0x26b50f[_0x8778ee(0xfc)],_0x26b50f[_0x8778ee(0x15d)]),this[_0x8778ee(0x15a)]=()=>{const _0x5bcf99=_0x8778ee;this[_0x5bcf99(0x168)]=!0x1,this[_0x5bcf99(0x15a)]=null,_0x1e9257[_0x5bcf99(0x10a)]&&_0x1e9257[_0x5bcf99(0x10a)][_0x5bcf99(0x140)]();},_0x5a81ee[_0x8778ee(0x132)][_0x8778ee(0x10a)][_0x8778ee(0x12a)](_0x8778ee(0x11d),this[_0x8778ee(0x15a)]);}[_0x5ea975(0x113)](_0xf3bbf9,_0x38a2d8){const _0x11d20d=_0x5ea975;this[_0x11d20d(0x14b)][_0x11d20d(0x119)][_0x11d20d(0xfa)](_0x2fff82)[_0x11d20d(0x124)](_0xf3bbf9,_0x11d20d(0x13d)+_0x38a2d8,!0x0,!0x0);}[_0x5ea975(0x107)](_0x530a59){const _0x14d379=_0x5ea975,_0xfd551f=_0x34a7a2(this[_0x14d379(0x14b)]);this[_0x14d379(0x113)](_0x530a59[_0x14d379(0xfc)],_0x530a59[_0x14d379(0x15d)]);const _0x3f99d3=this[_0x14d379(0x139)]();_0x3f99d3&&_0x3f99d3[0x0]&&_0x4e56ba({'target':_0x3f99d3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0xfd551f[_0x14d379(0x119)][_0x14d379(0xfa)](_0x14d379(0x12d))[_0x14d379(0xfd)]({'title':_0x530a59[_0x14d379(0x142)],'icon':_0x530a59[_0x14d379(0x151)],'hasCloseButton':!0x0,'id':_0x14d379(0x153),'position':this[_0x14d379(0x130)][_0x14d379(0x110)](this),'className':_0x14d379(0x15f)+(_0x530a59[_0x14d379(0x118)]?_0x14d379(0x11c):''),'content':this[_0x14d379(0x131)],'onShow':_0x265616=>{const _0x416eb4=_0x14d379;_0x530a59[_0x416eb4(0x118)]&&this[_0x416eb4(0x131)][_0x416eb4(0x14d)](_0x265616),this[_0x416eb4(0x133)](),this[_0x416eb4(0x101)]=!0x0;},'onHide':()=>{const _0x50b760=_0x14d379;this[_0x50b760(0x14b)][_0x50b760(0x119)][_0x50b760(0xfa)](_0x50b760(0x138))[_0x50b760(0x13a)](_0x50b760(0x13d)+this[_0x50b760(0x150)][_0x50b760(0x15d)]),this[_0x50b760(0x120)](),this[_0x50b760(0x11a)](_0x50b760(0x143)),this[_0x50b760(0x101)]=!0x1;}});}[_0x5ea975(0x130)](_0x1a1ba2,_0x3a321c){const _0x59b99a=_0x5ea975;if(!_0x3a321c)return null;const _0x4897bf=this[_0x59b99a(0x139)]();if(!_0x4897bf||0x0===_0x4897bf[_0x59b99a(0x149)])return{'left':Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x115)]+_0x3a321c[_0x59b99a(0x123)]/0x2-_0x1a1ba2[_0x59b99a(0x123)]/0x2),'top':Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x122)]+_0x3a321c[_0x59b99a(0x14e)]/0x2-_0x1a1ba2[_0x59b99a(0x14e)]/0x2)};const _0x3e43eb=Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x115)]+_0x3a321c[_0x59b99a(0x123)]/0x2-_0x1a1ba2[_0x59b99a(0x123)]/0x2),_0x4a18fe=new _0x4c9155(_0x4897bf[0x0]),_0x1304be=new _0x4c9155(_0x4897bf[_0x4897bf[_0x59b99a(0x149)]-0x1]),_0x38077c=_0x1a1ba2[_0x59b99a(0x14e)],_0x1129fb=this[_0x59b99a(0x150)][_0x59b99a(0x118)]?0x8:0x0;return{'left':_0x3e43eb,'top':this[_0x59b99a(0x117)](_0x4a18fe,_0x1304be,_0x38077c,_0x1129fb,_0x3a321c)};}[_0x5ea975(0x117)](_0x261b7f,_0x57da5b,_0xde42aa,_0x187d0=0x0,_0x44b79a){const _0x5ee510=_0x5ea975,_0x5630f8=_0xde42aa+_0x187d0,_0x28da65=new _0x4c9155(_0x5e2c65[_0x5ee510(0x10c)]),_0x50ab03=[_0x261b7f[_0x5ee510(0x15e)](),_0x57da5b[_0x5ee510(0x15e)]()][_0x5ee510(0x104)](_0x1901da=>_0x1901da),_0x5a3a00=_0x4c9155[_0x5ee510(0x157)](_0x50ab03);if(!_0x5a3a00)return Math[_0x5ee510(0x156)](_0x44b79a[_0x5ee510(0x122)]+_0x44b79a[_0x5ee510(0x14e)]/0x2);const _0x57f397=_0x28da65[_0x5ee510(0x127)](_0x5a3a00);if(!_0x57f397)return Math[_0x5ee510(0x156)](_0x44b79a[_0x5ee510(0x122)]+_0x44b79a[_0x5ee510(0x14e)]/0x2);const _0xc4aec2=_0x44b79a[_0x5ee510(0x15e)](),_0x4386d5=_0xc4aec2&&_0x5a3a00[_0x5ee510(0x14e)]>_0xc4aec2[_0x5ee510(0x14e)],_0x3bcf4c=_0x57f397[_0x5ee510(0x122)],_0x5c0aac=_0x57f397[_0x5ee510(0x164)];if(_0x4386d5){const _0x5bb331=(_0xc4aec2||_0x28da65)[_0x5ee510(0x14e)]/0x2-_0x5630f8/0x2,_0x395f43=_0x3bcf4c-z-_0x44b79a[_0x5ee510(0x122)],_0x1c6ef2=_0x44b79a[_0x5ee510(0x164)]-_0x5c0aac-z;return _0x395f43>=_0x5630f8?Math[_0x5ee510(0x161)](z,_0x3bcf4c-_0x5630f8-z):_0x1c6ef2>=_0x5630f8?_0x5c0aac+z:Math[_0x5ee510(0x161)](z,_0x5bb331);}const _0x1ea37b=_0x3bcf4c-_0x5630f8,_0x41ad82=_0x44b79a[_0x5ee510(0x164)]-_0x5c0aac-z,_0x38a703=_0x3bcf4c-z-_0x44b79a[_0x5ee510(0x122)];let _0x2a00b2;if(_0x41ad82>=_0x5630f8)_0x2a00b2=_0x5c0aac+z;else{if(_0x38a703>=_0x5630f8)_0x2a00b2=_0x1ea37b-z;else _0x2a00b2=_0x3bcf4c+_0x5a3a00[_0x5ee510(0x14e)]/0x2-_0x5630f8/0x2;}return _0x2a00b2;}[_0x5ea975(0x133)](){const _0x27e0c7=_0x5ea975,_0x52d944=_0x34a7a2(this[_0x27e0c7(0x14b)]);this[_0x27e0c7(0x13e)](_0x52d944[_0x27e0c7(0x155)][_0x27e0c7(0x13f)],_0x27e0c7(0x108),()=>{const _0x2486de=_0x27e0c7;if(this[_0x2486de(0x168)])return;for(const {name:_0x51eb54,data:{newRange:_0xe60a2}}of _0x52d944[_0x2486de(0x155)][_0x2486de(0x13f)][_0x2486de(0xfe)][_0x2486de(0x14a)]())if(_0x51eb54[_0x2486de(0x102)](_0x2486de(0x129))&&(_0xe60a2&&(_0xe60a2[_0x2486de(0x147)][_0x2486de(0x162)](_0xe60a2[_0x2486de(0x125)])||_0x2486de(0x167)==_0xe60a2[_0x2486de(0xfb)][_0x2486de(0x146)])||null==_0xe60a2)){const _0x22e9c9=_0xce12da(this[_0x2486de(0x14b)][_0x2486de(0x116)],_0x2486de(0x154));this[_0x2486de(0x131)][_0x2486de(0x13c)](_0x22e9c9),this[_0x2486de(0x11a)](_0x2486de(0x148));}});}[_0x5ea975(0x120)](){const _0x33ec56=_0x5ea975,_0x17f95a=_0x34a7a2(this[_0x33ec56(0x14b)]);this[_0x33ec56(0x134)](_0x17f95a[_0x33ec56(0x155)][_0x33ec56(0x13f)]);}[_0x5ea975(0x139)](){const _0x569b48=_0x5ea975,_0x373ca8=_0x34a7a2(this[_0x569b48(0x14b)]);return _0x1e3435(_0x373ca8[_0x569b48(0x132)],[..._0x373ca8[_0x569b48(0x155)][_0x569b48(0x10d)][_0x569b48(0x12b)](_0x569b48(0x144)),..._0x373ca8[_0x569b48(0x155)][_0x569b48(0x10d)][_0x569b48(0x12b)](_0x569b48(0x135))]);}}
|
|
23
|
+
const _0xecb3e7=_0x3e1c;(function(_0x16e035,_0x3ed646){const _0x1f2640=_0x3e1c,_0x70dcd3=_0x16e035();while(!![]){try{const _0x156331=-parseInt(_0x1f2640(0x188))/0x1+-parseInt(_0x1f2640(0x18a))/0x2*(-parseInt(_0x1f2640(0x1b0))/0x3)+parseInt(_0x1f2640(0x18f))/0x4*(-parseInt(_0x1f2640(0x1a8))/0x5)+-parseInt(_0x1f2640(0x1a3))/0x6*(parseInt(_0x1f2640(0x199))/0x7)+parseInt(_0x1f2640(0x16b))/0x8*(-parseInt(_0x1f2640(0x19d))/0x9)+parseInt(_0x1f2640(0x171))/0xa+parseInt(_0x1f2640(0x19a))/0xb*(parseInt(_0x1f2640(0x155))/0xc);if(_0x156331===_0x3ed646)break;else _0x70dcd3['push'](_0x70dcd3['shift']());}catch(_0x5b9427){_0x70dcd3['push'](_0x70dcd3['shift']());}}}(_0x367f,0xf0996));import{ContextPlugin as _0x34d93a}from'ckeditor5/src/core.js';import{AIConnector as _0x2e8acf}from'../aicore/aiconnector.js';import{AIEditing as _0xed72c8}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xc8d226,AIBalloonView as _0x250920}from'./ui/aiballoonview.js';function _0x3e1c(_0x28667b,_0x268a72){const _0x367fe9=_0x367f();return _0x3e1c=function(_0x3e1c28,_0x24d3d9){_0x3e1c28=_0x3e1c28-0x150;let _0x343c7b=_0x367fe9[_0x3e1c28];return _0x343c7b;},_0x3e1c(_0x28667b,_0x268a72);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1ac766}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1593c4,Rect as _0x17046d,scrollViewportToShowTarget as _0x4d619d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x268051}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xd90966}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4e1504}from'../aicore/utils/common-translations.js';function _0x367f(){const _0x10bd09=['Dialog','AI_ACTIONS_SELECTION_REMOVED_ERROR','stopListening','8SrqPxe','once','headerView','delegate','markers','change','stopAutoScroll','render','ai-selection','mainView','33544PaDsly','33JkoQrX','listenTo','start','842121wSxOSf','_config','getChangedMarkers','updatePosition','iconView','_setupMarkerRemovalListener','834RMlDkQ','fire','_setupVisualSelection','label','ai-balloon','363985fFVuUv','setupRotator','plugins','ai-balloon-selection','view','value','width','_isUpdatingMarkers','3FJchom','max','top','open','root','ai.availableReplyActions','filter','show','ai-selection:','editing','locale','_cleanupMarkerRemovalListener','ai-balloon-','\x20ai-balloon-rotator','getIntersection','index','_calculateDialogPosition','pluginName','getMarkersGroup','config','7942548XMBFXt','get','length','round','title','showRotator','_calculateOptimalTopPosition','_updateBalloon','commands','document','getBoundingRect','_pendingRenderCallback','startAutoScroll','AIBalloon','requires','isOpen','showBlockingError','trackChanges','differ','dialogClosed','end','model','8slTKHW','isPremiumPlugin','context','ranges','icon','height','3110820txMtlk','isEqual','startsWith','balloonView','hideFakeVisualSelection','off','left','selectionRemoved','hide','updateContent','AIEditing','_getSelectionElements','close','window','content','rootName','getVisible','_showDialog','bind','aiBalloon','isTrackChangesOn','showFakeVisualSelection','isOfficialPlugin','1298851iMxxWC','bottom','1785754RKCxPI','$graveyard'];_0x367f=function(){return _0x10bd09;};return _0x367f();}export const AI_BALLOON_EVENT_NAMES=[..._0xc8d226,_0xecb3e7(0x168),_0xecb3e7(0x178)];const ut=0xa;export class AIBalloon extends _0x34d93a{static get[_0xecb3e7(0x163)](){return[_0x2e8acf,_0xed72c8];}static get[_0xecb3e7(0x152)](){const _0x178b13=_0xecb3e7;return _0x178b13(0x162);}static get[_0xecb3e7(0x187)](){return!0x0;}static get[_0xecb3e7(0x16c)](){return!0x0;}[_0xecb3e7(0x164)]=!0x1;[_0xecb3e7(0x19e)];[_0xecb3e7(0x1af)]=!0x1;[_0xecb3e7(0x160)]=null;[_0xecb3e7(0x1b3)](_0x40b0bf){const _0x25cb71=_0xecb3e7,_0x50771c=_0x268051(this[_0x25cb71(0x16d)]);if(this[_0x25cb71(0x19e)]=_0x40b0bf,this[_0x25cb71(0x164)])return void this[_0x25cb71(0x15c)](_0x40b0bf);const _0x117033=this[_0x25cb71(0x16d)][_0x25cb71(0x154)][_0x25cb71(0x156)](_0x25cb71(0x1b5))||[..._0xd90966],_0x10e788=_0x50771c?.[_0x25cb71(0x15d)][_0x25cb71(0x156)](_0x25cb71(0x166)),_0x44d3e7=_0x10e788?.[_0x25cb71(0x1ad)];this[_0x25cb71(0x174)]=new _0x250920(_0x50771c[_0x25cb71(0x1ba)],_0x40b0bf,_0x117033,!!_0x44d3e7),this[_0x25cb71(0x174)][_0x25cb71(0x192)](..._0xc8d226)['to'](this),_0x10e788&&this[_0x25cb71(0x174)][_0x25cb71(0x183)](_0x25cb71(0x185))['to'](_0x10e788,_0x25cb71(0x1ad)),this[_0x25cb71(0x182)](_0x40b0bf);}[_0xecb3e7(0x17d)](){const _0x5bf58c=_0xecb3e7;_0x268051(this[_0x5bf58c(0x16d)])[_0x5bf58c(0x1aa)][_0x5bf58c(0x156)](_0x5bf58c(0x18c))[_0x5bf58c(0x179)]();}[_0xecb3e7(0x161)](){const _0x25145e=_0xecb3e7;this[_0x25145e(0x174)]&&this[_0x25145e(0x174)][_0x25145e(0x161)]();}[_0xecb3e7(0x195)](){const _0x4ee71a=_0xecb3e7;this[_0x4ee71a(0x174)]&&this[_0x4ee71a(0x174)][_0x4ee71a(0x195)]();}[_0xecb3e7(0x15c)](_0x5df7c8){const _0x4b3106=_0xecb3e7,_0x4642e8=_0x268051(this[_0x4b3106(0x16d)]),_0x210637=_0x4642e8[_0x4b3106(0x1aa)][_0x4b3106(0x156)](_0x4b3106(0x18c));this[_0x4b3106(0x160)]&&(_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x176)](_0x4b3106(0x196),this[_0x4b3106(0x160)]),this[_0x4b3106(0x160)]=null),this[_0x4b3106(0x1af)]=!0x0,_0x210637[_0x4b3106(0x1ac)]?.[_0x4b3106(0x191)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a6)]=_0x5df7c8[_0x4b3106(0x159)],_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)]&&_0x5df7c8[_0x4b3106(0x16f)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)][_0x4b3106(0x17f)]=_0x5df7c8[_0x4b3106(0x16f)])),this[_0x4b3106(0x174)][_0x4b3106(0x17a)](_0x5df7c8[_0x4b3106(0x198)]),this[_0x4b3106(0x1a5)](_0x5df7c8[_0x4b3106(0x16e)],_0x5df7c8[_0x4b3106(0x150)]),this[_0x4b3106(0x160)]=()=>{const _0x5ce0f0=_0x4b3106;this[_0x5ce0f0(0x1af)]=!0x1,this[_0x5ce0f0(0x160)]=null,_0x210637[_0x5ce0f0(0x1ac)]&&_0x210637[_0x5ce0f0(0x1ac)][_0x5ce0f0(0x1a0)]();},_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x190)](_0x4b3106(0x196),this[_0x4b3106(0x160)]);}[_0xecb3e7(0x1a5)](_0x3c18b0,_0x44dc44){const _0x77f0e8=_0xecb3e7;this[_0x77f0e8(0x16d)][_0x77f0e8(0x1aa)][_0x77f0e8(0x156)](_0xed72c8)[_0x77f0e8(0x186)](_0x3c18b0,_0x77f0e8(0x1bc)+_0x44dc44,!0x0,!0x0);}[_0xecb3e7(0x182)](_0x5f379b){const _0x224953=_0xecb3e7,_0xaf92b9=_0x268051(this[_0x224953(0x16d)]);this[_0x224953(0x1a5)](_0x5f379b[_0x224953(0x16e)],_0x5f379b[_0x224953(0x150)]);const _0xb70ed0=this[_0x224953(0x17c)]();_0xb70ed0&&_0xb70ed0[0x0]&&_0x4d619d({'target':_0xb70ed0[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0xaf92b9[_0x224953(0x1aa)][_0x224953(0x156)](_0x224953(0x18c))[_0x224953(0x1b7)]({'title':_0x5f379b[_0x224953(0x159)],'icon':_0x5f379b[_0x224953(0x16f)],'hasCloseButton':!0x0,'id':_0x224953(0x184),'position':this[_0x224953(0x151)][_0x224953(0x183)](this),'className':_0x224953(0x1a7)+(_0x5f379b[_0x224953(0x15a)]?_0x224953(0x1bd):''),'content':this[_0x224953(0x174)],'onShow':_0x38c7fb=>{const _0x8dcf3e=_0x224953;_0x5f379b[_0x8dcf3e(0x15a)]&&this[_0x8dcf3e(0x174)][_0x8dcf3e(0x1a9)](_0x38c7fb),this[_0x8dcf3e(0x1a2)](),this[_0x8dcf3e(0x164)]=!0x0;},'onHide':()=>{const _0x49f8bf=_0x224953;this[_0x49f8bf(0x16d)][_0x49f8bf(0x1aa)][_0x49f8bf(0x156)](_0x49f8bf(0x17b))[_0x49f8bf(0x175)](_0x49f8bf(0x1bc)+this[_0x49f8bf(0x19e)][_0x49f8bf(0x150)]),this[_0x49f8bf(0x1bb)](),this[_0x49f8bf(0x1a4)](_0x49f8bf(0x168)),this[_0x49f8bf(0x164)]=!0x1;}});}[_0xecb3e7(0x151)](_0x567d64,_0xa37765){const _0x877832=_0xecb3e7;if(!_0xa37765)return null;const _0x4f814e=this[_0x877832(0x17c)]();if(!_0x4f814e||0x0===_0x4f814e[_0x877832(0x157)])return{'left':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),'top':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x1b2)]+_0xa37765[_0x877832(0x170)]/0x2-_0x567d64[_0x877832(0x170)]/0x2)};const _0x4d8fb3=Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),_0x1ce0c3=new _0x17046d(_0x4f814e[0x0]),_0x5d88af=new _0x17046d(_0x4f814e[_0x4f814e[_0x877832(0x157)]-0x1]),_0x5da642=_0x567d64[_0x877832(0x170)],_0x5a7e67=this[_0x877832(0x19e)][_0x877832(0x15a)]?0x8:0x0;return{'left':_0x4d8fb3,'top':this[_0x877832(0x15b)](_0x1ce0c3,_0x5d88af,_0x5da642,_0x5a7e67,_0xa37765)};}[_0xecb3e7(0x15b)](_0x438a05,_0x108fae,_0x5bf986,_0x3093c2=0x0,_0x311f27){const _0x292b62=_0xecb3e7,_0x3f0521=_0x5bf986+_0x3093c2,_0x2b4713=new _0x17046d(_0x1593c4[_0x292b62(0x17e)]),_0x4a5f94=[_0x438a05[_0x292b62(0x181)](),_0x108fae[_0x292b62(0x181)]()][_0x292b62(0x1b6)](_0x4f5c99=>_0x4f5c99),_0x3e3ce7=_0x17046d[_0x292b62(0x15f)](_0x4a5f94);if(!_0x3e3ce7)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x42e665=_0x2b4713[_0x292b62(0x1be)](_0x3e3ce7);if(!_0x42e665)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x26ac32=_0x311f27[_0x292b62(0x181)](),_0x37f3d9=_0x26ac32&&_0x3e3ce7[_0x292b62(0x170)]>_0x26ac32[_0x292b62(0x170)],_0x7c59e6=_0x42e665[_0x292b62(0x1b2)],_0x478994=_0x42e665[_0x292b62(0x189)];if(_0x37f3d9){const _0x2ce1b1=(_0x26ac32||_0x2b4713)[_0x292b62(0x170)]/0x2-_0x3f0521/0x2,_0x156f7e=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)],_0x2f360c=_0x311f27[_0x292b62(0x189)]-_0x478994-ut;return _0x156f7e>=_0x3f0521?Math[_0x292b62(0x1b1)](ut,_0x7c59e6-_0x3f0521-ut):_0x2f360c>=_0x3f0521?_0x478994+ut:Math[_0x292b62(0x1b1)](ut,_0x2ce1b1);}const _0x279810=_0x7c59e6-_0x3f0521,_0x4dcb30=_0x311f27[_0x292b62(0x189)]-_0x478994-ut,_0x3ec2ae=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)];let _0x2e7706;if(_0x4dcb30>=_0x3f0521)_0x2e7706=_0x478994+ut;else{if(_0x3ec2ae>=_0x3f0521)_0x2e7706=_0x279810-ut;else _0x2e7706=_0x7c59e6+_0x3e3ce7[_0x292b62(0x170)]/0x2-_0x3f0521/0x2;}return _0x2e7706;}[_0xecb3e7(0x1a2)](){const _0x5d273a=_0xecb3e7,_0xcd8819=_0x268051(this[_0x5d273a(0x16d)]);this[_0x5d273a(0x19b)](_0xcd8819[_0x5d273a(0x16a)][_0x5d273a(0x15e)],_0x5d273a(0x194),()=>{const _0x24a463=_0x5d273a;if(this[_0x24a463(0x1af)])return;for(const {name:_0x39aa5f,data:{newRange:_0x2906d5}}of _0xcd8819[_0x24a463(0x16a)][_0x24a463(0x15e)][_0x24a463(0x167)][_0x24a463(0x19f)]())if(_0x39aa5f[_0x24a463(0x173)](_0x24a463(0x1b8))&&(_0x2906d5&&(_0x2906d5[_0x24a463(0x19c)][_0x24a463(0x172)](_0x2906d5[_0x24a463(0x169)])||_0x24a463(0x18b)==_0x2906d5[_0x24a463(0x1b4)][_0x24a463(0x180)])||null==_0x2906d5)){const _0x2ab042=_0x4e1504(this[_0x24a463(0x16d)][_0x24a463(0x1ba)],_0x24a463(0x18d));this[_0x24a463(0x174)][_0x24a463(0x165)](_0x2ab042),this[_0x24a463(0x1a4)](_0x24a463(0x178));}});}[_0xecb3e7(0x1bb)](){const _0x254490=_0xecb3e7,_0x21b7a4=_0x268051(this[_0x254490(0x16d)]);this[_0x254490(0x18e)](_0x21b7a4[_0x254490(0x16a)][_0x254490(0x15e)]);}[_0xecb3e7(0x17c)](){const _0x208e8c=_0xecb3e7,_0x3b1eee=_0x268051(this[_0x208e8c(0x16d)]);return _0x1ac766(_0x3b1eee[_0x208e8c(0x1b9)],[..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x197)),..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x1ab))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x43a225,_0x46cf71){var _0x665c14=_0x2577,_0x17f7c6=_0x43a225();while(!![]){try{var _0xd804e7=parseInt(_0x665c14(0x1e6))/0x1+parseInt(_0x665c14(0x1e1))/0x2*(parseInt(_0x665c14(0x1df))/0x3)+parseInt(_0x665c14(0x1e5))/0x4+-parseInt(_0x665c14(0x1e7))/0x5*(-parseInt(_0x665c14(0x1e0))/0x6)+-parseInt(_0x665c14(0x1e4))/0x7*(parseInt(_0x665c14(0x1db))/0x8)+parseInt(_0x665c14(0x1d9))/0x9+-parseInt(_0x665c14(0x1de))/0xa;if(_0xd804e7===_0x46cf71)break;else _0x17f7c6['push'](_0x17f7c6['shift']());}catch(_0x280076){_0x17f7c6['push'](_0x17f7c6['shift']());}}}(_0x50b3,0x73264));function _0x50b3(){var _0xb287f2=['1089684DKnHKn','setTemplate','5232480wuVOXJ','div','ck-ai-balloon__disclaimer','12947870OPIkMx','129yHZDfn','2580AsHJlh','35946ABstEb','AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer-content','7qFcvlk','1066204DocFQn','871743OrcNdq','4515mtHlVr'];_0x50b3=function(){return _0xb287f2;};return _0x50b3();}import{View as _0x138c81}from'ckeditor5/src/ui.js';function _0x2577(_0x381164,_0x3f24b2){var _0x50b380=_0x50b3();return _0x2577=function(_0x2577b8,_0x39086c){_0x2577b8=_0x2577b8-0x1d9;var _0x36893e=_0x50b380[_0x2577b8];return _0x36893e;},_0x2577(_0x381164,_0x3f24b2);}import{getTranslation as _0x8d4b33}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x138c81{constructor(_0x2198ac){var _0x1aecbe=_0x2577;super(_0x2198ac),this[_0x1aecbe(0x1da)]({'tag':_0x1aecbe(0x1dc),'attributes':{'class':['ck',_0x1aecbe(0x1dd)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1aecbe(0x1e3)]},'children':[{'text':_0x8d4b33(_0x2198ac,_0x1aecbe(0x1e2))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3b71aa=_0x27c6;(function(_0x1d4084,_0x3ae809){const _0x546ef7=_0x27c6,_0x348c03=_0x1d4084();while(!![]){try{const _0x52413d=parseInt(_0x546ef7(0xf9))/0x1*(-parseInt(_0x546ef7(0x10f))/0x2)+parseInt(_0x546ef7(0x10b))/0x3+parseInt(_0x546ef7(0xf5))/0x4+parseInt(_0x546ef7(0x100))/0x5+parseInt(_0x546ef7(0x115))/0x6*(-parseInt(_0x546ef7(0xea))/0x7)+-parseInt(_0x546ef7(0x10c))/0x8+parseInt(_0x546ef7(0xec))/0x9*(parseInt(_0x546ef7(0xf1))/0xa);if(_0x52413d===_0x3ae809)break;else _0x348c03['push'](_0x348c03['shift']());}catch(_0x5ce454){_0x348c03['push'](_0x348c03['shift']());}}}(_0x86eb,0x80dd1));import{ButtonView as _0x30e194,View as _0x191885,ViewCollection as _0x139797,FocusCycler as _0xa4d9f5}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4da971,KeystrokeHandler as _0x8ab13}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x295739,IconPreviousArrow as _0x2b0f7c}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x13eebb}from'./aiballoontoolbarview.js';function _0x86eb(){const _0x447eaa=['set','setLoading','startAutoScroll','isLoading','_dialogContent','updateContent','applySuggestion','clear','focusLast','span','scrollManager','_mainView','hideError','showRecoverableError','setTemplate','_addDisclaimerView','_createNextButtonView','getIndex','children','_errorView','disclaimerView','applyButton','focus','focusTracker','bind','keystrokes','shift\x20+\x20tab','add','ck-ai-suggestion__error-text','execute','isErrorVisible','AI_BALLOON_PREVIOUS_TOOLTIP','showError','focusFirst','element','AI_BALLOON_NEXT_TOOLTIP','tab','bodyView','2009931lbwILy','ai-balloon-content','4622166SleEPJ','headerView','includes','_initializeScrollManager','showSuggestButton','10aDYoTp','toolbar','ck-ai-suggestion__error','ck-hidden','696896pOrufz','_addContentView','_createPreviousButtonView','insertSuggestion','1Qlufov','stop','start','addMany','createCollection','showPrevious','isEnabled','2217020OxAEaP','stopAutoScroll','suggestButton','div','_focusables','_availableActions','destroy','change:isTrackChangesOn','showApplyButton','showNext','ai-balloon-error','1993767zMbeqO','4990656ecKaNQ','mainView','errorMessage','139736HqRoCB','listenTo','_getScrollableElement','_createErrorView','remove','view','12jBPygO','render','showBlockingError','fire','bindTemplate','locale','isTrackChangesOn','clearLoading','focusCycler','setupRotator','_addToolbar'];_0x86eb=function(){return _0x447eaa;};return _0x86eb();}function _0x27c6(_0x3ba1f9,_0x1e370d){const _0x86eb0=_0x86eb();return _0x27c6=function(_0x27c666,_0x15c5e3){_0x27c666=_0x27c666-0xe7;let _0x4f0d70=_0x86eb0[_0x27c666];return _0x4f0d70;},_0x27c6(_0x3ba1f9,_0x1e370d);}import{AIBalloonDisclaimerView as _0x3a4423}from'./aiballoondisclaimerview.js';import{getTranslation as _0x43e2a5}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x173229}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x555a48}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3b71aa(0x126),_0x3b71aa(0xf8),_0x3b71aa(0x109),_0x3b71aa(0xfe)];export class AIBalloonView extends _0x191885{[_0x3b71aa(0x137)];[_0x3b71aa(0x139)];[_0x3b71aa(0x11d)];[_0x3b71aa(0x105)];[_0x3b71aa(0x104)];[_0x3b71aa(0x133)];[_0x3b71aa(0x12a)];constructor(_0x14e86e,_0x1c1696,_0x12ce97,_0x40d57d){const _0x459953=_0x3b71aa;super(_0x14e86e),this[_0x459953(0x105)]=_0x12ce97,this[_0x459953(0x120)](_0x459953(0x123),!0x1),this[_0x459953(0x120)](_0x459953(0x11b),_0x40d57d),this[_0x459953(0x120)](_0x459953(0x13e),!0x1),this[_0x459953(0x120)](_0x459953(0x10e),''),this[_0x459953(0x137)]=new _0x4da971(),this[_0x459953(0x139)]=new _0x8ab13(),this[_0x459953(0x104)]=this[_0x459953(0xfd)](),this[_0x459953(0x11d)]=new _0xa4d9f5({'focusables':this[_0x459953(0x104)],'focusTracker':this[_0x459953(0x137)],'keystrokeHandler':this[_0x459953(0x139)],'actions':{'focusPrevious':_0x459953(0x13a),'focusNext':_0x459953(0xe8)}}),this[_0x459953(0x124)]=new _0x139797(),this[_0x459953(0xf6)](_0x1c1696[_0x459953(0x10d)]),this[_0x459953(0x12f)](),this[_0x459953(0x11f)](_0x1c1696[_0x459953(0x108)],_0x1c1696[_0x459953(0xf0)]),this[_0x459953(0xf2)][_0x459953(0x138)](_0x459953(0x123))['to'](this),this[_0x459953(0x104)][_0x459953(0x127)](),this[_0x459953(0x104)][_0x459953(0xfc)]([this[_0x459953(0xf2)]]),this[_0x459953(0x12e)]({'tag':_0x459953(0x103),'attributes':{'class':_0x459953(0xeb)},'children':this[_0x459953(0x124)]}),this['on'](_0x459953(0x107),()=>{const _0x53fa20=_0x459953;this[_0x53fa20(0x124)][_0x53fa20(0x113)](this[_0x53fa20(0xf2)]),this[_0x53fa20(0x11f)](_0x1c1696[_0x53fa20(0x108)],_0x1c1696[_0x53fa20(0xf0)]);});}[_0x3b71aa(0x116)](){const _0x2476f7=_0x3b71aa;super[_0x2476f7(0x116)]();for(const _0x5d91ee of this[_0x2476f7(0x104)])this[_0x2476f7(0x137)][_0x2476f7(0x13b)](_0x5d91ee[_0x2476f7(0x142)]);this[_0x2476f7(0x139)][_0x2476f7(0x110)](this[_0x2476f7(0x142)]),this[_0x2476f7(0xef)]();}[_0x3b71aa(0x106)](){const _0x2ac29a=_0x3b71aa;super[_0x2ac29a(0x106)](),this[_0x2ac29a(0x12a)]&&this[_0x2ac29a(0x12a)][_0x2ac29a(0x106)]();}[_0x3b71aa(0x136)](_0x24dd70){const _0x4ed0cc=_0x3b71aa;-0x1===_0x24dd70?this[_0x4ed0cc(0x11d)][_0x4ed0cc(0x128)]():this[_0x4ed0cc(0x11d)][_0x4ed0cc(0x141)]();}[_0x3b71aa(0x121)](){const _0xf69994=_0x3b71aa;this[_0xf69994(0x123)]=!0x0;}[_0x3b71aa(0x11c)](){const _0x1a08b3=_0x3b71aa;this[_0x1a08b3(0x123)]=!0x1;}[_0x3b71aa(0x140)](_0x5193bb){const _0x45b34a=_0x3b71aa;this[_0x45b34a(0x133)]||(this[_0x45b34a(0x133)]=this[_0x45b34a(0x112)](),this[_0x45b34a(0x124)][_0x45b34a(0xfc)]([this[_0x45b34a(0x133)]],0x0)),this[_0x45b34a(0x10e)]=_0x5193bb,this[_0x45b34a(0x13e)]=!0x0;}[_0x3b71aa(0x12c)](){const _0x29f3d6=_0x3b71aa;this[_0x29f3d6(0x13e)]=!0x1;}[_0x3b71aa(0x12d)](_0x22387a){const _0x43a90b=_0x3b71aa;this[_0x43a90b(0x140)](_0x22387a);}[_0x3b71aa(0x117)](_0x2e3207){const _0x2f690c=_0x3b71aa;this[_0x2f690c(0x140)](_0x2e3207),this[_0x2f690c(0xf2)]&&(this[_0x2f690c(0xf2)][_0x2f690c(0x135)]&&(this[_0x2f690c(0xf2)][_0x2f690c(0x135)][_0x2f690c(0xff)]=!0x1),this[_0x2f690c(0xf2)][_0x2f690c(0x102)]&&(this[_0x2f690c(0xf2)][_0x2f690c(0x102)][_0x2f690c(0xff)]=!0x1));}[_0x3b71aa(0x11e)](_0x3666ca){const _0x19063c=_0x3b71aa,_0x2f91b0=this[_0x19063c(0x130)](),_0x4cab8f=this[_0x19063c(0xf7)]();_0x3666ca[_0x19063c(0x114)][_0x19063c(0xed)][_0x19063c(0x132)][_0x19063c(0x13b)](_0x2f91b0,0x2),_0x3666ca[_0x19063c(0x114)][_0x19063c(0xed)][_0x19063c(0x132)][_0x19063c(0x13b)](_0x4cab8f,0x0),this[_0x19063c(0x104)][_0x19063c(0xfc)]([_0x2f91b0,_0x4cab8f]),this[_0x19063c(0x137)][_0x19063c(0x13b)](_0x2f91b0[_0x19063c(0x142)]),this[_0x19063c(0x137)][_0x19063c(0x13b)](_0x4cab8f[_0x19063c(0x142)]);}[_0x3b71aa(0xf6)](_0x32725c){const _0x163377=_0x3b71aa;this[_0x163377(0x12b)]=_0x32725c,this[_0x163377(0x124)][_0x163377(0x13b)](this[_0x163377(0x12b)]);}[_0x3b71aa(0x125)](_0x363b0b){const _0xf7b880=_0x3b71aa,_0x3b519c=this[_0xf7b880(0x124)][_0xf7b880(0x131)](this[_0xf7b880(0x12b)]);this[_0xf7b880(0x124)][_0xf7b880(0x113)](this[_0xf7b880(0x12b)]),this[_0xf7b880(0x12b)]=_0x363b0b,this[_0xf7b880(0x124)][_0xf7b880(0x13b)](this[_0xf7b880(0x12b)],_0x3b519c),this[_0xf7b880(0x12c)](),this[_0xf7b880(0x12a)]&&this[_0xf7b880(0x12a)][_0xf7b880(0x106)](),this[_0xf7b880(0xef)]();}[_0x3b71aa(0x12f)](){const _0x48227d=_0x3b71aa;this[_0x48227d(0x134)]=new _0x3a4423(this[_0x48227d(0x11a)]),this[_0x48227d(0x124)][_0x48227d(0x13b)](this[_0x48227d(0x134)]);}[_0x3b71aa(0x11f)](_0x34c5ef=!0x0,_0x30c07a=!0x0){const _0x305a9a=_0x3b71aa;_0x34c5ef=_0x34c5ef&&!this[_0x305a9a(0x11b)]&&this[_0x305a9a(0x105)][_0x305a9a(0xee)](_0x305a9a(0x126)),_0x30c07a=_0x30c07a&&this[_0x305a9a(0x105)][_0x305a9a(0xee)](_0x305a9a(0xf8)),this[_0x305a9a(0xf2)]=new _0x13eebb(this[_0x305a9a(0x11a)],_0x34c5ef,_0x30c07a),this[_0x305a9a(0xf2)][_0x305a9a(0x135)]?.['on'](_0x305a9a(0x13d),()=>{const _0x3531f2=_0x305a9a;this[_0x3531f2(0x118)](_0x3531f2(0x126));}),this[_0x305a9a(0xf2)][_0x305a9a(0x102)]?.['on'](_0x305a9a(0x13d),()=>{const _0x1e3698=_0x305a9a;this[_0x1e3698(0x118)](_0x1e3698(0xf8));}),this[_0x305a9a(0x124)][_0x305a9a(0x13b)](this[_0x305a9a(0xf2)]);}[_0x3b71aa(0x130)](){const _0xad2097=_0x3b71aa,_0x7df90f=new _0x30e194(this[_0xad2097(0x11a)]);return _0x7df90f[_0xad2097(0x120)]({'icon':_0x295739,'tooltip':_0x43e2a5(this[_0xad2097(0x11a)],_0xad2097(0xe7))}),_0x7df90f['on'](_0xad2097(0x13d),()=>{const _0x515ea9=_0xad2097;this[_0x515ea9(0x118)](_0x515ea9(0x109));}),_0x7df90f;}[_0x3b71aa(0xf7)](){const _0x195621=_0x3b71aa,_0x244142=new _0x30e194(this[_0x195621(0x11a)]);return _0x244142[_0x195621(0x120)]({'icon':_0x2b0f7c,'tooltip':_0x43e2a5(this[_0x195621(0x11a)],_0x195621(0x13f))}),_0x244142['on'](_0x195621(0x13d),()=>{const _0x4eb73f=_0x195621;this[_0x4eb73f(0x118)](_0x4eb73f(0xfe));}),_0x244142;}[_0x3b71aa(0x112)](){const _0x487405=_0x3b71aa,_0x3d026c=new _0x191885(this[_0x487405(0x11a)]),_0x4a07ea=new _0x191885(this[_0x487405(0x11a)]);return _0x4a07ea[_0x487405(0x12e)]({'tag':_0x487405(0x129),'attributes':{'class':['ck',_0x487405(0x13c)]},'children':[{'text':this[_0x487405(0x119)]['to'](_0x487405(0x10e))}]}),_0x3d026c[_0x487405(0x12e)]({'tag':_0x487405(0x103),'attributes':{'class':['ck',_0x487405(0xf3),_0x487405(0x10a),this[_0x487405(0x119)]['if'](_0x487405(0x13e),_0x487405(0xf4),_0x598ea4=>!_0x598ea4)]},'children':[_0x4a07ea]}),_0x3d026c;}[_0x3b71aa(0x122)](){const _0x3a2239=_0x3b71aa;this[_0x3a2239(0xef)](),this[_0x3a2239(0x12a)]&&this[_0x3a2239(0x12a)][_0x3a2239(0xfb)]();}[_0x3b71aa(0x101)](){const _0x438934=_0x3b71aa;this[_0x438934(0x12a)]&&this[_0x438934(0x12a)][_0x438934(0xfa)]();}[_0x3b71aa(0xef)](){const _0x12aff5=_0x3b71aa,_0x3c62ce=this[_0x12aff5(0x111)]();_0x3c62ce&&!this[_0x12aff5(0x12a)]&&(this[_0x12aff5(0x12a)]=new _0x173229(_0x3c62ce));}[_0x3b71aa(0x111)](){const _0x51ca08=_0x3b71aa;return this[_0x51ca08(0x12b)]instanceof _0x555a48&&this[_0x51ca08(0x12b)][_0x51ca08(0xe9)][_0x51ca08(0x142)]?this[_0x51ca08(0x12b)][_0x51ca08(0xe9)][_0x51ca08(0x142)]:null;}}
|
|
23
|
+
const _0x53398e=_0x5690;(function(_0x1bab9b,_0x4552fc){const _0x3f4013=_0x5690,_0x2a021e=_0x1bab9b();while(!![]){try{const _0x18abba=-parseInt(_0x3f4013(0x16c))/0x1+parseInt(_0x3f4013(0x136))/0x2*(parseInt(_0x3f4013(0x167))/0x3)+parseInt(_0x3f4013(0x126))/0x4+-parseInt(_0x3f4013(0x145))/0x5*(-parseInt(_0x3f4013(0x166))/0x6)+-parseInt(_0x3f4013(0x14d))/0x7*(-parseInt(_0x3f4013(0x137))/0x8)+-parseInt(_0x3f4013(0x161))/0x9+parseInt(_0x3f4013(0x135))/0xa*(parseInt(_0x3f4013(0x12f))/0xb);if(_0x18abba===_0x4552fc)break;else _0x2a021e['push'](_0x2a021e['shift']());}catch(_0x397467){_0x2a021e['push'](_0x2a021e['shift']());}}}(_0x34dc,0x6090f));function _0x34dc(){const _0x5ade5e=['getIndex','showPrevious','change:isTrackChangesOn','tab','isErrorVisible','_initializeScrollManager','keystrokes','set','stopAutoScroll','focusFirst','addMany','applyButton','element','20anxnYB','destroy','span','focus','_availableActions','isEnabled','_mainView','remove','1972439UshaYp','render','hideError','startAutoScroll','showApplyButton','execute','showBlockingError','setTemplate','listenTo','_focusables','locale','_createErrorView','clear','_getScrollableElement','_addToolbar','focusTracker','headerView','ai-balloon-error','_dialogContent','createCollection','6747273UztOxK','_createPreviousButtonView','add','applySuggestion','focusLast','380310EhWTDO','836409MAMJBm','bodyView','_addDisclaimerView','suggestButton','bind','530050DXKppc','focusCycler','AI_BALLOON_NEXT_TOOLTIP','div','AI_BALLOON_PREVIOUS_TOOLTIP','ai-balloon-content','errorMessage','toolbar','showNext','scrollManager','setLoading','showRecoverableError','children','fire','mainView','showSuggestButton','includes','_addContentView','isLoading','_createNextButtonView','start','ck-ai-suggestion__error','ck-ai-suggestion__error-text','174948gEeKso','disclaimerView','ck-hidden','setupRotator','showError','bindTemplate','updateContent','clearLoading','view','2825295WzKqWN','shift\x20+\x20tab','isTrackChangesOn','insertSuggestion','_errorView','stop','10BpqZCf','4hwTWRi','16Bgbjyw'];_0x34dc=function(){return _0x5ade5e;};return _0x34dc();}import{ButtonView as _0x59978e,View as _0x1d6c19,ViewCollection as _0x1435f9,FocusCycler as _0x5e6357}from'ckeditor5/src/ui.js';function _0x5690(_0x4c511d,_0x5d350e){const _0x34dc52=_0x34dc();return _0x5690=function(_0x569012,_0x354ddc){_0x569012=_0x569012-0x124;let _0x4447e4=_0x34dc52[_0x569012];return _0x4447e4;},_0x5690(_0x4c511d,_0x5d350e);}import{FocusTracker as _0x4778df,KeystrokeHandler as _0x3a4b57}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4cf69d,IconPreviousArrow as _0xef208a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x24dede}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x326686}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4763c7}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x29ec27}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1fdd68}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x53398e(0x164),_0x53398e(0x132),_0x53398e(0x174),_0x53398e(0x139)];export class AIBalloonView extends _0x1d6c19{[_0x53398e(0x15c)];[_0x53398e(0x13e)];[_0x53398e(0x16d)];[_0x53398e(0x149)];[_0x53398e(0x156)];[_0x53398e(0x133)];[_0x53398e(0x175)];constructor(_0x5c0e85,_0x366955,_0x5f0a32,_0x243b3c){const _0xac33f5=_0x53398e;super(_0x5c0e85),this[_0xac33f5(0x149)]=_0x5f0a32,this[_0xac33f5(0x13f)](_0xac33f5(0x17e),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x131),_0x243b3c),this[_0xac33f5(0x13f)](_0xac33f5(0x13c),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x172),''),this[_0xac33f5(0x15c)]=new _0x4778df(),this[_0xac33f5(0x13e)]=new _0x3a4b57(),this[_0xac33f5(0x156)]=this[_0xac33f5(0x160)](),this[_0xac33f5(0x16d)]=new _0x5e6357({'focusables':this[_0xac33f5(0x156)],'focusTracker':this[_0xac33f5(0x15c)],'keystrokeHandler':this[_0xac33f5(0x13e)],'actions':{'focusPrevious':_0xac33f5(0x130),'focusNext':_0xac33f5(0x13b)}}),this[_0xac33f5(0x15f)]=new _0x1435f9(),this[_0xac33f5(0x17d)](_0x366955[_0xac33f5(0x17a)]),this[_0xac33f5(0x169)](),this[_0xac33f5(0x15b)](_0x366955[_0xac33f5(0x151)],_0x366955[_0xac33f5(0x17b)]),this[_0xac33f5(0x173)][_0xac33f5(0x16b)](_0xac33f5(0x17e))['to'](this),this[_0xac33f5(0x156)][_0xac33f5(0x159)](),this[_0xac33f5(0x156)][_0xac33f5(0x142)]([this[_0xac33f5(0x173)]]),this[_0xac33f5(0x154)]({'tag':_0xac33f5(0x16f),'attributes':{'class':_0xac33f5(0x171)},'children':this[_0xac33f5(0x15f)]}),this['on'](_0xac33f5(0x13a),()=>{const _0x3c950b=_0xac33f5;this[_0x3c950b(0x15f)][_0x3c950b(0x14c)](this[_0x3c950b(0x173)]),this[_0x3c950b(0x15b)](_0x366955[_0x3c950b(0x151)],_0x366955[_0x3c950b(0x17b)]);});}[_0x53398e(0x14e)](){const _0x4725c8=_0x53398e;super[_0x4725c8(0x14e)]();for(const _0x32376c of this[_0x4725c8(0x156)])this[_0x4725c8(0x15c)][_0x4725c8(0x163)](_0x32376c[_0x4725c8(0x144)]);this[_0x4725c8(0x13e)][_0x4725c8(0x155)](this[_0x4725c8(0x144)]),this[_0x4725c8(0x13d)]();}[_0x53398e(0x146)](){const _0x550e0b=_0x53398e;super[_0x550e0b(0x146)](),this[_0x550e0b(0x175)]&&this[_0x550e0b(0x175)][_0x550e0b(0x146)]();}[_0x53398e(0x148)](_0x993203){const _0x11b393=_0x53398e;-0x1===_0x993203?this[_0x11b393(0x16d)][_0x11b393(0x165)]():this[_0x11b393(0x16d)][_0x11b393(0x141)]();}[_0x53398e(0x176)](){const _0x2a9638=_0x53398e;this[_0x2a9638(0x17e)]=!0x0;}[_0x53398e(0x12d)](){const _0x3854cd=_0x53398e;this[_0x3854cd(0x17e)]=!0x1;}[_0x53398e(0x12a)](_0x25ccb3){const _0x515ed1=_0x53398e;this[_0x515ed1(0x133)]||(this[_0x515ed1(0x133)]=this[_0x515ed1(0x158)](),this[_0x515ed1(0x15f)][_0x515ed1(0x142)]([this[_0x515ed1(0x133)]],0x0)),this[_0x515ed1(0x172)]=_0x25ccb3,this[_0x515ed1(0x13c)]=!0x0;}[_0x53398e(0x14f)](){const _0x1df447=_0x53398e;this[_0x1df447(0x13c)]=!0x1;}[_0x53398e(0x177)](_0x1198bf){const _0x58bbd9=_0x53398e;this[_0x58bbd9(0x12a)](_0x1198bf);}[_0x53398e(0x153)](_0x5a01b4){const _0x364703=_0x53398e;this[_0x364703(0x12a)](_0x5a01b4),this[_0x364703(0x173)]&&(this[_0x364703(0x173)][_0x364703(0x143)]&&(this[_0x364703(0x173)][_0x364703(0x143)][_0x364703(0x14a)]=!0x1),this[_0x364703(0x173)][_0x364703(0x16a)]&&(this[_0x364703(0x173)][_0x364703(0x16a)][_0x364703(0x14a)]=!0x1));}[_0x53398e(0x129)](_0x394c1b){const _0x366052=_0x53398e,_0x436e34=this[_0x366052(0x17f)](),_0x4da81f=this[_0x366052(0x162)]();_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x436e34,0x2),_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x4da81f,0x0),this[_0x366052(0x156)][_0x366052(0x142)]([_0x436e34,_0x4da81f]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x436e34[_0x366052(0x144)]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x4da81f[_0x366052(0x144)]);}[_0x53398e(0x17d)](_0x4cb175){const _0x439267=_0x53398e;this[_0x439267(0x14b)]=_0x4cb175,this[_0x439267(0x15f)][_0x439267(0x163)](this[_0x439267(0x14b)]);}[_0x53398e(0x12c)](_0x389823){const _0x4a9dab=_0x53398e,_0x22b1a7=this[_0x4a9dab(0x15f)][_0x4a9dab(0x138)](this[_0x4a9dab(0x14b)]);this[_0x4a9dab(0x15f)][_0x4a9dab(0x14c)](this[_0x4a9dab(0x14b)]),this[_0x4a9dab(0x14b)]=_0x389823,this[_0x4a9dab(0x15f)][_0x4a9dab(0x163)](this[_0x4a9dab(0x14b)],_0x22b1a7),this[_0x4a9dab(0x14f)](),this[_0x4a9dab(0x175)]&&this[_0x4a9dab(0x175)][_0x4a9dab(0x146)](),this[_0x4a9dab(0x13d)]();}[_0x53398e(0x169)](){const _0x164b61=_0x53398e;this[_0x164b61(0x127)]=new _0x326686(this[_0x164b61(0x157)]),this[_0x164b61(0x15f)][_0x164b61(0x163)](this[_0x164b61(0x127)]);}[_0x53398e(0x15b)](_0x53395a=!0x0,_0x5469a3=!0x0){const _0x1074de=_0x53398e;_0x53395a=_0x53395a&&!this[_0x1074de(0x131)]&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x164)),_0x5469a3=_0x5469a3&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x132)),this[_0x1074de(0x173)]=new _0x24dede(this[_0x1074de(0x157)],_0x53395a,_0x5469a3),this[_0x1074de(0x173)][_0x1074de(0x143)]?.['on'](_0x1074de(0x152),()=>{const _0x299757=_0x1074de;this[_0x299757(0x179)](_0x299757(0x164));}),this[_0x1074de(0x173)][_0x1074de(0x16a)]?.['on'](_0x1074de(0x152),()=>{const _0x13a8fa=_0x1074de;this[_0x13a8fa(0x179)](_0x13a8fa(0x132));}),this[_0x1074de(0x15f)][_0x1074de(0x163)](this[_0x1074de(0x173)]);}[_0x53398e(0x17f)](){const _0x3f135b=_0x53398e,_0x4c0a75=new _0x59978e(this[_0x3f135b(0x157)]);return _0x4c0a75[_0x3f135b(0x13f)]({'icon':_0x4cf69d,'tooltip':_0x4763c7(this[_0x3f135b(0x157)],_0x3f135b(0x16e))}),_0x4c0a75['on'](_0x3f135b(0x152),()=>{const _0x156752=_0x3f135b;this[_0x156752(0x179)](_0x156752(0x174));}),_0x4c0a75;}[_0x53398e(0x162)](){const _0x19c8c1=_0x53398e,_0x43ced7=new _0x59978e(this[_0x19c8c1(0x157)]);return _0x43ced7[_0x19c8c1(0x13f)]({'icon':_0xef208a,'tooltip':_0x4763c7(this[_0x19c8c1(0x157)],_0x19c8c1(0x170))}),_0x43ced7['on'](_0x19c8c1(0x152),()=>{const _0x328d6f=_0x19c8c1;this[_0x328d6f(0x179)](_0x328d6f(0x139));}),_0x43ced7;}[_0x53398e(0x158)](){const _0xc1fd50=_0x53398e,_0x5e7b35=new _0x1d6c19(this[_0xc1fd50(0x157)]),_0x49f4f7=new _0x1d6c19(this[_0xc1fd50(0x157)]);return _0x49f4f7[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x147),'attributes':{'class':['ck',_0xc1fd50(0x125)]},'children':[{'text':this[_0xc1fd50(0x12b)]['to'](_0xc1fd50(0x172))}]}),_0x5e7b35[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x16f),'attributes':{'class':['ck',_0xc1fd50(0x124),_0xc1fd50(0x15e),this[_0xc1fd50(0x12b)]['if'](_0xc1fd50(0x13c),_0xc1fd50(0x128),_0x1e2921=>!_0x1e2921)]},'children':[_0x49f4f7]}),_0x5e7b35;}[_0x53398e(0x150)](){const _0x4ba93a=_0x53398e;this[_0x4ba93a(0x13d)](),this[_0x4ba93a(0x175)]&&this[_0x4ba93a(0x175)][_0x4ba93a(0x180)]();}[_0x53398e(0x140)](){const _0x5d1e5c=_0x53398e;this[_0x5d1e5c(0x175)]&&this[_0x5d1e5c(0x175)][_0x5d1e5c(0x134)]();}[_0x53398e(0x13d)](){const _0x29bdfe=_0x53398e,_0x2de939=this[_0x29bdfe(0x15a)]();_0x2de939&&!this[_0x29bdfe(0x175)]&&(this[_0x29bdfe(0x175)]=new _0x29ec27(_0x2de939));}[_0x53398e(0x15a)](){const _0xef1c06=_0x53398e;return this[_0xef1c06(0x14b)]instanceof _0x1fdd68&&this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]?this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x15b0b2=_0x2ec6;function _0x2b9a(){var _0xc1e8b1=['1390323eZBfQL','36SrISKd','ai.chat.context','startConversation','968yDGRwj','context','config','focusPromptInput','87022EpXdCi','24KexdDF','plugins','647847nsHRzH','66094iTfXjH','sendMessage','addSelectionToChatContext','define','1hTuKlP','ai.chat.models','removeSelectionFromChatContext','isPremiumPlugin','150gLsBdC','isOfficialPlugin','AIChat','804770imeCsC','pluginName','requires','get','4234098EYTIls','5452120lRFuIj'];_0x2b9a=function(){return _0xc1e8b1;};return _0x2b9a();}(function(_0xa837ce,_0x33d9c2){var _0x5d9832=_0x2ec6,_0x3a848e=_0xa837ce();while(!![]){try{var _0x36faee=parseInt(_0x5d9832(0x16b))/0x1*(parseInt(_0x5d9832(0x163))/0x2)+parseInt(_0x5d9832(0x176))/0x3+parseInt(_0x5d9832(0x177))/0x4+parseInt(_0x5d9832(0x172))/0x5*(parseInt(_0x5d9832(0x164))/0x6)+parseInt(_0x5d9832(0x167))/0x7*(-parseInt(_0x5d9832(0x15f))/0x8)+parseInt(_0x5d9832(0x166))/0x9*(-parseInt(_0x5d9832(0x16f))/0xa)+-parseInt(_0x5d9832(0x178))/0xb*(parseInt(_0x5d9832(0x15c))/0xc);if(_0x36faee===_0x33d9c2)break;else _0x3a848e['push'](_0x3a848e['shift']());}catch(_0x264960){_0x3a848e['push'](_0x3a848e['shift']());}}}(_0x2b9a,0xd209d));import{ContextPlugin as _0x6ef463}from'ckeditor5/src/core.js';import{AIChatController as _0x22a124}from'./aichatcontroller.js';function _0x2ec6(_0x3caef9,_0x41b7dc){var _0x2b9a85=_0x2b9a();return _0x2ec6=function(_0x2ec656,_0xa97196){_0x2ec656=_0x2ec656-0x15c;var _0x364694=_0x2b9a85[_0x2ec656];return _0x364694;},_0x2ec6(_0x3caef9,_0x41b7dc);}import{AIEditing as _0xce254a}from'../aicore/aiediting.js';import{AIChatUI as _0x284c35}from'./aichatui.js';import{AIChatHistory as _0x190dc8}from'../aichathistory/aichathistory.js';export class AIChat extends _0x6ef463{static get[_0x15b0b2(0x174)](){return[_0x22a124,_0xce254a,_0x284c35,_0x190dc8];}static get[_0x15b0b2(0x173)](){var _0x294802=_0x15b0b2;return _0x294802(0x171);}static get[_0x15b0b2(0x170)](){return!0x0;}static get[_0x15b0b2(0x16e)](){return!0x0;}constructor(_0x16dbda){var _0x4afbe4=_0x15b0b2;super(_0x16dbda),this[_0x4afbe4(0x160)][_0x4afbe4(0x161)][_0x4afbe4(0x16a)](_0x4afbe4(0x15d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x4afbe4(0x160)][_0x4afbe4(0x161)][_0x4afbe4(0x16a)](_0x4afbe4(0x16c),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x15b0b2(0x169)](){var _0x43ed1d=_0x15b0b2;await this[_0x43ed1d(0x160)][_0x43ed1d(0x165)][_0x43ed1d(0x175)](_0x22a124)[_0x43ed1d(0x169)]();}async[_0x15b0b2(0x15e)](){var _0x450d02=_0x15b0b2;await this[_0x450d02(0x160)][_0x450d02(0x165)][_0x450d02(0x175)](_0x22a124)[_0x450d02(0x15e)]();}async[_0x15b0b2(0x168)]({message:_0x5e8498,quickActionData:_0x49f17d}){var _0x536fdb=_0x15b0b2;await this[_0x536fdb(0x160)][_0x536fdb(0x165)][_0x536fdb(0x175)](_0x22a124)[_0x536fdb(0x168)]({'message':_0x5e8498,'quickActionData':_0x49f17d});}[_0x15b0b2(0x16d)](){var _0x2c5937=_0x15b0b2;this[_0x2c5937(0x160)][_0x2c5937(0x165)][_0x2c5937(0x175)](_0x22a124)[_0x2c5937(0x16d)]();}[_0x15b0b2(0x162)](){var _0x212c85=_0x15b0b2;this[_0x212c85(0x160)][_0x212c85(0x165)][_0x212c85(0x175)](_0x22a124)[_0x212c85(0x162)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x25bc84=_0x2ea0;(function(_0x4b0665,_0x12eb8e){const _0x283110=_0x2ea0,_0xd418ee=_0x4b0665();while(!![]){try{const _0x2615a0=parseInt(_0x283110(0x152))/0x1*(-parseInt(_0x283110(0xf3))/0x2)+parseInt(_0x283110(0x1d8))/0x3+parseInt(_0x283110(0xc5))/0x4*(parseInt(_0x283110(0x9f))/0x5)+-parseInt(_0x283110(0x85))/0x6*(-parseInt(_0x283110(0x76))/0x7)+parseInt(_0x283110(0xc4))/0x8+parseInt(_0x283110(0x16d))/0x9*(-parseInt(_0x283110(0x94))/0xa)+-parseInt(_0x283110(0x148))/0xb;if(_0x2615a0===_0x12eb8e)break;else _0xd418ee['push'](_0xd418ee['shift']());}catch(_0x188a81){_0xd418ee['push'](_0xd418ee['shift']());}}}(_0x5463,0x9829d));import{ContextPlugin as _0x218971,Editor as _0x58403b}from'ckeditor5/src/core.js';import{CKEditorError as _0x2aea12,logError as _0x37699d,scrollViewportToShowTarget as _0x1084ad,uid as _0x2df6a6}from'ckeditor5/src/utils.js';import{AIConnector as _0x43fe7d}from'../aicore/aiconnector.js';import{AITabs as _0x406009}from'../aitabs/aitabs.js';import{AIChatConversation as _0x83be58}from'./model/aichatconversation.js';import{getTranslation as _0x20a620}from'../aicore/utils/common-translations.js';function _0x5463(){const _0x3777e0=['activeConversation','isInContext','length','isPremiumPlugin','rootName','node','setModel','createConversation','ai-request-aborted','content','_updateRatings','reasoningStarted','editing','removeFeedInteraction','_integrateEditor','setIsUploadInProgress','AI_CHAT_GENERIC_ERROR','contextItemAdded','redo','AI_CHAT_RESOURCE_LOAD_FAILED','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','getDiff','createPositionAt','interactionDestroyed','capabilitiesUpdated','ai-chat-invalid-request','showFakeVisualSelection','addFilesToContext','documentContextContent','has','ai-chat-controller-mouse-over','ai-chat-context-unsupported-file-type','$graveyard','removeMarker','_insertSuggestion','root','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','from','marker','applySuggestion','children','cloneNode','handleRemovedConversation','applyOperation','setAddContextOptions','getPath','_aiChatModels','getChildAtOffset','sourceResourcesLoaded','AI_CHAT_ABORTED_MESSAGE','contextItems','source','closeSourceResourceBalloon','change','undo','_openBalloonFor','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','_getDocumentRangeForReplyChanges','activateTab','_aiConnector','updateFeedItemAIReplySuggestionPartState','setContextItemLoading','data-id','fetchConversation','domConverter','ai-conversation-','outdated','createRange','state','rejected','sourcePosition','selectModel','updateCurrentDocumentInContext','11249612hbXMLB','getInteractionAndReplyById','removeSelectionFromChatContext','collaboration.channelId','main','isUploadInProgress','updateContent','ai-chat-context-unsupported-type','sendUserMessage','Showing\x20conversation\x20history...','316DnwLEL','_batchToChanges','_toggleReasoning','ai-chat-conversation-start-failed','revert','uploadProgressChanged','_logError','delete','isCurrentDocumentInConversation','addContextItem','listenTo','model','batch','ai-chat-resource-load-failed','replyCreated','like','_handleUIUserMessage','disableControls','error','AIConnector','addFeedItemError','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','new','showPrevious','config','addResourceToContext','split','586422oybWqV','ai.chat.context','setIsMaximized','_aiEditing','accepted','stopInteraction','contextItemRemoved','_aiChatUi','_showConversationHistory','ai-chat-file-upload-failed','interactionCreated','mouseLeaveSuggestion','abortPromptStream','message','_setIsMaximized','_startConversationSafely','conversationInitialized','pending','stop','startInteraction','updateCapabilities','_updateReplyContent','_balloonShowDiff','sendMessage','indexOf','ai-chat-url-upload-failed','plugins','addOperation','addFeedItemStaticMessage','AI_CHAT_UNTITLED_CONVERSATION','uiId','end','ai-chat-context-file-too-many-pages','addDocumentToContext','sourceId','range','webSearchFinished','streaming','setSelectedModel','_flushLastInteractionUI','query','resizedTabs','startsWith','anchorId','view','init','replies','_handleStartConversation','get','getRoot','contextItemLoadingEnded','updateConversationTitle','getAttribute','getSelectionText','populateSourceResourceBalloon','indexes','finishInteraction','resourceId','resource','document','clearConversationContextUI','isModelAvailable','replyId','AI_CHAT_CONTEXT_FILE_TOO_LARGE','ai-chat-context-form-data-size-limits-exceeded','AI_BALLOON_HEADER_TITLE','editors','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','ai.availableReplyActions','nextSibling','updateFeedItemAIReplyContent','_createFromRanges','isStarted','toViewRange','interactionFinished','mapper','loadConversation','scrollFeedToSuggestion','Liked\x20response','ai-chat-missing-channel-id','commands','enableControls','_removeFromContext','howMany','maxOffset','contextItem','ai-no-track-changes','viewRangeToDom','Disliked\x20response','getMarkersGroup','find','webSearchStarted','toggleSuggestionDisplayMode','addUrlToContext','getReply','insertSuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','createPositionFromPath','dislike','stopListening','toString','resources','type','ai.chat.models.defaultModelId','_applySuggestion','replyChangeGroupStateUpdated','getDocumentContext','2334717sEShlS','ai-chat-source-resources-load-failed','toggleLoadingSkeleton','forEach','getDocumentData','rejectSuggestion','setConversationContext','replyContentUpdated','options','_applyOperationsAsSuggestions','uid','7GouqiC','addFeedItemUserMessage','AIChatController','getGroupId','clearPendingContextUI','modification-delta','toggleWebSearch','_scrollToSuggestionRange','addFeedInteractionHeader','slice','AI_CHAT_CONTEXT_INVALID_DATA','setFeedItemRenderingStrategy','ai-chat-controller-no-active-conversation','dialogClosed','ai-chat-context-invalid-data','4425978hgObUG','addSelectionToContext','hideFakeVisualSelection','parse','hasChanges','setChangeGroupState','removeSelectionFromContext','_toggleWebSearch','showDiff','getContentParts','getOperations','AITabs','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','changes','partIndex','10DDlIBZ','map','addFeedItemAISuggestion','reasoningFinished','open','selectedModel','ai.chat.models.displayedModels','messageId','removed','interactionId','text-delta','15CgbQLz','version','AIEditing','path','sources','getTransformedByOperation','interactionStarted','TrackChangesEditing','modelSelected','showChangeInText','chat','data','getRanges','baseVersion','current-document','ai-chat-conversation-init-failed','isDisabled','lastInteraction','findIndex','addFileToContext','log','setLoadingMessage','start','unshift','startConversation','markers','resetMessageInput','_removeAISelectionMarkers','focusPromptInput','isDocumentOperation','_stopLastInteraction','context','filter','getFirstRange','push','ai-chat-conversation-not-found','Undo','4509456NlcHHu','457124HKELBH','alignToTop','mouseOverSuggestion','updateFeedItemAIReplySuggestionContent','TrackChanges','pluginName','index','full','removeFromContext','resizeTabs','getConversation','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','updateFeedItemAIReplySources','toggleReasoning','locale','ai-chat-context-file-too-large','resetConversationTitle','updateResourceState','changeGroups','AIChatUI','getInteraction','handleUserInteraction','addCurrentDocumentToContext','static','loadSourceResources','ready','isCurrentDocumentInContext','startAutoScroll','getChildren','upsertAIChatRating','afterInit','load','add','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','addContextOptionsChanged','requires','getChild','contextSent','isOfficialPlugin','_previewedChangeGroup','removeContextItem','addSelectionToChatContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','isOpen','selection','set','4502adZtAb','history','isLoading','resourceStateChanged','AI_CHAT_INVALID_REQUEST','resize','remove','DocumentCompare','close','setConversationTitle','addFeedItemAIReply','showNext'];_0x5463=function(){return _0x3777e0;};return _0x5463();}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x332dfc}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x1eae55}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x40dce3}from'./model/aichatmodels.js';import{getEditorFromContext as _0x27a01b}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1f9bda,DATA_ID_MODEL_ATTRIBUTE as _0x30bdda}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2ea0(_0x200a2a,_0x51cf3d){const _0x54631e=_0x5463();return _0x2ea0=function(_0x2ea0a0,_0x490dfc){_0x2ea0a0=_0x2ea0a0-0x75;let _0x37d695=_0x54631e[_0x2ea0a0];return _0x37d695;},_0x2ea0(_0x200a2a,_0x51cf3d);}import{fixMarkerOperationOldRange as _0xa5e704,getOperationsFromReply as _0x27437e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xec16d,getMinimalSelection as _0x39d438}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x29e4f1,_DetachOperation as _0x46c604}from'ckeditor5/src/engine.js';import{findOne as _0x5b796f,getAttribute as _0x868855,serialize as _0xa90766,Document as _0x3f8498,findByAttribute as _0x542dd7}from'../aicore/utils/htmlparser.js';import{IconAI as _0x181f7c}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x12d899}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x1baf23}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x218971{[_0x25bc84(0x170)];[_0x25bc84(0x13a)];[_0x25bc84(0x174)];[_0x25bc84(0x12d)];[_0x25bc84(0x153)]=new Map();[_0x25bc84(0xec)]=null;[_0x25bc84(0x183)]=!0x1;static get[_0x25bc84(0xe8)](){return[_0x43fe7d,_0x1baf23,_0x1f9bda];}static get[_0x25bc84(0xca)](){const _0x2fc0d9=_0x25bc84;return _0x2fc0d9(0x78);}static get[_0x25bc84(0xeb)](){return!0x0;}static get[_0x25bc84(0x102)](){return!0x0;}[_0x25bc84(0x19a)](){const _0x5af906=_0x25bc84;this[_0x5af906(0x13a)]=this[_0x5af906(0xbe)][_0x5af906(0x187)][_0x5af906(0x19d)](_0x5af906(0x165)),this[_0x5af906(0x174)]=this[_0x5af906(0xbe)][_0x5af906(0x187)][_0x5af906(0x19d)](_0x5af906(0xd8)),this[_0x5af906(0x170)]=this[_0x5af906(0xbe)][_0x5af906(0x187)][_0x5af906(0x19d)](_0x5af906(0xa1)),this[_0x5af906(0x12d)]=new _0x40dce3({'connector':this[_0x5af906(0x13a)],'availableModels':this[_0x5af906(0xbe)][_0x5af906(0x16a)][_0x5af906(0x19d)](_0x5af906(0x9a)),'defaultModelId':this[_0x5af906(0xbe)][_0x5af906(0x16a)][_0x5af906(0x19d)](_0x5af906(0x1d4))});const _0x253332=this[_0x5af906(0xbe)][_0x5af906(0x187)][_0x5af906(0x19d)](_0x5af906(0x90));this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xb7),()=>{const _0x286708=_0x5af906;this[_0x286708(0x17c)]();}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x150),(_0x2d20b5,_0x4e6a32)=>{const _0x58a6ca=_0x5af906;this[_0x58a6ca(0x162)]({'userMessage':_0x4e6a32});}),this[_0x5af906(0x15c)](_0x253332,_0x5af906(0x196),(_0x3c7f8e,_0x5d264b)=>{const _0x3fe629=_0x5af906;this[_0x3fe629(0x17b)](_0x5d264b);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xce),()=>{const _0x5b395b=_0x5af906;_0x253332[_0x5b395b(0xf8)]();}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x179),async()=>{const _0x113b4e=_0x5af906;await this[_0x113b4e(0xbd)](),await this[_0x113b4e(0x194)](),this[_0x113b4e(0x14a)]();}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x18e),()=>{const _0x12b402=_0x5af906;this[_0x12b402(0xff)]?.[_0x12b402(0xdb)](_0x20a620(this[_0x12b402(0xbe)][_0x12b402(0xd3)],_0x12b402(0x123)));}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xb2),(_0x2cff56,_0x180925)=>{const _0x514e40=_0x5af906;this[_0x514e40(0xff)]?.[_0x514e40(0x11a)](Array[_0x514e40(0x124)](_0x180925));}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x1ca),(_0xa91acd,_0x277fc2)=>{const _0x50a61f=_0x5af906;this[_0x50a61f(0xff)]?.[_0x50a61f(0x1ca)](_0x277fc2);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x16b),(_0x5208cb,_0x4b91da)=>{const _0x5f3a5c=_0x5af906;this[_0x5f3a5c(0xff)]?.[_0x5f3a5c(0x16b)](_0x4b91da[_0x5f3a5c(0x132)],_0x4b91da[_0x5f3a5c(0x1a7)]);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xed),(_0x32310e,_0x2e0444)=>{const _0x10b421=_0x5af906;this[_0x10b421(0x1bf)](_0x2e0444);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xdd),(_0x164364,_0x5e3c3d)=>{const _0x4bef5d=_0x5af906;this[_0x4bef5d(0xff)]?.[_0x4bef5d(0xdd)](_0x5e3c3d[_0x4bef5d(0x18f)],_0x5e3c3d[_0x4bef5d(0x195)],_0x5e3c3d[_0x4bef5d(0x75)]);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x7c),()=>{const _0x1640b1=_0x5af906;this[_0x1640b1(0x8c)]();}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xd2),()=>{const _0x209632=_0x5af906;this[_0x209632(0x154)]();}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x146),(_0x173c33,_0x47d0f1)=>{const _0x3c3737=_0x5af906;this[_0x3c3737(0xff)]?.[_0x3c3737(0x105)](_0x47d0f1);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x161),(_0x2cceed,{replyId:_0x2c2199})=>{const _0x111c35=_0x5af906;console[_0x111c35(0xb3)](_0x111c35(0x1bb),_0x2c2199);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x1cf),(_0x2480ba,{replyId:_0x840381})=>{const _0x9e3d0c=_0x5af906;console[_0x9e3d0c(0xb3)](_0x9e3d0c(0x1c5),_0x840381);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x1cc),(_0x571a59,_0x34b3ca)=>{const _0x312c09=_0x5af906;this[_0x312c09(0xbe)][_0x312c09(0x187)][_0x312c09(0x19d)](_0x1baf23)[_0x312c09(0xfb)](),this[_0x312c09(0x121)](_0x34b3ca);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xa8),(_0x2ac7e2,{replyId:_0xc8a541,partIndex:_0x193d29})=>{const _0x21c64d=_0x5af906;this[_0x21c64d(0x183)]=this[_0x21c64d(0x174)][_0x21c64d(0x8d)],this[_0x21c64d(0x136)](_0xc8a541,_0x193d29);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0xc7),(_0x198149,{replyId:_0x2a3c8e,partIndex:_0x3e8695})=>{const _0x2beb79=_0x5af906,_0x387ca3=this[_0x2beb79(0x138)](_0x2a3c8e,_0x3e8695);_0x387ca3&&_0x2beb79(0x11f)!=_0x387ca3[_0x2beb79(0x190)][_0x2beb79(0x122)][_0x2beb79(0x103)]&&this[_0x2beb79(0x170)][_0x2beb79(0x119)]([_0x387ca3[_0x2beb79(0x190)]],_0x2beb79(0x11d));}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x178),()=>{const _0x399d9f=_0x5af906;this[_0x399d9f(0x170)][_0x399d9f(0x87)](_0x399d9f(0x11d));}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x126),(_0x42a711,_0x323621)=>{const _0x105e01=_0x5af906;this[_0x105e01(0xbe)][_0x105e01(0x187)][_0x105e01(0x19d)](_0x1baf23)[_0x105e01(0xfb)](),this[_0x105e01(0x1d5)](_0x323621);}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x1c9),async(_0x12e1f7,{replyId:_0x2433cb,showDiff:_0x29aac1})=>{const _0x538df4=_0x5af906,{reply:_0x9fbb6}=this[_0x538df4(0x149)](_0x2433cb),_0x2c80a8=_0x9fbb6[_0x538df4(0x8e)]({'showDiff':_0x29aac1});await this[_0x538df4(0x174)][_0x538df4(0xc8)]({'id':_0x9fbb6['id'],'parts':_0x2c80a8,'renderingStrategy':_0x538df4(0xdc)});}),this[_0x5af906(0x15c)](this[_0x5af906(0x174)],_0x5af906(0x1dd),(_0x50bc27,{replyId:_0x11ca43,partIndex:_0xeecb4f})=>{const _0x574f1d=_0x5af906;this[_0x574f1d(0xec)]?.[_0x574f1d(0x1ab)]==_0x11ca43&&this[_0x574f1d(0xec)]?.[_0x574f1d(0x93)]==_0xeecb4f&&this[_0x574f1d(0xbe)][_0x574f1d(0x187)][_0x574f1d(0x19d)](_0x1baf23)[_0x574f1d(0xfb)]();const {reply:_0xca9e4c}=this[_0x574f1d(0x149)](_0x11ca43);_0xca9e4c[_0x574f1d(0x8a)](_0xeecb4f,_0x574f1d(0x144)),this[_0x574f1d(0x170)][_0x574f1d(0x87)](_0x574f1d(0x11d));});}async[_0x25bc84(0xe3)](){const _0x315ba7=_0x25bc84;this[_0x315ba7(0xbe)]instanceof _0x58403b?this[_0x315ba7(0x10d)](this[_0x315ba7(0xbe)]):this[_0x315ba7(0x15c)](this[_0x315ba7(0xbe)][_0x315ba7(0x1af)],_0x315ba7(0xe5),(_0xc5eeaa,_0x3b38b3)=>{const _0x3291d5=_0x315ba7;_0x3b38b3['on'](_0x3291d5(0xde),()=>{const _0x383df7=_0x3291d5;this[_0x383df7(0x10d)](_0x3b38b3);});}),await this[_0x315ba7(0x17c)]();}[_0x25bc84(0x121)](_0x1401c3){const _0x250e2e=_0x25bc84,_0x42be6a=_0x27a01b(this[_0x250e2e(0xbe)]);if(!_0x42be6a[_0x250e2e(0x187)][_0x250e2e(0x11c)](_0x250e2e(0xc9)))throw new _0x2aea12(_0x250e2e(0x1c3),null);const _0x17c70c=this[_0x250e2e(0xbe)][_0x250e2e(0x187)][_0x250e2e(0x19d)](_0x250e2e(0xfa)),{reply:_0x2a9d06,interaction:_0x2e039f}=this[_0x250e2e(0x149)](_0x1401c3[_0x250e2e(0x1ab)]),_0x532d09=this[_0x250e2e(0x138)](_0x1401c3[_0x250e2e(0x1ab)],_0x1401c3[_0x250e2e(0x93)]),_0x3d5271=void 0x0!==_0x1401c3[_0x250e2e(0x93)]?[_0x2a9d06[_0x250e2e(0xd7)][_0x1401c3[_0x250e2e(0x93)]]]:_0x2a9d06[_0x250e2e(0xd7)][_0x250e2e(0xbf)](_0x3bcc77=>_0x250e2e(0x17e)==_0x3bcc77[_0x250e2e(0x143)]),_0x4bf331=_0x3d5271[_0x250e2e(0x95)](_0x14adde=>_0x2a9d06[_0x250e2e(0xd7)][_0x250e2e(0x185)](_0x14adde));if(!_0x532d09||_0x250e2e(0x11f)==_0x532d09[_0x250e2e(0x190)][_0x250e2e(0x122)][_0x250e2e(0x103)])return void _0x4bf331[_0x250e2e(0x1db)](_0x1b649a=>_0x2a9d06[_0x250e2e(0x8a)](_0x1b649a,_0x250e2e(0x141)));_0x4bf331[_0x250e2e(0x1db)](_0x189dd5=>_0x2a9d06[_0x250e2e(0x8a)](_0x189dd5,_0x250e2e(0x171)));const _0x10a655=_0x27437e({'editor':_0x42be6a,'reply':_0x2a9d06,'interaction':_0x2e039f,'groups':_0x3d5271,'transform':!0x0,'documentCompare':_0x17c70c,'documentCompareOptions':{'anchor':_0x250e2e(0x14c),'markDeletions':!0x0}});let _0x5a1a1a;_0x532d09&&this[_0x250e2e(0x7d)](_0x532d09[_0x250e2e(0x190)]),_0x42be6a[_0x250e2e(0x15d)][_0x250e2e(0x134)](_0x23ab21=>{const _0x3252df=_0x250e2e;_0x5a1a1a=_0x23ab21[_0x3252df(0x15e)],_0x42be6a[_0x3252df(0x187)][_0x3252df(0x19d)](_0x3252df(0xa6))[_0x3252df(0x1e1)](_0x10a655),this[_0x3252df(0x170)][_0x3252df(0x87)](_0x3252df(0x11d));}),this[_0x250e2e(0x153)][_0x250e2e(0xf2)](_0x5a1a1a,{'interactionId':_0x2e039f['id'],'replyId':_0x2a9d06['id'],'indexes':_0x4bf331[_0x250e2e(0x7f)]()}),this[_0x250e2e(0x109)](_0x2a9d06);}[_0x25bc84(0x1d5)](_0x146cf8){const _0x3c0bbe=_0x25bc84,_0x7566b8=_0x27a01b(this[_0x3c0bbe(0xbe)]),_0x370d50=this[_0x3c0bbe(0xbe)][_0x3c0bbe(0x187)][_0x3c0bbe(0x19d)](_0x1f9bda),{reply:_0x5d52e5,interaction:_0x53995d}=this[_0x3c0bbe(0x149)](_0x146cf8[_0x3c0bbe(0x1ab)]),_0x33e385=this[_0x3c0bbe(0x138)](_0x146cf8[_0x3c0bbe(0x1ab)],_0x146cf8[_0x3c0bbe(0x93)]),_0x226ec0=void 0x0!==_0x146cf8[_0x3c0bbe(0x93)]?[_0x5d52e5[_0x3c0bbe(0xd7)][_0x146cf8[_0x3c0bbe(0x93)]]]:_0x5d52e5[_0x3c0bbe(0xd7)][_0x3c0bbe(0xbf)](_0x33f119=>_0x3c0bbe(0x17e)==_0x33f119[_0x3c0bbe(0x143)]),_0x2b3e92=_0x226ec0[_0x3c0bbe(0x95)](_0x16a606=>_0x5d52e5[_0x3c0bbe(0xd7)][_0x3c0bbe(0x185)](_0x16a606));if(!_0x33e385||_0x3c0bbe(0x11f)==_0x33e385[_0x3c0bbe(0x190)][_0x3c0bbe(0x122)][_0x3c0bbe(0x103)])return void _0x2b3e92[_0x3c0bbe(0x1db)](_0x4d4c0a=>_0x5d52e5[_0x3c0bbe(0x8a)](_0x4d4c0a,_0x3c0bbe(0x141)));_0x2b3e92[_0x3c0bbe(0x1db)](_0x9254e7=>_0x5d52e5[_0x3c0bbe(0x8a)](_0x9254e7,_0x3c0bbe(0x171)));const _0x48c5a0=_0x27437e({'editor':_0x7566b8,'reply':_0x5d52e5,'interaction':_0x53995d,'groups':_0x226ec0,'transform':!0x0,'documentCompare':_0x370d50,'documentCompareOptions':{'anchor':_0x3c0bbe(0x14c),'markDeletions':!0x1}});let _0x3ae138;_0x33e385&&this[_0x3c0bbe(0x7d)](_0x33e385[_0x3c0bbe(0x190)]),_0x7566b8[_0x3c0bbe(0x15d)][_0x3c0bbe(0x134)](_0x1f484d=>{const _0x5db405=_0x3c0bbe;_0x3ae138=_0x1f484d[_0x5db405(0x15e)];for(const _0xd87cd of _0x48c5a0)_0xd87cd[_0x5db405(0xac)]=_0x7566b8[_0x5db405(0x15d)][_0x5db405(0x1a8)][_0x5db405(0xa0)],_0xa5e704(_0x7566b8,_0xd87cd),_0x1f484d[_0x5db405(0x15e)][_0x5db405(0x188)](_0xd87cd),_0x7566b8[_0x5db405(0x15d)][_0x5db405(0x12a)](_0xd87cd);}),this[_0x3c0bbe(0x153)][_0x3c0bbe(0xf2)](_0x3ae138,{'interactionId':_0x53995d['id'],'replyId':_0x5d52e5['id'],'indexes':_0x2b3e92[_0x3c0bbe(0x7f)]()}),this[_0x3c0bbe(0x109)](_0x5d52e5);}[_0x25bc84(0x136)](_0x74fd63,_0x14301e){const _0x5c7792=_0x25bc84,_0x434134=_0x27a01b(this[_0x5c7792(0xbe)]),_0x3e26a5=this[_0x5c7792(0x138)](_0x74fd63,_0x14301e),_0x2bf5dd=this[_0x5c7792(0xbe)][_0x5c7792(0x187)][_0x5c7792(0x19d)](_0x1baf23);if(!_0x3e26a5)return void _0x2bf5dd[_0x5c7792(0xfb)]();const {range:_0x26a6bc,currentIndex:_0x4bd827}=_0x3e26a5;if(_0x5c7792(0x11f)==_0x26a6bc[_0x5c7792(0x122)][_0x5c7792(0x103)]){const {reply:_0x2b3c13}=this[_0x5c7792(0x149)](_0x74fd63);return _0x2b3c13[_0x5c7792(0x8a)](_0x4bd827,_0x5c7792(0x141)),void _0x2bf5dd[_0x5c7792(0xfb)]();}if(this[_0x5c7792(0xec)]?.[_0x5c7792(0x1ab)]==_0x74fd63&&this[_0x5c7792(0xec)]?.[_0x5c7792(0x93)]==_0x4bd827)return;this[_0x5c7792(0x1d0)](_0x2bf5dd),this[_0x5c7792(0xec)]={'replyId':_0x74fd63,'partIndex':_0x4bd827};let _0x4efc1c=_0x434134[_0x5c7792(0x16a)][_0x5c7792(0x19d)](_0x5c7792(0x1b1))||[..._0x1eae55];_0x434134[_0x5c7792(0x187)][_0x5c7792(0x11c)](_0x5c7792(0xc9))||(_0x4efc1c=_0x4efc1c[_0x5c7792(0xbf)](_0x44723f=>_0x5c7792(0x1cc)!=_0x44723f));const _0x400e02=new _0x12d899(_0x434134[_0x5c7792(0xd3)],{'showDiff':this[_0x5c7792(0x183)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x5c7792(0xcc)},'hideHeader':!0x0,'availableActions':_0x4efc1c});this[_0x5c7792(0x1d0)](_0x400e02);const {reply:_0x25b3ad}=this[_0x5c7792(0x149)](_0x74fd63),_0x51d15a=_0x25b3ad[_0x5c7792(0x8e)]({'showDiff':this[_0x5c7792(0x183)]})[_0x5c7792(0xbf)](_0x4e7758=>_0x4e7758[_0x5c7792(0x89)]),_0x394167=_0x51d15a[_0x5c7792(0xb1)](_0x9f0254=>_0x9f0254[_0x5c7792(0xcb)]==_0x4bd827);if(-0x1==_0x394167)return;const _0x203139=_0x51d15a[_0x394167],_0x54fea3=_0x51d15a['at']((_0x394167-0x1)%_0x51d15a[_0x5c7792(0x101)])?.[_0x5c7792(0xcb)],_0x161b16=_0x51d15a['at']((_0x394167+0x1)%_0x51d15a[_0x5c7792(0x101)])?.[_0x5c7792(0xcb)];_0x400e02[_0x5c7792(0x14e)]({'parts':[_0x203139],'renderingStrategy':_0x5c7792(0xdc)});const _0x455d40=_0x4bd827!==_0x54fea3;this[_0x5c7792(0x7d)](_0x26a6bc,!0x0),_0x2bf5dd[_0x5c7792(0x98)]({'index':_0x4bd827,'title':_0x20a620(this[_0x5c7792(0xbe)][_0x5c7792(0xd3)],_0x5c7792(0x1ae),(_0x394167+0x1)[_0x5c7792(0x1d1)]()),'icon':_0x181f7c,'mainView':_0x400e02,'showRotator':_0x455d40,'showApplyButton':!0x0,'showSuggestButton':_0x434134[_0x5c7792(0x187)][_0x5c7792(0x11c)](_0x5c7792(0xc9)),'ranges':[_0x26a6bc]}),this[_0x5c7792(0x174)][_0x5c7792(0x1ba)](_0x74fd63,_0x4bd827),this[_0x5c7792(0x15c)](_0x400e02,_0x5c7792(0x1c9),(_0xa27e86,{showDiff:_0x168d45})=>{const _0x227413=_0x5c7792;this[_0x227413(0x183)]=_0x168d45;const {reply:_0x4c3743}=this[_0x227413(0x149)](_0x74fd63),_0xc24f65=_0x4c3743[_0x227413(0x8e)]({'showDiff':_0x168d45,'groupIndex':_0x4bd827});_0x400e02[_0x227413(0x14e)]({'parts':_0xc24f65,'renderingStrategy':_0x227413(0xdc)});}),this[_0x5c7792(0x15c)](_0x2bf5dd,_0x5c7792(0x126),()=>{const _0x3da679=_0x5c7792;this[_0x3da679(0x1d5)]({'replyId':_0x74fd63,'partIndex':_0x4bd827}),_0x455d40?this[_0x3da679(0x136)](_0x74fd63,_0x161b16):_0x2bf5dd[_0x3da679(0xfb)]();}),this[_0x5c7792(0x15c)](_0x2bf5dd,_0x5c7792(0x1cc),()=>{const _0x241768=_0x5c7792;this[_0x241768(0x121)]({'replyId':_0x74fd63,'partIndex':_0x4bd827}),_0x455d40?this[_0x241768(0x136)](_0x74fd63,_0x161b16):_0x2bf5dd[_0x241768(0xfb)]();}),_0x455d40&&(this[_0x5c7792(0x15c)](_0x2bf5dd,_0x5c7792(0xfe),()=>{const _0x28915d=_0x5c7792;this[_0x28915d(0x136)](_0x74fd63,_0x161b16);}),this[_0x5c7792(0x15c)](_0x2bf5dd,_0x5c7792(0x169),()=>{const _0x24817c=_0x5c7792;this[_0x24817c(0x136)](_0x74fd63,_0x54fea3);})),this[_0x5c7792(0x15c)](_0x2bf5dd,_0x5c7792(0x83),()=>{const _0x4aa580=_0x5c7792;this[_0x4aa580(0x1d0)](_0x2bf5dd),this[_0x4aa580(0x1d0)](_0x400e02),this[_0x4aa580(0xec)]=null;});}[_0x25bc84(0x138)](_0x55dff0,_0x5ccc58){const _0x536d62=_0x25bc84,_0x58d5ea=_0x27a01b(this[_0x536d62(0xbe)]),{reply:_0x21fd48,interaction:_0x48aeb6}=this[_0x536d62(0x149)](_0x55dff0),_0x445668=_0x21fd48[_0x536d62(0xd7)][_0x536d62(0xbf)](_0x4f1b6c=>_0x536d62(0x17e)==_0x4f1b6c[_0x536d62(0x143)]),_0x5ec2ae=_0x445668[_0x536d62(0x95)](_0x59c894=>_0x21fd48[_0x536d62(0xd7)][_0x536d62(0x185)](_0x59c894));void 0x0===_0x5ccc58&&(_0x5ccc58=_0x5ec2ae[0x0]);const _0x2f8834=_0x5ec2ae[_0x536d62(0x185)](_0x5ccc58);if(-0x1==_0x2f8834)return null;const _0x44dd17=_0x445668[_0x2f8834],_0xef59db=new _0x3f8498([]),_0x22f40d=new _0x3f8498([]);for(const _0x41ea86 of _0x44dd17[_0x536d62(0x92)])if(_0x536d62(0x9c)!=_0x41ea86[_0x536d62(0x1d3)]&&_0x22f40d[_0x536d62(0x127)][_0x536d62(0xc1)](_0x41ea86[_0x536d62(0x104)][_0x536d62(0x128)](!0x0)),_0x536d62(0x168)!=_0x41ea86[_0x536d62(0x1d3)]){const _0x51e317=_0x5b796f(_0x1892e4=>_0x868855(_0x1892e4,_0x536d62(0x13d))==_0x41ea86['id'],_0x21fd48[_0x536d62(0x11b)],!0x0);_0xef59db[_0x536d62(0x127)][_0x536d62(0xc1)](_0x51e317[_0x536d62(0x128)](!0x0));}if(0x0==_0xef59db[_0x536d62(0x127)][_0x536d62(0x101)]){if(_0x44dd17[_0x536d62(0x92)][0x0][_0x536d62(0x198)]){const _0x231dc0=_0x542dd7(_0x536d62(0x13d),_0x44dd17[_0x536d62(0x92)][0x0][_0x536d62(0x198)],_0x21fd48[_0x536d62(0x11b)]);_0xef59db[_0x536d62(0x127)][_0x536d62(0xb6)](_0x231dc0[_0x536d62(0x128)](!0x0)),_0x22f40d[_0x536d62(0x127)][_0x536d62(0xb6)](_0x231dc0[_0x536d62(0x128)](!0x0)),_0x231dc0[_0x536d62(0x1b2)]&&(_0xef59db[_0x536d62(0x127)][_0x536d62(0xc1)](_0x231dc0[_0x536d62(0x1b2)][_0x536d62(0x128)](!0x0)),_0x22f40d[_0x536d62(0x127)][_0x536d62(0xc1)](_0x231dc0[_0x536d62(0x1b2)][_0x536d62(0x128)](!0x0)));}else{const _0x25f3f3=_0x21fd48[_0x536d62(0x11b)][_0x536d62(0x127)][0x0];if(!_0x25f3f3)return null;_0xef59db[_0x536d62(0x127)][_0x536d62(0xc1)](_0x25f3f3[_0x536d62(0x128)](!0x0)),_0x22f40d[_0x536d62(0x127)][_0x536d62(0xc1)](_0x25f3f3[_0x536d62(0x128)](!0x0));}}const _0x1fd7c7=_0x48aeb6[_0x536d62(0x1d7)](),_0x4873a8=_0x58d5ea[_0x536d62(0xaa)][_0x536d62(0x88)](_0x1fd7c7[_0x536d62(0x108)]),_0x44c283=_0xa90766(_0xef59db),_0x495131=_0x58d5ea[_0x536d62(0xaa)][_0x536d62(0x88)](_0x44c283),_0x124a29=_0x58d5ea[_0x536d62(0xaa)][_0x536d62(0x88)](_0x44c283),_0x13cd28=_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x115)](_0x495131,0x0),_0x1767a9=_0xa90766(_0x22f40d),_0x1e4bb6={'anchor':_0x13cd28,'markDeletions':!0x1},_0x5f0b97=_0x58d5ea[_0x536d62(0x187)][_0x536d62(0x19d)](_0x1f9bda)[_0x536d62(0x114)](_0x44c283,_0x1767a9,_0x1e4bb6)[_0x536d62(0x8f)]();if(!_0x5f0b97[_0x536d62(0x101)])return null;_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x134)](_0x3f902e=>{const _0x3cbf7c=_0x536d62;for(const _0x2d805b of _0x5f0b97)if(_0x3cbf7c(0xf9)==_0x2d805b[_0x3cbf7c(0x1d3)]){const _0x113222=_0x2d805b[_0x3cbf7c(0x145)],_0x43a6d0=_0x2d805b[_0x3cbf7c(0x1c0)],_0x47687e=new _0x46c604(_0x113222,_0x43a6d0);_0x3f902e[_0x3cbf7c(0x15e)][_0x3cbf7c(0x188)](_0x47687e),_0x58d5ea[_0x3cbf7c(0x15d)][_0x3cbf7c(0x12a)](_0x47687e);}else _0x3cbf7c(0x125)!==_0x2d805b[_0x3cbf7c(0x1d3)]&&(_0x2d805b[_0x3cbf7c(0xac)]=null,_0x2d805b[_0x3cbf7c(0xbc)]=!0x1,_0x3f902e[_0x3cbf7c(0x15e)][_0x3cbf7c(0x188)](_0x2d805b),_0x58d5ea[_0x3cbf7c(0x15d)][_0x3cbf7c(0x12a)](_0x2d805b));});const _0x2bc14e=_0x39d438(_0x58d5ea,_0x5f0b97,_0x495131);_0xec16d(_0x58d5ea[_0x536d62(0x15d)],_0x2bc14e);const _0x109d12=_0x2bc14e[_0x536d62(0xc0)]()[_0x536d62(0xb5)][_0x536d62(0xa2)][_0x536d62(0x7f)](),_0x1bc702=_0x2bc14e[_0x536d62(0xc0)]()[_0x536d62(0x18c)][_0x536d62(0xa2)][_0x536d62(0x7f)](),_0x279377=[];let _0x232d33=_0x495131,_0x1a114e=_0x124a29;for(let _0xaa03d1=0x0;_0xaa03d1<_0x1bc702[_0x536d62(0x101)];_0xaa03d1++){const _0x4584b5=_0x232d33[_0x536d62(0x1c1)]-_0x1bc702[_0xaa03d1];_0x279377[_0xaa03d1]=_0x1a114e[_0x536d62(0x1c1)]-_0x4584b5,_0x232d33=_0x232d33[_0x536d62(0x12e)](_0x1bc702[_0xaa03d1]),_0x1a114e=_0x1a114e[_0x536d62(0x12e)](_0x279377[_0xaa03d1]);}const _0x2cfc28=_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x142)](_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x1ce)](_0x124a29,_0x109d12),_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x1ce)](_0x124a29,_0x279377)),_0x20fca9=_0x124a29[_0x536d62(0xe9)](0x0)[_0x536d62(0x1a1)](_0x30bdda),_0x4c4d03=Array[_0x536d62(0x124)](_0x4873a8[_0x536d62(0xe1)]())[_0x536d62(0x1c7)](_0x1ed986=>_0x1ed986[_0x536d62(0x1a1)](_0x30bdda)==_0x20fca9)[_0x536d62(0x12c)](),_0x4dbb98=_0x2cfc28[_0x536d62(0xb5)][_0x536d62(0xa2)][_0x536d62(0x7f)](),_0x1d053d=_0x2cfc28[_0x536d62(0x18c)][_0x536d62(0xa2)][_0x536d62(0x7f)]();_0x4dbb98[0x0]=_0x4c4d03[0x0]+_0x4dbb98[0x0],_0x1d053d[0x0]=_0x4c4d03[0x0]+_0x1d053d[0x0];let _0x34546c=_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x142)](_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x1ce)](_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x1a8)][_0x536d62(0x19e)](),_0x4dbb98),_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x1ce)](_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x1a8)][_0x536d62(0x19e)](),_0x1d053d));const _0x183339=_0x58d5ea[_0x536d62(0x15d)][_0x536d62(0x1a8)][_0x536d62(0xf4)][_0x536d62(0x8f)](_0x1fd7c7[_0x536d62(0xa0)]);for(const _0x1eadf6 of _0x183339)_0x34546c=_0x29e4f1[_0x536d62(0x1b4)](_0x34546c[_0x536d62(0xa4)](_0x1eadf6));return{'range':_0x34546c,'currentIndex':_0x5ccc58};}[_0x25bc84(0x10d)](_0x2a6b38){const _0x36572f=_0x25bc84;if(!_0x2a6b38[_0x36572f(0x187)][_0x36572f(0x11c)](_0x36572f(0xc3)))return;const _0x117779=_0x2a6b38[_0x36572f(0x1bd)][_0x36572f(0x19d)](_0x36572f(0x135)),_0x24280e=_0x2a6b38[_0x36572f(0x1bd)][_0x36572f(0x19d)](_0x36572f(0x111));this[_0x36572f(0x15c)](_0x117779,_0x36572f(0x156),(_0x1c7eb9,_0x4e86b6,_0x1f698f)=>{const _0x5a7928=_0x36572f,_0x5e4f10=this[_0x5a7928(0x153)][_0x5a7928(0x19d)](_0x4e86b6);if(!_0x5e4f10)return;const _0x5bc39d=this[_0x5a7928(0xff)][_0x5a7928(0xd9)](_0x5e4f10[_0x5a7928(0x9d)])[_0x5a7928(0x1cb)](_0x5e4f10[_0x5a7928(0x1ab)]);_0x5e4f10[_0x5a7928(0x1a4)][_0x5a7928(0x1db)](_0x57ad96=>_0x5bc39d[_0x5a7928(0x8a)](_0x57ad96,_0x5a7928(0x17e))),this[_0x5a7928(0x153)][_0x5a7928(0x159)](_0x4e86b6),this[_0x5a7928(0x153)][_0x5a7928(0xf2)](_0x1f698f,_0x5e4f10);}),this[_0x36572f(0x15c)](_0x24280e,_0x36572f(0x156),(_0x1f8345,_0x92ca81,_0x291150)=>{const _0x4f584f=_0x36572f,_0x4c7030=this[_0x4f584f(0x153)][_0x4f584f(0x19d)](_0x92ca81);if(!_0x4c7030)return;const _0x1b2eb2=this[_0x4f584f(0xff)][_0x4f584f(0xd9)](_0x4c7030[_0x4f584f(0x9d)])[_0x4f584f(0x1cb)](_0x4c7030[_0x4f584f(0x1ab)]);_0x4c7030[_0x4f584f(0x1a4)][_0x4f584f(0x1db)](_0x22f893=>_0x1b2eb2[_0x4f584f(0x8a)](_0x22f893,_0x4f584f(0x171))),this[_0x4f584f(0x153)][_0x4f584f(0x159)](_0x92ca81),this[_0x4f584f(0x153)][_0x4f584f(0xf2)](_0x291150,_0x4c7030);});}async[_0x25bc84(0x1b9)](_0x2c2f03){const _0x471ae4=_0x25bc84;this[_0x471ae4(0xbe)][_0x471ae4(0x187)][_0x471ae4(0x19d)](_0x1baf23)[_0x471ae4(0xfb)](),this[_0x471ae4(0x174)][_0x471ae4(0x81)](_0x471ae4(0xdc)),this[_0x471ae4(0x174)][_0x471ae4(0x1da)](!0x0),await this[_0x471ae4(0xbd)]();try{await this[_0x471ae4(0x13a)][_0x471ae4(0x13e)](_0x2c2f03)[_0x471ae4(0xcf)](),await this[_0x471ae4(0x17c)](_0x2c2f03),this[_0x471ae4(0x1a0)]('\x20');const {sessionId:_0x248fbb}=this[_0x471ae4(0x170)][_0x471ae4(0x1dc)]();await this[_0x471ae4(0xff)][_0x471ae4(0xe4)](_0x2c2f03,_0x248fbb),this[_0x471ae4(0xff)][_0x471ae4(0x15a)]()&&this[_0x471ae4(0xff)][_0x471ae4(0xdb)](_0x20a620(this[_0x471ae4(0xbe)][_0x471ae4(0xd3)],_0x471ae4(0x123)));}catch(_0x3fa17e){this[_0x471ae4(0x174)][_0x471ae4(0x166)]({'errorMessage':_0x20a620(this[_0x471ae4(0xbe)][_0x471ae4(0xd3)],_0x471ae4(0x167)),'id':_0x2c2f03}),this[_0x471ae4(0x158)](new _0x2aea12(_0x471ae4(0xc2),this,{'error':_0x3fa17e}));}finally{this[_0x471ae4(0xbe)][_0x471ae4(0x187)][_0x471ae4(0x19d)](_0x406009)[_0x471ae4(0x199)][_0x471ae4(0x139)](_0x471ae4(0xa9)),this[_0x471ae4(0x174)][_0x471ae4(0xe0)](),this[_0x471ae4(0x174)][_0x471ae4(0x81)](_0x471ae4(0x192)),this[_0x471ae4(0x174)][_0x471ae4(0x1da)](!0x1);}}[_0x25bc84(0x129)](_0x1d3648){const _0x26e877=_0x25bc84;this[_0x26e877(0xff)]['id']===_0x1d3648&&this[_0x26e877(0x17c)]();}async[_0x25bc84(0xee)](){const _0x2a2215=_0x25bc84,_0xda6861=this[_0x2a2215(0x170)][_0x2a2215(0x1a2)]();this[_0x2a2215(0xff)]?.[_0x2a2215(0x86)](_0xda6861),this[_0x2a2215(0xff)]?.[_0x2a2215(0xdb)](_0x20a620(this[_0x2a2215(0xbe)][_0x2a2215(0xd3)],_0x2a2215(0x123)));}[_0x25bc84(0x14a)](){const _0xfffd41=_0x25bc84;this[_0xfffd41(0xff)]?.[_0xfffd41(0x8b)]();}[_0x25bc84(0xbb)](){const _0x4c12e4=_0x25bc84;this[_0x4c12e4(0x174)][_0x4c12e4(0xbb)]();}async[_0x25bc84(0xb7)](){const _0x220e74=_0x25bc84;await this[_0x220e74(0x17c)]();}async[_0x25bc84(0x184)]({message:_0x4ce81c,quickActionData:_0x401ba3}){const _0x5788c8=_0x25bc84;await this[_0x5788c8(0x162)]({'userMessage':_0x4ce81c,'quickActionData':_0x401ba3});}[_0x25bc84(0x79)](){const _0x33d2ae=_0x25bc84,_0x226d6b=this[_0x33d2ae(0xbe)][_0x33d2ae(0x16a)][_0x33d2ae(0x19d)](_0x33d2ae(0x14b));if(!_0x226d6b)throw new _0x2aea12(_0x33d2ae(0x1bc),this);return _0x226d6b;}async[_0x25bc84(0x17c)](_0x2763fd){const _0x281b72=_0x25bc84;try{this[_0x281b72(0x174)][_0x281b72(0x1be)](),await this[_0x281b72(0x19c)](_0x2763fd);}catch(_0x39076e){this[_0x281b72(0x174)][_0x281b72(0x166)]({'errorMessage':_0x20a620(this[_0x281b72(0xbe)][_0x281b72(0xd3)],_0x281b72(0x1cd)),'id':_0x2763fd||_0x2df6a6()}),console[_0x281b72(0x164)](_0x39076e),this[_0x281b72(0xff)]=void 0x0,this[_0x281b72(0x174)][_0x281b72(0x163)]();}}async[_0x25bc84(0x19c)](_0x1cec4e){const _0x4aba08=_0x25bc84,_0x1feec1=this[_0x4aba08(0xbe)][_0x4aba08(0x187)][_0x4aba08(0x19d)](_0x1baf23);let _0xeda8d0;_0x1feec1[_0x4aba08(0xf0)]&&_0x1feec1[_0x4aba08(0xfb)](),_0x1cec4e||!this[_0x4aba08(0xff)]?_0xeda8d0=this[_0x4aba08(0xbe)][_0x4aba08(0x16a)][_0x4aba08(0x19d)](_0x4aba08(0x1d4)):this[_0x4aba08(0x174)][_0x4aba08(0x1aa)]&&(_0xeda8d0=this[_0x4aba08(0xff)][_0x4aba08(0x99)]['id']),await this[_0x4aba08(0xbd)]();const _0x292df8=this[_0x4aba08(0x79)](),_0xa332ba=_0x1cec4e||_0x2df6a6();this[_0x4aba08(0xff)]=new _0x83be58({'connector':this[_0x4aba08(0x13a)],'chatModels':this[_0x4aba08(0x12d)],'selectedModelId':_0xeda8d0,'conversationId':_0xa332ba,'group':_0x292df8,'getEditor':()=>_0x27a01b(this[_0x4aba08(0xbe)])}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x17d),(_0x2b3941,_0x1fb410)=>{const _0x4fc44f=_0x4aba08;this[_0x4fc44f(0x174)][_0x4fc44f(0x106)](_0x1fb410),this[_0x4fc44f(0x174)][_0x4fc44f(0xb9)](),this[_0x4fc44f(0x174)][_0x4fc44f(0x7a)](),this[_0x4fc44f(0x174)][_0x4fc44f(0x1a9)](),_0x1cec4e||(this[_0x4fc44f(0x174)][_0x4fc44f(0xd5)](),this[_0x4fc44f(0xff)]?.[_0x4fc44f(0xdb)](_0x20a620(this[_0x4fc44f(0xbe)][_0x4fc44f(0xd3)],_0x4fc44f(0x123))));}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x157),(_0x5bec91,_0x126f0c)=>{const _0x4f99d0=_0x4aba08;this[_0x4f99d0(0x174)][_0x4f99d0(0x10e)](_0x126f0c[_0x4f99d0(0x14d)]);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x177),(_0x324607,_0xb1a284)=>{const _0x942005=_0x4aba08;this[_0x942005(0x174)][_0x942005(0x77)](_0xb1a284);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x1c8),()=>{const _0xf9f7b5=_0x4aba08;this[_0xf9f7b5(0x174)][_0xf9f7b5(0xb4)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x10a),()=>{const _0x24d33c=_0x4aba08;this[_0x24d33c(0x174)][_0x24d33c(0xb4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x191),(_0x23f801,_0x11206c)=>{const _0x1a613e=_0x4aba08;this[_0x1a613e(0x174)][_0x1a613e(0x7e)](_0x11206c,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x97),(_0x5ef2d7,_0x1efd5a)=>{const _0x121001=_0x4aba08;this[_0x121001(0x174)][_0x121001(0x7e)](_0x1efd5a,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0xa5),()=>{const _0x322acf=_0x4aba08;this[_0x322acf(0x174)][_0x322acf(0x180)]();}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x1b7),async()=>{const _0x471db4=_0x4aba08;await this[_0x471db4(0x174)][_0x471db4(0x1a5)]();}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x116),(_0x23beb1,_0x26e623)=>{const _0x15984d=_0x4aba08;this[_0x15984d(0x174)][_0x15984d(0x10c)](_0x26e623['id']);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0xfc),(_0x236ab3,_0x469a9b,_0x3f7817)=>{const _0x242624=_0x4aba08;this[_0x242624(0x1a0)](_0x469a9b,_0x3f7817);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x160),(_0x40397f,_0x519e26)=>{const _0x21a175=_0x4aba08;_0x21a175(0x9e)===_0x519e26[_0x21a175(0x1d3)]?this[_0x21a175(0x174)][_0x21a175(0xfd)](_0x519e26):this[_0x21a175(0x174)][_0x21a175(0x96)](_0x519e26);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x1df),async(_0x46c5bd,_0xd4c057)=>{const _0xf1850c=_0x4aba08;await this[_0xf1850c(0x182)]({'reply':_0xd4c057});}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x1d6),(_0x2f682b,{reply:_0x2ce137,index:_0x2a539d,state:_0x1cf88e})=>{const _0x7c524d=_0x4aba08;this[_0x7c524d(0x174)][_0x7c524d(0x13b)]({'id':_0x2ce137['id'],'index':_0x2a539d,'state':_0x1cf88e});}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x110),(_0x24af29,_0x4f7c4a)=>{const _0x1aef33=_0x4aba08;if(this[_0x1aef33(0x174)][_0x1aef33(0x15b)](_0x4f7c4a[_0x1aef33(0x1c2)],_0x4f7c4a[_0x1aef33(0xf5)]),_0x1aef33(0xf1)===_0x4f7c4a[_0x1aef33(0x1c2)][_0x1aef33(0x1d3)]){const _0x100886=[..._0x27a01b(this[_0x1aef33(0xbe)])[_0x1aef33(0x15d)][_0x1aef33(0x1a8)][_0x1aef33(0xf1)][_0x1aef33(0xab)]()];this[_0x1aef33(0x170)][_0x1aef33(0x119)](_0x100886,_0x1aef33(0x140)+this[_0x1aef33(0xff)]?.['id']);}}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x173),(_0x5232ba,_0x49995f)=>{const _0x515039=_0x4aba08;this[_0x515039(0x174)][_0x515039(0xed)](_0x49995f[_0x515039(0x18b)]),_0x515039(0xad)==_0x49995f[_0x515039(0x18b)]&&this[_0x515039(0x14a)](),_0x515039(0xf1)===_0x49995f[_0x515039(0x1d3)]&&this[_0x515039(0x170)][_0x515039(0x87)](_0x515039(0x140)+this[_0x515039(0xff)]?.['id']);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x19f),(_0x29ea62,_0x52f3ef)=>{const _0x3ab787=_0x4aba08;this[_0x3ab787(0x174)][_0x3ab787(0x13c)](_0x52f3ef[_0x3ab787(0x1c2)][_0x3ab787(0x18b)],_0x52f3ef[_0x3ab787(0xf5)]);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0xea),(_0x514603,_0x287450)=>{const _0x2c93d8=_0x4aba08;this[_0x2c93d8(0x174)][_0x2c93d8(0x1de)](_0x287450[_0x2c93d8(0x131)]);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0xe7),(_0x4f36a7,_0x3e4d4d)=>{const _0x3b286b=_0x4aba08;this[_0x3b286b(0x174)][_0x3b286b(0x12b)](_0x3e4d4d[_0x3b286b(0x1e0)]);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x12f),(_0x8343cd,_0x1a5bb4)=>{const _0x5e74f7=_0x4aba08;this[_0x5e74f7(0x174)][_0x5e74f7(0x1a3)](_0x1a5bb4[_0x5e74f7(0x18f)],_0x1a5bb4[_0x5e74f7(0x132)],_0x1a5bb4[_0x5e74f7(0x1d2)],_0x1a5bb4[_0x5e74f7(0x75)]);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0xf6),(_0x23b7f7,_0x2fe49c)=>{const _0x5c57af=_0x4aba08;this[_0x5c57af(0x174)][_0x5c57af(0xd6)](_0x2fe49c[_0x5c57af(0x18f)],_0x2fe49c[_0x5c57af(0x1a6)],_0x2fe49c[_0x5c57af(0x100)]);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x117),(_0x1864f7,_0x437437)=>{const _0x1074ee=_0x4aba08;this[_0x1074ee(0x174)][_0x1074ee(0x181)](_0x437437);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0xa7),(_0xb67dc5,_0x317c5e)=>{const _0x258f2f=_0x4aba08;this[_0x258f2f(0x174)][_0x258f2f(0x193)](_0x317c5e[_0x258f2f(0x99)],_0x317c5e[_0x258f2f(0xaf)]);}),this[_0x4aba08(0xff)]['on'](_0x4aba08(0x164),(_0x4e311f,{error:_0x222c11,interactionId:_0x120d3f,fileName:_0x1a7e4f,url:_0x4b0722,sourceId:_0x27e404,sourceLabel:_0x44f432})=>{const _0xf06c14=_0x4aba08,_0x2062aa=_0x120d3f?_0x120d3f+':'+_0x2df6a6():_0x2df6a6();_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x107))?this[_0xf06c14(0x174)][_0xf06c14(0x189)]({'staticMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x130)),'id':_0x2062aa}):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0xae))||_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x155))?(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x1cd)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x176))?this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x1b0),_0x1a7e4f),'id':_0x2062aa}):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x186))?this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x113),_0x4b0722),'id':_0x2062aa}):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x84))?this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x80)),'id':_0x2062aa}):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x14f))?this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x137)),'id':_0x2062aa}):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x1d9))?(_0x27e404&&this[_0xf06c14(0x174)][_0xf06c14(0x133)](_0x27e404),this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0xef),_0x44f432||_0xf06c14(0x132)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x15f))?(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x112)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x118))?(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0xf7)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x11e))?(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x91)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0xd4))?(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x1ac)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x18d))?(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0xd0)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):_0x222c11[_0xf06c14(0x17a)][_0xf06c14(0x197)](_0xf06c14(0x1ad))?(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0xe6)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11)):(this[_0xf06c14(0x174)][_0xf06c14(0x166)]({'errorMessage':_0x20a620(this[_0xf06c14(0xbe)][_0xf06c14(0xd3)],_0xf06c14(0x10f)),'id':_0x2062aa}),this[_0xf06c14(0x158)](_0x222c11));}),await this[_0x4aba08(0xff)][_0x4aba08(0x19a)](this[_0x4aba08(0xbe)][_0x4aba08(0x16a)][_0x4aba08(0x19d)](_0x4aba08(0x16e))),_0x1cec4e||await this[_0x4aba08(0xff)][_0x4aba08(0xb5)]();}async[_0x25bc84(0x162)]({userMessage:_0x53ea46,quickActionData:_0x5114e0}){const _0x44099d=_0x25bc84;if(!this[_0x44099d(0xff)])throw new _0x2aea12(_0x44099d(0x82));this[_0x44099d(0xff)][_0x44099d(0xdf)]()&&await this[_0x44099d(0xff)][_0x44099d(0x147)](this[_0x44099d(0x170)][_0x44099d(0x1dc)]()),this[_0x44099d(0xff)]['id']&&this[_0x44099d(0xff)][_0x44099d(0x1b5)]&&await this[_0x44099d(0xff)][_0x44099d(0xda)]({'userMessage':_0x53ea46,'quickActionData':_0x5114e0}),this[_0x44099d(0xba)]();}[_0x25bc84(0xba)](){const _0x4553e3=_0x25bc84,_0x4573f6=_0x27a01b(this[_0x4553e3(0xbe)])[_0x4553e3(0x15d)],_0x3ecdd6=Array[_0x4553e3(0x124)](_0x4573f6[_0x4553e3(0xb8)][_0x4553e3(0x1c6)](_0x332dfc));_0x4573f6[_0x4553e3(0x134)](_0x16ecf1=>{const _0x4d17e5=_0x4553e3;_0x3ecdd6[_0x4d17e5(0x1db)](_0x4077b6=>_0x16ecf1[_0x4d17e5(0x120)](_0x4077b6));});}[_0x25bc84(0x175)](){const _0x1ba488=_0x25bc84;console[_0x1ba488(0xb3)](_0x1ba488(0x151));}[_0x25bc84(0x17b)](_0x561610){const _0x1286f3=_0x25bc84;this[_0x1286f3(0x174)][_0x1286f3(0x16f)](_0x561610);}[_0x25bc84(0x158)](_0x104186){const _0x17b556=_0x25bc84;_0x37699d(_0x104186[_0x17b556(0x17a)]);}[_0x25bc84(0x1bf)](_0xb5ae36){const _0x45fbea=_0x25bc84;this[_0x45fbea(0xff)]?.[_0x45fbea(0xcd)](_0xb5ae36);}[_0x25bc84(0x8c)](){const _0x37fd74=_0x25bc84;this[_0x37fd74(0xff)]?.[_0x37fd74(0x7c)]();}[_0x25bc84(0x154)](){const _0x4456c4=_0x25bc84;this[_0x4456c4(0xff)]?.[_0x4456c4(0xd2)]();}[_0x25bc84(0x149)](_0x109cad){const _0x3f1d37=_0x25bc84,[_0x3d2742,_0x3cb073]=_0x109cad[_0x3f1d37(0x16c)](':'),_0x4810e9=this[_0x3f1d37(0xff)][_0x3f1d37(0xd9)](_0x3d2742),_0x2cb25=_0x4810e9[_0x3f1d37(0x1cb)](_0x3cb073);return{'interaction':_0x4810e9,'reply':_0x2cb25};}[_0x25bc84(0x7d)](_0x7d3e8e,_0x13ba45=!0x1){const _0x3346fb=_0x25bc84,_0x16ac3a=_0x27a01b(this[_0x3346fb(0xbe)]),_0x297230={'target':_0x16ac3a[_0x3346fb(0x10b)][_0x3346fb(0x199)][_0x3346fb(0x13f)][_0x3346fb(0x1c4)](_0x16ac3a[_0x3346fb(0x10b)][_0x3346fb(0x1b8)][_0x3346fb(0x1b6)](_0x7d3e8e)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x13ba45};_0x13ba45&&(_0x297230[_0x3346fb(0xc6)]=!0x0),_0x1084ad(_0x297230);}[_0x25bc84(0x1a0)](_0x414f2a,_0x2ca332=!0x1){const _0x4c1114=_0x25bc84;this[_0x4c1114(0x174)][_0x4c1114(0xfc)](_0x414f2a||_0x20a620(this[_0x4c1114(0xbe)][_0x4c1114(0xd3)],_0x4c1114(0x18a)),_0x2ca332);}async[_0x25bc84(0x182)]({reply:_0x56841f,renderingStrategy:_0x3cf403}){const _0x5dd8f2=_0x25bc84,{id:_0x25f494,isDone:_0x463693,type:_0x1cd38d,parsedContent:_0x3eba38}=_0x56841f;if(_0x5dd8f2(0x7b)===_0x1cd38d){const _0x3421ba=_0x56841f[_0x5dd8f2(0x8e)]({'showDiff':this[_0x5dd8f2(0x174)][_0x5dd8f2(0x8d)]});await this[_0x5dd8f2(0x174)][_0x5dd8f2(0xc8)]({'id':_0x25f494,'parts':_0x3421ba,'renderingStrategy':_0x3cf403,'isDone':_0x463693});}else _0x5dd8f2(0x9e)===_0x1cd38d&&await this[_0x5dd8f2(0x174)][_0x5dd8f2(0x1b3)]({'id':_0x25f494,'parsedContent':_0x3eba38,'renderingStrategy':_0x3cf403,'isDone':_0x463693});_0x463693&&_0x56841f[_0x5dd8f2(0xa3)][_0x5dd8f2(0x101)]>0x0&&this[_0x5dd8f2(0x174)][_0x5dd8f2(0xd1)](_0x25f494,_0x56841f[_0x5dd8f2(0xa3)]);}async[_0x25bc84(0xbd)](){const _0x4ba9db=_0x25bc84,_0x29cba1=this[_0x4ba9db(0xff)]?.[_0x4ba9db(0xb0)];_0x29cba1&&(_0x29cba1[_0x4ba9db(0x17f)](),this[_0x4ba9db(0x174)][_0x4ba9db(0x172)](_0x29cba1));}async[_0x25bc84(0x194)](){const _0x459f1d=_0x25bc84,_0x1caf60=this[_0x459f1d(0xff)]?.[_0x459f1d(0xb0)];if(_0x1caf60){for await(const _0xd70ba6 of _0x1caf60[_0x459f1d(0x19b)])await this[_0x459f1d(0x182)]({'reply':_0xd70ba6,'renderingStrategy':_0x459f1d(0xdc)});}}[_0x25bc84(0x109)](_0x251841){const _0x2bdf55=_0x25bc84,_0x1f1b51={'positiveCount':_0x251841[_0x2bdf55(0xd7)][_0x2bdf55(0xbf)](_0x370e4b=>_0x2bdf55(0x171)===_0x370e4b[_0x2bdf55(0x143)])[_0x2bdf55(0x101)],'totalCount':_0x251841[_0x2bdf55(0xd7)][_0x2bdf55(0x101)],'modificationId':_0x251841['id']},_0x23eeb3=this[_0x2bdf55(0xff)][_0x2bdf55(0xd9)](_0x251841[_0x2bdf55(0x9d)])[_0x2bdf55(0x9b)];this[_0x2bdf55(0x13a)][_0x2bdf55(0xe2)](this[_0x2bdf55(0xff)]['id'],_0x23eeb3,_0x1f1b51);}}
|
|
23
|
+
const _0x722d79=_0x5d0d;(function(_0x152726,_0x3fa067){const _0x3873ae=_0x5d0d,_0x264994=_0x152726();while(!![]){try{const _0x15ccab=-parseInt(_0x3873ae(0x20f))/0x1*(-parseInt(_0x3873ae(0x195))/0x2)+parseInt(_0x3873ae(0x26c))/0x3*(-parseInt(_0x3873ae(0x2c0))/0x4)+parseInt(_0x3873ae(0x210))/0x5*(-parseInt(_0x3873ae(0x23b))/0x6)+parseInt(_0x3873ae(0x1a9))/0x7+parseInt(_0x3873ae(0x2d3))/0x8*(parseInt(_0x3873ae(0x2a3))/0x9)+-parseInt(_0x3873ae(0x2ce))/0xa*(parseInt(_0x3873ae(0x19f))/0xb)+-parseInt(_0x3873ae(0x20c))/0xc;if(_0x15ccab===_0x3fa067)break;else _0x264994['push'](_0x264994['shift']());}catch(_0x20d857){_0x264994['push'](_0x264994['shift']());}}}(_0x149e,0x35b6b));import{ContextPlugin as _0x2222db,Editor as _0x223500}from'ckeditor5/src/core.js';function _0x149e(){const _0x12217b=['setIsUploadInProgress','setFeedItemRenderingStrategy','_aiChatModels','_aiChatUi','config','getRoot','_aiEditing','getConversation','ai-chat-url-upload-failed','AITabs','AI_BALLOON_HEADER_TITLE','uid','message','filter','populateSourceResourceBalloon','removeSelectionFromChatContext','AIConnector','collaboration.channelId','addContextItem','ai.availableReplyActions','focusPromptInput','addUrlToContext','has','startInteraction','howMany','AI_CHAT_INVALID_REQUEST','sources','current-document','_removeFromContext','type','clearConversationContextUI','anchorId','getOperations','documentContextContent','ai-chat-source-resources-load-failed','removeFeedInteraction','dislike','showChangeInText','clearPendingContextUI','getDocumentData','like','split','interactionStarted','revert','handleUserInteraction','remove','1328AOhJwS','map','getChildren','_logError','_updateRatings','afterInit','editors','ai.chat.models.displayedModels','removeMarker','requires','506GGELqP','ai.chat.models.defaultModelId','_getDocumentRangeForReplyChanges','Liked\x20response','createRange','updateFeedItemAIReplySuggestionContent','getGroupId','applySuggestion','ready','getDiff','2121665QbBvxr','showNext','resizedTabs','isUploadInProgress','setLoadingMessage','ai-chat-context-file-too-many-pages','scrollFeedToSuggestion','sourceResourcesLoaded','addFeedItemAISuggestion','uiId','main','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','pluginName','upsertAIChatRating','stop','isStarted','AIChatController','resource','updateFeedItemAIReplyContent','updateCapabilities','setConversationTitle','createPositionAt','rejected','context','mapper','reasoningFinished','sourceId','addSelectionToChatContext','abortPromptStream','start','_batchToChanges','rootName','stopListening','version','_removeAISelectionMarkers','getReply','addFeedItemUserMessage','nextSibling','ai-request-aborted','_insertSuggestion','contextItems','document','updateContent','reasoningStarted','node','contextItem','contextItemAdded','updateCurrentDocumentInContext','addFeedInteractionHeader','new','_toggleWebSearch','addDocumentToContext','addFeedItemAIReply','ai-chat-context-invalid-data','markers','messageId','_aiConnector','_handleStartConversation','resizeTabs','ai-chat-controller-mouse-over','replyContentUpdated','resetMessageInput','AI_CHAT_CONTEXT_INVALID_DATA','root','ai-chat-conversation-not-found','getAttribute','closeSourceResourceBalloon','isCurrentDocumentInContext','getTransformedByOperation','_previewedChangeGroup','_integrateEditor','isLoading','ai-chat-conversation-init-failed','isOpen','updateFeedItemAIReplySources','ai-chat-resource-load-failed','chat','applyOperation','_balloonShowDiff','getChildAtOffset','AI_CHAT_RESOURCE_LOAD_FAILED','addOperation','interactionDestroyed','isDocumentOperation','dialogClosed','ai-chat-conversation-start-failed','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AIChatUI','DocumentCompare','ai-no-track-changes','toString','toggleWebSearch','view','Undo','getSelectionText','end','selectModel','ai-chat-invalid-request','data-id','420648rUtUWD','viewRangeToDom','interactionFinished','371NMUYlA','431155VQfglY','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','index','resourceStateChanged','setIsMaximized','alignToTop','setSelectedModel','unshift','startsWith','model','listenTo','disableControls','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','full','isPremiumPlugin','toggleSuggestionDisplayMode','close','push','activateTab','startAutoScroll','contextSent','isModelAvailable','commands','ai-chat-context-unsupported-file-type','isCurrentDocumentInConversation','indexes','sendMessage','marker','ai-chat-missing-channel-id','addContextOptionsChanged','setChangeGroupState','sendUserMessage','AI_CHAT_ABORTED_MESSAGE','indexOf','ai-chat-context-form-data-size-limits-exceeded','Disliked\x20response','delete','_updateReplyContent','AI_CHAT_UNABLE_TO_START_CONVERSATION','_createFromRanges','AI_CHAT_GENERIC_ERROR','interactionCreated','_flushLastInteractionUI','6eJpySK','_showConversationHistory','getRanges','contextItemRemoved','_startConversationSafely','history','options','editing','_handleUIUserMessage','updateResourceState','removeContextItem','mouseOverSuggestion','setContextItemLoading','locale','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','text-delta','updateConversationTitle','source','change','ai-chat-context-file-too-large','fetchConversation','getInteractionAndReplyById','state','length','add','set','ai-chat-controller-no-active-conversation','insertSuggestion','hideFakeVisualSelection','showFakeVisualSelection','createPositionFromPath','TrackChangesEditing','_setIsMaximized','log','Showing\x20conversation\x20history...','addResourceToContext','static','addSelectionToContext','outdated','baseVersion','setModel','AIEditing','getDocumentContext','$graveyard','forEach','plugins','createConversation','conversationInitialized','webSearchFinished','831507jPTgyQ','range','capabilitiesUpdated','_applyOperationsAsSuggestions','undo','loadConversation','AI_CHAT_UNTITLED_CONVERSATION','ai-chat-file-upload-failed','interactionId','modelSelected','init','removeFromContext','resetConversationTitle','webSearchStarted','getContentParts','error','_scrollToSuggestionRange','ai.chat.context','getChild','open','handleRemovedConversation','maxOffset','toggleLoadingSkeleton','get','replyCreated','loadSourceResources','streaming','enableControls','stopInteraction','isDisabled','content','findIndex','toggleReasoning','finishInteraction','addFeedItemStaticMessage','_openBalloonFor','uploadProgressChanged','redo','removeSelectionFromContext','lastInteraction','showDiff','changes','addFeedItemError','getFirstRange','TrackChanges','ai-conversation-','addFilesToContext','load','_toggleReasoning','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','toViewRange','getInteraction','accepted','_applySuggestion','query','135cMKuJt','children','changeGroups','data','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addCurrentDocumentToContext','removed','sourcePosition','AI_CHAT_CONTEXT_FILE_TOO_LARGE','addFileToContext','cloneNode','getMarkersGroup','rejectSuggestion','setAddContextOptions','parse','partIndex','domConverter','isInContext','resize','hasChanges','setConversationContext','updateFeedItemAIReplySuggestionPartState','modification-delta','mouseLeaveSuggestion','startConversation','path','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','replies','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4xTavfX','resourceId','find','selection','contextItemLoadingEnded','replyId','selectedModel','showPrevious','ai-chat-context-unsupported-type','slice','pending','getPath','isOfficialPlugin','resources','55240HSmQui','activeConversation','replyChangeGroupStateUpdated','batch','from','172336VVSKhk','_stopLastInteraction'];_0x149e=function(){return _0x12217b;};return _0x149e();}import{CKEditorError as _0x56bfe4,logError as _0x403c82,scrollViewportToShowTarget as _0x2ac001,uid as _0x567464}from'ckeditor5/src/utils.js';import{AIConnector as _0x371ca2}from'../aicore/aiconnector.js';import{AITabs as _0x15b59e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5188f9}from'./model/aichatconversation.js';import{getTranslation as _0xc3a8c}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5dc995}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0xaf499c}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x405bb5}from'./model/aichatmodels.js';import{getEditorFromContext as _0x4dfe45}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1e0fe3,DATA_ID_MODEL_ATTRIBUTE as _0x47a7f5}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x316879,getOperationsFromReply as _0x3fe6}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x118718,getMinimalSelection as _0x136d73}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x419998,_DetachOperation as _0x347c6f}from'ckeditor5/src/engine.js';import{findOne as _0x5c46b8,getAttribute as _0x174d3e,serialize as _0x9af624,Document as _0x301a4d,findByAttribute as _0x244b7e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x5c5b7c}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x72ff3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x5d0d(_0x384c83,_0x4caa46){const _0x149e86=_0x149e();return _0x5d0d=function(_0x5d0d58,_0x1e46bd){_0x5d0d58=_0x5d0d58-0x16e;let _0x4416bf=_0x149e86[_0x5d0d58];return _0x4416bf;},_0x5d0d(_0x384c83,_0x4caa46);}import{AIBalloon as _0x1641f1}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x2222db{[_0x722d79(0x2db)];[_0x722d79(0x1e1)];[_0x722d79(0x2d8)];[_0x722d79(0x2d7)];[_0x722d79(0x1c7)]=new Map();[_0x722d79(0x1ee)]=null;[_0x722d79(0x1f7)]=!0x1;static get[_0x722d79(0x19e)](){return[_0x371ca2,_0x1641f1,_0x1e0fe3];}static get[_0x722d79(0x1b5)](){const _0x2adda9=_0x722d79;return _0x2adda9(0x1b9);}static get[_0x722d79(0x2cc)](){return!0x0;}static get[_0x722d79(0x21e)](){return!0x0;}[_0x722d79(0x276)](){const _0x562a99=_0x722d79;this[_0x562a99(0x1e1)]=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x177)),this[_0x562a99(0x2d8)]=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x200)),this[_0x562a99(0x2db)]=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x264)),this[_0x562a99(0x2d7)]=new _0x405bb5({'connector':this[_0x562a99(0x1e1)],'availableModels':this[_0x562a99(0x1c0)][_0x562a99(0x2d9)][_0x562a99(0x283)](_0x562a99(0x19c)),'defaultModelId':this[_0x562a99(0x1c0)][_0x562a99(0x2d9)][_0x562a99(0x283)](_0x562a99(0x1a0))});const _0x33c077=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x170));this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2bb),()=>{const _0x56ec1a=_0x562a99;this[_0x56ec1a(0x23f)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x22f),(_0x2cce55,_0x3472e1)=>{const _0x51a53c=_0x562a99;this[_0x51a53c(0x243)]({'userMessage':_0x3472e1});}),this[_0x562a99(0x21a)](_0x33c077,_0x562a99(0x1ab),(_0x24fffd,_0x2d6522)=>{const _0x3a5585=_0x562a99;this[_0x3a5585(0x25b)](_0x2d6522);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1e3),()=>{const _0x1aa992=_0x562a99;_0x33c077[_0x1aa992(0x2b5)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1c5),async()=>{const _0xae4ead=_0x562a99;await this[_0xae4ead(0x2d4)](),await this[_0xae4ead(0x23a)](),this[_0xae4ead(0x176)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1dc),()=>{const _0x299916=_0x562a99;this[_0x299916(0x2cf)]?.[_0x299916(0x2a8)](_0xc3a8c(this[_0x299916(0x1c0)][_0x299916(0x248)],_0x299916(0x2bf)));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2ac),(_0xe52146,_0x2bb65c)=>{const _0x42bbe0=_0x562a99;this[_0x42bbe0(0x2cf)]?.[_0x42bbe0(0x29a)](Array[_0x42bbe0(0x2d2)](_0x2bb65c));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x17c),(_0x196f40,_0x3b03b6)=>{const _0x686761=_0x562a99;this[_0x686761(0x2cf)]?.[_0x686761(0x17c)](_0x3b03b6);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x25e),(_0xceb38b,_0x3db746)=>{const _0x3bcf25=_0x562a99;this[_0x3bcf25(0x2cf)]?.[_0x3bcf25(0x25e)](_0x3db746[_0x3bcf25(0x24c)],_0x3db746[_0x3bcf25(0x1ba)]);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x245),(_0x221f5d,_0x1254ed)=>{const _0x216e5d=_0x562a99;this[_0x216e5d(0x183)](_0x1254ed);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x285),(_0x1e89e8,_0x1f684e)=>{const _0x351a07=_0x562a99;this[_0x351a07(0x2cf)]?.[_0x351a07(0x285)](_0x1f684e[_0x351a07(0x1c3)],_0x1f684e[_0x351a07(0x2a2)],_0x1f684e[_0x351a07(0x172)]);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x204),()=>{const _0x21efb3=_0x562a99;this[_0x21efb3(0x1db)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x28c),()=>{const _0x2a1190=_0x562a99;this[_0x2a1190(0x29c)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x209),(_0x41de71,_0x1a7e0f)=>{const _0x5ca3ea=_0x562a99;this[_0x5ca3ea(0x2cf)]?.[_0x5ca3ea(0x263)](_0x1a7e0f);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x18f),(_0x1d6d66,{replyId:_0x3c25b5})=>{const _0x46f076=_0x562a99;console[_0x46f076(0x25c)](_0x46f076(0x1a2),_0x3c25b5);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x18b),(_0xba9926,{replyId:_0x112551})=>{const _0x1c6633=_0x562a99;console[_0x1c6633(0x25c)](_0x1c6633(0x233),_0x112551);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x256),(_0xc6f27f,_0x44353e)=>{const _0x49f989=_0x562a99;this[_0x49f989(0x1c0)][_0x49f989(0x268)][_0x49f989(0x283)](_0x1641f1)[_0x49f989(0x220)](),this[_0x49f989(0x1d0)](_0x44353e);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x18c),(_0x5b56d4,{replyId:_0x20cb07,partIndex:_0x4d3b47})=>{const _0x46bdaf=_0x562a99;this[_0x46bdaf(0x1f7)]=this[_0x46bdaf(0x2d8)][_0x46bdaf(0x294)],this[_0x46bdaf(0x28f)](_0x20cb07,_0x4d3b47);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x246),(_0x3e8752,{replyId:_0x51346c,partIndex:_0x224542})=>{const _0x96a3d5=_0x562a99,_0x47a7e9=this[_0x96a3d5(0x1a1)](_0x51346c,_0x224542);_0x47a7e9&&_0x96a3d5(0x266)!=_0x47a7e9[_0x96a3d5(0x26d)][_0x96a3d5(0x1e8)][_0x96a3d5(0x1c8)]&&this[_0x96a3d5(0x2db)][_0x96a3d5(0x258)]([_0x47a7e9[_0x96a3d5(0x26d)]],_0x96a3d5(0x1e4));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2ba),()=>{const _0x5850d9=_0x562a99;this[_0x5850d9(0x2db)][_0x5850d9(0x257)](_0x5850d9(0x1e4));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1a6),(_0x4e2bfe,_0x57c5fd)=>{const _0x1df968=_0x562a99;this[_0x1df968(0x1c0)][_0x1df968(0x268)][_0x1df968(0x283)](_0x1641f1)[_0x1df968(0x220)](),this[_0x1df968(0x2a1)](_0x57c5fd);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x21f),async(_0x15de9d,{replyId:_0x2a30e9,showDiff:_0x39461f})=>{const _0x3bba4f=_0x562a99,{reply:_0x53e104}=this[_0x3bba4f(0x250)](_0x2a30e9),_0x224e93=_0x53e104[_0x3bba4f(0x27a)]({'showDiff':_0x39461f});await this[_0x3bba4f(0x2d8)][_0x3bba4f(0x1a4)]({'id':_0x53e104['id'],'parts':_0x224e93,'renderingStrategy':_0x3bba4f(0x25f)});}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2af),(_0x5d8aca,{replyId:_0xfbf834,partIndex:_0x43b77b})=>{const _0x1a9f0a=_0x562a99;this[_0x1a9f0a(0x1ee)]?.[_0x1a9f0a(0x2c5)]==_0xfbf834&&this[_0x1a9f0a(0x1ee)]?.[_0x1a9f0a(0x2b2)]==_0x43b77b&&this[_0x1a9f0a(0x1c0)][_0x1a9f0a(0x268)][_0x1a9f0a(0x283)](_0x1641f1)[_0x1a9f0a(0x220)]();const {reply:_0x4d7847}=this[_0x1a9f0a(0x250)](_0xfbf834);_0x4d7847[_0x1a9f0a(0x22e)](_0x43b77b,_0x1a9f0a(0x1bf)),this[_0x1a9f0a(0x2db)][_0x1a9f0a(0x257)](_0x1a9f0a(0x1e4));});}async[_0x722d79(0x19a)](){const _0x113b5b=_0x722d79;this[_0x113b5b(0x1c0)]instanceof _0x223500?this[_0x113b5b(0x1ef)](this[_0x113b5b(0x1c0)]):this[_0x113b5b(0x21a)](this[_0x113b5b(0x1c0)][_0x113b5b(0x19b)],_0x113b5b(0x253),(_0x257e78,_0x36a987)=>{const _0x154bc5=_0x113b5b;_0x36a987['on'](_0x154bc5(0x1a7),()=>{const _0x350ace=_0x154bc5;this[_0x350ace(0x1ef)](_0x36a987);});}),await this[_0x113b5b(0x23f)]();}[_0x722d79(0x1d0)](_0x120439){const _0x115fdb=_0x722d79,_0x119257=_0x4dfe45(this[_0x115fdb(0x1c0)]);if(!_0x119257[_0x115fdb(0x268)][_0x115fdb(0x17d)](_0x115fdb(0x298)))throw new _0x56bfe4(_0x115fdb(0x202),null);const _0x1d075c=this[_0x115fdb(0x1c0)][_0x115fdb(0x268)][_0x115fdb(0x283)](_0x115fdb(0x201)),{reply:_0x2ab759,interaction:_0x3fd3ae}=this[_0x115fdb(0x250)](_0x120439[_0x115fdb(0x2c5)]),_0x1e94de=this[_0x115fdb(0x1a1)](_0x120439[_0x115fdb(0x2c5)],_0x120439[_0x115fdb(0x2b2)]),_0x4647d5=void 0x0!==_0x120439[_0x115fdb(0x2b2)]?[_0x2ab759[_0x115fdb(0x2a5)][_0x120439[_0x115fdb(0x2b2)]]]:_0x2ab759[_0x115fdb(0x2a5)][_0x115fdb(0x174)](_0x2ddad8=>_0x115fdb(0x2ca)==_0x2ddad8[_0x115fdb(0x251)]),_0x1ca4f4=_0x4647d5[_0x115fdb(0x196)](_0x4e5568=>_0x2ab759[_0x115fdb(0x2a5)][_0x115fdb(0x231)](_0x4e5568));if(!_0x1e94de||_0x115fdb(0x266)==_0x1e94de[_0x115fdb(0x26d)][_0x115fdb(0x1e8)][_0x115fdb(0x1c8)])return void _0x1ca4f4[_0x115fdb(0x267)](_0x13cbed=>_0x2ab759[_0x115fdb(0x22e)](_0x13cbed,_0x115fdb(0x261)));_0x1ca4f4[_0x115fdb(0x267)](_0x98b69d=>_0x2ab759[_0x115fdb(0x22e)](_0x98b69d,_0x115fdb(0x2a0)));const _0x2729ef=_0x3fe6({'editor':_0x119257,'reply':_0x2ab759,'interaction':_0x3fd3ae,'groups':_0x4647d5,'transform':!0x0,'documentCompare':_0x1d075c,'documentCompareOptions':{'anchor':_0x115fdb(0x1b3),'markDeletions':!0x0}});let _0x4b1225;_0x1e94de&&this[_0x115fdb(0x27c)](_0x1e94de[_0x115fdb(0x26d)]),_0x119257[_0x115fdb(0x219)][_0x115fdb(0x24d)](_0x2cbcf9=>{const _0x250b16=_0x115fdb;_0x4b1225=_0x2cbcf9[_0x250b16(0x2d1)],_0x119257[_0x250b16(0x268)][_0x250b16(0x283)](_0x250b16(0x25a))[_0x250b16(0x26f)](_0x2729ef),this[_0x250b16(0x2db)][_0x250b16(0x257)](_0x250b16(0x1e4));}),this[_0x115fdb(0x1c7)][_0x115fdb(0x254)](_0x4b1225,{'interactionId':_0x3fd3ae['id'],'replyId':_0x2ab759['id'],'indexes':_0x1ca4f4[_0x115fdb(0x2c9)]()}),this[_0x115fdb(0x199)](_0x2ab759);}[_0x722d79(0x2a1)](_0x2e02ac){const _0x3cb3c6=_0x722d79,_0x349d4e=_0x4dfe45(this[_0x3cb3c6(0x1c0)]),_0x1a9b89=this[_0x3cb3c6(0x1c0)][_0x3cb3c6(0x268)][_0x3cb3c6(0x283)](_0x1e0fe3),{reply:_0x5888e2,interaction:_0x1f1395}=this[_0x3cb3c6(0x250)](_0x2e02ac[_0x3cb3c6(0x2c5)]),_0x4695b5=this[_0x3cb3c6(0x1a1)](_0x2e02ac[_0x3cb3c6(0x2c5)],_0x2e02ac[_0x3cb3c6(0x2b2)]),_0x1fe6fa=void 0x0!==_0x2e02ac[_0x3cb3c6(0x2b2)]?[_0x5888e2[_0x3cb3c6(0x2a5)][_0x2e02ac[_0x3cb3c6(0x2b2)]]]:_0x5888e2[_0x3cb3c6(0x2a5)][_0x3cb3c6(0x174)](_0x5c678e=>_0x3cb3c6(0x2ca)==_0x5c678e[_0x3cb3c6(0x251)]),_0x58ac68=_0x1fe6fa[_0x3cb3c6(0x196)](_0x58efa6=>_0x5888e2[_0x3cb3c6(0x2a5)][_0x3cb3c6(0x231)](_0x58efa6));if(!_0x4695b5||_0x3cb3c6(0x266)==_0x4695b5[_0x3cb3c6(0x26d)][_0x3cb3c6(0x1e8)][_0x3cb3c6(0x1c8)])return void _0x58ac68[_0x3cb3c6(0x267)](_0x125de6=>_0x5888e2[_0x3cb3c6(0x22e)](_0x125de6,_0x3cb3c6(0x261)));_0x58ac68[_0x3cb3c6(0x267)](_0x1dd959=>_0x5888e2[_0x3cb3c6(0x22e)](_0x1dd959,_0x3cb3c6(0x2a0)));const _0x145ea3=_0x3fe6({'editor':_0x349d4e,'reply':_0x5888e2,'interaction':_0x1f1395,'groups':_0x1fe6fa,'transform':!0x0,'documentCompare':_0x1a9b89,'documentCompareOptions':{'anchor':_0x3cb3c6(0x1b3),'markDeletions':!0x1}});let _0x35a949;_0x4695b5&&this[_0x3cb3c6(0x27c)](_0x4695b5[_0x3cb3c6(0x26d)]),_0x349d4e[_0x3cb3c6(0x219)][_0x3cb3c6(0x24d)](_0x4255db=>{const _0x2dd27a=_0x3cb3c6;_0x35a949=_0x4255db[_0x2dd27a(0x2d1)];for(const _0x4e751b of _0x145ea3)_0x4e751b[_0x2dd27a(0x262)]=_0x349d4e[_0x2dd27a(0x219)][_0x2dd27a(0x1d2)][_0x2dd27a(0x1ca)],_0x316879(_0x349d4e,_0x4e751b),_0x4255db[_0x2dd27a(0x2d1)][_0x2dd27a(0x1fa)](_0x4e751b),_0x349d4e[_0x2dd27a(0x219)][_0x2dd27a(0x1f6)](_0x4e751b);}),this[_0x3cb3c6(0x1c7)][_0x3cb3c6(0x254)](_0x35a949,{'interactionId':_0x1f1395['id'],'replyId':_0x5888e2['id'],'indexes':_0x58ac68[_0x3cb3c6(0x2c9)]()}),this[_0x3cb3c6(0x199)](_0x5888e2);}[_0x722d79(0x28f)](_0x3f88e6,_0x258de5){const _0x282c6e=_0x722d79,_0x384b72=_0x4dfe45(this[_0x282c6e(0x1c0)]),_0x4dc653=this[_0x282c6e(0x1a1)](_0x3f88e6,_0x258de5),_0x1776cf=this[_0x282c6e(0x1c0)][_0x282c6e(0x268)][_0x282c6e(0x283)](_0x1641f1);if(!_0x4dc653)return void _0x1776cf[_0x282c6e(0x220)]();const {range:_0x301433,currentIndex:_0x217593}=_0x4dc653;if(_0x282c6e(0x266)==_0x301433[_0x282c6e(0x1e8)][_0x282c6e(0x1c8)]){const {reply:_0xcf96f0}=this[_0x282c6e(0x250)](_0x3f88e6);return _0xcf96f0[_0x282c6e(0x22e)](_0x217593,_0x282c6e(0x261)),void _0x1776cf[_0x282c6e(0x220)]();}if(this[_0x282c6e(0x1ee)]?.[_0x282c6e(0x2c5)]==_0x3f88e6&&this[_0x282c6e(0x1ee)]?.[_0x282c6e(0x2b2)]==_0x217593)return;this[_0x282c6e(0x1c9)](_0x1776cf),this[_0x282c6e(0x1ee)]={'replyId':_0x3f88e6,'partIndex':_0x217593};let _0x53d856=_0x384b72[_0x282c6e(0x2d9)][_0x282c6e(0x283)](_0x282c6e(0x17a))||[..._0xaf499c];_0x384b72[_0x282c6e(0x268)][_0x282c6e(0x17d)](_0x282c6e(0x298))||(_0x53d856=_0x53d856[_0x282c6e(0x174)](_0x23a86b=>_0x282c6e(0x256)!=_0x23a86b));const _0x45bddf=new _0x72ff3(_0x384b72[_0x282c6e(0x248)],{'showDiff':this[_0x282c6e(0x1f7)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x282c6e(0x21d)},'hideHeader':!0x0,'availableActions':_0x53d856});this[_0x282c6e(0x1c9)](_0x45bddf);const {reply:_0x175fa9}=this[_0x282c6e(0x250)](_0x3f88e6),_0x5379b3=_0x175fa9[_0x282c6e(0x27a)]({'showDiff':this[_0x282c6e(0x1f7)]})[_0x282c6e(0x174)](_0x456985=>_0x456985[_0x282c6e(0x2b6)]),_0x39d62f=_0x5379b3[_0x282c6e(0x28b)](_0x55e801=>_0x55e801[_0x282c6e(0x212)]==_0x217593);if(-0x1==_0x39d62f)return;const _0x5d358b=_0x5379b3[_0x39d62f],_0x2c5447=_0x5379b3['at']((_0x39d62f-0x1)%_0x5379b3[_0x282c6e(0x252)])?.[_0x282c6e(0x212)],_0x5231ac=_0x5379b3['at']((_0x39d62f+0x1)%_0x5379b3[_0x282c6e(0x252)])?.[_0x282c6e(0x212)];_0x45bddf[_0x282c6e(0x1d3)]({'parts':[_0x5d358b],'renderingStrategy':_0x282c6e(0x25f)});const _0x27df79=_0x217593!==_0x2c5447;this[_0x282c6e(0x27c)](_0x301433,!0x0),_0x1776cf[_0x282c6e(0x27f)]({'index':_0x217593,'title':_0xc3a8c(this[_0x282c6e(0x1c0)][_0x282c6e(0x248)],_0x282c6e(0x171),(_0x39d62f+0x1)[_0x282c6e(0x203)]()),'icon':_0x5c5b7c,'mainView':_0x45bddf,'showRotator':_0x27df79,'showApplyButton':!0x0,'showSuggestButton':_0x384b72[_0x282c6e(0x268)][_0x282c6e(0x17d)](_0x282c6e(0x298)),'ranges':[_0x301433]}),this[_0x282c6e(0x2d8)][_0x282c6e(0x1af)](_0x3f88e6,_0x217593),this[_0x282c6e(0x21a)](_0x45bddf,_0x282c6e(0x21f),(_0x2c5f82,{showDiff:_0x4237fc})=>{const _0x1db6aa=_0x282c6e;this[_0x1db6aa(0x1f7)]=_0x4237fc;const {reply:_0x5077a4}=this[_0x1db6aa(0x250)](_0x3f88e6),_0x470de3=_0x5077a4[_0x1db6aa(0x27a)]({'showDiff':_0x4237fc,'groupIndex':_0x217593});_0x45bddf[_0x1db6aa(0x1d3)]({'parts':_0x470de3,'renderingStrategy':_0x1db6aa(0x25f)});}),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x1a6),()=>{const _0xbf9042=_0x282c6e;this[_0xbf9042(0x2a1)]({'replyId':_0x3f88e6,'partIndex':_0x217593}),_0x27df79?this[_0xbf9042(0x28f)](_0x3f88e6,_0x5231ac):_0x1776cf[_0xbf9042(0x220)]();}),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x256),()=>{const _0x4e1213=_0x282c6e;this[_0x4e1213(0x1d0)]({'replyId':_0x3f88e6,'partIndex':_0x217593}),_0x27df79?this[_0x4e1213(0x28f)](_0x3f88e6,_0x5231ac):_0x1776cf[_0x4e1213(0x220)]();}),_0x27df79&&(this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x1aa),()=>{const _0x3a78fe=_0x282c6e;this[_0x3a78fe(0x28f)](_0x3f88e6,_0x5231ac);}),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x2c7),()=>{const _0x2ac325=_0x282c6e;this[_0x2ac325(0x28f)](_0x3f88e6,_0x2c5447);})),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x1fd),()=>{const _0x1a8056=_0x282c6e;this[_0x1a8056(0x1c9)](_0x1776cf),this[_0x1a8056(0x1c9)](_0x45bddf),this[_0x1a8056(0x1ee)]=null;});}[_0x722d79(0x1a1)](_0x821076,_0x1cd73e){const _0x48e56f=_0x722d79,_0x4a9e87=_0x4dfe45(this[_0x48e56f(0x1c0)]),{reply:_0x2b5c54,interaction:_0x5b58b3}=this[_0x48e56f(0x250)](_0x821076),_0x3a5e49=_0x2b5c54[_0x48e56f(0x2a5)][_0x48e56f(0x174)](_0x3cf133=>_0x48e56f(0x2ca)==_0x3cf133[_0x48e56f(0x251)]),_0xad91b0=_0x3a5e49[_0x48e56f(0x196)](_0x3b6346=>_0x2b5c54[_0x48e56f(0x2a5)][_0x48e56f(0x231)](_0x3b6346));void 0x0===_0x1cd73e&&(_0x1cd73e=_0xad91b0[0x0]);const _0x3bd09e=_0xad91b0[_0x48e56f(0x231)](_0x1cd73e);if(-0x1==_0x3bd09e)return null;const _0x4ddd15=_0x3a5e49[_0x3bd09e],_0x44ce4d=new _0x301a4d([]),_0xc128dd=new _0x301a4d([]);for(const _0x570550 of _0x4ddd15[_0x48e56f(0x295)])if(_0x48e56f(0x2a9)!=_0x570550[_0x48e56f(0x184)]&&_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x570550[_0x48e56f(0x1d5)][_0x48e56f(0x2ad)](!0x0)),_0x48e56f(0x1da)!=_0x570550[_0x48e56f(0x184)]){const _0x4781c7=_0x5c46b8(_0x2bd938=>_0x174d3e(_0x2bd938,_0x48e56f(0x20b))==_0x570550['id'],_0x2b5c54[_0x48e56f(0x188)],!0x0);_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x4781c7[_0x48e56f(0x2ad)](!0x0));}if(0x0==_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x252)]){if(_0x4ddd15[_0x48e56f(0x295)][0x0][_0x48e56f(0x186)]){const _0x15a1ab=_0x244b7e(_0x48e56f(0x20b),_0x4ddd15[_0x48e56f(0x295)][0x0][_0x48e56f(0x186)],_0x2b5c54[_0x48e56f(0x188)]);_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x217)](_0x15a1ab[_0x48e56f(0x2ad)](!0x0)),_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x217)](_0x15a1ab[_0x48e56f(0x2ad)](!0x0)),_0x15a1ab[_0x48e56f(0x1ce)]&&(_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x15a1ab[_0x48e56f(0x1ce)][_0x48e56f(0x2ad)](!0x0)),_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x15a1ab[_0x48e56f(0x1ce)][_0x48e56f(0x2ad)](!0x0)));}else{const _0x5ec94f=_0x2b5c54[_0x48e56f(0x188)][_0x48e56f(0x2a4)][0x0];if(!_0x5ec94f)return null;_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x5ec94f[_0x48e56f(0x2ad)](!0x0)),_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x5ec94f[_0x48e56f(0x2ad)](!0x0));}}const _0x12867d=_0x5b58b3[_0x48e56f(0x265)](),_0xc8b9f4=_0x4a9e87[_0x48e56f(0x2a6)][_0x48e56f(0x2b1)](_0x12867d[_0x48e56f(0x28a)]),_0x273056=_0x9af624(_0x44ce4d),_0x413ccf=_0x4a9e87[_0x48e56f(0x2a6)][_0x48e56f(0x2b1)](_0x273056),_0x435523=_0x4a9e87[_0x48e56f(0x2a6)][_0x48e56f(0x2b1)](_0x273056),_0x45746b=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1be)](_0x413ccf,0x0),_0x2c3460=_0x9af624(_0xc128dd),_0xf683da={'anchor':_0x45746b,'markDeletions':!0x1},_0x498a0e=_0x4a9e87[_0x48e56f(0x268)][_0x48e56f(0x283)](_0x1e0fe3)[_0x48e56f(0x1a8)](_0x273056,_0x2c3460,_0xf683da)[_0x48e56f(0x187)]();if(!_0x498a0e[_0x48e56f(0x252)])return null;_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x24d)](_0x4bb215=>{const _0x4121e8=_0x48e56f;for(const _0x5045a9 of _0x498a0e)if(_0x4121e8(0x194)==_0x5045a9[_0x4121e8(0x184)]){const _0x3c84a7=_0x5045a9[_0x4121e8(0x2aa)],_0x5b1183=_0x5045a9[_0x4121e8(0x17f)],_0x3a1810=new _0x347c6f(_0x3c84a7,_0x5b1183);_0x4bb215[_0x4121e8(0x2d1)][_0x4121e8(0x1fa)](_0x3a1810),_0x4a9e87[_0x4121e8(0x219)][_0x4121e8(0x1f6)](_0x3a1810);}else _0x4121e8(0x22b)!==_0x5045a9[_0x4121e8(0x184)]&&(_0x5045a9[_0x4121e8(0x262)]=null,_0x5045a9[_0x4121e8(0x1fc)]=!0x1,_0x4bb215[_0x4121e8(0x2d1)][_0x4121e8(0x1fa)](_0x5045a9),_0x4a9e87[_0x4121e8(0x219)][_0x4121e8(0x1f6)](_0x5045a9));});const _0x5143cc=_0x136d73(_0x4a9e87,_0x498a0e,_0x413ccf);_0x118718(_0x4a9e87[_0x48e56f(0x219)],_0x5143cc);const _0x5bfd41=_0x5143cc[_0x48e56f(0x297)]()[_0x48e56f(0x1c6)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)](),_0x11f23a=_0x5143cc[_0x48e56f(0x297)]()[_0x48e56f(0x208)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)](),_0x42563c=[];let _0x581d4d=_0x413ccf,_0x5ca588=_0x435523;for(let _0x9196c4=0x0;_0x9196c4<_0x11f23a[_0x48e56f(0x252)];_0x9196c4++){const _0x53abcb=_0x581d4d[_0x48e56f(0x281)]-_0x11f23a[_0x9196c4];_0x42563c[_0x9196c4]=_0x5ca588[_0x48e56f(0x281)]-_0x53abcb,_0x581d4d=_0x581d4d[_0x48e56f(0x1f8)](_0x11f23a[_0x9196c4]),_0x5ca588=_0x5ca588[_0x48e56f(0x1f8)](_0x42563c[_0x9196c4]);}const _0x4bc16b=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1a3)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x435523,_0x5bfd41),_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x435523,_0x42563c)),_0x589a70=_0x435523[_0x48e56f(0x27e)](0x0)[_0x48e56f(0x1ea)](_0x47a7f5),_0x4a2b4d=Array[_0x48e56f(0x2d2)](_0xc8b9f4[_0x48e56f(0x197)]())[_0x48e56f(0x2c2)](_0x46d76f=>_0x46d76f[_0x48e56f(0x1ea)](_0x47a7f5)==_0x589a70)[_0x48e56f(0x2cb)](),_0x5abb3f=_0x4bc16b[_0x48e56f(0x1c6)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)](),_0x182e3e=_0x4bc16b[_0x48e56f(0x208)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)]();_0x5abb3f[0x0]=_0x4a2b4d[0x0]+_0x5abb3f[0x0],_0x182e3e[0x0]=_0x4a2b4d[0x0]+_0x182e3e[0x0];let _0x46b3c4=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1a3)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1d2)][_0x48e56f(0x2da)](),_0x5abb3f),_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1d2)][_0x48e56f(0x2da)](),_0x182e3e));const _0x52fe54=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1d2)][_0x48e56f(0x240)][_0x48e56f(0x187)](_0x12867d[_0x48e56f(0x1ca)]);for(const _0x31df42 of _0x52fe54)_0x46b3c4=_0x419998[_0x48e56f(0x237)](_0x46b3c4[_0x48e56f(0x1ed)](_0x31df42));return{'range':_0x46b3c4,'currentIndex':_0x1cd73e};}[_0x722d79(0x1ef)](_0x2ad5c2){const _0x696c87=_0x722d79;if(!_0x2ad5c2[_0x696c87(0x268)][_0x696c87(0x17d)](_0x696c87(0x206)))return;const _0x3a3d81=_0x2ad5c2[_0x696c87(0x226)][_0x696c87(0x283)](_0x696c87(0x270)),_0x1fdfce=_0x2ad5c2[_0x696c87(0x226)][_0x696c87(0x283)](_0x696c87(0x291));this[_0x696c87(0x21a)](_0x3a3d81,_0x696c87(0x192),(_0x16ab0d,_0x1202d6,_0x2dfe7e)=>{const _0x3e5fb4=_0x696c87,_0x489e4a=this[_0x3e5fb4(0x1c7)][_0x3e5fb4(0x283)](_0x1202d6);if(!_0x489e4a)return;const _0x18dcab=this[_0x3e5fb4(0x2cf)][_0x3e5fb4(0x29f)](_0x489e4a[_0x3e5fb4(0x274)])[_0x3e5fb4(0x1cc)](_0x489e4a[_0x3e5fb4(0x2c5)]);_0x489e4a[_0x3e5fb4(0x229)][_0x3e5fb4(0x267)](_0x35536b=>_0x18dcab[_0x3e5fb4(0x22e)](_0x35536b,_0x3e5fb4(0x2ca))),this[_0x3e5fb4(0x1c7)][_0x3e5fb4(0x234)](_0x1202d6),this[_0x3e5fb4(0x1c7)][_0x3e5fb4(0x254)](_0x2dfe7e,_0x489e4a);}),this[_0x696c87(0x21a)](_0x1fdfce,_0x696c87(0x192),(_0x17ec5e,_0x262c7b,_0x3c468d)=>{const _0x269c32=_0x696c87,_0x124478=this[_0x269c32(0x1c7)][_0x269c32(0x283)](_0x262c7b);if(!_0x124478)return;const _0x43a86b=this[_0x269c32(0x2cf)][_0x269c32(0x29f)](_0x124478[_0x269c32(0x274)])[_0x269c32(0x1cc)](_0x124478[_0x269c32(0x2c5)]);_0x124478[_0x269c32(0x229)][_0x269c32(0x267)](_0x23e2b7=>_0x43a86b[_0x269c32(0x22e)](_0x23e2b7,_0x269c32(0x2a0))),this[_0x269c32(0x1c7)][_0x269c32(0x234)](_0x262c7b),this[_0x269c32(0x1c7)][_0x269c32(0x254)](_0x3c468d,_0x124478);});}async[_0x722d79(0x271)](_0x2ceff9){const _0x52fb31=_0x722d79;this[_0x52fb31(0x1c0)][_0x52fb31(0x268)][_0x52fb31(0x283)](_0x1641f1)[_0x52fb31(0x220)](),this[_0x52fb31(0x2d8)][_0x52fb31(0x2d6)](_0x52fb31(0x25f)),this[_0x52fb31(0x2d8)][_0x52fb31(0x282)](!0x0),await this[_0x52fb31(0x2d4)]();try{await this[_0x52fb31(0x1e1)][_0x52fb31(0x24f)](_0x2ceff9)[_0x52fb31(0x16e)](),await this[_0x52fb31(0x23f)](_0x2ceff9),this[_0x52fb31(0x24b)]('\x20');const {sessionId:_0x57161d}=this[_0x52fb31(0x2db)][_0x52fb31(0x18e)]();await this[_0x52fb31(0x2cf)][_0x52fb31(0x29b)](_0x2ceff9,_0x57161d),this[_0x52fb31(0x2cf)][_0x52fb31(0x228)]()&&this[_0x52fb31(0x2cf)][_0x52fb31(0x2a8)](_0xc3a8c(this[_0x52fb31(0x1c0)][_0x52fb31(0x248)],_0x52fb31(0x2bf)));}catch(_0x8f46ee){this[_0x52fb31(0x2d8)][_0x52fb31(0x296)]({'errorMessage':_0xc3a8c(this[_0x52fb31(0x1c0)][_0x52fb31(0x248)],_0x52fb31(0x1ff)),'id':_0x2ceff9}),this[_0x52fb31(0x198)](new _0x56bfe4(_0x52fb31(0x1e9),this,{'error':_0x8f46ee}));}finally{this[_0x52fb31(0x1c0)][_0x52fb31(0x268)][_0x52fb31(0x283)](_0x15b59e)[_0x52fb31(0x205)][_0x52fb31(0x222)](_0x52fb31(0x1f5)),this[_0x52fb31(0x2d8)][_0x52fb31(0x223)](),this[_0x52fb31(0x2d8)][_0x52fb31(0x2d6)](_0x52fb31(0x286)),this[_0x52fb31(0x2d8)][_0x52fb31(0x282)](!0x1);}}[_0x722d79(0x280)](_0x532ab0){const _0x3161ec=_0x722d79;this[_0x3161ec(0x2cf)]['id']===_0x532ab0&&this[_0x3161ec(0x23f)]();}async[_0x722d79(0x1c4)](){const _0x4994d4=_0x722d79,_0x14b5f5=this[_0x4994d4(0x2db)][_0x4994d4(0x207)]();this[_0x4994d4(0x2cf)]?.[_0x4994d4(0x260)](_0x14b5f5),this[_0x4994d4(0x2cf)]?.[_0x4994d4(0x2a8)](_0xc3a8c(this[_0x4994d4(0x1c0)][_0x4994d4(0x248)],_0x4994d4(0x2bf)));}[_0x722d79(0x176)](){const _0x53bbac=_0x722d79;this[_0x53bbac(0x2cf)]?.[_0x53bbac(0x292)]();}[_0x722d79(0x17b)](){const _0x4ee3c5=_0x722d79;this[_0x4ee3c5(0x2d8)][_0x4ee3c5(0x17b)]();}async[_0x722d79(0x2bb)](){const _0x56ec38=_0x722d79;await this[_0x56ec38(0x23f)]();}async[_0x722d79(0x22a)]({message:_0x17fbb5,quickActionData:_0x3d2618}){const _0x4203f3=_0x722d79;await this[_0x4203f3(0x243)]({'userMessage':_0x17fbb5,'quickActionData':_0x3d2618});}[_0x722d79(0x1a5)](){const _0x159ef0=_0x722d79,_0x45ba49=this[_0x159ef0(0x1c0)][_0x159ef0(0x2d9)][_0x159ef0(0x283)](_0x159ef0(0x178));if(!_0x45ba49)throw new _0x56bfe4(_0x159ef0(0x22c),this);return _0x45ba49;}async[_0x722d79(0x23f)](_0x2becc3){const _0xae89b7=_0x722d79;try{this[_0xae89b7(0x2d8)][_0xae89b7(0x287)](),await this[_0xae89b7(0x1e2)](_0x2becc3);}catch(_0x529e8a){this[_0xae89b7(0x2d8)][_0xae89b7(0x296)]({'errorMessage':_0xc3a8c(this[_0xae89b7(0x1c0)][_0xae89b7(0x248)],_0xae89b7(0x236)),'id':_0x2becc3||_0x567464()}),console[_0xae89b7(0x27b)](_0x529e8a),this[_0xae89b7(0x2cf)]=void 0x0,this[_0xae89b7(0x2d8)][_0xae89b7(0x21b)]();}}async[_0x722d79(0x1e2)](_0x3c06d5){const _0x4d62d8=_0x722d79,_0x5cdb87=this[_0x4d62d8(0x1c0)][_0x4d62d8(0x268)][_0x4d62d8(0x283)](_0x1641f1);let _0x358ce5;_0x5cdb87[_0x4d62d8(0x1f2)]&&_0x5cdb87[_0x4d62d8(0x220)](),_0x3c06d5||!this[_0x4d62d8(0x2cf)]?_0x358ce5=this[_0x4d62d8(0x1c0)][_0x4d62d8(0x2d9)][_0x4d62d8(0x283)](_0x4d62d8(0x1a0)):this[_0x4d62d8(0x2d8)][_0x4d62d8(0x225)]&&(_0x358ce5=this[_0x4d62d8(0x2cf)][_0x4d62d8(0x2c6)]['id']),await this[_0x4d62d8(0x2d4)]();const _0x288bae=this[_0x4d62d8(0x1a5)](),_0xd58aad=_0x3c06d5||_0x567464();this[_0x4d62d8(0x2cf)]=new _0x5188f9({'connector':this[_0x4d62d8(0x1e1)],'chatModels':this[_0x4d62d8(0x2d7)],'selectedModelId':_0x358ce5,'conversationId':_0xd58aad,'group':_0x288bae,'getEditor':()=>_0x4dfe45(this[_0x4d62d8(0x1c0)])}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x26a),(_0x285196,_0x3f819e)=>{const _0x197386=_0x4d62d8;this[_0x197386(0x2d8)][_0x197386(0x269)](_0x3f819e),this[_0x197386(0x2d8)][_0x197386(0x1e6)](),this[_0x197386(0x2d8)][_0x197386(0x18d)](),this[_0x197386(0x2d8)][_0x197386(0x185)](),_0x3c06d5||(this[_0x197386(0x2d8)][_0x197386(0x278)](),this[_0x197386(0x2cf)]?.[_0x197386(0x2a8)](_0xc3a8c(this[_0x197386(0x1c0)][_0x197386(0x248)],_0x197386(0x2bf))));}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x290),(_0x2d303e,_0x1cc6aa)=>{const _0x1d0a67=_0x4d62d8;this[_0x1d0a67(0x2d8)][_0x1d0a67(0x2d5)](_0x1cc6aa[_0x1d0a67(0x1ac)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x239),(_0xd36c16,_0x5e69bc)=>{const _0x267bb3=_0x4d62d8;this[_0x267bb3(0x2d8)][_0x267bb3(0x1cd)](_0x5e69bc);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x279),()=>{const _0x4be888=_0x4d62d8;this[_0x4be888(0x2d8)][_0x4be888(0x1ad)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1d4),()=>{const _0x1ef360=_0x4d62d8;this[_0x1ef360(0x2d8)][_0x1ef360(0x1ad)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x26b),(_0x5bdf12,_0x391539)=>{const _0x3a4bde=_0x4d62d8;this[_0x3a4bde(0x2d8)][_0x3a4bde(0x1d9)](_0x391539,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1c2),(_0x1d5d69,_0x5e2852)=>{const _0x3917b8=_0x4d62d8;this[_0x3917b8(0x2d8)][_0x3917b8(0x1d9)](_0x5e2852,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x191),()=>{const _0x3a0744=_0x4d62d8;this[_0x3a0744(0x2d8)][_0x3a0744(0x17e)]();}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x20e),async()=>{const _0x4c1c27=_0x4d62d8;await this[_0x4c1c27(0x2d8)][_0x4c1c27(0x28d)]();}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1fb),(_0x233241,_0x30f8c2)=>{const _0x42be1f=_0x4d62d8;this[_0x42be1f(0x2d8)][_0x42be1f(0x18a)](_0x30f8c2['id']);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1bd),(_0x39e732,_0x28e810,_0x57efc6)=>{const _0x5b1781=_0x4d62d8;this[_0x5b1781(0x24b)](_0x28e810,_0x57efc6);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x284),(_0x593f27,_0x97793e)=>{const _0xe15472=_0x4d62d8;_0xe15472(0x24a)===_0x97793e[_0xe15472(0x184)]?this[_0xe15472(0x2d8)][_0xe15472(0x1dd)](_0x97793e):this[_0xe15472(0x2d8)][_0xe15472(0x1b1)](_0x97793e);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1e5),async(_0x54a1c4,_0x41488a)=>{const _0x17bed8=_0x4d62d8;await this[_0x17bed8(0x235)]({'reply':_0x41488a});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x2d0),(_0x4c36b2,{reply:_0x5289f5,index:_0x388256,state:_0x545549})=>{const _0x53faec=_0x4d62d8;this[_0x53faec(0x2d8)][_0x53faec(0x2b8)]({'id':_0x5289f5['id'],'index':_0x388256,'state':_0x545549});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1d7),(_0x231bf8,_0x2ef5a0)=>{const _0x320339=_0x4d62d8;if(this[_0x320339(0x2d8)][_0x320339(0x179)](_0x2ef5a0[_0x320339(0x1d6)],_0x2ef5a0[_0x320339(0x1f0)]),_0x320339(0x2c3)===_0x2ef5a0[_0x320339(0x1d6)][_0x320339(0x184)]){const _0x3599b=[..._0x4dfe45(this[_0x320339(0x1c0)])[_0x320339(0x219)][_0x320339(0x1d2)][_0x320339(0x2c3)][_0x320339(0x23d)]()];this[_0x320339(0x2db)][_0x320339(0x258)](_0x3599b,_0x320339(0x299)+this[_0x320339(0x2cf)]?.['id']);}}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x23e),(_0x874a2e,_0x126e1b)=>{const _0x4ab692=_0x4d62d8;this[_0x4ab692(0x2d8)][_0x4ab692(0x245)](_0x126e1b[_0x4ab692(0x1b2)]),_0x4ab692(0x182)==_0x126e1b[_0x4ab692(0x1b2)]&&this[_0x4ab692(0x176)](),_0x4ab692(0x2c3)===_0x126e1b[_0x4ab692(0x184)]&&this[_0x4ab692(0x2db)][_0x4ab692(0x257)](_0x4ab692(0x299)+this[_0x4ab692(0x2cf)]?.['id']);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x2c4),(_0x5a76ec,_0x38d602)=>{const _0x142ad3=_0x4d62d8;this[_0x142ad3(0x2d8)][_0x142ad3(0x247)](_0x38d602[_0x142ad3(0x1d6)][_0x142ad3(0x1b2)],_0x38d602[_0x142ad3(0x1f0)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x224),(_0xd267ae,_0x2fcb30)=>{const _0x465554=_0x4d62d8;this[_0x465554(0x2d8)][_0x465554(0x2b7)](_0x2fcb30[_0x465554(0x1d1)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x22d),(_0xf7c780,_0x2809c3)=>{const _0x3dee0c=_0x4d62d8;this[_0x3dee0c(0x2d8)][_0x3dee0c(0x2b0)](_0x2809c3[_0x3dee0c(0x241)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1b0),(_0x18f45e,_0x5e63aa)=>{const _0x5e3b0b=_0x4d62d8;this[_0x5e3b0b(0x2d8)][_0x5e3b0b(0x175)](_0x5e63aa[_0x5e3b0b(0x1c3)],_0x5e63aa[_0x5e3b0b(0x24c)],_0x5e63aa[_0x5e3b0b(0x2cd)],_0x5e63aa[_0x5e3b0b(0x172)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x213),(_0x9a7b4f,_0x56780a)=>{const _0x1d8af9=_0x4d62d8;this[_0x1d8af9(0x2d8)][_0x1d8af9(0x244)](_0x56780a[_0x1d8af9(0x1c3)],_0x56780a[_0x1d8af9(0x2c1)],_0x56780a[_0x1d8af9(0x2b4)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x26e),(_0x2a574d,_0x1f8f6c)=>{const _0x443196=_0x4d62d8;this[_0x443196(0x2d8)][_0x443196(0x1bc)](_0x1f8f6c);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x275),(_0x2ebfb1,_0x2a6562)=>{const _0x535438=_0x4d62d8;this[_0x535438(0x2d8)][_0x535438(0x216)](_0x2a6562[_0x535438(0x2c6)],_0x2a6562[_0x535438(0x289)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x27b),(_0x4df066,{error:_0x4ab6f6,interactionId:_0x44e184,fileName:_0x2ca375,url:_0x168999,sourceId:_0x23afe0,sourceLabel:_0x21ed11})=>{const _0xa8bc5e=_0x4d62d8,_0x476423=_0x44e184?_0x44e184+':'+_0x567464():_0x567464();_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1cf))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x28e)]({'staticMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x230)),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1f1))||_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1fe))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x236)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x273))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x29d),_0x2ca375),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x16f))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x1b4),_0x168999),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1de))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x1e7)),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x2c8))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x2a7)),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x189))?(_0x23afe0&&this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x1eb)](_0x23afe0),this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x249),_0x21ed11||_0xa8bc5e(0x24c)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1f4))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x1f9)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x20a))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x180)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x227))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x211)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x24e))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x2ab)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1ae))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x21c)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x232))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x2bd)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x238)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6));}),await this[_0x4d62d8(0x2cf)][_0x4d62d8(0x276)](this[_0x4d62d8(0x1c0)][_0x4d62d8(0x2d9)][_0x4d62d8(0x283)](_0x4d62d8(0x27d))),_0x3c06d5||await this[_0x4d62d8(0x2cf)][_0x4d62d8(0x1c6)]();}async[_0x722d79(0x243)]({userMessage:_0x3dce6e,quickActionData:_0x192eca}){const _0x189823=_0x722d79;if(!this[_0x189823(0x2cf)])throw new _0x56bfe4(_0x189823(0x255));this[_0x189823(0x2cf)][_0x189823(0x1ec)]()&&await this[_0x189823(0x2cf)][_0x189823(0x1d8)](this[_0x189823(0x2db)][_0x189823(0x18e)]()),this[_0x189823(0x2cf)]['id']&&this[_0x189823(0x2cf)][_0x189823(0x1b8)]&&await this[_0x189823(0x2cf)][_0x189823(0x193)]({'userMessage':_0x3dce6e,'quickActionData':_0x192eca}),this[_0x189823(0x1cb)]();}[_0x722d79(0x1cb)](){const _0x273841=_0x722d79,_0x37e2d3=_0x4dfe45(this[_0x273841(0x1c0)])[_0x273841(0x219)],_0x51b00b=Array[_0x273841(0x2d2)](_0x37e2d3[_0x273841(0x1df)][_0x273841(0x2ae)](_0x5dc995));_0x37e2d3[_0x273841(0x24d)](_0x5e9259=>{const _0x385e72=_0x273841;_0x51b00b[_0x385e72(0x267)](_0x22f235=>_0x5e9259[_0x385e72(0x19d)](_0x22f235));});}[_0x722d79(0x23c)](){const _0x1c210a=_0x722d79;console[_0x1c210a(0x25c)](_0x1c210a(0x25d));}[_0x722d79(0x25b)](_0x391aa8){const _0x47a1a4=_0x722d79;this[_0x47a1a4(0x2d8)][_0x47a1a4(0x214)](_0x391aa8);}[_0x722d79(0x198)](_0x581436){const _0x16f589=_0x722d79;_0x403c82(_0x581436[_0x16f589(0x173)]);}[_0x722d79(0x183)](_0x6ac715){const _0x7bcc6e=_0x722d79;this[_0x7bcc6e(0x2cf)]?.[_0x7bcc6e(0x277)](_0x6ac715);}[_0x722d79(0x1db)](){const _0x4a3b01=_0x722d79;this[_0x4a3b01(0x2cf)]?.[_0x4a3b01(0x204)]();}[_0x722d79(0x29c)](){const _0xd70395=_0x722d79;this[_0xd70395(0x2cf)]?.[_0xd70395(0x28c)]();}[_0x722d79(0x250)](_0x494b92){const _0x439c1f=_0x722d79,[_0x16df74,_0x3e227f]=_0x494b92[_0x439c1f(0x190)](':'),_0x529875=this[_0x439c1f(0x2cf)][_0x439c1f(0x29f)](_0x16df74),_0x56b986=_0x529875[_0x439c1f(0x1cc)](_0x3e227f);return{'interaction':_0x529875,'reply':_0x56b986};}[_0x722d79(0x27c)](_0x559926,_0x323829=!0x1){const _0x157b72=_0x722d79,_0x24885d=_0x4dfe45(this[_0x157b72(0x1c0)]),_0x347750={'target':_0x24885d[_0x157b72(0x242)][_0x157b72(0x205)][_0x157b72(0x2b3)][_0x157b72(0x20d)](_0x24885d[_0x157b72(0x242)][_0x157b72(0x1c1)][_0x157b72(0x29e)](_0x559926)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x323829};_0x323829&&(_0x347750[_0x157b72(0x215)]=!0x0),_0x2ac001(_0x347750);}[_0x722d79(0x24b)](_0x1b1057,_0x4546f7=!0x1){const _0x503f90=_0x722d79;this[_0x503f90(0x2d8)][_0x503f90(0x1bd)](_0x1b1057||_0xc3a8c(this[_0x503f90(0x1c0)][_0x503f90(0x248)],_0x503f90(0x272)),_0x4546f7);}async[_0x722d79(0x235)]({reply:_0xed8c28,renderingStrategy:_0x56fe87}){const _0x227434=_0x722d79,{id:_0x3b0f36,isDone:_0x274593,type:_0x1476d9,parsedContent:_0x1fc6ef}=_0xed8c28;if(_0x227434(0x2b9)===_0x1476d9){const _0x575f0b=_0xed8c28[_0x227434(0x27a)]({'showDiff':this[_0x227434(0x2d8)][_0x227434(0x294)]});await this[_0x227434(0x2d8)][_0x227434(0x1a4)]({'id':_0x3b0f36,'parts':_0x575f0b,'renderingStrategy':_0x56fe87,'isDone':_0x274593});}else _0x227434(0x24a)===_0x1476d9&&await this[_0x227434(0x2d8)][_0x227434(0x1bb)]({'id':_0x3b0f36,'parsedContent':_0x1fc6ef,'renderingStrategy':_0x56fe87,'isDone':_0x274593});_0x274593&&_0xed8c28[_0x227434(0x181)][_0x227434(0x252)]>0x0&&this[_0x227434(0x2d8)][_0x227434(0x1f3)](_0x3b0f36,_0xed8c28[_0x227434(0x181)]);}async[_0x722d79(0x2d4)](){const _0xb7df21=_0x722d79,_0x5c52d2=this[_0xb7df21(0x2cf)]?.[_0xb7df21(0x293)];_0x5c52d2&&(_0x5c52d2[_0xb7df21(0x1b7)](),this[_0xb7df21(0x2d8)][_0xb7df21(0x288)](_0x5c52d2));}async[_0x722d79(0x23a)](){const _0x4f0751=_0x722d79,_0x5c737c=this[_0x4f0751(0x2cf)]?.[_0x4f0751(0x293)];if(_0x5c737c){for await(const _0x54df9e of _0x5c737c[_0x4f0751(0x2be)])await this[_0x4f0751(0x235)]({'reply':_0x54df9e,'renderingStrategy':_0x4f0751(0x25f)});}}[_0x722d79(0x199)](_0x2c7197){const _0x4626d0=_0x722d79,_0x403d95={'positiveCount':_0x2c7197[_0x4626d0(0x2a5)][_0x4626d0(0x174)](_0x5147ee=>_0x4626d0(0x2a0)===_0x5147ee[_0x4626d0(0x251)])[_0x4626d0(0x252)],'totalCount':_0x2c7197[_0x4626d0(0x2a5)][_0x4626d0(0x252)],'modificationId':_0x2c7197['id']},_0x5810e2=this[_0x4626d0(0x2cf)][_0x4626d0(0x29f)](_0x2c7197[_0x4626d0(0x274)])[_0x4626d0(0x1e0)];this[_0x4626d0(0x1e1)][_0x4626d0(0x1b6)](this[_0x4626d0(0x2cf)]['id'],_0x5810e2,_0x403d95);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xa515(){const _0x5bb85a=['updateFeedItemAIReplySources','resetConversationTitle','streaming','user-message','get','has','commands','ai-reply','chatControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','from','interaction-header','remove','3746892nkAAEA','1090sKfflH','enqueue','updateSuggestionPartState','updateSuggestionItem','toggleLoadingSkeleton','isVisible','context','destroy','addFeedItemError','enableControls','setAddContextOptions','scrollToSuggestion','forEach','showResizeButton','finishInteraction','addFeedItemAIReply','AIChatUI','10996392kxZRvA','updateResourceState','setModel','closeSourceResourceBalloon','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','startInteraction','ai-suggestion-reply','addTab','conversation-start','setSelectedModel','areActionsDisabled','queueEmptyPromise','getItemIds','removeFeedInteraction','addFeedItemUserMessage','markItemAsDone','addItem','length','delegate','filter','431012yDZROZ','disableControls','13332906HlGqaJ','isPremiumPlugin','addFeedInteractionHeader','27XLYBKn','TrackChanges','isDone','setConversationContext','isPending','interactionId','isBusy','_animateConversationTitle','setConversationTitle','</p>','AI_CHAT_WELCOME_MESSAGE','bind','_interactionPromiseResolver','AI_CHAT_HEADING','775xMLevR','chatHeader','view','setFeedItemRenderingStrategy','populateSourceResourceBalloon','error-message','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','ai.chat.context.searchInputVisibleFrom','isWebSearchEnabled','_titleAnimationInterval','capabilities','isModelAvailable','insertSuggestion','_isTrackChangesCommandValueBound','stopAutoScroll','then','updateWebSources','markFeedItemAsDone','setIsUploadInProgress','addFeedItemStaticMessage','setInputPlaceholder','clear','scrollFeedToSuggestion','abort','enableModelSelector','_getLoadingMessage','pluginName','disableModelSelector','setWebSearch','startAutoScroll','contextItems','showDiff','displayedPrompt','children','updateFeedInteractionHeader','3591630IUAOxt','<p>','chatFeed','setContextItemLoading','startsWith','isDisabled','values','isOfficialPlugin','config','updateFeedItemAIReplySuggestionPartState','5842710eiMONY','_view','updateFeedItemAIReplySuggestionContent','addContextItem','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isTrackChangesOn','isLoading','options','find','setModelList','AITabs','plugins','ai.chat.models.modelSelectorAlwaysVisible','requires','_getInputPlaceholder','addFeedItemAISuggestion','setIsMaximized','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setReasoning','isReasoningEnabled','quickActionData','updateReplyItem','stopInteraction','label','trackChanges','clearPendingContextUI','locale','isMaximized','updateCapabilities','createConversation','set','removeContextItem','feedItemRenderingStrategy','clearConversationContextUI','renderingStrategy','value','userMessage','ai.availableReplyActions','removeItem','setLoadingMessage','focusPromptInput','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','toggleSuggestionDisplayMode','updateFeedItemAIReplyContent','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','_promiseQueue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','availableModels','last','resetMessageInput','chat'];_0xa515=function(){return _0x5bb85a;};return _0xa515();}function _0x3f79(_0x2c51c7,_0x123749){const _0xa515f2=_0xa515();return _0x3f79=function(_0x3f795e,_0x32d378){_0x3f795e=_0x3f795e-0xb3;let _0x5b13d6=_0xa515f2[_0x3f795e];return _0x5b13d6;},_0x3f79(_0x2c51c7,_0x123749);}const _0xf4a3bc=_0x3f79;(function(_0x118c3b,_0x4894f6){const _0xa5b70e=_0x3f79,_0x1cffc9=_0x118c3b();while(!![]){try{const _0x219040=-parseInt(_0xa5b70e(0x117))/0x1*(-parseInt(_0xa5b70e(0xdf))/0x2)+parseInt(_0xa5b70e(0x109))/0x3*(-parseInt(_0xa5b70e(0x104))/0x4)+parseInt(_0xa5b70e(0x144))/0x5+parseInt(_0xa5b70e(0xde))/0x6+-parseInt(_0xa5b70e(0x13a))/0x7+-parseInt(_0xa5b70e(0xf0))/0x8+parseInt(_0xa5b70e(0x106))/0x9;if(_0x219040===_0x4894f6)break;else _0x1cffc9['push'](_0x1cffc9['shift']());}catch(_0x12a73e){_0x1cffc9['push'](_0x1cffc9['shift']());}}}(_0xa515,0xccef9));import{ContextPlugin as _0x4a5691}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x115c84}from'ckeditor5/src/utils.js';import{AIChatView as _0x3ee84f}from'./ui/aichatview.js';import{AITabs as _0xb06856}from'../aitabs/aitabs.js';import{getTranslation as _0x5b7b06}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x363432}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1ff243}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x829663}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x11f5c7}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x137728}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4af346}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4a5691{static get[_0xf4a3bc(0x151)](){return[_0xb06856];}[_0xf4a3bc(0x145)];static get[_0xf4a3bc(0x131)](){const _0x4c7bfa=_0xf4a3bc;return _0x4c7bfa(0xef);}static get[_0xf4a3bc(0x141)](){return!0x0;}static get[_0xf4a3bc(0x107)](){return!0x0;}[_0xf4a3bc(0xbe)]=_0xf4a3bc(0xd3);[_0xf4a3bc(0x136)]=!0x0;[_0xf4a3bc(0xcb)];[_0xf4a3bc(0x115)];[_0xf4a3bc(0x120)]=void 0x0;[_0xf4a3bc(0x124)]=!0x1;constructor(_0x3c2047){const _0x51cc7d=_0xf4a3bc;super(_0x3c2047);const _0x3a5622=this[_0x51cc7d(0xe5)][_0x51cc7d(0x14f)][_0x51cc7d(0xd5)](_0x51cc7d(0x14e));this[_0x51cc7d(0xbc)](_0x51cc7d(0x10f),!0x1),this[_0x51cc7d(0xcb)]=new _0x829663(),this[_0x51cc7d(0x145)]=new _0x3ee84f(this[_0x51cc7d(0xe5)][_0x51cc7d(0xb8)],{'showResizeButton':_0x3a5622[_0x51cc7d(0xec)],'contextResourcesSearchInputVisibleFrom':this[_0x51cc7d(0xe5)][_0x51cc7d(0x142)][_0x51cc7d(0xd5)](_0x51cc7d(0x11e))}),this[_0x51cc7d(0x145)][_0x51cc7d(0x102)](..._0x11f5c7)['to'](this),this[_0x51cc7d(0x145)]['on'](_0x51cc7d(0xc8),(_0x578ebd,{showDiff:_0x1c32bd})=>{const _0x351cea=_0x51cc7d;this[_0x351cea(0x136)]=_0x1c32bd;}),_0x3a5622[_0x51cc7d(0x119)][_0x51cc7d(0xf7)]({'id':_0x51cc7d(0xd0),'buttonLabel':_0x5b7b06(this[_0x51cc7d(0xe5)][_0x51cc7d(0xb8)],_0x51cc7d(0x116)),'buttonIcon':_0x363432,'order':0x0,'content':this[_0x51cc7d(0x145)]}),this[_0x51cc7d(0x145)][_0x51cc7d(0xd9)][_0x51cc7d(0x114)](_0x51cc7d(0x14a))['to'](this,_0x51cc7d(0x10f),_0x43a887=>_0x43a887),this[_0x51cc7d(0x145)][_0x51cc7d(0x13c)][_0x51cc7d(0x114)](_0x51cc7d(0x10d))['to'](this,_0x51cc7d(0x10f),_0x351dd7=>_0x351dd7),this[_0x51cc7d(0x145)][_0x51cc7d(0xd9)][_0x51cc7d(0x12b)](this[_0x51cc7d(0x152)]()),this[_0x51cc7d(0x114)](_0x51cc7d(0x122))['to'](this[_0x51cc7d(0x145)][_0x51cc7d(0xd9)],_0x51cc7d(0x122));}[_0xf4a3bc(0xe6)](){const _0x3d8796=_0xf4a3bc;super[_0x3d8796(0xe6)](),this[_0x3d8796(0x120)]&&clearInterval(this[_0x3d8796(0x120)]);}[_0xf4a3bc(0xbb)](_0x325235){const _0xca5200=_0xf4a3bc;this[_0xca5200(0x145)][_0xca5200(0x13c)][_0xca5200(0x12c)](),this[_0xca5200(0x145)][_0xca5200(0xd9)][_0xca5200(0x12f)](),this[_0xca5200(0x145)][_0xca5200(0xd9)][_0xca5200(0x14d)](_0x325235[_0xca5200(0xcd)],!this[_0xca5200(0xe5)][_0xca5200(0x142)][_0xca5200(0xd5)](_0xca5200(0x150))),this[_0xca5200(0x12a)]({'id':_0xca5200(0xf8),'staticMessage':_0x5b7b06(this[_0xca5200(0xe5)][_0xca5200(0xb8)],_0xca5200(0x113))});}[_0xf4a3bc(0x12a)]({id:_0x5ced0a,staticMessage:_0x335ac0}){const _0x2ad8c4=_0xf4a3bc;this[_0x2ad8c4(0x145)][_0x2ad8c4(0x13c)][_0x2ad8c4(0x100)](_0x2ad8c4(0xd8),{'id':_0x5ced0a,'initialContent':_0x2ad8c4(0x13b)+_0x335ac0+_0x2ad8c4(0x112)});}[_0xf4a3bc(0xfe)](_0x322e8d){const _0x2a2176=_0xf4a3bc,_0x34ffc3=_0x322e8d[_0x2a2176(0x158)]?.[_0x2a2176(0x137)]||_0x322e8d[_0x2a2176(0xc2)];this[_0x2a2176(0x145)][_0x2a2176(0x13c)][_0x2a2176(0x100)](_0x2a2176(0xd4),{'contextItems':Array[_0x2a2176(0xdb)](_0x322e8d[_0x2a2176(0x135)][_0x2a2176(0x140)]()),'initialContent':_0x2a2176(0x13b)+_0x34ffc3+_0x2a2176(0x112),'id':_0x322e8d['id']});}[_0xf4a3bc(0xe7)]({errorMessage:_0x8c5ea7,id:_0x437104}){const _0x2ab66b=_0xf4a3bc;this[_0x2ab66b(0x145)][_0x2ab66b(0x13c)][_0x2ab66b(0x100)](_0x2ab66b(0x11c),{'initialContent':_0x2ab66b(0x13b)+_0x8c5ea7+_0x2ab66b(0x112),'id':_0x437104});}[_0xf4a3bc(0xee)](_0x319b58){const _0x4d7d03=_0xf4a3bc;return this[_0x4d7d03(0xcb)][_0x4d7d03(0xe0)](async()=>{const _0x24f48f=_0x4d7d03;this[_0x24f48f(0x145)][_0x24f48f(0x13c)][_0x24f48f(0x100)](_0x24f48f(0xd8),{'id':_0x319b58[_0x24f48f(0x10e)]+':'+_0x319b58['id']}),this[_0x24f48f(0xc5)](null);});}async[_0xf4a3bc(0x153)](_0x31e052){const _0xebfb0b=_0xf4a3bc,_0x15fcf8=_0x137728(this[_0xebfb0b(0xe5)]);let _0x1007cc=_0x15fcf8[_0xebfb0b(0x142)][_0xebfb0b(0xd5)](_0xebfb0b(0xc3))||[..._0x4af346];if(_0x15fcf8[_0xebfb0b(0x14f)][_0xebfb0b(0xd6)](_0xebfb0b(0x10a))){if(!this[_0xebfb0b(0x124)]){this[_0xebfb0b(0x124)]=!0x0;const _0x33b954=_0x15fcf8[_0xebfb0b(0xd7)][_0xebfb0b(0xd5)](_0xebfb0b(0xb6));this[_0xebfb0b(0x145)][_0xebfb0b(0x13c)][_0xebfb0b(0x114)](_0xebfb0b(0x149))['to'](_0x33b954,_0xebfb0b(0xc1));}}else _0x1007cc=_0x1007cc[_0xebfb0b(0x103)](_0x27e058=>_0xebfb0b(0x123)!=_0x27e058);return this[_0xebfb0b(0xcb)][_0xebfb0b(0xe0)](async()=>{const _0x343055=_0xebfb0b;this[_0x343055(0x145)][_0x343055(0x13c)][_0x343055(0x100)](_0x343055(0xf6),{'id':_0x31e052[_0x343055(0x10e)]+':'+_0x31e052['id'],'areActionsDisabled':_0x31e052[_0x343055(0xfa)],'showDiff':this[_0x343055(0x136)],'availableActions':_0x1007cc}),this[_0x343055(0xc5)](null);});}[_0xf4a3bc(0x108)](_0x2a6a29,_0x28afa8){const _0x3f162b=_0xf4a3bc,_0x17f555=this[_0x3f162b(0x145)][_0x3f162b(0x13c)][_0x3f162b(0x138)][_0x3f162b(0xce)];if(_0x17f555 instanceof _0x1ff243)return this[_0x3f162b(0x145)][_0x3f162b(0x13c)][_0x3f162b(0x138)][_0x3f162b(0xdd)](_0x17f555),void this[_0x3f162b(0x145)][_0x3f162b(0x13c)][_0x3f162b(0x100)](_0x3f162b(0xdc),{'id':_0x2a6a29['id'],'capabilities':{'isWebSearchEnabled':_0x17f555[_0x3f162b(0x121)][_0x3f162b(0x11f)]||_0x28afa8[_0x3f162b(0x11f)],'isReasoningEnabled':_0x17f555[_0x3f162b(0x121)][_0x3f162b(0x157)]||_0x28afa8[_0x3f162b(0x157)]}});this[_0x3f162b(0x145)][_0x3f162b(0x13c)][_0x3f162b(0x100)](_0x3f162b(0xdc),{'id':_0x2a6a29['id'],'capabilities':_0x28afa8});}[_0xf4a3bc(0x139)](_0x4b4228){const _0xc2886f=_0xf4a3bc,_0x5ea9f1=this[_0xc2886f(0x145)][_0xc2886f(0x13c)][_0xc2886f(0x138)][_0xc2886f(0x14c)](_0x3c4ab8=>_0x3c4ab8[_0xc2886f(0x14b)]['id']==_0x4b4228['id']&&_0x3c4ab8 instanceof _0x1ff243);_0x5ea9f1&&_0x5ea9f1[_0xc2886f(0xbc)](_0xc2886f(0xe4),_0x4b4228[_0xc2886f(0xe4)]);}async[_0xf4a3bc(0xc9)](_0x30ef83){const _0x3dcf3a=_0xf4a3bc,_0x4ceea7=_0x30ef83[_0x3dcf3a(0xc0)]||this[_0x3dcf3a(0xbe)];return this[_0x3dcf3a(0xcb)][_0x3dcf3a(0xe0)](async _0x104129=>{const _0x4d245a=_0x3dcf3a;await this[_0x4d245a(0x145)][_0x4d245a(0x13c)][_0x4d245a(0xb3)]({..._0x30ef83,'abortSignal':_0x104129,'renderingStrategy':_0x4ceea7}),_0x30ef83[_0x4d245a(0x10b)]&&this[_0x4d245a(0x128)](_0x30ef83['id']);});}[_0xf4a3bc(0xd1)](_0x27dd29,_0x5b07d7){const _0x40489f=_0xf4a3bc;this[_0x40489f(0x145)][_0x40489f(0x13c)][_0x40489f(0x127)](_0x27dd29,_0x5b07d7);}async[_0xf4a3bc(0x146)](_0x27bbe4){const _0x3d1704=_0xf4a3bc,_0x5855e=_0x27bbe4[_0x3d1704(0xc0)]||this[_0x3d1704(0xbe)];return this[_0x3d1704(0xcb)][_0x3d1704(0xe0)](async _0x24845d=>{const _0x50b104=_0x3d1704;await this[_0x50b104(0x145)][_0x50b104(0x13c)][_0x50b104(0xe2)]({..._0x27bbe4,'abortSignal':_0x24845d,'renderingStrategy':_0x5855e}),_0x27bbe4[_0x50b104(0x10b)]&&this[_0x50b104(0x128)](_0x27bbe4['id']);});}[_0xf4a3bc(0x143)](_0x16b793){const _0x42eddc=_0xf4a3bc;this[_0x42eddc(0x145)][_0x42eddc(0x13c)][_0x42eddc(0xe1)](_0x16b793);}[_0xf4a3bc(0x128)](_0x571cac){const _0x2c4107=_0xf4a3bc;this[_0x2c4107(0x145)][_0x2c4107(0x13c)][_0x2c4107(0xff)](_0x571cac);}[_0xf4a3bc(0xfd)](_0x4c5ea2){const _0x2aaa13=_0xf4a3bc;this[_0x2aaa13(0x145)][_0x2aaa13(0x13c)][_0x2aaa13(0xfc)]()[_0x2aaa13(0x103)](_0x1533d7=>_0x1533d7[_0x2aaa13(0x13e)](_0x4c5ea2))[_0x2aaa13(0xeb)](_0x6bf40=>this[_0x2aaa13(0x145)][_0x2aaa13(0x13c)][_0x2aaa13(0xc4)](_0x6bf40));}[_0xf4a3bc(0xf5)](){const _0x2e61a9=_0xf4a3bc;this[_0x2e61a9(0xc5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2e61a9(0x145)][_0x2e61a9(0xd9)][_0x2e61a9(0x132)](!this[_0x2e61a9(0xe5)][_0x2e61a9(0x142)][_0x2e61a9(0xd5)](_0x2e61a9(0x150))),this[_0x2e61a9(0x10f)]=!0x0,this[_0x2e61a9(0x145)][_0x2e61a9(0x13c)][_0x2e61a9(0x134)]();}[_0xf4a3bc(0xb4)](_0x30b9c0){const _0x442b61=_0xf4a3bc;this[_0x442b61(0xcb)][_0x442b61(0x12e)](),this[_0x442b61(0x145)][_0x442b61(0x13c)][_0x442b61(0xfc)]()[_0x442b61(0x103)](_0x3da9d5=>_0x3da9d5[_0x442b61(0x13e)](_0x30b9c0['id']))[_0x442b61(0xeb)](_0x1a483d=>this[_0x442b61(0x128)](_0x1a483d)),this[_0x442b61(0x10f)]=!0x1,this[_0x442b61(0x145)][_0x442b61(0x13c)][_0x442b61(0x125)]();}async[_0xf4a3bc(0xed)](){const _0x2366a1=_0xf4a3bc;return this[_0x2366a1(0xcb)][_0x2366a1(0xfb)][_0x2366a1(0x126)](()=>{const _0x4e6826=_0x2366a1;this[_0x4e6826(0x10f)]=!0x1,this[_0x4e6826(0x145)][_0x4e6826(0x13c)][_0x4e6826(0x125)]();});}[_0xf4a3bc(0x147)](_0x47c75b,_0x1a9767){const _0x4ad6f7=_0xf4a3bc;this[_0x4ad6f7(0x145)][_0x4ad6f7(0xd9)][_0x4ad6f7(0x147)](_0x47c75b,_0x1a9767);}[_0xf4a3bc(0xbd)](_0x261142){const _0x7b5eed=_0xf4a3bc;this[_0x7b5eed(0x145)][_0x7b5eed(0xd9)][_0x7b5eed(0xbd)](_0x261142);}[_0xf4a3bc(0x13d)](_0xb8c28f,_0x207660){const _0x336830=_0xf4a3bc;this[_0x336830(0x145)][_0x336830(0xd9)][_0x336830(0x13d)](_0xb8c28f,_0x207660);}[_0xf4a3bc(0x129)](_0xef312d){const _0x20385c=_0xf4a3bc;this[_0x20385c(0x145)][_0x20385c(0xd9)][_0x20385c(0x129)](_0xef312d);}[_0xf4a3bc(0x10c)](_0x307e97){const _0x15938d=_0xf4a3bc;this[_0x15938d(0x145)][_0x15938d(0xd9)][_0x15938d(0x10c)](_0x307e97);}[_0xf4a3bc(0xb7)](){const _0x192a36=_0xf4a3bc;this[_0x192a36(0x145)][_0x192a36(0xd9)][_0x192a36(0xb7)]();}[_0xf4a3bc(0xbf)](){const _0x1a6fbf=_0xf4a3bc;this[_0x1a6fbf(0x145)][_0x1a6fbf(0xd9)][_0x1a6fbf(0xbf)]();}[_0xf4a3bc(0xf1)](_0xe4968a,_0x536bdb,_0x4d62f6){const _0x4a5b06=_0xf4a3bc;this[_0x4a5b06(0x145)][_0x4a5b06(0xd9)][_0x4a5b06(0xf1)](_0xe4968a,_0x536bdb,_0x4d62f6);}[_0xf4a3bc(0xcf)](){const _0x48b6a3=_0xf4a3bc;this[_0x48b6a3(0x145)][_0x48b6a3(0xd9)][_0x48b6a3(0xcf)](),this[_0x48b6a3(0x145)][_0x48b6a3(0xd9)][_0x48b6a3(0x12b)](this[_0x48b6a3(0x152)]());}[_0xf4a3bc(0xe9)](_0x1d3c84){const _0x29d78e=_0xf4a3bc;this[_0x29d78e(0x145)][_0x29d78e(0xd9)][_0x29d78e(0xe9)](_0x1d3c84);}[_0xf4a3bc(0xba)](_0x5558e0){const _0x3bd25f=_0xf4a3bc;this[_0x3bd25f(0x145)][_0x3bd25f(0xd9)][_0x3bd25f(0x133)](_0x5558e0[_0x3bd25f(0x11f)]),this[_0x3bd25f(0x145)][_0x3bd25f(0xd9)][_0x3bd25f(0x156)](_0x5558e0[_0x3bd25f(0x157)]),this[_0x3bd25f(0x145)][_0x3bd25f(0xd9)][_0x3bd25f(0x12b)](this[_0x3bd25f(0x152)](_0x5558e0));}[_0xf4a3bc(0xf9)](_0x9d9e3,_0x3623cc){const _0x2bf962=_0xf4a3bc;this[_0x2bf962(0x145)][_0x2bf962(0xd9)][_0x2bf962(0xf2)](_0x9d9e3),_0x3623cc&&this[_0x2bf962(0x145)][_0x2bf962(0xd9)][_0x2bf962(0x132)](!0x1);}[_0xf4a3bc(0x11a)](_0x4dc040){const _0x1510b7=_0xf4a3bc;this[_0x1510b7(0xbe)]=_0x4dc040;}[_0xf4a3bc(0xe3)](_0x5201a7){const _0x1ef34c=_0xf4a3bc;this[_0x1ef34c(0x145)][_0x1ef34c(0x13c)][_0x1ef34c(0xe3)](_0x5201a7);}[_0xf4a3bc(0xd2)](){const _0xc6947c=_0xf4a3bc;this[_0xc6947c(0x111)](_0x5b7b06(this[_0xc6947c(0xe5)][_0xc6947c(0xb8)],_0xc6947c(0x116)));}[_0xf4a3bc(0x111)](_0x49b85b,_0x175783=!0x1){const _0xe02b0a=_0xf4a3bc;if(_0x175783&&!_0x115c84()&&_0x49b85b[_0xe02b0a(0x101)])return this[_0xe02b0a(0x145)][_0xe02b0a(0x118)][_0xe02b0a(0xb5)]='',void this[_0xe02b0a(0x110)](_0x49b85b);this[_0xe02b0a(0x145)][_0xe02b0a(0x118)][_0xe02b0a(0xb5)]=_0x49b85b;}[_0xf4a3bc(0xc5)](_0x481684){const _0x5b6747=_0xf4a3bc,_0x20423b=this[_0x5b6747(0x130)](_0x481684);this[_0x5b6747(0x145)][_0x5b6747(0x13c)][_0x5b6747(0xc5)](_0x20423b);}[_0xf4a3bc(0x110)](_0x4f03cc){const _0x47d8bc=_0xf4a3bc;let _0x8f2b30=0x0;clearInterval(this[_0x47d8bc(0x120)]),this[_0x47d8bc(0x120)]=setInterval(()=>{const _0x478fe3=_0x47d8bc;this[_0x478fe3(0x145)][_0x478fe3(0x118)][_0x478fe3(0xb5)]=this[_0x478fe3(0x145)][_0x478fe3(0x118)][_0x478fe3(0xb5)]+_0x4f03cc[_0x8f2b30],_0x8f2b30++,_0x8f2b30===_0x4f03cc[_0x478fe3(0x101)]&&clearInterval(this[_0x478fe3(0x120)]);},0x1e);}[_0xf4a3bc(0x154)](_0x2bc3f6){const _0x35fac7=_0xf4a3bc;this[_0x35fac7(0x145)][_0x35fac7(0x118)][_0x35fac7(0xb9)]=_0x2bc3f6;}[_0xf4a3bc(0x130)](_0x2cd3b4){const _0x1cd785=_0xf4a3bc;return _0x2cd3b4?_0x2cd3b4[_0x1cd785(0x11f)]&&_0x2cd3b4[_0x1cd785(0x157)]?_0x5b7b06(this[_0x1cd785(0xe5)][_0x1cd785(0xb8)],_0x1cd785(0x11d)):_0x2cd3b4[_0x1cd785(0x11f)]?_0x5b7b06(this[_0x1cd785(0xe5)][_0x1cd785(0xb8)],_0x1cd785(0xca)):_0x2cd3b4[_0x1cd785(0x157)]?_0x5b7b06(this[_0x1cd785(0xe5)][_0x1cd785(0xb8)],_0x1cd785(0x148)):_0x5b7b06(this[_0x1cd785(0xe5)][_0x1cd785(0xb8)],_0x1cd785(0xc7)):'';}[_0xf4a3bc(0x152)](_0x5d14f5){const _0x294014=_0xf4a3bc;return _0x5d14f5?_0x5d14f5[_0x294014(0x11f)]&&_0x5d14f5[_0x294014(0x157)]?_0x5b7b06(this[_0x294014(0xe5)][_0x294014(0xb8)],_0x294014(0xf4)):_0x5d14f5[_0x294014(0x11f)]?_0x5b7b06(this[_0x294014(0xe5)][_0x294014(0xb8)],_0x294014(0xda)):_0x5d14f5[_0x294014(0x157)]?_0x5b7b06(this[_0x294014(0xe5)][_0x294014(0xb8)],_0x294014(0x155)):_0x5b7b06(this[_0x294014(0xe5)][_0x294014(0xb8)],_0x294014(0xcc)):_0x5b7b06(this[_0x294014(0xe5)][_0x294014(0xb8)],_0x294014(0xcc));}[_0xf4a3bc(0x11b)](_0x37cef9,_0x44a3ef,_0x5b6be2,_0x4c52ad){const _0xc14b2e=_0xf4a3bc;this[_0xc14b2e(0x145)][_0xc14b2e(0x11b)](_0x37cef9,_0x44a3ef,_0x5b6be2,_0x4c52ad);}[_0xf4a3bc(0xf3)](_0x68973e){const _0x592373=_0xf4a3bc;this[_0x592373(0x145)][_0x592373(0xf3)](_0x68973e);}[_0xf4a3bc(0xc6)](){const _0x21bbbb=_0xf4a3bc;this[_0x21bbbb(0x145)][_0x21bbbb(0xd9)][_0x21bbbb(0xc6)]();}[_0xf4a3bc(0x12d)](_0x32b8d5,_0x252652){const _0x2ea90a=_0xf4a3bc;this[_0x2ea90a(0x145)][_0x2ea90a(0x13c)][_0x2ea90a(0xea)](_0x32b8d5,_0x252652);}[_0xf4a3bc(0x134)](){const _0x2a1d60=_0xf4a3bc;this[_0x2a1d60(0x145)][_0x2a1d60(0x13c)][_0x2a1d60(0x134)]();}[_0xf4a3bc(0x105)](){const _0x12f7d6=_0xf4a3bc;this[_0x12f7d6(0x145)][_0x12f7d6(0xd9)][_0x12f7d6(0x13f)]=!0x0;}[_0xf4a3bc(0xe8)](){const _0x2b25dd=_0xf4a3bc;this[_0x2b25dd(0x145)][_0x2b25dd(0xd9)][_0x2b25dd(0x13f)]=!0x1;}}
|
|
23
|
+
const _0x20bb56=_0x505e;function _0x505e(_0x479c1a,_0x409360){const _0x525887=_0x5258();return _0x505e=function(_0x505e62,_0x42d0fd){_0x505e62=_0x505e62-0x12e;let _0x382a38=_0x525887[_0x505e62];return _0x382a38;},_0x505e(_0x479c1a,_0x409360);}function _0x5258(){const _0x5f3b38=['_interactionPromiseResolver','areActionsDisabled','4314150tElMuc','populateSourceResourceBalloon','streaming','interactionId','setFeedItemRenderingStrategy','scrollToSuggestion','_promiseQueue','isLoading','stopInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_getLoadingMessage','addFeedItemUserMessage','setContextItemLoading','forEach','removeFeedInteraction','addFeedInteractionHeader','setIsUploadInProgress','_getInputPlaceholder','last','clearPendingContextUI','AI_CHAT_WELCOME_MESSAGE','ai.availableReplyActions','length','removeContextItem','destroy','_animateConversationTitle','14724XVhdyT','conversation-start','isMaximized','88jMWlUF','config','chat','setLoadingMessage','view','feedItemRenderingStrategy','insertSuggestion','updateWebSources','_view','toggleSuggestionDisplayMode','ai-reply','resetMessageInput','setAddContextOptions','updateFeedInteractionHeader','updateSuggestionPartState','closeSourceResourceBalloon','setInputPlaceholder','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','values','delegate','remove','addFeedItemAIReply','startAutoScroll','disableModelSelector','setConversationContext','updateFeedItemAIReplyContent','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','clear','1516419ivXSak','interaction-header','set','startInteraction','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markFeedItemAsDone','5189268qmledL','isModelAvailable','isWebSearchEnabled','userMessage','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isReasoningEnabled','trackChanges','scrollFeedToSuggestion','</p>','children','label','has','isTrackChangesOn','showDiff','addFeedItemError','user-message','addTab','pluginName','chatHeader','quickActionData','showResizeButton','capabilities','value','isDone','displayedPrompt','AI_CHAT_HEADING','updateFeedItemAIReplySuggestionPartState','isPremiumPlugin','isDisabled','queueEmptyPromise','stopAutoScroll','bind','TrackChanges','setReasoning','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','commands','<p>','setSelectedModel','setWebSearch','resetConversationTitle','addFeedItemStaticMessage','updateCapabilities','655TWpgtL','locale','focusPromptInput','contextItems','options','isPending','setModelList','121155ZwzXEz','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','addFeedItemAISuggestion','find','markItemAsDone','setModel','filter','disableControls','enableModelSelector','chatFeed','createConversation','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','chatControls','plugins','addItem','finishInteraction','3293900Hltciv','AIChatUI','isOfficialPlugin','availableModels','error-message','removeItem','updateFeedItemAIReplySuggestionContent','_isTrackChangesCommandValueBound','AITabs','renderingStrategy','toggleLoadingSkeleton','ai-suggestion-reply','updateResourceState','168881kokTMx','setConversationTitle','ai.chat.models.modelSelectorAlwaysVisible','requires','updateReplyItem','startsWith','ai.chat.context.searchInputVisibleFrom','6OJkqeC','get','context','8OoTzSP','enableControls','isBusy','clearConversationContextUI','then','updateSuggestionItem','from','enqueue','_titleAnimationInterval','getItemIds','abort','setIsMaximized','updateFeedItemAIReplySources','addContextItem'];_0x5258=function(){return _0x5f3b38;};return _0x5258();}(function(_0x1a7ab7,_0x452ffd){const _0x31d71a=_0x505e,_0x3bfb4a=_0x1a7ab7();while(!![]){try{const _0x196694=-parseInt(_0x31d71a(0x185))/0x1*(parseInt(_0x31d71a(0x18c))/0x2)+parseInt(_0x31d71a(0x167))/0x3+parseInt(_0x31d71a(0x1b9))/0x4*(-parseInt(_0x31d71a(0x160))/0x5)+-parseInt(_0x31d71a(0x19f))/0x6+-parseInt(_0x31d71a(0x136))/0x7+-parseInt(_0x31d71a(0x18f))/0x8*(-parseInt(_0x31d71a(0x130))/0x9)+parseInt(_0x31d71a(0x178))/0xa*(parseInt(_0x31d71a(0x1bc))/0xb);if(_0x196694===_0x452ffd)break;else _0x3bfb4a['push'](_0x3bfb4a['shift']());}catch(_0x12ada4){_0x3bfb4a['push'](_0x3bfb4a['shift']());}}}(_0x5258,0x60629));import{ContextPlugin as _0x25ff34}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x52e168}from'ckeditor5/src/utils.js';import{AIChatView as _0x49cec3}from'./ui/aichatview.js';import{AITabs as _0x5265e0}from'../aitabs/aitabs.js';import{getTranslation as _0x45c9d6}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x22c53c}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1530dc}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2949d2}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4d811d}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x334a5a}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1011f5}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x25ff34{static get[_0x20bb56(0x188)](){return[_0x5265e0];}[_0x20bb56(0x1c4)];static get[_0x20bb56(0x147)](){const _0x3626b2=_0x20bb56;return _0x3626b2(0x179);}static get[_0x20bb56(0x17a)](){return!0x0;}static get[_0x20bb56(0x151)](){return!0x0;}[_0x20bb56(0x1c1)]=_0x20bb56(0x1a1);[_0x20bb56(0x143)]=!0x0;[_0x20bb56(0x1a5)];[_0x20bb56(0x19d)];[_0x20bb56(0x197)]=void 0x0;[_0x20bb56(0x17f)]=!0x1;constructor(_0x4242ee){const _0x4fb6f1=_0x20bb56;super(_0x4242ee);const _0xb6479c=this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x175)][_0x4fb6f1(0x18d)](_0x4fb6f1(0x180));this[_0x4fb6f1(0x132)](_0x4fb6f1(0x191),!0x1),this[_0x4fb6f1(0x1a5)]=new _0x2949d2(),this[_0x4fb6f1(0x1c4)]=new _0x49cec3(this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x161)],{'showResizeButton':_0xb6479c[_0x4fb6f1(0x14a)],'contextResourcesSearchInputVisibleFrom':this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x1bd)][_0x4fb6f1(0x18d)](_0x4fb6f1(0x18b))}),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x1cf)](..._0x4d811d)['to'](this),this[_0x4fb6f1(0x1c4)]['on'](_0x4fb6f1(0x1c5),(_0x48135f,{showDiff:_0x664736})=>{const _0x177666=_0x4fb6f1;this[_0x177666(0x143)]=_0x664736;}),_0xb6479c[_0x4fb6f1(0x1c0)][_0x4fb6f1(0x146)]({'id':_0x4fb6f1(0x1be),'buttonLabel':_0x45c9d6(this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x161)],_0x4fb6f1(0x14f)),'buttonIcon':_0x22c53c,'order':0x0,'content':this[_0x4fb6f1(0x1c4)]}),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x174)][_0x4fb6f1(0x155)](_0x4fb6f1(0x1a6))['to'](this,_0x4fb6f1(0x191),_0x344481=>_0x344481),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x171)][_0x4fb6f1(0x155)](_0x4fb6f1(0x165))['to'](this,_0x4fb6f1(0x191),_0x3278a0=>_0x3278a0),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x174)][_0x4fb6f1(0x1cc)](this[_0x4fb6f1(0x1b0)]()),this[_0x4fb6f1(0x155)](_0x4fb6f1(0x137))['to'](this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x174)],_0x4fb6f1(0x137));}[_0x20bb56(0x1b7)](){const _0x3eb909=_0x20bb56;super[_0x3eb909(0x1b7)](),this[_0x3eb909(0x197)]&&clearInterval(this[_0x3eb909(0x197)]);}[_0x20bb56(0x172)](_0x1812a0){const _0x1fc1ee=_0x20bb56;this[_0x1fc1ee(0x1c4)][_0x1fc1ee(0x171)][_0x1fc1ee(0x12f)](),this[_0x1fc1ee(0x1c4)][_0x1fc1ee(0x174)][_0x1fc1ee(0x170)](),this[_0x1fc1ee(0x1c4)][_0x1fc1ee(0x174)][_0x1fc1ee(0x166)](_0x1812a0[_0x1fc1ee(0x17b)],!this[_0x1fc1ee(0x18e)][_0x1fc1ee(0x1bd)][_0x1fc1ee(0x18d)](_0x1fc1ee(0x187))),this[_0x1fc1ee(0x15e)]({'id':_0x1fc1ee(0x1ba),'staticMessage':_0x45c9d6(this[_0x1fc1ee(0x18e)][_0x1fc1ee(0x161)],_0x1fc1ee(0x1b3))});}[_0x20bb56(0x15e)]({id:_0x433e3e,staticMessage:_0x892ec5}){const _0x1e8de6=_0x20bb56;this[_0x1e8de6(0x1c4)][_0x1e8de6(0x171)][_0x1e8de6(0x176)](_0x1e8de6(0x1c6),{'id':_0x433e3e,'initialContent':_0x1e8de6(0x15a)+_0x892ec5+_0x1e8de6(0x13e)});}[_0x20bb56(0x1aa)](_0x94e623){const _0x281fe0=_0x20bb56,_0x262eb2=_0x94e623[_0x281fe0(0x149)]?.[_0x281fe0(0x14e)]||_0x94e623[_0x281fe0(0x139)];this[_0x281fe0(0x1c4)][_0x281fe0(0x171)][_0x281fe0(0x176)](_0x281fe0(0x145),{'contextItems':Array[_0x281fe0(0x195)](_0x94e623[_0x281fe0(0x163)][_0x281fe0(0x1ce)]()),'initialContent':_0x281fe0(0x15a)+_0x262eb2+_0x281fe0(0x13e),'id':_0x94e623['id']});}[_0x20bb56(0x144)]({errorMessage:_0xfeba6d,id:_0x251383}){const _0x163a22=_0x20bb56;this[_0x163a22(0x1c4)][_0x163a22(0x171)][_0x163a22(0x176)](_0x163a22(0x17c),{'initialContent':_0x163a22(0x15a)+_0xfeba6d+_0x163a22(0x13e),'id':_0x251383});}[_0x20bb56(0x1d1)](_0x468de0){const _0x104b31=_0x20bb56;return this[_0x104b31(0x1a5)][_0x104b31(0x196)](async()=>{const _0x137744=_0x104b31;this[_0x137744(0x1c4)][_0x137744(0x171)][_0x137744(0x176)](_0x137744(0x1c6),{'id':_0x468de0[_0x137744(0x1a2)]+':'+_0x468de0['id']}),this[_0x137744(0x1bf)](null);});}async[_0x20bb56(0x16a)](_0x327d48){const _0x17c5ae=_0x20bb56,_0xb05434=_0x334a5a(this[_0x17c5ae(0x18e)]);let _0x877f21=_0xb05434[_0x17c5ae(0x1bd)][_0x17c5ae(0x18d)](_0x17c5ae(0x1b4))||[..._0x1011f5];if(_0xb05434[_0x17c5ae(0x175)][_0x17c5ae(0x141)](_0x17c5ae(0x156))){if(!this[_0x17c5ae(0x17f)]){this[_0x17c5ae(0x17f)]=!0x0;const _0xb8fd49=_0xb05434[_0x17c5ae(0x159)][_0x17c5ae(0x18d)](_0x17c5ae(0x13c));this[_0x17c5ae(0x1c4)][_0x17c5ae(0x171)][_0x17c5ae(0x155)](_0x17c5ae(0x142))['to'](_0xb8fd49,_0x17c5ae(0x14c));}}else _0x877f21=_0x877f21[_0x17c5ae(0x16e)](_0x553ad4=>_0x17c5ae(0x1c2)!=_0x553ad4);return this[_0x17c5ae(0x1a5)][_0x17c5ae(0x196)](async()=>{const _0x4467fb=_0x17c5ae;this[_0x4467fb(0x1c4)][_0x4467fb(0x171)][_0x4467fb(0x176)](_0x4467fb(0x183),{'id':_0x327d48[_0x4467fb(0x1a2)]+':'+_0x327d48['id'],'areActionsDisabled':_0x327d48[_0x4467fb(0x19e)],'showDiff':this[_0x4467fb(0x143)],'availableActions':_0x877f21}),this[_0x4467fb(0x1bf)](null);});}[_0x20bb56(0x1ae)](_0x8f22df,_0x290588){const _0x35fb6b=_0x20bb56,_0x2907bb=this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x13f)][_0x35fb6b(0x1b1)];if(_0x2907bb instanceof _0x1530dc)return this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x13f)][_0x35fb6b(0x1d0)](_0x2907bb),void this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x176)](_0x35fb6b(0x131),{'id':_0x8f22df['id'],'capabilities':{'isWebSearchEnabled':_0x2907bb[_0x35fb6b(0x14b)][_0x35fb6b(0x138)]||_0x290588[_0x35fb6b(0x138)],'isReasoningEnabled':_0x2907bb[_0x35fb6b(0x14b)][_0x35fb6b(0x13b)]||_0x290588[_0x35fb6b(0x13b)]}});this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x176)](_0x35fb6b(0x131),{'id':_0x8f22df['id'],'capabilities':_0x290588});}[_0x20bb56(0x1c9)](_0x3981d3){const _0x535cb6=_0x20bb56,_0x57063c=this[_0x535cb6(0x1c4)][_0x535cb6(0x171)][_0x535cb6(0x13f)][_0x535cb6(0x16b)](_0x512ac1=>_0x512ac1[_0x535cb6(0x164)]['id']==_0x3981d3['id']&&_0x512ac1 instanceof _0x1530dc);_0x57063c&&_0x57063c[_0x535cb6(0x132)](_0x535cb6(0x168),_0x3981d3[_0x535cb6(0x168)]);}async[_0x20bb56(0x1d5)](_0x46da36){const _0x5128e8=_0x20bb56,_0x697156=_0x46da36[_0x5128e8(0x181)]||this[_0x5128e8(0x1c1)];return this[_0x5128e8(0x1a5)][_0x5128e8(0x196)](async _0x5c0420=>{const _0x8fbf4=_0x5128e8;await this[_0x8fbf4(0x1c4)][_0x8fbf4(0x171)][_0x8fbf4(0x189)]({..._0x46da36,'abortSignal':_0x5c0420,'renderingStrategy':_0x697156}),_0x46da36[_0x8fbf4(0x14d)]&&this[_0x8fbf4(0x135)](_0x46da36['id']);});}[_0x20bb56(0x19b)](_0x5749c8,_0x28620d){const _0x28ac0f=_0x20bb56;this[_0x28ac0f(0x1c4)][_0x28ac0f(0x171)][_0x28ac0f(0x1c3)](_0x5749c8,_0x28620d);}async[_0x20bb56(0x17e)](_0x5b434f){const _0x33e2b7=_0x20bb56,_0x491746=_0x5b434f[_0x33e2b7(0x181)]||this[_0x33e2b7(0x1c1)];return this[_0x33e2b7(0x1a5)][_0x33e2b7(0x196)](async _0x3cfd4d=>{const _0x146473=_0x33e2b7;await this[_0x146473(0x1c4)][_0x146473(0x171)][_0x146473(0x194)]({..._0x5b434f,'abortSignal':_0x3cfd4d,'renderingStrategy':_0x491746}),_0x5b434f[_0x146473(0x14d)]&&this[_0x146473(0x135)](_0x5b434f['id']);});}[_0x20bb56(0x150)](_0x45e0db){const _0x51e2c2=_0x20bb56;this[_0x51e2c2(0x1c4)][_0x51e2c2(0x171)][_0x51e2c2(0x1ca)](_0x45e0db);}[_0x20bb56(0x135)](_0x142f72){const _0x126656=_0x20bb56;this[_0x126656(0x1c4)][_0x126656(0x171)][_0x126656(0x16c)](_0x142f72);}[_0x20bb56(0x1ad)](_0x422bc0){const _0x39c38b=_0x20bb56;this[_0x39c38b(0x1c4)][_0x39c38b(0x171)][_0x39c38b(0x198)]()[_0x39c38b(0x16e)](_0x47d875=>_0x47d875[_0x39c38b(0x18a)](_0x422bc0))[_0x39c38b(0x1ac)](_0x2cd652=>this[_0x39c38b(0x1c4)][_0x39c38b(0x171)][_0x39c38b(0x17d)](_0x2cd652));}[_0x20bb56(0x133)](){const _0x5d5a38=_0x20bb56;this[_0x5d5a38(0x1bf)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x5d5a38(0x1c4)][_0x5d5a38(0x174)][_0x5d5a38(0x1d3)](!this[_0x5d5a38(0x18e)][_0x5d5a38(0x1bd)][_0x5d5a38(0x18d)](_0x5d5a38(0x187))),this[_0x5d5a38(0x191)]=!0x0,this[_0x5d5a38(0x1c4)][_0x5d5a38(0x171)][_0x5d5a38(0x1d2)]();}[_0x20bb56(0x1a7)](_0x41c39d){const _0x4eac0e=_0x20bb56;this[_0x4eac0e(0x1a5)][_0x4eac0e(0x199)](),this[_0x4eac0e(0x1c4)][_0x4eac0e(0x171)][_0x4eac0e(0x198)]()[_0x4eac0e(0x16e)](_0x32b9c8=>_0x32b9c8[_0x4eac0e(0x18a)](_0x41c39d['id']))[_0x4eac0e(0x1ac)](_0x41b1be=>this[_0x4eac0e(0x135)](_0x41b1be)),this[_0x4eac0e(0x191)]=!0x1,this[_0x4eac0e(0x1c4)][_0x4eac0e(0x171)][_0x4eac0e(0x154)]();}async[_0x20bb56(0x177)](){const _0x2ce2eb=_0x20bb56;return this[_0x2ce2eb(0x1a5)][_0x2ce2eb(0x153)][_0x2ce2eb(0x193)](()=>{const _0x4ca036=_0x2ce2eb;this[_0x4ca036(0x191)]=!0x1,this[_0x4ca036(0x1c4)][_0x4ca036(0x171)][_0x4ca036(0x154)]();});}[_0x20bb56(0x19c)](_0x4ca866,_0x26a2db){const _0x342c18=_0x20bb56;this[_0x342c18(0x1c4)][_0x342c18(0x174)][_0x342c18(0x19c)](_0x4ca866,_0x26a2db);}[_0x20bb56(0x1b6)](_0x1b4ebb){const _0x5ce19f=_0x20bb56;this[_0x5ce19f(0x1c4)][_0x5ce19f(0x174)][_0x5ce19f(0x1b6)](_0x1b4ebb);}[_0x20bb56(0x1ab)](_0x58f8af,_0x495bc2){const _0x190860=_0x20bb56;this[_0x190860(0x1c4)][_0x190860(0x174)][_0x190860(0x1ab)](_0x58f8af,_0x495bc2);}[_0x20bb56(0x1af)](_0x3a97a3){const _0x1adf57=_0x20bb56;this[_0x1adf57(0x1c4)][_0x1adf57(0x174)][_0x1adf57(0x1af)](_0x3a97a3);}[_0x20bb56(0x1d4)](_0x54da62){const _0x392add=_0x20bb56;this[_0x392add(0x1c4)][_0x392add(0x174)][_0x392add(0x1d4)](_0x54da62);}[_0x20bb56(0x1b2)](){const _0x826b6b=_0x20bb56;this[_0x826b6b(0x1c4)][_0x826b6b(0x174)][_0x826b6b(0x1b2)]();}[_0x20bb56(0x192)](){const _0xaf8c20=_0x20bb56;this[_0xaf8c20(0x1c4)][_0xaf8c20(0x174)][_0xaf8c20(0x192)]();}[_0x20bb56(0x184)](_0x2374ae,_0x555357,_0x2f4d04){const _0x38b663=_0x20bb56;this[_0x38b663(0x1c4)][_0x38b663(0x174)][_0x38b663(0x184)](_0x2374ae,_0x555357,_0x2f4d04);}[_0x20bb56(0x1c7)](){const _0x4a6e55=_0x20bb56;this[_0x4a6e55(0x1c4)][_0x4a6e55(0x174)][_0x4a6e55(0x1c7)](),this[_0x4a6e55(0x1c4)][_0x4a6e55(0x174)][_0x4a6e55(0x1cc)](this[_0x4a6e55(0x1b0)]());}[_0x20bb56(0x1c8)](_0x12a690){const _0x5d063d=_0x20bb56;this[_0x5d063d(0x1c4)][_0x5d063d(0x174)][_0x5d063d(0x1c8)](_0x12a690);}[_0x20bb56(0x15f)](_0x36d572){const _0x70a8c1=_0x20bb56;this[_0x70a8c1(0x1c4)][_0x70a8c1(0x174)][_0x70a8c1(0x15c)](_0x36d572[_0x70a8c1(0x138)]),this[_0x70a8c1(0x1c4)][_0x70a8c1(0x174)][_0x70a8c1(0x157)](_0x36d572[_0x70a8c1(0x13b)]),this[_0x70a8c1(0x1c4)][_0x70a8c1(0x174)][_0x70a8c1(0x1cc)](this[_0x70a8c1(0x1b0)](_0x36d572));}[_0x20bb56(0x15b)](_0x4ac1a3,_0x1e8262){const _0x411d67=_0x20bb56;this[_0x411d67(0x1c4)][_0x411d67(0x174)][_0x411d67(0x16d)](_0x4ac1a3),_0x1e8262&&this[_0x411d67(0x1c4)][_0x411d67(0x174)][_0x411d67(0x1d3)](!0x1);}[_0x20bb56(0x1a3)](_0x1016a3){const _0x3b346d=_0x20bb56;this[_0x3b346d(0x1c1)]=_0x1016a3;}[_0x20bb56(0x182)](_0x5dbf77){const _0x54e18d=_0x20bb56;this[_0x54e18d(0x1c4)][_0x54e18d(0x171)][_0x54e18d(0x182)](_0x5dbf77);}[_0x20bb56(0x15d)](){const _0x2cb1d7=_0x20bb56;this[_0x2cb1d7(0x186)](_0x45c9d6(this[_0x2cb1d7(0x18e)][_0x2cb1d7(0x161)],_0x2cb1d7(0x14f)));}[_0x20bb56(0x186)](_0x443160,_0x5596a9=!0x1){const _0x596544=_0x20bb56;if(_0x5596a9&&!_0x52e168()&&_0x443160[_0x596544(0x1b5)])return this[_0x596544(0x1c4)][_0x596544(0x148)][_0x596544(0x140)]='',void this[_0x596544(0x1b8)](_0x443160);this[_0x596544(0x1c4)][_0x596544(0x148)][_0x596544(0x140)]=_0x443160;}[_0x20bb56(0x1bf)](_0x38aa60){const _0x1fc7f3=_0x20bb56,_0x2707d2=this[_0x1fc7f3(0x1a9)](_0x38aa60);this[_0x1fc7f3(0x1c4)][_0x1fc7f3(0x171)][_0x1fc7f3(0x1bf)](_0x2707d2);}[_0x20bb56(0x1b8)](_0xe309a6){const _0x1d52c0=_0x20bb56;let _0x461e03=0x0;clearInterval(this[_0x1d52c0(0x197)]),this[_0x1d52c0(0x197)]=setInterval(()=>{const _0x13a8c6=_0x1d52c0;this[_0x13a8c6(0x1c4)][_0x13a8c6(0x148)][_0x13a8c6(0x140)]=this[_0x13a8c6(0x1c4)][_0x13a8c6(0x148)][_0x13a8c6(0x140)]+_0xe309a6[_0x461e03],_0x461e03++,_0x461e03===_0xe309a6[_0x13a8c6(0x1b5)]&&clearInterval(this[_0x13a8c6(0x197)]);},0x1e);}[_0x20bb56(0x19a)](_0xd4fbaf){const _0x4103ac=_0x20bb56;this[_0x4103ac(0x1c4)][_0x4103ac(0x148)][_0x4103ac(0x1bb)]=_0xd4fbaf;}[_0x20bb56(0x1a9)](_0x515e9d){const _0x19fb40=_0x20bb56;return _0x515e9d?_0x515e9d[_0x19fb40(0x138)]&&_0x515e9d[_0x19fb40(0x13b)]?_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x12e)):_0x515e9d[_0x19fb40(0x138)]?_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x134)):_0x515e9d[_0x19fb40(0x13b)]?_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x1a8)):_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x13a)):'';}[_0x20bb56(0x1b0)](_0x2b72c8){const _0x4d8362=_0x20bb56;return _0x2b72c8?_0x2b72c8[_0x4d8362(0x138)]&&_0x2b72c8[_0x4d8362(0x13b)]?_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x169)):_0x2b72c8[_0x4d8362(0x138)]?_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x1cd)):_0x2b72c8[_0x4d8362(0x13b)]?_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x158)):_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x173)):_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x173));}[_0x20bb56(0x1a0)](_0xcdd90,_0x168cdc,_0x1cd633,_0x244b32){const _0x11c6aa=_0x20bb56;this[_0x11c6aa(0x1c4)][_0x11c6aa(0x1a0)](_0xcdd90,_0x168cdc,_0x1cd633,_0x244b32);}[_0x20bb56(0x1cb)](_0x27d383){const _0x218861=_0x20bb56;this[_0x218861(0x1c4)][_0x218861(0x1cb)](_0x27d383);}[_0x20bb56(0x162)](){const _0x2785f2=_0x20bb56;this[_0x2785f2(0x1c4)][_0x2785f2(0x174)][_0x2785f2(0x162)]();}[_0x20bb56(0x13d)](_0x5a147a,_0x4689b4){const _0x3490a3=_0x20bb56;this[_0x3490a3(0x1c4)][_0x3490a3(0x171)][_0x3490a3(0x1a4)](_0x5a147a,_0x4689b4);}[_0x20bb56(0x1d2)](){const _0xda573=_0x20bb56;this[_0xda573(0x1c4)][_0xda573(0x171)][_0xda573(0x1d2)]();}[_0x20bb56(0x16f)](){const _0x16fe8d=_0x20bb56;this[_0x16fe8d(0x1c4)][_0x16fe8d(0x174)][_0x16fe8d(0x152)]=!0x0;}[_0x20bb56(0x190)](){const _0x1043a1=_0x20bb56;this[_0x1043a1(0x1c4)][_0x1043a1(0x174)][_0x1043a1(0x152)]=!0x1;}}
|