@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 38.2.0-alpha.1

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 (130) hide show
  1. package/build/track-changes.js +2 -2
  2. package/package.json +3 -3
  3. package/src/augmentation.d.ts +2 -2
  4. package/src/commands/acceptsuggestioncommand.d.ts +2 -2
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.d.ts +2 -2
  7. package/src/commands/discardsuggestioncommand.js +1 -1
  8. package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
  9. package/src/commands/executeonallsuggestionscommand.js +1 -1
  10. package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
  11. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  12. package/src/commands/trackchangescommand.d.ts +1 -1
  13. package/src/commands/trackchangescommand.js +1 -1
  14. package/src/index.d.ts +12 -12
  15. package/src/index.js +1 -1
  16. package/src/integrations/alignment.d.ts +1 -1
  17. package/src/integrations/alignment.js +1 -1
  18. package/src/integrations/basicstyles.d.ts +1 -1
  19. package/src/integrations/basicstyles.js +1 -1
  20. package/src/integrations/blockquote.d.ts +1 -1
  21. package/src/integrations/blockquote.js +1 -1
  22. package/src/integrations/ckbox.d.ts +1 -1
  23. package/src/integrations/ckbox.js +1 -1
  24. package/src/integrations/codeblock.d.ts +1 -1
  25. package/src/integrations/codeblock.js +1 -1
  26. package/src/integrations/comments.d.ts +1 -1
  27. package/src/integrations/comments.js +1 -1
  28. package/src/integrations/deletecommand.d.ts +2 -2
  29. package/src/integrations/deletecommand.js +1 -1
  30. package/src/integrations/documentlist.d.ts +1 -1
  31. package/src/integrations/documentlist.js +1 -1
  32. package/src/integrations/documentlistproperties.d.ts +3 -3
  33. package/src/integrations/documentlistproperties.js +1 -1
  34. package/src/integrations/entercommand.d.ts +2 -2
  35. package/src/integrations/entercommand.js +1 -1
  36. package/src/integrations/findandreplace.d.ts +1 -1
  37. package/src/integrations/findandreplace.js +1 -1
  38. package/src/integrations/font.d.ts +1 -1
  39. package/src/integrations/font.js +1 -1
  40. package/src/integrations/formatpainter.d.ts +1 -1
  41. package/src/integrations/formatpainter.js +1 -1
  42. package/src/integrations/heading.d.ts +1 -1
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +1 -1
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +1 -1
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +1 -1
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +1 -1
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +3 -3
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +1 -1
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +1 -1
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +2 -2
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +1 -1
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +1 -1
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +3 -3
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +1 -1
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +1 -1
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +1 -1
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +1 -1
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +1 -1
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +1 -1
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +2 -2
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +1 -1
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +1 -1
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +1 -1
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +2 -2
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +2 -2
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +4 -4
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +2 -2
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +2 -2
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableofcontents.d.ts +1 -1
  97. package/src/integrations/tableofcontents.js +1 -1
  98. package/src/integrations/tableproperties.d.ts +4 -4
  99. package/src/integrations/tableproperties.js +1 -1
  100. package/src/integrations/template.d.ts +1 -1
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.d.ts +1 -1
  103. package/src/integrations/title.js +1 -1
  104. package/src/integrations/undo.d.ts +1 -1
  105. package/src/integrations/undo.js +1 -1
  106. package/src/integrations/utils.d.ts +3 -3
  107. package/src/integrations/utils.js +1 -1
  108. package/src/suggestion.d.ts +5 -5
  109. package/src/suggestion.js +1 -1
  110. package/src/suggestiondescriptionfactory.d.ts +15 -3
  111. package/src/suggestiondescriptionfactory.js +1 -1
  112. package/src/trackchanges.d.ts +6 -6
  113. package/src/trackchanges.js +1 -1
  114. package/src/trackchangesconfig.d.ts +1 -1
  115. package/src/trackchangesdata.d.ts +4 -4
  116. package/src/trackchangesdata.js +1 -1
  117. package/src/trackchangesediting.d.ts +51 -51
  118. package/src/trackchangesediting.js +1 -1
  119. package/src/trackchangesui.d.ts +3 -3
  120. package/src/trackchangesui.js +1 -1
  121. package/src/ui/suggestioncontroller.d.ts +5 -5
  122. package/src/ui/suggestioncontroller.js +1 -1
  123. package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
  124. package/src/ui/view/basesuggestionthreadview.js +1 -1
  125. package/src/ui/view/suggestionthreadview.d.ts +5 -5
  126. package/src/ui/view/suggestionthreadview.js +1 -1
  127. package/src/utils/common-translations.d.ts +1 -1
  128. package/src/utils/common-translations.js +1 -1
  129. package/src/utils/utils.d.ts +4 -4
  130. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55ff=['removeAttribute','has','applyOperation','nodeBefore','getCustomProperty','authorName','requires','addComment','isInContent','accept','formatBlock:join','deletion:accept','join','insertion:accept','createPositionAt','next','mapper','acceptAllSuggestions','_findSuggestions','notReady','discard','createdAt','element','fetchCommentThread','document','TrackChangesEditing','buildSuggestion','dataDowncast','ck-suggestion-marker-formatBlock','addSuggestionData','rootName','addMarker','includes','track-changes-command-not-found','markerName','isOwn','getChanges','_model','conversion','model','add','always','getRanges','refresh','ck-suggestion-marker-','createRange','clear','PENDING_ACTION_SUGGESTION','listenTo','bindElementToMarker','createSelection','PendingActions','locale','toViewElement','_joinSuggestions','high','map','Users','head','_setSuggestionData','hasCommentThread','getFirstRange','differ','parent','formatGroupId','every','consume','substr','adapter','createRangeIn','setAttribute','fire','showSuggestionHighlights','_joinWithAdjacentSuggestions','elementStart','reconvertMarker','addMarkerName','suggestion','updateMarker','deletion','commentThread','markers','_splitMarkerName','formatInline:chain','_editor','size','backward','batch','marker-count','getUser','execute','_addThreadToSuggestion','ck-suggestion-marker','formatBlock:discard','delete','trackChangesCommand','before','discardAllSuggestions','discardSuggestion','insertion:chain','data','markMultiRangeBlockFormat','markBlockFormat','nodeAfter','isMultiRange','acceptSuggestion','isExternal','_rangeIsInLocalUserInsertion','markerToData','markerNameToElements','init','containsRangeInObject','formatInline','start','_saved','track-changes-suggestion-not-found','values','external:','addSuggestion','isBlock','insertion','removeMarkers','stop','_breakSuggestionMarker','containsRange','newRange','_adapter','position','change:data','isAtStart','CommentsRepository','addClass','ready','documentSelection','subType','isIntersectingWithRange','markerReady','default','_refreshSuggestionsChain','_isForcedDefaultExecutionBlock','getWalker','name','selection','formatBlock','_descriptionFactory','upcast','enableCommand','_registerDefaultCallbacks','end','change','open','getMarkers','rethrowUnexpectedError','value','sort','isDocumentOperation','getMultiRangeId','enqueueChange','suggestion-type','config','_addSuggestionMarker','containerElement','containsItem','hasSuggestion','setTo','normal','previous','createPositionAfter','isEqual','originalSuggestionId','isLimit','activeMarkers','_checkSuggestionCorrectness','range','define','removeMarker:suggestion:formatBlock','authoredAt','multi','trackChanges.trackFormatChanges','filter','removed','consumable','markInlineFormat','markDeletion','deletion:join','markerToHighlight','getSuggestion','author','after','isObject','insert','detach','addUser','rejected','for','lowest','splice','trackChanges.mergeNestedSuggestions','accepted','from','type','_setSuggestionRange','schema','getSuggestions','get','_removeSuggestion','editor','root','track-changes-suggestion-data-mismatch','length','formatBlock:chain','commandName','attributes','_cutOutSuggestionMarker','fromRange','track-changes-adapter-missing-getsuggestion','_suggestionState','$textProxy','_handleNewSuggestionMarker','change:activeMarkers','deletion:discard','registerCustomCallback','suggestionChanged','isBefore','deleteContent','ck-suggestion-marker--active','_updateSuggestionData','addRange','registerPostFixer','unbindElementFromMarkerName','isRemovable','removeClass','isInsideObject','acceptSelectedSuggestions','_enabledCommands','_mergeNestedSuggestions','getIntersection','creator','writer','getCommentThread','hasComments','_getSuggestionData','addMarker:suggestion:formatBlock','elementToElement','suggestionUnloaded','return','isAfter','track-changes-user-not-found','unbind','formatBlock:','commands','_getExternalAuthor','plugins','createElement','change:_saved','howMany','deletion:chain','insertion:join','isTouching','split','options','getItems','collaboration.channelId','formatInline:','markMultiRangeInsertion','addMarker:suggestion','_suggestionFactory','getDifference','formatBlock:accept','some','never','editingDowncast','insertContent','remove','splitPosition','push','getAllAdjacentSuggestions','dataToMarker','formatInline:discard','markInsertion','getChangedMarkers','isUndo','_suggestions','removeMarker','suggestion:','isCollapsed','addHighlight','multipleBlocks','_commentsRepository','discardSelectedSuggestions','update:suggestion','formatInline:accept','markMultiRangeDeletion','isNextTo','formatInline:join','item','setSelection','getSuggestionCallback','suggestionLoaded','@external','elementEnd','getNearestSelectionRange','getShiftedBy','skipNestingCheck','forceDefaultExecution','move','_createSuggestion','_customCallbacks','low','_defaultCallbacks','$graveyard','getLastMatchingPosition','enableReadOnlyMode','catch','dataReady','then','updateSuggestion','_trackFormatChanges','isAtEnd','getAttribute','targetPosition','trackChanges','set','clone'];(function(_0x2cc75f,_0x55ffd7){const _0x2bf605=function(_0x493c51){while(--_0x493c51){_0x2cc75f['push'](_0x2cc75f['shift']());}};_0x2bf605(++_0x55ffd7);}(_0x55ff,0x120));const _0x2bf6=function(_0x2cc75f,_0x55ffd7){_0x2cc75f=_0x2cc75f-0x0;let _0x2bf605=_0x55ff[_0x2cc75f];return _0x2bf605;};import{Plugin as _0x4c5301,PendingActions as _0x3e3ca8}from'ckeditor5/src/core';import{LiveRange as _0x4f1a19}from'ckeditor5/src/engine';import{CKEditorError as _0x1237ef,uid as _0x14cdfd,priorities as _0x44e3be,logWarning as _0x1d61a2}from'ckeditor5/src/utils';import{toWidget as _0x433c4a}from'ckeditor5/src/widget';import{Users as _0x5da766,hashObject as _0x3b862a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d456f from'./commands/trackchangescommand';import _0xe6062a from'./commands/acceptsuggestioncommand';import _0x59483e from'./commands/discardsuggestioncommand';import _0x38ad56 from'./commands/executeonallsuggestionscommand';import _0x595cbe from'./commands/executeonselectedsuggestionscommand';import _0x3dcbb7 from'./suggestion';import _0x5bf8ae from'./suggestiondescriptionfactory';import _0x393e78 from'./integrations/alignment';import _0x5526bb from'./integrations/basicstyles';import _0x3bf1b0 from'./integrations/blockquote';import _0x1dcf57 from'./integrations/ckbox';import _0x16a5cd from'./integrations/codeblock';import _0xf580f2 from'./integrations/comments';import _0x3f5eaf from'./integrations/deletecommand';import _0x31539c from'./integrations/documentlist';import _0x2747f1 from'./integrations/entercommand';import _0x29cfc8 from'./integrations/findandreplace';import _0x11cdd4 from'./integrations/font';import _0xb60705 from'./integrations/formatpainter';import _0x4567d8 from'./integrations/heading';import _0x2d4340 from'./integrations/highlight';import _0x26104f from'./integrations/horizontalline';import _0x194436 from'./integrations/htmlembed';import _0x2ef9e9 from'./integrations/image';import _0x474071 from'./integrations/imagereplace';import _0x326c7d from'./integrations/importword';import _0x382a3e from'./integrations/indent';import _0x3c13b6 from'./integrations/inputcommand';import _0x129e07 from'./integrations/link';import _0x2da4a5 from'./integrations/list';import _0x52aaf6 from'./integrations/listproperties';import _0x3889ec from'./integrations/mediaembed';import _0x2babae from'./integrations/mention';import _0x11549f from'./integrations/pagebreak';import _0x11761e from'./integrations/paragraph';import _0x2a1320 from'./integrations/removeformat';import _0x51ecd1 from'./integrations/restrictededitingmode';import _0xc362c7 from'./integrations/shiftentercommand';import _0x97acbe from'./integrations/standardeditingmode';import _0x16ba7c from'./integrations/style';import _0x1b77f2 from'./integrations/table';import _0x4a9b05 from'./integrations/tablemergesplit';import _0x5dc308 from'./integrations/tableheadings';import _0x452763 from'./integrations/tableclipboard';import _0x4516a7 from'./integrations/tablecolumnresize';import _0x4c5e7b from'./integrations/template';import _0xa86465 from'./integrations/tableofcontents';import _0x1bac2e from'./integrations/title';import _0x425a72 from'./integrations/undo';import{getTranslation as _0x4ce5de}from'./utils/common-translations';import _0x26fc59 from'./integrations/tablecaption';import _0x49e537 from'./integrations/documentlistproperties';import _0x1dd1f2 from'./integrations/tableproperties';export default class p extends _0x4c5301{static get[_0x2bf6('0x2a')](){return[_0x2bf6('0xa6'),_0x5da766,_0x3e3ca8,_0x393e78,_0x5526bb,_0x3bf1b0,_0x1dcf57,_0x16a5cd,_0xf580f2,_0x3f5eaf,_0x31539c,_0x49e537,_0x2747f1,_0x29cfc8,_0x11cdd4,_0xb60705,_0x4567d8,_0x2d4340,_0x26104f,_0x194436,_0x2ef9e9,_0x474071,_0x326c7d,_0x382a3e,_0x3c13b6,_0x129e07,_0x2da4a5,_0x52aaf6,_0x3889ec,_0x2babae,_0x11549f,_0x11761e,_0x2a1320,_0x51ecd1,_0xc362c7,_0x97acbe,_0x16ba7c,_0x1b77f2,_0x4a9b05,_0x5dc308,_0x26fc59,_0x452763,_0x4516a7,_0xa86465,_0x1dd1f2,_0x4c5e7b,_0x1bac2e,_0x425a72];}static get['pluginName'](){return _0x2bf6('0x3d');}constructor(_0x1b74ca){function _0x1c4d58(_0x332bb1){return _0x332bb1['map'](_0x3530ad=>String['fromCharCode'](_0x3530ad))['join']('');}super(_0x1b74ca),this[_0x2bf6('0x22')](_0x2bf6('0xcf'),[]),this['on'](_0x2bf6('0xff'),(_0x26b4fa,_0x3e248b,_0x3e40bf,_0x1f2403)=>{this[_0x2bf6('0x49')][_0x2bf6('0xb9')](()=>{for(const _0x510bb8 of[..._0x1f2403,..._0x3e40bf])this[_0x2bf6('0x49')][_0x2bf6('0x75')][_0x2bf6('0x25')](_0x510bb8)&&_0x1b74ca['editing'][_0x2bf6('0x6f')](_0x510bb8);});}),this[_0x2bf6('0xb4')]=new _0x5bf8ae(this['editor'][_0x2bf6('0x4b')][_0x2bf6('0xee')],this[_0x2bf6('0xf2')][_0x2bf6('0x58')]),this[_0x2bf6('0xa2')]=null,this[_0x2bf6('0x12e')]=new Dt(this['editor']),this[_0x2bf6('0x13e')]=new Map(),this[_0x2bf6('0x0')]=_0x1b74ca[_0x2bf6('0x120')]['get'](_0x2bf6('0xa6')),this[_0x2bf6('0x10e')]=new Set(),this['_model']=this[_0x2bf6('0xf2')][_0x2bf6('0x4b')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1b74ca[_0x2bf6('0xc3')]['define'](_0x2bf6('0xd6'),_0x2bf6('0xad')),this['_trackFormatChanges']=_0x1b74ca[_0x2bf6('0xc3')][_0x2bf6('0xf0')](_0x2bf6('0xd6')),_0x1b74ca[_0x2bf6('0xc3')][_0x2bf6('0xd2')](_0x2bf6('0xe9'),!0x0),this[_0x2bf6('0x10f')]=_0x1b74ca[_0x2bf6('0xc3')]['get'](_0x2bf6('0xe9')),this['trackChangesCommand']=new _0x2d456f(_0x1b74ca,this['_enabledCommands']),this[_0x1c4d58([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1c4d58([0x34,0x30,0x34,0x36,0x31,0x32,0x35,0x38]);}[_0x2bf6('0x92')](){const _0x50007d=this[_0x2bf6('0xf2')];_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0x133'))[_0x2bf6('0xdd')]({'model':'suggestion','view':_0x5a29a1=>{const {id:_0x71fc43,type:_0x10afc0}=this[_0x2bf6('0x76')](_0x5a29a1['markerName']),_0x27f745=[_0x2bf6('0x80'),_0x2bf6('0x50')+_0x10afc0];let _0x27cc5a=0xbb8;return this[_0x2bf6('0xcf')][_0x2bf6('0x44')](_0x5a29a1[_0x2bf6('0x46')])&&(_0x27f745[_0x2bf6('0x137')](_0x2bf6('0x105')),_0x27cc5a=0xbc2),_0x2bf6('0x73')==_0x10afc0&&(_0x27cc5a+=0x5),{'classes':_0x27f745,'attributes':{'data-suggestion':_0x71fc43},'priority':_0x27cc5a};}}),_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0x3f'))['add'](_0x2517ca=>{_0x2517ca['on'](_0x2bf6('0x12d'),(_0x49a873,_0x356aca,_0x1607d9)=>{if(!_0x1607d9['options'][_0x2bf6('0x6c')])return;const _0x1900fa=_0x356aca[_0x2bf6('0x7')];if(!_0x1900fa)return;const _0x284363=_0x1607d9[_0x2bf6('0x34')][_0x2bf6('0x59')](_0x1900fa);_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')]['isObject'](_0x1900fa)&&_0x284363&&!_0x284363[_0x2bf6('0x28')]('widget')&&_0x284363['is'](_0x2bf6('0xc5'))&&_0x433c4a(_0x284363,_0x1607d9['writer']);},{'priority':_0x2bf6('0x5b')});}),_0x50007d[_0x2bf6('0x4a')]['for']('dataDowncast')[_0x2bf6('0xdd')]({'model':_0x2bf6('0x71'),'view':(_0x378107,_0x1b71c)=>{if(!_0x1b71c[_0x2bf6('0x128')]['showSuggestionHighlights'])return null;const {type:_0x479661}=this[_0x2bf6('0x76')](_0x378107['markerName']);return{'classes':[_0x2bf6('0x80'),_0x2bf6('0x50')+_0x479661],'priority':0xbb8};}});const _0xa28000=({showActiveMarkers:_0x44ab94=!0x0}={})=>(_0x383bf1,_0x3ebdcf,_0x3a7951)=>{if(!_0x3ebdcf['item'])return;if(_0x3ebdcf['item']['is'](_0x2bf6('0xb2')))return void _0x3a7951['consumable'][_0x2bf6('0x66')](_0x3ebdcf[_0x2bf6('0x7')],_0x383bf1[_0x2bf6('0xb1')]);const _0x35d8de=_0x3a7951[_0x2bf6('0x34')][_0x2bf6('0x59')](_0x3ebdcf['item']);if(!(_0x3ebdcf[_0x2bf6('0x7')]['is'](_0x2bf6('0x3a'))&&_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')][_0x2bf6('0x9b')](_0x3ebdcf[_0x2bf6('0x7')])&&!_0x35d8de[_0x2bf6('0x28')](_0x2bf6('0x142'))))return;const {id:_0x385821}=this['_splitMarkerName'](_0x3ebdcf[_0x2bf6('0x46')]);_0x3a7951[_0x2bf6('0x112')][_0x2bf6('0xa7')]([_0x2bf6('0x80'),_0x2bf6('0x40')],_0x35d8de),_0x3a7951['writer'][_0x2bf6('0x6a')]('data-suggestion',_0x385821,_0x35d8de),_0x3a7951['mapper'][_0x2bf6('0x55')](_0x35d8de,_0x3ebdcf[_0x2bf6('0x46')]),_0x44ab94&&(this['activeMarkers'][_0x2bf6('0x44')](_0x3ebdcf['markerName'])?_0x3a7951[_0x2bf6('0x112')]['addClass']('ck-suggestion-marker--active',_0x35d8de):_0x3a7951[_0x2bf6('0x112')]['removeClass']('ck-suggestion-marker--active',_0x35d8de));for(const _0x984440 of _0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x69')](_0x3ebdcf[_0x2bf6('0x7')])[_0x2bf6('0x129')]())_0x3a7951[_0x2bf6('0xd9')][_0x2bf6('0x66')](_0x984440,_0x383bf1[_0x2bf6('0xb1')]);_0x3a7951[_0x2bf6('0xd9')]['consume'](_0x3ebdcf[_0x2bf6('0x7')],_0x383bf1[_0x2bf6('0xb1')]);};_0x50007d[_0x2bf6('0x4a')]['for']('dataDowncast')[_0x2bf6('0x4c')](_0x31b73e=>{_0x31b73e['on'](_0x2bf6('0x116'),(_0x20b59e,_0x2f68c2,_0x4ddbf8)=>{_0x4ddbf8[_0x2bf6('0x128')][_0x2bf6('0x6c')]&&_0xa28000({'showActiveMarkers':!0x1})(_0x20b59e,_0x2f68c2,_0x4ddbf8);},{'priority':'highest'});}),_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0x3f'))[_0x2bf6('0x90')]({'model':'suggestion','view':(_0x14ee60,_0x294c20)=>_0x294c20[_0x2bf6('0x128')][_0x2bf6('0x6c')]?null:{'group':'suggestion','name':_0x14ee60[_0x2bf6('0x67')](0xb)}}),_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0xb5'))[_0x2bf6('0x117')]({'view':{'name':_0x2bf6('0x71'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x14db4c,{writer:_0x43f6bd})=>{let _0x7e3a75=_0x2bf6('0x140')+_0x14db4c[_0x2bf6('0x1f')](_0x2bf6('0xc2'))+':'+_0x14db4c[_0x2bf6('0x1f')]('id');return _0x14db4c[_0x2bf6('0x1f')]('marker-count')&&(_0x7e3a75+=':'+_0x14db4c[_0x2bf6('0x1f')](_0x2bf6('0x7c'))),_0x43f6bd[_0x2bf6('0x121')]('$marker',{'data-name':_0x7e3a75});}}),_0x50007d['conversion'][_0x2bf6('0xe6')](_0x2bf6('0xb5'))[_0x2bf6('0x139')]({'view':'suggestion'}),_0x50007d['conversion'][_0x2bf6('0xe6')](_0x2bf6('0x133'))['add'](_0x1b8c7a=>{_0x1b8c7a['on'](_0x2bf6('0x116'),_0xa28000(),{'priority':_0x2bf6('0x5b')});}),_0x50007d['conversion'][_0x2bf6('0xe6')](_0x2bf6('0x133'))[_0x2bf6('0x4c')](_0x28ce89=>{_0x28ce89['on'](_0x2bf6('0xd3'),(_0xa0f7cb,_0xd22ce1,_0x5d57ea)=>{const _0x17db84=_0x5d57ea[_0x2bf6('0x34')][_0x2bf6('0x91')](_0xd22ce1[_0x2bf6('0x46')]);if(_0x17db84)for(const _0x18167a of _0x17db84)_0x18167a[_0x2bf6('0x28')]('addHighlight')||(_0x5d57ea[_0x2bf6('0x112')][_0x2bf6('0x10b')]([_0x2bf6('0x80'),_0x2bf6('0x40'),_0x2bf6('0x105')],_0x18167a),_0x5d57ea[_0x2bf6('0x112')][_0x2bf6('0x24')]('data-suggestion',_0x18167a),_0x5d57ea[_0x2bf6('0x34')][_0x2bf6('0x109')](_0x18167a,_0xd22ce1[_0x2bf6('0x46')]));},{'priority':_0x2bf6('0x5b')});}),_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x3c')][_0x2bf6('0x108')](_0xac406b=>{let _0x503644=!0x1;const _0x5f0b53=Array[_0x2bf6('0xeb')](_0x50007d[_0x2bf6('0x4b')]['document'][_0x2bf6('0x62')][_0x2bf6('0x13c')]()),_0x5c0578=new Set();for(const {name:_0x37909b,data:_0x119530}of _0x5f0b53){const {group:_0x3a423a,type:_0x443912,id:_0x22c595}=this['_splitMarkerName'](_0x37909b);if(_0x2bf6('0x71')!==_0x3a423a)continue;const _0x242bf0=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x22c595);if(null!=_0x119530[_0x2bf6('0xa1')]){_0x2bf6('0x94')==_0x443912&&(_0x503644=_0x503644||Mt(_0x119530['newRange'],_0x37909b,_0xac406b,_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')]));if(_0x119530[_0x2bf6('0xa1')][_0x2bf6('0x141')]||_0x2bf6('0x16')==_0x119530[_0x2bf6('0xa1')][_0x2bf6('0xf3')][_0x2bf6('0x42')]||_0x2bf6('0xb3')==_0x443912&&!Nt(_0x119530[_0x2bf6('0xa1')])||'deletion'==_0x443912&&!(!_t(_0x4af07d=_0x119530[_0x2bf6('0xa1')])&&!function(_0x4f9a1e){return _0x4f9a1e[_0x2bf6('0x95')][_0x2bf6('0x63')]==_0x4f9a1e['end'][_0x2bf6('0x27')]&&_0x4f9a1e[_0x2bf6('0x95')][_0x2bf6('0x1e')];}(_0x4af07d)))_0xac406b[_0x2bf6('0x13f')](_0x37909b),_0x503644=!0x0;else{if(!_0x242bf0||!_0x242bf0[_0x2bf6('0x2c')])continue;_0x5c0578[_0x2bf6('0x4c')](_0x242bf0);}}}var _0x4af07d;return _0x5c0578[_0x2bf6('0x79')]>0x0&&(_0x503644=!!this[_0x2bf6('0x6d')](_0x5c0578)||_0x503644),_0x503644;}),_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x3c')][_0x2bf6('0x108')](_0x21517c=>{let _0x3e407a=!0x1;for(const _0x47d9a8 of _0x50007d[_0x2bf6('0x4b')]['document']['differ'][_0x2bf6('0x48')]()){if('insert'!=_0x47d9a8['type'])continue;const _0x40fbe6=_0x47d9a8['position']['getShiftedBy'](_0x47d9a8[_0x2bf6('0xf5')]);if(_0x40fbe6[_0x2bf6('0x1e')])for(const _0x148cd6 of this['_suggestions'][_0x2bf6('0x98')]()){if(_0x148cd6['isMultiRange']||!_0x148cd6['isInContent'])continue;if(_0x2bf6('0xb3')!=_0x148cd6['type'])continue;const _0x328e3b=_0x148cd6['getFirstRange']();if(_0x328e3b['start'][_0x2bf6('0x63')]!=_0x328e3b['end']['parent']&&_0x328e3b[_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x47d9a8[_0x2bf6('0xa3')])){const _0x579f46=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x51')](_0x328e3b['start'],_0x40fbe6);_0x21517c[_0x2bf6('0x72')](_0x148cd6['getFirstMarker'](),{'range':_0x579f46}),_0x3e407a=!0x0;}}}return _0x3e407a;}),_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x75')]['on'](_0x2bf6('0x2'),(_0x5b9055,_0x159dfb,_0x26cd69)=>{if(null==_0x26cd69){const {id:_0x37ba03}=this[_0x2bf6('0x76')](_0x159dfb['name']),_0x317dc5=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x37ba03);_0x317dc5&&_0x317dc5[_0x2bf6('0x70')](_0x159dfb['name']);}}),_0x50007d[_0x2bf6('0x4b')]['document']['on'](_0x2bf6('0xa4'),()=>{const _0xea9889=Array[_0x2bf6('0xeb')](_0x50007d['model']['document'][_0x2bf6('0x62')]['getChangedMarkers']())['filter'](_0x10b6eb=>_0x2bf6('0x71')===this[_0x2bf6('0x76')](_0x10b6eb[_0x2bf6('0xb1')])['group']);if(0x0===_0xea9889['length'])return;_0xea9889[_0x2bf6('0xbe')]((_0x4fcfe7,_0x21ef11)=>{const _0x30be23=_0x4fcfe7['data']['oldRange'],_0x54f725=_0x21ef11[_0x2bf6('0x88')]['oldRange'];return null===_0x30be23&&null===_0x54f725?0x0:null===_0x30be23&&null!==_0x54f725?-0x1:null!==_0x30be23&&null===_0x54f725?0x1:_0x30be23[_0x2bf6('0x95')]['isBefore'](_0x54f725['start'])?-0x1:0x1;});const _0x48aca3=new Set(),_0x12a286=new Set();for(const {name:_0x3d81f2,data:_0x275e1c}of _0xea9889){const {id:_0x1e743c}=this['_splitMarkerName'](_0x3d81f2);if(null===_0x275e1c['oldRange']){const _0x2fe728=this[_0x2bf6('0xfe')](_0x3d81f2);_0x12a286[_0x2bf6('0x4c')](_0x2fe728);}else{const _0x2c867e=this['_suggestions'][_0x2bf6('0xf0')](_0x1e743c);null!==_0x275e1c[_0x2bf6('0xa1')]||_0x2c867e[_0x2bf6('0x2c')]?(_0x48aca3['add'](_0x2c867e[_0x2bf6('0x5e')]),_0x12a286['add'](_0x2c867e)):this[_0x2bf6('0xf1')](_0x2c867e);}}_0x12a286['size']>0x0&&this[_0x2bf6('0xae')](_0x12a286);for(const _0x3822f8 of _0x48aca3)this['fire'](_0x2bf6('0x102'),_0x3822f8);}),_0x50007d[_0x2bf6('0x4b')]['on'](_0x2bf6('0x26'),(_0x39e4ab,_0x3a5d0b)=>{const _0x8fdd64=_0x3a5d0b[0x0];if(!this[_0x2bf6('0x13e')][_0x2bf6('0x79')])return;if(!_0x8fdd64[_0x2bf6('0xbf')])return;if(_0x8fdd64[_0x2bf6('0x7b')][_0x2bf6('0x13d')]||!_0x8fdd64[_0x2bf6('0x7b')]['isLocal'])return;let _0x37f9b5,_0x3df6d3;switch(_0x8fdd64[_0x2bf6('0xec')]){case _0x2bf6('0xe2'):_0x37f9b5=_0x50007d['model'][_0x2bf6('0x32')](_0x8fdd64[_0x2bf6('0xa3')]),_0x3df6d3=_0x37f9b5[_0x2bf6('0xe')](_0x8fdd64[_0x2bf6('0x123')]);break;case _0x2bf6('0x127'):_0x37f9b5=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x32')](_0x8fdd64[_0x2bf6('0x136')]),_0x3df6d3=_0x50007d[_0x2bf6('0x4b')]['createPositionAt'](_0x8fdd64['moveTargetPosition']);break;case _0x2bf6('0x11'):_0x37f9b5=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x32')](_0x8fdd64[_0x2bf6('0x20')]),_0x3df6d3=_0x37f9b5[_0x2bf6('0xe')](_0x8fdd64[_0x2bf6('0x123')]);break;default:return;}const _0x5404af=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x51')](_0x37f9b5,_0x3df6d3);_0x50007d[_0x2bf6('0x4b')]['change'](()=>{for(const {suggestion:_0x1976ce,meta:_0x4665e4}of this[_0x2bf6('0x36')](_0x5404af)){if(_0x1976ce[_0x2bf6('0x8c')])continue;if(_0x2bf6('0x94')==_0x1976ce[_0x2bf6('0xec')])continue;const _0x3c6e74=_0x1976ce['data']&&_0x1976ce[_0x2bf6('0x88')][_0x2bf6('0x143')];(_0x2bf6('0xb3')!=_0x1976ce['type']||_0x2bf6('0x127')==_0x8fdd64['type']&&!_0x3c6e74)&&(_0x4665e4[_0x2bf6('0x93')]||_0x2bf6('0x9c')==_0x1976ce[_0x2bf6('0xec')]&&_0x4665e4['isOwn']||_0x1976ce[_0x2bf6('0x61')]()[_0x2bf6('0xa0')](_0x5404af)&&this[_0x2bf6('0x9f')](_0x1976ce,_0x37f9b5,_0x3df6d3));}});},{'priority':_0x2bf6('0xe7')}),_0x50007d[_0x2bf6('0x4b')]['on'](_0x2bf6('0x104'),(_0x48655e,_0x4f775d)=>{const _0x280332=_0x4f775d[0x0],_0x169b98=_0x4f775d[0x1];if(_0x169b98&&_0x169b98[_0x2bf6('0x10')])return;if(this[_0x2bf6('0xaf')])return;if(!this[_0x2bf6('0x83')][_0x2bf6('0xbd')])return;if(_0x280332[_0x2bf6('0x141')])return;const _0x50db71=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')],{start:_0x3a0c69,end:_0x52c41f}=_0x280332[_0x2bf6('0x61')](),_0x3b259f=_0x3a0c69[_0x2bf6('0x8b')]&&_0x50db71[_0x2bf6('0xce')](_0x3a0c69[_0x2bf6('0x8b')])?null:_0x50db71['getNearestSelectionRange'](_0x3a0c69,'forward'),_0x4697af=_0x52c41f['nodeBefore']&&_0x50db71[_0x2bf6('0xce')](_0x52c41f[_0x2bf6('0x27')])?null:_0x50db71[_0x2bf6('0xd')](_0x52c41f,_0x2bf6('0x7a')),_0x3dfcdc=_0x50007d[_0x2bf6('0x4b')]['createRange'](_0x3b259f?_0x3b259f[_0x2bf6('0x95')]:_0x3a0c69,_0x4697af?_0x4697af['end']:_0x52c41f);_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xb9')](_0x47621d=>{this[_0x2bf6('0xdb')](_0x3dfcdc);const _0x3ae496=_0x50007d[_0x2bf6('0x4b')]['schema']['getNearestSelectionRange'](_0x3dfcdc[_0x2bf6('0x95')]);_0x280332['is'](_0x2bf6('0xa9'))?_0x47621d[_0x2bf6('0x8')](_0x3ae496):_0x280332[_0x2bf6('0xc8')](_0x3ae496);}),_0x48655e['stop']();},{'priority':_0x44e3be[_0x2bf6('0xc9')]+0xa}),_0x50007d[_0x2bf6('0x4b')]['on'](_0x2bf6('0x134'),(_0xc7d3c,_0x1d5721)=>{const _0xe82f14=_0x1d5721[_0x1d5721[_0x2bf6('0xf5')]-0x1];_0xe82f14&&_0xe82f14[_0x2bf6('0x10')]||this[_0x2bf6('0xaf')]||this[_0x2bf6('0x83')][_0x2bf6('0xbd')]&&(_0x50007d['model'][_0x2bf6('0xb9')](()=>{let _0x2801c8=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x134')](_0x1d5721[0x0],_0x1d5721[0x1],_0x1d5721[0x2],{'forceDefaultExecution':!0x0});if(!_0x2801c8)return;_0xc7d3c[_0x2bf6('0x119')]=_0x2801c8[_0x2bf6('0x23')]();const _0x30bebc=_0x2801c8['end'][_0x2bf6('0x27')],_0x3efb7e=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')];_0x30bebc&&_0x3efb7e[_0x2bf6('0x9b')](_0x30bebc)&&!_0x3efb7e[_0x2bf6('0xe1')](_0x30bebc)&&(_0x2801c8=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x51')](_0x2801c8[_0x2bf6('0x95')],_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x32')](_0x30bebc,_0x2bf6('0xb8')))),this[_0x2bf6('0x13b')](_0x2801c8);}),_0xc7d3c[_0x2bf6('0x9e')]());},{'priority':'high'}),this[_0x2bf6('0xf2')][_0x2bf6('0x11e')][_0x2bf6('0x4c')]('trackChanges',this[_0x2bf6('0x83')]),this[_0x2bf6('0xb6')](_0x2bf6('0x21'));const _0x54b02b=new _0xe6062a(_0x50007d,this[_0x2bf6('0x13e')]);_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x8d'),_0x54b02b),this[_0x2bf6('0xb6')](_0x2bf6('0x8d'));const _0x409cd6=new _0x59483e(_0x50007d,this[_0x2bf6('0x13e')]);_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x86'),_0x409cd6),this[_0x2bf6('0xb6')]('discardSuggestion'),_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x35'),new _0x38ad56(_0x50007d,_0x54b02b,this[_0x2bf6('0x13e')])),this['enableCommand'](_0x2bf6('0x35')),_0x50007d['commands'][_0x2bf6('0x4c')](_0x2bf6('0x85'),new _0x38ad56(_0x50007d,_0x409cd6,this[_0x2bf6('0x13e')])),this['enableCommand'](_0x2bf6('0x85')),_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x10d'),new _0x595cbe(_0x50007d,_0x54b02b,this['_suggestions'])),this[_0x2bf6('0xb6')](_0x2bf6('0x10d')),_0x50007d[_0x2bf6('0x11e')]['add'](_0x2bf6('0x1'),new _0x595cbe(_0x50007d,_0x409cd6,this['_suggestions'])),this[_0x2bf6('0xb6')]('discardSelectedSuggestions');const _0x3e7dc0=_0x50007d[_0x2bf6('0x120')][_0x2bf6('0xf0')]('CommentsRepository');this[_0x2bf6('0x54')](_0x3e7dc0,_0x2bf6('0x2b'),(_0x1fa9db,{threadId:_0x517585})=>{const _0x2ef9fa=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x517585);_0x2ef9fa&&_0x2ef9fa[_0x2bf6('0x74')]&&0x1===_0x2ef9fa[_0x2bf6('0x74')][_0x2bf6('0xf5')]&&this[_0x2bf6('0x106')](_0x517585,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2bf6('0x54')](_0x3e7dc0,'removeComment',(_0x5f1a50,{threadId:_0x2d27d6})=>{const _0x4fc07d=this['_suggestions']['get'](_0x2d27d6);_0x4fc07d&&_0x4fc07d[_0x2bf6('0x74')]&&!_0x4fc07d['commentThread']['length']&&this['_updateSuggestionData'](_0x2d27d6,{'hasComments':!0x1});},{'priority':_0x2bf6('0x14')});}set['adapter'](_0x12d19b){if(this[_0x2bf6('0xa2')])throw new _0x1237ef('track-changes-adapter-already-set',this);this['_adapter']=_0x12d19b;}get[_0x2bf6('0x68')](){return this[_0x2bf6('0xa2')];}['getSuggestions']({skipNotAttached:_0x1a11df=!0x1,toJSON:_0x2031f0=!0x1}={}){const _0x42078c=[];for(const _0x5efc7a of this[_0x2bf6('0x13e')][_0x2bf6('0x98')]())_0x1a11df&&!_0x5efc7a[_0x2bf6('0x2c')]||_0x42078c['push'](_0x5efc7a);return _0x2031f0?_0x42078c[_0x2bf6('0x5c')](_0x34c987=>_0x34c987['toJSON']()):_0x42078c;}[_0x2bf6('0xde')](_0x3e2657){const _0x2ca009=this['_suggestions'][_0x2bf6('0xf0')](_0x3e2657);if(!_0x2ca009)throw new _0x1237ef(_0x2bf6('0x97'),this);return _0x2ca009;}[_0x2bf6('0xc7')](_0x5778dc){return this[_0x2bf6('0x13e')]['has'](_0x5778dc);}[_0x2bf6('0x41')](_0x3c3a6a){const {authorId:_0x4062c6,id:_0x1b48b4,attributes:_0x2d8401}=_0x3c3a6a,[_0x3d4450,_0x76341b]=_0x3c3a6a[_0x2bf6('0xec')]['split'](':'),_0x43bd03=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x1b48b4)||this['_createSuggestion'](_0x3d4450,_0x76341b,_0x1b48b4,_0x4062c6,_0x2d8401);if(this[_0x2bf6('0x7f')](_0x43bd03),this['_checkSuggestionCorrectness'](_0x43bd03,_0x3d4450,_0x76341b||null,_0x4062c6),_0x43bd03['createdAt']=_0x3c3a6a['createdAt'],_0x2d8401&&_0x2d8401['@external']){const _0x2e7644=_0x2d8401[_0x2bf6('0xb')],_0x13efd6=this[_0x2bf6('0x11f')](_0x2e7644[_0x2bf6('0x29')]);_0x43bd03[_0x2bf6('0xd4')]=_0x2e7644['createdAt'],_0x43bd03[_0x2bf6('0xdf')]=_0x13efd6,_0x43bd03[_0x2bf6('0x8e')]=!0x0;}else _0x43bd03[_0x2bf6('0xd4')]=_0x3c3a6a['createdAt'];switch(_0x3c3a6a['data']&&(_0x43bd03[_0x2bf6('0x88')]=_0x3c3a6a['data']),_0x3c3a6a[_0x2bf6('0xf8')]&&(_0x43bd03[_0x2bf6('0xf8')]=_0x3c3a6a[_0x2bf6('0xf8')]),this[_0x2bf6('0xa2')]&&this[_0x2bf6('0xa2')][_0x2bf6('0x9a')]||(_0x43bd03[_0x2bf6('0x96')]=!0x0),this[_0x2bf6('0xfc')]['get'](_0x43bd03)){case _0x2bf6('0x37'):this['_suggestionState'][_0x2bf6('0x22')](_0x43bd03,_0x2bf6('0x1a'));break;case _0x2bf6('0xac'):_0x43bd03[_0x2bf6('0x2c')]?(this['_suggestionState'][_0x2bf6('0x22')](_0x43bd03,_0x2bf6('0xa8')),this['fire'](_0x2bf6('0xa'),_0x43bd03)):this[_0x2bf6('0xfc')][_0x2bf6('0x22')](_0x43bd03,_0x2bf6('0xd8'));}return _0x43bd03;}[_0x2bf6('0x8d')](_0x2f89fc){this[_0x2bf6('0x10')](()=>{this['editor'][_0x2bf6('0x4b')]['change'](()=>{for(const _0x34de96 of _0x2f89fc['getAllAdjacentSuggestions']())_0x34de96[_0x2bf6('0x2d')]();});});}[_0x2bf6('0x86')](_0x2dfb4f){this[_0x2bf6('0x10')](()=>{this['editor'][_0x2bf6('0x4b')][_0x2bf6('0xb9')](()=>{for(const _0x58d655 of _0x2dfb4f[_0x2bf6('0x138')]())_0x58d655[_0x2bf6('0x38')]();});});}[_0x2bf6('0xb6')](_0x25f991,_0x453ade){const _0x59dfb2=this[_0x2bf6('0xf2')][_0x2bf6('0x11e')][_0x2bf6('0xf0')](_0x25f991);if(!_0x59dfb2)throw new _0x1237ef(_0x2bf6('0x45'),this,{'commandName':_0x25f991});this['_enabledCommands'][_0x2bf6('0x4c')](_0x59dfb2),_0x453ade&&_0x59dfb2['on']('execute',(_0x461f77,_0x4e05cc)=>{this[_0x2bf6('0x83')][_0x2bf6('0xbd')]&&(this[_0x2bf6('0xaf')]||_0x4e05cc[_0x2bf6('0xf5')]>0x0&&_0x4e05cc[_0x4e05cc[_0x2bf6('0xf5')]-0x1]&&_0x4e05cc[_0x4e05cc['length']-0x1]['forceDefaultExecution']||(_0x453ade((..._0x11c0e6)=>_0x59dfb2[_0x2bf6('0x7e')](..._0x11c0e6,{'forceDefaultExecution':!0x0}),..._0x4e05cc),_0x461f77[_0x2bf6('0x9e')]()));},{'priority':_0x2bf6('0x5b')});}['forceDefaultExecution'](_0x337497){let _0x4bd51a,_0x1b1e42;const _0x53978b=this[_0x2bf6('0xaf')];this[_0x2bf6('0xaf')]=!0x0;try{_0x4bd51a=_0x337497();}catch(_0x428492){_0x1b1e42=_0x428492;}return _0x53978b||(this[_0x2bf6('0xaf')]=!0x1),_0x1b1e42&&_0x1237ef[_0x2bf6('0xbc')](_0x1b1e42,this),_0x4bd51a;}[_0x2bf6('0x13b')](_0x27e4d2,_0x39df7c=null,_0x16036a={}){if(_0x27e4d2[_0x2bf6('0x141')])return null;const _0x4a15c5=this[_0x2bf6('0xf2')]['plugins'][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'];for(const {suggestion:_0xc4cd60,meta:_0x593a2a}of this[_0x2bf6('0x36')](_0x27e4d2,_0x2bf6('0x9c')))if(_0x593a2a['isOwn']){if(!_0x593a2a[_0x2bf6('0x5')]){if(!this[_0x2bf6('0x10f')]&&_0x593a2a['containsRangeInObject'])continue;return _0xc4cd60;}if(_0x39df7c==_0xc4cd60[_0x2bf6('0xaa')]){const _0xa3e700=_0xc4cd60[_0x2bf6('0x61')]();return _0xa3e700['start'][_0x2bf6('0xcc')](_0x27e4d2[_0x2bf6('0xb8')])?this['_setSuggestionRange'](_0xc4cd60,this['_model']['createRange'](_0x27e4d2['start'],_0xa3e700['end'])):this[_0x2bf6('0xed')](_0xc4cd60,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0xa3e700[_0x2bf6('0x95')],_0x27e4d2[_0x2bf6('0xb8')])),_0xc4cd60;}}const _0x4f1ff6=_0x14cdfd(),_0xb77fdb=_0x4a15c5['id'],_0x37ecc1=_0x39df7c?'insertion:'+_0x39df7c:'insertion',_0x53eb4=this[_0x2bf6('0x5f')]({'id':_0x4f1ff6,'type':_0x37ecc1,'createdAt':new Date(),'authorId':_0xb77fdb,'attributes':_0x16036a});return this[_0x2bf6('0xc4')](_0x37ecc1,_0x4f1ff6,_0xb77fdb,_0x27e4d2),_0x53eb4;}[_0x2bf6('0x12c')](_0x1b6a5f,_0x1a654d='multi',_0x2c1cc4={}){const _0x12706a=this[_0x2bf6('0xf2')]['plugins'][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x13c186=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0x9c'),_0x1a654d,_0x2bf6('0x30'));for(const _0x21aece of this[_0x2bf6('0xef')]())if(_0x21aece[_0x2bf6('0xdf')]['id']==_0x12706a['id']&&_0x2bf6('0x9c')==_0x21aece[_0x2bf6('0xec')]&&_0x21aece[_0x2bf6('0xaa')]==_0x1a654d&&(_0x13c186(_0x21aece['getRanges'](),_0x1b6a5f)||_0x13c186(_0x1b6a5f,_0x21aece[_0x2bf6('0x4e')]()))){for(const _0x5b1aa9 of _0x1b6a5f)_0x21aece['addRange'](_0x5b1aa9);return _0x21aece;}if(this['_mergeNestedSuggestions'])for(const _0xac36e0 of _0x1b6a5f)for(const {suggestion:_0x3d2552,meta:_0x5e9db}of this[_0x2bf6('0x36')](_0xac36e0,_0x2bf6('0x9c'))){if(!_0x5e9db[_0x2bf6('0x47')])continue;let _0x252b9b=!0x0;for(const _0x5be27c of _0x3d2552[_0x2bf6('0x4e')]())for(const _0x529874 of _0x1b6a5f)if(!_0x5be27c[_0x2bf6('0xa0')](_0x529874)){_0x252b9b=!0x1;break;}if(_0x252b9b)return _0x3d2552;}const _0x2cf122=_0x14cdfd(),_0x2884a5=_0x12706a['id'],_0x5d2310='insertion:'+_0x1a654d,_0x1ab704=this[_0x2bf6('0x5f')]({'id':_0x2cf122,'type':_0x5d2310,'createdAt':new Date(),'authorId':_0x2884a5,'attributes':_0x2c1cc4});for(const _0x3b9e60 of _0x1b6a5f)this[_0x2bf6('0xc4')](_0x5d2310,_0x2cf122,_0x2884a5,_0x3b9e60,_0x3dcbb7[_0x2bf6('0xc0')]());return _0x1ab704;}[_0x2bf6('0xda')](_0x5693bf,_0x57eb7b,_0x27e157=null,_0x222bf4={}){if(_0x27e157=_0x27e157||$t(_0x57eb7b),_0x5693bf[_0x2bf6('0x141')])return null;if(_0x2bf6('0x132')===this[_0x2bf6('0x1d')]){const _0x278037=this['_suggestionFactory'][_0x2bf6('0x9')](_0x2bf6('0x94'),_0x27e157,_0x2bf6('0x2d'));return this[_0x2bf6('0x10')](()=>_0x278037([_0x5693bf],_0x57eb7b,_0x222bf4)),null;}const _0x4e50f2=this['editor'][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x1e6e49=[];if(_0x2bf6('0x4d')!==this[_0x2bf6('0x1d')])for(const {suggestion:_0x10054d,meta:_0x366265}of this['_findSuggestions'](_0x5693bf,_0x2bf6('0x9c')))_0x366265[_0x2bf6('0x47')]&&!_0x366265[_0x2bf6('0x10c')]&&_0x1e6e49[_0x2bf6('0x137')](..._0x10054d[_0x2bf6('0x4e')]());const _0x3f25f3=function(_0x33af38,_0x31b654){const _0x254697=[];for(const _0x25991b of _0x31b654){const _0x20492e=_0x33af38['getIntersection'](_0x25991b);_0x20492e&&_0x254697['push'](_0x20492e);}return _0x254697;}(_0x5693bf,_0x1e6e49),_0x2c8507=function(_0x24b134,_0x8065e9){const _0x300f6c=[_0x24b134];for(const _0x1ba4f0 of _0x8065e9){let _0x248660=0x0;for(;_0x248660<_0x300f6c['length'];){const _0x714f2d=_0x300f6c[_0x248660]['getDifference'](_0x1ba4f0);_0x300f6c[_0x2bf6('0xe8')](_0x248660,0x1,..._0x714f2d),_0x248660+=_0x714f2d[_0x2bf6('0xf5')];}}return _0x300f6c;}(_0x5693bf,_0x1e6e49);_0x3f25f3['length']&&this['_model']['change'](()=>{for(const _0x2c2374 of _0x3f25f3){const _0x41bbc6=this[_0x2bf6('0x12e')][_0x2bf6('0x9')]('formatInline',_0x27e157,_0x2bf6('0x2d'));this[_0x2bf6('0x10')](()=>_0x41bbc6([_0x2c2374],_0x57eb7b,_0x222bf4));}});for(const _0x5ee789 of _0x2c8507){let _0x6f97c2=null,_0x3d5dfd=_0x5ee789[_0x2bf6('0x95')],_0x37911b=_0x5ee789[_0x2bf6('0xb8')];for(const {suggestion:_0x4add99,meta:_0x10b799}of this['_findSuggestions'](_0x5ee789,_0x2bf6('0x94'))){if(!_0x10b799['isOwn'])continue;if(_0x4add99[_0x2bf6('0xaa')]!=_0x27e157)continue;const _0x560d0d=_0x4add99['getFirstRange']();if(_0x560d0d[_0x2bf6('0xa0')](_0x5ee789,!0x0))return null;_0x3d5dfd=_0x3d5dfd['isBefore'](_0x560d0d['start'])?_0x3d5dfd:_0x560d0d['start'],_0x37911b=_0x37911b['isAfter'](_0x560d0d[_0x2bf6('0xb8')])?_0x37911b:_0x560d0d[_0x2bf6('0xb8')],_0x6f97c2?_0x560d0d[_0x2bf6('0x95')][_0x2bf6('0x103')](_0x6f97c2[_0x2bf6('0x61')]()[_0x2bf6('0x95')])?(_0x6f97c2[_0x2bf6('0x9d')](),_0x6f97c2=_0x4add99):_0x4add99['removeMarkers']():_0x6f97c2=_0x4add99;}const _0x1ca09f=this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x3d5dfd,_0x37911b);if(_0x6f97c2)this['_setSuggestionRange'](_0x6f97c2,_0x1ca09f);else{const _0x325c0d=_0x14cdfd(),_0x5a3ce6=_0x4e50f2['id'];this['_setSuggestionData']({'id':_0x325c0d,'type':_0x2bf6('0x12b')+_0x27e157,'data':_0x57eb7b,'createdAt':new Date(),'authorId':_0x5a3ce6,'attributes':_0x222bf4}),this[_0x2bf6('0xc4')](_0x2bf6('0x12b')+_0x27e157,_0x325c0d,_0x5a3ce6,_0x1ca09f);}}return null;}[_0x2bf6('0x8a')](_0x4bcb53,_0x399b69,_0xdc4e68=[],_0x43e424=null,_0x318069={}){_0x399b69[_0x2bf6('0x64')]||(_0x399b69['formatGroupId']=_0x399b69[_0x2bf6('0xf7')]),_0x399b69['multipleBlocks']=_0x4bcb53['is'](_0x2bf6('0xd1')),_0x43e424=_0x43e424||$t(_0x399b69);const _0x5a3667=_0xdc4e68[_0x2bf6('0x5c')](_0x1dd933=>Rt(_0x1dd933,this[_0x2bf6('0x49')])),_0x157d6b=_0x4bcb53['is'](_0x2bf6('0xd1'))?_0x4bcb53:Rt(_0x4bcb53,this[_0x2bf6('0x49')]);if(_0x2bf6('0x132')===this[_0x2bf6('0x1d')]){const _0x216163=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0xb3'),_0x43e424,_0x2bf6('0x2d'));return this[_0x2bf6('0x10')](()=>_0x216163([_0x157d6b],_0x399b69,_0x318069)),null;}_0x5a3667[_0x2bf6('0x137')](_0x157d6b);let _0x4c9377=!0x0;for(const _0x287561 of _0x5a3667)if(!this[_0x2bf6('0x8f')](_0x287561)){_0x4c9377=!0x1;break;}if(_0x4c9377&&_0x2bf6('0x4d')!==this[_0x2bf6('0x1d')]){const _0x53ed0f=this[_0x2bf6('0x12e')]['getSuggestionCallback'](_0x2bf6('0xb3'),_0x43e424,_0x2bf6('0x2d'));return this['forceDefaultExecution'](()=>_0x53ed0f([_0x157d6b],_0x399b69,_0x318069)),null;}let _0x124895=null,_0x4af135=_0x157d6b[_0x2bf6('0x95')],_0x5a587c=_0x157d6b[_0x2bf6('0xb8')];for(const {suggestion:_0x312089,meta:_0x26df69}of this[_0x2bf6('0x36')](_0x157d6b,'formatBlock')){if(!_0x26df69[_0x2bf6('0x47')]||_0x26df69[_0x2bf6('0x5')]||_0x26df69[_0x2bf6('0x93')]||_0x26df69[_0x2bf6('0x10c')])continue;if(_0x312089[_0x2bf6('0x88')][_0x2bf6('0x64')]!=_0x399b69[_0x2bf6('0x64')])continue;const _0x5c1926=_0x312089[_0x2bf6('0x61')]();if(_0x312089[_0x2bf6('0xaa')]==_0x43e424){if(_0x5c1926[_0x2bf6('0xa0')](_0x157d6b,!0x0))return null;_0x4af135=_0x4af135[_0x2bf6('0x103')](_0x5c1926['start'])?_0x4af135:_0x5c1926[_0x2bf6('0x95')],_0x5a587c=_0x5a587c['isAfter'](_0x5c1926['end'])?_0x5a587c:_0x5c1926[_0x2bf6('0xb8')],_0x124895?_0x5c1926[_0x2bf6('0x95')][_0x2bf6('0x103')](_0x124895['getFirstRange']()['start'])?(_0x124895[_0x2bf6('0x9d')](),_0x124895=_0x312089):_0x312089['removeMarkers']():_0x124895=_0x312089;}else{const _0xdeb5eb=_0x157d6b[_0x2bf6('0x110')](_0x5c1926);this[_0x2bf6('0xf9')](_0x312089,_0xdeb5eb);}}const _0x10e12d=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x106aa3=_0x14cdfd(),_0x41e488=_0x10e12d['id'];if(_0x124895)return this['_setSuggestionRange'](_0x124895,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x4af135,_0x5a587c)),_0x124895;{const _0xc40087=this[_0x2bf6('0x5f')]({'id':_0x106aa3,'type':_0x2bf6('0x11d')+_0x43e424,'data':_0x399b69,'createdAt':new Date(),'authorId':_0x41e488,'attributes':_0x318069});return this[_0x2bf6('0xc4')]('formatBlock:'+_0x43e424,_0x106aa3,_0x41e488,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x4af135,_0x5a587c)),_0xc40087;}}[_0x2bf6('0x89')](_0x568ca1,_0xcd0fc,_0x1d4759=[],_0x2cb1c1=null,_0x47eb5b={}){_0xcd0fc[_0x2bf6('0x64')]||(_0xcd0fc[_0x2bf6('0x64')]=_0xcd0fc['commandName']);const _0x4a3b9b=_0x568ca1[0x0];_0xcd0fc[_0x2bf6('0x143')]=_0x4a3b9b['is'](_0x2bf6('0xd1')),_0x2cb1c1=_0x2cb1c1||$t(_0xcd0fc);const _0x7b0dfd=_0x1d4759[_0x2bf6('0x5c')](_0x16922d=>Rt(_0x16922d,this[_0x2bf6('0x49')])),_0x15ea62=_0x4a3b9b['is'](_0x2bf6('0xd1'))?_0x568ca1:_0x568ca1[_0x2bf6('0x5c')](_0xea0a0e=>Rt(_0xea0a0e,this['_model']));if(_0x2bf6('0x132')===this[_0x2bf6('0x1d')]){const _0x349779=this[_0x2bf6('0x12e')]['getSuggestionCallback']('formatBlock',_0x2cb1c1,_0x2bf6('0x2d'));return this['forceDefaultExecution'](()=>_0x349779(_0x15ea62,_0xcd0fc,_0x47eb5b)),null;}_0x7b0dfd[_0x2bf6('0x137')](..._0x15ea62);let _0x5eeb5f=!0x0;for(const _0x4d4bc6 of _0x7b0dfd)if(!this[_0x2bf6('0x8f')](_0x4d4bc6)){_0x5eeb5f=!0x1;break;}if(_0x5eeb5f&&_0x2bf6('0x4d')!==this[_0x2bf6('0x1d')]){const _0x56767b=this[_0x2bf6('0x12e')]['getSuggestionCallback'](_0x2bf6('0xb3'),_0x2cb1c1,'accept');return this[_0x2bf6('0x10')](()=>_0x56767b(_0x15ea62,_0xcd0fc,_0x47eb5b)),null;}const _0x257723=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'];for(const _0x216092 of this[_0x2bf6('0xef')]()){if(_0x216092[_0x2bf6('0xdf')]['id']!=_0x257723['id'])continue;if(_0x2bf6('0xb3')!=_0x216092[_0x2bf6('0xec')]||_0x216092[_0x2bf6('0x88')][_0x2bf6('0x64')]!=_0xcd0fc[_0x2bf6('0x64')])continue;const _0x22fed9=_0x216092[_0x2bf6('0xaa')]==_0x2cb1c1;for(let _0x4efda5=0x0;_0x4efda5<_0x15ea62[_0x2bf6('0xf5')];_0x4efda5++){const _0x497591=_0x15ea62[_0x4efda5];for(const _0x54624a of _0x216092[_0x2bf6('0xbb')]()){const _0x13f658=_0x54624a['getRange']();if(_0x497591[_0x2bf6('0xcc')](_0x13f658)){_0x22fed9?(_0x15ea62[_0x2bf6('0xe8')](_0x4efda5,0x1),_0x4efda5--):_0x216092[_0x2bf6('0x13f')](_0x54624a[_0x2bf6('0xb1')]);break;}}}}if(0x0==_0x15ea62['length'])return null;const _0x4086b2=this[_0x2bf6('0x12e')][_0x2bf6('0x9')]('formatBlock',_0x2cb1c1,_0x2bf6('0x30'));for(const _0x33b3ee of this[_0x2bf6('0xef')]())if(_0x33b3ee[_0x2bf6('0xdf')]['id']==_0x257723['id']&&'formatBlock'==_0x33b3ee[_0x2bf6('0xec')]&&_0x33b3ee[_0x2bf6('0x88')][_0x2bf6('0x64')]==_0xcd0fc[_0x2bf6('0x64')]&&_0x33b3ee[_0x2bf6('0xaa')]==_0x2cb1c1&&(_0x4086b2(_0x33b3ee[_0x2bf6('0x4e')](),_0x15ea62)||_0x4086b2(_0x15ea62,_0x33b3ee[_0x2bf6('0x4e')]()))){for(const _0x140d6a of _0x15ea62)_0x33b3ee[_0x2bf6('0x107')](_0x140d6a);return _0x33b3ee;}const _0x3d3ffc=_0x14cdfd(),_0xa9a253=_0x257723['id'],_0x2dfc33=_0x2bf6('0x11d')+_0x2cb1c1,_0x3e6a2b=this[_0x2bf6('0x5f')]({'id':_0x3d3ffc,'type':_0x2dfc33,'data':_0xcd0fc,'createdAt':new Date(),'authorId':_0xa9a253,'attributes':_0x47eb5b});for(const _0xaed4a3 of _0x15ea62)this[_0x2bf6('0xc4')](_0x2dfc33,_0x3d3ffc,_0xa9a253,_0xaed4a3,_0x3dcbb7[_0x2bf6('0xc0')]());return _0x3e6a2b;}[_0x2bf6('0xdb')](_0x59b9d3,_0x35df43=null,_0x5870d9={}){if(_0x59b9d3[_0x2bf6('0x141')])return null;const _0x45a95e=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x131faa=new _0x4f1a19(_0x59b9d3[_0x2bf6('0x95')],_0x59b9d3[_0x2bf6('0xb8')]);for(const {suggestion:_0x562a07,meta:_0x33554f}of this[_0x2bf6('0x36')](_0x131faa,_0x2bf6('0x9c')))if(_0x33554f[_0x2bf6('0x47')]&&!_0x33554f[_0x2bf6('0x5')]){if(_0x562a07['isMultiRange']){const _0x480232=_0x562a07[_0x2bf6('0x4e')]()[_0x2bf6('0xd7')](_0x5b9535=>'$graveyard'!=_0x5b9535['root'][_0x2bf6('0x42')]);_0x480232['every'](_0x55deb3=>_0x131faa[_0x2bf6('0xa0')](_0x55deb3,!0x0))&&_0x562a07[_0x2bf6('0x38')]();if(_0x480232[_0x2bf6('0x131')](_0x43d0b1=>_0x43d0b1[_0x2bf6('0xa0')](_0x131faa,!0x0))){const _0x2e7f2d=this['_suggestionFactory'][_0x2bf6('0x9')](_0x2bf6('0x73'),_0x35df43,'accept');return this['forceDefaultExecution'](()=>_0x2e7f2d([_0x131faa],null,_0x5870d9)),null;}}else{const _0x2771ad=_0x131faa[_0x2bf6('0x110')](_0x562a07[_0x2bf6('0x61')]());null!==_0x2771ad&&_0x562a07['_onDiscard']([_0x2771ad],null,_0x5870d9);}}if(_0x131faa[_0x2bf6('0xe3')](),_0x131faa['isCollapsed']||'$graveyard'==_0x131faa[_0x2bf6('0xf3')][_0x2bf6('0x42')])return null;let _0x47defa=null,_0x372f9b=_0x131faa[_0x2bf6('0x95')],_0x12699c=_0x131faa[_0x2bf6('0xb8')];for(const {suggestion:_0xf18def,meta:_0xb87701}of this['_findSuggestions'](_0x131faa,_0x2bf6('0x73')))if(_0xb87701[_0x2bf6('0x47')]){if(_0xf18def[_0x2bf6('0x8c')]&&this[_0x2bf6('0x10f')]){let _0x33fcdc=!0x0;for(const _0x21e266 of _0xf18def[_0x2bf6('0x4e')]()){if(_0x21e266[_0x2bf6('0xa0')](_0x131faa,!0x0))return _0xf18def;_0x131faa[_0x2bf6('0xa0')](_0x21e266)||(_0x33fcdc=!0x1);}_0x33fcdc&&_0xf18def['discard']();}else{const _0x4c9c48=_0xf18def[_0x2bf6('0x61')]();if(_0x4c9c48[_0x2bf6('0xa0')](_0x131faa,!0x0)){if(!this[_0x2bf6('0x10f')]&&_0xb87701['containsRangeInObject'])continue;return _0xf18def;}_0x372f9b=_0x372f9b[_0x2bf6('0x103')](_0x4c9c48[_0x2bf6('0x95')])?_0x372f9b:_0x4c9c48[_0x2bf6('0x95')],_0x12699c=_0x12699c[_0x2bf6('0x11a')](_0x4c9c48['end'])?_0x12699c:_0x4c9c48[_0x2bf6('0xb8')],_0x47defa?_0x4c9c48['start']['isBefore'](_0x47defa[_0x2bf6('0x61')]()[_0x2bf6('0x95')])?(_0x47defa['removeMarkers'](),_0x47defa=_0xf18def):_0xf18def[_0x2bf6('0x9d')]():_0x47defa=_0xf18def;}}if(_0x47defa)return this[_0x2bf6('0xed')](_0x47defa,this[_0x2bf6('0x49')]['createRange'](_0x372f9b,_0x12699c)),_0x47defa;{const _0x8efed9=_0x14cdfd(),_0x5bcea8=this['_model'][_0x2bf6('0x51')](_0x372f9b,_0x12699c),_0x5243ef=_0x45a95e['id'],_0x2565f8=_0x35df43?'deletion:'+_0x35df43:_0x2bf6('0x73'),_0x1cf13f=this[_0x2bf6('0x5f')]({'id':_0x8efed9,'type':_0x2565f8,'createdAt':new Date(),'authorId':_0x5243ef,'attributes':_0x5870d9});return this[_0x2bf6('0xc4')](_0x2565f8,_0x8efed9,_0x5243ef,_0x5bcea8),_0x1cf13f;}}[_0x2bf6('0x4')](_0x211f06,_0x3d45e7=_0x2bf6('0xd5'),_0x407524={}){const _0x40f147=this['editor']['plugins']['get'](_0x2bf6('0x5d'))['me'],_0x56e3ce=_0x211f06['map'](_0x3daa25=>new _0x4f1a19(_0x3daa25['start'],_0x3daa25[_0x2bf6('0xb8')])),_0x3c9bcb=new Set();for(const _0x5f3bbb of _0x56e3ce)for(const {suggestion:_0x13ec18,meta:_0xccdd44}of this[_0x2bf6('0x36')](_0x5f3bbb,'insertion'))_0xccdd44[_0x2bf6('0x47')]&&!_0xccdd44['isNextTo']&&_0x3c9bcb[_0x2bf6('0x4c')](_0x13ec18);for(const _0xdcffed of _0x3c9bcb)if(_0xdcffed[_0x2bf6('0x8c')]){const _0x5ef85=_0xdcffed[_0x2bf6('0x4e')]();(!_0xdcffed[_0x2bf6('0xf8')]||!_0xdcffed[_0x2bf6('0xf8')][_0x2bf6('0xf')])&&(_0x5ef85[_0x2bf6('0x65')](_0x5449a8=>_0x56e3ce['some'](_0x395505=>_0x395505[_0x2bf6('0xa0')](_0x5449a8,!0x0)))&&_0xdcffed['discard']());if(_0x56e3ce[_0x2bf6('0x65')](_0x52755b=>_0x5ef85['some'](_0x504acf=>_0x504acf[_0x2bf6('0xa0')](_0x52755b,!0x0)))){const _0x343205=this[_0x2bf6('0x12e')][_0x2bf6('0x9')]('deletion',_0x3d45e7,'accept');return this['forceDefaultExecution'](()=>_0x343205(_0x211f06,null,_0x407524)),null;}}else{const _0x2990fe=_0xdcffed[_0x2bf6('0x61')]();_0x56e3ce[_0x2bf6('0x131')](_0x4876c8=>_0x4876c8['containsRange'](_0x2990fe,!0x0))&&_0xdcffed[_0x2bf6('0x38')]();if(_0x56e3ce[_0x2bf6('0x65')](_0x5a5ae9=>_0x2990fe[_0x2bf6('0xa0')](_0x5a5ae9,!0x0))){const _0x1bde98=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0x73'),_0x3d45e7,_0x2bf6('0x2d'));return this[_0x2bf6('0x10')](()=>_0x1bde98(_0x56e3ce,null,_0x407524)),null;}}const _0x412051=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0x73'),_0x3d45e7,'join');let _0x3396d4=null;for(const _0x4c92e1 of this['getSuggestions']())if(_0x4c92e1[_0x2bf6('0xdf')]['id']==_0x40f147['id']&&_0x4c92e1['isInContent']&&'deletion'==_0x4c92e1[_0x2bf6('0xec')]&&_0x4c92e1[_0x2bf6('0xaa')]==_0x3d45e7&&(_0x412051(_0x4c92e1[_0x2bf6('0x4e')](),_0x56e3ce)||_0x412051(_0x56e3ce,_0x4c92e1[_0x2bf6('0x4e')]()))){if(_0x3396d4){if(_0x4c92e1[_0x2bf6('0x74')]&&_0x4c92e1[_0x2bf6('0x74')][_0x2bf6('0xf5')])continue;for(const _0x36bfda of _0x4c92e1[_0x2bf6('0x4e')]())_0x3396d4[_0x2bf6('0xab')](_0x36bfda)||_0x3396d4[_0x2bf6('0x107')](_0x36bfda);_0x4c92e1[_0x2bf6('0x9d')]();}else{_0x3396d4=_0x4c92e1;for(const _0x2cb07a of _0x56e3ce)_0x4c92e1[_0x2bf6('0xab')](_0x2cb07a)||_0x4c92e1[_0x2bf6('0x107')](_0x2cb07a);}}if(_0x3396d4)return _0x3396d4;_0x3c9bcb[_0x2bf6('0x52')]();for(const _0x11aa94 of _0x56e3ce)for(const {suggestion:_0x7ab101,meta:_0x4c0231}of this[_0x2bf6('0x36')](_0x11aa94,'deletion'))_0x4c0231[_0x2bf6('0x47')]&&_0x3c9bcb[_0x2bf6('0x4c')](_0x7ab101);for(const _0x3b1539 of _0x3c9bcb){const _0xb31708=_0x3b1539[_0x2bf6('0x4e')]();if(!_0x407524||!_0x407524['skipNestingCheck']){if(_0x56e3ce[_0x2bf6('0x65')](_0x4a996d=>_0xb31708[_0x2bf6('0x131')](_0x5d768c=>_0x5d768c['containsRange'](_0x4a996d,!0x0))))return _0x3b1539;}(!_0x3b1539[_0x2bf6('0xf8')]||!_0x3b1539['attributes'][_0x2bf6('0xf')])&&(_0xb31708[_0x2bf6('0x65')](_0x2e1ae2=>_0x56e3ce[_0x2bf6('0x131')](_0x226d7d=>_0x226d7d[_0x2bf6('0xa0')](_0x2e1ae2,!0x0)))&&_0x3b1539['discard']());}const _0x53dc75=_0x14cdfd(),_0xbf1d3d=_0x40f147['id'],_0x32184c='deletion:'+_0x3d45e7,_0x227025=this[_0x2bf6('0x5f')]({'id':_0x53dc75,'type':_0x32184c,'createdAt':new Date(),'authorId':_0xbf1d3d,'attributes':_0x407524});for(const _0x50de15 of _0x56e3ce)_0x50de15[_0x2bf6('0xe3')](),_0x50de15[_0x2bf6('0x141')]||_0x2bf6('0x16')==_0x50de15[_0x2bf6('0xf3')][_0x2bf6('0x42')]||this['_addSuggestionMarker'](_0x32184c,_0x53dc75,_0xbf1d3d,_0x50de15,_0x3dcbb7['getMultiRangeId']());return _0x227025;}['_setSuggestionRange'](_0x53ec95,_0xb3d70d){const _0x492d91=_0x53ec95['getFirstMarker']();this[_0x2bf6('0x49')]['change'](_0x2acc25=>{_0x2acc25[_0x2bf6('0x72')](_0x492d91,{'range':_0xb3d70d});});}[_0x2bf6('0x7f')](_0x1d1c91){const _0x2c425f=_0x1d1c91['id'],_0x426b98=this[_0x2bf6('0xf2')][_0x2bf6('0xc3')][_0x2bf6('0xf0')](_0x2bf6('0x12a'));this['_commentsRepository'][_0x2bf6('0x60')](_0x2c425f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x426b98,'threadId':_0x2c425f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d9e24=this[_0x2bf6('0x0')][_0x2bf6('0x113')](_0x2c425f);_0x1d9e24[_0x2bf6('0x11c')](_0x2bf6('0x10a')),_0x1d9e24[_0x2bf6('0x10a')]=!0x1,_0x1d1c91[_0x2bf6('0x74')]=_0x1d9e24;}['_checkSuggestionCorrectness'](_0x47407c,_0x456c65,_0x16a3bd,_0x528e03){if(_0x47407c[_0x2bf6('0xec')]!=_0x456c65||_0x47407c[_0x2bf6('0xaa')]!=_0x16a3bd||_0x47407c[_0x2bf6('0x111')]['id']!=_0x528e03)throw this[_0x2bf6('0xf2')][_0x2bf6('0x18')](_0x2bf6('0xf4')),new _0x1237ef('track-changes-suggestion-data-mismatch',this);}[_0x2bf6('0xf9')](_0x3c6402,_0x5b48c2){const _0x582903=_0x3c6402[_0x2bf6('0x61')]();if(_0x5b48c2['isEqual'](_0x582903))_0x3c6402['removeMarkers']();else{if(_0x582903['containsRange'](_0x5b48c2)){const _0x3daaf7=this['_model'][_0x2bf6('0x32')](_0x5b48c2[_0x2bf6('0x95')]['nodeBefore'],_0x2bf6('0xb8'));this['_setSuggestionRange'](_0x3c6402,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x582903[_0x2bf6('0x95')],_0x3daaf7));const _0x4f754b=_0x14cdfd(),_0x400c50=_0x3c6402[_0x2bf6('0x111')]['id'],_0x3a162b=_0x3c6402[_0x2bf6('0xec')]+':'+_0x3c6402['subType'];this['_setSuggestionData']({'id':_0x4f754b,'type':_0x3a162b,'createdAt':new Date(),'authorId':_0x400c50,'data':_0x3c6402[_0x2bf6('0x88')],'attributes':_0x3c6402[_0x2bf6('0xf8')]});const _0x2ce050=this[_0x2bf6('0x49')][_0x2bf6('0x32')](_0x5b48c2['end'][_0x2bf6('0x63')],'after'),_0x53ec5c=this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x2ce050,_0x582903['end']);this['_addSuggestionMarker'](_0x3a162b,_0x4f754b,_0x400c50,_0x53ec5c);}else{if(_0x582903['containsPosition'](_0x5b48c2['start'])){const _0x24f049=this[_0x2bf6('0x49')][_0x2bf6('0x32')](_0x5b48c2[_0x2bf6('0x95')][_0x2bf6('0x27')],_0x2bf6('0xb8'));this['_setSuggestionRange'](_0x3c6402,this[_0x2bf6('0x49')]['createRange'](_0x582903[_0x2bf6('0x95')],_0x24f049));}else{const _0x311a65=this[_0x2bf6('0x49')][_0x2bf6('0x32')](_0x5b48c2['end']['parent'],_0x2bf6('0xe0'));this['_setSuggestionRange'](_0x3c6402,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x311a65,_0x582903[_0x2bf6('0xb8')]));}}}}['_rangeIsInLocalUserInsertion'](_0x26f8e8){for(const {suggestion:_0x5ce19a,meta:_0x65d3c6}of this['_findSuggestions'](_0x26f8e8,_0x2bf6('0x9c'))){if(!_0x65d3c6[_0x2bf6('0x47')])continue;const _0x315b5e=_0x5ce19a[_0x2bf6('0x4e')]();for(const _0x31a4d3 of _0x315b5e)if(!_0x26f8e8[_0x2bf6('0x12f')](_0x31a4d3)[_0x2bf6('0xf5')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55f80f){const _0x2da9c7=this[_0x2bf6('0xf2')]['plugins'][_0x2bf6('0xf0')](_0x2bf6('0x5d'))[_0x2bf6('0x7d')](_0x55f80f);if(!_0x2da9c7)throw new _0x1237ef(_0x2bf6('0x11b'),this);return _0x2da9c7;}[_0x2bf6('0x11f')](_0x575908){const _0x868324=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d')),_0x55d81c=_0x3b862a(_0x2bf6('0x99')+_0x575908),_0x4bc892=_0x868324[_0x2bf6('0x7d')](_0x55d81c);return _0x4bc892||_0x868324[_0x2bf6('0xe4')]({'id':_0x55d81c,'name':_0x575908});}[_0x2bf6('0x12')](_0x7938fa,_0x3a7fc0,_0x5ca22d,_0x91b529,_0x2c063d){const _0x188d58=this['_getAuthorFromId'](_0x91b529),_0x14feae=this['_suggestionFactory'][_0x2bf6('0x3e')](_0x7938fa,_0x3a7fc0,_0x5ca22d,_0x188d58,_0x2c063d,_0xb5da14=>this[_0x2bf6('0x106')](_0x5ca22d,{'attributes':_0xb5da14}));return this[_0x2bf6('0x54')](_0x14feae,_0x2bf6('0x2d'),()=>{this[_0x2bf6('0x106')](_0x5ca22d,{'state':_0x2bf6('0xea')});},{'priority':_0x2bf6('0x5b')}),this[_0x2bf6('0x54')](_0x14feae,'discard',()=>{this[_0x2bf6('0x106')](_0x5ca22d,{'state':_0x2bf6('0xe5')});},{'priority':_0x2bf6('0x5b')}),this[_0x2bf6('0x13e')][_0x2bf6('0x22')](_0x5ca22d,_0x14feae),this[_0x2bf6('0xfc')]['set'](_0x14feae,_0x2bf6('0x37')),_0x14feae;}[_0x2bf6('0x76')](_0x428192){const _0x497da1=_0x428192[_0x2bf6('0x127')](':');return{'group':_0x497da1[0x0],'type':_0x497da1[0x1],'subType':_0x497da1[_0x2bf6('0xf5')]>=0x5?_0x497da1[0x2]:null,'id':_0x497da1[_0x2bf6('0xf5')]<0x5?_0x497da1[0x2]:_0x497da1[0x3],'authorId':_0x497da1['length']<0x5?_0x497da1[0x3]:_0x497da1[0x4],'markerCount':0x6==_0x497da1[_0x2bf6('0xf5')]?_0x497da1[0x5]:null};}[_0x2bf6('0x9f')](_0x4b9aaf,_0x5936e4,_0x233100){const _0x2be735=_0x4b9aaf[_0x2bf6('0x61')](),_0x3cad24=_0x2be735['start'],_0x2ca5bc=_0x2be735[_0x2bf6('0xb8')];this['_setSuggestionRange'](_0x4b9aaf,this['_model'][_0x2bf6('0x51')](_0x3cad24,_0x5936e4));const _0x17db1b=_0x14cdfd(),_0x738b93=_0x4b9aaf[_0x2bf6('0x111')]['id'],_0x33dda3=_0x4b9aaf[_0x2bf6('0xec')]+(_0x4b9aaf[_0x2bf6('0xaa')]?':'+_0x4b9aaf[_0x2bf6('0xaa')]:'');this['_setSuggestionData']({'id':_0x17db1b,'type':_0x33dda3,'createdAt':new Date(),'authorId':_0x738b93,'originalSuggestionId':_0x4b9aaf['id'],'attributes':_0x4b9aaf['attributes'],'data':_0x4b9aaf[_0x2bf6('0x88')]}),_0x2bf6('0xb3')==_0x4b9aaf[_0x2bf6('0xec')]&&(_0x233100=this['_model']['createPositionBefore'](_0x233100[_0x2bf6('0x63')])),this[_0x2bf6('0xc4')](_0x33dda3,_0x17db1b,_0x738b93,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x233100,_0x2ca5bc));}['_findSuggestions'](_0x528398,_0x4d520d=null){const _0xa89d99=[],_0x287cf9=this[_0x2bf6('0x49')]['schema'],_0x3b4c5f=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'];for(const _0x199625 of this[_0x2bf6('0xef')]())if(_0x199625[_0x2bf6('0x2c')]&&(!_0x4d520d||_0x199625[_0x2bf6('0xec')]==_0x4d520d))for(const _0x186dec of _0x199625[_0x2bf6('0x4e')]()){const _0x547a72=_0x528398[_0x2bf6('0x95')]['isEqual'](_0x186dec[_0x2bf6('0xb8')])||_0x528398[_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x186dec['start']);if(_0x547a72||_0x528398[_0x2bf6('0x110')](_0x186dec)){const _0x4e9172=_0x528398['containsRange'](_0x186dec)&&Bt(_0x287cf9,_0x186dec[_0x2bf6('0x95')],_0x528398),_0x14c4ba=_0x186dec[_0x2bf6('0xa0')](_0x528398)&&Bt(_0x287cf9,_0x528398['start'],_0x186dec);_0xa89d99['push']({'suggestion':_0x199625,'meta':{'isOwn':_0x3b4c5f==_0x199625['author'],'isNextTo':_0x547a72,'isInsideObject':_0x4e9172,'containsRangeInObject':_0x14c4ba}});break;}}return _0xa89d99;}['_addSuggestionMarker'](_0x512efc,_0x338b8e,_0x350a55,_0x2f456c,_0x53d763){this[_0x2bf6('0x49')][_0x2bf6('0xb9')](_0x425f04=>{let _0x21bf3b=_0x2bf6('0x140')+_0x512efc+':'+_0x338b8e+':'+_0x350a55;_0x53d763&&(_0x21bf3b=_0x21bf3b+':'+_0x53d763),_0x425f04[_0x2bf6('0x43')](_0x21bf3b,{'range':_0x2f456c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2bf6('0xf1')](_0xc98891){const _0x3389f0=_0xc98891[_0x2bf6('0xca')],_0x28a3aa=_0xc98891[_0x2bf6('0x33')];_0xc98891['previous']=null,null!=_0x3389f0&&(_0x3389f0[_0x2bf6('0x33')]=null),_0xc98891['next']=null,null!=_0x28a3aa&&(_0x28a3aa['previous']=null),_0x2bf6('0xa8')==this[_0x2bf6('0xfc')][_0x2bf6('0xf0')](_0xc98891)&&(this[_0x2bf6('0xfc')][_0x2bf6('0x22')](_0xc98891,'removed'),this[_0x2bf6('0x6b')](_0x2bf6('0x118'),_0xc98891,_0x3389f0,_0x28a3aa));}[_0x2bf6('0x5f')](_0x5b17f7){const _0x533107=_0x5b17f7['id'],_0x1c32bf=this['addSuggestionData'](_0x5b17f7);if(this['_adapter']&&this[_0x2bf6('0xa2')][_0x2bf6('0x9a')]){const _0x3ef672=this['editor']['plugins'][_0x2bf6('0xf0')]('PendingActions'),_0x3eb377=_0x1c32bf[_0x2bf6('0x114')],_0x5c5c7e=_0x1c32bf['subType']?_0x1c32bf['type']+':'+_0x1c32bf['subType']:_0x1c32bf[_0x2bf6('0xec')],_0x431296=this[_0x2bf6('0xf2')][_0x2bf6('0x58')],_0x3658ae=_0x3ef672[_0x2bf6('0x4c')](_0x4ce5de(_0x431296,'PENDING_ACTION_SUGGESTION')),_0x111506={'id':_0x533107,'type':_0x5c5c7e,'hasComments':_0x3eb377,'data':_0x5b17f7[_0x2bf6('0x88')]||null,'originalSuggestionId':_0x5b17f7[_0x2bf6('0xcd')]||null,'attributes':_0x1c32bf[_0x2bf6('0xf8')]};this['_adapter'][_0x2bf6('0x9a')](_0x111506)[_0x2bf6('0x1b')](_0x27d0b8=>{_0x1c32bf['_saved']=!0x0,_0x3ef672[_0x2bf6('0x135')](_0x3658ae),_0x27d0b8&&_0x27d0b8[_0x2bf6('0x39')]&&(this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x533107)[_0x2bf6('0x39')]=_0x27d0b8[_0x2bf6('0x39')]);})[_0x2bf6('0x19')](_0x5b7b59=>{throw _0x1d61a2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model'][_0x2bf6('0xc1')]({'isUndoable':!0x1},()=>{_0x1c32bf[_0x2bf6('0x38')]();}),_0x1c32bf['stopListening'](),this[_0x2bf6('0x13e')][_0x2bf6('0x82')](_0x1c32bf['id']),this[_0x2bf6('0xfc')]['delete'](_0x1c32bf),_0x5b7b59;});}return _0x1c32bf;}[_0x2bf6('0x106')](_0x4fa19a,_0x1cc165){const _0x53e011=this[_0x2bf6('0xf2')][_0x2bf6('0x120')]['get'](_0x2bf6('0x57')),_0x535ae5=this['getSuggestion'](_0x4fa19a);if(this[_0x2bf6('0xa2')]&&this[_0x2bf6('0xa2')][_0x2bf6('0x1c')]){if(_0x535ae5[_0x2bf6('0x96')]){const _0x29c67a=_0x53e011[_0x2bf6('0x4c')](_0x4ce5de(this[_0x2bf6('0xf2')]['locale'],_0x2bf6('0x53')));this[_0x2bf6('0xa2')]['updateSuggestion'](_0x4fa19a,_0x1cc165)[_0x2bf6('0x1b')](()=>{_0x53e011[_0x2bf6('0x135')](_0x29c67a);});}else _0x535ae5['on'](_0x2bf6('0x122'),()=>{this['_updateSuggestionData'](_0x4fa19a,_0x1cc165);});}}['_getSuggestionData'](_0x2168c7){if(!this[_0x2bf6('0xa2')]||!this['_adapter'][_0x2bf6('0xde')])throw new _0x1237ef(_0x2bf6('0xfb'),this);return this[_0x2bf6('0xa2')][_0x2bf6('0xde')](_0x2168c7);}[_0x2bf6('0xfe')](_0x5e5fc1){const {id:_0x304484,type:_0x378b1b,subType:_0x5d1086,authorId:_0x4a495c}=this[_0x2bf6('0x76')](_0x5e5fc1),_0x237a48=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x304484)||this[_0x2bf6('0x12')](_0x378b1b,_0x5d1086,_0x304484,_0x4a495c,{});switch(this[_0x2bf6('0xd0')](_0x237a48,_0x378b1b,_0x5d1086,_0x4a495c),this['_suggestionState']['get'](_0x237a48)){case _0x2bf6('0x37'):this[_0x2bf6('0x115')](_0x304484)[_0x2bf6('0x1b')](_0x374c1d=>{let _0x1e6d43=Promise['resolve']();_0x374c1d[_0x2bf6('0x114')]&&(_0x1e6d43=this[_0x2bf6('0x0')][_0x2bf6('0x3b')]({'channelId':this[_0x2bf6('0xf2')]['config'][_0x2bf6('0xf0')](_0x2bf6('0x12a')),'threadId':_0x304484})),_0x1e6d43[_0x2bf6('0x1b')](()=>{this[_0x2bf6('0x41')](_0x374c1d)[_0x2bf6('0x96')]=!0x0;});}),this[_0x2bf6('0xfc')][_0x2bf6('0x22')](_0x237a48,_0x2bf6('0xac'));break;case'removed':this[_0x2bf6('0x106')](_0x304484,{'state':_0x2bf6('0xba')});case _0x2bf6('0x1a'):this[_0x2bf6('0xfc')]['set'](_0x237a48,_0x2bf6('0xa8')),this[_0x2bf6('0x6b')](_0x2bf6('0xa'),_0x237a48);break;case _0x2bf6('0xa8'):this[_0x2bf6('0x6b')]('suggestionChanged',_0x237a48);}return _0x237a48[_0x2bf6('0x70')](_0x5e5fc1),_0x237a48;}[_0x2bf6('0xae')](_0x4a4526){const _0x5a178d=Array['from'](_0x4a4526)[_0x2bf6('0xd7')](_0x2729d6=>!_0x2729d6[_0x2bf6('0x8c')]),_0x186a02=this[_0x2bf6('0xef')]({'skipNotAttached':!0x0})[_0x2bf6('0xd7')](_0x2c3d17=>!_0x2c3d17[_0x2bf6('0x8c')]),_0x5194ac=_0x186a02[_0x2bf6('0xd7')](_0x5154fa=>!_0x4a4526['has'](_0x5154fa)),_0x2e47da=new Map(_0x186a02[_0x2bf6('0x5c')](_0x55c094=>[_0x55c094,this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x55c094[_0x2bf6('0xec')],_0x55c094[_0x2bf6('0xaa')],'chain')])),_0x14e49c=new Map(_0x186a02[_0x2bf6('0x5c')](_0x105bcd=>[_0x105bcd,_0x105bcd[_0x2bf6('0x61')]()])),_0x1a08b3=new Set(),_0x5266cc=new Set();for(let _0x33cccc=0x0;_0x33cccc<_0x5a178d[_0x2bf6('0xf5')];_0x33cccc++)_0x5e8672(_0x5a178d[_0x33cccc],_0x5a178d,_0x33cccc+0x1);for(let _0x4a578c=0x0;_0x4a578c<_0x5a178d['length'];_0x4a578c++)_0x5e8672(_0x5a178d[_0x4a578c],_0x5194ac,0x0);for(let _0x198f2d=0x0;_0x198f2d<_0x5a178d['length'];_0x198f2d++){const _0x7448d2=_0x5a178d[_0x198f2d];!_0x5266cc[_0x2bf6('0x25')](_0x7448d2)&&_0x7448d2['previous']&&(_0x7448d2[_0x2bf6('0xca')][_0x2bf6('0x33')]===_0x7448d2&&(_0x7448d2[_0x2bf6('0xca')]['next']=null),_0x7448d2[_0x2bf6('0xca')]=null),!_0x1a08b3[_0x2bf6('0x25')](_0x7448d2)&&_0x7448d2[_0x2bf6('0x33')]&&(_0x7448d2[_0x2bf6('0x33')][_0x2bf6('0xca')]===_0x7448d2&&(_0x7448d2[_0x2bf6('0x33')]['previous']=null),_0x7448d2[_0x2bf6('0x33')]=null);}function _0x5e8672(_0x4e14cf,_0x497b2e,_0xdfa17a){for(let _0x35640f=_0xdfa17a;_0x35640f<_0x497b2e[_0x2bf6('0xf5')];_0x35640f++){const _0x183306=_0x2c02a1(_0x4e14cf,_0x497b2e[_0x35640f]);_0x183306&&(_0x183306[0x0][_0x2bf6('0x33')]=_0x183306[0x1],_0x183306[0x1]['previous']=_0x183306[0x0],_0x1a08b3['add'](_0x183306[0x0]),_0x5266cc[_0x2bf6('0x4c')](_0x183306[0x1]));}}function _0x2c02a1(_0x5a00ed,_0x2da4e8){if(_0x5a00ed[_0x2bf6('0xdf')]['id']!==_0x2da4e8['author']['id'])return null;const _0xd21225=_0x2e47da['get'](_0x5a00ed)(_0x5a00ed,_0x2da4e8,_0x14e49c[_0x2bf6('0xf0')](_0x5a00ed),_0x14e49c['get'](_0x2da4e8));if(!_0xd21225)return null;return _0x2e47da[_0x2bf6('0xf0')](_0x2da4e8)(_0x5a00ed,_0x2da4e8,_0x14e49c['get'](_0x5a00ed),_0x14e49c[_0x2bf6('0xf0')](_0x2da4e8))?_0xd21225[0x1]['commentThread']&&_0xd21225[0x1]['commentThread'][_0x2bf6('0xf5')]?null:_0xd21225:null;}}['_joinWithAdjacentSuggestions'](_0x3c6b0b){const _0x193de0=Array[_0x2bf6('0xeb')](_0x3c6b0b),_0xf38187=this[_0x2bf6('0xef')]({'skipNotAttached':!0x0}),_0x2bf09e=_0xf38187[_0x2bf6('0xd7')](_0x15aae5=>!_0x3c6b0b[_0x2bf6('0x25')](_0x15aae5)),_0x1b7a63=new Map(_0x193de0[_0x2bf6('0x5c')](_0x4f6132=>[_0x4f6132,this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x4f6132[_0x2bf6('0xec')],_0x4f6132[_0x2bf6('0xaa')],_0x2bf6('0x30'))])),_0x395574=new Map(_0xf38187[_0x2bf6('0x5c')](_0x1b6e4e=>[_0x1b6e4e,_0x1b6e4e['getRanges']()]));for(let _0x4acbd7=0x0;_0x4acbd7<_0x193de0[_0x2bf6('0xf5')];_0x4acbd7++){if(_0x202793(this,_0x193de0[_0x4acbd7],_0x193de0,_0x4acbd7+0x1))return!0x0;}for(let _0x2e5333=0x0;_0x2e5333<_0x193de0[_0x2bf6('0xf5')];_0x2e5333++){if(_0x202793(this,_0x193de0[_0x2e5333],_0x2bf09e,0x0))return!0x0;}return!0x1;function _0x202793(_0x384f6d,_0x44efb8,_0x570704,_0x46a849){for(let _0x49f5ab=_0x46a849;_0x49f5ab<_0x570704[_0x2bf6('0xf5')];_0x49f5ab++){const _0x3ffdf8=_0x570704[_0x49f5ab];if(_0x3ffdf8[_0x2bf6('0xec')]!==_0x44efb8[_0x2bf6('0xec')]||_0x3ffdf8[_0x2bf6('0xdf')]['id']!==_0x44efb8['author']['id']||_0x3ffdf8[_0x2bf6('0xaa')]!==_0x44efb8[_0x2bf6('0xaa')])continue;const _0x3e22ea=_0x1b7a63[_0x2bf6('0xf0')](_0x44efb8),_0x3b862b=_0x395574[_0x2bf6('0xf0')](_0x44efb8),_0x4e96f0=_0x395574['get'](_0x3ffdf8),_0x10641a=_0x44efb8['commentThread']&&_0x44efb8[_0x2bf6('0x74')][_0x2bf6('0xf5')],_0x3b0f9e=_0x3ffdf8['commentThread']&&_0x3ffdf8[_0x2bf6('0x74')][_0x2bf6('0xf5')];if(!_0x10641a&&_0x3e22ea(_0x4e96f0,_0x3b862b))return _0x384f6d[_0x2bf6('0x5a')](_0x3ffdf8,_0x44efb8),_0x395574[_0x2bf6('0x82')](_0x44efb8),!0x0;if(!_0x3b0f9e&&_0x3e22ea(_0x3b862b,_0x4e96f0))return _0x384f6d[_0x2bf6('0x5a')](_0x44efb8,_0x3ffdf8),_0x395574[_0x2bf6('0x82')](_0x3ffdf8),!0x0;}return!0x1;}}[_0x2bf6('0x5a')](_0x151053,_0x23ce51){if(_0x151053['isMultiRange'])for(const _0x14211a of _0x23ce51[_0x2bf6('0x4e')]())_0x151053[_0x2bf6('0x107')](_0x14211a);else{const _0x58a25a=_0x23ce51[_0x2bf6('0x61')]()['end'];this[_0x2bf6('0xed')](_0x151053,this[_0x2bf6('0x49')]['createRange'](_0x151053[_0x2bf6('0x61')]()[_0x2bf6('0x95')],_0x58a25a));}_0x23ce51['removeMarkers']();}}class Dt{constructor(_0x1b4f44){this[_0x2bf6('0x78')]=_0x1b4f44,this[_0x2bf6('0x49')]=_0x1b4f44[_0x2bf6('0x4b')],this[_0x2bf6('0x13')]=new Map(),this[_0x2bf6('0x15')]=new Map(),this[_0x2bf6('0xb7')]();}[_0x2bf6('0x3e')](_0x1fb1af,_0x3dc8e1,_0x33441b,_0x1fc75a,_0x412fa3,_0x5e8dfa){return new _0x3dcbb7(this[_0x2bf6('0x49')],{'type':_0x1fb1af,'subType':_0x3dc8e1,'id':_0x33441b,'author':_0x1fc75a,'creator':_0x1fc75a,'attributes':_0x412fa3,'onAttributesChange':_0x5e8dfa,'onAccept':(..._0x558ebc)=>this[_0x2bf6('0x9')](_0x1fb1af,_0x3dc8e1,'accept')(..._0x558ebc),'onDiscard':(..._0x5906c8)=>this['getSuggestionCallback'](_0x1fb1af,_0x3dc8e1,'discard')(..._0x5906c8)});}[_0x2bf6('0x101')](_0x5e9cad,_0x378343,_0x33c511,_0xf6259){const _0x54a88f=_0x5e9cad+':'+_0x378343+':'+_0x33c511;this['_customCallbacks'][_0x2bf6('0x22')](_0x54a88f,_0xf6259);}['getSuggestionCallback'](_0x4bbee5,_0x2b609c,_0x13c163){const _0x5641b7=_0x4bbee5+':'+_0x2b609c+':'+_0x13c163;return this[_0x2bf6('0x13')][_0x2bf6('0xf0')](_0x5641b7)||this[_0x2bf6('0x15')]['get'](_0x4bbee5+':'+_0x13c163);}[_0x2bf6('0xb7')](){const _0xe2ffc2=()=>{},_0x2ab1b4=_0x4dae44=>{_0x4dae44[_0x2bf6('0xbe')]((_0x521d4e,_0x1dca56)=>_0x521d4e[_0x2bf6('0x95')][_0x2bf6('0x103')](_0x1dca56['start'])?0x1:-0x1),this['_model'][_0x2bf6('0xb9')](_0x169b99=>{for(const _0x107e8d of _0x4dae44){let _0x20d1ea;_0x20d1ea=_0x107e8d[_0x2bf6('0xb8')][_0x2bf6('0x1e')]&&_0x107e8d[_0x2bf6('0xb8')]['parent']==_0x107e8d[_0x2bf6('0x95')][_0x2bf6('0x8b')]?_0x169b99[_0x2bf6('0x56')](_0x107e8d[_0x2bf6('0x95')][_0x2bf6('0x8b')],'on'):_0x169b99[_0x2bf6('0x56')](_0x107e8d),this[_0x2bf6('0x49')][_0x2bf6('0x104')](_0x20d1ea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4d4e62=(_0x4e0bf9,_0x439387)=>{this[_0x2bf6('0x49')][_0x2bf6('0xb9')](_0xefae3e=>{const {commandName:_0x4979f9,commandParams:_0x19a935=[]}=_0x439387,_0x5ae35d=_0x4e0bf9[_0x2bf6('0x5c')](_0x2b0419=>(_t(_0x2b0419)&&(_0x2b0419=this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x2b0419[_0x2bf6('0xb8')])),_0x2b0419))[_0x2bf6('0xd7')](_0x4fbe8d=>'$graveyard'!==_0x4fbe8d[_0x2bf6('0xf3')][_0x2bf6('0x42')]);if(_0x5ae35d[_0x2bf6('0xf5')]<0x1)return;const _0x512531=Array[_0x2bf6('0xeb')](this[_0x2bf6('0x49')]['document']['selection'][_0x2bf6('0x4e')]())[_0x2bf6('0x5c')](_0xd39bd7=>_0x4f1a19[_0x2bf6('0xfa')](_0xd39bd7));_0xefae3e[_0x2bf6('0x8')](_0x5ae35d);for(const _0x47468f of this[_0x2bf6('0x78')][_0x2bf6('0x11e')][_0x2bf6('0x11e')]())_0x47468f[_0x2bf6('0x4f')]();_0x19a935[_0x2bf6('0x137')]({'forceDefaultExecution':!0x0}),this[_0x2bf6('0x78')][_0x2bf6('0x7e')](_0x4979f9,..._0x19a935);const _0xd024a=_0x512531[_0x2bf6('0xd7')](_0x11423c=>'$graveyard'!=_0x11423c['root']['rootName']);_0xd024a['length']>0x0&&_0xefae3e[_0x2bf6('0x8')](_0xd024a);for(const _0x5bd88e of _0x512531)_0x5bd88e[_0x2bf6('0xe3')]();});},_0x350ad3=(_0x9ebf79,_0x3f3903)=>0x1==_0x9ebf79['length']&&0x1==_0x3f3903[_0x2bf6('0xf5')]&&_0x9ebf79[0x0][_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x3f3903[0x0][_0x2bf6('0x95')]),_0xe1fda1=(_0x3eb96b,_0x2e7ab9,_0x13ac0c,_0x530c19)=>xt(_0x3eb96b,_0x2e7ab9,_0x13ac0c,_0x530c19,this['_model'])?[_0x3eb96b,_0x2e7ab9]:xt(_0x2e7ab9,_0x3eb96b,_0x530c19,_0x13ac0c,this[_0x2bf6('0x49')])?[_0x2e7ab9,_0x3eb96b]:null;this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0x31'),_0xe2ffc2),this['_defaultCallbacks'][_0x2bf6('0x22')]('insertion:discard',_0x2ab1b4),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x125'),_0x350ad3),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x87'),_0xe1fda1),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x2f'),_0x2ab1b4),this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0x100'),_0xe2ffc2),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0xdc'),_0x350ad3),this['_defaultCallbacks']['set'](_0x2bf6('0x124'),_0xe1fda1),this[_0x2bf6('0x15')]['set'](_0x2bf6('0x3'),_0x4d4e62),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x13a'),_0xe2ffc2),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x6'),_0x350ad3),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x77'),_0xe2ffc2),this[_0x2bf6('0x15')]['set'](_0x2bf6('0x130'),_0x4d4e62),this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0x81'),_0xe2ffc2),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x2e'),_0x350ad3),this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0xf6'),_0xe2ffc2);}}function Bt(_0x50e6c9,_0x1c9354,_0x5b0fec){for(const _0x2b9de7 of _0x1c9354[_0x2bf6('0x63')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2b9de7[_0x2bf6('0xf3')]==_0x2b9de7)return!0x1;if(!_0x5b0fec[_0x2bf6('0xc6')](_0x2b9de7))return!0x1;if(_0x50e6c9['isObject'](_0x2b9de7)||_0x50e6c9['isLimit'](_0x2b9de7))return!0x0;}return!0x1;}function _t(_0x5609e6){return _0x5609e6['end']['parent']==_0x5609e6['start'][_0x2bf6('0x8b')]&&_0x5609e6['end'][_0x2bf6('0xa5')];}function Mt(_0x228a1d,_0xcb9db,_0x52feba,_0x45e79c){const _0x3d401b=_0x50bcd4=>!_0x50bcd4['item']['is'](_0x2bf6('0xfd'))&&!_0x45e79c[_0x2bf6('0xe1')](_0x50bcd4['item']),_0x451f20=_0x228a1d[_0x2bf6('0x95')][_0x2bf6('0x17')](_0x3d401b),_0x26cc72=_0x228a1d[_0x2bf6('0xb8')][_0x2bf6('0x17')](_0x3d401b,{'direction':_0x2bf6('0x7a')});return(!_0x228a1d[_0x2bf6('0x95')][_0x2bf6('0xcc')](_0x451f20)||!_0x228a1d[_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x26cc72))&&(_0x451f20[_0x2bf6('0x103')](_0x26cc72)?_0x52feba['updateMarker'](_0xcb9db,{'range':_0x52feba[_0x2bf6('0x51')](_0x451f20,_0x26cc72)}):_0x52feba[_0x2bf6('0x13f')](_0xcb9db),!0x0);}function $t(_0xbc39a1){return _0x3b862a(_0xbc39a1);}function Nt(_0x1eaf6f){const _0x52270e=_0x1eaf6f[_0x2bf6('0x95')]['nodeAfter'];return _0x52270e&&_0x52270e['is'](_0x2bf6('0x3a'));}function Rt(_0x5e43ee,_0x1f0b2c){const _0x30e6ae=_0x1f0b2c[_0x2bf6('0xee')][_0x2bf6('0xe1')](_0x5e43ee)||_0x1f0b2c[_0x2bf6('0xee')]['isSelectable'](_0x5e43ee);return _0x1f0b2c[_0x2bf6('0x51')](_0x1f0b2c[_0x2bf6('0x32')](_0x5e43ee,_0x2bf6('0x84')),_0x30e6ae?_0x1f0b2c[_0x2bf6('0xcb')](_0x5e43ee):_0x1f0b2c[_0x2bf6('0x32')](_0x5e43ee,_0x2bf6('0xb8')));}function xt(_0x3ae403,_0x4919ab,_0x393f60,_0x15c07a,_0x25fb44){if(_0x393f60['end'][_0x2bf6('0xcc')](_0x15c07a[_0x2bf6('0x95')]))return!0x0;if(_0x3ae403[_0x2bf6('0xec')]!=_0x4919ab[_0x2bf6('0xec')])return!0x1;if(!_0x393f60[_0x2bf6('0xb8')][_0x2bf6('0x126')](_0x15c07a[_0x2bf6('0x95')]))return!0x1;const _0x1b3db5=_0x25fb44['createRange'](_0x393f60['end'],_0x15c07a[_0x2bf6('0x95')])[_0x2bf6('0xb0')]();for(const _0x306a6a of _0x1b3db5)if([_0x2bf6('0x6e'),_0x2bf6('0xc')][_0x2bf6('0x44')](_0x306a6a[_0x2bf6('0xec')])&&_0x25fb44[_0x2bf6('0xee')][_0x2bf6('0xce')](_0x306a6a[_0x2bf6('0x7')]))return!0x1;return!0x0;}
