@ckeditor/ckeditor5-ai 47.7.1 → 47.7.2
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
|
-
const
|
|
23
|
+
const _0x58e03e=_0x55c7;(function(_0x5af62d,_0xc8d2a1){const _0xae4bf9=_0x55c7,_0x4b1e70=_0x5af62d();while(!![]){try{const _0x507e28=parseInt(_0xae4bf9(0x168))/0x1*(parseInt(_0xae4bf9(0x14c))/0x2)+-parseInt(_0xae4bf9(0x165))/0x3+parseInt(_0xae4bf9(0x16c))/0x4*(parseInt(_0xae4bf9(0x14f))/0x5)+-parseInt(_0xae4bf9(0x13f))/0x6*(parseInt(_0xae4bf9(0x140))/0x7)+parseInt(_0xae4bf9(0x130))/0x8+parseInt(_0xae4bf9(0x15a))/0x9*(-parseInt(_0xae4bf9(0x137))/0xa)+parseInt(_0xae4bf9(0x16f))/0xb;if(_0x507e28===_0xc8d2a1)break;else _0x4b1e70['push'](_0x4b1e70['shift']());}catch(_0x3ec921){_0x4b1e70['push'](_0x4b1e70['shift']());}}}(_0x5e40,0x7bbcc));function _0x55c7(_0x5c2ced,_0x307d62){const _0x5e4009=_0x5e40();return _0x55c7=function(_0x55c7fc,_0x1fef3d){_0x55c7fc=_0x55c7fc-0x130;let _0x58b9e9=_0x5e4009[_0x55c7fc];return _0x58b9e9;},_0x55c7(_0x5c2ced,_0x307d62);}import{Plugin as _0x5212fc}from'ckeditor5/src/core.js';import{AIBalloon as _0x2433c9}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x42f302}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x5b32d0}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xb1d5c3}from'../aicore/utils/eventnames.js';import{Dialog as _0x2f10d0}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x5212fc{static get[_0x58e03e(0x166)](){return[_0x2f10d0,_0x2433c9];}static get[_0x58e03e(0x15c)](){const _0x3482cc=_0x58e03e;return _0x3482cc(0x160);}static get[_0x58e03e(0x163)](){return!0x0;}static get[_0x58e03e(0x147)](){return!0x0;}[_0x58e03e(0x131)];constructor(_0x18baf9){const _0x58e32c=_0x58e03e;super(_0x18baf9),this[_0x58e32c(0x145)](_0x58e32c(0x142),!0x1);}[_0x58e03e(0x156)](_0x42526e){const _0x5e168d=_0x58e03e,_0x4da14d=this[_0x5e168d(0x170)];this[_0x5e168d(0x131)]||(this[_0x5e168d(0x131)]=this[_0x5e168d(0x164)]()),_0x4da14d[_0x5e168d(0x14d)][_0x5e168d(0x141)](_0x5e168d(0x167))[_0x5e168d(0x156)]({..._0x42526e,'id':_0x5e168d(0x162),'class':_0x5e168d(0x16e),'mainView':this[_0x5e168d(0x131)]}),this[_0x5e168d(0x133)](_0x42526e[_0x5e168d(0x15e)]),this[_0x5e168d(0x131)][_0x5e168d(0x13b)](!_0x42526e[_0x5e168d(0x151)]),this[_0x5e168d(0x154)]();}[_0x58e03e(0x16b)](){const _0x5899ec=_0x58e03e;this[_0x5899ec(0x170)][_0x5899ec(0x14d)][_0x5899ec(0x141)](_0x5899ec(0x167))[_0x5899ec(0x16b)]();}[_0x58e03e(0x139)](_0x14460a){const _0x1fae51=_0x58e03e;return this[_0x1fae51(0x131)]||(this[_0x1fae51(0x131)]=this[_0x1fae51(0x164)]()),this[_0x1fae51(0x131)][_0x1fae51(0x139)](_0x14460a);}[_0x58e03e(0x135)](_0xb12c75){const _0x1f23ea=_0x58e03e;this[_0x1f23ea(0x131)]&&this[_0x1f23ea(0x131)][_0x1f23ea(0x135)](_0xb12c75);}[_0x58e03e(0x164)](){const _0x2659c9=_0x58e03e,_0x1f1668=this[_0x2659c9(0x170)],_0x54388c=_0x1f1668[_0x2659c9(0x14d)][_0x2659c9(0x141)](_0x2659c9(0x167)),_0x5eeddf=_0x1f1668[_0x2659c9(0x169)][_0x2659c9(0x141)](_0x2659c9(0x150));let _0x34fe6d=_0x1f1668[_0x2659c9(0x157)][_0x2659c9(0x141)](_0x2659c9(0x16d))||[..._0x42f302];_0x1f1668[_0x2659c9(0x14d)][_0x2659c9(0x13c)](_0x2659c9(0x152))||(_0x34fe6d=_0x34fe6d[_0x2659c9(0x132)](_0x329a17=>_0x2659c9(0x158)!=_0x329a17));const _0x3df378=new _0x5b32d0(_0x1f1668[_0x2659c9(0x148)],{'availableActions':_0x34fe6d,'showApplyButton':!0x0,'showSuggestButton':!!_0x5eeddf});return _0x3df378[_0x2659c9(0x14b)](_0x2659c9(0x142))['to'](this),_0x3df378[_0x2659c9(0x171)](..._0xb1d5c3)['to'](this),_0x3df378[_0x2659c9(0x171)](_0x2659c9(0x13a),_0x2659c9(0x146))['to'](this),_0x54388c[_0x2659c9(0x171)](_0x2659c9(0x161))['to'](this),_0x3df378['on'](_0x2659c9(0x14a),this[_0x2659c9(0x154)][_0x2659c9(0x14b)](this)),_0x3df378['on'](_0x2659c9(0x158),this[_0x2659c9(0x154)][_0x2659c9(0x14b)](this)),_0x3df378['on'](_0x2659c9(0x15b),this[_0x2659c9(0x154)][_0x2659c9(0x14b)](this)),_0x5eeddf&&_0x3df378[_0x2659c9(0x14b)](_0x2659c9(0x136))['to'](_0x5eeddf,_0x2659c9(0x155)),_0x3df378[_0x2659c9(0x16a)](),_0x3df378;}[_0x58e03e(0x133)](_0x3a9939){const _0x24ff6a=_0x58e03e,_0x721c9=this[_0x24ff6a(0x170)],_0x1211f1=_0x721c9[_0x24ff6a(0x14d)][_0x24ff6a(0x141)](_0x24ff6a(0x15f))[_0x24ff6a(0x144)][_0x24ff6a(0x15d)][_0x24ff6a(0x149)];this[_0x24ff6a(0x131)][_0x24ff6a(0x134)](_0x3a9939),_0x1211f1[_0x24ff6a(0x13c)](this[_0x24ff6a(0x131)][_0x24ff6a(0x13d)])||(_0x1211f1[_0x24ff6a(0x143)]([this[_0x24ff6a(0x131)][_0x24ff6a(0x13d)],this[_0x24ff6a(0x131)][_0x24ff6a(0x13e)]],0x0),_0x721c9[_0x24ff6a(0x14d)][_0x24ff6a(0x141)](_0x24ff6a(0x167))[_0x24ff6a(0x138)](_0x24ff6a(0x14e),()=>{const _0x1448ab=_0x24ff6a;_0x1211f1[_0x1448ab(0x159)](this[_0x1448ab(0x131)][_0x1448ab(0x13d)]),_0x1211f1[_0x1448ab(0x159)](this[_0x1448ab(0x131)][_0x1448ab(0x13e)]);}));}[_0x58e03e(0x154)](){const _0x5fd0fd=_0x58e03e;this[_0x5fd0fd(0x131)][_0x5fd0fd(0x153)]();}}function _0x5e40(){const _0x4e7875=['insertSuggestion','remove','80649UhwmVk','rejectSuggestion','pluginName','headerView','showRotator','Dialog','AIChatBalloon','dialogClosed','aiChatBalloon','isOfficialPlugin','_createChatBalloonView','214221pdAxSb','requires','AIBalloon','220687zsRGSR','commands','render','close','796WZNXDZ','ai.availableReplyActions','ck-ai-chat-balloon','6185190JKghJG','editor','delegate','3027456kLmhKg','_chatBalloonView','filter','_toggleRotatorButtonsInDialogHeader','toggleRotatorButtonsVisibility','setState','isTrackChangesOn','800LeMDgq','once','updateContent','showPrevious','togglePartToolbarEnabled','has','previousButtonView','nextButtonView','296532aAoDHo','42GpynRJ','get','showDiff','addMany','view','set','showNext','isPremiumPlugin','locale','children','applySuggestion','bind','2gZimxv','plugins','beforeDialogClosed','10810bhoiFu','trackChanges','areActionsDisabled','TrackChanges','focus','_restoreDefaultViewFocus','value','open','config'];_0x5e40=function(){return _0x4e7875;};return _0x5e40();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f0be9=_0x462d;(function(_0x5e9a44,_0x512c76){const _0x106408=_0x462d,_0x47d6b9=_0x5e9a44();while(!![]){try{const _0x5210c6=-parseInt(_0x106408(0x262))/0x1+-parseInt(_0x106408(0x240))/0x2+-parseInt(_0x106408(0x2ac))/0x3*(-parseInt(_0x106408(0x18e))/0x4)+-parseInt(_0x106408(0x25d))/0x5*(parseInt(_0x106408(0x1fd))/0x6)+parseInt(_0x106408(0x2b4))/0x7+parseInt(_0x106408(0x2f7))/0x8+parseInt(_0x106408(0x2bb))/0x9;if(_0x5210c6===_0x512c76)break;else _0x47d6b9['push'](_0x47d6b9['shift']());}catch(_0x13e588){_0x47d6b9['push'](_0x47d6b9['shift']());}}}(_0x2d80,0x385b8));import{ContextPlugin as _0x579fa9,Editor as _0x4c7e88}from'ckeditor5/src/core.js';import{BodyCollection as _0x5c7a70}from'ckeditor5/src/ui.js';import{CKEditorError as _0x5e0114,logError as _0x2a8800,scrollViewportToShowTarget as _0x17172b,uid as _0x38ac82}from'ckeditor5/src/utils.js';function _0x2d80(){const _0x577600=['setState','insertSuggestion','done','showChangeInText','isOfficialPlugin','removeFromContext','disableControls','removeSelectionFromContext','_integrateEditor','indexes','ai-chat-conversation-start-failed','change','start','ai.chat.initialConversation','AI_BALLOON_HEADER_TITLE','lastInteraction','ready','document','addResourceToContext','getAttribute','_getAIChatInteractionAPI','DocumentCompare','_getDocumentRangeForReplyChanges','toggleLoadingSkeleton','_openBalloonFor','isDisabled','_getLastCreatedConversationId','populateSourceResourceBalloon','bind','selectedModel','ai-no-track-changes','replyContentUpdated','getChild','current-document','locale','static','572880qcRmSV','$graveyard','_aiEditing','addDocumentToContext','history','ai-chat-controller-no-active-conversation','ai-request-aborted','commands','type','marker','_updateRatings','like','updateFeedItemAIReplySuggestionContent','isCurrentDocumentInContext','AI_CHAT_GENERIC_ERROR','mapper','updateFeedItemAIReplySources','includes','ai-chat-file-upload-failed','sessionId','AI_CHAT_UNTITLED_CONVERSATION','getSelectionText','push','load','ai-chat-conversation-init-failed','getInteractionAndReplyById','maxOffset','baseVersion','removeSelectionFromChatContext','85ohaGLo','node','interactionFinished','addSelectionToChatContext','_aiChatUi','391983kKlENl','replyChangeGroupStateUpdated','root','resetMessageInput','_bodyCollection','split','upsertAIChatRating','toString','next','ai.models','batch','showPrevious','config','aiChatBalloon','AITabs','enableControls','set','handleUserInteraction','undo','sources','length','_aiChatModels','reasoningFinished','startInteraction','_showConversationHistory','ai-chat-context-invalid-data','options','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','interactionDestroyed','AIChatController','content','detachFromDom','addContextItem','afterInit','addFeedItemStaticMessage','_handleUIUserMessage','removeContextItem','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AI_CHAT_CONTEXT_INVALID_DATA','chat','isUploadInProgress','AIChatUI','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getInteraction','removed','howMany','delete','lastCreated','ai-chat-url-upload-failed','mouseLeaveSuggestion','_removeFromContext','_currentPreviewedChangeGroup','hasChanges','mouseOverSuggestion','isCurrentDocumentInConversation','cloneNode','startsWith','toViewRange','getGroupId','addCurrentDocumentToChatContext','dislike','contextSent','modelSelected','resize','currentReply','_getPresentableSiblingContentPartIndex','path','AI_CHAT_INVALID_REQUEST','ai-conversation-','TrackChangesEditing','documentContextContent','isLoading','setModel','add','12AHgSGj','getDocumentData','destroy','sourceResourcesLoaded','_flushLastInteractionUI','ai-chat-source-resources-load-failed','source','_createFromRanges','1100764IfYKGb','addFeedItemAIReply','startConversation','resizedTabs','addFeedInteractionHeader','_handleStartConversation','_batchToChanges','3646854UEUceq','Showing\x20conversation\x20history...','state','Undo','updateContent','createPositionAt','showDiff','setIsUploadInProgress','dialogClosed','data','slice','indexOf','changes','contextItemLoadingEnded','callback','ai-chat-context-form-data-size-limits-exceeded','remove','addFileToContext','fetchConversation','messageId','modification','getDiff','streaming','setSelectedModel','find','selectModel','resourceStateChanged','updateConversationTitle','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','toolDataReceived','AI_CHAT_UNABLE_TO_START_CONVERSATION','addUrlToContext','ai-chat-context-unsupported-type','interactionCreated','TrackChanges','activateTab','ai-chat-missing-channel-id','getPath','ai-chat-resource-load-failed','contextItems','createPositionFromPath','_registerToolDataCallback','applySuggestion','requires','setAddContextOptions','webSearchFinished','getConversations','ai-chat-conversation-not-found','addContextOptionsChanged','interactionId','getContentParts','createdAt','getConversation','finishInteraction','plugins','fetchConversations','anchorId','partIndex','updateCurrentDocumentInContext','init','3514704tfWSsz','stop','collaboration.channelId','get','_aiChatBalloon','end','rejected','from','prepareLoadingMessage','interactionStarted','_applyOperationsAsSuggestions','addFeedItemAISuggestion','setChangeGroupState','updateResourceState','contextItemAdded','uploadProgressChanged','log','changeGroups','listenTo','webSearchStarted','_startConversationSafely','attachToDom','addFeedItemUserMessage','clearPendingContextUI','startAutoScroll','showNext','getOperations','getRoot','replyId','hideFakeVisualSelection','isStarted','resources','addFeedItemCustomElement','redo','117196HOJPhA','conversationInitialized','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','resource','closeSourceResourceBalloon','addCurrentDocumentToContext','contextItem','getReply','Disliked\x20response','AI_CHAT_CONTEXT_FILE_TOO_LARGE','unshift','ai.models.defaultModelId','filter','addOperation','ai-chat-context-unsupported-file-type','scrollFeedToSuggestion','_aiChatBalloonShowDiff','loadConversation','rootName','_insertSuggestion','stopInteraction','pending','clearConversationContextUI','focusPromptInput','reasoningStarted','setConversationContext','map','AIEditing','capabilitiesUpdated','resourceId','main','AIConnector','sourcePosition','sendUserMessage','createConversation','_toggleReasoning','removeFeedInteraction','getAll','executeCustomItemCallback','editing','AI_CHAT_ABORTED_MESSAGE','resetReasoningState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','pluginName','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','version','applyOperation','ai-chat-context-file-too-many-pages','setFeedItemAIReplySuggestionPartActive','sourceId','revert','toggleWebSearch','_getUserPresentableContentPartDocumentRange','view','resizeTabs','resetConversationTitle','showFakeVisualSelection','getTransformedByOperation','handleRemovedConversation','resetWebSearchState','_stopLastInteraction','data-id','message','parse','model','addFeedItemError','_updateReplyContent','error','replyCreated','has','updateFeedItemAIReplyContent','rejectSuggestion','findIndex','setIsMaximized','Liked\x20response','contextItemRemoved','toggleReasoning','nextSibling','accepted','ai-chat-context-file-too-large','getChildAtOffset','_applySuggestion','viewRangeToDom','new','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','index','children','_logError','isInContext','_scrollToSuggestionRange','isDocumentOperation','toggleSuggestionDisplayMode','forEach','getDocumentContext','setConversationTitle','AI_CHAT_RESOURCE_LOAD_FAILED','addSelectionToContext','updateFeedItemAIReplySuggestionPartState','domConverter','abortPromptStream','replies','_setIsMaximized','alignToTop','setLoadingMessage','createReply','ai-chat-controller-mouse-over','range','close','activeConversation','_rejectSuggestion','ai-chat-invalid-request','74022BIalcd','updateCapabilities','clearLoadingMessage','context','previous','uiId','isModelAvailable','AIChatBalloon','isPremiumPlugin','query','_toggleWebSearch','loadSourceResources','ai.chat.context','getRanges','addFilesToContext','text','open','sendMessage','selection','getFirstRange','setContextItemLoading','createRange','uid','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','delegate','setFeedItemRenderingStrategy','getChildren','areActionsDisabled','outdated','_aiConnector','editors'];_0x2d80=function(){return _0x577600;};return _0x2d80();}import{AIConnector as _0x260f64}from'../aicore/aiconnector.js';function _0x462d(_0x244c72,_0x278529){const _0x2d80ad=_0x2d80();return _0x462d=function(_0x462de1,_0x561e3d){_0x462de1=_0x462de1-0x184;let _0x1fe2fb=_0x2d80ad[_0x462de1];return _0x1fe2fb;},_0x462d(_0x244c72,_0x278529);}import{AITabs as _0x10af84}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5b18f6}from'./model/aichatconversation.js';import{getTranslation as _0x2f5f52}from'../aicore/utils/common-translations.js';import{AIModels as _0x39ac94}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x11e5e4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x46b224,DATA_ID_MODEL_ATTRIBUTE as _0x35e592}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x53f672,getOperationsFromReply as _0x397cbf}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3bf8dd,getMinimalSelection as _0x1a2567}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x548b39,_DetachOperation as _0x2375cc}from'ckeditor5/src/engine.js';import{findOne as _0x2e91ba,getAttribute as _0x50768f,serialize as _0x29993e,Document as _0x1e4dd4,findByAttribute as _0x4a5ad3}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x579fa9{[_0x4f0be9(0x242)];[_0x4f0be9(0x21a)];[_0x4f0be9(0x261)];[_0x4f0be9(0x277)];[_0x4f0be9(0x2fb)];[_0x4f0be9(0x2ba)]=new Map();[_0x4f0be9(0x295)]=null;[_0x4f0be9(0x266)];static get[_0x4f0be9(0x2e6)](){return[_0x260f64,_0x46b224];}static get[_0x4f0be9(0x1b9)](){const _0x52fda4=_0x4f0be9;return _0x52fda4(0x27f);}static get[_0x4f0be9(0x220)](){return!0x0;}static get[_0x4f0be9(0x205)](){return!0x0;}[_0x4f0be9(0x2f6)](){const _0x468ced=_0x4f0be9;this[_0x468ced(0x266)]=new _0x5c7a70(this[_0x468ced(0x200)][_0x468ced(0x23e)]),this[_0x468ced(0x266)][_0x468ced(0x30c)](),this[_0x468ced(0x21a)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x1ad)),this[_0x468ced(0x261)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x28b)),this[_0x468ced(0x242)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x1a9)),this[_0x468ced(0x277)]=new _0x39ac94({'connector':this[_0x468ced(0x21a)],'config':this[_0x468ced(0x200)][_0x468ced(0x26e)][_0x468ced(0x2fa)](_0x468ced(0x26b)),'locale':this[_0x468ced(0x200)][_0x468ced(0x23e)]});const _0x369c13=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x270));this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2b6),()=>{const _0x1fcd1c=_0x468ced;this[_0x1fcd1c(0x30b)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1af),(_0x19b5a0,_0x5ce5b0)=>{const _0x3c6b30=_0x468ced;this[_0x3c6b30(0x285)]({'userMessage':_0x5ce5b0});}),this[_0x468ced(0x309)](_0x369c13,_0x468ced(0x2b7),(_0x51d1b8,_0x111288)=>{const _0x17de55=_0x468ced;this[_0x17de55(0x1f3)](_0x111288);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1c4),()=>{const _0x3242d4=_0x468ced;_0x369c13[_0x3242d4(0x2a1)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1f1),async()=>{const _0x3f8eb2=_0x468ced;await this[_0x3f8eb2(0x1ca)](),await this[_0x3f8eb2(0x2b0)](),this[_0x3f8eb2(0x25c)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x243),()=>{const _0x386460=_0x468ced;this[_0x386460(0x29d)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2cc),(_0x3a1e3c,_0x44ac27)=>{const _0x2f9368=_0x468ced;this[_0x2f9368(0x1fa)]?.[_0x2f9368(0x20b)](Array[_0x2f9368(0x2fe)](_0x44ac27));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2da),(_0x564b24,_0x284639)=>{const _0x95f40a=_0x468ced;this[_0x95f40a(0x1fa)]?.[_0x95f40a(0x2da)](_0x284639);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1b4),(_0x174618,_0xa34930)=>{const _0x2211b5=_0x468ced;_0xa34930[_0x2211b5(0x2c9)](this[_0x2211b5(0x200)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x22e),(_0x4d4eb0,_0x1f66f3)=>{const _0x559924=_0x468ced;this[_0x559924(0x1fa)]?.[_0x559924(0x22e)](_0x1f66f3[_0x559924(0x2b2)],_0x1f66f3[_0x559924(0x191)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x286),(_0x261a24,_0x298052)=>{const _0x35ac52=_0x468ced;this[_0x35ac52(0x294)](_0x298052);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x208),(_0x2254d0,_0x4edd5a)=>{const _0x244b7d=_0x468ced;this[_0x244b7d(0x1fa)]?.[_0x244b7d(0x208)](_0x4edd5a[_0x244b7d(0x1bf)],_0x4edd5a[_0x244b7d(0x206)],_0x4edd5a[_0x244b7d(0x213)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1c1),()=>{const _0xdfac33=_0x468ced;this[_0xdfac33(0x207)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1da),()=>{const _0x139273=_0x468ced;this[_0x139273(0x1b1)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2d4),(_0x4d2729,_0x3e576f)=>{const _0x3e31f4=_0x468ced;this[_0x3e31f4(0x1fa)]?.[_0x3e31f4(0x2aa)](_0x3e576f);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x24b),(_0x4415ff,{replyId:_0x41c9d4})=>{const _0x1bbb78=_0x468ced;console[_0x1bbb78(0x307)](_0x1bbb78(0x1d8),_0x41c9d4);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x29e),(_0x192ed3,{replyId:_0x1c3fd7})=>{const _0x585426=_0x468ced;console[_0x585426(0x307)](_0x585426(0x196),_0x1c3fd7);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x21d),(_0x567ea7,_0x8daf5e)=>{const _0x105308=_0x468ced;this[_0x105308(0x1a1)](_0x8daf5e);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x21f),(_0x2307f6,{replyId:_0x59909d,partIndex:_0x4929a2})=>{const _0x5b65ed=_0x468ced;this[_0x5b65ed(0x19e)]=this[_0x5b65ed(0x261)][_0x5b65ed(0x2c1)],this[_0x5b65ed(0x234)](_0x59909d,_0x4929a2);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x297),(_0x16af87,{replyId:_0x332689,partIndex:_0x2291c7})=>{const _0x4716e2=_0x468ced,_0xab4a04=this[_0x4716e2(0x232)](_0x332689,_0x2291c7);_0xab4a04&&_0x4716e2(0x241)!=_0xab4a04[_0x4716e2(0x1f8)][_0x4716e2(0x264)][_0x4716e2(0x1a0)]&&this[_0x4716e2(0x242)][_0x4716e2(0x1c6)]([_0xab4a04[_0x4716e2(0x1f8)]],_0x4716e2(0x1f7));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x293),()=>{const _0x394299=_0x468ced;this[_0x394299(0x242)][_0x394299(0x189)](_0x394299(0x1f7));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2e5),(_0x5353c7,_0x5e388f)=>{const _0x1b363b=_0x468ced;this[_0x1b363b(0x242)][_0x1b363b(0x189)](_0x1b363b(0x1f7)),this[_0x1b363b(0x1df)](_0x5e388f);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1e9),async(_0x400574,{replyId:_0x42bff5,showDiff:_0x589b9d})=>{const _0x42ad8a=_0x468ced,{reply:_0x53e252}=this[_0x42ad8a(0x259)](_0x42bff5),_0x121116=_0x53e252[_0x42ad8a(0x2ed)]({'showDiff':_0x589b9d});await this[_0x42ad8a(0x261)][_0x42ad8a(0x24c)]({'id':_0x53e252['id'],'parts':_0x121116,'renderingStrategy':_0x42ad8a(0x23f)});}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1d5),(_0x50f8d3,{replyId:_0x2093a8,partIndex:_0x1953b4})=>{const _0x4951fd=_0x468ced;this[_0x4951fd(0x1fb)]({'replyId':_0x2093a8,'partIndex':_0x1953b4}),this[_0x4951fd(0x242)][_0x4951fd(0x189)](_0x4951fd(0x1f7));}),this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x1d3)](_0x468ced(0x204))&&(this[_0x468ced(0x2fb)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x204)),this[_0x468ced(0x272)](_0x468ced(0x19e),!0x1),this[_0x468ced(0x2fb)][_0x468ced(0x238)](_0x468ced(0x2c1))['to'](this,_0x468ced(0x19e)),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x1e9),()=>{const _0x50c8ed=_0x468ced,{replyId:_0x314bee,partIndex:_0x42459b}=this[_0x50c8ed(0x295)];this[_0x50c8ed(0x19e)]=!this[_0x50c8ed(0x19e)];const {reply:_0x4ca3c3}=this[_0x50c8ed(0x259)](_0x314bee),_0x956e9=_0x4ca3c3[_0x50c8ed(0x2ed)]({'showDiff':this[_0x50c8ed(0x19e)],'groupIndex':_0x42459b});this[_0x50c8ed(0x2fb)][_0x50c8ed(0x2bf)]({'part':_0x956e9[0x0],'renderingStrategy':_0x50c8ed(0x23f),'keepErrors':!0x0});}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x2e5),()=>{const _0x57ff21=_0x468ced,{replyId:_0x50aa6a,partIndex:_0xd8073d}=this[_0x57ff21(0x295)];this[_0x57ff21(0x1df)]({'replyId':_0x50aa6a,'partIndex':_0xd8073d}),this[_0x57ff21(0x2fb)][_0x57ff21(0x21c)](_0x57ff21(0x1dc));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x21d),()=>{const _0x39f3b4=_0x468ced,{replyId:_0x583d9f,partIndex:_0x30b85f}=this[_0x39f3b4(0x295)];this[_0x39f3b4(0x1a1)]({'replyId':_0x583d9f,'partIndex':_0x30b85f}),this[_0x39f3b4(0x2fb)][_0x39f3b4(0x21c)](_0x39f3b4(0x1dc));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x1d5),()=>{const _0x42e9cf=_0x468ced,{replyId:_0x1cbec5,partIndex:_0x50c8cd}=this[_0x42e9cf(0x295)];this[_0x42e9cf(0x1fb)]({'replyId':_0x1cbec5,'partIndex':_0x50c8cd}),this[_0x42e9cf(0x2fb)][_0x42e9cf(0x21c)](_0x42e9cf(0x2fd));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x185),()=>{const _0x1bdfc0=_0x468ced,{replyId:_0x31c3bc,partIndex:_0xb9cbaf}=this[_0x1bdfc0(0x295)],_0x42f1d3=this[_0x1bdfc0(0x2a3)](_0x31c3bc,_0xb9cbaf,_0x1bdfc0(0x26a));null!==_0x42f1d3&&this[_0x1bdfc0(0x234)](_0x31c3bc,_0x42f1d3);}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x26d),()=>{const _0x1c5d65=_0x468ced,{replyId:_0xf2a7ec,partIndex:_0x1156a2}=this[_0x1c5d65(0x295)],_0x15382=this[_0x1c5d65(0x2a3)](_0xf2a7ec,_0x1156a2,_0x1c5d65(0x201));null!==_0x15382&&this[_0x1c5d65(0x234)](_0xf2a7ec,_0x15382);}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x2c3),(_0x330cd7,{id:_0x530bdc})=>{const _0x484b28=_0x468ced;if(_0x484b28(0x26f)!==_0x530bdc)return;const {replyId:_0x5a865d,partIndex:_0x4d1013}=this[_0x484b28(0x295)];this[_0x484b28(0x295)]=null,this[_0x484b28(0x261)][_0x484b28(0x1be)]({'id':_0x5a865d,'index':_0x4d1013,'isActive':!0x1});}));}async[_0x4f0be9(0x283)](){const _0x229344=_0x4f0be9;this[_0x229344(0x200)]instanceof _0x4c7e88?this[_0x229344(0x224)](this[_0x229344(0x200)]):this[_0x229344(0x309)](this[_0x229344(0x200)][_0x229344(0x21b)],_0x229344(0x2ab),(_0x37e746,_0x16a443)=>{const _0x3bafd3=_0x229344;_0x16a443['on'](_0x3bafd3(0x22c),()=>{const _0x1adbf1=_0x3bafd3;this[_0x1adbf1(0x224)](_0x16a443);});});const _0x41288f=this[_0x229344(0x200)][_0x229344(0x26e)][_0x229344(0x2fa)](_0x229344(0x229));let _0x5ee54e=_0x41288f;if(_0x229344(0x291)!=_0x41288f||(_0x5ee54e=await this[_0x229344(0x236)](),_0x5ee54e))return _0x229344(0x1e1)==_0x5ee54e?this[_0x229344(0x30b)]():this[_0x229344(0x19f)](_0x5ee54e);}async[_0x4f0be9(0x2ae)](){const _0x50f2e4=_0x4f0be9;return await this[_0x50f2e4(0x1ca)](),this[_0x50f2e4(0x266)][_0x50f2e4(0x281)](),super[_0x50f2e4(0x2ae)]();}[_0x4f0be9(0x1a1)](_0x4c1c8a){const _0x2d33c1=_0x4f0be9,_0x35fcbe=_0x11e5e4(this[_0x2d33c1(0x200)]);if(!_0x35fcbe[_0x2d33c1(0x2f1)][_0x2d33c1(0x1d3)](_0x2d33c1(0x2dd)))throw new _0x5e0114(_0x2d33c1(0x23a),null);const _0x362a5f=this[_0x2d33c1(0x200)][_0x2d33c1(0x2f1)][_0x2d33c1(0x2fa)](_0x2d33c1(0x231)),{reply:_0x1891be,interaction:_0x60f927}=this[_0x2d33c1(0x259)](_0x4c1c8a[_0x2d33c1(0x188)]),_0x4a356a=this[_0x2d33c1(0x232)](_0x4c1c8a[_0x2d33c1(0x188)],_0x4c1c8a[_0x2d33c1(0x2f4)]),_0x170615=void 0x0!==_0x4c1c8a[_0x2d33c1(0x2f4)]?[_0x1891be[_0x2d33c1(0x308)][_0x4c1c8a[_0x2d33c1(0x2f4)]]]:_0x1891be[_0x2d33c1(0x308)][_0x2d33c1(0x19a)](_0x47af64=>_0x2d33c1(0x1a3)==_0x47af64[_0x2d33c1(0x2bd)]),_0x1a4bea=_0x170615[_0x2d33c1(0x1a8)](_0x378547=>_0x1891be[_0x2d33c1(0x308)][_0x2d33c1(0x2c6)](_0x378547));if(!_0x4a356a||_0x2d33c1(0x241)==_0x4a356a[_0x2d33c1(0x1f8)][_0x2d33c1(0x264)][_0x2d33c1(0x1a0)])return void _0x1a4bea[_0x2d33c1(0x1ea)](_0x36f9c1=>_0x1891be[_0x2d33c1(0x303)](_0x36f9c1,_0x2d33c1(0x219)));_0x1a4bea[_0x2d33c1(0x1ea)](_0x3d53f1=>_0x1891be[_0x2d33c1(0x303)](_0x3d53f1,_0x2d33c1(0x1dc)));const _0x5ca13b=_0x397cbf({'editor':_0x35fcbe,'reply':_0x1891be,'interaction':_0x60f927,'groups':_0x170615,'transform':!0x0,'documentCompare':_0x362a5f,'documentCompareOptions':{'anchor':_0x2d33c1(0x1ac),'markDeletions':!0x0}});let _0x11e90c;_0x4a356a&&this[_0x2d33c1(0x1e7)](_0x4a356a[_0x2d33c1(0x1f8)]),_0x35fcbe[_0x2d33c1(0x1ce)][_0x2d33c1(0x227)](_0x3492bf=>{const _0x425207=_0x2d33c1;_0x11e90c=_0x3492bf[_0x425207(0x26c)],_0x35fcbe[_0x425207(0x2f1)][_0x425207(0x2fa)](_0x425207(0x2a7))[_0x425207(0x301)](_0x5ca13b),this[_0x425207(0x242)][_0x425207(0x189)](_0x425207(0x1f7));}),this[_0x2d33c1(0x2ba)][_0x2d33c1(0x272)](_0x11e90c,{'interactionId':_0x60f927['id'],'replyId':_0x1891be['id'],'indexes':_0x1a4bea[_0x2d33c1(0x2c5)]()}),this[_0x2d33c1(0x24a)](_0x1891be);}[_0x4f0be9(0x1df)](_0x124b86){const _0x3b9a09=_0x4f0be9,_0x844662=_0x11e5e4(this[_0x3b9a09(0x200)]),_0x204ed5=this[_0x3b9a09(0x200)][_0x3b9a09(0x2f1)][_0x3b9a09(0x2fa)](_0x46b224),{reply:_0x32c70e,interaction:_0x399bbf}=this[_0x3b9a09(0x259)](_0x124b86[_0x3b9a09(0x188)]),_0xcca067=this[_0x3b9a09(0x232)](_0x124b86[_0x3b9a09(0x188)],_0x124b86[_0x3b9a09(0x2f4)]),_0x51fde3=void 0x0!==_0x124b86[_0x3b9a09(0x2f4)]?[_0x32c70e[_0x3b9a09(0x308)][_0x124b86[_0x3b9a09(0x2f4)]]]:_0x32c70e[_0x3b9a09(0x308)][_0x3b9a09(0x19a)](_0x337ac6=>_0x3b9a09(0x1a3)==_0x337ac6[_0x3b9a09(0x2bd)]),_0x475971=_0x51fde3[_0x3b9a09(0x1a8)](_0x429a77=>_0x32c70e[_0x3b9a09(0x308)][_0x3b9a09(0x2c6)](_0x429a77));if(!_0xcca067||_0x3b9a09(0x241)==_0xcca067[_0x3b9a09(0x1f8)][_0x3b9a09(0x264)][_0x3b9a09(0x1a0)])return void _0x475971[_0x3b9a09(0x1ea)](_0x525347=>_0x32c70e[_0x3b9a09(0x303)](_0x525347,_0x3b9a09(0x219)));_0x475971[_0x3b9a09(0x1ea)](_0x2bbbff=>_0x32c70e[_0x3b9a09(0x303)](_0x2bbbff,_0x3b9a09(0x1dc)));const _0x4364cc=_0x397cbf({'editor':_0x844662,'reply':_0x32c70e,'interaction':_0x399bbf,'groups':_0x51fde3,'transform':!0x0,'documentCompare':_0x204ed5,'documentCompareOptions':{'anchor':_0x3b9a09(0x1ac),'markDeletions':!0x1}});let _0x1871d1;_0xcca067&&this[_0x3b9a09(0x1e7)](_0xcca067[_0x3b9a09(0x1f8)]),_0x844662[_0x3b9a09(0x1ce)][_0x3b9a09(0x227)](_0x54283d=>{const _0x5cc779=_0x3b9a09;_0x1871d1=_0x54283d[_0x5cc779(0x26c)];for(const _0x3c6b60 of _0x4364cc)_0x3c6b60[_0x5cc779(0x25b)]=_0x844662[_0x5cc779(0x1ce)][_0x5cc779(0x22d)][_0x5cc779(0x1bb)],_0x53f672(_0x844662,_0x3c6b60),_0x54283d[_0x5cc779(0x26c)][_0x5cc779(0x19b)](_0x3c6b60),_0x844662[_0x5cc779(0x1ce)][_0x5cc779(0x1bc)](_0x3c6b60);}),this[_0x3b9a09(0x2ba)][_0x3b9a09(0x272)](_0x1871d1,{'interactionId':_0x399bbf['id'],'replyId':_0x32c70e['id'],'indexes':_0x475971[_0x3b9a09(0x2c5)]()}),this[_0x3b9a09(0x24a)](_0x32c70e);}[_0x4f0be9(0x1fb)](_0x67cb0e){const _0xefbe1=_0x4f0be9,{reply:_0x426d22}=this[_0xefbe1(0x259)](_0x67cb0e[_0xefbe1(0x188)]);_0x426d22[_0xefbe1(0x303)](_0x67cb0e[_0xefbe1(0x2f4)],_0xefbe1(0x2fd));}[_0x4f0be9(0x234)](_0x44318e,_0x55fd96){const _0x3f9a53=_0x4f0be9;if(!this[_0x3f9a53(0x2fb)])return;const {reply:_0x1fbc4f}=this[_0x3f9a53(0x259)](_0x44318e),_0x50540a=_0x1fbc4f[_0x3f9a53(0x2ed)]({'showDiff':this[_0x3f9a53(0x19e)]});let _0x5f2cbc,_0x2cf065;if(void 0x0!==_0x55fd96?(_0x2cf065=_0x50540a[_0x3f9a53(0x2d3)](_0x318da8=>_0x318da8[_0x3f9a53(0x1e3)]==_0x55fd96),_0x5f2cbc=_0x2cf065?.[_0x3f9a53(0x1e3)]):(_0x2cf065=_0x50540a[0x0],_0x5f2cbc=_0x2cf065[_0x3f9a53(0x1e3)]),this[_0x3f9a53(0x295)]?.[_0x3f9a53(0x188)]==_0x44318e&&this[_0x3f9a53(0x295)]?.[_0x3f9a53(0x2f4)]==_0x5f2cbc)return;const _0x4d2989=this[_0x3f9a53(0x1c2)](_0x44318e,_0x1fbc4f,_0x2cf065);if(!_0x4d2989)return void this[_0x3f9a53(0x2fb)][_0x3f9a53(0x1f9)]();this[_0x3f9a53(0x295)]={'replyId':_0x44318e,'partIndex':_0x5f2cbc},this[_0x3f9a53(0x1e7)](_0x4d2989,!0x0);const _0x350dd6=this[_0x3f9a53(0x2a3)](_0x44318e,_0x5f2cbc,_0x3f9a53(0x26a));this[_0x3f9a53(0x2fb)][_0x3f9a53(0x2bf)]({'part':_0x2cf065,'renderingStrategy':_0x3f9a53(0x23f)}),this[_0x3f9a53(0x2fb)][_0x3f9a53(0x20d)]({'index':_0x5f2cbc,'title':_0x2f5f52(this[_0x3f9a53(0x200)][_0x3f9a53(0x23e)],_0x3f9a53(0x22a),(_0x5f2cbc+0x1)[_0x3f9a53(0x269)]()),'showRotator':null!==_0x350dd6,'ranges':[_0x4d2989],'areActionsDisabled':_0x1fbc4f[_0x3f9a53(0x218)]}),this[_0x3f9a53(0x2fb)][_0x3f9a53(0x21c)](_0x3f9a53(0x1a3)),this[_0x3f9a53(0x261)][_0x3f9a53(0x19d)](_0x44318e,_0x5f2cbc),this[_0x3f9a53(0x261)][_0x3f9a53(0x1be)]({'id':_0x44318e,'index':_0x5f2cbc,'isActive':!0x0});}[_0x4f0be9(0x2a3)](_0x272151,_0xe8a4b9,_0x5cb888){const _0x11f156=_0x4f0be9,{reply:_0x1a5d0f}=this[_0x11f156(0x259)](_0x272151),_0x1bd9eb=_0x1a5d0f[_0x11f156(0x2ed)]({'showDiff':this[_0x11f156(0x19e)]});if(0x1==_0x1bd9eb[_0x11f156(0x276)])return null;const _0x1d12d4=_0x1bd9eb[_0x11f156(0x1d6)](_0x3d1f65=>_0x3d1f65[_0x11f156(0x1e3)]==_0xe8a4b9),_0x1001d8=_0x11f156(0x26a)==_0x5cb888?0x1:-0x1;let _0x3fca33=_0x1bd9eb['at']((_0x1d12d4+_0x1001d8)%_0x1bd9eb[_0x11f156(0x276)])[_0x11f156(0x1e3)],_0x12f498=_0x1bd9eb[_0x3fca33];for(;!this[_0x11f156(0x1c2)](_0x272151,_0x1a5d0f,_0x12f498);){if(_0x3fca33=_0x1bd9eb['at']((_0x3fca33+_0x1001d8)%_0x1bd9eb[_0x11f156(0x276)])[_0x11f156(0x1e3)],_0x3fca33===_0x1d12d4)return null;_0x12f498=_0x1bd9eb[_0x3fca33];}return _0x3fca33;}[_0x4f0be9(0x1c2)](_0x19ce71,_0x3384e3,_0x5ea34b){const _0x1b239d=_0x4f0be9,_0x4148c9=_0x3384e3[_0x1b239d(0x308)];if(!_0x5ea34b[_0x1b239d(0x296)])return null;const _0x48a618=_0x4148c9[_0x1b239d(0x2d3)](_0x5662b1=>_0x5662b1[_0x1b239d(0x1e3)]==_0x5ea34b[_0x1b239d(0x1e3)]);if(_0x1b239d(0x1a3)!==_0x48a618?.[_0x1b239d(0x2bd)])return null;const _0x26e12e=this[_0x1b239d(0x232)](_0x19ce71,_0x5ea34b[_0x1b239d(0x1e3)]);if(!_0x26e12e)return null;const {range:_0x3e3213,currentIndex:_0x3304a2}=_0x26e12e;return _0x1b239d(0x241)==_0x3e3213[_0x1b239d(0x264)][_0x1b239d(0x1a0)]?(_0x3384e3[_0x1b239d(0x303)](_0x3304a2,_0x1b239d(0x219)),null):_0x26e12e[_0x1b239d(0x1f8)];}[_0x4f0be9(0x232)](_0x46db94,_0x27c527){const _0x729657=_0x4f0be9,_0x2f3529=_0x11e5e4(this[_0x729657(0x200)]),{reply:_0x3ad0d6,interaction:_0x9fbd2f}=this[_0x729657(0x259)](_0x46db94),_0x3fed3c=_0x3ad0d6[_0x729657(0x308)][_0x729657(0x19a)](_0x463014=>_0x729657(0x1a3)==_0x463014[_0x729657(0x2bd)]),_0x292bc9=_0x3fed3c[_0x729657(0x1a8)](_0x42ff6e=>_0x3ad0d6[_0x729657(0x308)][_0x729657(0x2c6)](_0x42ff6e));void 0x0===_0x27c527&&(_0x27c527=_0x292bc9[0x0]);const _0x3127ea=_0x292bc9[_0x729657(0x2c6)](_0x27c527);if(-0x1==_0x3127ea)return null;const _0x4bb7bb=_0x3fed3c[_0x3127ea],_0x53a5f7=new _0x1e4dd4([]),_0x49c114=new _0x1e4dd4([]);for(const _0xbe6ac0 of _0x4bb7bb[_0x729657(0x2c7)])if(_0x729657(0x28e)!=_0xbe6ac0[_0x729657(0x248)]&&_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0xbe6ac0[_0x729657(0x25e)][_0x729657(0x299)](!0x0)),_0x729657(0x1e1)!=_0xbe6ac0[_0x729657(0x248)]){const _0x13b827=_0x2e91ba(_0x3e3fae=>_0x50768f(_0x3e3fae,_0x729657(0x1cb))==_0xbe6ac0['id'],_0x3ad0d6[_0x729657(0x2a8)],!0x0);_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x13b827[_0x729657(0x299)](!0x0));}if(0x0==_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x276)]){if(_0x4bb7bb[_0x729657(0x2c7)][0x0][_0x729657(0x2f3)]){const _0x2bf097=_0x4a5ad3(_0x729657(0x1cb),_0x4bb7bb[_0x729657(0x2c7)][0x0][_0x729657(0x2f3)],_0x3ad0d6[_0x729657(0x2a8)]);_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x198)](_0x2bf097[_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x198)](_0x2bf097[_0x729657(0x299)](!0x0)),_0x2bf097[_0x729657(0x1db)]&&(_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x2bf097[_0x729657(0x1db)][_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0x2bf097[_0x729657(0x1db)][_0x729657(0x299)](!0x0)));}else{const _0x17ba19=_0x3ad0d6[_0x729657(0x2a8)][_0x729657(0x1e4)][0x0];if(!_0x17ba19)return null;_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x17ba19[_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0x17ba19[_0x729657(0x299)](!0x0));}}const _0xee3b32=_0x9fbd2f[_0x729657(0x1eb)](),_0x82e527=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0xee3b32[_0x729657(0x280)]),_0x67f69a=_0x29993e(_0x53a5f7),_0xe6979b=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0x67f69a),_0x51e507=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0x67f69a),_0x30871e=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2c0)](_0xe6979b,0x0),_0x4fa3ff=_0x29993e(_0x49c114),_0x337680={'anchor':_0x30871e,'markDeletions':!0x1},_0x4f8e33=_0x2f3529[_0x729657(0x2f1)][_0x729657(0x2fa)](_0x46b224)[_0x729657(0x2d0)](_0x67f69a,_0x4fa3ff,_0x337680)[_0x729657(0x186)]();if(!_0x4f8e33[_0x729657(0x276)])return null;_0x2f3529[_0x729657(0x1ce)][_0x729657(0x227)](_0x554e17=>{const _0x2af65d=_0x729657;for(const _0x4c8bfa of _0x4f8e33)if(_0x2af65d(0x2cb)==_0x4c8bfa[_0x2af65d(0x248)]){const _0x5ec15a=_0x4c8bfa[_0x2af65d(0x1ae)],_0x585a0c=_0x4c8bfa[_0x2af65d(0x28f)],_0x283a45=new _0x2375cc(_0x5ec15a,_0x585a0c);_0x554e17[_0x2af65d(0x26c)][_0x2af65d(0x19b)](_0x283a45),_0x2f3529[_0x2af65d(0x1ce)][_0x2af65d(0x1bc)](_0x283a45);}else _0x2af65d(0x249)!==_0x4c8bfa[_0x2af65d(0x248)]&&(_0x4c8bfa[_0x2af65d(0x25b)]=null,_0x4c8bfa[_0x2af65d(0x1e8)]=!0x1,_0x554e17[_0x2af65d(0x26c)][_0x2af65d(0x19b)](_0x4c8bfa),_0x2f3529[_0x2af65d(0x1ce)][_0x2af65d(0x1bc)](_0x4c8bfa));});const _0x43e7d9=_0x1a2567(_0x2f3529,_0x4f8e33,_0xe6979b);_0x3bf8dd(_0x2f3529[_0x729657(0x1ce)],_0x43e7d9);const _0x1b93ee=_0x43e7d9[_0x729657(0x210)]()[_0x729657(0x228)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x573c69=_0x43e7d9[_0x729657(0x210)]()[_0x729657(0x2fc)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x2e3673=[];let _0x11ce41=_0xe6979b,_0x5a8468=_0x51e507;for(let _0xd5e4d0=0x0;_0xd5e4d0<_0x573c69[_0x729657(0x276)];_0xd5e4d0++){const _0x3817aa=_0x11ce41[_0x729657(0x25a)]-_0x573c69[_0xd5e4d0];_0x2e3673[_0xd5e4d0]=_0x5a8468[_0x729657(0x25a)]-_0x3817aa,_0x11ce41=_0x11ce41[_0x729657(0x1de)](_0x573c69[_0xd5e4d0]),_0x5a8468=_0x5a8468[_0x729657(0x1de)](_0x2e3673[_0xd5e4d0]);}const _0x1a869c=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x212)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x51e507,_0x1b93ee),_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x51e507,_0x2e3673)),_0x48dc63=_0x51e507[_0x729657(0x23c)](0x0)[_0x729657(0x22f)](_0x35e592),_0x2a7b04=Array[_0x729657(0x2fe)](_0x82e527[_0x729657(0x217)]())[_0x729657(0x2d3)](_0x583732=>_0x583732[_0x729657(0x22f)](_0x35e592)==_0x48dc63)[_0x729657(0x2e0)](),_0x2c215b=_0x1a869c[_0x729657(0x228)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x34da4e=_0x1a869c[_0x729657(0x2fc)][_0x729657(0x2a4)][_0x729657(0x2c5)]();_0x2c215b[0x0]=_0x2a7b04[0x0]+_0x2c215b[0x0],_0x34da4e[0x0]=_0x2a7b04[0x0]+_0x34da4e[0x0];let _0xeb6525=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x212)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x187)](),_0x2c215b),_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x187)](),_0x34da4e));const _0x5389d5=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x244)][_0x729657(0x186)](_0xee3b32[_0x729657(0x1bb)]);for(const _0x141e68 of _0x5389d5)_0xeb6525=_0x548b39[_0x729657(0x2b3)](_0xeb6525[_0x729657(0x1c7)](_0x141e68));return{'range':_0xeb6525,'currentIndex':_0x27c527};}[_0x4f0be9(0x224)](_0x23e6b4){const _0x2162f8=_0x4f0be9;if(!_0x23e6b4[_0x2162f8(0x2f1)][_0x2162f8(0x1d3)](_0x2162f8(0x2be)))return;const _0x3dc433=_0x23e6b4[_0x2162f8(0x247)][_0x2162f8(0x2fa)](_0x2162f8(0x274)),_0xbbc663=_0x23e6b4[_0x2162f8(0x247)][_0x2162f8(0x2fa)](_0x2162f8(0x18d));this[_0x2162f8(0x309)](_0x3dc433,_0x2162f8(0x1c0),(_0x4b73f5,_0x557cb4,_0x5dac4e)=>{const _0x1c9960=_0x2162f8,_0x39ce6d=this[_0x1c9960(0x2ba)][_0x1c9960(0x2fa)](_0x557cb4);if(!_0x39ce6d)return;const _0x333209=this[_0x1c9960(0x1fa)][_0x1c9960(0x28d)](_0x39ce6d[_0x1c9960(0x2ec)])[_0x1c9960(0x195)](_0x39ce6d[_0x1c9960(0x188)]);_0x39ce6d[_0x1c9960(0x225)][_0x1c9960(0x1ea)](_0x1a6179=>_0x333209[_0x1c9960(0x303)](_0x1a6179,_0x1c9960(0x1a3))),this[_0x1c9960(0x2ba)][_0x1c9960(0x290)](_0x557cb4),this[_0x1c9960(0x2ba)][_0x1c9960(0x272)](_0x5dac4e,_0x39ce6d);}),this[_0x2162f8(0x309)](_0xbbc663,_0x2162f8(0x1c0),(_0x38ef50,_0x50fcab,_0x527147)=>{const _0x21fbe9=_0x2162f8,_0x2d54f8=this[_0x21fbe9(0x2ba)][_0x21fbe9(0x2fa)](_0x50fcab);if(!_0x2d54f8)return;const _0x573615=this[_0x21fbe9(0x1fa)][_0x21fbe9(0x28d)](_0x2d54f8[_0x21fbe9(0x2ec)])[_0x21fbe9(0x195)](_0x2d54f8[_0x21fbe9(0x188)]);_0x2d54f8[_0x21fbe9(0x225)][_0x21fbe9(0x1ea)](_0x463a27=>_0x573615[_0x21fbe9(0x303)](_0x463a27,_0x21fbe9(0x1dc))),this[_0x21fbe9(0x2ba)][_0x21fbe9(0x290)](_0x50fcab),this[_0x21fbe9(0x2ba)][_0x21fbe9(0x272)](_0x527147,_0x2d54f8);});}async[_0x4f0be9(0x19f)](_0x21ab6b){const _0x12730a=_0x4f0be9;this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x1d3)](_0x12730a(0x204))&&this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x2fa)](_0x12730a(0x204))[_0x12730a(0x1f9)](),(this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x2fa)](_0x10af84)[_0x12730a(0x1c3)][_0x12730a(0x2de)](_0x12730a(0x289)),this[_0x12730a(0x261)][_0x12730a(0x216)](_0x12730a(0x23f)),this[_0x12730a(0x261)][_0x12730a(0x233)](!0x0),await this[_0x12730a(0x1ca)]());try{await this[_0x12730a(0x21a)][_0x12730a(0x2cd)](_0x21ab6b)[_0x12730a(0x2ef)](),await this[_0x12730a(0x30b)](_0x21ab6b),this[_0x12730a(0x2d6)]('\x20'),await this[_0x12730a(0x1fa)][_0x12730a(0x257)](_0x21ab6b,this[_0x12730a(0x242)][_0x12730a(0x253)]),this[_0x12730a(0x1fa)][_0x12730a(0x298)]()&&this[_0x12730a(0x29d)]();}catch(_0x46f64f){this[_0x12730a(0x261)][_0x12730a(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x12730a(0x200)][_0x12730a(0x23e)],_0x12730a(0x287)),'id':_0x21ab6b}),this[_0x12730a(0x1e5)](new _0x5e0114(_0x12730a(0x2ea),this,{'error':_0x46f64f}));}finally{this[_0x12730a(0x261)][_0x12730a(0x184)](),this[_0x12730a(0x261)][_0x12730a(0x216)](_0x12730a(0x2d1)),this[_0x12730a(0x261)][_0x12730a(0x233)](!0x1);}}async[_0x4f0be9(0x236)](){const _0x1bba74=_0x4f0be9,_0x5833f3=this[_0x1bba74(0x21a)][_0x1bba74(0x2f2)](this[_0x1bba74(0x29c)](),{'limit':0x1,'sortBy':_0x1bba74(0x2ee)});try{const _0x34c156=await _0x5833f3[_0x1bba74(0x2e9)]();return _0x34c156[_0x1bba74(0x276)]?_0x34c156[0x0]['id']:_0x1bba74(0x1e1);}catch(_0x55362a){return this[_0x1bba74(0x261)][_0x1bba74(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x1bba74(0x200)][_0x1bba74(0x23e)],_0x1bba74(0x287)),'id':_0x38ac82()}),this[_0x1bba74(0x1e5)](new _0x5e0114(_0x1bba74(0x258),this,{'error':_0x55362a})),this[_0x1bba74(0x261)][_0x1bba74(0x233)](!0x1),this[_0x1bba74(0x261)][_0x1bba74(0x222)](),null;}}[_0x4f0be9(0x1c8)](_0x447f67){const _0x6c7c9a=_0x4f0be9;this[_0x6c7c9a(0x1fa)]['id']===_0x447f67&&this[_0x6c7c9a(0x30b)]();}[_0x4f0be9(0x29d)](){const _0x1dc347=_0x4f0be9;this[_0x1dc347(0x1fa)]?.[_0x1dc347(0x193)](_0x2f5f52(this[_0x1dc347(0x200)][_0x1dc347(0x23e)],_0x1dc347(0x1e2)));}async[_0x4f0be9(0x260)](){const _0x67d122=_0x4f0be9,_0x449edc=this[_0x67d122(0x242)][_0x67d122(0x255)]();this[_0x67d122(0x1fa)]?.[_0x67d122(0x1ee)](_0x449edc),this[_0x67d122(0x29d)]();}[_0x4f0be9(0x25c)](){const _0x30721c=_0x4f0be9;this[_0x30721c(0x1fa)]?.[_0x30721c(0x223)]();}[_0x4f0be9(0x1a5)](){const _0x525e7f=_0x4f0be9;this[_0x525e7f(0x261)][_0x525e7f(0x1a5)]();}async[_0x4f0be9(0x2b6)](){const _0x3698dc=_0x4f0be9;await this[_0x3698dc(0x30b)]();}async[_0x4f0be9(0x20e)]({message:_0xe2e82c,attributes:_0x2c3eb2}){const _0x12c9da=_0x4f0be9;await this[_0x12c9da(0x285)]({'userMessage':_0xe2e82c,'attributes':_0x2c3eb2});}[_0x4f0be9(0x29c)](){const _0x3ee0c5=_0x4f0be9,_0x1b3a20=this[_0x3ee0c5(0x200)][_0x3ee0c5(0x26e)][_0x3ee0c5(0x2fa)](_0x3ee0c5(0x2f9));if(!_0x1b3a20)throw new _0x5e0114(_0x3ee0c5(0x2df),this);return _0x1b3a20;}async[_0x4f0be9(0x30b)](_0x36db2d){const _0x25a8c3=_0x4f0be9;try{this[_0x25a8c3(0x261)][_0x25a8c3(0x271)](),await this[_0x25a8c3(0x2b9)](_0x36db2d);}catch(_0x253944){this[_0x25a8c3(0x261)][_0x25a8c3(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x25a8c3(0x200)][_0x25a8c3(0x23e)],_0x25a8c3(0x2d9)),'id':_0x36db2d||_0x38ac82()}),console[_0x25a8c3(0x1d1)](_0x253944),this[_0x25a8c3(0x1fa)]=void 0x0,this[_0x25a8c3(0x261)][_0x25a8c3(0x222)]();}}async[_0x4f0be9(0x2b9)](_0x3f009e){const _0x5f12a6=_0x4f0be9;let _0x3d4bab;this[_0x5f12a6(0x200)][_0x5f12a6(0x2f1)][_0x5f12a6(0x1d3)](_0x5f12a6(0x204))&&this[_0x5f12a6(0x200)][_0x5f12a6(0x2f1)][_0x5f12a6(0x2fa)](_0x5f12a6(0x204))[_0x5f12a6(0x1f9)](),_0x3f009e||!this[_0x5f12a6(0x1fa)]?_0x3d4bab=this[_0x5f12a6(0x200)][_0x5f12a6(0x26e)][_0x5f12a6(0x2fa)](_0x5f12a6(0x199)):this[_0x5f12a6(0x261)][_0x5f12a6(0x203)]&&(_0x3d4bab=this[_0x5f12a6(0x1fa)][_0x5f12a6(0x239)]['id']),await this[_0x5f12a6(0x1ca)]();const _0x47d4eb=this[_0x5f12a6(0x29c)](),_0x171eb7=_0x3f009e||_0x38ac82();this[_0x5f12a6(0x1fa)]=new _0x5b18f6({'connector':this[_0x5f12a6(0x21a)],'chatModels':this[_0x5f12a6(0x277)],'selectedModelId':_0x3d4bab,'conversationId':_0x171eb7,'group':_0x47d4eb,'getEditor':()=>_0x11e5e4(this[_0x5f12a6(0x200)]),'isFromHistory':!!_0x3f009e}),this[_0x5f12a6(0x1fa)][_0x5f12a6(0x215)](_0x5f12a6(0x2d8),_0x5f12a6(0x300))['to'](this),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x18f),(_0x475869,_0x3de9ad)=>{const _0x4bcf61=_0x5f12a6;this[_0x4bcf61(0x261)][_0x4bcf61(0x1b0)](_0x3de9ad),this[_0x4bcf61(0x261)][_0x4bcf61(0x265)](),this[_0x4bcf61(0x261)][_0x4bcf61(0x30e)](),this[_0x4bcf61(0x261)][_0x4bcf61(0x1a4)](),_0x3f009e||(this[_0x4bcf61(0x261)][_0x4bcf61(0x1c5)](),this[_0x4bcf61(0x29d)]());}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x306),(_0x212c38,_0x57be37)=>{const _0x2ae88a=_0x5f12a6;this[_0x2ae88a(0x261)][_0x2ae88a(0x2c2)](_0x57be37[_0x2ae88a(0x28a)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2dc),(_0x3e742e,_0x3d27ee)=>{const _0x1c7faa=_0x5f12a6;this[_0x1c7faa(0x261)][_0x1c7faa(0x30d)](_0x3d27ee);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x30a),()=>{const _0x5a038f=_0x5f12a6,_0x432884=this[_0x5a038f(0x261)][_0x5a038f(0x2ff)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x5a038f(0x261)][_0x5a038f(0x1f5)](_0x432884);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1a6),()=>{const _0x34ddba=_0x5f12a6,_0x71c64d=this[_0x34ddba(0x261)][_0x34ddba(0x2ff)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x34ddba(0x261)][_0x34ddba(0x1f5)](_0x71c64d);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2e8),(_0x3f0c8a,_0x115fd3)=>{const _0x4aa261=_0x5f12a6;this[_0x4aa261(0x261)][_0x4aa261(0x2b8)](_0x115fd3,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x278),(_0x3fa27f,_0x3111cf)=>{const _0x1e40f8=_0x5f12a6;this[_0x1e40f8(0x261)][_0x1e40f8(0x2b8)](_0x3111cf,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x300),()=>{const _0x511e48=_0x5f12a6;this[_0x511e48(0x261)][_0x511e48(0x279)]();}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x25f),async()=>{const _0x4a0b15=_0x5f12a6;await this[_0x4a0b15(0x261)][_0x4a0b15(0x2f0)]();}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x27e),(_0x162e21,_0x19aa9e)=>{const _0x572636=_0x5f12a6;this[_0x572636(0x261)][_0x572636(0x1b2)](_0x19aa9e['id']);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1ec),(_0x1c84c3,_0x1031ee,_0xcec95d)=>{const _0x209a50=_0x5f12a6;this[_0x209a50(0x2d6)](_0x1031ee,_0xcec95d);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d2),(_0x3ea448,_0x113fdc)=>{const _0x304e90=_0x5f12a6;_0x304e90(0x20c)===_0x113fdc[_0x304e90(0x248)]?this[_0x304e90(0x261)][_0x304e90(0x2b5)](_0x113fdc):this[_0x304e90(0x261)][_0x304e90(0x302)](_0x113fdc);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x23b),async(_0x16a9e0,_0x263106)=>{const _0x22fe8d=_0x5f12a6;await this[_0x22fe8d(0x1d0)]({'reply':_0x263106});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x263),(_0x4d3a2d,{reply:_0x2a138c,index:_0x2aa296,state:_0x13e419})=>{const _0x37b562=_0x5f12a6;this[_0x37b562(0x261)][_0x37b562(0x1ef)]({'id':_0x2a138c['id'],'index':_0x2aa296,'state':_0x13e419}),this[_0x37b562(0x295)]?.[_0x37b562(0x188)][_0x37b562(0x251)](_0x2a138c['id'])&&this[_0x37b562(0x295)]?.[_0x37b562(0x2f4)]==_0x2aa296&&this[_0x37b562(0x2fb)]?.[_0x37b562(0x21c)](_0x13e419);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x305),(_0x30449e,_0x43775d)=>{const _0x5112ef=_0x5f12a6;if(this[_0x5112ef(0x261)][_0x5112ef(0x282)](_0x43775d[_0x5112ef(0x194)],_0x43775d[_0x5112ef(0x2a9)]),_0x5112ef(0x20f)===_0x43775d[_0x5112ef(0x194)][_0x5112ef(0x248)]){const _0x2fdd85=[..._0x11e5e4(this[_0x5112ef(0x200)])[_0x5112ef(0x1ce)][_0x5112ef(0x22d)][_0x5112ef(0x20f)][_0x5112ef(0x20a)]()];this[_0x5112ef(0x242)][_0x5112ef(0x1c6)](_0x2fdd85,_0x5112ef(0x2a6)+this[_0x5112ef(0x1fa)]?.['id']);}}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d9),(_0x1229c5,_0x4725e0)=>{const _0x4d33dd=_0x5f12a6;this[_0x4d33dd(0x261)][_0x4d33dd(0x286)](_0x4725e0[_0x4d33dd(0x202)]),_0x4d33dd(0x23d)==_0x4725e0[_0x4d33dd(0x202)]&&this[_0x4d33dd(0x25c)](),_0x4d33dd(0x20f)===_0x4725e0[_0x4d33dd(0x248)]&&this[_0x4d33dd(0x242)][_0x4d33dd(0x189)](_0x4d33dd(0x2a6)+this[_0x4d33dd(0x1fa)]?.['id']);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2c8),(_0x4d9f34,_0x1767d5)=>{const _0x2e30a8=_0x5f12a6;this[_0x2e30a8(0x261)][_0x2e30a8(0x211)](_0x1767d5[_0x2e30a8(0x194)][_0x2e30a8(0x202)],_0x1767d5[_0x2e30a8(0x2a9)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x29f),(_0x3d1f51,_0x510979)=>{const _0x33bdae=_0x5f12a6;this[_0x33bdae(0x261)][_0x33bdae(0x1a7)](_0x510979[_0x33bdae(0x2e2)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2eb),(_0x33f6f6,_0x2b3784)=>{const _0x1800f9=_0x5f12a6;this[_0x1800f9(0x261)][_0x1800f9(0x2e7)](_0x2b3784[_0x1800f9(0x27c)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2af),(_0x10c766,_0x2592bf)=>{const _0x26ae42=_0x5f12a6;this[_0x26ae42(0x261)][_0x26ae42(0x237)](_0x2592bf[_0x26ae42(0x1bf)],_0x2592bf[_0x26ae42(0x2b2)],_0x2592bf[_0x26ae42(0x18b)],_0x2592bf[_0x26ae42(0x213)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2d5),(_0xcea0db,_0x13bcdc)=>{const _0x3154e6=_0x5f12a6;this[_0x3154e6(0x261)][_0x3154e6(0x304)](_0x13bcdc[_0x3154e6(0x1bf)],_0x13bcdc[_0x3154e6(0x1ab)],_0x13bcdc[_0x3154e6(0x1e6)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1aa),(_0x655e6e,_0x1ad267)=>{const _0x1fa9e4=_0x5f12a6;this[_0x1fa9e4(0x261)][_0x1fa9e4(0x1fe)](_0x1ad267);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2a0),async(_0x473e4e,_0x19c028)=>{const _0x48363b=_0x5f12a6,_0xb87f14=(await this[_0x48363b(0x277)][_0x48363b(0x1b3)]())[_0x48363b(0x2d3)](_0x594565=>_0x594565['id']===_0x19c028[_0x48363b(0x239)]?.['id'])||null;this[_0x48363b(0x261)][_0x48363b(0x2d2)](_0xb87f14,_0x19c028[_0x48363b(0x235)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d1),(_0x278c15,{error:_0x1da92d,interactionId:_0x87539f,fileName:_0x4065a2,url:_0x17c622,sourceId:_0x2d1c56,sourceLabel:_0x405878})=>{const _0x19fc54=_0x5f12a6,_0x16a317=_0x87539f?_0x87539f+':'+_0x38ac82():_0x38ac82();_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x246))?this[_0x19fc54(0x261)][_0x19fc54(0x284)]({'staticMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1b6)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x258))||_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x226))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2d9)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x252))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1b8),_0x4065a2),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x292))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x190),_0x17c622),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x27b))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x288)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2db))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x214)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2b1))?(_0x2d1c56&&this[_0x19fc54(0x261)][_0x19fc54(0x192)](_0x2d1c56),this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x27d),_0x405878||_0x19fc54(0x2b2)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2e1))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1ed)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1fc))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2a5)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x19c))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2d7)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1dd))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x197)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1bd))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1ba)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2ca))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x28c)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x24e)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d));}),await this[_0x5f12a6(0x1fa)][_0x5f12a6(0x2f6)](this[_0x5f12a6(0x200)][_0x5f12a6(0x26e)][_0x5f12a6(0x2fa)](_0x5f12a6(0x209))),_0x3f009e||await this[_0x5f12a6(0x1fa)][_0x5f12a6(0x228)]();}async[_0x4f0be9(0x285)]({userMessage:_0x2cf90e,attributes:_0x50631e}){const _0x26e29f=_0x4f0be9;if(!this[_0x26e29f(0x1fa)])throw new _0x5e0114(_0x26e29f(0x245));if(this[_0x26e29f(0x1fa)][_0x26e29f(0x24d)]()){const _0x270b99=await this[_0x26e29f(0x242)][_0x26e29f(0x2ad)]();await this[_0x26e29f(0x1fa)][_0x26e29f(0x2f5)](_0x270b99);}this[_0x26e29f(0x1fa)]['id']&&this[_0x26e29f(0x1fa)][_0x26e29f(0x18a)]&&await this[_0x26e29f(0x1fa)][_0x26e29f(0x273)]({'userMessage':_0x2cf90e,'attributes':_0x50631e});}[_0x4f0be9(0x27a)](){const _0x3d3898=_0x4f0be9;console[_0x3d3898(0x307)](_0x3d3898(0x2bc));}[_0x4f0be9(0x1f3)](_0x450ccb){const _0x3f52f5=_0x4f0be9;this[_0x3f52f5(0x261)][_0x3f52f5(0x1d7)](_0x450ccb);}[_0x4f0be9(0x1e5)](_0x3c63ca){const _0x126b90=_0x4f0be9;_0x2a8800(_0x3c63ca[_0x126b90(0x1cc)]);}[_0x4f0be9(0x294)](_0x47be9b){const _0x1a16db=_0x4f0be9;this[_0x1a16db(0x1fa)]?.[_0x1a16db(0x221)](_0x47be9b);}[_0x4f0be9(0x207)](){const _0xb138cd=_0x4f0be9;this[_0xb138cd(0x1fa)]?.[_0xb138cd(0x1c1)]();}[_0x4f0be9(0x1b1)](){const _0x24f747=_0x4f0be9;this[_0x24f747(0x1fa)]?.[_0x24f747(0x1da)]();}[_0x4f0be9(0x259)](_0x45c4a6){const _0x38c12b=_0x4f0be9,[_0x15d91f,_0x40912c]=_0x45c4a6[_0x38c12b(0x267)](':'),_0x3e4c5c=this[_0x38c12b(0x1fa)][_0x38c12b(0x28d)](_0x15d91f),_0x3cc1e9=_0x3e4c5c[_0x38c12b(0x195)](_0x40912c);return{'interaction':_0x3e4c5c,'reply':_0x3cc1e9};}[_0x4f0be9(0x1e7)](_0x44a5f1,_0x1eea04=!0x1){const _0x5af378=_0x4f0be9,_0x4cccee=_0x11e5e4(this[_0x5af378(0x200)]),_0x3489b4={'target':_0x4cccee[_0x5af378(0x1b5)][_0x5af378(0x1c3)][_0x5af378(0x1f0)][_0x5af378(0x1e0)](_0x4cccee[_0x5af378(0x1b5)][_0x5af378(0x24f)][_0x5af378(0x29b)](_0x44a5f1)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1eea04};_0x1eea04&&(_0x3489b4[_0x5af378(0x1f4)]=!0x0),_0x17172b(_0x3489b4);}[_0x4f0be9(0x2d6)](_0x3ae5c0,_0x4700b0=!0x1){const _0x12bc94=_0x4f0be9;this[_0x12bc94(0x261)][_0x12bc94(0x1ec)](_0x3ae5c0||_0x2f5f52(this[_0x12bc94(0x200)][_0x12bc94(0x23e)],_0x12bc94(0x254)),_0x4700b0);}async[_0x4f0be9(0x1d0)]({reply:_0x43c559,renderingStrategy:_0x193f9b}){const _0x9c2640=_0x4f0be9,{id:_0xd306ce,interactionId:_0x5ccbb0,isDone:_0x1d8631,type:_0x579b59,parsedContent:_0x3e1f6a}=_0x43c559,_0x51e2e1=_0x5ccbb0+':'+_0xd306ce;if(_0x9c2640(0x2cf)===_0x579b59){const _0x4b87ab=_0x43c559[_0x9c2640(0x2ed)]({'showDiff':this[_0x9c2640(0x261)][_0x9c2640(0x2c1)]});await this[_0x9c2640(0x261)][_0x9c2640(0x24c)]({'id':_0x51e2e1,'parts':_0x4b87ab,'renderingStrategy':_0x193f9b,'isDone':_0x1d8631});}else _0x9c2640(0x20c)===_0x579b59&&await this[_0x9c2640(0x261)][_0x9c2640(0x1d4)]({'id':_0x51e2e1,'parsedContent':_0x3e1f6a,'renderingStrategy':_0x193f9b,'isDone':_0x1d8631});_0x1d8631&&_0x43c559[_0x9c2640(0x275)][_0x9c2640(0x276)]>0x0&&this[_0x9c2640(0x261)][_0x9c2640(0x250)](_0x51e2e1,_0x43c559[_0x9c2640(0x275)]);}async[_0x4f0be9(0x1ca)](){const _0x385dac=_0x4f0be9,_0x48ca48=this[_0x385dac(0x1fa)]?.[_0x385dac(0x22b)];_0x48ca48&&(_0x48ca48[_0x385dac(0x2f8)](),this[_0x385dac(0x261)][_0x385dac(0x1a2)](_0x48ca48));}async[_0x4f0be9(0x2b0)](){const _0x513977=_0x4f0be9,_0x27f873=this[_0x513977(0x1fa)]?.[_0x513977(0x22b)];if(_0x27f873){for await(const _0xc9823b of _0x27f873[_0x513977(0x1f2)])await this[_0x513977(0x1d0)]({'reply':_0xc9823b,'renderingStrategy':_0x513977(0x23f)});}}[_0x4f0be9(0x24a)](_0x291d10){const _0xe197df=_0x4f0be9,_0x503710={'positiveCount':_0x291d10[_0xe197df(0x308)][_0xe197df(0x19a)](_0x26685e=>_0xe197df(0x1dc)===_0x26685e[_0xe197df(0x2bd)])[_0xe197df(0x276)],'totalCount':_0x291d10[_0xe197df(0x308)][_0xe197df(0x276)],'modificationId':_0x291d10['id']},_0x27f851=this[_0xe197df(0x1fa)][_0xe197df(0x28d)](_0x291d10[_0xe197df(0x2ec)])[_0xe197df(0x2ce)];_0x27f851&&this[_0xe197df(0x21a)][_0xe197df(0x268)](this[_0xe197df(0x1fa)]['id'],_0x27f851,_0x503710);}[_0x4f0be9(0x2e4)](_0x10c9fe){const _0x25e647=_0x4f0be9;let _0x2be67e=null,_0x20f572=null;this['on'](_0x25e647(0x2d8),(_0x58004f,_0x34ce84,_0x32ffee)=>{const _0x501302=_0x25e647;_0x32ffee['id']!==_0x2be67e&&(_0x2be67e=_0x32ffee['id'],_0x20f572=this[_0x501302(0x230)](_0x32ffee)),_0x10c9fe(_0x34ce84,_0x20f572);});}[_0x4f0be9(0x230)](_0x498d75){const _0x20684f=_0x4f0be9,_0x2d8b1d=this[_0x20684f(0x261)],_0x431ded=()=>{const _0xa7138e=_0x20684f;_0x498d75[_0xa7138e(0x1c9)](),_0x498d75[_0xa7138e(0x1b7)](),_0x2d8b1d[_0xa7138e(0x1ff)]();},_0x692d74=()=>{const _0x2e0d29=_0x20684f;_0x498d75[_0x2e0d29(0x2a2)]&&(_0x498d75[_0x2e0d29(0x2a2)][_0x2e0d29(0x21e)](),_0x498d75[_0x2e0d29(0x2a2)]=void 0x0);};return{'insertTextReply':(_0x331a81,_0x2a40a2)=>{const _0x184093=_0x20684f;_0x692d74(),_0x431ded();const _0x1d7aed=_0x498d75[_0x184093(0x2a2)]=_0x498d75[_0x184093(0x1f6)]({'type':_0x184093(0x20c),'interactionId':_0x498d75['id'],'content':_0x331a81,'id':_0x2a40a2||_0x38ac82()});return _0x692d74(),_0x1d7aed;},'insertCustomElement':async(_0x5a6ef1,_0x2229ce)=>(_0x692d74(),_0x431ded(),_0x2d8b1d[_0x20684f(0x18c)](_0x5a6ef1,_0x2229ce||_0x38ac82())),'setLoadingMessage':_0x134154=>{const _0x1721bc=_0x20684f;_0x2d8b1d[_0x1721bc(0x1f5)](_0x134154);},'clearLoadingMessage':()=>{const _0x1f4ae2=_0x20684f;_0x2d8b1d[_0x1f4ae2(0x1ff)]();}};}}
|
|
23
|
+
function _0x28cf(_0x5d4009,_0x58c9bf){const _0x40ede9=_0x40ed();return _0x28cf=function(_0x28cf41,_0x43f1f5){_0x28cf41=_0x28cf41-0x10c;let _0x43078e=_0x40ede9[_0x28cf41];return _0x43078e;},_0x28cf(_0x5d4009,_0x58c9bf);}const _0x4aec30=_0x28cf;(function(_0x31c2b0,_0x51d30a){const _0x468a18=_0x28cf,_0x5335b8=_0x31c2b0();while(!![]){try{const _0x3d7f2d=parseInt(_0x468a18(0x121))/0x1+-parseInt(_0x468a18(0x1b9))/0x2*(parseInt(_0x468a18(0x250))/0x3)+-parseInt(_0x468a18(0x19d))/0x4*(-parseInt(_0x468a18(0x26e))/0x5)+-parseInt(_0x468a18(0x253))/0x6+parseInt(_0x468a18(0x11a))/0x7+parseInt(_0x468a18(0x1b2))/0x8*(-parseInt(_0x468a18(0x18d))/0x9)+parseInt(_0x468a18(0x20c))/0xa*(parseInt(_0x468a18(0x293))/0xb);if(_0x3d7f2d===_0x51d30a)break;else _0x5335b8['push'](_0x5335b8['shift']());}catch(_0x222c40){_0x5335b8['push'](_0x5335b8['shift']());}}}(_0x40ed,0xedba5));import{ContextPlugin as _0x5ebc1f,Editor as _0x18c442}from'ckeditor5/src/core.js';import{BodyCollection as _0x4f508d}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3f52cf,logError as _0x306496,scrollViewportToShowTarget as _0x59f77d,uid as _0x4720f6}from'ckeditor5/src/utils.js';import{AIConnector as _0x266934}from'../aicore/aiconnector.js';import{AITabs as _0x330bc8}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5a7bde}from'./model/aichatconversation.js';import{getTranslation as _0x21db9d}from'../aicore/utils/common-translations.js';import{AIModels as _0x479555}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x290b8e}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x344554,DATA_ID_MODEL_ATTRIBUTE as _0x2f75ed}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x41ef8f,getOperationsFromReply as _0xead07c}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x1ec15d,getMinimalSelection as _0x4101dd}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x561fcf,_DetachOperation as _0x45cacf}from'ckeditor5/src/engine.js';function _0x40ed(){const _0x5f5bf9=['AIEditing','Showing\x20conversation\x20history...','getInteraction','resize','_registerToolDataCallback','contextItemRemoved','addDocumentToContext','ai-chat-url-upload-failed','plugins','from','addFileToContext','AI_CHAT_INVALID_REQUEST','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','interactionFinished','createPositionAt','loadSourceResources','resourceId','ai.chat.context','populateSourceResourceBalloon','toViewRange','indexes','revert','_batchToChanges','baseVersion','setAddContextOptions','hasChanges','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','source','next','AI_CHAT_UNTITLED_CONVERSATION','insertSuggestion','_applyOperationsAsSuggestions','378909MIkMxl','ai-chat-controller-mouse-over','interactionDestroyed','abortPromptStream','init','setLoadingMessage','model','setFeedItemRenderingStrategy','clearLoadingMessage','sources','replyChangeGroupStateUpdated','context','isDocumentOperation','version','resource','isModelAvailable','96888ZNScur','updateCapabilities','contextSent','AI_CHAT_GENERIC_ERROR','_getAIChatInteractionAPI','rootName','ai-chat-invalid-request','_toggleReasoning','changeGroups','resetMessageInput','resizedTabs','ai-chat-missing-channel-id','contextItemAdded','_aiChatUi','ai.chat.initialConversation','DocumentCompare','_applySuggestion','ai-chat-conversation-not-found','activeConversation','addOperation','applyOperation','80hYhlVW','isCurrentDocumentInContext','root','ai-chat-conversation-start-failed','addCurrentDocumentToChatContext','updateContent','slice','328742xeBTjc','contextItem','mouseOverSuggestion','loadConversation','setChangeGroupState','dislike','_handleStartConversation','done','setConversationContext','currentReply','range','selectedModel','updateCurrentDocumentInContext','howMany','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','createdAt','_scrollToSuggestionRange','alignToTop','ai-chat-context-form-data-size-limits-exceeded','ai-request-aborted','clearPendingContextUI','type','previous','children','resizeTabs','isInContext','ai-chat-file-upload-failed','createRange','dialogClosed','addFilesToContext','getInteractionAndReplyById','addUrlToContext','_removeFromContext','log','updateConversationTitle','addResourceToContext','getChildren','areActionsDisabled','resourceStateChanged','options','fetchConversations','cloneNode','ai.models','pending','getChildAtOffset','ai-chat-controller-no-active-conversation','createPositionFromPath','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','upsertAIChatRating','contextItemLoadingEnded','showDiff','get','updateFeedItemAIReplySources','findIndex','AI_CHAT_ABORTED_MESSAGE','setConversationTitle','getChild','interactionId','sessionId','maxOffset','_createFromRanges','content','_getLastCreatedConversationId','interactionStarted','getTransformedByOperation','getRanges','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','map','setState','updateFeedItemAIReplyContent','unshift','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','_stopLastInteraction','document','_integrateEditor','removeContextItem','_aiEditing','lastCreated','split','indexOf','_logError','getSelectionText','focusPromptInput','9630oMGxZk','getConversation','state','removeSelectionFromContext','isOfficialPlugin','documentContextContent','mouseLeaveSuggestion','replyId','fetchConversation','_flushLastInteractionUI','includes','streaming','_aiChatBalloonShowDiff','ai.models.defaultModelId','AI_CHAT_UNABLE_TO_START_CONVERSATION','parse','addSelectionToChatContext','showNext','addFeedItemCustomElement','_handleUIUserMessage','webSearchFinished','ai-chat-resource-load-failed','resources','lastInteraction','outdated','_rejectSuggestion','messageId','toggleWebSearch','Liked\x20response','_getPresentableSiblingContentPartIndex','push','ai-no-track-changes','_updateRatings','isUploadInProgress','_currentPreviewedChangeGroup','delegate','sendUserMessage','addFeedItemStaticMessage','add','setSelectedModel','ai-chat-context-file-too-large','_setIsMaximized','open','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','length','AIConnector','editing','resetReasoningState','listenTo','AI_CHAT_CONTEXT_INVALID_DATA','Disliked\x20response','addFeedItemAIReply','webSearchStarted','static','editors','addSelectionToContext','getOperations','commands','getGroupId','conversationInitialized','interactionCreated','ai-chat-context-invalid-data','getDiff','undo','_bodyCollection','handleRemovedConversation','attachToDom','set','6ryLaDj','callback','afterInit','221598dFoieE','ready','addFeedInteractionHeader','_insertSuggestion','resetConversationTitle','ai-chat-context-file-too-many-pages','ai-chat-context-unsupported-type','isLoading','modification','addCurrentDocumentToContext','history','getDocumentContext','pluginName','selectModel','data-id','partIndex','addFeedItemUserMessage','_aiChatModels','start','collaboration.channelId','data','replies','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','sendMessage','uploadProgressChanged','getConversations','setModel','10KghLaf','modelSelected','_showConversationHistory','clearConversationContextUI','setFeedItemAIReplySuggestionPartActive','replyCreated','scrollFeedToSuggestion','error','node','domConverter','mapper','capabilitiesUpdated','createConversation','startAutoScroll','selection','stopInteraction','_openBalloonFor','removeFromContext','changes','showPrevious','toggleLoadingSkeleton','createReply','end','removed','isDisabled','updateResourceState','like','finishInteraction','getRoot','getContentParts','accepted','sourcePosition','destroy','config','_getDocumentRangeForReplyChanges','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','AI_CHAT_RESOURCE_LOAD_FAILED','902GzbYte','filter','text','toString','index','reasoningStarted','AI_BALLOON_HEADER_TITLE','executeCustomItemCallback','setIsMaximized','_updateReplyContent','TrackChanges','close','_aiChatBalloon','$graveyard','updateFeedItemAIReplySuggestionPartState','getAll','startsWith','getFirstRange','forEach','hideFakeVisualSelection','6165698fLrhIk','query','rejectSuggestion','has','startConversation','reasoningFinished','toggleSuggestionDisplayMode','752194TzBLvA','isPremiumPlugin','addContextItem','ai-chat-conversation-init-failed','aiChatBalloon','getReply','ai-chat-context-unsupported-file-type','nextSibling','addFeedItemError','sourceId','removeSelectionFromChatContext','batch','delete','removeFeedInteraction','change','setContextItemLoading','stop','anchorId','rejected','requires','uiId','toggleReasoning','disableControls','AI_CHAT_CONTEXT_FILE_TOO_LARGE','ai-conversation-','_getUserPresentableContentPartDocumentRange','detachFromDom','redo','isCurrentDocumentInConversation','isStarted','AIChatController','setIsUploadInProgress','new','toolDataReceived','view','enableControls','current-document','_toggleWebSearch','ai-chat-source-resources-load-failed','remove','message','getPath','closeSourceResourceBalloon','replyContentUpdated','locale','Undo','AIChatBalloon','activateTab','addContextOptionsChanged','AITabs','AIChatUI','showFakeVisualSelection','_startConversationSafely','showChangeInText','contextItems','_aiConnector','find','main','load','uid','getDocumentData','addFeedItemAISuggestion','updateFeedItemAIReplySuggestionContent','chat','TrackChangesEditing','applySuggestion','startInteraction','path','marker','viewRangeToDom','prepareLoadingMessage','sourceResourcesLoaded','bind','handleUserInteraction','getAttribute','resetWebSearchState'];_0x40ed=function(){return _0x5f5bf9;};return _0x40ed();}import{findOne as _0x484cdd,getAttribute as _0x4b6112,serialize as _0x33812c,Document as _0x54b8e7,findByAttribute as _0x5e9a27}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x5ebc1f{[_0x4aec30(0x205)];[_0x4aec30(0x158)];[_0x4aec30(0x1aa)];[_0x4aec30(0x264)];[_0x4aec30(0x112)];[_0x4aec30(0x183)]=new Map();[_0x4aec30(0x22e)]=null;[_0x4aec30(0x24c)];static get[_0x4aec30(0x134)](){return[_0x266934,_0x344554];}static get[_0x4aec30(0x25f)](){const _0x33d5e4=_0x4aec30;return _0x33d5e4(0x13f);}static get[_0x4aec30(0x210)](){return!0x0;}static get[_0x4aec30(0x122)](){return!0x0;}[_0x4aec30(0x191)](){const _0x505845=_0x4aec30;this[_0x505845(0x24c)]=new _0x4f508d(this[_0x505845(0x198)][_0x505845(0x14d)]),this[_0x505845(0x24c)][_0x505845(0x24e)](),this[_0x505845(0x158)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x239)),this[_0x505845(0x1aa)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x153)),this[_0x505845(0x205)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x16d)),this[_0x505845(0x264)]=new _0x479555({'connector':this[_0x505845(0x158)],'config':this[_0x505845(0x198)][_0x505845(0x28f)][_0x505845(0x1ec)](_0x505845(0x1e3)),'locale':this[_0x505845(0x198)][_0x505845(0x14d)]});const _0x528971=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x152));this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x11e),()=>{const _0xb0ad61=_0x505845;this[_0xb0ad61(0x155)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x230),(_0x42d155,_0x12e44e)=>{const _0x2f00bf=_0x505845;this[_0x2f00bf(0x21f)]({'userMessage':_0x12e44e});}),this[_0x505845(0x23c)](_0x528971,_0x505845(0x1a7),(_0x397958,_0x19e97e)=>{const _0x1924cd=_0x505845;this[_0x1924cd(0x235)](_0x19e97e);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1d1),()=>{const _0x517078=_0x505845;_0x528971[_0x517078(0x170)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x190),async()=>{const _0x26887f=_0x505845;await this[_0x26887f(0x201)](),await this[_0x26887f(0x215)](),this[_0x26887f(0x12b)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x173),()=>{const _0xd2495=_0x505845;this[_0xd2495(0x1b6)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x177),(_0x1ef4ca,_0x48731c)=>{const _0x1dda12=_0x505845;this[_0x1dda12(0x1af)]?.[_0x1dda12(0x1d6)](Array[_0x1dda12(0x176)](_0x48731c));}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1d8),(_0x2be030,_0xb23b9c)=>{const _0x42fab3=_0x505845;this[_0x42fab3(0x1af)]?.[_0x42fab3(0x1d8)](_0xb23b9c);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x10d),(_0x1bd8df,_0x3c4ece)=>{const _0x798827=_0x505845;_0x3c4ece[_0x798827(0x251)](this[_0x798827(0x198)]);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1dc),(_0x59eef6,_0x26706b)=>{const _0x240690=_0x505845;this[_0x240690(0x1af)]?.[_0x240690(0x1dc)](_0x26706b[_0x240690(0x188)],_0x26706b[_0x240690(0x19b)]);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x204),(_0x1d1490,_0x533b03)=>{const _0x47b253=_0x505845;this[_0x47b253(0x1d9)](_0x533b03);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x17c),(_0x482263,_0x55093a)=>{const _0x163ad6=_0x505845;this[_0x163ad6(0x1af)]?.[_0x163ad6(0x17c)](_0x55093a[_0x163ad6(0x12a)],_0x55093a[_0x163ad6(0x11b)],_0x55093a[_0x163ad6(0x15c)]);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x227),()=>{const _0x3abc00=_0x505845;this[_0x3abc00(0x146)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x136),()=>{const _0x2ca06b=_0x505845;this[_0x2ca06b(0x1a4)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x260),(_0x351d11,_0xfdfc7c)=>{const _0x2446d5=_0x505845;this[_0x2446d5(0x1af)]?.[_0x2446d5(0x26d)](_0xfdfc7c);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x288),(_0x16d432,{replyId:_0x179575})=>{const _0x98befa=_0x505845;console[_0x98befa(0x1da)](_0x98befa(0x228),_0x179575);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1be),(_0x3fbea7,{replyId:_0x4214c8})=>{const _0x410d89=_0x505845;console[_0x410d89(0x1da)](_0x410d89(0x23e),_0x4214c8);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x18b),(_0x5e0655,_0x2c56b3)=>{const _0xea5e68=_0x505845;this[_0xea5e68(0x256)](_0x2c56b3);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x156),(_0x5ef1ef,{replyId:_0x322909,partIndex:_0x18eb4c})=>{const _0x2d6cb1=_0x505845;this[_0x2d6cb1(0x218)]=this[_0x2d6cb1(0x1aa)][_0x2d6cb1(0x1eb)],this[_0x2d6cb1(0x27e)](_0x322909,_0x18eb4c);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1bb),(_0x329e6e,{replyId:_0x3383aa,partIndex:_0x3886ad})=>{const _0x4cb39a=_0x505845,_0xb532d=this[_0x4cb39a(0x290)](_0x3383aa,_0x3886ad);_0xb532d&&_0x4cb39a(0x113)!=_0xb532d[_0x4cb39a(0x1c3)][_0x4cb39a(0x1b4)][_0x4cb39a(0x1a2)]&&this[_0x4cb39a(0x205)][_0x4cb39a(0x154)]([_0xb532d[_0x4cb39a(0x1c3)]],_0x4cb39a(0x18e));}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x212),()=>{const _0x44d5dc=_0x505845;this[_0x44d5dc(0x205)][_0x44d5dc(0x119)](_0x44d5dc(0x18e));}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x162),(_0x461a5a,_0xfcf258)=>{const _0x1b03f5=_0x505845;this[_0x1b03f5(0x205)][_0x1b03f5(0x119)](_0x1b03f5(0x18e)),this[_0x1b03f5(0x1ad)](_0xfcf258);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x120),async(_0x33c973,{replyId:_0x41a4cb,showDiff:_0x398405})=>{const _0x5d5aa7=_0x505845,{reply:_0x35ead9}=this[_0x5d5aa7(0x1d7)](_0x41a4cb),_0x3b2e9a=_0x35ead9[_0x5d5aa7(0x28b)]({'showDiff':_0x398405});await this[_0x5d5aa7(0x1aa)][_0x5d5aa7(0x15f)]({'id':_0x35ead9['id'],'parts':_0x3b2e9a,'renderingStrategy':_0x5d5aa7(0x241)});}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x11c),(_0xd2b27a,{replyId:_0x172a6d,partIndex:_0xefdea9})=>{const _0x32daa7=_0x505845;this[_0x32daa7(0x225)]({'replyId':_0x172a6d,'partIndex':_0xefdea9}),this[_0x32daa7(0x205)][_0x32daa7(0x119)](_0x32daa7(0x18e));}),this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x11d)](_0x505845(0x14f))&&(this[_0x505845(0x112)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x14f)),this[_0x505845(0x24f)](_0x505845(0x218),!0x1),this[_0x505845(0x112)][_0x505845(0x169)](_0x505845(0x1eb))['to'](this,_0x505845(0x218)),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x120),()=>{const _0x496d60=_0x505845,{replyId:_0x4a1a2f,partIndex:_0x1b77ef}=this[_0x496d60(0x22e)];this[_0x496d60(0x218)]=!this[_0x496d60(0x218)];const {reply:_0x36d7df}=this[_0x496d60(0x1d7)](_0x4a1a2f),_0x508b1b=_0x36d7df[_0x496d60(0x28b)]({'showDiff':this[_0x496d60(0x218)],'groupIndex':_0x1b77ef});this[_0x496d60(0x112)][_0x496d60(0x1b7)]({'part':_0x508b1b[0x0],'renderingStrategy':_0x496d60(0x241),'keepErrors':!0x0});}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x162),()=>{const _0x33b31b=_0x505845,{replyId:_0x34f72d,partIndex:_0x50d780}=this[_0x33b31b(0x22e)];this[_0x33b31b(0x1ad)]({'replyId':_0x34f72d,'partIndex':_0x50d780}),this[_0x33b31b(0x112)][_0x33b31b(0x1fd)](_0x33b31b(0x28c));}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x18b),()=>{const _0x7920f3=_0x505845,{replyId:_0x215e98,partIndex:_0x373ded}=this[_0x7920f3(0x22e)];this[_0x7920f3(0x256)]({'replyId':_0x215e98,'partIndex':_0x373ded}),this[_0x7920f3(0x112)][_0x7920f3(0x1fd)](_0x7920f3(0x28c));}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x11c),()=>{const _0x47f7ca=_0x505845,{replyId:_0x2bd3b6,partIndex:_0x101972}=this[_0x47f7ca(0x22e)];this[_0x47f7ca(0x225)]({'replyId':_0x2bd3b6,'partIndex':_0x101972}),this[_0x47f7ca(0x112)][_0x47f7ca(0x1fd)](_0x47f7ca(0x133));}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x21d),()=>{const _0x12b63a=_0x505845,{replyId:_0x57572e,partIndex:_0x5f2ba0}=this[_0x12b63a(0x22e)],_0xa062fa=this[_0x12b63a(0x229)](_0x57572e,_0x5f2ba0,_0x12b63a(0x189));null!==_0xa062fa&&this[_0x12b63a(0x27e)](_0x57572e,_0xa062fa);}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x281),()=>{const _0x370941=_0x505845,{replyId:_0x73ea2d,partIndex:_0x1d1aaa}=this[_0x370941(0x22e)],_0x48a787=this[_0x370941(0x229)](_0x73ea2d,_0x1d1aaa,_0x370941(0x1cf));null!==_0x48a787&&this[_0x370941(0x27e)](_0x73ea2d,_0x48a787);}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x1d5),(_0x560187,{id:_0x164286})=>{const _0x5d2341=_0x505845;if(_0x5d2341(0x125)!==_0x164286)return;const {replyId:_0xde2d5c,partIndex:_0x21b21e}=this[_0x5d2341(0x22e)];this[_0x5d2341(0x22e)]=null,this[_0x5d2341(0x1aa)][_0x5d2341(0x272)]({'id':_0xde2d5c,'index':_0x21b21e,'isActive':!0x1});}));}async[_0x4aec30(0x252)](){const _0xe018e5=_0x4aec30;this[_0xe018e5(0x198)]instanceof _0x18c442?this[_0xe018e5(0x203)](this[_0xe018e5(0x198)]):this[_0xe018e5(0x23c)](this[_0xe018e5(0x198)][_0xe018e5(0x242)],_0xe018e5(0x232),(_0x27ee83,_0x348939)=>{const _0x59eccc=_0xe018e5;_0x348939['on'](_0x59eccc(0x254),()=>{const _0x4941ac=_0x59eccc;this[_0x4941ac(0x203)](_0x348939);});});const _0xf55a4c=this[_0xe018e5(0x198)][_0xe018e5(0x28f)][_0xe018e5(0x1ec)](_0xe018e5(0x1ab));let _0x547026=_0xf55a4c;if(_0xe018e5(0x206)!=_0xf55a4c||(_0x547026=await this[_0xe018e5(0x1f7)](),_0x547026))return _0xe018e5(0x141)==_0x547026?this[_0xe018e5(0x155)]():this[_0xe018e5(0x1bc)](_0x547026);}async[_0x4aec30(0x28e)](){const _0x412752=_0x4aec30;return await this[_0x412752(0x201)](),this[_0x412752(0x24c)][_0x412752(0x13b)](),super[_0x412752(0x28e)]();}[_0x4aec30(0x256)](_0x347bf6){const _0x50f406=_0x4aec30,_0x36efde=_0x290b8e(this[_0x50f406(0x198)]);if(!_0x36efde[_0x50f406(0x175)][_0x50f406(0x11d)](_0x50f406(0x110)))throw new _0x3f52cf(_0x50f406(0x22b),null);const _0x42839d=this[_0x50f406(0x198)][_0x50f406(0x175)][_0x50f406(0x1ec)](_0x50f406(0x1ac)),{reply:_0x13d39e,interaction:_0x2710f4}=this[_0x50f406(0x1d7)](_0x347bf6[_0x50f406(0x213)]),_0x4c6c3c=this[_0x50f406(0x290)](_0x347bf6[_0x50f406(0x213)],_0x347bf6[_0x50f406(0x262)]),_0x8d97a3=void 0x0!==_0x347bf6[_0x50f406(0x262)]?[_0x13d39e[_0x50f406(0x1a5)][_0x347bf6[_0x50f406(0x262)]]]:_0x13d39e[_0x50f406(0x1a5)][_0x50f406(0x294)](_0x1a3435=>_0x50f406(0x1e4)==_0x1a3435[_0x50f406(0x20e)]),_0x4b43be=_0x8d97a3[_0x50f406(0x1fc)](_0x4ba633=>_0x13d39e[_0x50f406(0x1a5)][_0x50f406(0x208)](_0x4ba633));if(!_0x4c6c3c||_0x50f406(0x113)==_0x4c6c3c[_0x50f406(0x1c3)][_0x50f406(0x1b4)][_0x50f406(0x1a2)])return void _0x4b43be[_0x50f406(0x118)](_0x473c1b=>_0x13d39e[_0x50f406(0x1bd)](_0x473c1b,_0x50f406(0x224)));_0x4b43be[_0x50f406(0x118)](_0x34e7c9=>_0x13d39e[_0x50f406(0x1bd)](_0x34e7c9,_0x50f406(0x28c)));const _0x4f7c71=_0xead07c({'editor':_0x36efde,'reply':_0x13d39e,'interaction':_0x2710f4,'groups':_0x8d97a3,'transform':!0x0,'documentCompare':_0x42839d,'documentCompareOptions':{'anchor':_0x50f406(0x15a),'markDeletions':!0x0}});let _0x2119b3;_0x4c6c3c&&this[_0x50f406(0x1c9)](_0x4c6c3c[_0x50f406(0x1c3)]),_0x36efde[_0x50f406(0x193)][_0x50f406(0x12f)](_0x1c1266=>{const _0x119544=_0x50f406;_0x2119b3=_0x1c1266[_0x119544(0x12c)],_0x36efde[_0x119544(0x175)][_0x119544(0x1ec)](_0x119544(0x161))[_0x119544(0x18c)](_0x4f7c71),this[_0x119544(0x205)][_0x119544(0x119)](_0x119544(0x18e));}),this[_0x50f406(0x183)][_0x50f406(0x24f)](_0x2119b3,{'interactionId':_0x2710f4['id'],'replyId':_0x13d39e['id'],'indexes':_0x4b43be[_0x50f406(0x1b8)]()}),this[_0x50f406(0x22c)](_0x13d39e);}[_0x4aec30(0x1ad)](_0x236201){const _0x10dbc6=_0x4aec30,_0x26284c=_0x290b8e(this[_0x10dbc6(0x198)]),_0x4d0b55=this[_0x10dbc6(0x198)][_0x10dbc6(0x175)][_0x10dbc6(0x1ec)](_0x344554),{reply:_0x2ed069,interaction:_0x1213a5}=this[_0x10dbc6(0x1d7)](_0x236201[_0x10dbc6(0x213)]),_0x5a7cb1=this[_0x10dbc6(0x290)](_0x236201[_0x10dbc6(0x213)],_0x236201[_0x10dbc6(0x262)]),_0x5ed088=void 0x0!==_0x236201[_0x10dbc6(0x262)]?[_0x2ed069[_0x10dbc6(0x1a5)][_0x236201[_0x10dbc6(0x262)]]]:_0x2ed069[_0x10dbc6(0x1a5)][_0x10dbc6(0x294)](_0x5c943f=>_0x10dbc6(0x1e4)==_0x5c943f[_0x10dbc6(0x20e)]),_0x3b76d7=_0x5ed088[_0x10dbc6(0x1fc)](_0x67aba2=>_0x2ed069[_0x10dbc6(0x1a5)][_0x10dbc6(0x208)](_0x67aba2));if(!_0x5a7cb1||_0x10dbc6(0x113)==_0x5a7cb1[_0x10dbc6(0x1c3)][_0x10dbc6(0x1b4)][_0x10dbc6(0x1a2)])return void _0x3b76d7[_0x10dbc6(0x118)](_0x598469=>_0x2ed069[_0x10dbc6(0x1bd)](_0x598469,_0x10dbc6(0x224)));_0x3b76d7[_0x10dbc6(0x118)](_0x1311cb=>_0x2ed069[_0x10dbc6(0x1bd)](_0x1311cb,_0x10dbc6(0x28c)));const _0x42afa8=_0xead07c({'editor':_0x26284c,'reply':_0x2ed069,'interaction':_0x1213a5,'groups':_0x5ed088,'transform':!0x0,'documentCompare':_0x4d0b55,'documentCompareOptions':{'anchor':_0x10dbc6(0x15a),'markDeletions':!0x1}});let _0x14b374;_0x5a7cb1&&this[_0x10dbc6(0x1c9)](_0x5a7cb1[_0x10dbc6(0x1c3)]),_0x26284c[_0x10dbc6(0x193)][_0x10dbc6(0x12f)](_0x54073b=>{const _0x20291c=_0x10dbc6;_0x14b374=_0x54073b[_0x20291c(0x12c)];for(const _0x1d35fa of _0x42afa8)_0x1d35fa[_0x20291c(0x184)]=_0x26284c[_0x20291c(0x193)][_0x20291c(0x202)][_0x20291c(0x19a)],_0x41ef8f(_0x26284c,_0x1d35fa),_0x54073b[_0x20291c(0x12c)][_0x20291c(0x1b0)](_0x1d35fa),_0x26284c[_0x20291c(0x193)][_0x20291c(0x1b1)](_0x1d35fa);}),this[_0x10dbc6(0x183)][_0x10dbc6(0x24f)](_0x14b374,{'interactionId':_0x1213a5['id'],'replyId':_0x2ed069['id'],'indexes':_0x3b76d7[_0x10dbc6(0x1b8)]()}),this[_0x10dbc6(0x22c)](_0x2ed069);}[_0x4aec30(0x225)](_0x5dad3b){const _0x2f393a=_0x4aec30,{reply:_0x4f3bc4}=this[_0x2f393a(0x1d7)](_0x5dad3b[_0x2f393a(0x213)]);_0x4f3bc4[_0x2f393a(0x1bd)](_0x5dad3b[_0x2f393a(0x262)],_0x2f393a(0x133));}[_0x4aec30(0x27e)](_0x522719,_0x5f3f29){const _0x31c128=_0x4aec30;if(!this[_0x31c128(0x112)])return;const {reply:_0x366fd9}=this[_0x31c128(0x1d7)](_0x522719),_0x5482fa=_0x366fd9[_0x31c128(0x28b)]({'showDiff':this[_0x31c128(0x218)]});let _0x45263e,_0x13cef4;if(void 0x0!==_0x5f3f29?(_0x13cef4=_0x5482fa[_0x31c128(0x159)](_0x215322=>_0x215322[_0x31c128(0x297)]==_0x5f3f29),_0x45263e=_0x13cef4?.[_0x31c128(0x297)]):(_0x13cef4=_0x5482fa[0x0],_0x45263e=_0x13cef4[_0x31c128(0x297)]),this[_0x31c128(0x22e)]?.[_0x31c128(0x213)]==_0x522719&&this[_0x31c128(0x22e)]?.[_0x31c128(0x262)]==_0x45263e)return;const _0x5c835a=this[_0x31c128(0x13a)](_0x522719,_0x366fd9,_0x13cef4);if(!_0x5c835a)return void this[_0x31c128(0x112)][_0x31c128(0x111)]();this[_0x31c128(0x22e)]={'replyId':_0x522719,'partIndex':_0x45263e},this[_0x31c128(0x1c9)](_0x5c835a,!0x0);const _0x18a9d0=this[_0x31c128(0x229)](_0x522719,_0x45263e,_0x31c128(0x189));this[_0x31c128(0x112)][_0x31c128(0x1b7)]({'part':_0x13cef4,'renderingStrategy':_0x31c128(0x241)}),this[_0x31c128(0x112)][_0x31c128(0x236)]({'index':_0x45263e,'title':_0x21db9d(this[_0x31c128(0x198)][_0x31c128(0x14d)],_0x31c128(0x10c),(_0x45263e+0x1)[_0x31c128(0x296)]()),'showRotator':null!==_0x18a9d0,'ranges':[_0x5c835a],'areActionsDisabled':_0x366fd9[_0x31c128(0x1de)]}),this[_0x31c128(0x112)][_0x31c128(0x1fd)](_0x31c128(0x1e4)),this[_0x31c128(0x1aa)][_0x31c128(0x274)](_0x522719,_0x45263e),this[_0x31c128(0x1aa)][_0x31c128(0x272)]({'id':_0x522719,'index':_0x45263e,'isActive':!0x0});}[_0x4aec30(0x229)](_0x5abd00,_0x3181ee,_0x288883){const _0x361b09=_0x4aec30,{reply:_0x18fbff}=this[_0x361b09(0x1d7)](_0x5abd00),_0x1c6160=_0x18fbff[_0x361b09(0x28b)]({'showDiff':this[_0x361b09(0x218)]});if(0x1==_0x1c6160[_0x361b09(0x238)])return null;const _0x2b5bb8=_0x1c6160[_0x361b09(0x1ee)](_0x5acae0=>_0x5acae0[_0x361b09(0x297)]==_0x3181ee),_0x30e979=_0x361b09(0x189)==_0x288883?0x1:-0x1;let _0x534958=_0x1c6160['at']((_0x2b5bb8+_0x30e979)%_0x1c6160[_0x361b09(0x238)])[_0x361b09(0x297)],_0xa44b4e=_0x1c6160[_0x534958];for(;!this[_0x361b09(0x13a)](_0x5abd00,_0x18fbff,_0xa44b4e);){if(_0x534958=_0x1c6160['at']((_0x534958+_0x30e979)%_0x1c6160[_0x361b09(0x238)])[_0x361b09(0x297)],_0x534958===_0x2b5bb8)return null;_0xa44b4e=_0x1c6160[_0x534958];}return _0x534958;}[_0x4aec30(0x13a)](_0x534aa2,_0x14e6f4,_0x5551ed){const _0x5df857=_0x4aec30,_0x36dc3c=_0x14e6f4[_0x5df857(0x1a5)];if(!_0x5551ed[_0x5df857(0x186)])return null;const _0x1539fc=_0x36dc3c[_0x5df857(0x159)](_0x5588b6=>_0x5588b6[_0x5df857(0x297)]==_0x5551ed[_0x5df857(0x297)]);if(_0x5df857(0x1e4)!==_0x1539fc?.[_0x5df857(0x20e)])return null;const _0x5c979e=this[_0x5df857(0x290)](_0x534aa2,_0x5551ed[_0x5df857(0x297)]);if(!_0x5c979e)return null;const {range:_0x162336,currentIndex:_0x56d0af}=_0x5c979e;return _0x5df857(0x113)==_0x162336[_0x5df857(0x1b4)][_0x5df857(0x1a2)]?(_0x14e6f4[_0x5df857(0x1bd)](_0x56d0af,_0x5df857(0x224)),null):_0x5c979e[_0x5df857(0x1c3)];}[_0x4aec30(0x290)](_0xde782d,_0x776a94){const _0x23a962=_0x4aec30,_0x960e8f=_0x290b8e(this[_0x23a962(0x198)]),{reply:_0x53ad5e,interaction:_0x22c955}=this[_0x23a962(0x1d7)](_0xde782d),_0x4eff3a=_0x53ad5e[_0x23a962(0x1a5)][_0x23a962(0x294)](_0x3fa992=>_0x23a962(0x1e4)==_0x3fa992[_0x23a962(0x20e)]),_0x569e12=_0x4eff3a[_0x23a962(0x1fc)](_0x1a115e=>_0x53ad5e[_0x23a962(0x1a5)][_0x23a962(0x208)](_0x1a115e));void 0x0===_0x776a94&&(_0x776a94=_0x569e12[0x0]);const _0x3e1185=_0x569e12[_0x23a962(0x208)](_0x776a94);if(-0x1==_0x3e1185)return null;const _0x3325e3=_0x4eff3a[_0x3e1185],_0x27bb3d=new _0x54b8e7([]),_0x35496c=new _0x54b8e7([]);for(const _0x27d5e8 of _0x3325e3[_0x23a962(0x280)])if(_0x23a962(0x285)!=_0x27d5e8[_0x23a962(0x1ce)]&&_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x27d5e8[_0x23a962(0x276)][_0x23a962(0x1e2)](!0x0)),_0x23a962(0x141)!=_0x27d5e8[_0x23a962(0x1ce)]){const _0x24a2ad=_0x484cdd(_0x254657=>_0x4b6112(_0x254657,_0x23a962(0x261))==_0x27d5e8['id'],_0x53ad5e[_0x23a962(0x211)],!0x0);_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x24a2ad[_0x23a962(0x1e2)](!0x0));}if(0x0==_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x238)]){if(_0x3325e3[_0x23a962(0x280)][0x0][_0x23a962(0x132)]){const _0x2652d7=_0x5e9a27(_0x23a962(0x261),_0x3325e3[_0x23a962(0x280)][0x0][_0x23a962(0x132)],_0x53ad5e[_0x23a962(0x211)]);_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x1ff)](_0x2652d7[_0x23a962(0x1e2)](!0x0)),_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x1ff)](_0x2652d7[_0x23a962(0x1e2)](!0x0)),_0x2652d7[_0x23a962(0x128)]&&(_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x2652d7[_0x23a962(0x128)][_0x23a962(0x1e2)](!0x0)),_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x2652d7[_0x23a962(0x128)][_0x23a962(0x1e2)](!0x0)));}else{const _0x44041e=_0x53ad5e[_0x23a962(0x211)][_0x23a962(0x1d0)][0x0];if(!_0x44041e)return null;_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x44041e[_0x23a962(0x1e2)](!0x0)),_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x44041e[_0x23a962(0x1e2)](!0x0));}}const _0x3b9fe1=_0x22c955[_0x23a962(0x25e)](),_0x2082ef=_0x960e8f[_0x23a962(0x267)][_0x23a962(0x21b)](_0x3b9fe1[_0x23a962(0x1f6)]),_0x23b673=_0x33812c(_0x27bb3d),_0x1d0c5f=_0x960e8f[_0x23a962(0x267)][_0x23a962(0x21b)](_0x23b673),_0x29c3e3=_0x960e8f[_0x23a962(0x267)][_0x23a962(0x21b)](_0x23b673),_0x58cfb0=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x17b)](_0x1d0c5f,0x0),_0x39e0cc=_0x33812c(_0x35496c),_0x2a2d1a={'anchor':_0x58cfb0,'markDeletions':!0x1},_0x12b090=_0x960e8f[_0x23a962(0x175)][_0x23a962(0x1ec)](_0x344554)[_0x23a962(0x24a)](_0x23b673,_0x39e0cc,_0x2a2d1a)[_0x23a962(0x244)]();if(!_0x12b090[_0x23a962(0x238)])return null;_0x960e8f[_0x23a962(0x193)][_0x23a962(0x12f)](_0x3db23d=>{const _0x2b1add=_0x23a962;for(const _0x23ac29 of _0x12b090)if(_0x2b1add(0x148)==_0x23ac29[_0x2b1add(0x1ce)]){const _0x38f4d7=_0x23ac29[_0x2b1add(0x28d)],_0x3b8711=_0x23ac29[_0x2b1add(0x1c6)],_0x552ad5=new _0x45cacf(_0x38f4d7,_0x3b8711);_0x3db23d[_0x2b1add(0x12c)][_0x2b1add(0x1b0)](_0x552ad5),_0x960e8f[_0x2b1add(0x193)][_0x2b1add(0x1b1)](_0x552ad5);}else _0x2b1add(0x165)!==_0x23ac29[_0x2b1add(0x1ce)]&&(_0x23ac29[_0x2b1add(0x184)]=null,_0x23ac29[_0x2b1add(0x199)]=!0x1,_0x3db23d[_0x2b1add(0x12c)][_0x2b1add(0x1b0)](_0x23ac29),_0x960e8f[_0x2b1add(0x193)][_0x2b1add(0x1b1)](_0x23ac29));});const _0x42b7b5=_0x4101dd(_0x960e8f,_0x12b090,_0x1d0c5f);_0x1ec15d(_0x960e8f[_0x23a962(0x193)],_0x42b7b5);const _0x3a9742=_0x42b7b5[_0x23a962(0x117)]()[_0x23a962(0x265)][_0x23a962(0x164)][_0x23a962(0x1b8)](),_0x90fbf0=_0x42b7b5[_0x23a962(0x117)]()[_0x23a962(0x284)][_0x23a962(0x164)][_0x23a962(0x1b8)](),_0x2fbc77=[];let _0x4c70da=_0x1d0c5f,_0x1d45da=_0x29c3e3;for(let _0x3b6761=0x0;_0x3b6761<_0x90fbf0[_0x23a962(0x238)];_0x3b6761++){const _0x186acb=_0x4c70da[_0x23a962(0x1f4)]-_0x90fbf0[_0x3b6761];_0x2fbc77[_0x3b6761]=_0x1d45da[_0x23a962(0x1f4)]-_0x186acb,_0x4c70da=_0x4c70da[_0x23a962(0x1e5)](_0x90fbf0[_0x3b6761]),_0x1d45da=_0x1d45da[_0x23a962(0x1e5)](_0x2fbc77[_0x3b6761]);}const _0x110a43=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1d4)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x29c3e3,_0x3a9742),_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x29c3e3,_0x2fbc77)),_0x4b3a7e=_0x29c3e3[_0x23a962(0x1f1)](0x0)[_0x23a962(0x16b)](_0x2f75ed),_0x1b5296=Array[_0x23a962(0x176)](_0x2082ef[_0x23a962(0x1dd)]())[_0x23a962(0x159)](_0x8d4cdd=>_0x8d4cdd[_0x23a962(0x16b)](_0x2f75ed)==_0x4b3a7e)[_0x23a962(0x14a)](),_0x1f3ccf=_0x110a43[_0x23a962(0x265)][_0x23a962(0x164)][_0x23a962(0x1b8)](),_0x329ce7=_0x110a43[_0x23a962(0x284)][_0x23a962(0x164)][_0x23a962(0x1b8)]();_0x1f3ccf[0x0]=_0x1b5296[0x0]+_0x1f3ccf[0x0],_0x329ce7[0x0]=_0x1b5296[0x0]+_0x329ce7[0x0];let _0x57a0d2=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1d4)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x202)][_0x23a962(0x28a)](),_0x1f3ccf),_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x202)][_0x23a962(0x28a)](),_0x329ce7));const _0x52ceef=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x202)][_0x23a962(0x25d)][_0x23a962(0x244)](_0x3b9fe1[_0x23a962(0x19a)]);for(const _0xb7f6e0 of _0x52ceef)_0x57a0d2=_0x561fcf[_0x23a962(0x1f5)](_0x57a0d2[_0x23a962(0x1f9)](_0xb7f6e0));return{'range':_0x57a0d2,'currentIndex':_0x776a94};}[_0x4aec30(0x203)](_0x16df4e){const _0x340dfe=_0x4aec30;if(!_0x16df4e[_0x340dfe(0x175)][_0x340dfe(0x11d)](_0x340dfe(0x14e)))return;const _0x56b299=_0x16df4e[_0x340dfe(0x245)][_0x340dfe(0x1ec)](_0x340dfe(0x24b)),_0x1c6563=_0x16df4e[_0x340dfe(0x245)][_0x340dfe(0x1ec)](_0x340dfe(0x13c));this[_0x340dfe(0x23c)](_0x56b299,_0x340dfe(0x182),(_0x5a5381,_0x5e137c,_0x50a974)=>{const _0x13e6c5=_0x340dfe,_0xdcb7df=this[_0x13e6c5(0x183)][_0x13e6c5(0x1ec)](_0x5e137c);if(!_0xdcb7df)return;const _0x21910b=this[_0x13e6c5(0x1af)][_0x13e6c5(0x16f)](_0xdcb7df[_0x13e6c5(0x1f2)])[_0x13e6c5(0x126)](_0xdcb7df[_0x13e6c5(0x213)]);_0xdcb7df[_0x13e6c5(0x181)][_0x13e6c5(0x118)](_0x1607a6=>_0x21910b[_0x13e6c5(0x1bd)](_0x1607a6,_0x13e6c5(0x1e4))),this[_0x13e6c5(0x183)][_0x13e6c5(0x12d)](_0x5e137c),this[_0x13e6c5(0x183)][_0x13e6c5(0x24f)](_0x50a974,_0xdcb7df);}),this[_0x340dfe(0x23c)](_0x1c6563,_0x340dfe(0x182),(_0xb0e19c,_0x59fd0c,_0x3f9f8d)=>{const _0x26cdd2=_0x340dfe,_0x10dfea=this[_0x26cdd2(0x183)][_0x26cdd2(0x1ec)](_0x59fd0c);if(!_0x10dfea)return;const _0x3ba4e7=this[_0x26cdd2(0x1af)][_0x26cdd2(0x16f)](_0x10dfea[_0x26cdd2(0x1f2)])[_0x26cdd2(0x126)](_0x10dfea[_0x26cdd2(0x213)]);_0x10dfea[_0x26cdd2(0x181)][_0x26cdd2(0x118)](_0x1b2efa=>_0x3ba4e7[_0x26cdd2(0x1bd)](_0x1b2efa,_0x26cdd2(0x28c))),this[_0x26cdd2(0x183)][_0x26cdd2(0x12d)](_0x59fd0c),this[_0x26cdd2(0x183)][_0x26cdd2(0x24f)](_0x3f9f8d,_0x10dfea);});}async[_0x4aec30(0x1bc)](_0x509809){const _0x46d259=_0x4aec30;this[_0x46d259(0x198)][_0x46d259(0x175)][_0x46d259(0x11d)](_0x46d259(0x14f))&&this[_0x46d259(0x198)][_0x46d259(0x175)][_0x46d259(0x1ec)](_0x46d259(0x14f))[_0x46d259(0x111)](),(this[_0x46d259(0x198)][_0x46d259(0x175)][_0x46d259(0x1ec)](_0x330bc8)[_0x46d259(0x143)][_0x46d259(0x150)](_0x46d259(0x160)),this[_0x46d259(0x1aa)][_0x46d259(0x194)](_0x46d259(0x241)),this[_0x46d259(0x1aa)][_0x46d259(0x282)](!0x0),await this[_0x46d259(0x201)]());try{await this[_0x46d259(0x158)][_0x46d259(0x214)](_0x509809)[_0x46d259(0x20d)](),await this[_0x46d259(0x155)](_0x509809),this[_0x46d259(0x1db)]('\x20'),await this[_0x46d259(0x1af)][_0x46d259(0x15b)](_0x509809,this[_0x46d259(0x205)][_0x46d259(0x1f3)]),this[_0x46d259(0x1af)][_0x46d259(0x13d)]()&&this[_0x46d259(0x1b6)]();}catch(_0x33b1f4){this[_0x46d259(0x1aa)][_0x46d259(0x129)]({'errorMessage':_0x21db9d(this[_0x46d259(0x198)][_0x46d259(0x14d)],_0x46d259(0x200)),'id':_0x509809}),this[_0x46d259(0x209)](new _0x3f52cf(_0x46d259(0x1ae),this,{'error':_0x33b1f4}));}finally{this[_0x46d259(0x1aa)][_0x46d259(0x27b)](),this[_0x46d259(0x1aa)][_0x46d259(0x194)](_0x46d259(0x217)),this[_0x46d259(0x1aa)][_0x46d259(0x282)](!0x1);}}async[_0x4aec30(0x1f7)](){const _0x35cdf0=_0x4aec30,_0x523eab=this[_0x35cdf0(0x158)][_0x35cdf0(0x1e1)](this[_0x35cdf0(0x246)](),{'limit':0x1,'sortBy':_0x35cdf0(0x1c8)});try{const _0x87a577=await _0x523eab[_0x35cdf0(0x26c)]();return _0x87a577[_0x35cdf0(0x238)]?_0x87a577[0x0]['id']:_0x35cdf0(0x141);}catch(_0x5a31ed){return this[_0x35cdf0(0x1aa)][_0x35cdf0(0x129)]({'errorMessage':_0x21db9d(this[_0x35cdf0(0x198)][_0x35cdf0(0x14d)],_0x35cdf0(0x200)),'id':_0x4720f6()}),this[_0x35cdf0(0x209)](new _0x3f52cf(_0x35cdf0(0x124),this,{'error':_0x5a31ed})),this[_0x35cdf0(0x1aa)][_0x35cdf0(0x282)](!0x1),this[_0x35cdf0(0x1aa)][_0x35cdf0(0x137)](),null;}}[_0x4aec30(0x24d)](_0x115608){const _0x1c142b=_0x4aec30;this[_0x1c142b(0x1af)]['id']===_0x115608&&this[_0x1c142b(0x155)]();}[_0x4aec30(0x1b6)](){const _0x541927=_0x4aec30;this[_0x541927(0x1af)]?.[_0x541927(0x25c)](_0x21db9d(this[_0x541927(0x198)][_0x541927(0x14d)],_0x541927(0x1c7)));}async[_0x4aec30(0x21c)](){const _0x6a5a53=_0x4aec30,_0x243208=this[_0x6a5a53(0x205)][_0x6a5a53(0x20a)]();this[_0x6a5a53(0x1af)]?.[_0x6a5a53(0x243)](_0x243208),this[_0x6a5a53(0x1b6)]();}[_0x4aec30(0x12b)](){const _0x269901=_0x4aec30;this[_0x269901(0x1af)]?.[_0x269901(0x20f)]();}[_0x4aec30(0x20b)](){const _0x3ea81e=_0x4aec30;this[_0x3ea81e(0x1aa)][_0x3ea81e(0x20b)]();}async[_0x4aec30(0x11e)](){const _0x5ec010=_0x4aec30;await this[_0x5ec010(0x155)]();}async[_0x4aec30(0x26a)]({message:_0x3b0807,attributes:_0xdc0d36}){const _0x1bf6cf=_0x4aec30;await this[_0x1bf6cf(0x21f)]({'userMessage':_0x3b0807,'attributes':_0xdc0d36});}[_0x4aec30(0x246)](){const _0x1aa12e=_0x4aec30,_0x353081=this[_0x1aa12e(0x198)][_0x1aa12e(0x28f)][_0x1aa12e(0x1ec)](_0x1aa12e(0x266));if(!_0x353081)throw new _0x3f52cf(_0x1aa12e(0x1a8),this);return _0x353081;}async[_0x4aec30(0x155)](_0x457de0){const _0x5ce60c=_0x4aec30;try{this[_0x5ce60c(0x1aa)][_0x5ce60c(0x144)](),await this[_0x5ce60c(0x1bf)](_0x457de0);}catch(_0x593672){this[_0x5ce60c(0x1aa)][_0x5ce60c(0x129)]({'errorMessage':_0x21db9d(this[_0x5ce60c(0x198)][_0x5ce60c(0x14d)],_0x5ce60c(0x21a)),'id':_0x457de0||_0x4720f6()}),console[_0x5ce60c(0x275)](_0x593672),this[_0x5ce60c(0x1af)]=void 0x0,this[_0x5ce60c(0x1aa)][_0x5ce60c(0x137)]();}}async[_0x4aec30(0x1bf)](_0x4c6e15){const _0x1f4248=_0x4aec30;let _0x52e5bf;this[_0x1f4248(0x198)][_0x1f4248(0x175)][_0x1f4248(0x11d)](_0x1f4248(0x14f))&&this[_0x1f4248(0x198)][_0x1f4248(0x175)][_0x1f4248(0x1ec)](_0x1f4248(0x14f))[_0x1f4248(0x111)](),_0x4c6e15||!this[_0x1f4248(0x1af)]?_0x52e5bf=this[_0x1f4248(0x198)][_0x1f4248(0x28f)][_0x1f4248(0x1ec)](_0x1f4248(0x219)):this[_0x1f4248(0x1aa)][_0x1f4248(0x19c)]&&(_0x52e5bf=this[_0x1f4248(0x1af)][_0x1f4248(0x1c4)]['id']),await this[_0x1f4248(0x201)]();const _0x3c9c20=this[_0x1f4248(0x246)](),_0x6b6ff0=_0x4c6e15||_0x4720f6();this[_0x1f4248(0x1af)]=new _0x5a7bde({'connector':this[_0x1f4248(0x158)],'chatModels':this[_0x1f4248(0x264)],'selectedModelId':_0x52e5bf,'conversationId':_0x6b6ff0,'group':_0x3c9c20,'getEditor':()=>_0x290b8e(this[_0x1f4248(0x198)]),'isFromHistory':!!_0x4c6e15}),this[_0x1f4248(0x1af)][_0x1f4248(0x22f)](_0x1f4248(0x142),_0x1f4248(0x1f8))['to'](this),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x247),(_0x2cfc23,_0x561c47)=>{const _0x3cbdd3=_0x1f4248;this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x27a)](_0x561c47),this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x1a6)](),this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x1cd)](),this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x271)](),_0x4c6e15||(this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x257)](),this[_0x3cbdd3(0x1b6)]());}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x26b),(_0x3a47c6,_0x314f2b)=>{const _0x122d8c=_0x1f4248;this[_0x122d8c(0x1aa)][_0x122d8c(0x140)](_0x314f2b[_0x122d8c(0x22d)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x248),(_0x56808a,_0x1e766c)=>{const _0x2866d8=_0x1f4248;this[_0x2866d8(0x1aa)][_0x2866d8(0x263)](_0x1e766c);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x240),()=>{const _0x563e54=_0x1f4248,_0x2110e2=this[_0x563e54(0x1aa)][_0x563e54(0x167)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x563e54(0x1aa)][_0x563e54(0x192)](_0x2110e2);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x298),()=>{const _0x3a9532=_0x1f4248,_0x43e54d=this[_0x3a9532(0x1aa)][_0x3a9532(0x167)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x3a9532(0x1aa)][_0x3a9532(0x192)](_0x43e54d);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x220),(_0x1a6a36,_0x2c5c6d)=>{const _0x2743fc=_0x1f4248;this[_0x2743fc(0x1aa)][_0x2743fc(0x255)](_0x2c5c6d,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x11f),(_0xfc56d7,_0x3f6e74)=>{const _0x2e88ac=_0x1f4248;this[_0x2e88ac(0x1aa)][_0x2e88ac(0x255)](_0x3f6e74,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1f8),()=>{const _0x2e0b94=_0x1f4248;this[_0x2e0b94(0x1aa)][_0x2e0b94(0x163)]();}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x17a),async()=>{const _0x1ba3c7=_0x1f4248;await this[_0x1ba3c7(0x1aa)][_0x1ba3c7(0x289)]();}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x18f),(_0x485ed7,_0x124fa4)=>{const _0x474ad2=_0x1f4248;this[_0x474ad2(0x1aa)][_0x474ad2(0x12e)](_0x124fa4['id']);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1f0),(_0x61c809,_0x363156,_0x4b7896)=>{const _0x12094d=_0x1f4248;this[_0x12094d(0x1db)](_0x363156,_0x4b7896);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x273),(_0x50e823,_0x28a5cc)=>{const _0x2b557b=_0x1f4248;_0x2b557b(0x295)===_0x28a5cc[_0x2b557b(0x1ce)]?this[_0x2b557b(0x1aa)][_0x2b557b(0x23f)](_0x28a5cc):this[_0x2b557b(0x1aa)][_0x2b557b(0x15e)](_0x28a5cc);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x14c),async(_0x2348be,_0x8ad69e)=>{const _0x14d7f3=_0x1f4248;await this[_0x14d7f3(0x10f)]({'reply':_0x8ad69e});}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x197),(_0x5dc1fa,{reply:_0x2fdb42,index:_0x1e54a5,state:_0x3450d3})=>{const _0x31da4c=_0x1f4248;this[_0x31da4c(0x1aa)][_0x31da4c(0x114)]({'id':_0x2fdb42['id'],'index':_0x1e54a5,'state':_0x3450d3}),this[_0x31da4c(0x22e)]?.[_0x31da4c(0x213)][_0x31da4c(0x216)](_0x2fdb42['id'])&&this[_0x31da4c(0x22e)]?.[_0x31da4c(0x262)]==_0x1e54a5&&this[_0x31da4c(0x112)]?.[_0x31da4c(0x1fd)](_0x3450d3);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1a9),(_0x5ccd5f,_0x5a13b2)=>{const _0xd4575b=_0x1f4248;if(this[_0xd4575b(0x1aa)][_0xd4575b(0x123)](_0x5a13b2[_0xd4575b(0x1ba)],_0x5a13b2[_0xd4575b(0x25a)]),_0xd4575b(0x27c)===_0x5a13b2[_0xd4575b(0x1ba)][_0xd4575b(0x1ce)]){const _0x2d13b5=[..._0x290b8e(this[_0xd4575b(0x198)])[_0xd4575b(0x193)][_0xd4575b(0x202)][_0xd4575b(0x27c)][_0xd4575b(0x1fa)]()];this[_0xd4575b(0x205)][_0xd4575b(0x154)](_0x2d13b5,_0xd4575b(0x139)+this[_0xd4575b(0x1af)]?.['id']);}}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x172),(_0x26cd34,_0x2f2d34)=>{const _0x1c3a02=_0x1f4248;this[_0x1c3a02(0x1aa)][_0x1c3a02(0x204)](_0x2f2d34[_0x1c3a02(0x135)]),_0x1c3a02(0x145)==_0x2f2d34[_0x1c3a02(0x135)]&&this[_0x1c3a02(0x12b)](),_0x1c3a02(0x27c)===_0x2f2d34[_0x1c3a02(0x1ce)]&&this[_0x1c3a02(0x205)][_0x1c3a02(0x119)](_0x1c3a02(0x139)+this[_0x1c3a02(0x1af)]?.['id']);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1ea),(_0x2b3336,_0x12920b)=>{const _0x2c32ad=_0x1f4248;this[_0x2c32ad(0x1aa)][_0x2c32ad(0x130)](_0x12920b[_0x2c32ad(0x1ba)][_0x2c32ad(0x135)],_0x12920b[_0x2c32ad(0x25a)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x19f),(_0x14fb63,_0x45036f)=>{const _0x3d406c=_0x1f4248;this[_0x3d406c(0x1aa)][_0x3d406c(0x1c1)](_0x45036f[_0x3d406c(0x157)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x151),(_0x4be9af,_0x48b993)=>{const _0x3bde14=_0x1f4248;this[_0x3bde14(0x1aa)][_0x3bde14(0x185)](_0x48b993[_0x3bde14(0x1e0)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x168),(_0x2a1bbb,_0x3cc889)=>{const _0x1647e9=_0x1f4248;this[_0x1647e9(0x1aa)][_0x1647e9(0x17f)](_0x3cc889[_0x1647e9(0x12a)],_0x3cc889[_0x1647e9(0x188)],_0x3cc889[_0x1647e9(0x222)],_0x3cc889[_0x1647e9(0x15c)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1df),(_0x3889e4,_0x456332)=>{const _0x272923=_0x1f4248;this[_0x272923(0x1aa)][_0x272923(0x287)](_0x456332[_0x272923(0x12a)],_0x456332[_0x272923(0x17d)],_0x456332[_0x272923(0x1d2)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x279),(_0x2ef689,_0x4146a6)=>{const _0x589c7f=_0x1f4248;this[_0x589c7f(0x1aa)][_0x589c7f(0x19e)](_0x4146a6);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x26f),async(_0x481473,_0x50b8a2)=>{const _0x1987a3=_0x1f4248,_0x225848=(await this[_0x1987a3(0x264)][_0x1987a3(0x115)]())[_0x1987a3(0x159)](_0x1948f6=>_0x1948f6['id']===_0x50b8a2[_0x1987a3(0x1c4)]?.['id'])||null;this[_0x1987a3(0x1aa)][_0x1987a3(0x233)](_0x225848,_0x50b8a2[_0x1987a3(0x286)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x275),(_0x909f22,{error:_0x3c4060,interactionId:_0x1dfb8c,fileName:_0x42247a,url:_0x2d541f,sourceId:_0x1427ba,sourceLabel:_0x2ab8b5})=>{const _0xb14ba9=_0x1f4248,_0x129db2=_0x1dfb8c?_0x1dfb8c+':'+_0x4720f6():_0x4720f6();_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1cc))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x231)]({'staticMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1ef)),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x124))||_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1b5))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x21a)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1d3))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x179),_0x42247a),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x174))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1fb),_0x2d541f),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x249))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x23d)),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x259))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1e8)),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x147))?(_0x1427ba&&this[_0xb14ba9(0x1aa)][_0xb14ba9(0x14b)](_0x1427ba),this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x291),_0x2ab8b5||_0xb14ba9(0x188)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x221))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x292)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1a3))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x178)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x127))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x269)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x234))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x138)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x258))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x187)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1cb))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x237)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1a0)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060));}),await this[_0x1f4248(0x1af)][_0x1f4248(0x191)](this[_0x1f4248(0x198)][_0x1f4248(0x28f)][_0x1f4248(0x1ec)](_0x1f4248(0x17e))),_0x4c6e15||await this[_0x1f4248(0x1af)][_0x1f4248(0x265)]();}async[_0x4aec30(0x21f)]({userMessage:_0x796e6e,attributes:_0x5b4976}){const _0x5641ad=_0x4aec30;if(!this[_0x5641ad(0x1af)])throw new _0x3f52cf(_0x5641ad(0x1e6));if(this[_0x5641ad(0x1af)][_0x5641ad(0x1b3)]()){const _0x17a232=await this[_0x5641ad(0x205)][_0x5641ad(0x15d)]();await this[_0x5641ad(0x1af)][_0x5641ad(0x1c5)](_0x17a232);}this[_0x5641ad(0x1af)]['id']&&this[_0x5641ad(0x1af)][_0x5641ad(0x13e)]&&await this[_0x5641ad(0x1af)][_0x5641ad(0x16a)]({'userMessage':_0x796e6e,'attributes':_0x5b4976});}[_0x4aec30(0x270)](){const _0x310d29=_0x4aec30;console[_0x310d29(0x1da)](_0x310d29(0x16e));}[_0x4aec30(0x235)](_0x2e6270){const _0x21fd25=_0x4aec30;this[_0x21fd25(0x1aa)][_0x21fd25(0x10e)](_0x2e6270);}[_0x4aec30(0x209)](_0x52bd02){const _0x10aabe=_0x4aec30;_0x306496(_0x52bd02[_0x10aabe(0x149)]);}[_0x4aec30(0x1d9)](_0x44133c){const _0x5de069=_0x4aec30;this[_0x5de069(0x1af)]?.[_0x5de069(0x27f)](_0x44133c);}[_0x4aec30(0x146)](){const _0x79d522=_0x4aec30;this[_0x79d522(0x1af)]?.[_0x79d522(0x227)]();}[_0x4aec30(0x1a4)](){const _0x54a72c=_0x4aec30;this[_0x54a72c(0x1af)]?.[_0x54a72c(0x136)]();}[_0x4aec30(0x1d7)](_0xb8aaa4){const _0x3e82ce=_0x4aec30,[_0x120933,_0x42afe1]=_0xb8aaa4[_0x3e82ce(0x207)](':'),_0x72261e=this[_0x3e82ce(0x1af)][_0x3e82ce(0x16f)](_0x120933),_0x1b3a40=_0x72261e[_0x3e82ce(0x126)](_0x42afe1);return{'interaction':_0x72261e,'reply':_0x1b3a40};}[_0x4aec30(0x1c9)](_0x316152,_0x32ce86=!0x1){const _0x3236f9=_0x4aec30,_0x3b4e35=_0x290b8e(this[_0x3236f9(0x198)]),_0x3ff9ed={'target':_0x3b4e35[_0x3236f9(0x23a)][_0x3236f9(0x143)][_0x3236f9(0x277)][_0x3236f9(0x166)](_0x3b4e35[_0x3236f9(0x23a)][_0x3236f9(0x278)][_0x3236f9(0x180)](_0x316152)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x32ce86};_0x32ce86&&(_0x3ff9ed[_0x3236f9(0x1ca)]=!0x0),_0x59f77d(_0x3ff9ed);}[_0x4aec30(0x1db)](_0x8cb4cb,_0x5547da=!0x1){const _0x42fbdc=_0x4aec30;this[_0x42fbdc(0x1aa)][_0x42fbdc(0x1f0)](_0x8cb4cb||_0x21db9d(this[_0x42fbdc(0x198)][_0x42fbdc(0x14d)],_0x42fbdc(0x18a)),_0x5547da);}async[_0x4aec30(0x10f)]({reply:_0x381995,renderingStrategy:_0xff338d}){const _0x1f8631=_0x4aec30,{id:_0x375bd5,interactionId:_0x4ce8e7,isDone:_0x5a71ca,type:_0x479293,parsedContent:_0x5e98c7}=_0x381995,_0x5c5eef=_0x4ce8e7+':'+_0x375bd5;if(_0x1f8631(0x25b)===_0x479293){const _0x37f1f8=_0x381995[_0x1f8631(0x28b)]({'showDiff':this[_0x1f8631(0x1aa)][_0x1f8631(0x1eb)]});await this[_0x1f8631(0x1aa)][_0x1f8631(0x15f)]({'id':_0x5c5eef,'parts':_0x37f1f8,'renderingStrategy':_0xff338d,'isDone':_0x5a71ca});}else _0x1f8631(0x295)===_0x479293&&await this[_0x1f8631(0x1aa)][_0x1f8631(0x1fe)]({'id':_0x5c5eef,'parsedContent':_0x5e98c7,'renderingStrategy':_0xff338d,'isDone':_0x5a71ca});_0x5a71ca&&_0x381995[_0x1f8631(0x196)][_0x1f8631(0x238)]>0x0&&this[_0x1f8631(0x1aa)][_0x1f8631(0x1ed)](_0x5c5eef,_0x381995[_0x1f8631(0x196)]);}async[_0x4aec30(0x201)](){const _0x57eef4=_0x4aec30,_0x3e5909=this[_0x57eef4(0x1af)]?.[_0x57eef4(0x223)];_0x3e5909&&(_0x3e5909[_0x57eef4(0x131)](),this[_0x57eef4(0x1aa)][_0x57eef4(0x27d)](_0x3e5909));}async[_0x4aec30(0x215)](){const _0x3cb086=_0x4aec30,_0x1d14f2=this[_0x3cb086(0x1af)]?.[_0x3cb086(0x223)];if(_0x1d14f2){for await(const _0x4f6e96 of _0x1d14f2[_0x3cb086(0x268)])await this[_0x3cb086(0x10f)]({'reply':_0x4f6e96,'renderingStrategy':_0x3cb086(0x241)});}}[_0x4aec30(0x22c)](_0x2a388f){const _0x2600b7=_0x4aec30,_0x32e0b7={'positiveCount':_0x2a388f[_0x2600b7(0x1a5)][_0x2600b7(0x294)](_0x3d2bed=>_0x2600b7(0x28c)===_0x3d2bed[_0x2600b7(0x20e)])[_0x2600b7(0x238)],'totalCount':_0x2a388f[_0x2600b7(0x1a5)][_0x2600b7(0x238)],'modificationId':_0x2a388f['id']},_0x572098=this[_0x2600b7(0x1af)][_0x2600b7(0x16f)](_0x2a388f[_0x2600b7(0x1f2)])[_0x2600b7(0x226)];_0x572098&&this[_0x2600b7(0x158)][_0x2600b7(0x1e9)](this[_0x2600b7(0x1af)]['id'],_0x572098,_0x32e0b7);}[_0x4aec30(0x171)](_0x5e6343){const _0x58bf86=_0x4aec30;let _0x5e461=null,_0x47f95a=null;this['on'](_0x58bf86(0x142),(_0x56ac52,_0x57fb8d,_0x3fb62c)=>{const _0x7ab809=_0x58bf86;_0x3fb62c['id']!==_0x5e461&&(_0x5e461=_0x3fb62c['id'],_0x47f95a=this[_0x7ab809(0x1a1)](_0x3fb62c)),_0x5e6343(_0x57fb8d,_0x47f95a);});}[_0x4aec30(0x1a1)](_0x5caafa){const _0x322e10=_0x4aec30,_0x49b20e=this[_0x322e10(0x1aa)],_0x2fdce6=()=>{const _0x17e981=_0x322e10;_0x5caafa[_0x17e981(0x16c)](),_0x5caafa[_0x17e981(0x23b)](),_0x49b20e[_0x17e981(0x195)]();},_0x16bcc0=()=>{const _0x57f55f=_0x322e10;_0x5caafa[_0x57f55f(0x1c2)]&&(_0x5caafa[_0x57f55f(0x1c2)][_0x57f55f(0x1c0)](),_0x5caafa[_0x57f55f(0x1c2)]=void 0x0);};return{'insertTextReply':(_0x55cd49,_0x153529)=>{const _0x6ed317=_0x322e10;_0x16bcc0(),_0x2fdce6();const _0x5e703e=_0x5caafa[_0x6ed317(0x1c2)]=_0x5caafa[_0x6ed317(0x283)]({'type':_0x6ed317(0x295),'interactionId':_0x5caafa['id'],'content':_0x55cd49,'id':_0x153529||_0x4720f6()});return _0x16bcc0(),_0x5e703e;},'insertCustomElement':async(_0x46ebab,_0x3a138d)=>(_0x16bcc0(),_0x2fdce6(),_0x49b20e[_0x322e10(0x21e)](_0x46ebab,_0x3a138d||_0x4720f6())),'setLoadingMessage':_0x4f5a73=>{const _0x3148cd=_0x322e10;_0x49b20e[_0x3148cd(0x192)](_0x4f5a73);},'clearLoadingMessage':()=>{const _0x927592=_0x322e10;_0x49b20e[_0x927592(0x195)]();}};}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2772de=_0x1557;(function(_0x2bfc4a,_0x1b63e9){const _0xa9096d=_0x1557,_0x4138bc=_0x2bfc4a();while(!![]){try{const _0x1a1c18=parseInt(_0xa9096d(0x1e3))/0x1+-parseInt(_0xa9096d(0x191))/0x2+-parseInt(_0xa9096d(0x1c6))/0x3*(-parseInt(_0xa9096d(0x148))/0x4)+-parseInt(_0xa9096d(0x189))/0x5*(-parseInt(_0xa9096d(0x1d2))/0x6)+parseInt(_0xa9096d(0x171))/0x7*(parseInt(_0xa9096d(0x175))/0x8)+parseInt(_0xa9096d(0x1a2))/0x9+-parseInt(_0xa9096d(0x1e5))/0xa;if(_0x1a1c18===_0x1b63e9)break;else _0x4138bc['push'](_0x4138bc['shift']());}catch(_0x3a11a1){_0x4138bc['push'](_0x4138bc['shift']());}}}(_0x24c1,0x35055));import{ContextPlugin as _0x39dd8e}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4bba6b}from'ckeditor5/src/utils.js';import{AIChatView as _0x264b1d}from'./ui/aichatview.js';import{AITabs as _0x2bc030}from'../aitabs/aitabs.js';import{getTranslation as _0x2b970a}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x4729de}from'ckeditor5/src/icons.js';function _0x1557(_0x55ee47,_0x38305e){const _0x24c1e7=_0x24c1();return _0x1557=function(_0x15578c,_0x5d2675){_0x15578c=_0x15578c-0x138;let _0x5528a9=_0x24c1e7[_0x15578c];return _0x5528a9;},_0x1557(_0x55ee47,_0x38305e);}import{AIChatFeedInteractionHeaderView as _0x124dce}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x260953}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x57d422}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x24c1(){const _0x4a8970=['abort','AI_CHAT_HEADING','setLoadingMessage','insertSuggestion','startsWith','config','setFeedItemAIReplySuggestionPartActive','get','removeFeedInteraction','clearPendingContextUI','updateReplyItem','isDone','addFeedItemUserMessage','isOfficialPlugin','chatFeed','chatHeader','set','updateFeedItemAIReplyContent','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySources','feedItemRenderingStrategy','locale','clearLoadingMessage','scrollToSuggestion','disableModelSelector','stopAutoScroll','chatControls','isLoading','values','bind','39cXPSWQ','remove','updateFeedItemAIReplySuggestionPartState','_getInputPlaceholder','showDiff','enableControls','isDisabled','availableModels','filter','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','showResizeButton','ai-suggestion-reply','1471212pXtQwf','addFeedItemCustomElement','TrackChanges','prepareLoadingMessage','setInputPlaceholder','clear','hasFeedItem','chat','view','has','populateSourceResourceBalloon','destroy','</p>','updateResourceState','setModelList','removeItem','setIsUploadInProgress','184256lulzVd','updateCapabilities','5109690ZUwOkN','forEach','setWebSearch','queueEmptyPromise','ai.availableReplyActions','ai-reply','value','disableControls','then','updateFeedItemAIReplySuggestionContent','resetConversationTitle','conversation-start','scrollFeedToSuggestion','<p>','custom-element','addTab','isTrackChangesOn','AIChatUI','focusPromptInput','streaming','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','find','13916gIpHJY','label','enqueue','resetMessageInput','enableModelSelector','_view','setSelectedModel','updateSuggestionPartState','_interactionPromiseResolver','hasItem','addFeedItemError','delegate','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','startAutoScroll','fire','AITabs','setReasoning','user-message','capabilities','getItemIds','setSuggestionPartActive','_isTrackChangesCommandValueBound','isPending','updateWebSources','ai.chat.welcomeMessage','updateFeedInteractionHeader','isModelAvailable','setConversationTitle','displayedPrompt','setContextItemLoading','removeContextItem','from','closeSourceResourceBalloon','markItemAsDone','context','removeFeedItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setFeedItemRenderingStrategy','contextItems','_animateConversationTitle','children','14NLHmdj','addContextItem','isReasoningEnabled','setConversationContext','454952HeoMkr','addFeedItemAIReply','last','AI_CHAT_WELCOME_MESSAGE','markFeedItemAsDone','addFeedInteractionHeader','interaction-header','renderingStrategy','commands','length','_titleAnimationInterval','isPremiumPlugin','isMaximized','areActionsDisabled','plugins','ai.models.showModelSelector','ai.chat.context.searchInputVisibleFrom','addFeedItemStaticMessage','updateSuggestionItem','trackChanges','5YcCFmM','setPromptInputValue','stopInteraction','setAddContextOptions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addItem','clearConversationContextUI','conversationCreated','298090EUbbxL','_promiseQueue','addFeedItemAISuggestion','finishInteraction','requires','interactionId','toggleSuggestionDisplayMode','startInteraction','setIsMaximized','toggleLoadingSkeleton','userMessage','pluginName','error-message','isBusy','options','attributes','setModel','2598876XDkHzi','createConversation','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isWebSearchEnabled'];_0x24c1=function(){return _0x4a8970;};return _0x24c1();}import{getEditorFromContext as _0x4efd13}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x31f2ae}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x39dd8e{static get[_0x2772de(0x195)](){return[_0x2bc030];}[_0x2772de(0x14d)];static get[_0x2772de(0x19c)](){const _0x15722e=_0x2772de;return _0x15722e(0x143);}static get[_0x2772de(0x1b5)](){return!0x0;}static get[_0x2772de(0x180)](){return!0x0;}[_0x2772de(0x1bc)]=_0x2772de(0x145);[_0x2772de(0x1ca)]=!0x0;[_0x2772de(0x192)];[_0x2772de(0x150)];[_0x2772de(0x17f)]=void 0x0;[_0x2772de(0x15d)]=!0x1;constructor(_0x130e92){const _0xfc0b2=_0x2772de;super(_0x130e92);const _0x4e75fb=this[_0xfc0b2(0x16a)][_0xfc0b2(0x183)][_0xfc0b2(0x1af)](_0xfc0b2(0x157));this[_0xfc0b2(0x1b8)](_0xfc0b2(0x19e),!0x1),this[_0xfc0b2(0x192)]=new _0x260953(),this[_0xfc0b2(0x14d)]=new _0x264b1d(this[_0xfc0b2(0x16a)][_0xfc0b2(0x1bd)],{'showResizeButton':_0x4e75fb[_0xfc0b2(0x1d0)],'contextResourcesSearchInputVisibleFrom':this[_0xfc0b2(0x16a)][_0xfc0b2(0x1ad)][_0xfc0b2(0x1af)](_0xfc0b2(0x185))}),this[_0xfc0b2(0x14d)][_0xfc0b2(0x153)](..._0x57d422)['to'](this),this[_0xfc0b2(0x14d)]['on'](_0xfc0b2(0x197),(_0x3839b5,{showDiff:_0x3133a5})=>{const _0x281c24=_0xfc0b2;this[_0x281c24(0x1ca)]=_0x3133a5;}),_0x4e75fb[_0xfc0b2(0x1da)][_0xfc0b2(0x141)]({'id':_0xfc0b2(0x1d9),'buttonLabel':_0x2b970a(this[_0xfc0b2(0x16a)][_0xfc0b2(0x1bd)],_0xfc0b2(0x1a9)),'buttonIcon':_0x4729de,'order':0x0,'content':this[_0xfc0b2(0x14d)]}),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)][_0xfc0b2(0x1c5)](_0xfc0b2(0x1c3))['to'](this,_0xfc0b2(0x19e),_0x1fafa8=>_0x1fafa8),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1b6)][_0xfc0b2(0x1c5)](_0xfc0b2(0x15e))['to'](this,_0xfc0b2(0x19e),_0x49bfad=>_0x49bfad),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)][_0xfc0b2(0x1d6)](this[_0xfc0b2(0x1c9)]()),this[_0xfc0b2(0x1c5)](_0xfc0b2(0x162))['to'](this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)],_0xfc0b2(0x162));}[_0x2772de(0x1dd)](){const _0x3ae3fc=_0x2772de;super[_0x3ae3fc(0x1dd)](),this[_0x3ae3fc(0x17f)]&&clearInterval(this[_0x3ae3fc(0x17f)]);}[_0x2772de(0x1a3)](_0xf3b8d3){const _0xd986aa=_0x2772de,_0x423cf9=this[_0xd986aa(0x16a)][_0xd986aa(0x1ad)][_0xd986aa(0x1af)](_0xd986aa(0x160))??_0x2b970a(this[_0xd986aa(0x16a)][_0xd986aa(0x1bd)],_0xd986aa(0x178));this[_0xd986aa(0x14d)][_0xd986aa(0x1b6)][_0xd986aa(0x1d7)](),this[_0xd986aa(0x14d)][_0xd986aa(0x1c2)][_0xd986aa(0x14c)](),this[_0xd986aa(0x14d)][_0xd986aa(0x1c2)][_0xd986aa(0x1e0)](_0xf3b8d3[_0xd986aa(0x1cd)],!this[_0xd986aa(0x16a)][_0xd986aa(0x1ad)][_0xd986aa(0x1af)](_0xd986aa(0x184))),this[_0xd986aa(0x186)]({'id':_0xd986aa(0x13d),'staticMessage':_0x423cf9}),this[_0xd986aa(0x156)](_0xd986aa(0x190));}[_0x2772de(0x186)]({id:_0x121522,staticMessage:_0x54219c}){const _0x5c55a6=_0x2772de;this[_0x5c55a6(0x14d)][_0x5c55a6(0x1b6)][_0x5c55a6(0x18e)](_0x5c55a6(0x1ea),{'id':_0x121522,'initialContent':_0x5c55a6(0x13f)+_0x54219c+_0x5c55a6(0x1de)});}[_0x2772de(0x1b4)](_0x1c6bea){const _0x1e1d37=_0x2772de,_0x587881=_0x1c6bea[_0x1e1d37(0x1a0)]?.[_0x1e1d37(0x164)]||_0x1c6bea[_0x1e1d37(0x19b)];this[_0x1e1d37(0x14d)][_0x1e1d37(0x1b6)][_0x1e1d37(0x18e)](_0x1e1d37(0x159),{'contextItems':Array[_0x1e1d37(0x167)](_0x1c6bea[_0x1e1d37(0x16e)][_0x1e1d37(0x1c4)]()),'initialContent':_0x1e1d37(0x13f)+_0x587881+_0x1e1d37(0x1de),'id':_0x1c6bea['id']});}[_0x2772de(0x152)]({errorMessage:_0x229d5a,id:_0x3faaec}){const _0x322424=_0x2772de;this[_0x322424(0x14d)][_0x322424(0x1b6)][_0x322424(0x18e)](_0x322424(0x19d),{'initialContent':_0x322424(0x13f)+_0x229d5a+_0x322424(0x1de),'id':_0x3faaec});}[_0x2772de(0x176)](_0x245e6f){const _0xb0e060=_0x2772de;return this[_0xb0e060(0x192)][_0xb0e060(0x14a)](async()=>{const _0x1aa3b5=_0xb0e060;this[_0x1aa3b5(0x14d)][_0x1aa3b5(0x1b6)][_0x1aa3b5(0x18e)](_0x1aa3b5(0x1ea),{'id':_0x245e6f[_0x1aa3b5(0x196)]+':'+_0x245e6f['id']}),this[_0x1aa3b5(0x1be)]();});}async[_0x2772de(0x193)](_0x183781){const _0x2db476=_0x2772de,_0x37d53d=_0x4efd13(this[_0x2db476(0x16a)]);let _0x2114d4=_0x37d53d[_0x2db476(0x1ad)][_0x2db476(0x1af)](_0x2db476(0x1e9))||[..._0x31f2ae];if(_0x37d53d[_0x2db476(0x183)][_0x2db476(0x1db)](_0x2db476(0x1d4))){if(!this[_0x2db476(0x15d)]){this[_0x2db476(0x15d)]=!0x0;const _0x1d5923=_0x37d53d[_0x2db476(0x17d)][_0x2db476(0x1af)](_0x2db476(0x188));this[_0x2db476(0x14d)][_0x2db476(0x1b6)][_0x2db476(0x1c5)](_0x2db476(0x142))['to'](_0x1d5923,_0x2db476(0x138));}}else _0x2114d4=_0x2114d4[_0x2db476(0x1ce)](_0x24bedb=>_0x2db476(0x1ab)!=_0x24bedb);return this[_0x2db476(0x192)][_0x2db476(0x14a)](async()=>{const _0x3664a0=_0x2db476;this[_0x3664a0(0x14d)][_0x3664a0(0x1b6)][_0x3664a0(0x18e)](_0x3664a0(0x1d1),{'id':_0x183781[_0x3664a0(0x196)]+':'+_0x183781['id'],'areActionsDisabled':_0x183781[_0x3664a0(0x182)],'showDiff':this[_0x3664a0(0x1ca)],'availableActions':_0x2114d4}),this[_0x3664a0(0x1be)]();});}[_0x2772de(0x17a)](_0x49b17d,_0x35a04e){const _0x2d6920=_0x2772de,_0x1d7152=this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x170)][_0x2d6920(0x177)];if(_0x1d7152 instanceof _0x124dce)return this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x170)][_0x2d6920(0x1c7)](_0x1d7152),void this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x18e)](_0x2d6920(0x17b),{'id':_0x49b17d['id'],'capabilities':{'isWebSearchEnabled':_0x1d7152[_0x2d6920(0x15a)][_0x2d6920(0x1a7)]||_0x35a04e[_0x2d6920(0x1a7)],'isReasoningEnabled':_0x1d7152[_0x2d6920(0x15a)][_0x2d6920(0x173)]||_0x35a04e[_0x2d6920(0x173)]}});this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x18e)](_0x2d6920(0x17b),{'id':_0x49b17d['id'],'capabilities':_0x35a04e});}async[_0x2772de(0x1d3)](_0x17bc9f,_0x4602ca){const _0x38937d=_0x2772de;let _0x81695;return await this[_0x38937d(0x192)][_0x38937d(0x14a)](async()=>{const _0xa829b3=_0x38937d;_0x81695=this[_0xa829b3(0x14d)][_0xa829b3(0x1b6)][_0xa829b3(0x18e)](_0xa829b3(0x140),{'content':_0x17bc9f,'id':_0x4602ca});}),_0x81695;}[_0x2772de(0x16b)](_0x2ce1d4){const _0x4e58c1=_0x2772de;this[_0x4e58c1(0x14d)][_0x4e58c1(0x1b6)][_0x4e58c1(0x1e1)](_0x2ce1d4);}[_0x2772de(0x1d8)](_0x4ca5ac){const _0x15aed9=_0x2772de;return this[_0x15aed9(0x14d)][_0x15aed9(0x1b6)][_0x15aed9(0x151)](_0x4ca5ac);}[_0x2772de(0x161)](_0x5b800c){const _0x3e3ff4=_0x2772de,_0x253169=this[_0x3e3ff4(0x14d)][_0x3e3ff4(0x1b6)][_0x3e3ff4(0x170)][_0x3e3ff4(0x147)](_0x3b0ab3=>_0x3b0ab3[_0x3e3ff4(0x19f)]['id']==_0x5b800c['id']&&_0x3b0ab3 instanceof _0x124dce);_0x253169&&_0x253169[_0x3e3ff4(0x1b8)](_0x3e3ff4(0x1a5),_0x5b800c[_0x3e3ff4(0x1a5)]);}async[_0x2772de(0x1b9)](_0xf5f0a7){const _0x6e5b03=_0x2772de,_0xe5736=_0xf5f0a7[_0x6e5b03(0x17c)]||this[_0x6e5b03(0x1bc)];return this[_0x6e5b03(0x192)][_0x6e5b03(0x14a)](async _0x1ea1fb=>{const _0x1ce7d6=_0x6e5b03;await this[_0x1ce7d6(0x14d)][_0x1ce7d6(0x1b6)][_0x1ce7d6(0x1b2)]({..._0xf5f0a7,'abortSignal':_0x1ea1fb,'renderingStrategy':_0xe5736}),_0xf5f0a7[_0x1ce7d6(0x1b3)]&&this[_0x1ce7d6(0x179)](_0xf5f0a7['id']);});}[_0x2772de(0x1bb)](_0x4e2d9c,_0x51f815){const _0x1585ba=_0x2772de;this[_0x1585ba(0x14d)][_0x1585ba(0x1b6)][_0x1585ba(0x15f)](_0x4e2d9c,_0x51f815);}async[_0x2772de(0x13b)](_0x31b67b){const _0x183d68=_0x2772de,_0x5201a9=_0x31b67b[_0x183d68(0x17c)]||this[_0x183d68(0x1bc)];return this[_0x183d68(0x192)][_0x183d68(0x14a)](async _0x2163b9=>{const _0x4473f3=_0x183d68;await this[_0x4473f3(0x14d)][_0x4473f3(0x1b6)][_0x4473f3(0x187)]({..._0x31b67b,'abortSignal':_0x2163b9,'renderingStrategy':_0x5201a9}),_0x31b67b[_0x4473f3(0x1b3)]&&this[_0x4473f3(0x179)](_0x31b67b['id']);});}[_0x2772de(0x1c8)](_0x26984e){const _0x119fd8=_0x2772de;this[_0x119fd8(0x14d)][_0x119fd8(0x1b6)][_0x119fd8(0x14f)](_0x26984e);}[_0x2772de(0x1ae)](_0x17b8d6){const _0x59bcb4=_0x2772de;this[_0x59bcb4(0x14d)][_0x59bcb4(0x1b6)][_0x59bcb4(0x15c)](_0x17b8d6);}[_0x2772de(0x179)](_0x105aa6){const _0x32be2a=_0x2772de;this[_0x32be2a(0x14d)][_0x32be2a(0x1b6)][_0x32be2a(0x169)](_0x105aa6);}[_0x2772de(0x1b0)](_0x3143d5){const _0x55927c=_0x2772de;this[_0x55927c(0x14d)][_0x55927c(0x1b6)][_0x55927c(0x15b)]()[_0x55927c(0x1ce)](_0x3f106c=>_0x3f106c[_0x55927c(0x1ac)](_0x3143d5))[_0x55927c(0x1e6)](_0x320b1a=>this[_0x55927c(0x14d)][_0x55927c(0x1b6)][_0x55927c(0x1e1)](_0x320b1a));}[_0x2772de(0x198)](){const _0x2e5f70=_0x2772de,_0x26c187=this[_0x2e5f70(0x1d5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x2e5f70(0x1aa)](_0x26c187),this[_0x2e5f70(0x14d)][_0x2e5f70(0x1c2)][_0x2e5f70(0x1c0)](!this[_0x2e5f70(0x16a)][_0x2e5f70(0x1ad)][_0x2e5f70(0x1af)](_0x2e5f70(0x184))),this[_0x2e5f70(0x19e)]=!0x0,this[_0x2e5f70(0x14d)][_0x2e5f70(0x1b6)][_0x2e5f70(0x155)]();}[_0x2772de(0x18b)](_0x1f3113){const _0x4cdee6=_0x2772de;this[_0x4cdee6(0x192)][_0x4cdee6(0x1a8)](),this[_0x4cdee6(0x14d)][_0x4cdee6(0x1b6)][_0x4cdee6(0x15b)]()[_0x4cdee6(0x1ce)](_0x24ca00=>_0x24ca00[_0x4cdee6(0x1ac)](_0x1f3113['id']))[_0x4cdee6(0x1e6)](_0x13f782=>this[_0x4cdee6(0x179)](_0x13f782)),this[_0x4cdee6(0x19e)]=!0x1,this[_0x4cdee6(0x14d)][_0x4cdee6(0x1b6)][_0x4cdee6(0x1c1)]();}async[_0x2772de(0x194)](){const _0x26d474=_0x2772de;return this[_0x26d474(0x192)][_0x26d474(0x1e8)][_0x26d474(0x13a)](()=>{const _0xecb4a3=_0x26d474;this[_0xecb4a3(0x19e)]=!0x1,this[_0xecb4a3(0x14d)][_0xecb4a3(0x1b6)][_0xecb4a3(0x1c1)]();});}[_0x2772de(0x172)](_0x489b99,_0x5b440e){const _0x2107be=_0x2772de;this[_0x2107be(0x14d)][_0x2107be(0x1c2)][_0x2107be(0x172)](_0x489b99,_0x5b440e);}[_0x2772de(0x166)](_0x45c89b){const _0x476808=_0x2772de;this[_0x476808(0x14d)][_0x476808(0x1c2)][_0x476808(0x166)](_0x45c89b);}[_0x2772de(0x165)](_0x29268c,_0x3e4861){const _0x4ee976=_0x2772de;this[_0x4ee976(0x14d)][_0x4ee976(0x1c2)][_0x4ee976(0x165)](_0x29268c,_0x3e4861);}[_0x2772de(0x1e2)](_0x357805){const _0x3081a8=_0x2772de;this[_0x3081a8(0x14d)][_0x3081a8(0x1c2)][_0x3081a8(0x1e2)](_0x357805);}[_0x2772de(0x174)](_0x163a9b){const _0x4b5fea=_0x2772de;this[_0x4b5fea(0x14d)][_0x4b5fea(0x1c2)][_0x4b5fea(0x174)](_0x163a9b);}[_0x2772de(0x1b1)](){const _0x176d82=_0x2772de;this[_0x176d82(0x14d)][_0x176d82(0x1c2)][_0x176d82(0x1b1)]();}[_0x2772de(0x18f)](){const _0x3467d6=_0x2772de;this[_0x3467d6(0x14d)][_0x3467d6(0x1c2)][_0x3467d6(0x18f)]();}[_0x2772de(0x1df)](_0x41ab77,_0x5cfefe,_0x3d74f3){const _0x5209f1=_0x2772de;this[_0x5209f1(0x14d)][_0x5209f1(0x1c2)][_0x5209f1(0x1df)](_0x41ab77,_0x5cfefe,_0x3d74f3);}[_0x2772de(0x14b)](){const _0x3017c0=_0x2772de;this[_0x3017c0(0x14d)][_0x3017c0(0x1c2)][_0x3017c0(0x14b)](),this[_0x3017c0(0x14d)][_0x3017c0(0x1c2)][_0x3017c0(0x1d6)](this[_0x3017c0(0x1c9)]());}[_0x2772de(0x18c)](_0x4317a9){const _0x54b205=_0x2772de;this[_0x54b205(0x14d)][_0x54b205(0x1c2)][_0x54b205(0x18c)](_0x4317a9);}[_0x2772de(0x1e4)](_0x101a34){const _0x53e812=_0x2772de;this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x1e7)](_0x101a34[_0x53e812(0x1a7)]),this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x158)](_0x101a34[_0x53e812(0x173)]),this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x1d6)](this[_0x53e812(0x1c9)](_0x101a34));}[_0x2772de(0x14e)](_0xb0d7cc,_0x1f5341){const _0x38cb33=_0x2772de;this[_0x38cb33(0x14d)][_0x38cb33(0x1c2)][_0x38cb33(0x1a1)](_0xb0d7cc),_0x1f5341&&this[_0x38cb33(0x14d)][_0x38cb33(0x1c2)][_0x38cb33(0x1c0)](!0x1);}[_0x2772de(0x16d)](_0x42efae){const _0x103641=_0x2772de;this[_0x103641(0x1bc)]=_0x42efae;}[_0x2772de(0x19a)](_0xc5ecc8){const _0x2024a6=_0x2772de;this[_0x2024a6(0x14d)][_0x2024a6(0x1b6)][_0x2024a6(0x19a)](_0xc5ecc8);}[_0x2772de(0x13c)](){const _0xdfc235=_0x2772de;this[_0xdfc235(0x163)](_0x2b970a(this[_0xdfc235(0x16a)][_0xdfc235(0x1bd)],_0xdfc235(0x1a9)));}[_0x2772de(0x163)](_0x83270f,_0x2a2e50=!0x1){const _0x5a737c=_0x2772de;if(_0x2a2e50&&!_0x4bba6b()&&_0x83270f[_0x5a737c(0x17e)])return this[_0x5a737c(0x14d)][_0x5a737c(0x1b7)][_0x5a737c(0x149)]='',void this[_0x5a737c(0x16f)](_0x83270f);this[_0x5a737c(0x14d)][_0x5a737c(0x1b7)][_0x5a737c(0x149)]=_0x83270f;}[_0x2772de(0x1aa)](_0xf4c8f9){const _0x9a5432=_0x2772de;this[_0x9a5432(0x14d)][_0x9a5432(0x1b6)][_0x9a5432(0x1aa)](_0xf4c8f9);}[_0x2772de(0x1be)](){const _0x103099=_0x2772de;this[_0x103099(0x14d)][_0x103099(0x1b6)][_0x103099(0x1aa)]('');}[_0x2772de(0x16f)](_0xbcf25c){const _0x3e426e=_0x2772de;let _0x5e5384=0x0;clearInterval(this[_0x3e426e(0x17f)]),this[_0x3e426e(0x17f)]=setInterval(()=>{const _0x515118=_0x3e426e;this[_0x515118(0x14d)][_0x515118(0x1b7)][_0x515118(0x149)]=this[_0x515118(0x14d)][_0x515118(0x1b7)][_0x515118(0x149)]+_0xbcf25c[_0x5e5384],_0x5e5384++,_0x5e5384===_0xbcf25c[_0x515118(0x17e)]&&clearInterval(this[_0x515118(0x17f)]);},0x1e);}[_0x2772de(0x199)](_0x469577){const _0x43f93e=_0x2772de;this[_0x43f93e(0x14d)][_0x43f93e(0x1b7)][_0x43f93e(0x181)]=_0x469577;}[_0x2772de(0x1d5)](_0x335d19){const _0x12c571=_0x2772de;return _0x335d19[_0x12c571(0x1a7)]&&_0x335d19[_0x12c571(0x173)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x146)):_0x335d19[_0x12c571(0x1a7)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x16c)):_0x335d19[_0x12c571(0x173)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x154)):_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x1cf));}[_0x2772de(0x1c9)](_0x4008ef){const _0x1fc52a=_0x2772de;return _0x4008ef?_0x4008ef[_0x1fc52a(0x1a7)]&&_0x4008ef[_0x1fc52a(0x173)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1ba)):_0x4008ef[_0x1fc52a(0x1a7)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x18d)):_0x4008ef[_0x1fc52a(0x173)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a6)):_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a4)):_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a4));}[_0x2772de(0x1dc)](_0x1397f8,_0x596815,_0x43aeb3,_0x32ba0c){const _0x231680=_0x2772de;this[_0x231680(0x14d)][_0x231680(0x1dc)](_0x1397f8,_0x596815,_0x43aeb3,_0x32ba0c);}[_0x2772de(0x168)](_0x230392){const _0xc3e4ad=_0x2772de;this[_0xc3e4ad(0x14d)][_0xc3e4ad(0x168)](_0x230392);}[_0x2772de(0x18a)](_0x4cd6ee){const _0x139ee5=_0x2772de;this[_0x139ee5(0x14d)][_0x139ee5(0x1c2)][_0x139ee5(0x18a)](_0x4cd6ee);}[_0x2772de(0x144)](_0x31cf5e=!0x1){const _0x10470c=_0x2772de;this[_0x10470c(0x14d)][_0x10470c(0x1c2)][_0x10470c(0x144)](_0x31cf5e);}[_0x2772de(0x13e)](_0x17cda0,_0x3e06ba){const _0x3ebf9f=_0x2772de;this[_0x3ebf9f(0x14d)][_0x3ebf9f(0x1b6)][_0x3ebf9f(0x1bf)](_0x17cda0,_0x3e06ba);}[_0x2772de(0x155)](){const _0x35d955=_0x2772de;this[_0x35d955(0x14d)][_0x35d955(0x1b6)][_0x35d955(0x155)]();}[_0x2772de(0x139)](){const _0x5d0ff4=_0x2772de;this[_0x5d0ff4(0x14d)][_0x5d0ff4(0x1c2)][_0x5d0ff4(0x1cc)]=!0x0;}[_0x2772de(0x1cb)](){const _0x2c774f=_0x2772de;this[_0x2c774f(0x14d)][_0x2c774f(0x1c2)][_0x2c774f(0x1cc)]=!0x1;}}
|
|
23
|
+
function _0x49b6(){const _0x2e7011=['custom-element','addFeedItemAISuggestion','updateFeedItemAIReplySuggestionPartState','commands','view','queueEmptyPromise','_titleAnimationInterval','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','error-message','interactionId','clearPendingContextUI','setWebSearch','_isTrackChangesCommandValueBound','updateFeedInteractionHeader','scrollFeedToSuggestion','updateSuggestionItem','setModelList','config','get','chatControls','removeFeedItem','hasItem','streaming','setSuggestionPartActive','pluginName','_interactionPromiseResolver','feedItemRenderingStrategy','setLoadingMessage','ai.models.showModelSelector','enqueue','30854730iVsNav','784780SnZkHB','toggleSuggestionDisplayMode','2835548FJgxSm','conversation-start','addItem','find','isOfficialPlugin','AI_CHAT_HEADING','addFeedItemStaticMessage','isPending','_view','AI_CHAT_WELCOME_MESSAGE','_getInputPlaceholder','startsWith','updateWebSources','updateFeedItemAIReplySources','ai.availableReplyActions','addFeedItemAIReply','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateReplyItem','value','userMessage','bind','addFeedInteractionHeader','areActionsDisabled','AITabs','addContextItem','setAddContextOptions','last','isBusy','renderingStrategy','removeContextItem','ai.chat.welcomeMessage','has','ai-reply','scrollToSuggestion','children','updateFeedItemAIReplySuggestionContent','isLoading','showDiff','isPremiumPlugin','toggleLoadingSkeleton','abort','_promiseQueue','setConversationContext','TrackChanges','chat','remove','insertSuggestion','setConversationTitle','trackChanges','17122ajRvRw','updateResourceState','plugins','prepareLoadingMessage','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','disableControls','isDisabled','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','removeFeedInteraction','markFeedItemAsDone','resetConversationTitle','options','updateFeedItemAIReplyContent','finishInteraction','delegate','interaction-header','user-message','attributes','stopInteraction','ai.chat.context.searchInputVisibleFrom','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','startInteraction','forEach','createConversation','ai-suggestion-reply','clearConversationContextUI','resetMessageInput','conversationCreated','then','label','startAutoScroll','updateCapabilities','clearLoadingMessage','319404NHpEub','isWebSearchEnabled','isDone','setIsMaximized','enableControls','showResizeButton','updateSuggestionPartState','fire','addFeedItemUserMessage','AIChatUI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','chatFeed','closeSourceResourceBalloon','isVisible','displayedPrompt','setIsUploadInProgress','setReasoning','isReasoningEnabled','217rhSeQM','enableModelSelector','chatHeader','setSelectedModel','_animateConversationTitle','capabilities','</p>','setContextItemLoading','context','filter','availableModels','addFeedItemError','removeItem','getItemIds','populateSourceResourceBalloon','addTab','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','2028090hfrksF','isMaximized','setModel','381FXlvmf','destroy','markItemAsDone','isModelAvailable','128pdiyMk','clear','setFeedItemAIReplySuggestionPartActive','focusPromptInput','length','contextItems','requires','<p>','addFeedItemCustomElement','277317lEMyfA','set','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isTrackChangesOn','values','setFeedItemRenderingStrategy','disableModelSelector','setPromptInputValue','setInputPlaceholder','stopAutoScroll','hasFeedItem'];_0x49b6=function(){return _0x2e7011;};return _0x49b6();}const _0x225ccf=_0x43ba;(function(_0x5328f2,_0x492856){const _0x195ed6=_0x43ba,_0x15fe2d=_0x5328f2();while(!![]){try{const _0x28d991=-parseInt(_0x195ed6(0x1d6))/0x1+-parseInt(_0x195ed6(0x209))/0x2*(-parseInt(_0x195ed6(0x19f))/0x3)+-parseInt(_0x195ed6(0x1d8))/0x4+parseInt(_0x195ed6(0x19c))/0x5+-parseInt(_0x195ed6(0x22b))/0x6*(parseInt(_0x195ed6(0x18a))/0x7)+parseInt(_0x195ed6(0x1a3))/0x8*(-parseInt(_0x195ed6(0x1ac))/0x9)+parseInt(_0x195ed6(0x1d5))/0xa;if(_0x28d991===_0x492856)break;else _0x15fe2d['push'](_0x15fe2d['shift']());}catch(_0x162702){_0x15fe2d['push'](_0x15fe2d['shift']());}}}(_0x49b6,0xe5d61));import{ContextPlugin as _0x400b68}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xa6660b}from'ckeditor5/src/utils.js';import{AIChatView as _0x571ea7}from'./ui/aichatview.js';import{AITabs as _0x41ca55}from'../aitabs/aitabs.js';function _0x43ba(_0x212258,_0x35e4a7){const _0x49b6bb=_0x49b6();return _0x43ba=function(_0x43ba98,_0x1c86b7){_0x43ba98=_0x43ba98-0x186;let _0x44d2c9=_0x49b6bb[_0x43ba98];return _0x44d2c9;},_0x43ba(_0x212258,_0x35e4a7);}import{getTranslation as _0xc9fde0}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x4fb30a}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x12bdfc}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x3b0821}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x13db97}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x4f536b}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5d97f4}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x400b68{static get[_0x225ccf(0x1a9)](){return[_0x41ca55];}[_0x225ccf(0x1e0)];static get[_0x225ccf(0x1cf)](){const _0x1d1731=_0x225ccf;return _0x1d1731(0x234);}static get[_0x225ccf(0x1dc)](){return!0x0;}static get[_0x225ccf(0x1fe)](){return!0x0;}[_0x225ccf(0x1d1)]=_0x225ccf(0x1cd);[_0x225ccf(0x1fd)]=!0x0;[_0x225ccf(0x201)];[_0x225ccf(0x1d0)];[_0x225ccf(0x1bd)]=void 0x0;[_0x225ccf(0x1c3)]=!0x1;constructor(_0x3eabe9){const _0x589eac=_0x225ccf;super(_0x3eabe9);const _0x3ed6c1=this[_0x589eac(0x192)][_0x589eac(0x20b)][_0x589eac(0x1c9)](_0x589eac(0x1ef));this[_0x589eac(0x1ad)](_0x589eac(0x1f3),!0x1),this[_0x589eac(0x201)]=new _0x3b0821(),this[_0x589eac(0x1e0)]=new _0x571ea7(this[_0x589eac(0x192)][_0x589eac(0x20d)],{'showResizeButton':_0x3ed6c1[_0x589eac(0x230)],'contextResourcesSearchInputVisibleFrom':this[_0x589eac(0x192)][_0x589eac(0x1c8)][_0x589eac(0x1c9)](_0x589eac(0x21d))}),this[_0x589eac(0x1e0)][_0x589eac(0x218)](..._0x13db97)['to'](this),this[_0x589eac(0x1e0)]['on'](_0x589eac(0x1d7),(_0x3e994f,{showDiff:_0xa6ee5b})=>{const _0x405a47=_0x589eac;this[_0x405a47(0x1fd)]=_0xa6ee5b;}),_0x3ed6c1[_0x589eac(0x1bb)][_0x589eac(0x199)]({'id':_0x589eac(0x204),'buttonLabel':_0xc9fde0(this[_0x589eac(0x192)][_0x589eac(0x20d)],_0x589eac(0x1dd)),'buttonIcon':_0x4fb30a,'order':0x0,'content':this[_0x589eac(0x1e0)]}),this[_0x589eac(0x1e0)][_0x589eac(0x1ca)][_0x589eac(0x1ec)](_0x589eac(0x1fc))['to'](this,_0x589eac(0x1f3),_0x5dc1ef=>_0x5dc1ef),this[_0x589eac(0x1e0)][_0x589eac(0x236)][_0x589eac(0x1ec)](_0x589eac(0x1df))['to'](this,_0x589eac(0x1f3),_0x13da81=>_0x13da81),this[_0x589eac(0x1e0)][_0x589eac(0x1ca)][_0x589eac(0x1b4)](this[_0x589eac(0x1e2)]()),this[_0x589eac(0x1ec)](_0x589eac(0x1a2))['to'](this[_0x589eac(0x1e0)][_0x589eac(0x1ca)],_0x589eac(0x1a2));}[_0x225ccf(0x1a0)](){const _0xf6ac1e=_0x225ccf;super[_0xf6ac1e(0x1a0)](),this[_0xf6ac1e(0x1bd)]&&clearInterval(this[_0xf6ac1e(0x1bd)]);}[_0x225ccf(0x221)](_0x4baf1f){const _0x59416e=_0x225ccf,_0xd6cf6b=this[_0x59416e(0x192)][_0x59416e(0x1c8)][_0x59416e(0x1c9)](_0x59416e(0x1f6))??_0xc9fde0(this[_0x59416e(0x192)][_0x59416e(0x20d)],_0x59416e(0x1e1));this[_0x59416e(0x1e0)][_0x59416e(0x236)][_0x59416e(0x1a4)](),this[_0x59416e(0x1e0)][_0x59416e(0x1ca)][_0x59416e(0x18b)](),this[_0x59416e(0x1e0)][_0x59416e(0x1ca)][_0x59416e(0x1c7)](_0x4baf1f[_0x59416e(0x194)],!this[_0x59416e(0x192)][_0x59416e(0x1c8)][_0x59416e(0x1c9)](_0x59416e(0x1d3))),this[_0x59416e(0x1de)]({'id':_0x59416e(0x1d9),'staticMessage':_0xd6cf6b}),this[_0x59416e(0x232)](_0x59416e(0x225));}[_0x225ccf(0x1de)]({id:_0xed680e,staticMessage:_0x32d413}){const _0x17f51f=_0x225ccf;this[_0x17f51f(0x1e0)][_0x17f51f(0x236)][_0x17f51f(0x1da)](_0x17f51f(0x1f8),{'id':_0xed680e,'initialContent':_0x17f51f(0x1aa)+_0x32d413+_0x17f51f(0x190)});}[_0x225ccf(0x233)](_0x317153){const _0x3011aa=_0x225ccf,_0x3b6eb4=_0x317153[_0x3011aa(0x21b)]?.[_0x3011aa(0x186)]||_0x317153[_0x3011aa(0x1eb)];this[_0x3011aa(0x1e0)][_0x3011aa(0x236)][_0x3011aa(0x1da)](_0x3011aa(0x21a),{'contextItems':Array[_0x3011aa(0x19a)](_0x317153[_0x3011aa(0x1a8)][_0x3011aa(0x1b0)]()),'initialContent':_0x3011aa(0x1aa)+_0x3b6eb4+_0x3011aa(0x190),'id':_0x317153['id']});}[_0x225ccf(0x195)]({errorMessage:_0x49c9a6,id:_0x40023e}){const _0x468e26=_0x225ccf;this[_0x468e26(0x1e0)][_0x468e26(0x236)][_0x468e26(0x1da)](_0x468e26(0x1bf),{'initialContent':_0x468e26(0x1aa)+_0x49c9a6+_0x468e26(0x190),'id':_0x40023e});}[_0x225ccf(0x1e7)](_0x555b21){const _0x21d2e9=_0x225ccf;return this[_0x21d2e9(0x201)][_0x21d2e9(0x1d4)](async()=>{const _0x2a98cf=_0x21d2e9;this[_0x2a98cf(0x1e0)][_0x2a98cf(0x236)][_0x2a98cf(0x1da)](_0x2a98cf(0x1f8),{'id':_0x555b21[_0x2a98cf(0x1c0)]+':'+_0x555b21['id']}),this[_0x2a98cf(0x22a)]();});}async[_0x225ccf(0x1b8)](_0x559878){const _0x408365=_0x225ccf,_0x532a04=_0x4f536b(this[_0x408365(0x192)]);let _0x3b9777=_0x532a04[_0x408365(0x1c8)][_0x408365(0x1c9)](_0x408365(0x1e6))||[..._0x5d97f4];if(_0x532a04[_0x408365(0x20b)][_0x408365(0x1f7)](_0x408365(0x203))){if(!this[_0x408365(0x1c3)]){this[_0x408365(0x1c3)]=!0x0;const _0x25fb7d=_0x532a04[_0x408365(0x1ba)][_0x408365(0x1c9)](_0x408365(0x208));this[_0x408365(0x1e0)][_0x408365(0x236)][_0x408365(0x1ec)](_0x408365(0x1af))['to'](_0x25fb7d,_0x408365(0x1ea));}}else _0x3b9777=_0x3b9777[_0x408365(0x193)](_0x2bc4e4=>_0x408365(0x206)!=_0x2bc4e4);return this[_0x408365(0x201)][_0x408365(0x1d4)](async()=>{const _0x203718=_0x408365;this[_0x203718(0x1e0)][_0x203718(0x236)][_0x203718(0x1da)](_0x203718(0x222),{'id':_0x559878[_0x203718(0x1c0)]+':'+_0x559878['id'],'areActionsDisabled':_0x559878[_0x203718(0x1ee)],'showDiff':this[_0x203718(0x1fd)],'availableActions':_0x3b9777}),this[_0x203718(0x22a)]();});}[_0x225ccf(0x1ed)](_0x2e0d1d,_0x4ac061){const _0x5b19bb=_0x225ccf,_0x5e7070=this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1fa)][_0x5b19bb(0x1f2)];if(_0x5e7070 instanceof _0x12bdfc)return this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1fa)][_0x5b19bb(0x205)](_0x5e7070),void this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1da)](_0x5b19bb(0x219),{'id':_0x2e0d1d['id'],'capabilities':{'isWebSearchEnabled':_0x5e7070[_0x5b19bb(0x18f)][_0x5b19bb(0x22c)]||_0x4ac061[_0x5b19bb(0x22c)],'isReasoningEnabled':_0x5e7070[_0x5b19bb(0x18f)][_0x5b19bb(0x189)]||_0x4ac061[_0x5b19bb(0x189)]}});this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1da)](_0x5b19bb(0x219),{'id':_0x2e0d1d['id'],'capabilities':_0x4ac061});}async[_0x225ccf(0x1ab)](_0x26d719,_0x12ea44){const _0x393a91=_0x225ccf;let _0x2acec0;return await this[_0x393a91(0x201)][_0x393a91(0x1d4)](async()=>{const _0x3e4dac=_0x393a91;_0x2acec0=this[_0x3e4dac(0x1e0)][_0x3e4dac(0x236)][_0x3e4dac(0x1da)](_0x3e4dac(0x1b7),{'content':_0x26d719,'id':_0x12ea44});}),_0x2acec0;}[_0x225ccf(0x1cb)](_0x39c890){const _0x4128b5=_0x225ccf;this[_0x4128b5(0x1e0)][_0x4128b5(0x236)][_0x4128b5(0x196)](_0x39c890);}[_0x225ccf(0x1b6)](_0x151b03){const _0x5f4b59=_0x225ccf;return this[_0x5f4b59(0x1e0)][_0x5f4b59(0x236)][_0x5f4b59(0x1cc)](_0x151b03);}[_0x225ccf(0x1c4)](_0x48f0f1){const _0x61e29e=_0x225ccf,_0x303536=this[_0x61e29e(0x1e0)][_0x61e29e(0x236)][_0x61e29e(0x1fa)][_0x61e29e(0x1db)](_0x32d4ea=>_0x32d4ea[_0x61e29e(0x215)]['id']==_0x48f0f1['id']&&_0x32d4ea instanceof _0x12bdfc);_0x303536&&_0x303536[_0x61e29e(0x1ad)](_0x61e29e(0x238),_0x48f0f1[_0x61e29e(0x238)]);}async[_0x225ccf(0x216)](_0x57e927){const _0x3eb301=_0x225ccf,_0x1d9dea=_0x57e927[_0x3eb301(0x1f4)]||this[_0x3eb301(0x1d1)];return this[_0x3eb301(0x201)][_0x3eb301(0x1d4)](async _0x4fe9d4=>{const _0x519243=_0x3eb301;await this[_0x519243(0x1e0)][_0x519243(0x236)][_0x519243(0x1e9)]({..._0x57e927,'abortSignal':_0x4fe9d4,'renderingStrategy':_0x1d9dea}),_0x57e927[_0x519243(0x22d)]&&this[_0x519243(0x213)](_0x57e927['id']);});}[_0x225ccf(0x1e5)](_0x4bb13f,_0x1bed50){const _0x487af1=_0x225ccf;this[_0x487af1(0x1e0)][_0x487af1(0x236)][_0x487af1(0x1e4)](_0x4bb13f,_0x1bed50);}async[_0x225ccf(0x1fb)](_0x8522e3){const _0x369404=_0x225ccf,_0x433b62=_0x8522e3[_0x369404(0x1f4)]||this[_0x369404(0x1d1)];return this[_0x369404(0x201)][_0x369404(0x1d4)](async _0x5f3dc7=>{const _0x1f25e6=_0x369404;await this[_0x1f25e6(0x1e0)][_0x1f25e6(0x236)][_0x1f25e6(0x1c6)]({..._0x8522e3,'abortSignal':_0x5f3dc7,'renderingStrategy':_0x433b62}),_0x8522e3[_0x1f25e6(0x22d)]&&this[_0x1f25e6(0x213)](_0x8522e3['id']);});}[_0x225ccf(0x1b9)](_0x5efc09){const _0x58c043=_0x225ccf;this[_0x58c043(0x1e0)][_0x58c043(0x236)][_0x58c043(0x231)](_0x5efc09);}[_0x225ccf(0x1a5)](_0x567f22){const _0x107a9a=_0x225ccf;this[_0x107a9a(0x1e0)][_0x107a9a(0x236)][_0x107a9a(0x1ce)](_0x567f22);}[_0x225ccf(0x213)](_0x365f2e){const _0x464000=_0x225ccf;this[_0x464000(0x1e0)][_0x464000(0x236)][_0x464000(0x1a1)](_0x365f2e);}[_0x225ccf(0x212)](_0x35582f){const _0x4785ad=_0x225ccf;this[_0x4785ad(0x1e0)][_0x4785ad(0x236)][_0x4785ad(0x197)]()[_0x4785ad(0x193)](_0x5dd3de=>_0x5dd3de[_0x4785ad(0x1e3)](_0x35582f))[_0x4785ad(0x220)](_0x564bd8=>this[_0x4785ad(0x1e0)][_0x4785ad(0x236)][_0x4785ad(0x196)](_0x564bd8));}[_0x225ccf(0x21f)](){const _0x455743=_0x225ccf,_0x207f04=this[_0x455743(0x20c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x455743(0x1d2)](_0x207f04),this[_0x455743(0x1e0)][_0x455743(0x1ca)][_0x455743(0x1b2)](!this[_0x455743(0x192)][_0x455743(0x1c8)][_0x455743(0x1c9)](_0x455743(0x1d3))),this[_0x455743(0x1f3)]=!0x0,this[_0x455743(0x1e0)][_0x455743(0x236)][_0x455743(0x228)]();}[_0x225ccf(0x21c)](_0x26b4c9){const _0x302251=_0x225ccf;this[_0x302251(0x201)][_0x302251(0x200)](),this[_0x302251(0x1e0)][_0x302251(0x236)][_0x302251(0x197)]()[_0x302251(0x193)](_0x5e884b=>_0x5e884b[_0x302251(0x1e3)](_0x26b4c9['id']))[_0x302251(0x220)](_0x344cb1=>this[_0x302251(0x213)](_0x344cb1)),this[_0x302251(0x1f3)]=!0x1,this[_0x302251(0x1e0)][_0x302251(0x236)][_0x302251(0x1b5)]();}async[_0x225ccf(0x217)](){const _0x4e7e4b=_0x225ccf;return this[_0x4e7e4b(0x201)][_0x4e7e4b(0x1bc)][_0x4e7e4b(0x226)](()=>{const _0x1b8085=_0x4e7e4b;this[_0x1b8085(0x1f3)]=!0x1,this[_0x1b8085(0x1e0)][_0x1b8085(0x236)][_0x1b8085(0x1b5)]();});}[_0x225ccf(0x1f0)](_0x407d1a,_0x517902){const _0x16c91d=_0x225ccf;this[_0x16c91d(0x1e0)][_0x16c91d(0x1ca)][_0x16c91d(0x1f0)](_0x407d1a,_0x517902);}[_0x225ccf(0x1f5)](_0x171c79){const _0xc56ba=_0x225ccf;this[_0xc56ba(0x1e0)][_0xc56ba(0x1ca)][_0xc56ba(0x1f5)](_0x171c79);}[_0x225ccf(0x191)](_0x53f495,_0x410451){const _0x27f0f5=_0x225ccf;this[_0x27f0f5(0x1e0)][_0x27f0f5(0x1ca)][_0x27f0f5(0x191)](_0x53f495,_0x410451);}[_0x225ccf(0x187)](_0x257539){const _0x2531e7=_0x225ccf;this[_0x2531e7(0x1e0)][_0x2531e7(0x1ca)][_0x2531e7(0x187)](_0x257539);}[_0x225ccf(0x202)](_0x21b7b9){const _0x343366=_0x225ccf;this[_0x343366(0x1e0)][_0x343366(0x1ca)][_0x343366(0x202)](_0x21b7b9);}[_0x225ccf(0x1c1)](){const _0xb639b=_0x225ccf;this[_0xb639b(0x1e0)][_0xb639b(0x1ca)][_0xb639b(0x1c1)]();}[_0x225ccf(0x223)](){const _0x29e3d4=_0x225ccf;this[_0x29e3d4(0x1e0)][_0x29e3d4(0x1ca)][_0x29e3d4(0x223)]();}[_0x225ccf(0x20a)](_0x36c3db,_0x3a09d1,_0x44bfb7){const _0x4fb713=_0x225ccf;this[_0x4fb713(0x1e0)][_0x4fb713(0x1ca)][_0x4fb713(0x20a)](_0x36c3db,_0x3a09d1,_0x44bfb7);}[_0x225ccf(0x224)](){const _0x3a120a=_0x225ccf;this[_0x3a120a(0x1e0)][_0x3a120a(0x1ca)][_0x3a120a(0x224)](),this[_0x3a120a(0x1e0)][_0x3a120a(0x1ca)][_0x3a120a(0x1b4)](this[_0x3a120a(0x1e2)]());}[_0x225ccf(0x1f1)](_0x1973b4){const _0x2d0579=_0x225ccf;this[_0x2d0579(0x1e0)][_0x2d0579(0x1ca)][_0x2d0579(0x1f1)](_0x1973b4);}[_0x225ccf(0x229)](_0x76b99e){const _0x20dcd5=_0x225ccf;this[_0x20dcd5(0x1e0)][_0x20dcd5(0x1ca)][_0x20dcd5(0x1c2)](_0x76b99e[_0x20dcd5(0x22c)]),this[_0x20dcd5(0x1e0)][_0x20dcd5(0x1ca)][_0x20dcd5(0x188)](_0x76b99e[_0x20dcd5(0x189)]),this[_0x20dcd5(0x1e0)][_0x20dcd5(0x1ca)][_0x20dcd5(0x1b4)](this[_0x20dcd5(0x1e2)](_0x76b99e));}[_0x225ccf(0x18d)](_0x38479a,_0x59d42e){const _0x30d690=_0x225ccf;this[_0x30d690(0x1e0)][_0x30d690(0x1ca)][_0x30d690(0x19e)](_0x38479a),_0x59d42e&&this[_0x30d690(0x1e0)][_0x30d690(0x1ca)][_0x30d690(0x1b2)](!0x1);}[_0x225ccf(0x1b1)](_0x1def26){const _0x4331b2=_0x225ccf;this[_0x4331b2(0x1d1)]=_0x1def26;}[_0x225ccf(0x1ff)](_0x478d8b){const _0x5dbf47=_0x225ccf;this[_0x5dbf47(0x1e0)][_0x5dbf47(0x236)][_0x5dbf47(0x1ff)](_0x478d8b);}[_0x225ccf(0x214)](){const _0x549e4c=_0x225ccf;this[_0x549e4c(0x207)](_0xc9fde0(this[_0x549e4c(0x192)][_0x549e4c(0x20d)],_0x549e4c(0x1dd)));}[_0x225ccf(0x207)](_0x11abd9,_0x7ed4a3=!0x1){const _0x2f0d8e=_0x225ccf;if(_0x7ed4a3&&!_0xa6660b()&&_0x11abd9[_0x2f0d8e(0x1a7)])return this[_0x2f0d8e(0x1e0)][_0x2f0d8e(0x18c)][_0x2f0d8e(0x227)]='',void this[_0x2f0d8e(0x18e)](_0x11abd9);this[_0x2f0d8e(0x1e0)][_0x2f0d8e(0x18c)][_0x2f0d8e(0x227)]=_0x11abd9;}[_0x225ccf(0x1d2)](_0x356ee3){const _0x3b61a6=_0x225ccf;this[_0x3b61a6(0x1e0)][_0x3b61a6(0x236)][_0x3b61a6(0x1d2)](_0x356ee3);}[_0x225ccf(0x22a)](){const _0x47b46c=_0x225ccf;this[_0x47b46c(0x1e0)][_0x47b46c(0x236)][_0x47b46c(0x1d2)]('');}[_0x225ccf(0x18e)](_0x48c602){const _0x50f3f1=_0x225ccf;let _0x551dc8=0x0;clearInterval(this[_0x50f3f1(0x1bd)]),this[_0x50f3f1(0x1bd)]=setInterval(()=>{const _0x43137d=_0x50f3f1;this[_0x43137d(0x1e0)][_0x43137d(0x18c)][_0x43137d(0x227)]=this[_0x43137d(0x1e0)][_0x43137d(0x18c)][_0x43137d(0x227)]+_0x48c602[_0x551dc8],_0x551dc8++,_0x551dc8===_0x48c602[_0x43137d(0x1a7)]&&clearInterval(this[_0x43137d(0x1bd)]);},0x1e);}[_0x225ccf(0x22e)](_0x2b6aa1){const _0x3a805b=_0x225ccf;this[_0x3a805b(0x1e0)][_0x3a805b(0x18c)][_0x3a805b(0x19d)]=_0x2b6aa1;}[_0x225ccf(0x20c)](_0x1a602c){const _0x30311b=_0x225ccf;return _0x1a602c[_0x30311b(0x22c)]&&_0x1a602c[_0x30311b(0x189)]?_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x21e)):_0x1a602c[_0x30311b(0x22c)]?_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x211)):_0x1a602c[_0x30311b(0x189)]?_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x1e8)):_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x1ae));}[_0x225ccf(0x1e2)](_0x88c338){const _0x9dff82=_0x225ccf;return _0x88c338?_0x88c338[_0x9dff82(0x22c)]&&_0x88c338[_0x9dff82(0x189)]?_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x235)):_0x88c338[_0x9dff82(0x22c)]?_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x20e)):_0x88c338[_0x9dff82(0x189)]?_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x1be)):_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x19b)):_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x19b));}[_0x225ccf(0x198)](_0x52eb0d,_0x3929c6,_0x35b025,_0x11131f){const _0x512312=_0x225ccf;this[_0x512312(0x1e0)][_0x512312(0x198)](_0x52eb0d,_0x3929c6,_0x35b025,_0x11131f);}[_0x225ccf(0x237)](_0x7b4d0b){const _0xb735c6=_0x225ccf;this[_0xb735c6(0x1e0)][_0xb735c6(0x237)](_0x7b4d0b);}[_0x225ccf(0x1b3)](_0x2105d0){const _0x24378e=_0x225ccf;this[_0x24378e(0x1e0)][_0x24378e(0x1ca)][_0x24378e(0x1b3)](_0x2105d0);}[_0x225ccf(0x1a6)](_0x39b48e=!0x1){const _0x1e9762=_0x225ccf;this[_0x1e9762(0x1e0)][_0x1e9762(0x1ca)][_0x1e9762(0x1a6)](_0x39b48e);}[_0x225ccf(0x1c5)](_0x1268c3,_0x1b5478){const _0xcd5b17=_0x225ccf;this[_0xcd5b17(0x1e0)][_0xcd5b17(0x236)][_0xcd5b17(0x1f9)](_0x1268c3,_0x1b5478);}[_0x225ccf(0x228)](){const _0x560244=_0x225ccf;this[_0x560244(0x1e0)][_0x560244(0x236)][_0x560244(0x228)]();}[_0x225ccf(0x20f)](){const _0x35daeb=_0x225ccf;this[_0x35daeb(0x1e0)][_0x35daeb(0x1ca)][_0x35daeb(0x210)]=!0x0;}[_0x225ccf(0x22f)](){const _0x1aef81=_0x225ccf;this[_0x1aef81(0x1e0)][_0x1aef81(0x1ca)][_0x1aef81(0x210)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c7482=_0x196f;(function(_0xf3df01,_0x388a1a){const _0x320645=_0x196f,_0x4febed=_0xf3df01();while(!![]){try{const _0x315019=-parseInt(_0x320645(0x1f7))/0x1+-parseInt(_0x320645(0x276))/0x2*(parseInt(_0x320645(0x208))/0x3)+parseInt(_0x320645(0x254))/0x4*(parseInt(_0x320645(0x265))/0x5)+-parseInt(_0x320645(0x271))/0x6*(parseInt(_0x320645(0x268))/0x7)+parseInt(_0x320645(0x1ff))/0x8+parseInt(_0x320645(0x231))/0x9+parseInt(_0x320645(0x1e2))/0xa;if(_0x315019===_0x388a1a)break;else _0x4febed['push'](_0x4febed['shift']());}catch(_0x422dbf){_0x4febed['push'](_0x4febed['shift']());}}}(_0x27fd,0xa8405));import{CKEditorError as _0x3020fd,ObservableMixin as _0x51b5c0,uid as _0x47606b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x12c384,AIContextTextResourceType as _0x1f3675}from'../../aicore/model/aicontext.js';import{escape as _0x1199bb}from'es-toolkit/compat';function _0x196f(_0x2abfe1,_0x976967){const _0x27fdb1=_0x27fd();return _0x196f=function(_0x196f2d,_0xa6c640){_0x196f2d=_0x196f2d-0x1e2;let _0xd5e517=_0x27fdb1[_0x196f2d];return _0xd5e517;},_0x196f(_0x2abfe1,_0x976967);}import{errorsMap as _0x2096e4}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1c7482(0x251),_0x1c7482(0x263),_0x1c7482(0x24a),_0x1c7482(0x200),_0x1c7482(0x26b),_0x1c7482(0x239),_0x1c7482(0x253),_0x1c7482(0x1e6),_0x1c7482(0x26d)];function _0x27fd(){const _0x1daef5=['3GWksIm','_pendingContextItems','text/html','current-document','label','version','enabled','size','name','toolName','get','push','FILE','_removeContextItem','abortController','HTML','urls','_connector','ai-chat-context-unsupported-type','removeFromContext','type','_convertTextResourceToFile','hidden','TOOL','ai-chat-context-invalid-data','text/plain','_ongoingUploads','files-','map','addSelectionToContext','_startUploadOperation','_toggleAddCurrentDocumentOptionVisibility','isHidden','substring','object','forEach','ai-chat-document-upload-failed','delete','_ongoingUploadOperations','getId','getPendingContextItems','9071802LvmPho','stack','loadSourceResources','start','isCurrentDocumentInConversation','isSelectionInContext','length','selection','addContextOptionsChanged','_mapContextItemToRequestData','has','addToConversationContext','text/markdown','_addToConversationContextItem','MARKDOWN','_getCustomSourcesInitialState','_isResourceInContext','_findSourceIdsByResourceId','_finishContextItemLoading','attributes','clearPendingContextItems','files','customItems','sessionId','url','contextItemLoadingEnded','isCurrentDocumentInContext','getData','find','uploadUrl','File','getSentContextItems','contextItemAdded','fire','sourceResourcesLoaded','5438380uvvklV','resources','addFilesToContext','string','data','removeSelectionFromContext','sources','uiId','init','_config','code','end','values','_createContextItemFromContent','uploadDocument','contextItemRemoved','isReadOnly','5hBLguD','set','ai-chat-url-upload-failed','1589434dVVMhr','addResourceToContext','addToolItemToContext','error','abort','uploadProgressChanged','content','getResources','mapContextItemsToRequestData','12APukff','addUrlToContext','from','fetchDocument','DOCUMENT','474178qXTjvU','2013460xIfTFF','file-','populateFromMessage','ai-chat-source-resources-load-failed','resourceStateChanged','uploadFile','_addContextOptionsState','Current\x20document','ai-request-aborted','TEXT','resourceId','ai-chat-file-upload-failed','_conversationContextItems','_updateResourceInContextState','addCurrentDocumentToContext','getDocument','filter','URL','all','object\x20with\x20content\x20and\x20type\x20properties','url-','1197799OwqscW','document','ai-chat-source-not-found','updateCurrentDocument','ai-chat-resource-no-data','_setAddContextOptionsDefaultState','_addContextItem','_finishUploadOperation','74000qJKKQe','contextSent','message','isInContext','mcpServerName','ai-chat-resource-load-failed','startsWith','_ownerId','SELECTION'];_0x27fd=function(){return _0x1daef5;};return _0x27fd();}export class AIChatContext extends _0x51b5c0(){[_0x1c7482(0x219)];[_0x1c7482(0x25d)];[_0x1c7482(0x206)];constructor({connector:_0x4a21bc,config:_0x39185d,ownerId:_0x5191b3}){const _0x1e39ed=_0x1c7482;super(),this[_0x1e39ed(0x219)]=_0x4a21bc,this[_0x1e39ed(0x25d)]=_0x39185d,this[_0x1e39ed(0x206)]=_0x5191b3;}[_0x1c7482(0x25c)](){const _0x4042d9=_0x1c7482;this[_0x4042d9(0x209)]=new Map(),this[_0x4042d9(0x1ee)]=new Map(),this[_0x4042d9(0x222)]=new Map(),this[_0x4042d9(0x22e)]=new Map(),this[_0x4042d9(0x1fc)]();}[_0x1c7482(0x230)](){const _0x2b981a=_0x1c7482;return this[_0x2b981a(0x209)];}async[_0x1c7482(0x1e4)](_0x508e6d){const _0x2f4cd7=_0x1c7482,_0x15d3bc=await this[_0x2f4cd7(0x261)](_0x508e6d);return this[_0x2f4cd7(0x23e)](_0x15d3bc),_0x2f4cd7(0x20b)===_0x15d3bc[_0x2f4cd7(0x25b)]&&this[_0x2f4cd7(0x227)](),_0x15d3bc;}async[_0x1c7482(0x261)](_0x1fff8e){const _0x2cd197=_0x1c7482;if(_0x1fff8e[_0x2cd197(0x21c)]===_0x12c384[_0x2cd197(0x275)]){const _0x55c7d3=await this[_0x2cd197(0x219)][_0x2cd197(0x274)](this[_0x2cd197(0x206)],_0x1fff8e['id'])[_0x2cd197(0x1f1)]();return{'id':_0x2cd197(0x20b),'uiId':_0x2cd197(0x20b),'label':_0x2cd197(0x1e9),'type':_0x1fff8e[_0x2cd197(0x21c)],'content':_0x55c7d3[_0x2cd197(0x26e)],'hidden':this[_0x2cd197(0x1ee)][_0x2cd197(0x23b)](_0x2cd197(0x20b)),'version':_0x55c7d3[_0x2cd197(0x244)]?.[_0x2cd197(0x20d)],'sessionId':_0x55c7d3[_0x2cd197(0x244)]?.[_0x2cd197(0x248)]};}if(_0x1fff8e[_0x2cd197(0x21c)]===_0x12c384[_0x2cd197(0x21f)])return{'id':_0x1fff8e['id'],'uiId':_0x1fff8e['id'],'label':_0x1fff8e[_0x2cd197(0x258)]?.[_0x2cd197(0x20c)]||_0x1fff8e['id'],'type':_0x12c384[_0x2cd197(0x21f)],'mcpServerName':_0x1fff8e[_0x2cd197(0x203)],'toolName':_0x1fff8e[_0x2cd197(0x211)],'data':_0x1fff8e[_0x2cd197(0x258)]||{}};return{'id':_0x1fff8e['id'],'uiId':_0x1fff8e['id'],'label':_0x1fff8e[_0x2cd197(0x244)]?.[_0x2cd197(0x20c)]||_0x1fff8e[_0x2cd197(0x210)]||_0x1fff8e[_0x2cd197(0x249)]||_0x1fff8e['id'],'type':_0x1fff8e[_0x2cd197(0x21c)],..._0x1fff8e?.[_0x2cd197(0x244)]?.[_0x2cd197(0x1ec)]?{'resourceId':_0x1fff8e[_0x2cd197(0x244)]?.[_0x2cd197(0x1ec)]}:{}};}[_0x1c7482(0x250)](){const _0x2a40cc=_0x1c7482;return new Map(this[_0x2a40cc(0x1ee)]);}[_0x1c7482(0x21b)](_0x1f56c8){const _0x6495f8=_0x1c7482,_0x2555e9=this[_0x6495f8(0x209)][_0x6495f8(0x212)](_0x1f56c8);_0x2555e9?.[_0x6495f8(0x264)]||this[_0x6495f8(0x215)](_0x1f56c8);}[_0x1c7482(0x245)](){const _0x3216f2=_0x1c7482;if(0x0===this[_0x3216f2(0x209)][_0x3216f2(0x20f)])return;for(const _0x5b6d82 of this[_0x3216f2(0x209)][_0x3216f2(0x260)]())this[_0x3216f2(0x215)](_0x5b6d82[_0x3216f2(0x25b)]);const _0x4589e6=this[_0x3216f2(0x1ee)][_0x3216f2(0x212)](_0x3216f2(0x20b))||this[_0x3216f2(0x209)][_0x3216f2(0x212)](_0x3216f2(0x20b));_0x4589e6&&this[_0x3216f2(0x1fd)]({..._0x4589e6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1c7482(0x23c)](_0x173c2f){const _0x43a98b=_0x1c7482;for(const _0x585888 of _0x173c2f[_0x43a98b(0x260)]())this[_0x43a98b(0x23e)](_0x585888);this[_0x43a98b(0x245)](),this[_0x43a98b(0x252)](_0x43a98b(0x200),{'contextItems':Array[_0x43a98b(0x273)](this[_0x43a98b(0x250)]()[_0x43a98b(0x260)]())});}[_0x1c7482(0x24b)](){const _0x1ac4d4=_0x1c7482;return this[_0x1ac4d4(0x209)][_0x1ac4d4(0x23b)](_0x1ac4d4(0x20b));}[_0x1c7482(0x236)](){const _0x121995=_0x1c7482;return this[_0x121995(0x209)][_0x121995(0x23b)](_0x121995(0x238));}[_0x1c7482(0x235)](){const _0x39955e=_0x1c7482;return this[_0x39955e(0x1ee)][_0x39955e(0x23b)](_0x39955e(0x20b));}static[_0x1c7482(0x270)](_0x57d930){const _0x201539=_0x1c7482;return Array[_0x201539(0x273)](_0x57d930[_0x201539(0x260)]())[_0x201539(0x224)](_0x1823d4=>this[_0x201539(0x23a)](_0x1823d4))[_0x201539(0x1f2)](_0xaa33a1=>null!==_0xaa33a1);}async[_0x1c7482(0x256)](_0x183d11,_0x30306f,_0x4733b1=_0x12c384[_0x1c7482(0x214)]){const _0x4f0555=_0x1c7482,_0x55c8fd=_0x4f0555(0x223)+_0x47606b();this[_0x4f0555(0x226)](_0x55c8fd);try{await Promise[_0x4f0555(0x1f4)](_0x183d11[_0x4f0555(0x224)](async _0x5d6908=>{const _0x290386=_0x4f0555,_0x51e79a=_0x290386(0x1e3)+_0x47606b(),_0x48b5f8=_0x1199bb(_0x5d6908[_0x290386(0x210)]);try{this[_0x290386(0x1fd)]({'type':_0x4733b1,'label':_0x30306f?.[_0x290386(0x20c)]||_0x48b5f8,'uiId':_0x51e79a,'resourceId':_0x30306f?.[_0x290386(0x1ec)]},!0x0);const _0x15fd97=this[_0x290386(0x219)][_0x290386(0x1e7)](this[_0x290386(0x206)],_0x5d6908,_0x30306f);this[_0x290386(0x222)][_0x290386(0x266)](_0x51e79a,_0x15fd97[_0x290386(0x216)]);const {id:_0x377056}=await _0x15fd97[_0x290386(0x22f)]();this[_0x290386(0x222)][_0x290386(0x22d)](_0x51e79a),this[_0x290386(0x243)]({'type':_0x4733b1,'id':_0x377056,'label':_0x30306f?.[_0x290386(0x20c)]||_0x48b5f8,'uiId':_0x51e79a,'resourceId':_0x30306f?.[_0x290386(0x1ec)]},!0x1);}catch(_0xefb67b){this[_0x290386(0x222)][_0x290386(0x22d)](_0x51e79a);if(!(_0xefb67b instanceof _0x3020fd&&_0xefb67b[_0x290386(0x201)][_0x290386(0x205)](_0x290386(0x1ea)))){const _0x1c7c23=_0x2096e4[_0x290386(0x212)](_0xefb67b[_0x290386(0x25e)])||_0x290386(0x1ed),_0xdd34dc=new _0x3020fd(_0x1c7c23,null,{'fileName':_0x48b5f8,..._0xefb67b});_0xdd34dc[_0x290386(0x232)]=_0xefb67b[_0x290386(0x232)],this[_0x290386(0x252)](_0x290386(0x26b),{'error':_0xdd34dc});}this[_0x290386(0x215)](_0x51e79a);}}));}finally{this[_0x4f0555(0x1fe)](_0x55c8fd);}}[_0x1c7482(0x1f0)](_0x380904){const _0x3fe847=_0x1c7482;if(this[_0x3fe847(0x24b)]()||!this[_0x3fe847(0x1e8)][_0x3fe847(0x1f8)][_0x3fe847(0x20e)])return;const _0x5ddef4={'type':_0x12c384[_0x3fe847(0x275)],'uiId':_0x3fe847(0x20b),'label':_0x380904,'isReadOnly':this[_0x3fe847(0x1ee)][_0x3fe847(0x23b)](_0x3fe847(0x20b)),'hidden':this[_0x3fe847(0x1ee)][_0x3fe847(0x23b)](_0x3fe847(0x20b))};this[_0x3fe847(0x1fd)](_0x5ddef4);}async[_0x1c7482(0x1fa)](_0x238c88,_0x566f89,_0x4ac2a8,_0x1d2ea7){const _0x27a6e0=_0x1c7482,_0x94fc33=this[_0x27a6e0(0x209)][_0x27a6e0(0x212)](_0x27a6e0(0x20b));if(_0x94fc33&&_0x238c88){_0x94fc33[_0x27a6e0(0x238)]=_0x1d2ea7?_0x1d2ea7[_0x27a6e0(0x224)](_0x3dd630=>({'start':_0x3dd630[_0x27a6e0(0x234)],'end':_0x3dd630[_0x27a6e0(0x25f)]})):[];try{if(_0x94fc33[_0x27a6e0(0x20d)]===_0x566f89)return;const {id:_0x20c2cd}=await this[_0x27a6e0(0x219)][_0x27a6e0(0x262)](this[_0x27a6e0(0x206)],_0x238c88,{'version':_0x566f89,'sessionId':_0x4ac2a8})[_0x27a6e0(0x22f)]();_0x94fc33['id']=_0x20c2cd,_0x94fc33[_0x27a6e0(0x26e)]=_0x238c88,_0x94fc33[_0x27a6e0(0x20d)]=_0x566f89,_0x94fc33[_0x27a6e0(0x248)]=_0x4ac2a8;}catch(_0x4cff72){const _0x2c8eff=new _0x3020fd(_0x27a6e0(0x22c),null);_0x2c8eff[_0x27a6e0(0x232)]=_0x4cff72[_0x27a6e0(0x232)],this[_0x27a6e0(0x252)](_0x27a6e0(0x26b),{'error':_0x2c8eff});}}}[_0x1c7482(0x225)](_0x17d8db){const _0xc246a0=_0x1c7482;this[_0xc246a0(0x1fd)]({'type':_0x12c384[_0xc246a0(0x207)],'label':_0x17d8db,'uiId':_0xc246a0(0x238),'content':_0x17d8db});}[_0x1c7482(0x259)](){const _0x46727d=_0x1c7482;this[_0x46727d(0x215)](_0x46727d(0x238));}async[_0x1c7482(0x272)](_0xf784a8,_0x428649){const _0x4b037e=_0x1c7482,_0x52dffd=_0x4b037e(0x1f6)+_0x47606b();this[_0x4b037e(0x226)](_0x52dffd);const _0x35d4db=_0x4b037e(0x1f6)+_0x47606b();try{this[_0x4b037e(0x1fd)]({'type':_0x12c384[_0x4b037e(0x1f3)],'label':_0x428649?.[_0x4b037e(0x20c)]||_0xf784a8,'uiId':_0x35d4db,'resourceId':_0x428649?.[_0x4b037e(0x1ec)]},!0x0);const _0x43ff9a=this[_0x4b037e(0x219)][_0x4b037e(0x24e)](this[_0x4b037e(0x206)],_0xf784a8,_0x428649);this[_0x4b037e(0x222)][_0x4b037e(0x266)](_0x35d4db,_0x43ff9a[_0x4b037e(0x216)]);const {id:_0x94526f}=await _0x43ff9a[_0x4b037e(0x22f)]();this[_0x4b037e(0x222)][_0x4b037e(0x22d)](_0x35d4db),this[_0x4b037e(0x243)]({'type':_0x12c384[_0x4b037e(0x1f3)],'id':_0x94526f,'label':_0x428649?.[_0x4b037e(0x20c)]||_0xf784a8,'uiId':_0x35d4db,'resourceId':_0x428649?.[_0x4b037e(0x1ec)]},!0x1);}catch(_0x341090){this[_0x4b037e(0x222)][_0x4b037e(0x22d)](_0x35d4db),(_0x341090[_0x4b037e(0x201)][_0x4b037e(0x205)](_0x4b037e(0x1ea))||this[_0x4b037e(0x252)](_0x4b037e(0x26b),{'error':new _0x3020fd(_0x4b037e(0x267),this,{'url':_0xf784a8,'originalError':_0x341090}),'url':_0xf784a8}),this[_0x4b037e(0x215)](_0x35d4db));}finally{this[_0x4b037e(0x1fe)](_0x52dffd);}}[_0x1c7482(0x26a)](_0x94f52c){const _0x4c4f90=_0x1c7482;_0x94f52c['id']=_0x94f52c['id']??_0x47606b()[_0x4c4f90(0x229)](0x0,0x15),this[_0x4c4f90(0x209)][_0x4c4f90(0x266)](_0x94f52c[_0x4c4f90(0x25b)],_0x94f52c),this[_0x4c4f90(0x252)](_0x4c4f90(0x251),{'contextItem':_0x94f52c,'isLoading':!0x1});}async[_0x1c7482(0x233)](_0x3332fe,_0x2f5860,_0x4d3479){const _0x595d4a=_0x1c7482,_0x38185a=this[_0x595d4a(0x1e8)][_0x595d4a(0x25a)][_0x595d4a(0x24d)](_0x3172b4=>_0x3172b4['id']===_0x3332fe);if(!_0x38185a)return this[_0x595d4a(0x252)](_0x595d4a(0x26b),{'error':new _0x3020fd(_0x595d4a(0x1f9),this,{'sourceId':_0x3332fe}),'sourceId':_0x3332fe}),[];try{const _0x5cd65a=(await _0x38185a[_0x595d4a(0x26f)](_0x2f5860))[_0x595d4a(0x224)](_0x862a22=>{const _0x3a1a13=_0x595d4a,_0x3d3684=this[_0x3a1a13(0x241)](_0x862a22['id']);return{..._0x862a22,'isInContext':_0x3d3684};});return _0x38185a[_0x595d4a(0x255)]=_0x5cd65a,this[_0x595d4a(0x252)](_0x595d4a(0x253),{'sourceId':_0x3332fe,'source':_0x38185a,'resources':_0x5cd65a,'uid':_0x4d3479}),_0x5cd65a;}catch(_0x54c518){return this[_0x595d4a(0x252)](_0x595d4a(0x26b),{'error':new _0x3020fd(_0x595d4a(0x1e5),this,{'sourceId':_0x3332fe,'originalError':_0x54c518}),'sourceId':_0x3332fe,'sourceLabel':_0x38185a[_0x595d4a(0x20c)]}),[];}}async[_0x1c7482(0x269)](_0xe81ecc,_0x5b2696){const _0x1679b9=_0x1c7482;if(this[_0x1679b9(0x241)](_0x5b2696['id']))return;let _0x143298=_0x5b2696[_0x1679b9(0x258)];if(!_0x143298&&_0xe81ecc[_0x1679b9(0x24c)])try{_0x143298=await _0xe81ecc[_0x1679b9(0x24c)](_0x5b2696['id']);}catch(_0x3d9ab7){return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x204),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'originalError':_0x3d9ab7}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}if(_0x143298)switch(_0x5b2696[_0x1679b9(0x21c)]){case _0x12c384[_0x1679b9(0x1f3)]:if(_0x1679b9(0x257)!=typeof _0x143298)return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x257),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});await this[_0x1679b9(0x272)](_0x143298,{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']});break;case _0x12c384[_0x1679b9(0x214)]:if(!(_0x143298 instanceof File))return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x24f),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});await this[_0x1679b9(0x256)]([_0x143298],{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']});break;case _0x12c384[_0x1679b9(0x1eb)]:if(_0x1679b9(0x22a)!=typeof _0x143298||!(_0x1679b9(0x26e)in _0x143298)||!(_0x1679b9(0x21c)in _0x143298))return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x1f5),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});_0x143298=AIChatContext[_0x1679b9(0x21d)](_0x143298,_0x5b2696[_0x1679b9(0x20c)]),await this[_0x1679b9(0x256)]([_0x143298],{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']},_0x12c384[_0x1679b9(0x1eb)]);break;case _0x12c384[_0x1679b9(0x21f)]:break;default:this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x21a),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'resourceType':_0x5b2696[_0x1679b9(0x21c)]}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}else this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x1fb),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}static[_0x1c7482(0x21d)](_0x57ab0c,_0x4b2d56){const _0x82a56a=_0x1c7482;switch(_0x57ab0c[_0x82a56a(0x21c)]){case _0x1f3675[_0x82a56a(0x23f)]:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x23d)});case _0x1f3675[_0x82a56a(0x217)]:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x20a)});default:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x221)});}}static[_0x1c7482(0x23a)](_0x909e6f){const _0x1c5c93=_0x1c7482;switch(_0x909e6f[_0x1c5c93(0x21c)]){case _0x12c384[_0x1c5c93(0x214)]:return{'type':_0x12c384[_0x1c5c93(0x214)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x1f3)]:return{'type':_0x12c384[_0x1c5c93(0x1f3)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x275)]:return{'type':_0x12c384[_0x1c5c93(0x275)],'id':_0x909e6f['id'],..._0x909e6f[_0x1c5c93(0x238)]?.[_0x1c5c93(0x237)]&&{'selection':_0x909e6f[_0x1c5c93(0x238)]}};case _0x12c384[_0x1c5c93(0x1eb)]:return{'type':_0x12c384[_0x1c5c93(0x214)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x21f)]:{const _0x22cab6=_0x909e6f;return{'type':_0x12c384[_0x1c5c93(0x21f)],'mcpServerName':_0x22cab6[_0x1c5c93(0x203)],'toolName':_0x22cab6[_0x1c5c93(0x211)],'data':_0x22cab6[_0x1c5c93(0x258)],'id':_0x22cab6['id']};}default:return null;}}[_0x1c7482(0x1fd)](_0x5b7229,_0x236ffa=!0x1){const _0x1c8ce2=_0x1c7482;if(this[_0x1c8ce2(0x209)][_0x1c8ce2(0x266)](_0x5b7229[_0x1c8ce2(0x25b)],_0x5b7229),_0x5b7229[_0x1c8ce2(0x21e)]||this[_0x1c8ce2(0x252)](_0x1c8ce2(0x251),{'contextItem':_0x5b7229,'isLoading':_0x236ffa}),_0x1c8ce2(0x20b)===_0x5b7229[_0x1c8ce2(0x25b)]&&this[_0x1c8ce2(0x227)](),_0x5b7229[_0x1c8ce2(0x1ec)]){const _0x49d34e=this[_0x1c8ce2(0x242)](_0x5b7229[_0x1c8ce2(0x1ec)]);_0x49d34e&&_0x49d34e[_0x1c8ce2(0x22b)](_0x214820=>{const _0x255f04=_0x1c8ce2;this[_0x255f04(0x1ef)](_0x214820,_0x5b7229[_0x255f04(0x1ec)],!0x0);});}}[_0x1c7482(0x215)](_0x1bf646){const _0x40ec05=_0x1c7482,_0x1cd47f=this[_0x40ec05(0x209)][_0x40ec05(0x212)](_0x1bf646),_0x5355b2=this[_0x40ec05(0x222)][_0x40ec05(0x212)](_0x1bf646);if(_0x5355b2&&(_0x5355b2[_0x40ec05(0x26c)](),this[_0x40ec05(0x222)][_0x40ec05(0x22d)](_0x1bf646)),_0x1cd47f?.[_0x40ec05(0x1ec)]){const _0xea5ef0=this[_0x40ec05(0x242)](_0x1cd47f[_0x40ec05(0x1ec)]);_0xea5ef0&&_0xea5ef0[_0x40ec05(0x22b)](_0x4a8d22=>{const _0x17cff4=_0x40ec05;this[_0x17cff4(0x1ef)](_0x4a8d22,_0x1cd47f[_0x17cff4(0x1ec)],!0x1);});}this[_0x40ec05(0x209)][_0x40ec05(0x22d)](_0x1bf646),this[_0x40ec05(0x252)](_0x40ec05(0x263),{'uiId':_0x1bf646,'type':_0x1cd47f?.[_0x40ec05(0x21c)]}),_0x40ec05(0x20b)===_0x1bf646&&this[_0x40ec05(0x227)]();}[_0x1c7482(0x243)](_0xe94f7,_0x57c763){const _0xadc9ca=_0x1c7482;if(this[_0xadc9ca(0x209)][_0xadc9ca(0x23b)](_0xe94f7[_0xadc9ca(0x25b)])&&(this[_0xadc9ca(0x209)][_0xadc9ca(0x266)](_0xe94f7[_0xadc9ca(0x25b)],_0xe94f7),this[_0xadc9ca(0x252)](_0xadc9ca(0x24a),{'contextItem':_0xe94f7,'isLoading':_0x57c763}),_0xe94f7[_0xadc9ca(0x1ec)])){const _0x32d6ab=this[_0xadc9ca(0x242)](_0xe94f7[_0xadc9ca(0x1ec)]);_0x32d6ab&&_0x32d6ab[_0xadc9ca(0x22b)](_0xd290e2=>{const _0x365536=_0xadc9ca;this[_0x365536(0x1ef)](_0xd290e2,_0xe94f7[_0x365536(0x1ec)],!0x0);});}}[_0x1c7482(0x23e)](_0x25148e){const _0x5eb961=_0x1c7482;this[_0x5eb961(0x1ee)][_0x5eb961(0x266)](_0x25148e[_0x5eb961(0x25b)],_0x25148e);}[_0x1c7482(0x1fc)](){const _0x3e31d0=_0x1c7482;this[_0x3e31d0(0x1e8)]={'document':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x1f8)]?.[_0x3e31d0(0x20e)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x218)]?.[_0x3e31d0(0x20e)]},'files':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x246)]?.[_0x3e31d0(0x20e)]},'sources':this[_0x3e31d0(0x240)](),'customItems':this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x247)]?.[_0x3e31d0(0x224)](_0x41c653=>({..._0x41c653,'enabled':!0x0}))??[]},this[_0x3e31d0(0x252)](_0x3e31d0(0x239),{'options':this[_0x3e31d0(0x1e8)]});}[_0x1c7482(0x240)](){const _0x264e4e=_0x1c7482;return this[_0x264e4e(0x25d)]?.[_0x264e4e(0x25a)]?.[_0x264e4e(0x224)](_0x1aebf1=>({..._0x1aebf1,'resources':[]}))??[];}[_0x1c7482(0x227)](){const _0x5eee95=_0x1c7482,_0xb5e343=this[_0x5eee95(0x24b)]()||this[_0x5eee95(0x235)]();this[_0x5eee95(0x1e8)][_0x5eee95(0x1f8)][_0x5eee95(0x228)]=_0xb5e343,this[_0x5eee95(0x252)](_0x5eee95(0x239),{'options':this[_0x5eee95(0x1e8)]});}[_0x1c7482(0x241)](_0x1d7ee4){const _0x35816d=_0x1c7482;for(const _0x5b6aa1 of this[_0x35816d(0x209)][_0x35816d(0x260)]())if(_0x5b6aa1[_0x35816d(0x1ec)]===_0x1d7ee4)return!0x0;for(const _0x4e22ba of this[_0x35816d(0x1ee)][_0x35816d(0x260)]())if(_0x4e22ba[_0x35816d(0x1ec)]===_0x1d7ee4)return!0x0;return!0x1;}[_0x1c7482(0x242)](_0x5b638d){const _0x7d778a=_0x1c7482,_0x4373fe=[];for(const _0x13fbe4 of this[_0x7d778a(0x1e8)][_0x7d778a(0x25a)]){_0x13fbe4[_0x7d778a(0x255)][_0x7d778a(0x24d)](_0x5f59db=>_0x5f59db['id']===_0x5b638d)&&_0x4373fe[_0x7d778a(0x213)](_0x13fbe4['id']);}return 0x0===_0x4373fe[_0x7d778a(0x237)]?null:_0x4373fe;}[_0x1c7482(0x1ef)](_0x76d620,_0x582be5,_0x34de7a){const _0x5da970=_0x1c7482,_0x27ae59=this[_0x5da970(0x1e8)][_0x5da970(0x25a)][_0x5da970(0x24d)](_0x1e44ee=>_0x1e44ee['id']===_0x76d620);if(!_0x27ae59)return;const _0x12b703=_0x27ae59[_0x5da970(0x255)][_0x5da970(0x24d)](_0x8b641b=>_0x8b641b['id']===_0x582be5);_0x12b703&&(_0x12b703[_0x5da970(0x202)]=_0x34de7a,this[_0x5da970(0x252)](_0x5da970(0x1e6),{'sourceId':_0x76d620,'resourceId':_0x582be5,'isInContext':_0x34de7a}));}[_0x1c7482(0x226)](_0x4986fc){const _0x4cd3fd=_0x1c7482;this[_0x4cd3fd(0x22e)][_0x4cd3fd(0x266)](_0x4986fc,!0x0),this[_0x4cd3fd(0x22e)][_0x4cd3fd(0x20f)]&&this[_0x4cd3fd(0x252)](_0x4cd3fd(0x26d),{'isUploadInProgress':!0x0});}[_0x1c7482(0x1fe)](_0x4036fd){const _0x4c8740=_0x1c7482;this[_0x4c8740(0x22e)][_0x4c8740(0x22d)](_0x4036fd),0x0===this[_0x4c8740(0x22e)][_0x4c8740(0x20f)]&&this[_0x4c8740(0x252)](_0x4c8740(0x26d),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
function _0x1b34(_0x4cf6f2,_0x1b735d){const _0x18337a=_0x1833();return _0x1b34=function(_0x1b348d,_0x2556a8){_0x1b348d=_0x1b348d-0xe3;let _0x314fa7=_0x18337a[_0x1b348d];return _0x314fa7;},_0x1b34(_0x4cf6f2,_0x1b735d);}const _0x255bd5=_0x1b34;(function(_0x2b7558,_0x219c7e){const _0x4c7633=_0x1b34,_0x902864=_0x2b7558();while(!![]){try{const _0x387e87=-parseInt(_0x4c7633(0x153))/0x1*(parseInt(_0x4c7633(0x102))/0x2)+-parseInt(_0x4c7633(0x12b))/0x3*(-parseInt(_0x4c7633(0x106))/0x4)+parseInt(_0x4c7633(0x101))/0x5*(parseInt(_0x4c7633(0x16f))/0x6)+parseInt(_0x4c7633(0x114))/0x7*(parseInt(_0x4c7633(0x10b))/0x8)+parseInt(_0x4c7633(0xe8))/0x9+-parseInt(_0x4c7633(0x10a))/0xa*(parseInt(_0x4c7633(0x120))/0xb)+parseInt(_0x4c7633(0x10e))/0xc*(parseInt(_0x4c7633(0x135))/0xd);if(_0x387e87===_0x219c7e)break;else _0x902864['push'](_0x902864['shift']());}catch(_0x1cb89c){_0x902864['push'](_0x902864['shift']());}}}(_0x1833,0xcd78e));import{CKEditorError as _0x345b32,ObservableMixin as _0x169320,uid as _0x1f2165}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3894c2,AIContextTextResourceType as _0x462fc1}from'../../aicore/model/aicontext.js';import{escape as _0x489c5}from'es-toolkit/compat';function _0x1833(){const _0x44eae6=['name','hidden','ai-chat-url-upload-failed','files-','abortController','object','uploadFile','document','getData','_finishContextItemLoading','ai-request-aborted','contextItemAdded','MARKDOWN','615585ZKGoAX','5752fxyMPz','attributes','ai-chat-resource-load-failed','DOCUMENT','4mqGzNL','ai-chat-document-upload-failed','fetchDocument','loadSourceResources','12568370xKVYKJ','212888KpkPfe','contextItemRemoved','size','4260Lwukgg','isCurrentDocumentInContext','HTML','mcpServerName','error','_addContextOptionsState','49EhyXVB','delete','values','_toggleAddCurrentDocumentOptionVisibility','getDocument','url-','SELECTION','ai-chat-file-upload-failed','_finishUploadOperation','customItems','content','removeSelectionFromContext','11lKcAfJ','_getCustomSourcesInitialState','_convertTextResourceToFile','abort','_isResourceInContext','enabled','_ongoingUploadOperations','_removeContextItem','toolName','selection','filter','3063270MFWXOE','ai-chat-context-invalid-data','substring','_startUploadOperation','uiId','url','map','URL','_ownerId','addContextOptionsChanged','364okWaMa','_updateResourceInContextState','File','_findSourceIdsByResourceId','FILE','set','getSentContextItems','ai-chat-context-unsupported-type','getResources','sessionId','from','message','type','start','isHidden','resourceStateChanged','code','getPendingContextItems','addUrlToContext','_connector','uploadDocument','clearPendingContextItems','addCurrentDocumentToContext','TEXT','addFilesToContext','version','ai-chat-source-resources-load-failed','contextSent','resources','populateFromMessage','446pQlLCO','getId','contextItemLoadingEnded','files','text/plain','current-document','forEach','_addContextItem','uploadUrl','_pendingContextItems','_mapContextItemToRequestData','isSelectionInContext','ai-chat-resource-no-data','uploadProgressChanged','sourceResourcesLoaded','length','object\x20with\x20content\x20and\x20type\x20properties','sources','_config','TOOL','stack','find','data','text/markdown','push','string','_conversationContextItems','isInContext','66DOaVvN','resourceId','get','ai-chat-source-not-found','_createContextItemFromContent','mapContextItemsToRequestData','_addToConversationContextItem','urls','Current\x20document','removeFromContext','end','_ongoingUploads','addToConversationContext','isCurrentDocumentInConversation','startsWith','fire','addSelectionToContext','7285977sxBwnY','file-','isReadOnly','has','all','updateCurrentDocument','label','text/html','_setAddContextOptionsDefaultState','addToolItemToContext','init','addResourceToContext'];_0x1833=function(){return _0x44eae6;};return _0x1833();}import{errorsMap as _0x1d81cc}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x255bd5(0xff),_0x255bd5(0x10c),_0x255bd5(0x155),_0x255bd5(0x150),_0x255bd5(0x112),_0x255bd5(0x134),_0x255bd5(0x161),_0x255bd5(0x144),_0x255bd5(0x160)];export class AIChatContext extends _0x169320(){[_0x255bd5(0x148)];[_0x255bd5(0x165)];[_0x255bd5(0x133)];constructor({connector:_0x2b136a,config:_0x40d777,ownerId:_0x40079e}){const _0x379eca=_0x255bd5;super(),this[_0x379eca(0x148)]=_0x2b136a,this[_0x379eca(0x165)]=_0x40d777,this[_0x379eca(0x133)]=_0x40079e;}[_0x255bd5(0xf2)](){const _0x275dd5=_0x255bd5;this[_0x275dd5(0x15c)]=new Map(),this[_0x275dd5(0x16d)]=new Map(),this[_0x275dd5(0x17a)]=new Map(),this[_0x275dd5(0x126)]=new Map(),this[_0x275dd5(0xf0)]();}[_0x255bd5(0x146)](){const _0x1cb9d1=_0x255bd5;return this[_0x1cb9d1(0x15c)];}async[_0x255bd5(0x152)](_0x1b1d1b){const _0x4bce18=_0x255bd5,_0x569568=await this[_0x4bce18(0x173)](_0x1b1d1b);return this[_0x4bce18(0x175)](_0x569568),_0x4bce18(0x158)===_0x569568[_0x4bce18(0x12f)]&&this[_0x4bce18(0x117)](),_0x569568;}async[_0x255bd5(0x173)](_0x4776a4){const _0x2fcc04=_0x255bd5;if(_0x4776a4[_0x2fcc04(0x141)]===_0x3894c2[_0x2fcc04(0x105)]){const _0x34ac83=await this[_0x2fcc04(0x148)][_0x2fcc04(0x108)](this[_0x2fcc04(0x133)],_0x4776a4['id'])[_0x2fcc04(0x118)]();return{'id':_0x2fcc04(0x158),'uiId':_0x2fcc04(0x158),'label':_0x2fcc04(0x177),'type':_0x4776a4[_0x2fcc04(0x141)],'content':_0x34ac83[_0x2fcc04(0x11e)],'hidden':this[_0x2fcc04(0x16d)][_0x2fcc04(0xeb)](_0x2fcc04(0x158)),'version':_0x34ac83[_0x2fcc04(0x103)]?.[_0x2fcc04(0x14e)],'sessionId':_0x34ac83[_0x2fcc04(0x103)]?.[_0x2fcc04(0x13e)]};}if(_0x4776a4[_0x2fcc04(0x141)]===_0x3894c2[_0x2fcc04(0x166)])return{'id':_0x4776a4['id'],'uiId':_0x4776a4['id'],'label':_0x4776a4[_0x2fcc04(0x169)]?.[_0x2fcc04(0xee)]||_0x4776a4['id'],'type':_0x3894c2[_0x2fcc04(0x166)],'mcpServerName':_0x4776a4[_0x2fcc04(0x111)],'toolName':_0x4776a4[_0x2fcc04(0x128)],'data':_0x4776a4[_0x2fcc04(0x169)]||{}};return{'id':_0x4776a4['id'],'uiId':_0x4776a4['id'],'label':_0x4776a4[_0x2fcc04(0x103)]?.[_0x2fcc04(0xee)]||_0x4776a4[_0x2fcc04(0xf4)]||_0x4776a4[_0x2fcc04(0x130)]||_0x4776a4['id'],'type':_0x4776a4[_0x2fcc04(0x141)],..._0x4776a4?.[_0x2fcc04(0x103)]?.[_0x2fcc04(0x170)]?{'resourceId':_0x4776a4[_0x2fcc04(0x103)]?.[_0x2fcc04(0x170)]}:{}};}[_0x255bd5(0x13b)](){const _0x447385=_0x255bd5;return new Map(this[_0x447385(0x16d)]);}[_0x255bd5(0x178)](_0x4ddb70){const _0x875614=_0x255bd5,_0x4c231b=this[_0x875614(0x15c)][_0x875614(0x171)](_0x4ddb70);_0x4c231b?.[_0x875614(0xea)]||this[_0x875614(0x127)](_0x4ddb70);}[_0x255bd5(0x14a)](){const _0x315eaa=_0x255bd5;if(0x0===this[_0x315eaa(0x15c)][_0x315eaa(0x10d)])return;for(const _0x42516c of this[_0x315eaa(0x15c)][_0x315eaa(0x116)]())this[_0x315eaa(0x127)](_0x42516c[_0x315eaa(0x12f)]);const _0x2cafa9=this[_0x315eaa(0x16d)][_0x315eaa(0x171)](_0x315eaa(0x158))||this[_0x315eaa(0x15c)][_0x315eaa(0x171)](_0x315eaa(0x158));_0x2cafa9&&this[_0x315eaa(0x15a)]({..._0x2cafa9,'isReadOnly':!0x0,'hidden':!0x0});}[_0x255bd5(0xe3)](_0x180621){const _0x1d79b2=_0x255bd5;for(const _0x2530da of _0x180621[_0x1d79b2(0x116)]())this[_0x1d79b2(0x175)](_0x2530da);this[_0x1d79b2(0x14a)](),this[_0x1d79b2(0xe6)](_0x1d79b2(0x150),{'contextItems':Array[_0x1d79b2(0x13f)](this[_0x1d79b2(0x13b)]()[_0x1d79b2(0x116)]())});}[_0x255bd5(0x10f)](){const _0x267e43=_0x255bd5;return this[_0x267e43(0x15c)][_0x267e43(0xeb)](_0x267e43(0x158));}[_0x255bd5(0x15e)](){const _0x28fd1d=_0x255bd5;return this[_0x28fd1d(0x15c)][_0x28fd1d(0xeb)](_0x28fd1d(0x129));}[_0x255bd5(0xe4)](){const _0x75dba8=_0x255bd5;return this[_0x75dba8(0x16d)][_0x75dba8(0xeb)](_0x75dba8(0x158));}static[_0x255bd5(0x174)](_0xa8e816){const _0xccc783=_0x255bd5;return Array[_0xccc783(0x13f)](_0xa8e816[_0xccc783(0x116)]())[_0xccc783(0x131)](_0x1872f1=>this[_0xccc783(0x15d)](_0x1872f1))[_0xccc783(0x12a)](_0xcf4eac=>null!==_0xcf4eac);}async[_0x255bd5(0x14d)](_0x34828c,_0x53addc,_0x372804=_0x3894c2[_0x255bd5(0x139)]){const _0x52d13c=_0x255bd5,_0x261f73=_0x52d13c(0xf7)+_0x1f2165();this[_0x52d13c(0x12e)](_0x261f73);try{await Promise[_0x52d13c(0xec)](_0x34828c[_0x52d13c(0x131)](async _0x5b1d79=>{const _0x39dfab=_0x52d13c,_0x58ba9b=_0x39dfab(0xe9)+_0x1f2165(),_0xf074f5=_0x489c5(_0x5b1d79[_0x39dfab(0xf4)]);try{this[_0x39dfab(0x15a)]({'type':_0x372804,'label':_0x53addc?.[_0x39dfab(0xee)]||_0xf074f5,'uiId':_0x58ba9b,'resourceId':_0x53addc?.[_0x39dfab(0x170)]},!0x0);const _0x50dc75=this[_0x39dfab(0x148)][_0x39dfab(0xfa)](this[_0x39dfab(0x133)],_0x5b1d79,_0x53addc);this[_0x39dfab(0x17a)][_0x39dfab(0x13a)](_0x58ba9b,_0x50dc75[_0x39dfab(0xf8)]);const {id:_0xd0e62a}=await _0x50dc75[_0x39dfab(0x154)]();this[_0x39dfab(0x17a)][_0x39dfab(0x115)](_0x58ba9b),this[_0x39dfab(0xfd)]({'type':_0x372804,'id':_0xd0e62a,'label':_0x53addc?.[_0x39dfab(0xee)]||_0xf074f5,'uiId':_0x58ba9b,'resourceId':_0x53addc?.[_0x39dfab(0x170)]},!0x1);}catch(_0x1961fe){this[_0x39dfab(0x17a)][_0x39dfab(0x115)](_0x58ba9b);if(!(_0x1961fe instanceof _0x345b32&&_0x1961fe[_0x39dfab(0x140)][_0x39dfab(0xe5)](_0x39dfab(0xfe)))){const _0x46df66=_0x1d81cc[_0x39dfab(0x171)](_0x1961fe[_0x39dfab(0x145)])||_0x39dfab(0x11b),_0x201498=new _0x345b32(_0x46df66,null,{'fileName':_0xf074f5,..._0x1961fe});_0x201498[_0x39dfab(0x167)]=_0x1961fe[_0x39dfab(0x167)],this[_0x39dfab(0xe6)](_0x39dfab(0x112),{'error':_0x201498});}this[_0x39dfab(0x127)](_0x58ba9b);}}));}finally{this[_0x52d13c(0x11c)](_0x261f73);}}[_0x255bd5(0x14b)](_0x557b87){const _0x484096=_0x255bd5;if(this[_0x484096(0x10f)]()||!this[_0x484096(0x113)][_0x484096(0xfb)][_0x484096(0x125)])return;const _0x21af0d={'type':_0x3894c2[_0x484096(0x105)],'uiId':_0x484096(0x158),'label':_0x557b87,'isReadOnly':this[_0x484096(0x16d)][_0x484096(0xeb)](_0x484096(0x158)),'hidden':this[_0x484096(0x16d)][_0x484096(0xeb)](_0x484096(0x158))};this[_0x484096(0x15a)](_0x21af0d);}async[_0x255bd5(0xed)](_0x335a64,_0x30eeff,_0x4a6804,_0x3c2d1e){const _0x3ff69d=_0x255bd5,_0x66bfa6=this[_0x3ff69d(0x15c)][_0x3ff69d(0x171)](_0x3ff69d(0x158));if(_0x66bfa6&&_0x335a64){_0x66bfa6[_0x3ff69d(0x129)]=_0x3c2d1e?_0x3c2d1e[_0x3ff69d(0x131)](_0x2762f9=>({'start':_0x2762f9[_0x3ff69d(0x142)],'end':_0x2762f9[_0x3ff69d(0x179)]})):[];try{if(_0x66bfa6[_0x3ff69d(0x14e)]===_0x30eeff)return;const {id:_0x12c8f8}=await this[_0x3ff69d(0x148)][_0x3ff69d(0x149)](this[_0x3ff69d(0x133)],_0x335a64,{'version':_0x30eeff,'sessionId':_0x4a6804})[_0x3ff69d(0x154)]();_0x66bfa6['id']=_0x12c8f8,_0x66bfa6[_0x3ff69d(0x11e)]=_0x335a64,_0x66bfa6[_0x3ff69d(0x14e)]=_0x30eeff,_0x66bfa6[_0x3ff69d(0x13e)]=_0x4a6804;}catch(_0x3ef979){const _0x3f6815=new _0x345b32(_0x3ff69d(0x107),null);_0x3f6815[_0x3ff69d(0x167)]=_0x3ef979[_0x3ff69d(0x167)],this[_0x3ff69d(0xe6)](_0x3ff69d(0x112),{'error':_0x3f6815});}}}[_0x255bd5(0xe7)](_0x1426ad){const _0x560764=_0x255bd5;this[_0x560764(0x15a)]({'type':_0x3894c2[_0x560764(0x11a)],'label':_0x1426ad,'uiId':_0x560764(0x129),'content':_0x1426ad});}[_0x255bd5(0x11f)](){const _0x8856d1=_0x255bd5;this[_0x8856d1(0x127)](_0x8856d1(0x129));}async[_0x255bd5(0x147)](_0x29d31c,_0x4b25fd){const _0x3433bf=_0x255bd5,_0x430903=_0x3433bf(0x119)+_0x1f2165();this[_0x3433bf(0x12e)](_0x430903);const _0x4be228=_0x3433bf(0x119)+_0x1f2165();try{this[_0x3433bf(0x15a)]({'type':_0x3894c2[_0x3433bf(0x132)],'label':_0x4b25fd?.[_0x3433bf(0xee)]||_0x29d31c,'uiId':_0x4be228,'resourceId':_0x4b25fd?.[_0x3433bf(0x170)]},!0x0);const _0x43d972=this[_0x3433bf(0x148)][_0x3433bf(0x15b)](this[_0x3433bf(0x133)],_0x29d31c,_0x4b25fd);this[_0x3433bf(0x17a)][_0x3433bf(0x13a)](_0x4be228,_0x43d972[_0x3433bf(0xf8)]);const {id:_0x1f5287}=await _0x43d972[_0x3433bf(0x154)]();this[_0x3433bf(0x17a)][_0x3433bf(0x115)](_0x4be228),this[_0x3433bf(0xfd)]({'type':_0x3894c2[_0x3433bf(0x132)],'id':_0x1f5287,'label':_0x4b25fd?.[_0x3433bf(0xee)]||_0x29d31c,'uiId':_0x4be228,'resourceId':_0x4b25fd?.[_0x3433bf(0x170)]},!0x1);}catch(_0x5db3db){this[_0x3433bf(0x17a)][_0x3433bf(0x115)](_0x4be228),(_0x5db3db[_0x3433bf(0x140)][_0x3433bf(0xe5)](_0x3433bf(0xfe))||this[_0x3433bf(0xe6)](_0x3433bf(0x112),{'error':new _0x345b32(_0x3433bf(0xf6),this,{'url':_0x29d31c,'originalError':_0x5db3db}),'url':_0x29d31c}),this[_0x3433bf(0x127)](_0x4be228));}finally{this[_0x3433bf(0x11c)](_0x430903);}}[_0x255bd5(0xf1)](_0x479309){const _0x4d80eb=_0x255bd5;_0x479309['id']=_0x479309['id']??_0x1f2165()[_0x4d80eb(0x12d)](0x0,0x15),this[_0x4d80eb(0x15c)][_0x4d80eb(0x13a)](_0x479309[_0x4d80eb(0x12f)],_0x479309),this[_0x4d80eb(0xe6)](_0x4d80eb(0xff),{'contextItem':_0x479309,'isLoading':!0x1});}async[_0x255bd5(0x109)](_0x277a71,_0x238f88,_0x5eba66){const _0x367e6=_0x255bd5,_0x41bb6e=this[_0x367e6(0x113)][_0x367e6(0x164)][_0x367e6(0x168)](_0x19f1eb=>_0x19f1eb['id']===_0x277a71);if(!_0x41bb6e)return this[_0x367e6(0xe6)](_0x367e6(0x112),{'error':new _0x345b32(_0x367e6(0x172),this,{'sourceId':_0x277a71}),'sourceId':_0x277a71}),[];try{const _0x7ff8ba=(await _0x41bb6e[_0x367e6(0x13d)](_0x238f88))[_0x367e6(0x131)](_0x516375=>{const _0xada895=_0x367e6,_0x29559c=this[_0xada895(0x124)](_0x516375['id']);return{..._0x516375,'isInContext':_0x29559c};});return _0x41bb6e[_0x367e6(0x151)]=_0x7ff8ba,this[_0x367e6(0xe6)](_0x367e6(0x161),{'sourceId':_0x277a71,'source':_0x41bb6e,'resources':_0x7ff8ba,'uid':_0x5eba66}),_0x7ff8ba;}catch(_0x4474ad){return this[_0x367e6(0xe6)](_0x367e6(0x112),{'error':new _0x345b32(_0x367e6(0x14f),this,{'sourceId':_0x277a71,'originalError':_0x4474ad}),'sourceId':_0x277a71,'sourceLabel':_0x41bb6e[_0x367e6(0xee)]}),[];}}async[_0x255bd5(0xf3)](_0x571283,_0x4bd6b3){const _0x3609c0=_0x255bd5;if(this[_0x3609c0(0x124)](_0x4bd6b3['id']))return;let _0x423847=_0x4bd6b3[_0x3609c0(0x169)];if(!_0x423847&&_0x571283[_0x3609c0(0xfc)])try{_0x423847=await _0x571283[_0x3609c0(0xfc)](_0x4bd6b3['id']);}catch(_0x55525f){return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x104),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'originalError':_0x55525f}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});}if(_0x423847)switch(_0x4bd6b3[_0x3609c0(0x141)]){case _0x3894c2[_0x3609c0(0x132)]:if(_0x3609c0(0x16c)!=typeof _0x423847)return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x12c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'expectedType':_0x3609c0(0x16c),'actualType':typeof _0x423847}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});await this[_0x3609c0(0x147)](_0x423847,{'label':_0x4bd6b3[_0x3609c0(0xee)],'resourceId':_0x4bd6b3['id']});break;case _0x3894c2[_0x3609c0(0x139)]:if(!(_0x423847 instanceof File))return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x12c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'expectedType':_0x3609c0(0x137),'actualType':typeof _0x423847}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});await this[_0x3609c0(0x14d)]([_0x423847],{'label':_0x4bd6b3[_0x3609c0(0xee)],'resourceId':_0x4bd6b3['id']});break;case _0x3894c2[_0x3609c0(0x14c)]:if(_0x3609c0(0xf9)!=typeof _0x423847||!(_0x3609c0(0x11e)in _0x423847)||!(_0x3609c0(0x141)in _0x423847))return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x12c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'expectedType':_0x3609c0(0x163),'actualType':typeof _0x423847}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});_0x423847=AIChatContext[_0x3609c0(0x122)](_0x423847,_0x4bd6b3[_0x3609c0(0xee)]),await this[_0x3609c0(0x14d)]([_0x423847],{'label':_0x4bd6b3[_0x3609c0(0xee)],'resourceId':_0x4bd6b3['id']},_0x3894c2[_0x3609c0(0x14c)]);break;case _0x3894c2[_0x3609c0(0x166)]:break;default:this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x13c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'resourceType':_0x4bd6b3[_0x3609c0(0x141)]}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});}else this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x15f),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});}static[_0x255bd5(0x122)](_0x5a105e,_0x4069d2){const _0x21eba4=_0x255bd5;switch(_0x5a105e[_0x21eba4(0x141)]){case _0x462fc1[_0x21eba4(0x100)]:return new File([_0x5a105e[_0x21eba4(0x11e)]],_0x4069d2,{'type':_0x21eba4(0x16a)});case _0x462fc1[_0x21eba4(0x110)]:return new File([_0x5a105e[_0x21eba4(0x11e)]],_0x4069d2,{'type':_0x21eba4(0xef)});default:return new File([_0x5a105e[_0x21eba4(0x11e)]],_0x4069d2,{'type':_0x21eba4(0x157)});}}static[_0x255bd5(0x15d)](_0x38c003){const _0x1a959c=_0x255bd5;switch(_0x38c003[_0x1a959c(0x141)]){case _0x3894c2[_0x1a959c(0x139)]:return{'type':_0x3894c2[_0x1a959c(0x139)],'id':_0x38c003['id']};case _0x3894c2[_0x1a959c(0x132)]:return{'type':_0x3894c2[_0x1a959c(0x132)],'id':_0x38c003['id']};case _0x3894c2[_0x1a959c(0x105)]:return{'type':_0x3894c2[_0x1a959c(0x105)],'id':_0x38c003['id'],..._0x38c003[_0x1a959c(0x129)]?.[_0x1a959c(0x162)]&&{'selection':_0x38c003[_0x1a959c(0x129)]}};case _0x3894c2[_0x1a959c(0x14c)]:return{'type':_0x3894c2[_0x1a959c(0x139)],'id':_0x38c003['id']};case _0x3894c2[_0x1a959c(0x166)]:{const _0x97d9ff=_0x38c003;return{'type':_0x3894c2[_0x1a959c(0x166)],'mcpServerName':_0x97d9ff[_0x1a959c(0x111)],'toolName':_0x97d9ff[_0x1a959c(0x128)],'data':_0x97d9ff[_0x1a959c(0x169)],'id':_0x97d9ff['id']};}default:return null;}}[_0x255bd5(0x15a)](_0xfd786f,_0x3723fb=!0x1){const _0x55e0a1=_0x255bd5;if(this[_0x55e0a1(0x15c)][_0x55e0a1(0x13a)](_0xfd786f[_0x55e0a1(0x12f)],_0xfd786f),_0xfd786f[_0x55e0a1(0xf5)]||this[_0x55e0a1(0xe6)](_0x55e0a1(0xff),{'contextItem':_0xfd786f,'isLoading':_0x3723fb}),_0x55e0a1(0x158)===_0xfd786f[_0x55e0a1(0x12f)]&&this[_0x55e0a1(0x117)](),_0xfd786f[_0x55e0a1(0x170)]){const _0x384916=this[_0x55e0a1(0x138)](_0xfd786f[_0x55e0a1(0x170)]);_0x384916&&_0x384916[_0x55e0a1(0x159)](_0x9d72fe=>{const _0x560ed7=_0x55e0a1;this[_0x560ed7(0x136)](_0x9d72fe,_0xfd786f[_0x560ed7(0x170)],!0x0);});}}[_0x255bd5(0x127)](_0xbfa8ec){const _0xf2d0f=_0x255bd5,_0x4509da=this[_0xf2d0f(0x15c)][_0xf2d0f(0x171)](_0xbfa8ec),_0x3226f6=this[_0xf2d0f(0x17a)][_0xf2d0f(0x171)](_0xbfa8ec);if(_0x3226f6&&(_0x3226f6[_0xf2d0f(0x123)](),this[_0xf2d0f(0x17a)][_0xf2d0f(0x115)](_0xbfa8ec)),_0x4509da?.[_0xf2d0f(0x170)]){const _0x3fc0e7=this[_0xf2d0f(0x138)](_0x4509da[_0xf2d0f(0x170)]);_0x3fc0e7&&_0x3fc0e7[_0xf2d0f(0x159)](_0x411baf=>{const _0x1fe5be=_0xf2d0f;this[_0x1fe5be(0x136)](_0x411baf,_0x4509da[_0x1fe5be(0x170)],!0x1);});}this[_0xf2d0f(0x15c)][_0xf2d0f(0x115)](_0xbfa8ec),this[_0xf2d0f(0xe6)](_0xf2d0f(0x10c),{'uiId':_0xbfa8ec,'type':_0x4509da?.[_0xf2d0f(0x141)]}),_0xf2d0f(0x158)===_0xbfa8ec&&this[_0xf2d0f(0x117)]();}[_0x255bd5(0xfd)](_0x3f4bf2,_0x4dbb28){const _0x272810=_0x255bd5;if(this[_0x272810(0x15c)][_0x272810(0xeb)](_0x3f4bf2[_0x272810(0x12f)])&&(this[_0x272810(0x15c)][_0x272810(0x13a)](_0x3f4bf2[_0x272810(0x12f)],_0x3f4bf2),this[_0x272810(0xe6)](_0x272810(0x155),{'contextItem':_0x3f4bf2,'isLoading':_0x4dbb28}),_0x3f4bf2[_0x272810(0x170)])){const _0x3f112a=this[_0x272810(0x138)](_0x3f4bf2[_0x272810(0x170)]);_0x3f112a&&_0x3f112a[_0x272810(0x159)](_0x260d2a=>{const _0x59b541=_0x272810;this[_0x59b541(0x136)](_0x260d2a,_0x3f4bf2[_0x59b541(0x170)],!0x0);});}}[_0x255bd5(0x175)](_0x5d1162){const _0x2f89ed=_0x255bd5;this[_0x2f89ed(0x16d)][_0x2f89ed(0x13a)](_0x5d1162[_0x2f89ed(0x12f)],_0x5d1162);}[_0x255bd5(0xf0)](){const _0x1a32d0=_0x255bd5;this[_0x1a32d0(0x113)]={'document':{'enabled':!0x1!==this[_0x1a32d0(0x165)]?.[_0x1a32d0(0xfb)]?.[_0x1a32d0(0x125)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1a32d0(0x165)]?.[_0x1a32d0(0x176)]?.[_0x1a32d0(0x125)]},'files':{'enabled':!0x1!==this[_0x1a32d0(0x165)]?.[_0x1a32d0(0x156)]?.[_0x1a32d0(0x125)]},'sources':this[_0x1a32d0(0x121)](),'customItems':this[_0x1a32d0(0x165)]?.[_0x1a32d0(0x11d)]?.[_0x1a32d0(0x131)](_0x41b9cf=>({..._0x41b9cf,'enabled':!0x0}))??[]},this[_0x1a32d0(0xe6)](_0x1a32d0(0x134),{'options':this[_0x1a32d0(0x113)]});}[_0x255bd5(0x121)](){const _0x387868=_0x255bd5;return this[_0x387868(0x165)]?.[_0x387868(0x164)]?.[_0x387868(0x131)](_0x5e64c9=>({..._0x5e64c9,'resources':[]}))??[];}[_0x255bd5(0x117)](){const _0x4dc5c3=_0x255bd5,_0x3c589d=this[_0x4dc5c3(0x10f)]()||this[_0x4dc5c3(0xe4)]();this[_0x4dc5c3(0x113)][_0x4dc5c3(0xfb)][_0x4dc5c3(0x143)]=_0x3c589d,this[_0x4dc5c3(0xe6)](_0x4dc5c3(0x134),{'options':this[_0x4dc5c3(0x113)]});}[_0x255bd5(0x124)](_0x27fee1){const _0x23b2df=_0x255bd5;for(const _0x3e2d0d of this[_0x23b2df(0x15c)][_0x23b2df(0x116)]())if(_0x3e2d0d[_0x23b2df(0x170)]===_0x27fee1)return!0x0;for(const _0x584a0d of this[_0x23b2df(0x16d)][_0x23b2df(0x116)]())if(_0x584a0d[_0x23b2df(0x170)]===_0x27fee1)return!0x0;return!0x1;}[_0x255bd5(0x138)](_0x3110c9){const _0xa83afd=_0x255bd5,_0x3bba6b=[];for(const _0x19a33e of this[_0xa83afd(0x113)][_0xa83afd(0x164)]){_0x19a33e[_0xa83afd(0x151)][_0xa83afd(0x168)](_0x1e2b92=>_0x1e2b92['id']===_0x3110c9)&&_0x3bba6b[_0xa83afd(0x16b)](_0x19a33e['id']);}return 0x0===_0x3bba6b[_0xa83afd(0x162)]?null:_0x3bba6b;}[_0x255bd5(0x136)](_0x5cedd3,_0x45ff2e,_0x3a0f11){const _0x40596f=_0x255bd5,_0x4548cc=this[_0x40596f(0x113)][_0x40596f(0x164)][_0x40596f(0x168)](_0x43ac54=>_0x43ac54['id']===_0x5cedd3);if(!_0x4548cc)return;const _0x5ca669=_0x4548cc[_0x40596f(0x151)][_0x40596f(0x168)](_0x206dd4=>_0x206dd4['id']===_0x45ff2e);_0x5ca669&&(_0x5ca669[_0x40596f(0x16e)]=_0x3a0f11,this[_0x40596f(0xe6)](_0x40596f(0x144),{'sourceId':_0x5cedd3,'resourceId':_0x45ff2e,'isInContext':_0x3a0f11}));}[_0x255bd5(0x12e)](_0x489829){const _0x375cc7=_0x255bd5;this[_0x375cc7(0x126)][_0x375cc7(0x13a)](_0x489829,!0x0),this[_0x375cc7(0x126)][_0x375cc7(0x10d)]&&this[_0x375cc7(0xe6)](_0x375cc7(0x160),{'isUploadInProgress':!0x0});}[_0x255bd5(0x11c)](_0x1e6f60){const _0x2dcc53=_0x255bd5;this[_0x2dcc53(0x126)][_0x2dcc53(0x115)](_0x1e6f60),0x0===this[_0x2dcc53(0x126)][_0x2dcc53(0x10d)]&&this[_0x2dcc53(0xe6)](_0x2dcc53(0x160),{'isUploadInProgress':!0x1});}}
|