@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.0-alpha.6
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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/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/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/dropdownmenubuttonwithhighlightview.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/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/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/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 _0x35682a=_0x1e3e;function _0x1e3e(_0x58c697,_0x2f2b35){const _0x35bb69=_0x35bb();return _0x1e3e=function(_0x1e3eda,_0x1f6657){_0x1e3eda=_0x1e3eda-0x18f;let _0x393ef1=_0x35bb69[_0x1e3eda];return _0x393ef1;},_0x1e3e(_0x58c697,_0x2f2b35);}(function(_0x2d7e6b,_0x487256){const _0x450b9a=_0x1e3e,_0x29b960=_0x2d7e6b();while(!![]){try{const _0x195aa1=parseInt(_0x450b9a(0x1b1))/0x1+parseInt(_0x450b9a(0x1d6))/0x2*(parseInt(_0x450b9a(0x196))/0x3)+-parseInt(_0x450b9a(0x1ad))/0x4+-parseInt(_0x450b9a(0x1cb))/0x5*(parseInt(_0x450b9a(0x19c))/0x6)+parseInt(_0x450b9a(0x1a4))/0x7*(parseInt(_0x450b9a(0x1ac))/0x8)+parseInt(_0x450b9a(0x1d2))/0x9*(-parseInt(_0x450b9a(0x1ca))/0xa)+parseInt(_0x450b9a(0x1ba))/0xb;if(_0x195aa1===_0x487256)break;else _0x29b960['push'](_0x29b960['shift']());}catch(_0x456043){_0x29b960['push'](_0x29b960['shift']());}}}(_0x35bb,0xaefd8));import{View as _0x5d19a2,SearchTextView as _0x1a3940,FormHeaderView as _0x5a0b01,ButtonView as _0x195a13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x398e9d,IconCancel as _0x32e766,IconPlus as _0x29ab2b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1f86b4}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1b133f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x214e86}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2bcf33}from'../aichathistoryui.js';import{AISkeletonView as _0x28d6d2,SKELETON_DEFINITIONS as _0x3cb250}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2f4487}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x39be0d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5d19a2{[_0x35682a(0x1d0)];[_0x35682a(0x1e5)];[_0x35682a(0x199)];[_0x35682a(0x1a2)];[_0x35682a(0x1b5)];[_0x35682a(0x1a6)];constructor(_0x3ddd05,_0x5d2910){const _0x4c73a8=_0x35682a;super(_0x3ddd05),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1a5),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1aa),!0x0),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1b9),''),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x194),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1d4),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1e2),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1bc),!0x1);const _0x1a8a4d=new _0x5a0b01(_0x3ddd05,{'label':_0x39be0d(_0x3ddd05,_0x4c73a8(0x1d5)),'icon':_0x398e9d,'class':_0x4c73a8(0x192)});_0x5d2910&&(this[_0x4c73a8(0x1a6)]=_0x2f4487(_0x3ddd05,this),_0x1a8a4d[_0x4c73a8(0x1c8)][_0x4c73a8(0x1e3)](this[_0x4c73a8(0x1a6)])),this[_0x4c73a8(0x1b5)]=new _0x1f86b4(_0x3ddd05,[]),this[_0x4c73a8(0x1b5)][_0x4c73a8(0x1ec)](..._0x2bcf33)['to'](this),this[_0x4c73a8(0x1e5)]=this[_0x4c73a8(0x1c3)](),this[_0x4c73a8(0x199)]=this[_0x4c73a8(0x1b4)](),this[_0x4c73a8(0x1a2)]=this[_0x4c73a8(0x1e8)](),this[_0x4c73a8(0x1d0)]=this[_0x4c73a8(0x1c9)](),this[_0x4c73a8(0x1e5)][_0x4c73a8(0x1a7)]({'attributes':{'class':[this[_0x4c73a8(0x1bf)]['if'](_0x4c73a8(0x1bc),_0x4c73a8(0x190),_0x564fc9=>!_0x564fc9)]}}),this['on'](_0x4c73a8(0x1cc),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1a1),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1d9),()=>this[_0x4c73a8(0x1b3)]()),this[_0x4c73a8(0x1cf)]({'tag':_0x4c73a8(0x193),'attributes':{'class':['ck',_0x4c73a8(0x1c7),_0x4c73a8(0x1df),_0x4c73a8(0x1db)],'dir':_0x4c73a8(0x19e)},'children':[_0x1a8a4d,{'tag':_0x4c73a8(0x193),'attributes':{'class':[_0x4c73a8(0x191)]},'children':[this[_0x4c73a8(0x199)],this[_0x4c73a8(0x1e5)],this[_0x4c73a8(0x1a2)],this[_0x4c73a8(0x1d0)]]}]});}[_0x35682a(0x1b3)](){const _0xe147e0=_0x35682a;this[_0xe147e0(0x1d4)]=!this[_0xe147e0(0x1aa)]&&this[_0xe147e0(0x1a5)],this[_0xe147e0(0x1e2)]=!this[_0xe147e0(0x1aa)]&&!this[_0xe147e0(0x1a5)]&&!this[_0xe147e0(0x1b9)],this[_0xe147e0(0x1bc)]=!this[_0xe147e0(0x1d4)]&&!!this[_0xe147e0(0x1b9)];}[_0x35682a(0x1c9)](){const _0xd3fdac=_0x35682a,_0x3cc1be=new _0x1a3940(this[_0xd3fdac(0x1a8)],{'filteredView':this[_0xd3fdac(0x1b5)],'queryView':{'label':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x183057=>_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x19a),_0x183057),'secondary':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1af))}}}}),_0x2b0a8a=this[_0xd3fdac(0x1c3)]();return _0x2b0a8a[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1b9),_0xd3fdac(0x190),_0x1cff60=>!_0x1cff60)]}}),_0x3cc1be['on'](_0xd3fdac(0x198),()=>{const _0x54a5e9=_0xd3fdac;_0x3cc1be[_0x54a5e9(0x1c8)][_0x54a5e9(0x1e3)](_0x2b0a8a,0x1);}),_0x3cc1be[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1d4),_0xd3fdac(0x190),_0x4da3fe=>!_0x4da3fe)]}}),_0x3cc1be;}[_0x35682a(0x1b4)](){const _0x2ccd96=_0x35682a,_0x1a0573=new _0x28d6d2(this[_0x2ccd96(0x1a8)],_0x3cb250[_0x2ccd96(0x197)]);return _0x1a0573[_0x2ccd96(0x1a7)]({'attributes':{'class':[this[_0x2ccd96(0x1bf)]['if'](_0x2ccd96(0x1aa),_0x2ccd96(0x190),_0x5206b4=>!_0x5206b4)]}}),_0x1a0573;}[_0x35682a(0x1c3)](){const _0x4a0d30=_0x35682a,_0x144218=new _0x5d19a2(this[_0x4a0d30(0x1a8)]),_0x48b1eb=new _0x195a13(this[_0x4a0d30(0x1a8)]);_0x48b1eb[_0x4a0d30(0x1d8)]({'withText':!0x1,'icon':_0x32e766,'class':_0x4a0d30(0x1e1)}),_0x48b1eb[_0x4a0d30(0x1c4)](_0x4a0d30(0x1e9))['to'](this,_0x4a0d30(0x1a5),_0x56697b=>!!_0x56697b),_0x48b1eb['on'](_0x4a0d30(0x19b),()=>{const _0x64358e=_0x4a0d30;this[_0x64358e(0x1b9)]='';});const _0x103eaf=this[_0x4a0d30(0x1bf)];return _0x144218[_0x4a0d30(0x1cf)]({'tag':_0x4a0d30(0x193),'attributes':{'class':['ck',_0x4a0d30(0x1c0),_0x4a0d30(0x1b8)]},'children':[{'tag':'p','children':[{'text':_0x103eaf['to'](_0x4a0d30(0x1b9))}]},_0x48b1eb]}),_0x144218;}[_0x35682a(0x1e8)](){const _0x2a8555=_0x35682a,_0x27833b=new _0x195a13(this[_0x2a8555(0x1a8)]);_0x27833b[_0x2a8555(0x1d8)]({'label':_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1dc)),'withText':!0x0,'icon':_0x29ab2b,'class':_0x2a8555(0x195)}),_0x27833b['on'](_0x2a8555(0x19b),()=>{const _0x39dd69=_0x2a8555;this[_0x39dd69(0x1dd)](_0x39dd69(0x1b7));});const _0x3ae471=new _0x5d19a2(this[_0x2a8555(0x1a8)]);return _0x3ae471[_0x2a8555(0x1cf)]({'tag':_0x2a8555(0x193),'attributes':{'class':[_0x2a8555(0x1e7),this[_0x2a8555(0x1bf)]['if'](_0x2a8555(0x1e2),_0x2a8555(0x190),_0x4d7d90=>!_0x4d7d90)]},'children':[{'tag':'p','attributes':{'class':[_0x2a8555(0x1b2)]},'children':[_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1b0))]},_0x27833b]}),_0x3ae471;}[_0x35682a(0x1eb)](_0x4bf7f7,_0x4630da){const _0x4fa871=_0x35682a,_0x508b75=[];for(const _0x459425 of _0x4bf7f7){const _0x5054cb=new _0x214e86(_0x4630da,_0x459425);_0x5054cb[_0x4fa871(0x1ec)](..._0x2bcf33)['to'](this),_0x508b75[_0x4fa871(0x1a0)](_0x5054cb);}return _0x508b75;}[_0x35682a(0x1ea)](_0x344d7e){const _0x4d916d=_0x35682a,_0x5e065a=this[_0x4d916d(0x1a8)]||'en',_0x24066b=[];for(const _0x15c2cf of _0x344d7e){const _0x2f0135=this[_0x4d916d(0x1eb)](_0x15c2cf[_0x4d916d(0x1e6)],_0x5e065a);_0x24066b[_0x4d916d(0x1a0)](new _0x1b133f(_0x5e065a,{'title':_0x15c2cf[_0x4d916d(0x1da)],'items':_0x2f0135}));}this[_0x4d916d(0x1b5)][_0x4d916d(0x1a9)]=_0x24066b,this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x1bd)](),this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x19f)](_0x24066b),this[_0x4d916d(0x1a5)]=_0x344d7e[_0x4d916d(0x1c2)](_0x420759=>_0x420759[_0x4d916d(0x1e6)][_0x4d916d(0x19d)]>0x0),this[_0x4d916d(0x1d7)]();}[_0x35682a(0x1ce)](_0x576057){const _0x22f185=_0x35682a;for(const _0x532446 of this[_0x22f185(0x1b5)][_0x22f185(0x1a9)]){const _0x2fdc83=_0x532446[_0x22f185(0x1cd)](_0x576057);if(_0x2fdc83){if(_0x532446[_0x22f185(0x1ae)](_0x2fdc83),0x0===_0x532446[_0x22f185(0x1a3)][_0x22f185(0x19d)]){const _0x1262c8=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x18f)](_0x532446);-0x1!==_0x1262c8&&(this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x1bb)](_0x1262c8,0x1),this[_0x22f185(0x1b5)][_0x22f185(0x1e6)][_0x22f185(0x1c1)](_0x532446));}this[_0x22f185(0x1a5)]=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x19d)]>0x0,this[_0x22f185(0x1d7)]();break;}}}[_0x35682a(0x1d1)](_0xddce7b,_0x3082db){const _0x597696=_0x35682a;for(const _0x4781c7 of this[_0x597696(0x1b5)][_0x597696(0x1a9)]){const _0x2438f5=_0x4781c7[_0x597696(0x1cd)](_0xddce7b);if(_0x2438f5){_0x2438f5[_0x597696(0x1ab)](_0x3082db);break;}}}[_0x35682a(0x1d3)](_0x149fa7,_0x4d1a7a,_0x48cd39){const _0x5d4605=_0x35682a;for(const _0x46f8ed of this[_0x5d4605(0x1b5)][_0x5d4605(0x1a9)]){const _0x915d86=_0x46f8ed[_0x5d4605(0x1cd)](_0x149fa7);if(_0x915d86){_0x915d86[_0x5d4605(0x1e4)](_0x4d1a7a,_0x48cd39);break;}}}[_0x35682a(0x1d7)](){const _0x519ee2=_0x35682a;if(this[_0x519ee2(0x1a5)]){const _0x4367ee=this[_0x519ee2(0x1d0)][_0x519ee2(0x1c6)][_0x519ee2(0x1b6)]?.[_0x519ee2(0x1de)]?.[_0x519ee2(0x1e0)]||'';this[_0x519ee2(0x1d0)][_0x519ee2(0x1be)](_0x4367ee);}}}function _0x35bb(){const _0x1e082c=['AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_EMPTY_MESSAGE','328009nqnxTo','ck-ai-chat-history__empty-message','_updateViewVisibility','_createSkeletonView','sectionsView','fieldView','openChat','ck-ai-notification_error','errorMessage','1653322UqwBsQ','splice','isMainErrorViewVisible','clear','search','bindTemplate','ck-ai-notification','remove','some','_createErrorView','bind','AI_CHAT_HISTORY_SEARCH_LABEL','queryView','ck-reset_all','children','_createSearchView','10NPSznt','5wMPIQo','change:isLoading','getItem','removeHistoryItem','setTemplate','searchView','updateItemTitle','2131965yYNJlx','updateItemLoadingState','isSearchViewVisible','AI_CHAT_HISTORY_HEADING','16970kOjkGm','_refreshSearch','set','change:errorMessage','title','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','fire','element','ck-ai-chat-history','value','ck-ai-notification_error__dismiss-button','isEmptyViewVisible','add','updateLoadingState','mainErrorView','items','ck-ai-chat-history__empty','_createEmptyStateView','isVisible','updateHistoryItemsWithCategories','_createListItemViews','delegate','indexOf','ck-hidden','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','div','isMaximized','ck-ai-chat__start-conversation','402biRUyx','aiHistory','render','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','execute','4645002SQeXgJ','length','ltr','addMany','push','change:hasItems','emptyView','itemsViews','24227JWXUkn','hasItems','resizeButton','extendTemplate','locale','sections','isLoading','updateTitle','2696uBAoBL','4215384MHVYoT','removeItem'];_0x35bb=function(){return _0x1e082c;};return _0x35bb();}
|
|
23
|
+
const _0x3972de=_0x4bf5;(function(_0x4e9753,_0x2bfb85){const _0x524fce=_0x4bf5,_0x3ba9bd=_0x4e9753();while(!![]){try{const _0x5f4848=parseInt(_0x524fce(0x18f))/0x1*(-parseInt(_0x524fce(0x13c))/0x2)+-parseInt(_0x524fce(0x18b))/0x3+parseInt(_0x524fce(0x175))/0x4*(-parseInt(_0x524fce(0x142))/0x5)+-parseInt(_0x524fce(0x18c))/0x6*(-parseInt(_0x524fce(0x17b))/0x7)+-parseInt(_0x524fce(0x16a))/0x8+parseInt(_0x524fce(0x14b))/0x9+parseInt(_0x524fce(0x18e))/0xa;if(_0x5f4848===_0x2bfb85)break;else _0x3ba9bd['push'](_0x3ba9bd['shift']());}catch(_0x195ca1){_0x3ba9bd['push'](_0x3ba9bd['shift']());}}}(_0x5445,0x31f02));import{View as _0x12bf48,SearchTextView as _0x4d159d,FormHeaderView as _0x479f24,ButtonView as _0x4b5178}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x22e61b,IconCancel as _0x98a183,IconPlus as _0x4e7861}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1ceff2}from'./aichathistorysectionlistview.js';function _0x5445(){const _0x537788=['getItem','ck-ai-notification_error','_createErrorView','_createListItemViews','value','hasItems','ck-ai-chat-history','setTemplate','isSearchViewVisible','ck-ai-chat-history__empty-message','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isEmptyViewVisible','emptyView','aiHistory','extendTemplate','_createSearchView','ck-hidden','some','length','change:hasItems','render','clear','isMainErrorViewVisible','fieldView','AI_CHAT_HISTORY_EMPTY_MESSAGE','title','element','1959016lRqvsP','itemsViews','isMaximized','locale','mainErrorView','ck-rounded-corners','isLoading','delegate','search','skeletonView','ck-ai-chat-history__content','49792BfNlHg','div','updateHistoryItemsWithCategories','items','AI_CHAT_HISTORY_SEARCH_LABEL','isVisible','2236073yiNvGH','sections','addMany','push','_updateViewVisibility','removeItem','resizeButton','children','add','bind','removeHistoryItem','ck-ai-chat__start-conversation','bindTemplate','sectionsView','change:errorMessage','ck-ai-notification_error__dismiss-button','753981OBjPfY','6NQkuSo','AI_CHAT_LABEL_NEW_CHAT','3839440VWgSQG','162082ESSQtm','splice','ltr','ck-reset_all','searchView','updateLoadingState','errorMessage','fire','ck-ai-header\x20ck-ai-header_history','updateItemTitle','2zkZcDO','remove','queryView','updateTitle','_createEmptyStateView','ck-ai-notification','5EMhNTK','updateItemLoadingState','set','openChat','change:isLoading','execute','_refreshSearch','_createSkeletonView','AI_CHAT_HISTORY_HEADING','1547073IhpEUA','ck-ai-chat-history__empty'];_0x5445=function(){return _0x537788;};return _0x5445();}import{AIChatHistoryListView as _0x4d47e4}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x25c398}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3fe154}from'../aichathistoryui.js';import{AISkeletonView as _0x30f564,SKELETON_DEFINITIONS as _0x2a73b5}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x109480}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x1f6c3f}from'../../aicore/utils/common-translations.js';function _0x4bf5(_0x399076,_0x3f951b){const _0x54455c=_0x5445();return _0x4bf5=function(_0x4bf5ed,_0x1196f3){_0x4bf5ed=_0x4bf5ed-0x13a;let _0x1c44a1=_0x54455c[_0x4bf5ed];return _0x1c44a1;},_0x4bf5(_0x399076,_0x3f951b);}export class AIChatHistoryView extends _0x12bf48{[_0x3972de(0x193)];[_0x3972de(0x16e)];[_0x3972de(0x173)];[_0x3972de(0x15b)];[_0x3972de(0x188)];[_0x3972de(0x181)];constructor(_0x3d91e6,_0x4bf575){const _0x22cbd1=_0x3972de;super(_0x3d91e6),this[_0x22cbd1(0x144)](_0x22cbd1(0x152),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x170),!0x0),this[_0x22cbd1(0x144)](_0x22cbd1(0x195),''),this[_0x22cbd1(0x144)](_0x22cbd1(0x16c),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x155),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x15a),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x165),!0x1);const _0x4e374f=new _0x479f24(_0x3d91e6,{'label':_0x1f6c3f(_0x3d91e6,_0x22cbd1(0x14a)),'icon':_0x22e61b,'class':_0x22cbd1(0x13a)});_0x4bf575&&(this[_0x22cbd1(0x181)]=_0x109480(_0x3d91e6,this),_0x4e374f[_0x22cbd1(0x182)][_0x22cbd1(0x183)](this[_0x22cbd1(0x181)])),this[_0x22cbd1(0x188)]=new _0x1ceff2(_0x3d91e6,[]),this[_0x22cbd1(0x188)][_0x22cbd1(0x171)](..._0x3fe154)['to'](this),this[_0x22cbd1(0x16e)]=this[_0x22cbd1(0x14f)](),this[_0x22cbd1(0x173)]=this[_0x22cbd1(0x149)](),this[_0x22cbd1(0x15b)]=this[_0x22cbd1(0x140)](),this[_0x22cbd1(0x193)]=this[_0x22cbd1(0x15e)](),this[_0x22cbd1(0x16e)][_0x22cbd1(0x15d)]({'attributes':{'class':[this[_0x22cbd1(0x187)]['if'](_0x22cbd1(0x165),_0x22cbd1(0x15f),_0x244f7=>!_0x244f7)]}}),this['on'](_0x22cbd1(0x146),()=>this[_0x22cbd1(0x17f)]()),this['on'](_0x22cbd1(0x162),()=>this[_0x22cbd1(0x17f)]()),this['on'](_0x22cbd1(0x189),()=>this[_0x22cbd1(0x17f)]()),this[_0x22cbd1(0x154)]({'tag':_0x22cbd1(0x176),'attributes':{'class':['ck',_0x22cbd1(0x192),_0x22cbd1(0x153),_0x22cbd1(0x16f)],'dir':_0x22cbd1(0x191)},'children':[_0x4e374f,{'tag':_0x22cbd1(0x176),'attributes':{'class':[_0x22cbd1(0x174)]},'children':[this[_0x22cbd1(0x173)],this[_0x22cbd1(0x16e)],this[_0x22cbd1(0x15b)],this[_0x22cbd1(0x193)]]}]});}[_0x3972de(0x17f)](){const _0x356da5=_0x3972de;this[_0x356da5(0x155)]=!this[_0x356da5(0x170)]&&this[_0x356da5(0x152)],this[_0x356da5(0x15a)]=!this[_0x356da5(0x170)]&&!this[_0x356da5(0x152)]&&!this[_0x356da5(0x195)],this[_0x356da5(0x165)]=!this[_0x356da5(0x155)]&&!!this[_0x356da5(0x195)];}[_0x3972de(0x15e)](){const _0x15db51=_0x3972de,_0x2aab55=new _0x4d159d(this[_0x15db51(0x16d)],{'filteredView':this[_0x15db51(0x188)],'queryView':{'label':_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x179))},'infoView':{'text':{'notFound':{'primary':_0x307ea8=>_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x159),_0x307ea8),'secondary':_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x158))}}}}),_0x528c46=this[_0x15db51(0x14f)]();return _0x528c46[_0x15db51(0x15d)]({'attributes':{'class':[this[_0x15db51(0x187)]['if'](_0x15db51(0x195),_0x15db51(0x15f),_0x5861d1=>!_0x5861d1)]}}),_0x2aab55['on'](_0x15db51(0x163),()=>{const _0x49e5c8=_0x15db51;_0x2aab55[_0x49e5c8(0x182)][_0x49e5c8(0x183)](_0x528c46,0x1);}),_0x2aab55[_0x15db51(0x15d)]({'attributes':{'class':[this[_0x15db51(0x187)]['if'](_0x15db51(0x155),_0x15db51(0x15f),_0x4b183d=>!_0x4b183d)]}}),_0x2aab55;}[_0x3972de(0x149)](){const _0x372312=_0x3972de,_0x3ddd3b=new _0x30f564(this[_0x372312(0x16d)],_0x2a73b5[_0x372312(0x15c)]);return _0x3ddd3b[_0x372312(0x15d)]({'attributes':{'class':[this[_0x372312(0x187)]['if'](_0x372312(0x170),_0x372312(0x15f),_0xa27b8a=>!_0xa27b8a)]}}),_0x3ddd3b;}[_0x3972de(0x14f)](){const _0x4a7e37=_0x3972de,_0x1d2a38=new _0x12bf48(this[_0x4a7e37(0x16d)]),_0x231f44=new _0x4b5178(this[_0x4a7e37(0x16d)]);_0x231f44[_0x4a7e37(0x144)]({'withText':!0x1,'icon':_0x98a183,'class':_0x4a7e37(0x18a)}),_0x231f44[_0x4a7e37(0x184)](_0x4a7e37(0x17a))['to'](this,_0x4a7e37(0x152),_0x4bcb0c=>!!_0x4bcb0c),_0x231f44['on'](_0x4a7e37(0x147),()=>{const _0x62a522=_0x4a7e37;this[_0x62a522(0x195)]='';});const _0x3fdbb1=this[_0x4a7e37(0x187)];return _0x1d2a38[_0x4a7e37(0x154)]({'tag':_0x4a7e37(0x176),'attributes':{'class':['ck',_0x4a7e37(0x141),_0x4a7e37(0x14e)]},'children':[{'tag':'p','children':[{'text':_0x3fdbb1['to'](_0x4a7e37(0x195))}]},_0x231f44]}),_0x1d2a38;}[_0x3972de(0x140)](){const _0x566593=_0x3972de,_0x12fceb=new _0x4b5178(this[_0x566593(0x16d)]);_0x12fceb[_0x566593(0x144)]({'label':_0x1f6c3f(this[_0x566593(0x16d)],_0x566593(0x18d)),'withText':!0x0,'icon':_0x4e7861,'class':_0x566593(0x186)}),_0x12fceb['on'](_0x566593(0x147),()=>{const _0x82bc85=_0x566593;this[_0x82bc85(0x196)](_0x82bc85(0x145));});const _0x2d0ed7=new _0x12bf48(this[_0x566593(0x16d)]);return _0x2d0ed7[_0x566593(0x154)]({'tag':_0x566593(0x176),'attributes':{'class':[_0x566593(0x14c),this[_0x566593(0x187)]['if'](_0x566593(0x15a),_0x566593(0x15f),_0x4de4c2=>!_0x4de4c2)]},'children':[{'tag':'p','attributes':{'class':[_0x566593(0x156)]},'children':[_0x1f6c3f(this[_0x566593(0x16d)],_0x566593(0x167))]},_0x12fceb]}),_0x2d0ed7;}[_0x3972de(0x150)](_0x36835a,_0x3a1dc5){const _0x36fc43=_0x3972de,_0x39cfb6=[];for(const _0x1d0f92 of _0x36835a){const _0x2e1f73=new _0x25c398(_0x3a1dc5,_0x1d0f92);_0x2e1f73[_0x36fc43(0x171)](..._0x3fe154)['to'](this),_0x39cfb6[_0x36fc43(0x17e)](_0x2e1f73);}return _0x39cfb6;}[_0x3972de(0x177)](_0x66abf3){const _0x518804=_0x3972de,_0x4b7fc0=this[_0x518804(0x16d)]||'en',_0x4df23f=[];for(const _0xef9989 of _0x66abf3){const _0x1b8567=this[_0x518804(0x150)](_0xef9989[_0x518804(0x178)],_0x4b7fc0);_0x4df23f[_0x518804(0x17e)](new _0x4d47e4(_0x4b7fc0,{'title':_0xef9989[_0x518804(0x168)],'items':_0x1b8567}));}this[_0x518804(0x188)][_0x518804(0x17c)]=_0x4df23f,this[_0x518804(0x188)][_0x518804(0x178)][_0x518804(0x164)](),this[_0x518804(0x188)][_0x518804(0x178)][_0x518804(0x17d)](_0x4df23f),this[_0x518804(0x152)]=_0x66abf3[_0x518804(0x160)](_0x4a0d0e=>_0x4a0d0e[_0x518804(0x178)][_0x518804(0x161)]>0x0),this[_0x518804(0x148)]();}[_0x3972de(0x185)](_0x45eef7){const _0x20142=_0x3972de;for(const _0xe05290 of this[_0x20142(0x188)][_0x20142(0x17c)]){const _0x12a8d5=_0xe05290[_0x20142(0x14d)](_0x45eef7);if(_0x12a8d5){if(_0xe05290[_0x20142(0x180)](_0x12a8d5),0x0===_0xe05290[_0x20142(0x16b)][_0x20142(0x161)]){const _0x1bf83f=this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x157)](_0xe05290);-0x1!==_0x1bf83f&&(this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x190)](_0x1bf83f,0x1),this[_0x20142(0x188)][_0x20142(0x178)][_0x20142(0x13d)](_0xe05290));}this[_0x20142(0x152)]=this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x161)]>0x0,this[_0x20142(0x148)]();break;}}}[_0x3972de(0x13b)](_0x1a92a4,_0x5c0a1b){const _0x283669=_0x3972de;for(const _0x2bd30c of this[_0x283669(0x188)][_0x283669(0x17c)]){const _0x18cf67=_0x2bd30c[_0x283669(0x14d)](_0x1a92a4);if(_0x18cf67){_0x18cf67[_0x283669(0x13f)](_0x5c0a1b);break;}}}[_0x3972de(0x143)](_0x375549,_0x1af5fa,_0x6c873){const _0x522461=_0x3972de;for(const _0x3ce9ab of this[_0x522461(0x188)][_0x522461(0x17c)]){const _0x12b79f=_0x3ce9ab[_0x522461(0x14d)](_0x375549);if(_0x12b79f){_0x12b79f[_0x522461(0x194)](_0x1af5fa,_0x6c873);break;}}}[_0x3972de(0x148)](){const _0x9d9cb8=_0x3972de;if(this[_0x9d9cb8(0x152)]){const _0x221d7e=this[_0x9d9cb8(0x193)][_0x9d9cb8(0x13e)][_0x9d9cb8(0x166)]?.[_0x9d9cb8(0x169)]?.[_0x9d9cb8(0x151)]||'';this[_0x9d9cb8(0x193)][_0x9d9cb8(0x172)](_0x221d7e);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d51b9=_0x3d41;function _0x4a7e(){const _0x11d39e=['callCustomReview','pluginName','json','signal','/documents','https://ai.cke-cs.com/v1','ai-request-failed','application/json','fix-grammar','uploadDocument','MAKE_LONGER','isOfficialPlugin','reset','continue','/files','/calls/','PUT','upsertAIActionRating','toString','releaseLock','PATCH','/models/1','define','make-longer','stringify','ai-request-aborted','IMPROVE_WRITING','callSystemReview','executeAction','statusText','deleteDocument','init','traceId','queryAssistant','_decoder','MAKE_SHORTER','24ksjEZN','TRANSLATE','212iJtlsw','MAKE_TONE_FORMAL','true','requires','config','deleteFile','group','make-shorter','fetchConversationMessages','GET','get','make-tone-casual','length','executeCustomAction','push','excludeEmpty','_getStreamReader','30jnJOtI','positiveCount','MAKE_TONE_CASUAL','body','ai-missing-token','DELETE','/calls','file','then','Content-Type','AIConnector','translate','CONTINUE','search','deleteWebResource','deleteConversation','items','/conversations','token','limit','/conversations/','catch','improve-writing','100','fetchConversations','message','7739721TRohUT','5443208ymlSAp','/ratings','upsertAIReviewRating','getReader','fetchDocument','decode','updateConversation','upsertAIChatRating','_handleError','read','_token','/messages','/actions/system/','feed','totalCount','/web-resources','keys','/reviews/custom/calls/','attributes','FIX_GRAMMAR','/reviews/system/','58680VRvKVc','2818242KtVhHI','/reviews/custom/calls','context','/actions/custom/calls/','uploadFile','modificationId','/documents/','ai.serviceUrl','Bearer\x20','/messages/','2748pFxHCE','_apiUrl','data','code','/web-resources/','startConversation','name','fetchConversation','append','value','text','abortController','AbortError','getModels','isPremiumPlugin','/conversations?','679803Gcgrwl','upsertCustomAIActionRating','status','request','plugins','uploadUrl','make-tone-formal','40705WZHZxj','777wplGZT','POST','upsertCustomAIReviewRating','parse','CloudServices','/files/','/actions/custom/calls','_sendApiRequest'];_0x4a7e=function(){return _0x11d39e;};return _0x4a7e();}(function(_0x4d11ab,_0x6c9dc){const _0x4aba88=_0x3d41,_0xd3c7cb=_0x4d11ab();while(!![]){try{const _0x15708a=parseInt(_0x4aba88(0x198))/0x1*(-parseInt(_0x4aba88(0x133))/0x2)+-parseInt(_0x4aba88(0x191))/0x3+parseInt(_0x4aba88(0x135))/0x4*(-parseInt(_0x4aba88(0x176))/0x5)+parseInt(_0x4aba88(0x181))/0x6*(parseInt(_0x4aba88(0x199))/0x7)+-parseInt(_0x4aba88(0x161))/0x8+parseInt(_0x4aba88(0x177))/0x9+parseInt(_0x4aba88(0x146))/0xa*(parseInt(_0x4aba88(0x160))/0xb);if(_0x15708a===_0x6c9dc)break;else _0xd3c7cb['push'](_0xd3c7cb['shift']());}catch(_0x3f597c){_0xd3c7cb['push'](_0xd3c7cb['shift']());}}}(_0x4a7e,0x6fa7b));import{createParser as _0x34775d}from'eventsource-parser';import{ContextPlugin as _0x498ac0}from'ckeditor5/src/core.js';import{CKEditorError as _0xc91ee9}from'ckeditor5/src/utils.js';function _0x3d41(_0x2bb8f9,_0x4561d8){const _0x4a7e28=_0x4a7e();return _0x3d41=function(_0x3d41d7,_0x27c71e){_0x3d41d7=_0x3d41d7-0x132;let _0x32e1e7=_0x4a7e28[_0x3d41d7];return _0x32e1e7;},_0x3d41(_0x2bb8f9,_0x4561d8);}export var AIActionsNames;!function(_0x39f7ab){const _0x4514e9=_0x3d41;_0x39f7ab[_0x4514e9(0x152)]=_0x4514e9(0x1ae),_0x39f7ab[_0x4514e9(0x174)]=_0x4514e9(0x1a9),_0x39f7ab[_0x4514e9(0x1bb)]=_0x4514e9(0x15c),_0x39f7ab[_0x4514e9(0x1ab)]=_0x4514e9(0x1b8),_0x39f7ab[_0x4514e9(0x132)]=_0x4514e9(0x13c),_0x39f7ab[_0x4514e9(0x148)]=_0x4514e9(0x140),_0x39f7ab[_0x4514e9(0x136)]=_0x4514e9(0x197),_0x39f7ab[_0x4514e9(0x134)]=_0x4514e9(0x151);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x498ac0{[_0x1d51b9(0x182)];[_0x1d51b9(0x16b)];[_0x1d51b9(0x1c3)];static get[_0x1d51b9(0x138)](){const _0x44b864=_0x1d51b9;return[_0x44b864(0x19d)];}static get[_0x1d51b9(0x1a2)](){const _0x3d5e7e=_0x1d51b9;return _0x3d5e7e(0x150);}static get[_0x1d51b9(0x1ac)](){return!0x0;}static get[_0x1d51b9(0x18f)](){return!0x0;}constructor(_0x5ef50c){const _0x3fbb04=_0x1d51b9;super(_0x5ef50c),this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x1b7)](_0x3fbb04(0x17e),_0x3fbb04(0x1a6)),this[_0x3fbb04(0x182)]=this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x13f)](_0x3fbb04(0x17e)),this[_0x3fbb04(0x16b)]=null,this[_0x3fbb04(0x1c3)]=new TextDecoder();}[_0x1d51b9(0x1c0)](){const _0x82e936=_0x1d51b9,_0x159925=this[_0x82e936(0x179)][_0x82e936(0x195)][_0x82e936(0x13f)](_0x82e936(0x19d));if(!_0x159925[_0x82e936(0x158)])throw new _0xc91ee9(_0x82e936(0x14a),this);this[_0x82e936(0x16b)]=_0x159925[_0x82e936(0x158)];}[_0x1d51b9(0x186)](_0x508d01,_0xffce2c){const _0xf05e86=_0x1d51b9,_0x17b939=this[_0xf05e86(0x1a0)](_0xf05e86(0x157),_0xf05e86(0x19a),{'id':_0x508d01,'group':_0xffce2c});return{'getConversation':async()=>(await _0x17b939[_0xf05e86(0x194)])[_0xf05e86(0x1a3)](),'abortController':_0x17b939[_0xf05e86(0x18c)]};}[_0x1d51b9(0x1c2)]({message:_0x2d21c,conversationId:_0x44a677,parts:_0x1a9664,capabilities:_0x24c2e6,model:_0x186769,quickActionData:_0x3d6d3d}){const _0x38f20d=_0x1d51b9,_0x451277={..._0x3d6d3d&&{'quickActionData':_0x3d6d3d}},_0x3c0183={'prompt':_0x2d21c,'content':_0x1a9664,'model':_0x186769,..._0x24c2e6&&{'capabilities':_0x24c2e6},...Object[_0x38f20d(0x171)](_0x451277)[_0x38f20d(0x141)]>0x0&&{'attributes':_0x451277}},_0x147639=this[_0x38f20d(0x1a0)](_0x38f20d(0x15a)+_0x44a677+_0x38f20d(0x16c),_0x38f20d(0x19a),_0x3c0183);return{'getStream':async()=>{const _0x37e203=_0x38f20d,_0x5358b9=(await _0x147639[_0x37e203(0x194)])[_0x37e203(0x149)];return this[_0x37e203(0x145)](_0x5358b9);},'abortController':_0x147639[_0x38f20d(0x18c)]};}[_0x1d51b9(0x142)]({content:_0x12eaaf,message:_0x49338b,model:_0x317741,outputFormat:_0x56a5a5}){const _0x373f1c=_0x1d51b9,_0x3faed3={'content':[{'type':_0x373f1c(0x18b),'content':_0x12eaaf}],'prompt':_0x49338b,'model':_0x317741,'outputFormat':_0x56a5a5},_0x393ca6=this[_0x373f1c(0x1a0)](_0x373f1c(0x19f),_0x373f1c(0x19a),_0x3faed3);return{'getStream':async()=>{const _0x8a97e5=_0x373f1c,_0x353220=(await _0x393ca6[_0x8a97e5(0x194)])[_0x8a97e5(0x149)];return this[_0x8a97e5(0x145)](_0x353220);},'abortController':_0x393ca6[_0x373f1c(0x18c)]};}[_0x1d51b9(0x1bd)]({actionName:_0x5c3c82,content:_0x4eedc5,args:_0x8162ba}){const _0x108bab=_0x1d51b9,_0x3dc443={'content':[{'type':_0x108bab(0x18b),'content':_0x4eedc5}],'args':_0x8162ba},_0x3a50d4=this[_0x108bab(0x1a0)](_0x108bab(0x16d)+_0x5c3c82+_0x108bab(0x14c),_0x108bab(0x19a),_0x3dc443);return{'getStream':async()=>{const _0x41adf5=_0x108bab,_0x1ebe3b=(await _0x3a50d4[_0x41adf5(0x194)])[_0x41adf5(0x149)];return this[_0x41adf5(0x145)](_0x1ebe3b);},'abortController':_0x3a50d4[_0x108bab(0x18c)]};}[_0x1d51b9(0x17b)](_0x3ffaf8,_0x2bf640,_0x3bdd4f){const _0x2a2929=_0x1d51b9,_0xb7e0a2=new FormData();_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x14d),_0x2bf640,_0x2bf640[_0x2a2929(0x187)]),_0x3bdd4f&&_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x173),JSON[_0x2a2929(0x1b9)](_0x3bdd4f));const _0x12f7f1=this[_0x2a2929(0x1a0)](_0x2a2929(0x15a)+_0x3ffaf8+_0x2a2929(0x1af),_0x2a2929(0x19a),_0xb7e0a2);return{'getId':async()=>(await _0x12f7f1[_0x2a2929(0x194)])[_0x2a2929(0x1a3)](),'abortController':_0x12f7f1[_0x2a2929(0x18c)]};}[_0x1d51b9(0x165)](_0xe53136,_0x1b999a){const _0x3c2442=_0x1d51b9,_0x384ea0=this[_0x3c2442(0x1a0)](_0x3c2442(0x15a)+_0xe53136+_0x3c2442(0x17d)+_0x1b999a,_0x3c2442(0x13e));return{'getDocument':async()=>(await _0x384ea0[_0x3c2442(0x194)])[_0x3c2442(0x1a3)](),'abortController':_0x384ea0[_0x3c2442(0x18c)]};}[_0x1d51b9(0x1aa)](_0x277985,_0x53aebf,_0x19c987){const _0x4b719e=_0x1d51b9,_0x3a5324={'content':_0x53aebf};_0x19c987&&(_0x3a5324[_0x4b719e(0x173)]=_0x19c987);const _0x5125fa=this[_0x4b719e(0x1a0)](_0x4b719e(0x15a)+_0x277985+_0x4b719e(0x1a5),_0x4b719e(0x19a),_0x3a5324);return{'getId':async()=>(await _0x5125fa[_0x4b719e(0x194)])[_0x4b719e(0x1a3)](),'abortController':_0x5125fa[_0x4b719e(0x18c)]};}[_0x1d51b9(0x15e)](_0x216a38,_0x2b612f){const _0x1eb831=_0x1d51b9,_0x36c124=new URLSearchParams();_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x144),_0x1eb831(0x137)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x159),_0x1eb831(0x15d)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x13b),_0x216a38),_0x2b612f&&_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x153),_0x2b612f);const _0x455c2f=this[_0x1eb831(0x1a0)](_0x1eb831(0x190)+_0x36c124[_0x1eb831(0x1b3)](),_0x1eb831(0x13e));return{'getConversations':async()=>{const _0x5b10fb=_0x1eb831,_0x4374f7=await _0x455c2f[_0x5b10fb(0x194)];return(await _0x4374f7[_0x5b10fb(0x1a3)]())[_0x5b10fb(0x156)];},'abortController':_0x455c2f[_0x1eb831(0x18c)]};}[_0x1d51b9(0x155)](_0x264c14){const _0xbfbb90=_0x1d51b9,_0x1a91ef=this[_0xbfbb90(0x1a0)](_0xbfbb90(0x15a)+_0x264c14,_0xbfbb90(0x14b));return{'execute':async()=>{const _0x355d07=_0xbfbb90;await _0x1a91ef[_0x355d07(0x194)];},'abortController':_0x1a91ef[_0xbfbb90(0x18c)]};}[_0x1d51b9(0x167)](_0x41472f,_0x52e173){const _0x403867=_0x1d51b9,_0x5b684f=this[_0x403867(0x1a0)](_0x403867(0x15a)+_0x41472f,_0x403867(0x1b5),_0x52e173);return{'getResult':async()=>(await _0x5b684f[_0x403867(0x194)],_0x52e173),'abortController':_0x5b684f[_0x403867(0x18c)]};}[_0x1d51b9(0x188)](_0x2fd4a2){const _0x28cb08=_0x1d51b9,_0x46d627=this[_0x28cb08(0x1a0)](_0x28cb08(0x15a)+_0x2fd4a2,_0x28cb08(0x13e));return{'getConversation':async()=>(await _0x46d627[_0x28cb08(0x194)])[_0x28cb08(0x1a3)](),'abortController':_0x46d627[_0x28cb08(0x18c)]};}[_0x1d51b9(0x13d)](_0xa5b6a1){const _0x18e577=_0x1d51b9,_0x56ff16=this[_0x18e577(0x1a0)](_0x18e577(0x15a)+_0xa5b6a1+_0x18e577(0x16c),_0x18e577(0x13e));return{'getMessages':async()=>{const _0x338a7f=_0x18e577,_0x4f29b6=await _0x56ff16[_0x338a7f(0x194)];return(await _0x4f29b6[_0x338a7f(0x1a3)]())[_0x338a7f(0x156)];},'abortController':_0x56ff16[_0x18e577(0x18c)]};}[_0x1d51b9(0x196)](_0x1527fe,_0x58123b,_0x1cc05f){const _0x4601bb=_0x1d51b9,_0x28a886=this[_0x4601bb(0x1a0)](_0x4601bb(0x15a)+_0x1527fe+_0x4601bb(0x170),_0x4601bb(0x19a),{'url':_0x58123b,'attributes':_0x1cc05f});return{'getId':async()=>(await _0x28a886[_0x4601bb(0x194)])[_0x4601bb(0x1a3)](),'abortController':_0x28a886[_0x4601bb(0x18c)]};}[_0x1d51b9(0x18e)](){const _0x5e3939=_0x1d51b9,_0x5ae95e=this[_0x5e3939(0x1a0)](_0x5e3939(0x1b6),_0x5e3939(0x13e));return{'list':async()=>await(await _0x5ae95e[_0x5e3939(0x194)])[_0x5e3939(0x1a3)](),'abortController':_0x5ae95e[_0x5e3939(0x18c)]};}[_0x1d51b9(0x13a)](_0x1ac123,_0x2698a2){const _0x4c5350=_0x1d51b9,_0x158517=this[_0x4c5350(0x1a0)](_0x4c5350(0x15a)+_0x1ac123+_0x4c5350(0x19e)+_0x2698a2,_0x4c5350(0x14b));return{'execute':async()=>{const _0x1b7191=_0x4c5350;await _0x158517[_0x1b7191(0x194)];},'abortController':_0x158517[_0x4c5350(0x18c)]};}[_0x1d51b9(0x1bf)](_0x204cb2,_0x1a7b26){const _0x5ec68c=_0x1d51b9,_0x2e934a=this[_0x5ec68c(0x1a0)](_0x5ec68c(0x15a)+_0x204cb2+_0x5ec68c(0x17d)+_0x1a7b26,_0x5ec68c(0x14b));return{'execute':async()=>{const _0x3391e0=_0x5ec68c;await _0x2e934a[_0x3391e0(0x194)];},'abortController':_0x2e934a[_0x5ec68c(0x18c)]};}[_0x1d51b9(0x154)](_0x112343,_0x2a399f){const _0xe3cb7e=_0x1d51b9,_0x514194=this[_0xe3cb7e(0x1a0)](_0xe3cb7e(0x15a)+_0x112343+_0xe3cb7e(0x185)+_0x2a399f,_0xe3cb7e(0x14b));return{'execute':async()=>{const _0x458e38=_0xe3cb7e;await _0x514194[_0x458e38(0x194)];},'abortController':_0x514194[_0xe3cb7e(0x18c)]};}[_0x1d51b9(0x1bc)]({reviewName:_0x3826e4,content:_0x5bc974,args:_0x45b7e3}){const _0x4c5932=_0x1d51b9,_0x2fc13b=this[_0x4c5932(0x1a0)](_0x4c5932(0x175)+_0x3826e4+_0x4c5932(0x14c),_0x4c5932(0x19a),{'content':[{'type':_0x4c5932(0x18b),'content':_0x5bc974}],'args':_0x45b7e3});return{'getStream':async()=>{const _0x3dad5a=_0x4c5932,_0x3da2ea=(await _0x2fc13b[_0x3dad5a(0x194)])[_0x3dad5a(0x149)];return this[_0x3dad5a(0x145)](_0x3da2ea);},'abortController':_0x2fc13b[_0x4c5932(0x18c)]};}[_0x1d51b9(0x1a1)]({content:_0x108ace,prompt:_0x1afd70,model:_0x55cc18}){const _0x48c152=_0x1d51b9,_0x4a05ac=this[_0x48c152(0x1a0)](_0x48c152(0x178),_0x48c152(0x19a),{'content':[{'type':_0x48c152(0x18b),'content':_0x108ace}],'prompt':_0x1afd70,'model':_0x55cc18});return{'getStream':async()=>{const _0x458ee0=_0x48c152,_0x2912ab=(await _0x4a05ac[_0x458ee0(0x194)])[_0x458ee0(0x149)];return this[_0x458ee0(0x145)](_0x2912ab);},'abortController':_0x4a05ac[_0x48c152(0x18c)]};}[_0x1d51b9(0x168)](_0x10c0a3,_0x2656f1,_0x17d706){const _0x4fd35e=_0x1d51b9,_0x32827b=this[_0x4fd35e(0x1a0)](_0x4fd35e(0x15a)+_0x10c0a3+_0x4fd35e(0x180)+_0x2656f1+_0x4fd35e(0x162),_0x4fd35e(0x1b1),{'positiveCount':_0x17d706[_0x4fd35e(0x147)],'totalCount':_0x17d706[_0x4fd35e(0x16f)],'modificationId':_0x17d706[_0x4fd35e(0x17c)]});return{'execute':async()=>{const _0x49d8e2=_0x4fd35e;await _0x32827b[_0x49d8e2(0x194)];},'abortController':_0x32827b[_0x4fd35e(0x18c)]};}[_0x1d51b9(0x1b2)](_0x22c3d0,_0x1b15cf,_0x300930){const _0x42ce57=_0x1d51b9,_0x166f99=this[_0x42ce57(0x1a0)](_0x42ce57(0x16d)+_0x22c3d0+_0x42ce57(0x1b0)+_0x1b15cf+_0x42ce57(0x162),_0x42ce57(0x1b1),{'positiveCount':_0x300930[_0x42ce57(0x147)],'totalCount':_0x300930[_0x42ce57(0x16f)]});return{'execute':async()=>{const _0x4b4c67=_0x42ce57;await _0x166f99[_0x4b4c67(0x194)];},'abortController':_0x166f99[_0x42ce57(0x18c)]};}[_0x1d51b9(0x192)](_0x3d0338,_0x1bbb07){const _0x4324ab=_0x1d51b9,_0x823b56=this[_0x4324ab(0x1a0)](_0x4324ab(0x17a)+_0x3d0338+_0x4324ab(0x162),_0x4324ab(0x1b1),{'positiveCount':_0x1bbb07[_0x4324ab(0x147)],'totalCount':_0x1bbb07[_0x4324ab(0x16f)]});return{'execute':async()=>{const _0x42c841=_0x4324ab;await _0x823b56[_0x42c841(0x194)];},'abortController':_0x823b56[_0x4324ab(0x18c)]};}[_0x1d51b9(0x163)](_0x2f2b40,_0x11f74f,_0x226366,_0x47a706){const _0x28edac=_0x1d51b9,_0x83c6ee=this[_0x28edac(0x1a0)](_0x28edac(0x175)+_0x2f2b40+_0x28edac(0x1b0)+_0x11f74f+_0x28edac(0x162),_0x28edac(0x1b1),{'positiveCount':_0x226366[_0x28edac(0x147)],'totalCount':_0x226366[_0x28edac(0x16f)],'dataId':_0x47a706});return{'execute':async()=>{const _0x11c062=_0x28edac;await _0x83c6ee[_0x11c062(0x194)];},'abortController':_0x83c6ee[_0x28edac(0x18c)]};}[_0x1d51b9(0x19b)](_0x2a1f0d,_0xd1ffc5,_0x16d7c7){const _0x14abb3=_0x1d51b9,_0x25c4c2=this[_0x14abb3(0x1a0)](_0x14abb3(0x172)+_0x2a1f0d+_0x14abb3(0x162),_0x14abb3(0x1b1),{'positiveCount':_0xd1ffc5[_0x14abb3(0x147)],'totalCount':_0xd1ffc5[_0x14abb3(0x16f)],'dataId':_0x16d7c7});return{'execute':async()=>{const _0x2eb069=_0x14abb3;await _0x25c4c2[_0x2eb069(0x194)];},'abortController':_0x25c4c2[_0x14abb3(0x18c)]};}[_0x1d51b9(0x1a0)](_0x23fe7f,_0x1911be,_0x4c59ae){const _0x26317a=_0x1d51b9,_0x1a18f2=new AbortController(),_0x29177b=_0x4c59ae instanceof FormData,_0x40dd70={'Authorization':_0x26317a(0x17f)+this[_0x26317a(0x16b)]?.[_0x26317a(0x18a)]};_0x4c59ae&&!_0x29177b&&(_0x40dd70[_0x26317a(0x14f)]=_0x26317a(0x1a8));const _0x4c6b63={'method':_0x1911be,'headers':_0x40dd70,'signal':_0x1a18f2[_0x26317a(0x1a4)]};return _0x4c59ae&&(_0x4c6b63[_0x26317a(0x149)]=_0x29177b?_0x4c59ae:JSON[_0x26317a(0x1b9)](_0x4c59ae)),{'request':fetch(''+this[_0x26317a(0x182)]+_0x23fe7f,_0x4c6b63)[_0x26317a(0x15b)](_0xc6c613=>{const _0x434d29=_0x26317a;this[_0x434d29(0x169)](_0xc6c613);})[_0x26317a(0x14e)](_0x5c63a6=>_0x5c63a6['ok']?_0x5c63a6:_0x5c63a6[_0x26317a(0x1a3)]()[_0x26317a(0x14e)](_0x2926fe=>{const _0x2f3887=_0x26317a;throw{'url':this[_0x2f3887(0x182)],'path':_0x23fe7f,'method':_0x1911be,'body':_0x4c59ae,'status':(_0x5c63a6||{})[_0x2f3887(0x193)],'statusText':(_0x5c63a6||{})[_0x2f3887(0x1be)],'code':_0x2926fe[_0x2f3887(0x184)],'message':_0x2926fe[_0x2f3887(0x15f)],'traceId':_0x2926fe[_0x2f3887(0x1c1)]};})),'abortController':_0x1a18f2};}async*[_0x1d51b9(0x145)](_0x535db4){const _0x46fbfd=_0x1d51b9,_0x16b97f=[],_0x12dbfa=_0x535db4[_0x46fbfd(0x164)](),_0x6f8d2d=_0x34775d({'onError':_0x28896f=>{const _0x20c338=_0x46fbfd;this[_0x20c338(0x169)](_0x28896f);},'onEvent':_0x1ffd12=>{const _0x443399=_0x46fbfd;_0x1ffd12[_0x443399(0x183)]=JSON[_0x443399(0x19c)](_0x1ffd12[_0x443399(0x183)]),_0x16b97f[_0x443399(0x143)](_0x1ffd12);}});try{let _0xd60158=!0x1;for(;!_0xd60158;){const {done:_0xad78b4,value:_0x4a4ff5}=await _0x12dbfa[_0x46fbfd(0x16a)]();_0xad78b4&&(_0xd60158=!0x0),_0x6f8d2d[_0x46fbfd(0x16e)](this[_0x46fbfd(0x1c3)][_0x46fbfd(0x166)](_0x4a4ff5,{'stream':!0x0})),yield*_0x16b97f,_0x16b97f[_0x46fbfd(0x141)]=0x0;}}catch(_0x2b31e2){this[_0x46fbfd(0x169)](_0x2b31e2);}finally{_0x12dbfa[_0x46fbfd(0x1b4)](),_0x6f8d2d[_0x46fbfd(0x1ad)]();}}[_0x1d51b9(0x169)](_0x4a4bdc){const _0x23e474=_0x1d51b9;if(_0x4a4bdc instanceof _0xc91ee9)throw _0x4a4bdc;if(_0x4a4bdc instanceof Error&&_0x23e474(0x18d)===_0x4a4bdc[_0x23e474(0x187)])throw new _0xc91ee9(_0x23e474(0x1ba),this,{'originalError':_0x4a4bdc});throw new _0xc91ee9(_0x23e474(0x1a7),this,{'originalError':_0x4a4bdc});}}
|
|
23
|
+
const _0x19af65=_0x2300;(function(_0xac800c,_0x590e59){const _0x5a73ba=_0x2300,_0xa17bb6=_0xac800c();while(!![]){try{const _0x394f35=-parseInt(_0x5a73ba(0x21b))/0x1*(parseInt(_0x5a73ba(0x1de))/0x2)+-parseInt(_0x5a73ba(0x1cf))/0x3*(parseInt(_0x5a73ba(0x1bf))/0x4)+-parseInt(_0x5a73ba(0x1c2))/0x5+parseInt(_0x5a73ba(0x1ea))/0x6+-parseInt(_0x5a73ba(0x1ad))/0x7*(parseInt(_0x5a73ba(0x1ec))/0x8)+parseInt(_0x5a73ba(0x1e2))/0x9+parseInt(_0x5a73ba(0x1b8))/0xa;if(_0x394f35===_0x590e59)break;else _0xa17bb6['push'](_0xa17bb6['shift']());}catch(_0x2bf7ea){_0xa17bb6['push'](_0xa17bb6['shift']());}}}(_0x775f,0x39189));import{createParser as _0x3d2955}from'eventsource-parser';import{ContextPlugin as _0x223be8}from'ckeditor5/src/core.js';function _0x2300(_0x178c4b,_0x53286c){const _0x775f46=_0x775f();return _0x2300=function(_0x2300c8,_0x1d1e79){_0x2300c8=_0x2300c8-0x194;let _0xdf0a97=_0x775f46[_0x2300c8];return _0xdf0a97;},_0x2300(_0x178c4b,_0x53286c);}function _0x775f(){const _0x2e1531=['fetchConversations','/web-resources','5996240WpTVbl','signal','limit','fetchConversation','statusText','/files','make-tone-formal','848uwwPqB','MAKE_TONE_CASUAL','upsertAIActionRating','2321225KKXxKS','/reviews/custom/calls','positiveCount','/conversations/','AIConnector','GET','decode','context','token','AbortError','CloudServices','attributes','stringify','4467EfhuKP','startConversation','ai-missing-token','/messages','MAKE_SHORTER','totalCount','executeCustomAction','_getStreamReader','toString','100','deleteWebResource','feed','MAKE_LONGER','catch','/conversations','3578lOHfMz','/actions/custom/calls/','/calls','deleteFile','3766599dZkUfi','fetchDocument','name','abortController','/reviews/system/','application/json','_decoder','/documents','2788938DQOqIz','items','200UiSudO','Content-Type','_handleError','/documents/','CONTINUE','push','IMPROVE_WRITING','callSystemReview','modificationId','PATCH','value','group','ai.serviceUrl','define','init','getModels','read','keys','upsertCustomAIReviewRating','request','then','DELETE','pluginName','deleteDocument','config','/reviews/custom/calls/','/ratings','status','/calls/','fetchConversationMessages','code','MAKE_TONE_FORMAL','make-longer','/actions/custom/calls','_sendApiRequest','get','deleteConversation','POST','isPremiumPlugin','uploadDocument','requires','make-tone-casual','ai-request-failed','uploadFile','make-shorter','text','isOfficialPlugin','195DIsxVo','body','reset','message','excludeEmpty','executeAction','https://ai.cke-cs.com/v1','_token','callCustomReview','json','releaseLock','/models/1','_apiUrl','/web-resources/','getReader','/conversations?','traceId','fix-grammar','true','data','uploadUrl','updateConversation','continue','ai-request-aborted','upsertAIReviewRating','PUT','TRANSLATE','Bearer\x20','upsertAIChatRating','queryAssistant','parse','plugins','append','search','/actions/system/','33691NIZoPv','upsertCustomAIActionRating','improve-writing','/files/','/messages/','file','FIX_GRAMMAR','translate','length'];_0x775f=function(){return _0x2e1531;};return _0x775f();}import{CKEditorError as _0x70b51}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xc7fab3){const _0x5211a1=_0x2300;_0xc7fab3[_0x5211a1(0x1f0)]=_0x5211a1(0x1a0),_0xc7fab3[_0x5211a1(0x1b3)]=_0x5211a1(0x19b),_0xc7fab3[_0x5211a1(0x1f2)]=_0x5211a1(0x1af),_0xc7fab3[_0x5211a1(0x1db)]=_0x5211a1(0x20c),_0xc7fab3[_0x5211a1(0x1d3)]=_0x5211a1(0x218),_0xc7fab3[_0x5211a1(0x1c0)]=_0x5211a1(0x215),_0xc7fab3[_0x5211a1(0x20b)]=_0x5211a1(0x1be),_0xc7fab3[_0x5211a1(0x1a4)]=_0x5211a1(0x1b4);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x223be8{[_0x19af65(0x196)];[_0x19af65(0x222)];[_0x19af65(0x1e8)];static get[_0x19af65(0x214)](){const _0x2c85f7=_0x19af65;return[_0x2c85f7(0x1cc)];}static get[_0x19af65(0x202)](){const _0x54ba16=_0x19af65;return _0x54ba16(0x1c6);}static get[_0x19af65(0x21a)](){return!0x0;}static get[_0x19af65(0x212)](){return!0x0;}constructor(_0x5a3938){const _0x3a5c89=_0x19af65;super(_0x5a3938),this[_0x3a5c89(0x1c9)][_0x3a5c89(0x204)][_0x3a5c89(0x1f9)](_0x3a5c89(0x1f8),_0x3a5c89(0x221)),this[_0x3a5c89(0x196)]=this[_0x3a5c89(0x1c9)][_0x3a5c89(0x204)][_0x3a5c89(0x20f)](_0x3a5c89(0x1f8)),this[_0x3a5c89(0x222)]=null,this[_0x3a5c89(0x1e8)]=new TextDecoder();}[_0x19af65(0x1fa)](){const _0x4b7e20=_0x19af65,_0x1e3127=this[_0x4b7e20(0x1c9)][_0x4b7e20(0x1a9)][_0x4b7e20(0x20f)](_0x4b7e20(0x1cc));if(!_0x1e3127[_0x4b7e20(0x1ca)])throw new _0x70b51(_0x4b7e20(0x1d1),this);this[_0x4b7e20(0x222)]=_0x1e3127[_0x4b7e20(0x1ca)];}[_0x19af65(0x1d0)](_0x1ab96d,_0x28f9f9){const _0x142097=_0x19af65,_0x2fd0b6=this[_0x142097(0x20e)](_0x142097(0x1dd),_0x142097(0x211),{'id':_0x1ab96d,'group':_0x28f9f9});return{'getConversation':async()=>(await _0x2fd0b6[_0x142097(0x1ff)])[_0x142097(0x224)](),'abortController':_0x2fd0b6[_0x142097(0x1e5)]};}[_0x19af65(0x1a7)]({message:_0x2006e3,conversationId:_0x47de21,parts:_0x5c0d1d,capabilities:_0x425058,model:_0x1a7e73,quickActionData:_0x581eae}){const _0x37e16a=_0x19af65,_0x4dc562={..._0x581eae&&{'quickActionData':_0x581eae}},_0x210af5={'prompt':_0x2006e3,'content':_0x5c0d1d,'model':_0x1a7e73,..._0x425058&&{'capabilities':_0x425058},...Object[_0x37e16a(0x1fd)](_0x4dc562)[_0x37e16a(0x1b5)]>0x0&&{'attributes':_0x4dc562}},_0x83c642=this[_0x37e16a(0x20e)](_0x37e16a(0x1c5)+_0x47de21+_0x37e16a(0x1d2),_0x37e16a(0x211),_0x210af5);return{'getStream':async()=>{const _0x124e27=_0x37e16a,_0x34c786=(await _0x83c642[_0x124e27(0x1ff)])[_0x124e27(0x21c)];return this[_0x124e27(0x1d6)](_0x34c786);},'abortController':_0x83c642[_0x37e16a(0x1e5)]};}[_0x19af65(0x1d5)]({content:_0x5e9154,message:_0x1db952,model:_0x596b87,outputFormat:_0x3ce902}){const _0xc1166a=_0x19af65,_0x274a3e={'content':[{'type':_0xc1166a(0x219),'content':_0x5e9154}],'prompt':_0x1db952,'model':_0x596b87,'outputFormat':_0x3ce902},_0x5bbe7e=this[_0xc1166a(0x20e)](_0xc1166a(0x20d),_0xc1166a(0x211),_0x274a3e);return{'getStream':async()=>{const _0x213f22=_0xc1166a,_0x47c60e=(await _0x5bbe7e[_0x213f22(0x1ff)])[_0x213f22(0x21c)];return this[_0x213f22(0x1d6)](_0x47c60e);},'abortController':_0x5bbe7e[_0xc1166a(0x1e5)]};}[_0x19af65(0x220)]({actionName:_0x18b282,content:_0x3415cd,args:_0x325dd9}){const _0x25b926=_0x19af65,_0xd519e5={'content':[{'type':_0x25b926(0x219),'content':_0x3415cd}],'args':_0x325dd9},_0x334772=this[_0x25b926(0x20e)](_0x25b926(0x1ac)+_0x18b282+_0x25b926(0x1e0),_0x25b926(0x211),_0xd519e5);return{'getStream':async()=>{const _0x19bcee=_0x25b926,_0xf01425=(await _0x334772[_0x19bcee(0x1ff)])[_0x19bcee(0x21c)];return this[_0x19bcee(0x1d6)](_0xf01425);},'abortController':_0x334772[_0x25b926(0x1e5)]};}[_0x19af65(0x217)](_0x1e7968,_0x20c591,_0x3970a0){const _0x43e479=_0x19af65,_0x5ac3a2=new FormData();_0x5ac3a2[_0x43e479(0x1aa)](_0x43e479(0x1b2),_0x20c591,_0x20c591[_0x43e479(0x1e4)]),_0x3970a0&&_0x5ac3a2[_0x43e479(0x1aa)](_0x43e479(0x1cd),JSON[_0x43e479(0x1ce)](_0x3970a0));const _0x529925=this[_0x43e479(0x20e)](_0x43e479(0x1c5)+_0x1e7968+_0x43e479(0x1bd),_0x43e479(0x211),_0x5ac3a2);return{'getId':async()=>(await _0x529925[_0x43e479(0x1ff)])[_0x43e479(0x224)](),'abortController':_0x529925[_0x43e479(0x1e5)]};}[_0x19af65(0x1e3)](_0x5318a9,_0x1fcf26){const _0x56c5bf=_0x19af65,_0x32713a=this[_0x56c5bf(0x20e)](_0x56c5bf(0x1c5)+_0x5318a9+_0x56c5bf(0x1ef)+_0x1fcf26,_0x56c5bf(0x1c7));return{'getDocument':async()=>(await _0x32713a[_0x56c5bf(0x1ff)])[_0x56c5bf(0x224)](),'abortController':_0x32713a[_0x56c5bf(0x1e5)]};}[_0x19af65(0x213)](_0x3a06dc,_0x5dfd33,_0x577076){const _0x4a6c71=_0x19af65,_0x313514={'content':_0x5dfd33};_0x577076&&(_0x313514[_0x4a6c71(0x1cd)]=_0x577076);const _0x4764f9=this[_0x4a6c71(0x20e)](_0x4a6c71(0x1c5)+_0x3a06dc+_0x4a6c71(0x1e9),_0x4a6c71(0x211),_0x313514);return{'getId':async()=>(await _0x4764f9[_0x4a6c71(0x1ff)])[_0x4a6c71(0x224)](),'abortController':_0x4764f9[_0x4a6c71(0x1e5)]};}[_0x19af65(0x1b6)](_0x20aefa,_0x11561c){const _0x38bb7d=_0x19af65,_0x359d94=new URLSearchParams();_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x21f),_0x38bb7d(0x19c)),_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1ba),_0x38bb7d(0x1d8)),_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1f7),_0x20aefa),_0x11561c&&_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1ab),_0x11561c);const _0xa722e1=this[_0x38bb7d(0x20e)](_0x38bb7d(0x199)+_0x359d94[_0x38bb7d(0x1d7)](),_0x38bb7d(0x1c7));return{'getConversations':async()=>{const _0x436aa0=_0x38bb7d,_0x35d907=await _0xa722e1[_0x436aa0(0x1ff)];return(await _0x35d907[_0x436aa0(0x224)]())[_0x436aa0(0x1eb)];},'abortController':_0xa722e1[_0x38bb7d(0x1e5)]};}[_0x19af65(0x210)](_0x3fec4a){const _0x43d55a=_0x19af65,_0x1ef1ba=this[_0x43d55a(0x20e)](_0x43d55a(0x1c5)+_0x3fec4a,_0x43d55a(0x201));return{'execute':async()=>{const _0x402c4d=_0x43d55a;await _0x1ef1ba[_0x402c4d(0x1ff)];},'abortController':_0x1ef1ba[_0x43d55a(0x1e5)]};}[_0x19af65(0x19f)](_0x1a5cd2,_0x32da63){const _0x3087d5=_0x19af65,_0x10bbce=this[_0x3087d5(0x20e)](_0x3087d5(0x1c5)+_0x1a5cd2,_0x3087d5(0x1f5),_0x32da63);return{'getResult':async()=>(await _0x10bbce[_0x3087d5(0x1ff)],_0x32da63),'abortController':_0x10bbce[_0x3087d5(0x1e5)]};}[_0x19af65(0x1bb)](_0x2a9517){const _0x299773=_0x19af65,_0x14049a=this[_0x299773(0x20e)](_0x299773(0x1c5)+_0x2a9517,_0x299773(0x1c7));return{'getConversation':async()=>(await _0x14049a[_0x299773(0x1ff)])[_0x299773(0x224)](),'abortController':_0x14049a[_0x299773(0x1e5)]};}[_0x19af65(0x209)](_0x3228c3){const _0x477f59=_0x19af65,_0x4f8d7b=this[_0x477f59(0x20e)](_0x477f59(0x1c5)+_0x3228c3+_0x477f59(0x1d2),_0x477f59(0x1c7));return{'getMessages':async()=>{const _0x190490=_0x477f59,_0x140b13=await _0x4f8d7b[_0x190490(0x1ff)];return(await _0x140b13[_0x190490(0x224)]())[_0x190490(0x1eb)];},'abortController':_0x4f8d7b[_0x477f59(0x1e5)]};}[_0x19af65(0x19e)](_0x4fb4a5,_0x56e5da,_0x271f40){const _0x252fda=_0x19af65,_0x6a8eb7=this[_0x252fda(0x20e)](_0x252fda(0x1c5)+_0x4fb4a5+_0x252fda(0x1b7),_0x252fda(0x211),{'url':_0x56e5da,'attributes':_0x271f40});return{'getId':async()=>(await _0x6a8eb7[_0x252fda(0x1ff)])[_0x252fda(0x224)](),'abortController':_0x6a8eb7[_0x252fda(0x1e5)]};}[_0x19af65(0x1fb)](){const _0x141783=_0x19af65,_0x9797c9=this[_0x141783(0x20e)](_0x141783(0x195),_0x141783(0x1c7));return{'list':async()=>await(await _0x9797c9[_0x141783(0x1ff)])[_0x141783(0x224)](),'abortController':_0x9797c9[_0x141783(0x1e5)]};}[_0x19af65(0x1e1)](_0x17438d,_0x18c592){const _0x42e34f=_0x19af65,_0x155ac1=this[_0x42e34f(0x20e)](_0x42e34f(0x1c5)+_0x17438d+_0x42e34f(0x1b0)+_0x18c592,_0x42e34f(0x201));return{'execute':async()=>{const _0x2b0ad9=_0x42e34f;await _0x155ac1[_0x2b0ad9(0x1ff)];},'abortController':_0x155ac1[_0x42e34f(0x1e5)]};}[_0x19af65(0x203)](_0x14c52d,_0x88130e){const _0x525e41=_0x19af65,_0x17bbe2=this[_0x525e41(0x20e)](_0x525e41(0x1c5)+_0x14c52d+_0x525e41(0x1ef)+_0x88130e,_0x525e41(0x201));return{'execute':async()=>{const _0x2e2b25=_0x525e41;await _0x17bbe2[_0x2e2b25(0x1ff)];},'abortController':_0x17bbe2[_0x525e41(0x1e5)]};}[_0x19af65(0x1d9)](_0x4fd894,_0x3e41c8){const _0x24c536=_0x19af65,_0x287a69=this[_0x24c536(0x20e)](_0x24c536(0x1c5)+_0x4fd894+_0x24c536(0x197)+_0x3e41c8,_0x24c536(0x201));return{'execute':async()=>{const _0x137b6e=_0x24c536;await _0x287a69[_0x137b6e(0x1ff)];},'abortController':_0x287a69[_0x24c536(0x1e5)]};}[_0x19af65(0x1f3)]({reviewName:_0x3d8122,content:_0x476c01,args:_0xd49357}){const _0x49295e=_0x19af65,_0x389f36=this[_0x49295e(0x20e)](_0x49295e(0x1e6)+_0x3d8122+_0x49295e(0x1e0),_0x49295e(0x211),{'content':[{'type':_0x49295e(0x219),'content':_0x476c01}],'args':_0xd49357});return{'getStream':async()=>{const _0xd52e53=_0x49295e,_0x2f2666=(await _0x389f36[_0xd52e53(0x1ff)])[_0xd52e53(0x21c)];return this[_0xd52e53(0x1d6)](_0x2f2666);},'abortController':_0x389f36[_0x49295e(0x1e5)]};}[_0x19af65(0x223)]({content:_0x415600,prompt:_0x5b67e6,model:_0x14f497}){const _0x2902c6=_0x19af65,_0x313aca=this[_0x2902c6(0x20e)](_0x2902c6(0x1c3),_0x2902c6(0x211),{'content':[{'type':_0x2902c6(0x219),'content':_0x415600}],'prompt':_0x5b67e6,'model':_0x14f497});return{'getStream':async()=>{const _0x2e3242=_0x2902c6,_0x568ec5=(await _0x313aca[_0x2e3242(0x1ff)])[_0x2e3242(0x21c)];return this[_0x2e3242(0x1d6)](_0x568ec5);},'abortController':_0x313aca[_0x2902c6(0x1e5)]};}[_0x19af65(0x1a6)](_0x4deacd,_0x2a0694,_0x22d155){const _0xf1763e=_0x19af65,_0x5f4f10=this[_0xf1763e(0x20e)](_0xf1763e(0x1c5)+_0x4deacd+_0xf1763e(0x1b1)+_0x2a0694+_0xf1763e(0x206),_0xf1763e(0x1a3),{'positiveCount':_0x22d155[_0xf1763e(0x1c4)],'totalCount':_0x22d155[_0xf1763e(0x1d4)],'modificationId':_0x22d155[_0xf1763e(0x1f4)]});return{'execute':async()=>{const _0xeb6ad8=_0xf1763e;await _0x5f4f10[_0xeb6ad8(0x1ff)];},'abortController':_0x5f4f10[_0xf1763e(0x1e5)]};}[_0x19af65(0x1c1)](_0x336543,_0x127247,_0x2216f1){const _0x5ee344=_0x19af65,_0x176353=this[_0x5ee344(0x20e)](_0x5ee344(0x1ac)+_0x336543+_0x5ee344(0x208)+_0x127247+_0x5ee344(0x206),_0x5ee344(0x1a3),{'positiveCount':_0x2216f1[_0x5ee344(0x1c4)],'totalCount':_0x2216f1[_0x5ee344(0x1d4)]});return{'execute':async()=>{const _0xad6e5f=_0x5ee344;await _0x176353[_0xad6e5f(0x1ff)];},'abortController':_0x176353[_0x5ee344(0x1e5)]};}[_0x19af65(0x1ae)](_0x2b3ebb,_0x339c2b){const _0x5b0791=_0x19af65,_0x565d4e=this[_0x5b0791(0x20e)](_0x5b0791(0x1df)+_0x2b3ebb+_0x5b0791(0x206),_0x5b0791(0x1a3),{'positiveCount':_0x339c2b[_0x5b0791(0x1c4)],'totalCount':_0x339c2b[_0x5b0791(0x1d4)]});return{'execute':async()=>{const _0x18d849=_0x5b0791;await _0x565d4e[_0x18d849(0x1ff)];},'abortController':_0x565d4e[_0x5b0791(0x1e5)]};}[_0x19af65(0x1a2)](_0x4b5304,_0xf493bb,_0x388a5e,_0x343453){const _0x11bb5c=_0x19af65,_0x564870=this[_0x11bb5c(0x20e)](_0x11bb5c(0x1e6)+_0x4b5304+_0x11bb5c(0x208)+_0xf493bb+_0x11bb5c(0x206),_0x11bb5c(0x1a3),{'positiveCount':_0x388a5e[_0x11bb5c(0x1c4)],'totalCount':_0x388a5e[_0x11bb5c(0x1d4)],'dataId':_0x343453});return{'execute':async()=>{const _0x4e3041=_0x11bb5c;await _0x564870[_0x4e3041(0x1ff)];},'abortController':_0x564870[_0x11bb5c(0x1e5)]};}[_0x19af65(0x1fe)](_0x27b879,_0x4c2b5b,_0xf6c6df){const _0x660d7=_0x19af65,_0x5cec66=this[_0x660d7(0x20e)](_0x660d7(0x205)+_0x27b879+_0x660d7(0x206),_0x660d7(0x1a3),{'positiveCount':_0x4c2b5b[_0x660d7(0x1c4)],'totalCount':_0x4c2b5b[_0x660d7(0x1d4)],'dataId':_0xf6c6df});return{'execute':async()=>{const _0x2b4df2=_0x660d7;await _0x5cec66[_0x2b4df2(0x1ff)];},'abortController':_0x5cec66[_0x660d7(0x1e5)]};}[_0x19af65(0x20e)](_0x1b4091,_0x2b4d54,_0x4530bc){const _0x5b93ed=_0x19af65,_0x5331ca=new AbortController(),_0x426f64=_0x4530bc instanceof FormData,_0x11ec56={'Authorization':_0x5b93ed(0x1a5)+this[_0x5b93ed(0x222)]?.[_0x5b93ed(0x1f6)]};_0x4530bc&&!_0x426f64&&(_0x11ec56[_0x5b93ed(0x1ed)]=_0x5b93ed(0x1e7));const _0x5eb24b={'method':_0x2b4d54,'headers':_0x11ec56,'signal':_0x5331ca[_0x5b93ed(0x1b9)]};return _0x4530bc&&(_0x5eb24b[_0x5b93ed(0x21c)]=_0x426f64?_0x4530bc:JSON[_0x5b93ed(0x1ce)](_0x4530bc)),{'request':fetch(''+this[_0x5b93ed(0x196)]+_0x1b4091,_0x5eb24b)[_0x5b93ed(0x1dc)](_0x4471cf=>{const _0x10c486=_0x5b93ed;this[_0x10c486(0x1ee)](_0x4471cf);})[_0x5b93ed(0x200)](_0xf90b78=>_0xf90b78['ok']?_0xf90b78:_0xf90b78[_0x5b93ed(0x224)]()[_0x5b93ed(0x200)](_0x4fe41d=>{const _0x58723a=_0x5b93ed;throw{'url':this[_0x58723a(0x196)],'path':_0x1b4091,'method':_0x2b4d54,'body':_0x4530bc,'status':(_0xf90b78||{})[_0x58723a(0x207)],'statusText':(_0xf90b78||{})[_0x58723a(0x1bc)],'code':_0x4fe41d[_0x58723a(0x20a)],'message':_0x4fe41d[_0x58723a(0x21e)],'traceId':_0x4fe41d[_0x58723a(0x19a)]};})),'abortController':_0x5331ca};}async*[_0x19af65(0x1d6)](_0x2390fd){const _0x38f3af=_0x19af65,_0x575ba4=[],_0x30f67b=_0x2390fd[_0x38f3af(0x198)](),_0x19cf48=_0x3d2955({'onError':_0x416d0e=>{const _0x5dae56=_0x38f3af;this[_0x5dae56(0x1ee)](_0x416d0e);},'onEvent':_0x38f0dd=>{const _0x3d846b=_0x38f3af;_0x38f0dd[_0x3d846b(0x19d)]=JSON[_0x3d846b(0x1a8)](_0x38f0dd[_0x3d846b(0x19d)]),_0x575ba4[_0x3d846b(0x1f1)](_0x38f0dd);}});try{let _0x58d53d=!0x1;for(;!_0x58d53d;){const {done:_0x20856b,value:_0x396428}=await _0x30f67b[_0x38f3af(0x1fc)]();_0x20856b&&(_0x58d53d=!0x0),_0x19cf48[_0x38f3af(0x1da)](this[_0x38f3af(0x1e8)][_0x38f3af(0x1c8)](_0x396428,{'stream':!0x0})),yield*_0x575ba4,_0x575ba4[_0x38f3af(0x1b5)]=0x0;}}catch(_0x27e0f2){this[_0x38f3af(0x1ee)](_0x27e0f2);}finally{_0x30f67b[_0x38f3af(0x194)](),_0x19cf48[_0x38f3af(0x21d)]();}}[_0x19af65(0x1ee)](_0x103b3d){const _0x5257ef=_0x19af65;if(_0x103b3d instanceof _0x70b51)throw _0x103b3d;if(_0x103b3d instanceof Error&&_0x5257ef(0x1cb)===_0x103b3d[_0x5257ef(0x1e4)])throw new _0x70b51(_0x5257ef(0x1a1),this,{'originalError':_0x103b3d});throw new _0x70b51(_0x5257ef(0x216),this,{'originalError':_0x103b3d});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x11e2(_0x3e7440,_0x250829){const _0x4e34ee=_0x4e34();return _0x11e2=function(_0x11e2ed,_0x18f2d2){_0x11e2ed=_0x11e2ed-0x17d;let _0x210548=_0x4e34ee[_0x11e2ed];return _0x210548;},_0x11e2(_0x3e7440,_0x250829);}const _0x45920a=_0x11e2;function _0x4e34(){const _0x2b48c5=['substring','version','markerName','311620wcxHAs','ck-fake-ai-selection','change','getSelectedContent','isAtEnd','removeMarker','trim','showFakeVisualSelection','name','getSelectionText','floor','$textProxy','getMarkersGroup','data-id','sort','isPremiumPlugin','start','markerToHighlight','AIEditing','length','plugins','createUIElement','dataDowncast','createRange','fromCharCode','ai-selection:','_integrateEditor','addMarker','getChildren','15435mqczsy','markerToElement','843756Ksqpni','_getMarkersInDocumentOrder','containerElement','_setDataIdsOnChildren','isContent','_sessionId','listenTo',':end>','document','_displayedFakeSelectionId','ready','markers',':end></','ai-selection','580860joQzOO','for','getWalker','pluginName','has','from','1929810hamwDC','selection','_displayedFakeSelectionLocked','getLastMatchingPosition','77fNDZtk','createRangeIn','view','_nextDataId','context','end','5uRtklk','10876FnQaOV','isOfficialPlugin','modelToViewWithIds','getStart','push','hideFakeVisualSelection','setAttribute',':start></','editingDowncast','convertAiChatSelectionMarker','afterInit','isBefore','editors','add','data','1128720FxdnzQ','isAfter','toView','model','get','6pLsExP','editing','sessionId','getRoot','processor','indexOf','ck-ai-assistant-ui_theme','element','random','getDocumentData','isOpening','RealTimeCollaborationClient','schema',':start>','conversion','472liuaos','21uMmYeF','join','toData','getSelection','removeAllRanges','emptyElement'];_0x4e34=function(){return _0x2b48c5;};return _0x4e34();}(function(_0x395fbf,_0x592132){const _0x4f0224=_0x11e2,_0x483133=_0x395fbf();while(!![]){try{const _0x53b07c=-parseInt(_0x4f0224(0x1a7))/0x1*(parseInt(_0x4f0224(0x183))/0x2)+-parseInt(_0x4f0224(0x197))/0x3*(-parseInt(_0x4f0224(0x1b0))/0x4)+-parseInt(_0x4f0224(0x182))/0x5*(-parseInt(_0x4f0224(0x192))/0x6)+parseInt(_0x4f0224(0x1cd))/0x7*(parseInt(_0x4f0224(0x1a6))/0x8)+parseInt(_0x4f0224(0x1dd))/0x9+parseInt(_0x4f0224(0x1e3))/0xa+-parseInt(_0x4f0224(0x1e7))/0xb*(parseInt(_0x4f0224(0x1cf))/0xc);if(_0x53b07c===_0x592132)break;else _0x483133['push'](_0x483133['shift']());}catch(_0x4eacc2){_0x483133['push'](_0x483133['shift']());}}}(_0x4e34,0x1e8e5));import{ViewDowncastWriter as _0x4b14df}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x127204,Editor as _0x55623a}from'ckeditor5/src/core.js';import{uid as _0xf27a88}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5b4e51}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x45920a(0x1dc);export class AIEditing extends _0x127204{[_0x45920a(0x1d8)]=null;[_0x45920a(0x1e5)]=!0x1;[_0x45920a(0x1d4)];static get[_0x45920a(0x1e0)](){const _0x3f3ef6=_0x45920a;return _0x3f3ef6(0x1c2);}static get[_0x45920a(0x184)](){return!0x0;}static get[_0x45920a(0x1bf)](){return!0x0;}get[_0x45920a(0x199)](){const _0x2d2568=_0x45920a;if(!this[_0x2d2568(0x1d4)]){const _0x3f3f2c=_0x5b4e51(this[_0x2d2568(0x180)]),_0x5236e5=_0x3f3f2c[_0x2d2568(0x1c4)][_0x2d2568(0x1e1)](_0x2d2568(0x1a2))&&_0x3f3f2c[_0x2d2568(0x1c4)][_0x2d2568(0x196)](_0x2d2568(0x1a2))[_0x2d2568(0x199)];this[_0x2d2568(0x1d4)]=_0x5236e5||_0xf27a88();}return this[_0x2d2568(0x1d4)];}[_0x45920a(0x1a0)](){const _0x3f8193=_0x45920a,_0x558b39=_0x5b4e51(this[_0x3f8193(0x180)]),_0x4d307a=_0x558b39[_0x3f8193(0x195)],_0x41b54a=_0x558b39[_0x3f8193(0x191)][_0x3f8193(0x194)](_0x4d307a[_0x3f8193(0x1d7)][_0x3f8193(0x19a)](),{'convertAiChatSelectionMarker':!0x0}),_0x51b07f=new _0x4b14df(_0x558b39[_0x3f8193(0x198)][_0x3f8193(0x17e)][_0x3f8193(0x1d7)]);this[_0x3f8193(0x1d2)](_0x41b54a,_0x51b07f);let _0x2418ed=_0x558b39[_0x3f8193(0x191)][_0x3f8193(0x19b)][_0x3f8193(0x1a9)](_0x41b54a);const _0x57e9a4=this[_0x3f8193(0x1d0)](),_0x3467de=[];for(const _0x5574ed of _0x57e9a4){const _0x2b6da5='<'+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x18a)+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1a4),_0x4e1fc6=_0x2418ed[_0x3f8193(0x19c)](_0x2b6da5);_0x2418ed=_0x2418ed[_0x3f8193(0x1ad)](0x0,_0x4e1fc6)+_0x2418ed[_0x3f8193(0x1ad)](_0x4e1fc6+_0x2b6da5[_0x3f8193(0x1c3)]);const _0xd4b6ce='<'+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1db)+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1d6),_0x19c409=_0x2418ed[_0x3f8193(0x19c)](_0xd4b6ce);_0x2418ed=_0x2418ed[_0x3f8193(0x1ad)](0x0,_0x19c409)+_0x2418ed[_0x3f8193(0x1ad)](_0x19c409+_0xd4b6ce[_0x3f8193(0x1c3)]),_0x3467de[_0x3f8193(0x187)]({'markerName':_0x5574ed[_0x3f8193(0x1b8)],'start':_0x4e1fc6,'end':_0x19c409,'htmlFragment':_0x2418ed[_0x3f8193(0x1ad)](_0x4e1fc6,_0x19c409)});}return{'content':_0x2418ed,'version':_0x558b39[_0x3f8193(0x195)][_0x3f8193(0x1d7)][_0x3f8193(0x1ae)],'sessionId':this[_0x3f8193(0x199)],'selections':_0x3467de};}async[_0x45920a(0x18d)](){const _0x2a4845=_0x45920a;this[_0x2a4845(0x180)]instanceof _0x55623a?this[_0x2a4845(0x1ca)](this[_0x2a4845(0x180)]):this[_0x2a4845(0x1d5)](this[_0x2a4845(0x180)][_0x2a4845(0x18f)],_0x2a4845(0x190),(_0x44e546,_0x404c2a)=>{const _0x13460d=_0x2a4845;_0x404c2a['on'](_0x13460d(0x1d9),()=>{const _0x2c8f43=_0x13460d;this[_0x2c8f43(0x1ca)](_0x404c2a);});});}[_0x45920a(0x1ca)](_0x393219){const _0x4a9949=_0x45920a;_0x393219[_0x4a9949(0x1a5)][_0x4a9949(0x1de)](_0x4a9949(0x18b))[_0x4a9949(0x1c1)]({'model':_0x4a9949(0x1dc),'view':{'classes':[_0x4a9949(0x1b1),_0x4a9949(0x19d)],'priority':0xc}}),_0x393219[_0x4a9949(0x1a5)][_0x4a9949(0x1de)](_0x4a9949(0x1c6))[_0x4a9949(0x1ce)]({'model':_0x4a9949(0x1dc),'view':(_0x2266a9,{writer:_0x592c6f,options:_0x115388})=>_0x115388[_0x4a9949(0x18c)]?_0x592c6f[_0x4a9949(0x1c5)](_0x2266a9[_0x4a9949(0x1af)]+':'+(_0x2266a9[_0x4a9949(0x1a1)]?_0x4a9949(0x1c0):_0x4a9949(0x181))):null});}[_0x45920a(0x1b7)](_0x56a470,_0x4f210d,_0x17ee13=!0x1,_0x298f60=!0x1){const _0x317f80=_0x45920a;if(this[_0x317f80(0x1e5)]&&!_0x298f60)return!0x1;const _0x48f102=_0x5b4e51(this[_0x317f80(0x180)])[_0x317f80(0x195)];return _0x48f102[_0x317f80(0x1b2)](_0x2f91c8=>{const _0x25ffea=_0x317f80;this[_0x25ffea(0x1d8)]&&this[_0x25ffea(0x188)](this[_0x25ffea(0x1d8)]),this[_0x25ffea(0x1d8)]=_0x4f210d,this[_0x25ffea(0x1e5)]=_0x17ee13;let _0x1aaff3=0x0;for(let _0x17de31 of _0x56a470){const _0x5b6f5b=_0x25ffea(0x1c9)+_0x1aaff3;if(_0x17de31[_0x25ffea(0x1c0)][_0x25ffea(0x1b4)]){const _0x1ca6a1=_0x17de31[_0x25ffea(0x1c0)][_0x25ffea(0x1e6)](({item:_0xa9d969})=>!_0x48f102[_0x25ffea(0x1a3)][_0x25ffea(0x1d3)](_0xa9d969),{'boundaries':_0x17de31});_0x17de31=_0x2f91c8[_0x25ffea(0x1c7)](_0x1ca6a1,_0x17de31[_0x25ffea(0x181)]);}_0x2f91c8[_0x25ffea(0x1cb)](_0x5b6f5b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x17de31}),_0x1aaff3++;}}),window[_0x317f80(0x1aa)]()?.[_0x317f80(0x1ab)](),!0x0;}[_0x45920a(0x188)](_0x1dbc02){const _0x3ab524=_0x45920a;if(this[_0x3ab524(0x1d8)]!=_0x1dbc02)return!0x1;this[_0x3ab524(0x1d8)]=null,this[_0x3ab524(0x1e5)]=!0x1;const _0x1d10f3=_0x5b4e51(this[_0x3ab524(0x180)]),_0xfdb2e5=_0x1d10f3[_0x3ab524(0x195)][_0x3ab524(0x1da)][_0x3ab524(0x1bc)](_0x3ab524(0x1dc));return _0x1d10f3[_0x3ab524(0x195)][_0x3ab524(0x1b2)](_0x23e932=>{const _0x26720a=_0x3ab524;for(const _0x2d24ff of _0xfdb2e5)_0x23e932[_0x26720a(0x1b5)](_0x2d24ff);}),!0x0;}[_0x45920a(0x185)](_0x4f5fd4){const _0x2a87bf=_0x45920a,_0x5580d2=_0x5b4e51(this[_0x2a87bf(0x180)]),_0x227c15=_0x5580d2[_0x2a87bf(0x191)][_0x2a87bf(0x194)](_0x4f5fd4),_0x2294fe=new _0x4b14df(_0x5580d2[_0x2a87bf(0x198)][_0x2a87bf(0x17e)][_0x2a87bf(0x1d7)]);return this[_0x2a87bf(0x1d2)](_0x227c15,_0x2294fe),_0x227c15;}[_0x45920a(0x1d2)](_0x1f5401,_0x4a7e70){const _0x3296bb=_0x45920a;let _0x58dccd=!0x1;const _0x5411fe=new Set();for(const _0x2a8400 of _0x1f5401[_0x3296bb(0x1cc)]()){const _0x124d96=_0x2a8400['is'](_0x3296bb(0x1ac))||_0x2a8400['is'](_0x3296bb(0x1d1));if(!_0x2a8400['is'](_0x3296bb(0x19e)))continue;(this[_0x3296bb(0x1d2)](_0x2a8400,_0x4a7e70)||_0x124d96)&&(_0x4a7e70[_0x3296bb(0x189)](_0x3296bb(0x1bd),this[_0x3296bb(0x17f)](_0x5411fe),_0x2a8400),_0x58dccd=!0x0);}return _0x58dccd;}[_0x45920a(0x17f)](_0x179959){const _0x37f1df=_0x45920a;let _0x29099d;do{_0x29099d='';for(let _0x553649=0x0;_0x553649<0x4;_0x553649++)_0x29099d+=String[_0x37f1df(0x1c8)](0x61+Math[_0x37f1df(0x1ba)](0x1a*Math[_0x37f1df(0x19f)]()));}while(_0x179959[_0x37f1df(0x1e1)](_0x29099d));return _0x179959[_0x37f1df(0x190)](_0x29099d),_0x29099d;}[_0x45920a(0x1b9)](){const _0x211015=_0x45920a,{model:_0xc7e114}=_0x5b4e51(this[_0x211015(0x180)]),_0x544fbe=_0xc7e114[_0x211015(0x1d7)][_0x211015(0x1e4)],_0x20c0db=_0xc7e114[_0x211015(0x1b3)](_0x544fbe),_0x22790d=[],_0x591e69=_0xc7e114[_0x211015(0x17d)](_0x20c0db)[_0x211015(0x1df)]();for(const {item:_0x30b4ce}of _0x591e69)_0x30b4ce['is'](_0x211015(0x1bb))?_0x22790d[_0x211015(0x187)](_0x30b4ce[_0x211015(0x191)]):_0x30b4ce['is'](_0x211015(0x19e))&&_0x22790d[_0x211015(0x1c3)]>0x0&&'\x20'!==_0x22790d[_0x22790d[_0x211015(0x1c3)]-0x1]&&_0x22790d[_0x211015(0x187)]('\x20');return'\x22'+_0x22790d[_0x211015(0x1a8)]('')[_0x211015(0x1b6)]()+'\x22';}[_0x45920a(0x1d0)](){const _0x395d20=_0x45920a,_0x58af35=_0x5b4e51(this[_0x395d20(0x180)])[_0x395d20(0x195)];return Array[_0x395d20(0x1e2)](_0x58af35[_0x395d20(0x1da)][_0x395d20(0x1bc)](_0x395d20(0x1dc)))[_0x395d20(0x1be)]((_0x44a9de,_0x20d19e)=>_0x44a9de[_0x395d20(0x186)]()[_0x395d20(0x18e)](_0x20d19e[_0x395d20(0x186)]())?-0x1:_0x44a9de[_0x395d20(0x186)]()[_0x395d20(0x193)](_0x20d19e[_0x395d20(0x186)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5365(_0x119598,_0x4e6ffc){const _0x20931=_0x2093();return _0x5365=function(_0x536544,_0x254e6c){_0x536544=_0x536544-0x103;let _0x368650=_0x20931[_0x536544];return _0x368650;},_0x5365(_0x119598,_0x4e6ffc);}const _0x255eac=_0x5365;(function(_0x33e474,_0x4e384b){const _0x4e4a6d=_0x5365,_0xa4611b=_0x33e474();while(!![]){try{const _0x9757c8=-parseInt(_0x4e4a6d(0x119))/0x1*(parseInt(_0x4e4a6d(0x115))/0x2)+-parseInt(_0x4e4a6d(0x10a))/0x3*(-parseInt(_0x4e4a6d(0x116))/0x4)+-parseInt(_0x4e4a6d(0x107))/0x5*(-parseInt(_0x4e4a6d(0x11a))/0x6)+parseInt(_0x4e4a6d(0x11b))/0x7+parseInt(_0x4e4a6d(0x11d))/0x8+parseInt(_0x4e4a6d(0x103))/0x9+parseInt(_0x4e4a6d(0x105))/0xa*(-parseInt(_0x4e4a6d(0x111))/0xb);if(_0x9757c8===_0x4e384b)break;else _0xa4611b['push'](_0xa4611b['shift']());}catch(_0x56b753){_0xa4611b['push'](_0xa4611b['shift']());}}}(_0x2093,0x8aa38));import{EmitterMixin as _0x411d27}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x255eac(0x108)];function _0x2093(){const _0x30850b=['init','webSearch','isWebSearchEnabled','getCapabilitiesConfig','fire','11btxPAP','setReasoning','reasoning','reset','304296bAdUCi','4hUyWRF','toggleWebSearch','_isReasoningEnabled','1TNnezP','162sDGHmu','1533770wETolA','isReasoningEnabled','5530768SIxSmx','263916cipYsg','_isWebSearchEnabled','9646090FEXnSz','getCapabilitiesRequestData','5085JHhgdi','capabilitiesUpdated','setWebSearch','2152146OrpnFG','toggleReasoning'];_0x2093=function(){return _0x30850b;};return _0x2093();}export class AICapabilities extends _0x411d27(){[_0x255eac(0x104)];[_0x255eac(0x118)];constructor(){const _0xc214cd=_0x255eac;super(),this[_0xc214cd(0x104)]=!0x1,this[_0xc214cd(0x118)]=!0x1;}[_0x255eac(0x10c)](){const _0x5d713a=_0x255eac;this[_0x5d713a(0x114)]();}[_0x255eac(0x114)](){const _0x2fb8c4=_0x255eac;this[_0x2fb8c4(0x109)](!0x1),this[_0x2fb8c4(0x112)](!0x1);}[_0x255eac(0x10f)](){const _0x2481bd=_0x255eac;return{'isWebSearchEnabled':this[_0x2481bd(0x104)],'isReasoningEnabled':this[_0x2481bd(0x118)]};}static[_0x255eac(0x106)](_0x3de8c1){const _0x539b65=_0x255eac,_0x5194d5={};return _0x3de8c1&&_0x3de8c1[_0x539b65(0x10e)]&&(_0x5194d5[_0x539b65(0x10d)]={}),_0x3de8c1&&_0x3de8c1[_0x539b65(0x11c)]&&(_0x5194d5[_0x539b65(0x113)]={}),_0x5194d5;}[_0x255eac(0x117)](){const _0x3a9296=_0x255eac;this[_0x3a9296(0x109)](!this[_0x3a9296(0x104)]);}[_0x255eac(0x10b)](){const _0x3b7eb8=_0x255eac;this[_0x3b7eb8(0x112)](!this[_0x3b7eb8(0x118)]);}[_0x255eac(0x109)](_0x14e720){const _0x7c3bba=_0x255eac;_0x14e720!==this[_0x7c3bba(0x104)]&&(this[_0x7c3bba(0x104)]=_0x14e720,this[_0x7c3bba(0x110)](_0x7c3bba(0x108),this[_0x7c3bba(0x10f)]()));}[_0x255eac(0x112)](_0x1e0d54){const _0x3d6a0d=_0x255eac;_0x1e0d54!==this[_0x3d6a0d(0x118)]&&(this[_0x3d6a0d(0x118)]=_0x1e0d54,this[_0x3d6a0d(0x110)](_0x3d6a0d(0x108),this[_0x3d6a0d(0x10f)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x32ecaf,_0x228cd1){var _0x3856cd=_0xcf8e,_0x2d44ee=_0x32ecaf();while(!![]){try{var _0x2c9892=-parseInt(_0x3856cd(0x105))/0x1*(parseInt(_0x3856cd(0x10e))/0x2)+parseInt(_0x3856cd(0x101))/0x3*(-parseInt(_0x3856cd(0xfc))/0x4)+parseInt(_0x3856cd(0x109))/0x5*(parseInt(_0x3856cd(0x106))/0x6)+-parseInt(_0x3856cd(0x100))/0x7*(-parseInt(_0x3856cd(0xfa))/0x8)+-parseInt(_0x3856cd(0x108))/0x9+parseInt(_0x3856cd(0x102))/0xa+parseInt(_0x3856cd(0x113))/0xb*(-parseInt(_0x3856cd(0x110))/0xc);if(_0x2c9892===_0x228cd1)break;else _0x2d44ee['push'](_0x2d44ee['shift']());}catch(_0x3c0bc1){_0x2d44ee['push'](_0x2d44ee['shift']());}}}(_0x23f4,0xd6b10));function _0xcf8e(_0x5e07dc,_0xe0235b){var _0x23f41c=_0x23f4();return _0xcf8e=function(_0xcf8e88,_0x229b5d){_0xcf8e88=_0xcf8e88-0xfa;var _0x171472=_0x23f41c[_0xcf8e88];return _0x171472;},_0xcf8e(_0x5e07dc,_0xe0235b);}export var AIContextItemType;!function(_0xfdda8b){var _0x2e37a2=_0xcf8e;_0xfdda8b[_0x2e37a2(0x107)]=_0x2e37a2(0x10b),_0xfdda8b[_0x2e37a2(0x10a)]=_0x2e37a2(0x104),_0xfdda8b[_0x2e37a2(0x10c)]=_0x2e37a2(0xff),_0xfdda8b[_0x2e37a2(0x112)]=_0x2e37a2(0xfd),_0xfdda8b[_0x2e37a2(0x10f)]=_0x2e37a2(0xfe);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x23f4(){var _0x2daad4=['html','TEXT','13607aKYFTn','32iVxXrb','HTML','4KgKKxw','text','selection','web-resource','2891483XjrQqv','1787511RxJkAf','5224120HrqRGp','markdown','document','25BuJaws','8825244THLfEy','FILE','2537910nLdEvx','5uvDrRn','DOCUMENT','file','URL','MARKDOWN','36572xNZEPm','SELECTION','13884zXYCCH'];_0x23f4=function(){return _0x2daad4;};return _0x23f4();}!function(_0x451b63){var _0x38025a=_0xcf8e;_0x451b63[_0x38025a(0x112)]=_0x38025a(0xfd),_0x451b63[_0x38025a(0x10d)]=_0x38025a(0x103),_0x451b63[_0x38025a(0xfb)]=_0x38025a(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5d3bcb=_0x41b7;function _0xbb22(){const _0x4a904a=['messageId','48biNrnP','getDocumentContext','abort','isDestroyed','start','2207862VnQFaW','21740AqLBon','510041QkAcgt','24hDkCvR','stop','242OMMGaf','setConversationTitle','forEach','interactionDestroyed','push','done','destroy','425460QycSyc','reasoningStarted','11622660AtuKcr','abortController','interactionFinished','reasoning','currentRequest','modification-delta','_isReasoning','400442OAFYVv','splice','isStopped','error','appendContent','_isWebSearching','createReply','1IcSZVz','editor','95bCaWsw','data','interactionCreated','connector','textDelta','currentReply','_finalizeInteraction','reasoningFinished','find','fire','conversationTitle','getReply','853677ofKDmk','action-metadata','replyChangeGroupStateUpdated','sources','ai-chat-interaction-error','web-search','replyCreated','stopListening','delegate','event','interactionStopped','interactionStarted','content','actionCallId','callId','webSearchFinished','getStream','length','webSearchStarted','message-metadata','replyContentUpdated','replies','sendRequest','source'];_0xbb22=function(){return _0x4a904a;};return _0xbb22();}function _0x41b7(_0x1d3c65,_0x5db946){const _0xbb2297=_0xbb22();return _0x41b7=function(_0x41b7e4,_0x324673){_0x41b7e4=_0x41b7e4-0x18c;let _0x300dd6=_0xbb2297[_0x41b7e4];return _0x300dd6;},_0x41b7(_0x1d3c65,_0x5db946);}(function(_0x149968,_0x31a8f5){const _0x44f6ce=_0x41b7,_0x4e00cd=_0x149968();while(!![]){try{const _0x49f316=-parseInt(_0x44f6ce(0x1c1))/0x1*(parseInt(_0x44f6ce(0x1ba))/0x2)+parseInt(_0x44f6ce(0x1cf))/0x3+parseInt(_0x44f6ce(0x1a6))/0x4*(-parseInt(_0x44f6ce(0x1c3))/0x5)+parseInt(_0x44f6ce(0x1a0))/0x6*(-parseInt(_0x44f6ce(0x1a7))/0x7)+-parseInt(_0x44f6ce(0x1a8))/0x8*(parseInt(_0x44f6ce(0x1a5))/0x9)+parseInt(_0x44f6ce(0x1b3))/0xa+-parseInt(_0x44f6ce(0x1aa))/0xb*(-parseInt(_0x44f6ce(0x1b1))/0xc);if(_0x49f316===_0x31a8f5)break;else _0x4e00cd['push'](_0x4e00cd['shift']());}catch(_0xa2062b){_0x4e00cd['push'](_0x4e00cd['shift']());}}}(_0xbb22,0x9394b));import{CKEditorError as _0x2dcb49,EmitterMixin as _0x208964,uid as _0x57a4e0}from'ckeditor5/src/utils.js';import{AIReply as _0x39c078,isIgnoredReplyType as _0x41d486,isValidReplyType as _0x3627cb,isReplyTitleType as _0xb3238d,isSourceType as _0x1c2cb5}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5d3bcb(0x1c5),_0x5d3bcb(0x192),_0x5d3bcb(0x191),_0x5d3bcb(0x1b5),_0x5d3bcb(0x1ad),_0x5d3bcb(0x18d),_0x5d3bcb(0x19b),_0x5d3bcb(0x1d1),_0x5d3bcb(0x1ab),_0x5d3bcb(0x199),_0x5d3bcb(0x196),_0x5d3bcb(0x1b2),_0x5d3bcb(0x1ca),_0x5d3bcb(0x1bd)];export class AIInteraction extends _0x208964(){['id'];[_0x5d3bcb(0x19c)]=[];[_0x5d3bcb(0x1c8)];[_0x5d3bcb(0x19f)];[_0x5d3bcb(0x194)];[_0x5d3bcb(0x1b7)];[_0x5d3bcb(0x1c6)];[_0x5d3bcb(0x1bc)]=!0x1;[_0x5d3bcb(0x1a3)]=!0x1;[_0x5d3bcb(0x1c2)];[_0x5d3bcb(0x1b9)]=!0x1;[_0x5d3bcb(0x1bf)]=!0x1;constructor({connector:_0x85194f,editor:_0x112f3f}){const _0x515eff=_0x5d3bcb;super(),this['id']=_0x57a4e0(),this[_0x515eff(0x1c6)]=_0x85194f,this[_0x515eff(0x1bc)]=!0x0,this[_0x515eff(0x1c2)]=_0x112f3f;}async[_0x5d3bcb(0x1a4)](){const _0x31033a=_0x5d3bcb;let _0xf50c2b;const _0x2f0486=[];this[_0x31033a(0x1bc)]=!0x1;try{this[_0x31033a(0x1b7)]=await this[_0x31033a(0x19d)](),this[_0x31033a(0x1cc)](_0x31033a(0x192),this);const _0x19ed33=await this[_0x31033a(0x1b7)][_0x31033a(0x197)]();for await(const _0x2b3bfd of _0x19ed33){if(this[_0x31033a(0x1bc)])return;if(_0x31033a(0x1bd)===_0x2b3bfd[_0x31033a(0x190)])return void this[_0x31033a(0x1cc)](_0x31033a(0x1bd),{'error':new _0x2dcb49(_0x31033a(0x1d3),this)});if(_0x31033a(0x19a)!==_0x2b3bfd[_0x31033a(0x190)]){if(_0x31033a(0x1d0)!==_0x2b3bfd[_0x31033a(0x190)]){if(_0xb3238d(_0x2b3bfd[_0x31033a(0x190)])&&this[_0x31033a(0x1ab)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1cd)],!0x0),_0x1c2cb5(_0x2b3bfd[_0x31033a(0x190)]))_0x2f0486[_0x31033a(0x1ae)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x19e)]);else{if(_0x3627cb(_0x2b3bfd[_0x31033a(0x190)])){if(_0x2b3bfd[_0x31033a(0x190)]!==_0xf50c2b){if(_0xf50c2b=_0x2b3bfd[_0x31033a(0x190)],_0x31033a(0x18c)===_0x2b3bfd[_0x31033a(0x190)]){this[_0x31033a(0x1bf)]||(this[_0x31033a(0x1bf)]=!0x0,this[_0x31033a(0x1cc)](_0x31033a(0x199),this));continue;}if(_0x31033a(0x1b6)===_0x2b3bfd[_0x31033a(0x190)]){this[_0x31033a(0x1b9)]||(this[_0x31033a(0x1b9)]=!0x0,this[_0x31033a(0x1cc)](_0x31033a(0x1b2),this));continue;}this[_0x31033a(0x1b9)]&&(this[_0x31033a(0x1b9)]=!0x1,this[_0x31033a(0x1cc)](_0x31033a(0x1ca),this)),this[_0x31033a(0x1bf)]&&(this[_0x31033a(0x1bf)]=!0x1,this[_0x31033a(0x1cc)](_0x31033a(0x196),this)),this[_0x31033a(0x1c8)]&&this[_0x31033a(0x1c8)][_0x31033a(0x1af)](),this[_0x31033a(0x1c8)]=this[_0x31033a(0x1c0)]({'type':_0x2b3bfd[_0x31033a(0x190)],'interactionId':this['id'],'id':_0x2b3bfd[_0x31033a(0x1c4)]?.['id']}),_0x2f0486[_0x31033a(0x198)]>0x0&&_0x31033a(0x1b8)===_0x2b3bfd[_0x31033a(0x190)]&&(this[_0x31033a(0x1c8)][_0x31033a(0x1d2)]=_0x2f0486[_0x31033a(0x1bb)](0x0));}_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1c7)]&&this[_0x31033a(0x1c8)][_0x31033a(0x1be)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1c7)]);}else _0x41d486(_0x2b3bfd[_0x31033a(0x190)]);}}else this[_0x31033a(0x194)]=_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x195)];}else this[_0x31033a(0x19f)]=_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x19f)];}}finally{this[_0x31033a(0x1bc)]||(_0x2f0486[_0x31033a(0x198)]>0x0&&(this[_0x31033a(0x1c8)][_0x31033a(0x1d2)]=_0x2f0486[_0x31033a(0x1bb)](0x0)),this[_0x31033a(0x1c9)](),this[_0x31033a(0x1cc)](_0x31033a(0x1b5),this));}}[_0x5d3bcb(0x1a9)](){const _0x1b57ab=_0x5d3bcb;this[_0x1b57ab(0x1bc)]||(this[_0x1b57ab(0x1c9)](),this[_0x1b57ab(0x1cc)](_0x1b57ab(0x191),this));}[_0x5d3bcb(0x1ce)](_0xa8c480){const _0x40200d=_0x5d3bcb;return this[_0x40200d(0x19c)][_0x40200d(0x1cb)](_0x35caef=>_0x35caef['id']===_0xa8c480);}[_0x5d3bcb(0x1b0)](){const _0x4a57a0=_0x5d3bcb;this[_0x4a57a0(0x1a3)]||(this[_0x4a57a0(0x1a9)](),this[_0x4a57a0(0x19c)][_0x4a57a0(0x1ac)](_0x580ac8=>_0x580ac8[_0x4a57a0(0x1b0)]()),this[_0x4a57a0(0x19c)]=[],this[_0x4a57a0(0x1a3)]=!0x0,this[_0x4a57a0(0x1cc)](_0x4a57a0(0x1ad),this),this[_0x4a57a0(0x18e)]());}[_0x5d3bcb(0x1c0)](_0x2d2034){const _0xe97b8=_0x5d3bcb,_0x598dd6=new _0x39c078({'editor':this[_0xe97b8(0x1c2)],'documentContextContent':this[_0xe97b8(0x1a1)]()?.[_0xe97b8(0x193)],..._0x2d2034});return this[_0xe97b8(0x19c)][_0xe97b8(0x1ae)](_0x598dd6),_0x598dd6[_0xe97b8(0x18f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xe97b8(0x1cc)](_0xe97b8(0x18d),_0x598dd6),_0x598dd6;}[_0x5d3bcb(0x1ab)](_0x49348f,_0x1ae1ba=!0x1){const _0x374f87=_0x5d3bcb;this[_0x374f87(0x1cc)](_0x374f87(0x1ab),_0x49348f,_0x1ae1ba);}[_0x5d3bcb(0x1c9)](){const _0x35b18f=_0x5d3bcb;this[_0x35b18f(0x1bc)]=!0x0,this[_0x35b18f(0x1b7)]&&this[_0x35b18f(0x1b7)][_0x35b18f(0x1b4)][_0x35b18f(0x1a2)](),this[_0x35b18f(0x1c8)]&&this[_0x35b18f(0x1c8)][_0x35b18f(0x1af)](),this[_0x35b18f(0x1b7)]=this[_0x35b18f(0x1c8)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x382154=_0x12e8;(function(_0x275bec,_0x543211){const _0x478b8e=_0x12e8,_0xdb502a=_0x275bec();while(!![]){try{const _0x8a71aa=-parseInt(_0x478b8e(0xe7))/0x1*(-parseInt(_0x478b8e(0xc2))/0x2)+parseInt(_0x478b8e(0xe0))/0x3*(-parseInt(_0x478b8e(0xe9))/0x4)+parseInt(_0x478b8e(0xc0))/0x5*(-parseInt(_0x478b8e(0xe4))/0x6)+parseInt(_0x478b8e(0xd4))/0x7+parseInt(_0x478b8e(0xc9))/0x8+parseInt(_0x478b8e(0xca))/0x9+parseInt(_0x478b8e(0xcc))/0xa*(-parseInt(_0x478b8e(0xc7))/0xb);if(_0x8a71aa===_0x543211)break;else _0xdb502a['push'](_0xdb502a['shift']());}catch(_0x30300e){_0xdb502a['push'](_0xdb502a['shift']());}}}(_0x3268,0x878bf));import{EmitterMixin as _0x48d61e,logWarning as _0x20acc9,logError as _0x42f31c}from'ckeditor5/src/utils.js';function _0x3268(){const _0x183f5a=['_filterModels','378713zbottY','isAvailable','138716DpYMtH','AI_MODEL_NAME_AUTO','some','getAvailableModels','getAll','40WRsuIg','_connector','4HdLfZj','string','length','_defaultModelId','map','10086043aUHjUA','description','4000984qVvoen','5317227zMsVdj','AI_MODEL_DESCRIPTION_','10FElxsT','_modelList','AI_MODEL_DESCRIPTION_AUTO','items','ai-models-unable-to-retrieve','_availableModels','getLocalized','push','1788493vdgzNT','_getModelById','toLocaleLowerCase','getDefault','toUpperCase','list','provider','ai-chat-model-id-unrecognized','startsWith','getModel','name','agent','39rPGQat','find','ai-chat-default-model-id-unrecognized','auto','135684qYhNbV','getModels'];_0x3268=function(){return _0x183f5a;};return _0x3268();}import{getTranslation as _0x4b6b53}from'../utils/common-translations.js';export class AIModels extends _0x48d61e(){[_0x382154(0xc1)];[_0x382154(0xd1)];[_0x382154(0xc5)];[_0x382154(0xcd)]=[];constructor({connector:_0x43a547,availableModels:_0x26a70c,defaultModelId:_0x11f378}){const _0x3b8f59=_0x382154;super(),this[_0x3b8f59(0xc1)]=_0x43a547,this[_0x3b8f59(0xd1)]=_0x26a70c,this[_0x3b8f59(0xc5)]=_0x11f378;}async[_0x382154(0xbf)](){const _0x337187=_0x382154;if(!this[_0x337187(0xcd)][_0x337187(0xc4)])try{const _0x43f12f=this[_0x337187(0xc1)][_0x337187(0xe5)](),_0x5affb0=await _0x43f12f[_0x337187(0xd9)]();this[_0x337187(0xcd)]=_0x5affb0[_0x337187(0xcf)];}catch(_0x691c64){throw _0x42f31c(_0x337187(0xd0),{'error':_0x691c64}),_0x691c64;}return[...this[_0x337187(0xcd)]];}async[_0x382154(0xbe)](){const _0x4dcd08=_0x382154,_0x4df07b=await this[_0x4dcd08(0xbf)]();return this[_0x4dcd08(0xe6)](_0x4df07b,this[_0x4dcd08(0xd1)]);}async[_0x382154(0xdd)](_0x32a9b6){const _0x401f04=_0x382154,_0x40497d=await this[_0x401f04(0xbf)]();if(!_0x40497d[_0x401f04(0xc4)])return null;if(_0x32a9b6){const _0x2679fa=this[_0x401f04(0xd5)](_0x40497d,_0x32a9b6);if(_0x2679fa)return _0x2679fa;_0x20acc9(_0x401f04(0xdb),{'modelId':_0x32a9b6,'fallBackModelId':this[_0x401f04(0xc5)]});}return this[_0x401f04(0xd7)]();}async[_0x382154(0xd7)](){const _0x153457=_0x382154,_0x128003=await this[_0x153457(0xbe)]();if(!_0x128003[_0x153457(0xc4)])return null;if(this[_0x153457(0xc5)]){const _0x57b157=this[_0x153457(0xd5)](_0x128003,this[_0x153457(0xc5)]);if(_0x57b157)return _0x57b157;_0x20acc9(_0x153457(0xe2),{'defaultModelId':this[_0x153457(0xc5)],'fallBackModelId':_0x128003[0x0]['id']});}return _0x128003[0x0];}async[_0x382154(0xe8)](_0x3977ce){const _0x3fe97f=_0x382154;return(await this[_0x3fe97f(0xbe)]())[_0x3fe97f(0xbd)](_0x3aadfc=>_0x3aadfc[_0x3fe97f(0xde)]===_0x3977ce[_0x3fe97f(0xde)]&&_0x3aadfc[_0x3fe97f(0xda)]===_0x3977ce[_0x3fe97f(0xda)]);}[_0x382154(0xe6)](_0x56d109,_0x129edb){const _0x1df2ca=_0x382154;let _0x3d536a;if(_0x129edb){_0x3d536a=[];const _0x4ebef5=_0x1df2ca(0xc3)==typeof _0x129edb?[_0x129edb[_0x1df2ca(0xd6)]()]:_0x129edb[_0x1df2ca(0xc6)](_0x230dd0=>_0x230dd0[_0x1df2ca(0xd6)]());for(const _0x197e0d of _0x4ebef5)for(const _0x24fa69 of _0x56d109)(_0x24fa69['id'][_0x1df2ca(0xd6)]()===_0x197e0d||_0x24fa69[_0x1df2ca(0xde)][_0x1df2ca(0xd6)]()===_0x197e0d||Oe(_0x24fa69)&&_0x1df2ca(0xe3)===_0x197e0d||_0x24fa69[_0x1df2ca(0xda)][_0x1df2ca(0xd6)]()===_0x197e0d||_0x24fa69['id'][_0x1df2ca(0xd6)]()[_0x1df2ca(0xdc)](_0x197e0d))&&_0x3d536a[_0x1df2ca(0xd3)](_0x24fa69);}else _0x3d536a=_0x56d109;return _0x3d536a;}[_0x382154(0xd5)](_0x280f83,_0x1d5b57){const _0xb24c90=_0x382154;return _0x280f83[_0xb24c90(0xe1)](_0x2cfb9d=>Oe(_0x2cfb9d)&&_0xb24c90(0xe3)===_0x1d5b57?_0x2cfb9d:_0x2cfb9d['id']===_0x1d5b57)||null;}static[_0x382154(0xd2)](_0x3e7723,_0x42f5a0){const _0x5732cf=_0x382154;return _0x42f5a0[_0x5732cf(0xc6)](_0xa0237f=>{const _0x347bc7=_0x5732cf;if(Oe(_0xa0237f))_0xa0237f[_0x347bc7(0xde)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xbc)),_0xa0237f[_0x347bc7(0xc8)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xce));else _0x4b6b53(_0x3e7723,_0x347bc7(0xcb)+_0xa0237f['id'][_0x347bc7(0xd8)]())[_0x347bc7(0xdc)](_0x347bc7(0xcb))||(_0xa0237f[_0x347bc7(0xc8)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xcb)+_0xa0237f['id'][_0x347bc7(0xd8)]()));return _0xa0237f;});}}function _0x12e8(_0x5376de,_0x3c4232){const _0x3268a2=_0x3268();return _0x12e8=function(_0x12e830,_0x230579){_0x12e830=_0x12e830-0xbc;let _0x18feb0=_0x3268a2[_0x12e830];return _0x18feb0;},_0x12e8(_0x5376de,_0x3c4232);}function Oe(_0x4bb1c2){const _0x34043c=_0x382154;return _0x4bb1c2['id'][_0x34043c(0xdc)](_0x34043c(0xdf));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x164748=_0x59e6;function _0x3f19(){const _0x57d78b=['map','forEach','push','text-delta','type','aiResponseParser','span','235886zKuxyK','includes','AI_SUGGESTION_CONTENT_PART_REMOVED','filter','withoutDiff','modified','values','4024NKtLhR','1471074gTPZuC','115365bPtssV','aiResponseApplier','find','convertMarkdownToHTML','updateChangeGroups','done','stopListening','modification-delta','_getCachedContentParts','removed','change:content','getContentParts','set','12dFmNgc','content','pending','new','ai-reply-get-content-parts-group-not-found','parsedContent','reasoning','documentContextContent','withDiff','replyChangeGroupStateUpdated','parseAndNormalizeHTML','areActionsDisabled','color:\x20#808080;\x20font-style:\x20italic','sources','51491UtqFzT','parsedMergedContent','1000dThrWi','newNodeIds','indexOf','data-unstable','state','source','conversation-title','onContentChange','locale','data-id','length','60XZuugF','nextSibling','unshift','_setCachedContentParts','context','interactionId','2283Sbdtlv','replyContentUpdated','splice','12397221HCgAkI','cachedSuggestionContentParts','modifiedNodeIds','index','cloneNode','changes','ai-get-editor-from-context-no-editor','fire','node','appendContent','removedNodeIds','destroy','web-search','setChangeGroupState','previousSibling','isDone','merge','changeGroups','11604080FtQacd','_getDifferentChangeGroups','editor','every'];_0x3f19=function(){return _0x57d78b;};return _0x3f19();}(function(_0x475500,_0x2b9e4d){const _0x292af0=_0x59e6,_0x45b3db=_0x475500();while(!![]){try{const _0x5ce9b5=parseInt(_0x292af0(0x10e))/0x1+-parseInt(_0x292af0(0x10d))/0x2*(parseInt(_0x292af0(0x13d))/0x3)+-parseInt(_0x292af0(0x11c))/0x4*(-parseInt(_0x292af0(0x10f))/0x5)+parseInt(_0x292af0(0x137))/0x6*(parseInt(_0x292af0(0x106))/0x7)+parseInt(_0x292af0(0xfb))/0x8+-parseInt(_0x292af0(0x140))/0x9+-parseInt(_0x292af0(0x12c))/0xa*(-parseInt(_0x292af0(0x12a))/0xb);if(_0x5ce9b5===_0x2b9e4d)break;else _0x45b3db['push'](_0x45b3db['shift']());}catch(_0x319b7f){_0x45b3db['push'](_0x45b3db['shift']());}}}(_0x3f19,0xd89f2));import{CKEditorError as _0x56611b,ObservableMixin as _0x58df9e,uid as _0x46edc5}from'ckeditor5/src/utils.js';import{Element as _0x2be3ca,findAll as _0x5d682e,getAttribute as _0x4bb938,getParents as _0x233ccd,Document as _0x38344b,parse as _0x4e23fe,Text as _0x19e2f7}from'../utils/htmlparser.js';import{AIResponseParser as _0x2d0e03}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1ba911}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2ed705}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2484a4}from'../utils/common-translations.js';import{cloneDeep as _0x5ea9e6}from'es-toolkit';export const AI_REPLY_TYPES=[_0x164748(0x116),_0x164748(0x102),_0x164748(0xf5),_0x164748(0x122)];export const AI_REPLY_TYPES_IGNORED=[_0x164748(0x132)];export const AI_REPLY_TITLE_TYPE=_0x164748(0x132);export class AIReply extends _0x58df9e(){['id'];[_0x164748(0x13c)];[_0x164748(0x103)];[_0x164748(0x129)]=[];[_0x164748(0x121)]=new _0x38344b([]);[_0x164748(0x12b)]=new _0x38344b([]);[_0x164748(0xfa)]=[];[_0x164748(0x127)]=!0x1;[_0x164748(0x123)];[_0x164748(0x104)];[_0x164748(0x110)];[_0x164748(0xfd)];[_0x164748(0x141)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x472a51,content:_0x15cba4='',isDone:_0x19f5f1=!0x1,interactionId:_0x13fe77,areActionsDisabled:_0x4c0009,documentContextContent:_0xd059f9,editor:_0x469135,id:_0x5cfdb1}){const _0xb1766f=_0x164748;super(),this['id']=_0x5cfdb1||_0x46edc5(),this[_0xb1766f(0x13c)]=_0x13fe77,this[_0xb1766f(0x103)]=_0x472a51,this[_0xb1766f(0x127)]=!!_0x4c0009,this[_0xb1766f(0xfd)]=_0x469135,this[_0xb1766f(0x104)]=new _0x2d0e03(),this[_0xb1766f(0x110)]=new _0x1ba911(),this[_0xb1766f(0x123)]=_0x4e23fe(_0xd059f9||''),this[_0xb1766f(0x11b)](_0xb1766f(0xf8),_0x19f5f1),this['on'](_0xb1766f(0x119),()=>{const _0x1824bf=_0xb1766f;this[_0x1824bf(0x133)]();}),this[_0xb1766f(0x11b)](_0xb1766f(0x11d),_0x15cba4);}[_0x164748(0xf2)](_0x183af9){const _0x1f1df9=_0x164748;this[_0x1f1df9(0x11b)](_0x1f1df9(0x11d),this[_0x1f1df9(0x11d)]+_0x183af9);}[_0x164748(0x114)](){const _0x30c4c6=_0x164748;this[_0x30c4c6(0xf8)]||(this[_0x30c4c6(0x11b)](_0x30c4c6(0xf8),!0x0),this[_0x30c4c6(0x133)]());}[_0x164748(0xf4)](){const _0x3cee27=_0x164748;this[_0x3cee27(0x115)]();}[_0x164748(0xf6)](_0x22ac45,_0x45bedb){const _0x5547b3=_0x164748;this[_0x5547b3(0xfa)][_0x22ac45][_0x5547b3(0x130)]=_0x45bedb,this[_0x5547b3(0xf0)](_0x5547b3(0x125),{'reply':this,'index':_0x22ac45,'state':_0x45bedb});}[_0x164748(0x11a)]({showDiff:_0x4cbdb2,groupIndex:_0x24f42e}){const _0x2ef93c=_0x164748;if(!this[_0x2ef93c(0xfd)])throw new _0x56611b(_0x2ef93c(0xef),null,{'aiReply':this});const _0x58b6f3=this[_0x2ef93c(0x117)](_0x4cbdb2,_0x24f42e);if(_0x58b6f3)return _0x58b6f3;let _0x1e7550=[];if(void 0x0===_0x24f42e)_0x1e7550=this[_0x2ef93c(0xfa)];else{const _0x241791=this[_0x2ef93c(0xfa)][_0x2ef93c(0x111)](({index:_0x14fb3a})=>_0x14fb3a===_0x24f42e);if(!_0x241791)throw new _0x56611b(_0x2ef93c(0x120),null,{'aiReply':this,'groupIndex':_0x24f42e});_0x1e7550=[_0x241791];}const _0x257eef=_0x2ed705({'editor':this[_0x2ef93c(0xfd)],'showDiff':_0x4cbdb2,'changeGroups':_0x1e7550,'documentContextContent':this[_0x2ef93c(0x123)]});return this[_0x2ef93c(0x13a)](_0x4cbdb2,_0x257eef),_0x257eef;}[_0x164748(0x117)](_0x3c2d7f,_0x1d898a){const _0x2a482f=_0x164748,_0x458444=_0x3c2d7f?_0x2a482f(0x124):_0x2a482f(0x10a);if(!this[_0x2a482f(0x141)][_0x458444][_0x2a482f(0x136)])return null;const _0x1e0858=this[_0x2a482f(0x141)][_0x458444];if(void 0x0===_0x1d898a)return _0x5ea9e6(_0x1e0858);{const _0x15e2f6=_0x1e0858[_0x2a482f(0x111)](({index:_0x130bdb})=>_0x130bdb===_0x1d898a);if(_0x15e2f6)return[_0x5ea9e6(_0x15e2f6)];}return null;}[_0x164748(0x13a)](_0x1f5dc0,_0xedceb2){const _0x5e87a9=_0x164748,_0x1f2725=_0x1f5dc0?_0x5e87a9(0x124):_0x5e87a9(0x10a);_0xedceb2[_0x5e87a9(0x100)](_0x3daf9f=>{const _0x4624a3=_0x5e87a9,_0x3514b3=this[_0x4624a3(0x141)][_0x1f2725],_0xd8e6a9=_0x3514b3[_0x4624a3(0x111)](({index:_0x24a52f})=>_0x24a52f===_0x3daf9f[_0x4624a3(0xec)]);if(_0xd8e6a9){const _0x11a646=_0x3514b3[_0x4624a3(0x12e)](_0xd8e6a9);_0x3514b3[_0x4624a3(0x13f)](_0x11a646,0x1,_0x3daf9f);}else _0x3514b3[_0x4624a3(0x101)](_0x3daf9f);});}[_0x164748(0x133)](){const _0x720f31=_0x164748;if(_0x720f31(0x116)===this[_0x720f31(0x103)]){this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x126)](this[_0x720f31(0x11d)]);const _0x2d9a66=this[_0x720f31(0xfa)];this[_0x720f31(0x113)]();const _0x482b6c=this[_0x720f31(0xfc)](_0x2d9a66,this[_0x720f31(0xfa)]);(_0x482b6c[_0x720f31(0x136)]||this[_0x720f31(0xf8)])&&(this[_0x720f31(0xf0)](_0x720f31(0x13e),this,_0x482b6c),this[_0x720f31(0x141)][_0x720f31(0x124)][_0x720f31(0x136)]=this[_0x720f31(0x141)][_0x720f31(0x10a)][_0x720f31(0x136)]=0x0);}else this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x112)](this[_0x720f31(0x11d)]),this[_0x720f31(0xf0)](_0x720f31(0x13e),this);}[_0x164748(0xfc)](_0x374049,_0x27906b){const _0x225648=_0x164748,_0x574b0b=[];for(const _0xd8fce5 of _0x27906b){const _0x10e4ae=_0x374049[_0xd8fce5[_0x225648(0xec)]];_0x10e4ae?_0x10e4ae[_0x225648(0xee)][_0x225648(0x136)]!==_0xd8fce5[_0x225648(0xee)][_0x225648(0x136)]?_0x574b0b[_0x225648(0x101)](_0xd8fce5):_0x10e4ae[_0x225648(0xee)][_0x225648(0x100)]((_0x4f17c2,_0x32c057)=>{const _0x1a81a5=_0x225648,_0x15bc31=_0xd8fce5[_0x1a81a5(0xee)][_0x32c057];_0x4f17c2['id']!==_0x15bc31['id']&&_0x574b0b[_0x1a81a5(0x101)](_0xd8fce5);}):_0x574b0b[_0x225648(0x101)](_0xd8fce5);}return _0x574b0b;}[_0x164748(0x113)](){const _0x497534=_0x164748,_0x12accd=new _0x2be3ca('p',{},[new _0x2be3ca(_0x497534(0x105),{'style':_0x497534(0x128)},[new _0x19e2f7(_0x2484a4(this[_0x497534(0xfd)][_0x497534(0x134)],_0x497534(0x108)))])]),_0x9c2ea6=this[_0x497534(0x110)][_0x497534(0xf9)](this[_0x497534(0x121)],this[_0x497534(0x123)][_0x497534(0xed)](!0x0),{'markUnstableElements':!this[_0x497534(0xf8)],'replaceRemovedWith':_0x12accd,'cutAfterLastChange':!this[_0x497534(0xf8)]});if(!_0x9c2ea6[_0x497534(0x142)][_0x497534(0x136)]&&!this[_0x497534(0xf8)])return;this[_0x497534(0x12b)]=_0x9c2ea6[_0x497534(0x121)];let _0x3de901=[];if(_0x5d682e(_0x2b3828=>{const _0x396e2b=_0x497534,_0x5c1526=_0x4bb938(_0x2b3828,_0x396e2b(0x135));if(!_0x5c1526||!_0x240670(_0x5c1526))return!0x1;const _0xe67cd6=[_0x2b3828,..._0x233ccd(_0x2b3828)]['at'](-0x2);if(_0x2b3828!=_0xe67cd6){const _0xbc5cc8=_0x4bb938(_0xe67cd6,_0x396e2b(0x135));_0x240670(_0xbc5cc8)||(_0x3de901[_0x396e2b(0x101)]({'node':_0xe67cd6,'id':_0xbc5cc8,'type':_0x396e2b(0x10b)}),_0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x101)](_0xbc5cc8));}else _0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x10b),'id':_0x5c1526}):_0x9c2ea6[_0x396e2b(0x12d)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x11f),'id':_0x5c1526,'anchorId':_0x4bb938(_0x2b3828[_0x396e2b(0xf7)],_0x396e2b(0x135))}):_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x118),'id':_0x5c1526});return!0x0;},this[_0x497534(0x12b)]),_0x3de901=_0x3de901[_0x497534(0x109)](({node:_0x57d6de})=>[..._0x233ccd(_0x57d6de),_0x57d6de][_0x497534(0xfe)](_0x2a14e9=>!_0x4bb938(_0x2a14e9,_0x497534(0x12f)))),0x0==_0x3de901[_0x497534(0x136)])return;const _0x55fde7=[[_0x3de901[0x0]]];for(let _0x351f34=0x1;_0x351f34<_0x3de901[_0x497534(0x136)];_0x351f34++){const _0x31fe26=_0x55fde7[_0x55fde7[_0x497534(0x136)]-0x1],_0x4dc07e=_0x31fe26[_0x31fe26[_0x497534(0x136)]-0x1];_0x3de901[_0x351f34][_0x497534(0xf1)][_0x497534(0xf7)]==_0x4dc07e[_0x497534(0xf1)]&&_0x497534(0x10b)!=_0x3de901[_0x351f34][_0x497534(0x103)]&&_0x497534(0x10b)!=_0x4dc07e[_0x497534(0x103)]?_0x31fe26[_0x497534(0x101)](_0x3de901[_0x351f34]):_0x55fde7[_0x497534(0x101)]([_0x3de901[_0x351f34]]);}for(const _0x2b20bd of _0x55fde7){const _0x3b5605=_0x2b20bd[0x0],_0x476c21=_0x2b20bd[_0x2b20bd[_0x497534(0x136)]-0x1],_0x3c54ad=_0x271126(_0x3b5605[_0x497534(0xf1)][_0x497534(0xf7)]);_0x3c54ad&&_0x2b20bd[_0x497534(0x139)](_0x3c54ad);const _0x42a925=_0x271126(_0x476c21[_0x497534(0xf1)][_0x497534(0x138)]);_0x42a925&&_0x2b20bd[_0x497534(0x101)](_0x42a925);}function _0x240670(_0x2e3963){const _0x23225b=_0x497534;return _0x9c2ea6[_0x23225b(0x142)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0x12d)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0xf3)][_0x23225b(0x107)](_0x2e3963);}function _0x271126(_0x1a6430){const _0x34b3c8=_0x497534;if(_0x1a6430&&_0x4bb938(_0x1a6430,_0x34b3c8(0x135))&&!_0x4bb938(_0x1a6430,_0x34b3c8(0x12f))){const _0x220443=_0x4bb938(_0x1a6430,_0x34b3c8(0x135));if(!_0x240670(_0x220443))return{'node':_0x1a6430,'type':_0x34b3c8(0x13b),'id':_0x220443};}return null;}this[_0x497534(0xfa)]=_0x55fde7[_0x497534(0xff)]((_0x1972c,_0x1dd330)=>({'changes':_0x1972c,'state':_0x497534(0x11e),'index':_0x1dd330}));}}export function isValidReplyType(_0x37d662){const _0x18c83d=_0x164748;return Object[_0x18c83d(0x10c)](AI_REPLY_TYPES)[_0x18c83d(0x107)](_0x37d662);}export function isIgnoredReplyType(_0x1e163d){const _0x1ea97c=_0x164748;return AI_REPLY_TYPES_IGNORED[_0x1ea97c(0x107)](_0x1e163d);}function _0x59e6(_0x5d5821,_0x51cdb2){const _0x3f1990=_0x3f19();return _0x59e6=function(_0x59e612,_0x42a3e6){_0x59e612=_0x59e612-0xec;let _0x542a32=_0x3f1990[_0x59e612];return _0x542a32;},_0x59e6(_0x5d5821,_0x51cdb2);}export function isReplyTitleType(_0x225bba){return _0x225bba===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa2cde2){const _0x51ef07=_0x164748;return _0x51ef07(0x131)===_0xa2cde2;}
|
|
23
|
+
function _0x1265(){const _0x4c873e=['unshift','2bQSvGx','span','modified','forEach','content','source','2265684mrsoub','isDone','ai-reply-get-content-parts-group-not-found','parseAndNormalizeHTML','2270WiVOVI','interactionId','onContentChange','8xVmtns','index','push','withoutDiff','1361102dWxGTe','includes','sources','change:content','withDiff','editor','_getDifferentChangeGroups','state','values','newNodeIds','18599fjKcAg','previousSibling','every','1432sMGiis','merge','aiResponseApplier','color:\x20#808080;\x20font-style:\x20italic','_setCachedContentParts','removed','find','length','replyChangeGroupStateUpdated','parsedMergedContent','conversation-title','destroy','aiResponseParser','type','getContentParts','filter','set','fire','2203896QdSewS','stopListening','setChangeGroupState','web-search','areActionsDisabled','appendContent','node','map','indexOf','replyContentUpdated','data-unstable','changeGroups','3766730QIqsxw','modifiedNodeIds','text-delta','ai-get-editor-from-context-no-editor','changes','cloneNode','context','removedNodeIds','_getCachedContentParts','new','splice','modification-delta','parsedContent','data-id','documentContextContent','nextSibling','done','reasoning','cachedSuggestionContentParts','48123wtgdgR','convertMarkdownToHTML','pending','27500605PZviVC','locale','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x1265=function(){return _0x4c873e;};return _0x1265();}const _0x57634b=_0x26e0;(function(_0x3fb54c,_0x24f25c){const _0x3c94f7=_0x26e0,_0x30e480=_0x3fb54c();while(!![]){try{const _0x49608c=-parseInt(_0x3c94f7(0x16e))/0x1*(parseInt(_0x3c94f7(0x17f))/0x2)+-parseInt(_0x3c94f7(0x174))/0x3+parseInt(_0x3c94f7(0x17b))/0x4*(parseInt(_0x3c94f7(0x153))/0x5)+-parseInt(_0x3c94f7(0x147))/0x6+parseInt(_0x3c94f7(0x132))/0x7*(parseInt(_0x3c94f7(0x135))/0x8)+parseInt(_0x3c94f7(0x166))/0x9*(-parseInt(_0x3c94f7(0x178))/0xa)+parseInt(_0x3c94f7(0x169))/0xb;if(_0x49608c===_0x24f25c)break;else _0x30e480['push'](_0x30e480['shift']());}catch(_0x25a1de){_0x30e480['push'](_0x30e480['shift']());}}}(_0x1265,0xbfa27));import{CKEditorError as _0x833b10,ObservableMixin as _0x4d14b2,uid as _0x1681da}from'ckeditor5/src/utils.js';import{Element as _0x592baa,findAll as _0x170355,getAttribute as _0x42e052,getParents as _0x490550,Document as _0x2268bc,parse as _0x53e59f,Text as _0x231b9d}from'../utils/htmlparser.js';import{AIResponseParser as _0x6d411c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x24cfae}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2a3b5a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x3c1d44}from'../utils/common-translations.js';function _0x26e0(_0x4f5f93,_0x44cd5f){const _0x12656b=_0x1265();return _0x26e0=function(_0x26e02e,_0x204e8e){_0x26e02e=_0x26e02e-0x12c;let _0x5d9ca3=_0x12656b[_0x26e02e];return _0x5d9ca3;},_0x26e0(_0x4f5f93,_0x44cd5f);}import{cloneDeep as _0x1a44d9}from'es-toolkit';export const AI_REPLY_TYPES=[_0x57634b(0x15e),_0x57634b(0x155),_0x57634b(0x14a),_0x57634b(0x164)];export const AI_REPLY_TYPES_IGNORED=[_0x57634b(0x13f)];export const AI_REPLY_TITLE_TYPE=_0x57634b(0x13f);export class AIReply extends _0x4d14b2(){['id'];[_0x57634b(0x179)];[_0x57634b(0x142)];[_0x57634b(0x181)]=[];[_0x57634b(0x15f)]=new _0x2268bc([]);[_0x57634b(0x13e)]=new _0x2268bc([]);[_0x57634b(0x152)]=[];[_0x57634b(0x14b)]=!0x1;[_0x57634b(0x161)];[_0x57634b(0x141)];[_0x57634b(0x137)];[_0x57634b(0x12d)];[_0x57634b(0x165)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x28ddd6,content:_0x551640='',isDone:_0x1c0fa1=!0x1,interactionId:_0x3e4ac3,areActionsDisabled:_0x544026,documentContextContent:_0x3ac13d,editor:_0xf6572,id:_0x1dbb9f}){const _0x4cb33e=_0x57634b;super(),this['id']=_0x1dbb9f||_0x1681da(),this[_0x4cb33e(0x179)]=_0x3e4ac3,this[_0x4cb33e(0x142)]=_0x28ddd6,this[_0x4cb33e(0x14b)]=!!_0x544026,this[_0x4cb33e(0x12d)]=_0xf6572,this[_0x4cb33e(0x141)]=new _0x6d411c(),this[_0x4cb33e(0x137)]=new _0x24cfae(),this[_0x4cb33e(0x161)]=_0x53e59f(_0x3ac13d||''),this[_0x4cb33e(0x145)](_0x4cb33e(0x175),_0x1c0fa1),this['on'](_0x4cb33e(0x182),()=>{const _0x2035b0=_0x4cb33e;this[_0x2035b0(0x17a)]();}),this[_0x4cb33e(0x145)](_0x4cb33e(0x172),_0x551640);}[_0x57634b(0x14c)](_0xf8ec7f){const _0x42ed47=_0x57634b;this[_0x42ed47(0x145)](_0x42ed47(0x172),this[_0x42ed47(0x172)]+_0xf8ec7f);}[_0x57634b(0x163)](){const _0x5a9d5b=_0x57634b;this[_0x5a9d5b(0x175)]||(this[_0x5a9d5b(0x145)](_0x5a9d5b(0x175),!0x0),this[_0x5a9d5b(0x17a)]());}[_0x57634b(0x140)](){const _0x5af4f7=_0x57634b;this[_0x5af4f7(0x148)]();}[_0x57634b(0x149)](_0x50074d,_0x4daa2b){const _0x1d9f42=_0x57634b;this[_0x1d9f42(0x152)][_0x50074d][_0x1d9f42(0x12f)]=_0x4daa2b,this[_0x1d9f42(0x146)](_0x1d9f42(0x13d),{'reply':this,'index':_0x50074d,'state':_0x4daa2b});}[_0x57634b(0x143)]({showDiff:_0x463802,groupIndex:_0x923594}){const _0x1e01d2=_0x57634b;if(!this[_0x1e01d2(0x12d)])throw new _0x833b10(_0x1e01d2(0x156),null,{'aiReply':this});const _0x114dac=this[_0x1e01d2(0x15b)](_0x463802,_0x923594);if(_0x114dac)return _0x114dac;let _0x4c7f34=[];if(void 0x0===_0x923594)_0x4c7f34=this[_0x1e01d2(0x152)];else{const _0x16547e=this[_0x1e01d2(0x152)][_0x1e01d2(0x13b)](({index:_0x34d0d3})=>_0x34d0d3===_0x923594);if(!_0x16547e)throw new _0x833b10(_0x1e01d2(0x176),null,{'aiReply':this,'groupIndex':_0x923594});_0x4c7f34=[_0x16547e];}const _0x124520=_0x2a3b5a({'editor':this[_0x1e01d2(0x12d)],'showDiff':_0x463802,'changeGroups':_0x4c7f34,'documentContextContent':this[_0x1e01d2(0x161)]});return this[_0x1e01d2(0x139)](_0x463802,_0x124520),_0x124520;}[_0x57634b(0x15b)](_0x391d84,_0x5164b4){const _0x3de9ce=_0x57634b,_0x383d58=_0x391d84?_0x3de9ce(0x12c):_0x3de9ce(0x17e);if(!this[_0x3de9ce(0x165)][_0x383d58][_0x3de9ce(0x13c)])return null;const _0x30a1b6=this[_0x3de9ce(0x165)][_0x383d58];if(void 0x0===_0x5164b4)return _0x1a44d9(_0x30a1b6);{const _0x5a5b05=_0x30a1b6[_0x3de9ce(0x13b)](({index:_0x3b3ceb})=>_0x3b3ceb===_0x5164b4);if(_0x5a5b05)return[_0x1a44d9(_0x5a5b05)];}return null;}[_0x57634b(0x139)](_0x5f6f65,_0x52e6aa){const _0x256a0f=_0x57634b,_0x2e3dc3=_0x5f6f65?_0x256a0f(0x12c):_0x256a0f(0x17e);_0x52e6aa[_0x256a0f(0x171)](_0x325f6a=>{const _0x45f863=_0x256a0f,_0xa9f38e=this[_0x45f863(0x165)][_0x2e3dc3],_0xe54415=_0xa9f38e[_0x45f863(0x13b)](({index:_0x19963c})=>_0x19963c===_0x325f6a[_0x45f863(0x17c)]);if(_0xe54415){const _0x51a811=_0xa9f38e[_0x45f863(0x14f)](_0xe54415);_0xa9f38e[_0x45f863(0x15d)](_0x51a811,0x1,_0x325f6a);}else _0xa9f38e[_0x45f863(0x17d)](_0x325f6a);});}[_0x57634b(0x17a)](){const _0x57e6f5=_0x57634b;if(_0x57e6f5(0x15e)===this[_0x57e6f5(0x142)]){this[_0x57e6f5(0x15f)]=this[_0x57e6f5(0x141)][_0x57e6f5(0x177)](this[_0x57e6f5(0x172)]);const _0x2e19f2=this[_0x57e6f5(0x152)];this[_0x57e6f5(0x16b)]();const _0x484237=this[_0x57e6f5(0x12e)](_0x2e19f2,this[_0x57e6f5(0x152)]);(_0x484237[_0x57e6f5(0x13c)]||this[_0x57e6f5(0x175)])&&(this[_0x57e6f5(0x146)](_0x57e6f5(0x150),this,_0x484237),this[_0x57e6f5(0x165)][_0x57e6f5(0x12c)][_0x57e6f5(0x13c)]=this[_0x57e6f5(0x165)][_0x57e6f5(0x17e)][_0x57e6f5(0x13c)]=0x0);}else this[_0x57e6f5(0x15f)]=this[_0x57e6f5(0x141)][_0x57e6f5(0x167)](this[_0x57e6f5(0x172)]),this[_0x57e6f5(0x146)](_0x57e6f5(0x150),this);}[_0x57634b(0x12e)](_0x37148f,_0x5b5710){const _0x32efda=_0x57634b,_0x2e5f26=[];for(const _0x2d82a0 of _0x5b5710){const _0x160369=_0x37148f[_0x2d82a0[_0x32efda(0x17c)]];_0x160369?_0x160369[_0x32efda(0x157)][_0x32efda(0x13c)]!==_0x2d82a0[_0x32efda(0x157)][_0x32efda(0x13c)]?_0x2e5f26[_0x32efda(0x17d)](_0x2d82a0):_0x160369[_0x32efda(0x157)][_0x32efda(0x171)]((_0x1fa8ee,_0xd4cccc)=>{const _0x1388ab=_0x32efda,_0x5b4751=_0x2d82a0[_0x1388ab(0x157)][_0xd4cccc];_0x1fa8ee['id']!==_0x5b4751['id']&&_0x2e5f26[_0x1388ab(0x17d)](_0x2d82a0);}):_0x2e5f26[_0x32efda(0x17d)](_0x2d82a0);}return _0x2e5f26;}[_0x57634b(0x16b)](){const _0x14e0ef=_0x57634b,_0x240f86=new _0x592baa('p',{},[new _0x592baa(_0x14e0ef(0x16f),{'style':_0x14e0ef(0x138)},[new _0x231b9d(_0x3c1d44(this[_0x14e0ef(0x12d)][_0x14e0ef(0x16a)],_0x14e0ef(0x16c)))])]),_0x22efd8=this[_0x14e0ef(0x137)][_0x14e0ef(0x136)](this[_0x14e0ef(0x15f)],this[_0x14e0ef(0x161)][_0x14e0ef(0x158)](!0x0),{'markUnstableElements':!this[_0x14e0ef(0x175)],'replaceRemovedWith':_0x240f86,'cutAfterLastChange':!this[_0x14e0ef(0x175)]});if(!_0x22efd8[_0x14e0ef(0x154)][_0x14e0ef(0x13c)]&&!this[_0x14e0ef(0x175)])return;this[_0x14e0ef(0x13e)]=_0x22efd8[_0x14e0ef(0x15f)];let _0x31db33=[];if(_0x170355(_0x442c7a=>{const _0x3d7c39=_0x14e0ef,_0x594ebb=_0x42e052(_0x442c7a,_0x3d7c39(0x160));if(!_0x594ebb||!_0x13a7b0(_0x594ebb))return!0x1;const _0x4936b7=[_0x442c7a,..._0x490550(_0x442c7a)]['at'](-0x2);if(_0x442c7a!=_0x4936b7){const _0x554468=_0x42e052(_0x4936b7,_0x3d7c39(0x160));_0x13a7b0(_0x554468)||(_0x31db33[_0x3d7c39(0x17d)]({'node':_0x4936b7,'id':_0x554468,'type':_0x3d7c39(0x170)}),_0x22efd8[_0x3d7c39(0x154)][_0x3d7c39(0x17d)](_0x554468));}else _0x22efd8[_0x3d7c39(0x154)][_0x3d7c39(0x180)](_0x594ebb)?_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x170),'id':_0x594ebb}):_0x22efd8[_0x3d7c39(0x131)][_0x3d7c39(0x180)](_0x594ebb)?_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x15c),'id':_0x594ebb,'anchorId':_0x42e052(_0x442c7a[_0x3d7c39(0x133)],_0x3d7c39(0x160))}):_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x13a),'id':_0x594ebb});return!0x0;},this[_0x14e0ef(0x13e)]),_0x31db33=_0x31db33[_0x14e0ef(0x144)](({node:_0x38a20f})=>[..._0x490550(_0x38a20f),_0x38a20f][_0x14e0ef(0x134)](_0x15f654=>!_0x42e052(_0x15f654,_0x14e0ef(0x151)))),0x0==_0x31db33[_0x14e0ef(0x13c)])return;const _0x4c256e=[[_0x31db33[0x0]]];for(let _0x3bdc44=0x1;_0x3bdc44<_0x31db33[_0x14e0ef(0x13c)];_0x3bdc44++){const _0x25342a=_0x4c256e[_0x4c256e[_0x14e0ef(0x13c)]-0x1],_0x288448=_0x25342a[_0x25342a[_0x14e0ef(0x13c)]-0x1];_0x31db33[_0x3bdc44][_0x14e0ef(0x14d)][_0x14e0ef(0x133)]==_0x288448[_0x14e0ef(0x14d)]&&_0x14e0ef(0x170)!=_0x31db33[_0x3bdc44][_0x14e0ef(0x142)]&&_0x14e0ef(0x170)!=_0x288448[_0x14e0ef(0x142)]?_0x25342a[_0x14e0ef(0x17d)](_0x31db33[_0x3bdc44]):_0x4c256e[_0x14e0ef(0x17d)]([_0x31db33[_0x3bdc44]]);}for(const _0x3f03a7 of _0x4c256e){const _0x1c49b8=_0x3f03a7[0x0],_0x26a8cd=_0x3f03a7[_0x3f03a7[_0x14e0ef(0x13c)]-0x1],_0xcd17d=_0xd0a41a(_0x1c49b8[_0x14e0ef(0x14d)][_0x14e0ef(0x133)]);_0xcd17d&&_0x3f03a7[_0x14e0ef(0x16d)](_0xcd17d);const _0x22cc29=_0xd0a41a(_0x26a8cd[_0x14e0ef(0x14d)][_0x14e0ef(0x162)]);_0x22cc29&&_0x3f03a7[_0x14e0ef(0x17d)](_0x22cc29);}function _0x13a7b0(_0xb74b16){const _0x561f81=_0x14e0ef;return _0x22efd8[_0x561f81(0x154)][_0x561f81(0x180)](_0xb74b16)||_0x22efd8[_0x561f81(0x131)][_0x561f81(0x180)](_0xb74b16)||_0x22efd8[_0x561f81(0x15a)][_0x561f81(0x180)](_0xb74b16);}function _0xd0a41a(_0x1c1bbe){const _0x22ec17=_0x14e0ef;if(_0x1c1bbe&&_0x42e052(_0x1c1bbe,_0x22ec17(0x160))&&!_0x42e052(_0x1c1bbe,_0x22ec17(0x151))){const _0x4f72e5=_0x42e052(_0x1c1bbe,_0x22ec17(0x160));if(!_0x13a7b0(_0x4f72e5))return{'node':_0x1c1bbe,'type':_0x22ec17(0x159),'id':_0x4f72e5};}return null;}this[_0x14e0ef(0x152)]=_0x4c256e[_0x14e0ef(0x14e)]((_0x2591ce,_0x5034f2)=>({'changes':_0x2591ce,'state':_0x14e0ef(0x168),'index':_0x5034f2}));}}export function isValidReplyType(_0xf862d2){const _0x4a7f4e=_0x57634b;return Object[_0x4a7f4e(0x130)](AI_REPLY_TYPES)[_0x4a7f4e(0x180)](_0xf862d2);}export function isIgnoredReplyType(_0x507fc6){const _0x171fca=_0x57634b;return AI_REPLY_TYPES_IGNORED[_0x171fca(0x180)](_0x507fc6);}export function isReplyTitleType(_0x22f219){return _0x22f219===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x351344){const _0x37f36c=_0x57634b;return _0x37f36c(0x173)===_0x351344;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x24d659(){[_0x11de9e(0xf4)];[_0x11de9e(0xd3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x11de9e(0xe4)]=new Set();constructor(_0x557b2c){const _0x4494d9=_0x11de9e;super(),this[_0x4494d9(0xf4)]=_0x557b2c||_0x286459;}[_0x11de9e(0x103)](_0x187502,_0x4a4073,_0x36cd15){const _0x475836=_0x11de9e,_0x191ba5=_0xcbd285(_0x187502);if(0x0===_0x4a4073[_0x475836(0x105)][_0x475836(0x108)]){const _0x2b2ad9=[];return _0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x191ba5)[_0x475836(0xeb)](_0x302988=>{const _0x357a9f=_0x475836,_0x5454f6=this[_0x357a9f(0xf4)]();_0x4c04ff(_0x302988,_0x357a9f(0x10c),_0x5454f6),_0x2b2ad9[_0x357a9f(0x101)](_0x5454f6);}),this[_0x475836(0xce)](_0x191ba5),{'parsedContent':_0x191ba5,'newNodeIds':_0x2b2ad9,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0x107)](_0x191ba5),this[_0x475836(0xd3)][_0x475836(0xf7)]=[],this[_0x475836(0xd3)][_0x475836(0xed)]=[],this[_0x475836(0xd3)][_0x475836(0xd0)]=[],this[_0x475836(0xd3)][_0x475836(0xe7)]=[],this[_0x475836(0xd3)][_0x475836(0xf0)]=null,this[_0x475836(0xe4)]=new Set(_0x469be7(_0x475836(0x10c),null,_0x4a4073)[_0x475836(0xde)](_0x4f9703=>_0xbf53f2(_0x4f9703,_0x475836(0x10c)))[_0x475836(0xe0)](_0x222f9d=>!!_0x222f9d));let _0x21ee67=-0x1,_0x3d7967=!0x1;const _0x1509fb=_0x191ba5[_0x475836(0x105)],_0x59c7bf=Array[_0x475836(0xc8)](_0x1509fb)[_0x475836(0xe0)](_0x47c0d1=>!(0x3===_0x47c0d1[_0x475836(0xec)]&&''===_0x243c05(_0x47c0d1)[_0x475836(0xf8)]())),_0x3b2879=_0x59c7bf[_0x475836(0x108)];for(let _0x3a9926=0x0;_0x3a9926<_0x3b2879;_0x3a9926++){const _0x1f758a=_0x59c7bf[_0x3a9926],_0x5a5106=_0x59c7bf[_0x3a9926+0x1];if(this[_0x475836(0xd8)](_0x1f758a)){if(-0x1===_0x21ee67&&(_0x21ee67=_0x3a9926),this[_0x475836(0xd5)](_0x1f758a),!this[_0x475836(0xd8)](_0x5a5106)){const [_0x1bdbfb,_0x27fbf9]=this[_0x475836(0xcf)](_0x1f758a,_0x3d7967,_0x4a4073);if(_0x1bdbfb){const _0x6a9e17=Array[_0x475836(0xc8)](_0x59c7bf)[_0x475836(0x102)](_0x21ee67,_0x3a9926+0x1);this[_0x475836(0xdf)](_0x1bdbfb,_0x6a9e17,_0x27fbf9),_0x21ee67=-0x1;}}}else{if(this[_0x475836(0xc6)](_0x1f758a))_0x3d7967=!0x0;else{if(this[_0x475836(0x109)](_0x1f758a)){const _0x5ba1d5=_0xbf53f2(_0x1f758a,_0x475836(0x10c));if(_0x5ba1d5&&this[_0x475836(0xe4)][_0x475836(0xe9)](_0x5ba1d5)){const _0x59de86=_0x203772(_0x475836(0x10c),_0x5ba1d5,_0x4a4073);this[_0x475836(0xe1)](_0x59de86,_0x1f758a);}if(this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xdd)](_0x5ba1d5)){const _0x55cd3b=this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xcc)](_0x5ba1d5);this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xc7)](_0x55cd3b,0x1);}}else{if(this[_0x475836(0xf3)](_0x1f758a)){const _0x28393e=_0xbf53f2(_0x1f758a,_0x475836(0x10c));this[_0x475836(0xd3)][_0x475836(0xed)][_0x475836(0xdd)](_0x28393e)||this[_0x475836(0xf1)](_0x1f758a);}}}}}for(const _0x3f63be of this[_0x475836(0xd3)][_0x475836(0xd0)]){const _0x958dde=_0x203772(_0x475836(0x10c),_0x3f63be,_0x4a4073);if(_0x958dde){if(_0x36cd15&&_0x36cd15[_0x475836(0xe2)]){this[_0x475836(0xd3)][_0x475836(0xf0)]=_0x3f63be;const _0x5f52d6=_0x36cd15[_0x475836(0xe2)][_0x475836(0x10a)](!0x0);_0x4c04ff(_0x5f52d6,_0x475836(0x10c),_0x3f63be),_0x4c04ff(_0x5f52d6,_0x475836(0xd6),_0x475836(0xd1)),_0x3ab67b(_0x958dde,_0x5f52d6);}else _0x438fd0(_0x958dde);}}if(_0x469be7(_0x475836(0x104),null,_0x4a4073)[_0x475836(0xeb)](_0xc3df39=>{const _0x268727=_0x475836,_0x1a1cba=_0xbf53f2(_0xc3df39,_0x268727(0x104)),_0x3268d5=_0x203772(_0x268727(0x10c),_0x1a1cba,_0x4a4073);_0x3268d5&&_0x429156(_0x3268d5,_0xc3df39);}),_0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x4a4073)[_0x475836(0xeb)](_0x4bc8d0=>{const _0x1787f8=_0x475836,_0x2b40b7=this[_0x1787f8(0xf5)](_0x4bc8d0);_0x4c04ff(_0x4bc8d0,_0x1787f8(0x10c),_0x2b40b7),this[_0x1787f8(0xd3)][_0x1787f8(0xf7)][_0x1787f8(0x101)](_0x2b40b7);}),this[_0x475836(0xce)](_0x4a4073),_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0xfc)](_0x4a4073,_0x36cd15[_0x475836(0xdb)]||0x0),_0x36cd15&&_0x36cd15[_0x475836(0xe8)]&&this[_0x475836(0xd3)][_0x475836(0xf0)]){let _0x35155f=_0x203772(_0x475836(0x10c),this[_0x475836(0xd3)][_0x475836(0xf0)],_0x4a4073);for(;_0x35155f;)_0x12cb4a(_0x35155f),_0x35155f=_0x35155f[_0x475836(0xca)];}return{'parsedContent':_0x4a4073,'newNodeIds':this[_0x475836(0xd3)][_0x475836(0xf7)],'modifiedNodeIds':this[_0x475836(0xd3)][_0x475836(0xed)],'removedNodeIds':this[_0x475836(0xd3)][_0x475836(0xd0)]};}[_0x11de9e(0xdf)](_0x158c3c,_0x370e80,_0x22d351){const _0x178d97=_0x11de9e;for(const _0x2a8962 of _0x370e80){const _0x398a42=this[_0x178d97(0xf5)](_0x2a8962);_0x4c04ff(_0x2a8962,_0x178d97(0x10c),_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf7)][_0x178d97(0x101)](_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf0)]=_0x398a42;}const _0x3a8069=_0x178d97(0xff)===_0x22d351||_0x178d97(0xd7)===_0x22d351?_0x370e80[_0x178d97(0x106)]():_0x370e80;for(const _0xf69eb4 of _0x3a8069)_0x54a7b6(_0x158c3c,_0xf69eb4,_0x22d351);}[_0x11de9e(0xe1)](_0x23e585,_0x2c3151){const _0x3356b6=_0x11de9e;if(!_0x23e585)return;if(_0x5766b9(_0x23e585,_0x2c3151))return;const _0x33c8cb=this[_0x3356b6(0xf5)](_0x23e585);_0x4c04ff(_0x2c3151,_0x3356b6(0x10c),_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xed)][_0x3356b6(0x101)](_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xf0)]=_0x33c8cb,_0x3ab67b(_0x23e585,_0x2c3151[_0x3356b6(0x10a)](!0x0));}[_0x11de9e(0xcf)](_0x16de4f,_0x253e2b,_0x265b01){const _0x49e472=_0x11de9e,_0x43a0ec=this[_0x49e472(0xe5)](_0x16de4f,!0x1);if(_0x43a0ec){const _0x1b9b63=this[_0x49e472(0xe3)](_0x43a0ec),_0x3a6032=_0x203772(_0x49e472(0x10c),_0x1b9b63,_0x265b01);if(_0x3a6032)return[_0x3a6032,_0x49e472(0xd7)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1b9b63);}const _0x355641=this[_0x49e472(0xe6)](_0x16de4f,!0x1);if(_0x355641){const _0x1e09cd=this[_0x49e472(0xe3)](_0x355641),_0x2dfa34=_0x203772(_0x49e472(0x10c),_0x1e09cd,_0x265b01);if(_0x2dfa34)return[_0x2dfa34,_0x49e472(0xd4)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1e09cd);}return _0x253e2b?_0x16de4f[_0x49e472(0xc9)]?this[_0x49e472(0xfd)](_0x16de4f,_0x265b01):[_0x265b01[_0x49e472(0x105)][_0x265b01[_0x49e472(0x105)][_0x49e472(0x108)]-0x1],_0x49e472(0xd7)]:[_0x265b01[_0x49e472(0x105)][0x0],_0x49e472(0xd4)];}[_0x11de9e(0xfd)](_0x178362,_0x17f072){const _0x36559b=_0x11de9e,_0x3bb4b8=[],_0x1362d2=this[_0x36559b(0xe5)](_0x178362,!0x0);if(_0x1362d2){const _0x2f48b8=this[_0x36559b(0xe3)](_0x1362d2),_0x4749e0=_0x203772(_0x36559b(0x10c),_0x2f48b8,_0x17f072);_0x4749e0&&_0x3bb4b8[_0x36559b(0x101)]([_0x4749e0,_0x36559b(0xd7)]);}const _0x13c5d7=this[_0x36559b(0xe6)](_0x178362,!0x0);if(_0x13c5d7){const _0x3f59d1=this[_0x36559b(0xe3)](_0x13c5d7),_0x1044ce=_0x203772(_0x36559b(0x10c),_0x3f59d1,_0x17f072);_0x1044ce&&_0x3bb4b8[_0x36559b(0x101)]([_0x1044ce,_0x36559b(0xd4)]);}if(_0x3bb4b8[_0x36559b(0x108)]>0x1)return _0xe646f0(_0x3bb4b8[0x0][0x0])<=_0xe646f0(_0x3bb4b8[0x1][0x0])?_0x3bb4b8[0x0]:_0x3bb4b8[0x1];return 0x1===_0x3bb4b8[_0x36559b(0x108)]?_0x3bb4b8[0x0]:[_0x17f072[_0x36559b(0xda)],_0x36559b(0xd7)];}[_0x11de9e(0xe6)](_0x279439,_0x1451cf){const _0x507a88=_0x11de9e;let _0x3e1a7=_0x279439[_0x507a88(0xc9)],_0x452e24=null,_0x358e29=!0x1;for(;_0x3e1a7;){if(_0xb10e39(_0x3e1a7)){if(this[_0x507a88(0xf3)](_0x3e1a7)&&(_0x452e24=_0x3e1a7),this[_0x507a88(0xc6)](_0x3e1a7)&&_0x1451cf&&!_0x358e29){_0x358e29=!0x0,_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];continue;}break;}const _0x3828a6=_0xbf53f2(_0x3e1a7,_0x507a88(0x10c));if(_0x3828a6&&_0x507a88(0xef)!==_0x3828a6&&this[_0x507a88(0xe4)][_0x507a88(0xe9)](_0x3828a6)){_0x452e24=_0x3e1a7;break;}_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];}return _0x452e24;}[_0x11de9e(0xe5)](_0x10cb98,_0x5b2bcc){const _0x5ed628=_0x11de9e;let _0x38d2a7=_0x10cb98[_0x5ed628(0xdc)],_0x4dfc8f=null,_0x39b47c=!0x1;for(;_0x38d2a7;){if(_0xb10e39(_0x38d2a7)){if(this[_0x5ed628(0xf3)](_0x38d2a7)&&(_0x4dfc8f=_0x38d2a7),this[_0x5ed628(0xc6)](_0x38d2a7)&&_0x5b2bcc&&!_0x39b47c){_0x39b47c=!0x0,_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];continue;}break;}const _0x1e0dba=_0xbf53f2(_0x38d2a7,_0x5ed628(0x10c));if(_0x1e0dba&&_0x5ed628(0xef)!==_0x1e0dba&&this[_0x5ed628(0xe4)][_0x5ed628(0xe9)](_0x1e0dba)){_0x4dfc8f=_0x38d2a7;break;}_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];}return _0x4dfc8f;}[_0x11de9e(0xd5)](_0x1a0901){const _0x21bbe9=_0x11de9e;_0x31a714(_0x1a0901)&&_0x469be7(_0x21bbe9(0x10c),null,_0x1a0901)[_0x21bbe9(0xeb)](_0x431780=>{const _0x37b3b8=_0x21bbe9;if(this[_0x37b3b8(0x109)](_0x431780)&&!this[_0x37b3b8(0xee)](_0x431780)){const _0x5566ad=_0xbf53f2(_0x431780,_0x37b3b8(0x10c));_0x4c04ff(_0x431780,_0x37b3b8(0x104),_0x5566ad),_0x4c04ff(_0x431780,_0x37b3b8(0x10c),null);}});}[_0x11de9e(0xe3)](_0xac06e1){const _0x28b6ab=_0x11de9e;if(!_0xac06e1)return null;if(_0x31a714(_0xac06e1))return _0xbf53f2(_0xac06e1,_0x28b6ab(0x10c));if(_0xb10e39(_0xac06e1)){const _0x3934bb=_0x243c05(_0xac06e1)[_0x28b6ab(0xea)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3934bb&&_0x3934bb[0x1])return _0x3934bb[0x1];}return null;}[_0x11de9e(0xf1)](_0x4a4ebc){const _0x626c54=_0x11de9e;if(_0xb10e39(_0x4a4ebc)){const _0x136f38=_0x243c05(_0x4a4ebc)[_0x626c54(0xea)](/removed[\s*-]data-id="([^"]+)"/);_0x136f38&&_0x136f38[0x1]&&this[_0x626c54(0xd3)][_0x626c54(0xd0)][_0x626c54(0x101)](_0x136f38[0x1]);}}[_0x11de9e(0xf5)](_0x381734){const _0x2a652e=_0x11de9e;return this[_0x2a652e(0x109)](_0x381734)?_0xbf53f2(_0x381734,_0x2a652e(0x10c)):this[_0x2a652e(0xf4)]();}[_0x11de9e(0xce)](_0x5e6de3){const _0x623879=_0x11de9e;_0x39d7b2(_0x5e6de3)[_0x623879(0xe0)](_0x5e6a97=>this[_0x623879(0xf3)](_0x5e6a97)||this[_0x623879(0xc6)](_0x5e6a97))[_0x623879(0xeb)](_0x5a5746=>{_0x438fd0(_0x5a5746);});}[_0x11de9e(0x107)](_0x21e9eb){const _0x211efd=_0x11de9e,_0x3af43f=_0x21e9eb[_0x211efd(0x105)],_0x50aebc=_0x3af43f[_0x3af43f[_0x211efd(0x108)]-0x1];_0x50aebc&&_0x31a714(_0x50aebc)&&_0x4c04ff(_0x50aebc,_0x211efd(0xc5),_0x211efd(0xd1));}[_0x11de9e(0xfc)](_0x26ec21,_0x455abf){const _0x41cc60=_0x11de9e,_0xf8faa9=_0x203772(_0x41cc60(0xc5),_0x41cc60(0xd1),_0x26ec21);if(!_0xf8faa9)return;const _0xa6a619=_0x5b1fd7(_0xf8faa9)[_0x41cc60(0x102)](0x0,-0x1),_0x41e3ae=_0xa6a619[_0x41cc60(0x108)];let _0x1222ef=_0xf8faa9;if(_0x41e3ae>_0x455abf){let _0x328ee8=_0x41e3ae,_0x3e0d7a=null;for(;_0x328ee8>_0x455abf&&_0x328ee8>=0x0;)_0x328ee8--,_0x3e0d7a=_0xa6a619[_0x328ee8];_0x3e0d7a&&(_0x1222ef=_0x3e0d7a,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x3e0d7a,_0x41cc60(0xc5),_0x41cc60(0xd1)));}else{if(_0x41e3ae<_0x455abf){let _0x52cc39=_0x41e3ae,_0x395eb4=_0xf8faa9;for(;_0x52cc39<_0x455abf;){const _0x4b8cf4=_0x395eb4[_0x41cc60(0x105)][_0x41cc60(0xe0)](_0x4996f0=>_0x31a714(_0x4996f0));if(0x0===_0x4b8cf4[_0x41cc60(0x108)])break;_0x52cc39++,_0x395eb4=_0x4b8cf4[_0x4b8cf4[_0x41cc60(0x108)]-0x1];}_0x395eb4&&(_0x1222ef=_0x395eb4,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x395eb4,_0x41cc60(0xc5),_0x41cc60(0xd1)));}}let _0x3491f1=_0x1222ef;for(;_0x3491f1;){for(;_0x3491f1[_0x41cc60(0xc9)];)_0x3491f1=_0x3491f1[_0x41cc60(0xc9)],_0x31a714(_0x3491f1)&&_0x4c04ff(_0x3491f1,_0x41cc60(0xc5),_0x41cc60(0xd1));_0x3491f1=_0x3491f1[_0x41cc60(0xca)];}}[_0x11de9e(0xd8)](_0x7eb748){const _0x59eecb=_0x11de9e;return Boolean(_0x59eecb(0xef)===_0xbf53f2(_0x7eb748,_0x59eecb(0x10c)));}[_0x11de9e(0x109)](_0x3f8296){const _0x4ae19f=_0x11de9e;return Boolean((_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c))||'')[_0x4ae19f(0x108)]>0x0&&_0x4ae19f(0xef)!==_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c)));}[_0x11de9e(0xf3)](_0x31461a){const _0x362751=_0x11de9e;return!!_0x31461a&&Boolean(_0xb10e39(_0x31461a)&&_0x243c05(_0x31461a)[_0x362751(0xea)](/removed[\s*-]data-id="[^"]+"/));}[_0x11de9e(0xee)](_0x55d666){const _0x44fb34=_0x11de9e;let _0x32d31f=_0x55d666[_0x44fb34(0xca)];for(;_0x32d31f;){if(_0xbf53f2(_0x32d31f,_0x44fb34(0x104)))return!0x0;_0x32d31f=_0x32d31f[_0x44fb34(0xca)];}return!0x1;}[_0x11de9e(0xc6)](_0x1c20e7){const _0x3109e5=_0x11de9e;return Boolean(_0xb10e39(_0x1c20e7)&&_0x243c05(_0x1c20e7)[_0x3109e5(0xea)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x39b1e7=_0xc1c1;(function(_0x4fa1d8,_0x12e7f5){const _0x25b48f=_0xc1c1,_0x34c3fa=_0x4fa1d8();while(!![]){try{const _0x26af5e=parseInt(_0x25b48f(0xe3))/0x1*(-parseInt(_0x25b48f(0xe0))/0x2)+-parseInt(_0x25b48f(0xdb))/0x3+-parseInt(_0x25b48f(0xb6))/0x4+parseInt(_0x25b48f(0xad))/0x5+-parseInt(_0x25b48f(0xc2))/0x6+-parseInt(_0x25b48f(0xe7))/0x7+-parseInt(_0x25b48f(0xdd))/0x8*(-parseInt(_0x25b48f(0xae))/0x9);if(_0x26af5e===_0x12e7f5)break;else _0x34c3fa['push'](_0x34c3fa['shift']());}catch(_0x1cfbf6){_0x34c3fa['push'](_0x34c3fa['shift']());}}}(_0x5445,0x40277));import{ObservableMixin as _0x2416ce,uid as _0x4a43c2}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xddd85,findByAttribute as _0x3a5e12,getAttribute as _0x5dfcfc,isComment as _0x389d70,isTag as _0x21b095,insertElement as _0x444c7d,moveElement as _0x8ac3c9,removeElement as _0x3de19b,replaceElement as _0x1bafcb,serialize as _0x528982,setAttribute as _0x987284,clone as _0x6e2e96,findAllComments as _0x59a2ef,getParents as _0x39dc7e,getNodeNestingLevel as _0x2e43cd,areNodesSame as _0x508257,removeElementsAfter as _0x2395c6}from'../utils/htmlparser.js';function _0xc1c1(_0x2d66d7,_0x186894){const _0x544581=_0x5445();return _0xc1c1=function(_0xc1c192,_0x318b5b){_0xc1c192=_0xc1c192-0xab;let _0x28cae1=_0x544581[_0xc1c192];return _0x28cae1;},_0xc1c1(_0x2d66d7,_0x186894);}function _0x5445(){const _0x4c3999=['_hasWrappedParent','3420214jsZHca','reverse','_touchedNodesState','modifiedIds','_markWrappedElements','nextSibling','previousSibling','_existingDataIds','has','_removeSpecialComments','slice','removedIds','2467480XPxMdo','131004lzSBEq','cloneNode','newIds','_isNewNode','data-removed','beforebegin','_findNextElementWithDataId','lastTouchedId','1862820xYcFTv','markUnstableElements','_storeDeletedElementIds','trim','indexOf','afterbegin','merge','data-unstable','invalidIds','_isExistingNode','parentNode','replaceRemovedWith','2701242ocsfrq','lastChild','filter','splice','_replaceNode','match','from','length','_markUnstableElements','afterend','forEach','childNodes','nodeType','push','_generateUid','_isExistingContentComment','_getNodeDataId','_findReferenceNode','markUnstableElementsDepth','includes','data-wrapped-id','_findPrevElementWithDataId','true','_insertNodes','map','36066RRjTrl','_findFallbackReferenceNode','920LBYZhs','_getUid','new-element','976250gUpFOp','_isDelNode','_markLastTagElementUnstable','1SVYRnJ','cutAfterLastChange','data-id'];_0x5445=function(){return _0x4c3999;};return _0x5445();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2416ce(){[_0x39b1e7(0xd0)];[_0x39b1e7(0xe9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x39b1e7(0xee)]=new Set();constructor(_0x4c7867){const _0x22be46=_0x39b1e7;super(),this[_0x22be46(0xd0)]=_0x4c7867||_0x4a43c2;}[_0x39b1e7(0xbc)](_0x53421c,_0x51293f,_0x4be1c0){const _0x5aaf22=_0x39b1e7,_0x118987=_0x6e2e96(_0x53421c);if(0x0===_0x51293f[_0x5aaf22(0xcd)][_0x5aaf22(0xc9)]){const _0xad3bd7=[];return _0xddd85(_0x5aaf22(0xe5),_0x5aaf22(0xdf),_0x118987)[_0x5aaf22(0xcc)](_0x1c21d1=>{const _0x296953=_0x5aaf22,_0x53bdc0=this[_0x296953(0xd0)]();_0x987284(_0x1c21d1,_0x296953(0xe5),_0x53bdc0),_0xad3bd7[_0x296953(0xcf)](_0x53bdc0);}),this[_0x5aaf22(0xf0)](_0x118987),{'parsedContent':_0x118987,'newNodeIds':_0xad3bd7,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xb7)]&&this[_0x5aaf22(0xe2)](_0x118987),this[_0x5aaf22(0xe9)][_0x5aaf22(0xb0)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xbe)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]=null,this[_0x5aaf22(0xee)]=new Set(_0xddd85(_0x5aaf22(0xe5),null,_0x51293f)[_0x5aaf22(0xda)](_0x3edf93=>_0x5dfcfc(_0x3edf93,_0x5aaf22(0xe5)))[_0x5aaf22(0xc4)](_0x2c59ad=>!!_0x2c59ad));let _0x534cf8=-0x1,_0x5ac2a3=!0x1;const _0x5ef03e=_0x118987[_0x5aaf22(0xcd)],_0x13bc78=Array[_0x5aaf22(0xc8)](_0x5ef03e)[_0x5aaf22(0xc4)](_0x538ebb=>!(0x3===_0x538ebb[_0x5aaf22(0xce)]&&''===_0x528982(_0x538ebb)[_0x5aaf22(0xb9)]())),_0x4eeeb1=_0x13bc78[_0x5aaf22(0xc9)];for(let _0x4fe309=0x0;_0x4fe309<_0x4eeeb1;_0x4fe309++){const _0x4af4f7=_0x13bc78[_0x4fe309],_0x1fd670=_0x13bc78[_0x4fe309+0x1];if(this[_0x5aaf22(0xb1)](_0x4af4f7)){if(-0x1===_0x534cf8&&(_0x534cf8=_0x4fe309),this[_0x5aaf22(0xeb)](_0x4af4f7),!this[_0x5aaf22(0xb1)](_0x1fd670)){const [_0x62e911,_0x4afca2]=this[_0x5aaf22(0xd3)](_0x4af4f7,_0x5ac2a3,_0x51293f);if(_0x62e911){const _0x15227c=Array[_0x5aaf22(0xc8)](_0x13bc78)[_0x5aaf22(0xab)](_0x534cf8,_0x4fe309+0x1);this[_0x5aaf22(0xd9)](_0x62e911,_0x15227c,_0x4afca2),_0x534cf8=-0x1;}}}else{if(this[_0x5aaf22(0xd1)](_0x4af4f7))_0x5ac2a3=!0x0;else{if(this[_0x5aaf22(0xbf)](_0x4af4f7)){const _0x1efbf6=_0x5dfcfc(_0x4af4f7,_0x5aaf22(0xe5));if(_0x1efbf6&&this[_0x5aaf22(0xee)][_0x5aaf22(0xef)](_0x1efbf6)){const _0x124a4a=_0x3a5e12(_0x5aaf22(0xe5),_0x1efbf6,_0x51293f);this[_0x5aaf22(0xc6)](_0x124a4a,_0x4af4f7);}if(this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xd5)](_0x1efbf6)){const _0x1bee3e=this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xba)](_0x1efbf6);this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xc5)](_0x1bee3e,0x1);}}else{if(this[_0x5aaf22(0xe1)](_0x4af4f7)){const _0x57484f=_0x5dfcfc(_0x4af4f7,_0x5aaf22(0xe5));this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)][_0x5aaf22(0xd5)](_0x57484f)||this[_0x5aaf22(0xb8)](_0x4af4f7);}}}}}for(const _0x1c66fe of this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]){const _0x266ab5=_0x3a5e12(_0x5aaf22(0xe5),_0x1c66fe,_0x51293f);if(_0x266ab5){if(_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xc1)]){this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]=_0x1c66fe;const _0x16d5bb=_0x4be1c0[_0x5aaf22(0xc1)][_0x5aaf22(0xaf)](!0x0);_0x987284(_0x16d5bb,_0x5aaf22(0xe5),_0x1c66fe),_0x987284(_0x16d5bb,_0x5aaf22(0xb2),_0x5aaf22(0xd8)),_0x1bafcb(_0x266ab5,_0x16d5bb);}else _0x3de19b(_0x266ab5);}}if(_0xddd85(_0x5aaf22(0xd6),null,_0x51293f)[_0x5aaf22(0xcc)](_0x2a6ba2=>{const _0x31d2bb=_0x5aaf22,_0x54d6b6=_0x5dfcfc(_0x2a6ba2,_0x31d2bb(0xd6)),_0x196cf9=_0x3a5e12(_0x31d2bb(0xe5),_0x54d6b6,_0x51293f);_0x196cf9&&_0x8ac3c9(_0x196cf9,_0x2a6ba2);}),_0xddd85(_0x5aaf22(0xe5),_0x5aaf22(0xdf),_0x51293f)[_0x5aaf22(0xcc)](_0xa26066=>{const _0x73c644=_0x5aaf22,_0x31c738=this[_0x73c644(0xde)](_0xa26066);_0x987284(_0xa26066,_0x73c644(0xe5),_0x31c738),this[_0x73c644(0xe9)][_0x73c644(0xb0)][_0x73c644(0xcf)](_0x31c738);}),this[_0x5aaf22(0xf0)](_0x51293f),_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xb7)]&&this[_0x5aaf22(0xca)](_0x51293f,_0x4be1c0[_0x5aaf22(0xd4)]||0x0),_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xe4)]&&this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]){let _0x5ba65b=_0x3a5e12(_0x5aaf22(0xe5),this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)],_0x51293f);for(;_0x5ba65b;)_0x2395c6(_0x5ba65b),_0x5ba65b=_0x5ba65b[_0x5aaf22(0xc0)];}return{'parsedContent':_0x51293f,'newNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xb0)],'modifiedNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)],'removedNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]};}[_0x39b1e7(0xd9)](_0x1f8c47,_0x404c9f,_0xc8b640){const _0x364244=_0x39b1e7;for(const _0x2dc093 of _0x404c9f){const _0x27edb5=this[_0x364244(0xde)](_0x2dc093);_0x987284(_0x2dc093,_0x364244(0xe5),_0x27edb5),this[_0x364244(0xe9)][_0x364244(0xb0)][_0x364244(0xcf)](_0x27edb5),this[_0x364244(0xe9)][_0x364244(0xb5)]=_0x27edb5;}const _0x4a3095=_0x364244(0xbb)===_0xc8b640||_0x364244(0xcb)===_0xc8b640?_0x404c9f[_0x364244(0xe8)]():_0x404c9f;for(const _0x5721f7 of _0x4a3095)_0x444c7d(_0x1f8c47,_0x5721f7,_0xc8b640);}[_0x39b1e7(0xc6)](_0xf6fe51,_0x1b8b29){const _0x22abde=_0x39b1e7;if(!_0xf6fe51)return;if(_0x508257(_0xf6fe51,_0x1b8b29))return;const _0x37b10c=this[_0x22abde(0xde)](_0xf6fe51);_0x987284(_0x1b8b29,_0x22abde(0xe5),_0x37b10c),this[_0x22abde(0xe9)][_0x22abde(0xea)][_0x22abde(0xcf)](_0x37b10c),this[_0x22abde(0xe9)][_0x22abde(0xb5)]=_0x37b10c,_0x1bafcb(_0xf6fe51,_0x1b8b29[_0x22abde(0xaf)](!0x0));}[_0x39b1e7(0xd3)](_0x2345a8,_0x2210a1,_0x13e79c){const _0x4ea093=_0x39b1e7,_0x347822=this[_0x4ea093(0xd7)](_0x2345a8,!0x1);if(_0x347822){const _0x8e3c87=this[_0x4ea093(0xd2)](_0x347822),_0x1416aa=_0x3a5e12(_0x4ea093(0xe5),_0x8e3c87,_0x13e79c);if(_0x1416aa)return[_0x1416aa,_0x4ea093(0xcb)];this[_0x4ea093(0xe9)][_0x4ea093(0xbe)][_0x4ea093(0xcf)](_0x8e3c87);}const _0x18a711=this[_0x4ea093(0xb4)](_0x2345a8,!0x1);if(_0x18a711){const _0x4a348f=this[_0x4ea093(0xd2)](_0x18a711),_0x48faed=_0x3a5e12(_0x4ea093(0xe5),_0x4a348f,_0x13e79c);if(_0x48faed)return[_0x48faed,_0x4ea093(0xb3)];this[_0x4ea093(0xe9)][_0x4ea093(0xbe)][_0x4ea093(0xcf)](_0x4a348f);}return _0x2210a1?_0x2345a8[_0x4ea093(0xec)]?this[_0x4ea093(0xdc)](_0x2345a8,_0x13e79c):[_0x13e79c[_0x4ea093(0xcd)][_0x13e79c[_0x4ea093(0xcd)][_0x4ea093(0xc9)]-0x1],_0x4ea093(0xcb)]:[_0x13e79c[_0x4ea093(0xcd)][0x0],_0x4ea093(0xb3)];}[_0x39b1e7(0xdc)](_0xd2f6a9,_0x254d66){const _0x3a1157=_0x39b1e7,_0x3e2bf3=[],_0xad6265=this[_0x3a1157(0xd7)](_0xd2f6a9,!0x0);if(_0xad6265){const _0x47622d=this[_0x3a1157(0xd2)](_0xad6265),_0x14eccc=_0x3a5e12(_0x3a1157(0xe5),_0x47622d,_0x254d66);_0x14eccc&&_0x3e2bf3[_0x3a1157(0xcf)]([_0x14eccc,_0x3a1157(0xcb)]);}const _0x5e5a8d=this[_0x3a1157(0xb4)](_0xd2f6a9,!0x0);if(_0x5e5a8d){const _0x3a3357=this[_0x3a1157(0xd2)](_0x5e5a8d),_0x4801e7=_0x3a5e12(_0x3a1157(0xe5),_0x3a3357,_0x254d66);_0x4801e7&&_0x3e2bf3[_0x3a1157(0xcf)]([_0x4801e7,_0x3a1157(0xb3)]);}if(_0x3e2bf3[_0x3a1157(0xc9)]>0x1)return _0x2e43cd(_0x3e2bf3[0x0][0x0])<=_0x2e43cd(_0x3e2bf3[0x1][0x0])?_0x3e2bf3[0x0]:_0x3e2bf3[0x1];return 0x1===_0x3e2bf3[_0x3a1157(0xc9)]?_0x3e2bf3[0x0]:[_0x254d66[_0x3a1157(0xc3)],_0x3a1157(0xcb)];}[_0x39b1e7(0xb4)](_0x2f52b9,_0x327528){const _0x3342f3=_0x39b1e7;let _0x4df068=_0x2f52b9[_0x3342f3(0xec)],_0x235985=null,_0x3e4c06=!0x1;for(;_0x4df068;){if(_0x389d70(_0x4df068)){if(this[_0x3342f3(0xe1)](_0x4df068)&&(_0x235985=_0x4df068),this[_0x3342f3(0xd1)](_0x4df068)&&_0x327528&&!_0x3e4c06){_0x3e4c06=!0x0,_0x4df068=_0x4df068[_0x3342f3(0xec)];continue;}break;}const _0x44fd59=_0x5dfcfc(_0x4df068,_0x3342f3(0xe5));if(_0x44fd59&&_0x3342f3(0xdf)!==_0x44fd59&&this[_0x3342f3(0xee)][_0x3342f3(0xef)](_0x44fd59)){_0x235985=_0x4df068;break;}_0x4df068=_0x4df068[_0x3342f3(0xec)];}return _0x235985;}[_0x39b1e7(0xd7)](_0x7c45a0,_0x8b7936){const _0x4bc59c=_0x39b1e7;let _0x392921=_0x7c45a0[_0x4bc59c(0xed)],_0x446ba4=null,_0x1e67a2=!0x1;for(;_0x392921;){if(_0x389d70(_0x392921)){if(this[_0x4bc59c(0xe1)](_0x392921)&&(_0x446ba4=_0x392921),this[_0x4bc59c(0xd1)](_0x392921)&&_0x8b7936&&!_0x1e67a2){_0x1e67a2=!0x0,_0x392921=_0x392921[_0x4bc59c(0xed)];continue;}break;}const _0x37d2e6=_0x5dfcfc(_0x392921,_0x4bc59c(0xe5));if(_0x37d2e6&&_0x4bc59c(0xdf)!==_0x37d2e6&&this[_0x4bc59c(0xee)][_0x4bc59c(0xef)](_0x37d2e6)){_0x446ba4=_0x392921;break;}_0x392921=_0x392921[_0x4bc59c(0xed)];}return _0x446ba4;}[_0x39b1e7(0xeb)](_0x320a0a){const _0x517aed=_0x39b1e7;_0x21b095(_0x320a0a)&&_0xddd85(_0x517aed(0xe5),null,_0x320a0a)[_0x517aed(0xcc)](_0x54491e=>{const _0x4c4a82=_0x517aed;if(this[_0x4c4a82(0xbf)](_0x54491e)&&!this[_0x4c4a82(0xe6)](_0x54491e)){const _0x41f54f=_0x5dfcfc(_0x54491e,_0x4c4a82(0xe5));_0x987284(_0x54491e,_0x4c4a82(0xd6),_0x41f54f),_0x987284(_0x54491e,_0x4c4a82(0xe5),null);}});}[_0x39b1e7(0xd2)](_0x589019){const _0xdae545=_0x39b1e7;if(!_0x589019)return null;if(_0x21b095(_0x589019))return _0x5dfcfc(_0x589019,_0xdae545(0xe5));if(_0x389d70(_0x589019)){const _0x14269d=_0x528982(_0x589019)[_0xdae545(0xc7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x14269d&&_0x14269d[0x1])return _0x14269d[0x1];}return null;}[_0x39b1e7(0xb8)](_0xf58344){const _0x460e62=_0x39b1e7;if(_0x389d70(_0xf58344)){const _0x4e6c2a=_0x528982(_0xf58344)[_0x460e62(0xc7)](/removed[\s*-]data-id="([^"]+)"/);_0x4e6c2a&&_0x4e6c2a[0x1]&&this[_0x460e62(0xe9)][_0x460e62(0xac)][_0x460e62(0xcf)](_0x4e6c2a[0x1]);}}[_0x39b1e7(0xde)](_0x1823d2){const _0x192bbe=_0x39b1e7;return this[_0x192bbe(0xbf)](_0x1823d2)?_0x5dfcfc(_0x1823d2,_0x192bbe(0xe5)):this[_0x192bbe(0xd0)]();}[_0x39b1e7(0xf0)](_0x30f224){const _0xfbf2ad=_0x39b1e7;_0x59a2ef(_0x30f224)[_0xfbf2ad(0xc4)](_0x45071e=>this[_0xfbf2ad(0xe1)](_0x45071e)||this[_0xfbf2ad(0xd1)](_0x45071e))[_0xfbf2ad(0xcc)](_0x46b1ea=>{_0x3de19b(_0x46b1ea);});}[_0x39b1e7(0xe2)](_0x32374c){const _0x54dc23=_0x39b1e7,_0x105fbd=_0x32374c[_0x54dc23(0xcd)],_0x5bac3d=_0x105fbd[_0x105fbd[_0x54dc23(0xc9)]-0x1];_0x5bac3d&&_0x21b095(_0x5bac3d)&&_0x987284(_0x5bac3d,_0x54dc23(0xbd),_0x54dc23(0xd8));}[_0x39b1e7(0xca)](_0x3e52b1,_0x541705){const _0x328cd6=_0x39b1e7,_0x540cde=_0x3a5e12(_0x328cd6(0xbd),_0x328cd6(0xd8),_0x3e52b1);if(!_0x540cde)return;const _0xbf5553=_0x39dc7e(_0x540cde)[_0x328cd6(0xab)](0x0,-0x1),_0x58f906=_0xbf5553[_0x328cd6(0xc9)];let _0xc742f8=_0x540cde;if(_0x58f906>_0x541705){let _0x3baa0f=_0x58f906,_0x5f17a2=null;for(;_0x3baa0f>_0x541705&&_0x3baa0f>=0x0;)_0x3baa0f--,_0x5f17a2=_0xbf5553[_0x3baa0f];_0x5f17a2&&(_0xc742f8=_0x5f17a2,_0x987284(_0x540cde,_0x328cd6(0xbd),null),_0x987284(_0x5f17a2,_0x328cd6(0xbd),_0x328cd6(0xd8)));}else{if(_0x58f906<_0x541705){let _0x1afe53=_0x58f906,_0x342459=_0x540cde;for(;_0x1afe53<_0x541705;){const _0x14dd0a=_0x342459[_0x328cd6(0xcd)][_0x328cd6(0xc4)](_0x17862c=>_0x21b095(_0x17862c));if(0x0===_0x14dd0a[_0x328cd6(0xc9)])break;_0x1afe53++,_0x342459=_0x14dd0a[_0x14dd0a[_0x328cd6(0xc9)]-0x1];}_0x342459&&(_0xc742f8=_0x342459,_0x987284(_0x540cde,_0x328cd6(0xbd),null),_0x987284(_0x342459,_0x328cd6(0xbd),_0x328cd6(0xd8)));}}let _0x1993fb=_0xc742f8;for(;_0x1993fb;){for(;_0x1993fb[_0x328cd6(0xec)];)_0x1993fb=_0x1993fb[_0x328cd6(0xec)],_0x21b095(_0x1993fb)&&_0x987284(_0x1993fb,_0x328cd6(0xbd),_0x328cd6(0xd8));_0x1993fb=_0x1993fb[_0x328cd6(0xc0)];}}[_0x39b1e7(0xb1)](_0x5f223b){const _0x58dd84=_0x39b1e7;return Boolean(_0x58dd84(0xdf)===_0x5dfcfc(_0x5f223b,_0x58dd84(0xe5)));}[_0x39b1e7(0xbf)](_0xef4a0c){const _0x2c12df=_0x39b1e7;return Boolean((_0x5dfcfc(_0xef4a0c,_0x2c12df(0xe5))||'')[_0x2c12df(0xc9)]>0x0&&_0x2c12df(0xdf)!==_0x5dfcfc(_0xef4a0c,_0x2c12df(0xe5)));}[_0x39b1e7(0xe1)](_0x28661e){const _0x52d45b=_0x39b1e7;return!!_0x28661e&&Boolean(_0x389d70(_0x28661e)&&_0x528982(_0x28661e)[_0x52d45b(0xc7)](/removed[\s*-]data-id="[^"]+"/));}[_0x39b1e7(0xe6)](_0x4c749e){const _0x48eba7=_0x39b1e7;let _0x408149=_0x4c749e[_0x48eba7(0xc0)];for(;_0x408149;){if(_0x5dfcfc(_0x408149,_0x48eba7(0xd6)))return!0x0;_0x408149=_0x408149[_0x48eba7(0xc0)];}return!0x1;}[_0x39b1e7(0xd1)](_0x10ee38){const _0x5210e9=_0x39b1e7;return Boolean(_0x389d70(_0x10ee38)&&_0x528982(_0x10ee38)[_0x5210e9(0xc7)](/\s*existing[\s*-](content|document)\s*/g));}}
|