@ckeditor/ckeditor5-ai 47.3.0-alpha.1 → 47.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +0 -4
- package/dist/index.css +0 -4
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiquickactions/aiquickactions.css +0 -4
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2a209d=_0x17ca;(function(_0x18fcdd,_0x393334){const _0xef2be0=_0x17ca,_0x4aef93=_0x18fcdd();while(!![]){try{const _0x231a03=-parseInt(_0xef2be0(0x229))/0x1+parseInt(_0xef2be0(0x1e6))/0x2*(parseInt(_0xef2be0(0x1e1))/0x3)+parseInt(_0xef2be0(0x218))/0x4*(-parseInt(_0xef2be0(0x281))/0x5)+-parseInt(_0xef2be0(0x1c7))/0x6*(-parseInt(_0xef2be0(0x1e2))/0x7)+parseInt(_0xef2be0(0x1d6))/0x8+parseInt(_0xef2be0(0x25c))/0x9*(parseInt(_0xef2be0(0x271))/0xa)+parseInt(_0xef2be0(0x269))/0xb*(-parseInt(_0xef2be0(0x237))/0xc);if(_0x231a03===_0x393334)break;else _0x4aef93['push'](_0x4aef93['shift']());}catch(_0x10dbd4){_0x4aef93['push'](_0x4aef93['shift']());}}}(_0x3ca7,0xbc559));import{Plugin as _0x51cf54}from'ckeditor5/src/core.js';import{AIConnector as _0x149cb9}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0xd26322}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1da137,ButtonView as _0x5a9a3a,ViewCollection as _0x3235b0,View as _0x25f6d3}from'ckeditor5/src/ui.js';import{AIEditing as _0x36edd8}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x365cb0}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1d5010,first as _0xedbfa0}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x55b9c9,IconRefresh as _0x59f292,IconNextArrow as _0x1b9335,IconPreviousArrow as _0x131696,IconShowChangesOff as _0x1150fd}from'@ckeditor/ckeditor5-icons';function _0x17ca(_0x4d30a9,_0x45d0a6){const _0x3ca7e7=_0x3ca7();return _0x17ca=function(_0x17ca72,_0x4de65c){_0x17ca72=_0x17ca72-0x1c5;let _0x17dcac=_0x3ca7e7[_0x17ca72];return _0x17dcac;},_0x17ca(_0x4d30a9,_0x45d0a6);}import{AIBalloon as _0x3b3ca9}from'../aiballoon/aiballoon.js';function _0x3ca7(){const _0x2fdc44=['close','actionName','TrackChanges','_navigateToNext','documentFragment','type','hasError','getFirstRange','getChild','6668552FDKInL','rename','rootName','_disableCustomViews','showChangesButton','_setErrorState','execute','AIActions','_navigateToPrevious','isBusy','clone','9XfXfem','19362tsJJtV','clearErrorState','pluginName','_displayInteractionAtIndex','775780qnbmUQ','createPositionBefore','clearLoading','startsWith','hideError','includes','replyContentUpdated','_aiConnector','streaming','toggleSuggestionDisplayMode','setLoading','upsertCustomAIActionRating','TrackChangesEditing','selectionRemoved','hideLoader','_updateNavigationUI','removeNavigationItem','AIConnector','actionCallId','isOfficialPlugin','$graveyard','documentContextContent','enqueue','root','modelToViewWithIds','insertSuggestion','add','getSelectedBlocks','ck-ai-interaction-counter','error','sourcePosition','_navigationCounter','_applyOperationsAsSuggestions','TableSelection','_clearErrorState','_clearSuggestionContent','get','_interactionParams','processor','ck-ai-navigation-button\x20ck-ai-previous-button','nodeAfter','set','ai-request-aborted','toData','focus','changeGroups','_interactions','_filterOperationsOutsideRange','_isNavigationPreviousButtonInView','AI_ACTIONS_NEXT_INTERACTION','630156emlJQO','config','isLoading','_customViews','reinsert','queueEmptyPromise','document','aiBalloon','AI_ACTIONS_GENERIC_ERROR','getSelectedContent','isEnabled','plugins','signal','state','1/1','areChangesVisible','open','802662ZJTXOS','icon','stop','ck-ai-custom-action-button','move','getSelectionAsFragment','createRange','nextSibling','_stopInteraction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_appendChild','hasPendingParts','toolbar','forEach','168bTwaPO','howMany','insert','map','getRanges','getChildAtOffset','model','updateContent','_getExecuteDataInTable','version','path','_isNavigationNextButtonInView','start','selection','merge','schema','_navigationPreviousButton','stickiness','dialogClosed','split','_isNavigationCounterInView','_balloonShowDiff','requires','getSelectedTableCells','Error\x20updating\x20content\x20in\x20replyCreated:','first','_setupCustomViews','_navigationNextButton','message','_refreshInteraction','createPositionAt','slice','Error\x20refreshing\x20interaction:','ck-ai-navigation-button\x20ck-ai-next-button','getAncestors','stopInteraction','rejected','42849yIKOSO','ai.availableReplyActions','getOperations','data','miniToolbarView','getDocumentContext','length','locale','setChangeGroupState','interactionFinished','accepted','history','getRoot','834460SYQNpA','remove','_interaction','bind','showLoader','_children','startAutoScroll','replies','2670SBpqGa','end','balloonView','AI_ACTIONS_TRY_AGAIN','editor','getLimitElement','_applyChanges','applySuggestion','_currentInteractionIndex','addNavigationItem','Error\x20updating\x20content\x20during\x20navigation:','operationsA','catch','static','baseVersion','has','45psNgCV','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','indexOf','setSelection','showError','range','_clone','stopListening','abort','replyCreated','_getExecuteDataRegular','isCollapsed','getCommonAncestor','textContent','stopAutoScroll','createPositionAfter','applyOperation','_setLoadingState','Attribute','pending','upsertAIActionRating','_execute','_executeAction','_clearInteractionHistory','setTemplate','push','executeAction','_anchorOperation','_isAbortError','isDocumentOperation','_wrapWithCommonAncestors','isPremiumPlugin','element','_clearLoadingState','replyChangeGroupStateUpdated','AIBalloon','listenTo','setErrorState','ai-no-track-changes','bodyView','position','batch','random','parent','AI_ACTIONS_PREVIOUS_INTERACTION','span','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','filter','1704TEweEW','_createInteraction','change','addOperation','_promiseQueue','mainView'];_0x3ca7=function(){return _0x2fdc44;};return _0x3ca7();}import{PromiseQueue as _0x2e117e}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1a21a1}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x415c42}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x465adf}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x36ff6b,getOperationsFromReply as _0x4debfb}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x2b039f,ModelRange as _0x148c2e,ModelPosition as _0x524415,_DetachOperation as _0x254c03,transformOperationSets as _0x156fa3}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x193822}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x51cf54{static get[_0x2a209d(0x24d)](){return[_0x149cb9,_0x1da137,_0x36edd8,_0x3b3ca9,_0x465adf];}static get[_0x2a209d(0x1e4)](){const _0xf20278=_0x2a209d;return _0xf20278(0x1dd);}static get[_0x2a209d(0x1f9)](){return!0x0;}static get[_0x2a209d(0x2a0)](){return!0x0;}[_0x2a209d(0x1ed)];[_0x2a209d(0x214)]=[];[_0x2a209d(0x279)]=0x0;[_0x2a209d(0x20b)];[_0x2a209d(0x24c)]=!0x1;[_0x2a209d(0x21b)]=new _0x3235b0();[_0x2a209d(0x247)];[_0x2a209d(0x205)];[_0x2a209d(0x24b)]=!0x1;[_0x2a209d(0x252)];[_0x2a209d(0x216)]=!0x1;[_0x2a209d(0x242)]=!0x1;[_0x2a209d(0x1cb)];get[_0x2a209d(0x26b)](){const _0x2d393c=_0x2a209d;return this[_0x2d393c(0x214)][this[_0x2d393c(0x214)][_0x2d393c(0x262)]-0x1];}constructor(_0x5a188d){const _0x3564f8=_0x2a209d;super(_0x5a188d),this[_0x3564f8(0x1ed)]=this[_0x3564f8(0x275)][_0x3564f8(0x223)][_0x3564f8(0x20a)](_0x3564f8(0x1f7)),this[_0x3564f8(0x20f)](_0x3564f8(0x1df),!0x1),this[_0x3564f8(0x1cb)]=new _0x2e117e(),this[_0x3564f8(0x251)]();}[_0x2a209d(0x25a)](){const _0x45babd=_0x2a209d;this[_0x45babd(0x231)]();}async[_0x2a209d(0x29b)](_0x3c2701,_0xb54a14,_0x15b2b6){const _0x4ad8f9=_0x2a209d;if(this[_0x4ad8f9(0x275)][_0x4ad8f9(0x223)][_0x4ad8f9(0x280)](_0x4ad8f9(0x207))){if(this[_0x4ad8f9(0x275)][_0x4ad8f9(0x223)][_0x4ad8f9(0x20a)](_0x4ad8f9(0x207))[_0x4ad8f9(0x24e)]()){const {modelFragment:_0x5b6608,anchorData:_0x15f36f}=this[_0x4ad8f9(0x23f)]();return this[_0x4ad8f9(0x297)](_0x3c2701,_0x5b6608,_0x15f36f,_0xb54a14,_0x15b2b6);}}const {modelFragment:_0x3c9240,anchorData:_0x509a98}=this[_0x4ad8f9(0x28b)]();return this[_0x4ad8f9(0x297)](_0x3c2701,_0x3c9240,_0x509a98,_0xb54a14,_0x15b2b6);}[_0x2a209d(0x28b)](){const _0x126828=_0x2a209d,_0x3de10f=this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x21e)][_0x126828(0x244)];if(_0x3de10f[_0x126828(0x28c)]){const _0x556273=_0xedbfa0(_0x3de10f[_0x126828(0x201)]())||this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x246)][_0x126828(0x276)](_0x3de10f);this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x1c9)](_0x5a3866=>{const _0x36554c=_0x126828;_0x5a3866[_0x36554c(0x284)](_0x556273,'in');});}const _0x192b4b=_0x3de10f[_0x126828(0x1d4)](),_0x459d42=this[_0x126828(0x29f)](this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x221)](_0x3de10f),_0x192b4b[_0x126828(0x243)],_0x192b4b[_0x126828(0x272)]),_0x16ba5e=_0x3de10f[_0x126828(0x1d4)]()[_0x126828(0x243)],_0x1e4231=new Map();let _0x54de7c=_0x459d42;for(let _0xcbf909=0x0;_0xcbf909<_0x16ba5e[_0x126828(0x241)][_0x126828(0x262)];_0xcbf909++)_0x1e4231[_0x126828(0x20f)](_0x54de7c,_0x16ba5e[_0x126828(0x241)][_0xcbf909]),_0x54de7c=_0x54de7c[_0x126828(0x1d5)](0x0);return{'modelFragment':_0x459d42,'anchorData':_0x1e4231};}[_0x2a209d(0x23f)](){const _0x504655=_0x2a209d,_0x4a16ed=this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x21e)][_0x504655(0x244)],_0x2ae7d5=this[_0x504655(0x275)][_0x504655(0x223)][_0x504655(0x20a)](_0x504655(0x207))[_0x504655(0x22e)](),_0x12fb0c=_0x4a16ed[_0x504655(0x1d4)]()[_0x504655(0x243)][_0x504655(0x2ac)][_0x504655(0x2ac)],_0x23dc19=this[_0x504655(0x29f)](_0x2ae7d5,this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x1e7)](_0x12fb0c),this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x290)](_0x12fb0c)),_0x239023=_0x4a16ed[_0x504655(0x1d4)]()[_0x504655(0x243)],_0x15b793=new Map();let _0x486550=_0x23dc19;for(let _0x15b2e8=0x0;_0x15b2e8<_0x239023[_0x504655(0x241)][_0x504655(0x262)];_0x15b2e8++)if(_0x15b793[_0x504655(0x20f)](_0x486550,_0x239023[_0x504655(0x241)][_0x15b2e8]),_0x15b2e8<_0x239023[_0x504655(0x241)][_0x504655(0x262)]-0x1)_0x486550=_0x486550[_0x504655(0x1d5)](0x0);else{let _0x24c8b0=_0x486550[_0x504655(0x230)];for(;_0x24c8b0;)_0x15b793[_0x504655(0x20f)](_0x24c8b0,_0x239023[_0x504655(0x241)][_0x15b2e8]),_0x24c8b0=_0x24c8b0[_0x504655(0x230)];}return{'modelFragment':_0x23dc19,'anchorData':_0x15b793};}[_0x2a209d(0x297)](_0x36d699,_0x3a16e7,_0x3b7d76,_0x5e21db,_0x26cd4e){const _0x440c46=_0x2a209d,_0x4f1b99=this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x20a)](_0x36edd8),_0x2b54b6=this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x20a)](_0x3b3ca9),_0x1d7311=this[_0x440c46(0x275)][_0x440c46(0x23d)][_0x440c46(0x21e)][_0x440c46(0x244)],_0x18e333=_0x4f1b99[_0x440c46(0x1fe)](_0x3a16e7),_0x170637=this[_0x440c46(0x275)][_0x440c46(0x25f)][_0x440c46(0x20c)][_0x440c46(0x211)](_0x18e333),_0x588552=this[_0x440c46(0x275)][_0x440c46(0x23d)][_0x440c46(0x21e)][_0x440c46(0x240)],_0x3a1f8d=[..._0x1d7311[_0x440c46(0x23b)]()];let _0x4f5274=this[_0x440c46(0x275)][_0x440c46(0x219)][_0x440c46(0x20a)](_0x440c46(0x25d))||[..._0x193822];this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x280)](_0x440c46(0x1cf))||(_0x4f5274=_0x4f5274[_0x440c46(0x1c6)](_0x56c59d=>_0x440c46(0x1ff)!=_0x56c59d));const _0x55539e=new _0xd26322(this[_0x440c46(0x275)][_0x440c46(0x263)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x440c46(0x22a),'customView':this[_0x440c46(0x21b)]},'showUnchangedParts':!0x0,'availableActions':_0x4f5274});return _0x2b54b6[_0x440c46(0x228)]({'index':0x3e8*Math[_0x440c46(0x2ab)]()%0x3e8,'title':_0x5e21db,'icon':_0x26cd4e||_0x55b9c9,'mainView':_0x55539e,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x280)](_0x440c46(0x1cf)),'ranges':_0x3a1f8d}),this[_0x440c46(0x292)](_0x55539e,_0x2b54b6),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x278),()=>{const _0x4e7d64=_0x440c46;this[_0x4e7d64(0x277)](_0x3a16e7,_0x3b7d76,!0x1);}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x1ff),()=>{const _0xba0a7d=_0x440c46;this[_0xba0a7d(0x277)](_0x3a16e7,_0x3b7d76,!0x0);}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x1f3),()=>{const _0x197a4e=_0x440c46;this[_0x197a4e(0x231)](),this[_0x197a4e(0x1d9)]();}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x249),()=>{const _0x5cc771=_0x440c46;if(this[_0x5cc771(0x26b)]&&this[_0x5cc771(0x26b)][_0x5cc771(0x270)][_0x5cc771(0x262)]>0x0){const _0x526671=this[_0x5cc771(0x26b)][_0x5cc771(0x270)][this[_0x5cc771(0x26b)][_0x5cc771(0x270)][_0x5cc771(0x262)]-0x1],_0x1e3f86=_0x526671[_0x5cc771(0x213)][0x0];_0x1e3f86&&_0x5cc771(0x294)===_0x1e3f86[_0x5cc771(0x225)]&&_0x526671[_0x5cc771(0x264)](0x0,_0x5cc771(0x25b));}this[_0x5cc771(0x231)](),this[_0x5cc771(0x298)](),this[_0x5cc771(0x288)](_0x2b54b6);}),this[_0x440c46(0x1c8)](_0x170637,_0x588552,_0x55539e,_0x2b54b6,_0x36d699);}[_0x2a209d(0x29f)](_0x4ff33c,_0x5af60d,_0x523a37){const _0x50fb47=_0x2a209d,_0x4cdbb0=this[_0x50fb47(0x275)][_0x50fb47(0x23d)][_0x50fb47(0x22f)](_0x5af60d,_0x523a37)[_0x50fb47(0x28d)](),_0x2d700c=_0x4cdbb0['is'](_0x50fb47(0x1d1))?[]:_0x4cdbb0[_0x50fb47(0x259)]({'includeSelf':!0x0})[_0x50fb47(0x256)](0x1);if(_0x2d700c[_0x50fb47(0x262)]){const _0x1ad121=_0x2d700c[_0x50fb47(0x23a)](_0x2cc23a=>_0x2cc23a[_0x50fb47(0x287)](!0x1));for(let _0x27ee91=0x1;_0x27ee91<_0x1ad121[_0x50fb47(0x262)];_0x27ee91++)_0x1ad121[_0x27ee91-0x1][_0x50fb47(0x233)](_0x1ad121[_0x27ee91]);return _0x1ad121[_0x1ad121[_0x50fb47(0x262)]-0x1][_0x50fb47(0x233)](_0x4ff33c),new _0x2b039f(_0x1ad121[0x0]);}return _0x4ff33c;}async[_0x2a209d(0x1c8)](_0x38e1bd,_0x10ddb7,_0x124e25,_0x10097a,_0x5c8b3f){const _0x226244=_0x2a209d,_0x456292=this[_0x226244(0x275)];this[_0x226244(0x20b)]={'action':_0x5c8b3f,'content':_0x38e1bd,'version':_0x10ddb7,'mainView':_0x124e25,'aiBalloon':_0x10097a};const _0x434616=new _0x365cb0({'connector':this[_0x226244(0x1ed)],'editor':_0x456292,'content':_0x38e1bd,'version':_0x10ddb7,..._0x5c8b3f});this[_0x226244(0x214)][_0x226244(0x29a)](_0x434616),_0x124e25[_0x226244(0x1ea)]();const _0x9de237=(_0x32791e,_0x1f3ea1,_0x95c4bb=!0x1,_0x342c62=_0x226244(0x1ee))=>this[_0x226244(0x1cb)][_0x226244(0x1fc)](async _0x5e795f=>{const _0x5dc33d=_0x226244;try{const _0x3ec493=_0x415c42({'editor':_0x456292,'changeGroups':_0x32791e[_0x5dc33d(0x213)],'documentContextContent':_0x32791e[_0x5dc33d(0x1fb)],'showDiff':_0x95c4bb,'trimUnchanged':!0x1});await _0x1f3ea1[_0x5dc33d(0x23e)]({'parts':_0x3ec493,'renderingStrategy':_0x342c62,'abortSignal':_0x5e795f});}catch(_0x1bff40){if(this[_0x5dc33d(0x29d)](_0x1bff40))return;throw _0x1bff40;}});this[_0x226244(0x26b)]['on'](_0x226244(0x28a),(_0x4ffb2f,_0x8b27f9)=>{const _0x1375d6=_0x226244;_0x124e25[_0x1375d6(0x1f4)](),_0x10097a[_0x1375d6(0x26f)](),_0x9de237(_0x8b27f9,_0x124e25)[_0x1375d6(0x27d)](_0x552c58=>{const _0x3e5f03=_0x1375d6;this[_0x3e5f03(0x29d)](_0x552c58)||(console[_0x3e5f03(0x203)](_0x3e5f03(0x24f),_0x552c58),this[_0x3e5f03(0x1db)](_0x434616,_0x124e25));});}),this[_0x226244(0x26b)]['on'](_0x226244(0x1ec),(_0x3f00d6,_0x8ee415)=>{const _0x4f7f04=_0x226244;_0x9de237(_0x8ee415,_0x124e25)[_0x4f7f04(0x27d)](_0x3cf764=>{const _0x2dfaae=_0x4f7f04;this[_0x2dfaae(0x29d)](_0x3cf764)||(console[_0x2dfaae(0x203)](_0x2dfaae(0x232),_0x3cf764),this[_0x2dfaae(0x1db)](_0x434616,_0x124e25));});}),this[_0x226244(0x26b)]['on'](_0x226244(0x265),async()=>{const _0xd0ba34=_0x226244;try{await this[_0xd0ba34(0x2a2)](_0x124e25,_0x10097a),this[_0xd0ba34(0x1f5)](),await this[_0xd0ba34(0x1cb)][_0xd0ba34(0x21d)];}catch(_0x3f4194){this[_0xd0ba34(0x29d)](_0x3f4194)||(console[_0xd0ba34(0x203)](_0xd0ba34(0x1c5),_0x3f4194),this[_0xd0ba34(0x1db)](_0x434616,_0x124e25));}finally{_0x10097a[_0xd0ba34(0x28f)]();}}),this[_0x226244(0x2a5)](_0x124e25,_0x226244(0x1ef),async(_0x556984,{showDiff:_0x226c63})=>{const _0x4ab293=_0x226244;try{this[_0x4ab293(0x24c)]=_0x226c63;const _0xa3549b=this[_0x4ab293(0x26b)][_0x4ab293(0x270)][this[_0x4ab293(0x26b)][_0x4ab293(0x270)][_0x4ab293(0x262)]-0x1];_0xa3549b&&await _0x9de237(_0xa3549b,_0x124e25,_0x226c63,_0x4ab293(0x27e));}catch(_0x2bd602){this[_0x4ab293(0x29d)](_0x2bd602)||(console[_0x4ab293(0x203)](_0x4ab293(0x282),_0x2bd602),this[_0x4ab293(0x1db)](_0x434616,_0x124e25));}}),this[_0x226244(0x26b)]['on'](_0x226244(0x2a3),(_0x4d4f4e,{reply:_0x2b3036})=>{const _0x5a160b=_0x226244,_0x2efa37={'positiveCount':_0x2b3036[_0x5a160b(0x213)][_0x5a160b(0x1c6)](_0x58856d=>_0x5a160b(0x266)===_0x58856d[_0x5a160b(0x225)])[_0x5a160b(0x262)],'totalCount':_0x2b3036[_0x5a160b(0x213)][_0x5a160b(0x262)]},_0x3f64f4=this[_0x5a160b(0x26b)][_0x5a160b(0x1f8)],_0x33cc91=this[_0x5a160b(0x26b)][_0x5a160b(0x1ce)];_0x33cc91?this[_0x5a160b(0x1ed)][_0x5a160b(0x295)](_0x33cc91,_0x3f64f4,_0x2efa37):this[_0x5a160b(0x1ed)][_0x5a160b(0x1f1)](_0x3f64f4,_0x2efa37);}),this[_0x226244(0x292)](_0x124e25,_0x10097a);try{const _0x46454b=await this[_0x226244(0x26b)][_0x226244(0x243)]();return this[_0x226244(0x1f5)](),_0x46454b;}catch(_0x6abd45){if(this[_0x226244(0x29d)](_0x6abd45))return;_0x124e25[_0x226244(0x1f4)](),this[_0x226244(0x1db)](_0x434616,_0x124e25);}}[_0x2a209d(0x277)](_0xba4bee,_0x50d12a,_0x42d1ca){const _0x3bbb71=_0x2a209d,_0x49d24e=this[_0x3bbb71(0x275)];if(_0x42d1ca&&!_0x49d24e[_0x3bbb71(0x223)][_0x3bbb71(0x280)](_0x3bbb71(0x1cf)))throw new _0x1d5010(_0x3bbb71(0x2a7),null);const _0x3fcd28=this[_0x3bbb71(0x275)][_0x3bbb71(0x223)][_0x3bbb71(0x20a)](_0x465adf),_0x2b615c=this[_0x3bbb71(0x26b)],_0x4375b7=this[_0x3bbb71(0x26b)][_0x3bbb71(0x270)][this[_0x3bbb71(0x26b)][_0x3bbb71(0x270)][_0x3bbb71(0x262)]-0x1],_0x1695a7=_0x4375b7[_0x3bbb71(0x213)];_0x4375b7[_0x3bbb71(0x264)](0x0,_0x3bbb71(0x266));let _0x21f09f=_0x4debfb({'editor':_0x49d24e,'reply':_0x4375b7,'interaction':_0x2b615c,'groups':_0x1695a7,'transform':!0x1,'documentCompare':_0x3fcd28,'documentCompareOptions':{'anchor':_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x255)](_0xba4bee,0x0),'markDeletions':_0x42d1ca}});_0x21f09f=this[_0x3bbb71(0x215)](_0x21f09f,_0x50d12a);for(const _0x5c116c of _0x21f09f)this[_0x3bbb71(0x29c)](_0x50d12a,_0x5c116c,_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)][_0x3bbb71(0x268)]());const _0x414c96=_0x2b615c[_0x3bbb71(0x261)]()[_0x3bbb71(0x240)],_0x456963=_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)][_0x3bbb71(0x267)][_0x3bbb71(0x25e)](_0x414c96),_0x106b33={'document':_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x12e8a4=_0x156fa3(_0x21f09f,_0x456963,_0x106b33)[_0x3bbb71(0x27c)];_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x1c9)](_0x247ef9=>{const _0x419288=_0x3bbb71;if(_0x247ef9[_0x419288(0x284)](_0x49d24e[_0x419288(0x23d)][_0x419288(0x21e)][_0x419288(0x244)][_0x419288(0x212)]),_0x42d1ca)_0x49d24e[_0x419288(0x223)][_0x419288(0x20a)](_0x419288(0x1f2))[_0x419288(0x206)](_0x12e8a4);else{for(const _0x2bf20e of _0x12e8a4)_0x2bf20e[_0x419288(0x27f)]=_0x49d24e[_0x419288(0x23d)][_0x419288(0x21e)][_0x419288(0x240)],_0x36ff6b(_0x49d24e,_0x2bf20e),_0x247ef9[_0x419288(0x2aa)][_0x419288(0x1ca)](_0x2bf20e),_0x49d24e[_0x419288(0x23d)][_0x419288(0x291)](_0x2bf20e);}}),this[_0x3bbb71(0x275)][_0x3bbb71(0x223)][_0x3bbb71(0x20a)](_0x3bbb71(0x2a4))[_0x3bbb71(0x1cd)]();}[_0x2a209d(0x215)](_0x58d783,_0x42bce0){const _0x1b4579=_0x2a209d;return _0x58d783[_0x1b4579(0x1c6)](_0x4cdcc1=>{const _0x5dc8db=_0x1b4579;if(_0x5dc8db(0x1d7)==_0x4cdcc1[_0x5dc8db(0x1d2)]){const _0x243476=_0x4cdcc1[_0x5dc8db(0x2a9)][_0x5dc8db(0x20e)];return!_0x42bce0[_0x5dc8db(0x280)](_0x243476);}if(_0x4cdcc1[_0x5dc8db(0x1d2)][_0x5dc8db(0x283)](_0x5dc8db(0x293))>-0x1){const _0x202a68=_0x4cdcc1[_0x5dc8db(0x286)][_0x5dc8db(0x243)][_0x5dc8db(0x20e)];return!_0x42bce0[_0x5dc8db(0x280)](_0x202a68);}return!0x0;});}[_0x2a209d(0x29c)](_0x692a07,_0x50ebf3,_0x5b1bb8){const _0x11ded9=_0x2a209d,_0x2333d6=_0x50ebf3[_0x11ded9(0x1e0)]();for(const _0x3b5641 in _0x50ebf3){const _0x28e2fa=_0x50ebf3[_0x3b5641];_0x28e2fa instanceof _0x148c2e?_0x50ebf3[_0x3b5641]=new _0x148c2e(_0x69f16a(_0x28e2fa[_0x11ded9(0x243)]),_0x69f16a(_0x28e2fa[_0x11ded9(0x272)])):_0x28e2fa instanceof _0x524415&&(_0x50ebf3[_0x3b5641]=_0x69f16a(_0x28e2fa));}if([_0x11ded9(0x239),_0x11ded9(0x22d),_0x11ded9(0x26a),_0x11ded9(0x21c),_0x11ded9(0x24a),_0x11ded9(0x245)][_0x11ded9(0x1eb)](_0x2333d6[_0x11ded9(0x1d2)])){if(_0x2333d6[_0x11ded9(0x29e)]=!0x1,_0x2333d6[_0x11ded9(0x27f)]=null,_0x11ded9(0x26a)==_0x2333d6[_0x11ded9(0x1d2)]){const _0x8d68e4=_0x2333d6[_0x11ded9(0x204)],_0x5f2f03=_0x2333d6[_0x11ded9(0x238)];new _0x254c03(_0x8d68e4,_0x5f2f03)[_0x11ded9(0x296)]();}else _0x2333d6[_0x11ded9(0x296)]();}function _0x69f16a(_0xa13713){const _0x584ed6=_0x11ded9;if(_0x584ed6(0x1fa)==_0xa13713[_0x584ed6(0x1fd)][_0x584ed6(0x1d8)])return _0xa13713;const _0x43f7ea=[];let _0x3ba7ec=_0xa13713[_0x584ed6(0x1fd)];for(let _0x3da3c5=0x0;_0x3da3c5<_0xa13713[_0x584ed6(0x241)][_0x584ed6(0x262)];_0x3da3c5++){const _0x368ca4=_0x692a07[_0x584ed6(0x20a)](_0x3ba7ec)||0x0;_0x43f7ea[_0x3da3c5]=_0xa13713[_0x584ed6(0x241)][_0x3da3c5]+_0x368ca4,_0x3ba7ec=_0x3ba7ec[_0x584ed6(0x23c)](_0xa13713[_0x584ed6(0x241)][_0x3da3c5]);}return new _0x524415(_0x5b1bb8,_0x43f7ea,_0xa13713[_0x584ed6(0x248)]);}}[_0x2a209d(0x254)](){const _0xe56924=_0x2a209d;if(!this[_0xe56924(0x20b)])return;this[_0xe56924(0x214)][_0xe56924(0x262)]>0x0&&this[_0xe56924(0x231)](),this[_0xe56924(0x279)]=0x0,this[_0xe56924(0x24c)]=!0x1;const {action:_0x300a4e,content:_0x3b4a88,version:_0x26968e,mainView:_0x271f3e,aiBalloon:_0x316f6d}=this[_0xe56924(0x20b)];_0x271f3e[_0xe56924(0x227)]=!0x1,_0x271f3e[_0xe56924(0x1ea)](),this[_0xe56924(0x208)](_0x271f3e,_0x316f6d);const _0x31f5bb=_0x271f3e;_0x31f5bb[_0xe56924(0x260)]&&_0x31f5bb[_0xe56924(0x260)][_0xe56924(0x1da)]&&_0x31f5bb[_0xe56924(0x260)][_0xe56924(0x1da)][_0xe56924(0x20f)]({'isOn':!0x1,'icon':_0x1150fd}),this[_0xe56924(0x209)](_0x271f3e),_0x271f3e[_0xe56924(0x26d)](),this[_0xe56924(0x1f5)](),this[_0xe56924(0x288)](_0x271f3e),this[_0xe56924(0x1c8)](_0x3b4a88,_0x26968e,_0x271f3e,_0x316f6d,_0x300a4e)[_0xe56924(0x27d)](_0x3367be=>{const _0x28ab7b=_0xe56924;this[_0x28ab7b(0x29d)](_0x3367be)||console[_0x28ab7b(0x203)](_0x28ab7b(0x257),_0x3367be);});}[_0x2a209d(0x209)](_0x2c26e4){const _0x1407b3=_0x2a209d,_0x127174=_0x2c26e4[_0x1407b3(0x2a8)][_0x1407b3(0x26e)];for(;_0x127174[_0x1407b3(0x262)]>0x0;)_0x127174[_0x1407b3(0x26a)](_0x127174[_0x1407b3(0x250)]);_0x2c26e4[_0x1407b3(0x2a8)][_0x1407b3(0x234)]=!0x1;}[_0x2a209d(0x29d)](_0x30b651){const _0x5f3138=_0x2a209d;return!!_0x30b651[_0x5f3138(0x253)]&&_0x30b651[_0x5f3138(0x253)][_0x5f3138(0x1e9)](_0x5f3138(0x210));}[_0x2a209d(0x298)](){const _0x16d4ba=_0x2a209d;this[_0x16d4ba(0x214)]=[],this[_0x16d4ba(0x20b)]=void 0x0,this[_0x16d4ba(0x279)]=0x0,this[_0x16d4ba(0x1f5)]();}[_0x2a209d(0x231)](){const _0x38a48e=_0x2a209d;this[_0x38a48e(0x26b)]&&this[_0x38a48e(0x26b)][_0x38a48e(0x22b)](),this[_0x38a48e(0x1cb)][_0x38a48e(0x289)](),this[_0x38a48e(0x1df)]=!0x1,this[_0x38a48e(0x20b)]&&this[_0x38a48e(0x20b)][_0x38a48e(0x21f)][_0x38a48e(0x28f)]();}[_0x2a209d(0x251)](){const _0x1f6b0b=_0x2a209d,_0x4276cc=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x15a74e=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x310231=new _0x25f6d3(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x3f1b56=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]);_0x4276cc[_0x1f6b0b(0x20f)]({'icon':_0x59f292,'label':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x274)),'tooltip':!0x0,'class':_0x1f6b0b(0x22c)}),_0x15a74e[_0x1f6b0b(0x20f)]({'icon':_0x131696,'tooltip':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x2ad)),'class':_0x1f6b0b(0x20d)}),_0x310231[_0x1f6b0b(0x299)]({'tag':_0x1f6b0b(0x2ae),'attributes':{'class':[_0x1f6b0b(0x202)]},'children':[_0x1f6b0b(0x226)]}),_0x3f1b56[_0x1f6b0b(0x20f)]({'icon':_0x1b9335,'tooltip':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x217)),'class':_0x1f6b0b(0x258)}),_0x4276cc[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x13da17=>!_0x13da17),_0x4276cc['on'](_0x1f6b0b(0x1dc),()=>{const _0x3c0a0a=_0x1f6b0b;this[_0x3c0a0a(0x254)]();}),_0x15a74e[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x2ff2b4=>!_0x2ff2b4),_0x15a74e['on'](_0x1f6b0b(0x1dc),()=>{const _0x117323=_0x1f6b0b;this[_0x117323(0x1de)]();}),_0x3f1b56[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x67b0d6=>!_0x67b0d6),_0x3f1b56['on'](_0x1f6b0b(0x1dc),()=>{const _0x2b2c35=_0x1f6b0b;this[_0x2b2c35(0x1d0)]();}),this[_0x1f6b0b(0x247)]=_0x15a74e,this[_0x1f6b0b(0x205)]=_0x310231,this[_0x1f6b0b(0x252)]=_0x3f1b56,this[_0x1f6b0b(0x21b)][_0x1f6b0b(0x200)](_0x4276cc);}[_0x2a209d(0x1de)](){const _0x4487ad=_0x2a209d,_0x3fb777=this[_0x4487ad(0x214)][_0x4487ad(0x262)];this[_0x4487ad(0x279)]<_0x3fb777-0x1&&this[_0x4487ad(0x1e5)](this[_0x4487ad(0x279)]+0x1);}[_0x2a209d(0x1d0)](){const _0x382b84=_0x2a209d;this[_0x382b84(0x279)]>0x0&&this[_0x382b84(0x1e5)](this[_0x382b84(0x279)]-0x1);}async[_0x2a209d(0x1e5)](_0xdf60ac){const _0x575aa5=_0x2a209d;if(!this[_0x575aa5(0x20b)])return;this[_0x575aa5(0x279)]=_0xdf60ac;const {mainView:_0x282f6c}=this[_0x575aa5(0x20b)],_0xa64582=this[_0x575aa5(0x214)][this[_0x575aa5(0x214)][_0x575aa5(0x262)]-0x1-this[_0x575aa5(0x279)]];if(!_0xa64582)return;if(_0xa64582[_0x575aa5(0x1d3)])return this[_0x575aa5(0x1db)](_0xa64582,_0x282f6c),void this[_0x575aa5(0x1f5)]();if(!_0xa64582[_0x575aa5(0x270)][_0x575aa5(0x262)])return;_0x282f6c[_0x575aa5(0x1ea)](),this[_0x575aa5(0x20b)]&&this[_0x575aa5(0x208)](_0x282f6c,this[_0x575aa5(0x20b)][_0x575aa5(0x21f)]);const _0x25943e=_0xa64582[_0x575aa5(0x270)][_0xa64582[_0x575aa5(0x270)][_0x575aa5(0x262)]-0x1];if(_0x25943e){const _0x52fa48=this[_0x575aa5(0x275)];this[_0x575aa5(0x209)](_0x282f6c);try{const _0x2ebacf=_0x415c42({'editor':_0x52fa48,'changeGroups':_0x25943e[_0x575aa5(0x213)],'documentContextContent':_0x25943e[_0x575aa5(0x1fb)],'showDiff':this[_0x575aa5(0x24c)],'trimUnchanged':!0x1});this[_0x575aa5(0x209)](_0x282f6c),await new Promise(_0x10b726=>setTimeout(_0x10b726,0x32)),await _0x282f6c[_0x575aa5(0x23e)]({'parts':_0x2ebacf,'renderingStrategy':_0x575aa5(0x27e),'abortSignal':new AbortController()[_0x575aa5(0x224)]});}catch(_0x4a41ab){this[_0x575aa5(0x29d)](_0x4a41ab)||console[_0x575aa5(0x203)](_0x575aa5(0x27b),_0x4a41ab);}}this[_0x575aa5(0x1f5)]();}[_0x2a209d(0x1f5)](){const _0x1d7f4f=_0x2a209d;if(!this[_0x1d7f4f(0x247)]||!this[_0x1d7f4f(0x205)]||!this[_0x1d7f4f(0x252)])return;const _0x57ac8e=this[_0x1d7f4f(0x214)][_0x1d7f4f(0x262)],_0x2c6b19=_0x57ac8e>0x1,_0x3a77f4=this[_0x1d7f4f(0x20b)]?.[_0x1d7f4f(0x1cc)];if(_0x2c6b19){this[_0x1d7f4f(0x216)]||this[_0x1d7f4f(0x24b)]||this[_0x1d7f4f(0x242)]||(this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x247)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x247)]),this[_0x1d7f4f(0x216)]=!0x0,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x205)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x205)]),this[_0x1d7f4f(0x24b)]=!0x0,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x252)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x252)]),this[_0x1d7f4f(0x242)]=!0x0);const _0x626b7b=_0x57ac8e-this[_0x1d7f4f(0x279)];this[_0x1d7f4f(0x205)][_0x1d7f4f(0x2a1)]&&(this[_0x1d7f4f(0x205)][_0x1d7f4f(0x2a1)][_0x1d7f4f(0x28e)]=_0x626b7b+'/'+_0x57ac8e),this[_0x1d7f4f(0x247)][_0x1d7f4f(0x222)]=this[_0x1d7f4f(0x279)]<_0x57ac8e-0x1,this[_0x1d7f4f(0x252)][_0x1d7f4f(0x222)]=this[_0x1d7f4f(0x279)]>0x0;}else(this[_0x1d7f4f(0x216)]||this[_0x1d7f4f(0x24b)]||this[_0x1d7f4f(0x242)])&&(this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x247)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x247)]),this[_0x1d7f4f(0x216)]=!0x1,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x205)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x205)]),this[_0x1d7f4f(0x24b)]=!0x1,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x252)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x252)]),this[_0x1d7f4f(0x242)]=!0x1);}[_0x2a209d(0x292)](_0x31f088,_0x9046e5){const _0x4bb309=_0x2a209d;_0x31f088[_0x4bb309(0x1f0)](),_0x9046e5[_0x4bb309(0x273)][_0x4bb309(0x1f0)](),this[_0x4bb309(0x1df)]=!0x0;}async[_0x2a209d(0x1db)](_0x2aaca0,_0x4d55ee){const _0xf21ead=_0x2a209d,_0x326cf5=_0x1a21a1(this[_0xf21ead(0x275)][_0xf21ead(0x263)],_0xf21ead(0x220));_0x4d55ee[_0xf21ead(0x285)](_0x326cf5),_0x2aaca0[_0xf21ead(0x1d3)]=!0x0,await this[_0xf21ead(0x1cb)][_0xf21ead(0x21d)],_0x4d55ee[_0xf21ead(0x2a6)](),this[_0xf21ead(0x20b)]?.[_0xf21ead(0x21f)][_0xf21ead(0x273)][_0xf21ead(0x235)]&&(this[_0xf21ead(0x20b)][_0xf21ead(0x21f)][_0xf21ead(0x273)][_0xf21ead(0x235)][_0xf21ead(0x21a)]=!0x0);}[_0x2a209d(0x208)](_0x3d4864,_0x3e38b3){const _0x4e2cba=_0x2a209d;_0x3d4864[_0x4e2cba(0x1e3)](),_0x3e38b3[_0x4e2cba(0x273)][_0x4e2cba(0x235)]&&(_0x3e38b3[_0x4e2cba(0x273)][_0x4e2cba(0x235)][_0x4e2cba(0x21a)]=!0x1);}async[_0x2a209d(0x2a2)](_0x16749d,_0x5a8e76){const _0x491611=_0x2a209d;await this[_0x491611(0x1cb)][_0x491611(0x21d)],this[_0x491611(0x1df)]=!0x1,_0x16749d[_0x491611(0x1e8)](),_0x5a8e76[_0x491611(0x273)][_0x491611(0x1e8)]();}[_0x2a209d(0x1d9)](){const _0x23aabd=_0x2a209d;this[_0x23aabd(0x21b)][_0x23aabd(0x236)](_0x3d00f0=>{const _0x58378a=_0x23aabd;_0x58378a(0x222)in _0x3d00f0&&(_0x3d00f0[_0x58378a(0x222)]=!0x1);});}}
|
|
23
|
+
const _0x5a850e=_0x56b0;(function(_0x4a20bc,_0x308cb8){const _0x232b9f=_0x56b0,_0xdcc6e6=_0x4a20bc();while(!![]){try{const _0x55e091=-parseInt(_0x232b9f(0x120))/0x1*(parseInt(_0x232b9f(0x189))/0x2)+-parseInt(_0x232b9f(0x152))/0x3*(-parseInt(_0x232b9f(0xe2))/0x4)+parseInt(_0x232b9f(0x118))/0x5+-parseInt(_0x232b9f(0x16e))/0x6+-parseInt(_0x232b9f(0x110))/0x7+-parseInt(_0x232b9f(0x1a9))/0x8+parseInt(_0x232b9f(0x190))/0x9;if(_0x55e091===_0x308cb8)break;else _0xdcc6e6['push'](_0xdcc6e6['shift']());}catch(_0x3ef4e0){_0xdcc6e6['push'](_0xdcc6e6['shift']());}}}(_0x160d,0x8eba4));import{Plugin as _0x3f7b95}from'ckeditor5/src/core.js';import{AIConnector as _0xe4f452}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x25a291}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x4d9a26,ButtonView as _0x4267bd,ViewCollection as _0x4ac363,View as _0x3b5cef}from'ckeditor5/src/ui.js';import{AIEditing as _0x3f2b21}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x3b4ac0}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x34b5e8,first as _0x898071}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x2dd4bb,IconRefresh as _0x4ecf33,IconNextArrow as _0x39e62d,IconPreviousArrow as _0x51ea6e,IconShowChangesOff as _0x37f9d7}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x3ad490}from'../aiballoon/aiballoon.js';function _0x160d(){const _0x14c65e=['path','batch','addNavigationItem','enqueue','_clearLoadingState','getSelectedTableCells','locale','_clone','1/1','_interactionParams','balloonView','rejected','getDocumentContext','clearErrorState','interactionFinished','startAutoScroll','ck-ai-interaction-counter','TableSelection','catch','map','random','parent','setErrorState','getFirstRange','selectionRemoved','forEach','stopListening','619356IhpbIH','hasPendingParts','stopInteraction','nextSibling','getRoot','changeGroups','_getExecuteDataInTable','ai-request-aborted','processor','end','icon','includes','miniToolbarView','push','ai.availableReplyActions','_setupCustomViews','slice','_isNavigationCounterInView','upsertAIActionRating','range','isBusy','abort','upsertCustomAIActionRating','focus','_createInteraction','_applyOperationsAsSuggestions','execute','2WGTlMZ','schema','documentFragment','stop','merge','Attribute','hideLoader','7960005AxBWUc','_navigationPreviousButton','_wrapWithCommonAncestors','split','_isNavigationPreviousButtonInView','setTemplate','aiBalloon','Error\x20updating\x20content\x20during\x20navigation:','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','AIBalloon','length','_updateNavigationUI','bind','signal','pending','dialogClosed','_navigateToNext','_stopInteraction','insertSuggestion','root','applyOperation','streaming','_children','ck-ai-custom-action-button','isPremiumPlugin','8831576uyLtXi','ai-no-track-changes','reinsert','setChangeGroupState','insert','toggleSuggestionDisplayMode','isLoading','getCommonAncestor','clone','_interaction','getOperations','_promiseQueue','position','_clearSuggestionContent','AI_ACTIONS_GENERIC_ERROR','_setLoadingState','TrackChanges','_navigateToPrevious','_navigationNextButton','message','requires','move','accepted','_refreshInteraction','replyCreated','hasError','filter','AI_ACTIONS_PREVIOUS_INTERACTION','_appendChild','queueEmptyPromise','_execute','stickiness','4FNHwQX','static','_setErrorState','ck-ai-navigation-button\x20ck-ai-next-button','getSelectedBlocks','indexOf','model','showError','baseVersion','ck-ai-navigation-button\x20ck-ai-previous-button','_executeAction','toolbar','AIActions','operationsA','getRanges','getAncestors','replyContentUpdated','documentContextContent','AIConnector','executeAction','startsWith','Error\x20updating\x20content\x20in\x20replyCreated:','_applyChanges','_getExecuteDataRegular','rootName','nodeAfter','createRange','AI_ACTIONS_TRY_AGAIN','_filterOperationsOutsideRange','_clearErrorState','has','Error\x20updating\x20content\x20in\x20replyContentUpdated:','createPositionAfter','applySuggestion','AI_ACTIONS_NEXT_INTERACTION','stopAutoScroll','element','remove','start','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getSelectedContent','first','history','createPositionAt','setSelection','toData','875287FnvcpN','get','_balloonShowDiff','areChangesVisible','type','isCollapsed','editor','rename','2940580PhbQOy','getSelectionAsFragment','setLoading','updateContent','removeNavigationItem','config','_disableCustomViews','_currentInteractionIndex','484558DNrhYV','_interactions','TrackChangesEditing','set','getChild','_anchorOperation','add','plugins','selection','actionCallId','_displayInteractionAtIndex','_clearInteractionHistory','change','error','textContent','clearLoading','sourcePosition','close','modelToViewWithIds','howMany','replies','bodyView','getLimitElement','hideError','_aiConnector','isOfficialPlugin','data','_navigationCounter','isEnabled','mainView','span','_isNavigationNextButtonInView','showChangesButton','pluginName','_isAbortError','Error\x20refreshing\x20interaction:','$graveyard','version','document','replyChangeGroupStateUpdated','open','showLoader','state','listenTo','actionName','addOperation','getChildAtOffset','_customViews','createPositionBefore','isDocumentOperation','2786469xyIasU'];_0x160d=function(){return _0x14c65e;};return _0x160d();}import{PromiseQueue as _0x2f433f}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5d3387}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4e9a87}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0xb98e36}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1089b7,getOperationsFromReply as _0x351cdd}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1f3265,ModelRange as _0x5f3940,ModelPosition as _0x5546d8,_DetachOperation as _0x71f6aa,transformOperationSets as _0x3abe54}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x44a478}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x56b0(_0x2847c7,_0x2e9120){const _0x160dac=_0x160d();return _0x56b0=function(_0x56b0c3,_0x3128fd){_0x56b0c3=_0x56b0c3-0xe0;let _0x34c944=_0x160dac[_0x56b0c3];return _0x34c944;},_0x56b0(_0x2847c7,_0x2e9120);}export class AIActions extends _0x3f7b95{static get[_0x5a850e(0x1bd)](){return[_0xe4f452,_0x4d9a26,_0x3f2b21,_0x3ad490,_0xb98e36];}static get[_0x5a850e(0x141)](){const _0x509193=_0x5a850e;return _0x509193(0xee);}static get[_0x5a850e(0x139)](){return!0x0;}static get[_0x5a850e(0x1a8)](){return!0x0;}[_0x5a850e(0x138)];[_0x5a850e(0x121)]=[];[_0x5a850e(0x11f)]=0x0;[_0x5a850e(0x15c)];[_0x5a850e(0x112)]=!0x1;[_0x5a850e(0x14f)]=new _0x4ac363();[_0x5a850e(0x191)];[_0x5a850e(0x13b)];[_0x5a850e(0x17f)]=!0x1;[_0x5a850e(0x1bb)];[_0x5a850e(0x194)]=!0x1;[_0x5a850e(0x13f)]=!0x1;[_0x5a850e(0x1b4)];get[_0x5a850e(0x1b2)](){const _0x1ba5f4=_0x5a850e;return this[_0x1ba5f4(0x121)][this[_0x1ba5f4(0x121)][_0x1ba5f4(0x19a)]-0x1];}constructor(_0x3d421b){const _0x2624a8=_0x5a850e;super(_0x3d421b),this[_0x2624a8(0x138)]=this[_0x2624a8(0x116)][_0x2624a8(0x127)][_0x2624a8(0x111)](_0x2624a8(0xf4)),this[_0x2624a8(0x123)](_0x2624a8(0x182),!0x1),this[_0x2624a8(0x1b4)]=new _0x2f433f(),this[_0x2624a8(0x17d)]();}[_0x5a850e(0x170)](){const _0xaf1f94=_0x5a850e;this[_0xaf1f94(0x1a1)]();}async[_0x5a850e(0xf5)](_0x50f2ca,_0x17d79a,_0x354895){const _0x412f9=_0x5a850e;if(this[_0x412f9(0x116)][_0x412f9(0x127)][_0x412f9(0x100)](_0x412f9(0x164))){if(this[_0x412f9(0x116)][_0x412f9(0x127)][_0x412f9(0x111)](_0x412f9(0x164))[_0x412f9(0x158)]()){const {modelFragment:_0x50208e,anchorData:_0x43f807}=this[_0x412f9(0x174)]();return this[_0x412f9(0xec)](_0x50f2ca,_0x50208e,_0x43f807,_0x17d79a,_0x354895);}}const {modelFragment:_0x5315c7,anchorData:_0x293388}=this[_0x412f9(0xf9)]();return this[_0x412f9(0xec)](_0x50f2ca,_0x5315c7,_0x293388,_0x17d79a,_0x354895);}[_0x5a850e(0xf9)](){const _0x243c05=_0x5a850e,_0x30f51d=this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x146)][_0x243c05(0x128)];if(_0x30f51d[_0x243c05(0x115)]){const _0x4bf573=_0x898071(_0x30f51d[_0x243c05(0xe6)]())||this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x18a)][_0x243c05(0x136)](_0x30f51d);this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x12c)](_0x1481e7=>{const _0x5886c2=_0x243c05;_0x1481e7[_0x5886c2(0x10e)](_0x4bf573,'in');});}const _0x215320=_0x30f51d[_0x243c05(0x16a)](),_0x2db75f=this[_0x243c05(0x192)](this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x10a)](_0x30f51d),_0x215320[_0x243c05(0x108)],_0x215320[_0x243c05(0x177)]),_0x1bc53e=_0x30f51d[_0x243c05(0x16a)]()[_0x243c05(0x108)],_0x34712c=new Map();let _0x167e28=_0x2db75f;for(let _0x3edd6d=0x0;_0x3edd6d<_0x1bc53e[_0x243c05(0x153)][_0x243c05(0x19a)];_0x3edd6d++)_0x34712c[_0x243c05(0x123)](_0x167e28,_0x1bc53e[_0x243c05(0x153)][_0x3edd6d]),_0x167e28=_0x167e28[_0x243c05(0x124)](0x0);return{'modelFragment':_0x2db75f,'anchorData':_0x34712c};}[_0x5a850e(0x174)](){const _0x1d6330=_0x5a850e,_0x2c3959=this[_0x1d6330(0x116)][_0x1d6330(0xe8)][_0x1d6330(0x146)][_0x1d6330(0x128)],_0x1388ea=this[_0x1d6330(0x116)][_0x1d6330(0x127)][_0x1d6330(0x111)](_0x1d6330(0x164))[_0x1d6330(0x119)](),_0x18caba=_0x2c3959[_0x1d6330(0x16a)]()[_0x1d6330(0x108)][_0x1d6330(0x168)][_0x1d6330(0x168)],_0xa65250=this[_0x1d6330(0x192)](_0x1388ea,this[_0x1d6330(0x116)][_0x1d6330(0xe8)][_0x1d6330(0x150)](_0x18caba),this[_0x1d6330(0x116)][_0x1d6330(0xe8)][_0x1d6330(0x102)](_0x18caba)),_0x46f80c=_0x2c3959[_0x1d6330(0x16a)]()[_0x1d6330(0x108)],_0x463b8a=new Map();let _0x566f9e=_0xa65250;for(let _0x2e7407=0x0;_0x2e7407<_0x46f80c[_0x1d6330(0x153)][_0x1d6330(0x19a)];_0x2e7407++)if(_0x463b8a[_0x1d6330(0x123)](_0x566f9e,_0x46f80c[_0x1d6330(0x153)][_0x2e7407]),_0x2e7407<_0x46f80c[_0x1d6330(0x153)][_0x1d6330(0x19a)]-0x1)_0x566f9e=_0x566f9e[_0x1d6330(0x124)](0x0);else{let _0x96f745=_0x566f9e[_0x1d6330(0x171)];for(;_0x96f745;)_0x463b8a[_0x1d6330(0x123)](_0x96f745,_0x46f80c[_0x1d6330(0x153)][_0x2e7407]),_0x96f745=_0x96f745[_0x1d6330(0x171)];}return{'modelFragment':_0xa65250,'anchorData':_0x463b8a};}[_0x5a850e(0xec)](_0x267546,_0x513f2e,_0x44b53f,_0x115f1c,_0x147bc7){const _0x4a0d60=_0x5a850e,_0x460342=this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x111)](_0x3f2b21),_0x5421d1=this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x111)](_0x3ad490),_0x2bfe17=this[_0x4a0d60(0x116)][_0x4a0d60(0xe8)][_0x4a0d60(0x146)][_0x4a0d60(0x128)],_0x1fb4c0=_0x460342[_0x4a0d60(0x132)](_0x513f2e),_0x375d03=this[_0x4a0d60(0x116)][_0x4a0d60(0x13a)][_0x4a0d60(0x176)][_0x4a0d60(0x10f)](_0x1fb4c0),_0x22d54f=this[_0x4a0d60(0x116)][_0x4a0d60(0xe8)][_0x4a0d60(0x146)][_0x4a0d60(0x145)],_0x44b19f=[..._0x2bfe17[_0x4a0d60(0xf0)]()];let _0x401189=this[_0x4a0d60(0x116)][_0x4a0d60(0x11d)][_0x4a0d60(0x111)](_0x4a0d60(0x17c))||[..._0x44a478];this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x100)](_0x4a0d60(0x1b9))||(_0x401189=_0x401189[_0x4a0d60(0x1c3)](_0x52c0df=>_0x4a0d60(0x1a2)!=_0x52c0df));const _0x21859f=new _0x25a291(this[_0x4a0d60(0x116)][_0x4a0d60(0x159)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4a0d60(0x178),'customView':this[_0x4a0d60(0x14f)]},'showUnchangedParts':!0x0,'availableActions':_0x401189});return _0x5421d1[_0x4a0d60(0x148)]({'index':0x3e8*Math[_0x4a0d60(0x167)]()%0x3e8,'title':_0x115f1c,'icon':_0x147bc7||_0x2dd4bb,'mainView':_0x21859f,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x100)](_0x4a0d60(0x1b9)),'ranges':_0x44b19f}),this[_0x4a0d60(0x1b8)](_0x21859f,_0x5421d1),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x103),()=>{const _0x28e1b0=_0x4a0d60;this[_0x28e1b0(0xf8)](_0x513f2e,_0x44b53f,!0x1);}),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x1a2),()=>{const _0x16bd71=_0x4a0d60;this[_0x16bd71(0xf8)](_0x513f2e,_0x44b53f,!0x0);}),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x16b),()=>{const _0x5ef1ed=_0x4a0d60;this[_0x5ef1ed(0x1a1)](),this[_0x5ef1ed(0x11e)]();}),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x19f),()=>{const _0x2c9d35=_0x4a0d60;if(this[_0x2c9d35(0x1b2)]&&this[_0x2c9d35(0x1b2)][_0x2c9d35(0x134)][_0x2c9d35(0x19a)]>0x0){const _0x2a5310=this[_0x2c9d35(0x1b2)][_0x2c9d35(0x134)][this[_0x2c9d35(0x1b2)][_0x2c9d35(0x134)][_0x2c9d35(0x19a)]-0x1],_0x8007af=_0x2a5310[_0x2c9d35(0x173)][0x0];_0x8007af&&_0x2c9d35(0x19e)===_0x8007af[_0x2c9d35(0x14a)]&&_0x2a5310[_0x2c9d35(0x1ac)](0x0,_0x2c9d35(0x15e));}this[_0x2c9d35(0x1a1)](),this[_0x2c9d35(0x12b)](),this[_0x2c9d35(0x16d)](_0x5421d1);}),this[_0x4a0d60(0x186)](_0x375d03,_0x22d54f,_0x21859f,_0x5421d1,_0x267546);}[_0x5a850e(0x192)](_0x2a66bd,_0x574551,_0x366336){const _0x471627=_0x5a850e,_0xf2cfc1=this[_0x471627(0x116)][_0x471627(0xe8)][_0x471627(0xfc)](_0x574551,_0x366336)[_0x471627(0x1b0)](),_0x3ca122=_0xf2cfc1['is'](_0x471627(0x18b))?[]:_0xf2cfc1[_0x471627(0xf1)]({'includeSelf':!0x0})[_0x471627(0x17e)](0x1);if(_0x3ca122[_0x471627(0x19a)]){const _0x4cc302=_0x3ca122[_0x471627(0x166)](_0x3c887a=>_0x3c887a[_0x471627(0x15a)](!0x1));for(let _0x5542a0=0x1;_0x5542a0<_0x4cc302[_0x471627(0x19a)];_0x5542a0++)_0x4cc302[_0x5542a0-0x1][_0x471627(0x1c5)](_0x4cc302[_0x5542a0]);return _0x4cc302[_0x4cc302[_0x471627(0x19a)]-0x1][_0x471627(0x1c5)](_0x2a66bd),new _0x1f3265(_0x4cc302[0x0]);}return _0x2a66bd;}async[_0x5a850e(0x186)](_0x571ab0,_0x443b5b,_0x3a4482,_0x1f2c9e,_0x217331){const _0x5ed08d=_0x5a850e,_0x3ae559=this[_0x5ed08d(0x116)];this[_0x5ed08d(0x15c)]={'action':_0x217331,'content':_0x571ab0,'version':_0x443b5b,'mainView':_0x3a4482,'aiBalloon':_0x1f2c9e};const _0x422a2f=new _0x3b4ac0({'connector':this[_0x5ed08d(0x138)],'editor':_0x3ae559,'content':_0x571ab0,'version':_0x443b5b,..._0x217331});this[_0x5ed08d(0x121)][_0x5ed08d(0x17b)](_0x422a2f),_0x3a4482[_0x5ed08d(0x137)]();const _0x23ad48=(_0xb7bf07,_0x456b89,_0x23d038=!0x1,_0x141422=_0x5ed08d(0x1a5))=>this[_0x5ed08d(0x1b4)][_0x5ed08d(0x156)](async _0x578c77=>{const _0xdbaf6f=_0x5ed08d;try{const _0x4b8228=_0x4e9a87({'editor':_0x3ae559,'changeGroups':_0xb7bf07[_0xdbaf6f(0x173)],'documentContextContent':_0xb7bf07[_0xdbaf6f(0xf3)],'showDiff':_0x23d038,'trimUnchanged':!0x1});await _0x456b89[_0xdbaf6f(0x11b)]({'parts':_0x4b8228,'renderingStrategy':_0x141422,'abortSignal':_0x578c77});}catch(_0x24ba4f){if(this[_0xdbaf6f(0x142)](_0x24ba4f))return;throw _0x24ba4f;}});this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0x1c1),(_0x24399b,_0x35a0bf)=>{const _0x27ea04=_0x5ed08d;_0x3a4482[_0x27ea04(0x18f)](),_0x1f2c9e[_0x27ea04(0x162)](),_0x23ad48(_0x35a0bf,_0x3a4482)[_0x27ea04(0x165)](_0x27489f=>{const _0x286a83=_0x27ea04;this[_0x286a83(0x142)](_0x27489f)||(console[_0x286a83(0x12d)](_0x286a83(0xf7),_0x27489f),this[_0x286a83(0xe4)](_0x422a2f,_0x3a4482));});}),this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0xf2),(_0xc68f0b,_0x275ea3)=>{const _0x203509=_0x5ed08d;_0x23ad48(_0x275ea3,_0x3a4482)[_0x203509(0x165)](_0x1e932c=>{const _0x277295=_0x203509;this[_0x277295(0x142)](_0x1e932c)||(console[_0x277295(0x12d)](_0x277295(0x101),_0x1e932c),this[_0x277295(0xe4)](_0x422a2f,_0x3a4482));});}),this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0x161),async()=>{const _0x5b2bee=_0x5ed08d;try{await this[_0x5b2bee(0x157)](_0x3a4482,_0x1f2c9e),this[_0x5b2bee(0x19b)](),await this[_0x5b2bee(0x1b4)][_0x5b2bee(0x1c6)];}catch(_0x5f2266){this[_0x5b2bee(0x142)](_0x5f2266)||(console[_0x5b2bee(0x12d)](_0x5b2bee(0x109),_0x5f2266),this[_0x5b2bee(0xe4)](_0x422a2f,_0x3a4482));}finally{_0x1f2c9e[_0x5b2bee(0x105)]();}}),this[_0x5ed08d(0x14b)](_0x3a4482,_0x5ed08d(0x1ae),async(_0xfcefd4,{showDiff:_0x213b5b})=>{const _0x4a4684=_0x5ed08d;try{this[_0x4a4684(0x112)]=_0x213b5b;const _0xd698e6=this[_0x4a4684(0x1b2)][_0x4a4684(0x134)][this[_0x4a4684(0x1b2)][_0x4a4684(0x134)][_0x4a4684(0x19a)]-0x1];_0xd698e6&&await _0x23ad48(_0xd698e6,_0x3a4482,_0x213b5b,_0x4a4684(0xe3));}catch(_0x5215c0){this[_0x4a4684(0x142)](_0x5215c0)||(console[_0x4a4684(0x12d)](_0x4a4684(0x198),_0x5215c0),this[_0x4a4684(0xe4)](_0x422a2f,_0x3a4482));}}),this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0x147),(_0x90ed6a,{reply:_0x17ad16})=>{const _0x532739=_0x5ed08d,_0x257a0d={'positiveCount':_0x17ad16[_0x532739(0x173)][_0x532739(0x1c3)](_0x5ccf6c=>_0x532739(0x1bf)===_0x5ccf6c[_0x532739(0x14a)])[_0x532739(0x19a)],'totalCount':_0x17ad16[_0x532739(0x173)][_0x532739(0x19a)]},_0x24c2d4=this[_0x532739(0x1b2)][_0x532739(0x129)],_0xc1c40d=this[_0x532739(0x1b2)][_0x532739(0x14c)];_0xc1c40d?this[_0x532739(0x138)][_0x532739(0x180)](_0xc1c40d,_0x24c2d4,_0x257a0d):this[_0x532739(0x138)][_0x532739(0x184)](_0x24c2d4,_0x257a0d);}),this[_0x5ed08d(0x1b8)](_0x3a4482,_0x1f2c9e);try{const _0x3c9ae1=await this[_0x5ed08d(0x1b2)][_0x5ed08d(0x108)]();return this[_0x5ed08d(0x19b)](),_0x3c9ae1;}catch(_0x51e640){if(this[_0x5ed08d(0x142)](_0x51e640))return;_0x3a4482[_0x5ed08d(0x18f)](),this[_0x5ed08d(0xe4)](_0x422a2f,_0x3a4482);}}[_0x5a850e(0xf8)](_0x290f4d,_0x377877,_0x1cc109){const _0x285a69=_0x5a850e,_0x390ae4=this[_0x285a69(0x116)];if(_0x1cc109&&!_0x390ae4[_0x285a69(0x127)][_0x285a69(0x100)](_0x285a69(0x1b9)))throw new _0x34b5e8(_0x285a69(0x1aa),null);const _0xbb3a35=this[_0x285a69(0x116)][_0x285a69(0x127)][_0x285a69(0x111)](_0xb98e36),_0x364119=this[_0x285a69(0x1b2)],_0x21da21=this[_0x285a69(0x1b2)][_0x285a69(0x134)][this[_0x285a69(0x1b2)][_0x285a69(0x134)][_0x285a69(0x19a)]-0x1],_0x365d67=_0x21da21[_0x285a69(0x173)];_0x21da21[_0x285a69(0x1ac)](0x0,_0x285a69(0x1bf));let _0xfe8fe6=_0x351cdd({'editor':_0x390ae4,'reply':_0x21da21,'interaction':_0x364119,'groups':_0x365d67,'transform':!0x1,'documentCompare':_0xbb3a35,'documentCompareOptions':{'anchor':_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x10d)](_0x290f4d,0x0),'markDeletions':_0x1cc109}});_0xfe8fe6=this[_0x285a69(0xfe)](_0xfe8fe6,_0x377877);for(const _0x532121 of _0xfe8fe6)this[_0x285a69(0x125)](_0x377877,_0x532121,_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x146)][_0x285a69(0x172)]());const _0x5f40c3=_0x364119[_0x285a69(0x15f)]()[_0x285a69(0x145)],_0x27a5c8=_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x146)][_0x285a69(0x10c)][_0x285a69(0x1b3)](_0x5f40c3),_0x3d5d14={'document':_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x146)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x408b3f=_0x3abe54(_0xfe8fe6,_0x27a5c8,_0x3d5d14)[_0x285a69(0xef)];_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x12c)](_0x10020f=>{const _0x17c4a5=_0x285a69;if(_0x10020f[_0x17c4a5(0x10e)](_0x390ae4[_0x17c4a5(0xe8)][_0x17c4a5(0x146)][_0x17c4a5(0x128)][_0x17c4a5(0x185)]),_0x1cc109)_0x390ae4[_0x17c4a5(0x127)][_0x17c4a5(0x111)](_0x17c4a5(0x122))[_0x17c4a5(0x187)](_0x408b3f);else{for(const _0x116385 of _0x408b3f)_0x116385[_0x17c4a5(0xea)]=_0x390ae4[_0x17c4a5(0xe8)][_0x17c4a5(0x146)][_0x17c4a5(0x145)],_0x1089b7(_0x390ae4,_0x116385),_0x10020f[_0x17c4a5(0x154)][_0x17c4a5(0x14d)](_0x116385),_0x390ae4[_0x17c4a5(0xe8)][_0x17c4a5(0x1a4)](_0x116385);}}),this[_0x285a69(0x116)][_0x285a69(0x127)][_0x285a69(0x111)](_0x285a69(0x199))[_0x285a69(0x131)]();}[_0x5a850e(0xfe)](_0x3cc340,_0x143d67){const _0xcc1ea3=_0x5a850e;return _0x3cc340[_0xcc1ea3(0x1c3)](_0x3633b8=>{const _0x4264ee=_0xcc1ea3;if(_0x4264ee(0x117)==_0x3633b8[_0x4264ee(0x114)]){const _0x46c436=_0x3633b8[_0x4264ee(0x1b5)][_0x4264ee(0xfb)];return!_0x143d67[_0x4264ee(0x100)](_0x46c436);}if(_0x3633b8[_0x4264ee(0x114)][_0x4264ee(0xe7)](_0x4264ee(0x18e))>-0x1){const _0x4bffcb=_0x3633b8[_0x4264ee(0x181)][_0x4264ee(0x108)][_0x4264ee(0xfb)];return!_0x143d67[_0x4264ee(0x100)](_0x4bffcb);}return!0x0;});}[_0x5a850e(0x125)](_0x434b84,_0x416873,_0x468323){const _0x4a2c34=_0x5a850e,_0x17e7df=_0x416873[_0x4a2c34(0x1b1)]();for(const _0x2c5ef5 in _0x416873){const _0x50f254=_0x416873[_0x2c5ef5];_0x50f254 instanceof _0x5f3940?_0x416873[_0x2c5ef5]=new _0x5f3940(_0x4565a4(_0x50f254[_0x4a2c34(0x108)]),_0x4565a4(_0x50f254[_0x4a2c34(0x177)])):_0x50f254 instanceof _0x5546d8&&(_0x416873[_0x2c5ef5]=_0x4565a4(_0x50f254));}if([_0x4a2c34(0x1ad),_0x4a2c34(0x1be),_0x4a2c34(0x107),_0x4a2c34(0x1ab),_0x4a2c34(0x193),_0x4a2c34(0x18d)][_0x4a2c34(0x179)](_0x17e7df[_0x4a2c34(0x114)])){if(_0x17e7df[_0x4a2c34(0x151)]=!0x1,_0x17e7df[_0x4a2c34(0xea)]=null,_0x4a2c34(0x107)==_0x17e7df[_0x4a2c34(0x114)]){const _0x498a7c=_0x17e7df[_0x4a2c34(0x130)],_0x120994=_0x17e7df[_0x4a2c34(0x133)];new _0x71f6aa(_0x498a7c,_0x120994)[_0x4a2c34(0xe0)]();}else _0x17e7df[_0x4a2c34(0xe0)]();}function _0x4565a4(_0x21d6ba){const _0xb84b86=_0x4a2c34;if(_0xb84b86(0x144)==_0x21d6ba[_0xb84b86(0x1a3)][_0xb84b86(0xfa)])return _0x21d6ba;const _0x5a922e=[];let _0x109d3a=_0x21d6ba[_0xb84b86(0x1a3)];for(let _0x58787e=0x0;_0x58787e<_0x21d6ba[_0xb84b86(0x153)][_0xb84b86(0x19a)];_0x58787e++){const _0x4da57e=_0x434b84[_0xb84b86(0x111)](_0x109d3a)||0x0;_0x5a922e[_0x58787e]=_0x21d6ba[_0xb84b86(0x153)][_0x58787e]+_0x4da57e,_0x109d3a=_0x109d3a[_0xb84b86(0x14e)](_0x21d6ba[_0xb84b86(0x153)][_0x58787e]);}return new _0x5546d8(_0x468323,_0x5a922e,_0x21d6ba[_0xb84b86(0xe1)]);}}[_0x5a850e(0x1c0)](){const _0x2a96c2=_0x5a850e;if(!this[_0x2a96c2(0x15c)])return;this[_0x2a96c2(0x121)][_0x2a96c2(0x19a)]>0x0&&this[_0x2a96c2(0x1a1)](),this[_0x2a96c2(0x11f)]=0x0,this[_0x2a96c2(0x112)]=!0x1;const {action:_0x57753d,content:_0x32af60,version:_0x5e7529,mainView:_0x211324,aiBalloon:_0xa8f84c}=this[_0x2a96c2(0x15c)];_0x211324[_0x2a96c2(0x113)]=!0x1,_0x211324[_0x2a96c2(0x137)](),this[_0x2a96c2(0xff)](_0x211324,_0xa8f84c);const _0x499a7c=_0x211324;_0x499a7c[_0x2a96c2(0x17a)]&&_0x499a7c[_0x2a96c2(0x17a)][_0x2a96c2(0x140)]&&_0x499a7c[_0x2a96c2(0x17a)][_0x2a96c2(0x140)][_0x2a96c2(0x123)]({'isOn':!0x1,'icon':_0x37f9d7}),this[_0x2a96c2(0x1b6)](_0x211324),_0x211324[_0x2a96c2(0x149)](),this[_0x2a96c2(0x19b)](),this[_0x2a96c2(0x16d)](_0x211324),this[_0x2a96c2(0x186)](_0x32af60,_0x5e7529,_0x211324,_0xa8f84c,_0x57753d)[_0x2a96c2(0x165)](_0x5ac138=>{const _0x1263f9=_0x2a96c2;this[_0x1263f9(0x142)](_0x5ac138)||console[_0x1263f9(0x12d)](_0x1263f9(0x143),_0x5ac138);});}[_0x5a850e(0x1b6)](_0xcf7df7){const _0x1d0fc7=_0x5a850e,_0x207cda=_0xcf7df7[_0x1d0fc7(0x135)][_0x1d0fc7(0x1a6)];for(;_0x207cda[_0x1d0fc7(0x19a)]>0x0;)_0x207cda[_0x1d0fc7(0x107)](_0x207cda[_0x1d0fc7(0x10b)]);_0xcf7df7[_0x1d0fc7(0x135)][_0x1d0fc7(0x16f)]=!0x1;}[_0x5a850e(0x142)](_0x387e4d){const _0x498d83=_0x5a850e;return!!_0x387e4d[_0x498d83(0x1bc)]&&_0x387e4d[_0x498d83(0x1bc)][_0x498d83(0xf6)](_0x498d83(0x175));}[_0x5a850e(0x12b)](){const _0x12a7f9=_0x5a850e;this[_0x12a7f9(0x121)]=[],this[_0x12a7f9(0x15c)]=void 0x0,this[_0x12a7f9(0x11f)]=0x0,this[_0x12a7f9(0x19b)]();}[_0x5a850e(0x1a1)](){const _0x5005cf=_0x5a850e;this[_0x5005cf(0x1b2)]&&this[_0x5005cf(0x1b2)][_0x5005cf(0x18c)](),this[_0x5005cf(0x1b4)][_0x5005cf(0x183)](),this[_0x5005cf(0x182)]=!0x1,this[_0x5005cf(0x15c)]&&this[_0x5005cf(0x15c)][_0x5005cf(0x196)][_0x5005cf(0x105)]();}[_0x5a850e(0x17d)](){const _0x11069b=_0x5a850e,_0x4d7452=new _0x4267bd(this[_0x11069b(0x116)][_0x11069b(0x159)]),_0x5381e2=new _0x4267bd(this[_0x11069b(0x116)][_0x11069b(0x159)]),_0x576966=new _0x3b5cef(this[_0x11069b(0x116)][_0x11069b(0x159)]),_0x2601f2=new _0x4267bd(this[_0x11069b(0x116)][_0x11069b(0x159)]);_0x4d7452[_0x11069b(0x123)]({'icon':_0x4ecf33,'label':_0x5d3387(this[_0x11069b(0x116)][_0x11069b(0x159)],_0x11069b(0xfd)),'tooltip':!0x0,'class':_0x11069b(0x1a7)}),_0x5381e2[_0x11069b(0x123)]({'icon':_0x51ea6e,'tooltip':_0x5d3387(this[_0x11069b(0x116)][_0x11069b(0x159)],_0x11069b(0x1c4)),'class':_0x11069b(0xeb)}),_0x576966[_0x11069b(0x195)]({'tag':_0x11069b(0x13e),'attributes':{'class':[_0x11069b(0x163)]},'children':[_0x11069b(0x15b)]}),_0x2601f2[_0x11069b(0x123)]({'icon':_0x39e62d,'tooltip':_0x5d3387(this[_0x11069b(0x116)][_0x11069b(0x159)],_0x11069b(0x104)),'class':_0x11069b(0xe5)}),_0x4d7452[_0x11069b(0x19c)](_0x11069b(0x13c))['to'](this,_0x11069b(0x182),_0x1ebb87=>!_0x1ebb87),_0x4d7452['on'](_0x11069b(0x188),()=>{const _0x2c971e=_0x11069b;this[_0x2c971e(0x1c0)]();}),_0x5381e2[_0x11069b(0x19c)](_0x11069b(0x13c))['to'](this,_0x11069b(0x182),_0x51b6ec=>!_0x51b6ec),_0x5381e2['on'](_0x11069b(0x188),()=>{const _0x2a5db6=_0x11069b;this[_0x2a5db6(0x1ba)]();}),_0x2601f2[_0x11069b(0x19c)](_0x11069b(0x13c))['to'](this,_0x11069b(0x182),_0x245802=>!_0x245802),_0x2601f2['on'](_0x11069b(0x188),()=>{const _0x28fde7=_0x11069b;this[_0x28fde7(0x1a0)]();}),this[_0x11069b(0x191)]=_0x5381e2,this[_0x11069b(0x13b)]=_0x576966,this[_0x11069b(0x1bb)]=_0x2601f2,this[_0x11069b(0x14f)][_0x11069b(0x126)](_0x4d7452);}[_0x5a850e(0x1ba)](){const _0x2e3b32=_0x5a850e,_0x2003df=this[_0x2e3b32(0x121)][_0x2e3b32(0x19a)];this[_0x2e3b32(0x11f)]<_0x2003df-0x1&&this[_0x2e3b32(0x12a)](this[_0x2e3b32(0x11f)]+0x1);}[_0x5a850e(0x1a0)](){const _0x21c945=_0x5a850e;this[_0x21c945(0x11f)]>0x0&&this[_0x21c945(0x12a)](this[_0x21c945(0x11f)]-0x1);}async[_0x5a850e(0x12a)](_0x54a01b){const _0x14eebf=_0x5a850e;if(!this[_0x14eebf(0x15c)])return;this[_0x14eebf(0x11f)]=_0x54a01b;const {mainView:_0x4939d6}=this[_0x14eebf(0x15c)],_0x2bb83b=this[_0x14eebf(0x121)][this[_0x14eebf(0x121)][_0x14eebf(0x19a)]-0x1-this[_0x14eebf(0x11f)]];if(!_0x2bb83b)return;if(_0x2bb83b[_0x14eebf(0x1c2)])return this[_0x14eebf(0xe4)](_0x2bb83b,_0x4939d6),void this[_0x14eebf(0x19b)]();if(!_0x2bb83b[_0x14eebf(0x134)][_0x14eebf(0x19a)])return;_0x4939d6[_0x14eebf(0x137)](),this[_0x14eebf(0x15c)]&&this[_0x14eebf(0xff)](_0x4939d6,this[_0x14eebf(0x15c)][_0x14eebf(0x196)]);const _0x1b4e7c=_0x2bb83b[_0x14eebf(0x134)][_0x2bb83b[_0x14eebf(0x134)][_0x14eebf(0x19a)]-0x1];if(_0x1b4e7c){const _0x5d34b6=this[_0x14eebf(0x116)];this[_0x14eebf(0x1b6)](_0x4939d6);try{const _0x51aba0=_0x4e9a87({'editor':_0x5d34b6,'changeGroups':_0x1b4e7c[_0x14eebf(0x173)],'documentContextContent':_0x1b4e7c[_0x14eebf(0xf3)],'showDiff':this[_0x14eebf(0x112)],'trimUnchanged':!0x1});this[_0x14eebf(0x1b6)](_0x4939d6),await new Promise(_0x430271=>setTimeout(_0x430271,0x32)),await _0x4939d6[_0x14eebf(0x11b)]({'parts':_0x51aba0,'renderingStrategy':_0x14eebf(0xe3),'abortSignal':new AbortController()[_0x14eebf(0x19d)]});}catch(_0x4a9ce4){this[_0x14eebf(0x142)](_0x4a9ce4)||console[_0x14eebf(0x12d)](_0x14eebf(0x197),_0x4a9ce4);}}this[_0x14eebf(0x19b)]();}[_0x5a850e(0x19b)](){const _0x95ced9=_0x5a850e;if(!this[_0x95ced9(0x191)]||!this[_0x95ced9(0x13b)]||!this[_0x95ced9(0x1bb)])return;const _0x90fc03=this[_0x95ced9(0x121)][_0x95ced9(0x19a)],_0x3a1a7d=_0x90fc03>0x1,_0xa21a14=this[_0x95ced9(0x15c)]?.[_0x95ced9(0x13d)];if(_0x3a1a7d){this[_0x95ced9(0x194)]||this[_0x95ced9(0x17f)]||this[_0x95ced9(0x13f)]||(this[_0x95ced9(0x14f)][_0x95ced9(0x126)](this[_0x95ced9(0x191)]),_0xa21a14?.[_0x95ced9(0x155)](this[_0x95ced9(0x191)]),this[_0x95ced9(0x194)]=!0x0,this[_0x95ced9(0x14f)][_0x95ced9(0x126)](this[_0x95ced9(0x13b)]),_0xa21a14?.[_0x95ced9(0x155)](this[_0x95ced9(0x13b)]),this[_0x95ced9(0x17f)]=!0x0,this[_0x95ced9(0x14f)][_0x95ced9(0x126)](this[_0x95ced9(0x1bb)]),_0xa21a14?.[_0x95ced9(0x155)](this[_0x95ced9(0x1bb)]),this[_0x95ced9(0x13f)]=!0x0);const _0x388123=_0x90fc03-this[_0x95ced9(0x11f)];this[_0x95ced9(0x13b)][_0x95ced9(0x106)]&&(this[_0x95ced9(0x13b)][_0x95ced9(0x106)][_0x95ced9(0x12e)]=_0x388123+'/'+_0x90fc03),this[_0x95ced9(0x191)][_0x95ced9(0x13c)]=this[_0x95ced9(0x11f)]<_0x90fc03-0x1,this[_0x95ced9(0x1bb)][_0x95ced9(0x13c)]=this[_0x95ced9(0x11f)]>0x0;}else(this[_0x95ced9(0x194)]||this[_0x95ced9(0x17f)]||this[_0x95ced9(0x13f)])&&(this[_0x95ced9(0x14f)][_0x95ced9(0x107)](this[_0x95ced9(0x191)]),_0xa21a14?.[_0x95ced9(0x11c)](this[_0x95ced9(0x191)]),this[_0x95ced9(0x194)]=!0x1,this[_0x95ced9(0x14f)][_0x95ced9(0x107)](this[_0x95ced9(0x13b)]),_0xa21a14?.[_0x95ced9(0x11c)](this[_0x95ced9(0x13b)]),this[_0x95ced9(0x17f)]=!0x1,this[_0x95ced9(0x14f)][_0x95ced9(0x107)](this[_0x95ced9(0x1bb)]),_0xa21a14?.[_0x95ced9(0x11c)](this[_0x95ced9(0x1bb)]),this[_0x95ced9(0x13f)]=!0x1);}[_0x5a850e(0x1b8)](_0x31d29d,_0x303a9d){const _0x49821f=_0x5a850e;_0x31d29d[_0x49821f(0x11a)](),_0x303a9d[_0x49821f(0x15d)][_0x49821f(0x11a)](),this[_0x49821f(0x182)]=!0x0;}async[_0x5a850e(0xe4)](_0x33e030,_0x3b5695){const _0x3f903c=_0x5a850e,_0x33a538=_0x5d3387(this[_0x3f903c(0x116)][_0x3f903c(0x159)],_0x3f903c(0x1b7));_0x3b5695[_0x3f903c(0xe9)](_0x33a538),_0x33e030[_0x3f903c(0x1c2)]=!0x0,await this[_0x3f903c(0x1b4)][_0x3f903c(0x1c6)],_0x3b5695[_0x3f903c(0x169)](),this[_0x3f903c(0x15c)]?.[_0x3f903c(0x196)][_0x3f903c(0x15d)][_0x3f903c(0xed)]&&(this[_0x3f903c(0x15c)][_0x3f903c(0x196)][_0x3f903c(0x15d)][_0x3f903c(0xed)][_0x3f903c(0x1af)]=!0x0);}[_0x5a850e(0xff)](_0x3ae3c9,_0x24c395){const _0x180016=_0x5a850e;_0x3ae3c9[_0x180016(0x160)](),_0x24c395[_0x180016(0x15d)][_0x180016(0xed)]&&(_0x24c395[_0x180016(0x15d)][_0x180016(0xed)][_0x180016(0x1af)]=!0x1);}async[_0x5a850e(0x157)](_0x13f221,_0x3c0d47){const _0x392962=_0x5a850e;await this[_0x392962(0x1b4)][_0x392962(0x1c6)],this[_0x392962(0x182)]=!0x1,_0x13f221[_0x392962(0x12f)](),_0x3c0d47[_0x392962(0x15d)][_0x392962(0x12f)]();}[_0x5a850e(0x11e)](){const _0x20e6ac=_0x5a850e;this[_0x20e6ac(0x14f)][_0x20e6ac(0x16c)](_0x54f26a=>{const _0x4e75b0=_0x20e6ac;_0x4e75b0(0x13c)in _0x54f26a&&(_0x54f26a[_0x4e75b0(0x13c)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d987c=_0x52c6;(function(_0xb2e53e,_0x4bf51b){const _0x304564=_0x52c6,_0x1b7aac=_0xb2e53e();while(!![]){try{const _0x12bddc=parseInt(_0x304564(0x100))/0x1*(parseInt(_0x304564(0xff))/0x2)+-parseInt(_0x304564(0x11a))/0x3+-parseInt(_0x304564(0x106))/0x4+parseInt(_0x304564(0x110))/0x5+parseInt(_0x304564(0x116))/0x6+-parseInt(_0x304564(0x102))/0x7+parseInt(_0x304564(0xfd))/0x8*(parseInt(_0x304564(0x104))/0x9);if(_0x12bddc===_0x4bf51b)break;else _0x1b7aac['push'](_0x1b7aac['shift']());}catch(_0x1ae2cb){_0x1b7aac['push'](_0x1b7aac['shift']());}}}(_0x4e36,0xe6d93));import{AIInteraction as _0x3f13d8,AI_MODEL_EVENT_NAMES as _0x3ea130}from'../../aicore/model/aiinteraction.js';function _0x4e36(){const _0x3329f6=['executeAction','5356130IOTobP','userMessage','delegate','createReply','fire','getDocumentContext','6147948oxpHSe','replies','connector','replyCreated','1980903JnnsfL','hasError','model','280URHWZh','html','268190ghILiD','11AcnZNV','version','10296209oaWXsR','actionName','111960TRFCja','Current\x20document','3718344sOvMkK','args','push','current-document','editor','executeCustomAction','TEXT','content','sendRequest'];_0x4e36=function(){return _0x3329f6;};return _0x4e36();}function _0x52c6(_0x10db4a,_0x48462b){const _0x4e369e=_0x4e36();return _0x52c6=function(_0x52c64c,_0x11b3a9){_0x52c64c=_0x52c64c-0xfb;let _0x114078=_0x4e369e[_0x52c64c];return _0x114078;},_0x52c6(_0x10db4a,_0x48462b);}import{AIContextItemType as _0x3ca426}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x2fd029}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x3f13d8{[_0x3d987c(0x10d)];[_0x3d987c(0x101)];[_0x3d987c(0x103)];[_0x3d987c(0x107)];[_0x3d987c(0x111)];[_0x3d987c(0xfc)];[_0x3d987c(0xfb)]=!0x1;constructor(_0x571c5d){const _0x30be9a=_0x3d987c;super(_0x571c5d),this[_0x30be9a(0x10d)]=_0x571c5d[_0x30be9a(0x10d)],this[_0x30be9a(0x101)]=_0x571c5d[_0x30be9a(0x101)],this[_0x30be9a(0x103)]=_0x571c5d[_0x30be9a(0x103)],this[_0x30be9a(0x107)]=_0x571c5d[_0x30be9a(0x107)],this[_0x30be9a(0x111)]=_0x571c5d[_0x30be9a(0x111)],this[_0x30be9a(0xfc)]=_0x571c5d[_0x30be9a(0xfc)];}async[_0x3d987c(0x10e)](){const _0xee12c6=_0x3d987c;return this[_0xee12c6(0x103)]?this[_0xee12c6(0x118)][_0xee12c6(0x10f)]({'content':this[_0xee12c6(0x10d)],'actionName':this[_0xee12c6(0x103)],'args':this[_0xee12c6(0x107)]}):this[_0xee12c6(0x118)][_0xee12c6(0x10b)]({'content':this[_0xee12c6(0x10d)],'message':this[_0xee12c6(0x111)],'model':this[_0xee12c6(0xfc)],'outputFormat':_0xee12c6(0xfe)});}[_0x3d987c(0x115)](){const _0x5229b1=_0x3d987c;return{'type':_0x3ca426[_0x5229b1(0x10c)],'content':this[_0x5229b1(0x10d)],'version':this[_0x5229b1(0x101)],'label':_0x5229b1(0x105),'uiId':_0x5229b1(0x109)};}[_0x3d987c(0x113)](_0x5ad2db){const _0x1b151d=_0x3d987c,_0x54e205=new _0x2fd029({'editor':this[_0x1b151d(0x10a)],'documentContextContent':this[_0x1b151d(0x10d)],..._0x5ad2db});return this[_0x1b151d(0x117)][_0x1b151d(0x108)](_0x54e205),_0x54e205[_0x1b151d(0x112)](..._0x3ea130)['to'](this),this[_0x1b151d(0x114)](_0x1b151d(0x119),_0x54e205),_0x54e205;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x583239=_0x4ad2;(function(_0x4892c5,_0x4adb1d){const _0x3de196=_0x4ad2,_0x537839=_0x4892c5();while(!![]){try{const _0x4820f7=parseInt(_0x3de196(0xf5))/0x1*(parseInt(_0x3de196(0xfb))/0x2)+-parseInt(_0x3de196(0xf7))/0x3*(parseInt(_0x3de196(0x103))/0x4)+parseInt(_0x3de196(0xee))/0x5*(parseInt(_0x3de196(0x104))/0x6)+parseInt(_0x3de196(0xfa))/0x7*(-parseInt(_0x3de196(0xe9))/0x8)+-parseInt(_0x3de196(0x105))/0x9+-parseInt(_0x3de196(0xec))/0xa+parseInt(_0x3de196(0xf4))/0xb*(parseInt(_0x3de196(0xf0))/0xc);if(_0x4820f7===_0x4adb1d)break;else _0x537839['push'](_0x537839['shift']());}catch(_0x19dd9d){_0x537839['push'](_0x537839['shift']());}}}(_0x42f7,0xe89a1));function _0x4ad2(_0x1557b2,_0x318a98){const _0x42f78a=_0x42f7();return _0x4ad2=function(_0x4ad273,_0x19ec97){_0x4ad273=_0x4ad273-0xe9;let _0x550e7c=_0x42f78a[_0x4ad273];return _0x550e7c;},_0x4ad2(_0x1557b2,_0x318a98);}import{AIReply as _0x1ab964}from'../../aicore/model/aireply.js';import{getAttribute as _0x337d3c}from'../../aicore/utils/htmlparser.js';function _0x42f7(){const _0x3a01a8=['3EfcOYp','new','2328iQpPke','added','data-id','1043teyDAt','119562fPJEQr','length','node','pending','changeGroups','cloneNode','isDone','map','7312SAJSVS','4794834XtlZXW','525690GCHgVQ','modified','childNodes','parsedMergedContent','parsedContent','39496CQbCOY','pop','children','4488320veZEfn','_getDifferentChangeGroups','5InRprZ','removed','24aSyOJE','documentContextContent','updateChangeGroups','value','14496009MKFEvC'];_0x42f7=function(){return _0x3a01a8;};return _0x42f7();}import{uid as _0x56c8fd}from'ckeditor5/src/utils.js';import{diffArrays as _0x398ef2}from'diff';export class AIActionsReply extends _0x1ab964{[_0x583239(0xf2)](){const _0x314406=_0x583239;if(this[_0x314406(0x108)]=this[_0x314406(0x109)][_0x314406(0x100)](!0x0),0x0==this[_0x314406(0x108)][_0x314406(0x107)][_0x314406(0xfc)])return void(this[_0x314406(0xff)]=[]);const _0x4214b2=this[_0x314406(0xf1)][_0x314406(0xeb)][_0x314406(0x102)](_0x156696=>({'node':_0x156696,'id':_0x337d3c(_0x156696,_0x314406(0xf9))})),_0x604861=this[_0x314406(0x108)][_0x314406(0xeb)][_0x314406(0x102)](_0x47c7d5=>({'node':_0x47c7d5,'id':_0x337d3c(_0x47c7d5,_0x314406(0xf9))||_0x56c8fd()})),_0x3eb98f=_0x398ef2(_0x4214b2,_0x604861,{'comparator':(_0x9e16a2,_0x19b730)=>_0x9e16a2['id']==_0x19b730['id'],'oneChangePerToken':!0x0});if(!this[_0x314406(0x101)]){for(;_0x3eb98f[_0x314406(0xfc)]&&_0x3eb98f[_0x3eb98f[_0x314406(0xfc)]-0x1][_0x314406(0xef)];)_0x3eb98f[_0x314406(0xea)]();}const _0x5196b3=_0x3eb98f[_0x314406(0x102)](_0x171943=>{const _0x114312=_0x314406,_0x207a00=_0x171943[_0x114312(0xf8)]?_0x114312(0xf6):_0x171943[_0x114312(0xef)]?_0x114312(0xef):_0x114312(0x106);return{'node':_0x171943[_0x114312(0xf3)][0x0][_0x114312(0xfd)],'type':_0x207a00,'id':_0x171943[_0x114312(0xf3)][0x0]['id']};});this[_0x314406(0xff)]=[{'changes':_0x5196b3,'state':_0x314406(0xfe),'index':0x0}];}[_0x583239(0xed)](_0x2d3b23,_0x587e74){return _0x587e74;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x9d04b5=_0x32ed;function _0x32ed(_0x4225af,_0x1004c5){var _0x236da9=_0x236d();return _0x32ed=function(_0x32ed39,_0x230b9b){_0x32ed39=_0x32ed39-0xbb;var _0x14d0dc=_0x236da9[_0x32ed39];return _0x14d0dc;},_0x32ed(_0x4225af,_0x1004c5);}(function(_0x27c760,_0xb26e9b){var _0x10fc13=_0x32ed,_0x47967e=_0x27c760();while(!![]){try{var _0x57c43b=parseInt(_0x10fc13(0xca))/0x1*(-parseInt(_0x10fc13(0xc6))/0x2)+parseInt(_0x10fc13(0xbb))/0x3+parseInt(_0x10fc13(0xbc))/0x4+parseInt(_0x10fc13(0xc8))/0x5+-parseInt(_0x10fc13(0xbe))/0x6+-parseInt(_0x10fc13(0xc0))/0x7+parseInt(_0x10fc13(0xc5))/0x8*(parseInt(_0x10fc13(0xbf))/0x9);if(_0x57c43b===_0xb26e9b)break;else _0x47967e['push'](_0x47967e['shift']());}catch(_0x31360b){_0x47967e['push'](_0x47967e['shift']());}}}(_0x236d,0xad35b));function _0x236d(){var _0x1ff84d=['AIRequestError','name','8GGCvEn','20cNnVzF','afterInit','6056840hpFsGE','aiadapter-text-adapter-not-set','123337GbntKC','AIAdapter','textAdapter','2681466GXngxb','5080316YESODZ','isOfficialPlugin','7046046kNTWSI','5689809TBmbWL','6232044FwKOkG','pluginName','isPremiumPlugin'];_0x236d=function(){return _0x1ff84d;};return _0x236d();}import{Plugin as _0x127947}from'ckeditor5/src/core.js';import{CKEditorError as _0x20d947}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x127947{static get[_0x9d04b5(0xc1)](){var _0x256288=_0x9d04b5;return _0x256288(0xcb);}static get[_0x9d04b5(0xbd)](){return!0x0;}static get[_0x9d04b5(0xc2)](){return!0x0;}[_0x9d04b5(0xc7)](){var _0x34878d=_0x9d04b5;if(!this[_0x34878d(0xcc)])throw new _0x20d947(_0x34878d(0xc9),null);}}export class AIRequestError extends Error{constructor(_0x1e5b22){var _0x3ee4a4=_0x9d04b5;super(_0x1e5b22),this[_0x3ee4a4(0xc4)]=_0x3ee4a4(0xc3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cc9ae=_0x16f1;(function(_0x30f0bf,_0x43768c){const _0x37f7f4=_0x16f1,_0xabec42=_0x30f0bf();while(!![]){try{const _0x1640e3=parseInt(_0x37f7f4(0x15a))/0x1*(parseInt(_0x37f7f4(0x142))/0x2)+parseInt(_0x37f7f4(0x149))/0x3+-parseInt(_0x37f7f4(0x14b))/0x4+-parseInt(_0x37f7f4(0x15b))/0x5*(parseInt(_0x37f7f4(0x14d))/0x6)+parseInt(_0x37f7f4(0x146))/0x7+parseInt(_0x37f7f4(0x141))/0x8*(-parseInt(_0x37f7f4(0x15d))/0x9)+-parseInt(_0x37f7f4(0x14f))/0xa*(-parseInt(_0x37f7f4(0x161))/0xb);if(_0x1640e3===_0x43768c)break;else _0xabec42['push'](_0xabec42['shift']());}catch(_0x350c72){_0xabec42['push'](_0xabec42['shift']());}}}(_0x54e0,0xabce9));import{Plugin as _0x17b6c2}from'ckeditor5/src/core.js';import{CKEditorError as _0x55dab1}from'ckeditor5/src/utils.js';function _0x16f1(_0x505df6,_0x136a03){const _0x54e0fd=_0x54e0();return _0x16f1=function(_0x16f12a,_0x10d3b1){_0x16f12a=_0x16f12a-0x13c;let _0x3446f7=_0x54e0fd[_0x16f12a];return _0x3446f7;},_0x16f1(_0x505df6,_0x136a03);}import{AIAdapter as _0x10528c,AIRequestError as _0xd54d58}from'./aiadapter.js';function _0x54e0(){const _0x3e8095=['application/json','7402584PhjpWO','get','requires','2556348rDnFKW','abortController','2619200NHNYRm','AI_ERROR_GET_HEADERS','10560SXTNXF','reject','950xTDEAp','editor','locale','textAdapter','makeRequest','plugins','_prepareRequestParameters','_prepareRequestHeaders','resolve','abort','aitextadapter-send-request-failed','53uCXHEp','2795RImxgU','object','2470761oAECMl','name','signal','AbortError','119317KybKaK','sendRequest','catch','init','aborted','AI_ERROR_GET_PARAMETERS','40GBdINX','29242tJWGDG','assign','error'];_0x54e0=function(){return _0x3e8095;};return _0x54e0();}import{getTranslation as _0x779817}from'../utils/common-translations.js';export class AITextAdapter extends _0x17b6c2{[_0x4cc9ae(0x14a)];static get[_0x4cc9ae(0x148)](){return[_0x10528c];}constructor(_0x8cf0dc){const _0x197321=_0x4cc9ae;super(_0x8cf0dc),this[_0x197321(0x14a)]=new AbortController();}[_0x4cc9ae(0x13e)](){const _0x4f5c81=_0x4cc9ae;this[_0x4f5c81(0x150)][_0x4f5c81(0x154)][_0x4f5c81(0x147)](_0x10528c)[_0x4f5c81(0x152)]=this;}[_0x4cc9ae(0x158)](){const _0x2c95f0=_0x4cc9ae;this[_0x2c95f0(0x14a)][_0x2c95f0(0x15f)][_0x2c95f0(0x13f)]||(this[_0x2c95f0(0x14a)][_0x2c95f0(0x158)](),this[_0x2c95f0(0x14a)]=new AbortController());}async[_0x4cc9ae(0x153)](_0x1b46d9){const _0x4204cb=_0x4cc9ae;return this[_0x4204cb(0x13c)](_0x1b46d9)[_0x4204cb(0x13d)](_0x3070ad=>{const _0x1709d8=_0x4204cb;if(_0x3070ad instanceof _0xd54d58)return Promise[_0x1709d8(0x14e)](_0x3070ad);if(_0x1709d8(0x160)==_0x3070ad[_0x1709d8(0x15e)])return Promise[_0x1709d8(0x157)]();throw console[_0x1709d8(0x144)](_0x3070ad),new _0x55dab1(_0x1709d8(0x159),null);});}async[_0x4cc9ae(0x156)](_0x2d5244,_0xa32564){const _0x313e33=_0x4cc9ae,_0x1ebd33=this[_0x313e33(0x150)][_0x313e33(0x151)],_0x10fc21={'Content-Type':_0x313e33(0x145)};if(_0x313e33(0x15c)==typeof _0x2d5244)Object[_0x313e33(0x143)](_0x10fc21,_0x2d5244);else{if(_0x2d5244)try{const _0x1f2bdc=await _0x2d5244(_0xa32564);Object[_0x313e33(0x143)](_0x10fc21,_0x1f2bdc);}catch{return Promise[_0x313e33(0x14e)](new _0xd54d58(_0x779817(_0x1ebd33,_0x313e33(0x14c))));}}return _0x10fc21;}async[_0x4cc9ae(0x155)](_0x3a68e9,_0x18497d){const _0x289d0f=_0x4cc9ae,_0x1a66d7=this[_0x289d0f(0x150)][_0x289d0f(0x151)];if(_0x289d0f(0x15c)==typeof _0x3a68e9)return _0x3a68e9;try{return await _0x3a68e9(_0x18497d);}catch{return Promise[_0x289d0f(0x14e)](new _0xd54d58(_0x779817(_0x1a66d7,_0x289d0f(0x140))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x344772=_0x1505;function _0x1505(_0x4a3440,_0x33d072){const _0xbc0b01=_0xbc0b();return _0x1505=function(_0x1505d4,_0x112abc){_0x1505d4=_0x1505d4-0x179;let _0x3d52d5=_0xbc0b01[_0x1505d4];return _0x3d52d5;},_0x1505(_0x4a3440,_0x33d072);}(function(_0x4ea322,_0x16d617){const _0x6ca8fe=_0x1505,_0x400667=_0x4ea322();while(!![]){try{const _0x5e1755=parseInt(_0x6ca8fe(0x1af))/0x1+-parseInt(_0x6ca8fe(0x1c6))/0x2*(parseInt(_0x6ca8fe(0x185))/0x3)+-parseInt(_0x6ca8fe(0x1ae))/0x4*(parseInt(_0x6ca8fe(0x190))/0x5)+parseInt(_0x6ca8fe(0x1b2))/0x6*(-parseInt(_0x6ca8fe(0x181))/0x7)+parseInt(_0x6ca8fe(0x1a3))/0x8+-parseInt(_0x6ca8fe(0x1c2))/0x9+-parseInt(_0x6ca8fe(0x17f))/0xa*(-parseInt(_0x6ca8fe(0x18a))/0xb);if(_0x5e1755===_0x16d617)break;else _0x400667['push'](_0x400667['shift']());}catch(_0x5ccf1d){_0x400667['push'](_0x400667['shift']());}}}(_0xbc0b,0x381f8));import{AITextAdapter as _0x344dfa}from'./aitextadapter.js';import{AIRequestError as _0x495a54}from'./aiadapter.js';import{BedrockRuntimeClient as _0x1d63af,InvokeModelCommand as _0xa67f07,InvokeModelWithResponseStreamCommand as _0x25183b}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x2e1534}from'../utils/common-translations.js';function _0xbc0b(){const _0x41aad8=['602IkHNwj','getReader','Instruction:\x0a','_readAsyncIterableResponse','3261BCgXse','Human:\x0a','\x0a[/INST]','ai.assistant.adapter.aws.bedrockClientConfig','_prepareRequestHeaders','4744619ANBNeO','_processProxyRequest','decode','get','_readStaticResponse','anthropic.claude-v2','5MqSpAK','define','bytes','ai.assistant.adapter.aws.requestHeaders','\x0a\x0aAssistant:','sendRequest','config','abortController','chunk','POST','_prepareRequestParameters','generation','ai.assistant.adapter.aws.apiUrl','read','stringify','cohere.command','completions','meta.llama','split','3407824vzwCGp','_requestParameters','ai.assistant.adapter.aws.requestParameters','data','preparePrompt','AI_ERROR_UNSUPPORTED_MODEL','\x0a<</SYS>>\x0a[INST]\x0a','map','generations','completion','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','1014632BmdQRU','279488zBwdeF','<<SYS>>\x0a','body','30126ehbZBg','ai21.j2','utf-8','_apiUrl','AWSTextAdapter','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','test','_readStreamableResponse','_requestHeaders','_processAWSRequest','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_bedrockClientConfig','bedrock-2023-05-31','length','signal','pluginName','1533258JvhkNN','parse','send','json','94HTXySE','anthropic.claude','filter','join','locale','text','resolve','_getGeneratedText','editor','getModelFamily','10ExKXFs','application/json'];_0xbc0b=function(){return _0x41aad8;};return _0xbc0b();}export class AWSTextAdapter extends _0x344dfa{[_0x344772(0x1b5)];[_0x344772(0x1ba)];[_0x344772(0x1bd)];[_0x344772(0x1a4)];static get[_0x344772(0x1c1)](){const _0x1a48d8=_0x344772;return _0x1a48d8(0x1b6);}constructor(_0x2d00b3){const _0x4810f8=_0x344772;super(_0x2d00b3),_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x1a5))||_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x191)](_0x4810f8(0x1a5),{'model':_0x4810f8(0x18f),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4810f8(0x1be),'stream':!0x0}),this[_0x4810f8(0x1b5)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x19c)),this[_0x4810f8(0x1bd)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x188)),this[_0x4810f8(0x1ba)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x193)),this[_0x4810f8(0x1a4)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x1a5));}async[_0x344772(0x195)]({query:_0x1d0fed,context:_0x550605,onData:_0x3541a8,actionId:_0x57b401}){const _0x59af41=_0x344772,{model:_0x2ebe07,stream:_0x3794ad,..._0x4e5284}=await this[_0x59af41(0x19a)](this[_0x59af41(0x1a4)],_0x57b401),_0x27bf6f={'prompt':await this[_0x59af41(0x1a7)](_0x1d0fed,_0x550605,_0x2ebe07,_0x57b401),..._0x4e5284};this[_0x59af41(0x1b5)]?await this[_0x59af41(0x18b)](_0x27bf6f,_0x2ebe07,_0x3794ad,_0x3541a8,_0x57b401):await this[_0x59af41(0x1bb)](_0x27bf6f,_0x2ebe07,_0x3794ad,_0x3541a8);}async[_0x344772(0x1a7)](_0x5f1363,_0x5b6bee,_0x5d0e72,_0x34e9b1){const _0x5ecb09=_0x344772;let _0x3ee9ef,_0xa4558b;return _0x5b6bee?(_0x3ee9ef=_0x5ecb09(0x1b7),_0xa4558b=_0x5ecb09(0x183)+_0x5f1363+_0x5ecb09(0x1bc)+_0x5b6bee):(_0x3ee9ef=_0x5ecb09(0x1ad),_0xa4558b=_0x5f1363),_0x5ecb09(0x1a1)==this[_0x5ecb09(0x17e)](_0x5d0e72)?_0x5ecb09(0x1b0)+_0x3ee9ef+_0x5ecb09(0x1a9)+_0xa4558b+_0x5ecb09(0x187):_0x5ecb09(0x186)+_0x3ee9ef+'\x0a'+_0xa4558b+_0x5ecb09(0x194);}[_0x344772(0x17e)](_0x4b12c2){const _0x8f28de=_0x344772;if(/^anthropic\.claude/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x1c7);if(/^ai21\.j2/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x1b3);if(/^cohere\.command/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x19f);if(/^meta\.llama/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x1a1);throw new _0x495a54(_0x2e1534(this[_0x8f28de(0x17d)][_0x8f28de(0x179)],_0x8f28de(0x1a8),_0x4b12c2));}async[_0x344772(0x18b)](_0x113a09,_0xf4cca3,_0x55e817,_0x417352,_0x4c15a6){const _0x5eef71=_0x344772,_0x3e21e9={'method':_0x5eef71(0x199),'headers':await this[_0x5eef71(0x189)](this[_0x5eef71(0x1ba)],_0x4c15a6),'body':JSON[_0x5eef71(0x19e)]({..._0x113a09,'model':_0xf4cca3,'stream':_0x55e817}),'signal':this[_0x5eef71(0x197)][_0x5eef71(0x1c0)]},_0x4d88af=await fetch(this[_0x5eef71(0x1b5)],_0x3e21e9);_0x55e817?await this[_0x5eef71(0x1b9)](_0x4d88af,_0xf4cca3,_0x417352):await this[_0x5eef71(0x18e)](_0x4d88af,_0xf4cca3,_0x417352);}async[_0x344772(0x1bb)](_0x493eff,_0x19a569,_0x420eba,_0x39e324){const _0x29c50a=_0x344772,_0x499a9b=new _0x1d63af(this[_0x29c50a(0x1bd)]),_0x1218bc={'body':JSON[_0x29c50a(0x19e)](_0x493eff),'contentType':_0x29c50a(0x180),'accept':_0x29c50a(0x180),'modelId':_0x19a569};let _0x1c59fa;if(_0x420eba){const _0x43d3dc=new _0x25183b(_0x1218bc);_0x1c59fa=await _0x499a9b[_0x29c50a(0x1c4)](_0x43d3dc,{'abortSignal':this[_0x29c50a(0x197)][_0x29c50a(0x1c0)]}),await this[_0x29c50a(0x184)](_0x1c59fa,_0x19a569,_0x39e324);}else{const _0x3de114=new _0xa67f07(_0x1218bc);_0x1c59fa=await _0x499a9b[_0x29c50a(0x1c4)](_0x3de114,{'abortSignal':this[_0x29c50a(0x197)][_0x29c50a(0x1c0)]}),await this[_0x29c50a(0x18e)](_0x1c59fa,_0x19a569,_0x39e324);}}async[_0x344772(0x184)](_0x290fef,_0x3c2e38,_0x502bbf){const _0x1b8fe5=_0x344772,_0x4310b9=_0x290fef[_0x1b8fe5(0x1b1)],_0x16a116=new TextDecoder(_0x1b8fe5(0x1b4));let _0xe536a0='';for await(const _0x19ab91 of _0x4310b9)if(_0x19ab91[_0x1b8fe5(0x198)]){const _0x394d62=_0x16a116[_0x1b8fe5(0x18c)](_0x19ab91[_0x1b8fe5(0x198)][_0x1b8fe5(0x192)]),_0x2c8509=JSON[_0x1b8fe5(0x1c3)](_0x394d62);_0xe536a0+=this[_0x1b8fe5(0x17c)](_0x2c8509,_0x3c2e38),_0x502bbf(_0xe536a0);}return Promise[_0x1b8fe5(0x17b)]();}async[_0x344772(0x1b9)](_0x4f30a7,_0x5a224c,_0x306b07){const _0x1e7e58=_0x344772,_0x47a493=_0x4f30a7[_0x1e7e58(0x1b1)],_0x57306f=new TextDecoder(_0x1e7e58(0x1b4)),_0x36168d=_0x47a493[_0x1e7e58(0x182)]();let _0x23bc93='',_0x55749c='',_0x314f5a=!0x1;for(;!_0x314f5a;){const {done:_0x3f454c,value:_0x7e067c}=await _0x36168d[_0x1e7e58(0x19d)]();if(_0x314f5a=_0x3f454c,_0x314f5a)break;const _0xf43241=(_0x23bc93+_0x57306f[_0x1e7e58(0x18c)](_0x7e067c))[_0x1e7e58(0x1a2)]('\x0a')[_0x1e7e58(0x1aa)](_0xbb90c6=>{const _0x39f9ab=_0x1e7e58;try{return _0x23bc93='',JSON[_0x39f9ab(0x1c3)](_0xbb90c6);}catch{return _0x23bc93=_0xbb90c6,null;}})[_0x1e7e58(0x1c8)](_0x58d996=>null!==_0x58d996);_0xf43241[_0x1e7e58(0x1bf)]&&(_0x55749c+=_0xf43241[_0x1e7e58(0x1aa)](_0x226d3f=>this[_0x1e7e58(0x17c)](_0x226d3f,_0x5a224c))[_0x1e7e58(0x1c9)](''),_0x306b07(_0x55749c));}return Promise[_0x1e7e58(0x17b)]();}async[_0x344772(0x18e)](_0x168d34,_0x138264,_0x5f238b){const _0xb16a92=_0x344772;let _0x9b9396;return _0x9b9396=_0x168d34 instanceof Response?await _0x168d34[_0xb16a92(0x1c5)]():JSON[_0xb16a92(0x1c3)](new TextDecoder(_0xb16a92(0x1b4))[_0xb16a92(0x18c)](_0x168d34[_0xb16a92(0x1b1)])),(_0x5f238b(this[_0xb16a92(0x17c)](_0x9b9396,_0x138264)),Promise[_0xb16a92(0x17b)]());}[_0x344772(0x17c)](_0x20891f,_0x3d033b){const _0x20b740=_0x344772;switch(this[_0x20b740(0x17e)](_0x3d033b)){case _0x20b740(0x1c7):return _0x20891f[_0x20b740(0x1ac)];case _0x20b740(0x1b3):return _0x20891f[_0x20b740(0x1a0)][0x0][_0x20b740(0x1a6)][_0x20b740(0x17a)];case _0x20b740(0x19f):return _0x20891f[_0x20b740(0x1ab)][0x0][_0x20b740(0x17a)];case _0x20b740(0x1a1):return _0x20891f[_0x20b740(0x19b)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3369(){const _0x5e7632=['AI_ERROR_MODERATION','reject','join','pluginName','delta','text','678852OREDGY','4702491CSHCZh','_isBufferIncomplete','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_cleanUpData','sendRequest','resolve','ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','config','3730688gVgAaE','1515yCaTIU','ai.assistant.adapter.openAI.requestParameters','signal','5164epwUYX','split','context_length_exceeded','6ZxocFu','Moderation','includes','Instruction:\x0a','POST','replace','body','getReader','7mLUDRl','decode','length','_requestHeaders','13047670ELAeOw','stream','_prepareRequestHeaders','OpenAITextAdapter','map','message','parse','prepareMessages','[DONE]','_requestParameters','stringify','AI_ERROR_CONTEXT_LENGTH','186065yKNuae','_apiUrl','gpt-4o','system','data:\x20','user','json','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','get','define','ai.assistant.adapter.openAI.requestHeaders','_prepareRequestParameters','locale','read','1514418fHoYFV','_readStreamableResponse','filter','content','_readStaticResponse','abortController','choices','editor'];_0x3369=function(){return _0x5e7632;};return _0x3369();}const _0x129ec5=_0x2982;(function(_0x3e444c,_0x7996de){const _0x2fba83=_0x2982,_0x4796fe=_0x3e444c();while(!![]){try{const _0x51148c=parseInt(_0x2fba83(0x18f))/0x1+parseInt(_0x2fba83(0x177))/0x2*(parseInt(_0x2fba83(0x1ab))/0x3)+parseInt(_0x2fba83(0x174))/0x4*(-parseInt(_0x2fba83(0x1b7))/0x5)+parseInt(_0x2fba83(0x19d))/0x6*(parseInt(_0x2fba83(0x17f))/0x7)+parseInt(_0x2fba83(0x1b6))/0x8+parseInt(_0x2fba83(0x1ac))/0x9+-parseInt(_0x2fba83(0x183))/0xa;if(_0x51148c===_0x7996de)break;else _0x4796fe['push'](_0x4796fe['shift']());}catch(_0x5473bd){_0x4796fe['push'](_0x4796fe['shift']());}}}(_0x3369,0x64267));function _0x2982(_0x1d27fb,_0x5111ba){const _0x336944=_0x3369();return _0x2982=function(_0x2982aa,_0x53c92d){_0x2982aa=_0x2982aa-0x173;let _0x37da96=_0x336944[_0x2982aa];return _0x37da96;},_0x2982(_0x1d27fb,_0x5111ba);}import{AITextAdapter as _0x565ad2}from'./aitextadapter.js';import{AIRequestError as _0x472507}from'./aiadapter.js';import{getTranslation as _0x48c0d2}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x565ad2{[_0x129ec5(0x190)];[_0x129ec5(0x182)];[_0x129ec5(0x18c)];static get[_0x129ec5(0x1a8)](){const _0x35b304=_0x129ec5;return _0x35b304(0x186);}constructor(_0x49e975){const _0x40f5a4=_0x129ec5;super(_0x49e975),_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x198)](_0x40f5a4(0x1b2),_0x40f5a4(0x1b3)),_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x1b8))||_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x198)](_0x40f5a4(0x1b8),{'model':_0x40f5a4(0x191),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x40f5a4(0x190)]=_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x1b2)),this[_0x40f5a4(0x182)]=_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x199))||{},this[_0x40f5a4(0x18c)]=_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x1b8));}async[_0x129ec5(0x1b0)]({query:_0x5c219b,context:_0x18d1e7,onData:_0x17b54f,actionId:_0x300d2b}){const _0x46dff1=_0x129ec5,_0x50e6ac=this[_0x46dff1(0x1a4)][_0x46dff1(0x19b)],_0x5daa74=await this[_0x46dff1(0x18a)](_0x5c219b,_0x18d1e7,_0x300d2b),_0x466acf=await this[_0x46dff1(0x185)](this[_0x46dff1(0x182)],_0x300d2b),_0x506628=await this[_0x46dff1(0x19a)](this[_0x46dff1(0x18c)],_0x300d2b),_0x4a6274={'messages':_0x5daa74,..._0x506628},_0x4db96c={'method':_0x46dff1(0x17b),'headers':_0x466acf,'body':JSON[_0x46dff1(0x18d)](_0x4a6274),'signal':this[_0x46dff1(0x1a2)][_0x46dff1(0x173)]},_0x27ed4e=await fetch(this[_0x46dff1(0x190)],_0x4db96c);if(_0x27ed4e['ok'])return _0x506628[_0x46dff1(0x184)]?await this[_0x46dff1(0x19e)](_0x27ed4e,_0x17b54f):await this[_0x46dff1(0x1a1)](_0x27ed4e,_0x17b54f),Promise[_0x46dff1(0x1b1)]();{const _0x1b2956=await _0x27ed4e[_0x46dff1(0x1aa)]();return _0x1b2956[_0x46dff1(0x179)](_0x46dff1(0x176))?Promise[_0x46dff1(0x1a6)](new _0x472507(_0x48c0d2(_0x50e6ac,_0x46dff1(0x18e)))):_0x1b2956[_0x46dff1(0x179)](_0x46dff1(0x178))?Promise[_0x46dff1(0x1a6)](new _0x472507(_0x48c0d2(_0x50e6ac,_0x46dff1(0x1a5)))):Promise[_0x46dff1(0x1a6)](new Error(_0x1b2956));}}async[_0x129ec5(0x18a)](_0x213550,_0x577ebd,_0x309144){const _0x282b02=_0x129ec5;let _0x42ea7a,_0x46fdbc;return _0x577ebd?(_0x42ea7a=_0x282b02(0x196),_0x46fdbc=_0x282b02(0x17a)+_0x213550+_0x282b02(0x1b4)+_0x577ebd):(_0x42ea7a=_0x282b02(0x1ae),_0x46fdbc=_0x213550),[{'role':_0x282b02(0x192),'content':_0x42ea7a},{'role':_0x282b02(0x194),'content':_0x46fdbc}];}async[_0x129ec5(0x19e)](_0x291738,_0x1e37f5){const _0x1ebf60=_0x129ec5,_0x53dd75=_0x291738[_0x1ebf60(0x17d)][_0x1ebf60(0x17e)](),_0x3b1d4f=new TextDecoder();let _0x1a0933='',_0x178107='',_0x52f3b6='',_0x1e1667=!0x1;for(;!_0x1e1667;){const {done:_0x432051,value:_0x48daff}=await _0x53dd75[_0x1ebf60(0x19c)](),_0x52f231=_0x1a0933+_0x3b1d4f[_0x1ebf60(0x180)](_0x48daff);let _0x27c8b9='';_0x1e1667=_0x432051;try{_0x27c8b9=this[_0x1ebf60(0x1af)](_0x52f231),_0x1a0933='';}catch{_0x1a0933=_0x52f231;continue;}_0x178107+=_0x27c8b9,!_0x1e1667&&this[_0x1ebf60(0x1ad)](_0x178107)||_0x178107&&(_0x52f3b6+=_0x178107,_0x178107='',_0x1e37f5(_0x52f3b6));}return Promise[_0x1ebf60(0x1b1)]();}async[_0x129ec5(0x1a1)](_0x25b1c1,_0x5be7bc){const _0x405fc4=_0x129ec5;return _0x5be7bc((await _0x25b1c1[_0x405fc4(0x195)]())[_0x405fc4(0x1a3)][0x0][_0x405fc4(0x188)][_0x405fc4(0x1a0)]),Promise[_0x405fc4(0x1b1)]();}[_0x129ec5(0x1ad)](_0x130b9a){const _0x3e5c91=_0x129ec5,_0x4295dc=_0x130b9a[_0x3e5c91(0x175)]('<')[_0x3e5c91(0x181)]!==_0x130b9a[_0x3e5c91(0x175)]('>')[_0x3e5c91(0x181)],_0x5b33b0=_0x130b9a[_0x3e5c91(0x181)]<0x1e;return _0x4295dc&&_0x5b33b0;}[_0x129ec5(0x1af)](_0x4779d3){const _0x4ad206=_0x129ec5;return _0x4779d3[_0x4ad206(0x175)](/\n(?![^{]*\})/g)[_0x4ad206(0x187)](_0x511806=>_0x511806[_0x4ad206(0x17c)](_0x4ad206(0x193),''))[_0x4ad206(0x19f)](_0x56e5c1=>_0x56e5c1&&_0x56e5c1[_0x4ad206(0x181)]>0x0&&_0x4ad206(0x18b)!==_0x56e5c1)[_0x4ad206(0x187)](_0x3b66ec=>{const _0x494e32=_0x4ad206,{choices:_0x5b5b5f}=JSON[_0x494e32(0x189)](_0x3b66ec);if(_0x5b5b5f[0x0]?.[_0x494e32(0x1a9)]?.[_0x494e32(0x1a0)])return _0x5b5b5f[0x0][_0x494e32(0x1a9)][_0x494e32(0x1a0)];})[_0x4ad206(0x19f)](_0x382c5f=>_0x382c5f)[_0x4ad206(0x1a7)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e0703=_0x5443;function _0x1047(){const _0xf90f49=['AIAssistant','ai.assistant.commands','professional','Simplify\x20language','set','192669ubgYbR','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateHindi','find','12764qVdJDV','ai.assistant.preserveComments','translatePortuguese','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Change\x20style','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Professional','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai.assistant.extraCommandGroups','poetic','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','120484fReTSl','includes','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Casual','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','journalism','push','Portuguese','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','18pqLyTX','Change\x20tone','Direct','isOfficialPlugin','makeShorter','confident','Translate\x20the\x20content\x20to\x20English\x20language.','translateGerman','Poetic','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Hindi','requires','19114huLZGD','Arabic','Spanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','88uCtdaR','translateChinese','summarize','continue','Make\x20longer','direct','Friendly','changeStyle','10xUpBHg','English','Summarize','German','changeTone','Translate\x20the\x20content\x20to\x20Hindi\x20language.','isPremiumPlugin','Simplified\x20Chinese','Continue','groupId','Legal','ai.assistant.removeCommands','translate','Edit\x20or\x20review','translateFrench','get','Make\x20shorter','984bLYhcK','105QtBZCU','filter','improveWriting','Translate','translateEnglish','casual','Journalism','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','makeLonger','commands','editOrReview','French','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','business','Confident','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','315306sVSXJU','concat','forEach','locale','translateArabic','friendly','Generate\x20from\x20selection','simplifyLanguage','Improve\x20writing','generate','pluginName','define','Business','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','78kswyVI','legal','353857BmgCQA','Translate\x20the\x20content\x20to\x20German\x20language.','729377mEZtsg','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','config','translateSpanish'];_0x1047=function(){return _0xf90f49;};return _0x1047();}(function(_0x4f7be3,_0x4839ca){const _0x3ab4c3=_0x5443,_0x23a727=_0x4f7be3();while(!![]){try{const _0x33f84c=parseInt(_0x3ab4c3(0x14d))/0x1+-parseInt(_0x3ab4c3(0x176))/0x2*(-parseInt(_0x3ab4c3(0x140))/0x3)+parseInt(_0x3ab4c3(0x152))/0x4*(-parseInt(_0x3ab4c3(0x122))/0x5)+-parseInt(_0x3ab4c3(0x16a))/0x6*(-parseInt(_0x3ab4c3(0x142))/0x7)+parseInt(_0x3ab4c3(0x17a))/0x8*(parseInt(_0x3ab4c3(0x132))/0x9)+parseInt(_0x3ab4c3(0x182))/0xa*(parseInt(_0x3ab4c3(0x144))/0xb)+parseInt(_0x3ab4c3(0x121))/0xc*(-parseInt(_0x3ab4c3(0x161))/0xd);if(_0x33f84c===_0x4839ca)break;else _0x23a727['push'](_0x23a727['shift']());}catch(_0x3b03fd){_0x23a727['push'](_0x23a727['shift']());}}}(_0x1047,0x3519a));import{Plugin as _0x292e46}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x7d0722}from'./aiassistantui.js';function _0x5443(_0x4b131e,_0xc38fbd){const _0x1047f4=_0x1047();return _0x5443=function(_0x54433f,_0x3b70e8){_0x54433f=_0x54433f-0x117;let _0x436fc0=_0x1047f4[_0x54433f];return _0x436fc0;},_0x5443(_0x4b131e,_0xc38fbd);}import{AIAssistantEditing as _0x18698e}from'./aiassistantediting.js';import{getTranslation as _0x51e3df}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x2cd5ef}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x292e46{static get[_0x3e0703(0x175)](){return[_0x7d0722,_0x18698e];}static get[_0x3e0703(0x13c)](){const _0x1c4d4b=_0x3e0703;return _0x1c4d4b(0x148);}static get[_0x3e0703(0x16d)](){return!0x0;}static get[_0x3e0703(0x188)](){return!0x0;}constructor(_0x42a113){const _0x83f405=_0x3e0703;super(_0x42a113);const _0x27691f=_0x42a113[_0x83f405(0x146)],_0x11e03f=_0x42a113[_0x83f405(0x135)];_0x27691f[_0x83f405(0x13d)](_0x83f405(0x153),!0x0),_0x27691f[_0x83f405(0x13d)](_0x83f405(0x149),getDefaultAICommands(_0x11e03f)),_0x27691f[_0x83f405(0x13d)](_0x83f405(0x15e),[]),_0x27691f[_0x83f405(0x13d)](_0x83f405(0x11b),[]);let _0x6416b0=_0x2cd5ef(_0x27691f[_0x83f405(0x11f)](_0x83f405(0x149)),_0x11e03f);const _0x43915b=_0x27691f[_0x83f405(0x11f)](_0x83f405(0x15e)),_0xc15ae0=_0x27691f[_0x83f405(0x11f)](_0x83f405(0x11b));_0x43915b[_0x83f405(0x134)](_0x250664=>{const _0xa84d19=_0x83f405,_0x55104c=_0x6416b0[_0xa84d19(0x151)](_0x1235b1=>_0x1235b1[_0xa84d19(0x119)]===_0x250664[_0xa84d19(0x119)]);_0x55104c?_0x55104c[_0xa84d19(0x12b)]=_0x55104c[_0xa84d19(0x12b)][_0xa84d19(0x133)](_0x250664[_0xa84d19(0x12b)]):_0x6416b0[_0xa84d19(0x167)](_0x250664);}),_0x6416b0=_0x6416b0[_0x83f405(0x123)](_0x18b0b=>!_0xc15ae0[_0x83f405(0x162)](_0x18b0b[_0x83f405(0x119)])),_0x6416b0[_0x83f405(0x134)](_0x16dfbb=>{const _0x112612=_0x83f405;_0x16dfbb[_0x112612(0x12b)]=_0x16dfbb[_0x112612(0x12b)][_0x112612(0x123)](_0x3f85bb=>!_0xc15ae0[_0x112612(0x162)](_0x3f85bb['id']));}),_0x27691f[_0x83f405(0x14c)](_0x83f405(0x149),_0x6416b0);}}export function getDefaultAICommands(_0x1a33e4){const _0x441869=_0x3e0703;return[{'groupId':_0x441869(0x12c),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x11d)),'commands':[{'id':_0x441869(0x124),'label':_0x51e3df(_0x1a33e4,_0x441869(0x13a)),'prompt':_0x441869(0x159)},{'id':_0x441869(0x16e),'label':_0x51e3df(_0x1a33e4,_0x441869(0x120)),'prompt':_0x441869(0x131)},{'id':_0x441869(0x12a),'label':_0x51e3df(_0x1a33e4,_0x441869(0x17e)),'prompt':_0x441869(0x13f)},{'id':_0x441869(0x139),'label':_0x51e3df(_0x1a33e4,_0x441869(0x14b)),'prompt':_0x441869(0x14e)}]},{'groupId':_0x441869(0x13b),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x138)),'commands':[{'id':_0x441869(0x17c),'label':_0x51e3df(_0x1a33e4,_0x441869(0x184)),'prompt':_0x441869(0x158)},{'id':_0x441869(0x17d),'label':_0x51e3df(_0x1a33e4,_0x441869(0x118)),'prompt':_0x441869(0x163)}]},{'groupId':_0x441869(0x186),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x16b)),'commands':[{'id':_0x441869(0x14a),'label':_0x51e3df(_0x1a33e4,_0x441869(0x15a)),'prompt':_0x441869(0x129)},{'id':_0x441869(0x127),'label':_0x51e3df(_0x1a33e4,_0x441869(0x164)),'prompt':_0x441869(0x160)},{'id':_0x441869(0x17f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x16c)),'prompt':_0x441869(0x12e)},{'id':_0x441869(0x16f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x130)),'prompt':_0x441869(0x179)},{'id':_0x441869(0x137),'label':_0x51e3df(_0x1a33e4,_0x441869(0x180)),'prompt':_0x441869(0x165)}]},{'groupId':_0x441869(0x181),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x157)),'commands':[{'id':_0x441869(0x12f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x13e)),'prompt':_0x441869(0x14f)},{'id':_0x441869(0x141),'label':_0x51e3df(_0x1a33e4,_0x441869(0x11a)),'prompt':_0x441869(0x15d)},{'id':_0x441869(0x166),'label':_0x51e3df(_0x1a33e4,_0x441869(0x128)),'prompt':_0x441869(0x145)},{'id':_0x441869(0x15f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x172)),'prompt':_0x441869(0x169)}]},{'groupId':_0x441869(0x11c),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x125)),'commands':[{'id':_0x441869(0x126),'label':_0x51e3df(_0x1a33e4,_0x441869(0x183)),'prompt':_0x441869(0x170)},{'id':_0x441869(0x147),'label':_0x51e3df(_0x1a33e4,_0x441869(0x178)),'prompt':_0x441869(0x155)},{'id':_0x441869(0x154),'label':_0x51e3df(_0x1a33e4,_0x441869(0x168)),'prompt':_0x441869(0x156)},{'id':_0x441869(0x171),'label':_0x51e3df(_0x1a33e4,_0x441869(0x185)),'prompt':_0x441869(0x143)},{'id':_0x441869(0x11e),'label':_0x51e3df(_0x1a33e4,_0x441869(0x12d)),'prompt':_0x441869(0x15b)},{'id':_0x441869(0x17b),'label':_0x51e3df(_0x1a33e4,_0x441869(0x117)),'prompt':_0x441869(0x15c)},{'id':_0x441869(0x150),'label':_0x51e3df(_0x1a33e4,_0x441869(0x174)),'prompt':_0x441869(0x187)},{'id':_0x441869(0x136),'label':_0x51e3df(_0x1a33e4,_0x441869(0x177)),'prompt':_0x441869(0x173)}]}];}
|