@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231103.0 → 0.0.0-nightly-20231105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/track-changes.js +1 -1
  3. package/package.json +3 -3
  4. package/src/commands/acceptsuggestioncommand.js +1 -1
  5. package/src/commands/discardsuggestioncommand.js +1 -1
  6. package/src/commands/executeonallsuggestionscommand.js +1 -1
  7. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  8. package/src/commands/trackchangescommand.js +1 -1
  9. package/src/integrations/aiassistant.js +1 -1
  10. package/src/integrations/alignment.js +1 -1
  11. package/src/integrations/basicstyles.js +1 -1
  12. package/src/integrations/blockquote.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/documentlist.js +1 -1
  18. package/src/integrations/documentlistproperties.js +1 -1
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xffcc=['containsRange','_breakSuggestionMarker','getAncestors','change:data','$textProxy','editingDowncast','formatInline:accept','nodeAfter','isIntersectingWithRange','markerToData','_getAuthorFromId','parent','insertion:chain','creator','move','skipNestingCheck','getFirstMarker','getUser','addRange','rootName','addUser','authorName','fromRange','trackChanges','adapter','update:suggestion','formatBlock:discard','every','_addThreadToSuggestion','consume','rejected','catch','track-changes-command-not-found','editing','fetchCommentThread','moveTargetPosition','createSelection','markMultiRangeBlockFormat','commands','hasCommentThread','buildSuggestion','_customCallbacks','high','start','isMultiRange','push','_checkSuggestionCorrectness','ck-suggestion-marker-','toViewElement','removeClass','marker-count','formatInline','updateMarker','_model','_joinSuggestions','_suggestions','containsRangeInObject','return','registerPostFixer','differ','plugins','getAllAdjacentSuggestions','sort','getItems','markInlineFormat','getIntersection','deletion:chain','_trackFormatChanges','formatInline:','enableCommand','isLocal','track-changes-user-not-found','filter','map','insertion:join','has','forward','batch','isAtStart','markBlockFormat','splice','_createSuggestion','suggestion-type','getAttribute','targetPosition','get','trackChangesCommand','elementStart','createElement','_suggestionState','formatInline:chain','insertion','isNextTo','join','ready','never','commentThread','documentSelection','conversion','applyOperation','authoredAt','keys','createPositionAt','change:activeMarkers','getCustomProperty','_joinWithAdjacentSuggestions','accepted','_registerDefaultCallbacks','getRange','group','CommentsRepository','updateSuggestion','_mergeNestedSuggestions','listenTo','showSuggestionHighlights','containerElement','split','getDifference','before','insertion:','_rangeIsInLocalUserInsertion','_getExternalAuthor','createPositionBefore','name','getRanges','isInsideObject','isUndo','accept','refresh','isAtEnd','addSuggestionData','deletion:join','removeMarkers','formatBlock:chain','isLimit','rethrowUnexpectedError','length','deletion','getSuggestionCallback','fromCharCode','_saved','_isDataLoaded','deleteContent','model','addMarker','writer','getNearestSelectionRange','editor','markerReady','size','containsItem','activeMarkers','substr','oldRange','hasSuggestion','discardSelectedSuggestions','$graveyard','forceDefaultExecution','value','multi','detach','from','_onDiscard','_getSuggestionData','toJSON','getShiftedBy','previous','position','removed','add','subType','markInsertion','mapper','stop','resolve','insertion:accept','createdAt','multipleBlocks','markMultiRangeDeletion','Users','addClass','includes','formatBlock:','removeMarker:suggestion:formatBlock','execute','discardAllSuggestions','formatGroupId','then','howMany','unbind','_refreshSuggestionsChain','ck-suggestion-marker-formatBlock','getCommentThread','discardSuggestion','for','type','addMarkerName','insertContent','formatBlock:join','suggestionLoaded','enqueueChange','getLastMatchingPosition','author','notReady','markers','$marker','ck-suggestion-marker','root','suggestion:','trackChanges.mergeNestedSuggestions','track-changes-suggestion-data-mismatch','discard','_isForcedDefaultExecutionBlock','options','deletion:discard','widget','unbindElementFromMarkerName','change','_findSuggestions','document','attributes','hasComments','containsPosition','formatBlock:accept','set','after','removeMarker','locale','TrackChangesEditing','enableReadOnlyMode','_updateSuggestionData','external:','selection','getWalker','formatInline:join','fire','_cutOutSuggestionMarker','newRange','acceptSelectedSuggestions','isObject','next','dataToMarker','getMultiRangeId','createRangeIn','elementToElement','stopListening','suggestionChanged','getFirstRange','removeAttribute','addComment','clone','upcast','commandName','isBefore','init','deletion:','define','getSuggestion','isInContent','getSuggestions','addMarker:suggestion:formatBlock','isBlock','suggestion','registerCustomCallback','remove','item','setSelection','trackChanges.trackFormatChanges','collaboration.channelId','isArray','markerNameToElements','some','data','_setSuggestionData','isRemovable','formatInline:discard','_commentsRepository','PENDING_ACTION_SUGGESTION','tablePasteChainId','isAfter','@external','acceptAllSuggestions','assign','config','deletion:accept','markerToHighlight','error-saving-suggestion-data-suggestion-discarded','markerName','nodeBefore','_defaultCallbacks','backward','always','delete','splitPosition','values','default','dataDowncast','_removeSuggestion','acceptSuggestion','setAttribute','addCommentThread','_suggestionFactory','isCollapsed','createRange','markDeletion','addSuggestion','open','data-suggestion','formatBlock','getMarkers','end','_editor','setTo','requires','createPositionAfter','isEqual','addHighlight','isOwn','_splitMarkerName','_adapter','dataReady','_enabledCommands','track-changes-adapter-already-set','_addSuggestionMarker','ck-suggestion-marker--active','getChangedMarkers','range','schema','_handleNewSuggestionMarker','insert','consumable','elementEnd','getChanges','_setSuggestionRange'];(function(_0x194e0b,_0xffcca9){const _0x321b28=function(_0x55609b){while(--_0x55609b){_0x194e0b['push'](_0x194e0b['shift']());}};_0x321b28(++_0xffcca9);}(_0xffcc,0xce));const _0x321b=function(_0x194e0b,_0xffcca9){_0x194e0b=_0x194e0b-0x0;let _0x321b28=_0xffcc[_0x194e0b];return _0x321b28;};import{Plugin as _0x2cd239,PendingActions as _0x2055bb}from'ckeditor5/src/core';import{LiveRange as _0x236dbf}from'ckeditor5/src/engine';import{CKEditorError as _0x5e6c46,uid as _0xb98dc5,priorities as _0xf44b92,logWarning as _0x3f53b3}from'ckeditor5/src/utils';import{toWidget as _0x543618}from'ckeditor5/src/widget';import{Users as _0x3f1302,hashObject as _0x487437}from'ckeditor5-collaboration/src/collaboration-core';import _0x42ceef from'./commands/trackchangescommand';import _0x370df1 from'./commands/acceptsuggestioncommand';import _0xa5d566 from'./commands/discardsuggestioncommand';import _0xe34cb9 from'./commands/executeonallsuggestionscommand';import _0x19ada6 from'./commands/executeonselectedsuggestionscommand';import _0x33435c from'./suggestion';import _0x185919 from'./suggestiondescriptionfactory';import _0x92d1c6 from'./integrations/aiassistant';import _0x48b6a5 from'./integrations/alignment';import _0x29a793 from'./integrations/basicstyles';import _0x4575c2 from'./integrations/blockquote';import _0x3e82eb from'./integrations/ckbox';import _0x507b88 from'./integrations/codeblock';import _0x171059 from'./integrations/comments';import _0x30f92e from'./integrations/deletecommand';import _0x590c18 from'./integrations/documentlist';import _0x3857ee from'./integrations/entercommand';import _0x46c679 from'./integrations/findandreplace';import _0x10c004 from'./integrations/font';import _0x27c2a9 from'./integrations/formatpainter';import _0x4fe678 from'./integrations/heading';import _0x55a08f from'./integrations/highlight';import _0x5b7654 from'./integrations/horizontalline';import _0x3c1dc1 from'./integrations/htmlembed';import _0x2a1b9e from'./integrations/image';import _0x5a2511 from'./integrations/imagereplace';import _0x16e924 from'./integrations/importword';import _0x793ebb from'./integrations/indent';import _0x76141c from'./integrations/inputcommand';import _0x4fb0af from'./integrations/link';import _0xb29adc from'./integrations/list';import _0x5f22dc from'./integrations/listproperties';import _0x100e77 from'./integrations/mediaembed';import _0x25e199 from'./integrations/mention';import _0x125de4 from'./integrations/pagebreak';import _0x25cb85 from'./integrations/paragraph';import _0x185f9c from'./integrations/removeformat';import _0x31f282 from'./integrations/restrictededitingmode';import _0x4f797f from'./integrations/shiftentercommand';import _0x16e9f6 from'./integrations/standardeditingmode';import _0x1e8959 from'./integrations/style';import _0xd9aee from'./integrations/table';import _0x241b11 from'./integrations/tablemergesplit';import _0x3e0ff5 from'./integrations/tableheadings';import _0x1286d7 from'./integrations/tableclipboard';import _0x339950 from'./integrations/tablecolumnresize';import _0x3cc567 from'./integrations/template';import _0x12f9e6 from'./integrations/tableofcontents';import _0xa0adc6 from'./integrations/title';import _0x5b7a43 from'./integrations/undo';import{getTranslation as _0x7e15ee}from'./utils/common-translations';import _0x7432d9 from'./integrations/tablecaption';import _0x15d513 from'./integrations/documentlistproperties';import _0xf0527e from'./integrations/tableproperties';import{isEqual as _0x49a32e}from'lodash-es';export default class p extends _0x2cd239{static get[_0x321b('0x6b')](){return[_0x321b('0xee'),_0x3f1302,_0x2055bb,_0x92d1c6,_0x48b6a5,_0x29a793,_0x4575c2,_0x3e82eb,_0x507b88,_0x171059,_0x30f92e,_0x590c18,_0x15d513,_0x3857ee,_0x46c679,_0x10c004,_0x27c2a9,_0x4fe678,_0x55a08f,_0x5b7654,_0x3c1dc1,_0x2a1b9e,_0x5a2511,_0x16e924,_0x793ebb,_0x76141c,_0x4fb0af,_0xb29adc,_0x5f22dc,_0x100e77,_0x25e199,_0x125de4,_0x25cb85,_0x185f9c,_0x31f282,_0x4f797f,_0x16e9f6,_0x1e8959,_0xd9aee,_0x241b11,_0x3e0ff5,_0x7432d9,_0x1286d7,_0x339950,_0x12f9e6,_0xf0527e,_0x3cc567,_0xa0adc6,_0x5b7a43];}static get['pluginName'](){return _0x321b('0x16');}constructor(_0x4ba8f5){function _0x3cbbfb(_0x5110be){return _0x5110be[_0x321b('0xc9')](_0x45959a=>String[_0x321b('0x10b')](_0x45959a))[_0x321b('0xdd')]('');}super(_0x4ba8f5),this[_0x321b('0x12')](_0x321b('0x117'),[]),this['on'](_0x321b('0xe7'),(_0x27d693,_0x36d1ee,_0x4b20e2,_0x136ae5)=>{this[_0x321b('0xb5')]['change'](()=>{for(const _0xb3d981 of[..._0x136ae5,..._0x4b20e2])this[_0x321b('0xb5')][_0x321b('0x14c')][_0x321b('0xcb')](_0xb3d981)&&_0x4ba8f5[_0x321b('0xa1')]['reconvertMarker'](_0xb3d981);});}),this['_descriptionFactory']=new _0x185919(this[_0x321b('0x113')][_0x321b('0x10f')]['schema'],this['editor'][_0x321b('0x15')]),this['_adapter']=null,this[_0x321b('0x5f')]=new Bt(this['editor']),this['_suggestions']=new Map(),this[_0x321b('0x46')]=_0x4ba8f5[_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0xee')),this['_enabledCommands']=new Set(),this[_0x321b('0xb5')]=this['editor']['model'],this[_0x321b('0xd9')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4ba8f5['config'][_0x321b('0x32')](_0x321b('0x3d'),_0x321b('0x59')),this[_0x321b('0xc3')]=_0x4ba8f5[_0x321b('0x4d')]['get'](_0x321b('0x3d')),_0x4ba8f5[_0x321b('0x4d')][_0x321b('0x32')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4ba8f5[_0x321b('0x4d')][_0x321b('0xd5')](_0x321b('0x3')),this[_0x321b('0xd6')]=new _0x42ceef(_0x4ba8f5,this[_0x321b('0x73')]),this[_0x3cbbfb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3cbbfb([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x36]);}[_0x321b('0x30')](){const _0x12c880=this[_0x321b('0x113')];_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x85'))[_0x321b('0x4f')]({'model':_0x321b('0x38'),'view':_0xb1f4e7=>{const {id:_0x1af2a1,type:_0x842b14}=this[_0x321b('0x70')](_0xb1f4e7[_0x321b('0x51')]),_0x48a631=[_0x321b('0x0'),_0x321b('0xaf')+_0x842b14];let _0x24d429=0xbb8;return this[_0x321b('0x117')][_0x321b('0x135')](_0xb1f4e7[_0x321b('0x51')])&&(_0x48a631[_0x321b('0xad')]('ck-suggestion-marker--active'),_0x24d429=0xbc2),_0x321b('0x109')==_0x842b14&&(_0x24d429+=0x5),{'classes':_0x48a631,'attributes':{'data-suggestion':_0x1af2a1},'priority':_0x24d429};}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x129')](_0x54df98=>{_0x54df98['on']('addMarker:suggestion',(_0x215342,_0x3dc4d7,_0x334ca0)=>{if(!_0x334ca0[_0x321b('0x7')][_0x321b('0xf2')])return;const _0x4da399=_0x3dc4d7[_0x321b('0x3b')];if(!_0x4da399)return;const _0x10c9a7=_0x334ca0['mapper'][_0x321b('0xb0')](_0x4da399);_0x12c880['model'][_0x321b('0x79')][_0x321b('0x21')](_0x4da399)&&_0x10c9a7&&!_0x10c9a7['getCustomProperty'](_0x321b('0x9'))&&_0x10c9a7['is'](_0x321b('0xf3'))&&_0x543618(_0x10c9a7,_0x334ca0[_0x321b('0x111')]);},{'priority':_0x321b('0xaa')});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x4f')]({'model':_0x321b('0x38'),'view':(_0x349e84,_0x19a1a0)=>{if(!_0x19a1a0['options'][_0x321b('0xf2')])return null;const {type:_0x7dc83e}=this[_0x321b('0x70')](_0x349e84[_0x321b('0x51')]);return{'classes':[_0x321b('0x0'),_0x321b('0xaf')+_0x7dc83e],'priority':0xbb8};}});const _0x4dfd08=({showActiveMarkers:_0x4c0347=!0x0}={})=>(_0x293539,_0x41a7a0,_0x348aef)=>{if(!_0x41a7a0[_0x321b('0x3b')])return;if(_0x41a7a0['item']['is'](_0x321b('0x1a')))return void _0x348aef['consumable'][_0x321b('0x9d')](_0x41a7a0[_0x321b('0x3b')],_0x293539[_0x321b('0xfb')]);const _0x544560=_0x348aef[_0x321b('0x12c')][_0x321b('0xb0')](_0x41a7a0[_0x321b('0x3b')]);if(!(_0x41a7a0[_0x321b('0x3b')]['is']('element')&&_0x12c880['model'][_0x321b('0x79')][_0x321b('0x37')](_0x41a7a0[_0x321b('0x3b')])&&!_0x544560[_0x321b('0xe8')](_0x321b('0x6e'))))return;const {id:_0x35764d}=this['_splitMarkerName'](_0x41a7a0['markerName']);_0x348aef[_0x321b('0x111')][_0x321b('0x134')]([_0x321b('0x0'),_0x321b('0x13f')],_0x544560),_0x348aef[_0x321b('0x111')][_0x321b('0x5d')](_0x321b('0x65'),_0x35764d,_0x544560),_0x348aef['mapper']['bindElementToMarker'](_0x544560,_0x41a7a0[_0x321b('0x51')]),_0x4c0347&&(this[_0x321b('0x117')][_0x321b('0x135')](_0x41a7a0[_0x321b('0x51')])?_0x348aef[_0x321b('0x111')][_0x321b('0x134')]('ck-suggestion-marker--active',_0x544560):_0x348aef[_0x321b('0x111')][_0x321b('0xb1')](_0x321b('0x76'),_0x544560));for(const _0x2c179d of _0x12c880['model'][_0x321b('0x25')](_0x41a7a0[_0x321b('0x3b')])[_0x321b('0xbf')]())_0x348aef[_0x321b('0x7c')][_0x321b('0x9d')](_0x2c179d,_0x293539[_0x321b('0xfb')]);_0x348aef['consumable'][_0x321b('0x9d')](_0x41a7a0[_0x321b('0x3b')],_0x293539[_0x321b('0xfb')]);};_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x129')](_0x33ba2a=>{_0x33ba2a['on'](_0x321b('0x36'),(_0x4e43d6,_0x4d63f1,_0x38bf9d)=>{_0x38bf9d[_0x321b('0x7')]['showSuggestionHighlights']&&_0x4dfd08({'showActiveMarkers':!0x1})(_0x4e43d6,_0x4d63f1,_0x38bf9d);},{'priority':'highest'});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')]('dataDowncast')[_0x321b('0x89')]({'model':'suggestion','view':(_0x1cd11e,_0x1eca44)=>_0x1eca44[_0x321b('0x7')][_0x321b('0xf2')]?null:{'group':_0x321b('0x38'),'name':_0x1cd11e[_0x321b('0x118')](0xb)}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x2d'))[_0x321b('0x26')]({'view':{'name':_0x321b('0x38'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5289c0,{writer:_0x26f6f8})=>{let _0x108ec8='suggestion:'+_0x5289c0[_0x321b('0xd3')](_0x321b('0xd2'))+':'+_0x5289c0[_0x321b('0xd3')]('id');return _0x5289c0['getAttribute']('marker-count')&&(_0x108ec8+=':'+_0x5289c0['getAttribute'](_0x321b('0xb2'))),_0x26f6f8[_0x321b('0xd8')](_0x321b('0x14d'),{'data-name':_0x108ec8});}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x2d'))[_0x321b('0x23')]({'view':'suggestion'}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x85'))['add'](_0x4c6f6d=>{_0x4c6f6d['on']('addMarker:suggestion:formatBlock',_0x4dfd08(),{'priority':_0x321b('0xaa')});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')]('editingDowncast')[_0x321b('0x129')](_0x237742=>{_0x237742['on'](_0x321b('0x137'),(_0x152dbd,_0x362871,_0x397339)=>{const _0x339ad1=_0x397339[_0x321b('0x12c')][_0x321b('0x40')](_0x362871[_0x321b('0x51')]);if(_0x339ad1)for(const _0x31f2dd of _0x339ad1)_0x31f2dd[_0x321b('0xe8')](_0x321b('0x6e'))||(_0x397339[_0x321b('0x111')]['removeClass']([_0x321b('0x0'),_0x321b('0x13f'),'ck-suggestion-marker--active'],_0x31f2dd),_0x397339[_0x321b('0x111')][_0x321b('0x2a')](_0x321b('0x65'),_0x31f2dd),_0x397339[_0x321b('0x12c')][_0x321b('0xa')](_0x31f2dd,_0x362871['markerName']));},{'priority':'high'});}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')][_0x321b('0xba')](_0x4d1685=>{let _0x461285=!0x1;const _0x35ebce=Array[_0x321b('0x121')](_0x12c880[_0x321b('0x10f')][_0x321b('0xd')][_0x321b('0xbb')]['getChangedMarkers']()),_0x3c8c45=new Set();for(const {name:_0x2b207f,data:_0x237520}of _0x35ebce){const {group:_0x5b8635,type:_0x5e770f,id:_0x41f17e}=this['_splitMarkerName'](_0x2b207f);if('suggestion'!==_0x5b8635)continue;const _0x3801c5=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x41f17e);if(null!=_0x237520[_0x321b('0x1f')]){_0x321b('0xb3')==_0x5e770f&&(_0x461285=_0x461285||$t(_0x237520[_0x321b('0x1f')],_0x2b207f,_0x4d1685,_0x12c880[_0x321b('0x10f')][_0x321b('0x79')]));if(_0x237520[_0x321b('0x1f')]['isCollapsed']||_0x321b('0x11c')==_0x237520[_0x321b('0x1f')][_0x321b('0x1')][_0x321b('0x93')]||_0x321b('0x66')==_0x5e770f&&!Rt(_0x237520['newRange'])||'deletion'==_0x5e770f&&!(!Mt(_0x4450bb=_0x237520[_0x321b('0x1f')])&&!function(_0x43c168){return _0x43c168[_0x321b('0xab')][_0x321b('0x8b')]==_0x43c168[_0x321b('0x68')][_0x321b('0x52')]&&_0x43c168['start'][_0x321b('0x101')];}(_0x4450bb)))_0x4d1685[_0x321b('0x14')](_0x2b207f),_0x461285=!0x0;else{if(!_0x3801c5||!_0x3801c5[_0x321b('0x34')])continue;_0x3c8c45[_0x321b('0x129')](_0x3801c5);}}}var _0x4450bb;return _0x3c8c45['size']>0x0&&(_0x461285=!!this[_0x321b('0xe9')](_0x3c8c45)||_0x461285),_0x461285;}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['registerPostFixer'](_0x3be2ca=>{let _0x9d8a43=!0x1;for(const _0x20f262 of _0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['differ'][_0x321b('0x7e')]()){if(_0x321b('0x7b')!=_0x20f262[_0x321b('0x143')])continue;const _0x520b0a=_0x20f262['position']['getShiftedBy'](_0x20f262['length']);if(_0x520b0a[_0x321b('0x101')])for(const _0x3196fc of this[_0x321b('0xb7')][_0x321b('0x58')]()){if(_0x3196fc[_0x321b('0xac')]||!_0x3196fc['isInContent'])continue;if(_0x321b('0x66')!=_0x3196fc['type'])continue;const _0x33600b=_0x3196fc['getFirstRange']();if(_0x33600b['start'][_0x321b('0x8b')]!=_0x33600b[_0x321b('0x68')][_0x321b('0x8b')]&&_0x33600b[_0x321b('0x68')][_0x321b('0x6d')](_0x20f262['position'])){const _0x487857=_0x12c880['model'][_0x321b('0x61')](_0x33600b[_0x321b('0xab')],_0x520b0a);_0x3be2ca['updateMarker'](_0x3196fc[_0x321b('0x90')](),{'range':_0x487857}),_0x9d8a43=!0x0;}}}return _0x9d8a43;}),_0x12c880['model'][_0x321b('0x14c')]['on'](_0x321b('0x99'),(_0xe4988f,_0x156ce1,_0x4ae3ea)=>{if(null==_0x4ae3ea){const {id:_0x1ce47c}=this['_splitMarkerName'](_0x156ce1[_0x321b('0xfb')]),_0x3809ea=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x1ce47c);_0x3809ea&&_0x3809ea[_0x321b('0x144')](_0x156ce1[_0x321b('0xfb')]);}}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['on'](_0x321b('0x83'),()=>{const _0x51a909=Array[_0x321b('0x121')](_0x12c880[_0x321b('0x10f')]['document'][_0x321b('0xbb')][_0x321b('0x77')]())['filter'](_0x12d979=>_0x321b('0x38')===this[_0x321b('0x70')](_0x12d979[_0x321b('0xfb')])[_0x321b('0xed')]);if(0x0===_0x51a909[_0x321b('0x108')])return;_0x51a909[_0x321b('0xbe')]((_0x4aa0bf,_0x3bebc2)=>{const _0x5067c1=_0x4aa0bf['data'][_0x321b('0x119')],_0x2eaef7=_0x3bebc2['data']['oldRange'];return null===_0x5067c1&&null===_0x2eaef7?0x0:null===_0x5067c1&&null!==_0x2eaef7?-0x1:null!==_0x5067c1&&null===_0x2eaef7?0x1:_0x5067c1[_0x321b('0xab')]['isBefore'](_0x2eaef7['start'])?-0x1:0x1;});const _0x5c5fa0=new Set(),_0x52a605=new Set();for(const {name:_0x2b761c,data:_0x2e74b2}of _0x51a909){const {id:_0x144958}=this['_splitMarkerName'](_0x2b761c);if(null===_0x2e74b2[_0x321b('0x119')]){const _0x535497=this['_handleNewSuggestionMarker'](_0x2b761c);_0x52a605[_0x321b('0x129')](_0x535497);}else{const _0x5229c7=this[_0x321b('0xb7')]['get'](_0x144958);null!==_0x2e74b2['newRange']||_0x5229c7[_0x321b('0x34')]?(_0x5c5fa0[_0x321b('0x129')](_0x5229c7['head']),_0x52a605[_0x321b('0x129')](_0x5229c7)):this[_0x321b('0x5b')](_0x5229c7);}}_0x52a605[_0x321b('0x115')]>0x0&&this[_0x321b('0x13e')](_0x52a605);for(const _0x17c3a2 of _0x5c5fa0)this[_0x321b('0x1d')](_0x321b('0x28'),_0x17c3a2);}),_0x12c880['model']['on'](_0x321b('0xe3'),(_0x12822b,_0x1f661f)=>{const _0x389e75=_0x1f661f[0x0];if(!this[_0x321b('0xb7')][_0x321b('0x115')])return;if(!_0x389e75['isDocumentOperation'])return;if(_0x389e75[_0x321b('0xcd')][_0x321b('0xfe')]||!_0x389e75[_0x321b('0xcd')][_0x321b('0xc6')])return;let _0x5a22b6,_0x5c41ed;switch(_0x389e75['type']){case _0x321b('0x7b'):_0x5a22b6=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0x127')]),_0x5c41ed=_0x5a22b6[_0x321b('0x125')](_0x389e75[_0x321b('0x13c')]);break;case _0x321b('0xf4'):_0x5a22b6=_0x12c880['model'][_0x321b('0xe6')](_0x389e75[_0x321b('0x57')]),_0x5c41ed=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0xa3')]);break;case _0x321b('0x8e'):_0x5a22b6=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0xd4')]),_0x5c41ed=_0x5a22b6[_0x321b('0x125')](_0x389e75[_0x321b('0x13c')]);break;default:return;}const _0x18dd55=_0x12c880[_0x321b('0x10f')][_0x321b('0x61')](_0x5a22b6,_0x5c41ed);_0x12c880[_0x321b('0x10f')][_0x321b('0xb')](()=>{for(const {suggestion:_0x4c59b0,meta:_0x48d2c5}of this['_findSuggestions'](_0x18dd55)){if(_0x4c59b0['isMultiRange'])continue;if(_0x321b('0xb3')==_0x4c59b0[_0x321b('0x143')])continue;const _0x4de206=_0x4c59b0[_0x321b('0x42')]&&_0x4c59b0['data'][_0x321b('0x131')];('formatBlock'!=_0x4c59b0[_0x321b('0x143')]||_0x321b('0xf4')==_0x389e75['type']&&!_0x4de206)&&(_0x48d2c5[_0x321b('0xb8')]||_0x321b('0xdb')==_0x4c59b0[_0x321b('0x143')]&&_0x48d2c5[_0x321b('0x6f')]||_0x4c59b0[_0x321b('0x29')]()[_0x321b('0x80')](_0x18dd55)&&this[_0x321b('0x81')](_0x4c59b0,_0x5a22b6,_0x5c41ed));}});},{'priority':'lowest'}),_0x12c880[_0x321b('0x10f')]['on'](_0x321b('0x10e'),(_0x17f46e,_0x4ebf7e)=>{const _0x56ce1a=_0x4ebf7e[0x0],_0x56e4cc=_0x4ebf7e[0x1];if(_0x56e4cc&&_0x56e4cc['forceDefaultExecution'])return;if(this[_0x321b('0x6')])return;if(!this[_0x321b('0xd6')][_0x321b('0x11e')])return;if(_0x56ce1a[_0x321b('0x60')])return;const _0x3d1ed0=_0x12c880['model'][_0x321b('0x79')],{start:_0x4cf7c0,end:_0x2a0601}=_0x56ce1a[_0x321b('0x29')](),_0x54fb61=_0x4cf7c0['nodeAfter']&&_0x3d1ed0[_0x321b('0x106')](_0x4cf7c0['nodeAfter'])?null:_0x3d1ed0[_0x321b('0x112')](_0x4cf7c0,_0x321b('0xcc')),_0x18258f=_0x2a0601[_0x321b('0x52')]&&_0x3d1ed0['isLimit'](_0x2a0601[_0x321b('0x52')])?null:_0x3d1ed0[_0x321b('0x112')](_0x2a0601,_0x321b('0x54')),_0x31253e=_0x12c880['model'][_0x321b('0x61')](_0x54fb61?_0x54fb61[_0x321b('0xab')]:_0x4cf7c0,_0x18258f?_0x18258f[_0x321b('0x68')]:_0x2a0601);_0x12c880['model'][_0x321b('0xb')](_0x388d57=>{this[_0x321b('0x62')](_0x31253e);const _0x4edcce=_0x12c880['model'][_0x321b('0x79')]['getNearestSelectionRange'](_0x31253e[_0x321b('0xab')]);_0x56ce1a['is'](_0x321b('0xe1'))?_0x388d57[_0x321b('0x3c')](_0x4edcce):_0x56ce1a[_0x321b('0x6a')](_0x4edcce);}),_0x17f46e[_0x321b('0x12d')]();},{'priority':_0xf44b92['normal']+0xa}),_0x12c880[_0x321b('0x10f')]['on'](_0x321b('0x145'),(_0x3999ab,_0x519037)=>{const _0x296c00=_0x519037[_0x519037[_0x321b('0x108')]-0x1];_0x296c00&&_0x296c00[_0x321b('0x11d')]||this[_0x321b('0x6')]||this[_0x321b('0xd6')][_0x321b('0x11e')]&&(_0x12c880['model']['change'](()=>{let _0x2d2448=_0x12c880['model']['insertContent'](_0x519037[0x0],_0x519037[0x1],_0x519037[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d2448)return;_0x3999ab[_0x321b('0xb9')]=_0x2d2448[_0x321b('0x2c')]();const _0x376a3b=_0x2d2448['end'][_0x321b('0x52')],_0x1b198d=_0x12c880[_0x321b('0x10f')][_0x321b('0x79')];_0x376a3b&&_0x1b198d[_0x321b('0x37')](_0x376a3b)&&!_0x1b198d[_0x321b('0x21')](_0x376a3b)&&(_0x2d2448=_0x12c880['model'][_0x321b('0x61')](_0x2d2448[_0x321b('0xab')],_0x12c880['model'][_0x321b('0xe6')](_0x376a3b,_0x321b('0x68')))),this[_0x321b('0x12b')](_0x2d2448);}),_0x3999ab[_0x321b('0x12d')]());},{'priority':'high'}),this[_0x321b('0x113')][_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x97'),this[_0x321b('0xd6')]),this['enableCommand'](_0x321b('0x97'));const _0x694a20=new _0x370df1(_0x12c880,this[_0x321b('0xb7')]);_0x12c880[_0x321b('0xa6')][_0x321b('0x129')]('acceptSuggestion',_0x694a20),this[_0x321b('0xc5')]('acceptSuggestion');const _0x2c68e0=new _0xa5d566(_0x12c880,this[_0x321b('0xb7')]);_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x141'),_0x2c68e0),this['enableCommand'](_0x321b('0x141')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x4b'),new _0xe34cb9(_0x12c880,_0x694a20,this[_0x321b('0xb7')])),this['enableCommand']('acceptAllSuggestions'),_0x12c880['commands'][_0x321b('0x129')](_0x321b('0x139'),new _0xe34cb9(_0x12c880,_0x2c68e0,this[_0x321b('0xb7')])),this['enableCommand'](_0x321b('0x139')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x20'),new _0x19ada6(_0x12c880,_0x694a20,this['_suggestions'])),this[_0x321b('0xc5')](_0x321b('0x20')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')]('discardSelectedSuggestions',new _0x19ada6(_0x12c880,_0x2c68e0,this['_suggestions'])),this[_0x321b('0xc5')](_0x321b('0x11b'));const _0xf8ca85=_0x12c880[_0x321b('0xbc')][_0x321b('0xd5')]('CommentsRepository');this[_0x321b('0xf1')](_0xf8ca85,_0x321b('0x2b'),(_0x49d399,{threadId:_0x399feb})=>{const _0xe1cf48=this['_suggestions'][_0x321b('0xd5')](_0x399feb);_0xe1cf48&&_0xe1cf48['commentThread']&&0x1===_0xe1cf48['commentThread'][_0x321b('0x108')]&&this['_updateSuggestionData'](_0x399feb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xf8ca85,'removeComment',(_0x23196d,{threadId:_0x58a73a})=>{const _0x502ae5=this[_0x321b('0xb7')]['get'](_0x58a73a);_0x502ae5&&_0x502ae5[_0x321b('0xe0')]&&!_0x502ae5['commentThread']['length']&&this[_0x321b('0x18')](_0x58a73a,{'hasComments':!0x1});},{'priority':'low'});}set[_0x321b('0x98')](_0x289486){if(this[_0x321b('0x71')])throw new _0x5e6c46(_0x321b('0x74'),this);this[_0x321b('0x71')]=_0x289486;}get[_0x321b('0x98')](){return this[_0x321b('0x71')];}[_0x321b('0x35')]({skipNotAttached:_0x4cd955=!0x1,toJSON:_0x5d6ee1=!0x1}={}){const _0x41eb91=[];for(const _0x3759f7 of this[_0x321b('0xb7')]['values']())_0x4cd955&&!_0x3759f7[_0x321b('0x34')]||_0x41eb91[_0x321b('0xad')](_0x3759f7);return _0x5d6ee1?_0x41eb91['map'](_0x45e36a=>_0x45e36a[_0x321b('0x124')]()):_0x41eb91;}[_0x321b('0x33')](_0x4ea26e){const _0x46c275=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x4ea26e);if(!_0x46c275)throw new _0x5e6c46('track-changes-suggestion-not-found',this);return _0x46c275;}[_0x321b('0x11a')](_0x7fccb){return this[_0x321b('0xb7')]['has'](_0x7fccb);}[_0x321b('0x102')](_0x1c2eec){const {authorId:_0x5b66bb,id:_0x301655,attributes:_0x4ecded}=_0x1c2eec,[_0x3272cd,_0x510d25]=_0x1c2eec['type']['split'](':'),_0x5e24d1=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x301655)||this['_createSuggestion'](_0x3272cd,_0x510d25,_0x301655,_0x5b66bb,_0x4ecded);if(this[_0x321b('0x9c')](_0x5e24d1),this[_0x321b('0xae')](_0x5e24d1,_0x3272cd,_0x510d25||null,_0x5b66bb),_0x5e24d1[_0x321b('0x130')]=_0x1c2eec['createdAt'],_0x5e24d1[_0x321b('0x10d')]=!0x0,_0x4ecded&&_0x4ecded['@external']){const _0x519b4=_0x4ecded[_0x321b('0x4a')],_0x53385f=this[_0x321b('0xf9')](_0x519b4[_0x321b('0x95')]);_0x5e24d1[_0x321b('0xe4')]=_0x519b4['createdAt'],_0x5e24d1[_0x321b('0x14a')]=_0x53385f,_0x5e24d1['isExternal']=!0x0;}else _0x5e24d1[_0x321b('0xe4')]=_0x1c2eec[_0x321b('0x130')];switch(_0x1c2eec[_0x321b('0x42')]&&(_0x5e24d1[_0x321b('0x42')]=_0x1c2eec['data']),_0x1c2eec[_0x321b('0xe')]&&(_0x5e24d1[_0x321b('0xe')]=_0x1c2eec['attributes']),this[_0x321b('0x71')]&&this[_0x321b('0x71')]['addSuggestion']||(_0x5e24d1[_0x321b('0x10c')]=!0x0),this[_0x321b('0xd9')]['get'](_0x5e24d1)){case _0x321b('0x14b'):this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,_0x321b('0x72'));break;case _0x321b('0x114'):_0x5e24d1[_0x321b('0x34')]?(this[_0x321b('0x13e')](new Set([_0x5e24d1])),this['_joinWithAdjacentSuggestions'](new Set([_0x5e24d1])),this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,_0x321b('0xde')),this['fire']('suggestionLoaded',_0x5e24d1)):this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,'removed');}return _0x5e24d1;}[_0x321b('0x5c')](_0x3599a7){this[_0x321b('0x11d')](()=>{this[_0x321b('0x113')][_0x321b('0x10f')]['change'](()=>{for(const _0x439d74 of _0x3599a7[_0x321b('0xbd')]())_0x439d74[_0x321b('0xff')]();});});}['discardSuggestion'](_0x3ebc8f){this['forceDefaultExecution'](()=>{this[_0x321b('0x113')][_0x321b('0x10f')][_0x321b('0xb')](()=>{for(const _0x1ab2a6 of _0x3ebc8f['getAllAdjacentSuggestions']())_0x1ab2a6['discard']();});});}[_0x321b('0xc5')](_0x1c7db5,_0x2ef838){const _0x36411e=this[_0x321b('0x113')]['commands'][_0x321b('0xd5')](_0x1c7db5);if(!_0x36411e)throw new _0x5e6c46(_0x321b('0xa0'),this,{'commandName':_0x1c7db5});this['_enabledCommands']['add'](_0x36411e),_0x2ef838&&_0x36411e['on'](_0x321b('0x138'),(_0x1d96f6,_0xce073a)=>{this[_0x321b('0xd6')]['value']&&(this[_0x321b('0x6')]||_0xce073a['length']>0x0&&_0xce073a[_0xce073a[_0x321b('0x108')]-0x1]&&_0xce073a[_0xce073a[_0x321b('0x108')]-0x1][_0x321b('0x11d')]||(_0x1d96f6[_0x321b('0xb9')]=_0x2ef838((..._0x4cbabb)=>_0x36411e[_0x321b('0x138')](..._0x4cbabb,{'forceDefaultExecution':!0x0}),..._0xce073a),_0x1d96f6[_0x321b('0x12d')]()));},{'priority':_0x321b('0xaa')});}[_0x321b('0x11d')](_0x5ef69b){let _0x3f29df,_0x1d6c3d;const _0x33b785=this[_0x321b('0x6')];this[_0x321b('0x6')]=!0x0;try{_0x3f29df=_0x5ef69b();}catch(_0x4f541e){_0x1d6c3d=_0x4f541e;}return _0x33b785||(this[_0x321b('0x6')]=!0x1),_0x1d6c3d&&_0x5e6c46[_0x321b('0x107')](_0x1d6c3d,this),_0x3f29df;}[_0x321b('0x12b')](_0x3127be,_0x26c23d=null,_0x5728f1={}){if(_0x3127be['isCollapsed'])return null;const _0xd484b7=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')](_0x321b('0x133'))['me'];for(const {suggestion:_0x4b5483,meta:_0x180efc}of this[_0x321b('0xc')](_0x3127be,_0x321b('0xdb')))if(_0x180efc[_0x321b('0x6f')]){if(!_0x180efc[_0x321b('0xdc')]){if(_0x180efc[_0x321b('0xb8')]){if(!this[_0x321b('0xf0')]||!Ot(_0x4b5483,_0x5728f1))continue;return _0x4b5483;}if(Ot(_0x4b5483,_0x5728f1))return _0x4b5483;this[_0x321b('0x81')](_0x4b5483,_0x3127be[_0x321b('0xab')],_0x3127be[_0x321b('0x68')]);break;}if(_0x26c23d==_0x4b5483[_0x321b('0x12a')]&&Ot(_0x4b5483,_0x5728f1)){const _0x275b2c=_0x4b5483[_0x321b('0x29')]();return _0x275b2c[_0x321b('0xab')][_0x321b('0x6d')](_0x3127be[_0x321b('0x68')])?this['_setSuggestionRange'](_0x4b5483,this[_0x321b('0xb5')]['createRange'](_0x3127be[_0x321b('0xab')],_0x275b2c[_0x321b('0x68')])):this[_0x321b('0x7f')](_0x4b5483,this['_model'][_0x321b('0x61')](_0x275b2c[_0x321b('0xab')],_0x3127be[_0x321b('0x68')])),_0x4b5483;}}const _0x2d251b=_0xb98dc5(),_0x34ccee=_0xd484b7['id'],_0x43870a=_0x26c23d?_0x321b('0xf7')+_0x26c23d:_0x321b('0xdb'),_0x45dbda=this[_0x321b('0x43')]({'id':_0x2d251b,'type':_0x43870a,'createdAt':new Date(),'authorId':_0x34ccee,'attributes':_0x5728f1});return this[_0x321b('0x75')](_0x43870a,_0x2d251b,_0x34ccee,_0x3127be),_0x45dbda;}['markMultiRangeInsertion'](_0x4961fc,_0x1a7e74=_0x321b('0x11f'),_0x5e3c75={}){const _0x297e10=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))['me'],_0x2b4e5a=this[_0x321b('0x5f')][_0x321b('0x10a')]('insertion',_0x1a7e74,_0x321b('0xdd'));for(const _0x559b44 of this[_0x321b('0x35')]())if(_0x559b44[_0x321b('0x14a')]['id']==_0x297e10['id']&&_0x321b('0xdb')==_0x559b44[_0x321b('0x143')]&&_0x559b44[_0x321b('0x12a')]==_0x1a7e74&&Ot(_0x559b44,_0x5e3c75)&&(_0x2b4e5a(_0x559b44[_0x321b('0xfc')](),_0x4961fc)||_0x2b4e5a(_0x4961fc,_0x559b44['getRanges']()))){for(const _0x1da16c of _0x4961fc)_0x559b44[_0x321b('0x92')](_0x1da16c);return _0x559b44;}for(const {suggestion:_0x3da43c,meta:_0xb0a542}of this[_0x321b('0xc')](_0x4961fc,_0x321b('0xdb'))){if(!_0xb0a542[_0x321b('0x6f')])continue;if(!this[_0x321b('0xf0')]&&_0xb0a542[_0x321b('0xb8')])continue;if(!Ot(_0x3da43c,_0x5e3c75))continue;let _0x369958=!0x0;for(const _0x556bce of _0x3da43c[_0x321b('0xfc')]())for(const _0xbe1b89 of _0x4961fc)if(!_0x556bce['containsRange'](_0xbe1b89)){_0x369958=!0x1;break;}if(_0x369958)return _0x3da43c;}const _0x53f180=_0xb98dc5(),_0x1de3b7=_0x297e10['id'],_0x3d5865=_0x321b('0xf7')+_0x1a7e74,_0x10badd=this[_0x321b('0x43')]({'id':_0x53f180,'type':_0x3d5865,'createdAt':new Date(),'authorId':_0x1de3b7,'attributes':_0x5e3c75});for(const _0x2d7e7a of _0x4961fc)this['_addSuggestionMarker'](_0x3d5865,_0x53f180,_0x1de3b7,_0x2d7e7a,_0x33435c[_0x321b('0x24')]());return _0x10badd;}[_0x321b('0xc0')](_0x310286,_0x4b6ee1,_0x2a3ed6=null,_0x2f31d6={}){if(_0x2a3ed6=_0x2a3ed6||Nt(_0x4b6ee1),_0x310286[_0x321b('0x60')])return null;if(_0x321b('0xdf')===this['_trackFormatChanges']){const _0x27a221=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0xb3'),_0x2a3ed6,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x27a221([_0x310286],_0x4b6ee1,_0x2f31d6)),null;}const _0x4c0c77=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')](_0x321b('0x133'))['me'],_0x4c6ce4=[];if(_0x321b('0x55')!==this[_0x321b('0xc3')])for(const {suggestion:_0x387463,meta:_0x28b859}of this['_findSuggestions'](_0x310286,_0x321b('0xdb')))_0x28b859[_0x321b('0x6f')]&&!_0x28b859['isInsideObject']&&_0x4c6ce4[_0x321b('0xad')](..._0x387463['getRanges']());const _0x31df50=function(_0x4ca75a,_0x5d4aba){const _0x3dae9a=[];for(const _0x180d1b of _0x5d4aba){const _0x2059f6=_0x4ca75a[_0x321b('0xc1')](_0x180d1b);_0x2059f6&&_0x3dae9a[_0x321b('0xad')](_0x2059f6);}return _0x3dae9a;}(_0x310286,_0x4c6ce4),_0x24512d=function(_0x177d6c,_0x3f3128){const _0x490546=[_0x177d6c];for(const _0x47878d of _0x3f3128){let _0x3cff14=0x0;for(;_0x3cff14<_0x490546[_0x321b('0x108')];){const _0x132271=_0x490546[_0x3cff14][_0x321b('0xf5')](_0x47878d);_0x490546['splice'](_0x3cff14,0x1,..._0x132271),_0x3cff14+=_0x132271[_0x321b('0x108')];}}return _0x490546;}(_0x310286,_0x4c6ce4);_0x31df50[_0x321b('0x108')]&&this[_0x321b('0xb5')][_0x321b('0xb')](()=>{for(const _0x49483a of _0x31df50){const _0x26c9c8=this[_0x321b('0x5f')][_0x321b('0x10a')]('formatInline',_0x2a3ed6,_0x321b('0xff'));this[_0x321b('0x11d')](()=>_0x26c9c8([_0x49483a],_0x4b6ee1,_0x2f31d6));}});for(const _0x2ea0e7 of _0x24512d){let _0x2c13ff=null,_0x5d11c6=_0x2ea0e7[_0x321b('0xab')],_0x50c97e=_0x2ea0e7['end'];for(const {suggestion:_0x3d073c,meta:_0x54984b}of this[_0x321b('0xc')](_0x2ea0e7,_0x321b('0xb3'))){if(!_0x54984b[_0x321b('0x6f')])continue;if(_0x3d073c['subType']!=_0x2a3ed6)continue;if(!Ot(_0x3d073c,_0x2f31d6))continue;const _0x29db7d=_0x3d073c[_0x321b('0x29')]();if(_0x29db7d['containsRange'](_0x2ea0e7,!0x0))return null;_0x5d11c6=_0x5d11c6[_0x321b('0x2f')](_0x29db7d[_0x321b('0xab')])?_0x5d11c6:_0x29db7d[_0x321b('0xab')],_0x50c97e=_0x50c97e[_0x321b('0x49')](_0x29db7d[_0x321b('0x68')])?_0x50c97e:_0x29db7d[_0x321b('0x68')],_0x2c13ff?_0x29db7d[_0x321b('0xab')]['isBefore'](_0x2c13ff[_0x321b('0x29')]()[_0x321b('0xab')])?(_0x2c13ff['removeMarkers'](),_0x2c13ff=_0x3d073c):_0x3d073c[_0x321b('0x104')]():_0x2c13ff=_0x3d073c;}const _0x4e096e=this[_0x321b('0xb5')][_0x321b('0x61')](_0x5d11c6,_0x50c97e);if(_0x2c13ff)this[_0x321b('0x7f')](_0x2c13ff,_0x4e096e);else{const _0x522470=_0xb98dc5(),_0x8a133e=_0x4c0c77['id'];this[_0x321b('0x43')]({'id':_0x522470,'type':_0x321b('0xc4')+_0x2a3ed6,'data':_0x4b6ee1,'createdAt':new Date(),'authorId':_0x8a133e,'attributes':_0x2f31d6}),this['_addSuggestionMarker'](_0x321b('0xc4')+_0x2a3ed6,_0x522470,_0x8a133e,_0x4e096e);}}return null;}[_0x321b('0xcf')](_0x555bc0,_0x56ced0,_0x11087e=[],_0x4b7cdf=null,_0x6ca28a={}){_0x56ced0[_0x321b('0x13a')]||(_0x56ced0[_0x321b('0x13a')]=_0x56ced0[_0x321b('0x2e')]),_0x56ced0[_0x321b('0x131')]=_0x555bc0['is'](_0x321b('0x78')),_0x4b7cdf=_0x4b7cdf||Nt(_0x56ced0);const _0x4808e2=_0x11087e[_0x321b('0xc9')](_0x5c201c=>jt(_0x5c201c,this[_0x321b('0xb5')])),_0x16f7a0=_0x555bc0['is'](_0x321b('0x78'))?_0x555bc0:jt(_0x555bc0,this[_0x321b('0xb5')]);if(_0x321b('0xdf')===this[_0x321b('0xc3')]){const _0x14bebf=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x4b7cdf,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x14bebf([_0x16f7a0],_0x56ced0,_0x6ca28a)),null;}_0x4808e2[_0x321b('0xad')](_0x16f7a0);let _0x2bd18b=!0x0;for(const _0xb2c402 of _0x4808e2)if(!this['_rangeIsInLocalUserInsertion'](_0xb2c402)){_0x2bd18b=!0x1;break;}if(_0x2bd18b&&_0x321b('0x55')!==this[_0x321b('0xc3')]){const _0x372859=this[_0x321b('0x5f')][_0x321b('0x10a')]('formatBlock',_0x4b7cdf,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x372859([_0x16f7a0],_0x56ced0,_0x6ca28a)),null;}let _0x4a6de3=null,_0x1f0b8f=_0x16f7a0[_0x321b('0xab')],_0x385921=_0x16f7a0[_0x321b('0x68')];for(const {suggestion:_0x488f36,meta:_0x29cc27}of this['_findSuggestions'](_0x16f7a0,_0x321b('0x66'))){if(!_0x29cc27['isOwn'])continue;if(_0x29cc27['isNextTo']||_0x29cc27[_0x321b('0xb8')]||_0x29cc27[_0x321b('0xfd')])continue;if(_0x488f36[_0x321b('0x42')][_0x321b('0x13a')]!=_0x56ced0['formatGroupId'])continue;if(!Ot(_0x488f36,_0x6ca28a))continue;const _0x2e2247=_0x488f36[_0x321b('0x29')]();if(_0x488f36[_0x321b('0x12a')]==_0x4b7cdf){if(_0x2e2247['containsRange'](_0x16f7a0,!0x0))return null;_0x1f0b8f=_0x1f0b8f[_0x321b('0x2f')](_0x2e2247[_0x321b('0xab')])?_0x1f0b8f:_0x2e2247['start'],_0x385921=_0x385921[_0x321b('0x49')](_0x2e2247[_0x321b('0x68')])?_0x385921:_0x2e2247[_0x321b('0x68')],_0x4a6de3?_0x2e2247[_0x321b('0xab')]['isBefore'](_0x4a6de3[_0x321b('0x29')]()[_0x321b('0xab')])?(_0x4a6de3['removeMarkers'](),_0x4a6de3=_0x488f36):_0x488f36['removeMarkers']():_0x4a6de3=_0x488f36;}else{const _0x3e73af=_0x16f7a0[_0x321b('0xc1')](_0x2e2247);this[_0x321b('0x1e')](_0x488f36,_0x3e73af);}}const _0x5501fc=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')]('Users')['me'],_0x20ba8c=_0xb98dc5(),_0x42746c=_0x5501fc['id'];if(_0x4a6de3)return this[_0x321b('0x7f')](_0x4a6de3,this[_0x321b('0xb5')][_0x321b('0x61')](_0x1f0b8f,_0x385921)),_0x4a6de3;{const _0x5d8ef4=this[_0x321b('0x43')]({'id':_0x20ba8c,'type':_0x321b('0x136')+_0x4b7cdf,'data':_0x56ced0,'createdAt':new Date(),'authorId':_0x42746c,'attributes':_0x6ca28a});return this[_0x321b('0x75')](_0x321b('0x136')+_0x4b7cdf,_0x20ba8c,_0x42746c,this[_0x321b('0xb5')]['createRange'](_0x1f0b8f,_0x385921)),_0x5d8ef4;}}[_0x321b('0xa5')](_0x5d18c5,_0x18cf81,_0x38ae6e=[],_0x57461d=null,_0x1612f0={}){_0x18cf81[_0x321b('0x13a')]||(_0x18cf81[_0x321b('0x13a')]=_0x18cf81[_0x321b('0x2e')]);const _0x1034d4=_0x5d18c5[0x0];_0x18cf81[_0x321b('0x131')]=_0x1034d4['is'](_0x321b('0x78')),_0x57461d=_0x57461d||Nt(_0x18cf81);const _0x29f1a2=_0x38ae6e[_0x321b('0xc9')](_0xc29970=>jt(_0xc29970,this['_model'])),_0x2424f2=_0x1034d4['is'](_0x321b('0x78'))?_0x5d18c5:_0x5d18c5[_0x321b('0xc9')](_0x2a7d7e=>jt(_0x2a7d7e,this['_model']));if(_0x321b('0xdf')===this[_0x321b('0xc3')]){const _0xea790b=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0xea790b(_0x2424f2,_0x18cf81,_0x1612f0)),null;}_0x29f1a2['push'](..._0x2424f2);let _0x102118=!0x0;for(const _0x5733de of _0x29f1a2)if(!this[_0x321b('0xf8')](_0x5733de)){_0x102118=!0x1;break;}if(_0x102118&&_0x321b('0x55')!==this['_trackFormatChanges']){const _0x597efe=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x597efe(_0x2424f2,_0x18cf81,_0x1612f0)),null;}const _0x353fe3=this['editor'][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'];for(const _0x290041 of this['getSuggestions']()){if(_0x290041[_0x321b('0x14a')]['id']!=_0x353fe3['id'])continue;if(_0x321b('0x66')!=_0x290041[_0x321b('0x143')]||_0x290041['data'][_0x321b('0x13a')]!=_0x18cf81[_0x321b('0x13a')])continue;if(!Ot(_0x290041,_0x1612f0))continue;const _0x5b945b=_0x290041[_0x321b('0x12a')]==_0x57461d;for(let _0x2fb82d=0x0;_0x2fb82d<_0x2424f2[_0x321b('0x108')];_0x2fb82d++){const _0x372330=_0x2424f2[_0x2fb82d];for(const _0xcf7ee7 of _0x290041[_0x321b('0x67')]()){const _0x446cc7=_0xcf7ee7[_0x321b('0xec')]();if(_0x372330['isEqual'](_0x446cc7)){_0x5b945b?(_0x2424f2[_0x321b('0xd0')](_0x2fb82d,0x1),_0x2fb82d--):_0x290041[_0x321b('0x14')](_0xcf7ee7[_0x321b('0xfb')]);break;}}}}if(0x0==_0x2424f2[_0x321b('0x108')])return null;const _0x211774=this['_suggestionFactory'][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xdd'));for(const _0x11ccf7 of this[_0x321b('0x35')]())if(_0x11ccf7['author']['id']==_0x353fe3['id']&&_0x321b('0x66')==_0x11ccf7['type']&&_0x11ccf7['data'][_0x321b('0x13a')]==_0x18cf81['formatGroupId']&&_0x11ccf7[_0x321b('0x12a')]==_0x57461d&&Ot(_0x11ccf7,_0x1612f0)&&(_0x211774(_0x11ccf7[_0x321b('0xfc')](),_0x2424f2)||_0x211774(_0x2424f2,_0x11ccf7['getRanges']()))){for(const _0x11e043 of _0x2424f2)_0x11ccf7[_0x321b('0x92')](_0x11e043);return _0x11ccf7;}const _0xa7ac84=_0xb98dc5(),_0x1662b8=_0x353fe3['id'],_0x1b0d6c=_0x321b('0x136')+_0x57461d,_0x2737a3=this[_0x321b('0x43')]({'id':_0xa7ac84,'type':_0x1b0d6c,'data':_0x18cf81,'createdAt':new Date(),'authorId':_0x1662b8,'attributes':_0x1612f0});for(const _0x38959f of _0x2424f2)this['_addSuggestionMarker'](_0x1b0d6c,_0xa7ac84,_0x1662b8,_0x38959f,_0x33435c[_0x321b('0x24')]());return _0x2737a3;}[_0x321b('0x62')](_0x1029ec,_0x395991=null,_0x46b03a={}){if(_0x1029ec[_0x321b('0x60')])return null;const _0x56b9ed=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))['me'],_0x1abdff=new _0x236dbf(_0x1029ec['start'],_0x1029ec[_0x321b('0x68')]);for(const {suggestion:_0x45cddd,meta:_0x5f3d80}of this[_0x321b('0xc')](_0x1abdff,_0x321b('0xdb')))if(_0x5f3d80[_0x321b('0x6f')]&&!_0x5f3d80['isNextTo']){if(_0x45cddd['isMultiRange']){const _0x2d6516=_0x45cddd[_0x321b('0xfc')]()[_0x321b('0xc8')](_0x332483=>_0x321b('0x11c')!=_0x332483[_0x321b('0x1')][_0x321b('0x93')]);_0x2d6516[_0x321b('0x9b')](_0x2331c8=>_0x1abdff['containsRange'](_0x2331c8,!0x0))&&_0x45cddd[_0x321b('0x5')]();if(_0x2d6516[_0x321b('0x41')](_0x38bb8a=>_0x38bb8a[_0x321b('0x80')](_0x1abdff,!0x0))){const _0x598ead=this['_suggestionFactory'][_0x321b('0x10a')](_0x321b('0x109'),_0x395991,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x598ead([_0x1abdff],null,_0x46b03a)),null;}}else{const _0x49b331=_0x1abdff[_0x321b('0xc1')](_0x45cddd[_0x321b('0x29')]());null!==_0x49b331&&_0x45cddd[_0x321b('0x122')]([_0x49b331],null,_0x46b03a);}}if(_0x1abdff['detach'](),_0x1abdff['isCollapsed']||_0x321b('0x11c')==_0x1abdff['root'][_0x321b('0x93')])return null;let _0x32433e=null,_0x23fcaf=_0x1abdff[_0x321b('0xab')],_0x23ce3d=_0x1abdff[_0x321b('0x68')];const _0x1d25d2=this[_0x321b('0xc')](_0x1abdff,_0x321b('0x109'));for(const {suggestion:_0x15c6fd,meta:_0x3b8bde}of _0x1d25d2){const _0x61b470=this[_0x321b('0xb5')]['createRange'](_0x23fcaf,_0x23ce3d);if(_0x3b8bde[_0x321b('0x6f')]&&(this[_0x321b('0xf0')]||!_0x3b8bde[_0x321b('0xb8')]&&!_0x3b8bde[_0x321b('0xfd')])){if(_0x15c6fd[_0x321b('0xac')]){if(!Ot(_0x15c6fd,_0x46b03a))continue;let _0x1a251f=!0x0;for(const _0x3d3af9 of _0x15c6fd[_0x321b('0xfc')]()){if(_0x3d3af9['containsRange'](_0x61b470,!0x0))return _0x15c6fd;_0x61b470['containsRange'](_0x3d3af9)||(_0x1a251f=!0x1);}_0x1a251f&&_0x15c6fd[_0x321b('0x5')]();}else{const _0x5b2ef6=_0x15c6fd[_0x321b('0x29')]();if(_0x5b2ef6[_0x321b('0x80')](_0x61b470,!0x0))return _0x15c6fd;if(!Ot(_0x15c6fd,_0x46b03a)){_0x61b470[_0x321b('0x80')](_0x5b2ef6)?_0x15c6fd[_0x321b('0x104')]():_0x5b2ef6[_0x321b('0x10')](_0x23fcaf)?_0x23fcaf=_0x5b2ef6[_0x321b('0x68')]:_0x5b2ef6[_0x321b('0x10')](_0x23ce3d)&&(_0x23ce3d=_0x5b2ef6['start']);continue;}_0x23fcaf=_0x23fcaf[_0x321b('0x2f')](_0x5b2ef6['start'])?_0x23fcaf:_0x5b2ef6['start'],_0x23ce3d=_0x23ce3d['isAfter'](_0x5b2ef6[_0x321b('0x68')])?_0x23ce3d:_0x5b2ef6['end'],_0x46b03a=Object[_0x321b('0x4c')]({},_0x15c6fd[_0x321b('0xe')]),_0x32433e?_0x5b2ef6[_0x321b('0xab')][_0x321b('0x2f')](_0x32433e[_0x321b('0x29')]()['start'])?(_0x32433e[_0x321b('0x104')](),_0x32433e=_0x15c6fd):_0x15c6fd['removeMarkers']():_0x32433e=_0x15c6fd;}}}if(_0x32433e)return this[_0x321b('0x7f')](_0x32433e,this[_0x321b('0xb5')]['createRange'](_0x23fcaf,_0x23ce3d)),_0x32433e;{const _0x3f4b57=_0xb98dc5(),_0x23e7e7=this[_0x321b('0xb5')][_0x321b('0x61')](_0x23fcaf,_0x23ce3d),_0x2be176=_0x56b9ed['id'],_0x2aa436=_0x395991?_0x321b('0x31')+_0x395991:_0x321b('0x109'),_0x492812=this[_0x321b('0x43')]({'id':_0x3f4b57,'type':_0x2aa436,'createdAt':new Date(),'authorId':_0x2be176,'attributes':_0x46b03a});return this['_addSuggestionMarker'](_0x2aa436,_0x3f4b57,_0x2be176,_0x23e7e7),_0x492812;}}[_0x321b('0x132')](_0x4d6684,_0x3e3e12=_0x321b('0x11f'),_0xddbe0f={}){const _0x257e44=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'],_0x4c6588=_0x4d6684[_0x321b('0xc9')](_0x30421c=>new _0x236dbf(_0x30421c[_0x321b('0xab')],_0x30421c[_0x321b('0x68')])),_0x533360=new Set();for(const {suggestion:_0x42a219,meta:_0x5b4fda}of this[_0x321b('0xc')](_0x4c6588,_0x321b('0xdb')))_0x5b4fda['isOwn']&&!_0x5b4fda[_0x321b('0xdc')]&&_0x533360['add'](_0x42a219);for(const _0x302565 of _0x533360)if(_0x302565['isMultiRange']){const _0x127962=_0x302565[_0x321b('0xfc')]();(!_0x302565['attributes']||!_0x302565[_0x321b('0xe')][_0x321b('0x8f')])&&(_0x127962['every'](_0x13965b=>_0x4c6588[_0x321b('0x41')](_0x364582=>_0x364582[_0x321b('0x80')](_0x13965b,!0x0)))&&_0x302565[_0x321b('0x5')]());if(_0x4c6588[_0x321b('0x9b')](_0x59ed5d=>_0x127962[_0x321b('0x41')](_0x317654=>_0x317654[_0x321b('0x80')](_0x59ed5d,!0x0)))){const _0x5b3a31=this[_0x321b('0x5f')]['getSuggestionCallback'](_0x321b('0x109'),_0x3e3e12,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x5b3a31(_0x4d6684,null,_0xddbe0f)),null;}}else{const _0x1da255=_0x302565[_0x321b('0x29')]();_0x4c6588[_0x321b('0x41')](_0x4de98a=>_0x4de98a[_0x321b('0x80')](_0x1da255,!0x0))&&_0x302565[_0x321b('0x5')]();if(_0x4c6588[_0x321b('0x9b')](_0x3e647f=>_0x1da255['containsRange'](_0x3e647f,!0x0))){const _0xe04808=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x109'),_0x3e3e12,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0xe04808(_0x4c6588,null,_0xddbe0f)),null;}}const _0x504ce7=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x109'),_0x3e3e12,_0x321b('0xdd'));let _0x27611a=null;for(const _0x12cf91 of this[_0x321b('0x35')]())if(_0x12cf91[_0x321b('0x14a')]['id']==_0x257e44['id']&&_0x12cf91[_0x321b('0x34')]&&_0x321b('0x109')==_0x12cf91['type']&&_0x12cf91[_0x321b('0x12a')]==_0x3e3e12&&Ot(_0x12cf91,_0xddbe0f)&&(_0x504ce7(_0x12cf91[_0x321b('0xfc')](),_0x4c6588)||_0x504ce7(_0x4c6588,_0x12cf91['getRanges']()))){if(_0x27611a){if(_0x12cf91[_0x321b('0xe0')]&&_0x12cf91['commentThread'][_0x321b('0x108')])continue;for(const _0x54518a of _0x12cf91[_0x321b('0xfc')]())_0x27611a['isIntersectingWithRange'](_0x54518a)||_0x27611a[_0x321b('0x92')](_0x54518a);_0x12cf91[_0x321b('0x104')]();}else{_0x27611a=_0x12cf91;for(const _0x4c7eb7 of _0x4c6588)_0x12cf91[_0x321b('0x88')](_0x4c7eb7)||_0x12cf91[_0x321b('0x92')](_0x4c7eb7);}}if(_0x27611a)return _0x27611a;_0x533360['clear']();for(const {suggestion:_0x382f84,meta:_0x3c0552}of this['_findSuggestions'](_0x4c6588,_0x321b('0x109')))_0x3c0552['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c0552['containsRangeInObject']&&!_0x3c0552[_0x321b('0xfd')])&&Ot(_0x382f84,_0xddbe0f)&&_0x533360[_0x321b('0x129')](_0x382f84);for(const _0x1978fd of _0x533360){const _0x484553=_0x1978fd[_0x321b('0xfc')]();if(!_0xddbe0f||!_0xddbe0f['skipNestingCheck']){if(_0x4c6588[_0x321b('0x9b')](_0x307787=>_0x484553[_0x321b('0x41')](_0x1a76e4=>_0x1a76e4[_0x321b('0x80')](_0x307787,!0x0))))return _0x1978fd;}(!_0x1978fd['attributes']||!_0x1978fd[_0x321b('0xe')][_0x321b('0x8f')])&&(_0x484553[_0x321b('0x9b')](_0x1040bc=>_0x4c6588[_0x321b('0x41')](_0x3f4390=>_0x3f4390[_0x321b('0x80')](_0x1040bc,!0x0)))&&_0x1978fd[_0x321b('0x5')]());}const _0x256117=_0xb98dc5(),_0x5a527f=_0x257e44['id'],_0x51ee98=_0x321b('0x31')+_0x3e3e12,_0xe685b2=this['_setSuggestionData']({'id':_0x256117,'type':_0x51ee98,'createdAt':new Date(),'authorId':_0x5a527f,'attributes':_0xddbe0f});for(const _0x2256f5 of _0x4c6588)_0x2256f5['detach'](),_0x2256f5[_0x321b('0x60')]||_0x321b('0x11c')==_0x2256f5['root'][_0x321b('0x93')]||this[_0x321b('0x75')](_0x51ee98,_0x256117,_0x5a527f,_0x2256f5,_0x33435c[_0x321b('0x24')]());return _0xe685b2;}[_0x321b('0x7f')](_0x12967f,_0x45fc6e){const _0x23b6f3=_0x12967f[_0x321b('0x90')]();this[_0x321b('0xb5')][_0x321b('0xb')](_0x5e2426=>{_0x5e2426[_0x321b('0xb4')](_0x23b6f3,{'range':_0x45fc6e});});}[_0x321b('0x9c')](_0x53b48e){const _0x2eb982=_0x53b48e['id'],_0x24a1e2=this[_0x321b('0x113')][_0x321b('0x4d')][_0x321b('0xd5')](_0x321b('0x3e'));this['_commentsRepository'][_0x321b('0xa7')](_0x2eb982)||this[_0x321b('0x46')][_0x321b('0x5e')]({'channelId':_0x24a1e2,'threadId':_0x2eb982,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x71a6d4=this[_0x321b('0x46')][_0x321b('0x140')](_0x2eb982);_0x71a6d4[_0x321b('0x13d')]('isRemovable'),_0x71a6d4[_0x321b('0x44')]=!0x1,_0x53b48e[_0x321b('0xe0')]=_0x71a6d4;}['_checkSuggestionCorrectness'](_0x3d85aa,_0x7001a4,_0x28dd31,_0x218563){if(_0x3d85aa[_0x321b('0x143')]!=_0x7001a4||_0x3d85aa['subType']!=_0x28dd31||_0x3d85aa['creator']['id']!=_0x218563)throw this[_0x321b('0x113')][_0x321b('0x17')](_0x321b('0x4')),new _0x5e6c46('track-changes-suggestion-data-mismatch',this);}[_0x321b('0x1e')](_0x34fb89,_0x1975be){const _0x504b26=_0x34fb89['getFirstRange']();if(_0x1975be[_0x321b('0x6d')](_0x504b26))_0x34fb89[_0x321b('0x104')]();else{if(_0x504b26['containsRange'](_0x1975be)){const _0x114f63=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0xab')]['nodeBefore'],_0x321b('0x68'));this['_setSuggestionRange'](_0x34fb89,this[_0x321b('0xb5')][_0x321b('0x61')](_0x504b26['start'],_0x114f63));const _0x34c4e9=_0xb98dc5(),_0x1fd7df=_0x34fb89[_0x321b('0x8d')]['id'],_0x47c5b0=_0x34fb89[_0x321b('0x143')]+':'+_0x34fb89['subType'];this[_0x321b('0x43')]({'id':_0x34c4e9,'type':_0x47c5b0,'createdAt':new Date(),'authorId':_0x1fd7df,'data':_0x34fb89[_0x321b('0x42')],'attributes':_0x34fb89[_0x321b('0xe')]});const _0x4d0e31=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0x68')]['parent'],_0x321b('0x13')),_0x27124e=this['_model'][_0x321b('0x61')](_0x4d0e31,_0x504b26[_0x321b('0x68')]);this[_0x321b('0x75')](_0x47c5b0,_0x34c4e9,_0x1fd7df,_0x27124e);}else{if(_0x504b26['containsPosition'](_0x1975be[_0x321b('0xab')])){const _0x2835d1=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0xab')][_0x321b('0x52')],_0x321b('0x68'));this[_0x321b('0x7f')](_0x34fb89,this['_model'][_0x321b('0x61')](_0x504b26['start'],_0x2835d1));}else{const _0x1587dc=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0x68')]['parent'],_0x321b('0x13'));this[_0x321b('0x7f')](_0x34fb89,this['_model'][_0x321b('0x61')](_0x1587dc,_0x504b26[_0x321b('0x68')]));}}}}[_0x321b('0xf8')](_0x2acac6){for(const {suggestion:_0x185f63,meta:_0x42bb0a}of this[_0x321b('0xc')](_0x2acac6,_0x321b('0xdb'))){if(!_0x42bb0a[_0x321b('0x6f')])continue;const _0x5a7ff5=_0x185f63[_0x321b('0xfc')]();for(const _0x147023 of _0x5a7ff5)if(!_0x2acac6[_0x321b('0xf5')](_0x147023)['length'])return!0x0;}return!0x1;}[_0x321b('0x8a')](_0xfc1ede){const _0x25747f=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))[_0x321b('0x91')](_0xfc1ede);if(!_0x25747f)throw new _0x5e6c46(_0x321b('0xc7'),this);return _0x25747f;}['_getExternalAuthor'](_0x2b326f){const _0x46066d=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133')),_0x37cb79=_0x487437(_0x321b('0x19')+_0x2b326f),_0x5c592f=_0x46066d[_0x321b('0x91')](_0x37cb79);return _0x5c592f||_0x46066d[_0x321b('0x94')]({'id':_0x37cb79,'name':_0x2b326f});}[_0x321b('0xd1')](_0x40c7fb,_0x3342ec,_0x3d843d,_0x4b4dd8,_0x5ab4b9){const _0x107ca3=this[_0x321b('0x8a')](_0x4b4dd8),_0x5222ca=this['_suggestionFactory']['buildSuggestion'](_0x40c7fb,_0x3342ec,_0x3d843d,_0x107ca3,_0x5ab4b9,_0x2baa09=>this[_0x321b('0x18')](_0x3d843d,{'attributes':_0x2baa09}));return this[_0x321b('0xf1')](_0x5222ca,_0x321b('0xff'),()=>{this[_0x321b('0x18')](_0x3d843d,{'state':_0x321b('0xea')});},{'priority':_0x321b('0xaa')}),this['listenTo'](_0x5222ca,_0x321b('0x5'),()=>{this[_0x321b('0x18')](_0x3d843d,{'state':_0x321b('0x9e')});},{'priority':'high'}),this[_0x321b('0xb7')][_0x321b('0x12')](_0x3d843d,_0x5222ca),this[_0x321b('0xd9')][_0x321b('0x12')](_0x5222ca,_0x321b('0x14b')),_0x5222ca;}[_0x321b('0x70')](_0x3298bc){const _0x250c30=_0x3298bc[_0x321b('0xf4')](':');return{'group':_0x250c30[0x0],'type':_0x250c30[0x1],'subType':_0x250c30[_0x321b('0x108')]>=0x5?_0x250c30[0x2]:null,'id':_0x250c30[_0x321b('0x108')]<0x5?_0x250c30[0x2]:_0x250c30[0x3],'authorId':_0x250c30[_0x321b('0x108')]<0x5?_0x250c30[0x3]:_0x250c30[0x4],'markerCount':0x6==_0x250c30[_0x321b('0x108')]?_0x250c30[0x5]:null};}[_0x321b('0x81')](_0x56823e,_0x30c64d,_0x4c550d){const _0x4c8410=_0x56823e[_0x321b('0x29')](),_0x155b0d=_0x4c8410[_0x321b('0xab')],_0x10ee49=_0x4c8410[_0x321b('0x68')];this[_0x321b('0x7f')](_0x56823e,this[_0x321b('0xb5')]['createRange'](_0x155b0d,_0x30c64d));const _0x44df37=_0xb98dc5(),_0x2a6266=_0x56823e['creator']['id'],_0x43ce7c=_0x56823e['type']+(_0x56823e['subType']?':'+_0x56823e['subType']:'');this[_0x321b('0x43')]({'id':_0x44df37,'type':_0x43ce7c,'createdAt':new Date(),'authorId':_0x2a6266,'originalSuggestionId':_0x56823e['id'],'attributes':_0x56823e['attributes'],'data':_0x56823e[_0x321b('0x42')]}),_0x321b('0x66')==_0x56823e[_0x321b('0x143')]&&(_0x4c550d=this[_0x321b('0xb5')][_0x321b('0xfa')](_0x4c550d[_0x321b('0x8b')])),this[_0x321b('0x75')](_0x43ce7c,_0x44df37,_0x2a6266,this[_0x321b('0xb5')][_0x321b('0x61')](_0x4c550d,_0x10ee49));}[_0x321b('0xc')](_0x518264,_0x5eb1c4=null){const _0x5b27ca=[],_0x2bc4c9=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'];Array[_0x321b('0x3f')](_0x518264)||(_0x518264=[_0x518264]);for(const _0x29e18b of this[_0x321b('0x35')]()){if(!_0x29e18b[_0x321b('0x34')])continue;if(_0x5eb1c4&&_0x29e18b['type']!=_0x5eb1c4)continue;let _0x1cea67=!0x1;for(const _0x4e5ceb of _0x29e18b[_0x321b('0xfc')]()){for(const _0x159285 of _0x518264){const _0x597960=_0x159285[_0x321b('0xab')][_0x321b('0x6d')](_0x4e5ceb[_0x321b('0x68')])||_0x159285[_0x321b('0x68')][_0x321b('0x6d')](_0x4e5ceb[_0x321b('0xab')]);if(_0x597960||_0x159285[_0x321b('0xc1')](_0x4e5ceb)){const _0x34ff63=_0x159285[_0x321b('0x80')](_0x4e5ceb)&&_t(this[_0x321b('0xb5')][_0x321b('0x79')],_0x4e5ceb[_0x321b('0xab')],_0x159285),_0x25f2d9=_0x4e5ceb[_0x321b('0x80')](_0x159285)&&_t(this['_model']['schema'],_0x159285[_0x321b('0xab')],_0x4e5ceb);_0x5b27ca[_0x321b('0xad')]({'suggestion':_0x29e18b,'meta':{'isOwn':_0x2bc4c9==_0x29e18b[_0x321b('0x14a')],'isNextTo':_0x597960,'isInsideObject':_0x34ff63,'containsRangeInObject':_0x25f2d9}}),_0x1cea67=!0x0;break;}}if(_0x1cea67)break;}}return _0x5b27ca;}[_0x321b('0x75')](_0x49927a,_0x515fe3,_0x13934a,_0x3f21d4,_0x120c0c){this['_model'][_0x321b('0xb')](_0x2aaebb=>{let _0x344a43=_0x321b('0x2')+_0x49927a+':'+_0x515fe3+':'+_0x13934a;_0x120c0c&&(_0x344a43=_0x344a43+':'+_0x120c0c),_0x2aaebb[_0x321b('0x110')](_0x344a43,{'range':_0x3f21d4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x321b('0x5b')](_0x3b70eb){const _0x54573e=_0x3b70eb['previous'],_0x5c0a6b=_0x3b70eb[_0x321b('0x22')];_0x3b70eb[_0x321b('0x126')]=null,null!=_0x54573e&&(_0x54573e[_0x321b('0x22')]=null),_0x3b70eb[_0x321b('0x22')]=null,null!=_0x5c0a6b&&(_0x5c0a6b[_0x321b('0x126')]=null),'ready'==this[_0x321b('0xd9')][_0x321b('0xd5')](_0x3b70eb)&&(this[_0x321b('0xd9')][_0x321b('0x12')](_0x3b70eb,_0x321b('0x128')),this[_0x321b('0x1d')]('suggestionUnloaded',_0x3b70eb,_0x54573e,_0x5c0a6b));}['_setSuggestionData'](_0x3f683f){const _0x4a693e=_0x3f683f['id'],_0x39bbd8=this[_0x321b('0x102')](_0x3f683f);if(this[_0x321b('0x71')]&&this[_0x321b('0x71')][_0x321b('0x63')]){const _0xb68a44=this[_0x321b('0x113')][_0x321b('0xbc')]['get']('PendingActions'),_0x2ec882=_0x39bbd8[_0x321b('0xf')],_0x1adde4=_0x39bbd8[_0x321b('0x12a')]?_0x39bbd8['type']+':'+_0x39bbd8[_0x321b('0x12a')]:_0x39bbd8[_0x321b('0x143')],_0x3d9ed6=this['editor'][_0x321b('0x15')],_0xfd133d=_0xb68a44[_0x321b('0x129')](_0x7e15ee(_0x3d9ed6,_0x321b('0x47'))),_0x5afb66={'id':_0x4a693e,'type':_0x1adde4,'hasComments':_0x2ec882,'data':_0x3f683f[_0x321b('0x42')]||null,'originalSuggestionId':_0x3f683f['originalSuggestionId']||null,'attributes':_0x39bbd8[_0x321b('0xe')]};this[_0x321b('0x71')][_0x321b('0x63')](_0x5afb66)[_0x321b('0x13b')](_0xaa09b1=>{_0x39bbd8[_0x321b('0x10c')]=!0x0,_0xb68a44['remove'](_0xfd133d),_0xaa09b1&&_0xaa09b1[_0x321b('0x130')]&&(this[_0x321b('0xb7')]['get'](_0x4a693e)['createdAt']=_0xaa09b1['createdAt']);})[_0x321b('0x9f')](_0x3980ef=>{throw _0x3f53b3(_0x321b('0x50')),this[_0x321b('0x113')][_0x321b('0x10f')][_0x321b('0x148')]({'isUndoable':!0x1},()=>{_0x39bbd8[_0x321b('0x5')]();}),_0x39bbd8[_0x321b('0x27')](),this['_suggestions'][_0x321b('0x56')](_0x39bbd8['id']),this[_0x321b('0xd9')][_0x321b('0x56')](_0x39bbd8),_0x3980ef;});}return _0x39bbd8;}[_0x321b('0x18')](_0x570907,_0x4ec627){const _0x5297ee=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')]('PendingActions'),_0xeeb20f=this[_0x321b('0x33')](_0x570907);if(this[_0x321b('0x71')]&&this['_adapter'][_0x321b('0xef')]){if(_0xeeb20f['_saved']){const _0x5efcce=_0x5297ee[_0x321b('0x129')](_0x7e15ee(this[_0x321b('0x113')][_0x321b('0x15')],_0x321b('0x47')));this[_0x321b('0x71')]['updateSuggestion'](_0x570907,_0x4ec627)['then'](()=>{_0x5297ee[_0x321b('0x3a')](_0x5efcce);});}else _0xeeb20f['on']('change:_saved',()=>{this[_0x321b('0x18')](_0x570907,_0x4ec627);});}}[_0x321b('0x123')](_0x42eefa){if(!this[_0x321b('0x71')]||!this['_adapter'][_0x321b('0x33')])throw new _0x5e6c46('track-changes-adapter-missing-getsuggestion',this);return this[_0x321b('0x71')][_0x321b('0x33')](_0x42eefa);}[_0x321b('0x7a')](_0x584829){const {id:_0x5b8ec3,type:_0x50c098,subType:_0x5884d3,authorId:_0x107b08}=this['_splitMarkerName'](_0x584829),_0x95e370=this[_0x321b('0xb7')]['get'](_0x5b8ec3)||this[_0x321b('0xd1')](_0x50c098,_0x5884d3,_0x5b8ec3,_0x107b08,{});switch(this[_0x321b('0xae')](_0x95e370,_0x50c098,_0x5884d3,_0x107b08),this[_0x321b('0xd9')][_0x321b('0xd5')](_0x95e370)){case'notReady':this[_0x321b('0x123')](_0x5b8ec3)['then'](_0x24aa13=>{let _0x18630a=Promise[_0x321b('0x12e')]();_0x24aa13['hasComments']&&(_0x18630a=this['_commentsRepository'][_0x321b('0xa2')]({'channelId':this[_0x321b('0x113')]['config'][_0x321b('0xd5')](_0x321b('0x3e')),'threadId':_0x5b8ec3})),_0x18630a[_0x321b('0x13b')](()=>{this[_0x321b('0x102')](_0x24aa13)[_0x321b('0x10c')]=!0x0;});}),this[_0x321b('0xd9')][_0x321b('0x12')](_0x95e370,_0x321b('0x114'));break;case _0x321b('0x128'):this[_0x321b('0x18')](_0x5b8ec3,{'state':_0x321b('0x64')});case _0x321b('0x72'):this[_0x321b('0xd9')][_0x321b('0x12')](_0x95e370,_0x321b('0xde')),this['fire'](_0x321b('0x147'),_0x95e370);break;case'ready':this[_0x321b('0x1d')](_0x321b('0x28'),_0x95e370);}return _0x95e370[_0x321b('0x144')](_0x584829),_0x95e370;}[_0x321b('0x13e')](_0x1ac5c4){const _0x223635=Array[_0x321b('0x121')](_0x1ac5c4)[_0x321b('0xc8')](_0x4324e2=>!_0x4324e2[_0x321b('0xac')]),_0x186ecc=this[_0x321b('0x35')]({'skipNotAttached':!0x0})['filter'](_0x53ca10=>!_0x53ca10[_0x321b('0xac')]),_0x5e1f5e=_0x186ecc['filter'](_0x2b732d=>!_0x1ac5c4[_0x321b('0xcb')](_0x2b732d)),_0x175bfb=new Map(_0x186ecc['map'](_0x55851d=>[_0x55851d,this[_0x321b('0x5f')][_0x321b('0x10a')](_0x55851d[_0x321b('0x143')],_0x55851d[_0x321b('0x12a')],'chain')])),_0x194a92=new Map(_0x186ecc[_0x321b('0xc9')](_0x56d841=>[_0x56d841,_0x56d841[_0x321b('0x29')]()])),_0x1dbf61=new Set(),_0x3fd80f=new Set();for(let _0x19a116=0x0;_0x19a116<_0x223635['length'];_0x19a116++)_0x22ccef(_0x223635[_0x19a116],_0x223635,_0x19a116+0x1);for(let _0x53c5ec=0x0;_0x53c5ec<_0x223635[_0x321b('0x108')];_0x53c5ec++)_0x22ccef(_0x223635[_0x53c5ec],_0x5e1f5e,0x0);for(let _0x5b95b0=0x0;_0x5b95b0<_0x223635[_0x321b('0x108')];_0x5b95b0++){const _0x38f8c6=_0x223635[_0x5b95b0];!_0x3fd80f[_0x321b('0xcb')](_0x38f8c6)&&_0x38f8c6['previous']&&(_0x38f8c6[_0x321b('0x126')][_0x321b('0x22')]===_0x38f8c6&&(_0x38f8c6[_0x321b('0x126')][_0x321b('0x22')]=null),_0x38f8c6[_0x321b('0x126')]=null),!_0x1dbf61[_0x321b('0xcb')](_0x38f8c6)&&_0x38f8c6[_0x321b('0x22')]&&(_0x38f8c6[_0x321b('0x22')][_0x321b('0x126')]===_0x38f8c6&&(_0x38f8c6[_0x321b('0x22')][_0x321b('0x126')]=null),_0x38f8c6['next']=null);}function _0x22ccef(_0x700805,_0x174a5f,_0x2de987){for(let _0x112f3d=_0x2de987;_0x112f3d<_0x174a5f[_0x321b('0x108')];_0x112f3d++){const _0x1b0e5c=_0x134c0d(_0x700805,_0x174a5f[_0x112f3d]);_0x1b0e5c&&(_0x1b0e5c[0x0][_0x321b('0x22')]=_0x1b0e5c[0x1],_0x1b0e5c[0x1][_0x321b('0x126')]=_0x1b0e5c[0x0],_0x1dbf61[_0x321b('0x129')](_0x1b0e5c[0x0]),_0x3fd80f['add'](_0x1b0e5c[0x1]));}}function _0x134c0d(_0x5b673d,_0x2c7712){if(_0x5b673d[_0x321b('0x14a')]['id']!==_0x2c7712[_0x321b('0x14a')]['id'])return null;const _0x5d65e4=_0x175bfb[_0x321b('0xd5')](_0x5b673d)(_0x5b673d,_0x2c7712,_0x194a92[_0x321b('0xd5')](_0x5b673d),_0x194a92[_0x321b('0xd5')](_0x2c7712));if(!_0x5d65e4)return null;return _0x175bfb['get'](_0x2c7712)(_0x5b673d,_0x2c7712,_0x194a92[_0x321b('0xd5')](_0x5b673d),_0x194a92[_0x321b('0xd5')](_0x2c7712))?_0x5d65e4[0x1]['commentThread']&&_0x5d65e4[0x1]['commentThread']['length']?null:_0x5d65e4:null;}}[_0x321b('0xe9')](_0x275845){const _0x4505a9=Array[_0x321b('0x121')](_0x275845),_0xcf4e19=this['getSuggestions']({'skipNotAttached':!0x0}),_0x36e415=_0xcf4e19[_0x321b('0xc8')](_0x3c2f7d=>!_0x275845['has'](_0x3c2f7d)),_0x4778a0=new Map(_0x4505a9['map'](_0x406738=>[_0x406738,this[_0x321b('0x5f')][_0x321b('0x10a')](_0x406738[_0x321b('0x143')],_0x406738[_0x321b('0x12a')],_0x321b('0xdd'))])),_0x2c2126=new Map(_0xcf4e19[_0x321b('0xc9')](_0x287879=>[_0x287879,_0x287879[_0x321b('0xfc')]()]));for(let _0x4aa469=0x0;_0x4aa469<_0x4505a9[_0x321b('0x108')];_0x4aa469++){if(_0x3df4cd(this,_0x4505a9[_0x4aa469],_0x4505a9,_0x4aa469+0x1))return!0x0;}for(let _0x32664e=0x0;_0x32664e<_0x4505a9['length'];_0x32664e++){if(_0x3df4cd(this,_0x4505a9[_0x32664e],_0x36e415,0x0))return!0x0;}return!0x1;function _0x3df4cd(_0x7bf89,_0x335d00,_0x4856ab,_0x530fae){for(let _0x4b9d95=_0x530fae;_0x4b9d95<_0x4856ab[_0x321b('0x108')];_0x4b9d95++){const _0x3852fa=_0x4856ab[_0x4b9d95];if(_0x3852fa[_0x321b('0x143')]!==_0x335d00[_0x321b('0x143')]||_0x3852fa[_0x321b('0x14a')]['id']!==_0x335d00[_0x321b('0x14a')]['id']||_0x3852fa['subType']!==_0x335d00[_0x321b('0x12a')])continue;if(!Ut(_0x335d00,_0x3852fa))continue;const _0x49d622=_0x4778a0[_0x321b('0xd5')](_0x335d00),_0x4b7ae1=_0x2c2126[_0x321b('0xd5')](_0x335d00),_0x149270=_0x2c2126[_0x321b('0xd5')](_0x3852fa),_0x4fb6c1=_0x335d00[_0x321b('0xe0')]&&_0x335d00[_0x321b('0xe0')][_0x321b('0x108')],_0x4eafe2=_0x3852fa[_0x321b('0xe0')]&&_0x3852fa['commentThread'][_0x321b('0x108')];if(!_0x4fb6c1&&_0x49d622(_0x149270,_0x4b7ae1))return _0x7bf89[_0x321b('0xb6')](_0x3852fa,_0x335d00),_0x2c2126[_0x321b('0x56')](_0x335d00),!0x0;if(!_0x4eafe2&&_0x49d622(_0x4b7ae1,_0x149270))return _0x7bf89[_0x321b('0xb6')](_0x335d00,_0x3852fa),_0x2c2126[_0x321b('0x56')](_0x3852fa),!0x0;}return!0x1;}}[_0x321b('0xb6')](_0x50b471,_0x2ec12e){if(_0x50b471[_0x321b('0xac')])for(const _0x10ccc4 of _0x2ec12e['getRanges']())_0x50b471['addRange'](_0x10ccc4);else{const _0x580aca=_0x2ec12e[_0x321b('0x29')]()[_0x321b('0x68')];this[_0x321b('0x7f')](_0x50b471,this[_0x321b('0xb5')]['createRange'](_0x50b471[_0x321b('0x29')]()['start'],_0x580aca));}_0x2ec12e['removeMarkers']();}}class Bt{constructor(_0x1cc07e){this['_editor']=_0x1cc07e,this[_0x321b('0xb5')]=_0x1cc07e[_0x321b('0x10f')],this['_customCallbacks']=new Map(),this[_0x321b('0x53')]=new Map(),this[_0x321b('0xeb')]();}[_0x321b('0xa8')](_0x3892d8,_0xce5b06,_0x5b75d7,_0x260ac4,_0x11bd57,_0x573b7a){return new _0x33435c(this[_0x321b('0xb5')],{'type':_0x3892d8,'subType':_0xce5b06,'id':_0x5b75d7,'author':_0x260ac4,'creator':_0x260ac4,'attributes':_0x11bd57,'onAttributesChange':_0x573b7a,'onAccept':(..._0x283b92)=>this[_0x321b('0x10a')](_0x3892d8,_0xce5b06,_0x321b('0xff'))(..._0x283b92),'onDiscard':(..._0x4942c9)=>this[_0x321b('0x10a')](_0x3892d8,_0xce5b06,'discard')(..._0x4942c9)});}[_0x321b('0x39')](_0xb633c7,_0x2e6b33,_0x2ef2aa,_0x11461e){const _0x2301c2=_0xb633c7+':'+_0x2e6b33+':'+_0x2ef2aa;this['_customCallbacks'][_0x321b('0x12')](_0x2301c2,_0x11461e);}[_0x321b('0x10a')](_0x9189da,_0x5b9ea7,_0x1cfe81){const _0x3ba4bf=_0x9189da+':'+_0x5b9ea7+':'+_0x1cfe81;return this[_0x321b('0xa9')][_0x321b('0xd5')](_0x3ba4bf)||this['_defaultCallbacks'][_0x321b('0xd5')](_0x9189da+':'+_0x1cfe81);}[_0x321b('0xeb')](){const _0xfcf486=()=>!0x1,_0x11498b=_0x26a31f=>{_0x26a31f['sort']((_0x586620,_0x636366)=>_0x586620[_0x321b('0xab')]['isBefore'](_0x636366[_0x321b('0xab')])?0x1:-0x1),this['_model'][_0x321b('0xb')](_0x34eaae=>{for(const _0x191b1f of _0x26a31f){let _0x1c5ea7;_0x1c5ea7=_0x191b1f[_0x321b('0x68')][_0x321b('0x101')]&&_0x191b1f[_0x321b('0x68')][_0x321b('0x8b')]==_0x191b1f[_0x321b('0xab')]['nodeAfter']?_0x34eaae[_0x321b('0xa4')](_0x191b1f[_0x321b('0xab')][_0x321b('0x87')],'on'):_0x34eaae[_0x321b('0xa4')](_0x191b1f),this[_0x321b('0xb5')][_0x321b('0x10e')](_0x1c5ea7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5eb918=(_0x4e79c9,_0x8e2124)=>{this[_0x321b('0xb5')][_0x321b('0xb')](_0x45d5a3=>{const {commandName:_0x1cd4dc,commandParams:_0x4c4579=[]}=_0x8e2124,_0x4d0da0=_0x4e79c9[_0x321b('0xc9')](_0x403a06=>(Mt(_0x403a06)&&(_0x403a06=this[_0x321b('0xb5')][_0x321b('0x61')](_0x403a06['end'])),_0x403a06))[_0x321b('0xc8')](_0x3dc2de=>_0x321b('0x11c')!==_0x3dc2de[_0x321b('0x1')]['rootName']);if(_0x4d0da0[_0x321b('0x108')]<0x1)return;const _0x43be94=Array['from'](this[_0x321b('0xb5')][_0x321b('0xd')]['selection'][_0x321b('0xfc')]())[_0x321b('0xc9')](_0x4fd7c6=>_0x236dbf[_0x321b('0x96')](_0x4fd7c6));_0x45d5a3[_0x321b('0x3c')](_0x4d0da0);for(const _0x33fc5e of this[_0x321b('0x69')]['commands']['commands']())_0x33fc5e[_0x321b('0x100')]();_0x4c4579[_0x321b('0xad')]({'forceDefaultExecution':!0x0}),this[_0x321b('0x69')][_0x321b('0x138')](_0x1cd4dc,..._0x4c4579);const _0x2f9cbe=_0x43be94['filter'](_0x5e776b=>_0x321b('0x11c')!=_0x5e776b['root'][_0x321b('0x93')]);_0x2f9cbe[_0x321b('0x108')]>0x0&&_0x45d5a3['setSelection'](_0x2f9cbe);for(const _0x45a5c6 of _0x43be94)_0x45a5c6[_0x321b('0x120')]();});},_0xdfec37=(_0x10b74a,_0x4aaab0)=>0x1==_0x10b74a[_0x321b('0x108')]&&0x1==_0x4aaab0[_0x321b('0x108')]&&_0x10b74a[0x0]['end'][_0x321b('0x6d')](_0x4aaab0[0x0][_0x321b('0xab')]),_0x10cf8a=(_0x59f181,_0x204a12,_0x2fbe0a,_0x2308b9)=>xt(_0x59f181,_0x204a12,_0x2fbe0a,_0x2308b9,this[_0x321b('0xb5')])?[_0x59f181,_0x204a12]:xt(_0x204a12,_0x59f181,_0x2308b9,_0x2fbe0a,this['_model'])?[_0x204a12,_0x59f181]:null;this[_0x321b('0x53')]['set'](_0x321b('0x12f'),_0xfcf486),this[_0x321b('0x53')]['set']('insertion:discard',_0x11498b),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0xca'),_0xdfec37),this[_0x321b('0x53')]['set'](_0x321b('0x8c'),_0x10cf8a),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x4e'),_0x11498b),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x8'),_0xfcf486),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x103'),_0xdfec37),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0xc2'),_0x10cf8a),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x86'),_0x5eb918),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x45'),_0xfcf486),this[_0x321b('0x53')]['set'](_0x321b('0x1c'),_0xdfec37),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0xda'),_0xfcf486),this[_0x321b('0x53')]['set'](_0x321b('0x11'),_0x5eb918),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x9a'),_0xfcf486),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0x146'),_0xdfec37),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0x105'),_0xfcf486);}}function _t(_0x36ee35,_0x5b912c,_0x33b634){for(const _0x30ff29 of _0x5b912c['parent'][_0x321b('0x82')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x30ff29[_0x321b('0x1')]==_0x30ff29)return!0x1;if(!_0x33b634[_0x321b('0x116')](_0x30ff29))return!0x1;if(_0x36ee35['isObject'](_0x30ff29)||_0x36ee35[_0x321b('0x106')](_0x30ff29))return!0x0;}return!0x1;}function Mt(_0x45674f){return _0x45674f['end'][_0x321b('0x8b')]==_0x45674f[_0x321b('0xab')][_0x321b('0x87')]&&_0x45674f[_0x321b('0x68')][_0x321b('0xce')];}function $t(_0x3e2b87,_0x4fd034,_0x2d271c,_0x2201ad){const _0x470ce9=_0x58da4d=>!_0x58da4d[_0x321b('0x3b')]['is'](_0x321b('0x84'))&&!_0x2201ad[_0x321b('0x21')](_0x58da4d[_0x321b('0x3b')]),_0x174b21=_0x3e2b87[_0x321b('0xab')][_0x321b('0x149')](_0x470ce9),_0x4f7a66=_0x3e2b87['end'][_0x321b('0x149')](_0x470ce9,{'direction':_0x321b('0x54')});return(!_0x3e2b87[_0x321b('0xab')][_0x321b('0x6d')](_0x174b21)||!_0x3e2b87['end']['isEqual'](_0x4f7a66))&&(_0x174b21[_0x321b('0x2f')](_0x4f7a66)?_0x2d271c[_0x321b('0xb4')](_0x4fd034,{'range':_0x2d271c['createRange'](_0x174b21,_0x4f7a66)}):_0x2d271c[_0x321b('0x14')](_0x4fd034),!0x0);}function Nt(_0x3fe3ef){return _0x487437(_0x3fe3ef);}function Rt(_0x434dd1){const _0x11277c=_0x434dd1[_0x321b('0xab')]['nodeAfter'];return _0x11277c&&_0x11277c['is']('element');}function jt(_0x60e410,_0x4bfd18){const _0xdf0b36=_0x4bfd18[_0x321b('0x79')][_0x321b('0x21')](_0x60e410)||_0x4bfd18[_0x321b('0x79')]['isSelectable'](_0x60e410);return _0x4bfd18['createRange'](_0x4bfd18[_0x321b('0xe6')](_0x60e410,_0x321b('0xf6')),_0xdf0b36?_0x4bfd18[_0x321b('0x6c')](_0x60e410):_0x4bfd18[_0x321b('0xe6')](_0x60e410,_0x321b('0x68')));}function xt(_0x922478,_0x39fbc9,_0x3005a1,_0xda2e92,_0x4b85ca){if(!Ut(_0x922478,_0x39fbc9))return!0x1;if(_0x3005a1[_0x321b('0x68')]['isEqual'](_0xda2e92[_0x321b('0xab')]))return!0x0;if(_0x922478[_0x321b('0x143')]!=_0x39fbc9[_0x321b('0x143')])return!0x1;if(!_0x3005a1[_0x321b('0x68')]['isTouching'](_0xda2e92[_0x321b('0xab')]))return!0x1;const _0x593af3=_0x4b85ca[_0x321b('0x61')](_0x3005a1[_0x321b('0x68')],_0xda2e92['start'])[_0x321b('0x1b')]();for(const _0x42e0b6 of _0x593af3)if([_0x321b('0xd7'),_0x321b('0x7d')][_0x321b('0x135')](_0x42e0b6['type'])&&_0x4b85ca[_0x321b('0x79')]['isLimit'](_0x42e0b6[_0x321b('0x3b')]))return!0x1;return!0x0;}function Ut(_0x30b66d,_0x2fb977){return!(!_0x30b66d[_0x321b('0x10d')]||!_0x2fb977['_isDataLoaded'])&&_0x49a32e(_0x30b66d['attributes'],_0x2fb977[_0x321b('0xe')]);}function Ot(_0x1b2866,_0x31db03){const _0x5515f6=Et(_0x1b2866[_0x321b('0xe')]),_0x5173d9=Et(_0x31db03);if(!_0x1b2866[_0x321b('0x10d')])return!0x1;for(const _0x2ea665 of Object[_0x321b('0xe5')](_0x5173d9))if(!_0x49a32e(_0x5515f6[_0x2ea665],_0x5173d9[_0x2ea665]))return!0x1;return!0x0;}function Et(_0x569fc3){const _0x4d47c9=Object[_0x321b('0x4c')]({},_0x569fc3);return delete _0x4d47c9[_0x321b('0x8f')],delete _0x4d47c9[_0x321b('0x48')],_0x4d47c9;}
23
+ const _0x45f0=['showSuggestionHighlights','createRangeIn','assign','commentThread','unbind','skipNestingCheck','range','high','batch','type','ready','options','formatBlock:accept','move','track-changes-adapter-already-set','formatInline:chain','trackChangesCommand','isAfter','addSuggestion','_cutOutSuggestionMarker','removeMarker','discardAllSuggestions','getAncestors','_suggestionState','markers','_handleNewSuggestionMarker','removed','markBlockFormat','discardSuggestion','ck-suggestion-marker--active','markMultiRangeBlockFormat','isArray','isNextTo','change:_saved','bindElementToMarker','PendingActions','deletion:','locale','document','createSelection','deletion','@external','_joinWithAdjacentSuggestions','subType','isSelectable','isInContent','stop','_isDataLoaded','always','requires','isAtEnd','_createSuggestion','toJSON','init','getSuggestion','removeComment','markerReady','formatInline:join','newRange','track-changes-user-not-found','consumable','error-saving-suggestion-data-suggestion-discarded','track-changes-suggestion-data-mismatch','markDeletion','activeMarkers','value','fetchCommentThread','getFirstMarker','split','getCustomProperty','upcast','tablePasteChainId','sort','change:data','open','_setSuggestionData','never','differ','$graveyard','containsPosition','formatBlock:join','isBlock','formatInline:discard','isIntersectingWithRange','item','isAtStart','insertion:','splice','isBefore','createdAt','_addSuggestionMarker','conversion','rejected','formatGroupId','getAllAdjacentSuggestions','resolve','discardSelectedSuggestions','join','includes','elementStart','markInsertion','dataReady','removeMarker:suggestion:formatBlock','reconvertMarker','_refreshSuggestionsChain','every','change:activeMarkers','deletion:accept','_checkSuggestionCorrectness','map','highest','define','PENDING_ACTION_SUGGESTION','insertion','selection','_isForcedDefaultExecutionBlock','isRemovable','plugins','editing','editor','isExternal','updateMarker','has','after','oldRange','head','forward','_splitMarkerName','formatBlock:discard','authorName','_adapter','isOwn','getLastMatchingPosition','hasComments','addHighlight','getRanges','_findSuggestions','change','forceDefaultExecution','_mergeNestedSuggestions','_getExternalAuthor','before','nodeBefore','getMarkers','_rangeIsInLocalUserInsertion','lowest','clear','multipleBlocks','editingDowncast','buildSuggestion','formatBlock:','_editor','addUser','for','keys','getChanges','low','_breakSuggestionMarker','_updateSuggestionData','insertion:join','from','suggestionUnloaded','commands','widget','listenTo','removeMarkers','splitPosition','data','size','createPositionAt','getSuggestions','mapper','_getSuggestionData','add','deletion:join','ck-suggestion-marker-formatBlock','getUser','addSuggestionData','return','markerName','acceptSelectedSuggestions','addComment','refresh','registerCustomCallback','adapter','start','attributes','suggestionChanged','getMultiRangeId','isDocumentOperation','isLimit','createPositionAfter','fire','dataToMarker','formatBlock:chain','isLocal','removeAttribute','setSelection','_saved','_setSuggestionRange','containsItem','suggestion','ck-suggestion-marker','chain','_customCallbacks','originalSuggestionId','_addThreadToSuggestion','markerToData','insertion:accept','some','suggestion:','rootName','_commentsRepository','_model','getItems','_trackFormatChanges','nodeAfter','setTo','next','isCollapsed','discard','set','trackChanges.mergeNestedSuggestions','track-changes-adapter-missing-getsuggestion','getNearestSelectionRange','remove','getFirstRange','addMarkerName','_removeSuggestion','fromRange','position','normal','removeClass','howMany','schema','consume','getSuggestionCallback','addClass','update:suggestion','config','isUndo','getChangedMarkers','filter','addRange','toViewElement','setAttribute','isMultiRange','clone','root','isInsideObject','Users','_joinSuggestions','formatInline','name','model','collaboration.channelId','updateSuggestion','deletion:chain','getDifference','acceptSuggestion','insertion:discard','execute','documentSelection','markMultiRangeInsertion','element','addCommentThread','CommentsRepository','data-suggestion','then','length','formatBlock','hasSuggestion','addMarker:suggestion:formatBlock','isObject','detach','formatInline:accept','notReady','deleteContent','suggestionLoaded','authoredAt','writer','unbindElementFromMarkerName','end','$marker','acceptAllSuggestions','markerToHighlight','trackChanges.trackFormatChanges','containsRangeInObject','push','getIntersection','addMarker','pluginName','_descriptionFactory','insert','_enabledCommands','parent','containerElement','substr','formatInline:','registerPostFixer','createPositionBefore','_suggestionFactory','isTouching','createRange','multi','get','_suggestions','creator','getCommentThread','enableCommand','accept','trackChanges','containsRange','elementToElement','rethrowUnexpectedError','previous','isEqual','suggestion-type','_getAuthorFromId','_defaultCallbacks','group','insertContent','enqueueChange','author','getAttribute','backward','dataDowncast'];(function(_0x414e68,_0x45f0ff){const _0x42b22c=function(_0x5074cf){while(--_0x5074cf){_0x414e68['push'](_0x414e68['shift']());}};_0x42b22c(++_0x45f0ff);}(_0x45f0,0x176));const _0x42b2=function(_0x414e68,_0x45f0ff){_0x414e68=_0x414e68-0x0;let _0x42b22c=_0x45f0[_0x414e68];return _0x42b22c;};import{Plugin as _0x250fc1,PendingActions as _0x2efc12}from'ckeditor5/src/core';import{LiveRange as _0x48c2b6}from'ckeditor5/src/engine';import{CKEditorError as _0x81a6ba,uid as _0x1dc3be,priorities as _0x2939da,logWarning as _0x184e53}from'ckeditor5/src/utils';import{toWidget as _0x446fe9}from'ckeditor5/src/widget';import{Users as _0x1af5bb,hashObject as _0x9faea9}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a98c0 from'./commands/trackchangescommand';import _0x540c87 from'./commands/acceptsuggestioncommand';import _0x1ee56e from'./commands/discardsuggestioncommand';import _0x3cc3db from'./commands/executeonallsuggestionscommand';import _0x168013 from'./commands/executeonselectedsuggestionscommand';import _0x2918a7 from'./suggestion';import _0x4b1f95 from'./suggestiondescriptionfactory';import _0x2e1372 from'./integrations/aiassistant';import _0x48d18e from'./integrations/alignment';import _0x3bd666 from'./integrations/basicstyles';import _0x3241c6 from'./integrations/blockquote';import _0x532bf4 from'./integrations/ckbox';import _0x2231ac from'./integrations/codeblock';import _0x570b68 from'./integrations/comments';import _0x2f71c0 from'./integrations/deletecommand';import _0x1d518c from'./integrations/documentlist';import _0x41e031 from'./integrations/entercommand';import _0x1076ba from'./integrations/findandreplace';import _0x39edd0 from'./integrations/font';import _0x3ff39f from'./integrations/formatpainter';import _0x401cc4 from'./integrations/heading';import _0x4af0dc from'./integrations/highlight';import _0x1fd5a9 from'./integrations/horizontalline';import _0x969971 from'./integrations/htmlembed';import _0x48ad30 from'./integrations/image';import _0x1968a2 from'./integrations/imagereplace';import _0x276f93 from'./integrations/importword';import _0x150ca8 from'./integrations/indent';import _0x87be9d from'./integrations/inputcommand';import _0x16f279 from'./integrations/link';import _0x1821fc from'./integrations/list';import _0x4e6f14 from'./integrations/listproperties';import _0x4c5174 from'./integrations/mediaembed';import _0x532ef1 from'./integrations/mention';import _0x481438 from'./integrations/pagebreak';import _0x4b9f05 from'./integrations/paragraph';import _0x435917 from'./integrations/removeformat';import _0x4a5fe0 from'./integrations/restrictededitingmode';import _0x5b3f96 from'./integrations/shiftentercommand';import _0x5306f9 from'./integrations/standardeditingmode';import _0x481e6e from'./integrations/style';import _0x44decc from'./integrations/table';import _0x53fb84 from'./integrations/tablemergesplit';import _0x46433e from'./integrations/tableheadings';import _0x4cd816 from'./integrations/tableclipboard';import _0xdb972f from'./integrations/tablecolumnresize';import _0x57b951 from'./integrations/template';import _0x115f30 from'./integrations/tableofcontents';import _0x242a39 from'./integrations/title';import _0x525bf3 from'./integrations/undo';import{getTranslation as _0x1c3871}from'./utils/common-translations';import _0x259df1 from'./integrations/tablecaption';import _0x338b6e from'./integrations/documentlistproperties';import _0x19d17d from'./integrations/tableproperties';import{isEqual as _0x194041}from'lodash-es';export default class p extends _0x250fc1{static get[_0x42b2('0x2')](){return[_0x42b2('0xdb'),_0x1af5bb,_0x2efc12,_0x2e1372,_0x48d18e,_0x3bd666,_0x3241c6,_0x532bf4,_0x2231ac,_0x570b68,_0x2f71c0,_0x1d518c,_0x338b6e,_0x41e031,_0x1076ba,_0x39edd0,_0x3ff39f,_0x401cc4,_0x4af0dc,_0x1fd5a9,_0x969971,_0x48ad30,_0x1968a2,_0x276f93,_0x150ca8,_0x87be9d,_0x16f279,_0x1821fc,_0x4e6f14,_0x4c5174,_0x532ef1,_0x481438,_0x4b9f05,_0x435917,_0x4a5fe0,_0x5b3f96,_0x5306f9,_0x481e6e,_0x44decc,_0x53fb84,_0x46433e,_0x259df1,_0x4cd816,_0xdb972f,_0x115f30,_0x19d17d,_0x57b951,_0x242a39,_0x525bf3];}static get[_0x42b2('0xf4')](){return'TrackChangesEditing';}constructor(_0x3dd21b){function _0x4ea350(_0x257df4){return _0x257df4[_0x42b2('0x3e')](_0x5523fb=>String['fromCharCode'](_0x5523fb))[_0x42b2('0x32')]('');}super(_0x3dd21b),this[_0x42b2('0xae')](_0x42b2('0x11'),[]),this['on'](_0x42b2('0x3b'),(_0x44eb6d,_0x92088f,_0x7559d,_0xb7d0e0)=>{this['_model']['change'](()=>{for(const _0x3e7d9e of[..._0xb7d0e0,..._0x7559d])this[_0x42b2('0xa6')]['markers'][_0x42b2('0x4b')](_0x3e7d9e)&&_0x3dd21b[_0x42b2('0x47')][_0x42b2('0x38')](_0x3e7d9e);});}),this[_0x42b2('0xf5')]=new _0x4b1f95(this[_0x42b2('0x48')]['model'][_0x42b2('0xbb')],this[_0x42b2('0x48')][_0x42b2('0x13d')]),this[_0x42b2('0x53')]=null,this['_suggestionFactory']=new Bt(this[_0x42b2('0x48')]),this['_suggestions']=new Map(),this[_0x42b2('0xa5')]=_0x3dd21b[_0x42b2('0x46')]['get'](_0x42b2('0xdb')),this['_enabledCommands']=new Set(),this[_0x42b2('0xa6')]=this[_0x42b2('0x48')][_0x42b2('0xcf')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x40')](_0x42b2('0xef'),'default'),this[_0x42b2('0xa8')]=_0x3dd21b['config']['get'](_0x42b2('0xef')),_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x40')](_0x42b2('0xaf'),!0x0),this[_0x42b2('0x5c')]=_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x102')]('trackChanges.mergeNestedSuggestions'),this[_0x42b2('0x128')]=new _0x3a98c0(_0x3dd21b,this[_0x42b2('0xf7')]),this[_0x4ea350([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ea350([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x30]);}[_0x42b2('0x6')](){const _0x5203ce=this[_0x42b2('0x48')];_0x5203ce[_0x42b2('0x2c')][_0x42b2('0x6a')](_0x42b2('0x65'))[_0x42b2('0xee')]({'model':_0x42b2('0x9a'),'view':_0x585db5=>{const {id:_0x5bdae7,type:_0x33361}=this[_0x42b2('0x50')](_0x585db5[_0x42b2('0x84')]),_0x265645=[_0x42b2('0x9b'),'ck-suggestion-marker-'+_0x33361];let _0x159076=0xbb8;return this[_0x42b2('0x11')][_0x42b2('0x33')](_0x585db5['markerName'])&&(_0x265645[_0x42b2('0xf1')]('ck-suggestion-marker--active'),_0x159076=0xbc2),_0x42b2('0x140')==_0x33361&&(_0x159076+=0x5),{'classes':_0x265645,'attributes':{'data-suggestion':_0x5bdae7},'priority':_0x159076};}}),_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))[_0x42b2('0x7e')](_0x1b62b4=>{_0x1b62b4['on']('addMarker:suggestion',(_0x58cc69,_0xfb084e,_0x1f407c)=>{if(!_0x1f407c[_0x42b2('0x123')][_0x42b2('0x118')])return;const _0x4a7f97=_0xfb084e[_0x42b2('0x25')];if(!_0x4a7f97)return;const _0x53d11b=_0x1f407c[_0x42b2('0x7c')]['toViewElement'](_0x4a7f97);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')][_0x42b2('0xe2')](_0x4a7f97)&&_0x53d11b&&!_0x53d11b[_0x42b2('0x16')](_0x42b2('0x74'))&&_0x53d11b['is'](_0x42b2('0xf9'))&&_0x446fe9(_0x53d11b,_0x1f407c[_0x42b2('0xe9')]);},{'priority':_0x42b2('0x11f')});}),_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))[_0x42b2('0xee')]({'model':_0x42b2('0x9a'),'view':(_0x16d608,_0x3a2429)=>{if(!_0x3a2429[_0x42b2('0x123')][_0x42b2('0x118')])return null;const {type:_0x17d152}=this[_0x42b2('0x50')](_0x16d608['markerName']);return{'classes':[_0x42b2('0x9b'),'ck-suggestion-marker-'+_0x17d152],'priority':0xbb8};}});const _0x2302ab=({showActiveMarkers:_0x1e63ac=!0x0}={})=>(_0xf40dc0,_0x3352f9,_0x19ec4e)=>{if(!_0x3352f9[_0x42b2('0x25')])return;if(_0x3352f9['item']['is']('selection'))return void _0x19ec4e[_0x42b2('0xd')][_0x42b2('0xbc')](_0x3352f9['item'],_0xf40dc0[_0x42b2('0xce')]);const _0xc9aa=_0x19ec4e[_0x42b2('0x7c')][_0x42b2('0xc5')](_0x3352f9[_0x42b2('0x25')]);if(!(_0x3352f9['item']['is']('element')&&_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')][_0x42b2('0x22')](_0x3352f9['item'])&&!_0xc9aa[_0x42b2('0x16')](_0x42b2('0x57'))))return;const {id:_0xbace4b}=this['_splitMarkerName'](_0x3352f9[_0x42b2('0x84')]);_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xbe')]([_0x42b2('0x9b'),_0x42b2('0x80')],_0xc9aa),_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xc6')](_0x42b2('0xdc'),_0xbace4b,_0xc9aa),_0x19ec4e[_0x42b2('0x7c')][_0x42b2('0x13a')](_0xc9aa,_0x3352f9['markerName']),_0x1e63ac&&(this[_0x42b2('0x11')][_0x42b2('0x33')](_0x3352f9[_0x42b2('0x84')])?_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xbe')]('ck-suggestion-marker--active',_0xc9aa):_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xb9')](_0x42b2('0x135'),_0xc9aa));for(const _0x54fb13 of _0x5203ce[_0x42b2('0xcf')][_0x42b2('0x119')](_0x3352f9[_0x42b2('0x25')])[_0x42b2('0xa7')]())_0x19ec4e['consumable'][_0x42b2('0xbc')](_0x54fb13,_0xf40dc0[_0x42b2('0xce')]);_0x19ec4e[_0x42b2('0xd')][_0x42b2('0xbc')](_0x3352f9[_0x42b2('0x25')],_0xf40dc0[_0x42b2('0xce')]);};_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))['add'](_0x5c055c=>{_0x5c055c['on']('addMarker:suggestion:formatBlock',(_0x43b7b4,_0xc14446,_0xacb565)=>{_0xacb565[_0x42b2('0x123')]['showSuggestionHighlights']&&_0x2302ab({'showActiveMarkers':!0x1})(_0x43b7b4,_0xc14446,_0xacb565);},{'priority':_0x42b2('0x3f')});}),_0x5203ce['conversion']['for'](_0x42b2('0x117'))[_0x42b2('0xa0')]({'model':_0x42b2('0x9a'),'view':(_0x4f04e8,_0x3c6c29)=>_0x3c6c29[_0x42b2('0x123')][_0x42b2('0x118')]?null:{'group':_0x42b2('0x9a'),'name':_0x4f04e8[_0x42b2('0xfa')](0xb)}}),_0x5203ce['conversion']['for'](_0x42b2('0x17'))[_0x42b2('0x10a')]({'view':{'name':_0x42b2('0x9a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e71b3,{writer:_0x8d575b})=>{let _0x567dca=_0x42b2('0xa3')+_0x4e71b3[_0x42b2('0x115')](_0x42b2('0x10e'))+':'+_0x4e71b3[_0x42b2('0x115')]('id');return _0x4e71b3[_0x42b2('0x115')]('marker-count')&&(_0x567dca+=':'+_0x4e71b3['getAttribute']('marker-count')),_0x8d575b['createElement'](_0x42b2('0xec'),{'data-name':_0x567dca});}}),_0x5203ce[_0x42b2('0x2c')]['for']('upcast')[_0x42b2('0x92')]({'view':_0x42b2('0x9a')}),_0x5203ce[_0x42b2('0x2c')][_0x42b2('0x6a')](_0x42b2('0x65'))['add'](_0x1f30bd=>{_0x1f30bd['on'](_0x42b2('0xe1'),_0x2302ab(),{'priority':_0x42b2('0x11f')});}),_0x5203ce['conversion'][_0x42b2('0x6a')]('editingDowncast')[_0x42b2('0x7e')](_0x8afc7d=>{_0x8afc7d['on'](_0x42b2('0x37'),(_0x1afba9,_0x3ff033,_0x5da137)=>{const _0x536cb4=_0x5da137[_0x42b2('0x7c')]['markerNameToElements'](_0x3ff033[_0x42b2('0x84')]);if(_0x536cb4)for(const _0x45c856 of _0x536cb4)_0x45c856[_0x42b2('0x16')]('addHighlight')||(_0x5da137[_0x42b2('0xe9')]['removeClass']([_0x42b2('0x9b'),_0x42b2('0x80'),_0x42b2('0x135')],_0x45c856),_0x5da137[_0x42b2('0xe9')][_0x42b2('0x95')](_0x42b2('0xdc'),_0x45c856),_0x5da137[_0x42b2('0x7c')][_0x42b2('0xea')](_0x45c856,_0x3ff033['markerName']));},{'priority':_0x42b2('0x11f')});}),_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0xfc')](_0x2dda2b=>{let _0xea12b9=!0x1;const _0x345807=Array[_0x42b2('0x71')](_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0x1e')][_0x42b2('0xc2')]()),_0x2647d4=new Set();for(const {name:_0x55846a,data:_0x2e689a}of _0x345807){const {group:_0x31cd5a,type:_0x89bd06,id:_0x32879e}=this[_0x42b2('0x50')](_0x55846a);if('suggestion'!==_0x31cd5a)continue;const _0x5a559f=this[_0x42b2('0x103')][_0x42b2('0x102')](_0x32879e);if(null!=_0x2e689a[_0x42b2('0xb')]){'formatInline'==_0x89bd06&&(_0xea12b9=_0xea12b9||$t(_0x2e689a[_0x42b2('0xb')],_0x55846a,_0x2dda2b,_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')]));if(_0x2e689a[_0x42b2('0xb')][_0x42b2('0xac')]||_0x42b2('0x1f')==_0x2e689a['newRange'][_0x42b2('0xc9')][_0x42b2('0xa4')]||'formatBlock'==_0x89bd06&&!Rt(_0x2e689a['newRange'])||'deletion'==_0x89bd06&&!(!Mt(_0x5ee198=_0x2e689a['newRange'])&&!function(_0x13bca8){return _0x13bca8['start'][_0x42b2('0xf8')]==_0x13bca8[_0x42b2('0xeb')]['nodeBefore']&&_0x13bca8[_0x42b2('0x8a')]['isAtEnd'];}(_0x5ee198)))_0x2dda2b[_0x42b2('0x12c')](_0x55846a),_0xea12b9=!0x0;else{if(!_0x5a559f||!_0x5a559f[_0x42b2('0x145')])continue;_0x2647d4[_0x42b2('0x7e')](_0x5a559f);}}}var _0x5ee198;return _0x2647d4['size']>0x0&&(_0xea12b9=!!this[_0x42b2('0x142')](_0x2647d4)||_0xea12b9),_0xea12b9;}),_0x5203ce[_0x42b2('0xcf')]['document'][_0x42b2('0xfc')](_0x12a13=>{let _0x466dc0=!0x1;for(const _0x45d59f of _0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0x1e')][_0x42b2('0x6c')]()){if('insert'!=_0x45d59f['type'])continue;const _0x2f84a0=_0x45d59f[_0x42b2('0xb7')]['getShiftedBy'](_0x45d59f[_0x42b2('0xde')]);if(_0x2f84a0[_0x42b2('0x3')])for(const _0x17dd85 of this[_0x42b2('0x103')]['values']()){if(_0x17dd85['isMultiRange']||!_0x17dd85[_0x42b2('0x145')])continue;if(_0x42b2('0xdf')!=_0x17dd85[_0x42b2('0x121')])continue;const _0x14dc12=_0x17dd85['getFirstRange']();if(_0x14dc12[_0x42b2('0x8a')][_0x42b2('0xf8')]!=_0x14dc12[_0x42b2('0xeb')]['parent']&&_0x14dc12[_0x42b2('0xeb')][_0x42b2('0x10d')](_0x45d59f[_0x42b2('0xb7')])){const _0xdee991=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x14dc12[_0x42b2('0x8a')],_0x2f84a0);_0x12a13[_0x42b2('0x4a')](_0x17dd85[_0x42b2('0x14')](),{'range':_0xdee991}),_0x466dc0=!0x0;}}}return _0x466dc0;}),_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x130')]['on'](_0x42b2('0xbf'),(_0x51468e,_0x64f2ce,_0xa197be)=>{if(null==_0xa197be){const {id:_0x43bef1}=this[_0x42b2('0x50')](_0x64f2ce[_0x42b2('0xce')]),_0x2d9a35=this[_0x42b2('0x103')]['get'](_0x43bef1);_0x2d9a35&&_0x2d9a35[_0x42b2('0xb4')](_0x64f2ce[_0x42b2('0xce')]);}}),_0x5203ce['model'][_0x42b2('0x13e')]['on'](_0x42b2('0x1a'),()=>{const _0x4ef903=Array[_0x42b2('0x71')](_0x5203ce['model'][_0x42b2('0x13e')][_0x42b2('0x1e')]['getChangedMarkers']())['filter'](_0x23eca3=>'suggestion'===this['_splitMarkerName'](_0x23eca3[_0x42b2('0xce')])[_0x42b2('0x111')]);if(0x0===_0x4ef903['length'])return;_0x4ef903['sort']((_0x199f05,_0x376cc1)=>{const _0x141a24=_0x199f05[_0x42b2('0x78')][_0x42b2('0x4d')],_0x17748d=_0x376cc1[_0x42b2('0x78')][_0x42b2('0x4d')];return null===_0x141a24&&null===_0x17748d?0x0:null===_0x141a24&&null!==_0x17748d?-0x1:null!==_0x141a24&&null===_0x17748d?0x1:_0x141a24[_0x42b2('0x8a')]['isBefore'](_0x17748d[_0x42b2('0x8a')])?-0x1:0x1;});const _0x31a073=new Set(),_0x1de980=new Set();for(const {name:_0x4a0ebe,data:_0x36b190}of _0x4ef903){const {id:_0x5229b5}=this[_0x42b2('0x50')](_0x4a0ebe);if(null===_0x36b190[_0x42b2('0x4d')]){const _0xabad8d=this[_0x42b2('0x131')](_0x4a0ebe);_0x1de980[_0x42b2('0x7e')](_0xabad8d);}else{const _0x53834a=this['_suggestions'][_0x42b2('0x102')](_0x5229b5);null!==_0x36b190[_0x42b2('0xb')]||_0x53834a[_0x42b2('0x145')]?(_0x31a073['add'](_0x53834a[_0x42b2('0x4e')]),_0x1de980['add'](_0x53834a)):this['_removeSuggestion'](_0x53834a);}}_0x1de980[_0x42b2('0x79')]>0x0&&this[_0x42b2('0x39')](_0x1de980);for(const _0x3bb945 of _0x31a073)this['fire']('suggestionChanged',_0x3bb945);}),_0x5203ce[_0x42b2('0xcf')]['on']('applyOperation',(_0x27de24,_0x10e6b1)=>{const _0x29eb7d=_0x10e6b1[0x0];if(!this['_suggestions'][_0x42b2('0x79')])return;if(!_0x29eb7d[_0x42b2('0x8e')])return;if(_0x29eb7d[_0x42b2('0x120')][_0x42b2('0xc1')]||!_0x29eb7d[_0x42b2('0x120')][_0x42b2('0x94')])return;let _0x452aab,_0x4e9145;switch(_0x29eb7d[_0x42b2('0x121')]){case _0x42b2('0xf6'):_0x452aab=_0x5203ce['model'][_0x42b2('0x7a')](_0x29eb7d[_0x42b2('0xb7')]),_0x4e9145=_0x452aab['getShiftedBy'](_0x29eb7d['howMany']);break;case _0x42b2('0x15'):_0x452aab=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x29eb7d[_0x42b2('0x77')]),_0x4e9145=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x29eb7d['moveTargetPosition']);break;case _0x42b2('0x125'):_0x452aab=_0x5203ce[_0x42b2('0xcf')]['createPositionAt'](_0x29eb7d['targetPosition']),_0x4e9145=_0x452aab['getShiftedBy'](_0x29eb7d[_0x42b2('0xba')]);break;default:return;}const _0x4b7ee5=_0x5203ce['model'][_0x42b2('0x100')](_0x452aab,_0x4e9145);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const {suggestion:_0xac4613,meta:_0x151225}of this[_0x42b2('0x59')](_0x4b7ee5)){if(_0xac4613[_0x42b2('0xc7')])continue;if(_0x42b2('0xcd')==_0xac4613[_0x42b2('0x121')])continue;const _0x3417d9=_0xac4613[_0x42b2('0x78')]&&_0xac4613[_0x42b2('0x78')][_0x42b2('0x64')];('formatBlock'!=_0xac4613[_0x42b2('0x121')]||_0x42b2('0x15')==_0x29eb7d[_0x42b2('0x121')]&&!_0x3417d9)&&(_0x151225[_0x42b2('0xf0')]||_0x42b2('0x42')==_0xac4613[_0x42b2('0x121')]&&_0x151225[_0x42b2('0x54')]||_0xac4613[_0x42b2('0xb3')]()[_0x42b2('0x109')](_0x4b7ee5)&&this[_0x42b2('0x6e')](_0xac4613,_0x452aab,_0x4e9145));}});},{'priority':_0x42b2('0x62')}),_0x5203ce['model']['on'](_0x42b2('0xe6'),(_0x4b5efd,_0x1a217c)=>{const _0x59943a=_0x1a217c[0x0],_0xbfee08=_0x1a217c[0x1];if(_0xbfee08&&_0xbfee08[_0x42b2('0x5b')])return;if(this[_0x42b2('0x44')])return;if(!this[_0x42b2('0x128')]['value'])return;if(_0x59943a[_0x42b2('0xac')])return;const _0x50e67f=_0x5203ce['model']['schema'],{start:_0x9639b7,end:_0x233851}=_0x59943a['getFirstRange'](),_0x3cb27b=_0x9639b7[_0x42b2('0xa9')]&&_0x50e67f[_0x42b2('0x8f')](_0x9639b7[_0x42b2('0xa9')])?null:_0x50e67f[_0x42b2('0xb1')](_0x9639b7,_0x42b2('0x4f')),_0x5961d3=_0x233851[_0x42b2('0x5f')]&&_0x50e67f[_0x42b2('0x8f')](_0x233851['nodeBefore'])?null:_0x50e67f[_0x42b2('0xb1')](_0x233851,'backward'),_0x58bb5c=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x3cb27b?_0x3cb27b[_0x42b2('0x8a')]:_0x9639b7,_0x5961d3?_0x5961d3['end']:_0x233851);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](_0x564ee6=>{this['markDeletion'](_0x58bb5c);const _0x1c53d0=_0x5203ce[_0x42b2('0xcf')]['schema'][_0x42b2('0xb1')](_0x58bb5c[_0x42b2('0x8a')]);_0x59943a['is'](_0x42b2('0xd7'))?_0x564ee6['setSelection'](_0x1c53d0):_0x59943a[_0x42b2('0xaa')](_0x1c53d0);}),_0x4b5efd[_0x42b2('0x146')]();},{'priority':_0x2939da[_0x42b2('0xb8')]+0xa}),_0x5203ce[_0x42b2('0xcf')]['on']('insertContent',(_0xae7c43,_0x21b166)=>{const _0x3c1e1b=_0x21b166[_0x21b166[_0x42b2('0xde')]-0x1];_0x3c1e1b&&_0x3c1e1b[_0x42b2('0x5b')]||this[_0x42b2('0x44')]||this[_0x42b2('0x128')][_0x42b2('0x12')]&&(_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{let _0x165986=_0x5203ce['model'][_0x42b2('0x112')](_0x21b166[0x0],_0x21b166[0x1],_0x21b166[0x2],{'forceDefaultExecution':!0x0});if(!_0x165986)return;_0xae7c43['return']=_0x165986[_0x42b2('0xc8')]();const _0x291015=_0x165986['end'][_0x42b2('0x5f')],_0x5df822=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')];_0x291015&&_0x5df822[_0x42b2('0x22')](_0x291015)&&!_0x5df822[_0x42b2('0xe2')](_0x291015)&&(_0x165986=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x165986[_0x42b2('0x8a')],_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x291015,_0x42b2('0xeb')))),this['markInsertion'](_0x165986);}),_0xae7c43[_0x42b2('0x146')]());},{'priority':_0x42b2('0x11f')}),this[_0x42b2('0x48')]['commands'][_0x42b2('0x7e')](_0x42b2('0x108'),this['trackChangesCommand']),this[_0x42b2('0x106')](_0x42b2('0x108'));const _0x40684c=new _0x540c87(_0x5203ce,this['_suggestions']);_0x5203ce['commands'][_0x42b2('0x7e')](_0x42b2('0xd4'),_0x40684c),this[_0x42b2('0x106')]('acceptSuggestion');const _0x479497=new _0x1ee56e(_0x5203ce,this[_0x42b2('0x103')]);_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')]('discardSuggestion',_0x479497),this['enableCommand'](_0x42b2('0x134')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0xed'),new _0x3cc3db(_0x5203ce,_0x40684c,this[_0x42b2('0x103')])),this[_0x42b2('0x106')]('acceptAllSuggestions'),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0x12d'),new _0x3cc3db(_0x5203ce,_0x479497,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x12d')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0x85'),new _0x168013(_0x5203ce,_0x40684c,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x85')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')]('discardSelectedSuggestions',new _0x168013(_0x5203ce,_0x479497,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x31'));const _0x2b7a83=_0x5203ce[_0x42b2('0x46')]['get'](_0x42b2('0xdb'));this['listenTo'](_0x2b7a83,_0x42b2('0x86'),(_0x278ae4,{threadId:_0x32de01})=>{const _0x2a25f1=this['_suggestions']['get'](_0x32de01);_0x2a25f1&&_0x2a25f1[_0x42b2('0x11b')]&&0x1===_0x2a25f1['commentThread']['length']&&this['_updateSuggestionData'](_0x32de01,{'hasComments':!0x0});},{'priority':_0x42b2('0x6d')}),this[_0x42b2('0x75')](_0x2b7a83,_0x42b2('0x8'),(_0x5c7cd8,{threadId:_0x4f5fb7})=>{const _0x18f305=this['_suggestions'][_0x42b2('0x102')](_0x4f5fb7);_0x18f305&&_0x18f305[_0x42b2('0x11b')]&&!_0x18f305[_0x42b2('0x11b')]['length']&&this[_0x42b2('0x6f')](_0x4f5fb7,{'hasComments':!0x1});},{'priority':_0x42b2('0x6d')});}set[_0x42b2('0x89')](_0x1b4f3e){if(this[_0x42b2('0x53')])throw new _0x81a6ba(_0x42b2('0x126'),this);this[_0x42b2('0x53')]=_0x1b4f3e;}get[_0x42b2('0x89')](){return this[_0x42b2('0x53')];}[_0x42b2('0x7b')]({skipNotAttached:_0x22141c=!0x1,toJSON:_0x1b487=!0x1}={}){const _0x586235=[];for(const _0x1ea893 of this[_0x42b2('0x103')]['values']())_0x22141c&&!_0x1ea893['isInContent']||_0x586235[_0x42b2('0xf1')](_0x1ea893);return _0x1b487?_0x586235['map'](_0x3b49a9=>_0x3b49a9[_0x42b2('0x5')]()):_0x586235;}['getSuggestion'](_0x195273){const _0x5e02b7=this['_suggestions'][_0x42b2('0x102')](_0x195273);if(!_0x5e02b7)throw new _0x81a6ba('track-changes-suggestion-not-found',this);return _0x5e02b7;}[_0x42b2('0xe0')](_0x533989){return this[_0x42b2('0x103')][_0x42b2('0x4b')](_0x533989);}[_0x42b2('0x82')](_0x100e1d){const {authorId:_0x530c55,id:_0x136325,attributes:_0x11b8aa}=_0x100e1d,[_0x1d9707,_0x10937a]=_0x100e1d[_0x42b2('0x121')][_0x42b2('0x15')](':'),_0x2f8ca7=this['_suggestions'][_0x42b2('0x102')](_0x136325)||this['_createSuggestion'](_0x1d9707,_0x10937a,_0x136325,_0x530c55,_0x11b8aa);if(this[_0x42b2('0x9f')](_0x2f8ca7),this[_0x42b2('0x3d')](_0x2f8ca7,_0x1d9707,_0x10937a||null,_0x530c55),_0x2f8ca7[_0x42b2('0x2a')]=_0x100e1d[_0x42b2('0x2a')],_0x2f8ca7[_0x42b2('0x0')]=!0x0,_0x11b8aa&&_0x11b8aa['@external']){const _0x59bcbd=_0x11b8aa[_0x42b2('0x141')],_0x492bba=this[_0x42b2('0x5d')](_0x59bcbd[_0x42b2('0x52')]);_0x2f8ca7[_0x42b2('0xe8')]=_0x59bcbd[_0x42b2('0x2a')],_0x2f8ca7[_0x42b2('0x114')]=_0x492bba,_0x2f8ca7[_0x42b2('0x49')]=!0x0;}else _0x2f8ca7[_0x42b2('0xe8')]=_0x100e1d['createdAt'];switch(_0x100e1d[_0x42b2('0x78')]&&(_0x2f8ca7[_0x42b2('0x78')]=_0x100e1d[_0x42b2('0x78')]),_0x100e1d[_0x42b2('0x8b')]&&(_0x2f8ca7[_0x42b2('0x8b')]=_0x100e1d[_0x42b2('0x8b')]),this['_adapter']&&this[_0x42b2('0x53')]['addSuggestion']||(_0x2f8ca7[_0x42b2('0x97')]=!0x0),this[_0x42b2('0x12f')][_0x42b2('0x102')](_0x2f8ca7)){case'notReady':this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x36'));break;case _0x42b2('0x9'):_0x2f8ca7[_0x42b2('0x145')]?(this[_0x42b2('0x39')](new Set([_0x2f8ca7])),this[_0x42b2('0x142')](new Set([_0x2f8ca7])),this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x122')),this[_0x42b2('0x91')](_0x42b2('0xe7'),_0x2f8ca7)):this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x132'));}return _0x2f8ca7;}['acceptSuggestion'](_0x435023){this[_0x42b2('0x5b')](()=>{this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const _0xaf7220 of _0x435023[_0x42b2('0x2f')]())_0xaf7220[_0x42b2('0x107')]();});});}[_0x42b2('0x134')](_0xe031df){this[_0x42b2('0x5b')](()=>{this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const _0x38f8dc of _0xe031df[_0x42b2('0x2f')]())_0x38f8dc['discard']();});});}['enableCommand'](_0x3a00cb,_0x5073aa){const _0xaafae3=this[_0x42b2('0x48')][_0x42b2('0x73')][_0x42b2('0x102')](_0x3a00cb);if(!_0xaafae3)throw new _0x81a6ba('track-changes-command-not-found',this,{'commandName':_0x3a00cb});this[_0x42b2('0xf7')][_0x42b2('0x7e')](_0xaafae3),_0x5073aa&&_0xaafae3['on'](_0x42b2('0xd6'),(_0xb5a36,_0x6576c8)=>{this['trackChangesCommand'][_0x42b2('0x12')]&&(this[_0x42b2('0x44')]||_0x6576c8[_0x42b2('0xde')]>0x0&&_0x6576c8[_0x6576c8['length']-0x1]&&_0x6576c8[_0x6576c8['length']-0x1]['forceDefaultExecution']||(_0xb5a36[_0x42b2('0x83')]=_0x5073aa((..._0x1e0e4c)=>_0xaafae3[_0x42b2('0xd6')](..._0x1e0e4c,{'forceDefaultExecution':!0x0}),..._0x6576c8),_0xb5a36['stop']()));},{'priority':'high'});}[_0x42b2('0x5b')](_0x587728){let _0x21a037,_0x1690fe;const _0x2c47a3=this[_0x42b2('0x44')];this[_0x42b2('0x44')]=!0x0;try{_0x21a037=_0x587728();}catch(_0x191df2){_0x1690fe=_0x191df2;}return _0x2c47a3||(this[_0x42b2('0x44')]=!0x1),_0x1690fe&&_0x81a6ba[_0x42b2('0x10b')](_0x1690fe,this),_0x21a037;}[_0x42b2('0x35')](_0xb7897c,_0x54892d=null,_0x437f5e={}){if(_0xb7897c[_0x42b2('0xac')])return null;const _0x139d61=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')]('Users')['me'];for(const {suggestion:_0x148477,meta:_0x2242d5}of this['_findSuggestions'](_0xb7897c,'insertion'))if(_0x2242d5[_0x42b2('0x54')]){if(!_0x2242d5['isNextTo']){if(_0x2242d5[_0x42b2('0xf0')]){if(!this[_0x42b2('0x5c')]||!Ot(_0x148477,_0x437f5e))continue;return _0x148477;}if(Ot(_0x148477,_0x437f5e))return _0x148477;this['_breakSuggestionMarker'](_0x148477,_0xb7897c[_0x42b2('0x8a')],_0xb7897c[_0x42b2('0xeb')]);break;}if(_0x54892d==_0x148477[_0x42b2('0x143')]&&Ot(_0x148477,_0x437f5e)){const _0x3af0c2=_0x148477['getFirstRange']();return _0x3af0c2[_0x42b2('0x8a')]['isEqual'](_0xb7897c[_0x42b2('0xeb')])?this['_setSuggestionRange'](_0x148477,this['_model'][_0x42b2('0x100')](_0xb7897c['start'],_0x3af0c2[_0x42b2('0xeb')])):this[_0x42b2('0x98')](_0x148477,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x3af0c2[_0x42b2('0x8a')],_0xb7897c[_0x42b2('0xeb')])),_0x148477;}}const _0x1c194a=_0x1dc3be(),_0x5aa434=_0x139d61['id'],_0x5967b8=_0x54892d?_0x42b2('0x27')+_0x54892d:'insertion',_0x3d3c80=this[_0x42b2('0x1c')]({'id':_0x1c194a,'type':_0x5967b8,'createdAt':new Date(),'authorId':_0x5aa434,'attributes':_0x437f5e});return this[_0x42b2('0x2b')](_0x5967b8,_0x1c194a,_0x5aa434,_0xb7897c),_0x3d3c80;}[_0x42b2('0xd8')](_0x21d86f,_0x41728b=_0x42b2('0x101'),_0x494212={}){const _0x54da38=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x521fc=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0x42'),_0x41728b,_0x42b2('0x32'));for(const _0x1c3007 of this['getSuggestions']())if(_0x1c3007[_0x42b2('0x114')]['id']==_0x54da38['id']&&_0x42b2('0x42')==_0x1c3007[_0x42b2('0x121')]&&_0x1c3007['subType']==_0x41728b&&Ot(_0x1c3007,_0x494212)&&(_0x521fc(_0x1c3007[_0x42b2('0x58')](),_0x21d86f)||_0x521fc(_0x21d86f,_0x1c3007[_0x42b2('0x58')]()))){for(const _0x4d743b of _0x21d86f)_0x1c3007[_0x42b2('0xc4')](_0x4d743b);return _0x1c3007;}for(const {suggestion:_0x561fae,meta:_0xc83a95}of this[_0x42b2('0x59')](_0x21d86f,_0x42b2('0x42'))){if(!_0xc83a95[_0x42b2('0x54')])continue;if(!this[_0x42b2('0x5c')]&&_0xc83a95['containsRangeInObject'])continue;if(!Ot(_0x561fae,_0x494212))continue;let _0x5d2610=!0x0;for(const _0x5bc3a3 of _0x561fae['getRanges']())for(const _0x50dc35 of _0x21d86f)if(!_0x5bc3a3['containsRange'](_0x50dc35)){_0x5d2610=!0x1;break;}if(_0x5d2610)return _0x561fae;}const _0x3af176=_0x1dc3be(),_0x4111fa=_0x54da38['id'],_0x3223bb=_0x42b2('0x27')+_0x41728b,_0x17cff3=this[_0x42b2('0x1c')]({'id':_0x3af176,'type':_0x3223bb,'createdAt':new Date(),'authorId':_0x4111fa,'attributes':_0x494212});for(const _0x36639b of _0x21d86f)this[_0x42b2('0x2b')](_0x3223bb,_0x3af176,_0x4111fa,_0x36639b,_0x2918a7[_0x42b2('0x8d')]());return _0x17cff3;}['markInlineFormat'](_0xe99a88,_0x2dd38e,_0x2a91bc=null,_0x3c510d={}){if(_0x2a91bc=_0x2a91bc||Nt(_0x2dd38e),_0xe99a88['isCollapsed'])return null;if(_0x42b2('0x1d')===this[_0x42b2('0xa8')]){const _0x41c8c6=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xcd'),_0x2a91bc,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x41c8c6([_0xe99a88],_0x2dd38e,_0x3c510d)),null;}const _0x37f8b9=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x1d976a=[];if(_0x42b2('0x1')!==this[_0x42b2('0xa8')])for(const {suggestion:_0x51fcd8,meta:_0x58b36}of this[_0x42b2('0x59')](_0xe99a88,_0x42b2('0x42')))_0x58b36[_0x42b2('0x54')]&&!_0x58b36[_0x42b2('0xca')]&&_0x1d976a[_0x42b2('0xf1')](..._0x51fcd8['getRanges']());const _0x243480=function(_0x7a2040,_0x528719){const _0x5c666f=[];for(const _0x578fe4 of _0x528719){const _0x151f36=_0x7a2040['getIntersection'](_0x578fe4);_0x151f36&&_0x5c666f['push'](_0x151f36);}return _0x5c666f;}(_0xe99a88,_0x1d976a),_0x478d95=function(_0x8f08d3,_0x44a75b){const _0x33b4a3=[_0x8f08d3];for(const _0x4fb580 of _0x44a75b){let _0x2b7df7=0x0;for(;_0x2b7df7<_0x33b4a3['length'];){const _0x58f272=_0x33b4a3[_0x2b7df7]['getDifference'](_0x4fb580);_0x33b4a3[_0x42b2('0x28')](_0x2b7df7,0x1,..._0x58f272),_0x2b7df7+=_0x58f272['length'];}}return _0x33b4a3;}(_0xe99a88,_0x1d976a);_0x243480['length']&&this['_model'][_0x42b2('0x5a')](()=>{for(const _0x2f8354 of _0x243480){const _0x2927ec=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xcd'),_0x2a91bc,_0x42b2('0x107'));this[_0x42b2('0x5b')](()=>_0x2927ec([_0x2f8354],_0x2dd38e,_0x3c510d));}});for(const _0x29795c of _0x478d95){let _0x529ac3=null,_0x55f826=_0x29795c[_0x42b2('0x8a')],_0x3dc7d3=_0x29795c[_0x42b2('0xeb')];for(const {suggestion:_0x79e65,meta:_0x5ec6f1}of this[_0x42b2('0x59')](_0x29795c,_0x42b2('0xcd'))){if(!_0x5ec6f1[_0x42b2('0x54')])continue;if(_0x79e65[_0x42b2('0x143')]!=_0x2a91bc)continue;if(!Ot(_0x79e65,_0x3c510d))continue;const _0x14eff0=_0x79e65[_0x42b2('0xb3')]();if(_0x14eff0['containsRange'](_0x29795c,!0x0))return null;_0x55f826=_0x55f826[_0x42b2('0x29')](_0x14eff0[_0x42b2('0x8a')])?_0x55f826:_0x14eff0[_0x42b2('0x8a')],_0x3dc7d3=_0x3dc7d3[_0x42b2('0x129')](_0x14eff0[_0x42b2('0xeb')])?_0x3dc7d3:_0x14eff0[_0x42b2('0xeb')],_0x529ac3?_0x14eff0['start'][_0x42b2('0x29')](_0x529ac3['getFirstRange']()[_0x42b2('0x8a')])?(_0x529ac3[_0x42b2('0x76')](),_0x529ac3=_0x79e65):_0x79e65[_0x42b2('0x76')]():_0x529ac3=_0x79e65;}const _0x4daa9a=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x55f826,_0x3dc7d3);if(_0x529ac3)this[_0x42b2('0x98')](_0x529ac3,_0x4daa9a);else{const _0x31664b=_0x1dc3be(),_0x26c8df=_0x37f8b9['id'];this[_0x42b2('0x1c')]({'id':_0x31664b,'type':'formatInline:'+_0x2a91bc,'data':_0x2dd38e,'createdAt':new Date(),'authorId':_0x26c8df,'attributes':_0x3c510d}),this['_addSuggestionMarker'](_0x42b2('0xfb')+_0x2a91bc,_0x31664b,_0x26c8df,_0x4daa9a);}}return null;}[_0x42b2('0x133')](_0x17b224,_0x2fa5c1,_0x321b0d=[],_0x33fddf=null,_0x33dab2={}){_0x2fa5c1['formatGroupId']||(_0x2fa5c1[_0x42b2('0x2e')]=_0x2fa5c1['commandName']),_0x2fa5c1[_0x42b2('0x64')]=_0x17b224['is']('range'),_0x33fddf=_0x33fddf||Nt(_0x2fa5c1);const _0x460a54=_0x321b0d[_0x42b2('0x3e')](_0x3a1c3e=>jt(_0x3a1c3e,this[_0x42b2('0xa6')])),_0x53f801=_0x17b224['is']('range')?_0x17b224:jt(_0x17b224,this['_model']);if(_0x42b2('0x1d')===this[_0x42b2('0xa8')]){const _0x3f2799=this[_0x42b2('0xfe')][_0x42b2('0xbd')]('formatBlock',_0x33fddf,'accept');return this[_0x42b2('0x5b')](()=>_0x3f2799([_0x53f801],_0x2fa5c1,_0x33dab2)),null;}_0x460a54[_0x42b2('0xf1')](_0x53f801);let _0x29af99=!0x0;for(const _0x484e72 of _0x460a54)if(!this[_0x42b2('0x61')](_0x484e72)){_0x29af99=!0x1;break;}if(_0x29af99&&_0x42b2('0x1')!==this[_0x42b2('0xa8')]){const _0x451f83=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x33fddf,_0x42b2('0x107'));return this[_0x42b2('0x5b')](()=>_0x451f83([_0x53f801],_0x2fa5c1,_0x33dab2)),null;}let _0x184097=null,_0x2e0df1=_0x53f801[_0x42b2('0x8a')],_0x2d274=_0x53f801[_0x42b2('0xeb')];for(const {suggestion:_0x30441b,meta:_0xcee523}of this[_0x42b2('0x59')](_0x53f801,_0x42b2('0xdf'))){if(!_0xcee523['isOwn'])continue;if(_0xcee523[_0x42b2('0x138')]||_0xcee523[_0x42b2('0xf0')]||_0xcee523[_0x42b2('0xca')])continue;if(_0x30441b[_0x42b2('0x78')][_0x42b2('0x2e')]!=_0x2fa5c1['formatGroupId'])continue;if(!Ot(_0x30441b,_0x33dab2))continue;const _0x167742=_0x30441b[_0x42b2('0xb3')]();if(_0x30441b[_0x42b2('0x143')]==_0x33fddf){if(_0x167742[_0x42b2('0x109')](_0x53f801,!0x0))return null;_0x2e0df1=_0x2e0df1[_0x42b2('0x29')](_0x167742[_0x42b2('0x8a')])?_0x2e0df1:_0x167742['start'],_0x2d274=_0x2d274[_0x42b2('0x129')](_0x167742['end'])?_0x2d274:_0x167742[_0x42b2('0xeb')],_0x184097?_0x167742[_0x42b2('0x8a')][_0x42b2('0x29')](_0x184097[_0x42b2('0xb3')]()[_0x42b2('0x8a')])?(_0x184097[_0x42b2('0x76')](),_0x184097=_0x30441b):_0x30441b[_0x42b2('0x76')]():_0x184097=_0x30441b;}else{const _0x552cf9=_0x53f801[_0x42b2('0xf2')](_0x167742);this[_0x42b2('0x12b')](_0x30441b,_0x552cf9);}}const _0x17ff91=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x255797=_0x1dc3be(),_0x5a9fb4=_0x17ff91['id'];if(_0x184097)return this['_setSuggestionRange'](_0x184097,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x2e0df1,_0x2d274)),_0x184097;{const _0x4a6823=this[_0x42b2('0x1c')]({'id':_0x255797,'type':_0x42b2('0x67')+_0x33fddf,'data':_0x2fa5c1,'createdAt':new Date(),'authorId':_0x5a9fb4,'attributes':_0x33dab2});return this[_0x42b2('0x2b')]('formatBlock:'+_0x33fddf,_0x255797,_0x5a9fb4,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x2e0df1,_0x2d274)),_0x4a6823;}}[_0x42b2('0x136')](_0x50d7da,_0x3bd8a4,_0x26e997=[],_0x334249=null,_0x16e116={}){_0x3bd8a4[_0x42b2('0x2e')]||(_0x3bd8a4[_0x42b2('0x2e')]=_0x3bd8a4['commandName']);const _0x11dd62=_0x50d7da[0x0];_0x3bd8a4['multipleBlocks']=_0x11dd62['is'](_0x42b2('0x11e')),_0x334249=_0x334249||Nt(_0x3bd8a4);const _0x3673bc=_0x26e997[_0x42b2('0x3e')](_0xf3eb03=>jt(_0xf3eb03,this['_model'])),_0x365e80=_0x11dd62['is'](_0x42b2('0x11e'))?_0x50d7da:_0x50d7da['map'](_0x25c667=>jt(_0x25c667,this['_model']));if(_0x42b2('0x1d')===this['_trackFormatChanges']){const _0x1e97ef=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,'accept');return this[_0x42b2('0x5b')](()=>_0x1e97ef(_0x365e80,_0x3bd8a4,_0x16e116)),null;}_0x3673bc['push'](..._0x365e80);let _0xf22277=!0x0;for(const _0x43028d of _0x3673bc)if(!this[_0x42b2('0x61')](_0x43028d)){_0xf22277=!0x1;break;}if(_0xf22277&&'always'!==this[_0x42b2('0xa8')]){const _0x412cec=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x412cec(_0x365e80,_0x3bd8a4,_0x16e116)),null;}const _0x3b7a3d=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'];for(const _0x4f795a of this[_0x42b2('0x7b')]()){if(_0x4f795a[_0x42b2('0x114')]['id']!=_0x3b7a3d['id'])continue;if(_0x42b2('0xdf')!=_0x4f795a['type']||_0x4f795a['data'][_0x42b2('0x2e')]!=_0x3bd8a4['formatGroupId'])continue;if(!Ot(_0x4f795a,_0x16e116))continue;const _0x2ca33f=_0x4f795a[_0x42b2('0x143')]==_0x334249;for(let _0x832f18=0x0;_0x832f18<_0x365e80[_0x42b2('0xde')];_0x832f18++){const _0x559808=_0x365e80[_0x832f18];for(const _0x1e4590 of _0x4f795a[_0x42b2('0x60')]()){const _0x3ce9d8=_0x1e4590['getRange']();if(_0x559808['isEqual'](_0x3ce9d8)){_0x2ca33f?(_0x365e80[_0x42b2('0x28')](_0x832f18,0x1),_0x832f18--):_0x4f795a[_0x42b2('0x12c')](_0x1e4590[_0x42b2('0xce')]);break;}}}}if(0x0==_0x365e80[_0x42b2('0xde')])return null;const _0x448391=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,_0x42b2('0x32'));for(const _0xb446cd of this['getSuggestions']())if(_0xb446cd['author']['id']==_0x3b7a3d['id']&&_0x42b2('0xdf')==_0xb446cd[_0x42b2('0x121')]&&_0xb446cd[_0x42b2('0x78')]['formatGroupId']==_0x3bd8a4['formatGroupId']&&_0xb446cd[_0x42b2('0x143')]==_0x334249&&Ot(_0xb446cd,_0x16e116)&&(_0x448391(_0xb446cd[_0x42b2('0x58')](),_0x365e80)||_0x448391(_0x365e80,_0xb446cd[_0x42b2('0x58')]()))){for(const _0x498c9b of _0x365e80)_0xb446cd[_0x42b2('0xc4')](_0x498c9b);return _0xb446cd;}const _0x443cf7=_0x1dc3be(),_0x5a9fbd=_0x3b7a3d['id'],_0x117093=_0x42b2('0x67')+_0x334249,_0x1dd7de=this[_0x42b2('0x1c')]({'id':_0x443cf7,'type':_0x117093,'data':_0x3bd8a4,'createdAt':new Date(),'authorId':_0x5a9fbd,'attributes':_0x16e116});for(const _0x5589a7 of _0x365e80)this[_0x42b2('0x2b')](_0x117093,_0x443cf7,_0x5a9fbd,_0x5589a7,_0x2918a7['getMultiRangeId']());return _0x1dd7de;}[_0x42b2('0x10')](_0x5ae3ce,_0x30e064=null,_0x61156e={}){if(_0x5ae3ce['isCollapsed'])return null;const _0x34ad38=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x5c7f31=new _0x48c2b6(_0x5ae3ce[_0x42b2('0x8a')],_0x5ae3ce[_0x42b2('0xeb')]);for(const {suggestion:_0x512fc9,meta:_0x4f6f24}of this[_0x42b2('0x59')](_0x5c7f31,_0x42b2('0x42')))if(_0x4f6f24[_0x42b2('0x54')]&&!_0x4f6f24[_0x42b2('0x138')]){if(_0x512fc9[_0x42b2('0xc7')]){const _0x26fb41=_0x512fc9['getRanges']()[_0x42b2('0xc3')](_0x3a9272=>'$graveyard'!=_0x3a9272['root'][_0x42b2('0xa4')]);_0x26fb41[_0x42b2('0x3a')](_0x3b582f=>_0x5c7f31[_0x42b2('0x109')](_0x3b582f,!0x0))&&_0x512fc9[_0x42b2('0xad')]();if(_0x26fb41[_0x42b2('0xa2')](_0x5eccad=>_0x5eccad[_0x42b2('0x109')](_0x5c7f31,!0x0))){const _0x55c8f8=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0x140'),_0x30e064,'accept');return this[_0x42b2('0x5b')](()=>_0x55c8f8([_0x5c7f31],null,_0x61156e)),null;}}else{const _0x5b6b0e=_0x5c7f31[_0x42b2('0xf2')](_0x512fc9[_0x42b2('0xb3')]());null!==_0x5b6b0e&&_0x512fc9['_onDiscard']([_0x5b6b0e],null,_0x61156e);}}if(_0x5c7f31[_0x42b2('0xe3')](),_0x5c7f31[_0x42b2('0xac')]||_0x42b2('0x1f')==_0x5c7f31[_0x42b2('0xc9')][_0x42b2('0xa4')])return null;let _0x410345=null,_0x4d8a06=_0x5c7f31[_0x42b2('0x8a')],_0x5acfaa=_0x5c7f31[_0x42b2('0xeb')];const _0x3b6059=this[_0x42b2('0x59')](_0x5c7f31,_0x42b2('0x140'));for(const {suggestion:_0x365cc3,meta:_0x5b6c5e}of _0x3b6059){const _0x336df4=this[_0x42b2('0xa6')]['createRange'](_0x4d8a06,_0x5acfaa);if(_0x5b6c5e[_0x42b2('0x54')]&&(this[_0x42b2('0x5c')]||!_0x5b6c5e[_0x42b2('0xf0')]&&!_0x5b6c5e[_0x42b2('0xca')])){if(_0x365cc3['isMultiRange']){if(!Ot(_0x365cc3,_0x61156e))continue;let _0x4f9cda=!0x0;for(const _0x271cb3 of _0x365cc3[_0x42b2('0x58')]()){if(_0x271cb3[_0x42b2('0x109')](_0x336df4,!0x0))return _0x365cc3;_0x336df4[_0x42b2('0x109')](_0x271cb3)||(_0x4f9cda=!0x1);}_0x4f9cda&&_0x365cc3[_0x42b2('0xad')]();}else{const _0x50381a=_0x365cc3['getFirstRange']();if(_0x50381a[_0x42b2('0x109')](_0x336df4,!0x0))return _0x365cc3;if(!Ot(_0x365cc3,_0x61156e)){_0x336df4[_0x42b2('0x109')](_0x50381a)?_0x365cc3['removeMarkers']():_0x50381a[_0x42b2('0x20')](_0x4d8a06)?_0x4d8a06=_0x50381a[_0x42b2('0xeb')]:_0x50381a[_0x42b2('0x20')](_0x5acfaa)&&(_0x5acfaa=_0x50381a[_0x42b2('0x8a')]);continue;}_0x4d8a06=_0x4d8a06[_0x42b2('0x29')](_0x50381a[_0x42b2('0x8a')])?_0x4d8a06:_0x50381a[_0x42b2('0x8a')],_0x5acfaa=_0x5acfaa[_0x42b2('0x129')](_0x50381a[_0x42b2('0xeb')])?_0x5acfaa:_0x50381a[_0x42b2('0xeb')],_0x61156e=Object[_0x42b2('0x11a')]({},_0x365cc3[_0x42b2('0x8b')]),_0x410345?_0x50381a[_0x42b2('0x8a')][_0x42b2('0x29')](_0x410345[_0x42b2('0xb3')]()[_0x42b2('0x8a')])?(_0x410345['removeMarkers'](),_0x410345=_0x365cc3):_0x365cc3[_0x42b2('0x76')]():_0x410345=_0x365cc3;}}}if(_0x410345)return this[_0x42b2('0x98')](_0x410345,this['_model'][_0x42b2('0x100')](_0x4d8a06,_0x5acfaa)),_0x410345;{const _0x5dfe88=_0x1dc3be(),_0x1eafbc=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x4d8a06,_0x5acfaa),_0x47d76f=_0x34ad38['id'],_0x257ad0=_0x30e064?_0x42b2('0x13c')+_0x30e064:_0x42b2('0x140'),_0x2207f7=this[_0x42b2('0x1c')]({'id':_0x5dfe88,'type':_0x257ad0,'createdAt':new Date(),'authorId':_0x47d76f,'attributes':_0x61156e});return this[_0x42b2('0x2b')](_0x257ad0,_0x5dfe88,_0x47d76f,_0x1eafbc),_0x2207f7;}}['markMultiRangeDeletion'](_0x527d81,_0x4a9004=_0x42b2('0x101'),_0x182b0a={}){const _0x225bc9=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')]('Users')['me'],_0x12e520=_0x527d81[_0x42b2('0x3e')](_0xdd7184=>new _0x48c2b6(_0xdd7184[_0x42b2('0x8a')],_0xdd7184['end'])),_0x179005=new Set();for(const {suggestion:_0x453a50,meta:_0x2b50af}of this[_0x42b2('0x59')](_0x12e520,_0x42b2('0x42')))_0x2b50af[_0x42b2('0x54')]&&!_0x2b50af[_0x42b2('0x138')]&&_0x179005[_0x42b2('0x7e')](_0x453a50);for(const _0x336453 of _0x179005)if(_0x336453[_0x42b2('0xc7')]){const _0x313fa8=_0x336453['getRanges']();(!_0x336453[_0x42b2('0x8b')]||!_0x336453[_0x42b2('0x8b')][_0x42b2('0x11d')])&&(_0x313fa8[_0x42b2('0x3a')](_0x3db20c=>_0x12e520[_0x42b2('0xa2')](_0x48d127=>_0x48d127[_0x42b2('0x109')](_0x3db20c,!0x0)))&&_0x336453[_0x42b2('0xad')]());if(_0x12e520[_0x42b2('0x3a')](_0x6e747a=>_0x313fa8['some'](_0x52e6b0=>_0x52e6b0[_0x42b2('0x109')](_0x6e747a,!0x0)))){const _0x4a4872=this['_suggestionFactory'][_0x42b2('0xbd')](_0x42b2('0x140'),_0x4a9004,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x4a4872(_0x527d81,null,_0x182b0a)),null;}}else{const _0x313661=_0x336453[_0x42b2('0xb3')]();_0x12e520[_0x42b2('0xa2')](_0x1515ad=>_0x1515ad[_0x42b2('0x109')](_0x313661,!0x0))&&_0x336453['discard']();if(_0x12e520[_0x42b2('0x3a')](_0x1ef4d7=>_0x313661[_0x42b2('0x109')](_0x1ef4d7,!0x0))){const _0x1e5758=this[_0x42b2('0xfe')][_0x42b2('0xbd')]('deletion',_0x4a9004,_0x42b2('0x107'));return this[_0x42b2('0x5b')](()=>_0x1e5758(_0x12e520,null,_0x182b0a)),null;}}const _0x4c175c=this[_0x42b2('0xfe')]['getSuggestionCallback'](_0x42b2('0x140'),_0x4a9004,'join');let _0x59cf2e=null;for(const _0x5dfb01 of this[_0x42b2('0x7b')]())if(_0x5dfb01[_0x42b2('0x114')]['id']==_0x225bc9['id']&&_0x5dfb01['isInContent']&&_0x42b2('0x140')==_0x5dfb01[_0x42b2('0x121')]&&_0x5dfb01[_0x42b2('0x143')]==_0x4a9004&&Ot(_0x5dfb01,_0x182b0a)&&(_0x4c175c(_0x5dfb01[_0x42b2('0x58')](),_0x12e520)||_0x4c175c(_0x12e520,_0x5dfb01[_0x42b2('0x58')]()))){if(_0x59cf2e){if(_0x5dfb01['commentThread']&&_0x5dfb01[_0x42b2('0x11b')]['length'])continue;for(const _0x57daf6 of _0x5dfb01[_0x42b2('0x58')]())_0x59cf2e[_0x42b2('0x24')](_0x57daf6)||_0x59cf2e[_0x42b2('0xc4')](_0x57daf6);_0x5dfb01[_0x42b2('0x76')]();}else{_0x59cf2e=_0x5dfb01;for(const _0x2049ba of _0x12e520)_0x5dfb01[_0x42b2('0x24')](_0x2049ba)||_0x5dfb01[_0x42b2('0xc4')](_0x2049ba);}}if(_0x59cf2e)return _0x59cf2e;_0x179005[_0x42b2('0x63')]();for(const {suggestion:_0x203864,meta:_0x5b90c5}of this[_0x42b2('0x59')](_0x12e520,_0x42b2('0x140')))_0x5b90c5[_0x42b2('0x54')]&&(this[_0x42b2('0x5c')]||!_0x5b90c5[_0x42b2('0xf0')]&&!_0x5b90c5['isInsideObject'])&&Ot(_0x203864,_0x182b0a)&&_0x179005[_0x42b2('0x7e')](_0x203864);for(const _0x193322 of _0x179005){const _0x349ab9=_0x193322[_0x42b2('0x58')]();if(!_0x182b0a||!_0x182b0a[_0x42b2('0x11d')]){if(_0x12e520[_0x42b2('0x3a')](_0x2eccef=>_0x349ab9[_0x42b2('0xa2')](_0x367ebb=>_0x367ebb[_0x42b2('0x109')](_0x2eccef,!0x0))))return _0x193322;}(!_0x193322[_0x42b2('0x8b')]||!_0x193322[_0x42b2('0x8b')][_0x42b2('0x11d')])&&(_0x349ab9[_0x42b2('0x3a')](_0x5ccd5b=>_0x12e520['some'](_0x270b89=>_0x270b89[_0x42b2('0x109')](_0x5ccd5b,!0x0)))&&_0x193322[_0x42b2('0xad')]());}const _0x152a29=_0x1dc3be(),_0x2cebff=_0x225bc9['id'],_0x1974dd=_0x42b2('0x13c')+_0x4a9004,_0x44f9a7=this[_0x42b2('0x1c')]({'id':_0x152a29,'type':_0x1974dd,'createdAt':new Date(),'authorId':_0x2cebff,'attributes':_0x182b0a});for(const _0x56d595 of _0x12e520)_0x56d595[_0x42b2('0xe3')](),_0x56d595[_0x42b2('0xac')]||_0x42b2('0x1f')==_0x56d595['root'][_0x42b2('0xa4')]||this['_addSuggestionMarker'](_0x1974dd,_0x152a29,_0x2cebff,_0x56d595,_0x2918a7[_0x42b2('0x8d')]());return _0x44f9a7;}[_0x42b2('0x98')](_0x446714,_0x23e175){const _0xd3d1ce=_0x446714['getFirstMarker']();this['_model'][_0x42b2('0x5a')](_0xc6443e=>{_0xc6443e[_0x42b2('0x4a')](_0xd3d1ce,{'range':_0x23e175});});}['_addThreadToSuggestion'](_0x460667){const _0x10fdce=_0x460667['id'],_0x490abe=this['editor'][_0x42b2('0xc0')]['get'](_0x42b2('0xd0'));this[_0x42b2('0xa5')]['hasCommentThread'](_0x10fdce)||this['_commentsRepository'][_0x42b2('0xda')]({'channelId':_0x490abe,'threadId':_0x10fdce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbfdd70=this[_0x42b2('0xa5')][_0x42b2('0x105')](_0x10fdce);_0xbfdd70[_0x42b2('0x11c')](_0x42b2('0x45')),_0xbfdd70[_0x42b2('0x45')]=!0x1,_0x460667[_0x42b2('0x11b')]=_0xbfdd70;}[_0x42b2('0x3d')](_0x46cc96,_0x1b529e,_0xeca86f,_0x1e0f37){if(_0x46cc96[_0x42b2('0x121')]!=_0x1b529e||_0x46cc96[_0x42b2('0x143')]!=_0xeca86f||_0x46cc96[_0x42b2('0x104')]['id']!=_0x1e0f37)throw this['editor']['enableReadOnlyMode'](_0x42b2('0xf')),new _0x81a6ba(_0x42b2('0xf'),this);}[_0x42b2('0x12b')](_0x4bbaf4,_0x2beca2){const _0x48e9a3=_0x4bbaf4[_0x42b2('0xb3')]();if(_0x2beca2[_0x42b2('0x10d')](_0x48e9a3))_0x4bbaf4[_0x42b2('0x76')]();else{if(_0x48e9a3['containsRange'](_0x2beca2)){const _0x1947fc=this['_model'][_0x42b2('0x7a')](_0x2beca2['start'][_0x42b2('0x5f')],_0x42b2('0xeb'));this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x48e9a3[_0x42b2('0x8a')],_0x1947fc));const _0x1f37df=_0x1dc3be(),_0x1b9f77=_0x4bbaf4[_0x42b2('0x104')]['id'],_0x756bd0=_0x4bbaf4['type']+':'+_0x4bbaf4[_0x42b2('0x143')];this[_0x42b2('0x1c')]({'id':_0x1f37df,'type':_0x756bd0,'createdAt':new Date(),'authorId':_0x1b9f77,'data':_0x4bbaf4[_0x42b2('0x78')],'attributes':_0x4bbaf4['attributes']});const _0x36fe0f=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0xeb')][_0x42b2('0xf8')],_0x42b2('0x4c')),_0x161a09=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x36fe0f,_0x48e9a3[_0x42b2('0xeb')]);this[_0x42b2('0x2b')](_0x756bd0,_0x1f37df,_0x1b9f77,_0x161a09);}else{if(_0x48e9a3[_0x42b2('0x20')](_0x2beca2['start'])){const _0xeee909=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0x8a')][_0x42b2('0x5f')],_0x42b2('0xeb'));this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')]['createRange'](_0x48e9a3[_0x42b2('0x8a')],_0xeee909));}else{const _0x9de5ff=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0xeb')][_0x42b2('0xf8')],'after');this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')]['createRange'](_0x9de5ff,_0x48e9a3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47f2e0){for(const {suggestion:_0x25a1e1,meta:_0x2b2e01}of this['_findSuggestions'](_0x47f2e0,'insertion')){if(!_0x2b2e01[_0x42b2('0x54')])continue;const _0x35d0fe=_0x25a1e1[_0x42b2('0x58')]();for(const _0x92fe31 of _0x35d0fe)if(!_0x47f2e0[_0x42b2('0xd3')](_0x92fe31)[_0x42b2('0xde')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3f2ac1){const _0x1ec059=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['getUser'](_0x3f2ac1);if(!_0x1ec059)throw new _0x81a6ba(_0x42b2('0xc'),this);return _0x1ec059;}['_getExternalAuthor'](_0x2d34e9){const _0xf80512=this['editor'][_0x42b2('0x46')]['get'](_0x42b2('0xcb')),_0x44520a=_0x9faea9('external:'+_0x2d34e9),_0x23f8b2=_0xf80512[_0x42b2('0x81')](_0x44520a);return _0x23f8b2||_0xf80512[_0x42b2('0x69')]({'id':_0x44520a,'name':_0x2d34e9});}['_createSuggestion'](_0x263976,_0x148775,_0x2dbdcb,_0x58cf9b,_0x338009){const _0x32498f=this[_0x42b2('0x10f')](_0x58cf9b),_0x166f72=this['_suggestionFactory'][_0x42b2('0x66')](_0x263976,_0x148775,_0x2dbdcb,_0x32498f,_0x338009,_0x4d267d=>this[_0x42b2('0x6f')](_0x2dbdcb,{'attributes':_0x4d267d}));return this[_0x42b2('0x75')](_0x166f72,_0x42b2('0x107'),()=>{this[_0x42b2('0x6f')](_0x2dbdcb,{'state':'accepted'});},{'priority':_0x42b2('0x11f')}),this[_0x42b2('0x75')](_0x166f72,'discard',()=>{this[_0x42b2('0x6f')](_0x2dbdcb,{'state':_0x42b2('0x2d')});},{'priority':'high'}),this[_0x42b2('0x103')][_0x42b2('0xae')](_0x2dbdcb,_0x166f72),this[_0x42b2('0x12f')]['set'](_0x166f72,_0x42b2('0xe5')),_0x166f72;}[_0x42b2('0x50')](_0x3f4b00){const _0x467ee5=_0x3f4b00[_0x42b2('0x15')](':');return{'group':_0x467ee5[0x0],'type':_0x467ee5[0x1],'subType':_0x467ee5[_0x42b2('0xde')]>=0x5?_0x467ee5[0x2]:null,'id':_0x467ee5['length']<0x5?_0x467ee5[0x2]:_0x467ee5[0x3],'authorId':_0x467ee5['length']<0x5?_0x467ee5[0x3]:_0x467ee5[0x4],'markerCount':0x6==_0x467ee5[_0x42b2('0xde')]?_0x467ee5[0x5]:null};}['_breakSuggestionMarker'](_0x1e63b5,_0x5c0bd5,_0x4b5dc3){const _0x4897e8=_0x1e63b5[_0x42b2('0xb3')](),_0x32044f=_0x4897e8[_0x42b2('0x8a')],_0x14efe8=_0x4897e8['end'];this[_0x42b2('0x98')](_0x1e63b5,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x32044f,_0x5c0bd5));const _0x16b46b=_0x1dc3be(),_0x5d3f16=_0x1e63b5[_0x42b2('0x104')]['id'],_0x1d3ab9=_0x1e63b5['type']+(_0x1e63b5[_0x42b2('0x143')]?':'+_0x1e63b5[_0x42b2('0x143')]:'');this['_setSuggestionData']({'id':_0x16b46b,'type':_0x1d3ab9,'createdAt':new Date(),'authorId':_0x5d3f16,'originalSuggestionId':_0x1e63b5['id'],'attributes':_0x1e63b5[_0x42b2('0x8b')],'data':_0x1e63b5[_0x42b2('0x78')]}),_0x42b2('0xdf')==_0x1e63b5[_0x42b2('0x121')]&&(_0x4b5dc3=this[_0x42b2('0xa6')][_0x42b2('0xfd')](_0x4b5dc3[_0x42b2('0xf8')])),this[_0x42b2('0x2b')](_0x1d3ab9,_0x16b46b,_0x5d3f16,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x4b5dc3,_0x14efe8));}[_0x42b2('0x59')](_0x27b0ce,_0x451a68=null){const _0x301b2d=[],_0x2ea551=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'];Array[_0x42b2('0x137')](_0x27b0ce)||(_0x27b0ce=[_0x27b0ce]);for(const _0x4c3237 of this[_0x42b2('0x7b')]()){if(!_0x4c3237[_0x42b2('0x145')])continue;if(_0x451a68&&_0x4c3237[_0x42b2('0x121')]!=_0x451a68)continue;let _0x5a9933=!0x1;for(const _0x5239ea of _0x4c3237[_0x42b2('0x58')]()){for(const _0x512b76 of _0x27b0ce){const _0x203fdf=_0x512b76['start'][_0x42b2('0x10d')](_0x5239ea['end'])||_0x512b76['end'][_0x42b2('0x10d')](_0x5239ea[_0x42b2('0x8a')]);if(_0x203fdf||_0x512b76[_0x42b2('0xf2')](_0x5239ea)){const _0x44b34d=_0x512b76[_0x42b2('0x109')](_0x5239ea)&&_t(this[_0x42b2('0xa6')][_0x42b2('0xbb')],_0x5239ea[_0x42b2('0x8a')],_0x512b76),_0x586efb=_0x5239ea[_0x42b2('0x109')](_0x512b76)&&_t(this[_0x42b2('0xa6')][_0x42b2('0xbb')],_0x512b76[_0x42b2('0x8a')],_0x5239ea);_0x301b2d[_0x42b2('0xf1')]({'suggestion':_0x4c3237,'meta':{'isOwn':_0x2ea551==_0x4c3237['author'],'isNextTo':_0x203fdf,'isInsideObject':_0x44b34d,'containsRangeInObject':_0x586efb}}),_0x5a9933=!0x0;break;}}if(_0x5a9933)break;}}return _0x301b2d;}[_0x42b2('0x2b')](_0x201140,_0x1effc4,_0x1506ae,_0x205ea0,_0xa119b3){this['_model'][_0x42b2('0x5a')](_0x254b22=>{let _0x15127c=_0x42b2('0xa3')+_0x201140+':'+_0x1effc4+':'+_0x1506ae;_0xa119b3&&(_0x15127c=_0x15127c+':'+_0xa119b3),_0x254b22[_0x42b2('0xf3')](_0x15127c,{'range':_0x205ea0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x42b2('0xb5')](_0x1ab63b){const _0x21f7ab=_0x1ab63b['previous'],_0x1f7de7=_0x1ab63b[_0x42b2('0xab')];_0x1ab63b[_0x42b2('0x10c')]=null,null!=_0x21f7ab&&(_0x21f7ab[_0x42b2('0xab')]=null),_0x1ab63b[_0x42b2('0xab')]=null,null!=_0x1f7de7&&(_0x1f7de7[_0x42b2('0x10c')]=null),_0x42b2('0x122')==this[_0x42b2('0x12f')][_0x42b2('0x102')](_0x1ab63b)&&(this['_suggestionState'][_0x42b2('0xae')](_0x1ab63b,'removed'),this[_0x42b2('0x91')](_0x42b2('0x72'),_0x1ab63b,_0x21f7ab,_0x1f7de7));}[_0x42b2('0x1c')](_0x45db27){const _0x5f2570=_0x45db27['id'],_0x9e5612=this['addSuggestionData'](_0x45db27);if(this[_0x42b2('0x53')]&&this['_adapter'][_0x42b2('0x12a')]){const _0x55ea5=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0x13b')),_0x456dcb=_0x9e5612[_0x42b2('0x56')],_0x3426f5=_0x9e5612[_0x42b2('0x143')]?_0x9e5612[_0x42b2('0x121')]+':'+_0x9e5612[_0x42b2('0x143')]:_0x9e5612[_0x42b2('0x121')],_0x4925c8=this['editor'][_0x42b2('0x13d')],_0x25c979=_0x55ea5[_0x42b2('0x7e')](_0x1c3871(_0x4925c8,_0x42b2('0x41'))),_0x3db470={'id':_0x5f2570,'type':_0x3426f5,'hasComments':_0x456dcb,'data':_0x45db27[_0x42b2('0x78')]||null,'originalSuggestionId':_0x45db27[_0x42b2('0x9e')]||null,'attributes':_0x9e5612[_0x42b2('0x8b')]};this['_adapter'][_0x42b2('0x12a')](_0x3db470)[_0x42b2('0xdd')](_0x3f8157=>{_0x9e5612[_0x42b2('0x97')]=!0x0,_0x55ea5[_0x42b2('0xb2')](_0x25c979),_0x3f8157&&_0x3f8157['createdAt']&&(this[_0x42b2('0x103')][_0x42b2('0x102')](_0x5f2570)[_0x42b2('0x2a')]=_0x3f8157[_0x42b2('0x2a')]);})['catch'](_0x54d9c1=>{throw _0x184e53(_0x42b2('0xe')),this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x113')]({'isUndoable':!0x1},()=>{_0x9e5612[_0x42b2('0xad')]();}),_0x9e5612['stopListening'](),this[_0x42b2('0x103')]['delete'](_0x9e5612['id']),this[_0x42b2('0x12f')]['delete'](_0x9e5612),_0x54d9c1;});}return _0x9e5612;}[_0x42b2('0x6f')](_0x3d2bea,_0x15084f){const _0x172a03=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0x13b')),_0x123d4=this[_0x42b2('0x7')](_0x3d2bea);if(this[_0x42b2('0x53')]&&this[_0x42b2('0x53')][_0x42b2('0xd1')]){if(_0x123d4[_0x42b2('0x97')]){const _0x21d798=_0x172a03[_0x42b2('0x7e')](_0x1c3871(this[_0x42b2('0x48')]['locale'],_0x42b2('0x41')));this['_adapter'][_0x42b2('0xd1')](_0x3d2bea,_0x15084f)[_0x42b2('0xdd')](()=>{_0x172a03[_0x42b2('0xb2')](_0x21d798);});}else _0x123d4['on'](_0x42b2('0x139'),()=>{this[_0x42b2('0x6f')](_0x3d2bea,_0x15084f);});}}[_0x42b2('0x7d')](_0x464f56){if(!this[_0x42b2('0x53')]||!this[_0x42b2('0x53')][_0x42b2('0x7')])throw new _0x81a6ba(_0x42b2('0xb0'),this);return this['_adapter'][_0x42b2('0x7')](_0x464f56);}[_0x42b2('0x131')](_0x5aa7f1){const {id:_0xc40f68,type:_0x5d5039,subType:_0xe79f01,authorId:_0x48632a}=this[_0x42b2('0x50')](_0x5aa7f1),_0x27a6f3=this[_0x42b2('0x103')][_0x42b2('0x102')](_0xc40f68)||this[_0x42b2('0x4')](_0x5d5039,_0xe79f01,_0xc40f68,_0x48632a,{});switch(this['_checkSuggestionCorrectness'](_0x27a6f3,_0x5d5039,_0xe79f01,_0x48632a),this['_suggestionState'][_0x42b2('0x102')](_0x27a6f3)){case _0x42b2('0xe5'):this[_0x42b2('0x7d')](_0xc40f68)[_0x42b2('0xdd')](_0x3761ce=>{let _0x4f634b=Promise[_0x42b2('0x30')]();_0x3761ce[_0x42b2('0x56')]&&(_0x4f634b=this[_0x42b2('0xa5')][_0x42b2('0x13')]({'channelId':this[_0x42b2('0x48')]['config'][_0x42b2('0x102')]('collaboration.channelId'),'threadId':_0xc40f68})),_0x4f634b[_0x42b2('0xdd')](()=>{this[_0x42b2('0x82')](_0x3761ce)[_0x42b2('0x97')]=!0x0;});}),this['_suggestionState'][_0x42b2('0xae')](_0x27a6f3,_0x42b2('0x9'));break;case _0x42b2('0x132'):this['_updateSuggestionData'](_0xc40f68,{'state':_0x42b2('0x1b')});case _0x42b2('0x36'):this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x27a6f3,_0x42b2('0x122')),this[_0x42b2('0x91')](_0x42b2('0xe7'),_0x27a6f3);break;case _0x42b2('0x122'):this[_0x42b2('0x91')](_0x42b2('0x8c'),_0x27a6f3);}return _0x27a6f3[_0x42b2('0xb4')](_0x5aa7f1),_0x27a6f3;}[_0x42b2('0x39')](_0x3e7d30){const _0x8a404e=Array[_0x42b2('0x71')](_0x3e7d30)[_0x42b2('0xc3')](_0x17cba1=>!_0x17cba1[_0x42b2('0xc7')]),_0xb6dd99=this[_0x42b2('0x7b')]({'skipNotAttached':!0x0})['filter'](_0x4de2fd=>!_0x4de2fd[_0x42b2('0xc7')]),_0x6fb8b0=_0xb6dd99[_0x42b2('0xc3')](_0x5075cc=>!_0x3e7d30[_0x42b2('0x4b')](_0x5075cc)),_0x1f7344=new Map(_0xb6dd99[_0x42b2('0x3e')](_0x176f06=>[_0x176f06,this['_suggestionFactory'][_0x42b2('0xbd')](_0x176f06[_0x42b2('0x121')],_0x176f06[_0x42b2('0x143')],_0x42b2('0x9c'))])),_0x3cd746=new Map(_0xb6dd99['map'](_0xca6489=>[_0xca6489,_0xca6489[_0x42b2('0xb3')]()])),_0x20124c=new Set(),_0x18c109=new Set();for(let _0x139e58=0x0;_0x139e58<_0x8a404e[_0x42b2('0xde')];_0x139e58++)_0x4e6c45(_0x8a404e[_0x139e58],_0x8a404e,_0x139e58+0x1);for(let _0x20cb77=0x0;_0x20cb77<_0x8a404e[_0x42b2('0xde')];_0x20cb77++)_0x4e6c45(_0x8a404e[_0x20cb77],_0x6fb8b0,0x0);for(let _0x1cb96e=0x0;_0x1cb96e<_0x8a404e[_0x42b2('0xde')];_0x1cb96e++){const _0x4a7085=_0x8a404e[_0x1cb96e];!_0x18c109[_0x42b2('0x4b')](_0x4a7085)&&_0x4a7085[_0x42b2('0x10c')]&&(_0x4a7085[_0x42b2('0x10c')][_0x42b2('0xab')]===_0x4a7085&&(_0x4a7085[_0x42b2('0x10c')]['next']=null),_0x4a7085['previous']=null),!_0x20124c['has'](_0x4a7085)&&_0x4a7085[_0x42b2('0xab')]&&(_0x4a7085[_0x42b2('0xab')][_0x42b2('0x10c')]===_0x4a7085&&(_0x4a7085['next']['previous']=null),_0x4a7085[_0x42b2('0xab')]=null);}function _0x4e6c45(_0x22dc18,_0x2f69ee,_0xed7ef2){for(let _0x469856=_0xed7ef2;_0x469856<_0x2f69ee[_0x42b2('0xde')];_0x469856++){const _0x27358f=_0x590b5c(_0x22dc18,_0x2f69ee[_0x469856]);_0x27358f&&(_0x27358f[0x0][_0x42b2('0xab')]=_0x27358f[0x1],_0x27358f[0x1][_0x42b2('0x10c')]=_0x27358f[0x0],_0x20124c['add'](_0x27358f[0x0]),_0x18c109[_0x42b2('0x7e')](_0x27358f[0x1]));}}function _0x590b5c(_0x1d2264,_0x1d07ac){if(_0x1d2264['author']['id']!==_0x1d07ac[_0x42b2('0x114')]['id'])return null;const _0x4524e8=_0x1f7344['get'](_0x1d2264)(_0x1d2264,_0x1d07ac,_0x3cd746[_0x42b2('0x102')](_0x1d2264),_0x3cd746[_0x42b2('0x102')](_0x1d07ac));if(!_0x4524e8)return null;return _0x1f7344['get'](_0x1d07ac)(_0x1d2264,_0x1d07ac,_0x3cd746[_0x42b2('0x102')](_0x1d2264),_0x3cd746[_0x42b2('0x102')](_0x1d07ac))?_0x4524e8[0x1][_0x42b2('0x11b')]&&_0x4524e8[0x1]['commentThread'][_0x42b2('0xde')]?null:_0x4524e8:null;}}[_0x42b2('0x142')](_0xf7e956){const _0x347356=Array[_0x42b2('0x71')](_0xf7e956),_0x4f9b56=this[_0x42b2('0x7b')]({'skipNotAttached':!0x0}),_0x22e194=_0x4f9b56['filter'](_0x349e43=>!_0xf7e956['has'](_0x349e43)),_0x3a1466=new Map(_0x347356['map'](_0x23736d=>[_0x23736d,this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x23736d['type'],_0x23736d[_0x42b2('0x143')],'join')])),_0x63f618=new Map(_0x4f9b56[_0x42b2('0x3e')](_0x18e073=>[_0x18e073,_0x18e073[_0x42b2('0x58')]()]));for(let _0x3f9301=0x0;_0x3f9301<_0x347356[_0x42b2('0xde')];_0x3f9301++){if(_0x3c516c(this,_0x347356[_0x3f9301],_0x347356,_0x3f9301+0x1))return!0x0;}for(let _0x5a6d48=0x0;_0x5a6d48<_0x347356[_0x42b2('0xde')];_0x5a6d48++){if(_0x3c516c(this,_0x347356[_0x5a6d48],_0x22e194,0x0))return!0x0;}return!0x1;function _0x3c516c(_0x347946,_0x1d9766,_0x18a85b,_0x390b32){for(let _0x8459a9=_0x390b32;_0x8459a9<_0x18a85b[_0x42b2('0xde')];_0x8459a9++){const _0xaa4715=_0x18a85b[_0x8459a9];if(_0xaa4715['type']!==_0x1d9766[_0x42b2('0x121')]||_0xaa4715[_0x42b2('0x114')]['id']!==_0x1d9766['author']['id']||_0xaa4715['subType']!==_0x1d9766['subType'])continue;if(!Ut(_0x1d9766,_0xaa4715))continue;const _0x4da150=_0x3a1466[_0x42b2('0x102')](_0x1d9766),_0x2e680b=_0x63f618[_0x42b2('0x102')](_0x1d9766),_0x37d4df=_0x63f618[_0x42b2('0x102')](_0xaa4715),_0x3ee0e7=_0x1d9766[_0x42b2('0x11b')]&&_0x1d9766[_0x42b2('0x11b')][_0x42b2('0xde')],_0x859f8=_0xaa4715[_0x42b2('0x11b')]&&_0xaa4715[_0x42b2('0x11b')]['length'];if(!_0x3ee0e7&&_0x4da150(_0x37d4df,_0x2e680b))return _0x347946[_0x42b2('0xcc')](_0xaa4715,_0x1d9766),_0x63f618['delete'](_0x1d9766),!0x0;if(!_0x859f8&&_0x4da150(_0x2e680b,_0x37d4df))return _0x347946[_0x42b2('0xcc')](_0x1d9766,_0xaa4715),_0x63f618['delete'](_0xaa4715),!0x0;}return!0x1;}}[_0x42b2('0xcc')](_0xf87f92,_0x382d2e){if(_0xf87f92['isMultiRange'])for(const _0x39a92d of _0x382d2e['getRanges']())_0xf87f92[_0x42b2('0xc4')](_0x39a92d);else{const _0x1515c0=_0x382d2e[_0x42b2('0xb3')]()[_0x42b2('0xeb')];this['_setSuggestionRange'](_0xf87f92,this['_model'][_0x42b2('0x100')](_0xf87f92['getFirstRange']()[_0x42b2('0x8a')],_0x1515c0));}_0x382d2e['removeMarkers']();}}class Bt{constructor(_0x1bcc79){this[_0x42b2('0x68')]=_0x1bcc79,this['_model']=_0x1bcc79[_0x42b2('0xcf')],this[_0x42b2('0x9d')]=new Map(),this[_0x42b2('0x110')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x541141,_0x133704,_0x39824a,_0x534b51,_0x1e7b61,_0x425df4){return new _0x2918a7(this[_0x42b2('0xa6')],{'type':_0x541141,'subType':_0x133704,'id':_0x39824a,'author':_0x534b51,'creator':_0x534b51,'attributes':_0x1e7b61,'onAttributesChange':_0x425df4,'onAccept':(..._0x56de70)=>this['getSuggestionCallback'](_0x541141,_0x133704,'accept')(..._0x56de70),'onDiscard':(..._0x19d0db)=>this[_0x42b2('0xbd')](_0x541141,_0x133704,_0x42b2('0xad'))(..._0x19d0db)});}[_0x42b2('0x88')](_0x281579,_0x5623f6,_0x2e0f03,_0x4b5e55){const _0x4d7caf=_0x281579+':'+_0x5623f6+':'+_0x2e0f03;this[_0x42b2('0x9d')][_0x42b2('0xae')](_0x4d7caf,_0x4b5e55);}['getSuggestionCallback'](_0x12f421,_0x5a259a,_0x53fd9a){const _0x59b83e=_0x12f421+':'+_0x5a259a+':'+_0x53fd9a;return this[_0x42b2('0x9d')][_0x42b2('0x102')](_0x59b83e)||this[_0x42b2('0x110')][_0x42b2('0x102')](_0x12f421+':'+_0x53fd9a);}['_registerDefaultCallbacks'](){const _0x109618=()=>!0x1,_0x8f3018=_0x442a49=>{_0x442a49[_0x42b2('0x19')]((_0x1efe5f,_0x3de8c8)=>_0x1efe5f[_0x42b2('0x8a')]['isBefore'](_0x3de8c8['start'])?0x1:-0x1),this[_0x42b2('0xa6')][_0x42b2('0x5a')](_0xdd4864=>{for(const _0x404460 of _0x442a49){let _0x52265c;_0x52265c=_0x404460[_0x42b2('0xeb')]['isAtEnd']&&_0x404460['end'][_0x42b2('0xf8')]==_0x404460[_0x42b2('0x8a')]['nodeAfter']?_0xdd4864['createSelection'](_0x404460['start'][_0x42b2('0xa9')],'on'):_0xdd4864[_0x42b2('0x13f')](_0x404460),this[_0x42b2('0xa6')][_0x42b2('0xe6')](_0x52265c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2bdc65=(_0x22019b,_0x881d0d)=>{this[_0x42b2('0xa6')][_0x42b2('0x5a')](_0x1666ec=>{const {commandName:_0x2b1133,commandParams:_0x21653b=[]}=_0x881d0d,_0x707757=_0x22019b['map'](_0x5b996f=>(Mt(_0x5b996f)&&(_0x5b996f=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x5b996f['end'])),_0x5b996f))[_0x42b2('0xc3')](_0x215a45=>_0x42b2('0x1f')!==_0x215a45['root'][_0x42b2('0xa4')]);if(_0x707757[_0x42b2('0xde')]<0x1)return;const _0x55ba2a=Array[_0x42b2('0x71')](this[_0x42b2('0xa6')]['document'][_0x42b2('0x43')][_0x42b2('0x58')]())[_0x42b2('0x3e')](_0x11ef8f=>_0x48c2b6[_0x42b2('0xb6')](_0x11ef8f));_0x1666ec[_0x42b2('0x96')](_0x707757);for(const _0x49d409 of this['_editor']['commands'][_0x42b2('0x73')]())_0x49d409[_0x42b2('0x87')]();_0x21653b[_0x42b2('0xf1')]({'forceDefaultExecution':!0x0}),this[_0x42b2('0x68')]['execute'](_0x2b1133,..._0x21653b);const _0x20ef8b=_0x55ba2a[_0x42b2('0xc3')](_0xc95ed8=>'$graveyard'!=_0xc95ed8['root'][_0x42b2('0xa4')]);_0x20ef8b[_0x42b2('0xde')]>0x0&&_0x1666ec[_0x42b2('0x96')](_0x20ef8b);for(const _0x229848 of _0x55ba2a)_0x229848['detach']();});},_0x20eee5=(_0xfdb3b0,_0x378cab)=>0x1==_0xfdb3b0[_0x42b2('0xde')]&&0x1==_0x378cab['length']&&_0xfdb3b0[0x0][_0x42b2('0xeb')]['isEqual'](_0x378cab[0x0][_0x42b2('0x8a')]),_0x512475=(_0x53c6f5,_0x325920,_0xf499ff,_0x3c9e1b)=>xt(_0x53c6f5,_0x325920,_0xf499ff,_0x3c9e1b,this[_0x42b2('0xa6')])?[_0x53c6f5,_0x325920]:xt(_0x325920,_0x53c6f5,_0x3c9e1b,_0xf499ff,this[_0x42b2('0xa6')])?[_0x325920,_0x53c6f5]:null;this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0xa1'),_0x109618),this['_defaultCallbacks']['set'](_0x42b2('0xd5'),_0x8f3018),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x70'),_0x20eee5),this[_0x42b2('0x110')][_0x42b2('0xae')]('insertion:chain',_0x512475),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0x3c'),_0x8f3018),this[_0x42b2('0x110')][_0x42b2('0xae')]('deletion:discard',_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0x7f'),_0x20eee5),this[_0x42b2('0x110')]['set'](_0x42b2('0xd2'),_0x512475),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0xe4'),_0x2bdc65),this['_defaultCallbacks']['set'](_0x42b2('0x23'),_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0xa'),_0x20eee5),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x127'),_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0x124'),_0x2bdc65),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x51'),_0x109618),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x21'),_0x20eee5),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0x93'),_0x109618);}}function _t(_0x16f857,_0x288d63,_0x256931){for(const _0x12ce6b of _0x288d63[_0x42b2('0xf8')][_0x42b2('0x12e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x12ce6b[_0x42b2('0xc9')]==_0x12ce6b)return!0x1;if(!_0x256931[_0x42b2('0x99')](_0x12ce6b))return!0x1;if(_0x16f857[_0x42b2('0xe2')](_0x12ce6b)||_0x16f857[_0x42b2('0x8f')](_0x12ce6b))return!0x0;}return!0x1;}function Mt(_0x5492cb){return _0x5492cb['end'][_0x42b2('0xf8')]==_0x5492cb[_0x42b2('0x8a')][_0x42b2('0xa9')]&&_0x5492cb[_0x42b2('0xeb')][_0x42b2('0x26')];}function $t(_0xf5d895,_0x447901,_0x481ab8,_0x13baa3){const _0x827f0e=_0x1bf32f=>!_0x1bf32f[_0x42b2('0x25')]['is']('$textProxy')&&!_0x13baa3['isObject'](_0x1bf32f[_0x42b2('0x25')]),_0x3e7552=_0xf5d895[_0x42b2('0x8a')][_0x42b2('0x55')](_0x827f0e),_0x1a4532=_0xf5d895[_0x42b2('0xeb')]['getLastMatchingPosition'](_0x827f0e,{'direction':_0x42b2('0x116')});return(!_0xf5d895[_0x42b2('0x8a')][_0x42b2('0x10d')](_0x3e7552)||!_0xf5d895[_0x42b2('0xeb')][_0x42b2('0x10d')](_0x1a4532))&&(_0x3e7552[_0x42b2('0x29')](_0x1a4532)?_0x481ab8[_0x42b2('0x4a')](_0x447901,{'range':_0x481ab8[_0x42b2('0x100')](_0x3e7552,_0x1a4532)}):_0x481ab8['removeMarker'](_0x447901),!0x0);}function Nt(_0x2dc325){return _0x9faea9(_0x2dc325);}function Rt(_0x66c8a4){const _0x508eba=_0x66c8a4[_0x42b2('0x8a')]['nodeAfter'];return _0x508eba&&_0x508eba['is'](_0x42b2('0xd9'));}function jt(_0x1d8ee0,_0x4fdaa1){const _0x2cf786=_0x4fdaa1[_0x42b2('0xbb')][_0x42b2('0xe2')](_0x1d8ee0)||_0x4fdaa1[_0x42b2('0xbb')][_0x42b2('0x144')](_0x1d8ee0);return _0x4fdaa1[_0x42b2('0x100')](_0x4fdaa1[_0x42b2('0x7a')](_0x1d8ee0,_0x42b2('0x5e')),_0x2cf786?_0x4fdaa1[_0x42b2('0x90')](_0x1d8ee0):_0x4fdaa1[_0x42b2('0x7a')](_0x1d8ee0,'end'));}function xt(_0x323798,_0x2c9ca3,_0x57aa8f,_0x49148a,_0x4d57b8){if(!Ut(_0x323798,_0x2c9ca3))return!0x1;if(_0x57aa8f['end'][_0x42b2('0x10d')](_0x49148a[_0x42b2('0x8a')]))return!0x0;if(_0x323798[_0x42b2('0x121')]!=_0x2c9ca3[_0x42b2('0x121')])return!0x1;if(!_0x57aa8f['end'][_0x42b2('0xff')](_0x49148a[_0x42b2('0x8a')]))return!0x1;const _0x5234b2=_0x4d57b8[_0x42b2('0x100')](_0x57aa8f[_0x42b2('0xeb')],_0x49148a['start'])['getWalker']();for(const _0x381a1f of _0x5234b2)if([_0x42b2('0x34'),'elementEnd']['includes'](_0x381a1f[_0x42b2('0x121')])&&_0x4d57b8[_0x42b2('0xbb')][_0x42b2('0x8f')](_0x381a1f[_0x42b2('0x25')]))return!0x1;return!0x0;}function Ut(_0x2af982,_0xa2d350){return!(!_0x2af982[_0x42b2('0x0')]||!_0xa2d350[_0x42b2('0x0')])&&_0x194041(_0x2af982[_0x42b2('0x8b')],_0xa2d350[_0x42b2('0x8b')]);}function Ot(_0x6ae8e,_0x2d1a66){const _0x3469d6=Et(_0x6ae8e[_0x42b2('0x8b')]),_0x39684d=Et(_0x2d1a66);if(!_0x6ae8e[_0x42b2('0x0')])return!0x1;for(const _0x4f77d2 of Object[_0x42b2('0x6b')](_0x39684d))if(!_0x194041(_0x3469d6[_0x4f77d2],_0x39684d[_0x4f77d2]))return!0x1;return!0x0;}function Et(_0xdb4a95){const _0x41b4b8=Object['assign']({},_0xdb4a95);return delete _0x41b4b8[_0x42b2('0x11d')],delete _0x41b4b8[_0x42b2('0x18')],_0x41b4b8;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5417=['add','_handleSuggestionControllerDelayed','button','Accept\x20all\x20suggestions','listenTo','isDirty','_initializeController','_disableComments','isMultiRange','get','define','CommentsUI','_bindAnnotationToEditors','Discard\x20all\x20selected\x20suggestions','Annotations','CommentView','suggestion-','some','arrowView','plugins','delete','activeMarkers','toMany','lowest','acceptSelectedSuggestions','has','_annotationViews','actionView','getByInnerView','acceptButton','change:previous','isEnabled','trackChanges.SuggestionThreadView','suggestionUnloaded','addSourceCollector','_createUIButton','requires','acceptAllSuggestions','comments.maxThreadTotalWeight','TrackChangesEditing','createAnnotationView','config','_handleControllerBuffer','getFirstRange','push','editing','set','trackChanges.disableComments','bind','addComment','size','registerAnnotation','suggestionLoaded','view','getSuggestion','commandName','head','isOn','remove','_suggestionToController','Discard\x20all\x20suggestions','isInContent','discardButton','_updateController','comments.maxCommentsWhenCollapsed','_viewToController','comments','getMarkers','filter','commands','descriptionParts','mainView','previous','unbind','getDescriptions','createCommentThreadController','TrackChangesUI','_refreshActiveMarkers','_destroyController','editor','buttonView','getRanges','getMarkerNames','locale','switchbutton','activeAnnotations','type','source','refreshSelectedViews','discardSelectedSuggestions','destroy','CommentsRepository','suggestionChanged','getAllAdjacentSuggestions','innerView','model','execute','clear','focus','trackChanges','value','EditorAnnotations','_unbindEditors','separator','createAnnotation','discardAllSuggestions','comments.editorConfig','length','SuggestionThreadView'];(function(_0x56ef22,_0x541737){const _0x12f541=function(_0x223480){while(--_0x223480){_0x56ef22['push'](_0x56ef22['shift']());}};_0x12f541(++_0x541737);}(_0x5417,0x1d1));const _0x12f5=function(_0x56ef22,_0x541737){_0x56ef22=_0x56ef22-0x0;let _0x12f541=_0x5417[_0x56ef22];return _0x12f541;};import{Plugin as _0x20bf52}from'ckeditor5/src/core';import{Collection as _0x593432}from'ckeditor5/src/utils';import{Model as _0x237f9f,SplitButtonView as _0x485ca9,createDropdown as _0x105156,addListToDropdown as _0x379a6a}from'ckeditor5/src/ui';import{Users as _0xe6b23c,getDateTimeFormatter as _0x24ca19,getAllMarkersDomElementsSorted as _0x2b11ca}from'ckeditor5-collaboration/src/collaboration-core';import _0x518333 from'./trackchangesediting';import _0x29140d from'./ui/suggestioncontroller';import _0x419c6d from'./ui/view/suggestionthreadview';import{getTranslation as _0x812c14}from'./utils/common-translations';import _0x5a89de from'../theme/icons/track-changes.svg';export default class d extends _0x20bf52{static get[_0x12f5('0x7')](){return[_0x518333,_0xe6b23c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return _0x12f5('0x2f');}constructor(_0xadee3e){super(_0xadee3e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x12f5('0x6a')]=new Map(),this[_0x12f5('0xd')]=new Map();const _0x551071=this['editor']['config'];_0x551071[_0x12f5('0x5a')](_0x12f5('0x3'),_0x419c6d),_0x551071[_0x12f5('0x5a')](_0x12f5('0x12'),!0x1),this[_0x12f5('0x57')]=_0x551071['get'](_0x12f5('0x12'));}['_handleSuggestionControllerDelayed'](_0x2d38ca,_0x3a8f32){0x0===this[_0x12f5('0xd')][_0x12f5('0x15')]&&setTimeout(()=>{for(const [_0x414f1c,_0x3f4148]of this[_0x12f5('0xd')]){const _0xa69a74=this[_0x12f5('0x1e')][_0x12f5('0x69')](_0x414f1c);_0xa69a74||_0x3f4148?_0xa69a74&&_0x3f4148&&this['_destroyController'](_0x414f1c):this[_0x12f5('0x56')](_0x414f1c);}this['editor'][_0x12f5('0x63')][_0x12f5('0x59')]('EditorAnnotations')[_0x12f5('0x3b')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x12f5('0x44')]();},0xa),this['_handleControllerBuffer'][_0x12f5('0x11')](_0x2d38ca,_0x3a8f32);}['init'](){const _0x12efcf=this[_0x12f5('0x32')],_0xbbcd33=_0x12efcf[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0xa')),_0x4085f7=_0x12efcf['plugins'][_0x12f5('0x59')](_0x12f5('0x5e')),_0xf7b040=_0x12efcf[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x48')),_0x40dfb6=_0x12efcf['plugins'][_0x12f5('0x59')](_0x12f5('0x3e'));_0x12efcf['ui']['componentFactory']['add'](_0x12f5('0x46'),_0x501563=>this[_0x12f5('0x6')](_0x501563)),_0xf7b040[_0x12f5('0x5')](()=>{const _0x38f43e=[];for(const [_0x16745d,_0x55bc3b]of Array['from'](this[_0x12f5('0x1e')])){const _0x3dc6c6=_0x16745d['getAllAdjacentSuggestions'](),_0x12670e=[];for(const _0x2eba61 of _0x3dc6c6){if(!_0x2eba61[_0x12f5('0x20')])continue;if(_0x2eba61[_0x12f5('0x58')]){_0x12670e[_0x12f5('0xf')](..._0x2eba61[_0x12f5('0x34')]());continue;}const _0x5443e8=_0x2eba61[_0x12f5('0xe')]();if(_0x12670e[_0x12f5('0x4e')]>0x0){const _0x45a5de=_0x12670e[0x0]['getJoined'](_0x5443e8);if(_0x45a5de){_0x12670e[0x0]=_0x45a5de;continue;}}_0x12670e[_0x12f5('0xf')](_0x5443e8);}_0x38f43e[_0x12f5('0xf')]([_0x55bc3b[_0x12f5('0x18')],_0x12670e]);}return _0x38f43e;}),this[_0x12f5('0x54')](_0xbbcd33,_0x12f5('0x17'),(_0x1ae047,_0x2b6c2d)=>{this[_0x12f5('0x54')](_0x2b6c2d,'change:previous',(_0x1bc5cd,_0x23df62,_0x18759f,_0x2ee8a8)=>{_0x2b6c2d['isInContent']&&(null==_0x18759f?(this[_0x12f5('0x22')](_0x2ee8a8[_0x12f5('0x1b')]),this[_0x12f5('0x51')](_0x2b6c2d,!0x1)):(this['_updateController'](_0x18759f['head']),this['_handleSuggestionControllerDelayed'](_0x2b6c2d,!0x0)));}),null===_0x2b6c2d[_0x12f5('0x2b')]?this[_0x12f5('0x51')](_0x2b6c2d,!0x1):this[_0x12f5('0x22')](_0x2b6c2d[_0x12f5('0x1b')]);}),this['listenTo'](_0xbbcd33,_0x12f5('0x4'),(_0x4270e3,_0x5385e9,_0x50cf40)=>{this['stopListening'](_0x5385e9,_0x12f5('0x1')),this[_0x12f5('0xd')][_0x12f5('0x64')](_0x5385e9);const _0x9982c7=_0x50cf40?_0x50cf40[_0x12f5('0x1b')]:_0x5385e9,_0x53485e=this[_0x12f5('0x1e')]['get'](_0x9982c7);null!==_0x50cf40&&this[_0x12f5('0x22')](_0x9982c7),null===_0x50cf40&&_0x53485e&&this[_0x12f5('0x31')](_0x5385e9);}),this['listenTo'](_0xbbcd33,_0x12f5('0x3f'),(_0x784ab0,_0x3de807)=>{this[_0x12f5('0x22')](_0x3de807);}),this[_0x12f5('0x54')](_0x4085f7,'change:activeAnnotations',()=>{this[_0x12f5('0x30')]();}),this[_0x12f5('0x54')](_0x40dfb6,_0x12f5('0x14'),(_0xcb6d02,{threadId:_0x40764e,isFromAdapter:_0x284e87})=>{if(_0x284e87||!_0xbbcd33['hasSuggestion'](_0x40764e))return;const _0x5e1ecf=_0xbbcd33[_0x12f5('0x19')](_0x40764e);this[_0x12f5('0x1e')][_0x12f5('0x59')](_0x5e1ecf)[_0x12f5('0x18')]['focus']();},{'priority':_0x12f5('0x67')});}['_refreshActiveMarkers'](){const _0x21923c=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')]('Annotations'),_0x4ba024=this[_0x12f5('0x32')]['plugins']['get'](_0x12f5('0xa')),_0x314c40=Array['from'](_0x21923c[_0x12f5('0x38')],_0x207bf5=>_0x207bf5[_0x12f5('0x41')])[_0x12f5('0x27')](_0x2694af=>this[_0x12f5('0x24')][_0x12f5('0x69')](_0x2694af)),_0x2e7dd8=[];for(const _0x5dde0f of _0x314c40){const _0x3d36a7=this[_0x12f5('0x24')][_0x12f5('0x59')](_0x5dde0f)[_0x12f5('0x42')][_0x12f5('0x40')]();_0x2e7dd8[_0x12f5('0xf')](..._0x3d36a7['reduce']((_0x128cbd,_0x20d609)=>[..._0x128cbd,..._0x20d609[_0x12f5('0x35')]()],[]));}_0x4ba024[_0x12f5('0x65')]=_0x2e7dd8;}[_0x12f5('0x6')](_0x1c1a5f){const _0x340a5c=_0x105156(_0x1c1a5f,_0x485ca9),_0x5ca8e1=this[_0x12f5('0x32')][_0x12f5('0x28')][_0x12f5('0x59')](_0x12f5('0x46')),_0x23757c=_0x812c14(_0x1c1a5f,'Track\x20changes');_0x340a5c['buttonView'][_0x12f5('0x11')]({'tooltip':_0x23757c,'label':_0x23757c,'icon':_0x5a89de}),_0x340a5c[_0x12f5('0x33')][_0x12f5('0x13')](_0x12f5('0x1c'))['to'](_0x5ca8e1,_0x12f5('0x47')),_0x340a5c[_0x12f5('0x33')]['on'](_0x12f5('0x43'),()=>{_0x5ca8e1['execute'](),this[_0x12f5('0x32')]['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();});const _0x36e91e=new _0x593432(),_0x5bfb5b=[{'type':_0x12f5('0x37'),'model':{'withText':!0x0,'label':_0x23757c,'commandName':_0x12f5('0x46')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x53')),'commandName':_0x12f5('0x8')}},{'type':_0x12f5('0x52'),'model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x12f5('0x68')}},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x1f')),'commandName':_0x12f5('0x4c')}},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x5d')),'commandName':_0x12f5('0x3c')}}];for(const _0x48c119 of _0x5bfb5b){let _0x36a001={'type':_0x12f5('0x4a')};if(_0x48c119[_0x12f5('0x42')]){const _0xcb0c17=new _0x237f9f(_0x48c119[_0x12f5('0x42')]),_0x4fdda3=this['editor'][_0x12f5('0x28')][_0x12f5('0x59')](_0xcb0c17[_0x12f5('0x1a')]);_0xcb0c17[_0x12f5('0x13')](_0x12f5('0x1c'),'isEnabled')['to'](_0x4fdda3,_0x12f5('0x47'),'isEnabled'),_0x36a001={'type':_0x48c119[_0x12f5('0x39')],'model':_0xcb0c17};}_0x36e91e[_0x12f5('0x50')](_0x36a001);}_0x379a6a(_0x340a5c,_0x36e91e);const _0x141419=_0x5bfb5b[_0x12f5('0x27')](_0x376fcb=>null!=_0x376fcb[_0x12f5('0x42')])['map'](_0x23043c=>this[_0x12f5('0x32')]['commands'][_0x12f5('0x59')](_0x23043c[_0x12f5('0x42')][_0x12f5('0x1a')])),_0x23ee20=_0x340a5c['buttonView'];return _0x23ee20[_0x12f5('0x6b')][_0x12f5('0x2c')](_0x12f5('0x2')),_0x23ee20[_0x12f5('0x62')][_0x12f5('0x2c')]('isEnabled'),_0x23ee20['actionView'][_0x12f5('0x13')]('isEnabled')['to'](_0x5ca8e1,_0x12f5('0x2')),_0x23ee20[_0x12f5('0x62')]['bind']('isEnabled')[_0x12f5('0x66')](_0x141419,_0x12f5('0x2'),(..._0x4a70f7)=>_0x4a70f7[_0x12f5('0x61')](_0xf6b785=>_0xf6b785)),_0x340a5c['on']('execute',_0x28385b=>{this[_0x12f5('0x32')][_0x12f5('0x43')](_0x28385b[_0x12f5('0x3a')]['commandName']),this[_0x12f5('0x32')][_0x12f5('0x10')][_0x12f5('0x18')]['focus']();}),_0x340a5c;}[_0x12f5('0x56')](_0x4fde8a){const _0x39cfd7=this['editor'],_0x42df67=_0x39cfd7[_0x12f5('0xc')],_0x1bf86b=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x5e')),_0x3a025c=_0x39cfd7[_0x12f5('0x63')]['get']('CommentsRepository'),_0x2112c1=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x48')),_0x2c0d75=_0x39cfd7['plugins']['get'](_0xe6b23c)['me'],_0x43508c=_0x42df67[_0x12f5('0x59')]('trackChanges')[_0x12f5('0x4f')],{CommentsListView:_0x47c29f,CommentThreadInputView:_0x4da8f0}=_0x39cfd7[_0x12f5('0x63')]['get'](_0x12f5('0x5b'));let _0x12d622,_0x565228;this[_0x12f5('0x6a')][_0x12f5('0x69')](_0x4fde8a['id'])?(_0x565228=this[_0x12f5('0x6a')][_0x12f5('0x59')](_0x4fde8a['id']),_0x12d622=_0x565228['mainView']):(_0x12d622=new _0x43508c(_0x39cfd7[_0x12f5('0x36')],_0x4fde8a,_0x2c0d75,{'disableComments':this[_0x12f5('0x57')],'editorConfig':_0x42df67[_0x12f5('0x59')](_0x12f5('0x4d')),'maxCommentsWhenCollapsed':_0x42df67[_0x12f5('0x59')](_0x12f5('0x23')),'maxThreadTotalWeight':_0x42df67[_0x12f5('0x59')](_0x12f5('0x9')),'maxCommentCharsWhenCollapsed':_0x42df67[_0x12f5('0x59')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24ca19(_0x42df67['get']('locale')),'CommentView':_0x42df67['get'](_0x12f5('0x25'))[_0x12f5('0x5f')],'CommentsListView':_0x47c29f,'CommentThreadInputView':_0x4da8f0}),_0x12d622[_0x12f5('0x0')]['on'](_0x12f5('0x43'),()=>{_0x39cfd7['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();}),_0x12d622[_0x12f5('0x21')]['on'](_0x12f5('0x43'),()=>{_0x39cfd7['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();}),_0x565228=_0x1bf86b[_0x12f5('0xb')](this[_0x12f5('0x32')]['locale'],_0x12d622),_0x565228[_0x12f5('0x13')](_0x12f5('0x55'))['to'](_0x12d622,_0x12f5('0x55')),_0x565228[_0x12f5('0x13')](_0x12f5('0x4e'))['to'](_0x12d622),_0x565228[_0x12f5('0x13')]('type')['to'](_0x12d622,'type',_0x12279f=>_0x12f5('0x60')+_0x12279f),this['_annotationViews'][_0x12f5('0x11')](_0x4fde8a['id'],_0x565228));const _0x1dbe0e=_0x3a025c[_0x12f5('0x2e')](_0x4fde8a['commentThread'],_0x12d622),_0x56924e=new _0x29140d(_0x39cfd7,_0x4fde8a,_0x12d622,_0x1dbe0e),_0xd6a6a6=_0x4fde8a[_0x12f5('0x40')]()[_0x12f5('0x27')](_0x532097=>_0x532097[_0x12f5('0x20')]);_0x12d622[_0x12f5('0x29')]=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')]('TrackChangesEditing')['_descriptionFactory'][_0x12f5('0x2d')](_0xd6a6a6),this[_0x12f5('0x1e')][_0x12f5('0x11')](_0x4fde8a,_0x56924e),this[_0x12f5('0x24')][_0x12f5('0x11')](_0x12d622,_0x56924e);const _0x37f7e0=_0x1bf86b[_0x12f5('0x4b')]({'view':_0x565228,'target':()=>{const _0x1a3fab=[],_0x1f2a5c=_0x4fde8a[_0x12f5('0x40')]()['filter'](_0x414823=>_0x414823[_0x12f5('0x20')]);for(const _0x243612 of _0x1f2a5c)_0x1a3fab[_0x12f5('0xf')](..._0x243612[_0x12f5('0x26')]());return _0x2b11ca(_0x39cfd7[_0x12f5('0x10')],_0x1a3fab);},'type':()=>_0x12f5('0x60')+_0x56924e[_0x12f5('0x18')][_0x12f5('0x39')]});_0x3a025c[_0x12f5('0x5c')](_0x12d622,_0x37f7e0),_0x1bf86b[_0x12f5('0x50')](_0x37f7e0),_0x2112c1[_0x12f5('0x16')](_0x37f7e0);}[_0x12f5('0x31')](_0x37487c){const _0x4171de=this[_0x12f5('0x32')][_0x12f5('0x63')]['get']('CommentsRepository'),_0x1e0f6f=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')]('Annotations'),_0x878656=this[_0x12f5('0x1e')]['get'](_0x37487c),_0x3e7c1a=_0x878656['view'],_0x481a2c=_0x1e0f6f[_0x12f5('0x6c')](_0x3e7c1a);_0x4171de[_0x12f5('0x49')](_0x3e7c1a),_0x481a2c&&_0x1e0f6f[_0x12f5('0x1d')](_0x481a2c),this['_suggestionToController'][_0x12f5('0x64')](_0x37487c),this['_viewToController'][_0x12f5('0x64')](_0x3e7c1a),_0x878656[_0x12f5('0x3d')]();}['_updateController'](_0x5f342d){if(!_0x5f342d[_0x12f5('0x20')]||!this[_0x12f5('0x1e')][_0x12f5('0x69')](_0x5f342d))return;const _0x448bc8=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0xa')),_0x181655=this[_0x12f5('0x1e')]['get'](_0x5f342d),_0xba38b=_0x5f342d[_0x12f5('0x40')]();_0x181655[_0x12f5('0x18')][_0x12f5('0x29')]=_0x448bc8['_descriptionFactory'][_0x12f5('0x2d')](_0xba38b);}[_0x12f5('0x3d')](){for(const _0x251de5 of this[_0x12f5('0x1e')]['keys']())this[_0x12f5('0x31')](_0x251de5);for(const _0x2ad5a7 of this[_0x12f5('0x6a')]['values']())_0x2ad5a7[_0x12f5('0x2a')]['destroy']();super['destroy']();}}
23
+ const _0x37d6=['type','head','buttonView','separator','_viewToController','button','acceptSelectedSuggestions','isEnabled','_annotationViews','Annotations','isMultiRange','change:activeAnnotations','_updateController','suggestionChanged','some','from','createAnnotation','refreshSelectedViews','define','trackChanges','stopListening','editor','Discard\x20all\x20suggestions','previous','listenTo','_refreshActiveMarkers','trackChanges.SuggestionThreadView','EditorAnnotations','descriptionParts','getByInnerView','arrowView','Accept\x20all\x20suggestions','_destroyController','editing','comments.maxCommentsWhenCollapsed','commentThread','_initializeController','SuggestionThreadView','_handleControllerBuffer','bind','actionView','activeAnnotations','innerView','comments','set','isOn','createAnnotationView','_disableComments','getAllAdjacentSuggestions','push','componentFactory','commandName','value','Track\x20changes','addComment','locale','_handleSuggestionControllerDelayed','hasSuggestion','focus','suggestionLoaded','map','lowest','view','destroy','change:previous','Accept\x20all\x20selected\x20suggestions','suggestion-','discardSelectedSuggestions','acceptAllSuggestions','comments.maxThreadTotalWeight','createCommentThreadController','_bindAnnotationToEditors','suggestionUnloaded','clear','discardAllSuggestions','commands','reduce','filter','remove','getMarkerNames','_unbindEditors','CommentsUI','comments.editorConfig','isDirty','plugins','keys','_descriptionFactory','getJoined','_createUIButton','CommentsRepository','_suggestionToController','mainView','unbind','get','execute','addSourceCollector','CommentView','delete','has','init','length','add','getFirstRange','TrackChangesUI','TrackChangesEditing','getDescriptions','model','getSuggestion','isInContent'];(function(_0xafbc68,_0x37d600){const _0xa96bae=function(_0x29330d){while(--_0x29330d){_0xafbc68['push'](_0xafbc68['shift']());}};_0xa96bae(++_0x37d600);}(_0x37d6,0x92));const _0xa96b=function(_0xafbc68,_0x37d600){_0xafbc68=_0xafbc68-0x0;let _0xa96bae=_0x37d6[_0xafbc68];return _0xa96bae;};import{Plugin as _0x5a5201}from'ckeditor5/src/core';import{Collection as _0x516d6b}from'ckeditor5/src/utils';import{Model as _0x20d09c,SplitButtonView as _0x1dbb08,createDropdown as _0x5a4d7b,addListToDropdown as _0xeec309}from'ckeditor5/src/ui';import{Users as _0x21ee88,getDateTimeFormatter as _0x248e88,getAllMarkersDomElementsSorted as _0x51b260}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f42c8 from'./trackchangesediting';import _0x2a14b3 from'./ui/suggestioncontroller';import _0x196b5a from'./ui/view/suggestionthreadview';import{getTranslation as _0x175062}from'./utils/common-translations';import _0x43a935 from'../theme/icons/track-changes.svg';export default class d extends _0x5a5201{static get['requires'](){return[_0x2f42c8,_0x21ee88,_0xa96b('0x34'),_0xa96b('0x51'),_0xa96b('0x63')];}static get['pluginName'](){return _0xa96b('0x42');}constructor(_0x25e765){super(_0x25e765),this[_0xa96b('0x35')]=new Map(),this[_0xa96b('0x4c')]=new Map(),this[_0xa96b('0x50')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x185cd7=this['editor']['config'];_0x185cd7[_0xa96b('0x5a')](_0xa96b('0x62'),_0x196b5a),_0x185cd7[_0xa96b('0x5a')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x185cd7[_0xa96b('0x38')]('trackChanges.disableComments');}[_0xa96b('0x13')](_0x559aab,_0x490028){0x0===this[_0xa96b('0x1')]['size']&&setTimeout(()=>{for(const [_0x284ff2,_0x5ba82a]of this['_handleControllerBuffer']){const _0x1c65e8=this[_0xa96b('0x35')]['has'](_0x284ff2);_0x1c65e8||_0x5ba82a?_0x1c65e8&&_0x5ba82a&&this[_0xa96b('0x68')](_0x284ff2):this['_initializeController'](_0x284ff2);}this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63'))[_0xa96b('0x59')](),this[_0xa96b('0x61')](),this[_0xa96b('0x1')][_0xa96b('0x24')]();},0xa),this[_0xa96b('0x1')]['set'](_0x559aab,_0x490028);}[_0xa96b('0x3e')](){const _0x5eb1f1=this[_0xa96b('0x5d')],_0x34e6a4=_0x5eb1f1['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x4658c9=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x2fbde3=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x3595aa=_0x5eb1f1['plugins'][_0xa96b('0x38')]('CommentsRepository');_0x5eb1f1['ui'][_0xa96b('0xd')][_0xa96b('0x40')](_0xa96b('0x5b'),_0x13ae6e=>this[_0xa96b('0x33')](_0x13ae6e)),_0x2fbde3[_0xa96b('0x3a')](()=>{const _0xb338fa=[];for(const [_0x120bde,_0x5926ba]of Array[_0xa96b('0x57')](this[_0xa96b('0x35')])){const _0x474d50=_0x120bde[_0xa96b('0xb')](),_0x1e0447=[];for(const _0x3464fc of _0x474d50){if(!_0x3464fc[_0xa96b('0x47')])continue;if(_0x3464fc[_0xa96b('0x52')]){_0x1e0447['push'](..._0x3464fc['getRanges']());continue;}const _0x4fdc05=_0x3464fc[_0xa96b('0x41')]();if(_0x1e0447[_0xa96b('0x3f')]>0x0){const _0x4dd5eb=_0x1e0447[0x0][_0xa96b('0x32')](_0x4fdc05);if(_0x4dd5eb){_0x1e0447[0x0]=_0x4dd5eb;continue;}}_0x1e0447['push'](_0x4fdc05);}_0xb338fa[_0xa96b('0xc')]([_0x5926ba[_0xa96b('0x19')],_0x1e0447]);}return _0xb338fa;}),this['listenTo'](_0x34e6a4,_0xa96b('0x16'),(_0x573d91,_0x4cafc4)=>{this[_0xa96b('0x60')](_0x4cafc4,_0xa96b('0x1b'),(_0x40fe23,_0x2f20e1,_0x1ca593,_0xd2e45a)=>{_0x4cafc4[_0xa96b('0x47')]&&(null==_0x1ca593?(this[_0xa96b('0x54')](_0xd2e45a[_0xa96b('0x49')]),this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1)):(this[_0xa96b('0x54')](_0x1ca593['head']),this[_0xa96b('0x13')](_0x4cafc4,!0x0)));}),null===_0x4cafc4[_0xa96b('0x5f')]?this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1):this['_updateController'](_0x4cafc4[_0xa96b('0x49')]);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x23'),(_0x3de2cb,_0x2bc4c2,_0x7890a6)=>{this[_0xa96b('0x5c')](_0x2bc4c2,_0xa96b('0x1b')),this['_handleControllerBuffer'][_0xa96b('0x3c')](_0x2bc4c2);const _0x36dc26=_0x7890a6?_0x7890a6[_0xa96b('0x49')]:_0x2bc4c2,_0x190576=this['_suggestionToController'][_0xa96b('0x38')](_0x36dc26);null!==_0x7890a6&&this['_updateController'](_0x36dc26),null===_0x7890a6&&_0x190576&&this[_0xa96b('0x68')](_0x2bc4c2);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x55'),(_0x176ed7,_0xe46826)=>{this[_0xa96b('0x54')](_0xe46826);}),this[_0xa96b('0x60')](_0x4658c9,_0xa96b('0x53'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3595aa,_0xa96b('0x11'),(_0x3f1264,{threadId:_0x461c68,isFromAdapter:_0x5bc1b4})=>{if(_0x5bc1b4||!_0x34e6a4[_0xa96b('0x14')](_0x461c68))return;const _0x3dbeaf=_0x34e6a4[_0xa96b('0x46')](_0x461c68);this[_0xa96b('0x35')][_0xa96b('0x38')](_0x3dbeaf)[_0xa96b('0x19')][_0xa96b('0x15')]();},{'priority':_0xa96b('0x18')});}['_refreshActiveMarkers'](){const _0xbff0f9=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x3dacd5=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('TrackChangesEditing'),_0x4ae98f=Array[_0xa96b('0x57')](_0xbff0f9[_0xa96b('0x4')],_0x29d89c=>_0x29d89c[_0xa96b('0x5')])[_0xa96b('0x28')](_0x11f828=>this[_0xa96b('0x4c')]['has'](_0x11f828)),_0x99248=[];for(const _0x1a1ad9 of _0x4ae98f){const _0x257bea=this[_0xa96b('0x4c')][_0xa96b('0x38')](_0x1a1ad9)[_0xa96b('0x45')][_0xa96b('0xb')]();_0x99248['push'](..._0x257bea[_0xa96b('0x27')]((_0x193cfc,_0x12b0d0)=>[..._0x193cfc,..._0x12b0d0[_0xa96b('0x2a')]()],[]));}_0x3dacd5['activeMarkers']=_0x99248;}['_createUIButton'](_0x3de84a){const _0x4919ea=_0x5a4d7b(_0x3de84a,_0x1dbb08),_0x18e909=this[_0xa96b('0x5d')][_0xa96b('0x26')]['get'](_0xa96b('0x5b')),_0x401176=_0x175062(_0x3de84a,_0xa96b('0x10'));_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x7')]({'tooltip':_0x401176,'label':_0x401176,'icon':_0x43a935}),_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x2')](_0xa96b('0x8'))['to'](_0x18e909,_0xa96b('0xf')),_0x4919ea[_0xa96b('0x4a')]['on']('execute',()=>{_0x18e909[_0xa96b('0x39')](),this[_0xa96b('0x5d')][_0xa96b('0x69')][_0xa96b('0x19')]['focus']();});const _0x5be39e=new _0x516d6b(),_0x346245=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x401176,'commandName':'trackChanges'}},{'type':_0xa96b('0x4b')},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x67')),'commandName':_0xa96b('0x1f')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x1c')),'commandName':_0xa96b('0x4e')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x5e')),'commandName':_0xa96b('0x25')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xa96b('0x1e')}}];for(const _0x269c01 of _0x346245){let _0xd3b487={'type':_0xa96b('0x4b')};if(_0x269c01['model']){const _0x33c2d8=new _0x20d09c(_0x269c01[_0xa96b('0x45')]),_0x38ad0e=this['editor']['commands'][_0xa96b('0x38')](_0x33c2d8[_0xa96b('0xe')]);_0x33c2d8['bind']('isOn','isEnabled')['to'](_0x38ad0e,_0xa96b('0xf'),_0xa96b('0x4f')),_0xd3b487={'type':_0x269c01[_0xa96b('0x48')],'model':_0x33c2d8};}_0x5be39e[_0xa96b('0x40')](_0xd3b487);}_0xeec309(_0x4919ea,_0x5be39e);const _0x492e18=_0x346245['filter'](_0x452875=>null!=_0x452875['model'])[_0xa96b('0x17')](_0x2e7b4f=>this[_0xa96b('0x5d')][_0xa96b('0x26')][_0xa96b('0x38')](_0x2e7b4f['model']['commandName'])),_0x867004=_0x4919ea[_0xa96b('0x4a')];return _0x867004[_0xa96b('0x3')][_0xa96b('0x37')](_0xa96b('0x4f')),_0x867004['arrowView'][_0xa96b('0x37')]('isEnabled'),_0x867004[_0xa96b('0x3')][_0xa96b('0x2')](_0xa96b('0x4f'))['to'](_0x18e909,_0xa96b('0x4f')),_0x867004[_0xa96b('0x66')][_0xa96b('0x2')](_0xa96b('0x4f'))['toMany'](_0x492e18,_0xa96b('0x4f'),(..._0x32fe97)=>_0x32fe97[_0xa96b('0x56')](_0x4eda6a=>_0x4eda6a)),_0x4919ea['on'](_0xa96b('0x39'),_0x25b826=>{this[_0xa96b('0x5d')][_0xa96b('0x39')](_0x25b826['source'][_0xa96b('0xe')]),this['editor']['editing'][_0xa96b('0x19')][_0xa96b('0x15')]();}),_0x4919ea;}[_0xa96b('0x6c')](_0x286e1e){const _0x2b5554=this['editor'],_0x8a2ab8=_0x2b5554['config'],_0x410816=_0x2b5554[_0xa96b('0x2f')]['get'](_0xa96b('0x51')),_0x26ba5b=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x5b8ed0=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x1117af=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0x21ee88)['me'],_0xd4fd3=_0x8a2ab8[_0xa96b('0x38')]('trackChanges')[_0xa96b('0x0')],{CommentsListView:_0x30d8ed,CommentThreadInputView:_0x2f079a}=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x2c'));let _0x3373ce,_0x413d96;this[_0xa96b('0x50')][_0xa96b('0x3d')](_0x286e1e['id'])?(_0x413d96=this[_0xa96b('0x50')][_0xa96b('0x38')](_0x286e1e['id']),_0x3373ce=_0x413d96[_0xa96b('0x36')]):(_0x3373ce=new _0xd4fd3(_0x2b5554['locale'],_0x286e1e,_0x1117af,{'disableComments':this[_0xa96b('0xa')],'editorConfig':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x2d')),'maxCommentsWhenCollapsed':_0x8a2ab8['get'](_0xa96b('0x6a')),'maxThreadTotalWeight':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x20')),'maxCommentCharsWhenCollapsed':_0x8a2ab8[_0xa96b('0x38')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x248e88(_0x8a2ab8[_0xa96b('0x38')]('locale')),'CommentView':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x6'))[_0xa96b('0x3b')],'CommentsListView':_0x30d8ed,'CommentThreadInputView':_0x2f079a}),_0x3373ce['acceptButton']['on'](_0xa96b('0x39'),()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x3373ce['discardButton']['on']('execute',()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x413d96=_0x410816[_0xa96b('0x9')](this[_0xa96b('0x5d')][_0xa96b('0x12')],_0x3373ce),_0x413d96[_0xa96b('0x2')]('isDirty')['to'](_0x3373ce,_0xa96b('0x2e')),_0x413d96[_0xa96b('0x2')](_0xa96b('0x3f'))['to'](_0x3373ce),_0x413d96[_0xa96b('0x2')](_0xa96b('0x48'))['to'](_0x3373ce,'type',_0x5e8d00=>'suggestion-'+_0x5e8d00),this[_0xa96b('0x50')][_0xa96b('0x7')](_0x286e1e['id'],_0x413d96));const _0x350af8=_0x26ba5b[_0xa96b('0x21')](_0x286e1e[_0xa96b('0x6b')],_0x3373ce),_0x52f445=new _0x2a14b3(_0x2b5554,_0x286e1e,_0x3373ce,_0x350af8),_0x10512d=_0x286e1e[_0xa96b('0xb')]()[_0xa96b('0x28')](_0xe6bc69=>_0xe6bc69[_0xa96b('0x47')]);_0x3373ce[_0xa96b('0x64')]=_0x2b5554['plugins'][_0xa96b('0x38')](_0xa96b('0x43'))[_0xa96b('0x31')][_0xa96b('0x44')](_0x10512d),this[_0xa96b('0x35')][_0xa96b('0x7')](_0x286e1e,_0x52f445),this[_0xa96b('0x4c')]['set'](_0x3373ce,_0x52f445);const _0x260532=_0x410816[_0xa96b('0x58')]({'view':_0x413d96,'target':()=>{const _0x433210=[],_0x3be3ec=_0x286e1e['getAllAdjacentSuggestions']()[_0xa96b('0x28')](_0x1d7982=>_0x1d7982['isInContent']);for(const _0x252d5c of _0x3be3ec)_0x433210[_0xa96b('0xc')](..._0x252d5c['getMarkers']());return _0x51b260(_0x2b5554['editing'],_0x433210);},'type':()=>_0xa96b('0x1d')+_0x52f445['view'][_0xa96b('0x48')]});_0x26ba5b[_0xa96b('0x22')](_0x3373ce,_0x260532),_0x410816[_0xa96b('0x40')](_0x260532),_0x5b8ed0['registerAnnotation'](_0x260532);}['_destroyController'](_0x9759c){const _0x97335a=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x3703fc=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x51')),_0xd9898=this[_0xa96b('0x35')]['get'](_0x9759c),_0x138fb0=_0xd9898[_0xa96b('0x19')],_0x4be608=_0x3703fc[_0xa96b('0x65')](_0x138fb0);_0x97335a[_0xa96b('0x2b')](_0x138fb0),_0x4be608&&_0x3703fc[_0xa96b('0x29')](_0x4be608),this['_suggestionToController'][_0xa96b('0x3c')](_0x9759c),this['_viewToController'][_0xa96b('0x3c')](_0x138fb0),_0xd9898['destroy']();}[_0xa96b('0x54')](_0x51119f){if(!_0x51119f[_0xa96b('0x47')]||!this[_0xa96b('0x35')][_0xa96b('0x3d')](_0x51119f))return;const _0x18a295=this['editor']['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x22a1bc=this[_0xa96b('0x35')]['get'](_0x51119f),_0x297ef8=_0x51119f[_0xa96b('0xb')]();_0x22a1bc[_0xa96b('0x19')][_0xa96b('0x64')]=_0x18a295[_0xa96b('0x31')][_0xa96b('0x44')](_0x297ef8);}[_0xa96b('0x1a')](){for(const _0x295e62 of this[_0xa96b('0x35')][_0xa96b('0x30')]())this['_destroyController'](_0x295e62);for(const _0x981537 of this[_0xa96b('0x50')]['values']())_0x981537['mainView']['destroy']();super[_0xa96b('0x1a')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17dc=['commentThreadController','_discardCommand','acceptSuggestion','plugins','_removePendingAction','_acceptCommand','canEditAt','_setPendingAction','bind','canDiscard','isDirty','_pendingAction','get','view','canAccept','locale','PendingActions','model','commands','change:isDirty','isEnabled','destroy','listenTo','add','getRanges','unbind','_editor','discardSuggestion'];(function(_0x455b80,_0x17dcf9){const _0x5da577=function(_0x9c9518){while(--_0x9c9518){_0x455b80['push'](_0x455b80['shift']());}};_0x5da577(++_0x17dcf9);}(_0x17dc,0x76));const _0x5da5=function(_0x455b80,_0x17dcf9){_0x455b80=_0x455b80-0x0;let _0x5da577=_0x17dc[_0x455b80];return _0x5da577;};import{ObservableMixin as _0x1ec266}from'ckeditor5/src/utils';import{getTranslation as _0x1f3797}from'../utils/common-translations';export default class Gt extends _0x1ec266(){constructor(_0x40eb0f,_0x3f9c0d,_0x44c9c9,_0x34476e){super(),this[_0x5da5('0xb')]=_0x3f9c0d,this['view']=_0x44c9c9,this[_0x5da5('0x16')]=_0x34476e,this['_editor']=_0x40eb0f,this[_0x5da5('0x1b')]=_0x40eb0f[_0x5da5('0xc')][_0x5da5('0x6')](_0x5da5('0x18')),this[_0x5da5('0x17')]=_0x40eb0f[_0x5da5('0xc')]['get'](_0x5da5('0x15')),this[_0x5da5('0x7')][_0x5da5('0x2')]('isEnabled')['to'](this[_0x5da5('0x1b')],this[_0x5da5('0x17')],(_0x58af45,_0x2d63aa)=>_0x58af45||_0x2d63aa),this[_0x5da5('0x7')][_0x5da5('0x2')](_0x5da5('0x8'))['to'](this[_0x5da5('0x1b')],_0x5da5('0xe'),_0x159e73=>_0x159e73&&this['_editor'][_0x5da5('0xb')][_0x5da5('0x0')](_0x3f9c0d[_0x5da5('0x12')]())),this[_0x5da5('0x7')][_0x5da5('0x2')](_0x5da5('0x3'))['to'](this[_0x5da5('0x17')],_0x5da5('0xe'),_0x5a2b09=>_0x5a2b09&&this['_editor'][_0x5da5('0xb')][_0x5da5('0x0')](_0x3f9c0d['getRanges']())),this['_pendingAction']=null,_0x44c9c9['isDirty']&&this[_0x5da5('0x1')](),this[_0x5da5('0x10')](_0x44c9c9,_0x5da5('0x18'),()=>this[_0x5da5('0x18')]()),this['listenTo'](_0x44c9c9,_0x5da5('0x15'),()=>this[_0x5da5('0x15')]()),this[_0x5da5('0x10')](_0x44c9c9,_0x5da5('0xd'),()=>{_0x44c9c9[_0x5da5('0x4')]?this[_0x5da5('0x1')]():this[_0x5da5('0x1a')]();});}[_0x5da5('0x18')](){this[_0x5da5('0x1b')]['execute'](this[_0x5da5('0xb')]['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}[_0x5da5('0xf')](){this[_0x5da5('0x7')][_0x5da5('0x13')](_0x5da5('0xe')),this[_0x5da5('0x7')][_0x5da5('0x13')]('canAccept'),this[_0x5da5('0x7')][_0x5da5('0x13')](_0x5da5('0x3')),this['stopListening'](),this[_0x5da5('0x16')][_0x5da5('0xf')](),this[_0x5da5('0x5')]&&this[_0x5da5('0x1a')]();}['_setPendingAction'](){const _0x401f6c=_0x1f3797(this[_0x5da5('0x14')][_0x5da5('0x9')],'PENDING_ACTION_SUGGESTION');this[_0x5da5('0x5')]=this[_0x5da5('0x14')]['plugins']['get'](_0x5da5('0xa'))[_0x5da5('0x11')](_0x401f6c);}[_0x5da5('0x1a')](){null!==this[_0x5da5('0x5')]&&this[_0x5da5('0x14')][_0x5da5('0x19')][_0x5da5('0x6')](_0x5da5('0xa'))['remove'](this['_pendingAction']),this[_0x5da5('0x5')]=null;}}
23
+ const _0x4edb=['commentThreadController','listenTo','isEnabled','plugins','getRanges','execute','get','_acceptCommand','commands','model','stopListening','bind','_discardCommand','discardSuggestion','add','change:isDirty','_setPendingAction','canDiscard','acceptSuggestion','view','_removePendingAction','canAccept','_editor','PENDING_ACTION_SUGGESTION','_pendingAction','isDirty','PendingActions','canEditAt','unbind','destroy'];(function(_0x287669,_0x4edbff){const _0xd67789=function(_0x34e55d){while(--_0x34e55d){_0x287669['push'](_0x287669['shift']());}};_0xd67789(++_0x4edbff);}(_0x4edb,0x10e));const _0xd677=function(_0x287669,_0x4edbff){_0x287669=_0x287669-0x0;let _0xd67789=_0x4edb[_0x287669];return _0xd67789;};import{ObservableMixin as _0x15476d}from'ckeditor5/src/utils';import{getTranslation as _0x4cfe5d}from'../utils/common-translations';export default class Gt extends _0x15476d(){constructor(_0x137dfa,_0x2244af,_0x31fa3a,_0x376740){super(),this[_0xd677('0x9')]=_0x2244af,this[_0xd677('0x13')]=_0x31fa3a,this[_0xd677('0x0')]=_0x376740,this[_0xd677('0x16')]=_0x137dfa,this[_0xd677('0x7')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0x12')),this[_0xd677('0xc')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0xd')),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x2'))['to'](this['_acceptCommand'],this[_0xd677('0xc')],(_0x28a790,_0x1fe98f)=>_0x28a790||_0x1fe98f),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x15'))['to'](this[_0xd677('0x7')],_0xd677('0x2'),_0x285951=>_0x285951&&this[_0xd677('0x16')][_0xd677('0x9')]['canEditAt'](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x13')][_0xd677('0xb')]('canDiscard')['to'](this[_0xd677('0xc')],_0xd677('0x2'),_0x3d173b=>_0x3d173b&&this[_0xd677('0x16')][_0xd677('0x9')][_0xd677('0x1b')](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x18')]=null,_0x31fa3a['isDirty']&&this[_0xd677('0x10')](),this['listenTo'](_0x31fa3a,_0xd677('0x12'),()=>this[_0xd677('0x12')]()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xd'),()=>this['discardSuggestion']()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xf'),()=>{_0x31fa3a[_0xd677('0x19')]?this['_setPendingAction']():this[_0xd677('0x14')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0xd')](){this[_0xd677('0xc')][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0x1d')](){this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x2')),this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x15')),this['view'][_0xd677('0x1c')](_0xd677('0x11')),this[_0xd677('0xa')](),this[_0xd677('0x0')]['destroy'](),this['_pendingAction']&&this[_0xd677('0x14')]();}[_0xd677('0x10')](){const _0x23846f=_0x4cfe5d(this[_0xd677('0x16')]['locale'],_0xd677('0x17'));this[_0xd677('0x18')]=this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))[_0xd677('0xe')](_0x23846f);}[_0xd677('0x14')](){null!==this[_0xd677('0x18')]&&this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))['remove'](this[_0xd677('0x18')]),this[_0xd677('0x18')]=null;}}