@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x112432=_0x3506;function _0x3506(_0x4d6de8,_0x552995){const _0x4564d1=_0x4564();return _0x3506=function(_0x350619,_0x318153){_0x350619=_0x350619-0xd3;let _0x2c2232=_0x4564d1[_0x350619];return _0x2c2232;},_0x3506(_0x4d6de8,_0x552995);}(function(_0x4388ff,_0x456f56){const _0x517995=_0x3506,_0x107edf=_0x4388ff();while(!![]){try{const _0x3ef10c=-parseInt(_0x517995(0x109))/0x1+-parseInt(_0x517995(0xf1))/0x2*(-parseInt(_0x517995(0x105))/0x3)+-parseInt(_0x517995(0xdb))/0x4+-parseInt(_0x517995(0xe0))/0x5+parseInt(_0x517995(0xd5))/0x6+-parseInt(_0x517995(0xf4))/0x7*(-parseInt(_0x517995(0xec))/0x8)+parseInt(_0x517995(0xe8))/0x9;if(_0x3ef10c===_0x456f56)break;else _0x107edf['push'](_0x107edf['shift']());}catch(_0x52a3d3){_0x107edf['push'](_0x107edf['shift']());}}}(_0x4564,0x537a5));import{Plugin as _0x5df656}from'ckeditor5/src/core.js';import{AIBalloon as _0x3edd7a}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x48d540}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x216dd0}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x26263c}from'../aicore/utils/eventnames.js';function _0x4564(){const _0x3b3fc8=['once','TrackChanges','open','2803055PlxZqk','toggleRotatorButtonsVisibility','requires','areActionsDisabled','close','locale','get','_restoreDefaultViewFocus','229626pqANJf','showRotator','isOfficialPlugin','view','8IGCCvZ','plugins','_chatBalloonView','focus','headerView','24974edXVgi','showDiff','delegate','1672958iMnZaS','pluginName','ck-ai-chat-balloon','filter','AIChatBalloon','commands','rejectSuggestion','showPrevious','updateContent','bind','_createChatBalloonView','insertSuggestion','isPremiumPlugin','children','remove','dialogClosed','_toggleRotatorButtonsInDialogHeader','141iFeChz','AIBalloon','togglePartToolbarEnabled','isTrackChangesOn','115294NYVGbJ','beforeDialogClosed','set','render','nextButtonView','value','has','addMany','setState','aiChatBalloon','config','trackChanges','2678514AIsFTF','Dialog','previousButtonView','showNext','ai.availableReplyActions','editor','1119944NhEAWP','applySuggestion'];_0x4564=function(){return _0x3b3fc8;};return _0x4564();}import{Dialog as _0x4fa0c3}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x5df656{static get[_0x112432(0xe2)](){return[_0x4fa0c3,_0x3edd7a];}static get[_0x112432(0xf5)](){const _0x3482d8=_0x112432;return _0x3482d8(0xf8);}static get[_0x112432(0xea)](){return!0x0;}static get[_0x112432(0x100)](){return!0x0;}[_0x112432(0xee)];constructor(_0x992453){const _0x493fed=_0x112432;super(_0x992453),this[_0x493fed(0x10b)](_0x493fed(0xf2),!0x1);}[_0x112432(0xdf)](_0x15a9c){const _0x41248b=_0x112432,_0xb0aaf1=this[_0x41248b(0xda)];this[_0x41248b(0xee)]||(this[_0x41248b(0xee)]=this[_0x41248b(0xfe)]()),_0xb0aaf1[_0x41248b(0xed)][_0x41248b(0xe6)](_0x41248b(0x106))[_0x41248b(0xdf)]({..._0x15a9c,'id':_0x41248b(0x112),'class':_0x41248b(0xf6),'mainView':this[_0x41248b(0xee)]}),this[_0x41248b(0x104)](_0x15a9c[_0x41248b(0xe9)]),this[_0x41248b(0xee)][_0x41248b(0x107)](!_0x15a9c[_0x41248b(0xe3)]),this[_0x41248b(0xe7)]();}[_0x112432(0xe4)](){const _0xa49998=_0x112432;this[_0xa49998(0xda)][_0xa49998(0xed)][_0xa49998(0xe6)](_0xa49998(0x106))[_0xa49998(0xe4)]();}[_0x112432(0xfc)](_0x1b3332){const _0x5472c1=_0x112432;return this[_0x5472c1(0xee)]||(this[_0x5472c1(0xee)]=this[_0x5472c1(0xfe)]()),this[_0x5472c1(0xee)][_0x5472c1(0xfc)](_0x1b3332);}[_0x112432(0x111)](_0x4ac987){const _0x49ddb4=_0x112432;this[_0x49ddb4(0xee)]&&this[_0x49ddb4(0xee)][_0x49ddb4(0x111)](_0x4ac987);}[_0x112432(0xfe)](){const _0xa10466=_0x112432,_0x10f825=this[_0xa10466(0xda)],_0x2da645=_0x10f825[_0xa10466(0xed)][_0xa10466(0xe6)](_0xa10466(0x106)),_0x549a04=_0x10f825[_0xa10466(0xf9)][_0xa10466(0xe6)](_0xa10466(0xd4));let _0xda0b4=_0x10f825[_0xa10466(0xd3)][_0xa10466(0xe6)](_0xa10466(0xd9))||[..._0x48d540];_0x10f825[_0xa10466(0xed)][_0xa10466(0x10f)](_0xa10466(0xde))||(_0xda0b4=_0xda0b4[_0xa10466(0xf7)](_0xa7b2cc=>_0xa10466(0xff)!=_0xa7b2cc));const _0x64878=new _0x216dd0(_0x10f825[_0xa10466(0xe5)],{'availableActions':_0xda0b4,'showApplyButton':!0x0,'showSuggestButton':!!_0x549a04});return _0x64878[_0xa10466(0xfd)](_0xa10466(0xf2))['to'](this),_0x64878[_0xa10466(0xf3)](..._0x26263c)['to'](this),_0x64878[_0xa10466(0xf3)](_0xa10466(0xfb),_0xa10466(0xd8))['to'](this),_0x2da645[_0xa10466(0xf3)](_0xa10466(0x103))['to'](this),_0x64878['on'](_0xa10466(0xdc),this[_0xa10466(0xe7)][_0xa10466(0xfd)](this)),_0x64878['on'](_0xa10466(0xff),this[_0xa10466(0xe7)][_0xa10466(0xfd)](this)),_0x64878['on'](_0xa10466(0xfa),this[_0xa10466(0xe7)][_0xa10466(0xfd)](this)),_0x549a04&&_0x64878[_0xa10466(0xfd)](_0xa10466(0x108))['to'](_0x549a04,_0xa10466(0x10e)),_0x64878[_0xa10466(0x10c)](),_0x64878;}[_0x112432(0x104)](_0x4ae4b2){const _0x56794c=_0x112432,_0x11530e=this[_0x56794c(0xda)],_0x4f0132=_0x11530e[_0x56794c(0xed)][_0x56794c(0xe6)](_0x56794c(0xd6))[_0x56794c(0xeb)][_0x56794c(0xf0)][_0x56794c(0x101)];this[_0x56794c(0xee)][_0x56794c(0xe1)](_0x4ae4b2),_0x4f0132[_0x56794c(0x10f)](this[_0x56794c(0xee)][_0x56794c(0xd7)])||(_0x4f0132[_0x56794c(0x110)]([this[_0x56794c(0xee)][_0x56794c(0xd7)],this[_0x56794c(0xee)][_0x56794c(0x10d)]],0x0),_0x11530e[_0x56794c(0xed)][_0x56794c(0xe6)](_0x56794c(0x106))[_0x56794c(0xdd)](_0x56794c(0x10a),()=>{const _0x1106e5=_0x56794c;_0x4f0132[_0x1106e5(0x102)](this[_0x1106e5(0xee)][_0x1106e5(0xd7)]),_0x4f0132[_0x1106e5(0x102)](this[_0x1106e5(0xee)][_0x1106e5(0x10d)]);}));}[_0x112432(0xe7)](){const _0x259669=_0x112432;this[_0x259669(0xee)][_0x259669(0xef)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51392f=_0x3631;(function(_0x28a667,_0x592385){const _0x13632b=_0x3631,_0x13da3b=_0x28a667();while(!![]){try{const _0x591ca1=-parseInt(_0x13632b(0x1f0))/0x1+parseInt(_0x13632b(0x1a9))/0x2*(parseInt(_0x13632b(0x255))/0x3)+-parseInt(_0x13632b(0x297))/0x4+parseInt(_0x13632b(0x1dc))/0x5*(parseInt(_0x13632b(0x1bd))/0x6)+-parseInt(_0x13632b(0x169))/0x7+parseInt(_0x13632b(0x21b))/0x8*(parseInt(_0x13632b(0x228))/0x9)+parseInt(_0x13632b(0x237))/0xa*(parseInt(_0x13632b(0x2ac))/0xb);if(_0x591ca1===_0x592385)break;else _0x13da3b['push'](_0x13da3b['shift']());}catch(_0x152fa3){_0x13da3b['push'](_0x13da3b['shift']());}}}(_0x58b8,0xb9121));import{ContextPlugin as _0x5922a8,Editor as _0x5e54a1}from'ckeditor5/src/core.js';import{BodyCollection as _0x2f6ff1}from'ckeditor5/src/ui.js';import{CKEditorError as _0x2bbafa,logError as _0x640bca,scrollViewportToShowTarget as _0x494017,uid as _0x1837bf}from'ckeditor5/src/utils.js';import{AIConnector as _0xa394c}from'../aicore/aiconnector.js';import{AITabs as _0x39f63c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5c1c02}from'./model/aichatconversation.js';import{getTranslation as _0x534e0f}from'../aicore/utils/common-translations.js';function _0x3631(_0x1809e3,_0x1f4ef4){const _0x58b8ad=_0x58b8();return _0x3631=function(_0x363138,_0x3bc37e){_0x363138=_0x363138-0x161;let _0x2fafaf=_0x58b8ad[_0x363138];return _0x2fafaf;},_0x3631(_0x1809e3,_0x1f4ef4);}function _0x58b8(){const _0x47f128=['setConversationTitle','outdated','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','startInteraction','enableControls','hasChanges','document','_showConversationHistory','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','log','reasoningStarted','streaming','areActionsDisabled','getFirstRange','clearPendingContextUI','config','_logError','addDocumentToContext','rootName','_handleUIUserMessage','domConverter','_flushLastInteractionUI','_stopLastInteraction','ai-chat-missing-channel-id','push','isModelAvailable','disableControls','init','createPositionFromPath','setIsUploadInProgress','updateFeedItemAIReplySources','_integrateEditor','sources','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','state','ai-chat-controller-no-active-conversation','accepted','data-id','uiId','ai-chat-conversation-not-found','handleUserInteraction','populateSourceResourceBalloon','setFeedItemAIReplySuggestionPartActive','getChild','toggleReasoning','contextItemAdded','isInContext','addSelectionToChatContext','done','addFeedItemStaticMessage','_aiEditing','addOperation','getChildAtOffset','has','3330000JhjtdM','updateContent','addResourceToContext','ai.chat.context','replyId','insertSuggestion','ai.chat.initialConversation','_handleStartConversation','contextItems','_openBalloonFor','isCurrentDocumentInContext','_updateRatings','isStarted','removeFeedInteraction','_currentPreviewedChangeGroup','scrollFeedToSuggestion','conversationInitialized','_startConversationSafely','resizedTabs','nextSibling','ready','99vxEspc','resetReasoningState','addFeedItemError','updateResourceState','AI_CHAT_UNABLE_TO_START_CONVERSATION','start','lastCreated','showDiff','updateConversationTitle','ai-request-aborted','upsertAIChatRating','addFeedInteractionHeader','_getPresentableSiblingContentPartIndex','ai-chat-source-resources-load-failed','_aiConnector','end','interactionStarted','_rejectSuggestion','Undo','from','interactionDestroyed','editing','setContextItemLoading','AI_CHAT_CONTEXT_INVALID_DATA','contextItemRemoved','updateCapabilities','createRange','alignToTop','messageId','AIEditing','createReply','marker','getContentParts','addContextItem','removeSelectionFromContext','isUploadInProgress','ai-chat-conversation-start-failed','version','forEach','AITabs','startConversation','batch','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','mouseLeaveSuggestion','index','resourceStateChanged','setIsMaximized','previous','showNext','collaboration.channelId','AI_CHAT_UNTITLED_CONVERSATION','_registerToolDataCallback','undo','addFileToContext','root','query','setFeedItemRenderingStrategy','aiChatBalloon','abortPromptStream','contextSent','applySuggestion','ai-chat-context-unsupported-file-type','getConversations','applyOperation','ai-chat-file-upload-failed','TrackChangesEditing','listenTo','delete','commands','_removeFromContext','addFeedItemAIReply','maxOffset','ai-chat-context-form-data-size-limits-exceeded','documentContextContent','8934891alysNc','getReply','close','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplySuggestionPartState','getGroupId','ai-chat-invalid-request','createdAt','getDocumentContext','dialogClosed','pluginName','loadConversation','ai-chat-context-invalid-data','modification','_scrollToSuggestionRange','setSelectedModel','hideFakeVisualSelection','length','set','replyChangeGroupStateUpdated','getRanges','toString','getRoot','load','getInteractionAndReplyById','get','node','TrackChanges','setLoadingMessage','AI_BALLOON_HEADER_TITLE','options','webSearchFinished','open','getPath','isPremiumPlugin','ai-chat-controller-mouse-over','contextItem','editors','resetWebSearchState','isOfficialPlugin','replyCreated','remove','callback','stop','attachToDom','startAutoScroll','AI_CHAT_GENERIC_ERROR','ai.models.defaultModelId','createConversation','removeFromContext','includes','resizeTabs','ai-chat-context-file-too-many-pages','setChangeGroupState','setConversationContext','new','ai-chat-conversation-init-failed','partIndex','model','message','executeCustomItemCallback','addFeedItemCustomElement','_batchToChanges','data','2PLXaVX','toggleLoadingSkeleton','mouseOverSuggestion','chat','getOperations','resourceId','addCurrentDocumentToChatContext','history','selection','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','replyContentUpdated','AIChatUI','stopInteraction','lastInteraction','_getUserPresentableContentPartDocumentRange','context','ai-chat-url-upload-failed','_aiChatUi','split','_aiChatBalloon','22038OLJvjv','indexOf','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','uploadProgressChanged','range','view','selectedModel','startsWith','Showing\x20conversation\x20history...','Liked\x20response','removeContextItem','_bodyCollection','resize','sendUserMessage','_toggleWebSearch','text','handleRemovedConversation','sourceResourcesLoaded','dislike','_updateReplyContent','plugins','AIChatController','map','removed','sourceId','ai-chat-context-file-too-large','static','_aiChatModels','requires','children','interactionId','795dkCuhT','closeSourceResourceBalloon','loadSourceResources','updateCurrentDocumentInContext','getDocumentData','afterInit','type','setAddContextOptions','find','finishInteraction','rejectSuggestion','ai-chat-resource-load-failed','revert','ai.models','_toggleReasoning','updateFeedItemAIReplyContent','_aiChatBalloonShowDiff','changeGroups','prepareLoadingMessage','_getDocumentRangeForReplyChanges','320633jxMiYw','AI_CHAT_ABORTED_MESSAGE','error','next','baseVersion','contextItemLoadingEnded','viewRangeToDom','mapper','_applyOperationsAsSuggestions','getAttribute','AI_CHAT_CONTEXT_FILE_TOO_LARGE','Disliked\x20response','anchorId','changes','clearConversationContextUI','ai-conversation-','focusPromptInput','unshift','resources','_setIsMaximized','_getLastCreatedConversationId','_getAIChatInteractionAPI','getAll','toggleWebSearch','selectModel','$graveyard','addFilesToContext','removeSelectionFromChatContext','addCurrentDocumentToContext','_insertSuggestion','change','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','getTransformedByOperation','ai-chat-context-unsupported-type','fetchConversations','webSearchStarted','locale','addContextOptionsChanged','AI_CHAT_INVALID_REQUEST','parse','AIConnector','content','1391160JuEXYq','toViewRange','destroy','getInteraction','main','reasoningFinished','indexes','cloneNode','add','addSelectionToContext','bind','capabilitiesUpdated','howMany','9wruHMv','interactionFinished','currentReply','fetchConversation','showChangeInText','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateFeedItemAIReplySuggestionContent','isDocumentOperation','getDiff','like','resource','showFakeVisualSelection','isCurrentDocumentInConversation','sourcePosition','addUrlToContext','2345260eDXDCP','AIChatBalloon','source','addFeedItemAISuggestion','getConversation','interactionCreated','_createFromRanges','delegate','findIndex','DocumentCompare','detachFromDom','modelSelected','getChildren','sessionId','addFeedItemUserMessage','ai-no-track-changes','rejected','pending','isDisabled','redo','toggleSuggestionDisplayMode','getSelectionText','resetConversationTitle','current-document','uid','setState','activateTab','replies','AI_CHAT_RESOURCE_LOAD_FAILED','clearLoadingMessage','956877cDyAJh','setModel','isLoading','slice','_applySuggestion','activeConversation','sendMessage','resetMessageInput','path','createPositionAt','toolDataReceived','filter'];_0x58b8=function(){return _0x47f128;};return _0x58b8();}import{AIModels as _0x5adaeb}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x3d3109}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4a99e6,DATA_ID_MODEL_ATTRIBUTE as _0x5eb965}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x21105c,getOperationsFromReply as _0x16e85b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3c2280,getMinimalSelection as _0x9507b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x1173c7,_DetachOperation as _0x41f2fe}from'ckeditor5/src/engine.js';import{findOne as _0xd557f5,getAttribute as _0x297bf6,serialize as _0x330a70,Document as _0x35a8ec,findByAttribute as _0x1e9eb0}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x5922a8{[_0x51392f(0x293)];[_0x51392f(0x2ba)];[_0x51392f(0x1ba)];[_0x51392f(0x1d8)];[_0x51392f(0x1bc)];[_0x51392f(0x1a7)]=new Map();[_0x51392f(0x2a5)]=null;[_0x51392f(0x1c8)];static get[_0x51392f(0x1d9)](){return[_0xa394c,_0x4a99e6];}static get[_0x51392f(0x173)](){const _0x957464=_0x51392f;return _0x957464(0x1d2);}static get[_0x51392f(0x190)](){return!0x0;}static get[_0x51392f(0x18b)](){return!0x0;}[_0x51392f(0x27c)](){const _0x10d221=_0x51392f;this[_0x10d221(0x1c8)]=new _0x2f6ff1(this[_0x10d221(0x1b8)][_0x10d221(0x215)]),this[_0x10d221(0x1c8)][_0x10d221(0x195)](),this[_0x10d221(0x2ba)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x219)),this[_0x10d221(0x1ba)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x1b4)),this[_0x10d221(0x293)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x2c9)),this[_0x10d221(0x1d8)]=new _0x5adaeb({'connector':this[_0x10d221(0x2ba)],'config':this[_0x10d221(0x1b8)][_0x10d221(0x270)][_0x10d221(0x182)](_0x10d221(0x1e9)),'locale':this[_0x10d221(0x1b8)][_0x10d221(0x215)]});const _0x3f89b7=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x2d3));this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2d4),()=>{const _0x2a4993=_0x10d221;this[_0x2a4993(0x2a8)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1ca),(_0x134dd4,_0x2750f7)=>{const _0x3917d0=_0x10d221;this[_0x3917d0(0x274)]({'userMessage':_0x2750f7});}),this[_0x10d221(0x161)](_0x3f89b7,_0x10d221(0x2a9),(_0x432f6a,_0x398d86)=>{const _0x57dc43=_0x10d221;this[_0x57dc43(0x203)](_0x398d86);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x19c),()=>{const _0x1af5a5=_0x10d221;_0x3f89b7[_0x1af5a5(0x1c9)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e6),async()=>{const _0x1bb70b=_0x10d221;await this[_0x1bb70b(0x277)](),await this[_0x1bb70b(0x276)](),this[_0x1bb70b(0x20b)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x272),()=>{const _0x1e2be8=_0x10d221;this[_0x1e2be8(0x1af)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e1),(_0xf0c3e5,_0x4e5bd0)=>{const _0x2e4e57=_0x10d221;this[_0x2e4e57(0x25a)]?.[_0x2e4e57(0x20a)](Array[_0x2e4e57(0x2bf)](_0x4e5bd0));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x236),(_0x568170,_0xc123d4)=>{const _0x2f0bfd=_0x10d221;this[_0x2f0bfd(0x25a)]?.[_0x2f0bfd(0x236)](_0xc123d4);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1a5),(_0x203ffb,_0x329bda)=>{const _0x4b9847=_0x10d221;_0x329bda[_0x4b9847(0x193)](this[_0x4b9847(0x1b8)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x299),(_0x364a71,_0x3d540e)=>{const _0x5d8f6c=_0x10d221;this[_0x5d8f6c(0x25a)]?.[_0x5d8f6c(0x299)](_0x3d540e[_0x5d8f6c(0x239)],_0x3d540e[_0x5d8f6c(0x232)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1c7),(_0x3337ce,_0x2e7aa6)=>{const _0x831ff5=_0x10d221;this[_0x831ff5(0x164)](_0x2e7aa6);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1de),(_0x2988e1,_0x3247c9)=>{const _0x242a9a=_0x10d221;this[_0x242a9a(0x25a)]?.[_0x242a9a(0x1de)](_0x3247c9[_0x242a9a(0x1d5)],_0x3247c9[_0x242a9a(0x2e3)],_0x3247c9[_0x242a9a(0x24f)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x207),()=>{const _0x28da45=_0x10d221;this[_0x28da45(0x1cb)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x28d),()=>{const _0x11a22d=_0x10d221;this[_0x11a22d(0x1ea)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x208),(_0x4f7206,_0x4ac548)=>{const _0x1e71c2=_0x10d221;this[_0x1e71c2(0x25a)]?.[_0x1e71c2(0x256)](_0x4ac548);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x231),(_0x55ad19,{replyId:_0x20c71f})=>{const _0x3a7b62=_0x10d221;console[_0x3a7b62(0x26a)](_0x3a7b62(0x1c6),_0x20c71f);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1cf),(_0xea1571,{replyId:_0x14a326})=>{const _0x4e5e14=_0x10d221;console[_0x4e5e14(0x26a)](_0x4e5e14(0x1fb),_0x14a326);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x29c),(_0x2eaced,_0x246dea)=>{const _0x467f13=_0x10d221;this[_0x467f13(0x20d)](_0x246dea);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x22c),(_0x32521a,{replyId:_0x385baa,partIndex:_0x42641b})=>{const _0x57c3db=_0x10d221;this[_0x57c3db(0x1ec)]=this[_0x57c3db(0x1ba)][_0x57c3db(0x2b3)],this[_0x57c3db(0x2a0)](_0x385baa,_0x42641b);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1ab),(_0x1930c4,{replyId:_0x5ac99f,partIndex:_0x176718})=>{const _0x26ec31=_0x10d221,_0x303f8b=this[_0x26ec31(0x1ef)](_0x5ac99f,_0x176718);_0x303f8b&&_0x26ec31(0x209)!=_0x303f8b[_0x26ec31(0x1c1)][_0x26ec31(0x2e2)][_0x26ec31(0x273)]&&this[_0x26ec31(0x293)][_0x26ec31(0x233)]([_0x303f8b[_0x26ec31(0x1c1)]],_0x26ec31(0x18c));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2d7),()=>{const _0x1cb565=_0x10d221;this[_0x1cb565(0x293)][_0x1cb565(0x179)](_0x1cb565(0x18c));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e8),(_0x70698c,_0x2bdea9)=>{const _0x5a7c34=_0x10d221;this[_0x5a7c34(0x293)][_0x5a7c34(0x179)](_0x5a7c34(0x18c)),this[_0x5a7c34(0x259)](_0x2bdea9);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x24b),async(_0xa25ac,{replyId:_0x599149,showDiff:_0x546b7d})=>{const _0x57bcd4=_0x10d221,{reply:_0x3c7024}=this[_0x57bcd4(0x181)](_0x599149),_0x2f8469=_0x3c7024[_0x57bcd4(0x2cc)]({'showDiff':_0x546b7d});await this[_0x57bcd4(0x1ba)][_0x57bcd4(0x22e)]({'id':_0x3c7024['id'],'parts':_0x2f8469,'renderingStrategy':_0x57bcd4(0x1d7)});}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1e6),(_0x27a948,{replyId:_0x22d4da,partIndex:_0x1dd6a8})=>{const _0x348a03=_0x10d221;this[_0x348a03(0x2bd)]({'replyId':_0x22d4da,'partIndex':_0x1dd6a8}),this[_0x348a03(0x293)][_0x348a03(0x179)](_0x348a03(0x18c));}),this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x296)](_0x10d221(0x238))&&(this[_0x10d221(0x1bc)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x238)),this[_0x10d221(0x17b)](_0x10d221(0x1ec),!0x1),this[_0x10d221(0x1bc)][_0x10d221(0x225)](_0x10d221(0x2b3))['to'](this,_0x10d221(0x1ec)),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x24b),()=>{const _0x6f1164=_0x10d221,{replyId:_0xfb24b,partIndex:_0x15a3ea}=this[_0x6f1164(0x2a5)];this[_0x6f1164(0x1ec)]=!this[_0x6f1164(0x1ec)];const {reply:_0xe19997}=this[_0x6f1164(0x181)](_0xfb24b),_0x73151d=_0xe19997[_0x6f1164(0x2cc)]({'showDiff':this[_0x6f1164(0x1ec)],'groupIndex':_0x15a3ea});this[_0x6f1164(0x1bc)][_0x6f1164(0x298)]({'part':_0x73151d[0x0],'renderingStrategy':_0x6f1164(0x1d7),'keepErrors':!0x0});}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x2e8),()=>{const _0x55815b=_0x10d221,{replyId:_0x47ce42,partIndex:_0x55df99}=this[_0x55815b(0x2a5)];this[_0x55815b(0x259)]({'replyId':_0x47ce42,'partIndex':_0x55df99}),this[_0x55815b(0x1bc)][_0x55815b(0x250)](_0x55815b(0x285));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x29c),()=>{const _0x28777a=_0x10d221,{replyId:_0x227c7b,partIndex:_0xca066}=this[_0x28777a(0x2a5)];this[_0x28777a(0x20d)]({'replyId':_0x227c7b,'partIndex':_0xca066}),this[_0x28777a(0x1bc)][_0x28777a(0x250)](_0x28777a(0x285));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x1e6),()=>{const _0x59d6e5=_0x10d221,{replyId:_0x3aa89b,partIndex:_0x55d23b}=this[_0x59d6e5(0x2a5)];this[_0x59d6e5(0x2bd)]({'replyId':_0x3aa89b,'partIndex':_0x55d23b}),this[_0x59d6e5(0x1bc)][_0x59d6e5(0x250)](_0x59d6e5(0x247));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x2dc),()=>{const _0x12fb8f=_0x10d221,{replyId:_0x50d9c5,partIndex:_0x43cd87}=this[_0x12fb8f(0x2a5)],_0x78cff7=this[_0x12fb8f(0x2b8)](_0x50d9c5,_0x43cd87,_0x12fb8f(0x1f3));null!==_0x78cff7&&this[_0x12fb8f(0x2a0)](_0x50d9c5,_0x78cff7);}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x210),()=>{const _0x225955=_0x10d221,{replyId:_0x25ad30,partIndex:_0x4ea030}=this[_0x225955(0x2a5)],_0x5092ee=this[_0x225955(0x2b8)](_0x25ad30,_0x4ea030,_0x225955(0x2db));null!==_0x5092ee&&this[_0x225955(0x2a0)](_0x25ad30,_0x5092ee);}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x172),(_0x3f946e,{id:_0x4e6309})=>{const _0x4980d=_0x10d221;if(_0x4980d(0x2e5)!==_0x4e6309)return;const {replyId:_0x194cb8,partIndex:_0x72b390}=this[_0x4980d(0x2a5)];this[_0x4980d(0x2a5)]=null,this[_0x4980d(0x1ba)][_0x4980d(0x28b)]({'id':_0x194cb8,'index':_0x72b390,'isActive':!0x1});}));}async[_0x51392f(0x1e1)](){const _0x4c69b7=_0x51392f;this[_0x4c69b7(0x1b8)]instanceof _0x5e54a1?this[_0x4c69b7(0x280)](this[_0x4c69b7(0x1b8)]):this[_0x4c69b7(0x161)](this[_0x4c69b7(0x1b8)][_0x4c69b7(0x18e)],_0x4c69b7(0x223),(_0x3ca448,_0x15083f)=>{const _0x1d0aa2=_0x4c69b7;_0x15083f['on'](_0x1d0aa2(0x2ab),()=>{const _0x5f4e5e=_0x1d0aa2;this[_0x5f4e5e(0x280)](_0x15083f);});});const _0xdf01a5=this[_0x4c69b7(0x1b8)][_0x4c69b7(0x270)][_0x4c69b7(0x182)](_0x4c69b7(0x29d));let _0x215187=_0xdf01a5;if(_0x4c69b7(0x2b2)!=_0xdf01a5||(_0x215187=await this[_0x4c69b7(0x204)](),_0x215187))return _0x4c69b7(0x1a0)==_0x215187?this[_0x4c69b7(0x2a8)]():this[_0x4c69b7(0x174)](_0x215187);}async[_0x51392f(0x21d)](){const _0x577dd0=_0x51392f;return await this[_0x577dd0(0x277)](),this[_0x577dd0(0x1c8)][_0x577dd0(0x241)](),super[_0x577dd0(0x21d)]();}[_0x51392f(0x20d)](_0x8450f){const _0x1bc86e=_0x51392f,_0xdf25b4=_0x3d3109(this[_0x1bc86e(0x1b8)]);if(!_0xdf25b4[_0x1bc86e(0x1d1)][_0x1bc86e(0x296)](_0x1bc86e(0x184)))throw new _0x2bbafa(_0x1bc86e(0x246),null);const _0x52f7bc=this[_0x1bc86e(0x1b8)][_0x1bc86e(0x1d1)][_0x1bc86e(0x182)](_0x1bc86e(0x240)),{reply:_0x25b3ee,interaction:_0x4ef449}=this[_0x1bc86e(0x181)](_0x8450f[_0x1bc86e(0x29b)]),_0x449244=this[_0x1bc86e(0x1ef)](_0x8450f[_0x1bc86e(0x29b)],_0x8450f[_0x1bc86e(0x1a2)]),_0x536409=void 0x0!==_0x8450f[_0x1bc86e(0x1a2)]?[_0x25b3ee[_0x1bc86e(0x1ed)][_0x8450f[_0x1bc86e(0x1a2)]]]:_0x25b3ee[_0x1bc86e(0x1ed)][_0x1bc86e(0x260)](_0x103937=>_0x1bc86e(0x248)==_0x103937[_0x1bc86e(0x283)]),_0x97d4c0=_0x536409[_0x1bc86e(0x1d3)](_0x196e65=>_0x25b3ee[_0x1bc86e(0x1ed)][_0x1bc86e(0x1be)](_0x196e65));if(!_0x449244||_0x1bc86e(0x209)==_0x449244[_0x1bc86e(0x1c1)][_0x1bc86e(0x2e2)][_0x1bc86e(0x273)])return void _0x97d4c0[_0x1bc86e(0x2d2)](_0x146935=>_0x25b3ee[_0x1bc86e(0x19e)](_0x146935,_0x1bc86e(0x262)));_0x97d4c0[_0x1bc86e(0x2d2)](_0x1385ed=>_0x25b3ee[_0x1bc86e(0x19e)](_0x1385ed,_0x1bc86e(0x285)));const _0x4ec403=_0x16e85b({'editor':_0xdf25b4,'reply':_0x25b3ee,'interaction':_0x4ef449,'groups':_0x536409,'transform':!0x0,'documentCompare':_0x52f7bc,'documentCompareOptions':{'anchor':_0x1bc86e(0x21f),'markDeletions':!0x0}});let _0x4d0093;_0x449244&&this[_0x1bc86e(0x177)](_0x449244[_0x1bc86e(0x1c1)]),_0xdf25b4[_0x1bc86e(0x1a3)][_0x1bc86e(0x20e)](_0xc33e73=>{const _0x552b55=_0x1bc86e;_0x4d0093=_0xc33e73[_0x552b55(0x2d5)],_0xdf25b4[_0x552b55(0x1d1)][_0x552b55(0x182)](_0x552b55(0x2ed))[_0x552b55(0x1f8)](_0x4ec403),this[_0x552b55(0x293)][_0x552b55(0x179)](_0x552b55(0x18c));}),this[_0x1bc86e(0x1a7)][_0x1bc86e(0x17b)](_0x4d0093,{'interactionId':_0x4ef449['id'],'replyId':_0x25b3ee['id'],'indexes':_0x97d4c0[_0x1bc86e(0x258)]()}),this[_0x1bc86e(0x2a2)](_0x25b3ee);}[_0x51392f(0x259)](_0x5899ca){const _0x28826e=_0x51392f,_0x43bde6=_0x3d3109(this[_0x28826e(0x1b8)]),_0x46e369=this[_0x28826e(0x1b8)][_0x28826e(0x1d1)][_0x28826e(0x182)](_0x4a99e6),{reply:_0x3d0e71,interaction:_0x1732bf}=this[_0x28826e(0x181)](_0x5899ca[_0x28826e(0x29b)]),_0x12df6a=this[_0x28826e(0x1ef)](_0x5899ca[_0x28826e(0x29b)],_0x5899ca[_0x28826e(0x1a2)]),_0x54af93=void 0x0!==_0x5899ca[_0x28826e(0x1a2)]?[_0x3d0e71[_0x28826e(0x1ed)][_0x5899ca[_0x28826e(0x1a2)]]]:_0x3d0e71[_0x28826e(0x1ed)][_0x28826e(0x260)](_0x99749d=>_0x28826e(0x248)==_0x99749d[_0x28826e(0x283)]),_0x5ab239=_0x54af93[_0x28826e(0x1d3)](_0x5a62c1=>_0x3d0e71[_0x28826e(0x1ed)][_0x28826e(0x1be)](_0x5a62c1));if(!_0x12df6a||_0x28826e(0x209)==_0x12df6a[_0x28826e(0x1c1)][_0x28826e(0x2e2)][_0x28826e(0x273)])return void _0x5ab239[_0x28826e(0x2d2)](_0x392ff2=>_0x3d0e71[_0x28826e(0x19e)](_0x392ff2,_0x28826e(0x262)));_0x5ab239[_0x28826e(0x2d2)](_0x507581=>_0x3d0e71[_0x28826e(0x19e)](_0x507581,_0x28826e(0x285)));const _0x296780=_0x16e85b({'editor':_0x43bde6,'reply':_0x3d0e71,'interaction':_0x1732bf,'groups':_0x54af93,'transform':!0x0,'documentCompare':_0x46e369,'documentCompareOptions':{'anchor':_0x28826e(0x21f),'markDeletions':!0x1}});let _0x5f04fb;_0x12df6a&&this[_0x28826e(0x177)](_0x12df6a[_0x28826e(0x1c1)]),_0x43bde6[_0x28826e(0x1a3)][_0x28826e(0x20e)](_0x48354f=>{const _0x596dae=_0x28826e;_0x5f04fb=_0x48354f[_0x596dae(0x2d5)];for(const _0x38e915 of _0x296780)_0x38e915[_0x596dae(0x1f4)]=_0x43bde6[_0x596dae(0x1a3)][_0x596dae(0x267)][_0x596dae(0x2d1)],_0x21105c(_0x43bde6,_0x38e915),_0x48354f[_0x596dae(0x2d5)][_0x596dae(0x294)](_0x38e915),_0x43bde6[_0x596dae(0x1a3)][_0x596dae(0x2eb)](_0x38e915);}),this[_0x28826e(0x1a7)][_0x28826e(0x17b)](_0x5f04fb,{'interactionId':_0x1732bf['id'],'replyId':_0x3d0e71['id'],'indexes':_0x5ab239[_0x28826e(0x258)]()}),this[_0x28826e(0x2a2)](_0x3d0e71);}[_0x51392f(0x2bd)](_0x72c3df){const _0x4926ba=_0x51392f,{reply:_0x228591}=this[_0x4926ba(0x181)](_0x72c3df[_0x4926ba(0x29b)]);_0x228591[_0x4926ba(0x19e)](_0x72c3df[_0x4926ba(0x1a2)],_0x4926ba(0x247));}[_0x51392f(0x2a0)](_0xf2d8c3,_0x435992){const _0x28c441=_0x51392f;if(!this[_0x28c441(0x1bc)])return;const {reply:_0x3f065a}=this[_0x28c441(0x181)](_0xf2d8c3),_0x4f70aa=_0x3f065a[_0x28c441(0x2cc)]({'showDiff':this[_0x28c441(0x1ec)]});let _0x1a85b8,_0x56dd41;if(void 0x0!==_0x435992?(_0x56dd41=_0x4f70aa[_0x28c441(0x1e4)](_0x245ea4=>_0x245ea4[_0x28c441(0x2d8)]==_0x435992),_0x1a85b8=_0x56dd41?.[_0x28c441(0x2d8)]):(_0x56dd41=_0x4f70aa[0x0],_0x1a85b8=_0x56dd41[_0x28c441(0x2d8)]),this[_0x28c441(0x2a5)]?.[_0x28c441(0x29b)]==_0xf2d8c3&&this[_0x28c441(0x2a5)]?.[_0x28c441(0x1a2)]==_0x1a85b8)return;const _0x20123e=this[_0x28c441(0x1b7)](_0xf2d8c3,_0x3f065a,_0x56dd41);if(!_0x20123e)return void this[_0x28c441(0x1bc)][_0x28c441(0x16b)]();this[_0x28c441(0x2a5)]={'replyId':_0xf2d8c3,'partIndex':_0x1a85b8},this[_0x28c441(0x177)](_0x20123e,!0x0);const _0x1eb93e=this[_0x28c441(0x2b8)](_0xf2d8c3,_0x1a85b8,_0x28c441(0x1f3));this[_0x28c441(0x1bc)][_0x28c441(0x298)]({'part':_0x56dd41,'renderingStrategy':_0x28c441(0x1d7)}),this[_0x28c441(0x1bc)][_0x28c441(0x189)]({'index':_0x1a85b8,'title':_0x534e0f(this[_0x28c441(0x1b8)][_0x28c441(0x215)],_0x28c441(0x186),(_0x1a85b8+0x1)[_0x28c441(0x17e)]()),'showRotator':null!==_0x1eb93e,'ranges':[_0x20123e],'areActionsDisabled':_0x3f065a[_0x28c441(0x26d)]}),this[_0x28c441(0x1bc)][_0x28c441(0x250)](_0x28c441(0x248)),this[_0x28c441(0x1ba)][_0x28c441(0x2a6)](_0xf2d8c3,_0x1a85b8),this[_0x28c441(0x1ba)][_0x28c441(0x28b)]({'id':_0xf2d8c3,'index':_0x1a85b8,'isActive':!0x0});}[_0x51392f(0x2b8)](_0x11cfea,_0x5c5e75,_0x432de6){const _0xf7788d=_0x51392f,{reply:_0x267e9b}=this[_0xf7788d(0x181)](_0x11cfea),_0x1ce0f1=_0x267e9b[_0xf7788d(0x2cc)]({'showDiff':this[_0xf7788d(0x1ec)]});if(0x1==_0x1ce0f1[_0xf7788d(0x17a)])return null;const _0x18d93c=_0x1ce0f1[_0xf7788d(0x23f)](_0x41e72d=>_0x41e72d[_0xf7788d(0x2d8)]==_0x5c5e75),_0x38b00e=_0xf7788d(0x1f3)==_0x432de6?0x1:-0x1;let _0x3c02aa=_0x1ce0f1['at']((_0x18d93c+_0x38b00e)%_0x1ce0f1[_0xf7788d(0x17a)])[_0xf7788d(0x2d8)],_0x2ba79d=_0x1ce0f1[_0x3c02aa];for(;!this[_0xf7788d(0x1b7)](_0x11cfea,_0x267e9b,_0x2ba79d);){if(_0x3c02aa=_0x1ce0f1['at']((_0x3c02aa+_0x38b00e)%_0x1ce0f1[_0xf7788d(0x17a)])[_0xf7788d(0x2d8)],_0x3c02aa===_0x18d93c)return null;_0x2ba79d=_0x1ce0f1[_0x3c02aa];}return _0x3c02aa;}[_0x51392f(0x1b7)](_0x31b8f3,_0x1b6f55,_0x3b8ea7){const _0x13fd27=_0x51392f,_0xad9fb4=_0x1b6f55[_0x13fd27(0x1ed)];if(!_0x3b8ea7[_0x13fd27(0x266)])return null;const _0x378327=_0xad9fb4[_0x13fd27(0x1e4)](_0x34f8ec=>_0x34f8ec[_0x13fd27(0x2d8)]==_0x3b8ea7[_0x13fd27(0x2d8)]);if(_0x13fd27(0x248)!==_0x378327?.[_0x13fd27(0x283)])return null;const _0x5e6ca6=this[_0x13fd27(0x1ef)](_0x31b8f3,_0x3b8ea7[_0x13fd27(0x2d8)]);if(!_0x5e6ca6)return null;const {range:_0x590137,currentIndex:_0x589714}=_0x5e6ca6;return _0x13fd27(0x209)==_0x590137[_0x13fd27(0x2e2)][_0x13fd27(0x273)]?(_0x1b6f55[_0x13fd27(0x19e)](_0x589714,_0x13fd27(0x262)),null):_0x5e6ca6[_0x13fd27(0x1c1)];}[_0x51392f(0x1ef)](_0x33248b,_0x53feb3){const _0x529c5b=_0x51392f,_0x57b879=_0x3d3109(this[_0x529c5b(0x1b8)]),{reply:_0x28d259,interaction:_0x3f7653}=this[_0x529c5b(0x181)](_0x33248b),_0x19c0c4=_0x28d259[_0x529c5b(0x1ed)][_0x529c5b(0x260)](_0x5125ff=>_0x529c5b(0x248)==_0x5125ff[_0x529c5b(0x283)]),_0x350583=_0x19c0c4[_0x529c5b(0x1d3)](_0x30f78f=>_0x28d259[_0x529c5b(0x1ed)][_0x529c5b(0x1be)](_0x30f78f));void 0x0===_0x53feb3&&(_0x53feb3=_0x350583[0x0]);const _0x32480e=_0x350583[_0x529c5b(0x1be)](_0x53feb3);if(-0x1==_0x32480e)return null;const _0x4a50ed=_0x19c0c4[_0x32480e],_0x2d2984=new _0x35a8ec([]),_0x330b2b=new _0x35a8ec([]);for(const _0x4f2f84 of _0x4a50ed[_0x529c5b(0x1fd)])if(_0x529c5b(0x1d4)!=_0x4f2f84[_0x529c5b(0x1e2)]&&_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x4f2f84[_0x529c5b(0x183)][_0x529c5b(0x222)](!0x0)),_0x529c5b(0x1a0)!=_0x4f2f84[_0x529c5b(0x1e2)]){const _0x5016f6=_0xd557f5(_0x49e951=>_0x297bf6(_0x49e951,_0x529c5b(0x286))==_0x4f2f84['id'],_0x28d259[_0x529c5b(0x168)],!0x0);_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x5016f6[_0x529c5b(0x222)](!0x0));}if(0x0==_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x17a)]){if(_0x4a50ed[_0x529c5b(0x1fd)][0x0][_0x529c5b(0x1fc)]){const _0x264ae4=_0x1e9eb0(_0x529c5b(0x286),_0x4a50ed[_0x529c5b(0x1fd)][0x0][_0x529c5b(0x1fc)],_0x28d259[_0x529c5b(0x168)]);_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x201)](_0x264ae4[_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x201)](_0x264ae4[_0x529c5b(0x222)](!0x0)),_0x264ae4[_0x529c5b(0x2aa)]&&(_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x264ae4[_0x529c5b(0x2aa)][_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x264ae4[_0x529c5b(0x2aa)][_0x529c5b(0x222)](!0x0)));}else{const _0x1e5845=_0x28d259[_0x529c5b(0x168)][_0x529c5b(0x1da)][0x0];if(!_0x1e5845)return null;_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x1e5845[_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x1e5845[_0x529c5b(0x222)](!0x0));}}const _0x363706=_0x3f7653[_0x529c5b(0x171)](),_0xb5c5aa=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x363706[_0x529c5b(0x21a)]),_0x5afb7c=_0x330a70(_0x2d2984),_0x58e16a=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x5afb7c),_0x384792=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x5afb7c),_0x4ebcad=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x25e)](_0x58e16a,0x0),_0x15cee4=_0x330a70(_0x330b2b),_0x4f814d={'anchor':_0x4ebcad,'markDeletions':!0x1},_0x1962eb=_0x57b879[_0x529c5b(0x1d1)][_0x529c5b(0x182)](_0x4a99e6)[_0x529c5b(0x230)](_0x5afb7c,_0x15cee4,_0x4f814d)[_0x529c5b(0x1ad)]();if(!_0x1962eb[_0x529c5b(0x17a)])return null;_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x20e)](_0x50bad1=>{const _0xa734c5=_0x529c5b;for(const _0x2d068b of _0x1962eb)if(_0xa734c5(0x192)==_0x2d068b[_0xa734c5(0x1e2)]){const _0x429d28=_0x2d068b[_0xa734c5(0x235)],_0x1e7405=_0x2d068b[_0xa734c5(0x227)],_0x5ec3a9=new _0x41f2fe(_0x429d28,_0x1e7405);_0x50bad1[_0xa734c5(0x2d5)][_0xa734c5(0x294)](_0x5ec3a9),_0x57b879[_0xa734c5(0x1a3)][_0xa734c5(0x2eb)](_0x5ec3a9);}else _0xa734c5(0x2cb)!==_0x2d068b[_0xa734c5(0x1e2)]&&(_0x2d068b[_0xa734c5(0x1f4)]=null,_0x2d068b[_0xa734c5(0x22f)]=!0x1,_0x50bad1[_0xa734c5(0x2d5)][_0xa734c5(0x294)](_0x2d068b),_0x57b879[_0xa734c5(0x1a3)][_0xa734c5(0x2eb)](_0x2d068b));});const _0x3c72b8=_0x9507b(_0x57b879,_0x1962eb,_0x58e16a);_0x3c2280(_0x57b879[_0x529c5b(0x1a3)],_0x3c72b8);const _0x195fb7=_0x3c72b8[_0x529c5b(0x26e)]()[_0x529c5b(0x2b1)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x5712f1=_0x3c72b8[_0x529c5b(0x26e)]()[_0x529c5b(0x2bb)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x5c0ae1=[];let _0x4fedab=_0x58e16a,_0x42ffd5=_0x384792;for(let _0x59912b=0x0;_0x59912b<_0x5712f1[_0x529c5b(0x17a)];_0x59912b++){const _0x564914=_0x4fedab[_0x529c5b(0x166)]-_0x5712f1[_0x59912b];_0x5c0ae1[_0x59912b]=_0x42ffd5[_0x529c5b(0x166)]-_0x564914,_0x4fedab=_0x4fedab[_0x529c5b(0x295)](_0x5712f1[_0x59912b]),_0x42ffd5=_0x42ffd5[_0x529c5b(0x295)](_0x5c0ae1[_0x59912b]);}const _0x277edb=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x2c6)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x384792,_0x195fb7),_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x384792,_0x5c0ae1)),_0x4f0fb6=_0x384792[_0x529c5b(0x28c)](0x0)[_0x529c5b(0x1f9)](_0x5eb965),_0x23d540=Array[_0x529c5b(0x2bf)](_0xb5c5aa[_0x529c5b(0x243)]())[_0x529c5b(0x1e4)](_0x41be13=>_0x41be13[_0x529c5b(0x1f9)](_0x5eb965)==_0x4f0fb6)[_0x529c5b(0x18a)](),_0x3889de=_0x277edb[_0x529c5b(0x2b1)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x2743a2=_0x277edb[_0x529c5b(0x2bb)][_0x529c5b(0x25d)][_0x529c5b(0x258)]();_0x3889de[0x0]=_0x23d540[0x0]+_0x3889de[0x0],_0x2743a2[0x0]=_0x23d540[0x0]+_0x2743a2[0x0];let _0x4e7db4=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x2c6)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x17f)](),_0x3889de),_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x17f)](),_0x2743a2));const _0x384641=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x1b0)][_0x529c5b(0x1ad)](_0x363706[_0x529c5b(0x2d1)]);for(const _0x392883 of _0x384641)_0x4e7db4=_0x1173c7[_0x529c5b(0x23d)](_0x4e7db4[_0x529c5b(0x211)](_0x392883));return{'range':_0x4e7db4,'currentIndex':_0x53feb3};}[_0x51392f(0x280)](_0x3d373e){const _0x4e6aa1=_0x51392f;if(!_0x3d373e[_0x4e6aa1(0x1d1)][_0x4e6aa1(0x296)](_0x4e6aa1(0x2be)))return;const _0x30968c=_0x3d373e[_0x4e6aa1(0x163)][_0x4e6aa1(0x182)](_0x4e6aa1(0x2e0)),_0x3737a7=_0x3d373e[_0x4e6aa1(0x163)][_0x4e6aa1(0x182)](_0x4e6aa1(0x24a));this[_0x4e6aa1(0x161)](_0x30968c,_0x4e6aa1(0x1e8),(_0x40fe44,_0x4e4422,_0x261b56)=>{const _0x1db024=_0x4e6aa1,_0x58862e=this[_0x1db024(0x1a7)][_0x1db024(0x182)](_0x4e4422);if(!_0x58862e)return;const _0x1601f6=this[_0x1db024(0x25a)][_0x1db024(0x21e)](_0x58862e[_0x1db024(0x1db)])[_0x1db024(0x16a)](_0x58862e[_0x1db024(0x29b)]);_0x58862e[_0x1db024(0x221)][_0x1db024(0x2d2)](_0x41348b=>_0x1601f6[_0x1db024(0x19e)](_0x41348b,_0x1db024(0x248))),this[_0x1db024(0x1a7)][_0x1db024(0x162)](_0x4e4422),this[_0x1db024(0x1a7)][_0x1db024(0x17b)](_0x261b56,_0x58862e);}),this[_0x4e6aa1(0x161)](_0x3737a7,_0x4e6aa1(0x1e8),(_0x408029,_0x257ac5,_0x34d799)=>{const _0x2ce3f3=_0x4e6aa1,_0x4b7bcc=this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x182)](_0x257ac5);if(!_0x4b7bcc)return;const _0x4310a9=this[_0x2ce3f3(0x25a)][_0x2ce3f3(0x21e)](_0x4b7bcc[_0x2ce3f3(0x1db)])[_0x2ce3f3(0x16a)](_0x4b7bcc[_0x2ce3f3(0x29b)]);_0x4b7bcc[_0x2ce3f3(0x221)][_0x2ce3f3(0x2d2)](_0x114404=>_0x4310a9[_0x2ce3f3(0x19e)](_0x114404,_0x2ce3f3(0x285))),this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x162)](_0x257ac5),this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x17b)](_0x34d799,_0x4b7bcc);});}async[_0x51392f(0x174)](_0x4580d1){const _0x166768=_0x51392f;this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x296)](_0x166768(0x238))&&this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x182)](_0x166768(0x238))[_0x166768(0x16b)](),(this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x182)](_0x39f63c)[_0x166768(0x1c2)][_0x166768(0x251)](_0x166768(0x1ac)),this[_0x166768(0x1ba)][_0x166768(0x2e4)](_0x166768(0x1d7)),this[_0x166768(0x1ba)][_0x166768(0x1aa)](!0x0),await this[_0x166768(0x277)]());try{await this[_0x166768(0x2ba)][_0x166768(0x22b)](_0x4580d1)[_0x166768(0x23b)](),await this[_0x166768(0x2a8)](_0x4580d1),this[_0x166768(0x2b4)]('\x20'),await this[_0x166768(0x25a)][_0x166768(0x180)](_0x4580d1,this[_0x166768(0x293)][_0x166768(0x244)]),this[_0x166768(0x25a)][_0x166768(0x234)]()&&this[_0x166768(0x1af)]();}catch(_0xeb460d){this[_0x166768(0x1ba)][_0x166768(0x2ae)]({'errorMessage':_0x534e0f(this[_0x166768(0x1b8)][_0x166768(0x215)],_0x166768(0x282)),'id':_0x4580d1}),this[_0x166768(0x271)](new _0x2bbafa(_0x166768(0x288),this,{'error':_0xeb460d}));}finally{this[_0x166768(0x1ba)][_0x166768(0x196)](),this[_0x166768(0x1ba)][_0x166768(0x2e4)](_0x166768(0x26c)),this[_0x166768(0x1ba)][_0x166768(0x1aa)](!0x1);}}async[_0x51392f(0x204)](){const _0x84ef70=_0x51392f,_0x282fd2=this[_0x84ef70(0x2ba)][_0x84ef70(0x213)](this[_0x84ef70(0x16e)](),{'limit':0x1,'sortBy':_0x84ef70(0x170)});try{const _0x547354=await _0x282fd2[_0x84ef70(0x2ea)]();return _0x547354[_0x84ef70(0x17a)]?_0x547354[0x0]['id']:_0x84ef70(0x1a0);}catch(_0x94627f){return this[_0x84ef70(0x1ba)][_0x84ef70(0x2ae)]({'errorMessage':_0x534e0f(this[_0x84ef70(0x1b8)][_0x84ef70(0x215)],_0x84ef70(0x282)),'id':_0x1837bf()}),this[_0x84ef70(0x271)](new _0x2bbafa(_0x84ef70(0x1a1),this,{'error':_0x94627f})),this[_0x84ef70(0x1ba)][_0x84ef70(0x1aa)](!0x1),this[_0x84ef70(0x1ba)][_0x84ef70(0x27b)](),null;}}[_0x51392f(0x1cd)](_0x2a0aca){const _0x3b3129=_0x51392f;this[_0x3b3129(0x25a)]['id']===_0x2a0aca&&this[_0x3b3129(0x2a8)]();}[_0x51392f(0x1af)](){const _0x504046=_0x51392f;this[_0x504046(0x25a)]?.[_0x504046(0x20c)](_0x534e0f(this[_0x504046(0x1b8)][_0x504046(0x215)],_0x504046(0x20f)));}async[_0x51392f(0x290)](){const _0x1db34d=_0x51392f,_0x4d6c75=this[_0x1db34d(0x293)][_0x1db34d(0x24c)]();this[_0x1db34d(0x25a)]?.[_0x1db34d(0x224)](_0x4d6c75),this[_0x1db34d(0x1af)]();}[_0x51392f(0x20b)](){const _0x1b419b=_0x51392f;this[_0x1b419b(0x25a)]?.[_0x1b419b(0x2ce)]();}[_0x51392f(0x200)](){const _0x1fe5ff=_0x51392f;this[_0x1fe5ff(0x1ba)][_0x1fe5ff(0x200)]();}async[_0x51392f(0x2d4)](){const _0x49038c=_0x51392f;await this[_0x49038c(0x2a8)]();}async[_0x51392f(0x25b)]({message:_0x1d1483,attributes:_0x3978de}){const _0x544cf8=_0x51392f;await this[_0x544cf8(0x274)]({'userMessage':_0x1d1483,'attributes':_0x3978de});}[_0x51392f(0x16e)](){const _0x2ca150=_0x51392f,_0x2894e6=this[_0x2ca150(0x1b8)][_0x2ca150(0x270)][_0x2ca150(0x182)](_0x2ca150(0x2dd));if(!_0x2894e6)throw new _0x2bbafa(_0x2ca150(0x278),this);return _0x2894e6;}async[_0x51392f(0x2a8)](_0x1d8ee3){const _0x281582=_0x51392f;try{this[_0x281582(0x1ba)][_0x281582(0x265)](),await this[_0x281582(0x29e)](_0x1d8ee3);}catch(_0x2002fd){this[_0x281582(0x1ba)][_0x281582(0x2ae)]({'errorMessage':_0x534e0f(this[_0x281582(0x1b8)][_0x281582(0x215)],_0x281582(0x2b0)),'id':_0x1d8ee3||_0x1837bf()}),console[_0x281582(0x1f2)](_0x2002fd),this[_0x281582(0x25a)]=void 0x0,this[_0x281582(0x1ba)][_0x281582(0x27b)]();}}async[_0x51392f(0x29e)](_0x2d152f){const _0x1fd608=_0x51392f;let _0xadffed;this[_0x1fd608(0x1b8)][_0x1fd608(0x1d1)][_0x1fd608(0x296)](_0x1fd608(0x238))&&this[_0x1fd608(0x1b8)][_0x1fd608(0x1d1)][_0x1fd608(0x182)](_0x1fd608(0x238))[_0x1fd608(0x16b)](),_0x2d152f||!this[_0x1fd608(0x25a)]?_0xadffed=this[_0x1fd608(0x1b8)][_0x1fd608(0x270)][_0x1fd608(0x182)](_0x1fd608(0x198)):this[_0x1fd608(0x1ba)][_0x1fd608(0x27a)]&&(_0xadffed=this[_0x1fd608(0x25a)][_0x1fd608(0x1c3)]['id']),await this[_0x1fd608(0x277)]();const _0x4d1b4b=this[_0x1fd608(0x16e)](),_0x493f25=_0x2d152f||_0x1837bf();this[_0x1fd608(0x25a)]=new _0x5c1c02({'connector':this[_0x1fd608(0x2ba)],'chatModels':this[_0x1fd608(0x1d8)],'selectedModelId':_0xadffed,'conversationId':_0x493f25,'group':_0x4d1b4b,'getEditor':()=>_0x3d3109(this[_0x1fd608(0x1b8)]),'isFromHistory':!!_0x2d152f}),this[_0x1fd608(0x25a)][_0x1fd608(0x23e)](_0x1fd608(0x25f),_0x1fd608(0x2bc))['to'](this),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2a7),(_0x275913,_0x4c25b0)=>{const _0x414bfd=_0x1fd608;this[_0x414bfd(0x1ba)][_0x414bfd(0x199)](_0x4c25b0),this[_0x414bfd(0x1ba)][_0x414bfd(0x25c)](),this[_0x414bfd(0x1ba)][_0x414bfd(0x26f)](),this[_0x414bfd(0x1ba)][_0x414bfd(0x1fe)](),_0x2d152f||(this[_0x414bfd(0x1ba)][_0x414bfd(0x24d)](),this[_0x414bfd(0x1af)]());}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1c0),(_0x29af94,_0x38c38a)=>{const _0x3a61d6=_0x1fd608;this[_0x3a61d6(0x1ba)][_0x3a61d6(0x27e)](_0x38c38a[_0x3a61d6(0x2cf)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x23c),(_0x50cf82,_0x2f3cb7)=>{const _0x53c757=_0x1fd608;this[_0x53c757(0x1ba)][_0x53c757(0x245)](_0x2f3cb7);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x214),()=>{const _0x245e9f=_0x1fd608,_0x221d9f=this[_0x245e9f(0x1ba)][_0x245e9f(0x1ee)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x245e9f(0x1ba)][_0x245e9f(0x185)](_0x221d9f);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x26b),()=>{const _0x196152=_0x1fd608,_0x4da855=this[_0x196152(0x1ba)][_0x196152(0x1ee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x196152(0x1ba)][_0x196152(0x185)](_0x4da855);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x188),(_0x184058,_0x454767)=>{const _0xac5343=_0x1fd608;this[_0xac5343(0x1ba)][_0xac5343(0x2b7)](_0x454767,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x220),(_0x2474e3,_0x2b436a)=>{const _0xf07667=_0x1fd608;this[_0xf07667(0x1ba)][_0xf07667(0x2b7)](_0x2b436a,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2bc),()=>{const _0x367e2b=_0x1fd608;this[_0x367e2b(0x1ba)][_0x367e2b(0x264)]();}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x229),async()=>{const _0x300bf2=_0x1fd608;await this[_0x300bf2(0x1ba)][_0x300bf2(0x1e5)]();}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2c0),(_0x21297f,_0x1be87a)=>{const _0x54077d=_0x1fd608;this[_0x54077d(0x1ba)][_0x54077d(0x2a4)](_0x1be87a['id']);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x261),(_0x39aa3e,_0x3de34a,_0x34b197)=>{const _0x5de465=_0x1fd608;this[_0x5de465(0x2b4)](_0x3de34a,_0x34b197);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x191),(_0x57c272,_0x39f8fc)=>{const _0x1fb378=_0x1fd608;_0x1fb378(0x1cc)===_0x39f8fc[_0x1fb378(0x1e2)]?this[_0x1fb378(0x1ba)][_0x1fb378(0x165)](_0x39f8fc):this[_0x1fb378(0x1ba)][_0x1fb378(0x23a)](_0x39f8fc);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1b3),async(_0x4931b4,_0x2dfe22)=>{const _0x55d17b=_0x1fd608;await this[_0x55d17b(0x1d0)]({'reply':_0x2dfe22});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x17c),(_0x511620,{reply:_0x3d3608,index:_0x22f73f,state:_0x155ae0})=>{const _0x6f2717=_0x1fd608;this[_0x6f2717(0x1ba)][_0x6f2717(0x16d)]({'id':_0x3d3608['id'],'index':_0x22f73f,'state':_0x155ae0}),this[_0x6f2717(0x2a5)]?.[_0x6f2717(0x29b)][_0x6f2717(0x19b)](_0x3d3608['id'])&&this[_0x6f2717(0x2a5)]?.[_0x6f2717(0x1a2)]==_0x22f73f&&this[_0x6f2717(0x1bc)]?.[_0x6f2717(0x250)](_0x155ae0);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x28e),(_0x17c7a5,_0x33725b)=>{const _0x4aebfc=_0x1fd608;if(this[_0x4aebfc(0x1ba)][_0x4aebfc(0x2cd)](_0x33725b[_0x4aebfc(0x18d)],_0x33725b[_0x4aebfc(0x257)]),_0x4aebfc(0x1b1)===_0x33725b[_0x4aebfc(0x18d)][_0x4aebfc(0x1e2)]){const _0x471cb4=[..._0x3d3109(this[_0x4aebfc(0x1b8)])[_0x4aebfc(0x1a3)][_0x4aebfc(0x267)][_0x4aebfc(0x1b1)][_0x4aebfc(0x17d)]()];this[_0x4aebfc(0x293)][_0x4aebfc(0x233)](_0x471cb4,_0x4aebfc(0x1ff)+this[_0x4aebfc(0x25a)]?.['id']);}}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2c4),(_0x40edf2,_0x5ab089)=>{const _0x34f51c=_0x1fd608;this[_0x34f51c(0x1ba)][_0x34f51c(0x1c7)](_0x5ab089[_0x34f51c(0x287)]),_0x34f51c(0x24e)==_0x5ab089[_0x34f51c(0x287)]&&this[_0x34f51c(0x20b)](),_0x34f51c(0x1b1)===_0x5ab089[_0x34f51c(0x1e2)]&&this[_0x34f51c(0x293)][_0x34f51c(0x179)](_0x34f51c(0x1ff)+this[_0x34f51c(0x25a)]?.['id']);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1f5),(_0xecc1e8,_0x32ee1a)=>{const _0x5051ed=_0x1fd608;this[_0x5051ed(0x1ba)][_0x5051ed(0x2c2)](_0x32ee1a[_0x5051ed(0x18d)][_0x5051ed(0x287)],_0x32ee1a[_0x5051ed(0x257)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2e7),(_0x243fc7,_0x17874d)=>{const _0x5eb58c=_0x1fd608;this[_0x5eb58c(0x1ba)][_0x5eb58c(0x19f)](_0x17874d[_0x5eb58c(0x29f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x216),(_0x4ca8b0,_0x4ed5d1)=>{const _0x38d3c8=_0x1fd608;this[_0x38d3c8(0x1ba)][_0x38d3c8(0x1e3)](_0x4ed5d1[_0x38d3c8(0x187)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1ce),(_0x3586da,_0xbbc7d4)=>{const _0x27d237=_0x1fd608;this[_0x27d237(0x1ba)][_0x27d237(0x28a)](_0xbbc7d4[_0x27d237(0x1d5)],_0xbbc7d4[_0x27d237(0x239)],_0xbbc7d4[_0x27d237(0x202)],_0xbbc7d4[_0x27d237(0x24f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2d9),(_0x5e3d4c,_0x4107af)=>{const _0x2e88ff=_0x1fd608;this[_0x2e88ff(0x1ba)][_0x2e88ff(0x2af)](_0x4107af[_0x2e88ff(0x1d5)],_0x4107af[_0x2e88ff(0x1ae)],_0x4107af[_0x2e88ff(0x28f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x226),(_0x35d27c,_0x1d4069)=>{const _0x5a4071=_0x1fd608;this[_0x5a4071(0x1ba)][_0x5a4071(0x2c5)](_0x1d4069);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x242),async(_0x345580,_0x4afd1b)=>{const _0x15fedc=_0x1fd608,_0x44cb0f=(await this[_0x15fedc(0x1d8)][_0x15fedc(0x206)]())[_0x15fedc(0x1e4)](_0x1511d0=>_0x1511d0['id']===_0x4afd1b[_0x15fedc(0x1c3)]?.['id'])||null;this[_0x15fedc(0x1ba)][_0x15fedc(0x178)](_0x44cb0f,_0x4afd1b[_0x15fedc(0x249)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1f2),(_0x46e9f5,{error:_0x51c50d,interactionId:_0x1c48a7,fileName:_0x52cfcc,url:_0x303218,sourceId:_0x424a18,sourceLabel:_0x44bca})=>{const _0x305a8d=_0x1fd608,_0x221243=_0x1c48a7?_0x1c48a7+':'+_0x1837bf():_0x1837bf();_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2b5))?this[_0x305a8d(0x1ba)][_0x305a8d(0x292)]({'staticMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1f1)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1a1))||_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2d0))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2b0)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2ec))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x16c),_0x52cfcc),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1b9))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1b2),_0x303218),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x175))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2c3)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x212))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1bf)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2b9))?(_0x424a18&&this[_0x305a8d(0x1ba)][_0x305a8d(0x1dd)](_0x424a18),this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x22d),_0x44bca||_0x305a8d(0x239)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1e7))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x253)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x16f))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x217)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2e9))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2d6)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1d6))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1fa)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x19d))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x263)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x167))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x269)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x197)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d));}),await this[_0x1fd608(0x25a)][_0x1fd608(0x27c)](this[_0x1fd608(0x1b8)][_0x1fd608(0x270)][_0x1fd608(0x182)](_0x1fd608(0x29a))),_0x2d152f||await this[_0x1fd608(0x25a)][_0x1fd608(0x2b1)]();}async[_0x51392f(0x274)]({userMessage:_0x384fd6,attributes:_0x34ba22}){const _0x446968=_0x51392f;if(!this[_0x446968(0x25a)])throw new _0x2bbafa(_0x446968(0x284));if(this[_0x446968(0x25a)][_0x446968(0x2a1)]()){const _0x364ac7=await this[_0x446968(0x293)][_0x446968(0x1e0)]();await this[_0x446968(0x25a)][_0x446968(0x1df)](_0x364ac7);}this[_0x446968(0x25a)]['id']&&this[_0x446968(0x25a)][_0x446968(0x2a3)]&&await this[_0x446968(0x25a)][_0x446968(0x289)]({'userMessage':_0x384fd6,'attributes':_0x34ba22});}[_0x51392f(0x268)](){const _0xef8c37=_0x51392f;console[_0xef8c37(0x26a)](_0xef8c37(0x1c5));}[_0x51392f(0x203)](_0x514739){const _0x1863dc=_0x51392f;this[_0x1863dc(0x1ba)][_0x1863dc(0x2da)](_0x514739);}[_0x51392f(0x271)](_0x3ed67a){const _0x14f70d=_0x51392f;_0x640bca(_0x3ed67a[_0x14f70d(0x1a4)]);}[_0x51392f(0x164)](_0x1a0b6e){const _0x21da86=_0x51392f;this[_0x21da86(0x25a)]?.[_0x21da86(0x19a)](_0x1a0b6e);}[_0x51392f(0x1cb)](){const _0x4acc99=_0x51392f;this[_0x4acc99(0x25a)]?.[_0x4acc99(0x207)]();}[_0x51392f(0x1ea)](){const _0x2bc608=_0x51392f;this[_0x2bc608(0x25a)]?.[_0x2bc608(0x28d)]();}[_0x51392f(0x181)](_0x5ad51b){const _0x2abedd=_0x51392f,[_0x4d2707,_0x561a71]=_0x5ad51b[_0x2abedd(0x1bb)](':'),_0x54d4e5=this[_0x2abedd(0x25a)][_0x2abedd(0x21e)](_0x4d2707),_0x32caeb=_0x54d4e5[_0x2abedd(0x16a)](_0x561a71);return{'interaction':_0x54d4e5,'reply':_0x32caeb};}[_0x51392f(0x177)](_0x5eefad,_0x91ffd0=!0x1){const _0x950d32=_0x51392f,_0x1f0b4d=_0x3d3109(this[_0x950d32(0x1b8)]),_0x49fdac={'target':_0x1f0b4d[_0x950d32(0x2c1)][_0x950d32(0x1c2)][_0x950d32(0x275)][_0x950d32(0x1f6)](_0x1f0b4d[_0x950d32(0x2c1)][_0x950d32(0x1f7)][_0x950d32(0x21c)](_0x5eefad)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x91ffd0};_0x91ffd0&&(_0x49fdac[_0x950d32(0x2c7)]=!0x0),_0x494017(_0x49fdac);}[_0x51392f(0x2b4)](_0x494e49,_0x4a1558=!0x1){const _0x20e1f9=_0x51392f;this[_0x20e1f9(0x1ba)][_0x20e1f9(0x261)](_0x494e49||_0x534e0f(this[_0x20e1f9(0x1b8)][_0x20e1f9(0x215)],_0x20e1f9(0x2de)),_0x4a1558);}async[_0x51392f(0x1d0)]({reply:_0x3707df,renderingStrategy:_0x21b718}){const _0x454ef6=_0x51392f,{id:_0x3c7096,interactionId:_0x41be23,isDone:_0x26646c,type:_0x7b7dcb,parsedContent:_0x409010}=_0x3707df,_0x520abb=_0x41be23+':'+_0x3c7096;if(_0x454ef6(0x176)===_0x7b7dcb){const _0x44b900=_0x3707df[_0x454ef6(0x2cc)]({'showDiff':this[_0x454ef6(0x1ba)][_0x454ef6(0x2b3)]});await this[_0x454ef6(0x1ba)][_0x454ef6(0x22e)]({'id':_0x520abb,'parts':_0x44b900,'renderingStrategy':_0x21b718,'isDone':_0x26646c});}else _0x454ef6(0x1cc)===_0x7b7dcb&&await this[_0x454ef6(0x1ba)][_0x454ef6(0x1eb)]({'id':_0x520abb,'parsedContent':_0x409010,'renderingStrategy':_0x21b718,'isDone':_0x26646c});_0x26646c&&_0x3707df[_0x454ef6(0x281)][_0x454ef6(0x17a)]>0x0&&this[_0x454ef6(0x1ba)][_0x454ef6(0x27f)](_0x520abb,_0x3707df[_0x454ef6(0x281)]);}async[_0x51392f(0x277)](){const _0x5a1d84=_0x51392f,_0x3980e4=this[_0x5a1d84(0x25a)]?.[_0x5a1d84(0x1b6)];_0x3980e4&&(_0x3980e4[_0x5a1d84(0x194)](),this[_0x5a1d84(0x1ba)][_0x5a1d84(0x1b5)](_0x3980e4));}async[_0x51392f(0x276)](){const _0x215ddd=_0x51392f,_0x50a179=this[_0x215ddd(0x25a)]?.[_0x215ddd(0x1b6)];if(_0x50a179){for await(const _0x2619cb of _0x50a179[_0x215ddd(0x252)])await this[_0x215ddd(0x1d0)]({'reply':_0x2619cb,'renderingStrategy':_0x215ddd(0x1d7)});}}[_0x51392f(0x2a2)](_0x189fcc){const _0x5baa3=_0x51392f,_0x31e4da={'positiveCount':_0x189fcc[_0x5baa3(0x1ed)][_0x5baa3(0x260)](_0x2de6ed=>_0x5baa3(0x285)===_0x2de6ed[_0x5baa3(0x283)])[_0x5baa3(0x17a)],'totalCount':_0x189fcc[_0x5baa3(0x1ed)][_0x5baa3(0x17a)],'modificationId':_0x189fcc['id']},_0x5189b3=this[_0x5baa3(0x25a)][_0x5baa3(0x21e)](_0x189fcc[_0x5baa3(0x1db)])[_0x5baa3(0x2c8)];_0x5189b3&&this[_0x5baa3(0x2ba)][_0x5baa3(0x2b6)](this[_0x5baa3(0x25a)]['id'],_0x5189b3,_0x31e4da);}[_0x51392f(0x2df)](_0x272a44){const _0x1172fa=_0x51392f;let _0x57aec3=null,_0xeb7aae=null;this['on'](_0x1172fa(0x25f),(_0x25e26b,_0x634325,_0xb852da)=>{const _0x312652=_0x1172fa;_0xb852da['id']!==_0x57aec3&&(_0x57aec3=_0xb852da['id'],_0xeb7aae=this[_0x312652(0x205)](_0xb852da)),_0x272a44(_0x634325,_0xeb7aae);});}[_0x51392f(0x205)](_0x297fd8){const _0x24d4c5=_0x51392f,_0x5019eb=this[_0x24d4c5(0x1ba)],_0x10b21f=()=>{const _0x147595=_0x24d4c5;_0x297fd8[_0x147595(0x18f)](),_0x297fd8[_0x147595(0x2ad)](),_0x5019eb[_0x147595(0x254)]();},_0x554314=()=>{const _0x1e72b2=_0x24d4c5;_0x297fd8[_0x1e72b2(0x22a)]&&(_0x297fd8[_0x1e72b2(0x22a)][_0x1e72b2(0x291)](),_0x297fd8[_0x1e72b2(0x22a)]=void 0x0);};return{'insertTextReply':(_0x55e754,_0x3995fe)=>{const _0x389ccb=_0x24d4c5;_0x554314(),_0x10b21f();const _0x1d06cd=_0x297fd8[_0x389ccb(0x22a)]=_0x297fd8[_0x389ccb(0x2ca)]({'type':_0x389ccb(0x1cc),'interactionId':_0x297fd8['id'],'content':_0x55e754,'id':_0x3995fe||_0x1837bf()});return _0x554314(),_0x1d06cd;},'insertCustomElement':async(_0x8a248e,_0x3196bf)=>(_0x554314(),_0x10b21f(),_0x5019eb[_0x24d4c5(0x1a6)](_0x8a248e,_0x3196bf||_0x1837bf())),'setLoadingMessage':_0x2598d9=>{const _0x51e90d=_0x24d4c5;_0x5019eb[_0x51e90d(0x185)](_0x2598d9);},'clearLoadingMessage':()=>{const _0x3ab352=_0x24d4c5;_0x5019eb[_0x3ab352(0x254)]();}};}}
|
|
23
|
+
const _0x102c9d=_0x77c5;(function(_0x5b62b1,_0x22aa55){const _0x5c419a=_0x77c5,_0x5f02a2=_0x5b62b1();while(!![]){try{const _0x287fed=-parseInt(_0x5c419a(0x23e))/0x1*(-parseInt(_0x5c419a(0x250))/0x2)+parseInt(_0x5c419a(0x2c1))/0x3+parseInt(_0x5c419a(0x2be))/0x4+-parseInt(_0x5c419a(0x1fe))/0x5+-parseInt(_0x5c419a(0x212))/0x6+parseInt(_0x5c419a(0x373))/0x7*(-parseInt(_0x5c419a(0x20d))/0x8)+-parseInt(_0x5c419a(0x348))/0x9*(-parseInt(_0x5c419a(0x210))/0xa);if(_0x287fed===_0x22aa55)break;else _0x5f02a2['push'](_0x5f02a2['shift']());}catch(_0x47b5fa){_0x5f02a2['push'](_0x5f02a2['shift']());}}}(_0x1ed0,0x34737));import{ContextPlugin as _0x31d929,Editor as _0xb49bf1}from'ckeditor5/src/core.js';import{BodyCollection as _0xaa0105}from'ckeditor5/src/ui.js';import{CKEditorError as _0x302247,logError as _0x5bf06e,scrollViewportToShowTarget as _0x5dad21,uid as _0x31ba12}from'ckeditor5/src/utils.js';import{AIConnector as _0x14f9fd}from'../aicore/aiconnector.js';import{AITabs as _0x367c5c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x460b3a}from'./model/aichatconversation.js';import{getTranslation as _0x394fc2}from'../aicore/utils/common-translations.js';function _0x1ed0(){const _0x4a7d63=['collaboration.channelId','removed','_startConversationSafely','AI_CHAT_GENERIC_ERROR','webSearchFinished','from','data','delegate','dialogClosed','getOperations','setFeedItemAIReplySuggestionPartActive','requires','createPositionFromPath','parse','ai-chat-context-unsupported-file-type','insertSuggestion','lastInteraction','1bpjbyd','listenTo','getChildren','_aiEditing','commands','index','_currentPreviewedChangeGroup','resourceId','toggleSuggestionDisplayMode','resource','clearLoadingMessage','rejected','TrackChangesEditing','getInteractionAndReplyById','interactionDestroyed','load','removeFeedInteraction','sendMessage','3914RZLlgL','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','_createFromRanges','plugins','_handleUIUserMessage','howMany','revert','version','message','disableControls','webSearchStarted','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','locale','undo','isOfficialPlugin','addDocumentToContext','editors','view','getRoot','contextItemLoadingEnded','conversationInitialized','like','loadConversation','populateSourceResourceBalloon','getDocumentData','mouseOverSuggestion','setIsMaximized','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','detachFromDom','AIChatBalloon','resources','interactionFinished','log','maxOffset','showDiff','updateFeedItemAIReplyContent','setConversationTitle','uiId','lastCreated','startInteraction','_applyOperationsAsSuggestions','addUrlToContext','replyContentUpdated','replyCreated','forEach','ai-conversation-','_stopLastInteraction','addResourceToContext','applySuggestion','error','set','afterInit','sendUserMessage','enableControls','toggleReasoning','_insertSuggestion','_openBalloonFor','rootName','previous','addSelectionToChatContext','_flushLastInteractionUI','AIEditing','messageId','isDisabled','range','ai-chat-context-file-too-many-pages','_getUserPresentableContentPartDocumentRange','addFeedItemError','getChild','_batchToChanges','TrackChanges','getAttribute','ai-chat-conversation-start-failed','destroy','partIndex','push','_showConversationHistory','_aiChatUi','isCurrentDocumentInContext','nextSibling','showNext','ai-chat-controller-mouse-over','end','state','AI_CHAT_RESOURCE_LOAD_FAILED','includes','loadSourceResources','_toggleReasoning','setLoadingMessage','main','model','ai-request-aborted','resizedTabs','selection','_rejectSuggestion','_aiChatModels','AI_BALLOON_HEADER_TITLE','cloneNode','start','getGroupId','contextItem','data-id','createReply','history','AIConnector','contextItemRemoved','upsertAIChatRating','getRanges','baseVersion','ai.models.defaultModelId','397024migPxJ','capabilitiesUpdated','getChildAtOffset','98250hRFVsN','abortPromptStream','attachToDom','replies','ai-no-track-changes','addFilesToContext','AI_CHAT_CONTEXT_FILE_TOO_LARGE','toViewRange','_getLastCreatedConversationId','reasoningStarted','clearPendingContextUI','addSelectionToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','ai-chat-context-file-too-large','getConversation','getConversations','toggleWebSearch','Liked\x20response','mapper','resetMessageInput','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_registerToolDataCallback','startConversation','selectModel','map','stopInteraction','updateFeedItemAIReplySuggestionContent','addFeedItemUserMessage','open','currentReply','addFeedItemAIReply','showChangeInText','getPath','_bodyCollection','hasChanges','fetchConversation','batch','slice','ai-chat-file-upload-failed','isStarted','filter','static','AI_CHAT_ABORTED_MESSAGE','alignToTop','Undo','anchorId','_getAIChatInteractionAPI','updateContent','removeSelectionFromContext','_getPresentableSiblingContentPartIndex','accepted','_logError','setState','text','finishInteraction','AI_CHAT_INVALID_REQUEST','updateConversationTitle','getAll','activeConversation','source','removeContextItem','_updateReplyContent','applyOperation','get','showPrevious','ai.models','contextItemAdded','ready','isCurrentDocumentInConversation','$graveyard','next','addFileToContext','_scrollToSuggestionRange','ai-chat-source-resources-load-failed','pluginName','delete','getSelectionText','sourceResourcesLoaded','domConverter','type','remove','setConversationContext','addContextOptionsChanged','new','setContextItemLoading','addFeedItemStaticMessage','find','updateFeedItemAIReplySuggestionPartState','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','viewRangeToDom','indexes','documentContextContent','add','interactionId','change','marker','handleUserInteraction','getDiff','_removeFromContext','mouseLeaveSuggestion','clearConversationContextUI','findIndex','activateTab','replyId','setAddContextOptions','ai-chat-resource-load-failed','sourcePosition','interactionCreated','ai-chat-url-upload-failed','ai-chat-context-form-data-size-limits-exceeded','indexOf','ai-chat-controller-no-active-conversation','editing','resizeTabs','toolDataReceived','uid','modelSelected','sourceId','AIChatUI','_integrateEditor','isPremiumPlugin','DocumentCompare','modification','addCurrentDocumentToContext','AI_CHAT_UNTITLED_CONVERSATION','document','getContentParts','bind','updateCapabilities','setSelectedModel','AI_CHAT_CONTEXT_INVALID_DATA','addFeedInteractionHeader','removeFromContext','pending','interactionStarted','6567741RXLdPi','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-invalid-request','AITabs','isLoading','root','_aiChatBalloonShowDiff','redo','aiChatBalloon','startsWith','path','addCurrentDocumentToChatContext','_updateRatings','resize','Disliked\x20response','toggleLoadingSkeleton','getDocumentContext','prepareLoadingMessage','createConversation','current-document','getTransformedByOperation','scrollFeedToSuggestion','removeSelectionFromChatContext','dislike','split','options','_applySuggestion','closeSourceResourceBalloon','isDocumentOperation','resetConversationTitle','focusPromptInput','getReply','rejectSuggestion','getFirstRange','createPositionAt','sessionId','_handleStartConversation','config','executeCustomItemCallback','toString','length','_aiConnector','updateCurrentDocumentInContext','39179LpckDf','_getDocumentRangeForReplyChanges','close','Showing\x20conversation\x20history...','getInteraction','node','hideFakeVisualSelection','chat','addFeedItemAISuggestion','setFeedItemRenderingStrategy','reasoningFinished','fetchConversations','ai-chat-conversation-init-failed','_setIsMaximized','children','_toggleWebSearch','addContextItem','changes','setIsUploadInProgress','addOperation','setChangeGroupState','callback','isUploadInProgress','764675TFNGET','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','updateFeedItemAIReplySources','stop','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','ai-chat-conversation-not-found','unshift','setModel','createdAt','has','ai-chat-context-invalid-data','streaming','updateResourceState','startAutoScroll','handleRemovedConversation','368lQtMse','ai.chat.context','content','10arFwSv','selectedModel','1430856vGaPLx','areActionsDisabled','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isInContext','ai-chat-missing-channel-id','resourceStateChanged','resetWebSearchState','sources','AIChatController','showFakeVisualSelection','_aiChatBalloon','createRange','replyChangeGroupStateUpdated','contextItems','query','ai-chat-context-unsupported-type','init','uploadProgressChanged','isModelAvailable','addFeedItemCustomElement','outdated','ai.chat.initialConversation','resetReasoningState','context','done','changeGroups','contextSent'];_0x1ed0=function(){return _0x4a7d63;};return _0x1ed0();}import{AIModels as _0x29f6a7}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x16921b}from'../aicore/utils/geteditorfromcontext.js';function _0x77c5(_0x17ebc6,_0x29d426){const _0x1ed03f=_0x1ed0();return _0x77c5=function(_0x77c569,_0x156738){_0x77c569=_0x77c569-0x1e9;let _0x2b55e8=_0x1ed03f[_0x77c569];return _0x2b55e8;},_0x77c5(_0x17ebc6,_0x29d426);}import{DocumentCompare as _0x15cd3d,DATA_ID_MODEL_ATTRIBUTE as _0x533f4e}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x289b77,getOperationsFromReply as _0x4f62e2}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x527f56,getMinimalSelection as _0x43ab2c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x55b05b,_DetachOperation as _0x151737}from'ckeditor5/src/engine.js';import{findOne as _0x1ac4c7,getAttribute as _0x529fa7,serialize as _0x2bf49a,Document as _0x4f64f6,findByAttribute as _0x564a3e}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x31d929{[_0x102c9d(0x241)];[_0x102c9d(0x371)];[_0x102c9d(0x29d)];[_0x102c9d(0x2af)];[_0x102c9d(0x21c)];[_0x102c9d(0x295)]=new Map();[_0x102c9d(0x244)]=null;[_0x102c9d(0x2e2)];static get[_0x102c9d(0x238)](){return[_0x14f9fd,_0x15cd3d];}static get[_0x102c9d(0x30b)](){const _0x2670c0=_0x102c9d;return _0x2670c0(0x21a);}static get[_0x102c9d(0x25e)](){return!0x0;}static get[_0x102c9d(0x339)](){return!0x0;}[_0x102c9d(0x222)](){const _0x266443=_0x102c9d;this[_0x266443(0x2e2)]=new _0xaa0105(this[_0x266443(0x229)][_0x266443(0x25c)]),this[_0x266443(0x2e2)][_0x266443(0x2c3)](),this[_0x266443(0x371)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x2b8)),this[_0x266443(0x29d)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x337)),this[_0x266443(0x241)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x28d)),this[_0x266443(0x2af)]=new _0x29f6a7({'connector':this[_0x266443(0x371)],'config':this[_0x266443(0x229)][_0x266443(0x36d)][_0x266443(0x300)](_0x266443(0x302)),'locale':this[_0x266443(0x229)][_0x266443(0x25c)]});const _0xa481b7=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x34b));this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2d7),()=>{const _0x3900f0=_0x266443;this[_0x3900f0(0x22f)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x284),(_0x1d8799,_0x193916)=>{const _0x36d60e=_0x266443;this[_0x36d60e(0x254)]({'userMessage':_0x193916});}),this[_0x266443(0x23f)](_0xa481b7,_0x266443(0x2ac),(_0x3be252,_0x70c09e)=>{const _0x2310ac=_0x266443;this[_0x2310ac(0x1f4)](_0x70c09e);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x332),()=>{const _0x4f73f6=_0x266443;_0xa481b7[_0x4f73f6(0x355)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2c2),async()=>{const _0x44fbcb=_0x266443;await this[_0x44fbcb(0x27e)](),await this[_0x44fbcb(0x28c)](),this[_0x44fbcb(0x35e)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x25f),()=>{const _0x4b6757=_0x266443;this[_0x4b6757(0x353)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x308),(_0x39b65b,_0x577531)=>{const _0x671f53=_0x266443;this[_0x671f53(0x2fb)]?.[_0x671f53(0x2c6)](Array[_0x671f53(0x232)](_0x577531));}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x279),(_0x123109,_0x109f46)=>{const _0x5ef306=_0x266443;this[_0x5ef306(0x2fb)]?.[_0x5ef306(0x279)](_0x109f46);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x36e),(_0x505634,_0x17e818)=>{const _0x3921b6=_0x266443;_0x17e818[_0x3921b6(0x1fc)](this[_0x3921b6(0x229)]);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x27f),(_0x1f9401,_0x17b779)=>{const _0x5be2c9=_0x266443;this[_0x5be2c9(0x2fb)]?.[_0x5be2c9(0x27f)](_0x17b779[_0x5be2c9(0x2fc)],_0x17b779[_0x5be2c9(0x247)]);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2fd),(_0x1ba95a,_0x310859)=>{const _0x5386fe=_0x266443;this[_0x5386fe(0x323)](_0x310859);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2a6),(_0x4e7282,_0x115dcd)=>{const _0x590df9=_0x266443;this[_0x590df9(0x2fb)]?.[_0x590df9(0x2a6)](_0x115dcd[_0x590df9(0x336)],_0x115dcd[_0x590df9(0x220)],_0x115dcd[_0x590df9(0x334)]);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2d1),()=>{const _0x1c4c0b=_0x266443;this[_0x1c4c0b(0x1f6)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x286),()=>{const _0x530e11=_0x266443;this[_0x530e11(0x2a7)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2d8),(_0x181d11,_0x2b811c)=>{const _0x547373=_0x266443;this[_0x547373(0x2fb)]?.[_0x547373(0x205)](_0x2b811c);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x265),(_0xc1e828,{replyId:_0x2af49f})=>{const _0x57c422=_0x266443;console[_0x57c422(0x270)](_0x57c422(0x2d2),_0x2af49f);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x35f),(_0x5ab0fd,{replyId:_0x54040b})=>{const _0x41163c=_0x266443;console[_0x41163c(0x270)](_0x41163c(0x356),_0x54040b);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x23c),(_0x4188d4,_0x36376c)=>{const _0xeaaf3c=_0x266443;this[_0xeaaf3c(0x287)](_0x36376c);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2e0),(_0x1c89eb,{replyId:_0x3fd2cc,partIndex:_0xddbe9b})=>{const _0x10e16d=_0x266443;this[_0x10e16d(0x34e)]=this[_0x10e16d(0x29d)][_0x10e16d(0x272)],this[_0x10e16d(0x288)](_0x3fd2cc,_0xddbe9b);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x269),(_0xd27cbe,{replyId:_0x34597f,partIndex:_0x342b6b})=>{const _0x139d05=_0x266443,_0x12aa5d=this[_0x139d05(0x374)](_0x34597f,_0x342b6b);_0x12aa5d&&_0x139d05(0x306)!=_0x12aa5d[_0x139d05(0x290)][_0x139d05(0x34d)][_0x139d05(0x289)]&&this[_0x139d05(0x241)][_0x139d05(0x21b)]([_0x12aa5d[_0x139d05(0x290)]],_0x139d05(0x2a1));}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x324),()=>{const _0x4b407e=_0x266443;this[_0x4b407e(0x241)][_0x4b407e(0x1ed)](_0x4b407e(0x2a1));}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x280),(_0x5c7007,_0x3854db)=>{const _0x59b47b=_0x266443;this[_0x59b47b(0x241)][_0x59b47b(0x1ed)](_0x59b47b(0x2a1)),this[_0x59b47b(0x362)](_0x3854db);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x246),async(_0x257ca4,{replyId:_0x89546,showDiff:_0x5b5f99})=>{const _0x55234a=_0x266443,{reply:_0x2ac6b3}=this[_0x55234a(0x24b)](_0x89546),_0x20ee1f=_0x2ac6b3[_0x55234a(0x33f)]({'showDiff':_0x5b5f99});await this[_0x55234a(0x29d)][_0x55234a(0x2db)]({'id':_0x2ac6b3['id'],'parts':_0x20ee1f,'renderingStrategy':_0x55234a(0x2ea)});}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x368),(_0x17d2bb,{replyId:_0x1acc64,partIndex:_0xd67d05})=>{const _0x205c4a=_0x266443;this[_0x205c4a(0x2ae)]({'replyId':_0x1acc64,'partIndex':_0xd67d05}),this[_0x205c4a(0x241)][_0x205c4a(0x1ed)](_0x205c4a(0x2a1));}),this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x207)](_0x266443(0x26d))&&(this[_0x266443(0x21c)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x26d)),this[_0x266443(0x282)](_0x266443(0x34e),!0x1),this[_0x266443(0x21c)][_0x266443(0x340)](_0x266443(0x272))['to'](this,_0x266443(0x34e)),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x246),()=>{const _0x443925=_0x266443,{replyId:_0x5019b3,partIndex:_0x2f768a}=this[_0x443925(0x244)];this[_0x443925(0x34e)]=!this[_0x443925(0x34e)];const {reply:_0xfc40f1}=this[_0x443925(0x24b)](_0x5019b3),_0x1b0482=_0xfc40f1[_0x443925(0x33f)]({'showDiff':this[_0x443925(0x34e)],'groupIndex':_0x2f768a});this[_0x443925(0x21c)][_0x443925(0x2f0)]({'part':_0x1b0482[0x0],'renderingStrategy':_0x443925(0x2ea),'keepErrors':!0x0});}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x280),()=>{const _0x5b35a7=_0x266443,{replyId:_0x5375bf,partIndex:_0x1f45c3}=this[_0x5b35a7(0x244)];this[_0x5b35a7(0x362)]({'replyId':_0x5375bf,'partIndex':_0x1f45c3}),this[_0x5b35a7(0x21c)][_0x5b35a7(0x2f5)](_0x5b35a7(0x2f3));}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x23c),()=>{const _0x12ba62=_0x266443,{replyId:_0x48753e,partIndex:_0x4940ca}=this[_0x12ba62(0x244)];this[_0x12ba62(0x287)]({'replyId':_0x48753e,'partIndex':_0x4940ca}),this[_0x12ba62(0x21c)][_0x12ba62(0x2f5)](_0x12ba62(0x2f3));}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x368),()=>{const _0x2148dc=_0x266443,{replyId:_0x37854b,partIndex:_0x1ba292}=this[_0x2148dc(0x244)];this[_0x2148dc(0x2ae)]({'replyId':_0x37854b,'partIndex':_0x1ba292}),this[_0x2148dc(0x21c)][_0x2148dc(0x2f5)](_0x2148dc(0x249));}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x2a0),()=>{const _0x40f96c=_0x266443,{replyId:_0x5b9d3d,partIndex:_0x2a157e}=this[_0x40f96c(0x244)],_0x4d0b50=this[_0x40f96c(0x2f2)](_0x5b9d3d,_0x2a157e,_0x40f96c(0x307));null!==_0x4d0b50&&this[_0x40f96c(0x288)](_0x5b9d3d,_0x4d0b50);}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x301),()=>{const _0xa8f27c=_0x266443,{replyId:_0x2d8633,partIndex:_0x299c45}=this[_0xa8f27c(0x244)],_0x457d42=this[_0xa8f27c(0x2f2)](_0x2d8633,_0x299c45,_0xa8f27c(0x28a));null!==_0x457d42&&this[_0xa8f27c(0x288)](_0x2d8633,_0x457d42);}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x235),(_0x3adf3c,{id:_0x4dc695})=>{const _0x52089d=_0x266443;if(_0x52089d(0x350)!==_0x4dc695)return;const {replyId:_0x2d824c,partIndex:_0x58c491}=this[_0x52089d(0x244)];this[_0x52089d(0x244)]=null,this[_0x52089d(0x29d)][_0x52089d(0x237)]({'id':_0x2d824c,'index':_0x58c491,'isActive':!0x1});}));}async[_0x102c9d(0x283)](){const _0x5eddca=_0x102c9d;this[_0x5eddca(0x229)]instanceof _0xb49bf1?this[_0x5eddca(0x338)](this[_0x5eddca(0x229)]):this[_0x5eddca(0x23f)](this[_0x5eddca(0x229)][_0x5eddca(0x260)],_0x5eddca(0x31d),(_0x21c47d,_0x602ba3)=>{const _0x2048ba=_0x5eddca;_0x602ba3['on'](_0x2048ba(0x304),()=>{const _0x23cf9d=_0x2048ba;this[_0x23cf9d(0x338)](_0x602ba3);});});const _0xb218a=this[_0x5eddca(0x229)][_0x5eddca(0x36d)][_0x5eddca(0x300)](_0x5eddca(0x227));let _0x2832b2=_0xb218a;if(_0x5eddca(0x276)!=_0xb218a||(_0x2832b2=await this[_0x5eddca(0x2c9)](),_0x2832b2))return _0x5eddca(0x314)==_0x2832b2?this[_0x5eddca(0x22f)]():this[_0x5eddca(0x266)](_0x2832b2);}async[_0x102c9d(0x299)](){const _0x1c8e48=_0x102c9d;return await this[_0x1c8e48(0x27e)](),this[_0x1c8e48(0x2e2)][_0x1c8e48(0x26c)](),super[_0x1c8e48(0x299)]();}[_0x102c9d(0x287)](_0x12a340){const _0x2212a4=_0x102c9d,_0x5e924b=_0x16921b(this[_0x2212a4(0x229)]);if(!_0x5e924b[_0x2212a4(0x253)][_0x2212a4(0x207)](_0x2212a4(0x296)))throw new _0x302247(_0x2212a4(0x2c5),null);const _0x37c998=this[_0x2212a4(0x229)][_0x2212a4(0x253)][_0x2212a4(0x300)](_0x2212a4(0x33a)),{reply:_0x207a76,interaction:_0x3799e8}=this[_0x2212a4(0x24b)](_0x12a340[_0x2212a4(0x328)]),_0x1f1eda=this[_0x2212a4(0x374)](_0x12a340[_0x2212a4(0x328)],_0x12a340[_0x2212a4(0x29a)]),_0x1089ff=void 0x0!==_0x12a340[_0x2212a4(0x29a)]?[_0x207a76[_0x2212a4(0x22b)][_0x12a340[_0x2212a4(0x29a)]]]:_0x207a76[_0x2212a4(0x22b)][_0x2212a4(0x2e9)](_0x541eca=>_0x2212a4(0x346)==_0x541eca[_0x2212a4(0x2a3)]),_0x38557d=_0x1089ff[_0x2212a4(0x2d9)](_0x1f3e15=>_0x207a76[_0x2212a4(0x22b)][_0x2212a4(0x32f)](_0x1f3e15));if(!_0x1f1eda||_0x2212a4(0x306)==_0x1f1eda[_0x2212a4(0x290)][_0x2212a4(0x34d)][_0x2212a4(0x289)])return void _0x38557d[_0x2212a4(0x27c)](_0x294b24=>_0x207a76[_0x2212a4(0x1fb)](_0x294b24,_0x2212a4(0x226)));_0x38557d[_0x2212a4(0x27c)](_0x2b5fde=>_0x207a76[_0x2212a4(0x1fb)](_0x2b5fde,_0x2212a4(0x2f3)));const _0x3d76bf=_0x4f62e2({'editor':_0x5e924b,'reply':_0x207a76,'interaction':_0x3799e8,'groups':_0x1089ff,'transform':!0x0,'documentCompare':_0x37c998,'documentCompareOptions':{'anchor':_0x2212a4(0x2a9),'markDeletions':!0x0}});let _0x3d4356;_0x1f1eda&&this[_0x2212a4(0x309)](_0x1f1eda[_0x2212a4(0x290)]),_0x5e924b[_0x2212a4(0x2aa)][_0x2212a4(0x31f)](_0x9784bb=>{const _0xf20a59=_0x2212a4;_0x3d4356=_0x9784bb[_0xf20a59(0x2e5)],_0x5e924b[_0xf20a59(0x253)][_0xf20a59(0x300)](_0xf20a59(0x24a))[_0xf20a59(0x278)](_0x3d76bf),this[_0xf20a59(0x241)][_0xf20a59(0x1ed)](_0xf20a59(0x2a1));}),this[_0x2212a4(0x295)][_0x2212a4(0x282)](_0x3d4356,{'interactionId':_0x3799e8['id'],'replyId':_0x207a76['id'],'indexes':_0x38557d[_0x2212a4(0x2e6)]()}),this[_0x2212a4(0x354)](_0x207a76);}[_0x102c9d(0x362)](_0x45abd6){const _0x32fe27=_0x102c9d,_0x123d57=_0x16921b(this[_0x32fe27(0x229)]),_0x157245=this[_0x32fe27(0x229)][_0x32fe27(0x253)][_0x32fe27(0x300)](_0x15cd3d),{reply:_0x363053,interaction:_0x30c16d}=this[_0x32fe27(0x24b)](_0x45abd6[_0x32fe27(0x328)]),_0x118fd8=this[_0x32fe27(0x374)](_0x45abd6[_0x32fe27(0x328)],_0x45abd6[_0x32fe27(0x29a)]),_0x2c4e55=void 0x0!==_0x45abd6[_0x32fe27(0x29a)]?[_0x363053[_0x32fe27(0x22b)][_0x45abd6[_0x32fe27(0x29a)]]]:_0x363053[_0x32fe27(0x22b)][_0x32fe27(0x2e9)](_0xaa2e94=>_0x32fe27(0x346)==_0xaa2e94[_0x32fe27(0x2a3)]),_0x1128c9=_0x2c4e55[_0x32fe27(0x2d9)](_0x4b7db0=>_0x363053[_0x32fe27(0x22b)][_0x32fe27(0x32f)](_0x4b7db0));if(!_0x118fd8||_0x32fe27(0x306)==_0x118fd8[_0x32fe27(0x290)][_0x32fe27(0x34d)][_0x32fe27(0x289)])return void _0x1128c9[_0x32fe27(0x27c)](_0x398511=>_0x363053[_0x32fe27(0x1fb)](_0x398511,_0x32fe27(0x226)));_0x1128c9[_0x32fe27(0x27c)](_0x54d16c=>_0x363053[_0x32fe27(0x1fb)](_0x54d16c,_0x32fe27(0x2f3)));const _0x54fb69=_0x4f62e2({'editor':_0x123d57,'reply':_0x363053,'interaction':_0x30c16d,'groups':_0x2c4e55,'transform':!0x0,'documentCompare':_0x157245,'documentCompareOptions':{'anchor':_0x32fe27(0x2a9),'markDeletions':!0x1}});let _0x3670fb;_0x118fd8&&this[_0x32fe27(0x309)](_0x118fd8[_0x32fe27(0x290)]),_0x123d57[_0x32fe27(0x2aa)][_0x32fe27(0x31f)](_0x1382d7=>{const _0x21f7bb=_0x32fe27;_0x3670fb=_0x1382d7[_0x21f7bb(0x2e5)];for(const _0x238fc8 of _0x54fb69)_0x238fc8[_0x21f7bb(0x2bc)]=_0x123d57[_0x21f7bb(0x2aa)][_0x21f7bb(0x33e)][_0x21f7bb(0x257)],_0x289b77(_0x123d57,_0x238fc8),_0x1382d7[_0x21f7bb(0x2e5)][_0x21f7bb(0x1fa)](_0x238fc8),_0x123d57[_0x21f7bb(0x2aa)][_0x21f7bb(0x2ff)](_0x238fc8);}),this[_0x32fe27(0x295)][_0x32fe27(0x282)](_0x3670fb,{'interactionId':_0x30c16d['id'],'replyId':_0x363053['id'],'indexes':_0x1128c9[_0x32fe27(0x2e6)]()}),this[_0x32fe27(0x354)](_0x363053);}[_0x102c9d(0x2ae)](_0x578d5b){const _0x598b4c=_0x102c9d,{reply:_0x1fc87d}=this[_0x598b4c(0x24b)](_0x578d5b[_0x598b4c(0x328)]);_0x1fc87d[_0x598b4c(0x1fb)](_0x578d5b[_0x598b4c(0x29a)],_0x598b4c(0x249));}[_0x102c9d(0x288)](_0x32f50c,_0x3db501){const _0x3befbf=_0x102c9d;if(!this[_0x3befbf(0x21c)])return;const {reply:_0x2f1c07}=this[_0x3befbf(0x24b)](_0x32f50c),_0xce11cf=_0x2f1c07[_0x3befbf(0x33f)]({'showDiff':this[_0x3befbf(0x34e)]});let _0x3e3a4b,_0x573451;if(void 0x0!==_0x3db501?(_0x573451=_0xce11cf[_0x3befbf(0x317)](_0x32406c=>_0x32406c[_0x3befbf(0x243)]==_0x3db501),_0x3e3a4b=_0x573451?.[_0x3befbf(0x243)]):(_0x573451=_0xce11cf[0x0],_0x3e3a4b=_0x573451[_0x3befbf(0x243)]),this[_0x3befbf(0x244)]?.[_0x3befbf(0x328)]==_0x32f50c&&this[_0x3befbf(0x244)]?.[_0x3befbf(0x29a)]==_0x3e3a4b)return;const _0x5201c3=this[_0x3befbf(0x292)](_0x32f50c,_0x2f1c07,_0x573451);if(!_0x5201c3)return void this[_0x3befbf(0x21c)][_0x3befbf(0x1e9)]();this[_0x3befbf(0x244)]={'replyId':_0x32f50c,'partIndex':_0x3e3a4b},this[_0x3befbf(0x309)](_0x5201c3,!0x0);const _0x2b381d=this[_0x3befbf(0x2f2)](_0x32f50c,_0x3e3a4b,_0x3befbf(0x307));this[_0x3befbf(0x21c)][_0x3befbf(0x2f0)]({'part':_0x573451,'renderingStrategy':_0x3befbf(0x2ea)}),this[_0x3befbf(0x21c)][_0x3befbf(0x2dd)]({'index':_0x3e3a4b,'title':_0x394fc2(this[_0x3befbf(0x229)][_0x3befbf(0x25c)],_0x3befbf(0x2b0),(_0x3e3a4b+0x1)[_0x3befbf(0x36f)]()),'showRotator':null!==_0x2b381d,'ranges':[_0x5201c3],'areActionsDisabled':_0x2f1c07[_0x3befbf(0x213)]}),this[_0x3befbf(0x21c)][_0x3befbf(0x2f5)](_0x3befbf(0x346)),this[_0x3befbf(0x29d)][_0x3befbf(0x35d)](_0x32f50c,_0x3e3a4b),this[_0x3befbf(0x29d)][_0x3befbf(0x237)]({'id':_0x32f50c,'index':_0x3e3a4b,'isActive':!0x0});}[_0x102c9d(0x2f2)](_0x2c213d,_0x17df30,_0x2e9fa5){const _0x4dc3f7=_0x102c9d,{reply:_0x44af38}=this[_0x4dc3f7(0x24b)](_0x2c213d),_0x33f9f7=_0x44af38[_0x4dc3f7(0x33f)]({'showDiff':this[_0x4dc3f7(0x34e)]});if(0x1==_0x33f9f7[_0x4dc3f7(0x370)])return null;const _0x49d9d2=_0x33f9f7[_0x4dc3f7(0x326)](_0x268c51=>_0x268c51[_0x4dc3f7(0x243)]==_0x17df30),_0x7b4800=_0x4dc3f7(0x307)==_0x2e9fa5?0x1:-0x1;let _0xedfae3=_0x33f9f7['at']((_0x49d9d2+_0x7b4800)%_0x33f9f7[_0x4dc3f7(0x370)])[_0x4dc3f7(0x243)],_0x5eebe5=_0x33f9f7[_0xedfae3];for(;!this[_0x4dc3f7(0x292)](_0x2c213d,_0x44af38,_0x5eebe5);){if(_0xedfae3=_0x33f9f7['at']((_0xedfae3+_0x7b4800)%_0x33f9f7[_0x4dc3f7(0x370)])[_0x4dc3f7(0x243)],_0xedfae3===_0x49d9d2)return null;_0x5eebe5=_0x33f9f7[_0xedfae3];}return _0xedfae3;}[_0x102c9d(0x292)](_0x5c084e,_0x544811,_0x32c8d6){const _0x2aa94c=_0x102c9d,_0x5a420c=_0x544811[_0x2aa94c(0x22b)];if(!_0x32c8d6[_0x2aa94c(0x2e3)])return null;const _0x2165a5=_0x5a420c[_0x2aa94c(0x317)](_0x1583f6=>_0x1583f6[_0x2aa94c(0x243)]==_0x32c8d6[_0x2aa94c(0x243)]);if(_0x2aa94c(0x346)!==_0x2165a5?.[_0x2aa94c(0x2a3)])return null;const _0x2fb53a=this[_0x2aa94c(0x374)](_0x5c084e,_0x32c8d6[_0x2aa94c(0x243)]);if(!_0x2fb53a)return null;const {range:_0x58f85f,currentIndex:_0x1a17fa}=_0x2fb53a;return _0x2aa94c(0x306)==_0x58f85f[_0x2aa94c(0x34d)][_0x2aa94c(0x289)]?(_0x544811[_0x2aa94c(0x1fb)](_0x1a17fa,_0x2aa94c(0x226)),null):_0x2fb53a[_0x2aa94c(0x290)];}[_0x102c9d(0x374)](_0x210b93,_0x4c3f75){const _0x34c68f=_0x102c9d,_0x10d4c6=_0x16921b(this[_0x34c68f(0x229)]),{reply:_0x441411,interaction:_0x8802be}=this[_0x34c68f(0x24b)](_0x210b93),_0x3f4c02=_0x441411[_0x34c68f(0x22b)][_0x34c68f(0x2e9)](_0x3f4d36=>_0x34c68f(0x346)==_0x3f4d36[_0x34c68f(0x2a3)]),_0x5db061=_0x3f4c02[_0x34c68f(0x2d9)](_0x22b1d7=>_0x441411[_0x34c68f(0x22b)][_0x34c68f(0x32f)](_0x22b1d7));void 0x0===_0x4c3f75&&(_0x4c3f75=_0x5db061[0x0]);const _0x516d01=_0x5db061[_0x34c68f(0x32f)](_0x4c3f75);if(-0x1==_0x516d01)return null;const _0x585bd8=_0x3f4c02[_0x516d01],_0x42934e=new _0x4f64f6([]),_0x574831=new _0x4f64f6([]);for(const _0x47ad3b of _0x585bd8[_0x34c68f(0x1f8)])if(_0x34c68f(0x22e)!=_0x47ad3b[_0x34c68f(0x310)]&&_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x47ad3b[_0x34c68f(0x1ec)][_0x34c68f(0x2b1)](!0x0)),_0x34c68f(0x314)!=_0x47ad3b[_0x34c68f(0x310)]){const _0x2d7b60=_0x1ac4c7(_0x2a9007=>_0x529fa7(_0x2a9007,_0x34c68f(0x2b5))==_0x47ad3b['id'],_0x441411[_0x34c68f(0x31c)],!0x0);_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x2d7b60[_0x34c68f(0x2b1)](!0x0));}if(0x0==_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x370)]){if(_0x585bd8[_0x34c68f(0x1f8)][0x0][_0x34c68f(0x2ee)]){const _0x4038d4=_0x564a3e(_0x34c68f(0x2b5),_0x585bd8[_0x34c68f(0x1f8)][0x0][_0x34c68f(0x2ee)],_0x441411[_0x34c68f(0x31c)]);_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x204)](_0x4038d4[_0x34c68f(0x2b1)](!0x0)),_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x204)](_0x4038d4[_0x34c68f(0x2b1)](!0x0)),_0x4038d4[_0x34c68f(0x29f)]&&(_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x4038d4[_0x34c68f(0x29f)][_0x34c68f(0x2b1)](!0x0)),_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x4038d4[_0x34c68f(0x29f)][_0x34c68f(0x2b1)](!0x0)));}else{const _0x179c54=_0x441411[_0x34c68f(0x31c)][_0x34c68f(0x1f5)][0x0];if(!_0x179c54)return null;_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x179c54[_0x34c68f(0x2b1)](!0x0)),_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x179c54[_0x34c68f(0x2b1)](!0x0));}}const _0x35ad26=_0x8802be[_0x34c68f(0x358)](),_0x233b67=_0x10d4c6[_0x34c68f(0x233)][_0x34c68f(0x23a)](_0x35ad26[_0x34c68f(0x20f)]),_0x3715a2=_0x2bf49a(_0x42934e),_0x9f69c8=_0x10d4c6[_0x34c68f(0x233)][_0x34c68f(0x23a)](_0x3715a2),_0x1491b1=_0x10d4c6[_0x34c68f(0x233)][_0x34c68f(0x23a)](_0x3715a2),_0x4b700c=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x36a)](_0x9f69c8,0x0),_0x33e8f2=_0x2bf49a(_0x574831),_0xe5409d={'anchor':_0x4b700c,'markDeletions':!0x1},_0x104a3b=_0x10d4c6[_0x34c68f(0x253)][_0x34c68f(0x300)](_0x15cd3d)[_0x34c68f(0x322)](_0x3715a2,_0x33e8f2,_0xe5409d)[_0x34c68f(0x236)]();if(!_0x104a3b[_0x34c68f(0x370)])return null;_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x31f)](_0x5c11c2=>{const _0x950e51=_0x34c68f;for(const _0x2d4b46 of _0x104a3b)if(_0x950e51(0x311)==_0x2d4b46[_0x950e51(0x310)]){const _0x57f395=_0x2d4b46[_0x950e51(0x32b)],_0x4bba9c=_0x2d4b46[_0x950e51(0x255)],_0x187253=new _0x151737(_0x57f395,_0x4bba9c);_0x5c11c2[_0x950e51(0x2e5)][_0x950e51(0x1fa)](_0x187253),_0x10d4c6[_0x950e51(0x2aa)][_0x950e51(0x2ff)](_0x187253);}else _0x950e51(0x320)!==_0x2d4b46[_0x950e51(0x310)]&&(_0x2d4b46[_0x950e51(0x2bc)]=null,_0x2d4b46[_0x950e51(0x364)]=!0x1,_0x5c11c2[_0x950e51(0x2e5)][_0x950e51(0x1fa)](_0x2d4b46),_0x10d4c6[_0x950e51(0x2aa)][_0x950e51(0x2ff)](_0x2d4b46));});const _0x84bb3=_0x43ab2c(_0x10d4c6,_0x104a3b,_0x9f69c8);_0x527f56(_0x10d4c6[_0x34c68f(0x2aa)],_0x84bb3);const _0x2f2be0=_0x84bb3[_0x34c68f(0x369)]()[_0x34c68f(0x2b2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)](),_0x87ce3e=_0x84bb3[_0x34c68f(0x369)]()[_0x34c68f(0x2a2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)](),_0x420df2=[];let _0x1d7023=_0x9f69c8,_0x19c669=_0x1491b1;for(let _0x16baa6=0x0;_0x16baa6<_0x87ce3e[_0x34c68f(0x370)];_0x16baa6++){const _0x40339d=_0x1d7023[_0x34c68f(0x271)]-_0x87ce3e[_0x16baa6];_0x420df2[_0x16baa6]=_0x19c669[_0x34c68f(0x271)]-_0x40339d,_0x1d7023=_0x1d7023[_0x34c68f(0x2c0)](_0x87ce3e[_0x16baa6]),_0x19c669=_0x19c669[_0x34c68f(0x2c0)](_0x420df2[_0x16baa6]);}const _0x31080b=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x21d)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x1491b1,_0x2f2be0),_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x1491b1,_0x420df2)),_0x2fa0a4=_0x1491b1[_0x34c68f(0x294)](0x0)[_0x34c68f(0x297)](_0x533f4e),_0x40b5f4=Array[_0x34c68f(0x232)](_0x233b67[_0x34c68f(0x240)]())[_0x34c68f(0x317)](_0x4a357b=>_0x4a357b[_0x34c68f(0x297)](_0x533f4e)==_0x2fa0a4)[_0x34c68f(0x2e1)](),_0xc8e5a3=_0x31080b[_0x34c68f(0x2b2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)](),_0x39e94=_0x31080b[_0x34c68f(0x2a2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)]();_0xc8e5a3[0x0]=_0x40b5f4[0x0]+_0xc8e5a3[0x0],_0x39e94[0x0]=_0x40b5f4[0x0]+_0x39e94[0x0];let _0x1fee57=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x21d)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x33e)][_0x34c68f(0x262)](),_0xc8e5a3),_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x33e)][_0x34c68f(0x262)](),_0x39e94));const _0x1c4fab=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x33e)][_0x34c68f(0x2b7)][_0x34c68f(0x236)](_0x35ad26[_0x34c68f(0x257)]);for(const _0x12a85a of _0x1c4fab)_0x1fee57=_0x55b05b[_0x34c68f(0x252)](_0x1fee57[_0x34c68f(0x35c)](_0x12a85a));return{'range':_0x1fee57,'currentIndex':_0x4c3f75};}[_0x102c9d(0x338)](_0x4b0798){const _0x44c9be=_0x102c9d;if(!_0x4b0798[_0x44c9be(0x253)][_0x44c9be(0x207)](_0x44c9be(0x2ed)))return;const _0x25d6bb=_0x4b0798[_0x44c9be(0x242)][_0x44c9be(0x300)](_0x44c9be(0x25d)),_0x46716e=_0x4b0798[_0x44c9be(0x242)][_0x44c9be(0x300)](_0x44c9be(0x34f));this[_0x44c9be(0x23f)](_0x25d6bb,_0x44c9be(0x256),(_0x25771f,_0x12a693,_0x47c597)=>{const _0xa14773=_0x44c9be,_0x2b1c87=this[_0xa14773(0x295)][_0xa14773(0x300)](_0x12a693);if(!_0x2b1c87)return;const _0x3f4007=this[_0xa14773(0x2fb)][_0xa14773(0x1eb)](_0x2b1c87[_0xa14773(0x31e)])[_0xa14773(0x367)](_0x2b1c87[_0xa14773(0x328)]);_0x2b1c87[_0xa14773(0x31b)][_0xa14773(0x27c)](_0x1c7c9b=>_0x3f4007[_0xa14773(0x1fb)](_0x1c7c9b,_0xa14773(0x346))),this[_0xa14773(0x295)][_0xa14773(0x30c)](_0x12a693),this[_0xa14773(0x295)][_0xa14773(0x282)](_0x47c597,_0x2b1c87);}),this[_0x44c9be(0x23f)](_0x46716e,_0x44c9be(0x256),(_0x50dfac,_0x1fdc0c,_0x475ff3)=>{const _0x25cf92=_0x44c9be,_0x15e792=this[_0x25cf92(0x295)][_0x25cf92(0x300)](_0x1fdc0c);if(!_0x15e792)return;const _0x2c62d3=this[_0x25cf92(0x2fb)][_0x25cf92(0x1eb)](_0x15e792[_0x25cf92(0x31e)])[_0x25cf92(0x367)](_0x15e792[_0x25cf92(0x328)]);_0x15e792[_0x25cf92(0x31b)][_0x25cf92(0x27c)](_0x3313f1=>_0x2c62d3[_0x25cf92(0x1fb)](_0x3313f1,_0x25cf92(0x2f3))),this[_0x25cf92(0x295)][_0x25cf92(0x30c)](_0x1fdc0c),this[_0x25cf92(0x295)][_0x25cf92(0x282)](_0x475ff3,_0x15e792);});}async[_0x102c9d(0x266)](_0x228875){const _0x503fbb=_0x102c9d;this[_0x503fbb(0x229)][_0x503fbb(0x253)][_0x503fbb(0x207)](_0x503fbb(0x26d))&&this[_0x503fbb(0x229)][_0x503fbb(0x253)][_0x503fbb(0x300)](_0x503fbb(0x26d))[_0x503fbb(0x1e9)](),(this[_0x503fbb(0x229)][_0x503fbb(0x253)][_0x503fbb(0x300)](_0x367c5c)[_0x503fbb(0x261)][_0x503fbb(0x327)](_0x503fbb(0x1ee)),this[_0x503fbb(0x29d)][_0x503fbb(0x1f0)](_0x503fbb(0x2ea)),this[_0x503fbb(0x29d)][_0x503fbb(0x357)](!0x0),await this[_0x503fbb(0x27e)]());try{await this[_0x503fbb(0x371)][_0x503fbb(0x2e4)](_0x228875)[_0x503fbb(0x2cf)](),await this[_0x503fbb(0x22f)](_0x228875),this[_0x503fbb(0x2f9)]('\x20'),await this[_0x503fbb(0x2fb)][_0x503fbb(0x24d)](_0x228875,this[_0x503fbb(0x241)][_0x503fbb(0x36b)]),this[_0x503fbb(0x2fb)][_0x503fbb(0x305)]()&&this[_0x503fbb(0x353)]();}catch(_0x3453e3){this[_0x503fbb(0x29d)][_0x503fbb(0x293)]({'errorMessage':_0x394fc2(this[_0x503fbb(0x229)][_0x503fbb(0x25c)],_0x503fbb(0x25b)),'id':_0x228875}),this[_0x503fbb(0x2f4)](new _0x302247(_0x503fbb(0x203),this,{'error':_0x3453e3}));}finally{this[_0x503fbb(0x29d)][_0x503fbb(0x20b)](),this[_0x503fbb(0x29d)][_0x503fbb(0x1f0)](_0x503fbb(0x209)),this[_0x503fbb(0x29d)][_0x503fbb(0x357)](!0x1);}}async[_0x102c9d(0x2c9)](){const _0x2550f2=_0x102c9d,_0x3bc019=this[_0x2550f2(0x371)][_0x2550f2(0x1f2)](this[_0x2550f2(0x2b3)](),{'limit':0x1,'sortBy':_0x2550f2(0x206)});try{const _0x1ef9e1=await _0x3bc019[_0x2550f2(0x2d0)]();return _0x1ef9e1[_0x2550f2(0x370)]?_0x1ef9e1[0x0]['id']:_0x2550f2(0x314);}catch(_0x41989b){return this[_0x2550f2(0x29d)][_0x2550f2(0x293)]({'errorMessage':_0x394fc2(this[_0x2550f2(0x229)][_0x2550f2(0x25c)],_0x2550f2(0x25b)),'id':_0x31ba12()}),this[_0x2550f2(0x2f4)](new _0x302247(_0x2550f2(0x1f3),this,{'error':_0x41989b})),this[_0x2550f2(0x29d)][_0x2550f2(0x357)](!0x1),this[_0x2550f2(0x29d)][_0x2550f2(0x259)](),null;}}[_0x102c9d(0x20c)](_0x1c5e14){const _0x3a096a=_0x102c9d;this[_0x3a096a(0x2fb)]['id']===_0x1c5e14&&this[_0x3a096a(0x22f)]();}[_0x102c9d(0x353)](){const _0x1ce072=_0x102c9d;this[_0x1ce072(0x2fb)]?.[_0x1ce072(0x33c)](_0x394fc2(this[_0x1ce072(0x229)][_0x1ce072(0x25c)],_0x1ce072(0x214)));}async[_0x102c9d(0x28b)](){const _0x5a17ce=_0x102c9d,_0x92d97=this[_0x5a17ce(0x241)][_0x5a17ce(0x30d)]();this[_0x5a17ce(0x2fb)]?.[_0x5a17ce(0x2cc)](_0x92d97),this[_0x5a17ce(0x353)]();}[_0x102c9d(0x35e)](){const _0x4feda2=_0x102c9d;this[_0x4feda2(0x2fb)]?.[_0x4feda2(0x2f1)]();}[_0x102c9d(0x366)](){const _0x58a173=_0x102c9d;this[_0x58a173(0x29d)][_0x58a173(0x366)]();}async[_0x102c9d(0x2d7)](){const _0x4d6850=_0x102c9d;await this[_0x4d6850(0x22f)]();}async[_0x102c9d(0x24f)]({message:_0x296e01,attributes:_0x41b4b3}){const _0x59cb12=_0x102c9d;await this[_0x59cb12(0x254)]({'userMessage':_0x296e01,'attributes':_0x41b4b3});}[_0x102c9d(0x2b3)](){const _0x53a5c6=_0x102c9d,_0x2e55a2=this[_0x53a5c6(0x229)][_0x53a5c6(0x36d)][_0x53a5c6(0x300)](_0x53a5c6(0x22d));if(!_0x2e55a2)throw new _0x302247(_0x53a5c6(0x216),this);return _0x2e55a2;}async[_0x102c9d(0x22f)](_0x43706f){const _0x2eef2f=_0x102c9d;try{this[_0x2eef2f(0x29d)][_0x2eef2f(0x285)](),await this[_0x2eef2f(0x36c)](_0x43706f);}catch(_0x2be21e){this[_0x2eef2f(0x29d)][_0x2eef2f(0x293)]({'errorMessage':_0x394fc2(this[_0x2eef2f(0x229)][_0x2eef2f(0x25c)],_0x2eef2f(0x349)),'id':_0x43706f||_0x31ba12()}),console[_0x2eef2f(0x281)](_0x2be21e),this[_0x2eef2f(0x2fb)]=void 0x0,this[_0x2eef2f(0x29d)][_0x2eef2f(0x259)]();}}async[_0x102c9d(0x36c)](_0x480a55){const _0x233588=_0x102c9d;let _0x1199ad;this[_0x233588(0x229)][_0x233588(0x253)][_0x233588(0x207)](_0x233588(0x26d))&&this[_0x233588(0x229)][_0x233588(0x253)][_0x233588(0x300)](_0x233588(0x26d))[_0x233588(0x1e9)](),_0x480a55||!this[_0x233588(0x2fb)]?_0x1199ad=this[_0x233588(0x229)][_0x233588(0x36d)][_0x233588(0x300)](_0x233588(0x2bd)):this[_0x233588(0x29d)][_0x233588(0x224)]&&(_0x1199ad=this[_0x233588(0x2fb)][_0x233588(0x211)]['id']),await this[_0x233588(0x27e)]();const _0x121353=this[_0x233588(0x2b3)](),_0x5c98cf=_0x480a55||_0x31ba12();this[_0x233588(0x2fb)]=new _0x460b3a({'connector':this[_0x233588(0x371)],'chatModels':this[_0x233588(0x2af)],'selectedModelId':_0x1199ad,'conversationId':_0x5c98cf,'group':_0x121353,'getEditor':()=>_0x16921b(this[_0x233588(0x229)]),'isFromHistory':!!_0x480a55}),this[_0x233588(0x2fb)][_0x233588(0x234)](_0x233588(0x333),_0x233588(0x347))['to'](this),this[_0x233588(0x2fb)]['on'](_0x233588(0x264),(_0x51433a,_0x2cbc3f)=>{const _0x360d12=_0x233588;this[_0x360d12(0x29d)][_0x360d12(0x35a)](_0x2cbc3f),this[_0x360d12(0x29d)][_0x360d12(0x2d4)](),this[_0x360d12(0x29d)][_0x360d12(0x2cb)](),this[_0x360d12(0x29d)][_0x360d12(0x325)](),_0x480a55||(this[_0x360d12(0x29d)][_0x360d12(0x365)](),this[_0x360d12(0x353)]());}),this[_0x233588(0x2fb)]['on'](_0x233588(0x223),(_0x45f78c,_0x1f566e)=>{const _0x347879=_0x233588;this[_0x347879(0x29d)][_0x347879(0x1f9)](_0x1f566e[_0x347879(0x1fd)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x32c),(_0x540fed,_0x493cbb)=>{const _0x521634=_0x233588;this[_0x521634(0x29d)][_0x521634(0x2dc)](_0x493cbb);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x25a),()=>{const _0x22e626=_0x233588,_0x1dd878=this[_0x22e626(0x29d)][_0x22e626(0x359)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x22e626(0x29d)][_0x22e626(0x2a8)](_0x1dd878);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x2ca),()=>{const _0x594912=_0x233588,_0x4f4fc7=this[_0x594912(0x29d)][_0x594912(0x359)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x594912(0x29d)][_0x594912(0x2a8)](_0x4f4fc7);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x231),(_0x4879f9,_0x3526f5)=>{const _0x2f8a48=_0x233588;this[_0x2f8a48(0x29d)][_0x2f8a48(0x344)](_0x3526f5,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x233588(0x2fb)]['on'](_0x233588(0x1f1),(_0x4157c3,_0x1ce903)=>{const _0x5f5423=_0x233588;this[_0x5f5423(0x29d)][_0x5f5423(0x344)](_0x1ce903,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x233588(0x2fb)]['on'](_0x233588(0x347),()=>{const _0x40a000=_0x233588;this[_0x40a000(0x29d)][_0x40a000(0x277)]();}),this[_0x233588(0x2fb)]['on'](_0x233588(0x26f),async()=>{const _0x788f6=_0x233588;await this[_0x788f6(0x29d)][_0x788f6(0x2f7)]();}),this[_0x233588(0x2fb)]['on'](_0x233588(0x24c),(_0x28753d,_0x5e1732)=>{const _0x423645=_0x233588;this[_0x423645(0x29d)][_0x423645(0x24e)](_0x5e1732['id']);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x274),(_0x486ea5,_0x5956f3,_0x4d2760)=>{const _0x4d51cd=_0x233588;this[_0x4d51cd(0x2f9)](_0x5956f3,_0x4d2760);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x27b),(_0x444b9f,_0x561b0c)=>{const _0x35e758=_0x233588;_0x35e758(0x2f6)===_0x561b0c[_0x35e758(0x310)]?this[_0x35e758(0x29d)][_0x35e758(0x2df)](_0x561b0c):this[_0x35e758(0x29d)][_0x35e758(0x1ef)](_0x561b0c);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x27a),async(_0x4e2e3e,_0x3c13c9)=>{const _0x570e9f=_0x233588;await this[_0x570e9f(0x2fe)]({'reply':_0x3c13c9});}),this[_0x233588(0x2fb)]['on'](_0x233588(0x21e),(_0x208598,{reply:_0x5ad359,index:_0x5355fe,state:_0x5e3092})=>{const _0x1b480b=_0x233588;this[_0x1b480b(0x29d)][_0x1b480b(0x318)]({'id':_0x5ad359['id'],'index':_0x5355fe,'state':_0x5e3092}),this[_0x1b480b(0x244)]?.[_0x1b480b(0x328)][_0x1b480b(0x2a5)](_0x5ad359['id'])&&this[_0x1b480b(0x244)]?.[_0x1b480b(0x29a)]==_0x5355fe&&this[_0x1b480b(0x21c)]?.[_0x1b480b(0x2f5)](_0x5e3092);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x303),(_0x142e58,_0x3a0be7)=>{const _0x25aac2=_0x233588;if(this[_0x25aac2(0x29d)][_0x25aac2(0x1f7)](_0x3a0be7[_0x25aac2(0x2b4)],_0x3a0be7[_0x25aac2(0x34c)]),_0x25aac2(0x2ad)===_0x3a0be7[_0x25aac2(0x2b4)][_0x25aac2(0x310)]){const _0x2be3fa=[..._0x16921b(this[_0x25aac2(0x229)])[_0x25aac2(0x2aa)][_0x25aac2(0x33e)][_0x25aac2(0x2ad)][_0x25aac2(0x2bb)]()];this[_0x25aac2(0x241)][_0x25aac2(0x21b)](_0x2be3fa,_0x25aac2(0x27d)+this[_0x25aac2(0x2fb)]?.['id']);}}),this[_0x233588(0x2fb)]['on'](_0x233588(0x2b9),(_0x177024,_0xa587c5)=>{const _0x1ef40e=_0x233588;this[_0x1ef40e(0x29d)][_0x1ef40e(0x2fd)](_0xa587c5[_0x1ef40e(0x275)]),_0x1ef40e(0x35b)==_0xa587c5[_0x1ef40e(0x275)]&&this[_0x1ef40e(0x35e)](),_0x1ef40e(0x2ad)===_0xa587c5[_0x1ef40e(0x310)]&&this[_0x1ef40e(0x241)][_0x1ef40e(0x1ed)](_0x1ef40e(0x27d)+this[_0x1ef40e(0x2fb)]?.['id']);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x263),(_0x586d13,_0x456e0a)=>{const _0x283e6c=_0x233588;this[_0x283e6c(0x29d)][_0x283e6c(0x315)](_0x456e0a[_0x283e6c(0x2b4)][_0x283e6c(0x275)],_0x456e0a[_0x283e6c(0x34c)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x22c),(_0x490b02,_0x50f075)=>{const _0x3cdd21=_0x233588;this[_0x3cdd21(0x29d)][_0x3cdd21(0x312)](_0x50f075[_0x3cdd21(0x21f)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x313),(_0x128344,_0x3deccd)=>{const _0x55ba8d=_0x233588;this[_0x55ba8d(0x29d)][_0x55ba8d(0x329)](_0x3deccd[_0x55ba8d(0x361)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x30e),(_0x21c485,_0x213758)=>{const _0x2fd4eb=_0x233588;this[_0x2fd4eb(0x29d)][_0x2fd4eb(0x267)](_0x213758[_0x2fd4eb(0x336)],_0x213758[_0x2fd4eb(0x2fc)],_0x213758[_0x2fd4eb(0x26e)],_0x213758[_0x2fd4eb(0x334)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x217),(_0x48ae34,_0x40eec8)=>{const _0x241e1e=_0x233588;this[_0x241e1e(0x29d)][_0x241e1e(0x20a)](_0x40eec8[_0x241e1e(0x336)],_0x40eec8[_0x241e1e(0x245)],_0x40eec8[_0x241e1e(0x215)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x2bf),(_0x3a95eb,_0x51df56)=>{const _0x4fa144=_0x233588;this[_0x4fa144(0x29d)][_0x4fa144(0x341)](_0x51df56);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x335),async(_0x10759c,_0x1e2a4a)=>{const _0xaf9ec6=_0x233588,_0x3c510a=(await this[_0xaf9ec6(0x2af)][_0xaf9ec6(0x2fa)]())[_0xaf9ec6(0x317)](_0x2717e2=>_0x2717e2['id']===_0x1e2a4a[_0xaf9ec6(0x211)]?.['id'])||null;this[_0xaf9ec6(0x29d)][_0xaf9ec6(0x342)](_0x3c510a,_0x1e2a4a[_0xaf9ec6(0x28f)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x281),(_0x3aae51,{error:_0x3ad286,interactionId:_0xb149ca,fileName:_0x35e2be,url:_0x4d1cb0,sourceId:_0x142574,sourceLabel:_0x34cb3a})=>{const _0x2049d7=_0x233588,_0x406d41=_0xb149ca?_0xb149ca+':'+_0x31ba12():_0x31ba12();_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x2ab))?this[_0x2049d7(0x29d)][_0x2049d7(0x316)]({'staticMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2eb)),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x1f3))||_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x298))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x349)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x2e7))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2d5),_0x35e2be),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x32d))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2cd),_0x4d1cb0),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x208))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x343)),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x221))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x1ff)),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x30a))?(_0x142574&&this[_0x2049d7(0x29d)][_0x2049d7(0x363)](_0x142574),this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x319),_0x34cb3a||_0x2049d7(0x2fc)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x32a))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2a4)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x34a))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2f8)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x23b))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x202)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x2ce))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2c7)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x291))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x251)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x32e))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x26b)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x230)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286));}),await this[_0x233588(0x2fb)][_0x233588(0x222)](this[_0x233588(0x229)][_0x233588(0x36d)][_0x233588(0x300)](_0x233588(0x20e))),_0x480a55||await this[_0x233588(0x2fb)][_0x233588(0x2b2)]();}async[_0x102c9d(0x254)]({userMessage:_0x45c593,attributes:_0x5c77c0}){const _0xeb4ce8=_0x102c9d;if(!this[_0xeb4ce8(0x2fb)])throw new _0x302247(_0xeb4ce8(0x330));if(this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x29e)]()){const _0x50d1f6=await this[_0xeb4ce8(0x241)][_0xeb4ce8(0x268)]();await this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x372)](_0x50d1f6);}this[_0xeb4ce8(0x2fb)]['id']&&this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x2e8)]&&await this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x321)]({'userMessage':_0x45c593,'attributes':_0x5c77c0});}[_0x102c9d(0x29c)](){const _0x569728=_0x102c9d;console[_0x569728(0x270)](_0x569728(0x1ea));}[_0x102c9d(0x1f4)](_0x33a7f9){const _0x50b489=_0x102c9d;this[_0x50b489(0x29d)][_0x50b489(0x26a)](_0x33a7f9);}[_0x102c9d(0x2f4)](_0x41a4e2){const _0x659b08=_0x102c9d;_0x5bf06e(_0x41a4e2[_0x659b08(0x258)]);}[_0x102c9d(0x323)](_0x5e0332){const _0x3bbb77=_0x102c9d;this[_0x3bbb77(0x2fb)]?.[_0x3bbb77(0x345)](_0x5e0332);}[_0x102c9d(0x1f6)](){const _0x29133b=_0x102c9d;this[_0x29133b(0x2fb)]?.[_0x29133b(0x2d1)]();}[_0x102c9d(0x2a7)](){const _0x5e41e5=_0x102c9d;this[_0x5e41e5(0x2fb)]?.[_0x5e41e5(0x286)]();}[_0x102c9d(0x24b)](_0x12d679){const _0x51adc9=_0x102c9d,[_0x47112b,_0x548769]=_0x12d679[_0x51adc9(0x360)](':'),_0x547edd=this[_0x51adc9(0x2fb)][_0x51adc9(0x1eb)](_0x47112b),_0x2500cd=_0x547edd[_0x51adc9(0x367)](_0x548769);return{'interaction':_0x547edd,'reply':_0x2500cd};}[_0x102c9d(0x309)](_0x446648,_0x5051a1=!0x1){const _0x170bbd=_0x102c9d,_0x24aafb=_0x16921b(this[_0x170bbd(0x229)]),_0x2adb92={'target':_0x24aafb[_0x170bbd(0x331)][_0x170bbd(0x261)][_0x170bbd(0x30f)][_0x170bbd(0x31a)](_0x24aafb[_0x170bbd(0x331)][_0x170bbd(0x2d3)][_0x170bbd(0x2c8)](_0x446648)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x5051a1};_0x5051a1&&(_0x2adb92[_0x170bbd(0x2ec)]=!0x0),_0x5dad21(_0x2adb92);}[_0x102c9d(0x2f9)](_0x5db940,_0xdef926=!0x1){const _0x565bbb=_0x102c9d;this[_0x565bbb(0x29d)][_0x565bbb(0x274)](_0x5db940||_0x394fc2(this[_0x565bbb(0x229)][_0x565bbb(0x25c)],_0x565bbb(0x33d)),_0xdef926);}async[_0x102c9d(0x2fe)]({reply:_0x251666,renderingStrategy:_0x4fe23e}){const _0x3695df=_0x102c9d,{id:_0x21e5c3,interactionId:_0x3c3450,isDone:_0x5f1d3d,type:_0x4cf923,parsedContent:_0x369ca1}=_0x251666,_0xca74c6=_0x3c3450+':'+_0x21e5c3;if(_0x3695df(0x33b)===_0x4cf923){const _0x2f467a=_0x251666[_0x3695df(0x33f)]({'showDiff':this[_0x3695df(0x29d)][_0x3695df(0x272)]});await this[_0x3695df(0x29d)][_0x3695df(0x2db)]({'id':_0xca74c6,'parts':_0x2f467a,'renderingStrategy':_0x4fe23e,'isDone':_0x5f1d3d});}else _0x3695df(0x2f6)===_0x4cf923&&await this[_0x3695df(0x29d)][_0x3695df(0x273)]({'id':_0xca74c6,'parsedContent':_0x369ca1,'renderingStrategy':_0x4fe23e,'isDone':_0x5f1d3d});_0x5f1d3d&&_0x251666[_0x3695df(0x219)][_0x3695df(0x370)]>0x0&&this[_0x3695df(0x29d)][_0x3695df(0x200)](_0xca74c6,_0x251666[_0x3695df(0x219)]);}async[_0x102c9d(0x27e)](){const _0x504df7=_0x102c9d,_0x19e3fc=this[_0x504df7(0x2fb)]?.[_0x504df7(0x23d)];_0x19e3fc&&(_0x19e3fc[_0x504df7(0x201)](),this[_0x504df7(0x29d)][_0x504df7(0x2da)](_0x19e3fc));}async[_0x102c9d(0x28c)](){const _0x3674cc=_0x102c9d,_0x55aef2=this[_0x3674cc(0x2fb)]?.[_0x3674cc(0x23d)];if(_0x55aef2){for await(const _0x553147 of _0x55aef2[_0x3674cc(0x2c4)])await this[_0x3674cc(0x2fe)]({'reply':_0x553147,'renderingStrategy':_0x3674cc(0x2ea)});}}[_0x102c9d(0x354)](_0x3952f4){const _0x458993=_0x102c9d,_0x5ab835={'positiveCount':_0x3952f4[_0x458993(0x22b)][_0x458993(0x2e9)](_0x115ecf=>_0x458993(0x2f3)===_0x115ecf[_0x458993(0x2a3)])[_0x458993(0x370)],'totalCount':_0x3952f4[_0x458993(0x22b)][_0x458993(0x370)],'modificationId':_0x3952f4['id']},_0x4e7d72=this[_0x458993(0x2fb)][_0x458993(0x1eb)](_0x3952f4[_0x458993(0x31e)])[_0x458993(0x28e)];_0x4e7d72&&this[_0x458993(0x371)][_0x458993(0x2ba)](this[_0x458993(0x2fb)]['id'],_0x4e7d72,_0x5ab835);}[_0x102c9d(0x2d6)](_0x22d48f){const _0x53f8d8=_0x102c9d;let _0x40e726=null,_0x2d5697=null;this['on'](_0x53f8d8(0x333),(_0x52638a,_0x2fede5,_0x1b5848)=>{const _0x2badba=_0x53f8d8;_0x1b5848['id']!==_0x40e726&&(_0x40e726=_0x1b5848['id'],_0x2d5697=this[_0x2badba(0x2ef)](_0x1b5848)),_0x22d48f(_0x2fede5,_0x2d5697);});}[_0x102c9d(0x2ef)](_0x44ab33){const _0x348f02=_0x102c9d,_0x4270f9=this[_0x348f02(0x29d)],_0x137ca3=()=>{const _0x42fbfd=_0x348f02;_0x44ab33[_0x42fbfd(0x218)](),_0x44ab33[_0x42fbfd(0x228)](),_0x4270f9[_0x42fbfd(0x248)]();},_0x5bf415=()=>{const _0x9c1fe9=_0x348f02;_0x44ab33[_0x9c1fe9(0x2de)]&&(_0x44ab33[_0x9c1fe9(0x2de)][_0x9c1fe9(0x22a)](),_0x44ab33[_0x9c1fe9(0x2de)]=void 0x0);};return{'insertTextReply':(_0x51cb79,_0x40de36)=>{const _0x55836a=_0x348f02;_0x5bf415(),_0x137ca3();const _0x13ec93=_0x44ab33[_0x55836a(0x2de)]=_0x44ab33[_0x55836a(0x2b6)]({'type':_0x55836a(0x2f6),'interactionId':_0x44ab33['id'],'content':_0x51cb79,'id':_0x40de36||_0x31ba12()});return _0x5bf415(),_0x13ec93;},'insertCustomElement':async(_0x16d92b,_0x40b1d7)=>(_0x5bf415(),_0x137ca3(),_0x4270f9[_0x348f02(0x225)](_0x16d92b,_0x40b1d7||_0x31ba12())),'setLoadingMessage':_0x275ccd=>{const _0x342322=_0x348f02;_0x4270f9[_0x342322(0x2a8)](_0x275ccd);},'clearLoadingMessage':()=>{const _0x24ccee=_0x348f02;_0x4270f9[_0x24ccee(0x248)]();}};}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd6c7b6=_0x2052;(function(_0x1d1af7,_0x56b38a){const _0x5182c4=_0x2052,_0x3f5120=_0x1d1af7();while(!![]){try{const _0x14e082=-parseInt(_0x5182c4(0x18f))/0x1*(parseInt(_0x5182c4(0x15f))/0x2)+parseInt(_0x5182c4(0x1d1))/0x3*(parseInt(_0x5182c4(0x138))/0x4)+-parseInt(_0x5182c4(0x195))/0x5*(-parseInt(_0x5182c4(0x17f))/0x6)+-parseInt(_0x5182c4(0x164))/0x7+-parseInt(_0x5182c4(0x18e))/0x8*(-parseInt(_0x5182c4(0x18d))/0x9)+parseInt(_0x5182c4(0x191))/0xa*(parseInt(_0x5182c4(0x1b5))/0xb)+-parseInt(_0x5182c4(0x187))/0xc*(-parseInt(_0x5182c4(0x12a))/0xd);if(_0x14e082===_0x56b38a)break;else _0x3f5120['push'](_0x3f5120['shift']());}catch(_0x406ced){_0x3f5120['push'](_0x3f5120['shift']());}}}(_0x4842,0xcd6ee));import{ContextPlugin as _0x17ddeb}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x255f6e}from'ckeditor5/src/utils.js';import{AIChatView as _0x3244ba}from'./ui/aichatview.js';import{AITabs as _0x2387c6}from'../aitabs/aitabs.js';import{getTranslation as _0x3af605}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x32bb36}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f860d}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x4842(){const _0x2e1796=['addContextItem','from','view','setAddContextOptions','remove','setInputPlaceholder','_animateConversationTitle','filter','_promiseQueue','setPromptInputValue','contextItems','focusPromptInput','setConversationContext','8809788luyOPa','forEach','hasFeedItem','ai.availableReplyActions','startInteraction','_isTrackChangesCommandValueBound','user-message','value','stopAutoScroll','prepareLoadingMessage','</p>','markFeedItemAsDone','enableControls','displayedPrompt','623924uqUawQ','_view','showDiff','isLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','clear','AI_CHAT_HEADING','queueEmptyPromise','label','setModel','get','addFeedItemAIReply','interactionId','enqueue','locale','_getInputPlaceholder','toggleSuggestionDisplayMode','insertSuggestion','showResizeButton','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','custom-element','isWebSearchEnabled','setSuggestionPartActive','toggleLoadingSkeleton','isMaximized','fire','startAutoScroll','resetConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','length','scrollToSuggestion','chatHeader','then','delegate','setFeedItemAIReplySuggestionPartActive','availableModels','updateCapabilities','_interactionPromiseResolver','2enKaRN','children','closeSourceResourceBalloon','isModelAvailable','clearLoadingMessage','10121594TLDopK','plugins','feedItemRenderingStrategy','removeContextItem','removeFeedInteraction','isTrackChangesOn','setReasoning','conversation-start','options','config','ai.chat.welcomeMessage','setSelectedModel','isPending','updateSuggestionPartState','setWebSearch','isDone','trackChanges','updateFeedInteractionHeader','disableModelSelector','markItemAsDone','removeItem','clearPendingContextUI','setIsUploadInProgress','hasItem','capabilities','updateFeedItemAIReplySuggestionContent','addFeedItemCustomElement','28176dYEwhP','isReasoningEnabled','find','addFeedItemError','isPremiumPlugin','addFeedItemAISuggestion','AIChatUI','chatControls','12GLDBeB','updateResourceState','addFeedItemUserMessage','conversationCreated','ai-reply','chat','9iELDWT','7410392yWnbTI','1279094sfpjpy','set','10tIluxk','AITabs','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','destroy','1365ymiGSH','TrackChanges','addItem','areActionsDisabled','populateSourceResourceBalloon','createConversation','userMessage','renderingStrategy','streaming','context','updateWebSources','clearConversationContextUI','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','stopInteraction','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','isBusy','scrollFeedToSuggestion','ai.models.showModelSelector','isVisible','values','ai.chat.context.searchInputVisibleFrom','last','updateReplyItem','addTab','attributes','pluginName','setContextItemLoading','removeFeedItem','AI_CHAT_WELCOME_MESSAGE','getItemIds','resetMessageInput','5769786KkwQwS','abort','isOfficialPlugin','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','setFeedItemRenderingStrategy','<p>','error-message','setIsMaximized','setModelList','ai-suggestion-reply','isDisabled','requires','setConversationTitle','enableModelSelector','commands','interaction-header','updateFeedItemAIReplySources','startsWith','updateFeedItemAIReplySuggestionPartState','disableControls','_titleAnimationInterval','chatFeed','bind','updateSuggestionItem','has','setLoadingMessage','addFeedInteractionHeader','addFeedItemStaticMessage','3GQAsaY','updateFeedItemAIReplyContent'];_0x4842=function(){return _0x2e1796;};return _0x4842();}import{PromiseQueue as _0x1212ba}from'./utils/promisequeue.js';function _0x2052(_0x16cb0b,_0x2ddf00){const _0x484224=_0x4842();return _0x2052=function(_0x205202,_0x2d1f95){_0x205202=_0x205202-0x128;let _0x4733fa=_0x484224[_0x205202];return _0x4733fa;},_0x2052(_0x16cb0b,_0x2ddf00);}import{AI_CHAT_UI_EVENT_NAMES as _0x275f1e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3e4770}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x36a367}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x17ddeb{static get[_0xd6c7b6(0x1c0)](){return[_0x2387c6];}[_0xd6c7b6(0x139)];static get[_0xd6c7b6(0x1af)](){const _0x3bfd7f=_0xd6c7b6;return _0x3bfd7f(0x185);}static get[_0xd6c7b6(0x1b7)](){return!0x0;}static get[_0xd6c7b6(0x183)](){return!0x0;}[_0xd6c7b6(0x166)]=_0xd6c7b6(0x19d);[_0xd6c7b6(0x13a)]=!0x0;[_0xd6c7b6(0x1db)];[_0xd6c7b6(0x15e)];[_0xd6c7b6(0x1c9)]=void 0x0;[_0xd6c7b6(0x12f)]=!0x1;constructor(_0x286d49){const _0xfa6da8=_0xd6c7b6;super(_0x286d49);const _0x12087b=this[_0xfa6da8(0x19e)][_0xfa6da8(0x165)][_0xfa6da8(0x143)](_0xfa6da8(0x192));this[_0xfa6da8(0x190)](_0xfa6da8(0x1a5),!0x1),this[_0xfa6da8(0x1db)]=new _0x1212ba(),this[_0xfa6da8(0x139)]=new _0x3244ba(this[_0xfa6da8(0x19e)][_0xfa6da8(0x147)],{'showResizeButton':_0x12087b[_0xfa6da8(0x14b)],'contextResourcesSearchInputVisibleFrom':this[_0xfa6da8(0x19e)][_0xfa6da8(0x16d)][_0xfa6da8(0x143)](_0xfa6da8(0x1aa))}),this[_0xfa6da8(0x139)][_0xfa6da8(0x15a)](..._0x275f1e)['to'](this),this[_0xfa6da8(0x139)]['on'](_0xfa6da8(0x149),(_0x1056ea,{showDiff:_0x3be6bd})=>{const _0x146608=_0xfa6da8;this[_0x146608(0x13a)]=_0x3be6bd;}),_0x12087b[_0xfa6da8(0x1d5)][_0xfa6da8(0x1ad)]({'id':_0xfa6da8(0x18c),'buttonLabel':_0x3af605(this[_0xfa6da8(0x19e)][_0xfa6da8(0x147)],_0xfa6da8(0x13f)),'buttonIcon':_0x32bb36,'order':0x0,'content':this[_0xfa6da8(0x139)]}),this[_0xfa6da8(0x139)][_0xfa6da8(0x186)][_0xfa6da8(0x1cb)](_0xfa6da8(0x13b))['to'](this,_0xfa6da8(0x1a5),_0x199dd5=>_0x199dd5),this[_0xfa6da8(0x139)][_0xfa6da8(0x1ca)][_0xfa6da8(0x1cb)](_0xfa6da8(0x170))['to'](this,_0xfa6da8(0x1a5),_0x5c7045=>_0x5c7045),this[_0xfa6da8(0x139)][_0xfa6da8(0x186)][_0xfa6da8(0x1d8)](this[_0xfa6da8(0x148)]()),this[_0xfa6da8(0x1cb)](_0xfa6da8(0x162))['to'](this[_0xfa6da8(0x139)][_0xfa6da8(0x186)],_0xfa6da8(0x162));}[_0xd6c7b6(0x194)](){const _0x5b7963=_0xd6c7b6;super[_0x5b7963(0x194)](),this[_0x5b7963(0x1c9)]&&clearInterval(this[_0x5b7963(0x1c9)]);}[_0xd6c7b6(0x19a)](_0x731b49){const _0x4e14a3=_0xd6c7b6,_0x5c5c81=this[_0x4e14a3(0x19e)][_0x4e14a3(0x16d)][_0x4e14a3(0x143)](_0x4e14a3(0x16e))??_0x3af605(this[_0x4e14a3(0x19e)][_0x4e14a3(0x147)],_0x4e14a3(0x1b2));this[_0x4e14a3(0x139)][_0x4e14a3(0x1ca)][_0x4e14a3(0x13e)](),this[_0x4e14a3(0x139)][_0x4e14a3(0x186)][_0x4e14a3(0x1c2)](),this[_0x4e14a3(0x139)][_0x4e14a3(0x186)][_0x4e14a3(0x1bd)](_0x731b49[_0x4e14a3(0x15c)],!this[_0x4e14a3(0x19e)][_0x4e14a3(0x16d)][_0x4e14a3(0x143)](_0x4e14a3(0x1a7))),this[_0x4e14a3(0x1d0)]({'id':_0x4e14a3(0x16b),'staticMessage':_0x5c5c81}),this[_0x4e14a3(0x152)](_0x4e14a3(0x18a));}[_0xd6c7b6(0x1d0)]({id:_0x156a86,staticMessage:_0x39b1a7}){const _0x2728a9=_0xd6c7b6;this[_0x2728a9(0x139)][_0x2728a9(0x1ca)][_0x2728a9(0x197)](_0x2728a9(0x18b),{'id':_0x156a86,'initialContent':_0x2728a9(0x1ba)+_0x39b1a7+_0x2728a9(0x134)});}[_0xd6c7b6(0x189)](_0x27172b){const _0x253e01=_0xd6c7b6,_0x27ab44=_0x27172b[_0x253e01(0x1ae)]?.[_0x253e01(0x137)]||_0x27172b[_0x253e01(0x19b)];this[_0x253e01(0x139)][_0x253e01(0x1ca)][_0x253e01(0x197)](_0x253e01(0x130),{'contextItems':Array[_0x253e01(0x1d4)](_0x27172b[_0x253e01(0x1dd)][_0x253e01(0x1a9)]()),'initialContent':_0x253e01(0x1ba)+_0x27ab44+_0x253e01(0x134),'id':_0x27172b['id']});}[_0xd6c7b6(0x182)]({errorMessage:_0x592c8f,id:_0x118e5f}){const _0x33f83a=_0xd6c7b6;this[_0x33f83a(0x139)][_0x33f83a(0x1ca)][_0x33f83a(0x197)](_0x33f83a(0x1bb),{'initialContent':_0x33f83a(0x1ba)+_0x592c8f+_0x33f83a(0x134),'id':_0x118e5f});}[_0xd6c7b6(0x144)](_0x558eae){const _0x7ed6d5=_0xd6c7b6;return this[_0x7ed6d5(0x1db)][_0x7ed6d5(0x146)](async()=>{const _0x51fd5f=_0x7ed6d5;this[_0x51fd5f(0x139)][_0x51fd5f(0x1ca)][_0x51fd5f(0x197)](_0x51fd5f(0x18b),{'id':_0x558eae[_0x51fd5f(0x145)]+':'+_0x558eae['id']}),this[_0x51fd5f(0x163)]();});}async[_0xd6c7b6(0x184)](_0x371c08){const _0xd04399=_0xd6c7b6,_0xa6d6e1=_0x3e4770(this[_0xd04399(0x19e)]);let _0x7cd589=_0xa6d6e1[_0xd04399(0x16d)][_0xd04399(0x143)](_0xd04399(0x12d))||[..._0x36a367];if(_0xa6d6e1[_0xd04399(0x165)][_0xd04399(0x1cd)](_0xd04399(0x196))){if(!this[_0xd04399(0x12f)]){this[_0xd04399(0x12f)]=!0x0;const _0xde84ca=_0xa6d6e1[_0xd04399(0x1c3)][_0xd04399(0x143)](_0xd04399(0x174));this[_0xd04399(0x139)][_0xd04399(0x1ca)][_0xd04399(0x1cb)](_0xd04399(0x169))['to'](_0xde84ca,_0xd04399(0x131));}}else _0x7cd589=_0x7cd589[_0xd04399(0x1da)](_0x36a44c=>_0xd04399(0x14a)!=_0x36a44c);return this[_0xd04399(0x1db)][_0xd04399(0x146)](async()=>{const _0x491bb7=_0xd04399;this[_0x491bb7(0x139)][_0x491bb7(0x1ca)][_0x491bb7(0x197)](_0x491bb7(0x1be),{'id':_0x371c08[_0x491bb7(0x145)]+':'+_0x371c08['id'],'areActionsDisabled':_0x371c08[_0x491bb7(0x198)],'showDiff':this[_0x491bb7(0x13a)],'availableActions':_0x7cd589}),this[_0x491bb7(0x163)]();});}[_0xd6c7b6(0x1cf)](_0x5b2f13,_0x10e948){const _0x288d95=_0xd6c7b6,_0x531731=this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x160)][_0x288d95(0x1ab)];if(_0x531731 instanceof _0x4f860d)return this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x160)][_0x288d95(0x1d7)](_0x531731),void this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x197)](_0x288d95(0x1c4),{'id':_0x5b2f13['id'],'capabilities':{'isWebSearchEnabled':_0x531731[_0x288d95(0x17c)][_0x288d95(0x14e)]||_0x10e948[_0x288d95(0x14e)],'isReasoningEnabled':_0x531731[_0x288d95(0x17c)][_0x288d95(0x180)]||_0x10e948[_0x288d95(0x180)]}});this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x197)](_0x288d95(0x1c4),{'id':_0x5b2f13['id'],'capabilities':_0x10e948});}async[_0xd6c7b6(0x17e)](_0x15f671,_0x2bddbc){const _0x33ae88=_0xd6c7b6;let _0xf4415a;return await this[_0x33ae88(0x1db)][_0x33ae88(0x146)](async()=>{const _0x31b77f=_0x33ae88;_0xf4415a=this[_0x31b77f(0x139)][_0x31b77f(0x1ca)][_0x31b77f(0x197)](_0x31b77f(0x14d),{'content':_0x15f671,'id':_0x2bddbc});}),_0xf4415a;}[_0xd6c7b6(0x1b1)](_0x2f95be){const _0x492dce=_0xd6c7b6;this[_0x492dce(0x139)][_0x492dce(0x1ca)][_0x492dce(0x178)](_0x2f95be);}[_0xd6c7b6(0x12c)](_0x336be9){const _0x40d795=_0xd6c7b6;return this[_0x40d795(0x139)][_0x40d795(0x1ca)][_0x40d795(0x17b)](_0x336be9);}[_0xd6c7b6(0x175)](_0x49a7e7){const _0x2581b7=_0xd6c7b6,_0x1dc313=this[_0x2581b7(0x139)][_0x2581b7(0x1ca)][_0x2581b7(0x160)][_0x2581b7(0x181)](_0x567451=>_0x567451[_0x2581b7(0x16c)]['id']==_0x49a7e7['id']&&_0x567451 instanceof _0x4f860d);_0x1dc313&&_0x1dc313[_0x2581b7(0x190)](_0x2581b7(0x1a8),_0x49a7e7[_0x2581b7(0x1a8)]);}async[_0xd6c7b6(0x1d2)](_0x564a42){const _0x408e98=_0xd6c7b6,_0x1a1e3d=_0x564a42[_0x408e98(0x19c)]||this[_0x408e98(0x166)];return this[_0x408e98(0x1db)][_0x408e98(0x146)](async _0x60c357=>{const _0x2afefd=_0x408e98;await this[_0x2afefd(0x139)][_0x2afefd(0x1ca)][_0x2afefd(0x1ac)]({..._0x564a42,'abortSignal':_0x60c357,'renderingStrategy':_0x1a1e3d}),_0x564a42[_0x2afefd(0x173)]&&this[_0x2afefd(0x135)](_0x564a42['id']);});}[_0xd6c7b6(0x1c5)](_0x4d714d,_0x370e9e){const _0x1056d3=_0xd6c7b6;this[_0x1056d3(0x139)][_0x1056d3(0x1ca)][_0x1056d3(0x19f)](_0x4d714d,_0x370e9e);}async[_0xd6c7b6(0x17d)](_0x3f0ebc){const _0x58adf1=_0xd6c7b6,_0x1f4f44=_0x3f0ebc[_0x58adf1(0x19c)]||this[_0x58adf1(0x166)];return this[_0x58adf1(0x1db)][_0x58adf1(0x146)](async _0x1a4ebe=>{const _0x1dad95=_0x58adf1;await this[_0x1dad95(0x139)][_0x1dad95(0x1ca)][_0x1dad95(0x1cc)]({..._0x3f0ebc,'abortSignal':_0x1a4ebe,'renderingStrategy':_0x1f4f44}),_0x3f0ebc[_0x1dad95(0x173)]&&this[_0x1dad95(0x135)](_0x3f0ebc['id']);});}[_0xd6c7b6(0x1c7)](_0x4b2ff2){const _0x47b24c=_0xd6c7b6;this[_0x47b24c(0x139)][_0x47b24c(0x1ca)][_0x47b24c(0x171)](_0x4b2ff2);}[_0xd6c7b6(0x15b)](_0x37d256){const _0x152033=_0xd6c7b6;this[_0x152033(0x139)][_0x152033(0x1ca)][_0x152033(0x14f)](_0x37d256);}[_0xd6c7b6(0x135)](_0x14b0a8){const _0x42543b=_0xd6c7b6;this[_0x42543b(0x139)][_0x42543b(0x1ca)][_0x42543b(0x177)](_0x14b0a8);}[_0xd6c7b6(0x168)](_0x54c297){const _0x15dc4c=_0xd6c7b6;this[_0x15dc4c(0x139)][_0x15dc4c(0x1ca)][_0x15dc4c(0x1b3)]()[_0x15dc4c(0x1da)](_0x539db7=>_0x539db7[_0x15dc4c(0x1c6)](_0x54c297))[_0x15dc4c(0x12b)](_0x51667a=>this[_0x15dc4c(0x139)][_0x15dc4c(0x1ca)][_0x15dc4c(0x178)](_0x51667a));}[_0xd6c7b6(0x12e)](){const _0x3e8663=_0xd6c7b6,_0x23a2d8=this[_0x3e8663(0x133)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x3e8663(0x1ce)](_0x23a2d8),this[_0x3e8663(0x139)][_0x3e8663(0x186)][_0x3e8663(0x176)](!this[_0x3e8663(0x19e)][_0x3e8663(0x16d)][_0x3e8663(0x143)](_0x3e8663(0x1a7))),this[_0x3e8663(0x1a5)]=!0x0,this[_0x3e8663(0x139)][_0x3e8663(0x1ca)][_0x3e8663(0x153)]();}[_0xd6c7b6(0x1a2)](_0x16bea5){const _0xa06445=_0xd6c7b6;this[_0xa06445(0x1db)][_0xa06445(0x1b6)](),this[_0xa06445(0x139)][_0xa06445(0x1ca)][_0xa06445(0x1b3)]()[_0xa06445(0x1da)](_0x4602ec=>_0x4602ec[_0xa06445(0x1c6)](_0x16bea5['id']))[_0xa06445(0x12b)](_0x480785=>this[_0xa06445(0x135)](_0x480785)),this[_0xa06445(0x1a5)]=!0x1,this[_0xa06445(0x139)][_0xa06445(0x1ca)][_0xa06445(0x132)]();}async[_0xd6c7b6(0x1a3)](){const _0x300a3c=_0xd6c7b6;return this[_0x300a3c(0x1db)][_0x300a3c(0x140)][_0x300a3c(0x159)](()=>{const _0x5c4802=_0x300a3c;this[_0x5c4802(0x1a5)]=!0x1,this[_0x5c4802(0x139)][_0x5c4802(0x1ca)][_0x5c4802(0x132)]();});}[_0xd6c7b6(0x1d3)](_0x5011a1,_0x2640dd){const _0x20cb7b=_0xd6c7b6;this[_0x20cb7b(0x139)][_0x20cb7b(0x186)][_0x20cb7b(0x1d3)](_0x5011a1,_0x2640dd);}[_0xd6c7b6(0x167)](_0x40ad3e){const _0x292150=_0xd6c7b6;this[_0x292150(0x139)][_0x292150(0x186)][_0x292150(0x167)](_0x40ad3e);}[_0xd6c7b6(0x1b0)](_0x107b05,_0xbc2c6e){const _0x28a2e8=_0xd6c7b6;this[_0x28a2e8(0x139)][_0x28a2e8(0x186)][_0x28a2e8(0x1b0)](_0x107b05,_0xbc2c6e);}[_0xd6c7b6(0x17a)](_0x5351eb){const _0xfd737f=_0xd6c7b6;this[_0xfd737f(0x139)][_0xfd737f(0x186)][_0xfd737f(0x17a)](_0x5351eb);}[_0xd6c7b6(0x129)](_0x3d1c11){const _0x4aa989=_0xd6c7b6;this[_0x4aa989(0x139)][_0x4aa989(0x186)][_0x4aa989(0x129)](_0x3d1c11);}[_0xd6c7b6(0x179)](){const _0x4660e0=_0xd6c7b6;this[_0x4660e0(0x139)][_0x4660e0(0x186)][_0x4660e0(0x179)]();}[_0xd6c7b6(0x1a0)](){const _0x1b5bd3=_0xd6c7b6;this[_0x1b5bd3(0x139)][_0x1b5bd3(0x186)][_0x1b5bd3(0x1a0)]();}[_0xd6c7b6(0x188)](_0x1c313a,_0x34690c,_0x1d6c5a){const _0x28479c=_0xd6c7b6;this[_0x28479c(0x139)][_0x28479c(0x186)][_0x28479c(0x188)](_0x1c313a,_0x34690c,_0x1d6c5a);}[_0xd6c7b6(0x1b4)](){const _0x16435b=_0xd6c7b6;this[_0x16435b(0x139)][_0x16435b(0x186)][_0x16435b(0x1b4)](),this[_0x16435b(0x139)][_0x16435b(0x186)][_0x16435b(0x1d8)](this[_0x16435b(0x148)]());}[_0xd6c7b6(0x1d6)](_0x1e72b9){const _0x4b53f9=_0xd6c7b6;this[_0x4b53f9(0x139)][_0x4b53f9(0x186)][_0x4b53f9(0x1d6)](_0x1e72b9);}[_0xd6c7b6(0x15d)](_0x44796e){const _0x516094=_0xd6c7b6;this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x172)](_0x44796e[_0x516094(0x14e)]),this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x16a)](_0x44796e[_0x516094(0x180)]),this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x1d8)](this[_0x516094(0x148)](_0x44796e));}[_0xd6c7b6(0x16f)](_0x36cfe9,_0x4d38ad){const _0x3ad1f4=_0xd6c7b6;this[_0x3ad1f4(0x139)][_0x3ad1f4(0x186)][_0x3ad1f4(0x142)](_0x36cfe9),_0x4d38ad&&this[_0x3ad1f4(0x139)][_0x3ad1f4(0x186)][_0x3ad1f4(0x176)](!0x1);}[_0xd6c7b6(0x1b9)](_0x218879){const _0x44fd62=_0xd6c7b6;this[_0x44fd62(0x166)]=_0x218879;}[_0xd6c7b6(0x150)](_0x2365e9){const _0x336311=_0xd6c7b6;this[_0x336311(0x139)][_0x336311(0x1ca)][_0x336311(0x150)](_0x2365e9);}[_0xd6c7b6(0x154)](){const _0x44643f=_0xd6c7b6;this[_0x44643f(0x1c1)](_0x3af605(this[_0x44643f(0x19e)][_0x44643f(0x147)],_0x44643f(0x13f)));}[_0xd6c7b6(0x1c1)](_0x59c12e,_0x5bed94=!0x1){const _0x10817b=_0xd6c7b6;if(_0x5bed94&&!_0x255f6e()&&_0x59c12e[_0x10817b(0x156)])return this[_0x10817b(0x139)][_0x10817b(0x158)][_0x10817b(0x141)]='',void this[_0x10817b(0x1d9)](_0x59c12e);this[_0x10817b(0x139)][_0x10817b(0x158)][_0x10817b(0x141)]=_0x59c12e;}[_0xd6c7b6(0x1ce)](_0x543d6a){const _0x538872=_0xd6c7b6;this[_0x538872(0x139)][_0x538872(0x1ca)][_0x538872(0x1ce)](_0x543d6a);}[_0xd6c7b6(0x163)](){const _0x15dd58=_0xd6c7b6;this[_0x15dd58(0x139)][_0x15dd58(0x1ca)][_0x15dd58(0x1ce)]('');}[_0xd6c7b6(0x1d9)](_0x3903da){const _0x1a93dc=_0xd6c7b6;let _0x4387bf=0x0;clearInterval(this[_0x1a93dc(0x1c9)]),this[_0x1a93dc(0x1c9)]=setInterval(()=>{const _0x1717d1=_0x1a93dc;this[_0x1717d1(0x139)][_0x1717d1(0x158)][_0x1717d1(0x141)]=this[_0x1717d1(0x139)][_0x1717d1(0x158)][_0x1717d1(0x141)]+_0x3903da[_0x4387bf],_0x4387bf++,_0x4387bf===_0x3903da[_0x1717d1(0x156)]&&clearInterval(this[_0x1717d1(0x1c9)]);},0x1e);}[_0xd6c7b6(0x1bc)](_0x443c7c){const _0x55e591=_0xd6c7b6;this[_0x55e591(0x139)][_0x55e591(0x158)][_0x55e591(0x151)]=_0x443c7c;}[_0xd6c7b6(0x133)](_0x1b2562){const _0x34abed=_0xd6c7b6;return _0x1b2562[_0x34abed(0x14e)]&&_0x1b2562[_0x34abed(0x180)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x1a1)):_0x1b2562[_0x34abed(0x14e)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x1a4)):_0x1b2562[_0x34abed(0x180)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x193)):_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x14c));}[_0xd6c7b6(0x148)](_0x1c8d56){const _0x13629f=_0xd6c7b6;return _0x1c8d56?_0x1c8d56[_0x13629f(0x14e)]&&_0x1c8d56[_0x13629f(0x180)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x1b8)):_0x1c8d56[_0x13629f(0x14e)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13d)):_0x1c8d56[_0x13629f(0x180)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x155)):_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13c)):_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13c));}[_0xd6c7b6(0x199)](_0x288e67,_0x1f407,_0x443578,_0x530ae9){const _0x846078=_0xd6c7b6;this[_0x846078(0x139)][_0x846078(0x199)](_0x288e67,_0x1f407,_0x443578,_0x530ae9);}[_0xd6c7b6(0x161)](_0x29da1a){const _0x382a15=_0xd6c7b6;this[_0x382a15(0x139)][_0x382a15(0x161)](_0x29da1a);}[_0xd6c7b6(0x1dc)](_0x56ddb6){const _0x208edb=_0xd6c7b6;this[_0x208edb(0x139)][_0x208edb(0x186)][_0x208edb(0x1dc)](_0x56ddb6);}[_0xd6c7b6(0x128)](_0x5124c1=!0x1){const _0x4ad00e=_0xd6c7b6;this[_0x4ad00e(0x139)][_0x4ad00e(0x186)][_0x4ad00e(0x128)](_0x5124c1);}[_0xd6c7b6(0x1a6)](_0x296d48,_0x210193){const _0x4c627f=_0xd6c7b6;this[_0x4c627f(0x139)][_0x4c627f(0x1ca)][_0x4c627f(0x157)](_0x296d48,_0x210193);}[_0xd6c7b6(0x153)](){const _0x1088dc=_0xd6c7b6;this[_0x1088dc(0x139)][_0x1088dc(0x1ca)][_0x1088dc(0x153)]();}[_0xd6c7b6(0x1c8)](){const _0x3089ed=_0xd6c7b6;this[_0x3089ed(0x139)][_0x3089ed(0x186)][_0x3089ed(0x1bf)]=!0x0;}[_0xd6c7b6(0x136)](){const _0x42e23d=_0xd6c7b6;this[_0x42e23d(0x139)][_0x42e23d(0x186)][_0x42e23d(0x1bf)]=!0x1;}}
|
|
23
|
+
const _0x27346e=_0x42fa;(function(_0x5deaaa,_0x4bd1f9){const _0x281b80=_0x42fa,_0x9b407e=_0x5deaaa();while(!![]){try{const _0x1f3b3f=-parseInt(_0x281b80(0x14a))/0x1+parseInt(_0x281b80(0x105))/0x2+parseInt(_0x281b80(0xb9))/0x3*(-parseInt(_0x281b80(0xfd))/0x4)+-parseInt(_0x281b80(0x10e))/0x5+parseInt(_0x281b80(0xb2))/0x6+-parseInt(_0x281b80(0xea))/0x7+parseInt(_0x281b80(0x147))/0x8;if(_0x1f3b3f===_0x4bd1f9)break;else _0x9b407e['push'](_0x9b407e['shift']());}catch(_0x411a6a){_0x9b407e['push'](_0x9b407e['shift']());}}}(_0x1b51,0xc032c));function _0x42fa(_0x3e1df3,_0x3c0443){const _0x1b51e3=_0x1b51();return _0x42fa=function(_0x42fa5a,_0x16609c){_0x42fa5a=_0x42fa5a-0xb2;let _0x3a3920=_0x1b51e3[_0x42fa5a];return _0x3a3920;},_0x42fa(_0x3e1df3,_0x3c0443);}import{ContextPlugin as _0xb484d8}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1c9dbc}from'ckeditor5/src/utils.js';import{AIChatView as _0x3bfe09}from'./ui/aichatview.js';import{AITabs as _0x4bfb6f}from'../aitabs/aitabs.js';import{getTranslation as _0x472d9f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2d93b1}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x471c57}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x65460}from'./utils/promisequeue.js';function _0x1b51(){const _0x2a4e7e=['_view','setFeedItemAIReplySuggestionPartActive','1074657EDooEQ','fire','isReasoningEnabled','removeContextItem','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','from','attributes','chatHeader','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','commands','setWebSearch','enableControls','hasItem','user-message','values','interactionId','has','isModelAvailable','queueEmptyPromise','showResizeButton','disableControls','setReasoning','setIsMaximized','isTrackChangesOn','setFeedItemRenderingStrategy','addFeedItemAIReply','AI_CHAT_WELCOME_MESSAGE','setConversationTitle','hasFeedItem','updateSuggestionItem','isMaximized','areActionsDisabled','updateFeedItemAIReplyContent','setSuggestionPartActive','contextItems','capabilities','view','isWebSearchEnabled','setPromptInputValue','bind','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','pluginName','clearConversationContextUI','delegate','prepareLoadingMessage','isOfficialPlugin','removeItem','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','addFeedItemCustomElement','698362hwefbn','find','insertSuggestion','ai.availableReplyActions','addFeedItemError','populateSourceResourceBalloon','ai-reply','createConversation','disableModelSelector','AITabs','setConversationContext','stopAutoScroll','toggleSuggestionDisplayMode','trackChanges','clearPendingContextUI','custom-element','scrollFeedToSuggestion','renderingStrategy','chatFeed','4NDuykP','ai.models.showModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai.chat.welcomeMessage','toggleLoadingSkeleton','availableModels','updateSuggestionPartState','getItemIds','540370UUVcEU','displayedPrompt','setModelList','resetMessageInput','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','_titleAnimationInterval','value','label','filter','3652160pxYeHC','resetConversationTitle','isDone','showDiff','addFeedInteractionHeader','addTab','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','updateResourceState','_interactionPromiseResolver','destroy','get','setIsUploadInProgress','abort','isLoading','locale','clear','clearLoadingMessage','length','updateWebSources','last','startInteraction','updateFeedInteractionHeader','isVisible','removeFeedItem','updateFeedItemAIReplySources','markFeedItemAsDone','remove','chatControls','isPending','setModel','conversationCreated','setLoadingMessage','startAutoScroll','ai.chat.context.searchInputVisibleFrom','isBusy','closeSourceResourceBalloon','addContextItem','options','finishInteraction','isPremiumPlugin','feedItemRenderingStrategy','setInputPlaceholder','then','ai-suggestion-reply','scrollToSuggestion','addItem','_getInputPlaceholder','addFeedItemUserMessage','setContextItemLoading','error-message','interaction-header','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','enqueue','enableModelSelector','addFeedItemStaticMessage','set','16242936xtjbyF','setAddContextOptions','TrackChanges','1159193MjuBSI','_promiseQueue','</p>','config','AI_CHAT_HEADING','markItemAsDone','<p>','requires','focusPromptInput','streaming','AIChatUI','addFeedItemAISuggestion','userMessage','conversation-start','isDisabled','plugins','chat','_isTrackChangesCommandValueBound','stopInteraction','forEach','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplySuggestionPartState','removeFeedInteraction','children','setSelectedModel','5005812FUbSNi','context','updateCapabilities','updateReplyItem','startsWith'];_0x1b51=function(){return _0x2a4e7e;};return _0x1b51();}import{AI_CHAT_UI_EVENT_NAMES as _0x442c9a}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x9db47a}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x12ca3d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xb484d8{static get[_0x27346e(0x151)](){return[_0x4bfb6f];}[_0x27346e(0xb7)];static get[_0x27346e(0xe2)](){const _0x4efc9d=_0x27346e;return _0x4efc9d(0x154);}static get[_0x27346e(0xe6)](){return!0x0;}static get[_0x27346e(0x136)](){return!0x0;}[_0x27346e(0x137)]=_0x27346e(0x153);[_0x27346e(0x111)]=!0x0;[_0x27346e(0x14b)];[_0x27346e(0x117)];[_0x27346e(0x10a)]=void 0x0;[_0x27346e(0x15b)]=!0x1;constructor(_0x41c0f9){const _0x4323e4=_0x27346e;super(_0x41c0f9);const _0x50a075=this[_0x4323e4(0xb3)][_0x4323e4(0x159)][_0x4323e4(0x119)](_0x4323e4(0xf3));this[_0x4323e4(0x146)](_0x4323e4(0x131),!0x1),this[_0x4323e4(0x14b)]=new _0x65460(),this[_0x4323e4(0xb7)]=new _0x3bfe09(this[_0x4323e4(0xb3)][_0x4323e4(0x11d)],{'showResizeButton':_0x50a075[_0x4323e4(0xcc)],'contextResourcesSearchInputVisibleFrom':this[_0x4323e4(0xb3)][_0x4323e4(0x14d)][_0x4323e4(0x119)](_0x4323e4(0x130))}),this[_0x4323e4(0xb7)][_0x4323e4(0xe4)](..._0x442c9a)['to'](this),this[_0x4323e4(0xb7)]['on'](_0x4323e4(0xf6),(_0x422f0d,{showDiff:_0x3f4dff})=>{const _0x3ac9dd=_0x4323e4;this[_0x3ac9dd(0x111)]=_0x3f4dff;}),_0x50a075[_0x4323e4(0xdd)][_0x4323e4(0x113)]({'id':_0x4323e4(0x15a),'buttonLabel':_0x472d9f(this[_0x4323e4(0xb3)][_0x4323e4(0x11d)],_0x4323e4(0x14e)),'buttonIcon':_0x2d93b1,'order':0x0,'content':this[_0x4323e4(0xb7)]}),this[_0x4323e4(0xb7)][_0x4323e4(0x12a)][_0x4323e4(0xe0)](_0x4323e4(0x11c))['to'](this,_0x4323e4(0x131),_0x22a332=>_0x22a332),this[_0x4323e4(0xb7)][_0x4323e4(0xfc)][_0x4323e4(0xe0)](_0x4323e4(0x12b))['to'](this,_0x4323e4(0x131),_0x1a045b=>_0x1a045b),this[_0x4323e4(0xb7)][_0x4323e4(0x12a)][_0x4323e4(0x138)](this[_0x4323e4(0x13d)]()),this[_0x4323e4(0xe0)](_0x4323e4(0xca))['to'](this[_0x4323e4(0xb7)][_0x4323e4(0x12a)],_0x4323e4(0xca));}[_0x27346e(0x118)](){const _0x3b37f4=_0x27346e;super[_0x3b37f4(0x118)](),this[_0x3b37f4(0x10a)]&&clearInterval(this[_0x3b37f4(0x10a)]);}[_0x27346e(0xf1)](_0x670c58){const _0x1a8f20=_0x27346e,_0x36d37a=this[_0x1a8f20(0xb3)][_0x1a8f20(0x14d)][_0x1a8f20(0x119)](_0x1a8f20(0x100))??_0x472d9f(this[_0x1a8f20(0xb3)][_0x1a8f20(0x11d)],_0x1a8f20(0xd3));this[_0x1a8f20(0xb7)][_0x1a8f20(0xfc)][_0x1a8f20(0x11e)](),this[_0x1a8f20(0xb7)][_0x1a8f20(0x12a)][_0x1a8f20(0x144)](),this[_0x1a8f20(0xb7)][_0x1a8f20(0x12a)][_0x1a8f20(0x107)](_0x670c58[_0x1a8f20(0x102)],!this[_0x1a8f20(0xb3)][_0x1a8f20(0x14d)][_0x1a8f20(0x119)](_0x1a8f20(0xfe))),this[_0x1a8f20(0x145)]({'id':_0x1a8f20(0x157),'staticMessage':_0x36d37a}),this[_0x1a8f20(0xba)](_0x1a8f20(0x12d));}[_0x27346e(0x145)]({id:_0x51ab49,staticMessage:_0x410bfe}){const _0x378ca2=_0x27346e;this[_0x378ca2(0xb7)][_0x378ca2(0xfc)][_0x378ca2(0x13c)](_0x378ca2(0xf0),{'id':_0x51ab49,'initialContent':_0x378ca2(0x150)+_0x410bfe+_0x378ca2(0x14c)});}[_0x27346e(0x13e)](_0x22e0b6){const _0x30b8f2=_0x27346e,_0x42d61c=_0x22e0b6[_0x30b8f2(0xbf)]?.[_0x30b8f2(0x106)]||_0x22e0b6[_0x30b8f2(0x156)];this[_0x30b8f2(0xb7)][_0x30b8f2(0xfc)][_0x30b8f2(0x13c)](_0x30b8f2(0xc6),{'contextItems':Array[_0x30b8f2(0xbe)](_0x22e0b6[_0x30b8f2(0xdb)][_0x30b8f2(0xc7)]()),'initialContent':_0x30b8f2(0x150)+_0x42d61c+_0x30b8f2(0x14c),'id':_0x22e0b6['id']});}[_0x27346e(0xee)]({errorMessage:_0x2173d9,id:_0x5b1b21}){const _0x235b46=_0x27346e;this[_0x235b46(0xb7)][_0x235b46(0xfc)][_0x235b46(0x13c)](_0x235b46(0x140),{'initialContent':_0x235b46(0x150)+_0x2173d9+_0x235b46(0x14c),'id':_0x5b1b21});}[_0x27346e(0xd2)](_0x425515){const _0x21ab02=_0x27346e;return this[_0x21ab02(0x14b)][_0x21ab02(0x143)](async()=>{const _0x370b84=_0x21ab02;this[_0x370b84(0xb7)][_0x370b84(0xfc)][_0x370b84(0x13c)](_0x370b84(0xf0),{'id':_0x425515[_0x370b84(0xc8)]+':'+_0x425515['id']}),this[_0x370b84(0x11f)]();});}async[_0x27346e(0x155)](_0x2b764a){const _0x58038c=_0x27346e,_0x2c9c0b=_0x9db47a(this[_0x58038c(0xb3)]);let _0x4c1cf4=_0x2c9c0b[_0x58038c(0x14d)][_0x58038c(0x119)](_0x58038c(0xed))||[..._0x12ca3d];if(_0x2c9c0b[_0x58038c(0x159)][_0x58038c(0xc9)](_0x58038c(0x149))){if(!this[_0x58038c(0x15b)]){this[_0x58038c(0x15b)]=!0x0;const _0x2df11b=_0x2c9c0b[_0x58038c(0xc2)][_0x58038c(0x119)](_0x58038c(0xf7));this[_0x58038c(0xb7)][_0x58038c(0xfc)][_0x58038c(0xe0)](_0x58038c(0xd0))['to'](_0x2df11b,_0x58038c(0x10b));}}else _0x4c1cf4=_0x4c1cf4[_0x58038c(0x10d)](_0x2e1c4c=>_0x58038c(0xec)!=_0x2e1c4c);return this[_0x58038c(0x14b)][_0x58038c(0x143)](async()=>{const _0x537556=_0x58038c;this[_0x537556(0xb7)][_0x537556(0xfc)][_0x537556(0x13c)](_0x537556(0x13a),{'id':_0x2b764a[_0x537556(0xc8)]+':'+_0x2b764a['id'],'areActionsDisabled':_0x2b764a[_0x537556(0xd8)],'showDiff':this[_0x537556(0x111)],'availableActions':_0x4c1cf4}),this[_0x537556(0x11f)]();});}[_0x27346e(0x112)](_0x4ac7f7,_0x17a344){const _0x4c31dc=_0x27346e,_0x125a92=this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x161)][_0x4c31dc(0x122)];if(_0x125a92 instanceof _0x471c57)return this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x161)][_0x4c31dc(0x129)](_0x125a92),void this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x13c)](_0x4c31dc(0x141),{'id':_0x4ac7f7['id'],'capabilities':{'isWebSearchEnabled':_0x125a92[_0x4c31dc(0xdc)][_0x4c31dc(0xde)]||_0x17a344[_0x4c31dc(0xde)],'isReasoningEnabled':_0x125a92[_0x4c31dc(0xdc)][_0x4c31dc(0xbb)]||_0x17a344[_0x4c31dc(0xbb)]}});this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x13c)](_0x4c31dc(0x141),{'id':_0x4ac7f7['id'],'capabilities':_0x17a344});}async[_0x27346e(0xe9)](_0x4c2e64,_0x435b92){const _0x271fae=_0x27346e;let _0x920628;return await this[_0x271fae(0x14b)][_0x271fae(0x143)](async()=>{const _0x2922c0=_0x271fae;_0x920628=this[_0x2922c0(0xb7)][_0x2922c0(0xfc)][_0x2922c0(0x13c)](_0x2922c0(0xf9),{'content':_0x4c2e64,'id':_0x435b92});}),_0x920628;}[_0x27346e(0x126)](_0xe03101){const _0x5538b2=_0x27346e;this[_0x5538b2(0xb7)][_0x5538b2(0xfc)][_0x5538b2(0xe7)](_0xe03101);}[_0x27346e(0xd5)](_0x50cec3){const _0x21ea3b=_0x27346e;return this[_0x21ea3b(0xb7)][_0x21ea3b(0xfc)][_0x21ea3b(0xc5)](_0x50cec3);}[_0x27346e(0x124)](_0x139b00){const _0x394af7=_0x27346e,_0x15f3c7=this[_0x394af7(0xb7)][_0x394af7(0xfc)][_0x394af7(0x161)][_0x394af7(0xeb)](_0x442f78=>_0x442f78[_0x394af7(0x134)]['id']==_0x139b00['id']&&_0x442f78 instanceof _0x471c57);_0x15f3c7&&_0x15f3c7[_0x394af7(0x146)](_0x394af7(0x125),_0x139b00[_0x394af7(0x125)]);}async[_0x27346e(0xd9)](_0x44e961){const _0x57db71=_0x27346e,_0x4d5597=_0x44e961[_0x57db71(0xfb)]||this[_0x57db71(0x137)];return this[_0x57db71(0x14b)][_0x57db71(0x143)](async _0x3e71d3=>{const _0x2286d2=_0x57db71;await this[_0x2286d2(0xb7)][_0x2286d2(0xfc)][_0x2286d2(0xb5)]({..._0x44e961,'abortSignal':_0x3e71d3,'renderingStrategy':_0x4d5597}),_0x44e961[_0x2286d2(0x110)]&&this[_0x2286d2(0x128)](_0x44e961['id']);});}[_0x27346e(0x127)](_0x1784c8,_0x50cd35){const _0x5c16c2=_0x27346e;this[_0x5c16c2(0xb7)][_0x5c16c2(0xfc)][_0x5c16c2(0x121)](_0x1784c8,_0x50cd35);}async[_0x27346e(0x15e)](_0x3469a6){const _0xcbe623=_0x27346e,_0x294f0a=_0x3469a6[_0xcbe623(0xfb)]||this[_0xcbe623(0x137)];return this[_0xcbe623(0x14b)][_0xcbe623(0x143)](async _0x29321a=>{const _0x2af865=_0xcbe623;await this[_0x2af865(0xb7)][_0x2af865(0xfc)][_0x2af865(0xd6)]({..._0x3469a6,'abortSignal':_0x29321a,'renderingStrategy':_0x294f0a}),_0x3469a6[_0x2af865(0x110)]&&this[_0x2af865(0x128)](_0x3469a6['id']);});}[_0x27346e(0x15f)](_0x106760){const _0x73561e=_0x27346e;this[_0x73561e(0xb7)][_0x73561e(0xfc)][_0x73561e(0x103)](_0x106760);}[_0x27346e(0xb8)](_0x555c95){const _0x451626=_0x27346e;this[_0x451626(0xb7)][_0x451626(0xfc)][_0x451626(0xda)](_0x555c95);}[_0x27346e(0x128)](_0x24dbd5){const _0x2a140e=_0x27346e;this[_0x2a140e(0xb7)][_0x2a140e(0xfc)][_0x2a140e(0x14f)](_0x24dbd5);}[_0x27346e(0x160)](_0xcc3f88){const _0x2eb25b=_0x27346e;this[_0x2eb25b(0xb7)][_0x2eb25b(0xfc)][_0x2eb25b(0x104)]()[_0x2eb25b(0x10d)](_0xdabc03=>_0xdabc03[_0x2eb25b(0xb6)](_0xcc3f88))[_0x2eb25b(0x15d)](_0x3adcb7=>this[_0x2eb25b(0xb7)][_0x2eb25b(0xfc)][_0x2eb25b(0xe7)](_0x3adcb7));}[_0x27346e(0x123)](){const _0x118a96=_0x27346e,_0x276347=this[_0x118a96(0xe5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x118a96(0x12e)](_0x276347),this[_0x118a96(0xb7)][_0x118a96(0x12a)][_0x118a96(0xf2)](!this[_0x118a96(0xb3)][_0x118a96(0x14d)][_0x118a96(0x119)](_0x118a96(0xfe))),this[_0x118a96(0x131)]=!0x0,this[_0x118a96(0xb7)][_0x118a96(0xfc)][_0x118a96(0x12f)]();}[_0x27346e(0x15c)](_0x59d970){const _0x4013bf=_0x27346e;this[_0x4013bf(0x14b)][_0x4013bf(0x11b)](),this[_0x4013bf(0xb7)][_0x4013bf(0xfc)][_0x4013bf(0x104)]()[_0x4013bf(0x10d)](_0x3913fa=>_0x3913fa[_0x4013bf(0xb6)](_0x59d970['id']))[_0x4013bf(0x15d)](_0xd4848f=>this[_0x4013bf(0x128)](_0xd4848f)),this[_0x4013bf(0x131)]=!0x1,this[_0x4013bf(0xb7)][_0x4013bf(0xfc)][_0x4013bf(0xf5)]();}async[_0x27346e(0x135)](){const _0x535e6f=_0x27346e;return this[_0x535e6f(0x14b)][_0x535e6f(0xcb)][_0x535e6f(0x139)](()=>{const _0x10948b=_0x535e6f;this[_0x10948b(0x131)]=!0x1,this[_0x10948b(0xb7)][_0x10948b(0xfc)][_0x10948b(0xf5)]();});}[_0x27346e(0x133)](_0x55652c,_0x289661){const _0x34c0f0=_0x27346e;this[_0x34c0f0(0xb7)][_0x34c0f0(0x12a)][_0x34c0f0(0x133)](_0x55652c,_0x289661);}[_0x27346e(0xbc)](_0x485c17){const _0x385277=_0x27346e;this[_0x385277(0xb7)][_0x385277(0x12a)][_0x385277(0xbc)](_0x485c17);}[_0x27346e(0x13f)](_0x515475,_0x9753cf){const _0x3dfad7=_0x27346e;this[_0x3dfad7(0xb7)][_0x3dfad7(0x12a)][_0x3dfad7(0x13f)](_0x515475,_0x9753cf);}[_0x27346e(0x11a)](_0x199d73){const _0x15c1a0=_0x27346e;this[_0x15c1a0(0xb7)][_0x15c1a0(0x12a)][_0x15c1a0(0x11a)](_0x199d73);}[_0x27346e(0xf4)](_0x128ac3){const _0x784994=_0x27346e;this[_0x784994(0xb7)][_0x784994(0x12a)][_0x784994(0xf4)](_0x128ac3);}[_0x27346e(0xf8)](){const _0x1aab4f=_0x27346e;this[_0x1aab4f(0xb7)][_0x1aab4f(0x12a)][_0x1aab4f(0xf8)]();}[_0x27346e(0xe3)](){const _0x25f5c7=_0x27346e;this[_0x25f5c7(0xb7)][_0x25f5c7(0x12a)][_0x25f5c7(0xe3)]();}[_0x27346e(0x116)](_0x28f7c0,_0x5e8256,_0x596a28){const _0x489ea8=_0x27346e;this[_0x489ea8(0xb7)][_0x489ea8(0x12a)][_0x489ea8(0x116)](_0x28f7c0,_0x5e8256,_0x596a28);}[_0x27346e(0x108)](){const _0x11ada1=_0x27346e;this[_0x11ada1(0xb7)][_0x11ada1(0x12a)][_0x11ada1(0x108)](),this[_0x11ada1(0xb7)][_0x11ada1(0x12a)][_0x11ada1(0x138)](this[_0x11ada1(0x13d)]());}[_0x27346e(0x148)](_0x33e74f){const _0x42d74f=_0x27346e;this[_0x42d74f(0xb7)][_0x42d74f(0x12a)][_0x42d74f(0x148)](_0x33e74f);}[_0x27346e(0xb4)](_0x5ab5c6){const _0x38b922=_0x27346e;this[_0x38b922(0xb7)][_0x38b922(0x12a)][_0x38b922(0xc3)](_0x5ab5c6[_0x38b922(0xde)]),this[_0x38b922(0xb7)][_0x38b922(0x12a)][_0x38b922(0xce)](_0x5ab5c6[_0x38b922(0xbb)]),this[_0x38b922(0xb7)][_0x38b922(0x12a)][_0x38b922(0x138)](this[_0x38b922(0x13d)](_0x5ab5c6));}[_0x27346e(0x162)](_0x517cf9,_0x45ea1a){const _0xb6afd1=_0x27346e;this[_0xb6afd1(0xb7)][_0xb6afd1(0x12a)][_0xb6afd1(0x12c)](_0x517cf9),_0x45ea1a&&this[_0xb6afd1(0xb7)][_0xb6afd1(0x12a)][_0xb6afd1(0xf2)](!0x1);}[_0x27346e(0xd1)](_0x44a8c7){const _0x271d20=_0x27346e;this[_0x271d20(0x137)]=_0x44a8c7;}[_0x27346e(0x101)](_0x58e01e){const _0x2ca91b=_0x27346e;this[_0x2ca91b(0xb7)][_0x2ca91b(0xfc)][_0x2ca91b(0x101)](_0x58e01e);}[_0x27346e(0x10f)](){const _0x5d73ef=_0x27346e;this[_0x5d73ef(0xd4)](_0x472d9f(this[_0x5d73ef(0xb3)][_0x5d73ef(0x11d)],_0x5d73ef(0x14e)));}[_0x27346e(0xd4)](_0x1afdfa,_0x2d9071=!0x1){const _0x151e76=_0x27346e;if(_0x2d9071&&!_0x1c9dbc()&&_0x1afdfa[_0x151e76(0x120)])return this[_0x151e76(0xb7)][_0x151e76(0xc0)][_0x151e76(0x10c)]='',void this[_0x151e76(0x115)](_0x1afdfa);this[_0x151e76(0xb7)][_0x151e76(0xc0)][_0x151e76(0x10c)]=_0x1afdfa;}[_0x27346e(0x12e)](_0x192862){const _0xc26a97=_0x27346e;this[_0xc26a97(0xb7)][_0xc26a97(0xfc)][_0xc26a97(0x12e)](_0x192862);}[_0x27346e(0x11f)](){const _0x29cc53=_0x27346e;this[_0x29cc53(0xb7)][_0x29cc53(0xfc)][_0x29cc53(0x12e)]('');}[_0x27346e(0x115)](_0x2af4ad){const _0x36975a=_0x27346e;let _0x3daa91=0x0;clearInterval(this[_0x36975a(0x10a)]),this[_0x36975a(0x10a)]=setInterval(()=>{const _0x39adcf=_0x36975a;this[_0x39adcf(0xb7)][_0x39adcf(0xc0)][_0x39adcf(0x10c)]=this[_0x39adcf(0xb7)][_0x39adcf(0xc0)][_0x39adcf(0x10c)]+_0x2af4ad[_0x3daa91],_0x3daa91++,_0x3daa91===_0x2af4ad[_0x39adcf(0x120)]&&clearInterval(this[_0x39adcf(0x10a)]);},0x1e);}[_0x27346e(0xcf)](_0x2d7ae5){const _0x211a13=_0x27346e;this[_0x211a13(0xb7)][_0x211a13(0xc0)][_0x211a13(0xd7)]=_0x2d7ae5;}[_0x27346e(0xe5)](_0x49e531){const _0x43e252=_0x27346e;return _0x49e531[_0x43e252(0xde)]&&_0x49e531[_0x43e252(0xbb)]?_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0x109)):_0x49e531[_0x43e252(0xde)]?_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0xc1)):_0x49e531[_0x43e252(0xbb)]?_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0xbd)):_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0xe8));}[_0x27346e(0x13d)](_0x57c405){const _0x3b16e6=_0x27346e;return _0x57c405?_0x57c405[_0x3b16e6(0xde)]&&_0x57c405[_0x3b16e6(0xbb)]?_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0xe1)):_0x57c405[_0x3b16e6(0xde)]?_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0xff)):_0x57c405[_0x3b16e6(0xbb)]?_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0x114)):_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0x142)):_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0x142));}[_0x27346e(0xef)](_0x3ad1cf,_0x52f7b3,_0xe7311,_0x53ab4f){const _0x41d842=_0x27346e;this[_0x41d842(0xb7)][_0x41d842(0xef)](_0x3ad1cf,_0x52f7b3,_0xe7311,_0x53ab4f);}[_0x27346e(0x132)](_0x3eba7c){const _0x595921=_0x27346e;this[_0x595921(0xb7)][_0x595921(0x132)](_0x3eba7c);}[_0x27346e(0xdf)](_0x380137){const _0x2dc93d=_0x27346e;this[_0x2dc93d(0xb7)][_0x2dc93d(0x12a)][_0x2dc93d(0xdf)](_0x380137);}[_0x27346e(0x152)](_0x398f90=!0x1){const _0x4f73cb=_0x27346e;this[_0x4f73cb(0xb7)][_0x4f73cb(0x12a)][_0x4f73cb(0x152)](_0x398f90);}[_0x27346e(0xfa)](_0x2b1c5b,_0x397899){const _0x169f11=_0x27346e;this[_0x169f11(0xb7)][_0x169f11(0xfc)][_0x169f11(0x13b)](_0x2b1c5b,_0x397899);}[_0x27346e(0x12f)](){const _0x8cf56b=_0x27346e;this[_0x8cf56b(0xb7)][_0x8cf56b(0xfc)][_0x8cf56b(0x12f)]();}[_0x27346e(0xcd)](){const _0x23e44d=_0x27346e;this[_0x23e44d(0xb7)][_0x23e44d(0x12a)][_0x23e44d(0x158)]=!0x0;}[_0x27346e(0xc4)](){const _0x5bbd7=_0x27346e;this[_0x5bbd7(0xb7)][_0x5bbd7(0x12a)][_0x5bbd7(0x158)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x202b84=_0x5a09;function _0x1346(){const _0x586ad9=['3165MVZXbN','files-','addUrlToContext','url','getData','SELECTION','_createContextItemFromContent','start','getResources','files','file-','DOCUMENT','_findSourceIdsByResourceId','_addContextItem','uploadFile','_isResourceInContext','ai-chat-source-resources-load-failed','attributes','isInContext','text/markdown','customItems','name','resourceId','ai-chat-source-not-found','_pendingContextItems','11843163HYnkMP','isCurrentDocumentInConversation','_connector','contextItemRemoved','addSelectionToContext','size','_updateResourceInContextState','7624qBtNhn','7041006LrNpBb','_toggleAddCurrentDocumentOptionVisibility','File','selection','addResourceToContext','ai-chat-file-upload-failed','stack','version','uploadDocument','message','MARKDOWN','_conversationContextItems','loadSourceResources','data','code','_finishContextItemLoading','TEXT','getDocument','contextItemAdded','updateCurrentDocument','_finishUploadOperation','addToConversationContext','label','addToolItemToContext','removeSelectionFromContext','toolName','addCurrentDocumentToContext','get','_setAddContextOptionsDefaultState','17850960mjwggT','FILE','error','HTML','uploadProgressChanged','_mapContextItemToRequestData','removeFromContext','_ongoingUploads','ai-chat-url-upload-failed','filter','ai-chat-context-invalid-data','text/html','getSentContextItems','ai-chat-resource-no-data','object\x20with\x20content\x20and\x20type\x20properties','uiId','init','enabled','all','url-','mcpServerName','4143543rzBaei','set','delete','populateFromMessage','abortController','type','URL','hidden','ai-chat-document-upload-failed','resources','_removeContextItem','contextItemLoadingEnded','current-document','text/plain','length','sessionId','contextSent','urls','isHidden','clearPendingContextItems','_config','content','267434tIUwCE','_addContextOptionsState','addContextOptionsChanged','resourceStateChanged','getPendingContextItems','substring','sourceResourcesLoaded','fetchDocument','mapContextItemsToRequestData','uploadUrl','push','end','has','TOOL','_startUploadOperation','find','ai-chat-resource-load-failed','Current\x20document','string','forEach','_ongoingUploadOperations','addFilesToContext','isSelectionInContext','getId','fire','_addToConversationContextItem','_convertTextResourceToFile','574518GOJEAF','isReadOnly','object','8sBaFbN','_getCustomSourcesInitialState','ai-chat-context-unsupported-type','abort','values','ai-request-aborted','map','sources','isCurrentDocumentInContext','56UWTOMl','from','document','startsWith','_ownerId'];_0x1346=function(){return _0x586ad9;};return _0x1346();}(function(_0x4eaca0,_0x5aa5e9){const _0x41b6de=_0x5a09,_0x1fbcd2=_0x4eaca0();while(!![]){try{const _0x56e3b4=parseInt(_0x41b6de(0xf0))/0x1*(parseInt(_0x41b6de(0xd2))/0x2)+-parseInt(_0x41b6de(0xbc))/0x3+-parseInt(_0x41b6de(0x11e))/0x4*(parseInt(_0x41b6de(0xfe))/0x5)+parseInt(_0x41b6de(0x11f))/0x6+-parseInt(_0x41b6de(0xed))/0x7*(-parseInt(_0x41b6de(0xf9))/0x8)+-parseInt(_0x41b6de(0x117))/0x9+parseInt(_0x41b6de(0x13c))/0xa;if(_0x56e3b4===_0x5aa5e9)break;else _0x1fbcd2['push'](_0x1fbcd2['shift']());}catch(_0x5abf4e){_0x1fbcd2['push'](_0x1fbcd2['shift']());}}}(_0x1346,0xaab81));import{CKEditorError as _0x462c3a,ObservableMixin as _0x4c39c7,uid as _0x323f94}from'ckeditor5/src/utils.js';function _0x5a09(_0xfc24c3,_0x457744){const _0x1346ba=_0x1346();return _0x5a09=function(_0x5a09ab,_0x2080d6){_0x5a09ab=_0x5a09ab-0xac;let _0x27f71c=_0x1346ba[_0x5a09ab];return _0x27f71c;},_0x5a09(_0xfc24c3,_0x457744);}import{AIContextItemType as _0x4dd290,AIContextTextResourceType as _0x56b05a}from'../../aicore/model/aicontext.js';import{escape as _0x4133d8}from'es-toolkit/compat';import{errorsMap as _0x5ca883}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x202b84(0x131),_0x202b84(0x11a),_0x202b84(0xc7),_0x202b84(0xcc),_0x202b84(0x13e),_0x202b84(0xd4),_0x202b84(0xd8),_0x202b84(0xd5),_0x202b84(0x140)];export class AIChatContext extends _0x4c39c7(){[_0x202b84(0x119)];[_0x202b84(0xd0)];[_0x202b84(0xfd)];constructor({connector:_0x2cc21c,config:_0x471c99,ownerId:_0x2c4ad3}){const _0x388881=_0x202b84;super(),this[_0x388881(0x119)]=_0x2cc21c,this[_0x388881(0xd0)]=_0x471c99,this[_0x388881(0xfd)]=_0x2c4ad3;}[_0x202b84(0xb7)](){const _0x292e91=_0x202b84;this[_0x292e91(0x116)]=new Map(),this[_0x292e91(0x12a)]=new Map(),this[_0x292e91(0xae)]=new Map(),this[_0x292e91(0xe6)]=new Map(),this[_0x292e91(0x13b)]();}[_0x202b84(0xd6)](){const _0x8753c=_0x202b84;return this[_0x8753c(0x116)];}async[_0x202b84(0xbf)](_0x1ffd01){const _0x308519=_0x202b84,_0x12ac25=await this[_0x308519(0x104)](_0x1ffd01);return this[_0x308519(0xeb)](_0x12ac25),_0x308519(0xc8)===_0x12ac25[_0x308519(0xb6)]&&this[_0x308519(0x120)](),_0x12ac25;}async[_0x202b84(0x104)](_0x484b7e){const _0x4895f2=_0x202b84;if(_0x484b7e[_0x4895f2(0xc1)]===_0x4dd290[_0x4895f2(0x109)]){const _0xf7aa9=await this[_0x4895f2(0x119)][_0x4895f2(0xd9)](this[_0x4895f2(0xfd)],_0x484b7e['id'])[_0x4895f2(0x130)]();return{'id':_0x4895f2(0xc8),'uiId':_0x4895f2(0xc8),'label':_0x4895f2(0xe3),'type':_0x484b7e[_0x4895f2(0xc1)],'content':_0xf7aa9[_0x4895f2(0xd1)],'hidden':this[_0x4895f2(0x12a)][_0x4895f2(0xde)](_0x4895f2(0xc8)),'version':_0xf7aa9[_0x4895f2(0x10f)]?.[_0x4895f2(0x126)],'sessionId':_0xf7aa9[_0x4895f2(0x10f)]?.[_0x4895f2(0xcb)]};}if(_0x484b7e[_0x4895f2(0xc1)]===_0x4dd290[_0x4895f2(0xdf)])return{'id':_0x484b7e['id'],'uiId':_0x484b7e['id'],'label':_0x484b7e[_0x4895f2(0x12c)]?.[_0x4895f2(0x135)]||_0x484b7e['id'],'type':_0x4dd290[_0x4895f2(0xdf)],'mcpServerName':_0x484b7e[_0x4895f2(0xbb)],'toolName':_0x484b7e[_0x4895f2(0x138)],'data':_0x484b7e[_0x4895f2(0x12c)]||{}};return{'id':_0x484b7e['id'],'uiId':_0x484b7e['id'],'label':_0x484b7e[_0x4895f2(0x10f)]?.[_0x4895f2(0x135)]||_0x484b7e[_0x4895f2(0x113)]||_0x484b7e[_0x4895f2(0x101)]||_0x484b7e['id'],'type':_0x484b7e[_0x4895f2(0xc1)],..._0x484b7e?.[_0x4895f2(0x10f)]?.[_0x4895f2(0x114)]?{'resourceId':_0x484b7e[_0x4895f2(0x10f)]?.[_0x4895f2(0x114)]}:{}};}[_0x202b84(0xb3)](){const _0x35be93=_0x202b84;return new Map(this[_0x35be93(0x12a)]);}[_0x202b84(0xad)](_0x34be4a){const _0x5889a3=_0x202b84,_0x3c271c=this[_0x5889a3(0x116)][_0x5889a3(0x13a)](_0x34be4a);_0x3c271c?.[_0x5889a3(0xee)]||this[_0x5889a3(0xc6)](_0x34be4a);}[_0x202b84(0xcf)](){const _0x2fbc8a=_0x202b84;if(0x0===this[_0x2fbc8a(0x116)][_0x2fbc8a(0x11c)])return;for(const _0x3424a9 of this[_0x2fbc8a(0x116)][_0x2fbc8a(0xf4)]())this[_0x2fbc8a(0xc6)](_0x3424a9[_0x2fbc8a(0xb6)]);const _0x391c13=this[_0x2fbc8a(0x12a)][_0x2fbc8a(0x13a)](_0x2fbc8a(0xc8))||this[_0x2fbc8a(0x116)][_0x2fbc8a(0x13a)](_0x2fbc8a(0xc8));_0x391c13&&this[_0x2fbc8a(0x10b)]({..._0x391c13,'isReadOnly':!0x0,'hidden':!0x0});}[_0x202b84(0x134)](_0x4af73d){const _0x1a1e92=_0x202b84;for(const _0x3942c1 of _0x4af73d[_0x1a1e92(0xf4)]())this[_0x1a1e92(0xeb)](_0x3942c1);this[_0x1a1e92(0xcf)](),this[_0x1a1e92(0xea)](_0x1a1e92(0xcc),{'contextItems':Array[_0x1a1e92(0xfa)](this[_0x1a1e92(0xb3)]()[_0x1a1e92(0xf4)]())});}[_0x202b84(0xf8)](){const _0x55fcd5=_0x202b84;return this[_0x55fcd5(0x116)][_0x55fcd5(0xde)](_0x55fcd5(0xc8));}[_0x202b84(0xe8)](){const _0x210109=_0x202b84;return this[_0x210109(0x116)][_0x210109(0xde)](_0x210109(0x122));}[_0x202b84(0x118)](){const _0x108b46=_0x202b84;return this[_0x108b46(0x12a)][_0x108b46(0xde)](_0x108b46(0xc8));}static[_0x202b84(0xda)](_0x5a716e){const _0x861645=_0x202b84;return Array[_0x861645(0xfa)](_0x5a716e[_0x861645(0xf4)]())[_0x861645(0xf6)](_0x43d354=>this[_0x861645(0xac)](_0x43d354))[_0x861645(0xb0)](_0x181b1d=>null!==_0x181b1d);}async[_0x202b84(0xe7)](_0x5c9faa,_0x3f0936,_0x19160e=_0x4dd290[_0x202b84(0x13d)]){const _0x46b572=_0x202b84,_0x55239a=_0x46b572(0xff)+_0x323f94();this[_0x46b572(0xe0)](_0x55239a);try{await Promise[_0x46b572(0xb9)](_0x5c9faa[_0x46b572(0xf6)](async _0x276b64=>{const _0x525904=_0x46b572,_0x3dcbaf=_0x525904(0x108)+_0x323f94(),_0x27e740=_0x4133d8(_0x276b64[_0x525904(0x113)]);try{this[_0x525904(0x10b)]({'type':_0x19160e,'label':_0x3f0936?.[_0x525904(0x135)]||_0x27e740,'uiId':_0x3dcbaf,'resourceId':_0x3f0936?.[_0x525904(0x114)]},!0x0);const _0x3aca9c=this[_0x525904(0x119)][_0x525904(0x10c)](this[_0x525904(0xfd)],_0x276b64,_0x3f0936);this[_0x525904(0xae)][_0x525904(0xbd)](_0x3dcbaf,_0x3aca9c[_0x525904(0xc0)]);const {id:_0x19b609}=await _0x3aca9c[_0x525904(0xe9)]();this[_0x525904(0xae)][_0x525904(0xbe)](_0x3dcbaf),this[_0x525904(0x12e)]({'type':_0x19160e,'id':_0x19b609,'label':_0x3f0936?.[_0x525904(0x135)]||_0x27e740,'uiId':_0x3dcbaf,'resourceId':_0x3f0936?.[_0x525904(0x114)]},!0x1);}catch(_0x435275){this[_0x525904(0xae)][_0x525904(0xbe)](_0x3dcbaf);if(!(_0x435275 instanceof _0x462c3a&&_0x435275[_0x525904(0x128)][_0x525904(0xfc)](_0x525904(0xf5)))){const _0x3ab400=_0x5ca883[_0x525904(0x13a)](_0x435275[_0x525904(0x12d)])||_0x525904(0x124),_0x5c95cc=new _0x462c3a(_0x3ab400,null,{'fileName':_0x27e740,..._0x435275});_0x5c95cc[_0x525904(0x125)]=_0x435275[_0x525904(0x125)],this[_0x525904(0xea)](_0x525904(0x13e),{'error':_0x5c95cc});}this[_0x525904(0xc6)](_0x3dcbaf);}}));}finally{this[_0x46b572(0x133)](_0x55239a);}}[_0x202b84(0x139)](_0x1f4e21){const _0x1be0f0=_0x202b84;if(this[_0x1be0f0(0xf8)]()||!this[_0x1be0f0(0xd3)][_0x1be0f0(0xfb)][_0x1be0f0(0xb8)])return;const _0x5584f0={'type':_0x4dd290[_0x1be0f0(0x109)],'uiId':_0x1be0f0(0xc8),'label':_0x1f4e21,'isReadOnly':this[_0x1be0f0(0x12a)][_0x1be0f0(0xde)](_0x1be0f0(0xc8)),'hidden':this[_0x1be0f0(0x12a)][_0x1be0f0(0xde)](_0x1be0f0(0xc8))};this[_0x1be0f0(0x10b)](_0x5584f0);}async[_0x202b84(0x132)](_0x1f696d,_0x10179a,_0x39222e,_0xfc4b99){const _0x33fbd5=_0x202b84,_0xa4af92=this[_0x33fbd5(0x116)][_0x33fbd5(0x13a)](_0x33fbd5(0xc8));if(_0xa4af92&&_0x1f696d){_0xa4af92[_0x33fbd5(0x122)]=_0xfc4b99?_0xfc4b99[_0x33fbd5(0xf6)](_0x24ec5e=>({'start':_0x24ec5e[_0x33fbd5(0x105)],'end':_0x24ec5e[_0x33fbd5(0xdd)]})):[];try{if(_0xa4af92[_0x33fbd5(0x126)]===_0x10179a)return;const {id:_0x12e50a}=await this[_0x33fbd5(0x119)][_0x33fbd5(0x127)](this[_0x33fbd5(0xfd)],_0x1f696d,{'version':_0x10179a,'sessionId':_0x39222e})[_0x33fbd5(0xe9)]();_0xa4af92['id']=_0x12e50a,_0xa4af92[_0x33fbd5(0xd1)]=_0x1f696d,_0xa4af92[_0x33fbd5(0x126)]=_0x10179a,_0xa4af92[_0x33fbd5(0xcb)]=_0x39222e;}catch(_0x3ca713){const _0x42d4f3=new _0x462c3a(_0x33fbd5(0xc4),null);_0x42d4f3[_0x33fbd5(0x125)]=_0x3ca713[_0x33fbd5(0x125)],this[_0x33fbd5(0xea)](_0x33fbd5(0x13e),{'error':_0x42d4f3});}}}[_0x202b84(0x11b)](_0x558dc3){const _0x42238d=_0x202b84;this[_0x42238d(0x10b)]({'type':_0x4dd290[_0x42238d(0x103)],'label':_0x558dc3,'uiId':_0x42238d(0x122),'content':_0x558dc3});}[_0x202b84(0x137)](){const _0x11f082=_0x202b84;this[_0x11f082(0xc6)](_0x11f082(0x122));}async[_0x202b84(0x100)](_0x4cf523,_0x254f35){const _0x18f44a=_0x202b84,_0x2221da=_0x18f44a(0xba)+_0x323f94();this[_0x18f44a(0xe0)](_0x2221da);const _0x183af4=_0x18f44a(0xba)+_0x323f94();try{this[_0x18f44a(0x10b)]({'type':_0x4dd290[_0x18f44a(0xc2)],'label':_0x254f35?.[_0x18f44a(0x135)]||_0x4cf523,'uiId':_0x183af4,'resourceId':_0x254f35?.[_0x18f44a(0x114)]},!0x0);const _0x589b13=this[_0x18f44a(0x119)][_0x18f44a(0xdb)](this[_0x18f44a(0xfd)],_0x4cf523,_0x254f35);this[_0x18f44a(0xae)][_0x18f44a(0xbd)](_0x183af4,_0x589b13[_0x18f44a(0xc0)]);const {id:_0x13f6fa}=await _0x589b13[_0x18f44a(0xe9)]();this[_0x18f44a(0xae)][_0x18f44a(0xbe)](_0x183af4),this[_0x18f44a(0x12e)]({'type':_0x4dd290[_0x18f44a(0xc2)],'id':_0x13f6fa,'label':_0x254f35?.[_0x18f44a(0x135)]||_0x4cf523,'uiId':_0x183af4,'resourceId':_0x254f35?.[_0x18f44a(0x114)]},!0x1);}catch(_0x7ef742){this[_0x18f44a(0xae)][_0x18f44a(0xbe)](_0x183af4),(_0x7ef742[_0x18f44a(0x128)][_0x18f44a(0xfc)](_0x18f44a(0xf5))||this[_0x18f44a(0xea)](_0x18f44a(0x13e),{'error':new _0x462c3a(_0x18f44a(0xaf),this,{'url':_0x4cf523,'originalError':_0x7ef742}),'url':_0x4cf523}),this[_0x18f44a(0xc6)](_0x183af4));}finally{this[_0x18f44a(0x133)](_0x2221da);}}[_0x202b84(0x136)](_0x441437){const _0x16ad2b=_0x202b84;_0x441437['id']=_0x441437['id']??_0x323f94()[_0x16ad2b(0xd7)](0x0,0x15),this[_0x16ad2b(0x116)][_0x16ad2b(0xbd)](_0x441437[_0x16ad2b(0xb6)],_0x441437),this[_0x16ad2b(0xea)](_0x16ad2b(0x131),{'contextItem':_0x441437,'isLoading':!0x1});}async[_0x202b84(0x12b)](_0x5082f5,_0xcf778d,_0x223310){const _0x3117f7=_0x202b84,_0x1f0c09=this[_0x3117f7(0xd3)][_0x3117f7(0xf7)][_0x3117f7(0xe1)](_0x38a509=>_0x38a509['id']===_0x5082f5);if(!_0x1f0c09)return this[_0x3117f7(0xea)](_0x3117f7(0x13e),{'error':new _0x462c3a(_0x3117f7(0x115),this,{'sourceId':_0x5082f5}),'sourceId':_0x5082f5}),[];try{const _0x23afda=(await _0x1f0c09[_0x3117f7(0x106)](_0xcf778d))[_0x3117f7(0xf6)](_0x28ec94=>{const _0x1b1139=_0x3117f7,_0x417c82=this[_0x1b1139(0x10d)](_0x28ec94['id']);return{..._0x28ec94,'isInContext':_0x417c82};});return _0x1f0c09[_0x3117f7(0xc5)]=_0x23afda,this[_0x3117f7(0xea)](_0x3117f7(0xd8),{'sourceId':_0x5082f5,'source':_0x1f0c09,'resources':_0x23afda,'uid':_0x223310}),_0x23afda;}catch(_0x380095){return this[_0x3117f7(0xea)](_0x3117f7(0x13e),{'error':new _0x462c3a(_0x3117f7(0x10e),this,{'sourceId':_0x5082f5,'originalError':_0x380095}),'sourceId':_0x5082f5,'sourceLabel':_0x1f0c09[_0x3117f7(0x135)]}),[];}}async[_0x202b84(0x123)](_0x49a16c,_0x2766a0){const _0x398bcf=_0x202b84;if(this[_0x398bcf(0x10d)](_0x2766a0['id']))return;let _0x38b5fd=_0x2766a0[_0x398bcf(0x12c)];if(!_0x38b5fd&&_0x49a16c[_0x398bcf(0x102)])try{_0x38b5fd=await _0x49a16c[_0x398bcf(0x102)](_0x2766a0['id']);}catch(_0x2dadfb){return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xe2),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'originalError':_0x2dadfb}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}if(_0x38b5fd)switch(_0x2766a0[_0x398bcf(0xc1)]){case _0x4dd290[_0x398bcf(0xc2)]:if(_0x398bcf(0xe4)!=typeof _0x38b5fd)return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0xe4),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});await this[_0x398bcf(0x100)](_0x38b5fd,{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']});break;case _0x4dd290[_0x398bcf(0x13d)]:if(!(_0x38b5fd instanceof File))return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0x121),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});await this[_0x398bcf(0xe7)]([_0x38b5fd],{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']});break;case _0x4dd290[_0x398bcf(0x12f)]:if(_0x398bcf(0xef)!=typeof _0x38b5fd||!(_0x398bcf(0xd1)in _0x38b5fd)||!(_0x398bcf(0xc1)in _0x38b5fd))return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0xb5),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});_0x38b5fd=AIChatContext[_0x398bcf(0xec)](_0x38b5fd,_0x2766a0[_0x398bcf(0x135)]),await this[_0x398bcf(0xe7)]([_0x38b5fd],{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']},_0x4dd290[_0x398bcf(0x12f)]);break;case _0x4dd290[_0x398bcf(0xdf)]:break;default:this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xf2),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'resourceType':_0x2766a0[_0x398bcf(0xc1)]}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}else this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb4),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}static[_0x202b84(0xec)](_0xa220fb,_0x53a9b3){const _0x38887b=_0x202b84;switch(_0xa220fb[_0x38887b(0xc1)]){case _0x56b05a[_0x38887b(0x129)]:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0x111)});case _0x56b05a[_0x38887b(0x13f)]:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0xb2)});default:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0xc9)});}}static[_0x202b84(0xac)](_0x1a4929){const _0x2c1032=_0x202b84;switch(_0x1a4929[_0x2c1032(0xc1)]){case _0x4dd290[_0x2c1032(0x13d)]:return{'type':_0x4dd290[_0x2c1032(0x13d)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0xc2)]:return{'type':_0x4dd290[_0x2c1032(0xc2)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0x109)]:return{'type':_0x4dd290[_0x2c1032(0x109)],'id':_0x1a4929['id'],..._0x1a4929[_0x2c1032(0x122)]?.[_0x2c1032(0xca)]&&{'selection':_0x1a4929[_0x2c1032(0x122)]}};case _0x4dd290[_0x2c1032(0x12f)]:return{'type':_0x4dd290[_0x2c1032(0x13d)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0xdf)]:{const _0x2c1674=_0x1a4929;return{'type':_0x4dd290[_0x2c1032(0xdf)],'mcpServerName':_0x2c1674[_0x2c1032(0xbb)],'toolName':_0x2c1674[_0x2c1032(0x138)],'data':_0x2c1674[_0x2c1032(0x12c)],'id':_0x2c1674['id']};}default:return null;}}[_0x202b84(0x10b)](_0x22b7f4,_0x237035=!0x1){const _0x1b9a75=_0x202b84;if(this[_0x1b9a75(0x116)][_0x1b9a75(0xbd)](_0x22b7f4[_0x1b9a75(0xb6)],_0x22b7f4),_0x22b7f4[_0x1b9a75(0xc3)]||this[_0x1b9a75(0xea)](_0x1b9a75(0x131),{'contextItem':_0x22b7f4,'isLoading':_0x237035}),_0x1b9a75(0xc8)===_0x22b7f4[_0x1b9a75(0xb6)]&&this[_0x1b9a75(0x120)](),_0x22b7f4[_0x1b9a75(0x114)]){const _0x2a6440=this[_0x1b9a75(0x10a)](_0x22b7f4[_0x1b9a75(0x114)]);_0x2a6440&&_0x2a6440[_0x1b9a75(0xe5)](_0x4e81ac=>{const _0x14f11f=_0x1b9a75;this[_0x14f11f(0x11d)](_0x4e81ac,_0x22b7f4[_0x14f11f(0x114)],!0x0);});}}[_0x202b84(0xc6)](_0x443bb4){const _0x451a8f=_0x202b84,_0x14c8b3=this[_0x451a8f(0x116)][_0x451a8f(0x13a)](_0x443bb4),_0x2edf34=this[_0x451a8f(0xae)][_0x451a8f(0x13a)](_0x443bb4);if(_0x2edf34&&(_0x2edf34[_0x451a8f(0xf3)](),this[_0x451a8f(0xae)][_0x451a8f(0xbe)](_0x443bb4)),_0x14c8b3?.[_0x451a8f(0x114)]){const _0x5e87fa=this[_0x451a8f(0x10a)](_0x14c8b3[_0x451a8f(0x114)]);_0x5e87fa&&_0x5e87fa[_0x451a8f(0xe5)](_0x562e0b=>{const _0x399a55=_0x451a8f;this[_0x399a55(0x11d)](_0x562e0b,_0x14c8b3[_0x399a55(0x114)],!0x1);});}this[_0x451a8f(0x116)][_0x451a8f(0xbe)](_0x443bb4),this[_0x451a8f(0xea)](_0x451a8f(0x11a),{'uiId':_0x443bb4,'type':_0x14c8b3?.[_0x451a8f(0xc1)]}),_0x451a8f(0xc8)===_0x443bb4&&this[_0x451a8f(0x120)]();}[_0x202b84(0x12e)](_0x3115b3,_0x3c552b){const _0x52c4c4=_0x202b84;if(this[_0x52c4c4(0x116)][_0x52c4c4(0xde)](_0x3115b3[_0x52c4c4(0xb6)])&&(this[_0x52c4c4(0x116)][_0x52c4c4(0xbd)](_0x3115b3[_0x52c4c4(0xb6)],_0x3115b3),this[_0x52c4c4(0xea)](_0x52c4c4(0xc7),{'contextItem':_0x3115b3,'isLoading':_0x3c552b}),_0x3115b3[_0x52c4c4(0x114)])){const _0x1d6409=this[_0x52c4c4(0x10a)](_0x3115b3[_0x52c4c4(0x114)]);_0x1d6409&&_0x1d6409[_0x52c4c4(0xe5)](_0xd525d2=>{const _0xed1a8e=_0x52c4c4;this[_0xed1a8e(0x11d)](_0xd525d2,_0x3115b3[_0xed1a8e(0x114)],!0x0);});}}[_0x202b84(0xeb)](_0x494d44){const _0x4cec1f=_0x202b84;this[_0x4cec1f(0x12a)][_0x4cec1f(0xbd)](_0x494d44[_0x4cec1f(0xb6)],_0x494d44);}[_0x202b84(0x13b)](){const _0x4eb5cc=_0x202b84;this[_0x4eb5cc(0xd3)]={'document':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0xfb)]?.[_0x4eb5cc(0xb8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0xcd)]?.[_0x4eb5cc(0xb8)]},'files':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0x107)]?.[_0x4eb5cc(0xb8)]},'sources':this[_0x4eb5cc(0xf1)](),'customItems':this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0x112)]?.[_0x4eb5cc(0xf6)](_0x1d8a85=>({..._0x1d8a85,'enabled':!0x0}))??[]},this[_0x4eb5cc(0xea)](_0x4eb5cc(0xd4),{'options':this[_0x4eb5cc(0xd3)]});}[_0x202b84(0xf1)](){const _0x38fd45=_0x202b84;return this[_0x38fd45(0xd0)]?.[_0x38fd45(0xf7)]?.[_0x38fd45(0xf6)](_0x4c2237=>({..._0x4c2237,'resources':[]}))??[];}[_0x202b84(0x120)](){const _0x22bae9=_0x202b84,_0x59d35=this[_0x22bae9(0xf8)]()||this[_0x22bae9(0x118)]();this[_0x22bae9(0xd3)][_0x22bae9(0xfb)][_0x22bae9(0xce)]=_0x59d35,this[_0x22bae9(0xea)](_0x22bae9(0xd4),{'options':this[_0x22bae9(0xd3)]});}[_0x202b84(0x10d)](_0x5994ae){const _0x1b8fe5=_0x202b84;for(const _0x211a39 of this[_0x1b8fe5(0x116)][_0x1b8fe5(0xf4)]())if(_0x211a39[_0x1b8fe5(0x114)]===_0x5994ae)return!0x0;for(const _0x43d123 of this[_0x1b8fe5(0x12a)][_0x1b8fe5(0xf4)]())if(_0x43d123[_0x1b8fe5(0x114)]===_0x5994ae)return!0x0;return!0x1;}[_0x202b84(0x10a)](_0x23e0a1){const _0x1a3535=_0x202b84,_0x4622c2=[];for(const _0x15f286 of this[_0x1a3535(0xd3)][_0x1a3535(0xf7)]){_0x15f286[_0x1a3535(0xc5)][_0x1a3535(0xe1)](_0x3c6614=>_0x3c6614['id']===_0x23e0a1)&&_0x4622c2[_0x1a3535(0xdc)](_0x15f286['id']);}return 0x0===_0x4622c2[_0x1a3535(0xca)]?null:_0x4622c2;}[_0x202b84(0x11d)](_0x1f2572,_0x4b1331,_0x588443){const _0x30dae8=_0x202b84,_0x4b6c67=this[_0x30dae8(0xd3)][_0x30dae8(0xf7)][_0x30dae8(0xe1)](_0x271152=>_0x271152['id']===_0x1f2572);if(!_0x4b6c67)return;const _0x4b21c6=_0x4b6c67[_0x30dae8(0xc5)][_0x30dae8(0xe1)](_0xbe6f6b=>_0xbe6f6b['id']===_0x4b1331);_0x4b21c6&&(_0x4b21c6[_0x30dae8(0x110)]=_0x588443,this[_0x30dae8(0xea)](_0x30dae8(0xd5),{'sourceId':_0x1f2572,'resourceId':_0x4b1331,'isInContext':_0x588443}));}[_0x202b84(0xe0)](_0x1a7994){const _0x4893f5=_0x202b84;this[_0x4893f5(0xe6)][_0x4893f5(0xbd)](_0x1a7994,!0x0),this[_0x4893f5(0xe6)][_0x4893f5(0x11c)]&&this[_0x4893f5(0xea)](_0x4893f5(0x140),{'isUploadInProgress':!0x0});}[_0x202b84(0x133)](_0x17f9ca){const _0x535894=_0x202b84;this[_0x535894(0xe6)][_0x535894(0xbe)](_0x17f9ca),0x0===this[_0x535894(0xe6)][_0x535894(0x11c)]&&this[_0x535894(0xea)](_0x535894(0x140),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x493bbe=_0xeaed;(function(_0x57dfe2,_0xf75e18){const _0x1adc85=_0xeaed,_0x5b0928=_0x57dfe2();while(!![]){try{const _0x1a5d5f=parseInt(_0x1adc85(0x222))/0x1+parseInt(_0x1adc85(0x21f))/0x2+-parseInt(_0x1adc85(0x21d))/0x3*(-parseInt(_0x1adc85(0x1f6))/0x4)+parseInt(_0x1adc85(0x23f))/0x5+-parseInt(_0x1adc85(0x219))/0x6+-parseInt(_0x1adc85(0x212))/0x7+-parseInt(_0x1adc85(0x23d))/0x8;if(_0x1a5d5f===_0xf75e18)break;else _0x5b0928['push'](_0x5b0928['shift']());}catch(_0x59f623){_0x5b0928['push'](_0x5b0928['shift']());}}}(_0x3078,0x1d6e5));import{CKEditorError as _0x2c910a,ObservableMixin as _0x12fd7c,uid as _0x1be409}from'ckeditor5/src/utils.js';function _0x3078(){const _0x393bb8=['files','filter','_finishContextItemLoading','object\x20with\x20content\x20and\x20type\x20properties','isCurrentDocumentInContext','_finishUploadOperation','_connector','type','_setAddContextOptionsDefaultState','uploadFile','find','contextSent','push','isHidden','ai-chat-url-upload-failed','abortController','init','attributes','fire','_convertTextResourceToFile','length','fetchDocument','addSelectionToContext','abort','startsWith','_mapContextItemToRequestData','text/html','updateCurrentDocument','804clCORq','_config','from','forEach','addToolItemToContext','FILE','ai-chat-resource-no-data','ai-chat-context-unsupported-type','TEXT','_addToConversationContextItem','loadSourceResources','addResourceToContext','_ownerId','isInContext','current-document','code','_updateResourceInContextState','getId','ai-chat-resource-load-failed','values','sources','isCurrentDocumentInConversation','URL','Current\x20document','isSelectionInContext','error','message','_addContextItem','310905akLysw','_createContextItemFromContent','data','document','substring','DOCUMENT','resourceStateChanged','321816NKDKQQ','object','_isResourceInContext','ai-chat-context-invalid-data','186sPuOnC','selection','439328qzrEmA','toolName','clearPendingContextItems','121193yRmYiP','removeFromContext','uploadUrl','uiId','_removeContextItem','version','getData','label','resources','start','mcpServerName','addContextOptionsChanged','resourceId','sourceResourcesLoaded','customItems','name','stack','text/plain','getSentContextItems','addUrlToContext','getPendingContextItems','_pendingContextItems','set','urls','contextItemRemoved','_toggleAddCurrentDocumentOptionVisibility','url','2914016qzUZZV','all','1147665XIvWvB','addCurrentDocumentToContext','text/markdown','HTML','TOOL','sessionId','ai-request-aborted','ai-chat-source-not-found','_findSourceIdsByResourceId','_ongoingUploads','getDocument','delete','ai-chat-document-upload-failed','file-','uploadProgressChanged','removeSelectionFromContext','map','content','get','hidden','SELECTION','_ongoingUploadOperations','_addContextOptionsState','end','contextItemAdded','_getCustomSourcesInitialState','_conversationContextItems','size','contextItemLoadingEnded','populateFromMessage','url-','isReadOnly','addFilesToContext','uploadDocument','MARKDOWN','mapContextItemsToRequestData','has','addToConversationContext','ai-chat-source-resources-load-failed','ai-chat-file-upload-failed','files-','_startUploadOperation','string','File','enabled','getResources'];_0x3078=function(){return _0x393bb8;};return _0x3078();}import{AIContextItemType as _0x35783e,AIContextTextResourceType as _0xde5a2}from'../../aicore/model/aicontext.js';import{escape as _0x5fc93e}from'es-toolkit/compat';import{errorsMap as _0x41d6a6}from'../../errorsmap.js';function _0xeaed(_0x1e6111,_0x11f2f8){const _0x3078bf=_0x3078();return _0xeaed=function(_0xeaedb2,_0x14e910){_0xeaedb2=_0xeaedb2-0x1c0;let _0x125e72=_0x3078bf[_0xeaedb2];return _0x125e72;},_0xeaed(_0x1e6111,_0x11f2f8);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x493bbe(0x1c4),_0x493bbe(0x23a),_0x493bbe(0x1c8),_0x493bbe(0x1e5),_0x493bbe(0x20f),_0x493bbe(0x22d),_0x493bbe(0x22f),_0x493bbe(0x218),_0x493bbe(0x24d)];export class AIChatContext extends _0x12fd7c(){[_0x493bbe(0x1e0)];[_0x493bbe(0x1f7)];[_0x493bbe(0x202)];constructor({connector:_0x268c28,config:_0x534c31,ownerId:_0x2aca78}){const _0xf46996=_0x493bbe;super(),this[_0xf46996(0x1e0)]=_0x268c28,this[_0xf46996(0x1f7)]=_0x534c31,this[_0xf46996(0x202)]=_0x2aca78;}[_0x493bbe(0x1ea)](){const _0x2adea9=_0x493bbe;this[_0x2adea9(0x237)]=new Map(),this[_0x2adea9(0x1c6)]=new Map(),this[_0x2adea9(0x248)]=new Map(),this[_0x2adea9(0x1c1)]=new Map(),this[_0x2adea9(0x1e2)]();}[_0x493bbe(0x236)](){const _0x79f4e6=_0x493bbe;return this[_0x79f4e6(0x237)];}async[_0x493bbe(0x1c9)](_0xd0380a){const _0x2320e5=_0x493bbe,_0x167b3c=await this[_0x2320e5(0x213)](_0xd0380a);return this[_0x2320e5(0x1ff)](_0x167b3c),_0x2320e5(0x204)===_0x167b3c[_0x2320e5(0x225)]&&this[_0x2320e5(0x23b)](),_0x167b3c;}async[_0x493bbe(0x213)](_0xdcd53){const _0x5406fa=_0x493bbe;if(_0xdcd53[_0x5406fa(0x1e1)]===_0x35783e[_0x5406fa(0x217)]){const _0xb29e6=await this[_0x5406fa(0x1e0)][_0x5406fa(0x1ef)](this[_0x5406fa(0x202)],_0xdcd53['id'])[_0x5406fa(0x249)]();return{'id':_0x5406fa(0x204),'uiId':_0x5406fa(0x204),'label':_0x5406fa(0x20d),'type':_0xdcd53[_0x5406fa(0x1e1)],'content':_0xb29e6[_0x5406fa(0x250)],'hidden':this[_0x5406fa(0x1c6)][_0x5406fa(0x1d0)](_0x5406fa(0x204)),'version':_0xb29e6[_0x5406fa(0x1eb)]?.[_0x5406fa(0x227)],'sessionId':_0xb29e6[_0x5406fa(0x1eb)]?.[_0x5406fa(0x244)]};}if(_0xdcd53[_0x5406fa(0x1e1)]===_0x35783e[_0x5406fa(0x243)])return{'id':_0xdcd53['id'],'uiId':_0xdcd53['id'],'label':_0xdcd53[_0x5406fa(0x214)]?.[_0x5406fa(0x229)]||_0xdcd53['id'],'type':_0x35783e[_0x5406fa(0x243)],'mcpServerName':_0xdcd53[_0x5406fa(0x22c)],'toolName':_0xdcd53[_0x5406fa(0x220)],'data':_0xdcd53[_0x5406fa(0x214)]||{}};return{'id':_0xdcd53['id'],'uiId':_0xdcd53['id'],'label':_0xdcd53[_0x5406fa(0x1eb)]?.[_0x5406fa(0x229)]||_0xdcd53[_0x5406fa(0x231)]||_0xdcd53[_0x5406fa(0x23c)]||_0xdcd53['id'],'type':_0xdcd53[_0x5406fa(0x1e1)],..._0xdcd53?.[_0x5406fa(0x1eb)]?.[_0x5406fa(0x22e)]?{'resourceId':_0xdcd53[_0x5406fa(0x1eb)]?.[_0x5406fa(0x22e)]}:{}};}[_0x493bbe(0x234)](){const _0x21df9f=_0x493bbe;return new Map(this[_0x21df9f(0x1c6)]);}[_0x493bbe(0x223)](_0xa1d258){const _0xf5c6b5=_0x493bbe,_0x407af5=this[_0xf5c6b5(0x237)][_0xf5c6b5(0x251)](_0xa1d258);_0x407af5?.[_0xf5c6b5(0x1cb)]||this[_0xf5c6b5(0x226)](_0xa1d258);}[_0x493bbe(0x221)](){const _0x262f47=_0x493bbe;if(0x0===this[_0x262f47(0x237)][_0x262f47(0x1c7)])return;for(const _0x720e4 of this[_0x262f47(0x237)][_0x262f47(0x209)]())this[_0x262f47(0x226)](_0x720e4[_0x262f47(0x225)]);const _0x38febd=this[_0x262f47(0x1c6)][_0x262f47(0x251)](_0x262f47(0x204))||this[_0x262f47(0x237)][_0x262f47(0x251)](_0x262f47(0x204));_0x38febd&&this[_0x262f47(0x211)]({..._0x38febd,'isReadOnly':!0x0,'hidden':!0x0});}[_0x493bbe(0x1d1)](_0x46f6b7){const _0xadaa68=_0x493bbe;for(const _0x2a9cf1 of _0x46f6b7[_0xadaa68(0x209)]())this[_0xadaa68(0x1ff)](_0x2a9cf1);this[_0xadaa68(0x221)](),this[_0xadaa68(0x1ec)](_0xadaa68(0x1e5),{'contextItems':Array[_0xadaa68(0x1f8)](this[_0xadaa68(0x234)]()[_0xadaa68(0x209)]())});}[_0x493bbe(0x1de)](){const _0x18eee6=_0x493bbe;return this[_0x18eee6(0x237)][_0x18eee6(0x1d0)](_0x18eee6(0x204));}[_0x493bbe(0x20e)](){const _0x171904=_0x493bbe;return this[_0x171904(0x237)][_0x171904(0x1d0)](_0x171904(0x21e));}[_0x493bbe(0x20b)](){const _0x260a12=_0x493bbe;return this[_0x260a12(0x1c6)][_0x260a12(0x1d0)](_0x260a12(0x204));}static[_0x493bbe(0x1cf)](_0x374cd7){const _0x55c56a=_0x493bbe;return Array[_0x55c56a(0x1f8)](_0x374cd7[_0x55c56a(0x209)]())[_0x55c56a(0x24f)](_0xb0c833=>this[_0x55c56a(0x1f3)](_0xb0c833))[_0x55c56a(0x1db)](_0x1ad40e=>null!==_0x1ad40e);}async[_0x493bbe(0x1cc)](_0x258f55,_0x5a007c,_0x27997f=_0x35783e[_0x493bbe(0x1fb)]){const _0x6d42e9=_0x493bbe,_0x1e6e3c=_0x6d42e9(0x1d4)+_0x1be409();this[_0x6d42e9(0x1d5)](_0x1e6e3c);try{await Promise[_0x6d42e9(0x23e)](_0x258f55[_0x6d42e9(0x24f)](async _0x197177=>{const _0x4757a6=_0x6d42e9,_0x24d535=_0x4757a6(0x24c)+_0x1be409(),_0x130a50=_0x5fc93e(_0x197177[_0x4757a6(0x231)]);try{this[_0x4757a6(0x211)]({'type':_0x27997f,'label':_0x5a007c?.[_0x4757a6(0x229)]||_0x130a50,'uiId':_0x24d535,'resourceId':_0x5a007c?.[_0x4757a6(0x22e)]},!0x0);const _0x4b2fe6=this[_0x4757a6(0x1e0)][_0x4757a6(0x1e3)](this[_0x4757a6(0x202)],_0x197177,_0x5a007c);this[_0x4757a6(0x248)][_0x4757a6(0x238)](_0x24d535,_0x4b2fe6[_0x4757a6(0x1e9)]);const {id:_0x4a81ab}=await _0x4b2fe6[_0x4757a6(0x207)]();this[_0x4757a6(0x248)][_0x4757a6(0x24a)](_0x24d535),this[_0x4757a6(0x1dc)]({'type':_0x27997f,'id':_0x4a81ab,'label':_0x5a007c?.[_0x4757a6(0x229)]||_0x130a50,'uiId':_0x24d535,'resourceId':_0x5a007c?.[_0x4757a6(0x22e)]},!0x1);}catch(_0x171aa1){this[_0x4757a6(0x248)][_0x4757a6(0x24a)](_0x24d535);if(!(_0x171aa1 instanceof _0x2c910a&&_0x171aa1[_0x4757a6(0x210)][_0x4757a6(0x1f2)](_0x4757a6(0x245)))){const _0x45aae3=_0x41d6a6[_0x4757a6(0x251)](_0x171aa1[_0x4757a6(0x205)])||_0x4757a6(0x1d3),_0x566e87=new _0x2c910a(_0x45aae3,null,{'fileName':_0x130a50,..._0x171aa1});_0x566e87[_0x4757a6(0x232)]=_0x171aa1[_0x4757a6(0x232)],this[_0x4757a6(0x1ec)](_0x4757a6(0x20f),{'error':_0x566e87});}this[_0x4757a6(0x226)](_0x24d535);}}));}finally{this[_0x6d42e9(0x1df)](_0x1e6e3c);}}[_0x493bbe(0x240)](_0x41e677){const _0x18ae15=_0x493bbe;if(this[_0x18ae15(0x1de)]()||!this[_0x18ae15(0x1c2)][_0x18ae15(0x215)][_0x18ae15(0x1d8)])return;const _0x2bc0a2={'type':_0x35783e[_0x18ae15(0x217)],'uiId':_0x18ae15(0x204),'label':_0x41e677,'isReadOnly':this[_0x18ae15(0x1c6)][_0x18ae15(0x1d0)](_0x18ae15(0x204)),'hidden':this[_0x18ae15(0x1c6)][_0x18ae15(0x1d0)](_0x18ae15(0x204))};this[_0x18ae15(0x211)](_0x2bc0a2);}async[_0x493bbe(0x1f5)](_0x246b9b,_0x50834b,_0x30bcde,_0x5b80c9){const _0x516a43=_0x493bbe,_0x78d633=this[_0x516a43(0x237)][_0x516a43(0x251)](_0x516a43(0x204));if(_0x78d633&&_0x246b9b){_0x78d633[_0x516a43(0x21e)]=_0x5b80c9?_0x5b80c9[_0x516a43(0x24f)](_0x4419b5=>({'start':_0x4419b5[_0x516a43(0x22b)],'end':_0x4419b5[_0x516a43(0x1c3)]})):[];try{if(_0x78d633[_0x516a43(0x227)]===_0x50834b)return;const {id:_0x300319}=await this[_0x516a43(0x1e0)][_0x516a43(0x1cd)](this[_0x516a43(0x202)],_0x246b9b,{'version':_0x50834b,'sessionId':_0x30bcde})[_0x516a43(0x207)]();_0x78d633['id']=_0x300319,_0x78d633[_0x516a43(0x250)]=_0x246b9b,_0x78d633[_0x516a43(0x227)]=_0x50834b,_0x78d633[_0x516a43(0x244)]=_0x30bcde;}catch(_0x3b666e){const _0x180960=new _0x2c910a(_0x516a43(0x24b),null);_0x180960[_0x516a43(0x232)]=_0x3b666e[_0x516a43(0x232)],this[_0x516a43(0x1ec)](_0x516a43(0x20f),{'error':_0x180960});}}}[_0x493bbe(0x1f0)](_0x55c87d){const _0x31958c=_0x493bbe;this[_0x31958c(0x211)]({'type':_0x35783e[_0x31958c(0x1c0)],'label':_0x55c87d,'uiId':_0x31958c(0x21e),'content':_0x55c87d});}[_0x493bbe(0x24e)](){const _0x1ae772=_0x493bbe;this[_0x1ae772(0x226)](_0x1ae772(0x21e));}async[_0x493bbe(0x235)](_0x517851,_0x5e833b){const _0x425e3e=_0x493bbe,_0xec71b5=_0x425e3e(0x1ca)+_0x1be409();this[_0x425e3e(0x1d5)](_0xec71b5);const _0x2dac1a=_0x425e3e(0x1ca)+_0x1be409();try{this[_0x425e3e(0x211)]({'type':_0x35783e[_0x425e3e(0x20c)],'label':_0x5e833b?.[_0x425e3e(0x229)]||_0x517851,'uiId':_0x2dac1a,'resourceId':_0x5e833b?.[_0x425e3e(0x22e)]},!0x0);const _0xd490ca=this[_0x425e3e(0x1e0)][_0x425e3e(0x224)](this[_0x425e3e(0x202)],_0x517851,_0x5e833b);this[_0x425e3e(0x248)][_0x425e3e(0x238)](_0x2dac1a,_0xd490ca[_0x425e3e(0x1e9)]);const {id:_0x591db3}=await _0xd490ca[_0x425e3e(0x207)]();this[_0x425e3e(0x248)][_0x425e3e(0x24a)](_0x2dac1a),this[_0x425e3e(0x1dc)]({'type':_0x35783e[_0x425e3e(0x20c)],'id':_0x591db3,'label':_0x5e833b?.[_0x425e3e(0x229)]||_0x517851,'uiId':_0x2dac1a,'resourceId':_0x5e833b?.[_0x425e3e(0x22e)]},!0x1);}catch(_0x680ef1){this[_0x425e3e(0x248)][_0x425e3e(0x24a)](_0x2dac1a),(_0x680ef1[_0x425e3e(0x210)][_0x425e3e(0x1f2)](_0x425e3e(0x245))||this[_0x425e3e(0x1ec)](_0x425e3e(0x20f),{'error':new _0x2c910a(_0x425e3e(0x1e8),this,{'url':_0x517851,'originalError':_0x680ef1}),'url':_0x517851}),this[_0x425e3e(0x226)](_0x2dac1a));}finally{this[_0x425e3e(0x1df)](_0xec71b5);}}[_0x493bbe(0x1fa)](_0x56822d){const _0x465585=_0x493bbe;_0x56822d['id']=_0x56822d['id']??_0x1be409()[_0x465585(0x216)](0x0,0x15),this[_0x465585(0x237)][_0x465585(0x238)](_0x56822d[_0x465585(0x225)],_0x56822d),this[_0x465585(0x1ec)](_0x465585(0x1c4),{'contextItem':_0x56822d,'isLoading':!0x1});}async[_0x493bbe(0x200)](_0x185436,_0x4cd7f1,_0x3a9b12){const _0x5d543e=_0x493bbe,_0x3df85f=this[_0x5d543e(0x1c2)][_0x5d543e(0x20a)][_0x5d543e(0x1e4)](_0x20535a=>_0x20535a['id']===_0x185436);if(!_0x3df85f)return this[_0x5d543e(0x1ec)](_0x5d543e(0x20f),{'error':new _0x2c910a(_0x5d543e(0x246),this,{'sourceId':_0x185436}),'sourceId':_0x185436}),[];try{const _0x38a7ef=(await _0x3df85f[_0x5d543e(0x1d9)](_0x4cd7f1))[_0x5d543e(0x24f)](_0x2cf10f=>{const _0x1331fe=_0x5d543e,_0x2a0784=this[_0x1331fe(0x21b)](_0x2cf10f['id']);return{..._0x2cf10f,'isInContext':_0x2a0784};});return _0x3df85f[_0x5d543e(0x22a)]=_0x38a7ef,this[_0x5d543e(0x1ec)](_0x5d543e(0x22f),{'sourceId':_0x185436,'source':_0x3df85f,'resources':_0x38a7ef,'uid':_0x3a9b12}),_0x38a7ef;}catch(_0x24d4e1){return this[_0x5d543e(0x1ec)](_0x5d543e(0x20f),{'error':new _0x2c910a(_0x5d543e(0x1d2),this,{'sourceId':_0x185436,'originalError':_0x24d4e1}),'sourceId':_0x185436,'sourceLabel':_0x3df85f[_0x5d543e(0x229)]}),[];}}async[_0x493bbe(0x201)](_0x44ec27,_0x2038a7){const _0x591f8e=_0x493bbe;if(this[_0x591f8e(0x21b)](_0x2038a7['id']))return;let _0x54fadd=_0x2038a7[_0x591f8e(0x214)];if(!_0x54fadd&&_0x44ec27[_0x591f8e(0x228)])try{_0x54fadd=await _0x44ec27[_0x591f8e(0x228)](_0x2038a7['id']);}catch(_0x2c03b6){return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x208),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'originalError':_0x2c03b6}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});}if(_0x54fadd)switch(_0x2038a7[_0x591f8e(0x1e1)]){case _0x35783e[_0x591f8e(0x20c)]:if(_0x591f8e(0x1d6)!=typeof _0x54fadd)return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x21c),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'expectedType':_0x591f8e(0x1d6),'actualType':typeof _0x54fadd}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});await this[_0x591f8e(0x235)](_0x54fadd,{'label':_0x2038a7[_0x591f8e(0x229)],'resourceId':_0x2038a7['id']});break;case _0x35783e[_0x591f8e(0x1fb)]:if(!(_0x54fadd instanceof File))return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x21c),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'expectedType':_0x591f8e(0x1d7),'actualType':typeof _0x54fadd}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});await this[_0x591f8e(0x1cc)]([_0x54fadd],{'label':_0x2038a7[_0x591f8e(0x229)],'resourceId':_0x2038a7['id']});break;case _0x35783e[_0x591f8e(0x1fe)]:if(_0x591f8e(0x21a)!=typeof _0x54fadd||!(_0x591f8e(0x250)in _0x54fadd)||!(_0x591f8e(0x1e1)in _0x54fadd))return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x21c),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'expectedType':_0x591f8e(0x1dd),'actualType':typeof _0x54fadd}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});_0x54fadd=AIChatContext[_0x591f8e(0x1ed)](_0x54fadd,_0x2038a7[_0x591f8e(0x229)]),await this[_0x591f8e(0x1cc)]([_0x54fadd],{'label':_0x2038a7[_0x591f8e(0x229)],'resourceId':_0x2038a7['id']},_0x35783e[_0x591f8e(0x1fe)]);break;case _0x35783e[_0x591f8e(0x243)]:break;default:this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x1fd),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'resourceType':_0x2038a7[_0x591f8e(0x1e1)]}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});}else this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x1fc),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});}static[_0x493bbe(0x1ed)](_0x16f088,_0x4c7708){const _0x1d69b9=_0x493bbe;switch(_0x16f088[_0x1d69b9(0x1e1)]){case _0xde5a2[_0x1d69b9(0x1ce)]:return new File([_0x16f088[_0x1d69b9(0x250)]],_0x4c7708,{'type':_0x1d69b9(0x241)});case _0xde5a2[_0x1d69b9(0x242)]:return new File([_0x16f088[_0x1d69b9(0x250)]],_0x4c7708,{'type':_0x1d69b9(0x1f4)});default:return new File([_0x16f088[_0x1d69b9(0x250)]],_0x4c7708,{'type':_0x1d69b9(0x233)});}}static[_0x493bbe(0x1f3)](_0x1c2d9e){const _0x25ad5a=_0x493bbe;switch(_0x1c2d9e[_0x25ad5a(0x1e1)]){case _0x35783e[_0x25ad5a(0x1fb)]:return{'type':_0x35783e[_0x25ad5a(0x1fb)],'id':_0x1c2d9e['id']};case _0x35783e[_0x25ad5a(0x20c)]:return{'type':_0x35783e[_0x25ad5a(0x20c)],'id':_0x1c2d9e['id']};case _0x35783e[_0x25ad5a(0x217)]:return{'type':_0x35783e[_0x25ad5a(0x217)],'id':_0x1c2d9e['id'],..._0x1c2d9e[_0x25ad5a(0x21e)]?.[_0x25ad5a(0x1ee)]&&{'selection':_0x1c2d9e[_0x25ad5a(0x21e)]}};case _0x35783e[_0x25ad5a(0x1fe)]:return{'type':_0x35783e[_0x25ad5a(0x1fb)],'id':_0x1c2d9e['id']};case _0x35783e[_0x25ad5a(0x243)]:{const _0x1ccfe0=_0x1c2d9e;return{'type':_0x35783e[_0x25ad5a(0x243)],'mcpServerName':_0x1ccfe0[_0x25ad5a(0x22c)],'toolName':_0x1ccfe0[_0x25ad5a(0x220)],'data':_0x1ccfe0[_0x25ad5a(0x214)],'id':_0x1ccfe0['id']};}default:return null;}}[_0x493bbe(0x211)](_0x26ebea,_0x4f00a4=!0x1){const _0x193068=_0x493bbe;if(this[_0x193068(0x237)][_0x193068(0x238)](_0x26ebea[_0x193068(0x225)],_0x26ebea),_0x26ebea[_0x193068(0x252)]||this[_0x193068(0x1ec)](_0x193068(0x1c4),{'contextItem':_0x26ebea,'isLoading':_0x4f00a4}),_0x193068(0x204)===_0x26ebea[_0x193068(0x225)]&&this[_0x193068(0x23b)](),_0x26ebea[_0x193068(0x22e)]){const _0x6b0400=this[_0x193068(0x247)](_0x26ebea[_0x193068(0x22e)]);_0x6b0400&&_0x6b0400[_0x193068(0x1f9)](_0x32585c=>{const _0x58e5bb=_0x193068;this[_0x58e5bb(0x206)](_0x32585c,_0x26ebea[_0x58e5bb(0x22e)],!0x0);});}}[_0x493bbe(0x226)](_0x39a985){const _0x2e71fe=_0x493bbe,_0x4efa6a=this[_0x2e71fe(0x237)][_0x2e71fe(0x251)](_0x39a985),_0x323d35=this[_0x2e71fe(0x248)][_0x2e71fe(0x251)](_0x39a985);if(_0x323d35&&(_0x323d35[_0x2e71fe(0x1f1)](),this[_0x2e71fe(0x248)][_0x2e71fe(0x24a)](_0x39a985)),_0x4efa6a?.[_0x2e71fe(0x22e)]){const _0x2458f0=this[_0x2e71fe(0x247)](_0x4efa6a[_0x2e71fe(0x22e)]);_0x2458f0&&_0x2458f0[_0x2e71fe(0x1f9)](_0x27975c=>{const _0x47f031=_0x2e71fe;this[_0x47f031(0x206)](_0x27975c,_0x4efa6a[_0x47f031(0x22e)],!0x1);});}this[_0x2e71fe(0x237)][_0x2e71fe(0x24a)](_0x39a985),this[_0x2e71fe(0x1ec)](_0x2e71fe(0x23a),{'uiId':_0x39a985,'type':_0x4efa6a?.[_0x2e71fe(0x1e1)]}),_0x2e71fe(0x204)===_0x39a985&&this[_0x2e71fe(0x23b)]();}[_0x493bbe(0x1dc)](_0x17ca79,_0x5a4f59){const _0x5a82c1=_0x493bbe;if(this[_0x5a82c1(0x237)][_0x5a82c1(0x1d0)](_0x17ca79[_0x5a82c1(0x225)])&&(this[_0x5a82c1(0x237)][_0x5a82c1(0x238)](_0x17ca79[_0x5a82c1(0x225)],_0x17ca79),this[_0x5a82c1(0x1ec)](_0x5a82c1(0x1c8),{'contextItem':_0x17ca79,'isLoading':_0x5a4f59}),_0x17ca79[_0x5a82c1(0x22e)])){const _0x37c029=this[_0x5a82c1(0x247)](_0x17ca79[_0x5a82c1(0x22e)]);_0x37c029&&_0x37c029[_0x5a82c1(0x1f9)](_0x4b66c6=>{const _0x19d845=_0x5a82c1;this[_0x19d845(0x206)](_0x4b66c6,_0x17ca79[_0x19d845(0x22e)],!0x0);});}}[_0x493bbe(0x1ff)](_0x34ef19){const _0x3d29ec=_0x493bbe;this[_0x3d29ec(0x1c6)][_0x3d29ec(0x238)](_0x34ef19[_0x3d29ec(0x225)],_0x34ef19);}[_0x493bbe(0x1e2)](){const _0x1fa86a=_0x493bbe;this[_0x1fa86a(0x1c2)]={'document':{'enabled':!0x1!==this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x215)]?.[_0x1fa86a(0x1d8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x239)]?.[_0x1fa86a(0x1d8)]},'files':{'enabled':!0x1!==this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x1da)]?.[_0x1fa86a(0x1d8)]},'sources':this[_0x1fa86a(0x1c5)](),'customItems':this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x230)]?.[_0x1fa86a(0x24f)](_0x5bce5b=>({..._0x5bce5b,'enabled':!0x0}))??[]},this[_0x1fa86a(0x1ec)](_0x1fa86a(0x22d),{'options':this[_0x1fa86a(0x1c2)]});}[_0x493bbe(0x1c5)](){const _0x26da0a=_0x493bbe;return this[_0x26da0a(0x1f7)]?.[_0x26da0a(0x20a)]?.[_0x26da0a(0x24f)](_0x442944=>({..._0x442944,'resources':[]}))??[];}[_0x493bbe(0x23b)](){const _0x5d390d=_0x493bbe,_0x19325e=this[_0x5d390d(0x1de)]()||this[_0x5d390d(0x20b)]();this[_0x5d390d(0x1c2)][_0x5d390d(0x215)][_0x5d390d(0x1e7)]=_0x19325e,this[_0x5d390d(0x1ec)](_0x5d390d(0x22d),{'options':this[_0x5d390d(0x1c2)]});}[_0x493bbe(0x21b)](_0x5e3801){const _0xd89e57=_0x493bbe;for(const _0x4883c5 of this[_0xd89e57(0x237)][_0xd89e57(0x209)]())if(_0x4883c5[_0xd89e57(0x22e)]===_0x5e3801)return!0x0;for(const _0x204c05 of this[_0xd89e57(0x1c6)][_0xd89e57(0x209)]())if(_0x204c05[_0xd89e57(0x22e)]===_0x5e3801)return!0x0;return!0x1;}[_0x493bbe(0x247)](_0x5efa79){const _0x1806a5=_0x493bbe,_0x26131e=[];for(const _0x206988 of this[_0x1806a5(0x1c2)][_0x1806a5(0x20a)]){_0x206988[_0x1806a5(0x22a)][_0x1806a5(0x1e4)](_0x35c22d=>_0x35c22d['id']===_0x5efa79)&&_0x26131e[_0x1806a5(0x1e6)](_0x206988['id']);}return 0x0===_0x26131e[_0x1806a5(0x1ee)]?null:_0x26131e;}[_0x493bbe(0x206)](_0x4a3f10,_0x4e4678,_0x4dbb0a){const _0x4496e9=_0x493bbe,_0x48cc72=this[_0x4496e9(0x1c2)][_0x4496e9(0x20a)][_0x4496e9(0x1e4)](_0xafb8=>_0xafb8['id']===_0x4a3f10);if(!_0x48cc72)return;const _0x1f7b53=_0x48cc72[_0x4496e9(0x22a)][_0x4496e9(0x1e4)](_0x28c526=>_0x28c526['id']===_0x4e4678);_0x1f7b53&&(_0x1f7b53[_0x4496e9(0x203)]=_0x4dbb0a,this[_0x4496e9(0x1ec)](_0x4496e9(0x218),{'sourceId':_0x4a3f10,'resourceId':_0x4e4678,'isInContext':_0x4dbb0a}));}[_0x493bbe(0x1d5)](_0x33cdef){const _0xf3f5d3=_0x493bbe;this[_0xf3f5d3(0x1c1)][_0xf3f5d3(0x238)](_0x33cdef,!0x0),this[_0xf3f5d3(0x1c1)][_0xf3f5d3(0x1c7)]&&this[_0xf3f5d3(0x1ec)](_0xf3f5d3(0x24d),{'isUploadInProgress':!0x0});}[_0x493bbe(0x1df)](_0xfd11){const _0x40b74d=_0x493bbe;this[_0x40b74d(0x1c1)][_0x40b74d(0x24a)](_0xfd11),0x0===this[_0x40b74d(0x1c1)][_0x40b74d(0x1c7)]&&this[_0x40b74d(0x1ec)](_0x40b74d(0x24d),{'isUploadInProgress':!0x1});}}
|