@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0-alpha.7
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 _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);}}}
|
|
23
|
+
const _0x19914e=_0x4f6f;(function(_0x359821,_0x47584e){const _0x22d954=_0x4f6f,_0x170698=_0x359821();while(!![]){try{const _0x172745=parseInt(_0x22d954(0x174))/0x1+-parseInt(_0x22d954(0x157))/0x2+parseInt(_0x22d954(0x15b))/0x3*(-parseInt(_0x22d954(0x13a))/0x4)+-parseInt(_0x22d954(0x169))/0x5*(-parseInt(_0x22d954(0x156))/0x6)+parseInt(_0x22d954(0x18e))/0x7*(-parseInt(_0x22d954(0x189))/0x8)+-parseInt(_0x22d954(0x161))/0x9*(parseInt(_0x22d954(0x190))/0xa)+parseInt(_0x22d954(0x180))/0xb;if(_0x172745===_0x47584e)break;else _0x170698['push'](_0x170698['shift']());}catch(_0x3b3e67){_0x170698['push'](_0x170698['shift']());}}}(_0x3558,0x39784));import{View as _0x15e2fd,SearchTextView as _0x270b06,FormHeaderView as _0x148062,ButtonView as _0x4ae25f}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2716bc,IconCancel as _0x1a099e,IconPlus as _0x5dd12d}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1d08c5}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x40ecb2}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1fa06f}from'./aichathistorylistitemview.js';function _0x3558(){const _0x5dc7bf=['add','indexOf','AI_CHAT_HISTORY_SEARCH_LABEL','queryView','ck-hidden','change:hasItems','ck-reset_all','remove','fieldView','removeHistoryItem','ck-rounded-corners','skeletonView','items','_createListItemViews','ck-ai-notification','splice','emptyView','updateLoadingState','change:isLoading','updateItemTitle','errorMessage','itemsViews','length','22578PygIxp','776584qkOXMi','_refreshSearch','ltr','mainErrorView','9ldOjpU','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','isMainErrorViewVisible','ck-ai-header\x20ck-ai-header_history','value','openChat','762786BZqgAj','_createSkeletonView','isVisible','removeItem','isSearchViewVisible','fire','_createErrorView','updateTitle','610UJBhXQ','hasItems','bind','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','execute','addMany','title','set','render','ck-ai-notification_error__dismiss-button','AI_CHAT_LABEL_NEW_CHAT','257922VxbomE','some','isMaximized','resizeButton','ck-ai-chat-history','_updateViewVisibility','_createSearchView','children','ck-ai-chat__start-conversation','extendTemplate','_createEmptyStateView','isEmptyViewVisible','4590553HoExgp','searchView','AI_CHAT_HISTORY_HEADING','updateItemLoadingState','AI_CHAT_HISTORY_EMPTY_MESSAGE','div','sections','search','change:errorMessage','8mmagRp','ck-ai-notification_error','getItem','bindTemplate','aiHistory','832258eeLaVD','push','30YkXjFn','locale','isLoading','delegate','updateHistoryItemsWithCategories','ck-ai-chat-history__content','setTemplate','clear','183316ftSQCE','element','ck-ai-chat-history__empty-message','sectionsView','ck-ai-chat-history__empty'];_0x3558=function(){return _0x5dc7bf;};return _0x3558();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4553c7}from'../aichathistoryui.js';import{AISkeletonView as _0x4c9ef0,SKELETON_DEFINITIONS as _0xa34fae}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x35e6ac}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26e4c8}from'../../aicore/utils/common-translations.js';function _0x4f6f(_0x10086d,_0x1f3b11){const _0x355858=_0x3558();return _0x4f6f=function(_0x4f6fb4,_0xb6038){_0x4f6fb4=_0x4f6fb4-0x138;let _0x49a9b7=_0x355858[_0x4f6fb4];return _0x49a9b7;},_0x4f6f(_0x10086d,_0x1f3b11);}export class AIChatHistoryView extends _0x15e2fd{[_0x19914e(0x181)];[_0x19914e(0x15a)];[_0x19914e(0x14a)];[_0x19914e(0x14f)];[_0x19914e(0x13d)];[_0x19914e(0x177)];constructor(_0x5d9c6f,_0x12feca){const _0x42e668=_0x19914e;super(_0x5d9c6f),this[_0x42e668(0x170)](_0x42e668(0x16a),!0x1),this[_0x42e668(0x170)](_0x42e668(0x192),!0x0),this[_0x42e668(0x170)](_0x42e668(0x153),''),this[_0x42e668(0x170)](_0x42e668(0x176),!0x1),this[_0x42e668(0x170)](_0x42e668(0x165),!0x1),this[_0x42e668(0x170)](_0x42e668(0x17f),!0x1),this[_0x42e668(0x170)](_0x42e668(0x15d),!0x1);const _0x19c7d2=new _0x148062(_0x5d9c6f,{'label':_0x26e4c8(_0x5d9c6f,_0x42e668(0x182)),'icon':_0x2716bc,'class':_0x42e668(0x15e)});_0x12feca&&(this[_0x42e668(0x177)]=_0x35e6ac(_0x5d9c6f,this),_0x19c7d2[_0x42e668(0x17b)][_0x42e668(0x13f)](this[_0x42e668(0x177)])),this[_0x42e668(0x13d)]=new _0x1d08c5(_0x5d9c6f,[]),this[_0x42e668(0x13d)][_0x42e668(0x193)](..._0x4553c7)['to'](this),this[_0x42e668(0x15a)]=this[_0x42e668(0x167)](),this[_0x42e668(0x14a)]=this[_0x42e668(0x162)](),this[_0x42e668(0x14f)]=this[_0x42e668(0x17e)](),this[_0x42e668(0x181)]=this[_0x42e668(0x17a)](),this[_0x42e668(0x15a)][_0x42e668(0x17d)]({'attributes':{'class':[this[_0x42e668(0x18c)]['if'](_0x42e668(0x15d),_0x42e668(0x143),_0x156ac6=>!_0x156ac6)]}}),this['on'](_0x42e668(0x151),()=>this[_0x42e668(0x179)]()),this['on'](_0x42e668(0x144),()=>this[_0x42e668(0x179)]()),this['on'](_0x42e668(0x188),()=>this[_0x42e668(0x179)]()),this[_0x42e668(0x138)]({'tag':_0x42e668(0x185),'attributes':{'class':['ck',_0x42e668(0x145),_0x42e668(0x178),_0x42e668(0x149)],'dir':_0x42e668(0x159)},'children':[_0x19c7d2,{'tag':_0x42e668(0x185),'attributes':{'class':[_0x42e668(0x195)]},'children':[this[_0x42e668(0x14a)],this[_0x42e668(0x15a)],this[_0x42e668(0x14f)],this[_0x42e668(0x181)]]}]});}[_0x19914e(0x179)](){const _0x506d47=_0x19914e;this[_0x506d47(0x165)]=!this[_0x506d47(0x192)]&&this[_0x506d47(0x16a)],this[_0x506d47(0x17f)]=!this[_0x506d47(0x192)]&&!this[_0x506d47(0x16a)]&&!this[_0x506d47(0x153)],this[_0x506d47(0x15d)]=!this[_0x506d47(0x165)]&&!!this[_0x506d47(0x153)];}[_0x19914e(0x17a)](){const _0x3021fb=_0x19914e,_0x46b83f=new _0x270b06(this[_0x3021fb(0x191)],{'filteredView':this[_0x3021fb(0x13d)],'queryView':{'label':_0x26e4c8(this[_0x3021fb(0x191)],_0x3021fb(0x141))},'infoView':{'text':{'notFound':{'primary':_0x1e0a30=>_0x26e4c8(this[_0x3021fb(0x191)],_0x3021fb(0x16c),_0x1e0a30),'secondary':_0x26e4c8(this[_0x3021fb(0x191)],_0x3021fb(0x15c))}}}}),_0x27511c=this[_0x3021fb(0x167)]();return _0x27511c[_0x3021fb(0x17d)]({'attributes':{'class':[this[_0x3021fb(0x18c)]['if'](_0x3021fb(0x153),_0x3021fb(0x143),_0x3f8d9f=>!_0x3f8d9f)]}}),_0x46b83f['on'](_0x3021fb(0x171),()=>{const _0x292d86=_0x3021fb;_0x46b83f[_0x292d86(0x17b)][_0x292d86(0x13f)](_0x27511c,0x1);}),_0x46b83f[_0x3021fb(0x17d)]({'attributes':{'class':[this[_0x3021fb(0x18c)]['if'](_0x3021fb(0x165),_0x3021fb(0x143),_0x554d0e=>!_0x554d0e)]}}),_0x46b83f;}[_0x19914e(0x162)](){const _0x500d9a=_0x19914e,_0x4e8861=new _0x4c9ef0(this[_0x500d9a(0x191)],_0xa34fae[_0x500d9a(0x18d)]);return _0x4e8861[_0x500d9a(0x17d)]({'attributes':{'class':[this[_0x500d9a(0x18c)]['if'](_0x500d9a(0x192),_0x500d9a(0x143),_0x1d61cd=>!_0x1d61cd)]}}),_0x4e8861;}[_0x19914e(0x167)](){const _0x2e2815=_0x19914e,_0x4cc718=new _0x15e2fd(this[_0x2e2815(0x191)]),_0x225a1b=new _0x4ae25f(this[_0x2e2815(0x191)]);_0x225a1b[_0x2e2815(0x170)]({'withText':!0x1,'icon':_0x1a099e,'class':_0x2e2815(0x172)}),_0x225a1b[_0x2e2815(0x16b)](_0x2e2815(0x163))['to'](this,_0x2e2815(0x16a),_0x48a4a8=>!!_0x48a4a8),_0x225a1b['on'](_0x2e2815(0x16d),()=>{const _0x285926=_0x2e2815;this[_0x285926(0x153)]='';});const _0xfdaebd=this[_0x2e2815(0x18c)];return _0x4cc718[_0x2e2815(0x138)]({'tag':_0x2e2815(0x185),'attributes':{'class':['ck',_0x2e2815(0x14d),_0x2e2815(0x18a)]},'children':[{'tag':'p','children':[{'text':_0xfdaebd['to'](_0x2e2815(0x153))}]},_0x225a1b]}),_0x4cc718;}[_0x19914e(0x17e)](){const _0x1ef4c9=_0x19914e,_0x2363bb=new _0x4ae25f(this[_0x1ef4c9(0x191)]);_0x2363bb[_0x1ef4c9(0x170)]({'label':_0x26e4c8(this[_0x1ef4c9(0x191)],_0x1ef4c9(0x173)),'withText':!0x0,'icon':_0x5dd12d,'class':_0x1ef4c9(0x17c)}),_0x2363bb['on'](_0x1ef4c9(0x16d),()=>{const _0x3b3fca=_0x1ef4c9;this[_0x3b3fca(0x166)](_0x3b3fca(0x160));});const _0x4b340e=new _0x15e2fd(this[_0x1ef4c9(0x191)]);return _0x4b340e[_0x1ef4c9(0x138)]({'tag':_0x1ef4c9(0x185),'attributes':{'class':[_0x1ef4c9(0x13e),this[_0x1ef4c9(0x18c)]['if'](_0x1ef4c9(0x17f),_0x1ef4c9(0x143),_0x51a1de=>!_0x51a1de)]},'children':[{'tag':'p','attributes':{'class':[_0x1ef4c9(0x13c)]},'children':[_0x26e4c8(this[_0x1ef4c9(0x191)],_0x1ef4c9(0x184))]},_0x2363bb]}),_0x4b340e;}[_0x19914e(0x14c)](_0x2fb459,_0xb2798e){const _0x202e93=_0x19914e,_0x274c62=[];for(const _0x55c099 of _0x2fb459){const _0x14457b=new _0x1fa06f(_0xb2798e,_0x55c099);_0x14457b[_0x202e93(0x193)](..._0x4553c7)['to'](this),_0x274c62[_0x202e93(0x18f)](_0x14457b);}return _0x274c62;}[_0x19914e(0x194)](_0x1d1ed4){const _0x58d448=_0x19914e,_0x1e02ff=this[_0x58d448(0x191)]||'en',_0x3a7b28=[];for(const _0x122001 of _0x1d1ed4){const _0x478181=this[_0x58d448(0x14c)](_0x122001[_0x58d448(0x14b)],_0x1e02ff);_0x3a7b28[_0x58d448(0x18f)](new _0x40ecb2(_0x1e02ff,{'title':_0x122001[_0x58d448(0x16f)],'items':_0x478181}));}this[_0x58d448(0x13d)][_0x58d448(0x186)]=_0x3a7b28,this[_0x58d448(0x13d)][_0x58d448(0x14b)][_0x58d448(0x139)](),this[_0x58d448(0x13d)][_0x58d448(0x14b)][_0x58d448(0x16e)](_0x3a7b28),this[_0x58d448(0x16a)]=_0x1d1ed4[_0x58d448(0x175)](_0x15210d=>_0x15210d[_0x58d448(0x14b)][_0x58d448(0x155)]>0x0),this[_0x58d448(0x158)]();}[_0x19914e(0x148)](_0x3b878d){const _0xafaf5b=_0x19914e;for(const _0x1c0d59 of this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)]){const _0x209ee1=_0x1c0d59[_0xafaf5b(0x18b)](_0x3b878d);if(_0x209ee1){if(_0x1c0d59[_0xafaf5b(0x164)](_0x209ee1),0x0===_0x1c0d59[_0xafaf5b(0x154)][_0xafaf5b(0x155)]){const _0x4b0f45=this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)][_0xafaf5b(0x140)](_0x1c0d59);-0x1!==_0x4b0f45&&(this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)][_0xafaf5b(0x14e)](_0x4b0f45,0x1),this[_0xafaf5b(0x13d)][_0xafaf5b(0x14b)][_0xafaf5b(0x146)](_0x1c0d59));}this[_0xafaf5b(0x16a)]=this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)][_0xafaf5b(0x155)]>0x0,this[_0xafaf5b(0x158)]();break;}}}[_0x19914e(0x152)](_0x24dcd4,_0x2429fa){const _0x2ffe25=_0x19914e;for(const _0x5253d3 of this[_0x2ffe25(0x13d)][_0x2ffe25(0x186)]){const _0x2b2ffe=_0x5253d3[_0x2ffe25(0x18b)](_0x24dcd4);if(_0x2b2ffe){_0x2b2ffe[_0x2ffe25(0x168)](_0x2429fa);break;}}}[_0x19914e(0x183)](_0x4d79c4,_0x412793,_0x4c44b5){const _0xaed7bc=_0x19914e;for(const _0x43e772 of this[_0xaed7bc(0x13d)][_0xaed7bc(0x186)]){const _0x47fcba=_0x43e772[_0xaed7bc(0x18b)](_0x4d79c4);if(_0x47fcba){_0x47fcba[_0xaed7bc(0x150)](_0x412793,_0x4c44b5);break;}}}[_0x19914e(0x158)](){const _0x50ccc9=_0x19914e;if(this[_0x50ccc9(0x16a)]){const _0x2444ef=this[_0x50ccc9(0x181)][_0x50ccc9(0x142)][_0x50ccc9(0x147)]?.[_0x50ccc9(0x13b)]?.[_0x50ccc9(0x15f)]||'';this[_0x50ccc9(0x181)][_0x50ccc9(0x187)](_0x2444ef);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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});}}
|
|
23
|
+
const _0x52c8ee=_0x4cae;(function(_0x78a22,_0x1556d1){const _0x458af4=_0x4cae,_0x468cb2=_0x78a22();while(!![]){try{const _0x23916c=parseInt(_0x458af4(0x1f8))/0x1+-parseInt(_0x458af4(0x1db))/0x2*(parseInt(_0x458af4(0x1d3))/0x3)+-parseInt(_0x458af4(0x1e7))/0x4*(-parseInt(_0x458af4(0x1f4))/0x5)+parseInt(_0x458af4(0x1b6))/0x6+-parseInt(_0x458af4(0x1bb))/0x7+-parseInt(_0x458af4(0x1f5))/0x8*(parseInt(_0x458af4(0x204))/0x9)+parseInt(_0x458af4(0x230))/0xa;if(_0x23916c===_0x1556d1)break;else _0x468cb2['push'](_0x468cb2['shift']());}catch(_0x39ae3e){_0x468cb2['push'](_0x468cb2['shift']());}}}(_0x2cd9,0xbd3bb));function _0x4cae(_0x3cc635,_0x3a2b5a){const _0x2cd9d0=_0x2cd9();return _0x4cae=function(_0x4caedf,_0x3b1a0c){_0x4caedf=_0x4caedf-0x1af;let _0x24ff88=_0x2cd9d0[_0x4caedf];return _0x24ff88;},_0x4cae(_0x3cc635,_0x3a2b5a);}import{createParser as _0x126c20}from'eventsource-parser';import{ContextPlugin as _0x2dd849}from'ckeditor5/src/core.js';import{CKEditorError as _0x53bb22}from'ckeditor5/src/utils.js';function _0x2cd9(){const _0x54a2b5=['/documents','length','read','callCustomReview','status','/conversations','append','fetchConversations','true','executeAction','requires','/reviews/custom/calls','application/json','uploadFile','deleteConversation','4065393KtKpkA','value','_apiUrl','/actions/custom/calls','deleteDocument','/calls','CloudServices','TRANSLATE','2XnlrAH','attributes','decode','ai.serviceUrl','file','make-shorter','plugins','isOfficialPlugin','PUT','queryAssistant','feed','updateConversation','4gFuRGG','make-tone-casual','getReader','_handleError','uploadUrl','upsertAIReviewRating','Content-Type','AIConnector','/reviews/system/','ai-missing-token','ai-request-aborted','GET','100','2122505ZDSzHQ','8DqAeBe','limit','https://ai.cke-cs.com/v1','218934OrpKFp','executeCustomAction','toString','parse','/documents/','isPremiumPlugin','init','_sendApiRequest','/calls/','/reviews/custom/calls/','MAKE_LONGER','/actions/system/','4525623WNrQmf','traceId','keys','deleteWebResource','POST','data','fetchConversation','_token','MAKE_SHORTER','fetchConversationMessages','message','text','code','deleteFile','reset','improve-writing','/web-resources/','/actions/custom/calls/','catch','body','releaseLock','callSystemReview','MAKE_TONE_FORMAL','abortController','/ratings','get','push','modificationId','AbortError','DELETE','upsertCustomAIActionRating','/conversations/','MAKE_TONE_CASUAL','json','/files','fetchDocument','IMPROVE_WRITING','FIX_GRAMMAR','ai-request-failed','context','_getStreamReader','request','continue','stringify','28853030SVavSE','fix-grammar','CONTINUE','/files/','/messages/','/conversations?','pluginName','totalCount','signal','excludeEmpty','/messages','items','/models/1','PATCH','search','make-longer','statusText','then','getModels','Bearer\x20','translate','token','uploadDocument','1392954RkNJNd','_decoder','upsertAIChatRating','startConversation','config','7894740YYSKiR','define','upsertAIActionRating','name','make-tone-formal','upsertCustomAIReviewRating','positiveCount','group','/web-resources'];_0x2cd9=function(){return _0x54a2b5;};return _0x2cd9();}export var AIActionsNames;!function(_0x416472){const _0x4b74cd=_0x4cae;_0x416472[_0x4b74cd(0x232)]=_0x4b74cd(0x22e),_0x416472[_0x4b74cd(0x229)]=_0x4b74cd(0x231),_0x416472[_0x4b74cd(0x228)]=_0x4b74cd(0x213),_0x416472[_0x4b74cd(0x202)]=_0x4b74cd(0x23f),_0x416472[_0x4b74cd(0x20c)]=_0x4b74cd(0x1e0),_0x416472[_0x4b74cd(0x224)]=_0x4b74cd(0x1e8),_0x416472[_0x4b74cd(0x21a)]=_0x4b74cd(0x1bf),_0x416472[_0x4b74cd(0x1da)]=_0x4b74cd(0x1b3);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2dd849{[_0x52c8ee(0x1d5)];[_0x52c8ee(0x20b)];[_0x52c8ee(0x1b7)];static get[_0x52c8ee(0x1ce)](){const _0x366104=_0x52c8ee;return[_0x366104(0x1d9)];}static get[_0x52c8ee(0x236)](){const _0x5a39cd=_0x52c8ee;return _0x5a39cd(0x1ee);}static get[_0x52c8ee(0x1e2)](){return!0x0;}static get[_0x52c8ee(0x1fd)](){return!0x0;}constructor(_0x51d92a){const _0x52305e=_0x52c8ee;super(_0x51d92a),this[_0x52305e(0x22b)][_0x52305e(0x1ba)][_0x52305e(0x1bc)](_0x52305e(0x1de),_0x52305e(0x1f7)),this[_0x52305e(0x1d5)]=this[_0x52305e(0x22b)][_0x52305e(0x1ba)][_0x52305e(0x21d)](_0x52305e(0x1de)),this[_0x52305e(0x20b)]=null,this[_0x52305e(0x1b7)]=new TextDecoder();}[_0x52c8ee(0x1fe)](){const _0x1a5621=_0x52c8ee,_0x127aa1=this[_0x1a5621(0x22b)][_0x1a5621(0x1e1)][_0x1a5621(0x21d)](_0x1a5621(0x1d9));if(!_0x127aa1[_0x1a5621(0x1b4)])throw new _0x53bb22(_0x1a5621(0x1f0),this);this[_0x1a5621(0x20b)]=_0x127aa1[_0x1a5621(0x1b4)];}[_0x52c8ee(0x1b9)](_0x13fd12,_0x22542d){const _0x42af0d=_0x52c8ee,_0x4c4021=this[_0x42af0d(0x1ff)](_0x42af0d(0x1c9),_0x42af0d(0x208),{'id':_0x13fd12,'group':_0x22542d});return{'getConversation':async()=>(await _0x4c4021[_0x42af0d(0x22d)])[_0x42af0d(0x225)](),'abortController':_0x4c4021[_0x42af0d(0x21b)]};}[_0x52c8ee(0x1e4)]({message:_0x207973,conversationId:_0x587e43,parts:_0x1a0f51,capabilities:_0x99ace,model:_0x1a1f20,quickActionData:_0x5e6869}){const _0x289903=_0x52c8ee,_0x286448={..._0x5e6869&&{'quickActionData':_0x5e6869}},_0x346a1e={'prompt':_0x207973,'content':_0x1a0f51,'model':_0x1a1f20,..._0x99ace&&{'capabilities':_0x99ace},...Object[_0x289903(0x206)](_0x286448)[_0x289903(0x1c5)]>0x0&&{'attributes':_0x286448}},_0x5a3cd7=this[_0x289903(0x1ff)](_0x289903(0x223)+_0x587e43+_0x289903(0x23a),_0x289903(0x208),_0x346a1e);return{'getStream':async()=>{const _0x50aa25=_0x289903,_0x28470c=(await _0x5a3cd7[_0x50aa25(0x22d)])[_0x50aa25(0x217)];return this[_0x50aa25(0x22c)](_0x28470c);},'abortController':_0x5a3cd7[_0x289903(0x21b)]};}[_0x52c8ee(0x1f9)]({content:_0x2c12a2,message:_0x1f9039,model:_0x2de162,outputFormat:_0xc20f9}){const _0x4a4d83=_0x52c8ee,_0x147b68={'content':[{'type':_0x4a4d83(0x20f),'content':_0x2c12a2}],'prompt':_0x1f9039,'model':_0x2de162,'outputFormat':_0xc20f9},_0x17d774=this[_0x4a4d83(0x1ff)](_0x4a4d83(0x1d6),_0x4a4d83(0x208),_0x147b68);return{'getStream':async()=>{const _0x34fdff=_0x4a4d83,_0x22d797=(await _0x17d774[_0x34fdff(0x22d)])[_0x34fdff(0x217)];return this[_0x34fdff(0x22c)](_0x22d797);},'abortController':_0x17d774[_0x4a4d83(0x21b)]};}[_0x52c8ee(0x1cd)]({actionName:_0x35eaf1,content:_0x248227,args:_0x1144b2}){const _0x275bd4=_0x52c8ee,_0x41f4cb={'content':[{'type':_0x275bd4(0x20f),'content':_0x248227}],'args':_0x1144b2},_0x400bfe=this[_0x275bd4(0x1ff)](_0x275bd4(0x203)+_0x35eaf1+_0x275bd4(0x1d8),_0x275bd4(0x208),_0x41f4cb);return{'getStream':async()=>{const _0x30e84a=_0x275bd4,_0x1883d7=(await _0x400bfe[_0x30e84a(0x22d)])[_0x30e84a(0x217)];return this[_0x30e84a(0x22c)](_0x1883d7);},'abortController':_0x400bfe[_0x275bd4(0x21b)]};}[_0x52c8ee(0x1d1)](_0x2edd12,_0x506cb4,_0x48e0c4){const _0x259d41=_0x52c8ee,_0x1eb583=new FormData();_0x1eb583[_0x259d41(0x1ca)](_0x259d41(0x1df),_0x506cb4,_0x506cb4[_0x259d41(0x1be)]),_0x48e0c4&&_0x1eb583[_0x259d41(0x1ca)](_0x259d41(0x1dc),JSON[_0x259d41(0x22f)](_0x48e0c4));const _0x3ac0f4=this[_0x259d41(0x1ff)](_0x259d41(0x223)+_0x2edd12+_0x259d41(0x226),_0x259d41(0x208),_0x1eb583);return{'getId':async()=>(await _0x3ac0f4[_0x259d41(0x22d)])[_0x259d41(0x225)](),'abortController':_0x3ac0f4[_0x259d41(0x21b)]};}[_0x52c8ee(0x227)](_0x1fa5eb,_0x59d4d4){const _0x2a26dc=_0x52c8ee,_0x40d79f=this[_0x2a26dc(0x1ff)](_0x2a26dc(0x223)+_0x1fa5eb+_0x2a26dc(0x1fc)+_0x59d4d4,_0x2a26dc(0x1f2));return{'getDocument':async()=>(await _0x40d79f[_0x2a26dc(0x22d)])[_0x2a26dc(0x225)](),'abortController':_0x40d79f[_0x2a26dc(0x21b)]};}[_0x52c8ee(0x1b5)](_0xf0a8ba,_0x28caed,_0x2157cc){const _0x21f750=_0x52c8ee,_0x22302b={'content':_0x28caed};_0x2157cc&&(_0x22302b[_0x21f750(0x1dc)]=_0x2157cc);const _0x1cb57c=this[_0x21f750(0x1ff)](_0x21f750(0x223)+_0xf0a8ba+_0x21f750(0x1c4),_0x21f750(0x208),_0x22302b);return{'getId':async()=>(await _0x1cb57c[_0x21f750(0x22d)])[_0x21f750(0x225)](),'abortController':_0x1cb57c[_0x21f750(0x21b)]};}[_0x52c8ee(0x1cb)](_0x449922,_0x1fa54a){const _0x3d06fd=_0x52c8ee,_0x1a5913=new URLSearchParams();_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x239),_0x3d06fd(0x1cc)),_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x1f6),_0x3d06fd(0x1f3)),_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x1c2),_0x449922),_0x1fa54a&&_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x23e),_0x1fa54a);const _0x2e7c54=this[_0x3d06fd(0x1ff)](_0x3d06fd(0x235)+_0x1a5913[_0x3d06fd(0x1fa)](),_0x3d06fd(0x1f2));return{'getConversations':async()=>{const _0x48d402=_0x3d06fd,_0x5cdc1e=await _0x2e7c54[_0x48d402(0x22d)];return(await _0x5cdc1e[_0x48d402(0x225)]())[_0x48d402(0x23b)];},'abortController':_0x2e7c54[_0x3d06fd(0x21b)]};}[_0x52c8ee(0x1d2)](_0x13343d){const _0x5a11fe=_0x52c8ee,_0x1ecda8=this[_0x5a11fe(0x1ff)](_0x5a11fe(0x223)+_0x13343d,_0x5a11fe(0x221));return{'execute':async()=>{const _0x5e58d5=_0x5a11fe;await _0x1ecda8[_0x5e58d5(0x22d)];},'abortController':_0x1ecda8[_0x5a11fe(0x21b)]};}[_0x52c8ee(0x1e6)](_0x29dbd0,_0x20d2e9){const _0x87c1c3=_0x52c8ee,_0x1316de=this[_0x87c1c3(0x1ff)](_0x87c1c3(0x223)+_0x29dbd0,_0x87c1c3(0x23d),_0x20d2e9);return{'getResult':async()=>(await _0x1316de[_0x87c1c3(0x22d)],_0x20d2e9),'abortController':_0x1316de[_0x87c1c3(0x21b)]};}[_0x52c8ee(0x20a)](_0x25599e){const _0x369246=_0x52c8ee,_0x354a0b=this[_0x369246(0x1ff)](_0x369246(0x223)+_0x25599e,_0x369246(0x1f2));return{'getConversation':async()=>(await _0x354a0b[_0x369246(0x22d)])[_0x369246(0x225)](),'abortController':_0x354a0b[_0x369246(0x21b)]};}[_0x52c8ee(0x20d)](_0x7e7374){const _0x1be33f=_0x52c8ee,_0x3bb3f4=this[_0x1be33f(0x1ff)](_0x1be33f(0x223)+_0x7e7374+_0x1be33f(0x23a),_0x1be33f(0x1f2));return{'getMessages':async()=>{const _0x23bea4=_0x1be33f,_0x52449a=await _0x3bb3f4[_0x23bea4(0x22d)];return(await _0x52449a[_0x23bea4(0x225)]())[_0x23bea4(0x23b)];},'abortController':_0x3bb3f4[_0x1be33f(0x21b)]};}[_0x52c8ee(0x1eb)](_0x348b0f,_0x1ba43e,_0x400d74){const _0x27f08b=_0x52c8ee,_0x5d844a=this[_0x27f08b(0x1ff)](_0x27f08b(0x223)+_0x348b0f+_0x27f08b(0x1c3),_0x27f08b(0x208),{'url':_0x1ba43e,'attributes':_0x400d74});return{'getId':async()=>(await _0x5d844a[_0x27f08b(0x22d)])[_0x27f08b(0x225)](),'abortController':_0x5d844a[_0x27f08b(0x21b)]};}[_0x52c8ee(0x1b1)](){const _0x50c238=_0x52c8ee,_0x2edf71=this[_0x50c238(0x1ff)](_0x50c238(0x23c),_0x50c238(0x1f2));return{'list':async()=>await(await _0x2edf71[_0x50c238(0x22d)])[_0x50c238(0x225)](),'abortController':_0x2edf71[_0x50c238(0x21b)]};}[_0x52c8ee(0x211)](_0x1ad806,_0x24a213){const _0x245b70=_0x52c8ee,_0x3411c2=this[_0x245b70(0x1ff)](_0x245b70(0x223)+_0x1ad806+_0x245b70(0x233)+_0x24a213,_0x245b70(0x221));return{'execute':async()=>{const _0x57e789=_0x245b70;await _0x3411c2[_0x57e789(0x22d)];},'abortController':_0x3411c2[_0x245b70(0x21b)]};}[_0x52c8ee(0x1d7)](_0x3b796f,_0x8dfcc5){const _0x474e33=_0x52c8ee,_0x3e1131=this[_0x474e33(0x1ff)](_0x474e33(0x223)+_0x3b796f+_0x474e33(0x1fc)+_0x8dfcc5,_0x474e33(0x221));return{'execute':async()=>{const _0x23996b=_0x474e33;await _0x3e1131[_0x23996b(0x22d)];},'abortController':_0x3e1131[_0x474e33(0x21b)]};}[_0x52c8ee(0x207)](_0xaba184,_0x49f01e){const _0x2401ec=_0x52c8ee,_0xe43fd3=this[_0x2401ec(0x1ff)](_0x2401ec(0x223)+_0xaba184+_0x2401ec(0x214)+_0x49f01e,_0x2401ec(0x221));return{'execute':async()=>{const _0x4e61ee=_0x2401ec;await _0xe43fd3[_0x4e61ee(0x22d)];},'abortController':_0xe43fd3[_0x2401ec(0x21b)]};}[_0x52c8ee(0x219)]({reviewName:_0x23a2f7,content:_0x4a9201,args:_0x755671}){const _0x47ff2e=_0x52c8ee,_0x3fe7ba=this[_0x47ff2e(0x1ff)](_0x47ff2e(0x1ef)+_0x23a2f7+_0x47ff2e(0x1d8),_0x47ff2e(0x208),{'content':[{'type':_0x47ff2e(0x20f),'content':_0x4a9201}],'args':_0x755671});return{'getStream':async()=>{const _0x4dce60=_0x47ff2e,_0x7581a2=(await _0x3fe7ba[_0x4dce60(0x22d)])[_0x4dce60(0x217)];return this[_0x4dce60(0x22c)](_0x7581a2);},'abortController':_0x3fe7ba[_0x47ff2e(0x21b)]};}[_0x52c8ee(0x1c7)]({content:_0x888f68,prompt:_0x3de1b7,model:_0x3462b1}){const _0x399a9b=_0x52c8ee,_0x24e9bc=this[_0x399a9b(0x1ff)](_0x399a9b(0x1cf),_0x399a9b(0x208),{'content':[{'type':_0x399a9b(0x20f),'content':_0x888f68}],'prompt':_0x3de1b7,'model':_0x3462b1});return{'getStream':async()=>{const _0x12ac4e=_0x399a9b,_0x2852e1=(await _0x24e9bc[_0x12ac4e(0x22d)])[_0x12ac4e(0x217)];return this[_0x12ac4e(0x22c)](_0x2852e1);},'abortController':_0x24e9bc[_0x399a9b(0x21b)]};}[_0x52c8ee(0x1b8)](_0x43bf92,_0x1b17a3,_0x5cc512){const _0x1ef324=_0x52c8ee,_0x12a133=this[_0x1ef324(0x1ff)](_0x1ef324(0x223)+_0x43bf92+_0x1ef324(0x234)+_0x1b17a3+_0x1ef324(0x21c),_0x1ef324(0x1e3),{'positiveCount':_0x5cc512[_0x1ef324(0x1c1)],'totalCount':_0x5cc512[_0x1ef324(0x237)],'modificationId':_0x5cc512[_0x1ef324(0x21f)]});return{'execute':async()=>{const _0x44ff51=_0x1ef324;await _0x12a133[_0x44ff51(0x22d)];},'abortController':_0x12a133[_0x1ef324(0x21b)]};}[_0x52c8ee(0x1bd)](_0x2d8c88,_0x20c8dc,_0x52e7d2){const _0xb86b2a=_0x52c8ee,_0x23259a=this[_0xb86b2a(0x1ff)](_0xb86b2a(0x203)+_0x2d8c88+_0xb86b2a(0x200)+_0x20c8dc+_0xb86b2a(0x21c),_0xb86b2a(0x1e3),{'positiveCount':_0x52e7d2[_0xb86b2a(0x1c1)],'totalCount':_0x52e7d2[_0xb86b2a(0x237)]});return{'execute':async()=>{const _0x43fb46=_0xb86b2a;await _0x23259a[_0x43fb46(0x22d)];},'abortController':_0x23259a[_0xb86b2a(0x21b)]};}[_0x52c8ee(0x222)](_0x2807f8,_0x145868){const _0x3e70ef=_0x52c8ee,_0x2ba6cd=this[_0x3e70ef(0x1ff)](_0x3e70ef(0x215)+_0x2807f8+_0x3e70ef(0x21c),_0x3e70ef(0x1e3),{'positiveCount':_0x145868[_0x3e70ef(0x1c1)],'totalCount':_0x145868[_0x3e70ef(0x237)]});return{'execute':async()=>{const _0x234f12=_0x3e70ef;await _0x2ba6cd[_0x234f12(0x22d)];},'abortController':_0x2ba6cd[_0x3e70ef(0x21b)]};}[_0x52c8ee(0x1ec)](_0x43429f,_0xd43d10,_0x4de059,_0x1b35c5){const _0x736b4a=_0x52c8ee,_0x7a86fd=this[_0x736b4a(0x1ff)](_0x736b4a(0x1ef)+_0x43429f+_0x736b4a(0x200)+_0xd43d10+_0x736b4a(0x21c),_0x736b4a(0x1e3),{'positiveCount':_0x4de059[_0x736b4a(0x1c1)],'totalCount':_0x4de059[_0x736b4a(0x237)],'dataId':_0x1b35c5});return{'execute':async()=>{const _0xbef89d=_0x736b4a;await _0x7a86fd[_0xbef89d(0x22d)];},'abortController':_0x7a86fd[_0x736b4a(0x21b)]};}[_0x52c8ee(0x1c0)](_0x268b65,_0x2dadc8,_0x5ee72d){const _0x5dce7f=_0x52c8ee,_0x496225=this[_0x5dce7f(0x1ff)](_0x5dce7f(0x201)+_0x268b65+_0x5dce7f(0x21c),_0x5dce7f(0x1e3),{'positiveCount':_0x2dadc8[_0x5dce7f(0x1c1)],'totalCount':_0x2dadc8[_0x5dce7f(0x237)],'dataId':_0x5ee72d});return{'execute':async()=>{const _0x4e8284=_0x5dce7f;await _0x496225[_0x4e8284(0x22d)];},'abortController':_0x496225[_0x5dce7f(0x21b)]};}[_0x52c8ee(0x1ff)](_0x1f8028,_0x297cf5,_0x2c49a3){const _0x1c679c=_0x52c8ee,_0x45a08f=new AbortController(),_0x25a3a8=_0x2c49a3 instanceof FormData,_0x2d365e={'Authorization':_0x1c679c(0x1b2)+this[_0x1c679c(0x20b)]?.[_0x1c679c(0x1d4)]};_0x2c49a3&&!_0x25a3a8&&(_0x2d365e[_0x1c679c(0x1ed)]=_0x1c679c(0x1d0));const _0x21b5e9={'method':_0x297cf5,'headers':_0x2d365e,'signal':_0x45a08f[_0x1c679c(0x238)]};return _0x2c49a3&&(_0x21b5e9[_0x1c679c(0x217)]=_0x25a3a8?_0x2c49a3:JSON[_0x1c679c(0x22f)](_0x2c49a3)),{'request':fetch(''+this[_0x1c679c(0x1d5)]+_0x1f8028,_0x21b5e9)[_0x1c679c(0x216)](_0x543738=>{const _0x42ff81=_0x1c679c;this[_0x42ff81(0x1ea)](_0x543738);})[_0x1c679c(0x1b0)](_0x4958ee=>_0x4958ee['ok']?_0x4958ee:_0x4958ee[_0x1c679c(0x225)]()[_0x1c679c(0x1b0)](_0x1af1a0=>{const _0x3a51ab=_0x1c679c;throw{'url':this[_0x3a51ab(0x1d5)],'path':_0x1f8028,'method':_0x297cf5,'body':_0x2c49a3,'status':(_0x4958ee||{})[_0x3a51ab(0x1c8)],'statusText':(_0x4958ee||{})[_0x3a51ab(0x1af)],'code':_0x1af1a0[_0x3a51ab(0x210)],'message':_0x1af1a0[_0x3a51ab(0x20e)],'traceId':_0x1af1a0[_0x3a51ab(0x205)]};})),'abortController':_0x45a08f};}async*[_0x52c8ee(0x22c)](_0x50d081){const _0x4ac35c=_0x52c8ee,_0x592659=[],_0x15aea5=_0x50d081[_0x4ac35c(0x1e9)](),_0x13030f=_0x126c20({'onError':_0x98c33c=>{const _0xad5c96=_0x4ac35c;this[_0xad5c96(0x1ea)](_0x98c33c);},'onEvent':_0x3b9603=>{const _0x35e6b1=_0x4ac35c;_0x3b9603[_0x35e6b1(0x209)]=JSON[_0x35e6b1(0x1fb)](_0x3b9603[_0x35e6b1(0x209)]),_0x592659[_0x35e6b1(0x21e)](_0x3b9603);}});try{let _0x2461cc=!0x1;for(;!_0x2461cc;){const {done:_0x492679,value:_0x3e1539}=await _0x15aea5[_0x4ac35c(0x1c6)]();_0x492679&&(_0x2461cc=!0x0),_0x13030f[_0x4ac35c(0x1e5)](this[_0x4ac35c(0x1b7)][_0x4ac35c(0x1dd)](_0x3e1539,{'stream':!0x0})),yield*_0x592659,_0x592659[_0x4ac35c(0x1c5)]=0x0;}}catch(_0x358f1c){this[_0x4ac35c(0x1ea)](_0x358f1c);}finally{_0x15aea5[_0x4ac35c(0x218)](),_0x13030f[_0x4ac35c(0x212)]();}}[_0x52c8ee(0x1ea)](_0x4bc53d){const _0x3e59aa=_0x52c8ee;if(_0x4bc53d instanceof _0x53bb22)throw _0x4bc53d;if(_0x4bc53d instanceof Error&&_0x3e59aa(0x220)===_0x4bc53d[_0x3e59aa(0x1be)])throw new _0x53bb22(_0x3e59aa(0x1f1),this,{'originalError':_0x4bc53d});throw new _0x53bb22(_0x3e59aa(0x22a),this,{'originalError':_0x4bc53d});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x43a924=_0x1e48;(function(_0x3edb8e,_0x42ef23){const _0x55198e=_0x1e48,_0x2f807b=_0x3edb8e();while(!![]){try{const _0x52d1e5=-parseInt(_0x55198e(0x199))/0x1*(parseInt(_0x55198e(0x198))/0x2)+-parseInt(_0x55198e(0x151))/0x3*(parseInt(_0x55198e(0x197))/0x4)+-parseInt(_0x55198e(0x17c))/0x5+parseInt(_0x55198e(0x176))/0x6*(-parseInt(_0x55198e(0x181))/0x7)+parseInt(_0x55198e(0x16b))/0x8+parseInt(_0x55198e(0x193))/0x9*(parseInt(_0x55198e(0x167))/0xa)+parseInt(_0x55198e(0x16a))/0xb*(parseInt(_0x55198e(0x18d))/0xc);if(_0x52d1e5===_0x42ef23)break;else _0x2f807b['push'](_0x2f807b['shift']());}catch(_0x14da6b){_0x2f807b['push'](_0x2f807b['shift']());}}}(_0x5818,0x75f57));import{ViewDowncastWriter as _0x91df5a}from'ckeditor5/src/engine.js';function _0x1e48(_0x176c82,_0x1362e0){const _0x5818b1=_0x5818();return _0x1e48=function(_0x1e48f5,_0x1e56ef){_0x1e48f5=_0x1e48f5-0x131;let _0x276811=_0x5818b1[_0x1e48f5];return _0x276811;},_0x1e48(_0x176c82,_0x1362e0);}import{ContextPlugin as _0x9f46c1,Editor as _0x4774d5}from'ckeditor5/src/core.js';import{uid as _0x5ed131}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2c727d}from'./utils/geteditorfromcontext.js';function _0x5818(){const _0x1fb866=['AIEditing','33144UleajD','pluginName','from','editors','start','isBefore','453807gpJdvu','RealTimeCollaborationClient','_getMarkersInDocumentOrder','dataDowncast','4404EGVDct','4YJCMsC','68344xIgBFT','length','setAttribute','data-id','convertAiChatSelectionMarker','isOpening','ck-fake-ai-selection','addMarker','sort','conversion','removeAllRanges','$textProxy',':end>','toView','ai-selection','processor','isAtEnd','join','isOfficialPlugin','getWalker','sessionId','for','selection','_setDataIdsOnChildren','context','editing','listenTo','ck-ai-assistant-ui_theme','substring','plugins','afterInit','createRange','add','model','isPremiumPlugin','2562SUBedM','editingDowncast','data','markers','getRoot','isAfter','removeMarker','change','get','_integrateEditor','getChildren','hideFakeVisualSelection','_displayedFakeSelectionId','getStart','trim','random','getSelectedContent','name','showFakeVisualSelection',':start></','end','version','30BvYYnQ',':start>','has','5984DTTnJF','6939816RyyobY','_sessionId','emptyElement','element','getMarkersGroup','view','fromCharCode','isContent','_nextDataId','schema','getSelection','192kmxowe','toData','indexOf',':end></','document','ai-selection:','2382985GcgEWl','getLastMatchingPosition','floor','modelToViewWithIds','_displayedFakeSelectionLocked','106001IvTjOL','ready','getSelectionText','getDocumentData','createRangeIn','createUIElement','markerToElement','markerToHighlight','markerName','containerElement','push'];_0x5818=function(){return _0x1fb866;};return _0x5818();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x43a924(0x13c);export class AIEditing extends _0x9f46c1{[_0x43a924(0x15d)]=null;[_0x43a924(0x180)]=!0x1;[_0x43a924(0x16c)];static get[_0x43a924(0x18e)](){const _0x13b356=_0x43a924;return _0x13b356(0x18c);}static get[_0x43a924(0x140)](){return!0x0;}static get[_0x43a924(0x150)](){return!0x0;}get[_0x43a924(0x142)](){const _0x3a1580=_0x43a924;if(!this[_0x3a1580(0x16c)]){const _0x3936b1=_0x2c727d(this[_0x3a1580(0x146)]),_0x221599=_0x3936b1[_0x3a1580(0x14b)][_0x3a1580(0x169)](_0x3a1580(0x194))&&_0x3936b1[_0x3a1580(0x14b)][_0x3a1580(0x159)](_0x3a1580(0x194))[_0x3a1580(0x142)];this[_0x3a1580(0x16c)]=_0x221599||_0x5ed131();}return this[_0x3a1580(0x16c)];}[_0x43a924(0x184)](){const _0x58e58f=_0x43a924,_0x1592ec=_0x2c727d(this[_0x58e58f(0x146)]),_0x45c696=_0x1592ec[_0x58e58f(0x14f)],_0x2234d2=_0x1592ec[_0x58e58f(0x153)][_0x58e58f(0x13b)](_0x45c696[_0x58e58f(0x17a)][_0x58e58f(0x155)](),{'convertAiChatSelectionMarker':!0x0}),_0x5dc9d9=new _0x91df5a(_0x1592ec[_0x58e58f(0x147)][_0x58e58f(0x170)][_0x58e58f(0x17a)]);this[_0x58e58f(0x145)](_0x2234d2,_0x5dc9d9);let _0x150018=_0x1592ec[_0x58e58f(0x153)][_0x58e58f(0x13d)][_0x58e58f(0x177)](_0x2234d2);const _0x39526c=this[_0x58e58f(0x195)](),_0x8b4d86=[];for(const _0x551344 of _0x39526c){const _0x3b8ed2='<'+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x164)+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x168),_0x4d1ac7=_0x150018[_0x58e58f(0x178)](_0x3b8ed2);_0x150018=_0x150018[_0x58e58f(0x14a)](0x0,_0x4d1ac7)+_0x150018[_0x58e58f(0x14a)](_0x4d1ac7+_0x3b8ed2[_0x58e58f(0x19a)]);const _0xf74af1='<'+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x179)+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x13a),_0x3fa3e7=_0x150018[_0x58e58f(0x178)](_0xf74af1);_0x150018=_0x150018[_0x58e58f(0x14a)](0x0,_0x3fa3e7)+_0x150018[_0x58e58f(0x14a)](_0x3fa3e7+_0xf74af1[_0x58e58f(0x19a)]),_0x8b4d86[_0x58e58f(0x18b)]({'markerName':_0x551344[_0x58e58f(0x162)],'start':_0x4d1ac7,'end':_0x3fa3e7,'htmlFragment':_0x150018[_0x58e58f(0x14a)](_0x4d1ac7,_0x3fa3e7)});}return{'content':_0x150018,'version':_0x1592ec[_0x58e58f(0x14f)][_0x58e58f(0x17a)][_0x58e58f(0x166)],'sessionId':this[_0x58e58f(0x142)],'selections':_0x8b4d86};}async[_0x43a924(0x14c)](){const _0x3a1e16=_0x43a924;this[_0x3a1e16(0x146)]instanceof _0x4774d5?this[_0x3a1e16(0x15a)](this[_0x3a1e16(0x146)]):this[_0x3a1e16(0x148)](this[_0x3a1e16(0x146)][_0x3a1e16(0x190)],_0x3a1e16(0x14e),(_0x33b282,_0xa82694)=>{const _0x5a553d=_0x3a1e16;_0xa82694['on'](_0x5a553d(0x182),()=>{const _0x4d2edd=_0x5a553d;this[_0x4d2edd(0x15a)](_0xa82694);});});}[_0x43a924(0x15a)](_0x37c2e7){const _0x1f5f68=_0x43a924;_0x37c2e7[_0x1f5f68(0x137)][_0x1f5f68(0x143)](_0x1f5f68(0x152))[_0x1f5f68(0x188)]({'model':_0x1f5f68(0x13c),'view':{'classes':[_0x1f5f68(0x134),_0x1f5f68(0x149)],'priority':0xc}}),_0x37c2e7[_0x1f5f68(0x137)][_0x1f5f68(0x143)](_0x1f5f68(0x196))[_0x1f5f68(0x187)]({'model':_0x1f5f68(0x13c),'view':(_0x4edf70,{writer:_0x23c891,options:_0x271511})=>_0x271511[_0x1f5f68(0x132)]?_0x23c891[_0x1f5f68(0x186)](_0x4edf70[_0x1f5f68(0x189)]+':'+(_0x4edf70[_0x1f5f68(0x133)]?_0x1f5f68(0x191):_0x1f5f68(0x165))):null});}[_0x43a924(0x163)](_0x12f82a,_0xcac9d7,_0x708bcc=!0x1,_0x3aaeee=!0x1){const _0x2c28b6=_0x43a924;if(this[_0x2c28b6(0x180)]&&!_0x3aaeee)return!0x1;const _0x176145=_0x2c727d(this[_0x2c28b6(0x146)])[_0x2c28b6(0x14f)];return _0x176145[_0x2c28b6(0x158)](_0x152f3e=>{const _0x1be485=_0x2c28b6;this[_0x1be485(0x15d)]&&this[_0x1be485(0x15c)](this[_0x1be485(0x15d)]),this[_0x1be485(0x15d)]=_0xcac9d7,this[_0x1be485(0x180)]=_0x708bcc;let _0x1ddbf5=0x0;for(let _0x2c2690 of _0x12f82a){const _0x352783=_0x1be485(0x17b)+_0x1ddbf5;if(_0x2c2690[_0x1be485(0x191)][_0x1be485(0x13e)]){const _0x18eba5=_0x2c2690[_0x1be485(0x191)][_0x1be485(0x17d)](({item:_0x157f9c})=>!_0x176145[_0x1be485(0x174)][_0x1be485(0x172)](_0x157f9c),{'boundaries':_0x2c2690});_0x2c2690=_0x152f3e[_0x1be485(0x14d)](_0x18eba5,_0x2c2690[_0x1be485(0x165)]);}_0x152f3e[_0x1be485(0x135)](_0x352783,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2c2690}),_0x1ddbf5++;}}),window[_0x2c28b6(0x175)]()?.[_0x2c28b6(0x138)](),!0x0;}[_0x43a924(0x15c)](_0x2d675d){const _0x4a5260=_0x43a924;if(this[_0x4a5260(0x15d)]!=_0x2d675d)return!0x1;this[_0x4a5260(0x15d)]=null,this[_0x4a5260(0x180)]=!0x1;const _0x3f362b=_0x2c727d(this[_0x4a5260(0x146)]),_0x35b98=_0x3f362b[_0x4a5260(0x14f)][_0x4a5260(0x154)][_0x4a5260(0x16f)](_0x4a5260(0x13c));return _0x3f362b[_0x4a5260(0x14f)][_0x4a5260(0x158)](_0x2aab54=>{const _0x4df50b=_0x4a5260;for(const _0x2002ab of _0x35b98)_0x2aab54[_0x4df50b(0x157)](_0x2002ab);}),!0x0;}[_0x43a924(0x17f)](_0x549b14){const _0xb37314=_0x43a924,_0xf52c0c=_0x2c727d(this[_0xb37314(0x146)]),_0x8b4e77=_0xf52c0c[_0xb37314(0x153)][_0xb37314(0x13b)](_0x549b14),_0x2fa210=new _0x91df5a(_0xf52c0c[_0xb37314(0x147)][_0xb37314(0x170)][_0xb37314(0x17a)]);return this[_0xb37314(0x145)](_0x8b4e77,_0x2fa210),_0x8b4e77;}[_0x43a924(0x145)](_0x4a1ac5,_0x3fab72){const _0x30b632=_0x43a924;let _0x4f3ecb=!0x1;const _0x550869=new Set();for(const _0x49c58e of _0x4a1ac5[_0x30b632(0x15b)]()){const _0x13ac82=_0x49c58e['is'](_0x30b632(0x16d))||_0x49c58e['is'](_0x30b632(0x18a));if(!_0x49c58e['is'](_0x30b632(0x16e)))continue;(this[_0x30b632(0x145)](_0x49c58e,_0x3fab72)||_0x13ac82)&&(_0x3fab72[_0x30b632(0x19b)](_0x30b632(0x131),this[_0x30b632(0x173)](_0x550869),_0x49c58e),_0x4f3ecb=!0x0);}return _0x4f3ecb;}[_0x43a924(0x173)](_0x106ded){const _0x4ac225=_0x43a924;let _0x4911f7;do{_0x4911f7='';for(let _0x134df0=0x0;_0x134df0<0x4;_0x134df0++)_0x4911f7+=String[_0x4ac225(0x171)](0x61+Math[_0x4ac225(0x17e)](0x1a*Math[_0x4ac225(0x160)]()));}while(_0x106ded[_0x4ac225(0x169)](_0x4911f7));return _0x106ded[_0x4ac225(0x14e)](_0x4911f7),_0x4911f7;}[_0x43a924(0x183)](){const _0x4e0ee0=_0x43a924,{model:_0x49c2f2}=_0x2c727d(this[_0x4e0ee0(0x146)]),_0x3d8c25=_0x49c2f2[_0x4e0ee0(0x17a)][_0x4e0ee0(0x144)],_0xaf152f=_0x49c2f2[_0x4e0ee0(0x161)](_0x3d8c25),_0x3d20d0=[],_0x481f11=_0x49c2f2[_0x4e0ee0(0x185)](_0xaf152f)[_0x4e0ee0(0x141)]();for(const {item:_0x21c479}of _0x481f11)_0x21c479['is'](_0x4e0ee0(0x139))?_0x3d20d0[_0x4e0ee0(0x18b)](_0x21c479[_0x4e0ee0(0x153)]):_0x21c479['is'](_0x4e0ee0(0x16e))&&_0x3d20d0[_0x4e0ee0(0x19a)]>0x0&&'\x20'!==_0x3d20d0[_0x3d20d0[_0x4e0ee0(0x19a)]-0x1]&&_0x3d20d0[_0x4e0ee0(0x18b)]('\x20');return'\x22'+_0x3d20d0[_0x4e0ee0(0x13f)]('')[_0x4e0ee0(0x15f)]()+'\x22';}[_0x43a924(0x195)](){const _0x1c3ac=_0x43a924,_0x1f01a2=_0x2c727d(this[_0x1c3ac(0x146)])[_0x1c3ac(0x14f)];return Array[_0x1c3ac(0x18f)](_0x1f01a2[_0x1c3ac(0x154)][_0x1c3ac(0x16f)](_0x1c3ac(0x13c)))[_0x1c3ac(0x136)]((_0x5a947c,_0x1e8c86)=>_0x5a947c[_0x1c3ac(0x15e)]()[_0x1c3ac(0x192)](_0x1e8c86[_0x1c3ac(0x15e)]())?-0x1:_0x5a947c[_0x1c3ac(0x15e)]()[_0x1c3ac(0x156)](_0x1e8c86[_0x1c3ac(0x15e)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xd551(){const _0x5da6cc=['249176PQpppj','7213210BXFbNh','reset','_isWebSearchEnabled','toggleWebSearch','5404mOOCaz','27706DdbYyO','webSearch','reasoning','init','toggleReasoning','getCapabilitiesConfig','287806tSyply','getCapabilitiesRequestData','1029VGpCvZ','isWebSearchEnabled','isReasoningEnabled','53826ugoPjX','_isReasoningEnabled','fire','capabilitiesUpdated','setReasoning','5807277XFHGZa','688TigYrE','setWebSearch','105ouBFdS'];_0xd551=function(){return _0x5da6cc;};return _0xd551();}function _0x1c5d(_0x717ee6,_0x8ade73){const _0xd551d6=_0xd551();return _0x1c5d=function(_0x1c5d81,_0x416b8d){_0x1c5d81=_0x1c5d81-0x176;let _0x186c13=_0xd551d6[_0x1c5d81];return _0x186c13;},_0x1c5d(_0x717ee6,_0x8ade73);}const _0x261b08=_0x1c5d;(function(_0x84293c,_0x1eacc5){const _0x3275dd=_0x1c5d,_0x1481cd=_0x84293c();while(!![]){try{const _0x42e70c=-parseInt(_0x3275dd(0x186))/0x1+parseInt(_0x3275dd(0x17f))/0x2*(parseInt(_0x3275dd(0x188))/0x3)+-parseInt(_0x3275dd(0x17a))/0x4+-parseInt(_0x3275dd(0x179))/0x5*(-parseInt(_0x3275dd(0x18b))/0x6)+-parseInt(_0x3275dd(0x180))/0x7*(parseInt(_0x3275dd(0x177))/0x8)+-parseInt(_0x3275dd(0x176))/0x9+parseInt(_0x3275dd(0x17b))/0xa;if(_0x42e70c===_0x1eacc5)break;else _0x1481cd['push'](_0x1481cd['shift']());}catch(_0x2b46ca){_0x1481cd['push'](_0x1481cd['shift']());}}}(_0xd551,0x7a415));import{EmitterMixin as _0x4cdec7}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x261b08(0x18e)];export class AICapabilities extends _0x4cdec7(){[_0x261b08(0x17d)];[_0x261b08(0x18c)];constructor(){const _0x4d675a=_0x261b08;super(),this[_0x4d675a(0x17d)]=!0x1,this[_0x4d675a(0x18c)]=!0x1;}[_0x261b08(0x183)](){const _0x1b3bfd=_0x261b08;this[_0x1b3bfd(0x17c)]();}[_0x261b08(0x17c)](){const _0x4bf494=_0x261b08;this[_0x4bf494(0x178)](!0x1),this[_0x4bf494(0x18f)](!0x1);}[_0x261b08(0x185)](){const _0x5d2866=_0x261b08;return{'isWebSearchEnabled':this[_0x5d2866(0x17d)],'isReasoningEnabled':this[_0x5d2866(0x18c)]};}static[_0x261b08(0x187)](_0x78a411){const _0x156b05=_0x261b08,_0x502bf8={};return _0x78a411&&_0x78a411[_0x156b05(0x189)]&&(_0x502bf8[_0x156b05(0x181)]={}),_0x78a411&&_0x78a411[_0x156b05(0x18a)]&&(_0x502bf8[_0x156b05(0x182)]={}),_0x502bf8;}[_0x261b08(0x17e)](){const _0x506d62=_0x261b08;this[_0x506d62(0x178)](!this[_0x506d62(0x17d)]);}[_0x261b08(0x184)](){const _0x45e025=_0x261b08;this[_0x45e025(0x18f)](!this[_0x45e025(0x18c)]);}[_0x261b08(0x178)](_0x55743f){const _0x37b01a=_0x261b08;_0x55743f!==this[_0x37b01a(0x17d)]&&(this[_0x37b01a(0x17d)]=_0x55743f,this[_0x37b01a(0x18d)](_0x37b01a(0x18e),this[_0x37b01a(0x185)]()));}[_0x261b08(0x18f)](_0x5d8354){const _0x3f1c82=_0x261b08;_0x5d8354!==this[_0x3f1c82(0x18c)]&&(this[_0x3f1c82(0x18c)]=_0x5d8354,this[_0x3f1c82(0x18d)](_0x3f1c82(0x18e),this[_0x3f1c82(0x185)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1bdbaf,_0x29b10b){var _0x3e7fbd=_0x45b1,_0x3206a4=_0x1bdbaf();while(!![]){try{var _0x3b12a0=-parseInt(_0x3e7fbd(0xc9))/0x1*(-parseInt(_0x3e7fbd(0xbf))/0x2)+-parseInt(_0x3e7fbd(0xc2))/0x3+-parseInt(_0x3e7fbd(0xc1))/0x4*(parseInt(_0x3e7fbd(0xd0))/0x5)+parseInt(_0x3e7fbd(0xbb))/0x6+parseInt(_0x3e7fbd(0xbc))/0x7*(-parseInt(_0x3e7fbd(0xbe))/0x8)+parseInt(_0x3e7fbd(0xce))/0x9*(-parseInt(_0x3e7fbd(0xcc))/0xa)+-parseInt(_0x3e7fbd(0xba))/0xb*(-parseInt(_0x3e7fbd(0xd3))/0xc);if(_0x3b12a0===_0x29b10b)break;else _0x3206a4['push'](_0x3206a4['shift']());}catch(_0x5d7d4f){_0x3206a4['push'](_0x3206a4['shift']());}}}(_0x195b,0xc303c));export var AIContextItemType;!function(_0x4dd1b0){var _0x3672bb=_0x45b1;_0x4dd1b0[_0x3672bb(0xc7)]=_0x3672bb(0xbd),_0x4dd1b0[_0x3672bb(0xc3)]=_0x3672bb(0xc4),_0x4dd1b0[_0x3672bb(0xc0)]=_0x3672bb(0xc6),_0x4dd1b0[_0x3672bb(0xc5)]=_0x3672bb(0xd1),_0x4dd1b0[_0x3672bb(0xd2)]=_0x3672bb(0xcf);}(AIContextItemType||(AIContextItemType={}));function _0x195b(){var _0x27d8cd=['html','33890oCHfSI','MARKDOWN','144wQUewk','selection','410HncCUc','text','SELECTION','25308UNsViR','2970uEDYSu','5887080QEUnEX','14wEkzJW','file','5099728CTzdnT','114830MXgXVs','URL','45224KFJzkh','137361rOVkTL','DOCUMENT','document','TEXT','web-resource','FILE','HTML','27ptAZLi','markdown'];_0x195b=function(){return _0x27d8cd;};return _0x195b();}function _0x45b1(_0x5cdf24,_0x1bc51c){var _0x195b82=_0x195b();return _0x45b1=function(_0x45b1e8,_0x2ab2d1){_0x45b1e8=_0x45b1e8-0xba;var _0x1dc1ae=_0x195b82[_0x45b1e8];return _0x1dc1ae;},_0x45b1(_0x5cdf24,_0x1bc51c);}export var AIContextTextResourceType;!function(_0x5b1edb){var _0x3a14d2=_0x45b1;_0x5b1edb[_0x3a14d2(0xc5)]=_0x3a14d2(0xd1),_0x5b1edb[_0x3a14d2(0xcd)]=_0x3a14d2(0xca),_0x5b1edb[_0x3a14d2(0xc8)]=_0x3a14d2(0xcb);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e7c25=_0x397a;(function(_0x369691,_0x18c914){const _0x1b5c1a=_0x397a,_0xd628a8=_0x369691();while(!![]){try{const _0x1bb65c=-parseInt(_0x1b5c1a(0x1af))/0x1*(-parseInt(_0x1b5c1a(0x1e7))/0x2)+-parseInt(_0x1b5c1a(0x1de))/0x3+-parseInt(_0x1b5c1a(0x1d3))/0x4+parseInt(_0x1b5c1a(0x1d7))/0x5*(-parseInt(_0x1b5c1a(0x1c3))/0x6)+parseInt(_0x1b5c1a(0x1dc))/0x7+-parseInt(_0x1b5c1a(0x1ef))/0x8+parseInt(_0x1b5c1a(0x1d5))/0x9;if(_0x1bb65c===_0x18c914)break;else _0xd628a8['push'](_0xd628a8['shift']());}catch(_0x41f9eb){_0xd628a8['push'](_0xd628a8['shift']());}}}(_0x5177,0x46d2a));import{CKEditorError as _0x51e8a4,EmitterMixin as _0x254880,uid as _0x51e86c}from'ckeditor5/src/utils.js';import{AIReply as _0xeb52ee,isIgnoredReplyType as _0x459ae4,isValidReplyType as _0x5554b2,isReplyTitleType as _0x37d0e2,isSourceType as _0x18138c}from'./aireply.js';function _0x5177(){const _0xf5b115=['webSearchFinished','replies','isDestroyed','stop','currentReply','replyCreated','event','_isReasoning','replyChangeGroupStateUpdated','sources','source','getStream','1293918KuhpXs','delegate','appendContent','sendRequest','abort','reasoning','interactionStarted','editor','stopListening','replyContentUpdated','start','isStopped','reasoningStarted','getDocumentContext','getReply','interactionStopped','1353416LsaMrs','length','9831123yyaXKP','action-metadata','5kqHWQz','textDelta','conversationTitle','_isWebSearching','reasoningFinished','2678907utBudT','modification-delta','1364691siobwR','error','setConversationTitle','data','_finalizeInteraction','destroy','currentRequest','push','ai-chat-interaction-error','768388cVfzbs','fire','connector','actionCallId','interactionDestroyed','messageId','abortController','interactionFinished','4481984sqJchv','interactionCreated','web-search','find','createReply','1fXubpX','forEach','content','message-metadata','splice','webSearchStarted','callId','done'];_0x5177=function(){return _0xf5b115;};return _0x5177();}export const AI_MODEL_EVENT_NAMES=[_0x1e7c25(0x1f0),_0x1e7c25(0x1c9),_0x1e7c25(0x1d2),_0x1e7c25(0x1ee),_0x1e7c25(0x1eb),_0x1e7c25(0x1bc),_0x1e7c25(0x1cc),_0x1e7c25(0x1bf),_0x1e7c25(0x1e0),_0x1e7c25(0x1b4),_0x1e7c25(0x1b7),_0x1e7c25(0x1cf),_0x1e7c25(0x1db),_0x1e7c25(0x1df)];function _0x397a(_0x41721e,_0x5e9f61){const _0x517797=_0x5177();return _0x397a=function(_0x397a67,_0x31f933){_0x397a67=_0x397a67-0x1ac;let _0x4e5b8b=_0x517797[_0x397a67];return _0x4e5b8b;},_0x397a(_0x41721e,_0x5e9f61);}export class AIInteraction extends _0x254880(){['id'];[_0x1e7c25(0x1b8)]=[];[_0x1e7c25(0x1bb)];[_0x1e7c25(0x1ec)];[_0x1e7c25(0x1ea)];[_0x1e7c25(0x1e4)];[_0x1e7c25(0x1e9)];[_0x1e7c25(0x1ce)]=!0x1;[_0x1e7c25(0x1b9)]=!0x1;[_0x1e7c25(0x1ca)];[_0x1e7c25(0x1be)]=!0x1;[_0x1e7c25(0x1da)]=!0x1;constructor({connector:_0x1f5455,editor:_0x33fed4}){const _0x5742ee=_0x1e7c25;super(),this['id']=_0x51e86c(),this[_0x5742ee(0x1e9)]=_0x1f5455,this[_0x5742ee(0x1ce)]=!0x0,this[_0x5742ee(0x1ca)]=_0x33fed4;}async[_0x1e7c25(0x1cd)](){const _0x199393=_0x1e7c25;let _0x36458d;const _0x169c05=[];this[_0x199393(0x1ce)]=!0x1;try{this[_0x199393(0x1e4)]=await this[_0x199393(0x1c6)](),this[_0x199393(0x1e8)](_0x199393(0x1c9),this);const _0x476cb6=await this[_0x199393(0x1e4)][_0x199393(0x1c2)]();for await(const _0x29a82b of _0x476cb6){if(this[_0x199393(0x1ce)])return;if(_0x199393(0x1df)===_0x29a82b[_0x199393(0x1bd)])return void this[_0x199393(0x1e8)](_0x199393(0x1df),{'error':new _0x51e8a4(_0x199393(0x1e6),this)});if(_0x199393(0x1b2)!==_0x29a82b[_0x199393(0x1bd)]){if(_0x199393(0x1d6)!==_0x29a82b[_0x199393(0x1bd)]){if(_0x37d0e2(_0x29a82b[_0x199393(0x1bd)])&&this[_0x199393(0x1e0)](_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1d9)],!0x0),_0x18138c(_0x29a82b[_0x199393(0x1bd)]))_0x169c05[_0x199393(0x1e5)](_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1c1)]);else{if(_0x5554b2(_0x29a82b[_0x199393(0x1bd)])){if(_0x29a82b[_0x199393(0x1bd)]!==_0x36458d){if(_0x36458d=_0x29a82b[_0x199393(0x1bd)],_0x199393(0x1ac)===_0x29a82b[_0x199393(0x1bd)]){this[_0x199393(0x1da)]||(this[_0x199393(0x1da)]=!0x0,this[_0x199393(0x1e8)](_0x199393(0x1b4),this));continue;}if(_0x199393(0x1c8)===_0x29a82b[_0x199393(0x1bd)]){this[_0x199393(0x1be)]||(this[_0x199393(0x1be)]=!0x0,this[_0x199393(0x1e8)](_0x199393(0x1cf),this));continue;}this[_0x199393(0x1be)]&&(this[_0x199393(0x1be)]=!0x1,this[_0x199393(0x1e8)](_0x199393(0x1db),this)),this[_0x199393(0x1da)]&&(this[_0x199393(0x1da)]=!0x1,this[_0x199393(0x1e8)](_0x199393(0x1b7),this)),this[_0x199393(0x1bb)]&&this[_0x199393(0x1bb)][_0x199393(0x1b6)](),this[_0x199393(0x1bb)]=this[_0x199393(0x1ae)]({'type':_0x29a82b[_0x199393(0x1bd)],'interactionId':this['id'],'id':_0x29a82b[_0x199393(0x1e1)]?.['id']}),_0x169c05[_0x199393(0x1d4)]>0x0&&_0x199393(0x1dd)===_0x29a82b[_0x199393(0x1bd)]&&(this[_0x199393(0x1bb)][_0x199393(0x1c0)]=_0x169c05[_0x199393(0x1b3)](0x0));}_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1d8)]&&this[_0x199393(0x1bb)][_0x199393(0x1c5)](_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1d8)]);}else _0x459ae4(_0x29a82b[_0x199393(0x1bd)]);}}else this[_0x199393(0x1ea)]=_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1b5)];}else this[_0x199393(0x1ec)]=_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1ec)];}}finally{this[_0x199393(0x1ce)]||(_0x169c05[_0x199393(0x1d4)]>0x0&&(this[_0x199393(0x1bb)][_0x199393(0x1c0)]=_0x169c05[_0x199393(0x1b3)](0x0)),this[_0x199393(0x1e2)](),this[_0x199393(0x1e8)](_0x199393(0x1ee),this));}}[_0x1e7c25(0x1ba)](){const _0x423009=_0x1e7c25;this[_0x423009(0x1ce)]||(this[_0x423009(0x1e2)](),this[_0x423009(0x1e8)](_0x423009(0x1d2),this));}[_0x1e7c25(0x1d1)](_0x54089e){const _0x568917=_0x1e7c25;return this[_0x568917(0x1b8)][_0x568917(0x1ad)](_0x1c77b1=>_0x1c77b1['id']===_0x54089e);}[_0x1e7c25(0x1e3)](){const _0x53ccae=_0x1e7c25;this[_0x53ccae(0x1b9)]||(this[_0x53ccae(0x1ba)](),this[_0x53ccae(0x1b8)][_0x53ccae(0x1b0)](_0x1150f2=>_0x1150f2[_0x53ccae(0x1e3)]()),this[_0x53ccae(0x1b8)]=[],this[_0x53ccae(0x1b9)]=!0x0,this[_0x53ccae(0x1e8)](_0x53ccae(0x1eb),this),this[_0x53ccae(0x1cb)]());}[_0x1e7c25(0x1ae)](_0x33460f){const _0x373c14=_0x1e7c25,_0xe29b0=new _0xeb52ee({'editor':this[_0x373c14(0x1ca)],'documentContextContent':this[_0x373c14(0x1d0)]()?.[_0x373c14(0x1b1)],..._0x33460f});return this[_0x373c14(0x1b8)][_0x373c14(0x1e5)](_0xe29b0),_0xe29b0[_0x373c14(0x1c4)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x373c14(0x1e8)](_0x373c14(0x1bc),_0xe29b0),_0xe29b0;}[_0x1e7c25(0x1e0)](_0xaad96c,_0x4d0d14=!0x1){const _0x50d58f=_0x1e7c25;this[_0x50d58f(0x1e8)](_0x50d58f(0x1e0),_0xaad96c,_0x4d0d14);}[_0x1e7c25(0x1e2)](){const _0x10458f=_0x1e7c25;this[_0x10458f(0x1ce)]=!0x0,this[_0x10458f(0x1e4)]&&this[_0x10458f(0x1e4)][_0x10458f(0x1ed)][_0x10458f(0x1c7)](),this[_0x10458f(0x1bb)]&&this[_0x10458f(0x1bb)][_0x10458f(0x1b6)](),this[_0x10458f(0x1e4)]=this[_0x10458f(0x1bb)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e90be=_0x2827;function _0x11c4(){const _0x3c098b=['toLocaleLowerCase','getModels','10aNDxGc','ai-chat-model-id-unrecognized','isAvailable','2031VUGCCu','getLocalized','items','ai-chat-default-model-id-unrecognized','365166nRSuAC','AI_MODEL_DESCRIPTION_','2729168IZsGHr','AI_MODEL_DESCRIPTION_AUTO','_getModelById','6zWQhRO','ai-models-unable-to-retrieve','string','some','startsWith','find','_modelList','list','10WTpUmt','name','length','agent','map','AI_MODEL_NAME_AUTO','getModel','toUpperCase','1993201CCXEYe','45769rdKdfy','push','483995LtRyYU','provider','description','452LzOwHk','getAll','_connector','auto','7698053XSOtJN','getDefault','_filterModels','_defaultModelId','getAvailableModels','_availableModels'];_0x11c4=function(){return _0x3c098b;};return _0x11c4();}(function(_0x261cdf,_0x413452){const _0x7f4a82=_0x2827,_0x1c2749=_0x261cdf();while(!![]){try{const _0x5103c1=-parseInt(_0x7f4a82(0x169))/0x1*(parseInt(_0x7f4a82(0x17a))/0x2)+-parseInt(_0x7f4a82(0x17d))/0x3*(parseInt(_0x7f4a82(0x16e))/0x4)+-parseInt(_0x7f4a82(0x16b))/0x5+-parseInt(_0x7f4a82(0x158))/0x6*(-parseInt(_0x7f4a82(0x168))/0x7)+-parseInt(_0x7f4a82(0x155))/0x8+-parseInt(_0x7f4a82(0x181))/0x9+parseInt(_0x7f4a82(0x160))/0xa*(parseInt(_0x7f4a82(0x172))/0xb);if(_0x5103c1===_0x413452)break;else _0x1c2749['push'](_0x1c2749['shift']());}catch(_0x45f230){_0x1c2749['push'](_0x1c2749['shift']());}}}(_0x11c4,0x30ffd));import{EmitterMixin as _0x207d7e,logWarning as _0x3919f8,logError as _0x4f09e2}from'ckeditor5/src/utils.js';import{getTranslation as _0x3fee13}from'../utils/common-translations.js';function _0x2827(_0x201d8d,_0x26aa9c){const _0x11c483=_0x11c4();return _0x2827=function(_0x282703,_0x35f1e3){_0x282703=_0x282703-0x155;let _0x4d1b07=_0x11c483[_0x282703];return _0x4d1b07;},_0x2827(_0x201d8d,_0x26aa9c);}export class AIModels extends _0x207d7e(){[_0x4e90be(0x170)];[_0x4e90be(0x177)];[_0x4e90be(0x175)];[_0x4e90be(0x15e)]=[];constructor({connector:_0x33f494,availableModels:_0x55f7d8,defaultModelId:_0x561324}){const _0x2fb390=_0x4e90be;super(),this[_0x2fb390(0x170)]=_0x33f494,this[_0x2fb390(0x177)]=_0x55f7d8,this[_0x2fb390(0x175)]=_0x561324;}async[_0x4e90be(0x16f)](){const _0x3ad835=_0x4e90be;if(!this[_0x3ad835(0x15e)][_0x3ad835(0x162)])try{const _0x3578a6=this[_0x3ad835(0x170)][_0x3ad835(0x179)](),_0x1b250e=await _0x3578a6[_0x3ad835(0x15f)]();this[_0x3ad835(0x15e)]=_0x1b250e[_0x3ad835(0x17f)];}catch(_0x4c4569){throw _0x4f09e2(_0x3ad835(0x159),{'error':_0x4c4569}),_0x4c4569;}return[...this[_0x3ad835(0x15e)]];}async[_0x4e90be(0x176)](){const _0x390cb3=_0x4e90be,_0x37ace5=await this[_0x390cb3(0x16f)]();return this[_0x390cb3(0x174)](_0x37ace5,this[_0x390cb3(0x177)]);}async[_0x4e90be(0x166)](_0x3685b9){const _0x3e781b=_0x4e90be,_0xc3c39c=await this[_0x3e781b(0x16f)]();if(!_0xc3c39c[_0x3e781b(0x162)])return null;if(_0x3685b9){const _0x208627=this[_0x3e781b(0x157)](_0xc3c39c,_0x3685b9);if(_0x208627)return _0x208627;_0x3919f8(_0x3e781b(0x17b),{'modelId':_0x3685b9,'fallBackModelId':this[_0x3e781b(0x175)]});}return this[_0x3e781b(0x173)]();}async[_0x4e90be(0x173)](){const _0x353fc1=_0x4e90be,_0xec7af5=await this[_0x353fc1(0x176)]();if(!_0xec7af5[_0x353fc1(0x162)])return null;if(this[_0x353fc1(0x175)]){const _0x1f0a5a=this[_0x353fc1(0x157)](_0xec7af5,this[_0x353fc1(0x175)]);if(_0x1f0a5a)return _0x1f0a5a;_0x3919f8(_0x353fc1(0x180),{'defaultModelId':this[_0x353fc1(0x175)],'fallBackModelId':_0xec7af5[0x0]['id']});}return _0xec7af5[0x0];}async[_0x4e90be(0x17c)](_0x13219c){const _0x1d3c2f=_0x4e90be;return(await this[_0x1d3c2f(0x176)]())[_0x1d3c2f(0x15b)](_0x139ba2=>_0x139ba2[_0x1d3c2f(0x161)]===_0x13219c[_0x1d3c2f(0x161)]&&_0x139ba2[_0x1d3c2f(0x16c)]===_0x13219c[_0x1d3c2f(0x16c)]);}[_0x4e90be(0x174)](_0x96721f,_0x5006e1){const _0x1a958e=_0x4e90be;let _0x4d85ab;if(_0x5006e1){_0x4d85ab=[];const _0x32a1cb=_0x1a958e(0x15a)==typeof _0x5006e1?[_0x5006e1[_0x1a958e(0x178)]()]:_0x5006e1[_0x1a958e(0x164)](_0xa2bdeb=>_0xa2bdeb[_0x1a958e(0x178)]());for(const _0xfef276 of _0x32a1cb)for(const _0x536dd3 of _0x96721f)(_0x536dd3['id'][_0x1a958e(0x178)]()===_0xfef276||_0x536dd3[_0x1a958e(0x161)][_0x1a958e(0x178)]()===_0xfef276||Me(_0x536dd3)&&_0x1a958e(0x171)===_0xfef276||_0x536dd3[_0x1a958e(0x16c)][_0x1a958e(0x178)]()===_0xfef276||_0x536dd3['id'][_0x1a958e(0x178)]()[_0x1a958e(0x15c)](_0xfef276))&&_0x4d85ab[_0x1a958e(0x16a)](_0x536dd3);}else _0x4d85ab=_0x96721f;return _0x4d85ab;}[_0x4e90be(0x157)](_0x33d867,_0x30d8c1){const _0x9e5fc8=_0x4e90be;return _0x33d867[_0x9e5fc8(0x15d)](_0x25b75c=>Me(_0x25b75c)&&_0x9e5fc8(0x171)===_0x30d8c1?_0x25b75c:_0x25b75c['id']===_0x30d8c1)||null;}static[_0x4e90be(0x17e)](_0x360fef,_0x287685){const _0x1d0a25=_0x4e90be;return _0x287685[_0x1d0a25(0x164)](_0x1cc17c=>{const _0x137d3c=_0x1d0a25;if(Me(_0x1cc17c))_0x1cc17c[_0x137d3c(0x161)]=_0x3fee13(_0x360fef,_0x137d3c(0x165)),_0x1cc17c[_0x137d3c(0x16d)]=_0x3fee13(_0x360fef,_0x137d3c(0x156));else _0x3fee13(_0x360fef,_0x137d3c(0x182)+_0x1cc17c['id'][_0x137d3c(0x167)]())[_0x137d3c(0x15c)](_0x137d3c(0x182))||(_0x1cc17c[_0x137d3c(0x16d)]=_0x3fee13(_0x360fef,_0x137d3c(0x182)+_0x1cc17c['id'][_0x137d3c(0x167)]()));return _0x1cc17c;});}}function Me(_0x19bfe2){const _0x1c9768=_0x4e90be;return _0x19bfe2['id'][_0x1c9768(0x15c)](_0x1c9768(0x163));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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;}
|
|
23
|
+
const _0x1e5aa3=_0xeffd;(function(_0x590228,_0x22da31){const _0x17ad7c=_0xeffd,_0xe439d5=_0x590228();while(!![]){try{const _0xbdd3e2=parseInt(_0x17ad7c(0x1ed))/0x1*(-parseInt(_0x17ad7c(0x1dd))/0x2)+-parseInt(_0x17ad7c(0x1a8))/0x3*(-parseInt(_0x17ad7c(0x1cb))/0x4)+parseInt(_0x17ad7c(0x1e5))/0x5*(-parseInt(_0x17ad7c(0x1f1))/0x6)+parseInt(_0x17ad7c(0x1c4))/0x7*(parseInt(_0x17ad7c(0x1b8))/0x8)+-parseInt(_0x17ad7c(0x1be))/0x9+parseInt(_0x17ad7c(0x1fe))/0xa*(-parseInt(_0x17ad7c(0x1ac))/0xb)+-parseInt(_0x17ad7c(0x1b7))/0xc*(-parseInt(_0x17ad7c(0x1e8))/0xd);if(_0xbdd3e2===_0x22da31)break;else _0xe439d5['push'](_0xe439d5['shift']());}catch(_0xd9da69){_0xe439d5['push'](_0xe439d5['shift']());}}}(_0x4e27,0x6ac73));import{CKEditorError as _0xd9d590,ObservableMixin as _0x2efe03,uid as _0x459aa9}from'ckeditor5/src/utils.js';import{Element as _0x30eb8f,findAll as _0x3135df,getAttribute as _0x4489ac,getParents as _0x111645,Document as _0x28f801,parse as _0x30b4bf,Text as _0x41ac63}from'../utils/htmlparser.js';import{AIResponseParser as _0xa28b9c}from'../pipeline/airesponseparser.js';function _0xeffd(_0x2ec343,_0x327a8d){const _0x4e276c=_0x4e27();return _0xeffd=function(_0xeffd6f,_0x3692dc){_0xeffd6f=_0xeffd6f-0x1a7;let _0x2604fe=_0x4e276c[_0xeffd6f];return _0x2604fe;},_0xeffd(_0x2ec343,_0x327a8d);}import{AIResponseApplier as _0x3e3386}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x29b7a2}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x18f609}from'../utils/common-translations.js';import{cloneDeep as _0x1cccbd}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1e5aa3(0x1ec),_0x1e5aa3(0x1c0),_0x1e5aa3(0x1cc),_0x1e5aa3(0x1d5)];export const AI_REPLY_TYPES_IGNORED=[_0x1e5aa3(0x1c8)];function _0x4e27(){const _0x5298b3=['setChangeGroupState','stopListening','source','72yqIvPS','4400GaaiQX','includes','convertMarkdownToHTML','_setCachedContentParts','data-id','areActionsDisabled','1143855gVtjaQ','aiResponseApplier','text-delta','new','AI_SUGGESTION_CONTENT_PART_REMOVED','indexOf','3290SHZBsr','sources','forEach','ai-reply-get-content-parts-group-not-found','conversation-title','nextSibling','removed','4QBHXPS','web-search','change:content','fire','previousSibling','parseAndNormalizeHTML','state','filter','interactionId','color:\x20#808080;\x20font-style:\x20italic','reasoning','values','updateChangeGroups','type','parsedMergedContent','getContentParts','set','node','403708vmAWAe','locale','modifiedNodeIds','appendContent','merge','aiResponseParser','data-unstable','destroy','5ORJNvN','replyContentUpdated','editor','2213237mTxatV','changeGroups','every','push','modification-delta','1oubOGB','newNodeIds','unshift','isDone','2789706mUTkfE','cloneNode','removedNodeIds','documentContextContent','find','length','parsedContent','_getDifferentChangeGroups','_getCachedContentParts','context','span','changes','replyChangeGroupStateUpdated','187570TMSNwQ','map','withoutDiff','529059zqtYhu','modified','pending','ai-get-editor-from-context-no-editor','132adivqo','content','withDiff','index','cachedSuggestionContentParts','onContentChange','done','splice'];_0x4e27=function(){return _0x5298b3;};return _0x4e27();}export const AI_REPLY_TITLE_TYPE=_0x1e5aa3(0x1c8);export class AIReply extends _0x2efe03(){['id'];[_0x1e5aa3(0x1d3)];[_0x1e5aa3(0x1d8)];[_0x1e5aa3(0x1c5)]=[];[_0x1e5aa3(0x1f7)]=new _0x28f801([]);[_0x1e5aa3(0x1d9)]=new _0x28f801([]);[_0x1e5aa3(0x1e9)]=[];[_0x1e5aa3(0x1bd)]=!0x1;[_0x1e5aa3(0x1f4)];[_0x1e5aa3(0x1e2)];[_0x1e5aa3(0x1bf)];[_0x1e5aa3(0x1e7)];[_0x1e5aa3(0x1b0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3baeec,content:_0x48cc01='',isDone:_0x3bd04d=!0x1,interactionId:_0x708c59,areActionsDisabled:_0xcaac9f,documentContextContent:_0x74cf6,editor:_0x4b19da,id:_0x249f07}){const _0x1fb68d=_0x1e5aa3;super(),this['id']=_0x249f07||_0x459aa9(),this[_0x1fb68d(0x1d3)]=_0x708c59,this[_0x1fb68d(0x1d8)]=_0x3baeec,this[_0x1fb68d(0x1bd)]=!!_0xcaac9f,this[_0x1fb68d(0x1e7)]=_0x4b19da,this[_0x1fb68d(0x1e2)]=new _0xa28b9c(),this[_0x1fb68d(0x1bf)]=new _0x3e3386(),this[_0x1fb68d(0x1f4)]=_0x30b4bf(_0x74cf6||''),this[_0x1fb68d(0x1db)](_0x1fb68d(0x1f0),_0x3bd04d),this['on'](_0x1fb68d(0x1cd),()=>{const _0x475a46=_0x1fb68d;this[_0x475a46(0x1b1)]();}),this[_0x1fb68d(0x1db)](_0x1fb68d(0x1ad),_0x48cc01);}[_0x1e5aa3(0x1e0)](_0x4b4f44){const _0x55f20f=_0x1e5aa3;this[_0x55f20f(0x1db)](_0x55f20f(0x1ad),this[_0x55f20f(0x1ad)]+_0x4b4f44);}[_0x1e5aa3(0x1b2)](){const _0x54035a=_0x1e5aa3;this[_0x54035a(0x1f0)]||(this[_0x54035a(0x1db)](_0x54035a(0x1f0),!0x0),this[_0x54035a(0x1b1)]());}[_0x1e5aa3(0x1e4)](){const _0x2ca222=_0x1e5aa3;this[_0x2ca222(0x1b5)]();}[_0x1e5aa3(0x1b4)](_0x1f4fb8,_0xfc8f56){const _0x161f06=_0x1e5aa3;this[_0x161f06(0x1e9)][_0x1f4fb8][_0x161f06(0x1d1)]=_0xfc8f56,this[_0x161f06(0x1ce)](_0x161f06(0x1fd),{'reply':this,'index':_0x1f4fb8,'state':_0xfc8f56});}[_0x1e5aa3(0x1da)]({showDiff:_0x478721,groupIndex:_0x10dbf7}){const _0x569656=_0x1e5aa3;if(!this[_0x569656(0x1e7)])throw new _0xd9d590(_0x569656(0x1ab),null,{'aiReply':this});const _0xf257d1=this[_0x569656(0x1f9)](_0x478721,_0x10dbf7);if(_0xf257d1)return _0xf257d1;let _0x2243df=[];if(void 0x0===_0x10dbf7)_0x2243df=this[_0x569656(0x1e9)];else{const _0x30822b=this[_0x569656(0x1e9)][_0x569656(0x1f5)](({index:_0x1d8d63})=>_0x1d8d63===_0x10dbf7);if(!_0x30822b)throw new _0xd9d590(_0x569656(0x1c7),null,{'aiReply':this,'groupIndex':_0x10dbf7});_0x2243df=[_0x30822b];}const _0x4c3447=_0x29b7a2({'editor':this[_0x569656(0x1e7)],'showDiff':_0x478721,'changeGroups':_0x2243df,'documentContextContent':this[_0x569656(0x1f4)]});return this[_0x569656(0x1bb)](_0x478721,_0x4c3447),_0x4c3447;}[_0x1e5aa3(0x1f9)](_0x56af86,_0x592ed7){const _0x5916ea=_0x1e5aa3,_0x379bb1=_0x56af86?_0x5916ea(0x1ae):_0x5916ea(0x1a7);if(!this[_0x5916ea(0x1b0)][_0x379bb1][_0x5916ea(0x1f6)])return null;const _0x54a1f6=this[_0x5916ea(0x1b0)][_0x379bb1];if(void 0x0===_0x592ed7)return _0x1cccbd(_0x54a1f6);{const _0x708cbf=_0x54a1f6[_0x5916ea(0x1f5)](({index:_0x3b1210})=>_0x3b1210===_0x592ed7);if(_0x708cbf)return[_0x1cccbd(_0x708cbf)];}return null;}[_0x1e5aa3(0x1bb)](_0x569c70,_0x366a3f){const _0x3873ef=_0x1e5aa3,_0x5164a4=_0x569c70?_0x3873ef(0x1ae):_0x3873ef(0x1a7);_0x366a3f[_0x3873ef(0x1c6)](_0x3ac970=>{const _0x3320d8=_0x3873ef,_0x23e2ff=this[_0x3320d8(0x1b0)][_0x5164a4],_0x4c26eb=_0x23e2ff[_0x3320d8(0x1f5)](({index:_0x2c2e77})=>_0x2c2e77===_0x3ac970[_0x3320d8(0x1af)]);if(_0x4c26eb){const _0x234323=_0x23e2ff[_0x3320d8(0x1c3)](_0x4c26eb);_0x23e2ff[_0x3320d8(0x1b3)](_0x234323,0x1,_0x3ac970);}else _0x23e2ff[_0x3320d8(0x1eb)](_0x3ac970);});}[_0x1e5aa3(0x1b1)](){const _0x2a1370=_0x1e5aa3;if(_0x2a1370(0x1ec)===this[_0x2a1370(0x1d8)]){this[_0x2a1370(0x1f7)]=this[_0x2a1370(0x1e2)][_0x2a1370(0x1d0)](this[_0x2a1370(0x1ad)]);const _0x403298=this[_0x2a1370(0x1e9)];this[_0x2a1370(0x1d7)]();const _0x4895b0=this[_0x2a1370(0x1f8)](_0x403298,this[_0x2a1370(0x1e9)]);(_0x4895b0[_0x2a1370(0x1f6)]||this[_0x2a1370(0x1f0)])&&(this[_0x2a1370(0x1ce)](_0x2a1370(0x1e6),this,_0x4895b0),this[_0x2a1370(0x1b0)][_0x2a1370(0x1ae)][_0x2a1370(0x1f6)]=this[_0x2a1370(0x1b0)][_0x2a1370(0x1a7)][_0x2a1370(0x1f6)]=0x0);}else this[_0x2a1370(0x1f7)]=this[_0x2a1370(0x1e2)][_0x2a1370(0x1ba)](this[_0x2a1370(0x1ad)]),this[_0x2a1370(0x1ce)](_0x2a1370(0x1e6),this);}[_0x1e5aa3(0x1f8)](_0x3ecc22,_0x439899){const _0x8f429=_0x1e5aa3,_0x4d0481=[];for(const _0x3f881f of _0x439899){const _0x47f7ff=_0x3ecc22[_0x3f881f[_0x8f429(0x1af)]];_0x47f7ff?_0x47f7ff[_0x8f429(0x1fc)][_0x8f429(0x1f6)]!==_0x3f881f[_0x8f429(0x1fc)][_0x8f429(0x1f6)]?_0x4d0481[_0x8f429(0x1eb)](_0x3f881f):_0x47f7ff[_0x8f429(0x1fc)][_0x8f429(0x1c6)]((_0x18c993,_0x466255)=>{const _0x11bd99=_0x8f429,_0x1d85a3=_0x3f881f[_0x11bd99(0x1fc)][_0x466255];_0x18c993['id']!==_0x1d85a3['id']&&_0x4d0481[_0x11bd99(0x1eb)](_0x3f881f);}):_0x4d0481[_0x8f429(0x1eb)](_0x3f881f);}return _0x4d0481;}[_0x1e5aa3(0x1d7)](){const _0x217f1a=_0x1e5aa3,_0x1e913e=new _0x30eb8f('p',{},[new _0x30eb8f(_0x217f1a(0x1fb),{'style':_0x217f1a(0x1d4)},[new _0x41ac63(_0x18f609(this[_0x217f1a(0x1e7)][_0x217f1a(0x1de)],_0x217f1a(0x1c2)))])]),_0x27a8eb=this[_0x217f1a(0x1bf)][_0x217f1a(0x1e1)](this[_0x217f1a(0x1f7)],this[_0x217f1a(0x1f4)][_0x217f1a(0x1f2)](!0x0),{'markUnstableElements':!this[_0x217f1a(0x1f0)],'replaceRemovedWith':_0x1e913e,'cutAfterLastChange':!this[_0x217f1a(0x1f0)]});if(!_0x27a8eb[_0x217f1a(0x1df)][_0x217f1a(0x1f6)]&&!this[_0x217f1a(0x1f0)])return;this[_0x217f1a(0x1d9)]=_0x27a8eb[_0x217f1a(0x1f7)];let _0x1aa2dc=[];if(_0x3135df(_0x2381ae=>{const _0x49c70f=_0x217f1a,_0x5a5669=_0x4489ac(_0x2381ae,_0x49c70f(0x1bc));if(!_0x5a5669||!_0x30b8d7(_0x5a5669))return!0x1;const _0x27ff05=[_0x2381ae,..._0x111645(_0x2381ae)]['at'](-0x2);if(_0x2381ae!=_0x27ff05){const _0x16ea79=_0x4489ac(_0x27ff05,_0x49c70f(0x1bc));_0x30b8d7(_0x16ea79)||(_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x27ff05,'id':_0x16ea79,'type':_0x49c70f(0x1a9)}),_0x27a8eb[_0x49c70f(0x1df)][_0x49c70f(0x1eb)](_0x16ea79));}else _0x27a8eb[_0x49c70f(0x1df)][_0x49c70f(0x1b9)](_0x5a5669)?_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x2381ae,'type':_0x49c70f(0x1a9),'id':_0x5a5669}):_0x27a8eb[_0x49c70f(0x1ee)][_0x49c70f(0x1b9)](_0x5a5669)?_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x2381ae,'type':_0x49c70f(0x1c1),'id':_0x5a5669,'anchorId':_0x4489ac(_0x2381ae[_0x49c70f(0x1cf)],_0x49c70f(0x1bc))}):_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x2381ae,'type':_0x49c70f(0x1ca),'id':_0x5a5669});return!0x0;},this[_0x217f1a(0x1d9)]),_0x1aa2dc=_0x1aa2dc[_0x217f1a(0x1d2)](({node:_0xca1f2c})=>[..._0x111645(_0xca1f2c),_0xca1f2c][_0x217f1a(0x1ea)](_0x3aa4fb=>!_0x4489ac(_0x3aa4fb,_0x217f1a(0x1e3)))),0x0==_0x1aa2dc[_0x217f1a(0x1f6)])return;const _0x44ed9c=[[_0x1aa2dc[0x0]]];for(let _0x261b63=0x1;_0x261b63<_0x1aa2dc[_0x217f1a(0x1f6)];_0x261b63++){const _0x3c3f31=_0x44ed9c[_0x44ed9c[_0x217f1a(0x1f6)]-0x1],_0x1d71e3=_0x3c3f31[_0x3c3f31[_0x217f1a(0x1f6)]-0x1];_0x1aa2dc[_0x261b63][_0x217f1a(0x1dc)][_0x217f1a(0x1cf)]==_0x1d71e3[_0x217f1a(0x1dc)]&&_0x217f1a(0x1a9)!=_0x1aa2dc[_0x261b63][_0x217f1a(0x1d8)]&&_0x217f1a(0x1a9)!=_0x1d71e3[_0x217f1a(0x1d8)]?_0x3c3f31[_0x217f1a(0x1eb)](_0x1aa2dc[_0x261b63]):_0x44ed9c[_0x217f1a(0x1eb)]([_0x1aa2dc[_0x261b63]]);}for(const _0x582ed3 of _0x44ed9c){const _0x2c5199=_0x582ed3[0x0],_0x1d123f=_0x582ed3[_0x582ed3[_0x217f1a(0x1f6)]-0x1],_0x2c977f=_0x5cf9a6(_0x2c5199[_0x217f1a(0x1dc)][_0x217f1a(0x1cf)]);_0x2c977f&&_0x582ed3[_0x217f1a(0x1ef)](_0x2c977f);const _0x505b1c=_0x5cf9a6(_0x1d123f[_0x217f1a(0x1dc)][_0x217f1a(0x1c9)]);_0x505b1c&&_0x582ed3[_0x217f1a(0x1eb)](_0x505b1c);}function _0x30b8d7(_0x23d7c3){const _0x243420=_0x217f1a;return _0x27a8eb[_0x243420(0x1df)][_0x243420(0x1b9)](_0x23d7c3)||_0x27a8eb[_0x243420(0x1ee)][_0x243420(0x1b9)](_0x23d7c3)||_0x27a8eb[_0x243420(0x1f3)][_0x243420(0x1b9)](_0x23d7c3);}function _0x5cf9a6(_0x72b5ad){const _0x51c46b=_0x217f1a;if(_0x72b5ad&&_0x4489ac(_0x72b5ad,_0x51c46b(0x1bc))&&!_0x4489ac(_0x72b5ad,_0x51c46b(0x1e3))){const _0x359deb=_0x4489ac(_0x72b5ad,_0x51c46b(0x1bc));if(!_0x30b8d7(_0x359deb))return{'node':_0x72b5ad,'type':_0x51c46b(0x1fa),'id':_0x359deb};}return null;}this[_0x217f1a(0x1e9)]=_0x44ed9c[_0x217f1a(0x1ff)]((_0x447fdb,_0x53cbdf)=>({'changes':_0x447fdb,'state':_0x217f1a(0x1aa),'index':_0x53cbdf}));}}export function isValidReplyType(_0x511128){const _0x244d13=_0x1e5aa3;return Object[_0x244d13(0x1d6)](AI_REPLY_TYPES)[_0x244d13(0x1b9)](_0x511128);}export function isIgnoredReplyType(_0x5d3165){const _0x321b04=_0x1e5aa3;return AI_REPLY_TYPES_IGNORED[_0x321b04(0x1b9)](_0x5d3165);}export function isReplyTitleType(_0x580849){return _0x580849===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x67244e){const _0x37403f=_0x1e5aa3;return _0x37403f(0x1b6)===_0x67244e;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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));}}
|
|
23
|
+
const _0x1cd92a=_0x1330;(function(_0x17bfff,_0x9c00d3){const _0x10c44a=_0x1330,_0x2a5627=_0x17bfff();while(!![]){try{const _0x5eb58b=-parseInt(_0x10c44a(0xf8))/0x1*(-parseInt(_0x10c44a(0xe4))/0x2)+-parseInt(_0x10c44a(0xf7))/0x3*(parseInt(_0x10c44a(0xe6))/0x4)+-parseInt(_0x10c44a(0xed))/0x5*(-parseInt(_0x10c44a(0x11f))/0x6)+parseInt(_0x10c44a(0xef))/0x7+parseInt(_0x10c44a(0xf6))/0x8+-parseInt(_0x10c44a(0x11e))/0x9*(-parseInt(_0x10c44a(0x113))/0xa)+parseInt(_0x10c44a(0xe9))/0xb*(-parseInt(_0x10c44a(0x111))/0xc);if(_0x5eb58b===_0x9c00d3)break;else _0x2a5627['push'](_0x2a5627['shift']());}catch(_0x877b1a){_0x2a5627['push'](_0x2a5627['shift']());}}}(_0x19aa,0x93e76));import{ObservableMixin as _0xb54ac7,uid as _0x5b29d5}from'ckeditor5/src/utils.js';function _0x19aa(){const _0x171868=['_isExistingNode','_markWrappedElements','newIds','_markLastTagElementUnstable','_insertNodes','afterend','from','_isExistingContentComment','merge','push','includes','4rNEoZR','match','16FFtOKZ','markUnstableElements','data-wrapped-id','30041ifHSmf','map','beforebegin','parentNode','1472765IaelBQ','_findFallbackReferenceNode','4784444rUpTtb','_findNextElementWithDataId','_getNodeDataId','slice','childNodes','lastTouchedId','_isDelNode','1263568UHAeHP','35952WsqTwM','343946mtfnEC','data-unstable','previousSibling','_isNewNode','trim','_storeDeletedElementIds','new-element','filter','_hasWrappedParent','true','_findReferenceNode','removedIds','reverse','lastChild','data-id','splice','markUnstableElementsDepth','_generateUid','data-removed','cutAfterLastChange','forEach','afterbegin','modifiedIds','nextSibling','_replaceNode','6264DwBeme','has','2554490FRzHwr','_findPrevElementWithDataId','replaceRemovedWith','_markUnstableElements','length','_getUid','_removeSpecialComments','_existingDataIds','_touchedNodesState','invalidIds','indexOf','9cAgNYA','6vagLsx','cloneNode','nodeType'];_0x19aa=function(){return _0x171868;};return _0x19aa();}import{findAllByAttribute as _0x499230,findByAttribute as _0x316f4c,getAttribute as _0x43fc81,isComment as _0x185e2d,isTag as _0x46637d,insertElement as _0x572831,moveElement as _0x2dac23,removeElement as _0x450074,replaceElement as _0xf2dcc7,serialize as _0x434ecb,setAttribute as _0x1f9e36,clone as _0x36f115,findAllComments as _0x4d6b39,getParents as _0x2cdf21,getNodeNestingLevel as _0x27d44e,areNodesSame as _0x533ed1,removeElementsAfter as _0x4fefac}from'../utils/htmlparser.js';function _0x1330(_0x2ab65b,_0x137184){const _0x19aa12=_0x19aa();return _0x1330=function(_0x133045,_0x4c5795){_0x133045=_0x133045-0xda;let _0x5ed2ca=_0x19aa12[_0x133045];return _0x5ed2ca;},_0x1330(_0x2ab65b,_0x137184);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb54ac7(){[_0x1cd92a(0x109)];[_0x1cd92a(0x11b)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x1cd92a(0x11a)]=new Set();constructor(_0x157efa){const _0x17871b=_0x1cd92a;super(),this[_0x17871b(0x109)]=_0x157efa||_0x5b29d5;}[_0x1cd92a(0xe1)](_0xa51432,_0xaf82ba,_0x272cf6){const _0x1020f5=_0x1cd92a,_0x192188=_0x36f115(_0xa51432);if(0x0===_0xaf82ba[_0x1020f5(0xf3)][_0x1020f5(0x117)]){const _0x5c4c52=[];return _0x499230(_0x1020f5(0x106),_0x1020f5(0xfe),_0x192188)[_0x1020f5(0x10c)](_0x5a33bb=>{const _0x11dc3a=_0x1020f5,_0x1df18a=this[_0x11dc3a(0x109)]();_0x1f9e36(_0x5a33bb,_0x11dc3a(0x106),_0x1df18a),_0x5c4c52[_0x11dc3a(0xe2)](_0x1df18a);}),this[_0x1020f5(0x119)](_0x192188),{'parsedContent':_0x192188,'newNodeIds':_0x5c4c52,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x272cf6&&_0x272cf6[_0x1020f5(0xe7)]&&this[_0x1020f5(0xdc)](_0x192188),this[_0x1020f5(0x11b)][_0x1020f5(0xdb)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0x10e)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0x103)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0x11c)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0xf4)]=null,this[_0x1020f5(0x11a)]=new Set(_0x499230(_0x1020f5(0x106),null,_0xaf82ba)[_0x1020f5(0xea)](_0x27301a=>_0x43fc81(_0x27301a,_0x1020f5(0x106)))[_0x1020f5(0xff)](_0x4f121c=>!!_0x4f121c));let _0x3f88d4=-0x1,_0x20ae67=!0x1;const _0x220df0=_0x192188[_0x1020f5(0xf3)],_0x2e4496=Array[_0x1020f5(0xdf)](_0x220df0)[_0x1020f5(0xff)](_0x246bae=>!(0x3===_0x246bae[_0x1020f5(0x121)]&&''===_0x434ecb(_0x246bae)[_0x1020f5(0xfc)]())),_0x224695=_0x2e4496[_0x1020f5(0x117)];for(let _0x3f2012=0x0;_0x3f2012<_0x224695;_0x3f2012++){const _0x359fbe=_0x2e4496[_0x3f2012],_0x2e7fed=_0x2e4496[_0x3f2012+0x1];if(this[_0x1020f5(0xfb)](_0x359fbe)){if(-0x1===_0x3f88d4&&(_0x3f88d4=_0x3f2012),this[_0x1020f5(0xda)](_0x359fbe),!this[_0x1020f5(0xfb)](_0x2e7fed)){const [_0x107177,_0x5b3d60]=this[_0x1020f5(0x102)](_0x359fbe,_0x20ae67,_0xaf82ba);if(_0x107177){const _0x1a4a1a=Array[_0x1020f5(0xdf)](_0x2e4496)[_0x1020f5(0xf2)](_0x3f88d4,_0x3f2012+0x1);this[_0x1020f5(0xdd)](_0x107177,_0x1a4a1a,_0x5b3d60),_0x3f88d4=-0x1;}}}else{if(this[_0x1020f5(0xe0)](_0x359fbe))_0x20ae67=!0x0;else{if(this[_0x1020f5(0x122)](_0x359fbe)){const _0x4a0908=_0x43fc81(_0x359fbe,_0x1020f5(0x106));if(_0x4a0908&&this[_0x1020f5(0x11a)][_0x1020f5(0x112)](_0x4a0908)){const _0x473455=_0x316f4c(_0x1020f5(0x106),_0x4a0908,_0xaf82ba);this[_0x1020f5(0x110)](_0x473455,_0x359fbe);}if(this[_0x1020f5(0x11b)][_0x1020f5(0x103)][_0x1020f5(0xe3)](_0x4a0908)){const _0x55e011=this[_0x1020f5(0x11b)][_0x1020f5(0x103)][_0x1020f5(0x11d)](_0x4a0908);this[_0x1020f5(0x11b)][_0x1020f5(0x103)][_0x1020f5(0x107)](_0x55e011,0x1);}}else{if(this[_0x1020f5(0xf5)](_0x359fbe)){const _0x5217e1=_0x43fc81(_0x359fbe,_0x1020f5(0x106));this[_0x1020f5(0x11b)][_0x1020f5(0x10e)][_0x1020f5(0xe3)](_0x5217e1)||this[_0x1020f5(0xfd)](_0x359fbe);}}}}}for(const _0x1c0746 of this[_0x1020f5(0x11b)][_0x1020f5(0x103)]){const _0x49b579=_0x316f4c(_0x1020f5(0x106),_0x1c0746,_0xaf82ba);if(_0x49b579){if(_0x272cf6&&_0x272cf6[_0x1020f5(0x115)]){this[_0x1020f5(0x11b)][_0x1020f5(0xf4)]=_0x1c0746;const _0x746fb9=_0x272cf6[_0x1020f5(0x115)][_0x1020f5(0x120)](!0x0);_0x1f9e36(_0x746fb9,_0x1020f5(0x106),_0x1c0746),_0x1f9e36(_0x746fb9,_0x1020f5(0x10a),_0x1020f5(0x101)),_0xf2dcc7(_0x49b579,_0x746fb9);}else _0x450074(_0x49b579);}}if(_0x499230(_0x1020f5(0xe8),null,_0xaf82ba)[_0x1020f5(0x10c)](_0x13ab72=>{const _0x159114=_0x1020f5,_0x2f4c4a=_0x43fc81(_0x13ab72,_0x159114(0xe8)),_0xd51d89=_0x316f4c(_0x159114(0x106),_0x2f4c4a,_0xaf82ba);_0xd51d89&&_0x2dac23(_0xd51d89,_0x13ab72);}),_0x499230(_0x1020f5(0x106),_0x1020f5(0xfe),_0xaf82ba)[_0x1020f5(0x10c)](_0x3b29f3=>{const _0x52a913=_0x1020f5,_0x4cda73=this[_0x52a913(0x118)](_0x3b29f3);_0x1f9e36(_0x3b29f3,_0x52a913(0x106),_0x4cda73),this[_0x52a913(0x11b)][_0x52a913(0xdb)][_0x52a913(0xe2)](_0x4cda73);}),this[_0x1020f5(0x119)](_0xaf82ba),_0x272cf6&&_0x272cf6[_0x1020f5(0xe7)]&&this[_0x1020f5(0x116)](_0xaf82ba,_0x272cf6[_0x1020f5(0x108)]||0x0),_0x272cf6&&_0x272cf6[_0x1020f5(0x10b)]&&this[_0x1020f5(0x11b)][_0x1020f5(0xf4)]){let _0xa01569=_0x316f4c(_0x1020f5(0x106),this[_0x1020f5(0x11b)][_0x1020f5(0xf4)],_0xaf82ba);for(;_0xa01569;)_0x4fefac(_0xa01569),_0xa01569=_0xa01569[_0x1020f5(0xec)];}return{'parsedContent':_0xaf82ba,'newNodeIds':this[_0x1020f5(0x11b)][_0x1020f5(0xdb)],'modifiedNodeIds':this[_0x1020f5(0x11b)][_0x1020f5(0x10e)],'removedNodeIds':this[_0x1020f5(0x11b)][_0x1020f5(0x103)]};}[_0x1cd92a(0xdd)](_0x7ebc8,_0x495be9,_0x2d9841){const _0x54bdb8=_0x1cd92a;for(const _0x39b632 of _0x495be9){const _0x617825=this[_0x54bdb8(0x118)](_0x39b632);_0x1f9e36(_0x39b632,_0x54bdb8(0x106),_0x617825),this[_0x54bdb8(0x11b)][_0x54bdb8(0xdb)][_0x54bdb8(0xe2)](_0x617825),this[_0x54bdb8(0x11b)][_0x54bdb8(0xf4)]=_0x617825;}const _0x541820=_0x54bdb8(0x10d)===_0x2d9841||_0x54bdb8(0xde)===_0x2d9841?_0x495be9[_0x54bdb8(0x104)]():_0x495be9;for(const _0x559253 of _0x541820)_0x572831(_0x7ebc8,_0x559253,_0x2d9841);}[_0x1cd92a(0x110)](_0x1db845,_0x25cd83){const _0x4cd81e=_0x1cd92a;if(!_0x1db845)return;if(_0x533ed1(_0x1db845,_0x25cd83))return;const _0x48ee57=this[_0x4cd81e(0x118)](_0x1db845);_0x1f9e36(_0x25cd83,_0x4cd81e(0x106),_0x48ee57),this[_0x4cd81e(0x11b)][_0x4cd81e(0x10e)][_0x4cd81e(0xe2)](_0x48ee57),this[_0x4cd81e(0x11b)][_0x4cd81e(0xf4)]=_0x48ee57,_0xf2dcc7(_0x1db845,_0x25cd83[_0x4cd81e(0x120)](!0x0));}[_0x1cd92a(0x102)](_0x4cb3ba,_0x119017,_0x5c1fea){const _0xef4b1b=_0x1cd92a,_0xd62124=this[_0xef4b1b(0x114)](_0x4cb3ba,!0x1);if(_0xd62124){const _0x667fe2=this[_0xef4b1b(0xf1)](_0xd62124),_0x5183cf=_0x316f4c(_0xef4b1b(0x106),_0x667fe2,_0x5c1fea);if(_0x5183cf)return[_0x5183cf,_0xef4b1b(0xde)];this[_0xef4b1b(0x11b)][_0xef4b1b(0x11c)][_0xef4b1b(0xe2)](_0x667fe2);}const _0x180579=this[_0xef4b1b(0xf0)](_0x4cb3ba,!0x1);if(_0x180579){const _0x5ce410=this[_0xef4b1b(0xf1)](_0x180579),_0x13fb7d=_0x316f4c(_0xef4b1b(0x106),_0x5ce410,_0x5c1fea);if(_0x13fb7d)return[_0x13fb7d,_0xef4b1b(0xeb)];this[_0xef4b1b(0x11b)][_0xef4b1b(0x11c)][_0xef4b1b(0xe2)](_0x5ce410);}return _0x119017?_0x4cb3ba[_0xef4b1b(0x10f)]?this[_0xef4b1b(0xee)](_0x4cb3ba,_0x5c1fea):[_0x5c1fea[_0xef4b1b(0xf3)][_0x5c1fea[_0xef4b1b(0xf3)][_0xef4b1b(0x117)]-0x1],_0xef4b1b(0xde)]:[_0x5c1fea[_0xef4b1b(0xf3)][0x0],_0xef4b1b(0xeb)];}[_0x1cd92a(0xee)](_0x5059e5,_0x4b4b94){const _0x2bc81b=_0x1cd92a,_0x153bc2=[],_0x11d30d=this[_0x2bc81b(0x114)](_0x5059e5,!0x0);if(_0x11d30d){const _0x13013f=this[_0x2bc81b(0xf1)](_0x11d30d),_0x424e9c=_0x316f4c(_0x2bc81b(0x106),_0x13013f,_0x4b4b94);_0x424e9c&&_0x153bc2[_0x2bc81b(0xe2)]([_0x424e9c,_0x2bc81b(0xde)]);}const _0x3e19ee=this[_0x2bc81b(0xf0)](_0x5059e5,!0x0);if(_0x3e19ee){const _0x11087e=this[_0x2bc81b(0xf1)](_0x3e19ee),_0xa114e1=_0x316f4c(_0x2bc81b(0x106),_0x11087e,_0x4b4b94);_0xa114e1&&_0x153bc2[_0x2bc81b(0xe2)]([_0xa114e1,_0x2bc81b(0xeb)]);}if(_0x153bc2[_0x2bc81b(0x117)]>0x1)return _0x27d44e(_0x153bc2[0x0][0x0])<=_0x27d44e(_0x153bc2[0x1][0x0])?_0x153bc2[0x0]:_0x153bc2[0x1];return 0x1===_0x153bc2[_0x2bc81b(0x117)]?_0x153bc2[0x0]:[_0x4b4b94[_0x2bc81b(0x105)],_0x2bc81b(0xde)];}[_0x1cd92a(0xf0)](_0x419824,_0x593777){const _0x2d450d=_0x1cd92a;let _0x218913=_0x419824[_0x2d450d(0x10f)],_0x586053=null,_0x342244=!0x1;for(;_0x218913;){if(_0x185e2d(_0x218913)){if(this[_0x2d450d(0xf5)](_0x218913)&&(_0x586053=_0x218913),this[_0x2d450d(0xe0)](_0x218913)&&_0x593777&&!_0x342244){_0x342244=!0x0,_0x218913=_0x218913[_0x2d450d(0x10f)];continue;}break;}const _0x2a079c=_0x43fc81(_0x218913,_0x2d450d(0x106));if(_0x2a079c&&_0x2d450d(0xfe)!==_0x2a079c&&this[_0x2d450d(0x11a)][_0x2d450d(0x112)](_0x2a079c)){_0x586053=_0x218913;break;}_0x218913=_0x218913[_0x2d450d(0x10f)];}return _0x586053;}[_0x1cd92a(0x114)](_0x51677f,_0x3db6bf){const _0x15f524=_0x1cd92a;let _0x420495=_0x51677f[_0x15f524(0xfa)],_0x522ed2=null,_0x496925=!0x1;for(;_0x420495;){if(_0x185e2d(_0x420495)){if(this[_0x15f524(0xf5)](_0x420495)&&(_0x522ed2=_0x420495),this[_0x15f524(0xe0)](_0x420495)&&_0x3db6bf&&!_0x496925){_0x496925=!0x0,_0x420495=_0x420495[_0x15f524(0xfa)];continue;}break;}const _0x2f275f=_0x43fc81(_0x420495,_0x15f524(0x106));if(_0x2f275f&&_0x15f524(0xfe)!==_0x2f275f&&this[_0x15f524(0x11a)][_0x15f524(0x112)](_0x2f275f)){_0x522ed2=_0x420495;break;}_0x420495=_0x420495[_0x15f524(0xfa)];}return _0x522ed2;}[_0x1cd92a(0xda)](_0x46dfc0){const _0x4a933d=_0x1cd92a;_0x46637d(_0x46dfc0)&&_0x499230(_0x4a933d(0x106),null,_0x46dfc0)[_0x4a933d(0x10c)](_0x5a30a7=>{const _0x595d1a=_0x4a933d;if(this[_0x595d1a(0x122)](_0x5a30a7)&&!this[_0x595d1a(0x100)](_0x5a30a7)){const _0x4d2d65=_0x43fc81(_0x5a30a7,_0x595d1a(0x106));_0x1f9e36(_0x5a30a7,_0x595d1a(0xe8),_0x4d2d65),_0x1f9e36(_0x5a30a7,_0x595d1a(0x106),null);}});}[_0x1cd92a(0xf1)](_0x357fd0){const _0x52a23a=_0x1cd92a;if(!_0x357fd0)return null;if(_0x46637d(_0x357fd0))return _0x43fc81(_0x357fd0,_0x52a23a(0x106));if(_0x185e2d(_0x357fd0)){const _0x338b9e=_0x434ecb(_0x357fd0)[_0x52a23a(0xe5)](/removed[\s*-]data-id="([^"]+)"/);if(_0x338b9e&&_0x338b9e[0x1])return _0x338b9e[0x1];}return null;}[_0x1cd92a(0xfd)](_0x1e4911){const _0x8a4a27=_0x1cd92a;if(_0x185e2d(_0x1e4911)){const _0x7048f4=_0x434ecb(_0x1e4911)[_0x8a4a27(0xe5)](/removed[\s*-]data-id="([^"]+)"/);_0x7048f4&&_0x7048f4[0x1]&&this[_0x8a4a27(0x11b)][_0x8a4a27(0x103)][_0x8a4a27(0xe2)](_0x7048f4[0x1]);}}[_0x1cd92a(0x118)](_0x223e34){const _0x21d4ce=_0x1cd92a;return this[_0x21d4ce(0x122)](_0x223e34)?_0x43fc81(_0x223e34,_0x21d4ce(0x106)):this[_0x21d4ce(0x109)]();}[_0x1cd92a(0x119)](_0x6a7435){const _0x16f376=_0x1cd92a;_0x4d6b39(_0x6a7435)[_0x16f376(0xff)](_0x432cd6=>this[_0x16f376(0xf5)](_0x432cd6)||this[_0x16f376(0xe0)](_0x432cd6))[_0x16f376(0x10c)](_0x426042=>{_0x450074(_0x426042);});}[_0x1cd92a(0xdc)](_0xfcd77f){const _0x2a9cb5=_0x1cd92a,_0x584fd2=_0xfcd77f[_0x2a9cb5(0xf3)],_0x426dab=_0x584fd2[_0x584fd2[_0x2a9cb5(0x117)]-0x1];_0x426dab&&_0x46637d(_0x426dab)&&_0x1f9e36(_0x426dab,_0x2a9cb5(0xf9),_0x2a9cb5(0x101));}[_0x1cd92a(0x116)](_0x47a834,_0x5dd8e4){const _0x388d7c=_0x1cd92a,_0x1f4331=_0x316f4c(_0x388d7c(0xf9),_0x388d7c(0x101),_0x47a834);if(!_0x1f4331)return;const _0x488c25=_0x2cdf21(_0x1f4331)[_0x388d7c(0xf2)](0x0,-0x1),_0x435c77=_0x488c25[_0x388d7c(0x117)];let _0xb291eb=_0x1f4331;if(_0x435c77>_0x5dd8e4){let _0x2a670e=_0x435c77,_0x567059=null;for(;_0x2a670e>_0x5dd8e4&&_0x2a670e>=0x0;)_0x2a670e--,_0x567059=_0x488c25[_0x2a670e];_0x567059&&(_0xb291eb=_0x567059,_0x1f9e36(_0x1f4331,_0x388d7c(0xf9),null),_0x1f9e36(_0x567059,_0x388d7c(0xf9),_0x388d7c(0x101)));}else{if(_0x435c77<_0x5dd8e4){let _0x1d99bd=_0x435c77,_0x1a86af=_0x1f4331;for(;_0x1d99bd<_0x5dd8e4;){const _0x3313d6=_0x1a86af[_0x388d7c(0xf3)][_0x388d7c(0xff)](_0x43f1c4=>_0x46637d(_0x43f1c4));if(0x0===_0x3313d6[_0x388d7c(0x117)])break;_0x1d99bd++,_0x1a86af=_0x3313d6[_0x3313d6[_0x388d7c(0x117)]-0x1];}_0x1a86af&&(_0xb291eb=_0x1a86af,_0x1f9e36(_0x1f4331,_0x388d7c(0xf9),null),_0x1f9e36(_0x1a86af,_0x388d7c(0xf9),_0x388d7c(0x101)));}}let _0x2a1008=_0xb291eb;for(;_0x2a1008;){for(;_0x2a1008[_0x388d7c(0x10f)];)_0x2a1008=_0x2a1008[_0x388d7c(0x10f)],_0x46637d(_0x2a1008)&&_0x1f9e36(_0x2a1008,_0x388d7c(0xf9),_0x388d7c(0x101));_0x2a1008=_0x2a1008[_0x388d7c(0xec)];}}[_0x1cd92a(0xfb)](_0x4c6356){const _0x481237=_0x1cd92a;return Boolean(_0x481237(0xfe)===_0x43fc81(_0x4c6356,_0x481237(0x106)));}[_0x1cd92a(0x122)](_0x269e4b){const _0x8a4d34=_0x1cd92a;return Boolean((_0x43fc81(_0x269e4b,_0x8a4d34(0x106))||'')[_0x8a4d34(0x117)]>0x0&&_0x8a4d34(0xfe)!==_0x43fc81(_0x269e4b,_0x8a4d34(0x106)));}[_0x1cd92a(0xf5)](_0xbc9756){const _0x252018=_0x1cd92a;return!!_0xbc9756&&Boolean(_0x185e2d(_0xbc9756)&&_0x434ecb(_0xbc9756)[_0x252018(0xe5)](/removed[\s*-]data-id="[^"]+"/));}[_0x1cd92a(0x100)](_0xd6e0d8){const _0x4d8beb=_0x1cd92a;let _0x2cf869=_0xd6e0d8[_0x4d8beb(0xec)];for(;_0x2cf869;){if(_0x43fc81(_0x2cf869,_0x4d8beb(0xe8)))return!0x0;_0x2cf869=_0x2cf869[_0x4d8beb(0xec)];}return!0x1;}[_0x1cd92a(0xe0)](_0x6c62ed){const _0x44dd5f=_0x1cd92a;return Boolean(_0x185e2d(_0x6c62ed)&&_0x434ecb(_0x6c62ed)[_0x44dd5f(0xe5)](/\s*existing[\s*-](content|document)\s*/g));}}
|