@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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 (65) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b68=['_findSuggestions','model','_breakSuggestionMarker','formatBlock:','clear','isObject','_isDataLoaded','track-changes-suggestion-data-mismatch','enableReadOnlyMode','isUndo','_suggestionFactory','delete','define','then','formatInline:chain','pluginName','nodeBefore','data-suggestion','accepted','_registerDefaultCallbacks','formatInline:accept','change','_joinSuggestions','skipNestingCheck','deletion:','isNextTo','formatBlock','track-changes-suggestion-not-found','attributes','_setSuggestionData','howMany','createPositionAt','track-changes-adapter-already-set','enqueueChange','includes','mapper','_getSuggestionData','item','track-changes-adapter-missing-getsuggestion','some','_isForcedDefaultExecutionBlock','head','getIntersection','low','widget','markerName','insertion:','addCommentThread','newRange','position','track-changes-command-not-found','detach','setSelection','previous','from','isEqual','forceDefaultExecution','_getExternalAuthor','values','addClass','lowest','schema','change:activeMarkers','commentThread','_getAuthorFromId','set','isMultiRange','adapter','markInsertion','splice','never','commands','add','trackChanges.trackFormatChanges','_removeSuggestion','_splitMarkerName','getRanges','createdAt','getShiftedBy','unbind','change:_saved','end','assign','locale','authoredAt','trackChangesCommand','consume','_model','getLastMatchingPosition','sort','addHighlight','remove','originalSuggestionId','accept','track-changes-user-not-found','isAtEnd','rootName','getSuggestions','upcast','_defaultCallbacks','formatBlock:accept','get','Users','notReady','consumable','oldRange','insert','selection','discardSuggestion','CommentsRepository','map','isInContent','updateMarker','toJSON','getFirstRange','split','backward','acceptAllSuggestions','isAfter','filter','ck-suggestion-marker','document','formatGroupId','isIntersectingWithRange','high','keys','markMultiRangeDeletion','type','containsRangeInObject','getAllAdjacentSuggestions','getFirstMarker','dataDowncast','PendingActions','refresh','_handleNewSuggestionMarker','getSuggestion','markerToData','always','editingDowncast','author','fire','formatInline:join','applyOperation','elementStart','removeMarker','buildSuggestion','next','addSuggestion','removeClass','formatInline:','markBlockFormat','marker-count','getMultiRangeId','range','markDeletion','@external','options','addRange','isRemovable','showSuggestionHighlights','getItems','every','markMultiRangeInsertion','registerPostFixer','moveTargetPosition','_cutOutSuggestionMarker','_updateSuggestionData','multi','addComment','insertion:join','_refreshSuggestionsChain','getSuggestionCallback','stopListening','suggestion','_rangeIsInLocalUserInsertion','ready','_commentsRepository','activeMarkers','fromRange','markers','error-saving-suggestion-data-suggestion-discarded','updateSuggestion','hasCommentThread','move','plugins','stop','editing','value','discardAllSuggestions','_onDiscard','PENDING_ACTION_SUGGESTION','ck-suggestion-marker-','deleteContent','editor','name','for','update:suggestion','elementEnd','batch','addMarker:suggestion:formatBlock','differ','parent','suggestionLoaded','isSelectable','length','deletion:join','formatBlock:discard','execute','conversion','size','getMarkers','_trackFormatChanges','getNearestSelectionRange','hasSuggestion','start','push','addMarkerName','$graveyard','getRange','_createSuggestion','addSuggestionData','containsRange','removeMarkers','acceptSuggestion','_addThreadToSuggestion','getAncestors','open','dataReady','bindElementToMarker','unbindElementFromMarkerName','isArray','markerReady','_enabledCommands','rethrowUnexpectedError','suggestionChanged','isOwn','createSelection','discardSelectedSuggestions','deletion:chain','root','_mergeNestedSuggestions','markMultiRangeBlockFormat','deletion:discard','$textProxy','_setSuggestionRange','deletion','targetPosition','nodeAfter','insertion','formatBlock:join','discard','deletion:accept','_customCallbacks','containsPosition','trackChanges','registerCustomCallback','formatBlock:chain','acceptSelectedSuggestions','init','after','creator','listenTo','commandName','data','chain','isAtStart','createRange','_saved','join','addMarker','element','getDifference','multipleBlocks','forward','resolve','isBlock','_checkSuggestionCorrectness','suggestion-type','createPositionAfter','getUser','config','normal','isLocal','_suggestions','removed','addUser','subType','has','_joinWithAdjacentSuggestions','requires','suggestionUnloaded','return','$marker','authorName','_adapter','isBefore','containsItem','_suggestionState','enableCommand','_descriptionFactory','getChangedMarkers','suggestion:','_editor','_addSuggestionMarker','toViewElement','insertion:accept','splitPosition','markerToHighlight','isInsideObject','containerElement','hasComments','ck-suggestion-marker--active','formatInline','isLimit','getAttribute','writer','trackChanges.mergeNestedSuggestions','getCustomProperty','dataToMarker','isCollapsed'];(function(_0x707890,_0x2b6866){const _0x2fb831=function(_0x18d30e){while(--_0x18d30e){_0x707890['push'](_0x707890['shift']());}};_0x2fb831(++_0x2b6866);}(_0x2b68,0x81));const _0x2fb8=function(_0x707890,_0x2b6866){_0x707890=_0x707890-0x0;let _0x2fb831=_0x2b68[_0x707890];return _0x2fb831;};import{Plugin as _0x5db707,PendingActions as _0x205368}from'ckeditor5/src/core';import{LiveRange as _0x2c2325}from'ckeditor5/src/engine';import{CKEditorError as _0x2b2803,uid as _0x467fad,priorities as _0x1e2e74,logWarning as _0x455535}from'ckeditor5/src/utils';import{toWidget as _0x1c9970}from'ckeditor5/src/widget';import{Users as _0x1c2994,hashObject as _0x478717}from'ckeditor5-collaboration/src/collaboration-core';import _0x52f1a2 from'./commands/trackchangescommand';import _0x19ecd5 from'./commands/acceptsuggestioncommand';import _0x477bf4 from'./commands/discardsuggestioncommand';import _0x44d6d6 from'./commands/executeonallsuggestionscommand';import _0x55566f from'./commands/executeonselectedsuggestionscommand';import _0x12cab9 from'./suggestion';import _0x4a9c38 from'./suggestiondescriptionfactory';import _0x564eee from'./integrations/aiassistant';import _0x45a7cb from'./integrations/alignment';import _0x59b006 from'./integrations/basicstyles';import _0x196cd8 from'./integrations/blockquote';import _0x252dcd from'./integrations/ckbox';import _0x44d473 from'./integrations/codeblock';import _0x4cf122 from'./integrations/comments';import _0x233aaf from'./integrations/deletecommand';import _0x1dbea1 from'./integrations/documentlist';import _0x2dbc99 from'./integrations/entercommand';import _0x30331e from'./integrations/findandreplace';import _0x4d9f9b from'./integrations/font';import _0x573496 from'./integrations/formatpainter';import _0x4de367 from'./integrations/heading';import _0x39a35e from'./integrations/highlight';import _0x3df186 from'./integrations/horizontalline';import _0x3cc120 from'./integrations/htmlembed';import _0x36eb99 from'./integrations/image';import _0x540d76 from'./integrations/imagereplace';import _0x116d5a from'./integrations/importword';import _0x2c3289 from'./integrations/indent';import _0x38d466 from'./integrations/inputcommand';import _0x1de771 from'./integrations/link';import _0xc9543c from'./integrations/list';import _0x593b8f from'./integrations/listproperties';import _0x580e99 from'./integrations/mediaembed';import _0x3283ab from'./integrations/mention';import _0x2c0b54 from'./integrations/pagebreak';import _0x43612d from'./integrations/paragraph';import _0xef5131 from'./integrations/removeformat';import _0x2c3d49 from'./integrations/restrictededitingmode';import _0x5e9e1d from'./integrations/shiftentercommand';import _0x3fb0cb from'./integrations/standardeditingmode';import _0x1f2ac2 from'./integrations/style';import _0x1ad181 from'./integrations/table';import _0x1489e2 from'./integrations/tablemergesplit';import _0x103b0c from'./integrations/tableheadings';import _0x341fe1 from'./integrations/tableclipboard';import _0x231544 from'./integrations/tablecolumnresize';import _0x4594aa from'./integrations/template';import _0x2523d3 from'./integrations/tableofcontents';import _0x39c731 from'./integrations/title';import _0x1d288c from'./integrations/undo';import{getTranslation as _0x2692c5}from'./utils/common-translations';import _0x159920 from'./integrations/tablecaption';import _0x4f7ed9 from'./integrations/documentlistproperties';import _0x392211 from'./integrations/tableproperties';import{isEqual as _0x460cd2}from'lodash-es';export default class p extends _0x5db707{static get[_0x2fb8('0xa0')](){return[_0x2fb8('0x12c'),_0x1c2994,_0x205368,_0x564eee,_0x45a7cb,_0x59b006,_0x196cd8,_0x252dcd,_0x44d473,_0x4cf122,_0x233aaf,_0x1dbea1,_0x4f7ed9,_0x2dbc99,_0x30331e,_0x4d9f9b,_0x573496,_0x4de367,_0x39a35e,_0x3df186,_0x3cc120,_0x36eb99,_0x540d76,_0x116d5a,_0x2c3289,_0x38d466,_0x1de771,_0xc9543c,_0x593b8f,_0x580e99,_0x3283ab,_0x2c0b54,_0x43612d,_0xef5131,_0x2c3d49,_0x5e9e1d,_0x3fb0cb,_0x1f2ac2,_0x1ad181,_0x1489e2,_0x103b0c,_0x159920,_0x341fe1,_0x231544,_0x2523d3,_0x392211,_0x4594aa,_0x39c731,_0x1d288c];}static get[_0x2fb8('0xce')](){return'TrackChangesEditing';}constructor(_0x7db9b){function _0x517efa(_0x230ee7){return _0x230ee7[_0x2fb8('0x12d')](_0x353e12=>String['fromCharCode'](_0x353e12))[_0x2fb8('0x8b')]('');}super(_0x7db9b),this[_0x2fb8('0x100')](_0x2fb8('0x30'),[]),this['on'](_0x2fb8('0xfd'),(_0x3ee23a,_0x575593,_0xdef56a,_0x2853e3)=>{this[_0x2fb8('0x116')][_0x2fb8('0xd4')](()=>{for(const _0x3be2ba of[..._0x2853e3,..._0xdef56a])this[_0x2fb8('0x116')][_0x2fb8('0x32')][_0x2fb8('0x9e')](_0x3be2ba)&&_0x7db9b[_0x2fb8('0x39')]['reconvertMarker'](_0x3be2ba);});}),this[_0x2fb8('0xaa')]=new _0x4a9c38(this[_0x2fb8('0x40')][_0x2fb8('0xc0')][_0x2fb8('0xfc')],this['editor'][_0x2fb8('0x112')]),this[_0x2fb8('0xa5')]=null,this[_0x2fb8('0xc9')]=new Bt(this[_0x2fb8('0x40')]),this[_0x2fb8('0x9a')]=new Map(),this[_0x2fb8('0x2f')]=_0x7db9b[_0x2fb8('0x37')]['get'](_0x2fb8('0x12c')),this[_0x2fb8('0x67')]=new Set(),this[_0x2fb8('0x116')]=this[_0x2fb8('0x40')]['model'],this[_0x2fb8('0xa8')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x7db9b['config']['define']('trackChanges.trackFormatChanges','default'),this[_0x2fb8('0x52')]=_0x7db9b['config'][_0x2fb8('0x124')](_0x2fb8('0x108')),_0x7db9b[_0x2fb8('0x97')][_0x2fb8('0xcb')](_0x2fb8('0xbb'),!0x0),this[_0x2fb8('0x6f')]=_0x7db9b[_0x2fb8('0x97')][_0x2fb8('0x124')]('trackChanges.mergeNestedSuggestions'),this[_0x2fb8('0x114')]=new _0x52f1a2(_0x7db9b,this[_0x2fb8('0x67')]),this[_0x517efa([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x517efa([0x34,0x30,0x34,0x36,0x32,0x30,0x35,0x38]);}[_0x2fb8('0x81')](){const _0x3ab527=this[_0x2fb8('0x40')];_0x3ab527[_0x2fb8('0x4f')][_0x2fb8('0x42')](_0x2fb8('0x9'))['markerToHighlight']({'model':'suggestion','view':_0x35d6f8=>{const {id:_0x3615bf,type:_0x5a23e7}=this[_0x2fb8('0x10a')](_0x35d6f8[_0x2fb8('0xec')]),_0x324b3b=[_0x2fb8('0x137'),_0x2fb8('0x3e')+_0x5a23e7];let _0x12b4ef=0xbb8;return this[_0x2fb8('0x30')]['includes'](_0x35d6f8[_0x2fb8('0xec')])&&(_0x324b3b['push'](_0x2fb8('0xb6')),_0x12b4ef=0xbc2),_0x2fb8('0x74')==_0x5a23e7&&(_0x12b4ef+=0x5),{'classes':_0x324b3b,'attributes':{'data-suggestion':_0x3615bf},'priority':_0x12b4ef};}}),_0x3ab527['conversion'][_0x2fb8('0x42')](_0x2fb8('0x2'))[_0x2fb8('0x107')](_0x3b7596=>{_0x3b7596['on']('addMarker:suggestion',(_0x2a9e9d,_0x3da16d,_0xed137e)=>{if(!_0xed137e[_0x2fb8('0x1b')]['showSuggestionHighlights'])return;const _0x30c930=_0x3da16d[_0x2fb8('0xe4')];if(!_0x30c930)return;const _0x3ded1e=_0xed137e['mapper'][_0x2fb8('0xaf')](_0x30c930);_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xfc')][_0x2fb8('0xc4')](_0x30c930)&&_0x3ded1e&&!_0x3ded1e[_0x2fb8('0xbc')](_0x2fb8('0xeb'))&&_0x3ded1e['is'](_0x2fb8('0xb4'))&&_0x1c9970(_0x3ded1e,_0xed137e[_0x2fb8('0xba')]);},{'priority':_0x2fb8('0x13b')});}),_0x3ab527[_0x2fb8('0x4f')]['for'](_0x2fb8('0x2'))[_0x2fb8('0xb2')]({'model':_0x2fb8('0x2c'),'view':(_0x4490fc,_0x29b113)=>{if(!_0x29b113['options'][_0x2fb8('0x1e')])return null;const {type:_0x5047b2}=this[_0x2fb8('0x10a')](_0x4490fc[_0x2fb8('0xec')]);return{'classes':[_0x2fb8('0x137'),'ck-suggestion-marker-'+_0x5047b2],'priority':0xbb8};}});const _0x458013=({showActiveMarkers:_0x299cdf=!0x0}={})=>(_0x2b4b60,_0x17de96,_0x411e9a)=>{if(!_0x17de96['item'])return;if(_0x17de96[_0x2fb8('0xe4')]['is'](_0x2fb8('0x12a')))return void _0x411e9a[_0x2fb8('0x127')]['consume'](_0x17de96[_0x2fb8('0xe4')],_0x2b4b60[_0x2fb8('0x41')]);const _0x1049a3=_0x411e9a[_0x2fb8('0xe2')]['toViewElement'](_0x17de96[_0x2fb8('0xe4')]);if(!(_0x17de96[_0x2fb8('0xe4')]['is'](_0x2fb8('0x8d'))&&_0x3ab527[_0x2fb8('0xc0')]['schema'][_0x2fb8('0x92')](_0x17de96['item'])&&!_0x1049a3[_0x2fb8('0xbc')](_0x2fb8('0x119'))))return;const {id:_0x36d373}=this[_0x2fb8('0x10a')](_0x17de96['markerName']);_0x411e9a['writer'][_0x2fb8('0xfa')]([_0x2fb8('0x137'),'ck-suggestion-marker-formatBlock'],_0x1049a3),_0x411e9a[_0x2fb8('0xba')]['setAttribute']('data-suggestion',_0x36d373,_0x1049a3),_0x411e9a['mapper'][_0x2fb8('0x63')](_0x1049a3,_0x17de96[_0x2fb8('0xec')]),_0x299cdf&&(this[_0x2fb8('0x30')]['includes'](_0x17de96['markerName'])?_0x411e9a[_0x2fb8('0xba')]['addClass']('ck-suggestion-marker--active',_0x1049a3):_0x411e9a[_0x2fb8('0xba')][_0x2fb8('0x13')]('ck-suggestion-marker--active',_0x1049a3));for(const _0xaa2eb3 of _0x3ab527[_0x2fb8('0xc0')]['createRangeIn'](_0x17de96[_0x2fb8('0xe4')])[_0x2fb8('0x1f')]())_0x411e9a[_0x2fb8('0x127')][_0x2fb8('0x115')](_0xaa2eb3,_0x2b4b60['name']);_0x411e9a[_0x2fb8('0x127')]['consume'](_0x17de96[_0x2fb8('0xe4')],_0x2b4b60[_0x2fb8('0x41')]);};_0x3ab527[_0x2fb8('0x4f')][_0x2fb8('0x42')](_0x2fb8('0x2'))[_0x2fb8('0x107')](_0x1195d0=>{_0x1195d0['on'](_0x2fb8('0x46'),(_0x2adbd8,_0x296ea1,_0x5f0147)=>{_0x5f0147[_0x2fb8('0x1b')][_0x2fb8('0x1e')]&&_0x458013({'showActiveMarkers':!0x1})(_0x2adbd8,_0x296ea1,_0x5f0147);},{'priority':'highest'});}),_0x3ab527['conversion'][_0x2fb8('0x42')]('dataDowncast')[_0x2fb8('0x7')]({'model':_0x2fb8('0x2c'),'view':(_0x57503a,_0x4aa52e)=>_0x4aa52e[_0x2fb8('0x1b')][_0x2fb8('0x1e')]?null:{'group':_0x2fb8('0x2c'),'name':_0x57503a['substr'](0xb)}}),_0x3ab527[_0x2fb8('0x4f')][_0x2fb8('0x42')](_0x2fb8('0x121'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3654d9,{writer:_0x1f94b2})=>{let _0xf88209=_0x2fb8('0xac')+_0x3654d9[_0x2fb8('0xb9')](_0x2fb8('0x94'))+':'+_0x3654d9[_0x2fb8('0xb9')]('id');return _0x3654d9[_0x2fb8('0xb9')]('marker-count')&&(_0xf88209+=':'+_0x3654d9[_0x2fb8('0xb9')](_0x2fb8('0x16'))),_0x1f94b2['createElement'](_0x2fb8('0xa3'),{'data-name':_0xf88209});}}),_0x3ab527[_0x2fb8('0x4f')]['for'](_0x2fb8('0x121'))[_0x2fb8('0xbd')]({'view':_0x2fb8('0x2c')}),_0x3ab527['conversion'][_0x2fb8('0x42')]('editingDowncast')[_0x2fb8('0x107')](_0x47f799=>{_0x47f799['on'](_0x2fb8('0x46'),_0x458013(),{'priority':_0x2fb8('0x13b')});}),_0x3ab527[_0x2fb8('0x4f')]['for']('editingDowncast')[_0x2fb8('0x107')](_0x352021=>{_0x352021['on']('removeMarker:suggestion:formatBlock',(_0x968e58,_0xb03773,_0xef68c7)=>{const _0x5e0c35=_0xef68c7[_0x2fb8('0xe2')]['markerNameToElements'](_0xb03773[_0x2fb8('0xec')]);if(_0x5e0c35)for(const _0x4ea67d of _0x5e0c35)_0x4ea67d[_0x2fb8('0xbc')]('addHighlight')||(_0xef68c7[_0x2fb8('0xba')]['removeClass']([_0x2fb8('0x137'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4ea67d),_0xef68c7[_0x2fb8('0xba')]['removeAttribute'](_0x2fb8('0xd0'),_0x4ea67d),_0xef68c7[_0x2fb8('0xe2')][_0x2fb8('0x64')](_0x4ea67d,_0xb03773['markerName']));},{'priority':_0x2fb8('0x13b')});}),_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x138')]['registerPostFixer'](_0x54ff0e=>{let _0x5670ff=!0x1;const _0x36e508=Array['from'](_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x138')][_0x2fb8('0x47')]['getChangedMarkers']()),_0x46f33b=new Set();for(const {name:_0x298b69,data:_0x256e65}of _0x36e508){const {group:_0x5c96b8,type:_0x2ab7ab,id:_0x13261a}=this['_splitMarkerName'](_0x298b69);if('suggestion'!==_0x5c96b8)continue;const _0x408694=this['_suggestions'][_0x2fb8('0x124')](_0x13261a);if(null!=_0x256e65['newRange']){_0x2fb8('0xb7')==_0x2ab7ab&&(_0x5670ff=_0x5670ff||$t(_0x256e65['newRange'],_0x298b69,_0x54ff0e,_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xfc')]));if(_0x256e65[_0x2fb8('0xef')][_0x2fb8('0xbe')]||_0x2fb8('0x58')==_0x256e65[_0x2fb8('0xef')][_0x2fb8('0x6e')][_0x2fb8('0x11f')]||_0x2fb8('0xd9')==_0x2ab7ab&&!Rt(_0x256e65['newRange'])||'deletion'==_0x2ab7ab&&!(!Mt(_0x36d928=_0x256e65[_0x2fb8('0xef')])&&!function(_0x2da016){return _0x2da016[_0x2fb8('0x55')][_0x2fb8('0x48')]==_0x2da016[_0x2fb8('0x110')][_0x2fb8('0xcf')]&&_0x2da016[_0x2fb8('0x55')]['isAtEnd'];}(_0x36d928)))_0x54ff0e[_0x2fb8('0xf')](_0x298b69),_0x5670ff=!0x0;else{if(!_0x408694||!_0x408694['isInContent'])continue;_0x46f33b[_0x2fb8('0x107')](_0x408694);}}}var _0x36d928;return _0x46f33b['size']>0x0&&(_0x5670ff=!!this[_0x2fb8('0x9f')](_0x46f33b)||_0x5670ff),_0x5670ff;}),_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x138')][_0x2fb8('0x22')](_0x450599=>{let _0x467b3a=!0x1;for(const _0x5f31c8 of _0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x138')][_0x2fb8('0x47')]['getChanges']()){if(_0x2fb8('0x129')!=_0x5f31c8['type'])continue;const _0x555d45=_0x5f31c8[_0x2fb8('0xf0')][_0x2fb8('0x10d')](_0x5f31c8[_0x2fb8('0x4b')]);if(_0x555d45['isAtEnd'])for(const _0xad0f04 of this['_suggestions'][_0x2fb8('0xf9')]()){if(_0xad0f04['isMultiRange']||!_0xad0f04[_0x2fb8('0x12e')])continue;if(_0x2fb8('0xd9')!=_0xad0f04[_0x2fb8('0x13e')])continue;const _0x57e9d4=_0xad0f04[_0x2fb8('0x131')]();if(_0x57e9d4[_0x2fb8('0x55')]['parent']!=_0x57e9d4[_0x2fb8('0x110')][_0x2fb8('0x48')]&&_0x57e9d4[_0x2fb8('0x110')][_0x2fb8('0xf6')](_0x5f31c8[_0x2fb8('0xf0')])){const _0x4f7b1a=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x89')](_0x57e9d4[_0x2fb8('0x55')],_0x555d45);_0x450599['updateMarker'](_0xad0f04['getFirstMarker'](),{'range':_0x4f7b1a}),_0x467b3a=!0x0;}}}return _0x467b3a;}),_0x3ab527[_0x2fb8('0xc0')]['markers']['on'](_0x2fb8('0x43'),(_0x176e24,_0x14688c,_0x44cdb)=>{if(null==_0x44cdb){const {id:_0x3512fa}=this[_0x2fb8('0x10a')](_0x14688c[_0x2fb8('0x41')]),_0x5cab75=this[_0x2fb8('0x9a')]['get'](_0x3512fa);_0x5cab75&&_0x5cab75[_0x2fb8('0x57')](_0x14688c['name']);}}),_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x138')]['on']('change:data',()=>{const _0x476ed2=Array[_0x2fb8('0xf5')](_0x3ab527['model']['document'][_0x2fb8('0x47')][_0x2fb8('0xab')]())[_0x2fb8('0x136')](_0x5d2d04=>_0x2fb8('0x2c')===this[_0x2fb8('0x10a')](_0x5d2d04[_0x2fb8('0x41')])['group']);if(0x0===_0x476ed2['length'])return;_0x476ed2[_0x2fb8('0x118')]((_0x37af91,_0x1e0e46)=>{const _0x42e390=_0x37af91[_0x2fb8('0x86')][_0x2fb8('0x128')],_0xcd1ee5=_0x1e0e46[_0x2fb8('0x86')][_0x2fb8('0x128')];return null===_0x42e390&&null===_0xcd1ee5?0x0:null===_0x42e390&&null!==_0xcd1ee5?-0x1:null!==_0x42e390&&null===_0xcd1ee5?0x1:_0x42e390['start'][_0x2fb8('0xa6')](_0xcd1ee5[_0x2fb8('0x55')])?-0x1:0x1;});const _0x145fac=new Set(),_0x39c1b6=new Set();for(const {name:_0x2fdf53,data:_0x48d338}of _0x476ed2){const {id:_0x40c248}=this[_0x2fb8('0x10a')](_0x2fdf53);if(null===_0x48d338[_0x2fb8('0x128')]){const _0x4ebb4a=this[_0x2fb8('0x5')](_0x2fdf53);_0x39c1b6['add'](_0x4ebb4a);}else{const _0x331ab2=this['_suggestions'][_0x2fb8('0x124')](_0x40c248);null!==_0x48d338[_0x2fb8('0xef')]||_0x331ab2[_0x2fb8('0x12e')]?(_0x145fac[_0x2fb8('0x107')](_0x331ab2[_0x2fb8('0xe8')]),_0x39c1b6[_0x2fb8('0x107')](_0x331ab2)):this[_0x2fb8('0x109')](_0x331ab2);}}_0x39c1b6[_0x2fb8('0x50')]>0x0&&this['_refreshSuggestionsChain'](_0x39c1b6);for(const _0x46823a of _0x145fac)this['fire'](_0x2fb8('0x69'),_0x46823a);}),_0x3ab527[_0x2fb8('0xc0')]['on'](_0x2fb8('0xd'),(_0x57d7eb,_0xb199a8)=>{const _0x3e99c9=_0xb199a8[0x0];if(!this[_0x2fb8('0x9a')][_0x2fb8('0x50')])return;if(!_0x3e99c9['isDocumentOperation'])return;if(_0x3e99c9[_0x2fb8('0x45')][_0x2fb8('0xc8')]||!_0x3e99c9[_0x2fb8('0x45')][_0x2fb8('0x99')])return;let _0x539d1b,_0x32928c;switch(_0x3e99c9['type']){case _0x2fb8('0x129'):_0x539d1b=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xde')](_0x3e99c9[_0x2fb8('0xf0')]),_0x32928c=_0x539d1b[_0x2fb8('0x10d')](_0x3e99c9[_0x2fb8('0xdd')]);break;case'split':_0x539d1b=_0x3ab527[_0x2fb8('0xc0')]['createPositionAt'](_0x3e99c9[_0x2fb8('0xb1')]),_0x32928c=_0x3ab527[_0x2fb8('0xc0')]['createPositionAt'](_0x3e99c9[_0x2fb8('0x23')]);break;case _0x2fb8('0x36'):_0x539d1b=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xde')](_0x3e99c9[_0x2fb8('0x75')]),_0x32928c=_0x539d1b[_0x2fb8('0x10d')](_0x3e99c9['howMany']);break;default:return;}const _0x23952e=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x89')](_0x539d1b,_0x32928c);_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xd4')](()=>{for(const {suggestion:_0x2fe868,meta:_0x433663}of this['_findSuggestions'](_0x23952e)){if(_0x2fe868[_0x2fb8('0x101')])continue;if(_0x2fb8('0xb7')==_0x2fe868[_0x2fb8('0x13e')])continue;const _0x7e2712=_0x2fe868['data']&&_0x2fe868[_0x2fb8('0x86')][_0x2fb8('0x8f')];(_0x2fb8('0xd9')!=_0x2fe868[_0x2fb8('0x13e')]||'split'==_0x3e99c9[_0x2fb8('0x13e')]&&!_0x7e2712)&&(_0x433663[_0x2fb8('0x13f')]||_0x2fb8('0x77')==_0x2fe868[_0x2fb8('0x13e')]&&_0x433663[_0x2fb8('0x6a')]||_0x2fe868[_0x2fb8('0x131')]()[_0x2fb8('0x5c')](_0x23952e)&&this[_0x2fb8('0xc1')](_0x2fe868,_0x539d1b,_0x32928c));}});},{'priority':_0x2fb8('0xfb')}),_0x3ab527[_0x2fb8('0xc0')]['on'](_0x2fb8('0x3f'),(_0x4fd758,_0x7964bd)=>{const _0x48093c=_0x7964bd[0x0],_0x1a33fd=_0x7964bd[0x1];if(_0x1a33fd&&_0x1a33fd[_0x2fb8('0xf7')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2fb8('0x114')][_0x2fb8('0x3a')])return;if(_0x48093c[_0x2fb8('0xbe')])return;const _0x9319ff=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xfc')],{start:_0x311f29,end:_0x51008f}=_0x48093c['getFirstRange'](),_0x5c116e=_0x311f29['nodeAfter']&&_0x9319ff[_0x2fb8('0xb8')](_0x311f29['nodeAfter'])?null:_0x9319ff[_0x2fb8('0x53')](_0x311f29,_0x2fb8('0x90')),_0x1439ad=_0x51008f[_0x2fb8('0xcf')]&&_0x9319ff['isLimit'](_0x51008f[_0x2fb8('0xcf')])?null:_0x9319ff[_0x2fb8('0x53')](_0x51008f,_0x2fb8('0x133')),_0x17d3fc=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x89')](_0x5c116e?_0x5c116e[_0x2fb8('0x55')]:_0x311f29,_0x1439ad?_0x1439ad[_0x2fb8('0x110')]:_0x51008f);_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xd4')](_0x2ada32=>{this[_0x2fb8('0x19')](_0x17d3fc);const _0x4edb03=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xfc')]['getNearestSelectionRange'](_0x17d3fc['start']);_0x48093c['is']('documentSelection')?_0x2ada32[_0x2fb8('0xf3')](_0x4edb03):_0x48093c['setTo'](_0x4edb03);}),_0x4fd758[_0x2fb8('0x38')]();},{'priority':_0x1e2e74[_0x2fb8('0x98')]+0xa}),_0x3ab527[_0x2fb8('0xc0')]['on']('insertContent',(_0x28f289,_0x2954a9)=>{const _0x2dd15e=_0x2954a9[_0x2954a9[_0x2fb8('0x4b')]-0x1];_0x2dd15e&&_0x2dd15e[_0x2fb8('0xf7')]||this[_0x2fb8('0xe7')]||this[_0x2fb8('0x114')][_0x2fb8('0x3a')]&&(_0x3ab527['model'][_0x2fb8('0xd4')](()=>{let _0x4ad185=_0x3ab527[_0x2fb8('0xc0')]['insertContent'](_0x2954a9[0x0],_0x2954a9[0x1],_0x2954a9[0x2],{'forceDefaultExecution':!0x0});if(!_0x4ad185)return;_0x28f289[_0x2fb8('0xa2')]=_0x4ad185['clone']();const _0x2f5419=_0x4ad185[_0x2fb8('0x110')][_0x2fb8('0xcf')],_0x2ae1f0=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0xfc')];_0x2f5419&&_0x2ae1f0['isBlock'](_0x2f5419)&&!_0x2ae1f0[_0x2fb8('0xc4')](_0x2f5419)&&(_0x4ad185=_0x3ab527[_0x2fb8('0xc0')][_0x2fb8('0x89')](_0x4ad185['start'],_0x3ab527[_0x2fb8('0xc0')]['createPositionAt'](_0x2f5419,_0x2fb8('0x110')))),this[_0x2fb8('0x103')](_0x4ad185);}),_0x28f289['stop']());},{'priority':'high'}),this['editor'][_0x2fb8('0x106')][_0x2fb8('0x107')](_0x2fb8('0x7d'),this[_0x2fb8('0x114')]),this[_0x2fb8('0xa9')]('trackChanges');const _0x1af4ff=new _0x19ecd5(_0x3ab527,this[_0x2fb8('0x9a')]);_0x3ab527[_0x2fb8('0x106')]['add']('acceptSuggestion',_0x1af4ff),this['enableCommand'](_0x2fb8('0x5e'));const _0x32e070=new _0x477bf4(_0x3ab527,this[_0x2fb8('0x9a')]);_0x3ab527[_0x2fb8('0x106')][_0x2fb8('0x107')](_0x2fb8('0x12b'),_0x32e070),this['enableCommand'](_0x2fb8('0x12b')),_0x3ab527[_0x2fb8('0x106')][_0x2fb8('0x107')]('acceptAllSuggestions',new _0x44d6d6(_0x3ab527,_0x1af4ff,this[_0x2fb8('0x9a')])),this['enableCommand'](_0x2fb8('0x134')),_0x3ab527[_0x2fb8('0x106')][_0x2fb8('0x107')](_0x2fb8('0x3b'),new _0x44d6d6(_0x3ab527,_0x32e070,this['_suggestions'])),this[_0x2fb8('0xa9')](_0x2fb8('0x3b')),_0x3ab527['commands'][_0x2fb8('0x107')](_0x2fb8('0x80'),new _0x55566f(_0x3ab527,_0x1af4ff,this[_0x2fb8('0x9a')])),this['enableCommand'](_0x2fb8('0x80')),_0x3ab527[_0x2fb8('0x106')][_0x2fb8('0x107')](_0x2fb8('0x6c'),new _0x55566f(_0x3ab527,_0x32e070,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1cdbb2=_0x3ab527[_0x2fb8('0x37')][_0x2fb8('0x124')](_0x2fb8('0x12c'));this[_0x2fb8('0x84')](_0x1cdbb2,_0x2fb8('0x27'),(_0x575506,{threadId:_0x11d2b9})=>{const _0x5bfcbd=this[_0x2fb8('0x9a')][_0x2fb8('0x124')](_0x11d2b9);_0x5bfcbd&&_0x5bfcbd['commentThread']&&0x1===_0x5bfcbd[_0x2fb8('0xfe')]['length']&&this['_updateSuggestionData'](_0x11d2b9,{'hasComments':!0x0});},{'priority':_0x2fb8('0xea')}),this[_0x2fb8('0x84')](_0x1cdbb2,'removeComment',(_0x4d0324,{threadId:_0x3929b7})=>{const _0x3e741e=this[_0x2fb8('0x9a')][_0x2fb8('0x124')](_0x3929b7);_0x3e741e&&_0x3e741e[_0x2fb8('0xfe')]&&!_0x3e741e[_0x2fb8('0xfe')][_0x2fb8('0x4b')]&&this[_0x2fb8('0x25')](_0x3929b7,{'hasComments':!0x1});},{'priority':'low'});}set[_0x2fb8('0x102')](_0x50988f){if(this['_adapter'])throw new _0x2b2803(_0x2fb8('0xdf'),this);this[_0x2fb8('0xa5')]=_0x50988f;}get[_0x2fb8('0x102')](){return this['_adapter'];}[_0x2fb8('0x120')]({skipNotAttached:_0x3fdab9=!0x1,toJSON:_0x353ab9=!0x1}={}){const _0x433146=[];for(const _0xd31508 of this['_suggestions']['values']())_0x3fdab9&&!_0xd31508[_0x2fb8('0x12e')]||_0x433146[_0x2fb8('0x56')](_0xd31508);return _0x353ab9?_0x433146[_0x2fb8('0x12d')](_0x210098=>_0x210098[_0x2fb8('0x130')]()):_0x433146;}['getSuggestion'](_0x21b956){const _0x767cd9=this[_0x2fb8('0x9a')][_0x2fb8('0x124')](_0x21b956);if(!_0x767cd9)throw new _0x2b2803(_0x2fb8('0xda'),this);return _0x767cd9;}[_0x2fb8('0x54')](_0x1b3e40){return this[_0x2fb8('0x9a')]['has'](_0x1b3e40);}[_0x2fb8('0x5b')](_0x1e2ecf){const {authorId:_0x4c4620,id:_0x59df3f,attributes:_0x9b14b8}=_0x1e2ecf,[_0x503d82,_0x1b1841]=_0x1e2ecf[_0x2fb8('0x13e')][_0x2fb8('0x132')](':'),_0x51ea63=this[_0x2fb8('0x9a')][_0x2fb8('0x124')](_0x59df3f)||this[_0x2fb8('0x5a')](_0x503d82,_0x1b1841,_0x59df3f,_0x4c4620,_0x9b14b8);if(this[_0x2fb8('0x5f')](_0x51ea63),this[_0x2fb8('0x93')](_0x51ea63,_0x503d82,_0x1b1841||null,_0x4c4620),_0x51ea63[_0x2fb8('0x10c')]=_0x1e2ecf[_0x2fb8('0x10c')],_0x51ea63[_0x2fb8('0xc5')]=!0x0,_0x9b14b8&&_0x9b14b8[_0x2fb8('0x1a')]){const _0x4b0573=_0x9b14b8['@external'],_0x1d1c6d=this[_0x2fb8('0xf8')](_0x4b0573[_0x2fb8('0xa4')]);_0x51ea63[_0x2fb8('0x113')]=_0x4b0573[_0x2fb8('0x10c')],_0x51ea63[_0x2fb8('0xa')]=_0x1d1c6d,_0x51ea63['isExternal']=!0x0;}else _0x51ea63['authoredAt']=_0x1e2ecf['createdAt'];switch(_0x1e2ecf[_0x2fb8('0x86')]&&(_0x51ea63['data']=_0x1e2ecf[_0x2fb8('0x86')]),_0x1e2ecf[_0x2fb8('0xdb')]&&(_0x51ea63['attributes']=_0x1e2ecf[_0x2fb8('0xdb')]),this[_0x2fb8('0xa5')]&&this[_0x2fb8('0xa5')][_0x2fb8('0x12')]||(_0x51ea63[_0x2fb8('0x8a')]=!0x0),this[_0x2fb8('0xa8')][_0x2fb8('0x124')](_0x51ea63)){case'notReady':this['_suggestionState'][_0x2fb8('0x100')](_0x51ea63,_0x2fb8('0x62'));break;case _0x2fb8('0x66'):_0x51ea63[_0x2fb8('0x12e')]?(this[_0x2fb8('0x29')](new Set([_0x51ea63])),this[_0x2fb8('0x9f')](new Set([_0x51ea63])),this[_0x2fb8('0xa8')][_0x2fb8('0x100')](_0x51ea63,_0x2fb8('0x2e')),this[_0x2fb8('0xb')](_0x2fb8('0x49'),_0x51ea63)):this[_0x2fb8('0xa8')][_0x2fb8('0x100')](_0x51ea63,_0x2fb8('0x9b'));}return _0x51ea63;}[_0x2fb8('0x5e')](_0x32b68b){this[_0x2fb8('0xf7')](()=>{this['editor'][_0x2fb8('0xc0')]['change'](()=>{for(const _0x1b0eb9 of _0x32b68b[_0x2fb8('0x0')]())_0x1b0eb9['accept']();});});}[_0x2fb8('0x12b')](_0x429eb7){this['forceDefaultExecution'](()=>{this[_0x2fb8('0x40')][_0x2fb8('0xc0')]['change'](()=>{for(const _0x50c105 of _0x429eb7[_0x2fb8('0x0')]())_0x50c105[_0x2fb8('0x79')]();});});}[_0x2fb8('0xa9')](_0x450f2e,_0x2128a5){const _0x252de8=this['editor']['commands']['get'](_0x450f2e);if(!_0x252de8)throw new _0x2b2803(_0x2fb8('0xf1'),this,{'commandName':_0x450f2e});this['_enabledCommands'][_0x2fb8('0x107')](_0x252de8),_0x2128a5&&_0x252de8['on'](_0x2fb8('0x4e'),(_0x1214f7,_0x41eddf)=>{this[_0x2fb8('0x114')][_0x2fb8('0x3a')]&&(this[_0x2fb8('0xe7')]||_0x41eddf[_0x2fb8('0x4b')]>0x0&&_0x41eddf[_0x41eddf['length']-0x1]&&_0x41eddf[_0x41eddf[_0x2fb8('0x4b')]-0x1][_0x2fb8('0xf7')]||(_0x1214f7[_0x2fb8('0xa2')]=_0x2128a5((..._0xe17aed)=>_0x252de8['execute'](..._0xe17aed,{'forceDefaultExecution':!0x0}),..._0x41eddf),_0x1214f7['stop']()));},{'priority':'high'});}[_0x2fb8('0xf7')](_0x2cbb0f){let _0x137a9b,_0x418645;const _0x539c4e=this[_0x2fb8('0xe7')];this[_0x2fb8('0xe7')]=!0x0;try{_0x137a9b=_0x2cbb0f();}catch(_0xb02a20){_0x418645=_0xb02a20;}return _0x539c4e||(this[_0x2fb8('0xe7')]=!0x1),_0x418645&&_0x2b2803[_0x2fb8('0x68')](_0x418645,this),_0x137a9b;}[_0x2fb8('0x103')](_0x32f19c,_0x4cc788=null,_0x53a95f={}){if(_0x32f19c[_0x2fb8('0xbe')])return null;const _0x3eb932=this['editor'][_0x2fb8('0x37')][_0x2fb8('0x124')]('Users')['me'];for(const {suggestion:_0x6f736b,meta:_0x5e3c79}of this[_0x2fb8('0xbf')](_0x32f19c,_0x2fb8('0x77')))if(_0x5e3c79[_0x2fb8('0x6a')]){if(!_0x5e3c79[_0x2fb8('0xd8')]){if(_0x5e3c79[_0x2fb8('0x13f')]){if(!this[_0x2fb8('0x6f')]||!Ot(_0x6f736b,_0x53a95f))continue;return _0x6f736b;}if(Ot(_0x6f736b,_0x53a95f))return _0x6f736b;this['_breakSuggestionMarker'](_0x6f736b,_0x32f19c['start'],_0x32f19c['end']);break;}if(_0x4cc788==_0x6f736b[_0x2fb8('0x9d')]&&Ot(_0x6f736b,_0x53a95f)){const _0x3685b7=_0x6f736b[_0x2fb8('0x131')]();return _0x3685b7[_0x2fb8('0x55')][_0x2fb8('0xf6')](_0x32f19c[_0x2fb8('0x110')])?this['_setSuggestionRange'](_0x6f736b,this[_0x2fb8('0x116')]['createRange'](_0x32f19c['start'],_0x3685b7[_0x2fb8('0x110')])):this[_0x2fb8('0x73')](_0x6f736b,this['_model'][_0x2fb8('0x89')](_0x3685b7[_0x2fb8('0x55')],_0x32f19c[_0x2fb8('0x110')])),_0x6f736b;}}const _0x1eac51=_0x467fad(),_0x6dfbf=_0x3eb932['id'],_0x3f2947=_0x4cc788?_0x2fb8('0xed')+_0x4cc788:_0x2fb8('0x77'),_0x31b556=this[_0x2fb8('0xdc')]({'id':_0x1eac51,'type':_0x3f2947,'createdAt':new Date(),'authorId':_0x6dfbf,'attributes':_0x53a95f});return this['_addSuggestionMarker'](_0x3f2947,_0x1eac51,_0x6dfbf,_0x32f19c),_0x31b556;}[_0x2fb8('0x21')](_0x107aa6,_0x733d62=_0x2fb8('0x26'),_0x21e0ec={}){const _0x18ba61=this['editor'][_0x2fb8('0x37')][_0x2fb8('0x124')]('Users')['me'],_0x58a4dd=this[_0x2fb8('0xc9')]['getSuggestionCallback'](_0x2fb8('0x77'),_0x733d62,'join');for(const _0x426a86 of this[_0x2fb8('0x120')]())if(_0x426a86[_0x2fb8('0xa')]['id']==_0x18ba61['id']&&_0x2fb8('0x77')==_0x426a86[_0x2fb8('0x13e')]&&_0x426a86[_0x2fb8('0x9d')]==_0x733d62&&Ot(_0x426a86,_0x21e0ec)&&(_0x58a4dd(_0x426a86[_0x2fb8('0x10b')](),_0x107aa6)||_0x58a4dd(_0x107aa6,_0x426a86[_0x2fb8('0x10b')]()))){for(const _0x13a9de of _0x107aa6)_0x426a86['addRange'](_0x13a9de);return _0x426a86;}for(const {suggestion:_0x2ec289,meta:_0x4dbe48}of this[_0x2fb8('0xbf')](_0x107aa6,_0x2fb8('0x77'))){if(!_0x4dbe48[_0x2fb8('0x6a')])continue;if(!this[_0x2fb8('0x6f')]&&_0x4dbe48[_0x2fb8('0x13f')])continue;if(!Ot(_0x2ec289,_0x21e0ec))continue;let _0x46e9e9=!0x0;for(const _0x3142d8 of _0x2ec289[_0x2fb8('0x10b')]())for(const _0x4942cc of _0x107aa6)if(!_0x3142d8[_0x2fb8('0x5c')](_0x4942cc)){_0x46e9e9=!0x1;break;}if(_0x46e9e9)return _0x2ec289;}const _0x55fc4b=_0x467fad(),_0x3a6e3e=_0x18ba61['id'],_0x3b46f7=_0x2fb8('0xed')+_0x733d62,_0x2db0b8=this[_0x2fb8('0xdc')]({'id':_0x55fc4b,'type':_0x3b46f7,'createdAt':new Date(),'authorId':_0x3a6e3e,'attributes':_0x21e0ec});for(const _0x28ea7b of _0x107aa6)this[_0x2fb8('0xae')](_0x3b46f7,_0x55fc4b,_0x3a6e3e,_0x28ea7b,_0x12cab9[_0x2fb8('0x17')]());return _0x2db0b8;}['markInlineFormat'](_0x36494f,_0xd9393d,_0x417b6d=null,_0x23da5a={}){if(_0x417b6d=_0x417b6d||Nt(_0xd9393d),_0x36494f[_0x2fb8('0xbe')])return null;if(_0x2fb8('0x105')===this[_0x2fb8('0x52')]){const _0x4102ba=this[_0x2fb8('0xc9')][_0x2fb8('0x2a')](_0x2fb8('0xb7'),_0x417b6d,_0x2fb8('0x11c'));return this[_0x2fb8('0xf7')](()=>_0x4102ba([_0x36494f],_0xd9393d,_0x23da5a)),null;}const _0x5817f8=this[_0x2fb8('0x40')][_0x2fb8('0x37')][_0x2fb8('0x124')]('Users')['me'],_0x3d1b1a=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x18c9ba,meta:_0xdf9a4b}of this[_0x2fb8('0xbf')](_0x36494f,_0x2fb8('0x77')))_0xdf9a4b['isOwn']&&!_0xdf9a4b['isInsideObject']&&_0x3d1b1a[_0x2fb8('0x56')](..._0x18c9ba['getRanges']());const _0x4ac2c4=function(_0x11edda,_0x515b7a){const _0x2444ad=[];for(const _0x3fa8cc of _0x515b7a){const _0x26febb=_0x11edda[_0x2fb8('0xe9')](_0x3fa8cc);_0x26febb&&_0x2444ad[_0x2fb8('0x56')](_0x26febb);}return _0x2444ad;}(_0x36494f,_0x3d1b1a),_0xab2eee=function(_0x97c08b,_0x3a68f1){const _0x366a0b=[_0x97c08b];for(const _0x254d11 of _0x3a68f1){let _0x48b4dd=0x0;for(;_0x48b4dd<_0x366a0b[_0x2fb8('0x4b')];){const _0x31f510=_0x366a0b[_0x48b4dd]['getDifference'](_0x254d11);_0x366a0b[_0x2fb8('0x104')](_0x48b4dd,0x1,..._0x31f510),_0x48b4dd+=_0x31f510['length'];}}return _0x366a0b;}(_0x36494f,_0x3d1b1a);_0x4ac2c4[_0x2fb8('0x4b')]&&this[_0x2fb8('0x116')]['change'](()=>{for(const _0x50abe9 of _0x4ac2c4){const _0x35ba2c=this[_0x2fb8('0xc9')]['getSuggestionCallback']('formatInline',_0x417b6d,'accept');this[_0x2fb8('0xf7')](()=>_0x35ba2c([_0x50abe9],_0xd9393d,_0x23da5a));}});for(const _0x39c6c0 of _0xab2eee){let _0x52e85e=null,_0x271458=_0x39c6c0[_0x2fb8('0x55')],_0x40881b=_0x39c6c0[_0x2fb8('0x110')];for(const {suggestion:_0x464ad8,meta:_0x363353}of this[_0x2fb8('0xbf')](_0x39c6c0,_0x2fb8('0xb7'))){if(!_0x363353['isOwn'])continue;if(_0x464ad8[_0x2fb8('0x9d')]!=_0x417b6d)continue;if(!Ot(_0x464ad8,_0x23da5a))continue;const _0x4efd03=_0x464ad8[_0x2fb8('0x131')]();if(_0x4efd03[_0x2fb8('0x5c')](_0x39c6c0,!0x0))return null;_0x271458=_0x271458[_0x2fb8('0xa6')](_0x4efd03['start'])?_0x271458:_0x4efd03[_0x2fb8('0x55')],_0x40881b=_0x40881b[_0x2fb8('0x135')](_0x4efd03[_0x2fb8('0x110')])?_0x40881b:_0x4efd03['end'],_0x52e85e?_0x4efd03[_0x2fb8('0x55')]['isBefore'](_0x52e85e[_0x2fb8('0x131')]()['start'])?(_0x52e85e[_0x2fb8('0x5d')](),_0x52e85e=_0x464ad8):_0x464ad8['removeMarkers']():_0x52e85e=_0x464ad8;}const _0x437f50=this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x271458,_0x40881b);if(_0x52e85e)this[_0x2fb8('0x73')](_0x52e85e,_0x437f50);else{const _0x30dd44=_0x467fad(),_0x3a48eb=_0x5817f8['id'];this[_0x2fb8('0xdc')]({'id':_0x30dd44,'type':_0x2fb8('0x14')+_0x417b6d,'data':_0xd9393d,'createdAt':new Date(),'authorId':_0x3a48eb,'attributes':_0x23da5a}),this[_0x2fb8('0xae')](_0x2fb8('0x14')+_0x417b6d,_0x30dd44,_0x3a48eb,_0x437f50);}}return null;}[_0x2fb8('0x15')](_0x53efbc,_0x2c3db0,_0x58e609=[],_0x33ddc8=null,_0x45caab={}){_0x2c3db0[_0x2fb8('0x139')]||(_0x2c3db0[_0x2fb8('0x139')]=_0x2c3db0[_0x2fb8('0x85')]),_0x2c3db0[_0x2fb8('0x8f')]=_0x53efbc['is'](_0x2fb8('0x18')),_0x33ddc8=_0x33ddc8||Nt(_0x2c3db0);const _0x5cad2a=_0x58e609['map'](_0x163b14=>jt(_0x163b14,this[_0x2fb8('0x116')])),_0x5c7979=_0x53efbc['is'](_0x2fb8('0x18'))?_0x53efbc:jt(_0x53efbc,this['_model']);if(_0x2fb8('0x105')===this[_0x2fb8('0x52')]){const _0x4d7553=this['_suggestionFactory']['getSuggestionCallback'](_0x2fb8('0xd9'),_0x33ddc8,_0x2fb8('0x11c'));return this[_0x2fb8('0xf7')](()=>_0x4d7553([_0x5c7979],_0x2c3db0,_0x45caab)),null;}_0x5cad2a[_0x2fb8('0x56')](_0x5c7979);let _0x1ffa0d=!0x0;for(const _0xe8efd of _0x5cad2a)if(!this[_0x2fb8('0x2d')](_0xe8efd)){_0x1ffa0d=!0x1;break;}if(_0x1ffa0d&&_0x2fb8('0x8')!==this[_0x2fb8('0x52')]){const _0x1b1102=this[_0x2fb8('0xc9')][_0x2fb8('0x2a')]('formatBlock',_0x33ddc8,'accept');return this[_0x2fb8('0xf7')](()=>_0x1b1102([_0x5c7979],_0x2c3db0,_0x45caab)),null;}let _0x2fd08a=null,_0x2bb5b0=_0x5c7979[_0x2fb8('0x55')],_0x1b2389=_0x5c7979[_0x2fb8('0x110')];for(const {suggestion:_0x27dd8f,meta:_0xae2c8}of this[_0x2fb8('0xbf')](_0x5c7979,_0x2fb8('0xd9'))){if(!_0xae2c8[_0x2fb8('0x6a')])continue;if(_0xae2c8[_0x2fb8('0xd8')]||_0xae2c8[_0x2fb8('0x13f')]||_0xae2c8[_0x2fb8('0xb3')])continue;if(_0x27dd8f[_0x2fb8('0x86')][_0x2fb8('0x139')]!=_0x2c3db0[_0x2fb8('0x139')])continue;if(!Ot(_0x27dd8f,_0x45caab))continue;const _0x210438=_0x27dd8f[_0x2fb8('0x131')]();if(_0x27dd8f[_0x2fb8('0x9d')]==_0x33ddc8){if(_0x210438[_0x2fb8('0x5c')](_0x5c7979,!0x0))return null;_0x2bb5b0=_0x2bb5b0[_0x2fb8('0xa6')](_0x210438[_0x2fb8('0x55')])?_0x2bb5b0:_0x210438[_0x2fb8('0x55')],_0x1b2389=_0x1b2389[_0x2fb8('0x135')](_0x210438[_0x2fb8('0x110')])?_0x1b2389:_0x210438[_0x2fb8('0x110')],_0x2fd08a?_0x210438[_0x2fb8('0x55')]['isBefore'](_0x2fd08a['getFirstRange']()['start'])?(_0x2fd08a[_0x2fb8('0x5d')](),_0x2fd08a=_0x27dd8f):_0x27dd8f['removeMarkers']():_0x2fd08a=_0x27dd8f;}else{const _0x1afcd7=_0x5c7979[_0x2fb8('0xe9')](_0x210438);this[_0x2fb8('0x24')](_0x27dd8f,_0x1afcd7);}}const _0x549f42=this[_0x2fb8('0x40')][_0x2fb8('0x37')]['get'](_0x2fb8('0x125'))['me'],_0x15bde5=_0x467fad(),_0x18b069=_0x549f42['id'];if(_0x2fd08a)return this[_0x2fb8('0x73')](_0x2fd08a,this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x2bb5b0,_0x1b2389)),_0x2fd08a;{const _0x172342=this['_setSuggestionData']({'id':_0x15bde5,'type':_0x2fb8('0xc2')+_0x33ddc8,'data':_0x2c3db0,'createdAt':new Date(),'authorId':_0x18b069,'attributes':_0x45caab});return this['_addSuggestionMarker'](_0x2fb8('0xc2')+_0x33ddc8,_0x15bde5,_0x18b069,this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x2bb5b0,_0x1b2389)),_0x172342;}}[_0x2fb8('0x70')](_0x3e1a1e,_0x2fdadc,_0x47dd47=[],_0x38def3=null,_0xb45491={}){_0x2fdadc['formatGroupId']||(_0x2fdadc[_0x2fb8('0x139')]=_0x2fdadc[_0x2fb8('0x85')]);const _0x4661da=_0x3e1a1e[0x0];_0x2fdadc['multipleBlocks']=_0x4661da['is'](_0x2fb8('0x18')),_0x38def3=_0x38def3||Nt(_0x2fdadc);const _0x3121df=_0x47dd47[_0x2fb8('0x12d')](_0x6c7e5e=>jt(_0x6c7e5e,this[_0x2fb8('0x116')])),_0x577430=_0x4661da['is']('range')?_0x3e1a1e:_0x3e1a1e[_0x2fb8('0x12d')](_0xea8e20=>jt(_0xea8e20,this[_0x2fb8('0x116')]));if('never'===this[_0x2fb8('0x52')]){const _0x2ff11a=this['_suggestionFactory'][_0x2fb8('0x2a')](_0x2fb8('0xd9'),_0x38def3,_0x2fb8('0x11c'));return this[_0x2fb8('0xf7')](()=>_0x2ff11a(_0x577430,_0x2fdadc,_0xb45491)),null;}_0x3121df[_0x2fb8('0x56')](..._0x577430);let _0xe6a865=!0x0;for(const _0x5f3e3e of _0x3121df)if(!this[_0x2fb8('0x2d')](_0x5f3e3e)){_0xe6a865=!0x1;break;}if(_0xe6a865&&_0x2fb8('0x8')!==this[_0x2fb8('0x52')]){const _0x3dca2d=this[_0x2fb8('0xc9')][_0x2fb8('0x2a')](_0x2fb8('0xd9'),_0x38def3,'accept');return this[_0x2fb8('0xf7')](()=>_0x3dca2d(_0x577430,_0x2fdadc,_0xb45491)),null;}const _0x2539d8=this[_0x2fb8('0x40')]['plugins'][_0x2fb8('0x124')](_0x2fb8('0x125'))['me'];for(const _0x6dd720 of this[_0x2fb8('0x120')]()){if(_0x6dd720[_0x2fb8('0xa')]['id']!=_0x2539d8['id'])continue;if(_0x2fb8('0xd9')!=_0x6dd720[_0x2fb8('0x13e')]||_0x6dd720[_0x2fb8('0x86')][_0x2fb8('0x139')]!=_0x2fdadc['formatGroupId'])continue;if(!Ot(_0x6dd720,_0xb45491))continue;const _0x1e4b77=_0x6dd720[_0x2fb8('0x9d')]==_0x38def3;for(let _0x1b7765=0x0;_0x1b7765<_0x577430[_0x2fb8('0x4b')];_0x1b7765++){const _0x5c5556=_0x577430[_0x1b7765];for(const _0x52f2a1 of _0x6dd720[_0x2fb8('0x51')]()){const _0x430331=_0x52f2a1[_0x2fb8('0x59')]();if(_0x5c5556[_0x2fb8('0xf6')](_0x430331)){_0x1e4b77?(_0x577430['splice'](_0x1b7765,0x1),_0x1b7765--):_0x6dd720[_0x2fb8('0xf')](_0x52f2a1[_0x2fb8('0x41')]);break;}}}}if(0x0==_0x577430[_0x2fb8('0x4b')])return null;const _0x371d66=this[_0x2fb8('0xc9')][_0x2fb8('0x2a')](_0x2fb8('0xd9'),_0x38def3,_0x2fb8('0x8b'));for(const _0x30601a of this[_0x2fb8('0x120')]())if(_0x30601a[_0x2fb8('0xa')]['id']==_0x2539d8['id']&&'formatBlock'==_0x30601a[_0x2fb8('0x13e')]&&_0x30601a[_0x2fb8('0x86')]['formatGroupId']==_0x2fdadc[_0x2fb8('0x139')]&&_0x30601a[_0x2fb8('0x9d')]==_0x38def3&&Ot(_0x30601a,_0xb45491)&&(_0x371d66(_0x30601a[_0x2fb8('0x10b')](),_0x577430)||_0x371d66(_0x577430,_0x30601a[_0x2fb8('0x10b')]()))){for(const _0x5e92dd of _0x577430)_0x30601a[_0x2fb8('0x1c')](_0x5e92dd);return _0x30601a;}const _0x13d2ef=_0x467fad(),_0x211459=_0x2539d8['id'],_0x131b5a=_0x2fb8('0xc2')+_0x38def3,_0x3f9e79=this['_setSuggestionData']({'id':_0x13d2ef,'type':_0x131b5a,'data':_0x2fdadc,'createdAt':new Date(),'authorId':_0x211459,'attributes':_0xb45491});for(const _0x145105 of _0x577430)this['_addSuggestionMarker'](_0x131b5a,_0x13d2ef,_0x211459,_0x145105,_0x12cab9[_0x2fb8('0x17')]());return _0x3f9e79;}[_0x2fb8('0x19')](_0x20831b,_0x543b44=null,_0x25e811={}){if(_0x20831b[_0x2fb8('0xbe')])return null;const _0x5de14b=this[_0x2fb8('0x40')][_0x2fb8('0x37')][_0x2fb8('0x124')](_0x2fb8('0x125'))['me'],_0x5b728a=new _0x2c2325(_0x20831b[_0x2fb8('0x55')],_0x20831b['end']);for(const {suggestion:_0x17b16e,meta:_0x54e135}of this['_findSuggestions'](_0x5b728a,_0x2fb8('0x77')))if(_0x54e135[_0x2fb8('0x6a')]&&!_0x54e135[_0x2fb8('0xd8')]){if(_0x17b16e[_0x2fb8('0x101')]){const _0x42bc17=_0x17b16e['getRanges']()[_0x2fb8('0x136')](_0x24db11=>'$graveyard'!=_0x24db11[_0x2fb8('0x6e')][_0x2fb8('0x11f')]);_0x42bc17[_0x2fb8('0x20')](_0x4f2e10=>_0x5b728a[_0x2fb8('0x5c')](_0x4f2e10,!0x0))&&_0x17b16e[_0x2fb8('0x79')]();if(_0x42bc17[_0x2fb8('0xe6')](_0x4e4bce=>_0x4e4bce[_0x2fb8('0x5c')](_0x5b728a,!0x0))){const _0x4a87e7=this[_0x2fb8('0xc9')][_0x2fb8('0x2a')](_0x2fb8('0x74'),_0x543b44,_0x2fb8('0x11c'));return this[_0x2fb8('0xf7')](()=>_0x4a87e7([_0x5b728a],null,_0x25e811)),null;}}else{const _0x21dc5e=_0x5b728a['getIntersection'](_0x17b16e[_0x2fb8('0x131')]());null!==_0x21dc5e&&_0x17b16e[_0x2fb8('0x3c')]([_0x21dc5e],null,_0x25e811);}}if(_0x5b728a[_0x2fb8('0xf2')](),_0x5b728a[_0x2fb8('0xbe')]||'$graveyard'==_0x5b728a['root'][_0x2fb8('0x11f')])return null;let _0x413c18=null,_0x5f2788=_0x5b728a[_0x2fb8('0x55')],_0x2ae952=_0x5b728a['end'];const _0x8e4a2=this[_0x2fb8('0xbf')](_0x5b728a,'deletion');for(const {suggestion:_0x25fe73,meta:_0x57aa75}of _0x8e4a2){const _0x52a97f=this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x5f2788,_0x2ae952);if(_0x57aa75['isOwn']&&(this[_0x2fb8('0x6f')]||!_0x57aa75['containsRangeInObject']&&!_0x57aa75[_0x2fb8('0xb3')])){if(_0x25fe73[_0x2fb8('0x101')]){if(!Ot(_0x25fe73,_0x25e811))continue;let _0x5508d9=!0x0;for(const _0x3d6944 of _0x25fe73['getRanges']()){if(_0x3d6944[_0x2fb8('0x5c')](_0x52a97f,!0x0))return _0x25fe73;_0x52a97f[_0x2fb8('0x5c')](_0x3d6944)||(_0x5508d9=!0x1);}_0x5508d9&&_0x25fe73['discard']();}else{const _0x114f8e=_0x25fe73[_0x2fb8('0x131')]();if(_0x114f8e[_0x2fb8('0x5c')](_0x52a97f,!0x0))return _0x25fe73;if(!Ot(_0x25fe73,_0x25e811)){_0x52a97f[_0x2fb8('0x5c')](_0x114f8e)?_0x25fe73[_0x2fb8('0x5d')]():_0x114f8e[_0x2fb8('0x7c')](_0x5f2788)?_0x5f2788=_0x114f8e[_0x2fb8('0x110')]:_0x114f8e[_0x2fb8('0x7c')](_0x2ae952)&&(_0x2ae952=_0x114f8e[_0x2fb8('0x55')]);continue;}_0x5f2788=_0x5f2788[_0x2fb8('0xa6')](_0x114f8e[_0x2fb8('0x55')])?_0x5f2788:_0x114f8e['start'],_0x2ae952=_0x2ae952[_0x2fb8('0x135')](_0x114f8e[_0x2fb8('0x110')])?_0x2ae952:_0x114f8e[_0x2fb8('0x110')],_0x25e811=Object['assign']({},_0x25fe73[_0x2fb8('0xdb')]),_0x413c18?_0x114f8e[_0x2fb8('0x55')][_0x2fb8('0xa6')](_0x413c18[_0x2fb8('0x131')]()[_0x2fb8('0x55')])?(_0x413c18[_0x2fb8('0x5d')](),_0x413c18=_0x25fe73):_0x25fe73['removeMarkers']():_0x413c18=_0x25fe73;}}}if(_0x413c18)return this[_0x2fb8('0x73')](_0x413c18,this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x5f2788,_0x2ae952)),_0x413c18;{const _0x32f49f=_0x467fad(),_0x2734a1=this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x5f2788,_0x2ae952),_0x49d57e=_0x5de14b['id'],_0x229a58=_0x543b44?_0x2fb8('0xd7')+_0x543b44:'deletion',_0x1e3ef8=this[_0x2fb8('0xdc')]({'id':_0x32f49f,'type':_0x229a58,'createdAt':new Date(),'authorId':_0x49d57e,'attributes':_0x25e811});return this[_0x2fb8('0xae')](_0x229a58,_0x32f49f,_0x49d57e,_0x2734a1),_0x1e3ef8;}}[_0x2fb8('0x13d')](_0x14122b,_0x5b022d=_0x2fb8('0x26'),_0x1ab62b={}){const _0x56f06b=this['editor'][_0x2fb8('0x37')]['get'](_0x2fb8('0x125'))['me'],_0x1fdfea=_0x14122b[_0x2fb8('0x12d')](_0x6a97ae=>new _0x2c2325(_0x6a97ae['start'],_0x6a97ae[_0x2fb8('0x110')])),_0x1abf80=new Set();for(const {suggestion:_0x5b6513,meta:_0x3589f9}of this['_findSuggestions'](_0x1fdfea,_0x2fb8('0x77')))_0x3589f9['isOwn']&&!_0x3589f9['isNextTo']&&_0x1abf80[_0x2fb8('0x107')](_0x5b6513);for(const _0x5aed37 of _0x1abf80)if(_0x5aed37[_0x2fb8('0x101')]){const _0x4883ac=_0x5aed37[_0x2fb8('0x10b')]();(!_0x5aed37['attributes']||!_0x5aed37[_0x2fb8('0xdb')][_0x2fb8('0xd6')])&&(_0x4883ac[_0x2fb8('0x20')](_0x199307=>_0x1fdfea[_0x2fb8('0xe6')](_0x1d24a1=>_0x1d24a1[_0x2fb8('0x5c')](_0x199307,!0x0)))&&_0x5aed37[_0x2fb8('0x79')]());if(_0x1fdfea['every'](_0x3b3ce4=>_0x4883ac['some'](_0xe727b5=>_0xe727b5[_0x2fb8('0x5c')](_0x3b3ce4,!0x0)))){const _0x3f2ef1=this[_0x2fb8('0xc9')][_0x2fb8('0x2a')](_0x2fb8('0x74'),_0x5b022d,_0x2fb8('0x11c'));return this[_0x2fb8('0xf7')](()=>_0x3f2ef1(_0x14122b,null,_0x1ab62b)),null;}}else{const _0x4b7b7f=_0x5aed37[_0x2fb8('0x131')]();_0x1fdfea[_0x2fb8('0xe6')](_0x14243c=>_0x14243c[_0x2fb8('0x5c')](_0x4b7b7f,!0x0))&&_0x5aed37[_0x2fb8('0x79')]();if(_0x1fdfea[_0x2fb8('0x20')](_0x19a3df=>_0x4b7b7f['containsRange'](_0x19a3df,!0x0))){const _0x4067b0=this[_0x2fb8('0xc9')]['getSuggestionCallback'](_0x2fb8('0x74'),_0x5b022d,_0x2fb8('0x11c'));return this[_0x2fb8('0xf7')](()=>_0x4067b0(_0x1fdfea,null,_0x1ab62b)),null;}}const _0x35be1e=this[_0x2fb8('0xc9')][_0x2fb8('0x2a')]('deletion',_0x5b022d,'join');let _0x4e89b2=null;for(const _0x3b3dd7 of this[_0x2fb8('0x120')]())if(_0x3b3dd7[_0x2fb8('0xa')]['id']==_0x56f06b['id']&&_0x3b3dd7[_0x2fb8('0x12e')]&&_0x2fb8('0x74')==_0x3b3dd7[_0x2fb8('0x13e')]&&_0x3b3dd7[_0x2fb8('0x9d')]==_0x5b022d&&Ot(_0x3b3dd7,_0x1ab62b)&&(_0x35be1e(_0x3b3dd7['getRanges'](),_0x1fdfea)||_0x35be1e(_0x1fdfea,_0x3b3dd7[_0x2fb8('0x10b')]()))){if(_0x4e89b2){if(_0x3b3dd7[_0x2fb8('0xfe')]&&_0x3b3dd7['commentThread']['length'])continue;for(const _0x30a55b of _0x3b3dd7[_0x2fb8('0x10b')]())_0x4e89b2[_0x2fb8('0x13a')](_0x30a55b)||_0x4e89b2['addRange'](_0x30a55b);_0x3b3dd7[_0x2fb8('0x5d')]();}else{_0x4e89b2=_0x3b3dd7;for(const _0x147d64 of _0x1fdfea)_0x3b3dd7['isIntersectingWithRange'](_0x147d64)||_0x3b3dd7['addRange'](_0x147d64);}}if(_0x4e89b2)return _0x4e89b2;_0x1abf80[_0x2fb8('0xc3')]();for(const {suggestion:_0x5d77c6,meta:_0x24f8c3}of this[_0x2fb8('0xbf')](_0x1fdfea,_0x2fb8('0x74')))_0x24f8c3['isOwn']&&(this[_0x2fb8('0x6f')]||!_0x24f8c3['containsRangeInObject']&&!_0x24f8c3[_0x2fb8('0xb3')])&&Ot(_0x5d77c6,_0x1ab62b)&&_0x1abf80[_0x2fb8('0x107')](_0x5d77c6);for(const _0x66f9cb of _0x1abf80){const _0x1bfec8=_0x66f9cb[_0x2fb8('0x10b')]();if(!_0x1ab62b||!_0x1ab62b[_0x2fb8('0xd6')]){if(_0x1fdfea['every'](_0x6e9e38=>_0x1bfec8[_0x2fb8('0xe6')](_0x201c07=>_0x201c07[_0x2fb8('0x5c')](_0x6e9e38,!0x0))))return _0x66f9cb;}(!_0x66f9cb[_0x2fb8('0xdb')]||!_0x66f9cb['attributes'][_0x2fb8('0xd6')])&&(_0x1bfec8['every'](_0x34d8aa=>_0x1fdfea[_0x2fb8('0xe6')](_0x2b5be3=>_0x2b5be3[_0x2fb8('0x5c')](_0x34d8aa,!0x0)))&&_0x66f9cb[_0x2fb8('0x79')]());}const _0x45fadc=_0x467fad(),_0x4e8a86=_0x56f06b['id'],_0x1f2047=_0x2fb8('0xd7')+_0x5b022d,_0x16d13c=this[_0x2fb8('0xdc')]({'id':_0x45fadc,'type':_0x1f2047,'createdAt':new Date(),'authorId':_0x4e8a86,'attributes':_0x1ab62b});for(const _0x157c3f of _0x1fdfea)_0x157c3f[_0x2fb8('0xf2')](),_0x157c3f[_0x2fb8('0xbe')]||_0x2fb8('0x58')==_0x157c3f[_0x2fb8('0x6e')][_0x2fb8('0x11f')]||this[_0x2fb8('0xae')](_0x1f2047,_0x45fadc,_0x4e8a86,_0x157c3f,_0x12cab9[_0x2fb8('0x17')]());return _0x16d13c;}[_0x2fb8('0x73')](_0x13d297,_0x32d5e7){const _0x3078e9=_0x13d297[_0x2fb8('0x1')]();this[_0x2fb8('0x116')][_0x2fb8('0xd4')](_0x51c656=>{_0x51c656[_0x2fb8('0x12f')](_0x3078e9,{'range':_0x32d5e7});});}[_0x2fb8('0x5f')](_0x1f1d6b){const _0x467fa8=_0x1f1d6b['id'],_0x168518=this['editor'][_0x2fb8('0x97')]['get']('collaboration.channelId');this[_0x2fb8('0x2f')][_0x2fb8('0x35')](_0x467fa8)||this['_commentsRepository'][_0x2fb8('0xee')]({'channelId':_0x168518,'threadId':_0x467fa8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d3b50=this[_0x2fb8('0x2f')]['getCommentThread'](_0x467fa8);_0x1d3b50[_0x2fb8('0x10e')](_0x2fb8('0x1d')),_0x1d3b50[_0x2fb8('0x1d')]=!0x1,_0x1f1d6b['commentThread']=_0x1d3b50;}[_0x2fb8('0x93')](_0x23caeb,_0x1bab0e,_0x2793e3,_0x58c354){if(_0x23caeb[_0x2fb8('0x13e')]!=_0x1bab0e||_0x23caeb[_0x2fb8('0x9d')]!=_0x2793e3||_0x23caeb[_0x2fb8('0x83')]['id']!=_0x58c354)throw this[_0x2fb8('0x40')][_0x2fb8('0xc7')](_0x2fb8('0xc6')),new _0x2b2803(_0x2fb8('0xc6'),this);}[_0x2fb8('0x24')](_0x4ac7c2,_0x2a7e68){const _0x16e631=_0x4ac7c2[_0x2fb8('0x131')]();if(_0x2a7e68[_0x2fb8('0xf6')](_0x16e631))_0x4ac7c2['removeMarkers']();else{if(_0x16e631[_0x2fb8('0x5c')](_0x2a7e68)){const _0x2355d9=this[_0x2fb8('0x116')][_0x2fb8('0xde')](_0x2a7e68[_0x2fb8('0x55')]['nodeBefore'],_0x2fb8('0x110'));this[_0x2fb8('0x73')](_0x4ac7c2,this['_model'][_0x2fb8('0x89')](_0x16e631['start'],_0x2355d9));const _0x59813e=_0x467fad(),_0x1b12ee=_0x4ac7c2[_0x2fb8('0x83')]['id'],_0x25ab36=_0x4ac7c2[_0x2fb8('0x13e')]+':'+_0x4ac7c2['subType'];this[_0x2fb8('0xdc')]({'id':_0x59813e,'type':_0x25ab36,'createdAt':new Date(),'authorId':_0x1b12ee,'data':_0x4ac7c2[_0x2fb8('0x86')],'attributes':_0x4ac7c2[_0x2fb8('0xdb')]});const _0x183466=this[_0x2fb8('0x116')][_0x2fb8('0xde')](_0x2a7e68['end'][_0x2fb8('0x48')],_0x2fb8('0x82')),_0xb1bf2b=this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x183466,_0x16e631[_0x2fb8('0x110')]);this['_addSuggestionMarker'](_0x25ab36,_0x59813e,_0x1b12ee,_0xb1bf2b);}else{if(_0x16e631[_0x2fb8('0x7c')](_0x2a7e68[_0x2fb8('0x55')])){const _0x5ca416=this[_0x2fb8('0x116')][_0x2fb8('0xde')](_0x2a7e68[_0x2fb8('0x55')][_0x2fb8('0xcf')],_0x2fb8('0x110'));this[_0x2fb8('0x73')](_0x4ac7c2,this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x16e631['start'],_0x5ca416));}else{const _0x59d9a1=this[_0x2fb8('0x116')][_0x2fb8('0xde')](_0x2a7e68[_0x2fb8('0x110')][_0x2fb8('0x48')],_0x2fb8('0x82'));this[_0x2fb8('0x73')](_0x4ac7c2,this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x59d9a1,_0x16e631[_0x2fb8('0x110')]));}}}}['_rangeIsInLocalUserInsertion'](_0x76850d){for(const {suggestion:_0xcf8e62,meta:_0x58bbef}of this[_0x2fb8('0xbf')](_0x76850d,_0x2fb8('0x77'))){if(!_0x58bbef['isOwn'])continue;const _0x42daa7=_0xcf8e62[_0x2fb8('0x10b')]();for(const _0x4a6b28 of _0x42daa7)if(!_0x76850d[_0x2fb8('0x8e')](_0x4a6b28)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f1ec5){const _0x363b69=this[_0x2fb8('0x40')]['plugins']['get'](_0x2fb8('0x125'))['getUser'](_0x4f1ec5);if(!_0x363b69)throw new _0x2b2803(_0x2fb8('0x11d'),this);return _0x363b69;}[_0x2fb8('0xf8')](_0xd2827c){const _0x293477=this[_0x2fb8('0x40')][_0x2fb8('0x37')][_0x2fb8('0x124')]('Users'),_0x47a74b=_0x478717('external:'+_0xd2827c),_0x234dd8=_0x293477[_0x2fb8('0x96')](_0x47a74b);return _0x234dd8||_0x293477[_0x2fb8('0x9c')]({'id':_0x47a74b,'name':_0xd2827c});}['_createSuggestion'](_0x404489,_0x51d9ea,_0x52d22c,_0x9b0be0,_0x49feba){const _0x14e213=this[_0x2fb8('0xff')](_0x9b0be0),_0xfa1c78=this[_0x2fb8('0xc9')][_0x2fb8('0x10')](_0x404489,_0x51d9ea,_0x52d22c,_0x14e213,_0x49feba,_0x54cc99=>this[_0x2fb8('0x25')](_0x52d22c,{'attributes':_0x54cc99}));return this[_0x2fb8('0x84')](_0xfa1c78,_0x2fb8('0x11c'),()=>{this[_0x2fb8('0x25')](_0x52d22c,{'state':_0x2fb8('0xd1')});},{'priority':_0x2fb8('0x13b')}),this['listenTo'](_0xfa1c78,'discard',()=>{this['_updateSuggestionData'](_0x52d22c,{'state':'rejected'});},{'priority':_0x2fb8('0x13b')}),this['_suggestions'][_0x2fb8('0x100')](_0x52d22c,_0xfa1c78),this['_suggestionState'][_0x2fb8('0x100')](_0xfa1c78,_0x2fb8('0x126')),_0xfa1c78;}['_splitMarkerName'](_0x1759f3){const _0x100cf7=_0x1759f3['split'](':');return{'group':_0x100cf7[0x0],'type':_0x100cf7[0x1],'subType':_0x100cf7['length']>=0x5?_0x100cf7[0x2]:null,'id':_0x100cf7[_0x2fb8('0x4b')]<0x5?_0x100cf7[0x2]:_0x100cf7[0x3],'authorId':_0x100cf7['length']<0x5?_0x100cf7[0x3]:_0x100cf7[0x4],'markerCount':0x6==_0x100cf7[_0x2fb8('0x4b')]?_0x100cf7[0x5]:null};}['_breakSuggestionMarker'](_0x2a6649,_0x15e9a5,_0x3b840f){const _0x5af15b=_0x2a6649[_0x2fb8('0x131')](),_0xc7278a=_0x5af15b[_0x2fb8('0x55')],_0x427730=_0x5af15b[_0x2fb8('0x110')];this[_0x2fb8('0x73')](_0x2a6649,this['_model'][_0x2fb8('0x89')](_0xc7278a,_0x15e9a5));const _0x2a45d0=_0x467fad(),_0x188a40=_0x2a6649['creator']['id'],_0x3a3cf7=_0x2a6649[_0x2fb8('0x13e')]+(_0x2a6649[_0x2fb8('0x9d')]?':'+_0x2a6649[_0x2fb8('0x9d')]:'');this[_0x2fb8('0xdc')]({'id':_0x2a45d0,'type':_0x3a3cf7,'createdAt':new Date(),'authorId':_0x188a40,'originalSuggestionId':_0x2a6649['id'],'attributes':_0x2a6649[_0x2fb8('0xdb')],'data':_0x2a6649[_0x2fb8('0x86')]}),_0x2fb8('0xd9')==_0x2a6649[_0x2fb8('0x13e')]&&(_0x3b840f=this[_0x2fb8('0x116')]['createPositionBefore'](_0x3b840f[_0x2fb8('0x48')])),this['_addSuggestionMarker'](_0x3a3cf7,_0x2a45d0,_0x188a40,this['_model']['createRange'](_0x3b840f,_0x427730));}[_0x2fb8('0xbf')](_0x18de93,_0x458fc8=null){const _0x507b9e=[],_0x54b405=this[_0x2fb8('0x40')][_0x2fb8('0x37')]['get'](_0x2fb8('0x125'))['me'];Array[_0x2fb8('0x65')](_0x18de93)||(_0x18de93=[_0x18de93]);for(const _0x139058 of this[_0x2fb8('0x120')]()){if(!_0x139058[_0x2fb8('0x12e')])continue;if(_0x458fc8&&_0x139058[_0x2fb8('0x13e')]!=_0x458fc8)continue;let _0x4310c7=!0x1;for(const _0x5a4c15 of _0x139058['getRanges']()){for(const _0x8da333 of _0x18de93){const _0x350197=_0x8da333[_0x2fb8('0x55')][_0x2fb8('0xf6')](_0x5a4c15['end'])||_0x8da333['end'][_0x2fb8('0xf6')](_0x5a4c15[_0x2fb8('0x55')]);if(_0x350197||_0x8da333[_0x2fb8('0xe9')](_0x5a4c15)){const _0x5f1884=_0x8da333[_0x2fb8('0x5c')](_0x5a4c15)&&_t(this[_0x2fb8('0x116')][_0x2fb8('0xfc')],_0x5a4c15['start'],_0x8da333),_0x2ab36c=_0x5a4c15['containsRange'](_0x8da333)&&_t(this[_0x2fb8('0x116')][_0x2fb8('0xfc')],_0x8da333[_0x2fb8('0x55')],_0x5a4c15);_0x507b9e[_0x2fb8('0x56')]({'suggestion':_0x139058,'meta':{'isOwn':_0x54b405==_0x139058[_0x2fb8('0xa')],'isNextTo':_0x350197,'isInsideObject':_0x5f1884,'containsRangeInObject':_0x2ab36c}}),_0x4310c7=!0x0;break;}}if(_0x4310c7)break;}}return _0x507b9e;}[_0x2fb8('0xae')](_0xaadba2,_0x148c94,_0x2a27a9,_0xd82cc3,_0x2192ba){this[_0x2fb8('0x116')][_0x2fb8('0xd4')](_0x1116b2=>{let _0x141354=_0x2fb8('0xac')+_0xaadba2+':'+_0x148c94+':'+_0x2a27a9;_0x2192ba&&(_0x141354=_0x141354+':'+_0x2192ba),_0x1116b2[_0x2fb8('0x8c')](_0x141354,{'range':_0xd82cc3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2fb8('0x109')](_0x174c5c){const _0x3d8607=_0x174c5c['previous'],_0x1916bf=_0x174c5c[_0x2fb8('0x11')];_0x174c5c['previous']=null,null!=_0x3d8607&&(_0x3d8607[_0x2fb8('0x11')]=null),_0x174c5c[_0x2fb8('0x11')]=null,null!=_0x1916bf&&(_0x1916bf[_0x2fb8('0xf4')]=null),_0x2fb8('0x2e')==this['_suggestionState'][_0x2fb8('0x124')](_0x174c5c)&&(this[_0x2fb8('0xa8')][_0x2fb8('0x100')](_0x174c5c,'removed'),this[_0x2fb8('0xb')](_0x2fb8('0xa1'),_0x174c5c,_0x3d8607,_0x1916bf));}[_0x2fb8('0xdc')](_0x4a6f3b){const _0x57d03e=_0x4a6f3b['id'],_0x25e7ad=this['addSuggestionData'](_0x4a6f3b);if(this[_0x2fb8('0xa5')]&&this[_0x2fb8('0xa5')]['addSuggestion']){const _0x125736=this[_0x2fb8('0x40')][_0x2fb8('0x37')][_0x2fb8('0x124')](_0x2fb8('0x3')),_0x691d8=_0x25e7ad[_0x2fb8('0xb5')],_0x38783c=_0x25e7ad[_0x2fb8('0x9d')]?_0x25e7ad[_0x2fb8('0x13e')]+':'+_0x25e7ad[_0x2fb8('0x9d')]:_0x25e7ad[_0x2fb8('0x13e')],_0x3221a5=this['editor'][_0x2fb8('0x112')],_0x10aa95=_0x125736[_0x2fb8('0x107')](_0x2692c5(_0x3221a5,_0x2fb8('0x3d'))),_0x3b64a7={'id':_0x57d03e,'type':_0x38783c,'hasComments':_0x691d8,'data':_0x4a6f3b[_0x2fb8('0x86')]||null,'originalSuggestionId':_0x4a6f3b[_0x2fb8('0x11b')]||null,'attributes':_0x25e7ad[_0x2fb8('0xdb')]};this[_0x2fb8('0xa5')]['addSuggestion'](_0x3b64a7)[_0x2fb8('0xcc')](_0xbb7439=>{_0x25e7ad['_saved']=!0x0,_0x125736['remove'](_0x10aa95),_0xbb7439&&_0xbb7439[_0x2fb8('0x10c')]&&(this['_suggestions'][_0x2fb8('0x124')](_0x57d03e)[_0x2fb8('0x10c')]=_0xbb7439[_0x2fb8('0x10c')]);})['catch'](_0x2763a5=>{throw _0x455535(_0x2fb8('0x33')),this[_0x2fb8('0x40')][_0x2fb8('0xc0')][_0x2fb8('0xe0')]({'isUndoable':!0x1},()=>{_0x25e7ad['discard']();}),_0x25e7ad[_0x2fb8('0x2b')](),this[_0x2fb8('0x9a')]['delete'](_0x25e7ad['id']),this[_0x2fb8('0xa8')]['delete'](_0x25e7ad),_0x2763a5;});}return _0x25e7ad;}[_0x2fb8('0x25')](_0xde4f50,_0x272781){const _0x272618=this[_0x2fb8('0x40')]['plugins'][_0x2fb8('0x124')](_0x2fb8('0x3')),_0x36d970=this[_0x2fb8('0x6')](_0xde4f50);if(this[_0x2fb8('0xa5')]&&this[_0x2fb8('0xa5')][_0x2fb8('0x34')]){if(_0x36d970['_saved']){const _0x311ba3=_0x272618['add'](_0x2692c5(this[_0x2fb8('0x40')][_0x2fb8('0x112')],'PENDING_ACTION_SUGGESTION'));this[_0x2fb8('0xa5')][_0x2fb8('0x34')](_0xde4f50,_0x272781)['then'](()=>{_0x272618[_0x2fb8('0x11a')](_0x311ba3);});}else _0x36d970['on'](_0x2fb8('0x10f'),()=>{this['_updateSuggestionData'](_0xde4f50,_0x272781);});}}['_getSuggestionData'](_0x50ade0){if(!this[_0x2fb8('0xa5')]||!this[_0x2fb8('0xa5')][_0x2fb8('0x6')])throw new _0x2b2803(_0x2fb8('0xe5'),this);return this[_0x2fb8('0xa5')][_0x2fb8('0x6')](_0x50ade0);}[_0x2fb8('0x5')](_0x51f553){const {id:_0x4680f8,type:_0x5915be,subType:_0x377c7,authorId:_0x553a18}=this['_splitMarkerName'](_0x51f553),_0x58eaab=this['_suggestions'][_0x2fb8('0x124')](_0x4680f8)||this[_0x2fb8('0x5a')](_0x5915be,_0x377c7,_0x4680f8,_0x553a18,{});switch(this[_0x2fb8('0x93')](_0x58eaab,_0x5915be,_0x377c7,_0x553a18),this[_0x2fb8('0xa8')][_0x2fb8('0x124')](_0x58eaab)){case _0x2fb8('0x126'):this[_0x2fb8('0xe3')](_0x4680f8)['then'](_0x16fb48=>{let _0x426bc6=Promise[_0x2fb8('0x91')]();_0x16fb48['hasComments']&&(_0x426bc6=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x2fb8('0x40')]['config']['get']('collaboration.channelId'),'threadId':_0x4680f8})),_0x426bc6[_0x2fb8('0xcc')](()=>{this['addSuggestionData'](_0x16fb48)[_0x2fb8('0x8a')]=!0x0;});}),this['_suggestionState'][_0x2fb8('0x100')](_0x58eaab,_0x2fb8('0x66'));break;case _0x2fb8('0x9b'):this[_0x2fb8('0x25')](_0x4680f8,{'state':_0x2fb8('0x61')});case _0x2fb8('0x62'):this[_0x2fb8('0xa8')][_0x2fb8('0x100')](_0x58eaab,_0x2fb8('0x2e')),this[_0x2fb8('0xb')]('suggestionLoaded',_0x58eaab);break;case _0x2fb8('0x2e'):this[_0x2fb8('0xb')](_0x2fb8('0x69'),_0x58eaab);}return _0x58eaab[_0x2fb8('0x57')](_0x51f553),_0x58eaab;}[_0x2fb8('0x29')](_0xcea2ba){const _0x4d9d61=Array[_0x2fb8('0xf5')](_0xcea2ba)[_0x2fb8('0x136')](_0x29f173=>!_0x29f173['isMultiRange']),_0x1743d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24028a=>!_0x24028a[_0x2fb8('0x101')]),_0x55e4e0=_0x1743d2[_0x2fb8('0x136')](_0x504873=>!_0xcea2ba[_0x2fb8('0x9e')](_0x504873)),_0x4dfeaf=new Map(_0x1743d2[_0x2fb8('0x12d')](_0x549549=>[_0x549549,this[_0x2fb8('0xc9')][_0x2fb8('0x2a')](_0x549549[_0x2fb8('0x13e')],_0x549549[_0x2fb8('0x9d')],_0x2fb8('0x87'))])),_0x5bfe9b=new Map(_0x1743d2[_0x2fb8('0x12d')](_0x350450=>[_0x350450,_0x350450[_0x2fb8('0x131')]()])),_0xe8caf6=new Set(),_0x46ed37=new Set();for(let _0x5ece37=0x0;_0x5ece37<_0x4d9d61[_0x2fb8('0x4b')];_0x5ece37++)_0x745164(_0x4d9d61[_0x5ece37],_0x4d9d61,_0x5ece37+0x1);for(let _0x1a2d4=0x0;_0x1a2d4<_0x4d9d61[_0x2fb8('0x4b')];_0x1a2d4++)_0x745164(_0x4d9d61[_0x1a2d4],_0x55e4e0,0x0);for(let _0x24734c=0x0;_0x24734c<_0x4d9d61['length'];_0x24734c++){const _0x1c2d9b=_0x4d9d61[_0x24734c];!_0x46ed37[_0x2fb8('0x9e')](_0x1c2d9b)&&_0x1c2d9b[_0x2fb8('0xf4')]&&(_0x1c2d9b[_0x2fb8('0xf4')][_0x2fb8('0x11')]===_0x1c2d9b&&(_0x1c2d9b[_0x2fb8('0xf4')]['next']=null),_0x1c2d9b['previous']=null),!_0xe8caf6[_0x2fb8('0x9e')](_0x1c2d9b)&&_0x1c2d9b[_0x2fb8('0x11')]&&(_0x1c2d9b['next'][_0x2fb8('0xf4')]===_0x1c2d9b&&(_0x1c2d9b[_0x2fb8('0x11')][_0x2fb8('0xf4')]=null),_0x1c2d9b[_0x2fb8('0x11')]=null);}function _0x745164(_0x1f19f8,_0xf45e20,_0x5d2b73){for(let _0x7e98e2=_0x5d2b73;_0x7e98e2<_0xf45e20[_0x2fb8('0x4b')];_0x7e98e2++){const _0x227d46=_0x1f40be(_0x1f19f8,_0xf45e20[_0x7e98e2]);_0x227d46&&(_0x227d46[0x0][_0x2fb8('0x11')]=_0x227d46[0x1],_0x227d46[0x1][_0x2fb8('0xf4')]=_0x227d46[0x0],_0xe8caf6[_0x2fb8('0x107')](_0x227d46[0x0]),_0x46ed37[_0x2fb8('0x107')](_0x227d46[0x1]));}}function _0x1f40be(_0x49aad2,_0x58c9e7){if(_0x49aad2[_0x2fb8('0xa')]['id']!==_0x58c9e7[_0x2fb8('0xa')]['id'])return null;const _0x41cf1c=_0x4dfeaf[_0x2fb8('0x124')](_0x49aad2)(_0x49aad2,_0x58c9e7,_0x5bfe9b[_0x2fb8('0x124')](_0x49aad2),_0x5bfe9b['get'](_0x58c9e7));if(!_0x41cf1c)return null;return _0x4dfeaf[_0x2fb8('0x124')](_0x58c9e7)(_0x49aad2,_0x58c9e7,_0x5bfe9b[_0x2fb8('0x124')](_0x49aad2),_0x5bfe9b['get'](_0x58c9e7))?_0x41cf1c[0x1][_0x2fb8('0xfe')]&&_0x41cf1c[0x1][_0x2fb8('0xfe')]['length']?null:_0x41cf1c:null;}}[_0x2fb8('0x9f')](_0x25e1d8){const _0x57d259=Array[_0x2fb8('0xf5')](_0x25e1d8),_0x1bcc5e=this[_0x2fb8('0x120')]({'skipNotAttached':!0x0}),_0x456e32=_0x1bcc5e[_0x2fb8('0x136')](_0x3b8766=>!_0x25e1d8[_0x2fb8('0x9e')](_0x3b8766)),_0x53e6ce=new Map(_0x57d259[_0x2fb8('0x12d')](_0x738fe0=>[_0x738fe0,this[_0x2fb8('0xc9')][_0x2fb8('0x2a')](_0x738fe0[_0x2fb8('0x13e')],_0x738fe0[_0x2fb8('0x9d')],'join')])),_0x78e298=new Map(_0x1bcc5e['map'](_0x46ade2=>[_0x46ade2,_0x46ade2['getRanges']()]));for(let _0x39a617=0x0;_0x39a617<_0x57d259[_0x2fb8('0x4b')];_0x39a617++){if(_0x3d8fab(this,_0x57d259[_0x39a617],_0x57d259,_0x39a617+0x1))return!0x0;}for(let _0x6d7a32=0x0;_0x6d7a32<_0x57d259[_0x2fb8('0x4b')];_0x6d7a32++){if(_0x3d8fab(this,_0x57d259[_0x6d7a32],_0x456e32,0x0))return!0x0;}return!0x1;function _0x3d8fab(_0x3e7540,_0x110bf4,_0x452636,_0x4af84a){for(let _0x34da46=_0x4af84a;_0x34da46<_0x452636[_0x2fb8('0x4b')];_0x34da46++){const _0x7a6606=_0x452636[_0x34da46];if(_0x7a6606[_0x2fb8('0x13e')]!==_0x110bf4[_0x2fb8('0x13e')]||_0x7a6606['author']['id']!==_0x110bf4['author']['id']||_0x7a6606[_0x2fb8('0x9d')]!==_0x110bf4[_0x2fb8('0x9d')])continue;if(!Ut(_0x110bf4,_0x7a6606))continue;const _0x165706=_0x53e6ce[_0x2fb8('0x124')](_0x110bf4),_0x264eb6=_0x78e298[_0x2fb8('0x124')](_0x110bf4),_0x165b06=_0x78e298['get'](_0x7a6606),_0x37bee0=_0x110bf4[_0x2fb8('0xfe')]&&_0x110bf4[_0x2fb8('0xfe')][_0x2fb8('0x4b')],_0x4bc3ef=_0x7a6606[_0x2fb8('0xfe')]&&_0x7a6606[_0x2fb8('0xfe')][_0x2fb8('0x4b')];if(!_0x37bee0&&_0x165706(_0x165b06,_0x264eb6))return _0x3e7540['_joinSuggestions'](_0x7a6606,_0x110bf4),_0x78e298[_0x2fb8('0xca')](_0x110bf4),!0x0;if(!_0x4bc3ef&&_0x165706(_0x264eb6,_0x165b06))return _0x3e7540['_joinSuggestions'](_0x110bf4,_0x7a6606),_0x78e298[_0x2fb8('0xca')](_0x7a6606),!0x0;}return!0x1;}}[_0x2fb8('0xd5')](_0x264335,_0x344962){if(_0x264335[_0x2fb8('0x101')])for(const _0x526a59 of _0x344962['getRanges']())_0x264335[_0x2fb8('0x1c')](_0x526a59);else{const _0x49b887=_0x344962[_0x2fb8('0x131')]()['end'];this['_setSuggestionRange'](_0x264335,this[_0x2fb8('0x116')]['createRange'](_0x264335['getFirstRange']()[_0x2fb8('0x55')],_0x49b887));}_0x344962[_0x2fb8('0x5d')]();}}class Bt{constructor(_0x5410f3){this[_0x2fb8('0xad')]=_0x5410f3,this[_0x2fb8('0x116')]=_0x5410f3['model'],this[_0x2fb8('0x7b')]=new Map(),this[_0x2fb8('0x122')]=new Map(),this[_0x2fb8('0xd2')]();}[_0x2fb8('0x10')](_0x17dc0a,_0x3e01ad,_0x52caf2,_0x4e57db,_0x1ea21e,_0x359f37){return new _0x12cab9(this['_model'],{'type':_0x17dc0a,'subType':_0x3e01ad,'id':_0x52caf2,'author':_0x4e57db,'creator':_0x4e57db,'attributes':_0x1ea21e,'onAttributesChange':_0x359f37,'onAccept':(..._0x9b41d4)=>this['getSuggestionCallback'](_0x17dc0a,_0x3e01ad,_0x2fb8('0x11c'))(..._0x9b41d4),'onDiscard':(..._0x3fe7ce)=>this[_0x2fb8('0x2a')](_0x17dc0a,_0x3e01ad,_0x2fb8('0x79'))(..._0x3fe7ce)});}[_0x2fb8('0x7e')](_0x4489f2,_0x42d92e,_0x5d8ebb,_0x8ce047){const _0x273f71=_0x4489f2+':'+_0x42d92e+':'+_0x5d8ebb;this[_0x2fb8('0x7b')][_0x2fb8('0x100')](_0x273f71,_0x8ce047);}['getSuggestionCallback'](_0x3528a2,_0x2f56d8,_0x3d0661){const _0x970337=_0x3528a2+':'+_0x2f56d8+':'+_0x3d0661;return this['_customCallbacks'][_0x2fb8('0x124')](_0x970337)||this[_0x2fb8('0x122')][_0x2fb8('0x124')](_0x3528a2+':'+_0x3d0661);}[_0x2fb8('0xd2')](){const _0x40cd86=()=>!0x1,_0x3a57fb=_0x5810b2=>{_0x5810b2[_0x2fb8('0x118')]((_0x234719,_0x50c146)=>_0x234719[_0x2fb8('0x55')][_0x2fb8('0xa6')](_0x50c146[_0x2fb8('0x55')])?0x1:-0x1),this[_0x2fb8('0x116')][_0x2fb8('0xd4')](_0x252ea9=>{for(const _0x4420bb of _0x5810b2){let _0x2960a6;_0x2960a6=_0x4420bb[_0x2fb8('0x110')][_0x2fb8('0x11e')]&&_0x4420bb[_0x2fb8('0x110')][_0x2fb8('0x48')]==_0x4420bb[_0x2fb8('0x55')]['nodeAfter']?_0x252ea9['createSelection'](_0x4420bb[_0x2fb8('0x55')][_0x2fb8('0x76')],'on'):_0x252ea9[_0x2fb8('0x6b')](_0x4420bb),this[_0x2fb8('0x116')][_0x2fb8('0x3f')](_0x2960a6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x243643=(_0xd9ae57,_0x594b48)=>{this[_0x2fb8('0x116')][_0x2fb8('0xd4')](_0x1066e7=>{const {commandName:_0x192114,commandParams:_0x225fdd=[]}=_0x594b48,_0x147c73=_0xd9ae57[_0x2fb8('0x12d')](_0x20921d=>(Mt(_0x20921d)&&(_0x20921d=this[_0x2fb8('0x116')][_0x2fb8('0x89')](_0x20921d[_0x2fb8('0x110')])),_0x20921d))[_0x2fb8('0x136')](_0x23dd8d=>_0x2fb8('0x58')!==_0x23dd8d[_0x2fb8('0x6e')][_0x2fb8('0x11f')]);if(_0x147c73['length']<0x1)return;const _0x481ed9=Array[_0x2fb8('0xf5')](this[_0x2fb8('0x116')][_0x2fb8('0x138')]['selection'][_0x2fb8('0x10b')]())[_0x2fb8('0x12d')](_0x2d857a=>_0x2c2325[_0x2fb8('0x31')](_0x2d857a));_0x1066e7[_0x2fb8('0xf3')](_0x147c73);for(const _0x3122f4 of this[_0x2fb8('0xad')][_0x2fb8('0x106')]['commands']())_0x3122f4[_0x2fb8('0x4')]();_0x225fdd[_0x2fb8('0x56')]({'forceDefaultExecution':!0x0}),this[_0x2fb8('0xad')][_0x2fb8('0x4e')](_0x192114,..._0x225fdd);const _0x4ebe29=_0x481ed9[_0x2fb8('0x136')](_0x4f9856=>'$graveyard'!=_0x4f9856[_0x2fb8('0x6e')][_0x2fb8('0x11f')]);_0x4ebe29[_0x2fb8('0x4b')]>0x0&&_0x1066e7[_0x2fb8('0xf3')](_0x4ebe29);for(const _0x2c3408 of _0x481ed9)_0x2c3408[_0x2fb8('0xf2')]();});},_0x14919e=(_0x1e21cf,_0x387467)=>0x1==_0x1e21cf['length']&&0x1==_0x387467['length']&&_0x1e21cf[0x0][_0x2fb8('0x110')][_0x2fb8('0xf6')](_0x387467[0x0][_0x2fb8('0x55')]),_0x1ab367=(_0x3df848,_0x45e3bb,_0x228831,_0x4fa2dd)=>xt(_0x3df848,_0x45e3bb,_0x228831,_0x4fa2dd,this['_model'])?[_0x3df848,_0x45e3bb]:xt(_0x45e3bb,_0x3df848,_0x4fa2dd,_0x228831,this['_model'])?[_0x45e3bb,_0x3df848]:null;this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0xb0'),_0x40cd86),this['_defaultCallbacks']['set']('insertion:discard',_0x3a57fb),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0x28'),_0x14919e),this[_0x2fb8('0x122')][_0x2fb8('0x100')]('insertion:chain',_0x1ab367),this['_defaultCallbacks'][_0x2fb8('0x100')](_0x2fb8('0x7a'),_0x3a57fb),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0x71'),_0x40cd86),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0x4c'),_0x14919e),this[_0x2fb8('0x122')]['set'](_0x2fb8('0x6d'),_0x1ab367),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0xd3'),_0x243643),this['_defaultCallbacks'][_0x2fb8('0x100')]('formatInline:discard',_0x40cd86),this['_defaultCallbacks'][_0x2fb8('0x100')](_0x2fb8('0xc'),_0x14919e),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0xcd'),_0x40cd86),this['_defaultCallbacks'][_0x2fb8('0x100')](_0x2fb8('0x123'),_0x243643),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0x4d'),_0x40cd86),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0x78'),_0x14919e),this[_0x2fb8('0x122')][_0x2fb8('0x100')](_0x2fb8('0x7f'),_0x40cd86);}}function _t(_0x1ed2fb,_0x360e61,_0x3b8989){for(const _0x537198 of _0x360e61['parent'][_0x2fb8('0x60')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x537198[_0x2fb8('0x6e')]==_0x537198)return!0x1;if(!_0x3b8989[_0x2fb8('0xa7')](_0x537198))return!0x1;if(_0x1ed2fb[_0x2fb8('0xc4')](_0x537198)||_0x1ed2fb['isLimit'](_0x537198))return!0x0;}return!0x1;}function Mt(_0x5c9ab3){return _0x5c9ab3[_0x2fb8('0x110')][_0x2fb8('0x48')]==_0x5c9ab3['start'][_0x2fb8('0x76')]&&_0x5c9ab3[_0x2fb8('0x110')][_0x2fb8('0x88')];}function $t(_0x4a5422,_0xa0d461,_0x3ef90b,_0x584e77){const _0x5f41c9=_0x1aaac3=>!_0x1aaac3[_0x2fb8('0xe4')]['is'](_0x2fb8('0x72'))&&!_0x584e77[_0x2fb8('0xc4')](_0x1aaac3['item']),_0x4e4b6e=_0x4a5422['start']['getLastMatchingPosition'](_0x5f41c9),_0x110854=_0x4a5422['end'][_0x2fb8('0x117')](_0x5f41c9,{'direction':'backward'});return(!_0x4a5422[_0x2fb8('0x55')]['isEqual'](_0x4e4b6e)||!_0x4a5422[_0x2fb8('0x110')]['isEqual'](_0x110854))&&(_0x4e4b6e[_0x2fb8('0xa6')](_0x110854)?_0x3ef90b[_0x2fb8('0x12f')](_0xa0d461,{'range':_0x3ef90b[_0x2fb8('0x89')](_0x4e4b6e,_0x110854)}):_0x3ef90b['removeMarker'](_0xa0d461),!0x0);}function Nt(_0x1f6741){return _0x478717(_0x1f6741);}function Rt(_0x132b2e){const _0x58c0c9=_0x132b2e[_0x2fb8('0x55')]['nodeAfter'];return _0x58c0c9&&_0x58c0c9['is'](_0x2fb8('0x8d'));}function jt(_0x48cb6f,_0x805274){const _0x4b47b8=_0x805274[_0x2fb8('0xfc')][_0x2fb8('0xc4')](_0x48cb6f)||_0x805274['schema'][_0x2fb8('0x4a')](_0x48cb6f);return _0x805274[_0x2fb8('0x89')](_0x805274['createPositionAt'](_0x48cb6f,'before'),_0x4b47b8?_0x805274[_0x2fb8('0x95')](_0x48cb6f):_0x805274['createPositionAt'](_0x48cb6f,_0x2fb8('0x110')));}function xt(_0x43bcd2,_0x4983e1,_0x34ad84,_0x1bfeea,_0x21a4c3){if(!Ut(_0x43bcd2,_0x4983e1))return!0x1;if(_0x34ad84[_0x2fb8('0x110')]['isEqual'](_0x1bfeea[_0x2fb8('0x55')]))return!0x0;if(_0x43bcd2[_0x2fb8('0x13e')]!=_0x4983e1[_0x2fb8('0x13e')])return!0x1;if(!_0x34ad84['end']['isTouching'](_0x1bfeea[_0x2fb8('0x55')]))return!0x1;const _0x309800=_0x21a4c3[_0x2fb8('0x89')](_0x34ad84[_0x2fb8('0x110')],_0x1bfeea[_0x2fb8('0x55')])['getWalker']();for(const _0x388878 of _0x309800)if([_0x2fb8('0xe'),_0x2fb8('0x44')][_0x2fb8('0xe1')](_0x388878[_0x2fb8('0x13e')])&&_0x21a4c3[_0x2fb8('0xfc')][_0x2fb8('0xb8')](_0x388878[_0x2fb8('0xe4')]))return!0x1;return!0x0;}function Ut(_0xf09b70,_0x78064){return!(!_0xf09b70[_0x2fb8('0xc5')]||!_0x78064[_0x2fb8('0xc5')])&&_0x460cd2(_0xf09b70[_0x2fb8('0xdb')],_0x78064[_0x2fb8('0xdb')]);}function Ot(_0x555cb4,_0x18fff7){const _0x39e1c8=Et(_0x555cb4[_0x2fb8('0xdb')]),_0x293cd3=Et(_0x18fff7);if(!_0x555cb4[_0x2fb8('0xc5')])return!0x1;for(const _0x1d3270 of Object[_0x2fb8('0x13c')](_0x293cd3))if(!_0x460cd2(_0x39e1c8[_0x1d3270],_0x293cd3[_0x1d3270]))return!0x1;return!0x0;}function Et(_0x3d0ee5){const _0x5a2f15=Object[_0x2fb8('0x111')]({},_0x3d0ee5);return delete _0x5a2f15[_0x2fb8('0xd6')],delete _0x5a2f15['tablePasteChainId'],_0x5a2f15;}
23
+ const _0x4666=['detach','markDeletion','documentSelection','accept','length','_getAuthorFromId','deleteContent','rejected','position','_commentsRepository','collaboration.channelId','isInContent','getAttribute','forceDefaultExecution','execute','_suggestionState','isLocal','insertion','markerToHighlight','_rangeIsInLocalUserInsertion','getCustomProperty','getCommentThread','_customCallbacks','formatBlock:join','track-changes-adapter-missing-getsuggestion','containsRangeInObject','split','discardSelectedSuggestions','isTouching','every','formatBlock:chain','markerToData','isLimit','define','buildSuggestion','getLastMatchingPosition','enableCommand','_createSuggestion','_setSuggestionRange','getFirstMarker','addHighlight','filter','_handleNewSuggestionMarker','update:suggestion','setTo','before','widget','batch','enqueueChange','type','addSuggestion','insertion:discard','registerCustomCallback','push','delete','showSuggestionHighlights','locale','addRange','suggestionLoaded','resolve','trackChanges.trackFormatChanges','getUser','Users','addMarkerName','isMultiRange','splice','markInlineFormat','return','hasComments','notReady','model','isAtStart','track-changes-suggestion-data-mismatch','isOwn','activeMarkers','_addThreadToSuggestion','_isForcedDefaultExecutionBlock','formatInline:','listenTo','accepted','getIntersection','_setSuggestionData','_trackFormatChanges','data','formatGroupId','oldRange','editingDowncast','_splitMarkerName','addCommentThread','markers','then','formatInline','formatBlock:accept','getChanges','removed','addUser','acceptSuggestion','formatBlock:discard','addComment','change:activeMarkers','start','track-changes-command-not-found','ck-suggestion-marker-formatBlock','addMarker:suggestion:formatBlock','values','authoredAt','adapter','forward','trackChanges.mergeNestedSuggestions','dataReady','_defaultCallbacks','formatInline:join','addClass','nodeAfter','never','$textProxy','formatInline:accept','schema','selection','_getSuggestionData','_isDataLoaded','discard','consumable','getSuggestionCallback','toViewElement','attributes','_enabledCommands','commands','getNearestSelectionRange','markerName','markBlockFormat','markInsertion','backward','subType','parent','formatBlock:','isIntersectingWithRange','_removeSuggestion','commandName','error-saving-suggestion-data-suggestion-discarded','_mergeNestedSuggestions','@external','options','_updateSuggestionData','getSuggestion','previous','howMany','ck-suggestion-marker','creator','fire','$marker','_joinWithAdjacentSuggestions','_refreshSuggestionsChain','suggestion','updateMarker','join','PendingActions','_joinSuggestions','_suggestions','suggestionChanged','insert','dataDowncast','getSuggestions','config','deletion:discard','name','getChangedMarkers','editor','mapper','isInsideObject','upcast','_adapter','commentThread','tablePasteChainId','getAllAdjacentSuggestions','_saved','assign','from','moveTargetPosition','discardAllSuggestions','createElement','for','nodeBefore','isAfter','suggestion-type','plugins','includes','$graveyard','formatInline:discard','removeClass','isAtEnd','_descriptionFactory','enableReadOnlyMode','containsRange','removeComment','removeMarkers','after','refresh','isEqual','acceptSelectedSuggestions','getMultiRangeId','suggestionUnloaded','ready','ck-suggestion-marker--active','pluginName','normal','set','insertion:join','highest','createRange','isBefore','value','isNextTo','PENDING_ACTION_SUGGESTION','_checkSuggestionCorrectness','dataToMarker','deletion:','trackChanges','high','createPositionBefore','markerReady','editing','track-changes-adapter-already-set','addSuggestionData','document','root','createRangeIn','createPositionAt','size','_editor','_findSuggestions','author','has','move','isUndo','formatBlock','originalSuggestionId','change:_saved','getShiftedBy','lowest','discardSuggestion','toJSON','end','getMarkers','createSelection','removeMarker','containsPosition','track-changes-user-not-found','createdAt','ck-suggestion-marker-','splitPosition','change','some','element','next','formatInline:chain','elementStart','getDifference','removeAttribute','CommentsRepository','insertion:','elementToElement','multipleBlocks','rootName','isSelectable','TrackChangesEditing','marker-count','item','insertion:chain','skipNestingCheck','markerNameToElements','getWalker','isRemovable','containerElement','stop','trackChangesCommand','acceptAllSuggestions','low','registerPostFixer','getFirstRange','_cutOutSuggestionMarker','rethrowUnexpectedError','get','sort','deletion:chain','isBlock','insertContent','_addSuggestionMarker','external:','stopListening','clone','getRanges','add','_getExternalAuthor','applyOperation','requires','consume','isExternal','map','isObject','getAncestors','_suggestionFactory','isCollapsed','suggestion:','_model','addMarker:suggestion','range','clear','deletion:accept','differ','newRange','deletion','remove','always','elementEnd','data-suggestion','createPositionAfter','_registerDefaultCallbacks','writer','conversion'];(function(_0x41494c,_0x4666a9){const _0x40a5ef=function(_0x455d4b){while(--_0x455d4b){_0x41494c['push'](_0x41494c['shift']());}};_0x40a5ef(++_0x4666a9);}(_0x4666,0x176));const _0x40a5=function(_0x41494c,_0x4666a9){_0x41494c=_0x41494c-0x0;let _0x40a5ef=_0x4666[_0x41494c];return _0x40a5ef;};import{Plugin as _0x3a64bd,PendingActions as _0x5a66ed}from'ckeditor5/src/core';import{LiveRange as _0x3032ac}from'ckeditor5/src/engine';import{CKEditorError as _0xef0e66,uid as _0x2fe5d6,priorities as _0x195edd,logWarning as _0xb21efc}from'ckeditor5/src/utils';import{toWidget as _0x3b1f61}from'ckeditor5/src/widget';import{Users as _0x3bba3e,hashObject as _0x4db06b}from'ckeditor5-collaboration/src/collaboration-core';import _0x50e06a from'./commands/trackchangescommand';import _0x3ac607 from'./commands/acceptsuggestioncommand';import _0xac96c6 from'./commands/discardsuggestioncommand';import _0x2d5877 from'./commands/executeonallsuggestionscommand';import _0x5b9e52 from'./commands/executeonselectedsuggestionscommand';import _0x459923 from'./suggestion';import _0xf4617f from'./suggestiondescriptionfactory';import _0x4934f4 from'./integrations/aiassistant';import _0x3c3b30 from'./integrations/alignment';import _0x5e6028 from'./integrations/basicstyles';import _0x2e50fe from'./integrations/blockquote';import _0x369cf4 from'./integrations/ckbox';import _0x28bd60 from'./integrations/codeblock';import _0x508616 from'./integrations/comments';import _0x52cb73 from'./integrations/deletecommand';import _0x372d6e from'./integrations/documentlist';import _0x32ea89 from'./integrations/entercommand';import _0x22f198 from'./integrations/findandreplace';import _0x231d09 from'./integrations/font';import _0x276342 from'./integrations/formatpainter';import _0x4222be from'./integrations/heading';import _0x326692 from'./integrations/highlight';import _0x3b49aa from'./integrations/horizontalline';import _0x1e23d7 from'./integrations/htmlembed';import _0x3cc7a3 from'./integrations/image';import _0x425684 from'./integrations/imagereplace';import _0x3cd6cb from'./integrations/importword';import _0x229064 from'./integrations/indent';import _0x2da503 from'./integrations/inputcommand';import _0x3c0d2c from'./integrations/link';import _0x4bb53d from'./integrations/list';import _0x49bc14 from'./integrations/listproperties';import _0x5d9504 from'./integrations/mediaembed';import _0x1f5334 from'./integrations/mention';import _0x4057d0 from'./integrations/pagebreak';import _0x90b217 from'./integrations/paragraph';import _0x49dbb7 from'./integrations/removeformat';import _0x5d0923 from'./integrations/restrictededitingmode';import _0x5742dc from'./integrations/shiftentercommand';import _0x57c169 from'./integrations/standardeditingmode';import _0x3ae6bb from'./integrations/style';import _0x251fdf from'./integrations/table';import _0x5dd41f from'./integrations/tablemergesplit';import _0x1b08fa from'./integrations/tableheadings';import _0x3008a0 from'./integrations/tableclipboard';import _0xb64d4c from'./integrations/tablecolumnresize';import _0x4c1edf from'./integrations/template';import _0x58c7de from'./integrations/tableofcontents';import _0x42c759 from'./integrations/title';import _0xf16819 from'./integrations/undo';import{getTranslation as _0x461e5b}from'./utils/common-translations';import _0x400092 from'./integrations/tablecaption';import _0x411d32 from'./integrations/documentlistproperties';import _0x1fe14a from'./integrations/tableproperties';import{isEqual as _0xfb5d18}from'lodash-es';export default class p extends _0x3a64bd{static get[_0x40a5('0xf1')](){return[_0x40a5('0xcd'),_0x3bba3e,_0x5a66ed,_0x4934f4,_0x3c3b30,_0x5e6028,_0x2e50fe,_0x369cf4,_0x28bd60,_0x508616,_0x52cb73,_0x372d6e,_0x411d32,_0x32ea89,_0x22f198,_0x231d09,_0x276342,_0x4222be,_0x326692,_0x3b49aa,_0x1e23d7,_0x3cc7a3,_0x425684,_0x3cd6cb,_0x229064,_0x2da503,_0x3c0d2c,_0x4bb53d,_0x49bc14,_0x5d9504,_0x1f5334,_0x4057d0,_0x90b217,_0x49dbb7,_0x5d0923,_0x5742dc,_0x57c169,_0x3ae6bb,_0x251fdf,_0x5dd41f,_0x1b08fa,_0x400092,_0x3008a0,_0xb64d4c,_0x58c7de,_0x1fe14a,_0x4c1edf,_0x42c759,_0xf16819];}static get[_0x40a5('0x96')](){return _0x40a5('0xd3');}constructor(_0x371bd0){function _0x56f94b(_0x3edf01){return _0x3edf01[_0x40a5('0xf4')](_0x152590=>String['fromCharCode'](_0x152590))[_0x40a5('0x65')]('');}super(_0x371bd0),this[_0x40a5('0x98')](_0x40a5('0x14'),[]),this['on'](_0x40a5('0x2d'),(_0x29fa95,_0x13c63e,_0x2680a3,_0x560f5e)=>{this[_0x40a5('0xfa')][_0x40a5('0xc5')](()=>{for(const _0x2c0ea6 of[..._0x560f5e,..._0x2680a3])this[_0x40a5('0xfa')][_0x40a5('0x23')][_0x40a5('0xb2')](_0x2c0ea6)&&_0x371bd0[_0x40a5('0xa7')]['reconvertMarker'](_0x2c0ea6);});}),this[_0x40a5('0x89')]=new _0xf4617f(this[_0x40a5('0x71')][_0x40a5('0x10')]['schema'],this[_0x40a5('0x71')]['locale']),this['_adapter']=null,this[_0x40a5('0xf7')]=new Bt(this[_0x40a5('0x71')]),this[_0x40a5('0x68')]=new Map(),this[_0x40a5('0x113')]=_0x371bd0['plugins'][_0x40a5('0xe4')](_0x40a5('0xcd')),this[_0x40a5('0x48')]=new Set(),this[_0x40a5('0xfa')]=this['editor'][_0x40a5('0x10')],this[_0x40a5('0x119')]=new WeakMap(),this[_0x40a5('0x16')]=!0x1,_0x371bd0[_0x40a5('0x6d')][_0x40a5('0x12b')](_0x40a5('0x6'),'default'),this[_0x40a5('0x1c')]=_0x371bd0[_0x40a5('0x6d')][_0x40a5('0xe4')](_0x40a5('0x6')),_0x371bd0['config'][_0x40a5('0x12b')](_0x40a5('0x36'),!0x0),this[_0x40a5('0x56')]=_0x371bd0['config']['get'](_0x40a5('0x36')),this[_0x40a5('0xdd')]=new _0x50e06a(_0x371bd0,this[_0x40a5('0x48')]),this[_0x56f94b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x56f94b([0x34,0x30,0x34,0x36,0x32,0x30,0x36,0x32]);}['init'](){const _0x79341b=this[_0x40a5('0x71')];_0x79341b['conversion']['for'](_0x40a5('0x20'))[_0x40a5('0x11c')]({'model':_0x40a5('0x63'),'view':_0x499936=>{const {id:_0x32670f,type:_0x32fce5}=this[_0x40a5('0x21')](_0x499936[_0x40a5('0x4b')]),_0xb58cbe=['ck-suggestion-marker',_0x40a5('0xc3')+_0x32fce5];let _0x59a9f8=0xbb8;return this['activeMarkers'][_0x40a5('0x84')](_0x499936[_0x40a5('0x4b')])&&(_0xb58cbe[_0x40a5('0x13f')](_0x40a5('0x95')),_0x59a9f8=0xbc2),'deletion'==_0x32fce5&&(_0x59a9f8+=0x5),{'classes':_0xb58cbe,'attributes':{'data-suggestion':_0x32670f},'priority':_0x59a9f8};}}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')]('dataDowncast')[_0x40a5('0xee')](_0x30906f=>{_0x30906f['on'](_0x40a5('0xfb'),(_0x2d7d94,_0x2f6864,_0x10f52c)=>{if(!_0x10f52c[_0x40a5('0x58')][_0x40a5('0x1')])return;const _0xee18d8=_0x2f6864[_0x40a5('0xd5')];if(!_0xee18d8)return;const _0x34cae3=_0x10f52c[_0x40a5('0x72')][_0x40a5('0x46')](_0xee18d8);_0x79341b[_0x40a5('0x10')][_0x40a5('0x3f')][_0x40a5('0xf5')](_0xee18d8)&&_0x34cae3&&!_0x34cae3['getCustomProperty'](_0x40a5('0x138'))&&_0x34cae3['is'](_0x40a5('0xdb'))&&_0x3b1f61(_0x34cae3,_0x10f52c[_0x40a5('0x108')]);},{'priority':'high'});}),_0x79341b[_0x40a5('0x109')]['for'](_0x40a5('0x6b'))[_0x40a5('0x11c')]({'model':'suggestion','view':(_0x4aa06b,_0x4395f4)=>{if(!_0x4395f4[_0x40a5('0x58')]['showSuggestionHighlights'])return null;const {type:_0x800511}=this['_splitMarkerName'](_0x4aa06b['markerName']);return{'classes':['ck-suggestion-marker',_0x40a5('0xc3')+_0x800511],'priority':0xbb8};}});const _0x24d478=({showActiveMarkers:_0x1c264b=!0x0}={})=>(_0x40736a,_0xba8367,_0x1915e5)=>{if(!_0xba8367[_0x40a5('0xd5')])return;if(_0xba8367[_0x40a5('0xd5')]['is'](_0x40a5('0x40')))return void _0x1915e5[_0x40a5('0x44')][_0x40a5('0xf2')](_0xba8367[_0x40a5('0xd5')],_0x40736a[_0x40a5('0x6f')]);const _0x4d85cf=_0x1915e5[_0x40a5('0x72')][_0x40a5('0x46')](_0xba8367[_0x40a5('0xd5')]);if(!(_0xba8367['item']['is'](_0x40a5('0xc7'))&&_0x79341b[_0x40a5('0x10')][_0x40a5('0x3f')][_0x40a5('0xe7')](_0xba8367[_0x40a5('0xd5')])&&!_0x4d85cf['getCustomProperty'](_0x40a5('0x132'))))return;const {id:_0x3cf325}=this['_splitMarkerName'](_0xba8367[_0x40a5('0x4b')]);_0x1915e5[_0x40a5('0x108')][_0x40a5('0x3a')]([_0x40a5('0x5d'),_0x40a5('0x30')],_0x4d85cf),_0x1915e5['writer']['setAttribute'](_0x40a5('0x105'),_0x3cf325,_0x4d85cf),_0x1915e5[_0x40a5('0x72')]['bindElementToMarker'](_0x4d85cf,_0xba8367[_0x40a5('0x4b')]),_0x1c264b&&(this[_0x40a5('0x14')]['includes'](_0xba8367[_0x40a5('0x4b')])?_0x1915e5['writer'][_0x40a5('0x3a')](_0x40a5('0x95'),_0x4d85cf):_0x1915e5['writer'][_0x40a5('0x87')](_0x40a5('0x95'),_0x4d85cf));for(const _0x5a84e2 of _0x79341b[_0x40a5('0x10')][_0x40a5('0xac')](_0xba8367['item'])['getItems']())_0x1915e5[_0x40a5('0x44')][_0x40a5('0xf2')](_0x5a84e2,_0x40736a[_0x40a5('0x6f')]);_0x1915e5[_0x40a5('0x44')][_0x40a5('0xf2')](_0xba8367[_0x40a5('0xd5')],_0x40736a[_0x40a5('0x6f')]);};_0x79341b['conversion'][_0x40a5('0x7f')](_0x40a5('0x6b'))['add'](_0x10fd3e=>{_0x10fd3e['on'](_0x40a5('0x31'),(_0xdf24d2,_0x10f637,_0x36dc79)=>{_0x36dc79[_0x40a5('0x58')][_0x40a5('0x1')]&&_0x24d478({'showActiveMarkers':!0x1})(_0xdf24d2,_0x10f637,_0x36dc79);},{'priority':_0x40a5('0x9a')});}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x6b'))[_0x40a5('0x129')]({'model':_0x40a5('0x63'),'view':(_0x22f19c,_0x430944)=>_0x430944[_0x40a5('0x58')][_0x40a5('0x1')]?null:{'group':_0x40a5('0x63'),'name':_0x22f19c['substr'](0xb)}}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x74'))[_0x40a5('0xcf')]({'view':{'name':_0x40a5('0x63'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15ac73,{writer:_0x48f1b1})=>{let _0x314a80=_0x40a5('0xf9')+_0x15ac73[_0x40a5('0x116')](_0x40a5('0x82'))+':'+_0x15ac73[_0x40a5('0x116')]('id');return _0x15ac73[_0x40a5('0x116')]('marker-count')&&(_0x314a80+=':'+_0x15ac73[_0x40a5('0x116')](_0x40a5('0xd4'))),_0x48f1b1[_0x40a5('0x7e')](_0x40a5('0x60'),{'data-name':_0x314a80});}}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')]('upcast')[_0x40a5('0xa1')]({'view':'suggestion'}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x20'))[_0x40a5('0xee')](_0x1c3304=>{_0x1c3304['on'](_0x40a5('0x31'),_0x24d478(),{'priority':'high'});}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x20'))[_0x40a5('0xee')](_0x2a0d6b=>{_0x2a0d6b['on']('removeMarker:suggestion:formatBlock',(_0x57f00f,_0x2b9b43,_0x2f4c97)=>{const _0x2c9354=_0x2f4c97[_0x40a5('0x72')][_0x40a5('0xd8')](_0x2b9b43[_0x40a5('0x4b')]);if(_0x2c9354)for(const _0x806eba of _0x2c9354)_0x806eba[_0x40a5('0x11e')](_0x40a5('0x132'))||(_0x2f4c97[_0x40a5('0x108')][_0x40a5('0x87')](['ck-suggestion-marker',_0x40a5('0x30'),_0x40a5('0x95')],_0x806eba),_0x2f4c97['writer'][_0x40a5('0xcc')](_0x40a5('0x105'),_0x806eba),_0x2f4c97[_0x40a5('0x72')]['unbindElementFromMarkerName'](_0x806eba,_0x2b9b43[_0x40a5('0x4b')]));},{'priority':_0x40a5('0xa4')});}),_0x79341b['model'][_0x40a5('0xaa')][_0x40a5('0xe0')](_0x290e45=>{let _0x292a9c=!0x1;const _0x647829=Array[_0x40a5('0x7b')](_0x79341b[_0x40a5('0x10')][_0x40a5('0xaa')][_0x40a5('0xff')][_0x40a5('0x70')]()),_0x2ad800=new Set();for(const {name:_0x1a7ece,data:_0x1f80f7}of _0x647829){const {group:_0x28d0b5,type:_0x4d2d6d,id:_0x2269dd}=this['_splitMarkerName'](_0x1a7ece);if(_0x40a5('0x63')!==_0x28d0b5)continue;const _0x2a43f1=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x2269dd);if(null!=_0x1f80f7[_0x40a5('0x100')]){_0x40a5('0x25')==_0x4d2d6d&&(_0x292a9c=_0x292a9c||$t(_0x1f80f7[_0x40a5('0x100')],_0x1a7ece,_0x290e45,_0x79341b[_0x40a5('0x10')]['schema']));if(_0x1f80f7[_0x40a5('0x100')][_0x40a5('0xf8')]||_0x40a5('0x85')==_0x1f80f7['newRange']['root'][_0x40a5('0xd1')]||_0x40a5('0xb5')==_0x4d2d6d&&!Rt(_0x1f80f7[_0x40a5('0x100')])||_0x40a5('0x101')==_0x4d2d6d&&!(!Mt(_0x133cc5=_0x1f80f7[_0x40a5('0x100')])&&!function(_0x5ce0db){return _0x5ce0db[_0x40a5('0x2e')]['parent']==_0x5ce0db['end'][_0x40a5('0x80')]&&_0x5ce0db['start'][_0x40a5('0x88')];}(_0x133cc5)))_0x290e45[_0x40a5('0xbf')](_0x1a7ece),_0x292a9c=!0x0;else{if(!_0x2a43f1||!_0x2a43f1[_0x40a5('0x115')])continue;_0x2ad800[_0x40a5('0xee')](_0x2a43f1);}}}var _0x133cc5;return _0x2ad800[_0x40a5('0xae')]>0x0&&(_0x292a9c=!!this[_0x40a5('0x61')](_0x2ad800)||_0x292a9c),_0x292a9c;}),_0x79341b['model'][_0x40a5('0xaa')][_0x40a5('0xe0')](_0x15a2e7=>{let _0x5d9b81=!0x1;for(const _0x3de2a0 of _0x79341b['model'][_0x40a5('0xaa')][_0x40a5('0xff')][_0x40a5('0x27')]()){if(_0x40a5('0x6a')!=_0x3de2a0[_0x40a5('0x13b')])continue;const _0x51b8d3=_0x3de2a0[_0x40a5('0x112')][_0x40a5('0xb8')](_0x3de2a0[_0x40a5('0x10e')]);if(_0x51b8d3['isAtEnd'])for(const _0xae9e27 of this[_0x40a5('0x68')][_0x40a5('0x32')]()){if(_0xae9e27[_0x40a5('0xa')]||!_0xae9e27['isInContent'])continue;if(_0x40a5('0xb5')!=_0xae9e27[_0x40a5('0x13b')])continue;const _0xa7243b=_0xae9e27[_0x40a5('0xe1')]();if(_0xa7243b['start'][_0x40a5('0x50')]!=_0xa7243b[_0x40a5('0xbc')][_0x40a5('0x50')]&&_0xa7243b[_0x40a5('0xbc')]['isEqual'](_0x3de2a0['position'])){const _0x4995b9=_0x79341b['model']['createRange'](_0xa7243b['start'],_0x51b8d3);_0x15a2e7[_0x40a5('0x64')](_0xae9e27[_0x40a5('0x131')](),{'range':_0x4995b9}),_0x5d9b81=!0x0;}}}return _0x5d9b81;}),_0x79341b['model'][_0x40a5('0x23')]['on'](_0x40a5('0x135'),(_0x2ddfaa,_0x375674,_0xd642e)=>{if(null==_0xd642e){const {id:_0x2de053}=this[_0x40a5('0x21')](_0x375674['name']),_0x346b74=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x2de053);_0x346b74&&_0x346b74['addMarkerName'](_0x375674[_0x40a5('0x6f')]);}}),_0x79341b['model'][_0x40a5('0xaa')]['on']('change:data',()=>{const _0x31b4fb=Array[_0x40a5('0x7b')](_0x79341b[_0x40a5('0x10')][_0x40a5('0xaa')][_0x40a5('0xff')][_0x40a5('0x70')]())[_0x40a5('0x133')](_0x43ad07=>'suggestion'===this['_splitMarkerName'](_0x43ad07['name'])['group']);if(0x0===_0x31b4fb[_0x40a5('0x10e')])return;_0x31b4fb[_0x40a5('0xe5')]((_0x2b4418,_0x28e729)=>{const _0x35bc26=_0x2b4418[_0x40a5('0x1d')][_0x40a5('0x1f')],_0x265240=_0x28e729[_0x40a5('0x1d')][_0x40a5('0x1f')];return null===_0x35bc26&&null===_0x265240?0x0:null===_0x35bc26&&null!==_0x265240?-0x1:null!==_0x35bc26&&null===_0x265240?0x1:_0x35bc26['start'][_0x40a5('0x9c')](_0x265240[_0x40a5('0x2e')])?-0x1:0x1;});const _0x390097=new Set(),_0x3029eb=new Set();for(const {name:_0x1aa597,data:_0x336f3d}of _0x31b4fb){const {id:_0x555d1b}=this['_splitMarkerName'](_0x1aa597);if(null===_0x336f3d[_0x40a5('0x1f')]){const _0x4592f3=this[_0x40a5('0x134')](_0x1aa597);_0x3029eb['add'](_0x4592f3);}else{const _0x33b9a9=this[_0x40a5('0x68')]['get'](_0x555d1b);null!==_0x336f3d[_0x40a5('0x100')]||_0x33b9a9[_0x40a5('0x115')]?(_0x390097[_0x40a5('0xee')](_0x33b9a9['head']),_0x3029eb[_0x40a5('0xee')](_0x33b9a9)):this['_removeSuggestion'](_0x33b9a9);}}_0x3029eb['size']>0x0&&this[_0x40a5('0x62')](_0x3029eb);for(const _0x5ecf98 of _0x390097)this[_0x40a5('0x5f')]('suggestionChanged',_0x5ecf98);}),_0x79341b['model']['on'](_0x40a5('0xf0'),(_0x258ebe,_0x23f45f)=>{const _0x37f761=_0x23f45f[0x0];if(!this[_0x40a5('0x68')][_0x40a5('0xae')])return;if(!_0x37f761['isDocumentOperation'])return;if(_0x37f761[_0x40a5('0x139')][_0x40a5('0xb4')]||!_0x37f761['batch'][_0x40a5('0x11a')])return;let _0x3240d1,_0x4ceadf;switch(_0x37f761['type']){case _0x40a5('0x6a'):_0x3240d1=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761[_0x40a5('0x112')]),_0x4ceadf=_0x3240d1['getShiftedBy'](_0x37f761[_0x40a5('0x5c')]);break;case _0x40a5('0x124'):_0x3240d1=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761[_0x40a5('0xc4')]),_0x4ceadf=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761[_0x40a5('0x7c')]);break;case _0x40a5('0xb3'):_0x3240d1=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761['targetPosition']),_0x4ceadf=_0x3240d1[_0x40a5('0xb8')](_0x37f761[_0x40a5('0x5c')]);break;default:return;}const _0x3f7859=_0x79341b[_0x40a5('0x10')][_0x40a5('0x9b')](_0x3240d1,_0x4ceadf);_0x79341b[_0x40a5('0x10')]['change'](()=>{for(const {suggestion:_0x14dbb2,meta:_0x74735e}of this[_0x40a5('0xb0')](_0x3f7859)){if(_0x14dbb2['isMultiRange'])continue;if(_0x40a5('0x25')==_0x14dbb2[_0x40a5('0x13b')])continue;const _0x39b342=_0x14dbb2[_0x40a5('0x1d')]&&_0x14dbb2[_0x40a5('0x1d')][_0x40a5('0xd0')];(_0x40a5('0xb5')!=_0x14dbb2[_0x40a5('0x13b')]||_0x40a5('0x124')==_0x37f761[_0x40a5('0x13b')]&&!_0x39b342)&&(_0x74735e['containsRangeInObject']||_0x40a5('0x11b')==_0x14dbb2['type']&&_0x74735e['isOwn']||_0x14dbb2[_0x40a5('0xe1')]()[_0x40a5('0x8b')](_0x3f7859)&&this['_breakSuggestionMarker'](_0x14dbb2,_0x3240d1,_0x4ceadf));}});},{'priority':_0x40a5('0xb9')}),_0x79341b[_0x40a5('0x10')]['on'](_0x40a5('0x110'),(_0x197d6b,_0x94d064)=>{const _0x302aa6=_0x94d064[0x0],_0x36b1dd=_0x94d064[0x1];if(_0x36b1dd&&_0x36b1dd[_0x40a5('0x117')])return;if(this[_0x40a5('0x16')])return;if(!this[_0x40a5('0xdd')][_0x40a5('0x9d')])return;if(_0x302aa6[_0x40a5('0xf8')])return;const _0x157d1f=_0x79341b['model'][_0x40a5('0x3f')],{start:_0x2fc00e,end:_0x536db2}=_0x302aa6[_0x40a5('0xe1')](),_0x55a9e2=_0x2fc00e[_0x40a5('0x3b')]&&_0x157d1f[_0x40a5('0x12a')](_0x2fc00e['nodeAfter'])?null:_0x157d1f[_0x40a5('0x4a')](_0x2fc00e,_0x40a5('0x35')),_0x3b422c=_0x536db2[_0x40a5('0x80')]&&_0x157d1f['isLimit'](_0x536db2[_0x40a5('0x80')])?null:_0x157d1f[_0x40a5('0x4a')](_0x536db2,_0x40a5('0x4e')),_0x3b39ed=_0x79341b[_0x40a5('0x10')]['createRange'](_0x55a9e2?_0x55a9e2[_0x40a5('0x2e')]:_0x2fc00e,_0x3b422c?_0x3b422c[_0x40a5('0xbc')]:_0x536db2);_0x79341b[_0x40a5('0x10')][_0x40a5('0xc5')](_0xe35f2b=>{this[_0x40a5('0x10b')](_0x3b39ed);const _0x371300=_0x79341b[_0x40a5('0x10')]['schema'][_0x40a5('0x4a')](_0x3b39ed[_0x40a5('0x2e')]);_0x302aa6['is'](_0x40a5('0x10c'))?_0xe35f2b['setSelection'](_0x371300):_0x302aa6[_0x40a5('0x136')](_0x371300);}),_0x197d6b[_0x40a5('0xdc')]();},{'priority':_0x195edd[_0x40a5('0x97')]+0xa}),_0x79341b[_0x40a5('0x10')]['on']('insertContent',(_0x2ae90d,_0x108f0e)=>{const _0x57d995=_0x108f0e[_0x108f0e[_0x40a5('0x10e')]-0x1];_0x57d995&&_0x57d995[_0x40a5('0x117')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x40a5('0x9d')]&&(_0x79341b[_0x40a5('0x10')][_0x40a5('0xc5')](()=>{let _0x8ecf00=_0x79341b[_0x40a5('0x10')][_0x40a5('0xe8')](_0x108f0e[0x0],_0x108f0e[0x1],_0x108f0e[0x2],{'forceDefaultExecution':!0x0});if(!_0x8ecf00)return;_0x2ae90d[_0x40a5('0xd')]=_0x8ecf00[_0x40a5('0xec')]();const _0x53fb6e=_0x8ecf00[_0x40a5('0xbc')]['nodeBefore'],_0xfd6c19=_0x79341b['model']['schema'];_0x53fb6e&&_0xfd6c19['isBlock'](_0x53fb6e)&&!_0xfd6c19['isObject'](_0x53fb6e)&&(_0x8ecf00=_0x79341b[_0x40a5('0x10')][_0x40a5('0x9b')](_0x8ecf00[_0x40a5('0x2e')],_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x53fb6e,'end'))),this[_0x40a5('0x4d')](_0x8ecf00);}),_0x2ae90d[_0x40a5('0xdc')]());},{'priority':_0x40a5('0xa4')}),this[_0x40a5('0x71')][_0x40a5('0x49')]['add']('trackChanges',this[_0x40a5('0xdd')]),this[_0x40a5('0x12e')](_0x40a5('0xa3'));const _0x212e4a=new _0x3ac607(_0x79341b,this[_0x40a5('0x68')]);_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0x2a'),_0x212e4a),this[_0x40a5('0x12e')](_0x40a5('0x2a'));const _0x116627=new _0xac96c6(_0x79341b,this[_0x40a5('0x68')]);_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0xba'),_0x116627),this[_0x40a5('0x12e')]('discardSuggestion'),_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')]('acceptAllSuggestions',new _0x2d5877(_0x79341b,_0x212e4a,this[_0x40a5('0x68')])),this[_0x40a5('0x12e')](_0x40a5('0xde')),_0x79341b[_0x40a5('0x49')]['add'](_0x40a5('0x7d'),new _0x2d5877(_0x79341b,_0x116627,this[_0x40a5('0x68')])),this['enableCommand']('discardAllSuggestions'),_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0x91'),new _0x5b9e52(_0x79341b,_0x212e4a,this[_0x40a5('0x68')])),this[_0x40a5('0x12e')](_0x40a5('0x91')),_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0x125'),new _0x5b9e52(_0x79341b,_0x116627,this['_suggestions'])),this[_0x40a5('0x12e')](_0x40a5('0x125'));const _0x549ad2=_0x79341b[_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0xcd'));this['listenTo'](_0x549ad2,_0x40a5('0x2c'),(_0xf4cfce,{threadId:_0x32a7b6})=>{const _0x5b60e7=this['_suggestions']['get'](_0x32a7b6);_0x5b60e7&&_0x5b60e7[_0x40a5('0x76')]&&0x1===_0x5b60e7[_0x40a5('0x76')][_0x40a5('0x10e')]&&this[_0x40a5('0x59')](_0x32a7b6,{'hasComments':!0x0});},{'priority':_0x40a5('0xdf')}),this[_0x40a5('0x18')](_0x549ad2,_0x40a5('0x8c'),(_0x350a63,{threadId:_0xdbb490})=>{const _0x543ef2=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0xdbb490);_0x543ef2&&_0x543ef2[_0x40a5('0x76')]&&!_0x543ef2[_0x40a5('0x76')][_0x40a5('0x10e')]&&this['_updateSuggestionData'](_0xdbb490,{'hasComments':!0x1});},{'priority':_0x40a5('0xdf')});}set['adapter'](_0x1a32bf){if(this[_0x40a5('0x75')])throw new _0xef0e66(_0x40a5('0xa8'),this);this[_0x40a5('0x75')]=_0x1a32bf;}get[_0x40a5('0x34')](){return this[_0x40a5('0x75')];}['getSuggestions']({skipNotAttached:_0x114147=!0x1,toJSON:_0x238d6a=!0x1}={}){const _0xce4e9d=[];for(const _0x2b8dd8 of this['_suggestions'][_0x40a5('0x32')]())_0x114147&&!_0x2b8dd8[_0x40a5('0x115')]||_0xce4e9d['push'](_0x2b8dd8);return _0x238d6a?_0xce4e9d[_0x40a5('0xf4')](_0x3ddcef=>_0x3ddcef[_0x40a5('0xbb')]()):_0xce4e9d;}[_0x40a5('0x5a')](_0x3b1019){const _0x5a7e76=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x3b1019);if(!_0x5a7e76)throw new _0xef0e66('track-changes-suggestion-not-found',this);return _0x5a7e76;}['hasSuggestion'](_0x3bbd75){return this['_suggestions'][_0x40a5('0xb2')](_0x3bbd75);}[_0x40a5('0xa9')](_0x3764e1){const {authorId:_0x447508,id:_0xe01ae1,attributes:_0x32fa88}=_0x3764e1,[_0x265937,_0x14db01]=_0x3764e1[_0x40a5('0x13b')]['split'](':'),_0x3aea58=this['_suggestions']['get'](_0xe01ae1)||this['_createSuggestion'](_0x265937,_0x14db01,_0xe01ae1,_0x447508,_0x32fa88);if(this['_addThreadToSuggestion'](_0x3aea58),this[_0x40a5('0xa0')](_0x3aea58,_0x265937,_0x14db01||null,_0x447508),_0x3aea58[_0x40a5('0xc2')]=_0x3764e1['createdAt'],_0x3aea58['_isDataLoaded']=!0x0,_0x32fa88&&_0x32fa88[_0x40a5('0x57')]){const _0x3404eb=_0x32fa88[_0x40a5('0x57')],_0x318c55=this[_0x40a5('0xef')](_0x3404eb['authorName']);_0x3aea58['authoredAt']=_0x3404eb[_0x40a5('0xc2')],_0x3aea58[_0x40a5('0xb1')]=_0x318c55,_0x3aea58[_0x40a5('0xf3')]=!0x0;}else _0x3aea58[_0x40a5('0x33')]=_0x3764e1[_0x40a5('0xc2')];switch(_0x3764e1[_0x40a5('0x1d')]&&(_0x3aea58[_0x40a5('0x1d')]=_0x3764e1[_0x40a5('0x1d')]),_0x3764e1[_0x40a5('0x47')]&&(_0x3aea58[_0x40a5('0x47')]=_0x3764e1[_0x40a5('0x47')]),this[_0x40a5('0x75')]&&this[_0x40a5('0x75')][_0x40a5('0x13c')]||(_0x3aea58['_saved']=!0x0),this[_0x40a5('0x119')][_0x40a5('0xe4')](_0x3aea58)){case _0x40a5('0xf'):this[_0x40a5('0x119')][_0x40a5('0x98')](_0x3aea58,_0x40a5('0x37'));break;case _0x40a5('0xa6'):_0x3aea58[_0x40a5('0x115')]?(this[_0x40a5('0x62')](new Set([_0x3aea58])),this[_0x40a5('0x61')](new Set([_0x3aea58])),this[_0x40a5('0x119')][_0x40a5('0x98')](_0x3aea58,'ready'),this[_0x40a5('0x5f')]('suggestionLoaded',_0x3aea58)):this[_0x40a5('0x119')]['set'](_0x3aea58,_0x40a5('0x28'));}return _0x3aea58;}[_0x40a5('0x2a')](_0x2ee2e2){this[_0x40a5('0x117')](()=>{this[_0x40a5('0x71')][_0x40a5('0x10')][_0x40a5('0xc5')](()=>{for(const _0x4290d8 of _0x2ee2e2[_0x40a5('0x78')]())_0x4290d8[_0x40a5('0x10d')]();});});}[_0x40a5('0xba')](_0x29ab63){this['forceDefaultExecution'](()=>{this[_0x40a5('0x71')][_0x40a5('0x10')][_0x40a5('0xc5')](()=>{for(const _0x4fa22d of _0x29ab63['getAllAdjacentSuggestions']())_0x4fa22d[_0x40a5('0x43')]();});});}[_0x40a5('0x12e')](_0x5c69c9,_0x9588d0){const _0x23771c=this[_0x40a5('0x71')][_0x40a5('0x49')]['get'](_0x5c69c9);if(!_0x23771c)throw new _0xef0e66(_0x40a5('0x2f'),this,{'commandName':_0x5c69c9});this[_0x40a5('0x48')][_0x40a5('0xee')](_0x23771c),_0x9588d0&&_0x23771c['on'](_0x40a5('0x118'),(_0x8bab2,_0x4a8197)=>{this[_0x40a5('0xdd')][_0x40a5('0x9d')]&&(this[_0x40a5('0x16')]||_0x4a8197[_0x40a5('0x10e')]>0x0&&_0x4a8197[_0x4a8197[_0x40a5('0x10e')]-0x1]&&_0x4a8197[_0x4a8197[_0x40a5('0x10e')]-0x1][_0x40a5('0x117')]||(_0x8bab2[_0x40a5('0xd')]=_0x9588d0((..._0x1bee47)=>_0x23771c[_0x40a5('0x118')](..._0x1bee47,{'forceDefaultExecution':!0x0}),..._0x4a8197),_0x8bab2['stop']()));},{'priority':_0x40a5('0xa4')});}['forceDefaultExecution'](_0x5979ca){let _0x4d8085,_0xdef540;const _0x364d8e=this[_0x40a5('0x16')];this[_0x40a5('0x16')]=!0x0;try{_0x4d8085=_0x5979ca();}catch(_0x57cb84){_0xdef540=_0x57cb84;}return _0x364d8e||(this[_0x40a5('0x16')]=!0x1),_0xdef540&&_0xef0e66[_0x40a5('0xe3')](_0xdef540,this),_0x4d8085;}[_0x40a5('0x4d')](_0x36cacc,_0x20baf5=null,_0x2e894d={}){if(_0x36cacc[_0x40a5('0xf8')])return null;const _0x5ade8b=this[_0x40a5('0x71')][_0x40a5('0x83')]['get']('Users')['me'];for(const {suggestion:_0x3be5de,meta:_0x4612a3}of this[_0x40a5('0xb0')](_0x36cacc,'insertion'))if(_0x4612a3['isOwn']){if(!_0x4612a3[_0x40a5('0x9e')]){if(_0x4612a3[_0x40a5('0x123')]){if(!this[_0x40a5('0x56')]||!Ot(_0x3be5de,_0x2e894d))continue;return _0x3be5de;}if(Ot(_0x3be5de,_0x2e894d))return _0x3be5de;this['_breakSuggestionMarker'](_0x3be5de,_0x36cacc['start'],_0x36cacc[_0x40a5('0xbc')]);break;}if(_0x20baf5==_0x3be5de[_0x40a5('0x4f')]&&Ot(_0x3be5de,_0x2e894d)){const _0x46e892=_0x3be5de[_0x40a5('0xe1')]();return _0x46e892[_0x40a5('0x2e')][_0x40a5('0x90')](_0x36cacc[_0x40a5('0xbc')])?this['_setSuggestionRange'](_0x3be5de,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x36cacc[_0x40a5('0x2e')],_0x46e892[_0x40a5('0xbc')])):this[_0x40a5('0x130')](_0x3be5de,this['_model']['createRange'](_0x46e892[_0x40a5('0x2e')],_0x36cacc[_0x40a5('0xbc')])),_0x3be5de;}}const _0x4a6c96=_0x2fe5d6(),_0x16c69a=_0x5ade8b['id'],_0x57d747=_0x20baf5?'insertion:'+_0x20baf5:_0x40a5('0x11b'),_0x2629e7=this[_0x40a5('0x1b')]({'id':_0x4a6c96,'type':_0x57d747,'createdAt':new Date(),'authorId':_0x16c69a,'attributes':_0x2e894d});return this[_0x40a5('0xe9')](_0x57d747,_0x4a6c96,_0x16c69a,_0x36cacc),_0x2629e7;}['markMultiRangeInsertion'](_0x5b1d9e,_0xd4969a='multi',_0x28c090={}){const _0x3ec993=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))['me'],_0x5b1bf4=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x11b'),_0xd4969a,_0x40a5('0x65'));for(const _0x5d99fb of this['getSuggestions']())if(_0x5d99fb[_0x40a5('0xb1')]['id']==_0x3ec993['id']&&'insertion'==_0x5d99fb[_0x40a5('0x13b')]&&_0x5d99fb[_0x40a5('0x4f')]==_0xd4969a&&Ot(_0x5d99fb,_0x28c090)&&(_0x5b1bf4(_0x5d99fb[_0x40a5('0xed')](),_0x5b1d9e)||_0x5b1bf4(_0x5b1d9e,_0x5d99fb['getRanges']()))){for(const _0x1fd067 of _0x5b1d9e)_0x5d99fb['addRange'](_0x1fd067);return _0x5d99fb;}for(const {suggestion:_0x9b1e22,meta:_0xa6b3af}of this[_0x40a5('0xb0')](_0x5b1d9e,'insertion')){if(!_0xa6b3af[_0x40a5('0x13')])continue;if(!this[_0x40a5('0x56')]&&_0xa6b3af['containsRangeInObject'])continue;if(!Ot(_0x9b1e22,_0x28c090))continue;let _0x48b392=!0x0;for(const _0x175121 of _0x9b1e22[_0x40a5('0xed')]())for(const _0x140fcf of _0x5b1d9e)if(!_0x175121['containsRange'](_0x140fcf)){_0x48b392=!0x1;break;}if(_0x48b392)return _0x9b1e22;}const _0xc4eba0=_0x2fe5d6(),_0x3821bd=_0x3ec993['id'],_0x4f09dc=_0x40a5('0xce')+_0xd4969a,_0x541a60=this[_0x40a5('0x1b')]({'id':_0xc4eba0,'type':_0x4f09dc,'createdAt':new Date(),'authorId':_0x3821bd,'attributes':_0x28c090});for(const _0x46105c of _0x5b1d9e)this[_0x40a5('0xe9')](_0x4f09dc,_0xc4eba0,_0x3821bd,_0x46105c,_0x459923[_0x40a5('0x92')]());return _0x541a60;}[_0x40a5('0xc')](_0x5541a7,_0x25e957,_0x596b6e=null,_0x3c011b={}){if(_0x596b6e=_0x596b6e||Nt(_0x25e957),_0x5541a7[_0x40a5('0xf8')])return null;if(_0x40a5('0x3c')===this[_0x40a5('0x1c')]){const _0x84f893=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x25'),_0x596b6e,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x84f893([_0x5541a7],_0x25e957,_0x3c011b)),null;}const _0x6ab8ff=this[_0x40a5('0x71')][_0x40a5('0x83')]['get'](_0x40a5('0x8'))['me'],_0x1113a7=[];if(_0x40a5('0x103')!==this[_0x40a5('0x1c')])for(const {suggestion:_0x42f927,meta:_0x15ff39}of this[_0x40a5('0xb0')](_0x5541a7,_0x40a5('0x11b')))_0x15ff39[_0x40a5('0x13')]&&!_0x15ff39[_0x40a5('0x73')]&&_0x1113a7[_0x40a5('0x13f')](..._0x42f927[_0x40a5('0xed')]());const _0x4854a1=function(_0x154771,_0x42cdb5){const _0x1bab77=[];for(const _0x43120a of _0x42cdb5){const _0x46f736=_0x154771['getIntersection'](_0x43120a);_0x46f736&&_0x1bab77['push'](_0x46f736);}return _0x1bab77;}(_0x5541a7,_0x1113a7),_0x525854=function(_0x5b2376,_0x1ff732){const _0x26b91e=[_0x5b2376];for(const _0xf9a149 of _0x1ff732){let _0x5b692e=0x0;for(;_0x5b692e<_0x26b91e[_0x40a5('0x10e')];){const _0x44d527=_0x26b91e[_0x5b692e][_0x40a5('0xcb')](_0xf9a149);_0x26b91e[_0x40a5('0xb')](_0x5b692e,0x1,..._0x44d527),_0x5b692e+=_0x44d527[_0x40a5('0x10e')];}}return _0x26b91e;}(_0x5541a7,_0x1113a7);_0x4854a1[_0x40a5('0x10e')]&&this[_0x40a5('0xfa')]['change'](()=>{for(const _0x50d982 of _0x4854a1){const _0x2a7cfb=this[_0x40a5('0xf7')]['getSuggestionCallback']('formatInline',_0x596b6e,'accept');this[_0x40a5('0x117')](()=>_0x2a7cfb([_0x50d982],_0x25e957,_0x3c011b));}});for(const _0x485197 of _0x525854){let _0xcf0c68=null,_0x49b5b9=_0x485197[_0x40a5('0x2e')],_0x532a7c=_0x485197[_0x40a5('0xbc')];for(const {suggestion:_0x276e90,meta:_0x2a0187}of this[_0x40a5('0xb0')](_0x485197,_0x40a5('0x25'))){if(!_0x2a0187[_0x40a5('0x13')])continue;if(_0x276e90[_0x40a5('0x4f')]!=_0x596b6e)continue;if(!Ot(_0x276e90,_0x3c011b))continue;const _0x1f9de2=_0x276e90['getFirstRange']();if(_0x1f9de2['containsRange'](_0x485197,!0x0))return null;_0x49b5b9=_0x49b5b9[_0x40a5('0x9c')](_0x1f9de2[_0x40a5('0x2e')])?_0x49b5b9:_0x1f9de2['start'],_0x532a7c=_0x532a7c['isAfter'](_0x1f9de2[_0x40a5('0xbc')])?_0x532a7c:_0x1f9de2['end'],_0xcf0c68?_0x1f9de2[_0x40a5('0x2e')][_0x40a5('0x9c')](_0xcf0c68['getFirstRange']()[_0x40a5('0x2e')])?(_0xcf0c68[_0x40a5('0x8d')](),_0xcf0c68=_0x276e90):_0x276e90[_0x40a5('0x8d')]():_0xcf0c68=_0x276e90;}const _0x3b6ecc=this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x49b5b9,_0x532a7c);if(_0xcf0c68)this['_setSuggestionRange'](_0xcf0c68,_0x3b6ecc);else{const _0xbe3088=_0x2fe5d6(),_0x426206=_0x6ab8ff['id'];this['_setSuggestionData']({'id':_0xbe3088,'type':'formatInline:'+_0x596b6e,'data':_0x25e957,'createdAt':new Date(),'authorId':_0x426206,'attributes':_0x3c011b}),this[_0x40a5('0xe9')](_0x40a5('0x17')+_0x596b6e,_0xbe3088,_0x426206,_0x3b6ecc);}}return null;}[_0x40a5('0x4c')](_0x42946e,_0x438198,_0x293809=[],_0x163962=null,_0x463767={}){_0x438198[_0x40a5('0x1e')]||(_0x438198[_0x40a5('0x1e')]=_0x438198[_0x40a5('0x54')]),_0x438198[_0x40a5('0xd0')]=_0x42946e['is'](_0x40a5('0xfc')),_0x163962=_0x163962||Nt(_0x438198);const _0x384610=_0x293809[_0x40a5('0xf4')](_0x3d0079=>jt(_0x3d0079,this[_0x40a5('0xfa')])),_0x5455d4=_0x42946e['is'](_0x40a5('0xfc'))?_0x42946e:jt(_0x42946e,this[_0x40a5('0xfa')]);if(_0x40a5('0x3c')===this['_trackFormatChanges']){const _0x1f7bd5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x163962,_0x40a5('0x10d'));return this['forceDefaultExecution'](()=>_0x1f7bd5([_0x5455d4],_0x438198,_0x463767)),null;}_0x384610[_0x40a5('0x13f')](_0x5455d4);let _0xec3ba0=!0x0;for(const _0x3dbdb7 of _0x384610)if(!this['_rangeIsInLocalUserInsertion'](_0x3dbdb7)){_0xec3ba0=!0x1;break;}if(_0xec3ba0&&_0x40a5('0x103')!==this[_0x40a5('0x1c')]){const _0x190ca6=this[_0x40a5('0xf7')][_0x40a5('0x45')]('formatBlock',_0x163962,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x190ca6([_0x5455d4],_0x438198,_0x463767)),null;}let _0x1b7392=null,_0x4ed55a=_0x5455d4[_0x40a5('0x2e')],_0x5a3565=_0x5455d4[_0x40a5('0xbc')];for(const {suggestion:_0x4094,meta:_0x11644c}of this[_0x40a5('0xb0')](_0x5455d4,_0x40a5('0xb5'))){if(!_0x11644c['isOwn'])continue;if(_0x11644c[_0x40a5('0x9e')]||_0x11644c['containsRangeInObject']||_0x11644c[_0x40a5('0x73')])continue;if(_0x4094[_0x40a5('0x1d')]['formatGroupId']!=_0x438198[_0x40a5('0x1e')])continue;if(!Ot(_0x4094,_0x463767))continue;const _0x3fda55=_0x4094[_0x40a5('0xe1')]();if(_0x4094[_0x40a5('0x4f')]==_0x163962){if(_0x3fda55[_0x40a5('0x8b')](_0x5455d4,!0x0))return null;_0x4ed55a=_0x4ed55a[_0x40a5('0x9c')](_0x3fda55['start'])?_0x4ed55a:_0x3fda55[_0x40a5('0x2e')],_0x5a3565=_0x5a3565['isAfter'](_0x3fda55['end'])?_0x5a3565:_0x3fda55[_0x40a5('0xbc')],_0x1b7392?_0x3fda55[_0x40a5('0x2e')][_0x40a5('0x9c')](_0x1b7392['getFirstRange']()[_0x40a5('0x2e')])?(_0x1b7392['removeMarkers'](),_0x1b7392=_0x4094):_0x4094[_0x40a5('0x8d')]():_0x1b7392=_0x4094;}else{const _0x1f359c=_0x5455d4[_0x40a5('0x1a')](_0x3fda55);this[_0x40a5('0xe2')](_0x4094,_0x1f359c);}}const _0x154d1d=this['editor'][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))['me'],_0x48b0d6=_0x2fe5d6(),_0x29dfc7=_0x154d1d['id'];if(_0x1b7392)return this[_0x40a5('0x130')](_0x1b7392,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x4ed55a,_0x5a3565)),_0x1b7392;{const _0x574c26=this['_setSuggestionData']({'id':_0x48b0d6,'type':_0x40a5('0x51')+_0x163962,'data':_0x438198,'createdAt':new Date(),'authorId':_0x29dfc7,'attributes':_0x463767});return this[_0x40a5('0xe9')](_0x40a5('0x51')+_0x163962,_0x48b0d6,_0x29dfc7,this[_0x40a5('0xfa')]['createRange'](_0x4ed55a,_0x5a3565)),_0x574c26;}}['markMultiRangeBlockFormat'](_0x5d0d2d,_0x89ad6b,_0x4cd8d6=[],_0x410bfb=null,_0x49c587={}){_0x89ad6b[_0x40a5('0x1e')]||(_0x89ad6b[_0x40a5('0x1e')]=_0x89ad6b[_0x40a5('0x54')]);const _0x1b0487=_0x5d0d2d[0x0];_0x89ad6b['multipleBlocks']=_0x1b0487['is'](_0x40a5('0xfc')),_0x410bfb=_0x410bfb||Nt(_0x89ad6b);const _0x2b7e03=_0x4cd8d6[_0x40a5('0xf4')](_0x3ec9dc=>jt(_0x3ec9dc,this['_model'])),_0xbda618=_0x1b0487['is'](_0x40a5('0xfc'))?_0x5d0d2d:_0x5d0d2d[_0x40a5('0xf4')](_0x34d8db=>jt(_0x34d8db,this[_0x40a5('0xfa')]));if('never'===this['_trackFormatChanges']){const _0x318a59=this[_0x40a5('0xf7')]['getSuggestionCallback'](_0x40a5('0xb5'),_0x410bfb,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x318a59(_0xbda618,_0x89ad6b,_0x49c587)),null;}_0x2b7e03['push'](..._0xbda618);let _0x5b673f=!0x0;for(const _0x3a897a of _0x2b7e03)if(!this[_0x40a5('0x11d')](_0x3a897a)){_0x5b673f=!0x1;break;}if(_0x5b673f&&_0x40a5('0x103')!==this[_0x40a5('0x1c')]){const _0x17dd8f=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0xb5'),_0x410bfb,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x17dd8f(_0xbda618,_0x89ad6b,_0x49c587)),null;}const _0x2b5f2d=this[_0x40a5('0x71')]['plugins'][_0x40a5('0xe4')]('Users')['me'];for(const _0x353ba9 of this[_0x40a5('0x6c')]()){if(_0x353ba9[_0x40a5('0xb1')]['id']!=_0x2b5f2d['id'])continue;if('formatBlock'!=_0x353ba9[_0x40a5('0x13b')]||_0x353ba9[_0x40a5('0x1d')][_0x40a5('0x1e')]!=_0x89ad6b[_0x40a5('0x1e')])continue;if(!Ot(_0x353ba9,_0x49c587))continue;const _0x3e84b9=_0x353ba9[_0x40a5('0x4f')]==_0x410bfb;for(let _0x5e3807=0x0;_0x5e3807<_0xbda618[_0x40a5('0x10e')];_0x5e3807++){const _0x352c73=_0xbda618[_0x5e3807];for(const _0x44b664 of _0x353ba9[_0x40a5('0xbd')]()){const _0x307350=_0x44b664['getRange']();if(_0x352c73[_0x40a5('0x90')](_0x307350)){_0x3e84b9?(_0xbda618[_0x40a5('0xb')](_0x5e3807,0x1),_0x5e3807--):_0x353ba9[_0x40a5('0xbf')](_0x44b664[_0x40a5('0x6f')]);break;}}}}if(0x0==_0xbda618[_0x40a5('0x10e')])return null;const _0x137012=this[_0x40a5('0xf7')][_0x40a5('0x45')]('formatBlock',_0x410bfb,_0x40a5('0x65'));for(const _0x333c97 of this[_0x40a5('0x6c')]())if(_0x333c97[_0x40a5('0xb1')]['id']==_0x2b5f2d['id']&&_0x40a5('0xb5')==_0x333c97[_0x40a5('0x13b')]&&_0x333c97[_0x40a5('0x1d')][_0x40a5('0x1e')]==_0x89ad6b[_0x40a5('0x1e')]&&_0x333c97[_0x40a5('0x4f')]==_0x410bfb&&Ot(_0x333c97,_0x49c587)&&(_0x137012(_0x333c97[_0x40a5('0xed')](),_0xbda618)||_0x137012(_0xbda618,_0x333c97[_0x40a5('0xed')]()))){for(const _0x4fd7e8 of _0xbda618)_0x333c97['addRange'](_0x4fd7e8);return _0x333c97;}const _0x2d9adf=_0x2fe5d6(),_0x48372d=_0x2b5f2d['id'],_0x1ea5c7=_0x40a5('0x51')+_0x410bfb,_0xb8853f=this[_0x40a5('0x1b')]({'id':_0x2d9adf,'type':_0x1ea5c7,'data':_0x89ad6b,'createdAt':new Date(),'authorId':_0x48372d,'attributes':_0x49c587});for(const _0x59bc3a of _0xbda618)this[_0x40a5('0xe9')](_0x1ea5c7,_0x2d9adf,_0x48372d,_0x59bc3a,_0x459923[_0x40a5('0x92')]());return _0xb8853f;}[_0x40a5('0x10b')](_0x41b957,_0x5e55d6=null,_0xa49b82={}){if(_0x41b957[_0x40a5('0xf8')])return null;const _0x12b50f=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')]('Users')['me'],_0x1bb6d9=new _0x3032ac(_0x41b957['start'],_0x41b957[_0x40a5('0xbc')]);for(const {suggestion:_0x4f15a7,meta:_0x56a1fd}of this[_0x40a5('0xb0')](_0x1bb6d9,_0x40a5('0x11b')))if(_0x56a1fd[_0x40a5('0x13')]&&!_0x56a1fd[_0x40a5('0x9e')]){if(_0x4f15a7['isMultiRange']){const _0xd89742=_0x4f15a7[_0x40a5('0xed')]()['filter'](_0x6fa373=>_0x40a5('0x85')!=_0x6fa373[_0x40a5('0xab')][_0x40a5('0xd1')]);_0xd89742[_0x40a5('0x127')](_0x17bdad=>_0x1bb6d9[_0x40a5('0x8b')](_0x17bdad,!0x0))&&_0x4f15a7[_0x40a5('0x43')]();if(_0xd89742[_0x40a5('0xc6')](_0x11403a=>_0x11403a[_0x40a5('0x8b')](_0x1bb6d9,!0x0))){const _0x528db6=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x101'),_0x5e55d6,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x528db6([_0x1bb6d9],null,_0xa49b82)),null;}}else{const _0x19a1de=_0x1bb6d9[_0x40a5('0x1a')](_0x4f15a7['getFirstRange']());null!==_0x19a1de&&_0x4f15a7['_onDiscard']([_0x19a1de],null,_0xa49b82);}}if(_0x1bb6d9[_0x40a5('0x10a')](),_0x1bb6d9[_0x40a5('0xf8')]||_0x40a5('0x85')==_0x1bb6d9[_0x40a5('0xab')]['rootName'])return null;let _0x5c275d=null,_0x279e4f=_0x1bb6d9[_0x40a5('0x2e')],_0x12c2b9=_0x1bb6d9[_0x40a5('0xbc')];const _0x441eb0=this['_findSuggestions'](_0x1bb6d9,_0x40a5('0x101'));for(const {suggestion:_0x52559f,meta:_0x4d687e}of _0x441eb0){const _0x533123=this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x279e4f,_0x12c2b9);if(_0x4d687e[_0x40a5('0x13')]&&(this['_mergeNestedSuggestions']||!_0x4d687e[_0x40a5('0x123')]&&!_0x4d687e[_0x40a5('0x73')])){if(_0x52559f[_0x40a5('0xa')]){if(!Ot(_0x52559f,_0xa49b82))continue;let _0x58425e=!0x0;for(const _0x25c148 of _0x52559f[_0x40a5('0xed')]()){if(_0x25c148['containsRange'](_0x533123,!0x0))return _0x52559f;_0x533123[_0x40a5('0x8b')](_0x25c148)||(_0x58425e=!0x1);}_0x58425e&&_0x52559f[_0x40a5('0x43')]();}else{const _0x43b38e=_0x52559f[_0x40a5('0xe1')]();if(_0x43b38e[_0x40a5('0x8b')](_0x533123,!0x0))return _0x52559f;if(!Ot(_0x52559f,_0xa49b82)){_0x533123['containsRange'](_0x43b38e)?_0x52559f['removeMarkers']():_0x43b38e[_0x40a5('0xc0')](_0x279e4f)?_0x279e4f=_0x43b38e[_0x40a5('0xbc')]:_0x43b38e['containsPosition'](_0x12c2b9)&&(_0x12c2b9=_0x43b38e['start']);continue;}_0x279e4f=_0x279e4f['isBefore'](_0x43b38e[_0x40a5('0x2e')])?_0x279e4f:_0x43b38e['start'],_0x12c2b9=_0x12c2b9[_0x40a5('0x81')](_0x43b38e[_0x40a5('0xbc')])?_0x12c2b9:_0x43b38e[_0x40a5('0xbc')],_0xa49b82=Object[_0x40a5('0x7a')]({},_0x52559f[_0x40a5('0x47')]),_0x5c275d?_0x43b38e[_0x40a5('0x2e')]['isBefore'](_0x5c275d['getFirstRange']()['start'])?(_0x5c275d[_0x40a5('0x8d')](),_0x5c275d=_0x52559f):_0x52559f[_0x40a5('0x8d')]():_0x5c275d=_0x52559f;}}}if(_0x5c275d)return this[_0x40a5('0x130')](_0x5c275d,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x279e4f,_0x12c2b9)),_0x5c275d;{const _0x7195e=_0x2fe5d6(),_0x11fed7=this['_model'][_0x40a5('0x9b')](_0x279e4f,_0x12c2b9),_0x2e23b8=_0x12b50f['id'],_0x1c2da5=_0x5e55d6?_0x40a5('0xa2')+_0x5e55d6:_0x40a5('0x101'),_0x5c2343=this['_setSuggestionData']({'id':_0x7195e,'type':_0x1c2da5,'createdAt':new Date(),'authorId':_0x2e23b8,'attributes':_0xa49b82});return this[_0x40a5('0xe9')](_0x1c2da5,_0x7195e,_0x2e23b8,_0x11fed7),_0x5c2343;}}['markMultiRangeDeletion'](_0x222157,_0x59b4cc='multi',_0x16fc63={}){const _0x196be7=this['editor'][_0x40a5('0x83')][_0x40a5('0xe4')]('Users')['me'],_0x5efa1e=_0x222157['map'](_0x62d363=>new _0x3032ac(_0x62d363[_0x40a5('0x2e')],_0x62d363[_0x40a5('0xbc')])),_0x295619=new Set();for(const {suggestion:_0x4222d8,meta:_0x55658a}of this[_0x40a5('0xb0')](_0x5efa1e,_0x40a5('0x11b')))_0x55658a[_0x40a5('0x13')]&&!_0x55658a[_0x40a5('0x9e')]&&_0x295619[_0x40a5('0xee')](_0x4222d8);for(const _0x13a5d4 of _0x295619)if(_0x13a5d4['isMultiRange']){const _0x145ea5=_0x13a5d4[_0x40a5('0xed')]();(!_0x13a5d4[_0x40a5('0x47')]||!_0x13a5d4['attributes'][_0x40a5('0xd7')])&&(_0x145ea5[_0x40a5('0x127')](_0x3b8125=>_0x5efa1e['some'](_0x144f93=>_0x144f93[_0x40a5('0x8b')](_0x3b8125,!0x0)))&&_0x13a5d4[_0x40a5('0x43')]());if(_0x5efa1e[_0x40a5('0x127')](_0x408d3c=>_0x145ea5[_0x40a5('0xc6')](_0x4e0abe=>_0x4e0abe[_0x40a5('0x8b')](_0x408d3c,!0x0)))){const _0x442f85=this['_suggestionFactory'][_0x40a5('0x45')]('deletion',_0x59b4cc,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x442f85(_0x222157,null,_0x16fc63)),null;}}else{const _0x250384=_0x13a5d4[_0x40a5('0xe1')]();_0x5efa1e['some'](_0x31fc6d=>_0x31fc6d['containsRange'](_0x250384,!0x0))&&_0x13a5d4[_0x40a5('0x43')]();if(_0x5efa1e[_0x40a5('0x127')](_0x4a0a70=>_0x250384[_0x40a5('0x8b')](_0x4a0a70,!0x0))){const _0x71166f=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x101'),_0x59b4cc,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x71166f(_0x5efa1e,null,_0x16fc63)),null;}}const _0x5449b0=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x101'),_0x59b4cc,_0x40a5('0x65'));let _0x296c05=null;for(const _0xc8e2a8 of this[_0x40a5('0x6c')]())if(_0xc8e2a8['author']['id']==_0x196be7['id']&&_0xc8e2a8[_0x40a5('0x115')]&&_0x40a5('0x101')==_0xc8e2a8['type']&&_0xc8e2a8[_0x40a5('0x4f')]==_0x59b4cc&&Ot(_0xc8e2a8,_0x16fc63)&&(_0x5449b0(_0xc8e2a8[_0x40a5('0xed')](),_0x5efa1e)||_0x5449b0(_0x5efa1e,_0xc8e2a8[_0x40a5('0xed')]()))){if(_0x296c05){if(_0xc8e2a8[_0x40a5('0x76')]&&_0xc8e2a8[_0x40a5('0x76')][_0x40a5('0x10e')])continue;for(const _0x1aefcc of _0xc8e2a8[_0x40a5('0xed')]())_0x296c05[_0x40a5('0x52')](_0x1aefcc)||_0x296c05['addRange'](_0x1aefcc);_0xc8e2a8[_0x40a5('0x8d')]();}else{_0x296c05=_0xc8e2a8;for(const _0x33803a of _0x5efa1e)_0xc8e2a8[_0x40a5('0x52')](_0x33803a)||_0xc8e2a8[_0x40a5('0x3')](_0x33803a);}}if(_0x296c05)return _0x296c05;_0x295619[_0x40a5('0xfd')]();for(const {suggestion:_0x16e52a,meta:_0x25921e}of this[_0x40a5('0xb0')](_0x5efa1e,_0x40a5('0x101')))_0x25921e['isOwn']&&(this[_0x40a5('0x56')]||!_0x25921e[_0x40a5('0x123')]&&!_0x25921e[_0x40a5('0x73')])&&Ot(_0x16e52a,_0x16fc63)&&_0x295619[_0x40a5('0xee')](_0x16e52a);for(const _0x29186b of _0x295619){const _0x269e48=_0x29186b[_0x40a5('0xed')]();if(!_0x16fc63||!_0x16fc63[_0x40a5('0xd7')]){if(_0x5efa1e[_0x40a5('0x127')](_0x593bcc=>_0x269e48[_0x40a5('0xc6')](_0xdb5847=>_0xdb5847[_0x40a5('0x8b')](_0x593bcc,!0x0))))return _0x29186b;}(!_0x29186b[_0x40a5('0x47')]||!_0x29186b[_0x40a5('0x47')][_0x40a5('0xd7')])&&(_0x269e48[_0x40a5('0x127')](_0x590d54=>_0x5efa1e[_0x40a5('0xc6')](_0x58d72b=>_0x58d72b[_0x40a5('0x8b')](_0x590d54,!0x0)))&&_0x29186b[_0x40a5('0x43')]());}const _0x1ef9fb=_0x2fe5d6(),_0x45d990=_0x196be7['id'],_0x3c5e9d=_0x40a5('0xa2')+_0x59b4cc,_0x167eeb=this[_0x40a5('0x1b')]({'id':_0x1ef9fb,'type':_0x3c5e9d,'createdAt':new Date(),'authorId':_0x45d990,'attributes':_0x16fc63});for(const _0x499d28 of _0x5efa1e)_0x499d28[_0x40a5('0x10a')](),_0x499d28[_0x40a5('0xf8')]||_0x40a5('0x85')==_0x499d28[_0x40a5('0xab')][_0x40a5('0xd1')]||this[_0x40a5('0xe9')](_0x3c5e9d,_0x1ef9fb,_0x45d990,_0x499d28,_0x459923[_0x40a5('0x92')]());return _0x167eeb;}[_0x40a5('0x130')](_0x5193f0,_0x1101f7){const _0x3f2c4c=_0x5193f0[_0x40a5('0x131')]();this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0x18636f=>{_0x18636f[_0x40a5('0x64')](_0x3f2c4c,{'range':_0x1101f7});});}[_0x40a5('0x15')](_0x1084d1){const _0x58a02d=_0x1084d1['id'],_0x323a01=this[_0x40a5('0x71')]['config'][_0x40a5('0xe4')](_0x40a5('0x114'));this['_commentsRepository']['hasCommentThread'](_0x58a02d)||this[_0x40a5('0x113')][_0x40a5('0x22')]({'channelId':_0x323a01,'threadId':_0x58a02d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x38ab7c=this[_0x40a5('0x113')][_0x40a5('0x11f')](_0x58a02d);_0x38ab7c['unbind']('isRemovable'),_0x38ab7c[_0x40a5('0xda')]=!0x1,_0x1084d1[_0x40a5('0x76')]=_0x38ab7c;}[_0x40a5('0xa0')](_0x4e8b6b,_0x29f537,_0x51b106,_0x151959){if(_0x4e8b6b[_0x40a5('0x13b')]!=_0x29f537||_0x4e8b6b[_0x40a5('0x4f')]!=_0x51b106||_0x4e8b6b['creator']['id']!=_0x151959)throw this[_0x40a5('0x71')][_0x40a5('0x8a')]('track-changes-suggestion-data-mismatch'),new _0xef0e66(_0x40a5('0x12'),this);}[_0x40a5('0xe2')](_0x3f3b52,_0x3887e0){const _0x2b9d3e=_0x3f3b52[_0x40a5('0xe1')]();if(_0x3887e0[_0x40a5('0x90')](_0x2b9d3e))_0x3f3b52[_0x40a5('0x8d')]();else{if(_0x2b9d3e[_0x40a5('0x8b')](_0x3887e0)){const _0x3abbfc=this[_0x40a5('0xfa')]['createPositionAt'](_0x3887e0[_0x40a5('0x2e')]['nodeBefore'],_0x40a5('0xbc'));this['_setSuggestionRange'](_0x3f3b52,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x2b9d3e[_0x40a5('0x2e')],_0x3abbfc));const _0x51d7cf=_0x2fe5d6(),_0x3235f7=_0x3f3b52[_0x40a5('0x5e')]['id'],_0x2b4b5e=_0x3f3b52[_0x40a5('0x13b')]+':'+_0x3f3b52[_0x40a5('0x4f')];this[_0x40a5('0x1b')]({'id':_0x51d7cf,'type':_0x2b4b5e,'createdAt':new Date(),'authorId':_0x3235f7,'data':_0x3f3b52[_0x40a5('0x1d')],'attributes':_0x3f3b52[_0x40a5('0x47')]});const _0xa537e8=this[_0x40a5('0xfa')][_0x40a5('0xad')](_0x3887e0[_0x40a5('0xbc')][_0x40a5('0x50')],_0x40a5('0x8e')),_0x49a50a=this[_0x40a5('0xfa')]['createRange'](_0xa537e8,_0x2b9d3e[_0x40a5('0xbc')]);this['_addSuggestionMarker'](_0x2b4b5e,_0x51d7cf,_0x3235f7,_0x49a50a);}else{if(_0x2b9d3e['containsPosition'](_0x3887e0['start'])){const _0x2af126=this[_0x40a5('0xfa')][_0x40a5('0xad')](_0x3887e0[_0x40a5('0x2e')][_0x40a5('0x80')],_0x40a5('0xbc'));this[_0x40a5('0x130')](_0x3f3b52,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x2b9d3e[_0x40a5('0x2e')],_0x2af126));}else{const _0x434687=this[_0x40a5('0xfa')][_0x40a5('0xad')](_0x3887e0['end'][_0x40a5('0x50')],_0x40a5('0x8e'));this['_setSuggestionRange'](_0x3f3b52,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x434687,_0x2b9d3e[_0x40a5('0xbc')]));}}}}[_0x40a5('0x11d')](_0xc34502){for(const {suggestion:_0x19bb11,meta:_0x3c22aa}of this[_0x40a5('0xb0')](_0xc34502,_0x40a5('0x11b'))){if(!_0x3c22aa['isOwn'])continue;const _0x4ba03d=_0x19bb11[_0x40a5('0xed')]();for(const _0x4e4d58 of _0x4ba03d)if(!_0xc34502[_0x40a5('0xcb')](_0x4e4d58)[_0x40a5('0x10e')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc97c91){const _0x415a6e=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))[_0x40a5('0x7')](_0xc97c91);if(!_0x415a6e)throw new _0xef0e66(_0x40a5('0xc1'),this);return _0x415a6e;}['_getExternalAuthor'](_0x57eb37){const _0x5e9598=this['editor']['plugins'][_0x40a5('0xe4')](_0x40a5('0x8')),_0x3d25d4=_0x4db06b(_0x40a5('0xea')+_0x57eb37),_0x1838da=_0x5e9598[_0x40a5('0x7')](_0x3d25d4);return _0x1838da||_0x5e9598[_0x40a5('0x29')]({'id':_0x3d25d4,'name':_0x57eb37});}['_createSuggestion'](_0x440cd3,_0x121131,_0x4860a9,_0x52433d,_0x3516d1){const _0x3d981c=this[_0x40a5('0x10f')](_0x52433d),_0x117c7f=this[_0x40a5('0xf7')][_0x40a5('0x12c')](_0x440cd3,_0x121131,_0x4860a9,_0x3d981c,_0x3516d1,_0x275b6c=>this[_0x40a5('0x59')](_0x4860a9,{'attributes':_0x275b6c}));return this[_0x40a5('0x18')](_0x117c7f,_0x40a5('0x10d'),()=>{this[_0x40a5('0x59')](_0x4860a9,{'state':_0x40a5('0x19')});},{'priority':_0x40a5('0xa4')}),this['listenTo'](_0x117c7f,'discard',()=>{this['_updateSuggestionData'](_0x4860a9,{'state':_0x40a5('0x111')});},{'priority':_0x40a5('0xa4')}),this[_0x40a5('0x68')][_0x40a5('0x98')](_0x4860a9,_0x117c7f),this[_0x40a5('0x119')][_0x40a5('0x98')](_0x117c7f,_0x40a5('0xf')),_0x117c7f;}[_0x40a5('0x21')](_0x21df5e){const _0x4a8e16=_0x21df5e[_0x40a5('0x124')](':');return{'group':_0x4a8e16[0x0],'type':_0x4a8e16[0x1],'subType':_0x4a8e16['length']>=0x5?_0x4a8e16[0x2]:null,'id':_0x4a8e16['length']<0x5?_0x4a8e16[0x2]:_0x4a8e16[0x3],'authorId':_0x4a8e16[_0x40a5('0x10e')]<0x5?_0x4a8e16[0x3]:_0x4a8e16[0x4],'markerCount':0x6==_0x4a8e16['length']?_0x4a8e16[0x5]:null};}['_breakSuggestionMarker'](_0x4e4dc4,_0x50da1d,_0x200d6f){const _0x16c921=_0x4e4dc4[_0x40a5('0xe1')](),_0x1e2d4b=_0x16c921[_0x40a5('0x2e')],_0x5d978d=_0x16c921[_0x40a5('0xbc')];this['_setSuggestionRange'](_0x4e4dc4,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x1e2d4b,_0x50da1d));const _0x3e4484=_0x2fe5d6(),_0xa05273=_0x4e4dc4[_0x40a5('0x5e')]['id'],_0x2edaa6=_0x4e4dc4[_0x40a5('0x13b')]+(_0x4e4dc4[_0x40a5('0x4f')]?':'+_0x4e4dc4['subType']:'');this['_setSuggestionData']({'id':_0x3e4484,'type':_0x2edaa6,'createdAt':new Date(),'authorId':_0xa05273,'originalSuggestionId':_0x4e4dc4['id'],'attributes':_0x4e4dc4['attributes'],'data':_0x4e4dc4[_0x40a5('0x1d')]}),'formatBlock'==_0x4e4dc4[_0x40a5('0x13b')]&&(_0x200d6f=this[_0x40a5('0xfa')][_0x40a5('0xa5')](_0x200d6f['parent'])),this['_addSuggestionMarker'](_0x2edaa6,_0x3e4484,_0xa05273,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x200d6f,_0x5d978d));}[_0x40a5('0xb0')](_0x237fc7,_0xa4607=null){const _0x17248b=[],_0x4e7f30=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))['me'];Array['isArray'](_0x237fc7)||(_0x237fc7=[_0x237fc7]);for(const _0x387857 of this[_0x40a5('0x6c')]()){if(!_0x387857['isInContent'])continue;if(_0xa4607&&_0x387857['type']!=_0xa4607)continue;let _0x381e2d=!0x1;for(const _0x4579a2 of _0x387857['getRanges']()){for(const _0x54c922 of _0x237fc7){const _0xc956d6=_0x54c922[_0x40a5('0x2e')][_0x40a5('0x90')](_0x4579a2['end'])||_0x54c922[_0x40a5('0xbc')][_0x40a5('0x90')](_0x4579a2['start']);if(_0xc956d6||_0x54c922[_0x40a5('0x1a')](_0x4579a2)){const _0x1af5c6=_0x54c922['containsRange'](_0x4579a2)&&_t(this[_0x40a5('0xfa')][_0x40a5('0x3f')],_0x4579a2[_0x40a5('0x2e')],_0x54c922),_0xf62ff5=_0x4579a2[_0x40a5('0x8b')](_0x54c922)&&_t(this[_0x40a5('0xfa')][_0x40a5('0x3f')],_0x54c922['start'],_0x4579a2);_0x17248b[_0x40a5('0x13f')]({'suggestion':_0x387857,'meta':{'isOwn':_0x4e7f30==_0x387857['author'],'isNextTo':_0xc956d6,'isInsideObject':_0x1af5c6,'containsRangeInObject':_0xf62ff5}}),_0x381e2d=!0x0;break;}}if(_0x381e2d)break;}}return _0x17248b;}[_0x40a5('0xe9')](_0x5e7dc2,_0x4764e3,_0x6dc7a1,_0x9e7203,_0x48583c){this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0x4b4255=>{let _0x2e84bc=_0x40a5('0xf9')+_0x5e7dc2+':'+_0x4764e3+':'+_0x6dc7a1;_0x48583c&&(_0x2e84bc=_0x2e84bc+':'+_0x48583c),_0x4b4255['addMarker'](_0x2e84bc,{'range':_0x9e7203,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x40a5('0x53')](_0x546678){const _0x47f882=_0x546678[_0x40a5('0x5b')],_0xd52f4f=_0x546678[_0x40a5('0xc8')];_0x546678[_0x40a5('0x5b')]=null,null!=_0x47f882&&(_0x47f882[_0x40a5('0xc8')]=null),_0x546678[_0x40a5('0xc8')]=null,null!=_0xd52f4f&&(_0xd52f4f[_0x40a5('0x5b')]=null),'ready'==this[_0x40a5('0x119')][_0x40a5('0xe4')](_0x546678)&&(this[_0x40a5('0x119')]['set'](_0x546678,_0x40a5('0x28')),this[_0x40a5('0x5f')](_0x40a5('0x93'),_0x546678,_0x47f882,_0xd52f4f));}['_setSuggestionData'](_0x4da695){const _0x4b1941=_0x4da695['id'],_0x237c41=this[_0x40a5('0xa9')](_0x4da695);if(this[_0x40a5('0x75')]&&this[_0x40a5('0x75')][_0x40a5('0x13c')]){const _0x901854=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x66')),_0x2a3a7c=_0x237c41['hasComments'],_0x4606ed=_0x237c41[_0x40a5('0x4f')]?_0x237c41[_0x40a5('0x13b')]+':'+_0x237c41[_0x40a5('0x4f')]:_0x237c41['type'],_0x55b669=this[_0x40a5('0x71')][_0x40a5('0x2')],_0x23944e=_0x901854['add'](_0x461e5b(_0x55b669,_0x40a5('0x9f'))),_0x3aafd2={'id':_0x4b1941,'type':_0x4606ed,'hasComments':_0x2a3a7c,'data':_0x4da695['data']||null,'originalSuggestionId':_0x4da695[_0x40a5('0xb6')]||null,'attributes':_0x237c41[_0x40a5('0x47')]};this[_0x40a5('0x75')][_0x40a5('0x13c')](_0x3aafd2)[_0x40a5('0x24')](_0x1f895c=>{_0x237c41[_0x40a5('0x79')]=!0x0,_0x901854['remove'](_0x23944e),_0x1f895c&&_0x1f895c[_0x40a5('0xc2')]&&(this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x4b1941)[_0x40a5('0xc2')]=_0x1f895c[_0x40a5('0xc2')]);})['catch'](_0x6ba085=>{throw _0xb21efc(_0x40a5('0x55')),this['editor'][_0x40a5('0x10')][_0x40a5('0x13a')]({'isUndoable':!0x1},()=>{_0x237c41[_0x40a5('0x43')]();}),_0x237c41[_0x40a5('0xeb')](),this[_0x40a5('0x68')]['delete'](_0x237c41['id']),this[_0x40a5('0x119')]['delete'](_0x237c41),_0x6ba085;});}return _0x237c41;}['_updateSuggestionData'](_0x2e5cb3,_0x1b16bf){const _0x3ab125=this[_0x40a5('0x71')][_0x40a5('0x83')]['get']('PendingActions'),_0x38719f=this[_0x40a5('0x5a')](_0x2e5cb3);if(this[_0x40a5('0x75')]&&this['_adapter']['updateSuggestion']){if(_0x38719f['_saved']){const _0x10f7df=_0x3ab125[_0x40a5('0xee')](_0x461e5b(this[_0x40a5('0x71')][_0x40a5('0x2')],_0x40a5('0x9f')));this[_0x40a5('0x75')]['updateSuggestion'](_0x2e5cb3,_0x1b16bf)[_0x40a5('0x24')](()=>{_0x3ab125[_0x40a5('0x102')](_0x10f7df);});}else _0x38719f['on'](_0x40a5('0xb7'),()=>{this[_0x40a5('0x59')](_0x2e5cb3,_0x1b16bf);});}}[_0x40a5('0x41')](_0x4184c1){if(!this[_0x40a5('0x75')]||!this[_0x40a5('0x75')]['getSuggestion'])throw new _0xef0e66(_0x40a5('0x122'),this);return this[_0x40a5('0x75')]['getSuggestion'](_0x4184c1);}['_handleNewSuggestionMarker'](_0x547065){const {id:_0x28878f,type:_0x45d235,subType:_0x2115e4,authorId:_0x4c462b}=this[_0x40a5('0x21')](_0x547065),_0xa49afb=this['_suggestions'][_0x40a5('0xe4')](_0x28878f)||this[_0x40a5('0x12f')](_0x45d235,_0x2115e4,_0x28878f,_0x4c462b,{});switch(this[_0x40a5('0xa0')](_0xa49afb,_0x45d235,_0x2115e4,_0x4c462b),this[_0x40a5('0x119')][_0x40a5('0xe4')](_0xa49afb)){case _0x40a5('0xf'):this[_0x40a5('0x41')](_0x28878f)[_0x40a5('0x24')](_0x42786c=>{let _0x49a8e0=Promise[_0x40a5('0x5')]();_0x42786c[_0x40a5('0xe')]&&(_0x49a8e0=this[_0x40a5('0x113')]['fetchCommentThread']({'channelId':this[_0x40a5('0x71')]['config']['get'](_0x40a5('0x114')),'threadId':_0x28878f})),_0x49a8e0[_0x40a5('0x24')](()=>{this['addSuggestionData'](_0x42786c)[_0x40a5('0x79')]=!0x0;});}),this[_0x40a5('0x119')]['set'](_0xa49afb,_0x40a5('0xa6'));break;case _0x40a5('0x28'):this[_0x40a5('0x59')](_0x28878f,{'state':'open'});case _0x40a5('0x37'):this[_0x40a5('0x119')][_0x40a5('0x98')](_0xa49afb,_0x40a5('0x94')),this[_0x40a5('0x5f')](_0x40a5('0x4'),_0xa49afb);break;case _0x40a5('0x94'):this[_0x40a5('0x5f')](_0x40a5('0x69'),_0xa49afb);}return _0xa49afb[_0x40a5('0x9')](_0x547065),_0xa49afb;}[_0x40a5('0x62')](_0x3e3320){const _0x13ba95=Array['from'](_0x3e3320)[_0x40a5('0x133')](_0x1b46c7=>!_0x1b46c7[_0x40a5('0xa')]),_0x49f13c=this[_0x40a5('0x6c')]({'skipNotAttached':!0x0})[_0x40a5('0x133')](_0x15e711=>!_0x15e711[_0x40a5('0xa')]),_0x3e4b8c=_0x49f13c[_0x40a5('0x133')](_0x4a5593=>!_0x3e3320['has'](_0x4a5593)),_0x1b8b54=new Map(_0x49f13c['map'](_0x136089=>[_0x136089,this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x136089['type'],_0x136089[_0x40a5('0x4f')],'chain')])),_0x3c7c2c=new Map(_0x49f13c[_0x40a5('0xf4')](_0x47e50e=>[_0x47e50e,_0x47e50e[_0x40a5('0xe1')]()])),_0x44fe32=new Set(),_0x1973af=new Set();for(let _0x32c5c9=0x0;_0x32c5c9<_0x13ba95[_0x40a5('0x10e')];_0x32c5c9++)_0x1a9b5d(_0x13ba95[_0x32c5c9],_0x13ba95,_0x32c5c9+0x1);for(let _0x5252a8=0x0;_0x5252a8<_0x13ba95['length'];_0x5252a8++)_0x1a9b5d(_0x13ba95[_0x5252a8],_0x3e4b8c,0x0);for(let _0x47c3ec=0x0;_0x47c3ec<_0x13ba95[_0x40a5('0x10e')];_0x47c3ec++){const _0x436979=_0x13ba95[_0x47c3ec];!_0x1973af[_0x40a5('0xb2')](_0x436979)&&_0x436979[_0x40a5('0x5b')]&&(_0x436979[_0x40a5('0x5b')][_0x40a5('0xc8')]===_0x436979&&(_0x436979[_0x40a5('0x5b')][_0x40a5('0xc8')]=null),_0x436979[_0x40a5('0x5b')]=null),!_0x44fe32[_0x40a5('0xb2')](_0x436979)&&_0x436979[_0x40a5('0xc8')]&&(_0x436979[_0x40a5('0xc8')][_0x40a5('0x5b')]===_0x436979&&(_0x436979[_0x40a5('0xc8')]['previous']=null),_0x436979[_0x40a5('0xc8')]=null);}function _0x1a9b5d(_0x1e6467,_0x4faab7,_0x41c392){for(let _0x39ebf8=_0x41c392;_0x39ebf8<_0x4faab7[_0x40a5('0x10e')];_0x39ebf8++){const _0x6fd2bd=_0x2cf6b0(_0x1e6467,_0x4faab7[_0x39ebf8]);_0x6fd2bd&&(_0x6fd2bd[0x0][_0x40a5('0xc8')]=_0x6fd2bd[0x1],_0x6fd2bd[0x1][_0x40a5('0x5b')]=_0x6fd2bd[0x0],_0x44fe32[_0x40a5('0xee')](_0x6fd2bd[0x0]),_0x1973af['add'](_0x6fd2bd[0x1]));}}function _0x2cf6b0(_0x4aa0ed,_0xc164ef){if(_0x4aa0ed[_0x40a5('0xb1')]['id']!==_0xc164ef[_0x40a5('0xb1')]['id'])return null;const _0x1b6529=_0x1b8b54[_0x40a5('0xe4')](_0x4aa0ed)(_0x4aa0ed,_0xc164ef,_0x3c7c2c[_0x40a5('0xe4')](_0x4aa0ed),_0x3c7c2c[_0x40a5('0xe4')](_0xc164ef));if(!_0x1b6529)return null;return _0x1b8b54[_0x40a5('0xe4')](_0xc164ef)(_0x4aa0ed,_0xc164ef,_0x3c7c2c[_0x40a5('0xe4')](_0x4aa0ed),_0x3c7c2c[_0x40a5('0xe4')](_0xc164ef))?_0x1b6529[0x1][_0x40a5('0x76')]&&_0x1b6529[0x1][_0x40a5('0x76')][_0x40a5('0x10e')]?null:_0x1b6529:null;}}[_0x40a5('0x61')](_0x4d4f15){const _0x1a70c1=Array[_0x40a5('0x7b')](_0x4d4f15),_0xdd4374=this[_0x40a5('0x6c')]({'skipNotAttached':!0x0}),_0x493bc5=_0xdd4374[_0x40a5('0x133')](_0x3e6e1e=>!_0x4d4f15[_0x40a5('0xb2')](_0x3e6e1e)),_0x2cced8=new Map(_0x1a70c1[_0x40a5('0xf4')](_0x21fdec=>[_0x21fdec,this[_0x40a5('0xf7')]['getSuggestionCallback'](_0x21fdec['type'],_0x21fdec[_0x40a5('0x4f')],_0x40a5('0x65'))])),_0x52e9d4=new Map(_0xdd4374[_0x40a5('0xf4')](_0x3dd67d=>[_0x3dd67d,_0x3dd67d[_0x40a5('0xed')]()]));for(let _0x1e5176=0x0;_0x1e5176<_0x1a70c1['length'];_0x1e5176++){if(_0x3cce3b(this,_0x1a70c1[_0x1e5176],_0x1a70c1,_0x1e5176+0x1))return!0x0;}for(let _0x3028bc=0x0;_0x3028bc<_0x1a70c1[_0x40a5('0x10e')];_0x3028bc++){if(_0x3cce3b(this,_0x1a70c1[_0x3028bc],_0x493bc5,0x0))return!0x0;}return!0x1;function _0x3cce3b(_0x29b68e,_0x6f8f3e,_0x268c01,_0x13a273){for(let _0x5a0f8f=_0x13a273;_0x5a0f8f<_0x268c01[_0x40a5('0x10e')];_0x5a0f8f++){const _0xd4d56f=_0x268c01[_0x5a0f8f];if(_0xd4d56f[_0x40a5('0x13b')]!==_0x6f8f3e[_0x40a5('0x13b')]||_0xd4d56f[_0x40a5('0xb1')]['id']!==_0x6f8f3e['author']['id']||_0xd4d56f[_0x40a5('0x4f')]!==_0x6f8f3e[_0x40a5('0x4f')])continue;if(!Ut(_0x6f8f3e,_0xd4d56f))continue;const _0x30eb22=_0x2cced8[_0x40a5('0xe4')](_0x6f8f3e),_0xb9c262=_0x52e9d4[_0x40a5('0xe4')](_0x6f8f3e),_0x1f11a1=_0x52e9d4['get'](_0xd4d56f),_0x5407ae=_0x6f8f3e[_0x40a5('0x76')]&&_0x6f8f3e[_0x40a5('0x76')]['length'],_0x45ba31=_0xd4d56f[_0x40a5('0x76')]&&_0xd4d56f[_0x40a5('0x76')][_0x40a5('0x10e')];if(!_0x5407ae&&_0x30eb22(_0x1f11a1,_0xb9c262))return _0x29b68e[_0x40a5('0x67')](_0xd4d56f,_0x6f8f3e),_0x52e9d4[_0x40a5('0x0')](_0x6f8f3e),!0x0;if(!_0x45ba31&&_0x30eb22(_0xb9c262,_0x1f11a1))return _0x29b68e['_joinSuggestions'](_0x6f8f3e,_0xd4d56f),_0x52e9d4['delete'](_0xd4d56f),!0x0;}return!0x1;}}[_0x40a5('0x67')](_0x3bedc7,_0x4b3fcc){if(_0x3bedc7[_0x40a5('0xa')])for(const _0x830a9f of _0x4b3fcc[_0x40a5('0xed')]())_0x3bedc7['addRange'](_0x830a9f);else{const _0x4ba938=_0x4b3fcc[_0x40a5('0xe1')]()[_0x40a5('0xbc')];this[_0x40a5('0x130')](_0x3bedc7,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x3bedc7[_0x40a5('0xe1')]()[_0x40a5('0x2e')],_0x4ba938));}_0x4b3fcc[_0x40a5('0x8d')]();}}class Bt{constructor(_0x1726f1){this['_editor']=_0x1726f1,this[_0x40a5('0xfa')]=_0x1726f1[_0x40a5('0x10')],this[_0x40a5('0x120')]=new Map(),this[_0x40a5('0x38')]=new Map(),this[_0x40a5('0x107')]();}['buildSuggestion'](_0x2a44e2,_0x38b233,_0x34b702,_0x43d815,_0x3ea855,_0xe42642){return new _0x459923(this[_0x40a5('0xfa')],{'type':_0x2a44e2,'subType':_0x38b233,'id':_0x34b702,'author':_0x43d815,'creator':_0x43d815,'attributes':_0x3ea855,'onAttributesChange':_0xe42642,'onAccept':(..._0x4fd5c0)=>this['getSuggestionCallback'](_0x2a44e2,_0x38b233,_0x40a5('0x10d'))(..._0x4fd5c0),'onDiscard':(..._0x5aa656)=>this[_0x40a5('0x45')](_0x2a44e2,_0x38b233,_0x40a5('0x43'))(..._0x5aa656)});}[_0x40a5('0x13e')](_0x2d43d6,_0x553ea3,_0x44c8b0,_0x2d2c34){const _0x2b31a7=_0x2d43d6+':'+_0x553ea3+':'+_0x44c8b0;this['_customCallbacks'][_0x40a5('0x98')](_0x2b31a7,_0x2d2c34);}[_0x40a5('0x45')](_0x19b68f,_0x586b76,_0x557e73){const _0x390c9d=_0x19b68f+':'+_0x586b76+':'+_0x557e73;return this[_0x40a5('0x120')][_0x40a5('0xe4')](_0x390c9d)||this[_0x40a5('0x38')][_0x40a5('0xe4')](_0x19b68f+':'+_0x557e73);}['_registerDefaultCallbacks'](){const _0x5ac0dd=()=>!0x1,_0x4e0ccc=_0x59b0f7=>{_0x59b0f7[_0x40a5('0xe5')]((_0x2be114,_0x8f4de7)=>_0x2be114[_0x40a5('0x2e')]['isBefore'](_0x8f4de7[_0x40a5('0x2e')])?0x1:-0x1),this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0xc923e9=>{for(const _0x12d6b5 of _0x59b0f7){let _0x5b5582;_0x5b5582=_0x12d6b5[_0x40a5('0xbc')][_0x40a5('0x88')]&&_0x12d6b5[_0x40a5('0xbc')][_0x40a5('0x50')]==_0x12d6b5[_0x40a5('0x2e')][_0x40a5('0x3b')]?_0xc923e9[_0x40a5('0xbe')](_0x12d6b5[_0x40a5('0x2e')][_0x40a5('0x3b')],'on'):_0xc923e9['createSelection'](_0x12d6b5),this[_0x40a5('0xfa')][_0x40a5('0x110')](_0x5b5582,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x435d03=(_0x11e2d1,_0x4c1818)=>{this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0x4f8bea=>{const {commandName:_0x31927b,commandParams:_0x45c295=[]}=_0x4c1818,_0x36175e=_0x11e2d1[_0x40a5('0xf4')](_0x68b222=>(Mt(_0x68b222)&&(_0x68b222=this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x68b222['end'])),_0x68b222))['filter'](_0xf009b5=>_0x40a5('0x85')!==_0xf009b5[_0x40a5('0xab')][_0x40a5('0xd1')]);if(_0x36175e[_0x40a5('0x10e')]<0x1)return;const _0x5c17dd=Array[_0x40a5('0x7b')](this[_0x40a5('0xfa')]['document']['selection']['getRanges']())[_0x40a5('0xf4')](_0x22be2b=>_0x3032ac['fromRange'](_0x22be2b));_0x4f8bea['setSelection'](_0x36175e);for(const _0x43acb3 of this[_0x40a5('0xaf')]['commands']['commands']())_0x43acb3[_0x40a5('0x8f')]();_0x45c295[_0x40a5('0x13f')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x40a5('0x118')](_0x31927b,..._0x45c295);const _0x3f60a3=_0x5c17dd[_0x40a5('0x133')](_0x133d42=>'$graveyard'!=_0x133d42[_0x40a5('0xab')][_0x40a5('0xd1')]);_0x3f60a3[_0x40a5('0x10e')]>0x0&&_0x4f8bea['setSelection'](_0x3f60a3);for(const _0x77de97 of _0x5c17dd)_0x77de97[_0x40a5('0x10a')]();});},_0x4f7179=(_0xc0b731,_0x281db5)=>0x1==_0xc0b731[_0x40a5('0x10e')]&&0x1==_0x281db5['length']&&_0xc0b731[0x0][_0x40a5('0xbc')][_0x40a5('0x90')](_0x281db5[0x0]['start']),_0xed41d9=(_0x163671,_0x41c383,_0x48b2eb,_0x440c65)=>xt(_0x163671,_0x41c383,_0x48b2eb,_0x440c65,this[_0x40a5('0xfa')])?[_0x163671,_0x41c383]:xt(_0x41c383,_0x163671,_0x440c65,_0x48b2eb,this[_0x40a5('0xfa')])?[_0x41c383,_0x163671]:null;this[_0x40a5('0x38')][_0x40a5('0x98')]('insertion:accept',_0x5ac0dd),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x13d'),_0x4e0ccc),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x99'),_0x4f7179),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0xd6'),_0xed41d9),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0xfe'),_0x4e0ccc),this['_defaultCallbacks'][_0x40a5('0x98')](_0x40a5('0x6e'),_0x5ac0dd),this[_0x40a5('0x38')][_0x40a5('0x98')]('deletion:join',_0x4f7179),this['_defaultCallbacks'][_0x40a5('0x98')](_0x40a5('0xe6'),_0xed41d9),this[_0x40a5('0x38')]['set'](_0x40a5('0x3e'),_0x435d03),this[_0x40a5('0x38')]['set'](_0x40a5('0x86'),_0x5ac0dd),this['_defaultCallbacks']['set'](_0x40a5('0x39'),_0x4f7179),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0xc9'),_0x5ac0dd),this[_0x40a5('0x38')]['set'](_0x40a5('0x26'),_0x435d03),this['_defaultCallbacks']['set'](_0x40a5('0x2b'),_0x5ac0dd),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x121'),_0x4f7179),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x128'),_0x5ac0dd);}}function _t(_0x586b23,_0x6041a1,_0x43aea8){for(const _0x2229c1 of _0x6041a1['parent'][_0x40a5('0xf6')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2229c1[_0x40a5('0xab')]==_0x2229c1)return!0x1;if(!_0x43aea8['containsItem'](_0x2229c1))return!0x1;if(_0x586b23[_0x40a5('0xf5')](_0x2229c1)||_0x586b23[_0x40a5('0x12a')](_0x2229c1))return!0x0;}return!0x1;}function Mt(_0x54d448){return _0x54d448[_0x40a5('0xbc')][_0x40a5('0x50')]==_0x54d448['start'][_0x40a5('0x3b')]&&_0x54d448[_0x40a5('0xbc')][_0x40a5('0x11')];}function $t(_0x1333a7,_0xfdbd69,_0x575062,_0x28a3fe){const _0x26bc42=_0x22fbdb=>!_0x22fbdb[_0x40a5('0xd5')]['is'](_0x40a5('0x3d'))&&!_0x28a3fe[_0x40a5('0xf5')](_0x22fbdb[_0x40a5('0xd5')]),_0x225a5e=_0x1333a7[_0x40a5('0x2e')][_0x40a5('0x12d')](_0x26bc42),_0x4a0eba=_0x1333a7['end'][_0x40a5('0x12d')](_0x26bc42,{'direction':_0x40a5('0x4e')});return(!_0x1333a7[_0x40a5('0x2e')]['isEqual'](_0x225a5e)||!_0x1333a7[_0x40a5('0xbc')][_0x40a5('0x90')](_0x4a0eba))&&(_0x225a5e[_0x40a5('0x9c')](_0x4a0eba)?_0x575062['updateMarker'](_0xfdbd69,{'range':_0x575062['createRange'](_0x225a5e,_0x4a0eba)}):_0x575062[_0x40a5('0xbf')](_0xfdbd69),!0x0);}function Nt(_0x2de585){return _0x4db06b(_0x2de585);}function Rt(_0x4c910c){const _0x594b0c=_0x4c910c['start']['nodeAfter'];return _0x594b0c&&_0x594b0c['is'](_0x40a5('0xc7'));}function jt(_0x3a2d40,_0xa7ca88){const _0x5b2846=_0xa7ca88[_0x40a5('0x3f')][_0x40a5('0xf5')](_0x3a2d40)||_0xa7ca88['schema'][_0x40a5('0xd2')](_0x3a2d40);return _0xa7ca88[_0x40a5('0x9b')](_0xa7ca88[_0x40a5('0xad')](_0x3a2d40,_0x40a5('0x137')),_0x5b2846?_0xa7ca88[_0x40a5('0x106')](_0x3a2d40):_0xa7ca88['createPositionAt'](_0x3a2d40,'end'));}function xt(_0x2c5ebd,_0x18cede,_0x466c15,_0x169ce2,_0x5e405f){if(!Ut(_0x2c5ebd,_0x18cede))return!0x1;if(_0x466c15[_0x40a5('0xbc')]['isEqual'](_0x169ce2['start']))return!0x0;if(_0x2c5ebd['type']!=_0x18cede[_0x40a5('0x13b')])return!0x1;if(!_0x466c15[_0x40a5('0xbc')][_0x40a5('0x126')](_0x169ce2[_0x40a5('0x2e')]))return!0x1;const _0x2ae820=_0x5e405f['createRange'](_0x466c15[_0x40a5('0xbc')],_0x169ce2[_0x40a5('0x2e')])[_0x40a5('0xd9')]();for(const _0x441eb9 of _0x2ae820)if([_0x40a5('0xca'),_0x40a5('0x104')][_0x40a5('0x84')](_0x441eb9[_0x40a5('0x13b')])&&_0x5e405f[_0x40a5('0x3f')][_0x40a5('0x12a')](_0x441eb9[_0x40a5('0xd5')]))return!0x1;return!0x0;}function Ut(_0x47d376,_0x1aeb48){return!(!_0x47d376[_0x40a5('0x42')]||!_0x1aeb48[_0x40a5('0x42')])&&_0xfb5d18(_0x47d376['attributes'],_0x1aeb48[_0x40a5('0x47')]);}function Ot(_0x302fad,_0x414682){const _0x23dfea=Et(_0x302fad[_0x40a5('0x47')]),_0x2919f3=Et(_0x414682);if(!_0x302fad[_0x40a5('0x42')])return!0x1;for(const _0x615c89 of Object['keys'](_0x2919f3))if(!_0xfb5d18(_0x23dfea[_0x615c89],_0x2919f3[_0x615c89]))return!0x1;return!0x0;}function Et(_0x350ce8){const _0x3a6d95=Object[_0x40a5('0x7a')]({},_0x350ce8);return delete _0x3a6d95['skipNestingCheck'],delete _0x3a6d95[_0x40a5('0x77')],_0x3a6d95;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d50=['change:activeAnnotations','acceptSelectedSuggestions','getSuggestion','trackChanges.SuggestionThreadView','_destroyController','filter','suggestionLoaded','get','view','createAnnotationView','getDescriptions','editor','from','source','_disableComments','actionView','activeMarkers','push','innerView','EditorAnnotations','define','acceptButton','isEnabled','Annotations','switchbutton','plugins','listenTo','discardSelectedSuggestions','editing','_annotationViews','trackChanges','discardAllSuggestions','head','bind','getRanges','delete','add','mainView','getAllAdjacentSuggestions','type','pluginName','init','CommentsRepository','suggestion-','hasSuggestion','stopListening','execute','_updateController','SuggestionThreadView','value','locale','config','Accept\x20all\x20selected\x20suggestions','model','_handleSuggestionControllerDelayed','commentThread','isOn','change:previous','trackChanges.disableComments','set','buttonView','TrackChangesEditing','some','createCommentThreadController','registerAnnotation','toMany','length','comments.maxCommentsWhenCollapsed','CommentView','_descriptionFactory','size','Accept\x20all\x20suggestions','separator','_viewToController','getFirstRange','commands','refreshSelectedViews','_refreshActiveMarkers','clear','getMarkerNames','_suggestionToController','_initializeController','focus','unbind','commandName','CommentsUI','has','suggestionChanged','lowest','button','discardButton','arrowView','_bindAnnotationToEditors','isInContent','_handleControllerBuffer','previous','values','map','keys','_unbindEditors','isMultiRange','isDirty','addComment','descriptionParts','suggestionUnloaded','activeAnnotations','Discard\x20all\x20selected\x20suggestions','destroy'];(function(_0x321b11,_0x2d5096){const _0x4dacf3=function(_0x2b7e3a){while(--_0x2b7e3a){_0x321b11['push'](_0x321b11['shift']());}};_0x4dacf3(++_0x2d5096);}(_0x2d50,0x136));const _0x4dac=function(_0x321b11,_0x2d5096){_0x321b11=_0x321b11-0x0;let _0x4dacf3=_0x2d50[_0x321b11];return _0x4dacf3;};import{Plugin as _0x48f751}from'ckeditor5/src/core';import{Collection as _0x4a6c16}from'ckeditor5/src/utils';import{Model as _0xe92ad8,SplitButtonView as _0x498fe2,createDropdown as _0x3d99f8,addListToDropdown as _0x4c9974}from'ckeditor5/src/ui';import{Users as _0x44677c,getDateTimeFormatter as _0x51cf53,getAllMarkersDomElementsSorted as _0x51d2ec}from'ckeditor5-collaboration/src/collaboration-core';import _0x38a339 from'./trackchangesediting';import _0x11e26f from'./ui/suggestioncontroller';import _0x48365f from'./ui/view/suggestionthreadview';import{getTranslation as _0x2a4b97}from'./utils/common-translations';import _0x352211 from'../theme/icons/track-changes.svg';export default class d extends _0x48f751{static get['requires'](){return[_0x38a339,_0x44677c,_0x4dac('0x38'),'Annotations','EditorAnnotations'];}static get[_0x4dac('0x36')](){return'TrackChangesUI';}constructor(_0x4401f6){super(_0x4401f6),this[_0x4dac('0x5e')]=new Map(),this['_viewToController']=new Map(),this[_0x4dac('0x2b')]=new Map(),this[_0x4dac('0x0')]=new Map();const _0x4225aa=this[_0x4dac('0x19')]['config'];_0x4225aa[_0x4dac('0x22')](_0x4dac('0x11'),_0x48365f),_0x4225aa[_0x4dac('0x22')](_0x4dac('0x48'),!0x1),this[_0x4dac('0x1c')]=_0x4225aa['get'](_0x4dac('0x48'));}['_handleSuggestionControllerDelayed'](_0x470d0e,_0x449b80){0x0===this['_handleControllerBuffer'][_0x4dac('0x54')]&&setTimeout(()=>{for(const [_0x1b22c2,_0x512fb5]of this['_handleControllerBuffer']){const _0x5cd3e7=this[_0x4dac('0x5e')][_0x4dac('0x64')](_0x1b22c2);_0x5cd3e7||_0x512fb5?_0x5cd3e7&&_0x512fb5&&this[_0x4dac('0x12')](_0x1b22c2):this[_0x4dac('0x5f')](_0x1b22c2);}this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')]('EditorAnnotations')[_0x4dac('0x5a')](),this[_0x4dac('0x5b')](),this[_0x4dac('0x0')][_0x4dac('0x5c')]();},0xa),this['_handleControllerBuffer'][_0x4dac('0x49')](_0x470d0e,_0x449b80);}[_0x4dac('0x37')](){const _0x457a13=this[_0x4dac('0x19')],_0x4d660f=_0x457a13[_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x4b')),_0x2d00aa=_0x457a13[_0x4dac('0x27')][_0x4dac('0x15')]('Annotations'),_0x14c244=_0x457a13[_0x4dac('0x27')]['get'](_0x4dac('0x21')),_0x5ae5ec=_0x457a13['plugins'][_0x4dac('0x15')]('CommentsRepository');_0x457a13['ui']['componentFactory']['add'](_0x4dac('0x2c'),_0x274d81=>this['_createUIButton'](_0x274d81)),_0x14c244['addSourceCollector'](()=>{const _0x24cf90=[];for(const [_0x8ae4de,_0x290c02]of Array['from'](this[_0x4dac('0x5e')])){const _0x13df2c=_0x8ae4de[_0x4dac('0x34')](),_0x4fb67e=[];for(const _0x516c18 of _0x13df2c){if(!_0x516c18['isInContent'])continue;if(_0x516c18[_0x4dac('0x6')]){_0x4fb67e[_0x4dac('0x1f')](..._0x516c18[_0x4dac('0x30')]());continue;}const _0x389572=_0x516c18[_0x4dac('0x58')]();if(_0x4fb67e[_0x4dac('0x50')]>0x0){const _0x544815=_0x4fb67e[0x0]['getJoined'](_0x389572);if(_0x544815){_0x4fb67e[0x0]=_0x544815;continue;}}_0x4fb67e[_0x4dac('0x1f')](_0x389572);}_0x24cf90[_0x4dac('0x1f')]([_0x290c02[_0x4dac('0x16')],_0x4fb67e]);}return _0x24cf90;}),this[_0x4dac('0x28')](_0x4d660f,_0x4dac('0x14'),(_0x30f473,_0x5c38b8)=>{this[_0x4dac('0x28')](_0x5c38b8,_0x4dac('0x47'),(_0x4c7b53,_0x546a3f,_0x476f70,_0x2eea5b)=>{_0x5c38b8['isInContent']&&(null==_0x476f70?(this['_updateController'](_0x2eea5b['head']),this[_0x4dac('0x44')](_0x5c38b8,!0x1)):(this['_updateController'](_0x476f70[_0x4dac('0x2e')]),this['_handleSuggestionControllerDelayed'](_0x5c38b8,!0x0)));}),null===_0x5c38b8[_0x4dac('0x1')]?this[_0x4dac('0x44')](_0x5c38b8,!0x1):this[_0x4dac('0x3d')](_0x5c38b8['head']);}),this['listenTo'](_0x4d660f,_0x4dac('0xa'),(_0x168d6c,_0x5961a2,_0x3b0267)=>{this[_0x4dac('0x3b')](_0x5961a2,'change:previous'),this[_0x4dac('0x0')][_0x4dac('0x31')](_0x5961a2);const _0x2092c1=_0x3b0267?_0x3b0267[_0x4dac('0x2e')]:_0x5961a2,_0x502b44=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x2092c1);null!==_0x3b0267&&this[_0x4dac('0x3d')](_0x2092c1),null===_0x3b0267&&_0x502b44&&this[_0x4dac('0x12')](_0x5961a2);}),this[_0x4dac('0x28')](_0x4d660f,_0x4dac('0x65'),(_0x3f2bd6,_0x8d6b03)=>{this[_0x4dac('0x3d')](_0x8d6b03);}),this[_0x4dac('0x28')](_0x2d00aa,_0x4dac('0xe'),()=>{this[_0x4dac('0x5b')]();}),this[_0x4dac('0x28')](_0x5ae5ec,_0x4dac('0x8'),(_0x1eda2f,{threadId:_0x11abd4,isFromAdapter:_0x3be6c4})=>{if(_0x3be6c4||!_0x4d660f[_0x4dac('0x3a')](_0x11abd4))return;const _0x4d6124=_0x4d660f[_0x4dac('0x10')](_0x11abd4);this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x4d6124)['view'][_0x4dac('0x60')]();},{'priority':_0x4dac('0x66')});}[_0x4dac('0x5b')](){const _0xe9948f=this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x25')),_0x4f6b5b=this['editor']['plugins']['get'](_0x4dac('0x4b')),_0x53c08e=Array[_0x4dac('0x1a')](_0xe9948f[_0x4dac('0xb')],_0x3b3ff8=>_0x3b3ff8[_0x4dac('0x20')])[_0x4dac('0x13')](_0x10d88a=>this[_0x4dac('0x57')][_0x4dac('0x64')](_0x10d88a)),_0x16b26a=[];for(const _0x12763a of _0x53c08e){const _0x481f07=this[_0x4dac('0x57')][_0x4dac('0x15')](_0x12763a)[_0x4dac('0x43')][_0x4dac('0x34')]();_0x16b26a['push'](..._0x481f07['reduce']((_0x26d68f,_0x315547)=>[..._0x26d68f,..._0x315547[_0x4dac('0x5d')]()],[]));}_0x4f6b5b[_0x4dac('0x1e')]=_0x16b26a;}['_createUIButton'](_0x4ac718){const _0x3a7b2e=_0x3d99f8(_0x4ac718,_0x498fe2),_0x439812=this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x4dac('0x2c')),_0x4bfed2=_0x2a4b97(_0x4ac718,'Track\x20changes');_0x3a7b2e[_0x4dac('0x4a')][_0x4dac('0x49')]({'tooltip':_0x4bfed2,'label':_0x4bfed2,'icon':_0x352211}),_0x3a7b2e[_0x4dac('0x4a')][_0x4dac('0x2f')](_0x4dac('0x46'))['to'](_0x439812,_0x4dac('0x3f')),_0x3a7b2e[_0x4dac('0x4a')]['on'](_0x4dac('0x3c'),()=>{_0x439812[_0x4dac('0x3c')](),this['editor']['editing']['view']['focus']();});const _0x2979fa=new _0x4a6c16(),_0x419e50=[{'type':_0x4dac('0x26'),'model':{'withText':!0x0,'label':_0x4bfed2,'commandName':_0x4dac('0x2c')}},{'type':_0x4dac('0x56')},{'type':_0x4dac('0x67'),'model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0x55')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0x42')),'commandName':_0x4dac('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,'Discard\x20all\x20suggestions'),'commandName':_0x4dac('0x2d')}},{'type':_0x4dac('0x67'),'model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0xc')),'commandName':_0x4dac('0x29')}}];for(const _0x193af7 of _0x419e50){let _0x3c8e97={'type':_0x4dac('0x56')};if(_0x193af7[_0x4dac('0x43')]){const _0x7c4e0c=new _0xe92ad8(_0x193af7[_0x4dac('0x43')]),_0x1e1183=this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x7c4e0c[_0x4dac('0x62')]);_0x7c4e0c[_0x4dac('0x2f')](_0x4dac('0x46'),_0x4dac('0x24'))['to'](_0x1e1183,_0x4dac('0x3f'),_0x4dac('0x24')),_0x3c8e97={'type':_0x193af7[_0x4dac('0x35')],'model':_0x7c4e0c};}_0x2979fa[_0x4dac('0x32')](_0x3c8e97);}_0x4c9974(_0x3a7b2e,_0x2979fa);const _0x2a1e3c=_0x419e50[_0x4dac('0x13')](_0x4e8d75=>null!=_0x4e8d75[_0x4dac('0x43')])[_0x4dac('0x3')](_0x144ac3=>this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x144ac3['model'][_0x4dac('0x62')])),_0x3f9e00=_0x3a7b2e['buttonView'];return _0x3f9e00[_0x4dac('0x1d')][_0x4dac('0x61')](_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x69')][_0x4dac('0x61')](_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x1d')][_0x4dac('0x2f')]('isEnabled')['to'](_0x439812,_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x69')][_0x4dac('0x2f')](_0x4dac('0x24'))[_0x4dac('0x4f')](_0x2a1e3c,'isEnabled',(..._0x535416)=>_0x535416[_0x4dac('0x4c')](_0x476498=>_0x476498)),_0x3a7b2e['on'](_0x4dac('0x3c'),_0x18f6b8=>{this['editor'][_0x4dac('0x3c')](_0x18f6b8[_0x4dac('0x1b')][_0x4dac('0x62')]),this[_0x4dac('0x19')][_0x4dac('0x2a')]['view'][_0x4dac('0x60')]();}),_0x3a7b2e;}[_0x4dac('0x5f')](_0x242254){const _0x9bd6d7=this[_0x4dac('0x19')],_0x42478c=_0x9bd6d7[_0x4dac('0x41')],_0x5003e5=_0x9bd6d7['plugins'][_0x4dac('0x15')](_0x4dac('0x25')),_0xb50545=_0x9bd6d7['plugins']['get'](_0x4dac('0x38')),_0x3ca772=_0x9bd6d7['plugins'][_0x4dac('0x15')](_0x4dac('0x21')),_0xa29788=_0x9bd6d7[_0x4dac('0x27')][_0x4dac('0x15')](_0x44677c)['me'],_0x3d9630=_0x42478c['get']('trackChanges')[_0x4dac('0x3e')],{CommentsListView:_0x1022a9,CommentThreadInputView:_0xc42279}=_0x9bd6d7[_0x4dac('0x27')]['get'](_0x4dac('0x63'));let _0x575d3b,_0x1b8f89;this[_0x4dac('0x2b')][_0x4dac('0x64')](_0x242254['id'])?(_0x1b8f89=this[_0x4dac('0x2b')]['get'](_0x242254['id']),_0x575d3b=_0x1b8f89['mainView']):(_0x575d3b=new _0x3d9630(_0x9bd6d7[_0x4dac('0x40')],_0x242254,_0xa29788,{'disableComments':this[_0x4dac('0x1c')],'editorConfig':_0x42478c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x42478c['get'](_0x4dac('0x51')),'maxThreadTotalWeight':_0x42478c[_0x4dac('0x15')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42478c[_0x4dac('0x15')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x51cf53(_0x42478c[_0x4dac('0x15')](_0x4dac('0x40'))),'CommentView':_0x42478c[_0x4dac('0x15')]('comments')[_0x4dac('0x52')],'CommentsListView':_0x1022a9,'CommentThreadInputView':_0xc42279}),_0x575d3b[_0x4dac('0x23')]['on'](_0x4dac('0x3c'),()=>{_0x9bd6d7['editing'][_0x4dac('0x16')][_0x4dac('0x60')]();}),_0x575d3b[_0x4dac('0x68')]['on'](_0x4dac('0x3c'),()=>{_0x9bd6d7[_0x4dac('0x2a')][_0x4dac('0x16')]['focus']();}),_0x1b8f89=_0x5003e5[_0x4dac('0x17')](this['editor'][_0x4dac('0x40')],_0x575d3b),_0x1b8f89[_0x4dac('0x2f')]('isDirty')['to'](_0x575d3b,_0x4dac('0x7')),_0x1b8f89[_0x4dac('0x2f')](_0x4dac('0x50'))['to'](_0x575d3b),_0x1b8f89[_0x4dac('0x2f')](_0x4dac('0x35'))['to'](_0x575d3b,_0x4dac('0x35'),_0x3378b3=>'suggestion-'+_0x3378b3),this[_0x4dac('0x2b')]['set'](_0x242254['id'],_0x1b8f89));const _0x248e61=_0xb50545[_0x4dac('0x4d')](_0x242254[_0x4dac('0x45')],_0x575d3b),_0x576099=new _0x11e26f(_0x9bd6d7,_0x242254,_0x575d3b,_0x248e61),_0x3bff30=_0x242254['getAllAdjacentSuggestions']()[_0x4dac('0x13')](_0x5eff01=>_0x5eff01[_0x4dac('0x6b')]);_0x575d3b[_0x4dac('0x9')]=_0x9bd6d7[_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x4b'))[_0x4dac('0x53')][_0x4dac('0x18')](_0x3bff30),this[_0x4dac('0x5e')][_0x4dac('0x49')](_0x242254,_0x576099),this[_0x4dac('0x57')][_0x4dac('0x49')](_0x575d3b,_0x576099);const _0x24548f=_0x5003e5['createAnnotation']({'view':_0x1b8f89,'target':()=>{const _0x1f2d9d=[],_0x488d87=_0x242254[_0x4dac('0x34')]()[_0x4dac('0x13')](_0x479327=>_0x479327[_0x4dac('0x6b')]);for(const _0x2d5443 of _0x488d87)_0x1f2d9d['push'](..._0x2d5443['getMarkers']());return _0x51d2ec(_0x9bd6d7[_0x4dac('0x2a')],_0x1f2d9d);},'type':()=>_0x4dac('0x39')+_0x576099[_0x4dac('0x16')][_0x4dac('0x35')]});_0xb50545[_0x4dac('0x6a')](_0x575d3b,_0x24548f),_0x5003e5['add'](_0x24548f),_0x3ca772[_0x4dac('0x4e')](_0x24548f);}['_destroyController'](_0x1a9993){const _0x1b4d43=this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x38')),_0x1bcd38=this[_0x4dac('0x19')][_0x4dac('0x27')]['get'](_0x4dac('0x25')),_0x32d85b=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x1a9993),_0x402099=_0x32d85b[_0x4dac('0x16')],_0x21e9e4=_0x1bcd38['getByInnerView'](_0x402099);_0x1b4d43[_0x4dac('0x5')](_0x402099),_0x21e9e4&&_0x1bcd38['remove'](_0x21e9e4),this[_0x4dac('0x5e')][_0x4dac('0x31')](_0x1a9993),this[_0x4dac('0x57')][_0x4dac('0x31')](_0x402099),_0x32d85b[_0x4dac('0xd')]();}[_0x4dac('0x3d')](_0x5ccaed){if(!_0x5ccaed['isInContent']||!this[_0x4dac('0x5e')][_0x4dac('0x64')](_0x5ccaed))return;const _0x4da20c=this[_0x4dac('0x19')]['plugins'][_0x4dac('0x15')]('TrackChangesEditing'),_0x3c88c1=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x5ccaed),_0x44d4cc=_0x5ccaed[_0x4dac('0x34')]();_0x3c88c1[_0x4dac('0x16')][_0x4dac('0x9')]=_0x4da20c[_0x4dac('0x53')][_0x4dac('0x18')](_0x44d4cc);}[_0x4dac('0xd')](){for(const _0x13ce43 of this[_0x4dac('0x5e')][_0x4dac('0x4')]())this['_destroyController'](_0x13ce43);for(const _0x1d95fe of this[_0x4dac('0x2b')][_0x4dac('0x2')]())_0x1d95fe[_0x4dac('0x33')]['destroy']();super[_0x4dac('0xd')]();}}
23
+ const _0x4db8=['size','acceptButton','innerView','_unbindEditors','focus','add','config','reduce','getAllAdjacentSuggestions','getDescriptions','_handleSuggestionControllerDelayed','editor','values','getSuggestion','button','value','delete','_viewToController','_annotationViews','_updateController','Accept\x20all\x20selected\x20suggestions','set','length','_initializeController','SuggestionThreadView','suggestion-','_suggestionToController','arrowView','_destroyController','stopListening','activeAnnotations','trackChanges','addComment','isOn','trackChanges.SuggestionThreadView','buttonView','commandName','isEnabled','_descriptionFactory','_bindAnnotationToEditors','bind','getFirstRange','init','separator','descriptionParts','componentFactory','has','type','get','plugins','Track\x20changes','pluginName','filter','trackChanges.disableComments','requires','head','commands','suggestionUnloaded','clear','lowest','unbind','listenTo','Discard\x20all\x20selected\x20suggestions','from','createAnnotationView','previous','_handleControllerBuffer','_createUIButton','Accept\x20all\x20suggestions','toMany','editing','EditorAnnotations','isInContent','push','comments','createAnnotation','_refreshActiveMarkers','activeMarkers','some','isDirty','destroy','getJoined','comments.editorConfig','actionView','mainView','keys','switchbutton','view','addSourceCollector','refreshSelectedViews','change:previous','_disableComments','model','createCommentThreadController','Annotations','define','suggestionChanged','discardAllSuggestions','getMarkerNames','TrackChangesEditing','registerAnnotation','commentThread','CommentsRepository','comments.maxCommentsWhenCollapsed','execute','source','discardButton'];(function(_0x58ea1e,_0x4db801){const _0xf39396=function(_0x17098a){while(--_0x17098a){_0x58ea1e['push'](_0x58ea1e['shift']());}};_0xf39396(++_0x4db801);}(_0x4db8,0x1d9));const _0xf393=function(_0x58ea1e,_0x4db801){_0x58ea1e=_0x58ea1e-0x0;let _0xf39396=_0x4db8[_0x58ea1e];return _0xf39396;};import{Plugin as _0x5217c0}from'ckeditor5/src/core';import{Collection as _0x21e323}from'ckeditor5/src/utils';import{Model as _0x3668f2,SplitButtonView as _0x1f460a,createDropdown as _0x17ae0a,addListToDropdown as _0x5f0409}from'ckeditor5/src/ui';import{Users as _0x35e2a0,getDateTimeFormatter as _0x3af19a,getAllMarkersDomElementsSorted as _0x3ae0b3}from'ckeditor5-collaboration/src/collaboration-core';import _0x1fc0f8 from'./trackchangesediting';import _0xcfb3a5 from'./ui/suggestioncontroller';import _0x418ed3 from'./ui/view/suggestionthreadview';import{getTranslation as _0x3b304d}from'./utils/common-translations';import _0x8431b1 from'../theme/icons/track-changes.svg';export default class d extends _0x5217c0{static get[_0xf393('0x9')](){return[_0x1fc0f8,_0x35e2a0,_0xf393('0x39'),_0xf393('0x31'),_0xf393('0x1a')];}static get[_0xf393('0x6')](){return'TrackChangesUI';}constructor(_0x4781a5){super(_0x4781a5),this['_suggestionToController']=new Map(),this[_0xf393('0x4f')]=new Map(),this[_0xf393('0x50')]=new Map(),this[_0xf393('0x15')]=new Map();const _0x52165b=this[_0xf393('0x49')]['config'];_0x52165b[_0xf393('0x32')](_0xf393('0x60'),_0x418ed3),_0x52165b['define']('trackChanges.disableComments',!0x1),this[_0xf393('0x2e')]=_0x52165b[_0xf393('0x3')](_0xf393('0x8'));}[_0xf393('0x48')](_0x5ebd9f,_0x106934){0x0===this['_handleControllerBuffer'][_0xf393('0x3e')]&&setTimeout(()=>{for(const [_0x56aed2,_0xa6ebaf]of this[_0xf393('0x15')]){const _0x26f8ff=this[_0xf393('0x58')][_0xf393('0x1')](_0x56aed2);_0x26f8ff||_0xa6ebaf?_0x26f8ff&&_0xa6ebaf&&this[_0xf393('0x5a')](_0x56aed2):this['_initializeController'](_0x56aed2);}this[_0xf393('0x49')][_0xf393('0x4')][_0xf393('0x3')](_0xf393('0x1a'))[_0xf393('0x2c')](),this['_refreshActiveMarkers'](),this[_0xf393('0x15')][_0xf393('0xd')]();},0xa),this['_handleControllerBuffer'][_0xf393('0x53')](_0x5ebd9f,_0x106934);}[_0xf393('0x68')](){const _0x578d01=this[_0xf393('0x49')],_0x5ee900=_0x578d01[_0xf393('0x4')]['get'](_0xf393('0x36')),_0x1cd5de=_0x578d01['plugins'][_0xf393('0x3')](_0xf393('0x31')),_0x1ce3f4=_0x578d01['plugins'][_0xf393('0x3')](_0xf393('0x1a')),_0xc4c391=_0x578d01['plugins'][_0xf393('0x3')]('CommentsRepository');_0x578d01['ui'][_0xf393('0x0')][_0xf393('0x43')](_0xf393('0x5d'),_0x482ccf=>this[_0xf393('0x16')](_0x482ccf)),_0x1ce3f4[_0xf393('0x2b')](()=>{const _0x3b50f2=[];for(const [_0x57cf83,_0x33b381]of Array[_0xf393('0x12')](this['_suggestionToController'])){const _0x4701dd=_0x57cf83[_0xf393('0x46')](),_0x3c1edb=[];for(const _0x120ac9 of _0x4701dd){if(!_0x120ac9[_0xf393('0x1b')])continue;if(_0x120ac9['isMultiRange']){_0x3c1edb[_0xf393('0x1c')](..._0x120ac9['getRanges']());continue;}const _0x149c46=_0x120ac9[_0xf393('0x67')]();if(_0x3c1edb[_0xf393('0x54')]>0x0){const _0x41be0c=_0x3c1edb[0x0][_0xf393('0x24')](_0x149c46);if(_0x41be0c){_0x3c1edb[0x0]=_0x41be0c;continue;}}_0x3c1edb[_0xf393('0x1c')](_0x149c46);}_0x3b50f2[_0xf393('0x1c')]([_0x33b381[_0xf393('0x2a')],_0x3c1edb]);}return _0x3b50f2;}),this[_0xf393('0x10')](_0x5ee900,'suggestionLoaded',(_0x2ceea5,_0x4704cc)=>{this[_0xf393('0x10')](_0x4704cc,_0xf393('0x2d'),(_0x3e2098,_0x228f36,_0x186110,_0x3d90ac)=>{_0x4704cc[_0xf393('0x1b')]&&(null==_0x186110?(this['_updateController'](_0x3d90ac[_0xf393('0xa')]),this[_0xf393('0x48')](_0x4704cc,!0x1)):(this[_0xf393('0x51')](_0x186110[_0xf393('0xa')]),this[_0xf393('0x48')](_0x4704cc,!0x0)));}),null===_0x4704cc[_0xf393('0x14')]?this[_0xf393('0x48')](_0x4704cc,!0x1):this[_0xf393('0x51')](_0x4704cc[_0xf393('0xa')]);}),this[_0xf393('0x10')](_0x5ee900,_0xf393('0xc'),(_0x5b3b82,_0x18e09f,_0x394155)=>{this[_0xf393('0x5b')](_0x18e09f,_0xf393('0x2d')),this[_0xf393('0x15')][_0xf393('0x4e')](_0x18e09f);const _0x4ca004=_0x394155?_0x394155['head']:_0x18e09f,_0x3a6f86=this[_0xf393('0x58')][_0xf393('0x3')](_0x4ca004);null!==_0x394155&&this[_0xf393('0x51')](_0x4ca004),null===_0x394155&&_0x3a6f86&&this['_destroyController'](_0x18e09f);}),this[_0xf393('0x10')](_0x5ee900,_0xf393('0x33'),(_0x46bdf9,_0x1f6907)=>{this[_0xf393('0x51')](_0x1f6907);}),this['listenTo'](_0x1cd5de,'change:activeAnnotations',()=>{this[_0xf393('0x1f')]();}),this[_0xf393('0x10')](_0xc4c391,_0xf393('0x5e'),(_0x2db349,{threadId:_0x177179,isFromAdapter:_0x455347})=>{if(_0x455347||!_0x5ee900['hasSuggestion'](_0x177179))return;const _0x1857af=_0x5ee900[_0xf393('0x4b')](_0x177179);this[_0xf393('0x58')][_0xf393('0x3')](_0x1857af)[_0xf393('0x2a')][_0xf393('0x42')]();},{'priority':_0xf393('0xe')});}[_0xf393('0x1f')](){const _0x50a314=this['editor'][_0xf393('0x4')][_0xf393('0x3')](_0xf393('0x31')),_0x2627cc=this[_0xf393('0x49')]['plugins'][_0xf393('0x3')](_0xf393('0x36')),_0x55e3d1=Array[_0xf393('0x12')](_0x50a314[_0xf393('0x5c')],_0x316ce7=>_0x316ce7[_0xf393('0x40')])[_0xf393('0x7')](_0x3d6be7=>this[_0xf393('0x4f')][_0xf393('0x1')](_0x3d6be7)),_0x65e27=[];for(const _0x9ace47 of _0x55e3d1){const _0x437554=this['_viewToController'][_0xf393('0x3')](_0x9ace47)['model'][_0xf393('0x46')]();_0x65e27['push'](..._0x437554[_0xf393('0x45')]((_0x20928a,_0x4081f1)=>[..._0x20928a,..._0x4081f1[_0xf393('0x35')]()],[]));}_0x2627cc[_0xf393('0x20')]=_0x65e27;}['_createUIButton'](_0x598efd){const _0x16e01a=_0x17ae0a(_0x598efd,_0x1f460a),_0x12a21f=this['editor'][_0xf393('0xb')][_0xf393('0x3')](_0xf393('0x5d')),_0x152fb1=_0x3b304d(_0x598efd,_0xf393('0x5'));_0x16e01a['buttonView'][_0xf393('0x53')]({'tooltip':_0x152fb1,'label':_0x152fb1,'icon':_0x8431b1}),_0x16e01a[_0xf393('0x61')][_0xf393('0x66')](_0xf393('0x5f'))['to'](_0x12a21f,_0xf393('0x4d')),_0x16e01a[_0xf393('0x61')]['on'](_0xf393('0x3b'),()=>{_0x12a21f[_0xf393('0x3b')](),this[_0xf393('0x49')][_0xf393('0x19')]['view'][_0xf393('0x42')]();});const _0x2a6ee1=new _0x21e323(),_0x4d3664=[{'type':_0xf393('0x29'),'model':{'withText':!0x0,'label':_0x152fb1,'commandName':'trackChanges'}},{'type':_0xf393('0x69')},{'type':_0xf393('0x4c'),'model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,_0xf393('0x17')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,_0xf393('0x52')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,'Discard\x20all\x20suggestions'),'commandName':_0xf393('0x34')}},{'type':'button','model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,_0xf393('0x11')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4b75e3 of _0x4d3664){let _0x566d5a={'type':_0xf393('0x69')};if(_0x4b75e3[_0xf393('0x2f')]){const _0x308c52=new _0x3668f2(_0x4b75e3[_0xf393('0x2f')]),_0x108f5c=this[_0xf393('0x49')][_0xf393('0xb')]['get'](_0x308c52[_0xf393('0x62')]);_0x308c52[_0xf393('0x66')](_0xf393('0x5f'),_0xf393('0x63'))['to'](_0x108f5c,_0xf393('0x4d'),_0xf393('0x63')),_0x566d5a={'type':_0x4b75e3[_0xf393('0x2')],'model':_0x308c52};}_0x2a6ee1[_0xf393('0x43')](_0x566d5a);}_0x5f0409(_0x16e01a,_0x2a6ee1);const _0x1d9825=_0x4d3664[_0xf393('0x7')](_0x1c55ec=>null!=_0x1c55ec['model'])['map'](_0x1eb2ed=>this[_0xf393('0x49')][_0xf393('0xb')][_0xf393('0x3')](_0x1eb2ed['model'][_0xf393('0x62')])),_0x5bf654=_0x16e01a[_0xf393('0x61')];return _0x5bf654[_0xf393('0x26')][_0xf393('0xf')](_0xf393('0x63')),_0x5bf654[_0xf393('0x59')][_0xf393('0xf')]('isEnabled'),_0x5bf654['actionView'][_0xf393('0x66')](_0xf393('0x63'))['to'](_0x12a21f,_0xf393('0x63')),_0x5bf654[_0xf393('0x59')]['bind']('isEnabled')[_0xf393('0x18')](_0x1d9825,_0xf393('0x63'),(..._0x1cfa4e)=>_0x1cfa4e[_0xf393('0x21')](_0x33284e=>_0x33284e)),_0x16e01a['on'](_0xf393('0x3b'),_0x1d2aaf=>{this[_0xf393('0x49')][_0xf393('0x3b')](_0x1d2aaf[_0xf393('0x3c')][_0xf393('0x62')]),this['editor'][_0xf393('0x19')][_0xf393('0x2a')][_0xf393('0x42')]();}),_0x16e01a;}[_0xf393('0x55')](_0x5ee158){const _0xb7ed04=this[_0xf393('0x49')],_0x121484=_0xb7ed04[_0xf393('0x44')],_0x2e4d11=_0xb7ed04['plugins'][_0xf393('0x3')](_0xf393('0x31')),_0x37058d=_0xb7ed04[_0xf393('0x4')]['get'](_0xf393('0x39')),_0x5504a9=_0xb7ed04['plugins']['get'](_0xf393('0x1a')),_0x4612a1=_0xb7ed04['plugins'][_0xf393('0x3')](_0x35e2a0)['me'],_0x5a428b=_0x121484[_0xf393('0x3')]('trackChanges')[_0xf393('0x56')],{CommentsListView:_0x5098b0,CommentThreadInputView:_0x11a39c}=_0xb7ed04['plugins'][_0xf393('0x3')]('CommentsUI');let _0x4be2f2,_0xb34c6c;this[_0xf393('0x50')][_0xf393('0x1')](_0x5ee158['id'])?(_0xb34c6c=this[_0xf393('0x50')][_0xf393('0x3')](_0x5ee158['id']),_0x4be2f2=_0xb34c6c[_0xf393('0x27')]):(_0x4be2f2=new _0x5a428b(_0xb7ed04['locale'],_0x5ee158,_0x4612a1,{'disableComments':this[_0xf393('0x2e')],'editorConfig':_0x121484[_0xf393('0x3')](_0xf393('0x25')),'maxCommentsWhenCollapsed':_0x121484[_0xf393('0x3')](_0xf393('0x3a')),'maxThreadTotalWeight':_0x121484[_0xf393('0x3')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x121484[_0xf393('0x3')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3af19a(_0x121484[_0xf393('0x3')]('locale')),'CommentView':_0x121484[_0xf393('0x3')](_0xf393('0x1d'))['CommentView'],'CommentsListView':_0x5098b0,'CommentThreadInputView':_0x11a39c}),_0x4be2f2[_0xf393('0x3f')]['on'](_0xf393('0x3b'),()=>{_0xb7ed04['editing'][_0xf393('0x2a')][_0xf393('0x42')]();}),_0x4be2f2[_0xf393('0x3d')]['on'](_0xf393('0x3b'),()=>{_0xb7ed04[_0xf393('0x19')][_0xf393('0x2a')]['focus']();}),_0xb34c6c=_0x2e4d11[_0xf393('0x13')](this[_0xf393('0x49')]['locale'],_0x4be2f2),_0xb34c6c[_0xf393('0x66')](_0xf393('0x22'))['to'](_0x4be2f2,_0xf393('0x22')),_0xb34c6c['bind'](_0xf393('0x54'))['to'](_0x4be2f2),_0xb34c6c[_0xf393('0x66')]('type')['to'](_0x4be2f2,_0xf393('0x2'),_0x45afe3=>_0xf393('0x57')+_0x45afe3),this[_0xf393('0x50')]['set'](_0x5ee158['id'],_0xb34c6c));const _0x3853c2=_0x37058d[_0xf393('0x30')](_0x5ee158[_0xf393('0x38')],_0x4be2f2),_0x28761a=new _0xcfb3a5(_0xb7ed04,_0x5ee158,_0x4be2f2,_0x3853c2),_0x10997f=_0x5ee158[_0xf393('0x46')]()['filter'](_0x54d608=>_0x54d608[_0xf393('0x1b')]);_0x4be2f2['descriptionParts']=_0xb7ed04['plugins'][_0xf393('0x3')](_0xf393('0x36'))['_descriptionFactory'][_0xf393('0x47')](_0x10997f),this[_0xf393('0x58')][_0xf393('0x53')](_0x5ee158,_0x28761a),this[_0xf393('0x4f')][_0xf393('0x53')](_0x4be2f2,_0x28761a);const _0x1dd787=_0x2e4d11[_0xf393('0x1e')]({'view':_0xb34c6c,'target':()=>{const _0x40571a=[],_0x5c248a=_0x5ee158[_0xf393('0x46')]()[_0xf393('0x7')](_0x34079a=>_0x34079a[_0xf393('0x1b')]);for(const _0x42841a of _0x5c248a)_0x40571a['push'](..._0x42841a['getMarkers']());return _0x3ae0b3(_0xb7ed04['editing'],_0x40571a);},'type':()=>'suggestion-'+_0x28761a[_0xf393('0x2a')][_0xf393('0x2')]});_0x37058d[_0xf393('0x65')](_0x4be2f2,_0x1dd787),_0x2e4d11[_0xf393('0x43')](_0x1dd787),_0x5504a9[_0xf393('0x37')](_0x1dd787);}[_0xf393('0x5a')](_0x19ca6a){const _0x257073=this[_0xf393('0x49')]['plugins'][_0xf393('0x3')](_0xf393('0x39')),_0xec0721=this[_0xf393('0x49')][_0xf393('0x4')][_0xf393('0x3')]('Annotations'),_0x1f1147=this[_0xf393('0x58')][_0xf393('0x3')](_0x19ca6a),_0x5549a6=_0x1f1147['view'],_0x505beb=_0xec0721['getByInnerView'](_0x5549a6);_0x257073[_0xf393('0x41')](_0x5549a6),_0x505beb&&_0xec0721['remove'](_0x505beb),this[_0xf393('0x58')]['delete'](_0x19ca6a),this[_0xf393('0x4f')][_0xf393('0x4e')](_0x5549a6),_0x1f1147[_0xf393('0x23')]();}[_0xf393('0x51')](_0x3e5a9e){if(!_0x3e5a9e['isInContent']||!this[_0xf393('0x58')][_0xf393('0x1')](_0x3e5a9e))return;const _0x3154fb=this[_0xf393('0x49')][_0xf393('0x4')][_0xf393('0x3')]('TrackChangesEditing'),_0x1ed43c=this[_0xf393('0x58')][_0xf393('0x3')](_0x3e5a9e),_0x6ab54=_0x3e5a9e[_0xf393('0x46')]();_0x1ed43c[_0xf393('0x2a')][_0xf393('0x6a')]=_0x3154fb[_0xf393('0x64')]['getDescriptions'](_0x6ab54);}[_0xf393('0x23')](){for(const _0x4775e9 of this[_0xf393('0x58')][_0xf393('0x28')]())this[_0xf393('0x5a')](_0x4775e9);for(const _0x5060fa of this['_annotationViews'][_0xf393('0x4a')]())_0x5060fa['mainView'][_0xf393('0x23')]();super[_0xf393('0x23')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3450=['listenTo','locale','add','_editor','remove','getRanges','isDirty','_discardCommand','view','_acceptCommand','_pendingAction','unbind','_removePendingAction','PendingActions','canEditAt','canAccept','destroy','change:isDirty','discardSuggestion','commands','acceptSuggestion','isEnabled','plugins','_setPendingAction','canDiscard','commentThreadController','get','PENDING_ACTION_SUGGESTION','model','bind'];(function(_0x4294b3,_0x3450f6){const _0x221540=function(_0x255fde){while(--_0x255fde){_0x4294b3['push'](_0x4294b3['shift']());}};_0x221540(++_0x3450f6);}(_0x3450,0x17b));const _0x2215=function(_0x4294b3,_0x3450f6){_0x4294b3=_0x4294b3-0x0;let _0x221540=_0x3450[_0x4294b3];return _0x221540;};import{ObservableMixin as _0x3269b0}from'ckeditor5/src/utils';import{getTranslation as _0x414d5a}from'../utils/common-translations';export default class Gt extends _0x3269b0(){constructor(_0x33d3b5,_0x157ee2,_0x284810,_0x39c1df){super(),this[_0x2215('0x9')]=_0x157ee2,this[_0x2215('0x13')]=_0x284810,this[_0x2215('0x6')]=_0x39c1df,this[_0x2215('0xe')]=_0x33d3b5,this[_0x2215('0x14')]=_0x33d3b5[_0x2215('0x0')][_0x2215('0x7')](_0x2215('0x1')),this[_0x2215('0x12')]=_0x33d3b5[_0x2215('0x0')][_0x2215('0x7')](_0x2215('0x1d')),this[_0x2215('0x13')]['bind']('isEnabled')['to'](this[_0x2215('0x14')],this[_0x2215('0x12')],(_0x57d442,_0x5c2623)=>_0x57d442||_0x5c2623),this[_0x2215('0x13')][_0x2215('0xa')]('canAccept')['to'](this[_0x2215('0x14')],_0x2215('0x2'),_0x5a2b43=>_0x5a2b43&&this[_0x2215('0xe')]['model'][_0x2215('0x19')](_0x157ee2[_0x2215('0x10')]())),this[_0x2215('0x13')][_0x2215('0xa')](_0x2215('0x5'))['to'](this[_0x2215('0x12')],_0x2215('0x2'),_0x228880=>_0x228880&&this[_0x2215('0xe')][_0x2215('0x9')][_0x2215('0x19')](_0x157ee2[_0x2215('0x10')]())),this['_pendingAction']=null,_0x284810[_0x2215('0x11')]&&this['_setPendingAction'](),this[_0x2215('0xb')](_0x284810,'acceptSuggestion',()=>this[_0x2215('0x1')]()),this[_0x2215('0xb')](_0x284810,_0x2215('0x1d'),()=>this[_0x2215('0x1d')]()),this[_0x2215('0xb')](_0x284810,_0x2215('0x1c'),()=>{_0x284810[_0x2215('0x11')]?this[_0x2215('0x4')]():this[_0x2215('0x17')]();});}[_0x2215('0x1')](){this[_0x2215('0x14')]['execute'](this[_0x2215('0x9')]['id']);}['discardSuggestion'](){this[_0x2215('0x12')]['execute'](this[_0x2215('0x9')]['id']);}[_0x2215('0x1b')](){this['view'][_0x2215('0x16')]('isEnabled'),this[_0x2215('0x13')]['unbind'](_0x2215('0x1a')),this[_0x2215('0x13')][_0x2215('0x16')](_0x2215('0x5')),this['stopListening'](),this[_0x2215('0x6')][_0x2215('0x1b')](),this[_0x2215('0x15')]&&this[_0x2215('0x17')]();}[_0x2215('0x4')](){const _0x2a3691=_0x414d5a(this[_0x2215('0xe')][_0x2215('0xc')],_0x2215('0x8'));this[_0x2215('0x15')]=this['_editor'][_0x2215('0x3')][_0x2215('0x7')](_0x2215('0x18'))[_0x2215('0xd')](_0x2a3691);}[_0x2215('0x17')](){null!==this[_0x2215('0x15')]&&this[_0x2215('0xe')]['plugins'][_0x2215('0x7')](_0x2215('0x18'))[_0x2215('0xf')](this[_0x2215('0x15')]),this['_pendingAction']=null;}}
23
+ const _0x22b3=['_removePendingAction','destroy','_acceptCommand','PENDING_ACTION_SUGGESTION','change:isDirty','stopListening','_editor','remove','canDiscard','_discardCommand','bind','unbind','add','discardSuggestion','canAccept','_setPendingAction','plugins','commands','PendingActions','_pendingAction','getRanges','commentThreadController','model','execute','canEditAt','locale','get','view','isEnabled','acceptSuggestion','listenTo'];(function(_0x3a742d,_0x22b3d2){const _0x22a6f3=function(_0x190879){while(--_0x190879){_0x3a742d['push'](_0x3a742d['shift']());}};_0x22a6f3(++_0x22b3d2);}(_0x22b3,0x73));const _0x22a6=function(_0x3a742d,_0x22b3d2){_0x3a742d=_0x3a742d-0x0;let _0x22a6f3=_0x22b3[_0x3a742d];return _0x22a6f3;};import{ObservableMixin as _0x2e7b23}from'ckeditor5/src/utils';import{getTranslation as _0x45bc19}from'../utils/common-translations';export default class Gt extends _0x2e7b23(){constructor(_0x53ce04,_0x2141cf,_0x3134a5,_0x2ca321){super(),this[_0x22a6('0x0')]=_0x2141cf,this[_0x22a6('0x5')]=_0x3134a5,this['commentThreadController']=_0x2ca321,this[_0x22a6('0xf')]=_0x53ce04,this[_0x22a6('0xb')]=_0x53ce04['commands'][_0x22a6('0x4')](_0x22a6('0x7')),this['_discardCommand']=_0x53ce04[_0x22a6('0x1a')][_0x22a6('0x4')]('discardSuggestion'),this[_0x22a6('0x5')]['bind'](_0x22a6('0x6'))['to'](this['_acceptCommand'],this[_0x22a6('0x12')],(_0x2f1ac9,_0x1d3997)=>_0x2f1ac9||_0x1d3997),this[_0x22a6('0x5')][_0x22a6('0x13')](_0x22a6('0x17'))['to'](this[_0x22a6('0xb')],_0x22a6('0x6'),_0x330dbb=>_0x330dbb&&this['_editor']['model']['canEditAt'](_0x2141cf[_0x22a6('0x1d')]())),this[_0x22a6('0x5')][_0x22a6('0x13')](_0x22a6('0x11'))['to'](this[_0x22a6('0x12')],_0x22a6('0x6'),_0x226f74=>_0x226f74&&this['_editor'][_0x22a6('0x0')][_0x22a6('0x2')](_0x2141cf[_0x22a6('0x1d')]())),this['_pendingAction']=null,_0x3134a5['isDirty']&&this[_0x22a6('0x18')](),this[_0x22a6('0x8')](_0x3134a5,_0x22a6('0x7'),()=>this[_0x22a6('0x7')]()),this[_0x22a6('0x8')](_0x3134a5,_0x22a6('0x16'),()=>this['discardSuggestion']()),this[_0x22a6('0x8')](_0x3134a5,_0x22a6('0xd'),()=>{_0x3134a5['isDirty']?this[_0x22a6('0x18')]():this[_0x22a6('0x9')]();});}[_0x22a6('0x7')](){this[_0x22a6('0xb')][_0x22a6('0x1')](this[_0x22a6('0x0')]['id']);}['discardSuggestion'](){this['_discardCommand'][_0x22a6('0x1')](this[_0x22a6('0x0')]['id']);}[_0x22a6('0xa')](){this['view'][_0x22a6('0x14')]('isEnabled'),this[_0x22a6('0x5')]['unbind'](_0x22a6('0x17')),this['view']['unbind']('canDiscard'),this[_0x22a6('0xe')](),this[_0x22a6('0x1e')]['destroy'](),this[_0x22a6('0x1c')]&&this['_removePendingAction']();}['_setPendingAction'](){const _0x4107e2=_0x45bc19(this['_editor'][_0x22a6('0x3')],_0x22a6('0xc'));this[_0x22a6('0x1c')]=this['_editor']['plugins'][_0x22a6('0x4')]('PendingActions')[_0x22a6('0x15')](_0x4107e2);}[_0x22a6('0x9')](){null!==this[_0x22a6('0x1c')]&&this['_editor'][_0x22a6('0x19')][_0x22a6('0x4')](_0x22a6('0x1b'))[_0x22a6('0x10')](this[_0x22a6('0x1c')]),this[_0x22a6('0x1c')]=null;}}