@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230728.0 → 0.0.0-nightly-20230730.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/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.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/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.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/imagereplace.js +1 -1
- package/src/integrations/importword.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/listproperties.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/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.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/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4794=['markerName','createPositionAt','insertContent','getShiftedBy','editing','getLastMatchingPosition','type','_registerDefaultCallbacks','discardAllSuggestions','parent','updateMarker','_mergeNestedSuggestions','isInContent','removeClass','_customCallbacks','getAllAdjacentSuggestions','attributes','for','move','isExternal','dataReady','error-saving-suggestion-data-suggestion-discarded','fetchCommentThread','ready','getRanges','requires','TrackChangesEditing','_createSuggestion','_breakSuggestionMarker','isBlock','push','forward','execute','delete','catch','unbind','collaboration.channelId','insertion','addCommentThread','listenTo','getIntersection','detach','insert','writer','sort','rootName','open','getAttribute','isIntersectingWithRange','widget','bindElementToMarker','split','config','addClass','clear','isEqual','fire','getFirstMarker','addRange','discard','fromCharCode','consumable','never','_trackFormatChanges','enableReadOnlyMode','markers','formatInline:join','isBefore','resolve','_splitMarkerName','addSuggestionData','document','batch','change','_updateSuggestionData','marker-count','change:data','add','createPositionBefore','elementToElement','CommentsRepository','nodeAfter','data-suggestion','elementEnd','isAtStart','init','update:suggestion','hasSuggestion','formatInline','creator','_joinSuggestions','removed','getCommentThread','registerCustomCallback','forceDefaultExecution','authorName','formatInline:','removeMarker','getNearestSelectionRange','_saved','options','suggestion:','getMarkers','track-changes-adapter-already-set','end','lowest','define','deleteContent','insertion:','dataDowncast','always','applyOperation','acceptAllSuggestions','setSelection','suggestionLoaded','substr','model','fromRange','removeComment','_descriptionFactory','_joinWithAdjacentSuggestions','refresh','accept','registerPostFixer','chain','isDocumentOperation','_rangeIsInLocalUserInsertion','formatBlock','trackChanges.trackFormatChanges','addUser','addMarker:suggestion:formatBlock','multipleBlocks','getSuggestions','position','ck-suggestion-marker--active','value','suggestion-type','differ','isAtEnd','containerElement','createPositionAfter','enqueueChange','default','commands','deletion:','consume','includes','ck-suggestion-marker-','_enabledCommands','_commentsRepository','formatBlock:chain','nodeBefore','backward','_addThreadToSuggestion','isNextTo','_getSuggestionData','acceptSelectedSuggestions','discardSuggestion','from','createRange','splice','markBlockFormat','getAncestors','PENDING_ACTION_SUGGESTION','trackChanges.mergeNestedSuggestions','locale','_cutOutSuggestionMarker','isTouching','addSuggestion','containsPosition','markerNameToElements','Users','originalSuggestionId','editor','activeMarkers','_adapter','stopListening','plugins','getSuggestion','formatInline:accept','insertion:chain','isSelectable','deletion:chain','authoredAt','_addSuggestionMarker','suggestion','stop','markMultiRangeBlockFormat','head','low','range','_model','getSuggestionCallback','isLimit','markMultiRangeInsertion','splitPosition','_setSuggestionData','reconvertMarker','isInsideObject','hasCommentThread','has','insertion:accept','formatBlock:discard','notReady','trackChangesCommand','next','formatInline:chain','_suggestionFactory','addComment','getCustomProperty','formatBlock:join','some','multi','deletion','_handleNewSuggestionMarker','after','isObject','commandName','containsRange','_isForcedDefaultExecutionBlock','dataToMarker','documentSelection','conversion','hasComments','markerToHighlight','track-changes-suggestion-not-found','ck-suggestion-marker','getFirstRange','getChangedMarkers','schema','toViewElement','length','join','deletion:join','isCollapsed','_getExternalAuthor','set','insertion:discard','author','suggestionChanged','size','$textProxy','PendingActions','newRange','_removeSuggestion','$graveyard','_findSuggestions','upcast','addMarker:suggestion','rejected','_suggestionState','item','_getAuthorFromId','track-changes-user-not-found','formatGroupId','_suggestions','addHighlight','subType','track-changes-adapter-missing-getsuggestion','formatBlock:','addMarkerName','enableCommand','acceptSuggestion','group','commentThread','then','howMany','containsRangeInObject','toJSON','track-changes-command-not-found','markDeletion','isRemovable','suggestionUnloaded','adapter','containsItem','mapper','filter','normal','_refreshSuggestionsChain','pluginName','setTo','_setSuggestionRange','clone','start','markInsertion','getChanges','every','createdAt','map','isLocal','markerReady','data','getDifference','accepted','high','removeMarkers','_editor','skipNestingCheck','buildSuggestion','$marker','root','_onDiscard','updateSuggestion','isOwn','deletion:accept','isAfter','getMultiRangeId','track-changes-suggestion-data-mismatch','showSuggestionHighlights','get','isMultiRange','addMarker','oldRange','_defaultCallbacks','_checkSuggestionCorrectness','name','previous'];(function(_0x293304,_0x4794e8){const _0x54b467=function(_0x328eb5){while(--_0x328eb5){_0x293304['push'](_0x293304['shift']());}};_0x54b467(++_0x4794e8);}(_0x4794,0x111));const _0x54b4=function(_0x293304,_0x4794e8){_0x293304=_0x293304-0x0;let _0x54b467=_0x4794[_0x293304];return _0x54b467;};import{Plugin as _0x18a65c,PendingActions as _0x6a6cc}from'ckeditor5/src/core';import{LiveRange as _0x2cb8ac}from'ckeditor5/src/engine';import{CKEditorError as _0x5e58a3,uid as _0x5f30bf,priorities as _0x48e910,logWarning as _0x120821}from'ckeditor5/src/utils';import{toWidget as _0x2f385b}from'ckeditor5/src/widget';import{Users as _0xafeeac,hashObject as _0x358f21}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e56c8 from'./commands/trackchangescommand';import _0x3536b6 from'./commands/acceptsuggestioncommand';import _0xb47eca from'./commands/discardsuggestioncommand';import _0x22a8bf from'./commands/executeonallsuggestionscommand';import _0x5d7471 from'./commands/executeonselectedsuggestionscommand';import _0xf20766 from'./suggestion';import _0x5cd162 from'./suggestiondescriptionfactory';import _0x4a6185 from'./integrations/alignment';import _0x5abe4f from'./integrations/basicstyles';import _0x2f07ff from'./integrations/blockquote';import _0x4051cd from'./integrations/ckbox';import _0x5b1d77 from'./integrations/codeblock';import _0x14eacc from'./integrations/comments';import _0xf58d45 from'./integrations/deletecommand';import _0x3a0962 from'./integrations/documentlist';import _0xb85aca from'./integrations/entercommand';import _0x1f3ddd from'./integrations/findandreplace';import _0x3c5773 from'./integrations/font';import _0x5e8a22 from'./integrations/formatpainter';import _0x3e367b from'./integrations/heading';import _0x36a65a from'./integrations/highlight';import _0x486285 from'./integrations/horizontalline';import _0x493455 from'./integrations/htmlembed';import _0x145855 from'./integrations/image';import _0x3fec61 from'./integrations/imagereplace';import _0x19650c from'./integrations/importword';import _0x36d40f from'./integrations/indent';import _0x413229 from'./integrations/inputcommand';import _0x1a949c from'./integrations/link';import _0x5bb666 from'./integrations/list';import _0xe3a5a5 from'./integrations/listproperties';import _0x18b764 from'./integrations/mediaembed';import _0x6749c6 from'./integrations/mention';import _0x345617 from'./integrations/pagebreak';import _0x57f549 from'./integrations/paragraph';import _0x52a388 from'./integrations/removeformat';import _0x56da02 from'./integrations/restrictededitingmode';import _0x5983fd from'./integrations/shiftentercommand';import _0x393873 from'./integrations/standardeditingmode';import _0x43a993 from'./integrations/style';import _0x377240 from'./integrations/table';import _0x2f8ab8 from'./integrations/tablemergesplit';import _0x111889 from'./integrations/tableheadings';import _0x28512d from'./integrations/tableclipboard';import _0x4ea5b2 from'./integrations/tablecolumnresize';import _0x5d177b from'./integrations/template';import _0x36ee38 from'./integrations/tableofcontents';import _0x3a72e6 from'./integrations/title';import _0x565aeb from'./integrations/undo';import{getTranslation as _0x5b781a}from'./utils/common-translations';import _0x4fb522 from'./integrations/tablecaption';import _0x27ca1f from'./integrations/documentlistproperties';import _0x17f744 from'./integrations/tableproperties';export default class p extends _0x18a65c{static get[_0x54b4('0x45')](){return[_0x54b4('0x7c'),_0xafeeac,_0x6a6cc,_0x4a6185,_0x5abe4f,_0x2f07ff,_0x4051cd,_0x5b1d77,_0x14eacc,_0xf58d45,_0x3a0962,_0x27ca1f,_0xb85aca,_0x1f3ddd,_0x3c5773,_0x5e8a22,_0x3e367b,_0x36a65a,_0x486285,_0x493455,_0x145855,_0x3fec61,_0x19650c,_0x36d40f,_0x413229,_0x1a949c,_0x5bb666,_0xe3a5a5,_0x18b764,_0x6749c6,_0x345617,_0x57f549,_0x52a388,_0x56da02,_0x5983fd,_0x393873,_0x43a993,_0x377240,_0x2f8ab8,_0x111889,_0x4fb522,_0x28512d,_0x4ea5b2,_0x36ee38,_0x17f744,_0x5d177b,_0x3a72e6,_0x565aeb];}static get[_0x54b4('0x6')](){return _0x54b4('0x46');}constructor(_0x1198fa){function _0x13bbf4(_0x30d09e){return _0x30d09e['map'](_0x2aed1f=>String[_0x54b4('0x68')](_0x2aed1f))[_0x54b4('0x114')]('');}super(_0x1198fa),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x58dcbe,_0x28ac31,_0x4b809f,_0x530a30)=>{this[_0x54b4('0xeb')][_0x54b4('0x75')](()=>{for(const _0x3d4f6e of[..._0x530a30,..._0x4b809f])this['_model']['markers'][_0x54b4('0xf4')](_0x3d4f6e)&&_0x1198fa[_0x54b4('0x30')][_0x54b4('0xf1')](_0x3d4f6e);});}),this[_0x54b4('0xa3')]=new _0x5cd162(this[_0x54b4('0xd9')]['model'][_0x54b4('0x111')],this['editor'][_0x54b4('0xd1')]),this['_adapter']=null,this[_0x54b4('0xfb')]=new Dt(this[_0x54b4('0xd9')]),this[_0x54b4('0x12b')]=new Map(),this['_commentsRepository']=_0x1198fa[_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x7c')),this[_0x54b4('0xc0')]=new Set(),this['_model']=this['editor'][_0x54b4('0xa0')],this[_0x54b4('0x126')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1198fa['config']['define'](_0x54b4('0xac'),_0x54b4('0xba')),this[_0x54b4('0x6b')]=_0x1198fa[_0x54b4('0x60')][_0x54b4('0x24')]('trackChanges.trackFormatChanges'),_0x1198fa[_0x54b4('0x60')][_0x54b4('0x96')](_0x54b4('0xd0'),!0x0),this[_0x54b4('0x37')]=_0x1198fa[_0x54b4('0x60')][_0x54b4('0x24')]('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x5e56c8(_0x1198fa,this[_0x54b4('0xc0')]),this[_0x13bbf4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13bbf4([0x34,0x30,0x34,0x36,0x31,0x34,0x35,0x36]);}[_0x54b4('0x81')](){const _0x4098ce=this[_0x54b4('0xd9')];_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')]('editingDowncast')[_0x54b4('0x10c')]({'model':_0x54b4('0xe5'),'view':_0x473955=>{const {id:_0x5b27a3,type:_0x599e4f}=this['_splitMarkerName'](_0x473955[_0x54b4('0x2c')]),_0x47e7be=[_0x54b4('0x10e'),'ck-suggestion-marker-'+_0x599e4f];let _0x3aca16=0xbb8;return this[_0x54b4('0xda')][_0x54b4('0xbe')](_0x473955[_0x54b4('0x2c')])&&(_0x47e7be[_0x54b4('0x4a')]('ck-suggestion-marker--active'),_0x3aca16=0xbc2),_0x54b4('0x101')==_0x599e4f&&(_0x3aca16+=0x5),{'classes':_0x47e7be,'attributes':{'data-suggestion':_0x5b27a3},'priority':_0x3aca16};}}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x99'))[_0x54b4('0x79')](_0x28c6fd=>{_0x28c6fd['on'](_0x54b4('0x124'),(_0x12f382,_0x42be60,_0x16a616)=>{if(!_0x16a616[_0x54b4('0x90')]['showSuggestionHighlights'])return;const _0x26ff39=_0x42be60['item'];if(!_0x26ff39)return;const _0x3a9f49=_0x16a616[_0x54b4('0x2')]['toViewElement'](_0x26ff39);_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x111')][_0x54b4('0x104')](_0x26ff39)&&_0x3a9f49&&!_0x3a9f49[_0x54b4('0xfd')](_0x54b4('0x5d'))&&_0x3a9f49['is'](_0x54b4('0xb7'))&&_0x2f385b(_0x3a9f49,_0x16a616[_0x54b4('0x57')]);},{'priority':_0x54b4('0x15')});}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x99'))[_0x54b4('0x10c')]({'model':_0x54b4('0xe5'),'view':(_0x4ed9a0,_0x3a62fe)=>{if(!_0x3a62fe[_0x54b4('0x90')][_0x54b4('0x23')])return null;const {type:_0x360019}=this[_0x54b4('0x71')](_0x4ed9a0['markerName']);return{'classes':[_0x54b4('0x10e'),_0x54b4('0xbf')+_0x360019],'priority':0xbb8};}});const _0x3badd0=({showActiveMarkers:_0x3f6334=!0x0}={})=>(_0x119b6a,_0x428440,_0x332fe3)=>{if(!_0x428440[_0x54b4('0x127')])return;if(_0x428440[_0x54b4('0x127')]['is']('selection'))return void _0x332fe3[_0x54b4('0x69')][_0x54b4('0xbd')](_0x428440[_0x54b4('0x127')],_0x119b6a[_0x54b4('0x2a')]);const _0x512626=_0x332fe3[_0x54b4('0x2')][_0x54b4('0x112')](_0x428440[_0x54b4('0x127')]);if(!(_0x428440['item']['is']('element')&&_0x4098ce['model'][_0x54b4('0x111')][_0x54b4('0x49')](_0x428440[_0x54b4('0x127')])&&!_0x512626[_0x54b4('0xfd')](_0x54b4('0x12c'))))return;const {id:_0x2207ac}=this[_0x54b4('0x71')](_0x428440[_0x54b4('0x2c')]);_0x332fe3[_0x54b4('0x57')][_0x54b4('0x61')]([_0x54b4('0x10e'),'ck-suggestion-marker-formatBlock'],_0x512626),_0x332fe3[_0x54b4('0x57')]['setAttribute'](_0x54b4('0x7e'),_0x2207ac,_0x512626),_0x332fe3[_0x54b4('0x2')][_0x54b4('0x5e')](_0x512626,_0x428440[_0x54b4('0x2c')]),_0x3f6334&&(this[_0x54b4('0xda')][_0x54b4('0xbe')](_0x428440[_0x54b4('0x2c')])?_0x332fe3[_0x54b4('0x57')][_0x54b4('0x61')](_0x54b4('0xb2'),_0x512626):_0x332fe3[_0x54b4('0x57')][_0x54b4('0x39')](_0x54b4('0xb2'),_0x512626));for(const _0x34f2cc of _0x4098ce[_0x54b4('0xa0')]['createRangeIn'](_0x428440['item'])['getItems']())_0x332fe3[_0x54b4('0x69')][_0x54b4('0xbd')](_0x34f2cc,_0x119b6a[_0x54b4('0x2a')]);_0x332fe3[_0x54b4('0x69')][_0x54b4('0xbd')](_0x428440[_0x54b4('0x127')],_0x119b6a['name']);};_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x99'))[_0x54b4('0x79')](_0xd55823=>{_0xd55823['on'](_0x54b4('0xae'),(_0x2636f7,_0x53768c,_0x184d72)=>{_0x184d72[_0x54b4('0x90')]['showSuggestionHighlights']&&_0x3badd0({'showActiveMarkers':!0x1})(_0x2636f7,_0x53768c,_0x184d72);},{'priority':'highest'});}),_0x4098ce[_0x54b4('0x10a')]['for'](_0x54b4('0x99'))['markerToData']({'model':_0x54b4('0xe5'),'view':(_0x43b726,_0x11645d)=>_0x11645d[_0x54b4('0x90')][_0x54b4('0x23')]?null:{'group':_0x54b4('0xe5'),'name':_0x43b726[_0x54b4('0x9f')](0xb)}}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x123'))[_0x54b4('0x7b')]({'view':{'name':_0x54b4('0xe5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x66dbe8,{writer:_0x3db6cd})=>{let _0x3b4992=_0x54b4('0x91')+_0x66dbe8[_0x54b4('0x5b')](_0x54b4('0xb4'))+':'+_0x66dbe8[_0x54b4('0x5b')]('id');return _0x66dbe8[_0x54b4('0x5b')](_0x54b4('0x77'))&&(_0x3b4992+=':'+_0x66dbe8['getAttribute']('marker-count')),_0x3db6cd['createElement'](_0x54b4('0x1a'),{'data-name':_0x3b4992});}}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x123'))[_0x54b4('0x108')]({'view':_0x54b4('0xe5')}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')]('editingDowncast')['add'](_0xd383bc=>{_0xd383bc['on'](_0x54b4('0xae'),_0x3badd0(),{'priority':_0x54b4('0x15')});}),_0x4098ce['conversion'][_0x54b4('0x3d')]('editingDowncast')[_0x54b4('0x79')](_0x13f84e=>{_0x13f84e['on']('removeMarker:suggestion:formatBlock',(_0x83f1b8,_0xf4df49,_0x5443f2)=>{const _0x5e3779=_0x5443f2[_0x54b4('0x2')][_0x54b4('0xd6')](_0xf4df49[_0x54b4('0x2c')]);if(_0x5e3779)for(const _0x37bd2b of _0x5e3779)_0x37bd2b[_0x54b4('0xfd')](_0x54b4('0x12c'))||(_0x5443f2[_0x54b4('0x57')][_0x54b4('0x39')]([_0x54b4('0x10e'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37bd2b),_0x5443f2[_0x54b4('0x57')]['removeAttribute'](_0x54b4('0x7e'),_0x37bd2b),_0x5443f2[_0x54b4('0x2')]['unbindElementFromMarkerName'](_0x37bd2b,_0xf4df49[_0x54b4('0x2c')]));},{'priority':_0x54b4('0x15')});}),_0x4098ce['model'][_0x54b4('0x73')][_0x54b4('0xa7')](_0x2219a2=>{let _0x44fbef=!0x1;const _0x315ac7=Array[_0x54b4('0xca')](_0x4098ce['model']['document']['differ'][_0x54b4('0x110')]()),_0x3957b8=new Set();for(const {name:_0x2bd505,data:_0x1e4a71}of _0x315ac7){const {group:_0x10da73,type:_0x1c58fd,id:_0x200bbf}=this[_0x54b4('0x71')](_0x2bd505);if('suggestion'!==_0x10da73)continue;const _0xe806ef=this[_0x54b4('0x12b')]['get'](_0x200bbf);if(null!=_0x1e4a71['newRange']){_0x54b4('0x84')==_0x1c58fd&&(_0x44fbef=_0x44fbef||Mt(_0x1e4a71[_0x54b4('0x11f')],_0x2bd505,_0x2219a2,_0x4098ce[_0x54b4('0xa0')]['schema']));if(_0x1e4a71[_0x54b4('0x11f')][_0x54b4('0x116')]||'$graveyard'==_0x1e4a71[_0x54b4('0x11f')][_0x54b4('0x1b')][_0x54b4('0x59')]||_0x54b4('0xab')==_0x1c58fd&&!Nt(_0x1e4a71[_0x54b4('0x11f')])||_0x54b4('0x101')==_0x1c58fd&&!(!_t(_0x5364a8=_0x1e4a71[_0x54b4('0x11f')])&&!function(_0x6006d3){return _0x6006d3[_0x54b4('0xa')][_0x54b4('0x35')]==_0x6006d3[_0x54b4('0x94')][_0x54b4('0xc3')]&&_0x6006d3[_0x54b4('0xa')][_0x54b4('0xb6')];}(_0x5364a8)))_0x2219a2[_0x54b4('0x8d')](_0x2bd505),_0x44fbef=!0x0;else{if(!_0xe806ef||!_0xe806ef[_0x54b4('0x38')])continue;_0x3957b8['add'](_0xe806ef);}}}var _0x5364a8;return _0x3957b8[_0x54b4('0x11c')]>0x0&&(_0x44fbef=!!this[_0x54b4('0xa4')](_0x3957b8)||_0x44fbef),_0x44fbef;}),_0x4098ce['model'][_0x54b4('0x73')][_0x54b4('0xa7')](_0x15698f=>{let _0x4cd20a=!0x1;for(const _0x3ca08a of _0x4098ce[_0x54b4('0xa0')]['document'][_0x54b4('0xb5')][_0x54b4('0xc')]()){if('insert'!=_0x3ca08a[_0x54b4('0x32')])continue;const _0x1c073e=_0x3ca08a[_0x54b4('0xb1')][_0x54b4('0x2f')](_0x3ca08a[_0x54b4('0x113')]);if(_0x1c073e[_0x54b4('0xb6')])for(const _0x54a252 of this[_0x54b4('0x12b')]['values']()){if(_0x54a252[_0x54b4('0x25')]||!_0x54a252[_0x54b4('0x38')])continue;if(_0x54b4('0xab')!=_0x54a252[_0x54b4('0x32')])continue;const _0x2d6cdb=_0x54a252[_0x54b4('0x10f')]();if(_0x2d6cdb[_0x54b4('0xa')][_0x54b4('0x35')]!=_0x2d6cdb[_0x54b4('0x94')]['parent']&&_0x2d6cdb[_0x54b4('0x94')][_0x54b4('0x63')](_0x3ca08a[_0x54b4('0xb1')])){const _0x20393a=_0x4098ce[_0x54b4('0xa0')]['createRange'](_0x2d6cdb[_0x54b4('0xa')],_0x1c073e);_0x15698f[_0x54b4('0x36')](_0x54a252[_0x54b4('0x65')](),{'range':_0x20393a}),_0x4cd20a=!0x0;}}}return _0x4cd20a;}),_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x6d')]['on'](_0x54b4('0x82'),(_0x5e6ba1,_0x270c90,_0x51ec7f)=>{if(null==_0x51ec7f){const {id:_0x5aed3b}=this[_0x54b4('0x71')](_0x270c90[_0x54b4('0x2a')]),_0x7e1786=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0x5aed3b);_0x7e1786&&_0x7e1786[_0x54b4('0x130')](_0x270c90[_0x54b4('0x2a')]);}}),_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x73')]['on'](_0x54b4('0x78'),()=>{const _0x1bf369=Array[_0x54b4('0xca')](_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x73')][_0x54b4('0xb5')][_0x54b4('0x110')]())['filter'](_0x4975e4=>_0x54b4('0xe5')===this[_0x54b4('0x71')](_0x4975e4['name'])[_0x54b4('0x133')]);if(0x0===_0x1bf369[_0x54b4('0x113')])return;_0x1bf369[_0x54b4('0x58')]((_0x31cf5c,_0x5c6d6c)=>{const _0xdf7893=_0x31cf5c[_0x54b4('0x12')][_0x54b4('0x27')],_0x1c1913=_0x5c6d6c['data'][_0x54b4('0x27')];return null===_0xdf7893&&null===_0x1c1913?0x0:null===_0xdf7893&&null!==_0x1c1913?-0x1:null!==_0xdf7893&&null===_0x1c1913?0x1:_0xdf7893[_0x54b4('0xa')][_0x54b4('0x6f')](_0x1c1913['start'])?-0x1:0x1;});const _0x292eb7=new Set(),_0x32672a=new Set();for(const {name:_0x33e19e,data:_0x2507e0}of _0x1bf369){const {id:_0x4bafa8}=this['_splitMarkerName'](_0x33e19e);if(null===_0x2507e0[_0x54b4('0x27')]){const _0x235f31=this['_handleNewSuggestionMarker'](_0x33e19e);_0x32672a[_0x54b4('0x79')](_0x235f31);}else{const _0xbd6fc6=this[_0x54b4('0x12b')]['get'](_0x4bafa8);null!==_0x2507e0[_0x54b4('0x11f')]||_0xbd6fc6[_0x54b4('0x38')]?(_0x292eb7['add'](_0xbd6fc6[_0x54b4('0xe8')]),_0x32672a[_0x54b4('0x79')](_0xbd6fc6)):this[_0x54b4('0x120')](_0xbd6fc6);}}_0x32672a[_0x54b4('0x11c')]>0x0&&this[_0x54b4('0x5')](_0x32672a);for(const _0x135d6c of _0x292eb7)this[_0x54b4('0x64')]('suggestionChanged',_0x135d6c);}),_0x4098ce[_0x54b4('0xa0')]['on'](_0x54b4('0x9b'),(_0x5427b5,_0x255b4b)=>{const _0x19c777=_0x255b4b[0x0];if(!this[_0x54b4('0x12b')][_0x54b4('0x11c')])return;if(!_0x19c777[_0x54b4('0xa9')])return;if(_0x19c777[_0x54b4('0x74')]['isUndo']||!_0x19c777['batch'][_0x54b4('0x10')])return;let _0x12db04,_0x4da277;switch(_0x19c777[_0x54b4('0x32')]){case _0x54b4('0x56'):_0x12db04=_0x4098ce['model'][_0x54b4('0x2d')](_0x19c777[_0x54b4('0xb1')]),_0x4da277=_0x12db04[_0x54b4('0x2f')](_0x19c777['howMany']);break;case _0x54b4('0x5f'):_0x12db04=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x2d')](_0x19c777[_0x54b4('0xef')]),_0x4da277=_0x4098ce[_0x54b4('0xa0')]['createPositionAt'](_0x19c777['moveTargetPosition']);break;case _0x54b4('0x3e'):_0x12db04=_0x4098ce['model'][_0x54b4('0x2d')](_0x19c777['targetPosition']),_0x4da277=_0x12db04[_0x54b4('0x2f')](_0x19c777[_0x54b4('0x136')]);break;default:return;}const _0x2631b0=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0xcb')](_0x12db04,_0x4da277);_0x4098ce['model'][_0x54b4('0x75')](()=>{for(const {suggestion:_0x4057db,meta:_0x1d114c}of this[_0x54b4('0x122')](_0x2631b0)){if(_0x4057db[_0x54b4('0x25')])continue;if(_0x54b4('0x84')==_0x4057db[_0x54b4('0x32')])continue;const _0x1fd3e5=_0x4057db[_0x54b4('0x12')]&&_0x4057db[_0x54b4('0x12')][_0x54b4('0xaf')];(_0x54b4('0xab')!=_0x4057db[_0x54b4('0x32')]||_0x54b4('0x5f')==_0x19c777['type']&&!_0x1fd3e5)&&(_0x1d114c[_0x54b4('0x137')]||_0x54b4('0x51')==_0x4057db[_0x54b4('0x32')]&&_0x1d114c[_0x54b4('0x1e')]||_0x4057db[_0x54b4('0x10f')]()[_0x54b4('0x106')](_0x2631b0)&&this[_0x54b4('0x48')](_0x4057db,_0x12db04,_0x4da277));}});},{'priority':_0x54b4('0x95')}),_0x4098ce['model']['on'](_0x54b4('0x97'),(_0xb5d3a5,_0x564229)=>{const _0x2695d5=_0x564229[0x0],_0x5de635=_0x564229[0x1];if(_0x5de635&&_0x5de635[_0x54b4('0x8a')])return;if(this[_0x54b4('0x107')])return;if(!this[_0x54b4('0xf8')][_0x54b4('0xb3')])return;if(_0x2695d5[_0x54b4('0x116')])return;const _0x40de05=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x111')],{start:_0x5a897c,end:_0x113ac7}=_0x2695d5['getFirstRange'](),_0x4d102f=_0x5a897c[_0x54b4('0x7d')]&&_0x40de05['isLimit'](_0x5a897c[_0x54b4('0x7d')])?null:_0x40de05['getNearestSelectionRange'](_0x5a897c,_0x54b4('0x4b')),_0x4c6b24=_0x113ac7[_0x54b4('0xc3')]&&_0x40de05[_0x54b4('0xed')](_0x113ac7[_0x54b4('0xc3')])?null:_0x40de05[_0x54b4('0x8e')](_0x113ac7,_0x54b4('0xc4')),_0x37c372=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0xcb')](_0x4d102f?_0x4d102f[_0x54b4('0xa')]:_0x5a897c,_0x4c6b24?_0x4c6b24['end']:_0x113ac7);_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x75')](_0x39ff30=>{this['markDeletion'](_0x37c372);const _0x2fae64=_0x4098ce[_0x54b4('0xa0')]['schema'][_0x54b4('0x8e')](_0x37c372[_0x54b4('0xa')]);_0x2695d5['is'](_0x54b4('0x109'))?_0x39ff30['setSelection'](_0x2fae64):_0x2695d5[_0x54b4('0x7')](_0x2fae64);}),_0xb5d3a5['stop']();},{'priority':_0x48e910[_0x54b4('0x4')]+0xa}),_0x4098ce[_0x54b4('0xa0')]['on'](_0x54b4('0x2e'),(_0x1e8429,_0x501443)=>{const _0x48dc29=_0x501443[_0x501443['length']-0x1];_0x48dc29&&_0x48dc29[_0x54b4('0x8a')]||this[_0x54b4('0x107')]||this[_0x54b4('0xf8')][_0x54b4('0xb3')]&&(_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x75')](()=>{let _0x1a3a33=_0x4098ce['model'][_0x54b4('0x2e')](_0x501443[0x0],_0x501443[0x1],_0x501443[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a3a33)return;_0x1e8429['return']=_0x1a3a33[_0x54b4('0x9')]();const _0x2e4daf=_0x1a3a33[_0x54b4('0x94')][_0x54b4('0xc3')],_0x64e3f4=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x111')];_0x2e4daf&&_0x64e3f4[_0x54b4('0x49')](_0x2e4daf)&&!_0x64e3f4[_0x54b4('0x104')](_0x2e4daf)&&(_0x1a3a33=_0x4098ce['model'][_0x54b4('0xcb')](_0x1a3a33['start'],_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x2d')](_0x2e4daf,'end'))),this[_0x54b4('0xb')](_0x1a3a33);}),_0x1e8429['stop']());},{'priority':'high'}),this[_0x54b4('0xd9')][_0x54b4('0xbb')]['add']('trackChanges',this[_0x54b4('0xf8')]),this[_0x54b4('0x131')]('trackChanges');const _0x8e56ed=new _0x3536b6(_0x4098ce,this[_0x54b4('0x12b')]);_0x4098ce[_0x54b4('0xbb')][_0x54b4('0x79')](_0x54b4('0x132'),_0x8e56ed),this['enableCommand']('acceptSuggestion');const _0x361cf8=new _0xb47eca(_0x4098ce,this[_0x54b4('0x12b')]);_0x4098ce['commands']['add'](_0x54b4('0xc9'),_0x361cf8),this[_0x54b4('0x131')](_0x54b4('0xc9')),_0x4098ce[_0x54b4('0xbb')][_0x54b4('0x79')]('acceptAllSuggestions',new _0x22a8bf(_0x4098ce,_0x8e56ed,this['_suggestions'])),this[_0x54b4('0x131')](_0x54b4('0x9c')),_0x4098ce['commands'][_0x54b4('0x79')](_0x54b4('0x34'),new _0x22a8bf(_0x4098ce,_0x361cf8,this[_0x54b4('0x12b')])),this[_0x54b4('0x131')](_0x54b4('0x34')),_0x4098ce[_0x54b4('0xbb')]['add'](_0x54b4('0xc8'),new _0x5d7471(_0x4098ce,_0x8e56ed,this[_0x54b4('0x12b')])),this[_0x54b4('0x131')]('acceptSelectedSuggestions'),_0x4098ce[_0x54b4('0xbb')]['add']('discardSelectedSuggestions',new _0x5d7471(_0x4098ce,_0x361cf8,this[_0x54b4('0x12b')])),this[_0x54b4('0x131')]('discardSelectedSuggestions');const _0x251733=_0x4098ce[_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x7c'));this[_0x54b4('0x53')](_0x251733,_0x54b4('0xfc'),(_0xf04ca9,{threadId:_0x310ea0})=>{const _0x5987fd=this['_suggestions'][_0x54b4('0x24')](_0x310ea0);_0x5987fd&&_0x5987fd['commentThread']&&0x1===_0x5987fd[_0x54b4('0x134')][_0x54b4('0x113')]&&this[_0x54b4('0x76')](_0x310ea0,{'hasComments':!0x0});},{'priority':_0x54b4('0xe9')}),this[_0x54b4('0x53')](_0x251733,_0x54b4('0xa2'),(_0x37f3f5,{threadId:_0x46cd39})=>{const _0x2c7feb=this['_suggestions']['get'](_0x46cd39);_0x2c7feb&&_0x2c7feb[_0x54b4('0x134')]&&!_0x2c7feb['commentThread'][_0x54b4('0x113')]&&this[_0x54b4('0x76')](_0x46cd39,{'hasComments':!0x1});},{'priority':_0x54b4('0xe9')});}set[_0x54b4('0x0')](_0x5d1c17){if(this['_adapter'])throw new _0x5e58a3(_0x54b4('0x93'),this);this[_0x54b4('0xdb')]=_0x5d1c17;}get['adapter'](){return this['_adapter'];}[_0x54b4('0xb0')]({skipNotAttached:_0x8811bf=!0x1,toJSON:_0x9da20f=!0x1}={}){const _0x1be839=[];for(const _0x177e9e of this['_suggestions']['values']())_0x8811bf&&!_0x177e9e[_0x54b4('0x38')]||_0x1be839['push'](_0x177e9e);return _0x9da20f?_0x1be839[_0x54b4('0xf')](_0x5d9bbb=>_0x5d9bbb[_0x54b4('0x138')]()):_0x1be839;}[_0x54b4('0xde')](_0x2d6cbd){const _0x4cb3bd=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0x2d6cbd);if(!_0x4cb3bd)throw new _0x5e58a3(_0x54b4('0x10d'),this);return _0x4cb3bd;}[_0x54b4('0x83')](_0x335455){return this['_suggestions']['has'](_0x335455);}[_0x54b4('0x72')](_0x1721fc){const {authorId:_0x216901,id:_0x263ad8,attributes:_0x2a6900}=_0x1721fc,[_0x52b76e,_0x22839b]=_0x1721fc[_0x54b4('0x32')][_0x54b4('0x5f')](':'),_0x131471=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0x263ad8)||this[_0x54b4('0x47')](_0x52b76e,_0x22839b,_0x263ad8,_0x216901,_0x2a6900);if(this[_0x54b4('0xc5')](_0x131471),this[_0x54b4('0x29')](_0x131471,_0x52b76e,_0x22839b||null,_0x216901),_0x131471[_0x54b4('0xe')]=_0x1721fc[_0x54b4('0xe')],_0x2a6900&&_0x2a6900['@external']){const _0x5dd5b9=_0x2a6900['@external'],_0x39cd9b=this[_0x54b4('0x117')](_0x5dd5b9[_0x54b4('0x8b')]);_0x131471[_0x54b4('0xe3')]=_0x5dd5b9[_0x54b4('0xe')],_0x131471[_0x54b4('0x11a')]=_0x39cd9b,_0x131471[_0x54b4('0x3f')]=!0x0;}else _0x131471[_0x54b4('0xe3')]=_0x1721fc[_0x54b4('0xe')];switch(_0x1721fc[_0x54b4('0x12')]&&(_0x131471['data']=_0x1721fc[_0x54b4('0x12')]),_0x1721fc['attributes']&&(_0x131471[_0x54b4('0x3c')]=_0x1721fc['attributes']),this['_adapter']&&this[_0x54b4('0xdb')][_0x54b4('0xd4')]||(_0x131471[_0x54b4('0x8f')]=!0x0),this[_0x54b4('0x126')][_0x54b4('0x24')](_0x131471)){case _0x54b4('0xf7'):this['_suggestionState'][_0x54b4('0x118')](_0x131471,_0x54b4('0x40'));break;case _0x54b4('0x11'):_0x131471[_0x54b4('0x38')]?(this[_0x54b4('0x126')]['set'](_0x131471,_0x54b4('0x43')),this[_0x54b4('0x64')](_0x54b4('0x9e'),_0x131471)):this[_0x54b4('0x126')][_0x54b4('0x118')](_0x131471,_0x54b4('0x87'));}return _0x131471;}[_0x54b4('0x132')](_0x168813){this[_0x54b4('0x8a')](()=>{this['editor'][_0x54b4('0xa0')][_0x54b4('0x75')](()=>{for(const _0x7fc796 of _0x168813[_0x54b4('0x3b')]())_0x7fc796[_0x54b4('0xa6')]();});});}[_0x54b4('0xc9')](_0x244f3e){this[_0x54b4('0x8a')](()=>{this[_0x54b4('0xd9')][_0x54b4('0xa0')][_0x54b4('0x75')](()=>{for(const _0x22c272 of _0x244f3e[_0x54b4('0x3b')]())_0x22c272[_0x54b4('0x67')]();});});}[_0x54b4('0x131')](_0x3188cc,_0xf01606){const _0x3b494a=this[_0x54b4('0xd9')][_0x54b4('0xbb')][_0x54b4('0x24')](_0x3188cc);if(!_0x3b494a)throw new _0x5e58a3(_0x54b4('0x139'),this,{'commandName':_0x3188cc});this[_0x54b4('0xc0')][_0x54b4('0x79')](_0x3b494a),_0xf01606&&_0x3b494a['on'](_0x54b4('0x4c'),(_0x45fb2a,_0xfdfbe0)=>{this[_0x54b4('0xf8')][_0x54b4('0xb3')]&&(this[_0x54b4('0x107')]||_0xfdfbe0['length']>0x0&&_0xfdfbe0[_0xfdfbe0[_0x54b4('0x113')]-0x1]&&_0xfdfbe0[_0xfdfbe0['length']-0x1][_0x54b4('0x8a')]||(_0xf01606((..._0x5ab931)=>_0x3b494a[_0x54b4('0x4c')](..._0x5ab931,{'forceDefaultExecution':!0x0}),..._0xfdfbe0),_0x45fb2a[_0x54b4('0xe6')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x298eed){let _0x246a55,_0x1d1f8d;const _0x494a17=this[_0x54b4('0x107')];this[_0x54b4('0x107')]=!0x0;try{_0x246a55=_0x298eed();}catch(_0x3d9c66){_0x1d1f8d=_0x3d9c66;}return _0x494a17||(this[_0x54b4('0x107')]=!0x1),_0x1d1f8d&&_0x5e58a3['rethrowUnexpectedError'](_0x1d1f8d,this),_0x246a55;}['markInsertion'](_0x48d989,_0x2e79e8=null,_0x51d72c={}){if(_0x48d989['isCollapsed'])return null;const _0x24cab6=this[_0x54b4('0xd9')]['plugins'][_0x54b4('0x24')]('Users')['me'];for(const {suggestion:_0x1d499d,meta:_0x2fb3d8}of this[_0x54b4('0x122')](_0x48d989,_0x54b4('0x51')))if(_0x2fb3d8[_0x54b4('0x1e')]){if(!_0x2fb3d8[_0x54b4('0xc6')]){if(!this[_0x54b4('0x37')]&&_0x2fb3d8[_0x54b4('0x137')])continue;return _0x1d499d;}if(_0x2e79e8==_0x1d499d[_0x54b4('0x12d')]){const _0x2dfcbd=_0x1d499d[_0x54b4('0x10f')]();return _0x2dfcbd[_0x54b4('0xa')][_0x54b4('0x63')](_0x48d989['end'])?this[_0x54b4('0x8')](_0x1d499d,this['_model'][_0x54b4('0xcb')](_0x48d989['start'],_0x2dfcbd['end'])):this[_0x54b4('0x8')](_0x1d499d,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x2dfcbd[_0x54b4('0xa')],_0x48d989[_0x54b4('0x94')])),_0x1d499d;}}const _0x1ecb93=_0x5f30bf(),_0x183273=_0x24cab6['id'],_0x3d343a=_0x2e79e8?_0x54b4('0x98')+_0x2e79e8:_0x54b4('0x51'),_0x2b79be=this['_setSuggestionData']({'id':_0x1ecb93,'type':_0x3d343a,'createdAt':new Date(),'authorId':_0x183273,'attributes':_0x51d72c});return this[_0x54b4('0xe4')](_0x3d343a,_0x1ecb93,_0x183273,_0x48d989),_0x2b79be;}[_0x54b4('0xee')](_0x268d12,_0x1e54c1='multi',_0x5d02ad={}){const _0x3a3644=this['editor'][_0x54b4('0xdd')][_0x54b4('0x24')]('Users')['me'],_0x2c5f50=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0x51'),_0x1e54c1,_0x54b4('0x114'));for(const _0x5f4afe of this['getSuggestions']())if(_0x5f4afe[_0x54b4('0x11a')]['id']==_0x3a3644['id']&&_0x54b4('0x51')==_0x5f4afe['type']&&_0x5f4afe['subType']==_0x1e54c1&&(_0x2c5f50(_0x5f4afe[_0x54b4('0x44')](),_0x268d12)||_0x2c5f50(_0x268d12,_0x5f4afe[_0x54b4('0x44')]()))){for(const _0x3bed4b of _0x268d12)_0x5f4afe[_0x54b4('0x66')](_0x3bed4b);return _0x5f4afe;}if(this[_0x54b4('0x37')])for(const _0x252821 of _0x268d12)for(const {suggestion:_0x89d62e,meta:_0x51b03b}of this[_0x54b4('0x122')](_0x252821,_0x54b4('0x51'))){if(!_0x51b03b[_0x54b4('0x1e')])continue;let _0x5e103c=!0x0;for(const _0x13edac of _0x89d62e['getRanges']())for(const _0x4737e3 of _0x268d12)if(!_0x13edac[_0x54b4('0x106')](_0x4737e3)){_0x5e103c=!0x1;break;}if(_0x5e103c)return _0x89d62e;}const _0x4e99cd=_0x5f30bf(),_0x4b5511=_0x3a3644['id'],_0x35f732='insertion:'+_0x1e54c1,_0x5a99bb=this[_0x54b4('0xf0')]({'id':_0x4e99cd,'type':_0x35f732,'createdAt':new Date(),'authorId':_0x4b5511,'attributes':_0x5d02ad});for(const _0x44eecf of _0x268d12)this[_0x54b4('0xe4')](_0x35f732,_0x4e99cd,_0x4b5511,_0x44eecf,_0xf20766[_0x54b4('0x21')]());return _0x5a99bb;}['markInlineFormat'](_0x26c094,_0x585064,_0x7be575=null,_0x23d698={}){if(_0x7be575=_0x7be575||$t(_0x585064),_0x26c094['isCollapsed'])return null;if(_0x54b4('0x6a')===this[_0x54b4('0x6b')]){const _0x46862e=this['_suggestionFactory'][_0x54b4('0xec')](_0x54b4('0x84'),_0x7be575,_0x54b4('0xa6'));return this['forceDefaultExecution'](()=>_0x46862e([_0x26c094],_0x585064,_0x23d698)),null;}const _0x3ea46d=this['editor'][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7'))['me'],_0x6e6c09=[];if(_0x54b4('0x9a')!==this[_0x54b4('0x6b')])for(const {suggestion:_0x2094d9,meta:_0x1b7eb8}of this[_0x54b4('0x122')](_0x26c094,'insertion'))_0x1b7eb8[_0x54b4('0x1e')]&&!_0x1b7eb8[_0x54b4('0xf2')]&&_0x6e6c09[_0x54b4('0x4a')](..._0x2094d9['getRanges']());const _0x11b4c7=function(_0xae7aeb,_0x39b2cf){const _0x3ae125=[];for(const _0x3912ce of _0x39b2cf){const _0x2385f5=_0xae7aeb['getIntersection'](_0x3912ce);_0x2385f5&&_0x3ae125[_0x54b4('0x4a')](_0x2385f5);}return _0x3ae125;}(_0x26c094,_0x6e6c09),_0x15bfe4=function(_0x4dae96,_0x2436cf){const _0xc8a348=[_0x4dae96];for(const _0x178d90 of _0x2436cf){let _0x1abba0=0x0;for(;_0x1abba0<_0xc8a348['length'];){const _0x595eb6=_0xc8a348[_0x1abba0]['getDifference'](_0x178d90);_0xc8a348[_0x54b4('0xcc')](_0x1abba0,0x1,..._0x595eb6),_0x1abba0+=_0x595eb6[_0x54b4('0x113')];}}return _0xc8a348;}(_0x26c094,_0x6e6c09);_0x11b4c7[_0x54b4('0x113')]&&this[_0x54b4('0xeb')]['change'](()=>{for(const _0x4d2012 of _0x11b4c7){const _0x272cde=this['_suggestionFactory'][_0x54b4('0xec')](_0x54b4('0x84'),_0x7be575,_0x54b4('0xa6'));this['forceDefaultExecution'](()=>_0x272cde([_0x4d2012],_0x585064,_0x23d698));}});for(const _0x5b8186 of _0x15bfe4){let _0x34b7e8=null,_0x236ada=_0x5b8186[_0x54b4('0xa')],_0x1a280e=_0x5b8186['end'];for(const {suggestion:_0x48e5d4,meta:_0x149e75}of this[_0x54b4('0x122')](_0x5b8186,_0x54b4('0x84'))){if(!_0x149e75[_0x54b4('0x1e')])continue;if(_0x48e5d4['subType']!=_0x7be575)continue;const _0xcf13ee=_0x48e5d4[_0x54b4('0x10f')]();if(_0xcf13ee['containsRange'](_0x5b8186,!0x0))return null;_0x236ada=_0x236ada[_0x54b4('0x6f')](_0xcf13ee[_0x54b4('0xa')])?_0x236ada:_0xcf13ee[_0x54b4('0xa')],_0x1a280e=_0x1a280e[_0x54b4('0x20')](_0xcf13ee[_0x54b4('0x94')])?_0x1a280e:_0xcf13ee[_0x54b4('0x94')],_0x34b7e8?_0xcf13ee[_0x54b4('0xa')][_0x54b4('0x6f')](_0x34b7e8[_0x54b4('0x10f')]()[_0x54b4('0xa')])?(_0x34b7e8[_0x54b4('0x16')](),_0x34b7e8=_0x48e5d4):_0x48e5d4[_0x54b4('0x16')]():_0x34b7e8=_0x48e5d4;}const _0x1fd5c5=this['_model']['createRange'](_0x236ada,_0x1a280e);if(_0x34b7e8)this['_setSuggestionRange'](_0x34b7e8,_0x1fd5c5);else{const _0x3f89f4=_0x5f30bf(),_0x443faf=_0x3ea46d['id'];this[_0x54b4('0xf0')]({'id':_0x3f89f4,'type':'formatInline:'+_0x7be575,'data':_0x585064,'createdAt':new Date(),'authorId':_0x443faf,'attributes':_0x23d698}),this[_0x54b4('0xe4')](_0x54b4('0x8c')+_0x7be575,_0x3f89f4,_0x443faf,_0x1fd5c5);}}return null;}[_0x54b4('0xcd')](_0x41f1e9,_0x20e8ae,_0x2dc45e=[],_0x12c1ba=null,_0x31943e={}){_0x20e8ae[_0x54b4('0x12a')]||(_0x20e8ae[_0x54b4('0x12a')]=_0x20e8ae[_0x54b4('0x105')]),_0x20e8ae[_0x54b4('0xaf')]=_0x41f1e9['is'](_0x54b4('0xea')),_0x12c1ba=_0x12c1ba||$t(_0x20e8ae);const _0x4ecc03=_0x2dc45e[_0x54b4('0xf')](_0x2c0178=>Rt(_0x2c0178,this[_0x54b4('0xeb')])),_0x4c7ea2=_0x41f1e9['is'](_0x54b4('0xea'))?_0x41f1e9:Rt(_0x41f1e9,this['_model']);if('never'===this['_trackFormatChanges']){const _0xb094a9=this[_0x54b4('0xfb')]['getSuggestionCallback'](_0x54b4('0xab'),_0x12c1ba,_0x54b4('0xa6'));return this[_0x54b4('0x8a')](()=>_0xb094a9([_0x4c7ea2],_0x20e8ae,_0x31943e)),null;}_0x4ecc03[_0x54b4('0x4a')](_0x4c7ea2);let _0x45dfee=!0x0;for(const _0x263d7a of _0x4ecc03)if(!this[_0x54b4('0xaa')](_0x263d7a)){_0x45dfee=!0x1;break;}if(_0x45dfee&&'always'!==this['_trackFormatChanges']){const _0x748c25=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0xab'),_0x12c1ba,'accept');return this[_0x54b4('0x8a')](()=>_0x748c25([_0x4c7ea2],_0x20e8ae,_0x31943e)),null;}let _0x158e1f=null,_0x44381c=_0x4c7ea2[_0x54b4('0xa')],_0x53a9bb=_0x4c7ea2[_0x54b4('0x94')];for(const {suggestion:_0x16c9ff,meta:_0x3cd73c}of this[_0x54b4('0x122')](_0x4c7ea2,_0x54b4('0xab'))){if(!_0x3cd73c['isOwn']||_0x3cd73c[_0x54b4('0xc6')]||_0x3cd73c[_0x54b4('0x137')]||_0x3cd73c['isInsideObject'])continue;if(_0x16c9ff[_0x54b4('0x12')][_0x54b4('0x12a')]!=_0x20e8ae[_0x54b4('0x12a')])continue;const _0x2abd0d=_0x16c9ff[_0x54b4('0x10f')]();if(_0x16c9ff['subType']==_0x12c1ba){if(_0x2abd0d[_0x54b4('0x106')](_0x4c7ea2,!0x0))return null;_0x44381c=_0x44381c[_0x54b4('0x6f')](_0x2abd0d[_0x54b4('0xa')])?_0x44381c:_0x2abd0d[_0x54b4('0xa')],_0x53a9bb=_0x53a9bb[_0x54b4('0x20')](_0x2abd0d[_0x54b4('0x94')])?_0x53a9bb:_0x2abd0d[_0x54b4('0x94')],_0x158e1f?_0x2abd0d[_0x54b4('0xa')][_0x54b4('0x6f')](_0x158e1f[_0x54b4('0x10f')]()[_0x54b4('0xa')])?(_0x158e1f[_0x54b4('0x16')](),_0x158e1f=_0x16c9ff):_0x16c9ff['removeMarkers']():_0x158e1f=_0x16c9ff;}else{const _0x4c7050=_0x4c7ea2[_0x54b4('0x54')](_0x2abd0d);this[_0x54b4('0xd2')](_0x16c9ff,_0x4c7050);}}const _0x2b4d99=this[_0x54b4('0xd9')]['plugins']['get'](_0x54b4('0xd7'))['me'],_0x3f514c=_0x5f30bf(),_0x37ab97=_0x2b4d99['id'];if(_0x158e1f)return this['_setSuggestionRange'](_0x158e1f,this[_0x54b4('0xeb')]['createRange'](_0x44381c,_0x53a9bb)),_0x158e1f;{const _0xc5ba47=this[_0x54b4('0xf0')]({'id':_0x3f514c,'type':_0x54b4('0x12f')+_0x12c1ba,'data':_0x20e8ae,'createdAt':new Date(),'authorId':_0x37ab97,'attributes':_0x31943e});return this['_addSuggestionMarker'](_0x54b4('0x12f')+_0x12c1ba,_0x3f514c,_0x37ab97,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x44381c,_0x53a9bb)),_0xc5ba47;}}[_0x54b4('0xe7')](_0x95b2ff,_0x10d3a0,_0x5a7697=[],_0x1ceae7=null,_0x3dd7fd={}){_0x10d3a0['formatGroupId']||(_0x10d3a0['formatGroupId']=_0x10d3a0['commandName']);const _0x43feb6=_0x95b2ff[0x0];_0x10d3a0[_0x54b4('0xaf')]=_0x43feb6['is'](_0x54b4('0xea')),_0x1ceae7=_0x1ceae7||$t(_0x10d3a0);const _0x35ffc8=_0x5a7697[_0x54b4('0xf')](_0x49710b=>Rt(_0x49710b,this['_model'])),_0x111497=_0x43feb6['is'](_0x54b4('0xea'))?_0x95b2ff:_0x95b2ff[_0x54b4('0xf')](_0x566748=>Rt(_0x566748,this[_0x54b4('0xeb')]));if(_0x54b4('0x6a')===this['_trackFormatChanges']){const _0x1cd2cb=this[_0x54b4('0xfb')]['getSuggestionCallback'](_0x54b4('0xab'),_0x1ceae7,_0x54b4('0xa6'));return this['forceDefaultExecution'](()=>_0x1cd2cb(_0x111497,_0x10d3a0,_0x3dd7fd)),null;}_0x35ffc8[_0x54b4('0x4a')](..._0x111497);let _0x27181c=!0x0;for(const _0x25d361 of _0x35ffc8)if(!this[_0x54b4('0xaa')](_0x25d361)){_0x27181c=!0x1;break;}if(_0x27181c&&_0x54b4('0x9a')!==this[_0x54b4('0x6b')]){const _0x33e640=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0xab'),_0x1ceae7,_0x54b4('0xa6'));return this[_0x54b4('0x8a')](()=>_0x33e640(_0x111497,_0x10d3a0,_0x3dd7fd)),null;}const _0x181af7=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')]('Users')['me'];for(const _0x55279d of this['getSuggestions']()){if(_0x55279d[_0x54b4('0x11a')]['id']!=_0x181af7['id'])continue;if(_0x54b4('0xab')!=_0x55279d[_0x54b4('0x32')]||_0x55279d[_0x54b4('0x12')][_0x54b4('0x12a')]!=_0x10d3a0[_0x54b4('0x12a')])continue;const _0x43808b=_0x55279d[_0x54b4('0x12d')]==_0x1ceae7;for(let _0x251684=0x0;_0x251684<_0x111497['length'];_0x251684++){const _0x3686f0=_0x111497[_0x251684];for(const _0x37ddae of _0x55279d[_0x54b4('0x92')]()){const _0x391995=_0x37ddae['getRange']();if(_0x3686f0[_0x54b4('0x63')](_0x391995)){_0x43808b?(_0x111497[_0x54b4('0xcc')](_0x251684,0x1),_0x251684--):_0x55279d[_0x54b4('0x8d')](_0x37ddae[_0x54b4('0x2a')]);break;}}}}if(0x0==_0x111497[_0x54b4('0x113')])return null;const _0x51c08b=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0xab'),_0x1ceae7,_0x54b4('0x114'));for(const _0xcf8fa of this[_0x54b4('0xb0')]())if(_0xcf8fa[_0x54b4('0x11a')]['id']==_0x181af7['id']&&_0x54b4('0xab')==_0xcf8fa['type']&&_0xcf8fa['data'][_0x54b4('0x12a')]==_0x10d3a0[_0x54b4('0x12a')]&&_0xcf8fa[_0x54b4('0x12d')]==_0x1ceae7&&(_0x51c08b(_0xcf8fa[_0x54b4('0x44')](),_0x111497)||_0x51c08b(_0x111497,_0xcf8fa[_0x54b4('0x44')]()))){for(const _0x10e9fc of _0x111497)_0xcf8fa[_0x54b4('0x66')](_0x10e9fc);return _0xcf8fa;}const _0x5ecf8c=_0x5f30bf(),_0x5dccfb=_0x181af7['id'],_0x25594f=_0x54b4('0x12f')+_0x1ceae7,_0x28a43e=this[_0x54b4('0xf0')]({'id':_0x5ecf8c,'type':_0x25594f,'data':_0x10d3a0,'createdAt':new Date(),'authorId':_0x5dccfb,'attributes':_0x3dd7fd});for(const _0x34a020 of _0x111497)this[_0x54b4('0xe4')](_0x25594f,_0x5ecf8c,_0x5dccfb,_0x34a020,_0xf20766['getMultiRangeId']());return _0x28a43e;}[_0x54b4('0x13a')](_0x4eaa86,_0x3b95e7=null,_0x1b4ac4={}){if(_0x4eaa86[_0x54b4('0x116')])return null;const _0x3184b2=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7'))['me'],_0x1f38d6=new _0x2cb8ac(_0x4eaa86['start'],_0x4eaa86[_0x54b4('0x94')]);for(const {suggestion:_0x4e32e9,meta:_0x45a947}of this[_0x54b4('0x122')](_0x1f38d6,_0x54b4('0x51')))if(_0x45a947[_0x54b4('0x1e')]&&!_0x45a947[_0x54b4('0xc6')]){if(_0x4e32e9['isMultiRange']){const _0x49a3d7=_0x4e32e9[_0x54b4('0x44')]()[_0x54b4('0x3')](_0x1f7e89=>_0x54b4('0x121')!=_0x1f7e89['root'][_0x54b4('0x59')]);_0x49a3d7[_0x54b4('0xd')](_0x1ff5f5=>_0x1f38d6[_0x54b4('0x106')](_0x1ff5f5,!0x0))&&_0x4e32e9[_0x54b4('0x67')]();if(_0x49a3d7['some'](_0x77e245=>_0x77e245[_0x54b4('0x106')](_0x1f38d6,!0x0))){const _0x549756=this['_suggestionFactory'][_0x54b4('0xec')](_0x54b4('0x101'),_0x3b95e7,'accept');return this['forceDefaultExecution'](()=>_0x549756([_0x1f38d6],null,_0x1b4ac4)),null;}}else{const _0x476c9b=_0x1f38d6[_0x54b4('0x54')](_0x4e32e9[_0x54b4('0x10f')]());null!==_0x476c9b&&_0x4e32e9[_0x54b4('0x1c')]([_0x476c9b],null,_0x1b4ac4);}}if(_0x1f38d6[_0x54b4('0x55')](),_0x1f38d6[_0x54b4('0x116')]||_0x54b4('0x121')==_0x1f38d6['root'][_0x54b4('0x59')])return null;let _0x251868=null,_0x257ccc=_0x1f38d6[_0x54b4('0xa')],_0x3ff1f1=_0x1f38d6['end'];for(const {suggestion:_0x4ba0bd,meta:_0x299c1e}of this[_0x54b4('0x122')](_0x1f38d6,_0x54b4('0x101')))if(_0x299c1e['isOwn']){if(_0x4ba0bd[_0x54b4('0x25')]&&this[_0x54b4('0x37')]){let _0x553a39=!0x0;for(const _0x234683 of _0x4ba0bd[_0x54b4('0x44')]()){if(_0x234683[_0x54b4('0x106')](_0x1f38d6,!0x0))return _0x4ba0bd;_0x1f38d6['containsRange'](_0x234683)||(_0x553a39=!0x1);}_0x553a39&&_0x4ba0bd['discard']();}else{const _0x5ec708=_0x4ba0bd['getFirstRange']();if(_0x5ec708[_0x54b4('0x106')](_0x1f38d6,!0x0)){if(!this[_0x54b4('0x37')]&&_0x299c1e['containsRangeInObject'])continue;return _0x4ba0bd;}_0x257ccc=_0x257ccc['isBefore'](_0x5ec708['start'])?_0x257ccc:_0x5ec708[_0x54b4('0xa')],_0x3ff1f1=_0x3ff1f1[_0x54b4('0x20')](_0x5ec708[_0x54b4('0x94')])?_0x3ff1f1:_0x5ec708[_0x54b4('0x94')],_0x251868?_0x5ec708[_0x54b4('0xa')][_0x54b4('0x6f')](_0x251868[_0x54b4('0x10f')]()['start'])?(_0x251868[_0x54b4('0x16')](),_0x251868=_0x4ba0bd):_0x4ba0bd['removeMarkers']():_0x251868=_0x4ba0bd;}}if(_0x251868)return this[_0x54b4('0x8')](_0x251868,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x257ccc,_0x3ff1f1)),_0x251868;{const _0x430359=_0x5f30bf(),_0x27a917=this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x257ccc,_0x3ff1f1),_0x8553c1=_0x3184b2['id'],_0x52ef06=_0x3b95e7?_0x54b4('0xbc')+_0x3b95e7:_0x54b4('0x101'),_0x615f3a=this['_setSuggestionData']({'id':_0x430359,'type':_0x52ef06,'createdAt':new Date(),'authorId':_0x8553c1,'attributes':_0x1b4ac4});return this['_addSuggestionMarker'](_0x52ef06,_0x430359,_0x8553c1,_0x27a917),_0x615f3a;}}['markMultiRangeDeletion'](_0x2fd035,_0x213205=_0x54b4('0x100'),_0x314eb3={}){const _0x19ba84=this[_0x54b4('0xd9')][_0x54b4('0xdd')]['get'](_0x54b4('0xd7'))['me'],_0x3bce33=_0x2fd035[_0x54b4('0xf')](_0x2bfa29=>new _0x2cb8ac(_0x2bfa29[_0x54b4('0xa')],_0x2bfa29[_0x54b4('0x94')])),_0x1fe999=new Set();for(const _0x113c98 of _0x3bce33)for(const {suggestion:_0x157201,meta:_0x2d3e94}of this[_0x54b4('0x122')](_0x113c98,_0x54b4('0x51')))_0x2d3e94[_0x54b4('0x1e')]&&!_0x2d3e94['isNextTo']&&_0x1fe999[_0x54b4('0x79')](_0x157201);for(const _0x5976ab of _0x1fe999)if(_0x5976ab[_0x54b4('0x25')]){const _0x2448e1=_0x5976ab[_0x54b4('0x44')]();(!_0x5976ab['attributes']||!_0x5976ab[_0x54b4('0x3c')][_0x54b4('0x18')])&&(_0x2448e1['every'](_0x3f2421=>_0x3bce33[_0x54b4('0xff')](_0x5062cd=>_0x5062cd[_0x54b4('0x106')](_0x3f2421,!0x0)))&&_0x5976ab['discard']());if(_0x3bce33['every'](_0x310259=>_0x2448e1['some'](_0x47ba0c=>_0x47ba0c[_0x54b4('0x106')](_0x310259,!0x0)))){const _0xe2d7c2=this['_suggestionFactory']['getSuggestionCallback'](_0x54b4('0x101'),_0x213205,_0x54b4('0xa6'));return this[_0x54b4('0x8a')](()=>_0xe2d7c2(_0x2fd035,null,_0x314eb3)),null;}}else{const _0x519371=_0x5976ab[_0x54b4('0x10f')]();_0x3bce33['some'](_0x5ea81f=>_0x5ea81f[_0x54b4('0x106')](_0x519371,!0x0))&&_0x5976ab[_0x54b4('0x67')]();if(_0x3bce33[_0x54b4('0xd')](_0x65f69=>_0x519371[_0x54b4('0x106')](_0x65f69,!0x0))){const _0x5a7c48=this[_0x54b4('0xfb')][_0x54b4('0xec')]('deletion',_0x213205,_0x54b4('0xa6'));return this['forceDefaultExecution'](()=>_0x5a7c48(_0x3bce33,null,_0x314eb3)),null;}}const _0x15e1a3=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0x101'),_0x213205,_0x54b4('0x114'));let _0x21cb49=null;for(const _0x4881be of this[_0x54b4('0xb0')]())if(_0x4881be[_0x54b4('0x11a')]['id']==_0x19ba84['id']&&_0x4881be['isInContent']&&'deletion'==_0x4881be[_0x54b4('0x32')]&&_0x4881be[_0x54b4('0x12d')]==_0x213205&&(_0x15e1a3(_0x4881be[_0x54b4('0x44')](),_0x3bce33)||_0x15e1a3(_0x3bce33,_0x4881be[_0x54b4('0x44')]()))){if(_0x21cb49){if(_0x4881be['commentThread']&&_0x4881be['commentThread'][_0x54b4('0x113')])continue;for(const _0x2f6382 of _0x4881be[_0x54b4('0x44')]())_0x21cb49[_0x54b4('0x5c')](_0x2f6382)||_0x21cb49['addRange'](_0x2f6382);_0x4881be['removeMarkers']();}else{_0x21cb49=_0x4881be;for(const _0x308c65 of _0x3bce33)_0x4881be['isIntersectingWithRange'](_0x308c65)||_0x4881be[_0x54b4('0x66')](_0x308c65);}}if(_0x21cb49)return _0x21cb49;_0x1fe999[_0x54b4('0x62')]();for(const _0x5eae0f of _0x3bce33)for(const {suggestion:_0x76085f,meta:_0x333e92}of this['_findSuggestions'](_0x5eae0f,_0x54b4('0x101')))_0x333e92['isOwn']&&_0x1fe999[_0x54b4('0x79')](_0x76085f);for(const _0x3bfe48 of _0x1fe999){const _0x3745bc=_0x3bfe48[_0x54b4('0x44')]();if(!_0x314eb3||!_0x314eb3['skipNestingCheck']){if(_0x3bce33[_0x54b4('0xd')](_0x3351bc=>_0x3745bc[_0x54b4('0xff')](_0x4b881b=>_0x4b881b['containsRange'](_0x3351bc,!0x0))))return _0x3bfe48;}(!_0x3bfe48['attributes']||!_0x3bfe48[_0x54b4('0x3c')][_0x54b4('0x18')])&&(_0x3745bc[_0x54b4('0xd')](_0x14c7bb=>_0x3bce33[_0x54b4('0xff')](_0x4455cb=>_0x4455cb[_0x54b4('0x106')](_0x14c7bb,!0x0)))&&_0x3bfe48[_0x54b4('0x67')]());}const _0x3635ad=_0x5f30bf(),_0x16e6ed=_0x19ba84['id'],_0xb7113b=_0x54b4('0xbc')+_0x213205,_0x29550d=this['_setSuggestionData']({'id':_0x3635ad,'type':_0xb7113b,'createdAt':new Date(),'authorId':_0x16e6ed,'attributes':_0x314eb3});for(const _0x4471a3 of _0x3bce33)_0x4471a3[_0x54b4('0x55')](),_0x4471a3[_0x54b4('0x116')]||_0x54b4('0x121')==_0x4471a3[_0x54b4('0x1b')]['rootName']||this[_0x54b4('0xe4')](_0xb7113b,_0x3635ad,_0x16e6ed,_0x4471a3,_0xf20766[_0x54b4('0x21')]());return _0x29550d;}['_setSuggestionRange'](_0x2aaf2d,_0x22dce5){const _0x33cc20=_0x2aaf2d[_0x54b4('0x65')]();this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x511aed=>{_0x511aed['updateMarker'](_0x33cc20,{'range':_0x22dce5});});}[_0x54b4('0xc5')](_0x4232d9){const _0x1b626d=_0x4232d9['id'],_0x18bac2=this['editor'][_0x54b4('0x60')]['get'](_0x54b4('0x50'));this[_0x54b4('0xc1')][_0x54b4('0xf3')](_0x1b626d)||this[_0x54b4('0xc1')][_0x54b4('0x52')]({'channelId':_0x18bac2,'threadId':_0x1b626d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3249ae=this[_0x54b4('0xc1')][_0x54b4('0x88')](_0x1b626d);_0x3249ae[_0x54b4('0x4f')](_0x54b4('0x13b')),_0x3249ae['isRemovable']=!0x1,_0x4232d9[_0x54b4('0x134')]=_0x3249ae;}[_0x54b4('0x29')](_0x373835,_0x18555c,_0x35df6f,_0x26e94a){if(_0x373835['type']!=_0x18555c||_0x373835[_0x54b4('0x12d')]!=_0x35df6f||_0x373835['creator']['id']!=_0x26e94a)throw this[_0x54b4('0xd9')][_0x54b4('0x6c')](_0x54b4('0x22')),new _0x5e58a3(_0x54b4('0x22'),this);}[_0x54b4('0xd2')](_0x2dac5b,_0x5df3fb){const _0x2ea32d=_0x2dac5b[_0x54b4('0x10f')]();if(_0x5df3fb[_0x54b4('0x63')](_0x2ea32d))_0x2dac5b[_0x54b4('0x16')]();else{if(_0x2ea32d[_0x54b4('0x106')](_0x5df3fb)){const _0x1f06bb=this['_model'][_0x54b4('0x2d')](_0x5df3fb[_0x54b4('0xa')][_0x54b4('0xc3')],_0x54b4('0x94'));this[_0x54b4('0x8')](_0x2dac5b,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x2ea32d[_0x54b4('0xa')],_0x1f06bb));const _0x136e69=_0x5f30bf(),_0x447e81=_0x2dac5b[_0x54b4('0x85')]['id'],_0x2b1c7e=_0x2dac5b[_0x54b4('0x32')]+':'+_0x2dac5b['subType'];this[_0x54b4('0xf0')]({'id':_0x136e69,'type':_0x2b1c7e,'createdAt':new Date(),'authorId':_0x447e81,'data':_0x2dac5b[_0x54b4('0x12')],'attributes':_0x2dac5b[_0x54b4('0x3c')]});const _0xdbffad=this['_model'][_0x54b4('0x2d')](_0x5df3fb[_0x54b4('0x94')][_0x54b4('0x35')],'after'),_0x35e9e1=this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0xdbffad,_0x2ea32d[_0x54b4('0x94')]);this[_0x54b4('0xe4')](_0x2b1c7e,_0x136e69,_0x447e81,_0x35e9e1);}else{if(_0x2ea32d[_0x54b4('0xd5')](_0x5df3fb[_0x54b4('0xa')])){const _0x431e2c=this['_model'][_0x54b4('0x2d')](_0x5df3fb['start'][_0x54b4('0xc3')],_0x54b4('0x94'));this['_setSuggestionRange'](_0x2dac5b,this[_0x54b4('0xeb')]['createRange'](_0x2ea32d['start'],_0x431e2c));}else{const _0x4f0fe5=this[_0x54b4('0xeb')][_0x54b4('0x2d')](_0x5df3fb[_0x54b4('0x94')][_0x54b4('0x35')],_0x54b4('0x103'));this[_0x54b4('0x8')](_0x2dac5b,this['_model'][_0x54b4('0xcb')](_0x4f0fe5,_0x2ea32d[_0x54b4('0x94')]));}}}}[_0x54b4('0xaa')](_0x735555){for(const {suggestion:_0x3391ea,meta:_0x1fab19}of this['_findSuggestions'](_0x735555,_0x54b4('0x51'))){if(!_0x1fab19[_0x54b4('0x1e')])continue;const _0x25332e=_0x3391ea[_0x54b4('0x44')]();for(const _0x27fb13 of _0x25332e)if(!_0x735555[_0x54b4('0x13')](_0x27fb13)[_0x54b4('0x113')])return!0x0;}return!0x1;}[_0x54b4('0x128')](_0x33245d){const _0x1bfa4a=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7'))['getUser'](_0x33245d);if(!_0x1bfa4a)throw new _0x5e58a3(_0x54b4('0x129'),this);return _0x1bfa4a;}[_0x54b4('0x117')](_0x53184e){const _0x409c47=this['editor'][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7')),_0x5335c1=_0x358f21('external:'+_0x53184e),_0xd58ab6=_0x409c47['getUser'](_0x5335c1);return _0xd58ab6||_0x409c47[_0x54b4('0xad')]({'id':_0x5335c1,'name':_0x53184e});}[_0x54b4('0x47')](_0x426f97,_0x1bd5be,_0x3cd48b,_0x2085ef,_0x8f6961){const _0x2b1c81=this[_0x54b4('0x128')](_0x2085ef),_0x5abb7a=this[_0x54b4('0xfb')][_0x54b4('0x19')](_0x426f97,_0x1bd5be,_0x3cd48b,_0x2b1c81,_0x8f6961,_0x38f6a7=>this[_0x54b4('0x76')](_0x3cd48b,{'attributes':_0x38f6a7}));return this[_0x54b4('0x53')](_0x5abb7a,_0x54b4('0xa6'),()=>{this['_updateSuggestionData'](_0x3cd48b,{'state':_0x54b4('0x14')});},{'priority':_0x54b4('0x15')}),this[_0x54b4('0x53')](_0x5abb7a,_0x54b4('0x67'),()=>{this[_0x54b4('0x76')](_0x3cd48b,{'state':_0x54b4('0x125')});},{'priority':'high'}),this[_0x54b4('0x12b')]['set'](_0x3cd48b,_0x5abb7a),this[_0x54b4('0x126')][_0x54b4('0x118')](_0x5abb7a,_0x54b4('0xf7')),_0x5abb7a;}[_0x54b4('0x71')](_0xeecaa1){const _0x4c0f79=_0xeecaa1[_0x54b4('0x5f')](':');return{'group':_0x4c0f79[0x0],'type':_0x4c0f79[0x1],'subType':_0x4c0f79[_0x54b4('0x113')]>=0x5?_0x4c0f79[0x2]:null,'id':_0x4c0f79[_0x54b4('0x113')]<0x5?_0x4c0f79[0x2]:_0x4c0f79[0x3],'authorId':_0x4c0f79[_0x54b4('0x113')]<0x5?_0x4c0f79[0x3]:_0x4c0f79[0x4],'markerCount':0x6==_0x4c0f79[_0x54b4('0x113')]?_0x4c0f79[0x5]:null};}[_0x54b4('0x48')](_0x4ea933,_0x15e93c,_0x4b8e56){const _0x1326e0=_0x4ea933['getFirstRange'](),_0x272cd5=_0x1326e0[_0x54b4('0xa')],_0x5da32d=_0x1326e0[_0x54b4('0x94')];this[_0x54b4('0x8')](_0x4ea933,this['_model'][_0x54b4('0xcb')](_0x272cd5,_0x15e93c));const _0x521504=_0x5f30bf(),_0x4a2090=_0x4ea933[_0x54b4('0x85')]['id'],_0x4f46ff=_0x4ea933[_0x54b4('0x32')]+(_0x4ea933['subType']?':'+_0x4ea933['subType']:'');this[_0x54b4('0xf0')]({'id':_0x521504,'type':_0x4f46ff,'createdAt':new Date(),'authorId':_0x4a2090,'originalSuggestionId':_0x4ea933['id'],'attributes':_0x4ea933[_0x54b4('0x3c')],'data':_0x4ea933[_0x54b4('0x12')]}),_0x54b4('0xab')==_0x4ea933[_0x54b4('0x32')]&&(_0x4b8e56=this[_0x54b4('0xeb')][_0x54b4('0x7a')](_0x4b8e56[_0x54b4('0x35')])),this['_addSuggestionMarker'](_0x4f46ff,_0x521504,_0x4a2090,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x4b8e56,_0x5da32d));}['_findSuggestions'](_0x3dd034,_0x46080b=null){const _0xd88b29=[],_0x55d4ca=this['_model'][_0x54b4('0x111')],_0x32a71f=this['editor']['plugins'][_0x54b4('0x24')](_0x54b4('0xd7'))['me'];for(const _0x338ee1 of this['getSuggestions']())if(_0x338ee1[_0x54b4('0x38')]&&(!_0x46080b||_0x338ee1[_0x54b4('0x32')]==_0x46080b))for(const _0x4e6110 of _0x338ee1['getRanges']()){const _0x211320=_0x3dd034[_0x54b4('0xa')]['isEqual'](_0x4e6110[_0x54b4('0x94')])||_0x3dd034[_0x54b4('0x94')][_0x54b4('0x63')](_0x4e6110[_0x54b4('0xa')]);if(_0x211320||_0x3dd034[_0x54b4('0x54')](_0x4e6110)){const _0xc20928=_0x3dd034[_0x54b4('0x106')](_0x4e6110)&&Bt(_0x55d4ca,_0x4e6110['start'],_0x3dd034),_0x50a4ff=_0x4e6110[_0x54b4('0x106')](_0x3dd034)&&Bt(_0x55d4ca,_0x3dd034['start'],_0x4e6110);_0xd88b29['push']({'suggestion':_0x338ee1,'meta':{'isOwn':_0x32a71f==_0x338ee1[_0x54b4('0x11a')],'isNextTo':_0x211320,'isInsideObject':_0xc20928,'containsRangeInObject':_0x50a4ff}});break;}}return _0xd88b29;}['_addSuggestionMarker'](_0x473192,_0x190ae8,_0xf2fc5a,_0x393380,_0x1d6b2a){this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x285832=>{let _0x8708f2=_0x54b4('0x91')+_0x473192+':'+_0x190ae8+':'+_0xf2fc5a;_0x1d6b2a&&(_0x8708f2=_0x8708f2+':'+_0x1d6b2a),_0x285832[_0x54b4('0x26')](_0x8708f2,{'range':_0x393380,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x30cb19){const _0xc7afe0=_0x30cb19[_0x54b4('0x2b')],_0x23f49b=_0x30cb19['next'];_0x30cb19[_0x54b4('0x2b')]=null,null!=_0xc7afe0&&(_0xc7afe0['next']=null),_0x30cb19['next']=null,null!=_0x23f49b&&(_0x23f49b[_0x54b4('0x2b')]=null),_0x54b4('0x43')==this[_0x54b4('0x126')][_0x54b4('0x24')](_0x30cb19)&&(this[_0x54b4('0x126')][_0x54b4('0x118')](_0x30cb19,_0x54b4('0x87')),this['fire'](_0x54b4('0x13c'),_0x30cb19,_0xc7afe0,_0x23f49b));}[_0x54b4('0xf0')](_0x193461){const _0x137bbf=_0x193461['id'],_0x2d52db=this[_0x54b4('0x72')](_0x193461);if(this['_adapter']&&this[_0x54b4('0xdb')]['addSuggestion']){const _0x14c8bd=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x11e')),_0x2605d3=_0x2d52db[_0x54b4('0x10b')],_0x1303e5=_0x2d52db[_0x54b4('0x12d')]?_0x2d52db[_0x54b4('0x32')]+':'+_0x2d52db['subType']:_0x2d52db['type'],_0x334efa=this['editor'][_0x54b4('0xd1')],_0x1a93bb=_0x14c8bd[_0x54b4('0x79')](_0x5b781a(_0x334efa,'PENDING_ACTION_SUGGESTION')),_0x5ae4a7={'id':_0x137bbf,'type':_0x1303e5,'hasComments':_0x2605d3,'data':_0x193461['data']||null,'originalSuggestionId':_0x193461[_0x54b4('0xd8')]||null,'attributes':_0x2d52db[_0x54b4('0x3c')]};this[_0x54b4('0xdb')][_0x54b4('0xd4')](_0x5ae4a7)['then'](_0x3c0612=>{_0x2d52db['_saved']=!0x0,_0x14c8bd['remove'](_0x1a93bb),_0x3c0612&&_0x3c0612[_0x54b4('0xe')]&&(this['_suggestions'][_0x54b4('0x24')](_0x137bbf)[_0x54b4('0xe')]=_0x3c0612['createdAt']);})[_0x54b4('0x4e')](_0xe3ee62=>{throw _0x120821(_0x54b4('0x41')),this[_0x54b4('0xd9')][_0x54b4('0xa0')][_0x54b4('0xb9')]({'isUndoable':!0x1},()=>{_0x2d52db[_0x54b4('0x67')]();}),_0x2d52db[_0x54b4('0xdc')](),this[_0x54b4('0x12b')][_0x54b4('0x4d')](_0x2d52db['id']),this[_0x54b4('0x126')]['delete'](_0x2d52db),_0xe3ee62;});}return _0x2d52db;}[_0x54b4('0x76')](_0x36d30d,_0x1190c5){const _0x1d090e=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x11e')),_0x5be36f=this[_0x54b4('0xde')](_0x36d30d);if(this[_0x54b4('0xdb')]&&this['_adapter'][_0x54b4('0x1d')]){if(_0x5be36f['_saved']){const _0x2b121f=_0x1d090e[_0x54b4('0x79')](_0x5b781a(this[_0x54b4('0xd9')][_0x54b4('0xd1')],_0x54b4('0xcf')));this[_0x54b4('0xdb')][_0x54b4('0x1d')](_0x36d30d,_0x1190c5)[_0x54b4('0x135')](()=>{_0x1d090e['remove'](_0x2b121f);});}else _0x5be36f['on']('change:_saved',()=>{this[_0x54b4('0x76')](_0x36d30d,_0x1190c5);});}}[_0x54b4('0xc7')](_0x46f8fd){if(!this[_0x54b4('0xdb')]||!this['_adapter'][_0x54b4('0xde')])throw new _0x5e58a3(_0x54b4('0x12e'),this);return this[_0x54b4('0xdb')][_0x54b4('0xde')](_0x46f8fd);}[_0x54b4('0x102')](_0x49ea61){const {id:_0xab735a,type:_0x4c93ac,subType:_0x581a66,authorId:_0x1a9c72}=this['_splitMarkerName'](_0x49ea61),_0xcfdb73=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0xab735a)||this[_0x54b4('0x47')](_0x4c93ac,_0x581a66,_0xab735a,_0x1a9c72,{});switch(this[_0x54b4('0x29')](_0xcfdb73,_0x4c93ac,_0x581a66,_0x1a9c72),this['_suggestionState'][_0x54b4('0x24')](_0xcfdb73)){case _0x54b4('0xf7'):this[_0x54b4('0xc7')](_0xab735a)[_0x54b4('0x135')](_0x500fa1=>{let _0x5c4bee=Promise[_0x54b4('0x70')]();_0x500fa1[_0x54b4('0x10b')]&&(_0x5c4bee=this[_0x54b4('0xc1')][_0x54b4('0x42')]({'channelId':this[_0x54b4('0xd9')][_0x54b4('0x60')][_0x54b4('0x24')]('collaboration.channelId'),'threadId':_0xab735a})),_0x5c4bee[_0x54b4('0x135')](()=>{this['addSuggestionData'](_0x500fa1)[_0x54b4('0x8f')]=!0x0;});}),this[_0x54b4('0x126')]['set'](_0xcfdb73,_0x54b4('0x11'));break;case _0x54b4('0x87'):this[_0x54b4('0x76')](_0xab735a,{'state':_0x54b4('0x5a')});case _0x54b4('0x40'):this['_suggestionState']['set'](_0xcfdb73,_0x54b4('0x43')),this[_0x54b4('0x64')](_0x54b4('0x9e'),_0xcfdb73);break;case _0x54b4('0x43'):this[_0x54b4('0x64')](_0x54b4('0x11b'),_0xcfdb73);}return _0xcfdb73[_0x54b4('0x130')](_0x49ea61),_0xcfdb73;}[_0x54b4('0x5')](_0x2c9dad){const _0x4eec3b=Array[_0x54b4('0xca')](_0x2c9dad)[_0x54b4('0x3')](_0x20292b=>!_0x20292b['isMultiRange']),_0x4b8696=this[_0x54b4('0xb0')]({'skipNotAttached':!0x0})[_0x54b4('0x3')](_0x57488d=>!_0x57488d[_0x54b4('0x25')]),_0x32c121=_0x4b8696['filter'](_0x4eaaf7=>!_0x2c9dad['has'](_0x4eaaf7)),_0x12b4df=new Map(_0x4b8696[_0x54b4('0xf')](_0xebdb31=>[_0xebdb31,this[_0x54b4('0xfb')][_0x54b4('0xec')](_0xebdb31[_0x54b4('0x32')],_0xebdb31[_0x54b4('0x12d')],_0x54b4('0xa8'))])),_0x1e5147=new Map(_0x4b8696[_0x54b4('0xf')](_0x3952b1=>[_0x3952b1,_0x3952b1['getFirstRange']()])),_0x96ce3b=new Set(),_0x3fee26=new Set();for(let _0x762a04=0x0;_0x762a04<_0x4eec3b[_0x54b4('0x113')];_0x762a04++)_0x133240(_0x4eec3b[_0x762a04],_0x4eec3b,_0x762a04+0x1);for(let _0x4de516=0x0;_0x4de516<_0x4eec3b['length'];_0x4de516++)_0x133240(_0x4eec3b[_0x4de516],_0x32c121,0x0);for(let _0x1d8a5e=0x0;_0x1d8a5e<_0x4eec3b[_0x54b4('0x113')];_0x1d8a5e++){const _0xb7b4e2=_0x4eec3b[_0x1d8a5e];!_0x3fee26[_0x54b4('0xf4')](_0xb7b4e2)&&_0xb7b4e2[_0x54b4('0x2b')]&&(_0xb7b4e2[_0x54b4('0x2b')][_0x54b4('0xf9')]===_0xb7b4e2&&(_0xb7b4e2[_0x54b4('0x2b')][_0x54b4('0xf9')]=null),_0xb7b4e2[_0x54b4('0x2b')]=null),!_0x96ce3b[_0x54b4('0xf4')](_0xb7b4e2)&&_0xb7b4e2[_0x54b4('0xf9')]&&(_0xb7b4e2[_0x54b4('0xf9')][_0x54b4('0x2b')]===_0xb7b4e2&&(_0xb7b4e2[_0x54b4('0xf9')]['previous']=null),_0xb7b4e2[_0x54b4('0xf9')]=null);}function _0x133240(_0x336312,_0x3f42ff,_0x5da583){for(let _0xb1a491=_0x5da583;_0xb1a491<_0x3f42ff['length'];_0xb1a491++){const _0x127d34=_0x51cb8d(_0x336312,_0x3f42ff[_0xb1a491]);_0x127d34&&(_0x127d34[0x0][_0x54b4('0xf9')]=_0x127d34[0x1],_0x127d34[0x1][_0x54b4('0x2b')]=_0x127d34[0x0],_0x96ce3b[_0x54b4('0x79')](_0x127d34[0x0]),_0x3fee26[_0x54b4('0x79')](_0x127d34[0x1]));}}function _0x51cb8d(_0x28c726,_0x1afbdf){if(_0x28c726[_0x54b4('0x11a')]['id']!==_0x1afbdf[_0x54b4('0x11a')]['id'])return null;const _0x1a36b8=_0x12b4df['get'](_0x28c726)(_0x28c726,_0x1afbdf,_0x1e5147['get'](_0x28c726),_0x1e5147[_0x54b4('0x24')](_0x1afbdf));if(!_0x1a36b8)return null;return _0x12b4df['get'](_0x1afbdf)(_0x28c726,_0x1afbdf,_0x1e5147[_0x54b4('0x24')](_0x28c726),_0x1e5147[_0x54b4('0x24')](_0x1afbdf))?_0x1a36b8[0x1]['commentThread']&&_0x1a36b8[0x1][_0x54b4('0x134')]['length']?null:_0x1a36b8:null;}}[_0x54b4('0xa4')](_0x193e8e){const _0x37d2f2=Array[_0x54b4('0xca')](_0x193e8e),_0x3579eb=this[_0x54b4('0xb0')]({'skipNotAttached':!0x0}),_0x17f856=_0x3579eb[_0x54b4('0x3')](_0x359baa=>!_0x193e8e['has'](_0x359baa)),_0x4aacfb=new Map(_0x37d2f2['map'](_0xb112e3=>[_0xb112e3,this['_suggestionFactory'][_0x54b4('0xec')](_0xb112e3[_0x54b4('0x32')],_0xb112e3[_0x54b4('0x12d')],'join')])),_0x2211eb=new Map(_0x3579eb['map'](_0x4e8f27=>[_0x4e8f27,_0x4e8f27[_0x54b4('0x44')]()]));for(let _0x30b238=0x0;_0x30b238<_0x37d2f2[_0x54b4('0x113')];_0x30b238++){if(_0x1a9a0e(this,_0x37d2f2[_0x30b238],_0x37d2f2,_0x30b238+0x1))return!0x0;}for(let _0x5458f3=0x0;_0x5458f3<_0x37d2f2[_0x54b4('0x113')];_0x5458f3++){if(_0x1a9a0e(this,_0x37d2f2[_0x5458f3],_0x17f856,0x0))return!0x0;}return!0x1;function _0x1a9a0e(_0x4d7fea,_0x11f71b,_0x374cc1,_0x4585de){for(let _0xfb70da=_0x4585de;_0xfb70da<_0x374cc1[_0x54b4('0x113')];_0xfb70da++){const _0x44d572=_0x374cc1[_0xfb70da];if(_0x44d572[_0x54b4('0x32')]!==_0x11f71b[_0x54b4('0x32')]||_0x44d572[_0x54b4('0x11a')]['id']!==_0x11f71b[_0x54b4('0x11a')]['id']||_0x44d572[_0x54b4('0x12d')]!==_0x11f71b[_0x54b4('0x12d')])continue;const _0xf98f82=_0x4aacfb[_0x54b4('0x24')](_0x11f71b),_0x4f47a8=_0x2211eb[_0x54b4('0x24')](_0x11f71b),_0x438c03=_0x2211eb[_0x54b4('0x24')](_0x44d572),_0x3c1bfe=_0x11f71b[_0x54b4('0x134')]&&_0x11f71b[_0x54b4('0x134')][_0x54b4('0x113')],_0x5b7ee1=_0x44d572[_0x54b4('0x134')]&&_0x44d572[_0x54b4('0x134')][_0x54b4('0x113')];if(!_0x3c1bfe&&_0xf98f82(_0x438c03,_0x4f47a8))return _0x4d7fea[_0x54b4('0x86')](_0x44d572,_0x11f71b),_0x2211eb[_0x54b4('0x4d')](_0x11f71b),!0x0;if(!_0x5b7ee1&&_0xf98f82(_0x4f47a8,_0x438c03))return _0x4d7fea['_joinSuggestions'](_0x11f71b,_0x44d572),_0x2211eb[_0x54b4('0x4d')](_0x44d572),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa7ca86,_0x2970b9){if(_0xa7ca86[_0x54b4('0x25')])for(const _0x12203a of _0x2970b9[_0x54b4('0x44')]())_0xa7ca86[_0x54b4('0x66')](_0x12203a);else{const _0x10967a=_0x2970b9[_0x54b4('0x10f')]()[_0x54b4('0x94')];this[_0x54b4('0x8')](_0xa7ca86,this[_0x54b4('0xeb')]['createRange'](_0xa7ca86[_0x54b4('0x10f')]()[_0x54b4('0xa')],_0x10967a));}_0x2970b9['removeMarkers']();}}class Dt{constructor(_0x1f84cb){this[_0x54b4('0x17')]=_0x1f84cb,this['_model']=_0x1f84cb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x54b4('0x33')]();}['buildSuggestion'](_0x2b6ceb,_0xbb852c,_0x4e6417,_0xe8152,_0x54c86d,_0x23e048){return new _0xf20766(this['_model'],{'type':_0x2b6ceb,'subType':_0xbb852c,'id':_0x4e6417,'author':_0xe8152,'creator':_0xe8152,'attributes':_0x54c86d,'onAttributesChange':_0x23e048,'onAccept':(..._0x3d070e)=>this[_0x54b4('0xec')](_0x2b6ceb,_0xbb852c,'accept')(..._0x3d070e),'onDiscard':(..._0xb0e8b1)=>this[_0x54b4('0xec')](_0x2b6ceb,_0xbb852c,'discard')(..._0xb0e8b1)});}[_0x54b4('0x89')](_0x3070de,_0x260fba,_0x7ab0e8,_0x5774e3){const _0x496db4=_0x3070de+':'+_0x260fba+':'+_0x7ab0e8;this['_customCallbacks'][_0x54b4('0x118')](_0x496db4,_0x5774e3);}[_0x54b4('0xec')](_0xce614a,_0x392a59,_0x3c075b){const _0x1c788c=_0xce614a+':'+_0x392a59+':'+_0x3c075b;return this[_0x54b4('0x3a')][_0x54b4('0x24')](_0x1c788c)||this['_defaultCallbacks']['get'](_0xce614a+':'+_0x3c075b);}['_registerDefaultCallbacks'](){const _0x5042a2=()=>{},_0x59ba93=_0xf0e31f=>{_0xf0e31f[_0x54b4('0x58')]((_0x44805,_0x30e777)=>_0x44805[_0x54b4('0xa')][_0x54b4('0x6f')](_0x30e777[_0x54b4('0xa')])?0x1:-0x1),this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x3a4b42=>{for(const _0x1b8845 of _0xf0e31f){let _0x257f3b;_0x257f3b=_0x1b8845[_0x54b4('0x94')][_0x54b4('0xb6')]&&_0x1b8845[_0x54b4('0x94')][_0x54b4('0x35')]==_0x1b8845[_0x54b4('0xa')][_0x54b4('0x7d')]?_0x3a4b42['createSelection'](_0x1b8845[_0x54b4('0xa')][_0x54b4('0x7d')],'on'):_0x3a4b42['createSelection'](_0x1b8845),this['_model'][_0x54b4('0x97')](_0x257f3b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3330b9=(_0x29db68,_0x1cd8ca)=>{this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x3c0cd0=>{const {commandName:_0x467ccc,commandParams:_0x305f04=[]}=_0x1cd8ca,_0x4ea5e0=_0x29db68[_0x54b4('0xf')](_0x35d3b5=>(_t(_0x35d3b5)&&(_0x35d3b5=this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x35d3b5[_0x54b4('0x94')])),_0x35d3b5))[_0x54b4('0x3')](_0x35d1f1=>_0x54b4('0x121')!==_0x35d1f1[_0x54b4('0x1b')]['rootName']);if(_0x4ea5e0[_0x54b4('0x113')]<0x1)return;const _0xfe4699=Array['from'](this[_0x54b4('0xeb')]['document']['selection'][_0x54b4('0x44')]())['map'](_0xa9a682=>_0x2cb8ac[_0x54b4('0xa1')](_0xa9a682));_0x3c0cd0[_0x54b4('0x9d')](_0x4ea5e0);for(const _0x50ba5f of this['_editor']['commands'][_0x54b4('0xbb')]())_0x50ba5f[_0x54b4('0xa5')]();_0x305f04['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x54b4('0x4c')](_0x467ccc,..._0x305f04);const _0x34449=_0xfe4699[_0x54b4('0x3')](_0x57465a=>_0x54b4('0x121')!=_0x57465a[_0x54b4('0x1b')]['rootName']);_0x34449[_0x54b4('0x113')]>0x0&&_0x3c0cd0[_0x54b4('0x9d')](_0x34449);for(const _0x505d90 of _0xfe4699)_0x505d90[_0x54b4('0x55')]();});},_0x36710c=(_0x5ae267,_0x3581c6)=>0x1==_0x5ae267['length']&&0x1==_0x3581c6[_0x54b4('0x113')]&&_0x5ae267[0x0]['end'][_0x54b4('0x63')](_0x3581c6[0x0]['start']),_0x330659=(_0x25faad,_0x4643c8,_0x3c81a7,_0x2de31f)=>xt(_0x25faad,_0x4643c8,_0x3c81a7,_0x2de31f,this[_0x54b4('0xeb')])?[_0x25faad,_0x4643c8]:xt(_0x4643c8,_0x25faad,_0x2de31f,_0x3c81a7,this[_0x54b4('0xeb')])?[_0x4643c8,_0x25faad]:null;this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xf5'),_0x5042a2),this['_defaultCallbacks'][_0x54b4('0x118')](_0x54b4('0x119'),_0x59ba93),this[_0x54b4('0x28')]['set']('insertion:join',_0x36710c),this['_defaultCallbacks'][_0x54b4('0x118')](_0x54b4('0xe0'),_0x330659),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0x1f'),_0x59ba93),this[_0x54b4('0x28')][_0x54b4('0x118')]('deletion:discard',_0x5042a2),this[_0x54b4('0x28')]['set'](_0x54b4('0x115'),_0x36710c),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xe2'),_0x330659),this['_defaultCallbacks'][_0x54b4('0x118')](_0x54b4('0xdf'),_0x3330b9),this[_0x54b4('0x28')]['set']('formatInline:discard',_0x5042a2),this['_defaultCallbacks']['set'](_0x54b4('0x6e'),_0x36710c),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xfa'),_0x5042a2),this[_0x54b4('0x28')]['set']('formatBlock:accept',_0x3330b9),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xf6'),_0x5042a2),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xfe'),_0x36710c),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xc2'),_0x5042a2);}}function Bt(_0x8b3235,_0x19d64b,_0x272378){for(const _0x223c90 of _0x19d64b['parent'][_0x54b4('0xce')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x223c90['root']==_0x223c90)return!0x1;if(!_0x272378[_0x54b4('0x1')](_0x223c90))return!0x1;if(_0x8b3235['isObject'](_0x223c90)||_0x8b3235[_0x54b4('0xed')](_0x223c90))return!0x0;}return!0x1;}function _t(_0x54694a){return _0x54694a[_0x54b4('0x94')]['parent']==_0x54694a['start'][_0x54b4('0x7d')]&&_0x54694a[_0x54b4('0x94')][_0x54b4('0x80')];}function Mt(_0x57e57c,_0x18f986,_0x4ead65,_0x5da83a){const _0x24e84a=_0x5059e1=>!_0x5059e1[_0x54b4('0x127')]['is'](_0x54b4('0x11d'))&&!_0x5da83a[_0x54b4('0x104')](_0x5059e1[_0x54b4('0x127')]),_0x4f093b=_0x57e57c[_0x54b4('0xa')][_0x54b4('0x31')](_0x24e84a),_0x1e9a85=_0x57e57c[_0x54b4('0x94')][_0x54b4('0x31')](_0x24e84a,{'direction':_0x54b4('0xc4')});return(!_0x57e57c[_0x54b4('0xa')][_0x54b4('0x63')](_0x4f093b)||!_0x57e57c[_0x54b4('0x94')][_0x54b4('0x63')](_0x1e9a85))&&(_0x4f093b[_0x54b4('0x6f')](_0x1e9a85)?_0x4ead65[_0x54b4('0x36')](_0x18f986,{'range':_0x4ead65[_0x54b4('0xcb')](_0x4f093b,_0x1e9a85)}):_0x4ead65['removeMarker'](_0x18f986),!0x0);}function $t(_0x32fdc9){return _0x358f21(_0x32fdc9);}function Nt(_0xb2fda0){const _0x5c16f6=_0xb2fda0[_0x54b4('0xa')]['nodeAfter'];return _0x5c16f6&&_0x5c16f6['is']('element');}function Rt(_0x2f3359,_0x4362a3){const _0x5bd452=_0x4362a3[_0x54b4('0x111')][_0x54b4('0x104')](_0x2f3359)||_0x4362a3[_0x54b4('0x111')][_0x54b4('0xe1')](_0x2f3359);return _0x4362a3[_0x54b4('0xcb')](_0x4362a3['createPositionAt'](_0x2f3359,'before'),_0x5bd452?_0x4362a3[_0x54b4('0xb8')](_0x2f3359):_0x4362a3[_0x54b4('0x2d')](_0x2f3359,_0x54b4('0x94')));}function xt(_0x23b756,_0x2a98ff,_0x57620a,_0x4f612a,_0x18513d){if(_0x57620a['end'][_0x54b4('0x63')](_0x4f612a[_0x54b4('0xa')]))return!0x0;if(_0x23b756[_0x54b4('0x32')]!=_0x2a98ff['type'])return!0x1;if(!_0x57620a[_0x54b4('0x94')][_0x54b4('0xd3')](_0x4f612a['start']))return!0x1;const _0x5b5a5c=_0x18513d[_0x54b4('0xcb')](_0x57620a[_0x54b4('0x94')],_0x4f612a['start'])['getWalker']();for(const _0xf4308f of _0x5b5a5c)if(['elementStart',_0x54b4('0x7f')][_0x54b4('0xbe')](_0xf4308f[_0x54b4('0x32')])&&_0x18513d[_0x54b4('0x111')][_0x54b4('0xed')](_0xf4308f[_0x54b4('0x127')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x2eb0=['data','markerToHighlight','value','_isForcedDefaultExecutionBlock','listenTo','removeAttribute','getFirstRange','_setSuggestionRange','_checkSuggestionCorrectness','_handleNewSuggestionMarker','enableReadOnlyMode','createPositionBefore','marker-count','writer','acceptSuggestion','deleteContent','_createSuggestion','getAllAdjacentSuggestions','markDeletion','error-saving-suggestion-data-suggestion-discarded','isLimit','map','addMarker','getRange','discardSelectedSuggestions','markMultiRangeBlockFormat','_customCallbacks','selection','low','change:activeMarkers','createPositionAt','_setSuggestionData','_editor','discardAllSuggestions','splitPosition','insertion','name','split','_breakSuggestionMarker','editingDowncast','get','refresh','getCustomProperty','addRange','PENDING_ACTION_SUGGESTION','isAtEnd','adapter','author','fire','track-changes-user-not-found','differ','getAttribute','change','registerCustomCallback','containerElement','skipNestingCheck','formatGroupId','_enabledCommands','element','backward','addSuggestionData','filter','activeMarkers','editing','newRange','multi','pluginName','subType','_trackFormatChanges','isObject','getIntersection','ck-suggestion-marker--active','ck-suggestion-marker-formatBlock','createSelection','$graveyard','authoredAt','formatInline:discard','deletion:','upcast','push','markBlockFormat','batch','enqueueChange','toViewElement','enableCommand','track-changes-adapter-already-set','removeMarker:suggestion:formatBlock','markerReady','_updateSuggestionData','getNearestSelectionRange','addSuggestion','insertion:','addMarker:suggestion','never','delete','position','for','updateMarker','addComment','document','every','setAttribute','_model','formatBlock:join','trackChanges','_suggestionState','editor','size','createdAt','some','PendingActions','consumable','CommentsRepository','insertContent','insertion:chain','mapper','insertion:accept','length','getShiftedBy','ck-suggestion-marker-','after','isInContent','_descriptionFactory','removeMarkers','formatBlock:chain','isCollapsed','isInsideObject','ck-suggestion-marker','_onDiscard','Users','root','model','_addThreadToSuggestion','suggestionUnloaded','end','suggestionLoaded','showSuggestionHighlights','_rangeIsInLocalUserInsertion','values','from','isBefore','isBlock','getSuggestionCallback','_suggestions','always','track-changes-adapter-missing-getsuggestion','getFirstMarker','stopListening','addHighlight','requires','multipleBlocks','init','splice','isIntersectingWithRange','item','setTo','markInsertion','oldRange','nodeBefore','discardSuggestion','markerName','has','authorName','moveTargetPosition','getMarkers','getDifference','getSuggestions','consume','suggestion:','notReady','reconvertMarker','markers','addMarker:suggestion:formatBlock','$textProxy','getRanges','attributes','fromCharCode','_defaultCallbacks','type','add','markMultiRangeInsertion','hasComments','schema','options','updateSuggestion','containsRange','formatBlock:discard','plugins','join','move','isMultiRange','_saved','toJSON','ready','suggestionChanged','_getExternalAuthor','catch','detach','isNextTo','commentThread','update:suggestion','clear','insert','external:','isAfter','removeClass','before','group','registerPostFixer','dataDowncast','originalSuggestionId','addMarkerName','data-suggestion','formatBlock:','_joinWithAdjacentSuggestions','fetchCommentThread','_refreshSuggestionsChain','isSelectable','widget','sort','chain','accept','containsRangeInObject','substr','isRemovable','isAtStart','markerToData','forward','rootName','forceDefaultExecution','trackChangesCommand','dataReady','removeMarker','getUser','isEqual','createRange','@external','_suggestionFactory','elementToElement','getChanges','createPositionAfter','config','_joinSuggestions','default','commands','stop','suggestion','_mergeNestedSuggestions','getLastMatchingPosition','addClass','change:data','_findSuggestions','deletion:join','suggestion-type','deletion:discard','trackChanges.trackFormatChanges','discard','track-changes-command-not-found','removeComment','addCommentThread','conversion','formatInline:','isOwn','bindElementToMarker','previous','_getSuggestionData','formatInline:accept','getMultiRangeId','set','formatInline:chain','isTouching','start','_commentsRepository','_adapter','_registerDefaultCallbacks','high','removed','getAncestors','createElement','formatBlock','acceptSelectedSuggestions','open','locale','collaboration.channelId','commandName','change:_saved','unbindElementFromMarkerName','isUndo','deletion','acceptAllSuggestions','includes','define','track-changes-suggestion-data-mismatch','clone','formatInline','_getAuthorFromId','creator','next','howMany','execute','getWalker','lowest','getChangedMarkers','setSelection','_addSuggestionMarker','markMultiRangeDeletion','nodeAfter','parent','insertion:discard','remove','_removeSuggestion','getSuggestion','_splitMarkerName','trackChanges.mergeNestedSuggestions','rejected','formatInline:join','then','range','containsItem'];(function(_0x6a5e14,_0x2eb008){const _0x219503=function(_0x599e58){while(--_0x599e58){_0x6a5e14['push'](_0x6a5e14['shift']());}};_0x219503(++_0x2eb008);}(_0x2eb0,0x7f));const _0x2195=function(_0x6a5e14,_0x2eb008){_0x6a5e14=_0x6a5e14-0x0;let _0x219503=_0x2eb0[_0x6a5e14];return _0x219503;};import{Plugin as _0x149004,PendingActions as _0x33161e}from'ckeditor5/src/core';import{LiveRange as _0x30ce05}from'ckeditor5/src/engine';import{CKEditorError as _0x143303,uid as _0x3dda14,priorities as _0x1731a3,logWarning as _0x109f16}from'ckeditor5/src/utils';import{toWidget as _0x3a7bbc}from'ckeditor5/src/widget';import{Users as _0x5006ff,hashObject as _0x506120}from'ckeditor5-collaboration/src/collaboration-core';import _0x575747 from'./commands/trackchangescommand';import _0x5e4ad2 from'./commands/acceptsuggestioncommand';import _0xfca4f8 from'./commands/discardsuggestioncommand';import _0x55da74 from'./commands/executeonallsuggestionscommand';import _0x9e71ef from'./commands/executeonselectedsuggestionscommand';import _0x1ee015 from'./suggestion';import _0x5e8e01 from'./suggestiondescriptionfactory';import _0x111a56 from'./integrations/alignment';import _0x1b0a7c from'./integrations/basicstyles';import _0xb0ca95 from'./integrations/blockquote';import _0x16e92f from'./integrations/ckbox';import _0x54e6fc from'./integrations/codeblock';import _0x429736 from'./integrations/comments';import _0x21c475 from'./integrations/deletecommand';import _0x4e2384 from'./integrations/documentlist';import _0xd590 from'./integrations/entercommand';import _0x23a266 from'./integrations/findandreplace';import _0x47499c from'./integrations/font';import _0x402190 from'./integrations/formatpainter';import _0x5eae1f from'./integrations/heading';import _0x165821 from'./integrations/highlight';import _0xe9bc79 from'./integrations/horizontalline';import _0x1e73c6 from'./integrations/htmlembed';import _0x3811c0 from'./integrations/image';import _0x13e7c1 from'./integrations/imagereplace';import _0x1905e4 from'./integrations/importword';import _0x4ebb46 from'./integrations/indent';import _0x41972e from'./integrations/inputcommand';import _0x90a3b0 from'./integrations/link';import _0x3aa257 from'./integrations/list';import _0xf55a31 from'./integrations/listproperties';import _0xcb85dd from'./integrations/mediaembed';import _0x3843d1 from'./integrations/mention';import _0x1a0d28 from'./integrations/pagebreak';import _0x288015 from'./integrations/paragraph';import _0x1e2f1a from'./integrations/removeformat';import _0x4e2e30 from'./integrations/restrictededitingmode';import _0x72fd63 from'./integrations/shiftentercommand';import _0x2847b4 from'./integrations/standardeditingmode';import _0x2325dc from'./integrations/style';import _0x1fca55 from'./integrations/table';import _0x32c04f from'./integrations/tablemergesplit';import _0x251bc8 from'./integrations/tableheadings';import _0x434305 from'./integrations/tableclipboard';import _0x4ecfb5 from'./integrations/tablecolumnresize';import _0x375053 from'./integrations/template';import _0x318cbf from'./integrations/tableofcontents';import _0x2c31b1 from'./integrations/title';import _0x576858 from'./integrations/undo';import{getTranslation as _0x4d24ca}from'./utils/common-translations';import _0x14ab31 from'./integrations/tablecaption';import _0x8fa76d from'./integrations/documentlistproperties';import _0x590188 from'./integrations/tableproperties';export default class p extends _0x149004{static get[_0x2195('0x16')](){return['CommentsRepository',_0x5006ff,_0x33161e,_0x111a56,_0x1b0a7c,_0xb0ca95,_0x16e92f,_0x54e6fc,_0x429736,_0x21c475,_0x4e2384,_0x8fa76d,_0xd590,_0x23a266,_0x47499c,_0x402190,_0x5eae1f,_0x165821,_0xe9bc79,_0x1e73c6,_0x3811c0,_0x13e7c1,_0x1905e4,_0x4ebb46,_0x41972e,_0x90a3b0,_0x3aa257,_0xf55a31,_0xcb85dd,_0x3843d1,_0x1a0d28,_0x288015,_0x1e2f1a,_0x4e2e30,_0x72fd63,_0x2847b4,_0x2325dc,_0x1fca55,_0x32c04f,_0x251bc8,_0x14ab31,_0x434305,_0x4ecfb5,_0x318cbf,_0x590188,_0x375053,_0x2c31b1,_0x576858];}static get[_0x2195('0x102')](){return'TrackChangesEditing';}constructor(_0x4540cb){function _0x220cd0(_0x31387a){return _0x31387a[_0x2195('0xd5')](_0x16b6ba=>String[_0x2195('0x31')](_0x16b6ba))['join']('');}super(_0x4540cb),this[_0x2195('0x8d')](_0x2195('0xfe'),[]),this['on'](_0x2195('0xdd'),(_0x364362,_0x3b69cf,_0x16fecc,_0x29bfeb)=>{this[_0x2195('0x126')]['change'](()=>{for(const _0x2dbdd9 of[..._0x29bfeb,..._0x16fecc])this['_model'][_0x2195('0x2c')]['has'](_0x2dbdd9)&&_0x4540cb[_0x2195('0xff')][_0x2195('0x2b')](_0x2dbdd9);});}),this[_0x2195('0x13a')]=new _0x5e8e01(this[_0x2195('0x12a')][_0x2195('0x4')]['schema'],this[_0x2195('0x12a')]['locale']),this[_0x2195('0x92')]=null,this['_suggestionFactory']=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x2195('0x91')]=_0x4540cb[_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x130')),this[_0x2195('0xf9')]=new Set(),this[_0x2195('0x126')]=this[_0x2195('0x12a')][_0x2195('0x4')],this[_0x2195('0x129')]=new WeakMap(),this[_0x2195('0xc3')]=!0x1,_0x4540cb[_0x2195('0x72')][_0x2195('0xa4')](_0x2195('0x80'),_0x2195('0x74')),this[_0x2195('0x104')]=_0x4540cb[_0x2195('0x72')][_0x2195('0xe8')](_0x2195('0x80')),_0x4540cb[_0x2195('0x72')][_0x2195('0xa4')](_0x2195('0xba'),!0x0),this['_mergeNestedSuggestions']=_0x4540cb[_0x2195('0x72')][_0x2195('0xe8')](_0x2195('0xba')),this[_0x2195('0x67')]=new _0x575747(_0x4540cb,this[_0x2195('0xf9')]),this[_0x220cd0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x220cd0([0x34,0x30,0x34,0x36,0x31,0x34,0x36,0x30]);}[_0x2195('0x18')](){const _0x34d0b1=this[_0x2195('0x12a')];_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0xe7'))[_0x2195('0xc1')]({'model':'suggestion','view':_0x13fd89=>{const {id:_0x157d92,type:_0x550ac7}=this[_0x2195('0xb9')](_0x13fd89[_0x2195('0x21')]),_0xc06444=['ck-suggestion-marker','ck-suggestion-marker-'+_0x550ac7];let _0x328776=0xbb8;return this[_0x2195('0xfe')][_0x2195('0xa3')](_0x13fd89[_0x2195('0x21')])&&(_0xc06444[_0x2195('0x10f')](_0x2195('0x107')),_0x328776=0xbc2),_0x2195('0xa1')==_0x550ac7&&(_0x328776+=0x5),{'classes':_0xc06444,'attributes':{'data-suggestion':_0x157d92},'priority':_0x328776};}}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0x52'))[_0x2195('0x34')](_0x15cd58=>{_0x15cd58['on'](_0x2195('0x11c'),(_0x50f8ed,_0x177d68,_0x2e2ac8)=>{if(!_0x2e2ac8[_0x2195('0x38')]['showSuggestionHighlights'])return;const _0x1e4dc4=_0x177d68[_0x2195('0x1b')];if(!_0x1e4dc4)return;const _0x5d27ca=_0x2e2ac8['mapper'][_0x2195('0x113')](_0x1e4dc4);_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')]['isObject'](_0x1e4dc4)&&_0x5d27ca&&!_0x5d27ca['getCustomProperty'](_0x2195('0x5b'))&&_0x5d27ca['is'](_0x2195('0xf6'))&&_0x3a7bbc(_0x5d27ca,_0x2e2ac8[_0x2195('0xcd')]);},{'priority':_0x2195('0x94')});}),_0x34d0b1['conversion']['for'](_0x2195('0x52'))[_0x2195('0xc1')]({'model':_0x2195('0x77'),'view':(_0x38d5de,_0x93f6b9)=>{if(!_0x93f6b9['options'][_0x2195('0x9')])return null;const {type:_0x241975}=this['_splitMarkerName'](_0x38d5de[_0x2195('0x21')]);return{'classes':['ck-suggestion-marker',_0x2195('0x137')+_0x241975],'priority':0xbb8};}});const _0x3d38fd=({showActiveMarkers:_0x52932d=!0x0}={})=>(_0x138d20,_0x384e4f,_0x54c5f4)=>{if(!_0x384e4f[_0x2195('0x1b')])return;if(_0x384e4f[_0x2195('0x1b')]['is'](_0x2195('0xdb')))return void _0x54c5f4[_0x2195('0x12f')][_0x2195('0x28')](_0x384e4f['item'],_0x138d20[_0x2195('0xe4')]);const _0x5ce078=_0x54c5f4[_0x2195('0x133')][_0x2195('0x113')](_0x384e4f[_0x2195('0x1b')]);if(!(_0x384e4f[_0x2195('0x1b')]['is'](_0x2195('0xfa'))&&_0x34d0b1[_0x2195('0x4')]['schema']['isBlock'](_0x384e4f['item'])&&!_0x5ce078[_0x2195('0xea')](_0x2195('0x15'))))return;const {id:_0x174ffb}=this[_0x2195('0xb9')](_0x384e4f[_0x2195('0x21')]);_0x54c5f4['writer'][_0x2195('0x7a')]([_0x2195('0x0'),'ck-suggestion-marker-formatBlock'],_0x5ce078),_0x54c5f4[_0x2195('0xcd')][_0x2195('0x125')](_0x2195('0x55'),_0x174ffb,_0x5ce078),_0x54c5f4[_0x2195('0x133')][_0x2195('0x88')](_0x5ce078,_0x384e4f['markerName']),_0x52932d&&(this[_0x2195('0xfe')][_0x2195('0xa3')](_0x384e4f[_0x2195('0x21')])?_0x54c5f4['writer']['addClass'](_0x2195('0x107'),_0x5ce078):_0x54c5f4[_0x2195('0xcd')][_0x2195('0x4e')]('ck-suggestion-marker--active',_0x5ce078));for(const _0x56b7b5 of _0x34d0b1[_0x2195('0x4')]['createRangeIn'](_0x384e4f[_0x2195('0x1b')])['getItems']())_0x54c5f4[_0x2195('0x12f')][_0x2195('0x28')](_0x56b7b5,_0x138d20['name']);_0x54c5f4[_0x2195('0x12f')][_0x2195('0x28')](_0x384e4f[_0x2195('0x1b')],_0x138d20[_0x2195('0xe4')]);};_0x34d0b1['conversion'][_0x2195('0x120')]('dataDowncast')['add'](_0x21fdac=>{_0x21fdac['on'](_0x2195('0x2d'),(_0x31350c,_0x22fdd9,_0x383fc0)=>{_0x383fc0[_0x2195('0x38')]['showSuggestionHighlights']&&_0x3d38fd({'showActiveMarkers':!0x1})(_0x31350c,_0x22fdd9,_0x383fc0);},{'priority':'highest'});}),_0x34d0b1[_0x2195('0x85')]['for']('dataDowncast')[_0x2195('0x63')]({'model':_0x2195('0x77'),'view':(_0x1d1c33,_0x4ab2a9)=>_0x4ab2a9['options']['showSuggestionHighlights']?null:{'group':_0x2195('0x77'),'name':_0x1d1c33[_0x2195('0x60')](0xb)}}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0x10e'))[_0x2195('0x6f')]({'view':{'name':_0x2195('0x77'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x400869,{writer:_0x3eba75})=>{let _0x47ff11='suggestion:'+_0x400869[_0x2195('0xf3')](_0x2195('0x7e'))+':'+_0x400869[_0x2195('0xf3')]('id');return _0x400869[_0x2195('0xf3')](_0x2195('0xcc'))&&(_0x47ff11+=':'+_0x400869[_0x2195('0xf3')](_0x2195('0xcc'))),_0x3eba75[_0x2195('0x97')]('$marker',{'data-name':_0x47ff11});}}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0x10e'))['dataToMarker']({'view':_0x2195('0x77')}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0xe7'))[_0x2195('0x34')](_0x3af455=>{_0x3af455['on'](_0x2195('0x2d'),_0x3d38fd(),{'priority':_0x2195('0x94')});}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0xe7'))[_0x2195('0x34')](_0x215693=>{_0x215693['on'](_0x2195('0x116'),(_0x7ceccf,_0x2ff9a3,_0x341727)=>{const _0x28b57c=_0x341727[_0x2195('0x133')]['markerNameToElements'](_0x2ff9a3[_0x2195('0x21')]);if(_0x28b57c)for(const _0x29da0b of _0x28b57c)_0x29da0b[_0x2195('0xea')](_0x2195('0x15'))||(_0x341727[_0x2195('0xcd')][_0x2195('0x4e')]([_0x2195('0x0'),_0x2195('0x108'),'ck-suggestion-marker--active'],_0x29da0b),_0x341727[_0x2195('0xcd')][_0x2195('0xc5')](_0x2195('0x55'),_0x29da0b),_0x341727[_0x2195('0x133')][_0x2195('0x9f')](_0x29da0b,_0x2ff9a3[_0x2195('0x21')]));},{'priority':'high'});}),_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0x51')](_0x980847=>{let _0x18bdcc=!0x1;const _0x5a2399=Array[_0x2195('0xc')](_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0xf2')][_0x2195('0xaf')]()),_0x2e3322=new Set();for(const {name:_0x13bad4,data:_0x37c8ef}of _0x5a2399){const {group:_0x38303d,type:_0x31da75,id:_0x40f687}=this[_0x2195('0xb9')](_0x13bad4);if(_0x2195('0x77')!==_0x38303d)continue;const _0x438d0a=this[_0x2195('0x10')][_0x2195('0xe8')](_0x40f687);if(null!=_0x37c8ef[_0x2195('0x100')]){_0x2195('0xa7')==_0x31da75&&(_0x18bdcc=_0x18bdcc||Mt(_0x37c8ef[_0x2195('0x100')],_0x13bad4,_0x980847,_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')]));if(_0x37c8ef[_0x2195('0x100')][_0x2195('0x13d')]||_0x2195('0x10a')==_0x37c8ef[_0x2195('0x100')]['root'][_0x2195('0x65')]||'formatBlock'==_0x31da75&&!Nt(_0x37c8ef[_0x2195('0x100')])||_0x2195('0xa1')==_0x31da75&&!(!_t(_0x4b7d80=_0x37c8ef['newRange'])&&!function(_0x3908c0){return _0x3908c0['start'][_0x2195('0xb4')]==_0x3908c0[_0x2195('0x7')][_0x2195('0x1f')]&&_0x3908c0['start'][_0x2195('0xed')];}(_0x4b7d80)))_0x980847[_0x2195('0x69')](_0x13bad4),_0x18bdcc=!0x0;else{if(!_0x438d0a||!_0x438d0a[_0x2195('0x139')])continue;_0x2e3322['add'](_0x438d0a);}}}var _0x4b7d80;return _0x2e3322['size']>0x0&&(_0x18bdcc=!!this[_0x2195('0x57')](_0x2e3322)||_0x18bdcc),_0x18bdcc;}),_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0x51')](_0x5ea08a=>{let _0x49d94c=!0x1;for(const _0x50096c of _0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0xf2')][_0x2195('0x70')]()){if('insert'!=_0x50096c['type'])continue;const _0x49552f=_0x50096c[_0x2195('0x11f')]['getShiftedBy'](_0x50096c[_0x2195('0x135')]);if(_0x49552f[_0x2195('0xed')])for(const _0x38abf1 of this['_suggestions']['values']()){if(_0x38abf1[_0x2195('0x3f')]||!_0x38abf1[_0x2195('0x139')])continue;if(_0x2195('0x98')!=_0x38abf1[_0x2195('0x33')])continue;const _0x4e856f=_0x38abf1[_0x2195('0xc6')]();if(_0x4e856f[_0x2195('0x90')][_0x2195('0xb4')]!=_0x4e856f[_0x2195('0x7')][_0x2195('0xb4')]&&_0x4e856f['end'][_0x2195('0x6b')](_0x50096c[_0x2195('0x11f')])){const _0x4ebabf=_0x34d0b1['model']['createRange'](_0x4e856f['start'],_0x49552f);_0x5ea08a[_0x2195('0x121')](_0x38abf1[_0x2195('0x13')](),{'range':_0x4ebabf}),_0x49d94c=!0x0;}}}return _0x49d94c;}),_0x34d0b1[_0x2195('0x4')]['markers']['on'](_0x2195('0x49'),(_0x541d90,_0x4fa776,_0x195c67)=>{if(null==_0x195c67){const {id:_0x2e7f45}=this[_0x2195('0xb9')](_0x4fa776[_0x2195('0xe4')]),_0x67a2a4=this['_suggestions'][_0x2195('0xe8')](_0x2e7f45);_0x67a2a4&&_0x67a2a4[_0x2195('0x54')](_0x4fa776[_0x2195('0xe4')]);}}),_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')]['on'](_0x2195('0x7b'),()=>{const _0x5a7b5b=Array[_0x2195('0xc')](_0x34d0b1['model'][_0x2195('0x123')][_0x2195('0xf2')][_0x2195('0xaf')]())[_0x2195('0xfd')](_0x21d63a=>'suggestion'===this[_0x2195('0xb9')](_0x21d63a[_0x2195('0xe4')])[_0x2195('0x50')]);if(0x0===_0x5a7b5b['length'])return;_0x5a7b5b[_0x2195('0x5c')]((_0x363000,_0x1ad99c)=>{const _0x1d496d=_0x363000['data'][_0x2195('0x1e')],_0x2edb73=_0x1ad99c['data'][_0x2195('0x1e')];return null===_0x1d496d&&null===_0x2edb73?0x0:null===_0x1d496d&&null!==_0x2edb73?-0x1:null!==_0x1d496d&&null===_0x2edb73?0x1:_0x1d496d[_0x2195('0x90')][_0x2195('0xd')](_0x2edb73[_0x2195('0x90')])?-0x1:0x1;});const _0x306d0e=new Set(),_0x4fb5b0=new Set();for(const {name:_0x23a435,data:_0x550296}of _0x5a7b5b){const {id:_0x7f0ebe}=this[_0x2195('0xb9')](_0x23a435);if(null===_0x550296[_0x2195('0x1e')]){const _0x229300=this['_handleNewSuggestionMarker'](_0x23a435);_0x4fb5b0[_0x2195('0x34')](_0x229300);}else{const _0x2b08c9=this[_0x2195('0x10')][_0x2195('0xe8')](_0x7f0ebe);null!==_0x550296[_0x2195('0x100')]||_0x2b08c9[_0x2195('0x139')]?(_0x306d0e[_0x2195('0x34')](_0x2b08c9['head']),_0x4fb5b0['add'](_0x2b08c9)):this[_0x2195('0xb7')](_0x2b08c9);}}_0x4fb5b0[_0x2195('0x12b')]>0x0&&this[_0x2195('0x59')](_0x4fb5b0);for(const _0xc26cc of _0x306d0e)this[_0x2195('0xf0')](_0x2195('0x43'),_0xc26cc);}),_0x34d0b1[_0x2195('0x4')]['on']('applyOperation',(_0x2c388b,_0x573907)=>{const _0x3b2375=_0x573907[0x0];if(!this[_0x2195('0x10')]['size'])return;if(!_0x3b2375['isDocumentOperation'])return;if(_0x3b2375[_0x2195('0x111')][_0x2195('0xa0')]||!_0x3b2375[_0x2195('0x111')]['isLocal'])return;let _0x587a0e,_0x3f4f82;switch(_0x3b2375['type']){case _0x2195('0x4b'):_0x587a0e=_0x34d0b1[_0x2195('0x4')]['createPositionAt'](_0x3b2375[_0x2195('0x11f')]),_0x3f4f82=_0x587a0e[_0x2195('0x136')](_0x3b2375[_0x2195('0xab')]);break;case _0x2195('0xe5'):_0x587a0e=_0x34d0b1[_0x2195('0x4')][_0x2195('0xde')](_0x3b2375[_0x2195('0xe2')]),_0x3f4f82=_0x34d0b1[_0x2195('0x4')]['createPositionAt'](_0x3b2375[_0x2195('0x24')]);break;case _0x2195('0x3e'):_0x587a0e=_0x34d0b1[_0x2195('0x4')][_0x2195('0xde')](_0x3b2375['targetPosition']),_0x3f4f82=_0x587a0e[_0x2195('0x136')](_0x3b2375[_0x2195('0xab')]);break;default:return;}const _0x109419=_0x34d0b1[_0x2195('0x4')][_0x2195('0x6c')](_0x587a0e,_0x3f4f82);_0x34d0b1['model'][_0x2195('0xf4')](()=>{for(const {suggestion:_0x2a9129,meta:_0x1d7ce0}of this['_findSuggestions'](_0x109419)){if(_0x2a9129[_0x2195('0x3f')])continue;if('formatInline'==_0x2a9129[_0x2195('0x33')])continue;const _0x580479=_0x2a9129[_0x2195('0xc0')]&&_0x2a9129[_0x2195('0xc0')][_0x2195('0x17')];('formatBlock'!=_0x2a9129[_0x2195('0x33')]||'split'==_0x3b2375[_0x2195('0x33')]&&!_0x580479)&&(_0x1d7ce0[_0x2195('0x5f')]||_0x2195('0xe3')==_0x2a9129[_0x2195('0x33')]&&_0x1d7ce0[_0x2195('0x87')]||_0x2a9129[_0x2195('0xc6')]()['containsRange'](_0x109419)&&this['_breakSuggestionMarker'](_0x2a9129,_0x587a0e,_0x3f4f82));}});},{'priority':_0x2195('0xae')}),_0x34d0b1[_0x2195('0x4')]['on']('deleteContent',(_0x50fe78,_0x2166b4)=>{const _0x13e1cb=_0x2166b4[0x0],_0x4165f4=_0x2166b4[0x1];if(_0x4165f4&&_0x4165f4[_0x2195('0x66')])return;if(this[_0x2195('0xc3')])return;if(!this[_0x2195('0x67')]['value'])return;if(_0x13e1cb[_0x2195('0x13d')])return;const _0x3e6a2a=_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')],{start:_0x5d9b15,end:_0x2e4cc1}=_0x13e1cb[_0x2195('0xc6')](),_0xca7b8a=_0x5d9b15[_0x2195('0xb3')]&&_0x3e6a2a[_0x2195('0xd4')](_0x5d9b15['nodeAfter'])?null:_0x3e6a2a[_0x2195('0x119')](_0x5d9b15,_0x2195('0x64')),_0x3a9a77=_0x2e4cc1[_0x2195('0x1f')]&&_0x3e6a2a['isLimit'](_0x2e4cc1[_0x2195('0x1f')])?null:_0x3e6a2a[_0x2195('0x119')](_0x2e4cc1,_0x2195('0xfb')),_0x6104d7=_0x34d0b1['model'][_0x2195('0x6c')](_0xca7b8a?_0xca7b8a[_0x2195('0x90')]:_0x5d9b15,_0x3a9a77?_0x3a9a77[_0x2195('0x7')]:_0x2e4cc1);_0x34d0b1[_0x2195('0x4')][_0x2195('0xf4')](_0x1a8b57=>{this[_0x2195('0xd2')](_0x6104d7);const _0x11d0b3=_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')][_0x2195('0x119')](_0x6104d7[_0x2195('0x90')]);_0x13e1cb['is']('documentSelection')?_0x1a8b57[_0x2195('0xb0')](_0x11d0b3):_0x13e1cb[_0x2195('0x1c')](_0x11d0b3);}),_0x50fe78[_0x2195('0x76')]();},{'priority':_0x1731a3['normal']+0xa}),_0x34d0b1[_0x2195('0x4')]['on'](_0x2195('0x131'),(_0x16cf7b,_0x5c2952)=>{const _0x52e598=_0x5c2952[_0x5c2952[_0x2195('0x135')]-0x1];_0x52e598&&_0x52e598[_0x2195('0x66')]||this[_0x2195('0xc3')]||this[_0x2195('0x67')][_0x2195('0xc2')]&&(_0x34d0b1[_0x2195('0x4')][_0x2195('0xf4')](()=>{let _0x11b60b=_0x34d0b1[_0x2195('0x4')][_0x2195('0x131')](_0x5c2952[0x0],_0x5c2952[0x1],_0x5c2952[0x2],{'forceDefaultExecution':!0x0});if(!_0x11b60b)return;_0x16cf7b['return']=_0x11b60b[_0x2195('0xa6')]();const _0xedfec5=_0x11b60b[_0x2195('0x7')]['nodeBefore'],_0x1da50b=_0x34d0b1['model'][_0x2195('0x37')];_0xedfec5&&_0x1da50b[_0x2195('0xe')](_0xedfec5)&&!_0x1da50b['isObject'](_0xedfec5)&&(_0x11b60b=_0x34d0b1[_0x2195('0x4')][_0x2195('0x6c')](_0x11b60b[_0x2195('0x90')],_0x34d0b1[_0x2195('0x4')][_0x2195('0xde')](_0xedfec5,_0x2195('0x7')))),this[_0x2195('0x1d')](_0x11b60b);}),_0x16cf7b[_0x2195('0x76')]());},{'priority':_0x2195('0x94')}),this[_0x2195('0x12a')][_0x2195('0x75')][_0x2195('0x34')](_0x2195('0x128'),this[_0x2195('0x67')]),this['enableCommand']('trackChanges');const _0x3804d5=new _0x5e4ad2(_0x34d0b1,this['_suggestions']);_0x34d0b1[_0x2195('0x75')]['add'](_0x2195('0xce'),_0x3804d5),this[_0x2195('0x114')](_0x2195('0xce'));const _0x5768e5=new _0xfca4f8(_0x34d0b1,this['_suggestions']);_0x34d0b1[_0x2195('0x75')][_0x2195('0x34')](_0x2195('0x20'),_0x5768e5),this[_0x2195('0x114')](_0x2195('0x20')),_0x34d0b1['commands'][_0x2195('0x34')](_0x2195('0xa2'),new _0x55da74(_0x34d0b1,_0x3804d5,this[_0x2195('0x10')])),this[_0x2195('0x114')](_0x2195('0xa2')),_0x34d0b1[_0x2195('0x75')][_0x2195('0x34')](_0x2195('0xe1'),new _0x55da74(_0x34d0b1,_0x5768e5,this[_0x2195('0x10')])),this[_0x2195('0x114')](_0x2195('0xe1')),_0x34d0b1[_0x2195('0x75')][_0x2195('0x34')](_0x2195('0x99'),new _0x9e71ef(_0x34d0b1,_0x3804d5,this[_0x2195('0x10')])),this[_0x2195('0x114')](_0x2195('0x99')),_0x34d0b1[_0x2195('0x75')]['add'](_0x2195('0xd8'),new _0x9e71ef(_0x34d0b1,_0x5768e5,this[_0x2195('0x10')])),this['enableCommand']('discardSelectedSuggestions');const _0x3b7e0a=_0x34d0b1[_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x130'));this['listenTo'](_0x3b7e0a,_0x2195('0x122'),(_0x54c49d,{threadId:_0xa94310})=>{const _0x10b184=this[_0x2195('0x10')][_0x2195('0xe8')](_0xa94310);_0x10b184&&_0x10b184[_0x2195('0x48')]&&0x1===_0x10b184[_0x2195('0x48')][_0x2195('0x135')]&&this[_0x2195('0x118')](_0xa94310,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2195('0xc4')](_0x3b7e0a,_0x2195('0x83'),(_0xbad412,{threadId:_0x504ed3})=>{const _0x5632ff=this[_0x2195('0x10')]['get'](_0x504ed3);_0x5632ff&&_0x5632ff['commentThread']&&!_0x5632ff[_0x2195('0x48')][_0x2195('0x135')]&&this[_0x2195('0x118')](_0x504ed3,{'hasComments':!0x1});},{'priority':_0x2195('0xdc')});}set['adapter'](_0x1ca98b){if(this[_0x2195('0x92')])throw new _0x143303(_0x2195('0x115'),this);this[_0x2195('0x92')]=_0x1ca98b;}get[_0x2195('0xee')](){return this[_0x2195('0x92')];}['getSuggestions']({skipNotAttached:_0x24eaba=!0x1,toJSON:_0x26b220=!0x1}={}){const _0x369503=[];for(const _0x5f39e6 of this['_suggestions'][_0x2195('0xb')]())_0x24eaba&&!_0x5f39e6[_0x2195('0x139')]||_0x369503['push'](_0x5f39e6);return _0x26b220?_0x369503['map'](_0x6fa5e3=>_0x6fa5e3[_0x2195('0x41')]()):_0x369503;}[_0x2195('0xb8')](_0x577d44){const _0x51f59f=this['_suggestions'][_0x2195('0xe8')](_0x577d44);if(!_0x51f59f)throw new _0x143303('track-changes-suggestion-not-found',this);return _0x51f59f;}['hasSuggestion'](_0x229a3d){return this['_suggestions']['has'](_0x229a3d);}[_0x2195('0xfc')](_0x2c2ff2){const {authorId:_0x550b8d,id:_0xb4189a,attributes:_0x35ba09}=_0x2c2ff2,[_0x2d30f5,_0x3f88dd]=_0x2c2ff2[_0x2195('0x33')][_0x2195('0xe5')](':'),_0x3c893c=this[_0x2195('0x10')]['get'](_0xb4189a)||this[_0x2195('0xd0')](_0x2d30f5,_0x3f88dd,_0xb4189a,_0x550b8d,_0x35ba09);if(this[_0x2195('0x5')](_0x3c893c),this['_checkSuggestionCorrectness'](_0x3c893c,_0x2d30f5,_0x3f88dd||null,_0x550b8d),_0x3c893c[_0x2195('0x12c')]=_0x2c2ff2[_0x2195('0x12c')],_0x35ba09&&_0x35ba09[_0x2195('0x6d')]){const _0x2028ab=_0x35ba09[_0x2195('0x6d')],_0x19e19d=this[_0x2195('0x44')](_0x2028ab[_0x2195('0x23')]);_0x3c893c[_0x2195('0x10b')]=_0x2028ab['createdAt'],_0x3c893c[_0x2195('0xef')]=_0x19e19d,_0x3c893c['isExternal']=!0x0;}else _0x3c893c['authoredAt']=_0x2c2ff2[_0x2195('0x12c')];switch(_0x2c2ff2[_0x2195('0xc0')]&&(_0x3c893c[_0x2195('0xc0')]=_0x2c2ff2[_0x2195('0xc0')]),_0x2c2ff2[_0x2195('0x30')]&&(_0x3c893c['attributes']=_0x2c2ff2[_0x2195('0x30')]),this[_0x2195('0x92')]&&this[_0x2195('0x92')][_0x2195('0x11a')]||(_0x3c893c[_0x2195('0x40')]=!0x0),this[_0x2195('0x129')][_0x2195('0xe8')](_0x3c893c)){case'notReady':this[_0x2195('0x129')][_0x2195('0x8d')](_0x3c893c,_0x2195('0x68'));break;case _0x2195('0x117'):_0x3c893c[_0x2195('0x139')]?(this[_0x2195('0x129')][_0x2195('0x8d')](_0x3c893c,'ready'),this[_0x2195('0xf0')](_0x2195('0x8'),_0x3c893c)):this[_0x2195('0x129')][_0x2195('0x8d')](_0x3c893c,_0x2195('0x95'));}return _0x3c893c;}[_0x2195('0xce')](_0x1c7f80){this[_0x2195('0x66')](()=>{this[_0x2195('0x12a')][_0x2195('0x4')][_0x2195('0xf4')](()=>{for(const _0x7abd7d of _0x1c7f80[_0x2195('0xd1')]())_0x7abd7d['accept']();});});}[_0x2195('0x20')](_0x55d9f2){this['forceDefaultExecution'](()=>{this[_0x2195('0x12a')][_0x2195('0x4')][_0x2195('0xf4')](()=>{for(const _0x248ba7 of _0x55d9f2[_0x2195('0xd1')]())_0x248ba7[_0x2195('0x81')]();});});}[_0x2195('0x114')](_0x2943d9,_0x2e4a23){const _0x50ef22=this['editor']['commands'][_0x2195('0xe8')](_0x2943d9);if(!_0x50ef22)throw new _0x143303(_0x2195('0x82'),this,{'commandName':_0x2943d9});this[_0x2195('0xf9')][_0x2195('0x34')](_0x50ef22),_0x2e4a23&&_0x50ef22['on'](_0x2195('0xac'),(_0x59486d,_0x5731e2)=>{this[_0x2195('0x67')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x5731e2['length']>0x0&&_0x5731e2[_0x5731e2[_0x2195('0x135')]-0x1]&&_0x5731e2[_0x5731e2[_0x2195('0x135')]-0x1]['forceDefaultExecution']||(_0x2e4a23((..._0x5292ff)=>_0x50ef22[_0x2195('0xac')](..._0x5292ff,{'forceDefaultExecution':!0x0}),..._0x5731e2),_0x59486d[_0x2195('0x76')]()));},{'priority':_0x2195('0x94')});}[_0x2195('0x66')](_0xbd2a3c){let _0x243d72,_0x57e58c;const _0x177a21=this['_isForcedDefaultExecutionBlock'];this[_0x2195('0xc3')]=!0x0;try{_0x243d72=_0xbd2a3c();}catch(_0x10eff5){_0x57e58c=_0x10eff5;}return _0x177a21||(this[_0x2195('0xc3')]=!0x1),_0x57e58c&&_0x143303['rethrowUnexpectedError'](_0x57e58c,this),_0x243d72;}['markInsertion'](_0x21b148,_0x590656=null,_0x11edb3={}){if(_0x21b148[_0x2195('0x13d')])return null;const _0x512e12=this[_0x2195('0x12a')]['plugins'][_0x2195('0xe8')](_0x2195('0x2'))['me'];for(const {suggestion:_0x128d3b,meta:_0x5b3f7d}of this[_0x2195('0x7c')](_0x21b148,_0x2195('0xe3')))if(_0x5b3f7d[_0x2195('0x87')]){if(!_0x5b3f7d[_0x2195('0x47')]){if(!this[_0x2195('0x78')]&&_0x5b3f7d[_0x2195('0x5f')])continue;return _0x128d3b;}if(_0x590656==_0x128d3b['subType']){const _0x1fdebf=_0x128d3b[_0x2195('0xc6')]();return _0x1fdebf['start'][_0x2195('0x6b')](_0x21b148[_0x2195('0x7')])?this['_setSuggestionRange'](_0x128d3b,this[_0x2195('0x126')][_0x2195('0x6c')](_0x21b148[_0x2195('0x90')],_0x1fdebf['end'])):this[_0x2195('0xc7')](_0x128d3b,this[_0x2195('0x126')][_0x2195('0x6c')](_0x1fdebf[_0x2195('0x90')],_0x21b148[_0x2195('0x7')])),_0x128d3b;}}const _0x2b719d=_0x3dda14(),_0x110c62=_0x512e12['id'],_0x1a1b06=_0x590656?_0x2195('0x11b')+_0x590656:_0x2195('0xe3'),_0x5476c4=this['_setSuggestionData']({'id':_0x2b719d,'type':_0x1a1b06,'createdAt':new Date(),'authorId':_0x110c62,'attributes':_0x11edb3});return this[_0x2195('0xb1')](_0x1a1b06,_0x2b719d,_0x110c62,_0x21b148),_0x5476c4;}[_0x2195('0x35')](_0x41096b,_0x30c4f6=_0x2195('0x101'),_0x5068f9={}){const _0xe76513=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')]('Users')['me'],_0x1d80c2=this[_0x2195('0x6e')]['getSuggestionCallback'](_0x2195('0xe3'),_0x30c4f6,_0x2195('0x3d'));for(const _0x3609a1 of this[_0x2195('0x27')]())if(_0x3609a1[_0x2195('0xef')]['id']==_0xe76513['id']&&_0x2195('0xe3')==_0x3609a1[_0x2195('0x33')]&&_0x3609a1[_0x2195('0x103')]==_0x30c4f6&&(_0x1d80c2(_0x3609a1[_0x2195('0x2f')](),_0x41096b)||_0x1d80c2(_0x41096b,_0x3609a1[_0x2195('0x2f')]()))){for(const _0x4e700a of _0x41096b)_0x3609a1[_0x2195('0xeb')](_0x4e700a);return _0x3609a1;}if(this[_0x2195('0x78')])for(const _0xf37836 of _0x41096b)for(const {suggestion:_0xf3edf0,meta:_0x10ad3e}of this[_0x2195('0x7c')](_0xf37836,'insertion')){if(!_0x10ad3e['isOwn'])continue;let _0x52ea2c=!0x0;for(const _0x287ab0 of _0xf3edf0[_0x2195('0x2f')]())for(const _0x24c5d7 of _0x41096b)if(!_0x287ab0[_0x2195('0x3a')](_0x24c5d7)){_0x52ea2c=!0x1;break;}if(_0x52ea2c)return _0xf3edf0;}const _0x4f896d=_0x3dda14(),_0x37e892=_0xe76513['id'],_0x4b1d94=_0x2195('0x11b')+_0x30c4f6,_0x23f7b4=this['_setSuggestionData']({'id':_0x4f896d,'type':_0x4b1d94,'createdAt':new Date(),'authorId':_0x37e892,'attributes':_0x5068f9});for(const _0x5a34d1 of _0x41096b)this[_0x2195('0xb1')](_0x4b1d94,_0x4f896d,_0x37e892,_0x5a34d1,_0x1ee015['getMultiRangeId']());return _0x23f7b4;}['markInlineFormat'](_0x49dd55,_0x20c940,_0x3a71cd=null,_0x5cf60d={}){if(_0x3a71cd=_0x3a71cd||$t(_0x20c940),_0x49dd55[_0x2195('0x13d')])return null;if(_0x2195('0x11d')===this['_trackFormatChanges']){const _0x104595=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa7'),_0x3a71cd,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x104595([_0x49dd55],_0x20c940,_0x5cf60d)),null;}const _0x55744a=this[_0x2195('0x12a')][_0x2195('0x3c')]['get'](_0x2195('0x2'))['me'],_0x83068d=[];if('always'!==this[_0x2195('0x104')])for(const {suggestion:_0x4b3a57,meta:_0x4370ff}of this['_findSuggestions'](_0x49dd55,_0x2195('0xe3')))_0x4370ff[_0x2195('0x87')]&&!_0x4370ff[_0x2195('0x13e')]&&_0x83068d[_0x2195('0x10f')](..._0x4b3a57[_0x2195('0x2f')]());const _0x4f732c=function(_0x54c29c,_0x521e49){const _0x11ab6f=[];for(const _0x491321 of _0x521e49){const _0x2efaf7=_0x54c29c[_0x2195('0x106')](_0x491321);_0x2efaf7&&_0x11ab6f[_0x2195('0x10f')](_0x2efaf7);}return _0x11ab6f;}(_0x49dd55,_0x83068d),_0x2432a5=function(_0x418b85,_0x4f2f29){const _0x4f21c3=[_0x418b85];for(const _0x4e3400 of _0x4f2f29){let _0x19c3ca=0x0;for(;_0x19c3ca<_0x4f21c3[_0x2195('0x135')];){const _0x3a4a54=_0x4f21c3[_0x19c3ca][_0x2195('0x26')](_0x4e3400);_0x4f21c3['splice'](_0x19c3ca,0x1,..._0x3a4a54),_0x19c3ca+=_0x3a4a54[_0x2195('0x135')];}}return _0x4f21c3;}(_0x49dd55,_0x83068d);_0x4f732c['length']&&this[_0x2195('0x126')][_0x2195('0xf4')](()=>{for(const _0x2f88f1 of _0x4f732c){const _0x515b27=this[_0x2195('0x6e')][_0x2195('0xf')]('formatInline',_0x3a71cd,_0x2195('0x5e'));this[_0x2195('0x66')](()=>_0x515b27([_0x2f88f1],_0x20c940,_0x5cf60d));}});for(const _0x55768c of _0x2432a5){let _0x768bae=null,_0x1c627f=_0x55768c[_0x2195('0x90')],_0x18a2c6=_0x55768c[_0x2195('0x7')];for(const {suggestion:_0x44200b,meta:_0x2b195f}of this['_findSuggestions'](_0x55768c,'formatInline')){if(!_0x2b195f[_0x2195('0x87')])continue;if(_0x44200b[_0x2195('0x103')]!=_0x3a71cd)continue;const _0x5b6eff=_0x44200b[_0x2195('0xc6')]();if(_0x5b6eff['containsRange'](_0x55768c,!0x0))return null;_0x1c627f=_0x1c627f[_0x2195('0xd')](_0x5b6eff['start'])?_0x1c627f:_0x5b6eff['start'],_0x18a2c6=_0x18a2c6[_0x2195('0x4d')](_0x5b6eff[_0x2195('0x7')])?_0x18a2c6:_0x5b6eff[_0x2195('0x7')],_0x768bae?_0x5b6eff[_0x2195('0x90')][_0x2195('0xd')](_0x768bae['getFirstRange']()[_0x2195('0x90')])?(_0x768bae[_0x2195('0x13b')](),_0x768bae=_0x44200b):_0x44200b[_0x2195('0x13b')]():_0x768bae=_0x44200b;}const _0x475abd=this[_0x2195('0x126')]['createRange'](_0x1c627f,_0x18a2c6);if(_0x768bae)this['_setSuggestionRange'](_0x768bae,_0x475abd);else{const _0x40aa61=_0x3dda14(),_0x4e9295=_0x55744a['id'];this[_0x2195('0xdf')]({'id':_0x40aa61,'type':_0x2195('0x86')+_0x3a71cd,'data':_0x20c940,'createdAt':new Date(),'authorId':_0x4e9295,'attributes':_0x5cf60d}),this['_addSuggestionMarker'](_0x2195('0x86')+_0x3a71cd,_0x40aa61,_0x4e9295,_0x475abd);}}return null;}[_0x2195('0x110')](_0x1e42fe,_0x2ecfa1,_0x5d1764=[],_0x5b913e=null,_0x5c6037={}){_0x2ecfa1[_0x2195('0xf8')]||(_0x2ecfa1[_0x2195('0xf8')]=_0x2ecfa1[_0x2195('0x9d')]),_0x2ecfa1[_0x2195('0x17')]=_0x1e42fe['is'](_0x2195('0xbe')),_0x5b913e=_0x5b913e||$t(_0x2ecfa1);const _0x446157=_0x5d1764[_0x2195('0xd5')](_0xa4a9b7=>Rt(_0xa4a9b7,this['_model'])),_0x38efaf=_0x1e42fe['is'](_0x2195('0xbe'))?_0x1e42fe:Rt(_0x1e42fe,this[_0x2195('0x126')]);if(_0x2195('0x11d')===this[_0x2195('0x104')]){const _0x35d98c=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x5b913e,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x35d98c([_0x38efaf],_0x2ecfa1,_0x5c6037)),null;}_0x446157[_0x2195('0x10f')](_0x38efaf);let _0x321ae6=!0x0;for(const _0x3b7e64 of _0x446157)if(!this[_0x2195('0xa')](_0x3b7e64)){_0x321ae6=!0x1;break;}if(_0x321ae6&&'always'!==this['_trackFormatChanges']){const _0x1f37b1=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x5b913e,_0x2195('0x5e'));return this['forceDefaultExecution'](()=>_0x1f37b1([_0x38efaf],_0x2ecfa1,_0x5c6037)),null;}let _0x334033=null,_0x50622d=_0x38efaf['start'],_0x1318d3=_0x38efaf[_0x2195('0x7')];for(const {suggestion:_0x3bfbb8,meta:_0x1db7b5}of this[_0x2195('0x7c')](_0x38efaf,_0x2195('0x98'))){if(!_0x1db7b5['isOwn']||_0x1db7b5[_0x2195('0x47')]||_0x1db7b5[_0x2195('0x5f')]||_0x1db7b5[_0x2195('0x13e')])continue;if(_0x3bfbb8['data'][_0x2195('0xf8')]!=_0x2ecfa1[_0x2195('0xf8')])continue;const _0x150b8d=_0x3bfbb8[_0x2195('0xc6')]();if(_0x3bfbb8['subType']==_0x5b913e){if(_0x150b8d[_0x2195('0x3a')](_0x38efaf,!0x0))return null;_0x50622d=_0x50622d[_0x2195('0xd')](_0x150b8d[_0x2195('0x90')])?_0x50622d:_0x150b8d[_0x2195('0x90')],_0x1318d3=_0x1318d3[_0x2195('0x4d')](_0x150b8d[_0x2195('0x7')])?_0x1318d3:_0x150b8d['end'],_0x334033?_0x150b8d[_0x2195('0x90')][_0x2195('0xd')](_0x334033[_0x2195('0xc6')]()['start'])?(_0x334033[_0x2195('0x13b')](),_0x334033=_0x3bfbb8):_0x3bfbb8[_0x2195('0x13b')]():_0x334033=_0x3bfbb8;}else{const _0x197261=_0x38efaf['getIntersection'](_0x150b8d);this['_cutOutSuggestionMarker'](_0x3bfbb8,_0x197261);}}const _0x4a84b1=this[_0x2195('0x12a')][_0x2195('0x3c')]['get']('Users')['me'],_0x59df55=_0x3dda14(),_0x151644=_0x4a84b1['id'];if(_0x334033)return this['_setSuggestionRange'](_0x334033,this[_0x2195('0x126')][_0x2195('0x6c')](_0x50622d,_0x1318d3)),_0x334033;{const _0x3a9680=this[_0x2195('0xdf')]({'id':_0x59df55,'type':_0x2195('0x56')+_0x5b913e,'data':_0x2ecfa1,'createdAt':new Date(),'authorId':_0x151644,'attributes':_0x5c6037});return this['_addSuggestionMarker'](_0x2195('0x56')+_0x5b913e,_0x59df55,_0x151644,this[_0x2195('0x126')][_0x2195('0x6c')](_0x50622d,_0x1318d3)),_0x3a9680;}}[_0x2195('0xd9')](_0x148708,_0x231501,_0xafd1b5=[],_0x58e1ee=null,_0x1b314d={}){_0x231501['formatGroupId']||(_0x231501['formatGroupId']=_0x231501[_0x2195('0x9d')]);const _0x386b02=_0x148708[0x0];_0x231501[_0x2195('0x17')]=_0x386b02['is'](_0x2195('0xbe')),_0x58e1ee=_0x58e1ee||$t(_0x231501);const _0x526e6b=_0xafd1b5[_0x2195('0xd5')](_0x3736c4=>Rt(_0x3736c4,this[_0x2195('0x126')])),_0x3879f2=_0x386b02['is'](_0x2195('0xbe'))?_0x148708:_0x148708['map'](_0xb71725=>Rt(_0xb71725,this['_model']));if(_0x2195('0x11d')===this[_0x2195('0x104')]){const _0x51f42f=this[_0x2195('0x6e')][_0x2195('0xf')]('formatBlock',_0x58e1ee,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x51f42f(_0x3879f2,_0x231501,_0x1b314d)),null;}_0x526e6b[_0x2195('0x10f')](..._0x3879f2);let _0x2f455d=!0x0;for(const _0x5c70a2 of _0x526e6b)if(!this['_rangeIsInLocalUserInsertion'](_0x5c70a2)){_0x2f455d=!0x1;break;}if(_0x2f455d&&_0x2195('0x11')!==this[_0x2195('0x104')]){const _0x27b8b5=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x58e1ee,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x27b8b5(_0x3879f2,_0x231501,_0x1b314d)),null;}const _0x14a8e4=this[_0x2195('0x12a')]['plugins']['get'](_0x2195('0x2'))['me'];for(const _0x518c91 of this[_0x2195('0x27')]()){if(_0x518c91[_0x2195('0xef')]['id']!=_0x14a8e4['id'])continue;if(_0x2195('0x98')!=_0x518c91[_0x2195('0x33')]||_0x518c91[_0x2195('0xc0')][_0x2195('0xf8')]!=_0x231501[_0x2195('0xf8')])continue;const _0x1c1fc8=_0x518c91[_0x2195('0x103')]==_0x58e1ee;for(let _0x56fd23=0x0;_0x56fd23<_0x3879f2[_0x2195('0x135')];_0x56fd23++){const _0x42ce31=_0x3879f2[_0x56fd23];for(const _0x23e38d of _0x518c91[_0x2195('0x25')]()){const _0x15581d=_0x23e38d[_0x2195('0xd7')]();if(_0x42ce31[_0x2195('0x6b')](_0x15581d)){_0x1c1fc8?(_0x3879f2[_0x2195('0x19')](_0x56fd23,0x1),_0x56fd23--):_0x518c91[_0x2195('0x69')](_0x23e38d[_0x2195('0xe4')]);break;}}}}if(0x0==_0x3879f2[_0x2195('0x135')])return null;const _0x15aa3d=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x58e1ee,'join');for(const _0x33ed8d of this['getSuggestions']())if(_0x33ed8d[_0x2195('0xef')]['id']==_0x14a8e4['id']&&'formatBlock'==_0x33ed8d[_0x2195('0x33')]&&_0x33ed8d['data'][_0x2195('0xf8')]==_0x231501[_0x2195('0xf8')]&&_0x33ed8d[_0x2195('0x103')]==_0x58e1ee&&(_0x15aa3d(_0x33ed8d['getRanges'](),_0x3879f2)||_0x15aa3d(_0x3879f2,_0x33ed8d['getRanges']()))){for(const _0x467816 of _0x3879f2)_0x33ed8d[_0x2195('0xeb')](_0x467816);return _0x33ed8d;}const _0x22be6d=_0x3dda14(),_0x4ee343=_0x14a8e4['id'],_0xeadb5b=_0x2195('0x56')+_0x58e1ee,_0x5af904=this[_0x2195('0xdf')]({'id':_0x22be6d,'type':_0xeadb5b,'data':_0x231501,'createdAt':new Date(),'authorId':_0x4ee343,'attributes':_0x1b314d});for(const _0x1efa74 of _0x3879f2)this['_addSuggestionMarker'](_0xeadb5b,_0x22be6d,_0x4ee343,_0x1efa74,_0x1ee015[_0x2195('0x8c')]());return _0x5af904;}[_0x2195('0xd2')](_0xc676b5,_0x3e972f=null,_0x2b66a7={}){if(_0xc676b5[_0x2195('0x13d')])return null;const _0x3dcb89=this[_0x2195('0x12a')][_0x2195('0x3c')]['get'](_0x2195('0x2'))['me'],_0x41d4dd=new _0x30ce05(_0xc676b5['start'],_0xc676b5[_0x2195('0x7')]);for(const {suggestion:_0x5e55f4,meta:_0x306b30}of this[_0x2195('0x7c')](_0x41d4dd,'insertion'))if(_0x306b30[_0x2195('0x87')]&&!_0x306b30[_0x2195('0x47')]){if(_0x5e55f4[_0x2195('0x3f')]){const _0x42f58a=_0x5e55f4[_0x2195('0x2f')]()['filter'](_0x55f81f=>'$graveyard'!=_0x55f81f['root'][_0x2195('0x65')]);_0x42f58a[_0x2195('0x124')](_0x655cf5=>_0x41d4dd[_0x2195('0x3a')](_0x655cf5,!0x0))&&_0x5e55f4[_0x2195('0x81')]();if(_0x42f58a[_0x2195('0x12d')](_0x2e4bf1=>_0x2e4bf1[_0x2195('0x3a')](_0x41d4dd,!0x0))){const _0x326635=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa1'),_0x3e972f,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x326635([_0x41d4dd],null,_0x2b66a7)),null;}}else{const _0x484e17=_0x41d4dd[_0x2195('0x106')](_0x5e55f4['getFirstRange']());null!==_0x484e17&&_0x5e55f4[_0x2195('0x1')]([_0x484e17],null,_0x2b66a7);}}if(_0x41d4dd[_0x2195('0x46')](),_0x41d4dd[_0x2195('0x13d')]||'$graveyard'==_0x41d4dd[_0x2195('0x3')][_0x2195('0x65')])return null;let _0x5451a5=null,_0x49d1dd=_0x41d4dd[_0x2195('0x90')],_0x516b0c=_0x41d4dd['end'];for(const {suggestion:_0x29535a,meta:_0x12520a}of this[_0x2195('0x7c')](_0x41d4dd,_0x2195('0xa1')))if(_0x12520a[_0x2195('0x87')]){if(_0x29535a[_0x2195('0x3f')]&&this[_0x2195('0x78')]){let _0x28c612=!0x0;for(const _0x3263dd of _0x29535a[_0x2195('0x2f')]()){if(_0x3263dd['containsRange'](_0x41d4dd,!0x0))return _0x29535a;_0x41d4dd[_0x2195('0x3a')](_0x3263dd)||(_0x28c612=!0x1);}_0x28c612&&_0x29535a[_0x2195('0x81')]();}else{const _0x3f1317=_0x29535a[_0x2195('0xc6')]();if(_0x3f1317[_0x2195('0x3a')](_0x41d4dd,!0x0)){if(!this[_0x2195('0x78')]&&_0x12520a[_0x2195('0x5f')])continue;return _0x29535a;}_0x49d1dd=_0x49d1dd['isBefore'](_0x3f1317[_0x2195('0x90')])?_0x49d1dd:_0x3f1317['start'],_0x516b0c=_0x516b0c[_0x2195('0x4d')](_0x3f1317[_0x2195('0x7')])?_0x516b0c:_0x3f1317[_0x2195('0x7')],_0x5451a5?_0x3f1317[_0x2195('0x90')]['isBefore'](_0x5451a5[_0x2195('0xc6')]()[_0x2195('0x90')])?(_0x5451a5[_0x2195('0x13b')](),_0x5451a5=_0x29535a):_0x29535a[_0x2195('0x13b')]():_0x5451a5=_0x29535a;}}if(_0x5451a5)return this[_0x2195('0xc7')](_0x5451a5,this[_0x2195('0x126')]['createRange'](_0x49d1dd,_0x516b0c)),_0x5451a5;{const _0xeb7389=_0x3dda14(),_0x1e8e0c=this[_0x2195('0x126')][_0x2195('0x6c')](_0x49d1dd,_0x516b0c),_0x33866c=_0x3dcb89['id'],_0x106334=_0x3e972f?_0x2195('0x10d')+_0x3e972f:'deletion',_0x95cb90=this[_0x2195('0xdf')]({'id':_0xeb7389,'type':_0x106334,'createdAt':new Date(),'authorId':_0x33866c,'attributes':_0x2b66a7});return this[_0x2195('0xb1')](_0x106334,_0xeb7389,_0x33866c,_0x1e8e0c),_0x95cb90;}}[_0x2195('0xb2')](_0x2e0a1f,_0x5f1340=_0x2195('0x101'),_0x5a085e={}){const _0x401712=this[_0x2195('0x12a')][_0x2195('0x3c')]['get'](_0x2195('0x2'))['me'],_0x3d0694=_0x2e0a1f['map'](_0x542621=>new _0x30ce05(_0x542621[_0x2195('0x90')],_0x542621[_0x2195('0x7')])),_0x5ac1d8=new Set();for(const _0x3f1dfc of _0x3d0694)for(const {suggestion:_0x18b3b2,meta:_0x54486c}of this[_0x2195('0x7c')](_0x3f1dfc,'insertion'))_0x54486c[_0x2195('0x87')]&&!_0x54486c[_0x2195('0x47')]&&_0x5ac1d8[_0x2195('0x34')](_0x18b3b2);for(const _0x286555 of _0x5ac1d8)if(_0x286555['isMultiRange']){const _0x58d5c0=_0x286555[_0x2195('0x2f')]();(!_0x286555[_0x2195('0x30')]||!_0x286555[_0x2195('0x30')][_0x2195('0xf7')])&&(_0x58d5c0['every'](_0x3d1a50=>_0x3d0694[_0x2195('0x12d')](_0x12b4b8=>_0x12b4b8[_0x2195('0x3a')](_0x3d1a50,!0x0)))&&_0x286555[_0x2195('0x81')]());if(_0x3d0694[_0x2195('0x124')](_0x1a1f6d=>_0x58d5c0[_0x2195('0x12d')](_0x78539e=>_0x78539e[_0x2195('0x3a')](_0x1a1f6d,!0x0)))){const _0x1e8369=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa1'),_0x5f1340,'accept');return this['forceDefaultExecution'](()=>_0x1e8369(_0x2e0a1f,null,_0x5a085e)),null;}}else{const _0x21e2fd=_0x286555[_0x2195('0xc6')]();_0x3d0694[_0x2195('0x12d')](_0x177603=>_0x177603[_0x2195('0x3a')](_0x21e2fd,!0x0))&&_0x286555['discard']();if(_0x3d0694[_0x2195('0x124')](_0x48a022=>_0x21e2fd[_0x2195('0x3a')](_0x48a022,!0x0))){const _0x170baa=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa1'),_0x5f1340,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x170baa(_0x3d0694,null,_0x5a085e)),null;}}const _0x4db3aa=this[_0x2195('0x6e')][_0x2195('0xf')]('deletion',_0x5f1340,_0x2195('0x3d'));let _0x5d12f5=null;for(const _0x48c06c of this['getSuggestions']())if(_0x48c06c[_0x2195('0xef')]['id']==_0x401712['id']&&_0x48c06c[_0x2195('0x139')]&&'deletion'==_0x48c06c[_0x2195('0x33')]&&_0x48c06c[_0x2195('0x103')]==_0x5f1340&&(_0x4db3aa(_0x48c06c['getRanges'](),_0x3d0694)||_0x4db3aa(_0x3d0694,_0x48c06c[_0x2195('0x2f')]()))){if(_0x5d12f5){if(_0x48c06c[_0x2195('0x48')]&&_0x48c06c['commentThread']['length'])continue;for(const _0x41bc3d of _0x48c06c['getRanges']())_0x5d12f5[_0x2195('0x1a')](_0x41bc3d)||_0x5d12f5[_0x2195('0xeb')](_0x41bc3d);_0x48c06c[_0x2195('0x13b')]();}else{_0x5d12f5=_0x48c06c;for(const _0x28f5cc of _0x3d0694)_0x48c06c['isIntersectingWithRange'](_0x28f5cc)||_0x48c06c[_0x2195('0xeb')](_0x28f5cc);}}if(_0x5d12f5)return _0x5d12f5;_0x5ac1d8[_0x2195('0x4a')]();for(const _0x494595 of _0x3d0694)for(const {suggestion:_0x4916c1,meta:_0x2b8308}of this[_0x2195('0x7c')](_0x494595,'deletion'))_0x2b8308[_0x2195('0x87')]&&_0x5ac1d8[_0x2195('0x34')](_0x4916c1);for(const _0x3fb483 of _0x5ac1d8){const _0x338d60=_0x3fb483['getRanges']();if(!_0x5a085e||!_0x5a085e[_0x2195('0xf7')]){if(_0x3d0694[_0x2195('0x124')](_0xa71d30=>_0x338d60[_0x2195('0x12d')](_0xe79b86=>_0xe79b86['containsRange'](_0xa71d30,!0x0))))return _0x3fb483;}(!_0x3fb483[_0x2195('0x30')]||!_0x3fb483['attributes'][_0x2195('0xf7')])&&(_0x338d60[_0x2195('0x124')](_0x2c8c96=>_0x3d0694[_0x2195('0x12d')](_0x49b77f=>_0x49b77f['containsRange'](_0x2c8c96,!0x0)))&&_0x3fb483[_0x2195('0x81')]());}const _0x553139=_0x3dda14(),_0x448651=_0x401712['id'],_0x1c11ba=_0x2195('0x10d')+_0x5f1340,_0x321556=this['_setSuggestionData']({'id':_0x553139,'type':_0x1c11ba,'createdAt':new Date(),'authorId':_0x448651,'attributes':_0x5a085e});for(const _0x3d6568 of _0x3d0694)_0x3d6568[_0x2195('0x46')](),_0x3d6568[_0x2195('0x13d')]||_0x2195('0x10a')==_0x3d6568[_0x2195('0x3')][_0x2195('0x65')]||this['_addSuggestionMarker'](_0x1c11ba,_0x553139,_0x448651,_0x3d6568,_0x1ee015[_0x2195('0x8c')]());return _0x321556;}['_setSuggestionRange'](_0x4bcb79,_0x221cec){const _0x55723e=_0x4bcb79['getFirstMarker']();this[_0x2195('0x126')][_0x2195('0xf4')](_0x20897b=>{_0x20897b[_0x2195('0x121')](_0x55723e,{'range':_0x221cec});});}[_0x2195('0x5')](_0x5bc4ae){const _0x245421=_0x5bc4ae['id'],_0x1a4a31=this[_0x2195('0x12a')]['config']['get'](_0x2195('0x9c'));this[_0x2195('0x91')]['hasCommentThread'](_0x245421)||this[_0x2195('0x91')][_0x2195('0x84')]({'channelId':_0x1a4a31,'threadId':_0x245421,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4137de=this[_0x2195('0x91')]['getCommentThread'](_0x245421);_0x4137de['unbind'](_0x2195('0x61')),_0x4137de[_0x2195('0x61')]=!0x1,_0x5bc4ae[_0x2195('0x48')]=_0x4137de;}[_0x2195('0xc8')](_0x5ec976,_0xac5107,_0xac2a54,_0x1049f8){if(_0x5ec976[_0x2195('0x33')]!=_0xac5107||_0x5ec976[_0x2195('0x103')]!=_0xac2a54||_0x5ec976[_0x2195('0xa9')]['id']!=_0x1049f8)throw this['editor'][_0x2195('0xca')](_0x2195('0xa5')),new _0x143303('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2e6687,_0x56442a){const _0x1b0c6d=_0x2e6687[_0x2195('0xc6')]();if(_0x56442a[_0x2195('0x6b')](_0x1b0c6d))_0x2e6687['removeMarkers']();else{if(_0x1b0c6d[_0x2195('0x3a')](_0x56442a)){const _0x5c1ffb=this[_0x2195('0x126')][_0x2195('0xde')](_0x56442a[_0x2195('0x90')][_0x2195('0x1f')],'end');this[_0x2195('0xc7')](_0x2e6687,this['_model']['createRange'](_0x1b0c6d[_0x2195('0x90')],_0x5c1ffb));const _0xe475fa=_0x3dda14(),_0xb44c1b=_0x2e6687[_0x2195('0xa9')]['id'],_0x358ee1=_0x2e6687[_0x2195('0x33')]+':'+_0x2e6687[_0x2195('0x103')];this[_0x2195('0xdf')]({'id':_0xe475fa,'type':_0x358ee1,'createdAt':new Date(),'authorId':_0xb44c1b,'data':_0x2e6687['data'],'attributes':_0x2e6687[_0x2195('0x30')]});const _0x151a16=this[_0x2195('0x126')][_0x2195('0xde')](_0x56442a[_0x2195('0x7')][_0x2195('0xb4')],_0x2195('0x138')),_0x49f2c5=this[_0x2195('0x126')][_0x2195('0x6c')](_0x151a16,_0x1b0c6d[_0x2195('0x7')]);this[_0x2195('0xb1')](_0x358ee1,_0xe475fa,_0xb44c1b,_0x49f2c5);}else{if(_0x1b0c6d['containsPosition'](_0x56442a[_0x2195('0x90')])){const _0x29d14e=this[_0x2195('0x126')][_0x2195('0xde')](_0x56442a[_0x2195('0x90')][_0x2195('0x1f')],_0x2195('0x7'));this[_0x2195('0xc7')](_0x2e6687,this[_0x2195('0x126')][_0x2195('0x6c')](_0x1b0c6d[_0x2195('0x90')],_0x29d14e));}else{const _0x109d6d=this['_model']['createPositionAt'](_0x56442a[_0x2195('0x7')][_0x2195('0xb4')],_0x2195('0x138'));this[_0x2195('0xc7')](_0x2e6687,this['_model']['createRange'](_0x109d6d,_0x1b0c6d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x373a47){for(const {suggestion:_0x18f4c2,meta:_0x1fdc45}of this[_0x2195('0x7c')](_0x373a47,_0x2195('0xe3'))){if(!_0x1fdc45[_0x2195('0x87')])continue;const _0x3262ca=_0x18f4c2['getRanges']();for(const _0x39912b of _0x3262ca)if(!_0x373a47[_0x2195('0x26')](_0x39912b)[_0x2195('0x135')])return!0x0;}return!0x1;}[_0x2195('0xa8')](_0x5f2ad8){const _0xb1be73=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x2'))[_0x2195('0x6a')](_0x5f2ad8);if(!_0xb1be73)throw new _0x143303(_0x2195('0xf1'),this);return _0xb1be73;}[_0x2195('0x44')](_0x167a64){const _0x54cbaa=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x2')),_0x2969cf=_0x506120(_0x2195('0x4c')+_0x167a64),_0x32e982=_0x54cbaa[_0x2195('0x6a')](_0x2969cf);return _0x32e982||_0x54cbaa['addUser']({'id':_0x2969cf,'name':_0x167a64});}[_0x2195('0xd0')](_0x500525,_0x3fe6c7,_0x5b8471,_0x4914b4,_0x31a49e){const _0xbfa156=this[_0x2195('0xa8')](_0x4914b4),_0xc7d461=this[_0x2195('0x6e')]['buildSuggestion'](_0x500525,_0x3fe6c7,_0x5b8471,_0xbfa156,_0x31a49e,_0x4d8349=>this[_0x2195('0x118')](_0x5b8471,{'attributes':_0x4d8349}));return this[_0x2195('0xc4')](_0xc7d461,_0x2195('0x5e'),()=>{this[_0x2195('0x118')](_0x5b8471,{'state':'accepted'});},{'priority':_0x2195('0x94')}),this[_0x2195('0xc4')](_0xc7d461,_0x2195('0x81'),()=>{this[_0x2195('0x118')](_0x5b8471,{'state':_0x2195('0xbb')});},{'priority':_0x2195('0x94')}),this[_0x2195('0x10')]['set'](_0x5b8471,_0xc7d461),this[_0x2195('0x129')]['set'](_0xc7d461,_0x2195('0x2a')),_0xc7d461;}[_0x2195('0xb9')](_0x20868e){const _0x15e14f=_0x20868e[_0x2195('0xe5')](':');return{'group':_0x15e14f[0x0],'type':_0x15e14f[0x1],'subType':_0x15e14f[_0x2195('0x135')]>=0x5?_0x15e14f[0x2]:null,'id':_0x15e14f[_0x2195('0x135')]<0x5?_0x15e14f[0x2]:_0x15e14f[0x3],'authorId':_0x15e14f['length']<0x5?_0x15e14f[0x3]:_0x15e14f[0x4],'markerCount':0x6==_0x15e14f[_0x2195('0x135')]?_0x15e14f[0x5]:null};}[_0x2195('0xe6')](_0x94672,_0x241cdf,_0x1adaa2){const _0x5879b7=_0x94672[_0x2195('0xc6')](),_0x1be9ce=_0x5879b7[_0x2195('0x90')],_0x4a8a22=_0x5879b7[_0x2195('0x7')];this['_setSuggestionRange'](_0x94672,this[_0x2195('0x126')]['createRange'](_0x1be9ce,_0x241cdf));const _0x41f698=_0x3dda14(),_0x47d9cf=_0x94672[_0x2195('0xa9')]['id'],_0x836d26=_0x94672['type']+(_0x94672['subType']?':'+_0x94672[_0x2195('0x103')]:'');this[_0x2195('0xdf')]({'id':_0x41f698,'type':_0x836d26,'createdAt':new Date(),'authorId':_0x47d9cf,'originalSuggestionId':_0x94672['id'],'attributes':_0x94672[_0x2195('0x30')],'data':_0x94672[_0x2195('0xc0')]}),'formatBlock'==_0x94672[_0x2195('0x33')]&&(_0x1adaa2=this[_0x2195('0x126')][_0x2195('0xcb')](_0x1adaa2[_0x2195('0xb4')])),this[_0x2195('0xb1')](_0x836d26,_0x41f698,_0x47d9cf,this['_model'][_0x2195('0x6c')](_0x1adaa2,_0x4a8a22));}['_findSuggestions'](_0x1d0e3e,_0x27fd28=null){const _0x4411c=[],_0xb6e655=this[_0x2195('0x126')][_0x2195('0x37')],_0x2e0ecb=this[_0x2195('0x12a')]['plugins'][_0x2195('0xe8')](_0x2195('0x2'))['me'];for(const _0x2dd578 of this[_0x2195('0x27')]())if(_0x2dd578[_0x2195('0x139')]&&(!_0x27fd28||_0x2dd578[_0x2195('0x33')]==_0x27fd28))for(const _0x36d546 of _0x2dd578['getRanges']()){const _0x212d71=_0x1d0e3e[_0x2195('0x90')][_0x2195('0x6b')](_0x36d546[_0x2195('0x7')])||_0x1d0e3e['end'][_0x2195('0x6b')](_0x36d546['start']);if(_0x212d71||_0x1d0e3e[_0x2195('0x106')](_0x36d546)){const _0x1765db=_0x1d0e3e['containsRange'](_0x36d546)&&Bt(_0xb6e655,_0x36d546[_0x2195('0x90')],_0x1d0e3e),_0x16fad0=_0x36d546['containsRange'](_0x1d0e3e)&&Bt(_0xb6e655,_0x1d0e3e[_0x2195('0x90')],_0x36d546);_0x4411c['push']({'suggestion':_0x2dd578,'meta':{'isOwn':_0x2e0ecb==_0x2dd578[_0x2195('0xef')],'isNextTo':_0x212d71,'isInsideObject':_0x1765db,'containsRangeInObject':_0x16fad0}});break;}}return _0x4411c;}['_addSuggestionMarker'](_0x5d501e,_0x2a03fd,_0x5cf814,_0x3eb090,_0x4cadd3){this[_0x2195('0x126')][_0x2195('0xf4')](_0x319835=>{let _0x3ac2fe=_0x2195('0x29')+_0x5d501e+':'+_0x2a03fd+':'+_0x5cf814;_0x4cadd3&&(_0x3ac2fe=_0x3ac2fe+':'+_0x4cadd3),_0x319835[_0x2195('0xd6')](_0x3ac2fe,{'range':_0x3eb090,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2195('0xb7')](_0x2625a9){const _0x5cb981=_0x2625a9[_0x2195('0x89')],_0x1d3afc=_0x2625a9[_0x2195('0xaa')];_0x2625a9[_0x2195('0x89')]=null,null!=_0x5cb981&&(_0x5cb981[_0x2195('0xaa')]=null),_0x2625a9['next']=null,null!=_0x1d3afc&&(_0x1d3afc[_0x2195('0x89')]=null),_0x2195('0x42')==this[_0x2195('0x129')]['get'](_0x2625a9)&&(this[_0x2195('0x129')][_0x2195('0x8d')](_0x2625a9,_0x2195('0x95')),this[_0x2195('0xf0')](_0x2195('0x6'),_0x2625a9,_0x5cb981,_0x1d3afc));}['_setSuggestionData'](_0x220981){const _0x3dd0ba=_0x220981['id'],_0x46a270=this[_0x2195('0xfc')](_0x220981);if(this[_0x2195('0x92')]&&this[_0x2195('0x92')][_0x2195('0x11a')]){const _0x567d55=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x12e')),_0x123a4d=_0x46a270[_0x2195('0x36')],_0x1ca0cd=_0x46a270[_0x2195('0x103')]?_0x46a270['type']+':'+_0x46a270['subType']:_0x46a270[_0x2195('0x33')],_0x1dee66=this[_0x2195('0x12a')][_0x2195('0x9b')],_0x46d64a=_0x567d55['add'](_0x4d24ca(_0x1dee66,'PENDING_ACTION_SUGGESTION')),_0x5734a8={'id':_0x3dd0ba,'type':_0x1ca0cd,'hasComments':_0x123a4d,'data':_0x220981[_0x2195('0xc0')]||null,'originalSuggestionId':_0x220981[_0x2195('0x53')]||null,'attributes':_0x46a270[_0x2195('0x30')]};this[_0x2195('0x92')][_0x2195('0x11a')](_0x5734a8)['then'](_0x56718a=>{_0x46a270[_0x2195('0x40')]=!0x0,_0x567d55[_0x2195('0xb6')](_0x46d64a),_0x56718a&&_0x56718a[_0x2195('0x12c')]&&(this[_0x2195('0x10')][_0x2195('0xe8')](_0x3dd0ba)['createdAt']=_0x56718a['createdAt']);})[_0x2195('0x45')](_0x42ba7c=>{throw _0x109f16(_0x2195('0xd3')),this['editor']['model'][_0x2195('0x112')]({'isUndoable':!0x1},()=>{_0x46a270[_0x2195('0x81')]();}),_0x46a270[_0x2195('0x14')](),this[_0x2195('0x10')][_0x2195('0x11e')](_0x46a270['id']),this['_suggestionState'][_0x2195('0x11e')](_0x46a270),_0x42ba7c;});}return _0x46a270;}[_0x2195('0x118')](_0x35950b,_0x113fec){const _0x536c20=this[_0x2195('0x12a')]['plugins'][_0x2195('0xe8')](_0x2195('0x12e')),_0x2f316c=this[_0x2195('0xb8')](_0x35950b);if(this['_adapter']&&this['_adapter'][_0x2195('0x39')]){if(_0x2f316c[_0x2195('0x40')]){const _0x267010=_0x536c20['add'](_0x4d24ca(this[_0x2195('0x12a')]['locale'],_0x2195('0xec')));this[_0x2195('0x92')][_0x2195('0x39')](_0x35950b,_0x113fec)[_0x2195('0xbd')](()=>{_0x536c20['remove'](_0x267010);});}else _0x2f316c['on'](_0x2195('0x9e'),()=>{this['_updateSuggestionData'](_0x35950b,_0x113fec);});}}[_0x2195('0x8a')](_0x38c325){if(!this[_0x2195('0x92')]||!this['_adapter'][_0x2195('0xb8')])throw new _0x143303(_0x2195('0x12'),this);return this['_adapter'][_0x2195('0xb8')](_0x38c325);}[_0x2195('0xc9')](_0x2b3aa2){const {id:_0x1c3d33,type:_0x3e4001,subType:_0xce88b4,authorId:_0x5837a7}=this[_0x2195('0xb9')](_0x2b3aa2),_0x5c0485=this[_0x2195('0x10')][_0x2195('0xe8')](_0x1c3d33)||this[_0x2195('0xd0')](_0x3e4001,_0xce88b4,_0x1c3d33,_0x5837a7,{});switch(this[_0x2195('0xc8')](_0x5c0485,_0x3e4001,_0xce88b4,_0x5837a7),this[_0x2195('0x129')][_0x2195('0xe8')](_0x5c0485)){case'notReady':this[_0x2195('0x8a')](_0x1c3d33)['then'](_0x28532e=>{let _0x2476fc=Promise['resolve']();_0x28532e['hasComments']&&(_0x2476fc=this[_0x2195('0x91')][_0x2195('0x58')]({'channelId':this[_0x2195('0x12a')][_0x2195('0x72')][_0x2195('0xe8')](_0x2195('0x9c')),'threadId':_0x1c3d33})),_0x2476fc['then'](()=>{this['addSuggestionData'](_0x28532e)[_0x2195('0x40')]=!0x0;});}),this[_0x2195('0x129')][_0x2195('0x8d')](_0x5c0485,'markerReady');break;case'removed':this[_0x2195('0x118')](_0x1c3d33,{'state':_0x2195('0x9a')});case _0x2195('0x68'):this[_0x2195('0x129')][_0x2195('0x8d')](_0x5c0485,_0x2195('0x42')),this['fire'](_0x2195('0x8'),_0x5c0485);break;case _0x2195('0x42'):this['fire']('suggestionChanged',_0x5c0485);}return _0x5c0485[_0x2195('0x54')](_0x2b3aa2),_0x5c0485;}[_0x2195('0x59')](_0x2bc978){const _0x234b88=Array[_0x2195('0xc')](_0x2bc978)[_0x2195('0xfd')](_0x5b1e47=>!_0x5b1e47[_0x2195('0x3f')]),_0xf9118e=this[_0x2195('0x27')]({'skipNotAttached':!0x0})[_0x2195('0xfd')](_0x5e7d6e=>!_0x5e7d6e[_0x2195('0x3f')]),_0x100013=_0xf9118e[_0x2195('0xfd')](_0x41f9ed=>!_0x2bc978[_0x2195('0x22')](_0x41f9ed)),_0x2c7017=new Map(_0xf9118e['map'](_0x176fec=>[_0x176fec,this[_0x2195('0x6e')][_0x2195('0xf')](_0x176fec['type'],_0x176fec[_0x2195('0x103')],_0x2195('0x5d'))])),_0x38b131=new Map(_0xf9118e['map'](_0x353f5e=>[_0x353f5e,_0x353f5e[_0x2195('0xc6')]()])),_0x53698e=new Set(),_0x5a9022=new Set();for(let _0x1721fe=0x0;_0x1721fe<_0x234b88[_0x2195('0x135')];_0x1721fe++)_0x319fb5(_0x234b88[_0x1721fe],_0x234b88,_0x1721fe+0x1);for(let _0xc83a46=0x0;_0xc83a46<_0x234b88[_0x2195('0x135')];_0xc83a46++)_0x319fb5(_0x234b88[_0xc83a46],_0x100013,0x0);for(let _0x5b9082=0x0;_0x5b9082<_0x234b88[_0x2195('0x135')];_0x5b9082++){const _0x160886=_0x234b88[_0x5b9082];!_0x5a9022[_0x2195('0x22')](_0x160886)&&_0x160886['previous']&&(_0x160886[_0x2195('0x89')][_0x2195('0xaa')]===_0x160886&&(_0x160886[_0x2195('0x89')][_0x2195('0xaa')]=null),_0x160886[_0x2195('0x89')]=null),!_0x53698e['has'](_0x160886)&&_0x160886['next']&&(_0x160886[_0x2195('0xaa')]['previous']===_0x160886&&(_0x160886[_0x2195('0xaa')][_0x2195('0x89')]=null),_0x160886[_0x2195('0xaa')]=null);}function _0x319fb5(_0x45df60,_0x2e913b,_0x4ab94c){for(let _0x31998a=_0x4ab94c;_0x31998a<_0x2e913b['length'];_0x31998a++){const _0x5b68da=_0x34f572(_0x45df60,_0x2e913b[_0x31998a]);_0x5b68da&&(_0x5b68da[0x0][_0x2195('0xaa')]=_0x5b68da[0x1],_0x5b68da[0x1][_0x2195('0x89')]=_0x5b68da[0x0],_0x53698e[_0x2195('0x34')](_0x5b68da[0x0]),_0x5a9022[_0x2195('0x34')](_0x5b68da[0x1]));}}function _0x34f572(_0x32c11c,_0x5b8449){if(_0x32c11c[_0x2195('0xef')]['id']!==_0x5b8449[_0x2195('0xef')]['id'])return null;const _0x19bfc8=_0x2c7017['get'](_0x32c11c)(_0x32c11c,_0x5b8449,_0x38b131[_0x2195('0xe8')](_0x32c11c),_0x38b131[_0x2195('0xe8')](_0x5b8449));if(!_0x19bfc8)return null;return _0x2c7017[_0x2195('0xe8')](_0x5b8449)(_0x32c11c,_0x5b8449,_0x38b131[_0x2195('0xe8')](_0x32c11c),_0x38b131['get'](_0x5b8449))?_0x19bfc8[0x1][_0x2195('0x48')]&&_0x19bfc8[0x1][_0x2195('0x48')][_0x2195('0x135')]?null:_0x19bfc8:null;}}['_joinWithAdjacentSuggestions'](_0x5a3d96){const _0x529df6=Array[_0x2195('0xc')](_0x5a3d96),_0x22608e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4d06a8=_0x22608e[_0x2195('0xfd')](_0x3fe3dc=>!_0x5a3d96[_0x2195('0x22')](_0x3fe3dc)),_0x15be1d=new Map(_0x529df6[_0x2195('0xd5')](_0x26fa44=>[_0x26fa44,this['_suggestionFactory'][_0x2195('0xf')](_0x26fa44[_0x2195('0x33')],_0x26fa44[_0x2195('0x103')],_0x2195('0x3d'))])),_0x2f87ce=new Map(_0x22608e[_0x2195('0xd5')](_0x50b651=>[_0x50b651,_0x50b651['getRanges']()]));for(let _0x1107c3=0x0;_0x1107c3<_0x529df6[_0x2195('0x135')];_0x1107c3++){if(_0x28e002(this,_0x529df6[_0x1107c3],_0x529df6,_0x1107c3+0x1))return!0x0;}for(let _0x53b3ad=0x0;_0x53b3ad<_0x529df6[_0x2195('0x135')];_0x53b3ad++){if(_0x28e002(this,_0x529df6[_0x53b3ad],_0x4d06a8,0x0))return!0x0;}return!0x1;function _0x28e002(_0xe692fc,_0x33e858,_0x558975,_0x57455b){for(let _0x1d5295=_0x57455b;_0x1d5295<_0x558975['length'];_0x1d5295++){const _0x1c735c=_0x558975[_0x1d5295];if(_0x1c735c[_0x2195('0x33')]!==_0x33e858[_0x2195('0x33')]||_0x1c735c[_0x2195('0xef')]['id']!==_0x33e858[_0x2195('0xef')]['id']||_0x1c735c[_0x2195('0x103')]!==_0x33e858['subType'])continue;const _0x148bee=_0x15be1d[_0x2195('0xe8')](_0x33e858),_0x4bfb61=_0x2f87ce['get'](_0x33e858),_0x20cef3=_0x2f87ce[_0x2195('0xe8')](_0x1c735c),_0x2ceb00=_0x33e858[_0x2195('0x48')]&&_0x33e858['commentThread'][_0x2195('0x135')],_0x3da244=_0x1c735c['commentThread']&&_0x1c735c['commentThread'][_0x2195('0x135')];if(!_0x2ceb00&&_0x148bee(_0x20cef3,_0x4bfb61))return _0xe692fc[_0x2195('0x73')](_0x1c735c,_0x33e858),_0x2f87ce[_0x2195('0x11e')](_0x33e858),!0x0;if(!_0x3da244&&_0x148bee(_0x4bfb61,_0x20cef3))return _0xe692fc['_joinSuggestions'](_0x33e858,_0x1c735c),_0x2f87ce[_0x2195('0x11e')](_0x1c735c),!0x0;}return!0x1;}}[_0x2195('0x73')](_0x579939,_0x2f2fc5){if(_0x579939[_0x2195('0x3f')])for(const _0x3c36eb of _0x2f2fc5[_0x2195('0x2f')]())_0x579939[_0x2195('0xeb')](_0x3c36eb);else{const _0x141bd1=_0x2f2fc5[_0x2195('0xc6')]()[_0x2195('0x7')];this[_0x2195('0xc7')](_0x579939,this[_0x2195('0x126')][_0x2195('0x6c')](_0x579939[_0x2195('0xc6')]()[_0x2195('0x90')],_0x141bd1));}_0x2f2fc5['removeMarkers']();}}class Dt{constructor(_0xe4a1db){this[_0x2195('0xe0')]=_0xe4a1db,this[_0x2195('0x126')]=_0xe4a1db[_0x2195('0x4')],this[_0x2195('0xda')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x2195('0x93')]();}['buildSuggestion'](_0x3668ab,_0x5753aa,_0x2adaa7,_0x1756bb,_0x24ae13,_0x3f1a36){return new _0x1ee015(this['_model'],{'type':_0x3668ab,'subType':_0x5753aa,'id':_0x2adaa7,'author':_0x1756bb,'creator':_0x1756bb,'attributes':_0x24ae13,'onAttributesChange':_0x3f1a36,'onAccept':(..._0x4e2830)=>this[_0x2195('0xf')](_0x3668ab,_0x5753aa,_0x2195('0x5e'))(..._0x4e2830),'onDiscard':(..._0x53a1f0)=>this[_0x2195('0xf')](_0x3668ab,_0x5753aa,'discard')(..._0x53a1f0)});}[_0x2195('0xf5')](_0xbdd343,_0x5dd2e5,_0x41db22,_0x5a37cf){const _0xab4573=_0xbdd343+':'+_0x5dd2e5+':'+_0x41db22;this[_0x2195('0xda')][_0x2195('0x8d')](_0xab4573,_0x5a37cf);}[_0x2195('0xf')](_0x46f31c,_0x470de9,_0x2a2559){const _0x4cfa71=_0x46f31c+':'+_0x470de9+':'+_0x2a2559;return this[_0x2195('0xda')][_0x2195('0xe8')](_0x4cfa71)||this[_0x2195('0x32')][_0x2195('0xe8')](_0x46f31c+':'+_0x2a2559);}['_registerDefaultCallbacks'](){const _0x22c9d5=()=>{},_0x488804=_0x445e92=>{_0x445e92[_0x2195('0x5c')]((_0x244633,_0x13ee7a)=>_0x244633[_0x2195('0x90')]['isBefore'](_0x13ee7a[_0x2195('0x90')])?0x1:-0x1),this['_model'][_0x2195('0xf4')](_0x33ed0a=>{for(const _0x24e693 of _0x445e92){let _0x584517;_0x584517=_0x24e693[_0x2195('0x7')][_0x2195('0xed')]&&_0x24e693[_0x2195('0x7')][_0x2195('0xb4')]==_0x24e693[_0x2195('0x90')][_0x2195('0xb3')]?_0x33ed0a[_0x2195('0x109')](_0x24e693['start'][_0x2195('0xb3')],'on'):_0x33ed0a['createSelection'](_0x24e693),this[_0x2195('0x126')][_0x2195('0xcf')](_0x584517,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xe9a8d9=(_0x329619,_0x2d372f)=>{this[_0x2195('0x126')][_0x2195('0xf4')](_0x565f89=>{const {commandName:_0x4feae1,commandParams:_0x4ba3f4=[]}=_0x2d372f,_0x20398a=_0x329619[_0x2195('0xd5')](_0x10d21f=>(_t(_0x10d21f)&&(_0x10d21f=this[_0x2195('0x126')][_0x2195('0x6c')](_0x10d21f[_0x2195('0x7')])),_0x10d21f))[_0x2195('0xfd')](_0x126fbe=>'$graveyard'!==_0x126fbe['root']['rootName']);if(_0x20398a[_0x2195('0x135')]<0x1)return;const _0x3e9cfa=Array[_0x2195('0xc')](this[_0x2195('0x126')][_0x2195('0x123')]['selection'][_0x2195('0x2f')]())[_0x2195('0xd5')](_0x23366c=>_0x30ce05['fromRange'](_0x23366c));_0x565f89[_0x2195('0xb0')](_0x20398a);for(const _0x3edafc of this[_0x2195('0xe0')]['commands'][_0x2195('0x75')]())_0x3edafc[_0x2195('0xe9')]();_0x4ba3f4[_0x2195('0x10f')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x2195('0xac')](_0x4feae1,..._0x4ba3f4);const _0x52d1a3=_0x3e9cfa[_0x2195('0xfd')](_0x4887af=>_0x2195('0x10a')!=_0x4887af['root'][_0x2195('0x65')]);_0x52d1a3[_0x2195('0x135')]>0x0&&_0x565f89['setSelection'](_0x52d1a3);for(const _0x2e8231 of _0x3e9cfa)_0x2e8231[_0x2195('0x46')]();});},_0x2a81f6=(_0xcfa36,_0x5ebb83)=>0x1==_0xcfa36[_0x2195('0x135')]&&0x1==_0x5ebb83[_0x2195('0x135')]&&_0xcfa36[0x0][_0x2195('0x7')][_0x2195('0x6b')](_0x5ebb83[0x0]['start']),_0x10327e=(_0x44103e,_0x15cd65,_0xb53e3,_0x525d52)=>xt(_0x44103e,_0x15cd65,_0xb53e3,_0x525d52,this['_model'])?[_0x44103e,_0x15cd65]:xt(_0x15cd65,_0x44103e,_0x525d52,_0xb53e3,this[_0x2195('0x126')])?[_0x15cd65,_0x44103e]:null;this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x134'),_0x22c9d5),this[_0x2195('0x32')]['set'](_0x2195('0xb5'),_0x488804),this[_0x2195('0x32')][_0x2195('0x8d')]('insertion:join',_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x132'),_0x10327e),this[_0x2195('0x32')]['set']('deletion:accept',_0x488804),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x7f'),_0x22c9d5),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x7d'),_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')]('deletion:chain',_0x10327e),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x8b'),_0xe9a8d9),this[_0x2195('0x32')]['set'](_0x2195('0x10c'),_0x22c9d5),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0xbc'),_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x8e'),_0x22c9d5),this['_defaultCallbacks'][_0x2195('0x8d')]('formatBlock:accept',_0xe9a8d9),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x3b'),_0x22c9d5),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x127'),_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x13c'),_0x22c9d5);}}function Bt(_0x4d5ccb,_0x265f74,_0x564610){for(const _0x523d1d of _0x265f74[_0x2195('0xb4')][_0x2195('0x96')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x523d1d[_0x2195('0x3')]==_0x523d1d)return!0x1;if(!_0x564610[_0x2195('0xbf')](_0x523d1d))return!0x1;if(_0x4d5ccb[_0x2195('0x105')](_0x523d1d)||_0x4d5ccb[_0x2195('0xd4')](_0x523d1d))return!0x0;}return!0x1;}function _t(_0x12b454){return _0x12b454[_0x2195('0x7')][_0x2195('0xb4')]==_0x12b454[_0x2195('0x90')][_0x2195('0xb3')]&&_0x12b454['end'][_0x2195('0x62')];}function Mt(_0x1799f5,_0x45a450,_0x158b0d,_0x164359){const _0x3e1947=_0x6abe34=>!_0x6abe34[_0x2195('0x1b')]['is'](_0x2195('0x2e'))&&!_0x164359['isObject'](_0x6abe34[_0x2195('0x1b')]),_0x4a2ab5=_0x1799f5['start'][_0x2195('0x79')](_0x3e1947),_0x3eb48a=_0x1799f5[_0x2195('0x7')]['getLastMatchingPosition'](_0x3e1947,{'direction':_0x2195('0xfb')});return(!_0x1799f5[_0x2195('0x90')][_0x2195('0x6b')](_0x4a2ab5)||!_0x1799f5[_0x2195('0x7')][_0x2195('0x6b')](_0x3eb48a))&&(_0x4a2ab5[_0x2195('0xd')](_0x3eb48a)?_0x158b0d[_0x2195('0x121')](_0x45a450,{'range':_0x158b0d[_0x2195('0x6c')](_0x4a2ab5,_0x3eb48a)}):_0x158b0d[_0x2195('0x69')](_0x45a450),!0x0);}function $t(_0x347ba6){return _0x506120(_0x347ba6);}function Nt(_0x4bed45){const _0x1c53cc=_0x4bed45[_0x2195('0x90')][_0x2195('0xb3')];return _0x1c53cc&&_0x1c53cc['is'](_0x2195('0xfa'));}function Rt(_0x3eb240,_0x336223){const _0x1c4776=_0x336223[_0x2195('0x37')][_0x2195('0x105')](_0x3eb240)||_0x336223[_0x2195('0x37')][_0x2195('0x5a')](_0x3eb240);return _0x336223['createRange'](_0x336223[_0x2195('0xde')](_0x3eb240,_0x2195('0x4f')),_0x1c4776?_0x336223[_0x2195('0x71')](_0x3eb240):_0x336223['createPositionAt'](_0x3eb240,_0x2195('0x7')));}function xt(_0x3d0fa4,_0x3739d0,_0xe1ab4,_0x34cee8,_0x479e22){if(_0xe1ab4['end'][_0x2195('0x6b')](_0x34cee8[_0x2195('0x90')]))return!0x0;if(_0x3d0fa4[_0x2195('0x33')]!=_0x3739d0['type'])return!0x1;if(!_0xe1ab4[_0x2195('0x7')][_0x2195('0x8f')](_0x34cee8[_0x2195('0x90')]))return!0x1;const _0x12e6b7=_0x479e22[_0x2195('0x6c')](_0xe1ab4[_0x2195('0x7')],_0x34cee8['start'])[_0x2195('0xad')]();for(const _0x42730a of _0x12e6b7)if(['elementStart','elementEnd'][_0x2195('0xa3')](_0x42730a[_0x2195('0x33')])&&_0x479e22[_0x2195('0x37')][_0x2195('0xd4')](_0x42730a[_0x2195('0x1b')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2c5c=['stopListening','size','_initializeController','set','_annotationViews','componentFactory','locale','getRanges','TrackChangesUI','createAnnotation','filter','trackChanges.SuggestionThreadView','editor','Accept\x20all\x20suggestions','type','hasSuggestion','source','createAnnotationView','acceptAllSuggestions','_destroyController','Discard\x20all\x20suggestions','get','value','editing','config','from','commands','activeMarkers','getByInnerView','getAllAdjacentSuggestions','clear','plugins','CommentsRepository','registerAnnotation','change:previous','view','trackChanges','getMarkerNames','pluginName','bind','innerView','descriptionParts','toMany','Annotations','lowest','delete','has','requires','getJoined','commandName','comments','listenTo','_handleSuggestionControllerDelayed','comments.maxCommentCharsWhenCollapsed','_disableComments','mainView','createCommentThreadController','destroy','remove','isInContent','acceptSelectedSuggestions','length','reduce','discardAllSuggestions','discardButton','values','CommentsUI','SuggestionThreadView','_viewToController','_createUIButton','push','_handleControllerBuffer','getDescriptions','separator','suggestionLoaded','comments.maxThreadTotalWeight','suggestionUnloaded','init','getMarkers','CommentView','arrowView','comments.editorConfig','Track\x20changes','addSourceCollector','addComment','some','activeAnnotations','_updateController','head','EditorAnnotations','_suggestionToController','isEnabled','execute','model','add','acceptButton','suggestion-','TrackChangesEditing','isDirty','buttonView','map','refreshSelectedViews','_refreshActiveMarkers','button','keys','switchbutton','actionView','suggestionChanged','focus','define'];(function(_0x31517a,_0x2c5c82){const _0xf003ae=function(_0x431e3c){while(--_0x431e3c){_0x31517a['push'](_0x31517a['shift']());}};_0xf003ae(++_0x2c5c82);}(_0x2c5c,0x70));const _0xf003=function(_0x31517a,_0x2c5c82){_0x31517a=_0x31517a-0x0;let _0xf003ae=_0x2c5c[_0x31517a];return _0xf003ae;};import{Plugin as _0x37e9e0}from'ckeditor5/src/core';import{Collection as _0x3fd7a1}from'ckeditor5/src/utils';import{Model as _0x5154f6,SplitButtonView as _0x2203b3,createDropdown as _0x4f87ff,addListToDropdown as _0xc858a0}from'ckeditor5/src/ui';import{Users as _0x5340d9,getDateTimeFormatter as _0x3e3e63,getAllMarkersDomElementsSorted as _0x8ab08f}from'ckeditor5-collaboration/src/collaboration-core';import _0x25611d from'./trackchangesediting';import _0x308075 from'./ui/suggestioncontroller';import _0xfb07b3 from'./ui/view/suggestionthreadview';import{getTranslation as _0x217ef8}from'./utils/common-translations';import _0x2aa273 from'../theme/icons/track-changes.svg';export default class d extends _0x37e9e0{static get[_0xf003('0x2d')](){return[_0x25611d,_0x5340d9,'CommentsRepository','Annotations',_0xf003('0x57')];}static get[_0xf003('0x24')](){return _0xf003('0x6');}constructor(_0x597ea9){super(_0x597ea9),this[_0xf003('0x58')]=new Map(),this[_0xf003('0x42')]=new Map(),this[_0xf003('0x2')]=new Map(),this[_0xf003('0x45')]=new Map();const _0x41be3b=this['editor'][_0xf003('0x16')];_0x41be3b[_0xf003('0x6b')](_0xf003('0x9'),_0xfb07b3),_0x41be3b[_0xf003('0x6b')]('trackChanges.disableComments',!0x1),this[_0xf003('0x34')]=_0x41be3b[_0xf003('0x13')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5647b0,_0x304b25){0x0===this['_handleControllerBuffer'][_0xf003('0x6d')]&&setTimeout(()=>{for(const [_0x42c1cf,_0x501e76]of this['_handleControllerBuffer']){const _0x2341ee=this[_0xf003('0x58')][_0xf003('0x2c')](_0x42c1cf);_0x2341ee||_0x501e76?_0x2341ee&&_0x501e76&&this['_destroyController'](_0x42c1cf):this[_0xf003('0x0')](_0x42c1cf);}this[_0xf003('0xa')][_0xf003('0x1d')]['get'](_0xf003('0x57'))[_0xf003('0x63')](),this[_0xf003('0x64')](),this[_0xf003('0x45')][_0xf003('0x1c')]();},0xa),this[_0xf003('0x45')]['set'](_0x5647b0,_0x304b25);}[_0xf003('0x4b')](){const _0x1249be=this['editor'],_0x4a770f=_0x1249be['plugins']['get'](_0xf003('0x5f')),_0x98501f=_0x1249be[_0xf003('0x1d')][_0xf003('0x13')](_0xf003('0x29')),_0x240651=_0x1249be[_0xf003('0x1d')]['get'](_0xf003('0x57')),_0x3b5f6d=_0x1249be[_0xf003('0x1d')][_0xf003('0x13')](_0xf003('0x1e'));_0x1249be['ui'][_0xf003('0x3')][_0xf003('0x5c')](_0xf003('0x22'),_0xb67688=>this['_createUIButton'](_0xb67688)),_0x240651[_0xf003('0x51')](()=>{const _0x52e077=[];for(const [_0x2e9f7c,_0x1886f1]of Array['from'](this['_suggestionToController'])){const _0x47fcfb=_0x2e9f7c[_0xf003('0x1b')](),_0x5de30a=[];for(const _0x3435ed of _0x47fcfb){if(!_0x3435ed['isInContent'])continue;if(_0x3435ed['isMultiRange']){_0x5de30a['push'](..._0x3435ed[_0xf003('0x5')]());continue;}const _0xc8912a=_0x3435ed['getFirstRange']();if(_0x5de30a[_0xf003('0x3b')]>0x0){const _0x51f5f7=_0x5de30a[0x0][_0xf003('0x2e')](_0xc8912a);if(_0x51f5f7){_0x5de30a[0x0]=_0x51f5f7;continue;}}_0x5de30a['push'](_0xc8912a);}_0x52e077[_0xf003('0x44')]([_0x1886f1[_0xf003('0x21')],_0x5de30a]);}return _0x52e077;}),this[_0xf003('0x31')](_0x4a770f,_0xf003('0x48'),(_0x3fbcd9,_0x4b723a)=>{this['listenTo'](_0x4b723a,'change:previous',(_0x294e2c,_0x5ebb0b,_0x3ab958,_0x444fe3)=>{_0x4b723a[_0xf003('0x39')]&&(null==_0x3ab958?(this[_0xf003('0x55')](_0x444fe3[_0xf003('0x56')]),this[_0xf003('0x32')](_0x4b723a,!0x1)):(this[_0xf003('0x55')](_0x3ab958[_0xf003('0x56')]),this['_handleSuggestionControllerDelayed'](_0x4b723a,!0x0)));}),null===_0x4b723a['previous']?this[_0xf003('0x32')](_0x4b723a,!0x1):this[_0xf003('0x55')](_0x4b723a['head']);}),this[_0xf003('0x31')](_0x4a770f,_0xf003('0x4a'),(_0x5130d4,_0x3d892f,_0x13ae18)=>{this[_0xf003('0x6c')](_0x3d892f,_0xf003('0x20')),this[_0xf003('0x45')][_0xf003('0x2b')](_0x3d892f);const _0x3e95b9=_0x13ae18?_0x13ae18[_0xf003('0x56')]:_0x3d892f,_0x44aa57=this['_suggestionToController'][_0xf003('0x13')](_0x3e95b9);null!==_0x13ae18&&this[_0xf003('0x55')](_0x3e95b9),null===_0x13ae18&&_0x44aa57&&this[_0xf003('0x11')](_0x3d892f);}),this[_0xf003('0x31')](_0x4a770f,_0xf003('0x69'),(_0x166672,_0xb11f15)=>{this[_0xf003('0x55')](_0xb11f15);}),this[_0xf003('0x31')](_0x98501f,'change:activeAnnotations',()=>{this[_0xf003('0x64')]();}),this[_0xf003('0x31')](_0x3b5f6d,_0xf003('0x52'),(_0x24c69e,{threadId:_0x26e7b2,isFromAdapter:_0x2186b6})=>{if(_0x2186b6||!_0x4a770f[_0xf003('0xd')](_0x26e7b2))return;const _0x1f2aae=_0x4a770f['getSuggestion'](_0x26e7b2);this[_0xf003('0x58')][_0xf003('0x13')](_0x1f2aae)[_0xf003('0x21')][_0xf003('0x6a')]();},{'priority':_0xf003('0x2a')});}[_0xf003('0x64')](){const _0x106fc5=this[_0xf003('0xa')][_0xf003('0x1d')]['get'](_0xf003('0x29')),_0x438c0f=this[_0xf003('0xa')][_0xf003('0x1d')][_0xf003('0x13')](_0xf003('0x5f')),_0x4f919c=Array[_0xf003('0x17')](_0x106fc5[_0xf003('0x54')],_0x1f6170=>_0x1f6170[_0xf003('0x26')])[_0xf003('0x8')](_0x3b2290=>this[_0xf003('0x42')]['has'](_0x3b2290)),_0x2cd146=[];for(const _0x382fd4 of _0x4f919c){const _0x42b041=this['_viewToController'][_0xf003('0x13')](_0x382fd4)[_0xf003('0x5b')][_0xf003('0x1b')]();_0x2cd146['push'](..._0x42b041[_0xf003('0x3c')]((_0x2d4d0d,_0x34d471)=>[..._0x2d4d0d,..._0x34d471[_0xf003('0x23')]()],[]));}_0x438c0f[_0xf003('0x19')]=_0x2cd146;}[_0xf003('0x43')](_0x365023){const _0x2b21ef=_0x4f87ff(_0x365023,_0x2203b3),_0x30bd67=this['editor']['commands']['get'](_0xf003('0x22')),_0x409a97=_0x217ef8(_0x365023,_0xf003('0x50'));_0x2b21ef[_0xf003('0x61')]['set']({'tooltip':_0x409a97,'label':_0x409a97,'icon':_0x2aa273}),_0x2b21ef[_0xf003('0x61')]['bind']('isOn')['to'](_0x30bd67,_0xf003('0x14')),_0x2b21ef[_0xf003('0x61')]['on'](_0xf003('0x5a'),()=>{_0x30bd67[_0xf003('0x5a')](),this[_0xf003('0xa')][_0xf003('0x15')][_0xf003('0x21')][_0xf003('0x6a')]();});const _0x3ad27f=new _0x3fd7a1(),_0x58f334=[{'type':_0xf003('0x67'),'model':{'withText':!0x0,'label':_0x409a97,'commandName':_0xf003('0x22')}},{'type':_0xf003('0x47')},{'type':'button','model':{'withText':!0x0,'label':_0x217ef8(_0x365023,_0xf003('0xb')),'commandName':_0xf003('0x10')}},{'type':'button','model':{'withText':!0x0,'label':_0x217ef8(_0x365023,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0xf003('0x3a')}},{'type':_0xf003('0x65'),'model':{'withText':!0x0,'label':_0x217ef8(_0x365023,_0xf003('0x12')),'commandName':_0xf003('0x3d')}},{'type':_0xf003('0x65'),'model':{'withText':!0x0,'label':_0x217ef8(_0x365023,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x2ca03e of _0x58f334){let _0x1855f1={'type':'separator'};if(_0x2ca03e[_0xf003('0x5b')]){const _0x2dea09=new _0x5154f6(_0x2ca03e[_0xf003('0x5b')]),_0x2a321b=this[_0xf003('0xa')][_0xf003('0x18')][_0xf003('0x13')](_0x2dea09['commandName']);_0x2dea09[_0xf003('0x25')]('isOn',_0xf003('0x59'))['to'](_0x2a321b,_0xf003('0x14'),_0xf003('0x59')),_0x1855f1={'type':_0x2ca03e[_0xf003('0xc')],'model':_0x2dea09};}_0x3ad27f[_0xf003('0x5c')](_0x1855f1);}_0xc858a0(_0x2b21ef,_0x3ad27f);const _0x186e06=_0x58f334[_0xf003('0x8')](_0x1082fe=>null!=_0x1082fe[_0xf003('0x5b')])[_0xf003('0x62')](_0x4f3caa=>this[_0xf003('0xa')][_0xf003('0x18')]['get'](_0x4f3caa[_0xf003('0x5b')][_0xf003('0x2f')])),_0x5537d0=_0x2b21ef[_0xf003('0x61')];return _0x5537d0[_0xf003('0x68')]['unbind'](_0xf003('0x59')),_0x5537d0[_0xf003('0x4e')]['unbind'](_0xf003('0x59')),_0x5537d0[_0xf003('0x68')]['bind']('isEnabled')['to'](_0x30bd67,_0xf003('0x59')),_0x5537d0[_0xf003('0x4e')][_0xf003('0x25')](_0xf003('0x59'))[_0xf003('0x28')](_0x186e06,'isEnabled',(..._0x4fe616)=>_0x4fe616[_0xf003('0x53')](_0x47f296=>_0x47f296)),_0x2b21ef['on'](_0xf003('0x5a'),_0x18cc32=>{this[_0xf003('0xa')][_0xf003('0x5a')](_0x18cc32[_0xf003('0xe')][_0xf003('0x2f')]),this[_0xf003('0xa')]['editing'][_0xf003('0x21')]['focus']();}),_0x2b21ef;}[_0xf003('0x0')](_0x267a45){const _0x37c81d=this[_0xf003('0xa')],_0x4a574c=_0x37c81d[_0xf003('0x16')],_0x4b51a5=_0x37c81d['plugins']['get']('Annotations'),_0x12a437=_0x37c81d['plugins'][_0xf003('0x13')](_0xf003('0x1e')),_0x31792a=_0x37c81d[_0xf003('0x1d')]['get'](_0xf003('0x57')),_0x34a68a=_0x37c81d[_0xf003('0x1d')][_0xf003('0x13')](_0x5340d9)['me'],_0x1b86f9=_0x4a574c[_0xf003('0x13')](_0xf003('0x22'))[_0xf003('0x41')],{CommentsListView:_0x447433,CommentThreadInputView:_0x3cdbc2}=_0x37c81d['plugins'][_0xf003('0x13')](_0xf003('0x40'));let _0x2c79ac,_0x2a9029;this[_0xf003('0x2')]['has'](_0x267a45['id'])?(_0x2a9029=this[_0xf003('0x2')][_0xf003('0x13')](_0x267a45['id']),_0x2c79ac=_0x2a9029[_0xf003('0x35')]):(_0x2c79ac=new _0x1b86f9(_0x37c81d[_0xf003('0x4')],_0x267a45,_0x34a68a,{'disableComments':this['_disableComments'],'editorConfig':_0x4a574c[_0xf003('0x13')](_0xf003('0x4f')),'maxCommentsWhenCollapsed':_0x4a574c[_0xf003('0x13')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a574c['get'](_0xf003('0x49')),'maxCommentCharsWhenCollapsed':_0x4a574c[_0xf003('0x13')](_0xf003('0x33')),'formatDateTime':_0x3e3e63(_0x4a574c[_0xf003('0x13')](_0xf003('0x4'))),'CommentView':_0x4a574c['get'](_0xf003('0x30'))[_0xf003('0x4d')],'CommentsListView':_0x447433,'CommentThreadInputView':_0x3cdbc2}),_0x2c79ac[_0xf003('0x5d')]['on']('execute',()=>{_0x37c81d['editing']['view']['focus']();}),_0x2c79ac[_0xf003('0x3e')]['on'](_0xf003('0x5a'),()=>{_0x37c81d[_0xf003('0x15')][_0xf003('0x21')][_0xf003('0x6a')]();}),_0x2a9029=_0x4b51a5[_0xf003('0xf')](this[_0xf003('0xa')][_0xf003('0x4')],_0x2c79ac),_0x2a9029[_0xf003('0x25')](_0xf003('0x60'))['to'](_0x2c79ac,_0xf003('0x60')),_0x2a9029[_0xf003('0x25')]('length')['to'](_0x2c79ac),_0x2a9029[_0xf003('0x25')](_0xf003('0xc'))['to'](_0x2c79ac,_0xf003('0xc'),_0xf73d0d=>'suggestion-'+_0xf73d0d),this['_annotationViews'][_0xf003('0x1')](_0x267a45['id'],_0x2a9029));const _0x4b200c=_0x12a437[_0xf003('0x36')](_0x267a45['commentThread'],_0x2c79ac),_0x4e93bb=new _0x308075(_0x37c81d,_0x267a45,_0x2c79ac,_0x4b200c),_0x38b081=_0x267a45['getAllAdjacentSuggestions']()[_0xf003('0x8')](_0x346d30=>_0x346d30['isInContent']);_0x2c79ac[_0xf003('0x27')]=_0x37c81d[_0xf003('0x1d')]['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x38b081),this[_0xf003('0x58')][_0xf003('0x1')](_0x267a45,_0x4e93bb),this[_0xf003('0x42')][_0xf003('0x1')](_0x2c79ac,_0x4e93bb);const _0x491b61=_0x4b51a5[_0xf003('0x7')]({'view':_0x2a9029,'target':()=>{const _0x49f3cb=[],_0x44df93=_0x267a45['getAllAdjacentSuggestions']()[_0xf003('0x8')](_0x6a5da5=>_0x6a5da5[_0xf003('0x39')]);for(const _0x468166 of _0x44df93)_0x49f3cb[_0xf003('0x44')](..._0x468166[_0xf003('0x4c')]());return _0x8ab08f(_0x37c81d[_0xf003('0x15')],_0x49f3cb);},'type':()=>_0xf003('0x5e')+_0x4e93bb[_0xf003('0x21')]['type']});_0x4b51a5['add'](_0x491b61),_0x31792a[_0xf003('0x1f')](_0x491b61);}[_0xf003('0x11')](_0x57f73b){const _0x2aaac3=this[_0xf003('0xa')]['plugins'][_0xf003('0x13')](_0xf003('0x29')),_0x157791=this[_0xf003('0x58')]['get'](_0x57f73b),_0x22d919=_0x157791[_0xf003('0x21')],_0x5b6d40=_0x2aaac3[_0xf003('0x1a')](_0x22d919);_0x5b6d40&&_0x2aaac3[_0xf003('0x38')](_0x5b6d40),this[_0xf003('0x58')][_0xf003('0x2b')](_0x57f73b),this[_0xf003('0x42')]['delete'](_0x22d919),_0x157791[_0xf003('0x37')]();}[_0xf003('0x55')](_0x404f32){if(!_0x404f32['isInContent']||!this[_0xf003('0x58')]['has'](_0x404f32))return;const _0xa0c1a=this['editor']['plugins']['get'](_0xf003('0x5f')),_0x10a01=this['_suggestionToController']['get'](_0x404f32),_0x41609a=_0x404f32[_0xf003('0x1b')]();_0x10a01[_0xf003('0x21')][_0xf003('0x27')]=_0xa0c1a['_descriptionFactory'][_0xf003('0x46')](_0x41609a);}['destroy'](){for(const _0x1ae039 of this[_0xf003('0x58')][_0xf003('0x66')]())this[_0xf003('0x11')](_0x1ae039);for(const _0x21f0e0 of this[_0xf003('0x2')][_0xf003('0x3f')]())_0x21f0e0[_0xf003('0x35')][_0xf003('0x37')]();super[_0xf003('0x37')]();}}
|
|
23
|
+
const _0x5493=['_updateController','addComment','plugins','head','get','getSuggestion','suggestionLoaded','_destroyController','has','keys','isMultiRange','Accept\x20all\x20suggestions','hasSuggestion','buttonView','config','remove','commands','getJoined','comments.editorConfig','switchbutton','editor','TrackChangesEditing','_refreshActiveMarkers','_disableComments','registerAnnotation','Discard\x20all\x20selected\x20suggestions','map','commandName','Annotations','delete','change:activeAnnotations','Accept\x20all\x20selected\x20suggestions','comments.maxCommentsWhenCollapsed','requires','getMarkerNames','_handleControllerBuffer','comments.maxThreadTotalWeight','length','createAnnotationView','locale','mainView','bind','editing','filter','add','getFirstRange','type','listenTo','CommentsUI','activeAnnotations','refreshSelectedViews','size','focus','value','Discard\x20all\x20suggestions','init','some','lowest','CommentsRepository','comments','model','set','destroy','suggestion-','addSourceCollector','isOn','_annotationViews','EditorAnnotations','innerView','trackChanges.SuggestionThreadView','source','actionView','Track\x20changes','pluginName','CommentView','suggestionChanged','previous','_handleSuggestionControllerDelayed','discardAllSuggestions','unbind','trackChanges.disableComments','arrowView','getRanges','SuggestionThreadView','_initializeController','push','TrackChangesUI','componentFactory','acceptSelectedSuggestions','getMarkers','suggestionUnloaded','acceptAllSuggestions','execute','getDescriptions','descriptionParts','reduce','isEnabled','activeMarkers','_viewToController','stopListening','acceptButton','define','button','separator','isInContent','comments.maxCommentCharsWhenCollapsed','_descriptionFactory','_suggestionToController','getAllAdjacentSuggestions','clear','trackChanges','_createUIButton','from','change:previous','isDirty','view','discardSelectedSuggestions','toMany'];(function(_0x3d27e6,_0x5493a0){const _0x99521b=function(_0x3bc1f5){while(--_0x3bc1f5){_0x3d27e6['push'](_0x3d27e6['shift']());}};_0x99521b(++_0x5493a0);}(_0x5493,0x165));const _0x9952=function(_0x3d27e6,_0x5493a0){_0x3d27e6=_0x3d27e6-0x0;let _0x99521b=_0x5493[_0x3d27e6];return _0x99521b;};import{Plugin as _0x62471d}from'ckeditor5/src/core';import{Collection as _0x223b16}from'ckeditor5/src/utils';import{Model as _0x5ae391,SplitButtonView as _0x5bb54a,createDropdown as _0x252fc6,addListToDropdown as _0x4cc014}from'ckeditor5/src/ui';import{Users as _0x5012ac,getDateTimeFormatter as _0x2a0970,getAllMarkersDomElementsSorted as _0x7f301}from'ckeditor5-collaboration/src/collaboration-core';import _0x59d46a from'./trackchangesediting';import _0xcef13b from'./ui/suggestioncontroller';import _0x605b50 from'./ui/view/suggestionthreadview';import{getTranslation as _0x49db51}from'./utils/common-translations';import _0x4778fb from'../theme/icons/track-changes.svg';export default class d extends _0x62471d{static get[_0x9952('0x1e')](){return[_0x59d46a,_0x5012ac,_0x9952('0x37'),_0x9952('0x19'),_0x9952('0x40')];}static get[_0x9952('0x46')](){return _0x9952('0x53');}constructor(_0x58aa95){super(_0x58aa95),this[_0x9952('0x68')]=new Map(),this['_viewToController']=new Map(),this[_0x9952('0x3f')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x220974=this[_0x9952('0x11')][_0x9952('0xb')];_0x220974[_0x9952('0x62')](_0x9952('0x42'),_0x605b50),_0x220974[_0x9952('0x62')]('trackChanges.disableComments',!0x1),this[_0x9952('0x14')]=_0x220974[_0x9952('0x1')](_0x9952('0x4d'));}['_handleSuggestionControllerDelayed'](_0x314f3e,_0x50aa33){0x0===this[_0x9952('0x20')][_0x9952('0x30')]&&setTimeout(()=>{for(const [_0x5b56cd,_0x34d3aa]of this[_0x9952('0x20')]){const _0x188775=this[_0x9952('0x68')][_0x9952('0x5')](_0x5b56cd);_0x188775||_0x34d3aa?_0x188775&&_0x34d3aa&&this['_destroyController'](_0x5b56cd):this[_0x9952('0x51')](_0x5b56cd);}this[_0x9952('0x11')][_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x40'))[_0x9952('0x2f')](),this[_0x9952('0x13')](),this[_0x9952('0x20')][_0x9952('0x6a')]();},0xa),this[_0x9952('0x20')][_0x9952('0x3a')](_0x314f3e,_0x50aa33);}[_0x9952('0x34')](){const _0xfb200e=this[_0x9952('0x11')],_0x4f7cc6=_0xfb200e[_0x9952('0x75')]['get'](_0x9952('0x12')),_0xd88bc6=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x19')),_0x36b6bc=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')]('EditorAnnotations'),_0x1237e1=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x37'));_0xfb200e['ui'][_0x9952('0x54')][_0x9952('0x29')](_0x9952('0x6b'),_0x179afc=>this[_0x9952('0x6c')](_0x179afc)),_0x36b6bc[_0x9952('0x3d')](()=>{const _0x363db6=[];for(const [_0x1f5b86,_0x51d394]of Array[_0x9952('0x6d')](this['_suggestionToController'])){const _0x585e60=_0x1f5b86[_0x9952('0x69')](),_0x12f916=[];for(const _0x2c3fc6 of _0x585e60){if(!_0x2c3fc6[_0x9952('0x65')])continue;if(_0x2c3fc6[_0x9952('0x7')]){_0x12f916[_0x9952('0x52')](..._0x2c3fc6[_0x9952('0x4f')]());continue;}const _0x553e6a=_0x2c3fc6[_0x9952('0x2a')]();if(_0x12f916[_0x9952('0x22')]>0x0){const _0x3bf9f4=_0x12f916[0x0][_0x9952('0xe')](_0x553e6a);if(_0x3bf9f4){_0x12f916[0x0]=_0x3bf9f4;continue;}}_0x12f916[_0x9952('0x52')](_0x553e6a);}_0x363db6[_0x9952('0x52')]([_0x51d394[_0x9952('0x70')],_0x12f916]);}return _0x363db6;}),this['listenTo'](_0x4f7cc6,_0x9952('0x3'),(_0x4e7451,_0x13889e)=>{this[_0x9952('0x2c')](_0x13889e,_0x9952('0x6e'),(_0x2903b1,_0x90cda2,_0x257f8a,_0x226be2)=>{_0x13889e[_0x9952('0x65')]&&(null==_0x257f8a?(this[_0x9952('0x73')](_0x226be2[_0x9952('0x0')]),this[_0x9952('0x4a')](_0x13889e,!0x1)):(this[_0x9952('0x73')](_0x257f8a[_0x9952('0x0')]),this['_handleSuggestionControllerDelayed'](_0x13889e,!0x0)));}),null===_0x13889e[_0x9952('0x49')]?this['_handleSuggestionControllerDelayed'](_0x13889e,!0x1):this[_0x9952('0x73')](_0x13889e[_0x9952('0x0')]);}),this[_0x9952('0x2c')](_0x4f7cc6,_0x9952('0x57'),(_0x57521d,_0x4808b7,_0x226c4f)=>{this[_0x9952('0x60')](_0x4808b7,_0x9952('0x6e')),this[_0x9952('0x20')][_0x9952('0x1a')](_0x4808b7);const _0x18253c=_0x226c4f?_0x226c4f[_0x9952('0x0')]:_0x4808b7,_0x11d894=this[_0x9952('0x68')][_0x9952('0x1')](_0x18253c);null!==_0x226c4f&&this[_0x9952('0x73')](_0x18253c),null===_0x226c4f&&_0x11d894&&this[_0x9952('0x4')](_0x4808b7);}),this[_0x9952('0x2c')](_0x4f7cc6,_0x9952('0x48'),(_0x23a618,_0x2524de)=>{this[_0x9952('0x73')](_0x2524de);}),this[_0x9952('0x2c')](_0xd88bc6,_0x9952('0x1b'),()=>{this[_0x9952('0x13')]();}),this[_0x9952('0x2c')](_0x1237e1,_0x9952('0x74'),(_0x1fa383,{threadId:_0x2880dc,isFromAdapter:_0x4b4f9e})=>{if(_0x4b4f9e||!_0x4f7cc6[_0x9952('0x9')](_0x2880dc))return;const _0x56a10d=_0x4f7cc6[_0x9952('0x2')](_0x2880dc);this[_0x9952('0x68')][_0x9952('0x1')](_0x56a10d)[_0x9952('0x70')]['focus']();},{'priority':_0x9952('0x36')});}[_0x9952('0x13')](){const _0x38f57f=this[_0x9952('0x11')]['plugins'][_0x9952('0x1')](_0x9952('0x19')),_0x34e9f1=this[_0x9952('0x11')][_0x9952('0x75')][_0x9952('0x1')]('TrackChangesEditing'),_0x1684b4=Array[_0x9952('0x6d')](_0x38f57f[_0x9952('0x2e')],_0xf9e46e=>_0xf9e46e[_0x9952('0x41')])[_0x9952('0x28')](_0x31ceca=>this['_viewToController'][_0x9952('0x5')](_0x31ceca)),_0xbbd7ab=[];for(const _0xe00896 of _0x1684b4){const _0x1f099b=this['_viewToController']['get'](_0xe00896)[_0x9952('0x39')][_0x9952('0x69')]();_0xbbd7ab['push'](..._0x1f099b[_0x9952('0x5c')]((_0x55e9fb,_0x2fa613)=>[..._0x55e9fb,..._0x2fa613[_0x9952('0x1f')]()],[]));}_0x34e9f1[_0x9952('0x5e')]=_0xbbd7ab;}[_0x9952('0x6c')](_0x5a6470){const _0x3832e0=_0x252fc6(_0x5a6470,_0x5bb54a),_0x4691c5=this[_0x9952('0x11')][_0x9952('0xd')][_0x9952('0x1')](_0x9952('0x6b')),_0x2fe7d1=_0x49db51(_0x5a6470,_0x9952('0x45'));_0x3832e0['buttonView'][_0x9952('0x3a')]({'tooltip':_0x2fe7d1,'label':_0x2fe7d1,'icon':_0x4778fb}),_0x3832e0[_0x9952('0xa')]['bind']('isOn')['to'](_0x4691c5,_0x9952('0x32')),_0x3832e0[_0x9952('0xa')]['on'](_0x9952('0x59'),()=>{_0x4691c5[_0x9952('0x59')](),this[_0x9952('0x11')][_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();});const _0x1d6410=new _0x223b16(),_0x3db02d=[{'type':_0x9952('0x10'),'model':{'withText':!0x0,'label':_0x2fe7d1,'commandName':_0x9952('0x6b')}},{'type':_0x9952('0x64')},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x8')),'commandName':_0x9952('0x58')}},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x1c')),'commandName':_0x9952('0x55')}},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x33')),'commandName':_0x9952('0x4b')}},{'type':'button','model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x16')),'commandName':_0x9952('0x71')}}];for(const _0x202231 of _0x3db02d){let _0x44e8cd={'type':_0x9952('0x64')};if(_0x202231[_0x9952('0x39')]){const _0x2fe58a=new _0x5ae391(_0x202231[_0x9952('0x39')]),_0x39eef4=this[_0x9952('0x11')]['commands']['get'](_0x2fe58a['commandName']);_0x2fe58a[_0x9952('0x26')](_0x9952('0x3e'),'isEnabled')['to'](_0x39eef4,_0x9952('0x32'),_0x9952('0x5d')),_0x44e8cd={'type':_0x202231[_0x9952('0x2b')],'model':_0x2fe58a};}_0x1d6410[_0x9952('0x29')](_0x44e8cd);}_0x4cc014(_0x3832e0,_0x1d6410);const _0x51a0b3=_0x3db02d[_0x9952('0x28')](_0x13cac1=>null!=_0x13cac1[_0x9952('0x39')])[_0x9952('0x17')](_0x572d96=>this[_0x9952('0x11')][_0x9952('0xd')][_0x9952('0x1')](_0x572d96[_0x9952('0x39')][_0x9952('0x18')])),_0x3be6f2=_0x3832e0[_0x9952('0xa')];return _0x3be6f2[_0x9952('0x44')]['unbind'](_0x9952('0x5d')),_0x3be6f2[_0x9952('0x4e')][_0x9952('0x4c')](_0x9952('0x5d')),_0x3be6f2[_0x9952('0x44')]['bind'](_0x9952('0x5d'))['to'](_0x4691c5,_0x9952('0x5d')),_0x3be6f2[_0x9952('0x4e')][_0x9952('0x26')](_0x9952('0x5d'))[_0x9952('0x72')](_0x51a0b3,_0x9952('0x5d'),(..._0x369ea5)=>_0x369ea5[_0x9952('0x35')](_0x1ccb9b=>_0x1ccb9b)),_0x3832e0['on']('execute',_0x576bc8=>{this[_0x9952('0x11')][_0x9952('0x59')](_0x576bc8[_0x9952('0x43')][_0x9952('0x18')]),this[_0x9952('0x11')][_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();}),_0x3832e0;}[_0x9952('0x51')](_0x1f9e61){const _0x59d91e=this[_0x9952('0x11')],_0x24c3e5=_0x59d91e[_0x9952('0xb')],_0x1bfd6d=_0x59d91e['plugins']['get']('Annotations'),_0x1e5075=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x37')),_0x2715d2=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')]('EditorAnnotations'),_0xd5a334=_0x59d91e['plugins']['get'](_0x5012ac)['me'],_0x38234a=_0x24c3e5['get'](_0x9952('0x6b'))[_0x9952('0x50')],{CommentsListView:_0x56fa46,CommentThreadInputView:_0x137632}=_0x59d91e['plugins'][_0x9952('0x1')](_0x9952('0x2d'));let _0x3713a7,_0x23957c;this[_0x9952('0x3f')]['has'](_0x1f9e61['id'])?(_0x23957c=this[_0x9952('0x3f')][_0x9952('0x1')](_0x1f9e61['id']),_0x3713a7=_0x23957c[_0x9952('0x25')]):(_0x3713a7=new _0x38234a(_0x59d91e[_0x9952('0x24')],_0x1f9e61,_0xd5a334,{'disableComments':this[_0x9952('0x14')],'editorConfig':_0x24c3e5[_0x9952('0x1')](_0x9952('0xf')),'maxCommentsWhenCollapsed':_0x24c3e5[_0x9952('0x1')](_0x9952('0x1d')),'maxThreadTotalWeight':_0x24c3e5[_0x9952('0x1')](_0x9952('0x21')),'maxCommentCharsWhenCollapsed':_0x24c3e5[_0x9952('0x1')](_0x9952('0x66')),'formatDateTime':_0x2a0970(_0x24c3e5['get'](_0x9952('0x24'))),'CommentView':_0x24c3e5['get'](_0x9952('0x38'))[_0x9952('0x47')],'CommentsListView':_0x56fa46,'CommentThreadInputView':_0x137632}),_0x3713a7[_0x9952('0x61')]['on']('execute',()=>{_0x59d91e[_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();}),_0x3713a7['discardButton']['on']('execute',()=>{_0x59d91e[_0x9952('0x27')]['view'][_0x9952('0x31')]();}),_0x23957c=_0x1bfd6d[_0x9952('0x23')](this[_0x9952('0x11')]['locale'],_0x3713a7),_0x23957c[_0x9952('0x26')](_0x9952('0x6f'))['to'](_0x3713a7,_0x9952('0x6f')),_0x23957c['bind'](_0x9952('0x22'))['to'](_0x3713a7),_0x23957c['bind'](_0x9952('0x2b'))['to'](_0x3713a7,_0x9952('0x2b'),_0xe126ac=>_0x9952('0x3c')+_0xe126ac),this[_0x9952('0x3f')][_0x9952('0x3a')](_0x1f9e61['id'],_0x23957c));const _0xe37757=_0x1e5075['createCommentThreadController'](_0x1f9e61['commentThread'],_0x3713a7),_0x47f1b7=new _0xcef13b(_0x59d91e,_0x1f9e61,_0x3713a7,_0xe37757),_0x5cd5b1=_0x1f9e61[_0x9952('0x69')]()[_0x9952('0x28')](_0x13d1f3=>_0x13d1f3[_0x9952('0x65')]);_0x3713a7[_0x9952('0x5b')]=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x12'))[_0x9952('0x67')][_0x9952('0x5a')](_0x5cd5b1),this[_0x9952('0x68')][_0x9952('0x3a')](_0x1f9e61,_0x47f1b7),this[_0x9952('0x5f')][_0x9952('0x3a')](_0x3713a7,_0x47f1b7);const _0x24cef4=_0x1bfd6d['createAnnotation']({'view':_0x23957c,'target':()=>{const _0x12afe1=[],_0x352a49=_0x1f9e61[_0x9952('0x69')]()[_0x9952('0x28')](_0x385f6a=>_0x385f6a[_0x9952('0x65')]);for(const _0x381426 of _0x352a49)_0x12afe1[_0x9952('0x52')](..._0x381426[_0x9952('0x56')]());return _0x7f301(_0x59d91e[_0x9952('0x27')],_0x12afe1);},'type':()=>_0x9952('0x3c')+_0x47f1b7[_0x9952('0x70')][_0x9952('0x2b')]});_0x1bfd6d[_0x9952('0x29')](_0x24cef4),_0x2715d2[_0x9952('0x15')](_0x24cef4);}[_0x9952('0x4')](_0x38a3bf){const _0x5a72fd=this[_0x9952('0x11')]['plugins'][_0x9952('0x1')]('Annotations'),_0x2515c5=this['_suggestionToController']['get'](_0x38a3bf),_0x81fd1b=_0x2515c5[_0x9952('0x70')],_0x442d48=_0x5a72fd['getByInnerView'](_0x81fd1b);_0x442d48&&_0x5a72fd[_0x9952('0xc')](_0x442d48),this[_0x9952('0x68')][_0x9952('0x1a')](_0x38a3bf),this[_0x9952('0x5f')][_0x9952('0x1a')](_0x81fd1b),_0x2515c5[_0x9952('0x3b')]();}[_0x9952('0x73')](_0x2b4e1f){if(!_0x2b4e1f['isInContent']||!this[_0x9952('0x68')][_0x9952('0x5')](_0x2b4e1f))return;const _0x9f1b82=this['editor'][_0x9952('0x75')]['get']('TrackChangesEditing'),_0x48fa13=this['_suggestionToController']['get'](_0x2b4e1f),_0x5479be=_0x2b4e1f[_0x9952('0x69')]();_0x48fa13[_0x9952('0x70')][_0x9952('0x5b')]=_0x9f1b82['_descriptionFactory'][_0x9952('0x5a')](_0x5479be);}[_0x9952('0x3b')](){for(const _0x287ed1 of this['_suggestionToController'][_0x9952('0x6')]())this[_0x9952('0x4')](_0x287ed1);for(const _0xdbc977 of this[_0x9952('0x3f')]['values']())_0xdbc977[_0x9952('0x25')][_0x9952('0x3b')]();super[_0x9952('0x3b')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41cb=['bind','unbind','_setPendingAction','add','discardSuggestion','stopListening','get','isEnabled','listenTo','_acceptCommand','getRanges','canDiscard','remove','canAccept','_pendingAction','commentThreadController','commands','execute','plugins','_removePendingAction','canEditAt','_editor','acceptSuggestion','destroy','locale','model','view','isDirty'];(function(_0x556688,_0x41cb48){const _0x36a333=function(_0xf9e55a){while(--_0xf9e55a){_0x556688['push'](_0x556688['shift']());}};_0x36a333(++_0x41cb48);}(_0x41cb,0x1cb));const _0x36a3=function(_0x556688,_0x41cb48){_0x556688=_0x556688-0x0;let _0x36a333=_0x41cb[_0x556688];return _0x36a333;};import{ObservableMixin as _0x55e6a8}from'ckeditor5/src/utils';import{getTranslation as _0x3a313c}from'../utils/common-translations';export default class qt extends _0x55e6a8(){constructor(_0x441d8b,_0x35a891,_0xaa7d1d,_0x3ae320){super(),this['model']=_0x35a891,this[_0x36a3('0xf')]=_0xaa7d1d,this[_0x36a3('0x4')]=_0x3ae320,this[_0x36a3('0xa')]=_0x441d8b,this[_0x36a3('0x1a')]=_0x441d8b['commands']['get'](_0x36a3('0xb')),this['_discardCommand']=_0x441d8b[_0x36a3('0x5')][_0x36a3('0x17')](_0x36a3('0x15')),this[_0x36a3('0xf')]['bind'](_0x36a3('0x18'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x344e95,_0x5ed052)=>_0x344e95||_0x5ed052),this[_0x36a3('0xf')][_0x36a3('0x11')]('canAccept')['to'](this['_acceptCommand'],_0x36a3('0x18'),_0xdc3ea7=>_0xdc3ea7&&this[_0x36a3('0xa')][_0x36a3('0xe')]['canEditAt'](_0x35a891['getRanges']())),this[_0x36a3('0xf')][_0x36a3('0x11')](_0x36a3('0x0'))['to'](this['_discardCommand'],'isEnabled',_0x115696=>_0x115696&&this[_0x36a3('0xa')][_0x36a3('0xe')][_0x36a3('0x9')](_0x35a891[_0x36a3('0x1b')]())),this[_0x36a3('0x3')]=null,_0xaa7d1d[_0x36a3('0x10')]&&this[_0x36a3('0x13')](),this[_0x36a3('0x19')](_0xaa7d1d,_0x36a3('0xb'),()=>this[_0x36a3('0xb')]()),this[_0x36a3('0x19')](_0xaa7d1d,_0x36a3('0x15'),()=>this[_0x36a3('0x15')]()),this[_0x36a3('0x19')](_0xaa7d1d,'change:isDirty',()=>{_0xaa7d1d[_0x36a3('0x10')]?this[_0x36a3('0x13')]():this['_removePendingAction']();});}[_0x36a3('0xb')](){this[_0x36a3('0x1a')][_0x36a3('0x6')](this[_0x36a3('0xe')]['id']);}[_0x36a3('0x15')](){this['_discardCommand'][_0x36a3('0x6')](this[_0x36a3('0xe')]['id']);}['destroy'](){this['view'][_0x36a3('0x12')](_0x36a3('0x18')),this[_0x36a3('0xf')][_0x36a3('0x12')](_0x36a3('0x2')),this[_0x36a3('0xf')]['unbind'](_0x36a3('0x0')),this[_0x36a3('0x16')](),this[_0x36a3('0x4')][_0x36a3('0xc')](),this[_0x36a3('0x3')]&&this[_0x36a3('0x8')]();}[_0x36a3('0x13')](){const _0x9288fd=_0x3a313c(this[_0x36a3('0xa')][_0x36a3('0xd')],'PENDING_ACTION_SUGGESTION');this[_0x36a3('0x3')]=this[_0x36a3('0xa')]['plugins']['get']('PendingActions')[_0x36a3('0x14')](_0x9288fd);}[_0x36a3('0x8')](){null!==this[_0x36a3('0x3')]&&this['_editor'][_0x36a3('0x7')]['get']('PendingActions')[_0x36a3('0x1')](this['_pendingAction']),this[_0x36a3('0x3')]=null;}}
|