@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +17 -2
- package/dist/index.css +18 -2
- package/dist/index.js +4 -4
- 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/lang/contexts.json +1 -0
- 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.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +2 -0
- 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.d.ts +6 -0
- 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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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/aichat/utils/scrollmanager.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 +1 -1
- 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/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/aieditorintegration/aieditorintegration.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- 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/utils/common-translations.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/aireviewmodels.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/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/aireviewmodeformamanager.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.d.ts +6 -0
- 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/augmentation.d.ts +6 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aisuggestioncontainer.css +8 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa758c5=_0x43c0;function _0x43c0(_0x3cfe27,_0xd94975){const _0x5e6ef8=_0x5e6e();return _0x43c0=function(_0x43c0cb,_0x58ca63){_0x43c0cb=_0x43c0cb-0xce;let _0x22425d=_0x5e6ef8[_0x43c0cb];return _0x22425d;},_0x43c0(_0x3cfe27,_0xd94975);}function _0x5e6e(){const _0x2629ed=['items','change:errorMessage','clear','updateItemTitle','ck-ai-chat-error__dismiss-button','6367704WiTfWq','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','bindTemplate','some','resizeButton','getItem','children','ck-ai-header\x20ck-ai-header_history','remove','isMaximized','_refreshSearch','set','fieldView','change:isLoading','openChat','isLoading','locale','isEmptyViewVisible','_createSearchView','div','push','setTemplate','ck-ai-chat-history','_createErrorView','emptyView','bind','AI_CHAT_HISTORY_HEADING','sectionsView','indexOf','element','ltr','ck-reset_all','_createEmptyStateView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history__empty-message','searchView','updateTitle','14182EYABvR','removeHistoryItem','AI_CHAT_HISTORY_SEARCH_LABEL','title','AI_CHAT_HISTORY_EMPTY_MESSAGE','removeItem','add','search','errorView','length','3896WROicl','aiHistory','2454525OEdujg','delegate','ck-rounded-corners','updateLoadingState','isVisible','queryView','updateItemLoadingState','fire','_createSkeletonView','change:hasItems','execute','value','_createListItemViews','ck-ai-chat-history__empty','updateHistoryItemsWithCategories','ck-ai-chat-history__open-chat-button','sections','ck-ai-chat-error','isSearchViewVisible','extendTemplate','skeletonView','hasItems','687688VCqqXV','itemsViews','32173632oOqmUL','_updateViewVisibility','render','5panzFA','errorMessage','ck-hidden','ck-ai-chat-history__content','addMany','splice','2207580FhKGPi','80986nQFiCQ'];_0x5e6e=function(){return _0x2629ed;};return _0x5e6e();}(function(_0x15c168,_0x5cfb47){const _0x4d4d0a=_0x43c0,_0x164ebe=_0x15c168();while(!![]){try{const _0x5e8610=parseInt(_0x4d4d0a(0x10f))/0x1+parseInt(_0x4d4d0a(0x10e))/0x2+parseInt(_0x4d4d0a(0xed))/0x3+-parseInt(_0x4d4d0a(0x103))/0x4*(-parseInt(_0x4d4d0a(0x108))/0x5)+parseInt(_0x4d4d0a(0x115))/0x6+parseInt(_0x4d4d0a(0xe1))/0x7*(parseInt(_0x4d4d0a(0xeb))/0x8)+-parseInt(_0x4d4d0a(0x105))/0x9;if(_0x5e8610===_0x5cfb47)break;else _0x164ebe['push'](_0x164ebe['shift']());}catch(_0x33a38f){_0x164ebe['push'](_0x164ebe['shift']());}}}(_0x5e6e,0x9e323));import{View as _0x37d288,SearchTextView as _0x4d56c9,FormHeaderView as _0x5a5627,ButtonView as _0xff997a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x19ab9a,IconCancel as _0x45f1b7}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x13eddf}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x450130}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x687942}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4ec8fd}from'../aichathistoryui.js';import{AISkeletonView as _0x30e960,SKELETON_DEFINITIONS as _0x5849fd}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x573891}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x408d68}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x37d288{[_0xa758c5(0xdf)];[_0xa758c5(0xe9)];[_0xa758c5(0x101)];[_0xa758c5(0xd4)];[_0xa758c5(0xd7)];[_0xa758c5(0x11a)];constructor(_0x512ed0,_0x1f8210){const _0x54ad18=_0xa758c5;super(_0x512ed0),this[_0x54ad18(0x121)](_0x54ad18(0x102),!0x1),this[_0x54ad18(0x121)](_0x54ad18(0x125),!0x0),this[_0x54ad18(0x121)](_0x54ad18(0x109),''),this[_0x54ad18(0x121)](_0x54ad18(0x11f),!0x1),this[_0x54ad18(0x121)](_0x54ad18(0xff),!0x1),this[_0x54ad18(0x121)](_0x54ad18(0x127),!0x1);const _0x436d1a=new _0x5a5627(_0x512ed0,{'label':_0x408d68(_0x512ed0,_0x54ad18(0xd6)),'icon':_0x19ab9a,'class':_0x54ad18(0x11d)});_0x1f8210&&(this[_0x54ad18(0x11a)]=_0x573891(_0x512ed0,this),_0x436d1a[_0x54ad18(0x11c)][_0x54ad18(0xe7)](this[_0x54ad18(0x11a)])),this[_0x54ad18(0xd7)]=new _0x13eddf(_0x512ed0,[]),this[_0x54ad18(0xd7)][_0x54ad18(0xee)](..._0x4ec8fd)['to'](this),this[_0x54ad18(0xe9)]=this[_0x54ad18(0xd3)](),this[_0x54ad18(0x101)]=this[_0x54ad18(0xf5)](),this[_0x54ad18(0xd4)]=this[_0x54ad18(0xdc)](),this[_0x54ad18(0xdf)]=this[_0x54ad18(0xce)](),this['on'](_0x54ad18(0x123),()=>this[_0x54ad18(0x106)]()),this['on'](_0x54ad18(0xf6),()=>this[_0x54ad18(0x106)]()),this['on'](_0x54ad18(0x111),()=>this[_0x54ad18(0x106)]()),this[_0x54ad18(0xd1)]({'tag':_0x54ad18(0xcf),'attributes':{'class':['ck',_0x54ad18(0xdb),_0x54ad18(0xd2),_0x54ad18(0xef)],'dir':_0x54ad18(0xda)},'children':[_0x436d1a,{'tag':_0x54ad18(0xcf),'attributes':{'class':[_0x54ad18(0x10b)]},'children':[this[_0x54ad18(0x101)],this[_0x54ad18(0xe9)],this[_0x54ad18(0xd4)],this[_0x54ad18(0xdf)]]}]});}[_0xa758c5(0x106)](){const _0x198a4f=_0xa758c5;this[_0x198a4f(0xff)]=!this[_0x198a4f(0x125)]&&this[_0x198a4f(0x102)]&&!this[_0x198a4f(0x109)],this[_0x198a4f(0x127)]=!this[_0x198a4f(0x125)]&&!this[_0x198a4f(0x102)]&&!this[_0x198a4f(0x109)];}[_0xa758c5(0xce)](){const _0x2bb396=_0xa758c5,_0x4f7139=new _0x4d56c9(this[_0x2bb396(0x126)],{'filteredView':this[_0x2bb396(0xd7)],'queryView':{'label':_0x408d68(this[_0x2bb396(0x126)],_0x2bb396(0xe3))},'infoView':{'text':{'notFound':{'primary':_0x50b448=>_0x408d68(this[_0x2bb396(0x126)],_0x2bb396(0xdd),_0x50b448),'secondary':_0x408d68(this[_0x2bb396(0x126)],_0x2bb396(0x117))}}}});return _0x4f7139['on'](_0x2bb396(0x107),()=>{const _0x56bf4b=_0x2bb396;this[_0x56bf4b(0xdf)][_0x56bf4b(0x11c)][_0x56bf4b(0xe7)](this[_0x56bf4b(0xe9)],0x1);}),_0x4f7139[_0x2bb396(0x100)]({'attributes':{'class':[this[_0x2bb396(0x118)]['if'](_0x2bb396(0xff),_0x2bb396(0x10a),_0x12af1e=>!_0x12af1e)]}}),_0x4f7139;}[_0xa758c5(0xf5)](){const _0x214a8b=_0xa758c5,_0x47c071=new _0x30e960(this[_0x214a8b(0x126)],_0x5849fd[_0x214a8b(0xec)]);return _0x47c071[_0x214a8b(0x100)]({'attributes':{'class':[this[_0x214a8b(0x118)]['if'](_0x214a8b(0x125),_0x214a8b(0x10a),_0x431656=>!_0x431656)]}}),_0x47c071;}[_0xa758c5(0xd3)](){const _0x8a585f=_0xa758c5,_0x529c8d=new _0x37d288(this[_0x8a585f(0x126)]),_0x56b074=new _0xff997a(this[_0x8a585f(0x126)]);return _0x56b074[_0x8a585f(0x121)]({'withText':!0x1,'icon':_0x45f1b7,'class':_0x8a585f(0x114)}),_0x56b074[_0x8a585f(0xd5)](_0x8a585f(0xf1))['to'](this,_0x8a585f(0x102),_0x5069a3=>!!_0x5069a3),_0x56b074['on'](_0x8a585f(0xf7),()=>{const _0x4ac8c0=_0x8a585f;this[_0x4ac8c0(0x109)]='';}),_0x529c8d[_0x8a585f(0xd1)]({'tag':_0x8a585f(0xcf),'attributes':{'class':['ck',_0x8a585f(0xfe),this[_0x8a585f(0x118)]['if'](_0x8a585f(0x109),_0x8a585f(0x10a),_0x53673e=>!_0x53673e)]},'children':[{'tag':'p','children':[{'text':this[_0x8a585f(0x118)]['to'](_0x8a585f(0x109))}]},_0x56b074]}),_0x529c8d;}[_0xa758c5(0xdc)](){const _0x319482=_0xa758c5,_0x3303bb=new _0xff997a(this[_0x319482(0x126)]);_0x3303bb[_0x319482(0x121)]({'withText':!0x0,'label':_0x408d68(this[_0x319482(0x126)],_0x319482(0x116)),'class':_0x319482(0xfc)}),_0x3303bb['on'](_0x319482(0xf7),()=>{const _0x50cf8e=_0x319482;this[_0x50cf8e(0xf4)](_0x50cf8e(0x124));});const _0x3ab047=new _0x37d288(this[_0x319482(0x126)]);return _0x3ab047[_0x319482(0xd1)]({'tag':_0x319482(0xcf),'attributes':{'class':[_0x319482(0xfa),this[_0x319482(0x118)]['if'](_0x319482(0x127),_0x319482(0x10a),_0x3624f2=>!_0x3624f2)]},'children':[{'tag':'p','attributes':{'class':[_0x319482(0xde)]},'children':[_0x408d68(this[_0x319482(0x126)],_0x319482(0xe5))]},_0x3303bb]}),_0x3ab047;}[_0xa758c5(0xf9)](_0x358ed4,_0x5c931){const _0x39d4b5=_0xa758c5,_0x4808d2=[];for(const _0x56c44c of _0x358ed4){const _0x142527=new _0x687942(_0x5c931,_0x56c44c);_0x142527[_0x39d4b5(0xee)](..._0x4ec8fd)['to'](this),_0x4808d2[_0x39d4b5(0xd0)](_0x142527);}return _0x4808d2;}[_0xa758c5(0xfb)](_0x11948d){const _0x15c008=_0xa758c5,_0x5bc5f7=this[_0x15c008(0x126)]||'en',_0xb0e5e5=[];for(const _0x7ac4c2 of _0x11948d){const _0x18bd21=this[_0x15c008(0xf9)](_0x7ac4c2[_0x15c008(0x110)],_0x5bc5f7);_0xb0e5e5[_0x15c008(0xd0)](new _0x450130(_0x5bc5f7,{'title':_0x7ac4c2[_0x15c008(0xe4)],'items':_0x18bd21}));}this[_0x15c008(0xd7)][_0x15c008(0xfd)]=_0xb0e5e5,this[_0x15c008(0xd7)][_0x15c008(0x110)][_0x15c008(0x112)](),this[_0x15c008(0xd7)][_0x15c008(0x110)][_0x15c008(0x10c)](_0xb0e5e5),this[_0x15c008(0x102)]=_0x11948d[_0x15c008(0x119)](_0x2dd723=>_0x2dd723[_0x15c008(0x110)][_0x15c008(0xea)]>0x0),this[_0x15c008(0x120)]();}[_0xa758c5(0xe2)](_0x2e77a3){const _0x39aaae=_0xa758c5;for(const _0x4202a6 of this[_0x39aaae(0xd7)][_0x39aaae(0xfd)]){const _0x402627=_0x4202a6[_0x39aaae(0x11b)](_0x2e77a3);if(_0x402627){if(_0x4202a6[_0x39aaae(0xe6)](_0x402627),0x0===_0x4202a6[_0x39aaae(0x104)][_0x39aaae(0xea)]){const _0x5bf79c=this[_0x39aaae(0xd7)][_0x39aaae(0xfd)][_0x39aaae(0xd8)](_0x4202a6);-0x1!==_0x5bf79c&&(this[_0x39aaae(0xd7)][_0x39aaae(0xfd)][_0x39aaae(0x10d)](_0x5bf79c,0x1),this[_0x39aaae(0xd7)][_0x39aaae(0x110)][_0x39aaae(0x11e)](_0x4202a6));}this[_0x39aaae(0x102)]=this[_0x39aaae(0xd7)][_0x39aaae(0xfd)][_0x39aaae(0xea)]>0x0,this[_0x39aaae(0x120)]();break;}}}[_0xa758c5(0x113)](_0x49468c,_0x120aaa){const _0x8b8bd8=_0xa758c5;for(const _0x5169b7 of this[_0x8b8bd8(0xd7)][_0x8b8bd8(0xfd)]){const _0xa1a9c3=_0x5169b7[_0x8b8bd8(0x11b)](_0x49468c);if(_0xa1a9c3){_0xa1a9c3[_0x8b8bd8(0xe0)](_0x120aaa);break;}}}[_0xa758c5(0xf3)](_0x1b7dd5,_0x35803a,_0x2bccea){const _0x76c33c=_0xa758c5;for(const _0x3a2c03 of this[_0x76c33c(0xd7)][_0x76c33c(0xfd)]){const _0x36546a=_0x3a2c03[_0x76c33c(0x11b)](_0x1b7dd5);if(_0x36546a){_0x36546a[_0x76c33c(0xf0)](_0x35803a,_0x2bccea);break;}}}[_0xa758c5(0x120)](){const _0x5cc75d=_0xa758c5;if(this[_0x5cc75d(0x102)]){const _0x5aafec=this[_0x5cc75d(0xdf)][_0x5cc75d(0xf2)][_0x5cc75d(0x122)]?.[_0x5cc75d(0xd9)]?.[_0x5cc75d(0xf8)]||'';this[_0x5cc75d(0xdf)][_0x5cc75d(0xe8)](_0x5aafec);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1b07(){const _0x5c6804=['items','decode','reset','plugins','isOfficialPlugin','3lBuUXq','init','getReader','requires','startConversation','length','PATCH','keys','request','deleteWebResource','text','MAKE_TONE_CASUAL','deleteDocument','CloudServices','executeCustomAction','/actions/system/','make-tone-casual','https://ai.cke-cs.com/v1','Content-Type','fetchDocument','605oUSljN','/conversations/','file','abortController','limit','name','TRANSLATE','DELETE','MAKE_LONGER','updateConversation','7tQJXbh','append','/reviews/system/','parse','executeAction','/web-resources','ai-request-aborted','/calls','FIX_GRAMMAR','fix-grammar','read','json','uploadUrl','410416pArroI','753530niHGMN','make-longer','feed','get','/reviews/custom/calls','_getStreamReader','continue','deleteConversation','MAKE_SHORTER','push','callCustomReview','callSystemReview','/actions/custom/calls','GET','ai-missing-token','_handleError','body','AIConnector','CONTINUE','MAKE_TONE_FORMAL','signal','token','translate','releaseLock','/web-resources/','ai.serviceUrl','stringify','IMPROVE_WRITING','true','attributes','AbortError','excludeEmpty','/documents','queryAssistant','/conversations?','pluginName','map','search','isPremiumPlugin','then','value','100','getModels','_apiUrl','application/json','/files/','toString','deleteFile','770124nkMvoJ','group','uploadFile','_decoder','4191402cHuSGT','Bearer\x20','make-tone-formal','/documents/','POST','/messages','toUpperCase','fetchConversations','context','uploadDocument','_token','28916jQlrJw','config','ai-request-failed','fetchConversation','improve-writing','define','make-shorter','catch','AI_MODEL_DESCRIPTION_','512752VaZpeS','_sendApiRequest','data','/files','fetchConversationMessages','/models/1','2334249SaDvBY','locale','/conversations'];_0x1b07=function(){return _0x5c6804;};return _0x1b07();}function _0x5966(_0x2d6a6c,_0x1c8d21){const _0x1b076c=_0x1b07();return _0x5966=function(_0x5966a5,_0x34d15c){_0x5966a5=_0x5966a5-0x1d8;let _0x14a09e=_0x1b076c[_0x5966a5];return _0x14a09e;},_0x5966(_0x2d6a6c,_0x1c8d21);}const _0xbfed2c=_0x5966;(function(_0x2ac410,_0x169fab){const _0x3a325a=_0x5966,_0x48df64=_0x2ac410();while(!![]){try{const _0x8ce38d=parseInt(_0x3a325a(0x1db))/0x1*(parseInt(_0x3a325a(0x24f))/0x2)+-parseInt(_0x3a325a(0x237))/0x3+parseInt(_0x3a325a(0x246))/0x4*(-parseInt(_0x3a325a(0x1ef))/0x5)+parseInt(_0x3a325a(0x23b))/0x6+-parseInt(_0x3a325a(0x1f9))/0x7*(parseInt(_0x3a325a(0x206))/0x8)+parseInt(_0x3a325a(0x255))/0x9+-parseInt(_0x3a325a(0x207))/0xa;if(_0x8ce38d===_0x169fab)break;else _0x48df64['push'](_0x48df64['shift']());}catch(_0x1b0807){_0x48df64['push'](_0x48df64['shift']());}}}(_0x1b07,0x727f8));import{createParser as _0x2b4ae0}from'eventsource-parser';import{ContextPlugin as _0x34285c}from'ckeditor5/src/core.js';import{CKEditorError as _0x54396f}from'ckeditor5/src/utils.js';import{getTranslation as _0x14d667}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x1b0910){const _0x341f9c=_0x5966;_0x1b0910[_0x341f9c(0x219)]=_0x341f9c(0x20d),_0x1b0910[_0x341f9c(0x201)]=_0x341f9c(0x202),_0x1b0910[_0x341f9c(0x222)]=_0x341f9c(0x24a),_0x1b0910[_0x341f9c(0x1f7)]=_0x341f9c(0x208),_0x1b0910[_0x341f9c(0x20f)]=_0x341f9c(0x24c),_0x1b0910[_0x341f9c(0x1e6)]=_0x341f9c(0x1eb),_0x1b0910[_0x341f9c(0x21a)]=_0x341f9c(0x23d),_0x1b0910[_0x341f9c(0x1f5)]=_0x341f9c(0x21d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x34285c{[_0xbfed2c(0x232)];[_0xbfed2c(0x245)];[_0xbfed2c(0x23a)];static get[_0xbfed2c(0x1de)](){const _0x41b529=_0xbfed2c;return[_0x41b529(0x1e8)];}static get[_0xbfed2c(0x22a)](){const _0x4b5733=_0xbfed2c;return _0x4b5733(0x218);}static get[_0xbfed2c(0x1da)](){return!0x0;}static get[_0xbfed2c(0x22d)](){return!0x0;}constructor(_0x3954f7){const _0x451728=_0xbfed2c;super(_0x3954f7),this[_0x451728(0x243)][_0x451728(0x247)][_0x451728(0x24b)](_0x451728(0x220),_0x451728(0x1ec)),this[_0x451728(0x232)]=this[_0x451728(0x243)][_0x451728(0x247)][_0x451728(0x20a)](_0x451728(0x220)),this[_0x451728(0x245)]=null,this[_0x451728(0x23a)]=new TextDecoder();}[_0xbfed2c(0x1dc)](){const _0x5ebf46=_0xbfed2c,_0x810ba3=this[_0x5ebf46(0x243)][_0x5ebf46(0x1d9)][_0x5ebf46(0x20a)](_0x5ebf46(0x1e8));if(!_0x810ba3[_0x5ebf46(0x21c)])throw new _0x54396f(_0x5ebf46(0x215),this);this[_0x5ebf46(0x245)]=_0x810ba3[_0x5ebf46(0x21c)];}[_0xbfed2c(0x1df)](_0x13ee20,_0x3689a2){const _0xc55f82=_0xbfed2c,_0xea5032=this[_0xc55f82(0x250)](_0xc55f82(0x257),_0xc55f82(0x23f),{'id':_0x13ee20,'group':_0x3689a2});return{'getConversation':async()=>(await _0xea5032[_0xc55f82(0x1e3)])[_0xc55f82(0x204)](),'abortController':_0xea5032[_0xc55f82(0x1f2)]};}[_0xbfed2c(0x228)]({message:_0x18d756,conversationId:_0x540422,parts:_0x19d0a2,capabilities:_0x32f5ff,model:_0x46ca61,quickActionData:_0x3a88c2}){const _0x284f64=_0xbfed2c,_0x5bbf05={..._0x3a88c2&&{'quickActionData':_0x3a88c2}},_0x2828a9={'prompt':_0x18d756,'content':_0x19d0a2,'model':_0x46ca61,..._0x32f5ff&&{'capabilities':_0x32f5ff},...Object[_0x284f64(0x1e2)](_0x5bbf05)[_0x284f64(0x1e0)]>0x0&&{'attributes':_0x5bbf05}},_0x4648e9=this[_0x284f64(0x250)](_0x284f64(0x1f0)+_0x540422+_0x284f64(0x240),_0x284f64(0x23f),_0x2828a9);return{'getStream':async()=>{const _0x457c6c=_0x284f64,_0x4d190c=(await _0x4648e9[_0x457c6c(0x1e3)])[_0x457c6c(0x217)];return this[_0x457c6c(0x20c)](_0x4d190c);},'abortController':_0x4648e9[_0x284f64(0x1f2)]};}[_0xbfed2c(0x1e9)]({content:_0x251c69,message:_0x4a983a,model:_0x3ea799,outputFormat:_0x5e6f94}){const _0x42796f=_0xbfed2c,_0x893382={'content':[{'type':_0x42796f(0x1e5),'content':_0x251c69}],'prompt':_0x4a983a,'model':_0x3ea799,'outputFormat':_0x5e6f94},_0x568338=this[_0x42796f(0x250)](_0x42796f(0x213),_0x42796f(0x23f),_0x893382);return{'getStream':async()=>{const _0x40d1d9=_0x42796f,_0x145354=(await _0x568338[_0x40d1d9(0x1e3)])[_0x40d1d9(0x217)];return this[_0x40d1d9(0x20c)](_0x145354);},'abortController':_0x568338[_0x42796f(0x1f2)]};}[_0xbfed2c(0x1fd)]({actionName:_0x3ce5ce,content:_0x37b99d,args:_0x4d41bc}){const _0x11c185=_0xbfed2c,_0x3bf3be={'content':[{'type':_0x11c185(0x1e5),'content':_0x37b99d}],'args':_0x4d41bc},_0x383bbb=this[_0x11c185(0x250)](_0x11c185(0x1ea)+_0x3ce5ce+_0x11c185(0x200),_0x11c185(0x23f),_0x3bf3be);return{'getStream':async()=>{const _0x17323f=_0x11c185,_0x50b043=(await _0x383bbb[_0x17323f(0x1e3)])[_0x17323f(0x217)];return this[_0x17323f(0x20c)](_0x50b043);},'abortController':_0x383bbb[_0x11c185(0x1f2)]};}[_0xbfed2c(0x239)](_0x297011,_0x9e5a3c,_0x2c4798){const _0xf4d4e=_0xbfed2c,_0x35c973=new FormData();_0x35c973[_0xf4d4e(0x1fa)](_0xf4d4e(0x1f1),_0x9e5a3c,_0x9e5a3c[_0xf4d4e(0x1f4)]),_0x2c4798&&_0x35c973[_0xf4d4e(0x1fa)](_0xf4d4e(0x224),JSON[_0xf4d4e(0x221)](_0x2c4798));const _0x32724f=this[_0xf4d4e(0x250)](_0xf4d4e(0x1f0)+_0x297011+_0xf4d4e(0x252),_0xf4d4e(0x23f),_0x35c973);return{'getId':async()=>(await _0x32724f[_0xf4d4e(0x1e3)])[_0xf4d4e(0x204)](),'abortController':_0x32724f[_0xf4d4e(0x1f2)]};}[_0xbfed2c(0x1ee)](_0x274b21,_0x282c9e){const _0x3e3e2e=_0xbfed2c,_0x4ab415=this[_0x3e3e2e(0x250)](_0x3e3e2e(0x1f0)+_0x274b21+_0x3e3e2e(0x23e)+_0x282c9e,_0x3e3e2e(0x214));return{'getDocument':async()=>(await _0x4ab415[_0x3e3e2e(0x1e3)])[_0x3e3e2e(0x204)](),'abortController':_0x4ab415[_0x3e3e2e(0x1f2)]};}[_0xbfed2c(0x244)](_0x3caeb0,_0x573936,_0x28ce1e){const _0x13127f=_0xbfed2c,_0x133a4b={'content':_0x573936};_0x28ce1e&&(_0x133a4b[_0x13127f(0x224)]=_0x28ce1e);const _0x1f12fe=this[_0x13127f(0x250)](_0x13127f(0x1f0)+_0x3caeb0+_0x13127f(0x227),_0x13127f(0x23f),_0x133a4b);return{'getId':async()=>(await _0x1f12fe[_0x13127f(0x1e3)])[_0x13127f(0x204)](),'abortController':_0x1f12fe[_0x13127f(0x1f2)]};}[_0xbfed2c(0x242)](_0x34fd57,_0x17ae2b){const _0x5be181=_0xbfed2c,_0x580ab5=new URLSearchParams();_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x226),_0x5be181(0x223)),_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x1f3),_0x5be181(0x230)),_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x238),_0x34fd57),_0x17ae2b&&_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x22c),_0x17ae2b);const _0x3b0208=this[_0x5be181(0x250)](_0x5be181(0x229)+_0x580ab5[_0x5be181(0x235)](),_0x5be181(0x214));return{'getConversations':async()=>{const _0x3da9bd=_0x5be181,_0xbfa2d3=await _0x3b0208[_0x3da9bd(0x1e3)];return(await _0xbfa2d3[_0x3da9bd(0x204)]())[_0x3da9bd(0x258)];},'abortController':_0x3b0208[_0x5be181(0x1f2)]};}[_0xbfed2c(0x20e)](_0x2dce0c){const _0x424075=_0xbfed2c,_0x2dac65=this[_0x424075(0x250)](_0x424075(0x1f0)+_0x2dce0c,_0x424075(0x1f6));return{'execute':async()=>{const _0x21ed6e=_0x424075;await _0x2dac65[_0x21ed6e(0x1e3)];},'abortController':_0x2dac65[_0x424075(0x1f2)]};}[_0xbfed2c(0x1f8)](_0x2ecd32,_0x1c39cf){const _0x4590cf=_0xbfed2c,_0x5c9d46=this[_0x4590cf(0x250)](_0x4590cf(0x1f0)+_0x2ecd32,_0x4590cf(0x1e1),_0x1c39cf);return{'getResult':async()=>(await _0x5c9d46[_0x4590cf(0x1e3)],_0x1c39cf),'abortController':_0x5c9d46[_0x4590cf(0x1f2)]};}[_0xbfed2c(0x249)](_0x1bb45f){const _0x49ad12=_0xbfed2c,_0x36184c=this[_0x49ad12(0x250)](_0x49ad12(0x1f0)+_0x1bb45f,_0x49ad12(0x214));return{'getConversation':async()=>(await _0x36184c[_0x49ad12(0x1e3)])[_0x49ad12(0x204)](),'abortController':_0x36184c[_0x49ad12(0x1f2)]};}[_0xbfed2c(0x253)](_0x590d30){const _0x27dc36=_0xbfed2c,_0x5364aa=this[_0x27dc36(0x250)](_0x27dc36(0x1f0)+_0x590d30+_0x27dc36(0x240),_0x27dc36(0x214));return{'getMessages':async()=>{const _0x275728=_0x27dc36,_0x4325f0=await _0x5364aa[_0x275728(0x1e3)];return(await _0x4325f0[_0x275728(0x204)]())[_0x275728(0x258)];},'abortController':_0x5364aa[_0x27dc36(0x1f2)]};}[_0xbfed2c(0x205)](_0x543b6b,_0x162fab,_0x654c73){const _0x4fa045=_0xbfed2c,_0x5b7ffd=this[_0x4fa045(0x250)](_0x4fa045(0x1f0)+_0x543b6b+_0x4fa045(0x1fe),_0x4fa045(0x23f),{'url':_0x162fab,'attributes':_0x654c73});return{'getId':async()=>(await _0x5b7ffd[_0x4fa045(0x1e3)])[_0x4fa045(0x204)](),'abortController':_0x5b7ffd[_0x4fa045(0x1f2)]};}[_0xbfed2c(0x231)](){const _0x13258f=_0xbfed2c,_0x4d4cce=this[_0x13258f(0x250)](_0x13258f(0x254),_0x13258f(0x214));return{'list':async()=>{const _0x1843c7=_0x13258f,_0x412dfc=await(await _0x4d4cce[_0x1843c7(0x1e3)])[_0x1843c7(0x204)](),_0xa7eff9=_0x412dfc[_0x1843c7(0x258)][_0x1843c7(0x22b)](_0x41c681=>({..._0x41c681,'description':_0x14d667(this[_0x1843c7(0x243)][_0x1843c7(0x256)],_0x1843c7(0x24e)+_0x41c681['id'][_0x1843c7(0x241)]())}));return{..._0x412dfc,'items':_0xa7eff9};},'abortController':_0x4d4cce[_0x13258f(0x1f2)]};}[_0xbfed2c(0x236)](_0x5d500f,_0x4ed8bc){const _0x4d193d=_0xbfed2c,_0x17e743=this[_0x4d193d(0x250)](_0x4d193d(0x1f0)+_0x5d500f+_0x4d193d(0x234)+_0x4ed8bc,_0x4d193d(0x1f6));return{'execute':async()=>{const _0x3545cc=_0x4d193d;await _0x17e743[_0x3545cc(0x1e3)];},'abortController':_0x17e743[_0x4d193d(0x1f2)]};}[_0xbfed2c(0x1e7)](_0x48464a,_0x4ca9b8){const _0x4586c0=_0xbfed2c,_0x28716d=this[_0x4586c0(0x250)](_0x4586c0(0x1f0)+_0x48464a+_0x4586c0(0x23e)+_0x4ca9b8,_0x4586c0(0x1f6));return{'execute':async()=>{const _0x55dc4f=_0x4586c0;await _0x28716d[_0x55dc4f(0x1e3)];},'abortController':_0x28716d[_0x4586c0(0x1f2)]};}[_0xbfed2c(0x1e4)](_0x420a85,_0x2b757e){const _0x225d87=_0xbfed2c,_0x3c8c1=this[_0x225d87(0x250)](_0x225d87(0x1f0)+_0x420a85+_0x225d87(0x21f)+_0x2b757e,_0x225d87(0x1f6));return{'execute':async()=>{const _0x532881=_0x225d87;await _0x3c8c1[_0x532881(0x1e3)];},'abortController':_0x3c8c1[_0x225d87(0x1f2)]};}[_0xbfed2c(0x212)]({reviewName:_0x25106b,content:_0x252a2f,args:_0x34f6e1}){const _0x395f69=_0xbfed2c,_0x5050e2=this[_0x395f69(0x250)](_0x395f69(0x1fb)+_0x25106b+_0x395f69(0x200),_0x395f69(0x23f),{'content':[{'type':_0x395f69(0x1e5),'content':_0x252a2f}],'args':_0x34f6e1});return{'getStream':async()=>{const _0x1ae0a6=_0x395f69,_0x2160b9=(await _0x5050e2[_0x1ae0a6(0x1e3)])[_0x1ae0a6(0x217)];return this[_0x1ae0a6(0x20c)](_0x2160b9);},'abortController':_0x5050e2[_0x395f69(0x1f2)]};}[_0xbfed2c(0x211)]({content:_0x3883c5,prompt:_0x74f5bc,model:_0x154a38}){const _0x46cdae=_0xbfed2c,_0x15c9a5=this[_0x46cdae(0x250)](_0x46cdae(0x20b),_0x46cdae(0x23f),{'content':[{'type':_0x46cdae(0x1e5),'content':_0x3883c5}],'prompt':_0x74f5bc,'model':_0x154a38});return{'getStream':async()=>{const _0x313dc1=_0x46cdae,_0x367a32=(await _0x15c9a5[_0x313dc1(0x1e3)])[_0x313dc1(0x217)];return this[_0x313dc1(0x20c)](_0x367a32);},'abortController':_0x15c9a5[_0x46cdae(0x1f2)]};}[_0xbfed2c(0x250)](_0x32d092,_0x15c6fd,_0x25065e){const _0x5558af=_0xbfed2c,_0x64198d=new AbortController(),_0x248748=_0x25065e instanceof FormData,_0x3fac87={'Authorization':_0x5558af(0x23c)+this[_0x5558af(0x245)]?.[_0x5558af(0x22f)]};_0x25065e&&!_0x248748&&(_0x3fac87[_0x5558af(0x1ed)]=_0x5558af(0x233));const _0x447b8d={'method':_0x15c6fd,'headers':_0x3fac87,'signal':_0x64198d[_0x5558af(0x21b)]};return _0x25065e&&(_0x447b8d[_0x5558af(0x217)]=_0x248748?_0x25065e:JSON[_0x5558af(0x221)](_0x25065e)),{'request':fetch(''+this[_0x5558af(0x232)]+_0x32d092,_0x447b8d)[_0x5558af(0x24d)](_0x450253=>{const _0x35af5a=_0x5558af;this[_0x35af5a(0x216)](_0x450253);})[_0x5558af(0x22e)](_0x1bc10b=>{const _0x5f01e1=_0x5558af;if(!_0x1bc10b['ok'])throw new _0x54396f(_0x5f01e1(0x248),this);return _0x1bc10b;}),'abortController':_0x64198d};}async*[_0xbfed2c(0x20c)](_0x464190){const _0x4269dc=_0xbfed2c,_0xabdea2=[],_0xbd7d89=_0x464190[_0x4269dc(0x1dd)](),_0x3ca67b=_0x2b4ae0({'onError':_0xe9ce7e=>{const _0x573fbe=_0x4269dc;this[_0x573fbe(0x216)](_0xe9ce7e);},'onEvent':_0x4f4c4a=>{const _0x491a8c=_0x4269dc;_0x4f4c4a[_0x491a8c(0x251)]=JSON[_0x491a8c(0x1fc)](_0x4f4c4a[_0x491a8c(0x251)]),_0xabdea2[_0x491a8c(0x210)](_0x4f4c4a);}});try{let _0x2871cd=!0x1;for(;!_0x2871cd;){const {done:_0x2fc62a,value:_0x51db11}=await _0xbd7d89[_0x4269dc(0x203)]();_0x2fc62a&&(_0x2871cd=!0x0),_0x3ca67b[_0x4269dc(0x209)](this[_0x4269dc(0x23a)][_0x4269dc(0x259)](_0x51db11,{'stream':!0x0})),yield*_0xabdea2,_0xabdea2[_0x4269dc(0x1e0)]=0x0;}}catch(_0x9be64f){this[_0x4269dc(0x216)](_0x9be64f);}finally{_0xbd7d89[_0x4269dc(0x21e)](),_0x3ca67b[_0x4269dc(0x1d8)]();}}[_0xbfed2c(0x216)](_0x43530f){const _0x3be6c0=_0xbfed2c;if(_0x43530f instanceof _0x54396f)throw _0x43530f;if(_0x43530f instanceof Error&&_0x3be6c0(0x225)===_0x43530f[_0x3be6c0(0x1f4)])throw new _0x54396f(_0x3be6c0(0x1ff),this,{'originalError':_0x43530f});throw new _0x54396f(_0x3be6c0(0x248),this,{'originalError':_0x43530f});}}
|
|
23
|
+
function _0x1257(_0x287869,_0x35e36d){const _0xc63f4e=_0xc63f();return _0x1257=function(_0x125724,_0x5db24c){_0x125724=_0x125724-0x13f;let _0x470d42=_0xc63f4e[_0x125724];return _0x470d42;},_0x1257(_0x287869,_0x35e36d);}const _0x4b09db=_0x1257;(function(_0x3649e9,_0x2ae105){const _0x5bbd05=_0x1257,_0x5eaa6e=_0x3649e9();while(!![]){try{const _0x34aa31=-parseInt(_0x5bbd05(0x1bf))/0x1+-parseInt(_0x5bbd05(0x14b))/0x2+-parseInt(_0x5bbd05(0x1aa))/0x3+-parseInt(_0x5bbd05(0x1b3))/0x4+-parseInt(_0x5bbd05(0x16b))/0x5*(parseInt(_0x5bbd05(0x168))/0x6)+-parseInt(_0x5bbd05(0x150))/0x7*(-parseInt(_0x5bbd05(0x172))/0x8)+parseInt(_0x5bbd05(0x146))/0x9*(parseInt(_0x5bbd05(0x188))/0xa);if(_0x34aa31===_0x2ae105)break;else _0x5eaa6e['push'](_0x5eaa6e['shift']());}catch(_0x287e42){_0x5eaa6e['push'](_0x5eaa6e['shift']());}}}(_0xc63f,0xa05bc));import{createParser as _0x58b8b9}from'eventsource-parser';function _0xc63f(){const _0x2e8fac=['fetchConversation','/actions/system/','/models/1','catch','fetchConversationMessages','374909ObzVvd','fetchConversations','Content-Type','isPremiumPlugin','name','https://ai.cke-cs.com/v1','application/json','/conversations?','data','/documents/','search','621ZpnqzL','reset','read','/calls','AIConnector','1415504UyrBjW','deleteFile','MAKE_SHORTER','PATCH','attributes','64099NiVHYS','body','/conversations','/files','ai-request-failed','json','ai-request-aborted','CloudServices','_token','Bearer\x20','get','queryAssistant','pluginName','getModels','continue','MAKE_LONGER','fetchDocument','/reviews/custom/calls','then','requires','executeCustomAction','map','deleteDocument','push','5790jownru','startConversation','uploadFile','6140xLtrGt','stringify','uploadDocument','locale','parse','improve-writing','AI_MODEL_DESCRIPTION_','752QbntSL','statusText','keys','deleteWebResource','/actions/custom/calls','status','limit','plugins','deleteConversation','make-shorter','_sendApiRequest','init','uploadUrl','AbortError','config','toString','releaseLock','toUpperCase','fix-grammar','make-tone-casual','/documents','group','542820iIUarQ','DELETE','/reviews/system/','make-longer','IMPROVE_WRITING','TRANSLATE','excludeEmpty','getReader','/web-resources/','executeAction','abortController','context','translate','/messages','ai.serviceUrl','ai-missing-token','updateConversation','CONTINUE','callSystemReview','append','items','decode','_getStreamReader','100','/conversations/','_handleError','true','MAKE_TONE_FORMAL','value','POST','length','signal','request','file','1908819VJDFjO','/web-resources','GET','FIX_GRAMMAR','_decoder','callCustomReview','/files/','isOfficialPlugin','token','4181736DrWjnr','MAKE_TONE_CASUAL','feed','text','make-tone-formal','define','_apiUrl'];_0xc63f=function(){return _0x2e8fac;};return _0xc63f();}import{ContextPlugin as _0x4d729b}from'ckeditor5/src/core.js';import{CKEditorError as _0x44c60c}from'ckeditor5/src/utils.js';import{getTranslation as _0x4d3c15}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x1ca0f6){const _0x2bab08=_0x1257;_0x1ca0f6[_0x2bab08(0x199)]=_0x2bab08(0x15e),_0x1ca0f6[_0x2bab08(0x1ad)]=_0x2bab08(0x184),_0x1ca0f6[_0x2bab08(0x18c)]=_0x2bab08(0x170),_0x1ca0f6[_0x2bab08(0x15f)]=_0x2bab08(0x18b),_0x1ca0f6[_0x2bab08(0x14d)]=_0x2bab08(0x17b),_0x1ca0f6[_0x2bab08(0x1b4)]=_0x2bab08(0x185),_0x1ca0f6[_0x2bab08(0x1a3)]=_0x2bab08(0x1b7),_0x1ca0f6[_0x2bab08(0x18d)]=_0x2bab08(0x194);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x4d729b{[_0x4b09db(0x1b9)];[_0x4b09db(0x158)];[_0x4b09db(0x1ae)];static get[_0x4b09db(0x163)](){const _0x35eac1=_0x4b09db;return[_0x35eac1(0x157)];}static get[_0x4b09db(0x15c)](){const _0x59f5d7=_0x4b09db;return _0x59f5d7(0x14a);}static get[_0x4b09db(0x1b1)](){return!0x0;}static get[_0x4b09db(0x1c2)](){return!0x0;}constructor(_0x8a26e9){const _0x5d5ba8=_0x4b09db;super(_0x8a26e9),this[_0x5d5ba8(0x193)][_0x5d5ba8(0x180)][_0x5d5ba8(0x1b8)](_0x5d5ba8(0x196),_0x5d5ba8(0x140)),this[_0x5d5ba8(0x1b9)]=this[_0x5d5ba8(0x193)][_0x5d5ba8(0x180)][_0x5d5ba8(0x15a)](_0x5d5ba8(0x196)),this[_0x5d5ba8(0x158)]=null,this[_0x5d5ba8(0x1ae)]=new TextDecoder();}[_0x4b09db(0x17d)](){const _0x43047b=_0x4b09db,_0x24e877=this[_0x43047b(0x193)][_0x43047b(0x179)][_0x43047b(0x15a)](_0x43047b(0x157));if(!_0x24e877[_0x43047b(0x1b2)])throw new _0x44c60c(_0x43047b(0x197),this);this[_0x43047b(0x158)]=_0x24e877[_0x43047b(0x1b2)];}[_0x4b09db(0x169)](_0x18c8c3,_0x398bd4){const _0x10308a=_0x4b09db,_0x3411d2=this[_0x10308a(0x17c)](_0x10308a(0x152),_0x10308a(0x1a5),{'id':_0x18c8c3,'group':_0x398bd4});return{'getConversation':async()=>(await _0x3411d2[_0x10308a(0x1a8)])[_0x10308a(0x155)](),'abortController':_0x3411d2[_0x10308a(0x192)]};}[_0x4b09db(0x15b)]({message:_0x1baca4,conversationId:_0xa34248,parts:_0x573e38,capabilities:_0x382c91,model:_0x32d645,quickActionData:_0x18a9b7}){const _0x5fdcf9=_0x4b09db,_0x3ed37a={..._0x18a9b7&&{'quickActionData':_0x18a9b7}},_0x1830fb={'prompt':_0x1baca4,'content':_0x573e38,'model':_0x32d645,..._0x382c91&&{'capabilities':_0x382c91},...Object[_0x5fdcf9(0x174)](_0x3ed37a)[_0x5fdcf9(0x1a6)]>0x0&&{'attributes':_0x3ed37a}},_0x99ee8a=this[_0x5fdcf9(0x17c)](_0x5fdcf9(0x1a0)+_0xa34248+_0x5fdcf9(0x195),_0x5fdcf9(0x1a5),_0x1830fb);return{'getStream':async()=>{const _0x4a1852=_0x5fdcf9,_0x3753ca=(await _0x99ee8a[_0x4a1852(0x1a8)])[_0x4a1852(0x151)];return this[_0x4a1852(0x19e)](_0x3753ca);},'abortController':_0x99ee8a[_0x5fdcf9(0x192)]};}[_0x4b09db(0x164)]({content:_0x47e31e,message:_0x63d180,model:_0x2ce474,outputFormat:_0x3ea86b}){const _0x2a1796=_0x4b09db,_0x560961={'content':[{'type':_0x2a1796(0x1b6),'content':_0x47e31e}],'prompt':_0x63d180,'model':_0x2ce474,'outputFormat':_0x3ea86b},_0x182b1a=this[_0x2a1796(0x17c)](_0x2a1796(0x176),_0x2a1796(0x1a5),_0x560961);return{'getStream':async()=>{const _0x49bbb6=_0x2a1796,_0x20599a=(await _0x182b1a[_0x49bbb6(0x1a8)])[_0x49bbb6(0x151)];return this[_0x49bbb6(0x19e)](_0x20599a);},'abortController':_0x182b1a[_0x2a1796(0x192)]};}[_0x4b09db(0x191)]({actionName:_0x24f70d,content:_0x26b8d5,args:_0x5dd61c}){const _0x3fab0a=_0x4b09db,_0x2edf61={'content':[{'type':_0x3fab0a(0x1b6),'content':_0x26b8d5}],'args':_0x5dd61c},_0x4e5597=this[_0x3fab0a(0x17c)](_0x3fab0a(0x1bb)+_0x24f70d+_0x3fab0a(0x149),_0x3fab0a(0x1a5),_0x2edf61);return{'getStream':async()=>{const _0x231f2c=_0x3fab0a,_0x4e187b=(await _0x4e5597[_0x231f2c(0x1a8)])[_0x231f2c(0x151)];return this[_0x231f2c(0x19e)](_0x4e187b);},'abortController':_0x4e5597[_0x3fab0a(0x192)]};}[_0x4b09db(0x16a)](_0x4287f0,_0x39d8fa,_0x382e30){const _0x4581e8=_0x4b09db,_0x2328c3=new FormData();_0x2328c3[_0x4581e8(0x19b)](_0x4581e8(0x1a9),_0x39d8fa,_0x39d8fa[_0x4581e8(0x13f)]),_0x382e30&&_0x2328c3[_0x4581e8(0x19b)](_0x4581e8(0x14f),JSON[_0x4581e8(0x16c)](_0x382e30));const _0x3ba93e=this[_0x4581e8(0x17c)](_0x4581e8(0x1a0)+_0x4287f0+_0x4581e8(0x153),_0x4581e8(0x1a5),_0x2328c3);return{'getId':async()=>(await _0x3ba93e[_0x4581e8(0x1a8)])[_0x4581e8(0x155)](),'abortController':_0x3ba93e[_0x4581e8(0x192)]};}[_0x4b09db(0x160)](_0x5e0f41,_0x2afa8f){const _0x16e3ee=_0x4b09db,_0x1f5071=this[_0x16e3ee(0x17c)](_0x16e3ee(0x1a0)+_0x5e0f41+_0x16e3ee(0x144)+_0x2afa8f,_0x16e3ee(0x1ac));return{'getDocument':async()=>(await _0x1f5071[_0x16e3ee(0x1a8)])[_0x16e3ee(0x155)](),'abortController':_0x1f5071[_0x16e3ee(0x192)]};}[_0x4b09db(0x16d)](_0x21b9e3,_0x211b8c,_0x42b708){const _0x197013=_0x4b09db,_0x1bd5b4={'content':_0x211b8c};_0x42b708&&(_0x1bd5b4[_0x197013(0x14f)]=_0x42b708);const _0x4c1fc9=this[_0x197013(0x17c)](_0x197013(0x1a0)+_0x21b9e3+_0x197013(0x186),_0x197013(0x1a5),_0x1bd5b4);return{'getId':async()=>(await _0x4c1fc9[_0x197013(0x1a8)])[_0x197013(0x155)](),'abortController':_0x4c1fc9[_0x197013(0x192)]};}[_0x4b09db(0x1c0)](_0x2eb72c,_0x414466){const _0x55ed1c=_0x4b09db,_0x5204f5=new URLSearchParams();_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x18e),_0x55ed1c(0x1a2)),_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x178),_0x55ed1c(0x19f)),_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x187),_0x2eb72c),_0x414466&&_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x145),_0x414466);const _0x5311f3=this[_0x55ed1c(0x17c)](_0x55ed1c(0x142)+_0x5204f5[_0x55ed1c(0x181)](),_0x55ed1c(0x1ac));return{'getConversations':async()=>{const _0x17e795=_0x55ed1c,_0xbef52=await _0x5311f3[_0x17e795(0x1a8)];return(await _0xbef52[_0x17e795(0x155)]())[_0x17e795(0x19c)];},'abortController':_0x5311f3[_0x55ed1c(0x192)]};}[_0x4b09db(0x17a)](_0x408398){const _0x251095=_0x4b09db,_0x45fb96=this[_0x251095(0x17c)](_0x251095(0x1a0)+_0x408398,_0x251095(0x189));return{'execute':async()=>{const _0x4d2cfe=_0x251095;await _0x45fb96[_0x4d2cfe(0x1a8)];},'abortController':_0x45fb96[_0x251095(0x192)]};}[_0x4b09db(0x198)](_0x5cbe2d,_0x5e8c58){const _0x1e538b=_0x4b09db,_0x28be61=this[_0x1e538b(0x17c)](_0x1e538b(0x1a0)+_0x5cbe2d,_0x1e538b(0x14e),_0x5e8c58);return{'getResult':async()=>(await _0x28be61[_0x1e538b(0x1a8)],_0x5e8c58),'abortController':_0x28be61[_0x1e538b(0x192)]};}[_0x4b09db(0x1ba)](_0x1cddaf){const _0xfebbaf=_0x4b09db,_0x592bbf=this[_0xfebbaf(0x17c)](_0xfebbaf(0x1a0)+_0x1cddaf,_0xfebbaf(0x1ac));return{'getConversation':async()=>(await _0x592bbf[_0xfebbaf(0x1a8)])[_0xfebbaf(0x155)](),'abortController':_0x592bbf[_0xfebbaf(0x192)]};}[_0x4b09db(0x1be)](_0x573376){const _0x43a816=_0x4b09db,_0x7a73e9=this[_0x43a816(0x17c)](_0x43a816(0x1a0)+_0x573376+_0x43a816(0x195),_0x43a816(0x1ac));return{'getMessages':async()=>{const _0x3577d9=_0x43a816,_0x438919=await _0x7a73e9[_0x3577d9(0x1a8)];return(await _0x438919[_0x3577d9(0x155)]())[_0x3577d9(0x19c)];},'abortController':_0x7a73e9[_0x43a816(0x192)]};}[_0x4b09db(0x17e)](_0x1b0efd,_0x20f17b,_0x47b752){const _0x2823ea=_0x4b09db,_0x4cfad7=this[_0x2823ea(0x17c)](_0x2823ea(0x1a0)+_0x1b0efd+_0x2823ea(0x1ab),_0x2823ea(0x1a5),{'url':_0x20f17b,'attributes':_0x47b752});return{'getId':async()=>(await _0x4cfad7[_0x2823ea(0x1a8)])[_0x2823ea(0x155)](),'abortController':_0x4cfad7[_0x2823ea(0x192)]};}[_0x4b09db(0x15d)](){const _0x57820b=_0x4b09db,_0x21bafc=this[_0x57820b(0x17c)](_0x57820b(0x1bc),_0x57820b(0x1ac));return{'list':async()=>{const _0xa88c2c=_0x57820b,_0x596551=await(await _0x21bafc[_0xa88c2c(0x1a8)])[_0xa88c2c(0x155)](),_0x179508=_0x596551[_0xa88c2c(0x19c)][_0xa88c2c(0x165)](_0x4dd29a=>({..._0x4dd29a,'description':_0x4d3c15(this[_0xa88c2c(0x193)][_0xa88c2c(0x16e)],_0xa88c2c(0x171)+_0x4dd29a['id'][_0xa88c2c(0x183)]())}));return{..._0x596551,'items':_0x179508};},'abortController':_0x21bafc[_0x57820b(0x192)]};}[_0x4b09db(0x14c)](_0x3f4f2f,_0x14dda2){const _0x5ec7db=_0x4b09db,_0x147877=this[_0x5ec7db(0x17c)](_0x5ec7db(0x1a0)+_0x3f4f2f+_0x5ec7db(0x1b0)+_0x14dda2,_0x5ec7db(0x189));return{'execute':async()=>{const _0x27c14e=_0x5ec7db;await _0x147877[_0x27c14e(0x1a8)];},'abortController':_0x147877[_0x5ec7db(0x192)]};}[_0x4b09db(0x166)](_0x53b194,_0x434bd2){const _0xc1faab=_0x4b09db,_0x5a22fd=this[_0xc1faab(0x17c)](_0xc1faab(0x1a0)+_0x53b194+_0xc1faab(0x144)+_0x434bd2,_0xc1faab(0x189));return{'execute':async()=>{const _0x5e28b0=_0xc1faab;await _0x5a22fd[_0x5e28b0(0x1a8)];},'abortController':_0x5a22fd[_0xc1faab(0x192)]};}[_0x4b09db(0x175)](_0x67eebc,_0xc55bad){const _0x2eae1b=_0x4b09db,_0x44cf43=this[_0x2eae1b(0x17c)](_0x2eae1b(0x1a0)+_0x67eebc+_0x2eae1b(0x190)+_0xc55bad,_0x2eae1b(0x189));return{'execute':async()=>{const _0x32f91a=_0x2eae1b;await _0x44cf43[_0x32f91a(0x1a8)];},'abortController':_0x44cf43[_0x2eae1b(0x192)]};}[_0x4b09db(0x19a)]({reviewName:_0x3c8d04,content:_0xb60ad9,args:_0x2f10b5}){const _0x27abfe=_0x4b09db,_0x8e5c68=this[_0x27abfe(0x17c)](_0x27abfe(0x18a)+_0x3c8d04+_0x27abfe(0x149),_0x27abfe(0x1a5),{'content':[{'type':_0x27abfe(0x1b6),'content':_0xb60ad9}],'args':_0x2f10b5});return{'getStream':async()=>{const _0x5b27a8=_0x27abfe,_0x3a755a=(await _0x8e5c68[_0x5b27a8(0x1a8)])[_0x5b27a8(0x151)];return this[_0x5b27a8(0x19e)](_0x3a755a);},'abortController':_0x8e5c68[_0x27abfe(0x192)]};}[_0x4b09db(0x1af)]({content:_0x2550fb,prompt:_0x5659c1,model:_0x2c46db}){const _0x3b7c8e=_0x4b09db,_0x484b0d=this[_0x3b7c8e(0x17c)](_0x3b7c8e(0x161),_0x3b7c8e(0x1a5),{'content':[{'type':_0x3b7c8e(0x1b6),'content':_0x2550fb}],'prompt':_0x5659c1,'model':_0x2c46db});return{'getStream':async()=>{const _0x275297=_0x3b7c8e,_0x27ba91=(await _0x484b0d[_0x275297(0x1a8)])[_0x275297(0x151)];return this[_0x275297(0x19e)](_0x27ba91);},'abortController':_0x484b0d[_0x3b7c8e(0x192)]};}[_0x4b09db(0x17c)](_0x1377d4,_0x372dda,_0x4d868a){const _0x51f990=_0x4b09db,_0x441564=new AbortController(),_0x43f3a4=_0x4d868a instanceof FormData,_0x59d463={'Authorization':_0x51f990(0x159)+this[_0x51f990(0x158)]?.[_0x51f990(0x1a4)]};_0x4d868a&&!_0x43f3a4&&(_0x59d463[_0x51f990(0x1c1)]=_0x51f990(0x141));const _0x422463={'method':_0x372dda,'headers':_0x59d463,'signal':_0x441564[_0x51f990(0x1a7)]};return _0x4d868a&&(_0x422463[_0x51f990(0x151)]=_0x43f3a4?_0x4d868a:JSON[_0x51f990(0x16c)](_0x4d868a)),{'request':fetch(''+this[_0x51f990(0x1b9)]+_0x1377d4,_0x422463)[_0x51f990(0x1bd)](_0x53aa32=>{const _0x586b15=_0x51f990;this[_0x586b15(0x1a1)](_0x53aa32);})[_0x51f990(0x162)](_0x3c084b=>{const _0x325a56=_0x51f990;if(!_0x3c084b['ok'])throw new _0x44c60c(_0x325a56(0x154),this,{'url':this[_0x325a56(0x1b9)],'path':_0x1377d4,'method':_0x372dda,'body':_0x4d868a,'status':(_0x3c084b||{})[_0x325a56(0x177)],'statusText':(_0x3c084b||{})[_0x325a56(0x173)]});return _0x3c084b;}),'abortController':_0x441564};}async*[_0x4b09db(0x19e)](_0x24ef35){const _0x3ca5da=_0x4b09db,_0x2efbb7=[],_0x442084=_0x24ef35[_0x3ca5da(0x18f)](),_0xd49bd9=_0x58b8b9({'onError':_0x32d751=>{const _0x166335=_0x3ca5da;this[_0x166335(0x1a1)](_0x32d751);},'onEvent':_0x1e3da5=>{const _0x517745=_0x3ca5da;_0x1e3da5[_0x517745(0x143)]=JSON[_0x517745(0x16f)](_0x1e3da5[_0x517745(0x143)]),_0x2efbb7[_0x517745(0x167)](_0x1e3da5);}});try{let _0x97b6d6=!0x1;for(;!_0x97b6d6;){const {done:_0x321fe9,value:_0x262fdf}=await _0x442084[_0x3ca5da(0x148)]();_0x321fe9&&(_0x97b6d6=!0x0),_0xd49bd9[_0x3ca5da(0x1b5)](this[_0x3ca5da(0x1ae)][_0x3ca5da(0x19d)](_0x262fdf,{'stream':!0x0})),yield*_0x2efbb7,_0x2efbb7[_0x3ca5da(0x1a6)]=0x0;}}catch(_0x4f478d){this[_0x3ca5da(0x1a1)](_0x4f478d);}finally{_0x442084[_0x3ca5da(0x182)](),_0xd49bd9[_0x3ca5da(0x147)]();}}[_0x4b09db(0x1a1)](_0x48eecf){const _0x323144=_0x4b09db;if(_0x48eecf instanceof _0x44c60c)throw _0x48eecf;if(_0x48eecf instanceof Error&&_0x323144(0x17f)===_0x48eecf[_0x323144(0x13f)])throw new _0x44c60c(_0x323144(0x156),this,{'originalError':_0x48eecf});throw new _0x44c60c(_0x323144(0x154),this,{'originalError':_0x48eecf});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x287168=_0x348b;(function(_0x23b357,_0x4418ec){const _0x249b25=_0x348b,_0x2065d5=_0x23b357();while(!![]){try{const _0x398326=parseInt(_0x249b25(0x19e))/0x1*(-parseInt(_0x249b25(0x197))/0x2)+-parseInt(_0x249b25(0x189))/0x3+parseInt(_0x249b25(0x176))/0x4+parseInt(_0x249b25(0x18c))/0x5*(parseInt(_0x249b25(0x1bf))/0x6)+parseInt(_0x249b25(0x1c7))/0x7*(parseInt(_0x249b25(0x1b0))/0x8)+parseInt(_0x249b25(0x17f))/0x9+parseInt(_0x249b25(0x1b4))/0xa;if(_0x398326===_0x4418ec)break;else _0x2065d5['push'](_0x2065d5['shift']());}catch(_0x56d5c8){_0x2065d5['push'](_0x2065d5['shift']());}}}(_0x1354,0xcd5f9));function _0x348b(_0xd61092,_0x57cc0e){const _0x1354ca=_0x1354();return _0x348b=function(_0x348b2a,_0x44e6f1){_0x348b2a=_0x348b2a-0x16e;let _0x4c6024=_0x1354ca[_0x348b2a];return _0x4c6024;},_0x348b(_0xd61092,_0x57cc0e);}import{ViewDowncastWriter as _0x2f1c75}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xb9135b,Editor as _0x5f21f8}from'ckeditor5/src/core.js';import{uid as _0x55104c}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x46fae4}from'./utils/geteditorfromcontext.js';function _0x1354(){const _0x162eb0=['$textProxy','indexOf','29164WvgNOf','toData','isAfter','AIEditing','view','getRoot','getStart','containerElement','isAtEnd','name','getWalker','dataDowncast','isPremiumPlugin','version','getChildren','has','change','_sessionId','24TEeVDS','add','conversion','createUIElement','6594920TiXzUQ','showFakeVisualSelection','join','markerToElement','random','emptyElement','isOfficialPlugin','_displayedFakeSelectionId','length','_displayedFakeSelectionLocked','floor','1221168YXrqWc','getSelection','createRange','editingDowncast','createRangeIn',':end>','hideFakeVisualSelection','end','3570056GkNrOA','sessionId','setAttribute','plugins','_setDataIdsOnChildren','convertAiChatSelectionMarker','afterInit','data-id','context','push','sort','data','from','isContent','modelToViewWithIds','ck-ai-assistant-ui_theme','_nextDataId','schema','fromCharCode','toView','_integrateEditor','element','getLastMatchingPosition','isBefore','311540UTSBlJ','trim','getMarkersGroup','markerName','getSelectedContent','processor','selection','removeAllRanges','isOpening','579744SihStU','listenTo','ai-selection:',':start>',':end></','markers','ai-selection',':start></','ready','addMarker','2891388quPAQB','ck-fake-ai-selection','document','15xNWrgE','RealTimeCollaborationClient','getDocumentData','getSelectionText','_getMarkersInDocumentOrder','editing','removeMarker','start','markerToHighlight','get','model','78udbgRh','pluginName','editors','substring','for'];_0x1354=function(){return _0x162eb0;};return _0x1354();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x287168(0x185);export class AIEditing extends _0xb9135b{[_0x287168(0x1bb)]=null;[_0x287168(0x1bd)]=!0x1;[_0x287168(0x1af)];static get[_0x287168(0x198)](){const _0x333c6=_0x287168;return _0x333c6(0x1a1);}static get[_0x287168(0x1ba)](){return!0x0;}static get[_0x287168(0x1aa)](){return!0x0;}get[_0x287168(0x1c8)](){const _0x3dfd67=_0x287168;if(!this[_0x3dfd67(0x1af)]){const _0x37dcdf=_0x46fae4(this[_0x3dfd67(0x1cf)]),_0x3bf4a5=_0x37dcdf[_0x3dfd67(0x1ca)][_0x3dfd67(0x1ad)](_0x3dfd67(0x18d))&&_0x37dcdf[_0x3dfd67(0x1ca)][_0x3dfd67(0x195)](_0x3dfd67(0x18d))[_0x3dfd67(0x1c8)];this[_0x3dfd67(0x1af)]=_0x3bf4a5||_0x55104c();}return this[_0x3dfd67(0x1af)];}[_0x287168(0x18e)](){const _0x40b532=_0x287168,_0x2d3587=_0x46fae4(this[_0x40b532(0x1cf)]),_0x219f9f=_0x2d3587[_0x40b532(0x196)],_0x44e429=_0x2d3587[_0x40b532(0x1d2)][_0x40b532(0x171)](_0x219f9f[_0x40b532(0x18b)][_0x40b532(0x1a3)](),{'convertAiChatSelectionMarker':!0x0}),_0x5eaaf2=new _0x2f1c75(_0x2d3587[_0x40b532(0x191)][_0x40b532(0x1a2)][_0x40b532(0x18b)]);this[_0x40b532(0x1cb)](_0x44e429,_0x5eaaf2);let _0x319984=_0x2d3587[_0x40b532(0x1d2)][_0x40b532(0x17b)][_0x40b532(0x19f)](_0x44e429);const _0x2c53c9=this[_0x40b532(0x190)](),_0xef0f34=[];for(const _0x3e4ff0 of _0x2c53c9){const _0x2381d3='<'+_0x3e4ff0[_0x40b532(0x1a7)]+_0x40b532(0x186)+_0x3e4ff0[_0x40b532(0x1a7)]+_0x40b532(0x182),_0x1f4439=_0x319984[_0x40b532(0x19d)](_0x2381d3);_0x319984=_0x319984[_0x40b532(0x19a)](0x0,_0x1f4439)+_0x319984[_0x40b532(0x19a)](_0x1f4439+_0x2381d3[_0x40b532(0x1bc)]);const _0x1ac81d='<'+_0x3e4ff0[_0x40b532(0x1a7)]+_0x40b532(0x183)+_0x3e4ff0[_0x40b532(0x1a7)]+_0x40b532(0x1c4),_0x14efca=_0x319984[_0x40b532(0x19d)](_0x1ac81d);_0x319984=_0x319984[_0x40b532(0x19a)](0x0,_0x14efca)+_0x319984[_0x40b532(0x19a)](_0x14efca+_0x1ac81d[_0x40b532(0x1bc)]),_0xef0f34[_0x40b532(0x1d0)]({'markerName':_0x3e4ff0[_0x40b532(0x1a7)],'start':_0x1f4439,'end':_0x14efca,'htmlFragment':_0x319984[_0x40b532(0x19a)](_0x1f4439,_0x14efca)});}return{'content':_0x319984,'version':_0x2d3587[_0x40b532(0x196)][_0x40b532(0x18b)][_0x40b532(0x1ab)],'sessionId':this[_0x40b532(0x1c8)],'selections':_0xef0f34};}async[_0x287168(0x1cd)](){const _0x4dbe99=_0x287168;this[_0x4dbe99(0x1cf)]instanceof _0x5f21f8?this[_0x4dbe99(0x172)](this[_0x4dbe99(0x1cf)]):this[_0x4dbe99(0x180)](this[_0x4dbe99(0x1cf)][_0x4dbe99(0x199)],_0x4dbe99(0x1b1),(_0x2bc9e5,_0x41adc1)=>{const _0x25d497=_0x4dbe99;_0x41adc1['on'](_0x25d497(0x187),()=>{const _0x129843=_0x25d497;this[_0x129843(0x172)](_0x41adc1);});});}[_0x287168(0x172)](_0x47aa2e){const _0x1342ab=_0x287168;_0x47aa2e[_0x1342ab(0x1b2)][_0x1342ab(0x19b)](_0x1342ab(0x1c2))[_0x1342ab(0x194)]({'model':_0x1342ab(0x185),'view':{'classes':[_0x1342ab(0x18a),_0x1342ab(0x1d6)],'priority':0xc}}),_0x47aa2e[_0x1342ab(0x1b2)][_0x1342ab(0x19b)](_0x1342ab(0x1a9))[_0x1342ab(0x1b7)]({'model':_0x1342ab(0x185),'view':(_0x422ff3,{writer:_0x4b7091,options:_0x36557e})=>_0x36557e[_0x1342ab(0x1cc)]?_0x4b7091[_0x1342ab(0x1b3)](_0x422ff3[_0x1342ab(0x179)]+':'+(_0x422ff3[_0x1342ab(0x17e)]?_0x1342ab(0x193):_0x1342ab(0x1c6))):null});}[_0x287168(0x1b5)](_0x1d7e58,_0x5f4424,_0x4eb84e=!0x1,_0x1ddb24=!0x1){const _0x31126e=_0x287168;if(this[_0x31126e(0x1bd)]&&!_0x1ddb24)return!0x1;this[_0x31126e(0x1bb)]&&this[_0x31126e(0x1c5)](this[_0x31126e(0x1bb)]),this[_0x31126e(0x1bb)]=_0x5f4424,this[_0x31126e(0x1bd)]=_0x4eb84e;const _0x4ca3f9=_0x46fae4(this[_0x31126e(0x1cf)])[_0x31126e(0x196)];return _0x4ca3f9[_0x31126e(0x1ae)](_0x1c15cd=>{const _0x4c44b8=_0x31126e;let _0x58efc2=0x0;for(let _0x4e7766 of _0x1d7e58){const _0x13e688=_0x4c44b8(0x181)+_0x58efc2;if(_0x4e7766[_0x4c44b8(0x193)][_0x4c44b8(0x1a6)]){const _0x473d60=_0x4e7766[_0x4c44b8(0x193)][_0x4c44b8(0x174)](({item:_0x1e3943})=>!_0x4ca3f9[_0x4c44b8(0x16f)][_0x4c44b8(0x1d4)](_0x1e3943),{'boundaries':_0x4e7766});_0x4e7766=_0x1c15cd[_0x4c44b8(0x1c1)](_0x473d60,_0x4e7766[_0x4c44b8(0x1c6)]);}_0x1c15cd[_0x4c44b8(0x188)](_0x13e688,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4e7766}),_0x58efc2++;}}),window[_0x31126e(0x1c0)]()?.[_0x31126e(0x17d)](),!0x0;}[_0x287168(0x1c5)](_0x20a29e){const _0x5cb0d9=_0x287168;if(this[_0x5cb0d9(0x1bb)]!=_0x20a29e)return!0x1;this[_0x5cb0d9(0x1bb)]=null,this[_0x5cb0d9(0x1bd)]=!0x1;const _0x2615c8=_0x46fae4(this[_0x5cb0d9(0x1cf)]),_0x29acb7=_0x2615c8[_0x5cb0d9(0x196)][_0x5cb0d9(0x184)][_0x5cb0d9(0x178)](_0x5cb0d9(0x185));return _0x2615c8[_0x5cb0d9(0x196)][_0x5cb0d9(0x1ae)](_0x1cf7e2=>{const _0x5486bc=_0x5cb0d9;for(const _0x1c5ffd of _0x29acb7)_0x1cf7e2[_0x5486bc(0x192)](_0x1c5ffd);}),!0x0;}[_0x287168(0x1d5)](_0x3f72b7){const _0x275ea9=_0x287168,_0x5468b0=_0x46fae4(this[_0x275ea9(0x1cf)]),_0x388586=_0x5468b0[_0x275ea9(0x1d2)][_0x275ea9(0x171)](_0x3f72b7),_0x597aef=new _0x2f1c75(_0x5468b0[_0x275ea9(0x191)][_0x275ea9(0x1a2)][_0x275ea9(0x18b)]);return this[_0x275ea9(0x1cb)](_0x388586,_0x597aef),_0x388586;}[_0x287168(0x1cb)](_0xc0912a,_0x156bb2){const _0x5ff0ca=_0x287168;let _0x39500a=!0x1;const _0x3e0c3d=new Set();for(const _0x42a6eb of _0xc0912a[_0x5ff0ca(0x1ac)]()){const _0x230d57=_0x42a6eb['is'](_0x5ff0ca(0x1b9))||_0x42a6eb['is'](_0x5ff0ca(0x1a5));if(!_0x42a6eb['is'](_0x5ff0ca(0x173)))continue;(this[_0x5ff0ca(0x1cb)](_0x42a6eb,_0x156bb2)||_0x230d57)&&(_0x156bb2[_0x5ff0ca(0x1c9)](_0x5ff0ca(0x1ce),this[_0x5ff0ca(0x16e)](_0x3e0c3d),_0x42a6eb),_0x39500a=!0x0);}return _0x39500a;}[_0x287168(0x16e)](_0x198917){const _0x39e1b4=_0x287168;let _0x4d30cc;do{_0x4d30cc='';for(let _0x7d2e65=0x0;_0x7d2e65<0x4;_0x7d2e65++)_0x4d30cc+=String[_0x39e1b4(0x170)](0x61+Math[_0x39e1b4(0x1be)](0x1a*Math[_0x39e1b4(0x1b8)]()));}while(_0x198917[_0x39e1b4(0x1ad)](_0x4d30cc));return _0x198917[_0x39e1b4(0x1b1)](_0x4d30cc),_0x4d30cc;}[_0x287168(0x18f)](){const _0x40acdd=_0x287168,{model:_0x1b7eb4}=_0x46fae4(this[_0x40acdd(0x1cf)]),_0x350b60=_0x1b7eb4[_0x40acdd(0x18b)][_0x40acdd(0x17c)],_0x480463=_0x1b7eb4[_0x40acdd(0x17a)](_0x350b60),_0x57e538=[],_0x2432e1=_0x1b7eb4[_0x40acdd(0x1c3)](_0x480463)[_0x40acdd(0x1a8)]();for(const {item:_0x3ec24c}of _0x2432e1)_0x3ec24c['is'](_0x40acdd(0x19c))?_0x57e538[_0x40acdd(0x1d0)](_0x3ec24c[_0x40acdd(0x1d2)]):_0x3ec24c['is'](_0x40acdd(0x173))&&_0x57e538[_0x40acdd(0x1bc)]>0x0&&'\x20'!==_0x57e538[_0x57e538[_0x40acdd(0x1bc)]-0x1]&&_0x57e538[_0x40acdd(0x1d0)]('\x20');return'\x22'+_0x57e538[_0x40acdd(0x1b6)]('')[_0x40acdd(0x177)]()+'\x22';}[_0x287168(0x190)](){const _0x13fa0e=_0x287168,_0x1f0b8d=_0x46fae4(this[_0x13fa0e(0x1cf)])[_0x13fa0e(0x196)];return Array[_0x13fa0e(0x1d3)](_0x1f0b8d[_0x13fa0e(0x184)][_0x13fa0e(0x178)](_0x13fa0e(0x185)))[_0x13fa0e(0x1d1)]((_0x477fef,_0x37daf7)=>_0x477fef[_0x13fa0e(0x1a4)]()[_0x13fa0e(0x175)](_0x37daf7[_0x13fa0e(0x1a4)]())?-0x1:_0x477fef[_0x13fa0e(0x1a4)]()[_0x13fa0e(0x1a0)](_0x37daf7[_0x13fa0e(0x1a4)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3123(_0x513ffc,_0xf3bd8e){const _0x9aed32=_0x9aed();return _0x3123=function(_0x3123de,_0x462ff9){_0x3123de=_0x3123de-0x1d1;let _0x487624=_0x9aed32[_0x3123de];return _0x487624;},_0x3123(_0x513ffc,_0xf3bd8e);}const _0x566047=_0x3123;(function(_0x342a4a,_0x19c094){const _0x1d6cfa=_0x3123,_0x5d9321=_0x342a4a();while(!![]){try{const _0x5192b2=parseInt(_0x1d6cfa(0x1e6))/0x1+parseInt(_0x1d6cfa(0x1dd))/0x2*(parseInt(_0x1d6cfa(0x1d4))/0x3)+parseInt(_0x1d6cfa(0x1e7))/0x4*(-parseInt(_0x1d6cfa(0x1e4))/0x5)+-parseInt(_0x1d6cfa(0x1d7))/0x6*(-parseInt(_0x1d6cfa(0x1e0))/0x7)+parseInt(_0x1d6cfa(0x1d5))/0x8+-parseInt(_0x1d6cfa(0x1dc))/0x9+parseInt(_0x1d6cfa(0x1df))/0xa;if(_0x5192b2===_0x19c094)break;else _0x5d9321['push'](_0x5d9321['shift']());}catch(_0x538018){_0x5d9321['push'](_0x5d9321['shift']());}}}(_0x9aed,0xefe2c));function _0x9aed(){const _0x3e4b3f=['setReasoning','1530804DxZWRI','1930892mCYkPU','init','isWebSearchEnabled','webSearch','fire','capabilitiesUpdated','toggleReasoning','129bojTyk','5573080FngBqG','isReasoningEnabled','6pWdTlu','getCapabilitiesConfig','toggleWebSearch','_isWebSearchEnabled','_isReasoningEnabled','14230755VqdbaE','11066vPOxvv','getCapabilitiesRequestData','8074670imWPZw','5173777lgvICL','reasoning','setWebSearch','reset','15VbQfDm'];_0x9aed=function(){return _0x3e4b3f;};return _0x9aed();}import{EmitterMixin as _0x5dc020}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x566047(0x1d2)];export class AICapabilities extends _0x5dc020(){[_0x566047(0x1da)];[_0x566047(0x1db)];constructor(){const _0x23fc4b=_0x566047;super(),this[_0x23fc4b(0x1da)]=!0x1,this[_0x23fc4b(0x1db)]=!0x1;}[_0x566047(0x1e8)](){const _0x17ac43=_0x566047;this[_0x17ac43(0x1e3)]();}[_0x566047(0x1e3)](){const _0x165437=_0x566047;this[_0x165437(0x1e2)](!0x1),this[_0x165437(0x1e5)](!0x1);}[_0x566047(0x1d8)](){const _0x3c3463=_0x566047;return{'isWebSearchEnabled':this[_0x3c3463(0x1da)],'isReasoningEnabled':this[_0x3c3463(0x1db)]};}static[_0x566047(0x1de)](_0x824cb8){const _0x2105d4=_0x566047,_0x4d6067={};return _0x824cb8&&_0x824cb8[_0x2105d4(0x1e9)]&&(_0x4d6067[_0x2105d4(0x1ea)]={}),_0x824cb8&&_0x824cb8[_0x2105d4(0x1d6)]&&(_0x4d6067[_0x2105d4(0x1e1)]={}),_0x4d6067;}[_0x566047(0x1d9)](){const _0x50f73e=_0x566047;this[_0x50f73e(0x1e2)](!this[_0x50f73e(0x1da)]);}[_0x566047(0x1d3)](){const _0x411feb=_0x566047;this[_0x411feb(0x1e5)](!this[_0x411feb(0x1db)]);}[_0x566047(0x1e2)](_0xc24413){const _0x1c5b21=_0x566047;_0xc24413!==this[_0x1c5b21(0x1da)]&&(this[_0x1c5b21(0x1da)]=_0xc24413,this[_0x1c5b21(0x1d1)](_0x1c5b21(0x1d2),this[_0x1c5b21(0x1d8)]()));}[_0x566047(0x1e5)](_0x246698){const _0x3cac87=_0x566047;_0x246698!==this[_0x3cac87(0x1db)]&&(this[_0x3cac87(0x1db)]=_0x246698,this[_0x3cac87(0x1d1)](_0x3cac87(0x1d2),this[_0x3cac87(0x1d8)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x37a6f6,_0x41259d){var _0x45fa1d=_0x4ad4,_0x53b68e=_0x37a6f6();while(!![]){try{var _0x223e82=-parseInt(_0x45fa1d(0xff))/0x1*(-parseInt(_0x45fa1d(0xef))/0x2)+-parseInt(_0x45fa1d(0xf0))/0x3+parseInt(_0x45fa1d(0xf9))/0x4*(-parseInt(_0x45fa1d(0x104))/0x5)+-parseInt(_0x45fa1d(0xf3))/0x6+-parseInt(_0x45fa1d(0x103))/0x7+parseInt(_0x45fa1d(0x100))/0x8*(-parseInt(_0x45fa1d(0xf4))/0x9)+-parseInt(_0x45fa1d(0xed))/0xa*(-parseInt(_0x45fa1d(0xee))/0xb);if(_0x223e82===_0x41259d)break;else _0x53b68e['push'](_0x53b68e['shift']());}catch(_0x487d46){_0x53b68e['push'](_0x53b68e['shift']());}}}(_0x2843,0xd4095));function _0x2843(){var _0x16ddfb=['11JSVYhr','34YhbGju','3700917AXzQne','URL','SELECTION','1969506MzQzep','658791qNOPPH','MARKDOWN','DOCUMENT','markdown','FILE','16JEvZqY','HTML','TEXT','document','selection','web-resource','48869xkqgVF','184nCQZyn','html','text','6879922enEoaF','2015085Vbkyel','file','58781090wfVjLd'];_0x2843=function(){return _0x16ddfb;};return _0x2843();}export var AIContextItemType;!function(_0x3272d0){var _0x3904c0=_0x4ad4;_0x3272d0[_0x3904c0(0xf8)]=_0x3904c0(0xec),_0x3272d0[_0x3904c0(0xf6)]=_0x3904c0(0xfc),_0x3272d0[_0x3904c0(0xf1)]=_0x3904c0(0xfe),_0x3272d0[_0x3904c0(0xfb)]=_0x3904c0(0x102),_0x3272d0[_0x3904c0(0xf2)]=_0x3904c0(0xfd);}(AIContextItemType||(AIContextItemType={}));function _0x4ad4(_0x1a0666,_0x28339d){var _0x2843fa=_0x2843();return _0x4ad4=function(_0x4ad4a5,_0x4a2d80){_0x4ad4a5=_0x4ad4a5-0xec;var _0x2303ac=_0x2843fa[_0x4ad4a5];return _0x2303ac;},_0x4ad4(_0x1a0666,_0x28339d);}export var AIContextTextResourceType;!function(_0x6121e4){var _0x1a8f1c=_0x4ad4;_0x6121e4[_0x1a8f1c(0xfb)]=_0x1a8f1c(0x102),_0x6121e4[_0x1a8f1c(0xf5)]=_0x1a8f1c(0xf7),_0x6121e4[_0x1a8f1c(0xfa)]=_0x1a8f1c(0x101);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x133b(_0x44d192,_0x32dbcd){const _0x1fb0f4=_0x1fb0();return _0x133b=function(_0x133b0f,_0x2d0af){_0x133b0f=_0x133b0f-0x93;let _0x14015f=_0x1fb0f4[_0x133b0f];return _0x14015f;},_0x133b(_0x44d192,_0x32dbcd);}const _0x453475=_0x133b;(function(_0x50bc79,_0x1a5307){const _0x4b56fd=_0x133b,_0x2a093b=_0x50bc79();while(!![]){try{const _0x3fb820=parseInt(_0x4b56fd(0x93))/0x1*(parseInt(_0x4b56fd(0xb3))/0x2)+parseInt(_0x4b56fd(0xb4))/0x3+parseInt(_0x4b56fd(0xa0))/0x4*(-parseInt(_0x4b56fd(0xa7))/0x5)+parseInt(_0x4b56fd(0xbf))/0x6+parseInt(_0x4b56fd(0xc4))/0x7+parseInt(_0x4b56fd(0xc3))/0x8*(parseInt(_0x4b56fd(0x98))/0x9)+-parseInt(_0x4b56fd(0xa6))/0xa;if(_0x3fb820===_0x1a5307)break;else _0x2a093b['push'](_0x2a093b['shift']());}catch(_0x4b24cd){_0x2a093b['push'](_0x2a093b['shift']());}}}(_0x1fb0,0xe5ed3));import{CKEditorError as _0x17e14b,EmitterMixin as _0xad3428,logWarning as _0x548eb0,uid as _0x59994a}from'ckeditor5/src/utils.js';import{AIReply as _0x43d203,isIgnoredReplyType as _0x23b74d,isValidReplyType as _0x178bea,isReplyTitleType as _0x14e1e8,isSourceType as _0x526dcc}from'./aireply.js';function _0x1fb0(){const _0x595318=['abort','ai-interaction-invalid-event-type','connector','push','splice','createReply','source','replyChangeGroupStateUpdated','2170458tcHAmU','length','stopListening','isDestroyed','259048ecCxdM','3974740LNmXvK','find','event','interactionFinished','sources','getReply','forEach','textDelta','803228GCfMZu','interactionDestroyed','stop','content','abortController','99JNYUnf','fire','start','conversationTitle','replyCreated','appendContent','getDocumentContext','ai-chat-interaction-error','4384ZPzXXU','delegate','replies','getStream','interactionStopped','destroy','8183760mIakKk','3670RRMKXS','currentReply','setConversationTitle','currentRequest','sendRequest','interactionStarted','data','_finalizeInteraction','done','error','isStopped','replyContentUpdated','2TNsdnp','1426911nQCXSA','interactionCreated','editor'];_0x1fb0=function(){return _0x595318;};return _0x1fb0();}export const AI_MODEL_EVENT_NAMES=[_0x453475(0xb5),_0x453475(0xac),_0x453475(0xa4),_0x453475(0xc7),_0x453475(0x94),_0x453475(0x9c),_0x453475(0xb2),_0x453475(0xbe),_0x453475(0xa9),_0x453475(0xb0)];export class AIInteraction extends _0xad3428(){['id'];[_0x453475(0xa2)]=[];[_0x453475(0xa8)];[_0x453475(0xaa)];[_0x453475(0xb9)];[_0x453475(0xb1)]=!0x1;[_0x453475(0xc2)]=!0x1;[_0x453475(0xb6)];constructor({connector:_0x3e6f55,editor:_0x335952}){const _0x3cec22=_0x453475;super(),this['id']=_0x59994a(),this[_0x3cec22(0xb9)]=_0x3e6f55,this[_0x3cec22(0xb1)]=!0x0,this[_0x3cec22(0xb6)]=_0x335952;}async[_0x453475(0x9a)](){const _0x5c2816=_0x453475;let _0x3b6fea;this[_0x5c2816(0xb1)]=!0x1;try{this[_0x5c2816(0xaa)]=await this[_0x5c2816(0xab)](),this[_0x5c2816(0x99)](_0x5c2816(0xac),this);const _0x103471=await this[_0x5c2816(0xaa)][_0x5c2816(0xa3)](),_0x378574=[];for await(const _0x32ccf3 of _0x103471){if(this[_0x5c2816(0xb1)])return;if(_0x5c2816(0xb0)===_0x32ccf3[_0x5c2816(0xc6)])return void this[_0x5c2816(0x99)](_0x5c2816(0xb0),{'error':new _0x17e14b(_0x5c2816(0x9f),this)});_0x14e1e8(_0x32ccf3[_0x5c2816(0xc6)])&&this[_0x5c2816(0xa9)](_0x32ccf3[_0x5c2816(0xad)][_0x5c2816(0x9b)],!0x0),_0x526dcc(_0x32ccf3[_0x5c2816(0xc6)])?_0x378574[_0x5c2816(0xba)](_0x32ccf3[_0x5c2816(0xad)][_0x5c2816(0xbd)]):_0x178bea(_0x32ccf3[_0x5c2816(0xc6)])?(_0x32ccf3[_0x5c2816(0xc6)]!==_0x3b6fea&&(this[_0x5c2816(0xa8)]&&this[_0x5c2816(0xa8)][_0x5c2816(0xaf)](),this[_0x5c2816(0xa8)]=this[_0x5c2816(0xbc)]({'type':_0x32ccf3[_0x5c2816(0xc6)],'interactionId':this['id']}),_0x378574[_0x5c2816(0xc0)]>0x0&&(this[_0x5c2816(0xa8)][_0x5c2816(0xc8)]=_0x378574[_0x5c2816(0xbb)](0x0)),_0x3b6fea=_0x32ccf3[_0x5c2816(0xc6)]),this[_0x5c2816(0xa8)][_0x5c2816(0x9d)](_0x32ccf3[_0x5c2816(0xad)][_0x5c2816(0xcb)])):_0x23b74d(_0x32ccf3[_0x5c2816(0xc6)])||_0x548eb0(_0x5c2816(0xb8),{'chunk':_0x32ccf3});}}finally{this[_0x5c2816(0xb1)]||(this[_0x5c2816(0xae)](),this[_0x5c2816(0x99)](_0x5c2816(0xc7),this));}}[_0x453475(0x95)](){const _0x36953d=_0x453475;this[_0x36953d(0xb1)]||(this[_0x36953d(0xae)](),this[_0x36953d(0x99)](_0x36953d(0xa4),this));}[_0x453475(0xc9)](_0x5982c4){const _0x371838=_0x453475;return this[_0x371838(0xa2)][_0x371838(0xc5)](_0x27d944=>_0x27d944['id']===_0x5982c4);}[_0x453475(0xa5)](){const _0x4992ff=_0x453475;this[_0x4992ff(0xc2)]||(this[_0x4992ff(0x95)](),this[_0x4992ff(0xa2)][_0x4992ff(0xca)](_0x229b49=>_0x229b49[_0x4992ff(0xa5)]()),this[_0x4992ff(0xa2)]=[],this[_0x4992ff(0xc2)]=!0x0,this[_0x4992ff(0x99)](_0x4992ff(0x94),this),this[_0x4992ff(0xc1)]());}[_0x453475(0xbc)](_0x2be477){const _0x52cead=_0x453475,_0xe2df49=new _0x43d203({'editor':this[_0x52cead(0xb6)],'documentContextContent':this[_0x52cead(0x9e)]()?.[_0x52cead(0x96)],..._0x2be477});return this[_0x52cead(0xa2)][_0x52cead(0xba)](_0xe2df49),_0xe2df49[_0x52cead(0xa1)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x52cead(0x99)](_0x52cead(0x9c),_0xe2df49),_0xe2df49;}[_0x453475(0xa9)](_0x24f33e,_0x4ece09=!0x1){const _0x12828a=_0x453475;this[_0x12828a(0x99)](_0x12828a(0xa9),_0x24f33e,_0x4ece09);}[_0x453475(0xae)](){const _0xec1de4=_0x453475;this[_0xec1de4(0xb1)]=!0x0,this[_0xec1de4(0xaa)]&&this[_0xec1de4(0xaa)][_0xec1de4(0x97)][_0xec1de4(0xb7)](),this[_0xec1de4(0xa8)]&&this[_0xec1de4(0xa8)][_0xec1de4(0xaf)](),this[_0xec1de4(0xaa)]=this[_0xec1de4(0xa8)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a45fc=_0xb415;(function(_0x55fa73,_0x11b980){const _0x25d29f=_0xb415,_0x10837a=_0x55fa73();while(!![]){try{const _0x23f583=parseInt(_0x25d29f(0x15d))/0x1+parseInt(_0x25d29f(0x167))/0x2+-parseInt(_0x25d29f(0x149))/0x3*(parseInt(_0x25d29f(0x14a))/0x4)+parseInt(_0x25d29f(0x155))/0x5*(-parseInt(_0x25d29f(0x18a))/0x6)+-parseInt(_0x25d29f(0x182))/0x7+parseInt(_0x25d29f(0x154))/0x8*(-parseInt(_0x25d29f(0x192))/0x9)+-parseInt(_0x25d29f(0x151))/0xa*(-parseInt(_0x25d29f(0x184))/0xb);if(_0x23f583===_0x11b980)break;else _0x10837a['push'](_0x10837a['shift']());}catch(_0x3cf49f){_0x10837a['push'](_0x10837a['shift']());}}}(_0xe52d,0xe304b));import{ObservableMixin as _0x20bf9b,uid as _0x3829f5}from'ckeditor5/src/utils.js';import{Element as _0x392cbd,findAll as _0xc3ba80,getAttribute as _0x56407f,getParents as _0x38bae6,Document as _0x30f4e8,parse as _0x53df46,Text as _0x18f811}from'../utils/htmlparser.js';import{AIResponseParser as _0xc10d8f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4890ca}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x2a45fc(0x14c),_0x2a45fc(0x176)];export const AI_REPLY_TYPES_IGNORED=[_0x2a45fc(0x183)];export const AI_REPLY_TITLE_TYPE=_0x2a45fc(0x16c);export class AIReply extends _0x20bf9b(){['id'];[_0x2a45fc(0x17c)];[_0x2a45fc(0x175)];[_0x2a45fc(0x18c)]=[];[_0x2a45fc(0x15e)]=new _0x30f4e8([]);[_0x2a45fc(0x18b)]=new _0x30f4e8([]);[_0x2a45fc(0x152)]=[];[_0x2a45fc(0x185)]=!0x1;[_0x2a45fc(0x157)];[_0x2a45fc(0x17b)];[_0x2a45fc(0x158)];[_0x2a45fc(0x159)];constructor({type:_0x224088,content:_0x5a2d9f='',isDone:_0x375b2b=!0x1,interactionId:_0x15ed44,areActionsDisabled:_0x4e6952,documentContextContent:_0x17ba84,editor:_0x601ed3}){const _0x200174=_0x2a45fc;super(),this['id']=_0x3829f5(),this[_0x200174(0x17c)]=_0x15ed44,this[_0x200174(0x175)]=_0x224088,this[_0x200174(0x185)]=!!_0x4e6952,this[_0x200174(0x159)]=_0x601ed3,this[_0x200174(0x17b)]=new _0xc10d8f(),this[_0x200174(0x158)]=new _0x4890ca(),this[_0x200174(0x157)]=_0x53df46(_0x17ba84||''),this[_0x200174(0x177)](_0x200174(0x174),_0x375b2b),this['on'](_0x200174(0x170),()=>{const _0x37e6d9=_0x200174;this[_0x37e6d9(0x17a)]();}),this[_0x200174(0x177)](_0x200174(0x169),_0x5a2d9f);}[_0x2a45fc(0x15a)](_0x454837){const _0x21c48c=_0x2a45fc;this[_0x21c48c(0x177)](_0x21c48c(0x169),this[_0x21c48c(0x169)]+_0x454837);}[_0x2a45fc(0x15f)](){const _0x3e5898=_0x2a45fc;this[_0x3e5898(0x174)]||(this[_0x3e5898(0x177)](_0x3e5898(0x174),!0x0),this[_0x3e5898(0x17a)]());}[_0x2a45fc(0x178)](){const _0x49613a=_0x2a45fc;this[_0x49613a(0x18f)]();}[_0x2a45fc(0x191)](_0x2ef789,_0x326a6a){const _0x35c0fc=_0x2a45fc;this[_0x35c0fc(0x152)][_0x2ef789][_0x35c0fc(0x160)]=_0x326a6a,this[_0x35c0fc(0x18d)](_0x35c0fc(0x187),{'reply':this,'index':_0x2ef789,'state':_0x326a6a});}[_0x2a45fc(0x17a)](){const _0x12f6a2=_0x2a45fc;if(_0x12f6a2(0x14c)===this[_0x12f6a2(0x175)]){this[_0x12f6a2(0x15e)]=this[_0x12f6a2(0x17b)][_0x12f6a2(0x153)](this[_0x12f6a2(0x169)]);const _0x53c9d1=this[_0x12f6a2(0x152)];this[_0x12f6a2(0x150)]();const _0x4a96b3=this[_0x12f6a2(0x17e)](_0x53c9d1,this[_0x12f6a2(0x152)]);(_0x4a96b3[_0x12f6a2(0x168)]||this[_0x12f6a2(0x174)])&&this[_0x12f6a2(0x18d)](_0x12f6a2(0x14f),this,_0x4a96b3);}else this[_0x12f6a2(0x15e)]=this[_0x12f6a2(0x17b)][_0x12f6a2(0x188)](this[_0x12f6a2(0x169)]),this[_0x12f6a2(0x18d)](_0x12f6a2(0x14f),this);}[_0x2a45fc(0x17e)](_0x300502,_0x1d9c06){const _0x5d44fd=_0x2a45fc,_0xdfafc6=[];for(const _0x33317f of _0x1d9c06){const _0x3c1bce=_0x300502[_0x33317f[_0x5d44fd(0x17f)]];_0x3c1bce?_0x3c1bce[_0x5d44fd(0x180)][_0x5d44fd(0x168)]!==_0x33317f[_0x5d44fd(0x180)][_0x5d44fd(0x168)]?_0xdfafc6[_0x5d44fd(0x16d)](_0x33317f):_0x3c1bce[_0x5d44fd(0x180)][_0x5d44fd(0x14b)]((_0x28ef4b,_0x538ed4)=>{const _0x4cd1f5=_0x5d44fd,_0x415b78=_0x33317f[_0x4cd1f5(0x180)][_0x538ed4];_0x28ef4b['id']!==_0x415b78['id']&&_0xdfafc6[_0x4cd1f5(0x16d)](_0x33317f);}):_0xdfafc6[_0x5d44fd(0x16d)](_0x33317f);}return _0xdfafc6;}[_0x2a45fc(0x150)](){const _0x1a9f2b=_0x2a45fc,_0x558269=new _0x392cbd('p',{},[new _0x392cbd(_0x1a9f2b(0x165),{'style':_0x1a9f2b(0x166)},[new _0x18f811(_0x1a9f2b(0x190))])]),_0x11a7e5=this[_0x1a9f2b(0x158)][_0x1a9f2b(0x181)](this[_0x1a9f2b(0x15e)],this[_0x1a9f2b(0x157)][_0x1a9f2b(0x163)](!0x0),{'markUnstableElements':!this[_0x1a9f2b(0x174)],'replaceRemovedWith':_0x558269,'cutAfterLastChange':!this[_0x1a9f2b(0x174)]});if(!_0x11a7e5[_0x1a9f2b(0x14d)][_0x1a9f2b(0x168)]&&!this[_0x1a9f2b(0x174)])return;this[_0x1a9f2b(0x18b)]=_0x11a7e5[_0x1a9f2b(0x15e)];let _0x4c0a68=[];if(_0xc3ba80(_0x51f7b7=>{const _0x17b91b=_0x1a9f2b,_0x83a7e5=_0x56407f(_0x51f7b7,_0x17b91b(0x18e));if(!_0x83a7e5||!_0xc744a7(_0x83a7e5))return!0x1;const _0x23ea13=[_0x51f7b7,..._0x38bae6(_0x51f7b7)]['at'](-0x2);if(_0x51f7b7!=_0x23ea13){const _0x420e46=_0x56407f(_0x23ea13,_0x17b91b(0x18e));_0xc744a7(_0x420e46)||(_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x23ea13,'id':_0x420e46,'type':_0x17b91b(0x171)}),_0x11a7e5[_0x17b91b(0x14d)][_0x17b91b(0x16d)](_0x420e46));}else _0x11a7e5[_0x17b91b(0x14d)][_0x17b91b(0x172)](_0x83a7e5)?_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x171),'id':_0x83a7e5}):_0x11a7e5[_0x17b91b(0x156)][_0x17b91b(0x172)](_0x83a7e5)?_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x16f),'id':_0x83a7e5,'anchorId':_0x56407f(_0x51f7b7[_0x17b91b(0x179)],_0x17b91b(0x18e))}):_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x162),'id':_0x83a7e5});return!0x0;},this[_0x1a9f2b(0x18b)]),_0x4c0a68=_0x4c0a68[_0x1a9f2b(0x15b)](({node:_0x24b46d})=>[..._0x38bae6(_0x24b46d),_0x24b46d][_0x1a9f2b(0x186)](_0x4ffb63=>!_0x56407f(_0x4ffb63,_0x1a9f2b(0x16b)))),0x0==_0x4c0a68[_0x1a9f2b(0x168)])return;const _0x16b694=[[_0x4c0a68[0x0]]];for(let _0x4416fb=0x1;_0x4416fb<_0x4c0a68[_0x1a9f2b(0x168)];_0x4416fb++){const _0x554986=_0x16b694[_0x16b694[_0x1a9f2b(0x168)]-0x1],_0x324e49=_0x554986[_0x554986[_0x1a9f2b(0x168)]-0x1];_0x4c0a68[_0x4416fb][_0x1a9f2b(0x15c)][_0x1a9f2b(0x179)]==_0x324e49[_0x1a9f2b(0x15c)]&&_0x1a9f2b(0x171)!=_0x4c0a68[_0x4416fb][_0x1a9f2b(0x175)]&&_0x1a9f2b(0x171)!=_0x324e49[_0x1a9f2b(0x175)]?_0x554986[_0x1a9f2b(0x16d)](_0x4c0a68[_0x4416fb]):_0x16b694[_0x1a9f2b(0x16d)]([_0x4c0a68[_0x4416fb]]);}for(const _0x16733e of _0x16b694){const _0x1ad921=_0x16733e[0x0],_0x55c1ee=_0x16733e[_0x16733e[_0x1a9f2b(0x168)]-0x1],_0x273993=_0x4599d2(_0x1ad921[_0x1a9f2b(0x15c)][_0x1a9f2b(0x179)]);_0x273993&&_0x16733e[_0x1a9f2b(0x164)](_0x273993);const _0x140225=_0x4599d2(_0x55c1ee[_0x1a9f2b(0x15c)][_0x1a9f2b(0x173)]);_0x140225&&_0x16733e[_0x1a9f2b(0x16d)](_0x140225);}function _0xc744a7(_0x313d1e){const _0x5cb6be=_0x1a9f2b;return _0x11a7e5[_0x5cb6be(0x14d)][_0x5cb6be(0x172)](_0x313d1e)||_0x11a7e5[_0x5cb6be(0x156)][_0x5cb6be(0x172)](_0x313d1e)||_0x11a7e5[_0x5cb6be(0x161)][_0x5cb6be(0x172)](_0x313d1e);}function _0x4599d2(_0x80631f){const _0x4fc427=_0x1a9f2b;if(_0x80631f&&_0x56407f(_0x80631f,_0x4fc427(0x18e))&&!_0x56407f(_0x80631f,_0x4fc427(0x16b))){const _0x18f340=_0x56407f(_0x80631f,_0x4fc427(0x18e));if(!_0xc744a7(_0x18f340))return{'node':_0x80631f,'type':_0x4fc427(0x14e),'id':_0x18f340};}return null;}this[_0x1a9f2b(0x152)]=_0x16b694[_0x1a9f2b(0x189)]((_0x2646ae,_0x55ebae)=>({'changes':_0x2646ae,'state':_0x1a9f2b(0x17d),'index':_0x55ebae}));}}function _0xb415(_0x10ab0b,_0x448428){const _0xe52dc8=_0xe52d();return _0xb415=function(_0xb4157a,_0x292b1d){_0xb4157a=_0xb4157a-0x149;let _0x2adb67=_0xe52dc8[_0xb4157a];return _0x2adb67;},_0xb415(_0x10ab0b,_0x448428);}export function isValidReplyType(_0x128d0d){const _0x4c0325=_0x2a45fc;return Object[_0x4c0325(0x16e)](AI_REPLY_TYPES)[_0x4c0325(0x172)](_0x128d0d);}export function isIgnoredReplyType(_0x44bbb7){const _0x1860c4=_0x2a45fc;return AI_REPLY_TYPES_IGNORED[_0x1860c4(0x172)](_0x44bbb7);}export function isReplyTitleType(_0x1570bf){return _0x1570bf===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2c2966){const _0x3aba57=_0x2a45fc;return _0x3aba57(0x16a)===_0x2c2966;}function _0xe52d(){const _0x34fbfe=['content','source','data-unstable','conversation-title','push','values','new','change:content','modified','includes','nextSibling','isDone','type','text-delta','set','destroy','previousSibling','onContentChange','aiResponseParser','interactionId','pending','_getDifferentChangeGroups','index','changes','merge','7448602pNHixh','reasoning','87681niIChG','areActionsDisabled','every','replyChangeGroupStateUpdated','convertMarkdownToHTML','map','84KWEYGl','parsedMergedContent','sources','fire','data-id','stopListening','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','setChangeGroupState','126AUjlZH','636129ARJHgE','28MlClIT','forEach','modification-delta','modifiedNodeIds','context','replyContentUpdated','updateChangeGroups','4600CTDxIc','changeGroups','parseAndNormalizeHTML','234328HUqRXm','460025tnajtY','newNodeIds','documentContextContent','aiResponseApplier','editor','appendContent','filter','node','589538qrXlKC','parsedContent','done','state','removedNodeIds','removed','cloneNode','unshift','span','color:\x20#808080;\x20font-style:\x20italic','1840400ZVFubO','length'];_0xe52d=function(){return _0x34fbfe;};return _0xe52d();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x286046(){[_0x3717cf(0xee)];[_0x3717cf(0xba)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3717cf(0xbc)]=new Set();constructor(_0x29cbec){const _0x1843b4=_0x3717cf;super(),this[_0x1843b4(0xee)]=_0x29cbec||_0xd72eb6;}[_0x3717cf(0xdb)](_0x55a206,_0x1a94e9,_0x1c5aa2){const _0x3f0c71=_0x3717cf,_0x4558c2=_0x428b9a(_0x55a206);if(0x0===_0x1a94e9[_0x3f0c71(0xb1)][_0x3f0c71(0xe8)]){const _0x3364ad=[];return _0x55152f(_0x3f0c71(0xe7),_0x3f0c71(0xcd),_0x4558c2)[_0x3f0c71(0xb8)](_0x251e9c=>{const _0x5aeaa2=_0x3f0c71,_0x3ce9b2=this[_0x5aeaa2(0xee)]();_0x596360(_0x251e9c,_0x5aeaa2(0xe7),_0x3ce9b2),_0x3364ad[_0x5aeaa2(0xd5)](_0x3ce9b2);}),this[_0x3f0c71(0xde)](_0x4558c2),{'parsedContent':_0x4558c2,'newNodeIds':_0x3364ad,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc2)]&&this[_0x3f0c71(0xc5)](_0x4558c2),this[_0x3f0c71(0xba)][_0x3f0c71(0xe1)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xe2)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]=null,this[_0x3f0c71(0xbc)]=new Set(_0x55152f(_0x3f0c71(0xe7),null,_0x1a94e9)[_0x3f0c71(0xc8)](_0x541ab9=>_0x37f6b9(_0x541ab9,_0x3f0c71(0xe7)))[_0x3f0c71(0xb5)](_0x47a8d3=>!!_0x47a8d3));let _0x565330=-0x1,_0x3e9844=!0x1;const _0x4b7e98=_0x4558c2[_0x3f0c71(0xb1)],_0x457c6f=Array[_0x3f0c71(0xe4)](_0x4b7e98)[_0x3f0c71(0xb5)](_0x14e66e=>!(0x3===_0x14e66e[_0x3f0c71(0xe9)]&&''===_0x5b1f1d(_0x14e66e)[_0x3f0c71(0xbe)]())),_0xc086d5=_0x457c6f[_0x3f0c71(0xe8)];for(let _0x38b04f=0x0;_0x38b04f<_0xc086d5;_0x38b04f++){const _0x382739=_0x457c6f[_0x38b04f],_0x4c545e=_0x457c6f[_0x38b04f+0x1];if(this[_0x3f0c71(0xc4)](_0x382739)){if(-0x1===_0x565330&&(_0x565330=_0x38b04f),this[_0x3f0c71(0xb2)](_0x382739),!this[_0x3f0c71(0xc4)](_0x4c545e)){const [_0x37b6c,_0x5e4926]=this[_0x3f0c71(0xbb)](_0x382739,_0x3e9844,_0x1a94e9);if(_0x37b6c){const _0x563e77=Array[_0x3f0c71(0xe4)](_0x457c6f)[_0x3f0c71(0xaa)](_0x565330,_0x38b04f+0x1);this[_0x3f0c71(0xaf)](_0x37b6c,_0x563e77,_0x5e4926),_0x565330=-0x1;}}}else{if(this[_0x3f0c71(0xdf)](_0x382739))_0x3e9844=!0x0;else{if(this[_0x3f0c71(0xe3)](_0x382739)){const _0x4c6f5e=_0x37f6b9(_0x382739,_0x3f0c71(0xe7));if(_0x4c6f5e&&this[_0x3f0c71(0xbc)][_0x3f0c71(0xd2)](_0x4c6f5e)){const _0x5c6394=_0x59a4ef(_0x3f0c71(0xe7),_0x4c6f5e,_0x1a94e9);this[_0x3f0c71(0xcc)](_0x5c6394,_0x382739);}if(this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xac)](_0x4c6f5e)){const _0x5e4c29=this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xa9)](_0x4c6f5e);this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xd8)](_0x5e4c29,0x1);}}else{if(this[_0x3f0c71(0xd6)](_0x382739)){const _0x2da4=_0x37f6b9(_0x382739,_0x3f0c71(0xe7));this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)][_0x3f0c71(0xac)](_0x2da4)||this[_0x3f0c71(0xe5)](_0x382739);}}}}}for(const _0x129498 of this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]){const _0x8ef271=_0x59a4ef(_0x3f0c71(0xe7),_0x129498,_0x1a94e9);if(_0x8ef271){if(_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc3)]){this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]=_0x129498;const _0x583aeb=_0x1c5aa2[_0x3f0c71(0xc3)][_0x3f0c71(0xdd)](!0x0);_0x596360(_0x583aeb,_0x3f0c71(0xe7),_0x129498),_0x596360(_0x583aeb,_0x3f0c71(0xce),_0x3f0c71(0xbf)),_0x426237(_0x8ef271,_0x583aeb);}else _0x26a502(_0x8ef271);}}if(_0x55152f(_0x3f0c71(0xe6),null,_0x1a94e9)[_0x3f0c71(0xb8)](_0x41484d=>{const _0x3e2649=_0x3f0c71,_0x2df444=_0x37f6b9(_0x41484d,_0x3e2649(0xe6)),_0x40d7f0=_0x59a4ef(_0x3e2649(0xe7),_0x2df444,_0x1a94e9);_0x40d7f0&&_0x56304e(_0x40d7f0,_0x41484d);}),_0x55152f(_0x3f0c71(0xe7),_0x3f0c71(0xcd),_0x1a94e9)[_0x3f0c71(0xb8)](_0x1218eb=>{const _0x4aeb2e=_0x3f0c71,_0x541a17=this[_0x4aeb2e(0xca)](_0x1218eb);_0x596360(_0x1218eb,_0x4aeb2e(0xe7),_0x541a17),this[_0x4aeb2e(0xba)][_0x4aeb2e(0xe1)][_0x4aeb2e(0xd5)](_0x541a17);}),this[_0x3f0c71(0xde)](_0x1a94e9),_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc2)]&&this[_0x3f0c71(0xef)](_0x1a94e9,_0x1c5aa2[_0x3f0c71(0xd3)]||0x0),_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xb7)]&&this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]){let _0x132d0c=_0x59a4ef(_0x3f0c71(0xe7),this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)],_0x1a94e9);for(;_0x132d0c;)_0x350869(_0x132d0c),_0x132d0c=_0x132d0c[_0x3f0c71(0xc0)];}return{'parsedContent':_0x1a94e9,'newNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xe1)],'modifiedNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)],'removedNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]};}[_0x3717cf(0xaf)](_0x26a052,_0x16cf0c,_0x290052){const _0x1f2727=_0x3717cf;for(const _0x2addd8 of _0x16cf0c){const _0xec87b5=this[_0x1f2727(0xca)](_0x2addd8);_0x596360(_0x2addd8,_0x1f2727(0xe7),_0xec87b5),this[_0x1f2727(0xba)][_0x1f2727(0xe1)][_0x1f2727(0xd5)](_0xec87b5),this[_0x1f2727(0xba)][_0x1f2727(0xc9)]=_0xec87b5;}const _0x3089a0=_0x1f2727(0xda)===_0x290052||_0x1f2727(0xb3)===_0x290052?_0x16cf0c[_0x1f2727(0xb6)]():_0x16cf0c;for(const _0x453e7c of _0x3089a0)_0x1475e4(_0x26a052,_0x453e7c,_0x290052);}[_0x3717cf(0xcc)](_0x551aa3,_0x455cb1){const _0x4cdb58=_0x3717cf;if(!_0x551aa3)return;if(_0x9ead59(_0x551aa3,_0x455cb1))return;const _0x1fca30=this[_0x4cdb58(0xca)](_0x551aa3);_0x596360(_0x455cb1,_0x4cdb58(0xe7),_0x1fca30),this[_0x4cdb58(0xba)][_0x4cdb58(0xcf)][_0x4cdb58(0xd5)](_0x1fca30),this[_0x4cdb58(0xba)][_0x4cdb58(0xc9)]=_0x1fca30,_0x426237(_0x551aa3,_0x455cb1[_0x4cdb58(0xdd)](!0x0));}[_0x3717cf(0xbb)](_0xb4b915,_0x263b54,_0x5536d0){const _0x713f4f=_0x3717cf,_0x2a252e=this[_0x713f4f(0xab)](_0xb4b915,!0x1);if(_0x2a252e){const _0x4857d9=this[_0x713f4f(0xb9)](_0x2a252e),_0x41f844=_0x59a4ef(_0x713f4f(0xe7),_0x4857d9,_0x5536d0);if(_0x41f844)return[_0x41f844,_0x713f4f(0xb3)];this[_0x713f4f(0xba)][_0x713f4f(0xe2)][_0x713f4f(0xd5)](_0x4857d9);}const _0xeae6d4=this[_0x713f4f(0xd9)](_0xb4b915,!0x1);if(_0xeae6d4){const _0x47cbc2=this[_0x713f4f(0xb9)](_0xeae6d4),_0x38a8c8=_0x59a4ef(_0x713f4f(0xe7),_0x47cbc2,_0x5536d0);if(_0x38a8c8)return[_0x38a8c8,_0x713f4f(0xb0)];this[_0x713f4f(0xba)][_0x713f4f(0xe2)][_0x713f4f(0xd5)](_0x47cbc2);}return _0x263b54?_0xb4b915[_0x713f4f(0xea)]?this[_0x713f4f(0xbd)](_0xb4b915,_0x5536d0):[_0x5536d0[_0x713f4f(0xb1)][_0x5536d0[_0x713f4f(0xb1)][_0x713f4f(0xe8)]-0x1],_0x713f4f(0xb3)]:[_0x5536d0[_0x713f4f(0xb1)][0x0],_0x713f4f(0xb0)];}[_0x3717cf(0xbd)](_0x54ab17,_0x480bf3){const _0x5a907f=_0x3717cf,_0x174639=[],_0x566f99=this[_0x5a907f(0xab)](_0x54ab17,!0x0);if(_0x566f99){const _0x171660=this[_0x5a907f(0xb9)](_0x566f99),_0x219e3e=_0x59a4ef(_0x5a907f(0xe7),_0x171660,_0x480bf3);_0x219e3e&&_0x174639[_0x5a907f(0xd5)]([_0x219e3e,_0x5a907f(0xb3)]);}const _0x1a0201=this[_0x5a907f(0xd9)](_0x54ab17,!0x0);if(_0x1a0201){const _0x4dec01=this[_0x5a907f(0xb9)](_0x1a0201),_0x3ccd77=_0x59a4ef(_0x5a907f(0xe7),_0x4dec01,_0x480bf3);_0x3ccd77&&_0x174639[_0x5a907f(0xd5)]([_0x3ccd77,_0x5a907f(0xb0)]);}if(_0x174639[_0x5a907f(0xe8)]>0x1)return _0x50c1ba(_0x174639[0x0][0x0])<=_0x50c1ba(_0x174639[0x1][0x0])?_0x174639[0x0]:_0x174639[0x1];return 0x1===_0x174639[_0x5a907f(0xe8)]?_0x174639[0x0]:[_0x480bf3[_0x5a907f(0xb4)],_0x5a907f(0xb3)];}[_0x3717cf(0xd9)](_0xadd901,_0x1d6c30){const _0x23b88e=_0x3717cf;let _0xf04c5b=_0xadd901[_0x23b88e(0xea)],_0x454723=null,_0x3e9d3c=!0x1;for(;_0xf04c5b;){if(_0x347e4c(_0xf04c5b)){if(this[_0x23b88e(0xd6)](_0xf04c5b)&&(_0x454723=_0xf04c5b),this[_0x23b88e(0xdf)](_0xf04c5b)&&_0x1d6c30&&!_0x3e9d3c){_0x3e9d3c=!0x0,_0xf04c5b=_0xf04c5b[_0x23b88e(0xea)];continue;}break;}const _0x274d0c=_0x37f6b9(_0xf04c5b,_0x23b88e(0xe7));if(_0x274d0c&&_0x23b88e(0xcd)!==_0x274d0c&&this[_0x23b88e(0xbc)][_0x23b88e(0xd2)](_0x274d0c)){_0x454723=_0xf04c5b;break;}_0xf04c5b=_0xf04c5b[_0x23b88e(0xea)];}return _0x454723;}[_0x3717cf(0xab)](_0x40c681,_0x2178b3){const _0x278bac=_0x3717cf;let _0x5af4f8=_0x40c681[_0x278bac(0xec)],_0x3af02a=null,_0x6ce45a=!0x1;for(;_0x5af4f8;){if(_0x347e4c(_0x5af4f8)){if(this[_0x278bac(0xd6)](_0x5af4f8)&&(_0x3af02a=_0x5af4f8),this[_0x278bac(0xdf)](_0x5af4f8)&&_0x2178b3&&!_0x6ce45a){_0x6ce45a=!0x0,_0x5af4f8=_0x5af4f8[_0x278bac(0xec)];continue;}break;}const _0x198403=_0x37f6b9(_0x5af4f8,_0x278bac(0xe7));if(_0x198403&&_0x278bac(0xcd)!==_0x198403&&this[_0x278bac(0xbc)][_0x278bac(0xd2)](_0x198403)){_0x3af02a=_0x5af4f8;break;}_0x5af4f8=_0x5af4f8[_0x278bac(0xec)];}return _0x3af02a;}[_0x3717cf(0xb2)](_0xe81c60){const _0x3a9e0d=_0x3717cf;_0x1487ed(_0xe81c60)&&_0x55152f(_0x3a9e0d(0xe7),null,_0xe81c60)[_0x3a9e0d(0xb8)](_0x2316ae=>{const _0x355b9c=_0x3a9e0d;if(this[_0x355b9c(0xe3)](_0x2316ae)&&!this[_0x355b9c(0xdc)](_0x2316ae)){const _0x3dd596=_0x37f6b9(_0x2316ae,_0x355b9c(0xe7));_0x596360(_0x2316ae,_0x355b9c(0xe6),_0x3dd596),_0x596360(_0x2316ae,_0x355b9c(0xe7),null);}});}[_0x3717cf(0xb9)](_0x3e794d){const _0x53647b=_0x3717cf;if(!_0x3e794d)return null;if(_0x1487ed(_0x3e794d))return _0x37f6b9(_0x3e794d,_0x53647b(0xe7));if(_0x347e4c(_0x3e794d)){const _0x56f79d=_0x5b1f1d(_0x3e794d)[_0x53647b(0xd7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x56f79d&&_0x56f79d[0x1])return _0x56f79d[0x1];}return null;}[_0x3717cf(0xe5)](_0x4af462){const _0x52194c=_0x3717cf;if(_0x347e4c(_0x4af462)){const _0x233324=_0x5b1f1d(_0x4af462)[_0x52194c(0xd7)](/removed[\s*-]data-id="([^"]+)"/);_0x233324&&_0x233324[0x1]&&this[_0x52194c(0xba)][_0x52194c(0xad)][_0x52194c(0xd5)](_0x233324[0x1]);}}[_0x3717cf(0xca)](_0x41c273){const _0x483382=_0x3717cf;return this[_0x483382(0xe3)](_0x41c273)?_0x37f6b9(_0x41c273,_0x483382(0xe7)):this[_0x483382(0xee)]();}[_0x3717cf(0xde)](_0x22162e){const _0x51b3d6=_0x3717cf;_0x352743(_0x22162e)[_0x51b3d6(0xb5)](_0xcc8ea3=>this[_0x51b3d6(0xd6)](_0xcc8ea3)||this[_0x51b3d6(0xdf)](_0xcc8ea3))[_0x51b3d6(0xb8)](_0x1f01a0=>{_0x26a502(_0x1f01a0);});}[_0x3717cf(0xc5)](_0x57c7d0){const _0x4379fe=_0x3717cf,_0x447ec6=_0x57c7d0[_0x4379fe(0xb1)],_0x3c1638=_0x447ec6[_0x447ec6[_0x4379fe(0xe8)]-0x1];_0x3c1638&&_0x1487ed(_0x3c1638)&&_0x596360(_0x3c1638,_0x4379fe(0xc6),_0x4379fe(0xbf));}[_0x3717cf(0xef)](_0x28b899,_0x473228){const _0x450d3f=_0x3717cf,_0x20896a=_0x59a4ef(_0x450d3f(0xc6),_0x450d3f(0xbf),_0x28b899);if(!_0x20896a)return;const _0x24a010=_0x14c991(_0x20896a)[_0x450d3f(0xaa)](0x0,-0x1),_0x238952=_0x24a010[_0x450d3f(0xe8)];let _0x3f4f73=_0x20896a;if(_0x238952>_0x473228){let _0x2e73ac=_0x238952,_0x3567d6=null;for(;_0x2e73ac>_0x473228&&_0x2e73ac>=0x0;)_0x2e73ac--,_0x3567d6=_0x24a010[_0x2e73ac];_0x3567d6&&(_0x3f4f73=_0x3567d6,_0x596360(_0x20896a,_0x450d3f(0xc6),null),_0x596360(_0x3567d6,_0x450d3f(0xc6),_0x450d3f(0xbf)));}else{if(_0x238952<_0x473228){let _0x4d1fef=_0x238952,_0x431915=_0x20896a;for(;_0x4d1fef<_0x473228;){const _0x40f40e=_0x431915[_0x450d3f(0xb1)][_0x450d3f(0xb5)](_0x5f8265=>_0x1487ed(_0x5f8265));if(0x0===_0x40f40e[_0x450d3f(0xe8)])break;_0x4d1fef++,_0x431915=_0x40f40e[_0x40f40e[_0x450d3f(0xe8)]-0x1];}_0x431915&&(_0x3f4f73=_0x431915,_0x596360(_0x20896a,_0x450d3f(0xc6),null),_0x596360(_0x431915,_0x450d3f(0xc6),_0x450d3f(0xbf)));}}let _0x1aa20c=_0x3f4f73;for(;_0x1aa20c;){for(;_0x1aa20c[_0x450d3f(0xea)];)_0x1aa20c=_0x1aa20c[_0x450d3f(0xea)],_0x1487ed(_0x1aa20c)&&_0x596360(_0x1aa20c,_0x450d3f(0xc6),_0x450d3f(0xbf));_0x1aa20c=_0x1aa20c[_0x450d3f(0xc0)];}}[_0x3717cf(0xc4)](_0x35539d){const _0x4d57d4=_0x3717cf;return Boolean(_0x4d57d4(0xcd)===_0x37f6b9(_0x35539d,_0x4d57d4(0xe7)));}[_0x3717cf(0xe3)](_0x47eb55){const _0x5867f1=_0x3717cf;return Boolean((_0x37f6b9(_0x47eb55,_0x5867f1(0xe7))||'')[_0x5867f1(0xe8)]>0x0&&_0x5867f1(0xcd)!==_0x37f6b9(_0x47eb55,_0x5867f1(0xe7)));}[_0x3717cf(0xd6)](_0x5aafda){const _0x3cec6a=_0x3717cf;return!!_0x5aafda&&Boolean(_0x347e4c(_0x5aafda)&&_0x5b1f1d(_0x5aafda)[_0x3cec6a(0xd7)](/removed[\s*-]data-id="[^"]+"/));}[_0x3717cf(0xdc)](_0x3efff2){const _0x448533=_0x3717cf;let _0x3f435d=_0x3efff2[_0x448533(0xc0)];for(;_0x3f435d;){if(_0x37f6b9(_0x3f435d,_0x448533(0xe6)))return!0x0;_0x3f435d=_0x3f435d[_0x448533(0xc0)];}return!0x1;}[_0x3717cf(0xdf)](_0x42a6dc){const _0x300134=_0x3717cf;return Boolean(_0x347e4c(_0x42a6dc)&&_0x5b1f1d(_0x42a6dc)[_0x300134(0xd7)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x3febde=_0x5065;(function(_0x35bb6f,_0x325c6d){const _0x24c588=_0x5065,_0x397d7e=_0x35bb6f();while(!![]){try{const _0xb3bd6b=parseInt(_0x24c588(0x1ee))/0x1+parseInt(_0x24c588(0x1ef))/0x2*(parseInt(_0x24c588(0x1dd))/0x3)+parseInt(_0x24c588(0x205))/0x4*(parseInt(_0x24c588(0x1d8))/0x5)+parseInt(_0x24c588(0x1c6))/0x6+-parseInt(_0x24c588(0x1d0))/0x7*(parseInt(_0x24c588(0x1f0))/0x8)+parseInt(_0x24c588(0x1e8))/0x9*(-parseInt(_0x24c588(0x1c5))/0xa)+-parseInt(_0x24c588(0x1da))/0xb;if(_0xb3bd6b===_0x325c6d)break;else _0x397d7e['push'](_0x397d7e['shift']());}catch(_0x24155b){_0x397d7e['push'](_0x397d7e['shift']());}}}(_0x24aa,0x398eb));import{ObservableMixin as _0x5d1755,uid as _0x15d1e1}from'ckeditor5/src/utils.js';function _0x24aa(){const _0x38c81b=['afterend','_replaceNode','modifiedIds','_findFallbackReferenceNode','data-id','_findNextElementWithDataId','1810CScfCa','newIds','5797385Ahvqtf','indexOf','previousSibling','42702Uzpclu','reverse','length','cutAfterLastChange','splice','_findReferenceNode','removedIds','has','map','_existingDataIds','_hasWrappedParent','64026nOwQYU','_isDelNode','_markWrappedElements','lastChild','parentNode','_isExistingContentComment','146844wlYTcz','28xHzCAz','424AFwgBR','lastTouchedId','new-element','from','cloneNode','_isExistingNode','data-removed','trim','_removeSpecialComments','_touchedNodesState','_storeDeletedElementIds','_markLastTagElementUnstable','_findPrevElementWithDataId','filter','data-unstable','merge','nodeType','_getUid','_isNewNode','_insertNodes','includes','4584ulsUPw','_markUnstableElements','slice','nextSibling','push','_getNodeDataId','forEach','markUnstableElements','80untfiN','573390qEbAae','replaceRemovedWith','data-wrapped-id','afterbegin','childNodes','markUnstableElementsDepth','beforebegin','match','invalidIds','_generateUid','4865bURcbT','true'];_0x24aa=function(){return _0x38c81b;};return _0x24aa();}function _0x5065(_0x3748ad,_0x17663c){const _0x24aa45=_0x24aa();return _0x5065=function(_0x506502,_0x347536){_0x506502=_0x506502-0x1be;let _0x19723d=_0x24aa45[_0x506502];return _0x19723d;},_0x5065(_0x3748ad,_0x17663c);}import{findAllByAttribute as _0x3b2eec,findByAttribute as _0x48c6d9,getAttribute as _0x4e3db5,isComment as _0x51155c,isTag as _0x101422,insertElement as _0x44581f,moveElement as _0x2bbe62,removeElement as _0x25b599,replaceElement as _0x19a95c,serialize as _0x43b44b,setAttribute as _0x1ae963,clone as _0x137d8b,findAllComments as _0x294bf8,getParents as _0x2ff4fc,getNodeNestingLevel as _0x18160d,areNodesSame as _0x4b2257,removeElementsAfter as _0x416884}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d1755(){[_0x3febde(0x1cf)];[_0x3febde(0x1f9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3febde(0x1e6)]=new Set();constructor(_0x589873){const _0x27e1aa=_0x3febde;super(),this[_0x27e1aa(0x1cf)]=_0x589873||_0x15d1e1;}[_0x3febde(0x1ff)](_0x36c38e,_0x44ee52,_0x38408b){const _0x3202be=_0x3febde,_0x5c0eee=_0x137d8b(_0x36c38e);if(0x0===_0x44ee52[_0x3202be(0x1ca)][_0x3202be(0x1df)]){const _0xd06278=[];return _0x3b2eec(_0x3202be(0x1d6),_0x3202be(0x1f2),_0x5c0eee)[_0x3202be(0x1c3)](_0x412ccd=>{const _0x2ac5c5=_0x3202be,_0x2b7788=this[_0x2ac5c5(0x1cf)]();_0x1ae963(_0x412ccd,_0x2ac5c5(0x1d6),_0x2b7788),_0xd06278[_0x2ac5c5(0x1c1)](_0x2b7788);}),this[_0x3202be(0x1f8)](_0x5c0eee),{'parsedContent':_0x5c0eee,'newNodeIds':_0xd06278,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x38408b&&_0x38408b[_0x3202be(0x1c4)]&&this[_0x3202be(0x1fb)](_0x5c0eee),this[_0x3202be(0x1f9)][_0x3202be(0x1d9)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1d4)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1ce)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]=null,this[_0x3202be(0x1e6)]=new Set(_0x3b2eec(_0x3202be(0x1d6),null,_0x44ee52)[_0x3202be(0x1e5)](_0x48f991=>_0x4e3db5(_0x48f991,_0x3202be(0x1d6)))[_0x3202be(0x1fd)](_0x623c15=>!!_0x623c15));let _0x1417fb=-0x1,_0x27cb98=!0x1;const _0x5d361b=_0x5c0eee[_0x3202be(0x1ca)],_0x12c9d6=Array[_0x3202be(0x1f3)](_0x5d361b)[_0x3202be(0x1fd)](_0x44ec29=>!(0x3===_0x44ec29[_0x3202be(0x200)]&&''===_0x43b44b(_0x44ec29)[_0x3202be(0x1f7)]())),_0x1ebc51=_0x12c9d6[_0x3202be(0x1df)];for(let _0x4a99ab=0x0;_0x4a99ab<_0x1ebc51;_0x4a99ab++){const _0x44b52e=_0x12c9d6[_0x4a99ab],_0x3a95cf=_0x12c9d6[_0x4a99ab+0x1];if(this[_0x3202be(0x202)](_0x44b52e)){if(-0x1===_0x1417fb&&(_0x1417fb=_0x4a99ab),this[_0x3202be(0x1ea)](_0x44b52e),!this[_0x3202be(0x202)](_0x3a95cf)){const [_0x411d28,_0x46ad4f]=this[_0x3202be(0x1e2)](_0x44b52e,_0x27cb98,_0x44ee52);if(_0x411d28){const _0x23f370=Array[_0x3202be(0x1f3)](_0x12c9d6)[_0x3202be(0x1bf)](_0x1417fb,_0x4a99ab+0x1);this[_0x3202be(0x203)](_0x411d28,_0x23f370,_0x46ad4f),_0x1417fb=-0x1;}}}else{if(this[_0x3202be(0x1ed)](_0x44b52e))_0x27cb98=!0x0;else{if(this[_0x3202be(0x1f5)](_0x44b52e)){const _0x4dd8d5=_0x4e3db5(_0x44b52e,_0x3202be(0x1d6));if(_0x4dd8d5&&this[_0x3202be(0x1e6)][_0x3202be(0x1e4)](_0x4dd8d5)){const _0x44c779=_0x48c6d9(_0x3202be(0x1d6),_0x4dd8d5,_0x44ee52);this[_0x3202be(0x1d3)](_0x44c779,_0x44b52e);}if(this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x204)](_0x4dd8d5)){const _0x437042=this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x1db)](_0x4dd8d5);this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x1e1)](_0x437042,0x1);}}else{if(this[_0x3202be(0x1e9)](_0x44b52e)){const _0x4c4442=_0x4e3db5(_0x44b52e,_0x3202be(0x1d6));this[_0x3202be(0x1f9)][_0x3202be(0x1d4)][_0x3202be(0x204)](_0x4c4442)||this[_0x3202be(0x1fa)](_0x44b52e);}}}}}for(const _0x2a5752 of this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]){const _0x5b4df0=_0x48c6d9(_0x3202be(0x1d6),_0x2a5752,_0x44ee52);if(_0x5b4df0){if(_0x38408b&&_0x38408b[_0x3202be(0x1c7)]){this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]=_0x2a5752;const _0x59c6e9=_0x38408b[_0x3202be(0x1c7)][_0x3202be(0x1f4)](!0x0);_0x1ae963(_0x59c6e9,_0x3202be(0x1d6),_0x2a5752),_0x1ae963(_0x59c6e9,_0x3202be(0x1f6),_0x3202be(0x1d1)),_0x19a95c(_0x5b4df0,_0x59c6e9);}else _0x25b599(_0x5b4df0);}}if(_0x3b2eec(_0x3202be(0x1c8),null,_0x44ee52)[_0x3202be(0x1c3)](_0x55d743=>{const _0xf5d36b=_0x3202be,_0xc9c1c6=_0x4e3db5(_0x55d743,_0xf5d36b(0x1c8)),_0x2d2735=_0x48c6d9(_0xf5d36b(0x1d6),_0xc9c1c6,_0x44ee52);_0x2d2735&&_0x2bbe62(_0x2d2735,_0x55d743);}),_0x3b2eec(_0x3202be(0x1d6),_0x3202be(0x1f2),_0x44ee52)[_0x3202be(0x1c3)](_0x29264f=>{const _0x3afaed=_0x3202be,_0x196c43=this[_0x3afaed(0x201)](_0x29264f);_0x1ae963(_0x29264f,_0x3afaed(0x1d6),_0x196c43),this[_0x3afaed(0x1f9)][_0x3afaed(0x1d9)][_0x3afaed(0x1c1)](_0x196c43);}),this[_0x3202be(0x1f8)](_0x44ee52),_0x38408b&&_0x38408b[_0x3202be(0x1c4)]&&this[_0x3202be(0x1be)](_0x44ee52,_0x38408b[_0x3202be(0x1cb)]||0x0),_0x38408b&&_0x38408b[_0x3202be(0x1e0)]&&this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]){let _0x23969f=_0x48c6d9(_0x3202be(0x1d6),this[_0x3202be(0x1f9)][_0x3202be(0x1f1)],_0x44ee52);for(;_0x23969f;)_0x416884(_0x23969f),_0x23969f=_0x23969f[_0x3202be(0x1ec)];}return{'parsedContent':_0x44ee52,'newNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1d9)],'modifiedNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1d4)],'removedNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]};}[_0x3febde(0x203)](_0x365dba,_0x4d004f,_0x2cd130){const _0x120203=_0x3febde;for(const _0x3fbce1 of _0x4d004f){const _0x1b5506=this[_0x120203(0x201)](_0x3fbce1);_0x1ae963(_0x3fbce1,_0x120203(0x1d6),_0x1b5506),this[_0x120203(0x1f9)][_0x120203(0x1d9)][_0x120203(0x1c1)](_0x1b5506),this[_0x120203(0x1f9)][_0x120203(0x1f1)]=_0x1b5506;}const _0x25e1d5=_0x120203(0x1c9)===_0x2cd130||_0x120203(0x1d2)===_0x2cd130?_0x4d004f[_0x120203(0x1de)]():_0x4d004f;for(const _0x437186 of _0x25e1d5)_0x44581f(_0x365dba,_0x437186,_0x2cd130);}[_0x3febde(0x1d3)](_0x1a8910,_0x2eefce){const _0x978614=_0x3febde;if(!_0x1a8910)return;if(_0x4b2257(_0x1a8910,_0x2eefce))return;const _0x528eef=this[_0x978614(0x201)](_0x1a8910);_0x1ae963(_0x2eefce,_0x978614(0x1d6),_0x528eef),this[_0x978614(0x1f9)][_0x978614(0x1d4)][_0x978614(0x1c1)](_0x528eef),this[_0x978614(0x1f9)][_0x978614(0x1f1)]=_0x528eef,_0x19a95c(_0x1a8910,_0x2eefce[_0x978614(0x1f4)](!0x0));}[_0x3febde(0x1e2)](_0x52e55e,_0x50c572,_0x5cb31e){const _0x281d0d=_0x3febde,_0x457011=this[_0x281d0d(0x1fc)](_0x52e55e,!0x1);if(_0x457011){const _0x2b2784=this[_0x281d0d(0x1c2)](_0x457011),_0x457b05=_0x48c6d9(_0x281d0d(0x1d6),_0x2b2784,_0x5cb31e);if(_0x457b05)return[_0x457b05,_0x281d0d(0x1d2)];this[_0x281d0d(0x1f9)][_0x281d0d(0x1ce)][_0x281d0d(0x1c1)](_0x2b2784);}const _0x492d7c=this[_0x281d0d(0x1d7)](_0x52e55e,!0x1);if(_0x492d7c){const _0x3d7c48=this[_0x281d0d(0x1c2)](_0x492d7c),_0x49cb21=_0x48c6d9(_0x281d0d(0x1d6),_0x3d7c48,_0x5cb31e);if(_0x49cb21)return[_0x49cb21,_0x281d0d(0x1cc)];this[_0x281d0d(0x1f9)][_0x281d0d(0x1ce)][_0x281d0d(0x1c1)](_0x3d7c48);}return _0x50c572?_0x52e55e[_0x281d0d(0x1c0)]?this[_0x281d0d(0x1d5)](_0x52e55e,_0x5cb31e):[_0x5cb31e[_0x281d0d(0x1ca)][_0x5cb31e[_0x281d0d(0x1ca)][_0x281d0d(0x1df)]-0x1],_0x281d0d(0x1d2)]:[_0x5cb31e[_0x281d0d(0x1ca)][0x0],_0x281d0d(0x1cc)];}[_0x3febde(0x1d5)](_0x21429a,_0x388a36){const _0x3ee238=_0x3febde,_0x5aae30=[],_0x2f7a3f=this[_0x3ee238(0x1fc)](_0x21429a,!0x0);if(_0x2f7a3f){const _0x6eabb2=this[_0x3ee238(0x1c2)](_0x2f7a3f),_0x47435d=_0x48c6d9(_0x3ee238(0x1d6),_0x6eabb2,_0x388a36);_0x47435d&&_0x5aae30[_0x3ee238(0x1c1)]([_0x47435d,_0x3ee238(0x1d2)]);}const _0x41ddd7=this[_0x3ee238(0x1d7)](_0x21429a,!0x0);if(_0x41ddd7){const _0x2084c5=this[_0x3ee238(0x1c2)](_0x41ddd7),_0x313cc2=_0x48c6d9(_0x3ee238(0x1d6),_0x2084c5,_0x388a36);_0x313cc2&&_0x5aae30[_0x3ee238(0x1c1)]([_0x313cc2,_0x3ee238(0x1cc)]);}if(_0x5aae30[_0x3ee238(0x1df)]>0x1)return _0x18160d(_0x5aae30[0x0][0x0])<=_0x18160d(_0x5aae30[0x1][0x0])?_0x5aae30[0x0]:_0x5aae30[0x1];return 0x1===_0x5aae30[_0x3ee238(0x1df)]?_0x5aae30[0x0]:[_0x388a36[_0x3ee238(0x1eb)],_0x3ee238(0x1d2)];}[_0x3febde(0x1d7)](_0xc65e81,_0x4ce1d0){const _0x17a7fc=_0x3febde;let _0x1c7c16=_0xc65e81[_0x17a7fc(0x1c0)],_0x4c7948=null,_0x1fdab4=!0x1;for(;_0x1c7c16;){if(_0x51155c(_0x1c7c16)){if(this[_0x17a7fc(0x1e9)](_0x1c7c16)&&(_0x4c7948=_0x1c7c16),this[_0x17a7fc(0x1ed)](_0x1c7c16)&&_0x4ce1d0&&!_0x1fdab4){_0x1fdab4=!0x0,_0x1c7c16=_0x1c7c16[_0x17a7fc(0x1c0)];continue;}break;}const _0x50fe9e=_0x4e3db5(_0x1c7c16,_0x17a7fc(0x1d6));if(_0x50fe9e&&_0x17a7fc(0x1f2)!==_0x50fe9e&&this[_0x17a7fc(0x1e6)][_0x17a7fc(0x1e4)](_0x50fe9e)){_0x4c7948=_0x1c7c16;break;}_0x1c7c16=_0x1c7c16[_0x17a7fc(0x1c0)];}return _0x4c7948;}[_0x3febde(0x1fc)](_0x14e0da,_0x562f6c){const _0x336011=_0x3febde;let _0x229b0a=_0x14e0da[_0x336011(0x1dc)],_0x32b96a=null,_0xbe0a13=!0x1;for(;_0x229b0a;){if(_0x51155c(_0x229b0a)){if(this[_0x336011(0x1e9)](_0x229b0a)&&(_0x32b96a=_0x229b0a),this[_0x336011(0x1ed)](_0x229b0a)&&_0x562f6c&&!_0xbe0a13){_0xbe0a13=!0x0,_0x229b0a=_0x229b0a[_0x336011(0x1dc)];continue;}break;}const _0x54091c=_0x4e3db5(_0x229b0a,_0x336011(0x1d6));if(_0x54091c&&_0x336011(0x1f2)!==_0x54091c&&this[_0x336011(0x1e6)][_0x336011(0x1e4)](_0x54091c)){_0x32b96a=_0x229b0a;break;}_0x229b0a=_0x229b0a[_0x336011(0x1dc)];}return _0x32b96a;}[_0x3febde(0x1ea)](_0x3329bf){const _0x49b0a3=_0x3febde;_0x101422(_0x3329bf)&&_0x3b2eec(_0x49b0a3(0x1d6),null,_0x3329bf)[_0x49b0a3(0x1c3)](_0x1cb815=>{const _0x201001=_0x49b0a3;if(this[_0x201001(0x1f5)](_0x1cb815)&&!this[_0x201001(0x1e7)](_0x1cb815)){const _0x204a94=_0x4e3db5(_0x1cb815,_0x201001(0x1d6));_0x1ae963(_0x1cb815,_0x201001(0x1c8),_0x204a94),_0x1ae963(_0x1cb815,_0x201001(0x1d6),null);}});}[_0x3febde(0x1c2)](_0x187dd3){const _0x3be7b6=_0x3febde;if(!_0x187dd3)return null;if(_0x101422(_0x187dd3))return _0x4e3db5(_0x187dd3,_0x3be7b6(0x1d6));if(_0x51155c(_0x187dd3)){const _0x2cb24b=_0x43b44b(_0x187dd3)[_0x3be7b6(0x1cd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2cb24b&&_0x2cb24b[0x1])return _0x2cb24b[0x1];}return null;}[_0x3febde(0x1fa)](_0x33a1b6){const _0x1d6091=_0x3febde;if(_0x51155c(_0x33a1b6)){const _0x4e6170=_0x43b44b(_0x33a1b6)[_0x1d6091(0x1cd)](/removed[\s*-]data-id="([^"]+)"/);_0x4e6170&&_0x4e6170[0x1]&&this[_0x1d6091(0x1f9)][_0x1d6091(0x1e3)][_0x1d6091(0x1c1)](_0x4e6170[0x1]);}}[_0x3febde(0x201)](_0x3abab6){const _0x148926=_0x3febde;return this[_0x148926(0x1f5)](_0x3abab6)?_0x4e3db5(_0x3abab6,_0x148926(0x1d6)):this[_0x148926(0x1cf)]();}[_0x3febde(0x1f8)](_0x2c805c){const _0x515568=_0x3febde;_0x294bf8(_0x2c805c)[_0x515568(0x1fd)](_0x5b898f=>this[_0x515568(0x1e9)](_0x5b898f)||this[_0x515568(0x1ed)](_0x5b898f))[_0x515568(0x1c3)](_0xfeb336=>{_0x25b599(_0xfeb336);});}[_0x3febde(0x1fb)](_0x20dc4a){const _0x559988=_0x3febde,_0x30f543=_0x20dc4a[_0x559988(0x1ca)],_0x410754=_0x30f543[_0x30f543[_0x559988(0x1df)]-0x1];_0x410754&&_0x101422(_0x410754)&&_0x1ae963(_0x410754,_0x559988(0x1fe),_0x559988(0x1d1));}[_0x3febde(0x1be)](_0x2eba3f,_0x413f92){const _0x4b28bc=_0x3febde,_0xcec155=_0x48c6d9(_0x4b28bc(0x1fe),_0x4b28bc(0x1d1),_0x2eba3f);if(!_0xcec155)return;const _0x1fc209=_0x2ff4fc(_0xcec155)[_0x4b28bc(0x1bf)](0x0,-0x1),_0x1f4838=_0x1fc209[_0x4b28bc(0x1df)];let _0x19ac7e=_0xcec155;if(_0x1f4838>_0x413f92){let _0x12393a=_0x1f4838,_0x5de675=null;for(;_0x12393a>_0x413f92&&_0x12393a>=0x0;)_0x12393a--,_0x5de675=_0x1fc209[_0x12393a];_0x5de675&&(_0x19ac7e=_0x5de675,_0x1ae963(_0xcec155,_0x4b28bc(0x1fe),null),_0x1ae963(_0x5de675,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1)));}else{if(_0x1f4838<_0x413f92){let _0x10aa2c=_0x1f4838,_0x470a69=_0xcec155;for(;_0x10aa2c<_0x413f92;){const _0x258919=_0x470a69[_0x4b28bc(0x1ca)][_0x4b28bc(0x1fd)](_0x39ada5=>_0x101422(_0x39ada5));if(0x0===_0x258919[_0x4b28bc(0x1df)])break;_0x10aa2c++,_0x470a69=_0x258919[_0x258919[_0x4b28bc(0x1df)]-0x1];}_0x470a69&&(_0x19ac7e=_0x470a69,_0x1ae963(_0xcec155,_0x4b28bc(0x1fe),null),_0x1ae963(_0x470a69,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1)));}}let _0x135e1c=_0x19ac7e;for(;_0x135e1c;){for(;_0x135e1c[_0x4b28bc(0x1c0)];)_0x135e1c=_0x135e1c[_0x4b28bc(0x1c0)],_0x101422(_0x135e1c)&&_0x1ae963(_0x135e1c,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1));_0x135e1c=_0x135e1c[_0x4b28bc(0x1ec)];}}[_0x3febde(0x202)](_0x3b036f){const _0x4bd638=_0x3febde;return Boolean(_0x4bd638(0x1f2)===_0x4e3db5(_0x3b036f,_0x4bd638(0x1d6)));}[_0x3febde(0x1f5)](_0x45dd06){const _0x597fc7=_0x3febde;return Boolean((_0x4e3db5(_0x45dd06,_0x597fc7(0x1d6))||'')[_0x597fc7(0x1df)]>0x0&&_0x597fc7(0x1f2)!==_0x4e3db5(_0x45dd06,_0x597fc7(0x1d6)));}[_0x3febde(0x1e9)](_0xb346af){const _0x316643=_0x3febde;return!!_0xb346af&&Boolean(_0x51155c(_0xb346af)&&_0x43b44b(_0xb346af)[_0x316643(0x1cd)](/removed[\s*-]data-id="[^"]+"/));}[_0x3febde(0x1e7)](_0x46a7e4){const _0x2d84f6=_0x3febde;let _0xf655da=_0x46a7e4[_0x2d84f6(0x1ec)];for(;_0xf655da;){if(_0x4e3db5(_0xf655da,_0x2d84f6(0x1c8)))return!0x0;_0xf655da=_0xf655da[_0x2d84f6(0x1ec)];}return!0x1;}[_0x3febde(0x1ed)](_0x352128){const _0x4b9416=_0x3febde;return Boolean(_0x51155c(_0x352128)&&_0x43b44b(_0x352128)[_0x4b9416(0x1cd)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x2755(){const _0x2211a7=['replace','51872HgWxGv','2401446QEIpJy','1185slPpzZ','231mWCQyp','14384WlqYTp','</dummy>','60071ytobAx','parseAndNormalizeHTML','2368SdfDxC','children','_parseHTML','13623468hLKKkB','convertMarkdownToHTML','<dummy>','_m2html','540lbyAHB','7sFEHZi','135rItIOP','601874fqqAZm','parse'];_0x2755=function(){return _0x2211a7;};return _0x2755();}const _0x138970=_0x26ba;(function(_0x46b2fd,_0x35e905){const _0x344660=_0x26ba,_0x12000c=_0x46b2fd();while(!![]){try{const _0x40022d=-parseInt(_0x344660(0x19c))/0x1+parseInt(_0x344660(0x192))/0x2*(-parseInt(_0x344660(0x1a2))/0x3)+-parseInt(_0x344660(0x1a3))/0x4*(-parseInt(_0x344660(0x1a1))/0x5)+-parseInt(_0x344660(0x1a0))/0x6*(parseInt(_0x344660(0x19a))/0x7)+-parseInt(_0x344660(0x19f))/0x8*(parseInt(_0x344660(0x19b))/0x9)+parseInt(_0x344660(0x199))/0xa*(-parseInt(_0x344660(0x190))/0xb)+parseInt(_0x344660(0x195))/0xc;if(_0x40022d===_0x35e905)break;else _0x12000c['push'](_0x12000c['shift']());}catch(_0x5927c0){_0x12000c['push'](_0x12000c['shift']());}}}(_0x2755,0x7a958));import{ObservableMixin as _0x3a59bd}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x10b906}from'@ckeditor/ckeditor5-markdown-gfm';function _0x26ba(_0x213fd4,_0x424791){const _0x2755f5=_0x2755();return _0x26ba=function(_0x26bab3,_0x257a86){_0x26bab3=_0x26bab3-0x18f;let _0x344423=_0x2755f5[_0x26bab3];return _0x344423;},_0x26ba(_0x213fd4,_0x424791);}import{parse as _0x4fedee}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a59bd(){[_0x138970(0x198)];constructor(){const _0x1a0933=_0x138970;super(),this[_0x1a0933(0x198)]=new _0x10b906();}[_0x138970(0x196)](_0x38c2f7){const _0x3a12c2=_0x138970,_0x560384=this[_0x3a12c2(0x198)][_0x3a12c2(0x19d)](_0x38c2f7);return this[_0x3a12c2(0x191)](_0x560384);}[_0x138970(0x191)](_0x22c0ce){const _0x3ca16e=_0x138970;return this[_0x3ca16e(0x194)](_0x22c0ce);}[_0x138970(0x194)](_0x5f3a73){const _0x27231c=_0x138970,_0x253e09=_0x5f3a73[_0x27231c(0x19e)](/^\t+/gm,'\x20')[_0x27231c(0x19e)](/\n*/g,'')[_0x27231c(0x19e)](/\s+/g,'\x20')[_0x27231c(0x19e)](/<[^>]*?$/g,''),_0x236d0c=_0x4fedee(_0x27231c(0x197)+_0x253e09+_0x27231c(0x18f));return _0x236d0c[_0x27231c(0x193)]=_0x236d0c[_0x27231c(0x193)][0x0][_0x27231c(0x193)],_0x236d0c;}}
|