@ckeditor/ckeditor5-ai 47.7.0-alpha.4 → 47.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.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/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/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.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/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.7.0
|
|
3
|
+
"version": "47.7.0",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"dist/translations/*.umd.js"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.7.0
|
|
32
|
-
"@ckeditor/ckeditor5-cloud-services": "47.7.0
|
|
33
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.7.0
|
|
34
|
-
"@ckeditor/ckeditor5-core": "47.7.0
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "47.7.0
|
|
36
|
-
"@ckeditor/ckeditor5-icons": "47.7.0
|
|
37
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.7.0
|
|
38
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.7.0
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.7.0
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.7.0
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.7.0
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.7.0
|
|
43
|
-
"ckeditor5": "47.7.0
|
|
44
|
-
"ckeditor5-collaboration": "47.7.0
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.7.0",
|
|
32
|
+
"@ckeditor/ckeditor5-cloud-services": "47.7.0",
|
|
33
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.7.0",
|
|
34
|
+
"@ckeditor/ckeditor5-core": "47.7.0",
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.7.0",
|
|
36
|
+
"@ckeditor/ckeditor5-icons": "47.7.0",
|
|
37
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.7.0",
|
|
38
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.7.0",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.7.0",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.7.0",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.7.0",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.7.0",
|
|
43
|
+
"ckeditor5": "47.7.0",
|
|
44
|
+
"ckeditor5-collaboration": "47.7.0",
|
|
45
45
|
"diff": "8.0.3",
|
|
46
46
|
"dom-serializer": "2.0.0",
|
|
47
47
|
"domhandler": "5.0.3",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39b78a=_0x2d50;(function(_0x1b861d,_0xd62f2){const _0x26f244=_0x2d50,_0x19a92d=_0x1b861d();while(!![]){try{const _0x5ba0a1=-parseInt(_0x26f244(0x193))/0x1+-parseInt(_0x26f244(0x168))/0x2+-parseInt(_0x26f244(0x239))/0x3*(-parseInt(_0x26f244(0x234))/0x4)+parseInt(_0x26f244(0x169))/0x5+-parseInt(_0x26f244(0x1b4))/0x6+parseInt(_0x26f244(0x167))/0x7*(parseInt(_0x26f244(0x165))/0x8)+parseInt(_0x26f244(0x186))/0x9;if(_0x5ba0a1===_0xd62f2)break;else _0x19a92d['push'](_0x19a92d['shift']());}catch(_0x6c27a4){_0x19a92d['push'](_0x19a92d['shift']());}}}(_0x49c9,0x6a792));import{Plugin as _0x5a9e93}from'ckeditor5/src/core.js';function _0x49c9(){const _0x4bc5e5=['_refreshInteraction','_interactionParams','clone','insert','stickiness','_setupApplyListeners','Error\x20updating\x20content\x20in\x20replyContentUpdated:','version','showLoader','TrackChanges','signal','filter','showPrevious','startsWith','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_displayInteractionAtIndex','_navigateToPrevious','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','createPositionAfter','_getExecuteDataRegular','4276878OJBpQk','random','replies','_appendChild','updateMiniToolbarButtons','isPremiumPlugin','set','AIBalloon','getRanges','isTableSelection','nodeAfter','Error\x20refreshing\x20interaction:','TableSelection','_aiConnector','parent','addOperation','nextSibling','setChangeGroupState','ai.availableReplyActions','resetShowChangesButton','accepted','getRoot','get','operationsA','merge','reinsert','has','_interaction','hideError','AIActions','containsRange','includes','selection','setIsLoading','_clearLoadingState','stopListening','interactionFinished','_executeAction','_clone','abort','modelToDataWithIds','upsertCustomAIActionRating','open','documentContextContent','_createActionsBalloonView','remove','ck-ai-actions-balloon','_copyMarkersToFragment','getAncestors','_promiseQueue','TrackChangesEditing','slice','updateContent','map','selectionRemoved','createPositionAt','getChild','attachToDom','type','message','bind','createRange','rejected','_interactions','_isAbortError','getSelectedTableCells','icon','length','setErrorState','applySuggestion','catch','max','getFirstRange','isEqual','plugins','config','range','value','aiActionsBalloon','_regularCalculateMarkerPath','dialogClosed','replyCreated','start','getSelectedContent','requires','state','tryAgain','_applyChanges','getSelectedBlocks','stopAutoScroll','actionName','_actionsBalloonView','focus','error','listenTo','enqueue','commands','stopInteraction','hideLoader','queueEmptyPromise','pending','executeAction','toggleIsLoading','model','AIConnector','baseVersion','stop','Error\x20updating\x20content\x20in\x20replyCreated:','affectsData','indexOf','_execute','_currentInteractionIndex','root','setSelection','_clearErrorState','Attribute','isCollapsed','end','hasError','move','ai-no-track-changes','sourcePosition','getChildAtOffset','static','getRange','replyChangeGroupStateUpdated','applyOperation','$graveyard','4INcccl','some','_balloonShowDiff','_setLoadingState','schema','1610913eodpEQ','history','getCommonAncestor','createPositionFromPath','toggleSuggestionDisplayMode','position','document','5440432pzvExT','push','7Zfungm','1284160XKeiHk','3051400NGlinK','startAutoScroll','_bodyCollection','_wrapWithCommonAncestors','_getExecuteDataInTable','replyContentUpdated','insertSuggestion','createPositionBefore','_applyOperationsAsSuggestions','_anchorOperation','AI_ACTIONS_GENERIC_ERROR','isBusy','trackChanges','_createInteraction','editor','clearContent','rootName','upsertAIActionRating','streaming','markers','_navigateToNext','howMany','batch','close','ai-request-aborted','showNext','rename','path','change','2986722wbKrIH','split','getOperations','showError','documentFragment','actionCallId','locale','getDocumentContext','changeGroups','isDocumentOperation','_filterOperationsOutsideRange','from','name','368156TadRSv','_stopInteraction','_setErrorState','disableMiniToolbarButtons','_clearInteractionHistory','isTrackChangesOn','getSelectionAsFragment','pluginName','destroy','getLimitElement','detachFromDom'];_0x49c9=function(){return _0x4bc5e5;};return _0x49c9();}import{AIConnector as _0x37a546}from'../aicore/aiconnector.js';import{Dialog as _0x35be38,BodyCollection as _0xad18fc}from'ckeditor5/src/ui.js';import{AIEditing as _0x253c90,AI_VISUAL_SELECTION_MARKER_NAME as _0x5d7dd5}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x210b4f}from'./model/aiactionsinteraction.js';function _0x2d50(_0xf63a15,_0x400174){const _0x49c9ed=_0x49c9();return _0x2d50=function(_0x2d50a2,_0x358f7f){_0x2d50a2=_0x2d50a2-0x163;let _0x259721=_0x49c9ed[_0x2d50a2];return _0x259721;},_0x2d50(_0xf63a15,_0x400174);}import{CKEditorError as _0x56f853,first as _0x47ac9c}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1ca7cb}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x51d297}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x11da78}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5a4f0f}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x3474c2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x457664}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5a6df1,getOperationsFromReply as _0x4d3d11}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x3fa4fc,ModelRange as _0x285c52,ModelPosition as _0x3d1c3e,_DetachOperation as _0x3a726e,transformOperationSets as _0x4e474c}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x528dd0}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x59ee4f}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x5a9e93{static get[_0x39b78a(0x208)](){return[_0x37a546,_0x35be38,_0x253c90,_0x51d297,_0x457664];}static get[_0x39b78a(0x19a)](){const _0x940975=_0x39b78a;return _0x940975(0x1d1);}static get[_0x39b78a(0x1b0)](){return!0x0;}static get[_0x39b78a(0x1b9)](){return!0x0;}[_0x39b78a(0x1c1)];[_0x39b78a(0x1f3)]=[];[_0x39b78a(0x223)]=0x0;[_0x39b78a(0x19f)];[_0x39b78a(0x236)]=!0x1;[_0x39b78a(0x1e5)];[_0x39b78a(0x16b)];get[_0x39b78a(0x1cf)](){const _0xe43bb3=_0x39b78a;return this[_0xe43bb3(0x1f3)][this[_0xe43bb3(0x1f3)][_0xe43bb3(0x1f7)]-0x1];}[_0x39b78a(0x20f)];constructor(_0x4979cb){const _0x2006f7=_0x39b78a;super(_0x4979cb),this[_0x2006f7(0x16b)]=new _0xad18fc(this[_0x2006f7(0x177)][_0x2006f7(0x18c)]),this[_0x2006f7(0x16b)][_0x2006f7(0x1ed)](),this[_0x2006f7(0x1c1)]=this[_0x2006f7(0x177)][_0x2006f7(0x1fe)][_0x2006f7(0x1ca)](_0x2006f7(0x21c)),this[_0x2006f7(0x1ba)](_0x2006f7(0x174),!0x1),this[_0x2006f7(0x1e5)]=new _0x11da78();}[_0x39b78a(0x215)](){const _0x28f204=_0x39b78a;this[_0x28f204(0x194)]();}async[_0x39b78a(0x219)](_0x40cd93,_0x2dfd5e,_0x57bfe6){const _0x299600=_0x39b78a;if(this[_0x299600(0x194)](),this[_0x299600(0x177)][_0x299600(0x1fe)][_0x299600(0x1ce)](_0x299600(0x1c0))){if(this[_0x299600(0x177)][_0x299600(0x1fe)][_0x299600(0x1ca)](_0x299600(0x1c0))[_0x299600(0x1f5)]()){const {modelFragment:_0x281b21,anchorData:_0x5c55a2}=this[_0x299600(0x16d)]();return this[_0x299600(0x1d9)](_0x40cd93,_0x281b21,_0x5c55a2,_0x2dfd5e,_0x57bfe6);}}const {modelFragment:_0x2a4075,anchorData:_0x5ce096}=this[_0x299600(0x1b3)]();return this[_0x299600(0x1d9)](_0x40cd93,_0x2a4075,_0x5ce096,_0x2dfd5e,_0x57bfe6);}async[_0x39b78a(0x19b)](){const _0x8594f3=_0x39b78a;return this[_0x8594f3(0x194)](),this[_0x8594f3(0x16b)][_0x8594f3(0x19d)](),super[_0x8594f3(0x19b)]();}[_0x39b78a(0x1e0)](){const _0x3fc532=_0x39b78a,_0x7b2763=this[_0x3fc532(0x177)][_0x3fc532(0x1fe)][_0x3fc532(0x1ce)](_0x3fc532(0x1a7));let _0x2aaf7a=this[_0x3fc532(0x177)][_0x3fc532(0x1ff)][_0x3fc532(0x1ca)](_0x3fc532(0x1c6))||[..._0x528dd0];_0x7b2763||(_0x2aaf7a=_0x2aaf7a[_0x3fc532(0x1a9)](_0x554975=>_0x3fc532(0x16f)!=_0x554975));const _0x56a0eb=this[_0x3fc532(0x177)][_0x3fc532(0x214)][_0x3fc532(0x1ca)](_0x3fc532(0x175)),_0x2a941e=new _0x59ee4f(this[_0x3fc532(0x177)][_0x3fc532(0x18c)],{'showApplyButton':!0x0,'showSuggestButton':_0x7b2763,'miniToolbarConfig':{'showChanges':_0x3fc532(0x1f6)},'availableActions':_0x2aaf7a});return _0x2a941e[_0x3fc532(0x1f0)](_0x3fc532(0x174))['to'](this),_0x56a0eb&&_0x2a941e[_0x3fc532(0x1f0)](_0x3fc532(0x198))['to'](_0x56a0eb,_0x3fc532(0x201)),_0x2a941e['on'](_0x3fc532(0x20a),()=>{const _0x12ea53=_0x3fc532;this[_0x12ea53(0x19e)]();}),_0x2a941e['on'](_0x3fc532(0x1aa),()=>{const _0x272686=_0x3fc532;this[_0x272686(0x1ae)]();}),_0x2a941e['on'](_0x3fc532(0x182),()=>{const _0x33e0cc=_0x3fc532;this[_0x33e0cc(0x17d)]();}),_0x2a941e;}[_0x39b78a(0x1b3)](){const _0x480d23=_0x39b78a,_0x277f=this[_0x480d23(0x177)][_0x480d23(0x21b)][_0x480d23(0x164)][_0x480d23(0x1d4)];if(_0x277f[_0x480d23(0x228)]){const _0x33912f=_0x47ac9c(_0x277f[_0x480d23(0x20c)]())||this[_0x480d23(0x177)][_0x480d23(0x21b)][_0x480d23(0x238)][_0x480d23(0x19c)](_0x277f);this[_0x480d23(0x177)][_0x480d23(0x21b)][_0x480d23(0x185)](_0x22edb6=>{const _0x4d712a=_0x480d23;_0x22edb6[_0x4d712a(0x225)](_0x33912f,'in');});}const _0x5a6131=_0x277f[_0x480d23(0x1fc)](),_0x56d54f=this[_0x480d23(0x16c)](this[_0x480d23(0x177)][_0x480d23(0x21b)][_0x480d23(0x207)](_0x277f),_0x5a6131[_0x480d23(0x206)],_0x5a6131[_0x480d23(0x229)]);this[_0x480d23(0x1e3)](_0x56d54f,_0x277f,{'isTableSelection':!0x1});const _0x40df27=_0x277f[_0x480d23(0x1fc)]()[_0x480d23(0x206)],_0x278638=new Map();let _0x1e7f85=_0x56d54f;for(let _0x4e4ca9=0x0;_0x4e4ca9<_0x40df27[_0x480d23(0x184)][_0x480d23(0x1f7)];_0x4e4ca9++)_0x278638[_0x480d23(0x1ba)](_0x1e7f85,_0x40df27[_0x480d23(0x184)][_0x4e4ca9]),_0x1e7f85=_0x1e7f85[_0x480d23(0x1ec)](0x0);return{'modelFragment':_0x56d54f,'anchorData':_0x278638};}[_0x39b78a(0x16d)](){const _0x36a99a=_0x39b78a,_0x31c9d4=this[_0x36a99a(0x177)][_0x36a99a(0x21b)][_0x36a99a(0x164)][_0x36a99a(0x1d4)],_0x2d22d6=this[_0x36a99a(0x177)][_0x36a99a(0x1fe)][_0x36a99a(0x1ca)](_0x36a99a(0x1c0))[_0x36a99a(0x199)](),_0x1f4946=_0x31c9d4[_0x36a99a(0x1fc)]()[_0x36a99a(0x206)][_0x36a99a(0x1c2)][_0x36a99a(0x1c2)],_0xef1bec=this[_0x36a99a(0x177)][_0x36a99a(0x21b)][_0x36a99a(0x1f1)](this[_0x36a99a(0x177)][_0x36a99a(0x21b)][_0x36a99a(0x170)](_0x1f4946),this[_0x36a99a(0x177)][_0x36a99a(0x21b)][_0x36a99a(0x1b2)](_0x1f4946)),_0x2ec1c1=this[_0x36a99a(0x16c)](_0x2d22d6,_0xef1bec[_0x36a99a(0x206)],_0xef1bec[_0x36a99a(0x229)]);this[_0x36a99a(0x1e3)](_0x2ec1c1,_0x31c9d4,{'isTableSelection':!0x0});const _0x26f3e5=_0x31c9d4[_0x36a99a(0x1fc)]()[_0x36a99a(0x206)],_0x1d2780=new Map();let _0x21a111=_0x2ec1c1;for(let _0x5a9534=0x0;_0x5a9534<_0x26f3e5[_0x36a99a(0x184)][_0x36a99a(0x1f7)];_0x5a9534++)if(_0x1d2780[_0x36a99a(0x1ba)](_0x21a111,_0x26f3e5[_0x36a99a(0x184)][_0x5a9534]),_0x5a9534<_0x26f3e5[_0x36a99a(0x184)][_0x36a99a(0x1f7)]-0x1)_0x21a111=_0x21a111[_0x36a99a(0x1ec)](0x0);else{let _0x4b9c52=_0x21a111[_0x36a99a(0x1c4)];for(;_0x4b9c52;)_0x1d2780[_0x36a99a(0x1ba)](_0x4b9c52,_0x26f3e5[_0x36a99a(0x184)][_0x5a9534]),_0x4b9c52=_0x4b9c52[_0x36a99a(0x1c4)];}return{'modelFragment':_0x2ec1c1,'anchorData':_0x1d2780};}async[_0x39b78a(0x1d9)](_0x578463,_0x4eece5,_0x1d73e4,_0x2ffe64,_0x520427){const _0x3bb479=_0x39b78a,_0x24ad46=this[_0x3bb479(0x177)][_0x3bb479(0x1fe)][_0x3bb479(0x1ca)](_0x253c90),_0x3a9ca8=this[_0x3bb479(0x177)][_0x3bb479(0x1fe)][_0x3bb479(0x1ca)](_0x51d297),_0x342551=this[_0x3bb479(0x177)][_0x3bb479(0x21b)][_0x3bb479(0x164)][_0x3bb479(0x1d4)],_0x5b16c8=await _0x24ad46[_0x3bb479(0x1dc)](_0x4eece5),_0x43d3a5=this[_0x3bb479(0x177)][_0x3bb479(0x21b)][_0x3bb479(0x164)][_0x3bb479(0x1a5)],_0x1ff64c=[..._0x342551[_0x3bb479(0x1bc)]()];return this[_0x3bb479(0x20f)]||(this[_0x3bb479(0x20f)]=this[_0x3bb479(0x1e0)]()),this[_0x3bb479(0x197)](),this[_0x3bb479(0x226)](),this[_0x3bb479(0x20f)][_0x3bb479(0x178)](),_0x3a9ca8[_0x3bb479(0x1de)]({'index':0x3e8*Math[_0x3bb479(0x1b5)]()%0x3e8,'title':_0x2ffe64,'icon':_0x520427||_0x1ca7cb,'mainView':this[_0x3bb479(0x20f)],'class':_0x3bb479(0x1e2),'ranges':_0x1ff64c,'id':_0x3bb479(0x202)}),this[_0x3bb479(0x237)](),this[_0x3bb479(0x1d7)](this[_0x3bb479(0x20f)]),this[_0x3bb479(0x1d7)](_0x3a9ca8),this[_0x3bb479(0x19f)]={'action':_0x578463,'content':_0x5b16c8,'version':_0x43d3a5,'aiBalloon':_0x3a9ca8,'modelFragment':_0x4eece5,'anchorData':_0x1d73e4},this[_0x3bb479(0x1a3)](),this[_0x3bb479(0x212)](_0x3a9ca8,_0x3bb479(0x1ea),()=>{const _0x2fe2f5=_0x3bb479;this[_0x2fe2f5(0x194)](),this[_0x2fe2f5(0x20f)][_0x2fe2f5(0x196)]();}),this[_0x3bb479(0x212)](_0x3a9ca8,_0x3bb479(0x204),(_0x20504d,{id:_0x30b2a0})=>{const _0x1f33bf=_0x3bb479;if(_0x1f33bf(0x202)===_0x30b2a0){if(this[_0x1f33bf(0x1cf)]&&this[_0x1f33bf(0x1cf)][_0x1f33bf(0x1b6)][_0x1f33bf(0x1f7)]>0x0){const _0x959bd8=this[_0x1f33bf(0x1cf)][_0x1f33bf(0x1b6)][this[_0x1f33bf(0x1cf)][_0x1f33bf(0x1b6)][_0x1f33bf(0x1f7)]-0x1],_0x42caa9=_0x959bd8[_0x1f33bf(0x18e)][0x0];_0x42caa9&&_0x1f33bf(0x218)===_0x42caa9[_0x1f33bf(0x209)]&&_0x959bd8[_0x1f33bf(0x1c5)](0x0,_0x1f33bf(0x1f2));}this[_0x1f33bf(0x194)](),this[_0x1f33bf(0x197)](),this[_0x1f33bf(0x1d7)](this[_0x1f33bf(0x20f)]),this[_0x1f33bf(0x1d7)](_0x3a9ca8);}}),this[_0x3bb479(0x176)](_0x5b16c8,_0x43d3a5,_0x3a9ca8,_0x578463);}[_0x39b78a(0x1a3)](){const _0x4ba8c2=_0x39b78a;if(!this[_0x4ba8c2(0x19f)])return;const {modelFragment:_0x5a0cfe,anchorData:_0xbc9bcc}=this[_0x4ba8c2(0x19f)];this[_0x4ba8c2(0x212)](this[_0x4ba8c2(0x20f)],_0x4ba8c2(0x1f9),()=>{const _0x438a52=_0x4ba8c2;this[_0x438a52(0x20b)](_0x5a0cfe,_0xbc9bcc,!0x1);}),this[_0x4ba8c2(0x212)](this[_0x4ba8c2(0x20f)],_0x4ba8c2(0x16f),()=>{const _0x57d6e4=_0x4ba8c2;this[_0x57d6e4(0x20b)](_0x5a0cfe,_0xbc9bcc,!0x0);});}[_0x39b78a(0x16c)](_0x386e37,_0x1af07e,_0x530d55){const _0x502b65=_0x39b78a,_0x4865bd=this[_0x502b65(0x177)][_0x502b65(0x21b)][_0x502b65(0x1f1)](_0x1af07e,_0x530d55)[_0x502b65(0x23b)](),_0x517088=_0x4865bd['is'](_0x502b65(0x18a))?[]:_0x4865bd[_0x502b65(0x1e4)]({'includeSelf':!0x0})[_0x502b65(0x1e7)](0x1);if(_0x517088[_0x502b65(0x1f7)]){const _0x29430e=_0x517088[_0x502b65(0x1e9)](_0x4b747b=>_0x4b747b[_0x502b65(0x1da)](!0x1));for(let _0x5a7e45=0x1;_0x5a7e45<_0x29430e[_0x502b65(0x1f7)];_0x5a7e45++)_0x29430e[_0x5a7e45-0x1][_0x502b65(0x1b7)](_0x29430e[_0x5a7e45]);return _0x29430e[_0x29430e[_0x502b65(0x1f7)]-0x1][_0x502b65(0x1b7)](_0x386e37),new _0x3fa4fc(_0x29430e[0x0]);}return _0x386e37;}[_0x39b78a(0x1e3)](_0x2a8697,_0x175fc3,_0x5beab4={'isTableSelection':!0x1}){const _0x2c8977=_0x39b78a,_0x484132=this[_0x2c8977(0x177)][_0x2c8977(0x21b)],_0x5151cf=Array[_0x2c8977(0x191)](_0x175fc3[_0x2c8977(0x1bc)]()),_0x317bea=_0x175fc3[_0x2c8977(0x1fc)]()[_0x2c8977(0x206)];for(const _0x19f420 of _0x484132[_0x2c8977(0x17c)]){if(_0x19f420[_0x2c8977(0x192)][_0x2c8977(0x1ab)](_0x5d7dd5)||!_0x19f420[_0x2c8977(0x220)])continue;const _0x77bee=_0x19f420[_0x2c8977(0x230)]();if(!_0x5151cf[_0x2c8977(0x235)](_0x324f05=>_0x324f05[_0x2c8977(0x1d2)](_0x77bee,!0x0)))continue;const _0x23a04c=this[_0x2c8977(0x203)](_0x77bee[_0x2c8977(0x206)],_0x317bea,_0x5beab4[_0x2c8977(0x1bd)]),_0x2ff76b=this[_0x2c8977(0x203)](_0x77bee[_0x2c8977(0x229)],_0x317bea,_0x5beab4[_0x2c8977(0x1bd)]),_0x22d68b=_0x484132[_0x2c8977(0x23c)](_0x2a8697,_0x23a04c),_0x208c3c=_0x484132[_0x2c8977(0x23c)](_0x2a8697,_0x2ff76b);if(!_0x22d68b[_0x2c8977(0x1fd)](_0x208c3c)){const _0xc13150=_0x484132[_0x2c8977(0x1f1)](_0x22d68b,_0x208c3c);_0x2a8697[_0x2c8977(0x17c)][_0x2c8977(0x1ba)](_0x19f420[_0x2c8977(0x192)],_0xc13150);}}}[_0x39b78a(0x203)](_0x42330e,_0x326f27,_0x37fe1f=!0x1){const _0x2bd0f4=_0x39b78a,_0x2d5361=[..._0x42330e[_0x2bd0f4(0x184)][_0x2bd0f4(0x1e7)]()];for(let _0x3f858d=0x0;_0x3f858d<Math[_0x2bd0f4(0x1fb)](_0x326f27[_0x2bd0f4(0x184)][_0x2bd0f4(0x1f7)],_0x42330e[_0x2bd0f4(0x184)][_0x2bd0f4(0x1f7)]);_0x3f858d++){const _0x40ed62=_0x326f27[_0x2bd0f4(0x184)][_0x3f858d]||0x0,_0x4a35f5=(_0x42330e[_0x2bd0f4(0x184)][_0x3f858d]||0x0)-_0x40ed62;if(_0x2d5361[_0x3f858d]=_0x4a35f5,0x0!==_0x4a35f5&&!_0x37fe1f)break;}return _0x2d5361;}async[_0x39b78a(0x176)](_0x57710d,_0x2195b7,_0x3bf813,_0x57d6f6){const _0x254f8b=_0x39b78a,_0x7a489f=this[_0x254f8b(0x177)];this[_0x254f8b(0x19f)]||(this[_0x254f8b(0x19f)]={'action':_0x57d6f6,'content':_0x57710d,'version':_0x2195b7,'aiBalloon':_0x3bf813,'modelFragment':this[_0x254f8b(0x177)][_0x254f8b(0x21b)][_0x254f8b(0x207)](this[_0x254f8b(0x177)][_0x254f8b(0x21b)][_0x254f8b(0x164)][_0x254f8b(0x1d4)]),'anchorData':new Map()});const _0x3377f0=new _0x210b4f({'connector':this[_0x254f8b(0x1c1)],'editor':_0x7a489f,'content':_0x57710d,'version':_0x2195b7,..._0x57d6f6});this[_0x254f8b(0x1f3)][_0x254f8b(0x166)](_0x3377f0);const _0x371ca5=(_0x11d880,_0x210fb4=!0x1,_0x25d258=_0x254f8b(0x17b))=>this[_0x254f8b(0x1e5)][_0x254f8b(0x213)](async _0x22cb21=>{const _0x22aaa7=_0x254f8b;try{const _0x5afb15=_0x3474c2({'editor':_0x7a489f,'changeGroups':_0x11d880[_0x22aaa7(0x18e)],'documentContextContent':_0x11d880[_0x22aaa7(0x1df)],'showDiff':_0x210fb4,'trimUnchanged':!0x1});_0x5afb15[_0x22aaa7(0x1f7)]&&await this[_0x22aaa7(0x20f)][_0x22aaa7(0x1e8)]({'part':_0x5afb15[0x0],'renderingStrategy':_0x25d258,'abortSignal':_0x22cb21});}catch(_0x114a5f){if(this[_0x22aaa7(0x1f4)](_0x114a5f))return;throw _0x114a5f;}});this[_0x254f8b(0x1cf)]['on'](_0x254f8b(0x205),(_0x5e77f4,_0x13a0a6)=>{const _0x2e5318=_0x254f8b;this[_0x2e5318(0x20f)][_0x2e5318(0x216)](),this[_0x2e5318(0x20f)][_0x2e5318(0x16a)](),_0x371ca5(_0x13a0a6)[_0x2e5318(0x1fa)](_0x394628=>{const _0x138006=_0x2e5318;this[_0x138006(0x1f4)](_0x394628)||(console[_0x138006(0x211)](_0x138006(0x21f),_0x394628),this[_0x138006(0x195)](_0x3377f0));});}),this[_0x254f8b(0x1cf)]['on'](_0x254f8b(0x16e),(_0x3d16e5,_0x1f4fce)=>{const _0x3fcbee=_0x254f8b;_0x371ca5(_0x1f4fce)[_0x3fcbee(0x1fa)](_0x2fbf5f=>{const _0x32be05=_0x3fcbee;this[_0x32be05(0x1f4)](_0x2fbf5f)||(console[_0x32be05(0x211)](_0x32be05(0x1a4),_0x2fbf5f),this[_0x32be05(0x195)](_0x3377f0));});}),this[_0x254f8b(0x1cf)]['on'](_0x254f8b(0x1d8),async()=>{const _0x3e6224=_0x254f8b;try{await this[_0x3e6224(0x1d6)](),this[_0x3e6224(0x20f)][_0x3e6224(0x1b8)](this[_0x3e6224(0x1f3)][_0x3e6224(0x1f7)],this[_0x3e6224(0x223)]),await this[_0x3e6224(0x1e5)][_0x3e6224(0x217)];}catch(_0x4a56bb){this[_0x3e6224(0x1f4)](_0x4a56bb)||(console[_0x3e6224(0x211)](_0x3e6224(0x1af),_0x4a56bb),this[_0x3e6224(0x195)](_0x3377f0));}finally{this[_0x3e6224(0x20f)][_0x3e6224(0x20d)]();}}),this[_0x254f8b(0x212)](this[_0x254f8b(0x20f)],_0x254f8b(0x23d),async(_0x31ce5b,{showDiff:_0x5d2a03})=>{const _0xc32365=_0x254f8b;try{this[_0xc32365(0x236)]=_0x5d2a03;const _0x522887=this[_0xc32365(0x1cf)][_0xc32365(0x1b6)][this[_0xc32365(0x1cf)][_0xc32365(0x1b6)][_0xc32365(0x1f7)]-0x1];_0x522887&&await _0x371ca5(_0x522887,_0x5d2a03,_0xc32365(0x22f));}catch(_0x448278){this[_0xc32365(0x1f4)](_0x448278)||(console[_0xc32365(0x211)](_0xc32365(0x1ac),_0x448278),this[_0xc32365(0x195)](_0x3377f0));}}),this[_0x254f8b(0x1cf)]['on'](_0x254f8b(0x231),(_0x325e55,{reply:_0x50549d})=>{const _0x232f43=_0x254f8b,_0x44fb62={'positiveCount':_0x50549d[_0x232f43(0x18e)][_0x232f43(0x1a9)](_0x146960=>_0x232f43(0x1c8)===_0x146960[_0x232f43(0x209)])[_0x232f43(0x1f7)],'totalCount':_0x50549d[_0x232f43(0x18e)][_0x232f43(0x1f7)]},_0x27232c=this[_0x232f43(0x1cf)][_0x232f43(0x18b)],_0x324953=this[_0x232f43(0x1cf)][_0x232f43(0x20e)];_0x324953?this[_0x232f43(0x1c1)][_0x232f43(0x17a)](_0x324953,_0x27232c,_0x44fb62):this[_0x232f43(0x1c1)][_0x232f43(0x1dd)](_0x27232c,_0x44fb62);}),this[_0x254f8b(0x237)]();try{const _0x1d6885=await this[_0x254f8b(0x1cf)][_0x254f8b(0x206)]();return this[_0x254f8b(0x20f)][_0x254f8b(0x1b8)](this[_0x254f8b(0x1f3)][_0x254f8b(0x1f7)],this[_0x254f8b(0x223)]),_0x1d6885;}catch(_0x462a64){if(this[_0x254f8b(0x1f4)](_0x462a64))return;this[_0x254f8b(0x20f)][_0x254f8b(0x216)](),this[_0x254f8b(0x195)](_0x3377f0);}}[_0x39b78a(0x20b)](_0x1a513d,_0x3484cb,_0x315c3a){const _0x35ad4c=_0x39b78a,_0x33bec1=this[_0x35ad4c(0x177)];if(_0x315c3a&&!_0x33bec1[_0x35ad4c(0x1fe)][_0x35ad4c(0x1ce)](_0x35ad4c(0x1a7)))throw new _0x56f853(_0x35ad4c(0x22c),null);const _0x4b252f=this[_0x35ad4c(0x177)][_0x35ad4c(0x1fe)][_0x35ad4c(0x1ca)](_0x457664),_0x513f86=this[_0x35ad4c(0x1f3)][this[_0x35ad4c(0x1f3)][_0x35ad4c(0x1f7)]-0x1-this[_0x35ad4c(0x223)]];if(!_0x513f86||!_0x513f86[_0x35ad4c(0x1b6)][_0x35ad4c(0x1f7)])return;const _0x5c46bb=_0x513f86[_0x35ad4c(0x1b6)][_0x513f86[_0x35ad4c(0x1b6)][_0x35ad4c(0x1f7)]-0x1],_0x575cff=_0x5c46bb[_0x35ad4c(0x18e)];_0x5c46bb[_0x35ad4c(0x1c5)](0x0,_0x35ad4c(0x1c8));let _0xc3cde=_0x4d3d11({'editor':_0x33bec1,'reply':_0x5c46bb,'interaction':_0x513f86,'groups':_0x575cff,'transform':!0x1,'documentCompare':_0x4b252f,'documentCompareOptions':{'anchor':_0x33bec1[_0x35ad4c(0x21b)][_0x35ad4c(0x1eb)](_0x1a513d,0x0),'markDeletions':_0x315c3a}});_0xc3cde=this[_0x35ad4c(0x190)](_0xc3cde,_0x3484cb);for(const _0x25cfb7 of _0xc3cde)this[_0x35ad4c(0x172)](_0x3484cb,_0x25cfb7,_0x33bec1[_0x35ad4c(0x21b)][_0x35ad4c(0x164)][_0x35ad4c(0x1c9)]());const _0x56bf82=_0x513f86[_0x35ad4c(0x18d)]()[_0x35ad4c(0x1a5)],_0x4b6878=_0x33bec1[_0x35ad4c(0x21b)][_0x35ad4c(0x164)][_0x35ad4c(0x23a)][_0x35ad4c(0x188)](_0x56bf82),_0x45374a={'document':_0x33bec1[_0x35ad4c(0x21b)][_0x35ad4c(0x164)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2815f4=_0x4e474c(_0xc3cde,_0x4b6878,_0x45374a)[_0x35ad4c(0x1cb)];_0x33bec1[_0x35ad4c(0x21b)][_0x35ad4c(0x185)](_0x48f304=>{const _0x4eb9d1=_0x35ad4c;if(_0x48f304[_0x4eb9d1(0x225)](_0x33bec1[_0x4eb9d1(0x21b)][_0x4eb9d1(0x164)][_0x4eb9d1(0x1d4)][_0x4eb9d1(0x210)]),_0x315c3a)_0x33bec1[_0x4eb9d1(0x1fe)][_0x4eb9d1(0x1ca)](_0x4eb9d1(0x1e6))[_0x4eb9d1(0x171)](_0x2815f4);else{for(const _0x49842f of _0x2815f4)_0x49842f[_0x4eb9d1(0x21d)]=_0x33bec1[_0x4eb9d1(0x21b)][_0x4eb9d1(0x164)][_0x4eb9d1(0x1a5)],_0x5a6df1(_0x33bec1,_0x49842f),_0x48f304[_0x4eb9d1(0x17f)][_0x4eb9d1(0x1c3)](_0x49842f),_0x33bec1[_0x4eb9d1(0x21b)][_0x4eb9d1(0x232)](_0x49842f);}}),this[_0x35ad4c(0x177)][_0x35ad4c(0x1fe)][_0x35ad4c(0x1ca)](_0x35ad4c(0x1bb))[_0x35ad4c(0x180)]();}[_0x39b78a(0x190)](_0x5a07da,_0x19a3e0){const _0xc55597=_0x39b78a;return _0x5a07da[_0xc55597(0x1a9)](_0x50dc60=>{const _0x4f6796=_0xc55597;if(_0x4f6796(0x183)==_0x50dc60[_0x4f6796(0x1ee)]){const _0xd9eae7=_0x50dc60[_0x4f6796(0x163)][_0x4f6796(0x1be)];return!_0x19a3e0[_0x4f6796(0x1ce)](_0xd9eae7);}if(_0x50dc60[_0x4f6796(0x1ee)][_0x4f6796(0x221)](_0x4f6796(0x227))>-0x1){const _0xc13a68=_0x50dc60[_0x4f6796(0x200)][_0x4f6796(0x206)][_0x4f6796(0x1be)];return!_0x19a3e0[_0x4f6796(0x1ce)](_0xc13a68);}return!0x0;});}[_0x39b78a(0x172)](_0x421915,_0x5b4302,_0x11a740){const _0x3278dd=_0x39b78a,_0x141221=_0x5b4302[_0x3278dd(0x1a0)]();for(const _0x5a8df3 in _0x5b4302){const _0x333112=_0x5b4302[_0x5a8df3];_0x333112 instanceof _0x285c52?_0x5b4302[_0x5a8df3]=new _0x285c52(_0x3d3787(_0x333112[_0x3278dd(0x206)]),_0x3d3787(_0x333112[_0x3278dd(0x229)])):_0x333112 instanceof _0x3d1c3e&&(_0x5b4302[_0x5a8df3]=_0x3d3787(_0x333112));}if([_0x3278dd(0x1a1),_0x3278dd(0x22b),_0x3278dd(0x1e1),_0x3278dd(0x1cd),_0x3278dd(0x187),_0x3278dd(0x1cc)][_0x3278dd(0x1d3)](_0x141221[_0x3278dd(0x1ee)])){if(_0x141221[_0x3278dd(0x18f)]=!0x1,_0x141221[_0x3278dd(0x21d)]=null,_0x3278dd(0x1e1)==_0x141221[_0x3278dd(0x1ee)]){const _0x1dde3a=_0x141221[_0x3278dd(0x22d)],_0x38cbce=_0x141221[_0x3278dd(0x17e)];new _0x3a726e(_0x1dde3a,_0x38cbce)[_0x3278dd(0x222)]();}else _0x141221[_0x3278dd(0x222)]();}function _0x3d3787(_0x4861bb){const _0x5f4d1a=_0x3278dd;if(_0x5f4d1a(0x233)==_0x4861bb[_0x5f4d1a(0x224)][_0x5f4d1a(0x179)])return _0x4861bb;const _0x5015b2=[];let _0x1e7a88=_0x4861bb[_0x5f4d1a(0x224)];for(let _0x1e526f=0x0;_0x1e526f<_0x4861bb[_0x5f4d1a(0x184)][_0x5f4d1a(0x1f7)];_0x1e526f++){const _0x15a168=_0x421915[_0x5f4d1a(0x1ca)](_0x1e7a88)||0x0;_0x5015b2[_0x1e526f]=_0x4861bb[_0x5f4d1a(0x184)][_0x1e526f]+_0x15a168,_0x1e7a88=_0x1e7a88[_0x5f4d1a(0x22e)](_0x4861bb[_0x5f4d1a(0x184)][_0x1e526f]);}return new _0x3d1c3e(_0x11a740,_0x5015b2,_0x4861bb[_0x5f4d1a(0x1a2)]);}}[_0x39b78a(0x19e)](){const _0x330f4d=_0x39b78a;if(!this[_0x330f4d(0x19f)])return;this[_0x330f4d(0x1f3)][_0x330f4d(0x1f7)]>0x0&&this[_0x330f4d(0x194)](),this[_0x330f4d(0x223)]=0x0,this[_0x330f4d(0x236)]=!0x1;const {action:_0x5e5dbb,content:_0x523b0f,version:_0x3bc50a,aiBalloon:_0x199430}=this[_0x330f4d(0x19f)];this[_0x330f4d(0x226)](),this[_0x330f4d(0x20f)][_0x330f4d(0x178)](),this[_0x330f4d(0x20f)][_0x330f4d(0x1a6)](),this[_0x330f4d(0x20f)][_0x330f4d(0x1c7)](),this[_0x330f4d(0x20f)][_0x330f4d(0x1b8)](this[_0x330f4d(0x1f3)][_0x330f4d(0x1f7)],this[_0x330f4d(0x223)]),this[_0x330f4d(0x1d7)](this[_0x330f4d(0x20f)]),this[_0x330f4d(0x1a3)](),this[_0x330f4d(0x176)](_0x523b0f,_0x3bc50a,_0x199430,_0x5e5dbb)[_0x330f4d(0x1fa)](_0x7fbae0=>{const _0x44241b=_0x330f4d;this[_0x44241b(0x1f4)](_0x7fbae0)||console[_0x44241b(0x211)](_0x44241b(0x1bf),_0x7fbae0);});}[_0x39b78a(0x1f4)](_0x198dc6){const _0x581000=_0x39b78a;return!!_0x198dc6[_0x581000(0x1ef)]&&_0x198dc6[_0x581000(0x1ef)][_0x581000(0x1ab)](_0x581000(0x181));}[_0x39b78a(0x197)](){const _0x31addd=_0x39b78a;this[_0x31addd(0x1f3)]=[],this[_0x31addd(0x19f)]=void 0x0,this[_0x31addd(0x223)]=0x0,this[_0x31addd(0x20f)][_0x31addd(0x1b8)](this[_0x31addd(0x1f3)][_0x31addd(0x1f7)],this[_0x31addd(0x223)]);}[_0x39b78a(0x194)](){const _0x13ce63=_0x39b78a;this[_0x13ce63(0x1cf)]&&this[_0x13ce63(0x1cf)][_0x13ce63(0x21e)](),this[_0x13ce63(0x1e5)][_0x13ce63(0x1db)](),this[_0x13ce63(0x174)]=!0x1,this[_0x13ce63(0x19f)]&&this[_0x13ce63(0x20f)][_0x13ce63(0x20d)]();}[_0x39b78a(0x1ae)](){const _0x10dfc7=_0x39b78a,_0x3c6ce2=this[_0x10dfc7(0x1f3)][_0x10dfc7(0x1f7)];this[_0x10dfc7(0x223)]<_0x3c6ce2-0x1&&this[_0x10dfc7(0x1ad)](this[_0x10dfc7(0x223)]+0x1);}[_0x39b78a(0x17d)](){const _0x33823c=_0x39b78a;this[_0x33823c(0x223)]>0x0&&this[_0x33823c(0x1ad)](this[_0x33823c(0x223)]-0x1);}async[_0x39b78a(0x1ad)](_0x4712d5){const _0x58cc51=_0x39b78a;if(!this[_0x58cc51(0x19f)])return;this[_0x58cc51(0x223)]=_0x4712d5;const _0x2f488b=this[_0x58cc51(0x1f3)][this[_0x58cc51(0x1f3)][_0x58cc51(0x1f7)]-0x1-this[_0x58cc51(0x223)]];if(!_0x2f488b)return;if(_0x2f488b[_0x58cc51(0x22a)])return this[_0x58cc51(0x195)](_0x2f488b),void this[_0x58cc51(0x20f)][_0x58cc51(0x1b8)](this[_0x58cc51(0x1f3)][_0x58cc51(0x1f7)],this[_0x58cc51(0x223)]);if(!_0x2f488b[_0x58cc51(0x1b6)][_0x58cc51(0x1f7)])return;this[_0x58cc51(0x20f)][_0x58cc51(0x1d0)](),this[_0x58cc51(0x19f)]&&this[_0x58cc51(0x226)]();const _0x172998=_0x2f488b[_0x58cc51(0x1b6)][_0x2f488b[_0x58cc51(0x1b6)][_0x58cc51(0x1f7)]-0x1];if(_0x172998){const _0x352a73=this[_0x58cc51(0x177)];try{const _0x4bbf3f=_0x3474c2({'editor':_0x352a73,'changeGroups':_0x172998[_0x58cc51(0x18e)],'documentContextContent':_0x172998[_0x58cc51(0x1df)],'showDiff':this[_0x58cc51(0x236)],'trimUnchanged':!0x1});await new Promise(_0x2f6abc=>setTimeout(_0x2f6abc,0x32)),await this[_0x58cc51(0x20f)][_0x58cc51(0x1e8)]({'part':_0x4bbf3f[0x0],'renderingStrategy':_0x58cc51(0x22f),'abortSignal':new AbortController()[_0x58cc51(0x1a8)]});}catch(_0x48bb6e){this[_0x58cc51(0x1f4)](_0x48bb6e)||console[_0x58cc51(0x211)](_0x58cc51(0x1b1),_0x48bb6e);}}this[_0x58cc51(0x20f)][_0x58cc51(0x1b8)](this[_0x58cc51(0x1f3)][_0x58cc51(0x1f7)],this[_0x58cc51(0x223)]);}[_0x39b78a(0x237)](){const _0x549185=_0x39b78a;this[_0x549185(0x20f)][_0x549185(0x1d5)](!0x0),this[_0x549185(0x174)]=!0x0;}async[_0x39b78a(0x195)](_0x1d364c){const _0x137915=_0x39b78a,_0x105dd1=_0x5a4f0f(this[_0x137915(0x177)][_0x137915(0x18c)],_0x137915(0x173));this[_0x137915(0x20f)][_0x137915(0x189)](_0x105dd1),_0x1d364c[_0x137915(0x22a)]=!0x0,await this[_0x137915(0x1e5)][_0x137915(0x217)],this[_0x137915(0x20f)][_0x137915(0x1f8)](),this[_0x137915(0x20f)][_0x137915(0x21a)](!0x0);}[_0x39b78a(0x226)](){const _0x38a8d8=_0x39b78a;this[_0x38a8d8(0x20f)][_0x38a8d8(0x1d0)](),this[_0x38a8d8(0x20f)][_0x38a8d8(0x21a)](!0x1);}async[_0x39b78a(0x1d6)](){const _0x560e60=_0x39b78a;await this[_0x560e60(0x1e5)][_0x560e60(0x217)],this[_0x560e60(0x174)]=!0x1,this[_0x560e60(0x20f)][_0x560e60(0x1d5)](!0x1);}}
|
|
23
|
+
const _0x5da3c7=_0x4cb8;(function(_0x3e830e,_0x342bba){const _0x100a24=_0x4cb8,_0x164ec4=_0x3e830e();while(!![]){try{const _0x4bbaf0=-parseInt(_0x100a24(0x1d9))/0x1*(parseInt(_0x100a24(0x199))/0x2)+-parseInt(_0x100a24(0x25f))/0x3*(parseInt(_0x100a24(0x18e))/0x4)+-parseInt(_0x100a24(0x238))/0x5*(parseInt(_0x100a24(0x20c))/0x6)+parseInt(_0x100a24(0x1e2))/0x7*(parseInt(_0x100a24(0x181))/0x8)+-parseInt(_0x100a24(0x254))/0x9+-parseInt(_0x100a24(0x184))/0xa*(parseInt(_0x100a24(0x25a))/0xb)+-parseInt(_0x100a24(0x191))/0xc*(-parseInt(_0x100a24(0x1af))/0xd);if(_0x4bbaf0===_0x342bba)break;else _0x164ec4['push'](_0x164ec4['shift']());}catch(_0x150c5a){_0x164ec4['push'](_0x164ec4['shift']());}}}(_0x27c8,0xdc02d));import{Plugin as _0x2df635}from'ckeditor5/src/core.js';import{AIConnector as _0x4cb75e}from'../aicore/aiconnector.js';import{Dialog as _0xd3eb38,BodyCollection as _0x47b997}from'ckeditor5/src/ui.js';import{AIEditing as _0x4f3262,AI_VISUAL_SELECTION_MARKER_NAME as _0x2d3866}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x17d9cc}from'./model/aiactionsinteraction.js';import{CKEditorError as _0xb85dbb,first as _0x5891e9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3927ca}from'@ckeditor/ckeditor5-icons';function _0x27c8(){const _0x4c7428=['_displayInteractionAtIndex','ai-no-track-changes','queueEmptyPromise','abort','upsertAIActionRating','_appendChild','replyContentUpdated','path','upsertCustomAIActionRating','from','open','getSelectionAsFragment','requires','stopListening','isDocumentOperation','selection','_regularCalculateMarkerPath','AIBalloon','nodeAfter','updateMiniToolbarButtons','focus','getLimitElement','getChildAtOffset','reinsert','replies','_executeAction','history','replyChangeGroupStateUpdated','applyOperation','set','root','close','Error\x20updating\x20content\x20during\x20navigation:','_navigateToPrevious','_copyMarkersToFragment','68282PQyHzg','_balloonShowDiff','rejected','name','max','clone','createPositionBefore','showPrevious','state','1890IktCQi','parent','version','applySuggestion','_actionsBalloonView','some','type','_clearLoadingState','_isAbortError','batch','setSelection','attachToDom','TrackChangesEditing','_clearInteractionHistory','rootName','_applyOperationsAsSuggestions','dialogClosed','howMany','createPositionFromPath','slice','_bodyCollection','operationsA','document','_setupApplyListeners','getAncestors','accepted','TableSelection','$graveyard','getSelectedTableCells','isEqual','pluginName','executeAction','_createInteraction','Error\x20updating\x20content\x20in\x20replyCreated:','isTrackChangesOn','_interactions','setErrorState','startsWith','getRange','get','hideLoader','_applyChanges','12UQVehG','updateContent','ck-ai-actions-balloon','detachFromDom','isOfficialPlugin','tryAgain','_navigateToNext','AI_ACTIONS_GENERIC_ERROR','nextSibling','error','setChangeGroupState','getRanges','config','getSelectedBlocks','_clearErrorState','clearContent','position','actionName','stopAutoScroll','editor','enqueue','documentContextContent','AIActions','range','_currentInteractionIndex','includes','bind','toggleIsLoading','hideError','actionCallId','end','getChild','schema','Error\x20updating\x20content\x20in\x20replyContentUpdated:','toggleSuggestionDisplayMode','_stopInteraction','push','changeGroups','model','hasError','markers','value','length','stop','16420KXQzJG','_promiseQueue','_interactionParams','getFirstRange','_getExecuteDataInTable','getOperations','locale','containsRange','_createActionsBalloonView','ai-request-aborted','pending','createPositionAfter','startAutoScroll','commands','_execute','createRange','_setErrorState','Error\x20refreshing\x20interaction:','_aiConnector','indexOf','isPremiumPlugin','rename','random','replyCreated','map','TrackChanges','getSelectedContent','catch','2948130rXeonU','isBusy','baseVersion','destroy','getCommonAncestor','_clone','9955SkKrCx','trackChanges','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','ai.availableReplyActions','sourcePosition','7263dmuyKI','3664khhSrb','showError','filter','1010gMScBh','insertSuggestion','AIConnector','showNext','isTableSelection','message','aiActionsBalloon','_refreshInteraction','insert','_interaction','796DYWScb','remove','stickiness','12EWDXgc','_wrapWithCommonAncestors','split','static','addOperation','getRoot','signal','setIsLoading','34REcZua','move','Attribute','_anchorOperation','isCollapsed','has','merge','interactionFinished','affectsData','_filterOperationsOutsideRange','selectionRemoved','icon','change','disableMiniToolbarButtons','plugins','resetShowChangesButton','documentFragment','modelToDataWithIds','stopInteraction','getDocumentContext','streaming','_getExecuteDataRegular','36993073qUidve','_setLoadingState','createPositionAt','listenTo','showLoader','start','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:'];_0x27c8=function(){return _0x4c7428;};return _0x27c8();}import{AIBalloon as _0x2288dd}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x2ad6a5}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1e891a}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x39e36d}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x5c2d7a}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4cb8(_0x52e56a,_0x56318e){const _0x27c80b=_0x27c8();return _0x4cb8=function(_0x4cb8fd,_0x3b8ba5){_0x4cb8fd=_0x4cb8fd-0x181;let _0x2c7b83=_0x27c80b[_0x4cb8fd];return _0x2c7b83;},_0x4cb8(_0x52e56a,_0x56318e);}import{fixMarkerOperationOldRange as _0x1bd265,getOperationsFromReply as _0x7b2d12}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x3c75d0,ModelRange as _0x4fbf43,ModelPosition as _0x2dcfb5,_DetachOperation as _0x205f05,transformOperationSets as _0x4291ef}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x203c92}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x135460}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x2df635{static get[_0x5da3c7(0x1c2)](){return[_0x4cb75e,_0xd3eb38,_0x4f3262,_0x2288dd,_0x5c2d7a];}static get[_0x5da3c7(0x200)](){const _0x5d2a16=_0x5da3c7;return _0x5d2a16(0x222);}static get[_0x5da3c7(0x210)](){return!0x0;}static get[_0x5da3c7(0x24c)](){return!0x0;}[_0x5da3c7(0x24a)];[_0x5da3c7(0x205)]=[];[_0x5da3c7(0x224)]=0x0;[_0x5da3c7(0x23a)];[_0x5da3c7(0x1da)]=!0x1;[_0x5da3c7(0x239)];[_0x5da3c7(0x1f6)];get[_0x5da3c7(0x18d)](){const _0x28a49c=_0x5da3c7;return this[_0x28a49c(0x205)][this[_0x28a49c(0x205)][_0x28a49c(0x236)]-0x1];}[_0x5da3c7(0x1e6)];constructor(_0x53c03e){const _0x41a087=_0x5da3c7;super(_0x53c03e),this[_0x41a087(0x1f6)]=new _0x47b997(this[_0x41a087(0x21f)][_0x41a087(0x23e)]),this[_0x41a087(0x1f6)][_0x41a087(0x1ed)](),this[_0x41a087(0x24a)]=this[_0x41a087(0x21f)][_0x41a087(0x1a7)][_0x41a087(0x209)](_0x41a087(0x186)),this[_0x41a087(0x1d3)](_0x41a087(0x255),!0x1),this[_0x41a087(0x239)]=new _0x2ad6a5();}[_0x5da3c7(0x1ab)](){const _0x589557=_0x5da3c7;this[_0x589557(0x22f)]();}async[_0x5da3c7(0x201)](_0x2ad3fe,_0x1f1746,_0x446793){const _0x2de3f3=_0x5da3c7;if(this[_0x2de3f3(0x22f)](),this[_0x2de3f3(0x21f)][_0x2de3f3(0x1a7)][_0x2de3f3(0x19e)](_0x2de3f3(0x1fc))){if(this[_0x2de3f3(0x21f)][_0x2de3f3(0x1a7)][_0x2de3f3(0x209)](_0x2de3f3(0x1fc))[_0x2de3f3(0x1fe)]()){const {modelFragment:_0x517e4e,anchorData:_0x209ae9}=this[_0x2de3f3(0x23c)]();return this[_0x2de3f3(0x1cf)](_0x2ad3fe,_0x517e4e,_0x209ae9,_0x1f1746,_0x446793);}}const {modelFragment:_0x8afed0,anchorData:_0x1d1278}=this[_0x2de3f3(0x1ae)]();return this[_0x2de3f3(0x1cf)](_0x2ad3fe,_0x8afed0,_0x1d1278,_0x1f1746,_0x446793);}async[_0x5da3c7(0x257)](){const _0x41d8e3=_0x5da3c7;return this[_0x41d8e3(0x22f)](),this[_0x41d8e3(0x1f6)][_0x41d8e3(0x20f)](),super[_0x41d8e3(0x257)]();}[_0x5da3c7(0x240)](){const _0x21a6a4=_0x5da3c7,_0x34a0d4=this[_0x21a6a4(0x21f)][_0x21a6a4(0x1a7)][_0x21a6a4(0x19e)](_0x21a6a4(0x251));let _0x12411e=this[_0x21a6a4(0x21f)][_0x21a6a4(0x218)][_0x21a6a4(0x209)](_0x21a6a4(0x25d))||[..._0x203c92];_0x34a0d4||(_0x12411e=_0x12411e[_0x21a6a4(0x183)](_0x4b5393=>_0x21a6a4(0x185)!=_0x4b5393));const _0x10da5e=this[_0x21a6a4(0x21f)][_0x21a6a4(0x245)][_0x21a6a4(0x209)](_0x21a6a4(0x25b)),_0x12ad9f=new _0x135460(this[_0x21a6a4(0x21f)][_0x21a6a4(0x23e)],{'showApplyButton':!0x0,'showSuggestButton':_0x34a0d4,'miniToolbarConfig':{'showChanges':_0x21a6a4(0x1a4)},'availableActions':_0x12411e});return _0x12ad9f[_0x21a6a4(0x226)](_0x21a6a4(0x255))['to'](this),_0x10da5e&&_0x12ad9f[_0x21a6a4(0x226)](_0x21a6a4(0x204))['to'](_0x10da5e,_0x21a6a4(0x235)),_0x12ad9f['on'](_0x21a6a4(0x211),()=>{const _0x20597d=_0x21a6a4;this[_0x20597d(0x18b)]();}),_0x12ad9f['on'](_0x21a6a4(0x1e0),()=>{const _0x33dcef=_0x21a6a4;this[_0x33dcef(0x1d7)]();}),_0x12ad9f['on'](_0x21a6a4(0x187),()=>{const _0x11bf39=_0x21a6a4;this[_0x11bf39(0x212)]();}),_0x12ad9f;}[_0x5da3c7(0x1ae)](){const _0x4213f8=_0x5da3c7,_0x2c8f75=this[_0x4213f8(0x21f)][_0x4213f8(0x232)][_0x4213f8(0x1f8)][_0x4213f8(0x1c5)];if(_0x2c8f75[_0x4213f8(0x19d)]){const _0x49ef4f=_0x5891e9(_0x2c8f75[_0x4213f8(0x219)]())||this[_0x4213f8(0x21f)][_0x4213f8(0x232)][_0x4213f8(0x22c)][_0x4213f8(0x1cb)](_0x2c8f75);this[_0x4213f8(0x21f)][_0x4213f8(0x232)][_0x4213f8(0x1a5)](_0x44b538=>{const _0x2e330a=_0x4213f8;_0x44b538[_0x2e330a(0x1ec)](_0x49ef4f,'in');});}const _0x56c48e=_0x2c8f75[_0x4213f8(0x23b)](),_0x1d5680=this[_0x4213f8(0x192)](this[_0x4213f8(0x21f)][_0x4213f8(0x232)][_0x4213f8(0x252)](_0x2c8f75),_0x56c48e[_0x4213f8(0x1b4)],_0x56c48e[_0x4213f8(0x22a)]);this[_0x4213f8(0x1d8)](_0x1d5680,_0x2c8f75,{'isTableSelection':!0x1});const _0x3d8dcd=_0x2c8f75[_0x4213f8(0x23b)]()[_0x4213f8(0x1b4)],_0x1c7c1a=new Map();let _0x28a64a=_0x1d5680;for(let _0xc1f80c=0x0;_0xc1f80c<_0x3d8dcd[_0x4213f8(0x1bd)][_0x4213f8(0x236)];_0xc1f80c++)_0x1c7c1a[_0x4213f8(0x1d3)](_0x28a64a,_0x3d8dcd[_0x4213f8(0x1bd)][_0xc1f80c]),_0x28a64a=_0x28a64a[_0x4213f8(0x22b)](0x0);return{'modelFragment':_0x1d5680,'anchorData':_0x1c7c1a};}[_0x5da3c7(0x23c)](){const _0x417ea6=_0x5da3c7,_0x3a3ab8=this[_0x417ea6(0x21f)][_0x417ea6(0x232)][_0x417ea6(0x1f8)][_0x417ea6(0x1c5)],_0x4b2196=this[_0x417ea6(0x21f)][_0x417ea6(0x1a7)][_0x417ea6(0x209)](_0x417ea6(0x1fc))[_0x417ea6(0x1c1)](),_0x937a9c=_0x3a3ab8[_0x417ea6(0x23b)]()[_0x417ea6(0x1b4)][_0x417ea6(0x1e3)][_0x417ea6(0x1e3)],_0x12725a=this[_0x417ea6(0x21f)][_0x417ea6(0x232)][_0x417ea6(0x247)](this[_0x417ea6(0x21f)][_0x417ea6(0x232)][_0x417ea6(0x1df)](_0x937a9c),this[_0x417ea6(0x21f)][_0x417ea6(0x232)][_0x417ea6(0x243)](_0x937a9c)),_0x39558c=this[_0x417ea6(0x192)](_0x4b2196,_0x12725a[_0x417ea6(0x1b4)],_0x12725a[_0x417ea6(0x22a)]);this[_0x417ea6(0x1d8)](_0x39558c,_0x3a3ab8,{'isTableSelection':!0x0});const _0x13c048=_0x3a3ab8[_0x417ea6(0x23b)]()[_0x417ea6(0x1b4)],_0x16ac7a=new Map();let _0x4e1e1b=_0x39558c;for(let _0x171874=0x0;_0x171874<_0x13c048[_0x417ea6(0x1bd)][_0x417ea6(0x236)];_0x171874++)if(_0x16ac7a[_0x417ea6(0x1d3)](_0x4e1e1b,_0x13c048[_0x417ea6(0x1bd)][_0x171874]),_0x171874<_0x13c048[_0x417ea6(0x1bd)][_0x417ea6(0x236)]-0x1)_0x4e1e1b=_0x4e1e1b[_0x417ea6(0x22b)](0x0);else{let _0x244a17=_0x4e1e1b[_0x417ea6(0x214)];for(;_0x244a17;)_0x16ac7a[_0x417ea6(0x1d3)](_0x244a17,_0x13c048[_0x417ea6(0x1bd)][_0x171874]),_0x244a17=_0x244a17[_0x417ea6(0x214)];}return{'modelFragment':_0x39558c,'anchorData':_0x16ac7a};}async[_0x5da3c7(0x1cf)](_0x1065cf,_0x3aa5ab,_0x39b60d,_0x323092,_0x35c38e){const _0x579322=_0x5da3c7,_0x32f1b7=this[_0x579322(0x21f)][_0x579322(0x1a7)][_0x579322(0x209)](_0x4f3262),_0x24f129=this[_0x579322(0x21f)][_0x579322(0x1a7)][_0x579322(0x209)](_0x2288dd),_0x17576e=this[_0x579322(0x21f)][_0x579322(0x232)][_0x579322(0x1f8)][_0x579322(0x1c5)],_0x413e5e=await _0x32f1b7[_0x579322(0x1aa)](_0x3aa5ab),_0x53f51b=this[_0x579322(0x21f)][_0x579322(0x232)][_0x579322(0x1f8)][_0x579322(0x1e4)],_0x3ab41b=[..._0x17576e[_0x579322(0x217)]()];return this[_0x579322(0x1e6)]||(this[_0x579322(0x1e6)]=this[_0x579322(0x240)]()),this[_0x579322(0x1ef)](),this[_0x579322(0x21a)](),this[_0x579322(0x1e6)][_0x579322(0x21b)](),_0x24f129[_0x579322(0x1c0)]({'index':0x3e8*Math[_0x579322(0x24e)]()%0x3e8,'title':_0x323092,'icon':_0x35c38e||_0x3927ca,'mainView':this[_0x579322(0x1e6)],'class':_0x579322(0x20e),'ranges':_0x3ab41b,'id':_0x579322(0x18a)}),this[_0x579322(0x1b0)](),this[_0x579322(0x1c3)](this[_0x579322(0x1e6)]),this[_0x579322(0x1c3)](_0x24f129),this[_0x579322(0x23a)]={'action':_0x1065cf,'content':_0x413e5e,'version':_0x53f51b,'aiBalloon':_0x24f129,'modelFragment':_0x3aa5ab,'anchorData':_0x39b60d},this[_0x579322(0x1f9)](),this[_0x579322(0x1b2)](_0x24f129,_0x579322(0x1a3),()=>{const _0x1ab433=_0x579322;this[_0x1ab433(0x22f)](),this[_0x1ab433(0x1e6)][_0x1ab433(0x1a6)]();}),this[_0x579322(0x1b2)](_0x24f129,_0x579322(0x1f2),(_0x87c00c,{id:_0x7c522d})=>{const _0x3941a0=_0x579322;if(_0x3941a0(0x18a)===_0x7c522d){if(this[_0x3941a0(0x18d)]&&this[_0x3941a0(0x18d)][_0x3941a0(0x1ce)][_0x3941a0(0x236)]>0x0){const _0xf2f47=this[_0x3941a0(0x18d)][_0x3941a0(0x1ce)][this[_0x3941a0(0x18d)][_0x3941a0(0x1ce)][_0x3941a0(0x236)]-0x1],_0x29f4e4=_0xf2f47[_0x3941a0(0x231)][0x0];_0x29f4e4&&_0x3941a0(0x242)===_0x29f4e4[_0x3941a0(0x1e1)]&&_0xf2f47[_0x3941a0(0x216)](0x0,_0x3941a0(0x1db));}this[_0x3941a0(0x22f)](),this[_0x3941a0(0x1ef)](),this[_0x3941a0(0x1c3)](this[_0x3941a0(0x1e6)]),this[_0x3941a0(0x1c3)](_0x24f129);}}),this[_0x579322(0x202)](_0x413e5e,_0x53f51b,_0x24f129,_0x1065cf);}[_0x5da3c7(0x1f9)](){const _0x2b3f34=_0x5da3c7;if(!this[_0x2b3f34(0x23a)])return;const {modelFragment:_0xd2c979,anchorData:_0x5158d0}=this[_0x2b3f34(0x23a)];this[_0x2b3f34(0x1b2)](this[_0x2b3f34(0x1e6)],_0x2b3f34(0x1e5),()=>{const _0x110d55=_0x2b3f34;this[_0x110d55(0x20b)](_0xd2c979,_0x5158d0,!0x1);}),this[_0x2b3f34(0x1b2)](this[_0x2b3f34(0x1e6)],_0x2b3f34(0x185),()=>{const _0xa2d81a=_0x2b3f34;this[_0xa2d81a(0x20b)](_0xd2c979,_0x5158d0,!0x0);});}[_0x5da3c7(0x192)](_0x17884b,_0x18010b,_0x3aabe4){const _0x227141=_0x5da3c7,_0x440fd3=this[_0x227141(0x21f)][_0x227141(0x232)][_0x227141(0x247)](_0x18010b,_0x3aabe4)[_0x227141(0x258)](),_0x2f67aa=_0x440fd3['is'](_0x227141(0x1a9))?[]:_0x440fd3[_0x227141(0x1fa)]({'includeSelf':!0x0})[_0x227141(0x1f5)](0x1);if(_0x2f67aa[_0x227141(0x236)]){const _0x340c60=_0x2f67aa[_0x227141(0x250)](_0x465365=>_0x465365[_0x227141(0x259)](!0x1));for(let _0x3bd3ae=0x1;_0x3bd3ae<_0x340c60[_0x227141(0x236)];_0x3bd3ae++)_0x340c60[_0x3bd3ae-0x1][_0x227141(0x1bb)](_0x340c60[_0x3bd3ae]);return _0x340c60[_0x340c60[_0x227141(0x236)]-0x1][_0x227141(0x1bb)](_0x17884b),new _0x3c75d0(_0x340c60[0x0]);}return _0x17884b;}[_0x5da3c7(0x1d8)](_0x3a2d05,_0x4c506b,_0x260ab0={'isTableSelection':!0x1}){const _0x3cc840=_0x5da3c7,_0x3a9f45=this[_0x3cc840(0x21f)][_0x3cc840(0x232)],_0x3087a1=Array[_0x3cc840(0x1bf)](_0x4c506b[_0x3cc840(0x217)]()),_0x3c0a51=_0x4c506b[_0x3cc840(0x23b)]()[_0x3cc840(0x1b4)];for(const _0xc5bdba of _0x3a9f45[_0x3cc840(0x234)]){if(_0xc5bdba[_0x3cc840(0x1dc)][_0x3cc840(0x207)](_0x2d3866)||!_0xc5bdba[_0x3cc840(0x1a1)])continue;const _0x207916=_0xc5bdba[_0x3cc840(0x208)]();if(!_0x3087a1[_0x3cc840(0x1e7)](_0x423383=>_0x423383[_0x3cc840(0x23f)](_0x207916,!0x0)))continue;const _0x3e2c9e=this[_0x3cc840(0x1c6)](_0x207916[_0x3cc840(0x1b4)],_0x3c0a51,_0x260ab0[_0x3cc840(0x188)]),_0x23334e=this[_0x3cc840(0x1c6)](_0x207916[_0x3cc840(0x22a)],_0x3c0a51,_0x260ab0[_0x3cc840(0x188)]),_0xcb0b55=_0x3a9f45[_0x3cc840(0x1f4)](_0x3a2d05,_0x3e2c9e),_0xb51b74=_0x3a9f45[_0x3cc840(0x1f4)](_0x3a2d05,_0x23334e);if(!_0xcb0b55[_0x3cc840(0x1ff)](_0xb51b74)){const _0x5c2022=_0x3a9f45[_0x3cc840(0x247)](_0xcb0b55,_0xb51b74);_0x3a2d05[_0x3cc840(0x234)][_0x3cc840(0x1d3)](_0xc5bdba[_0x3cc840(0x1dc)],_0x5c2022);}}}[_0x5da3c7(0x1c6)](_0x4d8422,_0x502c9b,_0x2cd768=!0x1){const _0x3352a1=_0x5da3c7,_0xfc12be=[..._0x4d8422[_0x3352a1(0x1bd)][_0x3352a1(0x1f5)]()];for(let _0x528fe2=0x0;_0x528fe2<Math[_0x3352a1(0x1dd)](_0x502c9b[_0x3352a1(0x1bd)][_0x3352a1(0x236)],_0x4d8422[_0x3352a1(0x1bd)][_0x3352a1(0x236)]);_0x528fe2++){const _0x54e005=_0x502c9b[_0x3352a1(0x1bd)][_0x528fe2]||0x0,_0x221014=(_0x4d8422[_0x3352a1(0x1bd)][_0x528fe2]||0x0)-_0x54e005;if(_0xfc12be[_0x528fe2]=_0x221014,0x0!==_0x221014&&!_0x2cd768)break;}return _0xfc12be;}async[_0x5da3c7(0x202)](_0x29a44d,_0x1ebe56,_0x54b975,_0x59b844){const _0x4fb502=_0x5da3c7,_0x1976ab=this[_0x4fb502(0x21f)];this[_0x4fb502(0x23a)]||(this[_0x4fb502(0x23a)]={'action':_0x59b844,'content':_0x29a44d,'version':_0x1ebe56,'aiBalloon':_0x54b975,'modelFragment':this[_0x4fb502(0x21f)][_0x4fb502(0x232)][_0x4fb502(0x252)](this[_0x4fb502(0x21f)][_0x4fb502(0x232)][_0x4fb502(0x1f8)][_0x4fb502(0x1c5)]),'anchorData':new Map()});const _0x1ff0a4=new _0x17d9cc({'connector':this[_0x4fb502(0x24a)],'editor':_0x1976ab,'content':_0x29a44d,'version':_0x1ebe56,..._0x59b844});this[_0x4fb502(0x205)][_0x4fb502(0x230)](_0x1ff0a4);const _0x484388=(_0x2ddcfe,_0x1a2308=!0x1,_0x569b3f=_0x4fb502(0x1ad))=>this[_0x4fb502(0x239)][_0x4fb502(0x220)](async _0x4e3541=>{const _0x1b8db1=_0x4fb502;try{const _0x236f3d=_0x39e36d({'editor':_0x1976ab,'changeGroups':_0x2ddcfe[_0x1b8db1(0x231)],'documentContextContent':_0x2ddcfe[_0x1b8db1(0x221)],'showDiff':_0x1a2308,'trimUnchanged':!0x1});_0x236f3d[_0x1b8db1(0x236)]&&await this[_0x1b8db1(0x1e6)][_0x1b8db1(0x20d)]({'part':_0x236f3d[0x0],'renderingStrategy':_0x569b3f,'abortSignal':_0x4e3541});}catch(_0x3b5597){if(this[_0x1b8db1(0x1ea)](_0x3b5597))return;throw _0x3b5597;}});this[_0x4fb502(0x18d)]['on'](_0x4fb502(0x24f),(_0x58374c,_0x4059d8)=>{const _0x55339d=_0x4fb502;this[_0x55339d(0x1e6)][_0x55339d(0x20a)](),this[_0x55339d(0x1e6)][_0x55339d(0x244)](),_0x484388(_0x4059d8)[_0x55339d(0x253)](_0x4e503d=>{const _0x66e856=_0x55339d;this[_0x66e856(0x1ea)](_0x4e503d)||(console[_0x66e856(0x215)](_0x66e856(0x203),_0x4e503d),this[_0x66e856(0x248)](_0x1ff0a4));});}),this[_0x4fb502(0x18d)]['on'](_0x4fb502(0x1bc),(_0x3a1dd3,_0x3536d0)=>{const _0x5a35b8=_0x4fb502;_0x484388(_0x3536d0)[_0x5a35b8(0x253)](_0x1eec7d=>{const _0xb7e7c4=_0x5a35b8;this[_0xb7e7c4(0x1ea)](_0x1eec7d)||(console[_0xb7e7c4(0x215)](_0xb7e7c4(0x22d),_0x1eec7d),this[_0xb7e7c4(0x248)](_0x1ff0a4));});}),this[_0x4fb502(0x18d)]['on'](_0x4fb502(0x1a0),async()=>{const _0x5e6b0f=_0x4fb502;try{await this[_0x5e6b0f(0x1e9)](),this[_0x5e6b0f(0x1e6)][_0x5e6b0f(0x1c9)](this[_0x5e6b0f(0x205)][_0x5e6b0f(0x236)],this[_0x5e6b0f(0x224)]),await this[_0x5e6b0f(0x239)][_0x5e6b0f(0x1b8)];}catch(_0x15c6d0){this[_0x5e6b0f(0x1ea)](_0x15c6d0)||(console[_0x5e6b0f(0x215)](_0x5e6b0f(0x25c),_0x15c6d0),this[_0x5e6b0f(0x248)](_0x1ff0a4));}finally{this[_0x5e6b0f(0x1e6)][_0x5e6b0f(0x21e)]();}}),this[_0x4fb502(0x1b2)](this[_0x4fb502(0x1e6)],_0x4fb502(0x22e),async(_0x2e1d43,{showDiff:_0x476ba1})=>{const _0x29b5ea=_0x4fb502;try{this[_0x29b5ea(0x1da)]=_0x476ba1;const _0x38166f=this[_0x29b5ea(0x18d)][_0x29b5ea(0x1ce)][this[_0x29b5ea(0x18d)][_0x29b5ea(0x1ce)][_0x29b5ea(0x236)]-0x1];_0x38166f&&await _0x484388(_0x38166f,_0x476ba1,_0x29b5ea(0x194));}catch(_0x288bba){this[_0x29b5ea(0x1ea)](_0x288bba)||(console[_0x29b5ea(0x215)](_0x29b5ea(0x1b5),_0x288bba),this[_0x29b5ea(0x248)](_0x1ff0a4));}}),this[_0x4fb502(0x18d)]['on'](_0x4fb502(0x1d1),(_0x59517b,{reply:_0x175560})=>{const _0x408019=_0x4fb502,_0x2650e4={'positiveCount':_0x175560[_0x408019(0x231)][_0x408019(0x183)](_0x2abab0=>_0x408019(0x1fb)===_0x2abab0[_0x408019(0x1e1)])[_0x408019(0x236)],'totalCount':_0x175560[_0x408019(0x231)][_0x408019(0x236)]},_0x53e3aa=this[_0x408019(0x18d)][_0x408019(0x229)],_0x533a41=this[_0x408019(0x18d)][_0x408019(0x21d)];_0x533a41?this[_0x408019(0x24a)][_0x408019(0x1ba)](_0x533a41,_0x53e3aa,_0x2650e4):this[_0x408019(0x24a)][_0x408019(0x1be)](_0x53e3aa,_0x2650e4);}),this[_0x4fb502(0x1b0)]();try{const _0xb8bf58=await this[_0x4fb502(0x18d)][_0x4fb502(0x1b4)]();return this[_0x4fb502(0x1e6)][_0x4fb502(0x1c9)](this[_0x4fb502(0x205)][_0x4fb502(0x236)],this[_0x4fb502(0x224)]),_0xb8bf58;}catch(_0x1b6d74){if(this[_0x4fb502(0x1ea)](_0x1b6d74))return;this[_0x4fb502(0x1e6)][_0x4fb502(0x20a)](),this[_0x4fb502(0x248)](_0x1ff0a4);}}[_0x5da3c7(0x20b)](_0x26bae8,_0x35ea82,_0x28f0ff){const _0x1812b9=_0x5da3c7,_0xd78d0b=this[_0x1812b9(0x21f)];if(_0x28f0ff&&!_0xd78d0b[_0x1812b9(0x1a7)][_0x1812b9(0x19e)](_0x1812b9(0x251)))throw new _0xb85dbb(_0x1812b9(0x1b7),null);const _0x548810=this[_0x1812b9(0x21f)][_0x1812b9(0x1a7)][_0x1812b9(0x209)](_0x5c2d7a),_0x19cf38=this[_0x1812b9(0x205)][this[_0x1812b9(0x205)][_0x1812b9(0x236)]-0x1-this[_0x1812b9(0x224)]];if(!_0x19cf38||!_0x19cf38[_0x1812b9(0x1ce)][_0x1812b9(0x236)])return;const _0x44979d=_0x19cf38[_0x1812b9(0x1ce)][_0x19cf38[_0x1812b9(0x1ce)][_0x1812b9(0x236)]-0x1],_0x199c6d=_0x44979d[_0x1812b9(0x231)];_0x44979d[_0x1812b9(0x216)](0x0,_0x1812b9(0x1fb));let _0x4d2161=_0x7b2d12({'editor':_0xd78d0b,'reply':_0x44979d,'interaction':_0x19cf38,'groups':_0x199c6d,'transform':!0x1,'documentCompare':_0x548810,'documentCompareOptions':{'anchor':_0xd78d0b[_0x1812b9(0x232)][_0x1812b9(0x1b1)](_0x26bae8,0x0),'markDeletions':_0x28f0ff}});_0x4d2161=this[_0x1812b9(0x1a2)](_0x4d2161,_0x35ea82);for(const _0x17fa90 of _0x4d2161)this[_0x1812b9(0x19c)](_0x35ea82,_0x17fa90,_0xd78d0b[_0x1812b9(0x232)][_0x1812b9(0x1f8)][_0x1812b9(0x196)]());const _0x571b2d=_0x19cf38[_0x1812b9(0x1ac)]()[_0x1812b9(0x1e4)],_0xb11032=_0xd78d0b[_0x1812b9(0x232)][_0x1812b9(0x1f8)][_0x1812b9(0x1d0)][_0x1812b9(0x23d)](_0x571b2d),_0x442847={'document':_0xd78d0b[_0x1812b9(0x232)][_0x1812b9(0x1f8)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x11cef1=_0x4291ef(_0x4d2161,_0xb11032,_0x442847)[_0x1812b9(0x1f7)];_0xd78d0b[_0x1812b9(0x232)][_0x1812b9(0x1a5)](_0xc44a4e=>{const _0x3c66dc=_0x1812b9;if(_0xc44a4e[_0x3c66dc(0x1ec)](_0xd78d0b[_0x3c66dc(0x232)][_0x3c66dc(0x1f8)][_0x3c66dc(0x1c5)][_0x3c66dc(0x1ca)]),_0x28f0ff)_0xd78d0b[_0x3c66dc(0x1a7)][_0x3c66dc(0x209)](_0x3c66dc(0x1ee))[_0x3c66dc(0x1f1)](_0x11cef1);else{for(const _0x69b913 of _0x11cef1)_0x69b913[_0x3c66dc(0x256)]=_0xd78d0b[_0x3c66dc(0x232)][_0x3c66dc(0x1f8)][_0x3c66dc(0x1e4)],_0x1bd265(_0xd78d0b,_0x69b913),_0xc44a4e[_0x3c66dc(0x1eb)][_0x3c66dc(0x195)](_0x69b913),_0xd78d0b[_0x3c66dc(0x232)][_0x3c66dc(0x1d2)](_0x69b913);}}),this[_0x1812b9(0x21f)][_0x1812b9(0x1a7)][_0x1812b9(0x209)](_0x1812b9(0x1c7))[_0x1812b9(0x1d5)]();}[_0x5da3c7(0x1a2)](_0x358e09,_0x5601c7){const _0x11a323=_0x5da3c7;return _0x358e09[_0x11a323(0x183)](_0x2495bf=>{const _0x549d58=_0x11a323;if(_0x549d58(0x24d)==_0x2495bf[_0x549d58(0x1e8)]){const _0x189c2b=_0x2495bf[_0x549d58(0x21c)][_0x549d58(0x1c8)];return!_0x5601c7[_0x549d58(0x19e)](_0x189c2b);}if(_0x2495bf[_0x549d58(0x1e8)][_0x549d58(0x24b)](_0x549d58(0x19b))>-0x1){const _0x527844=_0x2495bf[_0x549d58(0x223)][_0x549d58(0x1b4)][_0x549d58(0x1c8)];return!_0x5601c7[_0x549d58(0x19e)](_0x527844);}return!0x0;});}[_0x5da3c7(0x19c)](_0x465fb2,_0x3a2695,_0x4ab17d){const _0x19aea1=_0x5da3c7,_0x5023f2=_0x3a2695[_0x19aea1(0x1de)]();for(const _0x1c76ac in _0x3a2695){const _0x2af243=_0x3a2695[_0x1c76ac];_0x2af243 instanceof _0x4fbf43?_0x3a2695[_0x1c76ac]=new _0x4fbf43(_0x345fad(_0x2af243[_0x19aea1(0x1b4)]),_0x345fad(_0x2af243[_0x19aea1(0x22a)])):_0x2af243 instanceof _0x2dcfb5&&(_0x3a2695[_0x1c76ac]=_0x345fad(_0x2af243));}if([_0x19aea1(0x18c),_0x19aea1(0x19a),_0x19aea1(0x18f),_0x19aea1(0x1cd),_0x19aea1(0x193),_0x19aea1(0x19f)][_0x19aea1(0x225)](_0x5023f2[_0x19aea1(0x1e8)])){if(_0x5023f2[_0x19aea1(0x1c4)]=!0x1,_0x5023f2[_0x19aea1(0x256)]=null,_0x19aea1(0x18f)==_0x5023f2[_0x19aea1(0x1e8)]){const _0x46e581=_0x5023f2[_0x19aea1(0x25e)],_0x237513=_0x5023f2[_0x19aea1(0x1f3)];new _0x205f05(_0x46e581,_0x237513)[_0x19aea1(0x246)]();}else _0x5023f2[_0x19aea1(0x246)]();}function _0x345fad(_0x2140e2){const _0x540c82=_0x19aea1;if(_0x540c82(0x1fd)==_0x2140e2[_0x540c82(0x1d4)][_0x540c82(0x1f0)])return _0x2140e2;const _0x5bad0a=[];let _0x4679be=_0x2140e2[_0x540c82(0x1d4)];for(let _0x2c4a00=0x0;_0x2c4a00<_0x2140e2[_0x540c82(0x1bd)][_0x540c82(0x236)];_0x2c4a00++){const _0x49d143=_0x465fb2[_0x540c82(0x209)](_0x4679be)||0x0;_0x5bad0a[_0x2c4a00]=_0x2140e2[_0x540c82(0x1bd)][_0x2c4a00]+_0x49d143,_0x4679be=_0x4679be[_0x540c82(0x1cc)](_0x2140e2[_0x540c82(0x1bd)][_0x2c4a00]);}return new _0x2dcfb5(_0x4ab17d,_0x5bad0a,_0x2140e2[_0x540c82(0x190)]);}}[_0x5da3c7(0x18b)](){const _0x403022=_0x5da3c7;if(!this[_0x403022(0x23a)])return;this[_0x403022(0x205)][_0x403022(0x236)]>0x0&&this[_0x403022(0x22f)](),this[_0x403022(0x224)]=0x0,this[_0x403022(0x1da)]=!0x1;const {action:_0x1c9047,content:_0x4ddf51,version:_0x4bce22,aiBalloon:_0x555e15}=this[_0x403022(0x23a)];this[_0x403022(0x21a)](),this[_0x403022(0x1e6)][_0x403022(0x21b)](),this[_0x403022(0x1e6)][_0x403022(0x1b3)](),this[_0x403022(0x1e6)][_0x403022(0x1a8)](),this[_0x403022(0x1e6)][_0x403022(0x1c9)](this[_0x403022(0x205)][_0x403022(0x236)],this[_0x403022(0x224)]),this[_0x403022(0x1c3)](this[_0x403022(0x1e6)]),this[_0x403022(0x1f9)](),this[_0x403022(0x202)](_0x4ddf51,_0x4bce22,_0x555e15,_0x1c9047)[_0x403022(0x253)](_0x12742d=>{const _0x1fc269=_0x403022;this[_0x1fc269(0x1ea)](_0x12742d)||console[_0x1fc269(0x215)](_0x1fc269(0x249),_0x12742d);});}[_0x5da3c7(0x1ea)](_0x359331){const _0x43589b=_0x5da3c7;return!!_0x359331[_0x43589b(0x189)]&&_0x359331[_0x43589b(0x189)][_0x43589b(0x207)](_0x43589b(0x241));}[_0x5da3c7(0x1ef)](){const _0x2bc358=_0x5da3c7;this[_0x2bc358(0x205)]=[],this[_0x2bc358(0x23a)]=void 0x0,this[_0x2bc358(0x224)]=0x0,this[_0x2bc358(0x1e6)][_0x2bc358(0x1c9)](this[_0x2bc358(0x205)][_0x2bc358(0x236)],this[_0x2bc358(0x224)]);}[_0x5da3c7(0x22f)](){const _0x1d4116=_0x5da3c7;this[_0x1d4116(0x18d)]&&this[_0x1d4116(0x18d)][_0x1d4116(0x237)](),this[_0x1d4116(0x239)][_0x1d4116(0x1b9)](),this[_0x1d4116(0x255)]=!0x1,this[_0x1d4116(0x23a)]&&this[_0x1d4116(0x1e6)][_0x1d4116(0x21e)]();}[_0x5da3c7(0x1d7)](){const _0x4a8824=_0x5da3c7,_0x34ffca=this[_0x4a8824(0x205)][_0x4a8824(0x236)];this[_0x4a8824(0x224)]<_0x34ffca-0x1&&this[_0x4a8824(0x1b6)](this[_0x4a8824(0x224)]+0x1);}[_0x5da3c7(0x212)](){const _0x56974c=_0x5da3c7;this[_0x56974c(0x224)]>0x0&&this[_0x56974c(0x1b6)](this[_0x56974c(0x224)]-0x1);}async[_0x5da3c7(0x1b6)](_0x541200){const _0x193c73=_0x5da3c7;if(!this[_0x193c73(0x23a)])return;this[_0x193c73(0x224)]=_0x541200;const _0x3e2705=this[_0x193c73(0x205)][this[_0x193c73(0x205)][_0x193c73(0x236)]-0x1-this[_0x193c73(0x224)]];if(!_0x3e2705)return;if(_0x3e2705[_0x193c73(0x233)])return this[_0x193c73(0x248)](_0x3e2705),void this[_0x193c73(0x1e6)][_0x193c73(0x1c9)](this[_0x193c73(0x205)][_0x193c73(0x236)],this[_0x193c73(0x224)]);if(!_0x3e2705[_0x193c73(0x1ce)][_0x193c73(0x236)])return;this[_0x193c73(0x1e6)][_0x193c73(0x228)](),this[_0x193c73(0x23a)]&&this[_0x193c73(0x21a)]();const _0x137e3e=_0x3e2705[_0x193c73(0x1ce)][_0x3e2705[_0x193c73(0x1ce)][_0x193c73(0x236)]-0x1];if(_0x137e3e){const _0x629690=this[_0x193c73(0x21f)];try{const _0x5516f3=_0x39e36d({'editor':_0x629690,'changeGroups':_0x137e3e[_0x193c73(0x231)],'documentContextContent':_0x137e3e[_0x193c73(0x221)],'showDiff':this[_0x193c73(0x1da)],'trimUnchanged':!0x1});await new Promise(_0x3106f1=>setTimeout(_0x3106f1,0x32)),await this[_0x193c73(0x1e6)][_0x193c73(0x20d)]({'part':_0x5516f3[0x0],'renderingStrategy':_0x193c73(0x194),'abortSignal':new AbortController()[_0x193c73(0x197)]});}catch(_0x13e1fc){this[_0x193c73(0x1ea)](_0x13e1fc)||console[_0x193c73(0x215)](_0x193c73(0x1d6),_0x13e1fc);}}this[_0x193c73(0x1e6)][_0x193c73(0x1c9)](this[_0x193c73(0x205)][_0x193c73(0x236)],this[_0x193c73(0x224)]);}[_0x5da3c7(0x1b0)](){const _0x55661a=_0x5da3c7;this[_0x55661a(0x1e6)][_0x55661a(0x198)](!0x0),this[_0x55661a(0x255)]=!0x0;}async[_0x5da3c7(0x248)](_0xfee5fd){const _0x51c3bc=_0x5da3c7,_0x2e8e8b=_0x1e891a(this[_0x51c3bc(0x21f)][_0x51c3bc(0x23e)],_0x51c3bc(0x213));this[_0x51c3bc(0x1e6)][_0x51c3bc(0x182)](_0x2e8e8b),_0xfee5fd[_0x51c3bc(0x233)]=!0x0,await this[_0x51c3bc(0x239)][_0x51c3bc(0x1b8)],this[_0x51c3bc(0x1e6)][_0x51c3bc(0x206)](),this[_0x51c3bc(0x1e6)][_0x51c3bc(0x227)](!0x0);}[_0x5da3c7(0x21a)](){const _0x20094d=_0x5da3c7;this[_0x20094d(0x1e6)][_0x20094d(0x228)](),this[_0x20094d(0x1e6)][_0x20094d(0x227)](!0x1);}async[_0x5da3c7(0x1e9)](){const _0x4682d3=_0x5da3c7;await this[_0x4682d3(0x239)][_0x4682d3(0x1b8)],this[_0x4682d3(0x255)]=!0x1,this[_0x4682d3(0x1e6)][_0x4682d3(0x198)](!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1c64(){const _0x349aee=['removed','3331744aTnosl','3741480Tkrbmm','parsedContent','new','927gYRXVQ','parsedMergedContent','2636fowVyP','changeGroups','childNodes','added','isDone','7muwWpQ','937452brBruS','_getDifferentChangeGroups','7173LgZNpl','node','1AOfexU','children','map','537754yrWntP','cloneNode','9810qFzlVd','pop','updateChangeGroups','data-id','1267563uqyvkp','value','modified','pending','documentContextContent','length'];_0x1c64=function(){return _0x349aee;};return _0x1c64();}const _0x412dad=_0x44b1;(function(_0x5660c7,_0xdd0a57){const _0x125aed=_0x44b1,_0x141b79=_0x5660c7();while(!![]){try{const _0x1da3d0=parseInt(_0x125aed(0x1ae))/0x1*(parseInt(_0x125aed(0x1b1))/0x2)+-parseInt(_0x125aed(0x1c2))/0x3*(parseInt(_0x125aed(0x1c4))/0x4)+parseInt(_0x125aed(0x1bf))/0x5+-parseInt(_0x125aed(0x1ca))/0x6+-parseInt(_0x125aed(0x1c9))/0x7*(-parseInt(_0x125aed(0x1be))/0x8)+-parseInt(_0x125aed(0x1cc))/0x9*(parseInt(_0x125aed(0x1b3))/0xa)+parseInt(_0x125aed(0x1b7))/0xb;if(_0x1da3d0===_0xdd0a57)break;else _0x141b79['push'](_0x141b79['shift']());}catch(_0xf170a7){_0x141b79['push'](_0x141b79['shift']());}}}(_0x1c64,0x63668));import{AIReply as _0x3fe8c4}from'../../aicore/model/aireply.js';function _0x44b1(_0x482bd2,_0x3406dd){const _0x1c64e9=_0x1c64();return _0x44b1=function(_0x44b1f7,_0x5b7913){_0x44b1f7=_0x44b1f7-0x1ad;let _0x59d333=_0x1c64e9[_0x44b1f7];return _0x59d333;},_0x44b1(_0x482bd2,_0x3406dd);}import{getAttribute as _0x10e1fe}from'../../aicore/utils/htmlparser.js';import{uid as _0x312e1e}from'ckeditor5/src/utils.js';import{diffArrays as _0x422763}from'diff';export class AIActionsReply extends _0x3fe8c4{[_0x412dad(0x1b5)](){const _0x2d53dc=_0x412dad;if(this[_0x2d53dc(0x1c3)]=this[_0x2d53dc(0x1c0)][_0x2d53dc(0x1b2)](!0x0),0x0==this[_0x2d53dc(0x1c3)][_0x2d53dc(0x1c6)][_0x2d53dc(0x1bc)])return void(this[_0x2d53dc(0x1c5)]=[]);const _0xaac030=this[_0x2d53dc(0x1bb)][_0x2d53dc(0x1af)][_0x2d53dc(0x1b0)](_0x3b6dbc=>({'node':_0x3b6dbc,'id':_0x10e1fe(_0x3b6dbc,_0x2d53dc(0x1b6))})),_0x67d8f6=this[_0x2d53dc(0x1c3)][_0x2d53dc(0x1af)][_0x2d53dc(0x1b0)](_0x4e4f37=>({'node':_0x4e4f37,'id':_0x10e1fe(_0x4e4f37,_0x2d53dc(0x1b6))||_0x312e1e()})),_0x12216c=_0x422763(_0xaac030,_0x67d8f6,{'comparator':(_0x2375c0,_0x3231ff)=>_0x2375c0['id']==_0x3231ff['id'],'oneChangePerToken':!0x0});if(!this[_0x2d53dc(0x1c8)]){for(;_0x12216c[_0x2d53dc(0x1bc)]&&_0x12216c[_0x12216c[_0x2d53dc(0x1bc)]-0x1][_0x2d53dc(0x1bd)];)_0x12216c[_0x2d53dc(0x1b4)]();}const _0x5bf42c=_0x12216c[_0x2d53dc(0x1b0)](_0x10e94c=>{const _0x1278cf=_0x2d53dc,_0x139135=_0x10e94c[_0x1278cf(0x1c7)]?_0x1278cf(0x1c1):_0x10e94c[_0x1278cf(0x1bd)]?_0x1278cf(0x1bd):_0x1278cf(0x1b9);return{'node':_0x10e94c[_0x1278cf(0x1b8)][0x0][_0x1278cf(0x1ad)],'type':_0x139135,'id':_0x10e94c[_0x1278cf(0x1b8)][0x0]['id']};});this[_0x2d53dc(0x1c5)]=[{'changes':_0x5bf42c,'state':_0x2d53dc(0x1ba),'index':0x0}];}[_0x412dad(0x1cb)](_0x2712c8,_0x984df9){return _0x984df9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x232e16=_0x26e5;(function(_0x5f3879,_0x4f7bc7){var _0x2f0f17=_0x26e5,_0x33fafe=_0x5f3879();while(!![]){try{var _0x3572a0=-parseInt(_0x2f0f17(0xfa))/0x1+parseInt(_0x2f0f17(0x103))/0x2+-parseInt(_0x2f0f17(0xf9))/0x3+parseInt(_0x2f0f17(0xf7))/0x4*(-parseInt(_0x2f0f17(0xf8))/0x5)+-parseInt(_0x2f0f17(0xfd))/0x6*(-parseInt(_0x2f0f17(0xf6))/0x7)+parseInt(_0x2f0f17(0xfb))/0x8+parseInt(_0x2f0f17(0xff))/0x9;if(_0x3572a0===_0x4f7bc7)break;else _0x33fafe['push'](_0x33fafe['shift']());}catch(_0x481db9){_0x33fafe['push'](_0x33fafe['shift']());}}}(_0x1518,0x29c5f));import{Plugin as _0x2f0557}from'ckeditor5/src/core.js';function _0x1518(){var _0x2f7d9f=['2044280DuAVYr','isOfficialPlugin','6xSBUpQ','name','2042271GcbFnq','AIAdapter','textAdapter','isPremiumPlugin','82254gRKAcn','AIRequestError','pluginName','aiadapter-text-adapter-not-set','afterInit','890449vnFQHd','387772MowsfT','10zuGtiq','18870ErzJwm','279509SwMuiE'];_0x1518=function(){return _0x2f7d9f;};return _0x1518();}function _0x26e5(_0x1c4408,_0x347e02){var _0x151880=_0x1518();return _0x26e5=function(_0x26e5db,_0x46dc60){_0x26e5db=_0x26e5db-0xf6;var _0x2e7714=_0x151880[_0x26e5db];return _0x2e7714;},_0x26e5(_0x1c4408,_0x347e02);}import{CKEditorError as _0x437346}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x2f0557{static get[_0x232e16(0x105)](){var _0x1a924f=_0x232e16;return _0x1a924f(0x100);}static get[_0x232e16(0xfc)](){return!0x0;}static get[_0x232e16(0x102)](){return!0x0;}[_0x232e16(0x107)](){var _0x433592=_0x232e16;if(!this[_0x433592(0x101)])throw new _0x437346(_0x433592(0x106),null);}}export class AIRequestError extends Error{constructor(_0x4c9d5b){var _0x370272=_0x232e16;super(_0x4c9d5b),this[_0x370272(0xfe)]=_0x370272(0x104);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3634a6=_0x111d;(function(_0x201285,_0x154605){const _0xd8e2eb=_0x111d,_0x4548ab=_0x201285();while(!![]){try{const _0x43a193=-parseInt(_0xd8e2eb(0x1d6))/0x1*(-parseInt(_0xd8e2eb(0x1cd))/0x2)+-parseInt(_0xd8e2eb(0x1c2))/0x3+parseInt(_0xd8e2eb(0x1c3))/0x4+parseInt(_0xd8e2eb(0x1d3))/0x5+-parseInt(_0xd8e2eb(0x1cf))/0x6*(parseInt(_0xd8e2eb(0x1cb))/0x7)+parseInt(_0xd8e2eb(0x1d9))/0x8+-parseInt(_0xd8e2eb(0x1bf))/0x9*(parseInt(_0xd8e2eb(0x1c6))/0xa);if(_0x43a193===_0x154605)break;else _0x4548ab['push'](_0x4548ab['shift']());}catch(_0x1113ba){_0x4548ab['push'](_0x4548ab['shift']());}}}(_0x34ae,0x54927));function _0x34ae(){const _0x24f584=['application/json','1757865MYLZyi','abortController','locale','577387WjNhDX','error','init','1504912NmPvEK','plugins','_prepareRequestHeaders','AI_ERROR_GET_HEADERS','abort','requires','makeRequest','editor','sendRequest','assign','get','7227522AgmTfN','object','aitextadapter-send-request-failed','38787IeCpmP','1106440AeYbwt','aborted','signal','10pqlPjz','AbortError','reject','_prepareRequestParameters','name','70YElYQU','textAdapter','2tRXVIo','AI_ERROR_GET_PARAMETERS','138774FeSCSb','resolve','catch'];_0x34ae=function(){return _0x24f584;};return _0x34ae();}import{Plugin as _0x375141}from'ckeditor5/src/core.js';import{CKEditorError as _0x51e383}from'ckeditor5/src/utils.js';import{AIAdapter as _0x300c19,AIRequestError as _0x356c80}from'./aiadapter.js';import{getTranslation as _0xfda6f6}from'../utils/common-translations.js';function _0x111d(_0x5e6788,_0x46ea39){const _0x34ae3f=_0x34ae();return _0x111d=function(_0x111d81,_0x57daca){_0x111d81=_0x111d81-0x1b9;let _0x55dfd6=_0x34ae3f[_0x111d81];return _0x55dfd6;},_0x111d(_0x5e6788,_0x46ea39);}export class AITextAdapter extends _0x375141{[_0x3634a6(0x1d4)];static get[_0x3634a6(0x1b9)](){return[_0x300c19];}constructor(_0x5cd696){const _0x5e06dd=_0x3634a6;super(_0x5cd696),this[_0x5e06dd(0x1d4)]=new AbortController();}[_0x3634a6(0x1d8)](){const _0x10bcbf=_0x3634a6;this[_0x10bcbf(0x1bb)][_0x10bcbf(0x1da)][_0x10bcbf(0x1be)](_0x300c19)[_0x10bcbf(0x1cc)]=this;}[_0x3634a6(0x1dd)](){const _0x20d402=_0x3634a6;this[_0x20d402(0x1d4)][_0x20d402(0x1c5)][_0x20d402(0x1c4)]||(this[_0x20d402(0x1d4)][_0x20d402(0x1dd)](),this[_0x20d402(0x1d4)]=new AbortController());}async[_0x3634a6(0x1ba)](_0x5d4f8b){const _0xab035e=_0x3634a6;return this[_0xab035e(0x1bc)](_0x5d4f8b)[_0xab035e(0x1d1)](_0x4031be=>{const _0x560246=_0xab035e;if(_0x4031be instanceof _0x356c80)return Promise[_0x560246(0x1c8)](_0x4031be);if(_0x560246(0x1c7)==_0x4031be[_0x560246(0x1ca)])return Promise[_0x560246(0x1d0)]();throw console[_0x560246(0x1d7)](_0x4031be),new _0x51e383(_0x560246(0x1c1),null);});}async[_0x3634a6(0x1db)](_0x19e95e,_0x1f739d){const _0x5d4ccd=_0x3634a6,_0x51cb41=this[_0x5d4ccd(0x1bb)][_0x5d4ccd(0x1d5)],_0x3a9e83={'Content-Type':_0x5d4ccd(0x1d2)};if(_0x5d4ccd(0x1c0)==typeof _0x19e95e)Object[_0x5d4ccd(0x1bd)](_0x3a9e83,_0x19e95e);else{if(_0x19e95e)try{const _0x2eac2b=await _0x19e95e(_0x1f739d);Object[_0x5d4ccd(0x1bd)](_0x3a9e83,_0x2eac2b);}catch{return Promise[_0x5d4ccd(0x1c8)](new _0x356c80(_0xfda6f6(_0x51cb41,_0x5d4ccd(0x1dc))));}}return _0x3a9e83;}async[_0x3634a6(0x1c9)](_0x50cb28,_0x32406e){const _0x3ea339=_0x3634a6,_0xcec329=this[_0x3ea339(0x1bb)][_0x3ea339(0x1d5)];if(_0x3ea339(0x1c0)==typeof _0x50cb28)return _0x50cb28;try{return await _0x50cb28(_0x32406e);}catch{return Promise[_0x3ea339(0x1c8)](new _0x356c80(_0xfda6f6(_0xcec329,_0x3ea339(0x1ce))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2637a1=_0x9e02;(function(_0x2e7241,_0x1181e9){var _0x145a2e=_0x9e02,_0x3963dc=_0x2e7241();while(!![]){try{var _0x4534cd=-parseInt(_0x145a2e(0x1a0))/0x1+-parseInt(_0x145a2e(0x19c))/0x2*(parseInt(_0x145a2e(0x1a8))/0x3)+parseInt(_0x145a2e(0x19f))/0x4*(parseInt(_0x145a2e(0x1a6))/0x5)+-parseInt(_0x145a2e(0x1a7))/0x6*(-parseInt(_0x145a2e(0x197))/0x7)+-parseInt(_0x145a2e(0x1a2))/0x8*(parseInt(_0x145a2e(0x1a5))/0x9)+-parseInt(_0x145a2e(0x19b))/0xa+parseInt(_0x145a2e(0x19e))/0xb;if(_0x4534cd===_0x1181e9)break;else _0x3963dc['push'](_0x3963dc['shift']());}catch(_0x5245ac){_0x3963dc['push'](_0x3963dc['shift']());}}}(_0x1c4b,0x3b6d6));function _0x9e02(_0x14c6be,_0x1eddad){var _0x1c4b28=_0x1c4b();return _0x9e02=function(_0x9e0252,_0x1a37ef){_0x9e0252=_0x9e0252-0x196;var _0x54295f=_0x1c4b28[_0x9e0252];return _0x54295f;},_0x9e02(_0x14c6be,_0x1eddad);}import{AITextAdapter as _0x3a3269}from'./aitextadapter.js';import{AIRequestError as _0x23babc}from'./aiadapter.js';import{getTranslation as _0x3f95ec}from'../utils/common-translations.js';function _0x1c4b(){var _0x4351fc=['116108pbvqXr','editor','11030393RdBgfs','5540ufIJKK','484980INNIaT','sendRequest','3771608BzwYhg','AWSTextAdapter','locale','9xFFuHl','1255gSKMwd','2020398jEpgHU','9wklLDU','init','7VZvCJU','pluginName','ai-aws-adapter-not-supported','AI_ERROR_AWS_NOT_SUPPORTED','3131240hpMICM'];_0x1c4b=function(){return _0x4351fc;};return _0x1c4b();}import{logWarning as _0x324134,logError as _0x146716}from'ckeditor5/src/utils.js';export class AWSTextAdapter extends _0x3a3269{static get[_0x2637a1(0x198)](){var _0x16a148=_0x2637a1;return _0x16a148(0x1a3);}[_0x2637a1(0x196)](){var _0x53f5db=_0x2637a1;super[_0x53f5db(0x196)](),_0x324134(_0x53f5db(0x199));}async[_0x2637a1(0x1a1)](_0x33264c){var _0x346318=_0x2637a1;throw _0x146716(_0x346318(0x199)),new _0x23babc(_0x3f95ec(this[_0x346318(0x19d)][_0x346318(0x1a4)],_0x346318(0x19a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x42f9(){const _0x28fe49=['_apiUrl','delta','config','Moderation','system','76YnwJcj','body','user','split','choices','_readStreamableResponse','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.','map','define','signal','stringify','filter','getReader','message','prepareMessages','get','content','gpt-4o','replace','pluginName','13257mWoCDj','395805eFkJzP','_prepareRequestParameters','parse','3138471iUJvls','ai.assistant.adapter.openAI.apiUrl','ai.assistant.adapter.openAI.requestParameters','https://api.openai.com/v1/chat/completions','_readStaticResponse','AI_ERROR_CONTEXT_LENGTH','Instruction:\x0a','context_length_exceeded','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.','includes','join','_cleanUpData','sendRequest','AI_ERROR_MODERATION','read','_isBufferIncomplete','12456MtMCOm','data:\x20','text','POST','resolve','[DONE]','reject','decode','ai.assistant.adapter.openAI.requestHeaders','json','abortController','7093776RdsVnG','2039826HTpgmb','1179887NbVALF','stream','1564325eLHKfs','_prepareRequestHeaders','editor','length','OpenAITextAdapter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestHeaders','locale','_requestParameters'];_0x42f9=function(){return _0x28fe49;};return _0x42f9();}const _0x2c350e=_0x51d1;(function(_0x3605da,_0x5574c1){const _0x431132=_0x51d1,_0x5413df=_0x3605da();while(!![]){try{const _0x422fbc=parseInt(_0x431132(0x165))/0x1+-parseInt(_0x431132(0x164))/0x2+-parseInt(_0x431132(0x148))/0x3+parseInt(_0x431132(0x175))/0x4*(-parseInt(_0x431132(0x145))/0x5)+parseInt(_0x431132(0x163))/0x6+-parseInt(_0x431132(0x167))/0x7+-parseInt(_0x431132(0x158))/0x8*(-parseInt(_0x431132(0x144))/0x9);if(_0x422fbc===_0x5574c1)break;else _0x5413df['push'](_0x5413df['shift']());}catch(_0x4888d7){_0x5413df['push'](_0x5413df['shift']());}}}(_0x42f9,0xd2758));import{AITextAdapter as _0xc538a4}from'./aitextadapter.js';import{AIRequestError as _0x4163c0}from'./aiadapter.js';import{getTranslation as _0x2c9ac8}from'../utils/common-translations.js';function _0x51d1(_0x2905f4,_0x38c882){const _0x42f983=_0x42f9();return _0x51d1=function(_0x51d1c2,_0x327ca7){_0x51d1c2=_0x51d1c2-0x13b;let _0x37a926=_0x42f983[_0x51d1c2];return _0x37a926;},_0x51d1(_0x2905f4,_0x38c882);}export class OpenAITextAdapter extends _0xc538a4{[_0x2c350e(0x170)];[_0x2c350e(0x16d)];[_0x2c350e(0x16f)];static get[_0x2c350e(0x143)](){const _0x98cd21=_0x2c350e;return _0x98cd21(0x16b);}constructor(_0x5e94c8){const _0x424b3b=_0x2c350e;super(_0x5e94c8),_0x5e94c8[_0x424b3b(0x172)][_0x424b3b(0x17d)](_0x424b3b(0x149),_0x424b3b(0x14b)),_0x5e94c8[_0x424b3b(0x172)][_0x424b3b(0x13f)](_0x424b3b(0x14a))||_0x5e94c8[_0x424b3b(0x172)][_0x424b3b(0x17d)](_0x424b3b(0x14a),{'model':_0x424b3b(0x141),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x424b3b(0x170)]=_0x5e94c8[_0x424b3b(0x172)][_0x424b3b(0x13f)](_0x424b3b(0x149)),this[_0x424b3b(0x16d)]=_0x5e94c8[_0x424b3b(0x172)][_0x424b3b(0x13f)](_0x424b3b(0x160))||{},this[_0x424b3b(0x16f)]=_0x5e94c8[_0x424b3b(0x172)][_0x424b3b(0x13f)](_0x424b3b(0x14a));}async[_0x2c350e(0x154)]({query:_0x17be33,context:_0x5afe6f,onData:_0x446fbc,actionId:_0x5c9601}){const _0x3350d7=_0x2c350e,_0x490221=this[_0x3350d7(0x169)][_0x3350d7(0x16e)],_0x330a2a=await this[_0x3350d7(0x13e)](_0x17be33,_0x5afe6f,_0x5c9601),_0x2c25e6=await this[_0x3350d7(0x168)](this[_0x3350d7(0x16d)],_0x5c9601),_0x3b27ea=await this[_0x3350d7(0x146)](this[_0x3350d7(0x16f)],_0x5c9601),_0x5304d4={'messages':_0x330a2a,..._0x3b27ea},_0x215993={'method':_0x3350d7(0x15b),'headers':_0x2c25e6,'body':JSON[_0x3350d7(0x17f)](_0x5304d4),'signal':this[_0x3350d7(0x162)][_0x3350d7(0x17e)]},_0x5d8131=await fetch(this[_0x3350d7(0x170)],_0x215993);if(_0x5d8131['ok'])return _0x3b27ea[_0x3350d7(0x166)]?await this[_0x3350d7(0x17a)](_0x5d8131,_0x446fbc):await this[_0x3350d7(0x14c)](_0x5d8131,_0x446fbc),Promise[_0x3350d7(0x15c)]();{const _0x67b7c0=await _0x5d8131[_0x3350d7(0x15a)]();return _0x67b7c0[_0x3350d7(0x151)](_0x3350d7(0x14f))?Promise[_0x3350d7(0x15e)](new _0x4163c0(_0x2c9ac8(_0x490221,_0x3350d7(0x14d)))):_0x67b7c0[_0x3350d7(0x151)](_0x3350d7(0x173))?Promise[_0x3350d7(0x15e)](new _0x4163c0(_0x2c9ac8(_0x490221,_0x3350d7(0x155)))):Promise[_0x3350d7(0x15e)](new Error(_0x67b7c0));}}async[_0x2c350e(0x13e)](_0x5467ad,_0x367e40,_0x43ab19){const _0x55b8c1=_0x2c350e;let _0x190a29,_0x1c5679;return _0x367e40?(_0x190a29=_0x55b8c1(0x150),_0x1c5679=_0x55b8c1(0x14e)+_0x5467ad+_0x55b8c1(0x16c)+_0x367e40):(_0x190a29=_0x55b8c1(0x17b),_0x1c5679=_0x5467ad),[{'role':_0x55b8c1(0x174),'content':_0x190a29},{'role':_0x55b8c1(0x177),'content':_0x1c5679}];}async[_0x2c350e(0x17a)](_0x15e186,_0x3c39b5){const _0x1608ae=_0x2c350e,_0x44d2ad=_0x15e186[_0x1608ae(0x176)][_0x1608ae(0x13c)](),_0x12046c=new TextDecoder();let _0x17f508='',_0x45275c='',_0x271b99='',_0x2fbd2c=!0x1;for(;!_0x2fbd2c;){const {done:_0x2f4558,value:_0x5f4501}=await _0x44d2ad[_0x1608ae(0x156)](),_0x5f2eeb=_0x17f508+_0x12046c[_0x1608ae(0x15f)](_0x5f4501);let _0x5efd84='';_0x2fbd2c=_0x2f4558;try{_0x5efd84=this[_0x1608ae(0x153)](_0x5f2eeb),_0x17f508='';}catch{_0x17f508=_0x5f2eeb;continue;}_0x45275c+=_0x5efd84,!_0x2fbd2c&&this[_0x1608ae(0x157)](_0x45275c)||_0x45275c&&(_0x271b99+=_0x45275c,_0x45275c='',_0x3c39b5(_0x271b99));}return Promise[_0x1608ae(0x15c)]();}async[_0x2c350e(0x14c)](_0x3ae70a,_0x5cb28e){const _0x17a976=_0x2c350e;return _0x5cb28e((await _0x3ae70a[_0x17a976(0x161)]())[_0x17a976(0x179)][0x0][_0x17a976(0x13d)][_0x17a976(0x140)]),Promise[_0x17a976(0x15c)]();}[_0x2c350e(0x157)](_0x1f1431){const _0x5ae45a=_0x2c350e,_0x13d434=_0x1f1431[_0x5ae45a(0x178)]('<')[_0x5ae45a(0x16a)]!==_0x1f1431[_0x5ae45a(0x178)]('>')[_0x5ae45a(0x16a)],_0x207286=_0x1f1431[_0x5ae45a(0x16a)]<0x1e;return _0x13d434&&_0x207286;}[_0x2c350e(0x153)](_0x10dfa0){const _0x287325=_0x2c350e;return _0x10dfa0[_0x287325(0x178)](/\n(?![^{]*\})/g)[_0x287325(0x17c)](_0x11dda6=>_0x11dda6[_0x287325(0x142)](_0x287325(0x159),''))[_0x287325(0x13b)](_0x3f3c37=>_0x3f3c37&&_0x3f3c37[_0x287325(0x16a)]>0x0&&_0x287325(0x15d)!==_0x3f3c37)[_0x287325(0x17c)](_0x5a9e69=>{const _0x13e68f=_0x287325,{choices:_0x300623}=JSON[_0x13e68f(0x147)](_0x5a9e69);if(_0x300623[0x0]?.[_0x13e68f(0x171)]?.[_0x13e68f(0x140)])return _0x300623[0x0][_0x13e68f(0x171)][_0x13e68f(0x140)];})[_0x287325(0x13b)](_0x318998=>_0x318998)[_0x287325(0x152)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x587358=_0x4ff6;function _0xc8f7(){const _0xc6110f=['20CAXPkz','Translate','summarize','Portuguese','AIAssistant','poetic','friendly','forEach','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','casual','Friendly','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','8213366QHeUmt','set','German','editOrReview','Simplify\x20language','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Summarize','Edit\x20or\x20review','continue','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','isPremiumPlugin','Translate\x20the\x20content\x20to\x20English\x20language.','Spanish','translateGerman','Make\x20shorter','8399501joDbND','journalism','Professional','Legal','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Continue','translateHindi','improveWriting','Simplified\x20Chinese','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','define','Direct','confident','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translatePortuguese','simplifyLanguage','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','pluginName','Make\x20longer','English','Generate\x20from\x20selection','Confident','translateChinese','changeTone','translateArabic','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Arabic','find','requires','config','Change\x20tone','102395zNjbGP','changeStyle','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Journalism','isOfficialPlugin','ai.assistant.commands','Improve\x20writing','push','Business','locale','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','ai.assistant.preserveComments','ai.assistant.removeCommands','Casual','concat','1754KIfEcQ','includes','Change\x20style','makeShorter','391LwbbMz','translateFrench','translateSpanish','groupId','45896424wzYthM','Translate\x20the\x20content\x20to\x20German\x20language.','generate','professional','36AraxVX','Translate\x20the\x20content\x20to\x20Spanish\x20language.','direct','1751319iRnyef','translate','filter','Poetic','get','commands','1644OzdTXm','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','legal','ai.assistant.extraCommandGroups','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','3984OMmZpv','business','40LmOKCY','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Hindi','makeLonger','French','translateEnglish'];_0xc8f7=function(){return _0xc6110f;};return _0xc8f7();}(function(_0x3a2726,_0x449221){const _0x564547=_0x4ff6,_0x2f0bd1=_0x3a2726();while(!![]){try{const _0xc95cf2=-parseInt(_0x564547(0x145))/0x1*(-parseInt(_0x564547(0x141))/0x2)+parseInt(_0x564547(0x156))/0x3*(parseInt(_0x564547(0x15b))/0x4)+-parseInt(_0x564547(0x132))/0x5*(parseInt(_0x564547(0x14d))/0x6)+-parseInt(_0x564547(0x100))/0x7+parseInt(_0x564547(0xec))/0x8*(-parseInt(_0x564547(0x150))/0x9)+-parseInt(_0x564547(0xf4))/0xa*(parseInt(_0x564547(0x110))/0xb)+parseInt(_0x564547(0x149))/0xc;if(_0xc95cf2===_0x449221)break;else _0x2f0bd1['push'](_0x2f0bd1['shift']());}catch(_0x8fe0dc){_0x2f0bd1['push'](_0x2f0bd1['shift']());}}}(_0xc8f7,0xdfe4c));import{Plugin as _0x3e36b7}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x259ded}from'./aiassistantui.js';import{AIAssistantEditing as _0x5a7ac4}from'./aiassistantediting.js';import{getTranslation as _0x5bad79}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x5dfdb7}from'./utils/normalizecommandsconfig.js';function _0x4ff6(_0x5d12e4,_0x48f32c){const _0xc8f79f=_0xc8f7();return _0x4ff6=function(_0x4ff6fd,_0x5b1b5c){_0x4ff6fd=_0x4ff6fd-0xec;let _0x15c8a2=_0xc8f79f[_0x4ff6fd];return _0x15c8a2;},_0x4ff6(_0x5d12e4,_0x48f32c);}export class AIAssistant extends _0x3e36b7{static get[_0x587358(0x12f)](){return[_0x259ded,_0x5a7ac4];}static get[_0x587358(0x124)](){const _0x1effc8=_0x587358;return _0x1effc8(0xf8);}static get[_0x587358(0x136)](){return!0x0;}static get[_0x587358(0x10b)](){return!0x0;}constructor(_0x26b4a2){const _0x3fb2ef=_0x587358;super(_0x26b4a2);const _0xbaeee0=_0x26b4a2[_0x3fb2ef(0x130)],_0x1bddd0=_0x26b4a2[_0x3fb2ef(0x13b)];_0xbaeee0[_0x3fb2ef(0x11a)](_0x3fb2ef(0x13d),!0x0),_0xbaeee0[_0x3fb2ef(0x11a)](_0x3fb2ef(0x137),getDefaultAICommands(_0x1bddd0)),_0xbaeee0[_0x3fb2ef(0x11a)](_0x3fb2ef(0x159),[]),_0xbaeee0[_0x3fb2ef(0x11a)](_0x3fb2ef(0x13e),[]);let _0x4935f2=_0x5dfdb7(_0xbaeee0[_0x3fb2ef(0x154)](_0x3fb2ef(0x137)),_0x1bddd0);const _0x4c7539=_0xbaeee0[_0x3fb2ef(0x154)](_0x3fb2ef(0x159)),_0x57c7c3=_0xbaeee0[_0x3fb2ef(0x154)](_0x3fb2ef(0x13e));_0x4c7539[_0x3fb2ef(0xfb)](_0x39d528=>{const _0x2218e8=_0x3fb2ef,_0x1a73e6=_0x4935f2[_0x2218e8(0x12e)](_0x592ca1=>_0x592ca1[_0x2218e8(0x148)]===_0x39d528[_0x2218e8(0x148)]);_0x1a73e6?_0x1a73e6[_0x2218e8(0x155)]=_0x1a73e6[_0x2218e8(0x155)][_0x2218e8(0x140)](_0x39d528[_0x2218e8(0x155)]):_0x4935f2[_0x2218e8(0x139)](_0x39d528);}),_0x4935f2=_0x4935f2[_0x3fb2ef(0x152)](_0x3ab439=>!_0x57c7c3[_0x3fb2ef(0x142)](_0x3ab439[_0x3fb2ef(0x148)])),_0x4935f2[_0x3fb2ef(0xfb)](_0x54e3d6=>{const _0xde2321=_0x3fb2ef;_0x54e3d6[_0xde2321(0x155)]=_0x54e3d6[_0xde2321(0x155)][_0xde2321(0x152)](_0x2f19e6=>!_0x57c7c3[_0xde2321(0x142)](_0x2f19e6['id']));}),_0xbaeee0[_0x3fb2ef(0x101)](_0x3fb2ef(0x137),_0x4935f2);}}export function getDefaultAICommands(_0x3369aa){const _0x59ebb8=_0x587358;return[{'groupId':_0x59ebb8(0x103),'groupLabel':_0x5bad79(_0x3369aa,_0x59ebb8(0x107)),'commands':[{'id':_0x59ebb8(0x117),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x138)),'prompt':_0x59ebb8(0x12c)},{'id':_0x59ebb8(0x144),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x10f)),'prompt':_0x59ebb8(0xef)},{'id':_0x59ebb8(0xf1),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x125)),'prompt':_0x59ebb8(0xfc)},{'id':_0x59ebb8(0x121),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x104)),'prompt':_0x59ebb8(0x134)}]},{'groupId':_0x59ebb8(0x14b),'groupLabel':_0x5bad79(_0x3369aa,_0x59ebb8(0x127)),'commands':[{'id':_0x59ebb8(0xf6),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x106)),'prompt':_0x59ebb8(0xff)},{'id':_0x59ebb8(0x108),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x115)),'prompt':_0x59ebb8(0x13c)}]},{'groupId':_0x59ebb8(0x12a),'groupLabel':_0x5bad79(_0x3369aa,_0x59ebb8(0x131)),'commands':[{'id':_0x59ebb8(0x14c),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x112)),'prompt':_0x59ebb8(0x15a)},{'id':_0x59ebb8(0xfd),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x13f)),'prompt':_0x59ebb8(0x123)},{'id':_0x59ebb8(0x14f),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x11b)),'prompt':_0x59ebb8(0xee)},{'id':_0x59ebb8(0x11c),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x128)),'prompt':_0x59ebb8(0xed)},{'id':_0x59ebb8(0xfa),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0xfe)),'prompt':_0x59ebb8(0x119)}]},{'groupId':_0x59ebb8(0x133),'groupLabel':_0x5bad79(_0x3369aa,_0x59ebb8(0x143)),'commands':[{'id':_0x59ebb8(0x15c),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x13a)),'prompt':_0x59ebb8(0x105)},{'id':_0x59ebb8(0x158),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x113)),'prompt':_0x59ebb8(0x11f)},{'id':_0x59ebb8(0x111),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x135)),'prompt':_0x59ebb8(0x109)},{'id':_0x59ebb8(0xf9),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x153)),'prompt':_0x59ebb8(0x122)}]},{'groupId':_0x59ebb8(0x151),'groupLabel':_0x5bad79(_0x3369aa,_0x59ebb8(0xf5)),'commands':[{'id':_0x59ebb8(0xf3),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x126)),'prompt':_0x59ebb8(0x10c)},{'id':_0x59ebb8(0x147),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x10d)),'prompt':_0x59ebb8(0x14e)},{'id':_0x59ebb8(0x120),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0xf7)),'prompt':_0x59ebb8(0x157)},{'id':_0x59ebb8(0x10e),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x102)),'prompt':_0x59ebb8(0x14a)},{'id':_0x59ebb8(0x146),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0xf2)),'prompt':_0x59ebb8(0x11d)},{'id':_0x59ebb8(0x129),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x118)),'prompt':_0x59ebb8(0x10a)},{'id':_0x59ebb8(0x116),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0xf0)),'prompt':_0x59ebb8(0x114)},{'id':_0x59ebb8(0x12b),'label':_0x5bad79(_0x3369aa,_0x59ebb8(0x12d)),'prompt':_0x59ebb8(0x11e)}]}];}
|