@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230809.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/track-changes.js +1 -1
  5. package/package.json +3 -3
  6. package/src/commands/acceptsuggestioncommand.js +1 -1
  7. package/src/commands/discardsuggestioncommand.js +1 -1
  8. package/src/commands/executeonallsuggestionscommand.js +1 -1
  9. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  10. package/src/commands/trackchangescommand.js +1 -1
  11. package/src/integrations/alignment.js +1 -1
  12. package/src/integrations/basicstyles.js +1 -1
  13. package/src/integrations/blockquote.js +1 -1
  14. package/src/integrations/ckbox.js +1 -1
  15. package/src/integrations/codeblock.js +1 -1
  16. package/src/integrations/comments.js +1 -1
  17. package/src/integrations/deletecommand.js +1 -1
  18. package/src/integrations/documentlist.js +1 -1
  19. package/src/integrations/documentlistproperties.js +1 -1
  20. package/src/integrations/entercommand.js +1 -1
  21. package/src/integrations/findandreplace.js +1 -1
  22. package/src/integrations/font.js +1 -1
  23. package/src/integrations/formatpainter.js +1 -1
  24. package/src/integrations/heading.js +1 -1
  25. package/src/integrations/highlight.js +1 -1
  26. package/src/integrations/horizontalline.js +1 -1
  27. package/src/integrations/htmlembed.js +1 -1
  28. package/src/integrations/image.js +1 -1
  29. package/src/integrations/imagereplace.js +1 -1
  30. package/src/integrations/importword.js +1 -1
  31. package/src/integrations/indent.js +1 -1
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ba9=['isCollapsed','getChanges','always','_setSuggestionRange','markDeletion','data-suggestion','editing','start','_getSuggestionData','discardAllSuggestions','addMarker:suggestion:formatBlock','_editor','isAtEnd','ck-suggestion-marker','howMany','value','get','previous','backward','formatInline','consumable','containerElement','mapper','plugins','addHighlight','dataDowncast','track-changes-command-not-found','deletion:chain','isAfter','attributes','trackChangesCommand','containsRange','ck-suggestion-marker--active','createSelection','normal','removeMarker','getSuggestions','ck-suggestion-marker-formatBlock','error-saving-suggestion-data-suggestion-discarded','createPositionAt','addMarker:suggestion','getCustomProperty','_addThreadToSuggestion','markInsertion','hasComments','rethrowUnexpectedError','insertion','discard','widget','suggestionChanged','_suggestionState','push','_commentsRepository','_suggestionFactory','options','head','stop','notReady','getMultiRangeId','PendingActions','splice','_onDiscard','clear','_checkSuggestionCorrectness','markMultiRangeInsertion','map','isBlock','setAttribute','insertion:','oldRange','consume','isAtStart','batch','addUser','markMultiRangeBlockFormat','_registerDefaultCallbacks','isOwn','move','createRangeIn','insert','formatBlock:','next','acceptAllSuggestions','registerCustomCallback','deleteContent','define','nodeAfter','isMultiRange','_joinWithAdjacentSuggestions','ck-suggestion-marker-','formatBlock','getDifference','accept','skipNestingCheck','length','formatInline:accept','isObject','toJSON','adapter','CommentsRepository','config','track-changes-suggestion-not-found','ready','setSelection','markerNameToElements','insertion:join','size','registerPostFixer','fire','markMultiRangeDeletion','values','formatBlock:join','multipleBlocks','highest','stopListening','element','getMarkers','acceptSelectedSuggestions','root','forceDefaultExecution','editor','getItems','markerToHighlight','containsRangeInObject','never','isBefore','_getExternalAuthor','addMarkerName','newRange','formatBlock:accept','markerToData','getChangedMarkers','markerName','addComment','isEqual','add','_trackFormatChanges','isInContent','conversion','unbindElementFromMarkerName','commands','addClass','createdAt','end','detach','_model','_customCallbacks','change:activeMarkers','activeMarkers','removeClass','removeComment','getIntersection','formatGroupId','isTouching','change','bindElementToMarker','toViewElement','formatBlock:discard','set','subType','track-changes-user-not-found','isLimit','updateMarker','schema','_descriptionFactory','suggestion','addMarker','getShiftedBy','_refreshSuggestionsChain','PENDING_ACTION_SUGGESTION','getLastMatchingPosition','execute','getAncestors','_handleNewSuggestionMarker','split','return','discardSuggestion','filter','rejected','getRanges','markInlineFormat','acceptSuggestion','catch','addRange','authoredAt','model','remove','$graveyard','_saved','_addSuggestionMarker','moveTargetPosition','enableReadOnlyMode','change:data','track-changes-adapter-missing-getsuggestion','unbind','containsPosition','_setSuggestionData','elementStart','formatBlock:chain','deletion','editingDowncast','isNextTo','collaboration.channelId','targetPosition','delete','_defaultCallbacks','getFirstRange','then','commentThread','showSuggestionHighlights','_rangeIsInLocalUserInsertion','forward','lowest','isExternal','selection','_adapter','removed','elementEnd','upcast','listenTo','Users','getAttribute','for','createRange','documentSelection','addCommentThread','_splitMarkerName','_updateSuggestionData','markerReady','_cutOutSuggestionMarker','getSuggestion','TrackChangesEditing','accepted','suggestion:','isUndo','some','isIntersectingWithRange','position','@external','dataToMarker','fetchCommentThread','fromRange','getUser','trackChanges.mergeNestedSuggestions','pluginName','_createSuggestion','deletion:accept','trackChanges','elementToElement','init','authorName','addSuggestionData','deletion:','enqueueChange','_findSuggestions','substr','parent','from','enableCommand','dataReady','marker-count','$textProxy','_isForcedDefaultExecutionBlock','range','high','insertContent','name','type','getFirstMarker','writer','differ','rootName','insertion:discard','locale','has','getRange','suggestionUnloaded','external:','multi','getSuggestionCallback','commandName','isSelectable','_joinSuggestions','chain','after','_getAuthorFromId','discardSelectedSuggestions','low','item','join','document','applyOperation','insertion:chain','nodeBefore','creator','isDocumentOperation','formatInline:chain','_mergeNestedSuggestions','group','markers','createPositionBefore','_removeSuggestion','_enabledCommands','data','includes','suggestionLoaded','getNearestSelectionRange','author','reconvertMarker','insertion:accept','getAllAdjacentSuggestions','every','updateSuggestion','removeMarkers','_suggestions','isInsideObject'];(function(_0x4c21d8,_0x3ba9de){const _0x4c52a9=function(_0xe8e0d0){while(--_0xe8e0d0){_0x4c21d8['push'](_0x4c21d8['shift']());}};_0x4c52a9(++_0x3ba9de);}(_0x3ba9,0x1a4));const _0x4c52=function(_0x4c21d8,_0x3ba9de){_0x4c21d8=_0x4c21d8-0x0;let _0x4c52a9=_0x3ba9[_0x4c21d8];return _0x4c52a9;};import{Plugin as _0x2278de,PendingActions as _0x42c456}from'ckeditor5/src/core';import{LiveRange as _0x10252d}from'ckeditor5/src/engine';import{CKEditorError as _0x1b57cc,uid as _0x1e91a8,priorities as _0xdb9c03,logWarning as _0x111092}from'ckeditor5/src/utils';import{toWidget as _0x58eae2}from'ckeditor5/src/widget';import{Users as _0x59def2,hashObject as _0x24249f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a261f from'./commands/trackchangescommand';import _0xdf3be2 from'./commands/acceptsuggestioncommand';import _0x2a530f from'./commands/discardsuggestioncommand';import _0x596ff8 from'./commands/executeonallsuggestionscommand';import _0x289e98 from'./commands/executeonselectedsuggestionscommand';import _0x24016f from'./suggestion';import _0x2f3657 from'./suggestiondescriptionfactory';import _0x804455 from'./integrations/alignment';import _0x55a5c5 from'./integrations/basicstyles';import _0x152a8f from'./integrations/blockquote';import _0x5a9363 from'./integrations/ckbox';import _0x3ac387 from'./integrations/codeblock';import _0x51ae5e from'./integrations/comments';import _0x4ee884 from'./integrations/deletecommand';import _0x156c0f from'./integrations/documentlist';import _0x5842a7 from'./integrations/entercommand';import _0x55f160 from'./integrations/findandreplace';import _0x42bd03 from'./integrations/font';import _0x60438 from'./integrations/formatpainter';import _0x4f47b9 from'./integrations/heading';import _0x4c875c from'./integrations/highlight';import _0x5e6a32 from'./integrations/horizontalline';import _0x22a34f from'./integrations/htmlembed';import _0x42c5da from'./integrations/image';import _0xf36e1a from'./integrations/imagereplace';import _0x2d0ede from'./integrations/importword';import _0xa78eac from'./integrations/indent';import _0x3d1095 from'./integrations/inputcommand';import _0x2d3810 from'./integrations/link';import _0x487e77 from'./integrations/list';import _0x2da241 from'./integrations/listproperties';import _0x562b8b from'./integrations/mediaembed';import _0x197e76 from'./integrations/mention';import _0x5f2e9e from'./integrations/pagebreak';import _0x42d554 from'./integrations/paragraph';import _0x498bc6 from'./integrations/removeformat';import _0x45cddb from'./integrations/restrictededitingmode';import _0x372bc2 from'./integrations/shiftentercommand';import _0x1fe1a6 from'./integrations/standardeditingmode';import _0x4d709 from'./integrations/style';import _0x1e8fa9 from'./integrations/table';import _0x427cca from'./integrations/tablemergesplit';import _0xcfaffd from'./integrations/tableheadings';import _0x16251a from'./integrations/tableclipboard';import _0x194040 from'./integrations/tablecolumnresize';import _0x33ed61 from'./integrations/template';import _0x559816 from'./integrations/tableofcontents';import _0x5166b4 from'./integrations/title';import _0x12e4df from'./integrations/undo';import{getTranslation as _0x495697}from'./utils/common-translations';import _0x40e331 from'./integrations/tablecaption';import _0x3de438 from'./integrations/documentlistproperties';import _0x366f03 from'./integrations/tableproperties';export default class p extends _0x2278de{static get['requires'](){return[_0x4c52('0x137'),_0x59def2,_0x42c456,_0x804455,_0x55a5c5,_0x152a8f,_0x5a9363,_0x3ac387,_0x51ae5e,_0x4ee884,_0x156c0f,_0x3de438,_0x5842a7,_0x55f160,_0x42bd03,_0x60438,_0x4f47b9,_0x4c875c,_0x5e6a32,_0x22a34f,_0x42c5da,_0xf36e1a,_0x2d0ede,_0xa78eac,_0x3d1095,_0x2d3810,_0x487e77,_0x2da241,_0x562b8b,_0x197e76,_0x5f2e9e,_0x42d554,_0x498bc6,_0x45cddb,_0x372bc2,_0x1fe1a6,_0x4d709,_0x1e8fa9,_0x427cca,_0xcfaffd,_0x40e331,_0x16251a,_0x194040,_0x559816,_0x366f03,_0x33ed61,_0x5166b4,_0x12e4df];}static get[_0x4c52('0x8c')](){return _0x4c52('0x7f');}constructor(_0x46b947){function _0x2191d0(_0x9bf31e){return _0x9bf31e[_0x4c52('0x115')](_0x1f5a40=>String['fromCharCode'](_0x1f5a40))[_0x4c52('0xb9')]('');}super(_0x46b947),this['set']('activeMarkers',[]),this['on'](_0x4c52('0x2b'),(_0x4379a9,_0x4bbb2a,_0x1a43a5,_0x21c4be)=>{this[_0x4c52('0x29')][_0x4c52('0x32')](()=>{for(const _0x20389d of[..._0x21c4be,..._0x1a43a5])this[_0x4c52('0x29')][_0x4c52('0xc3')][_0x4c52('0xaa')](_0x20389d)&&_0x46b947[_0x4c52('0xda')][_0x4c52('0xcc')](_0x20389d);});}),this[_0x4c52('0x3c')]=new _0x2f3657(this[_0x4c52('0x10')][_0x4c52('0x51')][_0x4c52('0x3b')],this[_0x4c52('0x10')]['locale']),this[_0x4c52('0x6f')]=null,this[_0x4c52('0x109')]=new Dt(this[_0x4c52('0x10')]),this['_suggestions']=new Map(),this[_0x4c52('0x108')]=_0x46b947[_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x137')),this[_0x4c52('0xc6')]=new Set(),this['_model']=this['editor'][_0x4c52('0x51')],this['_suggestionState']=new WeakMap(),this[_0x4c52('0x9e')]=!0x1,_0x46b947[_0x4c52('0x138')]['define']('trackChanges.trackFormatChanges','default'),this[_0x4c52('0x20')]=_0x46b947[_0x4c52('0x138')][_0x4c52('0xe4')]('trackChanges.trackFormatChanges'),_0x46b947['config'][_0x4c52('0x129')](_0x4c52('0x8b'),!0x0),this['_mergeNestedSuggestions']=_0x46b947[_0x4c52('0x138')][_0x4c52('0xe4')](_0x4c52('0x8b')),this[_0x4c52('0xf2')]=new _0x4a261f(_0x46b947,this[_0x4c52('0xc6')]),this[_0x2191d0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2191d0([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x34]);}[_0x4c52('0x91')](){const _0x59c665=this[_0x4c52('0x10')];_0x59c665['conversion'][_0x4c52('0x76')]('editingDowncast')[_0x4c52('0x12')]({'model':_0x4c52('0x3d'),'view':_0x30d6fd=>{const {id:_0x3cf57a,type:_0x49faeb}=this[_0x4c52('0x7a')](_0x30d6fd[_0x4c52('0x1c')]),_0x1cb8bc=[_0x4c52('0xe1'),_0x4c52('0x12d')+_0x49faeb];let _0x9a292a=0xbb8;return this[_0x4c52('0x2c')][_0x4c52('0xc8')](_0x30d6fd[_0x4c52('0x1c')])&&(_0x1cb8bc[_0x4c52('0x107')](_0x4c52('0xf4')),_0x9a292a=0xbc2),_0x4c52('0x5f')==_0x49faeb&&(_0x9a292a+=0x5),{'classes':_0x1cb8bc,'attributes':{'data-suggestion':_0x3cf57a},'priority':_0x9a292a};}}),_0x59c665[_0x4c52('0x22')]['for'](_0x4c52('0xed'))[_0x4c52('0x1f')](_0x5cf451=>{_0x5cf451['on'](_0x4c52('0xfc'),(_0x20b112,_0x1f65f7,_0x16bdf1)=>{if(!_0x16bdf1[_0x4c52('0x10a')]['showSuggestionHighlights'])return;const _0x430b93=_0x1f65f7[_0x4c52('0xb8')];if(!_0x430b93)return;const _0x95a1b8=_0x16bdf1[_0x4c52('0xea')][_0x4c52('0x34')](_0x430b93);_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0x134')](_0x430b93)&&_0x95a1b8&&!_0x95a1b8[_0x4c52('0xfd')](_0x4c52('0x104'))&&_0x95a1b8['is'](_0x4c52('0xe9'))&&_0x58eae2(_0x95a1b8,_0x16bdf1['writer']);},{'priority':_0x4c52('0xa0')});}),_0x59c665['conversion'][_0x4c52('0x76')](_0x4c52('0xed'))[_0x4c52('0x12')]({'model':'suggestion','view':(_0x3ec832,_0x3d3cdd)=>{if(!_0x3d3cdd[_0x4c52('0x10a')][_0x4c52('0x69')])return null;const {type:_0x1aef35}=this['_splitMarkerName'](_0x3ec832[_0x4c52('0x1c')]);return{'classes':[_0x4c52('0xe1'),_0x4c52('0x12d')+_0x1aef35],'priority':0xbb8};}});const _0x198aac=({showActiveMarkers:_0x1ca819=!0x0}={})=>(_0x1852d4,_0x572ccc,_0x266638)=>{if(!_0x572ccc[_0x4c52('0xb8')])return;if(_0x572ccc[_0x4c52('0xb8')]['is']('selection'))return void _0x266638[_0x4c52('0xe8')]['consume'](_0x572ccc[_0x4c52('0xb8')],_0x1852d4[_0x4c52('0xa2')]);const _0x4e3e96=_0x266638[_0x4c52('0xea')][_0x4c52('0x34')](_0x572ccc[_0x4c52('0xb8')]);if(!(_0x572ccc[_0x4c52('0xb8')]['is'](_0x4c52('0xb'))&&_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0x116')](_0x572ccc[_0x4c52('0xb8')])&&!_0x4e3e96[_0x4c52('0xfd')](_0x4c52('0xec'))))return;const {id:_0x478422}=this[_0x4c52('0x7a')](_0x572ccc[_0x4c52('0x1c')]);_0x266638['writer']['addClass']([_0x4c52('0xe1'),_0x4c52('0xf9')],_0x4e3e96),_0x266638[_0x4c52('0xa5')][_0x4c52('0x117')](_0x4c52('0xd9'),_0x478422,_0x4e3e96),_0x266638[_0x4c52('0xea')][_0x4c52('0x33')](_0x4e3e96,_0x572ccc[_0x4c52('0x1c')]),_0x1ca819&&(this[_0x4c52('0x2c')]['includes'](_0x572ccc[_0x4c52('0x1c')])?_0x266638['writer'][_0x4c52('0x25')](_0x4c52('0xf4'),_0x4e3e96):_0x266638['writer'][_0x4c52('0x2d')]('ck-suggestion-marker--active',_0x4e3e96));for(const _0x5f1585 of _0x59c665['model'][_0x4c52('0x122')](_0x572ccc['item'])[_0x4c52('0x11')]())_0x266638[_0x4c52('0xe8')][_0x4c52('0x11a')](_0x5f1585,_0x1852d4['name']);_0x266638[_0x4c52('0xe8')]['consume'](_0x572ccc[_0x4c52('0xb8')],_0x1852d4[_0x4c52('0xa2')]);};_0x59c665[_0x4c52('0x22')]['for'](_0x4c52('0xed'))[_0x4c52('0x1f')](_0x13af6c=>{_0x13af6c['on'](_0x4c52('0xde'),(_0x360ce6,_0x2a1527,_0x385430)=>{_0x385430['options']['showSuggestionHighlights']&&_0x198aac({'showActiveMarkers':!0x1})(_0x360ce6,_0x2a1527,_0x385430);},{'priority':_0x4c52('0x9')});}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0xed'))[_0x4c52('0x1a')]({'model':'suggestion','view':(_0x2540a6,_0x36e5f2)=>_0x36e5f2['options'][_0x4c52('0x69')]?null:{'group':'suggestion','name':_0x2540a6[_0x4c52('0x97')](0xb)}}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x72'))[_0x4c52('0x90')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x196b7d,{writer:_0x152dc0})=>{let _0x4e84f0=_0x4c52('0x81')+_0x196b7d[_0x4c52('0x75')]('suggestion-type')+':'+_0x196b7d[_0x4c52('0x75')]('id');return _0x196b7d[_0x4c52('0x75')](_0x4c52('0x9c'))&&(_0x4e84f0+=':'+_0x196b7d[_0x4c52('0x75')](_0x4c52('0x9c'))),_0x152dc0['createElement']('$marker',{'data-name':_0x4e84f0});}}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x72'))[_0x4c52('0x87')]({'view':_0x4c52('0x3d')}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x60'))[_0x4c52('0x1f')](_0x1a18bb=>{_0x1a18bb['on'](_0x4c52('0xde'),_0x198aac(),{'priority':_0x4c52('0xa0')});}),_0x59c665['conversion'][_0x4c52('0x76')]('editingDowncast')[_0x4c52('0x1f')](_0x5e0884=>{_0x5e0884['on']('removeMarker:suggestion:formatBlock',(_0x381acf,_0xbc38da,_0x114fcd)=>{const _0x2026f7=_0x114fcd[_0x4c52('0xea')][_0x4c52('0x0')](_0xbc38da[_0x4c52('0x1c')]);if(_0x2026f7)for(const _0x454197 of _0x2026f7)_0x454197[_0x4c52('0xfd')](_0x4c52('0xec'))||(_0x114fcd['writer'][_0x4c52('0x2d')]([_0x4c52('0xe1'),_0x4c52('0xf9'),_0x4c52('0xf4')],_0x454197),_0x114fcd[_0x4c52('0xa5')]['removeAttribute']('data-suggestion',_0x454197),_0x114fcd[_0x4c52('0xea')][_0x4c52('0x23')](_0x454197,_0xbc38da[_0x4c52('0x1c')]));},{'priority':'high'});}),_0x59c665[_0x4c52('0x51')]['document'][_0x4c52('0x3')](_0x167b0c=>{let _0x5445dc=!0x1;const _0x4091d3=Array[_0x4c52('0x99')](_0x59c665[_0x4c52('0x51')][_0x4c52('0xba')][_0x4c52('0xa6')][_0x4c52('0x1b')]()),_0x375df8=new Set();for(const {name:_0x3fa574,data:_0x45a153}of _0x4091d3){const {group:_0x118995,type:_0x3c3c8b,id:_0x5587c3}=this[_0x4c52('0x7a')](_0x3fa574);if(_0x4c52('0x3d')!==_0x118995)continue;const _0x35bbc1=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x5587c3);if(null!=_0x45a153[_0x4c52('0x18')]){_0x4c52('0xe7')==_0x3c3c8b&&(_0x5445dc=_0x5445dc||Mt(_0x45a153[_0x4c52('0x18')],_0x3fa574,_0x167b0c,_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')]));if(_0x45a153[_0x4c52('0x18')]['isCollapsed']||_0x4c52('0x53')==_0x45a153[_0x4c52('0x18')][_0x4c52('0xe')][_0x4c52('0xa7')]||_0x4c52('0x12e')==_0x3c3c8b&&!Nt(_0x45a153[_0x4c52('0x18')])||_0x4c52('0x5f')==_0x3c3c8b&&!(!_t(_0x57d588=_0x45a153[_0x4c52('0x18')])&&!function(_0xa44e9b){return _0xa44e9b[_0x4c52('0xdb')]['parent']==_0xa44e9b[_0x4c52('0x27')][_0x4c52('0xbd')]&&_0xa44e9b[_0x4c52('0xdb')][_0x4c52('0xe0')];}(_0x57d588)))_0x167b0c[_0x4c52('0xf7')](_0x3fa574),_0x5445dc=!0x0;else{if(!_0x35bbc1||!_0x35bbc1[_0x4c52('0x21')])continue;_0x375df8[_0x4c52('0x1f')](_0x35bbc1);}}}var _0x57d588;return _0x375df8[_0x4c52('0x2')]>0x0&&(_0x5445dc=!!this[_0x4c52('0x12c')](_0x375df8)||_0x5445dc),_0x5445dc;}),_0x59c665[_0x4c52('0x51')]['document']['registerPostFixer'](_0x7cd9c3=>{let _0x283a4a=!0x1;for(const _0x4e86d7 of _0x59c665[_0x4c52('0x51')][_0x4c52('0xba')][_0x4c52('0xa6')][_0x4c52('0xd5')]()){if(_0x4c52('0x123')!=_0x4e86d7[_0x4c52('0xa3')])continue;const _0x1868a9=_0x4e86d7[_0x4c52('0x85')]['getShiftedBy'](_0x4e86d7[_0x4c52('0x132')]);if(_0x1868a9['isAtEnd'])for(const _0x532a11 of this[_0x4c52('0xd2')][_0x4c52('0x6')]()){if(_0x532a11[_0x4c52('0x12b')]||!_0x532a11['isInContent'])continue;if(_0x4c52('0x12e')!=_0x532a11[_0x4c52('0xa3')])continue;const _0x454bae=_0x532a11['getFirstRange']();if(_0x454bae[_0x4c52('0xdb')][_0x4c52('0x98')]!=_0x454bae[_0x4c52('0x27')][_0x4c52('0x98')]&&_0x454bae[_0x4c52('0x27')][_0x4c52('0x1e')](_0x4e86d7['position'])){const _0x4f7903=_0x59c665[_0x4c52('0x51')]['createRange'](_0x454bae[_0x4c52('0xdb')],_0x1868a9);_0x7cd9c3[_0x4c52('0x3a')](_0x532a11['getFirstMarker'](),{'range':_0x4f7903}),_0x283a4a=!0x0;}}}return _0x283a4a;}),_0x59c665[_0x4c52('0x51')]['markers']['on']('update:suggestion',(_0x23f1c3,_0x35757b,_0x272b20)=>{if(null==_0x272b20){const {id:_0x36df38}=this[_0x4c52('0x7a')](_0x35757b['name']),_0x37c167=this[_0x4c52('0xd2')]['get'](_0x36df38);_0x37c167&&_0x37c167['addMarkerName'](_0x35757b['name']);}}),_0x59c665[_0x4c52('0x51')][_0x4c52('0xba')]['on'](_0x4c52('0x58'),()=>{const _0x5488b5=Array[_0x4c52('0x99')](_0x59c665['model'][_0x4c52('0xba')][_0x4c52('0xa6')]['getChangedMarkers']())[_0x4c52('0x49')](_0x33887c=>'suggestion'===this['_splitMarkerName'](_0x33887c[_0x4c52('0xa2')])[_0x4c52('0xc2')]);if(0x0===_0x5488b5['length'])return;_0x5488b5['sort']((_0x226c9e,_0x153408)=>{const _0x218208=_0x226c9e[_0x4c52('0xc7')][_0x4c52('0x119')],_0x2c83ac=_0x153408[_0x4c52('0xc7')][_0x4c52('0x119')];return null===_0x218208&&null===_0x2c83ac?0x0:null===_0x218208&&null!==_0x2c83ac?-0x1:null!==_0x218208&&null===_0x2c83ac?0x1:_0x218208[_0x4c52('0xdb')][_0x4c52('0x15')](_0x2c83ac[_0x4c52('0xdb')])?-0x1:0x1;});const _0x217bf8=new Set(),_0x884f3b=new Set();for(const {name:_0x555be0,data:_0x641b72}of _0x5488b5){const {id:_0x356308}=this[_0x4c52('0x7a')](_0x555be0);if(null===_0x641b72[_0x4c52('0x119')]){const _0x1c16f6=this[_0x4c52('0x45')](_0x555be0);_0x884f3b[_0x4c52('0x1f')](_0x1c16f6);}else{const _0x2b9b90=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x356308);null!==_0x641b72[_0x4c52('0x18')]||_0x2b9b90['isInContent']?(_0x217bf8[_0x4c52('0x1f')](_0x2b9b90[_0x4c52('0x10b')]),_0x884f3b['add'](_0x2b9b90)):this[_0x4c52('0xc5')](_0x2b9b90);}}_0x884f3b[_0x4c52('0x2')]>0x0&&this[_0x4c52('0x40')](_0x884f3b);for(const _0x21b090 of _0x217bf8)this[_0x4c52('0x4')](_0x4c52('0x105'),_0x21b090);}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0xbb'),(_0x1a74bb,_0x2343a2)=>{const _0x367bc7=_0x2343a2[0x0];if(!this['_suggestions'][_0x4c52('0x2')])return;if(!_0x367bc7[_0x4c52('0xbf')])return;if(_0x367bc7[_0x4c52('0x11c')][_0x4c52('0x82')]||!_0x367bc7[_0x4c52('0x11c')]['isLocal'])return;let _0x5b5afc,_0x1824cd;switch(_0x367bc7[_0x4c52('0xa3')]){case _0x4c52('0x123'):_0x5b5afc=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7['position']),_0x1824cd=_0x5b5afc[_0x4c52('0x3f')](_0x367bc7[_0x4c52('0xe2')]);break;case _0x4c52('0x46'):_0x5b5afc=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7['splitPosition']),_0x1824cd=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7[_0x4c52('0x56')]);break;case _0x4c52('0x121'):_0x5b5afc=_0x59c665[_0x4c52('0x51')]['createPositionAt'](_0x367bc7[_0x4c52('0x63')]),_0x1824cd=_0x5b5afc['getShiftedBy'](_0x367bc7[_0x4c52('0xe2')]);break;default:return;}const _0xd9fe=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x5b5afc,_0x1824cd);_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](()=>{for(const {suggestion:_0x178d3d,meta:_0x1da90a}of this[_0x4c52('0x96')](_0xd9fe)){if(_0x178d3d[_0x4c52('0x12b')])continue;if(_0x4c52('0xe7')==_0x178d3d['type'])continue;const _0x449a01=_0x178d3d['data']&&_0x178d3d[_0x4c52('0xc7')][_0x4c52('0x8')];(_0x4c52('0x12e')!=_0x178d3d[_0x4c52('0xa3')]||_0x4c52('0x46')==_0x367bc7[_0x4c52('0xa3')]&&!_0x449a01)&&(_0x1da90a['containsRangeInObject']||'insertion'==_0x178d3d[_0x4c52('0xa3')]&&_0x1da90a['isOwn']||_0x178d3d[_0x4c52('0x66')]()['containsRange'](_0xd9fe)&&this['_breakSuggestionMarker'](_0x178d3d,_0x5b5afc,_0x1824cd));}});},{'priority':_0x4c52('0x6c')}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0x128'),(_0x3c6346,_0x3f2a05)=>{const _0x1da72f=_0x3f2a05[0x0],_0x3433cf=_0x3f2a05[0x1];if(_0x3433cf&&_0x3433cf[_0x4c52('0xf')])return;if(this[_0x4c52('0x9e')])return;if(!this['trackChangesCommand'][_0x4c52('0xe3')])return;if(_0x1da72f[_0x4c52('0xd4')])return;const _0x2d8c56=_0x59c665['model'][_0x4c52('0x3b')],{start:_0x285301,end:_0x59b2f7}=_0x1da72f[_0x4c52('0x66')](),_0x4e1859=_0x285301[_0x4c52('0x12a')]&&_0x2d8c56['isLimit'](_0x285301['nodeAfter'])?null:_0x2d8c56['getNearestSelectionRange'](_0x285301,_0x4c52('0x6b')),_0x66e48d=_0x59b2f7[_0x4c52('0xbd')]&&_0x2d8c56['isLimit'](_0x59b2f7[_0x4c52('0xbd')])?null:_0x2d8c56[_0x4c52('0xca')](_0x59b2f7,_0x4c52('0xe6')),_0x4823b4=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x4e1859?_0x4e1859[_0x4c52('0xdb')]:_0x285301,_0x66e48d?_0x66e48d[_0x4c52('0x27')]:_0x59b2f7);_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](_0x5521ae=>{this[_0x4c52('0xd8')](_0x4823b4);const _0xfd4647=_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0xca')](_0x4823b4[_0x4c52('0xdb')]);_0x1da72f['is'](_0x4c52('0x78'))?_0x5521ae[_0x4c52('0x13b')](_0xfd4647):_0x1da72f['setTo'](_0xfd4647);}),_0x3c6346['stop']();},{'priority':_0xdb9c03[_0x4c52('0xf6')]+0xa}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0xa1'),(_0x26f1a4,_0x5cb3c7)=>{const _0x2940ac=_0x5cb3c7[_0x5cb3c7[_0x4c52('0x132')]-0x1];_0x2940ac&&_0x2940ac[_0x4c52('0xf')]||this['_isForcedDefaultExecutionBlock']||this[_0x4c52('0xf2')][_0x4c52('0xe3')]&&(_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](()=>{let _0x553e96=_0x59c665['model']['insertContent'](_0x5cb3c7[0x0],_0x5cb3c7[0x1],_0x5cb3c7[0x2],{'forceDefaultExecution':!0x0});if(!_0x553e96)return;_0x26f1a4[_0x4c52('0x47')]=_0x553e96['clone']();const _0x18a7ec=_0x553e96[_0x4c52('0x27')][_0x4c52('0xbd')],_0x5be809=_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')];_0x18a7ec&&_0x5be809['isBlock'](_0x18a7ec)&&!_0x5be809['isObject'](_0x18a7ec)&&(_0x553e96=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x553e96[_0x4c52('0xdb')],_0x59c665[_0x4c52('0x51')]['createPositionAt'](_0x18a7ec,'end'))),this[_0x4c52('0xff')](_0x553e96);}),_0x26f1a4[_0x4c52('0x10c')]());},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0x10')][_0x4c52('0x24')]['add'](_0x4c52('0x8f'),this[_0x4c52('0xf2')]),this[_0x4c52('0x9a')](_0x4c52('0x8f'));const _0x58a7b5=new _0xdf3be2(_0x59c665,this[_0x4c52('0xd2')]);_0x59c665['commands'][_0x4c52('0x1f')](_0x4c52('0x4d'),_0x58a7b5),this[_0x4c52('0x9a')](_0x4c52('0x4d'));const _0x529962=new _0x2a530f(_0x59c665,this[_0x4c52('0xd2')]);_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')]('discardSuggestion',_0x529962),this[_0x4c52('0x9a')]('discardSuggestion'),_0x59c665[_0x4c52('0x24')]['add'](_0x4c52('0x126'),new _0x596ff8(_0x59c665,_0x58a7b5,this['_suggestions'])),this['enableCommand'](_0x4c52('0x126')),_0x59c665[_0x4c52('0x24')]['add'](_0x4c52('0xdd'),new _0x596ff8(_0x59c665,_0x529962,this[_0x4c52('0xd2')])),this[_0x4c52('0x9a')](_0x4c52('0xdd')),_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')](_0x4c52('0xd'),new _0x289e98(_0x59c665,_0x58a7b5,this['_suggestions'])),this[_0x4c52('0x9a')](_0x4c52('0xd')),_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')](_0x4c52('0xb6'),new _0x289e98(_0x59c665,_0x529962,this[_0x4c52('0xd2')])),this[_0x4c52('0x9a')](_0x4c52('0xb6'));const _0x59b785=_0x59c665['plugins'][_0x4c52('0xe4')]('CommentsRepository');this[_0x4c52('0x73')](_0x59b785,_0x4c52('0x1d'),(_0x48eb31,{threadId:_0xf75c9})=>{const _0x4e2260=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0xf75c9);_0x4e2260&&_0x4e2260[_0x4c52('0x68')]&&0x1===_0x4e2260['commentThread']['length']&&this['_updateSuggestionData'](_0xf75c9,{'hasComments':!0x0});},{'priority':_0x4c52('0xb7')}),this[_0x4c52('0x73')](_0x59b785,_0x4c52('0x2e'),(_0x51fad1,{threadId:_0x215b06})=>{const _0x2c7d07=this['_suggestions'][_0x4c52('0xe4')](_0x215b06);_0x2c7d07&&_0x2c7d07['commentThread']&&!_0x2c7d07[_0x4c52('0x68')][_0x4c52('0x132')]&&this[_0x4c52('0x7b')](_0x215b06,{'hasComments':!0x1});},{'priority':_0x4c52('0xb7')});}set[_0x4c52('0x136')](_0x3a011d){if(this[_0x4c52('0x6f')])throw new _0x1b57cc('track-changes-adapter-already-set',this);this[_0x4c52('0x6f')]=_0x3a011d;}get['adapter'](){return this['_adapter'];}[_0x4c52('0xf8')]({skipNotAttached:_0x1ec1c4=!0x1,toJSON:_0x76919f=!0x1}={}){const _0x5bbf89=[];for(const _0x5d3913 of this[_0x4c52('0xd2')][_0x4c52('0x6')]())_0x1ec1c4&&!_0x5d3913[_0x4c52('0x21')]||_0x5bbf89[_0x4c52('0x107')](_0x5d3913);return _0x76919f?_0x5bbf89[_0x4c52('0x115')](_0x5160ce=>_0x5160ce[_0x4c52('0x135')]()):_0x5bbf89;}[_0x4c52('0x7e')](_0x230616){const _0xa85b76=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x230616);if(!_0xa85b76)throw new _0x1b57cc(_0x4c52('0x139'),this);return _0xa85b76;}['hasSuggestion'](_0x358184){return this[_0x4c52('0xd2')]['has'](_0x358184);}[_0x4c52('0x93')](_0x3293d1){const {authorId:_0x48cdae,id:_0x14acca,attributes:_0x39b83b}=_0x3293d1,[_0x2c3832,_0x5ddf9]=_0x3293d1['type'][_0x4c52('0x46')](':'),_0x12db62=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x14acca)||this[_0x4c52('0x8d')](_0x2c3832,_0x5ddf9,_0x14acca,_0x48cdae,_0x39b83b);if(this[_0x4c52('0xfe')](_0x12db62),this[_0x4c52('0x113')](_0x12db62,_0x2c3832,_0x5ddf9||null,_0x48cdae),_0x12db62[_0x4c52('0x26')]=_0x3293d1[_0x4c52('0x26')],_0x39b83b&&_0x39b83b['@external']){const _0xb27333=_0x39b83b[_0x4c52('0x86')],_0x207303=this[_0x4c52('0x16')](_0xb27333[_0x4c52('0x92')]);_0x12db62[_0x4c52('0x50')]=_0xb27333[_0x4c52('0x26')],_0x12db62[_0x4c52('0xcb')]=_0x207303,_0x12db62[_0x4c52('0x6d')]=!0x0;}else _0x12db62[_0x4c52('0x50')]=_0x3293d1[_0x4c52('0x26')];switch(_0x3293d1[_0x4c52('0xc7')]&&(_0x12db62[_0x4c52('0xc7')]=_0x3293d1['data']),_0x3293d1[_0x4c52('0xf1')]&&(_0x12db62[_0x4c52('0xf1')]=_0x3293d1[_0x4c52('0xf1')]),this[_0x4c52('0x6f')]&&this[_0x4c52('0x6f')]['addSuggestion']||(_0x12db62[_0x4c52('0x54')]=!0x0),this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x12db62)){case'notReady':this['_suggestionState'][_0x4c52('0x36')](_0x12db62,'dataReady');break;case _0x4c52('0x7c'):_0x12db62[_0x4c52('0x21')]?(this['_suggestionState']['set'](_0x12db62,'ready'),this['fire'](_0x4c52('0xc9'),_0x12db62)):this['_suggestionState'][_0x4c52('0x36')](_0x12db62,_0x4c52('0x70'));}return _0x12db62;}['acceptSuggestion'](_0x20a6aa){this[_0x4c52('0xf')](()=>{this[_0x4c52('0x10')]['model'][_0x4c52('0x32')](()=>{for(const _0x49386c of _0x20a6aa[_0x4c52('0xce')]())_0x49386c[_0x4c52('0x130')]();});});}[_0x4c52('0x48')](_0x31aa1c){this[_0x4c52('0xf')](()=>{this[_0x4c52('0x10')][_0x4c52('0x51')]['change'](()=>{for(const _0xac602 of _0x31aa1c['getAllAdjacentSuggestions']())_0xac602[_0x4c52('0x103')]();});});}[_0x4c52('0x9a')](_0x191ce0,_0x275fd5){const _0x40e505=this[_0x4c52('0x10')][_0x4c52('0x24')][_0x4c52('0xe4')](_0x191ce0);if(!_0x40e505)throw new _0x1b57cc(_0x4c52('0xee'),this,{'commandName':_0x191ce0});this['_enabledCommands'][_0x4c52('0x1f')](_0x40e505),_0x275fd5&&_0x40e505['on']('execute',(_0x3ba975,_0xd320a5)=>{this[_0x4c52('0xf2')][_0x4c52('0xe3')]&&(this[_0x4c52('0x9e')]||_0xd320a5[_0x4c52('0x132')]>0x0&&_0xd320a5[_0xd320a5[_0x4c52('0x132')]-0x1]&&_0xd320a5[_0xd320a5[_0x4c52('0x132')]-0x1][_0x4c52('0xf')]||(_0x275fd5((..._0x494ac5)=>_0x40e505[_0x4c52('0x43')](..._0x494ac5,{'forceDefaultExecution':!0x0}),..._0xd320a5),_0x3ba975['stop']()));},{'priority':'high'});}[_0x4c52('0xf')](_0xfae19e){let _0x245ac3,_0x50f7d1;const _0x2927fa=this['_isForcedDefaultExecutionBlock'];this[_0x4c52('0x9e')]=!0x0;try{_0x245ac3=_0xfae19e();}catch(_0x268003){_0x50f7d1=_0x268003;}return _0x2927fa||(this[_0x4c52('0x9e')]=!0x1),_0x50f7d1&&_0x1b57cc[_0x4c52('0x101')](_0x50f7d1,this),_0x245ac3;}[_0x4c52('0xff')](_0x4bce1f,_0x53ac47=null,_0x2a9e22={}){if(_0x4bce1f[_0x4c52('0xd4')])return null;const _0x489f76=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')]('Users')['me'];for(const {suggestion:_0x161ea9,meta:_0x440600}of this[_0x4c52('0x96')](_0x4bce1f,_0x4c52('0x102')))if(_0x440600[_0x4c52('0x120')]){if(!_0x440600[_0x4c52('0x61')]){if(!this[_0x4c52('0xc1')]&&_0x440600['containsRangeInObject'])continue;return _0x161ea9;}if(_0x53ac47==_0x161ea9[_0x4c52('0x37')]){const _0x5a28cb=_0x161ea9[_0x4c52('0x66')]();return _0x5a28cb[_0x4c52('0xdb')][_0x4c52('0x1e')](_0x4bce1f[_0x4c52('0x27')])?this[_0x4c52('0xd7')](_0x161ea9,this['_model'][_0x4c52('0x77')](_0x4bce1f[_0x4c52('0xdb')],_0x5a28cb[_0x4c52('0x27')])):this[_0x4c52('0xd7')](_0x161ea9,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5a28cb[_0x4c52('0xdb')],_0x4bce1f[_0x4c52('0x27')])),_0x161ea9;}}const _0x3d9855=_0x1e91a8(),_0x51c60d=_0x489f76['id'],_0x1a2c42=_0x53ac47?_0x4c52('0x118')+_0x53ac47:'insertion',_0x57c5ea=this[_0x4c52('0x5c')]({'id':_0x3d9855,'type':_0x1a2c42,'createdAt':new Date(),'authorId':_0x51c60d,'attributes':_0x2a9e22});return this[_0x4c52('0x55')](_0x1a2c42,_0x3d9855,_0x51c60d,_0x4bce1f),_0x57c5ea;}[_0x4c52('0x114')](_0x1a48db,_0x23ce87=_0x4c52('0xae'),_0x281da4={}){const _0x41b31d=this['editor'][_0x4c52('0xeb')]['get'](_0x4c52('0x74'))['me'],_0x1d9111=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x102'),_0x23ce87,_0x4c52('0xb9'));for(const _0x521c4f of this[_0x4c52('0xf8')]())if(_0x521c4f[_0x4c52('0xcb')]['id']==_0x41b31d['id']&&_0x4c52('0x102')==_0x521c4f[_0x4c52('0xa3')]&&_0x521c4f['subType']==_0x23ce87&&(_0x1d9111(_0x521c4f[_0x4c52('0x4b')](),_0x1a48db)||_0x1d9111(_0x1a48db,_0x521c4f[_0x4c52('0x4b')]()))){for(const _0xb4384d of _0x1a48db)_0x521c4f[_0x4c52('0x4f')](_0xb4384d);return _0x521c4f;}if(this[_0x4c52('0xc1')])for(const _0x30ce3f of _0x1a48db)for(const {suggestion:_0x27f6e6,meta:_0x2281bc}of this['_findSuggestions'](_0x30ce3f,_0x4c52('0x102'))){if(!_0x2281bc[_0x4c52('0x120')])continue;let _0x6474c9=!0x0;for(const _0x227a99 of _0x27f6e6[_0x4c52('0x4b')]())for(const _0x2850d2 of _0x1a48db)if(!_0x227a99['containsRange'](_0x2850d2)){_0x6474c9=!0x1;break;}if(_0x6474c9)return _0x27f6e6;}const _0x30ae6f=_0x1e91a8(),_0x1fc334=_0x41b31d['id'],_0x47c757='insertion:'+_0x23ce87,_0x259c63=this[_0x4c52('0x5c')]({'id':_0x30ae6f,'type':_0x47c757,'createdAt':new Date(),'authorId':_0x1fc334,'attributes':_0x281da4});for(const _0x40cfbd of _0x1a48db)this[_0x4c52('0x55')](_0x47c757,_0x30ae6f,_0x1fc334,_0x40cfbd,_0x24016f[_0x4c52('0x10e')]());return _0x259c63;}[_0x4c52('0x4c')](_0x8a0317,_0x2e684a,_0x22bdbc=null,_0x1d3fe4={}){if(_0x22bdbc=_0x22bdbc||$t(_0x2e684a),_0x8a0317[_0x4c52('0xd4')])return null;if('never'===this[_0x4c52('0x20')]){const _0x37ca9f=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0xe7'),_0x22bdbc,_0x4c52('0x130'));return this['forceDefaultExecution'](()=>_0x37ca9f([_0x8a0317],_0x2e684a,_0x1d3fe4)),null;}const _0x3fbd3e=this['editor']['plugins'][_0x4c52('0xe4')]('Users')['me'],_0x2a2e32=[];if(_0x4c52('0xd6')!==this[_0x4c52('0x20')])for(const {suggestion:_0x5be2fc,meta:_0x12d883}of this[_0x4c52('0x96')](_0x8a0317,'insertion'))_0x12d883[_0x4c52('0x120')]&&!_0x12d883[_0x4c52('0xd3')]&&_0x2a2e32[_0x4c52('0x107')](..._0x5be2fc[_0x4c52('0x4b')]());const _0x13b932=function(_0x555052,_0x63aa47){const _0x5c00b5=[];for(const _0x45c341 of _0x63aa47){const _0x5077ec=_0x555052[_0x4c52('0x2f')](_0x45c341);_0x5077ec&&_0x5c00b5[_0x4c52('0x107')](_0x5077ec);}return _0x5c00b5;}(_0x8a0317,_0x2a2e32),_0x441012=function(_0x300f64,_0x45722d){const _0x12a3aa=[_0x300f64];for(const _0x385543 of _0x45722d){let _0x49bc82=0x0;for(;_0x49bc82<_0x12a3aa[_0x4c52('0x132')];){const _0x5ff89c=_0x12a3aa[_0x49bc82][_0x4c52('0x12f')](_0x385543);_0x12a3aa[_0x4c52('0x110')](_0x49bc82,0x1,..._0x5ff89c),_0x49bc82+=_0x5ff89c['length'];}}return _0x12a3aa;}(_0x8a0317,_0x2a2e32);_0x13b932[_0x4c52('0x132')]&&this['_model']['change'](()=>{for(const _0x199a2a of _0x13b932){const _0x4231fb=this['_suggestionFactory']['getSuggestionCallback'](_0x4c52('0xe7'),_0x22bdbc,_0x4c52('0x130'));this[_0x4c52('0xf')](()=>_0x4231fb([_0x199a2a],_0x2e684a,_0x1d3fe4));}});for(const _0x588c5a of _0x441012){let _0x3554a8=null,_0x234560=_0x588c5a[_0x4c52('0xdb')],_0x225301=_0x588c5a[_0x4c52('0x27')];for(const {suggestion:_0x19bc3e,meta:_0x522930}of this[_0x4c52('0x96')](_0x588c5a,_0x4c52('0xe7'))){if(!_0x522930[_0x4c52('0x120')])continue;if(_0x19bc3e[_0x4c52('0x37')]!=_0x22bdbc)continue;const _0x258aba=_0x19bc3e[_0x4c52('0x66')]();if(_0x258aba['containsRange'](_0x588c5a,!0x0))return null;_0x234560=_0x234560['isBefore'](_0x258aba[_0x4c52('0xdb')])?_0x234560:_0x258aba[_0x4c52('0xdb')],_0x225301=_0x225301[_0x4c52('0xf0')](_0x258aba[_0x4c52('0x27')])?_0x225301:_0x258aba[_0x4c52('0x27')],_0x3554a8?_0x258aba['start'][_0x4c52('0x15')](_0x3554a8[_0x4c52('0x66')]()['start'])?(_0x3554a8[_0x4c52('0xd1')](),_0x3554a8=_0x19bc3e):_0x19bc3e[_0x4c52('0xd1')]():_0x3554a8=_0x19bc3e;}const _0x5adbd9=this['_model'][_0x4c52('0x77')](_0x234560,_0x225301);if(_0x3554a8)this['_setSuggestionRange'](_0x3554a8,_0x5adbd9);else{const _0x451ab1=_0x1e91a8(),_0x2f55f5=_0x3fbd3e['id'];this['_setSuggestionData']({'id':_0x451ab1,'type':'formatInline:'+_0x22bdbc,'data':_0x2e684a,'createdAt':new Date(),'authorId':_0x2f55f5,'attributes':_0x1d3fe4}),this[_0x4c52('0x55')]('formatInline:'+_0x22bdbc,_0x451ab1,_0x2f55f5,_0x5adbd9);}}return null;}['markBlockFormat'](_0x407a86,_0x25485f,_0x486f5a=[],_0x376bc3=null,_0x5e6a18={}){_0x25485f['formatGroupId']||(_0x25485f[_0x4c52('0x30')]=_0x25485f[_0x4c52('0xb0')]),_0x25485f['multipleBlocks']=_0x407a86['is'](_0x4c52('0x9f')),_0x376bc3=_0x376bc3||$t(_0x25485f);const _0x4cf1f0=_0x486f5a['map'](_0x126a0d=>Rt(_0x126a0d,this[_0x4c52('0x29')])),_0x23bd3b=_0x407a86['is']('range')?_0x407a86:Rt(_0x407a86,this[_0x4c52('0x29')]);if(_0x4c52('0x14')===this[_0x4c52('0x20')]){const _0x296b02=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x376bc3,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x296b02([_0x23bd3b],_0x25485f,_0x5e6a18)),null;}_0x4cf1f0['push'](_0x23bd3b);let _0x33b688=!0x0;for(const _0x32d80d of _0x4cf1f0)if(!this['_rangeIsInLocalUserInsertion'](_0x32d80d)){_0x33b688=!0x1;break;}if(_0x33b688&&'always'!==this['_trackFormatChanges']){const _0x393539=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x376bc3,'accept');return this[_0x4c52('0xf')](()=>_0x393539([_0x23bd3b],_0x25485f,_0x5e6a18)),null;}let _0x1ae954=null,_0x5508c2=_0x23bd3b[_0x4c52('0xdb')],_0x2ef499=_0x23bd3b[_0x4c52('0x27')];for(const {suggestion:_0x167fb1,meta:_0x303203}of this[_0x4c52('0x96')](_0x23bd3b,'formatBlock')){if(!_0x303203[_0x4c52('0x120')]||_0x303203[_0x4c52('0x61')]||_0x303203[_0x4c52('0x13')]||_0x303203['isInsideObject'])continue;if(_0x167fb1[_0x4c52('0xc7')][_0x4c52('0x30')]!=_0x25485f[_0x4c52('0x30')])continue;const _0x190fe7=_0x167fb1['getFirstRange']();if(_0x167fb1[_0x4c52('0x37')]==_0x376bc3){if(_0x190fe7[_0x4c52('0xf3')](_0x23bd3b,!0x0))return null;_0x5508c2=_0x5508c2[_0x4c52('0x15')](_0x190fe7[_0x4c52('0xdb')])?_0x5508c2:_0x190fe7[_0x4c52('0xdb')],_0x2ef499=_0x2ef499[_0x4c52('0xf0')](_0x190fe7[_0x4c52('0x27')])?_0x2ef499:_0x190fe7[_0x4c52('0x27')],_0x1ae954?_0x190fe7[_0x4c52('0xdb')]['isBefore'](_0x1ae954[_0x4c52('0x66')]()[_0x4c52('0xdb')])?(_0x1ae954[_0x4c52('0xd1')](),_0x1ae954=_0x167fb1):_0x167fb1['removeMarkers']():_0x1ae954=_0x167fb1;}else{const _0x9ca47e=_0x23bd3b[_0x4c52('0x2f')](_0x190fe7);this[_0x4c52('0x7d')](_0x167fb1,_0x9ca47e);}}const _0x300c57=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['me'],_0x3c740c=_0x1e91a8(),_0x1dfa98=_0x300c57['id'];if(_0x1ae954)return this[_0x4c52('0xd7')](_0x1ae954,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5508c2,_0x2ef499)),_0x1ae954;{const _0x8e8804=this[_0x4c52('0x5c')]({'id':_0x3c740c,'type':_0x4c52('0x124')+_0x376bc3,'data':_0x25485f,'createdAt':new Date(),'authorId':_0x1dfa98,'attributes':_0x5e6a18});return this['_addSuggestionMarker'](_0x4c52('0x124')+_0x376bc3,_0x3c740c,_0x1dfa98,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5508c2,_0x2ef499)),_0x8e8804;}}[_0x4c52('0x11e')](_0x4e71c4,_0x3f3ea3,_0x4d8f43=[],_0x248262=null,_0x1b490e={}){_0x3f3ea3['formatGroupId']||(_0x3f3ea3['formatGroupId']=_0x3f3ea3[_0x4c52('0xb0')]);const _0xb90f25=_0x4e71c4[0x0];_0x3f3ea3[_0x4c52('0x8')]=_0xb90f25['is'](_0x4c52('0x9f')),_0x248262=_0x248262||$t(_0x3f3ea3);const _0x1a595e=_0x4d8f43[_0x4c52('0x115')](_0x28d522=>Rt(_0x28d522,this[_0x4c52('0x29')])),_0x1f3b53=_0xb90f25['is'](_0x4c52('0x9f'))?_0x4e71c4:_0x4e71c4[_0x4c52('0x115')](_0x4b31b0=>Rt(_0x4b31b0,this[_0x4c52('0x29')]));if(_0x4c52('0x14')===this[_0x4c52('0x20')]){const _0x53eda3=this[_0x4c52('0x109')][_0x4c52('0xaf')]('formatBlock',_0x248262,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x53eda3(_0x1f3b53,_0x3f3ea3,_0x1b490e)),null;}_0x1a595e[_0x4c52('0x107')](..._0x1f3b53);let _0x13039c=!0x0;for(const _0xb82935 of _0x1a595e)if(!this[_0x4c52('0x6a')](_0xb82935)){_0x13039c=!0x1;break;}if(_0x13039c&&_0x4c52('0xd6')!==this[_0x4c52('0x20')]){const _0x1820b5=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x248262,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x1820b5(_0x1f3b53,_0x3f3ea3,_0x1b490e)),null;}const _0x3c1e7f=this[_0x4c52('0x10')][_0x4c52('0xeb')]['get'](_0x4c52('0x74'))['me'];for(const _0x74bf8 of this[_0x4c52('0xf8')]()){if(_0x74bf8[_0x4c52('0xcb')]['id']!=_0x3c1e7f['id'])continue;if(_0x4c52('0x12e')!=_0x74bf8[_0x4c52('0xa3')]||_0x74bf8[_0x4c52('0xc7')][_0x4c52('0x30')]!=_0x3f3ea3[_0x4c52('0x30')])continue;const _0x480d8f=_0x74bf8[_0x4c52('0x37')]==_0x248262;for(let _0xaa7b63=0x0;_0xaa7b63<_0x1f3b53[_0x4c52('0x132')];_0xaa7b63++){const _0x14d5dd=_0x1f3b53[_0xaa7b63];for(const _0x5e4da3 of _0x74bf8[_0x4c52('0xc')]()){const _0x28de3c=_0x5e4da3[_0x4c52('0xab')]();if(_0x14d5dd[_0x4c52('0x1e')](_0x28de3c)){_0x480d8f?(_0x1f3b53[_0x4c52('0x110')](_0xaa7b63,0x1),_0xaa7b63--):_0x74bf8[_0x4c52('0xf7')](_0x5e4da3[_0x4c52('0xa2')]);break;}}}}if(0x0==_0x1f3b53['length'])return null;const _0x3afa32=this[_0x4c52('0x109')]['getSuggestionCallback'](_0x4c52('0x12e'),_0x248262,'join');for(const _0x22aba3 of this[_0x4c52('0xf8')]())if(_0x22aba3[_0x4c52('0xcb')]['id']==_0x3c1e7f['id']&&_0x4c52('0x12e')==_0x22aba3[_0x4c52('0xa3')]&&_0x22aba3[_0x4c52('0xc7')][_0x4c52('0x30')]==_0x3f3ea3[_0x4c52('0x30')]&&_0x22aba3['subType']==_0x248262&&(_0x3afa32(_0x22aba3[_0x4c52('0x4b')](),_0x1f3b53)||_0x3afa32(_0x1f3b53,_0x22aba3[_0x4c52('0x4b')]()))){for(const _0x447bd3 of _0x1f3b53)_0x22aba3[_0x4c52('0x4f')](_0x447bd3);return _0x22aba3;}const _0x5c2d44=_0x1e91a8(),_0x2c0332=_0x3c1e7f['id'],_0x3580e5=_0x4c52('0x124')+_0x248262,_0x4c9438=this[_0x4c52('0x5c')]({'id':_0x5c2d44,'type':_0x3580e5,'data':_0x3f3ea3,'createdAt':new Date(),'authorId':_0x2c0332,'attributes':_0x1b490e});for(const _0x27f9d3 of _0x1f3b53)this[_0x4c52('0x55')](_0x3580e5,_0x5c2d44,_0x2c0332,_0x27f9d3,_0x24016f[_0x4c52('0x10e')]());return _0x4c9438;}[_0x4c52('0xd8')](_0x3a3505,_0x2df30b=null,_0x5b1f00={}){if(_0x3a3505[_0x4c52('0xd4')])return null;const _0x44d740=this['editor'][_0x4c52('0xeb')]['get']('Users')['me'],_0x2d6407=new _0x10252d(_0x3a3505[_0x4c52('0xdb')],_0x3a3505[_0x4c52('0x27')]);for(const {suggestion:_0x2c888a,meta:_0x58aaf9}of this[_0x4c52('0x96')](_0x2d6407,'insertion'))if(_0x58aaf9['isOwn']&&!_0x58aaf9['isNextTo']){if(_0x2c888a[_0x4c52('0x12b')]){const _0x246aae=_0x2c888a['getRanges']()[_0x4c52('0x49')](_0x5d10fe=>_0x4c52('0x53')!=_0x5d10fe[_0x4c52('0xe')]['rootName']);_0x246aae[_0x4c52('0xcf')](_0x3325f4=>_0x2d6407[_0x4c52('0xf3')](_0x3325f4,!0x0))&&_0x2c888a[_0x4c52('0x103')]();if(_0x246aae[_0x4c52('0x83')](_0x51e230=>_0x51e230[_0x4c52('0xf3')](_0x2d6407,!0x0))){const _0x336d25=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x2df30b,_0x4c52('0x130'));return this['forceDefaultExecution'](()=>_0x336d25([_0x2d6407],null,_0x5b1f00)),null;}}else{const _0xc2b690=_0x2d6407[_0x4c52('0x2f')](_0x2c888a[_0x4c52('0x66')]());null!==_0xc2b690&&_0x2c888a[_0x4c52('0x111')]([_0xc2b690],null,_0x5b1f00);}}if(_0x2d6407[_0x4c52('0x28')](),_0x2d6407['isCollapsed']||_0x4c52('0x53')==_0x2d6407[_0x4c52('0xe')][_0x4c52('0xa7')])return null;let _0x4ef5c3=null,_0x31d035=_0x2d6407[_0x4c52('0xdb')],_0x4fe4e2=_0x2d6407['end'];for(const {suggestion:_0xd1cfcd,meta:_0x24ab55}of this[_0x4c52('0x96')](_0x2d6407,_0x4c52('0x5f')))if(_0x24ab55[_0x4c52('0x120')]){if(_0xd1cfcd[_0x4c52('0x12b')]&&this[_0x4c52('0xc1')]){let _0x392abd=!0x0;for(const _0x19043f of _0xd1cfcd[_0x4c52('0x4b')]()){if(_0x19043f['containsRange'](_0x2d6407,!0x0))return _0xd1cfcd;_0x2d6407['containsRange'](_0x19043f)||(_0x392abd=!0x1);}_0x392abd&&_0xd1cfcd['discard']();}else{const _0x172abc=_0xd1cfcd['getFirstRange']();if(_0x172abc[_0x4c52('0xf3')](_0x2d6407,!0x0)){if(!this[_0x4c52('0xc1')]&&_0x24ab55[_0x4c52('0x13')])continue;return _0xd1cfcd;}_0x31d035=_0x31d035[_0x4c52('0x15')](_0x172abc[_0x4c52('0xdb')])?_0x31d035:_0x172abc['start'],_0x4fe4e2=_0x4fe4e2[_0x4c52('0xf0')](_0x172abc['end'])?_0x4fe4e2:_0x172abc['end'],_0x4ef5c3?_0x172abc[_0x4c52('0xdb')][_0x4c52('0x15')](_0x4ef5c3[_0x4c52('0x66')]()['start'])?(_0x4ef5c3[_0x4c52('0xd1')](),_0x4ef5c3=_0xd1cfcd):_0xd1cfcd[_0x4c52('0xd1')]():_0x4ef5c3=_0xd1cfcd;}}if(_0x4ef5c3)return this[_0x4c52('0xd7')](_0x4ef5c3,this['_model'][_0x4c52('0x77')](_0x31d035,_0x4fe4e2)),_0x4ef5c3;{const _0x3ff91d=_0x1e91a8(),_0x36c8b7=this[_0x4c52('0x29')][_0x4c52('0x77')](_0x31d035,_0x4fe4e2),_0x351b9a=_0x44d740['id'],_0x381491=_0x2df30b?'deletion:'+_0x2df30b:'deletion',_0x3270ca=this[_0x4c52('0x5c')]({'id':_0x3ff91d,'type':_0x381491,'createdAt':new Date(),'authorId':_0x351b9a,'attributes':_0x5b1f00});return this['_addSuggestionMarker'](_0x381491,_0x3ff91d,_0x351b9a,_0x36c8b7),_0x3270ca;}}[_0x4c52('0x5')](_0x4938b9,_0x4bb9aa=_0x4c52('0xae'),_0x4ea69f={}){const _0x21cd9d=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['me'],_0x1ee782=_0x4938b9[_0x4c52('0x115')](_0x4df2d6=>new _0x10252d(_0x4df2d6[_0x4c52('0xdb')],_0x4df2d6[_0x4c52('0x27')])),_0x193fe5=new Set();for(const _0x4d909d of _0x1ee782)for(const {suggestion:_0x515cde,meta:_0x94b55a}of this[_0x4c52('0x96')](_0x4d909d,_0x4c52('0x102')))_0x94b55a['isOwn']&&!_0x94b55a['isNextTo']&&_0x193fe5[_0x4c52('0x1f')](_0x515cde);for(const _0xa93ff7 of _0x193fe5)if(_0xa93ff7[_0x4c52('0x12b')]){const _0x4da106=_0xa93ff7[_0x4c52('0x4b')]();(!_0xa93ff7['attributes']||!_0xa93ff7[_0x4c52('0xf1')][_0x4c52('0x131')])&&(_0x4da106['every'](_0x177bad=>_0x1ee782['some'](_0x269ba3=>_0x269ba3[_0x4c52('0xf3')](_0x177bad,!0x0)))&&_0xa93ff7[_0x4c52('0x103')]());if(_0x1ee782[_0x4c52('0xcf')](_0x5579f5=>_0x4da106[_0x4c52('0x83')](_0x1c827e=>_0x1c827e['containsRange'](_0x5579f5,!0x0)))){const _0x3d3ab9=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x3d3ab9(_0x4938b9,null,_0x4ea69f)),null;}}else{const _0x4b4724=_0xa93ff7['getFirstRange']();_0x1ee782[_0x4c52('0x83')](_0xfad60a=>_0xfad60a[_0x4c52('0xf3')](_0x4b4724,!0x0))&&_0xa93ff7[_0x4c52('0x103')]();if(_0x1ee782[_0x4c52('0xcf')](_0x1491b0=>_0x4b4724[_0x4c52('0xf3')](_0x1491b0,!0x0))){const _0xdb2fe=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0xdb2fe(_0x1ee782,null,_0x4ea69f)),null;}}const _0x2bb48c=this[_0x4c52('0x109')]['getSuggestionCallback'](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0xb9'));let _0x59339d=null;for(const _0x267025 of this[_0x4c52('0xf8')]())if(_0x267025[_0x4c52('0xcb')]['id']==_0x21cd9d['id']&&_0x267025['isInContent']&&_0x4c52('0x5f')==_0x267025['type']&&_0x267025['subType']==_0x4bb9aa&&(_0x2bb48c(_0x267025[_0x4c52('0x4b')](),_0x1ee782)||_0x2bb48c(_0x1ee782,_0x267025[_0x4c52('0x4b')]()))){if(_0x59339d){if(_0x267025[_0x4c52('0x68')]&&_0x267025[_0x4c52('0x68')]['length'])continue;for(const _0x87340f of _0x267025[_0x4c52('0x4b')]())_0x59339d['isIntersectingWithRange'](_0x87340f)||_0x59339d[_0x4c52('0x4f')](_0x87340f);_0x267025[_0x4c52('0xd1')]();}else{_0x59339d=_0x267025;for(const _0x314361 of _0x1ee782)_0x267025[_0x4c52('0x84')](_0x314361)||_0x267025[_0x4c52('0x4f')](_0x314361);}}if(_0x59339d)return _0x59339d;_0x193fe5[_0x4c52('0x112')]();for(const _0x156057 of _0x1ee782)for(const {suggestion:_0x4916d6,meta:_0x5eda19}of this[_0x4c52('0x96')](_0x156057,_0x4c52('0x5f')))_0x5eda19[_0x4c52('0x120')]&&_0x193fe5[_0x4c52('0x1f')](_0x4916d6);for(const _0x20ab77 of _0x193fe5){const _0x5968fa=_0x20ab77[_0x4c52('0x4b')]();if(!_0x4ea69f||!_0x4ea69f[_0x4c52('0x131')]){if(_0x1ee782[_0x4c52('0xcf')](_0xd36ebc=>_0x5968fa['some'](_0x2e0a07=>_0x2e0a07[_0x4c52('0xf3')](_0xd36ebc,!0x0))))return _0x20ab77;}(!_0x20ab77[_0x4c52('0xf1')]||!_0x20ab77[_0x4c52('0xf1')][_0x4c52('0x131')])&&(_0x5968fa['every'](_0x2b0261=>_0x1ee782[_0x4c52('0x83')](_0x34a174=>_0x34a174[_0x4c52('0xf3')](_0x2b0261,!0x0)))&&_0x20ab77['discard']());}const _0x40b941=_0x1e91a8(),_0x1966f4=_0x21cd9d['id'],_0x681768=_0x4c52('0x94')+_0x4bb9aa,_0x38a4b0=this[_0x4c52('0x5c')]({'id':_0x40b941,'type':_0x681768,'createdAt':new Date(),'authorId':_0x1966f4,'attributes':_0x4ea69f});for(const _0x8912c9 of _0x1ee782)_0x8912c9['detach'](),_0x8912c9[_0x4c52('0xd4')]||_0x4c52('0x53')==_0x8912c9[_0x4c52('0xe')]['rootName']||this[_0x4c52('0x55')](_0x681768,_0x40b941,_0x1966f4,_0x8912c9,_0x24016f[_0x4c52('0x10e')]());return _0x38a4b0;}[_0x4c52('0xd7')](_0x54d8b5,_0xfd34f1){const _0x303e64=_0x54d8b5[_0x4c52('0xa4')]();this[_0x4c52('0x29')]['change'](_0x2857a3=>{_0x2857a3[_0x4c52('0x3a')](_0x303e64,{'range':_0xfd34f1});});}[_0x4c52('0xfe')](_0x3a4eb8){const _0x7d5a00=_0x3a4eb8['id'],_0x39722a=this[_0x4c52('0x10')][_0x4c52('0x138')][_0x4c52('0xe4')](_0x4c52('0x62'));this[_0x4c52('0x108')]['hasCommentThread'](_0x7d5a00)||this['_commentsRepository'][_0x4c52('0x79')]({'channelId':_0x39722a,'threadId':_0x7d5a00,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51e99a=this[_0x4c52('0x108')]['getCommentThread'](_0x7d5a00);_0x51e99a[_0x4c52('0x5a')]('isRemovable'),_0x51e99a['isRemovable']=!0x1,_0x3a4eb8[_0x4c52('0x68')]=_0x51e99a;}[_0x4c52('0x113')](_0xb57be9,_0x31c236,_0x1ccf2b,_0x3bb093){if(_0xb57be9[_0x4c52('0xa3')]!=_0x31c236||_0xb57be9[_0x4c52('0x37')]!=_0x1ccf2b||_0xb57be9[_0x4c52('0xbe')]['id']!=_0x3bb093)throw this[_0x4c52('0x10')][_0x4c52('0x57')]('track-changes-suggestion-data-mismatch'),new _0x1b57cc('track-changes-suggestion-data-mismatch',this);}[_0x4c52('0x7d')](_0x57fd38,_0x2cb560){const _0xc0b529=_0x57fd38[_0x4c52('0x66')]();if(_0x2cb560[_0x4c52('0x1e')](_0xc0b529))_0x57fd38['removeMarkers']();else{if(_0xc0b529[_0x4c52('0xf3')](_0x2cb560)){const _0x1c06f2=this['_model'][_0x4c52('0xfb')](_0x2cb560[_0x4c52('0xdb')][_0x4c52('0xbd')],'end');this[_0x4c52('0xd7')](_0x57fd38,this[_0x4c52('0x29')][_0x4c52('0x77')](_0xc0b529[_0x4c52('0xdb')],_0x1c06f2));const _0x3b4bb4=_0x1e91a8(),_0x3b64c1=_0x57fd38[_0x4c52('0xbe')]['id'],_0x3da2fe=_0x57fd38[_0x4c52('0xa3')]+':'+_0x57fd38[_0x4c52('0x37')];this[_0x4c52('0x5c')]({'id':_0x3b4bb4,'type':_0x3da2fe,'createdAt':new Date(),'authorId':_0x3b64c1,'data':_0x57fd38['data'],'attributes':_0x57fd38['attributes']});const _0x3bf628=this[_0x4c52('0x29')]['createPositionAt'](_0x2cb560['end'][_0x4c52('0x98')],'after'),_0x431ecc=this[_0x4c52('0x29')][_0x4c52('0x77')](_0x3bf628,_0xc0b529[_0x4c52('0x27')]);this[_0x4c52('0x55')](_0x3da2fe,_0x3b4bb4,_0x3b64c1,_0x431ecc);}else{if(_0xc0b529[_0x4c52('0x5b')](_0x2cb560[_0x4c52('0xdb')])){const _0x4838ff=this['_model'][_0x4c52('0xfb')](_0x2cb560[_0x4c52('0xdb')][_0x4c52('0xbd')],_0x4c52('0x27'));this[_0x4c52('0xd7')](_0x57fd38,this[_0x4c52('0x29')][_0x4c52('0x77')](_0xc0b529[_0x4c52('0xdb')],_0x4838ff));}else{const _0x555e5b=this['_model']['createPositionAt'](_0x2cb560['end']['parent'],_0x4c52('0xb4'));this[_0x4c52('0xd7')](_0x57fd38,this['_model'][_0x4c52('0x77')](_0x555e5b,_0xc0b529['end']));}}}}[_0x4c52('0x6a')](_0x54f27a){for(const {suggestion:_0x20b48a,meta:_0x231c3d}of this['_findSuggestions'](_0x54f27a,_0x4c52('0x102'))){if(!_0x231c3d[_0x4c52('0x120')])continue;const _0x232eb1=_0x20b48a[_0x4c52('0x4b')]();for(const _0x50dfa1 of _0x232eb1)if(!_0x54f27a[_0x4c52('0x12f')](_0x50dfa1)['length'])return!0x0;}return!0x1;}[_0x4c52('0xb5')](_0x137cec){const _0x18ffef=this['editor'][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['getUser'](_0x137cec);if(!_0x18ffef)throw new _0x1b57cc(_0x4c52('0x38'),this);return _0x18ffef;}[_0x4c52('0x16')](_0x2f8cf1){const _0x16b01b=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74')),_0x4d1a35=_0x24249f(_0x4c52('0xad')+_0x2f8cf1),_0x53001f=_0x16b01b[_0x4c52('0x8a')](_0x4d1a35);return _0x53001f||_0x16b01b[_0x4c52('0x11d')]({'id':_0x4d1a35,'name':_0x2f8cf1});}[_0x4c52('0x8d')](_0x538f1f,_0x3fd911,_0x35487c,_0x46040b,_0x307ed0){const _0x4b7897=this[_0x4c52('0xb5')](_0x46040b),_0x3d31f1=this[_0x4c52('0x109')]['buildSuggestion'](_0x538f1f,_0x3fd911,_0x35487c,_0x4b7897,_0x307ed0,_0x5e38c7=>this['_updateSuggestionData'](_0x35487c,{'attributes':_0x5e38c7}));return this[_0x4c52('0x73')](_0x3d31f1,_0x4c52('0x130'),()=>{this['_updateSuggestionData'](_0x35487c,{'state':_0x4c52('0x80')});},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0x73')](_0x3d31f1,_0x4c52('0x103'),()=>{this['_updateSuggestionData'](_0x35487c,{'state':_0x4c52('0x4a')});},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0xd2')]['set'](_0x35487c,_0x3d31f1),this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3d31f1,_0x4c52('0x10d')),_0x3d31f1;}[_0x4c52('0x7a')](_0x1698d2){const _0x94e33a=_0x1698d2[_0x4c52('0x46')](':');return{'group':_0x94e33a[0x0],'type':_0x94e33a[0x1],'subType':_0x94e33a[_0x4c52('0x132')]>=0x5?_0x94e33a[0x2]:null,'id':_0x94e33a[_0x4c52('0x132')]<0x5?_0x94e33a[0x2]:_0x94e33a[0x3],'authorId':_0x94e33a[_0x4c52('0x132')]<0x5?_0x94e33a[0x3]:_0x94e33a[0x4],'markerCount':0x6==_0x94e33a[_0x4c52('0x132')]?_0x94e33a[0x5]:null};}['_breakSuggestionMarker'](_0x5880c8,_0x43fbda,_0x540ed4){const _0x12d1cd=_0x5880c8['getFirstRange'](),_0x23a2f6=_0x12d1cd[_0x4c52('0xdb')],_0x57f137=_0x12d1cd[_0x4c52('0x27')];this[_0x4c52('0xd7')](_0x5880c8,this['_model'][_0x4c52('0x77')](_0x23a2f6,_0x43fbda));const _0x3d1ec7=_0x1e91a8(),_0x10d35a=_0x5880c8[_0x4c52('0xbe')]['id'],_0x5011aa=_0x5880c8[_0x4c52('0xa3')]+(_0x5880c8[_0x4c52('0x37')]?':'+_0x5880c8[_0x4c52('0x37')]:'');this[_0x4c52('0x5c')]({'id':_0x3d1ec7,'type':_0x5011aa,'createdAt':new Date(),'authorId':_0x10d35a,'originalSuggestionId':_0x5880c8['id'],'attributes':_0x5880c8['attributes'],'data':_0x5880c8[_0x4c52('0xc7')]}),_0x4c52('0x12e')==_0x5880c8[_0x4c52('0xa3')]&&(_0x540ed4=this[_0x4c52('0x29')][_0x4c52('0xc4')](_0x540ed4[_0x4c52('0x98')])),this[_0x4c52('0x55')](_0x5011aa,_0x3d1ec7,_0x10d35a,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x540ed4,_0x57f137));}[_0x4c52('0x96')](_0x5b41ad,_0x38ee24=null){const _0x29c319=[],_0x30d3a8=this[_0x4c52('0x29')]['schema'],_0x96545f=this[_0x4c52('0x10')]['plugins'][_0x4c52('0xe4')](_0x4c52('0x74'))['me'];for(const _0x2e4336 of this[_0x4c52('0xf8')]())if(_0x2e4336[_0x4c52('0x21')]&&(!_0x38ee24||_0x2e4336[_0x4c52('0xa3')]==_0x38ee24))for(const _0x45bc79 of _0x2e4336[_0x4c52('0x4b')]()){const _0xd83488=_0x5b41ad['start'][_0x4c52('0x1e')](_0x45bc79[_0x4c52('0x27')])||_0x5b41ad[_0x4c52('0x27')][_0x4c52('0x1e')](_0x45bc79[_0x4c52('0xdb')]);if(_0xd83488||_0x5b41ad['getIntersection'](_0x45bc79)){const _0x5f4686=_0x5b41ad['containsRange'](_0x45bc79)&&Bt(_0x30d3a8,_0x45bc79[_0x4c52('0xdb')],_0x5b41ad),_0x367366=_0x45bc79[_0x4c52('0xf3')](_0x5b41ad)&&Bt(_0x30d3a8,_0x5b41ad[_0x4c52('0xdb')],_0x45bc79);_0x29c319[_0x4c52('0x107')]({'suggestion':_0x2e4336,'meta':{'isOwn':_0x96545f==_0x2e4336[_0x4c52('0xcb')],'isNextTo':_0xd83488,'isInsideObject':_0x5f4686,'containsRangeInObject':_0x367366}});break;}}return _0x29c319;}[_0x4c52('0x55')](_0x337b1e,_0x23d310,_0x5ec472,_0x75d987,_0x29a422){this[_0x4c52('0x29')][_0x4c52('0x32')](_0x110856=>{let _0x182417=_0x4c52('0x81')+_0x337b1e+':'+_0x23d310+':'+_0x5ec472;_0x29a422&&(_0x182417=_0x182417+':'+_0x29a422),_0x110856[_0x4c52('0x3e')](_0x182417,{'range':_0x75d987,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x347281){const _0x5e8e0a=_0x347281[_0x4c52('0xe5')],_0x14675b=_0x347281[_0x4c52('0x125')];_0x347281[_0x4c52('0xe5')]=null,null!=_0x5e8e0a&&(_0x5e8e0a[_0x4c52('0x125')]=null),_0x347281['next']=null,null!=_0x14675b&&(_0x14675b['previous']=null),_0x4c52('0x13a')==this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x347281)&&(this['_suggestionState']['set'](_0x347281,_0x4c52('0x70')),this[_0x4c52('0x4')](_0x4c52('0xac'),_0x347281,_0x5e8e0a,_0x14675b));}[_0x4c52('0x5c')](_0x4ba8ca){const _0x37be62=_0x4ba8ca['id'],_0x1481c1=this[_0x4c52('0x93')](_0x4ba8ca);if(this[_0x4c52('0x6f')]&&this[_0x4c52('0x6f')]['addSuggestion']){const _0x13e0b6=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x10f')),_0x35dbf5=_0x1481c1[_0x4c52('0x100')],_0x2c0f8c=_0x1481c1[_0x4c52('0x37')]?_0x1481c1['type']+':'+_0x1481c1['subType']:_0x1481c1['type'],_0x37a704=this[_0x4c52('0x10')][_0x4c52('0xa9')],_0x9eb181=_0x13e0b6[_0x4c52('0x1f')](_0x495697(_0x37a704,'PENDING_ACTION_SUGGESTION')),_0x570c7c={'id':_0x37be62,'type':_0x2c0f8c,'hasComments':_0x35dbf5,'data':_0x4ba8ca[_0x4c52('0xc7')]||null,'originalSuggestionId':_0x4ba8ca['originalSuggestionId']||null,'attributes':_0x1481c1['attributes']};this[_0x4c52('0x6f')]['addSuggestion'](_0x570c7c)['then'](_0x155ec6=>{_0x1481c1[_0x4c52('0x54')]=!0x0,_0x13e0b6['remove'](_0x9eb181),_0x155ec6&&_0x155ec6[_0x4c52('0x26')]&&(this['_suggestions'][_0x4c52('0xe4')](_0x37be62)[_0x4c52('0x26')]=_0x155ec6[_0x4c52('0x26')]);})[_0x4c52('0x4e')](_0x3d377e=>{throw _0x111092(_0x4c52('0xfa')),this[_0x4c52('0x10')][_0x4c52('0x51')][_0x4c52('0x95')]({'isUndoable':!0x1},()=>{_0x1481c1[_0x4c52('0x103')]();}),_0x1481c1[_0x4c52('0xa')](),this[_0x4c52('0xd2')][_0x4c52('0x64')](_0x1481c1['id']),this[_0x4c52('0x106')][_0x4c52('0x64')](_0x1481c1),_0x3d377e;});}return _0x1481c1;}[_0x4c52('0x7b')](_0xd1fecb,_0x8050dc){const _0x299e8d=this['editor'][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x10f')),_0x4e23e4=this[_0x4c52('0x7e')](_0xd1fecb);if(this[_0x4c52('0x6f')]&&this['_adapter'][_0x4c52('0xd0')]){if(_0x4e23e4[_0x4c52('0x54')]){const _0x203833=_0x299e8d[_0x4c52('0x1f')](_0x495697(this[_0x4c52('0x10')][_0x4c52('0xa9')],_0x4c52('0x41')));this[_0x4c52('0x6f')]['updateSuggestion'](_0xd1fecb,_0x8050dc)['then'](()=>{_0x299e8d[_0x4c52('0x52')](_0x203833);});}else _0x4e23e4['on']('change:_saved',()=>{this[_0x4c52('0x7b')](_0xd1fecb,_0x8050dc);});}}['_getSuggestionData'](_0x40d96f){if(!this['_adapter']||!this[_0x4c52('0x6f')][_0x4c52('0x7e')])throw new _0x1b57cc(_0x4c52('0x59'),this);return this[_0x4c52('0x6f')][_0x4c52('0x7e')](_0x40d96f);}[_0x4c52('0x45')](_0x57eedc){const {id:_0x2a4426,type:_0x199d85,subType:_0x1601a2,authorId:_0xef3ba8}=this[_0x4c52('0x7a')](_0x57eedc),_0x3fe3da=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x2a4426)||this[_0x4c52('0x8d')](_0x199d85,_0x1601a2,_0x2a4426,_0xef3ba8,{});switch(this[_0x4c52('0x113')](_0x3fe3da,_0x199d85,_0x1601a2,_0xef3ba8),this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x3fe3da)){case _0x4c52('0x10d'):this[_0x4c52('0xdc')](_0x2a4426)['then'](_0x1e008c=>{let _0x46e86b=Promise['resolve']();_0x1e008c[_0x4c52('0x100')]&&(_0x46e86b=this['_commentsRepository'][_0x4c52('0x88')]({'channelId':this[_0x4c52('0x10')]['config'][_0x4c52('0xe4')]('collaboration.channelId'),'threadId':_0x2a4426})),_0x46e86b[_0x4c52('0x67')](()=>{this[_0x4c52('0x93')](_0x1e008c)['_saved']=!0x0;});}),this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3fe3da,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a4426,{'state':'open'});case _0x4c52('0x9b'):this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3fe3da,_0x4c52('0x13a')),this[_0x4c52('0x4')](_0x4c52('0xc9'),_0x3fe3da);break;case'ready':this[_0x4c52('0x4')](_0x4c52('0x105'),_0x3fe3da);}return _0x3fe3da[_0x4c52('0x17')](_0x57eedc),_0x3fe3da;}[_0x4c52('0x40')](_0x120068){const _0x1a53ef=Array[_0x4c52('0x99')](_0x120068)['filter'](_0x2256c2=>!_0x2256c2[_0x4c52('0x12b')]),_0x1c736d=this[_0x4c52('0xf8')]({'skipNotAttached':!0x0})[_0x4c52('0x49')](_0x1f38c6=>!_0x1f38c6[_0x4c52('0x12b')]),_0x23ed4f=_0x1c736d[_0x4c52('0x49')](_0x211534=>!_0x120068[_0x4c52('0xaa')](_0x211534)),_0x4790c5=new Map(_0x1c736d[_0x4c52('0x115')](_0x18072c=>[_0x18072c,this['_suggestionFactory']['getSuggestionCallback'](_0x18072c[_0x4c52('0xa3')],_0x18072c['subType'],_0x4c52('0xb3'))])),_0x22fc80=new Map(_0x1c736d[_0x4c52('0x115')](_0x2b7b7f=>[_0x2b7b7f,_0x2b7b7f[_0x4c52('0x66')]()])),_0x320ec7=new Set(),_0x80f6f9=new Set();for(let _0xd4a006=0x0;_0xd4a006<_0x1a53ef[_0x4c52('0x132')];_0xd4a006++)_0x3f42d0(_0x1a53ef[_0xd4a006],_0x1a53ef,_0xd4a006+0x1);for(let _0x5ec500=0x0;_0x5ec500<_0x1a53ef[_0x4c52('0x132')];_0x5ec500++)_0x3f42d0(_0x1a53ef[_0x5ec500],_0x23ed4f,0x0);for(let _0x22d763=0x0;_0x22d763<_0x1a53ef[_0x4c52('0x132')];_0x22d763++){const _0x5f1f42=_0x1a53ef[_0x22d763];!_0x80f6f9[_0x4c52('0xaa')](_0x5f1f42)&&_0x5f1f42[_0x4c52('0xe5')]&&(_0x5f1f42[_0x4c52('0xe5')][_0x4c52('0x125')]===_0x5f1f42&&(_0x5f1f42['previous'][_0x4c52('0x125')]=null),_0x5f1f42[_0x4c52('0xe5')]=null),!_0x320ec7[_0x4c52('0xaa')](_0x5f1f42)&&_0x5f1f42[_0x4c52('0x125')]&&(_0x5f1f42['next'][_0x4c52('0xe5')]===_0x5f1f42&&(_0x5f1f42['next'][_0x4c52('0xe5')]=null),_0x5f1f42[_0x4c52('0x125')]=null);}function _0x3f42d0(_0xe5424f,_0x30e330,_0x21ce56){for(let _0x33ef54=_0x21ce56;_0x33ef54<_0x30e330[_0x4c52('0x132')];_0x33ef54++){const _0x144329=_0x52a5e4(_0xe5424f,_0x30e330[_0x33ef54]);_0x144329&&(_0x144329[0x0][_0x4c52('0x125')]=_0x144329[0x1],_0x144329[0x1]['previous']=_0x144329[0x0],_0x320ec7[_0x4c52('0x1f')](_0x144329[0x0]),_0x80f6f9[_0x4c52('0x1f')](_0x144329[0x1]));}}function _0x52a5e4(_0x1032db,_0x50127f){if(_0x1032db[_0x4c52('0xcb')]['id']!==_0x50127f[_0x4c52('0xcb')]['id'])return null;const _0x38cdc3=_0x4790c5['get'](_0x1032db)(_0x1032db,_0x50127f,_0x22fc80[_0x4c52('0xe4')](_0x1032db),_0x22fc80[_0x4c52('0xe4')](_0x50127f));if(!_0x38cdc3)return null;return _0x4790c5[_0x4c52('0xe4')](_0x50127f)(_0x1032db,_0x50127f,_0x22fc80['get'](_0x1032db),_0x22fc80[_0x4c52('0xe4')](_0x50127f))?_0x38cdc3[0x1][_0x4c52('0x68')]&&_0x38cdc3[0x1][_0x4c52('0x68')][_0x4c52('0x132')]?null:_0x38cdc3:null;}}[_0x4c52('0x12c')](_0x450051){const _0x5b6e68=Array['from'](_0x450051),_0x74bc68=this[_0x4c52('0xf8')]({'skipNotAttached':!0x0}),_0x4d8dcc=_0x74bc68['filter'](_0x4deb50=>!_0x450051[_0x4c52('0xaa')](_0x4deb50)),_0x574ee6=new Map(_0x5b6e68['map'](_0x1155b3=>[_0x1155b3,this[_0x4c52('0x109')]['getSuggestionCallback'](_0x1155b3[_0x4c52('0xa3')],_0x1155b3[_0x4c52('0x37')],'join')])),_0x2fd7ca=new Map(_0x74bc68[_0x4c52('0x115')](_0x4315cb=>[_0x4315cb,_0x4315cb['getRanges']()]));for(let _0x38e4fd=0x0;_0x38e4fd<_0x5b6e68['length'];_0x38e4fd++){if(_0x11905d(this,_0x5b6e68[_0x38e4fd],_0x5b6e68,_0x38e4fd+0x1))return!0x0;}for(let _0x1e0ce7=0x0;_0x1e0ce7<_0x5b6e68['length'];_0x1e0ce7++){if(_0x11905d(this,_0x5b6e68[_0x1e0ce7],_0x4d8dcc,0x0))return!0x0;}return!0x1;function _0x11905d(_0x209597,_0x5eac68,_0x5606c9,_0x141393){for(let _0x32cb86=_0x141393;_0x32cb86<_0x5606c9[_0x4c52('0x132')];_0x32cb86++){const _0x3199e9=_0x5606c9[_0x32cb86];if(_0x3199e9[_0x4c52('0xa3')]!==_0x5eac68[_0x4c52('0xa3')]||_0x3199e9[_0x4c52('0xcb')]['id']!==_0x5eac68['author']['id']||_0x3199e9['subType']!==_0x5eac68[_0x4c52('0x37')])continue;const _0x20d200=_0x574ee6[_0x4c52('0xe4')](_0x5eac68),_0x24ce92=_0x2fd7ca[_0x4c52('0xe4')](_0x5eac68),_0x3b96e7=_0x2fd7ca[_0x4c52('0xe4')](_0x3199e9),_0x3aadc0=_0x5eac68[_0x4c52('0x68')]&&_0x5eac68[_0x4c52('0x68')][_0x4c52('0x132')],_0x59ceea=_0x3199e9[_0x4c52('0x68')]&&_0x3199e9[_0x4c52('0x68')][_0x4c52('0x132')];if(!_0x3aadc0&&_0x20d200(_0x3b96e7,_0x24ce92))return _0x209597['_joinSuggestions'](_0x3199e9,_0x5eac68),_0x2fd7ca[_0x4c52('0x64')](_0x5eac68),!0x0;if(!_0x59ceea&&_0x20d200(_0x24ce92,_0x3b96e7))return _0x209597[_0x4c52('0xb2')](_0x5eac68,_0x3199e9),_0x2fd7ca[_0x4c52('0x64')](_0x3199e9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x6f00e7,_0xe8d82){if(_0x6f00e7[_0x4c52('0x12b')])for(const _0x4b3751 of _0xe8d82[_0x4c52('0x4b')]())_0x6f00e7[_0x4c52('0x4f')](_0x4b3751);else{const _0x339621=_0xe8d82['getFirstRange']()['end'];this[_0x4c52('0xd7')](_0x6f00e7,this['_model'][_0x4c52('0x77')](_0x6f00e7[_0x4c52('0x66')]()[_0x4c52('0xdb')],_0x339621));}_0xe8d82[_0x4c52('0xd1')]();}}class Dt{constructor(_0x409507){this[_0x4c52('0xdf')]=_0x409507,this[_0x4c52('0x29')]=_0x409507['model'],this['_customCallbacks']=new Map(),this[_0x4c52('0x65')]=new Map(),this[_0x4c52('0x11f')]();}['buildSuggestion'](_0x27f68e,_0x2232a4,_0x2d115d,_0x264b54,_0x486786,_0x3b44ae){return new _0x24016f(this['_model'],{'type':_0x27f68e,'subType':_0x2232a4,'id':_0x2d115d,'author':_0x264b54,'creator':_0x264b54,'attributes':_0x486786,'onAttributesChange':_0x3b44ae,'onAccept':(..._0x4d3f09)=>this[_0x4c52('0xaf')](_0x27f68e,_0x2232a4,'accept')(..._0x4d3f09),'onDiscard':(..._0x17c646)=>this['getSuggestionCallback'](_0x27f68e,_0x2232a4,_0x4c52('0x103'))(..._0x17c646)});}[_0x4c52('0x127')](_0x40a14e,_0x3ca6c9,_0x3b4cb0,_0x51c3b8){const _0x10125a=_0x40a14e+':'+_0x3ca6c9+':'+_0x3b4cb0;this[_0x4c52('0x2a')][_0x4c52('0x36')](_0x10125a,_0x51c3b8);}[_0x4c52('0xaf')](_0xee8267,_0x2e4464,_0x50a0ef){const _0x494498=_0xee8267+':'+_0x2e4464+':'+_0x50a0ef;return this['_customCallbacks'][_0x4c52('0xe4')](_0x494498)||this[_0x4c52('0x65')][_0x4c52('0xe4')](_0xee8267+':'+_0x50a0ef);}[_0x4c52('0x11f')](){const _0x2a1799=()=>{},_0x408276=_0x418da5=>{_0x418da5['sort']((_0x2d7699,_0x54233f)=>_0x2d7699[_0x4c52('0xdb')][_0x4c52('0x15')](_0x54233f[_0x4c52('0xdb')])?0x1:-0x1),this[_0x4c52('0x29')]['change'](_0x4e76cf=>{for(const _0x302b62 of _0x418da5){let _0x2b2b18;_0x2b2b18=_0x302b62[_0x4c52('0x27')]['isAtEnd']&&_0x302b62[_0x4c52('0x27')][_0x4c52('0x98')]==_0x302b62['start']['nodeAfter']?_0x4e76cf[_0x4c52('0xf5')](_0x302b62[_0x4c52('0xdb')][_0x4c52('0x12a')],'on'):_0x4e76cf[_0x4c52('0xf5')](_0x302b62),this[_0x4c52('0x29')][_0x4c52('0x128')](_0x2b2b18,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59b627=(_0x520198,_0x266870)=>{this['_model'][_0x4c52('0x32')](_0xe1eb0a=>{const {commandName:_0x29d758,commandParams:_0x4e26e6=[]}=_0x266870,_0x1a4c3c=_0x520198[_0x4c52('0x115')](_0xcab3cb=>(_t(_0xcab3cb)&&(_0xcab3cb=this['_model'][_0x4c52('0x77')](_0xcab3cb[_0x4c52('0x27')])),_0xcab3cb))['filter'](_0xd6e229=>_0x4c52('0x53')!==_0xd6e229['root'][_0x4c52('0xa7')]);if(_0x1a4c3c[_0x4c52('0x132')]<0x1)return;const _0xc425b0=Array['from'](this[_0x4c52('0x29')][_0x4c52('0xba')][_0x4c52('0x6e')][_0x4c52('0x4b')]())[_0x4c52('0x115')](_0x3ad6d6=>_0x10252d[_0x4c52('0x89')](_0x3ad6d6));_0xe1eb0a[_0x4c52('0x13b')](_0x1a4c3c);for(const _0x10cea6 of this[_0x4c52('0xdf')][_0x4c52('0x24')][_0x4c52('0x24')]())_0x10cea6['refresh']();_0x4e26e6['push']({'forceDefaultExecution':!0x0}),this[_0x4c52('0xdf')][_0x4c52('0x43')](_0x29d758,..._0x4e26e6);const _0x7ff616=_0xc425b0[_0x4c52('0x49')](_0x440b05=>_0x4c52('0x53')!=_0x440b05[_0x4c52('0xe')][_0x4c52('0xa7')]);_0x7ff616[_0x4c52('0x132')]>0x0&&_0xe1eb0a[_0x4c52('0x13b')](_0x7ff616);for(const _0x3c9538 of _0xc425b0)_0x3c9538['detach']();});},_0xc3cd9a=(_0x3c6ec2,_0x421220)=>0x1==_0x3c6ec2['length']&&0x1==_0x421220[_0x4c52('0x132')]&&_0x3c6ec2[0x0][_0x4c52('0x27')][_0x4c52('0x1e')](_0x421220[0x0][_0x4c52('0xdb')]),_0x421166=(_0x2506e5,_0x3d383e,_0xf0da28,_0x3f3fe4)=>xt(_0x2506e5,_0x3d383e,_0xf0da28,_0x3f3fe4,this[_0x4c52('0x29')])?[_0x2506e5,_0x3d383e]:xt(_0x3d383e,_0x2506e5,_0x3f3fe4,_0xf0da28,this[_0x4c52('0x29')])?[_0x3d383e,_0x2506e5]:null;this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0xcd'),_0x2a1799),this[_0x4c52('0x65')]['set'](_0x4c52('0xa8'),_0x408276),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x1'),_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xbc'),_0x421166),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x8e'),_0x408276),this[_0x4c52('0x65')][_0x4c52('0x36')]('deletion:discard',_0x2a1799),this[_0x4c52('0x65')][_0x4c52('0x36')]('deletion:join',_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xef'),_0x421166),this['_defaultCallbacks'][_0x4c52('0x36')](_0x4c52('0x133'),_0x59b627),this[_0x4c52('0x65')][_0x4c52('0x36')]('formatInline:discard',_0x2a1799),this[_0x4c52('0x65')]['set']('formatInline:join',_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xc0'),_0x2a1799),this[_0x4c52('0x65')]['set'](_0x4c52('0x19'),_0x59b627),this['_defaultCallbacks'][_0x4c52('0x36')](_0x4c52('0x35'),_0x2a1799),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x7'),_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0x5e'),_0x2a1799);}}function Bt(_0x4c539a,_0x2a3b2f,_0x141fe7){for(const _0x28e36b of _0x2a3b2f[_0x4c52('0x98')][_0x4c52('0x44')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28e36b['root']==_0x28e36b)return!0x1;if(!_0x141fe7['containsItem'](_0x28e36b))return!0x1;if(_0x4c539a[_0x4c52('0x134')](_0x28e36b)||_0x4c539a[_0x4c52('0x39')](_0x28e36b))return!0x0;}return!0x1;}function _t(_0x2993ab){return _0x2993ab[_0x4c52('0x27')]['parent']==_0x2993ab[_0x4c52('0xdb')][_0x4c52('0x12a')]&&_0x2993ab[_0x4c52('0x27')][_0x4c52('0x11b')];}function Mt(_0x356790,_0x523409,_0x3f8619,_0x11bf19){const _0x22e91a=_0x17252d=>!_0x17252d[_0x4c52('0xb8')]['is'](_0x4c52('0x9d'))&&!_0x11bf19[_0x4c52('0x134')](_0x17252d[_0x4c52('0xb8')]),_0x18ef1e=_0x356790[_0x4c52('0xdb')]['getLastMatchingPosition'](_0x22e91a),_0x53dfed=_0x356790['end'][_0x4c52('0x42')](_0x22e91a,{'direction':_0x4c52('0xe6')});return(!_0x356790[_0x4c52('0xdb')][_0x4c52('0x1e')](_0x18ef1e)||!_0x356790[_0x4c52('0x27')][_0x4c52('0x1e')](_0x53dfed))&&(_0x18ef1e[_0x4c52('0x15')](_0x53dfed)?_0x3f8619['updateMarker'](_0x523409,{'range':_0x3f8619[_0x4c52('0x77')](_0x18ef1e,_0x53dfed)}):_0x3f8619[_0x4c52('0xf7')](_0x523409),!0x0);}function $t(_0x16a7eb){return _0x24249f(_0x16a7eb);}function Nt(_0xe689c2){const _0x4d6dc0=_0xe689c2['start'][_0x4c52('0x12a')];return _0x4d6dc0&&_0x4d6dc0['is'](_0x4c52('0xb'));}function Rt(_0x190991,_0x40538c){const _0x4ec045=_0x40538c[_0x4c52('0x3b')][_0x4c52('0x134')](_0x190991)||_0x40538c[_0x4c52('0x3b')][_0x4c52('0xb1')](_0x190991);return _0x40538c[_0x4c52('0x77')](_0x40538c[_0x4c52('0xfb')](_0x190991,'before'),_0x4ec045?_0x40538c['createPositionAfter'](_0x190991):_0x40538c['createPositionAt'](_0x190991,_0x4c52('0x27')));}function xt(_0x177de4,_0x374c90,_0x155e04,_0x39d3c8,_0xbdae1e){if(_0x155e04[_0x4c52('0x27')][_0x4c52('0x1e')](_0x39d3c8['start']))return!0x0;if(_0x177de4[_0x4c52('0xa3')]!=_0x374c90[_0x4c52('0xa3')])return!0x1;if(!_0x155e04[_0x4c52('0x27')][_0x4c52('0x31')](_0x39d3c8[_0x4c52('0xdb')]))return!0x1;const _0x31bee4=_0xbdae1e['createRange'](_0x155e04[_0x4c52('0x27')],_0x39d3c8[_0x4c52('0xdb')])['getWalker']();for(const _0x445a3e of _0x31bee4)if([_0x4c52('0x5d'),_0x4c52('0x71')][_0x4c52('0xc8')](_0x445a3e[_0x4c52('0xa3')])&&_0xbdae1e[_0x4c52('0x3b')][_0x4c52('0x39')](_0x445a3e[_0x4c52('0xb8')]))return!0x1;return!0x0;}
23
+ const _0x296c=['low','has','acceptSelectedSuggestions','_splitMarkerName','data-suggestion','skipNestingCheck','containsPosition','_addSuggestionMarker','insertion:chain','from','_mergeNestedSuggestions','clear','parent','markDeletion','type','formatBlock:discard','authoredAt','_createSuggestion','track-changes-command-not-found','substr','_updateSuggestionData','commandName','mapper','addSuggestion','_joinSuggestions','_breakSuggestionMarker','addCommentThread','newRange','error-saving-suggestion-data-suggestion-discarded','open','activeMarkers','author','update:suggestion','buildSuggestion','subType','removeMarker:suggestion:formatBlock','requires','PENDING_ACTION_SUGGESTION','previous','isSelectable','createPositionAt','selection','markInsertion','suggestion','resolve','elementToElement','getFirstRange','consumable','consume','stopListening','forward','rethrowUnexpectedError','updateSuggestion','_getSuggestionData','high','_enabledCommands','toViewElement','pluginName','delete','Users','hasComments','addRange','ck-suggestion-marker-formatBlock','@external','some','isMultiRange','set','isNextTo','creator','getAllAdjacentSuggestions','stop','chain','_removeSuggestion','element','detach','isAtEnd','_adapter','map','after','highest','root','writer','isOwn','start','_handleNewSuggestionMarker','markBlockFormat','model','join','markerToData','track-changes-adapter-missing-getsuggestion','documentSelection','dataToMarker','add','fetchCommentThread','isExternal','markerReady','formatInline:join','trackChanges.mergeNestedSuggestions','getRange','_descriptionFactory','suggestionUnloaded','acceptSuggestion','values','updateMarker','removeAttribute','getAttribute','_refreshSuggestionsChain','then','isRemovable','document','getRanges','removeClass','getMultiRangeId','insertion:','isBefore','createdAt','getAncestors','_trackFormatChanges','_suggestions','addComment','formatGroupId','splice','formatInline:accept','_joinWithAdjacentSuggestions','plugins','formatInline:','_addThreadToSuggestion','track-changes-suggestion-not-found','formatInline:chain','init','containsRange','applyOperation','options','isLocal','isEqual','length','_getExternalAuthor','getCustomProperty','addMarker:suggestion','name','listenTo','bindElementToMarker','_model','getSuggestion','createPositionBefore','markerName','change:activeMarkers','push','howMany','commands','isObject','sort','markers','notReady','split','_suggestionState','change','getWalker','fire','addSuggestionData','_cutOutSuggestionMarker','item','getChanges','get','adapter','getLastMatchingPosition','targetPosition','$graveyard','oldRange','createRange','suggestionLoaded','_customCallbacks','discardSelectedSuggestions','formatBlock:','$marker','enableCommand','getItems','markMultiRangeDeletion','fromRange','position','upcast','setSelection','elementStart','multi','suggestionChanged','PendingActions','isInContent','getUser','always','hasSuggestion','unbind','isTouching','insertion:accept','ck-suggestion-marker-','getShiftedBy','range','_saved','backward','isIntersectingWithRange','deletion:','addMarker:suggestion:formatBlock','schema','reconvertMarker','setAttribute','nodeBefore','originalSuggestionId','_suggestionFactory','authorName','_defaultCallbacks','createSelection','_isForcedDefaultExecutionBlock','discardAllSuggestions','getMarkers','every','marker-count','conversion','insert','addMarkerName','normal','discard','$textProxy','trackChanges.trackFormatChanges','fromCharCode','dataReady','multipleBlocks','track-changes-suggestion-data-mismatch','elementEnd','removeMarkers','size','registerCustomCallback','formatInline:discard','define','accept','rootName','next','getCommentThread','markInlineFormat','_editor','getChangedMarkers','getNearestSelectionRange','markMultiRangeBlockFormat','getSuggestions','_rangeIsInLocalUserInsertion','isAtStart','insertion:join','never','formatBlock','end','dataDowncast','track-changes-user-not-found','isInsideObject','formatInline','forceDefaultExecution','ck-suggestion-marker','differ','locale','editingDowncast','isCollapsed','insertion','remove','suggestion-type','containsRangeInObject','external:','execute','_commentsRepository','formatBlock:join','ready','data','markerToHighlight','before','_setSuggestionData','removeMarker','deletion:discard','trackChangesCommand','markerNameToElements','filter','moveTargetPosition','enableReadOnlyMode','commentThread','_onDiscard','enqueueChange','removed','clone','config','_checkSuggestionCorrectness','toJSON','batch','value','group','_registerDefaultCallbacks','getFirstMarker','change:_saved','containerElement','head','isLimit','getDifference','removeComment','unbindElementFromMarkerName','deletion:join','return','getSuggestionCallback','change:data','isAfter','showSuggestionHighlights','discardSuggestion','includes','deletion','addClass','getIntersection','acceptAllSuggestions','isBlock','CommentsRepository','for','refresh','editor','isUndo','trackChanges','ck-suggestion-marker--active','formatBlock:accept','_findSuggestions','_setSuggestionRange','setTo','nodeAfter','suggestion:','attributes'];(function(_0x2a8ce0,_0x296c31){const _0x4eab43=function(_0x41725f){while(--_0x41725f){_0x2a8ce0['push'](_0x2a8ce0['shift']());}};_0x4eab43(++_0x296c31);}(_0x296c,0x116));const _0x4eab=function(_0x2a8ce0,_0x296c31){_0x2a8ce0=_0x2a8ce0-0x0;let _0x4eab43=_0x296c[_0x2a8ce0];return _0x4eab43;};import{Plugin as _0x73f3ed,PendingActions as _0xcce9ac}from'ckeditor5/src/core';import{LiveRange as _0x146086}from'ckeditor5/src/engine';import{CKEditorError as _0x3e7e96,uid as _0x36bda4,priorities as _0xc33ee5,logWarning as _0x823a6c}from'ckeditor5/src/utils';import{toWidget as _0x15d8fb}from'ckeditor5/src/widget';import{Users as _0x567323,hashObject as _0x495d88}from'ckeditor5-collaboration/src/collaboration-core';import _0x84a2ed from'./commands/trackchangescommand';import _0x12c621 from'./commands/acceptsuggestioncommand';import _0x1e4292 from'./commands/discardsuggestioncommand';import _0x2bead6 from'./commands/executeonallsuggestionscommand';import _0x3c8877 from'./commands/executeonselectedsuggestionscommand';import _0x12f171 from'./suggestion';import _0x5e9195 from'./suggestiondescriptionfactory';import _0xcd1cb9 from'./integrations/alignment';import _0x3878d2 from'./integrations/basicstyles';import _0x5229f8 from'./integrations/blockquote';import _0x1f005b from'./integrations/ckbox';import _0x58146a from'./integrations/codeblock';import _0x99a178 from'./integrations/comments';import _0x13b0a6 from'./integrations/deletecommand';import _0x4bea34 from'./integrations/documentlist';import _0x5487d5 from'./integrations/entercommand';import _0x122c26 from'./integrations/findandreplace';import _0x170c8d from'./integrations/font';import _0x1d2257 from'./integrations/formatpainter';import _0x3fa81b from'./integrations/heading';import _0x424b8c from'./integrations/highlight';import _0x698d6d from'./integrations/horizontalline';import _0xfcb537 from'./integrations/htmlembed';import _0x5ad4f1 from'./integrations/image';import _0x36005b from'./integrations/imagereplace';import _0x25cd36 from'./integrations/importword';import _0x3adc9c from'./integrations/indent';import _0x11b15e from'./integrations/inputcommand';import _0x2bccff from'./integrations/link';import _0x2510fb from'./integrations/list';import _0x5df63d from'./integrations/listproperties';import _0x497fe7 from'./integrations/mediaembed';import _0x17ecfb from'./integrations/mention';import _0xc37888 from'./integrations/pagebreak';import _0x4343f2 from'./integrations/paragraph';import _0x24bcd9 from'./integrations/removeformat';import _0x5c3cd8 from'./integrations/restrictededitingmode';import _0x1552cf from'./integrations/shiftentercommand';import _0x179b80 from'./integrations/standardeditingmode';import _0x49c623 from'./integrations/style';import _0x2e90da from'./integrations/table';import _0x1ccdc4 from'./integrations/tablemergesplit';import _0x2d6a9b from'./integrations/tableheadings';import _0x1ad73d from'./integrations/tableclipboard';import _0x47c265 from'./integrations/tablecolumnresize';import _0x38b7cd from'./integrations/template';import _0x1bfe0b from'./integrations/tableofcontents';import _0x184141 from'./integrations/title';import _0x500f61 from'./integrations/undo';import{getTranslation as _0x4a2b42}from'./utils/common-translations';import _0x4489bf from'./integrations/tablecaption';import _0xd691e4 from'./integrations/documentlistproperties';import _0x5b4ece from'./integrations/tableproperties';export default class p extends _0x73f3ed{static get[_0x4eab('0x53')](){return[_0x4eab('0x21'),_0x567323,_0xcce9ac,_0xcd1cb9,_0x3878d2,_0x5229f8,_0x1f005b,_0x58146a,_0x99a178,_0x13b0a6,_0x4bea34,_0xd691e4,_0x5487d5,_0x122c26,_0x170c8d,_0x1d2257,_0x3fa81b,_0x424b8c,_0x698d6d,_0xfcb537,_0x5ad4f1,_0x36005b,_0x25cd36,_0x3adc9c,_0x11b15e,_0x2bccff,_0x2510fb,_0x5df63d,_0x497fe7,_0x17ecfb,_0xc37888,_0x4343f2,_0x24bcd9,_0x5c3cd8,_0x1552cf,_0x179b80,_0x49c623,_0x2e90da,_0x1ccdc4,_0x2d6a9b,_0x4489bf,_0x1ad73d,_0x47c265,_0x1bfe0b,_0x5b4ece,_0x38b7cd,_0x184141,_0x500f61];}static get[_0x4eab('0x68')](){return'TrackChangesEditing';}constructor(_0x32ffc1){function _0x74587c(_0x3dcb26){return _0x3dcb26[_0x4eab('0x7c')](_0x10dad0=>String[_0x4eab('0x10d')](_0x10dad0))['join']('');}super(_0x32ffc1),this[_0x4eab('0x71')](_0x4eab('0x4d'),[]),this['on'](_0x4eab('0xc1'),(_0x1e55cd,_0x51d6e8,_0x1b1bb4,_0x52d0a9)=>{this['_model'][_0x4eab('0xcb')](()=>{for(const _0x1c253d of[..._0x52d0a9,..._0x1b1bb4])this['_model'][_0x4eab('0xc7')][_0x4eab('0x30')](_0x1c253d)&&_0x32ffc1['editing'][_0x4eab('0xf9')](_0x1c253d);});}),this[_0x4eab('0x92')]=new _0x5e9195(this[_0x4eab('0x24')]['model'][_0x4eab('0xf8')],this[_0x4eab('0x24')][_0x4eab('0x12e')]),this[_0x4eab('0x7b')]=null,this[_0x4eab('0xfd')]=new Dt(this['editor']),this[_0x4eab('0xa5')]=new Map(),this[_0x4eab('0x137')]=_0x32ffc1[_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x21')),this[_0x4eab('0x66')]=new Set(),this[_0x4eab('0xbd')]=this[_0x4eab('0x24')][_0x4eab('0x85')],this['_suggestionState']=new WeakMap(),this[_0x4eab('0x101')]=!0x1,_0x32ffc1[_0x4eab('0x5')][_0x4eab('0x116')](_0x4eab('0x10c'),'default'),this['_trackFormatChanges']=_0x32ffc1[_0x4eab('0x5')]['get'](_0x4eab('0x10c')),_0x32ffc1['config']['define'](_0x4eab('0x90'),!0x0),this['_mergeNestedSuggestions']=_0x32ffc1['config'][_0x4eab('0xd2')](_0x4eab('0x90')),this[_0x4eab('0x140')]=new _0x84a2ed(_0x32ffc1,this[_0x4eab('0x66')]),this[_0x74587c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x74587c([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x38]);}[_0x4eab('0xb0')](){const _0x56af72=this[_0x4eab('0x24')];_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x12f'))[_0x4eab('0x13b')]({'model':_0x4eab('0x5a'),'view':_0x5c535e=>{const {id:_0x2f63f6,type:_0x1839bd}=this['_splitMarkerName'](_0x5c535e['markerName']),_0x284b4a=[_0x4eab('0x12c'),_0x4eab('0xf0')+_0x1839bd];let _0x449f8e=0xbb8;return this[_0x4eab('0x4d')][_0x4eab('0x1b')](_0x5c535e[_0x4eab('0xc0')])&&(_0x284b4a[_0x4eab('0xc2')](_0x4eab('0x27')),_0x449f8e=0xbc2),_0x4eab('0x1c')==_0x1839bd&&(_0x449f8e+=0x5),{'classes':_0x284b4a,'attributes':{'data-suggestion':_0x2f63f6},'priority':_0x449f8e};}}),_0x56af72['conversion'][_0x4eab('0x22')]('dataDowncast')[_0x4eab('0x8b')](_0x55c73d=>{_0x55c73d['on'](_0x4eab('0xb9'),(_0x1ce795,_0xbff897,_0x4fe16e)=>{if(!_0x4fe16e[_0x4eab('0xb3')][_0x4eab('0x19')])return;const _0x5d492a=_0xbff897[_0x4eab('0xd0')];if(!_0x5d492a)return;const _0x33aa71=_0x4fe16e[_0x4eab('0x45')][_0x4eab('0x67')](_0x5d492a);_0x56af72['model'][_0x4eab('0xf8')][_0x4eab('0xc5')](_0x5d492a)&&_0x33aa71&&!_0x33aa71[_0x4eab('0xb8')]('widget')&&_0x33aa71['is'](_0x4eab('0xe'))&&_0x15d8fb(_0x33aa71,_0x4fe16e['writer']);},{'priority':_0x4eab('0x65')});}),_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x127'))[_0x4eab('0x13b')]({'model':_0x4eab('0x5a'),'view':(_0xa21116,_0x49a517)=>{if(!_0x49a517['options'][_0x4eab('0x19')])return null;const {type:_0x450139}=this[_0x4eab('0x32')](_0xa21116['markerName']);return{'classes':['ck-suggestion-marker',_0x4eab('0xf0')+_0x450139],'priority':0xbb8};}});const _0x149a96=({showActiveMarkers:_0x2774b5=!0x0}={})=>(_0x194bc2,_0x274b9e,_0x2b4bb2)=>{if(!_0x274b9e[_0x4eab('0xd0')])return;if(_0x274b9e[_0x4eab('0xd0')]['is'](_0x4eab('0x58')))return void _0x2b4bb2[_0x4eab('0x5e')][_0x4eab('0x5f')](_0x274b9e[_0x4eab('0xd0')],_0x194bc2[_0x4eab('0xba')]);const _0x36cc12=_0x2b4bb2['mapper'][_0x4eab('0x67')](_0x274b9e['item']);if(!(_0x274b9e[_0x4eab('0xd0')]['is']('element')&&_0x56af72[_0x4eab('0x85')]['schema'][_0x4eab('0x20')](_0x274b9e['item'])&&!_0x36cc12[_0x4eab('0xb8')]('addHighlight')))return;const {id:_0x5b712e}=this[_0x4eab('0x32')](_0x274b9e[_0x4eab('0xc0')]);_0x2b4bb2['writer'][_0x4eab('0x1d')](['ck-suggestion-marker',_0x4eab('0x6d')],_0x36cc12),_0x2b4bb2[_0x4eab('0x80')][_0x4eab('0xfa')](_0x4eab('0x33'),_0x5b712e,_0x36cc12),_0x2b4bb2[_0x4eab('0x45')][_0x4eab('0xbc')](_0x36cc12,_0x274b9e[_0x4eab('0xc0')]),_0x2774b5&&(this['activeMarkers'][_0x4eab('0x1b')](_0x274b9e[_0x4eab('0xc0')])?_0x2b4bb2[_0x4eab('0x80')][_0x4eab('0x1d')]('ck-suggestion-marker--active',_0x36cc12):_0x2b4bb2['writer'][_0x4eab('0x9e')]('ck-suggestion-marker--active',_0x36cc12));for(const _0x4b420b of _0x56af72['model']['createRangeIn'](_0x274b9e[_0x4eab('0xd0')])[_0x4eab('0xdf')]())_0x2b4bb2[_0x4eab('0x5e')][_0x4eab('0x5f')](_0x4b420b,_0x194bc2['name']);_0x2b4bb2[_0x4eab('0x5e')][_0x4eab('0x5f')](_0x274b9e[_0x4eab('0xd0')],_0x194bc2['name']);};_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x127'))['add'](_0x526394=>{_0x526394['on'](_0x4eab('0xf7'),(_0x42bc55,_0x37171f,_0x1cd290)=>{_0x1cd290[_0x4eab('0xb3')][_0x4eab('0x19')]&&_0x149a96({'showActiveMarkers':!0x1})(_0x42bc55,_0x37171f,_0x1cd290);},{'priority':_0x4eab('0x7e')});}),_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x127'))[_0x4eab('0x87')]({'model':_0x4eab('0x5a'),'view':(_0x9047b5,_0x47c67f)=>_0x47c67f['options'][_0x4eab('0x19')]?null:{'group':_0x4eab('0x5a'),'name':_0x9047b5[_0x4eab('0x42')](0xb)}}),_0x56af72['conversion'][_0x4eab('0x22')]('upcast')[_0x4eab('0x5c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e9a65,{writer:_0x2dda1f})=>{let _0x2a2b9d=_0x4eab('0x2d')+_0x2e9a65['getAttribute'](_0x4eab('0x133'))+':'+_0x2e9a65['getAttribute']('id');return _0x2e9a65[_0x4eab('0x98')](_0x4eab('0x105'))&&(_0x2a2b9d+=':'+_0x2e9a65[_0x4eab('0x98')](_0x4eab('0x105'))),_0x2dda1f['createElement'](_0x4eab('0xdd'),{'data-name':_0x2a2b9d});}}),_0x56af72['conversion']['for'](_0x4eab('0xe3'))[_0x4eab('0x8a')]({'view':_0x4eab('0x5a')}),_0x56af72[_0x4eab('0x106')][_0x4eab('0x22')](_0x4eab('0x12f'))[_0x4eab('0x8b')](_0x48d3aa=>{_0x48d3aa['on'](_0x4eab('0xf7'),_0x149a96(),{'priority':_0x4eab('0x65')});}),_0x56af72[_0x4eab('0x106')]['for'](_0x4eab('0x12f'))[_0x4eab('0x8b')](_0x309af7=>{_0x309af7['on'](_0x4eab('0x52'),(_0x22c3ba,_0x191736,_0x397347)=>{const _0x1c8f8d=_0x397347[_0x4eab('0x45')][_0x4eab('0x141')](_0x191736['markerName']);if(_0x1c8f8d)for(const _0x2408cd of _0x1c8f8d)_0x2408cd[_0x4eab('0xb8')]('addHighlight')||(_0x397347['writer'][_0x4eab('0x9e')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x4eab('0x27')],_0x2408cd),_0x397347[_0x4eab('0x80')][_0x4eab('0x97')]('data-suggestion',_0x2408cd),_0x397347[_0x4eab('0x45')][_0x4eab('0x13')](_0x2408cd,_0x191736[_0x4eab('0xc0')]));},{'priority':_0x4eab('0x65')});}),_0x56af72['model'][_0x4eab('0x9c')]['registerPostFixer'](_0x2f43bf=>{let _0x7c45f=!0x1;const _0x34a429=Array[_0x4eab('0x38')](_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')]['differ'][_0x4eab('0x11d')]()),_0x563c25=new Set();for(const {name:_0x2f0451,data:_0x56351d}of _0x34a429){const {group:_0x4d1031,type:_0x410241,id:_0x3ee907}=this['_splitMarkerName'](_0x2f0451);if(_0x4eab('0x5a')!==_0x4d1031)continue;const _0xc607b5=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x3ee907);if(null!=_0x56351d[_0x4eab('0x4a')]){'formatInline'==_0x410241&&(_0x7c45f=_0x7c45f||Mt(_0x56351d[_0x4eab('0x4a')],_0x2f0451,_0x2f43bf,_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')]));if(_0x56351d['newRange'][_0x4eab('0x130')]||_0x4eab('0xd6')==_0x56351d['newRange'][_0x4eab('0x7f')][_0x4eab('0x118')]||'formatBlock'==_0x410241&&!Nt(_0x56351d['newRange'])||_0x4eab('0x1c')==_0x410241&&!(!_t(_0x55d47f=_0x56351d[_0x4eab('0x4a')])&&!function(_0x4f3b20){return _0x4f3b20[_0x4eab('0x82')][_0x4eab('0x3b')]==_0x4f3b20[_0x4eab('0x126')][_0x4eab('0xfb')]&&_0x4f3b20[_0x4eab('0x82')][_0x4eab('0x7a')];}(_0x55d47f)))_0x2f43bf[_0x4eab('0x13e')](_0x2f0451),_0x7c45f=!0x0;else{if(!_0xc607b5||!_0xc607b5[_0x4eab('0xe9')])continue;_0x563c25[_0x4eab('0x8b')](_0xc607b5);}}}var _0x55d47f;return _0x563c25['size']>0x0&&(_0x7c45f=!!this[_0x4eab('0xaa')](_0x563c25)||_0x7c45f),_0x7c45f;}),_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')]['registerPostFixer'](_0x8d6ddd=>{let _0x7e9660=!0x1;for(const _0x1be252 of _0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')][_0x4eab('0x12d')][_0x4eab('0xd1')]()){if(_0x4eab('0x107')!=_0x1be252[_0x4eab('0x3d')])continue;const _0x246899=_0x1be252[_0x4eab('0xe2')]['getShiftedBy'](_0x1be252[_0x4eab('0xb6')]);if(_0x246899[_0x4eab('0x7a')])for(const _0x330d0f of this[_0x4eab('0xa5')][_0x4eab('0x95')]()){if(_0x330d0f['isMultiRange']||!_0x330d0f[_0x4eab('0xe9')])continue;if(_0x4eab('0x125')!=_0x330d0f[_0x4eab('0x3d')])continue;const _0x23ef99=_0x330d0f[_0x4eab('0x5d')]();if(_0x23ef99[_0x4eab('0x82')]['parent']!=_0x23ef99[_0x4eab('0x126')]['parent']&&_0x23ef99[_0x4eab('0x126')][_0x4eab('0xb5')](_0x1be252[_0x4eab('0xe2')])){const _0x5709ab=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0x23ef99[_0x4eab('0x82')],_0x246899);_0x8d6ddd[_0x4eab('0x96')](_0x330d0f[_0x4eab('0xc')](),{'range':_0x5709ab}),_0x7e9660=!0x0;}}}return _0x7e9660;}),_0x56af72[_0x4eab('0x85')]['markers']['on'](_0x4eab('0x4f'),(_0x18c724,_0x5518af,_0x32e190)=>{if(null==_0x32e190){const {id:_0x297d8a}=this[_0x4eab('0x32')](_0x5518af[_0x4eab('0xba')]),_0x4762be=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x297d8a);_0x4762be&&_0x4762be[_0x4eab('0x108')](_0x5518af[_0x4eab('0xba')]);}}),_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')]['on'](_0x4eab('0x17'),()=>{const _0x598916=Array['from'](_0x56af72[_0x4eab('0x85')][_0x4eab('0x9c')][_0x4eab('0x12d')][_0x4eab('0x11d')]())['filter'](_0x4b8a75=>'suggestion'===this[_0x4eab('0x32')](_0x4b8a75[_0x4eab('0xba')])[_0x4eab('0xa')]);if(0x0===_0x598916[_0x4eab('0xb6')])return;_0x598916[_0x4eab('0xc6')]((_0x5f2d74,_0x724914)=>{const _0xcf003d=_0x5f2d74['data'][_0x4eab('0xd7')],_0x1a7fa3=_0x724914['data'][_0x4eab('0xd7')];return null===_0xcf003d&&null===_0x1a7fa3?0x0:null===_0xcf003d&&null!==_0x1a7fa3?-0x1:null!==_0xcf003d&&null===_0x1a7fa3?0x1:_0xcf003d[_0x4eab('0x82')][_0x4eab('0xa1')](_0x1a7fa3['start'])?-0x1:0x1;});const _0x32ea4b=new Set(),_0x4759cc=new Set();for(const {name:_0x703210,data:_0x564904}of _0x598916){const {id:_0x630000}=this[_0x4eab('0x32')](_0x703210);if(null===_0x564904[_0x4eab('0xd7')]){const _0x1a93bc=this[_0x4eab('0x83')](_0x703210);_0x4759cc['add'](_0x1a93bc);}else{const _0x12cdd7=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x630000);null!==_0x564904[_0x4eab('0x4a')]||_0x12cdd7['isInContent']?(_0x32ea4b[_0x4eab('0x8b')](_0x12cdd7[_0x4eab('0xf')]),_0x4759cc[_0x4eab('0x8b')](_0x12cdd7)):this[_0x4eab('0x77')](_0x12cdd7);}}_0x4759cc[_0x4eab('0x113')]>0x0&&this[_0x4eab('0x99')](_0x4759cc);for(const _0x2c2044 of _0x32ea4b)this['fire'](_0x4eab('0xe7'),_0x2c2044);}),_0x56af72['model']['on'](_0x4eab('0xb2'),(_0x599cd4,_0x4205ce)=>{const _0x3dca8a=_0x4205ce[0x0];if(!this['_suggestions']['size'])return;if(!_0x3dca8a['isDocumentOperation'])return;if(_0x3dca8a['batch'][_0x4eab('0x25')]||!_0x3dca8a[_0x4eab('0x8')][_0x4eab('0xb4')])return;let _0x5eaff9,_0x3df5bc;switch(_0x3dca8a[_0x4eab('0x3d')]){case _0x4eab('0x107'):_0x5eaff9=_0x56af72[_0x4eab('0x85')]['createPositionAt'](_0x3dca8a[_0x4eab('0xe2')]),_0x3df5bc=_0x5eaff9[_0x4eab('0xf1')](_0x3dca8a[_0x4eab('0xc3')]);break;case _0x4eab('0xc9'):_0x5eaff9=_0x56af72['model']['createPositionAt'](_0x3dca8a['splitPosition']),_0x3df5bc=_0x56af72[_0x4eab('0x85')][_0x4eab('0x57')](_0x3dca8a[_0x4eab('0x143')]);break;case'move':_0x5eaff9=_0x56af72[_0x4eab('0x85')][_0x4eab('0x57')](_0x3dca8a[_0x4eab('0xd5')]),_0x3df5bc=_0x5eaff9['getShiftedBy'](_0x3dca8a['howMany']);break;default:return;}const _0x28ae32=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0x5eaff9,_0x3df5bc);_0x56af72[_0x4eab('0x85')][_0x4eab('0xcb')](()=>{for(const {suggestion:_0x28aa88,meta:_0x10fb9f}of this[_0x4eab('0x29')](_0x28ae32)){if(_0x28aa88['isMultiRange'])continue;if(_0x4eab('0x12a')==_0x28aa88[_0x4eab('0x3d')])continue;const _0x1e506e=_0x28aa88[_0x4eab('0x13a')]&&_0x28aa88[_0x4eab('0x13a')][_0x4eab('0x10f')];(_0x4eab('0x125')!=_0x28aa88[_0x4eab('0x3d')]||'split'==_0x3dca8a['type']&&!_0x1e506e)&&(_0x10fb9f[_0x4eab('0x134')]||'insertion'==_0x28aa88[_0x4eab('0x3d')]&&_0x10fb9f[_0x4eab('0x81')]||_0x28aa88[_0x4eab('0x5d')]()[_0x4eab('0xb1')](_0x28ae32)&&this[_0x4eab('0x48')](_0x28aa88,_0x5eaff9,_0x3df5bc));}});},{'priority':'lowest'}),_0x56af72[_0x4eab('0x85')]['on']('deleteContent',(_0x37bef1,_0x13cba9)=>{const _0x43d948=_0x13cba9[0x0],_0x2949c1=_0x13cba9[0x1];if(_0x2949c1&&_0x2949c1[_0x4eab('0x12b')])return;if(this[_0x4eab('0x101')])return;if(!this[_0x4eab('0x140')]['value'])return;if(_0x43d948['isCollapsed'])return;const _0x51ea6d=_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')],{start:_0x416b3a,end:_0x22f2b3}=_0x43d948[_0x4eab('0x5d')](),_0xfb5bd0=_0x416b3a[_0x4eab('0x2c')]&&_0x51ea6d[_0x4eab('0x10')](_0x416b3a[_0x4eab('0x2c')])?null:_0x51ea6d[_0x4eab('0x11e')](_0x416b3a,_0x4eab('0x61')),_0x448cd1=_0x22f2b3['nodeBefore']&&_0x51ea6d['isLimit'](_0x22f2b3[_0x4eab('0xfb')])?null:_0x51ea6d[_0x4eab('0x11e')](_0x22f2b3,_0x4eab('0xf4')),_0x490596=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0xfb5bd0?_0xfb5bd0[_0x4eab('0x82')]:_0x416b3a,_0x448cd1?_0x448cd1[_0x4eab('0x126')]:_0x22f2b3);_0x56af72['model'][_0x4eab('0xcb')](_0x354859=>{this[_0x4eab('0x3c')](_0x490596);const _0x498123=_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')]['getNearestSelectionRange'](_0x490596[_0x4eab('0x82')]);_0x43d948['is'](_0x4eab('0x89'))?_0x354859[_0x4eab('0xe4')](_0x498123):_0x43d948[_0x4eab('0x2b')](_0x498123);}),_0x37bef1[_0x4eab('0x75')]();},{'priority':_0xc33ee5[_0x4eab('0x109')]+0xa}),_0x56af72['model']['on']('insertContent',(_0x4a18c8,_0x37eb73)=>{const _0x24e596=_0x37eb73[_0x37eb73[_0x4eab('0xb6')]-0x1];_0x24e596&&_0x24e596[_0x4eab('0x12b')]||this['_isForcedDefaultExecutionBlock']||this[_0x4eab('0x140')][_0x4eab('0x9')]&&(_0x56af72[_0x4eab('0x85')][_0x4eab('0xcb')](()=>{let _0x49ef30=_0x56af72[_0x4eab('0x85')]['insertContent'](_0x37eb73[0x0],_0x37eb73[0x1],_0x37eb73[0x2],{'forceDefaultExecution':!0x0});if(!_0x49ef30)return;_0x4a18c8[_0x4eab('0x15')]=_0x49ef30[_0x4eab('0x4')]();const _0x31ca1d=_0x49ef30[_0x4eab('0x126')][_0x4eab('0xfb')],_0x6320c4=_0x56af72[_0x4eab('0x85')][_0x4eab('0xf8')];_0x31ca1d&&_0x6320c4[_0x4eab('0x20')](_0x31ca1d)&&!_0x6320c4[_0x4eab('0xc5')](_0x31ca1d)&&(_0x49ef30=_0x56af72[_0x4eab('0x85')][_0x4eab('0xd8')](_0x49ef30[_0x4eab('0x82')],_0x56af72[_0x4eab('0x85')][_0x4eab('0x57')](_0x31ca1d,_0x4eab('0x126')))),this[_0x4eab('0x59')](_0x49ef30);}),_0x4a18c8[_0x4eab('0x75')]());},{'priority':'high'}),this['editor'][_0x4eab('0xc4')][_0x4eab('0x8b')](_0x4eab('0x26'),this[_0x4eab('0x140')]),this[_0x4eab('0xde')](_0x4eab('0x26'));const _0x5af155=new _0x12c621(_0x56af72,this[_0x4eab('0xa5')]);_0x56af72['commands'][_0x4eab('0x8b')](_0x4eab('0x94'),_0x5af155),this[_0x4eab('0xde')](_0x4eab('0x94'));const _0x5ee632=new _0x1e4292(_0x56af72,this[_0x4eab('0xa5')]);_0x56af72[_0x4eab('0xc4')]['add'](_0x4eab('0x1a'),_0x5ee632),this[_0x4eab('0xde')]('discardSuggestion'),_0x56af72[_0x4eab('0xc4')]['add'](_0x4eab('0x1f'),new _0x2bead6(_0x56af72,_0x5af155,this[_0x4eab('0xa5')])),this[_0x4eab('0xde')](_0x4eab('0x1f')),_0x56af72[_0x4eab('0xc4')][_0x4eab('0x8b')](_0x4eab('0x102'),new _0x2bead6(_0x56af72,_0x5ee632,this[_0x4eab('0xa5')])),this[_0x4eab('0xde')](_0x4eab('0x102')),_0x56af72[_0x4eab('0xc4')][_0x4eab('0x8b')](_0x4eab('0x31'),new _0x3c8877(_0x56af72,_0x5af155,this[_0x4eab('0xa5')])),this['enableCommand'](_0x4eab('0x31')),_0x56af72[_0x4eab('0xc4')]['add']('discardSelectedSuggestions',new _0x3c8877(_0x56af72,_0x5ee632,this['_suggestions'])),this['enableCommand'](_0x4eab('0xdb'));const _0x35e44a=_0x56af72[_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x21'));this[_0x4eab('0xbb')](_0x35e44a,_0x4eab('0xa6'),(_0x5650ff,{threadId:_0x1888ec})=>{const _0x5c9872=this['_suggestions'][_0x4eab('0xd2')](_0x1888ec);_0x5c9872&&_0x5c9872[_0x4eab('0x0')]&&0x1===_0x5c9872[_0x4eab('0x0')][_0x4eab('0xb6')]&&this[_0x4eab('0x43')](_0x1888ec,{'hasComments':!0x0});},{'priority':_0x4eab('0x2f')}),this[_0x4eab('0xbb')](_0x35e44a,_0x4eab('0x12'),(_0x116c59,{threadId:_0x3aad0b})=>{const _0x230282=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x3aad0b);_0x230282&&_0x230282[_0x4eab('0x0')]&&!_0x230282[_0x4eab('0x0')][_0x4eab('0xb6')]&&this[_0x4eab('0x43')](_0x3aad0b,{'hasComments':!0x1});},{'priority':_0x4eab('0x2f')});}set[_0x4eab('0xd3')](_0x1c447c){if(this['_adapter'])throw new _0x3e7e96('track-changes-adapter-already-set',this);this[_0x4eab('0x7b')]=_0x1c447c;}get[_0x4eab('0xd3')](){return this[_0x4eab('0x7b')];}[_0x4eab('0x120')]({skipNotAttached:_0x372024=!0x1,toJSON:_0x382c4d=!0x1}={}){const _0x54e794=[];for(const _0x5064de of this[_0x4eab('0xa5')][_0x4eab('0x95')]())_0x372024&&!_0x5064de[_0x4eab('0xe9')]||_0x54e794[_0x4eab('0xc2')](_0x5064de);return _0x382c4d?_0x54e794[_0x4eab('0x7c')](_0x3e3eec=>_0x3e3eec[_0x4eab('0x7')]()):_0x54e794;}[_0x4eab('0xbe')](_0x4578ab){const _0xbd5fd7=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x4578ab);if(!_0xbd5fd7)throw new _0x3e7e96(_0x4eab('0xae'),this);return _0xbd5fd7;}[_0x4eab('0xec')](_0xd4587a){return this[_0x4eab('0xa5')][_0x4eab('0x30')](_0xd4587a);}['addSuggestionData'](_0x302a4a){const {authorId:_0x256d02,id:_0x3583d7,attributes:_0x28fe33}=_0x302a4a,[_0x16704b,_0x203904]=_0x302a4a[_0x4eab('0x3d')][_0x4eab('0xc9')](':'),_0x26ed0c=this['_suggestions'][_0x4eab('0xd2')](_0x3583d7)||this[_0x4eab('0x40')](_0x16704b,_0x203904,_0x3583d7,_0x256d02,_0x28fe33);if(this[_0x4eab('0xad')](_0x26ed0c),this[_0x4eab('0x6')](_0x26ed0c,_0x16704b,_0x203904||null,_0x256d02),_0x26ed0c[_0x4eab('0xa2')]=_0x302a4a['createdAt'],_0x28fe33&&_0x28fe33[_0x4eab('0x6e')]){const _0x2cc5be=_0x28fe33['@external'],_0x2fe1bd=this[_0x4eab('0xb7')](_0x2cc5be[_0x4eab('0xfe')]);_0x26ed0c['authoredAt']=_0x2cc5be[_0x4eab('0xa2')],_0x26ed0c[_0x4eab('0x4e')]=_0x2fe1bd,_0x26ed0c[_0x4eab('0x8d')]=!0x0;}else _0x26ed0c[_0x4eab('0x3f')]=_0x302a4a['createdAt'];switch(_0x302a4a['data']&&(_0x26ed0c[_0x4eab('0x13a')]=_0x302a4a[_0x4eab('0x13a')]),_0x302a4a['attributes']&&(_0x26ed0c[_0x4eab('0x2e')]=_0x302a4a['attributes']),this[_0x4eab('0x7b')]&&this[_0x4eab('0x7b')][_0x4eab('0x46')]||(_0x26ed0c[_0x4eab('0xf3')]=!0x0),this[_0x4eab('0xca')][_0x4eab('0xd2')](_0x26ed0c)){case _0x4eab('0xc8'):this['_suggestionState']['set'](_0x26ed0c,_0x4eab('0x10e'));break;case _0x4eab('0x8e'):_0x26ed0c['isInContent']?(this[_0x4eab('0xca')][_0x4eab('0x71')](_0x26ed0c,'ready'),this['fire']('suggestionLoaded',_0x26ed0c)):this[_0x4eab('0xca')][_0x4eab('0x71')](_0x26ed0c,_0x4eab('0x3'));}return _0x26ed0c;}[_0x4eab('0x94')](_0x3582c0){this[_0x4eab('0x12b')](()=>{this['editor'][_0x4eab('0x85')][_0x4eab('0xcb')](()=>{for(const _0x16e707 of _0x3582c0[_0x4eab('0x74')]())_0x16e707[_0x4eab('0x117')]();});});}[_0x4eab('0x1a')](_0x395efb){this['forceDefaultExecution'](()=>{this[_0x4eab('0x24')]['model'][_0x4eab('0xcb')](()=>{for(const _0x1f8124 of _0x395efb[_0x4eab('0x74')]())_0x1f8124[_0x4eab('0x10a')]();});});}[_0x4eab('0xde')](_0x2b7ea8,_0x42da0a){const _0x3b134e=this[_0x4eab('0x24')]['commands'][_0x4eab('0xd2')](_0x2b7ea8);if(!_0x3b134e)throw new _0x3e7e96(_0x4eab('0x41'),this,{'commandName':_0x2b7ea8});this['_enabledCommands'][_0x4eab('0x8b')](_0x3b134e),_0x42da0a&&_0x3b134e['on']('execute',(_0x465ddd,_0x1db138)=>{this[_0x4eab('0x140')]['value']&&(this[_0x4eab('0x101')]||_0x1db138[_0x4eab('0xb6')]>0x0&&_0x1db138[_0x1db138[_0x4eab('0xb6')]-0x1]&&_0x1db138[_0x1db138['length']-0x1][_0x4eab('0x12b')]||(_0x42da0a((..._0x9b8f48)=>_0x3b134e[_0x4eab('0x136')](..._0x9b8f48,{'forceDefaultExecution':!0x0}),..._0x1db138),_0x465ddd[_0x4eab('0x75')]()));},{'priority':_0x4eab('0x65')});}['forceDefaultExecution'](_0x37b7b6){let _0x3672c9,_0x2a032d;const _0xc3ba50=this['_isForcedDefaultExecutionBlock'];this[_0x4eab('0x101')]=!0x0;try{_0x3672c9=_0x37b7b6();}catch(_0x354582){_0x2a032d=_0x354582;}return _0xc3ba50||(this[_0x4eab('0x101')]=!0x1),_0x2a032d&&_0x3e7e96[_0x4eab('0x62')](_0x2a032d,this),_0x3672c9;}[_0x4eab('0x59')](_0x121d6b,_0x512dd4=null,_0xb0f64e={}){if(_0x121d6b[_0x4eab('0x130')])return null;const _0x1f8bd1=this[_0x4eab('0x24')]['plugins'][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'];for(const {suggestion:_0xa02fdc,meta:_0x7bb98c}of this[_0x4eab('0x29')](_0x121d6b,_0x4eab('0x131')))if(_0x7bb98c[_0x4eab('0x81')]){if(!_0x7bb98c[_0x4eab('0x72')]){if(!this[_0x4eab('0x39')]&&_0x7bb98c[_0x4eab('0x134')])continue;return _0xa02fdc;}if(_0x512dd4==_0xa02fdc['subType']){const _0x3631ba=_0xa02fdc[_0x4eab('0x5d')]();return _0x3631ba[_0x4eab('0x82')][_0x4eab('0xb5')](_0x121d6b[_0x4eab('0x126')])?this[_0x4eab('0x2a')](_0xa02fdc,this['_model'][_0x4eab('0xd8')](_0x121d6b[_0x4eab('0x82')],_0x3631ba[_0x4eab('0x126')])):this['_setSuggestionRange'](_0xa02fdc,this['_model'][_0x4eab('0xd8')](_0x3631ba[_0x4eab('0x82')],_0x121d6b[_0x4eab('0x126')])),_0xa02fdc;}}const _0xe2a49a=_0x36bda4(),_0x117d9c=_0x1f8bd1['id'],_0xd636f8=_0x512dd4?'insertion:'+_0x512dd4:_0x4eab('0x131'),_0x5e63a7=this[_0x4eab('0x13d')]({'id':_0xe2a49a,'type':_0xd636f8,'createdAt':new Date(),'authorId':_0x117d9c,'attributes':_0xb0f64e});return this[_0x4eab('0x36')](_0xd636f8,_0xe2a49a,_0x117d9c,_0x121d6b),_0x5e63a7;}['markMultiRangeInsertion'](_0x99d2d1,_0x36c964=_0x4eab('0xe6'),_0x475317={}){const _0x29246b=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'],_0x1aba07=this[_0x4eab('0xfd')][_0x4eab('0x16')]('insertion',_0x36c964,'join');for(const _0x56f973 of this['getSuggestions']())if(_0x56f973[_0x4eab('0x4e')]['id']==_0x29246b['id']&&_0x4eab('0x131')==_0x56f973[_0x4eab('0x3d')]&&_0x56f973['subType']==_0x36c964&&(_0x1aba07(_0x56f973[_0x4eab('0x9d')](),_0x99d2d1)||_0x1aba07(_0x99d2d1,_0x56f973[_0x4eab('0x9d')]()))){for(const _0x593d4b of _0x99d2d1)_0x56f973[_0x4eab('0x6c')](_0x593d4b);return _0x56f973;}if(this['_mergeNestedSuggestions'])for(const _0x3aa14f of _0x99d2d1)for(const {suggestion:_0xdc928b,meta:_0x1a022a}of this[_0x4eab('0x29')](_0x3aa14f,_0x4eab('0x131'))){if(!_0x1a022a[_0x4eab('0x81')])continue;let _0x511a23=!0x0;for(const _0xdf09b7 of _0xdc928b[_0x4eab('0x9d')]())for(const _0x1c9e95 of _0x99d2d1)if(!_0xdf09b7[_0x4eab('0xb1')](_0x1c9e95)){_0x511a23=!0x1;break;}if(_0x511a23)return _0xdc928b;}const _0x12a628=_0x36bda4(),_0xee57f3=_0x29246b['id'],_0x287eb3=_0x4eab('0xa0')+_0x36c964,_0x2fcb04=this[_0x4eab('0x13d')]({'id':_0x12a628,'type':_0x287eb3,'createdAt':new Date(),'authorId':_0xee57f3,'attributes':_0x475317});for(const _0x262e8f of _0x99d2d1)this[_0x4eab('0x36')](_0x287eb3,_0x12a628,_0xee57f3,_0x262e8f,_0x12f171[_0x4eab('0x9f')]());return _0x2fcb04;}[_0x4eab('0x11b')](_0x3e93dd,_0xca44c0,_0x53f6a9=null,_0x18ff69={}){if(_0x53f6a9=_0x53f6a9||$t(_0xca44c0),_0x3e93dd['isCollapsed'])return null;if(_0x4eab('0x124')===this[_0x4eab('0xa4')]){const _0x117d29=this['_suggestionFactory'][_0x4eab('0x16')](_0x4eab('0x12a'),_0x53f6a9,'accept');return this[_0x4eab('0x12b')](()=>_0x117d29([_0x3e93dd],_0xca44c0,_0x18ff69)),null;}const _0x378344=this[_0x4eab('0x24')]['plugins']['get'](_0x4eab('0x6a'))['me'],_0x428a7d=[];if(_0x4eab('0xeb')!==this[_0x4eab('0xa4')])for(const {suggestion:_0x29f9b5,meta:_0x3378b0}of this[_0x4eab('0x29')](_0x3e93dd,_0x4eab('0x131')))_0x3378b0[_0x4eab('0x81')]&&!_0x3378b0['isInsideObject']&&_0x428a7d['push'](..._0x29f9b5[_0x4eab('0x9d')]());const _0x9cb21=function(_0x2145cf,_0x3c5309){const _0x4df369=[];for(const _0x41a195 of _0x3c5309){const _0x18005e=_0x2145cf[_0x4eab('0x1e')](_0x41a195);_0x18005e&&_0x4df369['push'](_0x18005e);}return _0x4df369;}(_0x3e93dd,_0x428a7d),_0x124826=function(_0x19ee8d,_0x2ad53d){const _0x5d5ba7=[_0x19ee8d];for(const _0x28a25f of _0x2ad53d){let _0x212981=0x0;for(;_0x212981<_0x5d5ba7[_0x4eab('0xb6')];){const _0x629bcd=_0x5d5ba7[_0x212981][_0x4eab('0x11')](_0x28a25f);_0x5d5ba7[_0x4eab('0xa8')](_0x212981,0x1,..._0x629bcd),_0x212981+=_0x629bcd['length'];}}return _0x5d5ba7;}(_0x3e93dd,_0x428a7d);_0x9cb21[_0x4eab('0xb6')]&&this['_model']['change'](()=>{for(const _0x1761bf of _0x9cb21){const _0x63a8b2=this[_0x4eab('0xfd')][_0x4eab('0x16')](_0x4eab('0x12a'),_0x53f6a9,_0x4eab('0x117'));this[_0x4eab('0x12b')](()=>_0x63a8b2([_0x1761bf],_0xca44c0,_0x18ff69));}});for(const _0x480da7 of _0x124826){let _0x22629d=null,_0x566801=_0x480da7[_0x4eab('0x82')],_0x4eb748=_0x480da7[_0x4eab('0x126')];for(const {suggestion:_0x1886ac,meta:_0x3fe2ff}of this[_0x4eab('0x29')](_0x480da7,_0x4eab('0x12a'))){if(!_0x3fe2ff[_0x4eab('0x81')])continue;if(_0x1886ac[_0x4eab('0x51')]!=_0x53f6a9)continue;const _0x5d90d9=_0x1886ac[_0x4eab('0x5d')]();if(_0x5d90d9[_0x4eab('0xb1')](_0x480da7,!0x0))return null;_0x566801=_0x566801[_0x4eab('0xa1')](_0x5d90d9['start'])?_0x566801:_0x5d90d9['start'],_0x4eb748=_0x4eb748[_0x4eab('0x18')](_0x5d90d9[_0x4eab('0x126')])?_0x4eb748:_0x5d90d9[_0x4eab('0x126')],_0x22629d?_0x5d90d9[_0x4eab('0x82')]['isBefore'](_0x22629d[_0x4eab('0x5d')]()[_0x4eab('0x82')])?(_0x22629d[_0x4eab('0x112')](),_0x22629d=_0x1886ac):_0x1886ac[_0x4eab('0x112')]():_0x22629d=_0x1886ac;}const _0x19cd04=this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x566801,_0x4eb748);if(_0x22629d)this['_setSuggestionRange'](_0x22629d,_0x19cd04);else{const _0x4e6409=_0x36bda4(),_0x270e88=_0x378344['id'];this[_0x4eab('0x13d')]({'id':_0x4e6409,'type':'formatInline:'+_0x53f6a9,'data':_0xca44c0,'createdAt':new Date(),'authorId':_0x270e88,'attributes':_0x18ff69}),this[_0x4eab('0x36')](_0x4eab('0xac')+_0x53f6a9,_0x4e6409,_0x270e88,_0x19cd04);}}return null;}[_0x4eab('0x84')](_0x4ad8a3,_0x5a8315,_0x4f4c40=[],_0x530216=null,_0x47d392={}){_0x5a8315[_0x4eab('0xa7')]||(_0x5a8315[_0x4eab('0xa7')]=_0x5a8315[_0x4eab('0x44')]),_0x5a8315[_0x4eab('0x10f')]=_0x4ad8a3['is'](_0x4eab('0xf2')),_0x530216=_0x530216||$t(_0x5a8315);const _0x198fef=_0x4f4c40['map'](_0x291c8d=>Rt(_0x291c8d,this[_0x4eab('0xbd')])),_0x1ad7a6=_0x4ad8a3['is']('range')?_0x4ad8a3:Rt(_0x4ad8a3,this[_0x4eab('0xbd')]);if(_0x4eab('0x124')===this[_0x4eab('0xa4')]){const _0x40c0e6=this['_suggestionFactory'][_0x4eab('0x16')](_0x4eab('0x125'),_0x530216,'accept');return this[_0x4eab('0x12b')](()=>_0x40c0e6([_0x1ad7a6],_0x5a8315,_0x47d392)),null;}_0x198fef['push'](_0x1ad7a6);let _0xd0a999=!0x0;for(const _0x30f420 of _0x198fef)if(!this[_0x4eab('0x121')](_0x30f420)){_0xd0a999=!0x1;break;}if(_0xd0a999&&_0x4eab('0xeb')!==this[_0x4eab('0xa4')]){const _0x5aa435=this[_0x4eab('0xfd')][_0x4eab('0x16')]('formatBlock',_0x530216,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x5aa435([_0x1ad7a6],_0x5a8315,_0x47d392)),null;}let _0x5cc311=null,_0x5a1b6e=_0x1ad7a6[_0x4eab('0x82')],_0x508b03=_0x1ad7a6[_0x4eab('0x126')];for(const {suggestion:_0x135913,meta:_0x4a833a}of this[_0x4eab('0x29')](_0x1ad7a6,_0x4eab('0x125'))){if(!_0x4a833a[_0x4eab('0x81')]||_0x4a833a[_0x4eab('0x72')]||_0x4a833a['containsRangeInObject']||_0x4a833a[_0x4eab('0x129')])continue;if(_0x135913[_0x4eab('0x13a')][_0x4eab('0xa7')]!=_0x5a8315[_0x4eab('0xa7')])continue;const _0x48e645=_0x135913[_0x4eab('0x5d')]();if(_0x135913[_0x4eab('0x51')]==_0x530216){if(_0x48e645[_0x4eab('0xb1')](_0x1ad7a6,!0x0))return null;_0x5a1b6e=_0x5a1b6e[_0x4eab('0xa1')](_0x48e645[_0x4eab('0x82')])?_0x5a1b6e:_0x48e645[_0x4eab('0x82')],_0x508b03=_0x508b03['isAfter'](_0x48e645[_0x4eab('0x126')])?_0x508b03:_0x48e645[_0x4eab('0x126')],_0x5cc311?_0x48e645[_0x4eab('0x82')][_0x4eab('0xa1')](_0x5cc311[_0x4eab('0x5d')]()[_0x4eab('0x82')])?(_0x5cc311['removeMarkers'](),_0x5cc311=_0x135913):_0x135913['removeMarkers']():_0x5cc311=_0x135913;}else{const _0x46e45d=_0x1ad7a6[_0x4eab('0x1e')](_0x48e645);this[_0x4eab('0xcf')](_0x135913,_0x46e45d);}}const _0x2b0ae7=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')]('Users')['me'],_0x5498c9=_0x36bda4(),_0xd7e644=_0x2b0ae7['id'];if(_0x5cc311)return this[_0x4eab('0x2a')](_0x5cc311,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x5a1b6e,_0x508b03)),_0x5cc311;{const _0x357c7e=this[_0x4eab('0x13d')]({'id':_0x5498c9,'type':_0x4eab('0xdc')+_0x530216,'data':_0x5a8315,'createdAt':new Date(),'authorId':_0xd7e644,'attributes':_0x47d392});return this[_0x4eab('0x36')](_0x4eab('0xdc')+_0x530216,_0x5498c9,_0xd7e644,this['_model'][_0x4eab('0xd8')](_0x5a1b6e,_0x508b03)),_0x357c7e;}}[_0x4eab('0x11f')](_0x2fe49e,_0x31399f,_0xa1df6f=[],_0x5b2e76=null,_0x375093={}){_0x31399f[_0x4eab('0xa7')]||(_0x31399f['formatGroupId']=_0x31399f[_0x4eab('0x44')]);const _0x52e2ef=_0x2fe49e[0x0];_0x31399f[_0x4eab('0x10f')]=_0x52e2ef['is']('range'),_0x5b2e76=_0x5b2e76||$t(_0x31399f);const _0x59481a=_0xa1df6f[_0x4eab('0x7c')](_0x5c8fc2=>Rt(_0x5c8fc2,this['_model'])),_0xb5b40d=_0x52e2ef['is'](_0x4eab('0xf2'))?_0x2fe49e:_0x2fe49e[_0x4eab('0x7c')](_0x30c113=>Rt(_0x30c113,this[_0x4eab('0xbd')]));if(_0x4eab('0x124')===this[_0x4eab('0xa4')]){const _0x2ae69a=this['_suggestionFactory'][_0x4eab('0x16')]('formatBlock',_0x5b2e76,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x2ae69a(_0xb5b40d,_0x31399f,_0x375093)),null;}_0x59481a['push'](..._0xb5b40d);let _0x433db8=!0x0;for(const _0x892ce2 of _0x59481a)if(!this[_0x4eab('0x121')](_0x892ce2)){_0x433db8=!0x1;break;}if(_0x433db8&&_0x4eab('0xeb')!==this[_0x4eab('0xa4')]){const _0xc46d71=this[_0x4eab('0xfd')]['getSuggestionCallback']('formatBlock',_0x5b2e76,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0xc46d71(_0xb5b40d,_0x31399f,_0x375093)),null;}const _0x404738=this['editor'][_0x4eab('0xab')]['get'](_0x4eab('0x6a'))['me'];for(const _0x25e698 of this[_0x4eab('0x120')]()){if(_0x25e698[_0x4eab('0x4e')]['id']!=_0x404738['id'])continue;if('formatBlock'!=_0x25e698[_0x4eab('0x3d')]||_0x25e698[_0x4eab('0x13a')][_0x4eab('0xa7')]!=_0x31399f[_0x4eab('0xa7')])continue;const _0x2524f6=_0x25e698[_0x4eab('0x51')]==_0x5b2e76;for(let _0x2b346e=0x0;_0x2b346e<_0xb5b40d['length'];_0x2b346e++){const _0xb82340=_0xb5b40d[_0x2b346e];for(const _0x326609 of _0x25e698[_0x4eab('0x103')]()){const _0x5e217e=_0x326609[_0x4eab('0x91')]();if(_0xb82340[_0x4eab('0xb5')](_0x5e217e)){_0x2524f6?(_0xb5b40d[_0x4eab('0xa8')](_0x2b346e,0x1),_0x2b346e--):_0x25e698[_0x4eab('0x13e')](_0x326609['name']);break;}}}}if(0x0==_0xb5b40d[_0x4eab('0xb6')])return null;const _0x7ffbc2=this['_suggestionFactory'][_0x4eab('0x16')](_0x4eab('0x125'),_0x5b2e76,'join');for(const _0x43d5f of this['getSuggestions']())if(_0x43d5f[_0x4eab('0x4e')]['id']==_0x404738['id']&&_0x4eab('0x125')==_0x43d5f['type']&&_0x43d5f[_0x4eab('0x13a')]['formatGroupId']==_0x31399f['formatGroupId']&&_0x43d5f[_0x4eab('0x51')]==_0x5b2e76&&(_0x7ffbc2(_0x43d5f[_0x4eab('0x9d')](),_0xb5b40d)||_0x7ffbc2(_0xb5b40d,_0x43d5f[_0x4eab('0x9d')]()))){for(const _0x2d55d1 of _0xb5b40d)_0x43d5f[_0x4eab('0x6c')](_0x2d55d1);return _0x43d5f;}const _0x19951f=_0x36bda4(),_0x2a6ce0=_0x404738['id'],_0xdca113='formatBlock:'+_0x5b2e76,_0x589034=this['_setSuggestionData']({'id':_0x19951f,'type':_0xdca113,'data':_0x31399f,'createdAt':new Date(),'authorId':_0x2a6ce0,'attributes':_0x375093});for(const _0x573194 of _0xb5b40d)this[_0x4eab('0x36')](_0xdca113,_0x19951f,_0x2a6ce0,_0x573194,_0x12f171[_0x4eab('0x9f')]());return _0x589034;}[_0x4eab('0x3c')](_0x4dc3e4,_0xc73cdf=null,_0x1aeed3={}){if(_0x4dc3e4[_0x4eab('0x130')])return null;const _0x428907=this[_0x4eab('0x24')]['plugins'][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'],_0x337263=new _0x146086(_0x4dc3e4['start'],_0x4dc3e4[_0x4eab('0x126')]);for(const {suggestion:_0x1c1f9f,meta:_0x5c0572}of this['_findSuggestions'](_0x337263,_0x4eab('0x131')))if(_0x5c0572[_0x4eab('0x81')]&&!_0x5c0572[_0x4eab('0x72')]){if(_0x1c1f9f['isMultiRange']){const _0x4b62d7=_0x1c1f9f['getRanges']()[_0x4eab('0x142')](_0x540839=>_0x4eab('0xd6')!=_0x540839[_0x4eab('0x7f')]['rootName']);_0x4b62d7[_0x4eab('0x104')](_0x2e1803=>_0x337263[_0x4eab('0xb1')](_0x2e1803,!0x0))&&_0x1c1f9f['discard']();if(_0x4b62d7[_0x4eab('0x6f')](_0x37ed6f=>_0x37ed6f[_0x4eab('0xb1')](_0x337263,!0x0))){const _0x55d04c=this[_0x4eab('0xfd')][_0x4eab('0x16')]('deletion',_0xc73cdf,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x55d04c([_0x337263],null,_0x1aeed3)),null;}}else{const _0x20a614=_0x337263[_0x4eab('0x1e')](_0x1c1f9f[_0x4eab('0x5d')]());null!==_0x20a614&&_0x1c1f9f[_0x4eab('0x1')]([_0x20a614],null,_0x1aeed3);}}if(_0x337263[_0x4eab('0x79')](),_0x337263['isCollapsed']||_0x4eab('0xd6')==_0x337263[_0x4eab('0x7f')][_0x4eab('0x118')])return null;let _0x5cf283=null,_0x18df32=_0x337263['start'],_0x235fc9=_0x337263[_0x4eab('0x126')];for(const {suggestion:_0x3b3c80,meta:_0x3f19f7}of this[_0x4eab('0x29')](_0x337263,_0x4eab('0x1c')))if(_0x3f19f7[_0x4eab('0x81')]){if(_0x3b3c80[_0x4eab('0x70')]&&this[_0x4eab('0x39')]){let _0x192338=!0x0;for(const _0x40ea3f of _0x3b3c80[_0x4eab('0x9d')]()){if(_0x40ea3f['containsRange'](_0x337263,!0x0))return _0x3b3c80;_0x337263[_0x4eab('0xb1')](_0x40ea3f)||(_0x192338=!0x1);}_0x192338&&_0x3b3c80[_0x4eab('0x10a')]();}else{const _0x3ced78=_0x3b3c80[_0x4eab('0x5d')]();if(_0x3ced78[_0x4eab('0xb1')](_0x337263,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x3f19f7[_0x4eab('0x134')])continue;return _0x3b3c80;}_0x18df32=_0x18df32['isBefore'](_0x3ced78[_0x4eab('0x82')])?_0x18df32:_0x3ced78[_0x4eab('0x82')],_0x235fc9=_0x235fc9[_0x4eab('0x18')](_0x3ced78[_0x4eab('0x126')])?_0x235fc9:_0x3ced78[_0x4eab('0x126')],_0x5cf283?_0x3ced78[_0x4eab('0x82')]['isBefore'](_0x5cf283[_0x4eab('0x5d')]()[_0x4eab('0x82')])?(_0x5cf283['removeMarkers'](),_0x5cf283=_0x3b3c80):_0x3b3c80[_0x4eab('0x112')]():_0x5cf283=_0x3b3c80;}}if(_0x5cf283)return this[_0x4eab('0x2a')](_0x5cf283,this['_model'][_0x4eab('0xd8')](_0x18df32,_0x235fc9)),_0x5cf283;{const _0x1bab74=_0x36bda4(),_0xf1cc8f=this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x18df32,_0x235fc9),_0x4e9d6a=_0x428907['id'],_0x2c3231=_0xc73cdf?_0x4eab('0xf6')+_0xc73cdf:'deletion',_0x1d7885=this[_0x4eab('0x13d')]({'id':_0x1bab74,'type':_0x2c3231,'createdAt':new Date(),'authorId':_0x4e9d6a,'attributes':_0x1aeed3});return this[_0x4eab('0x36')](_0x2c3231,_0x1bab74,_0x4e9d6a,_0xf1cc8f),_0x1d7885;}}[_0x4eab('0xe0')](_0x6f6e08,_0x489530=_0x4eab('0xe6'),_0x4fa7b7={}){const _0x3d2066=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'],_0x4d3e12=_0x6f6e08[_0x4eab('0x7c')](_0x4e1e55=>new _0x146086(_0x4e1e55[_0x4eab('0x82')],_0x4e1e55['end'])),_0x2a4017=new Set();for(const _0x4ae376 of _0x4d3e12)for(const {suggestion:_0x9dbebc,meta:_0x440e80}of this[_0x4eab('0x29')](_0x4ae376,_0x4eab('0x131')))_0x440e80[_0x4eab('0x81')]&&!_0x440e80[_0x4eab('0x72')]&&_0x2a4017[_0x4eab('0x8b')](_0x9dbebc);for(const _0x340e27 of _0x2a4017)if(_0x340e27[_0x4eab('0x70')]){const _0x23c52c=_0x340e27[_0x4eab('0x9d')]();(!_0x340e27[_0x4eab('0x2e')]||!_0x340e27[_0x4eab('0x2e')][_0x4eab('0x34')])&&(_0x23c52c[_0x4eab('0x104')](_0x47e6c7=>_0x4d3e12[_0x4eab('0x6f')](_0x2473ef=>_0x2473ef[_0x4eab('0xb1')](_0x47e6c7,!0x0)))&&_0x340e27[_0x4eab('0x10a')]());if(_0x4d3e12[_0x4eab('0x104')](_0x269b1e=>_0x23c52c['some'](_0x49546a=>_0x49546a[_0x4eab('0xb1')](_0x269b1e,!0x0)))){const _0x16fa5d=this['_suggestionFactory']['getSuggestionCallback'](_0x4eab('0x1c'),_0x489530,'accept');return this[_0x4eab('0x12b')](()=>_0x16fa5d(_0x6f6e08,null,_0x4fa7b7)),null;}}else{const _0xd5d3a5=_0x340e27[_0x4eab('0x5d')]();_0x4d3e12[_0x4eab('0x6f')](_0x405fa2=>_0x405fa2[_0x4eab('0xb1')](_0xd5d3a5,!0x0))&&_0x340e27[_0x4eab('0x10a')]();if(_0x4d3e12[_0x4eab('0x104')](_0x390c06=>_0xd5d3a5[_0x4eab('0xb1')](_0x390c06,!0x0))){const _0x2d5c3a=this[_0x4eab('0xfd')]['getSuggestionCallback']('deletion',_0x489530,_0x4eab('0x117'));return this[_0x4eab('0x12b')](()=>_0x2d5c3a(_0x4d3e12,null,_0x4fa7b7)),null;}}const _0x1cd8ea=this[_0x4eab('0xfd')]['getSuggestionCallback'](_0x4eab('0x1c'),_0x489530,_0x4eab('0x86'));let _0x168fbc=null;for(const _0x45b76d of this['getSuggestions']())if(_0x45b76d[_0x4eab('0x4e')]['id']==_0x3d2066['id']&&_0x45b76d['isInContent']&&_0x4eab('0x1c')==_0x45b76d['type']&&_0x45b76d[_0x4eab('0x51')]==_0x489530&&(_0x1cd8ea(_0x45b76d['getRanges'](),_0x4d3e12)||_0x1cd8ea(_0x4d3e12,_0x45b76d[_0x4eab('0x9d')]()))){if(_0x168fbc){if(_0x45b76d[_0x4eab('0x0')]&&_0x45b76d[_0x4eab('0x0')][_0x4eab('0xb6')])continue;for(const _0x5af5e7 of _0x45b76d[_0x4eab('0x9d')]())_0x168fbc[_0x4eab('0xf5')](_0x5af5e7)||_0x168fbc[_0x4eab('0x6c')](_0x5af5e7);_0x45b76d['removeMarkers']();}else{_0x168fbc=_0x45b76d;for(const _0x5793cb of _0x4d3e12)_0x45b76d[_0x4eab('0xf5')](_0x5793cb)||_0x45b76d[_0x4eab('0x6c')](_0x5793cb);}}if(_0x168fbc)return _0x168fbc;_0x2a4017[_0x4eab('0x3a')]();for(const _0x51e464 of _0x4d3e12)for(const {suggestion:_0x170234,meta:_0x59a347}of this[_0x4eab('0x29')](_0x51e464,_0x4eab('0x1c')))_0x59a347[_0x4eab('0x81')]&&_0x2a4017[_0x4eab('0x8b')](_0x170234);for(const _0x46fe24 of _0x2a4017){const _0x24121a=_0x46fe24[_0x4eab('0x9d')]();if(!_0x4fa7b7||!_0x4fa7b7[_0x4eab('0x34')]){if(_0x4d3e12[_0x4eab('0x104')](_0x2b4ce1=>_0x24121a[_0x4eab('0x6f')](_0x511d2b=>_0x511d2b['containsRange'](_0x2b4ce1,!0x0))))return _0x46fe24;}(!_0x46fe24[_0x4eab('0x2e')]||!_0x46fe24[_0x4eab('0x2e')][_0x4eab('0x34')])&&(_0x24121a[_0x4eab('0x104')](_0x4711a8=>_0x4d3e12[_0x4eab('0x6f')](_0x389965=>_0x389965[_0x4eab('0xb1')](_0x4711a8,!0x0)))&&_0x46fe24[_0x4eab('0x10a')]());}const _0x248b15=_0x36bda4(),_0x1d07ab=_0x3d2066['id'],_0x4b0f8c=_0x4eab('0xf6')+_0x489530,_0x20f284=this[_0x4eab('0x13d')]({'id':_0x248b15,'type':_0x4b0f8c,'createdAt':new Date(),'authorId':_0x1d07ab,'attributes':_0x4fa7b7});for(const _0x38df42 of _0x4d3e12)_0x38df42['detach'](),_0x38df42[_0x4eab('0x130')]||'$graveyard'==_0x38df42[_0x4eab('0x7f')][_0x4eab('0x118')]||this[_0x4eab('0x36')](_0x4b0f8c,_0x248b15,_0x1d07ab,_0x38df42,_0x12f171[_0x4eab('0x9f')]());return _0x20f284;}[_0x4eab('0x2a')](_0x48f94a,_0x149b27){const _0x49c8f4=_0x48f94a['getFirstMarker']();this['_model']['change'](_0x3b5d28=>{_0x3b5d28[_0x4eab('0x96')](_0x49c8f4,{'range':_0x149b27});});}[_0x4eab('0xad')](_0x3a2c4e){const _0x3f2660=_0x3a2c4e['id'],_0x173263=this['editor'][_0x4eab('0x5')][_0x4eab('0xd2')]('collaboration.channelId');this[_0x4eab('0x137')]['hasCommentThread'](_0x3f2660)||this[_0x4eab('0x137')][_0x4eab('0x49')]({'channelId':_0x173263,'threadId':_0x3f2660,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x9fb72b=this[_0x4eab('0x137')][_0x4eab('0x11a')](_0x3f2660);_0x9fb72b[_0x4eab('0xed')](_0x4eab('0x9b')),_0x9fb72b[_0x4eab('0x9b')]=!0x1,_0x3a2c4e[_0x4eab('0x0')]=_0x9fb72b;}['_checkSuggestionCorrectness'](_0x5f2efd,_0x373264,_0x136755,_0x581a48){if(_0x5f2efd[_0x4eab('0x3d')]!=_0x373264||_0x5f2efd[_0x4eab('0x51')]!=_0x136755||_0x5f2efd[_0x4eab('0x73')]['id']!=_0x581a48)throw this['editor'][_0x4eab('0x144')](_0x4eab('0x110')),new _0x3e7e96(_0x4eab('0x110'),this);}[_0x4eab('0xcf')](_0xa1d5dc,_0x299a9c){const _0x2afaee=_0xa1d5dc[_0x4eab('0x5d')]();if(_0x299a9c[_0x4eab('0xb5')](_0x2afaee))_0xa1d5dc[_0x4eab('0x112')]();else{if(_0x2afaee[_0x4eab('0xb1')](_0x299a9c)){const _0x825c1=this[_0x4eab('0xbd')][_0x4eab('0x57')](_0x299a9c[_0x4eab('0x82')]['nodeBefore'],_0x4eab('0x126'));this[_0x4eab('0x2a')](_0xa1d5dc,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x2afaee['start'],_0x825c1));const _0x1de7a8=_0x36bda4(),_0x326c3f=_0xa1d5dc['creator']['id'],_0x35d3c9=_0xa1d5dc['type']+':'+_0xa1d5dc[_0x4eab('0x51')];this[_0x4eab('0x13d')]({'id':_0x1de7a8,'type':_0x35d3c9,'createdAt':new Date(),'authorId':_0x326c3f,'data':_0xa1d5dc['data'],'attributes':_0xa1d5dc[_0x4eab('0x2e')]});const _0x5f0797=this[_0x4eab('0xbd')]['createPositionAt'](_0x299a9c['end']['parent'],_0x4eab('0x7d')),_0x1b22d9=this['_model'][_0x4eab('0xd8')](_0x5f0797,_0x2afaee[_0x4eab('0x126')]);this[_0x4eab('0x36')](_0x35d3c9,_0x1de7a8,_0x326c3f,_0x1b22d9);}else{if(_0x2afaee[_0x4eab('0x35')](_0x299a9c[_0x4eab('0x82')])){const _0x52b3de=this[_0x4eab('0xbd')][_0x4eab('0x57')](_0x299a9c[_0x4eab('0x82')][_0x4eab('0xfb')],_0x4eab('0x126'));this[_0x4eab('0x2a')](_0xa1d5dc,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x2afaee['start'],_0x52b3de));}else{const _0x3b502f=this[_0x4eab('0xbd')][_0x4eab('0x57')](_0x299a9c[_0x4eab('0x126')]['parent'],_0x4eab('0x7d'));this[_0x4eab('0x2a')](_0xa1d5dc,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x3b502f,_0x2afaee[_0x4eab('0x126')]));}}}}[_0x4eab('0x121')](_0x5e9e53){for(const {suggestion:_0xfebade,meta:_0x46dde2}of this['_findSuggestions'](_0x5e9e53,_0x4eab('0x131'))){if(!_0x46dde2[_0x4eab('0x81')])continue;const _0x3da4b6=_0xfebade[_0x4eab('0x9d')]();for(const _0x17d8f6 of _0x3da4b6)if(!_0x5e9e53[_0x4eab('0x11')](_0x17d8f6)[_0x4eab('0xb6')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3720e9){const _0x5b42b7=this[_0x4eab('0x24')][_0x4eab('0xab')]['get'](_0x4eab('0x6a'))[_0x4eab('0xea')](_0x3720e9);if(!_0x5b42b7)throw new _0x3e7e96(_0x4eab('0x128'),this);return _0x5b42b7;}[_0x4eab('0xb7')](_0xaa8121){const _0x170c65=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a')),_0x5e7f76=_0x495d88(_0x4eab('0x135')+_0xaa8121),_0x3bb64c=_0x170c65['getUser'](_0x5e7f76);return _0x3bb64c||_0x170c65['addUser']({'id':_0x5e7f76,'name':_0xaa8121});}[_0x4eab('0x40')](_0x9398a,_0x254d10,_0xba6245,_0x15cb34,_0x53922d){const _0x31acc9=this['_getAuthorFromId'](_0x15cb34),_0x5b95d4=this[_0x4eab('0xfd')][_0x4eab('0x50')](_0x9398a,_0x254d10,_0xba6245,_0x31acc9,_0x53922d,_0x12d729=>this[_0x4eab('0x43')](_0xba6245,{'attributes':_0x12d729}));return this[_0x4eab('0xbb')](_0x5b95d4,_0x4eab('0x117'),()=>{this[_0x4eab('0x43')](_0xba6245,{'state':'accepted'});},{'priority':_0x4eab('0x65')}),this[_0x4eab('0xbb')](_0x5b95d4,'discard',()=>{this[_0x4eab('0x43')](_0xba6245,{'state':'rejected'});},{'priority':_0x4eab('0x65')}),this[_0x4eab('0xa5')][_0x4eab('0x71')](_0xba6245,_0x5b95d4),this[_0x4eab('0xca')][_0x4eab('0x71')](_0x5b95d4,'notReady'),_0x5b95d4;}[_0x4eab('0x32')](_0xd0d0f7){const _0x376190=_0xd0d0f7[_0x4eab('0xc9')](':');return{'group':_0x376190[0x0],'type':_0x376190[0x1],'subType':_0x376190[_0x4eab('0xb6')]>=0x5?_0x376190[0x2]:null,'id':_0x376190[_0x4eab('0xb6')]<0x5?_0x376190[0x2]:_0x376190[0x3],'authorId':_0x376190[_0x4eab('0xb6')]<0x5?_0x376190[0x3]:_0x376190[0x4],'markerCount':0x6==_0x376190[_0x4eab('0xb6')]?_0x376190[0x5]:null};}['_breakSuggestionMarker'](_0x42afb7,_0x510730,_0x1f1054){const _0x2c0a48=_0x42afb7[_0x4eab('0x5d')](),_0x3f6d07=_0x2c0a48[_0x4eab('0x82')],_0x3d57ef=_0x2c0a48[_0x4eab('0x126')];this[_0x4eab('0x2a')](_0x42afb7,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x3f6d07,_0x510730));const _0xfc0890=_0x36bda4(),_0x124fc2=_0x42afb7[_0x4eab('0x73')]['id'],_0x169628=_0x42afb7[_0x4eab('0x3d')]+(_0x42afb7[_0x4eab('0x51')]?':'+_0x42afb7[_0x4eab('0x51')]:'');this[_0x4eab('0x13d')]({'id':_0xfc0890,'type':_0x169628,'createdAt':new Date(),'authorId':_0x124fc2,'originalSuggestionId':_0x42afb7['id'],'attributes':_0x42afb7['attributes'],'data':_0x42afb7[_0x4eab('0x13a')]}),_0x4eab('0x125')==_0x42afb7[_0x4eab('0x3d')]&&(_0x1f1054=this[_0x4eab('0xbd')][_0x4eab('0xbf')](_0x1f1054[_0x4eab('0x3b')])),this[_0x4eab('0x36')](_0x169628,_0xfc0890,_0x124fc2,this[_0x4eab('0xbd')][_0x4eab('0xd8')](_0x1f1054,_0x3d57ef));}[_0x4eab('0x29')](_0x38e016,_0xd475e4=null){const _0x21fc12=[],_0x67859e=this[_0x4eab('0xbd')][_0x4eab('0xf8')],_0x405f1b=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0x6a'))['me'];for(const _0x5415d2 of this[_0x4eab('0x120')]())if(_0x5415d2[_0x4eab('0xe9')]&&(!_0xd475e4||_0x5415d2[_0x4eab('0x3d')]==_0xd475e4))for(const _0x4acefd of _0x5415d2[_0x4eab('0x9d')]()){const _0x20db68=_0x38e016['start'][_0x4eab('0xb5')](_0x4acefd['end'])||_0x38e016['end'][_0x4eab('0xb5')](_0x4acefd[_0x4eab('0x82')]);if(_0x20db68||_0x38e016['getIntersection'](_0x4acefd)){const _0xf0e34=_0x38e016['containsRange'](_0x4acefd)&&Bt(_0x67859e,_0x4acefd[_0x4eab('0x82')],_0x38e016),_0x26e9f6=_0x4acefd[_0x4eab('0xb1')](_0x38e016)&&Bt(_0x67859e,_0x38e016[_0x4eab('0x82')],_0x4acefd);_0x21fc12[_0x4eab('0xc2')]({'suggestion':_0x5415d2,'meta':{'isOwn':_0x405f1b==_0x5415d2[_0x4eab('0x4e')],'isNextTo':_0x20db68,'isInsideObject':_0xf0e34,'containsRangeInObject':_0x26e9f6}});break;}}return _0x21fc12;}[_0x4eab('0x36')](_0x12bea9,_0x53bab5,_0x319484,_0x4cf7b3,_0x4cb4c0){this[_0x4eab('0xbd')][_0x4eab('0xcb')](_0x38ec7e=>{let _0x23265d=_0x4eab('0x2d')+_0x12bea9+':'+_0x53bab5+':'+_0x319484;_0x4cb4c0&&(_0x23265d=_0x23265d+':'+_0x4cb4c0),_0x38ec7e['addMarker'](_0x23265d,{'range':_0x4cf7b3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4eab('0x77')](_0x1f5be6){const _0xf3a260=_0x1f5be6[_0x4eab('0x55')],_0x18562c=_0x1f5be6[_0x4eab('0x119')];_0x1f5be6[_0x4eab('0x55')]=null,null!=_0xf3a260&&(_0xf3a260[_0x4eab('0x119')]=null),_0x1f5be6[_0x4eab('0x119')]=null,null!=_0x18562c&&(_0x18562c['previous']=null),_0x4eab('0x139')==this[_0x4eab('0xca')]['get'](_0x1f5be6)&&(this[_0x4eab('0xca')][_0x4eab('0x71')](_0x1f5be6,'removed'),this[_0x4eab('0xcd')](_0x4eab('0x93'),_0x1f5be6,_0xf3a260,_0x18562c));}[_0x4eab('0x13d')](_0x58baa5){const _0x5c76ea=_0x58baa5['id'],_0x571a70=this[_0x4eab('0xce')](_0x58baa5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9538d0=this['editor']['plugins'][_0x4eab('0xd2')](_0x4eab('0xe8')),_0x3977ab=_0x571a70[_0x4eab('0x6b')],_0x225b7a=_0x571a70['subType']?_0x571a70[_0x4eab('0x3d')]+':'+_0x571a70[_0x4eab('0x51')]:_0x571a70[_0x4eab('0x3d')],_0x1cf76b=this['editor'][_0x4eab('0x12e')],_0x5e0d8d=_0x9538d0['add'](_0x4a2b42(_0x1cf76b,_0x4eab('0x54'))),_0x1d8c47={'id':_0x5c76ea,'type':_0x225b7a,'hasComments':_0x3977ab,'data':_0x58baa5[_0x4eab('0x13a')]||null,'originalSuggestionId':_0x58baa5[_0x4eab('0xfc')]||null,'attributes':_0x571a70[_0x4eab('0x2e')]};this['_adapter'][_0x4eab('0x46')](_0x1d8c47)[_0x4eab('0x9a')](_0x3d744d=>{_0x571a70[_0x4eab('0xf3')]=!0x0,_0x9538d0[_0x4eab('0x132')](_0x5e0d8d),_0x3d744d&&_0x3d744d[_0x4eab('0xa2')]&&(this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x5c76ea)[_0x4eab('0xa2')]=_0x3d744d['createdAt']);})['catch'](_0x3bf47b=>{throw _0x823a6c(_0x4eab('0x4b')),this[_0x4eab('0x24')]['model'][_0x4eab('0x2')]({'isUndoable':!0x1},()=>{_0x571a70[_0x4eab('0x10a')]();}),_0x571a70[_0x4eab('0x60')](),this[_0x4eab('0xa5')][_0x4eab('0x69')](_0x571a70['id']),this[_0x4eab('0xca')]['delete'](_0x571a70),_0x3bf47b;});}return _0x571a70;}['_updateSuggestionData'](_0x5a18a0,_0x295c06){const _0x15351d=this[_0x4eab('0x24')][_0x4eab('0xab')][_0x4eab('0xd2')](_0x4eab('0xe8')),_0x52444e=this[_0x4eab('0xbe')](_0x5a18a0);if(this['_adapter']&&this[_0x4eab('0x7b')][_0x4eab('0x63')]){if(_0x52444e[_0x4eab('0xf3')]){const _0x494f46=_0x15351d['add'](_0x4a2b42(this['editor'][_0x4eab('0x12e')],_0x4eab('0x54')));this[_0x4eab('0x7b')][_0x4eab('0x63')](_0x5a18a0,_0x295c06)['then'](()=>{_0x15351d[_0x4eab('0x132')](_0x494f46);});}else _0x52444e['on'](_0x4eab('0xd'),()=>{this[_0x4eab('0x43')](_0x5a18a0,_0x295c06);});}}[_0x4eab('0x64')](_0x4f3286){if(!this[_0x4eab('0x7b')]||!this[_0x4eab('0x7b')][_0x4eab('0xbe')])throw new _0x3e7e96(_0x4eab('0x88'),this);return this[_0x4eab('0x7b')]['getSuggestion'](_0x4f3286);}[_0x4eab('0x83')](_0x4e1a4d){const {id:_0x323813,type:_0x13de56,subType:_0x567de2,authorId:_0x2e7de9}=this[_0x4eab('0x32')](_0x4e1a4d),_0x1ed369=this[_0x4eab('0xa5')][_0x4eab('0xd2')](_0x323813)||this[_0x4eab('0x40')](_0x13de56,_0x567de2,_0x323813,_0x2e7de9,{});switch(this['_checkSuggestionCorrectness'](_0x1ed369,_0x13de56,_0x567de2,_0x2e7de9),this['_suggestionState'][_0x4eab('0xd2')](_0x1ed369)){case _0x4eab('0xc8'):this[_0x4eab('0x64')](_0x323813)['then'](_0x4d341c=>{let _0x1b5b5d=Promise[_0x4eab('0x5b')]();_0x4d341c['hasComments']&&(_0x1b5b5d=this[_0x4eab('0x137')][_0x4eab('0x8c')]({'channelId':this[_0x4eab('0x24')]['config'][_0x4eab('0xd2')]('collaboration.channelId'),'threadId':_0x323813})),_0x1b5b5d['then'](()=>{this[_0x4eab('0xce')](_0x4d341c)['_saved']=!0x0;});}),this[_0x4eab('0xca')][_0x4eab('0x71')](_0x1ed369,'markerReady');break;case _0x4eab('0x3'):this[_0x4eab('0x43')](_0x323813,{'state':_0x4eab('0x4c')});case _0x4eab('0x10e'):this[_0x4eab('0xca')][_0x4eab('0x71')](_0x1ed369,_0x4eab('0x139')),this[_0x4eab('0xcd')](_0x4eab('0xd9'),_0x1ed369);break;case _0x4eab('0x139'):this[_0x4eab('0xcd')](_0x4eab('0xe7'),_0x1ed369);}return _0x1ed369[_0x4eab('0x108')](_0x4e1a4d),_0x1ed369;}[_0x4eab('0x99')](_0x4dc84c){const _0x48e29e=Array[_0x4eab('0x38')](_0x4dc84c)['filter'](_0x2be654=>!_0x2be654['isMultiRange']),_0x324575=this[_0x4eab('0x120')]({'skipNotAttached':!0x0})[_0x4eab('0x142')](_0x32fa92=>!_0x32fa92['isMultiRange']),_0x1bec87=_0x324575['filter'](_0x564ed9=>!_0x4dc84c[_0x4eab('0x30')](_0x564ed9)),_0x3d33bb=new Map(_0x324575[_0x4eab('0x7c')](_0x4edc42=>[_0x4edc42,this['_suggestionFactory'][_0x4eab('0x16')](_0x4edc42[_0x4eab('0x3d')],_0x4edc42[_0x4eab('0x51')],_0x4eab('0x76'))])),_0x5cf0ed=new Map(_0x324575['map'](_0x1056c5=>[_0x1056c5,_0x1056c5['getFirstRange']()])),_0x523a03=new Set(),_0x1e35d7=new Set();for(let _0x1a4dcd=0x0;_0x1a4dcd<_0x48e29e[_0x4eab('0xb6')];_0x1a4dcd++)_0x65386d(_0x48e29e[_0x1a4dcd],_0x48e29e,_0x1a4dcd+0x1);for(let _0x4cc778=0x0;_0x4cc778<_0x48e29e[_0x4eab('0xb6')];_0x4cc778++)_0x65386d(_0x48e29e[_0x4cc778],_0x1bec87,0x0);for(let _0xe5104a=0x0;_0xe5104a<_0x48e29e[_0x4eab('0xb6')];_0xe5104a++){const _0x6c5da6=_0x48e29e[_0xe5104a];!_0x1e35d7[_0x4eab('0x30')](_0x6c5da6)&&_0x6c5da6[_0x4eab('0x55')]&&(_0x6c5da6[_0x4eab('0x55')][_0x4eab('0x119')]===_0x6c5da6&&(_0x6c5da6[_0x4eab('0x55')]['next']=null),_0x6c5da6['previous']=null),!_0x523a03['has'](_0x6c5da6)&&_0x6c5da6[_0x4eab('0x119')]&&(_0x6c5da6[_0x4eab('0x119')]['previous']===_0x6c5da6&&(_0x6c5da6['next'][_0x4eab('0x55')]=null),_0x6c5da6[_0x4eab('0x119')]=null);}function _0x65386d(_0x343aa2,_0x5b91fe,_0x3ed5cb){for(let _0x33de9e=_0x3ed5cb;_0x33de9e<_0x5b91fe[_0x4eab('0xb6')];_0x33de9e++){const _0x534006=_0x3df8ba(_0x343aa2,_0x5b91fe[_0x33de9e]);_0x534006&&(_0x534006[0x0][_0x4eab('0x119')]=_0x534006[0x1],_0x534006[0x1][_0x4eab('0x55')]=_0x534006[0x0],_0x523a03[_0x4eab('0x8b')](_0x534006[0x0]),_0x1e35d7[_0x4eab('0x8b')](_0x534006[0x1]));}}function _0x3df8ba(_0x171258,_0x382e66){if(_0x171258[_0x4eab('0x4e')]['id']!==_0x382e66['author']['id'])return null;const _0x37ae33=_0x3d33bb['get'](_0x171258)(_0x171258,_0x382e66,_0x5cf0ed[_0x4eab('0xd2')](_0x171258),_0x5cf0ed[_0x4eab('0xd2')](_0x382e66));if(!_0x37ae33)return null;return _0x3d33bb[_0x4eab('0xd2')](_0x382e66)(_0x171258,_0x382e66,_0x5cf0ed[_0x4eab('0xd2')](_0x171258),_0x5cf0ed['get'](_0x382e66))?_0x37ae33[0x1][_0x4eab('0x0')]&&_0x37ae33[0x1][_0x4eab('0x0')][_0x4eab('0xb6')]?null:_0x37ae33:null;}}[_0x4eab('0xaa')](_0x58952a){const _0x454dae=Array[_0x4eab('0x38')](_0x58952a),_0x327464=this[_0x4eab('0x120')]({'skipNotAttached':!0x0}),_0x532dda=_0x327464[_0x4eab('0x142')](_0x49b268=>!_0x58952a[_0x4eab('0x30')](_0x49b268)),_0x1e3a2e=new Map(_0x454dae[_0x4eab('0x7c')](_0x10ead9=>[_0x10ead9,this[_0x4eab('0xfd')][_0x4eab('0x16')](_0x10ead9[_0x4eab('0x3d')],_0x10ead9['subType'],'join')])),_0x7dfa07=new Map(_0x327464[_0x4eab('0x7c')](_0x21fdb6=>[_0x21fdb6,_0x21fdb6[_0x4eab('0x9d')]()]));for(let _0x44d0ea=0x0;_0x44d0ea<_0x454dae[_0x4eab('0xb6')];_0x44d0ea++){if(_0x3ac6f0(this,_0x454dae[_0x44d0ea],_0x454dae,_0x44d0ea+0x1))return!0x0;}for(let _0x543054=0x0;_0x543054<_0x454dae[_0x4eab('0xb6')];_0x543054++){if(_0x3ac6f0(this,_0x454dae[_0x543054],_0x532dda,0x0))return!0x0;}return!0x1;function _0x3ac6f0(_0x27d986,_0x77e9a8,_0x2221e0,_0x2176e5){for(let _0x27a905=_0x2176e5;_0x27a905<_0x2221e0[_0x4eab('0xb6')];_0x27a905++){const _0x19ffb0=_0x2221e0[_0x27a905];if(_0x19ffb0[_0x4eab('0x3d')]!==_0x77e9a8['type']||_0x19ffb0['author']['id']!==_0x77e9a8['author']['id']||_0x19ffb0['subType']!==_0x77e9a8[_0x4eab('0x51')])continue;const _0x1d0f71=_0x1e3a2e['get'](_0x77e9a8),_0x15f632=_0x7dfa07[_0x4eab('0xd2')](_0x77e9a8),_0x11fc45=_0x7dfa07[_0x4eab('0xd2')](_0x19ffb0),_0x385733=_0x77e9a8['commentThread']&&_0x77e9a8[_0x4eab('0x0')][_0x4eab('0xb6')],_0x418966=_0x19ffb0[_0x4eab('0x0')]&&_0x19ffb0[_0x4eab('0x0')][_0x4eab('0xb6')];if(!_0x385733&&_0x1d0f71(_0x11fc45,_0x15f632))return _0x27d986['_joinSuggestions'](_0x19ffb0,_0x77e9a8),_0x7dfa07[_0x4eab('0x69')](_0x77e9a8),!0x0;if(!_0x418966&&_0x1d0f71(_0x15f632,_0x11fc45))return _0x27d986[_0x4eab('0x47')](_0x77e9a8,_0x19ffb0),_0x7dfa07[_0x4eab('0x69')](_0x19ffb0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32766f,_0x355b1d){if(_0x32766f[_0x4eab('0x70')])for(const _0x3af9b2 of _0x355b1d[_0x4eab('0x9d')]())_0x32766f[_0x4eab('0x6c')](_0x3af9b2);else{const _0x39ff0c=_0x355b1d['getFirstRange']()[_0x4eab('0x126')];this['_setSuggestionRange'](_0x32766f,this['_model']['createRange'](_0x32766f['getFirstRange']()[_0x4eab('0x82')],_0x39ff0c));}_0x355b1d[_0x4eab('0x112')]();}}class Dt{constructor(_0x7c1863){this[_0x4eab('0x11c')]=_0x7c1863,this[_0x4eab('0xbd')]=_0x7c1863['model'],this[_0x4eab('0xda')]=new Map(),this[_0x4eab('0xff')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4eab('0x50')](_0x16854d,_0xab68f6,_0x36d0eb,_0x236133,_0x2ccc35,_0x129a1f){return new _0x12f171(this[_0x4eab('0xbd')],{'type':_0x16854d,'subType':_0xab68f6,'id':_0x36d0eb,'author':_0x236133,'creator':_0x236133,'attributes':_0x2ccc35,'onAttributesChange':_0x129a1f,'onAccept':(..._0x2247ed)=>this['getSuggestionCallback'](_0x16854d,_0xab68f6,_0x4eab('0x117'))(..._0x2247ed),'onDiscard':(..._0x1d4628)=>this[_0x4eab('0x16')](_0x16854d,_0xab68f6,_0x4eab('0x10a'))(..._0x1d4628)});}[_0x4eab('0x114')](_0x578e56,_0x2f4f1c,_0x54b2e9,_0x3a76b2){const _0x18924a=_0x578e56+':'+_0x2f4f1c+':'+_0x54b2e9;this[_0x4eab('0xda')][_0x4eab('0x71')](_0x18924a,_0x3a76b2);}[_0x4eab('0x16')](_0xfb6ea8,_0x39db4b,_0x3762ad){const _0x4b02c3=_0xfb6ea8+':'+_0x39db4b+':'+_0x3762ad;return this[_0x4eab('0xda')][_0x4eab('0xd2')](_0x4b02c3)||this['_defaultCallbacks'][_0x4eab('0xd2')](_0xfb6ea8+':'+_0x3762ad);}[_0x4eab('0xb')](){const _0x39a4db=()=>{},_0x22f8e6=_0x46ac8f=>{_0x46ac8f[_0x4eab('0xc6')]((_0xe6a13a,_0x39b2ea)=>_0xe6a13a[_0x4eab('0x82')][_0x4eab('0xa1')](_0x39b2ea[_0x4eab('0x82')])?0x1:-0x1),this[_0x4eab('0xbd')][_0x4eab('0xcb')](_0x282248=>{for(const _0x3aaa3b of _0x46ac8f){let _0x4f8509;_0x4f8509=_0x3aaa3b[_0x4eab('0x126')][_0x4eab('0x7a')]&&_0x3aaa3b['end'][_0x4eab('0x3b')]==_0x3aaa3b[_0x4eab('0x82')]['nodeAfter']?_0x282248['createSelection'](_0x3aaa3b['start']['nodeAfter'],'on'):_0x282248[_0x4eab('0x100')](_0x3aaa3b),this['_model']['deleteContent'](_0x4f8509,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x533ac6=(_0x170e8b,_0x5d7523)=>{this[_0x4eab('0xbd')]['change'](_0x35af0e=>{const {commandName:_0x2e009d,commandParams:_0x49e4c1=[]}=_0x5d7523,_0x4f9a11=_0x170e8b[_0x4eab('0x7c')](_0xabcfd4=>(_t(_0xabcfd4)&&(_0xabcfd4=this[_0x4eab('0xbd')]['createRange'](_0xabcfd4[_0x4eab('0x126')])),_0xabcfd4))[_0x4eab('0x142')](_0x5dba96=>_0x4eab('0xd6')!==_0x5dba96[_0x4eab('0x7f')][_0x4eab('0x118')]);if(_0x4f9a11['length']<0x1)return;const _0x227b89=Array[_0x4eab('0x38')](this[_0x4eab('0xbd')][_0x4eab('0x9c')][_0x4eab('0x58')][_0x4eab('0x9d')]())['map'](_0x4fdacf=>_0x146086[_0x4eab('0xe1')](_0x4fdacf));_0x35af0e[_0x4eab('0xe4')](_0x4f9a11);for(const _0x564e5f of this[_0x4eab('0x11c')]['commands'][_0x4eab('0xc4')]())_0x564e5f[_0x4eab('0x23')]();_0x49e4c1['push']({'forceDefaultExecution':!0x0}),this[_0x4eab('0x11c')]['execute'](_0x2e009d,..._0x49e4c1);const _0x33ee3e=_0x227b89[_0x4eab('0x142')](_0x1c768c=>_0x4eab('0xd6')!=_0x1c768c['root']['rootName']);_0x33ee3e[_0x4eab('0xb6')]>0x0&&_0x35af0e[_0x4eab('0xe4')](_0x33ee3e);for(const _0x4df490 of _0x227b89)_0x4df490[_0x4eab('0x79')]();});},_0x3c20f5=(_0x3aaba3,_0x3ad3e7)=>0x1==_0x3aaba3[_0x4eab('0xb6')]&&0x1==_0x3ad3e7[_0x4eab('0xb6')]&&_0x3aaba3[0x0][_0x4eab('0x126')][_0x4eab('0xb5')](_0x3ad3e7[0x0]['start']),_0x58a8e7=(_0x4bb672,_0x19edc8,_0x4eb2c3,_0xd7ad45)=>xt(_0x4bb672,_0x19edc8,_0x4eb2c3,_0xd7ad45,this[_0x4eab('0xbd')])?[_0x4bb672,_0x19edc8]:xt(_0x19edc8,_0x4bb672,_0xd7ad45,_0x4eb2c3,this[_0x4eab('0xbd')])?[_0x19edc8,_0x4bb672]:null;this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0xef'),_0x39a4db),this[_0x4eab('0xff')]['set']('insertion:discard',_0x22f8e6),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0x123'),_0x3c20f5),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0x37'),_0x58a8e7),this[_0x4eab('0xff')][_0x4eab('0x71')]('deletion:accept',_0x22f8e6),this['_defaultCallbacks']['set'](_0x4eab('0x13f'),_0x39a4db),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0x14'),_0x3c20f5),this['_defaultCallbacks']['set']('deletion:chain',_0x58a8e7),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0xa9'),_0x533ac6),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0x115'),_0x39a4db),this['_defaultCallbacks'][_0x4eab('0x71')](_0x4eab('0x8f'),_0x3c20f5),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0xaf'),_0x39a4db),this[_0x4eab('0xff')][_0x4eab('0x71')](_0x4eab('0x28'),_0x533ac6),this['_defaultCallbacks']['set'](_0x4eab('0x3e'),_0x39a4db),this[_0x4eab('0xff')]['set'](_0x4eab('0x138'),_0x3c20f5),this[_0x4eab('0xff')]['set']('formatBlock:chain',_0x39a4db);}}function Bt(_0x2031a,_0x55ded7,_0x594adf){for(const _0x5cb2a7 of _0x55ded7['parent'][_0x4eab('0xa3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5cb2a7[_0x4eab('0x7f')]==_0x5cb2a7)return!0x1;if(!_0x594adf['containsItem'](_0x5cb2a7))return!0x1;if(_0x2031a[_0x4eab('0xc5')](_0x5cb2a7)||_0x2031a[_0x4eab('0x10')](_0x5cb2a7))return!0x0;}return!0x1;}function _t(_0x4835d5){return _0x4835d5['end'][_0x4eab('0x3b')]==_0x4835d5[_0x4eab('0x82')][_0x4eab('0x2c')]&&_0x4835d5['end'][_0x4eab('0x122')];}function Mt(_0x58c857,_0x30ff2f,_0x577c85,_0xaa9f59){const _0x361b6f=_0x59f3f2=>!_0x59f3f2[_0x4eab('0xd0')]['is'](_0x4eab('0x10b'))&&!_0xaa9f59[_0x4eab('0xc5')](_0x59f3f2[_0x4eab('0xd0')]),_0x5a2ed6=_0x58c857[_0x4eab('0x82')]['getLastMatchingPosition'](_0x361b6f),_0x23d55e=_0x58c857[_0x4eab('0x126')][_0x4eab('0xd4')](_0x361b6f,{'direction':_0x4eab('0xf4')});return(!_0x58c857[_0x4eab('0x82')][_0x4eab('0xb5')](_0x5a2ed6)||!_0x58c857[_0x4eab('0x126')][_0x4eab('0xb5')](_0x23d55e))&&(_0x5a2ed6[_0x4eab('0xa1')](_0x23d55e)?_0x577c85[_0x4eab('0x96')](_0x30ff2f,{'range':_0x577c85[_0x4eab('0xd8')](_0x5a2ed6,_0x23d55e)}):_0x577c85['removeMarker'](_0x30ff2f),!0x0);}function $t(_0x103d28){return _0x495d88(_0x103d28);}function Nt(_0x29ec67){const _0x2d1b1a=_0x29ec67[_0x4eab('0x82')][_0x4eab('0x2c')];return _0x2d1b1a&&_0x2d1b1a['is'](_0x4eab('0x78'));}function Rt(_0x293fb0,_0x449b95){const _0x947046=_0x449b95[_0x4eab('0xf8')]['isObject'](_0x293fb0)||_0x449b95[_0x4eab('0xf8')][_0x4eab('0x56')](_0x293fb0);return _0x449b95[_0x4eab('0xd8')](_0x449b95[_0x4eab('0x57')](_0x293fb0,_0x4eab('0x13c')),_0x947046?_0x449b95['createPositionAfter'](_0x293fb0):_0x449b95[_0x4eab('0x57')](_0x293fb0,_0x4eab('0x126')));}function xt(_0x5e44e8,_0x5608a2,_0x5af8dc,_0x158f9e,_0x412787){if(_0x5af8dc['end'][_0x4eab('0xb5')](_0x158f9e[_0x4eab('0x82')]))return!0x0;if(_0x5e44e8['type']!=_0x5608a2[_0x4eab('0x3d')])return!0x1;if(!_0x5af8dc[_0x4eab('0x126')][_0x4eab('0xee')](_0x158f9e['start']))return!0x1;const _0x5c915c=_0x412787[_0x4eab('0xd8')](_0x5af8dc['end'],_0x158f9e[_0x4eab('0x82')])[_0x4eab('0xcc')]();for(const _0x3ed413 of _0x5c915c)if([_0x4eab('0xe5'),_0x4eab('0x111')][_0x4eab('0x1b')](_0x3ed413['type'])&&_0x412787[_0x4eab('0xf8')][_0x4eab('0x10')](_0x3ed413[_0x4eab('0xd0')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3960=['activeMarkers','filter','Annotations','locale','pluginName','switchbutton','TrackChangesUI','suggestion-','acceptSelectedSuggestions','reduce','_createUIButton','commands','comments','isEnabled','createAnnotation','isDirty','commandName','Discard\x20all\x20suggestions','refreshSelectedViews','remove','delete','lowest','value','arrowView','set','getDescriptions','_handleSuggestionControllerDelayed','editing','_disableComments','activeAnnotations','length','getAllAdjacentSuggestions','model','addComment','isMultiRange','_bindAnnotationToEditors','SuggestionThreadView','destroy','_initializeController','discardAllSuggestions','view','CommentsUI','_suggestionToController','define','add','Discard\x20all\x20selected\x20suggestions','isInContent','descriptionParts','separator','acceptAllSuggestions','source','plugins','_destroyController','CommentView','suggestionChanged','actionView','comments.maxThreadTotalWeight','registerAnnotation','has','execute','unbind','_updateController','button','isOn','change:activeAnnotations','map','size','listenTo','get','_handleControllerBuffer','createCommentThreadController','comments.editorConfig','type','focus','editor','_viewToController','trackChanges.SuggestionThreadView','createAnnotationView','values','hasSuggestion','getFirstRange','push','config','change:previous','innerView','_annotationViews','Accept\x20all\x20suggestions','mainView','comments.maxCommentsWhenCollapsed','buttonView','trackChanges.disableComments','previous','Accept\x20all\x20selected\x20suggestions','CommentsRepository','some','trackChanges','init','_refreshActiveMarkers','bind','clear','head','requires','EditorAnnotations','TrackChangesEditing'];(function(_0x45ae91,_0x396012){const _0x1582ea=function(_0x4d62a2){while(--_0x4d62a2){_0x45ae91['push'](_0x45ae91['shift']());}};_0x1582ea(++_0x396012);}(_0x3960,0x188));const _0x1582=function(_0x45ae91,_0x396012){_0x45ae91=_0x45ae91-0x0;let _0x1582ea=_0x3960[_0x45ae91];return _0x1582ea;};import{Plugin as _0x51493f}from'ckeditor5/src/core';import{Collection as _0x42bff6}from'ckeditor5/src/utils';import{Model as _0x4e287f,SplitButtonView as _0x5433e9,createDropdown as _0x2bde0f,addListToDropdown as _0x30e453}from'ckeditor5/src/ui';import{Users as _0x2f4eb4,getDateTimeFormatter as _0x35ece5,getAllMarkersDomElementsSorted as _0x360589}from'ckeditor5-collaboration/src/collaboration-core';import _0x10a4bf from'./trackchangesediting';import _0x33334d from'./ui/suggestioncontroller';import _0x31d097 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5f3121}from'./utils/common-translations';import _0x1ca586 from'../theme/icons/track-changes.svg';export default class d extends _0x51493f{static get[_0x1582('0x15')](){return[_0x10a4bf,_0x2f4eb4,_0x1582('0xd'),_0x1582('0x1a'),_0x1582('0x16')];}static get[_0x1582('0x1c')](){return _0x1582('0x1e');}constructor(_0x5d6a8f){super(_0x5d6a8f),this[_0x1582('0x42')]=new Map(),this[_0x1582('0x63')]=new Map(),this[_0x1582('0x5')]=new Map(),this[_0x1582('0x5d')]=new Map();const _0x3d6b75=this[_0x1582('0x62')][_0x1582('0x2')];_0x3d6b75[_0x1582('0x43')](_0x1582('0x64'),_0x31d097),_0x3d6b75['define'](_0x1582('0xa'),!0x1),this['_disableComments']=_0x3d6b75[_0x1582('0x5c')]('trackChanges.disableComments');}[_0x1582('0x32')](_0x357f23,_0x5a47b1){0x0===this[_0x1582('0x5d')][_0x1582('0x5a')]&&setTimeout(()=>{for(const [_0x35c234,_0x34c164]of this[_0x1582('0x5d')]){const _0x49af00=this[_0x1582('0x42')][_0x1582('0x52')](_0x35c234);_0x49af00||_0x34c164?_0x49af00&&_0x34c164&&this['_destroyController'](_0x35c234):this[_0x1582('0x3e')](_0x35c234);}this['editor'][_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x16'))[_0x1582('0x2a')](),this[_0x1582('0x11')](),this[_0x1582('0x5d')][_0x1582('0x13')]();},0xa),this[_0x1582('0x5d')][_0x1582('0x30')](_0x357f23,_0x5a47b1);}[_0x1582('0x10')](){const _0x43d8d8=this[_0x1582('0x62')],_0x1b5456=_0x43d8d8['plugins'][_0x1582('0x5c')](_0x1582('0x17')),_0x3b857c=_0x43d8d8[_0x1582('0x4b')][_0x1582('0x5c')]('Annotations'),_0x5bc30b=_0x43d8d8['plugins'][_0x1582('0x5c')]('EditorAnnotations'),_0x418306=_0x43d8d8[_0x1582('0x4b')][_0x1582('0x5c')]('CommentsRepository');_0x43d8d8['ui']['componentFactory'][_0x1582('0x44')](_0x1582('0xf'),_0x2dba45=>this[_0x1582('0x22')](_0x2dba45)),_0x5bc30b['addSourceCollector'](()=>{const _0x2c0797=[];for(const [_0x3d5b77,_0xe60ac4]of Array['from'](this[_0x1582('0x42')])){const _0x2936ac=_0x3d5b77[_0x1582('0x37')](),_0x27b5c8=[];for(const _0x7840c7 of _0x2936ac){if(!_0x7840c7[_0x1582('0x46')])continue;if(_0x7840c7[_0x1582('0x3a')]){_0x27b5c8['push'](..._0x7840c7['getRanges']());continue;}const _0x2702f4=_0x7840c7[_0x1582('0x0')]();if(_0x27b5c8[_0x1582('0x36')]>0x0){const _0x52d1a1=_0x27b5c8[0x0]['getJoined'](_0x2702f4);if(_0x52d1a1){_0x27b5c8[0x0]=_0x52d1a1;continue;}}_0x27b5c8[_0x1582('0x1')](_0x2702f4);}_0x2c0797[_0x1582('0x1')]([_0xe60ac4[_0x1582('0x40')],_0x27b5c8]);}return _0x2c0797;}),this[_0x1582('0x5b')](_0x1b5456,'suggestionLoaded',(_0x1a7808,_0x58dbe0)=>{this['listenTo'](_0x58dbe0,_0x1582('0x3'),(_0x5945e9,_0x356573,_0x27ce0e,_0x5db3c7)=>{_0x58dbe0[_0x1582('0x46')]&&(null==_0x27ce0e?(this[_0x1582('0x55')](_0x5db3c7[_0x1582('0x14')]),this[_0x1582('0x32')](_0x58dbe0,!0x1)):(this['_updateController'](_0x27ce0e[_0x1582('0x14')]),this['_handleSuggestionControllerDelayed'](_0x58dbe0,!0x0)));}),null===_0x58dbe0[_0x1582('0xb')]?this[_0x1582('0x32')](_0x58dbe0,!0x1):this[_0x1582('0x55')](_0x58dbe0[_0x1582('0x14')]);}),this['listenTo'](_0x1b5456,'suggestionUnloaded',(_0x3c5fe9,_0x36f304,_0x301f75)=>{this['stopListening'](_0x36f304,'change:previous'),this['_handleControllerBuffer']['delete'](_0x36f304);const _0x52dd58=_0x301f75?_0x301f75[_0x1582('0x14')]:_0x36f304,_0x112c5c=this['_suggestionToController']['get'](_0x52dd58);null!==_0x301f75&&this[_0x1582('0x55')](_0x52dd58),null===_0x301f75&&_0x112c5c&&this['_destroyController'](_0x36f304);}),this[_0x1582('0x5b')](_0x1b5456,_0x1582('0x4e'),(_0x2cfab9,_0x2ba224)=>{this[_0x1582('0x55')](_0x2ba224);}),this['listenTo'](_0x3b857c,_0x1582('0x58'),()=>{this[_0x1582('0x11')]();}),this[_0x1582('0x5b')](_0x418306,_0x1582('0x39'),(_0x477343,{threadId:_0x31fd94,isFromAdapter:_0x4d5bfd})=>{if(_0x4d5bfd||!_0x1b5456[_0x1582('0x67')](_0x31fd94))return;const _0x59e4fa=_0x1b5456['getSuggestion'](_0x31fd94);this['_suggestionToController'][_0x1582('0x5c')](_0x59e4fa)['view'][_0x1582('0x61')]();},{'priority':_0x1582('0x2d')});}[_0x1582('0x11')](){const _0x20a9e0=this[_0x1582('0x62')]['plugins'][_0x1582('0x5c')](_0x1582('0x1a')),_0x504a7a=this[_0x1582('0x62')]['plugins']['get'](_0x1582('0x17')),_0x5e939e=Array['from'](_0x20a9e0[_0x1582('0x35')],_0x17a0ec=>_0x17a0ec[_0x1582('0x4')])[_0x1582('0x19')](_0x39d5fd=>this[_0x1582('0x63')][_0x1582('0x52')](_0x39d5fd)),_0x379010=[];for(const _0x4887a9 of _0x5e939e){const _0x55cdcb=this[_0x1582('0x63')]['get'](_0x4887a9)[_0x1582('0x38')][_0x1582('0x37')]();_0x379010[_0x1582('0x1')](..._0x55cdcb[_0x1582('0x21')]((_0x280e75,_0x4d5f97)=>[..._0x280e75,..._0x4d5f97['getMarkerNames']()],[]));}_0x504a7a[_0x1582('0x18')]=_0x379010;}[_0x1582('0x22')](_0x16e485){const _0x6afeea=_0x2bde0f(_0x16e485,_0x5433e9),_0x20ea0b=this[_0x1582('0x62')][_0x1582('0x23')][_0x1582('0x5c')]('trackChanges'),_0x4f521f=_0x5f3121(_0x16e485,'Track\x20changes');_0x6afeea[_0x1582('0x9')]['set']({'tooltip':_0x4f521f,'label':_0x4f521f,'icon':_0x1ca586}),_0x6afeea[_0x1582('0x9')][_0x1582('0x12')](_0x1582('0x57'))['to'](_0x20ea0b,'value'),_0x6afeea[_0x1582('0x9')]['on'](_0x1582('0x53'),()=>{_0x20ea0b[_0x1582('0x53')](),this['editor'][_0x1582('0x33')][_0x1582('0x40')][_0x1582('0x61')]();});const _0x13dc46=new _0x42bff6(),_0x2f3229=[{'type':_0x1582('0x1d'),'model':{'withText':!0x0,'label':_0x4f521f,'commandName':_0x1582('0xf')}},{'type':_0x1582('0x48')},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0x6')),'commandName':_0x1582('0x49')}},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0xc')),'commandName':_0x1582('0x20')}},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0x29')),'commandName':_0x1582('0x3f')}},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0x45')),'commandName':'discardSelectedSuggestions'}}];for(const _0xe0fea3 of _0x2f3229){let _0x547717={'type':_0x1582('0x48')};if(_0xe0fea3[_0x1582('0x38')]){const _0x4a5f36=new _0x4e287f(_0xe0fea3[_0x1582('0x38')]),_0x1183cc=this[_0x1582('0x62')][_0x1582('0x23')][_0x1582('0x5c')](_0x4a5f36[_0x1582('0x28')]);_0x4a5f36[_0x1582('0x12')](_0x1582('0x57'),'isEnabled')['to'](_0x1183cc,_0x1582('0x2e'),_0x1582('0x25')),_0x547717={'type':_0xe0fea3[_0x1582('0x60')],'model':_0x4a5f36};}_0x13dc46[_0x1582('0x44')](_0x547717);}_0x30e453(_0x6afeea,_0x13dc46);const _0xfe291d=_0x2f3229['filter'](_0x18dcda=>null!=_0x18dcda[_0x1582('0x38')])[_0x1582('0x59')](_0x34fb01=>this['editor']['commands'][_0x1582('0x5c')](_0x34fb01[_0x1582('0x38')]['commandName'])),_0x1811c7=_0x6afeea[_0x1582('0x9')];return _0x1811c7[_0x1582('0x4f')][_0x1582('0x54')]('isEnabled'),_0x1811c7[_0x1582('0x2f')]['unbind'](_0x1582('0x25')),_0x1811c7['actionView'][_0x1582('0x12')]('isEnabled')['to'](_0x20ea0b,_0x1582('0x25')),_0x1811c7[_0x1582('0x2f')][_0x1582('0x12')](_0x1582('0x25'))['toMany'](_0xfe291d,_0x1582('0x25'),(..._0xc08020)=>_0xc08020[_0x1582('0xe')](_0x62a1e0=>_0x62a1e0)),_0x6afeea['on'](_0x1582('0x53'),_0x2a2e2b=>{this[_0x1582('0x62')]['execute'](_0x2a2e2b[_0x1582('0x4a')][_0x1582('0x28')]),this['editor'][_0x1582('0x33')][_0x1582('0x40')][_0x1582('0x61')]();}),_0x6afeea;}[_0x1582('0x3e')](_0x2a2346){const _0x505562=this[_0x1582('0x62')],_0x2e2731=_0x505562[_0x1582('0x2')],_0x435217=_0x505562[_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x1a')),_0x515045=_0x505562[_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0xd')),_0x1099b9=_0x505562['plugins'][_0x1582('0x5c')]('EditorAnnotations'),_0xe902c2=_0x505562['plugins'][_0x1582('0x5c')](_0x2f4eb4)['me'],_0x4de296=_0x2e2731[_0x1582('0x5c')]('trackChanges')[_0x1582('0x3c')],{CommentsListView:_0x11a717,CommentThreadInputView:_0x4ed63c}=_0x505562[_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x41'));let _0x315ceb,_0x57337d;this[_0x1582('0x5')][_0x1582('0x52')](_0x2a2346['id'])?(_0x57337d=this[_0x1582('0x5')][_0x1582('0x5c')](_0x2a2346['id']),_0x315ceb=_0x57337d['mainView']):(_0x315ceb=new _0x4de296(_0x505562[_0x1582('0x1b')],_0x2a2346,_0xe902c2,{'disableComments':this[_0x1582('0x34')],'editorConfig':_0x2e2731['get'](_0x1582('0x5f')),'maxCommentsWhenCollapsed':_0x2e2731[_0x1582('0x5c')](_0x1582('0x8')),'maxThreadTotalWeight':_0x2e2731['get'](_0x1582('0x50')),'maxCommentCharsWhenCollapsed':_0x2e2731[_0x1582('0x5c')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x35ece5(_0x2e2731[_0x1582('0x5c')](_0x1582('0x1b'))),'CommentView':_0x2e2731[_0x1582('0x5c')](_0x1582('0x24'))[_0x1582('0x4d')],'CommentsListView':_0x11a717,'CommentThreadInputView':_0x4ed63c}),_0x315ceb['acceptButton']['on'](_0x1582('0x53'),()=>{_0x505562['editing'][_0x1582('0x40')][_0x1582('0x61')]();}),_0x315ceb['discardButton']['on'](_0x1582('0x53'),()=>{_0x505562[_0x1582('0x33')][_0x1582('0x40')][_0x1582('0x61')]();}),_0x57337d=_0x435217[_0x1582('0x65')](this['editor'][_0x1582('0x1b')],_0x315ceb),_0x57337d['bind']('isDirty')['to'](_0x315ceb,_0x1582('0x27')),_0x57337d[_0x1582('0x12')]('length')['to'](_0x315ceb),_0x57337d['bind'](_0x1582('0x60'))['to'](_0x315ceb,_0x1582('0x60'),_0x4f821d=>_0x1582('0x1f')+_0x4f821d),this[_0x1582('0x5')]['set'](_0x2a2346['id'],_0x57337d));const _0x1edcbe=_0x515045[_0x1582('0x5e')](_0x2a2346['commentThread'],_0x315ceb),_0x284028=new _0x33334d(_0x505562,_0x2a2346,_0x315ceb,_0x1edcbe),_0x73c43f=_0x2a2346['getAllAdjacentSuggestions']()['filter'](_0x22c4e5=>_0x22c4e5['isInContent']);_0x315ceb[_0x1582('0x47')]=_0x505562[_0x1582('0x4b')]['get'](_0x1582('0x17'))['_descriptionFactory'][_0x1582('0x31')](_0x73c43f),this[_0x1582('0x42')]['set'](_0x2a2346,_0x284028),this[_0x1582('0x63')]['set'](_0x315ceb,_0x284028);const _0x8dbfb9=_0x435217[_0x1582('0x26')]({'view':_0x57337d,'target':()=>{const _0xab21c0=[],_0x21888b=_0x2a2346[_0x1582('0x37')]()[_0x1582('0x19')](_0x4aa310=>_0x4aa310[_0x1582('0x46')]);for(const _0x34d175 of _0x21888b)_0xab21c0['push'](..._0x34d175['getMarkers']());return _0x360589(_0x505562[_0x1582('0x33')],_0xab21c0);},'type':()=>_0x1582('0x1f')+_0x284028['view'][_0x1582('0x60')]});_0x515045[_0x1582('0x3b')](_0x315ceb,_0x8dbfb9),_0x435217[_0x1582('0x44')](_0x8dbfb9),_0x1099b9[_0x1582('0x51')](_0x8dbfb9);}[_0x1582('0x4c')](_0x2d978a){const _0x216758=this[_0x1582('0x62')]['plugins'][_0x1582('0x5c')]('Annotations'),_0x41482e=this[_0x1582('0x42')]['get'](_0x2d978a),_0x3dca00=_0x41482e[_0x1582('0x40')],_0x5b8ad0=_0x216758['getByInnerView'](_0x3dca00);_0x5b8ad0&&_0x216758[_0x1582('0x2b')](_0x5b8ad0),this[_0x1582('0x42')][_0x1582('0x2c')](_0x2d978a),this[_0x1582('0x63')][_0x1582('0x2c')](_0x3dca00),_0x41482e['destroy']();}['_updateController'](_0x4ea2e7){if(!_0x4ea2e7[_0x1582('0x46')]||!this['_suggestionToController'][_0x1582('0x52')](_0x4ea2e7))return;const _0x16d9be=this['editor'][_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x17')),_0x5cdece=this[_0x1582('0x42')][_0x1582('0x5c')](_0x4ea2e7),_0x45d8fb=_0x4ea2e7['getAllAdjacentSuggestions']();_0x5cdece[_0x1582('0x40')]['descriptionParts']=_0x16d9be['_descriptionFactory'][_0x1582('0x31')](_0x45d8fb);}[_0x1582('0x3d')](){for(const _0x1b8a91 of this[_0x1582('0x42')]['keys']())this[_0x1582('0x4c')](_0x1b8a91);for(const _0x3889a5 of this[_0x1582('0x5')][_0x1582('0x66')]())_0x3889a5[_0x1582('0x7')][_0x1582('0x3d')]();super['destroy']();}}
23
+ const _0x166e=['suggestion-','focus','createAnnotationView','keys','_disableComments','reduce','comments.editorConfig','componentFactory','locale','_updateController','discardAllSuggestions','isEnabled','head','listenTo','get','getSuggestion','trackChanges.disableComments','comments.maxCommentsWhenCollapsed','Track\x20changes','add','createCommentThreadController','destroy','_bindAnnotationToEditors','remove','requires','arrowView','from','isOn','set','plugins','bind','isInContent','_viewToController','view','_handleSuggestionControllerDelayed','CommentsUI','_suggestionToController','CommentView','trackChanges.SuggestionThreadView','SuggestionThreadView','Annotations','_initializeController','pluginName','size','_annotationViews','filter','Accept\x20all\x20selected\x20suggestions','define','lowest','activeMarkers','EditorAnnotations','_refreshActiveMarkers','delete','push','commentThread','separator','refreshSelectedViews','_destroyController','acceptButton','comments.maxCommentCharsWhenCollapsed','registerAnnotation','model','activeAnnotations','TrackChangesEditing','config','values','suggestionChanged','commands','suggestionLoaded','clear','trackChanges','_handleControllerBuffer','isDirty','execute','getDescriptions','addSourceCollector','getMarkerNames','mainView','addComment','acceptAllSuggestions','getAllAdjacentSuggestions','createAnnotation','_createUIButton','commandName','CommentsRepository','innerView','_descriptionFactory','hasSuggestion','change:previous','TrackChangesUI','descriptionParts','switchbutton','init','change:activeAnnotations','editing','getByInnerView','buttonView','value','acceptSelectedSuggestions','unbind','Discard\x20all\x20suggestions','editor','button','getRanges','type','has','toMany','previous','getFirstRange'];(function(_0x396fc3,_0x166e3a){const _0x4cf326=function(_0x567a66){while(--_0x567a66){_0x396fc3['push'](_0x396fc3['shift']());}};_0x4cf326(++_0x166e3a);}(_0x166e,0x155));const _0x4cf3=function(_0x396fc3,_0x166e3a){_0x396fc3=_0x396fc3-0x0;let _0x4cf326=_0x166e[_0x396fc3];return _0x4cf326;};import{Plugin as _0x3201e8}from'ckeditor5/src/core';import{Collection as _0x371216}from'ckeditor5/src/utils';import{Model as _0x3cb6b9,SplitButtonView as _0x41a3b8,createDropdown as _0xaa9423,addListToDropdown as _0x53595a}from'ckeditor5/src/ui';import{Users as _0xf2c13e,getDateTimeFormatter as _0x149a10,getAllMarkersDomElementsSorted as _0x606fc0}from'ckeditor5-collaboration/src/collaboration-core';import _0x1a3aed from'./trackchangesediting';import _0x25e61a from'./ui/suggestioncontroller';import _0x6ae645 from'./ui/view/suggestionthreadview';import{getTranslation as _0x270c3a}from'./utils/common-translations';import _0x382d04 from'../theme/icons/track-changes.svg';export default class d extends _0x3201e8{static get[_0x4cf3('0xa')](){return[_0x1a3aed,_0xf2c13e,_0x4cf3('0x46'),'Annotations',_0x4cf3('0x24')];}static get[_0x4cf3('0x1c')](){return _0x4cf3('0x4b');}constructor(_0x4d1e73){super(_0x4d1e73),this[_0x4cf3('0x16')]=new Map(),this[_0x4cf3('0x12')]=new Map(),this['_annotationViews']=new Map(),this[_0x4cf3('0x39')]=new Map();const _0x311875=this[_0x4cf3('0x57')]['config'];_0x311875[_0x4cf3('0x21')](_0x4cf3('0x18'),_0x6ae645),_0x311875[_0x4cf3('0x21')](_0x4cf3('0x2'),!0x1),this[_0x4cf3('0x63')]=_0x311875['get'](_0x4cf3('0x2'));}[_0x4cf3('0x14')](_0x333150,_0xfb0af3){0x0===this[_0x4cf3('0x39')][_0x4cf3('0x1d')]&&setTimeout(()=>{for(const [_0x349665,_0x508bf7]of this[_0x4cf3('0x39')]){const _0x3a958e=this[_0x4cf3('0x16')][_0x4cf3('0x5b')](_0x349665);_0x3a958e||_0x508bf7?_0x3a958e&&_0x508bf7&&this['_destroyController'](_0x349665):this[_0x4cf3('0x1b')](_0x349665);}this[_0x4cf3('0x57')][_0x4cf3('0xf')][_0x4cf3('0x0')](_0x4cf3('0x24'))[_0x4cf3('0x2a')](),this['_refreshActiveMarkers'](),this[_0x4cf3('0x39')][_0x4cf3('0x37')]();},0xa),this['_handleControllerBuffer']['set'](_0x333150,_0xfb0af3);}[_0x4cf3('0x4e')](){const _0xe6167c=this[_0x4cf3('0x57')],_0x1d15bf=_0xe6167c[_0x4cf3('0xf')]['get'](_0x4cf3('0x31')),_0x2869cc=_0xe6167c[_0x4cf3('0xf')][_0x4cf3('0x0')](_0x4cf3('0x1a')),_0x2022bf=_0xe6167c[_0x4cf3('0xf')][_0x4cf3('0x0')]('EditorAnnotations'),_0x9438a7=_0xe6167c['plugins'][_0x4cf3('0x0')](_0x4cf3('0x46'));_0xe6167c['ui'][_0x4cf3('0x66')][_0x4cf3('0x5')](_0x4cf3('0x38'),_0x2f5d46=>this[_0x4cf3('0x44')](_0x2f5d46)),_0x2022bf[_0x4cf3('0x3d')](()=>{const _0xf37c0c=[];for(const [_0x52d135,_0x468236]of Array[_0x4cf3('0xc')](this[_0x4cf3('0x16')])){const _0x515532=_0x52d135['getAllAdjacentSuggestions'](),_0x2c144a=[];for(const _0x3a7943 of _0x515532){if(!_0x3a7943['isInContent'])continue;if(_0x3a7943['isMultiRange']){_0x2c144a['push'](..._0x3a7943[_0x4cf3('0x59')]());continue;}const _0x18daf8=_0x3a7943[_0x4cf3('0x5e')]();if(_0x2c144a['length']>0x0){const _0x183d19=_0x2c144a[0x0]['getJoined'](_0x18daf8);if(_0x183d19){_0x2c144a[0x0]=_0x183d19;continue;}}_0x2c144a[_0x4cf3('0x27')](_0x18daf8);}_0xf37c0c[_0x4cf3('0x27')]([_0x468236[_0x4cf3('0x13')],_0x2c144a]);}return _0xf37c0c;}),this[_0x4cf3('0x6c')](_0x1d15bf,_0x4cf3('0x36'),(_0x48730e,_0x376c2c)=>{this[_0x4cf3('0x6c')](_0x376c2c,_0x4cf3('0x4a'),(_0x36bbe1,_0x2bb4d2,_0x521fde,_0x275b81)=>{_0x376c2c[_0x4cf3('0x11')]&&(null==_0x521fde?(this[_0x4cf3('0x68')](_0x275b81[_0x4cf3('0x6b')]),this['_handleSuggestionControllerDelayed'](_0x376c2c,!0x1)):(this[_0x4cf3('0x68')](_0x521fde['head']),this[_0x4cf3('0x14')](_0x376c2c,!0x0)));}),null===_0x376c2c[_0x4cf3('0x5d')]?this[_0x4cf3('0x14')](_0x376c2c,!0x1):this['_updateController'](_0x376c2c[_0x4cf3('0x6b')]);}),this['listenTo'](_0x1d15bf,'suggestionUnloaded',(_0x299232,_0xaebf59,_0x90a606)=>{this['stopListening'](_0xaebf59,'change:previous'),this['_handleControllerBuffer'][_0x4cf3('0x26')](_0xaebf59);const _0x23c48a=_0x90a606?_0x90a606[_0x4cf3('0x6b')]:_0xaebf59,_0x2087ea=this[_0x4cf3('0x16')]['get'](_0x23c48a);null!==_0x90a606&&this[_0x4cf3('0x68')](_0x23c48a),null===_0x90a606&&_0x2087ea&&this[_0x4cf3('0x2b')](_0xaebf59);}),this[_0x4cf3('0x6c')](_0x1d15bf,_0x4cf3('0x34'),(_0x3683b7,_0x2052c1)=>{this['_updateController'](_0x2052c1);}),this[_0x4cf3('0x6c')](_0x2869cc,_0x4cf3('0x4f'),()=>{this[_0x4cf3('0x25')]();}),this['listenTo'](_0x9438a7,_0x4cf3('0x40'),(_0x1e0bc5,{threadId:_0xf2c358,isFromAdapter:_0x1794e5})=>{if(_0x1794e5||!_0x1d15bf[_0x4cf3('0x49')](_0xf2c358))return;const _0x2cbdd3=_0x1d15bf[_0x4cf3('0x1')](_0xf2c358);this[_0x4cf3('0x16')][_0x4cf3('0x0')](_0x2cbdd3)[_0x4cf3('0x13')][_0x4cf3('0x60')]();},{'priority':_0x4cf3('0x22')});}[_0x4cf3('0x25')](){const _0x474157=this[_0x4cf3('0x57')][_0x4cf3('0xf')][_0x4cf3('0x0')]('Annotations'),_0x4dc2c7=this['editor'][_0x4cf3('0xf')][_0x4cf3('0x0')]('TrackChangesEditing'),_0x35588b=Array[_0x4cf3('0xc')](_0x474157[_0x4cf3('0x30')],_0x5a4fc1=>_0x5a4fc1[_0x4cf3('0x47')])[_0x4cf3('0x1f')](_0x5a820d=>this['_viewToController'][_0x4cf3('0x5b')](_0x5a820d)),_0x1fb224=[];for(const _0x6f7375 of _0x35588b){const _0x491621=this[_0x4cf3('0x12')][_0x4cf3('0x0')](_0x6f7375)[_0x4cf3('0x2f')][_0x4cf3('0x42')]();_0x1fb224['push'](..._0x491621[_0x4cf3('0x64')]((_0x2fd583,_0x100d17)=>[..._0x2fd583,..._0x100d17[_0x4cf3('0x3e')]()],[]));}_0x4dc2c7[_0x4cf3('0x23')]=_0x1fb224;}[_0x4cf3('0x44')](_0x59099e){const _0xe43268=_0xaa9423(_0x59099e,_0x41a3b8),_0x1113ea=this[_0x4cf3('0x57')][_0x4cf3('0x35')][_0x4cf3('0x0')](_0x4cf3('0x38')),_0x335d1b=_0x270c3a(_0x59099e,_0x4cf3('0x4'));_0xe43268[_0x4cf3('0x52')][_0x4cf3('0xe')]({'tooltip':_0x335d1b,'label':_0x335d1b,'icon':_0x382d04}),_0xe43268[_0x4cf3('0x52')][_0x4cf3('0x10')](_0x4cf3('0xd'))['to'](_0x1113ea,_0x4cf3('0x53')),_0xe43268[_0x4cf3('0x52')]['on'](_0x4cf3('0x3b'),()=>{_0x1113ea['execute'](),this[_0x4cf3('0x57')][_0x4cf3('0x50')]['view'][_0x4cf3('0x60')]();});const _0x2ba6dc=new _0x371216(),_0x4b1739=[{'type':_0x4cf3('0x4d'),'model':{'withText':!0x0,'label':_0x335d1b,'commandName':_0x4cf3('0x38')}},{'type':_0x4cf3('0x29')},{'type':'button','model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,'Accept\x20all\x20suggestions'),'commandName':_0x4cf3('0x41')}},{'type':'button','model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,_0x4cf3('0x20')),'commandName':_0x4cf3('0x54')}},{'type':_0x4cf3('0x58'),'model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,_0x4cf3('0x56')),'commandName':_0x4cf3('0x69')}},{'type':_0x4cf3('0x58'),'model':{'withText':!0x0,'label':_0x270c3a(_0x59099e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0xa8fe54 of _0x4b1739){let _0x569624={'type':_0x4cf3('0x29')};if(_0xa8fe54[_0x4cf3('0x2f')]){const _0x3d1ebb=new _0x3cb6b9(_0xa8fe54['model']),_0x1b06f1=this[_0x4cf3('0x57')][_0x4cf3('0x35')][_0x4cf3('0x0')](_0x3d1ebb['commandName']);_0x3d1ebb[_0x4cf3('0x10')](_0x4cf3('0xd'),_0x4cf3('0x6a'))['to'](_0x1b06f1,_0x4cf3('0x53'),_0x4cf3('0x6a')),_0x569624={'type':_0xa8fe54[_0x4cf3('0x5a')],'model':_0x3d1ebb};}_0x2ba6dc[_0x4cf3('0x5')](_0x569624);}_0x53595a(_0xe43268,_0x2ba6dc);const _0x242f88=_0x4b1739['filter'](_0x5a82ee=>null!=_0x5a82ee[_0x4cf3('0x2f')])['map'](_0x57f04c=>this[_0x4cf3('0x57')][_0x4cf3('0x35')]['get'](_0x57f04c['model'][_0x4cf3('0x45')])),_0x32ddbd=_0xe43268['buttonView'];return _0x32ddbd['actionView'][_0x4cf3('0x55')](_0x4cf3('0x6a')),_0x32ddbd[_0x4cf3('0xb')]['unbind'](_0x4cf3('0x6a')),_0x32ddbd['actionView'][_0x4cf3('0x10')](_0x4cf3('0x6a'))['to'](_0x1113ea,'isEnabled'),_0x32ddbd[_0x4cf3('0xb')][_0x4cf3('0x10')](_0x4cf3('0x6a'))[_0x4cf3('0x5c')](_0x242f88,_0x4cf3('0x6a'),(..._0x1e3071)=>_0x1e3071['some'](_0x4b4d73=>_0x4b4d73)),_0xe43268['on'](_0x4cf3('0x3b'),_0x234306=>{this[_0x4cf3('0x57')][_0x4cf3('0x3b')](_0x234306['source'][_0x4cf3('0x45')]),this[_0x4cf3('0x57')][_0x4cf3('0x50')]['view'][_0x4cf3('0x60')]();}),_0xe43268;}['_initializeController'](_0x26b19f){const _0x282729=this['editor'],_0x409eb5=_0x282729[_0x4cf3('0x32')],_0x9f3a40=_0x282729[_0x4cf3('0xf')][_0x4cf3('0x0')](_0x4cf3('0x1a')),_0x37cc7e=_0x282729['plugins'][_0x4cf3('0x0')](_0x4cf3('0x46')),_0x1799e4=_0x282729[_0x4cf3('0xf')]['get'](_0x4cf3('0x24')),_0x540f22=_0x282729[_0x4cf3('0xf')][_0x4cf3('0x0')](_0xf2c13e)['me'],_0x5958cc=_0x409eb5[_0x4cf3('0x0')](_0x4cf3('0x38'))[_0x4cf3('0x19')],{CommentsListView:_0x122e48,CommentThreadInputView:_0x5cc8cd}=_0x282729[_0x4cf3('0xf')]['get'](_0x4cf3('0x15'));let _0x5420ba,_0x38ae83;this['_annotationViews'][_0x4cf3('0x5b')](_0x26b19f['id'])?(_0x38ae83=this['_annotationViews'][_0x4cf3('0x0')](_0x26b19f['id']),_0x5420ba=_0x38ae83[_0x4cf3('0x3f')]):(_0x5420ba=new _0x5958cc(_0x282729[_0x4cf3('0x67')],_0x26b19f,_0x540f22,{'disableComments':this[_0x4cf3('0x63')],'editorConfig':_0x409eb5['get'](_0x4cf3('0x65')),'maxCommentsWhenCollapsed':_0x409eb5[_0x4cf3('0x0')](_0x4cf3('0x3')),'maxThreadTotalWeight':_0x409eb5[_0x4cf3('0x0')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x409eb5['get'](_0x4cf3('0x2d')),'formatDateTime':_0x149a10(_0x409eb5[_0x4cf3('0x0')](_0x4cf3('0x67'))),'CommentView':_0x409eb5[_0x4cf3('0x0')]('comments')[_0x4cf3('0x17')],'CommentsListView':_0x122e48,'CommentThreadInputView':_0x5cc8cd}),_0x5420ba[_0x4cf3('0x2c')]['on'](_0x4cf3('0x3b'),()=>{_0x282729['editing'][_0x4cf3('0x13')]['focus']();}),_0x5420ba['discardButton']['on']('execute',()=>{_0x282729['editing'][_0x4cf3('0x13')][_0x4cf3('0x60')]();}),_0x38ae83=_0x9f3a40[_0x4cf3('0x61')](this['editor']['locale'],_0x5420ba),_0x38ae83[_0x4cf3('0x10')](_0x4cf3('0x3a'))['to'](_0x5420ba,_0x4cf3('0x3a')),_0x38ae83[_0x4cf3('0x10')]('length')['to'](_0x5420ba),_0x38ae83[_0x4cf3('0x10')](_0x4cf3('0x5a'))['to'](_0x5420ba,'type',_0x256422=>'suggestion-'+_0x256422),this['_annotationViews'][_0x4cf3('0xe')](_0x26b19f['id'],_0x38ae83));const _0x474264=_0x37cc7e[_0x4cf3('0x6')](_0x26b19f[_0x4cf3('0x28')],_0x5420ba),_0x4c013d=new _0x25e61a(_0x282729,_0x26b19f,_0x5420ba,_0x474264),_0x42e2d2=_0x26b19f[_0x4cf3('0x42')]()[_0x4cf3('0x1f')](_0x5aa274=>_0x5aa274[_0x4cf3('0x11')]);_0x5420ba['descriptionParts']=_0x282729[_0x4cf3('0xf')]['get'](_0x4cf3('0x31'))[_0x4cf3('0x48')]['getDescriptions'](_0x42e2d2),this[_0x4cf3('0x16')]['set'](_0x26b19f,_0x4c013d),this[_0x4cf3('0x12')]['set'](_0x5420ba,_0x4c013d);const _0x45cec1=_0x9f3a40[_0x4cf3('0x43')]({'view':_0x38ae83,'target':()=>{const _0x408c55=[],_0x562945=_0x26b19f['getAllAdjacentSuggestions']()[_0x4cf3('0x1f')](_0x2d9763=>_0x2d9763[_0x4cf3('0x11')]);for(const _0x21a39b of _0x562945)_0x408c55[_0x4cf3('0x27')](..._0x21a39b['getMarkers']());return _0x606fc0(_0x282729['editing'],_0x408c55);},'type':()=>_0x4cf3('0x5f')+_0x4c013d[_0x4cf3('0x13')][_0x4cf3('0x5a')]});_0x37cc7e[_0x4cf3('0x8')](_0x5420ba,_0x45cec1),_0x9f3a40['add'](_0x45cec1),_0x1799e4[_0x4cf3('0x2e')](_0x45cec1);}[_0x4cf3('0x2b')](_0x492887){const _0x19e6eb=this[_0x4cf3('0x57')][_0x4cf3('0xf')][_0x4cf3('0x0')]('Annotations'),_0x46e871=this[_0x4cf3('0x16')][_0x4cf3('0x0')](_0x492887),_0x267b54=_0x46e871[_0x4cf3('0x13')],_0x54ef6d=_0x19e6eb[_0x4cf3('0x51')](_0x267b54);_0x54ef6d&&_0x19e6eb[_0x4cf3('0x9')](_0x54ef6d),this[_0x4cf3('0x16')][_0x4cf3('0x26')](_0x492887),this[_0x4cf3('0x12')][_0x4cf3('0x26')](_0x267b54),_0x46e871[_0x4cf3('0x7')]();}['_updateController'](_0x4797d3){if(!_0x4797d3[_0x4cf3('0x11')]||!this[_0x4cf3('0x16')][_0x4cf3('0x5b')](_0x4797d3))return;const _0x2c55b3=this['editor']['plugins'][_0x4cf3('0x0')](_0x4cf3('0x31')),_0x2dc50f=this['_suggestionToController'][_0x4cf3('0x0')](_0x4797d3),_0xd650d6=_0x4797d3[_0x4cf3('0x42')]();_0x2dc50f[_0x4cf3('0x13')][_0x4cf3('0x4c')]=_0x2c55b3[_0x4cf3('0x48')][_0x4cf3('0x3c')](_0xd650d6);}[_0x4cf3('0x7')](){for(const _0xfb3118 of this[_0x4cf3('0x16')][_0x4cf3('0x62')]())this['_destroyController'](_0xfb3118);for(const _0x128771 of this[_0x4cf3('0x1e')][_0x4cf3('0x33')]())_0x128771[_0x4cf3('0x3f')][_0x4cf3('0x7')]();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1428=['_pendingAction','execute','plugins','view','getRanges','commands','canEditAt','unbind','listenTo','locale','add','destroy','isDirty','remove','discardSuggestion','canAccept','get','commentThreadController','bind','stopListening','_setPendingAction','_discardCommand','_acceptCommand','isEnabled','_editor','PendingActions','acceptSuggestion','change:isDirty','model','_removePendingAction'];(function(_0x58c12e,_0x1428a0){const _0xe51742=function(_0x54e18e){while(--_0x54e18e){_0x58c12e['push'](_0x58c12e['shift']());}};_0xe51742(++_0x1428a0);}(_0x1428,0x1d9));const _0xe517=function(_0x58c12e,_0x1428a0){_0x58c12e=_0x58c12e-0x0;let _0xe51742=_0x1428[_0x58c12e];return _0xe51742;};import{ObservableMixin as _0x2d0cfb}from'ckeditor5/src/utils';import{getTranslation as _0x3ed540}from'../utils/common-translations';export default class qt extends _0x2d0cfb(){constructor(_0x26b9f2,_0x8fbd8,_0x3b1b9b,_0x100709){super(),this['model']=_0x8fbd8,this[_0xe517('0xa')]=_0x3b1b9b,this[_0xe517('0x18')]=_0x100709,this[_0xe517('0x1')]=_0x26b9f2,this['_acceptCommand']=_0x26b9f2[_0xe517('0xc')][_0xe517('0x17')](_0xe517('0x3')),this['_discardCommand']=_0x26b9f2['commands'][_0xe517('0x17')](_0xe517('0x15')),this[_0xe517('0xa')][_0xe517('0x19')](_0xe517('0x0'))['to'](this['_acceptCommand'],this[_0xe517('0x1c')],(_0x438d8c,_0x238546)=>_0x438d8c||_0x238546),this[_0xe517('0xa')][_0xe517('0x19')]('canAccept')['to'](this[_0xe517('0x1d')],_0xe517('0x0'),_0x345eae=>_0x345eae&&this[_0xe517('0x1')][_0xe517('0x5')][_0xe517('0xd')](_0x8fbd8[_0xe517('0xb')]())),this[_0xe517('0xa')][_0xe517('0x19')]('canDiscard')['to'](this[_0xe517('0x1c')],_0xe517('0x0'),_0x39d9e3=>_0x39d9e3&&this[_0xe517('0x1')][_0xe517('0x5')]['canEditAt'](_0x8fbd8[_0xe517('0xb')]())),this[_0xe517('0x7')]=null,_0x3b1b9b[_0xe517('0x13')]&&this[_0xe517('0x1b')](),this[_0xe517('0xf')](_0x3b1b9b,'acceptSuggestion',()=>this[_0xe517('0x3')]()),this[_0xe517('0xf')](_0x3b1b9b,_0xe517('0x15'),()=>this[_0xe517('0x15')]()),this['listenTo'](_0x3b1b9b,_0xe517('0x4'),()=>{_0x3b1b9b[_0xe517('0x13')]?this[_0xe517('0x1b')]():this['_removePendingAction']();});}[_0xe517('0x3')](){this['_acceptCommand'][_0xe517('0x8')](this[_0xe517('0x5')]['id']);}[_0xe517('0x15')](){this[_0xe517('0x1c')]['execute'](this[_0xe517('0x5')]['id']);}[_0xe517('0x12')](){this[_0xe517('0xa')]['unbind'](_0xe517('0x0')),this['view'][_0xe517('0xe')](_0xe517('0x16')),this['view'][_0xe517('0xe')]('canDiscard'),this[_0xe517('0x1a')](),this[_0xe517('0x18')][_0xe517('0x12')](),this[_0xe517('0x7')]&&this[_0xe517('0x6')]();}['_setPendingAction'](){const _0x35a326=_0x3ed540(this[_0xe517('0x1')][_0xe517('0x10')],'PENDING_ACTION_SUGGESTION');this[_0xe517('0x7')]=this[_0xe517('0x1')][_0xe517('0x9')][_0xe517('0x17')](_0xe517('0x2'))[_0xe517('0x11')](_0x35a326);}[_0xe517('0x6')](){null!==this[_0xe517('0x7')]&&this['_editor'][_0xe517('0x9')][_0xe517('0x17')](_0xe517('0x2'))[_0xe517('0x14')](this[_0xe517('0x7')]),this[_0xe517('0x7')]=null;}}
23
+ const _0x44b2=['commands','model','change:isDirty','canDiscard','_setPendingAction','_acceptCommand','commentThreadController','get','getRanges','unbind','canEditAt','canAccept','listenTo','isEnabled','discardSuggestion','PENDING_ACTION_SUGGESTION','plugins','PendingActions','bind','destroy','view','_discardCommand','_removePendingAction','stopListening','_editor','execute','_pendingAction','acceptSuggestion','remove'];(function(_0x390914,_0x44b250){const _0x439563=function(_0x720309){while(--_0x720309){_0x390914['push'](_0x390914['shift']());}};_0x439563(++_0x44b250);}(_0x44b2,0x153));const _0x4395=function(_0x390914,_0x44b250){_0x390914=_0x390914-0x0;let _0x439563=_0x44b2[_0x390914];return _0x439563;};import{ObservableMixin as _0x474ce5}from'ckeditor5/src/utils';import{getTranslation as _0x1b0fc5}from'../utils/common-translations';export default class qt extends _0x474ce5(){constructor(_0x4be6be,_0xcdc9ac,_0x209c7,_0xd67f09){super(),this[_0x4395('0xa')]=_0xcdc9ac,this['view']=_0x209c7,this[_0x4395('0xf')]=_0xd67f09,this[_0x4395('0x4')]=_0x4be6be,this[_0x4395('0xe')]=_0x4be6be[_0x4395('0x9')][_0x4395('0x10')](_0x4395('0x7')),this['_discardCommand']=_0x4be6be[_0x4395('0x9')]['get'](_0x4395('0x17')),this[_0x4395('0x0')][_0x4395('0x1b')](_0x4395('0x16'))['to'](this[_0x4395('0xe')],this[_0x4395('0x1')],(_0x5eec3b,_0x263845)=>_0x5eec3b||_0x263845),this[_0x4395('0x0')][_0x4395('0x1b')](_0x4395('0x14'))['to'](this['_acceptCommand'],'isEnabled',_0x39969c=>_0x39969c&&this['_editor'][_0x4395('0xa')]['canEditAt'](_0xcdc9ac[_0x4395('0x11')]())),this[_0x4395('0x0')]['bind'](_0x4395('0xc'))['to'](this['_discardCommand'],_0x4395('0x16'),_0x18c855=>_0x18c855&&this[_0x4395('0x4')][_0x4395('0xa')][_0x4395('0x13')](_0xcdc9ac[_0x4395('0x11')]())),this['_pendingAction']=null,_0x209c7['isDirty']&&this['_setPendingAction'](),this[_0x4395('0x15')](_0x209c7,_0x4395('0x7'),()=>this[_0x4395('0x7')]()),this['listenTo'](_0x209c7,'discardSuggestion',()=>this[_0x4395('0x17')]()),this['listenTo'](_0x209c7,_0x4395('0xb'),()=>{_0x209c7['isDirty']?this[_0x4395('0xd')]():this[_0x4395('0x2')]();});}['acceptSuggestion'](){this[_0x4395('0xe')][_0x4395('0x5')](this['model']['id']);}[_0x4395('0x17')](){this[_0x4395('0x1')][_0x4395('0x5')](this[_0x4395('0xa')]['id']);}[_0x4395('0x1c')](){this[_0x4395('0x0')][_0x4395('0x12')](_0x4395('0x16')),this[_0x4395('0x0')][_0x4395('0x12')](_0x4395('0x14')),this[_0x4395('0x0')][_0x4395('0x12')]('canDiscard'),this[_0x4395('0x3')](),this['commentThreadController'][_0x4395('0x1c')](),this['_pendingAction']&&this[_0x4395('0x2')]();}[_0x4395('0xd')](){const _0x3b7ead=_0x1b0fc5(this['_editor']['locale'],_0x4395('0x18'));this[_0x4395('0x6')]=this['_editor'][_0x4395('0x19')]['get']('PendingActions')['add'](_0x3b7ead);}[_0x4395('0x2')](){null!==this[_0x4395('0x6')]&&this[_0x4395('0x4')][_0x4395('0x19')][_0x4395('0x10')](_0x4395('0x1a'))[_0x4395('0x8')](this['_pendingAction']),this[_0x4395('0x6')]=null;}}