@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231019.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3481=['isMultiRange','value','author','insertion','after','highest','getSuggestions','return','_updateSuggestionData','range','push','chain','_trackFormatChanges','addCommentThread','discard','_checkSuggestionCorrectness','_getSuggestionData','position','@external','Users','PendingActions','moveTargetPosition','options','_setSuggestionRange','plugins','detach','catch','every','attributes','removed','differ','markInsertion','markerNameToElements','hasSuggestion','editor','toViewElement','set','getIntersection','remove','default','stop','_suggestions','addSuggestionData','keys','isInsideObject','getRange','isAfter','suggestion','addRange','fromCharCode','formatInline:chain','add','_customCallbacks','then','item','createRange','addSuggestion','toJSON','markerName','applyOperation','some','splitPosition','delete','suggestionChanged','_createSuggestion','define','track-changes-adapter-already-set','_suggestionState','next','containsPosition','upcast','change:activeMarkers','markMultiRangeDeletion','change','formatGroupId','insertion:discard','forward','rootName','get','locale','isSelectable','createdAt','skipNestingCheck','_setSuggestionData','_mergeNestedSuggestions','discardSuggestion','getUser','adapter','deletion:chain','insertion:','update:suggestion','removeMarker:suggestion:formatBlock','hasComments','suggestion-type','high','track-changes-command-not-found','enableCommand','error-saving-suggestion-data-suggestion-discarded','getRanges','$marker','_cutOutSuggestionMarker','_model','_getExternalAuthor','registerPostFixer','_descriptionFactory','markMultiRangeInsertion','config','document','_enabledCommands','for','lowest','showSuggestionHighlights','_registerDefaultCallbacks','getLastMatchingPosition','discardSelectedSuggestions','rejected','isLimit','enqueueChange','markerToData','isLocal','includes','isIntersectingWithRange','consume','fire','createPositionAfter','_breakSuggestionMarker','data','getMultiRangeId','reconvertMarker','elementStart','isTouching','formatInline:','_saved','init','tablePasteChainId','resolve','markerToHighlight','_refreshSuggestionsChain','from','getAllAdjacentSuggestions','commands','howMany','enableReadOnlyMode','markMultiRangeBlockFormat','getDifference','setSelection','split','discardAllSuggestions','insertion:accept','nodeBefore','has','isOwn','collaboration.channelId','getSuggestionCallback','ck-suggestion-marker','getAncestors','setTo','getItems','parent','getCustomProperty','containerElement','addMarker:suggestion','unbindElementFromMarkerName','isInContent','addHighlight','ready','isExternal','createPositionAt','getChanges','isArray','elementEnd','_handleNewSuggestionMarker','multipleBlocks','formatInline:accept','createSelection','creator','addMarker:suggestion:formatBlock','ck-suggestion-marker-','filter','hasCommentThread','consumable','suggestion:','external:','trackChanges','markers','acceptAllSuggestions','_findSuggestions','isBlock','addUser','registerCustomCallback','markInlineFormat','acceptSuggestion','isCollapsed','deletion','createElement','name','conversion','commandName','_isDataLoaded','_addThreadToSuggestion','containsRangeInObject','formatBlock:accept','accept','isEqual','fromRange','removeMarker','originalSuggestionId','widget','schema','pluginName','end','deletion:discard','join','removeAttribute','authoredAt','assign','updateSuggestion','markBlockFormat','_commentsRepository','splice','_joinSuggestions','deleteContent','previous','containsRange','fetchCommentThread','requires','formatBlock:chain','getFirstMarker','element','always','execute','isRemovable','notReady','oldRange','formatBlock:join','getSuggestion','values','newRange','PENDING_ACTION_SUGGESTION','formatInline','updateMarker','suggestionLoaded','move','CommentsRepository','editingDowncast','formatBlock','getShiftedBy','backward','insertContent','$graveyard','activeMarkers','_adapter','getNearestSelectionRange','isUndo','trackChanges.mergeNestedSuggestions','_addSuggestionMarker','isAtEnd','createPositionBefore','nodeAfter','isObject','addMarkerName','trackChanges.trackFormatChanges','root','data-suggestion','stopListening','_editor','subType','sort','multi','markerReady','getAttribute','removeClass','_suggestionFactory','type','_joinWithAdjacentSuggestions','insert','formatBlock:discard','addComment','buildSuggestion','track-changes-user-not-found','forceDefaultExecution','deletion:','createRangeIn','trackChangesCommand','suggestionUnloaded','writer','isNextTo','open','addMarker','deletion:accept','model','map','acceptSelectedSuggestions','getFirstRange','formatInline:join','head','TrackChangesEditing','unbind','commentThread','start','isAtStart','mapper','dataReady','batch','_defaultCallbacks','containsItem','removeMarkers','_splitMarkerName','listenTo','refresh','length','_removeSuggestion','_isForcedDefaultExecutionBlock','dataDowncast','selection','clone','formatBlock:','_rangeIsInLocalUserInsertion','addClass','isBefore','ck-suggestion-marker--active','group','size','ck-suggestion-marker-formatBlock','low'];(function(_0x574b33,_0x34813b){const _0x3d5eec=function(_0x4c38e5){while(--_0x4c38e5){_0x574b33['push'](_0x574b33['shift']());}};_0x3d5eec(++_0x34813b);}(_0x3481,0x1d3));const _0x3d5e=function(_0x574b33,_0x34813b){_0x574b33=_0x574b33-0x0;let _0x3d5eec=_0x3481[_0x574b33];return _0x3d5eec;};import{Plugin as _0x2c6fc4,PendingActions as _0x42a800}from'ckeditor5/src/core';import{LiveRange as _0x43231c}from'ckeditor5/src/engine';import{CKEditorError as _0x407a23,uid as _0x59e8c4,priorities as _0x372370,logWarning as _0x54b295}from'ckeditor5/src/utils';import{toWidget as _0x2956e3}from'ckeditor5/src/widget';import{Users as _0x37b1a6,hashObject as _0x544d40}from'ckeditor5-collaboration/src/collaboration-core';import _0x307cab from'./commands/trackchangescommand';import _0x36f33e from'./commands/acceptsuggestioncommand';import _0x2749cc from'./commands/discardsuggestioncommand';import _0x8ecd0f from'./commands/executeonallsuggestionscommand';import _0x4ab4a7 from'./commands/executeonselectedsuggestionscommand';import _0x439cc9 from'./suggestion';import _0x4652fd from'./suggestiondescriptionfactory';import _0x448949 from'./integrations/aiassistant';import _0x240b75 from'./integrations/alignment';import _0x35540b from'./integrations/basicstyles';import _0x1d962c from'./integrations/blockquote';import _0x37aeb0 from'./integrations/ckbox';import _0x96a1b from'./integrations/codeblock';import _0x5e3042 from'./integrations/comments';import _0x3cfa1c from'./integrations/deletecommand';import _0x50252f from'./integrations/documentlist';import _0x26800c from'./integrations/entercommand';import _0x1c91ac from'./integrations/findandreplace';import _0x2b2e6e from'./integrations/font';import _0x566329 from'./integrations/formatpainter';import _0x558ec7 from'./integrations/heading';import _0x30137f from'./integrations/highlight';import _0x369a52 from'./integrations/horizontalline';import _0x1a9cad from'./integrations/htmlembed';import _0x37ef12 from'./integrations/image';import _0x4bc03d from'./integrations/imagereplace';import _0x16a1b8 from'./integrations/importword';import _0x30230d from'./integrations/indent';import _0x5ada57 from'./integrations/inputcommand';import _0x152f68 from'./integrations/link';import _0x5c8d31 from'./integrations/list';import _0x1a9277 from'./integrations/listproperties';import _0x151926 from'./integrations/mediaembed';import _0x2ba83e from'./integrations/mention';import _0x1f2fc8 from'./integrations/pagebreak';import _0x16c7cd from'./integrations/paragraph';import _0x3471d8 from'./integrations/removeformat';import _0x5b5cfe from'./integrations/restrictededitingmode';import _0x58979e from'./integrations/shiftentercommand';import _0x31743e from'./integrations/standardeditingmode';import _0x4ab311 from'./integrations/style';import _0x5b8b13 from'./integrations/table';import _0x516094 from'./integrations/tablemergesplit';import _0x293f87 from'./integrations/tableheadings';import _0x5d5715 from'./integrations/tableclipboard';import _0x5d0df0 from'./integrations/tablecolumnresize';import _0x518d72 from'./integrations/template';import _0x5ecc3e from'./integrations/tableofcontents';import _0x412b10 from'./integrations/title';import _0x149884 from'./integrations/undo';import{getTranslation as _0x47b482}from'./utils/common-translations';import _0x34a9fa from'./integrations/tablecaption';import _0xdf43fc from'./integrations/documentlistproperties';import _0xcd9733 from'./integrations/tableproperties';import{isEqual as _0x170aad}from'lodash-es';export default class p extends _0x2c6fc4{static get[_0x3d5e('0x53')](){return[_0x3d5e('0x65'),_0x37b1a6,_0x42a800,_0x448949,_0x240b75,_0x35540b,_0x1d962c,_0x37aeb0,_0x96a1b,_0x5e3042,_0x3cfa1c,_0x50252f,_0xdf43fc,_0x26800c,_0x1c91ac,_0x2b2e6e,_0x566329,_0x558ec7,_0x30137f,_0x369a52,_0x1a9cad,_0x37ef12,_0x4bc03d,_0x16a1b8,_0x30230d,_0x5ada57,_0x152f68,_0x5c8d31,_0x1a9277,_0x151926,_0x2ba83e,_0x1f2fc8,_0x16c7cd,_0x3471d8,_0x5b5cfe,_0x58979e,_0x31743e,_0x4ab311,_0x5b8b13,_0x516094,_0x293f87,_0x34a9fa,_0x5d5715,_0x5d0df0,_0x5ecc3e,_0xcd9733,_0x518d72,_0x412b10,_0x149884];}static get[_0x3d5e('0x43')](){return _0x3d5e('0x9a');}constructor(_0x8219d1){function _0x4efb92(_0x4fcceb){return _0x4fcceb[_0x3d5e('0x95')](_0x167002=>String[_0x3d5e('0xe8')](_0x167002))['join']('');}super(_0x8219d1),this['set'](_0x3d5e('0x6c'),[]),this['on'](_0x3d5e('0xfe'),(_0x52d4a5,_0x323491,_0x2fc581,_0x48832c)=>{this[_0x3d5e('0x11c')][_0x3d5e('0x100')](()=>{for(const _0xdf8ee3 of[..._0x48832c,..._0x2fc581])this[_0x3d5e('0x11c')][_0x3d5e('0x2a')][_0x3d5e('0x8')](_0xdf8ee3)&&_0x8219d1['editing'][_0x3d5e('0x137')](_0xdf8ee3);});}),this[_0x3d5e('0x11f')]=new _0x4652fd(this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x42')],this[_0x3d5e('0xd9')][_0x3d5e('0x106')]),this[_0x3d5e('0x6d')]=null,this[_0x3d5e('0x82')]=new Bt(this['editor']),this[_0x3d5e('0xe0')]=new Map(),this[_0x3d5e('0x4c')]=_0x8219d1[_0x3d5e('0xcf')][_0x3d5e('0x105')]('CommentsRepository'),this[_0x3d5e('0x123')]=new Set(),this['_model']=this['editor'][_0x3d5e('0x94')],this[_0x3d5e('0xfa')]=new WeakMap(),this[_0x3d5e('0xaa')]=!0x1,_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0xf8')](_0x3d5e('0x77'),_0x3d5e('0xde')),this[_0x3d5e('0xc3')]=_0x8219d1[_0x3d5e('0x121')]['get'](_0x3d5e('0x77')),_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0xf8')](_0x3d5e('0x70'),!0x0),this['_mergeNestedSuggestions']=_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0x105')](_0x3d5e('0x70')),this[_0x3d5e('0x8d')]=new _0x307cab(_0x8219d1,this[_0x3d5e('0x123')]),this[_0x4efb92([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4efb92([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x36]);}[_0x3d5e('0x13c')](){const _0x16bd4f=this[_0x3d5e('0xd9')];_0x16bd4f['conversion'][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0x13f')]({'model':_0x3d5e('0xe6'),'view':_0x1f4fb3=>{const {id:_0x4cf9bd,type:_0x1f3b6a}=this[_0x3d5e('0xa5')](_0x1f4fb3[_0x3d5e('0xf1')]),_0x22dd12=[_0x3d5e('0xc'),_0x3d5e('0x23')+_0x1f3b6a];let _0x4d27d8=0xbb8;return this['activeMarkers'][_0x3d5e('0x12f')](_0x1f4fb3[_0x3d5e('0xf1')])&&(_0x22dd12[_0x3d5e('0xc1')]('ck-suggestion-marker--active'),_0x4d27d8=0xbc2),_0x3d5e('0x33')==_0x1f3b6a&&(_0x4d27d8+=0x5),{'classes':_0x22dd12,'attributes':{'data-suggestion':_0x4cf9bd},'priority':_0x4d27d8};}}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))['add'](_0x3e64b7=>{_0x3e64b7['on'](_0x3d5e('0x13'),(_0x118b6f,_0x381a9f,_0x33efd7)=>{if(!_0x33efd7[_0x3d5e('0xcd')][_0x3d5e('0x126')])return;const _0x1bffd6=_0x381a9f['item'];if(!_0x1bffd6)return;const _0x34b872=_0x33efd7[_0x3d5e('0x9f')]['toViewElement'](_0x1bffd6);_0x16bd4f['model'][_0x3d5e('0x42')][_0x3d5e('0x75')](_0x1bffd6)&&_0x34b872&&!_0x34b872[_0x3d5e('0x11')](_0x3d5e('0x41'))&&_0x34b872['is'](_0x3d5e('0x12'))&&_0x2956e3(_0x34b872,_0x33efd7['writer']);},{'priority':'high'});}),_0x16bd4f['conversion'][_0x3d5e('0x124')](_0x3d5e('0xab'))['markerToHighlight']({'model':_0x3d5e('0xe6'),'view':(_0x350f37,_0x1a1863)=>{if(!_0x1a1863[_0x3d5e('0xcd')][_0x3d5e('0x126')])return null;const {type:_0x1ec080}=this[_0x3d5e('0xa5')](_0x350f37[_0x3d5e('0xf1')]);return{'classes':[_0x3d5e('0xc'),_0x3d5e('0x23')+_0x1ec080],'priority':0xbb8};}});const _0x426c47=({showActiveMarkers:_0x4d99e1=!0x0}={})=>(_0x31f8ae,_0x3274d7,_0x5d478c)=>{if(!_0x3274d7[_0x3d5e('0xed')])return;if(_0x3274d7[_0x3d5e('0xed')]['is'](_0x3d5e('0xac')))return void _0x5d478c['consumable'][_0x3d5e('0x131')](_0x3274d7[_0x3d5e('0xed')],_0x31f8ae['name']);const _0x371dce=_0x5d478c[_0x3d5e('0x9f')][_0x3d5e('0xda')](_0x3274d7['item']);if(!(_0x3274d7[_0x3d5e('0xed')]['is']('element')&&_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x42')][_0x3d5e('0x2d')](_0x3274d7['item'])&&!_0x371dce['getCustomProperty']('addHighlight')))return;const {id:_0x693da}=this['_splitMarkerName'](_0x3274d7[_0x3d5e('0xf1')]);_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0xb0')]([_0x3d5e('0xc'),_0x3d5e('0xb5')],_0x371dce),_0x5d478c[_0x3d5e('0x8f')]['setAttribute'](_0x3d5e('0x79'),_0x693da,_0x371dce),_0x5d478c[_0x3d5e('0x9f')]['bindElementToMarker'](_0x371dce,_0x3274d7[_0x3d5e('0xf1')]),_0x4d99e1&&(this[_0x3d5e('0x6c')]['includes'](_0x3274d7['markerName'])?_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0xb0')](_0x3d5e('0xb2'),_0x371dce):_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0x81')](_0x3d5e('0xb2'),_0x371dce));for(const _0x139a0a of _0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x8c')](_0x3274d7['item'])[_0x3d5e('0xf')]())_0x5d478c[_0x3d5e('0x26')][_0x3d5e('0x131')](_0x139a0a,_0x31f8ae[_0x3d5e('0x35')]);_0x5d478c['consumable'][_0x3d5e('0x131')](_0x3274d7[_0x3d5e('0xed')],_0x31f8ae[_0x3d5e('0x35')]);};_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))[_0x3d5e('0xea')](_0x13d960=>{_0x13d960['on'](_0x3d5e('0x22'),(_0x32ed0e,_0x199aed,_0x45fd30)=>{_0x45fd30['options']['showSuggestionHighlights']&&_0x426c47({'showActiveMarkers':!0x1})(_0x32ed0e,_0x199aed,_0x45fd30);},{'priority':_0x3d5e('0xbc')});}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))[_0x3d5e('0x12d')]({'model':'suggestion','view':(_0x3cf6fd,_0x21c43b)=>_0x21c43b[_0x3d5e('0xcd')][_0x3d5e('0x126')]?null:{'group':_0x3d5e('0xe6'),'name':_0x3cf6fd['substr'](0xb)}}),_0x16bd4f['conversion']['for'](_0x3d5e('0xfd'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1bdee1,{writer:_0x426e8a})=>{let _0xd6a4c6=_0x3d5e('0x27')+_0x1bdee1[_0x3d5e('0x80')](_0x3d5e('0x114'))+':'+_0x1bdee1[_0x3d5e('0x80')]('id');return _0x1bdee1[_0x3d5e('0x80')]('marker-count')&&(_0xd6a4c6+=':'+_0x1bdee1['getAttribute']('marker-count')),_0x426e8a[_0x3d5e('0x34')](_0x3d5e('0x11a'),{'data-name':_0xd6a4c6});}}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xfd'))['dataToMarker']({'view':_0x3d5e('0xe6')}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0xea')](_0x38887b=>{_0x38887b['on'](_0x3d5e('0x22'),_0x426c47(),{'priority':_0x3d5e('0x115')});}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0xea')](_0x4d1506=>{_0x4d1506['on'](_0x3d5e('0x112'),(_0x24be6a,_0x3c8425,_0x4db599)=>{const _0x2f31eb=_0x4db599[_0x3d5e('0x9f')][_0x3d5e('0xd7')](_0x3c8425[_0x3d5e('0xf1')]);if(_0x2f31eb)for(const _0x3f5193 of _0x2f31eb)_0x3f5193[_0x3d5e('0x11')](_0x3d5e('0x16'))||(_0x4db599['writer'][_0x3d5e('0x81')]([_0x3d5e('0xc'),_0x3d5e('0xb5'),_0x3d5e('0xb2')],_0x3f5193),_0x4db599[_0x3d5e('0x8f')][_0x3d5e('0x47')](_0x3d5e('0x79'),_0x3f5193),_0x4db599[_0x3d5e('0x9f')][_0x3d5e('0x14')](_0x3f5193,_0x3c8425[_0x3d5e('0xf1')]));},{'priority':_0x3d5e('0x115')});}),_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')]['registerPostFixer'](_0x4ca596=>{let _0x3ba77b=!0x1;const _0x5d1c16=Array[_0x3d5e('0x141')](_0x16bd4f[_0x3d5e('0x94')]['document']['differ']['getChangedMarkers']()),_0x171db4=new Set();for(const {name:_0x9d9220,data:_0x244d64}of _0x5d1c16){const {group:_0x5420c1,type:_0x42c954,id:_0x2d60cf}=this[_0x3d5e('0xa5')](_0x9d9220);if(_0x3d5e('0xe6')!==_0x5420c1)continue;const _0x26647b=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x2d60cf);if(null!=_0x244d64[_0x3d5e('0x5f')]){_0x3d5e('0x61')==_0x42c954&&(_0x3ba77b=_0x3ba77b||$t(_0x244d64[_0x3d5e('0x5f')],_0x9d9220,_0x4ca596,_0x16bd4f['model'][_0x3d5e('0x42')]));if(_0x244d64['newRange'][_0x3d5e('0x32')]||'$graveyard'==_0x244d64[_0x3d5e('0x5f')]['root'][_0x3d5e('0x104')]||'formatBlock'==_0x42c954&&!Rt(_0x244d64['newRange'])||_0x3d5e('0x33')==_0x42c954&&!(!Mt(_0x273da1=_0x244d64[_0x3d5e('0x5f')])&&!function(_0x15fc4d){return _0x15fc4d[_0x3d5e('0x9d')]['parent']==_0x15fc4d[_0x3d5e('0x44')][_0x3d5e('0x7')]&&_0x15fc4d[_0x3d5e('0x9d')][_0x3d5e('0x72')];}(_0x273da1)))_0x4ca596[_0x3d5e('0x3f')](_0x9d9220),_0x3ba77b=!0x0;else{if(!_0x26647b||!_0x26647b[_0x3d5e('0x15')])continue;_0x171db4[_0x3d5e('0xea')](_0x26647b);}}}var _0x273da1;return _0x171db4[_0x3d5e('0xb4')]>0x0&&(_0x3ba77b=!!this[_0x3d5e('0x84')](_0x171db4)||_0x3ba77b),_0x3ba77b;}),_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0x11e')](_0xf993f1=>{let _0x219dc4=!0x1;for(const _0x138d91 of _0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0xd5')][_0x3d5e('0x1a')]()){if(_0x3d5e('0x85')!=_0x138d91[_0x3d5e('0x83')])continue;const _0x484311=_0x138d91[_0x3d5e('0xc8')][_0x3d5e('0x68')](_0x138d91['length']);if(_0x484311[_0x3d5e('0x72')])for(const _0x5e38a0 of this['_suggestions'][_0x3d5e('0x5e')]()){if(_0x5e38a0[_0x3d5e('0xb7')]||!_0x5e38a0[_0x3d5e('0x15')])continue;if(_0x3d5e('0x67')!=_0x5e38a0[_0x3d5e('0x83')])continue;const _0x3f8fd5=_0x5e38a0['getFirstRange']();if(_0x3f8fd5[_0x3d5e('0x9d')]['parent']!=_0x3f8fd5[_0x3d5e('0x44')][_0x3d5e('0x10')]&&_0x3f8fd5['end']['isEqual'](_0x138d91[_0x3d5e('0xc8')])){const _0x261d15=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0xee')](_0x3f8fd5[_0x3d5e('0x9d')],_0x484311);_0xf993f1[_0x3d5e('0x62')](_0x5e38a0[_0x3d5e('0x55')](),{'range':_0x261d15}),_0x219dc4=!0x0;}}}return _0x219dc4;}),_0x16bd4f[_0x3d5e('0x94')]['markers']['on'](_0x3d5e('0x111'),(_0x3f8ffa,_0x363d82,_0x242920)=>{if(null==_0x242920){const {id:_0x3b7c10}=this['_splitMarkerName'](_0x363d82[_0x3d5e('0x35')]),_0x289924=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x3b7c10);_0x289924&&_0x289924['addMarkerName'](_0x363d82[_0x3d5e('0x35')]);}}),_0x16bd4f[_0x3d5e('0x94')]['document']['on']('change:data',()=>{const _0x52c891=Array[_0x3d5e('0x141')](_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0xd5')]['getChangedMarkers']())['filter'](_0x167d3c=>'suggestion'===this['_splitMarkerName'](_0x167d3c[_0x3d5e('0x35')])[_0x3d5e('0xb3')]);if(0x0===_0x52c891[_0x3d5e('0xa8')])return;_0x52c891[_0x3d5e('0x7d')]((_0x9413da,_0x3f9721)=>{const _0x437601=_0x9413da['data'][_0x3d5e('0x5b')],_0x4f45e9=_0x3f9721['data'][_0x3d5e('0x5b')];return null===_0x437601&&null===_0x4f45e9?0x0:null===_0x437601&&null!==_0x4f45e9?-0x1:null!==_0x437601&&null===_0x4f45e9?0x1:_0x437601[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x4f45e9[_0x3d5e('0x9d')])?-0x1:0x1;});const _0x39731c=new Set(),_0x535606=new Set();for(const {name:_0x307c1c,data:_0x3c2967}of _0x52c891){const {id:_0x8dedf2}=this['_splitMarkerName'](_0x307c1c);if(null===_0x3c2967[_0x3d5e('0x5b')]){const _0x3a8d36=this['_handleNewSuggestionMarker'](_0x307c1c);_0x535606[_0x3d5e('0xea')](_0x3a8d36);}else{const _0x2aced0=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x8dedf2);null!==_0x3c2967[_0x3d5e('0x5f')]||_0x2aced0[_0x3d5e('0x15')]?(_0x39731c['add'](_0x2aced0[_0x3d5e('0x99')]),_0x535606[_0x3d5e('0xea')](_0x2aced0)):this[_0x3d5e('0xa9')](_0x2aced0);}}_0x535606[_0x3d5e('0xb4')]>0x0&&this[_0x3d5e('0x140')](_0x535606);for(const _0x1a211b of _0x39731c)this['fire'](_0x3d5e('0xf6'),_0x1a211b);}),_0x16bd4f[_0x3d5e('0x94')]['on'](_0x3d5e('0xf2'),(_0x3ea956,_0x33431a)=>{const _0x42689c=_0x33431a[0x0];if(!this[_0x3d5e('0xe0')][_0x3d5e('0xb4')])return;if(!_0x42689c['isDocumentOperation'])return;if(_0x42689c['batch'][_0x3d5e('0x6f')]||!_0x42689c[_0x3d5e('0xa1')][_0x3d5e('0x12e')])return;let _0x537b10,_0x3b4b07;switch(_0x42689c[_0x3d5e('0x83')]){case _0x3d5e('0x85'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xc8')]),_0x3b4b07=_0x537b10[_0x3d5e('0x68')](_0x42689c[_0x3d5e('0x144')]);break;case _0x3d5e('0x4'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xf4')]),_0x3b4b07=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xcc')]);break;case _0x3d5e('0x64'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c['targetPosition']),_0x3b4b07=_0x537b10['getShiftedBy'](_0x42689c[_0x3d5e('0x144')]);break;default:return;}const _0x4d20bd=_0x16bd4f['model'][_0x3d5e('0xee')](_0x537b10,_0x3b4b07);_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const {suggestion:_0x34604b,meta:_0x269d77}of this[_0x3d5e('0x2c')](_0x4d20bd)){if(_0x34604b[_0x3d5e('0xb7')])continue;if(_0x3d5e('0x61')==_0x34604b['type'])continue;const _0x4acac1=_0x34604b[_0x3d5e('0x135')]&&_0x34604b['data'][_0x3d5e('0x1e')];(_0x3d5e('0x67')!=_0x34604b[_0x3d5e('0x83')]||_0x3d5e('0x4')==_0x42689c[_0x3d5e('0x83')]&&!_0x4acac1)&&(_0x269d77[_0x3d5e('0x3a')]||_0x3d5e('0xba')==_0x34604b[_0x3d5e('0x83')]&&_0x269d77[_0x3d5e('0x9')]||_0x34604b[_0x3d5e('0x97')]()[_0x3d5e('0x51')](_0x4d20bd)&&this[_0x3d5e('0x134')](_0x34604b,_0x537b10,_0x3b4b07));}});},{'priority':_0x3d5e('0x125')}),_0x16bd4f['model']['on'](_0x3d5e('0x4f'),(_0x54a040,_0x4f1701)=>{const _0x21ec5a=_0x4f1701[0x0],_0x2ef749=_0x4f1701[0x1];if(_0x2ef749&&_0x2ef749[_0x3d5e('0x8a')])return;if(this[_0x3d5e('0xaa')])return;if(!this['trackChangesCommand'][_0x3d5e('0xb8')])return;if(_0x21ec5a[_0x3d5e('0x32')])return;const _0x1371f2=_0x16bd4f['model'][_0x3d5e('0x42')],{start:_0x1abd76,end:_0x2d9b0d}=_0x21ec5a[_0x3d5e('0x97')](),_0x2e0114=_0x1abd76[_0x3d5e('0x74')]&&_0x1371f2[_0x3d5e('0x12b')](_0x1abd76[_0x3d5e('0x74')])?null:_0x1371f2[_0x3d5e('0x6e')](_0x1abd76,_0x3d5e('0x103')),_0xc39a8e=_0x2d9b0d[_0x3d5e('0x7')]&&_0x1371f2[_0x3d5e('0x12b')](_0x2d9b0d[_0x3d5e('0x7')])?null:_0x1371f2[_0x3d5e('0x6e')](_0x2d9b0d,_0x3d5e('0x69')),_0x295bfe=_0x16bd4f['model'][_0x3d5e('0xee')](_0x2e0114?_0x2e0114[_0x3d5e('0x9d')]:_0x1abd76,_0xc39a8e?_0xc39a8e[_0x3d5e('0x44')]:_0x2d9b0d);_0x16bd4f[_0x3d5e('0x94')]['change'](_0x1957ea=>{this['markDeletion'](_0x295bfe);const _0x5bce8f=_0x16bd4f[_0x3d5e('0x94')]['schema'][_0x3d5e('0x6e')](_0x295bfe[_0x3d5e('0x9d')]);_0x21ec5a['is']('documentSelection')?_0x1957ea[_0x3d5e('0x3')](_0x5bce8f):_0x21ec5a[_0x3d5e('0xe')](_0x5bce8f);}),_0x54a040[_0x3d5e('0xdf')]();},{'priority':_0x372370['normal']+0xa}),_0x16bd4f[_0x3d5e('0x94')]['on'](_0x3d5e('0x6a'),(_0x4a4838,_0x188021)=>{const _0x233f49=_0x188021[_0x188021['length']-0x1];_0x233f49&&_0x233f49[_0x3d5e('0x8a')]||this[_0x3d5e('0xaa')]||this[_0x3d5e('0x8d')]['value']&&(_0x16bd4f[_0x3d5e('0x94')]['change'](()=>{let _0x321b53=_0x16bd4f['model']['insertContent'](_0x188021[0x0],_0x188021[0x1],_0x188021[0x2],{'forceDefaultExecution':!0x0});if(!_0x321b53)return;_0x4a4838[_0x3d5e('0xbe')]=_0x321b53[_0x3d5e('0xad')]();const _0x5aa0e8=_0x321b53[_0x3d5e('0x44')][_0x3d5e('0x7')],_0x32c436=_0x16bd4f[_0x3d5e('0x94')]['schema'];_0x5aa0e8&&_0x32c436[_0x3d5e('0x2d')](_0x5aa0e8)&&!_0x32c436[_0x3d5e('0x75')](_0x5aa0e8)&&(_0x321b53=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0xee')](_0x321b53[_0x3d5e('0x9d')],_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x5aa0e8,'end'))),this[_0x3d5e('0xd6')](_0x321b53);}),_0x4a4838[_0x3d5e('0xdf')]());},{'priority':_0x3d5e('0x115')}),this[_0x3d5e('0xd9')][_0x3d5e('0x143')]['add'](_0x3d5e('0x29'),this[_0x3d5e('0x8d')]),this['enableCommand'](_0x3d5e('0x29'));const _0x298501=new _0x36f33e(_0x16bd4f,this[_0x3d5e('0xe0')]);_0x16bd4f['commands'][_0x3d5e('0xea')](_0x3d5e('0x31'),_0x298501),this[_0x3d5e('0x117')]('acceptSuggestion');const _0x515008=new _0x2749cc(_0x16bd4f,this[_0x3d5e('0xe0')]);_0x16bd4f['commands'][_0x3d5e('0xea')]('discardSuggestion',_0x515008),this[_0x3d5e('0x117')](_0x3d5e('0x10c')),_0x16bd4f[_0x3d5e('0x143')][_0x3d5e('0xea')](_0x3d5e('0x2b'),new _0x8ecd0f(_0x16bd4f,_0x298501,this['_suggestions'])),this[_0x3d5e('0x117')](_0x3d5e('0x2b')),_0x16bd4f[_0x3d5e('0x143')]['add'](_0x3d5e('0x5'),new _0x8ecd0f(_0x16bd4f,_0x515008,this[_0x3d5e('0xe0')])),this[_0x3d5e('0x117')](_0x3d5e('0x5')),_0x16bd4f[_0x3d5e('0x143')][_0x3d5e('0xea')]('acceptSelectedSuggestions',new _0x4ab4a7(_0x16bd4f,_0x298501,this['_suggestions'])),this[_0x3d5e('0x117')](_0x3d5e('0x96')),_0x16bd4f[_0x3d5e('0x143')]['add'](_0x3d5e('0x129'),new _0x4ab4a7(_0x16bd4f,_0x515008,this[_0x3d5e('0xe0')])),this[_0x3d5e('0x117')](_0x3d5e('0x129'));const _0x5a3c0a=_0x16bd4f[_0x3d5e('0xcf')]['get']('CommentsRepository');this[_0x3d5e('0xa6')](_0x5a3c0a,_0x3d5e('0x87'),(_0x1f97c3,{threadId:_0x5a9333})=>{const _0x4e33ff=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x5a9333);_0x4e33ff&&_0x4e33ff[_0x3d5e('0x9c')]&&0x1===_0x4e33ff[_0x3d5e('0x9c')]['length']&&this[_0x3d5e('0xbf')](_0x5a9333,{'hasComments':!0x0});},{'priority':_0x3d5e('0xb6')}),this['listenTo'](_0x5a3c0a,'removeComment',(_0x1c4f8b,{threadId:_0x3a378b})=>{const _0x2ce182=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x3a378b);_0x2ce182&&_0x2ce182[_0x3d5e('0x9c')]&&!_0x2ce182[_0x3d5e('0x9c')][_0x3d5e('0xa8')]&&this['_updateSuggestionData'](_0x3a378b,{'hasComments':!0x1});},{'priority':_0x3d5e('0xb6')});}set[_0x3d5e('0x10e')](_0x5b1ae2){if(this[_0x3d5e('0x6d')])throw new _0x407a23(_0x3d5e('0xf9'),this);this['_adapter']=_0x5b1ae2;}get[_0x3d5e('0x10e')](){return this[_0x3d5e('0x6d')];}['getSuggestions']({skipNotAttached:_0x38f867=!0x1,toJSON:_0x39cd3c=!0x1}={}){const _0x20cb15=[];for(const _0x364141 of this['_suggestions'][_0x3d5e('0x5e')]())_0x38f867&&!_0x364141['isInContent']||_0x20cb15[_0x3d5e('0xc1')](_0x364141);return _0x39cd3c?_0x20cb15[_0x3d5e('0x95')](_0x11ef06=>_0x11ef06[_0x3d5e('0xf0')]()):_0x20cb15;}[_0x3d5e('0x5d')](_0x123a74){const _0x391ad9=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x123a74);if(!_0x391ad9)throw new _0x407a23('track-changes-suggestion-not-found',this);return _0x391ad9;}[_0x3d5e('0xd8')](_0x1da081){return this[_0x3d5e('0xe0')][_0x3d5e('0x8')](_0x1da081);}[_0x3d5e('0xe1')](_0x4a9115){const {authorId:_0x101c68,id:_0x4b0598,attributes:_0x12ad6c}=_0x4a9115,[_0x2ee3b4,_0x2678e1]=_0x4a9115[_0x3d5e('0x83')][_0x3d5e('0x4')](':'),_0x1ad9c5=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x4b0598)||this[_0x3d5e('0xf7')](_0x2ee3b4,_0x2678e1,_0x4b0598,_0x101c68,_0x12ad6c);if(this[_0x3d5e('0x39')](_0x1ad9c5),this[_0x3d5e('0xc6')](_0x1ad9c5,_0x2ee3b4,_0x2678e1||null,_0x101c68),_0x1ad9c5[_0x3d5e('0x108')]=_0x4a9115[_0x3d5e('0x108')],_0x1ad9c5['_isDataLoaded']=!0x0,_0x12ad6c&&_0x12ad6c[_0x3d5e('0xc9')]){const _0x10b786=_0x12ad6c[_0x3d5e('0xc9')],_0x4215b6=this[_0x3d5e('0x11d')](_0x10b786['authorName']);_0x1ad9c5['authoredAt']=_0x10b786['createdAt'],_0x1ad9c5[_0x3d5e('0xb9')]=_0x4215b6,_0x1ad9c5[_0x3d5e('0x18')]=!0x0;}else _0x1ad9c5[_0x3d5e('0x48')]=_0x4a9115[_0x3d5e('0x108')];switch(_0x4a9115['data']&&(_0x1ad9c5[_0x3d5e('0x135')]=_0x4a9115[_0x3d5e('0x135')]),_0x4a9115[_0x3d5e('0xd3')]&&(_0x1ad9c5['attributes']=_0x4a9115[_0x3d5e('0xd3')]),this[_0x3d5e('0x6d')]&&this[_0x3d5e('0x6d')]['addSuggestion']||(_0x1ad9c5['_saved']=!0x0),this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x1ad9c5)){case _0x3d5e('0x5a'):this['_suggestionState'][_0x3d5e('0xdb')](_0x1ad9c5,_0x3d5e('0xa0'));break;case _0x3d5e('0x7f'):_0x1ad9c5[_0x3d5e('0x15')]?(this[_0x3d5e('0x140')](new Set([_0x1ad9c5])),this['_joinWithAdjacentSuggestions'](new Set([_0x1ad9c5])),this['_suggestionState']['set'](_0x1ad9c5,_0x3d5e('0x17')),this[_0x3d5e('0x132')](_0x3d5e('0x63'),_0x1ad9c5)):this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x1ad9c5,'removed');}return _0x1ad9c5;}['acceptSuggestion'](_0xc9c298){this[_0x3d5e('0x8a')](()=>{this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const _0x1bd4d8 of _0xc9c298[_0x3d5e('0x142')]())_0x1bd4d8['accept']();});});}[_0x3d5e('0x10c')](_0x1c1f65){this[_0x3d5e('0x8a')](()=>{this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const _0x1f1894 of _0x1c1f65[_0x3d5e('0x142')]())_0x1f1894[_0x3d5e('0xc5')]();});});}['enableCommand'](_0x1e752e,_0x125626){const _0x398ae8=this[_0x3d5e('0xd9')][_0x3d5e('0x143')]['get'](_0x1e752e);if(!_0x398ae8)throw new _0x407a23(_0x3d5e('0x116'),this,{'commandName':_0x1e752e});this[_0x3d5e('0x123')][_0x3d5e('0xea')](_0x398ae8),_0x125626&&_0x398ae8['on'](_0x3d5e('0x58'),(_0x1c09ba,_0x20514a)=>{this['trackChangesCommand'][_0x3d5e('0xb8')]&&(this[_0x3d5e('0xaa')]||_0x20514a[_0x3d5e('0xa8')]>0x0&&_0x20514a[_0x20514a[_0x3d5e('0xa8')]-0x1]&&_0x20514a[_0x20514a[_0x3d5e('0xa8')]-0x1][_0x3d5e('0x8a')]||(_0x1c09ba['return']=_0x125626((..._0x300770)=>_0x398ae8[_0x3d5e('0x58')](..._0x300770,{'forceDefaultExecution':!0x0}),..._0x20514a),_0x1c09ba[_0x3d5e('0xdf')]()));},{'priority':_0x3d5e('0x115')});}[_0x3d5e('0x8a')](_0x507fd6){let _0x50bf65,_0x2291b0;const _0x503cf1=this[_0x3d5e('0xaa')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50bf65=_0x507fd6();}catch(_0x172fed){_0x2291b0=_0x172fed;}return _0x503cf1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2291b0&&_0x407a23['rethrowUnexpectedError'](_0x2291b0,this),_0x50bf65;}['markInsertion'](_0x181aab,_0x357f0e=null,_0x478da2={}){if(_0x181aab[_0x3d5e('0x32')])return null;const _0x19cb23=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'];for(const {suggestion:_0x3b896a,meta:_0x33bf45}of this[_0x3d5e('0x2c')](_0x181aab,_0x3d5e('0xba')))if(_0x33bf45[_0x3d5e('0x9')]){if(!_0x33bf45[_0x3d5e('0x90')]){if(_0x33bf45[_0x3d5e('0x3a')]){if(!this[_0x3d5e('0x10b')]||!Ot(_0x3b896a,_0x478da2))continue;return _0x3b896a;}if(Ot(_0x3b896a,_0x478da2))return _0x3b896a;this['_breakSuggestionMarker'](_0x3b896a,_0x181aab[_0x3d5e('0x9d')],_0x181aab[_0x3d5e('0x44')]);break;}if(_0x357f0e==_0x3b896a['subType']&&Ot(_0x3b896a,_0x478da2)){const _0x2091f9=_0x3b896a[_0x3d5e('0x97')]();return _0x2091f9['start'][_0x3d5e('0x3d')](_0x181aab[_0x3d5e('0x44')])?this[_0x3d5e('0xce')](_0x3b896a,this['_model'][_0x3d5e('0xee')](_0x181aab[_0x3d5e('0x9d')],_0x2091f9[_0x3d5e('0x44')])):this[_0x3d5e('0xce')](_0x3b896a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2091f9['start'],_0x181aab[_0x3d5e('0x44')])),_0x3b896a;}}const _0x180e96=_0x59e8c4(),_0x55ea90=_0x19cb23['id'],_0x3c39ec=_0x357f0e?_0x3d5e('0x110')+_0x357f0e:_0x3d5e('0xba'),_0x283572=this['_setSuggestionData']({'id':_0x180e96,'type':_0x3c39ec,'createdAt':new Date(),'authorId':_0x55ea90,'attributes':_0x478da2});return this[_0x3d5e('0x71')](_0x3c39ec,_0x180e96,_0x55ea90,_0x181aab),_0x283572;}[_0x3d5e('0x120')](_0x12e93b,_0xde0a23=_0x3d5e('0x7e'),_0x26c8cf={}){const _0xd4caab=this['editor']['plugins'][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'],_0x54b1c4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xde0a23,_0x3d5e('0x46'));for(const _0x3e51a9 of this[_0x3d5e('0xbd')]())if(_0x3e51a9[_0x3d5e('0xb9')]['id']==_0xd4caab['id']&&_0x3d5e('0xba')==_0x3e51a9[_0x3d5e('0x83')]&&_0x3e51a9['subType']==_0xde0a23&&Ot(_0x3e51a9,_0x26c8cf)&&(_0x54b1c4(_0x3e51a9[_0x3d5e('0x119')](),_0x12e93b)||_0x54b1c4(_0x12e93b,_0x3e51a9[_0x3d5e('0x119')]()))){for(const _0x306fe6 of _0x12e93b)_0x3e51a9[_0x3d5e('0xe7')](_0x306fe6);return _0x3e51a9;}for(const {suggestion:_0xe29f73,meta:_0x4e0991}of this[_0x3d5e('0x2c')](_0x12e93b,_0x3d5e('0xba'))){if(!_0x4e0991[_0x3d5e('0x9')])continue;if(!this[_0x3d5e('0x10b')]&&_0x4e0991['containsRangeInObject'])continue;if(!Ot(_0xe29f73,_0x26c8cf))continue;let _0x4baed1=!0x0;for(const _0x169fdf of _0xe29f73[_0x3d5e('0x119')]())for(const _0x35ccca of _0x12e93b)if(!_0x169fdf[_0x3d5e('0x51')](_0x35ccca)){_0x4baed1=!0x1;break;}if(_0x4baed1)return _0xe29f73;}const _0x333da0=_0x59e8c4(),_0x53d89b=_0xd4caab['id'],_0x168397=_0x3d5e('0x110')+_0xde0a23,_0xa72143=this[_0x3d5e('0x10a')]({'id':_0x333da0,'type':_0x168397,'createdAt':new Date(),'authorId':_0x53d89b,'attributes':_0x26c8cf});for(const _0x40c86e of _0x12e93b)this[_0x3d5e('0x71')](_0x168397,_0x333da0,_0x53d89b,_0x40c86e,_0x439cc9[_0x3d5e('0x136')]());return _0xa72143;}[_0x3d5e('0x30')](_0x127472,_0x3d047c,_0x1526f8=null,_0x42bd0e={}){if(_0x1526f8=_0x1526f8||Nt(_0x3d047c),_0x127472[_0x3d5e('0x32')])return null;if('never'===this[_0x3d5e('0xc3')]){const _0x4661ea=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x61'),_0x1526f8,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4661ea([_0x127472],_0x3d047c,_0x42bd0e)),null;}const _0x44388e=this[_0x3d5e('0xd9')]['plugins'][_0x3d5e('0x105')]('Users')['me'],_0x2a3051=[];if('always'!==this[_0x3d5e('0xc3')])for(const {suggestion:_0x4a45fd,meta:_0x5931d6}of this[_0x3d5e('0x2c')](_0x127472,'insertion'))_0x5931d6['isOwn']&&!_0x5931d6[_0x3d5e('0xe3')]&&_0x2a3051[_0x3d5e('0xc1')](..._0x4a45fd[_0x3d5e('0x119')]());const _0x21795a=function(_0x1400bc,_0x1ab7c4){const _0x5750a8=[];for(const _0x27abff of _0x1ab7c4){const _0x83eb84=_0x1400bc[_0x3d5e('0xdc')](_0x27abff);_0x83eb84&&_0x5750a8[_0x3d5e('0xc1')](_0x83eb84);}return _0x5750a8;}(_0x127472,_0x2a3051),_0x2fc2b7=function(_0x57ec34,_0x249ac7){const _0x539c23=[_0x57ec34];for(const _0x353f95 of _0x249ac7){let _0xef1ca=0x0;for(;_0xef1ca<_0x539c23['length'];){const _0x4a13c8=_0x539c23[_0xef1ca][_0x3d5e('0x2')](_0x353f95);_0x539c23['splice'](_0xef1ca,0x1,..._0x4a13c8),_0xef1ca+=_0x4a13c8[_0x3d5e('0xa8')];}}return _0x539c23;}(_0x127472,_0x2a3051);_0x21795a['length']&&this[_0x3d5e('0x11c')][_0x3d5e('0x100')](()=>{for(const _0x4bb72f of _0x21795a){const _0x18e97b=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x61'),_0x1526f8,_0x3d5e('0x3c'));this[_0x3d5e('0x8a')](()=>_0x18e97b([_0x4bb72f],_0x3d047c,_0x42bd0e));}});for(const _0xa4eb3d of _0x2fc2b7){let _0x298ccf=null,_0x1bfec1=_0xa4eb3d['start'],_0x2b0fb2=_0xa4eb3d[_0x3d5e('0x44')];for(const {suggestion:_0x25f72b,meta:_0x5d5995}of this['_findSuggestions'](_0xa4eb3d,'formatInline')){if(!_0x5d5995[_0x3d5e('0x9')])continue;if(_0x25f72b[_0x3d5e('0x7c')]!=_0x1526f8)continue;if(!Ot(_0x25f72b,_0x42bd0e))continue;const _0x298c7c=_0x25f72b['getFirstRange']();if(_0x298c7c['containsRange'](_0xa4eb3d,!0x0))return null;_0x1bfec1=_0x1bfec1[_0x3d5e('0xb1')](_0x298c7c[_0x3d5e('0x9d')])?_0x1bfec1:_0x298c7c[_0x3d5e('0x9d')],_0x2b0fb2=_0x2b0fb2[_0x3d5e('0xe5')](_0x298c7c['end'])?_0x2b0fb2:_0x298c7c['end'],_0x298ccf?_0x298c7c[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x298ccf[_0x3d5e('0x97')]()[_0x3d5e('0x9d')])?(_0x298ccf[_0x3d5e('0xa4')](),_0x298ccf=_0x25f72b):_0x25f72b[_0x3d5e('0xa4')]():_0x298ccf=_0x25f72b;}const _0xe407bb=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x1bfec1,_0x2b0fb2);if(_0x298ccf)this[_0x3d5e('0xce')](_0x298ccf,_0xe407bb);else{const _0x265885=_0x59e8c4(),_0x49b870=_0x44388e['id'];this[_0x3d5e('0x10a')]({'id':_0x265885,'type':_0x3d5e('0x13a')+_0x1526f8,'data':_0x3d047c,'createdAt':new Date(),'authorId':_0x49b870,'attributes':_0x42bd0e}),this[_0x3d5e('0x71')](_0x3d5e('0x13a')+_0x1526f8,_0x265885,_0x49b870,_0xe407bb);}}return null;}[_0x3d5e('0x4b')](_0x1374fe,_0x5ababe,_0x85eb9=[],_0x4a1334=null,_0x2e38e4={}){_0x5ababe['formatGroupId']||(_0x5ababe[_0x3d5e('0x101')]=_0x5ababe['commandName']),_0x5ababe[_0x3d5e('0x1e')]=_0x1374fe['is'](_0x3d5e('0xc0')),_0x4a1334=_0x4a1334||Nt(_0x5ababe);const _0x28be54=_0x85eb9[_0x3d5e('0x95')](_0x1c2b2f=>jt(_0x1c2b2f,this['_model'])),_0x145550=_0x1374fe['is'](_0x3d5e('0xc0'))?_0x1374fe:jt(_0x1374fe,this[_0x3d5e('0x11c')]);if('never'===this['_trackFormatChanges']){const _0x4595b8=this[_0x3d5e('0x82')]['getSuggestionCallback'](_0x3d5e('0x67'),_0x4a1334,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4595b8([_0x145550],_0x5ababe,_0x2e38e4)),null;}_0x28be54['push'](_0x145550);let _0x19a7ac=!0x0;for(const _0xa11140 of _0x28be54)if(!this[_0x3d5e('0xaf')](_0xa11140)){_0x19a7ac=!0x1;break;}if(_0x19a7ac&&_0x3d5e('0x57')!==this['_trackFormatChanges']){const _0x34e573=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x67'),_0x4a1334,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x34e573([_0x145550],_0x5ababe,_0x2e38e4)),null;}let _0x92ddb3=null,_0x5c18e8=_0x145550['start'],_0x146f38=_0x145550[_0x3d5e('0x44')];for(const {suggestion:_0x509512,meta:_0x23199a}of this[_0x3d5e('0x2c')](_0x145550,_0x3d5e('0x67'))){if(!_0x23199a['isOwn'])continue;if(_0x23199a[_0x3d5e('0x90')]||_0x23199a[_0x3d5e('0x3a')]||_0x23199a[_0x3d5e('0xe3')])continue;if(_0x509512[_0x3d5e('0x135')][_0x3d5e('0x101')]!=_0x5ababe[_0x3d5e('0x101')])continue;if(!Ot(_0x509512,_0x2e38e4))continue;const _0x4ae105=_0x509512['getFirstRange']();if(_0x509512[_0x3d5e('0x7c')]==_0x4a1334){if(_0x4ae105['containsRange'](_0x145550,!0x0))return null;_0x5c18e8=_0x5c18e8[_0x3d5e('0xb1')](_0x4ae105['start'])?_0x5c18e8:_0x4ae105['start'],_0x146f38=_0x146f38[_0x3d5e('0xe5')](_0x4ae105[_0x3d5e('0x44')])?_0x146f38:_0x4ae105[_0x3d5e('0x44')],_0x92ddb3?_0x4ae105[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x92ddb3[_0x3d5e('0x97')]()['start'])?(_0x92ddb3[_0x3d5e('0xa4')](),_0x92ddb3=_0x509512):_0x509512[_0x3d5e('0xa4')]():_0x92ddb3=_0x509512;}else{const _0x3f95c6=_0x145550['getIntersection'](_0x4ae105);this[_0x3d5e('0x11b')](_0x509512,_0x3f95c6);}}const _0x2806fa=this['editor'][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca'))['me'],_0x36b9a1=_0x59e8c4(),_0x40c546=_0x2806fa['id'];if(_0x92ddb3)return this[_0x3d5e('0xce')](_0x92ddb3,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x5c18e8,_0x146f38)),_0x92ddb3;{const _0x34d739=this[_0x3d5e('0x10a')]({'id':_0x36b9a1,'type':'formatBlock:'+_0x4a1334,'data':_0x5ababe,'createdAt':new Date(),'authorId':_0x40c546,'attributes':_0x2e38e4});return this[_0x3d5e('0x71')](_0x3d5e('0xae')+_0x4a1334,_0x36b9a1,_0x40c546,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x5c18e8,_0x146f38)),_0x34d739;}}[_0x3d5e('0x1')](_0x5b1146,_0x397e6e,_0xd78133=[],_0xd53a45=null,_0x50ff73={}){_0x397e6e[_0x3d5e('0x101')]||(_0x397e6e['formatGroupId']=_0x397e6e[_0x3d5e('0x37')]);const _0x39fb32=_0x5b1146[0x0];_0x397e6e[_0x3d5e('0x1e')]=_0x39fb32['is'](_0x3d5e('0xc0')),_0xd53a45=_0xd53a45||Nt(_0x397e6e);const _0x3d5385=_0xd78133[_0x3d5e('0x95')](_0x59f891=>jt(_0x59f891,this[_0x3d5e('0x11c')])),_0x206229=_0x39fb32['is'](_0x3d5e('0xc0'))?_0x5b1146:_0x5b1146[_0x3d5e('0x95')](_0x5c067e=>jt(_0x5c067e,this[_0x3d5e('0x11c')]));if('never'===this[_0x3d5e('0xc3')]){const _0x32ec65=this[_0x3d5e('0x82')]['getSuggestionCallback'](_0x3d5e('0x67'),_0xd53a45,_0x3d5e('0x3c'));return this['forceDefaultExecution'](()=>_0x32ec65(_0x206229,_0x397e6e,_0x50ff73)),null;}_0x3d5385['push'](..._0x206229);let _0x1e6e0b=!0x0;for(const _0x4b070e of _0x3d5385)if(!this[_0x3d5e('0xaf')](_0x4b070e)){_0x1e6e0b=!0x1;break;}if(_0x1e6e0b&&_0x3d5e('0x57')!==this['_trackFormatChanges']){const _0x183248=this['_suggestionFactory']['getSuggestionCallback'](_0x3d5e('0x67'),_0xd53a45,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x183248(_0x206229,_0x397e6e,_0x50ff73)),null;}const _0x5ecef0=this['editor']['plugins'][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'];for(const _0x22738a of this[_0x3d5e('0xbd')]()){if(_0x22738a[_0x3d5e('0xb9')]['id']!=_0x5ecef0['id'])continue;if(_0x3d5e('0x67')!=_0x22738a[_0x3d5e('0x83')]||_0x22738a[_0x3d5e('0x135')]['formatGroupId']!=_0x397e6e['formatGroupId'])continue;if(!Ot(_0x22738a,_0x50ff73))continue;const _0x4877f3=_0x22738a[_0x3d5e('0x7c')]==_0xd53a45;for(let _0x5e1820=0x0;_0x5e1820<_0x206229[_0x3d5e('0xa8')];_0x5e1820++){const _0x2178d9=_0x206229[_0x5e1820];for(const _0x2d8d11 of _0x22738a['getMarkers']()){const _0x128e2c=_0x2d8d11[_0x3d5e('0xe4')]();if(_0x2178d9['isEqual'](_0x128e2c)){_0x4877f3?(_0x206229[_0x3d5e('0x4d')](_0x5e1820,0x1),_0x5e1820--):_0x22738a[_0x3d5e('0x3f')](_0x2d8d11[_0x3d5e('0x35')]);break;}}}}if(0x0==_0x206229[_0x3d5e('0xa8')])return null;const _0x5df338=this[_0x3d5e('0x82')][_0x3d5e('0xb')]('formatBlock',_0xd53a45,'join');for(const _0x1408a5 of this[_0x3d5e('0xbd')]())if(_0x1408a5['author']['id']==_0x5ecef0['id']&&_0x3d5e('0x67')==_0x1408a5[_0x3d5e('0x83')]&&_0x1408a5[_0x3d5e('0x135')][_0x3d5e('0x101')]==_0x397e6e['formatGroupId']&&_0x1408a5['subType']==_0xd53a45&&Ot(_0x1408a5,_0x50ff73)&&(_0x5df338(_0x1408a5[_0x3d5e('0x119')](),_0x206229)||_0x5df338(_0x206229,_0x1408a5[_0x3d5e('0x119')]()))){for(const _0x4c77fd of _0x206229)_0x1408a5[_0x3d5e('0xe7')](_0x4c77fd);return _0x1408a5;}const _0x55e76f=_0x59e8c4(),_0x20275f=_0x5ecef0['id'],_0x57eef0=_0x3d5e('0xae')+_0xd53a45,_0x1d01df=this[_0x3d5e('0x10a')]({'id':_0x55e76f,'type':_0x57eef0,'data':_0x397e6e,'createdAt':new Date(),'authorId':_0x20275f,'attributes':_0x50ff73});for(const _0xa5415a of _0x206229)this['_addSuggestionMarker'](_0x57eef0,_0x55e76f,_0x20275f,_0xa5415a,_0x439cc9['getMultiRangeId']());return _0x1d01df;}['markDeletion'](_0x1fd885,_0x400294=null,_0x73f3e0={}){if(_0x1fd885[_0x3d5e('0x32')])return null;const _0x36c22b=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')]('Users')['me'],_0x3ca37e=new _0x43231c(_0x1fd885['start'],_0x1fd885[_0x3d5e('0x44')]);for(const {suggestion:_0x53f199,meta:_0x1202d1}of this['_findSuggestions'](_0x3ca37e,_0x3d5e('0xba')))if(_0x1202d1['isOwn']&&!_0x1202d1[_0x3d5e('0x90')]){if(_0x53f199[_0x3d5e('0xb7')]){const _0x25d83d=_0x53f199['getRanges']()[_0x3d5e('0x24')](_0x54ea24=>_0x3d5e('0x6b')!=_0x54ea24[_0x3d5e('0x78')]['rootName']);_0x25d83d[_0x3d5e('0xd2')](_0x12231a=>_0x3ca37e[_0x3d5e('0x51')](_0x12231a,!0x0))&&_0x53f199[_0x3d5e('0xc5')]();if(_0x25d83d[_0x3d5e('0xf3')](_0x3f442b=>_0x3f442b['containsRange'](_0x3ca37e,!0x0))){const _0x501d0a=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x400294,'accept');return this[_0x3d5e('0x8a')](()=>_0x501d0a([_0x3ca37e],null,_0x73f3e0)),null;}}else{const _0x471d9a=_0x3ca37e['getIntersection'](_0x53f199[_0x3d5e('0x97')]());null!==_0x471d9a&&_0x53f199['_onDiscard']([_0x471d9a],null,_0x73f3e0);}}if(_0x3ca37e[_0x3d5e('0xd0')](),_0x3ca37e[_0x3d5e('0x32')]||_0x3d5e('0x6b')==_0x3ca37e['root'][_0x3d5e('0x104')])return null;let _0x14b69a=null,_0x2faf94=_0x3ca37e['start'],_0x193cb4=_0x3ca37e[_0x3d5e('0x44')];const _0x4df307=this[_0x3d5e('0x2c')](_0x3ca37e,_0x3d5e('0x33'));for(const {suggestion:_0x53b474,meta:_0x342aa4}of _0x4df307){const _0x30c443=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2faf94,_0x193cb4);if(_0x342aa4[_0x3d5e('0x9')]&&(this[_0x3d5e('0x10b')]||!_0x342aa4[_0x3d5e('0x3a')]&&!_0x342aa4[_0x3d5e('0xe3')])){if(_0x53b474[_0x3d5e('0xb7')]){if(!Ot(_0x53b474,_0x73f3e0))continue;let _0x1f4e4e=!0x0;for(const _0x58978e of _0x53b474[_0x3d5e('0x119')]()){if(_0x58978e['containsRange'](_0x30c443,!0x0))return _0x53b474;_0x30c443[_0x3d5e('0x51')](_0x58978e)||(_0x1f4e4e=!0x1);}_0x1f4e4e&&_0x53b474['discard']();}else{const _0x61c87a=_0x53b474[_0x3d5e('0x97')]();if(_0x61c87a[_0x3d5e('0x51')](_0x30c443,!0x0))return _0x53b474;if(!Ot(_0x53b474,_0x73f3e0)){_0x30c443['containsRange'](_0x61c87a)?_0x53b474[_0x3d5e('0xa4')]():_0x61c87a['containsPosition'](_0x2faf94)?_0x2faf94=_0x61c87a['end']:_0x61c87a[_0x3d5e('0xfc')](_0x193cb4)&&(_0x193cb4=_0x61c87a['start']);continue;}_0x2faf94=_0x2faf94[_0x3d5e('0xb1')](_0x61c87a['start'])?_0x2faf94:_0x61c87a['start'],_0x193cb4=_0x193cb4[_0x3d5e('0xe5')](_0x61c87a[_0x3d5e('0x44')])?_0x193cb4:_0x61c87a[_0x3d5e('0x44')],_0x73f3e0=Object[_0x3d5e('0x49')]({},_0x53b474[_0x3d5e('0xd3')]),_0x14b69a?_0x61c87a['start'][_0x3d5e('0xb1')](_0x14b69a[_0x3d5e('0x97')]()[_0x3d5e('0x9d')])?(_0x14b69a['removeMarkers'](),_0x14b69a=_0x53b474):_0x53b474[_0x3d5e('0xa4')]():_0x14b69a=_0x53b474;}}}if(_0x14b69a)return this[_0x3d5e('0xce')](_0x14b69a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2faf94,_0x193cb4)),_0x14b69a;{const _0x32932e=_0x59e8c4(),_0x22120d=this[_0x3d5e('0x11c')]['createRange'](_0x2faf94,_0x193cb4),_0x5e4d7e=_0x36c22b['id'],_0x2ebce5=_0x400294?_0x3d5e('0x8b')+_0x400294:_0x3d5e('0x33'),_0x111530=this[_0x3d5e('0x10a')]({'id':_0x32932e,'type':_0x2ebce5,'createdAt':new Date(),'authorId':_0x5e4d7e,'attributes':_0x73f3e0});return this[_0x3d5e('0x71')](_0x2ebce5,_0x32932e,_0x5e4d7e,_0x22120d),_0x111530;}}[_0x3d5e('0xff')](_0x162270,_0x2a98f3=_0x3d5e('0x7e'),_0x31ac67={}){const _0x4a225d=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'],_0x24b8c5=_0x162270[_0x3d5e('0x95')](_0x3c1975=>new _0x43231c(_0x3c1975[_0x3d5e('0x9d')],_0x3c1975[_0x3d5e('0x44')])),_0x14f423=new Set();for(const {suggestion:_0x3d3067,meta:_0x32728f}of this[_0x3d5e('0x2c')](_0x24b8c5,_0x3d5e('0xba')))_0x32728f[_0x3d5e('0x9')]&&!_0x32728f['isNextTo']&&_0x14f423[_0x3d5e('0xea')](_0x3d3067);for(const _0x1c3a23 of _0x14f423)if(_0x1c3a23[_0x3d5e('0xb7')]){const _0x2e23a5=_0x1c3a23['getRanges']();(!_0x1c3a23[_0x3d5e('0xd3')]||!_0x1c3a23[_0x3d5e('0xd3')][_0x3d5e('0x109')])&&(_0x2e23a5[_0x3d5e('0xd2')](_0x3e75c1=>_0x24b8c5['some'](_0x27bfff=>_0x27bfff[_0x3d5e('0x51')](_0x3e75c1,!0x0)))&&_0x1c3a23['discard']());if(_0x24b8c5['every'](_0x25331d=>_0x2e23a5['some'](_0x1fd5c3=>_0x1fd5c3[_0x3d5e('0x51')](_0x25331d,!0x0)))){const _0x4dff72=this[_0x3d5e('0x82')][_0x3d5e('0xb')]('deletion',_0x2a98f3,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4dff72(_0x162270,null,_0x31ac67)),null;}}else{const _0x39dde6=_0x1c3a23[_0x3d5e('0x97')]();_0x24b8c5['some'](_0x516fba=>_0x516fba['containsRange'](_0x39dde6,!0x0))&&_0x1c3a23[_0x3d5e('0xc5')]();if(_0x24b8c5[_0x3d5e('0xd2')](_0x40a18d=>_0x39dde6[_0x3d5e('0x51')](_0x40a18d,!0x0))){const _0x1c71ab=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x2a98f3,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x1c71ab(_0x24b8c5,null,_0x31ac67)),null;}}const _0xcd8bfe=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x2a98f3,_0x3d5e('0x46'));let _0x42169b=null;for(const _0x5deb02 of this['getSuggestions']())if(_0x5deb02[_0x3d5e('0xb9')]['id']==_0x4a225d['id']&&_0x5deb02[_0x3d5e('0x15')]&&'deletion'==_0x5deb02[_0x3d5e('0x83')]&&_0x5deb02[_0x3d5e('0x7c')]==_0x2a98f3&&Ot(_0x5deb02,_0x31ac67)&&(_0xcd8bfe(_0x5deb02['getRanges'](),_0x24b8c5)||_0xcd8bfe(_0x24b8c5,_0x5deb02['getRanges']()))){if(_0x42169b){if(_0x5deb02['commentThread']&&_0x5deb02[_0x3d5e('0x9c')][_0x3d5e('0xa8')])continue;for(const _0x38aeb2 of _0x5deb02['getRanges']())_0x42169b['isIntersectingWithRange'](_0x38aeb2)||_0x42169b[_0x3d5e('0xe7')](_0x38aeb2);_0x5deb02[_0x3d5e('0xa4')]();}else{_0x42169b=_0x5deb02;for(const _0x2518b3 of _0x24b8c5)_0x5deb02[_0x3d5e('0x130')](_0x2518b3)||_0x5deb02[_0x3d5e('0xe7')](_0x2518b3);}}if(_0x42169b)return _0x42169b;_0x14f423['clear']();for(const {suggestion:_0x1a5e12,meta:_0x2fe9f9}of this[_0x3d5e('0x2c')](_0x24b8c5,'deletion'))_0x2fe9f9[_0x3d5e('0x9')]&&(this[_0x3d5e('0x10b')]||!_0x2fe9f9[_0x3d5e('0x3a')]&&!_0x2fe9f9[_0x3d5e('0xe3')])&&Ot(_0x1a5e12,_0x31ac67)&&_0x14f423[_0x3d5e('0xea')](_0x1a5e12);for(const _0x55cbe7 of _0x14f423){const _0x435d7a=_0x55cbe7[_0x3d5e('0x119')]();if(!_0x31ac67||!_0x31ac67[_0x3d5e('0x109')]){if(_0x24b8c5[_0x3d5e('0xd2')](_0x2b0560=>_0x435d7a[_0x3d5e('0xf3')](_0x18c54c=>_0x18c54c[_0x3d5e('0x51')](_0x2b0560,!0x0))))return _0x55cbe7;}(!_0x55cbe7[_0x3d5e('0xd3')]||!_0x55cbe7[_0x3d5e('0xd3')][_0x3d5e('0x109')])&&(_0x435d7a[_0x3d5e('0xd2')](_0x48fab2=>_0x24b8c5['some'](_0x839720=>_0x839720[_0x3d5e('0x51')](_0x48fab2,!0x0)))&&_0x55cbe7['discard']());}const _0x3b12db=_0x59e8c4(),_0x5182e5=_0x4a225d['id'],_0x81a373=_0x3d5e('0x8b')+_0x2a98f3,_0x2ec41b=this[_0x3d5e('0x10a')]({'id':_0x3b12db,'type':_0x81a373,'createdAt':new Date(),'authorId':_0x5182e5,'attributes':_0x31ac67});for(const _0x1fb006 of _0x24b8c5)_0x1fb006['detach'](),_0x1fb006[_0x3d5e('0x32')]||_0x3d5e('0x6b')==_0x1fb006[_0x3d5e('0x78')]['rootName']||this['_addSuggestionMarker'](_0x81a373,_0x3b12db,_0x5182e5,_0x1fb006,_0x439cc9['getMultiRangeId']());return _0x2ec41b;}[_0x3d5e('0xce')](_0x962874,_0x4bf21b){const _0x9aaeb=_0x962874[_0x3d5e('0x55')]();this[_0x3d5e('0x11c')][_0x3d5e('0x100')](_0x655071=>{_0x655071[_0x3d5e('0x62')](_0x9aaeb,{'range':_0x4bf21b});});}[_0x3d5e('0x39')](_0x250931){const _0x30a9f2=_0x250931['id'],_0x4957ff=this[_0x3d5e('0xd9')]['config']['get'](_0x3d5e('0xa'));this[_0x3d5e('0x4c')][_0x3d5e('0x25')](_0x30a9f2)||this['_commentsRepository'][_0x3d5e('0xc4')]({'channelId':_0x4957ff,'threadId':_0x30a9f2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd76dc1=this[_0x3d5e('0x4c')]['getCommentThread'](_0x30a9f2);_0xd76dc1[_0x3d5e('0x9b')](_0x3d5e('0x59')),_0xd76dc1[_0x3d5e('0x59')]=!0x1,_0x250931['commentThread']=_0xd76dc1;}['_checkSuggestionCorrectness'](_0x8db817,_0x2e4500,_0xe73518,_0x271407){if(_0x8db817[_0x3d5e('0x83')]!=_0x2e4500||_0x8db817['subType']!=_0xe73518||_0x8db817[_0x3d5e('0x21')]['id']!=_0x271407)throw this[_0x3d5e('0xd9')][_0x3d5e('0x0')]('track-changes-suggestion-data-mismatch'),new _0x407a23('track-changes-suggestion-data-mismatch',this);}[_0x3d5e('0x11b')](_0x3f96c3,_0xfa99f9){const _0x39f9ac=_0x3f96c3[_0x3d5e('0x97')]();if(_0xfa99f9[_0x3d5e('0x3d')](_0x39f9ac))_0x3f96c3[_0x3d5e('0xa4')]();else{if(_0x39f9ac[_0x3d5e('0x51')](_0xfa99f9)){const _0x46925b=this[_0x3d5e('0x11c')]['createPositionAt'](_0xfa99f9['start'][_0x3d5e('0x7')],_0x3d5e('0x44'));this[_0x3d5e('0xce')](_0x3f96c3,this['_model'][_0x3d5e('0xee')](_0x39f9ac['start'],_0x46925b));const _0x477bb9=_0x59e8c4(),_0x2e419e=_0x3f96c3[_0x3d5e('0x21')]['id'],_0x335b90=_0x3f96c3['type']+':'+_0x3f96c3[_0x3d5e('0x7c')];this[_0x3d5e('0x10a')]({'id':_0x477bb9,'type':_0x335b90,'createdAt':new Date(),'authorId':_0x2e419e,'data':_0x3f96c3[_0x3d5e('0x135')],'attributes':_0x3f96c3['attributes']});const _0x3ec040=this[_0x3d5e('0x11c')][_0x3d5e('0x19')](_0xfa99f9[_0x3d5e('0x44')][_0x3d5e('0x10')],_0x3d5e('0xbb')),_0x1a4db6=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x3ec040,_0x39f9ac[_0x3d5e('0x44')]);this[_0x3d5e('0x71')](_0x335b90,_0x477bb9,_0x2e419e,_0x1a4db6);}else{if(_0x39f9ac['containsPosition'](_0xfa99f9['start'])){const _0x46e894=this[_0x3d5e('0x11c')]['createPositionAt'](_0xfa99f9[_0x3d5e('0x9d')][_0x3d5e('0x7')],_0x3d5e('0x44'));this[_0x3d5e('0xce')](_0x3f96c3,this['_model']['createRange'](_0x39f9ac[_0x3d5e('0x9d')],_0x46e894));}else{const _0x3e6983=this[_0x3d5e('0x11c')][_0x3d5e('0x19')](_0xfa99f9[_0x3d5e('0x44')][_0x3d5e('0x10')],_0x3d5e('0xbb'));this[_0x3d5e('0xce')](_0x3f96c3,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x3e6983,_0x39f9ac['end']));}}}}[_0x3d5e('0xaf')](_0xd33596){for(const {suggestion:_0x2cf082,meta:_0x48e5bb}of this['_findSuggestions'](_0xd33596,'insertion')){if(!_0x48e5bb[_0x3d5e('0x9')])continue;const _0x50ba9b=_0x2cf082[_0x3d5e('0x119')]();for(const _0xdeb9db of _0x50ba9b)if(!_0xd33596[_0x3d5e('0x2')](_0xdeb9db)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c660d){const _0x44c5b3=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca'))[_0x3d5e('0x10d')](_0x5c660d);if(!_0x44c5b3)throw new _0x407a23(_0x3d5e('0x89'),this);return _0x44c5b3;}[_0x3d5e('0x11d')](_0x7d11d5){const _0x448904=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca')),_0x5e4921=_0x544d40(_0x3d5e('0x28')+_0x7d11d5),_0xb44b2d=_0x448904['getUser'](_0x5e4921);return _0xb44b2d||_0x448904[_0x3d5e('0x2e')]({'id':_0x5e4921,'name':_0x7d11d5});}['_createSuggestion'](_0x350afc,_0x1ae0e4,_0x477b12,_0xfad97a,_0x4a8ba7){const _0x70059a=this['_getAuthorFromId'](_0xfad97a),_0x5ec7ba=this[_0x3d5e('0x82')][_0x3d5e('0x88')](_0x350afc,_0x1ae0e4,_0x477b12,_0x70059a,_0x4a8ba7,_0x3ba3e1=>this[_0x3d5e('0xbf')](_0x477b12,{'attributes':_0x3ba3e1}));return this[_0x3d5e('0xa6')](_0x5ec7ba,'accept',()=>{this[_0x3d5e('0xbf')](_0x477b12,{'state':'accepted'});},{'priority':_0x3d5e('0x115')}),this[_0x3d5e('0xa6')](_0x5ec7ba,_0x3d5e('0xc5'),()=>{this['_updateSuggestionData'](_0x477b12,{'state':_0x3d5e('0x12a')});},{'priority':'high'}),this['_suggestions'][_0x3d5e('0xdb')](_0x477b12,_0x5ec7ba),this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x5ec7ba,_0x3d5e('0x5a')),_0x5ec7ba;}[_0x3d5e('0xa5')](_0x5c7fa0){const _0x258b46=_0x5c7fa0[_0x3d5e('0x4')](':');return{'group':_0x258b46[0x0],'type':_0x258b46[0x1],'subType':_0x258b46[_0x3d5e('0xa8')]>=0x5?_0x258b46[0x2]:null,'id':_0x258b46[_0x3d5e('0xa8')]<0x5?_0x258b46[0x2]:_0x258b46[0x3],'authorId':_0x258b46[_0x3d5e('0xa8')]<0x5?_0x258b46[0x3]:_0x258b46[0x4],'markerCount':0x6==_0x258b46[_0x3d5e('0xa8')]?_0x258b46[0x5]:null};}[_0x3d5e('0x134')](_0x2c3216,_0x24bf59,_0x47d3b7){const _0x104ac8=_0x2c3216[_0x3d5e('0x97')](),_0x126419=_0x104ac8[_0x3d5e('0x9d')],_0x7caca=_0x104ac8[_0x3d5e('0x44')];this[_0x3d5e('0xce')](_0x2c3216,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x126419,_0x24bf59));const _0x16fc59=_0x59e8c4(),_0x40ad79=_0x2c3216['creator']['id'],_0x1c5da3=_0x2c3216[_0x3d5e('0x83')]+(_0x2c3216['subType']?':'+_0x2c3216[_0x3d5e('0x7c')]:'');this[_0x3d5e('0x10a')]({'id':_0x16fc59,'type':_0x1c5da3,'createdAt':new Date(),'authorId':_0x40ad79,'originalSuggestionId':_0x2c3216['id'],'attributes':_0x2c3216['attributes'],'data':_0x2c3216['data']}),'formatBlock'==_0x2c3216[_0x3d5e('0x83')]&&(_0x47d3b7=this[_0x3d5e('0x11c')][_0x3d5e('0x73')](_0x47d3b7['parent'])),this[_0x3d5e('0x71')](_0x1c5da3,_0x16fc59,_0x40ad79,this['_model'][_0x3d5e('0xee')](_0x47d3b7,_0x7caca));}[_0x3d5e('0x2c')](_0x5e7727,_0x50609a=null){const _0x70a990=[],_0x525a05=this[_0x3d5e('0xd9')]['plugins'][_0x3d5e('0x105')]('Users')['me'];Array[_0x3d5e('0x1b')](_0x5e7727)||(_0x5e7727=[_0x5e7727]);for(const _0x369949 of this[_0x3d5e('0xbd')]()){if(!_0x369949[_0x3d5e('0x15')])continue;if(_0x50609a&&_0x369949[_0x3d5e('0x83')]!=_0x50609a)continue;let _0x51f72f=!0x1;for(const _0x23c7a9 of _0x369949[_0x3d5e('0x119')]()){for(const _0x29ce7a of _0x5e7727){const _0x240a59=_0x29ce7a[_0x3d5e('0x9d')]['isEqual'](_0x23c7a9[_0x3d5e('0x44')])||_0x29ce7a[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x23c7a9['start']);if(_0x240a59||_0x29ce7a['getIntersection'](_0x23c7a9)){const _0x161d52=_0x29ce7a[_0x3d5e('0x51')](_0x23c7a9)&&_t(this[_0x3d5e('0x11c')][_0x3d5e('0x42')],_0x23c7a9[_0x3d5e('0x9d')],_0x29ce7a),_0x597353=_0x23c7a9['containsRange'](_0x29ce7a)&&_t(this['_model'][_0x3d5e('0x42')],_0x29ce7a[_0x3d5e('0x9d')],_0x23c7a9);_0x70a990[_0x3d5e('0xc1')]({'suggestion':_0x369949,'meta':{'isOwn':_0x525a05==_0x369949[_0x3d5e('0xb9')],'isNextTo':_0x240a59,'isInsideObject':_0x161d52,'containsRangeInObject':_0x597353}}),_0x51f72f=!0x0;break;}}if(_0x51f72f)break;}}return _0x70a990;}[_0x3d5e('0x71')](_0x5a378c,_0x86fedb,_0x23caf1,_0x3d8158,_0x518bf3){this[_0x3d5e('0x11c')]['change'](_0x8a8997=>{let _0x189398=_0x3d5e('0x27')+_0x5a378c+':'+_0x86fedb+':'+_0x23caf1;_0x518bf3&&(_0x189398=_0x189398+':'+_0x518bf3),_0x8a8997[_0x3d5e('0x92')](_0x189398,{'range':_0x3d8158,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x57210e){const _0x100b0a=_0x57210e[_0x3d5e('0x50')],_0x5f1ef0=_0x57210e[_0x3d5e('0xfb')];_0x57210e['previous']=null,null!=_0x100b0a&&(_0x100b0a[_0x3d5e('0xfb')]=null),_0x57210e[_0x3d5e('0xfb')]=null,null!=_0x5f1ef0&&(_0x5f1ef0[_0x3d5e('0x50')]=null),_0x3d5e('0x17')==this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x57210e)&&(this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x57210e,_0x3d5e('0xd4')),this[_0x3d5e('0x132')](_0x3d5e('0x8e'),_0x57210e,_0x100b0a,_0x5f1ef0));}[_0x3d5e('0x10a')](_0xef393c){const _0x35cf49=_0xef393c['id'],_0x10bdfe=this[_0x3d5e('0xe1')](_0xef393c);if(this[_0x3d5e('0x6d')]&&this[_0x3d5e('0x6d')][_0x3d5e('0xef')]){const _0x3ee44d=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xcb')),_0x5ba469=_0x10bdfe['hasComments'],_0x3349a0=_0x10bdfe[_0x3d5e('0x7c')]?_0x10bdfe['type']+':'+_0x10bdfe['subType']:_0x10bdfe[_0x3d5e('0x83')],_0x15d396=this[_0x3d5e('0xd9')]['locale'],_0x244a18=_0x3ee44d[_0x3d5e('0xea')](_0x47b482(_0x15d396,'PENDING_ACTION_SUGGESTION')),_0x567614={'id':_0x35cf49,'type':_0x3349a0,'hasComments':_0x5ba469,'data':_0xef393c[_0x3d5e('0x135')]||null,'originalSuggestionId':_0xef393c[_0x3d5e('0x40')]||null,'attributes':_0x10bdfe[_0x3d5e('0xd3')]};this['_adapter'][_0x3d5e('0xef')](_0x567614)['then'](_0x38b134=>{_0x10bdfe['_saved']=!0x0,_0x3ee44d[_0x3d5e('0xdd')](_0x244a18),_0x38b134&&_0x38b134[_0x3d5e('0x108')]&&(this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x35cf49)['createdAt']=_0x38b134['createdAt']);})[_0x3d5e('0xd1')](_0x22c21d=>{throw _0x54b295(_0x3d5e('0x118')),this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x12c')]({'isUndoable':!0x1},()=>{_0x10bdfe[_0x3d5e('0xc5')]();}),_0x10bdfe[_0x3d5e('0x7a')](),this[_0x3d5e('0xe0')]['delete'](_0x10bdfe['id']),this[_0x3d5e('0xfa')]['delete'](_0x10bdfe),_0x22c21d;});}return _0x10bdfe;}[_0x3d5e('0xbf')](_0x19250c,_0x55fd30){const _0x3a513b=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xcb')),_0x3bf1c9=this[_0x3d5e('0x5d')](_0x19250c);if(this['_adapter']&&this[_0x3d5e('0x6d')][_0x3d5e('0x4a')]){if(_0x3bf1c9[_0x3d5e('0x13b')]){const _0x4143e9=_0x3a513b[_0x3d5e('0xea')](_0x47b482(this[_0x3d5e('0xd9')][_0x3d5e('0x106')],_0x3d5e('0x60')));this['_adapter'][_0x3d5e('0x4a')](_0x19250c,_0x55fd30)[_0x3d5e('0xec')](()=>{_0x3a513b[_0x3d5e('0xdd')](_0x4143e9);});}else _0x3bf1c9['on']('change:_saved',()=>{this[_0x3d5e('0xbf')](_0x19250c,_0x55fd30);});}}[_0x3d5e('0xc7')](_0x1126d1){if(!this['_adapter']||!this[_0x3d5e('0x6d')]['getSuggestion'])throw new _0x407a23('track-changes-adapter-missing-getsuggestion',this);return this[_0x3d5e('0x6d')]['getSuggestion'](_0x1126d1);}[_0x3d5e('0x1d')](_0x2d7ce8){const {id:_0x5d85ff,type:_0x2f0e47,subType:_0x33c1fd,authorId:_0x2548c6}=this[_0x3d5e('0xa5')](_0x2d7ce8),_0x43e745=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x5d85ff)||this['_createSuggestion'](_0x2f0e47,_0x33c1fd,_0x5d85ff,_0x2548c6,{});switch(this[_0x3d5e('0xc6')](_0x43e745,_0x2f0e47,_0x33c1fd,_0x2548c6),this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x43e745)){case _0x3d5e('0x5a'):this['_getSuggestionData'](_0x5d85ff)[_0x3d5e('0xec')](_0x5c1ab4=>{let _0x3261ed=Promise[_0x3d5e('0x13e')]();_0x5c1ab4[_0x3d5e('0x113')]&&(_0x3261ed=this[_0x3d5e('0x4c')][_0x3d5e('0x52')]({'channelId':this[_0x3d5e('0xd9')][_0x3d5e('0x121')]['get'](_0x3d5e('0xa')),'threadId':_0x5d85ff})),_0x3261ed[_0x3d5e('0xec')](()=>{this['addSuggestionData'](_0x5c1ab4)[_0x3d5e('0x13b')]=!0x0;});}),this['_suggestionState'][_0x3d5e('0xdb')](_0x43e745,_0x3d5e('0x7f'));break;case _0x3d5e('0xd4'):this[_0x3d5e('0xbf')](_0x5d85ff,{'state':_0x3d5e('0x91')});case _0x3d5e('0xa0'):this['_suggestionState'][_0x3d5e('0xdb')](_0x43e745,_0x3d5e('0x17')),this[_0x3d5e('0x132')](_0x3d5e('0x63'),_0x43e745);break;case _0x3d5e('0x17'):this[_0x3d5e('0x132')](_0x3d5e('0xf6'),_0x43e745);}return _0x43e745[_0x3d5e('0x76')](_0x2d7ce8),_0x43e745;}['_refreshSuggestionsChain'](_0x18e067){const _0x3df9d3=Array[_0x3d5e('0x141')](_0x18e067)['filter'](_0x597b2f=>!_0x597b2f[_0x3d5e('0xb7')]),_0x3e1186=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3d5e('0x24')](_0x390d93=>!_0x390d93[_0x3d5e('0xb7')]),_0x3ad3e3=_0x3e1186[_0x3d5e('0x24')](_0x23d1a8=>!_0x18e067[_0x3d5e('0x8')](_0x23d1a8)),_0x507b42=new Map(_0x3e1186['map'](_0x199159=>[_0x199159,this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x199159[_0x3d5e('0x83')],_0x199159[_0x3d5e('0x7c')],_0x3d5e('0xc2'))])),_0xe10cf2=new Map(_0x3e1186[_0x3d5e('0x95')](_0x18bfc0=>[_0x18bfc0,_0x18bfc0['getFirstRange']()])),_0x551752=new Set(),_0x40b25a=new Set();for(let _0xe3d68a=0x0;_0xe3d68a<_0x3df9d3[_0x3d5e('0xa8')];_0xe3d68a++)_0x4ad369(_0x3df9d3[_0xe3d68a],_0x3df9d3,_0xe3d68a+0x1);for(let _0x6d2591=0x0;_0x6d2591<_0x3df9d3[_0x3d5e('0xa8')];_0x6d2591++)_0x4ad369(_0x3df9d3[_0x6d2591],_0x3ad3e3,0x0);for(let _0x397bda=0x0;_0x397bda<_0x3df9d3[_0x3d5e('0xa8')];_0x397bda++){const _0x19ef01=_0x3df9d3[_0x397bda];!_0x40b25a['has'](_0x19ef01)&&_0x19ef01['previous']&&(_0x19ef01[_0x3d5e('0x50')][_0x3d5e('0xfb')]===_0x19ef01&&(_0x19ef01[_0x3d5e('0x50')][_0x3d5e('0xfb')]=null),_0x19ef01[_0x3d5e('0x50')]=null),!_0x551752['has'](_0x19ef01)&&_0x19ef01[_0x3d5e('0xfb')]&&(_0x19ef01[_0x3d5e('0xfb')]['previous']===_0x19ef01&&(_0x19ef01[_0x3d5e('0xfb')][_0x3d5e('0x50')]=null),_0x19ef01[_0x3d5e('0xfb')]=null);}function _0x4ad369(_0x307ef0,_0x1bc569,_0x4a03b7){for(let _0xd9cfca=_0x4a03b7;_0xd9cfca<_0x1bc569[_0x3d5e('0xa8')];_0xd9cfca++){const _0x4b29cb=_0x3051c3(_0x307ef0,_0x1bc569[_0xd9cfca]);_0x4b29cb&&(_0x4b29cb[0x0][_0x3d5e('0xfb')]=_0x4b29cb[0x1],_0x4b29cb[0x1][_0x3d5e('0x50')]=_0x4b29cb[0x0],_0x551752[_0x3d5e('0xea')](_0x4b29cb[0x0]),_0x40b25a[_0x3d5e('0xea')](_0x4b29cb[0x1]));}}function _0x3051c3(_0x39c6db,_0x2946fa){if(_0x39c6db['author']['id']!==_0x2946fa[_0x3d5e('0xb9')]['id'])return null;const _0xdbb27c=_0x507b42[_0x3d5e('0x105')](_0x39c6db)(_0x39c6db,_0x2946fa,_0xe10cf2[_0x3d5e('0x105')](_0x39c6db),_0xe10cf2['get'](_0x2946fa));if(!_0xdbb27c)return null;return _0x507b42['get'](_0x2946fa)(_0x39c6db,_0x2946fa,_0xe10cf2[_0x3d5e('0x105')](_0x39c6db),_0xe10cf2['get'](_0x2946fa))?_0xdbb27c[0x1]['commentThread']&&_0xdbb27c[0x1]['commentThread'][_0x3d5e('0xa8')]?null:_0xdbb27c:null;}}[_0x3d5e('0x84')](_0x44f826){const _0xde96c6=Array[_0x3d5e('0x141')](_0x44f826),_0xaae951=this[_0x3d5e('0xbd')]({'skipNotAttached':!0x0}),_0x1e33cf=_0xaae951[_0x3d5e('0x24')](_0x54deb4=>!_0x44f826['has'](_0x54deb4)),_0x1c16e3=new Map(_0xde96c6[_0x3d5e('0x95')](_0x559f0f=>[_0x559f0f,this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x559f0f[_0x3d5e('0x83')],_0x559f0f[_0x3d5e('0x7c')],'join')])),_0x2d80de=new Map(_0xaae951[_0x3d5e('0x95')](_0x5cfd36=>[_0x5cfd36,_0x5cfd36['getRanges']()]));for(let _0x5470ab=0x0;_0x5470ab<_0xde96c6[_0x3d5e('0xa8')];_0x5470ab++){if(_0x1d6d8a(this,_0xde96c6[_0x5470ab],_0xde96c6,_0x5470ab+0x1))return!0x0;}for(let _0x77db64=0x0;_0x77db64<_0xde96c6[_0x3d5e('0xa8')];_0x77db64++){if(_0x1d6d8a(this,_0xde96c6[_0x77db64],_0x1e33cf,0x0))return!0x0;}return!0x1;function _0x1d6d8a(_0x4cb924,_0x215e25,_0x25919a,_0x5b0b04){for(let _0x4119ab=_0x5b0b04;_0x4119ab<_0x25919a[_0x3d5e('0xa8')];_0x4119ab++){const _0x215cbc=_0x25919a[_0x4119ab];if(_0x215cbc[_0x3d5e('0x83')]!==_0x215e25[_0x3d5e('0x83')]||_0x215cbc[_0x3d5e('0xb9')]['id']!==_0x215e25['author']['id']||_0x215cbc[_0x3d5e('0x7c')]!==_0x215e25['subType'])continue;if(!Ut(_0x215e25,_0x215cbc))continue;const _0x4fd9b2=_0x1c16e3[_0x3d5e('0x105')](_0x215e25),_0x14d1b8=_0x2d80de[_0x3d5e('0x105')](_0x215e25),_0x80a485=_0x2d80de[_0x3d5e('0x105')](_0x215cbc),_0x3ac3f2=_0x215e25[_0x3d5e('0x9c')]&&_0x215e25['commentThread'][_0x3d5e('0xa8')],_0x33f318=_0x215cbc['commentThread']&&_0x215cbc[_0x3d5e('0x9c')]['length'];if(!_0x3ac3f2&&_0x4fd9b2(_0x80a485,_0x14d1b8))return _0x4cb924[_0x3d5e('0x4e')](_0x215cbc,_0x215e25),_0x2d80de[_0x3d5e('0xf5')](_0x215e25),!0x0;if(!_0x33f318&&_0x4fd9b2(_0x14d1b8,_0x80a485))return _0x4cb924[_0x3d5e('0x4e')](_0x215e25,_0x215cbc),_0x2d80de['delete'](_0x215cbc),!0x0;}return!0x1;}}[_0x3d5e('0x4e')](_0x58a50a,_0x401b89){if(_0x58a50a[_0x3d5e('0xb7')])for(const _0x11630b of _0x401b89['getRanges']())_0x58a50a['addRange'](_0x11630b);else{const _0x37711c=_0x401b89[_0x3d5e('0x97')]()['end'];this['_setSuggestionRange'](_0x58a50a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x58a50a[_0x3d5e('0x97')]()[_0x3d5e('0x9d')],_0x37711c));}_0x401b89[_0x3d5e('0xa4')]();}}class Bt{constructor(_0x373ea7){this[_0x3d5e('0x7b')]=_0x373ea7,this[_0x3d5e('0x11c')]=_0x373ea7['model'],this[_0x3d5e('0xeb')]=new Map(),this[_0x3d5e('0xa2')]=new Map(),this[_0x3d5e('0x127')]();}[_0x3d5e('0x88')](_0x1980cc,_0x31a713,_0xe5143,_0xbaff65,_0x5d4f77,_0xcdc590){return new _0x439cc9(this[_0x3d5e('0x11c')],{'type':_0x1980cc,'subType':_0x31a713,'id':_0xe5143,'author':_0xbaff65,'creator':_0xbaff65,'attributes':_0x5d4f77,'onAttributesChange':_0xcdc590,'onAccept':(..._0x3e7c3a)=>this[_0x3d5e('0xb')](_0x1980cc,_0x31a713,_0x3d5e('0x3c'))(..._0x3e7c3a),'onDiscard':(..._0x509e56)=>this['getSuggestionCallback'](_0x1980cc,_0x31a713,'discard')(..._0x509e56)});}[_0x3d5e('0x2f')](_0x44eafe,_0x29fd92,_0x5bacf1,_0x2808cf){const _0x40110f=_0x44eafe+':'+_0x29fd92+':'+_0x5bacf1;this[_0x3d5e('0xeb')][_0x3d5e('0xdb')](_0x40110f,_0x2808cf);}[_0x3d5e('0xb')](_0x507f13,_0x323b20,_0x1701b9){const _0x243b63=_0x507f13+':'+_0x323b20+':'+_0x1701b9;return this['_customCallbacks'][_0x3d5e('0x105')](_0x243b63)||this[_0x3d5e('0xa2')][_0x3d5e('0x105')](_0x507f13+':'+_0x1701b9);}['_registerDefaultCallbacks'](){const _0x32e84f=()=>!0x1,_0x476090=_0x21a754=>{_0x21a754['sort']((_0x367f56,_0x234b36)=>_0x367f56[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x234b36[_0x3d5e('0x9d')])?0x1:-0x1),this[_0x3d5e('0x11c')]['change'](_0x190af9=>{for(const _0x1afe32 of _0x21a754){let _0x2ba759;_0x2ba759=_0x1afe32[_0x3d5e('0x44')][_0x3d5e('0x72')]&&_0x1afe32['end'][_0x3d5e('0x10')]==_0x1afe32[_0x3d5e('0x9d')][_0x3d5e('0x74')]?_0x190af9['createSelection'](_0x1afe32[_0x3d5e('0x9d')]['nodeAfter'],'on'):_0x190af9[_0x3d5e('0x20')](_0x1afe32),this['_model'][_0x3d5e('0x4f')](_0x2ba759,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x716374=(_0x52ac8a,_0x174e07)=>{this[_0x3d5e('0x11c')][_0x3d5e('0x100')](_0x19d1df=>{const {commandName:_0x2cf16e,commandParams:_0x120d94=[]}=_0x174e07,_0x21aa56=_0x52ac8a['map'](_0x2eb7ef=>(Mt(_0x2eb7ef)&&(_0x2eb7ef=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2eb7ef['end'])),_0x2eb7ef))['filter'](_0x18e994=>_0x3d5e('0x6b')!==_0x18e994[_0x3d5e('0x78')][_0x3d5e('0x104')]);if(_0x21aa56[_0x3d5e('0xa8')]<0x1)return;const _0xc6bdf5=Array[_0x3d5e('0x141')](this[_0x3d5e('0x11c')]['document']['selection'][_0x3d5e('0x119')]())[_0x3d5e('0x95')](_0x4d4c24=>_0x43231c[_0x3d5e('0x3e')](_0x4d4c24));_0x19d1df['setSelection'](_0x21aa56);for(const _0x178259 of this[_0x3d5e('0x7b')][_0x3d5e('0x143')][_0x3d5e('0x143')]())_0x178259[_0x3d5e('0xa7')]();_0x120d94[_0x3d5e('0xc1')]({'forceDefaultExecution':!0x0}),this[_0x3d5e('0x7b')]['execute'](_0x2cf16e,..._0x120d94);const _0x25fd9e=_0xc6bdf5[_0x3d5e('0x24')](_0x3fc1ad=>_0x3d5e('0x6b')!=_0x3fc1ad['root']['rootName']);_0x25fd9e[_0x3d5e('0xa8')]>0x0&&_0x19d1df[_0x3d5e('0x3')](_0x25fd9e);for(const _0x5a0551 of _0xc6bdf5)_0x5a0551[_0x3d5e('0xd0')]();});},_0x339749=(_0xe4c0db,_0x3efed9)=>0x1==_0xe4c0db[_0x3d5e('0xa8')]&&0x1==_0x3efed9[_0x3d5e('0xa8')]&&_0xe4c0db[0x0][_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x3efed9[0x0]['start']),_0x220498=(_0x269e75,_0x502e5b,_0x1c0903,_0x47b777)=>xt(_0x269e75,_0x502e5b,_0x1c0903,_0x47b777,this['_model'])?[_0x269e75,_0x502e5b]:xt(_0x502e5b,_0x269e75,_0x47b777,_0x1c0903,this[_0x3d5e('0x11c')])?[_0x502e5b,_0x269e75]:null;this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x6'),_0x32e84f),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x102'),_0x476090),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('insertion:join',_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('insertion:chain',_0x220498),this[_0x3d5e('0xa2')]['set'](_0x3d5e('0x93'),_0x476090),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x45'),_0x32e84f),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('deletion:join',_0x339749),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x10f'),_0x220498),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x1f'),_0x716374),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('formatInline:discard',_0x32e84f),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x98'),_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0xe9'),_0x32e84f),this[_0x3d5e('0xa2')]['set'](_0x3d5e('0x3b'),_0x716374),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x86'),_0x32e84f),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x5c'),_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x54'),_0x32e84f);}}function _t(_0x3af93b,_0x415dae,_0x1738a8){for(const _0x510c75 of _0x415dae['parent'][_0x3d5e('0xd')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x510c75[_0x3d5e('0x78')]==_0x510c75)return!0x1;if(!_0x1738a8[_0x3d5e('0xa3')](_0x510c75))return!0x1;if(_0x3af93b[_0x3d5e('0x75')](_0x510c75)||_0x3af93b[_0x3d5e('0x12b')](_0x510c75))return!0x0;}return!0x1;}function Mt(_0x27714e){return _0x27714e[_0x3d5e('0x44')][_0x3d5e('0x10')]==_0x27714e[_0x3d5e('0x9d')]['nodeAfter']&&_0x27714e[_0x3d5e('0x44')][_0x3d5e('0x9e')];}function $t(_0x26cdd6,_0x4e6d04,_0x53fdc6,_0x2f1d01){const _0x374c7a=_0x58f6e6=>!_0x58f6e6[_0x3d5e('0xed')]['is']('$textProxy')&&!_0x2f1d01[_0x3d5e('0x75')](_0x58f6e6[_0x3d5e('0xed')]),_0x3587e3=_0x26cdd6[_0x3d5e('0x9d')][_0x3d5e('0x128')](_0x374c7a),_0x48e20e=_0x26cdd6[_0x3d5e('0x44')][_0x3d5e('0x128')](_0x374c7a,{'direction':_0x3d5e('0x69')});return(!_0x26cdd6[_0x3d5e('0x9d')][_0x3d5e('0x3d')](_0x3587e3)||!_0x26cdd6[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x48e20e))&&(_0x3587e3[_0x3d5e('0xb1')](_0x48e20e)?_0x53fdc6[_0x3d5e('0x62')](_0x4e6d04,{'range':_0x53fdc6[_0x3d5e('0xee')](_0x3587e3,_0x48e20e)}):_0x53fdc6['removeMarker'](_0x4e6d04),!0x0);}function Nt(_0x38e79b){return _0x544d40(_0x38e79b);}function Rt(_0x4855fa){const _0x5e53ba=_0x4855fa['start'][_0x3d5e('0x74')];return _0x5e53ba&&_0x5e53ba['is'](_0x3d5e('0x56'));}function jt(_0x1e151f,_0x14ba7e){const _0x20bde3=_0x14ba7e[_0x3d5e('0x42')]['isObject'](_0x1e151f)||_0x14ba7e[_0x3d5e('0x42')][_0x3d5e('0x107')](_0x1e151f);return _0x14ba7e[_0x3d5e('0xee')](_0x14ba7e[_0x3d5e('0x19')](_0x1e151f,'before'),_0x20bde3?_0x14ba7e[_0x3d5e('0x133')](_0x1e151f):_0x14ba7e[_0x3d5e('0x19')](_0x1e151f,_0x3d5e('0x44')));}function xt(_0x448dff,_0x1c7fc7,_0x2804e6,_0x55590d,_0x55eb4e){if(!Ut(_0x448dff,_0x1c7fc7))return!0x1;if(_0x2804e6[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x55590d['start']))return!0x0;if(_0x448dff[_0x3d5e('0x83')]!=_0x1c7fc7[_0x3d5e('0x83')])return!0x1;if(!_0x2804e6[_0x3d5e('0x44')][_0x3d5e('0x139')](_0x55590d[_0x3d5e('0x9d')]))return!0x1;const _0x215369=_0x55eb4e[_0x3d5e('0xee')](_0x2804e6[_0x3d5e('0x44')],_0x55590d['start'])['getWalker']();for(const _0x335f2d of _0x215369)if([_0x3d5e('0x138'),_0x3d5e('0x1c')]['includes'](_0x335f2d[_0x3d5e('0x83')])&&_0x55eb4e[_0x3d5e('0x42')]['isLimit'](_0x335f2d[_0x3d5e('0xed')]))return!0x1;return!0x0;}function Ut(_0x3c91bb,_0x372e02){return!(!_0x3c91bb[_0x3d5e('0x38')]||!_0x372e02[_0x3d5e('0x38')])&&_0x170aad(_0x3c91bb['attributes'],_0x372e02[_0x3d5e('0xd3')]);}function Ot(_0x3dfceb,_0x5c5093){const _0x2ad104=Et(_0x3dfceb[_0x3d5e('0xd3')]),_0x288906=Et(_0x5c5093);if(!_0x3dfceb['_isDataLoaded'])return!0x1;for(const _0x893135 of Object[_0x3d5e('0xe2')](_0x288906))if(!_0x170aad(_0x2ad104[_0x893135],_0x288906[_0x893135]))return!0x1;return!0x0;}function Et(_0x2ab307){const _0x28113b=Object[_0x3d5e('0x49')]({},_0x2ab307);return delete _0x28113b[_0x3d5e('0x109')],delete _0x28113b[_0x3d5e('0x13d')],_0x28113b;}
23
+ const _0x6e61=['_saved','applyOperation','track-changes-suggestion-not-found','value','discard','_joinWithAdjacentSuggestions','forward','_refreshSuggestionsChain','document','remove','getNearestSelectionRange','name','trackChanges','splitPosition','_commentsRepository','suggestion-type','config','addMarker:suggestion:formatBlock','consume','formatInline:','getChangedMarkers','from','commands','isIntersectingWithRange','markers','sort','removeMarker','map','marker-count','selection','clear','ready','_editor','never','toViewElement','parent','_getExternalAuthor','markerReady','containsPosition','differ','adapter','suggestionLoaded','for','formatInline','data','acceptSelectedSuggestions','addMarker','isObject','_addThreadToSuggestion','formatGroupId','isSelectable','discardSuggestion','isRemovable','get','formatInline:discard','isNextTo','mapper','getUser','_updateSuggestionData','isCollapsed','_onDiscard','isBefore','_customCallbacks','markInlineFormat','split','suggestionUnloaded','isExternal','addComment','set','pluginName','_createSuggestion','isMultiRange','fetchCommentThread','after','formatInline:join','_breakSuggestionMarker','commentThread','enableReadOnlyMode','hasComments','_mergeNestedSuggestions','multi','getRanges','markerToHighlight','discardAllSuggestions','dataReady','lowest','createdAt','_suggestionState','buildSuggestion','unbindElementFromMarkerName','consumable','removeComment','isAfter','removed','insertion:','change','includes','dataToMarker','getChanges','containsRange','error-saving-suggestion-data-suggestion-discarded','addSuggestionData','containerElement','isUndo','filter','track-changes-suggestion-data-mismatch','change:data','ck-suggestion-marker','_cutOutSuggestionMarker','isAtStart','markerToData','getDifference','_defaultCallbacks','_checkSuggestionCorrectness','deletion:','acceptSuggestion','dataDowncast','deletion:join','getAllAdjacentSuggestions','createElement','insertion:join','createRangeIn','define','low','_suggestionFactory','editingDowncast','element','clone','containsRangeInObject','insertion','plugins','addRange','author','isLimit','rethrowUnexpectedError','isInsideObject','length','addMarkerName','insertContent','_enabledCommands','insertion:discard','_descriptionFactory','suggestion:','deletion','enqueueChange','getFirstRange','add','discardSelectedSuggestions','elementStart','newRange','change:activeMarkers','track-changes-adapter-already-set','backward','range','ck-suggestion-marker-formatBlock','updateSuggestion','type','join','values','rejected','deleteContent','formatBlock:accept','tablePasteChainId','getMultiRangeId','ck-suggestion-marker--active','$graveyard','getShiftedBy','default','_handleNewSuggestionMarker','getSuggestionCallback','setTo','has','formatBlock:','ck-suggestion-marker-','_trackFormatChanges','detach','some','showSuggestionHighlights','highest','deletion:accept','root','formatBlock','TrackChangesEditing','_joinSuggestions','_getAuthorFromId','editor','isTouching','group','_suggestions','unbind','_rangeIsInLocalUserInsertion','move','data-suggestion','$marker','markMultiRangeInsertion','removeClass','addCommentThread','open','getLastMatchingPosition','howMany','insertion:accept','isOwn','getIntersection','@external','Users','change:_saved','markBlockFormat','track-changes-user-not-found','moveTargetPosition','rootName','activeMarkers','item','registerPostFixer','external:','skipNestingCheck','getFirstMarker','markDeletion','registerCustomCallback','isEqual','getSuggestions','push','addClass','$textProxy','setSelection','createPositionBefore','_removeSuggestion','getAncestors','trackChangesCommand','oldRange','substr','catch','isInContent','writer','CommentsRepository','_splitMarkerName','getSuggestion','markerNameToElements','insert','upcast','isAtEnd','collaboration.channelId','assign','splice','isBlock','formatBlock:join','markMultiRangeDeletion','start','trackChanges.mergeNestedSuggestions','_getSuggestionData','high','originalSuggestionId','previous','_isForcedDefaultExecutionBlock','markerName','stop','accept','_setSuggestionData','_findSuggestions','attributes','stopListening','subType','elementToElement','markInsertion','position','removeMarkers','addHighlight','_setSuggestionRange','_addSuggestionMarker','locale','model','bindElementToMarker','targetPosition','createSelection','size','schema','next','conversion','end','containsItem','fire','removeAttribute','forceDefaultExecution','creator','nodeBefore','PendingActions','deletion:chain','execute','notReady','updateMarker','deletion:discard','trackChanges.trackFormatChanges','options','batch','nodeAfter','suggestionChanged','hasCommentThread','_adapter','_isDataLoaded','listenTo','_model','createRange','enableCommand','multipleBlocks','commandName','PENDING_ACTION_SUGGESTION','hasSuggestion','markMultiRangeBlockFormat','createPositionAt','addMarker:suggestion','always','getAttribute','getRange','getCustomProperty','then','suggestion','delete','every','authoredAt','chain'];(function(_0x49947a,_0x6e61da){const _0x5b1762=function(_0x4a4410){while(--_0x4a4410){_0x49947a['push'](_0x49947a['shift']());}};_0x5b1762(++_0x6e61da);}(_0x6e61,0x199));const _0x5b17=function(_0x49947a,_0x6e61da){_0x49947a=_0x49947a-0x0;let _0x5b1762=_0x6e61[_0x49947a];return _0x5b1762;};import{Plugin as _0x7b1b35,PendingActions as _0x501dde}from'ckeditor5/src/core';import{LiveRange as _0x15a817}from'ckeditor5/src/engine';import{CKEditorError as _0xa64f77,uid as _0x56fed8,priorities as _0x56c715,logWarning as _0xfaa372}from'ckeditor5/src/utils';import{toWidget as _0x39994b}from'ckeditor5/src/widget';import{Users as _0x52744d,hashObject as _0x15e5aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x5d7823 from'./commands/trackchangescommand';import _0x334995 from'./commands/acceptsuggestioncommand';import _0xd52769 from'./commands/discardsuggestioncommand';import _0x3616b1 from'./commands/executeonallsuggestionscommand';import _0x55e475 from'./commands/executeonselectedsuggestionscommand';import _0x45f923 from'./suggestion';import _0x478975 from'./suggestiondescriptionfactory';import _0x4d5072 from'./integrations/aiassistant';import _0x60c364 from'./integrations/alignment';import _0x3e9c7b from'./integrations/basicstyles';import _0x596393 from'./integrations/blockquote';import _0x148b1e from'./integrations/ckbox';import _0x1908aa from'./integrations/codeblock';import _0x424ac6 from'./integrations/comments';import _0x3e9352 from'./integrations/deletecommand';import _0x14333f from'./integrations/documentlist';import _0x5b1dfb from'./integrations/entercommand';import _0x1fec43 from'./integrations/findandreplace';import _0x13d5e8 from'./integrations/font';import _0x1480ef from'./integrations/formatpainter';import _0x5e5094 from'./integrations/heading';import _0x1ffa39 from'./integrations/highlight';import _0x4bc78f from'./integrations/horizontalline';import _0x1f2deb from'./integrations/htmlembed';import _0x34990a from'./integrations/image';import _0x3ab1aa from'./integrations/imagereplace';import _0xdcfa4f from'./integrations/importword';import _0x1a1c17 from'./integrations/indent';import _0x512c59 from'./integrations/inputcommand';import _0x14c66b from'./integrations/link';import _0x2b746a from'./integrations/list';import _0x3d9274 from'./integrations/listproperties';import _0x51d867 from'./integrations/mediaembed';import _0x44b906 from'./integrations/mention';import _0x348b7e from'./integrations/pagebreak';import _0x340f7d from'./integrations/paragraph';import _0x33d288 from'./integrations/removeformat';import _0x1145c7 from'./integrations/restrictededitingmode';import _0x30a44a from'./integrations/shiftentercommand';import _0x543054 from'./integrations/standardeditingmode';import _0x2bfc8a from'./integrations/style';import _0x41a7ff from'./integrations/table';import _0x2bf489 from'./integrations/tablemergesplit';import _0x77440a from'./integrations/tableheadings';import _0x391e4d from'./integrations/tableclipboard';import _0xc40d1c from'./integrations/tablecolumnresize';import _0x4c1c3b from'./integrations/template';import _0x191af6 from'./integrations/tableofcontents';import _0xc9ac76 from'./integrations/title';import _0x178297 from'./integrations/undo';import{getTranslation as _0x836558}from'./utils/common-translations';import _0x20b67a from'./integrations/tablecaption';import _0x1449db from'./integrations/documentlistproperties';import _0x59797d from'./integrations/tableproperties';import{isEqual as _0x326433}from'lodash-es';export default class p extends _0x7b1b35{static get['requires'](){return[_0x5b17('0x8f'),_0x52744d,_0x501dde,_0x4d5072,_0x60c364,_0x3e9c7b,_0x596393,_0x148b1e,_0x1908aa,_0x424ac6,_0x3e9352,_0x14333f,_0x1449db,_0x5b1dfb,_0x1fec43,_0x13d5e8,_0x1480ef,_0x5e5094,_0x1ffa39,_0x4bc78f,_0x1f2deb,_0x34990a,_0x3ab1aa,_0xdcfa4f,_0x1a1c17,_0x512c59,_0x14c66b,_0x2b746a,_0x3d9274,_0x51d867,_0x44b906,_0x348b7e,_0x340f7d,_0x33d288,_0x1145c7,_0x30a44a,_0x543054,_0x2bfc8a,_0x41a7ff,_0x2bf489,_0x77440a,_0x20b67a,_0x391e4d,_0xc40d1c,_0x191af6,_0x59797d,_0x4c1c3b,_0xc9ac76,_0x178297];}static get[_0x5b17('0x12a')](){return _0x5b17('0x5c');}constructor(_0x351749){function _0x404d74(_0x5c428b){return _0x5c428b[_0x5b17('0x100')](_0x5194b1=>String['fromCharCode'](_0x5194b1))['join']('');}super(_0x351749),this[_0x5b17('0x129')]('activeMarkers',[]),this['on'](_0x5b17('0x3c'),(_0x28da88,_0x251135,_0x36c08c,_0x46ca08)=>{this[_0x5b17('0xd1')][_0x5b17('0x5')](()=>{for(const _0x207c7f of[..._0x46ca08,..._0x36c08c])this[_0x5b17('0xd1')][_0x5b17('0xfd')][_0x5b17('0x51')](_0x207c7f)&&_0x351749['editing']['reconvertMarker'](_0x207c7f);});}),this[_0x5b17('0x33')]=new _0x478975(this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0xb8')],this[_0x5b17('0x5f')][_0x5b17('0xb2')]),this['_adapter']=null,this['_suggestionFactory']=new Bt(this[_0x5b17('0x5f')]),this[_0x5b17('0x62')]=new Map(),this[_0x5b17('0xf3')]=_0x351749[_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x8f')),this['_enabledCommands']=new Set(),this['_model']=this[_0x5b17('0x5f')]['model'],this[_0x5b17('0x13c')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x351749[_0x5b17('0xf5')]['define'](_0x5b17('0xc8'),_0x5b17('0x4d')),this[_0x5b17('0x54')]=_0x351749[_0x5b17('0xf5')]['get'](_0x5b17('0xc8')),_0x351749[_0x5b17('0xf5')][_0x5b17('0x20')](_0x5b17('0x9d'),!0x0),this[_0x5b17('0x134')]=_0x351749[_0x5b17('0xf5')][_0x5b17('0x11a')]('trackChanges.mergeNestedSuggestions'),this[_0x5b17('0x89')]=new _0x5d7823(_0x351749,this[_0x5b17('0x31')]),this[_0x404d74([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x404d74([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x38]);}['init'](){const _0x404ece=this['editor'];_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x23'))[_0x5b17('0x137')]({'model':_0x5b17('0xe0'),'view':_0x30541f=>{const {id:_0x7d64,type:_0x562528}=this[_0x5b17('0x90')](_0x30541f[_0x5b17('0xa3')]),_0x558239=['ck-suggestion-marker',_0x5b17('0x53')+_0x562528];let _0x5550a1=0xbb8;return this[_0x5b17('0x78')][_0x5b17('0x6')](_0x30541f[_0x5b17('0xa3')])&&(_0x558239[_0x5b17('0x82')](_0x5b17('0x4a')),_0x5550a1=0xbc2),_0x5b17('0x35')==_0x562528&&(_0x5550a1+=0x5),{'classes':_0x558239,'attributes':{'data-suggestion':_0x7d64},'priority':_0x5550a1};}}),_0x404ece[_0x5b17('0xba')]['for']('dataDowncast')['add'](_0x583efd=>{_0x583efd['on'](_0x5b17('0xda'),(_0x3d8a88,_0x1a3605,_0x48fdea)=>{if(!_0x48fdea[_0x5b17('0xc9')][_0x5b17('0x57')])return;const _0x502c80=_0x1a3605[_0x5b17('0x79')];if(!_0x502c80)return;const _0x92bfc4=_0x48fdea[_0x5b17('0x11d')][_0x5b17('0x107')](_0x502c80);_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')]['isObject'](_0x502c80)&&_0x92bfc4&&!_0x92bfc4['getCustomProperty']('widget')&&_0x92bfc4['is'](_0x5b17('0xc'))&&_0x39994b(_0x92bfc4,_0x48fdea['writer']);},{'priority':_0x5b17('0x9f')});}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x1a'))[_0x5b17('0x137')]({'model':_0x5b17('0xe0'),'view':(_0x1e0c1a,_0x25f82b)=>{if(!_0x25f82b[_0x5b17('0xc9')]['showSuggestionHighlights'])return null;const {type:_0x427d58}=this[_0x5b17('0x90')](_0x1e0c1a[_0x5b17('0xa3')]);return{'classes':[_0x5b17('0x11'),_0x5b17('0x53')+_0x427d58],'priority':0xbb8};}});const _0x4aaa93=({showActiveMarkers:_0x4c6911=!0x0}={})=>(_0x43caac,_0x2f487a,_0x5815e2)=>{if(!_0x2f487a[_0x5b17('0x79')])return;if(_0x2f487a[_0x5b17('0x79')]['is'](_0x5b17('0x102')))return void _0x5815e2[_0x5b17('0x0')]['consume'](_0x2f487a[_0x5b17('0x79')],_0x43caac[_0x5b17('0xf0')]);const _0x56e0a1=_0x5815e2[_0x5b17('0x11d')][_0x5b17('0x107')](_0x2f487a[_0x5b17('0x79')]);if(!(_0x2f487a['item']['is'](_0x5b17('0x24'))&&_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')][_0x5b17('0x99')](_0x2f487a[_0x5b17('0x79')])&&!_0x56e0a1[_0x5b17('0xde')]('addHighlight')))return;const {id:_0x363e48}=this[_0x5b17('0x90')](_0x2f487a[_0x5b17('0xa3')]);_0x5815e2['writer'][_0x5b17('0x83')]([_0x5b17('0x11'),_0x5b17('0x40')],_0x56e0a1),_0x5815e2[_0x5b17('0x8e')]['setAttribute']('data-suggestion',_0x363e48,_0x56e0a1),_0x5815e2[_0x5b17('0x11d')][_0x5b17('0xb4')](_0x56e0a1,_0x2f487a[_0x5b17('0xa3')]),_0x4c6911&&(this[_0x5b17('0x78')][_0x5b17('0x6')](_0x2f487a[_0x5b17('0xa3')])?_0x5815e2[_0x5b17('0x8e')][_0x5b17('0x83')](_0x5b17('0x4a'),_0x56e0a1):_0x5815e2[_0x5b17('0x8e')][_0x5b17('0x69')](_0x5b17('0x4a'),_0x56e0a1));for(const _0x13b3e3 of _0x404ece[_0x5b17('0xb3')][_0x5b17('0x1f')](_0x2f487a[_0x5b17('0x79')])['getItems']())_0x5815e2[_0x5b17('0x0')][_0x5b17('0xf7')](_0x13b3e3,_0x43caac[_0x5b17('0xf0')]);_0x5815e2[_0x5b17('0x0')][_0x5b17('0xf7')](_0x2f487a[_0x5b17('0x79')],_0x43caac['name']);};_0x404ece['conversion'][_0x5b17('0x10f')](_0x5b17('0x1a'))[_0x5b17('0x38')](_0x16df40=>{_0x16df40['on']('addMarker:suggestion:formatBlock',(_0x4b8a8f,_0x4218f2,_0x77f55d)=>{_0x77f55d[_0x5b17('0xc9')]['showSuggestionHighlights']&&_0x4aaa93({'showActiveMarkers':!0x1})(_0x4b8a8f,_0x4218f2,_0x77f55d);},{'priority':_0x5b17('0x58')});}),_0x404ece['conversion']['for'](_0x5b17('0x1a'))[_0x5b17('0x14')]({'model':'suggestion','view':(_0x1e0b31,_0x10f53a)=>_0x10f53a[_0x5b17('0xc9')]['showSuggestionHighlights']?null:{'group':_0x5b17('0xe0'),'name':_0x1e0b31[_0x5b17('0x8b')](0xb)}}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x94'))[_0x5b17('0xab')]({'view':{'name':_0x5b17('0xe0'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c8099,{writer:_0x11508b})=>{let _0x30b901=_0x5b17('0x34')+_0x1c8099[_0x5b17('0xdc')](_0x5b17('0xf4'))+':'+_0x1c8099[_0x5b17('0xdc')]('id');return _0x1c8099['getAttribute']('marker-count')&&(_0x30b901+=':'+_0x1c8099[_0x5b17('0xdc')](_0x5b17('0x101'))),_0x11508b[_0x5b17('0x1d')](_0x5b17('0x67'),{'data-name':_0x30b901});}}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x94'))[_0x5b17('0x7')]({'view':_0x5b17('0xe0')}),_0x404ece['conversion'][_0x5b17('0x10f')](_0x5b17('0x23'))[_0x5b17('0x38')](_0x17c3a9=>{_0x17c3a9['on'](_0x5b17('0xf6'),_0x4aaa93(),{'priority':_0x5b17('0x9f')});}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x23'))[_0x5b17('0x38')](_0x295765=>{_0x295765['on']('removeMarker:suggestion:formatBlock',(_0x4280fa,_0x3b2c7f,_0x1cda85)=>{const _0x2264a2=_0x1cda85[_0x5b17('0x11d')][_0x5b17('0x92')](_0x3b2c7f[_0x5b17('0xa3')]);if(_0x2264a2)for(const _0x38b80 of _0x2264a2)_0x38b80[_0x5b17('0xde')](_0x5b17('0xaf'))||(_0x1cda85[_0x5b17('0x8e')][_0x5b17('0x69')]([_0x5b17('0x11'),_0x5b17('0x40'),_0x5b17('0x4a')],_0x38b80),_0x1cda85['writer'][_0x5b17('0xbe')](_0x5b17('0x66'),_0x38b80),_0x1cda85[_0x5b17('0x11d')][_0x5b17('0x13e')](_0x38b80,_0x3b2c7f[_0x5b17('0xa3')]));},{'priority':_0x5b17('0x9f')});}),_0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x7a')](_0x2db72b=>{let _0x216451=!0x1;const _0x12a691=Array['from'](_0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x10c')][_0x5b17('0xf9')]()),_0x4dc0eb=new Set();for(const {name:_0x5a5623,data:_0x2fb93a}of _0x12a691){const {group:_0x1eaf90,type:_0x3c3e56,id:_0x8f9b00}=this[_0x5b17('0x90')](_0x5a5623);if(_0x5b17('0xe0')!==_0x1eaf90)continue;const _0x41d983=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x8f9b00);if(null!=_0x2fb93a[_0x5b17('0x3b')]){'formatInline'==_0x3c3e56&&(_0x216451=_0x216451||$t(_0x2fb93a[_0x5b17('0x3b')],_0x5a5623,_0x2db72b,_0x404ece['model'][_0x5b17('0xb8')]));if(_0x2fb93a[_0x5b17('0x3b')][_0x5b17('0x120')]||_0x5b17('0x4b')==_0x2fb93a['newRange'][_0x5b17('0x5a')][_0x5b17('0x77')]||'formatBlock'==_0x3c3e56&&!Rt(_0x2fb93a['newRange'])||_0x5b17('0x35')==_0x3c3e56&&!(!Mt(_0x5c4602=_0x2fb93a[_0x5b17('0x3b')])&&!function(_0x2ee7d3){return _0x2ee7d3[_0x5b17('0x9c')]['parent']==_0x2ee7d3[_0x5b17('0xbb')][_0x5b17('0xc1')]&&_0x2ee7d3[_0x5b17('0x9c')]['isAtEnd'];}(_0x5c4602)))_0x2db72b[_0x5b17('0xff')](_0x5a5623),_0x216451=!0x0;else{if(!_0x41d983||!_0x41d983[_0x5b17('0x8d')])continue;_0x4dc0eb[_0x5b17('0x38')](_0x41d983);}}}var _0x5c4602;return _0x4dc0eb[_0x5b17('0xb7')]>0x0&&(_0x216451=!!this['_joinWithAdjacentSuggestions'](_0x4dc0eb)||_0x216451),_0x216451;}),_0x404ece[_0x5b17('0xb3')][_0x5b17('0xed')][_0x5b17('0x7a')](_0x5c3427=>{let _0x40c109=!0x1;for(const _0x556451 of _0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x10c')][_0x5b17('0x8')]()){if(_0x5b17('0x93')!=_0x556451[_0x5b17('0x42')])continue;const _0x3f3eea=_0x556451['position'][_0x5b17('0x4c')](_0x556451[_0x5b17('0x2e')]);if(_0x3f3eea[_0x5b17('0x95')])for(const _0x2cce64 of this[_0x5b17('0x62')][_0x5b17('0x44')]()){if(_0x2cce64['isMultiRange']||!_0x2cce64[_0x5b17('0x8d')])continue;if(_0x5b17('0x5b')!=_0x2cce64[_0x5b17('0x42')])continue;const _0x451d06=_0x2cce64[_0x5b17('0x37')]();if(_0x451d06[_0x5b17('0x9c')][_0x5b17('0x108')]!=_0x451d06[_0x5b17('0xbb')][_0x5b17('0x108')]&&_0x451d06[_0x5b17('0xbb')][_0x5b17('0x80')](_0x556451['position'])){const _0x104208=_0x404ece['model'][_0x5b17('0xd2')](_0x451d06[_0x5b17('0x9c')],_0x3f3eea);_0x5c3427[_0x5b17('0xc6')](_0x2cce64[_0x5b17('0x7d')](),{'range':_0x104208}),_0x40c109=!0x0;}}}return _0x40c109;}),_0x404ece[_0x5b17('0xb3')][_0x5b17('0xfd')]['on']('update:suggestion',(_0x32750c,_0x11fa7d,_0x5dc3ae)=>{if(null==_0x5dc3ae){const {id:_0x45fe5f}=this[_0x5b17('0x90')](_0x11fa7d['name']),_0x334c77=this['_suggestions']['get'](_0x45fe5f);_0x334c77&&_0x334c77['addMarkerName'](_0x11fa7d[_0x5b17('0xf0')]);}}),_0x404ece[_0x5b17('0xb3')][_0x5b17('0xed')]['on'](_0x5b17('0x10'),()=>{const _0x27a900=Array[_0x5b17('0xfa')](_0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x10c')]['getChangedMarkers']())[_0x5b17('0xe')](_0x3d6a6d=>_0x5b17('0xe0')===this['_splitMarkerName'](_0x3d6a6d[_0x5b17('0xf0')])[_0x5b17('0x61')]);if(0x0===_0x27a900['length'])return;_0x27a900[_0x5b17('0xfe')]((_0x2084ac,_0x1bb363)=>{const _0x50e2e2=_0x2084ac[_0x5b17('0x111')][_0x5b17('0x8a')],_0x59737e=_0x1bb363[_0x5b17('0x111')][_0x5b17('0x8a')];return null===_0x50e2e2&&null===_0x59737e?0x0:null===_0x50e2e2&&null!==_0x59737e?-0x1:null!==_0x50e2e2&&null===_0x59737e?0x1:_0x50e2e2[_0x5b17('0x9c')]['isBefore'](_0x59737e['start'])?-0x1:0x1;});const _0xa99899=new Set(),_0x59a84b=new Set();for(const {name:_0x2765ce,data:_0xb17479}of _0x27a900){const {id:_0x453b86}=this['_splitMarkerName'](_0x2765ce);if(null===_0xb17479[_0x5b17('0x8a')]){const _0x3c626e=this['_handleNewSuggestionMarker'](_0x2765ce);_0x59a84b[_0x5b17('0x38')](_0x3c626e);}else{const _0x5671a3=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x453b86);null!==_0xb17479[_0x5b17('0x3b')]||_0x5671a3[_0x5b17('0x8d')]?(_0xa99899[_0x5b17('0x38')](_0x5671a3['head']),_0x59a84b['add'](_0x5671a3)):this['_removeSuggestion'](_0x5671a3);}}_0x59a84b[_0x5b17('0xb7')]>0x0&&this['_refreshSuggestionsChain'](_0x59a84b);for(const _0x390cc7 of _0xa99899)this[_0x5b17('0xbd')](_0x5b17('0xcc'),_0x390cc7);}),_0x404ece[_0x5b17('0xb3')]['on'](_0x5b17('0xe6'),(_0x4d9688,_0x131705)=>{const _0x9d3892=_0x131705[0x0];if(!this['_suggestions'][_0x5b17('0xb7')])return;if(!_0x9d3892['isDocumentOperation'])return;if(_0x9d3892[_0x5b17('0xca')][_0x5b17('0xd')]||!_0x9d3892[_0x5b17('0xca')]['isLocal'])return;let _0x402873,_0x2f9e52;switch(_0x9d3892[_0x5b17('0x42')]){case _0x5b17('0x93'):_0x402873=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0xad')]),_0x2f9e52=_0x402873[_0x5b17('0x4c')](_0x9d3892[_0x5b17('0x6d')]);break;case _0x5b17('0x125'):_0x402873=_0x404ece['model'][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0xf2')]),_0x2f9e52=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0x76')]);break;case _0x5b17('0x65'):_0x402873=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0xb5')]),_0x2f9e52=_0x402873[_0x5b17('0x4c')](_0x9d3892['howMany']);break;default:return;}const _0x1bea57=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd2')](_0x402873,_0x2f9e52);_0x404ece[_0x5b17('0xb3')][_0x5b17('0x5')](()=>{for(const {suggestion:_0x218b9c,meta:_0x128891}of this['_findSuggestions'](_0x1bea57)){if(_0x218b9c[_0x5b17('0x12c')])continue;if('formatInline'==_0x218b9c[_0x5b17('0x42')])continue;const _0x4d8284=_0x218b9c['data']&&_0x218b9c[_0x5b17('0x111')]['multipleBlocks'];(_0x5b17('0x5b')!=_0x218b9c[_0x5b17('0x42')]||_0x5b17('0x125')==_0x9d3892[_0x5b17('0x42')]&&!_0x4d8284)&&(_0x128891[_0x5b17('0x26')]||_0x5b17('0x27')==_0x218b9c[_0x5b17('0x42')]&&_0x128891[_0x5b17('0x6f')]||_0x218b9c[_0x5b17('0x37')]()[_0x5b17('0x9')](_0x1bea57)&&this['_breakSuggestionMarker'](_0x218b9c,_0x402873,_0x2f9e52));}});},{'priority':_0x5b17('0x13a')}),_0x404ece['model']['on']('deleteContent',(_0x9c9bc5,_0x1403d7)=>{const _0xa48333=_0x1403d7[0x0],_0x2bbd33=_0x1403d7[0x1];if(_0x2bbd33&&_0x2bbd33[_0x5b17('0xbf')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5b17('0x89')][_0x5b17('0xe8')])return;if(_0xa48333['isCollapsed'])return;const _0x2708df=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')],{start:_0xa0b720,end:_0x154de7}=_0xa48333[_0x5b17('0x37')](),_0x3e1bb0=_0xa0b720[_0x5b17('0xcb')]&&_0x2708df[_0x5b17('0x2b')](_0xa0b720[_0x5b17('0xcb')])?null:_0x2708df[_0x5b17('0xef')](_0xa0b720,_0x5b17('0xeb')),_0x10f73f=_0x154de7['nodeBefore']&&_0x2708df[_0x5b17('0x2b')](_0x154de7[_0x5b17('0xc1')])?null:_0x2708df[_0x5b17('0xef')](_0x154de7,'backward'),_0x1d1833=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd2')](_0x3e1bb0?_0x3e1bb0[_0x5b17('0x9c')]:_0xa0b720,_0x10f73f?_0x10f73f[_0x5b17('0xbb')]:_0x154de7);_0x404ece[_0x5b17('0xb3')][_0x5b17('0x5')](_0x2a4c0c=>{this[_0x5b17('0x7e')](_0x1d1833);const _0x31348e=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')]['getNearestSelectionRange'](_0x1d1833['start']);_0xa48333['is']('documentSelection')?_0x2a4c0c[_0x5b17('0x85')](_0x31348e):_0xa48333[_0x5b17('0x50')](_0x31348e);}),_0x9c9bc5['stop']();},{'priority':_0x56c715['normal']+0xa}),_0x404ece['model']['on'](_0x5b17('0x30'),(_0xe385f1,_0x44d9c9)=>{const _0x46720f=_0x44d9c9[_0x44d9c9[_0x5b17('0x2e')]-0x1];_0x46720f&&_0x46720f[_0x5b17('0xbf')]||this[_0x5b17('0xa2')]||this[_0x5b17('0x89')][_0x5b17('0xe8')]&&(_0x404ece[_0x5b17('0xb3')][_0x5b17('0x5')](()=>{let _0x3172db=_0x404ece[_0x5b17('0xb3')][_0x5b17('0x30')](_0x44d9c9[0x0],_0x44d9c9[0x1],_0x44d9c9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3172db)return;_0xe385f1['return']=_0x3172db[_0x5b17('0x25')]();const _0x5dd833=_0x3172db[_0x5b17('0xbb')][_0x5b17('0xc1')],_0x2c1459=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')];_0x5dd833&&_0x2c1459[_0x5b17('0x99')](_0x5dd833)&&!_0x2c1459[_0x5b17('0x114')](_0x5dd833)&&(_0x3172db=_0x404ece['model'][_0x5b17('0xd2')](_0x3172db[_0x5b17('0x9c')],_0x404ece[_0x5b17('0xb3')]['createPositionAt'](_0x5dd833,_0x5b17('0xbb')))),this[_0x5b17('0xac')](_0x3172db);}),_0xe385f1[_0x5b17('0xa4')]());},{'priority':_0x5b17('0x9f')}),this[_0x5b17('0x5f')]['commands'][_0x5b17('0x38')](_0x5b17('0xf1'),this[_0x5b17('0x89')]),this[_0x5b17('0xd3')](_0x5b17('0xf1'));const _0x8301be=new _0x334995(_0x404ece,this[_0x5b17('0x62')]);_0x404ece[_0x5b17('0xfb')][_0x5b17('0x38')](_0x5b17('0x19'),_0x8301be),this[_0x5b17('0xd3')](_0x5b17('0x19'));const _0x494157=new _0xd52769(_0x404ece,this['_suggestions']);_0x404ece[_0x5b17('0xfb')][_0x5b17('0x38')]('discardSuggestion',_0x494157),this[_0x5b17('0xd3')](_0x5b17('0x118')),_0x404ece[_0x5b17('0xfb')][_0x5b17('0x38')]('acceptAllSuggestions',new _0x3616b1(_0x404ece,_0x8301be,this[_0x5b17('0x62')])),this['enableCommand']('acceptAllSuggestions'),_0x404ece[_0x5b17('0xfb')]['add'](_0x5b17('0x138'),new _0x3616b1(_0x404ece,_0x494157,this[_0x5b17('0x62')])),this[_0x5b17('0xd3')](_0x5b17('0x138')),_0x404ece[_0x5b17('0xfb')]['add']('acceptSelectedSuggestions',new _0x55e475(_0x404ece,_0x8301be,this[_0x5b17('0x62')])),this[_0x5b17('0xd3')](_0x5b17('0x112')),_0x404ece['commands'][_0x5b17('0x38')](_0x5b17('0x39'),new _0x55e475(_0x404ece,_0x494157,this[_0x5b17('0x62')])),this['enableCommand'](_0x5b17('0x39'));const _0x18d6f7=_0x404ece['plugins'][_0x5b17('0x11a')](_0x5b17('0x8f'));this[_0x5b17('0xd0')](_0x18d6f7,_0x5b17('0x128'),(_0x4ad748,{threadId:_0x85d1ec})=>{const _0x262fa2=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x85d1ec);_0x262fa2&&_0x262fa2[_0x5b17('0x131')]&&0x1===_0x262fa2[_0x5b17('0x131')][_0x5b17('0x2e')]&&this[_0x5b17('0x11f')](_0x85d1ec,{'hasComments':!0x0});},{'priority':_0x5b17('0x21')}),this[_0x5b17('0xd0')](_0x18d6f7,_0x5b17('0x1'),(_0x50fdbd,{threadId:_0x3759db})=>{const _0x49c36b=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x3759db);_0x49c36b&&_0x49c36b[_0x5b17('0x131')]&&!_0x49c36b['commentThread'][_0x5b17('0x2e')]&&this[_0x5b17('0x11f')](_0x3759db,{'hasComments':!0x1});},{'priority':_0x5b17('0x21')});}set[_0x5b17('0x10d')](_0x353860){if(this[_0x5b17('0xce')])throw new _0xa64f77(_0x5b17('0x3d'),this);this[_0x5b17('0xce')]=_0x353860;}get['adapter'](){return this['_adapter'];}[_0x5b17('0x81')]({skipNotAttached:_0x5ae53c=!0x1,toJSON:_0x5686f5=!0x1}={}){const _0x3069b9=[];for(const _0x49980d of this['_suggestions'][_0x5b17('0x44')]())_0x5ae53c&&!_0x49980d['isInContent']||_0x3069b9[_0x5b17('0x82')](_0x49980d);return _0x5686f5?_0x3069b9[_0x5b17('0x100')](_0x4bed47=>_0x4bed47['toJSON']()):_0x3069b9;}[_0x5b17('0x91')](_0x558a87){const _0x17e93e=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x558a87);if(!_0x17e93e)throw new _0xa64f77(_0x5b17('0xe7'),this);return _0x17e93e;}[_0x5b17('0xd7')](_0xea33ce){return this[_0x5b17('0x62')][_0x5b17('0x51')](_0xea33ce);}[_0x5b17('0xb')](_0x52843f){const {authorId:_0x143840,id:_0xe2b3bb,attributes:_0x3de891}=_0x52843f,[_0x3ba300,_0x313852]=_0x52843f[_0x5b17('0x42')]['split'](':'),_0x5e7cc5=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0xe2b3bb)||this[_0x5b17('0x12b')](_0x3ba300,_0x313852,_0xe2b3bb,_0x143840,_0x3de891);if(this[_0x5b17('0x115')](_0x5e7cc5),this[_0x5b17('0x17')](_0x5e7cc5,_0x3ba300,_0x313852||null,_0x143840),_0x5e7cc5['createdAt']=_0x52843f[_0x5b17('0x13b')],_0x5e7cc5[_0x5b17('0xcf')]=!0x0,_0x3de891&&_0x3de891[_0x5b17('0x71')]){const _0x3c8e46=_0x3de891[_0x5b17('0x71')],_0x2e8c24=this[_0x5b17('0x109')](_0x3c8e46['authorName']);_0x5e7cc5[_0x5b17('0xe3')]=_0x3c8e46['createdAt'],_0x5e7cc5[_0x5b17('0x2a')]=_0x2e8c24,_0x5e7cc5[_0x5b17('0x127')]=!0x0;}else _0x5e7cc5[_0x5b17('0xe3')]=_0x52843f[_0x5b17('0x13b')];switch(_0x52843f[_0x5b17('0x111')]&&(_0x5e7cc5[_0x5b17('0x111')]=_0x52843f['data']),_0x52843f[_0x5b17('0xa8')]&&(_0x5e7cc5[_0x5b17('0xa8')]=_0x52843f[_0x5b17('0xa8')]),this[_0x5b17('0xce')]&&this['_adapter']['addSuggestion']||(_0x5e7cc5[_0x5b17('0xe5')]=!0x0),this[_0x5b17('0x13c')][_0x5b17('0x11a')](_0x5e7cc5)){case'notReady':this[_0x5b17('0x13c')][_0x5b17('0x129')](_0x5e7cc5,_0x5b17('0x139'));break;case _0x5b17('0x10a'):_0x5e7cc5[_0x5b17('0x8d')]?(this['_refreshSuggestionsChain'](new Set([_0x5e7cc5])),this[_0x5b17('0xea')](new Set([_0x5e7cc5])),this[_0x5b17('0x13c')]['set'](_0x5e7cc5,_0x5b17('0x104')),this[_0x5b17('0xbd')](_0x5b17('0x10e'),_0x5e7cc5)):this[_0x5b17('0x13c')][_0x5b17('0x129')](_0x5e7cc5,_0x5b17('0x3'));}return _0x5e7cc5;}[_0x5b17('0x19')](_0x277e19){this[_0x5b17('0xbf')](()=>{this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0x5')](()=>{for(const _0xf01055 of _0x277e19[_0x5b17('0x1c')]())_0xf01055[_0x5b17('0xa5')]();});});}[_0x5b17('0x118')](_0x5a9312){this['forceDefaultExecution'](()=>{this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0x5')](()=>{for(const _0x52367a of _0x5a9312[_0x5b17('0x1c')]())_0x52367a[_0x5b17('0xe9')]();});});}['enableCommand'](_0x44ec83,_0x2e3547){const _0x91f486=this[_0x5b17('0x5f')]['commands'][_0x5b17('0x11a')](_0x44ec83);if(!_0x91f486)throw new _0xa64f77('track-changes-command-not-found',this,{'commandName':_0x44ec83});this[_0x5b17('0x31')][_0x5b17('0x38')](_0x91f486),_0x2e3547&&_0x91f486['on'](_0x5b17('0xc4'),(_0x597ba1,_0x49cd3b)=>{this['trackChangesCommand'][_0x5b17('0xe8')]&&(this[_0x5b17('0xa2')]||_0x49cd3b[_0x5b17('0x2e')]>0x0&&_0x49cd3b[_0x49cd3b[_0x5b17('0x2e')]-0x1]&&_0x49cd3b[_0x49cd3b[_0x5b17('0x2e')]-0x1]['forceDefaultExecution']||(_0x597ba1['return']=_0x2e3547((..._0x2a84f4)=>_0x91f486[_0x5b17('0xc4')](..._0x2a84f4,{'forceDefaultExecution':!0x0}),..._0x49cd3b),_0x597ba1[_0x5b17('0xa4')]()));},{'priority':_0x5b17('0x9f')});}['forceDefaultExecution'](_0x224ba4){let _0x224de8,_0x375697;const _0xb5dbce=this[_0x5b17('0xa2')];this[_0x5b17('0xa2')]=!0x0;try{_0x224de8=_0x224ba4();}catch(_0x327dee){_0x375697=_0x327dee;}return _0xb5dbce||(this[_0x5b17('0xa2')]=!0x1),_0x375697&&_0xa64f77[_0x5b17('0x2c')](_0x375697,this),_0x224de8;}[_0x5b17('0xac')](_0x4f5eeb,_0x532a52=null,_0x224036={}){if(_0x4f5eeb['isCollapsed'])return null;const _0x41f538=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')]('Users')['me'];for(const {suggestion:_0x46469c,meta:_0x334d13}of this[_0x5b17('0xa7')](_0x4f5eeb,_0x5b17('0x27')))if(_0x334d13['isOwn']){if(!_0x334d13[_0x5b17('0x11c')]){if(_0x334d13['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ot(_0x46469c,_0x224036))continue;return _0x46469c;}if(Ot(_0x46469c,_0x224036))return _0x46469c;this[_0x5b17('0x130')](_0x46469c,_0x4f5eeb[_0x5b17('0x9c')],_0x4f5eeb[_0x5b17('0xbb')]);break;}if(_0x532a52==_0x46469c[_0x5b17('0xaa')]&&Ot(_0x46469c,_0x224036)){const _0xb30507=_0x46469c['getFirstRange']();return _0xb30507[_0x5b17('0x9c')][_0x5b17('0x80')](_0x4f5eeb[_0x5b17('0xbb')])?this[_0x5b17('0xb0')](_0x46469c,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x4f5eeb[_0x5b17('0x9c')],_0xb30507[_0x5b17('0xbb')])):this[_0x5b17('0xb0')](_0x46469c,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0xb30507['start'],_0x4f5eeb[_0x5b17('0xbb')])),_0x46469c;}}const _0x4c91d1=_0x56fed8(),_0x2bf1a0=_0x41f538['id'],_0x1a965d=_0x532a52?_0x5b17('0x4')+_0x532a52:_0x5b17('0x27'),_0x3512ba=this[_0x5b17('0xa6')]({'id':_0x4c91d1,'type':_0x1a965d,'createdAt':new Date(),'authorId':_0x2bf1a0,'attributes':_0x224036});return this['_addSuggestionMarker'](_0x1a965d,_0x4c91d1,_0x2bf1a0,_0x4f5eeb),_0x3512ba;}[_0x5b17('0x68')](_0x4f36ec,_0x583ecd=_0x5b17('0x135'),_0xcd0837={}){const _0x1a1d26=this[_0x5b17('0x5f')][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))['me'],_0x29dbf8=this[_0x5b17('0x22')][_0x5b17('0x4f')]('insertion',_0x583ecd,_0x5b17('0x43'));for(const _0x1292ab of this[_0x5b17('0x81')]())if(_0x1292ab[_0x5b17('0x2a')]['id']==_0x1a1d26['id']&&_0x5b17('0x27')==_0x1292ab[_0x5b17('0x42')]&&_0x1292ab['subType']==_0x583ecd&&Ot(_0x1292ab,_0xcd0837)&&(_0x29dbf8(_0x1292ab['getRanges'](),_0x4f36ec)||_0x29dbf8(_0x4f36ec,_0x1292ab[_0x5b17('0x136')]()))){for(const _0x430fd0 of _0x4f36ec)_0x1292ab[_0x5b17('0x29')](_0x430fd0);return _0x1292ab;}for(const {suggestion:_0x47448c,meta:_0x2acdeb}of this[_0x5b17('0xa7')](_0x4f36ec,_0x5b17('0x27'))){if(!_0x2acdeb[_0x5b17('0x6f')])continue;if(!this[_0x5b17('0x134')]&&_0x2acdeb['containsRangeInObject'])continue;if(!Ot(_0x47448c,_0xcd0837))continue;let _0x94fa1e=!0x0;for(const _0x32d987 of _0x47448c[_0x5b17('0x136')]())for(const _0x5a0f33 of _0x4f36ec)if(!_0x32d987[_0x5b17('0x9')](_0x5a0f33)){_0x94fa1e=!0x1;break;}if(_0x94fa1e)return _0x47448c;}const _0x35205b=_0x56fed8(),_0x28f1f4=_0x1a1d26['id'],_0x59de2e=_0x5b17('0x4')+_0x583ecd,_0x4da82f=this[_0x5b17('0xa6')]({'id':_0x35205b,'type':_0x59de2e,'createdAt':new Date(),'authorId':_0x28f1f4,'attributes':_0xcd0837});for(const _0xc39818 of _0x4f36ec)this[_0x5b17('0xb1')](_0x59de2e,_0x35205b,_0x28f1f4,_0xc39818,_0x45f923[_0x5b17('0x49')]());return _0x4da82f;}[_0x5b17('0x124')](_0x2571de,_0x280abc,_0x4c8ebe=null,_0x3e33f4={}){if(_0x4c8ebe=_0x4c8ebe||Nt(_0x280abc),_0x2571de[_0x5b17('0x120')])return null;if(_0x5b17('0x106')===this[_0x5b17('0x54')]){const _0x3ef4eb=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x110'),_0x4c8ebe,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x3ef4eb([_0x2571de],_0x280abc,_0x3e33f4)),null;}const _0x12f2a0=this[_0x5b17('0x5f')][_0x5b17('0x28')]['get'](_0x5b17('0x72'))['me'],_0x5c613b=[];if(_0x5b17('0xdb')!==this[_0x5b17('0x54')])for(const {suggestion:_0x41dc06,meta:_0x4e0556}of this['_findSuggestions'](_0x2571de,_0x5b17('0x27')))_0x4e0556['isOwn']&&!_0x4e0556[_0x5b17('0x2d')]&&_0x5c613b['push'](..._0x41dc06[_0x5b17('0x136')]());const _0x25d7a8=function(_0x4cdd32,_0x2ed783){const _0x28d058=[];for(const _0x2fd030 of _0x2ed783){const _0x58ea01=_0x4cdd32[_0x5b17('0x70')](_0x2fd030);_0x58ea01&&_0x28d058[_0x5b17('0x82')](_0x58ea01);}return _0x28d058;}(_0x2571de,_0x5c613b),_0x1dec6e=function(_0x26907e,_0x551dd1){const _0x245778=[_0x26907e];for(const _0x5c4fcc of _0x551dd1){let _0x147297=0x0;for(;_0x147297<_0x245778['length'];){const _0x1e9241=_0x245778[_0x147297][_0x5b17('0x15')](_0x5c4fcc);_0x245778[_0x5b17('0x98')](_0x147297,0x1,..._0x1e9241),_0x147297+=_0x1e9241[_0x5b17('0x2e')];}}return _0x245778;}(_0x2571de,_0x5c613b);_0x25d7a8[_0x5b17('0x2e')]&&this[_0x5b17('0xd1')]['change'](()=>{for(const _0x16b8e3 of _0x25d7a8){const _0x577bd9=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x110'),_0x4c8ebe,_0x5b17('0xa5'));this[_0x5b17('0xbf')](()=>_0x577bd9([_0x16b8e3],_0x280abc,_0x3e33f4));}});for(const _0x4c4e11 of _0x1dec6e){let _0xb8793d=null,_0x83c963=_0x4c4e11[_0x5b17('0x9c')],_0x2794ca=_0x4c4e11[_0x5b17('0xbb')];for(const {suggestion:_0xe2a7bd,meta:_0x4a01ea}of this[_0x5b17('0xa7')](_0x4c4e11,'formatInline')){if(!_0x4a01ea[_0x5b17('0x6f')])continue;if(_0xe2a7bd['subType']!=_0x4c8ebe)continue;if(!Ot(_0xe2a7bd,_0x3e33f4))continue;const _0x1aecb4=_0xe2a7bd[_0x5b17('0x37')]();if(_0x1aecb4['containsRange'](_0x4c4e11,!0x0))return null;_0x83c963=_0x83c963[_0x5b17('0x122')](_0x1aecb4['start'])?_0x83c963:_0x1aecb4[_0x5b17('0x9c')],_0x2794ca=_0x2794ca[_0x5b17('0x2')](_0x1aecb4[_0x5b17('0xbb')])?_0x2794ca:_0x1aecb4[_0x5b17('0xbb')],_0xb8793d?_0x1aecb4[_0x5b17('0x9c')][_0x5b17('0x122')](_0xb8793d['getFirstRange']()[_0x5b17('0x9c')])?(_0xb8793d['removeMarkers'](),_0xb8793d=_0xe2a7bd):_0xe2a7bd[_0x5b17('0xae')]():_0xb8793d=_0xe2a7bd;}const _0xce4542=this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x83c963,_0x2794ca);if(_0xb8793d)this[_0x5b17('0xb0')](_0xb8793d,_0xce4542);else{const _0xeb4a12=_0x56fed8(),_0x4afc1a=_0x12f2a0['id'];this[_0x5b17('0xa6')]({'id':_0xeb4a12,'type':_0x5b17('0xf8')+_0x4c8ebe,'data':_0x280abc,'createdAt':new Date(),'authorId':_0x4afc1a,'attributes':_0x3e33f4}),this[_0x5b17('0xb1')](_0x5b17('0xf8')+_0x4c8ebe,_0xeb4a12,_0x4afc1a,_0xce4542);}}return null;}[_0x5b17('0x74')](_0x1e4245,_0x45042b,_0x5f38ce=[],_0x3254cc=null,_0x3bc671={}){_0x45042b[_0x5b17('0x116')]||(_0x45042b[_0x5b17('0x116')]=_0x45042b[_0x5b17('0xd5')]),_0x45042b[_0x5b17('0xd4')]=_0x1e4245['is'](_0x5b17('0x3f')),_0x3254cc=_0x3254cc||Nt(_0x45042b);const _0x4a5b78=_0x5f38ce['map'](_0x2fded0=>jt(_0x2fded0,this[_0x5b17('0xd1')])),_0x1966a0=_0x1e4245['is']('range')?_0x1e4245:jt(_0x1e4245,this['_model']);if(_0x5b17('0x106')===this[_0x5b17('0x54')]){const _0x1a0a76=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x3254cc,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x1a0a76([_0x1966a0],_0x45042b,_0x3bc671)),null;}_0x4a5b78['push'](_0x1966a0);let _0x137638=!0x0;for(const _0x12038b of _0x4a5b78)if(!this[_0x5b17('0x64')](_0x12038b)){_0x137638=!0x1;break;}if(_0x137638&&_0x5b17('0xdb')!==this[_0x5b17('0x54')]){const _0x16f0e9=this['_suggestionFactory'][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x3254cc,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x16f0e9([_0x1966a0],_0x45042b,_0x3bc671)),null;}let _0x4b0a86=null,_0x148cd6=_0x1966a0[_0x5b17('0x9c')],_0x1cd0b7=_0x1966a0[_0x5b17('0xbb')];for(const {suggestion:_0x134f17,meta:_0x33f4d4}of this[_0x5b17('0xa7')](_0x1966a0,_0x5b17('0x5b'))){if(!_0x33f4d4['isOwn'])continue;if(_0x33f4d4[_0x5b17('0x11c')]||_0x33f4d4[_0x5b17('0x26')]||_0x33f4d4[_0x5b17('0x2d')])continue;if(_0x134f17[_0x5b17('0x111')]['formatGroupId']!=_0x45042b[_0x5b17('0x116')])continue;if(!Ot(_0x134f17,_0x3bc671))continue;const _0x58331a=_0x134f17['getFirstRange']();if(_0x134f17[_0x5b17('0xaa')]==_0x3254cc){if(_0x58331a[_0x5b17('0x9')](_0x1966a0,!0x0))return null;_0x148cd6=_0x148cd6['isBefore'](_0x58331a[_0x5b17('0x9c')])?_0x148cd6:_0x58331a[_0x5b17('0x9c')],_0x1cd0b7=_0x1cd0b7['isAfter'](_0x58331a[_0x5b17('0xbb')])?_0x1cd0b7:_0x58331a[_0x5b17('0xbb')],_0x4b0a86?_0x58331a[_0x5b17('0x9c')]['isBefore'](_0x4b0a86[_0x5b17('0x37')]()['start'])?(_0x4b0a86[_0x5b17('0xae')](),_0x4b0a86=_0x134f17):_0x134f17[_0x5b17('0xae')]():_0x4b0a86=_0x134f17;}else{const _0x202cd3=_0x1966a0['getIntersection'](_0x58331a);this[_0x5b17('0x12')](_0x134f17,_0x202cd3);}}const _0xfbe6f6=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))['me'],_0xe2335d=_0x56fed8(),_0x2068f5=_0xfbe6f6['id'];if(_0x4b0a86)return this[_0x5b17('0xb0')](_0x4b0a86,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x148cd6,_0x1cd0b7)),_0x4b0a86;{const _0x413df0=this[_0x5b17('0xa6')]({'id':_0xe2335d,'type':'formatBlock:'+_0x3254cc,'data':_0x45042b,'createdAt':new Date(),'authorId':_0x2068f5,'attributes':_0x3bc671});return this[_0x5b17('0xb1')](_0x5b17('0x52')+_0x3254cc,_0xe2335d,_0x2068f5,this[_0x5b17('0xd1')]['createRange'](_0x148cd6,_0x1cd0b7)),_0x413df0;}}[_0x5b17('0xd8')](_0x48e333,_0xabe47a,_0x200a5a=[],_0x358b7b=null,_0x18778c={}){_0xabe47a[_0x5b17('0x116')]||(_0xabe47a['formatGroupId']=_0xabe47a[_0x5b17('0xd5')]);const _0x35d66b=_0x48e333[0x0];_0xabe47a[_0x5b17('0xd4')]=_0x35d66b['is'](_0x5b17('0x3f')),_0x358b7b=_0x358b7b||Nt(_0xabe47a);const _0x1977da=_0x200a5a[_0x5b17('0x100')](_0x3c299c=>jt(_0x3c299c,this['_model'])),_0x3148ee=_0x35d66b['is']('range')?_0x48e333:_0x48e333[_0x5b17('0x100')](_0x3c8b45=>jt(_0x3c8b45,this[_0x5b17('0xd1')]));if(_0x5b17('0x106')===this[_0x5b17('0x54')]){const _0x51024a=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x358b7b,_0x5b17('0xa5'));return this[_0x5b17('0xbf')](()=>_0x51024a(_0x3148ee,_0xabe47a,_0x18778c)),null;}_0x1977da[_0x5b17('0x82')](..._0x3148ee);let _0x49ed82=!0x0;for(const _0x5a41a4 of _0x1977da)if(!this[_0x5b17('0x64')](_0x5a41a4)){_0x49ed82=!0x1;break;}if(_0x49ed82&&_0x5b17('0xdb')!==this[_0x5b17('0x54')]){const _0x1204ff=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x358b7b,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x1204ff(_0x3148ee,_0xabe47a,_0x18778c)),null;}const _0x331aba=this[_0x5b17('0x5f')][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))['me'];for(const _0x51eff5 of this[_0x5b17('0x81')]()){if(_0x51eff5[_0x5b17('0x2a')]['id']!=_0x331aba['id'])continue;if(_0x5b17('0x5b')!=_0x51eff5[_0x5b17('0x42')]||_0x51eff5[_0x5b17('0x111')][_0x5b17('0x116')]!=_0xabe47a[_0x5b17('0x116')])continue;if(!Ot(_0x51eff5,_0x18778c))continue;const _0x2169c7=_0x51eff5['subType']==_0x358b7b;for(let _0x520f18=0x0;_0x520f18<_0x3148ee[_0x5b17('0x2e')];_0x520f18++){const _0x146252=_0x3148ee[_0x520f18];for(const _0x4522ba of _0x51eff5['getMarkers']()){const _0x2fe35a=_0x4522ba[_0x5b17('0xdd')]();if(_0x146252[_0x5b17('0x80')](_0x2fe35a)){_0x2169c7?(_0x3148ee['splice'](_0x520f18,0x1),_0x520f18--):_0x51eff5[_0x5b17('0xff')](_0x4522ba[_0x5b17('0xf0')]);break;}}}}if(0x0==_0x3148ee[_0x5b17('0x2e')])return null;const _0x22a3b5=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x358b7b,_0x5b17('0x43'));for(const _0xca38f0 of this[_0x5b17('0x81')]())if(_0xca38f0[_0x5b17('0x2a')]['id']==_0x331aba['id']&&_0x5b17('0x5b')==_0xca38f0[_0x5b17('0x42')]&&_0xca38f0[_0x5b17('0x111')][_0x5b17('0x116')]==_0xabe47a['formatGroupId']&&_0xca38f0[_0x5b17('0xaa')]==_0x358b7b&&Ot(_0xca38f0,_0x18778c)&&(_0x22a3b5(_0xca38f0[_0x5b17('0x136')](),_0x3148ee)||_0x22a3b5(_0x3148ee,_0xca38f0['getRanges']()))){for(const _0x5452f2 of _0x3148ee)_0xca38f0[_0x5b17('0x29')](_0x5452f2);return _0xca38f0;}const _0x162cca=_0x56fed8(),_0x72e30e=_0x331aba['id'],_0xa67a09=_0x5b17('0x52')+_0x358b7b,_0x21fec8=this['_setSuggestionData']({'id':_0x162cca,'type':_0xa67a09,'data':_0xabe47a,'createdAt':new Date(),'authorId':_0x72e30e,'attributes':_0x18778c});for(const _0x2c2851 of _0x3148ee)this[_0x5b17('0xb1')](_0xa67a09,_0x162cca,_0x72e30e,_0x2c2851,_0x45f923[_0x5b17('0x49')]());return _0x21fec8;}['markDeletion'](_0x35847d,_0x15273c=null,_0x4b272d={}){if(_0x35847d[_0x5b17('0x120')])return null;const _0x27b4b3=this[_0x5b17('0x5f')]['plugins'][_0x5b17('0x11a')](_0x5b17('0x72'))['me'],_0xe84830=new _0x15a817(_0x35847d[_0x5b17('0x9c')],_0x35847d[_0x5b17('0xbb')]);for(const {suggestion:_0x4be3d1,meta:_0x3c44c7}of this[_0x5b17('0xa7')](_0xe84830,_0x5b17('0x27')))if(_0x3c44c7[_0x5b17('0x6f')]&&!_0x3c44c7[_0x5b17('0x11c')]){if(_0x4be3d1[_0x5b17('0x12c')]){const _0x5c81c7=_0x4be3d1[_0x5b17('0x136')]()[_0x5b17('0xe')](_0x3a3eaa=>'$graveyard'!=_0x3a3eaa[_0x5b17('0x5a')][_0x5b17('0x77')]);_0x5c81c7[_0x5b17('0xe2')](_0x47c0fd=>_0xe84830[_0x5b17('0x9')](_0x47c0fd,!0x0))&&_0x4be3d1[_0x5b17('0xe9')]();if(_0x5c81c7[_0x5b17('0x56')](_0x852cb4=>_0x852cb4['containsRange'](_0xe84830,!0x0))){const _0x1a7d0c=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x35'),_0x15273c,_0x5b17('0xa5'));return this[_0x5b17('0xbf')](()=>_0x1a7d0c([_0xe84830],null,_0x4b272d)),null;}}else{const _0x3e04bc=_0xe84830[_0x5b17('0x70')](_0x4be3d1[_0x5b17('0x37')]());null!==_0x3e04bc&&_0x4be3d1[_0x5b17('0x121')]([_0x3e04bc],null,_0x4b272d);}}if(_0xe84830[_0x5b17('0x55')](),_0xe84830[_0x5b17('0x120')]||'$graveyard'==_0xe84830[_0x5b17('0x5a')][_0x5b17('0x77')])return null;let _0xf60b3f=null,_0x3d68d1=_0xe84830[_0x5b17('0x9c')],_0x228cfc=_0xe84830[_0x5b17('0xbb')];const _0x431d98=this[_0x5b17('0xa7')](_0xe84830,_0x5b17('0x35'));for(const {suggestion:_0x468523,meta:_0x4a8a3d}of _0x431d98){const _0x599ff6=this['_model'][_0x5b17('0xd2')](_0x3d68d1,_0x228cfc);if(_0x4a8a3d[_0x5b17('0x6f')]&&(this[_0x5b17('0x134')]||!_0x4a8a3d[_0x5b17('0x26')]&&!_0x4a8a3d[_0x5b17('0x2d')])){if(_0x468523[_0x5b17('0x12c')]){if(!Ot(_0x468523,_0x4b272d))continue;let _0x1fd10=!0x0;for(const _0x210ef5 of _0x468523[_0x5b17('0x136')]()){if(_0x210ef5[_0x5b17('0x9')](_0x599ff6,!0x0))return _0x468523;_0x599ff6['containsRange'](_0x210ef5)||(_0x1fd10=!0x1);}_0x1fd10&&_0x468523[_0x5b17('0xe9')]();}else{const _0x26ae12=_0x468523[_0x5b17('0x37')]();if(_0x26ae12[_0x5b17('0x9')](_0x599ff6,!0x0))return _0x468523;if(!Ot(_0x468523,_0x4b272d)){_0x599ff6[_0x5b17('0x9')](_0x26ae12)?_0x468523[_0x5b17('0xae')]():_0x26ae12[_0x5b17('0x10b')](_0x3d68d1)?_0x3d68d1=_0x26ae12[_0x5b17('0xbb')]:_0x26ae12[_0x5b17('0x10b')](_0x228cfc)&&(_0x228cfc=_0x26ae12[_0x5b17('0x9c')]);continue;}_0x3d68d1=_0x3d68d1[_0x5b17('0x122')](_0x26ae12['start'])?_0x3d68d1:_0x26ae12[_0x5b17('0x9c')],_0x228cfc=_0x228cfc['isAfter'](_0x26ae12['end'])?_0x228cfc:_0x26ae12[_0x5b17('0xbb')],_0x4b272d=Object[_0x5b17('0x97')]({},_0x468523[_0x5b17('0xa8')]),_0xf60b3f?_0x26ae12[_0x5b17('0x9c')][_0x5b17('0x122')](_0xf60b3f[_0x5b17('0x37')]()[_0x5b17('0x9c')])?(_0xf60b3f[_0x5b17('0xae')](),_0xf60b3f=_0x468523):_0x468523[_0x5b17('0xae')]():_0xf60b3f=_0x468523;}}}if(_0xf60b3f)return this[_0x5b17('0xb0')](_0xf60b3f,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x3d68d1,_0x228cfc)),_0xf60b3f;{const _0x13277a=_0x56fed8(),_0x5c785a=this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x3d68d1,_0x228cfc),_0xb20b5a=_0x27b4b3['id'],_0x2642a3=_0x15273c?_0x5b17('0x18')+_0x15273c:_0x5b17('0x35'),_0x4967b2=this[_0x5b17('0xa6')]({'id':_0x13277a,'type':_0x2642a3,'createdAt':new Date(),'authorId':_0xb20b5a,'attributes':_0x4b272d});return this['_addSuggestionMarker'](_0x2642a3,_0x13277a,_0xb20b5a,_0x5c785a),_0x4967b2;}}[_0x5b17('0x9b')](_0x2246be,_0x45b53e=_0x5b17('0x135'),_0x3b62c2={}){const _0x40fd7=this[_0x5b17('0x5f')][_0x5b17('0x28')]['get']('Users')['me'],_0x414a4b=_0x2246be[_0x5b17('0x100')](_0x2c6fa7=>new _0x15a817(_0x2c6fa7[_0x5b17('0x9c')],_0x2c6fa7['end'])),_0x2f10f6=new Set();for(const {suggestion:_0x4788cf,meta:_0x6ee3e}of this['_findSuggestions'](_0x414a4b,_0x5b17('0x27')))_0x6ee3e[_0x5b17('0x6f')]&&!_0x6ee3e[_0x5b17('0x11c')]&&_0x2f10f6['add'](_0x4788cf);for(const _0x500712 of _0x2f10f6)if(_0x500712[_0x5b17('0x12c')]){const _0x3e26e9=_0x500712[_0x5b17('0x136')]();(!_0x500712[_0x5b17('0xa8')]||!_0x500712[_0x5b17('0xa8')]['skipNestingCheck'])&&(_0x3e26e9[_0x5b17('0xe2')](_0x5168df=>_0x414a4b[_0x5b17('0x56')](_0xf1e8ca=>_0xf1e8ca['containsRange'](_0x5168df,!0x0)))&&_0x500712[_0x5b17('0xe9')]());if(_0x414a4b[_0x5b17('0xe2')](_0xcab2bc=>_0x3e26e9[_0x5b17('0x56')](_0xac442e=>_0xac442e[_0x5b17('0x9')](_0xcab2bc,!0x0)))){const _0x5c20eb=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x35'),_0x45b53e,'accept');return this[_0x5b17('0xbf')](()=>_0x5c20eb(_0x2246be,null,_0x3b62c2)),null;}}else{const _0x16da0c=_0x500712[_0x5b17('0x37')]();_0x414a4b[_0x5b17('0x56')](_0x81fa98=>_0x81fa98[_0x5b17('0x9')](_0x16da0c,!0x0))&&_0x500712[_0x5b17('0xe9')]();if(_0x414a4b[_0x5b17('0xe2')](_0x239330=>_0x16da0c['containsRange'](_0x239330,!0x0))){const _0x391c19=this[_0x5b17('0x22')][_0x5b17('0x4f')]('deletion',_0x45b53e,_0x5b17('0xa5'));return this[_0x5b17('0xbf')](()=>_0x391c19(_0x414a4b,null,_0x3b62c2)),null;}}const _0x139ec7=this[_0x5b17('0x22')]['getSuggestionCallback']('deletion',_0x45b53e,'join');let _0x2ff3d2=null;for(const _0x2aa58d of this['getSuggestions']())if(_0x2aa58d[_0x5b17('0x2a')]['id']==_0x40fd7['id']&&_0x2aa58d[_0x5b17('0x8d')]&&'deletion'==_0x2aa58d[_0x5b17('0x42')]&&_0x2aa58d[_0x5b17('0xaa')]==_0x45b53e&&Ot(_0x2aa58d,_0x3b62c2)&&(_0x139ec7(_0x2aa58d[_0x5b17('0x136')](),_0x414a4b)||_0x139ec7(_0x414a4b,_0x2aa58d['getRanges']()))){if(_0x2ff3d2){if(_0x2aa58d[_0x5b17('0x131')]&&_0x2aa58d['commentThread'][_0x5b17('0x2e')])continue;for(const _0x336b6e of _0x2aa58d[_0x5b17('0x136')]())_0x2ff3d2['isIntersectingWithRange'](_0x336b6e)||_0x2ff3d2[_0x5b17('0x29')](_0x336b6e);_0x2aa58d['removeMarkers']();}else{_0x2ff3d2=_0x2aa58d;for(const _0x4928d1 of _0x414a4b)_0x2aa58d[_0x5b17('0xfc')](_0x4928d1)||_0x2aa58d['addRange'](_0x4928d1);}}if(_0x2ff3d2)return _0x2ff3d2;_0x2f10f6[_0x5b17('0x103')]();for(const {suggestion:_0x2ce75e,meta:_0x10bcad}of this[_0x5b17('0xa7')](_0x414a4b,_0x5b17('0x35')))_0x10bcad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10bcad[_0x5b17('0x26')]&&!_0x10bcad[_0x5b17('0x2d')])&&Ot(_0x2ce75e,_0x3b62c2)&&_0x2f10f6[_0x5b17('0x38')](_0x2ce75e);for(const _0x21bc5e of _0x2f10f6){const _0x3e86c4=_0x21bc5e[_0x5b17('0x136')]();if(!_0x3b62c2||!_0x3b62c2[_0x5b17('0x7c')]){if(_0x414a4b[_0x5b17('0xe2')](_0x2530d9=>_0x3e86c4[_0x5b17('0x56')](_0x4b9343=>_0x4b9343[_0x5b17('0x9')](_0x2530d9,!0x0))))return _0x21bc5e;}(!_0x21bc5e['attributes']||!_0x21bc5e['attributes']['skipNestingCheck'])&&(_0x3e86c4[_0x5b17('0xe2')](_0x4d2c9d=>_0x414a4b[_0x5b17('0x56')](_0x56a9b5=>_0x56a9b5['containsRange'](_0x4d2c9d,!0x0)))&&_0x21bc5e[_0x5b17('0xe9')]());}const _0x2025ff=_0x56fed8(),_0x2c76b9=_0x40fd7['id'],_0x1ebd05='deletion:'+_0x45b53e,_0x2a43e3=this[_0x5b17('0xa6')]({'id':_0x2025ff,'type':_0x1ebd05,'createdAt':new Date(),'authorId':_0x2c76b9,'attributes':_0x3b62c2});for(const _0x3d6b37 of _0x414a4b)_0x3d6b37[_0x5b17('0x55')](),_0x3d6b37[_0x5b17('0x120')]||_0x5b17('0x4b')==_0x3d6b37[_0x5b17('0x5a')]['rootName']||this[_0x5b17('0xb1')](_0x1ebd05,_0x2025ff,_0x2c76b9,_0x3d6b37,_0x45f923[_0x5b17('0x49')]());return _0x2a43e3;}[_0x5b17('0xb0')](_0x392ce3,_0xcfc200){const _0x5dd773=_0x392ce3[_0x5b17('0x7d')]();this['_model'][_0x5b17('0x5')](_0x5c8674=>{_0x5c8674[_0x5b17('0xc6')](_0x5dd773,{'range':_0xcfc200});});}[_0x5b17('0x115')](_0x2e5cd7){const _0x579395=_0x2e5cd7['id'],_0x497f22=this[_0x5b17('0x5f')]['config'][_0x5b17('0x11a')](_0x5b17('0x96'));this[_0x5b17('0xf3')][_0x5b17('0xcd')](_0x579395)||this[_0x5b17('0xf3')][_0x5b17('0x6a')]({'channelId':_0x497f22,'threadId':_0x579395,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2f6e28=this[_0x5b17('0xf3')]['getCommentThread'](_0x579395);_0x2f6e28[_0x5b17('0x63')](_0x5b17('0x119')),_0x2f6e28['isRemovable']=!0x1,_0x2e5cd7[_0x5b17('0x131')]=_0x2f6e28;}[_0x5b17('0x17')](_0x2cb84b,_0x382321,_0x4c2066,_0x5db423){if(_0x2cb84b[_0x5b17('0x42')]!=_0x382321||_0x2cb84b[_0x5b17('0xaa')]!=_0x4c2066||_0x2cb84b[_0x5b17('0xc0')]['id']!=_0x5db423)throw this[_0x5b17('0x5f')][_0x5b17('0x132')](_0x5b17('0xf')),new _0xa64f77(_0x5b17('0xf'),this);}[_0x5b17('0x12')](_0x4eeefe,_0x188681){const _0x568a67=_0x4eeefe['getFirstRange']();if(_0x188681['isEqual'](_0x568a67))_0x4eeefe['removeMarkers']();else{if(_0x568a67['containsRange'](_0x188681)){const _0x46b393=this[_0x5b17('0xd1')][_0x5b17('0xd9')](_0x188681[_0x5b17('0x9c')][_0x5b17('0xc1')],_0x5b17('0xbb'));this['_setSuggestionRange'](_0x4eeefe,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x568a67[_0x5b17('0x9c')],_0x46b393));const _0x1b32e9=_0x56fed8(),_0x1e7f9f=_0x4eeefe['creator']['id'],_0x57cd33=_0x4eeefe[_0x5b17('0x42')]+':'+_0x4eeefe['subType'];this[_0x5b17('0xa6')]({'id':_0x1b32e9,'type':_0x57cd33,'createdAt':new Date(),'authorId':_0x1e7f9f,'data':_0x4eeefe[_0x5b17('0x111')],'attributes':_0x4eeefe[_0x5b17('0xa8')]});const _0x264555=this[_0x5b17('0xd1')][_0x5b17('0xd9')](_0x188681['end'][_0x5b17('0x108')],'after'),_0x3b0e16=this[_0x5b17('0xd1')]['createRange'](_0x264555,_0x568a67[_0x5b17('0xbb')]);this[_0x5b17('0xb1')](_0x57cd33,_0x1b32e9,_0x1e7f9f,_0x3b0e16);}else{if(_0x568a67[_0x5b17('0x10b')](_0x188681[_0x5b17('0x9c')])){const _0xd3d344=this[_0x5b17('0xd1')][_0x5b17('0xd9')](_0x188681[_0x5b17('0x9c')][_0x5b17('0xc1')],'end');this[_0x5b17('0xb0')](_0x4eeefe,this[_0x5b17('0xd1')]['createRange'](_0x568a67[_0x5b17('0x9c')],_0xd3d344));}else{const _0x2173ee=this[_0x5b17('0xd1')]['createPositionAt'](_0x188681[_0x5b17('0xbb')]['parent'],_0x5b17('0x12e'));this[_0x5b17('0xb0')](_0x4eeefe,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x2173ee,_0x568a67['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28c105){for(const {suggestion:_0x332ccd,meta:_0x2db2c7}of this[_0x5b17('0xa7')](_0x28c105,'insertion')){if(!_0x2db2c7[_0x5b17('0x6f')])continue;const _0x325608=_0x332ccd[_0x5b17('0x136')]();for(const _0x1871be of _0x325608)if(!_0x28c105[_0x5b17('0x15')](_0x1871be)[_0x5b17('0x2e')])return!0x0;}return!0x1;}[_0x5b17('0x5e')](_0x1594ba){const _0xa7e414=this[_0x5b17('0x5f')][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))[_0x5b17('0x11e')](_0x1594ba);if(!_0xa7e414)throw new _0xa64f77(_0x5b17('0x75'),this);return _0xa7e414;}['_getExternalAuthor'](_0x54a202){const _0x55bdfe=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72')),_0x4e8fe0=_0x15e5aa(_0x5b17('0x7b')+_0x54a202),_0x596633=_0x55bdfe[_0x5b17('0x11e')](_0x4e8fe0);return _0x596633||_0x55bdfe['addUser']({'id':_0x4e8fe0,'name':_0x54a202});}['_createSuggestion'](_0x51b608,_0x328d8d,_0x4afe0a,_0x15dfdb,_0x11f8a4){const _0x1d56c9=this['_getAuthorFromId'](_0x15dfdb),_0x276a05=this['_suggestionFactory'][_0x5b17('0x13d')](_0x51b608,_0x328d8d,_0x4afe0a,_0x1d56c9,_0x11f8a4,_0x2cb55a=>this[_0x5b17('0x11f')](_0x4afe0a,{'attributes':_0x2cb55a}));return this[_0x5b17('0xd0')](_0x276a05,'accept',()=>{this[_0x5b17('0x11f')](_0x4afe0a,{'state':'accepted'});},{'priority':_0x5b17('0x9f')}),this['listenTo'](_0x276a05,'discard',()=>{this[_0x5b17('0x11f')](_0x4afe0a,{'state':_0x5b17('0x45')});},{'priority':'high'}),this[_0x5b17('0x62')]['set'](_0x4afe0a,_0x276a05),this[_0x5b17('0x13c')][_0x5b17('0x129')](_0x276a05,_0x5b17('0xc5')),_0x276a05;}[_0x5b17('0x90')](_0x4c9bfc){const _0x32bff1=_0x4c9bfc['split'](':');return{'group':_0x32bff1[0x0],'type':_0x32bff1[0x1],'subType':_0x32bff1[_0x5b17('0x2e')]>=0x5?_0x32bff1[0x2]:null,'id':_0x32bff1[_0x5b17('0x2e')]<0x5?_0x32bff1[0x2]:_0x32bff1[0x3],'authorId':_0x32bff1[_0x5b17('0x2e')]<0x5?_0x32bff1[0x3]:_0x32bff1[0x4],'markerCount':0x6==_0x32bff1[_0x5b17('0x2e')]?_0x32bff1[0x5]:null};}[_0x5b17('0x130')](_0x1e8fd,_0x4e4a75,_0x2709fb){const _0x39b52c=_0x1e8fd[_0x5b17('0x37')](),_0x392111=_0x39b52c[_0x5b17('0x9c')],_0x3bf490=_0x39b52c['end'];this['_setSuggestionRange'](_0x1e8fd,this[_0x5b17('0xd1')]['createRange'](_0x392111,_0x4e4a75));const _0x46a55e=_0x56fed8(),_0x1a2253=_0x1e8fd[_0x5b17('0xc0')]['id'],_0x456baf=_0x1e8fd[_0x5b17('0x42')]+(_0x1e8fd[_0x5b17('0xaa')]?':'+_0x1e8fd[_0x5b17('0xaa')]:'');this[_0x5b17('0xa6')]({'id':_0x46a55e,'type':_0x456baf,'createdAt':new Date(),'authorId':_0x1a2253,'originalSuggestionId':_0x1e8fd['id'],'attributes':_0x1e8fd[_0x5b17('0xa8')],'data':_0x1e8fd[_0x5b17('0x111')]}),'formatBlock'==_0x1e8fd[_0x5b17('0x42')]&&(_0x2709fb=this[_0x5b17('0xd1')][_0x5b17('0x86')](_0x2709fb['parent'])),this['_addSuggestionMarker'](_0x456baf,_0x46a55e,_0x1a2253,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x2709fb,_0x3bf490));}[_0x5b17('0xa7')](_0x48b8ea,_0x884b9d=null){const _0x29ac11=[],_0x4b0e54=this[_0x5b17('0x5f')]['plugins'][_0x5b17('0x11a')](_0x5b17('0x72'))['me'];Array['isArray'](_0x48b8ea)||(_0x48b8ea=[_0x48b8ea]);for(const _0x30d936 of this[_0x5b17('0x81')]()){if(!_0x30d936[_0x5b17('0x8d')])continue;if(_0x884b9d&&_0x30d936['type']!=_0x884b9d)continue;let _0x3bb030=!0x1;for(const _0x1d1715 of _0x30d936['getRanges']()){for(const _0x3ec0b5 of _0x48b8ea){const _0x364f23=_0x3ec0b5[_0x5b17('0x9c')][_0x5b17('0x80')](_0x1d1715[_0x5b17('0xbb')])||_0x3ec0b5['end']['isEqual'](_0x1d1715[_0x5b17('0x9c')]);if(_0x364f23||_0x3ec0b5[_0x5b17('0x70')](_0x1d1715)){const _0x1ddf42=_0x3ec0b5['containsRange'](_0x1d1715)&&_t(this[_0x5b17('0xd1')][_0x5b17('0xb8')],_0x1d1715[_0x5b17('0x9c')],_0x3ec0b5),_0x18bee4=_0x1d1715[_0x5b17('0x9')](_0x3ec0b5)&&_t(this[_0x5b17('0xd1')][_0x5b17('0xb8')],_0x3ec0b5[_0x5b17('0x9c')],_0x1d1715);_0x29ac11['push']({'suggestion':_0x30d936,'meta':{'isOwn':_0x4b0e54==_0x30d936['author'],'isNextTo':_0x364f23,'isInsideObject':_0x1ddf42,'containsRangeInObject':_0x18bee4}}),_0x3bb030=!0x0;break;}}if(_0x3bb030)break;}}return _0x29ac11;}[_0x5b17('0xb1')](_0x57ea65,_0x298d8f,_0x23b813,_0x364f96,_0x9b59d9){this['_model']['change'](_0x4ab737=>{let _0x228ec6='suggestion:'+_0x57ea65+':'+_0x298d8f+':'+_0x23b813;_0x9b59d9&&(_0x228ec6=_0x228ec6+':'+_0x9b59d9),_0x4ab737[_0x5b17('0x113')](_0x228ec6,{'range':_0x364f96,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5b17('0x87')](_0x3e21cb){const _0x360cf0=_0x3e21cb[_0x5b17('0xa1')],_0x4a844d=_0x3e21cb[_0x5b17('0xb9')];_0x3e21cb[_0x5b17('0xa1')]=null,null!=_0x360cf0&&(_0x360cf0['next']=null),_0x3e21cb['next']=null,null!=_0x4a844d&&(_0x4a844d[_0x5b17('0xa1')]=null),'ready'==this[_0x5b17('0x13c')][_0x5b17('0x11a')](_0x3e21cb)&&(this[_0x5b17('0x13c')]['set'](_0x3e21cb,_0x5b17('0x3')),this[_0x5b17('0xbd')](_0x5b17('0x126'),_0x3e21cb,_0x360cf0,_0x4a844d));}[_0x5b17('0xa6')](_0x299d60){const _0x2a9cee=_0x299d60['id'],_0x5a6f9b=this[_0x5b17('0xb')](_0x299d60);if(this[_0x5b17('0xce')]&&this['_adapter']['addSuggestion']){const _0x56573a=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')]('PendingActions'),_0x3fc17f=_0x5a6f9b['hasComments'],_0x4e168e=_0x5a6f9b[_0x5b17('0xaa')]?_0x5a6f9b[_0x5b17('0x42')]+':'+_0x5a6f9b[_0x5b17('0xaa')]:_0x5a6f9b[_0x5b17('0x42')],_0x24200b=this[_0x5b17('0x5f')]['locale'],_0x26ae6a=_0x56573a[_0x5b17('0x38')](_0x836558(_0x24200b,_0x5b17('0xd6'))),_0x4da8ee={'id':_0x2a9cee,'type':_0x4e168e,'hasComments':_0x3fc17f,'data':_0x299d60[_0x5b17('0x111')]||null,'originalSuggestionId':_0x299d60[_0x5b17('0xa0')]||null,'attributes':_0x5a6f9b['attributes']};this['_adapter']['addSuggestion'](_0x4da8ee)[_0x5b17('0xdf')](_0x550df8=>{_0x5a6f9b[_0x5b17('0xe5')]=!0x0,_0x56573a['remove'](_0x26ae6a),_0x550df8&&_0x550df8['createdAt']&&(this[_0x5b17('0x62')]['get'](_0x2a9cee)[_0x5b17('0x13b')]=_0x550df8['createdAt']);})[_0x5b17('0x8c')](_0x330fd0=>{throw _0xfaa372(_0x5b17('0xa')),this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0x36')]({'isUndoable':!0x1},()=>{_0x5a6f9b[_0x5b17('0xe9')]();}),_0x5a6f9b[_0x5b17('0xa9')](),this['_suggestions'][_0x5b17('0xe1')](_0x5a6f9b['id']),this[_0x5b17('0x13c')]['delete'](_0x5a6f9b),_0x330fd0;});}return _0x5a6f9b;}['_updateSuggestionData'](_0x4deca2,_0x3495cf){const _0x1f65f7=this[_0x5b17('0x5f')][_0x5b17('0x28')]['get'](_0x5b17('0xc2')),_0x2453d7=this['getSuggestion'](_0x4deca2);if(this[_0x5b17('0xce')]&&this[_0x5b17('0xce')][_0x5b17('0x41')]){if(_0x2453d7['_saved']){const _0x53f56c=_0x1f65f7[_0x5b17('0x38')](_0x836558(this[_0x5b17('0x5f')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x5b17('0xce')][_0x5b17('0x41')](_0x4deca2,_0x3495cf)[_0x5b17('0xdf')](()=>{_0x1f65f7[_0x5b17('0xee')](_0x53f56c);});}else _0x2453d7['on'](_0x5b17('0x73'),()=>{this['_updateSuggestionData'](_0x4deca2,_0x3495cf);});}}[_0x5b17('0x9e')](_0xf2e612){if(!this[_0x5b17('0xce')]||!this[_0x5b17('0xce')][_0x5b17('0x91')])throw new _0xa64f77('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xf2e612);}[_0x5b17('0x4e')](_0x16ff59){const {id:_0x558d86,type:_0x132cbc,subType:_0x4b4f16,authorId:_0x121f0f}=this[_0x5b17('0x90')](_0x16ff59),_0xec6810=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x558d86)||this['_createSuggestion'](_0x132cbc,_0x4b4f16,_0x558d86,_0x121f0f,{});switch(this[_0x5b17('0x17')](_0xec6810,_0x132cbc,_0x4b4f16,_0x121f0f),this['_suggestionState'][_0x5b17('0x11a')](_0xec6810)){case _0x5b17('0xc5'):this[_0x5b17('0x9e')](_0x558d86)[_0x5b17('0xdf')](_0x369f82=>{let _0x2d867e=Promise['resolve']();_0x369f82[_0x5b17('0x133')]&&(_0x2d867e=this[_0x5b17('0xf3')][_0x5b17('0x12d')]({'channelId':this[_0x5b17('0x5f')][_0x5b17('0xf5')][_0x5b17('0x11a')](_0x5b17('0x96')),'threadId':_0x558d86})),_0x2d867e[_0x5b17('0xdf')](()=>{this[_0x5b17('0xb')](_0x369f82)['_saved']=!0x0;});}),this['_suggestionState'][_0x5b17('0x129')](_0xec6810,_0x5b17('0x10a'));break;case _0x5b17('0x3'):this['_updateSuggestionData'](_0x558d86,{'state':_0x5b17('0x6b')});case _0x5b17('0x139'):this[_0x5b17('0x13c')]['set'](_0xec6810,_0x5b17('0x104')),this[_0x5b17('0xbd')]('suggestionLoaded',_0xec6810);break;case _0x5b17('0x104'):this[_0x5b17('0xbd')](_0x5b17('0xcc'),_0xec6810);}return _0xec6810[_0x5b17('0x2f')](_0x16ff59),_0xec6810;}[_0x5b17('0xec')](_0x25af93){const _0x599a55=Array[_0x5b17('0xfa')](_0x25af93)[_0x5b17('0xe')](_0x42dc99=>!_0x42dc99['isMultiRange']),_0x5ca3b4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f9439=>!_0x2f9439[_0x5b17('0x12c')]),_0x120009=_0x5ca3b4['filter'](_0x370f03=>!_0x25af93[_0x5b17('0x51')](_0x370f03)),_0x51e233=new Map(_0x5ca3b4[_0x5b17('0x100')](_0x4d0e8a=>[_0x4d0e8a,this[_0x5b17('0x22')]['getSuggestionCallback'](_0x4d0e8a['type'],_0x4d0e8a[_0x5b17('0xaa')],_0x5b17('0xe4'))])),_0x179cde=new Map(_0x5ca3b4['map'](_0x24bba5=>[_0x24bba5,_0x24bba5[_0x5b17('0x37')]()])),_0xc16ed2=new Set(),_0x4ccbec=new Set();for(let _0x18c366=0x0;_0x18c366<_0x599a55[_0x5b17('0x2e')];_0x18c366++)_0x60fac4(_0x599a55[_0x18c366],_0x599a55,_0x18c366+0x1);for(let _0x3e9956=0x0;_0x3e9956<_0x599a55[_0x5b17('0x2e')];_0x3e9956++)_0x60fac4(_0x599a55[_0x3e9956],_0x120009,0x0);for(let _0x64527d=0x0;_0x64527d<_0x599a55[_0x5b17('0x2e')];_0x64527d++){const _0x50cef6=_0x599a55[_0x64527d];!_0x4ccbec['has'](_0x50cef6)&&_0x50cef6[_0x5b17('0xa1')]&&(_0x50cef6[_0x5b17('0xa1')][_0x5b17('0xb9')]===_0x50cef6&&(_0x50cef6[_0x5b17('0xa1')]['next']=null),_0x50cef6[_0x5b17('0xa1')]=null),!_0xc16ed2[_0x5b17('0x51')](_0x50cef6)&&_0x50cef6[_0x5b17('0xb9')]&&(_0x50cef6[_0x5b17('0xb9')][_0x5b17('0xa1')]===_0x50cef6&&(_0x50cef6[_0x5b17('0xb9')][_0x5b17('0xa1')]=null),_0x50cef6[_0x5b17('0xb9')]=null);}function _0x60fac4(_0x313163,_0x2a78e2,_0x5430ed){for(let _0x166e4=_0x5430ed;_0x166e4<_0x2a78e2['length'];_0x166e4++){const _0x341e48=_0x4a6da0(_0x313163,_0x2a78e2[_0x166e4]);_0x341e48&&(_0x341e48[0x0][_0x5b17('0xb9')]=_0x341e48[0x1],_0x341e48[0x1]['previous']=_0x341e48[0x0],_0xc16ed2[_0x5b17('0x38')](_0x341e48[0x0]),_0x4ccbec['add'](_0x341e48[0x1]));}}function _0x4a6da0(_0x3323de,_0x1885f2){if(_0x3323de[_0x5b17('0x2a')]['id']!==_0x1885f2['author']['id'])return null;const _0x188fa9=_0x51e233[_0x5b17('0x11a')](_0x3323de)(_0x3323de,_0x1885f2,_0x179cde[_0x5b17('0x11a')](_0x3323de),_0x179cde[_0x5b17('0x11a')](_0x1885f2));if(!_0x188fa9)return null;return _0x51e233['get'](_0x1885f2)(_0x3323de,_0x1885f2,_0x179cde[_0x5b17('0x11a')](_0x3323de),_0x179cde[_0x5b17('0x11a')](_0x1885f2))?_0x188fa9[0x1][_0x5b17('0x131')]&&_0x188fa9[0x1][_0x5b17('0x131')]['length']?null:_0x188fa9:null;}}['_joinWithAdjacentSuggestions'](_0x513aa0){const _0x4e8b0d=Array[_0x5b17('0xfa')](_0x513aa0),_0x42c0eb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a8f99=_0x42c0eb['filter'](_0x46b5e8=>!_0x513aa0[_0x5b17('0x51')](_0x46b5e8)),_0x542504=new Map(_0x4e8b0d[_0x5b17('0x100')](_0x574bb5=>[_0x574bb5,this['_suggestionFactory']['getSuggestionCallback'](_0x574bb5[_0x5b17('0x42')],_0x574bb5[_0x5b17('0xaa')],_0x5b17('0x43'))])),_0x2d4797=new Map(_0x42c0eb[_0x5b17('0x100')](_0x3b5cf3=>[_0x3b5cf3,_0x3b5cf3[_0x5b17('0x136')]()]));for(let _0x2145cf=0x0;_0x2145cf<_0x4e8b0d[_0x5b17('0x2e')];_0x2145cf++){if(_0x3bc0e2(this,_0x4e8b0d[_0x2145cf],_0x4e8b0d,_0x2145cf+0x1))return!0x0;}for(let _0x375e2e=0x0;_0x375e2e<_0x4e8b0d['length'];_0x375e2e++){if(_0x3bc0e2(this,_0x4e8b0d[_0x375e2e],_0x4a8f99,0x0))return!0x0;}return!0x1;function _0x3bc0e2(_0x4b5842,_0x55be36,_0x36f37c,_0x532e38){for(let _0x2bafe8=_0x532e38;_0x2bafe8<_0x36f37c[_0x5b17('0x2e')];_0x2bafe8++){const _0x442bf0=_0x36f37c[_0x2bafe8];if(_0x442bf0[_0x5b17('0x42')]!==_0x55be36['type']||_0x442bf0[_0x5b17('0x2a')]['id']!==_0x55be36[_0x5b17('0x2a')]['id']||_0x442bf0[_0x5b17('0xaa')]!==_0x55be36[_0x5b17('0xaa')])continue;if(!Ut(_0x55be36,_0x442bf0))continue;const _0x2aa777=_0x542504[_0x5b17('0x11a')](_0x55be36),_0x17b3b9=_0x2d4797[_0x5b17('0x11a')](_0x55be36),_0x317698=_0x2d4797['get'](_0x442bf0),_0x26feff=_0x55be36[_0x5b17('0x131')]&&_0x55be36[_0x5b17('0x131')]['length'],_0x407a94=_0x442bf0['commentThread']&&_0x442bf0['commentThread']['length'];if(!_0x26feff&&_0x2aa777(_0x317698,_0x17b3b9))return _0x4b5842['_joinSuggestions'](_0x442bf0,_0x55be36),_0x2d4797['delete'](_0x55be36),!0x0;if(!_0x407a94&&_0x2aa777(_0x17b3b9,_0x317698))return _0x4b5842[_0x5b17('0x5d')](_0x55be36,_0x442bf0),_0x2d4797[_0x5b17('0xe1')](_0x442bf0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x39a537,_0x1ebcd7){if(_0x39a537['isMultiRange'])for(const _0x2fc2c8 of _0x1ebcd7[_0x5b17('0x136')]())_0x39a537[_0x5b17('0x29')](_0x2fc2c8);else{const _0x349076=_0x1ebcd7[_0x5b17('0x37')]()[_0x5b17('0xbb')];this[_0x5b17('0xb0')](_0x39a537,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x39a537[_0x5b17('0x37')]()[_0x5b17('0x9c')],_0x349076));}_0x1ebcd7[_0x5b17('0xae')]();}}class Bt{constructor(_0x513947){this[_0x5b17('0x105')]=_0x513947,this[_0x5b17('0xd1')]=_0x513947['model'],this['_customCallbacks']=new Map(),this[_0x5b17('0x16')]=new Map(),this['_registerDefaultCallbacks']();}[_0x5b17('0x13d')](_0x285927,_0x571a81,_0x3c8e23,_0xce8e61,_0x121d9c,_0x36867b){return new _0x45f923(this[_0x5b17('0xd1')],{'type':_0x285927,'subType':_0x571a81,'id':_0x3c8e23,'author':_0xce8e61,'creator':_0xce8e61,'attributes':_0x121d9c,'onAttributesChange':_0x36867b,'onAccept':(..._0x158183)=>this[_0x5b17('0x4f')](_0x285927,_0x571a81,'accept')(..._0x158183),'onDiscard':(..._0x163eed)=>this[_0x5b17('0x4f')](_0x285927,_0x571a81,'discard')(..._0x163eed)});}[_0x5b17('0x7f')](_0x394a49,_0x319868,_0x517b91,_0x322c21){const _0x3ad499=_0x394a49+':'+_0x319868+':'+_0x517b91;this[_0x5b17('0x123')]['set'](_0x3ad499,_0x322c21);}['getSuggestionCallback'](_0x316e53,_0x4fccdb,_0x1736b6){const _0x4f25e7=_0x316e53+':'+_0x4fccdb+':'+_0x1736b6;return this[_0x5b17('0x123')]['get'](_0x4f25e7)||this['_defaultCallbacks'][_0x5b17('0x11a')](_0x316e53+':'+_0x1736b6);}['_registerDefaultCallbacks'](){const _0x408761=()=>!0x1,_0x497f4f=_0x35d5b5=>{_0x35d5b5[_0x5b17('0xfe')]((_0x5bab5b,_0x1eb6c6)=>_0x5bab5b[_0x5b17('0x9c')][_0x5b17('0x122')](_0x1eb6c6[_0x5b17('0x9c')])?0x1:-0x1),this[_0x5b17('0xd1')][_0x5b17('0x5')](_0x994bfd=>{for(const _0x4dd2f9 of _0x35d5b5){let _0x387f04;_0x387f04=_0x4dd2f9[_0x5b17('0xbb')][_0x5b17('0x95')]&&_0x4dd2f9[_0x5b17('0xbb')]['parent']==_0x4dd2f9[_0x5b17('0x9c')]['nodeAfter']?_0x994bfd[_0x5b17('0xb6')](_0x4dd2f9[_0x5b17('0x9c')]['nodeAfter'],'on'):_0x994bfd[_0x5b17('0xb6')](_0x4dd2f9),this[_0x5b17('0xd1')][_0x5b17('0x46')](_0x387f04,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x134ba6=(_0x5a224d,_0x83d6ec)=>{this['_model'][_0x5b17('0x5')](_0xf9b1dd=>{const {commandName:_0x4befbd,commandParams:_0x49f288=[]}=_0x83d6ec,_0x4d2b68=_0x5a224d[_0x5b17('0x100')](_0x4aa161=>(Mt(_0x4aa161)&&(_0x4aa161=this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x4aa161[_0x5b17('0xbb')])),_0x4aa161))['filter'](_0x4a8586=>_0x5b17('0x4b')!==_0x4a8586['root'][_0x5b17('0x77')]);if(_0x4d2b68['length']<0x1)return;const _0x2bd6a8=Array[_0x5b17('0xfa')](this[_0x5b17('0xd1')]['document'][_0x5b17('0x102')][_0x5b17('0x136')]())['map'](_0x2ee2ec=>_0x15a817['fromRange'](_0x2ee2ec));_0xf9b1dd[_0x5b17('0x85')](_0x4d2b68);for(const _0x103515 of this[_0x5b17('0x105')]['commands'][_0x5b17('0xfb')]())_0x103515['refresh']();_0x49f288[_0x5b17('0x82')]({'forceDefaultExecution':!0x0}),this[_0x5b17('0x105')][_0x5b17('0xc4')](_0x4befbd,..._0x49f288);const _0x3b2d6e=_0x2bd6a8[_0x5b17('0xe')](_0x49c4fc=>_0x5b17('0x4b')!=_0x49c4fc['root'][_0x5b17('0x77')]);_0x3b2d6e[_0x5b17('0x2e')]>0x0&&_0xf9b1dd[_0x5b17('0x85')](_0x3b2d6e);for(const _0x4a8fe5 of _0x2bd6a8)_0x4a8fe5[_0x5b17('0x55')]();});},_0x335a46=(_0x2ea3b2,_0x1b33b8)=>0x1==_0x2ea3b2[_0x5b17('0x2e')]&&0x1==_0x1b33b8[_0x5b17('0x2e')]&&_0x2ea3b2[0x0][_0x5b17('0xbb')][_0x5b17('0x80')](_0x1b33b8[0x0]['start']),_0x534bf9=(_0xfcd166,_0x9c30ae,_0x4c7a46,_0x503f21)=>xt(_0xfcd166,_0x9c30ae,_0x4c7a46,_0x503f21,this[_0x5b17('0xd1')])?[_0xfcd166,_0x9c30ae]:xt(_0x9c30ae,_0xfcd166,_0x503f21,_0x4c7a46,this[_0x5b17('0xd1')])?[_0x9c30ae,_0xfcd166]:null;this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x6e'),_0x408761),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x32'),_0x497f4f),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x1e'),_0x335a46),this[_0x5b17('0x16')][_0x5b17('0x129')]('insertion:chain',_0x534bf9),this[_0x5b17('0x16')]['set'](_0x5b17('0x59'),_0x497f4f),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0xc7'),_0x408761),this[_0x5b17('0x16')]['set'](_0x5b17('0x1b'),_0x335a46),this['_defaultCallbacks'][_0x5b17('0x129')](_0x5b17('0xc3'),_0x534bf9),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatInline:accept',_0x134ba6),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x11b'),_0x408761),this['_defaultCallbacks'][_0x5b17('0x129')](_0x5b17('0x12f'),_0x335a46),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatInline:chain',_0x408761),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x47'),_0x134ba6),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatBlock:discard',_0x408761),this['_defaultCallbacks']['set'](_0x5b17('0x9a'),_0x335a46),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatBlock:chain',_0x408761);}}function _t(_0xc7fd4c,_0x45e51b,_0x43c8fa){for(const _0x289340 of _0x45e51b[_0x5b17('0x108')][_0x5b17('0x88')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x289340[_0x5b17('0x5a')]==_0x289340)return!0x1;if(!_0x43c8fa[_0x5b17('0xbc')](_0x289340))return!0x1;if(_0xc7fd4c['isObject'](_0x289340)||_0xc7fd4c['isLimit'](_0x289340))return!0x0;}return!0x1;}function Mt(_0x178fa0){return _0x178fa0[_0x5b17('0xbb')][_0x5b17('0x108')]==_0x178fa0[_0x5b17('0x9c')][_0x5b17('0xcb')]&&_0x178fa0['end'][_0x5b17('0x13')];}function $t(_0x1183a5,_0x4a41f7,_0x55897f,_0x42c651){const _0x20f8fc=_0x4bb9b2=>!_0x4bb9b2['item']['is'](_0x5b17('0x84'))&&!_0x42c651['isObject'](_0x4bb9b2['item']),_0x496ff8=_0x1183a5[_0x5b17('0x9c')][_0x5b17('0x6c')](_0x20f8fc),_0x2e2c50=_0x1183a5['end'][_0x5b17('0x6c')](_0x20f8fc,{'direction':_0x5b17('0x3e')});return(!_0x1183a5[_0x5b17('0x9c')][_0x5b17('0x80')](_0x496ff8)||!_0x1183a5['end'][_0x5b17('0x80')](_0x2e2c50))&&(_0x496ff8[_0x5b17('0x122')](_0x2e2c50)?_0x55897f['updateMarker'](_0x4a41f7,{'range':_0x55897f[_0x5b17('0xd2')](_0x496ff8,_0x2e2c50)}):_0x55897f['removeMarker'](_0x4a41f7),!0x0);}function Nt(_0x3f78a8){return _0x15e5aa(_0x3f78a8);}function Rt(_0x4edf27){const _0x468157=_0x4edf27['start']['nodeAfter'];return _0x468157&&_0x468157['is'](_0x5b17('0x24'));}function jt(_0x164b1b,_0x26168c){const _0x1cfe9a=_0x26168c['schema'][_0x5b17('0x114')](_0x164b1b)||_0x26168c[_0x5b17('0xb8')][_0x5b17('0x117')](_0x164b1b);return _0x26168c['createRange'](_0x26168c['createPositionAt'](_0x164b1b,'before'),_0x1cfe9a?_0x26168c['createPositionAfter'](_0x164b1b):_0x26168c[_0x5b17('0xd9')](_0x164b1b,_0x5b17('0xbb')));}function xt(_0x51e9a6,_0x44b3f7,_0x223531,_0x6748b,_0x1febb2){if(!Ut(_0x51e9a6,_0x44b3f7))return!0x1;if(_0x223531['end'][_0x5b17('0x80')](_0x6748b[_0x5b17('0x9c')]))return!0x0;if(_0x51e9a6['type']!=_0x44b3f7[_0x5b17('0x42')])return!0x1;if(!_0x223531[_0x5b17('0xbb')][_0x5b17('0x60')](_0x6748b['start']))return!0x1;const _0x191a49=_0x1febb2[_0x5b17('0xd2')](_0x223531[_0x5b17('0xbb')],_0x6748b[_0x5b17('0x9c')])['getWalker']();for(const _0x167903 of _0x191a49)if([_0x5b17('0x3a'),'elementEnd']['includes'](_0x167903['type'])&&_0x1febb2[_0x5b17('0xb8')][_0x5b17('0x2b')](_0x167903[_0x5b17('0x79')]))return!0x1;return!0x0;}function Ut(_0x507c7d,_0x2b4b9c){return!(!_0x507c7d[_0x5b17('0xcf')]||!_0x2b4b9c['_isDataLoaded'])&&_0x326433(_0x507c7d[_0x5b17('0xa8')],_0x2b4b9c[_0x5b17('0xa8')]);}function Ot(_0x6cc7b9,_0x47e652){const _0x2751f7=Et(_0x6cc7b9[_0x5b17('0xa8')]),_0x2b970d=Et(_0x47e652);if(!_0x6cc7b9[_0x5b17('0xcf')])return!0x1;for(const _0x495238 of Object['keys'](_0x2b970d))if(!_0x326433(_0x2751f7[_0x495238],_0x2b970d[_0x495238]))return!0x1;return!0x0;}function Et(_0x5c9b2){const _0x46ef90=Object[_0x5b17('0x97')]({},_0x5c9b2);return delete _0x46ef90[_0x5b17('0x7c')],delete _0x46ef90[_0x5b17('0x48')],_0x46ef90;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55d0=['activeMarkers','isInContent','EditorAnnotations','trackChanges.SuggestionThreadView','acceptAllSuggestions','listenTo','_suggestionToController','_createUIButton','lowest','trackChanges.disableComments','change:previous','_disableComments','getFirstRange','from','destroy','commandName','innerView','values','set','_viewToController','_handleControllerBuffer','_descriptionFactory','mainView','discardSelectedSuggestions','refreshSelectedViews','getDescriptions','_updateController','buttonView','suggestionLoaded','addSourceCollector','TrackChangesUI','_initializeController','locale','getAllAdjacentSuggestions','commands','createAnnotation','model','_unbindEditors','suggestionChanged','suggestion-','commentThread','CommentsRepository','comments.maxThreadTotalWeight','size','Annotations','SuggestionThreadView','_handleSuggestionControllerDelayed','editing','getByInnerView','getSuggestion','descriptionParts','arrowView','filter','getMarkerNames','isDirty','acceptButton','registerAnnotation','head','keys','Discard\x20all\x20suggestions','view','_refreshActiveMarkers','_destroyController','type','unbind','plugins','delete','add','TrackChangesEditing','button','actionView','getJoined','suggestionUnloaded','config','CommentView','push','Discard\x20all\x20selected\x20suggestions','addComment','isOn','toMany','length','source','focus','value','activeAnnotations','comments.editorConfig','componentFactory','getMarkers','_annotationViews','comments.maxCommentsWhenCollapsed','pluginName','requires','has','change:activeAnnotations','previous','execute','hasSuggestion','clear','Accept\x20all\x20selected\x20suggestions','discardAllSuggestions','separator','editor','isMultiRange','trackChanges','map','get','some','stopListening','CommentsUI','bind','isEnabled','define'];(function(_0x260de9,_0x55d010){const _0x32a060=function(_0x117da3){while(--_0x117da3){_0x260de9['push'](_0x260de9['shift']());}};_0x32a060(++_0x55d010);}(_0x55d0,0x103));const _0x32a0=function(_0x260de9,_0x55d010){_0x260de9=_0x260de9-0x0;let _0x32a060=_0x55d0[_0x260de9];return _0x32a060;};import{Plugin as _0x584a2b}from'ckeditor5/src/core';import{Collection as _0x36c42c}from'ckeditor5/src/utils';import{Model as _0x3a43ed,SplitButtonView as _0x3f6f03,createDropdown as _0xce0e68,addListToDropdown as _0x450e1f}from'ckeditor5/src/ui';import{Users as _0x4f251e,getDateTimeFormatter as _0x2d481c,getAllMarkersDomElementsSorted as _0x4a20e0}from'ckeditor5-collaboration/src/collaboration-core';import _0x21cb1a from'./trackchangesediting';import _0x2a6362 from'./ui/suggestioncontroller';import _0x301142 from'./ui/view/suggestionthreadview';import{getTranslation as _0x147a99}from'./utils/common-translations';import _0x1d0aea from'../theme/icons/track-changes.svg';export default class d extends _0x584a2b{static get[_0x32a0('0x38')](){return[_0x21cb1a,_0x4f251e,_0x32a0('0x6'),_0x32a0('0x9'),_0x32a0('0x4f')];}static get[_0x32a0('0x37')](){return _0x32a0('0x6b');}constructor(_0x1e4f16){super(_0x1e4f16),this[_0x32a0('0x53')]=new Map(),this[_0x32a0('0x60')]=new Map(),this[_0x32a0('0x35')]=new Map(),this[_0x32a0('0x61')]=new Map();const _0x203467=this[_0x32a0('0x42')][_0x32a0('0x26')];_0x203467[_0x32a0('0x4c')](_0x32a0('0x50'),_0x301142),_0x203467['define'](_0x32a0('0x56'),!0x1),this['_disableComments']=_0x203467[_0x32a0('0x46')](_0x32a0('0x56'));}['_handleSuggestionControllerDelayed'](_0x2c4b2a,_0x214b1f){0x0===this[_0x32a0('0x61')][_0x32a0('0x8')]&&setTimeout(()=>{for(const [_0x30b69f,_0x3f36d7]of this[_0x32a0('0x61')]){const _0x30f7e2=this['_suggestionToController']['has'](_0x30b69f);_0x30f7e2||_0x3f36d7?_0x30f7e2&&_0x3f36d7&&this[_0x32a0('0x1b')](_0x30b69f):this['_initializeController'](_0x30b69f);}this[_0x32a0('0x42')]['plugins']['get'](_0x32a0('0x4f'))[_0x32a0('0x65')](),this[_0x32a0('0x1a')](),this[_0x32a0('0x61')][_0x32a0('0x3e')]();},0xa),this[_0x32a0('0x61')][_0x32a0('0x5f')](_0x2c4b2a,_0x214b1f);}['init'](){const _0x430ed3=this['editor'],_0x1032b4=_0x430ed3[_0x32a0('0x1e')]['get']('TrackChangesEditing'),_0x245287=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')]('Annotations'),_0x3b7ed9=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x4f')),_0x1dfa1e=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')]('CommentsRepository');_0x430ed3['ui'][_0x32a0('0x33')][_0x32a0('0x20')](_0x32a0('0x44'),_0x41d65e=>this[_0x32a0('0x54')](_0x41d65e)),_0x3b7ed9[_0x32a0('0x6a')](()=>{const _0x2fed47=[];for(const [_0x5620a1,_0x4d792a]of Array[_0x32a0('0x5a')](this[_0x32a0('0x53')])){const _0x27b33a=_0x5620a1[_0x32a0('0x6e')](),_0x5e2c09=[];for(const _0x34dd45 of _0x27b33a){if(!_0x34dd45[_0x32a0('0x4e')])continue;if(_0x34dd45[_0x32a0('0x43')]){_0x5e2c09['push'](..._0x34dd45['getRanges']());continue;}const _0x58b5d8=_0x34dd45[_0x32a0('0x59')]();if(_0x5e2c09[_0x32a0('0x2d')]>0x0){const _0x476912=_0x5e2c09[0x0][_0x32a0('0x24')](_0x58b5d8);if(_0x476912){_0x5e2c09[0x0]=_0x476912;continue;}}_0x5e2c09[_0x32a0('0x28')](_0x58b5d8);}_0x2fed47[_0x32a0('0x28')]([_0x4d792a[_0x32a0('0x19')],_0x5e2c09]);}return _0x2fed47;}),this[_0x32a0('0x52')](_0x1032b4,_0x32a0('0x69'),(_0x574fca,_0x294233)=>{this[_0x32a0('0x52')](_0x294233,_0x32a0('0x57'),(_0x5da5b1,_0x574b4f,_0x298755,_0x368c4c)=>{_0x294233['isInContent']&&(null==_0x298755?(this[_0x32a0('0x67')](_0x368c4c[_0x32a0('0x16')]),this[_0x32a0('0xb')](_0x294233,!0x1)):(this[_0x32a0('0x67')](_0x298755[_0x32a0('0x16')]),this[_0x32a0('0xb')](_0x294233,!0x0)));}),null===_0x294233[_0x32a0('0x3b')]?this[_0x32a0('0xb')](_0x294233,!0x1):this[_0x32a0('0x67')](_0x294233[_0x32a0('0x16')]);}),this['listenTo'](_0x1032b4,_0x32a0('0x25'),(_0x18f0d2,_0x50fc47,_0x2adc49)=>{this[_0x32a0('0x48')](_0x50fc47,_0x32a0('0x57')),this['_handleControllerBuffer'][_0x32a0('0x1f')](_0x50fc47);const _0x2d6f09=_0x2adc49?_0x2adc49['head']:_0x50fc47,_0x3e22d3=this[_0x32a0('0x53')]['get'](_0x2d6f09);null!==_0x2adc49&&this['_updateController'](_0x2d6f09),null===_0x2adc49&&_0x3e22d3&&this[_0x32a0('0x1b')](_0x50fc47);}),this[_0x32a0('0x52')](_0x1032b4,_0x32a0('0x3'),(_0x539a3a,_0x1af26c)=>{this[_0x32a0('0x67')](_0x1af26c);}),this[_0x32a0('0x52')](_0x245287,_0x32a0('0x3a'),()=>{this[_0x32a0('0x1a')]();}),this['listenTo'](_0x1dfa1e,_0x32a0('0x2a'),(_0x270593,{threadId:_0xf69aea,isFromAdapter:_0x4da65b})=>{if(_0x4da65b||!_0x1032b4[_0x32a0('0x3d')](_0xf69aea))return;const _0x46a643=_0x1032b4[_0x32a0('0xe')](_0xf69aea);this[_0x32a0('0x53')][_0x32a0('0x46')](_0x46a643)[_0x32a0('0x19')][_0x32a0('0x2f')]();},{'priority':_0x32a0('0x55')});}[_0x32a0('0x1a')](){const _0x534ac5=this[_0x32a0('0x42')][_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x9')),_0x15b1f7=this[_0x32a0('0x42')][_0x32a0('0x1e')]['get'](_0x32a0('0x21')),_0x520a9e=Array['from'](_0x534ac5[_0x32a0('0x31')],_0x4ec423=>_0x4ec423[_0x32a0('0x5d')])['filter'](_0x5d9621=>this[_0x32a0('0x60')][_0x32a0('0x39')](_0x5d9621)),_0x3a81d3=[];for(const _0x4a8f00 of _0x520a9e){const _0x1da285=this[_0x32a0('0x60')]['get'](_0x4a8f00)[_0x32a0('0x1')]['getAllAdjacentSuggestions']();_0x3a81d3[_0x32a0('0x28')](..._0x1da285['reduce']((_0x57e909,_0x494779)=>[..._0x57e909,..._0x494779[_0x32a0('0x12')]()],[]));}_0x15b1f7[_0x32a0('0x4d')]=_0x3a81d3;}[_0x32a0('0x54')](_0x33e09d){const _0x49de38=_0xce0e68(_0x33e09d,_0x3f6f03),_0x2c0f5b=this['editor']['commands'][_0x32a0('0x46')](_0x32a0('0x44')),_0x248466=_0x147a99(_0x33e09d,'Track\x20changes');_0x49de38['buttonView'][_0x32a0('0x5f')]({'tooltip':_0x248466,'label':_0x248466,'icon':_0x1d0aea}),_0x49de38['buttonView'][_0x32a0('0x4a')](_0x32a0('0x2b'))['to'](_0x2c0f5b,_0x32a0('0x30')),_0x49de38['buttonView']['on']('execute',()=>{_0x2c0f5b[_0x32a0('0x3c')](),this[_0x32a0('0x42')][_0x32a0('0xc')][_0x32a0('0x19')]['focus']();});const _0x4af871=new _0x36c42c(),_0x14b302=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x248466,'commandName':_0x32a0('0x44')}},{'type':_0x32a0('0x41')},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,'Accept\x20all\x20suggestions'),'commandName':_0x32a0('0x51')}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x3f')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x18')),'commandName':_0x32a0('0x40')}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x29')),'commandName':_0x32a0('0x64')}}];for(const _0x48f4b3 of _0x14b302){let _0x28e7b2={'type':_0x32a0('0x41')};if(_0x48f4b3[_0x32a0('0x1')]){const _0x1fc248=new _0x3a43ed(_0x48f4b3['model']),_0x194aca=this['editor'][_0x32a0('0x6f')][_0x32a0('0x46')](_0x1fc248['commandName']);_0x1fc248[_0x32a0('0x4a')](_0x32a0('0x2b'),_0x32a0('0x4b'))['to'](_0x194aca,_0x32a0('0x30'),_0x32a0('0x4b')),_0x28e7b2={'type':_0x48f4b3['type'],'model':_0x1fc248};}_0x4af871['add'](_0x28e7b2);}_0x450e1f(_0x49de38,_0x4af871);const _0xcd0aa5=_0x14b302[_0x32a0('0x11')](_0x339fa8=>null!=_0x339fa8[_0x32a0('0x1')])[_0x32a0('0x45')](_0x363e09=>this[_0x32a0('0x42')][_0x32a0('0x6f')]['get'](_0x363e09[_0x32a0('0x1')][_0x32a0('0x5c')])),_0x3c324a=_0x49de38[_0x32a0('0x68')];return _0x3c324a[_0x32a0('0x23')][_0x32a0('0x1d')](_0x32a0('0x4b')),_0x3c324a[_0x32a0('0x10')]['unbind'](_0x32a0('0x4b')),_0x3c324a[_0x32a0('0x23')][_0x32a0('0x4a')](_0x32a0('0x4b'))['to'](_0x2c0f5b,_0x32a0('0x4b')),_0x3c324a['arrowView'][_0x32a0('0x4a')]('isEnabled')[_0x32a0('0x2c')](_0xcd0aa5,_0x32a0('0x4b'),(..._0x44ba42)=>_0x44ba42[_0x32a0('0x47')](_0xf40b07=>_0xf40b07)),_0x49de38['on'](_0x32a0('0x3c'),_0x133d11=>{this[_0x32a0('0x42')][_0x32a0('0x3c')](_0x133d11[_0x32a0('0x2e')][_0x32a0('0x5c')]),this['editor']['editing']['view']['focus']();}),_0x49de38;}[_0x32a0('0x6c')](_0x15e217){const _0x5d6d15=this[_0x32a0('0x42')],_0x554393=_0x5d6d15[_0x32a0('0x26')],_0x452690=_0x5d6d15[_0x32a0('0x1e')]['get'](_0x32a0('0x9')),_0x3a84e3=_0x5d6d15[_0x32a0('0x1e')]['get'](_0x32a0('0x6')),_0x3b6800=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x4f')),_0x55fc62=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')](_0x4f251e)['me'],_0x1b6979=_0x554393[_0x32a0('0x46')](_0x32a0('0x44'))[_0x32a0('0xa')],{CommentsListView:_0x160ac9,CommentThreadInputView:_0x22c40c}=_0x5d6d15['plugins']['get'](_0x32a0('0x49'));let _0x5a966b,_0xf6a9e5;this[_0x32a0('0x35')][_0x32a0('0x39')](_0x15e217['id'])?(_0xf6a9e5=this['_annotationViews'][_0x32a0('0x46')](_0x15e217['id']),_0x5a966b=_0xf6a9e5[_0x32a0('0x63')]):(_0x5a966b=new _0x1b6979(_0x5d6d15[_0x32a0('0x6d')],_0x15e217,_0x55fc62,{'disableComments':this[_0x32a0('0x58')],'editorConfig':_0x554393['get'](_0x32a0('0x32')),'maxCommentsWhenCollapsed':_0x554393['get'](_0x32a0('0x36')),'maxThreadTotalWeight':_0x554393['get'](_0x32a0('0x7')),'maxCommentCharsWhenCollapsed':_0x554393[_0x32a0('0x46')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d481c(_0x554393[_0x32a0('0x46')]('locale')),'CommentView':_0x554393[_0x32a0('0x46')]('comments')[_0x32a0('0x27')],'CommentsListView':_0x160ac9,'CommentThreadInputView':_0x22c40c}),_0x5a966b[_0x32a0('0x14')]['on'](_0x32a0('0x3c'),()=>{_0x5d6d15[_0x32a0('0xc')][_0x32a0('0x19')][_0x32a0('0x2f')]();}),_0x5a966b['discardButton']['on'](_0x32a0('0x3c'),()=>{_0x5d6d15[_0x32a0('0xc')]['view']['focus']();}),_0xf6a9e5=_0x452690['createAnnotationView'](this[_0x32a0('0x42')]['locale'],_0x5a966b),_0xf6a9e5[_0x32a0('0x4a')](_0x32a0('0x13'))['to'](_0x5a966b,_0x32a0('0x13')),_0xf6a9e5[_0x32a0('0x4a')]('length')['to'](_0x5a966b),_0xf6a9e5[_0x32a0('0x4a')](_0x32a0('0x1c'))['to'](_0x5a966b,_0x32a0('0x1c'),_0x21f9d3=>_0x32a0('0x4')+_0x21f9d3),this['_annotationViews']['set'](_0x15e217['id'],_0xf6a9e5));const _0x4c3989=_0x3a84e3['createCommentThreadController'](_0x15e217[_0x32a0('0x5')],_0x5a966b),_0x313341=new _0x2a6362(_0x5d6d15,_0x15e217,_0x5a966b,_0x4c3989),_0x3d7c38=_0x15e217[_0x32a0('0x6e')]()['filter'](_0x1caa2f=>_0x1caa2f['isInContent']);_0x5a966b[_0x32a0('0xf')]=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')]('TrackChangesEditing')[_0x32a0('0x62')][_0x32a0('0x66')](_0x3d7c38),this[_0x32a0('0x53')][_0x32a0('0x5f')](_0x15e217,_0x313341),this[_0x32a0('0x60')][_0x32a0('0x5f')](_0x5a966b,_0x313341);const _0x323512=_0x452690[_0x32a0('0x0')]({'view':_0xf6a9e5,'target':()=>{const _0x595551=[],_0x139f70=_0x15e217['getAllAdjacentSuggestions']()['filter'](_0x35acd5=>_0x35acd5[_0x32a0('0x4e')]);for(const _0x2f1d53 of _0x139f70)_0x595551['push'](..._0x2f1d53[_0x32a0('0x34')]());return _0x4a20e0(_0x5d6d15[_0x32a0('0xc')],_0x595551);},'type':()=>'suggestion-'+_0x313341[_0x32a0('0x19')]['type']});_0x3a84e3['_bindAnnotationToEditors'](_0x5a966b,_0x323512),_0x452690[_0x32a0('0x20')](_0x323512),_0x3b6800[_0x32a0('0x15')](_0x323512);}['_destroyController'](_0x1189a8){const _0x202ee6=this[_0x32a0('0x42')]['plugins']['get']('CommentsRepository'),_0x4a21d8=this['editor'][_0x32a0('0x1e')]['get']('Annotations'),_0xcfb624=this[_0x32a0('0x53')][_0x32a0('0x46')](_0x1189a8),_0x10b2b5=_0xcfb624[_0x32a0('0x19')],_0x15ecd8=_0x4a21d8[_0x32a0('0xd')](_0x10b2b5);_0x202ee6[_0x32a0('0x2')](_0x10b2b5),_0x15ecd8&&_0x4a21d8['remove'](_0x15ecd8),this[_0x32a0('0x53')][_0x32a0('0x1f')](_0x1189a8),this['_viewToController'][_0x32a0('0x1f')](_0x10b2b5),_0xcfb624[_0x32a0('0x5b')]();}[_0x32a0('0x67')](_0x344d26){if(!_0x344d26[_0x32a0('0x4e')]||!this['_suggestionToController']['has'](_0x344d26))return;const _0x415e0a=this[_0x32a0('0x42')]['plugins'][_0x32a0('0x46')](_0x32a0('0x21')),_0x6b3707=this[_0x32a0('0x53')]['get'](_0x344d26),_0x41c284=_0x344d26[_0x32a0('0x6e')]();_0x6b3707[_0x32a0('0x19')]['descriptionParts']=_0x415e0a['_descriptionFactory'][_0x32a0('0x66')](_0x41c284);}[_0x32a0('0x5b')](){for(const _0x2bc1bb of this[_0x32a0('0x53')][_0x32a0('0x17')]())this['_destroyController'](_0x2bc1bb);for(const _0x5bbac6 of this['_annotationViews'][_0x32a0('0x5e')]())_0x5bbac6[_0x32a0('0x63')][_0x32a0('0x5b')]();super[_0x32a0('0x5b')]();}}
23
+ const _0x21b6=['switchbutton','get','_refreshActiveMarkers','discardAllSuggestions','set','trackChanges.SuggestionThreadView','acceptAllSuggestions','comments.maxCommentsWhenCollapsed','head','plugins','_annotationViews','isDirty','_handleControllerBuffer','locale','isInContent','model','Discard\x20all\x20selected\x20suggestions','Discard\x20all\x20suggestions','comments.maxCommentCharsWhenCollapsed','destroy','commandName','getAllAdjacentSuggestions','listenTo','commentThread','getFirstRange','mainView','TrackChangesUI','buttonView','clear','suggestion-','activeAnnotations','getByInnerView','change:previous','button','add','_viewToController','SuggestionThreadView','acceptButton','registerAnnotation','separator','hasSuggestion','trackChanges','focus','innerView','some','getDescriptions','_destroyController','TrackChangesEditing','bind','descriptionParts','value','editor','CommentsRepository','suggestionUnloaded','arrowView','delete','EditorAnnotations','map','_handleSuggestionControllerDelayed','_bindAnnotationToEditors','source','values','previous','stopListening','length','config','createAnnotation','type','trackChanges.disableComments','discardButton','Accept\x20all\x20selected\x20suggestions','_disableComments','_updateController','toMany','push','has','isEnabled','componentFactory','isMultiRange','_suggestionToController','commands','_unbindEditors','init','pluginName','CommentView','editing','actionView','getMarkerNames','size','Track\x20changes','addComment','isOn','view','refreshSelectedViews','suggestionChanged','acceptSelectedSuggestions','getSuggestion','_initializeController','unbind','define','Annotations','keys','discardSelectedSuggestions','filter','CommentsUI','execute','from'];(function(_0x11e24d,_0x21b602){const _0xb78de9=function(_0x937005){while(--_0x937005){_0x11e24d['push'](_0x11e24d['shift']());}};_0xb78de9(++_0x21b602);}(_0x21b6,0xaf));const _0xb78d=function(_0x11e24d,_0x21b602){_0x11e24d=_0x11e24d-0x0;let _0xb78de9=_0x21b6[_0x11e24d];return _0xb78de9;};import{Plugin as _0xd6d446}from'ckeditor5/src/core';import{Collection as _0x255f39}from'ckeditor5/src/utils';import{Model as _0x4d1624,SplitButtonView as _0x43dca1,createDropdown as _0x248122,addListToDropdown as _0x4cf92e}from'ckeditor5/src/ui';import{Users as _0x340601,getDateTimeFormatter as _0x3dedd9,getAllMarkersDomElementsSorted as _0x134312}from'ckeditor5-collaboration/src/collaboration-core';import _0xc7eaa1 from'./trackchangesediting';import _0x37fff0 from'./ui/suggestioncontroller';import _0x3fec06 from'./ui/view/suggestionthreadview';import{getTranslation as _0x40fc71}from'./utils/common-translations';import _0x95034d from'../theme/icons/track-changes.svg';export default class d extends _0xd6d446{static get['requires'](){return[_0xc7eaa1,_0x340601,_0xb78d('0x5b'),_0xb78d('0x20'),_0xb78d('0x5f')];}static get[_0xb78d('0xf')](){return _0xb78d('0x41');}constructor(_0xd139d6){super(_0xd139d6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0xb78d('0x31')]=new Map(),this[_0xb78d('0x33')]=new Map();const _0x5e7cb7=this[_0xb78d('0x5a')][_0xb78d('0x68')];_0x5e7cb7[_0xb78d('0x1f')](_0xb78d('0x2c'),_0x3fec06),_0x5e7cb7[_0xb78d('0x1f')](_0xb78d('0x0'),!0x1),this[_0xb78d('0x3')]=_0x5e7cb7[_0xb78d('0x28')](_0xb78d('0x0'));}[_0xb78d('0x61')](_0x134294,_0x160834){0x0===this['_handleControllerBuffer'][_0xb78d('0x14')]&&setTimeout(()=>{for(const [_0x2a026a,_0x104828]of this[_0xb78d('0x33')]){const _0x5e3720=this[_0xb78d('0xb')][_0xb78d('0x7')](_0x2a026a);_0x5e3720||_0x104828?_0x5e3720&&_0x104828&&this[_0xb78d('0x55')](_0x2a026a):this[_0xb78d('0x1d')](_0x2a026a);}this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')]('EditorAnnotations')[_0xb78d('0x19')](),this[_0xb78d('0x29')](),this[_0xb78d('0x33')][_0xb78d('0x43')]();},0xa),this[_0xb78d('0x33')]['set'](_0x134294,_0x160834);}[_0xb78d('0xe')](){const _0xdd6030=this['editor'],_0x194cd1=_0xdd6030[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x56')),_0x2383f0=_0xdd6030[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x352636=_0xdd6030[_0xb78d('0x30')]['get']('EditorAnnotations'),_0x16b4df=_0xdd6030[_0xb78d('0x30')][_0xb78d('0x28')]('CommentsRepository');_0xdd6030['ui'][_0xb78d('0x9')][_0xb78d('0x49')]('trackChanges',_0x2676eb=>this['_createUIButton'](_0x2676eb)),_0x352636['addSourceCollector'](()=>{const _0x54ab60=[];for(const [_0xdcd2f9,_0x3befc3]of Array[_0xb78d('0x26')](this[_0xb78d('0xb')])){const _0x5c9785=_0xdcd2f9[_0xb78d('0x3c')](),_0x46fbf0=[];for(const _0x8430de of _0x5c9785){if(!_0x8430de['isInContent'])continue;if(_0x8430de[_0xb78d('0xa')]){_0x46fbf0['push'](..._0x8430de['getRanges']());continue;}const _0x548f84=_0x8430de[_0xb78d('0x3f')]();if(_0x46fbf0['length']>0x0){const _0x4deb88=_0x46fbf0[0x0]['getJoined'](_0x548f84);if(_0x4deb88){_0x46fbf0[0x0]=_0x4deb88;continue;}}_0x46fbf0[_0xb78d('0x6')](_0x548f84);}_0x54ab60['push']([_0x3befc3[_0xb78d('0x18')],_0x46fbf0]);}return _0x54ab60;}),this['listenTo'](_0x194cd1,'suggestionLoaded',(_0x3dace6,_0x1bf488)=>{this[_0xb78d('0x3d')](_0x1bf488,_0xb78d('0x47'),(_0x11f3aa,_0x104e3b,_0x5a1fcb,_0x5b057a)=>{_0x1bf488['isInContent']&&(null==_0x5a1fcb?(this[_0xb78d('0x4')](_0x5b057a[_0xb78d('0x2f')]),this['_handleSuggestionControllerDelayed'](_0x1bf488,!0x1)):(this[_0xb78d('0x4')](_0x5a1fcb[_0xb78d('0x2f')]),this[_0xb78d('0x61')](_0x1bf488,!0x0)));}),null===_0x1bf488[_0xb78d('0x65')]?this['_handleSuggestionControllerDelayed'](_0x1bf488,!0x1):this[_0xb78d('0x4')](_0x1bf488[_0xb78d('0x2f')]);}),this[_0xb78d('0x3d')](_0x194cd1,_0xb78d('0x5c'),(_0x11fa46,_0x43de18,_0x468e9b)=>{this[_0xb78d('0x66')](_0x43de18,_0xb78d('0x47')),this['_handleControllerBuffer'][_0xb78d('0x5e')](_0x43de18);const _0x40af8a=_0x468e9b?_0x468e9b[_0xb78d('0x2f')]:_0x43de18,_0x2032ee=this[_0xb78d('0xb')][_0xb78d('0x28')](_0x40af8a);null!==_0x468e9b&&this[_0xb78d('0x4')](_0x40af8a),null===_0x468e9b&&_0x2032ee&&this[_0xb78d('0x55')](_0x43de18);}),this['listenTo'](_0x194cd1,_0xb78d('0x1a'),(_0x12dd83,_0x5e048a)=>{this[_0xb78d('0x4')](_0x5e048a);}),this[_0xb78d('0x3d')](_0x2383f0,'change:activeAnnotations',()=>{this[_0xb78d('0x29')]();}),this[_0xb78d('0x3d')](_0x16b4df,_0xb78d('0x16'),(_0xbad108,{threadId:_0x588a35,isFromAdapter:_0x27e316})=>{if(_0x27e316||!_0x194cd1[_0xb78d('0x4f')](_0x588a35))return;const _0x13182a=_0x194cd1[_0xb78d('0x1c')](_0x588a35);this[_0xb78d('0xb')][_0xb78d('0x28')](_0x13182a)[_0xb78d('0x18')][_0xb78d('0x51')]();},{'priority':'lowest'});}[_0xb78d('0x29')](){const _0x37f53f=this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x345d47=this[_0xb78d('0x5a')][_0xb78d('0x30')]['get']('TrackChangesEditing'),_0x4c52b3=Array['from'](_0x37f53f[_0xb78d('0x45')],_0x3b4dc4=>_0x3b4dc4[_0xb78d('0x52')])[_0xb78d('0x23')](_0xe4da2a=>this[_0xb78d('0x4a')][_0xb78d('0x7')](_0xe4da2a)),_0xe22108=[];for(const _0x29ef88 of _0x4c52b3){const _0x3a5250=this['_viewToController'][_0xb78d('0x28')](_0x29ef88)[_0xb78d('0x36')]['getAllAdjacentSuggestions']();_0xe22108[_0xb78d('0x6')](..._0x3a5250['reduce']((_0xacd62d,_0x4b68f9)=>[..._0xacd62d,..._0x4b68f9[_0xb78d('0x13')]()],[]));}_0x345d47['activeMarkers']=_0xe22108;}['_createUIButton'](_0x502245){const _0x3e34cf=_0x248122(_0x502245,_0x43dca1),_0x3b4f4a=this[_0xb78d('0x5a')][_0xb78d('0xc')][_0xb78d('0x28')](_0xb78d('0x50')),_0x22f0e7=_0x40fc71(_0x502245,_0xb78d('0x15'));_0x3e34cf[_0xb78d('0x42')]['set']({'tooltip':_0x22f0e7,'label':_0x22f0e7,'icon':_0x95034d}),_0x3e34cf['buttonView'][_0xb78d('0x57')]('isOn')['to'](_0x3b4f4a,_0xb78d('0x59')),_0x3e34cf['buttonView']['on']('execute',()=>{_0x3b4f4a[_0xb78d('0x25')](),this[_0xb78d('0x5a')]['editing'][_0xb78d('0x18')]['focus']();});const _0x176168=new _0x255f39(),_0x29ab27=[{'type':_0xb78d('0x27'),'model':{'withText':!0x0,'label':_0x22f0e7,'commandName':_0xb78d('0x50')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x40fc71(_0x502245,'Accept\x20all\x20suggestions'),'commandName':_0xb78d('0x2d')}},{'type':_0xb78d('0x48'),'model':{'withText':!0x0,'label':_0x40fc71(_0x502245,_0xb78d('0x2')),'commandName':_0xb78d('0x1b')}},{'type':_0xb78d('0x48'),'model':{'withText':!0x0,'label':_0x40fc71(_0x502245,_0xb78d('0x38')),'commandName':_0xb78d('0x2a')}},{'type':_0xb78d('0x48'),'model':{'withText':!0x0,'label':_0x40fc71(_0x502245,_0xb78d('0x37')),'commandName':_0xb78d('0x22')}}];for(const _0x28113c of _0x29ab27){let _0x50da84={'type':_0xb78d('0x4e')};if(_0x28113c[_0xb78d('0x36')]){const _0x22b82d=new _0x4d1624(_0x28113c[_0xb78d('0x36')]),_0x445a9a=this['editor'][_0xb78d('0xc')]['get'](_0x22b82d['commandName']);_0x22b82d['bind'](_0xb78d('0x17'),_0xb78d('0x8'))['to'](_0x445a9a,'value','isEnabled'),_0x50da84={'type':_0x28113c[_0xb78d('0x6a')],'model':_0x22b82d};}_0x176168['add'](_0x50da84);}_0x4cf92e(_0x3e34cf,_0x176168);const _0x118bb0=_0x29ab27['filter'](_0xda5710=>null!=_0xda5710[_0xb78d('0x36')])[_0xb78d('0x60')](_0x475bff=>this[_0xb78d('0x5a')][_0xb78d('0xc')][_0xb78d('0x28')](_0x475bff[_0xb78d('0x36')][_0xb78d('0x3b')])),_0x5cb7d3=_0x3e34cf[_0xb78d('0x42')];return _0x5cb7d3[_0xb78d('0x12')][_0xb78d('0x1e')]('isEnabled'),_0x5cb7d3[_0xb78d('0x5d')][_0xb78d('0x1e')](_0xb78d('0x8')),_0x5cb7d3[_0xb78d('0x12')][_0xb78d('0x57')](_0xb78d('0x8'))['to'](_0x3b4f4a,_0xb78d('0x8')),_0x5cb7d3['arrowView'][_0xb78d('0x57')](_0xb78d('0x8'))[_0xb78d('0x5')](_0x118bb0,'isEnabled',(..._0x4d57ec)=>_0x4d57ec[_0xb78d('0x53')](_0x1ea5f2=>_0x1ea5f2)),_0x3e34cf['on'](_0xb78d('0x25'),_0x3ebdd1=>{this[_0xb78d('0x5a')][_0xb78d('0x25')](_0x3ebdd1[_0xb78d('0x63')][_0xb78d('0x3b')]),this[_0xb78d('0x5a')][_0xb78d('0x11')][_0xb78d('0x18')]['focus']();}),_0x3e34cf;}[_0xb78d('0x1d')](_0x4e3eb0){const _0x1c5690=this[_0xb78d('0x5a')],_0x29c681=_0x1c5690[_0xb78d('0x68')],_0x3a427f=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x3ee704=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x5b')),_0x5dff4d=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x5f')),_0x7059fb=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0x340601)['me'],_0x27bb83=_0x29c681['get'](_0xb78d('0x50'))[_0xb78d('0x4b')],{CommentsListView:_0x418ee9,CommentThreadInputView:_0x27b9d2}=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x24'));let _0x2fa6cd,_0x65039a;this[_0xb78d('0x31')][_0xb78d('0x7')](_0x4e3eb0['id'])?(_0x65039a=this[_0xb78d('0x31')][_0xb78d('0x28')](_0x4e3eb0['id']),_0x2fa6cd=_0x65039a[_0xb78d('0x40')]):(_0x2fa6cd=new _0x27bb83(_0x1c5690[_0xb78d('0x34')],_0x4e3eb0,_0x7059fb,{'disableComments':this['_disableComments'],'editorConfig':_0x29c681['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x29c681[_0xb78d('0x28')](_0xb78d('0x2e')),'maxThreadTotalWeight':_0x29c681[_0xb78d('0x28')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x29c681[_0xb78d('0x28')](_0xb78d('0x39')),'formatDateTime':_0x3dedd9(_0x29c681[_0xb78d('0x28')](_0xb78d('0x34'))),'CommentView':_0x29c681[_0xb78d('0x28')]('comments')[_0xb78d('0x10')],'CommentsListView':_0x418ee9,'CommentThreadInputView':_0x27b9d2}),_0x2fa6cd[_0xb78d('0x4c')]['on'](_0xb78d('0x25'),()=>{_0x1c5690[_0xb78d('0x11')][_0xb78d('0x18')][_0xb78d('0x51')]();}),_0x2fa6cd[_0xb78d('0x1')]['on']('execute',()=>{_0x1c5690[_0xb78d('0x11')][_0xb78d('0x18')][_0xb78d('0x51')]();}),_0x65039a=_0x3a427f['createAnnotationView'](this[_0xb78d('0x5a')]['locale'],_0x2fa6cd),_0x65039a[_0xb78d('0x57')](_0xb78d('0x32'))['to'](_0x2fa6cd,_0xb78d('0x32')),_0x65039a[_0xb78d('0x57')](_0xb78d('0x67'))['to'](_0x2fa6cd),_0x65039a[_0xb78d('0x57')](_0xb78d('0x6a'))['to'](_0x2fa6cd,_0xb78d('0x6a'),_0x579aa1=>_0xb78d('0x44')+_0x579aa1),this[_0xb78d('0x31')]['set'](_0x4e3eb0['id'],_0x65039a));const _0x38c4e7=_0x3ee704['createCommentThreadController'](_0x4e3eb0[_0xb78d('0x3e')],_0x2fa6cd),_0x281661=new _0x37fff0(_0x1c5690,_0x4e3eb0,_0x2fa6cd,_0x38c4e7),_0x801820=_0x4e3eb0[_0xb78d('0x3c')]()[_0xb78d('0x23')](_0x19d13b=>_0x19d13b[_0xb78d('0x35')]);_0x2fa6cd['descriptionParts']=_0x1c5690['plugins'][_0xb78d('0x28')](_0xb78d('0x56'))['_descriptionFactory'][_0xb78d('0x54')](_0x801820),this[_0xb78d('0xb')]['set'](_0x4e3eb0,_0x281661),this[_0xb78d('0x4a')][_0xb78d('0x2b')](_0x2fa6cd,_0x281661);const _0x3c84b7=_0x3a427f[_0xb78d('0x69')]({'view':_0x65039a,'target':()=>{const _0x14b71c=[],_0x353b5d=_0x4e3eb0['getAllAdjacentSuggestions']()[_0xb78d('0x23')](_0x289f31=>_0x289f31['isInContent']);for(const _0x4de5ad of _0x353b5d)_0x14b71c['push'](..._0x4de5ad['getMarkers']());return _0x134312(_0x1c5690[_0xb78d('0x11')],_0x14b71c);},'type':()=>'suggestion-'+_0x281661['view']['type']});_0x3ee704[_0xb78d('0x62')](_0x2fa6cd,_0x3c84b7),_0x3a427f[_0xb78d('0x49')](_0x3c84b7),_0x5dff4d[_0xb78d('0x4d')](_0x3c84b7);}['_destroyController'](_0x338f4e){const _0x539499=this['editor']['plugins'][_0xb78d('0x28')]('CommentsRepository'),_0x1d0162=this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x419164=this[_0xb78d('0xb')]['get'](_0x338f4e),_0x547297=_0x419164['view'],_0x418bc4=_0x1d0162[_0xb78d('0x46')](_0x547297);_0x539499[_0xb78d('0xd')](_0x547297),_0x418bc4&&_0x1d0162['remove'](_0x418bc4),this[_0xb78d('0xb')][_0xb78d('0x5e')](_0x338f4e),this[_0xb78d('0x4a')][_0xb78d('0x5e')](_0x547297),_0x419164[_0xb78d('0x3a')]();}[_0xb78d('0x4')](_0x271a8e){if(!_0x271a8e[_0xb78d('0x35')]||!this['_suggestionToController']['has'](_0x271a8e))return;const _0x1672f8=this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x56')),_0x3f558c=this[_0xb78d('0xb')][_0xb78d('0x28')](_0x271a8e),_0x44356d=_0x271a8e['getAllAdjacentSuggestions']();_0x3f558c['view'][_0xb78d('0x58')]=_0x1672f8['_descriptionFactory'][_0xb78d('0x54')](_0x44356d);}[_0xb78d('0x3a')](){for(const _0x1fd890 of this['_suggestionToController'][_0xb78d('0x21')]())this['_destroyController'](_0x1fd890);for(const _0x581b39 of this['_annotationViews'][_0xb78d('0x64')]())_0x581b39[_0xb78d('0x40')][_0xb78d('0x3a')]();super[_0xb78d('0x3a')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x587c=['commentThreadController','isEnabled','commands','_acceptCommand','bind','PENDING_ACTION_SUGGESTION','locale','_removePendingAction','_pendingAction','acceptSuggestion','PendingActions','model','canAccept','isDirty','_setPendingAction','canEditAt','get','_discardCommand','discardSuggestion','execute','getRanges','_editor','add','plugins','remove','view','destroy','listenTo'];(function(_0xc3da65,_0x587c6e){const _0x2b0e90=function(_0x297fc0){while(--_0x297fc0){_0xc3da65['push'](_0xc3da65['shift']());}};_0x2b0e90(++_0x587c6e);}(_0x587c,0x97));const _0x2b0e=function(_0xc3da65,_0x587c6e){_0xc3da65=_0xc3da65-0x0;let _0x2b0e90=_0x587c[_0xc3da65];return _0x2b0e90;};import{ObservableMixin as _0xda5ce4}from'ckeditor5/src/utils';import{getTranslation as _0x241661}from'../utils/common-translations';export default class Gt extends _0xda5ce4(){constructor(_0x407d24,_0x54c500,_0x33359b,_0x57c1c1){super(),this[_0x2b0e('0x0')]=_0x54c500,this[_0x2b0e('0xe')]=_0x33359b,this[_0x2b0e('0x11')]=_0x57c1c1,this[_0x2b0e('0xa')]=_0x407d24,this[_0x2b0e('0x14')]=_0x407d24[_0x2b0e('0x13')][_0x2b0e('0x5')](_0x2b0e('0x1a')),this[_0x2b0e('0x6')]=_0x407d24['commands'][_0x2b0e('0x5')](_0x2b0e('0x7')),this[_0x2b0e('0xe')]['bind'](_0x2b0e('0x12'))['to'](this[_0x2b0e('0x14')],this[_0x2b0e('0x6')],(_0x3bd950,_0x1a99ab)=>_0x3bd950||_0x1a99ab),this[_0x2b0e('0xe')][_0x2b0e('0x15')](_0x2b0e('0x1'))['to'](this[_0x2b0e('0x14')],_0x2b0e('0x12'),_0x52a1f1=>_0x52a1f1&&this[_0x2b0e('0xa')][_0x2b0e('0x0')]['canEditAt'](_0x54c500[_0x2b0e('0x9')]())),this[_0x2b0e('0xe')][_0x2b0e('0x15')]('canDiscard')['to'](this[_0x2b0e('0x6')],'isEnabled',_0x4b49de=>_0x4b49de&&this[_0x2b0e('0xa')][_0x2b0e('0x0')][_0x2b0e('0x4')](_0x54c500['getRanges']())),this[_0x2b0e('0x19')]=null,_0x33359b[_0x2b0e('0x2')]&&this[_0x2b0e('0x3')](),this[_0x2b0e('0x10')](_0x33359b,_0x2b0e('0x1a'),()=>this[_0x2b0e('0x1a')]()),this[_0x2b0e('0x10')](_0x33359b,_0x2b0e('0x7'),()=>this[_0x2b0e('0x7')]()),this[_0x2b0e('0x10')](_0x33359b,'change:isDirty',()=>{_0x33359b[_0x2b0e('0x2')]?this[_0x2b0e('0x3')]():this[_0x2b0e('0x18')]();});}[_0x2b0e('0x1a')](){this[_0x2b0e('0x14')][_0x2b0e('0x8')](this['model']['id']);}[_0x2b0e('0x7')](){this['_discardCommand'][_0x2b0e('0x8')](this['model']['id']);}['destroy'](){this[_0x2b0e('0xe')]['unbind'](_0x2b0e('0x12')),this[_0x2b0e('0xe')]['unbind'](_0x2b0e('0x1')),this[_0x2b0e('0xe')]['unbind']('canDiscard'),this['stopListening'](),this[_0x2b0e('0x11')][_0x2b0e('0xf')](),this['_pendingAction']&&this[_0x2b0e('0x18')]();}['_setPendingAction'](){const _0x35f23c=_0x241661(this[_0x2b0e('0xa')][_0x2b0e('0x17')],_0x2b0e('0x16'));this['_pendingAction']=this[_0x2b0e('0xa')][_0x2b0e('0xc')][_0x2b0e('0x5')](_0x2b0e('0x1b'))[_0x2b0e('0xb')](_0x35f23c);}[_0x2b0e('0x18')](){null!==this[_0x2b0e('0x19')]&&this[_0x2b0e('0xa')]['plugins'][_0x2b0e('0x5')]('PendingActions')[_0x2b0e('0xd')](this[_0x2b0e('0x19')]),this[_0x2b0e('0x19')]=null;}}
23
+ const _0x384f=['destroy','_pendingAction','PendingActions','view','canDiscard','PENDING_ACTION_SUGGESTION','locale','isEnabled','model','discardSuggestion','_discardCommand','remove','isDirty','get','_acceptCommand','_editor','commands','_setPendingAction','_removePendingAction','bind','getRanges','unbind','listenTo','commentThreadController','canAccept','plugins','canEditAt','add','execute'];(function(_0x5d71a9,_0x384fa4){const _0x4b3c79=function(_0x3c4d8c){while(--_0x3c4d8c){_0x5d71a9['push'](_0x5d71a9['shift']());}};_0x4b3c79(++_0x384fa4);}(_0x384f,0x1ec));const _0x4b3c=function(_0x5d71a9,_0x384fa4){_0x5d71a9=_0x5d71a9-0x0;let _0x4b3c79=_0x384f[_0x5d71a9];return _0x4b3c79;};import{ObservableMixin as _0x2900cc}from'ckeditor5/src/utils';import{getTranslation as _0x434af1}from'../utils/common-translations';export default class Gt extends _0x2900cc(){constructor(_0x72a8bc,_0x436dd1,_0x6a4620,_0x2397e5){super(),this[_0x4b3c('0x9')]=_0x436dd1,this[_0x4b3c('0x4')]=_0x6a4620,this[_0x4b3c('0x18')]=_0x2397e5,this[_0x4b3c('0x10')]=_0x72a8bc,this['_acceptCommand']=_0x72a8bc[_0x4b3c('0x11')][_0x4b3c('0xe')]('acceptSuggestion'),this['_discardCommand']=_0x72a8bc['commands'][_0x4b3c('0xe')](_0x4b3c('0xa')),this[_0x4b3c('0x4')][_0x4b3c('0x14')](_0x4b3c('0x8'))['to'](this[_0x4b3c('0xf')],this['_discardCommand'],(_0x539940,_0x317661)=>_0x539940||_0x317661),this[_0x4b3c('0x4')][_0x4b3c('0x14')](_0x4b3c('0x19'))['to'](this[_0x4b3c('0xf')],'isEnabled',_0x433a3f=>_0x433a3f&&this[_0x4b3c('0x10')][_0x4b3c('0x9')][_0x4b3c('0x1b')](_0x436dd1[_0x4b3c('0x15')]())),this[_0x4b3c('0x4')]['bind'](_0x4b3c('0x5'))['to'](this[_0x4b3c('0xb')],_0x4b3c('0x8'),_0x18ce66=>_0x18ce66&&this[_0x4b3c('0x10')][_0x4b3c('0x9')][_0x4b3c('0x1b')](_0x436dd1['getRanges']())),this[_0x4b3c('0x2')]=null,_0x6a4620[_0x4b3c('0xd')]&&this[_0x4b3c('0x12')](),this[_0x4b3c('0x17')](_0x6a4620,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x4b3c('0x17')](_0x6a4620,_0x4b3c('0xa'),()=>this[_0x4b3c('0xa')]()),this[_0x4b3c('0x17')](_0x6a4620,'change:isDirty',()=>{_0x6a4620[_0x4b3c('0xd')]?this[_0x4b3c('0x12')]():this[_0x4b3c('0x13')]();});}['acceptSuggestion'](){this[_0x4b3c('0xf')][_0x4b3c('0x0')](this[_0x4b3c('0x9')]['id']);}[_0x4b3c('0xa')](){this['_discardCommand']['execute'](this[_0x4b3c('0x9')]['id']);}[_0x4b3c('0x1')](){this['view'][_0x4b3c('0x16')](_0x4b3c('0x8')),this[_0x4b3c('0x4')][_0x4b3c('0x16')](_0x4b3c('0x19')),this[_0x4b3c('0x4')][_0x4b3c('0x16')](_0x4b3c('0x5')),this['stopListening'](),this[_0x4b3c('0x18')][_0x4b3c('0x1')](),this['_pendingAction']&&this[_0x4b3c('0x13')]();}['_setPendingAction'](){const _0xd9d632=_0x434af1(this[_0x4b3c('0x10')][_0x4b3c('0x7')],_0x4b3c('0x6'));this['_pendingAction']=this['_editor'][_0x4b3c('0x1a')]['get'](_0x4b3c('0x3'))[_0x4b3c('0x1c')](_0xd9d632);}[_0x4b3c('0x13')](){null!==this[_0x4b3c('0x2')]&&this[_0x4b3c('0x10')][_0x4b3c('0x1a')][_0x4b3c('0xe')](_0x4b3c('0x3'))[_0x4b3c('0xc')](this[_0x4b3c('0x2')]),this['_pendingAction']=null;}}