23
+ const _0x5bbc=['high','push','updateSuggestion','_removeSuggestion','getWalker','removeMarkers','getDifference','consume','formatGroupId','formatBlock:accept','addClass','getAllAdjacentSuggestions','acceptAllSuggestions','ck-suggestion-marker','trackChanges','formatBlock:join','detach','isInsideObject','markerName','_addSuggestionMarker','_breakSuggestionMarker','_trackFormatChanges','_joinWithAdjacentSuggestions','isBlock','element','removeMarker:suggestion:formatBlock','isUndo','removeClass','never','ck-suggestion-marker-','schema','addMarker:suggestion','isMultiRange','markerToHighlight','isAtEnd','deletion:','updateMarker','discardSelectedSuggestions','toJSON','previous','every','split','_addThreadToSuggestion','skipNestingCheck','createPositionAt','parent','isExternal','substr','addSuggestionData','resolve','_findSuggestions','next','ck-suggestion-marker--active','marker-count','markMultiRangeInsertion','execute','group','insertion','filter','options','formatInline:','discard','_onDiscard','editing','addHighlight','markDeletion','unbindElementFromMarkerName','low','deletion:discard','update:suggestion','suggestion:','trackChangesCommand','_adapter','$graveyard','insertion:chain','insert','name','markers','trackChanges.trackFormatChanges','_suggestionFactory','_joinSuggestions','refresh','editor','markerReady','insertion:accept','hasComments','position','documentSelection','getLastMatchingPosition','_model','removeAttribute','track-changes-command-not-found','createRangeIn','isOwn','discardAllSuggestions','accept','createdAt','getCustomProperty','join','_saved','track-changes-adapter-already-set','howMany','createElement','rethrowUnexpectedError','getAttribute','markInsertion','suggestion','track-changes-suggestion-data-mismatch','backward','insertion:discard','differ','document','attributes','createRange','default','always','reconvertMarker','deletion:chain','_createSuggestion','setAttribute','_rangeIsInLocalUserInsertion','_getAuthorFromId','oldRange','markMultiRangeDeletion','Users','_commentsRepository','clear','getRange','getChangedMarkers','containsItem','removeComment','pluginName','formatBlock','splice','setTo','getCommentThread','$marker','nodeBefore','batch','value','elementEnd','isCollapsed','_enabledCommands','_splitMarkerName','then','bindElementToMarker','adapter','registerCustomCallback','containsRange','isIntersectingWithRange','_isForcedDefaultExecutionBlock','catch','_descriptionFactory','formatInline:join','isEqual','open','originalSuggestionId','ck-suggestion-marker-formatBlock','addRange','_mergeNestedSuggestions','selection','isDocumentOperation','authoredAt','isNextTo','hasCommentThread','consumable','for','targetPosition','toViewElement','upcast','rootName','applyOperation','forceDefaultExecution','isBefore','containsRangeInObject','getIntersection','createSelection','nodeAfter','multi','define','_checkSuggestionCorrectness','stopListening','_setSuggestionRange','chain','commentThread','_suggestionState','head','rejected','trackChanges.mergeNestedSuggestions','normal','isAfter','change','requires','author','$textProxy','item','suggestionUnloaded','insertion:join','dataDowncast','newRange','PENDING_ACTION_SUGGESTION','removed','_cutOutSuggestionMarker','editingDowncast','showSuggestionHighlights','range','addSuggestion','CommentsRepository','model','includes','size','plugins','PendingActions','markMultiRangeBlockFormat','getRanges','get','some','conversion','_suggestions','track-changes-suggestion-not-found','config','fire','_defaultCallbacks','containerElement','moveTargetPosition','_setSuggestionData','notReady','error-saving-suggestion-data-suggestion-discarded','stop','insertContent','fromRange','creator','getSuggestions','_registerDefaultCallbacks','createPositionBefore','_getExternalAuthor','listenTo','commands','map','markerToData','addMarker:suggestion:formatBlock','commandName','getFirstRange','isLimit','acceptSelectedSuggestions','mapper','formatBlock:','_customCallbacks','elementToElement','getAncestors','track-changes-adapter-missing-getsuggestion','getFirstMarker','getSuggestion','buildSuggestion','length','TrackChangesEditing','values','_updateSuggestionData','setSelection','formatInline','ready','isRemovable','dataToMarker','discardSuggestion','suggestionChanged','enqueueChange','forward','activeMarkers','type','acceptSuggestion','enableCommand','collaboration.channelId','getSuggestionCallback','subType','highest','end','formatBlock:discard','writer','deleteContent','move','_handleNewSuggestionMarker','from','multipleBlocks','markBlockFormat','registerPostFixer','isInContent','fetchCommentThread','removeMarker','insertion:','set','isLocal','getNearestSelectionRange','root','getShiftedBy','deletion','has','@external','isObject','formatInline:discard','change:_saved','clone','locale','start','addMarkerName','_editor','remove','getUser','delete','dataReady','suggestionLoaded','data','isTouching','add'];(function(_0x1be480,_0x5bbce1){const _0x540709=function(_0x540302){while(--_0x540302){_0x1be480['push'](_0x1be480['shift']());}};_0x540709(++_0x5bbce1);}(_0x5bbc,0xd9));const _0x5407=function(_0x1be480,_0x5bbce1){_0x1be480=_0x1be480-0x0;let _0x540709=_0x5bbc[_0x1be480];return _0x540709;};import{Plugin as _0x559d86,PendingActions as _0x31ddb5}from'ckeditor5/src/core.js';import{LiveRange as _0x376084}from'ckeditor5/src/engine.js';import{CKEditorError as _0x468b33,uid as _0x3f2a4c,priorities as _0x22ed0b,logWarning as _0x7a3173}from'ckeditor5/src/utils.js';import{toWidget as _0x3eb375}from'ckeditor5/src/widget.js';import{Users as _0x342db6,hashObject as _0x3bf0e7}from'ckeditor5-collaboration';import _0x896c8e from'./commands/trackchangescommand.js';import _0x2e24c2 from'./commands/acceptsuggestioncommand.js';import _0x4dd945 from'./commands/discardsuggestioncommand.js';import _0x5d31d7 from'./commands/executeonallsuggestionscommand.js';import _0x16a204 from'./commands/executeonselectedsuggestionscommand.js';import _0x37741b from'./suggestion.js';import _0x5163ba from'./suggestiondescriptionfactory.js';import _0x38a610 from'./integrations/alignment.js';import _0x3f838d from'./integrations/basicstyles.js';import _0x758172 from'./integrations/blockquote.js';import _0x431657 from'./integrations/ckbox.js';import _0x1bcdd0 from'./integrations/codeblock.js';import _0x2fd025 from'./integrations/comments.js';import _0x104f23 from'./integrations/deletecommand.js';import _0xebc9d6 from'./integrations/documentlist.js';import _0x22e1fe from'./integrations/entercommand.js';import _0x168df3 from'./integrations/findandreplace.js';import _0x486ee8 from'./integrations/font.js';import _0x1a0730 from'./integrations/formatpainter.js';import _0x5766a5 from'./integrations/heading.js';import _0x2304a6 from'./integrations/highlight.js';import _0xc47f5d from'./integrations/horizontalline.js';import _0x48613c from'./integrations/htmlembed.js';import _0x4d5158 from'./integrations/image.js';import _0x3cd642 from'./integrations/imagereplace.js';import _0x3e80cc from'./integrations/importword.js';import _0x2a7883 from'./integrations/indent.js';import _0x5b8e07 from'./integrations/inputcommand.js';import _0x40ceb1 from'./integrations/link.js';import _0x513295 from'./integrations/list.js';import _0x444b8a from'./integrations/listproperties.js';import _0x50d66e from'./integrations/mediaembed.js';import _0x27f6b3 from'./integrations/mention.js';import _0x516918 from'./integrations/pagebreak.js';import _0x154a5a from'./integrations/paragraph.js';import _0x5465a3 from'./integrations/removeformat.js';import _0x4528f9 from'./integrations/restrictededitingmode.js';import _0x46ea33 from'./integrations/shiftentercommand.js';import _0x9eb300 from'./integrations/standardeditingmode.js';import _0x31b84e from'./integrations/style.js';import _0x102d77 from'./integrations/table.js';import _0x499c61 from'./integrations/tablemergesplit.js';import _0x5707d4 from'./integrations/tableheadings.js';import _0x47ac76 from'./integrations/tableclipboard.js';import _0x1690f0 from'./integrations/tablecolumnresize.js';import _0x4ab979 from'./integrations/template.js';import _0x3c06c2 from'./integrations/tableofcontents.js';import _0x1c3d42 from'./integrations/title.js';import _0x89e8b5 from'./integrations/undo.js';import{getTranslation as _0x59c829}from'./utils/common-translations.js';import _0x34d785 from'./integrations/tablecaption.js';import _0x17f744 from'./integrations/documentlistproperties.js';import _0x4ecf2e from'./integrations/tableproperties.js';export default class p extends _0x559d86{static get[_0x5407('0x120')](){return[_0x5407('0x12f'),_0x342db6,_0x31ddb5,_0x38a610,_0x3f838d,_0x758172,_0x431657,_0x1bcdd0,_0x2fd025,_0x104f23,_0xebc9d6,_0x17f744,_0x22e1fe,_0x168df3,_0x486ee8,_0x1a0730,_0x5766a5,_0x2304a6,_0xc47f5d,_0x48613c,_0x4d5158,_0x3cd642,_0x3e80cc,_0x2a7883,_0x5b8e07,_0x40ceb1,_0x513295,_0x444b8a,_0x50d66e,_0x27f6b3,_0x516918,_0x154a5a,_0x5465a3,_0x4528f9,_0x46ea33,_0x9eb300,_0x31b84e,_0x102d77,_0x499c61,_0x5707d4,_0x34d785,_0x47ac76,_0x1690f0,_0x3c06c2,_0x4ecf2e,_0x4ab979,_0x1c3d42,_0x89e8b5];}static get[_0x5407('0xe3')](){return _0x5407('0x26');}constructor(_0x1b887f){function _0x403dff(_0x15e28f){return _0x15e28f[_0x5407('0x15')](_0x2db561=>String['fromCharCode'](_0x2db561))[_0x5407('0xc2')]('');}super(_0x1b887f),this[_0x5407('0x48')]('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c5624,_0x3974fa,_0x486dfc,_0xee6d07)=>{this[_0x5407('0xb9')][_0x5407('0x11f')](()=>{for(const _0x5e2991 of[..._0xee6d07,..._0x486dfc])this[_0x5407('0xb9')][_0x5407('0xad')][_0x5407('0x4e')](_0x5e2991)&&_0x1b887f[_0x5407('0x9f')][_0x5407('0xd4')](_0x5e2991);});}),this[_0x5407('0xf8')]=new _0x5163ba(this[_0x5407('0xb2')][_0x5407('0x130')][_0x5407('0x7e')],this['editor'][_0x5407('0x54')]),this[_0x5407('0xa8')]=null,this[_0x5407('0xaf')]=new Ct(this[_0x5407('0xb2')]),this[_0x5407('0x1')]=new Map(),this['_commentsRepository']=_0x1b887f['plugins'][_0x5407('0x137')](_0x5407('0x12f')),this[_0x5407('0xee')]=new Set(),this[_0x5407('0xb9')]=this[_0x5407('0xb2')][_0x5407('0x130')],this[_0x5407('0x119')]=new WeakMap(),this[_0x5407('0xf6')]=!0x1,_0x1b887f['config'][_0x5407('0x113')](_0x5407('0xae'),_0x5407('0xd2')),this['_trackFormatChanges']=_0x1b887f[_0x5407('0x3')][_0x5407('0x137')](_0x5407('0xae')),_0x1b887f[_0x5407('0x3')][_0x5407('0x113')](_0x5407('0x11c'),!0x0),this['_mergeNestedSuggestions']=_0x1b887f[_0x5407('0x3')][_0x5407('0x137')](_0x5407('0x11c')),this[_0x5407('0xa7')]=new _0x896c8e(_0x1b887f,this[_0x5407('0xee')]),this[_0x403dff([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x403dff([0x34,0x30,0x34,0x36,0x31,0x34,0x33,0x34]);}['init'](){const _0x31f731=this[_0x5407('0xb2')];_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))[_0x5407('0x81')]({'model':_0x5407('0xca'),'view':_0x34e6da=>{const {id:_0x5a62e5,type:_0x20cec6}=this['_splitMarkerName'](_0x34e6da[_0x5407('0x72')]),_0x52a0e2=[_0x5407('0x6d'),_0x5407('0x7d')+_0x20cec6];let _0x381f47=0xbb8;return this[_0x5407('0x32')][_0x5407('0x131')](_0x34e6da[_0x5407('0x72')])&&(_0x52a0e2[_0x5407('0x61')](_0x5407('0x94')),_0x381f47=0xbc2),'deletion'==_0x20cec6&&(_0x381f47+=0x5),{'classes':_0x52a0e2,'attributes':{'data-suggestion':_0x5a62e5},'priority':_0x381f47};}}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x126'))[_0x5407('0x5f')](_0xb4904a=>{_0xb4904a['on'](_0x5407('0x7f'),(_0x3e541c,_0x561231,_0x34f742)=>{if(!_0x34f742[_0x5407('0x9b')][_0x5407('0x12c')])return;const _0x2a3c77=_0x561231[_0x5407('0x123')];if(!_0x2a3c77)return;const _0x156038=_0x34f742[_0x5407('0x1c')]['toViewElement'](_0x2a3c77);_0x31f731[_0x5407('0x130')]['schema'][_0x5407('0x50')](_0x2a3c77)&&_0x156038&&!_0x156038[_0x5407('0xc1')]('widget')&&_0x156038['is'](_0x5407('0x6'))&&_0x3eb375(_0x156038,_0x34f742['writer']);},{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x126'))[_0x5407('0x81')]({'model':'suggestion','view':(_0x459d5f,_0x2bb55e)=>{if(!_0x2bb55e[_0x5407('0x9b')][_0x5407('0x12c')])return null;const {type:_0x202792}=this['_splitMarkerName'](_0x459d5f[_0x5407('0x72')]);return{'classes':['ck-suggestion-marker',_0x5407('0x7d')+_0x202792],'priority':0xbb8};}});const _0x3398d3=({showActiveMarkers:_0x195d01=!0x0}={})=>(_0x5c4a4c,_0x1d4d48,_0x490822)=>{if(!_0x1d4d48['item'])return;if(_0x1d4d48['item']['is'](_0x5407('0x100')))return void _0x490822['consumable'][_0x5407('0x67')](_0x1d4d48[_0x5407('0x123')],_0x5c4a4c[_0x5407('0xac')]);const _0x454a29=_0x490822[_0x5407('0x1c')][_0x5407('0x108')](_0x1d4d48[_0x5407('0x123')]);if(!(_0x1d4d48[_0x5407('0x123')]['is'](_0x5407('0x78'))&&_0x31f731['model'][_0x5407('0x7e')][_0x5407('0x77')](_0x1d4d48['item'])&&!_0x454a29[_0x5407('0xc1')](_0x5407('0xa0'))))return;const {id:_0x5a9627}=this[_0x5407('0xef')](_0x1d4d48[_0x5407('0x72')]);_0x490822['writer']['addClass'](['ck-suggestion-marker',_0x5407('0xfd')],_0x454a29),_0x490822[_0x5407('0x3c')][_0x5407('0xd7')]('data-suggestion',_0x5a9627,_0x454a29),_0x490822['mapper'][_0x5407('0xf1')](_0x454a29,_0x1d4d48[_0x5407('0x72')]),_0x195d01&&(this[_0x5407('0x32')][_0x5407('0x131')](_0x1d4d48[_0x5407('0x72')])?_0x490822['writer'][_0x5407('0x6a')](_0x5407('0x94'),_0x454a29):_0x490822['writer']['removeClass'](_0x5407('0x94'),_0x454a29));for(const _0x287529 of _0x31f731[_0x5407('0x130')][_0x5407('0xbc')](_0x1d4d48[_0x5407('0x123')])['getItems']())_0x490822[_0x5407('0x105')]['consume'](_0x287529,_0x5c4a4c['name']);_0x490822[_0x5407('0x105')]['consume'](_0x1d4d48['item'],_0x5c4a4c[_0x5407('0xac')]);};_0x31f731['conversion']['for'](_0x5407('0x126'))[_0x5407('0x5f')](_0xfd99ef=>{_0xfd99ef['on']('addMarker:suggestion:formatBlock',(_0x43df5f,_0x3ca2a2,_0x4e3fd2)=>{_0x4e3fd2[_0x5407('0x9b')]['showSuggestionHighlights']&&_0x3398d3({'showActiveMarkers':!0x1})(_0x43df5f,_0x3ca2a2,_0x4e3fd2);},{'priority':_0x5407('0x39')});}),_0x31f731[_0x5407('0x0')]['for'](_0x5407('0x126'))[_0x5407('0x16')]({'model':_0x5407('0xca'),'view':(_0x501c0e,_0x304396)=>_0x304396['options'][_0x5407('0x12c')]?null:{'group':_0x5407('0xca'),'name':_0x501c0e[_0x5407('0x8f')](0xb)}}),_0x31f731['conversion'][_0x5407('0x106')](_0x5407('0x109'))[_0x5407('0x1f')]({'view':{'name':_0x5407('0xca'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x45cd1f,{writer:_0x256e92})=>{let _0x139f3=_0x5407('0xa6')+_0x45cd1f[_0x5407('0xc8')]('suggestion-type')+':'+_0x45cd1f[_0x5407('0xc8')]('id');return _0x45cd1f[_0x5407('0xc8')](_0x5407('0x95'))&&(_0x139f3+=':'+_0x45cd1f[_0x5407('0xc8')](_0x5407('0x95'))),_0x256e92[_0x5407('0xc6')](_0x5407('0xe8'),{'data-name':_0x139f3});}}),_0x31f731[_0x5407('0x0')]['for'](_0x5407('0x109'))[_0x5407('0x2d')]({'view':_0x5407('0xca')}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))[_0x5407('0x5f')](_0x1f636f=>{_0x1f636f['on'](_0x5407('0x17'),_0x3398d3(),{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))['add'](_0x3bc62d=>{_0x3bc62d['on'](_0x5407('0x79'),(_0x44f246,_0x3df9d8,_0x1ea96a)=>{const _0x53f780=_0x1ea96a[_0x5407('0x1c')]['markerNameToElements'](_0x3df9d8['markerName']);if(_0x53f780)for(const _0x4c8e0c of _0x53f780)_0x4c8e0c[_0x5407('0xc1')](_0x5407('0xa0'))||(_0x1ea96a[_0x5407('0x3c')][_0x5407('0x7b')]([_0x5407('0x6d'),'ck-suggestion-marker-formatBlock',_0x5407('0x94')],_0x4c8e0c),_0x1ea96a[_0x5407('0x3c')][_0x5407('0xba')]('data-suggestion',_0x4c8e0c),_0x1ea96a[_0x5407('0x1c')][_0x5407('0xa2')](_0x4c8e0c,_0x3df9d8[_0x5407('0x72')]));},{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x130')]['document'][_0x5407('0x43')](_0x530055=>{let _0x53c5e9=!0x1;const _0x1c8734=Array[_0x5407('0x40')](_0x31f731[_0x5407('0x130')][_0x5407('0xcf')][_0x5407('0xce')][_0x5407('0xe0')]()),_0x33790f=new Set();for(const {name:_0x2bf8e1,data:_0x2a67bd}of _0x1c8734){const {group:_0x6eff5f,type:_0x17f34d,id:_0xb85d2}=this[_0x5407('0xef')](_0x2bf8e1);if(_0x5407('0xca')!==_0x6eff5f)continue;const _0x416a02=this['_suggestions'][_0x5407('0x137')](_0xb85d2);if(null!=_0x2a67bd[_0x5407('0x127')]){_0x5407('0x2a')==_0x17f34d&&(_0x53c5e9=_0x53c5e9||_t(_0x2a67bd[_0x5407('0x127')],_0x2bf8e1,_0x530055,_0x31f731[_0x5407('0x130')]['schema']));if(_0x2a67bd[_0x5407('0x127')]['isCollapsed']||'$graveyard'==_0x2a67bd['newRange'][_0x5407('0x4b')][_0x5407('0x10a')]||_0x5407('0xe4')==_0x17f34d&&!$t(_0x2a67bd[_0x5407('0x127')])||_0x5407('0x4d')==_0x17f34d&&!(!Bt(_0x1db81e=_0x2a67bd[_0x5407('0x127')])&&!function(_0x3911b1){return _0x3911b1[_0x5407('0x55')][_0x5407('0x8d')]==_0x3911b1[_0x5407('0x3a')][_0x5407('0xe9')]&&_0x3911b1['start'][_0x5407('0x82')];}(_0x1db81e)))_0x530055[_0x5407('0x46')](_0x2bf8e1),_0x53c5e9=!0x0;else{if(!_0x416a02||!_0x416a02[_0x5407('0x44')])continue;_0x33790f[_0x5407('0x5f')](_0x416a02);}}}var _0x1db81e;return _0x33790f[_0x5407('0x132')]>0x0&&(_0x53c5e9=!!this[_0x5407('0x76')](_0x33790f)||_0x53c5e9),_0x53c5e9;}),_0x31f731['model']['document'][_0x5407('0x43')](_0x52b02a=>{let _0x3aec76=!0x1;for(const _0x381511 of _0x31f731[_0x5407('0x130')][_0x5407('0xcf')]['differ']['getChanges']()){if(_0x5407('0xab')!=_0x381511[_0x5407('0x33')])continue;const _0xb9cf78=_0x381511[_0x5407('0xb6')][_0x5407('0x4c')](_0x381511[_0x5407('0x25')]);if(_0xb9cf78[_0x5407('0x82')])for(const _0x1ba677 of this[_0x5407('0x1')]['values']()){if(_0x1ba677[_0x5407('0x80')]||!_0x1ba677[_0x5407('0x44')])continue;if(_0x5407('0xe4')!=_0x1ba677['type'])continue;const _0x23f7bf=_0x1ba677['getFirstRange']();if(_0x23f7bf[_0x5407('0x55')][_0x5407('0x8d')]!=_0x23f7bf[_0x5407('0x3a')][_0x5407('0x8d')]&&_0x23f7bf[_0x5407('0x3a')][_0x5407('0xfa')](_0x381511['position'])){const _0x3d3569=_0x31f731[_0x5407('0x130')][_0x5407('0xd1')](_0x23f7bf[_0x5407('0x55')],_0xb9cf78);_0x52b02a[_0x5407('0x84')](_0x1ba677[_0x5407('0x22')](),{'range':_0x3d3569}),_0x3aec76=!0x0;}}}return _0x3aec76;}),_0x31f731[_0x5407('0x130')]['markers']['on'](_0x5407('0xa5'),(_0x25f95b,_0xb18858,_0x1d3213)=>{if(null==_0x1d3213){const {id:_0x3ff2d7}=this[_0x5407('0xef')](_0xb18858[_0x5407('0xac')]),_0x34975b=this[_0x5407('0x1')][_0x5407('0x137')](_0x3ff2d7);_0x34975b&&_0x34975b[_0x5407('0x56')](_0xb18858[_0x5407('0xac')]);}}),_0x31f731[_0x5407('0x130')][_0x5407('0xcf')]['on']('change:data',()=>{const _0x4cc04e=Array[_0x5407('0x40')](_0x31f731[_0x5407('0x130')][_0x5407('0xcf')][_0x5407('0xce')][_0x5407('0xe0')]())[_0x5407('0x9a')](_0x5a0145=>_0x5407('0xca')===this[_0x5407('0xef')](_0x5a0145['name'])[_0x5407('0x98')]);if(0x0===_0x4cc04e[_0x5407('0x25')])return;_0x4cc04e['sort']((_0x378660,_0x27f6af)=>{const _0x4a4d28=_0x378660[_0x5407('0x5d')][_0x5407('0xda')],_0x4d203e=_0x27f6af[_0x5407('0x5d')][_0x5407('0xda')];return null===_0x4a4d28&&null===_0x4d203e?0x0:null===_0x4a4d28&&null!==_0x4d203e?-0x1:null!==_0x4a4d28&&null===_0x4d203e?0x1:_0x4a4d28[_0x5407('0x55')][_0x5407('0x10d')](_0x4d203e[_0x5407('0x55')])?-0x1:0x1;});const _0x19b60c=new Set(),_0x4702d7=new Set();for(const {name:_0x13bcee,data:_0x2d7e48}of _0x4cc04e){const {id:_0x45b3da}=this[_0x5407('0xef')](_0x13bcee);if(null===_0x2d7e48['oldRange']){const _0x1375c1=this[_0x5407('0x3f')](_0x13bcee);_0x4702d7['add'](_0x1375c1);}else{const _0x177d9e=this['_suggestions'][_0x5407('0x137')](_0x45b3da);null!==_0x2d7e48['newRange']||_0x177d9e[_0x5407('0x44')]?(_0x19b60c[_0x5407('0x5f')](_0x177d9e[_0x5407('0x11a')]),_0x4702d7[_0x5407('0x5f')](_0x177d9e)):this[_0x5407('0x63')](_0x177d9e);}}_0x4702d7[_0x5407('0x132')]>0x0&&this['_refreshSuggestionsChain'](_0x4702d7);for(const _0x148506 of _0x19b60c)this[_0x5407('0x4')]('suggestionChanged',_0x148506);}),_0x31f731[_0x5407('0x130')]['on'](_0x5407('0x10b'),(_0xd1113e,_0x23ec62)=>{const _0x504291=_0x23ec62[0x0];if(!this[_0x5407('0x1')]['size'])return;if(!_0x504291[_0x5407('0x101')])return;if(_0x504291[_0x5407('0xea')][_0x5407('0x7a')]||!_0x504291[_0x5407('0xea')][_0x5407('0x49')])return;let _0x5ae816,_0x3185a1;switch(_0x504291[_0x5407('0x33')]){case _0x5407('0xab'):_0x5ae816=_0x31f731[_0x5407('0x130')]['createPositionAt'](_0x504291[_0x5407('0xb6')]),_0x3185a1=_0x5ae816['getShiftedBy'](_0x504291[_0x5407('0xc5')]);break;case _0x5407('0x89'):_0x5ae816=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291['splitPosition']),_0x3185a1=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291[_0x5407('0x7')]);break;case _0x5407('0x3e'):_0x5ae816=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291[_0x5407('0x107')]),_0x3185a1=_0x5ae816[_0x5407('0x4c')](_0x504291['howMany']);break;default:return;}const _0x3b597a=_0x31f731['model'][_0x5407('0xd1')](_0x5ae816,_0x3185a1);_0x31f731[_0x5407('0x130')]['change'](()=>{for(const {suggestion:_0x126c04,meta:_0x5e4ac2}of this[_0x5407('0x92')](_0x3b597a)){if(_0x126c04[_0x5407('0x80')])continue;if(_0x5407('0x2a')==_0x126c04['type'])continue;const _0x2b5c51=_0x126c04[_0x5407('0x5d')]&&_0x126c04['data'][_0x5407('0x41')];(_0x5407('0xe4')!=_0x126c04[_0x5407('0x33')]||_0x5407('0x89')==_0x504291[_0x5407('0x33')]&&!_0x2b5c51)&&(_0x5e4ac2[_0x5407('0x10e')]||_0x5407('0x99')==_0x126c04['type']&&_0x5e4ac2[_0x5407('0xbd')]||_0x126c04['getFirstRange']()[_0x5407('0xf4')](_0x3b597a)&&this[_0x5407('0x74')](_0x126c04,_0x5ae816,_0x3185a1));}});},{'priority':'lowest'}),_0x31f731[_0x5407('0x130')]['on']('deleteContent',(_0x423ae5,_0x176f1d)=>{const _0x405433=_0x176f1d[0x0],_0x220296=_0x176f1d[0x1];if(_0x220296&&_0x220296[_0x5407('0x10c')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5407('0xa7')][_0x5407('0xeb')])return;if(_0x405433[_0x5407('0xed')])return;const _0x42dfb5=_0x31f731[_0x5407('0x130')]['schema'],{start:_0x8fd354,end:_0x3bb0c7}=_0x405433[_0x5407('0x19')](),_0x3042dc=_0x8fd354[_0x5407('0x111')]&&_0x42dfb5[_0x5407('0x1a')](_0x8fd354[_0x5407('0x111')])?null:_0x42dfb5[_0x5407('0x4a')](_0x8fd354,_0x5407('0x31')),_0x45d74a=_0x3bb0c7[_0x5407('0xe9')]&&_0x42dfb5['isLimit'](_0x3bb0c7[_0x5407('0xe9')])?null:_0x42dfb5[_0x5407('0x4a')](_0x3bb0c7,_0x5407('0xcc')),_0x4e3655=_0x31f731[_0x5407('0x130')]['createRange'](_0x3042dc?_0x3042dc[_0x5407('0x55')]:_0x8fd354,_0x45d74a?_0x45d74a[_0x5407('0x3a')]:_0x3bb0c7);_0x31f731[_0x5407('0x130')][_0x5407('0x11f')](_0x38297a=>{this[_0x5407('0xa1')](_0x4e3655);const _0x15646e=_0x31f731[_0x5407('0x130')][_0x5407('0x7e')]['getNearestSelectionRange'](_0x4e3655[_0x5407('0x55')]);_0x405433['is'](_0x5407('0xb7'))?_0x38297a[_0x5407('0x29')](_0x15646e):_0x405433[_0x5407('0xe6')](_0x15646e);}),_0x423ae5[_0x5407('0xb')]();},{'priority':_0x22ed0b[_0x5407('0x11d')]+0xa}),_0x31f731['model']['on'](_0x5407('0xc'),(_0x38c7f7,_0x2965cd)=>{const _0x4e5bdb=_0x2965cd[_0x2965cd['length']-0x1];_0x4e5bdb&&_0x4e5bdb[_0x5407('0x10c')]||this[_0x5407('0xf6')]||this[_0x5407('0xa7')][_0x5407('0xeb')]&&(_0x31f731['model'][_0x5407('0x11f')](()=>{let _0x11ef77=_0x31f731[_0x5407('0x130')]['insertContent'](_0x2965cd[0x0],_0x2965cd[0x1],_0x2965cd[0x2],{'forceDefaultExecution':!0x0});if(!_0x11ef77)return;_0x38c7f7['return']=_0x11ef77[_0x5407('0x53')]();const _0x1fb275=_0x11ef77[_0x5407('0x3a')]['nodeBefore'],_0x378a8a=_0x31f731[_0x5407('0x130')]['schema'];_0x1fb275&&_0x378a8a['isBlock'](_0x1fb275)&&!_0x378a8a[_0x5407('0x50')](_0x1fb275)&&(_0x11ef77=_0x31f731['model'][_0x5407('0xd1')](_0x11ef77[_0x5407('0x55')],_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x1fb275,_0x5407('0x3a')))),this[_0x5407('0xc9')](_0x11ef77);}),_0x38c7f7[_0x5407('0xb')]());},{'priority':_0x5407('0x60')}),this[_0x5407('0xb2')]['commands']['add'](_0x5407('0x6e'),this[_0x5407('0xa7')]),this['enableCommand']('trackChanges');const _0x3d4455=new _0x2e24c2(_0x31f731,this[_0x5407('0x1')]);_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x34'),_0x3d4455),this[_0x5407('0x35')](_0x5407('0x34'));const _0x4ca597=new _0x4dd945(_0x31f731,this[_0x5407('0x1')]);_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x2e'),_0x4ca597),this[_0x5407('0x35')](_0x5407('0x2e')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x6c'),new _0x5d31d7(_0x31f731,_0x3d4455,this[_0x5407('0x1')])),this['enableCommand'](_0x5407('0x6c')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0xbe'),new _0x5d31d7(_0x31f731,_0x4ca597,this['_suggestions'])),this[_0x5407('0x35')](_0x5407('0xbe')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x1b'),new _0x16a204(_0x31f731,_0x3d4455,this[_0x5407('0x1')])),this[_0x5407('0x35')]('acceptSelectedSuggestions'),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x85'),new _0x16a204(_0x31f731,_0x4ca597,this[_0x5407('0x1')])),this['enableCommand'](_0x5407('0x85'));const _0x21e86a=_0x31f731[_0x5407('0x133')]['get']('CommentsRepository');this[_0x5407('0x13')](_0x21e86a,'addComment',(_0x384622,{threadId:_0x9c9c27})=>{const _0x134709=this[_0x5407('0x1')][_0x5407('0x137')](_0x9c9c27);_0x134709&&_0x134709[_0x5407('0x118')]&&0x1===_0x134709[_0x5407('0x118')]['length']&&this[_0x5407('0x28')](_0x9c9c27,{'hasComments':!0x0});},{'priority':'low'}),this[_0x5407('0x13')](_0x21e86a,_0x5407('0xe2'),(_0x48348a,{threadId:_0x33056c})=>{const _0x2cbacc=this[_0x5407('0x1')][_0x5407('0x137')](_0x33056c);_0x2cbacc&&_0x2cbacc[_0x5407('0x118')]&&!_0x2cbacc[_0x5407('0x118')][_0x5407('0x25')]&&this[_0x5407('0x28')](_0x33056c,{'hasComments':!0x1});},{'priority':_0x5407('0xa3')});}set[_0x5407('0xf2')](_0x5c3bde){if(this[_0x5407('0xa8')])throw new _0x468b33(_0x5407('0xc4'),this);this[_0x5407('0xa8')]=_0x5c3bde;}get[_0x5407('0xf2')](){return this['_adapter'];}[_0x5407('0xf')]({skipNotAttached:_0x1c655c=!0x1,toJSON:_0x23c4bd=!0x1}={}){const _0x5ed8de=[];for(const _0x11fb7f of this[_0x5407('0x1')][_0x5407('0x27')]())_0x1c655c&&!_0x11fb7f['isInContent']||_0x5ed8de['push'](_0x11fb7f);return _0x23c4bd?_0x5ed8de['map'](_0x4afa25=>_0x4afa25[_0x5407('0x86')]()):_0x5ed8de;}[_0x5407('0x23')](_0x529fad){const _0x53315a=this[_0x5407('0x1')][_0x5407('0x137')](_0x529fad);if(!_0x53315a)throw new _0x468b33(_0x5407('0x2'),this);return _0x53315a;}['hasSuggestion'](_0x4106e9){return this['_suggestions']['has'](_0x4106e9);}['addSuggestionData'](_0x4e3b2f){const {authorId:_0x341c45,id:_0xe4d5a5,attributes:_0x113736}=_0x4e3b2f,[_0x4d0aed,_0x5a5f6c]=_0x4e3b2f['type'][_0x5407('0x89')](':'),_0x31ff49=this[_0x5407('0x1')][_0x5407('0x137')](_0xe4d5a5)||this[_0x5407('0xd6')](_0x4d0aed,_0x5a5f6c,_0xe4d5a5,_0x341c45,_0x113736);if(this[_0x5407('0x8a')](_0x31ff49),this['_checkSuggestionCorrectness'](_0x31ff49,_0x4d0aed,_0x5a5f6c||null,_0x341c45),_0x31ff49[_0x5407('0xc0')]=_0x4e3b2f[_0x5407('0xc0')],_0x113736&&_0x113736[_0x5407('0x4f')]){const _0x367a0b=_0x113736[_0x5407('0x4f')],_0x1bbfdc=this['_getExternalAuthor'](_0x367a0b['authorName']);_0x31ff49[_0x5407('0x102')]=_0x367a0b[_0x5407('0xc0')],_0x31ff49[_0x5407('0x121')]=_0x1bbfdc,_0x31ff49[_0x5407('0x8e')]=!0x0;}else _0x31ff49['authoredAt']=_0x4e3b2f['createdAt'];switch(_0x4e3b2f[_0x5407('0x5d')]&&(_0x31ff49[_0x5407('0x5d')]=_0x4e3b2f[_0x5407('0x5d')]),_0x4e3b2f[_0x5407('0xd0')]&&(_0x31ff49[_0x5407('0xd0')]=_0x4e3b2f[_0x5407('0xd0')]),this['_adapter']&&this[_0x5407('0xa8')][_0x5407('0x12e')]||(_0x31ff49[_0x5407('0xc3')]=!0x0),this[_0x5407('0x119')][_0x5407('0x137')](_0x31ff49)){case _0x5407('0x9'):this[_0x5407('0x119')][_0x5407('0x48')](_0x31ff49,_0x5407('0x5b'));break;case'markerReady':_0x31ff49['isInContent']?(this[_0x5407('0x119')]['set'](_0x31ff49,_0x5407('0x2b')),this[_0x5407('0x4')](_0x5407('0x5c'),_0x31ff49)):this[_0x5407('0x119')][_0x5407('0x48')](_0x31ff49,_0x5407('0x129'));}return _0x31ff49;}[_0x5407('0x34')](_0x587827){this[_0x5407('0x10c')](()=>{this['editor'][_0x5407('0x130')][_0x5407('0x11f')](()=>{for(const _0x4f5f48 of _0x587827['getAllAdjacentSuggestions']())_0x4f5f48['accept']();});});}[_0x5407('0x2e')](_0x99f2f2){this['forceDefaultExecution'](()=>{this[_0x5407('0xb2')]['model'][_0x5407('0x11f')](()=>{for(const _0x425af3 of _0x99f2f2[_0x5407('0x6b')]())_0x425af3[_0x5407('0x9d')]();});});}['enableCommand'](_0x46135e,_0x29f397){const _0x5e18e1=this[_0x5407('0xb2')]['commands'][_0x5407('0x137')](_0x46135e);if(!_0x5e18e1)throw new _0x468b33(_0x5407('0xbb'),this,{'commandName':_0x46135e});this['_enabledCommands']['add'](_0x5e18e1),_0x29f397&&_0x5e18e1['on'](_0x5407('0x97'),(_0x4d14e0,_0x245612)=>{this[_0x5407('0xa7')]['value']&&(this[_0x5407('0xf6')]||_0x245612['length']>0x0&&_0x245612[_0x245612['length']-0x1]&&_0x245612[_0x245612[_0x5407('0x25')]-0x1][_0x5407('0x10c')]||(_0x29f397((..._0x1296e3)=>_0x5e18e1[_0x5407('0x97')](..._0x1296e3,{'forceDefaultExecution':!0x0}),..._0x245612),_0x4d14e0[_0x5407('0xb')]()));},{'priority':_0x5407('0x60')});}[_0x5407('0x10c')](_0x47d674){let _0x1b80e5,_0x1de276;const _0x28d19a=this[_0x5407('0xf6')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b80e5=_0x47d674();}catch(_0x57a085){_0x1de276=_0x57a085;}return _0x28d19a||(this[_0x5407('0xf6')]=!0x1),_0x1de276&&_0x468b33[_0x5407('0xc7')](_0x1de276,this),_0x1b80e5;}[_0x5407('0xc9')](_0x56217f,_0x36c9d9=null,_0x3d7efd={}){if(_0x56217f[_0x5407('0xed')])return null;const _0x4c5eba=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const {suggestion:_0x1a9252,meta:_0x374f30}of this['_findSuggestions'](_0x56217f,_0x5407('0x99')))if(_0x374f30[_0x5407('0xbd')]){if(!_0x374f30[_0x5407('0x103')]){if(!this[_0x5407('0xff')]&&_0x374f30[_0x5407('0x10e')])continue;return _0x1a9252;}if(_0x36c9d9==_0x1a9252[_0x5407('0x38')]){const _0x5efcde=_0x1a9252[_0x5407('0x19')]();return _0x5efcde[_0x5407('0x55')][_0x5407('0xfa')](_0x56217f['end'])?this[_0x5407('0x116')](_0x1a9252,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x56217f['start'],_0x5efcde['end'])):this[_0x5407('0x116')](_0x1a9252,this[_0x5407('0xb9')]['createRange'](_0x5efcde[_0x5407('0x55')],_0x56217f[_0x5407('0x3a')])),_0x1a9252;}}const _0x5cd2dc=_0x3f2a4c(),_0x14fa5d=_0x4c5eba['id'],_0x2ed401=_0x36c9d9?'insertion:'+_0x36c9d9:_0x5407('0x99'),_0x1a7120=this[_0x5407('0x8')]({'id':_0x5cd2dc,'type':_0x2ed401,'createdAt':new Date(),'authorId':_0x14fa5d,'attributes':_0x3d7efd});return this[_0x5407('0x73')](_0x2ed401,_0x5cd2dc,_0x14fa5d,_0x56217f),_0x1a7120;}[_0x5407('0x96')](_0x4da630,_0x3a6f1c=_0x5407('0x112'),_0x2848d1={}){const _0x1ca94b=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x3b1a9c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a6f1c,_0x5407('0xc2'));for(const _0x5e955e of this[_0x5407('0xf')]())if(_0x5e955e[_0x5407('0x121')]['id']==_0x1ca94b['id']&&'insertion'==_0x5e955e['type']&&_0x5e955e[_0x5407('0x38')]==_0x3a6f1c&&(_0x3b1a9c(_0x5e955e[_0x5407('0x136')](),_0x4da630)||_0x3b1a9c(_0x4da630,_0x5e955e[_0x5407('0x136')]()))){for(const _0x18126 of _0x4da630)_0x5e955e[_0x5407('0xfe')](_0x18126);return _0x5e955e;}if(this[_0x5407('0xff')])for(const _0x353c71 of _0x4da630)for(const {suggestion:_0x6b278c,meta:_0x81f3ae}of this[_0x5407('0x92')](_0x353c71,_0x5407('0x99'))){if(!_0x81f3ae['isOwn'])continue;let _0x1f01c4=!0x0;for(const _0x50b074 of _0x6b278c['getRanges']())for(const _0x2dfa68 of _0x4da630)if(!_0x50b074['containsRange'](_0x2dfa68)){_0x1f01c4=!0x1;break;}if(_0x1f01c4)return _0x6b278c;}const _0x45b6bd=_0x3f2a4c(),_0x51f4f5=_0x1ca94b['id'],_0x3af5e5=_0x5407('0x47')+_0x3a6f1c,_0x29fe41=this['_setSuggestionData']({'id':_0x45b6bd,'type':_0x3af5e5,'createdAt':new Date(),'authorId':_0x51f4f5,'attributes':_0x2848d1});for(const _0x2a08cc of _0x4da630)this[_0x5407('0x73')](_0x3af5e5,_0x45b6bd,_0x51f4f5,_0x2a08cc,_0x37741b['getMultiRangeId']());return _0x29fe41;}['markInlineFormat'](_0x4f0f31,_0x1bddd8,_0x176f5e=null,_0x5c0e05={}){if(_0x176f5e=_0x176f5e||Mt(_0x1bddd8),_0x4f0f31[_0x5407('0xed')])return null;if(_0x5407('0x7c')===this[_0x5407('0x75')]){const _0x36baf9=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x2a'),_0x176f5e,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x36baf9([_0x4f0f31],_0x1bddd8,_0x5c0e05)),null;}const _0x1afe22=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x2e5f37=[];if(_0x5407('0xd3')!==this['_trackFormatChanges'])for(const {suggestion:_0xbf9ef6,meta:_0x3b6997}of this[_0x5407('0x92')](_0x4f0f31,_0x5407('0x99')))_0x3b6997[_0x5407('0xbd')]&&!_0x3b6997[_0x5407('0x71')]&&_0x2e5f37[_0x5407('0x61')](..._0xbf9ef6['getRanges']());const _0x2bbe3d=function(_0x1139ed,_0x370b12){const _0x52f65f=[];for(const _0x59685d of _0x370b12){const _0x41e9ff=_0x1139ed[_0x5407('0x10f')](_0x59685d);_0x41e9ff&&_0x52f65f['push'](_0x41e9ff);}return _0x52f65f;}(_0x4f0f31,_0x2e5f37),_0x1a52f6=function(_0x581776,_0x4ad772){const _0x1bc89c=[_0x581776];for(const _0x10f8cd of _0x4ad772){let _0xd2f4=0x0;for(;_0xd2f4<_0x1bc89c[_0x5407('0x25')];){const _0x2f3f06=_0x1bc89c[_0xd2f4][_0x5407('0x66')](_0x10f8cd);_0x1bc89c[_0x5407('0xe5')](_0xd2f4,0x1,..._0x2f3f06),_0xd2f4+=_0x2f3f06['length'];}}return _0x1bc89c;}(_0x4f0f31,_0x2e5f37);_0x2bbe3d[_0x5407('0x25')]&&this[_0x5407('0xb9')][_0x5407('0x11f')](()=>{for(const _0x3714fb of _0x2bbe3d){const _0x595c4a=this[_0x5407('0xaf')]['getSuggestionCallback'](_0x5407('0x2a'),_0x176f5e,'accept');this[_0x5407('0x10c')](()=>_0x595c4a([_0x3714fb],_0x1bddd8,_0x5c0e05));}});for(const _0x1884f1 of _0x1a52f6){let _0x1eacd1=null,_0x103ea1=_0x1884f1[_0x5407('0x55')],_0x1b4778=_0x1884f1[_0x5407('0x3a')];for(const {suggestion:_0x23d292,meta:_0x1419bc}of this[_0x5407('0x92')](_0x1884f1,_0x5407('0x2a'))){if(!_0x1419bc[_0x5407('0xbd')])continue;if(_0x23d292[_0x5407('0x38')]!=_0x176f5e)continue;const _0x3a6fff=_0x23d292[_0x5407('0x19')]();if(_0x3a6fff[_0x5407('0xf4')](_0x1884f1,!0x0))return null;_0x103ea1=_0x103ea1[_0x5407('0x10d')](_0x3a6fff['start'])?_0x103ea1:_0x3a6fff[_0x5407('0x55')],_0x1b4778=_0x1b4778[_0x5407('0x11e')](_0x3a6fff[_0x5407('0x3a')])?_0x1b4778:_0x3a6fff[_0x5407('0x3a')],_0x1eacd1?_0x3a6fff[_0x5407('0x55')][_0x5407('0x10d')](_0x1eacd1[_0x5407('0x19')]()[_0x5407('0x55')])?(_0x1eacd1['removeMarkers'](),_0x1eacd1=_0x23d292):_0x23d292[_0x5407('0x65')]():_0x1eacd1=_0x23d292;}const _0x13162e=this['_model'][_0x5407('0xd1')](_0x103ea1,_0x1b4778);if(_0x1eacd1)this[_0x5407('0x116')](_0x1eacd1,_0x13162e);else{const _0xb0c371=_0x3f2a4c(),_0x3c0d23=_0x1afe22['id'];this[_0x5407('0x8')]({'id':_0xb0c371,'type':_0x5407('0x9c')+_0x176f5e,'data':_0x1bddd8,'createdAt':new Date(),'authorId':_0x3c0d23,'attributes':_0x5c0e05}),this[_0x5407('0x73')](_0x5407('0x9c')+_0x176f5e,_0xb0c371,_0x3c0d23,_0x13162e);}}return null;}[_0x5407('0x42')](_0x1ab1ef,_0x22e2e4,_0x1ae6b9=[],_0x3fb056=null,_0xe93115={}){_0x22e2e4[_0x5407('0x68')]||(_0x22e2e4[_0x5407('0x68')]=_0x22e2e4[_0x5407('0x18')]),_0x22e2e4[_0x5407('0x41')]=_0x1ab1ef['is'](_0x5407('0x12d')),_0x3fb056=_0x3fb056||Mt(_0x22e2e4);const _0xec9abd=_0x1ae6b9[_0x5407('0x15')](_0x8e35f0=>Nt(_0x8e35f0,this[_0x5407('0xb9')])),_0x317a68=_0x1ab1ef['is']('range')?_0x1ab1ef:Nt(_0x1ab1ef,this[_0x5407('0xb9')]);if(_0x5407('0x7c')===this[_0x5407('0x75')]){const _0x54e05a=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x3fb056,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x54e05a([_0x317a68],_0x22e2e4,_0xe93115)),null;}_0xec9abd[_0x5407('0x61')](_0x317a68);let _0x34cac4=!0x0;for(const _0x2ae9c6 of _0xec9abd)if(!this['_rangeIsInLocalUserInsertion'](_0x2ae9c6)){_0x34cac4=!0x1;break;}if(_0x34cac4&&_0x5407('0xd3')!==this[_0x5407('0x75')]){const _0x22e931=this[_0x5407('0xaf')]['getSuggestionCallback']('formatBlock',_0x3fb056,'accept');return this[_0x5407('0x10c')](()=>_0x22e931([_0x317a68],_0x22e2e4,_0xe93115)),null;}let _0x550139=null,_0xd11d82=_0x317a68[_0x5407('0x55')],_0x36bd12=_0x317a68['end'];for(const {suggestion:_0x5b07f5,meta:_0x4b386f}of this['_findSuggestions'](_0x317a68,'formatBlock')){if(!_0x4b386f[_0x5407('0xbd')]||_0x4b386f[_0x5407('0x103')]||_0x4b386f[_0x5407('0x10e')]||_0x4b386f['isInsideObject'])continue;if(_0x5b07f5['data'][_0x5407('0x68')]!=_0x22e2e4[_0x5407('0x68')])continue;const _0x47d635=_0x5b07f5[_0x5407('0x19')]();if(_0x5b07f5[_0x5407('0x38')]==_0x3fb056){if(_0x47d635[_0x5407('0xf4')](_0x317a68,!0x0))return null;_0xd11d82=_0xd11d82[_0x5407('0x10d')](_0x47d635[_0x5407('0x55')])?_0xd11d82:_0x47d635['start'],_0x36bd12=_0x36bd12[_0x5407('0x11e')](_0x47d635[_0x5407('0x3a')])?_0x36bd12:_0x47d635['end'],_0x550139?_0x47d635[_0x5407('0x55')][_0x5407('0x10d')](_0x550139['getFirstRange']()[_0x5407('0x55')])?(_0x550139[_0x5407('0x65')](),_0x550139=_0x5b07f5):_0x5b07f5[_0x5407('0x65')]():_0x550139=_0x5b07f5;}else{const _0x25d4d2=_0x317a68[_0x5407('0x10f')](_0x47d635);this['_cutOutSuggestionMarker'](_0x5b07f5,_0x25d4d2);}}const _0x34dcc7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')]('Users')['me'],_0x47f4c1=_0x3f2a4c(),_0x5ee070=_0x34dcc7['id'];if(_0x550139)return this[_0x5407('0x116')](_0x550139,this['_model'][_0x5407('0xd1')](_0xd11d82,_0x36bd12)),_0x550139;{const _0x3e29e=this[_0x5407('0x8')]({'id':_0x47f4c1,'type':_0x5407('0x1d')+_0x3fb056,'data':_0x22e2e4,'createdAt':new Date(),'authorId':_0x5ee070,'attributes':_0xe93115});return this[_0x5407('0x73')]('formatBlock:'+_0x3fb056,_0x47f4c1,_0x5ee070,this[_0x5407('0xb9')][_0x5407('0xd1')](_0xd11d82,_0x36bd12)),_0x3e29e;}}[_0x5407('0x135')](_0x23e8cb,_0x5a7010,_0x4ffcd4=[],_0x492a66=null,_0x36a9a2={}){_0x5a7010[_0x5407('0x68')]||(_0x5a7010[_0x5407('0x68')]=_0x5a7010[_0x5407('0x18')]);const _0x17bdf4=_0x23e8cb[0x0];_0x5a7010[_0x5407('0x41')]=_0x17bdf4['is'](_0x5407('0x12d')),_0x492a66=_0x492a66||Mt(_0x5a7010);const _0x3572d6=_0x4ffcd4[_0x5407('0x15')](_0x10855f=>Nt(_0x10855f,this['_model'])),_0xdfe8bc=_0x17bdf4['is'](_0x5407('0x12d'))?_0x23e8cb:_0x23e8cb['map'](_0x1bb88b=>Nt(_0x1bb88b,this['_model']));if('never'===this[_0x5407('0x75')]){const _0x76eeeb=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x492a66,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x76eeeb(_0xdfe8bc,_0x5a7010,_0x36a9a2)),null;}_0x3572d6[_0x5407('0x61')](..._0xdfe8bc);let _0x19a8d3=!0x0;for(const _0x21e3e1 of _0x3572d6)if(!this[_0x5407('0xd8')](_0x21e3e1)){_0x19a8d3=!0x1;break;}if(_0x19a8d3&&_0x5407('0xd3')!==this[_0x5407('0x75')]){const _0x56139b=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x492a66,'accept');return this[_0x5407('0x10c')](()=>_0x56139b(_0xdfe8bc,_0x5a7010,_0x36a9a2)),null;}const _0x55c17b=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const _0xc9eefa of this[_0x5407('0xf')]()){if(_0xc9eefa[_0x5407('0x121')]['id']!=_0x55c17b['id'])continue;if('formatBlock'!=_0xc9eefa[_0x5407('0x33')]||_0xc9eefa[_0x5407('0x5d')][_0x5407('0x68')]!=_0x5a7010['formatGroupId'])continue;const _0x3b0943=_0xc9eefa[_0x5407('0x38')]==_0x492a66;for(let _0x29139b=0x0;_0x29139b<_0xdfe8bc[_0x5407('0x25')];_0x29139b++){const _0x53dc23=_0xdfe8bc[_0x29139b];for(const _0x20f1f8 of _0xc9eefa['getMarkers']()){const _0x45f008=_0x20f1f8[_0x5407('0xdf')]();if(_0x53dc23[_0x5407('0xfa')](_0x45f008)){_0x3b0943?(_0xdfe8bc[_0x5407('0xe5')](_0x29139b,0x1),_0x29139b--):_0xc9eefa['removeMarker'](_0x20f1f8[_0x5407('0xac')]);break;}}}}if(0x0==_0xdfe8bc[_0x5407('0x25')])return null;const _0xdbcb3b=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0xe4'),_0x492a66,_0x5407('0xc2'));for(const _0x2fce30 of this['getSuggestions']())if(_0x2fce30[_0x5407('0x121')]['id']==_0x55c17b['id']&&_0x5407('0xe4')==_0x2fce30[_0x5407('0x33')]&&_0x2fce30['data'][_0x5407('0x68')]==_0x5a7010[_0x5407('0x68')]&&_0x2fce30[_0x5407('0x38')]==_0x492a66&&(_0xdbcb3b(_0x2fce30[_0x5407('0x136')](),_0xdfe8bc)||_0xdbcb3b(_0xdfe8bc,_0x2fce30[_0x5407('0x136')]()))){for(const _0x27d7fa of _0xdfe8bc)_0x2fce30[_0x5407('0xfe')](_0x27d7fa);return _0x2fce30;}const _0x3805dd=_0x3f2a4c(),_0x144660=_0x55c17b['id'],_0x45e75b='formatBlock:'+_0x492a66,_0x20b75f=this[_0x5407('0x8')]({'id':_0x3805dd,'type':_0x45e75b,'data':_0x5a7010,'createdAt':new Date(),'authorId':_0x144660,'attributes':_0x36a9a2});for(const _0x270f9e of _0xdfe8bc)this[_0x5407('0x73')](_0x45e75b,_0x3805dd,_0x144660,_0x270f9e,_0x37741b['getMultiRangeId']());return _0x20b75f;}[_0x5407('0xa1')](_0x5f5c34,_0x3fef5f=null,_0x93c9f={}){if(_0x5f5c34[_0x5407('0xed')])return null;const _0x52155d=this['editor'][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x37e479=new _0x376084(_0x5f5c34[_0x5407('0x55')],_0x5f5c34['end']);for(const {suggestion:_0x451fc4,meta:_0x308765}of this[_0x5407('0x92')](_0x37e479,_0x5407('0x99')))if(_0x308765[_0x5407('0xbd')]&&!_0x308765[_0x5407('0x103')]){if(_0x451fc4['isMultiRange']){const _0x18617a=_0x451fc4[_0x5407('0x136')]()[_0x5407('0x9a')](_0x531a61=>'$graveyard'!=_0x531a61['root'][_0x5407('0x10a')]);_0x18617a['every'](_0x5a1f12=>_0x37e479[_0x5407('0xf4')](_0x5a1f12,!0x0))&&_0x451fc4[_0x5407('0x9d')]();if(_0x18617a[_0x5407('0x138')](_0x101dad=>_0x101dad['containsRange'](_0x37e479,!0x0))){const _0x5b389a=this[_0x5407('0xaf')][_0x5407('0x37')]('deletion',_0x3fef5f,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x5b389a([_0x37e479],null,_0x93c9f)),null;}}else{const _0x10236b=_0x37e479['getIntersection'](_0x451fc4['getFirstRange']());null!==_0x10236b&&_0x451fc4[_0x5407('0x9e')]([_0x10236b],null,_0x93c9f);}}if(_0x37e479[_0x5407('0x70')](),_0x37e479[_0x5407('0xed')]||'$graveyard'==_0x37e479['root'][_0x5407('0x10a')])return null;let _0x45e1c1=null,_0x37c831=_0x37e479[_0x5407('0x55')],_0x8b288a=_0x37e479[_0x5407('0x3a')];for(const {suggestion:_0x534a56,meta:_0x4f13bb}of this[_0x5407('0x92')](_0x37e479,_0x5407('0x4d')))if(_0x4f13bb[_0x5407('0xbd')]){if(_0x534a56['isMultiRange']&&this['_mergeNestedSuggestions']){let _0x46a981=!0x0;for(const _0x4e7393 of _0x534a56['getRanges']()){if(_0x4e7393[_0x5407('0xf4')](_0x37e479,!0x0))return _0x534a56;_0x37e479[_0x5407('0xf4')](_0x4e7393)||(_0x46a981=!0x1);}_0x46a981&&_0x534a56['discard']();}else{const _0x3f40a3=_0x534a56[_0x5407('0x19')]();if(_0x3f40a3['containsRange'](_0x37e479,!0x0)){if(!this[_0x5407('0xff')]&&_0x4f13bb[_0x5407('0x10e')])continue;return _0x534a56;}_0x37c831=_0x37c831[_0x5407('0x10d')](_0x3f40a3[_0x5407('0x55')])?_0x37c831:_0x3f40a3[_0x5407('0x55')],_0x8b288a=_0x8b288a['isAfter'](_0x3f40a3[_0x5407('0x3a')])?_0x8b288a:_0x3f40a3['end'],_0x45e1c1?_0x3f40a3[_0x5407('0x55')][_0x5407('0x10d')](_0x45e1c1[_0x5407('0x19')]()[_0x5407('0x55')])?(_0x45e1c1[_0x5407('0x65')](),_0x45e1c1=_0x534a56):_0x534a56[_0x5407('0x65')]():_0x45e1c1=_0x534a56;}}if(_0x45e1c1)return this[_0x5407('0x116')](_0x45e1c1,this[_0x5407('0xb9')]['createRange'](_0x37c831,_0x8b288a)),_0x45e1c1;{const _0x2a3e36=_0x3f2a4c(),_0x49262a=this[_0x5407('0xb9')]['createRange'](_0x37c831,_0x8b288a),_0xb151ad=_0x52155d['id'],_0x4e2a14=_0x3fef5f?_0x5407('0x83')+_0x3fef5f:_0x5407('0x4d'),_0x30959c=this[_0x5407('0x8')]({'id':_0x2a3e36,'type':_0x4e2a14,'createdAt':new Date(),'authorId':_0xb151ad,'attributes':_0x93c9f});return this[_0x5407('0x73')](_0x4e2a14,_0x2a3e36,_0xb151ad,_0x49262a),_0x30959c;}}[_0x5407('0xdb')](_0x35c99e,_0x4b8f90=_0x5407('0x112'),_0x1d6542={}){const _0x30a66c=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x5c11b9=_0x35c99e[_0x5407('0x15')](_0x96f060=>new _0x376084(_0x96f060[_0x5407('0x55')],_0x96f060[_0x5407('0x3a')])),_0x140702=new Set();for(const _0x48ae50 of _0x5c11b9)for(const {suggestion:_0x44c7e6,meta:_0x4d13cd}of this[_0x5407('0x92')](_0x48ae50,_0x5407('0x99')))_0x4d13cd[_0x5407('0xbd')]&&!_0x4d13cd[_0x5407('0x103')]&&_0x140702[_0x5407('0x5f')](_0x44c7e6);for(const _0x217add of _0x140702)if(_0x217add['isMultiRange']){const _0x35cc04=_0x217add[_0x5407('0x136')]();(!_0x217add[_0x5407('0xd0')]||!_0x217add[_0x5407('0xd0')]['skipNestingCheck'])&&(_0x35cc04[_0x5407('0x88')](_0x1e57f5=>_0x5c11b9[_0x5407('0x138')](_0x134f48=>_0x134f48[_0x5407('0xf4')](_0x1e57f5,!0x0)))&&_0x217add[_0x5407('0x9d')]());if(_0x5c11b9[_0x5407('0x88')](_0x437a74=>_0x35cc04[_0x5407('0x138')](_0x3a5844=>_0x3a5844[_0x5407('0xf4')](_0x437a74,!0x0)))){const _0x3d2c5e=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x3d2c5e(_0x35c99e,null,_0x1d6542)),null;}}else{const _0xb00579=_0x217add[_0x5407('0x19')]();_0x5c11b9[_0x5407('0x138')](_0x1ba4be=>_0x1ba4be['containsRange'](_0xb00579,!0x0))&&_0x217add[_0x5407('0x9d')]();if(_0x5c11b9[_0x5407('0x88')](_0x3b167c=>_0xb00579[_0x5407('0xf4')](_0x3b167c,!0x0))){const _0x3393cf=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x3393cf(_0x5c11b9,null,_0x1d6542)),null;}}const _0x59fc98=this['_suggestionFactory'][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,'join');let _0x1731dd=null;for(const _0x29fe67 of this[_0x5407('0xf')]())if(_0x29fe67['author']['id']==_0x30a66c['id']&&_0x29fe67[_0x5407('0x44')]&&_0x5407('0x4d')==_0x29fe67[_0x5407('0x33')]&&_0x29fe67['subType']==_0x4b8f90&&(_0x59fc98(_0x29fe67[_0x5407('0x136')](),_0x5c11b9)||_0x59fc98(_0x5c11b9,_0x29fe67[_0x5407('0x136')]()))){if(_0x1731dd){if(_0x29fe67[_0x5407('0x118')]&&_0x29fe67[_0x5407('0x118')]['length'])continue;for(const _0x2a306b of _0x29fe67[_0x5407('0x136')]())_0x1731dd['isIntersectingWithRange'](_0x2a306b)||_0x1731dd['addRange'](_0x2a306b);_0x29fe67[_0x5407('0x65')]();}else{_0x1731dd=_0x29fe67;for(const _0x1fb95e of _0x5c11b9)_0x29fe67[_0x5407('0xf5')](_0x1fb95e)||_0x29fe67[_0x5407('0xfe')](_0x1fb95e);}}if(_0x1731dd)return _0x1731dd;_0x140702[_0x5407('0xde')]();for(const _0x37b712 of _0x5c11b9)for(const {suggestion:_0x3c11dc,meta:_0x204062}of this['_findSuggestions'](_0x37b712,'deletion'))_0x204062[_0x5407('0xbd')]&&_0x140702[_0x5407('0x5f')](_0x3c11dc);for(const _0x171971 of _0x140702){const _0x1e563e=_0x171971[_0x5407('0x136')]();if(!_0x1d6542||!_0x1d6542[_0x5407('0x8b')]){if(_0x5c11b9[_0x5407('0x88')](_0x1bde42=>_0x1e563e[_0x5407('0x138')](_0x4f916e=>_0x4f916e[_0x5407('0xf4')](_0x1bde42,!0x0))))return _0x171971;}(!_0x171971['attributes']||!_0x171971[_0x5407('0xd0')][_0x5407('0x8b')])&&(_0x1e563e[_0x5407('0x88')](_0x3f34d7=>_0x5c11b9[_0x5407('0x138')](_0x190cc7=>_0x190cc7['containsRange'](_0x3f34d7,!0x0)))&&_0x171971[_0x5407('0x9d')]());}const _0x9e643=_0x3f2a4c(),_0x56cc48=_0x30a66c['id'],_0x4a5cba=_0x5407('0x83')+_0x4b8f90,_0x2e9401=this[_0x5407('0x8')]({'id':_0x9e643,'type':_0x4a5cba,'createdAt':new Date(),'authorId':_0x56cc48,'attributes':_0x1d6542});for(const _0x2c189c of _0x5c11b9)_0x2c189c[_0x5407('0x70')](),_0x2c189c['isCollapsed']||_0x5407('0xa9')==_0x2c189c[_0x5407('0x4b')][_0x5407('0x10a')]||this['_addSuggestionMarker'](_0x4a5cba,_0x9e643,_0x56cc48,_0x2c189c,_0x37741b['getMultiRangeId']());return _0x2e9401;}[_0x5407('0x116')](_0x2eb010,_0x5338f8){const _0x5d1b6d=_0x2eb010['getFirstMarker']();this[_0x5407('0xb9')]['change'](_0x115dbc=>{_0x115dbc['updateMarker'](_0x5d1b6d,{'range':_0x5338f8});});}['_addThreadToSuggestion'](_0x5966e9){const _0x286f9d=_0x5966e9['id'],_0x5854b1=this[_0x5407('0xb2')]['config'][_0x5407('0x137')](_0x5407('0x36'));this[_0x5407('0xdd')][_0x5407('0x104')](_0x286f9d)||this[_0x5407('0xdd')]['addCommentThread']({'channelId':_0x5854b1,'threadId':_0x286f9d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x230424=this['_commentsRepository'][_0x5407('0xe7')](_0x286f9d);_0x230424['unbind'](_0x5407('0x2c')),_0x230424['isRemovable']=!0x1,_0x5966e9['commentThread']=_0x230424;}['_checkSuggestionCorrectness'](_0x49333c,_0x58ff25,_0x148050,_0x3e5e12){if(_0x49333c[_0x5407('0x33')]!=_0x58ff25||_0x49333c[_0x5407('0x38')]!=_0x148050||_0x49333c[_0x5407('0xe')]['id']!=_0x3e5e12)throw this[_0x5407('0xb2')]['enableReadOnlyMode'](_0x5407('0xcb')),new _0x468b33(_0x5407('0xcb'),this);}[_0x5407('0x12a')](_0x402bb7,_0x35cf16){const _0x639e5e=_0x402bb7[_0x5407('0x19')]();if(_0x35cf16[_0x5407('0xfa')](_0x639e5e))_0x402bb7[_0x5407('0x65')]();else{if(_0x639e5e['containsRange'](_0x35cf16)){const _0x58d401=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16['start']['nodeBefore'],_0x5407('0x3a'));this[_0x5407('0x116')](_0x402bb7,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x639e5e['start'],_0x58d401));const _0x3c4c34=_0x3f2a4c(),_0x112bdc=_0x402bb7['creator']['id'],_0x5b8524=_0x402bb7['type']+':'+_0x402bb7[_0x5407('0x38')];this['_setSuggestionData']({'id':_0x3c4c34,'type':_0x5b8524,'createdAt':new Date(),'authorId':_0x112bdc,'data':_0x402bb7['data'],'attributes':_0x402bb7[_0x5407('0xd0')]});const _0x49006e=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16['end'][_0x5407('0x8d')],'after'),_0x19b2db=this[_0x5407('0xb9')][_0x5407('0xd1')](_0x49006e,_0x639e5e[_0x5407('0x3a')]);this[_0x5407('0x73')](_0x5b8524,_0x3c4c34,_0x112bdc,_0x19b2db);}else{if(_0x639e5e['containsPosition'](_0x35cf16['start'])){const _0x59b3b9=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16[_0x5407('0x55')][_0x5407('0xe9')],_0x5407('0x3a'));this[_0x5407('0x116')](_0x402bb7,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x639e5e[_0x5407('0x55')],_0x59b3b9));}else{const _0x52a0c5=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16[_0x5407('0x3a')]['parent'],'after');this[_0x5407('0x116')](_0x402bb7,this['_model'][_0x5407('0xd1')](_0x52a0c5,_0x639e5e[_0x5407('0x3a')]));}}}}[_0x5407('0xd8')](_0x382473){for(const {suggestion:_0x466ab8,meta:_0x15e7bb}of this[_0x5407('0x92')](_0x382473,_0x5407('0x99'))){if(!_0x15e7bb[_0x5407('0xbd')])continue;const _0x4dff35=_0x466ab8['getRanges']();for(const _0x5f2f58 of _0x4dff35)if(!_0x382473[_0x5407('0x66')](_0x5f2f58)[_0x5407('0x25')])return!0x0;}return!0x1;}[_0x5407('0xd9')](_0x133457){const _0x4f2365=this[_0x5407('0xb2')]['plugins'][_0x5407('0x137')]('Users')[_0x5407('0x59')](_0x133457);if(!_0x4f2365)throw new _0x468b33('track-changes-user-not-found',this);return _0x4f2365;}[_0x5407('0x12')](_0x43b990){const _0x2882a7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc')),_0x9a4776=_0x3bf0e7('external:'+_0x43b990),_0xccea98=_0x2882a7[_0x5407('0x59')](_0x9a4776);return _0xccea98||_0x2882a7['addUser']({'id':_0x9a4776,'name':_0x43b990});}[_0x5407('0xd6')](_0x37235f,_0x13fd9f,_0x41f71b,_0x5d2b58,_0xb2669b){const _0x26e1a4=this[_0x5407('0xd9')](_0x5d2b58),_0x3a78ee=this[_0x5407('0xaf')][_0x5407('0x24')](_0x37235f,_0x13fd9f,_0x41f71b,_0x26e1a4,_0xb2669b,_0x3c3aca=>this[_0x5407('0x28')](_0x41f71b,{'attributes':_0x3c3aca}));return this[_0x5407('0x13')](_0x3a78ee,_0x5407('0xbf'),()=>{this[_0x5407('0x28')](_0x41f71b,{'state':'accepted'});},{'priority':_0x5407('0x60')}),this[_0x5407('0x13')](_0x3a78ee,_0x5407('0x9d'),()=>{this['_updateSuggestionData'](_0x41f71b,{'state':_0x5407('0x11b')});},{'priority':_0x5407('0x60')}),this['_suggestions']['set'](_0x41f71b,_0x3a78ee),this[_0x5407('0x119')][_0x5407('0x48')](_0x3a78ee,'notReady'),_0x3a78ee;}['_splitMarkerName'](_0x7be8e4){const _0x26592b=_0x7be8e4[_0x5407('0x89')](':');return{'group':_0x26592b[0x0],'type':_0x26592b[0x1],'subType':_0x26592b['length']>=0x5?_0x26592b[0x2]:null,'id':_0x26592b[_0x5407('0x25')]<0x5?_0x26592b[0x2]:_0x26592b[0x3],'authorId':_0x26592b[_0x5407('0x25')]<0x5?_0x26592b[0x3]:_0x26592b[0x4],'markerCount':0x6==_0x26592b[_0x5407('0x25')]?_0x26592b[0x5]:null};}[_0x5407('0x74')](_0x470716,_0x966252,_0x2dbef8){const _0x13d95c=_0x470716[_0x5407('0x19')](),_0x5ab35f=_0x13d95c[_0x5407('0x55')],_0x5bf575=_0x13d95c[_0x5407('0x3a')];this[_0x5407('0x116')](_0x470716,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x5ab35f,_0x966252));const _0x9635a4=_0x3f2a4c(),_0x598211=_0x470716['creator']['id'],_0xe6751a=_0x470716[_0x5407('0x33')]+(_0x470716[_0x5407('0x38')]?':'+_0x470716['subType']:'');this[_0x5407('0x8')]({'id':_0x9635a4,'type':_0xe6751a,'createdAt':new Date(),'authorId':_0x598211,'originalSuggestionId':_0x470716['id'],'attributes':_0x470716[_0x5407('0xd0')],'data':_0x470716[_0x5407('0x5d')]}),_0x5407('0xe4')==_0x470716[_0x5407('0x33')]&&(_0x2dbef8=this[_0x5407('0xb9')][_0x5407('0x11')](_0x2dbef8['parent'])),this[_0x5407('0x73')](_0xe6751a,_0x9635a4,_0x598211,this['_model'][_0x5407('0xd1')](_0x2dbef8,_0x5bf575));}[_0x5407('0x92')](_0x5bab05,_0x48449f=null){const _0x3f995e=[],_0x2ed9ab=this[_0x5407('0xb9')][_0x5407('0x7e')],_0x5e33e7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const _0x3e3f60 of this[_0x5407('0xf')]())if(_0x3e3f60[_0x5407('0x44')]&&(!_0x48449f||_0x3e3f60[_0x5407('0x33')]==_0x48449f))for(const _0x1870b9 of _0x3e3f60[_0x5407('0x136')]()){const _0x13f98b=_0x5bab05[_0x5407('0x55')][_0x5407('0xfa')](_0x1870b9[_0x5407('0x3a')])||_0x5bab05[_0x5407('0x3a')][_0x5407('0xfa')](_0x1870b9[_0x5407('0x55')]);if(_0x13f98b||_0x5bab05[_0x5407('0x10f')](_0x1870b9)){const _0x478350=_0x5bab05[_0x5407('0xf4')](_0x1870b9)&&Dt(_0x2ed9ab,_0x1870b9[_0x5407('0x55')],_0x5bab05),_0x4552c6=_0x1870b9[_0x5407('0xf4')](_0x5bab05)&&Dt(_0x2ed9ab,_0x5bab05[_0x5407('0x55')],_0x1870b9);_0x3f995e[_0x5407('0x61')]({'suggestion':_0x3e3f60,'meta':{'isOwn':_0x5e33e7==_0x3e3f60['author'],'isNextTo':_0x13f98b,'isInsideObject':_0x478350,'containsRangeInObject':_0x4552c6}});break;}}return _0x3f995e;}[_0x5407('0x73')](_0x4150b1,_0x2f0e5b,_0x4871b4,_0x4a44ed,_0x5f2040){this[_0x5407('0xb9')][_0x5407('0x11f')](_0x1508b5=>{let _0x19d5c6=_0x5407('0xa6')+_0x4150b1+':'+_0x2f0e5b+':'+_0x4871b4;_0x5f2040&&(_0x19d5c6=_0x19d5c6+':'+_0x5f2040),_0x1508b5['addMarker'](_0x19d5c6,{'range':_0x4a44ed,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5407('0x63')](_0x1871f2){const _0x49b846=_0x1871f2['previous'],_0x4c7f03=_0x1871f2['next'];_0x1871f2[_0x5407('0x87')]=null,null!=_0x49b846&&(_0x49b846[_0x5407('0x93')]=null),_0x1871f2[_0x5407('0x93')]=null,null!=_0x4c7f03&&(_0x4c7f03['previous']=null),_0x5407('0x2b')==this['_suggestionState'][_0x5407('0x137')](_0x1871f2)&&(this[_0x5407('0x119')][_0x5407('0x48')](_0x1871f2,_0x5407('0x129')),this[_0x5407('0x4')](_0x5407('0x124'),_0x1871f2,_0x49b846,_0x4c7f03));}[_0x5407('0x8')](_0x526df2){const _0x87f9a=_0x526df2['id'],_0x5121f4=this[_0x5407('0x90')](_0x526df2);if(this[_0x5407('0xa8')]&&this[_0x5407('0xa8')][_0x5407('0x12e')]){const _0x244b20=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0x134')),_0x10c803=_0x5121f4[_0x5407('0xb5')],_0x48f3f2=_0x5121f4[_0x5407('0x38')]?_0x5121f4[_0x5407('0x33')]+':'+_0x5121f4[_0x5407('0x38')]:_0x5121f4[_0x5407('0x33')],_0x435cd7=this['editor'][_0x5407('0x54')],_0x326257=_0x244b20[_0x5407('0x5f')](_0x59c829(_0x435cd7,_0x5407('0x128'))),_0x101a49={'id':_0x87f9a,'type':_0x48f3f2,'hasComments':_0x10c803,'data':_0x526df2[_0x5407('0x5d')]||null,'originalSuggestionId':_0x526df2[_0x5407('0xfc')]||null,'attributes':_0x5121f4[_0x5407('0xd0')]};this[_0x5407('0xa8')][_0x5407('0x12e')](_0x101a49)[_0x5407('0xf0')](_0x53d3a4=>{_0x5121f4[_0x5407('0xc3')]=!0x0,_0x244b20[_0x5407('0x58')](_0x326257),_0x53d3a4&&_0x53d3a4[_0x5407('0xc0')]&&(this['_suggestions']['get'](_0x87f9a)[_0x5407('0xc0')]=_0x53d3a4['createdAt']);})[_0x5407('0xf7')](_0xb88dad=>{throw _0x7a3173(_0x5407('0xa')),this[_0x5407('0xb2')][_0x5407('0x130')][_0x5407('0x30')]({'isUndoable':!0x1},()=>{_0x5121f4['discard']();}),_0x5121f4[_0x5407('0x115')](),this[_0x5407('0x1')]['delete'](_0x5121f4['id']),this[_0x5407('0x119')]['delete'](_0x5121f4),_0xb88dad;});}return _0x5121f4;}[_0x5407('0x28')](_0x1ad47d,_0xd64f35){const _0x35b7c4=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')]('PendingActions'),_0x39df03=this[_0x5407('0x23')](_0x1ad47d);if(this[_0x5407('0xa8')]&&this[_0x5407('0xa8')][_0x5407('0x62')]){if(_0x39df03[_0x5407('0xc3')]){const _0x3b56c8=_0x35b7c4[_0x5407('0x5f')](_0x59c829(this['editor']['locale'],_0x5407('0x128')));this[_0x5407('0xa8')][_0x5407('0x62')](_0x1ad47d,_0xd64f35)['then'](()=>{_0x35b7c4[_0x5407('0x58')](_0x3b56c8);});}else _0x39df03['on'](_0x5407('0x52'),()=>{this[_0x5407('0x28')](_0x1ad47d,_0xd64f35);});}}['_getSuggestionData'](_0x5c31f0){if(!this[_0x5407('0xa8')]||!this[_0x5407('0xa8')][_0x5407('0x23')])throw new _0x468b33(_0x5407('0x21'),this);return this[_0x5407('0xa8')][_0x5407('0x23')](_0x5c31f0);}['_handleNewSuggestionMarker'](_0x38f255){const {id:_0x3de4b2,type:_0x37cc00,subType:_0xdc8a72,authorId:_0x337df7}=this[_0x5407('0xef')](_0x38f255),_0x2dee6c=this[_0x5407('0x1')][_0x5407('0x137')](_0x3de4b2)||this['_createSuggestion'](_0x37cc00,_0xdc8a72,_0x3de4b2,_0x337df7,{});switch(this[_0x5407('0x114')](_0x2dee6c,_0x37cc00,_0xdc8a72,_0x337df7),this['_suggestionState'][_0x5407('0x137')](_0x2dee6c)){case'notReady':this['_getSuggestionData'](_0x3de4b2)[_0x5407('0xf0')](_0x1834af=>{let _0x55bc7e=Promise[_0x5407('0x91')]();_0x1834af[_0x5407('0xb5')]&&(_0x55bc7e=this[_0x5407('0xdd')][_0x5407('0x45')]({'channelId':this[_0x5407('0xb2')][_0x5407('0x3')][_0x5407('0x137')](_0x5407('0x36')),'threadId':_0x3de4b2})),_0x55bc7e[_0x5407('0xf0')](()=>{this['addSuggestionData'](_0x1834af)[_0x5407('0xc3')]=!0x0;});}),this[_0x5407('0x119')]['set'](_0x2dee6c,_0x5407('0xb3'));break;case _0x5407('0x129'):this[_0x5407('0x28')](_0x3de4b2,{'state':_0x5407('0xfb')});case'dataReady':this[_0x5407('0x119')]['set'](_0x2dee6c,'ready'),this[_0x5407('0x4')](_0x5407('0x5c'),_0x2dee6c);break;case _0x5407('0x2b'):this[_0x5407('0x4')](_0x5407('0x2f'),_0x2dee6c);}return _0x2dee6c['addMarkerName'](_0x38f255),_0x2dee6c;}['_refreshSuggestionsChain'](_0x540702){const _0x561cbc=Array[_0x5407('0x40')](_0x540702)['filter'](_0x439f5f=>!_0x439f5f['isMultiRange']),_0x15fd3c=this[_0x5407('0xf')]({'skipNotAttached':!0x0})[_0x5407('0x9a')](_0x40e401=>!_0x40e401[_0x5407('0x80')]),_0x4d7acf=_0x15fd3c[_0x5407('0x9a')](_0x2ceab9=>!_0x540702[_0x5407('0x4e')](_0x2ceab9)),_0x3eb1a2=new Map(_0x15fd3c['map'](_0x5a164f=>[_0x5a164f,this[_0x5407('0xaf')][_0x5407('0x37')](_0x5a164f[_0x5407('0x33')],_0x5a164f[_0x5407('0x38')],_0x5407('0x117'))])),_0x5c4a5b=new Map(_0x15fd3c[_0x5407('0x15')](_0xf3e1c3=>[_0xf3e1c3,_0xf3e1c3[_0x5407('0x19')]()])),_0x3dd52a=new Set(),_0x1c8ea7=new Set();for(let _0x53f01d=0x0;_0x53f01d<_0x561cbc[_0x5407('0x25')];_0x53f01d++)_0x255aec(_0x561cbc[_0x53f01d],_0x561cbc,_0x53f01d+0x1);for(let _0x2d0820=0x0;_0x2d0820<_0x561cbc[_0x5407('0x25')];_0x2d0820++)_0x255aec(_0x561cbc[_0x2d0820],_0x4d7acf,0x0);for(let _0x7e18c=0x0;_0x7e18c<_0x561cbc['length'];_0x7e18c++){const _0x48b9e8=_0x561cbc[_0x7e18c];!_0x1c8ea7[_0x5407('0x4e')](_0x48b9e8)&&_0x48b9e8[_0x5407('0x87')]&&(_0x48b9e8[_0x5407('0x87')]['next']===_0x48b9e8&&(_0x48b9e8[_0x5407('0x87')]['next']=null),_0x48b9e8[_0x5407('0x87')]=null),!_0x3dd52a['has'](_0x48b9e8)&&_0x48b9e8[_0x5407('0x93')]&&(_0x48b9e8['next'][_0x5407('0x87')]===_0x48b9e8&&(_0x48b9e8[_0x5407('0x93')][_0x5407('0x87')]=null),_0x48b9e8[_0x5407('0x93')]=null);}function _0x255aec(_0x3e572f,_0x406d87,_0x1f83fe){for(let _0x4ce062=_0x1f83fe;_0x4ce062<_0x406d87[_0x5407('0x25')];_0x4ce062++){const _0x3d28f0=_0x558690(_0x3e572f,_0x406d87[_0x4ce062]);_0x3d28f0&&(_0x3d28f0[0x0][_0x5407('0x93')]=_0x3d28f0[0x1],_0x3d28f0[0x1][_0x5407('0x87')]=_0x3d28f0[0x0],_0x3dd52a[_0x5407('0x5f')](_0x3d28f0[0x0]),_0x1c8ea7[_0x5407('0x5f')](_0x3d28f0[0x1]));}}function _0x558690(_0x5d2425,_0x5db22b){if(_0x5d2425['author']['id']!==_0x5db22b['author']['id'])return null;const _0x39a8ea=_0x3eb1a2[_0x5407('0x137')](_0x5d2425)(_0x5d2425,_0x5db22b,_0x5c4a5b[_0x5407('0x137')](_0x5d2425),_0x5c4a5b[_0x5407('0x137')](_0x5db22b));if(!_0x39a8ea)return null;return _0x3eb1a2['get'](_0x5db22b)(_0x5d2425,_0x5db22b,_0x5c4a5b[_0x5407('0x137')](_0x5d2425),_0x5c4a5b[_0x5407('0x137')](_0x5db22b))?_0x39a8ea[0x1][_0x5407('0x118')]&&_0x39a8ea[0x1]['commentThread'][_0x5407('0x25')]?null:_0x39a8ea:null;}}[_0x5407('0x76')](_0x32b779){const _0x44a796=Array[_0x5407('0x40')](_0x32b779),_0x87053c=this[_0x5407('0xf')]({'skipNotAttached':!0x0}),_0x1ec9a5=_0x87053c[_0x5407('0x9a')](_0x2c4db1=>!_0x32b779[_0x5407('0x4e')](_0x2c4db1)),_0x1147f0=new Map(_0x44a796[_0x5407('0x15')](_0x5bfd88=>[_0x5bfd88,this[_0x5407('0xaf')]['getSuggestionCallback'](_0x5bfd88[_0x5407('0x33')],_0x5bfd88['subType'],'join')])),_0x2afba6=new Map(_0x87053c[_0x5407('0x15')](_0x519c91=>[_0x519c91,_0x519c91[_0x5407('0x136')]()]));for(let _0x4d70d8=0x0;_0x4d70d8<_0x44a796[_0x5407('0x25')];_0x4d70d8++){if(_0x20b362(this,_0x44a796[_0x4d70d8],_0x44a796,_0x4d70d8+0x1))return!0x0;}for(let _0x3d5e82=0x0;_0x3d5e82<_0x44a796['length'];_0x3d5e82++){if(_0x20b362(this,_0x44a796[_0x3d5e82],_0x1ec9a5,0x0))return!0x0;}return!0x1;function _0x20b362(_0x47bce7,_0x236a80,_0x424cb7,_0x32e291){for(let _0x13493=_0x32e291;_0x13493<_0x424cb7[_0x5407('0x25')];_0x13493++){const _0x1dc9f8=_0x424cb7[_0x13493];if(_0x1dc9f8['type']!==_0x236a80[_0x5407('0x33')]||_0x1dc9f8[_0x5407('0x121')]['id']!==_0x236a80[_0x5407('0x121')]['id']||_0x1dc9f8[_0x5407('0x38')]!==_0x236a80[_0x5407('0x38')])continue;const _0x6551aa=_0x1147f0['get'](_0x236a80),_0x1c6a60=_0x2afba6[_0x5407('0x137')](_0x236a80),_0x4dd7ad=_0x2afba6[_0x5407('0x137')](_0x1dc9f8),_0x4d405d=_0x236a80['commentThread']&&_0x236a80[_0x5407('0x118')][_0x5407('0x25')],_0x493038=_0x1dc9f8[_0x5407('0x118')]&&_0x1dc9f8[_0x5407('0x118')]['length'];if(!_0x4d405d&&_0x6551aa(_0x4dd7ad,_0x1c6a60))return _0x47bce7[_0x5407('0xb0')](_0x1dc9f8,_0x236a80),_0x2afba6[_0x5407('0x5a')](_0x236a80),!0x0;if(!_0x493038&&_0x6551aa(_0x1c6a60,_0x4dd7ad))return _0x47bce7[_0x5407('0xb0')](_0x236a80,_0x1dc9f8),_0x2afba6[_0x5407('0x5a')](_0x1dc9f8),!0x0;}return!0x1;}}[_0x5407('0xb0')](_0x2e6523,_0x30d87b){if(_0x2e6523[_0x5407('0x80')])for(const _0x2a24dc of _0x30d87b[_0x5407('0x136')]())_0x2e6523['addRange'](_0x2a24dc);else{const _0x3d363e=_0x30d87b['getFirstRange']()[_0x5407('0x3a')];this[_0x5407('0x116')](_0x2e6523,this[_0x5407('0xb9')]['createRange'](_0x2e6523[_0x5407('0x19')]()[_0x5407('0x55')],_0x3d363e));}_0x30d87b[_0x5407('0x65')]();}}class Ct{constructor(_0xefd03f){this[_0x5407('0x57')]=_0xefd03f,this[_0x5407('0xb9')]=_0xefd03f[_0x5407('0x130')],this[_0x5407('0x1e')]=new Map(),this[_0x5407('0x5')]=new Map(),this[_0x5407('0x10')]();}[_0x5407('0x24')](_0x21f009,_0x4da7fd,_0x42f761,_0x51cb71,_0x532874,_0x15df96){return new _0x37741b(this[_0x5407('0xb9')],{'type':_0x21f009,'subType':_0x4da7fd,'id':_0x42f761,'author':_0x51cb71,'creator':_0x51cb71,'attributes':_0x532874,'onAttributesChange':_0x15df96,'onAccept':(..._0x4feea1)=>this[_0x5407('0x37')](_0x21f009,_0x4da7fd,_0x5407('0xbf'))(..._0x4feea1),'onDiscard':(..._0x50b944)=>this[_0x5407('0x37')](_0x21f009,_0x4da7fd,_0x5407('0x9d'))(..._0x50b944)});}[_0x5407('0xf3')](_0xabd2ef,_0x3079e6,_0x4f022b,_0x2c7fe6){const _0x38203b=_0xabd2ef+':'+_0x3079e6+':'+_0x4f022b;this[_0x5407('0x1e')]['set'](_0x38203b,_0x2c7fe6);}[_0x5407('0x37')](_0xb2c6d8,_0x2a8ee7,_0x4a321b){const _0x28139f=_0xb2c6d8+':'+_0x2a8ee7+':'+_0x4a321b;return this[_0x5407('0x1e')]['get'](_0x28139f)||this[_0x5407('0x5')][_0x5407('0x137')](_0xb2c6d8+':'+_0x4a321b);}[_0x5407('0x10')](){const _0x570ff7=()=>{},_0x8b334f=_0x123078=>{_0x123078['sort']((_0x36c242,_0x7be825)=>_0x36c242[_0x5407('0x55')][_0x5407('0x10d')](_0x7be825['start'])?0x1:-0x1),this[_0x5407('0xb9')]['change'](_0x5037ec=>{for(const _0x4b91db of _0x123078){let _0x4b719b;_0x4b719b=_0x4b91db['end'][_0x5407('0x82')]&&_0x4b91db['end'][_0x5407('0x8d')]==_0x4b91db[_0x5407('0x55')][_0x5407('0x111')]?_0x5037ec[_0x5407('0x110')](_0x4b91db[_0x5407('0x55')]['nodeAfter'],'on'):_0x5037ec[_0x5407('0x110')](_0x4b91db),this['_model'][_0x5407('0x3d')](_0x4b719b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b346c=(_0x4f3688,_0x49f062)=>{this[_0x5407('0xb9')]['change'](_0x55d78b=>{const {commandName:_0x2e87fd,commandParams:_0xfb5426=[]}=_0x49f062,_0x19826b=_0x4f3688[_0x5407('0x15')](_0x5e1455=>(Bt(_0x5e1455)&&(_0x5e1455=this['_model'][_0x5407('0xd1')](_0x5e1455[_0x5407('0x3a')])),_0x5e1455))[_0x5407('0x9a')](_0x2670f6=>_0x5407('0xa9')!==_0x2670f6[_0x5407('0x4b')][_0x5407('0x10a')]);if(_0x19826b[_0x5407('0x25')]<0x1)return;const _0x17899e=Array[_0x5407('0x40')](this[_0x5407('0xb9')][_0x5407('0xcf')][_0x5407('0x100')][_0x5407('0x136')]())[_0x5407('0x15')](_0xc68c4d=>_0x376084[_0x5407('0xd')](_0xc68c4d));_0x55d78b[_0x5407('0x29')](_0x19826b);for(const _0x2906dc of this['_editor'][_0x5407('0x14')][_0x5407('0x14')]())_0x2906dc[_0x5407('0xb1')]();_0xfb5426['push']({'forceDefaultExecution':!0x0}),this[_0x5407('0x57')][_0x5407('0x97')](_0x2e87fd,..._0xfb5426);const _0x268171=_0x17899e[_0x5407('0x9a')](_0x3ee5c8=>_0x5407('0xa9')!=_0x3ee5c8[_0x5407('0x4b')][_0x5407('0x10a')]);_0x268171[_0x5407('0x25')]>0x0&&_0x55d78b[_0x5407('0x29')](_0x268171);for(const _0x5ef506 of _0x17899e)_0x5ef506['detach']();});},_0x3797ad=(_0xa1cbb,_0x4f298c)=>0x1==_0xa1cbb[_0x5407('0x25')]&&0x1==_0x4f298c[_0x5407('0x25')]&&_0xa1cbb[0x0][_0x5407('0x3a')]['isEqual'](_0x4f298c[0x0]['start']),_0x9157d0=(_0x184443,_0x36dfa9,_0x2ae650,_0x11b886)=>Rt(_0x184443,_0x36dfa9,_0x2ae650,_0x11b886,this[_0x5407('0xb9')])?[_0x184443,_0x36dfa9]:Rt(_0x36dfa9,_0x184443,_0x11b886,_0x2ae650,this[_0x5407('0xb9')])?[_0x36dfa9,_0x184443]:null;this[_0x5407('0x5')]['set'](_0x5407('0xb4'),_0x570ff7),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xcd'),_0x8b334f),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x125'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xaa'),_0x9157d0),this[_0x5407('0x5')]['set']('deletion:accept',_0x8b334f),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xa4'),_0x570ff7),this['_defaultCallbacks'][_0x5407('0x48')]('deletion:join',_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xd5'),_0x9157d0),this[_0x5407('0x5')]['set']('formatInline:accept',_0x3b346c),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x51'),_0x570ff7),this[_0x5407('0x5')]['set'](_0x5407('0xf9'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')]('formatInline:chain',_0x570ff7),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x69'),_0x3b346c),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x3b'),_0x570ff7),this['_defaultCallbacks'][_0x5407('0x48')](_0x5407('0x6f'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')]('formatBlock:chain',_0x570ff7);}}function Dt(_0x4ec0da,_0xfe8f50,_0x1260e7){for(const _0x2349b5 of _0xfe8f50[_0x5407('0x8d')][_0x5407('0x20')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2349b5[_0x5407('0x4b')]==_0x2349b5)return!0x1;if(!_0x1260e7[_0x5407('0xe1')](_0x2349b5))return!0x1;if(_0x4ec0da['isObject'](_0x2349b5)||_0x4ec0da['isLimit'](_0x2349b5))return!0x0;}return!0x1;}function Bt(_0x6cae33){return _0x6cae33[_0x5407('0x3a')][_0x5407('0x8d')]==_0x6cae33[_0x5407('0x55')][_0x5407('0x111')]&&_0x6cae33['end']['isAtStart'];}function _t(_0x175027,_0x2abb50,_0x5d2734,_0x401f1f){const _0x46c80d=_0x581da6=>!_0x581da6[_0x5407('0x123')]['is'](_0x5407('0x122'))&&!_0x401f1f[_0x5407('0x50')](_0x581da6[_0x5407('0x123')]),_0x352eac=_0x175027[_0x5407('0x55')]['getLastMatchingPosition'](_0x46c80d),_0x37eefa=_0x175027['end'][_0x5407('0xb8')](_0x46c80d,{'direction':_0x5407('0xcc')});return(!_0x175027['start']['isEqual'](_0x352eac)||!_0x175027[_0x5407('0x3a')][_0x5407('0xfa')](_0x37eefa))&&(_0x352eac[_0x5407('0x10d')](_0x37eefa)?_0x5d2734[_0x5407('0x84')](_0x2abb50,{'range':_0x5d2734[_0x5407('0xd1')](_0x352eac,_0x37eefa)}):_0x5d2734[_0x5407('0x46')](_0x2abb50),!0x0);}function Mt(_0x2a4432){return _0x3bf0e7(_0x2a4432);}function $t(_0x3b210c){const _0x351ee9=_0x3b210c[_0x5407('0x55')][_0x5407('0x111')];return _0x351ee9&&_0x351ee9['is'](_0x5407('0x78'));}function Nt(_0x361bf0,_0x115052){const _0x5b988e=_0x115052[_0x5407('0x7e')]['isObject'](_0x361bf0)||_0x115052['schema']['isSelectable'](_0x361bf0);return _0x115052['createRange'](_0x115052['createPositionAt'](_0x361bf0,'before'),_0x5b988e?_0x115052['createPositionAfter'](_0x361bf0):_0x115052['createPositionAt'](_0x361bf0,'end'));}function Rt(_0x31ea03,_0x54301d,_0x5f514c,_0x2b2c7c,_0xe033bc){if(_0x5f514c[_0x5407('0x3a')]['isEqual'](_0x2b2c7c[_0x5407('0x55')]))return!0x0;if(_0x31ea03['type']!=_0x54301d['type'])return!0x1;if(!_0x5f514c[_0x5407('0x3a')][_0x5407('0x5e')](_0x2b2c7c[_0x5407('0x55')]))return!0x1;const _0xf72343=_0xe033bc[_0x5407('0xd1')](_0x5f514c['end'],_0x2b2c7c['start'])[_0x5407('0x64')]();for(const _0x408ad3 of _0xf72343)if(['elementStart',_0x5407('0xec')]['includes'](_0x408ad3[_0x5407('0x33')])&&_0xe033bc['schema'][_0x5407('0x1a')](_0x408ad3[_0x5407('0x123')]))return!0x1;return!0x0;}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @module track-changes/trackchangesui
3
3
  */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core';
5
- import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
6
- import TrackChangesEditing from './trackchangesediting';
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
5
+ import { Users } from 'ckeditor5-collaboration';
6
+ import TrackChangesEditing from './trackchangesediting.js';
7
7
  /**
8
8
  * Provides UI for track changes plugin.
9
9
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20ce=['_suggestionToController','filter','length','isEnabled','_descriptionFactory','mainView','button','trackChanges.SuggestionThreadView','change:previous','size','SuggestionThreadView','_refreshActiveMarkers','editor','unbind','listenTo','Annotations','type','getMarkers','focus','keys','bind','_createUIButton','model','getMarkerNames','getByInnerView','acceptButton','from','descriptionParts','CommentView','init','execute','locale','map','Discard\x20all\x20suggestions','clear','trackChanges.disableComments','componentFactory','getJoined','_updateController','suggestion-','addSourceCollector','change:activeAnnotations','EditorAnnotations','define','source','_annotationViews','createAnnotation','remove','commentThread','arrowView','TrackChangesUI','buttonView','get','push','Accept\x20all\x20suggestions','getSuggestion','refreshSelectedViews','isMultiRange','commandName','comments.maxThreadTotalWeight','value','delete','getFirstRange','editing','getAllAdjacentSuggestions','activeMarkers','hasSuggestion','values','CommentsUI','_disableComments','comments.editorConfig','Discard\x20all\x20selected\x20suggestions','config','TrackChangesEditing','innerView','_destroyController','discardButton','suggestionChanged','isInContent','registerAnnotation','_viewToController','isDirty','commands','actionView','trackChanges','plugins','_initializeController','Accept\x20all\x20selected\x20suggestions','set','destroy','add','switchbutton','has','isOn','_handleSuggestionControllerDelayed','_handleControllerBuffer','head','view','separator','getDescriptions','CommentsRepository','some','createCommentThreadController','comments.maxCommentsWhenCollapsed'];(function(_0x244005,_0x20cebb){const _0x39d11f=function(_0x10edef){while(--_0x10edef){_0x244005['push'](_0x244005['shift']());}};_0x39d11f(++_0x20cebb);}(_0x20ce,0xfc));const _0x39d1=function(_0x244005,_0x20cebb){_0x244005=_0x244005-0x0;let _0x39d11f=_0x20ce[_0x244005];return _0x39d11f;};import{Plugin as _0x4d4a98}from'ckeditor5/src/core';import{Collection as _0x3f1433}from'ckeditor5/src/utils';import{Model as _0x4d738b,SplitButtonView as _0x4f00a5,createDropdown as _0x78c3cd,addListToDropdown as _0x1bee7f}from'ckeditor5/src/ui';import{Users as _0x44b074,getDateTimeFormatter as _0x5ac588,getAllMarkersDomElementsSorted as _0x23463f}from'ckeditor5-collaboration/src/collaboration-core';import _0x3c7e05 from'./trackchangesediting';import _0x3834f9 from'./ui/suggestioncontroller';import _0x72d802 from'./ui/view/suggestionthreadview';import{getTranslation as _0x4907e3}from'./utils/common-translations';import _0x2678ef from'../theme/icons/track-changes.svg';export default class d extends _0x4d4a98{static get['requires'](){return[_0x3c7e05,_0x44b074,_0x39d1('0x38'),_0x39d1('0x4b'),_0x39d1('0x66')];}static get['pluginName'](){return _0x39d1('0x6');}constructor(_0x3f9e8c){super(_0x3f9e8c),this[_0x39d1('0x3c')]=new Map(),this['_viewToController']=new Map(),this[_0x39d1('0x1')]=new Map(),this[_0x39d1('0x33')]=new Map();const _0xdd5e0=this[_0x39d1('0x48')][_0x39d1('0x1c')];_0xdd5e0[_0x39d1('0x67')](_0x39d1('0x43'),_0x72d802),_0xdd5e0[_0x39d1('0x67')](_0x39d1('0x5f'),!0x1),this[_0x39d1('0x19')]=_0xdd5e0[_0x39d1('0x8')](_0x39d1('0x5f'));}['_handleSuggestionControllerDelayed'](_0x32950a,_0x3baed0){0x0===this['_handleControllerBuffer'][_0x39d1('0x45')]&&setTimeout(()=>{for(const [_0x1fedc7,_0x2e425b]of this['_handleControllerBuffer']){const _0x2dc755=this[_0x39d1('0x3c')][_0x39d1('0x30')](_0x1fedc7);_0x2dc755||_0x2e425b?_0x2dc755&&_0x2e425b&&this[_0x39d1('0x1f')](_0x1fedc7):this[_0x39d1('0x2a')](_0x1fedc7);}this['editor'][_0x39d1('0x29')][_0x39d1('0x8')]('EditorAnnotations')[_0x39d1('0xc')](),this[_0x39d1('0x47')](),this[_0x39d1('0x33')][_0x39d1('0x5e')]();},0xa),this[_0x39d1('0x33')][_0x39d1('0x2c')](_0x32950a,_0x3baed0);}[_0x39d1('0x59')](){const _0x4e4f95=this['editor'],_0x4c07ab=_0x4e4f95[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x1d')),_0x25321e=_0x4e4f95[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x4b')),_0x196083=_0x4e4f95[_0x39d1('0x29')]['get'](_0x39d1('0x66')),_0x518bf1=_0x4e4f95[_0x39d1('0x29')][_0x39d1('0x8')]('CommentsRepository');_0x4e4f95['ui'][_0x39d1('0x60')][_0x39d1('0x2e')](_0x39d1('0x28'),_0x2e241c=>this[_0x39d1('0x51')](_0x2e241c)),_0x196083[_0x39d1('0x64')](()=>{const _0x2190ab=[];for(const [_0x35013b,_0x35d49c]of Array[_0x39d1('0x56')](this['_suggestionToController'])){const _0x3d13d5=_0x35013b[_0x39d1('0x14')](),_0x6bfe39=[];for(const _0x38095d of _0x3d13d5){if(!_0x38095d[_0x39d1('0x22')])continue;if(_0x38095d[_0x39d1('0xd')]){_0x6bfe39['push'](..._0x38095d['getRanges']());continue;}const _0x3d958e=_0x38095d[_0x39d1('0x12')]();if(_0x6bfe39['length']>0x0){const _0x233f19=_0x6bfe39[0x0][_0x39d1('0x61')](_0x3d958e);if(_0x233f19){_0x6bfe39[0x0]=_0x233f19;continue;}}_0x6bfe39[_0x39d1('0x9')](_0x3d958e);}_0x2190ab[_0x39d1('0x9')]([_0x35d49c[_0x39d1('0x35')],_0x6bfe39]);}return _0x2190ab;}),this[_0x39d1('0x4a')](_0x4c07ab,'suggestionLoaded',(_0x376f4b,_0x1c8c89)=>{this[_0x39d1('0x4a')](_0x1c8c89,_0x39d1('0x44'),(_0x3d327a,_0x17aaa8,_0x14a617,_0x47960d)=>{_0x1c8c89[_0x39d1('0x22')]&&(null==_0x14a617?(this[_0x39d1('0x62')](_0x47960d[_0x39d1('0x34')]),this[_0x39d1('0x32')](_0x1c8c89,!0x1)):(this[_0x39d1('0x62')](_0x14a617[_0x39d1('0x34')]),this[_0x39d1('0x32')](_0x1c8c89,!0x0)));}),null===_0x1c8c89['previous']?this[_0x39d1('0x32')](_0x1c8c89,!0x1):this['_updateController'](_0x1c8c89[_0x39d1('0x34')]);}),this[_0x39d1('0x4a')](_0x4c07ab,'suggestionUnloaded',(_0x2adf05,_0x23282e,_0x4756f3)=>{this['stopListening'](_0x23282e,_0x39d1('0x44')),this['_handleControllerBuffer'][_0x39d1('0x11')](_0x23282e);const _0x26a81f=_0x4756f3?_0x4756f3['head']:_0x23282e,_0x6b01fb=this['_suggestionToController'][_0x39d1('0x8')](_0x26a81f);null!==_0x4756f3&&this['_updateController'](_0x26a81f),null===_0x4756f3&&_0x6b01fb&&this[_0x39d1('0x1f')](_0x23282e);}),this[_0x39d1('0x4a')](_0x4c07ab,_0x39d1('0x21'),(_0x41c484,_0x4289cb)=>{this[_0x39d1('0x62')](_0x4289cb);}),this[_0x39d1('0x4a')](_0x25321e,_0x39d1('0x65'),()=>{this[_0x39d1('0x47')]();}),this['listenTo'](_0x518bf1,'addComment',(_0x4e8621,{threadId:_0x435672,isFromAdapter:_0x230b76})=>{if(_0x230b76||!_0x4c07ab[_0x39d1('0x16')](_0x435672))return;const _0x10a34e=_0x4c07ab[_0x39d1('0xb')](_0x435672);this['_suggestionToController'][_0x39d1('0x8')](_0x10a34e)['view'][_0x39d1('0x4e')]();},{'priority':'lowest'});}[_0x39d1('0x47')](){const _0x4adb86=this[_0x39d1('0x48')][_0x39d1('0x29')][_0x39d1('0x8')]('Annotations'),_0x460b1b=this[_0x39d1('0x48')]['plugins'][_0x39d1('0x8')](_0x39d1('0x1d')),_0x19c77f=Array[_0x39d1('0x56')](_0x4adb86['activeAnnotations'],_0x6939c1=>_0x6939c1[_0x39d1('0x1e')])['filter'](_0x37a6d0=>this[_0x39d1('0x24')][_0x39d1('0x30')](_0x37a6d0)),_0x4474ad=[];for(const _0x438fa1 of _0x19c77f){const _0x51360d=this[_0x39d1('0x24')]['get'](_0x438fa1)[_0x39d1('0x52')]['getAllAdjacentSuggestions']();_0x4474ad['push'](..._0x51360d['reduce']((_0x3880fa,_0x2d2198)=>[..._0x3880fa,..._0x2d2198[_0x39d1('0x53')]()],[]));}_0x460b1b[_0x39d1('0x15')]=_0x4474ad;}[_0x39d1('0x51')](_0x506ebe){const _0x4ee364=_0x78c3cd(_0x506ebe,_0x4f00a5),_0x469430=this[_0x39d1('0x48')][_0x39d1('0x26')][_0x39d1('0x8')]('trackChanges'),_0x56a4f7=_0x4907e3(_0x506ebe,'Track\x20changes');_0x4ee364['buttonView'][_0x39d1('0x2c')]({'tooltip':_0x56a4f7,'label':_0x56a4f7,'icon':_0x2678ef}),_0x4ee364[_0x39d1('0x7')]['bind'](_0x39d1('0x31'))['to'](_0x469430,_0x39d1('0x10')),_0x4ee364[_0x39d1('0x7')]['on']('execute',()=>{_0x469430[_0x39d1('0x5a')](),this[_0x39d1('0x48')][_0x39d1('0x13')][_0x39d1('0x35')][_0x39d1('0x4e')]();});const _0x2da31a=new _0x3f1433(),_0x14e7bd=[{'type':_0x39d1('0x2f'),'model':{'withText':!0x0,'label':_0x56a4f7,'commandName':_0x39d1('0x28')}},{'type':_0x39d1('0x36')},{'type':_0x39d1('0x42'),'model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0xa')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0x2b')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0x5d')),'commandName':'discardAllSuggestions'}},{'type':_0x39d1('0x42'),'model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0x1b')),'commandName':'discardSelectedSuggestions'}}];for(const _0x6f73b5 of _0x14e7bd){let _0x2cc967={'type':'separator'};if(_0x6f73b5[_0x39d1('0x52')]){const _0x5c6a36=new _0x4d738b(_0x6f73b5[_0x39d1('0x52')]),_0x46ec24=this[_0x39d1('0x48')][_0x39d1('0x26')]['get'](_0x5c6a36[_0x39d1('0xe')]);_0x5c6a36['bind'](_0x39d1('0x31'),_0x39d1('0x3f'))['to'](_0x46ec24,_0x39d1('0x10'),_0x39d1('0x3f')),_0x2cc967={'type':_0x6f73b5[_0x39d1('0x4c')],'model':_0x5c6a36};}_0x2da31a[_0x39d1('0x2e')](_0x2cc967);}_0x1bee7f(_0x4ee364,_0x2da31a);const _0x2bf9e4=_0x14e7bd[_0x39d1('0x3d')](_0x8070cd=>null!=_0x8070cd[_0x39d1('0x52')])[_0x39d1('0x5c')](_0x5aa2df=>this['editor'][_0x39d1('0x26')][_0x39d1('0x8')](_0x5aa2df['model'][_0x39d1('0xe')])),_0xe82256=_0x4ee364[_0x39d1('0x7')];return _0xe82256[_0x39d1('0x27')][_0x39d1('0x49')](_0x39d1('0x3f')),_0xe82256[_0x39d1('0x5')][_0x39d1('0x49')](_0x39d1('0x3f')),_0xe82256[_0x39d1('0x27')][_0x39d1('0x50')](_0x39d1('0x3f'))['to'](_0x469430,_0x39d1('0x3f')),_0xe82256[_0x39d1('0x5')][_0x39d1('0x50')](_0x39d1('0x3f'))['toMany'](_0x2bf9e4,_0x39d1('0x3f'),(..._0x193d42)=>_0x193d42[_0x39d1('0x39')](_0x6345a1=>_0x6345a1)),_0x4ee364['on'](_0x39d1('0x5a'),_0x46bcad=>{this[_0x39d1('0x48')][_0x39d1('0x5a')](_0x46bcad[_0x39d1('0x0')][_0x39d1('0xe')]),this[_0x39d1('0x48')][_0x39d1('0x13')][_0x39d1('0x35')]['focus']();}),_0x4ee364;}[_0x39d1('0x2a')](_0x3ad80b){const _0x20b7e0=this[_0x39d1('0x48')],_0x4df986=_0x20b7e0['config'],_0x5c54cb=_0x20b7e0[_0x39d1('0x29')]['get'](_0x39d1('0x4b')),_0x4d4153=_0x20b7e0['plugins'][_0x39d1('0x8')](_0x39d1('0x38')),_0x60c6c5=_0x20b7e0[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x66')),_0x24abcd=_0x20b7e0[_0x39d1('0x29')][_0x39d1('0x8')](_0x44b074)['me'],_0x1eed40=_0x4df986['get'](_0x39d1('0x28'))[_0x39d1('0x46')],{CommentsListView:_0x12add9,CommentThreadInputView:_0x5d668f}=_0x20b7e0[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x18'));let _0x10d2cf,_0x5571fe;this[_0x39d1('0x1')][_0x39d1('0x30')](_0x3ad80b['id'])?(_0x5571fe=this[_0x39d1('0x1')][_0x39d1('0x8')](_0x3ad80b['id']),_0x10d2cf=_0x5571fe[_0x39d1('0x41')]):(_0x10d2cf=new _0x1eed40(_0x20b7e0[_0x39d1('0x5b')],_0x3ad80b,_0x24abcd,{'disableComments':this[_0x39d1('0x19')],'editorConfig':_0x4df986['get'](_0x39d1('0x1a')),'maxCommentsWhenCollapsed':_0x4df986[_0x39d1('0x8')](_0x39d1('0x3b')),'maxThreadTotalWeight':_0x4df986['get'](_0x39d1('0xf')),'maxCommentCharsWhenCollapsed':_0x4df986[_0x39d1('0x8')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ac588(_0x4df986[_0x39d1('0x8')](_0x39d1('0x5b'))),'CommentView':_0x4df986[_0x39d1('0x8')]('comments')[_0x39d1('0x58')],'CommentsListView':_0x12add9,'CommentThreadInputView':_0x5d668f}),_0x10d2cf[_0x39d1('0x55')]['on']('execute',()=>{_0x20b7e0[_0x39d1('0x13')][_0x39d1('0x35')][_0x39d1('0x4e')]();}),_0x10d2cf[_0x39d1('0x20')]['on'](_0x39d1('0x5a'),()=>{_0x20b7e0['editing'][_0x39d1('0x35')]['focus']();}),_0x5571fe=_0x5c54cb['createAnnotationView'](this[_0x39d1('0x48')][_0x39d1('0x5b')],_0x10d2cf),_0x5571fe[_0x39d1('0x50')](_0x39d1('0x25'))['to'](_0x10d2cf,_0x39d1('0x25')),_0x5571fe[_0x39d1('0x50')](_0x39d1('0x3e'))['to'](_0x10d2cf),_0x5571fe['bind'](_0x39d1('0x4c'))['to'](_0x10d2cf,_0x39d1('0x4c'),_0x57f575=>_0x39d1('0x63')+_0x57f575),this[_0x39d1('0x1')][_0x39d1('0x2c')](_0x3ad80b['id'],_0x5571fe));const _0x3a99dc=_0x4d4153[_0x39d1('0x3a')](_0x3ad80b[_0x39d1('0x4')],_0x10d2cf),_0x1fe3cb=new _0x3834f9(_0x20b7e0,_0x3ad80b,_0x10d2cf,_0x3a99dc),_0x269830=_0x3ad80b[_0x39d1('0x14')]()[_0x39d1('0x3d')](_0x1c1740=>_0x1c1740[_0x39d1('0x22')]);_0x10d2cf['descriptionParts']=_0x20b7e0[_0x39d1('0x29')]['get'](_0x39d1('0x1d'))[_0x39d1('0x40')][_0x39d1('0x37')](_0x269830),this[_0x39d1('0x3c')][_0x39d1('0x2c')](_0x3ad80b,_0x1fe3cb),this['_viewToController'][_0x39d1('0x2c')](_0x10d2cf,_0x1fe3cb);const _0x18ac8e=_0x5c54cb[_0x39d1('0x2')]({'view':_0x5571fe,'target':()=>{const _0x3037af=[],_0x1fdfa5=_0x3ad80b[_0x39d1('0x14')]()[_0x39d1('0x3d')](_0x15c5f8=>_0x15c5f8[_0x39d1('0x22')]);for(const _0x28dedc of _0x1fdfa5)_0x3037af['push'](..._0x28dedc[_0x39d1('0x4d')]());return _0x23463f(_0x20b7e0[_0x39d1('0x13')],_0x3037af);},'type':()=>_0x39d1('0x63')+_0x1fe3cb[_0x39d1('0x35')][_0x39d1('0x4c')]});_0x5c54cb[_0x39d1('0x2e')](_0x18ac8e),_0x60c6c5[_0x39d1('0x23')](_0x18ac8e);}['_destroyController'](_0x5ac45b){const _0x46c1ed=this[_0x39d1('0x48')][_0x39d1('0x29')][_0x39d1('0x8')]('Annotations'),_0x503328=this[_0x39d1('0x3c')]['get'](_0x5ac45b),_0x134d3e=_0x503328[_0x39d1('0x35')],_0xce40a=_0x46c1ed[_0x39d1('0x54')](_0x134d3e);_0xce40a&&_0x46c1ed[_0x39d1('0x3')](_0xce40a),this[_0x39d1('0x3c')]['delete'](_0x5ac45b),this['_viewToController'][_0x39d1('0x11')](_0x134d3e),_0x503328[_0x39d1('0x2d')]();}['_updateController'](_0x258d7e){if(!_0x258d7e['isInContent']||!this['_suggestionToController'][_0x39d1('0x30')](_0x258d7e))return;const _0x4dab5a=this[_0x39d1('0x48')]['plugins'][_0x39d1('0x8')](_0x39d1('0x1d')),_0xcc24d2=this[_0x39d1('0x3c')][_0x39d1('0x8')](_0x258d7e),_0x30f529=_0x258d7e[_0x39d1('0x14')]();_0xcc24d2[_0x39d1('0x35')][_0x39d1('0x57')]=_0x4dab5a[_0x39d1('0x40')][_0x39d1('0x37')](_0x30f529);}[_0x39d1('0x2d')](){for(const _0x40d672 of this[_0x39d1('0x3c')][_0x39d1('0x4f')]())this['_destroyController'](_0x40d672);for(const _0x5c8ef0 of this[_0x39d1('0x1')][_0x39d1('0x17')]())_0x5c8ef0[_0x39d1('0x41')][_0x39d1('0x2d')]();super[_0x39d1('0x2d')]();}}
23
+ const _0x4e3d=['discardSelectedSuggestions','comments','stopListening','_destroyController','discardButton','unbind','buttonView','locale','TrackChangesEditing','define','execute','comments.maxThreadTotalWeight','_suggestionToController','clear','CommentsRepository','switchbutton','change:activeAnnotations','plugins','init','listenTo','createAnnotationView','commandName','isEnabled','EditorAnnotations','suggestionLoaded','view','get','trackChanges','separator','addSourceCollector','discardAllSuggestions','_viewToController','length','set','comments.editorConfig','suggestionChanged','isDirty','requires','getMarkers','change:previous','trackChanges.disableComments','_refreshActiveMarkers','pluginName','descriptionParts','mainView','_descriptionFactory','model','_handleSuggestionControllerDelayed','push','value','Accept\x20all\x20suggestions','TrackChangesUI','getByInnerView','registerAnnotation','toMany','actionView','hasSuggestion','isOn','add','createCommentThreadController','CommentsUI','_updateController','delete','filter','type','activeAnnotations','map','bind','has','commands','Annotations','editing','button','acceptSelectedSuggestions','getAllAdjacentSuggestions','destroy','getFirstRange','acceptButton','_handleControllerBuffer','addComment','Accept\x20all\x20selected\x20suggestions','innerView','getDescriptions','Track\x20changes','refreshSelectedViews','_initializeController','config','getJoined','_annotationViews','head','values','suggestionUnloaded','isInContent','trackChanges.SuggestionThreadView','comments.maxCommentCharsWhenCollapsed','SuggestionThreadView','suggestion-','acceptAllSuggestions','remove','activeMarkers','size','comments.maxCommentsWhenCollapsed','keys','editor','lowest','_disableComments','getRanges','from','componentFactory','reduce','focus'];(function(_0x260ed6,_0x4e3d57){const _0xcb6b10=function(_0x52d4e1){while(--_0x52d4e1){_0x260ed6['push'](_0x260ed6['shift']());}};_0xcb6b10(++_0x4e3d57);}(_0x4e3d,0x104));const _0xcb6b=function(_0x260ed6,_0x4e3d57){_0x260ed6=_0x260ed6-0x0;let _0xcb6b10=_0x4e3d[_0x260ed6];return _0xcb6b10;};import{Plugin as _0x1285cc}from'ckeditor5/src/core.js';import{Collection as _0x2807c0}from'ckeditor5/src/utils.js';import{Model as _0x5c86a8,SplitButtonView as _0x11c077,createDropdown as _0x585c72,addListToDropdown as _0x5ab85a}from'ckeditor5/src/ui.js';import{Users as _0x5af069,getDateTimeFormatter as _0x1de0fa,getAllMarkersDomElementsSorted as _0x4b0274}from'ckeditor5-collaboration';import _0x301c9a from'./trackchangesediting.js';import _0x2c716a from'./ui/suggestioncontroller.js';import _0x4fba5f from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x1979a6}from'./utils/common-translations.js';import _0x5185d5 from'../theme/icons/track-changes.svg';export default class d extends _0x1285cc{static get[_0xcb6b('0x6e')](){return[_0x301c9a,_0x5af069,_0xcb6b('0x57'),'Annotations',_0xcb6b('0x60')];}static get[_0xcb6b('0x4')](){return _0xcb6b('0xd');}constructor(_0x30e8e1){super(_0x30e8e1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0xcb6b('0x32')]=new Map(),this[_0xcb6b('0x28')]=new Map();const _0x1cb69c=this[_0xcb6b('0x41')]['config'];_0x1cb69c[_0xcb6b('0x52')](_0xcb6b('0x37'),_0x4fba5f),_0x1cb69c[_0xcb6b('0x52')](_0xcb6b('0x2'),!0x1),this[_0xcb6b('0x43')]=_0x1cb69c['get'](_0xcb6b('0x2'));}[_0xcb6b('0x9')](_0x93ffd1,_0x39c880){0x0===this['_handleControllerBuffer'][_0xcb6b('0x3e')]&&setTimeout(()=>{for(const [_0x55bf9e,_0x26bf51]of this[_0xcb6b('0x28')]){const _0x422099=this['_suggestionToController']['has'](_0x55bf9e);_0x422099||_0x26bf51?_0x422099&&_0x26bf51&&this[_0xcb6b('0x4c')](_0x55bf9e):this['_initializeController'](_0x55bf9e);}this[_0xcb6b('0x41')][_0xcb6b('0x5a')]['get']('EditorAnnotations')[_0xcb6b('0x2e')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0xcb6b('0x56')]();},0xa),this[_0xcb6b('0x28')][_0xcb6b('0x6a')](_0x93ffd1,_0x39c880);}[_0xcb6b('0x5b')](){const _0x47bc79=this[_0xcb6b('0x41')],_0x4735a1=_0x47bc79[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x3d539d=_0x47bc79[_0xcb6b('0x5a')]['get'](_0xcb6b('0x20')),_0x17d5c4=_0x47bc79[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x60')),_0x4e187f=_0x47bc79[_0xcb6b('0x5a')]['get']('CommentsRepository');_0x47bc79['ui'][_0xcb6b('0x46')][_0xcb6b('0x14')](_0xcb6b('0x64'),_0x195da0=>this['_createUIButton'](_0x195da0)),_0x17d5c4[_0xcb6b('0x66')](()=>{const _0x59c8f3=[];for(const [_0x10869b,_0x33a4d4]of Array[_0xcb6b('0x45')](this[_0xcb6b('0x55')])){const _0x35eaca=_0x10869b[_0xcb6b('0x24')](),_0x261c22=[];for(const _0x5c009f of _0x35eaca){if(!_0x5c009f[_0xcb6b('0x36')])continue;if(_0x5c009f['isMultiRange']){_0x261c22[_0xcb6b('0xa')](..._0x5c009f[_0xcb6b('0x44')]());continue;}const _0x526e8f=_0x5c009f[_0xcb6b('0x26')]();if(_0x261c22[_0xcb6b('0x69')]>0x0){const _0x390ac9=_0x261c22[0x0][_0xcb6b('0x31')](_0x526e8f);if(_0x390ac9){_0x261c22[0x0]=_0x390ac9;continue;}}_0x261c22[_0xcb6b('0xa')](_0x526e8f);}_0x59c8f3[_0xcb6b('0xa')]([_0x33a4d4[_0xcb6b('0x62')],_0x261c22]);}return _0x59c8f3;}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x61'),(_0x4f4a63,_0x20f70c)=>{this[_0xcb6b('0x5c')](_0x20f70c,'change:previous',(_0x51d6f5,_0x52e0a5,_0x314bd7,_0x301c65)=>{_0x20f70c[_0xcb6b('0x36')]&&(null==_0x314bd7?(this[_0xcb6b('0x17')](_0x301c65[_0xcb6b('0x33')]),this[_0xcb6b('0x9')](_0x20f70c,!0x1)):(this[_0xcb6b('0x17')](_0x314bd7[_0xcb6b('0x33')]),this[_0xcb6b('0x9')](_0x20f70c,!0x0)));}),null===_0x20f70c['previous']?this['_handleSuggestionControllerDelayed'](_0x20f70c,!0x1):this[_0xcb6b('0x17')](_0x20f70c[_0xcb6b('0x33')]);}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x35'),(_0x3ed55e,_0xb208bf,_0x19d2d2)=>{this[_0xcb6b('0x4b')](_0xb208bf,_0xcb6b('0x1')),this['_handleControllerBuffer'][_0xcb6b('0x18')](_0xb208bf);const _0x520862=_0x19d2d2?_0x19d2d2[_0xcb6b('0x33')]:_0xb208bf,_0x1bbcbd=this[_0xcb6b('0x55')][_0xcb6b('0x63')](_0x520862);null!==_0x19d2d2&&this[_0xcb6b('0x17')](_0x520862),null===_0x19d2d2&&_0x1bbcbd&&this[_0xcb6b('0x4c')](_0xb208bf);}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x6c'),(_0x2a671f,_0x281833)=>{this[_0xcb6b('0x17')](_0x281833);}),this[_0xcb6b('0x5c')](_0x3d539d,_0xcb6b('0x59'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e187f,_0xcb6b('0x29'),(_0x464ae0,{threadId:_0x473360,isFromAdapter:_0xa3898f})=>{if(_0xa3898f||!_0x4735a1[_0xcb6b('0x12')](_0x473360))return;const _0xa3f9a9=_0x4735a1['getSuggestion'](_0x473360);this['_suggestionToController'][_0xcb6b('0x63')](_0xa3f9a9)[_0xcb6b('0x62')][_0xcb6b('0x48')]();},{'priority':_0xcb6b('0x42')});}[_0xcb6b('0x3')](){const _0x34cd61=this['editor'][_0xcb6b('0x5a')]['get'](_0xcb6b('0x20')),_0x17dbd3=this[_0xcb6b('0x41')][_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x7b5ea9=Array[_0xcb6b('0x45')](_0x34cd61[_0xcb6b('0x1b')],_0x79e147=>_0x79e147[_0xcb6b('0x2b')])[_0xcb6b('0x19')](_0x4f6df2=>this[_0xcb6b('0x68')][_0xcb6b('0x1e')](_0x4f6df2)),_0x50108c=[];for(const _0x474673 of _0x7b5ea9){const _0x13dfc8=this['_viewToController'][_0xcb6b('0x63')](_0x474673)[_0xcb6b('0x8')][_0xcb6b('0x24')]();_0x50108c['push'](..._0x13dfc8[_0xcb6b('0x47')]((_0x136a86,_0x574181)=>[..._0x136a86,..._0x574181['getMarkerNames']()],[]));}_0x17dbd3[_0xcb6b('0x3d')]=_0x50108c;}['_createUIButton'](_0x57339d){const _0x57e457=_0x585c72(_0x57339d,_0x11c077),_0x514a5a=this[_0xcb6b('0x41')][_0xcb6b('0x1f')]['get'](_0xcb6b('0x64')),_0x5b1d1c=_0x1979a6(_0x57339d,_0xcb6b('0x2d'));_0x57e457[_0xcb6b('0x4f')][_0xcb6b('0x6a')]({'tooltip':_0x5b1d1c,'label':_0x5b1d1c,'icon':_0x5185d5}),_0x57e457[_0xcb6b('0x4f')][_0xcb6b('0x1d')]('isOn')['to'](_0x514a5a,_0xcb6b('0xb')),_0x57e457[_0xcb6b('0x4f')]['on'](_0xcb6b('0x53'),()=>{_0x514a5a[_0xcb6b('0x53')](),this[_0xcb6b('0x41')][_0xcb6b('0x21')][_0xcb6b('0x62')][_0xcb6b('0x48')]();});const _0x4963fe=new _0x2807c0(),_0x2a4205=[{'type':_0xcb6b('0x58'),'model':{'withText':!0x0,'label':_0x5b1d1c,'commandName':_0xcb6b('0x64')}},{'type':_0xcb6b('0x65')},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,_0xcb6b('0xc')),'commandName':_0xcb6b('0x3b')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,_0xcb6b('0x2a')),'commandName':_0xcb6b('0x23')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,'Discard\x20all\x20suggestions'),'commandName':_0xcb6b('0x67')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xcb6b('0x49')}}];for(const _0x51cf73 of _0x2a4205){let _0x55c75e={'type':_0xcb6b('0x65')};if(_0x51cf73[_0xcb6b('0x8')]){const _0x515a1a=new _0x5c86a8(_0x51cf73['model']),_0x4cd8a3=this[_0xcb6b('0x41')][_0xcb6b('0x1f')][_0xcb6b('0x63')](_0x515a1a[_0xcb6b('0x5e')]);_0x515a1a[_0xcb6b('0x1d')](_0xcb6b('0x13'),_0xcb6b('0x5f'))['to'](_0x4cd8a3,_0xcb6b('0xb'),_0xcb6b('0x5f')),_0x55c75e={'type':_0x51cf73[_0xcb6b('0x1a')],'model':_0x515a1a};}_0x4963fe[_0xcb6b('0x14')](_0x55c75e);}_0x5ab85a(_0x57e457,_0x4963fe);const _0x3dd4cd=_0x2a4205[_0xcb6b('0x19')](_0x26a065=>null!=_0x26a065[_0xcb6b('0x8')])[_0xcb6b('0x1c')](_0x2199a6=>this[_0xcb6b('0x41')][_0xcb6b('0x1f')][_0xcb6b('0x63')](_0x2199a6[_0xcb6b('0x8')][_0xcb6b('0x5e')])),_0x2cd613=_0x57e457['buttonView'];return _0x2cd613[_0xcb6b('0x11')][_0xcb6b('0x4e')]('isEnabled'),_0x2cd613['arrowView'][_0xcb6b('0x4e')](_0xcb6b('0x5f')),_0x2cd613[_0xcb6b('0x11')][_0xcb6b('0x1d')](_0xcb6b('0x5f'))['to'](_0x514a5a,_0xcb6b('0x5f')),_0x2cd613['arrowView'][_0xcb6b('0x1d')]('isEnabled')[_0xcb6b('0x10')](_0x3dd4cd,_0xcb6b('0x5f'),(..._0x54e219)=>_0x54e219['some'](_0x5925bb=>_0x5925bb)),_0x57e457['on']('execute',_0x10efd8=>{this['editor'][_0xcb6b('0x53')](_0x10efd8['source'][_0xcb6b('0x5e')]),this['editor'][_0xcb6b('0x21')][_0xcb6b('0x62')][_0xcb6b('0x48')]();}),_0x57e457;}[_0xcb6b('0x2f')](_0x4076d1){const _0xde2a51=this[_0xcb6b('0x41')],_0x4db8b4=_0xde2a51[_0xcb6b('0x30')],_0x49ed1c=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x20')),_0x3b5247=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')]('CommentsRepository'),_0x13c0fc=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x60')),_0x5470f7=_0xde2a51['plugins'][_0xcb6b('0x63')](_0x5af069)['me'],_0xccdf37=_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x64'))[_0xcb6b('0x39')],{CommentsListView:_0x40a555,CommentThreadInputView:_0xb97f0f}=_0xde2a51['plugins']['get'](_0xcb6b('0x16'));let _0x4a30ed,_0x2a92d8;this[_0xcb6b('0x32')][_0xcb6b('0x1e')](_0x4076d1['id'])?(_0x2a92d8=this[_0xcb6b('0x32')]['get'](_0x4076d1['id']),_0x4a30ed=_0x2a92d8[_0xcb6b('0x6')]):(_0x4a30ed=new _0xccdf37(_0xde2a51['locale'],_0x4076d1,_0x5470f7,{'disableComments':this[_0xcb6b('0x43')],'editorConfig':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x6b')),'maxCommentsWhenCollapsed':_0x4db8b4['get'](_0xcb6b('0x3f')),'maxThreadTotalWeight':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x54')),'maxCommentCharsWhenCollapsed':_0x4db8b4['get'](_0xcb6b('0x38')),'formatDateTime':_0x1de0fa(_0x4db8b4['get'](_0xcb6b('0x50'))),'CommentView':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x4a'))['CommentView'],'CommentsListView':_0x40a555,'CommentThreadInputView':_0xb97f0f}),_0x4a30ed[_0xcb6b('0x27')]['on']('execute',()=>{_0xde2a51[_0xcb6b('0x21')][_0xcb6b('0x62')]['focus']();}),_0x4a30ed[_0xcb6b('0x4d')]['on'](_0xcb6b('0x53'),()=>{_0xde2a51[_0xcb6b('0x21')][_0xcb6b('0x62')]['focus']();}),_0x2a92d8=_0x49ed1c[_0xcb6b('0x5d')](this[_0xcb6b('0x41')][_0xcb6b('0x50')],_0x4a30ed),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x6d'))['to'](_0x4a30ed,_0xcb6b('0x6d')),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x69'))['to'](_0x4a30ed),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x1a'))['to'](_0x4a30ed,'type',_0x2592e3=>'suggestion-'+_0x2592e3),this[_0xcb6b('0x32')][_0xcb6b('0x6a')](_0x4076d1['id'],_0x2a92d8));const _0x3288ed=_0x3b5247[_0xcb6b('0x15')](_0x4076d1['commentThread'],_0x4a30ed),_0x460e41=new _0x2c716a(_0xde2a51,_0x4076d1,_0x4a30ed,_0x3288ed),_0x4f29c4=_0x4076d1['getAllAdjacentSuggestions']()[_0xcb6b('0x19')](_0x4c98fe=>_0x4c98fe[_0xcb6b('0x36')]);_0x4a30ed[_0xcb6b('0x5')]=_0xde2a51[_0xcb6b('0x5a')]['get']('TrackChangesEditing')[_0xcb6b('0x7')]['getDescriptions'](_0x4f29c4),this[_0xcb6b('0x55')][_0xcb6b('0x6a')](_0x4076d1,_0x460e41),this[_0xcb6b('0x68')][_0xcb6b('0x6a')](_0x4a30ed,_0x460e41);const _0x588f4c=_0x49ed1c['createAnnotation']({'view':_0x2a92d8,'target':()=>{const _0x8aa6d7=[],_0x11da54=_0x4076d1[_0xcb6b('0x24')]()[_0xcb6b('0x19')](_0x5c1e8d=>_0x5c1e8d[_0xcb6b('0x36')]);for(const _0x42311d of _0x11da54)_0x8aa6d7['push'](..._0x42311d[_0xcb6b('0x0')]());return _0x4b0274(_0xde2a51[_0xcb6b('0x21')],_0x8aa6d7);},'type':()=>_0xcb6b('0x3a')+_0x460e41[_0xcb6b('0x62')][_0xcb6b('0x1a')]});_0x49ed1c[_0xcb6b('0x14')](_0x588f4c),_0x13c0fc[_0xcb6b('0xf')](_0x588f4c);}['_destroyController'](_0xefff1d){const _0x3db804=this[_0xcb6b('0x41')]['plugins'][_0xcb6b('0x63')](_0xcb6b('0x20')),_0x2c9072=this['_suggestionToController'][_0xcb6b('0x63')](_0xefff1d),_0x3b09e5=_0x2c9072[_0xcb6b('0x62')],_0x290fd4=_0x3db804[_0xcb6b('0xe')](_0x3b09e5);_0x290fd4&&_0x3db804[_0xcb6b('0x3c')](_0x290fd4),this[_0xcb6b('0x55')][_0xcb6b('0x18')](_0xefff1d),this['_viewToController']['delete'](_0x3b09e5),_0x2c9072[_0xcb6b('0x25')]();}[_0xcb6b('0x17')](_0x3c9453){if(!_0x3c9453[_0xcb6b('0x36')]||!this[_0xcb6b('0x55')][_0xcb6b('0x1e')](_0x3c9453))return;const _0x15b04c=this[_0xcb6b('0x41')][_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x576d54=this['_suggestionToController']['get'](_0x3c9453),_0x17df05=_0x3c9453['getAllAdjacentSuggestions']();_0x576d54[_0xcb6b('0x62')]['descriptionParts']=_0x15b04c[_0xcb6b('0x7')][_0xcb6b('0x2c')](_0x17df05);}[_0xcb6b('0x25')](){for(const _0xd38de7 of this[_0xcb6b('0x55')][_0xcb6b('0x40')]())this[_0xcb6b('0x4c')](_0xd38de7);for(const _0x3f8196 of this[_0xcb6b('0x32')][_0xcb6b('0x34')]())_0x3f8196[_0xcb6b('0x6')][_0xcb6b('0x25')]();super[_0xcb6b('0x25')]();}}
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @module track-changes/ui/suggestioncontroller
3
3
  */
4
- import type { Editor } from 'ckeditor5/src/core';
5
- import type Suggestion from '../suggestion';
6
- import type BaseSuggestionThreadView from './view/basesuggestionthreadview';
4
+ import type { Editor } from 'ckeditor5/src/core.js';
5
+ import type Suggestion from '../suggestion.js';
6
+ import type BaseSuggestionThreadView from './view/basesuggestionthreadview.js';
7
7
  import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
8
8
  declare const SuggestionController_base: {
9
- new (): import("ckeditor5/src/utils").Observable;
10
- prototype: import("ckeditor5/src/utils").Observable;
9
+ new (): import("ckeditor5/src/utils.js").Observable;
10
+ prototype: import("ckeditor5/src/utils.js").Observable;
11
11
  };
12
12
  /**
13
13
  * A controller for a suggestion.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x288d=['acceptSuggestion','discardSuggestion','change:isDirty','stopListening','destroy','isDirty','commentThreadController','_discardCommand','canDiscard','commands','plugins','add','isEnabled','get','unbind','model','view','execute','_acceptCommand','canEditAt','_setPendingAction','locale','canAccept','_removePendingAction','PendingActions','listenTo','getRanges','bind','_pendingAction','_editor'];(function(_0x307788,_0x288d22){const _0x18b4cc=function(_0x48bf1d){while(--_0x48bf1d){_0x307788['push'](_0x307788['shift']());}};_0x18b4cc(++_0x288d22);}(_0x288d,0x12f));const _0x18b4=function(_0x307788,_0x288d22){_0x307788=_0x307788-0x0;let _0x18b4cc=_0x288d[_0x307788];return _0x18b4cc;};import{ObservableMixin as _0x24cbe2}from'ckeditor5/src/utils';import{getTranslation as _0x5cdc05}from'../utils/common-translations';export default class qt extends _0x24cbe2(){constructor(_0x382c82,_0x17cc4a,_0x2da8d5,_0x44711c){super(),this[_0x18b4('0xc')]=_0x17cc4a,this[_0x18b4('0xd')]=_0x2da8d5,this[_0x18b4('0x3')]=_0x44711c,this['_editor']=_0x382c82,this[_0x18b4('0xf')]=_0x382c82['commands'][_0x18b4('0xa')](_0x18b4('0x1b')),this[_0x18b4('0x4')]=_0x382c82[_0x18b4('0x6')]['get'](_0x18b4('0x1c')),this[_0x18b4('0xd')]['bind'](_0x18b4('0x9'))['to'](this[_0x18b4('0xf')],this[_0x18b4('0x4')],(_0x2dce89,_0x14613d)=>_0x2dce89||_0x14613d),this[_0x18b4('0xd')][_0x18b4('0x18')](_0x18b4('0x13'))['to'](this['_acceptCommand'],_0x18b4('0x9'),_0x1524ad=>_0x1524ad&&this[_0x18b4('0x1a')][_0x18b4('0xc')][_0x18b4('0x10')](_0x17cc4a[_0x18b4('0x17')]())),this[_0x18b4('0xd')]['bind'](_0x18b4('0x5'))['to'](this[_0x18b4('0x4')],'isEnabled',_0x1e5134=>_0x1e5134&&this[_0x18b4('0x1a')][_0x18b4('0xc')][_0x18b4('0x10')](_0x17cc4a[_0x18b4('0x17')]())),this['_pendingAction']=null,_0x2da8d5[_0x18b4('0x2')]&&this['_setPendingAction'](),this[_0x18b4('0x16')](_0x2da8d5,_0x18b4('0x1b'),()=>this[_0x18b4('0x1b')]()),this[_0x18b4('0x16')](_0x2da8d5,'discardSuggestion',()=>this[_0x18b4('0x1c')]()),this['listenTo'](_0x2da8d5,_0x18b4('0x1d'),()=>{_0x2da8d5[_0x18b4('0x2')]?this[_0x18b4('0x11')]():this[_0x18b4('0x14')]();});}[_0x18b4('0x1b')](){this[_0x18b4('0xf')]['execute'](this['model']['id']);}[_0x18b4('0x1c')](){this[_0x18b4('0x4')][_0x18b4('0xe')](this['model']['id']);}[_0x18b4('0x1')](){this[_0x18b4('0xd')]['unbind'](_0x18b4('0x9')),this['view'][_0x18b4('0xb')](_0x18b4('0x13')),this[_0x18b4('0xd')]['unbind'](_0x18b4('0x5')),this[_0x18b4('0x0')](),this[_0x18b4('0x3')]['destroy'](),this[_0x18b4('0x19')]&&this[_0x18b4('0x14')]();}[_0x18b4('0x11')](){const _0x1185a1=_0x5cdc05(this[_0x18b4('0x1a')][_0x18b4('0x12')],'PENDING_ACTION_SUGGESTION');this[_0x18b4('0x19')]=this[_0x18b4('0x1a')][_0x18b4('0x7')][_0x18b4('0xa')](_0x18b4('0x15'))[_0x18b4('0x8')](_0x1185a1);}[_0x18b4('0x14')](){null!==this[_0x18b4('0x19')]&&this[_0x18b4('0x1a')][_0x18b4('0x7')]['get'](_0x18b4('0x15'))['remove'](this['_pendingAction']),this[_0x18b4('0x19')]=null;}}
23
+ const _0x5087=['commands','isEnabled','discardSuggestion','_editor','getRanges','change:isDirty','_acceptCommand','_pendingAction','_setPendingAction','execute','bind','canEditAt','PendingActions','model','add','plugins','_removePendingAction','isDirty','unbind','locale','_discardCommand','stopListening','commentThreadController','view','get','listenTo','acceptSuggestion'];(function(_0x9051b4,_0x50879a){const _0x45cb16=function(_0x3104ff){while(--_0x3104ff){_0x9051b4['push'](_0x9051b4['shift']());}};_0x45cb16(++_0x50879a);}(_0x5087,0x89));const _0x45cb=function(_0x9051b4,_0x50879a){_0x9051b4=_0x9051b4-0x0;let _0x45cb16=_0x5087[_0x9051b4];return _0x45cb16;};import{ObservableMixin as _0x50ad59}from'ckeditor5/src/utils.js';import{getTranslation as _0x4aff89}from'../utils/common-translations.js';export default class Ot extends _0x50ad59(){constructor(_0x51e502,_0x50a307,_0x367c6f,_0x54ce63){super(),this['model']=_0x50a307,this['view']=_0x367c6f,this[_0x45cb('0x14')]=_0x54ce63,this[_0x45cb('0x1')]=_0x51e502,this[_0x45cb('0x4')]=_0x51e502[_0x45cb('0x19')][_0x45cb('0x16')]('acceptSuggestion'),this[_0x45cb('0x12')]=_0x51e502[_0x45cb('0x19')][_0x45cb('0x16')](_0x45cb('0x0')),this[_0x45cb('0x15')][_0x45cb('0x8')](_0x45cb('0x1a'))['to'](this[_0x45cb('0x4')],this[_0x45cb('0x12')],(_0x15949b,_0x1cb23c)=>_0x15949b||_0x1cb23c),this[_0x45cb('0x15')][_0x45cb('0x8')]('canAccept')['to'](this[_0x45cb('0x4')],_0x45cb('0x1a'),_0xc6242b=>_0xc6242b&&this[_0x45cb('0x1')][_0x45cb('0xb')][_0x45cb('0x9')](_0x50a307[_0x45cb('0x2')]())),this[_0x45cb('0x15')][_0x45cb('0x8')]('canDiscard')['to'](this[_0x45cb('0x12')],_0x45cb('0x1a'),_0x4042ce=>_0x4042ce&&this[_0x45cb('0x1')][_0x45cb('0xb')][_0x45cb('0x9')](_0x50a307[_0x45cb('0x2')]())),this[_0x45cb('0x5')]=null,_0x367c6f[_0x45cb('0xf')]&&this[_0x45cb('0x6')](),this['listenTo'](_0x367c6f,_0x45cb('0x18'),()=>this[_0x45cb('0x18')]()),this[_0x45cb('0x17')](_0x367c6f,_0x45cb('0x0'),()=>this['discardSuggestion']()),this[_0x45cb('0x17')](_0x367c6f,_0x45cb('0x3'),()=>{_0x367c6f[_0x45cb('0xf')]?this[_0x45cb('0x6')]():this[_0x45cb('0xe')]();});}[_0x45cb('0x18')](){this[_0x45cb('0x4')]['execute'](this['model']['id']);}[_0x45cb('0x0')](){this[_0x45cb('0x12')][_0x45cb('0x7')](this[_0x45cb('0xb')]['id']);}['destroy'](){this[_0x45cb('0x15')][_0x45cb('0x10')](_0x45cb('0x1a')),this[_0x45cb('0x15')][_0x45cb('0x10')]('canAccept'),this[_0x45cb('0x15')][_0x45cb('0x10')]('canDiscard'),this[_0x45cb('0x13')](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this[_0x45cb('0xe')]();}[_0x45cb('0x6')](){const _0x5c6b5d=_0x4aff89(this[_0x45cb('0x1')][_0x45cb('0x11')],'PENDING_ACTION_SUGGESTION');this[_0x45cb('0x5')]=this[_0x45cb('0x1')][_0x45cb('0xd')][_0x45cb('0x16')](_0x45cb('0xa'))[_0x45cb('0xc')](_0x5c6b5d);}[_0x45cb('0xe')](){null!==this[_0x45cb('0x5')]&&this['_editor']['plugins'][_0x45cb('0x16')]('PendingActions')['remove'](this[_0x45cb('0x5')]),this[_0x45cb('0x5')]=null;}}