@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.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.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/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/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x37b474=_0x2e00;(function(_0x1de954,_0x2133e0){const _0x2c87c4=_0x2e00,_0x140d56=_0x1de954();while(!![]){try{const _0x22941a=-parseInt(_0x2c87c4(0x24c))/0x1*(-parseInt(_0x2c87c4(0x28b))/0x2)+parseInt(_0x2c87c4(0x2a0))/0x3+-parseInt(_0x2c87c4(0x29c))/0x4*(-parseInt(_0x2c87c4(0x278))/0x5)+parseInt(_0x2c87c4(0x25d))/0x6*(-parseInt(_0x2c87c4(0x2a8))/0x7)+-parseInt(_0x2c87c4(0x1d6))/0x8*(-parseInt(_0x2c87c4(0x292))/0x9)+-parseInt(_0x2c87c4(0x236))/0xa*(-parseInt(_0x2c87c4(0x29d))/0xb)+-parseInt(_0x2c87c4(0x1fa))/0xc;if(_0x22941a===_0x2133e0)break;else _0x140d56['push'](_0x140d56['shift']());}catch(_0x24d377){_0x140d56['push'](_0x140d56['shift']());}}}(_0x2ea2,0x2b2a5));import{Plugin as _0x5f3f4b}from'ckeditor5/src/core.js';function _0x2e00(_0xa52712,_0x1c7bc1){const _0x2ea20e=_0x2ea2();return _0x2e00=function(_0x2e00e9,_0x285eb8){_0x2e00e9=_0x2e00e9-0x1d5;let _0x3d8207=_0x2ea20e[_0x2e00e9];return _0x3d8207;},_0x2e00(_0xa52712,_0x1c7bc1);}import{AIConnector as _0x619395}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x231b7b}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3bb786,ButtonView as _0x48a1e8,ViewCollection as _0x23e3f0,View as _0xa56c91}from'ckeditor5/src/ui.js';import{AIEditing as _0x3a5f7d}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x15d36a}from'./model/aiactionsinteraction.js';import{first as _0x5c625d}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xcf4659,IconRefresh as _0x5f1450,IconNextArrow as _0xaa83ac,IconPreviousArrow as _0x45c75f,IconShowChangesOff as _0x14c239}from'@ckeditor/ckeditor5-icons';function _0x2ea2(){const _0x1c886c=['14JZwoBK','getChildAtOffset','howMany','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','startsWith','getRanges','_refreshInteraction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','getChild','nodeAfter','requires','upsertCustomAIActionRating','push','setChangeGroupState','locale','19976tfVbEF','_clone','_displayInteractionAtIndex','close','stopListening','AIActions','getAncestors','operationsA','clearErrorState','stopInteraction','isOfficialPlugin','set','_navigationNextButton','_clearSuggestionContent','createPositionAt','ck-ai-custom-action-button','_clearLoadingState','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getSelectionAsFragment','areChangesVisible','miniToolbarView','getSelectedTableCells','showChangesButton','_setLoadingState','get','batch','first','ck-ai-navigation-button\x20ck-ai-next-button','abort','error','document','showError','ck-ai-navigation-button\x20ck-ai-previous-button','documentFragment','pluginName','_anchorOperation','3777264TeDFEX','_updateNavigationUI','interactionFinished','replyChangeGroupStateUpdated','pending','getCommonAncestor','execute','catch','applySuggestion','indexOf','AIBalloon','getSelectedContent','AI_ACTIONS_PREVIOUS_INTERACTION','static','icon','remove','end','merge','mainView','setSelection','changeGroups','_children','AI_ACTIONS_GENERIC_ERROR','upsertAIActionRating','bind','replyCreated','documentContextContent','has','isCollapsed','Error\x20refreshing\x20interaction:','getOperations','toggleSuggestionDisplayMode','filter','length','setTemplate','element','range','Error\x20updating\x20content\x20in\x20replyCreated:','_execute','model','_setupCustomViews','_setErrorState','path','_getExecuteDataRegular','dialogClosed','_appendChild','_createInteraction','updateContent','$graveyard','1/1','parent','signal','message','Attribute','start','slice','hasPendingParts','span','selection','createPositionBefore','10JndjbL','actionCallId','toolbar','aiBalloon','_applyOperationsAsSuggestions','change','_navigateToPrevious','addOperation','_clearErrorState','_interactions','position','getRoot','isBusy','_aiConnector','insert','map','_currentInteractionIndex','focus','_interactionParams','hideError','getLimitElement','createPositionAfter','353179BMhhRY','isDocumentOperation','_navigationCounter','_clearInteractionHistory','_navigateToNext','isPremiumPlugin','baseVersion','move','textContent','state','split','includes','open','setErrorState','toData','clearLoading','applyOperation','973338XJkPmn','queueEmptyPromise','clone','nextSibling','_isNavigationNextButtonInView','getDocumentContext','AI_ACTIONS_NEXT_INTERACTION','rename','enqueue','_filterOperationsOutsideRange','showLoader','bodyView','stickiness','getFirstRange','ck-ai-interaction-counter','root','TableSelection','Error\x20updating\x20content\x20during\x20navigation:','editor','replyContentUpdated','_isAbortError','streaming','type','_promiseQueue','data','processor','_applyChanges','5EIWeMu','random','createRange','balloonView','setLoading','schema','add','addNavigationItem','_customViews','replies','_isNavigationPreviousButtonInView','_wrapWithCommonAncestors','isLoading','stop','rejected','AIConnector','_getExecuteDataInTable','hideLoader','sourcePosition','2NGBAtv','_navigationPreviousButton','executeAction','isEnabled','plugins','rootName','hasError','279kUFaPu','reinsert','_isNavigationCounterInView','actionName','history','_interaction','getSelectedBlocks','ai-request-aborted','AI_ACTIONS_TRY_AGAIN','version','46120daSxfK','2761495NmfqQp','TrackChangesEditing','_executeAction','368586KYYiIw','modelToViewWithIds','insertSuggestion','_balloonShowDiff','accepted','_stopInteraction','listenTo','removeNavigationItem'];_0x2ea2=function(){return _0x1c886c;};return _0x2ea2();}import{AIBalloon as _0x5d2518}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x225b5f}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5b224f}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x1221a4}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1e4bd2}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1658d3}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x51bb6e,ModelRange as _0x3e478d,ModelPosition as _0x37893e,_DetachOperation as _0x40c249,transformOperationSets as _0xc766e8}from'ckeditor5/src/engine.js';export class AIActions extends _0x5f3f4b{static get[_0x37b474(0x2b2)](){return[_0x619395,_0x3bb786,_0x3a5f7d,_0x5d2518,_0x1e4bd2];}static get[_0x37b474(0x1f8)](){const _0x5731f1=_0x37b474;return _0x5731f1(0x1db);}static get[_0x37b474(0x1e0)](){return!0x0;}static get[_0x37b474(0x251)](){return!0x0;}[_0x37b474(0x243)];[_0x37b474(0x23f)]=[];[_0x37b474(0x246)]=0x0;[_0x37b474(0x248)];[_0x37b474(0x2a3)]=!0x1;[_0x37b474(0x280)]=new _0x23e3f0();[_0x37b474(0x28c)];[_0x37b474(0x24e)];[_0x37b474(0x294)]=!0x1;[_0x37b474(0x1e2)];[_0x37b474(0x282)]=!0x1;[_0x37b474(0x261)]=!0x1;[_0x37b474(0x274)];get[_0x37b474(0x297)](){const _0x34a70f=_0x37b474;return this[_0x34a70f(0x23f)][this[_0x34a70f(0x23f)][_0x34a70f(0x21b)]-0x1];}constructor(_0x4f8f0c){const _0x264e76=_0x37b474;super(_0x4f8f0c),this[_0x264e76(0x243)]=this[_0x264e76(0x26f)][_0x264e76(0x28f)][_0x264e76(0x1ee)](_0x264e76(0x287)),this[_0x264e76(0x1e1)](_0x264e76(0x242),!0x1),this[_0x264e76(0x274)]=new _0x225b5f(),this[_0x264e76(0x222)]();}[_0x37b474(0x1df)](){const _0x1a0a07=_0x37b474;this[_0x1a0a07(0x2a5)]();}async[_0x37b474(0x28d)](_0xaa02b4,_0x4ee68c,_0xd987ef){const _0x42800e=_0x37b474;if(this[_0x42800e(0x26f)][_0x42800e(0x28f)][_0x42800e(0x215)](_0x42800e(0x26d))){if(this[_0x42800e(0x26f)][_0x42800e(0x28f)][_0x42800e(0x1ee)](_0x42800e(0x26d))[_0x42800e(0x1eb)]()){const {modelFragment:_0x16e59e,anchorData:_0x1c5530}=this[_0x42800e(0x288)]();return this[_0x42800e(0x29f)](_0xaa02b4,_0x16e59e,_0x1c5530,_0x4ee68c,_0xd987ef);}}const {modelFragment:_0x3a8ae7,anchorData:_0x1341a3}=this[_0x42800e(0x225)]();return this[_0x42800e(0x29f)](_0xaa02b4,_0x3a8ae7,_0x1341a3,_0x4ee68c,_0xd987ef);}[_0x37b474(0x225)](){const _0x4cbe78=_0x37b474,_0x5b3fcf=this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x1f4)][_0x4cbe78(0x234)];if(_0x5b3fcf[_0x4cbe78(0x216)]){const _0x5b26e7=_0x5c625d(_0x5b3fcf[_0x4cbe78(0x298)]())||this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x27d)][_0x4cbe78(0x24a)](_0x5b3fcf);this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x23b)](_0x1d4b54=>{const _0x9cdfbd=_0x4cbe78;_0x1d4b54[_0x9cdfbd(0x20d)](_0x5b26e7,'in');});}const _0x48240f=_0x5b3fcf[_0x4cbe78(0x26a)](),_0x49a9b2=this[_0x4cbe78(0x283)](this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x205)](_0x5b3fcf),_0x48240f[_0x4cbe78(0x230)],_0x48240f[_0x4cbe78(0x20a)]),_0x462e9a=_0x5b3fcf[_0x4cbe78(0x26a)]()[_0x4cbe78(0x230)],_0x41046f=new Map();let _0x406369=_0x49a9b2;for(let _0x1cce72=0x0;_0x1cce72<_0x462e9a[_0x4cbe78(0x224)][_0x4cbe78(0x21b)];_0x1cce72++)_0x41046f[_0x4cbe78(0x1e1)](_0x406369,_0x462e9a[_0x4cbe78(0x224)][_0x1cce72]),_0x406369=_0x406369[_0x4cbe78(0x2b0)](0x0);return{'modelFragment':_0x49a9b2,'anchorData':_0x41046f};}[_0x37b474(0x288)](){const _0x1f0d94=_0x37b474,_0x27d78b=this[_0x1f0d94(0x26f)][_0x1f0d94(0x221)][_0x1f0d94(0x1f4)][_0x1f0d94(0x234)],_0x183c1e=this[_0x1f0d94(0x26f)][_0x1f0d94(0x28f)][_0x1f0d94(0x1ee)](_0x1f0d94(0x26d))[_0x1f0d94(0x1e8)](),_0x2e42f9=_0x27d78b[_0x1f0d94(0x26a)]()[_0x1f0d94(0x230)][_0x1f0d94(0x22c)][_0x1f0d94(0x22c)],_0x394e61=this[_0x1f0d94(0x283)](_0x183c1e,this[_0x1f0d94(0x26f)][_0x1f0d94(0x221)][_0x1f0d94(0x235)](_0x2e42f9),this[_0x1f0d94(0x26f)][_0x1f0d94(0x221)][_0x1f0d94(0x24b)](_0x2e42f9)),_0x53523c=_0x27d78b[_0x1f0d94(0x26a)]()[_0x1f0d94(0x230)],_0x1e936c=new Map();let _0x52d377=_0x394e61;for(let _0x210976=0x0;_0x210976<_0x53523c[_0x1f0d94(0x224)][_0x1f0d94(0x21b)];_0x210976++)if(_0x1e936c[_0x1f0d94(0x1e1)](_0x52d377,_0x53523c[_0x1f0d94(0x224)][_0x210976]),_0x210976<_0x53523c[_0x1f0d94(0x224)][_0x1f0d94(0x21b)]-0x1)_0x52d377=_0x52d377[_0x1f0d94(0x2b0)](0x0);else{let _0x45caab=_0x52d377[_0x1f0d94(0x260)];for(;_0x45caab;)_0x1e936c[_0x1f0d94(0x1e1)](_0x45caab,_0x53523c[_0x1f0d94(0x224)][_0x210976]),_0x45caab=_0x45caab[_0x1f0d94(0x260)];}return{'modelFragment':_0x394e61,'anchorData':_0x1e936c};}[_0x37b474(0x29f)](_0x1af417,_0x1e28e5,_0x2317b9,_0x2574eb,_0x18c740){const _0x59b114=_0x37b474,_0x3b6d9c=this[_0x59b114(0x26f)][_0x59b114(0x28f)][_0x59b114(0x1ee)](_0x3a5f7d),_0x1f11e1=this[_0x59b114(0x26f)][_0x59b114(0x28f)][_0x59b114(0x1ee)](_0x5d2518),_0x2fc47c=this[_0x59b114(0x26f)][_0x59b114(0x221)][_0x59b114(0x1f4)][_0x59b114(0x234)],_0x35193c=_0x3b6d9c[_0x59b114(0x2a1)](_0x1e28e5),_0x41db83=this[_0x59b114(0x26f)][_0x59b114(0x275)][_0x59b114(0x276)][_0x59b114(0x25a)](_0x35193c),_0x32abd5=this[_0x59b114(0x26f)][_0x59b114(0x221)][_0x59b114(0x1f4)][_0x59b114(0x29b)],_0x2ced28=[..._0x2fc47c[_0x59b114(0x2ad)]()],_0x3ac320=new _0x231b7b(this[_0x59b114(0x26f)][_0x59b114(0x1d5)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x59b114(0x208),'customView':this[_0x59b114(0x280)]},'showUnchangedParts':!0x0});return _0x1f11e1[_0x59b114(0x258)]({'index':0x3e8*Math[_0x59b114(0x279)]()%0x3e8,'title':_0x2574eb,'icon':_0x18c740||_0xcf4659,'mainView':_0x3ac320,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x2ced28}),this[_0x59b114(0x1ed)](_0x3ac320,_0x1f11e1),this[_0x59b114(0x2a6)](_0x1f11e1,_0x59b114(0x202),()=>{const _0x1b3118=_0x59b114;this[_0x1b3118(0x277)](_0x1e28e5,_0x2317b9,!0x1);}),this[_0x59b114(0x2a6)](_0x1f11e1,_0x59b114(0x2a2),()=>{const _0x232342=_0x59b114;this[_0x232342(0x277)](_0x1e28e5,_0x2317b9,!0x0);}),this[_0x59b114(0x2a6)](_0x1f11e1,_0x59b114(0x226),()=>{const _0x177a35=_0x59b114;if(this[_0x177a35(0x297)]&&this[_0x177a35(0x297)][_0x177a35(0x281)][_0x177a35(0x21b)]>0x0){const _0x5362df=this[_0x177a35(0x297)][_0x177a35(0x281)][this[_0x177a35(0x297)][_0x177a35(0x281)][_0x177a35(0x21b)]-0x1],_0x386919=_0x5362df[_0x177a35(0x20e)][0x0];_0x386919&&_0x177a35(0x1fe)===_0x386919[_0x177a35(0x255)]&&_0x5362df[_0x177a35(0x2b5)](0x0,_0x177a35(0x286));}this[_0x177a35(0x2a5)](),this[_0x177a35(0x24f)](),this[_0x177a35(0x1da)](_0x1f11e1);}),this[_0x59b114(0x228)](_0x41db83,_0x32abd5,_0x3ac320,_0x1f11e1,_0x1af417);}[_0x37b474(0x283)](_0x1133bd,_0x1043b0,_0x5bfadd){const _0x487c94=_0x37b474,_0x5bc382=this[_0x487c94(0x26f)][_0x487c94(0x221)][_0x487c94(0x27a)](_0x1043b0,_0x5bfadd)[_0x487c94(0x1ff)](),_0x58cc06=_0x5bc382['is'](_0x487c94(0x1f7))?[]:_0x5bc382[_0x487c94(0x1dc)]({'includeSelf':!0x0})[_0x487c94(0x231)](0x1);if(_0x58cc06[_0x487c94(0x21b)]){const _0x3ee6fc=_0x58cc06[_0x487c94(0x245)](_0x123828=>_0x123828[_0x487c94(0x1d7)](!0x1));for(let _0x3faf25=0x1;_0x3faf25<_0x3ee6fc[_0x487c94(0x21b)];_0x3faf25++)_0x3ee6fc[_0x3faf25-0x1][_0x487c94(0x227)](_0x3ee6fc[_0x3faf25]);return _0x3ee6fc[_0x3ee6fc[_0x487c94(0x21b)]-0x1][_0x487c94(0x227)](_0x1133bd),new _0x51bb6e(_0x3ee6fc[0x0]);}return _0x1133bd;}async[_0x37b474(0x228)](_0x29be2c,_0x416a19,_0x3e40bb,_0xf66160,_0x693c04){const _0x39c2e2=_0x37b474,_0x4802c2=this[_0x39c2e2(0x26f)];this[_0x39c2e2(0x248)]={'action':_0x693c04,'content':_0x29be2c,'version':_0x416a19,'mainView':_0x3e40bb,'aiBalloon':_0xf66160};const _0x215ff2=new _0x15d36a({'connector':this[_0x39c2e2(0x243)],'editor':_0x4802c2,'content':_0x29be2c,'version':_0x416a19,..._0x693c04});this[_0x39c2e2(0x23f)][_0x39c2e2(0x2b4)](_0x215ff2),_0x3e40bb[_0x39c2e2(0x249)]();const _0x3ee793=(_0x40d4fe,_0x266ce1,_0x123e60=!0x1,_0x2aed0d=_0x39c2e2(0x272))=>this[_0x39c2e2(0x274)][_0x39c2e2(0x265)](async _0x1ff480=>{const _0x5aae4b=_0x39c2e2;try{const _0x3156d8=_0x1221a4({'editor':_0x4802c2,'changeGroups':_0x40d4fe[_0x5aae4b(0x20e)],'documentContextContent':_0x40d4fe[_0x5aae4b(0x214)],'showDiff':_0x123e60,'trimUnchanged':!0x1});await _0x266ce1[_0x5aae4b(0x229)]({'parts':_0x3156d8,'renderingStrategy':_0x2aed0d,'abortSignal':_0x1ff480});}catch(_0x44c104){if(this[_0x5aae4b(0x271)](_0x44c104))return;throw _0x44c104;}});this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x213),(_0x467942,_0x5cc763)=>{const _0x1538f7=_0x39c2e2;_0x3e40bb[_0x1538f7(0x289)](),_0x3ee793(_0x5cc763,_0x3e40bb)[_0x1538f7(0x201)](_0x22c26b=>{const _0x5b81f0=_0x1538f7;this[_0x5b81f0(0x271)](_0x22c26b)||(console[_0x5b81f0(0x1f3)](_0x5b81f0(0x21f),_0x22c26b),this[_0x5b81f0(0x223)](_0x215ff2,_0x3e40bb));});}),this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x270),(_0x29129a,_0x21c615)=>{const _0x9cf676=_0x39c2e2;_0x3ee793(_0x21c615,_0x3e40bb)[_0x9cf676(0x201)](_0x45e07f=>{const _0x587074=_0x9cf676;this[_0x587074(0x271)](_0x45e07f)||(console[_0x587074(0x1f3)](_0x587074(0x2af),_0x45e07f),this[_0x587074(0x223)](_0x215ff2,_0x3e40bb));});}),this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x1fc),async()=>{const _0x60e0ff=_0x39c2e2;try{await this[_0x60e0ff(0x1e6)](_0x3e40bb,_0xf66160),this[_0x60e0ff(0x1fb)]();}catch(_0xabecc4){this[_0x60e0ff(0x271)](_0xabecc4)||(console[_0x60e0ff(0x1f3)](_0x60e0ff(0x1e7),_0xabecc4),this[_0x60e0ff(0x223)](_0x215ff2,_0x3e40bb));}}),this[_0x39c2e2(0x2a6)](_0x3e40bb,_0x39c2e2(0x219),(_0x2d8612,{showDiff:_0x210ca6})=>{const _0x38dde5=_0x39c2e2;this[_0x38dde5(0x2a3)]=_0x210ca6;const _0x2c444b=this[_0x38dde5(0x297)][_0x38dde5(0x281)][this[_0x38dde5(0x297)][_0x38dde5(0x281)][_0x38dde5(0x21b)]-0x1];_0x2c444b&&_0x3ee793(_0x2c444b,_0x3e40bb,_0x210ca6,_0x38dde5(0x207))[_0x38dde5(0x201)](_0x8f61ab=>{const _0x5e2072=_0x38dde5;this[_0x5e2072(0x271)](_0x8f61ab)||(console[_0x5e2072(0x1f3)](_0x5e2072(0x2ab),_0x8f61ab),this[_0x5e2072(0x223)](_0x215ff2,_0x3e40bb));});}),this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x1fd),(_0x190ceb,{reply:_0x24d2cd})=>{const _0x447f4a=_0x39c2e2,_0x530d0e={'positiveCount':_0x24d2cd[_0x447f4a(0x20e)][_0x447f4a(0x21a)](_0x13fc44=>_0x447f4a(0x2a4)===_0x13fc44[_0x447f4a(0x255)])[_0x447f4a(0x21b)],'totalCount':_0x24d2cd[_0x447f4a(0x20e)][_0x447f4a(0x21b)]},_0x377fb3=this[_0x447f4a(0x297)][_0x447f4a(0x237)],_0x37d538=this[_0x447f4a(0x297)][_0x447f4a(0x295)];_0x37d538?this[_0x447f4a(0x243)][_0x447f4a(0x211)](_0x37d538,_0x377fb3,_0x530d0e):this[_0x447f4a(0x243)][_0x447f4a(0x2b3)](_0x377fb3,_0x530d0e);}),this[_0x39c2e2(0x1ed)](_0x3e40bb,_0xf66160);try{const _0x11af36=await this[_0x39c2e2(0x297)][_0x39c2e2(0x230)]();return this[_0x39c2e2(0x1fb)](),_0x11af36;}catch(_0x183219){if(this[_0x39c2e2(0x271)](_0x183219))return;_0x3e40bb[_0x39c2e2(0x289)](),this[_0x39c2e2(0x223)](_0x215ff2,_0x3e40bb);}}[_0x37b474(0x277)](_0x6e5b29,_0xe4dd6a,_0xfd96f9){const _0x521837=_0x37b474,_0x494a2e=this[_0x521837(0x26f)],_0x3ec720=this[_0x521837(0x26f)][_0x521837(0x28f)][_0x521837(0x1ee)](_0x1e4bd2),_0x12ca43=this[_0x521837(0x297)],_0x4dc90c=this[_0x521837(0x297)][_0x521837(0x281)][this[_0x521837(0x297)][_0x521837(0x281)][_0x521837(0x21b)]-0x1],_0x10f513=_0x4dc90c[_0x521837(0x20e)];_0x4dc90c[_0x521837(0x2b5)](0x0,_0x521837(0x2a4));let _0x2f2d7b=_0x1658d3({'editor':_0x494a2e,'reply':_0x4dc90c,'interaction':_0x12ca43,'groups':_0x10f513,'transform':!0x1,'documentCompare':_0x3ec720,'documentCompareOptions':{'anchor':_0x494a2e[_0x521837(0x221)][_0x521837(0x1e4)](_0x6e5b29,0x0),'markDeletions':_0xfd96f9}});_0x2f2d7b=this[_0x521837(0x266)](_0x2f2d7b,_0xe4dd6a);for(const _0x15c245 of _0x2f2d7b)this[_0x521837(0x1f9)](_0xe4dd6a,_0x15c245,_0x494a2e[_0x521837(0x221)][_0x521837(0x1f4)][_0x521837(0x241)]());const _0x1bd403=_0x12ca43[_0x521837(0x262)]()[_0x521837(0x29b)],_0x277c69=_0x494a2e[_0x521837(0x221)][_0x521837(0x1f4)][_0x521837(0x296)][_0x521837(0x218)](_0x1bd403),_0x15dd9d={'document':_0x494a2e[_0x521837(0x221)][_0x521837(0x1f4)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1e7bf9=_0xc766e8(_0x2f2d7b,_0x277c69,_0x15dd9d)[_0x521837(0x1dd)];_0x494a2e[_0x521837(0x221)][_0x521837(0x23b)](_0x1d5ef0=>{const _0x3826b0=_0x521837;if(_0x1d5ef0[_0x3826b0(0x20d)](_0x494a2e[_0x3826b0(0x221)][_0x3826b0(0x1f4)][_0x3826b0(0x234)][_0x3826b0(0x247)]),_0xfd96f9)_0x494a2e[_0x3826b0(0x28f)][_0x3826b0(0x1ee)](_0x3826b0(0x29e))[_0x3826b0(0x23a)](_0x1e7bf9);else{for(const _0x3c6667 of _0x1e7bf9)_0x3c6667[_0x3826b0(0x252)]=_0x494a2e[_0x3826b0(0x221)][_0x3826b0(0x1f4)][_0x3826b0(0x29b)],_0x1d5ef0[_0x3826b0(0x1ef)][_0x3826b0(0x23d)](_0x3c6667),_0x494a2e[_0x3826b0(0x221)][_0x3826b0(0x25c)](_0x3c6667);}}),this[_0x521837(0x26f)][_0x521837(0x28f)][_0x521837(0x1ee)](_0x521837(0x204))[_0x521837(0x1d9)]();}[_0x37b474(0x266)](_0x3b1ff0,_0x3a76bd){const _0x2484f0=_0x37b474;return _0x3b1ff0[_0x2484f0(0x21a)](_0x5d4d5e=>{const _0x1bf41f=_0x2484f0;if(_0x1bf41f(0x264)==_0x5d4d5e[_0x1bf41f(0x273)]){const _0x12f631=_0x5d4d5e[_0x1bf41f(0x240)][_0x1bf41f(0x2b1)];return!_0x3a76bd[_0x1bf41f(0x215)](_0x12f631);}if(_0x5d4d5e[_0x1bf41f(0x273)][_0x1bf41f(0x203)](_0x1bf41f(0x22f))>-0x1){const _0x453185=_0x5d4d5e[_0x1bf41f(0x21e)][_0x1bf41f(0x230)][_0x1bf41f(0x2b1)];return!_0x3a76bd[_0x1bf41f(0x215)](_0x453185);}return!0x0;});}[_0x37b474(0x1f9)](_0x5e29fa,_0x3abee9,_0x258453){const _0x5019ee=_0x37b474,_0x1133b=_0x3abee9[_0x5019ee(0x25f)]();for(const _0x1d8e53 in _0x3abee9){const _0x4524dc=_0x3abee9[_0x1d8e53];_0x4524dc instanceof _0x3e478d?_0x3abee9[_0x1d8e53]=new _0x3e478d(_0x1dd586(_0x4524dc[_0x5019ee(0x230)]),_0x1dd586(_0x4524dc[_0x5019ee(0x20a)])):_0x4524dc instanceof _0x37893e&&(_0x3abee9[_0x1d8e53]=_0x1dd586(_0x4524dc));}if([_0x5019ee(0x244),_0x5019ee(0x253),_0x5019ee(0x209),_0x5019ee(0x293),_0x5019ee(0x256),_0x5019ee(0x20b)][_0x5019ee(0x257)](_0x1133b[_0x5019ee(0x273)])){if(_0x1133b[_0x5019ee(0x24d)]=!0x1,_0x1133b[_0x5019ee(0x252)]=null,_0x5019ee(0x209)==_0x1133b[_0x5019ee(0x273)]){const _0x2dde99=_0x1133b[_0x5019ee(0x28a)],_0x4a70c3=_0x1133b[_0x5019ee(0x2aa)];new _0x40c249(_0x2dde99,_0x4a70c3)[_0x5019ee(0x220)]();}else _0x1133b[_0x5019ee(0x220)]();}function _0x1dd586(_0x55319b){const _0x1b1b60=_0x5019ee;if(_0x1b1b60(0x22a)==_0x55319b[_0x1b1b60(0x26c)][_0x1b1b60(0x290)])return _0x55319b;const _0x585e43=[];let _0x884a99=_0x55319b[_0x1b1b60(0x26c)];for(let _0x2ba2c7=0x0;_0x2ba2c7<_0x55319b[_0x1b1b60(0x224)][_0x1b1b60(0x21b)];_0x2ba2c7++){const _0x40fa6e=_0x5e29fa[_0x1b1b60(0x1ee)](_0x884a99)||0x0;_0x585e43[_0x2ba2c7]=_0x55319b[_0x1b1b60(0x224)][_0x2ba2c7]+_0x40fa6e,_0x884a99=_0x884a99[_0x1b1b60(0x2a9)](_0x55319b[_0x1b1b60(0x224)][_0x2ba2c7]);}return new _0x37893e(_0x258453,_0x585e43,_0x55319b[_0x1b1b60(0x269)]);}}[_0x37b474(0x2ae)](){const _0x4a68b8=_0x37b474;if(!this[_0x4a68b8(0x248)])return;this[_0x4a68b8(0x23f)][_0x4a68b8(0x21b)]>0x0&&this[_0x4a68b8(0x2a5)](),this[_0x4a68b8(0x246)]=0x0,this[_0x4a68b8(0x2a3)]=!0x1;const {action:_0x746e46,content:_0x24f269,version:_0x41b636,mainView:_0x8c0560,aiBalloon:_0x3efed}=this[_0x4a68b8(0x248)];_0x8c0560[_0x4a68b8(0x1e9)]=!0x1,_0x8c0560[_0x4a68b8(0x249)](),this[_0x4a68b8(0x23e)](_0x8c0560,_0x3efed);const _0x582511=_0x8c0560;_0x582511[_0x4a68b8(0x1ea)]&&_0x582511[_0x4a68b8(0x1ea)][_0x4a68b8(0x1ec)]&&_0x582511[_0x4a68b8(0x1ea)][_0x4a68b8(0x1ec)][_0x4a68b8(0x1e1)]({'isOn':!0x1,'icon':_0x14c239}),this[_0x4a68b8(0x1e3)](_0x8c0560),_0x8c0560[_0x4a68b8(0x267)](),this[_0x4a68b8(0x1fb)](),this[_0x4a68b8(0x228)](_0x24f269,_0x41b636,_0x8c0560,_0x3efed,_0x746e46)[_0x4a68b8(0x201)](_0x1cae57=>{const _0x5ec464=_0x4a68b8;this[_0x5ec464(0x271)](_0x1cae57)||console[_0x5ec464(0x1f3)](_0x5ec464(0x217),_0x1cae57);});}[_0x37b474(0x1e3)](_0x3d84f8){const _0x348e7c=_0x37b474,_0x40db38=_0x3d84f8[_0x348e7c(0x268)][_0x348e7c(0x20f)];for(;_0x40db38[_0x348e7c(0x21b)]>0x0;)_0x40db38[_0x348e7c(0x209)](_0x40db38[_0x348e7c(0x1f0)]);_0x3d84f8[_0x348e7c(0x268)][_0x348e7c(0x232)]=!0x1;}[_0x37b474(0x271)](_0x3cbdb0){const _0x5df93d=_0x37b474;return!!_0x3cbdb0[_0x5df93d(0x22e)]&&_0x3cbdb0[_0x5df93d(0x22e)][_0x5df93d(0x2ac)](_0x5df93d(0x299));}[_0x37b474(0x24f)](){const _0x3d5dbf=_0x37b474;this[_0x3d5dbf(0x23f)]=[],this[_0x3d5dbf(0x248)]=void 0x0,this[_0x3d5dbf(0x246)]=0x0,this[_0x3d5dbf(0x1fb)]();}[_0x37b474(0x2a5)](){const _0x3b0e99=_0x37b474;this[_0x3b0e99(0x297)]&&this[_0x3b0e99(0x297)][_0x3b0e99(0x285)](),this[_0x3b0e99(0x274)][_0x3b0e99(0x1f2)](),this[_0x3b0e99(0x242)]=!0x1;}[_0x37b474(0x222)](){const _0x378676=_0x37b474,_0x491e8a=new _0x48a1e8(this[_0x378676(0x26f)][_0x378676(0x1d5)]),_0x4e1b23=new _0x48a1e8(this[_0x378676(0x26f)][_0x378676(0x1d5)]),_0x342cc3=new _0xa56c91(this[_0x378676(0x26f)][_0x378676(0x1d5)]),_0x287f78=new _0x48a1e8(this[_0x378676(0x26f)][_0x378676(0x1d5)]);_0x491e8a[_0x378676(0x1e1)]({'icon':_0x5f1450,'label':_0x5b224f(this[_0x378676(0x26f)][_0x378676(0x1d5)],_0x378676(0x29a)),'tooltip':!0x0,'class':_0x378676(0x1e5)}),_0x4e1b23[_0x378676(0x1e1)]({'icon':_0x45c75f,'tooltip':_0x5b224f(this[_0x378676(0x26f)][_0x378676(0x1d5)],_0x378676(0x206)),'class':_0x378676(0x1f6)}),_0x342cc3[_0x378676(0x21c)]({'tag':_0x378676(0x233),'attributes':{'class':[_0x378676(0x26b)]},'children':[_0x378676(0x22b)]}),_0x287f78[_0x378676(0x1e1)]({'icon':_0xaa83ac,'tooltip':_0x5b224f(this[_0x378676(0x26f)][_0x378676(0x1d5)],_0x378676(0x263)),'class':_0x378676(0x1f1)}),_0x491e8a[_0x378676(0x212)](_0x378676(0x28e))['to'](this,_0x378676(0x242),_0x425cda=>!_0x425cda),_0x491e8a['on'](_0x378676(0x200),()=>{const _0x46e997=_0x378676;this[_0x46e997(0x2ae)]();}),_0x4e1b23[_0x378676(0x212)](_0x378676(0x28e))['to'](this,_0x378676(0x242),_0x266ad7=>!_0x266ad7),_0x4e1b23['on'](_0x378676(0x200),()=>{const _0x4a17f8=_0x378676;this[_0x4a17f8(0x23c)]();}),_0x287f78[_0x378676(0x212)](_0x378676(0x28e))['to'](this,_0x378676(0x242),_0x3cccbb=>!_0x3cccbb),_0x287f78['on'](_0x378676(0x200),()=>{const _0x25bfe5=_0x378676;this[_0x25bfe5(0x250)]();}),this[_0x378676(0x28c)]=_0x4e1b23,this[_0x378676(0x24e)]=_0x342cc3,this[_0x378676(0x1e2)]=_0x287f78,this[_0x378676(0x280)][_0x378676(0x27e)](_0x491e8a);}[_0x37b474(0x23c)](){const _0x147c88=_0x37b474,_0x1447ee=this[_0x147c88(0x23f)][_0x147c88(0x21b)];this[_0x147c88(0x246)]<_0x1447ee-0x1&&this[_0x147c88(0x1d8)](this[_0x147c88(0x246)]+0x1);}[_0x37b474(0x250)](){const _0x334c1c=_0x37b474;this[_0x334c1c(0x246)]>0x0&&this[_0x334c1c(0x1d8)](this[_0x334c1c(0x246)]-0x1);}async[_0x37b474(0x1d8)](_0x5e0815){const _0x13ee0f=_0x37b474;if(!this[_0x13ee0f(0x248)])return;this[_0x13ee0f(0x246)]=_0x5e0815;const {mainView:_0x57d831}=this[_0x13ee0f(0x248)],_0x234023=this[_0x13ee0f(0x23f)][this[_0x13ee0f(0x23f)][_0x13ee0f(0x21b)]-0x1-this[_0x13ee0f(0x246)]];if(!_0x234023)return;if(_0x234023[_0x13ee0f(0x291)])return this[_0x13ee0f(0x223)](_0x234023,_0x57d831),void this[_0x13ee0f(0x1fb)]();if(!_0x234023[_0x13ee0f(0x281)][_0x13ee0f(0x21b)])return;_0x57d831[_0x13ee0f(0x249)](),this[_0x13ee0f(0x248)]&&this[_0x13ee0f(0x23e)](_0x57d831,this[_0x13ee0f(0x248)][_0x13ee0f(0x239)]);const _0x357cae=_0x234023[_0x13ee0f(0x281)][_0x234023[_0x13ee0f(0x281)][_0x13ee0f(0x21b)]-0x1];if(_0x357cae){const _0x5e4a09=this[_0x13ee0f(0x26f)];this[_0x13ee0f(0x1e3)](_0x57d831);try{const _0x2c0842=_0x1221a4({'editor':_0x5e4a09,'changeGroups':_0x357cae[_0x13ee0f(0x20e)],'documentContextContent':_0x357cae[_0x13ee0f(0x214)],'showDiff':this[_0x13ee0f(0x2a3)],'trimUnchanged':!0x1});this[_0x13ee0f(0x1e3)](_0x57d831),await new Promise(_0x4c2771=>setTimeout(_0x4c2771,0x32)),await _0x57d831[_0x13ee0f(0x229)]({'parts':_0x2c0842,'renderingStrategy':_0x13ee0f(0x207),'abortSignal':new AbortController()[_0x13ee0f(0x22d)]});}catch(_0x17c9c7){this[_0x13ee0f(0x271)](_0x17c9c7)||console[_0x13ee0f(0x1f3)](_0x13ee0f(0x26e),_0x17c9c7);}}this[_0x13ee0f(0x1fb)]();}[_0x37b474(0x1fb)](){const _0xca4331=_0x37b474;if(!this[_0xca4331(0x28c)]||!this[_0xca4331(0x24e)]||!this[_0xca4331(0x1e2)])return;const _0x3e2f2d=this[_0xca4331(0x23f)][_0xca4331(0x21b)],_0x21b88d=_0x3e2f2d>0x1,_0x55d81e=this[_0xca4331(0x248)]?.[_0xca4331(0x20c)];if(_0x21b88d){this[_0xca4331(0x282)]||this[_0xca4331(0x294)]||this[_0xca4331(0x261)]||(this[_0xca4331(0x280)][_0xca4331(0x27e)](this[_0xca4331(0x28c)]),_0x55d81e?.[_0xca4331(0x27f)](this[_0xca4331(0x28c)]),this[_0xca4331(0x282)]=!0x0,this[_0xca4331(0x280)][_0xca4331(0x27e)](this[_0xca4331(0x24e)]),_0x55d81e?.[_0xca4331(0x27f)](this[_0xca4331(0x24e)]),this[_0xca4331(0x294)]=!0x0,this[_0xca4331(0x280)][_0xca4331(0x27e)](this[_0xca4331(0x1e2)]),_0x55d81e?.[_0xca4331(0x27f)](this[_0xca4331(0x1e2)]),this[_0xca4331(0x261)]=!0x0);const _0x5f59fc=_0x3e2f2d-this[_0xca4331(0x246)];this[_0xca4331(0x24e)][_0xca4331(0x21d)]&&(this[_0xca4331(0x24e)][_0xca4331(0x21d)][_0xca4331(0x254)]=_0x5f59fc+'/'+_0x3e2f2d),this[_0xca4331(0x28c)][_0xca4331(0x28e)]=this[_0xca4331(0x246)]<_0x3e2f2d-0x1,this[_0xca4331(0x1e2)][_0xca4331(0x28e)]=this[_0xca4331(0x246)]>0x0;}else(this[_0xca4331(0x282)]||this[_0xca4331(0x294)]||this[_0xca4331(0x261)])&&(this[_0xca4331(0x280)][_0xca4331(0x209)](this[_0xca4331(0x28c)]),_0x55d81e?.[_0xca4331(0x2a7)](this[_0xca4331(0x28c)]),this[_0xca4331(0x282)]=!0x1,this[_0xca4331(0x280)][_0xca4331(0x209)](this[_0xca4331(0x24e)]),_0x55d81e?.[_0xca4331(0x2a7)](this[_0xca4331(0x24e)]),this[_0xca4331(0x294)]=!0x1,this[_0xca4331(0x280)][_0xca4331(0x209)](this[_0xca4331(0x1e2)]),_0x55d81e?.[_0xca4331(0x2a7)](this[_0xca4331(0x1e2)]),this[_0xca4331(0x261)]=!0x1);}[_0x37b474(0x1ed)](_0x2aca2d,_0xa30ec1){const _0x3f37b6=_0x37b474;_0x2aca2d[_0x3f37b6(0x27c)](),_0xa30ec1[_0x3f37b6(0x27b)][_0x3f37b6(0x27c)](),this[_0x3f37b6(0x242)]=!0x0;}async[_0x37b474(0x223)](_0x178585,_0x805ab7){const _0x59ef51=_0x37b474,_0x1fa6ed=_0x5b224f(this[_0x59ef51(0x26f)][_0x59ef51(0x1d5)],_0x59ef51(0x210));_0x805ab7[_0x59ef51(0x1f5)](_0x1fa6ed),_0x178585[_0x59ef51(0x291)]=!0x0,await this[_0x59ef51(0x274)][_0x59ef51(0x25e)],_0x805ab7[_0x59ef51(0x259)](),this[_0x59ef51(0x248)]?.[_0x59ef51(0x239)][_0x59ef51(0x27b)][_0x59ef51(0x238)]&&(this[_0x59ef51(0x248)][_0x59ef51(0x239)][_0x59ef51(0x27b)][_0x59ef51(0x238)][_0x59ef51(0x284)]=!0x0);}[_0x37b474(0x23e)](_0x4e993d,_0x255f83){const _0x2cc93a=_0x37b474;_0x4e993d[_0x2cc93a(0x1de)](),_0x255f83[_0x2cc93a(0x27b)][_0x2cc93a(0x238)]&&(_0x255f83[_0x2cc93a(0x27b)][_0x2cc93a(0x238)][_0x2cc93a(0x284)]=!0x1);}async[_0x37b474(0x1e6)](_0x1723da,_0x37f7d3){const _0x28e838=_0x37b474;await this[_0x28e838(0x274)][_0x28e838(0x25e)],this[_0x28e838(0x242)]=!0x1,_0x1723da[_0x28e838(0x25b)](),_0x37f7d3[_0x28e838(0x27b)][_0x28e838(0x25b)]();}}
|
|
23
|
+
const _0x3a909e=_0x4f2a;(function(_0x34f7d3,_0x528281){const _0x2a4bbf=_0x4f2a,_0x4b8dde=_0x34f7d3();while(!![]){try{const _0x1f5c57=-parseInt(_0x2a4bbf(0x24f))/0x1*(-parseInt(_0x2a4bbf(0x242))/0x2)+-parseInt(_0x2a4bbf(0x1da))/0x3*(-parseInt(_0x2a4bbf(0x1ef))/0x4)+parseInt(_0x2a4bbf(0x1a5))/0x5+parseInt(_0x2a4bbf(0x178))/0x6+parseInt(_0x2a4bbf(0x24a))/0x7*(-parseInt(_0x2a4bbf(0x1b0))/0x8)+-parseInt(_0x2a4bbf(0x1ff))/0x9*(parseInt(_0x2a4bbf(0x1a8))/0xa)+-parseInt(_0x2a4bbf(0x236))/0xb*(parseInt(_0x2a4bbf(0x1e4))/0xc);if(_0x1f5c57===_0x528281)break;else _0x4b8dde['push'](_0x4b8dde['shift']());}catch(_0x4f015a){_0x4b8dde['push'](_0x4b8dde['shift']());}}}(_0x19c3,0x9f8eb));import{Plugin as _0x58d363}from'ckeditor5/src/core.js';import{AIConnector as _0x1754d4}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x49e588}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x12a884,ButtonView as _0x26ef5d,ViewCollection as _0x1e648e,View as _0x24aac6}from'ckeditor5/src/ui.js';import{AIEditing as _0x3dfa29}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x52b667}from'./model/aiactionsinteraction.js';import{first as _0x5303f9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xee8a1d,IconRefresh as _0xd1bb03,IconNextArrow as _0x10dff5,IconPreviousArrow as _0x20c440,IconShowChangesOff as _0x5a8d0c}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x2f47a3}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3ede6b}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5391d0}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4a4566}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x38fbd8}from'@ckeditor/ckeditor5-collaboration-core';function _0x4f2a(_0x7ccee6,_0x16ae13){const _0x19c365=_0x19c3();return _0x4f2a=function(_0x4f2a89,_0x80269c){_0x4f2a89=_0x4f2a89-0x172;let _0x564b5a=_0x19c365[_0x4f2a89];return _0x564b5a;},_0x4f2a(_0x7ccee6,_0x16ae13);}function _0x19c3(){const _0x50d7bf=['remove','startsWith','_updateNavigationUI','_navigationCounter','2456OpmuIy','getLimitElement','operationsA','pending','isBusy','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_clearLoadingState','hasPendingParts','getDocumentContext','showLoader','stop','add','$graveyard','move','document','rootName','ck-ai-custom-action-button','start','insertSuggestion','_children','_clearInteractionHistory','insert','stopListening','merge','selection','createPositionBefore','actionName','_isNavigationCounterInView','showChangesButton','_anchorOperation','getOperations','_aiConnector','_displayInteractionAtIndex','_applyChanges','AIConnector','_isNavigationNextButtonInView','AI_ACTIONS_TRY_AGAIN','documentFragment','bind','span','interactionFinished','length','38559RCyEtI','areChangesVisible','upsertCustomAIActionRating','setSelection','split','replies','AIActions','AIBalloon','dialogClosed','_wrapWithCommonAncestors','662916bvDnLQ','modelToViewWithIds','updateContent','getFirstRange','balloonView','createPositionAfter','rename','replyCreated','_getExecuteDataInTable','message','_stopInteraction','28IaHSUc','rejected','catch','_balloonShowDiff','_interactions','applyOperation','stickiness','push','hideError','_applyOperationsAsSuggestions','parent','includes','element','clone','_filterOperationsOutsideRange','_interactionParams','18hMicQT','executeAction','AI_ACTIONS_GENERIC_ERROR','clearErrorState','ck-ai-navigation-button\x20ck-ai-previous-button','first','schema','getAncestors','locale','getChild','range','isOfficialPlugin','_promiseQueue','_currentInteractionIndex','_refreshInteraction','_navigateToPrevious','removeNavigationItem','streaming','_setErrorState','end','_executeAction','getRoot','addOperation','getSelectedBlocks','clearLoading','path','createPositionAt','filter','baseVersion','replyContentUpdated','_clone','type','ck-ai-interaction-counter','history','textContent','getChildAtOffset','hasError','Error\x20refreshing\x20interaction:','1/1','toggleSuggestionDisplayMode','slice','error','applySuggestion','setErrorState','actionCallId','isEnabled','bodyView','_createInteraction','getSelectedContent','batch','AI_ACTIONS_NEXT_INTERACTION','_customViews','upsertAIActionRating','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_navigateToNext','11kuBdYC','_interaction','ai-request-aborted','showError','toolbar','version','abort','_isNavigationPreviousButtonInView','setChangeGroupState','_setupCustomViews','getCommonAncestor','nodeAfter','2PYiYZd','_isAbortError','toData','sourcePosition','pluginName','signal','Error\x20updating\x20content\x20during\x20navigation:','listenTo','16793WajsOU','createRange','stopInteraction','execute','miniToolbarView','636577dtkQGr','editor','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_clearErrorState','_navigationPreviousButton','change','howMany','processor','getSelectedTableCells','has','4424784jRlEeq','_execute','addNavigationItem','nextSibling','enqueue','focus','close','Error\x20updating\x20content\x20in\x20replyCreated:','TrackChangesEditing','plugins','getSelectionAsFragment','_navigationNextButton','root','open','replyChangeGroupStateUpdated','aiBalloon','Attribute','TableSelection','isDocumentOperation','_appendChild','AI_ACTIONS_PREVIOUS_INTERACTION','map','isLoading','icon','setLoading','mainView','getRanges','requires','reinsert','queueEmptyPromise','_getExecuteDataRegular','accepted','model','isPremiumPlugin','hideLoader','indexOf','random','_setLoadingState','_clearSuggestionContent','state','data','ck-ai-navigation-button\x20ck-ai-next-button','isCollapsed','static','position','1527685olAAAk','changeGroups','documentContextContent','1621330EDCIiT','setTemplate','set','get'];_0x19c3=function(){return _0x50d7bf;};return _0x19c3();}import{getOperationsFromReply as _0x310700}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x493adb,ModelRange as _0x5027d3,ModelPosition as _0x3e6702,_DetachOperation as _0x4cf8a0,transformOperationSets as _0x18ba5f}from'ckeditor5/src/engine.js';export class AIActions extends _0x58d363{static get[_0x3a909e(0x193)](){return[_0x1754d4,_0x12a884,_0x3dfa29,_0x2f47a3,_0x38fbd8];}static get[_0x3a909e(0x246)](){const _0x10ebb8=_0x3a909e;return _0x10ebb8(0x1e0);}static get[_0x3a909e(0x20a)](){return!0x0;}static get[_0x3a909e(0x199)](){return!0x0;}[_0x3a909e(0x1cf)];[_0x3a909e(0x1f3)]=[];[_0x3a909e(0x20c)]=0x0;[_0x3a909e(0x1fe)];[_0x3a909e(0x1f2)]=!0x1;[_0x3a909e(0x232)]=new _0x1e648e();[_0x3a909e(0x172)];[_0x3a909e(0x1af)];[_0x3a909e(0x1cb)]=!0x1;[_0x3a909e(0x183)];[_0x3a909e(0x23d)]=!0x1;[_0x3a909e(0x1d3)]=!0x1;[_0x3a909e(0x20b)];get[_0x3a909e(0x237)](){const _0x5b8203=_0x3a909e;return this[_0x5b8203(0x1f3)][this[_0x5b8203(0x1f3)][_0x5b8203(0x1d9)]-0x1];}constructor(_0x2f8bb9){const _0x50908e=_0x3a909e;super(_0x2f8bb9),this[_0x50908e(0x1cf)]=this[_0x50908e(0x250)][_0x50908e(0x181)][_0x50908e(0x1ab)](_0x50908e(0x1d2)),this[_0x50908e(0x1aa)](_0x50908e(0x1b4),!0x1),this[_0x50908e(0x20b)]=new _0x3ede6b(),this[_0x50908e(0x23f)]();}[_0x3a909e(0x24c)](){const _0x1dfa73=_0x3a909e;this[_0x1dfa73(0x1ee)]();}async[_0x3a909e(0x200)](_0x126d7a,_0x2bf9b4,_0x4b8d86){const _0x27193c=_0x3a909e;if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x177)](_0x27193c(0x189))){if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x1ab)](_0x27193c(0x189))[_0x27193c(0x176)]()){const {modelFragment:_0x387a85,anchorData:_0x5a94cd}=this[_0x27193c(0x1ec)]();return this[_0x27193c(0x213)](_0x126d7a,_0x387a85,_0x5a94cd,_0x2bf9b4,_0x4b8d86);}}const {modelFragment:_0x5d530b,anchorData:_0x5869a5}=this[_0x27193c(0x196)]();return this[_0x27193c(0x213)](_0x126d7a,_0x5d530b,_0x5869a5,_0x2bf9b4,_0x4b8d86);}[_0x3a909e(0x196)](){const _0x2ce3de=_0x3a909e,_0x363893=this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x1be)][_0x2ce3de(0x1c8)];if(_0x363893[_0x2ce3de(0x1a2)]){const _0x389799=_0x5303f9(_0x363893[_0x2ce3de(0x216)]())||this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x205)][_0x2ce3de(0x1b1)](_0x363893);this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x173)](_0x482462=>{const _0x4665a8=_0x2ce3de;_0x482462[_0x4665a8(0x1dd)](_0x389799,'in');});}const _0x21dfb5=_0x363893[_0x2ce3de(0x1e7)](),_0x440c0e=this[_0x2ce3de(0x1e3)](this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x22f)](_0x363893),_0x21dfb5[_0x2ce3de(0x1c1)],_0x21dfb5[_0x2ce3de(0x212)]),_0x1b9122=_0x363893[_0x2ce3de(0x1e7)]()[_0x2ce3de(0x1c1)],_0x17a230=new Map();let _0x5c1910=_0x440c0e;for(let _0x28f38d=0x0;_0x28f38d<_0x1b9122[_0x2ce3de(0x218)][_0x2ce3de(0x1d9)];_0x28f38d++)_0x17a230[_0x2ce3de(0x1aa)](_0x5c1910,_0x1b9122[_0x2ce3de(0x218)][_0x28f38d]),_0x5c1910=_0x5c1910[_0x2ce3de(0x208)](0x0);return{'modelFragment':_0x440c0e,'anchorData':_0x17a230};}[_0x3a909e(0x1ec)](){const _0x555f28=_0x3a909e,_0x5920c=this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1be)][_0x555f28(0x1c8)],_0x46db09=this[_0x555f28(0x250)][_0x555f28(0x181)][_0x555f28(0x1ab)](_0x555f28(0x189))[_0x555f28(0x182)](),_0x10165b=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)][_0x555f28(0x1f9)][_0x555f28(0x1f9)],_0x2923f4=this[_0x555f28(0x1e3)](_0x46db09,this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1c9)](_0x10165b),this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1e9)](_0x10165b)),_0x294dd6=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)],_0x4b957b=new Map();let _0x380212=_0x2923f4;for(let _0x4777c7=0x0;_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)];_0x4777c7++)if(_0x4b957b[_0x555f28(0x1aa)](_0x380212,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)]-0x1)_0x380212=_0x380212[_0x555f28(0x208)](0x0);else{let _0x9e6d79=_0x380212[_0x555f28(0x17b)];for(;_0x9e6d79;)_0x4b957b[_0x555f28(0x1aa)](_0x9e6d79,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x9e6d79=_0x9e6d79[_0x555f28(0x17b)];}return{'modelFragment':_0x2923f4,'anchorData':_0x4b957b};}[_0x3a909e(0x213)](_0x3deadf,_0xbcced0,_0x322203,_0x5244ce,_0xf40a5a){const _0x1d354f=_0x3a909e,_0x5186c4=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x3dfa29),_0x43f127=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x2f47a3),_0x5046d9=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x1c8)],_0x5bbdbc=_0x5186c4[_0x1d354f(0x1e5)](_0xbcced0),_0x13526a=this[_0x1d354f(0x250)][_0x1d354f(0x1a0)][_0x1d354f(0x175)][_0x1d354f(0x244)](_0x5bbdbc),_0x257782=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x23b)],_0x6912fc=[..._0x5046d9[_0x1d354f(0x192)]()],_0x142ea4=new _0x49e588(this[_0x1d354f(0x250)][_0x1d354f(0x207)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1d354f(0x18f),'customView':this[_0x1d354f(0x232)]},'showUnchangedParts':!0x0});return _0x43f127[_0x1d354f(0x185)]({'index':0x3e8*Math[_0x1d354f(0x19c)]()%0x3e8,'title':_0x5244ce,'icon':_0xf40a5a||_0xee8a1d,'mainView':_0x142ea4,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x6912fc}),this[_0x1d354f(0x19d)](_0x142ea4,_0x43f127),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x229),()=>{const _0x34c0e6=_0x1d354f;this[_0x34c0e6(0x1d1)](_0xbcced0,_0x322203,!0x1);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1c2),()=>{const _0x4eec06=_0x1d354f;this[_0x4eec06(0x1d1)](_0xbcced0,_0x322203,!0x0);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1e2),()=>{const _0x52ec66=_0x1d354f;if(this[_0x52ec66(0x237)]&&this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]>0x0){const _0x185d9c=this[_0x52ec66(0x237)][_0x52ec66(0x1df)][this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]-0x1],_0x14a81b=_0x185d9c[_0x52ec66(0x1a6)][0x0];_0x14a81b&&_0x52ec66(0x1b3)===_0x14a81b[_0x52ec66(0x19f)]&&_0x185d9c[_0x52ec66(0x23e)](0x0,_0x52ec66(0x1f0));}this[_0x52ec66(0x1ee)](),this[_0x52ec66(0x1c4)](),this[_0x52ec66(0x1c6)](_0x43f127);}),this[_0x1d354f(0x22e)](_0x13526a,_0x257782,_0x142ea4,_0x43f127,_0x3deadf);}[_0x3a909e(0x1e3)](_0x36017c,_0x31dc2c,_0x2771f1){const _0x3c2086=_0x3a909e,_0x420ba1=this[_0x3c2086(0x250)][_0x3c2086(0x198)][_0x3c2086(0x24b)](_0x31dc2c,_0x2771f1)[_0x3c2086(0x240)](),_0x3ba004=_0x420ba1['is'](_0x3c2086(0x1d5))?[]:_0x420ba1[_0x3c2086(0x206)]({'includeSelf':!0x0})[_0x3c2086(0x227)](0x1);if(_0x3ba004[_0x3c2086(0x1d9)]){const _0xc0a839=_0x3ba004[_0x3c2086(0x18d)](_0x909ffc=>_0x909ffc[_0x3c2086(0x21d)](!0x1));for(let _0x3b0f3a=0x1;_0x3b0f3a<_0xc0a839[_0x3c2086(0x1d9)];_0x3b0f3a++)_0xc0a839[_0x3b0f3a-0x1][_0x3c2086(0x18b)](_0xc0a839[_0x3b0f3a]);return _0xc0a839[_0xc0a839[_0x3c2086(0x1d9)]-0x1][_0x3c2086(0x18b)](_0x36017c),new _0x493adb(_0xc0a839[0x0]);}return _0x36017c;}async[_0x3a909e(0x22e)](_0xb43ce0,_0x129c3a,_0x1aefb8,_0x4a7b26,_0x49a410){const _0x27b7f6=_0x3a909e,_0x1f88b5=this[_0x27b7f6(0x250)];this[_0x27b7f6(0x1fe)]={'action':_0x49a410,'content':_0xb43ce0,'version':_0x129c3a,'mainView':_0x1aefb8,'aiBalloon':_0x4a7b26};const _0x32e45f=new _0x52b667({'connector':this[_0x27b7f6(0x1cf)],'editor':_0x1f88b5,'content':_0xb43ce0,'version':_0x129c3a,..._0x49a410});this[_0x27b7f6(0x1f3)][_0x27b7f6(0x1f6)](_0x32e45f),_0x1aefb8[_0x27b7f6(0x1f7)]();const _0x1afe8e=(_0x2362ee,_0x2e79cf,_0x2b9a87=!0x1,_0x423dc3=_0x27b7f6(0x210))=>this[_0x27b7f6(0x20b)][_0x27b7f6(0x17c)](async _0x2f81df=>{const _0x136f3d=_0x27b7f6;try{const _0x3be65f=_0x4a4566({'editor':_0x1f88b5,'changeGroups':_0x2362ee[_0x136f3d(0x1a6)],'documentContextContent':_0x2362ee[_0x136f3d(0x1a7)],'showDiff':_0x2b9a87,'trimUnchanged':!0x1});await _0x2e79cf[_0x136f3d(0x1e6)]({'parts':_0x3be65f,'renderingStrategy':_0x423dc3,'abortSignal':_0x2f81df});}catch(_0x588351){if(this[_0x136f3d(0x243)](_0x588351))return;throw _0x588351;}});this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1eb),(_0x4d6937,_0x30ef11)=>{const _0x53e4bc=_0x27b7f6;_0x1aefb8[_0x53e4bc(0x19a)](),_0x1afe8e(_0x30ef11,_0x1aefb8)[_0x53e4bc(0x1f1)](_0x3b466d=>{const _0x2c6143=_0x53e4bc;this[_0x2c6143(0x243)](_0x3b466d)||(console[_0x2c6143(0x228)](_0x2c6143(0x17f),_0x3b466d),this[_0x2c6143(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x21c),(_0x5e4fcd,_0x8d3e86)=>{const _0x156df0=_0x27b7f6;_0x1afe8e(_0x8d3e86,_0x1aefb8)[_0x156df0(0x1f1)](_0x1484b9=>{const _0x2002af=_0x156df0;this[_0x2002af(0x243)](_0x1484b9)||(console[_0x2002af(0x228)](_0x2002af(0x1b5),_0x1484b9),this[_0x2002af(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1d8),async()=>{const _0x29d420=_0x27b7f6;try{await this[_0x29d420(0x1b6)](_0x1aefb8,_0x4a7b26),this[_0x29d420(0x1ae)]();}catch(_0x3fe9b6){this[_0x29d420(0x243)](_0x3fe9b6)||(console[_0x29d420(0x228)](_0x29d420(0x234),_0x3fe9b6),this[_0x29d420(0x211)](_0x32e45f,_0x1aefb8));}}),this[_0x27b7f6(0x249)](_0x1aefb8,_0x27b7f6(0x226),(_0x2cf404,{showDiff:_0x196f76})=>{const _0x26d4e5=_0x27b7f6;this[_0x26d4e5(0x1f2)]=_0x196f76;const _0xee297a=this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][_0x26d4e5(0x1d9)]-0x1];_0xee297a&&_0x1afe8e(_0xee297a,_0x1aefb8,_0x196f76,_0x26d4e5(0x1a3))[_0x26d4e5(0x1f1)](_0x56116d=>{const _0x95a97d=_0x26d4e5;this[_0x95a97d(0x243)](_0x56116d)||(console[_0x95a97d(0x228)](_0x95a97d(0x251),_0x56116d),this[_0x95a97d(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x186),(_0x378f47,{reply:_0x7fcd93})=>{const _0x3056af=_0x27b7f6,_0x45bea8={'positiveCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x21a)](_0x12b3ed=>_0x3056af(0x197)===_0x12b3ed[_0x3056af(0x19f)])[_0x3056af(0x1d9)],'totalCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x1d9)]},_0x5a13f8=this[_0x3056af(0x237)][_0x3056af(0x22b)],_0xb1ddd7=this[_0x3056af(0x237)][_0x3056af(0x1ca)];_0xb1ddd7?this[_0x3056af(0x1cf)][_0x3056af(0x233)](_0xb1ddd7,_0x5a13f8,_0x45bea8):this[_0x3056af(0x1cf)][_0x3056af(0x1dc)](_0x5a13f8,_0x45bea8);}),this[_0x27b7f6(0x19d)](_0x1aefb8,_0x4a7b26);try{const _0x416c31=await this[_0x27b7f6(0x237)][_0x27b7f6(0x1c1)]();return this[_0x27b7f6(0x1ae)](),_0x416c31;}catch(_0x5ed646){if(this[_0x27b7f6(0x243)](_0x5ed646))return;_0x1aefb8[_0x27b7f6(0x19a)](),this[_0x27b7f6(0x211)](_0x32e45f,_0x1aefb8);}}[_0x3a909e(0x1d1)](_0x2fc8e9,_0x562844,_0xfff0ea){const _0x4bc873=_0x3a909e,_0xcdaa8=this[_0x4bc873(0x250)],_0x222923=this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x38fbd8),_0x58ecce=this[_0x4bc873(0x237)],_0x49dd0e=this[_0x4bc873(0x237)][_0x4bc873(0x1df)][this[_0x4bc873(0x237)][_0x4bc873(0x1df)][_0x4bc873(0x1d9)]-0x1],_0x3ba793=_0x49dd0e[_0x4bc873(0x1a6)];_0x49dd0e[_0x4bc873(0x23e)](0x0,_0x4bc873(0x197));let _0x56a2d3=_0x310700({'editor':_0xcdaa8,'reply':_0x49dd0e,'interaction':_0x58ecce,'groups':_0x3ba793,'transform':!0x1,'documentCompare':_0x222923,'documentCompareOptions':{'anchor':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x219)](_0x2fc8e9,0x0),'markDeletions':_0xfff0ea}});_0x56a2d3=this[_0x4bc873(0x1fd)](_0x56a2d3,_0x562844);for(const _0x24c217 of _0x56a2d3)this[_0x4bc873(0x1cd)](_0x562844,_0x24c217,_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x214)]());const _0x4128de=_0x58ecce[_0x4bc873(0x1b8)]()[_0x4bc873(0x23b)],_0x465452=_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x220)][_0x4bc873(0x1ce)](_0x4128de),_0x3456e8={'document':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2ebfd2=_0x18ba5f(_0x56a2d3,_0x465452,_0x3456e8)[_0x4bc873(0x1b2)];_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x173)](_0x3e5050=>{const _0x30025e=_0x4bc873;if(_0x3e5050[_0x30025e(0x1dd)](_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x1c8)][_0x30025e(0x17d)]),_0xfff0ea)_0xcdaa8[_0x30025e(0x181)][_0x30025e(0x1ab)](_0x30025e(0x180))[_0x30025e(0x1f8)](_0x2ebfd2);else{for(const _0x36bc8b of _0x2ebfd2)_0x36bc8b[_0x30025e(0x21b)]=_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x23b)],_0x3e5050[_0x30025e(0x230)][_0x30025e(0x215)](_0x36bc8b),_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1f4)](_0x36bc8b);}}),this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x4bc873(0x1e1))[_0x4bc873(0x17e)]();}[_0x3a909e(0x1fd)](_0x21ccc1,_0x7a5dc8){const _0x20f6d4=_0x3a909e;return _0x21ccc1[_0x20f6d4(0x21a)](_0x219fb5=>{const _0x28eb3d=_0x20f6d4;if(_0x28eb3d(0x1ea)==_0x219fb5[_0x28eb3d(0x21e)]){const _0x385165=_0x219fb5[_0x28eb3d(0x1a4)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x385165);}if(_0x219fb5[_0x28eb3d(0x21e)][_0x28eb3d(0x19b)](_0x28eb3d(0x188))>-0x1){const _0x1176db=_0x219fb5[_0x28eb3d(0x209)][_0x28eb3d(0x1c1)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x1176db);}return!0x0;});}[_0x3a909e(0x1cd)](_0x4e7da4,_0x44b595,_0x242925){const _0x42825a=_0x3a909e,_0x2aa9ea=_0x44b595[_0x42825a(0x1fc)]();for(const _0x3cb310 in _0x44b595){const _0x372d0b=_0x44b595[_0x3cb310];_0x372d0b instanceof _0x5027d3?_0x44b595[_0x3cb310]=new _0x5027d3(_0x3c9a78(_0x372d0b[_0x42825a(0x1c1)]),_0x3c9a78(_0x372d0b[_0x42825a(0x212)])):_0x372d0b instanceof _0x3e6702&&(_0x44b595[_0x3cb310]=_0x3c9a78(_0x372d0b));}if([_0x42825a(0x1c5),_0x42825a(0x1bd),_0x42825a(0x1ac),_0x42825a(0x194),_0x42825a(0x1de),_0x42825a(0x1c7)][_0x42825a(0x1fa)](_0x2aa9ea[_0x42825a(0x21e)])){if(_0x2aa9ea[_0x42825a(0x18a)]=!0x1,_0x2aa9ea[_0x42825a(0x21b)]=null,_0x42825a(0x1ac)==_0x2aa9ea[_0x42825a(0x21e)]){const _0x4a8d84=_0x2aa9ea[_0x42825a(0x245)],_0x330392=_0x2aa9ea[_0x42825a(0x174)];new _0x4cf8a0(_0x4a8d84,_0x330392)[_0x42825a(0x179)]();}else _0x2aa9ea[_0x42825a(0x179)]();}function _0x3c9a78(_0x33fb80){const _0x1f3a20=_0x42825a;if(_0x1f3a20(0x1bc)==_0x33fb80[_0x1f3a20(0x184)][_0x1f3a20(0x1bf)])return _0x33fb80;const _0x51564c=[];let _0x45444b=_0x33fb80[_0x1f3a20(0x184)];for(let _0x266174=0x0;_0x266174<_0x33fb80[_0x1f3a20(0x218)][_0x1f3a20(0x1d9)];_0x266174++){const _0x4a4275=_0x4e7da4[_0x1f3a20(0x1ab)](_0x45444b)||0x0;_0x51564c[_0x266174]=_0x33fb80[_0x1f3a20(0x218)][_0x266174]+_0x4a4275,_0x45444b=_0x45444b[_0x1f3a20(0x222)](_0x33fb80[_0x1f3a20(0x218)][_0x266174]);}return new _0x3e6702(_0x242925,_0x51564c,_0x33fb80[_0x1f3a20(0x1f5)]);}}[_0x3a909e(0x20d)](){const _0x1c13da=_0x3a909e;if(!this[_0x1c13da(0x1fe)])return;this[_0x1c13da(0x1f3)][_0x1c13da(0x1d9)]>0x0&&this[_0x1c13da(0x1ee)](),this[_0x1c13da(0x20c)]=0x0,this[_0x1c13da(0x1f2)]=!0x1;const {action:_0x316453,content:_0x104c64,version:_0x4a4bb1,mainView:_0x9156ca,aiBalloon:_0x100013}=this[_0x1c13da(0x1fe)];_0x9156ca[_0x1c13da(0x1db)]=!0x1,_0x9156ca[_0x1c13da(0x1f7)](),this[_0x1c13da(0x252)](_0x9156ca,_0x100013);const _0x3556cf=_0x9156ca;_0x3556cf[_0x1c13da(0x24e)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)][_0x1c13da(0x1aa)]({'isOn':!0x1,'icon':_0x5a8d0c}),this[_0x1c13da(0x19e)](_0x9156ca),_0x9156ca[_0x1c13da(0x1b9)](),this[_0x1c13da(0x1ae)](),this[_0x1c13da(0x22e)](_0x104c64,_0x4a4bb1,_0x9156ca,_0x100013,_0x316453)[_0x1c13da(0x1f1)](_0x349f72=>{const _0x66487c=_0x1c13da;this[_0x66487c(0x243)](_0x349f72)||console[_0x66487c(0x228)](_0x66487c(0x224),_0x349f72);});}[_0x3a909e(0x19e)](_0x1c2f06){const _0x474715=_0x3a909e,_0x32b4da=_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1c3)];for(;_0x32b4da[_0x474715(0x1d9)]>0x0;)_0x32b4da[_0x474715(0x1ac)](_0x32b4da[_0x474715(0x204)]);_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1b7)]=!0x1;}[_0x3a909e(0x243)](_0x13ac94){const _0x295ece=_0x3a909e;return!!_0x13ac94[_0x295ece(0x1ed)]&&_0x13ac94[_0x295ece(0x1ed)][_0x295ece(0x1ad)](_0x295ece(0x238));}[_0x3a909e(0x1c4)](){const _0x493da0=_0x3a909e;this[_0x493da0(0x1f3)]=[],this[_0x493da0(0x1fe)]=void 0x0,this[_0x493da0(0x20c)]=0x0,this[_0x493da0(0x1ae)]();}[_0x3a909e(0x1ee)](){const _0x1c971f=_0x3a909e;this[_0x1c971f(0x237)]&&this[_0x1c971f(0x237)][_0x1c971f(0x1ba)](),this[_0x1c971f(0x20b)][_0x1c971f(0x23c)](),this[_0x1c971f(0x1b4)]=!0x1;}[_0x3a909e(0x23f)](){const _0x24ac95=_0x3a909e,_0xd19ce1=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4e4e14=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x2b66e6=new _0x24aac6(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4d589d=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]);_0xd19ce1[_0x24ac95(0x1aa)]({'icon':_0xd1bb03,'label':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x1d4)),'tooltip':!0x0,'class':_0x24ac95(0x1c0)}),_0x4e4e14[_0x24ac95(0x1aa)]({'icon':_0x20c440,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x18c)),'class':_0x24ac95(0x203)}),_0x2b66e6[_0x24ac95(0x1a9)]({'tag':_0x24ac95(0x1d7),'attributes':{'class':[_0x24ac95(0x21f)]},'children':[_0x24ac95(0x225)]}),_0x4d589d[_0x24ac95(0x1aa)]({'icon':_0x10dff5,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x231)),'class':_0x24ac95(0x1a1)}),_0xd19ce1[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1de74c=>!_0x1de74c),_0xd19ce1['on'](_0x24ac95(0x24d),()=>{const _0x4d134c=_0x24ac95;this[_0x4d134c(0x20d)]();}),_0x4e4e14[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1e8890=>!_0x1e8890),_0x4e4e14['on'](_0x24ac95(0x24d),()=>{const _0xa02ca1=_0x24ac95;this[_0xa02ca1(0x20e)]();}),_0x4d589d[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x197458=>!_0x197458),_0x4d589d['on'](_0x24ac95(0x24d),()=>{const _0xd35184=_0x24ac95;this[_0xd35184(0x235)]();}),this[_0x24ac95(0x172)]=_0x4e4e14,this[_0x24ac95(0x1af)]=_0x2b66e6,this[_0x24ac95(0x183)]=_0x4d589d,this[_0x24ac95(0x232)][_0x24ac95(0x1bb)](_0xd19ce1);}[_0x3a909e(0x20e)](){const _0x352930=_0x3a909e,_0x43c15a=this[_0x352930(0x1f3)][_0x352930(0x1d9)];this[_0x352930(0x20c)]<_0x43c15a-0x1&&this[_0x352930(0x1d0)](this[_0x352930(0x20c)]+0x1);}[_0x3a909e(0x235)](){const _0x378fda=_0x3a909e;this[_0x378fda(0x20c)]>0x0&&this[_0x378fda(0x1d0)](this[_0x378fda(0x20c)]-0x1);}async[_0x3a909e(0x1d0)](_0x54e414){const _0x4d6d1a=_0x3a909e;if(!this[_0x4d6d1a(0x1fe)])return;this[_0x4d6d1a(0x20c)]=_0x54e414;const {mainView:_0x2215bc}=this[_0x4d6d1a(0x1fe)],_0x533e2b=this[_0x4d6d1a(0x1f3)][this[_0x4d6d1a(0x1f3)][_0x4d6d1a(0x1d9)]-0x1-this[_0x4d6d1a(0x20c)]];if(!_0x533e2b)return;if(_0x533e2b[_0x4d6d1a(0x223)])return this[_0x4d6d1a(0x211)](_0x533e2b,_0x2215bc),void this[_0x4d6d1a(0x1ae)]();if(!_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)])return;_0x2215bc[_0x4d6d1a(0x1f7)](),this[_0x4d6d1a(0x1fe)]&&this[_0x4d6d1a(0x252)](_0x2215bc,this[_0x4d6d1a(0x1fe)][_0x4d6d1a(0x187)]);const _0x3c3086=_0x533e2b[_0x4d6d1a(0x1df)][_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)]-0x1];if(_0x3c3086){const _0x34dba2=this[_0x4d6d1a(0x250)];this[_0x4d6d1a(0x19e)](_0x2215bc);try{const _0x3788f7=_0x4a4566({'editor':_0x34dba2,'changeGroups':_0x3c3086[_0x4d6d1a(0x1a6)],'documentContextContent':_0x3c3086[_0x4d6d1a(0x1a7)],'showDiff':this[_0x4d6d1a(0x1f2)],'trimUnchanged':!0x1});this[_0x4d6d1a(0x19e)](_0x2215bc),await new Promise(_0x19cceb=>setTimeout(_0x19cceb,0x32)),await _0x2215bc[_0x4d6d1a(0x1e6)]({'parts':_0x3788f7,'renderingStrategy':_0x4d6d1a(0x1a3),'abortSignal':new AbortController()[_0x4d6d1a(0x247)]});}catch(_0x1f9539){this[_0x4d6d1a(0x243)](_0x1f9539)||console[_0x4d6d1a(0x228)](_0x4d6d1a(0x248),_0x1f9539);}}this[_0x4d6d1a(0x1ae)]();}[_0x3a909e(0x1ae)](){const _0x1e90cb=_0x3a909e;if(!this[_0x1e90cb(0x172)]||!this[_0x1e90cb(0x1af)]||!this[_0x1e90cb(0x183)])return;const _0x149b4d=this[_0x1e90cb(0x1f3)][_0x1e90cb(0x1d9)],_0x26eff9=_0x149b4d>0x1,_0x4f968b=this[_0x1e90cb(0x1fe)]?.[_0x1e90cb(0x191)];if(_0x26eff9){this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)]||(this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x0);const _0xd07a4=_0x149b4d-this[_0x1e90cb(0x20c)];this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)]&&(this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)][_0x1e90cb(0x221)]=_0xd07a4+'/'+_0x149b4d),this[_0x1e90cb(0x172)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]<_0x149b4d-0x1,this[_0x1e90cb(0x183)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]>0x0;}else(this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)])&&(this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x1);}[_0x3a909e(0x19d)](_0x4ec828,_0x19890e){const _0x2ca933=_0x3a909e;_0x4ec828[_0x2ca933(0x190)](),_0x19890e[_0x2ca933(0x1e8)][_0x2ca933(0x190)](),this[_0x2ca933(0x1b4)]=!0x0;}async[_0x3a909e(0x211)](_0x16a976,_0x32f402){const _0x713117=_0x3a909e,_0x4a6520=_0x5391d0(this[_0x713117(0x250)][_0x713117(0x207)],_0x713117(0x201));_0x32f402[_0x713117(0x239)](_0x4a6520),_0x16a976[_0x713117(0x223)]=!0x0,await this[_0x713117(0x20b)][_0x713117(0x195)],_0x32f402[_0x713117(0x22a)](),this[_0x713117(0x1fe)]?.[_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)]&&(this[_0x713117(0x1fe)][_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)][_0x713117(0x18e)]=!0x0);}[_0x3a909e(0x252)](_0x476eec,_0x20bade){const _0x56eedc=_0x3a909e;_0x476eec[_0x56eedc(0x202)](),_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)]&&(_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)][_0x56eedc(0x18e)]=!0x1);}async[_0x3a909e(0x1b6)](_0x27864b,_0x5f5abf){const _0x51eb25=_0x3a909e;await this[_0x51eb25(0x20b)][_0x51eb25(0x195)],this[_0x51eb25(0x1b4)]=!0x1,_0x27864b[_0x51eb25(0x217)](),_0x5f5abf[_0x51eb25(0x1e8)][_0x51eb25(0x217)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3e09(){const _0x5b62d7=['sendRequest','91yMBCWR','args','911565WidNoE','editor','createReply','content','actionName','delegate','47108LQNxZL','model','10652736hZVEXj','813802kvlOsI','html','90OcmmYN','executeCustomAction','Current\x20document','version','replies','813732odCWJF','163638SmrXuN','314205DqoLgX','getDocumentContext','userMessage','current-document','hasError','connector','push','255cQkiNZ','fire','executeAction','replyCreated','TEXT'];_0x3e09=function(){return _0x5b62d7;};return _0x3e09();}const _0x1860bc=_0x3864;function _0x3864(_0x2dc227,_0x15a66a){const _0x3e09f3=_0x3e09();return _0x3864=function(_0x3864c0,_0x5d0b55){_0x3864c0=_0x3864c0-0x131;let _0x2b6d03=_0x3e09f3[_0x3864c0];return _0x2b6d03;},_0x3864(_0x2dc227,_0x15a66a);}(function(_0x2dba75,_0x399acc){const _0x1515ce=_0x3864,_0x5f25ac=_0x2dba75();while(!![]){try{const _0x45cfb5=-parseInt(_0x1515ce(0x145))/0x1+parseInt(_0x1515ce(0x13e))/0x2+-parseInt(_0x1515ce(0x14e))/0x3*(-parseInt(_0x1515ce(0x13b))/0x4)+parseInt(_0x1515ce(0x147))/0x5+parseInt(_0x1515ce(0x146))/0x6*(-parseInt(_0x1515ce(0x133))/0x7)+parseInt(_0x1515ce(0x13d))/0x8+-parseInt(_0x1515ce(0x135))/0x9*(parseInt(_0x1515ce(0x140))/0xa);if(_0x45cfb5===_0x399acc)break;else _0x5f25ac['push'](_0x5f25ac['shift']());}catch(_0x1af782){_0x5f25ac['push'](_0x5f25ac['shift']());}}}(_0x3e09,0xb0665));import{AIInteraction as _0x11e5b8,AI_MODEL_EVENT_NAMES as _0x5edad3}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x17a5ef}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x1934e2}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x11e5b8{[_0x1860bc(0x138)];[_0x1860bc(0x143)];[_0x1860bc(0x139)];[_0x1860bc(0x134)];[_0x1860bc(0x149)];[_0x1860bc(0x13c)];[_0x1860bc(0x14b)]=!0x1;constructor(_0x25dbcd){const _0x3ee2c5=_0x1860bc;super(_0x25dbcd),this[_0x3ee2c5(0x138)]=_0x25dbcd[_0x3ee2c5(0x138)],this[_0x3ee2c5(0x143)]=_0x25dbcd[_0x3ee2c5(0x143)],this[_0x3ee2c5(0x139)]=_0x25dbcd[_0x3ee2c5(0x139)],this[_0x3ee2c5(0x134)]=_0x25dbcd[_0x3ee2c5(0x134)],this[_0x3ee2c5(0x149)]=_0x25dbcd[_0x3ee2c5(0x149)],this[_0x3ee2c5(0x13c)]=_0x25dbcd[_0x3ee2c5(0x13c)];}async[_0x1860bc(0x132)](){const _0xf410ae=_0x1860bc;return this[_0xf410ae(0x139)]?this[_0xf410ae(0x14c)][_0xf410ae(0x150)]({'content':this[_0xf410ae(0x138)],'actionName':this[_0xf410ae(0x139)],'args':this[_0xf410ae(0x134)]}):this[_0xf410ae(0x14c)][_0xf410ae(0x141)]({'content':this[_0xf410ae(0x138)],'message':this[_0xf410ae(0x149)],'model':this[_0xf410ae(0x13c)],'outputFormat':_0xf410ae(0x13f)});}[_0x1860bc(0x148)](){const _0x3b1b8a=_0x1860bc;return{'type':_0x17a5ef[_0x3b1b8a(0x131)],'content':this[_0x3b1b8a(0x138)],'version':this[_0x3b1b8a(0x143)],'label':_0x3b1b8a(0x142),'uiId':_0x3b1b8a(0x14a)};}[_0x1860bc(0x137)](_0x156600){const _0x4b7c57=_0x1860bc,_0x15975b=new _0x1934e2({'editor':this[_0x4b7c57(0x136)],'documentContextContent':this[_0x4b7c57(0x138)],..._0x156600});return this[_0x4b7c57(0x144)][_0x4b7c57(0x14d)](_0x15975b),_0x15975b[_0x4b7c57(0x13a)](..._0x5edad3)['to'](this),this[_0x4b7c57(0x14f)](_0x4b7c57(0x151),_0x15975b),_0x15975b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1bcca7=_0x3fb6;(function(_0x151d61,_0x2c2b12){const _0x4855d0=_0x3fb6,_0x4d2cb4=_0x151d61();while(!![]){try{const _0x236c41=parseInt(_0x4855d0(0x106))/0x1*(-parseInt(_0x4855d0(0xfb))/0x2)+-parseInt(_0x4855d0(0xfe))/0x3+-parseInt(_0x4855d0(0x108))/0x4*(-parseInt(_0x4855d0(0x111))/0x5)+parseInt(_0x4855d0(0xfd))/0x6+parseInt(_0x4855d0(0x109))/0x7+parseInt(_0x4855d0(0xff))/0x8*(-parseInt(_0x4855d0(0x115))/0x9)+-parseInt(_0x4855d0(0x103))/0xa;if(_0x236c41===_0x2c2b12)break;else _0x4d2cb4['push'](_0x4d2cb4['shift']());}catch(_0x1dbdc3){_0x4d2cb4['push'](_0x4d2cb4['shift']());}}}(_0x21c6,0x8416f));import{AIReply as _0x175e09}from'../../aicore/model/aireply.js';import{getAttribute as _0x171036}from'../../aicore/utils/htmlparser.js';import{uid as _0x28d2a1}from'ckeditor5/src/utils.js';function _0x21c6(){const _0x3d1e46=['132854Gzgqgy','added','4808olSMbc','7207375jpZsDB','childNodes','_getDifferentChangeGroups','node','modified','updateChangeGroups','children','changeGroups','3650JVdHJN','data-id','cloneNode','removed','63549qTCuUZ','pop','value','parsedContent','parsedMergedContent','4Yqffbb','pending','2904000AaaRAk','1322694WNzIDK','656DkWROX','new','documentContextContent','map','5644380BEvHUP','isDone','length'];_0x21c6=function(){return _0x3d1e46;};return _0x21c6();}function _0x3fb6(_0x321fef,_0x1b0b49){const _0x21c683=_0x21c6();return _0x3fb6=function(_0x3fb657,_0x3298da){_0x3fb657=_0x3fb657-0xfb;let _0x4328d7=_0x21c683[_0x3fb657];return _0x4328d7;},_0x3fb6(_0x321fef,_0x1b0b49);}import{diffArrays as _0x328512}from'diff';export class AIActionsReply extends _0x175e09{[_0x1bcca7(0x10e)](){const _0x72af5a=_0x1bcca7;if(this[_0x72af5a(0x119)]=this[_0x72af5a(0x118)][_0x72af5a(0x113)](!0x0),0x0==this[_0x72af5a(0x119)][_0x72af5a(0x10a)][_0x72af5a(0x105)])return void(this[_0x72af5a(0x110)]=[]);const _0x5f3dbd=this[_0x72af5a(0x101)][_0x72af5a(0x10f)][_0x72af5a(0x102)](_0x230d01=>({'node':_0x230d01,'id':_0x171036(_0x230d01,_0x72af5a(0x112))})),_0x415edf=this[_0x72af5a(0x119)][_0x72af5a(0x10f)][_0x72af5a(0x102)](_0x441e37=>({'node':_0x441e37,'id':_0x171036(_0x441e37,_0x72af5a(0x112))||_0x28d2a1()})),_0x2ccfe1=_0x328512(_0x5f3dbd,_0x415edf,{'comparator':(_0x3580e5,_0xc6496c)=>_0x3580e5['id']==_0xc6496c['id'],'oneChangePerToken':!0x0});if(!this[_0x72af5a(0x104)]){for(;_0x2ccfe1[_0x72af5a(0x105)]&&_0x2ccfe1[_0x2ccfe1[_0x72af5a(0x105)]-0x1][_0x72af5a(0x114)];)_0x2ccfe1[_0x72af5a(0x116)]();}const _0x5d5c44=_0x2ccfe1[_0x72af5a(0x102)](_0x42d8c7=>{const _0x21489c=_0x72af5a,_0x3e8b4c=_0x42d8c7[_0x21489c(0x107)]?_0x21489c(0x100):_0x42d8c7[_0x21489c(0x114)]?_0x21489c(0x114):_0x21489c(0x10d);return{'node':_0x42d8c7[_0x21489c(0x117)][0x0][_0x21489c(0x10c)],'type':_0x3e8b4c,'id':_0x42d8c7[_0x21489c(0x117)][0x0]['id']};});this[_0x72af5a(0x110)]=[{'changes':_0x5d5c44,'state':_0x72af5a(0xfc),'index':0x0}];}[_0x1bcca7(0x10b)](_0x164344,_0x2c08d6){return _0x2c08d6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x49b8bd=_0x1003;function _0x2f2c(){var _0x1aa638=['aiadapter-text-adapter-not-set','textAdapter','911785rasUio','isOfficialPlugin','name','AIAdapter','AIRequestError','4oFYQDN','707435noxGlg','1082679YxTQyC','1088Pvgvto','10068etjidG','32283sOHVTh','1068jlCKQS','isPremiumPlugin','20kgkubF','49GLgTQU','2649713HnLuOu','afterInit','322972fDFdPz','10XaSRnd','pluginName'];_0x2f2c=function(){return _0x1aa638;};return _0x2f2c();}(function(_0x184d1c,_0x16cded){var _0x358a4a=_0x1003,_0x29cd1c=_0x184d1c();while(!![]){try{var _0x424ba2=-parseInt(_0x358a4a(0x141))/0x1+parseInt(_0x358a4a(0x146))/0x2*(-parseInt(_0x358a4a(0x148))/0x3)+-parseInt(_0x358a4a(0x14e))/0x4*(parseInt(_0x358a4a(0x147))/0x5)+parseInt(_0x358a4a(0x14a))/0x6*(-parseInt(_0x358a4a(0x14f))/0x7)+parseInt(_0x358a4a(0x149))/0x8*(parseInt(_0x358a4a(0x14b))/0x9)+-parseInt(_0x358a4a(0x13d))/0xa*(-parseInt(_0x358a4a(0x150))/0xb)+parseInt(_0x358a4a(0x14c))/0xc*(parseInt(_0x358a4a(0x13c))/0xd);if(_0x424ba2===_0x16cded)break;else _0x29cd1c['push'](_0x29cd1c['shift']());}catch(_0x7e22de){_0x29cd1c['push'](_0x29cd1c['shift']());}}}(_0x2f2c,0x8f547));import{Plugin as _0x58578f}from'ckeditor5/src/core.js';import{CKEditorError as _0x5f2660}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x58578f{static get[_0x49b8bd(0x13e)](){var _0x3c5482=_0x49b8bd;return _0x3c5482(0x144);}static get[_0x49b8bd(0x142)](){return!0x0;}static get[_0x49b8bd(0x14d)](){return!0x0;}[_0x49b8bd(0x151)](){var _0x41537c=_0x49b8bd;if(!this[_0x41537c(0x140)])throw new _0x5f2660(_0x41537c(0x13f),null);}}function _0x1003(_0x1ad133,_0x1697f4){var _0x2f2cd0=_0x2f2c();return _0x1003=function(_0x100362,_0x1ca1d8){_0x100362=_0x100362-0x13c;var _0x52fd08=_0x2f2cd0[_0x100362];return _0x52fd08;},_0x1003(_0x1ad133,_0x1697f4);}export class AIRequestError extends Error{constructor(_0x1657f7){var _0x803880=_0x49b8bd;super(_0x1657f7),this[_0x803880(0x143)]=_0x803880(0x145);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1835(_0x318fce,_0x28ae91){const _0x380b33=_0x380b();return _0x1835=function(_0x183552,_0x1d6861){_0x183552=_0x183552-0x13d;let _0x1b8a56=_0x380b33[_0x183552];return _0x1b8a56;},_0x1835(_0x318fce,_0x28ae91);}const _0x269abf=_0x1835;(function(_0x3a2800,_0x302722){const _0x50a3bf=_0x1835,_0x50a918=_0x3a2800();while(!![]){try{const _0x1e1358=parseInt(_0x50a3bf(0x14d))/0x1*(parseInt(_0x50a3bf(0x144))/0x2)+parseInt(_0x50a3bf(0x15f))/0x3+parseInt(_0x50a3bf(0x15e))/0x4*(-parseInt(_0x50a3bf(0x14c))/0x5)+-parseInt(_0x50a3bf(0x140))/0x6+parseInt(_0x50a3bf(0x161))/0x7*(-parseInt(_0x50a3bf(0x153))/0x8)+parseInt(_0x50a3bf(0x146))/0x9+parseInt(_0x50a3bf(0x151))/0xa*(parseInt(_0x50a3bf(0x159))/0xb);if(_0x1e1358===_0x302722)break;else _0x50a918['push'](_0x50a918['shift']());}catch(_0x14dcce){_0x50a918['push'](_0x50a918['shift']());}}}(_0x380b,0x8d517));import{Plugin as _0x5b8c81}from'ckeditor5/src/core.js';function _0x380b(){const _0xed19e8=['textAdapter','reject','signal','requires','_prepareRequestHeaders','37605cteUPT','1lSzsiK','abortController','error','resolve','35590KATHkB','assign','4179920mNUWfd','AbortError','locale','catch','application/json','AI_ERROR_GET_HEADERS','2519gfQJOb','sendRequest','abort','init','object','60kVRqrR','2815659aLQahg','makeRequest','14jSnRmB','_prepareRequestParameters','aborted','aitextadapter-send-request-failed','name','4670796NrZmHO','editor','get','AI_ERROR_GET_PARAMETERS','1203080sWPNYc','plugins','1439964zZjxCo'];_0x380b=function(){return _0xed19e8;};return _0x380b();}import{CKEditorError as _0x51cf37}from'ckeditor5/src/utils.js';import{AIAdapter as _0x32a673,AIRequestError as _0x5a117a}from'./aiadapter.js';import{getTranslation as _0x381932}from'../utils/common-translations.js';export class AITextAdapter extends _0x5b8c81{[_0x269abf(0x14e)];static get[_0x269abf(0x14a)](){return[_0x32a673];}constructor(_0x4e1d7e){const _0x5b0705=_0x269abf;super(_0x4e1d7e),this[_0x5b0705(0x14e)]=new AbortController();}[_0x269abf(0x15c)](){const _0x4144f0=_0x269abf;this[_0x4144f0(0x141)][_0x4144f0(0x145)][_0x4144f0(0x142)](_0x32a673)[_0x4144f0(0x147)]=this;}[_0x269abf(0x15b)](){const _0x127eae=_0x269abf;this[_0x127eae(0x14e)][_0x127eae(0x149)][_0x127eae(0x13d)]||(this[_0x127eae(0x14e)][_0x127eae(0x15b)](),this[_0x127eae(0x14e)]=new AbortController());}async[_0x269abf(0x160)](_0x2dbcd0){const _0x283397=_0x269abf;return this[_0x283397(0x15a)](_0x2dbcd0)[_0x283397(0x156)](_0x242eef=>{const _0xb5ae6b=_0x283397;if(_0x242eef instanceof _0x5a117a)return Promise[_0xb5ae6b(0x148)](_0x242eef);if(_0xb5ae6b(0x154)==_0x242eef[_0xb5ae6b(0x13f)])return Promise[_0xb5ae6b(0x150)]();throw console[_0xb5ae6b(0x14f)](_0x242eef),new _0x51cf37(_0xb5ae6b(0x13e),null);});}async[_0x269abf(0x14b)](_0x2259dc,_0x117d9b){const _0x43711a=_0x269abf,_0xaa5452=this[_0x43711a(0x141)][_0x43711a(0x155)],_0x482106={'Content-Type':_0x43711a(0x157)};if(_0x43711a(0x15d)==typeof _0x2259dc)Object[_0x43711a(0x152)](_0x482106,_0x2259dc);else{if(_0x2259dc)try{const _0x28d9a6=await _0x2259dc(_0x117d9b);Object[_0x43711a(0x152)](_0x482106,_0x28d9a6);}catch{return Promise[_0x43711a(0x148)](new _0x5a117a(_0x381932(_0xaa5452,_0x43711a(0x158))));}}return _0x482106;}async[_0x269abf(0x162)](_0x189bed,_0x32c928){const _0x5bf037=_0x269abf,_0x48e64b=this[_0x5bf037(0x141)][_0x5bf037(0x155)];if(_0x5bf037(0x15d)==typeof _0x189bed)return _0x189bed;try{return await _0x189bed(_0x32c928);}catch{return Promise[_0x5bf037(0x148)](new _0x5a117a(_0x381932(_0x48e64b,_0x5bf037(0x143))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b5360=_0x1399;(function(_0x70b34b,_0x3442b2){const _0x490cb6=_0x1399,_0x4cc5bb=_0x70b34b();while(!![]){try{const _0x270616=-parseInt(_0x490cb6(0x1aa))/0x1+parseInt(_0x490cb6(0x1af))/0x2+parseInt(_0x490cb6(0x1d3))/0x3+-parseInt(_0x490cb6(0x1f0))/0x4*(-parseInt(_0x490cb6(0x1bb))/0x5)+parseInt(_0x490cb6(0x1c2))/0x6*(parseInt(_0x490cb6(0x1e0))/0x7)+-parseInt(_0x490cb6(0x1f8))/0x8*(parseInt(_0x490cb6(0x1ad))/0x9)+parseInt(_0x490cb6(0x1bf))/0xa*(-parseInt(_0x490cb6(0x1de))/0xb);if(_0x270616===_0x3442b2)break;else _0x4cc5bb['push'](_0x4cc5bb['shift']());}catch(_0x24f04e){_0x4cc5bb['push'](_0x4cc5bb['shift']());}}}(_0x28e4,0xe9a81));import{AITextAdapter as _0x2ad0e1}from'./aitextadapter.js';import{AIRequestError as _0xd3a10b}from'./aiadapter.js';import{BedrockRuntimeClient as _0x3fba1b,InvokeModelCommand as _0x5dde4c,InvokeModelWithResponseStreamCommand as _0x5d70f0}from'@aws-sdk/client-bedrock-runtime';function _0x28e4(){const _0x3b07d1=['ai21.j2','\x0a[/INST]','join','_bedrockClientConfig','_processAWSRequest','read','ai.assistant.adapter.aws.requestHeaders','cohere.command','data','parse','chunk','4JNWxXS','editor','resolve','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.','generation','locale','body','config','32zYeYDi','anthropic.claude','getReader','91420dniWHx','_readStreamableResponse','_prepareRequestParameters','3411603ixWwSb','meta.llama','2364528hWCizw','completion','abortController','Instruction:\x0a','\x0a\x0aAssistant:','map','_readStaticResponse','bedrock-2023-05-31','json','signal','_apiUrl','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','4261595BSonfn','length','_getGeneratedText','_processProxyRequest','1820vJVdnC','_prepareRequestHeaders','anthropic.claude-v2','9426IBylIg','pluginName','AI_ERROR_UNSUPPORTED_MODEL','preparePrompt','sendRequest','_readAsyncIterableResponse','test','application/json','<<SYS>>\x0a','ai.assistant.adapter.aws.requestParameters','ai.assistant.adapter.aws.bedrockClientConfig','generations','text','getModelFamily','ai.assistant.adapter.aws.apiUrl','get','_requestParameters','1372209MsDthI','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.','_requestHeaders','utf-8','\x0a<</SYS>>\x0a[INST]\x0a','decode','Human:\x0a','define','filter','stringify','send','8041Huisqb','AWSTextAdapter','917PhbnSO','POST','bytes','completions','split'];_0x28e4=function(){return _0x3b07d1;};return _0x28e4();}function _0x1399(_0x43faf1,_0x5068f8){const _0x28e488=_0x28e4();return _0x1399=function(_0x1399b7,_0x3a6d84){_0x1399b7=_0x1399b7-0x1a8;let _0x1266a6=_0x28e488[_0x1399b7];return _0x1266a6;},_0x1399(_0x43faf1,_0x5068f8);}import{getTranslation as _0x1bf126}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2ad0e1{[_0x2b5360(0x1b9)];[_0x2b5360(0x1d5)];[_0x2b5360(0x1e8)];[_0x2b5360(0x1d2)];static get[_0x2b5360(0x1c3)](){const _0x5e0fd9=_0x2b5360;return _0x5e0fd9(0x1df);}constructor(_0x40a530){const _0x3a98eb=_0x2b5360;super(_0x40a530),_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cb))||_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1da)](_0x3a98eb(0x1cb),{'model':_0x3a98eb(0x1c1),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3a98eb(0x1b6),'stream':!0x0}),this[_0x3a98eb(0x1b9)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1d0)),this[_0x3a98eb(0x1e8)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cc)),this[_0x3a98eb(0x1d5)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1eb)),this[_0x3a98eb(0x1d2)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cb));}async[_0x2b5360(0x1c6)]({query:_0x5e08c2,context:_0x36d4e1,onData:_0x507711,actionId:_0x15bce7}){const _0x3a045c=_0x2b5360,{model:_0x59613c,stream:_0xa09393,..._0x50f79f}=await this[_0x3a045c(0x1ac)](this[_0x3a045c(0x1d2)],_0x15bce7),_0x58308f={'prompt':await this[_0x3a045c(0x1c5)](_0x5e08c2,_0x36d4e1,_0x59613c,_0x15bce7),..._0x50f79f};this[_0x3a045c(0x1b9)]?await this[_0x3a045c(0x1be)](_0x58308f,_0x59613c,_0xa09393,_0x507711,_0x15bce7):await this[_0x3a045c(0x1e9)](_0x58308f,_0x59613c,_0xa09393,_0x507711);}async[_0x2b5360(0x1c5)](_0x197606,_0x3b9749,_0x38b621,_0x3e4c73){const _0x5ee80d=_0x2b5360;let _0x4b4e79,_0x487f8d;return _0x3b9749?(_0x4b4e79=_0x5ee80d(0x1f3),_0x487f8d=_0x5ee80d(0x1b2)+_0x197606+_0x5ee80d(0x1ba)+_0x3b9749):(_0x4b4e79=_0x5ee80d(0x1d4),_0x487f8d=_0x197606),_0x5ee80d(0x1ae)==this[_0x5ee80d(0x1cf)](_0x38b621)?_0x5ee80d(0x1ca)+_0x4b4e79+_0x5ee80d(0x1d7)+_0x487f8d+_0x5ee80d(0x1e6):_0x5ee80d(0x1d9)+_0x4b4e79+'\x0a'+_0x487f8d+_0x5ee80d(0x1b3);}[_0x2b5360(0x1cf)](_0x456206){const _0x595411=_0x2b5360;if(/^anthropic\.claude/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1a8);if(/^ai21\.j2/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1e5);if(/^cohere\.command/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1ec);if(/^meta\.llama/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1ae);throw new _0xd3a10b(_0x1bf126(this[_0x595411(0x1f1)][_0x595411(0x1f5)],_0x595411(0x1c4),_0x456206));}async[_0x2b5360(0x1be)](_0x216dde,_0x215b6d,_0x980ef0,_0x57a741,_0x2d688d){const _0x37353a=_0x2b5360,_0x2ca1b3={'method':_0x37353a(0x1e1),'headers':await this[_0x37353a(0x1c0)](this[_0x37353a(0x1d5)],_0x2d688d),'body':JSON[_0x37353a(0x1dc)]({..._0x216dde,'model':_0x215b6d,'stream':_0x980ef0}),'signal':this[_0x37353a(0x1b1)][_0x37353a(0x1b8)]},_0x299ae2=await fetch(this[_0x37353a(0x1b9)],_0x2ca1b3);_0x980ef0?await this[_0x37353a(0x1ab)](_0x299ae2,_0x215b6d,_0x57a741):await this[_0x37353a(0x1b5)](_0x299ae2,_0x215b6d,_0x57a741);}async[_0x2b5360(0x1e9)](_0x3c9cc6,_0x38478f,_0x453603,_0x142b6b){const _0x4c7a81=_0x2b5360,_0x9d0cdb=new _0x3fba1b(this[_0x4c7a81(0x1e8)]),_0x44fcaa={'body':JSON[_0x4c7a81(0x1dc)](_0x3c9cc6),'contentType':_0x4c7a81(0x1c9),'accept':_0x4c7a81(0x1c9),'modelId':_0x38478f};let _0x458011;if(_0x453603){const _0x1ee020=new _0x5d70f0(_0x44fcaa);_0x458011=await _0x9d0cdb[_0x4c7a81(0x1dd)](_0x1ee020,{'abortSignal':this[_0x4c7a81(0x1b1)][_0x4c7a81(0x1b8)]}),await this[_0x4c7a81(0x1c7)](_0x458011,_0x38478f,_0x142b6b);}else{const _0x4e3f85=new _0x5dde4c(_0x44fcaa);_0x458011=await _0x9d0cdb[_0x4c7a81(0x1dd)](_0x4e3f85,{'abortSignal':this[_0x4c7a81(0x1b1)][_0x4c7a81(0x1b8)]}),await this[_0x4c7a81(0x1b5)](_0x458011,_0x38478f,_0x142b6b);}}async[_0x2b5360(0x1c7)](_0x47d08d,_0x26f557,_0x9ac2f4){const _0x5f12be=_0x2b5360,_0x4edf32=_0x47d08d[_0x5f12be(0x1f6)],_0x43043f=new TextDecoder(_0x5f12be(0x1d6));let _0x47cf79='';for await(const _0x3901fc of _0x4edf32)if(_0x3901fc[_0x5f12be(0x1ef)]){const _0xb9f4b5=_0x43043f[_0x5f12be(0x1d8)](_0x3901fc[_0x5f12be(0x1ef)][_0x5f12be(0x1e2)]),_0x48278d=JSON[_0x5f12be(0x1ee)](_0xb9f4b5);_0x47cf79+=this[_0x5f12be(0x1bd)](_0x48278d,_0x26f557),_0x9ac2f4(_0x47cf79);}return Promise[_0x5f12be(0x1f2)]();}async[_0x2b5360(0x1ab)](_0x2887cd,_0x22582c,_0x584308){const _0xfffd04=_0x2b5360,_0x6c2192=_0x2887cd[_0xfffd04(0x1f6)],_0x563517=new TextDecoder(_0xfffd04(0x1d6)),_0x17ee67=_0x6c2192[_0xfffd04(0x1a9)]();let _0x22eb45='',_0x6d8c2='',_0x199817=!0x1;for(;!_0x199817;){const {done:_0x484d1e,value:_0x4ac2b2}=await _0x17ee67[_0xfffd04(0x1ea)]();if(_0x199817=_0x484d1e,_0x199817)break;const _0x4789d4=(_0x22eb45+_0x563517[_0xfffd04(0x1d8)](_0x4ac2b2))[_0xfffd04(0x1e4)]('\x0a')[_0xfffd04(0x1b4)](_0x49e987=>{const _0x3e077a=_0xfffd04;try{return _0x22eb45='',JSON[_0x3e077a(0x1ee)](_0x49e987);}catch{return _0x22eb45=_0x49e987,null;}})[_0xfffd04(0x1db)](_0x2b3f75=>null!==_0x2b3f75);_0x4789d4[_0xfffd04(0x1bc)]&&(_0x6d8c2+=_0x4789d4[_0xfffd04(0x1b4)](_0x36ddb7=>this[_0xfffd04(0x1bd)](_0x36ddb7,_0x22582c))[_0xfffd04(0x1e7)](''),_0x584308(_0x6d8c2));}return Promise[_0xfffd04(0x1f2)]();}async[_0x2b5360(0x1b5)](_0x2838bc,_0x17d393,_0x5b4c93){const _0x239fa8=_0x2b5360;let _0x6bc92a;return _0x6bc92a=_0x2838bc instanceof Response?await _0x2838bc[_0x239fa8(0x1b7)]():JSON[_0x239fa8(0x1ee)](new TextDecoder(_0x239fa8(0x1d6))[_0x239fa8(0x1d8)](_0x2838bc[_0x239fa8(0x1f6)])),(_0x5b4c93(this[_0x239fa8(0x1bd)](_0x6bc92a,_0x17d393)),Promise[_0x239fa8(0x1f2)]());}[_0x2b5360(0x1bd)](_0xc78f0f,_0xfc30ca){const _0x5d8246=_0x2b5360;switch(this[_0x5d8246(0x1cf)](_0xfc30ca)){case _0x5d8246(0x1a8):return _0xc78f0f[_0x5d8246(0x1b0)];case _0x5d8246(0x1e5):return _0xc78f0f[_0x5d8246(0x1e3)][0x0][_0x5d8246(0x1ed)][_0x5d8246(0x1ce)];case _0x5d8246(0x1ec):return _0xc78f0f[_0x5d8246(0x1cd)][0x0][_0x5d8246(0x1ce)];case _0x5d8246(0x1ae):return _0xc78f0f[_0x5d8246(0x1f4)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5a8e(_0x33cc69,_0x2bf739){const _0x4d3df2=_0x4d3d();return _0x5a8e=function(_0x5a8e94,_0x558449){_0x5a8e94=_0x5a8e94-0x10f;let _0x3a36f6=_0x4d3df2[_0x5a8e94];return _0x3a36f6;},_0x5a8e(_0x33cc69,_0x2bf739);}function _0x4d3d(){const _0x14419f=['parse','define','json','AI_ERROR_MODERATION','Instruction:\x0a','getReader','9309162apXSmc','read','choices','decode','[DONE]','1089033gUwUnu','content','editor','user','reject','ai.assistant.adapter.openAI.requestHeaders','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.','split','3481180eQvkqS','sendRequest','POST','5sinVri','delta','_cleanUpData','map','gpt-4o','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_prepareRequestHeaders','_requestParameters','join','456GkqJWh','257IoGtgn','103202fVcXZT','pluginName','AI_ERROR_CONTEXT_LENGTH','Moderation','message','abortController','locale','https://api.openai.com/v1/chat/completions','length','system','ai.assistant.adapter.openAI.apiUrl','context_length_exceeded','_readStaticResponse','stream','stringify','63081rKIcVf','body','_apiUrl','filter','text','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.','_readStreamableResponse','OpenAITextAdapter','data:\x20','prepareMessages','resolve','_requestHeaders','get','890MZbFur','2667eNCPxa','replace','signal','config','10874GtaZEp','includes','1644Arldny','_isBufferIncomplete','ai.assistant.adapter.openAI.requestParameters','_prepareRequestParameters'];_0x4d3d=function(){return _0x14419f;};return _0x4d3d();}const _0x3609eb=_0x5a8e;(function(_0x1870f8,_0x1369b9){const _0x149a02=_0x5a8e,_0x4ce8e0=_0x1870f8();while(!![]){try{const _0xe17ef5=parseInt(_0x149a02(0x13a))/0x1*(-parseInt(_0x149a02(0x114))/0x2)+-parseInt(_0x149a02(0x125))/0x3+-parseInt(_0x149a02(0x12d))/0x4*(parseInt(_0x149a02(0x130))/0x5)+parseInt(_0x149a02(0x120))/0x6+-parseInt(_0x149a02(0x110))/0x7*(parseInt(_0x149a02(0x139))/0x8)+parseInt(_0x149a02(0x14a))/0x9*(parseInt(_0x149a02(0x10f))/0xa)+-parseInt(_0x149a02(0x13b))/0xb*(-parseInt(_0x149a02(0x116))/0xc);if(_0xe17ef5===_0x1369b9)break;else _0x4ce8e0['push'](_0x4ce8e0['shift']());}catch(_0x2961ae){_0x4ce8e0['push'](_0x4ce8e0['shift']());}}}(_0x4d3d,0xc558a));import{AITextAdapter as _0x38eff1}from'./aitextadapter.js';import{AIRequestError as _0x8cab23}from'./aiadapter.js';import{getTranslation as _0x5d3fec}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x38eff1{[_0x3609eb(0x14c)];[_0x3609eb(0x155)];[_0x3609eb(0x137)];static get[_0x3609eb(0x13c)](){const _0xd1e7f=_0x3609eb;return _0xd1e7f(0x151);}constructor(_0x5cd1ab){const _0x1c3c5d=_0x3609eb;super(_0x5cd1ab),_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x11b)](_0x1c3c5d(0x145),_0x1c3c5d(0x142)),_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x118))||_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x11b)](_0x1c3c5d(0x118),{'model':_0x1c3c5d(0x134),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1c3c5d(0x14c)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x145)),this[_0x1c3c5d(0x155)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x12a))||{},this[_0x1c3c5d(0x137)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x118));}async[_0x3609eb(0x12e)]({query:_0xe5f788,context:_0xbbffd1,onData:_0x345116,actionId:_0x2e3b09}){const _0x5aa23e=_0x3609eb,_0x5114fc=this[_0x5aa23e(0x127)][_0x5aa23e(0x141)],_0x4c28fc=await this[_0x5aa23e(0x153)](_0xe5f788,_0xbbffd1,_0x2e3b09),_0x3aa2b4=await this[_0x5aa23e(0x136)](this[_0x5aa23e(0x155)],_0x2e3b09),_0x5198b4=await this[_0x5aa23e(0x119)](this[_0x5aa23e(0x137)],_0x2e3b09),_0x159b8b={'messages':_0x4c28fc,..._0x5198b4},_0x476654={'method':_0x5aa23e(0x12f),'headers':_0x3aa2b4,'body':JSON[_0x5aa23e(0x149)](_0x159b8b),'signal':this[_0x5aa23e(0x140)][_0x5aa23e(0x112)]},_0x295381=await fetch(this[_0x5aa23e(0x14c)],_0x476654);if(_0x295381['ok'])return _0x5198b4[_0x5aa23e(0x148)]?await this[_0x5aa23e(0x150)](_0x295381,_0x345116):await this[_0x5aa23e(0x147)](_0x295381,_0x345116),Promise[_0x5aa23e(0x154)]();{const _0x51266a=await _0x295381[_0x5aa23e(0x14e)]();return _0x51266a[_0x5aa23e(0x115)](_0x5aa23e(0x146))?Promise[_0x5aa23e(0x129)](new _0x8cab23(_0x5d3fec(_0x5114fc,_0x5aa23e(0x13d)))):_0x51266a[_0x5aa23e(0x115)](_0x5aa23e(0x13e))?Promise[_0x5aa23e(0x129)](new _0x8cab23(_0x5d3fec(_0x5114fc,_0x5aa23e(0x11d)))):Promise[_0x5aa23e(0x129)](new Error(_0x51266a));}}async[_0x3609eb(0x153)](_0xf38d32,_0x5a86f6,_0x465b7){const _0x3ce928=_0x3609eb;let _0x114d30,_0x457935;return _0x5a86f6?(_0x114d30=_0x3ce928(0x12b),_0x457935=_0x3ce928(0x11e)+_0xf38d32+_0x3ce928(0x135)+_0x5a86f6):(_0x114d30=_0x3ce928(0x14f),_0x457935=_0xf38d32),[{'role':_0x3ce928(0x144),'content':_0x114d30},{'role':_0x3ce928(0x128),'content':_0x457935}];}async[_0x3609eb(0x150)](_0x1804da,_0x3ad26e){const _0x2fb02d=_0x3609eb,_0x18f289=_0x1804da[_0x2fb02d(0x14b)][_0x2fb02d(0x11f)](),_0x5b9929=new TextDecoder();let _0x232fc2='',_0x54f76f='',_0x5629bf='',_0x40c7c5=!0x1;for(;!_0x40c7c5;){const {done:_0x5a9c07,value:_0x33d6d2}=await _0x18f289[_0x2fb02d(0x121)](),_0x10f8e2=_0x232fc2+_0x5b9929[_0x2fb02d(0x123)](_0x33d6d2);let _0x274fa2='';_0x40c7c5=_0x5a9c07;try{_0x274fa2=this[_0x2fb02d(0x132)](_0x10f8e2),_0x232fc2='';}catch{_0x232fc2=_0x10f8e2;continue;}_0x54f76f+=_0x274fa2,!_0x40c7c5&&this[_0x2fb02d(0x117)](_0x54f76f)||_0x54f76f&&(_0x5629bf+=_0x54f76f,_0x54f76f='',_0x3ad26e(_0x5629bf));}return Promise[_0x2fb02d(0x154)]();}async[_0x3609eb(0x147)](_0x2f77b9,_0x2cb31a){const _0x35c0f3=_0x3609eb;return _0x2cb31a((await _0x2f77b9[_0x35c0f3(0x11c)]())[_0x35c0f3(0x122)][0x0][_0x35c0f3(0x13f)][_0x35c0f3(0x126)]),Promise[_0x35c0f3(0x154)]();}[_0x3609eb(0x117)](_0x48ed8a){const _0x587291=_0x3609eb,_0x185bca=_0x48ed8a[_0x587291(0x12c)]('<')[_0x587291(0x143)]!==_0x48ed8a[_0x587291(0x12c)]('>')[_0x587291(0x143)],_0x19ec46=_0x48ed8a[_0x587291(0x143)]<0x1e;return _0x185bca&&_0x19ec46;}[_0x3609eb(0x132)](_0x1fde64){const _0x3bedf9=_0x3609eb;return _0x1fde64[_0x3bedf9(0x12c)](/\n(?![^{]*\})/g)[_0x3bedf9(0x133)](_0x457144=>_0x457144[_0x3bedf9(0x111)](_0x3bedf9(0x152),''))[_0x3bedf9(0x14d)](_0x59a024=>_0x59a024&&_0x59a024[_0x3bedf9(0x143)]>0x0&&_0x3bedf9(0x124)!==_0x59a024)[_0x3bedf9(0x133)](_0x2948b6=>{const _0x115bd0=_0x3bedf9,{choices:_0x4fb3ea}=JSON[_0x115bd0(0x11a)](_0x2948b6);if(_0x4fb3ea[0x0]?.[_0x115bd0(0x131)]?.[_0x115bd0(0x126)])return _0x4fb3ea[0x0][_0x115bd0(0x131)][_0x115bd0(0x126)];})[_0x3bedf9(0x14d)](_0x35428c=>_0x35428c)[_0x3bedf9(0x138)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28869f=_0x31fc;(function(_0x5283ba,_0x5b02c2){const _0x43baa9=_0x31fc,_0x46b4f8=_0x5283ba();while(!![]){try{const _0x3e910b=-parseInt(_0x43baa9(0x14d))/0x1*(-parseInt(_0x43baa9(0x16e))/0x2)+parseInt(_0x43baa9(0x18e))/0x3+parseInt(_0x43baa9(0x18b))/0x4*(parseInt(_0x43baa9(0x17d))/0x5)+-parseInt(_0x43baa9(0x14f))/0x6*(parseInt(_0x43baa9(0x143))/0x7)+parseInt(_0x43baa9(0x15f))/0x8*(-parseInt(_0x43baa9(0x17c))/0x9)+parseInt(_0x43baa9(0x15a))/0xa+parseInt(_0x43baa9(0x193))/0xb*(-parseInt(_0x43baa9(0x186))/0xc);if(_0x3e910b===_0x5b02c2)break;else _0x46b4f8['push'](_0x46b4f8['shift']());}catch(_0x32c09f){_0x46b4f8['push'](_0x46b4f8['shift']());}}}(_0x219b,0x8505a));import{Plugin as _0x481307}from'ckeditor5/src/core.js';function _0x31fc(_0xada52e,_0x32b267){const _0x219b65=_0x219b();return _0x31fc=function(_0x31fc8f,_0x1ff4d7){_0x31fc8f=_0x31fc8f-0x12a;let _0x4ebd94=_0x219b65[_0x31fc8f];return _0x4ebd94;},_0x31fc(_0xada52e,_0x32b267);}import{AIAssistantUI as _0x416f73}from'./aiassistantui.js';import{AIAssistantEditing as _0x9b57f}from'./aiassistantediting.js';import{getTranslation as _0x3f7e31}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x54a2c3}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x481307{static get[_0x28869f(0x158)](){return[_0x416f73,_0x9b57f];}static get[_0x28869f(0x140)](){const _0x431ce0=_0x28869f;return _0x431ce0(0x14e);}static get[_0x28869f(0x185)](){return!0x0;}static get[_0x28869f(0x175)](){return!0x0;}constructor(_0x3c0042){const _0x3a42d1=_0x28869f;super(_0x3c0042);const _0xe1b17a=_0x3c0042[_0x3a42d1(0x177)],_0x3398f7=_0x3c0042[_0x3a42d1(0x147)];_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x180),!0x0),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x16b),getDefaultAICommands(_0x3398f7)),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x165),[]),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x132),[]);let _0x4fd0bd=_0x54a2c3(_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x16b)),_0x3398f7);const _0x4e40e8=_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x165)),_0x4dbb6e=_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x132));_0x4e40e8[_0x3a42d1(0x13b)](_0x2ae76a=>{const _0x51b3d6=_0x3a42d1,_0x5d52f8=_0x4fd0bd[_0x51b3d6(0x153)](_0x31e5b9=>_0x31e5b9[_0x51b3d6(0x196)]===_0x2ae76a[_0x51b3d6(0x196)]);_0x5d52f8?_0x5d52f8[_0x51b3d6(0x163)]=_0x5d52f8[_0x51b3d6(0x163)][_0x51b3d6(0x16c)](_0x2ae76a[_0x51b3d6(0x163)]):_0x4fd0bd[_0x51b3d6(0x173)](_0x2ae76a);}),_0x4fd0bd=_0x4fd0bd[_0x3a42d1(0x13e)](_0x3e172c=>!_0x4dbb6e[_0x3a42d1(0x135)](_0x3e172c[_0x3a42d1(0x196)])),_0x4fd0bd[_0x3a42d1(0x13b)](_0x43702=>{const _0x52f042=_0x3a42d1;_0x43702[_0x52f042(0x163)]=_0x43702[_0x52f042(0x163)][_0x52f042(0x13e)](_0x51ddb3=>!_0x4dbb6e[_0x52f042(0x135)](_0x51ddb3['id']));}),_0xe1b17a[_0x3a42d1(0x159)](_0x3a42d1(0x16b),_0x4fd0bd);}}function _0x219b(){const _0x397fab=['ai.assistant.removeCommands','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Improve\x20writing','includes','Hindi','Legal','translateHindi','Friendly','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','forEach','friendly','Continue','filter','Translate','pluginName','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','translatePortuguese','15491DgpbRQ','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','English','translate','locale','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Portuguese','continue','Make\x20shorter','854893BdyEOB','AIAssistant','156LVPevR','Summarize','Change\x20tone','changeTone','find','Spanish','Generate\x20from\x20selection','Make\x20longer','Business','requires','set','7489900FiWZZM','translateSpanish','summarize','translateEnglish','Casual','2848LaKlRV','Simplified\x20Chinese','define','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','commands','makeLonger','ai.assistant.extraCommandGroups','confident','journalism','French','Edit\x20or\x20review','editOrReview','ai.assistant.commands','concat','generate','2MslaxB','changeStyle','Journalism','simplifyLanguage','German','push','Translate\x20the\x20content\x20to\x20Spanish\x20language.','isPremiumPlugin','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','config','Arabic','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Poetic','8892mtxuIK','485JnExim','Professional','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.preserveComments','Direct','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','isOfficialPlugin','3242628TiwNTx','poetic','business','casual','translateChinese','32520ZvrmNX','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','2980806FXiKID','Confident','makeShorter','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','professional','99NKVmEY','translateFrench','Translate\x20the\x20content\x20to\x20English\x20language.','groupId','legal','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','get','direct','Simplify\x20language','translateGerman','translateArabic','improveWriting','Change\x20style','Translate\x20the\x20content\x20to\x20Portuguese\x20language.'];_0x219b=function(){return _0x397fab;};return _0x219b();}export function getDefaultAICommands(_0x404033){const _0x571fce=_0x28869f;return[{'groupId':_0x571fce(0x16a),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x169)),'commands':[{'id':_0x571fce(0x12f),'label':_0x3f7e31(_0x404033,_0x571fce(0x134)),'prompt':_0x571fce(0x141)},{'id':_0x571fce(0x190),'label':_0x3f7e31(_0x404033,_0x571fce(0x14c)),'prompt':_0x571fce(0x162)},{'id':_0x571fce(0x164),'label':_0x3f7e31(_0x404033,_0x571fce(0x156)),'prompt':_0x571fce(0x13a)},{'id':_0x571fce(0x171),'label':_0x3f7e31(_0x404033,_0x571fce(0x12c)),'prompt':_0x571fce(0x144)}]},{'groupId':_0x571fce(0x16d),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x155)),'commands':[{'id':_0x571fce(0x15c),'label':_0x3f7e31(_0x404033,_0x571fce(0x150)),'prompt':_0x571fce(0x133)},{'id':_0x571fce(0x14b),'label':_0x3f7e31(_0x404033,_0x571fce(0x13d)),'prompt':_0x571fce(0x176)}]},{'groupId':_0x571fce(0x152),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x151)),'commands':[{'id':_0x571fce(0x192),'label':_0x3f7e31(_0x404033,_0x571fce(0x17e)),'prompt':_0x571fce(0x179)},{'id':_0x571fce(0x189),'label':_0x3f7e31(_0x404033,_0x571fce(0x15e)),'prompt':_0x571fce(0x149)},{'id':_0x571fce(0x12b),'label':_0x3f7e31(_0x404033,_0x571fce(0x181)),'prompt':_0x571fce(0x18c)},{'id':_0x571fce(0x166),'label':_0x3f7e31(_0x404033,_0x571fce(0x18f)),'prompt':_0x571fce(0x184)},{'id':_0x571fce(0x13c),'label':_0x3f7e31(_0x404033,_0x571fce(0x139)),'prompt':_0x571fce(0x17f)}]},{'groupId':_0x571fce(0x16f),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x130)),'commands':[{'id':_0x571fce(0x188),'label':_0x3f7e31(_0x404033,_0x571fce(0x157)),'prompt':_0x571fce(0x191)},{'id':_0x571fce(0x197),'label':_0x3f7e31(_0x404033,_0x571fce(0x137)),'prompt':_0x571fce(0x182)},{'id':_0x571fce(0x167),'label':_0x3f7e31(_0x404033,_0x571fce(0x170)),'prompt':_0x571fce(0x198)},{'id':_0x571fce(0x187),'label':_0x3f7e31(_0x404033,_0x571fce(0x17b)),'prompt':_0x571fce(0x18d)}]},{'groupId':_0x571fce(0x146),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x13f)),'commands':[{'id':_0x571fce(0x15d),'label':_0x3f7e31(_0x404033,_0x571fce(0x145)),'prompt':_0x571fce(0x195)},{'id':_0x571fce(0x15b),'label':_0x3f7e31(_0x404033,_0x571fce(0x154)),'prompt':_0x571fce(0x174)},{'id':_0x571fce(0x142),'label':_0x3f7e31(_0x404033,_0x571fce(0x14a)),'prompt':_0x571fce(0x131)},{'id':_0x571fce(0x12d),'label':_0x3f7e31(_0x404033,_0x571fce(0x172)),'prompt':_0x571fce(0x148)},{'id':_0x571fce(0x194),'label':_0x3f7e31(_0x404033,_0x571fce(0x168)),'prompt':_0x571fce(0x199)},{'id':_0x571fce(0x18a),'label':_0x3f7e31(_0x404033,_0x571fce(0x160)),'prompt':_0x571fce(0x19a)},{'id':_0x571fce(0x138),'label':_0x3f7e31(_0x404033,_0x571fce(0x136)),'prompt':_0x571fce(0x183)},{'id':_0x571fce(0x12e),'label':_0x3f7e31(_0x404033,_0x571fce(0x178)),'prompt':_0x571fce(0x17a)}]}];}
|