@ckeditor/ckeditor5-track-changes 35.0.1 → 35.1.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/track-changes.js +1 -1
- package/build/translations/tt.js +1 -0
- package/build/translations/ur.js +1 -0
- package/lang/translations/tt.po +379 -0
- package/lang/translations/ur.po +397 -0
- package/package.json +4 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/getrangesofblockgroups.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e50=['_adapter','markerReady','nodeAfter','highest','markInlineFormat','catch','isIntersectingWithRange','formatInline','refresh','ck-suggestion-marker-','schema','getMultiRangeId','change:activeMarkers','moveTargetPosition','markerName','pluginName','deletion','elementStart','createPositionAt','nodeBefore','enableReadOnlyMode','isLimit','every','collaboration.channelId','insert','change:_saved','createRange','length','multipleBlocks','elementEnd','_findSuggestions','formatInline:join','suggestionUnloaded','acceptSelectedSuggestions','consume','updateSuggestion','insertion','track-changes-suggestion-data-mismatch','move','open','hasSuggestion','commandName','ck-suggestion-marker--active','_defaultCallbacks','add','listenTo','then','rethrowUnexpectedError','trackChangesCommand','for','toViewElement','isUndo','_enabledCommands','_getSuggestionData','batch','addCommentThread','formatBlock:','isDocumentOperation','removeComment','_suggestionState','PendingActions','editing','filter','high','lowest','containsPosition','ck-suggestion-marker-formatBlock','getDifference','getRanges','markMultiRangeBlockFormat','isAfter','accept','_commentsRepository','getFirstMarker','ready','adapter','sort','discardAllSuggestions','locale','_descriptionFactory','_breakSuggestionMarker','deletion:','commands','acceptSuggestion','fromCharCode','isOwn','includes','removeClass','execute','value','suggestion','isRemovable','getAttribute','showSuggestionHighlights','multi','normal','_customCallbacks','_updateSuggestionData','markMultiRangeInsertion','CommentsRepository','suggestionLoaded','enableCommand','position','_setSuggestionData','markers','getUser','_registerDefaultCallbacks','getAllAdjacentSuggestions','TrackChangesEditing','next','_onDiscard','getSuggestions','getLastMatchingPosition','_removeSuggestion','discardSuggestion','notReady','removed','isAtEnd','document','stop','suggestionChanged','howMany','join','isBlock','createRangeIn','containsRangeInObject','formatInline:','fromRange','$graveyard','config','plugins','hasCommentThread','clone','getItems','$marker','formatBlock','root','insertContent','getWalker','isBefore','createdAt','unbindElementFromMarkerName','addSuggestion','commentThread','isEqual','newRange','element','elementToElement','_handleNewSuggestionMarker','getChangedMarkers','skipNestingCheck','isInContent','_setSuggestionRange','markDeletion','_checkSuggestionCorrectness','detach','name','discard','markBlockFormat','some','trackChanges','parent','removeMarker','before','selection','rootName','reconvertMarker','Users','subType','deleteContent','isSelectable','track-changes-adapter-already-set','dataDowncast','editor','getAncestors','_joinWithAdjacentSuggestions','_addThreadToSuggestion','PENDING_ACTION_SUGGESTION','fetchCommentThread','containsRange','setSelection','isNextTo','_getAuthorFromId','item','set','forceDefaultExecution','isInsideObject','getShiftedBy','after','data','getCommentThread','low','isLocal','writer','range','split','deletion:accept','get','conversion','getMarkers','ck-suggestion-marker','_editor','error-saving-suggestion-data-suggestion-discarded','formatInline:discard','editingDowncast','markInsertion','from','init','attributes','addClass','start','clear','insertion:chain','updateMarker','getIntersection','getSuggestion','end','markerToData','mapper','consumable','getRange','setTo','toJSON','documentSelection','values','addComment','insertion:discard','insertion:','update:suggestion','enqueueChange','stopListening','markerToHighlight','forward','marker-count','_suggestionFactory','differ','oldRange','resolve','getChanges','isTouching','has','model','registerPostFixer','bindElementToMarker','targetPosition','chain','acceptAllSuggestions','formatGroupId','dataReady','fire','deletion:chain','createElement','_createSuggestion','change','widget','_suggestions','removeMarkers','_splitMarkerName','_addSuggestionMarker','push','getCustomProperty','activeMarkers','author','addRange','_isForcedDefaultExecutionBlock','requires','_saved','hasComments','type','addHighlight','buildSuggestion','splice','substr','addMarker:suggestion','insertion:accept','isCollapsed','accepted','upcast','markerNameToElements','formatInline:accept','unbind','getSuggestionCallback','formatBlock:chain','getNearestSelectionRange','discardSelectedSuggestions','splitPosition','_joinSuggestions','_rangeIsInLocalUserInsertion','isMultiRange','addSuggestionData','getFirstRange','previous','options','formatInline:chain','isObject','map','_model'];(function(_0x5743e5,_0x4e50be){const _0x20845b=function(_0x5e5aa7){while(--_0x5e5aa7){_0x5743e5['push'](_0x5743e5['shift']());}};_0x20845b(++_0x4e50be);}(_0x4e50,0x1d2));const _0x2084=function(_0x5743e5,_0x4e50be){_0x5743e5=_0x5743e5-0x0;let _0x20845b=_0x4e50[_0x5743e5];return _0x20845b;};import{Plugin as _0x8ec1c4,PendingActions as _0x4e6bbe}from'ckeditor5/src/core';import{LiveRange as _0x184ebb}from'ckeditor5/src/engine';import{CKEditorError as _0xa2b4f8,uid as _0x495cdf,priorities as _0x2fc2f3,EmitterMixin as _0x5cb8bb,mix as _0x52747c,logWarning as _0x3155d4}from'ckeditor5/src/utils';import{toWidget as _0x402b96}from'ckeditor5/src/widget';import{Users as _0xe522a7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4416c1 from'./commands/trackchangescommand';import _0x57bec2 from'./commands/acceptsuggestioncommand';import _0x2490be from'./commands/discardsuggestioncommand';import _0x51437a from'./commands/acceptallsuggestionscommand';import _0x37d9a2 from'./commands/acceptselectedsuggestionscommand';import _0x5a0ffd from'./commands/discardallsuggestionscommand';import _0x1498b2 from'./commands/discardselectedsuggestionscommand';import _0x4f381c from'./suggestion';import _0x326a3c from'./suggestiondescriptionfactory';import _0x14260a from'./integrations/alignment';import _0xb18c0 from'./integrations/basicstyles';import _0x47261e from'./integrations/blockquote';import _0xdcecb3 from'./integrations/ckbox';import _0x3b44a1 from'./integrations/codeblock';import _0x387bbd from'./integrations/comments';import _0x59e1fe from'./integrations/deletecommand';import _0x1e2300 from'./integrations/entercommand';import _0xf1da5d from'./integrations/font';import _0x19dfc9 from'./integrations/heading';import _0xb5bb84 from'./integrations/highlight';import _0x8a84b8 from'./integrations/horizontalline';import _0x37558a from'./integrations/htmlembed';import _0x4acfd4 from'./integrations/image';import _0x31613c from'./integrations/indent';import _0x4df52f from'./integrations/inputcommand';import _0xb8c452 from'./integrations/link';import _0x3eb14d from'./integrations/list';import _0x150391 from'./integrations/mediaembed';import _0x4fef32 from'./integrations/mention';import _0x4f1c46 from'./integrations/pagebreak';import _0x175997 from'./integrations/paragraph';import _0x3d6627 from'./integrations/removeformat';import _0xbc04ab from'./integrations/restrictededitingmode';import _0x25c690 from'./integrations/shiftentercommand';import _0x5c4d29 from'./integrations/standardeditingmode';import _0x128768 from'./integrations/style';import _0x5c5a42 from'./integrations/table';import _0x432f89 from'./integrations/tablemergesplit';import _0xb06e44 from'./integrations/tableheadings';import _0x36a464 from'./integrations/tableclipboard';import _0x1c4f12 from'./integrations/title';import _0x40f99d from'./integrations/undo';import _0x252d75 from'./utils/hashobject.js';import{getTranslation as _0x2d02e2}from'./utils/common-translations';export default class d extends _0x8ec1c4{static get[_0x2084('0x60')](){return[_0x2084('0xe3'),_0xe522a7,_0x4e6bbe,_0x14260a,_0xb18c0,_0x47261e,_0xdcecb3,_0x3b44a1,_0x387bbd,_0x59e1fe,_0x1e2300,_0xf1da5d,_0x19dfc9,_0xb5bb84,_0x8a84b8,_0x37558a,_0x4acfd4,_0x31613c,_0x4df52f,_0xb8c452,_0x3eb14d,_0x150391,_0x4fef32,_0x4f1c46,_0x175997,_0x3d6627,_0xbc04ab,_0x25c690,_0x5c4d29,_0x128768,_0x5c5a42,_0x432f89,_0xb06e44,_0x36a464,_0x1c4f12,_0x40f99d];}static get[_0x2084('0x8f')](){return _0x2084('0xec');}constructor(_0x2e317b){function _0x39bdc7(_0x19686c){return _0x19686c['map'](_0x524375=>String[_0x2084('0xd4')](_0x524375))[_0x2084('0xfa')]('');}super(_0x2e317b),this['set'](_0x2084('0x5c'),[]),this['on'](_0x2084('0x8c'),(_0x48358f,_0x471129,_0x2515da,_0xa073be)=>{this[_0x2084('0x7f')][_0x2084('0x54')](()=>{for(const _0xc52385 of[..._0xa073be,..._0x2515da])this[_0x2084('0x7f')][_0x2084('0xe8')][_0x2084('0x47')](_0xc52385)&&_0x2e317b[_0x2084('0xbd')][_0x2084('0x126')](_0xc52385);});}),this[_0x2084('0xcf')]=new _0x326a3c(this['editor'][_0x2084('0x48')][_0x2084('0x8a')],this[_0x2084('0x4')][_0x2084('0xce')]),this[_0x2084('0x80')]=null,this[_0x2084('0x41')]=new kt(this[_0x2084('0x4')]),this[_0x2084('0x56')]=new Map(),this[_0x2084('0xc8')]=_0x2e317b[_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0xe3')),this[_0x2084('0xb4')]=new Set(),this['_model']=this[_0x2084('0x4')][_0x2084('0x48')],this[_0x2084('0xbb')]=new WeakMap(),this[_0x2084('0x5f')]=!0x1,this[_0x39bdc7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x39bdc7([0x34,0x30,0x34,0x34,0x31,0x36,0x30,0x36]);}[_0x2084('0x26')](){const _0x479243=this[_0x2084('0x4')];_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x23'))[_0x2084('0x3e')]({'model':_0x2084('0xda'),'view':_0xcc5c97=>{const {id:_0x3255bf,type:_0x50d112}=this['_splitMarkerName'](_0xcc5c97[_0x2084('0x8e')]),_0x24bee7=[_0x2084('0x1f'),'ck-suggestion-marker-'+_0x50d112];let _0x309fb1=0xbb8;return this[_0x2084('0x5c')][_0x2084('0xd6')](_0xcc5c97[_0x2084('0x8e')])&&(_0x24bee7[_0x2084('0x5a')](_0x2084('0xaa')),_0x309fb1=0xbc2),_0x2084('0x90')==_0x50d112&&(_0x309fb1+=0x5),{'classes':_0x24bee7,'attributes':{'data-suggestion':_0x3255bf},'priority':_0x309fb1};}}),_0x479243['conversion'][_0x2084('0xb1')](_0x2084('0x3'))[_0x2084('0xac')](_0x4936ae=>{_0x4936ae['on'](_0x2084('0x68'),(_0x3c2f34,_0xcb4342,_0x3093ed)=>{if(!_0x3093ed[_0x2084('0x7b')][_0x2084('0xdd')])return;const _0x1cc7f5=_0xcb4342[_0x2084('0xe')];if(!_0x1cc7f5)return;const _0x1f5d84=_0x3093ed[_0x2084('0x31')][_0x2084('0xb2')](_0x1cc7f5);_0x479243[_0x2084('0x48')][_0x2084('0x8a')][_0x2084('0x7d')](_0x1cc7f5)&&_0x1f5d84&&!_0x1f5d84[_0x2084('0x5b')](_0x2084('0x55'))&&_0x1f5d84['is']('containerElement')&&_0x402b96(_0x1f5d84,_0x3093ed[_0x2084('0x18')]);},{'priority':'high'});}),_0x479243['conversion'][_0x2084('0xb1')]('dataDowncast')['markerToHighlight']({'model':_0x2084('0xda'),'view':(_0x1ba0a5,_0x15d740)=>{if(!_0x15d740[_0x2084('0x7b')][_0x2084('0xdd')])return null;const {type:_0x13e6e0}=this[_0x2084('0x58')](_0x1ba0a5['markerName']);return{'classes':[_0x2084('0x1f'),_0x2084('0x89')+_0x13e6e0],'priority':0xbb8};}});const _0x1886fa=({showActiveMarkers:_0xddfd67=!0x0}={})=>(_0xa394ab,_0x48ad2d,_0x312ee3)=>{if(!_0x48ad2d[_0x2084('0xe')])return;if(_0x48ad2d[_0x2084('0xe')]['is'](_0x2084('0x124')))return void _0x312ee3[_0x2084('0x32')][_0x2084('0xa2')](_0x48ad2d[_0x2084('0xe')],_0xa394ab[_0x2084('0x11c')]);const _0x8f8709=_0x312ee3[_0x2084('0x31')][_0x2084('0xb2')](_0x48ad2d['item']);if(!(_0x48ad2d[_0x2084('0xe')]['is'](_0x2084('0x112'))&&_0x479243[_0x2084('0x48')]['schema'][_0x2084('0xfb')](_0x48ad2d[_0x2084('0xe')])&&!_0x8f8709[_0x2084('0x5b')](_0x2084('0x64'))))return;const {id:_0x4b1e5b}=this[_0x2084('0x58')](_0x48ad2d['markerName']);_0x312ee3['writer'][_0x2084('0x28')]([_0x2084('0x1f'),_0x2084('0xc2')],_0x8f8709),_0x312ee3[_0x2084('0x18')]['setAttribute']('data-suggestion',_0x4b1e5b,_0x8f8709),_0x312ee3[_0x2084('0x31')][_0x2084('0x4a')](_0x8f8709,_0x48ad2d[_0x2084('0x8e')]),_0xddfd67&&(this['activeMarkers'][_0x2084('0xd6')](_0x48ad2d['markerName'])?_0x312ee3[_0x2084('0x18')][_0x2084('0x28')](_0x2084('0xaa'),_0x8f8709):_0x312ee3[_0x2084('0x18')][_0x2084('0xd7')](_0x2084('0xaa'),_0x8f8709));for(const _0x1a6991 of _0x479243['model'][_0x2084('0xfc')](_0x48ad2d[_0x2084('0xe')])[_0x2084('0x105')]())_0x312ee3['consumable'][_0x2084('0xa2')](_0x1a6991,_0xa394ab[_0x2084('0x11c')]);_0x312ee3[_0x2084('0x32')][_0x2084('0xa2')](_0x48ad2d[_0x2084('0xe')],_0xa394ab[_0x2084('0x11c')]);};_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x3'))[_0x2084('0xac')](_0x973023=>{_0x973023['on']('addMarker:suggestion:formatBlock',(_0x1354b8,_0x5297c0,_0x4485e8)=>{_0x4485e8['options']['showSuggestionHighlights']&&_0x1886fa({'showActiveMarkers':!0x1})(_0x1354b8,_0x5297c0,_0x4485e8);},{'priority':_0x2084('0x83')});}),_0x479243[_0x2084('0x1d')][_0x2084('0xb1')]('dataDowncast')[_0x2084('0x30')]({'model':'suggestion','view':(_0x2ad8da,_0x56e9e9)=>_0x56e9e9[_0x2084('0x7b')][_0x2084('0xdd')]?null:{'group':_0x2084('0xda'),'name':_0x2ad8da[_0x2084('0x67')](_0x2084('0xda')[_0x2084('0x9b')]+0x1)}}),_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x6c'))[_0x2084('0x113')]({'view':{'name':_0x2084('0xda'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x433541,{writer:_0x88bba0})=>{let _0x46afc5='suggestion:'+_0x433541[_0x2084('0xdc')]('suggestion-type')+':'+_0x433541[_0x2084('0xdc')]('id');return _0x433541[_0x2084('0xdc')](_0x2084('0x40'))&&(_0x46afc5+=':'+_0x433541[_0x2084('0xdc')](_0x2084('0x40'))),_0x88bba0[_0x2084('0x52')](_0x2084('0x106'),{'data-name':_0x46afc5});}}),_0x479243[_0x2084('0x1d')]['for'](_0x2084('0x6c'))['dataToMarker']({'view':'suggestion'}),_0x479243[_0x2084('0x1d')]['for'](_0x2084('0x23'))['add'](_0x32274b=>{_0x32274b['on']('addMarker:suggestion:formatBlock',_0x1886fa(),{'priority':_0x2084('0xbf')});}),_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x23'))[_0x2084('0xac')](_0x22da38=>{_0x22da38['on']('removeMarker:suggestion:formatBlock',(_0x261ece,_0x46a80b,_0x34bd34)=>{const _0x214526=_0x34bd34['mapper'][_0x2084('0x6d')](_0x46a80b[_0x2084('0x8e')]);if(_0x214526)for(const _0x1198f4 of _0x214526)_0x1198f4[_0x2084('0x5b')](_0x2084('0x64'))||(_0x34bd34[_0x2084('0x18')][_0x2084('0xd7')]([_0x2084('0x1f'),_0x2084('0xc2'),_0x2084('0xaa')],_0x1198f4),_0x34bd34[_0x2084('0x18')]['removeAttribute']('data-suggestion',_0x1198f4),_0x34bd34[_0x2084('0x31')][_0x2084('0x10d')](_0x1198f4,_0x46a80b['markerName']));},{'priority':_0x2084('0xbf')});}),_0x479243[_0x2084('0x48')]['document']['registerPostFixer'](_0x3b5575=>{let _0x474116=!0x1;const _0x54b809=Array[_0x2084('0x25')](_0x479243[_0x2084('0x48')][_0x2084('0xf6')][_0x2084('0x42')][_0x2084('0x115')]());for(const {name:_0x3e081d,data:_0x3a0a21}of _0x54b809){const {group:_0x5e5264,type:_0x4e3018,id:_0x479205}=this[_0x2084('0x58')](_0x3e081d);if(_0x2084('0xda')!==_0x5e5264)continue;const _0x18f232=this[_0x2084('0x56')][_0x2084('0x1c')](_0x479205);if(null!=_0x3a0a21['newRange']){'formatInline'==_0x4e3018&&(_0x474116=_0x474116||bt(_0x3a0a21[_0x2084('0x111')],_0x3e081d,_0x3b5575,_0x479243['model'][_0x2084('0x8a')]));if(_0x3a0a21[_0x2084('0x111')]['isCollapsed']||_0x2084('0x100')==_0x3a0a21[_0x2084('0x111')][_0x2084('0x108')][_0x2084('0x125')]||_0x2084('0x107')==_0x4e3018&&!It(_0x3a0a21[_0x2084('0x111')])||_0x2084('0x90')==_0x4e3018&&!(!yt(_0x1fefbb=_0x3a0a21[_0x2084('0x111')])&&!function(_0x41dff9){return _0x41dff9['start'][_0x2084('0x121')]==_0x41dff9['end']['nodeBefore']&&_0x41dff9['start'][_0x2084('0xf5')];}(_0x1fefbb)))_0x3b5575['removeMarker'](_0x3e081d),_0x474116=!0x0;else{if(!_0x18f232||!_0x18f232[_0x2084('0x117')])continue;_0x474116=!!this['_joinWithAdjacentSuggestions'](_0x18f232)||_0x474116;}}}var _0x1fefbb;return _0x474116;}),_0x479243[_0x2084('0x48')][_0x2084('0xf6')][_0x2084('0x49')](_0x428481=>{let _0x2db6da=!0x1;for(const _0x3f92f2 of _0x479243[_0x2084('0x48')]['document'][_0x2084('0x42')][_0x2084('0x45')]()){if(_0x2084('0x98')!=_0x3f92f2['type'])continue;const _0x5f2ea2=_0x3f92f2['position'][_0x2084('0x12')](_0x3f92f2[_0x2084('0x9b')]);if(_0x5f2ea2[_0x2084('0xf5')])for(const _0x3973b2 of this[_0x2084('0x56')]['values']()){if(_0x3973b2[_0x2084('0x77')]||!_0x3973b2[_0x2084('0x117')])continue;if('formatBlock'!=_0x3973b2['type'])continue;const _0x528ba9=_0x3973b2[_0x2084('0x79')]();if(_0x528ba9[_0x2084('0x29')][_0x2084('0x121')]!=_0x528ba9[_0x2084('0x2f')][_0x2084('0x121')]&&_0x528ba9[_0x2084('0x2f')][_0x2084('0x110')](_0x3f92f2[_0x2084('0xe6')])){const _0x3ff15a=_0x479243[_0x2084('0x48')][_0x2084('0x9a')](_0x528ba9['start'],_0x5f2ea2);_0x428481[_0x2084('0x2c')](_0x3973b2[_0x2084('0xc9')](),{'range':_0x3ff15a}),_0x2db6da=!0x0;}}}return _0x2db6da;}),_0x479243[_0x2084('0x48')]['markers']['on'](_0x2084('0x3b'),(_0x1cc3d2,_0x18f4a7,_0x1116a3)=>{if(null==_0x1116a3){const {id:_0x258d2e}=this[_0x2084('0x58')](_0x18f4a7[_0x2084('0x11c')]),_0x361a36=this[_0x2084('0x56')][_0x2084('0x1c')](_0x258d2e);_0x361a36&&_0x361a36['addMarkerName'](_0x18f4a7[_0x2084('0x11c')]);}}),_0x479243[_0x2084('0x48')][_0x2084('0xf6')]['on']('change:data',()=>{const _0x1b8e0e=Array[_0x2084('0x25')](_0x479243[_0x2084('0x48')][_0x2084('0xf6')][_0x2084('0x42')][_0x2084('0x115')]());_0x1b8e0e['sort']((_0x10f618,_0x5d4c55)=>{const _0x412636=_0x10f618[_0x2084('0x14')][_0x2084('0x43')],_0x34e213=_0x5d4c55['data']['oldRange'];return null===_0x412636&&null===_0x34e213?0x0:null===_0x412636&&null!==_0x34e213?-0x1:null!==_0x412636&&null===_0x34e213?0x1:_0x412636[_0x2084('0x29')][_0x2084('0x10b')](_0x34e213[_0x2084('0x29')])?-0x1:0x1;});const _0x2bae80=new Set();for(const {name:_0x465a4c,data:_0x575b71}of _0x1b8e0e){const {group:_0x5b0d73,id:_0x8835bc}=this[_0x2084('0x58')](_0x465a4c);if(_0x2084('0xda')===_0x5b0d73&&(null===_0x575b71[_0x2084('0x43')]&&this[_0x2084('0x114')](_0x465a4c),null===_0x575b71[_0x2084('0x111')])){const _0x4fbaff=this[_0x2084('0x56')][_0x2084('0x1c')](_0x8835bc);_0x4fbaff[_0x2084('0x117')]?_0x2bae80[_0x2084('0xac')](_0x4fbaff):this[_0x2084('0xf1')](_0x4fbaff);}}for(const {name:_0x5066b8,data:_0x46971a}of _0x1b8e0e){const {group:_0x54b31f,id:_0x2713a8}=this[_0x2084('0x58')](_0x5066b8);if(_0x2084('0xda')!==_0x54b31f)continue;const _0x501373=this[_0x2084('0x56')][_0x2084('0x1c')](_0x2713a8);null!=_0x46971a[_0x2084('0x111')]&&null!=_0x46971a[_0x2084('0x43')]&&(this['_refreshSuggestionsChain'](_0x501373),_0x2bae80['add'](_0x501373['head']));}for(const _0x12a22c of _0x2bae80)this[_0x2084('0x50')]('suggestionChanged',_0x12a22c);_0x2bae80[_0x2084('0x2a')]();}),_0x479243['model']['on']('applyOperation',(_0x2b21d3,_0x5ab137)=>{const _0x178d25=_0x5ab137[0x0];if(!this[_0x2084('0x56')]['size'])return;if(!_0x178d25[_0x2084('0xb9')])return;if(_0x178d25['batch'][_0x2084('0xb3')]||!_0x178d25[_0x2084('0xb6')][_0x2084('0x17')])return;let _0x1b9e4e,_0x421ca8;switch(_0x178d25[_0x2084('0x63')]){case _0x2084('0x98'):_0x1b9e4e=_0x479243[_0x2084('0x48')][_0x2084('0x92')](_0x178d25[_0x2084('0xe6')]),_0x421ca8=_0x1b9e4e[_0x2084('0x12')](_0x178d25[_0x2084('0xf9')]);break;case _0x2084('0x1a'):_0x1b9e4e=_0x479243[_0x2084('0x48')]['createPositionAt'](_0x178d25[_0x2084('0x74')]),_0x421ca8=_0x479243[_0x2084('0x48')][_0x2084('0x92')](_0x178d25[_0x2084('0x8d')]);break;case _0x2084('0xa6'):_0x1b9e4e=_0x479243[_0x2084('0x48')]['createPositionAt'](_0x178d25[_0x2084('0x4b')]),_0x421ca8=_0x1b9e4e['getShiftedBy'](_0x178d25[_0x2084('0xf9')]);break;default:return;}const _0x5f27b5=_0x479243['model'][_0x2084('0x9a')](_0x1b9e4e,_0x421ca8);_0x479243['model'][_0x2084('0x54')](()=>{for(const {suggestion:_0x8921e9,meta:_0x5449c9}of this[_0x2084('0x9e')](_0x5f27b5)){if(_0x8921e9[_0x2084('0x77')])continue;if(_0x2084('0x87')==_0x8921e9[_0x2084('0x63')])continue;const _0x5e7889=_0x8921e9[_0x2084('0x14')]&&_0x8921e9['data'][_0x2084('0x9c')];(_0x2084('0x107')!=_0x8921e9[_0x2084('0x63')]||_0x2084('0x1a')==_0x178d25['type']&&!_0x5e7889)&&(_0x5449c9['containsRangeInObject']||_0x2084('0xa4')==_0x8921e9[_0x2084('0x63')]&&_0x5449c9['isOwn']||_0x8921e9[_0x2084('0x79')]()[_0x2084('0xa')](_0x5f27b5)&&this[_0x2084('0xd0')](_0x8921e9,_0x1b9e4e,_0x421ca8));}});},{'priority':_0x2084('0xc0')}),_0x479243[_0x2084('0x48')]['on'](_0x2084('0x0'),(_0x47044b,_0x3ca549)=>{const _0xf200ac=_0x3ca549[0x0],_0x551d29=_0x3ca549[0x1];if(_0x551d29&&_0x551d29[_0x2084('0x10')])return;if(this[_0x2084('0x5f')])return;if(!this[_0x2084('0xb0')][_0x2084('0xd9')])return;if(_0xf200ac['isCollapsed'])return;const _0x4bad6d=_0x479243[_0x2084('0x48')]['schema'],{start:_0x177401,end:_0x199dfa}=_0xf200ac[_0x2084('0x79')](),_0x58fed3=_0x177401[_0x2084('0x82')]&&_0x4bad6d[_0x2084('0x7d')](_0x177401[_0x2084('0x82')])?null:_0x4bad6d[_0x2084('0x72')](_0x177401,_0x2084('0x3f')),_0x42496f=_0x199dfa['nodeBefore']&&_0x4bad6d['isObject'](_0x199dfa[_0x2084('0x93')])?null:_0x4bad6d[_0x2084('0x72')](_0x199dfa,'backward'),_0x29650a=_0x479243[_0x2084('0x48')][_0x2084('0x9a')](_0x58fed3?_0x58fed3['start']:_0x177401,_0x42496f?_0x42496f[_0x2084('0x2f')]:_0x199dfa);_0x479243[_0x2084('0x48')][_0x2084('0x54')](_0x3bb6b8=>{this[_0x2084('0x119')](_0x29650a);const _0x565f1f=_0x479243['model'][_0x2084('0x8a')]['getNearestSelectionRange'](_0x29650a['start']);_0xf200ac['is'](_0x2084('0x36'))?_0x3bb6b8[_0x2084('0xb')](_0x565f1f):_0xf200ac[_0x2084('0x34')](_0x565f1f);}),_0x47044b[_0x2084('0xf7')]();},{'priority':_0x2fc2f3[_0x2084('0xdf')]+0xa}),_0x479243[_0x2084('0x48')]['on']('insertContent',(_0x32e6d0,_0x556d36)=>{const _0x5775e5=_0x556d36[_0x556d36[_0x2084('0x9b')]-0x1];_0x5775e5&&_0x5775e5[_0x2084('0x10')]||this[_0x2084('0x5f')]||this[_0x2084('0xb0')]['value']&&(_0x479243[_0x2084('0x48')][_0x2084('0x54')](()=>{let _0x18343c=_0x479243[_0x2084('0x48')][_0x2084('0x109')](_0x556d36[0x0],_0x556d36[0x1],_0x556d36[0x2],_0x556d36[0x3],{'forceDefaultExecution':!0x0});if(!_0x18343c)return;_0x32e6d0['return']=_0x18343c[_0x2084('0x104')]();const _0x3470af=_0x18343c[_0x2084('0x2f')]['nodeBefore'],_0x428d57=_0x479243[_0x2084('0x48')][_0x2084('0x8a')];_0x3470af&&_0x428d57['isBlock'](_0x3470af)&&!_0x428d57[_0x2084('0x7d')](_0x3470af)&&(_0x18343c=_0x479243[_0x2084('0x48')][_0x2084('0x9a')](_0x18343c[_0x2084('0x29')],_0x479243[_0x2084('0x48')][_0x2084('0x92')](_0x3470af,_0x2084('0x2f')))),this[_0x2084('0x24')](_0x18343c);}),_0x32e6d0[_0x2084('0xf7')]());},{'priority':_0x2084('0xbf')}),this[_0x2084('0xb0')]=new _0x4416c1(_0x479243,this[_0x2084('0xb4')]),this[_0x2084('0x4')][_0x2084('0xd2')][_0x2084('0xac')](_0x2084('0x120'),this[_0x2084('0xb0')]),this[_0x2084('0xe5')](_0x2084('0x120'));const _0x4404be=new _0x57bec2(_0x479243,this[_0x2084('0x56')]);_0x479243['commands'][_0x2084('0xac')](_0x2084('0xd3'),_0x4404be),this[_0x2084('0xe5')](_0x2084('0xd3'));const _0x3a1348=new _0x2490be(_0x479243,this['_suggestions']);_0x479243[_0x2084('0xd2')][_0x2084('0xac')](_0x2084('0xf2'),_0x3a1348),this[_0x2084('0xe5')](_0x2084('0xf2')),_0x479243['commands'][_0x2084('0xac')](_0x2084('0x4d'),new _0x51437a(_0x479243,_0x4404be,this[_0x2084('0x56')])),this['enableCommand'](_0x2084('0x4d')),_0x479243[_0x2084('0xd2')][_0x2084('0xac')](_0x2084('0xcd'),new _0x5a0ffd(_0x479243,_0x3a1348,this['_suggestions'])),this[_0x2084('0xe5')](_0x2084('0xcd')),_0x479243['commands'][_0x2084('0xac')](_0x2084('0xa1'),new _0x37d9a2(_0x479243,_0x4404be,this['_suggestions'])),this[_0x2084('0xe5')](_0x2084('0xa1')),_0x479243['commands']['add'](_0x2084('0x73'),new _0x1498b2(_0x479243,_0x3a1348,this[_0x2084('0x56')])),this[_0x2084('0xe5')](_0x2084('0x73'));const _0x49e3ef=_0x479243['plugins'][_0x2084('0x1c')](_0x2084('0xe3'));this['listenTo'](_0x49e3ef,_0x2084('0x38'),(_0x3c796e,{threadId:_0x37810b})=>{const _0xb43203=this[_0x2084('0x56')]['get'](_0x37810b);_0xb43203&&_0xb43203[_0x2084('0x10f')]&&0x1===_0xb43203[_0x2084('0x10f')][_0x2084('0x9b')]&&this[_0x2084('0xe1')](_0x37810b,{'hasComments':!0x0});},{'priority':_0x2084('0x16')}),this[_0x2084('0xad')](_0x49e3ef,_0x2084('0xba'),(_0x28fbe7,{threadId:_0x3b2485})=>{const _0x5d0d60=this[_0x2084('0x56')][_0x2084('0x1c')](_0x3b2485);_0x5d0d60&&_0x5d0d60[_0x2084('0x10f')]&&!_0x5d0d60['commentThread'][_0x2084('0x9b')]&&this[_0x2084('0xe1')](_0x3b2485,{'hasComments':!0x1});},{'priority':'low'});}set[_0x2084('0xcb')](_0x43a951){if(this[_0x2084('0x80')])throw new _0xa2b4f8(_0x2084('0x2'),this);this[_0x2084('0x80')]=_0x43a951;}get[_0x2084('0xcb')](){return this['_adapter'];}[_0x2084('0xef')]({skipNotAttached:_0x5ce3c4=!0x1,toJSON:_0x112ee8=!0x1}={}){const _0x4d0419=[];for(const _0x43232e of this[_0x2084('0x56')][_0x2084('0x37')]())_0x5ce3c4&&!_0x43232e[_0x2084('0x117')]||_0x4d0419[_0x2084('0x5a')](_0x43232e);return _0x112ee8?_0x4d0419['map'](_0x201cda=>_0x201cda[_0x2084('0x35')]()):_0x4d0419;}[_0x2084('0x2e')](_0x3e08ef){const _0x238713=this[_0x2084('0x56')][_0x2084('0x1c')](_0x3e08ef);if(!_0x238713)throw new _0xa2b4f8('track-changes-suggestion-not-found',this);return _0x238713;}[_0x2084('0xa8')](_0xe050b7){return this[_0x2084('0x56')]['has'](_0xe050b7);}[_0x2084('0x78')](_0x30fe25){const {id:_0x37ef12,authorId:_0x3b1876}=_0x30fe25,[_0x141740,_0x4cb600]=_0x30fe25[_0x2084('0x63')]['split'](':'),_0xd1a9dc=this[_0x2084('0x56')][_0x2084('0x1c')](_0x37ef12)||this[_0x2084('0x53')](_0x141740,_0x4cb600,_0x37ef12,_0x3b1876);switch(this['_addThreadToSuggestion'](_0xd1a9dc),this['_checkSuggestionCorrectness'](_0xd1a9dc,_0x141740,_0x4cb600||null,_0x3b1876),_0xd1a9dc[_0x2084('0x10c')]=_0x30fe25[_0x2084('0x10c')],_0x30fe25[_0x2084('0x14')]&&(_0xd1a9dc['data']=_0x30fe25[_0x2084('0x14')]),_0x30fe25[_0x2084('0x27')]&&(_0xd1a9dc[_0x2084('0x27')]=_0x30fe25[_0x2084('0x27')]),this[_0x2084('0x80')]&&this[_0x2084('0x80')][_0x2084('0x10e')]||(_0xd1a9dc[_0x2084('0x61')]=!0x0),this[_0x2084('0xbb')]['get'](_0xd1a9dc)){case _0x2084('0xf3'):this[_0x2084('0xbb')]['set'](_0xd1a9dc,_0x2084('0x4f'));break;case _0x2084('0x81'):_0xd1a9dc['isInContent']?(this['_suggestionState'][_0x2084('0xf')](_0xd1a9dc,_0x2084('0xca')),this[_0x2084('0x50')](_0x2084('0xe4'),_0xd1a9dc)):this['_suggestionState'][_0x2084('0xf')](_0xd1a9dc,_0x2084('0xf4'));}return _0xd1a9dc;}[_0x2084('0xd3')](_0x27535b){this[_0x2084('0x10')](()=>{this[_0x2084('0x4')][_0x2084('0x48')][_0x2084('0x54')](()=>{for(const _0x2aaa1f of _0x27535b['getAllAdjacentSuggestions']())_0x2aaa1f[_0x2084('0xc7')]();});});}[_0x2084('0xf2')](_0x36c631){this[_0x2084('0x10')](()=>{this[_0x2084('0x4')][_0x2084('0x48')][_0x2084('0x54')](()=>{for(const _0xe8b86c of _0x36c631[_0x2084('0xeb')]())_0xe8b86c['discard']();});});}['enableCommand'](_0x2f4fea,_0x3baf8a){const _0x178e37=this[_0x2084('0x4')][_0x2084('0xd2')][_0x2084('0x1c')](_0x2f4fea);if(!_0x178e37)throw new _0xa2b4f8('track-changes-command-not-found',this,{'commandName':_0x2f4fea});this[_0x2084('0xb4')]['add'](_0x178e37),_0x3baf8a&&_0x178e37['on'](_0x2084('0xd8'),(_0x598432,_0x77ecd9)=>{this['trackChangesCommand']['value']&&(this[_0x2084('0x5f')]||_0x77ecd9[_0x2084('0x9b')]>0x0&&_0x77ecd9[_0x77ecd9[_0x2084('0x9b')]-0x1]&&_0x77ecd9[_0x77ecd9[_0x2084('0x9b')]-0x1][_0x2084('0x10')]||(_0x3baf8a((..._0xa6739d)=>_0x178e37[_0x2084('0xd8')](..._0xa6739d,{'forceDefaultExecution':!0x0}),..._0x77ecd9),_0x598432[_0x2084('0xf7')]()));},{'priority':_0x2084('0xbf')});}[_0x2084('0x10')](_0x1b563b){let _0x5c9f31,_0x417e8a;const _0x2a21ad=this[_0x2084('0x5f')];this[_0x2084('0x5f')]=!0x0;try{_0x5c9f31=_0x1b563b();}catch(_0x17eade){_0x417e8a=_0x17eade;}return _0x2a21ad||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x417e8a&&_0xa2b4f8[_0x2084('0xaf')](_0x417e8a,this),_0x5c9f31;}[_0x2084('0x24')](_0x1a48aa,_0x38f68f=null,_0xa328fa={}){if(_0x1a48aa['isCollapsed'])return null;const _0x39c544=this['editor'][_0x2084('0x102')]['get']('Users')['me'];for(const {suggestion:_0x187060,meta:_0x5b598b}of this['_findSuggestions'](_0x1a48aa,_0x2084('0xa4')))if(_0x5b598b[_0x2084('0xd5')]){if(!_0x5b598b[_0x2084('0xc')])return _0x187060;if(_0x38f68f==_0x187060[_0x2084('0x128')]){const _0x206853=_0x187060['getFirstRange']();return _0x206853[_0x2084('0x29')][_0x2084('0x110')](_0x1a48aa['end'])?this['_setSuggestionRange'](_0x187060,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x1a48aa[_0x2084('0x29')],_0x206853[_0x2084('0x2f')])):this[_0x2084('0x118')](_0x187060,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x206853[_0x2084('0x29')],_0x1a48aa[_0x2084('0x2f')])),_0x187060;}}const _0x2197f1=_0x495cdf(),_0x2193cb=_0x39c544['id'],_0x30a1f3=_0x38f68f?'insertion:'+_0x38f68f:'insertion',_0x4f0d7b=this[_0x2084('0xe7')]({'id':_0x2197f1,'type':_0x30a1f3,'createdAt':new Date(),'authorId':_0x2193cb,'attributes':_0xa328fa});return this[_0x2084('0x59')](_0x30a1f3,_0x2197f1,_0x2193cb,_0x1a48aa),_0x4f0d7b;}[_0x2084('0xe2')](_0xbdd866,_0x8b948c=_0x2084('0xde'),_0x441284={}){const _0x342195=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x2c8392=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0xa4'),_0x8b948c,'join');for(const _0x1716d6 of this['getSuggestions']())if(_0x1716d6[_0x2084('0x5d')]['id']==_0x342195['id']&&_0x2084('0xa4')==_0x1716d6['type']&&_0x1716d6[_0x2084('0x128')]==_0x8b948c&&(_0x2c8392(_0x1716d6['getRanges'](),_0xbdd866)||_0x2c8392(_0xbdd866,_0x1716d6[_0x2084('0xc4')]()))){for(const _0x54a9d2 of _0xbdd866)_0x1716d6[_0x2084('0x5e')](_0x54a9d2);return _0x1716d6;}for(const _0x3ee475 of _0xbdd866)for(const {suggestion:_0x3b2cf1,meta:_0x54a397}of this[_0x2084('0x9e')](_0x3ee475,_0x2084('0xa4'))){if(!_0x54a397[_0x2084('0xd5')])continue;let _0x5490dc=!0x0;for(const _0x4a4edf of _0x3b2cf1[_0x2084('0xc4')]())for(const _0xb05e7b of _0xbdd866)if(!_0x4a4edf['containsRange'](_0xb05e7b)){_0x5490dc=!0x1;break;}if(_0x5490dc)return _0x3b2cf1;}const _0x5012d3=_0x495cdf(),_0x4d3b7e=_0x342195['id'],_0x543fa8=_0x2084('0x3a')+_0x8b948c,_0x593c17=this[_0x2084('0xe7')]({'id':_0x5012d3,'type':_0x543fa8,'createdAt':new Date(),'authorId':_0x4d3b7e,'attributes':_0x441284});for(const _0x592df1 of _0xbdd866)this[_0x2084('0x59')](_0x543fa8,_0x5012d3,_0x4d3b7e,_0x592df1,_0x4f381c[_0x2084('0x8b')]());return _0x593c17;}[_0x2084('0x84')](_0x8d8577,_0x237f6b,_0x35b211=null,_0x134379={}){if(_0x35b211=_0x35b211||St(_0x237f6b),_0x8d8577[_0x2084('0x6a')])return;const _0x122799=this['editor'][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x448850=[];for(const {suggestion:_0xa48421,meta:_0x4cea36}of this[_0x2084('0x9e')](_0x8d8577,'insertion'))_0x4cea36[_0x2084('0xd5')]&&!_0x4cea36[_0x2084('0x11')]&&_0x448850[_0x2084('0x5a')](..._0xa48421[_0x2084('0xc4')]());const _0x1bfe2d=function(_0x3c4f30,_0x1d54a7){const _0x15ec96=[];for(const _0x2b8c4 of _0x1d54a7){const _0x246282=_0x3c4f30[_0x2084('0x2d')](_0x2b8c4);_0x246282&&_0x15ec96[_0x2084('0x5a')](_0x246282);}return _0x15ec96;}(_0x8d8577,_0x448850),_0x31c70f=function(_0xaa14e3,_0x269dc1){const _0x326768=[_0xaa14e3];for(const _0x5548db of _0x269dc1){let _0x33131f=0x0;for(;_0x33131f<_0x326768[_0x2084('0x9b')];){const _0x2d0d4f=_0x326768[_0x33131f][_0x2084('0xc3')](_0x5548db);_0x326768[_0x2084('0x66')](_0x33131f,0x1,..._0x2d0d4f),_0x33131f+=_0x2d0d4f['length'];}}return _0x326768;}(_0x8d8577,_0x448850);_0x1bfe2d['length']&&this[_0x2084('0x7f')][_0x2084('0x54')](()=>{for(const _0x30637c of _0x1bfe2d){const _0x1f8ac1=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0x87'),_0x35b211,_0x2084('0xc7'));this[_0x2084('0x10')](()=>_0x1f8ac1([_0x30637c],_0x237f6b,_0x134379));}});for(const _0x912d5b of _0x31c70f){let _0x526ee5=null,_0x477bd7=_0x912d5b[_0x2084('0x29')],_0x9fe001=_0x912d5b[_0x2084('0x2f')];for(const {suggestion:_0x5decc1,meta:_0x16243d}of this['_findSuggestions'](_0x912d5b,_0x2084('0x87'))){if(!_0x16243d[_0x2084('0xd5')])continue;if(_0x5decc1[_0x2084('0x128')]!=_0x35b211)continue;const _0x44c3bb=_0x5decc1['getFirstRange']();if(_0x44c3bb['containsRange'](_0x912d5b,!0x0))return;_0x477bd7=_0x477bd7[_0x2084('0x10b')](_0x44c3bb['start'])?_0x477bd7:_0x44c3bb[_0x2084('0x29')],_0x9fe001=_0x9fe001['isAfter'](_0x44c3bb[_0x2084('0x2f')])?_0x9fe001:_0x44c3bb[_0x2084('0x2f')],_0x526ee5?_0x44c3bb[_0x2084('0x29')][_0x2084('0x10b')](_0x526ee5[_0x2084('0x79')]()[_0x2084('0x29')])?(_0x526ee5[_0x2084('0x57')](),_0x526ee5=_0x5decc1):_0x5decc1['removeMarkers']():_0x526ee5=_0x5decc1;}const _0xfca796=this[_0x2084('0x7f')][_0x2084('0x9a')](_0x477bd7,_0x9fe001);if(_0x526ee5)this[_0x2084('0x118')](_0x526ee5,_0xfca796);else{const _0x2b5bf1=_0x495cdf(),_0x46e024=_0x122799['id'];this[_0x2084('0xe7')]({'id':_0x2b5bf1,'type':_0x2084('0xfe')+_0x35b211,'data':_0x237f6b,'createdAt':new Date(),'authorId':_0x46e024,'attributes':_0x134379}),this[_0x2084('0x59')](_0x2084('0xfe')+_0x35b211,_0x2b5bf1,_0x46e024,_0xfca796);}}}[_0x2084('0x11e')](_0x257bf6,_0x54f65c,_0x36ed76=[],_0x41a5c0=null,_0x36fc5a={}){_0x54f65c['formatGroupId']||(_0x54f65c['formatGroupId']=_0x54f65c['commandName']),_0x54f65c[_0x2084('0x9c')]=_0x257bf6['is'](_0x2084('0x19')),_0x41a5c0=_0x41a5c0||St(_0x54f65c);const _0x5c87d4=_0x36ed76[_0x2084('0x7e')](_0x3d090c=>vt(_0x3d090c,this[_0x2084('0x7f')])),_0x178db4=_0x257bf6['is'](_0x2084('0x19'))?_0x257bf6:vt(_0x257bf6,this[_0x2084('0x7f')]);_0x5c87d4[_0x2084('0x5a')](_0x178db4);let _0x506ced=!0x0;for(const _0x43183c of _0x5c87d4)if(!this[_0x2084('0x76')](_0x43183c)){_0x506ced=!0x1;break;}if(_0x506ced){const _0x21486c=this['_suggestionFactory'][_0x2084('0x70')]('formatBlock',_0x41a5c0,_0x2084('0xc7'));return void this[_0x2084('0x10')](()=>_0x21486c([_0x178db4],_0x54f65c,_0x36fc5a));}let _0x506530=null,_0x192a14=_0x178db4['start'],_0x363474=_0x178db4[_0x2084('0x2f')];for(const {suggestion:_0x383786,meta:_0x54210a}of this[_0x2084('0x9e')](_0x178db4,_0x2084('0x107'))){if(!_0x54210a[_0x2084('0xd5')]||_0x54210a[_0x2084('0xc')]||_0x54210a[_0x2084('0xfd')]||_0x54210a['isInsideObject'])continue;if(_0x383786[_0x2084('0x14')][_0x2084('0x4e')]!=_0x54f65c[_0x2084('0x4e')])continue;const _0x48e39d=_0x383786[_0x2084('0x79')]();if(_0x383786[_0x2084('0x128')]==_0x41a5c0){if(_0x48e39d[_0x2084('0xa')](_0x178db4,!0x0))return;_0x192a14=_0x192a14[_0x2084('0x10b')](_0x48e39d[_0x2084('0x29')])?_0x192a14:_0x48e39d[_0x2084('0x29')],_0x363474=_0x363474[_0x2084('0xc6')](_0x48e39d[_0x2084('0x2f')])?_0x363474:_0x48e39d[_0x2084('0x2f')],_0x506530?_0x48e39d[_0x2084('0x29')][_0x2084('0x10b')](_0x506530['getFirstRange']()[_0x2084('0x29')])?(_0x506530[_0x2084('0x57')](),_0x506530=_0x383786):_0x383786[_0x2084('0x57')]():_0x506530=_0x383786;}else{const _0x44caf2=_0x178db4['getIntersection'](_0x48e39d);this['_cutOutSuggestionMarker'](_0x383786,_0x44caf2);}}const _0x338a71=this['editor'][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x4038a5=_0x495cdf(),_0x713ca7=_0x338a71['id'];_0x506530?this['_setSuggestionRange'](_0x506530,this[_0x2084('0x7f')]['createRange'](_0x192a14,_0x363474)):(this[_0x2084('0xe7')]({'id':_0x4038a5,'type':_0x2084('0xb8')+_0x41a5c0,'data':_0x54f65c,'createdAt':new Date(),'authorId':_0x713ca7,'attributes':_0x36fc5a}),this[_0x2084('0x59')]('formatBlock:'+_0x41a5c0,_0x4038a5,_0x713ca7,this[_0x2084('0x7f')]['createRange'](_0x192a14,_0x363474)));}[_0x2084('0xc5')](_0x59679a,_0x2615a5,_0xf6f607=[],_0x207978=null,_0x33dcb8={}){_0x2615a5[_0x2084('0x4e')]||(_0x2615a5['formatGroupId']=_0x2615a5[_0x2084('0xa9')]),_0x2615a5[_0x2084('0x9c')]=!0x1,_0x207978=_0x207978||St(_0x2615a5);const _0x58198f=_0xf6f607[_0x2084('0x7e')](_0x335ea2=>vt(_0x335ea2,this[_0x2084('0x7f')])),_0x50e252=_0x59679a['map'](_0x4fe802=>vt(_0x4fe802,this[_0x2084('0x7f')]));_0x58198f[_0x2084('0x5a')](..._0x50e252);let _0xe4022c=!0x0;for(const _0x2ce524 of _0x58198f)if(!this[_0x2084('0x76')](_0x2ce524)){_0xe4022c=!0x1;break;}if(_0xe4022c){const _0x263318=this[_0x2084('0x41')][_0x2084('0x70')]('formatBlock',_0x207978,'accept');return void this[_0x2084('0x10')](()=>_0x263318(_0x50e252,_0x2615a5,_0x33dcb8));}const _0x4d0459=this['editor'][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'];for(const _0x3e9e5d of this[_0x2084('0xef')]()){if(_0x3e9e5d[_0x2084('0x5d')]['id']!=_0x4d0459['id'])continue;if(_0x2084('0x107')!=_0x3e9e5d[_0x2084('0x63')]||_0x3e9e5d[_0x2084('0x14')][_0x2084('0x4e')]!=_0x2615a5[_0x2084('0x4e')])continue;const _0x1ab768=_0x3e9e5d[_0x2084('0x128')]==_0x207978;for(let _0x2b2edc=0x0;_0x2b2edc<_0x50e252[_0x2084('0x9b')];_0x2b2edc++){const _0x6b7efd=_0x50e252[_0x2b2edc];for(const _0x3c193c of _0x3e9e5d[_0x2084('0x1e')]()){const _0x23bc93=_0x3c193c[_0x2084('0x33')]();if(_0x6b7efd[_0x2084('0x110')](_0x23bc93)){_0x1ab768?(_0x50e252[_0x2084('0x66')](_0x2b2edc,0x1),_0x2b2edc--):_0x3e9e5d[_0x2084('0x122')](_0x3c193c[_0x2084('0x11c')]);break;}}}}if(0x0==_0x50e252[_0x2084('0x9b')])return;const _0x193b18=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0x107'),_0x207978,_0x2084('0xfa'));for(const _0x40b445 of this[_0x2084('0xef')]())if(_0x40b445[_0x2084('0x5d')]['id']==_0x4d0459['id']&&_0x2084('0x107')==_0x40b445[_0x2084('0x63')]&&_0x40b445['data'][_0x2084('0x4e')]==_0x2615a5[_0x2084('0x4e')]&&_0x40b445[_0x2084('0x128')]==_0x207978&&(_0x193b18(_0x40b445[_0x2084('0xc4')](),_0x50e252)||_0x193b18(_0x50e252,_0x40b445[_0x2084('0xc4')]()))){for(const _0x554105 of _0x50e252)_0x40b445[_0x2084('0x5e')](_0x554105);return _0x40b445;}const _0x3afc1a=_0x495cdf(),_0x11e828=_0x4d0459['id'],_0x1e7b84='formatBlock:'+_0x207978,_0xdaa668=this[_0x2084('0xe7')]({'id':_0x3afc1a,'type':_0x1e7b84,'data':_0x2615a5,'createdAt':new Date(),'authorId':_0x11e828,'attributes':_0x33dcb8});for(const _0x136f97 of _0x50e252)this[_0x2084('0x59')](_0x1e7b84,_0x3afc1a,_0x11e828,_0x136f97,_0x4f381c['getMultiRangeId']());return _0xdaa668;}[_0x2084('0x119')](_0x2a66fb,_0x222552=null,_0x42636c={}){if(_0x2a66fb[_0x2084('0x6a')])return null;const _0x297ca1=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x2f76c8=new _0x184ebb(_0x2a66fb[_0x2084('0x29')],_0x2a66fb[_0x2084('0x2f')]);for(const {suggestion:_0x839479,meta:_0x1df8fd}of this[_0x2084('0x9e')](_0x2f76c8,_0x2084('0xa4')))if(_0x1df8fd['isOwn']&&!_0x1df8fd['isNextTo']){if(_0x839479['isMultiRange']){const _0x432670=_0x839479['getRanges']()['filter'](_0x295aeb=>_0x2084('0x100')!=_0x295aeb[_0x2084('0x108')][_0x2084('0x125')]);_0x432670['every'](_0x4f8f60=>_0x2f76c8[_0x2084('0xa')](_0x4f8f60,!0x0))&&_0x839479[_0x2084('0x11d')]();if(_0x432670['some'](_0xfcb4bd=>_0xfcb4bd[_0x2084('0xa')](_0x2f76c8,!0x0))){const _0x28cc30=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0x90'),_0x222552,_0x2084('0xc7'));return this['forceDefaultExecution'](()=>_0x28cc30([_0x2f76c8],null,_0x42636c)),null;}}else{const _0x3a1042=_0x2f76c8[_0x2084('0x2d')](_0x839479[_0x2084('0x79')]());_0x839479[_0x2084('0xee')]([_0x3a1042],null,_0x42636c);}}if(_0x2f76c8[_0x2084('0x11b')](),_0x2f76c8[_0x2084('0x6a')]||_0x2084('0x100')==_0x2f76c8[_0x2084('0x108')]['rootName'])return null;let _0x34df21=null,_0x12e1ce=_0x2f76c8['start'],_0x1d51e6=_0x2f76c8['end'];for(const {suggestion:_0x18817f,meta:_0x3048b9}of this[_0x2084('0x9e')](_0x2f76c8,'deletion'))if(_0x3048b9[_0x2084('0xd5')]){if(_0x18817f[_0x2084('0x77')]){let _0x4be513=!0x0;for(const _0x50f732 of _0x18817f[_0x2084('0xc4')]()){if(_0x50f732[_0x2084('0xa')](_0x2f76c8,!0x0))return _0x18817f;_0x2f76c8['containsRange'](_0x50f732)||(_0x4be513=!0x1);}_0x4be513&&_0x18817f[_0x2084('0x11d')]();}else{const _0x36e2c8=_0x18817f[_0x2084('0x79')]();if(_0x36e2c8[_0x2084('0xa')](_0x2f76c8,!0x0))return _0x18817f;_0x12e1ce=_0x12e1ce[_0x2084('0x10b')](_0x36e2c8[_0x2084('0x29')])?_0x12e1ce:_0x36e2c8['start'],_0x1d51e6=_0x1d51e6[_0x2084('0xc6')](_0x36e2c8[_0x2084('0x2f')])?_0x1d51e6:_0x36e2c8[_0x2084('0x2f')],_0x34df21?_0x36e2c8['start']['isBefore'](_0x34df21['getFirstRange']()[_0x2084('0x29')])?(_0x34df21[_0x2084('0x57')](),_0x34df21=_0x18817f):_0x18817f[_0x2084('0x57')]():_0x34df21=_0x18817f;}}if(_0x34df21)return this[_0x2084('0x118')](_0x34df21,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x12e1ce,_0x1d51e6)),_0x34df21;{const _0x314339=_0x495cdf(),_0x44feca=this[_0x2084('0x7f')][_0x2084('0x9a')](_0x12e1ce,_0x1d51e6),_0x2db455=_0x297ca1['id'],_0x3d2d9a=_0x222552?_0x2084('0xd1')+_0x222552:'deletion',_0x280afa=this[_0x2084('0xe7')]({'id':_0x314339,'type':_0x3d2d9a,'createdAt':new Date(),'authorId':_0x2db455,'attributes':_0x42636c});return this[_0x2084('0x59')](_0x3d2d9a,_0x314339,_0x2db455,_0x44feca),_0x280afa;}}['markMultiRangeDeletion'](_0x16e386,_0x31e183=_0x2084('0xde'),_0x211e40={}){const _0x366693=this['editor']['plugins']['get'](_0x2084('0x127'))['me'],_0x2f0948=_0x16e386[_0x2084('0x7e')](_0x441ba2=>new _0x184ebb(_0x441ba2[_0x2084('0x29')],_0x441ba2[_0x2084('0x2f')])),_0x3f44b6=new Set();for(const _0x2dbf13 of _0x2f0948)for(const {suggestion:_0x404a38,meta:_0x5eed7d}of this[_0x2084('0x9e')](_0x2dbf13,_0x2084('0xa4')))_0x5eed7d[_0x2084('0xd5')]&&!_0x5eed7d['isNextTo']&&_0x3f44b6[_0x2084('0xac')](_0x404a38);for(const _0x570b0c of _0x3f44b6)if(_0x570b0c[_0x2084('0x77')]){const _0xcd4413=_0x570b0c[_0x2084('0xc4')]();(!_0x570b0c[_0x2084('0x27')]||!_0x570b0c['attributes'][_0x2084('0x116')])&&(_0xcd4413[_0x2084('0x96')](_0xa2a456=>_0x2f0948['some'](_0x12f57a=>_0x12f57a['containsRange'](_0xa2a456,!0x0)))&&_0x570b0c[_0x2084('0x11d')]());if(_0x2f0948['every'](_0xd4c91e=>_0xcd4413[_0x2084('0x11f')](_0x34fa62=>_0x34fa62[_0x2084('0xa')](_0xd4c91e,!0x0)))){const _0x39355e=this['_suggestionFactory']['getSuggestionCallback'](_0x2084('0x90'),_0x31e183,'accept');return this[_0x2084('0x10')](()=>_0x39355e(_0x16e386,null,_0x211e40)),null;}}else{const _0x5b5ba9=_0x570b0c[_0x2084('0x79')]();_0x2f0948[_0x2084('0x11f')](_0x1a9c76=>_0x1a9c76[_0x2084('0xa')](_0x5b5ba9,!0x0))&&_0x570b0c[_0x2084('0x11d')]();if(_0x2f0948[_0x2084('0x96')](_0x2f9d50=>_0x5b5ba9[_0x2084('0xa')](_0x2f9d50,!0x0))){const _0x3dc839=this[_0x2084('0x41')]['getSuggestionCallback'](_0x2084('0x90'),_0x31e183,_0x2084('0xc7'));return this[_0x2084('0x10')](()=>_0x3dc839(_0x2f0948,null,_0x211e40)),null;}}const _0x232b1d=this[_0x2084('0x41')]['getSuggestionCallback'](_0x2084('0x90'),_0x31e183,_0x2084('0xfa'));let _0x1b9920=null;for(const _0x1fa923 of this['getSuggestions']())if(_0x1fa923[_0x2084('0x5d')]['id']==_0x366693['id']&&_0x1fa923[_0x2084('0x117')]&&_0x2084('0x90')==_0x1fa923[_0x2084('0x63')]&&_0x1fa923[_0x2084('0x128')]==_0x31e183&&(_0x232b1d(_0x1fa923['getRanges'](),_0x2f0948)||_0x232b1d(_0x2f0948,_0x1fa923[_0x2084('0xc4')]()))){if(_0x1b9920){if(_0x1fa923[_0x2084('0x10f')]&&_0x1fa923['commentThread'][_0x2084('0x9b')])continue;for(const _0x20b1f0 of _0x1fa923[_0x2084('0xc4')]())_0x1b9920['isIntersectingWithRange'](_0x20b1f0)||_0x1b9920[_0x2084('0x5e')](_0x20b1f0);_0x1fa923[_0x2084('0x57')]();}else{_0x1b9920=_0x1fa923;for(const _0x1a3a9f of _0x2f0948)_0x1fa923[_0x2084('0x86')](_0x1a3a9f)||_0x1fa923[_0x2084('0x5e')](_0x1a3a9f);}}if(_0x1b9920)return _0x1b9920;_0x3f44b6['clear']();for(const _0x289bd1 of _0x2f0948)for(const {suggestion:_0x57ef83,meta:_0x15c4e3}of this[_0x2084('0x9e')](_0x289bd1,_0x2084('0x90')))_0x15c4e3[_0x2084('0xd5')]&&_0x3f44b6[_0x2084('0xac')](_0x57ef83);for(const _0x4eb54d of _0x3f44b6){const _0x248b6a=_0x4eb54d[_0x2084('0xc4')]();if(!_0x211e40||!_0x211e40[_0x2084('0x116')]){if(_0x2f0948[_0x2084('0x96')](_0x2ef22f=>_0x248b6a['some'](_0x3c45fa=>_0x3c45fa[_0x2084('0xa')](_0x2ef22f,!0x0))))return _0x4eb54d;}(!_0x4eb54d['attributes']||!_0x4eb54d[_0x2084('0x27')][_0x2084('0x116')])&&(_0x248b6a[_0x2084('0x96')](_0x5855a5=>_0x2f0948['some'](_0x45c49f=>_0x45c49f[_0x2084('0xa')](_0x5855a5,!0x0)))&&_0x4eb54d[_0x2084('0x11d')]());}const _0x5903cc=_0x495cdf(),_0x56aa6d=_0x366693['id'],_0x8078a2=_0x2084('0xd1')+_0x31e183,_0xd82ded=this[_0x2084('0xe7')]({'id':_0x5903cc,'type':_0x8078a2,'createdAt':new Date(),'authorId':_0x56aa6d,'attributes':_0x211e40});for(const _0x854338 of _0x2f0948)_0x854338[_0x2084('0x11b')](),_0x854338[_0x2084('0x6a')]||_0x2084('0x100')==_0x854338[_0x2084('0x108')][_0x2084('0x125')]||this['_addSuggestionMarker'](_0x8078a2,_0x5903cc,_0x56aa6d,_0x854338,_0x4f381c['getMultiRangeId']());return _0xd82ded;}['_setSuggestionRange'](_0x73100e,_0x3b038e){const _0x11c5a8=_0x73100e[_0x2084('0xc9')]();this['_model'][_0x2084('0x54')](_0x2775b6=>{_0x2775b6[_0x2084('0x2c')](_0x11c5a8,{'range':_0x3b038e});});}[_0x2084('0x7')](_0x37cf8f){const _0x191c36=_0x37cf8f['id'],_0x1c4abb=this['editor'][_0x2084('0x101')][_0x2084('0x1c')](_0x2084('0x97'));this[_0x2084('0xc8')][_0x2084('0x103')](_0x191c36)||this[_0x2084('0xc8')][_0x2084('0xb7')]({'channelId':_0x1c4abb,'threadId':_0x191c36});const _0x43a9c4=this[_0x2084('0xc8')][_0x2084('0x15')](_0x191c36);_0x43a9c4[_0x2084('0x6f')](_0x2084('0xdb')),_0x43a9c4[_0x2084('0xdb')]=!0x1,_0x37cf8f['commentThread']=_0x43a9c4;}[_0x2084('0x11a')](_0x387a26,_0x3c93fb,_0x5b5ca3,_0x201e95){if(_0x387a26[_0x2084('0x63')]!=_0x3c93fb||_0x387a26[_0x2084('0x128')]!=_0x5b5ca3||_0x387a26[_0x2084('0x5d')]['id']!=_0x201e95)throw this[_0x2084('0x4')][_0x2084('0x94')]('track-changes-suggestion-data-mismatch'),new _0xa2b4f8(_0x2084('0xa5'),this);}['_cutOutSuggestionMarker'](_0xf03c30,_0x2a3d16){const _0x3f1b58=_0xf03c30['getFirstRange']();if(_0x2a3d16[_0x2084('0x110')](_0x3f1b58))_0xf03c30[_0x2084('0x57')]();else{if(_0x3f1b58[_0x2084('0xa')](_0x2a3d16)){const _0x40afe1=this['_model'][_0x2084('0x92')](_0x2a3d16[_0x2084('0x29')][_0x2084('0x93')],_0x2084('0x2f'));this['_setSuggestionRange'](_0xf03c30,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x3f1b58[_0x2084('0x29')],_0x40afe1));const _0x1afd2c=_0x495cdf(),_0x2ad0c0=_0xf03c30['author']['id'],_0x28ca2a=_0xf03c30[_0x2084('0x63')]+':'+_0xf03c30[_0x2084('0x128')];this[_0x2084('0xe7')]({'id':_0x1afd2c,'type':_0x28ca2a,'createdAt':new Date(),'authorId':_0x2ad0c0,'data':_0xf03c30[_0x2084('0x14')],'attributes':_0xf03c30[_0x2084('0x27')]});const _0x4928b9=this[_0x2084('0x7f')][_0x2084('0x92')](_0x2a3d16[_0x2084('0x2f')][_0x2084('0x121')],_0x2084('0x13')),_0x32398a=this[_0x2084('0x7f')][_0x2084('0x9a')](_0x4928b9,_0x3f1b58[_0x2084('0x2f')]);this[_0x2084('0x59')](_0x28ca2a,_0x1afd2c,_0x2ad0c0,_0x32398a);}else{if(_0x3f1b58[_0x2084('0xc1')](_0x2a3d16['start'])){const _0x202db4=this[_0x2084('0x7f')][_0x2084('0x92')](_0x2a3d16['start'][_0x2084('0x93')],_0x2084('0x2f'));this[_0x2084('0x118')](_0xf03c30,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x3f1b58[_0x2084('0x29')],_0x202db4));}else{const _0x4bb9a2=this[_0x2084('0x7f')][_0x2084('0x92')](_0x2a3d16[_0x2084('0x2f')][_0x2084('0x121')],_0x2084('0x13'));this['_setSuggestionRange'](_0xf03c30,this[_0x2084('0x7f')]['createRange'](_0x4bb9a2,_0x3f1b58[_0x2084('0x2f')]));}}}}['_rangeIsInLocalUserInsertion'](_0x1b2dd3){for(const {suggestion:_0xdce581,meta:_0x5eb71a}of this['_findSuggestions'](_0x1b2dd3,_0x2084('0xa4'))){if(!_0x5eb71a[_0x2084('0xd5')])continue;const _0x4c9b63=_0xdce581[_0x2084('0xc4')]();for(const _0x15f8df of _0x4c9b63)if(!_0x1b2dd3['getDifference'](_0x15f8df)[_0x2084('0x9b')])return!0x0;}return!0x1;}[_0x2084('0xd')](_0x3faff8){const _0x2c3e58=this['editor'][_0x2084('0x102')][_0x2084('0x1c')]('Users')[_0x2084('0xe9')](_0x3faff8);if(!_0x2c3e58)throw new _0xa2b4f8('track-changes-user-not-found',this);return _0x2c3e58;}[_0x2084('0x53')](_0x5d8a58,_0x1da302,_0x172d50,_0xefc119){const _0x3146c1=this['_getAuthorFromId'](_0xefc119),_0x4c8f45=this[_0x2084('0x41')][_0x2084('0x65')](_0x5d8a58,_0x1da302,_0x172d50,_0x3146c1,_0x26ec31=>this[_0x2084('0xe1')](_0x172d50,{'attributes':_0x26ec31}));return this[_0x2084('0xad')](_0x4c8f45,_0x2084('0xc7'),()=>{this[_0x2084('0xe1')](_0x172d50,{'state':_0x2084('0x6b')});},{'priority':'high'}),this[_0x2084('0xad')](_0x4c8f45,_0x2084('0x11d'),()=>{this[_0x2084('0xe1')](_0x172d50,{'state':'rejected'});},{'priority':_0x2084('0xbf')}),this[_0x2084('0x56')]['set'](_0x172d50,_0x4c8f45),this[_0x2084('0xbb')][_0x2084('0xf')](_0x4c8f45,_0x2084('0xf3')),_0x4c8f45;}[_0x2084('0x58')](_0x54ea4a){const _0x3639cd=_0x54ea4a[_0x2084('0x1a')](':');return{'group':_0x3639cd[0x0],'type':_0x3639cd[0x1],'subType':_0x3639cd['length']>=0x5?_0x3639cd[0x2]:null,'id':_0x3639cd['length']<0x5?_0x3639cd[0x2]:_0x3639cd[0x3],'authorId':_0x3639cd[_0x2084('0x9b')]<0x5?_0x3639cd[0x3]:_0x3639cd[0x4],'markerCount':0x6==_0x3639cd[_0x2084('0x9b')]?_0x3639cd[0x5]:null};}[_0x2084('0xd0')](_0x17a138,_0x319437,_0x4c88ec){const _0x5986a6=_0x17a138['getFirstRange'](),_0x5cb975=_0x5986a6['start'],_0x25e492=_0x5986a6[_0x2084('0x2f')];this[_0x2084('0x118')](_0x17a138,this['_model'][_0x2084('0x9a')](_0x5cb975,_0x319437));const _0xfe401=_0x495cdf(),_0x5f001a=_0x17a138[_0x2084('0x5d')]['id'],_0x54d083=_0x17a138[_0x2084('0x63')]+(_0x17a138[_0x2084('0x128')]?':'+_0x17a138[_0x2084('0x128')]:'');this[_0x2084('0xe7')]({'id':_0xfe401,'type':_0x54d083,'createdAt':new Date(),'authorId':_0x5f001a,'originalSuggestionId':_0x17a138['id'],'data':_0x17a138[_0x2084('0x14')]}),_0x2084('0x107')==_0x17a138[_0x2084('0x63')]&&(_0x4c88ec=this[_0x2084('0x7f')]['createPositionBefore'](_0x4c88ec[_0x2084('0x121')])),this[_0x2084('0x59')](_0x54d083,_0xfe401,_0x5f001a,this[_0x2084('0x7f')]['createRange'](_0x4c88ec,_0x25e492));}[_0x2084('0x9e')](_0x4a2bab,_0x22c248=null){const _0x48cfa6=[],_0x4666c8=this['_model'][_0x2084('0x8a')],_0x2fa578=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'];for(const _0x35b121 of this[_0x2084('0xef')]())if(_0x35b121[_0x2084('0x117')]&&(!_0x22c248||_0x35b121[_0x2084('0x63')]==_0x22c248))for(const _0x35cc80 of _0x35b121['getRanges']()){const _0x586fc3=_0x4a2bab['start'][_0x2084('0x110')](_0x35cc80[_0x2084('0x2f')])||_0x4a2bab['end'][_0x2084('0x110')](_0x35cc80[_0x2084('0x29')]);if(_0x586fc3||_0x4a2bab[_0x2084('0x2d')](_0x35cc80)){const _0x36ae6a=_0x4a2bab['containsRange'](_0x35cc80)&&wt(_0x4666c8,_0x35cc80['start'],_0x4a2bab),_0x2bce89=_0x35cc80[_0x2084('0xa')](_0x4a2bab)&&wt(_0x4666c8,_0x4a2bab[_0x2084('0x29')],_0x35cc80);_0x48cfa6[_0x2084('0x5a')]({'suggestion':_0x35b121,'meta':{'isOwn':_0x2fa578==_0x35b121['author'],'isNextTo':_0x586fc3,'isInsideObject':_0x36ae6a,'containsRangeInObject':_0x2bce89}});break;}}return _0x48cfa6;}[_0x2084('0x59')](_0xcd789d,_0x44a7db,_0x5405f0,_0xdffcdc,_0xfebdc4=null){this[_0x2084('0x7f')][_0x2084('0x54')](_0x320363=>{let _0x3d315b='suggestion:'+_0xcd789d+':'+_0x44a7db+':'+_0x5405f0;_0xfebdc4&&(_0x3d315b=_0x3d315b+':'+_0xfebdc4),_0x320363['addMarker'](_0x3d315b,{'range':_0xdffcdc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1b81dc){const _0x117d8c=_0x1b81dc[_0x2084('0x7a')],_0x339245=_0x1b81dc[_0x2084('0xed')];_0x1b81dc[_0x2084('0x7a')]=null,null!=_0x117d8c&&(_0x117d8c[_0x2084('0xed')]=null),_0x1b81dc[_0x2084('0xed')]=null,null!=_0x339245&&(_0x339245[_0x2084('0x7a')]=null),_0x2084('0xca')==this['_suggestionState']['get'](_0x1b81dc)&&(this['_suggestionState'][_0x2084('0xf')](_0x1b81dc,_0x2084('0xf4')),this[_0x2084('0x50')](_0x2084('0xa0'),_0x1b81dc,_0x117d8c,_0x339245));}[_0x2084('0xe7')](_0x874ae7){const _0x193e7f=_0x874ae7['id'],_0x5ef389=this['addSuggestionData'](_0x874ae7);if(this[_0x2084('0x80')]&&this['_adapter']['addSuggestion']){const _0x425929=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')]('PendingActions'),_0x513334=_0x5ef389[_0x2084('0x62')],_0x5dd632=_0x5ef389[_0x2084('0x128')]?_0x5ef389['type']+':'+_0x5ef389['subType']:_0x5ef389[_0x2084('0x63')],_0x2395be=this[_0x2084('0x4')]['locale'],_0x30b0f2=_0x425929[_0x2084('0xac')](_0x2d02e2(_0x2395be,_0x2084('0x8'))),_0x4e308f={'id':_0x193e7f,'type':_0x5dd632,'hasComments':_0x513334,'data':_0x874ae7[_0x2084('0x14')]||null,'originalSuggestionId':_0x874ae7['originalSuggestionId']||null,'attributes':_0x5ef389['attributes']};this[_0x2084('0x80')][_0x2084('0x10e')](_0x4e308f)[_0x2084('0xae')](_0xa35ab3=>{_0x5ef389[_0x2084('0x61')]=!0x0,_0x425929['remove'](_0x30b0f2),_0xa35ab3&&_0xa35ab3[_0x2084('0x10c')]&&(this['_suggestions']['get'](_0x193e7f)[_0x2084('0x10c')]=_0xa35ab3[_0x2084('0x10c')]);})[_0x2084('0x85')](_0x30e1e8=>{throw _0x3155d4(_0x2084('0x21')),this[_0x2084('0x4')][_0x2084('0x48')][_0x2084('0x3c')]({'isUndoable':!0x1},()=>{_0x5ef389['discard']();}),_0x5ef389[_0x2084('0x3d')](),this[_0x2084('0x56')]['delete'](_0x5ef389['id']),this[_0x2084('0xbb')]['delete'](_0x5ef389),_0x30e1e8;});}return _0x5ef389;}[_0x2084('0xe1')](_0x2986eb,_0x7c1fcd){const _0x2e6344=this[_0x2084('0x4')][_0x2084('0x102')]['get'](_0x2084('0xbc')),_0x4c53cf=this[_0x2084('0x56')][_0x2084('0x1c')](_0x2986eb);if(this[_0x2084('0x80')]&&this[_0x2084('0x80')][_0x2084('0xa3')]){if(_0x4c53cf[_0x2084('0x61')]){const _0x4fe60c=_0x2e6344[_0x2084('0xac')](_0x2d02e2(this[_0x2084('0x4')][_0x2084('0xce')],'PENDING_ACTION_SUGGESTION'));this[_0x2084('0x80')][_0x2084('0xa3')](_0x2986eb,_0x7c1fcd)[_0x2084('0xae')](()=>{_0x2e6344['remove'](_0x4fe60c);});}else _0x4c53cf['on'](_0x2084('0x99'),()=>{this[_0x2084('0xe1')](_0x2986eb,_0x7c1fcd);});}}[_0x2084('0xb5')](_0x5f4b29){if(!this[_0x2084('0x80')]||!this['_adapter'][_0x2084('0x2e')])throw new _0xa2b4f8('track-changes-adapter-missing-getsuggestion',this);return this[_0x2084('0x80')]['getSuggestion'](_0x5f4b29);}[_0x2084('0x114')](_0x1cbb67){const {id:_0x4ec42d,type:_0x27a3ff,subType:_0x41a8d6,authorId:_0x275f52}=this['_splitMarkerName'](_0x1cbb67),_0x5ae62b=this[_0x2084('0x56')]['get'](_0x4ec42d)||this[_0x2084('0x53')](_0x27a3ff,_0x41a8d6,_0x4ec42d,_0x275f52);switch(this['_checkSuggestionCorrectness'](_0x5ae62b,_0x27a3ff,_0x41a8d6,_0x275f52),this[_0x2084('0xbb')][_0x2084('0x1c')](_0x5ae62b)){case _0x2084('0xf3'):this[_0x2084('0xb5')](_0x4ec42d)['then'](_0x1034b1=>{let _0x5a7d6d=Promise[_0x2084('0x44')]();_0x1034b1[_0x2084('0x62')]&&(_0x5a7d6d=this[_0x2084('0xc8')][_0x2084('0x9')]({'channelId':this['editor']['config']['get'](_0x2084('0x97')),'threadId':_0x4ec42d})),_0x5a7d6d[_0x2084('0xae')](()=>{this[_0x2084('0x78')](_0x1034b1)[_0x2084('0x61')]=!0x0;});}),this[_0x2084('0xbb')][_0x2084('0xf')](_0x5ae62b,_0x2084('0x81'));break;case _0x2084('0xf4'):this[_0x2084('0xe1')](_0x4ec42d,{'state':_0x2084('0xa7')});case _0x2084('0x4f'):this[_0x2084('0xbb')]['set'](_0x5ae62b,_0x2084('0xca')),this['fire'](_0x2084('0xe4'),_0x5ae62b);break;case _0x2084('0xca'):this[_0x2084('0x50')](_0x2084('0xf8'),_0x5ae62b);}_0x5ae62b['addMarkerName'](_0x1cbb67),this['_refreshSuggestionsChain'](_0x5ae62b);}['_refreshSuggestionsChain'](_0x59ef73){if(_0x59ef73[_0x2084('0x77')])return;let _0x57ea54=!0x0,_0x3c803b=!0x0;for(const _0x538d32 of this[_0x2084('0xef')]()){if(_0x538d32[_0x2084('0x77')])continue;if(_0x538d32==_0x59ef73||!_0x538d32[_0x2084('0x117')])continue;if(_0x538d32[_0x2084('0x5d')]['id']!=_0x59ef73[_0x2084('0x5d')]['id'])continue;const _0xc08ca4=this[_0x2084('0x41')][_0x2084('0x70')](_0x59ef73[_0x2084('0x63')],_0x59ef73[_0x2084('0x128')],_0x2084('0x4c')),_0xa81821=this[_0x2084('0x41')][_0x2084('0x70')](_0x538d32[_0x2084('0x63')],_0x538d32['subType'],_0x2084('0x4c')),_0x338ae8=_0xc08ca4(_0x59ef73,_0x538d32),_0x338280=_0xa81821(_0x59ef73,_0x538d32);_0x338ae8&&_0x338280&&(_0x338ae8[0x1][_0x2084('0x10f')]&&_0x338ae8[0x1][_0x2084('0x10f')][_0x2084('0x9b')]||(_0x338ae8[0x0][_0x2084('0xed')]=_0x338ae8[0x1],_0x338ae8[0x1][_0x2084('0x7a')]=_0x338ae8[0x0],_0x338ae8[0x0]==_0x59ef73?_0x3c803b=!0x1:_0x57ea54=!0x1));}_0x59ef73[_0x2084('0x7a')]&&_0x57ea54&&(_0x59ef73['previous'][_0x2084('0xed')]=null,_0x59ef73['previous']=null),_0x59ef73[_0x2084('0xed')]&&_0x3c803b&&(_0x59ef73[_0x2084('0xed')]['previous']=null,_0x59ef73[_0x2084('0xed')]=null);}[_0x2084('0x6')](_0x104d18){for(const _0x152b99 of this['_suggestions'][_0x2084('0x37')]()){if(_0x152b99==_0x104d18||!_0x152b99[_0x2084('0x117')])continue;if(_0x152b99[_0x2084('0x63')]!=_0x104d18[_0x2084('0x63')]||_0x152b99['author']['id']!=_0x104d18[_0x2084('0x5d')]['id']||_0x152b99[_0x2084('0x128')]!=_0x104d18[_0x2084('0x128')])continue;const _0x4d1a1c=this[_0x2084('0x41')][_0x2084('0x70')](_0x104d18[_0x2084('0x63')],_0x104d18[_0x2084('0x128')],_0x2084('0xfa'));if(_0x4d1a1c(_0x152b99[_0x2084('0xc4')](),_0x104d18[_0x2084('0xc4')]())){if(_0x104d18['commentThread']&&_0x104d18['commentThread'][_0x2084('0x9b')])continue;return this[_0x2084('0x75')](_0x152b99,_0x104d18),!0x0;}if(_0x4d1a1c(_0x104d18[_0x2084('0xc4')](),_0x152b99[_0x2084('0xc4')]())){if(_0x152b99[_0x2084('0x10f')]&&_0x152b99[_0x2084('0x10f')]['length'])continue;return this[_0x2084('0x75')](_0x104d18,_0x152b99),!0x0;}}return!0x1;}[_0x2084('0x75')](_0x1c7bba,_0x1643b7){if(_0x1c7bba['isMultiRange'])for(const _0x53486a of _0x1643b7[_0x2084('0xc4')]())_0x1c7bba[_0x2084('0x5e')](_0x53486a);else{const _0x43d86b=_0x1643b7[_0x2084('0x79')]()[_0x2084('0x2f')];this[_0x2084('0x118')](_0x1c7bba,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x1c7bba[_0x2084('0x79')]()[_0x2084('0x29')],_0x43d86b));}_0x1643b7[_0x2084('0x57')]();}}_0x52747c(d,_0x5cb8bb);class kt{constructor(_0x688777){this[_0x2084('0x20')]=_0x688777,this['_model']=_0x688777['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x2084('0xea')]();}[_0x2084('0x65')](_0x3af404,_0x2db8a8,_0x4ae6a0,_0x288462,_0x2322cf){return new _0x4f381c(this[_0x2084('0x7f')],{'type':_0x3af404,'subType':_0x2db8a8,'id':_0x4ae6a0,'author':_0x288462,'onAttributesChange':_0x2322cf,'onAccept':(..._0x5ee66b)=>this[_0x2084('0x70')](_0x3af404,_0x2db8a8,_0x2084('0xc7'))(..._0x5ee66b),'onDiscard':(..._0x46ac17)=>this[_0x2084('0x70')](_0x3af404,_0x2db8a8,'discard')(..._0x46ac17)});}['registerCustomCallback'](_0x296857,_0x5bc991,_0x26537a,_0x5effd0){const _0x545427=_0x296857+':'+_0x5bc991+':'+_0x26537a;this[_0x2084('0xe0')][_0x2084('0xf')](_0x545427,_0x5effd0);}['getSuggestionCallback'](_0x409c26,_0x5347e1,_0x2e2543){const _0x28b647=_0x409c26+':'+_0x5347e1+':'+_0x2e2543;return this[_0x2084('0xe0')][_0x2084('0x1c')](_0x28b647)||this['_defaultCallbacks'][_0x2084('0x1c')](_0x409c26+':'+_0x2e2543);}[_0x2084('0xea')](){const _0x5c75b5=()=>{},_0x172fee=_0x6e1fe6=>{_0x6e1fe6[_0x2084('0xcc')]((_0x143407,_0x1d6cd0)=>_0x143407['start']['isBefore'](_0x1d6cd0[_0x2084('0x29')])?0x1:-0x1),this[_0x2084('0x7f')][_0x2084('0x54')](_0x30fbf7=>{for(const _0x5b94a0 of _0x6e1fe6){let _0xe53778;_0xe53778=_0x5b94a0[_0x2084('0x2f')][_0x2084('0xf5')]&&_0x5b94a0['end']['parent']==_0x5b94a0[_0x2084('0x29')][_0x2084('0x82')]?_0x30fbf7['createSelection'](_0x5b94a0['start']['nodeAfter'],'on'):_0x30fbf7['createSelection'](_0x5b94a0),this[_0x2084('0x7f')][_0x2084('0x0')](_0xe53778,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5449d1=(_0x2718a7,_0x2f48c9)=>{this[_0x2084('0x7f')]['change'](_0x2c9c62=>{const {commandName:_0x2d9ed9,commandParams:_0x59ad87=[]}=_0x2f48c9,_0x42a688=_0x2718a7[0x0];if(_0x2084('0x100')==_0x42a688[_0x2084('0x108')][_0x2084('0x125')])return;const _0x37dbcf=Array[_0x2084('0x25')](this[_0x2084('0x7f')][_0x2084('0xf6')][_0x2084('0x124')][_0x2084('0xc4')]())[_0x2084('0x7e')](_0x478315=>_0x184ebb[_0x2084('0xff')](_0x478315));yt(_0x42a688)?_0x2c9c62[_0x2084('0xb')](this[_0x2084('0x7f')]['createRange'](_0x42a688[_0x2084('0x2f')])):_0x2c9c62['setSelection'](_0x42a688);for(const _0x4823dc of this[_0x2084('0x20')]['commands'][_0x2084('0xd2')]())_0x4823dc[_0x2084('0x88')]();_0x59ad87['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x2084('0xd8')](_0x2d9ed9,..._0x59ad87);const _0x51a72f=_0x37dbcf[_0x2084('0xbe')](_0x3ae4f=>_0x2084('0x100')!=_0x3ae4f[_0x2084('0x108')]['rootName']);_0x51a72f[_0x2084('0x9b')]>0x0&&_0x2c9c62[_0x2084('0xb')](_0x51a72f);for(const _0x5b6fef of _0x37dbcf)_0x5b6fef['detach']();});},_0x1e7c3c=(_0xda6d49,_0x3501a3)=>0x1==_0xda6d49[_0x2084('0x9b')]&&0x1==_0x3501a3[_0x2084('0x9b')]&&_0xda6d49[0x0]['end'][_0x2084('0x110')](_0x3501a3[0x0][_0x2084('0x29')]),_0x13af01=(_0xa5776d,_0x57f5cc)=>Dt(_0xa5776d,_0x57f5cc,this[_0x2084('0x7f')])?[_0xa5776d,_0x57f5cc]:Dt(_0x57f5cc,_0xa5776d,this[_0x2084('0x7f')])?[_0x57f5cc,_0xa5776d]:null;this['_defaultCallbacks'][_0x2084('0xf')](_0x2084('0x69'),_0x5c75b5),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x39'),_0x172fee),this[_0x2084('0xab')][_0x2084('0xf')]('insertion:join',_0x1e7c3c),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x2b'),_0x13af01),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x1b'),_0x172fee),this[_0x2084('0xab')][_0x2084('0xf')]('deletion:discard',_0x5c75b5),this[_0x2084('0xab')][_0x2084('0xf')]('deletion:join',_0x1e7c3c),this[_0x2084('0xab')]['set'](_0x2084('0x51'),_0x13af01),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x6e'),_0x5449d1),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x22'),_0x5c75b5),this[_0x2084('0xab')]['set'](_0x2084('0x9f'),_0x1e7c3c),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x7c'),_0x5c75b5),this['_defaultCallbacks'][_0x2084('0xf')]('formatBlock:accept',_0x5449d1),this[_0x2084('0xab')]['set']('formatBlock:discard',_0x5c75b5),this[_0x2084('0xab')][_0x2084('0xf')]('formatBlock:join',_0x1e7c3c),this['_defaultCallbacks'][_0x2084('0xf')](_0x2084('0x71'),_0x5c75b5);}}function wt(_0x5a932d,_0x3ab733,_0x6b6d31){for(const _0x868932 of _0x3ab733['parent'][_0x2084('0x5')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x868932['root']==_0x868932)return!0x1;if(!_0x6b6d31['containsItem'](_0x868932))return!0x1;if(_0x5a932d[_0x2084('0x7d')](_0x868932)||_0x5a932d[_0x2084('0x95')](_0x868932))return!0x0;}}function yt(_0x2294b5){return _0x2294b5[_0x2084('0x2f')]['parent']==_0x2294b5[_0x2084('0x29')]['nodeAfter']&&_0x2294b5[_0x2084('0x2f')]['isAtStart'];}function bt(_0x5991e5,_0x55cc47,_0x175a03,_0x328cfe){const _0x585d3e=_0x1449a2=>!_0x1449a2['item']['is']('textProxy')&&!_0x328cfe['isObject'](_0x1449a2[_0x2084('0xe')]),_0x377a79=_0x5991e5[_0x2084('0x29')][_0x2084('0xf0')](_0x585d3e),_0x299e29=_0x5991e5[_0x2084('0x2f')][_0x2084('0xf0')](_0x585d3e,{'direction':'backward'});return(!_0x5991e5[_0x2084('0x29')]['isEqual'](_0x377a79)||!_0x5991e5[_0x2084('0x2f')][_0x2084('0x110')](_0x299e29))&&(_0x377a79['isBefore'](_0x299e29)?_0x175a03[_0x2084('0x2c')](_0x55cc47,{'range':_0x175a03['createRange'](_0x377a79,_0x299e29)}):_0x175a03['removeMarker'](_0x55cc47),!0x0);}function St(_0x468fbc){return _0x252d75(_0x468fbc);}function It(_0x883423){const _0x46ce64=_0x883423[_0x2084('0x29')][_0x2084('0x82')];return _0x46ce64&&_0x46ce64['is'](_0x2084('0x112'));}function vt(_0x4b1cf5,_0x4a994a){const _0x45d8fd=_0x4a994a[_0x2084('0x8a')][_0x2084('0x7d')](_0x4b1cf5)||_0x4a994a['schema'][_0x2084('0x1')](_0x4b1cf5);return _0x4a994a[_0x2084('0x9a')](_0x4a994a['createPositionAt'](_0x4b1cf5,_0x2084('0x123')),_0x45d8fd?_0x4a994a['createPositionAfter'](_0x4b1cf5):_0x4a994a[_0x2084('0x92')](_0x4b1cf5,_0x2084('0x2f')));}function Dt(_0x2c66e8,_0x48b6ac,_0x329231){const _0x3147b3=_0x2c66e8[_0x2084('0x79')](),_0x444f6b=_0x48b6ac[_0x2084('0x79')]();if(_0x3147b3[_0x2084('0x2f')][_0x2084('0x110')](_0x444f6b[_0x2084('0x29')]))return!0x0;if(_0x2c66e8[_0x2084('0x63')]!=_0x48b6ac['type'])return!0x1;if(!_0x3147b3[_0x2084('0x2f')][_0x2084('0x46')](_0x444f6b[_0x2084('0x29')]))return!0x1;const _0xed42ed=_0x329231[_0x2084('0x9a')](_0x3147b3['end'],_0x444f6b[_0x2084('0x29')])[_0x2084('0x10a')]();for(const _0x23b8e3 of _0xed42ed)if([_0x2084('0x91'),_0x2084('0x9d')]['includes'](_0x23b8e3[_0x2084('0x63')])&&_0x329231[_0x2084('0x8a')][_0x2084('0x95')](_0x23b8e3[_0x2084('0xe')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x4089=['start','_onDiscard','push','head','isEqual','skipNestingCheck','removed','isInContent','splitPosition','getFirstRange','buildSuggestion','_isForcedDefaultExecutionBlock','getFirstMarker','newRange','insert','enableReadOnlyMode','markInsertion','addSuggestion','end','track-changes-suggestion-data-mismatch','rootName','notReady','document','markerToData','containsRangeInObject','addMarker','addMarkerName','getSuggestionCallback','_saved','some','getDifference','hasSuggestion','author','markerName','commandName','length','set','low','addClass','createElement','deletion:accept','bindElementToMarker','formatInline','removeMarkers','mapper','_suggestionFactory','oldRange','_getSuggestionData','remove','fetchCommentThread','dataToMarker','getLastMatchingPosition','markerReady','lowest','selection','deletion:discard','$graveyard','editing','schema','getUser','error-saving-suggestion-data-suggestion-discarded','suggestionLoaded','markMultiRangeInsertion','insertion:join','track-changes-adapter-already-set','isLimit','root','_setSuggestionRange','isAtStart','_descriptionFactory','ready','commands','howMany','removeMarker:suggestion:formatBlock','writer','return','createPositionAt','isIntersectingWithRange','_addThreadToSuggestion','consume','addMarker:suggestion:formatBlock','_cutOutSuggestionMarker','execute','rejected','targetPosition','clone','getItems','markDeletion','addCommentThread','accept','_breakSuggestionMarker','hasCommentThread','has','PendingActions','position','discardAllSuggestions','getMarkers','textProxy','updateSuggestion','getIntersection','getMultiRangeId','locale','join','_customCallbacks','getShiftedBy','editor','size','subType','_setSuggestionData','removeClass','createdAt','showSuggestionHighlights','suggestion','_suggestionState','addHighlight','addMarker:suggestion','updateMarker','insertion:discard','registerPostFixer','dataReady','before','split','high','_rangeIsInLocalUserInsertion','formatInline:accept','fromCharCode','moveTargetPosition','previous','markers','fire','commentThread','value','_removeSuggestion','setTo','insertion','parent','elementToElement','isNextTo','detach','registerCustomCallback','_editor','createPositionAfter','createRangeIn','_addSuggestionMarker','attributes','model','nodeBefore','marker-count','requires','elementStart','getChanges','element','insertion:','splice','_getAuthorFromId','isCollapsed','_commentsRepository','isOwn','_defaultCallbacks','getRanges','TrackChangesEditing','activeMarkers','Users','getSuggestion','filter','_handleNewSuggestionMarker','isObject','getChangedMarkers','conversion','data-suggestion','adapter','containerElement','markerNameToElements','_refreshSuggestionsChain','insertion:chain','discard','toViewElement','insertContent','init','isAfter','batch','trackChanges','suggestionUnloaded','delete','get','_model','options','isBlock','dataDowncast','collaboration.channelId','_joinWithAdjacentSuggestions','getAncestors','suggestionChanged','rethrowUnexpectedError','isBefore','isAtEnd','refresh','after','setAttribute','_findSuggestions','ck-suggestion-marker','getAttribute','enableCommand','_updateSuggestionData','deletion','getNearestSelectionRange','isUndo','multipleBlocks','change','formatInline:','containsPosition','deletion:','ck-suggestion-marker-formatBlock','isLocal','editingDowncast','formatInline:discard','plugins','elementEnd','deletion:chain','createSelection','name','containsRange','reconvertMarker','formatInline:join','stop','clear','values','pluginName','createRange','suggestion-type','createPositionBefore','removeMarker','isMultiRange','sort','update:suggestion','formatInline:chain','getAllAdjacentSuggestions','_suggestions','isInsideObject','map','setSelection','nodeAfter','track-changes-suggestion-not-found','acceptSuggestion','suggestion:','_splitMarkerName','ck-suggestion-marker-','stopListening','enqueueChange','isRemovable','config','PENDING_ACTION_SUGGESTION','differ','originalSuggestionId','change:activeMarkers','listenTo','multi','range','_registerDefaultCallbacks','_joinSuggestions','deleteContent','add','applyOperation','addSuggestionData','track-changes-command-not-found','unbind','markerToHighlight','unbindElementFromMarkerName','trackChangesCommand','acceptSelectedSuggestions','acceptAllSuggestions','includes','CommentsRepository','chain','_adapter','data','formatBlock','fromRange','formatGroupId','change:_saved','item','open','formatBlock:join','forceDefaultExecution','removeComment','markInlineFormat','hasComments','formatBlock:','next','then','_enabledCommands','getCustomProperty','for','discardSuggestion','type','getSuggestions','ck-suggestion-marker--active','_checkSuggestionCorrectness','addRange','track-changes-adapter-missing-getsuggestion','getCommentThread','accepted','backward','every','from','toJSON','consumable'];(function(_0x4aea98,_0x408935){const _0x8bed06=function(_0x3a6c32){while(--_0x3a6c32){_0x4aea98['push'](_0x4aea98['shift']());}};_0x8bed06(++_0x408935);}(_0x4089,0x19e));const _0x8bed=function(_0x4aea98,_0x408935){_0x4aea98=_0x4aea98-0x0;let _0x8bed06=_0x4089[_0x4aea98];return _0x8bed06;};import{Plugin as _0x307784,PendingActions as _0x505e89}from'ckeditor5/src/core';import{LiveRange as _0x533e76}from'ckeditor5/src/engine';import{CKEditorError as _0x210547,uid as _0x91d85,priorities as _0x2475cb,EmitterMixin as _0x199b9c,mix as _0xf3e8ef,logWarning as _0x5aa693}from'ckeditor5/src/utils';import{toWidget as _0x2db298}from'ckeditor5/src/widget';import{Users as _0x23dace}from'ckeditor5-collaboration/src/collaboration-core';import _0x2936c1 from'./commands/trackchangescommand';import _0x2ab529 from'./commands/acceptsuggestioncommand';import _0x386037 from'./commands/discardsuggestioncommand';import _0x4825ed from'./commands/acceptallsuggestionscommand';import _0x5a2bfa from'./commands/acceptselectedsuggestionscommand';import _0x1fade7 from'./commands/discardallsuggestionscommand';import _0x4c6e2a from'./commands/discardselectedsuggestionscommand';import _0x428f40 from'./suggestion';import _0x595e7c from'./suggestiondescriptionfactory';import _0x551678 from'./integrations/alignment';import _0x327e99 from'./integrations/basicstyles';import _0x1a6dce from'./integrations/blockquote';import _0x14a691 from'./integrations/ckbox';import _0xbbf70e from'./integrations/codeblock';import _0x38e71 from'./integrations/comments';import _0x720762 from'./integrations/deletecommand';import _0x2d6633 from'./integrations/entercommand';import _0x4b3971 from'./integrations/font';import _0x2b8380 from'./integrations/heading';import _0x257272 from'./integrations/highlight';import _0x4c2615 from'./integrations/horizontalline';import _0x3b6a19 from'./integrations/htmlembed';import _0x13f7f5 from'./integrations/image';import _0xf686e0 from'./integrations/indent';import _0x5d7337 from'./integrations/inputcommand';import _0x1a8e22 from'./integrations/link';import _0x39eaa7 from'./integrations/list';import _0x1c4360 from'./integrations/mediaembed';import _0x1af6ca from'./integrations/mention';import _0x897dff from'./integrations/pagebreak';import _0x2939f2 from'./integrations/paragraph';import _0x1545fb from'./integrations/removeformat';import _0x1d3af2 from'./integrations/restrictededitingmode';import _0x49f92f from'./integrations/shiftentercommand';import _0x4a0185 from'./integrations/standardeditingmode';import _0x3e8bbd from'./integrations/style';import _0x38f193 from'./integrations/table';import _0x36cbc0 from'./integrations/tablemergesplit';import _0x10e396 from'./integrations/tableheadings';import _0x3810d0 from'./integrations/tableclipboard';import _0x3bdb64 from'./integrations/title';import _0xa9c21f from'./integrations/undo';import _0x36dc3a from'./utils/hashobject.js';import{getTranslation as _0xf0b42e}from'./utils/common-translations';export default class d extends _0x307784{static get[_0x8bed('0x29')](){return[_0x8bed('0xa5'),_0x23dace,_0x505e89,_0x551678,_0x327e99,_0x1a6dce,_0x14a691,_0xbbf70e,_0x38e71,_0x720762,_0x2d6633,_0x4b3971,_0x2b8380,_0x257272,_0x4c2615,_0x3b6a19,_0x13f7f5,_0xf686e0,_0x5d7337,_0x1a8e22,_0x39eaa7,_0x1c4360,_0x1af6ca,_0x897dff,_0x2939f2,_0x1545fb,_0x1d3af2,_0x49f92f,_0x4a0185,_0x3e8bbd,_0x38f193,_0x36cbc0,_0x10e396,_0x3810d0,_0x3bdb64,_0xa9c21f];}static get[_0x8bed('0x78')](){return _0x8bed('0x35');}constructor(_0x13ca0d){function _0x57ab3f(_0x54d4e1){return _0x54d4e1[_0x8bed('0x84')](_0x233614=>String[_0x8bed('0x12')](_0x233614))[_0x8bed('0x12e')]('');}super(_0x13ca0d),this['set'](_0x8bed('0x36'),[]),this['on'](_0x8bed('0x93'),(_0x502c4d,_0x256823,_0x18bf33,_0x10bc72)=>{this[_0x8bed('0x4e')][_0x8bed('0x65')](()=>{for(const _0x4841c5 of[..._0x10bc72,..._0x18bf33])this[_0x8bed('0x4e')][_0x8bed('0x15')][_0x8bed('0x124')](_0x4841c5)&&_0x13ca0d[_0x8bed('0x101')][_0x8bed('0x73')](_0x4841c5);});}),this[_0x8bed('0x10d')]=new _0x595e7c(this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x102')],this[_0x8bed('0x131')][_0x8bed('0x12d')]),this[_0x8bed('0xa7')]=null,this['_suggestionFactory']=new kt(this['editor']),this[_0x8bed('0x82')]=new Map(),this[_0x8bed('0x31')]=_0x13ca0d[_0x8bed('0x6d')][_0x8bed('0x4d')]('CommentsRepository'),this[_0x8bed('0xb7')]=new Set(),this['_model']=this[_0x8bed('0x131')]['model'],this[_0x8bed('0x6')]=new WeakMap(),this[_0x8bed('0xd3')]=!0x1,this[_0x57ab3f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57ab3f([0x34,0x30,0x34,0x34,0x31,0x36,0x36,0x32]);}[_0x8bed('0x47')](){const _0x3f6ddd=this[_0x8bed('0x131')];_0x3f6ddd['conversion'][_0x8bed('0xb9')]('editingDowncast')[_0x8bed('0x9f')]({'model':_0x8bed('0x5'),'view':_0x4a7707=>{const {id:_0x413f99,type:_0x314d0b}=this[_0x8bed('0x8a')](_0x4a7707[_0x8bed('0xe9')]),_0x45d78b=['ck-suggestion-marker',_0x8bed('0x8b')+_0x314d0b];let _0x25944a=0xbb8;return this[_0x8bed('0x36')][_0x8bed('0xa4')](_0x4a7707[_0x8bed('0xe9')])&&(_0x45d78b[_0x8bed('0xca')](_0x8bed('0xbd')),_0x25944a=0xbc2),_0x8bed('0x61')==_0x314d0b&&(_0x25944a+=0x5),{'classes':_0x45d78b,'attributes':{'data-suggestion':_0x413f99},'priority':_0x25944a};}}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x51'))[_0x8bed('0x9a')](_0xb55e44=>{_0xb55e44['on'](_0x8bed('0x8'),(_0x57048f,_0x5e273c,_0x73904b)=>{if(!_0x73904b[_0x8bed('0x4f')][_0x8bed('0x4')])return;const _0x1e6232=_0x5e273c[_0x8bed('0xad')];if(!_0x1e6232)return;const _0x40ccfe=_0x73904b[_0x8bed('0xf4')][_0x8bed('0x45')](_0x1e6232);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')][_0x8bed('0x3b')](_0x1e6232)&&_0x40ccfe&&!_0x40ccfe[_0x8bed('0xb8')]('widget')&&_0x40ccfe['is'](_0x8bed('0x40'))&&_0x2db298(_0x40ccfe,_0x73904b['writer']);},{'priority':_0x8bed('0xf')});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')]('dataDowncast')[_0x8bed('0x9f')]({'model':_0x8bed('0x5'),'view':(_0x42ee8d,_0x2ee1c7)=>{if(!_0x2ee1c7[_0x8bed('0x4f')][_0x8bed('0x4')])return null;const {type:_0xba0c7a}=this[_0x8bed('0x8a')](_0x42ee8d[_0x8bed('0xe9')]);return{'classes':[_0x8bed('0x5d'),_0x8bed('0x8b')+_0xba0c7a],'priority':0xbb8};}});const _0x44197d=({showActiveMarkers:_0x16c58c=!0x0}={})=>(_0xc620d3,_0x48b436,_0x53bd0f)=>{if(!_0x48b436['item'])return;if(_0x48b436[_0x8bed('0xad')]['is'](_0x8bed('0xfe')))return void _0x53bd0f[_0x8bed('0xc7')]['consume'](_0x48b436[_0x8bed('0xad')],_0xc620d3[_0x8bed('0x71')]);const _0x10d3c2=_0x53bd0f[_0x8bed('0xf4')][_0x8bed('0x45')](_0x48b436[_0x8bed('0xad')]);if(!(_0x48b436[_0x8bed('0xad')]['is'](_0x8bed('0x2c'))&&_0x3f6ddd[_0x8bed('0x26')]['schema']['isBlock'](_0x48b436[_0x8bed('0xad')])&&!_0x10d3c2[_0x8bed('0xb8')](_0x8bed('0x7'))))return;const {id:_0x25925f}=this[_0x8bed('0x8a')](_0x48b436['markerName']);_0x53bd0f['writer'][_0x8bed('0xee')]([_0x8bed('0x5d'),'ck-suggestion-marker-formatBlock'],_0x10d3c2),_0x53bd0f[_0x8bed('0x112')][_0x8bed('0x5b')](_0x8bed('0x3e'),_0x25925f,_0x10d3c2),_0x53bd0f[_0x8bed('0xf4')][_0x8bed('0xf1')](_0x10d3c2,_0x48b436[_0x8bed('0xe9')]),_0x16c58c&&(this[_0x8bed('0x36')][_0x8bed('0xa4')](_0x48b436[_0x8bed('0xe9')])?_0x53bd0f[_0x8bed('0x112')][_0x8bed('0xee')]('ck-suggestion-marker--active',_0x10d3c2):_0x53bd0f[_0x8bed('0x112')][_0x8bed('0x2')](_0x8bed('0xbd'),_0x10d3c2));for(const _0x169d5c of _0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x23')](_0x48b436[_0x8bed('0xad')])[_0x8bed('0x11e')]())_0x53bd0f['consumable'][_0x8bed('0x117')](_0x169d5c,_0xc620d3[_0x8bed('0x71')]);_0x53bd0f[_0x8bed('0xc7')]['consume'](_0x48b436[_0x8bed('0xad')],_0xc620d3['name']);};_0x3f6ddd['conversion'][_0x8bed('0xb9')]('dataDowncast')[_0x8bed('0x9a')](_0x34099e=>{_0x34099e['on'](_0x8bed('0x118'),(_0x2c35ec,_0xfa06e8,_0x3d6bb4)=>{_0x3d6bb4['options'][_0x8bed('0x4')]&&_0x44197d({'showActiveMarkers':!0x1})(_0x2c35ec,_0xfa06e8,_0x3d6bb4);},{'priority':'highest'});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x51'))[_0x8bed('0xdf')]({'model':_0x8bed('0x5'),'view':(_0x29407c,_0x3ba83c)=>_0x3ba83c['options'][_0x8bed('0x4')]?null:{'group':_0x8bed('0x5'),'name':_0x29407c['substr'](_0x8bed('0x5')[_0x8bed('0xeb')]+0x1)}}),_0x3f6ddd[_0x8bed('0x3d')]['for']('upcast')[_0x8bed('0x1d')]({'view':{'name':_0x8bed('0x5'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x471656,{writer:_0x2cbc5d})=>{let _0x1a3a4b=_0x8bed('0x89')+_0x471656[_0x8bed('0x5e')](_0x8bed('0x7a'))+':'+_0x471656['getAttribute']('id');return _0x471656[_0x8bed('0x5e')](_0x8bed('0x28'))&&(_0x1a3a4b+=':'+_0x471656['getAttribute'](_0x8bed('0x28'))),_0x2cbc5d[_0x8bed('0xef')]('$marker',{'data-name':_0x1a3a4b});}}),_0x3f6ddd['conversion']['for']('upcast')[_0x8bed('0xfa')]({'view':_0x8bed('0x5')}),_0x3f6ddd['conversion'][_0x8bed('0xb9')](_0x8bed('0x6b'))[_0x8bed('0x9a')](_0x5cf310=>{_0x5cf310['on'](_0x8bed('0x118'),_0x44197d(),{'priority':'high'});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x6b'))[_0x8bed('0x9a')](_0x3b299d=>{_0x3b299d['on'](_0x8bed('0x111'),(_0x349b33,_0x445ea1,_0x20395e)=>{const _0xe4ac3d=_0x20395e['mapper'][_0x8bed('0x41')](_0x445ea1[_0x8bed('0xe9')]);if(_0xe4ac3d)for(const _0x8ce3b7 of _0xe4ac3d)_0x8ce3b7[_0x8bed('0xb8')](_0x8bed('0x7'))||(_0x20395e[_0x8bed('0x112')]['removeClass']([_0x8bed('0x5d'),_0x8bed('0x69'),_0x8bed('0xbd')],_0x8ce3b7),_0x20395e[_0x8bed('0x112')]['removeAttribute'](_0x8bed('0x3e'),_0x8ce3b7),_0x20395e[_0x8bed('0xf4')][_0x8bed('0xa0')](_0x8ce3b7,_0x445ea1[_0x8bed('0xe9')]));},{'priority':_0x8bed('0xf')});}),_0x3f6ddd[_0x8bed('0x26')]['document'][_0x8bed('0xb')](_0xf98ca9=>{let _0x221584=!0x1;const _0x2e473a=Array['from'](_0x3f6ddd[_0x8bed('0x26')]['document']['differ'][_0x8bed('0x3c')]());for(const {name:_0x4e3a02,data:_0x28cb1c}of _0x2e473a){const {group:_0x15b63e,type:_0x235507,id:_0x7446d0}=this[_0x8bed('0x8a')](_0x4e3a02);if(_0x8bed('0x5')!==_0x15b63e)continue;const _0x3880e7=this['_suggestions'][_0x8bed('0x4d')](_0x7446d0);if(null!=_0x28cb1c[_0x8bed('0xd5')]){_0x8bed('0xf2')==_0x235507&&(_0x221584=_0x221584||bt(_0x28cb1c[_0x8bed('0xd5')],_0x4e3a02,_0xf98ca9,_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')]));if(_0x28cb1c[_0x8bed('0xd5')][_0x8bed('0x30')]||_0x8bed('0x100')==_0x28cb1c[_0x8bed('0xd5')]['root'][_0x8bed('0xdc')]||_0x8bed('0xa9')==_0x235507&&!It(_0x28cb1c['newRange'])||_0x8bed('0x61')==_0x235507&&!(!yt(_0x519b65=_0x28cb1c[_0x8bed('0xd5')])&&!function(_0x2bfa8f){return _0x2bfa8f[_0x8bed('0xc8')][_0x8bed('0x1c')]==_0x2bfa8f[_0x8bed('0xda')][_0x8bed('0x27')]&&_0x2bfa8f[_0x8bed('0xc8')]['isAtEnd'];}(_0x519b65)))_0xf98ca9[_0x8bed('0x7c')](_0x4e3a02),_0x221584=!0x0;else{if(!_0x3880e7||!_0x3880e7[_0x8bed('0xcf')])continue;_0x221584=!!this[_0x8bed('0x53')](_0x3880e7)||_0x221584;}}}var _0x519b65;return _0x221584;}),_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0xde')][_0x8bed('0xb')](_0x22fa3a=>{let _0x325275=!0x1;for(const _0x4288e8 of _0x3f6ddd['model'][_0x8bed('0xde')][_0x8bed('0x91')][_0x8bed('0x2b')]()){if(_0x8bed('0xd6')!=_0x4288e8[_0x8bed('0xbb')])continue;const _0x3435ca=_0x4288e8['position']['getShiftedBy'](_0x4288e8['length']);if(_0x3435ca['isAtEnd'])for(const _0x233892 of this[_0x8bed('0x82')]['values']()){if(_0x233892[_0x8bed('0x7d')]||!_0x233892[_0x8bed('0xcf')])continue;if(_0x8bed('0xa9')!=_0x233892[_0x8bed('0xbb')])continue;const _0x70a77=_0x233892['getFirstRange']();if(_0x70a77['start']['parent']!=_0x70a77[_0x8bed('0xda')][_0x8bed('0x1c')]&&_0x70a77[_0x8bed('0xda')][_0x8bed('0xcc')](_0x4288e8[_0x8bed('0x126')])){const _0x498f96=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x70a77['start'],_0x3435ca);_0x22fa3a[_0x8bed('0x9')](_0x233892['getFirstMarker'](),{'range':_0x498f96}),_0x325275=!0x0;}}}return _0x325275;}),_0x3f6ddd[_0x8bed('0x26')]['markers']['on'](_0x8bed('0x7f'),(_0x1baeeb,_0x5724af,_0x3df302)=>{if(null==_0x3df302){const {id:_0x288da8}=this['_splitMarkerName'](_0x5724af[_0x8bed('0x71')]),_0x4b6e48=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x288da8);_0x4b6e48&&_0x4b6e48[_0x8bed('0xe2')](_0x5724af[_0x8bed('0x71')]);}}),_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0xde')]['on']('change:data',()=>{const _0x34fe0c=Array[_0x8bed('0xc5')](_0x3f6ddd['model'][_0x8bed('0xde')][_0x8bed('0x91')]['getChangedMarkers']());_0x34fe0c[_0x8bed('0x7e')]((_0x9a8dd0,_0x1a70ee)=>{const _0x2ac1d1=_0x9a8dd0['data'][_0x8bed('0xf6')],_0x556a48=_0x1a70ee[_0x8bed('0xa8')]['oldRange'];return null===_0x2ac1d1&&null===_0x556a48?0x0:null===_0x2ac1d1&&null!==_0x556a48?-0x1:null!==_0x2ac1d1&&null===_0x556a48?0x1:_0x2ac1d1[_0x8bed('0xc8')][_0x8bed('0x57')](_0x556a48[_0x8bed('0xc8')])?-0x1:0x1;});const _0x3ac469=new Set();for(const {name:_0x3dcb66,data:_0xcb097b}of _0x34fe0c){const {group:_0x1ca02c,id:_0x4d0984}=this[_0x8bed('0x8a')](_0x3dcb66);if(_0x8bed('0x5')===_0x1ca02c&&(null===_0xcb097b[_0x8bed('0xf6')]&&this[_0x8bed('0x3a')](_0x3dcb66),null===_0xcb097b[_0x8bed('0xd5')])){const _0x53d7d7=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x4d0984);_0x53d7d7[_0x8bed('0xcf')]?_0x3ac469['add'](_0x53d7d7):this[_0x8bed('0x19')](_0x53d7d7);}}for(const {name:_0x239de2,data:_0x513401}of _0x34fe0c){const {group:_0x2fbc10,id:_0x4765e7}=this[_0x8bed('0x8a')](_0x239de2);if('suggestion'!==_0x2fbc10)continue;const _0x3e355=this[_0x8bed('0x82')]['get'](_0x4765e7);null!=_0x513401[_0x8bed('0xd5')]&&null!=_0x513401[_0x8bed('0xf6')]&&(this[_0x8bed('0x42')](_0x3e355),_0x3ac469[_0x8bed('0x9a')](_0x3e355[_0x8bed('0xcb')]));}for(const _0x2c7e87 of _0x3ac469)this['fire'](_0x8bed('0x55'),_0x2c7e87);_0x3ac469['clear']();}),_0x3f6ddd[_0x8bed('0x26')]['on'](_0x8bed('0x9b'),(_0x46c39c,_0x2a3d5b)=>{const _0x19e94a=_0x2a3d5b[0x0];if(!this[_0x8bed('0x82')][_0x8bed('0x132')])return;if(!_0x19e94a['isDocumentOperation'])return;if(_0x19e94a[_0x8bed('0x49')][_0x8bed('0x63')]||!_0x19e94a['batch'][_0x8bed('0x6a')])return;let _0x229fae,_0x588332;switch(_0x19e94a[_0x8bed('0xbb')]){case _0x8bed('0xd6'):_0x229fae=_0x3f6ddd[_0x8bed('0x26')]['createPositionAt'](_0x19e94a[_0x8bed('0x126')]),_0x588332=_0x229fae[_0x8bed('0x130')](_0x19e94a[_0x8bed('0x110')]);break;case _0x8bed('0xe'):_0x229fae=_0x3f6ddd[_0x8bed('0x26')]['createPositionAt'](_0x19e94a[_0x8bed('0xd0')]),_0x588332=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x19e94a[_0x8bed('0x13')]);break;case'move':_0x229fae=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x19e94a[_0x8bed('0x11c')]),_0x588332=_0x229fae['getShiftedBy'](_0x19e94a[_0x8bed('0x110')]);break;default:return;}const _0x36601e=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x229fae,_0x588332);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x65')](()=>{for(const {suggestion:_0x1e6e96,meta:_0xa44735}of this[_0x8bed('0x5c')](_0x36601e)){if(_0x1e6e96[_0x8bed('0x7d')])continue;if('formatInline'==_0x1e6e96['type'])continue;const _0x54a897=_0x1e6e96[_0x8bed('0xa8')]&&_0x1e6e96['data'][_0x8bed('0x64')];(_0x8bed('0xa9')!=_0x1e6e96[_0x8bed('0xbb')]||_0x8bed('0xe')==_0x19e94a[_0x8bed('0xbb')]&&!_0x54a897)&&(_0xa44735[_0x8bed('0xe0')]||_0x8bed('0x1b')==_0x1e6e96[_0x8bed('0xbb')]&&_0xa44735[_0x8bed('0x32')]||_0x1e6e96[_0x8bed('0xd1')]()[_0x8bed('0x72')](_0x36601e)&&this[_0x8bed('0x122')](_0x1e6e96,_0x229fae,_0x588332));}});},{'priority':_0x8bed('0xfd')}),_0x3f6ddd[_0x8bed('0x26')]['on'](_0x8bed('0x99'),(_0x579c8f,_0x4f3c7f)=>{const _0x5ea6a3=_0x4f3c7f[0x0],_0xde8c85=_0x4f3c7f[0x1];if(_0xde8c85&&_0xde8c85[_0x8bed('0xb0')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x8bed('0xa1')][_0x8bed('0x18')])return;if(_0x5ea6a3['isCollapsed'])return;const _0x175e84=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')],{start:_0x19aa2c,end:_0x391059}=_0x5ea6a3[_0x8bed('0xd1')](),_0x1651ba=_0x19aa2c[_0x8bed('0x86')]&&_0x175e84[_0x8bed('0x3b')](_0x19aa2c[_0x8bed('0x86')])?null:_0x175e84['getNearestSelectionRange'](_0x19aa2c,'forward'),_0xfb8096=_0x391059[_0x8bed('0x27')]&&_0x175e84[_0x8bed('0x3b')](_0x391059[_0x8bed('0x27')])?null:_0x175e84[_0x8bed('0x62')](_0x391059,_0x8bed('0xc3')),_0x110b52=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x1651ba?_0x1651ba[_0x8bed('0xc8')]:_0x19aa2c,_0xfb8096?_0xfb8096[_0x8bed('0xda')]:_0x391059);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x65')](_0x350f22=>{this[_0x8bed('0x11f')](_0x110b52);const _0x1bedcd=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')][_0x8bed('0x62')](_0x110b52['start']);_0x5ea6a3['is']('documentSelection')?_0x350f22[_0x8bed('0x85')](_0x1bedcd):_0x5ea6a3[_0x8bed('0x1a')](_0x1bedcd);}),_0x579c8f[_0x8bed('0x75')]();},{'priority':_0x2475cb['normal']+0xa}),_0x3f6ddd['model']['on'](_0x8bed('0x46'),(_0x138b6a,_0x58cfaa)=>{const _0x4b2a3c=_0x58cfaa[_0x58cfaa[_0x8bed('0xeb')]-0x1];_0x4b2a3c&&_0x4b2a3c[_0x8bed('0xb0')]||this[_0x8bed('0xd3')]||this[_0x8bed('0xa1')][_0x8bed('0x18')]&&(_0x3f6ddd[_0x8bed('0x26')]['change'](()=>{let _0x13f3da=_0x3f6ddd[_0x8bed('0x26')]['insertContent'](_0x58cfaa[0x0],_0x58cfaa[0x1],_0x58cfaa[0x2],_0x58cfaa[0x3],{'forceDefaultExecution':!0x0});if(!_0x13f3da)return;_0x138b6a[_0x8bed('0x113')]=_0x13f3da[_0x8bed('0x11d')]();const _0x395065=_0x13f3da[_0x8bed('0xda')][_0x8bed('0x27')],_0x53e3ea=_0x3f6ddd['model'][_0x8bed('0x102')];_0x395065&&_0x53e3ea[_0x8bed('0x50')](_0x395065)&&!_0x53e3ea[_0x8bed('0x3b')](_0x395065)&&(_0x13f3da=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x13f3da[_0x8bed('0xc8')],_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x395065,'end'))),this[_0x8bed('0xd8')](_0x13f3da);}),_0x138b6a[_0x8bed('0x75')]());},{'priority':'high'}),this[_0x8bed('0xa1')]=new _0x2936c1(_0x3f6ddd,this['_enabledCommands']),this['editor']['commands'][_0x8bed('0x9a')](_0x8bed('0x4a'),this[_0x8bed('0xa1')]),this[_0x8bed('0x5f')](_0x8bed('0x4a'));const _0x421c9e=new _0x2ab529(_0x3f6ddd,this[_0x8bed('0x82')]);_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')](_0x8bed('0x88'),_0x421c9e),this[_0x8bed('0x5f')](_0x8bed('0x88'));const _0x1d439d=new _0x386037(_0x3f6ddd,this[_0x8bed('0x82')]);_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')](_0x8bed('0xba'),_0x1d439d),this[_0x8bed('0x5f')](_0x8bed('0xba')),_0x3f6ddd[_0x8bed('0x10f')]['add'](_0x8bed('0xa3'),new _0x4825ed(_0x3f6ddd,_0x421c9e,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')](_0x8bed('0xa3')),_0x3f6ddd[_0x8bed('0x10f')]['add'](_0x8bed('0x127'),new _0x1fade7(_0x3f6ddd,_0x1d439d,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')](_0x8bed('0x127')),_0x3f6ddd['commands'][_0x8bed('0x9a')](_0x8bed('0xa2'),new _0x5a2bfa(_0x3f6ddd,_0x421c9e,this[_0x8bed('0x82')])),this['enableCommand']('acceptSelectedSuggestions'),_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')]('discardSelectedSuggestions',new _0x4c6e2a(_0x3f6ddd,_0x1d439d,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')]('discardSelectedSuggestions');const _0x4bb869=_0x3f6ddd[_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0xa5'));this['listenTo'](_0x4bb869,'addComment',(_0x3fe6bf,{threadId:_0x11b541})=>{const _0x23c817=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x11b541);_0x23c817&&_0x23c817[_0x8bed('0x17')]&&0x1===_0x23c817[_0x8bed('0x17')][_0x8bed('0xeb')]&&this[_0x8bed('0x60')](_0x11b541,{'hasComments':!0x0});},{'priority':_0x8bed('0xed')}),this[_0x8bed('0x94')](_0x4bb869,_0x8bed('0xb1'),(_0x1ba089,{threadId:_0x3314bb})=>{const _0x325f59=this[_0x8bed('0x82')]['get'](_0x3314bb);_0x325f59&&_0x325f59['commentThread']&&!_0x325f59[_0x8bed('0x17')][_0x8bed('0xeb')]&&this[_0x8bed('0x60')](_0x3314bb,{'hasComments':!0x1});},{'priority':'low'});}set[_0x8bed('0x3f')](_0x1aabe7){if(this['_adapter'])throw new _0x210547(_0x8bed('0x108'),this);this[_0x8bed('0xa7')]=_0x1aabe7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xa32523=!0x1,toJSON:_0x519e41=!0x1}={}){const _0x5e5f7b=[];for(const _0x165d87 of this[_0x8bed('0x82')][_0x8bed('0x77')]())_0xa32523&&!_0x165d87[_0x8bed('0xcf')]||_0x5e5f7b['push'](_0x165d87);return _0x519e41?_0x5e5f7b[_0x8bed('0x84')](_0x38785f=>_0x38785f[_0x8bed('0xc6')]()):_0x5e5f7b;}[_0x8bed('0x38')](_0x1b4367){const _0x573619=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x1b4367);if(!_0x573619)throw new _0x210547(_0x8bed('0x87'),this);return _0x573619;}[_0x8bed('0xe7')](_0x4f789b){return this[_0x8bed('0x82')][_0x8bed('0x124')](_0x4f789b);}[_0x8bed('0x9c')](_0x49ab44){const {id:_0x7d355a,authorId:_0x58906d}=_0x49ab44,[_0x35d26b,_0x598649]=_0x49ab44['type']['split'](':'),_0x450635=this['_suggestions'][_0x8bed('0x4d')](_0x7d355a)||this['_createSuggestion'](_0x35d26b,_0x598649,_0x7d355a,_0x58906d);switch(this['_addThreadToSuggestion'](_0x450635),this['_checkSuggestionCorrectness'](_0x450635,_0x35d26b,_0x598649||null,_0x58906d),_0x450635[_0x8bed('0x3')]=_0x49ab44['createdAt'],_0x49ab44[_0x8bed('0xa8')]&&(_0x450635[_0x8bed('0xa8')]=_0x49ab44[_0x8bed('0xa8')]),_0x49ab44[_0x8bed('0x25')]&&(_0x450635[_0x8bed('0x25')]=_0x49ab44[_0x8bed('0x25')]),this['_adapter']&&this[_0x8bed('0xa7')][_0x8bed('0xd9')]||(_0x450635[_0x8bed('0xe4')]=!0x0),this[_0x8bed('0x6')]['get'](_0x450635)){case _0x8bed('0xdd'):this[_0x8bed('0x6')][_0x8bed('0xec')](_0x450635,_0x8bed('0xc'));break;case'markerReady':_0x450635[_0x8bed('0xcf')]?(this['_suggestionState'][_0x8bed('0xec')](_0x450635,_0x8bed('0x10e')),this['fire'](_0x8bed('0x105'),_0x450635)):this[_0x8bed('0x6')][_0x8bed('0xec')](_0x450635,_0x8bed('0xce'));}return _0x450635;}[_0x8bed('0x88')](_0x2d8136){this[_0x8bed('0xb0')](()=>{this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x65')](()=>{for(const _0x29af92 of _0x2d8136[_0x8bed('0x81')]())_0x29af92['accept']();});});}[_0x8bed('0xba')](_0x39f03c){this[_0x8bed('0xb0')](()=>{this[_0x8bed('0x131')][_0x8bed('0x26')]['change'](()=>{for(const _0x1c86b6 of _0x39f03c[_0x8bed('0x81')]())_0x1c86b6['discard']();});});}['enableCommand'](_0x46923e,_0xf75c28){const _0x1cd662=this['editor']['commands'][_0x8bed('0x4d')](_0x46923e);if(!_0x1cd662)throw new _0x210547(_0x8bed('0x9d'),this,{'commandName':_0x46923e});this[_0x8bed('0xb7')]['add'](_0x1cd662),_0xf75c28&&_0x1cd662['on'](_0x8bed('0x11a'),(_0x296368,_0x4f41ed)=>{this[_0x8bed('0xa1')][_0x8bed('0x18')]&&(this[_0x8bed('0xd3')]||_0x4f41ed[_0x8bed('0xeb')]>0x0&&_0x4f41ed[_0x4f41ed[_0x8bed('0xeb')]-0x1]&&_0x4f41ed[_0x4f41ed[_0x8bed('0xeb')]-0x1][_0x8bed('0xb0')]||(_0xf75c28((..._0x4ed528)=>_0x1cd662[_0x8bed('0x11a')](..._0x4ed528,{'forceDefaultExecution':!0x0}),..._0x4f41ed),_0x296368['stop']()));},{'priority':_0x8bed('0xf')});}['forceDefaultExecution'](_0x42a6e9){let _0x36d504,_0x26eae0;const _0x212d63=this['_isForcedDefaultExecutionBlock'];this[_0x8bed('0xd3')]=!0x0;try{_0x36d504=_0x42a6e9();}catch(_0xddc9cd){_0x26eae0=_0xddc9cd;}return _0x212d63||(this[_0x8bed('0xd3')]=!0x1),_0x26eae0&&_0x210547[_0x8bed('0x56')](_0x26eae0,this),_0x36d504;}[_0x8bed('0xd8')](_0x267645,_0x1765cc=null,_0x3308f5={}){if(_0x267645[_0x8bed('0x30')])return null;const _0x342346=this['editor']['plugins'][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const {suggestion:_0x56233c,meta:_0x1b8f44}of this['_findSuggestions'](_0x267645,_0x8bed('0x1b')))if(_0x1b8f44[_0x8bed('0x32')]){if(!_0x1b8f44[_0x8bed('0x1e')])return _0x56233c;if(_0x1765cc==_0x56233c[_0x8bed('0x0')]){const _0x1cf5c9=_0x56233c[_0x8bed('0xd1')]();return _0x1cf5c9[_0x8bed('0xc8')][_0x8bed('0xcc')](_0x267645[_0x8bed('0xda')])?this[_0x8bed('0x10b')](_0x56233c,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x267645[_0x8bed('0xc8')],_0x1cf5c9['end'])):this[_0x8bed('0x10b')](_0x56233c,this['_model'][_0x8bed('0x79')](_0x1cf5c9['start'],_0x267645[_0x8bed('0xda')])),_0x56233c;}}const _0x4ea99f=_0x91d85(),_0x5526cf=_0x342346['id'],_0x5b043b=_0x1765cc?_0x8bed('0x2d')+_0x1765cc:_0x8bed('0x1b'),_0x34bbfe=this['_setSuggestionData']({'id':_0x4ea99f,'type':_0x5b043b,'createdAt':new Date(),'authorId':_0x5526cf,'attributes':_0x3308f5});return this[_0x8bed('0x24')](_0x5b043b,_0x4ea99f,_0x5526cf,_0x267645),_0x34bbfe;}[_0x8bed('0x106')](_0x2d7d90,_0x1d8350='multi',_0x2c7374={}){const _0x1fc514=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x3557d8=this['_suggestionFactory'][_0x8bed('0xe3')](_0x8bed('0x1b'),_0x1d8350,_0x8bed('0x12e'));for(const _0x1deefd of this[_0x8bed('0xbc')]())if(_0x1deefd['author']['id']==_0x1fc514['id']&&_0x8bed('0x1b')==_0x1deefd[_0x8bed('0xbb')]&&_0x1deefd[_0x8bed('0x0')]==_0x1d8350&&(_0x3557d8(_0x1deefd[_0x8bed('0x34')](),_0x2d7d90)||_0x3557d8(_0x2d7d90,_0x1deefd['getRanges']()))){for(const _0x5e6936 of _0x2d7d90)_0x1deefd[_0x8bed('0xbf')](_0x5e6936);return _0x1deefd;}for(const _0x5ad5f2 of _0x2d7d90)for(const {suggestion:_0x3aea45,meta:_0x329911}of this['_findSuggestions'](_0x5ad5f2,'insertion')){if(!_0x329911['isOwn'])continue;let _0x4f244b=!0x0;for(const _0x4d7cea of _0x3aea45[_0x8bed('0x34')]())for(const _0x5566ff of _0x2d7d90)if(!_0x4d7cea[_0x8bed('0x72')](_0x5566ff)){_0x4f244b=!0x1;break;}if(_0x4f244b)return _0x3aea45;}const _0x2a698f=_0x91d85(),_0x4c9cf8=_0x1fc514['id'],_0x4c3f24=_0x8bed('0x2d')+_0x1d8350,_0x3c13f5=this[_0x8bed('0x1')]({'id':_0x2a698f,'type':_0x4c3f24,'createdAt':new Date(),'authorId':_0x4c9cf8,'attributes':_0x2c7374});for(const _0x1c463b of _0x2d7d90)this[_0x8bed('0x24')](_0x4c3f24,_0x2a698f,_0x4c9cf8,_0x1c463b,_0x428f40[_0x8bed('0x12c')]());return _0x3c13f5;}[_0x8bed('0xb2')](_0x4bd4b1,_0x496c31,_0x1024f5=null,_0x17c508={}){if(_0x1024f5=_0x1024f5||St(_0x496c31),_0x4bd4b1[_0x8bed('0x30')])return;const _0x5115e8=this[_0x8bed('0x131')][_0x8bed('0x6d')]['get'](_0x8bed('0x37'))['me'],_0x2f6476=[];for(const {suggestion:_0x4bfde3,meta:_0x1bde9f}of this['_findSuggestions'](_0x4bd4b1,_0x8bed('0x1b')))_0x1bde9f['isOwn']&&!_0x1bde9f[_0x8bed('0x83')]&&_0x2f6476[_0x8bed('0xca')](..._0x4bfde3[_0x8bed('0x34')]());const _0x4c7637=function(_0x390d39,_0x18fb39){const _0x11ff17=[];for(const _0x385cdc of _0x18fb39){const _0x2ec533=_0x390d39[_0x8bed('0x12b')](_0x385cdc);_0x2ec533&&_0x11ff17[_0x8bed('0xca')](_0x2ec533);}return _0x11ff17;}(_0x4bd4b1,_0x2f6476),_0x554eb4=function(_0x588dba,_0x31c345){const _0x51b0f5=[_0x588dba];for(const _0x237e6f of _0x31c345){let _0x37571c=0x0;for(;_0x37571c<_0x51b0f5['length'];){const _0x81ced=_0x51b0f5[_0x37571c]['getDifference'](_0x237e6f);_0x51b0f5[_0x8bed('0x2e')](_0x37571c,0x1,..._0x81ced),_0x37571c+=_0x81ced[_0x8bed('0xeb')];}}return _0x51b0f5;}(_0x4bd4b1,_0x2f6476);_0x4c7637[_0x8bed('0xeb')]&&this[_0x8bed('0x4e')][_0x8bed('0x65')](()=>{for(const _0x15de5b of _0x4c7637){const _0x2665ea=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xf2'),_0x1024f5,_0x8bed('0x121'));this[_0x8bed('0xb0')](()=>_0x2665ea([_0x15de5b],_0x496c31,_0x17c508));}});for(const _0x284fff of _0x554eb4){let _0x583c8d=null,_0x24e352=_0x284fff[_0x8bed('0xc8')],_0x4cd269=_0x284fff[_0x8bed('0xda')];for(const {suggestion:_0x47d872,meta:_0x20102c}of this[_0x8bed('0x5c')](_0x284fff,_0x8bed('0xf2'))){if(!_0x20102c[_0x8bed('0x32')])continue;if(_0x47d872['subType']!=_0x1024f5)continue;const _0x51357d=_0x47d872[_0x8bed('0xd1')]();if(_0x51357d['containsRange'](_0x284fff,!0x0))return;_0x24e352=_0x24e352['isBefore'](_0x51357d['start'])?_0x24e352:_0x51357d['start'],_0x4cd269=_0x4cd269[_0x8bed('0x48')](_0x51357d[_0x8bed('0xda')])?_0x4cd269:_0x51357d[_0x8bed('0xda')],_0x583c8d?_0x51357d['start']['isBefore'](_0x583c8d[_0x8bed('0xd1')]()[_0x8bed('0xc8')])?(_0x583c8d[_0x8bed('0xf3')](),_0x583c8d=_0x47d872):_0x47d872[_0x8bed('0xf3')]():_0x583c8d=_0x47d872;}const _0x1cbfaa=this['_model'][_0x8bed('0x79')](_0x24e352,_0x4cd269);if(_0x583c8d)this['_setSuggestionRange'](_0x583c8d,_0x1cbfaa);else{const _0xaeda90=_0x91d85(),_0x3ae031=_0x5115e8['id'];this[_0x8bed('0x1')]({'id':_0xaeda90,'type':_0x8bed('0x66')+_0x1024f5,'data':_0x496c31,'createdAt':new Date(),'authorId':_0x3ae031,'attributes':_0x17c508}),this[_0x8bed('0x24')](_0x8bed('0x66')+_0x1024f5,_0xaeda90,_0x3ae031,_0x1cbfaa);}}}['markBlockFormat'](_0x115765,_0x240ba0,_0x245987=[],_0x3ffce7=null,_0x2a5a2b={}){_0x240ba0['formatGroupId']||(_0x240ba0[_0x8bed('0xab')]=_0x240ba0[_0x8bed('0xea')]),_0x240ba0['multipleBlocks']=_0x115765['is'](_0x8bed('0x96')),_0x3ffce7=_0x3ffce7||St(_0x240ba0);const _0x3bfcd1=_0x245987['map'](_0x46a0b1=>vt(_0x46a0b1,this['_model'])),_0x2783c1=_0x115765['is']('range')?_0x115765:vt(_0x115765,this[_0x8bed('0x4e')]);_0x3bfcd1[_0x8bed('0xca')](_0x2783c1);let _0x5ac88d=!0x0;for(const _0x59c70e of _0x3bfcd1)if(!this[_0x8bed('0x10')](_0x59c70e)){_0x5ac88d=!0x1;break;}if(_0x5ac88d){const _0x515875=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xa9'),_0x3ffce7,'accept');return void this['forceDefaultExecution'](()=>_0x515875([_0x2783c1],_0x240ba0,_0x2a5a2b));}let _0x35eecf=null,_0x277149=_0x2783c1['start'],_0x62c14=_0x2783c1['end'];for(const {suggestion:_0x16d65a,meta:_0x143d01}of this[_0x8bed('0x5c')](_0x2783c1,_0x8bed('0xa9'))){if(!_0x143d01[_0x8bed('0x32')]||_0x143d01[_0x8bed('0x1e')]||_0x143d01['containsRangeInObject']||_0x143d01['isInsideObject'])continue;if(_0x16d65a[_0x8bed('0xa8')][_0x8bed('0xab')]!=_0x240ba0[_0x8bed('0xab')])continue;const _0x2ae013=_0x16d65a[_0x8bed('0xd1')]();if(_0x16d65a[_0x8bed('0x0')]==_0x3ffce7){if(_0x2ae013[_0x8bed('0x72')](_0x2783c1,!0x0))return;_0x277149=_0x277149['isBefore'](_0x2ae013[_0x8bed('0xc8')])?_0x277149:_0x2ae013[_0x8bed('0xc8')],_0x62c14=_0x62c14[_0x8bed('0x48')](_0x2ae013[_0x8bed('0xda')])?_0x62c14:_0x2ae013[_0x8bed('0xda')],_0x35eecf?_0x2ae013['start']['isBefore'](_0x35eecf['getFirstRange']()['start'])?(_0x35eecf[_0x8bed('0xf3')](),_0x35eecf=_0x16d65a):_0x16d65a[_0x8bed('0xf3')]():_0x35eecf=_0x16d65a;}else{const _0x532671=_0x2783c1[_0x8bed('0x12b')](_0x2ae013);this[_0x8bed('0x119')](_0x16d65a,_0x532671);}}const _0x288a8e=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x3ea002=_0x91d85(),_0x361aa3=_0x288a8e['id'];_0x35eecf?this[_0x8bed('0x10b')](_0x35eecf,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x277149,_0x62c14)):(this[_0x8bed('0x1')]({'id':_0x3ea002,'type':_0x8bed('0xb4')+_0x3ffce7,'data':_0x240ba0,'createdAt':new Date(),'authorId':_0x361aa3,'attributes':_0x2a5a2b}),this['_addSuggestionMarker']('formatBlock:'+_0x3ffce7,_0x3ea002,_0x361aa3,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x277149,_0x62c14)));}['markMultiRangeBlockFormat'](_0x1694d3,_0x50d644,_0x535708=[],_0x13f7ec=null,_0xdf36ab={}){_0x50d644[_0x8bed('0xab')]||(_0x50d644[_0x8bed('0xab')]=_0x50d644[_0x8bed('0xea')]),_0x50d644[_0x8bed('0x64')]=!0x1,_0x13f7ec=_0x13f7ec||St(_0x50d644);const _0x4a61fc=_0x535708[_0x8bed('0x84')](_0x1c3749=>vt(_0x1c3749,this[_0x8bed('0x4e')])),_0x2eff0f=_0x1694d3[_0x8bed('0x84')](_0x2da0dd=>vt(_0x2da0dd,this[_0x8bed('0x4e')]));_0x4a61fc[_0x8bed('0xca')](..._0x2eff0f);let _0x3f0321=!0x0;for(const _0x3c471d of _0x4a61fc)if(!this['_rangeIsInLocalUserInsertion'](_0x3c471d)){_0x3f0321=!0x1;break;}if(_0x3f0321){const _0x1860f9=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xa9'),_0x13f7ec,'accept');return void this[_0x8bed('0xb0')](()=>_0x1860f9(_0x2eff0f,_0x50d644,_0xdf36ab));}const _0x369644=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const _0x314ddf of this['getSuggestions']()){if(_0x314ddf[_0x8bed('0xe8')]['id']!=_0x369644['id'])continue;if(_0x8bed('0xa9')!=_0x314ddf[_0x8bed('0xbb')]||_0x314ddf['data'][_0x8bed('0xab')]!=_0x50d644[_0x8bed('0xab')])continue;const _0x97804f=_0x314ddf[_0x8bed('0x0')]==_0x13f7ec;for(let _0x279bee=0x0;_0x279bee<_0x2eff0f[_0x8bed('0xeb')];_0x279bee++){const _0x595e75=_0x2eff0f[_0x279bee];for(const _0x458a5c of _0x314ddf[_0x8bed('0x128')]()){const _0x58f419=_0x458a5c['getRange']();if(_0x595e75['isEqual'](_0x58f419)){_0x97804f?(_0x2eff0f[_0x8bed('0x2e')](_0x279bee,0x1),_0x279bee--):_0x314ddf[_0x8bed('0x7c')](_0x458a5c['name']);break;}}}}if(0x0==_0x2eff0f[_0x8bed('0xeb')])return;const _0x23752c=this['_suggestionFactory'][_0x8bed('0xe3')]('formatBlock',_0x13f7ec,'join');for(const _0x191182 of this[_0x8bed('0xbc')]())if(_0x191182['author']['id']==_0x369644['id']&&_0x8bed('0xa9')==_0x191182['type']&&_0x191182[_0x8bed('0xa8')][_0x8bed('0xab')]==_0x50d644[_0x8bed('0xab')]&&_0x191182[_0x8bed('0x0')]==_0x13f7ec&&(_0x23752c(_0x191182[_0x8bed('0x34')](),_0x2eff0f)||_0x23752c(_0x2eff0f,_0x191182[_0x8bed('0x34')]()))){for(const _0x98dccc of _0x2eff0f)_0x191182[_0x8bed('0xbf')](_0x98dccc);return _0x191182;}const _0x5ab4f7=_0x91d85(),_0x58fcd7=_0x369644['id'],_0x1c6c44=_0x8bed('0xb4')+_0x13f7ec,_0x3c833f=this[_0x8bed('0x1')]({'id':_0x5ab4f7,'type':_0x1c6c44,'data':_0x50d644,'createdAt':new Date(),'authorId':_0x58fcd7,'attributes':_0xdf36ab});for(const _0x3de3d0 of _0x2eff0f)this[_0x8bed('0x24')](_0x1c6c44,_0x5ab4f7,_0x58fcd7,_0x3de3d0,_0x428f40['getMultiRangeId']());return _0x3c833f;}['markDeletion'](_0x44ef3e,_0x2c245f=null,_0x3f72a2={}){if(_0x44ef3e[_0x8bed('0x30')])return null;const _0x611d4=this[_0x8bed('0x131')][_0x8bed('0x6d')]['get'](_0x8bed('0x37'))['me'],_0xb80f98=new _0x533e76(_0x44ef3e[_0x8bed('0xc8')],_0x44ef3e[_0x8bed('0xda')]);for(const {suggestion:_0x49b068,meta:_0xb6276}of this[_0x8bed('0x5c')](_0xb80f98,_0x8bed('0x1b')))if(_0xb6276['isOwn']&&!_0xb6276[_0x8bed('0x1e')]){if(_0x49b068[_0x8bed('0x7d')]){const _0x4aaa86=_0x49b068[_0x8bed('0x34')]()[_0x8bed('0x39')](_0x4ee052=>_0x8bed('0x100')!=_0x4ee052[_0x8bed('0x10a')]['rootName']);_0x4aaa86[_0x8bed('0xc4')](_0xa0f6e3=>_0xb80f98[_0x8bed('0x72')](_0xa0f6e3,!0x0))&&_0x49b068['discard']();if(_0x4aaa86[_0x8bed('0xe5')](_0xa9829f=>_0xa9829f[_0x8bed('0x72')](_0xb80f98,!0x0))){const _0x147385=this['_suggestionFactory']['getSuggestionCallback'](_0x8bed('0x61'),_0x2c245f,'accept');return this[_0x8bed('0xb0')](()=>_0x147385([_0xb80f98],null,_0x3f72a2)),null;}}else{const _0x2ee5a7=_0xb80f98[_0x8bed('0x12b')](_0x49b068[_0x8bed('0xd1')]());_0x49b068[_0x8bed('0xc9')]([_0x2ee5a7],null,_0x3f72a2);}}if(_0xb80f98[_0x8bed('0x1f')](),_0xb80f98[_0x8bed('0x30')]||_0x8bed('0x100')==_0xb80f98[_0x8bed('0x10a')][_0x8bed('0xdc')])return null;let _0x31ee3a=null,_0x5caa1b=_0xb80f98[_0x8bed('0xc8')],_0x4dcfe4=_0xb80f98[_0x8bed('0xda')];for(const {suggestion:_0x28a1f5,meta:_0x1ad560}of this[_0x8bed('0x5c')](_0xb80f98,_0x8bed('0x61')))if(_0x1ad560[_0x8bed('0x32')]){if(_0x28a1f5['isMultiRange']){let _0x1a7702=!0x0;for(const _0x1a61f0 of _0x28a1f5['getRanges']()){if(_0x1a61f0['containsRange'](_0xb80f98,!0x0))return _0x28a1f5;_0xb80f98[_0x8bed('0x72')](_0x1a61f0)||(_0x1a7702=!0x1);}_0x1a7702&&_0x28a1f5['discard']();}else{const _0x4bcdc3=_0x28a1f5[_0x8bed('0xd1')]();if(_0x4bcdc3[_0x8bed('0x72')](_0xb80f98,!0x0))return _0x28a1f5;_0x5caa1b=_0x5caa1b[_0x8bed('0x57')](_0x4bcdc3[_0x8bed('0xc8')])?_0x5caa1b:_0x4bcdc3[_0x8bed('0xc8')],_0x4dcfe4=_0x4dcfe4[_0x8bed('0x48')](_0x4bcdc3['end'])?_0x4dcfe4:_0x4bcdc3[_0x8bed('0xda')],_0x31ee3a?_0x4bcdc3['start'][_0x8bed('0x57')](_0x31ee3a[_0x8bed('0xd1')]()['start'])?(_0x31ee3a[_0x8bed('0xf3')](),_0x31ee3a=_0x28a1f5):_0x28a1f5[_0x8bed('0xf3')]():_0x31ee3a=_0x28a1f5;}}if(_0x31ee3a)return this[_0x8bed('0x10b')](_0x31ee3a,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5caa1b,_0x4dcfe4)),_0x31ee3a;{const _0xd69e7f=_0x91d85(),_0x18f06b=this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5caa1b,_0x4dcfe4),_0x16eada=_0x611d4['id'],_0x5b99e4=_0x2c245f?_0x8bed('0x68')+_0x2c245f:_0x8bed('0x61'),_0x4aa9ea=this['_setSuggestionData']({'id':_0xd69e7f,'type':_0x5b99e4,'createdAt':new Date(),'authorId':_0x16eada,'attributes':_0x3f72a2});return this[_0x8bed('0x24')](_0x5b99e4,_0xd69e7f,_0x16eada,_0x18f06b),_0x4aa9ea;}}['markMultiRangeDeletion'](_0xaaada4,_0x1b4bb3=_0x8bed('0x95'),_0x5a84dc={}){const _0x30dfea=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x212c87=_0xaaada4['map'](_0xb3c975=>new _0x533e76(_0xb3c975[_0x8bed('0xc8')],_0xb3c975['end'])),_0x367fdf=new Set();for(const _0x4ae54f of _0x212c87)for(const {suggestion:_0x4807cb,meta:_0x4f5221}of this[_0x8bed('0x5c')](_0x4ae54f,_0x8bed('0x1b')))_0x4f5221[_0x8bed('0x32')]&&!_0x4f5221[_0x8bed('0x1e')]&&_0x367fdf[_0x8bed('0x9a')](_0x4807cb);for(const _0x1a3764 of _0x367fdf)if(_0x1a3764['isMultiRange']){const _0x434949=_0x1a3764[_0x8bed('0x34')]();(!_0x1a3764[_0x8bed('0x25')]||!_0x1a3764[_0x8bed('0x25')][_0x8bed('0xcd')])&&(_0x434949[_0x8bed('0xc4')](_0x16497e=>_0x212c87[_0x8bed('0xe5')](_0x520a23=>_0x520a23[_0x8bed('0x72')](_0x16497e,!0x0)))&&_0x1a3764['discard']());if(_0x212c87['every'](_0x4373cd=>_0x434949[_0x8bed('0xe5')](_0x420c=>_0x420c[_0x8bed('0x72')](_0x4373cd,!0x0)))){const _0x318935=this[_0x8bed('0xf5')][_0x8bed('0xe3')]('deletion',_0x1b4bb3,_0x8bed('0x121'));return this['forceDefaultExecution'](()=>_0x318935(_0xaaada4,null,_0x5a84dc)),null;}}else{const _0x3bf636=_0x1a3764['getFirstRange']();_0x212c87[_0x8bed('0xe5')](_0xfefb58=>_0xfefb58[_0x8bed('0x72')](_0x3bf636,!0x0))&&_0x1a3764[_0x8bed('0x44')]();if(_0x212c87[_0x8bed('0xc4')](_0x36fa03=>_0x3bf636[_0x8bed('0x72')](_0x36fa03,!0x0))){const _0x4739a9=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0x61'),_0x1b4bb3,_0x8bed('0x121'));return this[_0x8bed('0xb0')](()=>_0x4739a9(_0x212c87,null,_0x5a84dc)),null;}}const _0x4482eb=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0x61'),_0x1b4bb3,_0x8bed('0x12e'));let _0x177095=null;for(const _0xdb21bd of this[_0x8bed('0xbc')]())if(_0xdb21bd[_0x8bed('0xe8')]['id']==_0x30dfea['id']&&_0xdb21bd[_0x8bed('0xcf')]&&'deletion'==_0xdb21bd[_0x8bed('0xbb')]&&_0xdb21bd[_0x8bed('0x0')]==_0x1b4bb3&&(_0x4482eb(_0xdb21bd[_0x8bed('0x34')](),_0x212c87)||_0x4482eb(_0x212c87,_0xdb21bd[_0x8bed('0x34')]()))){if(_0x177095){if(_0xdb21bd[_0x8bed('0x17')]&&_0xdb21bd[_0x8bed('0x17')]['length'])continue;for(const _0x1fb40a of _0xdb21bd[_0x8bed('0x34')]())_0x177095[_0x8bed('0x115')](_0x1fb40a)||_0x177095['addRange'](_0x1fb40a);_0xdb21bd[_0x8bed('0xf3')]();}else{_0x177095=_0xdb21bd;for(const _0x12c199 of _0x212c87)_0xdb21bd['isIntersectingWithRange'](_0x12c199)||_0xdb21bd[_0x8bed('0xbf')](_0x12c199);}}if(_0x177095)return _0x177095;_0x367fdf[_0x8bed('0x76')]();for(const _0x50a234 of _0x212c87)for(const {suggestion:_0x5c74e8,meta:_0x2f68ee}of this[_0x8bed('0x5c')](_0x50a234,_0x8bed('0x61')))_0x2f68ee['isOwn']&&_0x367fdf[_0x8bed('0x9a')](_0x5c74e8);for(const _0x4810c2 of _0x367fdf){const _0x5dee3e=_0x4810c2[_0x8bed('0x34')]();if(!_0x5a84dc||!_0x5a84dc['skipNestingCheck']){if(_0x212c87[_0x8bed('0xc4')](_0x517157=>_0x5dee3e[_0x8bed('0xe5')](_0x3a39ba=>_0x3a39ba[_0x8bed('0x72')](_0x517157,!0x0))))return _0x4810c2;}(!_0x4810c2[_0x8bed('0x25')]||!_0x4810c2[_0x8bed('0x25')][_0x8bed('0xcd')])&&(_0x5dee3e['every'](_0x44229a=>_0x212c87[_0x8bed('0xe5')](_0x231cde=>_0x231cde[_0x8bed('0x72')](_0x44229a,!0x0)))&&_0x4810c2['discard']());}const _0x4ec783=_0x91d85(),_0x326f7c=_0x30dfea['id'],_0xaec05c=_0x8bed('0x68')+_0x1b4bb3,_0x182042=this[_0x8bed('0x1')]({'id':_0x4ec783,'type':_0xaec05c,'createdAt':new Date(),'authorId':_0x326f7c,'attributes':_0x5a84dc});for(const _0x36327a of _0x212c87)_0x36327a[_0x8bed('0x1f')](),_0x36327a[_0x8bed('0x30')]||_0x8bed('0x100')==_0x36327a[_0x8bed('0x10a')][_0x8bed('0xdc')]||this['_addSuggestionMarker'](_0xaec05c,_0x4ec783,_0x326f7c,_0x36327a,_0x428f40[_0x8bed('0x12c')]());return _0x182042;}[_0x8bed('0x10b')](_0x4bc6b8,_0x154160){const _0x47b37d=_0x4bc6b8[_0x8bed('0xd4')]();this['_model']['change'](_0x2bcfab=>{_0x2bcfab[_0x8bed('0x9')](_0x47b37d,{'range':_0x154160});});}[_0x8bed('0x116')](_0x26c7cd){const _0x1b3a76=_0x26c7cd['id'],_0x1f9cce=this[_0x8bed('0x131')][_0x8bed('0x8f')][_0x8bed('0x4d')](_0x8bed('0x52'));this[_0x8bed('0x31')][_0x8bed('0x123')](_0x1b3a76)||this[_0x8bed('0x31')][_0x8bed('0x120')]({'channelId':_0x1f9cce,'threadId':_0x1b3a76});const _0x21a0df=this[_0x8bed('0x31')][_0x8bed('0xc1')](_0x1b3a76);_0x21a0df[_0x8bed('0x9e')](_0x8bed('0x8e')),_0x21a0df['isRemovable']=!0x1,_0x26c7cd['commentThread']=_0x21a0df;}[_0x8bed('0xbe')](_0x1dc3d6,_0x24ecd5,_0xa2dd84,_0x1da732){if(_0x1dc3d6[_0x8bed('0xbb')]!=_0x24ecd5||_0x1dc3d6[_0x8bed('0x0')]!=_0xa2dd84||_0x1dc3d6['author']['id']!=_0x1da732)throw this['editor'][_0x8bed('0xd7')]('track-changes-suggestion-data-mismatch'),new _0x210547(_0x8bed('0xdb'),this);}['_cutOutSuggestionMarker'](_0x4a6618,_0x399f09){const _0x50f564=_0x4a6618['getFirstRange']();if(_0x399f09['isEqual'](_0x50f564))_0x4a6618[_0x8bed('0xf3')]();else{if(_0x50f564[_0x8bed('0x72')](_0x399f09)){const _0x490ac3=this['_model'][_0x8bed('0x114')](_0x399f09['start'][_0x8bed('0x27')],'end');this['_setSuggestionRange'](_0x4a6618,this[_0x8bed('0x4e')]['createRange'](_0x50f564[_0x8bed('0xc8')],_0x490ac3));const _0x306a4a=_0x91d85(),_0x1c8b16=_0x4a6618[_0x8bed('0xe8')]['id'],_0x5f0ec6=_0x4a6618[_0x8bed('0xbb')]+':'+_0x4a6618[_0x8bed('0x0')];this['_setSuggestionData']({'id':_0x306a4a,'type':_0x5f0ec6,'createdAt':new Date(),'authorId':_0x1c8b16,'data':_0x4a6618[_0x8bed('0xa8')],'attributes':_0x4a6618[_0x8bed('0x25')]});const _0x2a0791=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xda')]['parent'],'after'),_0xa18d92=this['_model'][_0x8bed('0x79')](_0x2a0791,_0x50f564[_0x8bed('0xda')]);this['_addSuggestionMarker'](_0x5f0ec6,_0x306a4a,_0x1c8b16,_0xa18d92);}else{if(_0x50f564[_0x8bed('0x67')](_0x399f09['start'])){const _0x79e34c=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xc8')]['nodeBefore'],_0x8bed('0xda'));this['_setSuggestionRange'](_0x4a6618,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x50f564[_0x8bed('0xc8')],_0x79e34c));}else{const _0x3c63d3=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xda')][_0x8bed('0x1c')],_0x8bed('0x5a'));this[_0x8bed('0x10b')](_0x4a6618,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x3c63d3,_0x50f564['end']));}}}}[_0x8bed('0x10')](_0x4e08a7){for(const {suggestion:_0x37a4f1,meta:_0x4f2740}of this['_findSuggestions'](_0x4e08a7,_0x8bed('0x1b'))){if(!_0x4f2740[_0x8bed('0x32')])continue;const _0x338f35=_0x37a4f1[_0x8bed('0x34')]();for(const _0x1e1674 of _0x338f35)if(!_0x4e08a7[_0x8bed('0xe6')](_0x1e1674)[_0x8bed('0xeb')])return!0x0;}return!0x1;}[_0x8bed('0x2f')](_0xeb9c95){const _0x39e9f5=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')]('Users')[_0x8bed('0x103')](_0xeb9c95);if(!_0x39e9f5)throw new _0x210547('track-changes-user-not-found',this);return _0x39e9f5;}['_createSuggestion'](_0x4caa79,_0x284ba6,_0x4615da,_0x3d7866){const _0x16ce90=this[_0x8bed('0x2f')](_0x3d7866),_0x4fcb6a=this['_suggestionFactory']['buildSuggestion'](_0x4caa79,_0x284ba6,_0x4615da,_0x16ce90,_0x101ae2=>this[_0x8bed('0x60')](_0x4615da,{'attributes':_0x101ae2}));return this[_0x8bed('0x94')](_0x4fcb6a,_0x8bed('0x121'),()=>{this[_0x8bed('0x60')](_0x4615da,{'state':_0x8bed('0xc2')});},{'priority':_0x8bed('0xf')}),this[_0x8bed('0x94')](_0x4fcb6a,_0x8bed('0x44'),()=>{this[_0x8bed('0x60')](_0x4615da,{'state':_0x8bed('0x11b')});},{'priority':'high'}),this[_0x8bed('0x82')][_0x8bed('0xec')](_0x4615da,_0x4fcb6a),this[_0x8bed('0x6')][_0x8bed('0xec')](_0x4fcb6a,_0x8bed('0xdd')),_0x4fcb6a;}[_0x8bed('0x8a')](_0x7dce81){const _0x99dbda=_0x7dce81[_0x8bed('0xe')](':');return{'group':_0x99dbda[0x0],'type':_0x99dbda[0x1],'subType':_0x99dbda[_0x8bed('0xeb')]>=0x5?_0x99dbda[0x2]:null,'id':_0x99dbda['length']<0x5?_0x99dbda[0x2]:_0x99dbda[0x3],'authorId':_0x99dbda[_0x8bed('0xeb')]<0x5?_0x99dbda[0x3]:_0x99dbda[0x4],'markerCount':0x6==_0x99dbda[_0x8bed('0xeb')]?_0x99dbda[0x5]:null};}[_0x8bed('0x122')](_0x34f29d,_0x36daa9,_0x156333){const _0x4770ef=_0x34f29d[_0x8bed('0xd1')](),_0x5a2c59=_0x4770ef['start'],_0x7b7bd7=_0x4770ef[_0x8bed('0xda')];this['_setSuggestionRange'](_0x34f29d,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5a2c59,_0x36daa9));const _0x10d867=_0x91d85(),_0x3060b2=_0x34f29d[_0x8bed('0xe8')]['id'],_0xa30eda=_0x34f29d[_0x8bed('0xbb')]+(_0x34f29d[_0x8bed('0x0')]?':'+_0x34f29d['subType']:'');this[_0x8bed('0x1')]({'id':_0x10d867,'type':_0xa30eda,'createdAt':new Date(),'authorId':_0x3060b2,'originalSuggestionId':_0x34f29d['id'],'data':_0x34f29d[_0x8bed('0xa8')]}),'formatBlock'==_0x34f29d[_0x8bed('0xbb')]&&(_0x156333=this['_model'][_0x8bed('0x7b')](_0x156333[_0x8bed('0x1c')])),this[_0x8bed('0x24')](_0xa30eda,_0x10d867,_0x3060b2,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x156333,_0x7b7bd7));}[_0x8bed('0x5c')](_0x249cab,_0x9f50f1=null){const _0x2fd260=[],_0x1152f7=this[_0x8bed('0x4e')][_0x8bed('0x102')],_0xfe57f8=this['editor'][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const _0x3c2479 of this['getSuggestions']())if(_0x3c2479[_0x8bed('0xcf')]&&(!_0x9f50f1||_0x3c2479['type']==_0x9f50f1))for(const _0xfdbc52 of _0x3c2479['getRanges']()){const _0x39e202=_0x249cab[_0x8bed('0xc8')]['isEqual'](_0xfdbc52['end'])||_0x249cab[_0x8bed('0xda')]['isEqual'](_0xfdbc52[_0x8bed('0xc8')]);if(_0x39e202||_0x249cab[_0x8bed('0x12b')](_0xfdbc52)){const _0x3dfe1d=_0x249cab[_0x8bed('0x72')](_0xfdbc52)&&wt(_0x1152f7,_0xfdbc52[_0x8bed('0xc8')],_0x249cab),_0x330fb4=_0xfdbc52[_0x8bed('0x72')](_0x249cab)&&wt(_0x1152f7,_0x249cab[_0x8bed('0xc8')],_0xfdbc52);_0x2fd260[_0x8bed('0xca')]({'suggestion':_0x3c2479,'meta':{'isOwn':_0xfe57f8==_0x3c2479[_0x8bed('0xe8')],'isNextTo':_0x39e202,'isInsideObject':_0x3dfe1d,'containsRangeInObject':_0x330fb4}});break;}}return _0x2fd260;}['_addSuggestionMarker'](_0x451602,_0x56db1a,_0x548015,_0x3861ae,_0x49d8f8=null){this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x43613f=>{let _0x5853db=_0x8bed('0x89')+_0x451602+':'+_0x56db1a+':'+_0x548015;_0x49d8f8&&(_0x5853db=_0x5853db+':'+_0x49d8f8),_0x43613f[_0x8bed('0xe1')](_0x5853db,{'range':_0x3861ae,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x282458){const _0x52d8be=_0x282458['previous'],_0x4c8fbb=_0x282458[_0x8bed('0xb5')];_0x282458['previous']=null,null!=_0x52d8be&&(_0x52d8be[_0x8bed('0xb5')]=null),_0x282458[_0x8bed('0xb5')]=null,null!=_0x4c8fbb&&(_0x4c8fbb[_0x8bed('0x14')]=null),_0x8bed('0x10e')==this['_suggestionState']['get'](_0x282458)&&(this['_suggestionState'][_0x8bed('0xec')](_0x282458,_0x8bed('0xce')),this['fire'](_0x8bed('0x4b'),_0x282458,_0x52d8be,_0x4c8fbb));}[_0x8bed('0x1')](_0x524e62){const _0x439537=_0x524e62['id'],_0x16c396=this[_0x8bed('0x9c')](_0x524e62);if(this[_0x8bed('0xa7')]&&this[_0x8bed('0xa7')][_0x8bed('0xd9')]){const _0x27b100=this[_0x8bed('0x131')]['plugins'][_0x8bed('0x4d')](_0x8bed('0x125')),_0x28d869=_0x16c396[_0x8bed('0xb3')],_0x3c39d6=_0x16c396[_0x8bed('0x0')]?_0x16c396['type']+':'+_0x16c396[_0x8bed('0x0')]:_0x16c396['type'],_0x499258=this[_0x8bed('0x131')]['locale'],_0x54eed8=_0x27b100['add'](_0xf0b42e(_0x499258,_0x8bed('0x90'))),_0x2e61d4={'id':_0x439537,'type':_0x3c39d6,'hasComments':_0x28d869,'data':_0x524e62[_0x8bed('0xa8')]||null,'originalSuggestionId':_0x524e62[_0x8bed('0x92')]||null,'attributes':_0x16c396[_0x8bed('0x25')]};this[_0x8bed('0xa7')][_0x8bed('0xd9')](_0x2e61d4)[_0x8bed('0xb6')](_0xdb5c65=>{_0x16c396['_saved']=!0x0,_0x27b100[_0x8bed('0xf8')](_0x54eed8),_0xdb5c65&&_0xdb5c65[_0x8bed('0x3')]&&(this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x439537)['createdAt']=_0xdb5c65[_0x8bed('0x3')]);})['catch'](_0x25a9dc=>{throw _0x5aa693(_0x8bed('0x104')),this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x8d')]({'isUndoable':!0x1},()=>{_0x16c396[_0x8bed('0x44')]();}),_0x16c396[_0x8bed('0x8c')](),this[_0x8bed('0x82')][_0x8bed('0x4c')](_0x16c396['id']),this[_0x8bed('0x6')][_0x8bed('0x4c')](_0x16c396),_0x25a9dc;});}return _0x16c396;}[_0x8bed('0x60')](_0x15425a,_0x2a6eaa){const _0xfff615=this['editor']['plugins'][_0x8bed('0x4d')](_0x8bed('0x125')),_0x549839=this[_0x8bed('0x82')]['get'](_0x15425a);if(this[_0x8bed('0xa7')]&&this[_0x8bed('0xa7')]['updateSuggestion']){if(_0x549839[_0x8bed('0xe4')]){const _0x1e1854=_0xfff615['add'](_0xf0b42e(this[_0x8bed('0x131')][_0x8bed('0x12d')],'PENDING_ACTION_SUGGESTION'));this[_0x8bed('0xa7')][_0x8bed('0x12a')](_0x15425a,_0x2a6eaa)['then'](()=>{_0xfff615['remove'](_0x1e1854);});}else _0x549839['on'](_0x8bed('0xac'),()=>{this[_0x8bed('0x60')](_0x15425a,_0x2a6eaa);});}}['_getSuggestionData'](_0x5d17c1){if(!this[_0x8bed('0xa7')]||!this[_0x8bed('0xa7')][_0x8bed('0x38')])throw new _0x210547(_0x8bed('0xc0'),this);return this[_0x8bed('0xa7')][_0x8bed('0x38')](_0x5d17c1);}[_0x8bed('0x3a')](_0x56d1c6){const {id:_0x27c6e9,type:_0x506f1f,subType:_0xdcfb4b,authorId:_0x33b237}=this[_0x8bed('0x8a')](_0x56d1c6),_0x4b5050=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x27c6e9)||this['_createSuggestion'](_0x506f1f,_0xdcfb4b,_0x27c6e9,_0x33b237);switch(this[_0x8bed('0xbe')](_0x4b5050,_0x506f1f,_0xdcfb4b,_0x33b237),this[_0x8bed('0x6')][_0x8bed('0x4d')](_0x4b5050)){case _0x8bed('0xdd'):this[_0x8bed('0xf7')](_0x27c6e9)[_0x8bed('0xb6')](_0x1b06b9=>{let _0x412896=Promise['resolve']();_0x1b06b9['hasComments']&&(_0x412896=this[_0x8bed('0x31')][_0x8bed('0xf9')]({'channelId':this[_0x8bed('0x131')][_0x8bed('0x8f')][_0x8bed('0x4d')]('collaboration.channelId'),'threadId':_0x27c6e9})),_0x412896[_0x8bed('0xb6')](()=>{this[_0x8bed('0x9c')](_0x1b06b9)[_0x8bed('0xe4')]=!0x0;});}),this['_suggestionState'][_0x8bed('0xec')](_0x4b5050,_0x8bed('0xfc'));break;case'removed':this[_0x8bed('0x60')](_0x27c6e9,{'state':_0x8bed('0xae')});case'dataReady':this[_0x8bed('0x6')][_0x8bed('0xec')](_0x4b5050,'ready'),this[_0x8bed('0x16')](_0x8bed('0x105'),_0x4b5050);break;case'ready':this[_0x8bed('0x16')](_0x8bed('0x55'),_0x4b5050);}_0x4b5050['addMarkerName'](_0x56d1c6),this[_0x8bed('0x42')](_0x4b5050);}[_0x8bed('0x42')](_0xaf86ef){if(_0xaf86ef[_0x8bed('0x7d')])return;let _0x4dd9e8=!0x0,_0x146c31=!0x0;for(const _0x501270 of this[_0x8bed('0xbc')]()){if(_0x501270['isMultiRange'])continue;if(_0x501270==_0xaf86ef||!_0x501270[_0x8bed('0xcf')])continue;if(_0x501270['author']['id']!=_0xaf86ef[_0x8bed('0xe8')]['id'])continue;const _0x11334f=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0xaf86ef[_0x8bed('0xbb')],_0xaf86ef[_0x8bed('0x0')],_0x8bed('0xa6')),_0x34c5ef=this[_0x8bed('0xf5')]['getSuggestionCallback'](_0x501270[_0x8bed('0xbb')],_0x501270[_0x8bed('0x0')],'chain'),_0xeed1a6=_0x11334f(_0xaf86ef,_0x501270),_0x3d583f=_0x34c5ef(_0xaf86ef,_0x501270);_0xeed1a6&&_0x3d583f&&(_0xeed1a6[0x1][_0x8bed('0x17')]&&_0xeed1a6[0x1]['commentThread']['length']||(_0xeed1a6[0x0][_0x8bed('0xb5')]=_0xeed1a6[0x1],_0xeed1a6[0x1][_0x8bed('0x14')]=_0xeed1a6[0x0],_0xeed1a6[0x0]==_0xaf86ef?_0x146c31=!0x1:_0x4dd9e8=!0x1));}_0xaf86ef[_0x8bed('0x14')]&&_0x4dd9e8&&(_0xaf86ef[_0x8bed('0x14')][_0x8bed('0xb5')]=null,_0xaf86ef['previous']=null),_0xaf86ef[_0x8bed('0xb5')]&&_0x146c31&&(_0xaf86ef[_0x8bed('0xb5')][_0x8bed('0x14')]=null,_0xaf86ef[_0x8bed('0xb5')]=null);}[_0x8bed('0x53')](_0x172fed){for(const _0x1303ee of this[_0x8bed('0x82')][_0x8bed('0x77')]()){if(_0x1303ee==_0x172fed||!_0x1303ee[_0x8bed('0xcf')])continue;if(_0x1303ee[_0x8bed('0xbb')]!=_0x172fed[_0x8bed('0xbb')]||_0x1303ee[_0x8bed('0xe8')]['id']!=_0x172fed[_0x8bed('0xe8')]['id']||_0x1303ee[_0x8bed('0x0')]!=_0x172fed[_0x8bed('0x0')])continue;const _0x599c7b=this['_suggestionFactory'][_0x8bed('0xe3')](_0x172fed['type'],_0x172fed[_0x8bed('0x0')],_0x8bed('0x12e'));if(_0x599c7b(_0x1303ee['getRanges'](),_0x172fed[_0x8bed('0x34')]())){if(_0x172fed['commentThread']&&_0x172fed[_0x8bed('0x17')]['length'])continue;return this['_joinSuggestions'](_0x1303ee,_0x172fed),!0x0;}if(_0x599c7b(_0x172fed[_0x8bed('0x34')](),_0x1303ee[_0x8bed('0x34')]())){if(_0x1303ee[_0x8bed('0x17')]&&_0x1303ee['commentThread']['length'])continue;return this[_0x8bed('0x98')](_0x172fed,_0x1303ee),!0x0;}}return!0x1;}[_0x8bed('0x98')](_0x3b737a,_0xf3a7a0){if(_0x3b737a[_0x8bed('0x7d')])for(const _0x11263c of _0xf3a7a0['getRanges']())_0x3b737a[_0x8bed('0xbf')](_0x11263c);else{const _0x2cdee9=_0xf3a7a0[_0x8bed('0xd1')]()['end'];this[_0x8bed('0x10b')](_0x3b737a,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x3b737a[_0x8bed('0xd1')]()['start'],_0x2cdee9));}_0xf3a7a0[_0x8bed('0xf3')]();}}_0xf3e8ef(d,_0x199b9c);class kt{constructor(_0xe0f5b3){this[_0x8bed('0x21')]=_0xe0f5b3,this[_0x8bed('0x4e')]=_0xe0f5b3['model'],this[_0x8bed('0x12f')]=new Map(),this[_0x8bed('0x33')]=new Map(),this['_registerDefaultCallbacks']();}[_0x8bed('0xd2')](_0x44ef0d,_0x315516,_0x260aca,_0x4d9ed7,_0x329ef9){return new _0x428f40(this[_0x8bed('0x4e')],{'type':_0x44ef0d,'subType':_0x315516,'id':_0x260aca,'author':_0x4d9ed7,'onAttributesChange':_0x329ef9,'onAccept':(..._0xee789a)=>this[_0x8bed('0xe3')](_0x44ef0d,_0x315516,'accept')(..._0xee789a),'onDiscard':(..._0x24fcf5)=>this[_0x8bed('0xe3')](_0x44ef0d,_0x315516,_0x8bed('0x44'))(..._0x24fcf5)});}[_0x8bed('0x20')](_0x692feb,_0x366915,_0x3e949e,_0x1cf14a){const _0x1f16d7=_0x692feb+':'+_0x366915+':'+_0x3e949e;this['_customCallbacks'][_0x8bed('0xec')](_0x1f16d7,_0x1cf14a);}[_0x8bed('0xe3')](_0x1b1db6,_0x16668c,_0xe38cb0){const _0x3d7ffc=_0x1b1db6+':'+_0x16668c+':'+_0xe38cb0;return this[_0x8bed('0x12f')][_0x8bed('0x4d')](_0x3d7ffc)||this[_0x8bed('0x33')][_0x8bed('0x4d')](_0x1b1db6+':'+_0xe38cb0);}[_0x8bed('0x97')](){const _0x68ef13=()=>{},_0x3e1e95=_0x331747=>{_0x331747[_0x8bed('0x7e')]((_0x1cc5d9,_0x159e8e)=>_0x1cc5d9['start'][_0x8bed('0x57')](_0x159e8e['start'])?0x1:-0x1),this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x937a6c=>{for(const _0x82d1fd of _0x331747){let _0x5c462a;_0x5c462a=_0x82d1fd[_0x8bed('0xda')][_0x8bed('0x58')]&&_0x82d1fd[_0x8bed('0xda')][_0x8bed('0x1c')]==_0x82d1fd['start']['nodeAfter']?_0x937a6c[_0x8bed('0x70')](_0x82d1fd[_0x8bed('0xc8')][_0x8bed('0x86')],'on'):_0x937a6c[_0x8bed('0x70')](_0x82d1fd),this[_0x8bed('0x4e')][_0x8bed('0x99')](_0x5c462a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a11a9=(_0x10e3c5,_0x12c340)=>{this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x4b428b=>{const {commandName:_0x3520d3,commandParams:_0x4dea19=[]}=_0x12c340,_0xebf3a0=_0x10e3c5[0x0];if(_0x8bed('0x100')==_0xebf3a0[_0x8bed('0x10a')][_0x8bed('0xdc')])return;const _0x4840a2=Array['from'](this[_0x8bed('0x4e')][_0x8bed('0xde')][_0x8bed('0xfe')][_0x8bed('0x34')]())[_0x8bed('0x84')](_0x445d41=>_0x533e76[_0x8bed('0xaa')](_0x445d41));yt(_0xebf3a0)?_0x4b428b[_0x8bed('0x85')](this[_0x8bed('0x4e')][_0x8bed('0x79')](_0xebf3a0[_0x8bed('0xda')])):_0x4b428b['setSelection'](_0xebf3a0);for(const _0x1d0ed1 of this['_editor'][_0x8bed('0x10f')][_0x8bed('0x10f')]())_0x1d0ed1[_0x8bed('0x59')]();_0x4dea19['push']({'forceDefaultExecution':!0x0}),this[_0x8bed('0x21')][_0x8bed('0x11a')](_0x3520d3,..._0x4dea19);const _0x44b02a=_0x4840a2[_0x8bed('0x39')](_0x287fdb=>_0x8bed('0x100')!=_0x287fdb[_0x8bed('0x10a')][_0x8bed('0xdc')]);_0x44b02a[_0x8bed('0xeb')]>0x0&&_0x4b428b[_0x8bed('0x85')](_0x44b02a);for(const _0x16664f of _0x4840a2)_0x16664f['detach']();});},_0x5ac0b5=(_0x247a29,_0x5b58c6)=>0x1==_0x247a29[_0x8bed('0xeb')]&&0x1==_0x5b58c6['length']&&_0x247a29[0x0][_0x8bed('0xda')][_0x8bed('0xcc')](_0x5b58c6[0x0]['start']),_0xcca1c9=(_0x3823d3,_0x653eb2)=>Dt(_0x3823d3,_0x653eb2,this[_0x8bed('0x4e')])?[_0x3823d3,_0x653eb2]:Dt(_0x653eb2,_0x3823d3,this[_0x8bed('0x4e')])?[_0x653eb2,_0x3823d3]:null;this['_defaultCallbacks'][_0x8bed('0xec')]('insertion:accept',_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0xa'),_0x3e1e95),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x107'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x43'),_0xcca1c9),this[_0x8bed('0x33')]['set'](_0x8bed('0xf0'),_0x3e1e95),this[_0x8bed('0x33')]['set'](_0x8bed('0xff'),_0x68ef13),this['_defaultCallbacks']['set']('deletion:join',_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x6f'),_0xcca1c9),this['_defaultCallbacks'][_0x8bed('0xec')](_0x8bed('0x11'),_0x1a11a9),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x6c'),_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x74'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x80'),_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')]('formatBlock:accept',_0x1a11a9),this['_defaultCallbacks'][_0x8bed('0xec')]('formatBlock:discard',_0x68ef13),this['_defaultCallbacks'][_0x8bed('0xec')](_0x8bed('0xaf'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')]('formatBlock:chain',_0x68ef13);}}function wt(_0x3f4adc,_0x3cf058,_0x1c81c6){for(const _0x23903f of _0x3cf058[_0x8bed('0x1c')][_0x8bed('0x54')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x23903f[_0x8bed('0x10a')]==_0x23903f)return!0x1;if(!_0x1c81c6['containsItem'](_0x23903f))return!0x1;if(_0x3f4adc[_0x8bed('0x3b')](_0x23903f)||_0x3f4adc['isLimit'](_0x23903f))return!0x0;}}function yt(_0x397269){return _0x397269[_0x8bed('0xda')][_0x8bed('0x1c')]==_0x397269[_0x8bed('0xc8')][_0x8bed('0x86')]&&_0x397269[_0x8bed('0xda')][_0x8bed('0x10c')];}function bt(_0x21ed2d,_0x319a8b,_0x263ff7,_0x1f6314){const _0x548a86=_0x292364=>!_0x292364[_0x8bed('0xad')]['is'](_0x8bed('0x129'))&&!_0x1f6314[_0x8bed('0x3b')](_0x292364[_0x8bed('0xad')]),_0x3742b3=_0x21ed2d[_0x8bed('0xc8')]['getLastMatchingPosition'](_0x548a86),_0x49bdb2=_0x21ed2d[_0x8bed('0xda')][_0x8bed('0xfb')](_0x548a86,{'direction':_0x8bed('0xc3')});return(!_0x21ed2d[_0x8bed('0xc8')]['isEqual'](_0x3742b3)||!_0x21ed2d['end']['isEqual'](_0x49bdb2))&&(_0x3742b3['isBefore'](_0x49bdb2)?_0x263ff7[_0x8bed('0x9')](_0x319a8b,{'range':_0x263ff7[_0x8bed('0x79')](_0x3742b3,_0x49bdb2)}):_0x263ff7[_0x8bed('0x7c')](_0x319a8b),!0x0);}function St(_0x234ecc){return _0x36dc3a(_0x234ecc);}function It(_0x2a322f){const _0x223460=_0x2a322f[_0x8bed('0xc8')][_0x8bed('0x86')];return _0x223460&&_0x223460['is']('element');}function vt(_0xee5a68,_0xf56a4a){const _0x455eb8=_0xf56a4a[_0x8bed('0x102')][_0x8bed('0x3b')](_0xee5a68)||_0xf56a4a[_0x8bed('0x102')]['isSelectable'](_0xee5a68);return _0xf56a4a['createRange'](_0xf56a4a[_0x8bed('0x114')](_0xee5a68,_0x8bed('0xd')),_0x455eb8?_0xf56a4a[_0x8bed('0x22')](_0xee5a68):_0xf56a4a[_0x8bed('0x114')](_0xee5a68,_0x8bed('0xda')));}function Dt(_0x2a4c3f,_0x35543d,_0x479c2a){const _0x3a61b5=_0x2a4c3f[_0x8bed('0xd1')](),_0x34f54f=_0x35543d[_0x8bed('0xd1')]();if(_0x3a61b5[_0x8bed('0xda')][_0x8bed('0xcc')](_0x34f54f[_0x8bed('0xc8')]))return!0x0;if(_0x2a4c3f[_0x8bed('0xbb')]!=_0x35543d['type'])return!0x1;if(!_0x3a61b5['end']['isTouching'](_0x34f54f[_0x8bed('0xc8')]))return!0x1;const _0x35b530=_0x479c2a['createRange'](_0x3a61b5[_0x8bed('0xda')],_0x34f54f[_0x8bed('0xc8')])['getWalker']();for(const _0x1da44a of _0x35b530)if([_0x8bed('0x2a'),_0x8bed('0x6e')][_0x8bed('0xa4')](_0x1da44a[_0x8bed('0xbb')])&&_0x479c2a['schema'][_0x8bed('0x109')](_0x1da44a[_0x8bed('0xad')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1cda=['Discard\x20all\x20suggestions','execute','getSuggestion','button','PENDING_ACTION_SUGGESTION','separator','arrowView','comments.maxCommentCharsWhenCollapsed','listenTo','clear','_initializeController','commands','isMultiRange','locale','getFirstMarker','PendingActions','set','isDirty','filter','lowest','type','_disableComments','stopListening','suggestionUnloaded','getByInnerView','add','createAnnotation','map','acceptAllSuggestions','toMany','TrackChangesEditing','TrackChangesUI','trackChanges.disableComments','unbind','cancel','getRanges','refreshSelectedViews','getDescriptions','discardSelectedSuggestions','focus','values','model','editor','keys','Track\x20changes','_viewToController','CommentsRepository','createAnnotationView','getContainedElement','config','toViewElement','change:activeAnnotations','_debouncedHandlers','acceptSelectedSuggestions','acceptButton','init','bind','getMarkerNames','previous','define','EditorAnnotations','plugins','suggestion-','getAllAdjacentSuggestions','trackChanges','suggestionChanged','view','_createUIButton','addComment','push','get','getJoined','createCommentThreadController','_suggestionToController','discardButton','editing','remove','SuggestionThreadView','from','CommentView','discardSuggestion','componentFactory','source','requires','buttonView','switchbutton','reduce','_updateController','destroy','commandName','descriptionParts','actionView','Accept\x20all\x20suggestions','Annotations','_descriptionFactory','isEnabled','innerView','length','comments.editorConfig','Discard\x20all\x20selected\x20suggestions','isOn','delete','isInContent','pluginName','_destroyController','discardAllSuggestions','comments.maxCommentsWhenCollapsed','getFirstRange','comments.maxThreadTotalWeight','head','change:previous'];(function(_0x195f14,_0x1cdaf7){const _0x4f2108=function(_0x587223){while(--_0x587223){_0x195f14['push'](_0x195f14['shift']());}};_0x4f2108(++_0x1cdaf7);}(_0x1cda,0xce));const _0x4f21=function(_0x195f14,_0x1cdaf7){_0x195f14=_0x195f14-0x0;let _0x4f2108=_0x1cda[_0x195f14];return _0x4f2108;};import{Plugin as _0x1a8d12}from'ckeditor5/src/core';import{Collection as _0x1a6054}from'ckeditor5/src/utils';import{Model as _0x323087,SplitButtonView as _0x47c7ec,createDropdown as _0x446e91,addListToDropdown as _0x18a524}from'ckeditor5/src/ui';import{Users as _0x26d887,getDateTimeFormatter as _0x15a49d,getMarkerDomElement as _0x449d58}from'ckeditor5-collaboration/src/collaboration-core';import{debounce as _0x5c3d0e}from'lodash-es';import _0x52e981 from'./trackchangesediting';import _0x308914 from'./ui/suggestioncontroller';import _0x23cf01 from'./ui/view/suggestionthreadview';import{getTranslation as _0x100ecd}from'./utils/common-translations';import _0x12f5bc from'../theme/icons/track-changes.svg';export default class m extends _0x1a8d12{static get[_0x4f21('0x63')](){return[_0x52e981,_0x26d887,_0x4f21('0x3e'),_0x4f21('0x6d'),_0x4f21('0x4c')];}static get[_0x4f21('0x8')](){return _0x4f21('0x2f');}constructor(_0xa5c55a){super(_0xa5c55a),this[_0x4f21('0x59')]=new Map(),this[_0x4f21('0x3d')]=new Map(),this[_0x4f21('0x44')]=new Map();const _0x2acd3a=this[_0x4f21('0x3a')][_0x4f21('0x41')];_0x2acd3a['define']('trackChanges.SuggestionThreadView',_0x23cf01),_0x2acd3a[_0x4f21('0x4b')](_0x4f21('0x30'),!0x1),this[_0x4f21('0x25')]=_0x2acd3a['get']('trackChanges.disableComments');}[_0x4f21('0x47')](){const _0x363f19=this[_0x4f21('0x3a')],_0x32821a=_0x363f19[_0x4f21('0x4d')][_0x4f21('0x56')](_0x52e981),_0x5cd531=_0x363f19[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x6d')),_0x13f299=_0x363f19['plugins']['get']('EditorAnnotations'),_0x482e69=_0x363f19[_0x4f21('0x4d')]['get']('CommentsRepository');_0x363f19['ui'][_0x4f21('0x61')][_0x4f21('0x29')](_0x4f21('0x50'),_0x4ae790=>this[_0x4f21('0x53')](_0x4ae790)),_0x13f299['addSourceCollector'](()=>{const _0x17f356=[];for(const [_0x3ab0f0,_0x51f4f2]of Array[_0x4f21('0x5e')](this[_0x4f21('0x59')])){const _0x4e45a2=_0x3ab0f0[_0x4f21('0x4f')](),_0x53d915=[];for(const _0x287b89 of _0x4e45a2){if(!_0x287b89[_0x4f21('0x7')])continue;if(_0x287b89[_0x4f21('0x1c')]){_0x53d915['push'](..._0x287b89[_0x4f21('0x33')]());continue;}const _0x10e9f2=_0x287b89[_0x4f21('0xc')]();if(_0x53d915[_0x4f21('0x2')]>0x0){const _0x23e10c=_0x53d915[0x0][_0x4f21('0x57')](_0x10e9f2);if(_0x23e10c){_0x53d915[0x0]=_0x23e10c;continue;}}_0x53d915[_0x4f21('0x55')](_0x10e9f2);}_0x17f356[_0x4f21('0x55')]([_0x51f4f2[_0x4f21('0x52')],_0x53d915]);}return _0x17f356;}),this['listenTo'](_0x32821a,'suggestionLoaded',(_0x69bd49,_0x12d567)=>{let _0x1d54e9=!0x1;const _0x4d08a9=_0x5c3d0e(_0x59359e=>{_0x1d54e9||_0x59359e?_0x1d54e9&&_0x59359e&&(this[_0x4f21('0x9')](_0x12d567),_0x13f299[_0x4f21('0x34')](),_0x1d54e9=!0x1):(this[_0x4f21('0x1a')](_0x12d567),_0x13f299[_0x4f21('0x34')](),_0x1d54e9=!0x0);},0xa);this['_debouncedHandlers'][_0x4f21('0x20')](_0x12d567,_0x4d08a9),this[_0x4f21('0x18')](_0x12d567,_0x4f21('0xf'),(_0x947580,_0x602dd9,_0x5bf03c,_0x4db7d3)=>{_0x12d567[_0x4f21('0x7')]&&(null==_0x5bf03c?(this[_0x4f21('0x67')](_0x4db7d3[_0x4f21('0xe')]),_0x4d08a9(!0x1)):(this[_0x4f21('0x67')](_0x5bf03c[_0x4f21('0xe')]),_0x4d08a9(!0x0)));}),null===_0x12d567[_0x4f21('0x4a')]?_0x4d08a9(!0x1):this[_0x4f21('0x67')](_0x12d567[_0x4f21('0xe')]);}),this['listenTo'](_0x32821a,_0x4f21('0x27'),(_0x5b2f23,_0x2cf19d,_0x46b785)=>{this[_0x4f21('0x26')](_0x2cf19d,_0x4f21('0xf')),this[_0x4f21('0x44')][_0x4f21('0x56')](_0x2cf19d)[_0x4f21('0x32')](),this['_debouncedHandlers'][_0x4f21('0x6')](_0x2cf19d);const _0x37105d=_0x46b785?_0x46b785[_0x4f21('0xe')]:_0x2cf19d,_0x902e1a=this[_0x4f21('0x59')][_0x4f21('0x56')](_0x37105d);null!==_0x46b785&&this[_0x4f21('0x67')](_0x37105d),null===_0x46b785&&_0x902e1a&&this['_destroyController'](_0x2cf19d);}),this['listenTo'](_0x32821a,_0x4f21('0x51'),(_0x7812c,_0x10ca56)=>{this[_0x4f21('0x67')](_0x10ca56);}),this[_0x4f21('0x18')](_0x5cd531,_0x4f21('0x43'),(_0x3e1685,_0x2abea7,_0x25f1c7)=>{const _0x3bf741=Array['from'](_0x25f1c7,_0x399b8c=>_0x399b8c[_0x4f21('0x1')])[_0x4f21('0x22')](_0x467bef=>this[_0x4f21('0x3d')]['has'](_0x467bef)),_0x4a8d99=[];for(const _0x157152 of _0x3bf741){const _0x18ef33=this[_0x4f21('0x3d')][_0x4f21('0x56')](_0x157152)[_0x4f21('0x39')]['getAllAdjacentSuggestions']();_0x4a8d99['push'](..._0x18ef33[_0x4f21('0x66')]((_0x5f2c1c,_0x471377)=>[..._0x5f2c1c,..._0x471377[_0x4f21('0x49')]()],[]));}_0x32821a['activeMarkers']=_0x4a8d99;}),this[_0x4f21('0x18')](_0x482e69,_0x4f21('0x54'),(_0xd6f06d,{threadId:_0x1efe83,isFromAdapter:_0x532d70})=>{if(_0x532d70||!_0x32821a['hasSuggestion'](_0x1efe83))return;const _0x3c76ed=_0x32821a[_0x4f21('0x12')](_0x1efe83);this[_0x4f21('0x59')][_0x4f21('0x56')](_0x3c76ed)[_0x4f21('0x52')][_0x4f21('0x37')]();},{'priority':_0x4f21('0x23')});}[_0x4f21('0x53')](_0x2d7434){const _0x333435=_0x446e91(_0x2d7434,_0x47c7ec),_0x4a35ee=this[_0x4f21('0x3a')][_0x4f21('0x1b')][_0x4f21('0x56')](_0x4f21('0x50')),_0x1df064=_0x100ecd(_0x2d7434,_0x4f21('0x3c'));_0x333435[_0x4f21('0x64')][_0x4f21('0x20')]({'tooltip':_0x1df064,'label':_0x1df064,'icon':_0x12f5bc}),_0x333435['buttonView'][_0x4f21('0x48')](_0x4f21('0x5'))['to'](_0x4a35ee,'value'),_0x333435[_0x4f21('0x64')]['on']('execute',()=>{_0x4a35ee[_0x4f21('0x11')](),this['editor'][_0x4f21('0x5b')][_0x4f21('0x52')][_0x4f21('0x37')]();});const _0x3874d6=new _0x1a6054(),_0x514440=[{'type':_0x4f21('0x65'),'model':{'withText':!0x0,'label':_0x1df064,'commandName':'trackChanges'}},{'type':_0x4f21('0x15')},{'type':_0x4f21('0x13'),'model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,_0x4f21('0x6c')),'commandName':_0x4f21('0x2c')}},{'type':'button','model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x4f21('0x45')}},{'type':'button','model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,_0x4f21('0x10')),'commandName':_0x4f21('0xa')}},{'type':_0x4f21('0x13'),'model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,_0x4f21('0x4')),'commandName':_0x4f21('0x36')}}];for(const _0xe1be41 of _0x514440){const _0x2439aa={'type':_0xe1be41[_0x4f21('0x24')]};if(_0xe1be41[_0x4f21('0x39')]){const _0x5ce909=new _0x323087(_0xe1be41[_0x4f21('0x39')]),_0x583ab4=this[_0x4f21('0x3a')][_0x4f21('0x1b')][_0x4f21('0x56')](_0x5ce909['commandName']);_0x5ce909[_0x4f21('0x48')](_0x4f21('0x5'),_0x4f21('0x0'))['to'](_0x583ab4,'value',_0x4f21('0x0')),_0x2439aa[_0x4f21('0x39')]=_0x5ce909;}_0x3874d6[_0x4f21('0x29')](_0x2439aa);}_0x18a524(_0x333435,_0x3874d6);const _0x177297=_0x514440['filter'](_0x113ddb=>null!=_0x113ddb[_0x4f21('0x39')])[_0x4f21('0x2b')](_0x238e9e=>this['editor'][_0x4f21('0x1b')]['get'](_0x238e9e[_0x4f21('0x39')][_0x4f21('0x69')]));return _0x333435['buttonView'][_0x4f21('0x6b')][_0x4f21('0x31')](_0x4f21('0x0')),_0x333435['buttonView'][_0x4f21('0x16')][_0x4f21('0x31')](_0x4f21('0x0')),_0x333435[_0x4f21('0x64')][_0x4f21('0x6b')][_0x4f21('0x48')]('isEnabled')['to'](_0x4a35ee,_0x4f21('0x0')),_0x333435[_0x4f21('0x64')][_0x4f21('0x16')][_0x4f21('0x48')](_0x4f21('0x0'))[_0x4f21('0x2d')](_0x177297,_0x4f21('0x0'),(..._0x57a41a)=>_0x57a41a['some'](_0x3431fd=>_0x3431fd)),_0x333435['on'](_0x4f21('0x11'),_0x52c66=>{this[_0x4f21('0x3a')][_0x4f21('0x11')](_0x52c66[_0x4f21('0x62')][_0x4f21('0x69')]),this['editor'][_0x4f21('0x5b')][_0x4f21('0x52')]['focus']();}),_0x333435;}[_0x4f21('0x1a')](_0x4dd316){const _0x9aab22=this['editor'],_0x545a7b=_0x9aab22[_0x4f21('0x41')],_0x402a92=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x6d')),_0x424991=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')]('CommentsRepository'),_0x1eb37f=_0x4dd316[_0x4f21('0x4f')]()['filter'](_0x4de96c=>_0x4de96c[_0x4f21('0x7')]),_0x505a29=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x26d887)['me'],_0x36624b=_0x9aab22[_0x4f21('0x1b')][_0x4f21('0x56')]('acceptSuggestion'),_0x297d6e=_0x9aab22[_0x4f21('0x1b')][_0x4f21('0x56')](_0x4f21('0x60')),_0x14d325=_0x545a7b[_0x4f21('0x56')](_0x4f21('0x50'))[_0x4f21('0x5d')],{CommentsListView:_0x1785cd,CommentThreadInputView:_0x3fb926}=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')]('CommentsUI'),_0x188006=new _0x14d325(_0x9aab22[_0x4f21('0x1d')],_0x4dd316,_0x505a29,{'disableComments':this[_0x4f21('0x25')],'editorConfig':_0x545a7b[_0x4f21('0x56')](_0x4f21('0x3')),'maxCommentsWhenCollapsed':_0x545a7b[_0x4f21('0x56')](_0x4f21('0xb')),'maxThreadTotalWeight':_0x545a7b[_0x4f21('0x56')](_0x4f21('0xd')),'maxCommentCharsWhenCollapsed':_0x545a7b[_0x4f21('0x56')](_0x4f21('0x17')),'formatDateTime':_0x15a49d(_0x545a7b[_0x4f21('0x56')](_0x4f21('0x1d'))),'CommentView':_0x545a7b[_0x4f21('0x56')]('comments')[_0x4f21('0x5f')],'CommentsListView':_0x1785cd,'CommentThreadInputView':_0x3fb926}),_0x2853be=_0x424991[_0x4f21('0x58')](_0x4dd316['commentThread'],_0x188006),_0x15368d=new _0x308914(_0x4dd316,_0x188006,_0x36624b,_0x297d6e,_0x2853be);_0x188006[_0x4f21('0x6a')]=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x2e'))[_0x4f21('0x6e')][_0x4f21('0x35')](_0x1eb37f),this[_0x4f21('0x59')][_0x4f21('0x20')](_0x4dd316,_0x15368d),this[_0x4f21('0x3d')][_0x4f21('0x20')](_0x188006,_0x15368d);const _0x4a3eb1=_0x402a92[_0x4f21('0x3f')](this[_0x4f21('0x3a')][_0x4f21('0x1d')],_0x188006);_0x4a3eb1[_0x4f21('0x48')](_0x4f21('0x21'))['to'](_0x188006,_0x4f21('0x21')),_0x4a3eb1[_0x4f21('0x48')](_0x4f21('0x2'))['to'](_0x188006),_0x4a3eb1[_0x4f21('0x48')]('type')['to'](_0x188006,_0x4f21('0x24'),_0x4e432f=>_0x4f21('0x4e')+_0x4e432f);const _0x28e19b=_0x402a92[_0x4f21('0x2a')]({'view':_0x4a3eb1,'target':()=>{const _0x5b9b66=_0x1eb37f[0x0][_0x4f21('0x1e')]();if(!_0x5b9b66)return null;const _0x43b584=_0x5b9b66['getRange']()[_0x4f21('0x40')]();return _0x43b584&&!_0x9aab22[_0x4f21('0x5b')]['mapper'][_0x4f21('0x42')](_0x43b584)?null:_0x449d58(_0x9aab22[_0x4f21('0x5b')],_0x5b9b66)||null;},'type':()=>_0x4f21('0x4e')+_0x15368d[_0x4f21('0x52')]['type']});_0x402a92['add'](_0x28e19b);const _0x54a4dc=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x1f'));let _0x1874f;_0x188006['on']('change:isDirty',(_0xe59742,_0x4edcc4,_0x35efa9)=>{_0x35efa9?_0x1874f=_0x54a4dc[_0x4f21('0x29')](_0x100ecd(this[_0x4f21('0x3a')]['locale'],_0x4f21('0x14'))):(_0x54a4dc[_0x4f21('0x5c')](_0x1874f),_0x1874f=null);}),_0x188006[_0x4f21('0x46')]['on'](_0x4f21('0x11'),()=>{_0x9aab22[_0x4f21('0x5b')][_0x4f21('0x52')]['focus']();}),_0x188006[_0x4f21('0x5a')]['on'](_0x4f21('0x11'),()=>{_0x9aab22[_0x4f21('0x5b')][_0x4f21('0x52')][_0x4f21('0x37')]();});}[_0x4f21('0x9')](_0x4cb920){const _0x6c87a8=this[_0x4f21('0x3a')]['plugins']['get'](_0x4f21('0x6d')),_0x152ed3=this[_0x4f21('0x59')][_0x4f21('0x56')](_0x4cb920),_0x29a3c2=_0x152ed3[_0x4f21('0x52')],_0x3698ee=_0x6c87a8[_0x4f21('0x28')](_0x29a3c2);_0x3698ee&&_0x6c87a8[_0x4f21('0x5c')](_0x3698ee),this[_0x4f21('0x59')][_0x4f21('0x6')](_0x4cb920),this[_0x4f21('0x3d')][_0x4f21('0x6')](_0x29a3c2),_0x152ed3[_0x4f21('0x68')](),_0x29a3c2[_0x4f21('0x68')]();}[_0x4f21('0x67')](_0x2526bc){if(!_0x2526bc[_0x4f21('0x7')]||!this[_0x4f21('0x59')]['has'](_0x2526bc))return;const _0x4ed9d9=this['editor']['plugins']['get'](_0x4f21('0x2e')),_0x59f68d=this['_suggestionToController'][_0x4f21('0x56')](_0x2526bc),_0x1311b6=_0x2526bc[_0x4f21('0x4f')]();_0x59f68d[_0x4f21('0x52')][_0x4f21('0x6a')]=_0x4ed9d9[_0x4f21('0x6e')]['getDescriptions'](_0x1311b6);}['destroy'](){super[_0x4f21('0x68')]();for(const _0x2ec85a of this[_0x4f21('0x59')][_0x4f21('0x3b')]())this[_0x4f21('0x9')](_0x2ec85a);for(const _0x314679 of this['_debouncedHandlers'][_0x4f21('0x38')]())_0x314679[_0x4f21('0x32')]();this[_0x4f21('0x44')][_0x4f21('0x19')]();}}
|
|
23
|
+
const _0x4f07=['getAllAdjacentSuggestions','listenTo','CommentsUI','isDirty','values','Track\x20changes','set','addSourceCollector','Accept\x20all\x20selected\x20suggestions','get','destroy','innerView','discardSelectedSuggestions','filter','change:isDirty','focus','getMarkerNames','_updateController','commentThread','length','separator','suggestion-','editing','_disableComments','getContainedElement','model','getByInnerView','previous','define','CommentView','TrackChangesUI','push','hasSuggestion','unbind','config','PendingActions','_suggestionToController','CommentsRepository','switchbutton','editor','plugins','view','buttonView','SuggestionThreadView','commandName','from','trackChanges','EditorAnnotations','suggestionChanged','change:previous','commands','discardButton','toMany','stopListening','init','TrackChangesEditing','toViewElement','getFirstMarker','getDescriptions','Discard\x20all\x20suggestions','acceptSelectedSuggestions','_createUIButton','head','createAnnotationView','cancel','actionView','comments.maxCommentsWhenCollapsed','mapper','comments.maxCommentCharsWhenCollapsed','activeMarkers','arrowView','_descriptionFactory','discardSuggestion','_viewToController','isMultiRange','add','button','_destroyController','PENDING_ACTION_SUGGESTION','reduce','keys','Accept\x20all\x20suggestions','Annotations','addComment','has','remove','source','value','isEnabled','lowest','map','_debouncedHandlers','getJoined','delete','change:activeAnnotations','bind','comments','execute','clear','trackChanges.disableComments','refreshSelectedViews','componentFactory','comments.editorConfig','suggestionUnloaded','descriptionParts','type','locale','getFirstRange','_initializeController','acceptSuggestion','createCommentThreadController','comments.maxThreadTotalWeight','getRange'];(function(_0x466a3b,_0x4f07a8){const _0x386238=function(_0x1b7d03){while(--_0x1b7d03){_0x466a3b['push'](_0x466a3b['shift']());}};_0x386238(++_0x4f07a8);}(_0x4f07,0x18c));const _0x3862=function(_0x466a3b,_0x4f07a8){_0x466a3b=_0x466a3b-0x0;let _0x386238=_0x4f07[_0x466a3b];return _0x386238;};import{Plugin as _0x4913b3}from'ckeditor5/src/core';import{Collection as _0x3935c1}from'ckeditor5/src/utils';import{Model as _0x11b74a,SplitButtonView as _0x4b2ba4,createDropdown as _0x2667b4,addListToDropdown as _0x2a2150}from'ckeditor5/src/ui';import{Users as _0x2ec6c0,getDateTimeFormatter as _0x13cade,getMarkerDomElement as _0x267b4a}from'ckeditor5-collaboration/src/collaboration-core';import{debounce as _0x355cda}from'lodash-es';import _0x1b5c3f from'./trackchangesediting';import _0x24047e from'./ui/suggestioncontroller';import _0x42747c from'./ui/view/suggestionthreadview';import{getTranslation as _0x2c72c5}from'./utils/common-translations';import _0x27dca3 from'../theme/icons/track-changes.svg';export default class m extends _0x4913b3{static get['requires'](){return[_0x1b5c3f,_0x2ec6c0,_0x3862('0x5d'),_0x3862('0x19'),_0x3862('0x67')];}static get['pluginName'](){return _0x3862('0x56');}constructor(_0x2e4a52){super(_0x2e4a52),this[_0x3862('0x5c')]=new Map(),this['_viewToController']=new Map(),this[_0x3862('0x22')]=new Map();const _0x5e819c=this['editor'][_0x3862('0x5a')];_0x5e819c[_0x3862('0x54')]('trackChanges.SuggestionThreadView',_0x42747c),_0x5e819c[_0x3862('0x54')](_0x3862('0x2a'),!0x1),this['_disableComments']=_0x5e819c[_0x3862('0x41')](_0x3862('0x2a'));}[_0x3862('0x6e')](){const _0x48eca3=this[_0x3862('0x5f')],_0x49b96b=_0x48eca3[_0x3862('0x60')]['get'](_0x1b5c3f),_0x49428f=_0x48eca3[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x19')),_0x38d99c=_0x48eca3['plugins']['get'](_0x3862('0x67')),_0x5e5624=_0x48eca3[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x5d'));_0x48eca3['ui'][_0x3862('0x2c')][_0x3862('0x12')](_0x3862('0x66'),_0x1a5c81=>this[_0x3862('0x4')](_0x1a5c81)),_0x38d99c[_0x3862('0x3f')](()=>{const _0x14a9d9=[];for(const [_0x3a521e,_0x2e28e4]of Array[_0x3862('0x65')](this[_0x3862('0x5c')])){const _0x26e5ec=_0x3a521e[_0x3862('0x38')](),_0xf1c252=[];for(const _0x3b4fd2 of _0x26e5ec){if(!_0x3b4fd2['isInContent'])continue;if(_0x3b4fd2[_0x3862('0x11')]){_0xf1c252[_0x3862('0x57')](..._0x3b4fd2['getRanges']());continue;}const _0x5b63fc=_0x3b4fd2[_0x3862('0x32')]();if(_0xf1c252[_0x3862('0x4b')]>0x0){const _0x3d7627=_0xf1c252[0x0][_0x3862('0x23')](_0x5b63fc);if(_0x3d7627){_0xf1c252[0x0]=_0x3d7627;continue;}}_0xf1c252[_0x3862('0x57')](_0x5b63fc);}_0x14a9d9[_0x3862('0x57')]([_0x2e28e4['view'],_0xf1c252]);}return _0x14a9d9;}),this['listenTo'](_0x49b96b,'suggestionLoaded',(_0x3ea595,_0x425e0c)=>{let _0x4520a9=!0x1;const _0x204665=_0x355cda(_0x4d0dbd=>{_0x4520a9||_0x4d0dbd?_0x4520a9&&_0x4d0dbd&&(this[_0x3862('0x14')](_0x425e0c),_0x38d99c[_0x3862('0x2b')](),_0x4520a9=!0x1):(this[_0x3862('0x33')](_0x425e0c),_0x38d99c['refreshSelectedViews'](),_0x4520a9=!0x0);},0xa);this[_0x3862('0x22')]['set'](_0x425e0c,_0x204665),this[_0x3862('0x39')](_0x425e0c,_0x3862('0x69'),(_0x95c9ec,_0x3741a2,_0x575719,_0x425b91)=>{_0x425e0c['isInContent']&&(null==_0x575719?(this[_0x3862('0x49')](_0x425b91[_0x3862('0x5')]),_0x204665(!0x1)):(this[_0x3862('0x49')](_0x575719[_0x3862('0x5')]),_0x204665(!0x0)));}),null===_0x425e0c[_0x3862('0x53')]?_0x204665(!0x1):this[_0x3862('0x49')](_0x425e0c[_0x3862('0x5')]);}),this[_0x3862('0x39')](_0x49b96b,_0x3862('0x2e'),(_0x5a684e,_0x2c6902,_0xdb2713)=>{this[_0x3862('0x6d')](_0x2c6902,_0x3862('0x69')),this['_debouncedHandlers'][_0x3862('0x41')](_0x2c6902)['cancel'](),this[_0x3862('0x22')]['delete'](_0x2c6902);const _0x4ea4aa=_0xdb2713?_0xdb2713[_0x3862('0x5')]:_0x2c6902,_0x415f15=this[_0x3862('0x5c')][_0x3862('0x41')](_0x4ea4aa);null!==_0xdb2713&&this['_updateController'](_0x4ea4aa),null===_0xdb2713&&_0x415f15&&this[_0x3862('0x14')](_0x2c6902);}),this['listenTo'](_0x49b96b,_0x3862('0x68'),(_0x211ae8,_0x1012de)=>{this['_updateController'](_0x1012de);}),this[_0x3862('0x39')](_0x49428f,_0x3862('0x25'),(_0x92525e,_0x5c32f6,_0xbbe2fc)=>{const _0x43cb2a=Array[_0x3862('0x65')](_0xbbe2fc,_0x22a926=>_0x22a926[_0x3862('0x43')])[_0x3862('0x45')](_0x46f076=>this[_0x3862('0x10')]['has'](_0x46f076)),_0x49d47b=[];for(const _0x374448 of _0x43cb2a){const _0x16817d=this[_0x3862('0x10')]['get'](_0x374448)[_0x3862('0x51')][_0x3862('0x38')]();_0x49d47b[_0x3862('0x57')](..._0x16817d[_0x3862('0x16')]((_0x3dc517,_0x420bb9)=>[..._0x3dc517,..._0x420bb9[_0x3862('0x48')]()],[]));}_0x49b96b[_0x3862('0xc')]=_0x49d47b;}),this[_0x3862('0x39')](_0x5e5624,_0x3862('0x1a'),(_0x18aa38,{threadId:_0x1f6c9c,isFromAdapter:_0x85c46})=>{if(_0x85c46||!_0x49b96b[_0x3862('0x58')](_0x1f6c9c))return;const _0x1d2737=_0x49b96b['getSuggestion'](_0x1f6c9c);this[_0x3862('0x5c')][_0x3862('0x41')](_0x1d2737)['view'][_0x3862('0x47')]();},{'priority':_0x3862('0x20')});}[_0x3862('0x4')](_0x457f9b){const _0xa61239=_0x2667b4(_0x457f9b,_0x4b2ba4),_0x4ea7c1=this[_0x3862('0x5f')]['commands']['get'](_0x3862('0x66')),_0x1c6051=_0x2c72c5(_0x457f9b,_0x3862('0x3d'));_0xa61239[_0x3862('0x62')][_0x3862('0x3e')]({'tooltip':_0x1c6051,'label':_0x1c6051,'icon':_0x27dca3}),_0xa61239['buttonView']['bind']('isOn')['to'](_0x4ea7c1,_0x3862('0x1e')),_0xa61239[_0x3862('0x62')]['on']('execute',()=>{_0x4ea7c1[_0x3862('0x28')](),this[_0x3862('0x5f')][_0x3862('0x4e')]['view'][_0x3862('0x47')]();});const _0x387128=new _0x3935c1(),_0x587024=[{'type':_0x3862('0x5e'),'model':{'withText':!0x0,'label':_0x1c6051,'commandName':_0x3862('0x66')}},{'type':_0x3862('0x4c')},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x18')),'commandName':'acceptAllSuggestions'}},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x40')),'commandName':_0x3862('0x3')}},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x2')),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3862('0x44')}}];for(const _0x367eb5 of _0x587024){const _0x7e42fc={'type':_0x367eb5[_0x3862('0x30')]};if(_0x367eb5[_0x3862('0x51')]){const _0x52aa34=new _0x11b74a(_0x367eb5['model']),_0xa3e331=this['editor']['commands'][_0x3862('0x41')](_0x52aa34['commandName']);_0x52aa34[_0x3862('0x26')]('isOn',_0x3862('0x1f'))['to'](_0xa3e331,_0x3862('0x1e'),_0x3862('0x1f')),_0x7e42fc[_0x3862('0x51')]=_0x52aa34;}_0x387128[_0x3862('0x12')](_0x7e42fc);}_0x2a2150(_0xa61239,_0x387128);const _0x433a1b=_0x587024['filter'](_0x904fcb=>null!=_0x904fcb['model'])[_0x3862('0x21')](_0x30a702=>this['editor'][_0x3862('0x6a')][_0x3862('0x41')](_0x30a702[_0x3862('0x51')][_0x3862('0x64')]));return _0xa61239[_0x3862('0x62')][_0x3862('0x8')][_0x3862('0x59')](_0x3862('0x1f')),_0xa61239['buttonView'][_0x3862('0xd')][_0x3862('0x59')]('isEnabled'),_0xa61239[_0x3862('0x62')][_0x3862('0x8')][_0x3862('0x26')]('isEnabled')['to'](_0x4ea7c1,_0x3862('0x1f')),_0xa61239[_0x3862('0x62')][_0x3862('0xd')][_0x3862('0x26')]('isEnabled')[_0x3862('0x6c')](_0x433a1b,_0x3862('0x1f'),(..._0x5862ba)=>_0x5862ba['some'](_0x227cf9=>_0x227cf9)),_0xa61239['on'](_0x3862('0x28'),_0x2ee122=>{this[_0x3862('0x5f')][_0x3862('0x28')](_0x2ee122[_0x3862('0x1d')][_0x3862('0x64')]),this[_0x3862('0x5f')][_0x3862('0x4e')]['view'][_0x3862('0x47')]();}),_0xa61239;}[_0x3862('0x33')](_0x5e599d){const _0x56df1f=this[_0x3862('0x5f')],_0x201ac0=_0x56df1f[_0x3862('0x5a')],_0x572695=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x19')),_0x597caf=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x5d')),_0x57d930=_0x5e599d[_0x3862('0x38')]()[_0x3862('0x45')](_0x1f989d=>_0x1f989d['isInContent']),_0x50a6a8=_0x56df1f['plugins'][_0x3862('0x41')](_0x2ec6c0)['me'],_0x1d6a2a=_0x56df1f[_0x3862('0x6a')][_0x3862('0x41')](_0x3862('0x34')),_0x4388ab=_0x56df1f[_0x3862('0x6a')][_0x3862('0x41')](_0x3862('0xf')),_0x19bc56=_0x201ac0[_0x3862('0x41')](_0x3862('0x66'))[_0x3862('0x63')],{CommentsListView:_0x1e5f5c,CommentThreadInputView:_0xb67ceb}=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x3a')),_0x43b36d=new _0x19bc56(_0x56df1f[_0x3862('0x31')],_0x5e599d,_0x50a6a8,{'disableComments':this[_0x3862('0x4f')],'editorConfig':_0x201ac0[_0x3862('0x41')](_0x3862('0x2d')),'maxCommentsWhenCollapsed':_0x201ac0['get'](_0x3862('0x9')),'maxThreadTotalWeight':_0x201ac0[_0x3862('0x41')](_0x3862('0x36')),'maxCommentCharsWhenCollapsed':_0x201ac0['get'](_0x3862('0xb')),'formatDateTime':_0x13cade(_0x201ac0[_0x3862('0x41')](_0x3862('0x31'))),'CommentView':_0x201ac0['get'](_0x3862('0x27'))[_0x3862('0x55')],'CommentsListView':_0x1e5f5c,'CommentThreadInputView':_0xb67ceb}),_0x402637=_0x597caf[_0x3862('0x35')](_0x5e599d[_0x3862('0x4a')],_0x43b36d),_0x536484=new _0x24047e(_0x5e599d,_0x43b36d,_0x1d6a2a,_0x4388ab,_0x402637);_0x43b36d[_0x3862('0x2f')]=_0x56df1f[_0x3862('0x60')]['get'](_0x3862('0x6f'))['_descriptionFactory'][_0x3862('0x1')](_0x57d930),this['_suggestionToController'][_0x3862('0x3e')](_0x5e599d,_0x536484),this[_0x3862('0x10')]['set'](_0x43b36d,_0x536484);const _0x5a637c=_0x572695[_0x3862('0x6')](this[_0x3862('0x5f')][_0x3862('0x31')],_0x43b36d);_0x5a637c['bind']('isDirty')['to'](_0x43b36d,_0x3862('0x3b')),_0x5a637c[_0x3862('0x26')]('length')['to'](_0x43b36d),_0x5a637c[_0x3862('0x26')](_0x3862('0x30'))['to'](_0x43b36d,'type',_0x25e573=>_0x3862('0x4d')+_0x25e573);const _0x3ad4c4=_0x572695['createAnnotation']({'view':_0x5a637c,'target':()=>{const _0x9c89e7=_0x57d930[0x0][_0x3862('0x0')]();if(!_0x9c89e7)return null;const _0x30cc7b=_0x9c89e7[_0x3862('0x37')]()[_0x3862('0x50')]();return _0x30cc7b&&!_0x56df1f[_0x3862('0x4e')][_0x3862('0xa')][_0x3862('0x70')](_0x30cc7b)?null:_0x267b4a(_0x56df1f['editing'],_0x9c89e7)||null;},'type':()=>_0x3862('0x4d')+_0x536484[_0x3862('0x61')]['type']});_0x572695[_0x3862('0x12')](_0x3ad4c4);const _0x274bca=_0x56df1f[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x5b'));let _0x53fce0;_0x43b36d['on'](_0x3862('0x46'),(_0x3f4b40,_0x27a04c,_0x19c1f6)=>{_0x19c1f6?_0x53fce0=_0x274bca['add'](_0x2c72c5(this[_0x3862('0x5f')][_0x3862('0x31')],_0x3862('0x15'))):(_0x274bca[_0x3862('0x1c')](_0x53fce0),_0x53fce0=null);}),_0x43b36d['acceptButton']['on'](_0x3862('0x28'),()=>{_0x56df1f['editing'][_0x3862('0x61')][_0x3862('0x47')]();}),_0x43b36d[_0x3862('0x6b')]['on']('execute',()=>{_0x56df1f[_0x3862('0x4e')][_0x3862('0x61')]['focus']();});}['_destroyController'](_0xf4f354){const _0x1ebc90=this['editor']['plugins'][_0x3862('0x41')](_0x3862('0x19')),_0x36e91c=this['_suggestionToController']['get'](_0xf4f354),_0x4a0575=_0x36e91c[_0x3862('0x61')],_0xf2135b=_0x1ebc90[_0x3862('0x52')](_0x4a0575);_0xf2135b&&_0x1ebc90['remove'](_0xf2135b),this['_suggestionToController'][_0x3862('0x24')](_0xf4f354),this[_0x3862('0x10')][_0x3862('0x24')](_0x4a0575),_0x36e91c[_0x3862('0x42')](),_0x4a0575[_0x3862('0x42')]();}[_0x3862('0x49')](_0x1141ed){if(!_0x1141ed['isInContent']||!this[_0x3862('0x5c')][_0x3862('0x1b')](_0x1141ed))return;const _0x1eadec=this['editor'][_0x3862('0x60')]['get'](_0x3862('0x6f')),_0x54fd8b=this[_0x3862('0x5c')][_0x3862('0x41')](_0x1141ed),_0x372868=_0x1141ed[_0x3862('0x38')]();_0x54fd8b[_0x3862('0x61')][_0x3862('0x2f')]=_0x1eadec[_0x3862('0xe')][_0x3862('0x1')](_0x372868);}['destroy'](){super[_0x3862('0x42')]();for(const _0x47f45c of this[_0x3862('0x5c')][_0x3862('0x17')]())this[_0x3862('0x14')](_0x47f45c);for(const _0x2b70df of this[_0x3862('0x22')][_0x3862('0x3c')]())_0x2b70df[_0x3862('0x7')]();this[_0x3862('0x22')][_0x3862('0x29')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x50f2=['acceptSuggestion','stopListening','bind','_acceptCommand','unbind','discardSuggestion','listenTo','commentThreadController','destroy','model','_discardCommand','view','isEnabled'];(function(_0xf2605c,_0x50f27c){var _0x1ff7f2=function(_0x12cea5){while(--_0x12cea5){_0xf2605c['push'](_0xf2605c['shift']());}};_0x1ff7f2(++_0x50f27c);}(_0x50f2,0xa3));var _0x1ff7=function(_0xf2605c,_0x50f27c){_0xf2605c=_0xf2605c-0x0;var _0x1ff7f2=_0x50f2[_0xf2605c];return _0x1ff7f2;};import{ObservableMixin as _0x3efdb8,mix as _0x4f753a}from'ckeditor5/src/utils';export default class _t{constructor(_0x4062ad,_0x29ff80,_0x2e78a3,_0x48610f,_0x128e53){this[_0x1ff7('0x2')]=_0x4062ad,this[_0x1ff7('0x4')]=_0x29ff80,this[_0x1ff7('0x0')]=_0x128e53,this[_0x1ff7('0x9')]=_0x2e78a3,this[_0x1ff7('0x3')]=_0x48610f,this[_0x1ff7('0x4')][_0x1ff7('0x8')](_0x1ff7('0x5'))['to'](this['_acceptCommand']),this[_0x1ff7('0xc')](_0x29ff80,_0x1ff7('0x6'),()=>this[_0x1ff7('0x6')]()),this[_0x1ff7('0xc')](_0x29ff80,_0x1ff7('0xb'),()=>this[_0x1ff7('0xb')]());}[_0x1ff7('0x6')](){this[_0x1ff7('0x9')]['execute'](this[_0x1ff7('0x2')]['id']);}[_0x1ff7('0xb')](){this['_discardCommand']['execute'](this[_0x1ff7('0x2')]['id']);}['destroy'](){this[_0x1ff7('0x4')][_0x1ff7('0xa')](_0x1ff7('0x5')),this[_0x1ff7('0x7')](),this[_0x1ff7('0x0')][_0x1ff7('0x1')]();}}_0x4f753a(_t,_0x3efdb8);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39a6=['commentInputView','value','CommentView','editorConfig','length','disableComments','_createCommentViews','_config','delegate','isActive','setData','_localUser','_createCommentThreadInputView','locale','bind','isDirty','_model','descriptionParts','commentThreadInputView','commentThread','assign','removeComment','set','fire','updateComment','focus','showInput','disabledSubmit','isEnabled','commentsListView','destroy'];(function(_0x33c929,_0x39a600){const _0x24e69f=function(_0xef1460){while(--_0xef1460){_0x33c929['push'](_0x33c929['shift']());}};_0x24e69f(++_0x39a600);}(_0x39a6,0x13d));const _0x24e6=function(_0x33c929,_0x39a600){_0x33c929=_0x33c929-0x0;let _0x24e69f=_0x39a6[_0x33c929];return _0x24e69f;};import{View as _0x49f18f}from'ckeditor5/src/ui';export default class Kt extends _0x49f18f{constructor(_0x26b492,_0x175ab4,_0x5c055b,_0x1cac27){super(_0x26b492),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this[_0x24e6('0xf')]('createdAt',_0x175ab4['createdAt']),this[_0x24e6('0x7')]('createdAt')['to'](_0x175ab4),this['set'](_0x24e6('0xa'),[]),this[_0x24e6('0xf')](_0x24e6('0x8'),!0x1),this[_0x24e6('0xf')](_0x24e6('0x15'),!0x1),this[_0x24e6('0x9')]=_0x175ab4,this[_0x24e6('0x4')]=_0x5c055b,this[_0x24e6('0x0')]=_0x1cac27,_0x1cac27[_0x24e6('0x1d')]?this[_0x24e6('0xf')](_0x24e6('0x1c'),0x1):this['_createCommentViews']();}[_0x24e6('0x12')](){this['element']['focus']();}[_0x24e6('0x17')](){this[_0x24e6('0x8')]=!0x1,this['commentsListView']&&this['commentsListView'][_0x24e6('0x17')](),this['commentThreadInputView']&&this[_0x24e6('0xb')][_0x24e6('0x17')](),super[_0x24e6('0x17')]();}[_0x24e6('0x1e')](){const {CommentsListView:_0x1047f9}=this[_0x24e6('0x0')];this[_0x24e6('0x16')]=new _0x1047f9(this[_0x24e6('0x6')],this['_model']['commentThread'],Object[_0x24e6('0xd')]({'CommentView':this[_0x24e6('0x0')][_0x24e6('0x1a')]},this['_config'])),this[_0x24e6('0x16')][_0x24e6('0x1')](_0x24e6('0xe'))['to'](this),this[_0x24e6('0x16')]['delegate'](_0x24e6('0x11'))['to'](this),this[_0x24e6('0x16')]['bind'](_0x24e6('0x2'))['to'](this),this[_0x24e6('0xf')]('length',this[_0x24e6('0x16')][_0x24e6('0x1c')]+0x1),this[_0x24e6('0x7')]('length')['to'](this[_0x24e6('0x16')],_0x24e6('0x1c'),_0x550c0b=>_0x550c0b+0x1),this[_0x24e6('0xb')]=this['_createCommentThreadInputView'](),this['on'](_0x24e6('0xe'),()=>this[_0x24e6('0x12')]()),this[_0x24e6('0x7')](_0x24e6('0x8'))['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView'][_0x24e6('0x18')],_0x24e6('0x19'),(_0x408542,_0x319410)=>_0x408542||!!_0x319410);}[_0x24e6('0x5')](){const {CommentThreadInputView:_0x3fa4b7}=this[_0x24e6('0x0')],_0x2dc7c2=new _0x3fa4b7(this['locale'],this[_0x24e6('0x4')],this[_0x24e6('0x0')][_0x24e6('0x1b')]),_0x94187c=_0x2dc7c2[_0x24e6('0x18')];return _0x2dc7c2['bind'](_0x24e6('0x13'))['to'](this,_0x24e6('0x2'),this['_model'][_0x24e6('0xc')],'isReadOnly',_0x94187c,_0x24e6('0x19'),(_0x4197d8,_0x2d7f3d,_0x55ec82)=>!!_0x55ec82||_0x4197d8&&!_0x2d7f3d),_0x94187c['on']('submit',(_0x11368f,_0x7d5d8)=>{this[_0x24e6('0x10')]('addComment',_0x7d5d8),_0x94187c['editor'][_0x24e6('0x3')]('');}),_0x94187c['on']('cancel',()=>this[_0x24e6('0x12')]()),_0x94187c[_0x24e6('0x7')](_0x24e6('0x14'))['to'](this[_0x24e6('0x9')][_0x24e6('0xc')],'isReadOnly'),_0x2dc7c2;}}
|