@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230727.0 → 0.0.0-nightly-20230728.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 (68) hide show
  1. package/build/track-changes.js +1 -1
  2. package/build/translations/gl.js +1 -1
  3. package/build/translations/sq.js +1 -0
  4. package/lang/translations/gl.po +23 -23
  5. package/lang/translations/sq.po +487 -0
  6. package/package.json +3 -3
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.js +1 -1
  9. package/src/commands/executeonallsuggestionscommand.js +1 -1
  10. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  11. package/src/commands/trackchangescommand.js +1 -1
  12. package/src/integrations/alignment.js +1 -1
  13. package/src/integrations/basicstyles.js +1 -1
  14. package/src/integrations/blockquote.js +1 -1
  15. package/src/integrations/ckbox.js +1 -1
  16. package/src/integrations/codeblock.js +1 -1
  17. package/src/integrations/comments.js +1 -1
  18. package/src/integrations/deletecommand.js +1 -1
  19. package/src/integrations/documentlist.js +1 -1
  20. package/src/integrations/documentlistproperties.js +1 -1
  21. package/src/integrations/entercommand.js +1 -1
  22. package/src/integrations/findandreplace.js +1 -1
  23. package/src/integrations/font.js +1 -1
  24. package/src/integrations/formatpainter.js +1 -1
  25. package/src/integrations/heading.js +1 -1
  26. package/src/integrations/highlight.js +1 -1
  27. package/src/integrations/horizontalline.js +1 -1
  28. package/src/integrations/htmlembed.js +1 -1
  29. package/src/integrations/image.js +1 -1
  30. package/src/integrations/imagereplace.js +1 -1
  31. package/src/integrations/importword.js +1 -1
  32. package/src/integrations/indent.js +1 -1
  33. package/src/integrations/inputcommand.js +1 -1
  34. package/src/integrations/link.js +1 -1
  35. package/src/integrations/list.js +1 -1
  36. package/src/integrations/listproperties.js +1 -1
  37. package/src/integrations/mediaembed.js +1 -1
  38. package/src/integrations/mention.js +1 -1
  39. package/src/integrations/pagebreak.js +1 -1
  40. package/src/integrations/paragraph.js +1 -1
  41. package/src/integrations/removeformat.js +1 -1
  42. package/src/integrations/restrictededitingmode.js +1 -1
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.js +1 -1
  48. package/src/integrations/tableclipboard.js +1 -1
  49. package/src/integrations/tablecolumnresize.js +1 -1
  50. package/src/integrations/tableheadings.js +1 -1
  51. package/src/integrations/tablemergesplit.js +1 -1
  52. package/src/integrations/tableofcontents.js +1 -1
  53. package/src/integrations/tableproperties.js +1 -1
  54. package/src/integrations/template.js +1 -1
  55. package/src/integrations/title.js +1 -1
  56. package/src/integrations/undo.js +1 -1
  57. package/src/integrations/utils.js +1 -1
  58. package/src/suggestion.js +1 -1
  59. package/src/suggestiondescriptionfactory.js +1 -1
  60. package/src/trackchanges.js +1 -1
  61. package/src/trackchangesdata.js +1 -1
  62. package/src/trackchangesediting.js +1 -1
  63. package/src/trackchangesui.js +1 -1
  64. package/src/ui/suggestioncontroller.js +1 -1
  65. package/src/ui/view/basesuggestionthreadview.js +1 -1
  66. package/src/ui/view/suggestionthreadview.js +1 -1
  67. package/src/utils/common-translations.js +1 -1
  68. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3049=['_setSuggestionData','originalSuggestionId','reconvertMarker','addMarker:suggestion','return','getMarkers','data-suggestion','position','markers','size','toJSON','suggestion','name','moveTargetPosition','updateMarker','insertion:discard','getLastMatchingPosition','change:_saved','enqueueChange','rootName','conversion','widget','_isForcedDefaultExecutionBlock','_updateSuggestionData','some','registerPostFixer','createSelection','filter','has','formatBlock:join','never','track-changes-suggestion-not-found','item','consume','_refreshSuggestionsChain','addSuggestion','forceDefaultExecution','markerReady','isCollapsed','removeMarkers','deletion','resolve','subType','delete','updateSuggestion','suggestion-type','removeAttribute','PENDING_ACTION_SUGGESTION','isInsideObject','listenTo','sort','_joinWithAdjacentSuggestions','hasSuggestion','getRanges','authoredAt','getItems','_enabledCommands','removed','markerName','addClass','open','unbindElementFromMarkerName','_removeSuggestion','backward','removeComment','splitPosition','_splitMarkerName','differ','containerElement','locale','formatBlock:','document','data','documentSelection','getMultiRangeId','insertion:accept','getFirstMarker','deleteContent','_rangeIsInLocalUserInsertion','ck-suggestion-marker--active','insertion:join','external:','howMany','_descriptionFactory','markDeletion','add','oldRange','insertion:chain','splice','isInContent','requires','previous','suggestionLoaded','getChangedMarkers','forward','clone','formatInline:discard','TrackChangesEditing','removeClass','newRange','selection','set','getAllAdjacentSuggestions','isUndo','_addThreadToSuggestion','rejected','_adapter','getSuggestionCallback','targetPosition','_getExternalAuthor','ck-suggestion-marker-','addCommentThread','every','join','isAfter','split','skipNestingCheck','head','createPositionAt','isOwn','_customCallbacks','root','marker-count','range','_suggestionFactory','low','dataDowncast','discard','addRange','registerCustomCallback','editor','deletion:','formatBlock:discard','init','_saved','getSuggestion','getFirstRange','createPositionAfter','execute','dataReady','suggestionChanged','multi','_registerDefaultCallbacks','multipleBlocks','markBlockFormat','CommentsRepository','chain','acceptSuggestion','_checkSuggestionCorrectness','setSelection','markMultiRangeInsertion','remove','discardAllSuggestions','detach','markInsertion','options','formatBlock:accept','always','addMarker:suggestion:formatBlock','collaboration.channelId','createRangeIn','isRemovable','getNearestSelectionRange','mapper','getUser','lowest','length','insertion','markerToData','accept','author','parent','insertContent','element','addSuggestionData','formatBlock:chain','addMarkerName','isIntersectingWithRange','_trackFormatChanges','change:activeMarkers','formatGroupId','from','fire','formatBlock','value','trackChangesCommand','nodeAfter','refresh','nodeBefore','formatInline:accept','authorName','@external','markerToHighlight','then','_commentsRepository','hasComments','PendingActions','getChanges','fromRange','_suggestionState','isLimit','_getAuthorFromId','isAtStart','batch','markerNameToElements','showSuggestionHighlights','values','_findSuggestions','addMarker','addHighlight','getCommentThread','isEqual','push','_suggestions','attributes','before','_joinSuggestions','createdAt','deletion:chain','buildSuggestion','rethrowUnexpectedError','map','discardSuggestion','commandName','containsPosition','elementStart','plugins','Users','creator','isAtEnd','isObject','editingDowncast','_mergeNestedSuggestions','_model','$graveyard','normal','_setSuggestionRange','isTouching','bindElementToMarker','getIntersection','setAttribute','commentThread','discardSelectedSuggestions','_defaultCallbacks','getAttribute','getCustomProperty','isMultiRange','formatInline','upcast','enableCommand','deletion:discard','stop','createRange','ready','formatInline:','get','toViewElement','next','isNextTo','$textProxy','isBefore','markMultiRangeBlockFormat','containsRangeInObject','for','editing','change','isBlock','_handleNewSuggestionMarker','schema','start','fetchCommentThread','change:data','_cutOutSuggestionMarker','getDifference','accepted','getSuggestions','high','includes','getWalker','type','fromCharCode','ck-suggestion-marker-formatBlock','config','insert','setTo','ck-suggestion-marker','_getSuggestionData','containsRange','writer','getShiftedBy','track-changes-suggestion-data-mismatch','unbind','deletion:join','deletion:accept','_createSuggestion','activeMarkers','_addSuggestionMarker','commands','track-changes-adapter-already-set','clear','end','enableReadOnlyMode','model','consumable','trackChanges.trackFormatChanges','acceptAllSuggestions','removeMarker','after','trackChanges.mergeNestedSuggestions'];(function(_0xf8b093,_0x304949){const _0x4786a=function(_0x438302){while(--_0x438302){_0xf8b093['push'](_0xf8b093['shift']());}};_0x4786a(++_0x304949);}(_0x3049,0xa5));const _0x4786=function(_0xf8b093,_0x304949){_0xf8b093=_0xf8b093-0x0;let _0x4786a=_0x3049[_0xf8b093];return _0x4786a;};import{Plugin as _0x11ea56,PendingActions as _0x5cfec0}from'ckeditor5/src/core';import{LiveRange as _0x4f9b9d}from'ckeditor5/src/engine';import{CKEditorError as _0x166ded,uid as _0x2b8251,priorities as _0xf8726d,logWarning as _0x5fd25e}from'ckeditor5/src/utils';import{toWidget as _0x5a74fa}from'ckeditor5/src/widget';import{Users as _0x4b38a6,hashObject as _0x4075a5}from'ckeditor5-collaboration/src/collaboration-core';import _0x2edc6c from'./commands/trackchangescommand';import _0x28d69e from'./commands/acceptsuggestioncommand';import _0x2fca65 from'./commands/discardsuggestioncommand';import _0x3f2d4f from'./commands/executeonallsuggestionscommand';import _0x56aaae from'./commands/executeonselectedsuggestionscommand';import _0x248223 from'./suggestion';import _0xdacee5 from'./suggestiondescriptionfactory';import _0xd74948 from'./integrations/alignment';import _0x19f711 from'./integrations/basicstyles';import _0x33c3f2 from'./integrations/blockquote';import _0x3d1fa2 from'./integrations/ckbox';import _0x228b37 from'./integrations/codeblock';import _0x3546f0 from'./integrations/comments';import _0x2fb85c from'./integrations/deletecommand';import _0x347ae9 from'./integrations/documentlist';import _0x265270 from'./integrations/entercommand';import _0x17927a from'./integrations/findandreplace';import _0x53121e from'./integrations/font';import _0xd130da from'./integrations/formatpainter';import _0x11fd25 from'./integrations/heading';import _0x5db70d from'./integrations/highlight';import _0x495f63 from'./integrations/horizontalline';import _0x82aaa7 from'./integrations/htmlembed';import _0xfe6a79 from'./integrations/image';import _0x354774 from'./integrations/imagereplace';import _0x313b16 from'./integrations/importword';import _0x17cd73 from'./integrations/indent';import _0x335a26 from'./integrations/inputcommand';import _0x28889e from'./integrations/link';import _0x3b201f from'./integrations/list';import _0x1cab89 from'./integrations/listproperties';import _0x4216eb from'./integrations/mediaembed';import _0x5a18c5 from'./integrations/mention';import _0xbf426c from'./integrations/pagebreak';import _0x26e5cb from'./integrations/paragraph';import _0x10e081 from'./integrations/removeformat';import _0x4e3495 from'./integrations/restrictededitingmode';import _0x218571 from'./integrations/shiftentercommand';import _0x24dda9 from'./integrations/standardeditingmode';import _0x629dfe from'./integrations/style';import _0x54a9aa from'./integrations/table';import _0x84782c from'./integrations/tablemergesplit';import _0x24a121 from'./integrations/tableheadings';import _0x26600a from'./integrations/tableclipboard';import _0x404fa2 from'./integrations/tablecolumnresize';import _0x4900f7 from'./integrations/template';import _0x3fe229 from'./integrations/tableofcontents';import _0x309214 from'./integrations/title';import _0x8bd726 from'./integrations/undo';import{getTranslation as _0x4c1f36}from'./utils/common-translations';import _0x30f63c from'./integrations/tablecaption';import _0x185207 from'./integrations/documentlistproperties';import _0x30bdb0 from'./integrations/tableproperties';export default class p extends _0x11ea56{static get[_0x4786('0xea')](){return[_0x4786('0x121'),_0x4b38a6,_0x5cfec0,_0xd74948,_0x19f711,_0x33c3f2,_0x3d1fa2,_0x228b37,_0x3546f0,_0x2fb85c,_0x347ae9,_0x185207,_0x265270,_0x17927a,_0x53121e,_0xd130da,_0x11fd25,_0x5db70d,_0x495f63,_0x82aaa7,_0xfe6a79,_0x354774,_0x313b16,_0x17cd73,_0x335a26,_0x28889e,_0x3b201f,_0x1cab89,_0x4216eb,_0x5a18c5,_0xbf426c,_0x26e5cb,_0x10e081,_0x4e3495,_0x218571,_0x24dda9,_0x629dfe,_0x54a9aa,_0x84782c,_0x24a121,_0x30f63c,_0x26600a,_0x404fa2,_0x3fe229,_0x30bdb0,_0x4900f7,_0x309214,_0x8bd726];}static get['pluginName'](){return _0x4786('0xf1');}constructor(_0x327831){function _0x217c88(_0xa03138){return _0xa03138[_0x4786('0x38')](_0x5b30df=>String[_0x4786('0x73')](_0x5b30df))[_0x4786('0x101')]('');}super(_0x327831),this[_0x4786('0xf5')](_0x4786('0x82'),[]),this['on'](_0x4786('0xe'),(_0x5c363a,_0xf1ea0f,_0x3988e6,_0x2d7066)=>{this[_0x4786('0x44')][_0x4786('0x64')](()=>{for(const _0x1e2960 of[..._0x2d7066,..._0x3988e6])this[_0x4786('0x44')][_0x4786('0x98')][_0x4786('0xac')](_0x1e2960)&&_0x327831[_0x4786('0x63')][_0x4786('0x92')](_0x1e2960);});}),this[_0x4786('0xe3')]=new _0xdacee5(this[_0x4786('0x112')]['model']['schema'],this[_0x4786('0x112')][_0x4786('0xd5')]),this[_0x4786('0xfa')]=null,this[_0x4786('0x10c')]=new Dt(this[_0x4786('0x112')]),this[_0x4786('0x30')]=new Map(),this[_0x4786('0x1d')]=_0x327831[_0x4786('0x3d')][_0x4786('0x5a')](_0x4786('0x121')),this[_0x4786('0xc8')]=new Set(),this[_0x4786('0x44')]=this[_0x4786('0x112')][_0x4786('0x89')],this['_suggestionState']=new WeakMap(),this[_0x4786('0xa6')]=!0x1,_0x327831[_0x4786('0x75')]['define']('trackChanges.trackFormatChanges','default'),this[_0x4786('0xd')]=_0x327831[_0x4786('0x75')][_0x4786('0x5a')](_0x4786('0x8b')),_0x327831[_0x4786('0x75')]['define'](_0x4786('0x8f'),!0x0),this['_mergeNestedSuggestions']=_0x327831['config'][_0x4786('0x5a')](_0x4786('0x8f')),this[_0x4786('0x14')]=new _0x2edc6c(_0x327831,this['_enabledCommands']),this[_0x217c88([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x217c88([0x34,0x30,0x34,0x36,0x31,0x34,0x35,0x34]);}[_0x4786('0x115')](){const _0x35c199=this['editor'];_0x35c199[_0x4786('0xa4')]['for'](_0x4786('0x42'))[_0x4786('0x1b')]({'model':_0x4786('0x9b'),'view':_0x3ccbdd=>{const {id:_0x1ba8d1,type:_0x4f1d2e}=this['_splitMarkerName'](_0x3ccbdd[_0x4786('0xca')]),_0x58cafe=['ck-suggestion-marker',_0x4786('0xfe')+_0x4f1d2e];let _0x379b4d=0xbb8;return this['activeMarkers'][_0x4786('0x70')](_0x3ccbdd[_0x4786('0xca')])&&(_0x58cafe[_0x4786('0x2f')](_0x4786('0xdf')),_0x379b4d=0xbc2),'deletion'==_0x4f1d2e&&(_0x379b4d+=0x5),{'classes':_0x58cafe,'attributes':{'data-suggestion':_0x1ba8d1},'priority':_0x379b4d};}}),_0x35c199[_0x4786('0xa4')][_0x4786('0x62')](_0x4786('0x10e'))[_0x4786('0xe5')](_0x462fde=>{_0x462fde['on'](_0x4786('0x93'),(_0x2939f6,_0x4be7d6,_0x43b851)=>{if(!_0x43b851[_0x4786('0x12b')][_0x4786('0x28')])return;const _0xf1b307=_0x4be7d6[_0x4786('0xb0')];if(!_0xf1b307)return;const _0x4a19f7=_0x43b851[_0x4786('0x133')][_0x4786('0x5b')](_0xf1b307);_0x35c199[_0x4786('0x89')][_0x4786('0x67')][_0x4786('0x41')](_0xf1b307)&&_0x4a19f7&&!_0x4a19f7[_0x4786('0x50')](_0x4786('0xa5'))&&_0x4a19f7['is'](_0x4786('0xd4'))&&_0x5a74fa(_0x4a19f7,_0x43b851[_0x4786('0x7b')]);},{'priority':_0x4786('0x6f')});}),_0x35c199[_0x4786('0xa4')][_0x4786('0x62')]('dataDowncast')[_0x4786('0x1b')]({'model':_0x4786('0x9b'),'view':(_0x5c401e,_0x528956)=>{if(!_0x528956[_0x4786('0x12b')][_0x4786('0x28')])return null;const {type:_0x1f08c9}=this[_0x4786('0xd2')](_0x5c401e['markerName']);return{'classes':[_0x4786('0x78'),'ck-suggestion-marker-'+_0x1f08c9],'priority':0xbb8};}});const _0x4a25df=({showActiveMarkers:_0x11b0c9=!0x0}={})=>(_0x3ff1a6,_0x4c64f3,_0x39cd98)=>{if(!_0x4c64f3['item'])return;if(_0x4c64f3[_0x4786('0xb0')]['is']('selection'))return void _0x39cd98[_0x4786('0x8a')][_0x4786('0xb1')](_0x4c64f3[_0x4786('0xb0')],_0x3ff1a6[_0x4786('0x9c')]);const _0xad18ff=_0x39cd98[_0x4786('0x133')][_0x4786('0x5b')](_0x4c64f3[_0x4786('0xb0')]);if(!(_0x4c64f3['item']['is'](_0x4786('0x8'))&&_0x35c199['model']['schema'][_0x4786('0x65')](_0x4c64f3[_0x4786('0xb0')])&&!_0xad18ff[_0x4786('0x50')](_0x4786('0x2c'))))return;const {id:_0x233d8b}=this[_0x4786('0xd2')](_0x4c64f3[_0x4786('0xca')]);_0x39cd98[_0x4786('0x7b')][_0x4786('0xcb')](['ck-suggestion-marker',_0x4786('0x74')],_0xad18ff),_0x39cd98[_0x4786('0x7b')][_0x4786('0x4b')]('data-suggestion',_0x233d8b,_0xad18ff),_0x39cd98[_0x4786('0x133')][_0x4786('0x49')](_0xad18ff,_0x4c64f3[_0x4786('0xca')]),_0x11b0c9&&(this[_0x4786('0x82')][_0x4786('0x70')](_0x4c64f3[_0x4786('0xca')])?_0x39cd98[_0x4786('0x7b')][_0x4786('0xcb')](_0x4786('0xdf'),_0xad18ff):_0x39cd98[_0x4786('0x7b')][_0x4786('0xf2')](_0x4786('0xdf'),_0xad18ff));for(const _0xe3ed03 of _0x35c199['model'][_0x4786('0x130')](_0x4c64f3['item'])[_0x4786('0xc7')]())_0x39cd98['consumable'][_0x4786('0xb1')](_0xe3ed03,_0x3ff1a6['name']);_0x39cd98[_0x4786('0x8a')]['consume'](_0x4c64f3[_0x4786('0xb0')],_0x3ff1a6[_0x4786('0x9c')]);};_0x35c199[_0x4786('0xa4')][_0x4786('0x62')](_0x4786('0x10e'))[_0x4786('0xe5')](_0x4f688b=>{_0x4f688b['on']('addMarker:suggestion:formatBlock',(_0x19c46a,_0x336464,_0x209115)=>{_0x209115['options'][_0x4786('0x28')]&&_0x4a25df({'showActiveMarkers':!0x1})(_0x19c46a,_0x336464,_0x209115);},{'priority':'highest'});}),_0x35c199[_0x4786('0xa4')][_0x4786('0x62')](_0x4786('0x10e'))[_0x4786('0x3')]({'model':_0x4786('0x9b'),'view':(_0x3ec1b0,_0x218980)=>_0x218980[_0x4786('0x12b')][_0x4786('0x28')]?null:{'group':_0x4786('0x9b'),'name':_0x3ec1b0['substr'](0xb)}}),_0x35c199[_0x4786('0xa4')][_0x4786('0x62')]('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x234066,{writer:_0x3fdb22})=>{let _0x4ffccc='suggestion:'+_0x234066[_0x4786('0x4f')](_0x4786('0xbd'))+':'+_0x234066['getAttribute']('id');return _0x234066['getAttribute'](_0x4786('0x10a'))&&(_0x4ffccc+=':'+_0x234066[_0x4786('0x4f')](_0x4786('0x10a'))),_0x3fdb22['createElement']('$marker',{'data-name':_0x4ffccc});}}),_0x35c199[_0x4786('0xa4')][_0x4786('0x62')](_0x4786('0x53'))['dataToMarker']({'view':_0x4786('0x9b')}),_0x35c199[_0x4786('0xa4')][_0x4786('0x62')](_0x4786('0x42'))[_0x4786('0xe5')](_0x3a2fd7=>{_0x3a2fd7['on'](_0x4786('0x12e'),_0x4a25df(),{'priority':'high'});}),_0x35c199[_0x4786('0xa4')][_0x4786('0x62')](_0x4786('0x42'))[_0x4786('0xe5')](_0x1b091f=>{_0x1b091f['on']('removeMarker:suggestion:formatBlock',(_0x4d69d1,_0x2b6237,_0x458ddf)=>{const _0x33ca9a=_0x458ddf['mapper'][_0x4786('0x27')](_0x2b6237[_0x4786('0xca')]);if(_0x33ca9a)for(const _0x5a16c1 of _0x33ca9a)_0x5a16c1[_0x4786('0x50')](_0x4786('0x2c'))||(_0x458ddf[_0x4786('0x7b')][_0x4786('0xf2')]([_0x4786('0x78'),_0x4786('0x74'),_0x4786('0xdf')],_0x5a16c1),_0x458ddf[_0x4786('0x7b')][_0x4786('0xbe')](_0x4786('0x96'),_0x5a16c1),_0x458ddf[_0x4786('0x133')][_0x4786('0xcd')](_0x5a16c1,_0x2b6237[_0x4786('0xca')]));},{'priority':_0x4786('0x6f')});}),_0x35c199[_0x4786('0x89')][_0x4786('0xd7')]['registerPostFixer'](_0x25caa0=>{let _0x474fd2=!0x1;const _0x4aa013=Array[_0x4786('0x10')](_0x35c199[_0x4786('0x89')][_0x4786('0xd7')][_0x4786('0xd3')][_0x4786('0xed')]()),_0x5d339a=new Set();for(const {name:_0x35c00c,data:_0x13c3f1}of _0x4aa013){const {group:_0xd4d5be,type:_0x12249b,id:_0x1a0552}=this[_0x4786('0xd2')](_0x35c00c);if('suggestion'!==_0xd4d5be)continue;const _0x19c122=this[_0x4786('0x30')][_0x4786('0x5a')](_0x1a0552);if(null!=_0x13c3f1['newRange']){'formatInline'==_0x12249b&&(_0x474fd2=_0x474fd2||Mt(_0x13c3f1['newRange'],_0x35c00c,_0x25caa0,_0x35c199['model'][_0x4786('0x67')]));if(_0x13c3f1[_0x4786('0xf3')]['isCollapsed']||_0x4786('0x45')==_0x13c3f1[_0x4786('0xf3')][_0x4786('0x109')][_0x4786('0xa3')]||_0x4786('0x12')==_0x12249b&&!Nt(_0x13c3f1[_0x4786('0xf3')])||'deletion'==_0x12249b&&!(!_t(_0x37fea6=_0x13c3f1[_0x4786('0xf3')])&&!function(_0x3755ab){return _0x3755ab['start'][_0x4786('0x6')]==_0x3755ab[_0x4786('0x87')][_0x4786('0x17')]&&_0x3755ab[_0x4786('0x68')][_0x4786('0x40')];}(_0x37fea6)))_0x25caa0[_0x4786('0x8d')](_0x35c00c),_0x474fd2=!0x0;else{if(!_0x19c122||!_0x19c122[_0x4786('0xe9')])continue;_0x5d339a['add'](_0x19c122);}}}var _0x37fea6;return _0x5d339a[_0x4786('0x99')]>0x0&&(_0x474fd2=!!this['_joinWithAdjacentSuggestions'](_0x5d339a)||_0x474fd2),_0x474fd2;}),_0x35c199['model'][_0x4786('0xd7')][_0x4786('0xa9')](_0x262c86=>{let _0x4de6fc=!0x1;for(const _0x23fee3 of _0x35c199[_0x4786('0x89')][_0x4786('0xd7')][_0x4786('0xd3')][_0x4786('0x20')]()){if('insert'!=_0x23fee3[_0x4786('0x72')])continue;const _0x4e3683=_0x23fee3[_0x4786('0x97')][_0x4786('0x7c')](_0x23fee3[_0x4786('0x1')]);if(_0x4e3683[_0x4786('0x40')])for(const _0x113a6d of this['_suggestions'][_0x4786('0x29')]()){if(_0x113a6d[_0x4786('0x51')]||!_0x113a6d[_0x4786('0xe9')])continue;if(_0x4786('0x12')!=_0x113a6d[_0x4786('0x72')])continue;const _0x234228=_0x113a6d['getFirstRange']();if(_0x234228['start'][_0x4786('0x6')]!=_0x234228[_0x4786('0x87')][_0x4786('0x6')]&&_0x234228[_0x4786('0x87')]['isEqual'](_0x23fee3[_0x4786('0x97')])){const _0x175d69=_0x35c199[_0x4786('0x89')][_0x4786('0x57')](_0x234228[_0x4786('0x68')],_0x4e3683);_0x262c86[_0x4786('0x9e')](_0x113a6d[_0x4786('0xdc')](),{'range':_0x175d69}),_0x4de6fc=!0x0;}}}return _0x4de6fc;}),_0x35c199[_0x4786('0x89')][_0x4786('0x98')]['on']('update:suggestion',(_0x39a59a,_0x2eb02d,_0x5c73ef)=>{if(null==_0x5c73ef){const {id:_0xc9b27c}=this['_splitMarkerName'](_0x2eb02d[_0x4786('0x9c')]),_0x32a74b=this[_0x4786('0x30')]['get'](_0xc9b27c);_0x32a74b&&_0x32a74b['addMarkerName'](_0x2eb02d[_0x4786('0x9c')]);}}),_0x35c199[_0x4786('0x89')][_0x4786('0xd7')]['on'](_0x4786('0x6a'),()=>{const _0x4cdd0e=Array[_0x4786('0x10')](_0x35c199['model'][_0x4786('0xd7')][_0x4786('0xd3')][_0x4786('0xed')]())[_0x4786('0xab')](_0x28b640=>_0x4786('0x9b')===this[_0x4786('0xd2')](_0x28b640[_0x4786('0x9c')])['group']);if(0x0===_0x4cdd0e[_0x4786('0x1')])return;_0x4cdd0e['sort']((_0x8f22,_0x129871)=>{const _0x44a1e3=_0x8f22[_0x4786('0xd8')][_0x4786('0xe6')],_0xa2c178=_0x129871[_0x4786('0xd8')][_0x4786('0xe6')];return null===_0x44a1e3&&null===_0xa2c178?0x0:null===_0x44a1e3&&null!==_0xa2c178?-0x1:null!==_0x44a1e3&&null===_0xa2c178?0x1:_0x44a1e3[_0x4786('0x68')]['isBefore'](_0xa2c178[_0x4786('0x68')])?-0x1:0x1;});const _0x546d22=new Set(),_0x58771a=new Set();for(const {name:_0x7389ea,data:_0x1a4619}of _0x4cdd0e){const {id:_0x1162c5}=this[_0x4786('0xd2')](_0x7389ea);if(null===_0x1a4619[_0x4786('0xe6')]){const _0x57d532=this[_0x4786('0x66')](_0x7389ea);_0x58771a[_0x4786('0xe5')](_0x57d532);}else{const _0x301fa4=this[_0x4786('0x30')][_0x4786('0x5a')](_0x1162c5);null!==_0x1a4619[_0x4786('0xf3')]||_0x301fa4[_0x4786('0xe9')]?(_0x546d22[_0x4786('0xe5')](_0x301fa4[_0x4786('0x105')]),_0x58771a[_0x4786('0xe5')](_0x301fa4)):this[_0x4786('0xce')](_0x301fa4);}}_0x58771a['size']>0x0&&this['_refreshSuggestionsChain'](_0x58771a);for(const _0x54404e of _0x546d22)this[_0x4786('0x11')](_0x4786('0x11c'),_0x54404e);}),_0x35c199[_0x4786('0x89')]['on']('applyOperation',(_0x4c9389,_0x25f0a6)=>{const _0x19ac8e=_0x25f0a6[0x0];if(!this[_0x4786('0x30')][_0x4786('0x99')])return;if(!_0x19ac8e['isDocumentOperation'])return;if(_0x19ac8e[_0x4786('0x26')][_0x4786('0xf7')]||!_0x19ac8e[_0x4786('0x26')]['isLocal'])return;let _0x115717,_0x56b348;switch(_0x19ac8e[_0x4786('0x72')]){case _0x4786('0x76'):_0x115717=_0x35c199[_0x4786('0x89')][_0x4786('0x106')](_0x19ac8e['position']),_0x56b348=_0x115717[_0x4786('0x7c')](_0x19ac8e[_0x4786('0xe2')]);break;case _0x4786('0x103'):_0x115717=_0x35c199[_0x4786('0x89')]['createPositionAt'](_0x19ac8e[_0x4786('0xd1')]),_0x56b348=_0x35c199['model'][_0x4786('0x106')](_0x19ac8e[_0x4786('0x9d')]);break;case'move':_0x115717=_0x35c199[_0x4786('0x89')][_0x4786('0x106')](_0x19ac8e[_0x4786('0xfc')]),_0x56b348=_0x115717[_0x4786('0x7c')](_0x19ac8e[_0x4786('0xe2')]);break;default:return;}const _0x57daad=_0x35c199['model']['createRange'](_0x115717,_0x56b348);_0x35c199[_0x4786('0x89')]['change'](()=>{for(const {suggestion:_0x415b89,meta:_0x3064b2}of this[_0x4786('0x2a')](_0x57daad)){if(_0x415b89['isMultiRange'])continue;if(_0x4786('0x52')==_0x415b89[_0x4786('0x72')])continue;const _0x1fe20b=_0x415b89[_0x4786('0xd8')]&&_0x415b89[_0x4786('0xd8')][_0x4786('0x11f')];(_0x4786('0x12')!=_0x415b89[_0x4786('0x72')]||_0x4786('0x103')==_0x19ac8e[_0x4786('0x72')]&&!_0x1fe20b)&&(_0x3064b2[_0x4786('0x61')]||_0x4786('0x2')==_0x415b89[_0x4786('0x72')]&&_0x3064b2[_0x4786('0x107')]||_0x415b89[_0x4786('0x118')]()[_0x4786('0x7a')](_0x57daad)&&this['_breakSuggestionMarker'](_0x415b89,_0x115717,_0x56b348));}});},{'priority':_0x4786('0x0')}),_0x35c199[_0x4786('0x89')]['on'](_0x4786('0xdd'),(_0x341009,_0x23fa04)=>{const _0x93a24f=_0x23fa04[0x0],_0x338abb=_0x23fa04[0x1];if(_0x338abb&&_0x338abb[_0x4786('0xb4')])return;if(this[_0x4786('0xa6')])return;if(!this['trackChangesCommand'][_0x4786('0x13')])return;if(_0x93a24f[_0x4786('0xb6')])return;const _0x261119=_0x35c199[_0x4786('0x89')][_0x4786('0x67')],{start:_0x1a7cae,end:_0x4a048a}=_0x93a24f[_0x4786('0x118')](),_0x25ba06=_0x1a7cae[_0x4786('0x15')]&&_0x261119['isLimit'](_0x1a7cae[_0x4786('0x15')])?null:_0x261119[_0x4786('0x132')](_0x1a7cae,_0x4786('0xee')),_0x48d231=_0x4a048a[_0x4786('0x17')]&&_0x261119[_0x4786('0x23')](_0x4a048a[_0x4786('0x17')])?null:_0x261119[_0x4786('0x132')](_0x4a048a,_0x4786('0xcf')),_0x13c1f0=_0x35c199[_0x4786('0x89')][_0x4786('0x57')](_0x25ba06?_0x25ba06['start']:_0x1a7cae,_0x48d231?_0x48d231[_0x4786('0x87')]:_0x4a048a);_0x35c199[_0x4786('0x89')][_0x4786('0x64')](_0x355478=>{this[_0x4786('0xe4')](_0x13c1f0);const _0x5f2958=_0x35c199[_0x4786('0x89')]['schema']['getNearestSelectionRange'](_0x13c1f0[_0x4786('0x68')]);_0x93a24f['is'](_0x4786('0xd9'))?_0x355478[_0x4786('0x125')](_0x5f2958):_0x93a24f[_0x4786('0x77')](_0x5f2958);}),_0x341009[_0x4786('0x56')]();},{'priority':_0xf8726d[_0x4786('0x46')]+0xa}),_0x35c199[_0x4786('0x89')]['on'](_0x4786('0x7'),(_0x1890df,_0x58eac2)=>{const _0x28e09a=_0x58eac2[_0x58eac2[_0x4786('0x1')]-0x1];_0x28e09a&&_0x28e09a['forceDefaultExecution']||this[_0x4786('0xa6')]||this[_0x4786('0x14')][_0x4786('0x13')]&&(_0x35c199[_0x4786('0x89')][_0x4786('0x64')](()=>{let _0x34a1e3=_0x35c199[_0x4786('0x89')][_0x4786('0x7')](_0x58eac2[0x0],_0x58eac2[0x1],_0x58eac2[0x2],{'forceDefaultExecution':!0x0});if(!_0x34a1e3)return;_0x1890df[_0x4786('0x94')]=_0x34a1e3[_0x4786('0xef')]();const _0x1f7f15=_0x34a1e3['end'][_0x4786('0x17')],_0x58f4ee=_0x35c199[_0x4786('0x89')][_0x4786('0x67')];_0x1f7f15&&_0x58f4ee[_0x4786('0x65')](_0x1f7f15)&&!_0x58f4ee[_0x4786('0x41')](_0x1f7f15)&&(_0x34a1e3=_0x35c199['model'][_0x4786('0x57')](_0x34a1e3[_0x4786('0x68')],_0x35c199[_0x4786('0x89')][_0x4786('0x106')](_0x1f7f15,_0x4786('0x87')))),this[_0x4786('0x12a')](_0x34a1e3);}),_0x1890df[_0x4786('0x56')]());},{'priority':_0x4786('0x6f')}),this[_0x4786('0x112')][_0x4786('0x84')][_0x4786('0xe5')]('trackChanges',this[_0x4786('0x14')]),this[_0x4786('0x54')]('trackChanges');const _0xa6524=new _0x28d69e(_0x35c199,this['_suggestions']);_0x35c199[_0x4786('0x84')][_0x4786('0xe5')]('acceptSuggestion',_0xa6524),this[_0x4786('0x54')]('acceptSuggestion');const _0x238543=new _0x2fca65(_0x35c199,this[_0x4786('0x30')]);_0x35c199[_0x4786('0x84')][_0x4786('0xe5')](_0x4786('0x39'),_0x238543),this[_0x4786('0x54')](_0x4786('0x39')),_0x35c199[_0x4786('0x84')][_0x4786('0xe5')](_0x4786('0x8c'),new _0x3f2d4f(_0x35c199,_0xa6524,this[_0x4786('0x30')])),this[_0x4786('0x54')](_0x4786('0x8c')),_0x35c199['commands'][_0x4786('0xe5')](_0x4786('0x128'),new _0x3f2d4f(_0x35c199,_0x238543,this['_suggestions'])),this[_0x4786('0x54')](_0x4786('0x128')),_0x35c199[_0x4786('0x84')][_0x4786('0xe5')]('acceptSelectedSuggestions',new _0x56aaae(_0x35c199,_0xa6524,this[_0x4786('0x30')])),this[_0x4786('0x54')]('acceptSelectedSuggestions'),_0x35c199[_0x4786('0x84')]['add']('discardSelectedSuggestions',new _0x56aaae(_0x35c199,_0x238543,this[_0x4786('0x30')])),this[_0x4786('0x54')](_0x4786('0x4d'));const _0x1f4083=_0x35c199[_0x4786('0x3d')]['get'](_0x4786('0x121'));this[_0x4786('0xc1')](_0x1f4083,'addComment',(_0x1af71f,{threadId:_0x41691c})=>{const _0x2aca0e=this[_0x4786('0x30')][_0x4786('0x5a')](_0x41691c);_0x2aca0e&&_0x2aca0e[_0x4786('0x4c')]&&0x1===_0x2aca0e['commentThread'][_0x4786('0x1')]&&this['_updateSuggestionData'](_0x41691c,{'hasComments':!0x0});},{'priority':_0x4786('0x10d')}),this[_0x4786('0xc1')](_0x1f4083,_0x4786('0xd0'),(_0x2f8af3,{threadId:_0x47d8e7})=>{const _0x451f7e=this[_0x4786('0x30')][_0x4786('0x5a')](_0x47d8e7);_0x451f7e&&_0x451f7e[_0x4786('0x4c')]&&!_0x451f7e[_0x4786('0x4c')][_0x4786('0x1')]&&this[_0x4786('0xa7')](_0x47d8e7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5926d2){if(this[_0x4786('0xfa')])throw new _0x166ded(_0x4786('0x85'),this);this[_0x4786('0xfa')]=_0x5926d2;}get['adapter'](){return this[_0x4786('0xfa')];}[_0x4786('0x6e')]({skipNotAttached:_0x5e5bba=!0x1,toJSON:_0x24baec=!0x1}={}){const _0x37f6d5=[];for(const _0x38cae3 of this[_0x4786('0x30')][_0x4786('0x29')]())_0x5e5bba&&!_0x38cae3['isInContent']||_0x37f6d5[_0x4786('0x2f')](_0x38cae3);return _0x24baec?_0x37f6d5[_0x4786('0x38')](_0x3682b2=>_0x3682b2[_0x4786('0x9a')]()):_0x37f6d5;}['getSuggestion'](_0x18192a){const _0x45391d=this[_0x4786('0x30')][_0x4786('0x5a')](_0x18192a);if(!_0x45391d)throw new _0x166ded(_0x4786('0xaf'),this);return _0x45391d;}[_0x4786('0xc4')](_0x403ce0){return this[_0x4786('0x30')][_0x4786('0xac')](_0x403ce0);}[_0x4786('0x9')](_0x2c2b86){const {authorId:_0x40a8e0,id:_0x552e0b,attributes:_0x29ca74}=_0x2c2b86,[_0x486cd0,_0x4613f4]=_0x2c2b86[_0x4786('0x72')][_0x4786('0x103')](':'),_0x3b73e1=this[_0x4786('0x30')]['get'](_0x552e0b)||this[_0x4786('0x81')](_0x486cd0,_0x4613f4,_0x552e0b,_0x40a8e0,_0x29ca74);if(this['_addThreadToSuggestion'](_0x3b73e1),this[_0x4786('0x124')](_0x3b73e1,_0x486cd0,_0x4613f4||null,_0x40a8e0),_0x3b73e1[_0x4786('0x34')]=_0x2c2b86[_0x4786('0x34')],_0x29ca74&&_0x29ca74[_0x4786('0x1a')]){const _0x38b91e=_0x29ca74[_0x4786('0x1a')],_0x1cc50a=this[_0x4786('0xfd')](_0x38b91e[_0x4786('0x19')]);_0x3b73e1[_0x4786('0xc6')]=_0x38b91e[_0x4786('0x34')],_0x3b73e1[_0x4786('0x5')]=_0x1cc50a,_0x3b73e1['isExternal']=!0x0;}else _0x3b73e1[_0x4786('0xc6')]=_0x2c2b86[_0x4786('0x34')];switch(_0x2c2b86['data']&&(_0x3b73e1['data']=_0x2c2b86['data']),_0x2c2b86[_0x4786('0x31')]&&(_0x3b73e1[_0x4786('0x31')]=_0x2c2b86[_0x4786('0x31')]),this[_0x4786('0xfa')]&&this[_0x4786('0xfa')][_0x4786('0xb3')]||(_0x3b73e1['_saved']=!0x0),this['_suggestionState'][_0x4786('0x5a')](_0x3b73e1)){case'notReady':this[_0x4786('0x22')][_0x4786('0xf5')](_0x3b73e1,_0x4786('0x11b'));break;case'markerReady':_0x3b73e1['isInContent']?(this[_0x4786('0x22')]['set'](_0x3b73e1,_0x4786('0x58')),this['fire'](_0x4786('0xec'),_0x3b73e1)):this['_suggestionState']['set'](_0x3b73e1,_0x4786('0xc9'));}return _0x3b73e1;}[_0x4786('0x123')](_0x31750b){this[_0x4786('0xb4')](()=>{this['editor'][_0x4786('0x89')][_0x4786('0x64')](()=>{for(const _0x39c790 of _0x31750b[_0x4786('0xf6')]())_0x39c790[_0x4786('0x4')]();});});}[_0x4786('0x39')](_0x332a5a){this[_0x4786('0xb4')](()=>{this[_0x4786('0x112')][_0x4786('0x89')]['change'](()=>{for(const _0x443a12 of _0x332a5a['getAllAdjacentSuggestions']())_0x443a12[_0x4786('0x10f')]();});});}[_0x4786('0x54')](_0x5901b5,_0x5835a4){const _0x240d7b=this[_0x4786('0x112')][_0x4786('0x84')][_0x4786('0x5a')](_0x5901b5);if(!_0x240d7b)throw new _0x166ded('track-changes-command-not-found',this,{'commandName':_0x5901b5});this['_enabledCommands']['add'](_0x240d7b),_0x5835a4&&_0x240d7b['on'](_0x4786('0x11a'),(_0x12cceb,_0x220a1b)=>{this[_0x4786('0x14')]['value']&&(this[_0x4786('0xa6')]||_0x220a1b[_0x4786('0x1')]>0x0&&_0x220a1b[_0x220a1b[_0x4786('0x1')]-0x1]&&_0x220a1b[_0x220a1b['length']-0x1]['forceDefaultExecution']||(_0x5835a4((..._0x4bcdd5)=>_0x240d7b['execute'](..._0x4bcdd5,{'forceDefaultExecution':!0x0}),..._0x220a1b),_0x12cceb[_0x4786('0x56')]()));},{'priority':_0x4786('0x6f')});}[_0x4786('0xb4')](_0xd8173f){let _0x1aadec,_0x4a7651;const _0x518b7c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1aadec=_0xd8173f();}catch(_0x3a01d5){_0x4a7651=_0x3a01d5;}return _0x518b7c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4a7651&&_0x166ded[_0x4786('0x37')](_0x4a7651,this),_0x1aadec;}['markInsertion'](_0x2590a0,_0x34c7f7=null,_0x453424={}){if(_0x2590a0[_0x4786('0xb6')])return null;const _0xefe2d8=this[_0x4786('0x112')][_0x4786('0x3d')][_0x4786('0x5a')](_0x4786('0x3e'))['me'];for(const {suggestion:_0x4a0075,meta:_0x11bab6}of this[_0x4786('0x2a')](_0x2590a0,'insertion'))if(_0x11bab6['isOwn']){if(!_0x11bab6[_0x4786('0x5d')]){if(!this['_mergeNestedSuggestions']&&_0x11bab6[_0x4786('0x61')])continue;return _0x4a0075;}if(_0x34c7f7==_0x4a0075[_0x4786('0xba')]){const _0x43f529=_0x4a0075[_0x4786('0x118')]();return _0x43f529[_0x4786('0x68')][_0x4786('0x2e')](_0x2590a0[_0x4786('0x87')])?this[_0x4786('0x47')](_0x4a0075,this[_0x4786('0x44')][_0x4786('0x57')](_0x2590a0[_0x4786('0x68')],_0x43f529[_0x4786('0x87')])):this[_0x4786('0x47')](_0x4a0075,this[_0x4786('0x44')][_0x4786('0x57')](_0x43f529[_0x4786('0x68')],_0x2590a0[_0x4786('0x87')])),_0x4a0075;}}const _0x5b7cda=_0x2b8251(),_0x45b892=_0xefe2d8['id'],_0x49180d=_0x34c7f7?'insertion:'+_0x34c7f7:_0x4786('0x2'),_0x3f622d=this[_0x4786('0x90')]({'id':_0x5b7cda,'type':_0x49180d,'createdAt':new Date(),'authorId':_0x45b892,'attributes':_0x453424});return this[_0x4786('0x83')](_0x49180d,_0x5b7cda,_0x45b892,_0x2590a0),_0x3f622d;}[_0x4786('0x126')](_0x16551b,_0x4aa884=_0x4786('0x11d'),_0x1e895f={}){const _0x1e702d=this[_0x4786('0x112')][_0x4786('0x3d')][_0x4786('0x5a')](_0x4786('0x3e'))['me'],_0x121914=this[_0x4786('0x10c')][_0x4786('0xfb')]('insertion',_0x4aa884,_0x4786('0x101'));for(const _0x579428 of this[_0x4786('0x6e')]())if(_0x579428[_0x4786('0x5')]['id']==_0x1e702d['id']&&_0x4786('0x2')==_0x579428[_0x4786('0x72')]&&_0x579428[_0x4786('0xba')]==_0x4aa884&&(_0x121914(_0x579428['getRanges'](),_0x16551b)||_0x121914(_0x16551b,_0x579428['getRanges']()))){for(const _0x5a30c8 of _0x16551b)_0x579428[_0x4786('0x110')](_0x5a30c8);return _0x579428;}if(this[_0x4786('0x43')])for(const _0x193f51 of _0x16551b)for(const {suggestion:_0x21d356,meta:_0x525f40}of this['_findSuggestions'](_0x193f51,_0x4786('0x2'))){if(!_0x525f40[_0x4786('0x107')])continue;let _0x49ef44=!0x0;for(const _0x4bbf93 of _0x21d356[_0x4786('0xc5')]())for(const _0x554b5b of _0x16551b)if(!_0x4bbf93['containsRange'](_0x554b5b)){_0x49ef44=!0x1;break;}if(_0x49ef44)return _0x21d356;}const _0xf5b971=_0x2b8251(),_0x1b04a4=_0x1e702d['id'],_0x211ce1='insertion:'+_0x4aa884,_0x109901=this[_0x4786('0x90')]({'id':_0xf5b971,'type':_0x211ce1,'createdAt':new Date(),'authorId':_0x1b04a4,'attributes':_0x1e895f});for(const _0x3d817b of _0x16551b)this[_0x4786('0x83')](_0x211ce1,_0xf5b971,_0x1b04a4,_0x3d817b,_0x248223[_0x4786('0xda')]());return _0x109901;}['markInlineFormat'](_0x27d54b,_0x1cfdb7,_0x10dcff=null,_0x3e90e1={}){if(_0x10dcff=_0x10dcff||$t(_0x1cfdb7),_0x27d54b[_0x4786('0xb6')])return null;if(_0x4786('0xae')===this['_trackFormatChanges']){const _0x2bd116=this['_suggestionFactory'][_0x4786('0xfb')](_0x4786('0x52'),_0x10dcff,_0x4786('0x4'));return this['forceDefaultExecution'](()=>_0x2bd116([_0x27d54b],_0x1cfdb7,_0x3e90e1)),null;}const _0x3e8d44=this[_0x4786('0x112')]['plugins']['get'](_0x4786('0x3e'))['me'],_0x216935=[];if(_0x4786('0x12d')!==this[_0x4786('0xd')])for(const {suggestion:_0x179945,meta:_0x5a5bfb}of this['_findSuggestions'](_0x27d54b,_0x4786('0x2')))_0x5a5bfb[_0x4786('0x107')]&&!_0x5a5bfb[_0x4786('0xc0')]&&_0x216935['push'](..._0x179945['getRanges']());const _0x19864a=function(_0x507530,_0x529239){const _0x29dc9d=[];for(const _0x327f38 of _0x529239){const _0x2c4985=_0x507530[_0x4786('0x4a')](_0x327f38);_0x2c4985&&_0x29dc9d[_0x4786('0x2f')](_0x2c4985);}return _0x29dc9d;}(_0x27d54b,_0x216935),_0x16f04d=function(_0x2d53b0,_0x4e5e50){const _0x430ec6=[_0x2d53b0];for(const _0x24f3c3 of _0x4e5e50){let _0x2bb487=0x0;for(;_0x2bb487<_0x430ec6[_0x4786('0x1')];){const _0x4a9bac=_0x430ec6[_0x2bb487][_0x4786('0x6c')](_0x24f3c3);_0x430ec6[_0x4786('0xe8')](_0x2bb487,0x1,..._0x4a9bac),_0x2bb487+=_0x4a9bac['length'];}}return _0x430ec6;}(_0x27d54b,_0x216935);_0x19864a['length']&&this[_0x4786('0x44')][_0x4786('0x64')](()=>{for(const _0x58077f of _0x19864a){const _0x48d837=this[_0x4786('0x10c')]['getSuggestionCallback'](_0x4786('0x52'),_0x10dcff,_0x4786('0x4'));this[_0x4786('0xb4')](()=>_0x48d837([_0x58077f],_0x1cfdb7,_0x3e90e1));}});for(const _0x101d64 of _0x16f04d){let _0x190953=null,_0x230226=_0x101d64['start'],_0x404c42=_0x101d64[_0x4786('0x87')];for(const {suggestion:_0x21ccd6,meta:_0x275b5d}of this[_0x4786('0x2a')](_0x101d64,'formatInline')){if(!_0x275b5d[_0x4786('0x107')])continue;if(_0x21ccd6[_0x4786('0xba')]!=_0x10dcff)continue;const _0x252770=_0x21ccd6['getFirstRange']();if(_0x252770['containsRange'](_0x101d64,!0x0))return null;_0x230226=_0x230226[_0x4786('0x5f')](_0x252770[_0x4786('0x68')])?_0x230226:_0x252770['start'],_0x404c42=_0x404c42[_0x4786('0x102')](_0x252770[_0x4786('0x87')])?_0x404c42:_0x252770[_0x4786('0x87')],_0x190953?_0x252770['start'][_0x4786('0x5f')](_0x190953[_0x4786('0x118')]()[_0x4786('0x68')])?(_0x190953[_0x4786('0xb7')](),_0x190953=_0x21ccd6):_0x21ccd6[_0x4786('0xb7')]():_0x190953=_0x21ccd6;}const _0x31f2ff=this['_model'][_0x4786('0x57')](_0x230226,_0x404c42);if(_0x190953)this[_0x4786('0x47')](_0x190953,_0x31f2ff);else{const _0x7ee7ba=_0x2b8251(),_0x4f0488=_0x3e8d44['id'];this[_0x4786('0x90')]({'id':_0x7ee7ba,'type':_0x4786('0x59')+_0x10dcff,'data':_0x1cfdb7,'createdAt':new Date(),'authorId':_0x4f0488,'attributes':_0x3e90e1}),this[_0x4786('0x83')](_0x4786('0x59')+_0x10dcff,_0x7ee7ba,_0x4f0488,_0x31f2ff);}}return null;}[_0x4786('0x120')](_0x557b7d,_0x1b6873,_0x57a65b=[],_0x4a8ce3=null,_0x2b8891={}){_0x1b6873[_0x4786('0xf')]||(_0x1b6873[_0x4786('0xf')]=_0x1b6873[_0x4786('0x3a')]),_0x1b6873['multipleBlocks']=_0x557b7d['is'](_0x4786('0x10b')),_0x4a8ce3=_0x4a8ce3||$t(_0x1b6873);const _0x1dbc81=_0x57a65b[_0x4786('0x38')](_0x3ff68e=>Rt(_0x3ff68e,this[_0x4786('0x44')])),_0x40dd9f=_0x557b7d['is']('range')?_0x557b7d:Rt(_0x557b7d,this[_0x4786('0x44')]);if(_0x4786('0xae')===this[_0x4786('0xd')]){const _0x1adc54=this[_0x4786('0x10c')][_0x4786('0xfb')](_0x4786('0x12'),_0x4a8ce3,'accept');return this[_0x4786('0xb4')](()=>_0x1adc54([_0x40dd9f],_0x1b6873,_0x2b8891)),null;}_0x1dbc81['push'](_0x40dd9f);let _0x49956e=!0x0;for(const _0xb713b7 of _0x1dbc81)if(!this['_rangeIsInLocalUserInsertion'](_0xb713b7)){_0x49956e=!0x1;break;}if(_0x49956e&&_0x4786('0x12d')!==this[_0x4786('0xd')]){const _0x3720e0=this[_0x4786('0x10c')][_0x4786('0xfb')](_0x4786('0x12'),_0x4a8ce3,'accept');return this[_0x4786('0xb4')](()=>_0x3720e0([_0x40dd9f],_0x1b6873,_0x2b8891)),null;}let _0x18257c=null,_0x295fee=_0x40dd9f['start'],_0x5405e9=_0x40dd9f[_0x4786('0x87')];for(const {suggestion:_0x4d8aff,meta:_0x2554f9}of this[_0x4786('0x2a')](_0x40dd9f,_0x4786('0x12'))){if(!_0x2554f9[_0x4786('0x107')]||_0x2554f9['isNextTo']||_0x2554f9['containsRangeInObject']||_0x2554f9[_0x4786('0xc0')])continue;if(_0x4d8aff['data'][_0x4786('0xf')]!=_0x1b6873['formatGroupId'])continue;const _0x4da34d=_0x4d8aff[_0x4786('0x118')]();if(_0x4d8aff[_0x4786('0xba')]==_0x4a8ce3){if(_0x4da34d[_0x4786('0x7a')](_0x40dd9f,!0x0))return null;_0x295fee=_0x295fee[_0x4786('0x5f')](_0x4da34d[_0x4786('0x68')])?_0x295fee:_0x4da34d[_0x4786('0x68')],_0x5405e9=_0x5405e9[_0x4786('0x102')](_0x4da34d[_0x4786('0x87')])?_0x5405e9:_0x4da34d['end'],_0x18257c?_0x4da34d[_0x4786('0x68')]['isBefore'](_0x18257c[_0x4786('0x118')]()['start'])?(_0x18257c[_0x4786('0xb7')](),_0x18257c=_0x4d8aff):_0x4d8aff[_0x4786('0xb7')]():_0x18257c=_0x4d8aff;}else{const _0x11c0d6=_0x40dd9f[_0x4786('0x4a')](_0x4da34d);this[_0x4786('0x6b')](_0x4d8aff,_0x11c0d6);}}const _0x1c346a=this[_0x4786('0x112')][_0x4786('0x3d')]['get'](_0x4786('0x3e'))['me'],_0x404754=_0x2b8251(),_0x211f4a=_0x1c346a['id'];if(_0x18257c)return this[_0x4786('0x47')](_0x18257c,this[_0x4786('0x44')][_0x4786('0x57')](_0x295fee,_0x5405e9)),_0x18257c;{const _0x2542b2=this[_0x4786('0x90')]({'id':_0x404754,'type':_0x4786('0xd6')+_0x4a8ce3,'data':_0x1b6873,'createdAt':new Date(),'authorId':_0x211f4a,'attributes':_0x2b8891});return this[_0x4786('0x83')](_0x4786('0xd6')+_0x4a8ce3,_0x404754,_0x211f4a,this[_0x4786('0x44')][_0x4786('0x57')](_0x295fee,_0x5405e9)),_0x2542b2;}}[_0x4786('0x60')](_0x4f50f7,_0x34a8db,_0x5ddfb7=[],_0x36fa8a=null,_0x24dcbf={}){_0x34a8db['formatGroupId']||(_0x34a8db[_0x4786('0xf')]=_0x34a8db[_0x4786('0x3a')]);const _0x1fc92b=_0x4f50f7[0x0];_0x34a8db[_0x4786('0x11f')]=_0x1fc92b['is'](_0x4786('0x10b')),_0x36fa8a=_0x36fa8a||$t(_0x34a8db);const _0x2ecc14=_0x5ddfb7['map'](_0x58a1d1=>Rt(_0x58a1d1,this[_0x4786('0x44')])),_0x1decda=_0x1fc92b['is'](_0x4786('0x10b'))?_0x4f50f7:_0x4f50f7[_0x4786('0x38')](_0x178154=>Rt(_0x178154,this[_0x4786('0x44')]));if(_0x4786('0xae')===this[_0x4786('0xd')]){const _0x3e222b=this[_0x4786('0x10c')][_0x4786('0xfb')](_0x4786('0x12'),_0x36fa8a,_0x4786('0x4'));return this[_0x4786('0xb4')](()=>_0x3e222b(_0x1decda,_0x34a8db,_0x24dcbf)),null;}_0x2ecc14[_0x4786('0x2f')](..._0x1decda);let _0x400599=!0x0;for(const _0x340127 of _0x2ecc14)if(!this[_0x4786('0xde')](_0x340127)){_0x400599=!0x1;break;}if(_0x400599&&'always'!==this[_0x4786('0xd')]){const _0x3a904a=this[_0x4786('0x10c')]['getSuggestionCallback'](_0x4786('0x12'),_0x36fa8a,_0x4786('0x4'));return this[_0x4786('0xb4')](()=>_0x3a904a(_0x1decda,_0x34a8db,_0x24dcbf)),null;}const _0x1a1805=this[_0x4786('0x112')][_0x4786('0x3d')]['get'](_0x4786('0x3e'))['me'];for(const _0x4a5add of this[_0x4786('0x6e')]()){if(_0x4a5add[_0x4786('0x5')]['id']!=_0x1a1805['id'])continue;if(_0x4786('0x12')!=_0x4a5add[_0x4786('0x72')]||_0x4a5add[_0x4786('0xd8')]['formatGroupId']!=_0x34a8db[_0x4786('0xf')])continue;const _0x11f65a=_0x4a5add[_0x4786('0xba')]==_0x36fa8a;for(let _0x4e61b2=0x0;_0x4e61b2<_0x1decda[_0x4786('0x1')];_0x4e61b2++){const _0x13d601=_0x1decda[_0x4e61b2];for(const _0x2192d3 of _0x4a5add[_0x4786('0x95')]()){const _0x3d8498=_0x2192d3['getRange']();if(_0x13d601[_0x4786('0x2e')](_0x3d8498)){_0x11f65a?(_0x1decda[_0x4786('0xe8')](_0x4e61b2,0x1),_0x4e61b2--):_0x4a5add['removeMarker'](_0x2192d3[_0x4786('0x9c')]);break;}}}}if(0x0==_0x1decda['length'])return null;const _0x5f425c=this[_0x4786('0x10c')][_0x4786('0xfb')](_0x4786('0x12'),_0x36fa8a,'join');for(const _0x475c4f of this[_0x4786('0x6e')]())if(_0x475c4f['author']['id']==_0x1a1805['id']&&_0x4786('0x12')==_0x475c4f['type']&&_0x475c4f[_0x4786('0xd8')][_0x4786('0xf')]==_0x34a8db[_0x4786('0xf')]&&_0x475c4f[_0x4786('0xba')]==_0x36fa8a&&(_0x5f425c(_0x475c4f[_0x4786('0xc5')](),_0x1decda)||_0x5f425c(_0x1decda,_0x475c4f[_0x4786('0xc5')]()))){for(const _0x3edacd of _0x1decda)_0x475c4f[_0x4786('0x110')](_0x3edacd);return _0x475c4f;}const _0x2e339f=_0x2b8251(),_0x3e2cd2=_0x1a1805['id'],_0x4a3850='formatBlock:'+_0x36fa8a,_0x18f9a4=this['_setSuggestionData']({'id':_0x2e339f,'type':_0x4a3850,'data':_0x34a8db,'createdAt':new Date(),'authorId':_0x3e2cd2,'attributes':_0x24dcbf});for(const _0x1086f7 of _0x1decda)this[_0x4786('0x83')](_0x4a3850,_0x2e339f,_0x3e2cd2,_0x1086f7,_0x248223[_0x4786('0xda')]());return _0x18f9a4;}[_0x4786('0xe4')](_0x27518f,_0x12fc5a=null,_0x9ea0ab={}){if(_0x27518f[_0x4786('0xb6')])return null;const _0x5e4daa=this[_0x4786('0x112')][_0x4786('0x3d')][_0x4786('0x5a')](_0x4786('0x3e'))['me'],_0x193f75=new _0x4f9b9d(_0x27518f[_0x4786('0x68')],_0x27518f[_0x4786('0x87')]);for(const {suggestion:_0x2d50dd,meta:_0x1cb84d}of this[_0x4786('0x2a')](_0x193f75,'insertion'))if(_0x1cb84d['isOwn']&&!_0x1cb84d[_0x4786('0x5d')]){if(_0x2d50dd['isMultiRange']){const _0x3b3563=_0x2d50dd['getRanges']()[_0x4786('0xab')](_0x2867ff=>_0x4786('0x45')!=_0x2867ff[_0x4786('0x109')][_0x4786('0xa3')]);_0x3b3563['every'](_0x164fbd=>_0x193f75[_0x4786('0x7a')](_0x164fbd,!0x0))&&_0x2d50dd['discard']();if(_0x3b3563[_0x4786('0xa8')](_0x53c476=>_0x53c476['containsRange'](_0x193f75,!0x0))){const _0x38e356=this[_0x4786('0x10c')][_0x4786('0xfb')](_0x4786('0xb8'),_0x12fc5a,'accept');return this[_0x4786('0xb4')](()=>_0x38e356([_0x193f75],null,_0x9ea0ab)),null;}}else{const _0x22a5d9=_0x193f75[_0x4786('0x4a')](_0x2d50dd[_0x4786('0x118')]());null!==_0x22a5d9&&_0x2d50dd['_onDiscard']([_0x22a5d9],null,_0x9ea0ab);}}if(_0x193f75[_0x4786('0x129')](),_0x193f75[_0x4786('0xb6')]||_0x4786('0x45')==_0x193f75[_0x4786('0x109')][_0x4786('0xa3')])return null;let _0x1039d6=null,_0x5a1b4a=_0x193f75[_0x4786('0x68')],_0x115ba4=_0x193f75[_0x4786('0x87')];for(const {suggestion:_0x18886a,meta:_0x26cde1}of this['_findSuggestions'](_0x193f75,_0x4786('0xb8')))if(_0x26cde1['isOwn']){if(_0x18886a[_0x4786('0x51')]&&this[_0x4786('0x43')]){let _0x5826b8=!0x0;for(const _0x1ae50e of _0x18886a['getRanges']()){if(_0x1ae50e[_0x4786('0x7a')](_0x193f75,!0x0))return _0x18886a;_0x193f75['containsRange'](_0x1ae50e)||(_0x5826b8=!0x1);}_0x5826b8&&_0x18886a['discard']();}else{const _0x5da6f1=_0x18886a[_0x4786('0x118')]();if(_0x5da6f1[_0x4786('0x7a')](_0x193f75,!0x0)){if(!this[_0x4786('0x43')]&&_0x26cde1[_0x4786('0x61')])continue;return _0x18886a;}_0x5a1b4a=_0x5a1b4a['isBefore'](_0x5da6f1[_0x4786('0x68')])?_0x5a1b4a:_0x5da6f1[_0x4786('0x68')],_0x115ba4=_0x115ba4[_0x4786('0x102')](_0x5da6f1[_0x4786('0x87')])?_0x115ba4:_0x5da6f1[_0x4786('0x87')],_0x1039d6?_0x5da6f1['start']['isBefore'](_0x1039d6[_0x4786('0x118')]()[_0x4786('0x68')])?(_0x1039d6['removeMarkers'](),_0x1039d6=_0x18886a):_0x18886a[_0x4786('0xb7')]():_0x1039d6=_0x18886a;}}if(_0x1039d6)return this['_setSuggestionRange'](_0x1039d6,this['_model'][_0x4786('0x57')](_0x5a1b4a,_0x115ba4)),_0x1039d6;{const _0xe53dcb=_0x2b8251(),_0x11104f=this['_model'][_0x4786('0x57')](_0x5a1b4a,_0x115ba4),_0x2f3121=_0x5e4daa['id'],_0x114964=_0x12fc5a?_0x4786('0x113')+_0x12fc5a:_0x4786('0xb8'),_0x2d0039=this[_0x4786('0x90')]({'id':_0xe53dcb,'type':_0x114964,'createdAt':new Date(),'authorId':_0x2f3121,'attributes':_0x9ea0ab});return this[_0x4786('0x83')](_0x114964,_0xe53dcb,_0x2f3121,_0x11104f),_0x2d0039;}}['markMultiRangeDeletion'](_0x1409f5,_0x33797d=_0x4786('0x11d'),_0x57ef1d={}){const _0x31a222=this['editor'][_0x4786('0x3d')][_0x4786('0x5a')]('Users')['me'],_0x293534=_0x1409f5[_0x4786('0x38')](_0x51af2b=>new _0x4f9b9d(_0x51af2b[_0x4786('0x68')],_0x51af2b[_0x4786('0x87')])),_0x4475b3=new Set();for(const _0x147bd4 of _0x293534)for(const {suggestion:_0x34aa9e,meta:_0x166696}of this[_0x4786('0x2a')](_0x147bd4,_0x4786('0x2')))_0x166696['isOwn']&&!_0x166696[_0x4786('0x5d')]&&_0x4475b3[_0x4786('0xe5')](_0x34aa9e);for(const _0x1152a7 of _0x4475b3)if(_0x1152a7[_0x4786('0x51')]){const _0x4ef73f=_0x1152a7[_0x4786('0xc5')]();(!_0x1152a7['attributes']||!_0x1152a7[_0x4786('0x31')][_0x4786('0x104')])&&(_0x4ef73f[_0x4786('0x100')](_0x5a3d7f=>_0x293534['some'](_0x3573a8=>_0x3573a8[_0x4786('0x7a')](_0x5a3d7f,!0x0)))&&_0x1152a7[_0x4786('0x10f')]());if(_0x293534['every'](_0x38dc86=>_0x4ef73f[_0x4786('0xa8')](_0x16c67e=>_0x16c67e[_0x4786('0x7a')](_0x38dc86,!0x0)))){const _0x4a7937=this['_suggestionFactory'][_0x4786('0xfb')](_0x4786('0xb8'),_0x33797d,'accept');return this[_0x4786('0xb4')](()=>_0x4a7937(_0x1409f5,null,_0x57ef1d)),null;}}else{const _0x8970f9=_0x1152a7['getFirstRange']();_0x293534['some'](_0x3d0837=>_0x3d0837[_0x4786('0x7a')](_0x8970f9,!0x0))&&_0x1152a7[_0x4786('0x10f')]();if(_0x293534[_0x4786('0x100')](_0x244d5d=>_0x8970f9[_0x4786('0x7a')](_0x244d5d,!0x0))){const _0x22137c=this[_0x4786('0x10c')][_0x4786('0xfb')](_0x4786('0xb8'),_0x33797d,'accept');return this[_0x4786('0xb4')](()=>_0x22137c(_0x293534,null,_0x57ef1d)),null;}}const _0x48f716=this[_0x4786('0x10c')][_0x4786('0xfb')]('deletion',_0x33797d,'join');let _0x3edc20=null;for(const _0x39f442 of this[_0x4786('0x6e')]())if(_0x39f442[_0x4786('0x5')]['id']==_0x31a222['id']&&_0x39f442[_0x4786('0xe9')]&&'deletion'==_0x39f442[_0x4786('0x72')]&&_0x39f442[_0x4786('0xba')]==_0x33797d&&(_0x48f716(_0x39f442[_0x4786('0xc5')](),_0x293534)||_0x48f716(_0x293534,_0x39f442[_0x4786('0xc5')]()))){if(_0x3edc20){if(_0x39f442['commentThread']&&_0x39f442[_0x4786('0x4c')][_0x4786('0x1')])continue;for(const _0x19654 of _0x39f442['getRanges']())_0x3edc20[_0x4786('0xc')](_0x19654)||_0x3edc20[_0x4786('0x110')](_0x19654);_0x39f442[_0x4786('0xb7')]();}else{_0x3edc20=_0x39f442;for(const _0xea5913 of _0x293534)_0x39f442[_0x4786('0xc')](_0xea5913)||_0x39f442[_0x4786('0x110')](_0xea5913);}}if(_0x3edc20)return _0x3edc20;_0x4475b3[_0x4786('0x86')]();for(const _0x2f6776 of _0x293534)for(const {suggestion:_0x4d05c1,meta:_0x12667d}of this[_0x4786('0x2a')](_0x2f6776,_0x4786('0xb8')))_0x12667d[_0x4786('0x107')]&&_0x4475b3[_0x4786('0xe5')](_0x4d05c1);for(const _0x564a94 of _0x4475b3){const _0x429c0d=_0x564a94[_0x4786('0xc5')]();if(!_0x57ef1d||!_0x57ef1d['skipNestingCheck']){if(_0x293534['every'](_0x1fd152=>_0x429c0d[_0x4786('0xa8')](_0x55a368=>_0x55a368[_0x4786('0x7a')](_0x1fd152,!0x0))))return _0x564a94;}(!_0x564a94[_0x4786('0x31')]||!_0x564a94[_0x4786('0x31')][_0x4786('0x104')])&&(_0x429c0d[_0x4786('0x100')](_0x53b069=>_0x293534['some'](_0x466df6=>_0x466df6[_0x4786('0x7a')](_0x53b069,!0x0)))&&_0x564a94[_0x4786('0x10f')]());}const _0x436b8d=_0x2b8251(),_0x4d286d=_0x31a222['id'],_0x143307=_0x4786('0x113')+_0x33797d,_0x1d115a=this['_setSuggestionData']({'id':_0x436b8d,'type':_0x143307,'createdAt':new Date(),'authorId':_0x4d286d,'attributes':_0x57ef1d});for(const _0x56b071 of _0x293534)_0x56b071[_0x4786('0x129')](),_0x56b071[_0x4786('0xb6')]||_0x4786('0x45')==_0x56b071[_0x4786('0x109')]['rootName']||this['_addSuggestionMarker'](_0x143307,_0x436b8d,_0x4d286d,_0x56b071,_0x248223[_0x4786('0xda')]());return _0x1d115a;}[_0x4786('0x47')](_0x48bd66,_0x4438d2){const _0x5b6119=_0x48bd66[_0x4786('0xdc')]();this[_0x4786('0x44')]['change'](_0x30e4d7=>{_0x30e4d7['updateMarker'](_0x5b6119,{'range':_0x4438d2});});}[_0x4786('0xf8')](_0x2d3661){const _0x54b014=_0x2d3661['id'],_0x110ac1=this[_0x4786('0x112')][_0x4786('0x75')]['get'](_0x4786('0x12f'));this['_commentsRepository']['hasCommentThread'](_0x54b014)||this[_0x4786('0x1d')][_0x4786('0xff')]({'channelId':_0x110ac1,'threadId':_0x54b014,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2400a3=this[_0x4786('0x1d')][_0x4786('0x2d')](_0x54b014);_0x2400a3[_0x4786('0x7e')](_0x4786('0x131')),_0x2400a3[_0x4786('0x131')]=!0x1,_0x2d3661[_0x4786('0x4c')]=_0x2400a3;}['_checkSuggestionCorrectness'](_0x4941a7,_0x105025,_0x21aecd,_0x298ace){if(_0x4941a7['type']!=_0x105025||_0x4941a7[_0x4786('0xba')]!=_0x21aecd||_0x4941a7[_0x4786('0x3f')]['id']!=_0x298ace)throw this[_0x4786('0x112')][_0x4786('0x88')]('track-changes-suggestion-data-mismatch'),new _0x166ded(_0x4786('0x7d'),this);}['_cutOutSuggestionMarker'](_0x6efa1a,_0x2ded69){const _0x2176d4=_0x6efa1a['getFirstRange']();if(_0x2ded69[_0x4786('0x2e')](_0x2176d4))_0x6efa1a['removeMarkers']();else{if(_0x2176d4[_0x4786('0x7a')](_0x2ded69)){const _0x22732c=this[_0x4786('0x44')][_0x4786('0x106')](_0x2ded69[_0x4786('0x68')][_0x4786('0x17')],_0x4786('0x87'));this['_setSuggestionRange'](_0x6efa1a,this[_0x4786('0x44')][_0x4786('0x57')](_0x2176d4[_0x4786('0x68')],_0x22732c));const _0x39d25c=_0x2b8251(),_0x2b5aba=_0x6efa1a[_0x4786('0x3f')]['id'],_0xbacb1d=_0x6efa1a[_0x4786('0x72')]+':'+_0x6efa1a[_0x4786('0xba')];this['_setSuggestionData']({'id':_0x39d25c,'type':_0xbacb1d,'createdAt':new Date(),'authorId':_0x2b5aba,'data':_0x6efa1a[_0x4786('0xd8')],'attributes':_0x6efa1a[_0x4786('0x31')]});const _0x57670f=this[_0x4786('0x44')][_0x4786('0x106')](_0x2ded69[_0x4786('0x87')][_0x4786('0x6')],_0x4786('0x8e')),_0x37a551=this[_0x4786('0x44')][_0x4786('0x57')](_0x57670f,_0x2176d4[_0x4786('0x87')]);this['_addSuggestionMarker'](_0xbacb1d,_0x39d25c,_0x2b5aba,_0x37a551);}else{if(_0x2176d4[_0x4786('0x3b')](_0x2ded69[_0x4786('0x68')])){const _0x245ed7=this[_0x4786('0x44')][_0x4786('0x106')](_0x2ded69['start'][_0x4786('0x17')],_0x4786('0x87'));this[_0x4786('0x47')](_0x6efa1a,this[_0x4786('0x44')][_0x4786('0x57')](_0x2176d4[_0x4786('0x68')],_0x245ed7));}else{const _0x371269=this[_0x4786('0x44')]['createPositionAt'](_0x2ded69[_0x4786('0x87')][_0x4786('0x6')],'after');this[_0x4786('0x47')](_0x6efa1a,this[_0x4786('0x44')][_0x4786('0x57')](_0x371269,_0x2176d4[_0x4786('0x87')]));}}}}['_rangeIsInLocalUserInsertion'](_0x1e087){for(const {suggestion:_0x276f4a,meta:_0x5c7c6c}of this[_0x4786('0x2a')](_0x1e087,_0x4786('0x2'))){if(!_0x5c7c6c['isOwn'])continue;const _0x10c7d8=_0x276f4a[_0x4786('0xc5')]();for(const _0x1d6328 of _0x10c7d8)if(!_0x1e087[_0x4786('0x6c')](_0x1d6328)[_0x4786('0x1')])return!0x0;}return!0x1;}[_0x4786('0x24')](_0x483019){const _0x48a9bf=this[_0x4786('0x112')]['plugins'][_0x4786('0x5a')](_0x4786('0x3e'))[_0x4786('0x134')](_0x483019);if(!_0x48a9bf)throw new _0x166ded('track-changes-user-not-found',this);return _0x48a9bf;}[_0x4786('0xfd')](_0x2ba92e){const _0x38772a=this[_0x4786('0x112')][_0x4786('0x3d')][_0x4786('0x5a')](_0x4786('0x3e')),_0x432dc3=_0x4075a5(_0x4786('0xe1')+_0x2ba92e),_0x2c5f46=_0x38772a[_0x4786('0x134')](_0x432dc3);return _0x2c5f46||_0x38772a['addUser']({'id':_0x432dc3,'name':_0x2ba92e});}[_0x4786('0x81')](_0x222074,_0x7931ce,_0x1ffaf7,_0x53afd3,_0x5ab33a){const _0x4ab465=this[_0x4786('0x24')](_0x53afd3),_0x5a0708=this['_suggestionFactory'][_0x4786('0x36')](_0x222074,_0x7931ce,_0x1ffaf7,_0x4ab465,_0x5ab33a,_0x5361a2=>this[_0x4786('0xa7')](_0x1ffaf7,{'attributes':_0x5361a2}));return this[_0x4786('0xc1')](_0x5a0708,_0x4786('0x4'),()=>{this[_0x4786('0xa7')](_0x1ffaf7,{'state':_0x4786('0x6d')});},{'priority':_0x4786('0x6f')}),this[_0x4786('0xc1')](_0x5a0708,_0x4786('0x10f'),()=>{this[_0x4786('0xa7')](_0x1ffaf7,{'state':_0x4786('0xf9')});},{'priority':_0x4786('0x6f')}),this[_0x4786('0x30')]['set'](_0x1ffaf7,_0x5a0708),this['_suggestionState'][_0x4786('0xf5')](_0x5a0708,'notReady'),_0x5a0708;}[_0x4786('0xd2')](_0x1c723a){const _0x3a2be6=_0x1c723a[_0x4786('0x103')](':');return{'group':_0x3a2be6[0x0],'type':_0x3a2be6[0x1],'subType':_0x3a2be6[_0x4786('0x1')]>=0x5?_0x3a2be6[0x2]:null,'id':_0x3a2be6[_0x4786('0x1')]<0x5?_0x3a2be6[0x2]:_0x3a2be6[0x3],'authorId':_0x3a2be6[_0x4786('0x1')]<0x5?_0x3a2be6[0x3]:_0x3a2be6[0x4],'markerCount':0x6==_0x3a2be6[_0x4786('0x1')]?_0x3a2be6[0x5]:null};}['_breakSuggestionMarker'](_0x1c994f,_0x308ad3,_0x4a6c00){const _0x2cec54=_0x1c994f[_0x4786('0x118')](),_0xf9304b=_0x2cec54[_0x4786('0x68')],_0x40f657=_0x2cec54['end'];this['_setSuggestionRange'](_0x1c994f,this[_0x4786('0x44')]['createRange'](_0xf9304b,_0x308ad3));const _0x5e755b=_0x2b8251(),_0x514bd6=_0x1c994f['creator']['id'],_0x26b220=_0x1c994f[_0x4786('0x72')]+(_0x1c994f['subType']?':'+_0x1c994f['subType']:'');this[_0x4786('0x90')]({'id':_0x5e755b,'type':_0x26b220,'createdAt':new Date(),'authorId':_0x514bd6,'originalSuggestionId':_0x1c994f['id'],'attributes':_0x1c994f[_0x4786('0x31')],'data':_0x1c994f['data']}),_0x4786('0x12')==_0x1c994f['type']&&(_0x4a6c00=this[_0x4786('0x44')]['createPositionBefore'](_0x4a6c00[_0x4786('0x6')])),this[_0x4786('0x83')](_0x26b220,_0x5e755b,_0x514bd6,this[_0x4786('0x44')]['createRange'](_0x4a6c00,_0x40f657));}[_0x4786('0x2a')](_0x4d5c90,_0x17b15f=null){const _0x470ad1=[],_0x1a96c0=this[_0x4786('0x44')][_0x4786('0x67')],_0x256833=this['editor']['plugins'][_0x4786('0x5a')](_0x4786('0x3e'))['me'];for(const _0x3669d8 of this[_0x4786('0x6e')]())if(_0x3669d8[_0x4786('0xe9')]&&(!_0x17b15f||_0x3669d8[_0x4786('0x72')]==_0x17b15f))for(const _0x5a7215 of _0x3669d8[_0x4786('0xc5')]()){const _0x347706=_0x4d5c90['start'][_0x4786('0x2e')](_0x5a7215[_0x4786('0x87')])||_0x4d5c90[_0x4786('0x87')][_0x4786('0x2e')](_0x5a7215[_0x4786('0x68')]);if(_0x347706||_0x4d5c90['getIntersection'](_0x5a7215)){const _0x92d2b1=_0x4d5c90['containsRange'](_0x5a7215)&&Bt(_0x1a96c0,_0x5a7215['start'],_0x4d5c90),_0x3362ac=_0x5a7215['containsRange'](_0x4d5c90)&&Bt(_0x1a96c0,_0x4d5c90[_0x4786('0x68')],_0x5a7215);_0x470ad1[_0x4786('0x2f')]({'suggestion':_0x3669d8,'meta':{'isOwn':_0x256833==_0x3669d8['author'],'isNextTo':_0x347706,'isInsideObject':_0x92d2b1,'containsRangeInObject':_0x3362ac}});break;}}return _0x470ad1;}[_0x4786('0x83')](_0x38f6e4,_0x35f4d8,_0x3f974d,_0xcd63be,_0x309243){this[_0x4786('0x44')][_0x4786('0x64')](_0x4379fc=>{let _0x2bf73e='suggestion:'+_0x38f6e4+':'+_0x35f4d8+':'+_0x3f974d;_0x309243&&(_0x2bf73e=_0x2bf73e+':'+_0x309243),_0x4379fc[_0x4786('0x2b')](_0x2bf73e,{'range':_0xcd63be,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4786('0xce')](_0x332f31){const _0x10fe55=_0x332f31['previous'],_0x138c33=_0x332f31[_0x4786('0x5c')];_0x332f31[_0x4786('0xeb')]=null,null!=_0x10fe55&&(_0x10fe55['next']=null),_0x332f31['next']=null,null!=_0x138c33&&(_0x138c33[_0x4786('0xeb')]=null),'ready'==this['_suggestionState'][_0x4786('0x5a')](_0x332f31)&&(this[_0x4786('0x22')][_0x4786('0xf5')](_0x332f31,_0x4786('0xc9')),this['fire']('suggestionUnloaded',_0x332f31,_0x10fe55,_0x138c33));}[_0x4786('0x90')](_0x1e3b30){const _0x1e6567=_0x1e3b30['id'],_0x275406=this['addSuggestionData'](_0x1e3b30);if(this['_adapter']&&this[_0x4786('0xfa')][_0x4786('0xb3')]){const _0x1dc1a0=this[_0x4786('0x112')][_0x4786('0x3d')][_0x4786('0x5a')](_0x4786('0x1f')),_0x4ebb7d=_0x275406[_0x4786('0x1e')],_0x2c32e2=_0x275406[_0x4786('0xba')]?_0x275406[_0x4786('0x72')]+':'+_0x275406[_0x4786('0xba')]:_0x275406[_0x4786('0x72')],_0x233eab=this[_0x4786('0x112')][_0x4786('0xd5')],_0x26b484=_0x1dc1a0['add'](_0x4c1f36(_0x233eab,_0x4786('0xbf'))),_0x11c495={'id':_0x1e6567,'type':_0x2c32e2,'hasComments':_0x4ebb7d,'data':_0x1e3b30[_0x4786('0xd8')]||null,'originalSuggestionId':_0x1e3b30[_0x4786('0x91')]||null,'attributes':_0x275406[_0x4786('0x31')]};this[_0x4786('0xfa')][_0x4786('0xb3')](_0x11c495)['then'](_0x203caa=>{_0x275406[_0x4786('0x116')]=!0x0,_0x1dc1a0[_0x4786('0x127')](_0x26b484),_0x203caa&&_0x203caa[_0x4786('0x34')]&&(this[_0x4786('0x30')][_0x4786('0x5a')](_0x1e6567)['createdAt']=_0x203caa[_0x4786('0x34')]);})['catch'](_0x1d9c25=>{throw _0x5fd25e('error-saving-suggestion-data-suggestion-discarded'),this[_0x4786('0x112')][_0x4786('0x89')][_0x4786('0xa2')]({'isUndoable':!0x1},()=>{_0x275406[_0x4786('0x10f')]();}),_0x275406['stopListening'](),this[_0x4786('0x30')][_0x4786('0xbb')](_0x275406['id']),this[_0x4786('0x22')][_0x4786('0xbb')](_0x275406),_0x1d9c25;});}return _0x275406;}[_0x4786('0xa7')](_0x1af66e,_0x281c7e){const _0x170094=this['editor'][_0x4786('0x3d')][_0x4786('0x5a')](_0x4786('0x1f')),_0x450dff=this['getSuggestion'](_0x1af66e);if(this['_adapter']&&this[_0x4786('0xfa')][_0x4786('0xbc')]){if(_0x450dff[_0x4786('0x116')]){const _0x585944=_0x170094[_0x4786('0xe5')](_0x4c1f36(this[_0x4786('0x112')][_0x4786('0xd5')],_0x4786('0xbf')));this['_adapter'][_0x4786('0xbc')](_0x1af66e,_0x281c7e)[_0x4786('0x1c')](()=>{_0x170094[_0x4786('0x127')](_0x585944);});}else _0x450dff['on'](_0x4786('0xa1'),()=>{this['_updateSuggestionData'](_0x1af66e,_0x281c7e);});}}[_0x4786('0x79')](_0x119bf0){if(!this[_0x4786('0xfa')]||!this[_0x4786('0xfa')][_0x4786('0x117')])throw new _0x166ded('track-changes-adapter-missing-getsuggestion',this);return this[_0x4786('0xfa')][_0x4786('0x117')](_0x119bf0);}[_0x4786('0x66')](_0x40d8d3){const {id:_0x71fdad,type:_0x449feb,subType:_0x269a9f,authorId:_0x2ad0b0}=this[_0x4786('0xd2')](_0x40d8d3),_0x553b53=this[_0x4786('0x30')][_0x4786('0x5a')](_0x71fdad)||this[_0x4786('0x81')](_0x449feb,_0x269a9f,_0x71fdad,_0x2ad0b0,{});switch(this[_0x4786('0x124')](_0x553b53,_0x449feb,_0x269a9f,_0x2ad0b0),this[_0x4786('0x22')][_0x4786('0x5a')](_0x553b53)){case'notReady':this[_0x4786('0x79')](_0x71fdad)[_0x4786('0x1c')](_0x17cbcf=>{let _0x3f07c3=Promise[_0x4786('0xb9')]();_0x17cbcf[_0x4786('0x1e')]&&(_0x3f07c3=this[_0x4786('0x1d')][_0x4786('0x69')]({'channelId':this[_0x4786('0x112')][_0x4786('0x75')][_0x4786('0x5a')](_0x4786('0x12f')),'threadId':_0x71fdad})),_0x3f07c3[_0x4786('0x1c')](()=>{this[_0x4786('0x9')](_0x17cbcf)[_0x4786('0x116')]=!0x0;});}),this['_suggestionState'][_0x4786('0xf5')](_0x553b53,_0x4786('0xb5'));break;case _0x4786('0xc9'):this[_0x4786('0xa7')](_0x71fdad,{'state':_0x4786('0xcc')});case _0x4786('0x11b'):this[_0x4786('0x22')][_0x4786('0xf5')](_0x553b53,'ready'),this[_0x4786('0x11')]('suggestionLoaded',_0x553b53);break;case'ready':this[_0x4786('0x11')](_0x4786('0x11c'),_0x553b53);}return _0x553b53[_0x4786('0xb')](_0x40d8d3),_0x553b53;}[_0x4786('0xb2')](_0x594b2c){const _0x56232d=Array[_0x4786('0x10')](_0x594b2c)[_0x4786('0xab')](_0x18753b=>!_0x18753b[_0x4786('0x51')]),_0x34a9d2=this[_0x4786('0x6e')]({'skipNotAttached':!0x0})[_0x4786('0xab')](_0x41c0db=>!_0x41c0db[_0x4786('0x51')]),_0x3a614f=_0x34a9d2['filter'](_0x59fffa=>!_0x594b2c[_0x4786('0xac')](_0x59fffa)),_0x3cc0ef=new Map(_0x34a9d2['map'](_0x3f4f40=>[_0x3f4f40,this[_0x4786('0x10c')][_0x4786('0xfb')](_0x3f4f40[_0x4786('0x72')],_0x3f4f40[_0x4786('0xba')],_0x4786('0x122'))])),_0xccaa14=new Map(_0x34a9d2[_0x4786('0x38')](_0x425aaa=>[_0x425aaa,_0x425aaa['getFirstRange']()])),_0x44e10f=new Set(),_0x4d667c=new Set();for(let _0x3a7a9f=0x0;_0x3a7a9f<_0x56232d[_0x4786('0x1')];_0x3a7a9f++)_0x57071e(_0x56232d[_0x3a7a9f],_0x56232d,_0x3a7a9f+0x1);for(let _0x2473e5=0x0;_0x2473e5<_0x56232d[_0x4786('0x1')];_0x2473e5++)_0x57071e(_0x56232d[_0x2473e5],_0x3a614f,0x0);for(let _0x6f9dbf=0x0;_0x6f9dbf<_0x56232d[_0x4786('0x1')];_0x6f9dbf++){const _0x461e1a=_0x56232d[_0x6f9dbf];!_0x4d667c[_0x4786('0xac')](_0x461e1a)&&_0x461e1a[_0x4786('0xeb')]&&(_0x461e1a[_0x4786('0xeb')]['next']===_0x461e1a&&(_0x461e1a[_0x4786('0xeb')][_0x4786('0x5c')]=null),_0x461e1a[_0x4786('0xeb')]=null),!_0x44e10f['has'](_0x461e1a)&&_0x461e1a['next']&&(_0x461e1a[_0x4786('0x5c')][_0x4786('0xeb')]===_0x461e1a&&(_0x461e1a[_0x4786('0x5c')]['previous']=null),_0x461e1a['next']=null);}function _0x57071e(_0x2b1594,_0x3b2cef,_0x23e9b7){for(let _0x231c0e=_0x23e9b7;_0x231c0e<_0x3b2cef[_0x4786('0x1')];_0x231c0e++){const _0xa528fe=_0x1f8c7f(_0x2b1594,_0x3b2cef[_0x231c0e]);_0xa528fe&&(_0xa528fe[0x0][_0x4786('0x5c')]=_0xa528fe[0x1],_0xa528fe[0x1][_0x4786('0xeb')]=_0xa528fe[0x0],_0x44e10f['add'](_0xa528fe[0x0]),_0x4d667c[_0x4786('0xe5')](_0xa528fe[0x1]));}}function _0x1f8c7f(_0x43a0be,_0x3af009){if(_0x43a0be['author']['id']!==_0x3af009[_0x4786('0x5')]['id'])return null;const _0xf34842=_0x3cc0ef['get'](_0x43a0be)(_0x43a0be,_0x3af009,_0xccaa14[_0x4786('0x5a')](_0x43a0be),_0xccaa14[_0x4786('0x5a')](_0x3af009));if(!_0xf34842)return null;return _0x3cc0ef['get'](_0x3af009)(_0x43a0be,_0x3af009,_0xccaa14[_0x4786('0x5a')](_0x43a0be),_0xccaa14[_0x4786('0x5a')](_0x3af009))?_0xf34842[0x1][_0x4786('0x4c')]&&_0xf34842[0x1][_0x4786('0x4c')][_0x4786('0x1')]?null:_0xf34842:null;}}[_0x4786('0xc3')](_0x57461f){const _0x3fca04=Array[_0x4786('0x10')](_0x57461f),_0x5d43d3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x10d945=_0x5d43d3[_0x4786('0xab')](_0x475af7=>!_0x57461f[_0x4786('0xac')](_0x475af7)),_0x127906=new Map(_0x3fca04[_0x4786('0x38')](_0x1fc823=>[_0x1fc823,this[_0x4786('0x10c')][_0x4786('0xfb')](_0x1fc823[_0x4786('0x72')],_0x1fc823[_0x4786('0xba')],'join')])),_0x24a044=new Map(_0x5d43d3[_0x4786('0x38')](_0x2bc45f=>[_0x2bc45f,_0x2bc45f[_0x4786('0xc5')]()]));for(let _0xe0cd53=0x0;_0xe0cd53<_0x3fca04[_0x4786('0x1')];_0xe0cd53++){if(_0x538d5e(this,_0x3fca04[_0xe0cd53],_0x3fca04,_0xe0cd53+0x1))return!0x0;}for(let _0x510d9e=0x0;_0x510d9e<_0x3fca04[_0x4786('0x1')];_0x510d9e++){if(_0x538d5e(this,_0x3fca04[_0x510d9e],_0x10d945,0x0))return!0x0;}return!0x1;function _0x538d5e(_0x54416d,_0x2635d4,_0x436ef1,_0x4af30a){for(let _0x1e977e=_0x4af30a;_0x1e977e<_0x436ef1[_0x4786('0x1')];_0x1e977e++){const _0x48d1fe=_0x436ef1[_0x1e977e];if(_0x48d1fe[_0x4786('0x72')]!==_0x2635d4[_0x4786('0x72')]||_0x48d1fe[_0x4786('0x5')]['id']!==_0x2635d4[_0x4786('0x5')]['id']||_0x48d1fe[_0x4786('0xba')]!==_0x2635d4[_0x4786('0xba')])continue;const _0x191ea2=_0x127906[_0x4786('0x5a')](_0x2635d4),_0x55eb71=_0x24a044[_0x4786('0x5a')](_0x2635d4),_0x4c5e74=_0x24a044['get'](_0x48d1fe),_0x1ab06e=_0x2635d4['commentThread']&&_0x2635d4[_0x4786('0x4c')]['length'],_0x15cd46=_0x48d1fe[_0x4786('0x4c')]&&_0x48d1fe['commentThread'][_0x4786('0x1')];if(!_0x1ab06e&&_0x191ea2(_0x4c5e74,_0x55eb71))return _0x54416d[_0x4786('0x33')](_0x48d1fe,_0x2635d4),_0x24a044['delete'](_0x2635d4),!0x0;if(!_0x15cd46&&_0x191ea2(_0x55eb71,_0x4c5e74))return _0x54416d['_joinSuggestions'](_0x2635d4,_0x48d1fe),_0x24a044[_0x4786('0xbb')](_0x48d1fe),!0x0;}return!0x1;}}['_joinSuggestions'](_0x209109,_0x34e4dd){if(_0x209109[_0x4786('0x51')])for(const _0x324bb1 of _0x34e4dd[_0x4786('0xc5')]())_0x209109[_0x4786('0x110')](_0x324bb1);else{const _0x24732e=_0x34e4dd[_0x4786('0x118')]()[_0x4786('0x87')];this['_setSuggestionRange'](_0x209109,this[_0x4786('0x44')][_0x4786('0x57')](_0x209109['getFirstRange']()[_0x4786('0x68')],_0x24732e));}_0x34e4dd['removeMarkers']();}}class Dt{constructor(_0x3db5e3){this['_editor']=_0x3db5e3,this[_0x4786('0x44')]=_0x3db5e3['model'],this[_0x4786('0x108')]=new Map(),this[_0x4786('0x4e')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4786('0x36')](_0x2bffdc,_0x238694,_0x15ca09,_0x21da83,_0x5d344,_0x51aa18){return new _0x248223(this[_0x4786('0x44')],{'type':_0x2bffdc,'subType':_0x238694,'id':_0x15ca09,'author':_0x21da83,'creator':_0x21da83,'attributes':_0x5d344,'onAttributesChange':_0x51aa18,'onAccept':(..._0x51f125)=>this[_0x4786('0xfb')](_0x2bffdc,_0x238694,_0x4786('0x4'))(..._0x51f125),'onDiscard':(..._0x399691)=>this[_0x4786('0xfb')](_0x2bffdc,_0x238694,_0x4786('0x10f'))(..._0x399691)});}[_0x4786('0x111')](_0x20fa13,_0x2fe417,_0x542bc8,_0x1f01ab){const _0x2fdabf=_0x20fa13+':'+_0x2fe417+':'+_0x542bc8;this[_0x4786('0x108')][_0x4786('0xf5')](_0x2fdabf,_0x1f01ab);}[_0x4786('0xfb')](_0x12559e,_0x3734ae,_0x40eef9){const _0x5e1b48=_0x12559e+':'+_0x3734ae+':'+_0x40eef9;return this[_0x4786('0x108')][_0x4786('0x5a')](_0x5e1b48)||this[_0x4786('0x4e')][_0x4786('0x5a')](_0x12559e+':'+_0x40eef9);}[_0x4786('0x11e')](){const _0x4bc1b5=()=>{},_0x523187=_0x150ef1=>{_0x150ef1[_0x4786('0xc2')]((_0x102482,_0x18bfe9)=>_0x102482[_0x4786('0x68')][_0x4786('0x5f')](_0x18bfe9['start'])?0x1:-0x1),this['_model'][_0x4786('0x64')](_0x5ac83a=>{for(const _0x281fe4 of _0x150ef1){let _0x2ef9bf;_0x2ef9bf=_0x281fe4[_0x4786('0x87')][_0x4786('0x40')]&&_0x281fe4[_0x4786('0x87')]['parent']==_0x281fe4[_0x4786('0x68')][_0x4786('0x15')]?_0x5ac83a[_0x4786('0xaa')](_0x281fe4[_0x4786('0x68')][_0x4786('0x15')],'on'):_0x5ac83a[_0x4786('0xaa')](_0x281fe4),this[_0x4786('0x44')]['deleteContent'](_0x2ef9bf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5475d5=(_0x3c5ac1,_0x12b248)=>{this[_0x4786('0x44')]['change'](_0x46c08d=>{const {commandName:_0x4ee314,commandParams:_0x39e181=[]}=_0x12b248,_0x101953=_0x3c5ac1[_0x4786('0x38')](_0x406a8f=>(_t(_0x406a8f)&&(_0x406a8f=this['_model'][_0x4786('0x57')](_0x406a8f[_0x4786('0x87')])),_0x406a8f))[_0x4786('0xab')](_0x5ad653=>_0x4786('0x45')!==_0x5ad653[_0x4786('0x109')][_0x4786('0xa3')]);if(_0x101953[_0x4786('0x1')]<0x1)return;const _0x452238=Array[_0x4786('0x10')](this['_model']['document'][_0x4786('0xf4')]['getRanges']())[_0x4786('0x38')](_0x5f5d81=>_0x4f9b9d[_0x4786('0x21')](_0x5f5d81));_0x46c08d[_0x4786('0x125')](_0x101953);for(const _0x12fdbd of this['_editor'][_0x4786('0x84')][_0x4786('0x84')]())_0x12fdbd[_0x4786('0x16')]();_0x39e181[_0x4786('0x2f')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4786('0x11a')](_0x4ee314,..._0x39e181);const _0x58a795=_0x452238['filter'](_0xeaaa37=>_0x4786('0x45')!=_0xeaaa37[_0x4786('0x109')][_0x4786('0xa3')]);_0x58a795[_0x4786('0x1')]>0x0&&_0x46c08d[_0x4786('0x125')](_0x58a795);for(const _0x563ce7 of _0x452238)_0x563ce7[_0x4786('0x129')]();});},_0x1a5b17=(_0x1629e9,_0x31eab3)=>0x1==_0x1629e9['length']&&0x1==_0x31eab3[_0x4786('0x1')]&&_0x1629e9[0x0]['end'][_0x4786('0x2e')](_0x31eab3[0x0][_0x4786('0x68')]),_0x59ae4c=(_0x8863a9,_0x4ac1df,_0x5e12f7,_0x3d0e13)=>xt(_0x8863a9,_0x4ac1df,_0x5e12f7,_0x3d0e13,this[_0x4786('0x44')])?[_0x8863a9,_0x4ac1df]:xt(_0x4ac1df,_0x8863a9,_0x3d0e13,_0x5e12f7,this[_0x4786('0x44')])?[_0x4ac1df,_0x8863a9]:null;this['_defaultCallbacks']['set'](_0x4786('0xdb'),_0x4bc1b5),this['_defaultCallbacks']['set'](_0x4786('0x9f'),_0x523187),this[_0x4786('0x4e')][_0x4786('0xf5')](_0x4786('0xe0'),_0x1a5b17),this[_0x4786('0x4e')][_0x4786('0xf5')](_0x4786('0xe7'),_0x59ae4c),this[_0x4786('0x4e')][_0x4786('0xf5')](_0x4786('0x80'),_0x523187),this[_0x4786('0x4e')]['set'](_0x4786('0x55'),_0x4bc1b5),this['_defaultCallbacks'][_0x4786('0xf5')](_0x4786('0x7f'),_0x1a5b17),this[_0x4786('0x4e')][_0x4786('0xf5')](_0x4786('0x35'),_0x59ae4c),this[_0x4786('0x4e')][_0x4786('0xf5')](_0x4786('0x18'),_0x5475d5),this['_defaultCallbacks'][_0x4786('0xf5')](_0x4786('0xf0'),_0x4bc1b5),this[_0x4786('0x4e')][_0x4786('0xf5')]('formatInline:join',_0x1a5b17),this[_0x4786('0x4e')]['set']('formatInline:chain',_0x4bc1b5),this[_0x4786('0x4e')]['set'](_0x4786('0x12c'),_0x5475d5),this[_0x4786('0x4e')]['set'](_0x4786('0x114'),_0x4bc1b5),this[_0x4786('0x4e')]['set'](_0x4786('0xad'),_0x1a5b17),this[_0x4786('0x4e')][_0x4786('0xf5')](_0x4786('0xa'),_0x4bc1b5);}}function Bt(_0x1be186,_0xa9c727,_0x3c5d98){for(const _0x47616d of _0xa9c727[_0x4786('0x6')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47616d[_0x4786('0x109')]==_0x47616d)return!0x1;if(!_0x3c5d98['containsItem'](_0x47616d))return!0x1;if(_0x1be186[_0x4786('0x41')](_0x47616d)||_0x1be186[_0x4786('0x23')](_0x47616d))return!0x0;}return!0x1;}function _t(_0xa7347){return _0xa7347[_0x4786('0x87')][_0x4786('0x6')]==_0xa7347[_0x4786('0x68')][_0x4786('0x15')]&&_0xa7347[_0x4786('0x87')][_0x4786('0x25')];}function Mt(_0xd0b281,_0x48a515,_0x2da7cf,_0x3131e2){const _0x2a9a0c=_0x7d8e47=>!_0x7d8e47['item']['is'](_0x4786('0x5e'))&&!_0x3131e2[_0x4786('0x41')](_0x7d8e47['item']),_0x1898f0=_0xd0b281['start']['getLastMatchingPosition'](_0x2a9a0c),_0xd78e64=_0xd0b281[_0x4786('0x87')][_0x4786('0xa0')](_0x2a9a0c,{'direction':'backward'});return(!_0xd0b281[_0x4786('0x68')][_0x4786('0x2e')](_0x1898f0)||!_0xd0b281['end']['isEqual'](_0xd78e64))&&(_0x1898f0[_0x4786('0x5f')](_0xd78e64)?_0x2da7cf[_0x4786('0x9e')](_0x48a515,{'range':_0x2da7cf[_0x4786('0x57')](_0x1898f0,_0xd78e64)}):_0x2da7cf[_0x4786('0x8d')](_0x48a515),!0x0);}function $t(_0x2b3f3b){return _0x4075a5(_0x2b3f3b);}function Nt(_0x837ce1){const _0x1bfac1=_0x837ce1[_0x4786('0x68')][_0x4786('0x15')];return _0x1bfac1&&_0x1bfac1['is']('element');}function Rt(_0x59c2b8,_0x3619a8){const _0x3292f2=_0x3619a8[_0x4786('0x67')][_0x4786('0x41')](_0x59c2b8)||_0x3619a8['schema']['isSelectable'](_0x59c2b8);return _0x3619a8[_0x4786('0x57')](_0x3619a8[_0x4786('0x106')](_0x59c2b8,_0x4786('0x32')),_0x3292f2?_0x3619a8[_0x4786('0x119')](_0x59c2b8):_0x3619a8[_0x4786('0x106')](_0x59c2b8,_0x4786('0x87')));}function xt(_0x1865a4,_0x486c96,_0x2c581d,_0x304a2d,_0x411a01){if(_0x2c581d[_0x4786('0x87')][_0x4786('0x2e')](_0x304a2d['start']))return!0x0;if(_0x1865a4['type']!=_0x486c96['type'])return!0x1;if(!_0x2c581d['end'][_0x4786('0x48')](_0x304a2d['start']))return!0x1;const _0x4c5da2=_0x411a01[_0x4786('0x57')](_0x2c581d[_0x4786('0x87')],_0x304a2d[_0x4786('0x68')])[_0x4786('0x71')]();for(const _0x4a93a7 of _0x4c5da2)if([_0x4786('0x3c'),'elementEnd'][_0x4786('0x70')](_0x4a93a7['type'])&&_0x411a01[_0x4786('0x67')][_0x4786('0x23')](_0x4a93a7['item']))return!0x1;return!0x0;}
23
+ const _0x4794=['markerName','createPositionAt','insertContent','getShiftedBy','editing','getLastMatchingPosition','type','_registerDefaultCallbacks','discardAllSuggestions','parent','updateMarker','_mergeNestedSuggestions','isInContent','removeClass','_customCallbacks','getAllAdjacentSuggestions','attributes','for','move','isExternal','dataReady','error-saving-suggestion-data-suggestion-discarded','fetchCommentThread','ready','getRanges','requires','TrackChangesEditing','_createSuggestion','_breakSuggestionMarker','isBlock','push','forward','execute','delete','catch','unbind','collaboration.channelId','insertion','addCommentThread','listenTo','getIntersection','detach','insert','writer','sort','rootName','open','getAttribute','isIntersectingWithRange','widget','bindElementToMarker','split','config','addClass','clear','isEqual','fire','getFirstMarker','addRange','discard','fromCharCode','consumable','never','_trackFormatChanges','enableReadOnlyMode','markers','formatInline:join','isBefore','resolve','_splitMarkerName','addSuggestionData','document','batch','change','_updateSuggestionData','marker-count','change:data','add','createPositionBefore','elementToElement','CommentsRepository','nodeAfter','data-suggestion','elementEnd','isAtStart','init','update:suggestion','hasSuggestion','formatInline','creator','_joinSuggestions','removed','getCommentThread','registerCustomCallback','forceDefaultExecution','authorName','formatInline:','removeMarker','getNearestSelectionRange','_saved','options','suggestion:','getMarkers','track-changes-adapter-already-set','end','lowest','define','deleteContent','insertion:','dataDowncast','always','applyOperation','acceptAllSuggestions','setSelection','suggestionLoaded','substr','model','fromRange','removeComment','_descriptionFactory','_joinWithAdjacentSuggestions','refresh','accept','registerPostFixer','chain','isDocumentOperation','_rangeIsInLocalUserInsertion','formatBlock','trackChanges.trackFormatChanges','addUser','addMarker:suggestion:formatBlock','multipleBlocks','getSuggestions','position','ck-suggestion-marker--active','value','suggestion-type','differ','isAtEnd','containerElement','createPositionAfter','enqueueChange','default','commands','deletion:','consume','includes','ck-suggestion-marker-','_enabledCommands','_commentsRepository','formatBlock:chain','nodeBefore','backward','_addThreadToSuggestion','isNextTo','_getSuggestionData','acceptSelectedSuggestions','discardSuggestion','from','createRange','splice','markBlockFormat','getAncestors','PENDING_ACTION_SUGGESTION','trackChanges.mergeNestedSuggestions','locale','_cutOutSuggestionMarker','isTouching','addSuggestion','containsPosition','markerNameToElements','Users','originalSuggestionId','editor','activeMarkers','_adapter','stopListening','plugins','getSuggestion','formatInline:accept','insertion:chain','isSelectable','deletion:chain','authoredAt','_addSuggestionMarker','suggestion','stop','markMultiRangeBlockFormat','head','low','range','_model','getSuggestionCallback','isLimit','markMultiRangeInsertion','splitPosition','_setSuggestionData','reconvertMarker','isInsideObject','hasCommentThread','has','insertion:accept','formatBlock:discard','notReady','trackChangesCommand','next','formatInline:chain','_suggestionFactory','addComment','getCustomProperty','formatBlock:join','some','multi','deletion','_handleNewSuggestionMarker','after','isObject','commandName','containsRange','_isForcedDefaultExecutionBlock','dataToMarker','documentSelection','conversion','hasComments','markerToHighlight','track-changes-suggestion-not-found','ck-suggestion-marker','getFirstRange','getChangedMarkers','schema','toViewElement','length','join','deletion:join','isCollapsed','_getExternalAuthor','set','insertion:discard','author','suggestionChanged','size','$textProxy','PendingActions','newRange','_removeSuggestion','$graveyard','_findSuggestions','upcast','addMarker:suggestion','rejected','_suggestionState','item','_getAuthorFromId','track-changes-user-not-found','formatGroupId','_suggestions','addHighlight','subType','track-changes-adapter-missing-getsuggestion','formatBlock:','addMarkerName','enableCommand','acceptSuggestion','group','commentThread','then','howMany','containsRangeInObject','toJSON','track-changes-command-not-found','markDeletion','isRemovable','suggestionUnloaded','adapter','containsItem','mapper','filter','normal','_refreshSuggestionsChain','pluginName','setTo','_setSuggestionRange','clone','start','markInsertion','getChanges','every','createdAt','map','isLocal','markerReady','data','getDifference','accepted','high','removeMarkers','_editor','skipNestingCheck','buildSuggestion','$marker','root','_onDiscard','updateSuggestion','isOwn','deletion:accept','isAfter','getMultiRangeId','track-changes-suggestion-data-mismatch','showSuggestionHighlights','get','isMultiRange','addMarker','oldRange','_defaultCallbacks','_checkSuggestionCorrectness','name','previous'];(function(_0x293304,_0x4794e8){const _0x54b467=function(_0x328eb5){while(--_0x328eb5){_0x293304['push'](_0x293304['shift']());}};_0x54b467(++_0x4794e8);}(_0x4794,0x111));const _0x54b4=function(_0x293304,_0x4794e8){_0x293304=_0x293304-0x0;let _0x54b467=_0x4794[_0x293304];return _0x54b467;};import{Plugin as _0x18a65c,PendingActions as _0x6a6cc}from'ckeditor5/src/core';import{LiveRange as _0x2cb8ac}from'ckeditor5/src/engine';import{CKEditorError as _0x5e58a3,uid as _0x5f30bf,priorities as _0x48e910,logWarning as _0x120821}from'ckeditor5/src/utils';import{toWidget as _0x2f385b}from'ckeditor5/src/widget';import{Users as _0xafeeac,hashObject as _0x358f21}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e56c8 from'./commands/trackchangescommand';import _0x3536b6 from'./commands/acceptsuggestioncommand';import _0xb47eca from'./commands/discardsuggestioncommand';import _0x22a8bf from'./commands/executeonallsuggestionscommand';import _0x5d7471 from'./commands/executeonselectedsuggestionscommand';import _0xf20766 from'./suggestion';import _0x5cd162 from'./suggestiondescriptionfactory';import _0x4a6185 from'./integrations/alignment';import _0x5abe4f from'./integrations/basicstyles';import _0x2f07ff from'./integrations/blockquote';import _0x4051cd from'./integrations/ckbox';import _0x5b1d77 from'./integrations/codeblock';import _0x14eacc from'./integrations/comments';import _0xf58d45 from'./integrations/deletecommand';import _0x3a0962 from'./integrations/documentlist';import _0xb85aca from'./integrations/entercommand';import _0x1f3ddd from'./integrations/findandreplace';import _0x3c5773 from'./integrations/font';import _0x5e8a22 from'./integrations/formatpainter';import _0x3e367b from'./integrations/heading';import _0x36a65a from'./integrations/highlight';import _0x486285 from'./integrations/horizontalline';import _0x493455 from'./integrations/htmlembed';import _0x145855 from'./integrations/image';import _0x3fec61 from'./integrations/imagereplace';import _0x19650c from'./integrations/importword';import _0x36d40f from'./integrations/indent';import _0x413229 from'./integrations/inputcommand';import _0x1a949c from'./integrations/link';import _0x5bb666 from'./integrations/list';import _0xe3a5a5 from'./integrations/listproperties';import _0x18b764 from'./integrations/mediaembed';import _0x6749c6 from'./integrations/mention';import _0x345617 from'./integrations/pagebreak';import _0x57f549 from'./integrations/paragraph';import _0x52a388 from'./integrations/removeformat';import _0x56da02 from'./integrations/restrictededitingmode';import _0x5983fd from'./integrations/shiftentercommand';import _0x393873 from'./integrations/standardeditingmode';import _0x43a993 from'./integrations/style';import _0x377240 from'./integrations/table';import _0x2f8ab8 from'./integrations/tablemergesplit';import _0x111889 from'./integrations/tableheadings';import _0x28512d from'./integrations/tableclipboard';import _0x4ea5b2 from'./integrations/tablecolumnresize';import _0x5d177b from'./integrations/template';import _0x36ee38 from'./integrations/tableofcontents';import _0x3a72e6 from'./integrations/title';import _0x565aeb from'./integrations/undo';import{getTranslation as _0x5b781a}from'./utils/common-translations';import _0x4fb522 from'./integrations/tablecaption';import _0x27ca1f from'./integrations/documentlistproperties';import _0x17f744 from'./integrations/tableproperties';export default class p extends _0x18a65c{static get[_0x54b4('0x45')](){return[_0x54b4('0x7c'),_0xafeeac,_0x6a6cc,_0x4a6185,_0x5abe4f,_0x2f07ff,_0x4051cd,_0x5b1d77,_0x14eacc,_0xf58d45,_0x3a0962,_0x27ca1f,_0xb85aca,_0x1f3ddd,_0x3c5773,_0x5e8a22,_0x3e367b,_0x36a65a,_0x486285,_0x493455,_0x145855,_0x3fec61,_0x19650c,_0x36d40f,_0x413229,_0x1a949c,_0x5bb666,_0xe3a5a5,_0x18b764,_0x6749c6,_0x345617,_0x57f549,_0x52a388,_0x56da02,_0x5983fd,_0x393873,_0x43a993,_0x377240,_0x2f8ab8,_0x111889,_0x4fb522,_0x28512d,_0x4ea5b2,_0x36ee38,_0x17f744,_0x5d177b,_0x3a72e6,_0x565aeb];}static get[_0x54b4('0x6')](){return _0x54b4('0x46');}constructor(_0x1198fa){function _0x13bbf4(_0x30d09e){return _0x30d09e['map'](_0x2aed1f=>String[_0x54b4('0x68')](_0x2aed1f))[_0x54b4('0x114')]('');}super(_0x1198fa),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x58dcbe,_0x28ac31,_0x4b809f,_0x530a30)=>{this[_0x54b4('0xeb')][_0x54b4('0x75')](()=>{for(const _0x3d4f6e of[..._0x530a30,..._0x4b809f])this['_model']['markers'][_0x54b4('0xf4')](_0x3d4f6e)&&_0x1198fa[_0x54b4('0x30')][_0x54b4('0xf1')](_0x3d4f6e);});}),this[_0x54b4('0xa3')]=new _0x5cd162(this[_0x54b4('0xd9')]['model'][_0x54b4('0x111')],this['editor'][_0x54b4('0xd1')]),this['_adapter']=null,this[_0x54b4('0xfb')]=new Dt(this[_0x54b4('0xd9')]),this[_0x54b4('0x12b')]=new Map(),this['_commentsRepository']=_0x1198fa[_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x7c')),this[_0x54b4('0xc0')]=new Set(),this['_model']=this['editor'][_0x54b4('0xa0')],this[_0x54b4('0x126')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1198fa['config']['define'](_0x54b4('0xac'),_0x54b4('0xba')),this[_0x54b4('0x6b')]=_0x1198fa[_0x54b4('0x60')][_0x54b4('0x24')]('trackChanges.trackFormatChanges'),_0x1198fa[_0x54b4('0x60')][_0x54b4('0x96')](_0x54b4('0xd0'),!0x0),this[_0x54b4('0x37')]=_0x1198fa[_0x54b4('0x60')][_0x54b4('0x24')]('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x5e56c8(_0x1198fa,this[_0x54b4('0xc0')]),this[_0x13bbf4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13bbf4([0x34,0x30,0x34,0x36,0x31,0x34,0x35,0x36]);}[_0x54b4('0x81')](){const _0x4098ce=this[_0x54b4('0xd9')];_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')]('editingDowncast')[_0x54b4('0x10c')]({'model':_0x54b4('0xe5'),'view':_0x473955=>{const {id:_0x5b27a3,type:_0x599e4f}=this['_splitMarkerName'](_0x473955[_0x54b4('0x2c')]),_0x47e7be=[_0x54b4('0x10e'),'ck-suggestion-marker-'+_0x599e4f];let _0x3aca16=0xbb8;return this[_0x54b4('0xda')][_0x54b4('0xbe')](_0x473955[_0x54b4('0x2c')])&&(_0x47e7be[_0x54b4('0x4a')]('ck-suggestion-marker--active'),_0x3aca16=0xbc2),_0x54b4('0x101')==_0x599e4f&&(_0x3aca16+=0x5),{'classes':_0x47e7be,'attributes':{'data-suggestion':_0x5b27a3},'priority':_0x3aca16};}}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x99'))[_0x54b4('0x79')](_0x28c6fd=>{_0x28c6fd['on'](_0x54b4('0x124'),(_0x12f382,_0x42be60,_0x16a616)=>{if(!_0x16a616[_0x54b4('0x90')]['showSuggestionHighlights'])return;const _0x26ff39=_0x42be60['item'];if(!_0x26ff39)return;const _0x3a9f49=_0x16a616[_0x54b4('0x2')]['toViewElement'](_0x26ff39);_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x111')][_0x54b4('0x104')](_0x26ff39)&&_0x3a9f49&&!_0x3a9f49[_0x54b4('0xfd')](_0x54b4('0x5d'))&&_0x3a9f49['is'](_0x54b4('0xb7'))&&_0x2f385b(_0x3a9f49,_0x16a616[_0x54b4('0x57')]);},{'priority':_0x54b4('0x15')});}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x99'))[_0x54b4('0x10c')]({'model':_0x54b4('0xe5'),'view':(_0x4ed9a0,_0x3a62fe)=>{if(!_0x3a62fe[_0x54b4('0x90')][_0x54b4('0x23')])return null;const {type:_0x360019}=this[_0x54b4('0x71')](_0x4ed9a0['markerName']);return{'classes':[_0x54b4('0x10e'),_0x54b4('0xbf')+_0x360019],'priority':0xbb8};}});const _0x3badd0=({showActiveMarkers:_0x3f6334=!0x0}={})=>(_0x119b6a,_0x428440,_0x332fe3)=>{if(!_0x428440[_0x54b4('0x127')])return;if(_0x428440[_0x54b4('0x127')]['is']('selection'))return void _0x332fe3[_0x54b4('0x69')][_0x54b4('0xbd')](_0x428440[_0x54b4('0x127')],_0x119b6a[_0x54b4('0x2a')]);const _0x512626=_0x332fe3[_0x54b4('0x2')][_0x54b4('0x112')](_0x428440[_0x54b4('0x127')]);if(!(_0x428440['item']['is']('element')&&_0x4098ce['model'][_0x54b4('0x111')][_0x54b4('0x49')](_0x428440[_0x54b4('0x127')])&&!_0x512626[_0x54b4('0xfd')](_0x54b4('0x12c'))))return;const {id:_0x2207ac}=this[_0x54b4('0x71')](_0x428440[_0x54b4('0x2c')]);_0x332fe3[_0x54b4('0x57')][_0x54b4('0x61')]([_0x54b4('0x10e'),'ck-suggestion-marker-formatBlock'],_0x512626),_0x332fe3[_0x54b4('0x57')]['setAttribute'](_0x54b4('0x7e'),_0x2207ac,_0x512626),_0x332fe3[_0x54b4('0x2')][_0x54b4('0x5e')](_0x512626,_0x428440[_0x54b4('0x2c')]),_0x3f6334&&(this[_0x54b4('0xda')][_0x54b4('0xbe')](_0x428440[_0x54b4('0x2c')])?_0x332fe3[_0x54b4('0x57')][_0x54b4('0x61')](_0x54b4('0xb2'),_0x512626):_0x332fe3[_0x54b4('0x57')][_0x54b4('0x39')](_0x54b4('0xb2'),_0x512626));for(const _0x34f2cc of _0x4098ce[_0x54b4('0xa0')]['createRangeIn'](_0x428440['item'])['getItems']())_0x332fe3[_0x54b4('0x69')][_0x54b4('0xbd')](_0x34f2cc,_0x119b6a[_0x54b4('0x2a')]);_0x332fe3[_0x54b4('0x69')][_0x54b4('0xbd')](_0x428440[_0x54b4('0x127')],_0x119b6a['name']);};_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x99'))[_0x54b4('0x79')](_0xd55823=>{_0xd55823['on'](_0x54b4('0xae'),(_0x2636f7,_0x53768c,_0x184d72)=>{_0x184d72[_0x54b4('0x90')]['showSuggestionHighlights']&&_0x3badd0({'showActiveMarkers':!0x1})(_0x2636f7,_0x53768c,_0x184d72);},{'priority':'highest'});}),_0x4098ce[_0x54b4('0x10a')]['for'](_0x54b4('0x99'))['markerToData']({'model':_0x54b4('0xe5'),'view':(_0x43b726,_0x11645d)=>_0x11645d[_0x54b4('0x90')][_0x54b4('0x23')]?null:{'group':_0x54b4('0xe5'),'name':_0x43b726[_0x54b4('0x9f')](0xb)}}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x123'))[_0x54b4('0x7b')]({'view':{'name':_0x54b4('0xe5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x66dbe8,{writer:_0x3db6cd})=>{let _0x3b4992=_0x54b4('0x91')+_0x66dbe8[_0x54b4('0x5b')](_0x54b4('0xb4'))+':'+_0x66dbe8[_0x54b4('0x5b')]('id');return _0x66dbe8[_0x54b4('0x5b')](_0x54b4('0x77'))&&(_0x3b4992+=':'+_0x66dbe8['getAttribute']('marker-count')),_0x3db6cd['createElement'](_0x54b4('0x1a'),{'data-name':_0x3b4992});}}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')](_0x54b4('0x123'))[_0x54b4('0x108')]({'view':_0x54b4('0xe5')}),_0x4098ce[_0x54b4('0x10a')][_0x54b4('0x3d')]('editingDowncast')['add'](_0xd383bc=>{_0xd383bc['on'](_0x54b4('0xae'),_0x3badd0(),{'priority':_0x54b4('0x15')});}),_0x4098ce['conversion'][_0x54b4('0x3d')]('editingDowncast')[_0x54b4('0x79')](_0x13f84e=>{_0x13f84e['on']('removeMarker:suggestion:formatBlock',(_0x83f1b8,_0xf4df49,_0x5443f2)=>{const _0x5e3779=_0x5443f2[_0x54b4('0x2')][_0x54b4('0xd6')](_0xf4df49[_0x54b4('0x2c')]);if(_0x5e3779)for(const _0x37bd2b of _0x5e3779)_0x37bd2b[_0x54b4('0xfd')](_0x54b4('0x12c'))||(_0x5443f2[_0x54b4('0x57')][_0x54b4('0x39')]([_0x54b4('0x10e'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37bd2b),_0x5443f2[_0x54b4('0x57')]['removeAttribute'](_0x54b4('0x7e'),_0x37bd2b),_0x5443f2[_0x54b4('0x2')]['unbindElementFromMarkerName'](_0x37bd2b,_0xf4df49[_0x54b4('0x2c')]));},{'priority':_0x54b4('0x15')});}),_0x4098ce['model'][_0x54b4('0x73')][_0x54b4('0xa7')](_0x2219a2=>{let _0x44fbef=!0x1;const _0x315ac7=Array[_0x54b4('0xca')](_0x4098ce['model']['document']['differ'][_0x54b4('0x110')]()),_0x3957b8=new Set();for(const {name:_0x2bd505,data:_0x1e4a71}of _0x315ac7){const {group:_0x10da73,type:_0x1c58fd,id:_0x200bbf}=this[_0x54b4('0x71')](_0x2bd505);if('suggestion'!==_0x10da73)continue;const _0xe806ef=this[_0x54b4('0x12b')]['get'](_0x200bbf);if(null!=_0x1e4a71['newRange']){_0x54b4('0x84')==_0x1c58fd&&(_0x44fbef=_0x44fbef||Mt(_0x1e4a71[_0x54b4('0x11f')],_0x2bd505,_0x2219a2,_0x4098ce[_0x54b4('0xa0')]['schema']));if(_0x1e4a71[_0x54b4('0x11f')][_0x54b4('0x116')]||'$graveyard'==_0x1e4a71[_0x54b4('0x11f')][_0x54b4('0x1b')][_0x54b4('0x59')]||_0x54b4('0xab')==_0x1c58fd&&!Nt(_0x1e4a71[_0x54b4('0x11f')])||_0x54b4('0x101')==_0x1c58fd&&!(!_t(_0x5364a8=_0x1e4a71[_0x54b4('0x11f')])&&!function(_0x6006d3){return _0x6006d3[_0x54b4('0xa')][_0x54b4('0x35')]==_0x6006d3[_0x54b4('0x94')][_0x54b4('0xc3')]&&_0x6006d3[_0x54b4('0xa')][_0x54b4('0xb6')];}(_0x5364a8)))_0x2219a2[_0x54b4('0x8d')](_0x2bd505),_0x44fbef=!0x0;else{if(!_0xe806ef||!_0xe806ef[_0x54b4('0x38')])continue;_0x3957b8['add'](_0xe806ef);}}}var _0x5364a8;return _0x3957b8[_0x54b4('0x11c')]>0x0&&(_0x44fbef=!!this[_0x54b4('0xa4')](_0x3957b8)||_0x44fbef),_0x44fbef;}),_0x4098ce['model'][_0x54b4('0x73')][_0x54b4('0xa7')](_0x15698f=>{let _0x4cd20a=!0x1;for(const _0x3ca08a of _0x4098ce[_0x54b4('0xa0')]['document'][_0x54b4('0xb5')][_0x54b4('0xc')]()){if('insert'!=_0x3ca08a[_0x54b4('0x32')])continue;const _0x1c073e=_0x3ca08a[_0x54b4('0xb1')][_0x54b4('0x2f')](_0x3ca08a[_0x54b4('0x113')]);if(_0x1c073e[_0x54b4('0xb6')])for(const _0x54a252 of this[_0x54b4('0x12b')]['values']()){if(_0x54a252[_0x54b4('0x25')]||!_0x54a252[_0x54b4('0x38')])continue;if(_0x54b4('0xab')!=_0x54a252[_0x54b4('0x32')])continue;const _0x2d6cdb=_0x54a252[_0x54b4('0x10f')]();if(_0x2d6cdb[_0x54b4('0xa')][_0x54b4('0x35')]!=_0x2d6cdb[_0x54b4('0x94')]['parent']&&_0x2d6cdb[_0x54b4('0x94')][_0x54b4('0x63')](_0x3ca08a[_0x54b4('0xb1')])){const _0x20393a=_0x4098ce[_0x54b4('0xa0')]['createRange'](_0x2d6cdb[_0x54b4('0xa')],_0x1c073e);_0x15698f[_0x54b4('0x36')](_0x54a252[_0x54b4('0x65')](),{'range':_0x20393a}),_0x4cd20a=!0x0;}}}return _0x4cd20a;}),_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x6d')]['on'](_0x54b4('0x82'),(_0x5e6ba1,_0x270c90,_0x51ec7f)=>{if(null==_0x51ec7f){const {id:_0x5aed3b}=this[_0x54b4('0x71')](_0x270c90[_0x54b4('0x2a')]),_0x7e1786=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0x5aed3b);_0x7e1786&&_0x7e1786[_0x54b4('0x130')](_0x270c90[_0x54b4('0x2a')]);}}),_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x73')]['on'](_0x54b4('0x78'),()=>{const _0x1bf369=Array[_0x54b4('0xca')](_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x73')][_0x54b4('0xb5')][_0x54b4('0x110')]())['filter'](_0x4975e4=>_0x54b4('0xe5')===this[_0x54b4('0x71')](_0x4975e4['name'])[_0x54b4('0x133')]);if(0x0===_0x1bf369[_0x54b4('0x113')])return;_0x1bf369[_0x54b4('0x58')]((_0x31cf5c,_0x5c6d6c)=>{const _0xdf7893=_0x31cf5c[_0x54b4('0x12')][_0x54b4('0x27')],_0x1c1913=_0x5c6d6c['data'][_0x54b4('0x27')];return null===_0xdf7893&&null===_0x1c1913?0x0:null===_0xdf7893&&null!==_0x1c1913?-0x1:null!==_0xdf7893&&null===_0x1c1913?0x1:_0xdf7893[_0x54b4('0xa')][_0x54b4('0x6f')](_0x1c1913['start'])?-0x1:0x1;});const _0x292eb7=new Set(),_0x32672a=new Set();for(const {name:_0x33e19e,data:_0x2507e0}of _0x1bf369){const {id:_0x4bafa8}=this['_splitMarkerName'](_0x33e19e);if(null===_0x2507e0[_0x54b4('0x27')]){const _0x235f31=this['_handleNewSuggestionMarker'](_0x33e19e);_0x32672a[_0x54b4('0x79')](_0x235f31);}else{const _0xbd6fc6=this[_0x54b4('0x12b')]['get'](_0x4bafa8);null!==_0x2507e0[_0x54b4('0x11f')]||_0xbd6fc6[_0x54b4('0x38')]?(_0x292eb7['add'](_0xbd6fc6[_0x54b4('0xe8')]),_0x32672a[_0x54b4('0x79')](_0xbd6fc6)):this[_0x54b4('0x120')](_0xbd6fc6);}}_0x32672a[_0x54b4('0x11c')]>0x0&&this[_0x54b4('0x5')](_0x32672a);for(const _0x135d6c of _0x292eb7)this[_0x54b4('0x64')]('suggestionChanged',_0x135d6c);}),_0x4098ce[_0x54b4('0xa0')]['on'](_0x54b4('0x9b'),(_0x5427b5,_0x255b4b)=>{const _0x19c777=_0x255b4b[0x0];if(!this[_0x54b4('0x12b')][_0x54b4('0x11c')])return;if(!_0x19c777[_0x54b4('0xa9')])return;if(_0x19c777[_0x54b4('0x74')]['isUndo']||!_0x19c777['batch'][_0x54b4('0x10')])return;let _0x12db04,_0x4da277;switch(_0x19c777[_0x54b4('0x32')]){case _0x54b4('0x56'):_0x12db04=_0x4098ce['model'][_0x54b4('0x2d')](_0x19c777[_0x54b4('0xb1')]),_0x4da277=_0x12db04[_0x54b4('0x2f')](_0x19c777['howMany']);break;case _0x54b4('0x5f'):_0x12db04=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x2d')](_0x19c777[_0x54b4('0xef')]),_0x4da277=_0x4098ce[_0x54b4('0xa0')]['createPositionAt'](_0x19c777['moveTargetPosition']);break;case _0x54b4('0x3e'):_0x12db04=_0x4098ce['model'][_0x54b4('0x2d')](_0x19c777['targetPosition']),_0x4da277=_0x12db04[_0x54b4('0x2f')](_0x19c777[_0x54b4('0x136')]);break;default:return;}const _0x2631b0=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0xcb')](_0x12db04,_0x4da277);_0x4098ce['model'][_0x54b4('0x75')](()=>{for(const {suggestion:_0x4057db,meta:_0x1d114c}of this[_0x54b4('0x122')](_0x2631b0)){if(_0x4057db[_0x54b4('0x25')])continue;if(_0x54b4('0x84')==_0x4057db[_0x54b4('0x32')])continue;const _0x1fd3e5=_0x4057db[_0x54b4('0x12')]&&_0x4057db[_0x54b4('0x12')][_0x54b4('0xaf')];(_0x54b4('0xab')!=_0x4057db[_0x54b4('0x32')]||_0x54b4('0x5f')==_0x19c777['type']&&!_0x1fd3e5)&&(_0x1d114c[_0x54b4('0x137')]||_0x54b4('0x51')==_0x4057db[_0x54b4('0x32')]&&_0x1d114c[_0x54b4('0x1e')]||_0x4057db[_0x54b4('0x10f')]()[_0x54b4('0x106')](_0x2631b0)&&this[_0x54b4('0x48')](_0x4057db,_0x12db04,_0x4da277));}});},{'priority':_0x54b4('0x95')}),_0x4098ce['model']['on'](_0x54b4('0x97'),(_0xb5d3a5,_0x564229)=>{const _0x2695d5=_0x564229[0x0],_0x5de635=_0x564229[0x1];if(_0x5de635&&_0x5de635[_0x54b4('0x8a')])return;if(this[_0x54b4('0x107')])return;if(!this[_0x54b4('0xf8')][_0x54b4('0xb3')])return;if(_0x2695d5[_0x54b4('0x116')])return;const _0x40de05=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x111')],{start:_0x5a897c,end:_0x113ac7}=_0x2695d5['getFirstRange'](),_0x4d102f=_0x5a897c[_0x54b4('0x7d')]&&_0x40de05['isLimit'](_0x5a897c[_0x54b4('0x7d')])?null:_0x40de05['getNearestSelectionRange'](_0x5a897c,_0x54b4('0x4b')),_0x4c6b24=_0x113ac7[_0x54b4('0xc3')]&&_0x40de05[_0x54b4('0xed')](_0x113ac7[_0x54b4('0xc3')])?null:_0x40de05[_0x54b4('0x8e')](_0x113ac7,_0x54b4('0xc4')),_0x37c372=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0xcb')](_0x4d102f?_0x4d102f[_0x54b4('0xa')]:_0x5a897c,_0x4c6b24?_0x4c6b24['end']:_0x113ac7);_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x75')](_0x39ff30=>{this['markDeletion'](_0x37c372);const _0x2fae64=_0x4098ce[_0x54b4('0xa0')]['schema'][_0x54b4('0x8e')](_0x37c372[_0x54b4('0xa')]);_0x2695d5['is'](_0x54b4('0x109'))?_0x39ff30['setSelection'](_0x2fae64):_0x2695d5[_0x54b4('0x7')](_0x2fae64);}),_0xb5d3a5['stop']();},{'priority':_0x48e910[_0x54b4('0x4')]+0xa}),_0x4098ce[_0x54b4('0xa0')]['on'](_0x54b4('0x2e'),(_0x1e8429,_0x501443)=>{const _0x48dc29=_0x501443[_0x501443['length']-0x1];_0x48dc29&&_0x48dc29[_0x54b4('0x8a')]||this[_0x54b4('0x107')]||this[_0x54b4('0xf8')][_0x54b4('0xb3')]&&(_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x75')](()=>{let _0x1a3a33=_0x4098ce['model'][_0x54b4('0x2e')](_0x501443[0x0],_0x501443[0x1],_0x501443[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a3a33)return;_0x1e8429['return']=_0x1a3a33[_0x54b4('0x9')]();const _0x2e4daf=_0x1a3a33[_0x54b4('0x94')][_0x54b4('0xc3')],_0x64e3f4=_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x111')];_0x2e4daf&&_0x64e3f4[_0x54b4('0x49')](_0x2e4daf)&&!_0x64e3f4[_0x54b4('0x104')](_0x2e4daf)&&(_0x1a3a33=_0x4098ce['model'][_0x54b4('0xcb')](_0x1a3a33['start'],_0x4098ce[_0x54b4('0xa0')][_0x54b4('0x2d')](_0x2e4daf,'end'))),this[_0x54b4('0xb')](_0x1a3a33);}),_0x1e8429['stop']());},{'priority':'high'}),this[_0x54b4('0xd9')][_0x54b4('0xbb')]['add']('trackChanges',this[_0x54b4('0xf8')]),this[_0x54b4('0x131')]('trackChanges');const _0x8e56ed=new _0x3536b6(_0x4098ce,this[_0x54b4('0x12b')]);_0x4098ce[_0x54b4('0xbb')][_0x54b4('0x79')](_0x54b4('0x132'),_0x8e56ed),this['enableCommand']('acceptSuggestion');const _0x361cf8=new _0xb47eca(_0x4098ce,this[_0x54b4('0x12b')]);_0x4098ce['commands']['add'](_0x54b4('0xc9'),_0x361cf8),this[_0x54b4('0x131')](_0x54b4('0xc9')),_0x4098ce[_0x54b4('0xbb')][_0x54b4('0x79')]('acceptAllSuggestions',new _0x22a8bf(_0x4098ce,_0x8e56ed,this['_suggestions'])),this[_0x54b4('0x131')](_0x54b4('0x9c')),_0x4098ce['commands'][_0x54b4('0x79')](_0x54b4('0x34'),new _0x22a8bf(_0x4098ce,_0x361cf8,this[_0x54b4('0x12b')])),this[_0x54b4('0x131')](_0x54b4('0x34')),_0x4098ce[_0x54b4('0xbb')]['add'](_0x54b4('0xc8'),new _0x5d7471(_0x4098ce,_0x8e56ed,this[_0x54b4('0x12b')])),this[_0x54b4('0x131')]('acceptSelectedSuggestions'),_0x4098ce[_0x54b4('0xbb')]['add']('discardSelectedSuggestions',new _0x5d7471(_0x4098ce,_0x361cf8,this[_0x54b4('0x12b')])),this[_0x54b4('0x131')]('discardSelectedSuggestions');const _0x251733=_0x4098ce[_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x7c'));this[_0x54b4('0x53')](_0x251733,_0x54b4('0xfc'),(_0xf04ca9,{threadId:_0x310ea0})=>{const _0x5987fd=this['_suggestions'][_0x54b4('0x24')](_0x310ea0);_0x5987fd&&_0x5987fd['commentThread']&&0x1===_0x5987fd[_0x54b4('0x134')][_0x54b4('0x113')]&&this[_0x54b4('0x76')](_0x310ea0,{'hasComments':!0x0});},{'priority':_0x54b4('0xe9')}),this[_0x54b4('0x53')](_0x251733,_0x54b4('0xa2'),(_0x37f3f5,{threadId:_0x46cd39})=>{const _0x2c7feb=this['_suggestions']['get'](_0x46cd39);_0x2c7feb&&_0x2c7feb[_0x54b4('0x134')]&&!_0x2c7feb['commentThread'][_0x54b4('0x113')]&&this[_0x54b4('0x76')](_0x46cd39,{'hasComments':!0x1});},{'priority':_0x54b4('0xe9')});}set[_0x54b4('0x0')](_0x5d1c17){if(this['_adapter'])throw new _0x5e58a3(_0x54b4('0x93'),this);this[_0x54b4('0xdb')]=_0x5d1c17;}get['adapter'](){return this['_adapter'];}[_0x54b4('0xb0')]({skipNotAttached:_0x8811bf=!0x1,toJSON:_0x9da20f=!0x1}={}){const _0x1be839=[];for(const _0x177e9e of this['_suggestions']['values']())_0x8811bf&&!_0x177e9e[_0x54b4('0x38')]||_0x1be839['push'](_0x177e9e);return _0x9da20f?_0x1be839[_0x54b4('0xf')](_0x5d9bbb=>_0x5d9bbb[_0x54b4('0x138')]()):_0x1be839;}[_0x54b4('0xde')](_0x2d6cbd){const _0x4cb3bd=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0x2d6cbd);if(!_0x4cb3bd)throw new _0x5e58a3(_0x54b4('0x10d'),this);return _0x4cb3bd;}[_0x54b4('0x83')](_0x335455){return this['_suggestions']['has'](_0x335455);}[_0x54b4('0x72')](_0x1721fc){const {authorId:_0x216901,id:_0x263ad8,attributes:_0x2a6900}=_0x1721fc,[_0x52b76e,_0x22839b]=_0x1721fc[_0x54b4('0x32')][_0x54b4('0x5f')](':'),_0x131471=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0x263ad8)||this[_0x54b4('0x47')](_0x52b76e,_0x22839b,_0x263ad8,_0x216901,_0x2a6900);if(this[_0x54b4('0xc5')](_0x131471),this[_0x54b4('0x29')](_0x131471,_0x52b76e,_0x22839b||null,_0x216901),_0x131471[_0x54b4('0xe')]=_0x1721fc[_0x54b4('0xe')],_0x2a6900&&_0x2a6900['@external']){const _0x5dd5b9=_0x2a6900['@external'],_0x39cd9b=this[_0x54b4('0x117')](_0x5dd5b9[_0x54b4('0x8b')]);_0x131471[_0x54b4('0xe3')]=_0x5dd5b9[_0x54b4('0xe')],_0x131471[_0x54b4('0x11a')]=_0x39cd9b,_0x131471[_0x54b4('0x3f')]=!0x0;}else _0x131471[_0x54b4('0xe3')]=_0x1721fc[_0x54b4('0xe')];switch(_0x1721fc[_0x54b4('0x12')]&&(_0x131471['data']=_0x1721fc[_0x54b4('0x12')]),_0x1721fc['attributes']&&(_0x131471[_0x54b4('0x3c')]=_0x1721fc['attributes']),this['_adapter']&&this[_0x54b4('0xdb')][_0x54b4('0xd4')]||(_0x131471[_0x54b4('0x8f')]=!0x0),this[_0x54b4('0x126')][_0x54b4('0x24')](_0x131471)){case _0x54b4('0xf7'):this['_suggestionState'][_0x54b4('0x118')](_0x131471,_0x54b4('0x40'));break;case _0x54b4('0x11'):_0x131471[_0x54b4('0x38')]?(this[_0x54b4('0x126')]['set'](_0x131471,_0x54b4('0x43')),this[_0x54b4('0x64')](_0x54b4('0x9e'),_0x131471)):this[_0x54b4('0x126')][_0x54b4('0x118')](_0x131471,_0x54b4('0x87'));}return _0x131471;}[_0x54b4('0x132')](_0x168813){this[_0x54b4('0x8a')](()=>{this['editor'][_0x54b4('0xa0')][_0x54b4('0x75')](()=>{for(const _0x7fc796 of _0x168813[_0x54b4('0x3b')]())_0x7fc796[_0x54b4('0xa6')]();});});}[_0x54b4('0xc9')](_0x244f3e){this[_0x54b4('0x8a')](()=>{this[_0x54b4('0xd9')][_0x54b4('0xa0')][_0x54b4('0x75')](()=>{for(const _0x22c272 of _0x244f3e[_0x54b4('0x3b')]())_0x22c272[_0x54b4('0x67')]();});});}[_0x54b4('0x131')](_0x3188cc,_0xf01606){const _0x3b494a=this[_0x54b4('0xd9')][_0x54b4('0xbb')][_0x54b4('0x24')](_0x3188cc);if(!_0x3b494a)throw new _0x5e58a3(_0x54b4('0x139'),this,{'commandName':_0x3188cc});this[_0x54b4('0xc0')][_0x54b4('0x79')](_0x3b494a),_0xf01606&&_0x3b494a['on'](_0x54b4('0x4c'),(_0x45fb2a,_0xfdfbe0)=>{this[_0x54b4('0xf8')][_0x54b4('0xb3')]&&(this[_0x54b4('0x107')]||_0xfdfbe0['length']>0x0&&_0xfdfbe0[_0xfdfbe0[_0x54b4('0x113')]-0x1]&&_0xfdfbe0[_0xfdfbe0['length']-0x1][_0x54b4('0x8a')]||(_0xf01606((..._0x5ab931)=>_0x3b494a[_0x54b4('0x4c')](..._0x5ab931,{'forceDefaultExecution':!0x0}),..._0xfdfbe0),_0x45fb2a[_0x54b4('0xe6')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x298eed){let _0x246a55,_0x1d1f8d;const _0x494a17=this[_0x54b4('0x107')];this[_0x54b4('0x107')]=!0x0;try{_0x246a55=_0x298eed();}catch(_0x3d9c66){_0x1d1f8d=_0x3d9c66;}return _0x494a17||(this[_0x54b4('0x107')]=!0x1),_0x1d1f8d&&_0x5e58a3['rethrowUnexpectedError'](_0x1d1f8d,this),_0x246a55;}['markInsertion'](_0x48d989,_0x2e79e8=null,_0x51d72c={}){if(_0x48d989['isCollapsed'])return null;const _0x24cab6=this[_0x54b4('0xd9')]['plugins'][_0x54b4('0x24')]('Users')['me'];for(const {suggestion:_0x1d499d,meta:_0x2fb3d8}of this[_0x54b4('0x122')](_0x48d989,_0x54b4('0x51')))if(_0x2fb3d8[_0x54b4('0x1e')]){if(!_0x2fb3d8[_0x54b4('0xc6')]){if(!this[_0x54b4('0x37')]&&_0x2fb3d8[_0x54b4('0x137')])continue;return _0x1d499d;}if(_0x2e79e8==_0x1d499d[_0x54b4('0x12d')]){const _0x2dfcbd=_0x1d499d[_0x54b4('0x10f')]();return _0x2dfcbd[_0x54b4('0xa')][_0x54b4('0x63')](_0x48d989['end'])?this[_0x54b4('0x8')](_0x1d499d,this['_model'][_0x54b4('0xcb')](_0x48d989['start'],_0x2dfcbd['end'])):this[_0x54b4('0x8')](_0x1d499d,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x2dfcbd[_0x54b4('0xa')],_0x48d989[_0x54b4('0x94')])),_0x1d499d;}}const _0x1ecb93=_0x5f30bf(),_0x183273=_0x24cab6['id'],_0x3d343a=_0x2e79e8?_0x54b4('0x98')+_0x2e79e8:_0x54b4('0x51'),_0x2b79be=this['_setSuggestionData']({'id':_0x1ecb93,'type':_0x3d343a,'createdAt':new Date(),'authorId':_0x183273,'attributes':_0x51d72c});return this[_0x54b4('0xe4')](_0x3d343a,_0x1ecb93,_0x183273,_0x48d989),_0x2b79be;}[_0x54b4('0xee')](_0x268d12,_0x1e54c1='multi',_0x5d02ad={}){const _0x3a3644=this['editor'][_0x54b4('0xdd')][_0x54b4('0x24')]('Users')['me'],_0x2c5f50=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0x51'),_0x1e54c1,_0x54b4('0x114'));for(const _0x5f4afe of this['getSuggestions']())if(_0x5f4afe[_0x54b4('0x11a')]['id']==_0x3a3644['id']&&_0x54b4('0x51')==_0x5f4afe['type']&&_0x5f4afe['subType']==_0x1e54c1&&(_0x2c5f50(_0x5f4afe[_0x54b4('0x44')](),_0x268d12)||_0x2c5f50(_0x268d12,_0x5f4afe[_0x54b4('0x44')]()))){for(const _0x3bed4b of _0x268d12)_0x5f4afe[_0x54b4('0x66')](_0x3bed4b);return _0x5f4afe;}if(this[_0x54b4('0x37')])for(const _0x252821 of _0x268d12)for(const {suggestion:_0x89d62e,meta:_0x51b03b}of this[_0x54b4('0x122')](_0x252821,_0x54b4('0x51'))){if(!_0x51b03b[_0x54b4('0x1e')])continue;let _0x5e103c=!0x0;for(const _0x13edac of _0x89d62e['getRanges']())for(const _0x4737e3 of _0x268d12)if(!_0x13edac[_0x54b4('0x106')](_0x4737e3)){_0x5e103c=!0x1;break;}if(_0x5e103c)return _0x89d62e;}const _0x4e99cd=_0x5f30bf(),_0x4b5511=_0x3a3644['id'],_0x35f732='insertion:'+_0x1e54c1,_0x5a99bb=this[_0x54b4('0xf0')]({'id':_0x4e99cd,'type':_0x35f732,'createdAt':new Date(),'authorId':_0x4b5511,'attributes':_0x5d02ad});for(const _0x44eecf of _0x268d12)this[_0x54b4('0xe4')](_0x35f732,_0x4e99cd,_0x4b5511,_0x44eecf,_0xf20766[_0x54b4('0x21')]());return _0x5a99bb;}['markInlineFormat'](_0x26c094,_0x585064,_0x7be575=null,_0x23d698={}){if(_0x7be575=_0x7be575||$t(_0x585064),_0x26c094['isCollapsed'])return null;if(_0x54b4('0x6a')===this[_0x54b4('0x6b')]){const _0x46862e=this['_suggestionFactory'][_0x54b4('0xec')](_0x54b4('0x84'),_0x7be575,_0x54b4('0xa6'));return this['forceDefaultExecution'](()=>_0x46862e([_0x26c094],_0x585064,_0x23d698)),null;}const _0x3ea46d=this['editor'][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7'))['me'],_0x6e6c09=[];if(_0x54b4('0x9a')!==this[_0x54b4('0x6b')])for(const {suggestion:_0x2094d9,meta:_0x1b7eb8}of this[_0x54b4('0x122')](_0x26c094,'insertion'))_0x1b7eb8[_0x54b4('0x1e')]&&!_0x1b7eb8[_0x54b4('0xf2')]&&_0x6e6c09[_0x54b4('0x4a')](..._0x2094d9['getRanges']());const _0x11b4c7=function(_0xae7aeb,_0x39b2cf){const _0x3ae125=[];for(const _0x3912ce of _0x39b2cf){const _0x2385f5=_0xae7aeb['getIntersection'](_0x3912ce);_0x2385f5&&_0x3ae125[_0x54b4('0x4a')](_0x2385f5);}return _0x3ae125;}(_0x26c094,_0x6e6c09),_0x15bfe4=function(_0x4dae96,_0x2436cf){const _0xc8a348=[_0x4dae96];for(const _0x178d90 of _0x2436cf){let _0x1abba0=0x0;for(;_0x1abba0<_0xc8a348['length'];){const _0x595eb6=_0xc8a348[_0x1abba0]['getDifference'](_0x178d90);_0xc8a348[_0x54b4('0xcc')](_0x1abba0,0x1,..._0x595eb6),_0x1abba0+=_0x595eb6[_0x54b4('0x113')];}}return _0xc8a348;}(_0x26c094,_0x6e6c09);_0x11b4c7[_0x54b4('0x113')]&&this[_0x54b4('0xeb')]['change'](()=>{for(const _0x4d2012 of _0x11b4c7){const _0x272cde=this['_suggestionFactory'][_0x54b4('0xec')](_0x54b4('0x84'),_0x7be575,_0x54b4('0xa6'));this['forceDefaultExecution'](()=>_0x272cde([_0x4d2012],_0x585064,_0x23d698));}});for(const _0x5b8186 of _0x15bfe4){let _0x34b7e8=null,_0x236ada=_0x5b8186[_0x54b4('0xa')],_0x1a280e=_0x5b8186['end'];for(const {suggestion:_0x48e5d4,meta:_0x149e75}of this[_0x54b4('0x122')](_0x5b8186,_0x54b4('0x84'))){if(!_0x149e75[_0x54b4('0x1e')])continue;if(_0x48e5d4['subType']!=_0x7be575)continue;const _0xcf13ee=_0x48e5d4[_0x54b4('0x10f')]();if(_0xcf13ee['containsRange'](_0x5b8186,!0x0))return null;_0x236ada=_0x236ada[_0x54b4('0x6f')](_0xcf13ee[_0x54b4('0xa')])?_0x236ada:_0xcf13ee[_0x54b4('0xa')],_0x1a280e=_0x1a280e[_0x54b4('0x20')](_0xcf13ee[_0x54b4('0x94')])?_0x1a280e:_0xcf13ee[_0x54b4('0x94')],_0x34b7e8?_0xcf13ee[_0x54b4('0xa')][_0x54b4('0x6f')](_0x34b7e8[_0x54b4('0x10f')]()[_0x54b4('0xa')])?(_0x34b7e8[_0x54b4('0x16')](),_0x34b7e8=_0x48e5d4):_0x48e5d4[_0x54b4('0x16')]():_0x34b7e8=_0x48e5d4;}const _0x1fd5c5=this['_model']['createRange'](_0x236ada,_0x1a280e);if(_0x34b7e8)this['_setSuggestionRange'](_0x34b7e8,_0x1fd5c5);else{const _0x3f89f4=_0x5f30bf(),_0x443faf=_0x3ea46d['id'];this[_0x54b4('0xf0')]({'id':_0x3f89f4,'type':'formatInline:'+_0x7be575,'data':_0x585064,'createdAt':new Date(),'authorId':_0x443faf,'attributes':_0x23d698}),this[_0x54b4('0xe4')](_0x54b4('0x8c')+_0x7be575,_0x3f89f4,_0x443faf,_0x1fd5c5);}}return null;}[_0x54b4('0xcd')](_0x41f1e9,_0x20e8ae,_0x2dc45e=[],_0x12c1ba=null,_0x31943e={}){_0x20e8ae[_0x54b4('0x12a')]||(_0x20e8ae[_0x54b4('0x12a')]=_0x20e8ae[_0x54b4('0x105')]),_0x20e8ae[_0x54b4('0xaf')]=_0x41f1e9['is'](_0x54b4('0xea')),_0x12c1ba=_0x12c1ba||$t(_0x20e8ae);const _0x4ecc03=_0x2dc45e[_0x54b4('0xf')](_0x2c0178=>Rt(_0x2c0178,this[_0x54b4('0xeb')])),_0x4c7ea2=_0x41f1e9['is'](_0x54b4('0xea'))?_0x41f1e9:Rt(_0x41f1e9,this['_model']);if('never'===this['_trackFormatChanges']){const _0xb094a9=this[_0x54b4('0xfb')]['getSuggestionCallback'](_0x54b4('0xab'),_0x12c1ba,_0x54b4('0xa6'));return this[_0x54b4('0x8a')](()=>_0xb094a9([_0x4c7ea2],_0x20e8ae,_0x31943e)),null;}_0x4ecc03[_0x54b4('0x4a')](_0x4c7ea2);let _0x45dfee=!0x0;for(const _0x263d7a of _0x4ecc03)if(!this[_0x54b4('0xaa')](_0x263d7a)){_0x45dfee=!0x1;break;}if(_0x45dfee&&'always'!==this['_trackFormatChanges']){const _0x748c25=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0xab'),_0x12c1ba,'accept');return this[_0x54b4('0x8a')](()=>_0x748c25([_0x4c7ea2],_0x20e8ae,_0x31943e)),null;}let _0x158e1f=null,_0x44381c=_0x4c7ea2[_0x54b4('0xa')],_0x53a9bb=_0x4c7ea2[_0x54b4('0x94')];for(const {suggestion:_0x16c9ff,meta:_0x3cd73c}of this[_0x54b4('0x122')](_0x4c7ea2,_0x54b4('0xab'))){if(!_0x3cd73c['isOwn']||_0x3cd73c[_0x54b4('0xc6')]||_0x3cd73c[_0x54b4('0x137')]||_0x3cd73c['isInsideObject'])continue;if(_0x16c9ff[_0x54b4('0x12')][_0x54b4('0x12a')]!=_0x20e8ae[_0x54b4('0x12a')])continue;const _0x2abd0d=_0x16c9ff[_0x54b4('0x10f')]();if(_0x16c9ff['subType']==_0x12c1ba){if(_0x2abd0d[_0x54b4('0x106')](_0x4c7ea2,!0x0))return null;_0x44381c=_0x44381c[_0x54b4('0x6f')](_0x2abd0d[_0x54b4('0xa')])?_0x44381c:_0x2abd0d[_0x54b4('0xa')],_0x53a9bb=_0x53a9bb[_0x54b4('0x20')](_0x2abd0d[_0x54b4('0x94')])?_0x53a9bb:_0x2abd0d[_0x54b4('0x94')],_0x158e1f?_0x2abd0d[_0x54b4('0xa')][_0x54b4('0x6f')](_0x158e1f[_0x54b4('0x10f')]()[_0x54b4('0xa')])?(_0x158e1f[_0x54b4('0x16')](),_0x158e1f=_0x16c9ff):_0x16c9ff['removeMarkers']():_0x158e1f=_0x16c9ff;}else{const _0x4c7050=_0x4c7ea2[_0x54b4('0x54')](_0x2abd0d);this[_0x54b4('0xd2')](_0x16c9ff,_0x4c7050);}}const _0x2b4d99=this[_0x54b4('0xd9')]['plugins']['get'](_0x54b4('0xd7'))['me'],_0x3f514c=_0x5f30bf(),_0x37ab97=_0x2b4d99['id'];if(_0x158e1f)return this['_setSuggestionRange'](_0x158e1f,this[_0x54b4('0xeb')]['createRange'](_0x44381c,_0x53a9bb)),_0x158e1f;{const _0xc5ba47=this[_0x54b4('0xf0')]({'id':_0x3f514c,'type':_0x54b4('0x12f')+_0x12c1ba,'data':_0x20e8ae,'createdAt':new Date(),'authorId':_0x37ab97,'attributes':_0x31943e});return this['_addSuggestionMarker'](_0x54b4('0x12f')+_0x12c1ba,_0x3f514c,_0x37ab97,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x44381c,_0x53a9bb)),_0xc5ba47;}}[_0x54b4('0xe7')](_0x95b2ff,_0x10d3a0,_0x5a7697=[],_0x1ceae7=null,_0x3dd7fd={}){_0x10d3a0['formatGroupId']||(_0x10d3a0['formatGroupId']=_0x10d3a0['commandName']);const _0x43feb6=_0x95b2ff[0x0];_0x10d3a0[_0x54b4('0xaf')]=_0x43feb6['is'](_0x54b4('0xea')),_0x1ceae7=_0x1ceae7||$t(_0x10d3a0);const _0x35ffc8=_0x5a7697[_0x54b4('0xf')](_0x49710b=>Rt(_0x49710b,this['_model'])),_0x111497=_0x43feb6['is'](_0x54b4('0xea'))?_0x95b2ff:_0x95b2ff[_0x54b4('0xf')](_0x566748=>Rt(_0x566748,this[_0x54b4('0xeb')]));if(_0x54b4('0x6a')===this['_trackFormatChanges']){const _0x1cd2cb=this[_0x54b4('0xfb')]['getSuggestionCallback'](_0x54b4('0xab'),_0x1ceae7,_0x54b4('0xa6'));return this['forceDefaultExecution'](()=>_0x1cd2cb(_0x111497,_0x10d3a0,_0x3dd7fd)),null;}_0x35ffc8[_0x54b4('0x4a')](..._0x111497);let _0x27181c=!0x0;for(const _0x25d361 of _0x35ffc8)if(!this[_0x54b4('0xaa')](_0x25d361)){_0x27181c=!0x1;break;}if(_0x27181c&&_0x54b4('0x9a')!==this[_0x54b4('0x6b')]){const _0x33e640=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0xab'),_0x1ceae7,_0x54b4('0xa6'));return this[_0x54b4('0x8a')](()=>_0x33e640(_0x111497,_0x10d3a0,_0x3dd7fd)),null;}const _0x181af7=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')]('Users')['me'];for(const _0x55279d of this['getSuggestions']()){if(_0x55279d[_0x54b4('0x11a')]['id']!=_0x181af7['id'])continue;if(_0x54b4('0xab')!=_0x55279d[_0x54b4('0x32')]||_0x55279d[_0x54b4('0x12')][_0x54b4('0x12a')]!=_0x10d3a0[_0x54b4('0x12a')])continue;const _0x43808b=_0x55279d[_0x54b4('0x12d')]==_0x1ceae7;for(let _0x251684=0x0;_0x251684<_0x111497['length'];_0x251684++){const _0x3686f0=_0x111497[_0x251684];for(const _0x37ddae of _0x55279d[_0x54b4('0x92')]()){const _0x391995=_0x37ddae['getRange']();if(_0x3686f0[_0x54b4('0x63')](_0x391995)){_0x43808b?(_0x111497[_0x54b4('0xcc')](_0x251684,0x1),_0x251684--):_0x55279d[_0x54b4('0x8d')](_0x37ddae[_0x54b4('0x2a')]);break;}}}}if(0x0==_0x111497[_0x54b4('0x113')])return null;const _0x51c08b=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0xab'),_0x1ceae7,_0x54b4('0x114'));for(const _0xcf8fa of this[_0x54b4('0xb0')]())if(_0xcf8fa[_0x54b4('0x11a')]['id']==_0x181af7['id']&&_0x54b4('0xab')==_0xcf8fa['type']&&_0xcf8fa['data'][_0x54b4('0x12a')]==_0x10d3a0[_0x54b4('0x12a')]&&_0xcf8fa[_0x54b4('0x12d')]==_0x1ceae7&&(_0x51c08b(_0xcf8fa[_0x54b4('0x44')](),_0x111497)||_0x51c08b(_0x111497,_0xcf8fa[_0x54b4('0x44')]()))){for(const _0x10e9fc of _0x111497)_0xcf8fa[_0x54b4('0x66')](_0x10e9fc);return _0xcf8fa;}const _0x5ecf8c=_0x5f30bf(),_0x5dccfb=_0x181af7['id'],_0x25594f=_0x54b4('0x12f')+_0x1ceae7,_0x28a43e=this[_0x54b4('0xf0')]({'id':_0x5ecf8c,'type':_0x25594f,'data':_0x10d3a0,'createdAt':new Date(),'authorId':_0x5dccfb,'attributes':_0x3dd7fd});for(const _0x34a020 of _0x111497)this[_0x54b4('0xe4')](_0x25594f,_0x5ecf8c,_0x5dccfb,_0x34a020,_0xf20766['getMultiRangeId']());return _0x28a43e;}[_0x54b4('0x13a')](_0x4eaa86,_0x3b95e7=null,_0x1b4ac4={}){if(_0x4eaa86[_0x54b4('0x116')])return null;const _0x3184b2=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7'))['me'],_0x1f38d6=new _0x2cb8ac(_0x4eaa86['start'],_0x4eaa86[_0x54b4('0x94')]);for(const {suggestion:_0x4e32e9,meta:_0x45a947}of this[_0x54b4('0x122')](_0x1f38d6,_0x54b4('0x51')))if(_0x45a947[_0x54b4('0x1e')]&&!_0x45a947[_0x54b4('0xc6')]){if(_0x4e32e9['isMultiRange']){const _0x49a3d7=_0x4e32e9[_0x54b4('0x44')]()[_0x54b4('0x3')](_0x1f7e89=>_0x54b4('0x121')!=_0x1f7e89['root'][_0x54b4('0x59')]);_0x49a3d7[_0x54b4('0xd')](_0x1ff5f5=>_0x1f38d6[_0x54b4('0x106')](_0x1ff5f5,!0x0))&&_0x4e32e9[_0x54b4('0x67')]();if(_0x49a3d7['some'](_0x77e245=>_0x77e245[_0x54b4('0x106')](_0x1f38d6,!0x0))){const _0x549756=this['_suggestionFactory'][_0x54b4('0xec')](_0x54b4('0x101'),_0x3b95e7,'accept');return this['forceDefaultExecution'](()=>_0x549756([_0x1f38d6],null,_0x1b4ac4)),null;}}else{const _0x476c9b=_0x1f38d6[_0x54b4('0x54')](_0x4e32e9[_0x54b4('0x10f')]());null!==_0x476c9b&&_0x4e32e9[_0x54b4('0x1c')]([_0x476c9b],null,_0x1b4ac4);}}if(_0x1f38d6[_0x54b4('0x55')](),_0x1f38d6[_0x54b4('0x116')]||_0x54b4('0x121')==_0x1f38d6['root'][_0x54b4('0x59')])return null;let _0x251868=null,_0x257ccc=_0x1f38d6[_0x54b4('0xa')],_0x3ff1f1=_0x1f38d6['end'];for(const {suggestion:_0x4ba0bd,meta:_0x299c1e}of this[_0x54b4('0x122')](_0x1f38d6,_0x54b4('0x101')))if(_0x299c1e['isOwn']){if(_0x4ba0bd[_0x54b4('0x25')]&&this[_0x54b4('0x37')]){let _0x553a39=!0x0;for(const _0x234683 of _0x4ba0bd[_0x54b4('0x44')]()){if(_0x234683[_0x54b4('0x106')](_0x1f38d6,!0x0))return _0x4ba0bd;_0x1f38d6['containsRange'](_0x234683)||(_0x553a39=!0x1);}_0x553a39&&_0x4ba0bd['discard']();}else{const _0x5ec708=_0x4ba0bd['getFirstRange']();if(_0x5ec708[_0x54b4('0x106')](_0x1f38d6,!0x0)){if(!this[_0x54b4('0x37')]&&_0x299c1e['containsRangeInObject'])continue;return _0x4ba0bd;}_0x257ccc=_0x257ccc['isBefore'](_0x5ec708['start'])?_0x257ccc:_0x5ec708[_0x54b4('0xa')],_0x3ff1f1=_0x3ff1f1[_0x54b4('0x20')](_0x5ec708[_0x54b4('0x94')])?_0x3ff1f1:_0x5ec708[_0x54b4('0x94')],_0x251868?_0x5ec708[_0x54b4('0xa')][_0x54b4('0x6f')](_0x251868[_0x54b4('0x10f')]()['start'])?(_0x251868[_0x54b4('0x16')](),_0x251868=_0x4ba0bd):_0x4ba0bd['removeMarkers']():_0x251868=_0x4ba0bd;}}if(_0x251868)return this[_0x54b4('0x8')](_0x251868,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x257ccc,_0x3ff1f1)),_0x251868;{const _0x430359=_0x5f30bf(),_0x27a917=this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x257ccc,_0x3ff1f1),_0x8553c1=_0x3184b2['id'],_0x52ef06=_0x3b95e7?_0x54b4('0xbc')+_0x3b95e7:_0x54b4('0x101'),_0x615f3a=this['_setSuggestionData']({'id':_0x430359,'type':_0x52ef06,'createdAt':new Date(),'authorId':_0x8553c1,'attributes':_0x1b4ac4});return this['_addSuggestionMarker'](_0x52ef06,_0x430359,_0x8553c1,_0x27a917),_0x615f3a;}}['markMultiRangeDeletion'](_0x2fd035,_0x213205=_0x54b4('0x100'),_0x314eb3={}){const _0x19ba84=this[_0x54b4('0xd9')][_0x54b4('0xdd')]['get'](_0x54b4('0xd7'))['me'],_0x3bce33=_0x2fd035[_0x54b4('0xf')](_0x2bfa29=>new _0x2cb8ac(_0x2bfa29[_0x54b4('0xa')],_0x2bfa29[_0x54b4('0x94')])),_0x1fe999=new Set();for(const _0x113c98 of _0x3bce33)for(const {suggestion:_0x157201,meta:_0x2d3e94}of this[_0x54b4('0x122')](_0x113c98,_0x54b4('0x51')))_0x2d3e94[_0x54b4('0x1e')]&&!_0x2d3e94['isNextTo']&&_0x1fe999[_0x54b4('0x79')](_0x157201);for(const _0x5976ab of _0x1fe999)if(_0x5976ab[_0x54b4('0x25')]){const _0x2448e1=_0x5976ab[_0x54b4('0x44')]();(!_0x5976ab['attributes']||!_0x5976ab[_0x54b4('0x3c')][_0x54b4('0x18')])&&(_0x2448e1['every'](_0x3f2421=>_0x3bce33[_0x54b4('0xff')](_0x5062cd=>_0x5062cd[_0x54b4('0x106')](_0x3f2421,!0x0)))&&_0x5976ab['discard']());if(_0x3bce33['every'](_0x310259=>_0x2448e1['some'](_0x47ba0c=>_0x47ba0c[_0x54b4('0x106')](_0x310259,!0x0)))){const _0xe2d7c2=this['_suggestionFactory']['getSuggestionCallback'](_0x54b4('0x101'),_0x213205,_0x54b4('0xa6'));return this[_0x54b4('0x8a')](()=>_0xe2d7c2(_0x2fd035,null,_0x314eb3)),null;}}else{const _0x519371=_0x5976ab[_0x54b4('0x10f')]();_0x3bce33['some'](_0x5ea81f=>_0x5ea81f[_0x54b4('0x106')](_0x519371,!0x0))&&_0x5976ab[_0x54b4('0x67')]();if(_0x3bce33[_0x54b4('0xd')](_0x65f69=>_0x519371[_0x54b4('0x106')](_0x65f69,!0x0))){const _0x5a7c48=this[_0x54b4('0xfb')][_0x54b4('0xec')]('deletion',_0x213205,_0x54b4('0xa6'));return this['forceDefaultExecution'](()=>_0x5a7c48(_0x3bce33,null,_0x314eb3)),null;}}const _0x15e1a3=this[_0x54b4('0xfb')][_0x54b4('0xec')](_0x54b4('0x101'),_0x213205,_0x54b4('0x114'));let _0x21cb49=null;for(const _0x4881be of this[_0x54b4('0xb0')]())if(_0x4881be[_0x54b4('0x11a')]['id']==_0x19ba84['id']&&_0x4881be['isInContent']&&'deletion'==_0x4881be[_0x54b4('0x32')]&&_0x4881be[_0x54b4('0x12d')]==_0x213205&&(_0x15e1a3(_0x4881be[_0x54b4('0x44')](),_0x3bce33)||_0x15e1a3(_0x3bce33,_0x4881be[_0x54b4('0x44')]()))){if(_0x21cb49){if(_0x4881be['commentThread']&&_0x4881be['commentThread'][_0x54b4('0x113')])continue;for(const _0x2f6382 of _0x4881be[_0x54b4('0x44')]())_0x21cb49[_0x54b4('0x5c')](_0x2f6382)||_0x21cb49['addRange'](_0x2f6382);_0x4881be['removeMarkers']();}else{_0x21cb49=_0x4881be;for(const _0x308c65 of _0x3bce33)_0x4881be['isIntersectingWithRange'](_0x308c65)||_0x4881be[_0x54b4('0x66')](_0x308c65);}}if(_0x21cb49)return _0x21cb49;_0x1fe999[_0x54b4('0x62')]();for(const _0x5eae0f of _0x3bce33)for(const {suggestion:_0x76085f,meta:_0x333e92}of this['_findSuggestions'](_0x5eae0f,_0x54b4('0x101')))_0x333e92['isOwn']&&_0x1fe999[_0x54b4('0x79')](_0x76085f);for(const _0x3bfe48 of _0x1fe999){const _0x3745bc=_0x3bfe48[_0x54b4('0x44')]();if(!_0x314eb3||!_0x314eb3['skipNestingCheck']){if(_0x3bce33[_0x54b4('0xd')](_0x3351bc=>_0x3745bc[_0x54b4('0xff')](_0x4b881b=>_0x4b881b['containsRange'](_0x3351bc,!0x0))))return _0x3bfe48;}(!_0x3bfe48['attributes']||!_0x3bfe48[_0x54b4('0x3c')][_0x54b4('0x18')])&&(_0x3745bc[_0x54b4('0xd')](_0x14c7bb=>_0x3bce33[_0x54b4('0xff')](_0x4455cb=>_0x4455cb[_0x54b4('0x106')](_0x14c7bb,!0x0)))&&_0x3bfe48[_0x54b4('0x67')]());}const _0x3635ad=_0x5f30bf(),_0x16e6ed=_0x19ba84['id'],_0xb7113b=_0x54b4('0xbc')+_0x213205,_0x29550d=this['_setSuggestionData']({'id':_0x3635ad,'type':_0xb7113b,'createdAt':new Date(),'authorId':_0x16e6ed,'attributes':_0x314eb3});for(const _0x4471a3 of _0x3bce33)_0x4471a3[_0x54b4('0x55')](),_0x4471a3[_0x54b4('0x116')]||_0x54b4('0x121')==_0x4471a3[_0x54b4('0x1b')]['rootName']||this[_0x54b4('0xe4')](_0xb7113b,_0x3635ad,_0x16e6ed,_0x4471a3,_0xf20766[_0x54b4('0x21')]());return _0x29550d;}['_setSuggestionRange'](_0x2aaf2d,_0x22dce5){const _0x33cc20=_0x2aaf2d[_0x54b4('0x65')]();this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x511aed=>{_0x511aed['updateMarker'](_0x33cc20,{'range':_0x22dce5});});}[_0x54b4('0xc5')](_0x4232d9){const _0x1b626d=_0x4232d9['id'],_0x18bac2=this['editor'][_0x54b4('0x60')]['get'](_0x54b4('0x50'));this[_0x54b4('0xc1')][_0x54b4('0xf3')](_0x1b626d)||this[_0x54b4('0xc1')][_0x54b4('0x52')]({'channelId':_0x18bac2,'threadId':_0x1b626d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3249ae=this[_0x54b4('0xc1')][_0x54b4('0x88')](_0x1b626d);_0x3249ae[_0x54b4('0x4f')](_0x54b4('0x13b')),_0x3249ae['isRemovable']=!0x1,_0x4232d9[_0x54b4('0x134')]=_0x3249ae;}[_0x54b4('0x29')](_0x373835,_0x18555c,_0x35df6f,_0x26e94a){if(_0x373835['type']!=_0x18555c||_0x373835[_0x54b4('0x12d')]!=_0x35df6f||_0x373835['creator']['id']!=_0x26e94a)throw this[_0x54b4('0xd9')][_0x54b4('0x6c')](_0x54b4('0x22')),new _0x5e58a3(_0x54b4('0x22'),this);}[_0x54b4('0xd2')](_0x2dac5b,_0x5df3fb){const _0x2ea32d=_0x2dac5b[_0x54b4('0x10f')]();if(_0x5df3fb[_0x54b4('0x63')](_0x2ea32d))_0x2dac5b[_0x54b4('0x16')]();else{if(_0x2ea32d[_0x54b4('0x106')](_0x5df3fb)){const _0x1f06bb=this['_model'][_0x54b4('0x2d')](_0x5df3fb[_0x54b4('0xa')][_0x54b4('0xc3')],_0x54b4('0x94'));this[_0x54b4('0x8')](_0x2dac5b,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x2ea32d[_0x54b4('0xa')],_0x1f06bb));const _0x136e69=_0x5f30bf(),_0x447e81=_0x2dac5b[_0x54b4('0x85')]['id'],_0x2b1c7e=_0x2dac5b[_0x54b4('0x32')]+':'+_0x2dac5b['subType'];this[_0x54b4('0xf0')]({'id':_0x136e69,'type':_0x2b1c7e,'createdAt':new Date(),'authorId':_0x447e81,'data':_0x2dac5b[_0x54b4('0x12')],'attributes':_0x2dac5b[_0x54b4('0x3c')]});const _0xdbffad=this['_model'][_0x54b4('0x2d')](_0x5df3fb[_0x54b4('0x94')][_0x54b4('0x35')],'after'),_0x35e9e1=this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0xdbffad,_0x2ea32d[_0x54b4('0x94')]);this[_0x54b4('0xe4')](_0x2b1c7e,_0x136e69,_0x447e81,_0x35e9e1);}else{if(_0x2ea32d[_0x54b4('0xd5')](_0x5df3fb[_0x54b4('0xa')])){const _0x431e2c=this['_model'][_0x54b4('0x2d')](_0x5df3fb['start'][_0x54b4('0xc3')],_0x54b4('0x94'));this['_setSuggestionRange'](_0x2dac5b,this[_0x54b4('0xeb')]['createRange'](_0x2ea32d['start'],_0x431e2c));}else{const _0x4f0fe5=this[_0x54b4('0xeb')][_0x54b4('0x2d')](_0x5df3fb[_0x54b4('0x94')][_0x54b4('0x35')],_0x54b4('0x103'));this[_0x54b4('0x8')](_0x2dac5b,this['_model'][_0x54b4('0xcb')](_0x4f0fe5,_0x2ea32d[_0x54b4('0x94')]));}}}}[_0x54b4('0xaa')](_0x735555){for(const {suggestion:_0x3391ea,meta:_0x1fab19}of this['_findSuggestions'](_0x735555,_0x54b4('0x51'))){if(!_0x1fab19[_0x54b4('0x1e')])continue;const _0x25332e=_0x3391ea[_0x54b4('0x44')]();for(const _0x27fb13 of _0x25332e)if(!_0x735555[_0x54b4('0x13')](_0x27fb13)[_0x54b4('0x113')])return!0x0;}return!0x1;}[_0x54b4('0x128')](_0x33245d){const _0x1bfa4a=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7'))['getUser'](_0x33245d);if(!_0x1bfa4a)throw new _0x5e58a3(_0x54b4('0x129'),this);return _0x1bfa4a;}[_0x54b4('0x117')](_0x53184e){const _0x409c47=this['editor'][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0xd7')),_0x5335c1=_0x358f21('external:'+_0x53184e),_0xd58ab6=_0x409c47['getUser'](_0x5335c1);return _0xd58ab6||_0x409c47[_0x54b4('0xad')]({'id':_0x5335c1,'name':_0x53184e});}[_0x54b4('0x47')](_0x426f97,_0x1bd5be,_0x3cd48b,_0x2085ef,_0x8f6961){const _0x2b1c81=this[_0x54b4('0x128')](_0x2085ef),_0x5abb7a=this[_0x54b4('0xfb')][_0x54b4('0x19')](_0x426f97,_0x1bd5be,_0x3cd48b,_0x2b1c81,_0x8f6961,_0x38f6a7=>this[_0x54b4('0x76')](_0x3cd48b,{'attributes':_0x38f6a7}));return this[_0x54b4('0x53')](_0x5abb7a,_0x54b4('0xa6'),()=>{this['_updateSuggestionData'](_0x3cd48b,{'state':_0x54b4('0x14')});},{'priority':_0x54b4('0x15')}),this[_0x54b4('0x53')](_0x5abb7a,_0x54b4('0x67'),()=>{this[_0x54b4('0x76')](_0x3cd48b,{'state':_0x54b4('0x125')});},{'priority':'high'}),this[_0x54b4('0x12b')]['set'](_0x3cd48b,_0x5abb7a),this[_0x54b4('0x126')][_0x54b4('0x118')](_0x5abb7a,_0x54b4('0xf7')),_0x5abb7a;}[_0x54b4('0x71')](_0xeecaa1){const _0x4c0f79=_0xeecaa1[_0x54b4('0x5f')](':');return{'group':_0x4c0f79[0x0],'type':_0x4c0f79[0x1],'subType':_0x4c0f79[_0x54b4('0x113')]>=0x5?_0x4c0f79[0x2]:null,'id':_0x4c0f79[_0x54b4('0x113')]<0x5?_0x4c0f79[0x2]:_0x4c0f79[0x3],'authorId':_0x4c0f79[_0x54b4('0x113')]<0x5?_0x4c0f79[0x3]:_0x4c0f79[0x4],'markerCount':0x6==_0x4c0f79[_0x54b4('0x113')]?_0x4c0f79[0x5]:null};}[_0x54b4('0x48')](_0x4ea933,_0x15e93c,_0x4b8e56){const _0x1326e0=_0x4ea933['getFirstRange'](),_0x272cd5=_0x1326e0[_0x54b4('0xa')],_0x5da32d=_0x1326e0[_0x54b4('0x94')];this[_0x54b4('0x8')](_0x4ea933,this['_model'][_0x54b4('0xcb')](_0x272cd5,_0x15e93c));const _0x521504=_0x5f30bf(),_0x4a2090=_0x4ea933[_0x54b4('0x85')]['id'],_0x4f46ff=_0x4ea933[_0x54b4('0x32')]+(_0x4ea933['subType']?':'+_0x4ea933['subType']:'');this[_0x54b4('0xf0')]({'id':_0x521504,'type':_0x4f46ff,'createdAt':new Date(),'authorId':_0x4a2090,'originalSuggestionId':_0x4ea933['id'],'attributes':_0x4ea933[_0x54b4('0x3c')],'data':_0x4ea933[_0x54b4('0x12')]}),_0x54b4('0xab')==_0x4ea933[_0x54b4('0x32')]&&(_0x4b8e56=this[_0x54b4('0xeb')][_0x54b4('0x7a')](_0x4b8e56[_0x54b4('0x35')])),this['_addSuggestionMarker'](_0x4f46ff,_0x521504,_0x4a2090,this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x4b8e56,_0x5da32d));}['_findSuggestions'](_0x3dd034,_0x46080b=null){const _0xd88b29=[],_0x55d4ca=this['_model'][_0x54b4('0x111')],_0x32a71f=this['editor']['plugins'][_0x54b4('0x24')](_0x54b4('0xd7'))['me'];for(const _0x338ee1 of this['getSuggestions']())if(_0x338ee1[_0x54b4('0x38')]&&(!_0x46080b||_0x338ee1[_0x54b4('0x32')]==_0x46080b))for(const _0x4e6110 of _0x338ee1['getRanges']()){const _0x211320=_0x3dd034[_0x54b4('0xa')]['isEqual'](_0x4e6110[_0x54b4('0x94')])||_0x3dd034[_0x54b4('0x94')][_0x54b4('0x63')](_0x4e6110[_0x54b4('0xa')]);if(_0x211320||_0x3dd034[_0x54b4('0x54')](_0x4e6110)){const _0xc20928=_0x3dd034[_0x54b4('0x106')](_0x4e6110)&&Bt(_0x55d4ca,_0x4e6110['start'],_0x3dd034),_0x50a4ff=_0x4e6110[_0x54b4('0x106')](_0x3dd034)&&Bt(_0x55d4ca,_0x3dd034['start'],_0x4e6110);_0xd88b29['push']({'suggestion':_0x338ee1,'meta':{'isOwn':_0x32a71f==_0x338ee1[_0x54b4('0x11a')],'isNextTo':_0x211320,'isInsideObject':_0xc20928,'containsRangeInObject':_0x50a4ff}});break;}}return _0xd88b29;}['_addSuggestionMarker'](_0x473192,_0x190ae8,_0xf2fc5a,_0x393380,_0x1d6b2a){this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x285832=>{let _0x8708f2=_0x54b4('0x91')+_0x473192+':'+_0x190ae8+':'+_0xf2fc5a;_0x1d6b2a&&(_0x8708f2=_0x8708f2+':'+_0x1d6b2a),_0x285832[_0x54b4('0x26')](_0x8708f2,{'range':_0x393380,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x30cb19){const _0xc7afe0=_0x30cb19[_0x54b4('0x2b')],_0x23f49b=_0x30cb19['next'];_0x30cb19[_0x54b4('0x2b')]=null,null!=_0xc7afe0&&(_0xc7afe0['next']=null),_0x30cb19['next']=null,null!=_0x23f49b&&(_0x23f49b[_0x54b4('0x2b')]=null),_0x54b4('0x43')==this[_0x54b4('0x126')][_0x54b4('0x24')](_0x30cb19)&&(this[_0x54b4('0x126')][_0x54b4('0x118')](_0x30cb19,_0x54b4('0x87')),this['fire'](_0x54b4('0x13c'),_0x30cb19,_0xc7afe0,_0x23f49b));}[_0x54b4('0xf0')](_0x193461){const _0x137bbf=_0x193461['id'],_0x2d52db=this[_0x54b4('0x72')](_0x193461);if(this['_adapter']&&this[_0x54b4('0xdb')]['addSuggestion']){const _0x14c8bd=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x11e')),_0x2605d3=_0x2d52db[_0x54b4('0x10b')],_0x1303e5=_0x2d52db[_0x54b4('0x12d')]?_0x2d52db[_0x54b4('0x32')]+':'+_0x2d52db['subType']:_0x2d52db['type'],_0x334efa=this['editor'][_0x54b4('0xd1')],_0x1a93bb=_0x14c8bd[_0x54b4('0x79')](_0x5b781a(_0x334efa,'PENDING_ACTION_SUGGESTION')),_0x5ae4a7={'id':_0x137bbf,'type':_0x1303e5,'hasComments':_0x2605d3,'data':_0x193461['data']||null,'originalSuggestionId':_0x193461[_0x54b4('0xd8')]||null,'attributes':_0x2d52db[_0x54b4('0x3c')]};this[_0x54b4('0xdb')][_0x54b4('0xd4')](_0x5ae4a7)['then'](_0x3c0612=>{_0x2d52db['_saved']=!0x0,_0x14c8bd['remove'](_0x1a93bb),_0x3c0612&&_0x3c0612[_0x54b4('0xe')]&&(this['_suggestions'][_0x54b4('0x24')](_0x137bbf)[_0x54b4('0xe')]=_0x3c0612['createdAt']);})[_0x54b4('0x4e')](_0xe3ee62=>{throw _0x120821(_0x54b4('0x41')),this[_0x54b4('0xd9')][_0x54b4('0xa0')][_0x54b4('0xb9')]({'isUndoable':!0x1},()=>{_0x2d52db[_0x54b4('0x67')]();}),_0x2d52db[_0x54b4('0xdc')](),this[_0x54b4('0x12b')][_0x54b4('0x4d')](_0x2d52db['id']),this[_0x54b4('0x126')]['delete'](_0x2d52db),_0xe3ee62;});}return _0x2d52db;}[_0x54b4('0x76')](_0x36d30d,_0x1190c5){const _0x1d090e=this[_0x54b4('0xd9')][_0x54b4('0xdd')][_0x54b4('0x24')](_0x54b4('0x11e')),_0x5be36f=this[_0x54b4('0xde')](_0x36d30d);if(this[_0x54b4('0xdb')]&&this['_adapter'][_0x54b4('0x1d')]){if(_0x5be36f['_saved']){const _0x2b121f=_0x1d090e[_0x54b4('0x79')](_0x5b781a(this[_0x54b4('0xd9')][_0x54b4('0xd1')],_0x54b4('0xcf')));this[_0x54b4('0xdb')][_0x54b4('0x1d')](_0x36d30d,_0x1190c5)[_0x54b4('0x135')](()=>{_0x1d090e['remove'](_0x2b121f);});}else _0x5be36f['on']('change:_saved',()=>{this[_0x54b4('0x76')](_0x36d30d,_0x1190c5);});}}[_0x54b4('0xc7')](_0x46f8fd){if(!this[_0x54b4('0xdb')]||!this['_adapter'][_0x54b4('0xde')])throw new _0x5e58a3(_0x54b4('0x12e'),this);return this[_0x54b4('0xdb')][_0x54b4('0xde')](_0x46f8fd);}[_0x54b4('0x102')](_0x49ea61){const {id:_0xab735a,type:_0x4c93ac,subType:_0x581a66,authorId:_0x1a9c72}=this['_splitMarkerName'](_0x49ea61),_0xcfdb73=this[_0x54b4('0x12b')][_0x54b4('0x24')](_0xab735a)||this[_0x54b4('0x47')](_0x4c93ac,_0x581a66,_0xab735a,_0x1a9c72,{});switch(this[_0x54b4('0x29')](_0xcfdb73,_0x4c93ac,_0x581a66,_0x1a9c72),this['_suggestionState'][_0x54b4('0x24')](_0xcfdb73)){case _0x54b4('0xf7'):this[_0x54b4('0xc7')](_0xab735a)[_0x54b4('0x135')](_0x500fa1=>{let _0x5c4bee=Promise[_0x54b4('0x70')]();_0x500fa1[_0x54b4('0x10b')]&&(_0x5c4bee=this[_0x54b4('0xc1')][_0x54b4('0x42')]({'channelId':this[_0x54b4('0xd9')][_0x54b4('0x60')][_0x54b4('0x24')]('collaboration.channelId'),'threadId':_0xab735a})),_0x5c4bee[_0x54b4('0x135')](()=>{this['addSuggestionData'](_0x500fa1)[_0x54b4('0x8f')]=!0x0;});}),this[_0x54b4('0x126')]['set'](_0xcfdb73,_0x54b4('0x11'));break;case _0x54b4('0x87'):this[_0x54b4('0x76')](_0xab735a,{'state':_0x54b4('0x5a')});case _0x54b4('0x40'):this['_suggestionState']['set'](_0xcfdb73,_0x54b4('0x43')),this[_0x54b4('0x64')](_0x54b4('0x9e'),_0xcfdb73);break;case _0x54b4('0x43'):this[_0x54b4('0x64')](_0x54b4('0x11b'),_0xcfdb73);}return _0xcfdb73[_0x54b4('0x130')](_0x49ea61),_0xcfdb73;}[_0x54b4('0x5')](_0x2c9dad){const _0x4eec3b=Array[_0x54b4('0xca')](_0x2c9dad)[_0x54b4('0x3')](_0x20292b=>!_0x20292b['isMultiRange']),_0x4b8696=this[_0x54b4('0xb0')]({'skipNotAttached':!0x0})[_0x54b4('0x3')](_0x57488d=>!_0x57488d[_0x54b4('0x25')]),_0x32c121=_0x4b8696['filter'](_0x4eaaf7=>!_0x2c9dad['has'](_0x4eaaf7)),_0x12b4df=new Map(_0x4b8696[_0x54b4('0xf')](_0xebdb31=>[_0xebdb31,this[_0x54b4('0xfb')][_0x54b4('0xec')](_0xebdb31[_0x54b4('0x32')],_0xebdb31[_0x54b4('0x12d')],_0x54b4('0xa8'))])),_0x1e5147=new Map(_0x4b8696[_0x54b4('0xf')](_0x3952b1=>[_0x3952b1,_0x3952b1['getFirstRange']()])),_0x96ce3b=new Set(),_0x3fee26=new Set();for(let _0x762a04=0x0;_0x762a04<_0x4eec3b[_0x54b4('0x113')];_0x762a04++)_0x133240(_0x4eec3b[_0x762a04],_0x4eec3b,_0x762a04+0x1);for(let _0x4de516=0x0;_0x4de516<_0x4eec3b['length'];_0x4de516++)_0x133240(_0x4eec3b[_0x4de516],_0x32c121,0x0);for(let _0x1d8a5e=0x0;_0x1d8a5e<_0x4eec3b[_0x54b4('0x113')];_0x1d8a5e++){const _0xb7b4e2=_0x4eec3b[_0x1d8a5e];!_0x3fee26[_0x54b4('0xf4')](_0xb7b4e2)&&_0xb7b4e2[_0x54b4('0x2b')]&&(_0xb7b4e2[_0x54b4('0x2b')][_0x54b4('0xf9')]===_0xb7b4e2&&(_0xb7b4e2[_0x54b4('0x2b')][_0x54b4('0xf9')]=null),_0xb7b4e2[_0x54b4('0x2b')]=null),!_0x96ce3b[_0x54b4('0xf4')](_0xb7b4e2)&&_0xb7b4e2[_0x54b4('0xf9')]&&(_0xb7b4e2[_0x54b4('0xf9')][_0x54b4('0x2b')]===_0xb7b4e2&&(_0xb7b4e2[_0x54b4('0xf9')]['previous']=null),_0xb7b4e2[_0x54b4('0xf9')]=null);}function _0x133240(_0x336312,_0x3f42ff,_0x5da583){for(let _0xb1a491=_0x5da583;_0xb1a491<_0x3f42ff['length'];_0xb1a491++){const _0x127d34=_0x51cb8d(_0x336312,_0x3f42ff[_0xb1a491]);_0x127d34&&(_0x127d34[0x0][_0x54b4('0xf9')]=_0x127d34[0x1],_0x127d34[0x1][_0x54b4('0x2b')]=_0x127d34[0x0],_0x96ce3b[_0x54b4('0x79')](_0x127d34[0x0]),_0x3fee26[_0x54b4('0x79')](_0x127d34[0x1]));}}function _0x51cb8d(_0x28c726,_0x1afbdf){if(_0x28c726[_0x54b4('0x11a')]['id']!==_0x1afbdf[_0x54b4('0x11a')]['id'])return null;const _0x1a36b8=_0x12b4df['get'](_0x28c726)(_0x28c726,_0x1afbdf,_0x1e5147['get'](_0x28c726),_0x1e5147[_0x54b4('0x24')](_0x1afbdf));if(!_0x1a36b8)return null;return _0x12b4df['get'](_0x1afbdf)(_0x28c726,_0x1afbdf,_0x1e5147[_0x54b4('0x24')](_0x28c726),_0x1e5147[_0x54b4('0x24')](_0x1afbdf))?_0x1a36b8[0x1]['commentThread']&&_0x1a36b8[0x1][_0x54b4('0x134')]['length']?null:_0x1a36b8:null;}}[_0x54b4('0xa4')](_0x193e8e){const _0x37d2f2=Array[_0x54b4('0xca')](_0x193e8e),_0x3579eb=this[_0x54b4('0xb0')]({'skipNotAttached':!0x0}),_0x17f856=_0x3579eb[_0x54b4('0x3')](_0x359baa=>!_0x193e8e['has'](_0x359baa)),_0x4aacfb=new Map(_0x37d2f2['map'](_0xb112e3=>[_0xb112e3,this['_suggestionFactory'][_0x54b4('0xec')](_0xb112e3[_0x54b4('0x32')],_0xb112e3[_0x54b4('0x12d')],'join')])),_0x2211eb=new Map(_0x3579eb['map'](_0x4e8f27=>[_0x4e8f27,_0x4e8f27[_0x54b4('0x44')]()]));for(let _0x30b238=0x0;_0x30b238<_0x37d2f2[_0x54b4('0x113')];_0x30b238++){if(_0x1a9a0e(this,_0x37d2f2[_0x30b238],_0x37d2f2,_0x30b238+0x1))return!0x0;}for(let _0x5458f3=0x0;_0x5458f3<_0x37d2f2[_0x54b4('0x113')];_0x5458f3++){if(_0x1a9a0e(this,_0x37d2f2[_0x5458f3],_0x17f856,0x0))return!0x0;}return!0x1;function _0x1a9a0e(_0x4d7fea,_0x11f71b,_0x374cc1,_0x4585de){for(let _0xfb70da=_0x4585de;_0xfb70da<_0x374cc1[_0x54b4('0x113')];_0xfb70da++){const _0x44d572=_0x374cc1[_0xfb70da];if(_0x44d572[_0x54b4('0x32')]!==_0x11f71b[_0x54b4('0x32')]||_0x44d572[_0x54b4('0x11a')]['id']!==_0x11f71b[_0x54b4('0x11a')]['id']||_0x44d572[_0x54b4('0x12d')]!==_0x11f71b[_0x54b4('0x12d')])continue;const _0xf98f82=_0x4aacfb[_0x54b4('0x24')](_0x11f71b),_0x4f47a8=_0x2211eb[_0x54b4('0x24')](_0x11f71b),_0x438c03=_0x2211eb[_0x54b4('0x24')](_0x44d572),_0x3c1bfe=_0x11f71b[_0x54b4('0x134')]&&_0x11f71b[_0x54b4('0x134')][_0x54b4('0x113')],_0x5b7ee1=_0x44d572[_0x54b4('0x134')]&&_0x44d572[_0x54b4('0x134')][_0x54b4('0x113')];if(!_0x3c1bfe&&_0xf98f82(_0x438c03,_0x4f47a8))return _0x4d7fea[_0x54b4('0x86')](_0x44d572,_0x11f71b),_0x2211eb[_0x54b4('0x4d')](_0x11f71b),!0x0;if(!_0x5b7ee1&&_0xf98f82(_0x4f47a8,_0x438c03))return _0x4d7fea['_joinSuggestions'](_0x11f71b,_0x44d572),_0x2211eb[_0x54b4('0x4d')](_0x44d572),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa7ca86,_0x2970b9){if(_0xa7ca86[_0x54b4('0x25')])for(const _0x12203a of _0x2970b9[_0x54b4('0x44')]())_0xa7ca86[_0x54b4('0x66')](_0x12203a);else{const _0x10967a=_0x2970b9[_0x54b4('0x10f')]()[_0x54b4('0x94')];this[_0x54b4('0x8')](_0xa7ca86,this[_0x54b4('0xeb')]['createRange'](_0xa7ca86[_0x54b4('0x10f')]()[_0x54b4('0xa')],_0x10967a));}_0x2970b9['removeMarkers']();}}class Dt{constructor(_0x1f84cb){this[_0x54b4('0x17')]=_0x1f84cb,this['_model']=_0x1f84cb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x54b4('0x33')]();}['buildSuggestion'](_0x2b6ceb,_0xbb852c,_0x4e6417,_0xe8152,_0x54c86d,_0x23e048){return new _0xf20766(this['_model'],{'type':_0x2b6ceb,'subType':_0xbb852c,'id':_0x4e6417,'author':_0xe8152,'creator':_0xe8152,'attributes':_0x54c86d,'onAttributesChange':_0x23e048,'onAccept':(..._0x3d070e)=>this[_0x54b4('0xec')](_0x2b6ceb,_0xbb852c,'accept')(..._0x3d070e),'onDiscard':(..._0xb0e8b1)=>this[_0x54b4('0xec')](_0x2b6ceb,_0xbb852c,'discard')(..._0xb0e8b1)});}[_0x54b4('0x89')](_0x3070de,_0x260fba,_0x7ab0e8,_0x5774e3){const _0x496db4=_0x3070de+':'+_0x260fba+':'+_0x7ab0e8;this['_customCallbacks'][_0x54b4('0x118')](_0x496db4,_0x5774e3);}[_0x54b4('0xec')](_0xce614a,_0x392a59,_0x3c075b){const _0x1c788c=_0xce614a+':'+_0x392a59+':'+_0x3c075b;return this[_0x54b4('0x3a')][_0x54b4('0x24')](_0x1c788c)||this['_defaultCallbacks']['get'](_0xce614a+':'+_0x3c075b);}['_registerDefaultCallbacks'](){const _0x5042a2=()=>{},_0x59ba93=_0xf0e31f=>{_0xf0e31f[_0x54b4('0x58')]((_0x44805,_0x30e777)=>_0x44805[_0x54b4('0xa')][_0x54b4('0x6f')](_0x30e777[_0x54b4('0xa')])?0x1:-0x1),this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x3a4b42=>{for(const _0x1b8845 of _0xf0e31f){let _0x257f3b;_0x257f3b=_0x1b8845[_0x54b4('0x94')][_0x54b4('0xb6')]&&_0x1b8845[_0x54b4('0x94')][_0x54b4('0x35')]==_0x1b8845[_0x54b4('0xa')][_0x54b4('0x7d')]?_0x3a4b42['createSelection'](_0x1b8845[_0x54b4('0xa')][_0x54b4('0x7d')],'on'):_0x3a4b42['createSelection'](_0x1b8845),this['_model'][_0x54b4('0x97')](_0x257f3b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3330b9=(_0x29db68,_0x1cd8ca)=>{this[_0x54b4('0xeb')][_0x54b4('0x75')](_0x3c0cd0=>{const {commandName:_0x467ccc,commandParams:_0x305f04=[]}=_0x1cd8ca,_0x4ea5e0=_0x29db68[_0x54b4('0xf')](_0x35d3b5=>(_t(_0x35d3b5)&&(_0x35d3b5=this[_0x54b4('0xeb')][_0x54b4('0xcb')](_0x35d3b5[_0x54b4('0x94')])),_0x35d3b5))[_0x54b4('0x3')](_0x35d1f1=>_0x54b4('0x121')!==_0x35d1f1[_0x54b4('0x1b')]['rootName']);if(_0x4ea5e0[_0x54b4('0x113')]<0x1)return;const _0xfe4699=Array['from'](this[_0x54b4('0xeb')]['document']['selection'][_0x54b4('0x44')]())['map'](_0xa9a682=>_0x2cb8ac[_0x54b4('0xa1')](_0xa9a682));_0x3c0cd0[_0x54b4('0x9d')](_0x4ea5e0);for(const _0x50ba5f of this['_editor']['commands'][_0x54b4('0xbb')]())_0x50ba5f[_0x54b4('0xa5')]();_0x305f04['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x54b4('0x4c')](_0x467ccc,..._0x305f04);const _0x34449=_0xfe4699[_0x54b4('0x3')](_0x57465a=>_0x54b4('0x121')!=_0x57465a[_0x54b4('0x1b')]['rootName']);_0x34449[_0x54b4('0x113')]>0x0&&_0x3c0cd0[_0x54b4('0x9d')](_0x34449);for(const _0x505d90 of _0xfe4699)_0x505d90[_0x54b4('0x55')]();});},_0x36710c=(_0x5ae267,_0x3581c6)=>0x1==_0x5ae267['length']&&0x1==_0x3581c6[_0x54b4('0x113')]&&_0x5ae267[0x0]['end'][_0x54b4('0x63')](_0x3581c6[0x0]['start']),_0x330659=(_0x25faad,_0x4643c8,_0x3c81a7,_0x2de31f)=>xt(_0x25faad,_0x4643c8,_0x3c81a7,_0x2de31f,this[_0x54b4('0xeb')])?[_0x25faad,_0x4643c8]:xt(_0x4643c8,_0x25faad,_0x2de31f,_0x3c81a7,this[_0x54b4('0xeb')])?[_0x4643c8,_0x25faad]:null;this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xf5'),_0x5042a2),this['_defaultCallbacks'][_0x54b4('0x118')](_0x54b4('0x119'),_0x59ba93),this[_0x54b4('0x28')]['set']('insertion:join',_0x36710c),this['_defaultCallbacks'][_0x54b4('0x118')](_0x54b4('0xe0'),_0x330659),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0x1f'),_0x59ba93),this[_0x54b4('0x28')][_0x54b4('0x118')]('deletion:discard',_0x5042a2),this[_0x54b4('0x28')]['set'](_0x54b4('0x115'),_0x36710c),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xe2'),_0x330659),this['_defaultCallbacks'][_0x54b4('0x118')](_0x54b4('0xdf'),_0x3330b9),this[_0x54b4('0x28')]['set']('formatInline:discard',_0x5042a2),this['_defaultCallbacks']['set'](_0x54b4('0x6e'),_0x36710c),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xfa'),_0x5042a2),this[_0x54b4('0x28')]['set']('formatBlock:accept',_0x3330b9),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xf6'),_0x5042a2),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xfe'),_0x36710c),this[_0x54b4('0x28')][_0x54b4('0x118')](_0x54b4('0xc2'),_0x5042a2);}}function Bt(_0x8b3235,_0x19d64b,_0x272378){for(const _0x223c90 of _0x19d64b['parent'][_0x54b4('0xce')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x223c90['root']==_0x223c90)return!0x1;if(!_0x272378[_0x54b4('0x1')](_0x223c90))return!0x1;if(_0x8b3235['isObject'](_0x223c90)||_0x8b3235[_0x54b4('0xed')](_0x223c90))return!0x0;}return!0x1;}function _t(_0x54694a){return _0x54694a[_0x54b4('0x94')]['parent']==_0x54694a['start'][_0x54b4('0x7d')]&&_0x54694a[_0x54b4('0x94')][_0x54b4('0x80')];}function Mt(_0x57e57c,_0x18f986,_0x4ead65,_0x5da83a){const _0x24e84a=_0x5059e1=>!_0x5059e1[_0x54b4('0x127')]['is'](_0x54b4('0x11d'))&&!_0x5da83a[_0x54b4('0x104')](_0x5059e1[_0x54b4('0x127')]),_0x4f093b=_0x57e57c[_0x54b4('0xa')][_0x54b4('0x31')](_0x24e84a),_0x1e9a85=_0x57e57c[_0x54b4('0x94')][_0x54b4('0x31')](_0x24e84a,{'direction':_0x54b4('0xc4')});return(!_0x57e57c[_0x54b4('0xa')][_0x54b4('0x63')](_0x4f093b)||!_0x57e57c[_0x54b4('0x94')][_0x54b4('0x63')](_0x1e9a85))&&(_0x4f093b[_0x54b4('0x6f')](_0x1e9a85)?_0x4ead65[_0x54b4('0x36')](_0x18f986,{'range':_0x4ead65[_0x54b4('0xcb')](_0x4f093b,_0x1e9a85)}):_0x4ead65['removeMarker'](_0x18f986),!0x0);}function $t(_0x32fdc9){return _0x358f21(_0x32fdc9);}function Nt(_0xb2fda0){const _0x5c16f6=_0xb2fda0[_0x54b4('0xa')]['nodeAfter'];return _0x5c16f6&&_0x5c16f6['is']('element');}function Rt(_0x2f3359,_0x4362a3){const _0x5bd452=_0x4362a3[_0x54b4('0x111')][_0x54b4('0x104')](_0x2f3359)||_0x4362a3[_0x54b4('0x111')][_0x54b4('0xe1')](_0x2f3359);return _0x4362a3[_0x54b4('0xcb')](_0x4362a3['createPositionAt'](_0x2f3359,'before'),_0x5bd452?_0x4362a3[_0x54b4('0xb8')](_0x2f3359):_0x4362a3[_0x54b4('0x2d')](_0x2f3359,_0x54b4('0x94')));}function xt(_0x23b756,_0x2a98ff,_0x57620a,_0x4f612a,_0x18513d){if(_0x57620a['end'][_0x54b4('0x63')](_0x4f612a[_0x54b4('0xa')]))return!0x0;if(_0x23b756[_0x54b4('0x32')]!=_0x2a98ff['type'])return!0x1;if(!_0x57620a[_0x54b4('0x94')][_0x54b4('0xd3')](_0x4f612a['start']))return!0x1;const _0x5b5a5c=_0x18513d[_0x54b4('0xcb')](_0x57620a[_0x54b4('0x94')],_0x4f612a['start'])['getWalker']();for(const _0xf4308f of _0x5b5a5c)if(['elementStart',_0x54b4('0x7f')][_0x54b4('0xbe')](_0xf4308f[_0x54b4('0x32')])&&_0x18513d[_0x54b4('0x111')][_0x54b4('0xed')](_0xf4308f[_0x54b4('0x127')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29e6=['activeMarkers','activeAnnotations','addSourceCollector','_suggestionToController','actionView','get','separator','getJoined','locale','type','discardButton','suggestionLoaded','add','CommentsRepository','createAnnotationView','focus','addComment','config','comments.maxCommentCharsWhenCollapsed','_destroyController','editing','suggestionChanged','toMany','delete','trackChanges','switchbutton','bind','commentThread','pluginName','arrowView','_viewToController','commandName','plugins','EditorAnnotations','acceptAllSuggestions','getRanges','buttonView','CommentsUI','getDescriptions','execute','filter','view','getAllAdjacentSuggestions','values','destroy','_initializeController','_descriptionFactory','Discard\x20all\x20suggestions','createAnnotation','_handleSuggestionControllerDelayed','comments.editorConfig','suggestionUnloaded','descriptionParts','_createUIButton','requires','getSuggestion','comments.maxThreadTotalWeight','editor','length','getMarkerNames','change:previous','button','change:activeAnnotations','has','_handleControllerBuffer','reduce','commands','push','set','acceptSelectedSuggestions','TrackChangesEditing','_disableComments','isOn','Accept\x20all\x20suggestions','listenTo','head','Accept\x20all\x20selected\x20suggestions','registerAnnotation','value','trackChanges.disableComments','acceptButton','Annotations','suggestion-','isDirty','trackChanges.SuggestionThreadView','getFirstRange','from','remove','init','Track\x20changes','some','isInContent','define','_refreshActiveMarkers','isMultiRange','_annotationViews','model','isEnabled','mainView','_updateController','size','SuggestionThreadView','discardAllSuggestions','Discard\x20all\x20selected\x20suggestions'];(function(_0x55f9e8,_0x29e680){const _0x42d24c=function(_0x2b5ec0){while(--_0x2b5ec0){_0x55f9e8['push'](_0x55f9e8['shift']());}};_0x42d24c(++_0x29e680);}(_0x29e6,0x1cd));const _0x42d2=function(_0x55f9e8,_0x29e680){_0x55f9e8=_0x55f9e8-0x0;let _0x42d24c=_0x29e6[_0x55f9e8];return _0x42d24c;};import{Plugin as _0x225fdc}from'ckeditor5/src/core';import{Collection as _0x353466}from'ckeditor5/src/utils';import{Model as _0x4337ce,SplitButtonView as _0x20af1c,createDropdown as _0x235e12,addListToDropdown as _0x5a8061}from'ckeditor5/src/ui';import{Users as _0x3b0962,getDateTimeFormatter as _0x532b8c,getAllMarkersDomElementsSorted as _0x194b9d}from'ckeditor5-collaboration/src/collaboration-core';import _0xccff36 from'./trackchangesediting';import _0x219e6d from'./ui/suggestioncontroller';import _0x1765a6 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5db1c4}from'./utils/common-translations';import _0x3168fb from'../theme/icons/track-changes.svg';export default class d extends _0x225fdc{static get[_0x42d2('0x9')](){return[_0xccff36,_0x3b0962,_0x42d2('0x48'),'Annotations',_0x42d2('0x5c')];}static get[_0x42d2('0x57')](){return'TrackChangesUI';}constructor(_0x2cc73f){super(_0x2cc73f),this['_suggestionToController']=new Map(),this[_0x42d2('0x59')]=new Map(),this[_0x42d2('0x32')]=new Map(),this[_0x42d2('0x13')]=new Map();const _0x2eb1a1=this['editor'][_0x42d2('0x4c')];_0x2eb1a1[_0x42d2('0x2f')](_0x42d2('0x27'),_0x1765a6),_0x2eb1a1['define'](_0x42d2('0x22'),!0x1),this[_0x42d2('0x1a')]=_0x2eb1a1[_0x42d2('0x40')](_0x42d2('0x22'));}[_0x42d2('0x4')](_0x15669a,_0x53edaf){0x0===this[_0x42d2('0x13')][_0x42d2('0x37')]&&setTimeout(()=>{for(const [_0x45d194,_0x4a2671]of this[_0x42d2('0x13')]){const _0x29cec5=this['_suggestionToController'][_0x42d2('0x12')](_0x45d194);_0x29cec5||_0x4a2671?_0x29cec5&&_0x4a2671&&this[_0x42d2('0x4e')](_0x45d194):this[_0x42d2('0x0')](_0x45d194);}this['editor'][_0x42d2('0x5b')][_0x42d2('0x40')](_0x42d2('0x5c'))['refreshSelectedViews'](),this[_0x42d2('0x30')](),this[_0x42d2('0x13')]['clear']();},0xa),this[_0x42d2('0x13')][_0x42d2('0x17')](_0x15669a,_0x53edaf);}[_0x42d2('0x2b')](){const _0x1708d6=this['editor'],_0x3b05fc=_0x1708d6[_0x42d2('0x5b')][_0x42d2('0x40')](_0x42d2('0x19')),_0x2f8046=_0x1708d6['plugins'][_0x42d2('0x40')](_0x42d2('0x24')),_0x40fc60=_0x1708d6[_0x42d2('0x5b')]['get'](_0x42d2('0x5c')),_0x41164a=_0x1708d6[_0x42d2('0x5b')][_0x42d2('0x40')](_0x42d2('0x48'));_0x1708d6['ui']['componentFactory'][_0x42d2('0x47')]('trackChanges',_0x15ab25=>this[_0x42d2('0x8')](_0x15ab25)),_0x40fc60[_0x42d2('0x3d')](()=>{const _0x4341c3=[];for(const [_0x56a6e3,_0x59fb72]of Array[_0x42d2('0x29')](this[_0x42d2('0x3e')])){const _0x472e8d=_0x56a6e3['getAllAdjacentSuggestions'](),_0x408fe6=[];for(const _0x3526c5 of _0x472e8d){if(!_0x3526c5[_0x42d2('0x2e')])continue;if(_0x3526c5[_0x42d2('0x31')]){_0x408fe6[_0x42d2('0x16')](..._0x3526c5[_0x42d2('0x5e')]());continue;}const _0x115a03=_0x3526c5[_0x42d2('0x28')]();if(_0x408fe6['length']>0x0){const _0x9caffb=_0x408fe6[0x0][_0x42d2('0x42')](_0x115a03);if(_0x9caffb){_0x408fe6[0x0]=_0x9caffb;continue;}}_0x408fe6[_0x42d2('0x16')](_0x115a03);}_0x4341c3[_0x42d2('0x16')]([_0x59fb72[_0x42d2('0x64')],_0x408fe6]);}return _0x4341c3;}),this['listenTo'](_0x3b05fc,_0x42d2('0x46'),(_0x2a1ea7,_0x531efa)=>{this['listenTo'](_0x531efa,_0x42d2('0xf'),(_0x68994f,_0x44c241,_0x236b8c,_0x5be029)=>{_0x531efa[_0x42d2('0x2e')]&&(null==_0x236b8c?(this[_0x42d2('0x36')](_0x5be029[_0x42d2('0x1e')]),this[_0x42d2('0x4')](_0x531efa,!0x1)):(this[_0x42d2('0x36')](_0x236b8c[_0x42d2('0x1e')]),this[_0x42d2('0x4')](_0x531efa,!0x0)));}),null===_0x531efa['previous']?this[_0x42d2('0x4')](_0x531efa,!0x1):this['_updateController'](_0x531efa[_0x42d2('0x1e')]);}),this['listenTo'](_0x3b05fc,_0x42d2('0x6'),(_0x4fde9f,_0x4453cb,_0x54e468)=>{this['stopListening'](_0x4453cb,_0x42d2('0xf')),this[_0x42d2('0x13')][_0x42d2('0x52')](_0x4453cb);const _0x31cbaf=_0x54e468?_0x54e468[_0x42d2('0x1e')]:_0x4453cb,_0x4353ad=this['_suggestionToController'][_0x42d2('0x40')](_0x31cbaf);null!==_0x54e468&&this['_updateController'](_0x31cbaf),null===_0x54e468&&_0x4353ad&&this[_0x42d2('0x4e')](_0x4453cb);}),this[_0x42d2('0x1d')](_0x3b05fc,_0x42d2('0x50'),(_0x2dffc0,_0x159eee)=>{this[_0x42d2('0x36')](_0x159eee);}),this[_0x42d2('0x1d')](_0x2f8046,_0x42d2('0x11'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41164a,_0x42d2('0x4b'),(_0x5dec24,{threadId:_0x29b732,isFromAdapter:_0x1cd1f9})=>{if(_0x1cd1f9||!_0x3b05fc['hasSuggestion'](_0x29b732))return;const _0x1b9680=_0x3b05fc[_0x42d2('0xa')](_0x29b732);this[_0x42d2('0x3e')][_0x42d2('0x40')](_0x1b9680)[_0x42d2('0x64')][_0x42d2('0x4a')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1a73ba=this[_0x42d2('0xc')]['plugins'][_0x42d2('0x40')](_0x42d2('0x24')),_0x37a44d=this[_0x42d2('0xc')][_0x42d2('0x5b')][_0x42d2('0x40')](_0x42d2('0x19')),_0x4f6575=Array[_0x42d2('0x29')](_0x1a73ba[_0x42d2('0x3c')],_0x19dac4=>_0x19dac4['innerView'])[_0x42d2('0x63')](_0x56708e=>this['_viewToController']['has'](_0x56708e)),_0xcbcaf6=[];for(const _0xb351c0 of _0x4f6575){const _0x202194=this[_0x42d2('0x59')][_0x42d2('0x40')](_0xb351c0)['model'][_0x42d2('0x65')]();_0xcbcaf6[_0x42d2('0x16')](..._0x202194[_0x42d2('0x14')]((_0x175ba7,_0x46b8bf)=>[..._0x175ba7,..._0x46b8bf[_0x42d2('0xe')]()],[]));}_0x37a44d[_0x42d2('0x3b')]=_0xcbcaf6;}[_0x42d2('0x8')](_0x1872f7){const _0x593e6d=_0x235e12(_0x1872f7,_0x20af1c),_0x381b62=this[_0x42d2('0xc')][_0x42d2('0x15')][_0x42d2('0x40')](_0x42d2('0x53')),_0x25edcd=_0x5db1c4(_0x1872f7,_0x42d2('0x2c'));_0x593e6d['buttonView'][_0x42d2('0x17')]({'tooltip':_0x25edcd,'label':_0x25edcd,'icon':_0x3168fb}),_0x593e6d[_0x42d2('0x5f')][_0x42d2('0x55')](_0x42d2('0x1b'))['to'](_0x381b62,_0x42d2('0x21')),_0x593e6d['buttonView']['on'](_0x42d2('0x62'),()=>{_0x381b62['execute'](),this[_0x42d2('0xc')][_0x42d2('0x4f')][_0x42d2('0x64')][_0x42d2('0x4a')]();});const _0x329d1f=new _0x353466(),_0x2f941c=[{'type':_0x42d2('0x54'),'model':{'withText':!0x0,'label':_0x25edcd,'commandName':'trackChanges'}},{'type':_0x42d2('0x41')},{'type':_0x42d2('0x10'),'model':{'withText':!0x0,'label':_0x5db1c4(_0x1872f7,_0x42d2('0x1c')),'commandName':_0x42d2('0x5d')}},{'type':_0x42d2('0x10'),'model':{'withText':!0x0,'label':_0x5db1c4(_0x1872f7,_0x42d2('0x1f')),'commandName':_0x42d2('0x18')}},{'type':_0x42d2('0x10'),'model':{'withText':!0x0,'label':_0x5db1c4(_0x1872f7,_0x42d2('0x2')),'commandName':_0x42d2('0x39')}},{'type':_0x42d2('0x10'),'model':{'withText':!0x0,'label':_0x5db1c4(_0x1872f7,_0x42d2('0x3a')),'commandName':'discardSelectedSuggestions'}}];for(const _0xec75c of _0x2f941c){let _0x12c7ad={'type':'separator'};if(_0xec75c[_0x42d2('0x33')]){const _0x1260f0=new _0x4337ce(_0xec75c[_0x42d2('0x33')]),_0x5c7231=this[_0x42d2('0xc')][_0x42d2('0x15')][_0x42d2('0x40')](_0x1260f0[_0x42d2('0x5a')]);_0x1260f0[_0x42d2('0x55')]('isOn','isEnabled')['to'](_0x5c7231,_0x42d2('0x21'),_0x42d2('0x34')),_0x12c7ad={'type':_0xec75c[_0x42d2('0x44')],'model':_0x1260f0};}_0x329d1f[_0x42d2('0x47')](_0x12c7ad);}_0x5a8061(_0x593e6d,_0x329d1f);const _0x5ec50f=_0x2f941c[_0x42d2('0x63')](_0x47694e=>null!=_0x47694e['model'])['map'](_0x5b0402=>this[_0x42d2('0xc')][_0x42d2('0x15')][_0x42d2('0x40')](_0x5b0402[_0x42d2('0x33')][_0x42d2('0x5a')])),_0x4a36e4=_0x593e6d['buttonView'];return _0x4a36e4['actionView']['unbind']('isEnabled'),_0x4a36e4[_0x42d2('0x58')]['unbind']('isEnabled'),_0x4a36e4[_0x42d2('0x3f')][_0x42d2('0x55')](_0x42d2('0x34'))['to'](_0x381b62,_0x42d2('0x34')),_0x4a36e4[_0x42d2('0x58')]['bind'](_0x42d2('0x34'))[_0x42d2('0x51')](_0x5ec50f,'isEnabled',(..._0x3911ea)=>_0x3911ea[_0x42d2('0x2d')](_0x4c1a2a=>_0x4c1a2a)),_0x593e6d['on'](_0x42d2('0x62'),_0xe510e4=>{this['editor'][_0x42d2('0x62')](_0xe510e4['source'][_0x42d2('0x5a')]),this[_0x42d2('0xc')][_0x42d2('0x4f')][_0x42d2('0x64')]['focus']();}),_0x593e6d;}[_0x42d2('0x0')](_0x586c0a){const _0x2be5af=this[_0x42d2('0xc')],_0x37f0fd=_0x2be5af[_0x42d2('0x4c')],_0x471a49=_0x2be5af[_0x42d2('0x5b')][_0x42d2('0x40')](_0x42d2('0x24')),_0x2c7f84=_0x2be5af[_0x42d2('0x5b')]['get']('CommentsRepository'),_0x159a05=_0x2be5af[_0x42d2('0x5b')][_0x42d2('0x40')](_0x42d2('0x5c')),_0x39b13e=_0x2be5af['plugins'][_0x42d2('0x40')](_0x3b0962)['me'],_0x19d246=_0x37f0fd[_0x42d2('0x40')](_0x42d2('0x53'))[_0x42d2('0x38')],{CommentsListView:_0x5b338c,CommentThreadInputView:_0xa5ffb7}=_0x2be5af[_0x42d2('0x5b')][_0x42d2('0x40')](_0x42d2('0x60'));let _0xa81448,_0x53ab95;this[_0x42d2('0x32')][_0x42d2('0x12')](_0x586c0a['id'])?(_0x53ab95=this[_0x42d2('0x32')][_0x42d2('0x40')](_0x586c0a['id']),_0xa81448=_0x53ab95[_0x42d2('0x35')]):(_0xa81448=new _0x19d246(_0x2be5af['locale'],_0x586c0a,_0x39b13e,{'disableComments':this[_0x42d2('0x1a')],'editorConfig':_0x37f0fd[_0x42d2('0x40')](_0x42d2('0x5')),'maxCommentsWhenCollapsed':_0x37f0fd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x37f0fd['get'](_0x42d2('0xb')),'maxCommentCharsWhenCollapsed':_0x37f0fd[_0x42d2('0x40')](_0x42d2('0x4d')),'formatDateTime':_0x532b8c(_0x37f0fd[_0x42d2('0x40')](_0x42d2('0x43'))),'CommentView':_0x37f0fd['get']('comments')['CommentView'],'CommentsListView':_0x5b338c,'CommentThreadInputView':_0xa5ffb7}),_0xa81448[_0x42d2('0x23')]['on'](_0x42d2('0x62'),()=>{_0x2be5af[_0x42d2('0x4f')][_0x42d2('0x64')]['focus']();}),_0xa81448[_0x42d2('0x45')]['on'](_0x42d2('0x62'),()=>{_0x2be5af[_0x42d2('0x4f')][_0x42d2('0x64')][_0x42d2('0x4a')]();}),_0x53ab95=_0x471a49[_0x42d2('0x49')](this[_0x42d2('0xc')]['locale'],_0xa81448),_0x53ab95[_0x42d2('0x55')]('isDirty')['to'](_0xa81448,_0x42d2('0x26')),_0x53ab95[_0x42d2('0x55')](_0x42d2('0xd'))['to'](_0xa81448),_0x53ab95[_0x42d2('0x55')]('type')['to'](_0xa81448,'type',_0x21d0a2=>_0x42d2('0x25')+_0x21d0a2),this[_0x42d2('0x32')]['set'](_0x586c0a['id'],_0x53ab95));const _0x18cdf7=_0x2c7f84['createCommentThreadController'](_0x586c0a[_0x42d2('0x56')],_0xa81448),_0x2f2f97=new _0x219e6d(_0x2be5af,_0x586c0a,_0xa81448,_0x18cdf7),_0x54d6b1=_0x586c0a[_0x42d2('0x65')]()[_0x42d2('0x63')](_0x1d49de=>_0x1d49de[_0x42d2('0x2e')]);_0xa81448[_0x42d2('0x7')]=_0x2be5af[_0x42d2('0x5b')]['get'](_0x42d2('0x19'))[_0x42d2('0x1')][_0x42d2('0x61')](_0x54d6b1),this[_0x42d2('0x3e')][_0x42d2('0x17')](_0x586c0a,_0x2f2f97),this[_0x42d2('0x59')][_0x42d2('0x17')](_0xa81448,_0x2f2f97);const _0x2b776d=_0x471a49[_0x42d2('0x3')]({'view':_0x53ab95,'target':()=>{const _0x199bd2=[],_0x26b577=_0x586c0a[_0x42d2('0x65')]()[_0x42d2('0x63')](_0x192e8f=>_0x192e8f[_0x42d2('0x2e')]);for(const _0x3ddf52 of _0x26b577)_0x199bd2['push'](..._0x3ddf52['getMarkers']());return _0x194b9d(_0x2be5af[_0x42d2('0x4f')],_0x199bd2);},'type':()=>_0x42d2('0x25')+_0x2f2f97[_0x42d2('0x64')][_0x42d2('0x44')]});_0x471a49[_0x42d2('0x47')](_0x2b776d),_0x159a05[_0x42d2('0x20')](_0x2b776d);}[_0x42d2('0x4e')](_0x42d10c){const _0x92fc94=this['editor'][_0x42d2('0x5b')]['get']('Annotations'),_0x2b56ee=this['_suggestionToController'][_0x42d2('0x40')](_0x42d10c),_0xcc0b5d=_0x2b56ee[_0x42d2('0x64')],_0x36c224=_0x92fc94['getByInnerView'](_0xcc0b5d);_0x36c224&&_0x92fc94[_0x42d2('0x2a')](_0x36c224),this['_suggestionToController'][_0x42d2('0x52')](_0x42d10c),this[_0x42d2('0x59')][_0x42d2('0x52')](_0xcc0b5d),_0x2b56ee[_0x42d2('0x67')]();}['_updateController'](_0x587a48){if(!_0x587a48['isInContent']||!this[_0x42d2('0x3e')]['has'](_0x587a48))return;const _0x473c23=this[_0x42d2('0xc')]['plugins'][_0x42d2('0x40')]('TrackChangesEditing'),_0x1ca738=this['_suggestionToController'][_0x42d2('0x40')](_0x587a48),_0x571fd1=_0x587a48[_0x42d2('0x65')]();_0x1ca738[_0x42d2('0x64')][_0x42d2('0x7')]=_0x473c23['_descriptionFactory'][_0x42d2('0x61')](_0x571fd1);}[_0x42d2('0x67')](){for(const _0x5f0f2a of this[_0x42d2('0x3e')]['keys']())this[_0x42d2('0x4e')](_0x5f0f2a);for(const _0x32f9da of this[_0x42d2('0x32')][_0x42d2('0x66')]())_0x32f9da['mainView']['destroy']();super['destroy']();}}
23
+ const _0x2c5c=['stopListening','size','_initializeController','set','_annotationViews','componentFactory','locale','getRanges','TrackChangesUI','createAnnotation','filter','trackChanges.SuggestionThreadView','editor','Accept\x20all\x20suggestions','type','hasSuggestion','source','createAnnotationView','acceptAllSuggestions','_destroyController','Discard\x20all\x20suggestions','get','value','editing','config','from','commands','activeMarkers','getByInnerView','getAllAdjacentSuggestions','clear','plugins','CommentsRepository','registerAnnotation','change:previous','view','trackChanges','getMarkerNames','pluginName','bind','innerView','descriptionParts','toMany','Annotations','lowest','delete','has','requires','getJoined','commandName','comments','listenTo','_handleSuggestionControllerDelayed','comments.maxCommentCharsWhenCollapsed','_disableComments','mainView','createCommentThreadController','destroy','remove','isInContent','acceptSelectedSuggestions','length','reduce','discardAllSuggestions','discardButton','values','CommentsUI','SuggestionThreadView','_viewToController','_createUIButton','push','_handleControllerBuffer','getDescriptions','separator','suggestionLoaded','comments.maxThreadTotalWeight','suggestionUnloaded','init','getMarkers','CommentView','arrowView','comments.editorConfig','Track\x20changes','addSourceCollector','addComment','some','activeAnnotations','_updateController','head','EditorAnnotations','_suggestionToController','isEnabled','execute','model','add','acceptButton','suggestion-','TrackChangesEditing','isDirty','buttonView','map','refreshSelectedViews','_refreshActiveMarkers','button','keys','switchbutton','actionView','suggestionChanged','focus','define'];(function(_0x31517a,_0x2c5c82){const _0xf003ae=function(_0x431e3c){while(--_0x431e3c){_0x31517a['push'](_0x31517a['shift']());}};_0xf003ae(++_0x2c5c82);}(_0x2c5c,0x70));const _0xf003=function(_0x31517a,_0x2c5c82){_0x31517a=_0x31517a-0x0;let _0xf003ae=_0x2c5c[_0x31517a];return _0xf003ae;};import{Plugin as _0x37e9e0}from'ckeditor5/src/core';import{Collection as _0x3fd7a1}from'ckeditor5/src/utils';import{Model as _0x5154f6,SplitButtonView as _0x2203b3,createDropdown as _0x4f87ff,addListToDropdown as _0xc858a0}from'ckeditor5/src/ui';import{Users as _0x5340d9,getDateTimeFormatter as _0x3e3e63,getAllMarkersDomElementsSorted as _0x8ab08f}from'ckeditor5-collaboration/src/collaboration-core';import _0x25611d from'./trackchangesediting';import _0x308075 from'./ui/suggestioncontroller';import _0xfb07b3 from'./ui/view/suggestionthreadview';import{getTranslation as _0x217ef8}from'./utils/common-translations';import _0x2aa273 from'../theme/icons/track-changes.svg';export default class d extends _0x37e9e0{static get[_0xf003('0x2d')](){return[_0x25611d,_0x5340d9,'CommentsRepository','Annotations',_0xf003('0x57')];}static get[_0xf003('0x24')](){return _0xf003('0x6');}constructor(_0x597ea9){super(_0x597ea9),this[_0xf003('0x58')]=new Map(),this[_0xf003('0x42')]=new Map(),this[_0xf003('0x2')]=new Map(),this[_0xf003('0x45')]=new Map();const _0x41be3b=this['editor'][_0xf003('0x16')];_0x41be3b[_0xf003('0x6b')](_0xf003('0x9'),_0xfb07b3),_0x41be3b[_0xf003('0x6b')]('trackChanges.disableComments',!0x1),this[_0xf003('0x34')]=_0x41be3b[_0xf003('0x13')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5647b0,_0x304b25){0x0===this['_handleControllerBuffer'][_0xf003('0x6d')]&&setTimeout(()=>{for(const [_0x42c1cf,_0x501e76]of this['_handleControllerBuffer']){const _0x2341ee=this[_0xf003('0x58')][_0xf003('0x2c')](_0x42c1cf);_0x2341ee||_0x501e76?_0x2341ee&&_0x501e76&&this['_destroyController'](_0x42c1cf):this[_0xf003('0x0')](_0x42c1cf);}this[_0xf003('0xa')][_0xf003('0x1d')]['get'](_0xf003('0x57'))[_0xf003('0x63')](),this[_0xf003('0x64')](),this[_0xf003('0x45')][_0xf003('0x1c')]();},0xa),this[_0xf003('0x45')]['set'](_0x5647b0,_0x304b25);}[_0xf003('0x4b')](){const _0x1249be=this['editor'],_0x4a770f=_0x1249be['plugins']['get'](_0xf003('0x5f')),_0x98501f=_0x1249be[_0xf003('0x1d')][_0xf003('0x13')](_0xf003('0x29')),_0x240651=_0x1249be[_0xf003('0x1d')]['get'](_0xf003('0x57')),_0x3b5f6d=_0x1249be[_0xf003('0x1d')][_0xf003('0x13')](_0xf003('0x1e'));_0x1249be['ui'][_0xf003('0x3')][_0xf003('0x5c')](_0xf003('0x22'),_0xb67688=>this['_createUIButton'](_0xb67688)),_0x240651[_0xf003('0x51')](()=>{const _0x52e077=[];for(const [_0x2e9f7c,_0x1886f1]of Array['from'](this['_suggestionToController'])){const _0x47fcfb=_0x2e9f7c[_0xf003('0x1b')](),_0x5de30a=[];for(const _0x3435ed of _0x47fcfb){if(!_0x3435ed['isInContent'])continue;if(_0x3435ed['isMultiRange']){_0x5de30a['push'](..._0x3435ed[_0xf003('0x5')]());continue;}const _0xc8912a=_0x3435ed['getFirstRange']();if(_0x5de30a[_0xf003('0x3b')]>0x0){const _0x51f5f7=_0x5de30a[0x0][_0xf003('0x2e')](_0xc8912a);if(_0x51f5f7){_0x5de30a[0x0]=_0x51f5f7;continue;}}_0x5de30a['push'](_0xc8912a);}_0x52e077[_0xf003('0x44')]([_0x1886f1[_0xf003('0x21')],_0x5de30a]);}return _0x52e077;}),this[_0xf003('0x31')](_0x4a770f,_0xf003('0x48'),(_0x3fbcd9,_0x4b723a)=>{this['listenTo'](_0x4b723a,'change:previous',(_0x294e2c,_0x5ebb0b,_0x3ab958,_0x444fe3)=>{_0x4b723a[_0xf003('0x39')]&&(null==_0x3ab958?(this[_0xf003('0x55')](_0x444fe3[_0xf003('0x56')]),this[_0xf003('0x32')](_0x4b723a,!0x1)):(this[_0xf003('0x55')](_0x3ab958[_0xf003('0x56')]),this['_handleSuggestionControllerDelayed'](_0x4b723a,!0x0)));}),null===_0x4b723a['previous']?this[_0xf003('0x32')](_0x4b723a,!0x1):this[_0xf003('0x55')](_0x4b723a['head']);}),this[_0xf003('0x31')](_0x4a770f,_0xf003('0x4a'),(_0x5130d4,_0x3d892f,_0x13ae18)=>{this[_0xf003('0x6c')](_0x3d892f,_0xf003('0x20')),this[_0xf003('0x45')][_0xf003('0x2b')](_0x3d892f);const _0x3e95b9=_0x13ae18?_0x13ae18[_0xf003('0x56')]:_0x3d892f,_0x44aa57=this['_suggestionToController'][_0xf003('0x13')](_0x3e95b9);null!==_0x13ae18&&this[_0xf003('0x55')](_0x3e95b9),null===_0x13ae18&&_0x44aa57&&this[_0xf003('0x11')](_0x3d892f);}),this[_0xf003('0x31')](_0x4a770f,_0xf003('0x69'),(_0x166672,_0xb11f15)=>{this[_0xf003('0x55')](_0xb11f15);}),this[_0xf003('0x31')](_0x98501f,'change:activeAnnotations',()=>{this[_0xf003('0x64')]();}),this[_0xf003('0x31')](_0x3b5f6d,_0xf003('0x52'),(_0x24c69e,{threadId:_0x26e7b2,isFromAdapter:_0x2186b6})=>{if(_0x2186b6||!_0x4a770f[_0xf003('0xd')](_0x26e7b2))return;const _0x1f2aae=_0x4a770f['getSuggestion'](_0x26e7b2);this[_0xf003('0x58')][_0xf003('0x13')](_0x1f2aae)[_0xf003('0x21')][_0xf003('0x6a')]();},{'priority':_0xf003('0x2a')});}[_0xf003('0x64')](){const _0x106fc5=this[_0xf003('0xa')][_0xf003('0x1d')]['get'](_0xf003('0x29')),_0x438c0f=this[_0xf003('0xa')][_0xf003('0x1d')][_0xf003('0x13')](_0xf003('0x5f')),_0x4f919c=Array[_0xf003('0x17')](_0x106fc5[_0xf003('0x54')],_0x1f6170=>_0x1f6170[_0xf003('0x26')])[_0xf003('0x8')](_0x3b2290=>this[_0xf003('0x42')]['has'](_0x3b2290)),_0x2cd146=[];for(const _0x382fd4 of _0x4f919c){const _0x42b041=this['_viewToController'][_0xf003('0x13')](_0x382fd4)[_0xf003('0x5b')][_0xf003('0x1b')]();_0x2cd146['push'](..._0x42b041[_0xf003('0x3c')]((_0x2d4d0d,_0x34d471)=>[..._0x2d4d0d,..._0x34d471[_0xf003('0x23')]()],[]));}_0x438c0f[_0xf003('0x19')]=_0x2cd146;}[_0xf003('0x43')](_0x365023){const _0x2b21ef=_0x4f87ff(_0x365023,_0x2203b3),_0x30bd67=this['editor']['commands']['get'](_0xf003('0x22')),_0x409a97=_0x217ef8(_0x365023,_0xf003('0x50'));_0x2b21ef[_0xf003('0x61')]['set']({'tooltip':_0x409a97,'label':_0x409a97,'icon':_0x2aa273}),_0x2b21ef[_0xf003('0x61')]['bind']('isOn')['to'](_0x30bd67,_0xf003('0x14')),_0x2b21ef[_0xf003('0x61')]['on'](_0xf003('0x5a'),()=>{_0x30bd67[_0xf003('0x5a')](),this[_0xf003('0xa')][_0xf003('0x15')][_0xf003('0x21')][_0xf003('0x6a')]();});const _0x3ad27f=new _0x3fd7a1(),_0x58f334=[{'type':_0xf003('0x67'),'model':{'withText':!0x0,'label':_0x409a97,'commandName':_0xf003('0x22')}},{'type':_0xf003('0x47')},{'type':'button','model':{'withText':!0x0,'label':_0x217ef8(_0x365023,_0xf003('0xb')),'commandName':_0xf003('0x10')}},{'type':'button','model':{'withText':!0x0,'label':_0x217ef8(_0x365023,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0xf003('0x3a')}},{'type':_0xf003('0x65'),'model':{'withText':!0x0,'label':_0x217ef8(_0x365023,_0xf003('0x12')),'commandName':_0xf003('0x3d')}},{'type':_0xf003('0x65'),'model':{'withText':!0x0,'label':_0x217ef8(_0x365023,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x2ca03e of _0x58f334){let _0x1855f1={'type':'separator'};if(_0x2ca03e[_0xf003('0x5b')]){const _0x2dea09=new _0x5154f6(_0x2ca03e[_0xf003('0x5b')]),_0x2a321b=this[_0xf003('0xa')][_0xf003('0x18')][_0xf003('0x13')](_0x2dea09['commandName']);_0x2dea09[_0xf003('0x25')]('isOn',_0xf003('0x59'))['to'](_0x2a321b,_0xf003('0x14'),_0xf003('0x59')),_0x1855f1={'type':_0x2ca03e[_0xf003('0xc')],'model':_0x2dea09};}_0x3ad27f[_0xf003('0x5c')](_0x1855f1);}_0xc858a0(_0x2b21ef,_0x3ad27f);const _0x186e06=_0x58f334[_0xf003('0x8')](_0x1082fe=>null!=_0x1082fe[_0xf003('0x5b')])[_0xf003('0x62')](_0x4f3caa=>this[_0xf003('0xa')][_0xf003('0x18')]['get'](_0x4f3caa[_0xf003('0x5b')][_0xf003('0x2f')])),_0x5537d0=_0x2b21ef[_0xf003('0x61')];return _0x5537d0[_0xf003('0x68')]['unbind'](_0xf003('0x59')),_0x5537d0[_0xf003('0x4e')]['unbind'](_0xf003('0x59')),_0x5537d0[_0xf003('0x68')]['bind']('isEnabled')['to'](_0x30bd67,_0xf003('0x59')),_0x5537d0[_0xf003('0x4e')][_0xf003('0x25')](_0xf003('0x59'))[_0xf003('0x28')](_0x186e06,'isEnabled',(..._0x4fe616)=>_0x4fe616[_0xf003('0x53')](_0x47f296=>_0x47f296)),_0x2b21ef['on'](_0xf003('0x5a'),_0x18cc32=>{this[_0xf003('0xa')][_0xf003('0x5a')](_0x18cc32[_0xf003('0xe')][_0xf003('0x2f')]),this[_0xf003('0xa')]['editing'][_0xf003('0x21')]['focus']();}),_0x2b21ef;}[_0xf003('0x0')](_0x267a45){const _0x37c81d=this[_0xf003('0xa')],_0x4a574c=_0x37c81d[_0xf003('0x16')],_0x4b51a5=_0x37c81d['plugins']['get']('Annotations'),_0x12a437=_0x37c81d['plugins'][_0xf003('0x13')](_0xf003('0x1e')),_0x31792a=_0x37c81d[_0xf003('0x1d')]['get'](_0xf003('0x57')),_0x34a68a=_0x37c81d[_0xf003('0x1d')][_0xf003('0x13')](_0x5340d9)['me'],_0x1b86f9=_0x4a574c[_0xf003('0x13')](_0xf003('0x22'))[_0xf003('0x41')],{CommentsListView:_0x447433,CommentThreadInputView:_0x3cdbc2}=_0x37c81d['plugins'][_0xf003('0x13')](_0xf003('0x40'));let _0x2c79ac,_0x2a9029;this[_0xf003('0x2')]['has'](_0x267a45['id'])?(_0x2a9029=this[_0xf003('0x2')][_0xf003('0x13')](_0x267a45['id']),_0x2c79ac=_0x2a9029[_0xf003('0x35')]):(_0x2c79ac=new _0x1b86f9(_0x37c81d[_0xf003('0x4')],_0x267a45,_0x34a68a,{'disableComments':this['_disableComments'],'editorConfig':_0x4a574c[_0xf003('0x13')](_0xf003('0x4f')),'maxCommentsWhenCollapsed':_0x4a574c[_0xf003('0x13')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a574c['get'](_0xf003('0x49')),'maxCommentCharsWhenCollapsed':_0x4a574c[_0xf003('0x13')](_0xf003('0x33')),'formatDateTime':_0x3e3e63(_0x4a574c[_0xf003('0x13')](_0xf003('0x4'))),'CommentView':_0x4a574c['get'](_0xf003('0x30'))[_0xf003('0x4d')],'CommentsListView':_0x447433,'CommentThreadInputView':_0x3cdbc2}),_0x2c79ac[_0xf003('0x5d')]['on']('execute',()=>{_0x37c81d['editing']['view']['focus']();}),_0x2c79ac[_0xf003('0x3e')]['on'](_0xf003('0x5a'),()=>{_0x37c81d[_0xf003('0x15')][_0xf003('0x21')][_0xf003('0x6a')]();}),_0x2a9029=_0x4b51a5[_0xf003('0xf')](this[_0xf003('0xa')][_0xf003('0x4')],_0x2c79ac),_0x2a9029[_0xf003('0x25')](_0xf003('0x60'))['to'](_0x2c79ac,_0xf003('0x60')),_0x2a9029[_0xf003('0x25')]('length')['to'](_0x2c79ac),_0x2a9029[_0xf003('0x25')](_0xf003('0xc'))['to'](_0x2c79ac,_0xf003('0xc'),_0xf73d0d=>'suggestion-'+_0xf73d0d),this['_annotationViews'][_0xf003('0x1')](_0x267a45['id'],_0x2a9029));const _0x4b200c=_0x12a437[_0xf003('0x36')](_0x267a45['commentThread'],_0x2c79ac),_0x4e93bb=new _0x308075(_0x37c81d,_0x267a45,_0x2c79ac,_0x4b200c),_0x38b081=_0x267a45['getAllAdjacentSuggestions']()[_0xf003('0x8')](_0x346d30=>_0x346d30['isInContent']);_0x2c79ac[_0xf003('0x27')]=_0x37c81d[_0xf003('0x1d')]['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x38b081),this[_0xf003('0x58')][_0xf003('0x1')](_0x267a45,_0x4e93bb),this[_0xf003('0x42')][_0xf003('0x1')](_0x2c79ac,_0x4e93bb);const _0x491b61=_0x4b51a5[_0xf003('0x7')]({'view':_0x2a9029,'target':()=>{const _0x49f3cb=[],_0x44df93=_0x267a45['getAllAdjacentSuggestions']()[_0xf003('0x8')](_0x6a5da5=>_0x6a5da5[_0xf003('0x39')]);for(const _0x468166 of _0x44df93)_0x49f3cb[_0xf003('0x44')](..._0x468166[_0xf003('0x4c')]());return _0x8ab08f(_0x37c81d[_0xf003('0x15')],_0x49f3cb);},'type':()=>_0xf003('0x5e')+_0x4e93bb[_0xf003('0x21')]['type']});_0x4b51a5['add'](_0x491b61),_0x31792a[_0xf003('0x1f')](_0x491b61);}[_0xf003('0x11')](_0x57f73b){const _0x2aaac3=this[_0xf003('0xa')]['plugins'][_0xf003('0x13')](_0xf003('0x29')),_0x157791=this[_0xf003('0x58')]['get'](_0x57f73b),_0x22d919=_0x157791[_0xf003('0x21')],_0x5b6d40=_0x2aaac3[_0xf003('0x1a')](_0x22d919);_0x5b6d40&&_0x2aaac3[_0xf003('0x38')](_0x5b6d40),this[_0xf003('0x58')][_0xf003('0x2b')](_0x57f73b),this[_0xf003('0x42')]['delete'](_0x22d919),_0x157791[_0xf003('0x37')]();}[_0xf003('0x55')](_0x404f32){if(!_0x404f32['isInContent']||!this[_0xf003('0x58')]['has'](_0x404f32))return;const _0xa0c1a=this['editor']['plugins']['get'](_0xf003('0x5f')),_0x10a01=this['_suggestionToController']['get'](_0x404f32),_0x41609a=_0x404f32[_0xf003('0x1b')]();_0x10a01[_0xf003('0x21')][_0xf003('0x27')]=_0xa0c1a['_descriptionFactory'][_0xf003('0x46')](_0x41609a);}['destroy'](){for(const _0x1ae039 of this[_0xf003('0x58')][_0xf003('0x66')]())this[_0xf003('0x11')](_0x1ae039);for(const _0x21f0e0 of this[_0xf003('0x2')][_0xf003('0x3f')]())_0x21f0e0[_0xf003('0x35')][_0xf003('0x37')]();super[_0xf003('0x37')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd64a=['change:isDirty','getRanges','PendingActions','commentThreadController','listenTo','acceptSuggestion','canDiscard','isEnabled','plugins','commands','_editor','_pendingAction','execute','canEditAt','locale','stopListening','unbind','_discardCommand','get','discardSuggestion','model','canAccept','_acceptCommand','destroy','_removePendingAction','view','isDirty','_setPendingAction','bind'];(function(_0x32dbfc,_0xd64a73){const _0x42bb6c=function(_0x28b2aa){while(--_0x28b2aa){_0x32dbfc['push'](_0x32dbfc['shift']());}};_0x42bb6c(++_0xd64a73);}(_0xd64a,0x139));const _0x42bb=function(_0x32dbfc,_0xd64a73){_0x32dbfc=_0x32dbfc-0x0;let _0x42bb6c=_0xd64a[_0x32dbfc];return _0x42bb6c;};import{ObservableMixin as _0xd5b2f2}from'ckeditor5/src/utils';import{getTranslation as _0x54ad42}from'../utils/common-translations';export default class qt extends _0xd5b2f2(){constructor(_0x25a909,_0x4e6541,_0x47a74c,_0x3fc8fc){super(),this['model']=_0x4e6541,this['view']=_0x47a74c,this[_0x42bb('0x9')]=_0x3fc8fc,this[_0x42bb('0x10')]=_0x25a909,this[_0x42bb('0x1c')]=_0x25a909[_0x42bb('0xf')][_0x42bb('0x18')](_0x42bb('0xb')),this[_0x42bb('0x17')]=_0x25a909['commands'][_0x42bb('0x18')](_0x42bb('0x19')),this[_0x42bb('0x2')][_0x42bb('0x5')](_0x42bb('0xd'))['to'](this['_acceptCommand'],this[_0x42bb('0x17')],(_0x58dbe3,_0x5e285e)=>_0x58dbe3||_0x5e285e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],_0x42bb('0xd'),_0x19b6c5=>_0x19b6c5&&this[_0x42bb('0x10')][_0x42bb('0x1a')][_0x42bb('0x13')](_0x4e6541[_0x42bb('0x7')]())),this['view'][_0x42bb('0x5')](_0x42bb('0xc'))['to'](this[_0x42bb('0x17')],_0x42bb('0xd'),_0x5983a6=>_0x5983a6&&this[_0x42bb('0x10')][_0x42bb('0x1a')]['canEditAt'](_0x4e6541[_0x42bb('0x7')]())),this[_0x42bb('0x11')]=null,_0x47a74c[_0x42bb('0x3')]&&this[_0x42bb('0x4')](),this[_0x42bb('0xa')](_0x47a74c,_0x42bb('0xb'),()=>this[_0x42bb('0xb')]()),this[_0x42bb('0xa')](_0x47a74c,'discardSuggestion',()=>this[_0x42bb('0x19')]()),this[_0x42bb('0xa')](_0x47a74c,_0x42bb('0x6'),()=>{_0x47a74c[_0x42bb('0x3')]?this[_0x42bb('0x4')]():this[_0x42bb('0x1')]();});}[_0x42bb('0xb')](){this[_0x42bb('0x1c')][_0x42bb('0x12')](this[_0x42bb('0x1a')]['id']);}[_0x42bb('0x19')](){this['_discardCommand'][_0x42bb('0x12')](this[_0x42bb('0x1a')]['id']);}[_0x42bb('0x0')](){this[_0x42bb('0x2')][_0x42bb('0x16')]('isEnabled'),this[_0x42bb('0x2')][_0x42bb('0x16')](_0x42bb('0x1b')),this[_0x42bb('0x2')]['unbind']('canDiscard'),this[_0x42bb('0x15')](),this[_0x42bb('0x9')][_0x42bb('0x0')](),this[_0x42bb('0x11')]&&this['_removePendingAction']();}[_0x42bb('0x4')](){const _0x5a5004=_0x54ad42(this['_editor'][_0x42bb('0x14')],'PENDING_ACTION_SUGGESTION');this[_0x42bb('0x11')]=this[_0x42bb('0x10')][_0x42bb('0xe')][_0x42bb('0x18')](_0x42bb('0x8'))['add'](_0x5a5004);}[_0x42bb('0x1')](){null!==this[_0x42bb('0x11')]&&this['_editor'][_0x42bb('0xe')][_0x42bb('0x18')](_0x42bb('0x8'))['remove'](this['_pendingAction']),this[_0x42bb('0x11')]=null;}}
23
+ const _0x1b9c=['stopListening','bind','_setPendingAction','discardSuggestion','commands','model','canDiscard','acceptSuggestion','plugins','canEditAt','PendingActions','isEnabled','_acceptCommand','change:isDirty','get','commentThreadController','_removePendingAction','locale','execute','_pendingAction','getRanges','add','canAccept','destroy','listenTo','_discardCommand','unbind','view','_editor'];(function(_0x37002e,_0x1b9c25){const _0x45d74d=function(_0x57d683){while(--_0x57d683){_0x37002e['push'](_0x37002e['shift']());}};_0x45d74d(++_0x1b9c25);}(_0x1b9c,0x72));const _0x45d7=function(_0x37002e,_0x1b9c25){_0x37002e=_0x37002e-0x0;let _0x45d74d=_0x1b9c[_0x37002e];return _0x45d74d;};import{ObservableMixin as _0x4f14fb}from'ckeditor5/src/utils';import{getTranslation as _0x39ef9e}from'../utils/common-translations';export default class qt extends _0x4f14fb(){constructor(_0x231045,_0x19a848,_0x14d524,_0x3d5f40){super(),this['model']=_0x19a848,this['view']=_0x14d524,this[_0x45d7('0x11')]=_0x3d5f40,this['_editor']=_0x231045,this[_0x45d7('0xe')]=_0x231045['commands'][_0x45d7('0x10')]('acceptSuggestion'),this[_0x45d7('0x1b')]=_0x231045[_0x45d7('0x6')]['get'](_0x45d7('0x5')),this['view'][_0x45d7('0x3')](_0x45d7('0xd'))['to'](this['_acceptCommand'],this[_0x45d7('0x1b')],(_0x168da8,_0x527a8e)=>_0x168da8||_0x527a8e),this['view'][_0x45d7('0x3')](_0x45d7('0x18'))['to'](this[_0x45d7('0xe')],'isEnabled',_0x265eb7=>_0x265eb7&&this[_0x45d7('0x1')][_0x45d7('0x7')][_0x45d7('0xb')](_0x19a848['getRanges']())),this[_0x45d7('0x0')][_0x45d7('0x3')]('canDiscard')['to'](this[_0x45d7('0x1b')],_0x45d7('0xd'),_0x1afbcf=>_0x1afbcf&&this['_editor'][_0x45d7('0x7')]['canEditAt'](_0x19a848[_0x45d7('0x16')]())),this[_0x45d7('0x15')]=null,_0x14d524['isDirty']&&this['_setPendingAction'](),this[_0x45d7('0x1a')](_0x14d524,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x14d524,_0x45d7('0x5'),()=>this[_0x45d7('0x5')]()),this[_0x45d7('0x1a')](_0x14d524,_0x45d7('0xf'),()=>{_0x14d524['isDirty']?this[_0x45d7('0x4')]():this[_0x45d7('0x12')]();});}[_0x45d7('0x9')](){this[_0x45d7('0xe')]['execute'](this['model']['id']);}['discardSuggestion'](){this[_0x45d7('0x1b')][_0x45d7('0x14')](this[_0x45d7('0x7')]['id']);}[_0x45d7('0x19')](){this[_0x45d7('0x0')][_0x45d7('0x1c')](_0x45d7('0xd')),this[_0x45d7('0x0')][_0x45d7('0x1c')](_0x45d7('0x18')),this['view'][_0x45d7('0x1c')](_0x45d7('0x8')),this[_0x45d7('0x2')](),this['commentThreadController'][_0x45d7('0x19')](),this['_pendingAction']&&this[_0x45d7('0x12')]();}[_0x45d7('0x4')](){const _0x4a41c0=_0x39ef9e(this['_editor'][_0x45d7('0x13')],'PENDING_ACTION_SUGGESTION');this[_0x45d7('0x15')]=this[_0x45d7('0x1')]['plugins'][_0x45d7('0x10')](_0x45d7('0xc'))[_0x45d7('0x17')](_0x4a41c0);}[_0x45d7('0x12')](){null!==this[_0x45d7('0x15')]&&this[_0x45d7('0x1')][_0x45d7('0xa')][_0x45d7('0x10')](_0x45d7('0xc'))['remove'](this['_pendingAction']),this[_0x45d7('0x15')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6f2a=['hasDirtyComment','focus','submit','_localUser','commentsListView','length','_model','isReadOnly','destroy','CommentView','canDiscard','editorConfig','_config','descriptionParts','isActive','delegate','set','commentThreadInputView','authoredAt','element','commentThread','locale','isEnabled','editor','_createCommentThreadInputView','cancel','removeComment','_createCommentViews','setData','assign','bind','isDirty'];(function(_0x4e2371,_0x6f2ac5){const _0x34e97c=function(_0x23d892){while(--_0x23d892){_0x4e2371['push'](_0x4e2371['shift']());}};_0x34e97c(++_0x6f2ac5);}(_0x6f2a,0x1ac));const _0x34e9=function(_0x4e2371,_0x6f2ac5){_0x4e2371=_0x4e2371-0x0;let _0x34e97c=_0x6f2a[_0x4e2371];return _0x34e97c;};import{View as _0x19e428}from'ckeditor5/src/ui';export default class ii extends _0x19e428{constructor(_0xa1d14e,_0x3c579d,_0x12b423,_0x5e785a){super(_0xa1d14e),this[_0x34e9('0x18')]=null,this[_0x34e9('0x5')]=null,this['set']('isActive',!0x1),this[_0x34e9('0x4')](_0x34e9('0x6'),_0x3c579d[_0x34e9('0x6')]),this['bind'](_0x34e9('0x6'))['to'](_0x3c579d),this[_0x34e9('0x4')](_0x34e9('0x1'),[]),this[_0x34e9('0x4')](_0x34e9('0x13'),!0x1),this[_0x34e9('0x4')](_0x34e9('0xa'),!0x1),this[_0x34e9('0x4')]('canAccept',!0x1),this[_0x34e9('0x4')](_0x34e9('0x1e'),!0x1),this[_0x34e9('0x1a')]=_0x3c579d,this['_localUser']=_0x12b423,this[_0x34e9('0x0')]=_0x5e785a,_0x5e785a['disableComments']?this['set'](_0x34e9('0x19'),0x1):this[_0x34e9('0xf')]();}[_0x34e9('0x15')](){this[_0x34e9('0x7')]['focus']();}[_0x34e9('0x1c')](){this['commentsListView']&&this[_0x34e9('0x18')][_0x34e9('0x1c')](),this[_0x34e9('0x5')]&&this[_0x34e9('0x5')][_0x34e9('0x1c')](),super[_0x34e9('0x1c')]();}['_createCommentViews'](){const {CommentsListView:_0x1f80ea}=this[_0x34e9('0x0')];this['commentsListView']=new _0x1f80ea(this[_0x34e9('0x9')],this[_0x34e9('0x1a')][_0x34e9('0x8')],Object[_0x34e9('0x11')]({'CommentView':this[_0x34e9('0x0')][_0x34e9('0x1d')]},this[_0x34e9('0x0')])),this['commentsListView'][_0x34e9('0x3')](_0x34e9('0xe'))['to'](this),this[_0x34e9('0x18')]['delegate']('updateComment')['to'](this),this[_0x34e9('0x18')][_0x34e9('0x12')]('isActive')['to'](this),this['set'](_0x34e9('0x19'),this[_0x34e9('0x18')][_0x34e9('0x19')]+0x1),this['bind'](_0x34e9('0x19'))['to'](this[_0x34e9('0x18')],'length',_0x3965ac=>_0x3965ac+0x1),this[_0x34e9('0x5')]=this[_0x34e9('0xc')](),this['on'](_0x34e9('0xe'),()=>this['focus']()),this[_0x34e9('0x12')]('isDirty')['to'](this[_0x34e9('0x18')],_0x34e9('0x14'),this[_0x34e9('0x5')]['commentInputView'],'value',(_0x2cedea,_0x3cc5ba)=>_0x2cedea||!!_0x3cc5ba);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xeb3eea}=this[_0x34e9('0x0')],_0x20cdba=new _0xeb3eea(this[_0x34e9('0x9')],this[_0x34e9('0x17')],this['_config'][_0x34e9('0x1f')]),_0x2584b8=_0x20cdba['commentInputView'];return _0x20cdba[_0x34e9('0x12')]('showInput')['to'](this,_0x34e9('0x2'),this['_model'][_0x34e9('0x8')],_0x34e9('0x1b'),_0x2584b8,'value',(_0x5dea38,_0x5b3eb3,_0x141cae)=>!!_0x141cae||_0x5dea38&&!_0x5b3eb3),_0x2584b8['on'](_0x34e9('0x16'),(_0x5265a6,_0x72d918)=>{this['fire']('addComment',_0x72d918),_0x2584b8[_0x34e9('0xb')][_0x34e9('0x10')]('');}),_0x2584b8['on'](_0x34e9('0xd'),()=>this['focus']()),_0x2584b8[_0x34e9('0x12')]('disabledSubmit')['to'](this['_model']['commentThread'],_0x34e9('0x1b')),_0x20cdba;}}
23
+ const _0xf215=['updateComment','isEnabled','_createCommentViews','_localUser','isReadOnly','authoredAt','commentThread','length','addComment','delegate','commentThreadInputView','bind','focus','editorConfig','removeComment','canDiscard','destroy','locale','fire','hasDirtyComment','isActive','commentInputView','_model','_config','_createCommentThreadInputView','submit','isDirty','cancel','showInput','disabledSubmit','set','disableComments','setData','value','assign','commentsListView'];(function(_0x975a75,_0xf215c8){const _0x5f2372=function(_0x58e6eb){while(--_0x58e6eb){_0x975a75['push'](_0x975a75['shift']());}};_0x5f2372(++_0xf215c8);}(_0xf215,0x8b));const _0x5f23=function(_0x975a75,_0xf215c8){_0x975a75=_0x975a75-0x0;let _0x5f2372=_0xf215[_0x975a75];return _0x5f2372;};import{View as _0x479e58}from'ckeditor5/src/ui';export default class ii extends _0x479e58{constructor(_0x12c017,_0x97ba1b,_0x531a6c,_0x5901f7){super(_0x12c017),this[_0x5f23('0x4')]=null,this[_0x5f23('0xf')]=null,this[_0x5f23('0x23')](_0x5f23('0x19'),!0x1),this[_0x5f23('0x23')](_0x5f23('0xa'),_0x97ba1b[_0x5f23('0xa')]),this['bind'](_0x5f23('0xa'))['to'](_0x97ba1b),this[_0x5f23('0x23')]('descriptionParts',[]),this[_0x5f23('0x23')](_0x5f23('0x1f'),!0x1),this[_0x5f23('0x23')](_0x5f23('0x6'),!0x1),this[_0x5f23('0x23')]('canAccept',!0x1),this[_0x5f23('0x23')](_0x5f23('0x14'),!0x1),this[_0x5f23('0x1b')]=_0x97ba1b,this[_0x5f23('0x8')]=_0x531a6c,this[_0x5f23('0x1c')]=_0x5901f7,_0x5901f7[_0x5f23('0x0')]?this['set'](_0x5f23('0xc'),0x1):this[_0x5f23('0x7')]();}[_0x5f23('0x11')](){this['element'][_0x5f23('0x11')]();}[_0x5f23('0x15')](){this[_0x5f23('0x4')]&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this[_0x5f23('0xf')][_0x5f23('0x15')](),super[_0x5f23('0x15')]();}[_0x5f23('0x7')](){const {CommentsListView:_0x19b7a3}=this[_0x5f23('0x1c')];this[_0x5f23('0x4')]=new _0x19b7a3(this['locale'],this[_0x5f23('0x1b')][_0x5f23('0xb')],Object[_0x5f23('0x3')]({'CommentView':this[_0x5f23('0x1c')]['CommentView']},this[_0x5f23('0x1c')])),this[_0x5f23('0x4')][_0x5f23('0xe')](_0x5f23('0x13'))['to'](this),this[_0x5f23('0x4')][_0x5f23('0xe')](_0x5f23('0x5'))['to'](this),this[_0x5f23('0x4')]['bind'](_0x5f23('0x19'))['to'](this),this[_0x5f23('0x23')](_0x5f23('0xc'),this[_0x5f23('0x4')]['length']+0x1),this[_0x5f23('0x10')]('length')['to'](this[_0x5f23('0x4')],'length',_0x4d37ce=>_0x4d37ce+0x1),this[_0x5f23('0xf')]=this[_0x5f23('0x1d')](),this['on'](_0x5f23('0x13'),()=>this[_0x5f23('0x11')]()),this[_0x5f23('0x10')](_0x5f23('0x1f'))['to'](this[_0x5f23('0x4')],_0x5f23('0x18'),this['commentThreadInputView']['commentInputView'],'value',(_0x2be84f,_0x2fcd29)=>_0x2be84f||!!_0x2fcd29);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4a1100}=this['_config'],_0x3bce4b=new _0x4a1100(this[_0x5f23('0x16')],this[_0x5f23('0x8')],this['_config'][_0x5f23('0x12')]),_0x57e508=_0x3bce4b[_0x5f23('0x1a')];return _0x3bce4b[_0x5f23('0x10')](_0x5f23('0x21'))['to'](this,_0x5f23('0x19'),this['_model'][_0x5f23('0xb')],_0x5f23('0x9'),_0x57e508,_0x5f23('0x2'),(_0x5f2b68,_0x4149e3,_0xced5b1)=>!!_0xced5b1||_0x5f2b68&&!_0x4149e3),_0x57e508['on'](_0x5f23('0x1e'),(_0x591840,_0x477aec)=>{this[_0x5f23('0x17')](_0x5f23('0xd'),_0x477aec),_0x57e508['editor'][_0x5f23('0x1')]('');}),_0x57e508['on'](_0x5f23('0x20'),()=>this['focus']()),_0x57e508[_0x5f23('0x10')](_0x5f23('0x22'))['to'](this[_0x5f23('0x1b')][_0x5f23('0xb')],_0x5f23('0x9')),_0x3bce4b;}}