@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230910.0 → 0.0.0-nightly-20230912.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20230910.0",
3
+ "version": "0.0.0-nightly-20230912.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "0.0.0-nightly-20230910.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230910.0",
42
+ "ckeditor5": "0.0.0-nightly-20230912.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230912.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12ed=['getLastMatchingPosition','_adapter','$graveyard','discard','_addThreadToSuggestion','previous','change','activeMarkers','removed','howMany','getFirstRange','from','hasComments','isDocumentOperation','_refreshSuggestionsChain','isOwn','getAllAdjacentSuggestions','consumable','documentSelection','isTouching','$textProxy','_breakSuggestionMarker','enqueueChange','consume','_joinWithAdjacentSuggestions','change:activeMarkers','marker-count','isAtStart','deletion','setSelection','commandName','clone','_removeSuggestion','isAfter','pluginName','elementEnd','batch','acceptSuggestion','insertion','getCommentThread','setTo','data','insertContent','markMultiRangeDeletion','_createSuggestion','high','for','CommentsRepository','init','editor','createPositionAt','assign','getChanges','delete','oldRange','model','adapter','splice','accept','element','type','_handleNewSuggestionMarker','getSuggestions','containsPosition','backward','never','addMarker:suggestion','ck-suggestion-marker--active','setAttribute','collaboration.channelId','discardSelectedSuggestions','creator','schema','formatInline','name','_cutOutSuggestionMarker','acceptSelectedSuggestions','unbind','_commentsRepository','getSuggestion','insertion:chain','deletion:chain','getUser','stopListening','ck-suggestion-marker','elementToElement','_suggestionState','_isForcedDefaultExecutionBlock','_isDataLoaded','get','range','editingDowncast','author','newRange','notReady','addMarker','removeMarkers','join','suggestionUnloaded','then','suggestion','_suggestions','value','data-suggestion','always','markDeletion','ready','addSuggestionData','getSuggestionCallback','insertion:join','ck-suggestion-marker-','isInContent','mapper','markerNameToElements','isObject','every','default','formatInline:chain','getMultiRangeId','markMultiRangeInsertion','config','ck-suggestion-marker-formatBlock','registerCustomCallback','isRemovable','addSuggestion','_descriptionFactory','_suggestionFactory','createRange','markerToData','nodeBefore','add','requires','forward','external:','_addSuggestionMarker','rootName','_saved','showSuggestionHighlights','_checkSuggestionCorrectness','map','next','conversion','_mergeNestedSuggestions','attributes','formatBlock:join','isAtEnd','lowest','splitPosition','dataDowncast','removeMarker','isLimit','return','removeClass','forceDefaultExecution','acceptAllSuggestions','differ','_setSuggestionData','enableReadOnlyMode','rethrowUnexpectedError','split','deletion:','addHighlight','addCommentThread','discardSuggestion','Users','upcast','length','isEqual','plugins','skipNestingCheck','applyOperation','normal','track-changes-suggestion-not-found','writer','isArray','isBlock','createdAt','containsItem','getWalker','containsRange','insertion:','suggestionLoaded','isLocal','markers','multi','catch','enableCommand','_getSuggestionData','open','getCustomProperty','_getExternalAuthor','getIntersection','_getAuthorFromId','updateMarker','trackChangesCommand','commands','_rangeIsInLocalUserInsertion','PendingActions','addMarker:suggestion:formatBlock','detach','_model','registerPostFixer','_setSuggestionRange','removeAttribute','createPositionBefore','formatInline:discard','toViewElement','head','dataReady','position','_editor','addRange','_customCallbacks','sort','formatInline:accept','isUndo','hasSuggestion','deletion:accept','getNearestSelectionRange','fromRange','isMultiRange','originalSuggestionId','createElement','selection','_enabledCommands','markerReady','multipleBlocks','after','markerName','removeComment','document','isExternal','nodeAfter','change:data','end','formatGroupId','formatInline:','define','move','substr','highest','buildSuggestion','dataToMarker','addMarkerName','getDifference','markerToHighlight','suggestionChanged','hasCommentThread','includes','isInsideObject','_splitMarkerName','createSelection','isIntersectingWithRange','resolve','fetchCommentThread','start','getAncestors','getFirstMarker','refresh','size','suggestion:','discardAllSuggestions','getRange','remove','formatBlock:','getMarkers','set','_updateSuggestionData','isCollapsed','item','markMultiRangeBlockFormat','TrackChangesEditing','listenTo','_defaultCallbacks','containerElement','commentThread','subType','before','suggestion-type','push','deletion:discard','_findSuggestions','trackChanges','root','containsRangeInObject','track-changes-suggestion-data-mismatch','@external','getRanges','_joinSuggestions','deleteContent','parent','insertion:accept','low','locale','values','trackChanges.trackFormatChanges','getChangedMarkers','has','markInsertion','isNextTo','reconvertMarker','insert','fromCharCode','execute','formatBlock:chain','some','removeMarker:suggestion:formatBlock','fire','_registerDefaultCallbacks','isSelectable','deletion:join','group','filter','formatBlock','PENDING_ACTION_SUGGESTION','options','authoredAt','updateSuggestion','_trackFormatChanges','widget','getAttribute','$marker','accepted','editing','stop','addClass','isBefore','getShiftedBy'];(function(_0x422720,_0x12ed2d){const _0x5f118e=function(_0x3eb003){while(--_0x3eb003){_0x422720['push'](_0x422720['shift']());}};_0x5f118e(++_0x12ed2d);}(_0x12ed,0x17a));const _0x5f11=function(_0x422720,_0x12ed2d){_0x422720=_0x422720-0x0;let _0x5f118e=_0x12ed[_0x422720];return _0x5f118e;};import{Plugin as _0x344cb2,PendingActions as _0x4eafc3}from'ckeditor5/src/core';import{LiveRange as _0x21916d}from'ckeditor5/src/engine';import{CKEditorError as _0x2cf346,uid as _0x10549d,priorities as _0x3ccadf,logWarning as _0x593ff6}from'ckeditor5/src/utils';import{toWidget as _0xfd0e23}from'ckeditor5/src/widget';import{Users as _0x933fb4,hashObject as _0x281bde}from'ckeditor5-collaboration/src/collaboration-core';import _0xa54139 from'./commands/trackchangescommand';import _0x1baaf6 from'./commands/acceptsuggestioncommand';import _0x2dfaf9 from'./commands/discardsuggestioncommand';import _0x1b9d15 from'./commands/executeonallsuggestionscommand';import _0x457fd9 from'./commands/executeonselectedsuggestionscommand';import _0x2ad42f from'./suggestion';import _0x4ce1ea from'./suggestiondescriptionfactory';import _0x1af5ce from'./integrations/alignment';import _0x220c43 from'./integrations/basicstyles';import _0x1e4601 from'./integrations/blockquote';import _0x46bf12 from'./integrations/ckbox';import _0x45b5f5 from'./integrations/codeblock';import _0x5eae45 from'./integrations/comments';import _0x4e4fc0 from'./integrations/deletecommand';import _0x558efe from'./integrations/documentlist';import _0x6e3001 from'./integrations/entercommand';import _0x1d6b3f from'./integrations/findandreplace';import _0x1a7cb0 from'./integrations/font';import _0x42c30d from'./integrations/formatpainter';import _0x11acd4 from'./integrations/heading';import _0x5c3890 from'./integrations/highlight';import _0x5aaf98 from'./integrations/horizontalline';import _0x464088 from'./integrations/htmlembed';import _0x41f811 from'./integrations/image';import _0x25d3cb from'./integrations/imagereplace';import _0x4329f7 from'./integrations/importword';import _0x2b0798 from'./integrations/indent';import _0x52faa7 from'./integrations/inputcommand';import _0x470fb1 from'./integrations/link';import _0x402e1e from'./integrations/list';import _0x333177 from'./integrations/listproperties';import _0x580a01 from'./integrations/mediaembed';import _0x1cfd2d from'./integrations/mention';import _0x54b7f3 from'./integrations/pagebreak';import _0x30353a from'./integrations/paragraph';import _0x24d8cd from'./integrations/removeformat';import _0x3c157a from'./integrations/restrictededitingmode';import _0x437969 from'./integrations/shiftentercommand';import _0x470231 from'./integrations/standardeditingmode';import _0x2b70b9 from'./integrations/style';import _0x146bd9 from'./integrations/table';import _0xb667d1 from'./integrations/tablemergesplit';import _0x24a12d from'./integrations/tableheadings';import _0x5f27e7 from'./integrations/tableclipboard';import _0x9e2e1d from'./integrations/tablecolumnresize';import _0xf1e729 from'./integrations/template';import _0x2d042a from'./integrations/tableofcontents';import _0x305002 from'./integrations/title';import _0x516061 from'./integrations/undo';import{getTranslation as _0x415b1b}from'./utils/common-translations';import _0x55f011 from'./integrations/tablecaption';import _0x33a3a7 from'./integrations/documentlistproperties';import _0x32ac01 from'./integrations/tableproperties';import{isEqual as _0x252be2}from'lodash-es';export default class p extends _0x344cb2{static get[_0x5f11('0x51')](){return['CommentsRepository',_0x933fb4,_0x4eafc3,_0x1af5ce,_0x220c43,_0x1e4601,_0x46bf12,_0x45b5f5,_0x5eae45,_0x4e4fc0,_0x558efe,_0x33a3a7,_0x6e3001,_0x1d6b3f,_0x1a7cb0,_0x42c30d,_0x11acd4,_0x5c3890,_0x5aaf98,_0x464088,_0x41f811,_0x25d3cb,_0x4329f7,_0x2b0798,_0x52faa7,_0x470fb1,_0x402e1e,_0x333177,_0x580a01,_0x1cfd2d,_0x54b7f3,_0x30353a,_0x24d8cd,_0x3c157a,_0x437969,_0x470231,_0x2b70b9,_0x146bd9,_0xb667d1,_0x24a12d,_0x55f011,_0x5f27e7,_0x9e2e1d,_0x2d042a,_0x32ac01,_0xf1e729,_0x305002,_0x516061];}static get[_0x5f11('0x138')](){return _0x5f11('0xdd');}constructor(_0x3e4837){function _0x59f670(_0x20d9e6){return _0x20d9e6[_0x5f11('0x59')](_0x32ac8d=>String[_0x5f11('0xfc')](_0x32ac8d))[_0x5f11('0x2f')]('');}super(_0x3e4837),this[_0x5f11('0xd8')](_0x5f11('0x11d'),[]),this['on'](_0x5f11('0x12f'),(_0x68f65c,_0x3f4ea5,_0x10aa08,_0x522744)=>{this[_0x5f11('0x96')][_0x5f11('0x11c')](()=>{for(const _0x2495d3 of[..._0x522744,..._0x10aa08])this['_model'][_0x5f11('0x85')][_0x5f11('0xf7')](_0x2495d3)&&_0x3e4837[_0x5f11('0x111')][_0x5f11('0xfa')](_0x2495d3);});}),this[_0x5f11('0x4b')]=new _0x4ce1ea(this[_0x5f11('0x147')][_0x5f11('0x5')][_0x5f11('0x16')],this['editor'][_0x5f11('0xf3')]),this[_0x5f11('0x117')]=null,this[_0x5f11('0x4c')]=new Dt(this[_0x5f11('0x147')]),this[_0x5f11('0x33')]=new Map(),this[_0x5f11('0x1c')]=_0x3e4837[_0x5f11('0x76')]['get'](_0x5f11('0x145')),this[_0x5f11('0xae')]=new Set(),this['_model']=this[_0x5f11('0x147')][_0x5f11('0x5')],this[_0x5f11('0x24')]=new WeakMap(),this[_0x5f11('0x25')]=!0x1,_0x3e4837[_0x5f11('0x46')]['define'](_0x5f11('0xf5'),_0x5f11('0x42')),this[_0x5f11('0x10c')]=_0x3e4837[_0x5f11('0x46')][_0x5f11('0x27')](_0x5f11('0xf5')),_0x3e4837['config'][_0x5f11('0xbb')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x5f11('0x5c')]=_0x3e4837['config'][_0x5f11('0x27')]('trackChanges.mergeNestedSuggestions'),this[_0x5f11('0x90')]=new _0xa54139(_0x3e4837,this[_0x5f11('0xae')]),this[_0x59f670([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x59f670([0x34,0x30,0x34,0x36,0x31,0x38,0x32,0x30]);}[_0x5f11('0x146')](){const _0x4eaaf2=this[_0x5f11('0x147')];_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x29'))[_0x5f11('0xc3')]({'model':'suggestion','view':_0x5aca53=>{const {id:_0x1dc242,type:_0x58fa41}=this[_0x5f11('0xc8')](_0x5aca53[_0x5f11('0xb2')]),_0x57cf25=[_0x5f11('0x22'),_0x5f11('0x3c')+_0x58fa41];let _0x37940f=0xbb8;return this[_0x5f11('0x11d')][_0x5f11('0xc6')](_0x5aca53[_0x5f11('0xb2')])&&(_0x57cf25['push'](_0x5f11('0x11')),_0x37940f=0xbc2),_0x5f11('0x132')==_0x58fa41&&(_0x37940f+=0x5),{'classes':_0x57cf25,'attributes':{'data-suggestion':_0x1dc242},'priority':_0x37940f};}}),_0x4eaaf2['conversion'][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0x50')](_0x9f9abc=>{_0x9f9abc['on'](_0x5f11('0x10'),(_0x143568,_0x355d52,_0x1b2f6e)=>{if(!_0x1b2f6e['options']['showSuggestionHighlights'])return;const _0x111221=_0x355d52[_0x5f11('0xdb')];if(!_0x111221)return;const _0x4c0873=_0x1b2f6e[_0x5f11('0x3e')]['toViewElement'](_0x111221);_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x16')][_0x5f11('0x40')](_0x111221)&&_0x4c0873&&!_0x4c0873[_0x5f11('0x8b')](_0x5f11('0x10d'))&&_0x4c0873['is'](_0x5f11('0xe0'))&&_0xfd0e23(_0x4c0873,_0x1b2f6e['writer']);},{'priority':_0x5f11('0x143')});}),_0x4eaaf2['conversion'][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0xc3')]({'model':_0x5f11('0x32'),'view':(_0x24d1e8,_0x48883f)=>{if(!_0x48883f[_0x5f11('0x109')][_0x5f11('0x57')])return null;const {type:_0x110a6e}=this[_0x5f11('0xc8')](_0x24d1e8[_0x5f11('0xb2')]);return{'classes':[_0x5f11('0x22'),_0x5f11('0x3c')+_0x110a6e],'priority':0xbb8};}});const _0x2c4e41=({showActiveMarkers:_0x50025a=!0x0}={})=>(_0x3f9f1d,_0x22367a,_0x4f8b2d)=>{if(!_0x22367a['item'])return;if(_0x22367a[_0x5f11('0xdb')]['is'](_0x5f11('0xad')))return void _0x4f8b2d[_0x5f11('0x127')][_0x5f11('0x12d')](_0x22367a[_0x5f11('0xdb')],_0x3f9f1d['name']);const _0x22086d=_0x4f8b2d[_0x5f11('0x3e')][_0x5f11('0x9c')](_0x22367a[_0x5f11('0xdb')]);if(!(_0x22367a[_0x5f11('0xdb')]['is']('element')&&_0x4eaaf2['model'][_0x5f11('0x16')][_0x5f11('0x7d')](_0x22367a[_0x5f11('0xdb')])&&!_0x22086d[_0x5f11('0x8b')](_0x5f11('0x6f'))))return;const {id:_0x1a82b2}=this[_0x5f11('0xc8')](_0x22367a[_0x5f11('0xb2')]);_0x4f8b2d[_0x5f11('0x7b')]['addClass']([_0x5f11('0x22'),_0x5f11('0x47')],_0x22086d),_0x4f8b2d['writer'][_0x5f11('0x12')](_0x5f11('0x35'),_0x1a82b2,_0x22086d),_0x4f8b2d[_0x5f11('0x3e')]['bindElementToMarker'](_0x22086d,_0x22367a[_0x5f11('0xb2')]),_0x50025a&&(this['activeMarkers'][_0x5f11('0xc6')](_0x22367a[_0x5f11('0xb2')])?_0x4f8b2d[_0x5f11('0x7b')][_0x5f11('0x113')]('ck-suggestion-marker--active',_0x22086d):_0x4f8b2d[_0x5f11('0x7b')][_0x5f11('0x66')](_0x5f11('0x11'),_0x22086d));for(const _0x7bd077 of _0x4eaaf2[_0x5f11('0x5')]['createRangeIn'](_0x22367a['item'])['getItems']())_0x4f8b2d[_0x5f11('0x127')][_0x5f11('0x12d')](_0x7bd077,_0x3f9f1d[_0x5f11('0x18')]);_0x4f8b2d[_0x5f11('0x127')][_0x5f11('0x12d')](_0x22367a[_0x5f11('0xdb')],_0x3f9f1d['name']);};_0x4eaaf2['conversion'][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0x50')](_0x2760fd=>{_0x2760fd['on'](_0x5f11('0x94'),(_0x3ae805,_0x45d15b,_0x529e88)=>{_0x529e88[_0x5f11('0x109')][_0x5f11('0x57')]&&_0x2c4e41({'showActiveMarkers':!0x1})(_0x3ae805,_0x45d15b,_0x529e88);},{'priority':_0x5f11('0xbe')});}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0x4e')]({'model':_0x5f11('0x32'),'view':(_0x449d28,_0x3f618c)=>_0x3f618c[_0x5f11('0x109')][_0x5f11('0x57')]?null:{'group':_0x5f11('0x32'),'name':_0x449d28[_0x5f11('0xbd')](0xb)}}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x73'))[_0x5f11('0x23')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1fae1e,{writer:_0x29f24e})=>{let _0x14308d=_0x5f11('0xd2')+_0x1fae1e['getAttribute'](_0x5f11('0xe4'))+':'+_0x1fae1e['getAttribute']('id');return _0x1fae1e[_0x5f11('0x10e')]('marker-count')&&(_0x14308d+=':'+_0x1fae1e[_0x5f11('0x10e')](_0x5f11('0x130'))),_0x29f24e[_0x5f11('0xac')](_0x5f11('0x10f'),{'data-name':_0x14308d});}}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')]('upcast')[_0x5f11('0xc0')]({'view':_0x5f11('0x32')}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x29'))[_0x5f11('0x50')](_0x1dccbe=>{_0x1dccbe['on']('addMarker:suggestion:formatBlock',_0x2c4e41(),{'priority':'high'});}),_0x4eaaf2[_0x5f11('0x5b')]['for'](_0x5f11('0x29'))['add'](_0x475c28=>{_0x475c28['on'](_0x5f11('0x100'),(_0x3907ec,_0x2950d3,_0x11276c)=>{const _0x1d95bf=_0x11276c['mapper'][_0x5f11('0x3f')](_0x2950d3[_0x5f11('0xb2')]);if(_0x1d95bf)for(const _0x363f57 of _0x1d95bf)_0x363f57[_0x5f11('0x8b')](_0x5f11('0x6f'))||(_0x11276c['writer'][_0x5f11('0x66')]([_0x5f11('0x22'),'ck-suggestion-marker-formatBlock',_0x5f11('0x11')],_0x363f57),_0x11276c['writer'][_0x5f11('0x99')](_0x5f11('0x35'),_0x363f57),_0x11276c['mapper']['unbindElementFromMarkerName'](_0x363f57,_0x2950d3['markerName']));},{'priority':_0x5f11('0x143')});}),_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')][_0x5f11('0x97')](_0x486f23=>{let _0x350862=!0x1;const _0x33fd40=Array['from'](_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')][_0x5f11('0x69')][_0x5f11('0xf6')]()),_0x193f45=new Set();for(const {name:_0x3b39c7,data:_0x255229}of _0x33fd40){const {group:_0x4b6300,type:_0x49a71b,id:_0x55d5f7}=this['_splitMarkerName'](_0x3b39c7);if(_0x5f11('0x32')!==_0x4b6300)continue;const _0xb60774=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x55d5f7);if(null!=_0x255229[_0x5f11('0x2b')]){_0x5f11('0x17')==_0x49a71b&&(_0x350862=_0x350862||Mt(_0x255229[_0x5f11('0x2b')],_0x3b39c7,_0x486f23,_0x4eaaf2['model']['schema']));if(_0x255229[_0x5f11('0x2b')]['isCollapsed']||_0x5f11('0x118')==_0x255229[_0x5f11('0x2b')][_0x5f11('0xe9')][_0x5f11('0x55')]||'formatBlock'==_0x49a71b&&!Nt(_0x255229[_0x5f11('0x2b')])||_0x5f11('0x132')==_0x49a71b&&!(!_t(_0x56d78c=_0x255229[_0x5f11('0x2b')])&&!function(_0x435858){return _0x435858['start'][_0x5f11('0xf0')]==_0x435858['end']['nodeBefore']&&_0x435858['start'][_0x5f11('0x5f')];}(_0x56d78c)))_0x486f23[_0x5f11('0x63')](_0x3b39c7),_0x350862=!0x0;else{if(!_0xb60774||!_0xb60774[_0x5f11('0x3d')])continue;_0x193f45['add'](_0xb60774);}}}var _0x56d78c;return _0x193f45['size']>0x0&&(_0x350862=!!this[_0x5f11('0x12e')](_0x193f45)||_0x350862),_0x350862;}),_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')][_0x5f11('0x97')](_0x31b0ef=>{let _0x14f1ee=!0x1;for(const _0x161ee2 of _0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')]['differ'][_0x5f11('0x2')]()){if(_0x5f11('0xfb')!=_0x161ee2[_0x5f11('0xa')])continue;const _0x210432=_0x161ee2[_0x5f11('0x9f')][_0x5f11('0x115')](_0x161ee2[_0x5f11('0x74')]);if(_0x210432[_0x5f11('0x5f')])for(const _0x345323 of this[_0x5f11('0x33')][_0x5f11('0xf4')]()){if(_0x345323[_0x5f11('0xaa')]||!_0x345323['isInContent'])continue;if(_0x5f11('0x107')!=_0x345323[_0x5f11('0xa')])continue;const _0x218bfb=_0x345323['getFirstRange']();if(_0x218bfb[_0x5f11('0xcd')][_0x5f11('0xf0')]!=_0x218bfb[_0x5f11('0xb8')]['parent']&&_0x218bfb['end']['isEqual'](_0x161ee2[_0x5f11('0x9f')])){const _0x1953e6=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x4d')](_0x218bfb['start'],_0x210432);_0x31b0ef['updateMarker'](_0x345323[_0x5f11('0xcf')](),{'range':_0x1953e6}),_0x14f1ee=!0x0;}}}return _0x14f1ee;}),_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x85')]['on']('update:suggestion',(_0x1a6b2d,_0x2d0c12,_0x241292)=>{if(null==_0x241292){const {id:_0xbb84f1}=this['_splitMarkerName'](_0x2d0c12['name']),_0x2fc3db=this[_0x5f11('0x33')][_0x5f11('0x27')](_0xbb84f1);_0x2fc3db&&_0x2fc3db['addMarkerName'](_0x2d0c12[_0x5f11('0x18')]);}}),_0x4eaaf2[_0x5f11('0x5')]['document']['on'](_0x5f11('0xb7'),()=>{const _0x47ffe7=Array[_0x5f11('0x121')](_0x4eaaf2[_0x5f11('0x5')]['document'][_0x5f11('0x69')][_0x5f11('0xf6')]())['filter'](_0x5915b5=>_0x5f11('0x32')===this['_splitMarkerName'](_0x5915b5[_0x5f11('0x18')])[_0x5f11('0x105')]);if(0x0===_0x47ffe7[_0x5f11('0x74')])return;_0x47ffe7[_0x5f11('0xa3')]((_0x106890,_0x5e843d)=>{const _0x5f3a1a=_0x106890['data'][_0x5f11('0x4')],_0x453f1b=_0x5e843d['data'][_0x5f11('0x4')];return null===_0x5f3a1a&&null===_0x453f1b?0x0:null===_0x5f3a1a&&null!==_0x453f1b?-0x1:null!==_0x5f3a1a&&null===_0x453f1b?0x1:_0x5f3a1a[_0x5f11('0xcd')]['isBefore'](_0x453f1b[_0x5f11('0xcd')])?-0x1:0x1;});const _0x382612=new Set(),_0x4cc47d=new Set();for(const {name:_0x3441ae,data:_0x55f61f}of _0x47ffe7){const {id:_0x578256}=this[_0x5f11('0xc8')](_0x3441ae);if(null===_0x55f61f[_0x5f11('0x4')]){const _0x5f26b8=this['_handleNewSuggestionMarker'](_0x3441ae);_0x4cc47d['add'](_0x5f26b8);}else{const _0x3a5d13=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x578256);null!==_0x55f61f[_0x5f11('0x2b')]||_0x3a5d13[_0x5f11('0x3d')]?(_0x382612[_0x5f11('0x50')](_0x3a5d13[_0x5f11('0x9d')]),_0x4cc47d[_0x5f11('0x50')](_0x3a5d13)):this[_0x5f11('0x136')](_0x3a5d13);}}_0x4cc47d['size']>0x0&&this[_0x5f11('0x124')](_0x4cc47d);for(const _0x1f3cdc of _0x382612)this[_0x5f11('0x101')](_0x5f11('0xc4'),_0x1f3cdc);}),_0x4eaaf2[_0x5f11('0x5')]['on'](_0x5f11('0x78'),(_0x3394ea,_0x5da20e)=>{const _0x45b8f4=_0x5da20e[0x0];if(!this['_suggestions'][_0x5f11('0xd1')])return;if(!_0x45b8f4[_0x5f11('0x123')])return;if(_0x45b8f4[_0x5f11('0x13a')][_0x5f11('0xa5')]||!_0x45b8f4[_0x5f11('0x13a')][_0x5f11('0x84')])return;let _0x15ebf6,_0x35d448;switch(_0x45b8f4[_0x5f11('0xa')]){case _0x5f11('0xfb'):_0x15ebf6=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x0')](_0x45b8f4['position']),_0x35d448=_0x15ebf6[_0x5f11('0x115')](_0x45b8f4[_0x5f11('0x11f')]);break;case _0x5f11('0x6d'):_0x15ebf6=_0x4eaaf2[_0x5f11('0x5')]['createPositionAt'](_0x45b8f4[_0x5f11('0x61')]),_0x35d448=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x0')](_0x45b8f4['moveTargetPosition']);break;case _0x5f11('0xbc'):_0x15ebf6=_0x4eaaf2[_0x5f11('0x5')]['createPositionAt'](_0x45b8f4['targetPosition']),_0x35d448=_0x15ebf6[_0x5f11('0x115')](_0x45b8f4['howMany']);break;default:return;}const _0x756a74=_0x4eaaf2['model']['createRange'](_0x15ebf6,_0x35d448);_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x11c')](()=>{for(const {suggestion:_0x119959,meta:_0x5aefee}of this[_0x5f11('0xe7')](_0x756a74)){if(_0x119959[_0x5f11('0xaa')])continue;if('formatInline'==_0x119959['type'])continue;const _0xaa5006=_0x119959[_0x5f11('0x13f')]&&_0x119959[_0x5f11('0x13f')][_0x5f11('0xb0')];(_0x5f11('0x107')!=_0x119959[_0x5f11('0xa')]||_0x5f11('0x6d')==_0x45b8f4[_0x5f11('0xa')]&&!_0xaa5006)&&(_0x5aefee[_0x5f11('0xea')]||_0x5f11('0x13c')==_0x119959[_0x5f11('0xa')]&&_0x5aefee[_0x5f11('0x125')]||_0x119959['getFirstRange']()[_0x5f11('0x81')](_0x756a74)&&this[_0x5f11('0x12b')](_0x119959,_0x15ebf6,_0x35d448));}});},{'priority':_0x5f11('0x60')}),_0x4eaaf2[_0x5f11('0x5')]['on'](_0x5f11('0xef'),(_0x12f728,_0x15d0e8)=>{const _0x56fd86=_0x15d0e8[0x0],_0x59c042=_0x15d0e8[0x1];if(_0x59c042&&_0x59c042[_0x5f11('0x67')])return;if(this[_0x5f11('0x25')])return;if(!this[_0x5f11('0x90')][_0x5f11('0x34')])return;if(_0x56fd86[_0x5f11('0xda')])return;const _0xe1b8=_0x4eaaf2[_0x5f11('0x5')]['schema'],{start:_0xd84c69,end:_0x2f527b}=_0x56fd86[_0x5f11('0x120')](),_0x2f2ad5=_0xd84c69[_0x5f11('0xb6')]&&_0xe1b8[_0x5f11('0x64')](_0xd84c69[_0x5f11('0xb6')])?null:_0xe1b8[_0x5f11('0xa8')](_0xd84c69,_0x5f11('0x52')),_0x8ee018=_0x2f527b[_0x5f11('0x4f')]&&_0xe1b8[_0x5f11('0x64')](_0x2f527b[_0x5f11('0x4f')])?null:_0xe1b8[_0x5f11('0xa8')](_0x2f527b,_0x5f11('0xe')),_0x507a86=_0x4eaaf2['model'][_0x5f11('0x4d')](_0x2f2ad5?_0x2f2ad5['start']:_0xd84c69,_0x8ee018?_0x8ee018[_0x5f11('0xb8')]:_0x2f527b);_0x4eaaf2[_0x5f11('0x5')]['change'](_0x44d588=>{this['markDeletion'](_0x507a86);const _0xd19746=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x16')][_0x5f11('0xa8')](_0x507a86[_0x5f11('0xcd')]);_0x56fd86['is'](_0x5f11('0x128'))?_0x44d588['setSelection'](_0xd19746):_0x56fd86[_0x5f11('0x13e')](_0xd19746);}),_0x12f728['stop']();},{'priority':_0x3ccadf[_0x5f11('0x79')]+0xa}),_0x4eaaf2['model']['on']('insertContent',(_0x301169,_0x30d587)=>{const _0x3bc1ed=_0x30d587[_0x30d587['length']-0x1];_0x3bc1ed&&_0x3bc1ed[_0x5f11('0x67')]||this[_0x5f11('0x25')]||this[_0x5f11('0x90')][_0x5f11('0x34')]&&(_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x11c')](()=>{let _0x1e3037=_0x4eaaf2['model'][_0x5f11('0x140')](_0x30d587[0x0],_0x30d587[0x1],_0x30d587[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e3037)return;_0x301169[_0x5f11('0x65')]=_0x1e3037[_0x5f11('0x135')]();const _0x10f0a4=_0x1e3037[_0x5f11('0xb8')][_0x5f11('0x4f')],_0x3ec913=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x16')];_0x10f0a4&&_0x3ec913[_0x5f11('0x7d')](_0x10f0a4)&&!_0x3ec913[_0x5f11('0x40')](_0x10f0a4)&&(_0x1e3037=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x4d')](_0x1e3037[_0x5f11('0xcd')],_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x0')](_0x10f0a4,_0x5f11('0xb8')))),this[_0x5f11('0xf8')](_0x1e3037);}),_0x301169[_0x5f11('0x112')]());},{'priority':_0x5f11('0x143')}),this['editor']['commands'][_0x5f11('0x50')](_0x5f11('0xe8'),this[_0x5f11('0x90')]),this[_0x5f11('0x88')](_0x5f11('0xe8'));const _0x28ee5c=new _0x1baaf6(_0x4eaaf2,this[_0x5f11('0x33')]);_0x4eaaf2[_0x5f11('0x91')]['add'](_0x5f11('0x13b'),_0x28ee5c),this[_0x5f11('0x88')](_0x5f11('0x13b'));const _0x1525d9=new _0x2dfaf9(_0x4eaaf2,this[_0x5f11('0x33')]);_0x4eaaf2['commands'][_0x5f11('0x50')](_0x5f11('0x71'),_0x1525d9),this[_0x5f11('0x88')](_0x5f11('0x71')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')](_0x5f11('0x68'),new _0x1b9d15(_0x4eaaf2,_0x28ee5c,this[_0x5f11('0x33')])),this['enableCommand'](_0x5f11('0x68')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')](_0x5f11('0xd3'),new _0x1b9d15(_0x4eaaf2,_0x1525d9,this['_suggestions'])),this[_0x5f11('0x88')](_0x5f11('0xd3')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')](_0x5f11('0x1a'),new _0x457fd9(_0x4eaaf2,_0x28ee5c,this[_0x5f11('0x33')])),this['enableCommand'](_0x5f11('0x1a')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')]('discardSelectedSuggestions',new _0x457fd9(_0x4eaaf2,_0x1525d9,this[_0x5f11('0x33')])),this[_0x5f11('0x88')](_0x5f11('0x14'));const _0x3a29da=_0x4eaaf2[_0x5f11('0x76')][_0x5f11('0x27')]('CommentsRepository');this['listenTo'](_0x3a29da,'addComment',(_0x4f577b,{threadId:_0x1f9c6c})=>{const _0x4adcb0=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x1f9c6c);_0x4adcb0&&_0x4adcb0[_0x5f11('0xe1')]&&0x1===_0x4adcb0[_0x5f11('0xe1')][_0x5f11('0x74')]&&this[_0x5f11('0xd9')](_0x1f9c6c,{'hasComments':!0x0});},{'priority':_0x5f11('0xf2')}),this[_0x5f11('0xde')](_0x3a29da,_0x5f11('0xb3'),(_0xa37a18,{threadId:_0x106582})=>{const _0x37e7f3=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x106582);_0x37e7f3&&_0x37e7f3[_0x5f11('0xe1')]&&!_0x37e7f3[_0x5f11('0xe1')]['length']&&this[_0x5f11('0xd9')](_0x106582,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4c86c1){if(this[_0x5f11('0x117')])throw new _0x2cf346('track-changes-adapter-already-set',this);this['_adapter']=_0x4c86c1;}get[_0x5f11('0x6')](){return this[_0x5f11('0x117')];}['getSuggestions']({skipNotAttached:_0x4fae27=!0x1,toJSON:_0x44e698=!0x1}={}){const _0x5a1f26=[];for(const _0x33d4e9 of this[_0x5f11('0x33')][_0x5f11('0xf4')]())_0x4fae27&&!_0x33d4e9['isInContent']||_0x5a1f26[_0x5f11('0xe5')](_0x33d4e9);return _0x44e698?_0x5a1f26[_0x5f11('0x59')](_0x5ead9e=>_0x5ead9e['toJSON']()):_0x5a1f26;}[_0x5f11('0x1d')](_0x221a60){const _0x33cac5=this['_suggestions'][_0x5f11('0x27')](_0x221a60);if(!_0x33cac5)throw new _0x2cf346(_0x5f11('0x7a'),this);return _0x33cac5;}[_0x5f11('0xa6')](_0x42a722){return this[_0x5f11('0x33')][_0x5f11('0xf7')](_0x42a722);}[_0x5f11('0x39')](_0xaf6739){const {authorId:_0x54c130,id:_0xaa16d0,attributes:_0x4ad12f}=_0xaf6739,[_0x4439a3,_0x23d297]=_0xaf6739['type'][_0x5f11('0x6d')](':'),_0x5854ba=this['_suggestions']['get'](_0xaa16d0)||this[_0x5f11('0x142')](_0x4439a3,_0x23d297,_0xaa16d0,_0x54c130,_0x4ad12f);if(this[_0x5f11('0x11a')](_0x5854ba),this[_0x5f11('0x58')](_0x5854ba,_0x4439a3,_0x23d297||null,_0x54c130),_0x5854ba[_0x5f11('0x7e')]=_0xaf6739[_0x5f11('0x7e')],_0x5854ba['_isDataLoaded']=!0x0,_0x4ad12f&&_0x4ad12f['@external']){const _0x474bde=_0x4ad12f[_0x5f11('0xec')],_0x76453f=this['_getExternalAuthor'](_0x474bde['authorName']);_0x5854ba[_0x5f11('0x10a')]=_0x474bde[_0x5f11('0x7e')],_0x5854ba[_0x5f11('0x2a')]=_0x76453f,_0x5854ba[_0x5f11('0xb5')]=!0x0;}else _0x5854ba['authoredAt']=_0xaf6739[_0x5f11('0x7e')];switch(_0xaf6739[_0x5f11('0x13f')]&&(_0x5854ba['data']=_0xaf6739[_0x5f11('0x13f')]),_0xaf6739[_0x5f11('0x5d')]&&(_0x5854ba['attributes']=_0xaf6739[_0x5f11('0x5d')]),this[_0x5f11('0x117')]&&this[_0x5f11('0x117')][_0x5f11('0x4a')]||(_0x5854ba['_saved']=!0x0),this[_0x5f11('0x24')][_0x5f11('0x27')](_0x5854ba)){case _0x5f11('0x2c'):this[_0x5f11('0x24')]['set'](_0x5854ba,_0x5f11('0x9e'));break;case _0x5f11('0xaf'):_0x5854ba[_0x5f11('0x3d')]?(this['_refreshSuggestionsChain'](new Set([_0x5854ba])),this[_0x5f11('0x12e')](new Set([_0x5854ba])),this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x5854ba,'ready'),this['fire'](_0x5f11('0x83'),_0x5854ba)):this['_suggestionState']['set'](_0x5854ba,_0x5f11('0x11e'));}return _0x5854ba;}['acceptSuggestion'](_0x59fd8b){this[_0x5f11('0x67')](()=>{this[_0x5f11('0x147')][_0x5f11('0x5')][_0x5f11('0x11c')](()=>{for(const _0x3dbb8d of _0x59fd8b['getAllAdjacentSuggestions']())_0x3dbb8d[_0x5f11('0x8')]();});});}[_0x5f11('0x71')](_0x5bb789){this[_0x5f11('0x67')](()=>{this[_0x5f11('0x147')][_0x5f11('0x5')][_0x5f11('0x11c')](()=>{for(const _0x1aa355 of _0x5bb789[_0x5f11('0x126')]())_0x1aa355[_0x5f11('0x119')]();});});}[_0x5f11('0x88')](_0x44ae8d,_0x188ba9){const _0x358e6b=this[_0x5f11('0x147')][_0x5f11('0x91')][_0x5f11('0x27')](_0x44ae8d);if(!_0x358e6b)throw new _0x2cf346('track-changes-command-not-found',this,{'commandName':_0x44ae8d});this['_enabledCommands'][_0x5f11('0x50')](_0x358e6b),_0x188ba9&&_0x358e6b['on']('execute',(_0x8c7804,_0x45a9e7)=>{this[_0x5f11('0x90')][_0x5f11('0x34')]&&(this[_0x5f11('0x25')]||_0x45a9e7[_0x5f11('0x74')]>0x0&&_0x45a9e7[_0x45a9e7['length']-0x1]&&_0x45a9e7[_0x45a9e7[_0x5f11('0x74')]-0x1][_0x5f11('0x67')]||(_0x188ba9((..._0x39a59a)=>_0x358e6b[_0x5f11('0xfd')](..._0x39a59a,{'forceDefaultExecution':!0x0}),..._0x45a9e7),_0x8c7804[_0x5f11('0x112')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x45be25){let _0x406894,_0x427aa4;const _0x4c04ed=this[_0x5f11('0x25')];this[_0x5f11('0x25')]=!0x0;try{_0x406894=_0x45be25();}catch(_0x4812df){_0x427aa4=_0x4812df;}return _0x4c04ed||(this[_0x5f11('0x25')]=!0x1),_0x427aa4&&_0x2cf346[_0x5f11('0x6c')](_0x427aa4,this),_0x406894;}[_0x5f11('0xf8')](_0xa45713,_0x4bff53=null,_0x587df3={}){if(_0xa45713[_0x5f11('0xda')])return null;const _0x4136ed=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'];for(const {suggestion:_0x24151b,meta:_0x266401}of this['_findSuggestions'](_0xa45713,_0x5f11('0x13c')))if(_0x266401[_0x5f11('0x125')]){if(!_0x266401[_0x5f11('0xf9')]){if(_0x266401['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ut(_0x24151b,_0x587df3))continue;return _0x24151b;}if(Ut(_0x24151b,_0x587df3))return _0x24151b;this[_0x5f11('0x12b')](_0x24151b,_0xa45713['start'],_0xa45713['end']);break;}if(_0x4bff53==_0x24151b[_0x5f11('0xe2')]&&Ut(_0x24151b,_0x587df3)){const _0x1e5d2c=_0x24151b[_0x5f11('0x120')]();return _0x1e5d2c['start'][_0x5f11('0x75')](_0xa45713[_0x5f11('0xb8')])?this[_0x5f11('0x98')](_0x24151b,this['_model']['createRange'](_0xa45713['start'],_0x1e5d2c[_0x5f11('0xb8')])):this[_0x5f11('0x98')](_0x24151b,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x1e5d2c[_0x5f11('0xcd')],_0xa45713[_0x5f11('0xb8')])),_0x24151b;}}const _0x1649b3=_0x10549d(),_0x44bd62=_0x4136ed['id'],_0xae8ec5=_0x4bff53?_0x5f11('0x82')+_0x4bff53:'insertion',_0x4d4fff=this['_setSuggestionData']({'id':_0x1649b3,'type':_0xae8ec5,'createdAt':new Date(),'authorId':_0x44bd62,'attributes':_0x587df3});return this[_0x5f11('0x54')](_0xae8ec5,_0x1649b3,_0x44bd62,_0xa45713),_0x4d4fff;}[_0x5f11('0x45')](_0x12be5f,_0x6b9eea='multi',_0xf31729={}){const _0x1d8f77=this[_0x5f11('0x147')][_0x5f11('0x76')]['get'](_0x5f11('0x72'))['me'],_0x41c6ed=this[_0x5f11('0x4c')]['getSuggestionCallback'](_0x5f11('0x13c'),_0x6b9eea,'join');for(const _0x3b5a28 of this[_0x5f11('0xc')]())if(_0x3b5a28['author']['id']==_0x1d8f77['id']&&_0x5f11('0x13c')==_0x3b5a28[_0x5f11('0xa')]&&_0x3b5a28[_0x5f11('0xe2')]==_0x6b9eea&&Ut(_0x3b5a28,_0xf31729)&&(_0x41c6ed(_0x3b5a28['getRanges'](),_0x12be5f)||_0x41c6ed(_0x12be5f,_0x3b5a28['getRanges']()))){for(const _0x348433 of _0x12be5f)_0x3b5a28[_0x5f11('0xa1')](_0x348433);return _0x3b5a28;}for(const {suggestion:_0x29d64d,meta:_0x84d094}of this[_0x5f11('0xe7')](_0x12be5f,_0x5f11('0x13c'))){if(!_0x84d094['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x84d094[_0x5f11('0xea')])continue;if(!Ut(_0x29d64d,_0xf31729))continue;let _0x1b7c85=!0x0;for(const _0x5837b7 of _0x29d64d[_0x5f11('0xed')]())for(const _0x542885 of _0x12be5f)if(!_0x5837b7[_0x5f11('0x81')](_0x542885)){_0x1b7c85=!0x1;break;}if(_0x1b7c85)return _0x29d64d;}const _0x5b177a=_0x10549d(),_0x4b12ae=_0x1d8f77['id'],_0x15f372=_0x5f11('0x82')+_0x6b9eea,_0x3400f6=this[_0x5f11('0x6a')]({'id':_0x5b177a,'type':_0x15f372,'createdAt':new Date(),'authorId':_0x4b12ae,'attributes':_0xf31729});for(const _0x5563aa of _0x12be5f)this['_addSuggestionMarker'](_0x15f372,_0x5b177a,_0x4b12ae,_0x5563aa,_0x2ad42f[_0x5f11('0x44')]());return _0x3400f6;}['markInlineFormat'](_0x26e3bb,_0x5e2c49,_0x53f247=null,_0x4239bd={}){if(_0x53f247=_0x53f247||$t(_0x5e2c49),_0x26e3bb[_0x5f11('0xda')])return null;if(_0x5f11('0xf')===this[_0x5f11('0x10c')]){const _0x1a8074=this['_suggestionFactory'][_0x5f11('0x3a')]('formatInline',_0x53f247,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x1a8074([_0x26e3bb],_0x5e2c49,_0x4239bd)),null;}const _0x3e7bda=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'],_0x33f12e=[];if('always'!==this[_0x5f11('0x10c')])for(const {suggestion:_0x431fcb,meta:_0xb6e3ba}of this[_0x5f11('0xe7')](_0x26e3bb,'insertion'))_0xb6e3ba['isOwn']&&!_0xb6e3ba[_0x5f11('0xc7')]&&_0x33f12e[_0x5f11('0xe5')](..._0x431fcb['getRanges']());const _0xe32d48=function(_0x1a82fe,_0x57cdb4){const _0x3c9b25=[];for(const _0x185436 of _0x57cdb4){const _0x89bd0=_0x1a82fe['getIntersection'](_0x185436);_0x89bd0&&_0x3c9b25[_0x5f11('0xe5')](_0x89bd0);}return _0x3c9b25;}(_0x26e3bb,_0x33f12e),_0x2c188d=function(_0x8dd1ff,_0x3b6263){const _0x224d7f=[_0x8dd1ff];for(const _0x5d14f7 of _0x3b6263){let _0x5dc353=0x0;for(;_0x5dc353<_0x224d7f[_0x5f11('0x74')];){const _0x1ac389=_0x224d7f[_0x5dc353][_0x5f11('0xc2')](_0x5d14f7);_0x224d7f[_0x5f11('0x7')](_0x5dc353,0x1,..._0x1ac389),_0x5dc353+=_0x1ac389[_0x5f11('0x74')];}}return _0x224d7f;}(_0x26e3bb,_0x33f12e);_0xe32d48['length']&&this[_0x5f11('0x96')][_0x5f11('0x11c')](()=>{for(const _0x4acf2b of _0xe32d48){const _0x44dc79=this[_0x5f11('0x4c')][_0x5f11('0x3a')]('formatInline',_0x53f247,_0x5f11('0x8'));this[_0x5f11('0x67')](()=>_0x44dc79([_0x4acf2b],_0x5e2c49,_0x4239bd));}});for(const _0x532251 of _0x2c188d){let _0x42185c=null,_0x2a2dcc=_0x532251[_0x5f11('0xcd')],_0x153fbf=_0x532251[_0x5f11('0xb8')];for(const {suggestion:_0x10be81,meta:_0x327feb}of this[_0x5f11('0xe7')](_0x532251,_0x5f11('0x17'))){if(!_0x327feb[_0x5f11('0x125')])continue;if(_0x10be81[_0x5f11('0xe2')]!=_0x53f247)continue;if(!Ut(_0x10be81,_0x4239bd))continue;const _0x42962f=_0x10be81[_0x5f11('0x120')]();if(_0x42962f['containsRange'](_0x532251,!0x0))return null;_0x2a2dcc=_0x2a2dcc[_0x5f11('0x114')](_0x42962f[_0x5f11('0xcd')])?_0x2a2dcc:_0x42962f['start'],_0x153fbf=_0x153fbf[_0x5f11('0x137')](_0x42962f[_0x5f11('0xb8')])?_0x153fbf:_0x42962f['end'],_0x42185c?_0x42962f[_0x5f11('0xcd')][_0x5f11('0x114')](_0x42185c[_0x5f11('0x120')]()[_0x5f11('0xcd')])?(_0x42185c[_0x5f11('0x2e')](),_0x42185c=_0x10be81):_0x10be81[_0x5f11('0x2e')]():_0x42185c=_0x10be81;}const _0x3b69cc=this[_0x5f11('0x96')]['createRange'](_0x2a2dcc,_0x153fbf);if(_0x42185c)this['_setSuggestionRange'](_0x42185c,_0x3b69cc);else{const _0x36ca7e=_0x10549d(),_0x195145=_0x3e7bda['id'];this['_setSuggestionData']({'id':_0x36ca7e,'type':_0x5f11('0xba')+_0x53f247,'data':_0x5e2c49,'createdAt':new Date(),'authorId':_0x195145,'attributes':_0x4239bd}),this['_addSuggestionMarker'](_0x5f11('0xba')+_0x53f247,_0x36ca7e,_0x195145,_0x3b69cc);}}return null;}['markBlockFormat'](_0x1f00a2,_0xb27a2,_0xe93b57=[],_0x1bca63=null,_0x1c35d5={}){_0xb27a2[_0x5f11('0xb9')]||(_0xb27a2[_0x5f11('0xb9')]=_0xb27a2[_0x5f11('0x134')]),_0xb27a2['multipleBlocks']=_0x1f00a2['is']('range'),_0x1bca63=_0x1bca63||$t(_0xb27a2);const _0x29a48c=_0xe93b57['map'](_0x37dc94=>Rt(_0x37dc94,this['_model'])),_0x55752f=_0x1f00a2['is'](_0x5f11('0x28'))?_0x1f00a2:Rt(_0x1f00a2,this['_model']);if(_0x5f11('0xf')===this[_0x5f11('0x10c')]){const _0x25c72e=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x107'),_0x1bca63,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x25c72e([_0x55752f],_0xb27a2,_0x1c35d5)),null;}_0x29a48c['push'](_0x55752f);let _0x35ca05=!0x0;for(const _0xbee81c of _0x29a48c)if(!this[_0x5f11('0x92')](_0xbee81c)){_0x35ca05=!0x1;break;}if(_0x35ca05&&_0x5f11('0x36')!==this[_0x5f11('0x10c')]){const _0x2a5e20=this[_0x5f11('0x4c')]['getSuggestionCallback']('formatBlock',_0x1bca63,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x2a5e20([_0x55752f],_0xb27a2,_0x1c35d5)),null;}let _0x4cc34e=null,_0x12b2a5=_0x55752f[_0x5f11('0xcd')],_0x146a83=_0x55752f[_0x5f11('0xb8')];for(const {suggestion:_0x2340a3,meta:_0x56bd34}of this[_0x5f11('0xe7')](_0x55752f,_0x5f11('0x107'))){if(!_0x56bd34[_0x5f11('0x125')])continue;if(_0x56bd34[_0x5f11('0xf9')]||_0x56bd34[_0x5f11('0xea')]||_0x56bd34[_0x5f11('0xc7')])continue;if(_0x2340a3[_0x5f11('0x13f')][_0x5f11('0xb9')]!=_0xb27a2[_0x5f11('0xb9')])continue;if(!Ut(_0x2340a3,_0x1c35d5))continue;const _0x110e63=_0x2340a3['getFirstRange']();if(_0x2340a3['subType']==_0x1bca63){if(_0x110e63['containsRange'](_0x55752f,!0x0))return null;_0x12b2a5=_0x12b2a5[_0x5f11('0x114')](_0x110e63[_0x5f11('0xcd')])?_0x12b2a5:_0x110e63['start'],_0x146a83=_0x146a83['isAfter'](_0x110e63[_0x5f11('0xb8')])?_0x146a83:_0x110e63[_0x5f11('0xb8')],_0x4cc34e?_0x110e63['start']['isBefore'](_0x4cc34e['getFirstRange']()[_0x5f11('0xcd')])?(_0x4cc34e[_0x5f11('0x2e')](),_0x4cc34e=_0x2340a3):_0x2340a3[_0x5f11('0x2e')]():_0x4cc34e=_0x2340a3;}else{const _0x448d03=_0x55752f[_0x5f11('0x8d')](_0x110e63);this['_cutOutSuggestionMarker'](_0x2340a3,_0x448d03);}}const _0x2774c8=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'],_0x4e600e=_0x10549d(),_0x35e896=_0x2774c8['id'];if(_0x4cc34e)return this[_0x5f11('0x98')](_0x4cc34e,this['_model'][_0x5f11('0x4d')](_0x12b2a5,_0x146a83)),_0x4cc34e;{const _0x169b4d=this[_0x5f11('0x6a')]({'id':_0x4e600e,'type':_0x5f11('0xd6')+_0x1bca63,'data':_0xb27a2,'createdAt':new Date(),'authorId':_0x35e896,'attributes':_0x1c35d5});return this[_0x5f11('0x54')](_0x5f11('0xd6')+_0x1bca63,_0x4e600e,_0x35e896,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x12b2a5,_0x146a83)),_0x169b4d;}}[_0x5f11('0xdc')](_0x70998b,_0x1e05f,_0x2bc1a3=[],_0x46c0a9=null,_0x288926={}){_0x1e05f['formatGroupId']||(_0x1e05f[_0x5f11('0xb9')]=_0x1e05f[_0x5f11('0x134')]);const _0x4fcad8=_0x70998b[0x0];_0x1e05f[_0x5f11('0xb0')]=_0x4fcad8['is'](_0x5f11('0x28')),_0x46c0a9=_0x46c0a9||$t(_0x1e05f);const _0x2cb15c=_0x2bc1a3[_0x5f11('0x59')](_0x4b2fc2=>Rt(_0x4b2fc2,this[_0x5f11('0x96')])),_0x3285f0=_0x4fcad8['is'](_0x5f11('0x28'))?_0x70998b:_0x70998b[_0x5f11('0x59')](_0x7fc8b5=>Rt(_0x7fc8b5,this[_0x5f11('0x96')]));if(_0x5f11('0xf')===this[_0x5f11('0x10c')]){const _0x296b56=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x107'),_0x46c0a9,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x296b56(_0x3285f0,_0x1e05f,_0x288926)),null;}_0x2cb15c[_0x5f11('0xe5')](..._0x3285f0);let _0x2c8481=!0x0;for(const _0x364d68 of _0x2cb15c)if(!this[_0x5f11('0x92')](_0x364d68)){_0x2c8481=!0x1;break;}if(_0x2c8481&&_0x5f11('0x36')!==this[_0x5f11('0x10c')]){const _0xcdceb8=this[_0x5f11('0x4c')][_0x5f11('0x3a')]('formatBlock',_0x46c0a9,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0xcdceb8(_0x3285f0,_0x1e05f,_0x288926)),null;}const _0x2b8b6a=this[_0x5f11('0x147')][_0x5f11('0x76')]['get'](_0x5f11('0x72'))['me'];for(const _0x13e49c of this['getSuggestions']()){if(_0x13e49c[_0x5f11('0x2a')]['id']!=_0x2b8b6a['id'])continue;if(_0x5f11('0x107')!=_0x13e49c[_0x5f11('0xa')]||_0x13e49c[_0x5f11('0x13f')][_0x5f11('0xb9')]!=_0x1e05f[_0x5f11('0xb9')])continue;if(!Ut(_0x13e49c,_0x288926))continue;const _0x5ca649=_0x13e49c['subType']==_0x46c0a9;for(let _0x1488e3=0x0;_0x1488e3<_0x3285f0[_0x5f11('0x74')];_0x1488e3++){const _0x2d9185=_0x3285f0[_0x1488e3];for(const _0x10cca6 of _0x13e49c[_0x5f11('0xd7')]()){const _0x2b4bac=_0x10cca6[_0x5f11('0xd4')]();if(_0x2d9185[_0x5f11('0x75')](_0x2b4bac)){_0x5ca649?(_0x3285f0[_0x5f11('0x7')](_0x1488e3,0x1),_0x1488e3--):_0x13e49c[_0x5f11('0x63')](_0x10cca6[_0x5f11('0x18')]);break;}}}}if(0x0==_0x3285f0['length'])return null;const _0x4039b0=this[_0x5f11('0x4c')]['getSuggestionCallback'](_0x5f11('0x107'),_0x46c0a9,_0x5f11('0x2f'));for(const _0x30ec63 of this[_0x5f11('0xc')]())if(_0x30ec63[_0x5f11('0x2a')]['id']==_0x2b8b6a['id']&&'formatBlock'==_0x30ec63[_0x5f11('0xa')]&&_0x30ec63['data'][_0x5f11('0xb9')]==_0x1e05f['formatGroupId']&&_0x30ec63[_0x5f11('0xe2')]==_0x46c0a9&&Ut(_0x30ec63,_0x288926)&&(_0x4039b0(_0x30ec63[_0x5f11('0xed')](),_0x3285f0)||_0x4039b0(_0x3285f0,_0x30ec63['getRanges']()))){for(const _0x3e5348 of _0x3285f0)_0x30ec63['addRange'](_0x3e5348);return _0x30ec63;}const _0x1022fc=_0x10549d(),_0x434fd0=_0x2b8b6a['id'],_0x119965=_0x5f11('0xd6')+_0x46c0a9,_0x25b482=this[_0x5f11('0x6a')]({'id':_0x1022fc,'type':_0x119965,'data':_0x1e05f,'createdAt':new Date(),'authorId':_0x434fd0,'attributes':_0x288926});for(const _0x52cf9e of _0x3285f0)this['_addSuggestionMarker'](_0x119965,_0x1022fc,_0x434fd0,_0x52cf9e,_0x2ad42f['getMultiRangeId']());return _0x25b482;}[_0x5f11('0x37')](_0x22e04a,_0x2fbfec=null,_0x3ee2f9={}){if(_0x22e04a[_0x5f11('0xda')])return null;const _0x5b1db7=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')]('Users')['me'],_0x271e59=new _0x21916d(_0x22e04a['start'],_0x22e04a[_0x5f11('0xb8')]);for(const {suggestion:_0x3d8c9e,meta:_0x1c26ed}of this['_findSuggestions'](_0x271e59,_0x5f11('0x13c')))if(_0x1c26ed['isOwn']&&!_0x1c26ed[_0x5f11('0xf9')]){if(_0x3d8c9e[_0x5f11('0xaa')]){const _0xf049ac=_0x3d8c9e[_0x5f11('0xed')]()['filter'](_0x19054b=>_0x5f11('0x118')!=_0x19054b[_0x5f11('0xe9')][_0x5f11('0x55')]);_0xf049ac[_0x5f11('0x41')](_0x4eb2fb=>_0x271e59[_0x5f11('0x81')](_0x4eb2fb,!0x0))&&_0x3d8c9e[_0x5f11('0x119')]();if(_0xf049ac['some'](_0x8908ee=>_0x8908ee[_0x5f11('0x81')](_0x271e59,!0x0))){const _0x335f27=this['_suggestionFactory'][_0x5f11('0x3a')](_0x5f11('0x132'),_0x2fbfec,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x335f27([_0x271e59],null,_0x3ee2f9)),null;}}else{const _0xf55b25=_0x271e59[_0x5f11('0x8d')](_0x3d8c9e[_0x5f11('0x120')]());null!==_0xf55b25&&_0x3d8c9e['_onDiscard']([_0xf55b25],null,_0x3ee2f9);}}if(_0x271e59[_0x5f11('0x95')](),_0x271e59[_0x5f11('0xda')]||_0x5f11('0x118')==_0x271e59[_0x5f11('0xe9')][_0x5f11('0x55')])return null;let _0xafee3=null,_0x259f32=_0x271e59[_0x5f11('0xcd')],_0x59f340=_0x271e59[_0x5f11('0xb8')];const _0x1a835a=this['_findSuggestions'](_0x271e59,_0x5f11('0x132'));for(const {suggestion:_0x3d489f,meta:_0x5bc5cb}of _0x1a835a){const _0x282e46=this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x259f32,_0x59f340);if(_0x5bc5cb[_0x5f11('0x125')]&&(this['_mergeNestedSuggestions']||!_0x5bc5cb[_0x5f11('0xea')]&&!_0x5bc5cb[_0x5f11('0xc7')])){if(_0x3d489f[_0x5f11('0xaa')]){if(!Ut(_0x3d489f,_0x3ee2f9))continue;let _0x38f530=!0x0;for(const _0x348bb8 of _0x3d489f['getRanges']()){if(_0x348bb8[_0x5f11('0x81')](_0x282e46,!0x0))return _0x3d489f;_0x282e46[_0x5f11('0x81')](_0x348bb8)||(_0x38f530=!0x1);}_0x38f530&&_0x3d489f[_0x5f11('0x119')]();}else{const _0x318a1c=_0x3d489f[_0x5f11('0x120')]();if(_0x318a1c['containsRange'](_0x282e46,!0x0))return _0x3d489f;if(!Ut(_0x3d489f,_0x3ee2f9)){_0x282e46[_0x5f11('0x81')](_0x318a1c)?_0x3d489f[_0x5f11('0x2e')]():_0x318a1c[_0x5f11('0xd')](_0x259f32)?_0x259f32=_0x318a1c[_0x5f11('0xb8')]:_0x318a1c[_0x5f11('0xd')](_0x59f340)&&(_0x59f340=_0x318a1c[_0x5f11('0xcd')]);continue;}_0x259f32=_0x259f32[_0x5f11('0x114')](_0x318a1c['start'])?_0x259f32:_0x318a1c[_0x5f11('0xcd')],_0x59f340=_0x59f340[_0x5f11('0x137')](_0x318a1c[_0x5f11('0xb8')])?_0x59f340:_0x318a1c['end'],_0x3ee2f9=Object['assign']({},_0x3d489f['attributes']),_0xafee3?_0x318a1c['start']['isBefore'](_0xafee3[_0x5f11('0x120')]()[_0x5f11('0xcd')])?(_0xafee3[_0x5f11('0x2e')](),_0xafee3=_0x3d489f):_0x3d489f['removeMarkers']():_0xafee3=_0x3d489f;}}}if(_0xafee3)return this['_setSuggestionRange'](_0xafee3,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x259f32,_0x59f340)),_0xafee3;{const _0x1906d6=_0x10549d(),_0x46c898=this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x259f32,_0x59f340),_0x230eb4=_0x5b1db7['id'],_0x25c105=_0x2fbfec?'deletion:'+_0x2fbfec:'deletion',_0x358b7b=this['_setSuggestionData']({'id':_0x1906d6,'type':_0x25c105,'createdAt':new Date(),'authorId':_0x230eb4,'attributes':_0x3ee2f9});return this[_0x5f11('0x54')](_0x25c105,_0x1906d6,_0x230eb4,_0x46c898),_0x358b7b;}}[_0x5f11('0x141')](_0x5c39d6,_0x5b3b4a=_0x5f11('0x86'),_0x1d713f={}){const _0x12908d=this[_0x5f11('0x147')]['plugins'][_0x5f11('0x27')](_0x5f11('0x72'))['me'],_0x3dbf3b=_0x5c39d6['map'](_0x1f3a65=>new _0x21916d(_0x1f3a65[_0x5f11('0xcd')],_0x1f3a65['end'])),_0x55361a=new Set();for(const {suggestion:_0x90f3a2,meta:_0xa02491}of this['_findSuggestions'](_0x3dbf3b,'insertion'))_0xa02491['isOwn']&&!_0xa02491['isNextTo']&&_0x55361a['add'](_0x90f3a2);for(const _0x505158 of _0x55361a)if(_0x505158['isMultiRange']){const _0x46a962=_0x505158[_0x5f11('0xed')]();(!_0x505158[_0x5f11('0x5d')]||!_0x505158['attributes'][_0x5f11('0x77')])&&(_0x46a962['every'](_0xf7584e=>_0x3dbf3b['some'](_0x3a5566=>_0x3a5566['containsRange'](_0xf7584e,!0x0)))&&_0x505158[_0x5f11('0x119')]());if(_0x3dbf3b[_0x5f11('0x41')](_0x4c1cc4=>_0x46a962[_0x5f11('0xff')](_0x5db9cd=>_0x5db9cd['containsRange'](_0x4c1cc4,!0x0)))){const _0x5125fb=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x132'),_0x5b3b4a,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x5125fb(_0x5c39d6,null,_0x1d713f)),null;}}else{const _0x4d41bd=_0x505158[_0x5f11('0x120')]();_0x3dbf3b[_0x5f11('0xff')](_0x26a340=>_0x26a340[_0x5f11('0x81')](_0x4d41bd,!0x0))&&_0x505158[_0x5f11('0x119')]();if(_0x3dbf3b['every'](_0x4ec447=>_0x4d41bd[_0x5f11('0x81')](_0x4ec447,!0x0))){const _0x10fc07=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x132'),_0x5b3b4a,'accept');return this['forceDefaultExecution'](()=>_0x10fc07(_0x3dbf3b,null,_0x1d713f)),null;}}const _0x3da230=this['_suggestionFactory'][_0x5f11('0x3a')]('deletion',_0x5b3b4a,_0x5f11('0x2f'));let _0x4d9554=null;for(const _0x308e25 of this['getSuggestions']())if(_0x308e25[_0x5f11('0x2a')]['id']==_0x12908d['id']&&_0x308e25[_0x5f11('0x3d')]&&_0x5f11('0x132')==_0x308e25[_0x5f11('0xa')]&&_0x308e25[_0x5f11('0xe2')]==_0x5b3b4a&&Ut(_0x308e25,_0x1d713f)&&(_0x3da230(_0x308e25[_0x5f11('0xed')](),_0x3dbf3b)||_0x3da230(_0x3dbf3b,_0x308e25['getRanges']()))){if(_0x4d9554){if(_0x308e25[_0x5f11('0xe1')]&&_0x308e25[_0x5f11('0xe1')][_0x5f11('0x74')])continue;for(const _0x4c8a49 of _0x308e25[_0x5f11('0xed')]())_0x4d9554[_0x5f11('0xca')](_0x4c8a49)||_0x4d9554['addRange'](_0x4c8a49);_0x308e25[_0x5f11('0x2e')]();}else{_0x4d9554=_0x308e25;for(const _0x56d668 of _0x3dbf3b)_0x308e25['isIntersectingWithRange'](_0x56d668)||_0x308e25[_0x5f11('0xa1')](_0x56d668);}}if(_0x4d9554)return _0x4d9554;_0x55361a['clear']();for(const {suggestion:_0x551f18,meta:_0x197454}of this[_0x5f11('0xe7')](_0x3dbf3b,_0x5f11('0x132')))_0x197454['isOwn']&&(this['_mergeNestedSuggestions']||!_0x197454[_0x5f11('0xea')]&&!_0x197454['isInsideObject'])&&Ut(_0x551f18,_0x1d713f)&&_0x55361a[_0x5f11('0x50')](_0x551f18);for(const _0x5942be of _0x55361a){const _0x362456=_0x5942be[_0x5f11('0xed')]();if(!_0x1d713f||!_0x1d713f[_0x5f11('0x77')]){if(_0x3dbf3b[_0x5f11('0x41')](_0x4b5dd9=>_0x362456['some'](_0x1f160d=>_0x1f160d[_0x5f11('0x81')](_0x4b5dd9,!0x0))))return _0x5942be;}(!_0x5942be[_0x5f11('0x5d')]||!_0x5942be[_0x5f11('0x5d')][_0x5f11('0x77')])&&(_0x362456[_0x5f11('0x41')](_0x162842=>_0x3dbf3b['some'](_0xa64b7e=>_0xa64b7e['containsRange'](_0x162842,!0x0)))&&_0x5942be['discard']());}const _0x3af612=_0x10549d(),_0x4a2a2e=_0x12908d['id'],_0x1870ae=_0x5f11('0x6e')+_0x5b3b4a,_0x2d96db=this[_0x5f11('0x6a')]({'id':_0x3af612,'type':_0x1870ae,'createdAt':new Date(),'authorId':_0x4a2a2e,'attributes':_0x1d713f});for(const _0x2dcc9c of _0x3dbf3b)_0x2dcc9c[_0x5f11('0x95')](),_0x2dcc9c[_0x5f11('0xda')]||'$graveyard'==_0x2dcc9c[_0x5f11('0xe9')]['rootName']||this[_0x5f11('0x54')](_0x1870ae,_0x3af612,_0x4a2a2e,_0x2dcc9c,_0x2ad42f[_0x5f11('0x44')]());return _0x2d96db;}[_0x5f11('0x98')](_0x98aa00,_0x4f9c19){const _0x436893=_0x98aa00['getFirstMarker']();this[_0x5f11('0x96')][_0x5f11('0x11c')](_0xfeae92=>{_0xfeae92[_0x5f11('0x8f')](_0x436893,{'range':_0x4f9c19});});}[_0x5f11('0x11a')](_0x7d2b67){const _0xc3987f=_0x7d2b67['id'],_0x7d2b78=this[_0x5f11('0x147')][_0x5f11('0x46')][_0x5f11('0x27')](_0x5f11('0x13'));this['_commentsRepository'][_0x5f11('0xc5')](_0xc3987f)||this['_commentsRepository'][_0x5f11('0x70')]({'channelId':_0x7d2b78,'threadId':_0xc3987f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58925c=this[_0x5f11('0x1c')][_0x5f11('0x13d')](_0xc3987f);_0x58925c[_0x5f11('0x1b')](_0x5f11('0x49')),_0x58925c[_0x5f11('0x49')]=!0x1,_0x7d2b67[_0x5f11('0xe1')]=_0x58925c;}['_checkSuggestionCorrectness'](_0x1bd6c7,_0x45de1f,_0x2bf8e3,_0x2655a4){if(_0x1bd6c7['type']!=_0x45de1f||_0x1bd6c7[_0x5f11('0xe2')]!=_0x2bf8e3||_0x1bd6c7['creator']['id']!=_0x2655a4)throw this[_0x5f11('0x147')][_0x5f11('0x6b')](_0x5f11('0xeb')),new _0x2cf346('track-changes-suggestion-data-mismatch',this);}[_0x5f11('0x19')](_0x15bf5f,_0x39b8e3){const _0x3a324d=_0x15bf5f[_0x5f11('0x120')]();if(_0x39b8e3['isEqual'](_0x3a324d))_0x15bf5f['removeMarkers']();else{if(_0x3a324d[_0x5f11('0x81')](_0x39b8e3)){const _0x8a2843=this['_model'][_0x5f11('0x0')](_0x39b8e3[_0x5f11('0xcd')][_0x5f11('0x4f')],'end');this[_0x5f11('0x98')](_0x15bf5f,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x3a324d[_0x5f11('0xcd')],_0x8a2843));const _0xe044de=_0x10549d(),_0x1e7c44=_0x15bf5f[_0x5f11('0x15')]['id'],_0x5a6200=_0x15bf5f[_0x5f11('0xa')]+':'+_0x15bf5f[_0x5f11('0xe2')];this[_0x5f11('0x6a')]({'id':_0xe044de,'type':_0x5a6200,'createdAt':new Date(),'authorId':_0x1e7c44,'data':_0x15bf5f['data'],'attributes':_0x15bf5f['attributes']});const _0xc5935=this['_model'][_0x5f11('0x0')](_0x39b8e3[_0x5f11('0xb8')][_0x5f11('0xf0')],_0x5f11('0xb1')),_0xc8e76c=this[_0x5f11('0x96')]['createRange'](_0xc5935,_0x3a324d[_0x5f11('0xb8')]);this[_0x5f11('0x54')](_0x5a6200,_0xe044de,_0x1e7c44,_0xc8e76c);}else{if(_0x3a324d[_0x5f11('0xd')](_0x39b8e3[_0x5f11('0xcd')])){const _0x238466=this[_0x5f11('0x96')][_0x5f11('0x0')](_0x39b8e3[_0x5f11('0xcd')]['nodeBefore'],_0x5f11('0xb8'));this[_0x5f11('0x98')](_0x15bf5f,this[_0x5f11('0x96')]['createRange'](_0x3a324d[_0x5f11('0xcd')],_0x238466));}else{const _0x131326=this[_0x5f11('0x96')]['createPositionAt'](_0x39b8e3[_0x5f11('0xb8')][_0x5f11('0xf0')],_0x5f11('0xb1'));this[_0x5f11('0x98')](_0x15bf5f,this['_model'][_0x5f11('0x4d')](_0x131326,_0x3a324d[_0x5f11('0xb8')]));}}}}[_0x5f11('0x92')](_0x4f94c2){for(const {suggestion:_0x3246a6,meta:_0xbbece4}of this[_0x5f11('0xe7')](_0x4f94c2,_0x5f11('0x13c'))){if(!_0xbbece4[_0x5f11('0x125')])continue;const _0x3e220a=_0x3246a6[_0x5f11('0xed')]();for(const _0x232397 of _0x3e220a)if(!_0x4f94c2[_0x5f11('0xc2')](_0x232397)['length'])return!0x0;}return!0x1;}[_0x5f11('0x8e')](_0x17e20c){const _0x2b6622=this['editor'][_0x5f11('0x76')][_0x5f11('0x27')]('Users')[_0x5f11('0x20')](_0x17e20c);if(!_0x2b6622)throw new _0x2cf346('track-changes-user-not-found',this);return _0x2b6622;}[_0x5f11('0x8c')](_0x3675ac){const _0x292472=this[_0x5f11('0x147')][_0x5f11('0x76')]['get'](_0x5f11('0x72')),_0x30cc3e=_0x281bde(_0x5f11('0x53')+_0x3675ac),_0x115117=_0x292472[_0x5f11('0x20')](_0x30cc3e);return _0x115117||_0x292472['addUser']({'id':_0x30cc3e,'name':_0x3675ac});}['_createSuggestion'](_0x59e373,_0x4c32d5,_0x40dc3d,_0x4ae0ab,_0x2a11a6){const _0x520b02=this[_0x5f11('0x8e')](_0x4ae0ab),_0x1a7108=this[_0x5f11('0x4c')][_0x5f11('0xbf')](_0x59e373,_0x4c32d5,_0x40dc3d,_0x520b02,_0x2a11a6,_0xa881f9=>this[_0x5f11('0xd9')](_0x40dc3d,{'attributes':_0xa881f9}));return this['listenTo'](_0x1a7108,_0x5f11('0x8'),()=>{this[_0x5f11('0xd9')](_0x40dc3d,{'state':_0x5f11('0x110')});},{'priority':'high'}),this['listenTo'](_0x1a7108,_0x5f11('0x119'),()=>{this[_0x5f11('0xd9')](_0x40dc3d,{'state':'rejected'});},{'priority':'high'}),this[_0x5f11('0x33')][_0x5f11('0xd8')](_0x40dc3d,_0x1a7108),this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x1a7108,_0x5f11('0x2c')),_0x1a7108;}[_0x5f11('0xc8')](_0x4d4ce1){const _0x14b802=_0x4d4ce1['split'](':');return{'group':_0x14b802[0x0],'type':_0x14b802[0x1],'subType':_0x14b802[_0x5f11('0x74')]>=0x5?_0x14b802[0x2]:null,'id':_0x14b802[_0x5f11('0x74')]<0x5?_0x14b802[0x2]:_0x14b802[0x3],'authorId':_0x14b802[_0x5f11('0x74')]<0x5?_0x14b802[0x3]:_0x14b802[0x4],'markerCount':0x6==_0x14b802[_0x5f11('0x74')]?_0x14b802[0x5]:null};}[_0x5f11('0x12b')](_0x2c4b16,_0x11f8a4,_0x1d8799){const _0xb00202=_0x2c4b16[_0x5f11('0x120')](),_0x29b758=_0xb00202[_0x5f11('0xcd')],_0x5791f3=_0xb00202[_0x5f11('0xb8')];this['_setSuggestionRange'](_0x2c4b16,this[_0x5f11('0x96')]['createRange'](_0x29b758,_0x11f8a4));const _0x263564=_0x10549d(),_0x160816=_0x2c4b16[_0x5f11('0x15')]['id'],_0x2d487c=_0x2c4b16[_0x5f11('0xa')]+(_0x2c4b16[_0x5f11('0xe2')]?':'+_0x2c4b16[_0x5f11('0xe2')]:'');this[_0x5f11('0x6a')]({'id':_0x263564,'type':_0x2d487c,'createdAt':new Date(),'authorId':_0x160816,'originalSuggestionId':_0x2c4b16['id'],'attributes':_0x2c4b16[_0x5f11('0x5d')],'data':_0x2c4b16['data']}),_0x5f11('0x107')==_0x2c4b16['type']&&(_0x1d8799=this[_0x5f11('0x96')][_0x5f11('0x9a')](_0x1d8799[_0x5f11('0xf0')])),this[_0x5f11('0x54')](_0x2d487c,_0x263564,_0x160816,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x1d8799,_0x5791f3));}[_0x5f11('0xe7')](_0x27e2ee,_0x46d965=null){const _0x4bb54c=[],_0x4e911b=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'];Array[_0x5f11('0x7c')](_0x27e2ee)||(_0x27e2ee=[_0x27e2ee]);for(const _0x3d3276 of this['getSuggestions']()){if(!_0x3d3276[_0x5f11('0x3d')])continue;if(_0x46d965&&_0x3d3276[_0x5f11('0xa')]!=_0x46d965)continue;let _0x275bc6=!0x1;for(const _0x467997 of _0x3d3276[_0x5f11('0xed')]()){for(const _0xa6d4d8 of _0x27e2ee){const _0x5267d8=_0xa6d4d8[_0x5f11('0xcd')]['isEqual'](_0x467997['end'])||_0xa6d4d8[_0x5f11('0xb8')][_0x5f11('0x75')](_0x467997[_0x5f11('0xcd')]);if(_0x5267d8||_0xa6d4d8[_0x5f11('0x8d')](_0x467997)){const _0x3140af=_0xa6d4d8[_0x5f11('0x81')](_0x467997)&&Bt(this['_model'][_0x5f11('0x16')],_0x467997[_0x5f11('0xcd')],_0xa6d4d8),_0x52e249=_0x467997['containsRange'](_0xa6d4d8)&&Bt(this['_model'][_0x5f11('0x16')],_0xa6d4d8[_0x5f11('0xcd')],_0x467997);_0x4bb54c[_0x5f11('0xe5')]({'suggestion':_0x3d3276,'meta':{'isOwn':_0x4e911b==_0x3d3276[_0x5f11('0x2a')],'isNextTo':_0x5267d8,'isInsideObject':_0x3140af,'containsRangeInObject':_0x52e249}}),_0x275bc6=!0x0;break;}}if(_0x275bc6)break;}}return _0x4bb54c;}['_addSuggestionMarker'](_0x21a1df,_0x192758,_0x3106f1,_0x215648,_0x3920a8){this[_0x5f11('0x96')][_0x5f11('0x11c')](_0x2f0087=>{let _0x21b9b6=_0x5f11('0xd2')+_0x21a1df+':'+_0x192758+':'+_0x3106f1;_0x3920a8&&(_0x21b9b6=_0x21b9b6+':'+_0x3920a8),_0x2f0087[_0x5f11('0x2d')](_0x21b9b6,{'range':_0x215648,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5f11('0x136')](_0x3a5543){const _0x31912c=_0x3a5543[_0x5f11('0x11b')],_0x191367=_0x3a5543['next'];_0x3a5543[_0x5f11('0x11b')]=null,null!=_0x31912c&&(_0x31912c[_0x5f11('0x5a')]=null),_0x3a5543[_0x5f11('0x5a')]=null,null!=_0x191367&&(_0x191367[_0x5f11('0x11b')]=null),_0x5f11('0x38')==this[_0x5f11('0x24')][_0x5f11('0x27')](_0x3a5543)&&(this['_suggestionState'][_0x5f11('0xd8')](_0x3a5543,_0x5f11('0x11e')),this[_0x5f11('0x101')](_0x5f11('0x30'),_0x3a5543,_0x31912c,_0x191367));}[_0x5f11('0x6a')](_0x4bbd6d){const _0x3048ce=_0x4bbd6d['id'],_0x4675bb=this[_0x5f11('0x39')](_0x4bbd6d);if(this[_0x5f11('0x117')]&&this[_0x5f11('0x117')][_0x5f11('0x4a')]){const _0x339e53=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x93')),_0x4a0e4d=_0x4675bb[_0x5f11('0x122')],_0x5047e2=_0x4675bb[_0x5f11('0xe2')]?_0x4675bb[_0x5f11('0xa')]+':'+_0x4675bb[_0x5f11('0xe2')]:_0x4675bb[_0x5f11('0xa')],_0x4a9ce7=this[_0x5f11('0x147')]['locale'],_0x451329=_0x339e53[_0x5f11('0x50')](_0x415b1b(_0x4a9ce7,'PENDING_ACTION_SUGGESTION')),_0x42736e={'id':_0x3048ce,'type':_0x5047e2,'hasComments':_0x4a0e4d,'data':_0x4bbd6d[_0x5f11('0x13f')]||null,'originalSuggestionId':_0x4bbd6d[_0x5f11('0xab')]||null,'attributes':_0x4675bb['attributes']};this['_adapter'][_0x5f11('0x4a')](_0x42736e)['then'](_0x11ee3f=>{_0x4675bb['_saved']=!0x0,_0x339e53['remove'](_0x451329),_0x11ee3f&&_0x11ee3f[_0x5f11('0x7e')]&&(this[_0x5f11('0x33')][_0x5f11('0x27')](_0x3048ce)['createdAt']=_0x11ee3f[_0x5f11('0x7e')]);})[_0x5f11('0x87')](_0x334d7f=>{throw _0x593ff6('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x5f11('0x5')][_0x5f11('0x12c')]({'isUndoable':!0x1},()=>{_0x4675bb[_0x5f11('0x119')]();}),_0x4675bb[_0x5f11('0x21')](),this['_suggestions']['delete'](_0x4675bb['id']),this[_0x5f11('0x24')][_0x5f11('0x3')](_0x4675bb),_0x334d7f;});}return _0x4675bb;}[_0x5f11('0xd9')](_0x1962a5,_0x426e8d){const _0x3b5bb2=this['editor'][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x93')),_0x46d923=this[_0x5f11('0x1d')](_0x1962a5);if(this[_0x5f11('0x117')]&&this['_adapter']['updateSuggestion']){if(_0x46d923[_0x5f11('0x56')]){const _0x34bea1=_0x3b5bb2[_0x5f11('0x50')](_0x415b1b(this[_0x5f11('0x147')][_0x5f11('0xf3')],_0x5f11('0x108')));this[_0x5f11('0x117')][_0x5f11('0x10b')](_0x1962a5,_0x426e8d)[_0x5f11('0x31')](()=>{_0x3b5bb2[_0x5f11('0xd5')](_0x34bea1);});}else _0x46d923['on']('change:_saved',()=>{this[_0x5f11('0xd9')](_0x1962a5,_0x426e8d);});}}[_0x5f11('0x89')](_0xc93404){if(!this['_adapter']||!this[_0x5f11('0x117')][_0x5f11('0x1d')])throw new _0x2cf346('track-changes-adapter-missing-getsuggestion',this);return this[_0x5f11('0x117')]['getSuggestion'](_0xc93404);}[_0x5f11('0xb')](_0x304439){const {id:_0xf0d18f,type:_0x5db8f5,subType:_0x52b5a4,authorId:_0x545706}=this[_0x5f11('0xc8')](_0x304439),_0x307f31=this[_0x5f11('0x33')]['get'](_0xf0d18f)||this[_0x5f11('0x142')](_0x5db8f5,_0x52b5a4,_0xf0d18f,_0x545706,{});switch(this[_0x5f11('0x58')](_0x307f31,_0x5db8f5,_0x52b5a4,_0x545706),this[_0x5f11('0x24')][_0x5f11('0x27')](_0x307f31)){case'notReady':this['_getSuggestionData'](_0xf0d18f)[_0x5f11('0x31')](_0x522eca=>{let _0x5c11fd=Promise[_0x5f11('0xcb')]();_0x522eca[_0x5f11('0x122')]&&(_0x5c11fd=this[_0x5f11('0x1c')][_0x5f11('0xcc')]({'channelId':this[_0x5f11('0x147')][_0x5f11('0x46')][_0x5f11('0x27')]('collaboration.channelId'),'threadId':_0xf0d18f})),_0x5c11fd[_0x5f11('0x31')](()=>{this[_0x5f11('0x39')](_0x522eca)['_saved']=!0x0;});}),this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x307f31,'markerReady');break;case _0x5f11('0x11e'):this[_0x5f11('0xd9')](_0xf0d18f,{'state':_0x5f11('0x8a')});case _0x5f11('0x9e'):this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x307f31,_0x5f11('0x38')),this[_0x5f11('0x101')](_0x5f11('0x83'),_0x307f31);break;case _0x5f11('0x38'):this['fire']('suggestionChanged',_0x307f31);}return _0x307f31[_0x5f11('0xc1')](_0x304439),_0x307f31;}[_0x5f11('0x124')](_0x2b6fe4){const _0x415007=Array[_0x5f11('0x121')](_0x2b6fe4)[_0x5f11('0x106')](_0xfeed2c=>!_0xfeed2c[_0x5f11('0xaa')]),_0x6bdfef=this[_0x5f11('0xc')]({'skipNotAttached':!0x0})[_0x5f11('0x106')](_0x3e49b6=>!_0x3e49b6[_0x5f11('0xaa')]),_0x1e0cd3=_0x6bdfef[_0x5f11('0x106')](_0x2bea6d=>!_0x2b6fe4[_0x5f11('0xf7')](_0x2bea6d)),_0x1b7416=new Map(_0x6bdfef[_0x5f11('0x59')](_0x2ba51c=>[_0x2ba51c,this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x2ba51c[_0x5f11('0xa')],_0x2ba51c[_0x5f11('0xe2')],'chain')])),_0x166375=new Map(_0x6bdfef[_0x5f11('0x59')](_0x4a8095=>[_0x4a8095,_0x4a8095[_0x5f11('0x120')]()])),_0x49efe9=new Set(),_0x273a38=new Set();for(let _0x55dd63=0x0;_0x55dd63<_0x415007[_0x5f11('0x74')];_0x55dd63++)_0x3160b6(_0x415007[_0x55dd63],_0x415007,_0x55dd63+0x1);for(let _0xf75be4=0x0;_0xf75be4<_0x415007[_0x5f11('0x74')];_0xf75be4++)_0x3160b6(_0x415007[_0xf75be4],_0x1e0cd3,0x0);for(let _0x20098e=0x0;_0x20098e<_0x415007[_0x5f11('0x74')];_0x20098e++){const _0x831a6=_0x415007[_0x20098e];!_0x273a38[_0x5f11('0xf7')](_0x831a6)&&_0x831a6[_0x5f11('0x11b')]&&(_0x831a6[_0x5f11('0x11b')][_0x5f11('0x5a')]===_0x831a6&&(_0x831a6[_0x5f11('0x11b')][_0x5f11('0x5a')]=null),_0x831a6[_0x5f11('0x11b')]=null),!_0x49efe9[_0x5f11('0xf7')](_0x831a6)&&_0x831a6[_0x5f11('0x5a')]&&(_0x831a6['next'][_0x5f11('0x11b')]===_0x831a6&&(_0x831a6[_0x5f11('0x5a')]['previous']=null),_0x831a6[_0x5f11('0x5a')]=null);}function _0x3160b6(_0x288a95,_0xad72cd,_0x53e157){for(let _0x3ac557=_0x53e157;_0x3ac557<_0xad72cd[_0x5f11('0x74')];_0x3ac557++){const _0x5866a5=_0x88f02c(_0x288a95,_0xad72cd[_0x3ac557]);_0x5866a5&&(_0x5866a5[0x0]['next']=_0x5866a5[0x1],_0x5866a5[0x1][_0x5f11('0x11b')]=_0x5866a5[0x0],_0x49efe9['add'](_0x5866a5[0x0]),_0x273a38[_0x5f11('0x50')](_0x5866a5[0x1]));}}function _0x88f02c(_0x5a33ff,_0x18c1e2){if(_0x5a33ff[_0x5f11('0x2a')]['id']!==_0x18c1e2[_0x5f11('0x2a')]['id'])return null;const _0x35dff9=_0x1b7416[_0x5f11('0x27')](_0x5a33ff)(_0x5a33ff,_0x18c1e2,_0x166375[_0x5f11('0x27')](_0x5a33ff),_0x166375[_0x5f11('0x27')](_0x18c1e2));if(!_0x35dff9)return null;return _0x1b7416[_0x5f11('0x27')](_0x18c1e2)(_0x5a33ff,_0x18c1e2,_0x166375['get'](_0x5a33ff),_0x166375[_0x5f11('0x27')](_0x18c1e2))?_0x35dff9[0x1][_0x5f11('0xe1')]&&_0x35dff9[0x1][_0x5f11('0xe1')]['length']?null:_0x35dff9:null;}}[_0x5f11('0x12e')](_0xd67026){const _0x14b911=Array[_0x5f11('0x121')](_0xd67026),_0x1d2d1e=this[_0x5f11('0xc')]({'skipNotAttached':!0x0}),_0x1469f9=_0x1d2d1e[_0x5f11('0x106')](_0x3422e7=>!_0xd67026[_0x5f11('0xf7')](_0x3422e7)),_0x2ec271=new Map(_0x14b911[_0x5f11('0x59')](_0x22263a=>[_0x22263a,this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x22263a[_0x5f11('0xa')],_0x22263a[_0x5f11('0xe2')],_0x5f11('0x2f'))])),_0x519f4c=new Map(_0x1d2d1e[_0x5f11('0x59')](_0x146932=>[_0x146932,_0x146932[_0x5f11('0xed')]()]));for(let _0x22e42f=0x0;_0x22e42f<_0x14b911[_0x5f11('0x74')];_0x22e42f++){if(_0x376898(this,_0x14b911[_0x22e42f],_0x14b911,_0x22e42f+0x1))return!0x0;}for(let _0x5b2705=0x0;_0x5b2705<_0x14b911[_0x5f11('0x74')];_0x5b2705++){if(_0x376898(this,_0x14b911[_0x5b2705],_0x1469f9,0x0))return!0x0;}return!0x1;function _0x376898(_0x29498c,_0x56a6c9,_0x3fe654,_0x2da679){for(let _0x2a0e3a=_0x2da679;_0x2a0e3a<_0x3fe654[_0x5f11('0x74')];_0x2a0e3a++){const _0x50c2cf=_0x3fe654[_0x2a0e3a];if(_0x50c2cf[_0x5f11('0xa')]!==_0x56a6c9[_0x5f11('0xa')]||_0x50c2cf[_0x5f11('0x2a')]['id']!==_0x56a6c9[_0x5f11('0x2a')]['id']||_0x50c2cf[_0x5f11('0xe2')]!==_0x56a6c9[_0x5f11('0xe2')])continue;if(!xt(_0x56a6c9,_0x50c2cf))continue;const _0x3291f7=_0x2ec271[_0x5f11('0x27')](_0x56a6c9),_0x3286ad=_0x519f4c[_0x5f11('0x27')](_0x56a6c9),_0x324fc0=_0x519f4c['get'](_0x50c2cf),_0x1761c2=_0x56a6c9[_0x5f11('0xe1')]&&_0x56a6c9[_0x5f11('0xe1')]['length'],_0xf4eaac=_0x50c2cf[_0x5f11('0xe1')]&&_0x50c2cf[_0x5f11('0xe1')][_0x5f11('0x74')];if(!_0x1761c2&&_0x3291f7(_0x324fc0,_0x3286ad))return _0x29498c[_0x5f11('0xee')](_0x50c2cf,_0x56a6c9),_0x519f4c['delete'](_0x56a6c9),!0x0;if(!_0xf4eaac&&_0x3291f7(_0x3286ad,_0x324fc0))return _0x29498c[_0x5f11('0xee')](_0x56a6c9,_0x50c2cf),_0x519f4c['delete'](_0x50c2cf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x30c12d,_0x76a5a5){if(_0x30c12d[_0x5f11('0xaa')])for(const _0x16fda5 of _0x76a5a5['getRanges']())_0x30c12d[_0x5f11('0xa1')](_0x16fda5);else{const _0x36c1a9=_0x76a5a5[_0x5f11('0x120')]()['end'];this[_0x5f11('0x98')](_0x30c12d,this[_0x5f11('0x96')]['createRange'](_0x30c12d[_0x5f11('0x120')]()['start'],_0x36c1a9));}_0x76a5a5[_0x5f11('0x2e')]();}}class Dt{constructor(_0x3793b2){this[_0x5f11('0xa0')]=_0x3793b2,this[_0x5f11('0x96')]=_0x3793b2[_0x5f11('0x5')],this[_0x5f11('0xa2')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}[_0x5f11('0xbf')](_0x315480,_0x598bc4,_0x4b0b69,_0x9d449,_0x325a95,_0x55f8a2){return new _0x2ad42f(this['_model'],{'type':_0x315480,'subType':_0x598bc4,'id':_0x4b0b69,'author':_0x9d449,'creator':_0x9d449,'attributes':_0x325a95,'onAttributesChange':_0x55f8a2,'onAccept':(..._0x4b66eb)=>this['getSuggestionCallback'](_0x315480,_0x598bc4,_0x5f11('0x8'))(..._0x4b66eb),'onDiscard':(..._0x390857)=>this[_0x5f11('0x3a')](_0x315480,_0x598bc4,_0x5f11('0x119'))(..._0x390857)});}[_0x5f11('0x48')](_0x1a770c,_0x2323de,_0x1b4e10,_0x143249){const _0x3ea16c=_0x1a770c+':'+_0x2323de+':'+_0x1b4e10;this['_customCallbacks'][_0x5f11('0xd8')](_0x3ea16c,_0x143249);}[_0x5f11('0x3a')](_0x2ce9b3,_0x494ccc,_0x5c91f5){const _0x52e019=_0x2ce9b3+':'+_0x494ccc+':'+_0x5c91f5;return this[_0x5f11('0xa2')]['get'](_0x52e019)||this['_defaultCallbacks']['get'](_0x2ce9b3+':'+_0x5c91f5);}[_0x5f11('0x102')](){const _0x39f4c0=()=>!0x1,_0x11ddbf=_0x1df17b=>{_0x1df17b[_0x5f11('0xa3')]((_0xe45d18,_0x375928)=>_0xe45d18[_0x5f11('0xcd')][_0x5f11('0x114')](_0x375928[_0x5f11('0xcd')])?0x1:-0x1),this[_0x5f11('0x96')][_0x5f11('0x11c')](_0xc7e3a4=>{for(const _0x165319 of _0x1df17b){let _0x4c80ac;_0x4c80ac=_0x165319[_0x5f11('0xb8')]['isAtEnd']&&_0x165319['end']['parent']==_0x165319[_0x5f11('0xcd')][_0x5f11('0xb6')]?_0xc7e3a4['createSelection'](_0x165319['start']['nodeAfter'],'on'):_0xc7e3a4[_0x5f11('0xc9')](_0x165319),this['_model'][_0x5f11('0xef')](_0x4c80ac,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b1f6c=(_0x2d112f,_0x3a88ee)=>{this[_0x5f11('0x96')]['change'](_0x5d08ac=>{const {commandName:_0x510810,commandParams:_0x2ae9fc=[]}=_0x3a88ee,_0x4904a7=_0x2d112f['map'](_0x1c00e3=>(_t(_0x1c00e3)&&(_0x1c00e3=this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x1c00e3[_0x5f11('0xb8')])),_0x1c00e3))['filter'](_0x3ef73c=>_0x5f11('0x118')!==_0x3ef73c[_0x5f11('0xe9')][_0x5f11('0x55')]);if(_0x4904a7[_0x5f11('0x74')]<0x1)return;const _0x5c8019=Array[_0x5f11('0x121')](this['_model'][_0x5f11('0xb4')][_0x5f11('0xad')][_0x5f11('0xed')]())[_0x5f11('0x59')](_0x77bb59=>_0x21916d[_0x5f11('0xa9')](_0x77bb59));_0x5d08ac[_0x5f11('0x133')](_0x4904a7);for(const _0x3748fc of this[_0x5f11('0xa0')]['commands'][_0x5f11('0x91')]())_0x3748fc[_0x5f11('0xd0')]();_0x2ae9fc['push']({'forceDefaultExecution':!0x0}),this[_0x5f11('0xa0')][_0x5f11('0xfd')](_0x510810,..._0x2ae9fc);const _0x4d1d90=_0x5c8019[_0x5f11('0x106')](_0x5aecad=>_0x5f11('0x118')!=_0x5aecad[_0x5f11('0xe9')][_0x5f11('0x55')]);_0x4d1d90['length']>0x0&&_0x5d08ac[_0x5f11('0x133')](_0x4d1d90);for(const _0x2abb7a of _0x5c8019)_0x2abb7a[_0x5f11('0x95')]();});},_0x34c7cb=(_0x44f8a2,_0x11ecbb)=>0x1==_0x44f8a2[_0x5f11('0x74')]&&0x1==_0x11ecbb[_0x5f11('0x74')]&&_0x44f8a2[0x0][_0x5f11('0xb8')][_0x5f11('0x75')](_0x11ecbb[0x0][_0x5f11('0xcd')]),_0x76d5ea=(_0x55414a,_0x1dae54,_0x5494d0,_0x327ae3)=>jt(_0x55414a,_0x1dae54,_0x5494d0,_0x327ae3,this[_0x5f11('0x96')])?[_0x55414a,_0x1dae54]:jt(_0x1dae54,_0x55414a,_0x327ae3,_0x5494d0,this[_0x5f11('0x96')])?[_0x1dae54,_0x55414a]:null;this[_0x5f11('0xdf')]['set'](_0x5f11('0xf1'),_0x39f4c0),this[_0x5f11('0xdf')][_0x5f11('0xd8')]('insertion:discard',_0x11ddbf),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x3b'),_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x1e'),_0x76d5ea),this[_0x5f11('0xdf')]['set'](_0x5f11('0xa7'),_0x11ddbf),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0xe6'),_0x39f4c0),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x104'),_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x1f'),_0x76d5ea),this[_0x5f11('0xdf')]['set'](_0x5f11('0xa4'),_0x3b1f6c),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x9b'),_0x39f4c0),this['_defaultCallbacks'][_0x5f11('0xd8')]('formatInline:join',_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x43'),_0x39f4c0),this[_0x5f11('0xdf')][_0x5f11('0xd8')]('formatBlock:accept',_0x3b1f6c),this[_0x5f11('0xdf')][_0x5f11('0xd8')]('formatBlock:discard',_0x39f4c0),this['_defaultCallbacks']['set'](_0x5f11('0x5e'),_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0xfe'),_0x39f4c0);}}function Bt(_0x19de24,_0x373457,_0x116e66){for(const _0x136e25 of _0x373457[_0x5f11('0xf0')][_0x5f11('0xce')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x136e25[_0x5f11('0xe9')]==_0x136e25)return!0x1;if(!_0x116e66[_0x5f11('0x7f')](_0x136e25))return!0x1;if(_0x19de24[_0x5f11('0x40')](_0x136e25)||_0x19de24[_0x5f11('0x64')](_0x136e25))return!0x0;}return!0x1;}function _t(_0x29bf0a){return _0x29bf0a[_0x5f11('0xb8')][_0x5f11('0xf0')]==_0x29bf0a[_0x5f11('0xcd')][_0x5f11('0xb6')]&&_0x29bf0a[_0x5f11('0xb8')][_0x5f11('0x131')];}function Mt(_0x1ec25b,_0x508352,_0x38ff5f,_0x2d7b7e){const _0x4e57e4=_0x6b2248=>!_0x6b2248[_0x5f11('0xdb')]['is'](_0x5f11('0x12a'))&&!_0x2d7b7e[_0x5f11('0x40')](_0x6b2248[_0x5f11('0xdb')]),_0x46a75b=_0x1ec25b[_0x5f11('0xcd')]['getLastMatchingPosition'](_0x4e57e4),_0x58006b=_0x1ec25b[_0x5f11('0xb8')][_0x5f11('0x116')](_0x4e57e4,{'direction':'backward'});return(!_0x1ec25b[_0x5f11('0xcd')]['isEqual'](_0x46a75b)||!_0x1ec25b[_0x5f11('0xb8')][_0x5f11('0x75')](_0x58006b))&&(_0x46a75b[_0x5f11('0x114')](_0x58006b)?_0x38ff5f[_0x5f11('0x8f')](_0x508352,{'range':_0x38ff5f[_0x5f11('0x4d')](_0x46a75b,_0x58006b)}):_0x38ff5f['removeMarker'](_0x508352),!0x0);}function $t(_0x1b9a56){return _0x281bde(_0x1b9a56);}function Nt(_0x7c575c){const _0xa812d7=_0x7c575c[_0x5f11('0xcd')][_0x5f11('0xb6')];return _0xa812d7&&_0xa812d7['is'](_0x5f11('0x9'));}function Rt(_0x57c423,_0x37662a){const _0x565ee4=_0x37662a[_0x5f11('0x16')]['isObject'](_0x57c423)||_0x37662a[_0x5f11('0x16')][_0x5f11('0x103')](_0x57c423);return _0x37662a[_0x5f11('0x4d')](_0x37662a[_0x5f11('0x0')](_0x57c423,_0x5f11('0xe3')),_0x565ee4?_0x37662a['createPositionAfter'](_0x57c423):_0x37662a[_0x5f11('0x0')](_0x57c423,'end'));}function jt(_0x1a6f3b,_0x8ad4af,_0x4a94b2,_0x203f73,_0x1e353c){if(!xt(_0x1a6f3b,_0x8ad4af))return!0x1;if(_0x4a94b2[_0x5f11('0xb8')][_0x5f11('0x75')](_0x203f73[_0x5f11('0xcd')]))return!0x0;if(_0x1a6f3b[_0x5f11('0xa')]!=_0x8ad4af['type'])return!0x1;if(!_0x4a94b2['end'][_0x5f11('0x129')](_0x203f73[_0x5f11('0xcd')]))return!0x1;const _0x176eb4=_0x1e353c[_0x5f11('0x4d')](_0x4a94b2[_0x5f11('0xb8')],_0x203f73['start'])[_0x5f11('0x80')]();for(const _0x47195d of _0x176eb4)if(['elementStart',_0x5f11('0x139')][_0x5f11('0xc6')](_0x47195d[_0x5f11('0xa')])&&_0x1e353c[_0x5f11('0x16')]['isLimit'](_0x47195d[_0x5f11('0xdb')]))return!0x1;return!0x0;}function xt(_0x2b74ac,_0x225f5f){return!(!_0x2b74ac[_0x5f11('0x26')]||!_0x225f5f['_isDataLoaded'])&&_0x252be2(_0x2b74ac[_0x5f11('0x5d')],_0x225f5f[_0x5f11('0x5d')]);}function Ut(_0x2dabd2,_0x136031){const _0x32f8e1=Ot(_0x2dabd2[_0x5f11('0x5d')]),_0x3541be=Ot(_0x136031);if(!_0x2dabd2[_0x5f11('0x26')])return!0x1;for(const _0x2d9531 of Object['keys'](_0x3541be))if(!_0x252be2(_0x32f8e1[_0x2d9531],_0x3541be[_0x2d9531]))return!0x1;return!0x0;}function Ot(_0x5ef885){const _0x5c0118=Object[_0x5f11('0x1')]({},_0x5ef885);return delete _0x5c0118[_0x5f11('0x77')],delete _0x5c0118['tablePasteChainId'],_0x5c0118;}
23
+ const _0x4500=['values','PENDING_ACTION_SUGGESTION','low','markerToHighlight','_updateSuggestionData','isIntersectingWithRange','_addSuggestionMarker','has','formatBlock:accept','deleteContent','after','default','markerName','parent','next','range','_getAuthorFromId','_commentsRepository','subType','markMultiRangeInsertion','suggestion','author','createRangeIn','remove','highest','_customCallbacks','$marker','getChangedMarkers','_splitMarkerName','insertion:','targetPosition','update:suggestion','acceptAllSuggestions','_enabledCommands','createSelection','formatBlock:join','deletion:chain','buildSuggestion','_defaultCallbacks','start','_createSuggestion','conversion','before','isAtEnd','rethrowUnexpectedError','Users','init','markMultiRangeDeletion','isExternal','define','isEqual','batch','_setSuggestionRange','markMultiRangeBlockFormat','hasSuggestion','isAfter','move','discardSuggestion','pluginName','createdAt','isMultiRange','_isDataLoaded','requires','dataToMarker','editor','enableReadOnlyMode','options','_suggestionState','trackChanges.mergeNestedSuggestions','writer','suggestion:','isOwn','schema','multipleBlocks','delete','dataDowncast','splice','widget','_trackFormatChanges','clear','insertion','showSuggestionHighlights','getUser','_suggestionFactory','isUndo','getItems','suggestionChanged','data-suggestion','includes','data','isBefore','registerPostFixer','never','for','formatInline','isRemovable','getSuggestions','insertion:discard','oldRange','trackChangesCommand','getMultiRangeId','editing','commentThread','nodeBefore','removeMarker','join','normal','getFirstMarker','setTo','value','collaboration.channelId','adapter','removeMarker:suggestion:formatBlock','insertion:accept','document','getAttribute','config','_isForcedDefaultExecutionBlock','discardSelectedSuggestions','track-changes-adapter-already-set','getAllAdjacentSuggestions','lowest','forward','isLimit','getFirstRange','addSuggestionData','elementEnd','add','applyOperation','_suggestions','name','_setSuggestionData','track-changes-suggestion-not-found','consume','isBlock','sort','_descriptionFactory','bindElementToMarker','toViewElement','deletion:accept','suggestionUnloaded','authoredAt','multi','end','registerCustomCallback','isInContent','execute','_rangeIsInLocalUserInsertion','differ','updateSuggestion','change','markDeletion','tablePasteChainId','attributes','_joinSuggestions','removeComment','editingDowncast','then','track-changes-suggestion-data-mismatch','markers','keys','getCommentThread','formatInline:','formatInline:accept','getCustomProperty','deletion:join','plugins','containsPosition','split','_model','PendingActions','isNextTo','newRange','formatInline:chain','activeMarkers','getSuggestionCallback','always','formatInline:join','deletion:','getRange','getDifference','deletion','from','get','dataReady','markerToData','type','mapper','elementStart','skipNestingCheck','external:','_breakSuggestionMarker','length','notReady','every','setAttribute','clone','_registerDefaultCallbacks','_checkSuggestionCorrectness','getIntersection','fromCharCode','$graveyard','ck-suggestion-marker-','discard','_onDiscard','hasCommentThread','createPositionAt','enableCommand','discardAllSuggestions','position','getWalker','updateMarker','fetchCommentThread','addMarker:suggestion:formatBlock','_joinWithAdjacentSuggestions','addHighlight','accepted','some','createRange','addMarkerName','formatGroupId','insertion:chain','_mergeNestedSuggestions','stop','forceDefaultExecution','acceptSuggestion','suggestion-type','elementToElement','getShiftedBy','head','containsItem','upcast','markerReady','assign','model','isTouching','addSuggestion','isCollapsed','isAtStart','rejected','CommentsRepository','deletion:discard','listenTo','removeMarkers','set','addClass','formatBlock:','_findSuggestions','commandName','createElement','isLocal','setSelection','getLastMatchingPosition','map','authorName','consumable','ready','filter','marker-count','creator','getRanges','_removeSuggestion','element','backward','addRange','_handleNewSuggestionMarker','$textProxy','group','_refreshSuggestionsChain','high','fire','isInsideObject','moveTargetPosition','detach','trackChanges','splitPosition','TrackChangesEditing','insert','_cutOutSuggestionMarker','containsRange','locale','ck-suggestion-marker-formatBlock','_getSuggestionData','_editor','track-changes-adapter-missing-getsuggestion','toJSON','getMarkers','formatBlock','fromRange','ck-suggestion-marker','markInsertion','size','accept','suggestionLoaded','item','trackChanges.trackFormatChanges','addUser','substr','howMany','_getExternalAuthor','root','addComment','_addThreadToSuggestion','nodeAfter','stopListening','containsRangeInObject','rootName','getSuggestion','isObject','addCommentThread','getNearestSelectionRange','getAncestors','@external','_saved','createPositionBefore','ck-suggestion-marker--active','previous','commands','addMarker','push','change:_saved','_adapter','selection','removeClass','removed'];(function(_0x137a5a,_0x4500c2){const _0x58a56f=function(_0x25ee06){while(--_0x25ee06){_0x137a5a['push'](_0x137a5a['shift']());}};_0x58a56f(++_0x4500c2);}(_0x4500,0xb5));const _0x58a5=function(_0x137a5a,_0x4500c2){_0x137a5a=_0x137a5a-0x0;let _0x58a56f=_0x4500[_0x137a5a];return _0x58a56f;};import{Plugin as _0x308964,PendingActions as _0x412e1c}from'ckeditor5/src/core';import{LiveRange as _0x909b8a}from'ckeditor5/src/engine';import{CKEditorError as _0x123d36,uid as _0x155a2e,priorities as _0x5ee904,logWarning as _0x10b99e}from'ckeditor5/src/utils';import{toWidget as _0x395055}from'ckeditor5/src/widget';import{Users as _0x216031,hashObject as _0x397af0}from'ckeditor5-collaboration/src/collaboration-core';import _0x20318b from'./commands/trackchangescommand';import _0x42ad9c from'./commands/acceptsuggestioncommand';import _0x383a71 from'./commands/discardsuggestioncommand';import _0x3d5262 from'./commands/executeonallsuggestionscommand';import _0x57e24e from'./commands/executeonselectedsuggestionscommand';import _0x4059ef from'./suggestion';import _0x297293 from'./suggestiondescriptionfactory';import _0x20f8c4 from'./integrations/alignment';import _0xd0a2aa from'./integrations/basicstyles';import _0x5a9117 from'./integrations/blockquote';import _0x292c85 from'./integrations/ckbox';import _0x28c674 from'./integrations/codeblock';import _0x43b790 from'./integrations/comments';import _0x6eff40 from'./integrations/deletecommand';import _0x452e2d from'./integrations/documentlist';import _0x5c81d5 from'./integrations/entercommand';import _0xec6841 from'./integrations/findandreplace';import _0x3b3483 from'./integrations/font';import _0x107b1e from'./integrations/formatpainter';import _0x36d1ee from'./integrations/heading';import _0x251938 from'./integrations/highlight';import _0x589a60 from'./integrations/horizontalline';import _0x1b7b85 from'./integrations/htmlembed';import _0x37e560 from'./integrations/image';import _0xf5b835 from'./integrations/imagereplace';import _0x1562cb from'./integrations/importword';import _0x17893 from'./integrations/indent';import _0x18a2db from'./integrations/inputcommand';import _0x3c3132 from'./integrations/link';import _0x369209 from'./integrations/list';import _0x4e7c45 from'./integrations/listproperties';import _0x4e673e from'./integrations/mediaembed';import _0x5d9f9f from'./integrations/mention';import _0x9fea71 from'./integrations/pagebreak';import _0x29eb58 from'./integrations/paragraph';import _0x5161d7 from'./integrations/removeformat';import _0x4a0d9d from'./integrations/restrictededitingmode';import _0x4db1c0 from'./integrations/shiftentercommand';import _0xa39ce0 from'./integrations/standardeditingmode';import _0x674143 from'./integrations/style';import _0x6ccaa1 from'./integrations/table';import _0x30f707 from'./integrations/tablemergesplit';import _0x3ba846 from'./integrations/tableheadings';import _0x23593d from'./integrations/tableclipboard';import _0x40d762 from'./integrations/tablecolumnresize';import _0x517b88 from'./integrations/template';import _0x36413f from'./integrations/tableofcontents';import _0x132993 from'./integrations/title';import _0x4bf7a2 from'./integrations/undo';import{getTranslation as _0x56b64e}from'./utils/common-translations';import _0x47c837 from'./integrations/tablecaption';import _0x52f167 from'./integrations/documentlistproperties';import _0x4a7427 from'./integrations/tableproperties';import{isEqual as _0x10108a}from'lodash-es';export default class p extends _0x308964{static get[_0x58a5('0xce')](){return[_0x58a5('0x3b'),_0x216031,_0x412e1c,_0x20f8c4,_0xd0a2aa,_0x5a9117,_0x292c85,_0x28c674,_0x43b790,_0x6eff40,_0x452e2d,_0x52f167,_0x5c81d5,_0xec6841,_0x3b3483,_0x107b1e,_0x36d1ee,_0x251938,_0x589a60,_0x1b7b85,_0x37e560,_0xf5b835,_0x1562cb,_0x17893,_0x18a2db,_0x3c3132,_0x369209,_0x4e7c45,_0x4e673e,_0x5d9f9f,_0x9fea71,_0x29eb58,_0x5161d7,_0x4a0d9d,_0x4db1c0,_0xa39ce0,_0x674143,_0x6ccaa1,_0x30f707,_0x3ba846,_0x47c837,_0x23593d,_0x40d762,_0x36413f,_0x4a7427,_0x517b88,_0x132993,_0x4bf7a2];}static get[_0x58a5('0xca')](){return _0x58a5('0x5f');}constructor(_0xba5414){function _0x5cc481(_0x312c3c){return _0x312c3c[_0x58a5('0x48')](_0x591a77=>String[_0x58a5('0x13')](_0x591a77))['join']('');}super(_0xba5414),this['set'](_0x58a5('0x13e'),[]),this['on']('change:activeMarkers',(_0x8778d9,_0xed2ffb,_0x568cb4,_0x1f1834)=>{this[_0x58a5('0x139')][_0x58a5('0x126')](()=>{for(const _0x1615da of[..._0x1f1834,..._0x568cb4])this['_model'][_0x58a5('0x12f')][_0x58a5('0x97')](_0x1615da)&&_0xba5414[_0x58a5('0xf5')]['reconvertMarker'](_0x1615da);});}),this[_0x58a5('0x118')]=new _0x297293(this['editor'][_0x58a5('0x35')][_0x58a5('0xd8')],this[_0x58a5('0xd0')][_0x58a5('0x63')]),this[_0x58a5('0x8c')]=null,this[_0x58a5('0xe3')]=new Dt(this[_0x58a5('0xd0')]),this['_suggestions']=new Map(),this[_0x58a5('0xa1')]=_0xba5414['plugins']['get'](_0x58a5('0x3b')),this[_0x58a5('0xb1')]=new Set(),this[_0x58a5('0x139')]=this['editor']['model'],this['_suggestionState']=new WeakMap(),this[_0x58a5('0x105')]=!0x1,_0xba5414[_0x58a5('0x104')][_0x58a5('0xc1')](_0x58a5('0x72'),_0x58a5('0x9b')),this['_trackFormatChanges']=_0xba5414['config'][_0x58a5('0x2')](_0x58a5('0x72')),_0xba5414[_0x58a5('0x104')][_0x58a5('0xc1')](_0x58a5('0xd4'),!0x0),this[_0x58a5('0x29')]=_0xba5414[_0x58a5('0x104')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x58a5('0xf3')]=new _0x20318b(_0xba5414,this[_0x58a5('0xb1')]),this[_0x5cc481([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5cc481([0x34,0x30,0x34,0x36,0x31,0x38,0x32,0x34]);}[_0x58a5('0xbe')](){const _0x3ce9ab=this[_0x58a5('0xd0')];_0x3ce9ab[_0x58a5('0xb9')][_0x58a5('0xed')]('editingDowncast')[_0x58a5('0x93')]({'model':_0x58a5('0xa4'),'view':_0xa39243=>{const {id:_0x1fbfbb,type:_0x583ea1}=this['_splitMarkerName'](_0xa39243[_0x58a5('0x9c')]),_0x45b97b=[_0x58a5('0x6c'),'ck-suggestion-marker-'+_0x583ea1];let _0x39de82=0xbb8;return this[_0x58a5('0x13e')]['includes'](_0xa39243[_0x58a5('0x9c')])&&(_0x45b97b[_0x58a5('0x8a')](_0x58a5('0x86')),_0x39de82=0xbc2),'deletion'==_0x583ea1&&(_0x39de82+=0x5),{'classes':_0x45b97b,'attributes':{'data-suggestion':_0x1fbfbb},'priority':_0x39de82};}}),_0x3ce9ab[_0x58a5('0xb9')]['for'](_0x58a5('0xdb'))[_0x58a5('0x10f')](_0x553d30=>{_0x553d30['on']('addMarker:suggestion',(_0x2846aa,_0x139476,_0x28b171)=>{if(!_0x28b171['options'][_0x58a5('0xe1')])return;const _0x42601c=_0x139476[_0x58a5('0x71')];if(!_0x42601c)return;const _0x477a44=_0x28b171[_0x58a5('0x6')][_0x58a5('0x11a')](_0x42601c);_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0xd8')]['isObject'](_0x42601c)&&_0x477a44&&!_0x477a44[_0x58a5('0x134')](_0x58a5('0xdd'))&&_0x477a44['is']('containerElement')&&_0x395055(_0x477a44,_0x28b171['writer']);},{'priority':_0x58a5('0x58')});}),_0x3ce9ab['conversion'][_0x58a5('0xed')]('dataDowncast')[_0x58a5('0x93')]({'model':'suggestion','view':(_0x21ec07,_0x47de1f)=>{if(!_0x47de1f['options'][_0x58a5('0xe1')])return null;const {type:_0x507433}=this[_0x58a5('0xac')](_0x21ec07[_0x58a5('0x9c')]);return{'classes':[_0x58a5('0x6c'),_0x58a5('0x15')+_0x507433],'priority':0xbb8};}});const _0x133a83=({showActiveMarkers:_0xff1fe6=!0x0}={})=>(_0x22f94a,_0x1aaf0d,_0x4927f8)=>{if(!_0x1aaf0d['item'])return;if(_0x1aaf0d[_0x58a5('0x71')]['is'](_0x58a5('0x8d')))return void _0x4927f8[_0x58a5('0x4a')][_0x58a5('0x115')](_0x1aaf0d[_0x58a5('0x71')],_0x22f94a[_0x58a5('0x112')]);const _0x1aad36=_0x4927f8['mapper'][_0x58a5('0x11a')](_0x1aaf0d[_0x58a5('0x71')]);if(!(_0x1aaf0d['item']['is'](_0x58a5('0x51'))&&_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0xd8')][_0x58a5('0x116')](_0x1aaf0d[_0x58a5('0x71')])&&!_0x1aad36[_0x58a5('0x134')]('addHighlight')))return;const {id:_0x4abf8d}=this[_0x58a5('0xac')](_0x1aaf0d[_0x58a5('0x9c')]);_0x4927f8[_0x58a5('0xd5')][_0x58a5('0x40')]([_0x58a5('0x6c'),_0x58a5('0x64')],_0x1aad36),_0x4927f8[_0x58a5('0xd5')][_0x58a5('0xe')](_0x58a5('0xe7'),_0x4abf8d,_0x1aad36),_0x4927f8[_0x58a5('0x6')][_0x58a5('0x119')](_0x1aad36,_0x1aaf0d[_0x58a5('0x9c')]),_0xff1fe6&&(this[_0x58a5('0x13e')][_0x58a5('0xe8')](_0x1aaf0d[_0x58a5('0x9c')])?_0x4927f8[_0x58a5('0xd5')][_0x58a5('0x40')](_0x58a5('0x86'),_0x1aad36):_0x4927f8[_0x58a5('0xd5')][_0x58a5('0x8e')](_0x58a5('0x86'),_0x1aad36));for(const _0x3ae599 of _0x3ce9ab[_0x58a5('0x35')][_0x58a5('0xa6')](_0x1aaf0d[_0x58a5('0x71')])[_0x58a5('0xe5')]())_0x4927f8[_0x58a5('0x4a')]['consume'](_0x3ae599,_0x22f94a['name']);_0x4927f8['consumable'][_0x58a5('0x115')](_0x1aaf0d['item'],_0x22f94a[_0x58a5('0x112')]);};_0x3ce9ab[_0x58a5('0xb9')][_0x58a5('0xed')](_0x58a5('0xdb'))[_0x58a5('0x10f')](_0x1aae90=>{_0x1aae90['on']('addMarker:suggestion:formatBlock',(_0x51a006,_0x2d8960,_0x2e9158)=>{_0x2e9158[_0x58a5('0xd2')][_0x58a5('0xe1')]&&_0x133a83({'showActiveMarkers':!0x1})(_0x51a006,_0x2d8960,_0x2e9158);},{'priority':_0x58a5('0xa8')});}),_0x3ce9ab[_0x58a5('0xb9')][_0x58a5('0xed')]('dataDowncast')[_0x58a5('0x4')]({'model':_0x58a5('0xa4'),'view':(_0x13f7b9,_0x33546e)=>_0x33546e['options'][_0x58a5('0xe1')]?null:{'group':_0x58a5('0xa4'),'name':_0x13f7b9[_0x58a5('0x74')](0xb)}}),_0x3ce9ab[_0x58a5('0xb9')][_0x58a5('0xed')](_0x58a5('0x32'))[_0x58a5('0x2e')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x946552,{writer:_0x20faf1})=>{let _0x1215c5=_0x58a5('0xd6')+_0x946552['getAttribute'](_0x58a5('0x2d'))+':'+_0x946552[_0x58a5('0x103')]('id');return _0x946552[_0x58a5('0x103')](_0x58a5('0x4d'))&&(_0x1215c5+=':'+_0x946552[_0x58a5('0x103')]('marker-count')),_0x20faf1[_0x58a5('0x44')](_0x58a5('0xaa'),{'data-name':_0x1215c5});}}),_0x3ce9ab[_0x58a5('0xb9')][_0x58a5('0xed')]('upcast')[_0x58a5('0xcf')]({'view':_0x58a5('0xa4')}),_0x3ce9ab['conversion'][_0x58a5('0xed')]('editingDowncast')[_0x58a5('0x10f')](_0x5c74f6=>{_0x5c74f6['on'](_0x58a5('0x20'),_0x133a83(),{'priority':_0x58a5('0x58')});}),_0x3ce9ab['conversion'][_0x58a5('0xed')](_0x58a5('0x12c'))['add'](_0x5d0a09=>{_0x5d0a09['on'](_0x58a5('0x100'),(_0x269ff7,_0x2158dd,_0x5d6f55)=>{const _0x220c7a=_0x5d6f55['mapper']['markerNameToElements'](_0x2158dd['markerName']);if(_0x220c7a)for(const _0x2ecd51 of _0x220c7a)_0x2ecd51[_0x58a5('0x134')](_0x58a5('0x22'))||(_0x5d6f55[_0x58a5('0xd5')][_0x58a5('0x8e')]([_0x58a5('0x6c'),_0x58a5('0x64'),'ck-suggestion-marker--active'],_0x2ecd51),_0x5d6f55[_0x58a5('0xd5')]['removeAttribute']('data-suggestion',_0x2ecd51),_0x5d6f55['mapper']['unbindElementFromMarkerName'](_0x2ecd51,_0x2158dd['markerName']));},{'priority':'high'});}),_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x102')]['registerPostFixer'](_0x1bef24=>{let _0x522b3b=!0x1;const _0x47a937=Array[_0x58a5('0x1')](_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x102')][_0x58a5('0x124')][_0x58a5('0xab')]()),_0x26a9ee=new Set();for(const {name:_0x130fa9,data:_0x4f5b00}of _0x47a937){const {group:_0x482c50,type:_0x34b6fb,id:_0x5b8665}=this[_0x58a5('0xac')](_0x130fa9);if(_0x58a5('0xa4')!==_0x482c50)continue;const _0x59574f=this[_0x58a5('0x111')][_0x58a5('0x2')](_0x5b8665);if(null!=_0x4f5b00[_0x58a5('0x13c')]){_0x58a5('0xee')==_0x34b6fb&&(_0x522b3b=_0x522b3b||Mt(_0x4f5b00['newRange'],_0x130fa9,_0x1bef24,_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0xd8')]));if(_0x4f5b00['newRange'][_0x58a5('0x38')]||_0x58a5('0x14')==_0x4f5b00[_0x58a5('0x13c')]['root']['rootName']||_0x58a5('0x6a')==_0x34b6fb&&!Nt(_0x4f5b00[_0x58a5('0x13c')])||_0x58a5('0x0')==_0x34b6fb&&!(!_t(_0x5e3f20=_0x4f5b00[_0x58a5('0x13c')])&&!function(_0x478e72){return _0x478e72[_0x58a5('0xb7')][_0x58a5('0x9d')]==_0x478e72[_0x58a5('0x11f')][_0x58a5('0xf7')]&&_0x478e72[_0x58a5('0xb7')][_0x58a5('0xbb')];}(_0x5e3f20)))_0x1bef24[_0x58a5('0xf8')](_0x130fa9),_0x522b3b=!0x0;else{if(!_0x59574f||!_0x59574f[_0x58a5('0x121')])continue;_0x26a9ee['add'](_0x59574f);}}}var _0x5e3f20;return _0x26a9ee['size']>0x0&&(_0x522b3b=!!this[_0x58a5('0x21')](_0x26a9ee)||_0x522b3b),_0x522b3b;}),_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x102')][_0x58a5('0xeb')](_0x4aaf0f=>{let _0x28c9d7=!0x1;for(const _0x2f6ce9 of _0x3ce9ab['model']['document'][_0x58a5('0x124')]['getChanges']()){if(_0x58a5('0x60')!=_0x2f6ce9['type'])continue;const _0xd0cd7d=_0x2f6ce9[_0x58a5('0x1c')][_0x58a5('0x2f')](_0x2f6ce9[_0x58a5('0xb')]);if(_0xd0cd7d['isAtEnd'])for(const _0x1dd208 of this[_0x58a5('0x111')][_0x58a5('0x90')]()){if(_0x1dd208['isMultiRange']||!_0x1dd208[_0x58a5('0x121')])continue;if(_0x58a5('0x6a')!=_0x1dd208[_0x58a5('0x5')])continue;const _0x5c25c4=_0x1dd208['getFirstRange']();if(_0x5c25c4[_0x58a5('0xb7')][_0x58a5('0x9d')]!=_0x5c25c4[_0x58a5('0x11f')][_0x58a5('0x9d')]&&_0x5c25c4[_0x58a5('0x11f')][_0x58a5('0xc2')](_0x2f6ce9[_0x58a5('0x1c')])){const _0x15081e=_0x3ce9ab['model'][_0x58a5('0x25')](_0x5c25c4[_0x58a5('0xb7')],_0xd0cd7d);_0x4aaf0f['updateMarker'](_0x1dd208[_0x58a5('0xfb')](),{'range':_0x15081e}),_0x28c9d7=!0x0;}}}return _0x28c9d7;}),_0x3ce9ab[_0x58a5('0x35')]['markers']['on'](_0x58a5('0xaf'),(_0x473d6a,_0x2361c0,_0x11101e)=>{if(null==_0x11101e){const {id:_0x4ca34e}=this[_0x58a5('0xac')](_0x2361c0['name']),_0x3d2528=this[_0x58a5('0x111')][_0x58a5('0x2')](_0x4ca34e);_0x3d2528&&_0x3d2528[_0x58a5('0x26')](_0x2361c0['name']);}}),_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x102')]['on']('change:data',()=>{const _0x32b945=Array[_0x58a5('0x1')](_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x102')][_0x58a5('0x124')]['getChangedMarkers']())[_0x58a5('0x4c')](_0x507313=>_0x58a5('0xa4')===this[_0x58a5('0xac')](_0x507313[_0x58a5('0x112')])[_0x58a5('0x56')]);if(0x0===_0x32b945[_0x58a5('0xb')])return;_0x32b945[_0x58a5('0x117')]((_0x5dfa26,_0x53ce38)=>{const _0xb2f12e=_0x5dfa26[_0x58a5('0xe9')][_0x58a5('0xf2')],_0x3adb7c=_0x53ce38[_0x58a5('0xe9')]['oldRange'];return null===_0xb2f12e&&null===_0x3adb7c?0x0:null===_0xb2f12e&&null!==_0x3adb7c?-0x1:null!==_0xb2f12e&&null===_0x3adb7c?0x1:_0xb2f12e[_0x58a5('0xb7')][_0x58a5('0xea')](_0x3adb7c[_0x58a5('0xb7')])?-0x1:0x1;});const _0x477606=new Set(),_0x1dee14=new Set();for(const {name:_0xdca02,data:_0x166101}of _0x32b945){const {id:_0x32996a}=this[_0x58a5('0xac')](_0xdca02);if(null===_0x166101[_0x58a5('0xf2')]){const _0x663bd7=this[_0x58a5('0x54')](_0xdca02);_0x1dee14['add'](_0x663bd7);}else{const _0x4f2c6e=this[_0x58a5('0x111')]['get'](_0x32996a);null!==_0x166101[_0x58a5('0x13c')]||_0x4f2c6e[_0x58a5('0x121')]?(_0x477606[_0x58a5('0x10f')](_0x4f2c6e[_0x58a5('0x30')]),_0x1dee14['add'](_0x4f2c6e)):this[_0x58a5('0x50')](_0x4f2c6e);}}_0x1dee14[_0x58a5('0x6e')]>0x0&&this[_0x58a5('0x57')](_0x1dee14);for(const _0x923072 of _0x477606)this[_0x58a5('0x59')](_0x58a5('0xe6'),_0x923072);}),_0x3ce9ab['model']['on'](_0x58a5('0x110'),(_0x355358,_0x465493)=>{const _0x125607=_0x465493[0x0];if(!this[_0x58a5('0x111')][_0x58a5('0x6e')])return;if(!_0x125607['isDocumentOperation'])return;if(_0x125607[_0x58a5('0xc3')][_0x58a5('0xe4')]||!_0x125607[_0x58a5('0xc3')][_0x58a5('0x45')])return;let _0x1f53e0,_0x4d65b2;switch(_0x125607[_0x58a5('0x5')]){case _0x58a5('0x60'):_0x1f53e0=_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x19')](_0x125607[_0x58a5('0x1c')]),_0x4d65b2=_0x1f53e0[_0x58a5('0x2f')](_0x125607[_0x58a5('0x75')]);break;case _0x58a5('0x138'):_0x1f53e0=_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x19')](_0x125607[_0x58a5('0x5e')]),_0x4d65b2=_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x19')](_0x125607[_0x58a5('0x5b')]);break;case _0x58a5('0xc8'):_0x1f53e0=_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x19')](_0x125607[_0x58a5('0xae')]),_0x4d65b2=_0x1f53e0[_0x58a5('0x2f')](_0x125607['howMany']);break;default:return;}const _0x4c1176=_0x3ce9ab[_0x58a5('0x35')]['createRange'](_0x1f53e0,_0x4d65b2);_0x3ce9ab['model'][_0x58a5('0x126')](()=>{for(const {suggestion:_0x15dc4a,meta:_0x17d7cf}of this[_0x58a5('0x42')](_0x4c1176)){if(_0x15dc4a[_0x58a5('0xcc')])continue;if(_0x58a5('0xee')==_0x15dc4a[_0x58a5('0x5')])continue;const _0x30110a=_0x15dc4a['data']&&_0x15dc4a[_0x58a5('0xe9')]['multipleBlocks'];(_0x58a5('0x6a')!=_0x15dc4a[_0x58a5('0x5')]||_0x58a5('0x138')==_0x125607[_0x58a5('0x5')]&&!_0x30110a)&&(_0x17d7cf[_0x58a5('0x7c')]||_0x58a5('0xe0')==_0x15dc4a[_0x58a5('0x5')]&&_0x17d7cf[_0x58a5('0xd7')]||_0x15dc4a[_0x58a5('0x10c')]()[_0x58a5('0x62')](_0x4c1176)&&this[_0x58a5('0xa')](_0x15dc4a,_0x1f53e0,_0x4d65b2));}});},{'priority':_0x58a5('0x109')}),_0x3ce9ab[_0x58a5('0x35')]['on']('deleteContent',(_0x538a43,_0x74efa4)=>{const _0x3d6186=_0x74efa4[0x0],_0x1bc920=_0x74efa4[0x1];if(_0x1bc920&&_0x1bc920[_0x58a5('0x2b')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x58a5('0xf3')][_0x58a5('0xfd')])return;if(_0x3d6186[_0x58a5('0x38')])return;const _0x35a009=_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0xd8')],{start:_0x4a80e4,end:_0x2667a4}=_0x3d6186[_0x58a5('0x10c')](),_0x24eadf=_0x4a80e4[_0x58a5('0x7a')]&&_0x35a009[_0x58a5('0x10b')](_0x4a80e4[_0x58a5('0x7a')])?null:_0x35a009[_0x58a5('0x81')](_0x4a80e4,_0x58a5('0x10a')),_0x315b5a=_0x2667a4[_0x58a5('0xf7')]&&_0x35a009[_0x58a5('0x10b')](_0x2667a4[_0x58a5('0xf7')])?null:_0x35a009['getNearestSelectionRange'](_0x2667a4,_0x58a5('0x52')),_0x48bfcf=_0x3ce9ab[_0x58a5('0x35')]['createRange'](_0x24eadf?_0x24eadf[_0x58a5('0xb7')]:_0x4a80e4,_0x315b5a?_0x315b5a[_0x58a5('0x11f')]:_0x2667a4);_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x126')](_0x45d448=>{this[_0x58a5('0x127')](_0x48bfcf);const _0x410c52=_0x3ce9ab['model']['schema']['getNearestSelectionRange'](_0x48bfcf[_0x58a5('0xb7')]);_0x3d6186['is']('documentSelection')?_0x45d448[_0x58a5('0x46')](_0x410c52):_0x3d6186[_0x58a5('0xfc')](_0x410c52);}),_0x538a43[_0x58a5('0x2a')]();},{'priority':_0x5ee904[_0x58a5('0xfa')]+0xa}),_0x3ce9ab['model']['on']('insertContent',(_0x43f929,_0x3e59bf)=>{const _0x249263=_0x3e59bf[_0x3e59bf[_0x58a5('0xb')]-0x1];_0x249263&&_0x249263[_0x58a5('0x2b')]||this[_0x58a5('0x105')]||this['trackChangesCommand'][_0x58a5('0xfd')]&&(_0x3ce9ab[_0x58a5('0x35')]['change'](()=>{let _0xf1d63b=_0x3ce9ab['model']['insertContent'](_0x3e59bf[0x0],_0x3e59bf[0x1],_0x3e59bf[0x2],{'forceDefaultExecution':!0x0});if(!_0xf1d63b)return;_0x43f929['return']=_0xf1d63b[_0x58a5('0xf')]();const _0x56cdab=_0xf1d63b[_0x58a5('0x11f')][_0x58a5('0xf7')],_0x1f209c=_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0xd8')];_0x56cdab&&_0x1f209c[_0x58a5('0x116')](_0x56cdab)&&!_0x1f209c[_0x58a5('0x7f')](_0x56cdab)&&(_0xf1d63b=_0x3ce9ab[_0x58a5('0x35')][_0x58a5('0x25')](_0xf1d63b[_0x58a5('0xb7')],_0x3ce9ab[_0x58a5('0x35')]['createPositionAt'](_0x56cdab,'end'))),this[_0x58a5('0x6d')](_0xf1d63b);}),_0x43f929['stop']());},{'priority':_0x58a5('0x58')}),this[_0x58a5('0xd0')][_0x58a5('0x88')][_0x58a5('0x10f')](_0x58a5('0x5d'),this[_0x58a5('0xf3')]),this['enableCommand'](_0x58a5('0x5d'));const _0x41f2c9=new _0x42ad9c(_0x3ce9ab,this[_0x58a5('0x111')]);_0x3ce9ab[_0x58a5('0x88')]['add'](_0x58a5('0x2c'),_0x41f2c9),this[_0x58a5('0x1a')](_0x58a5('0x2c'));const _0x420d39=new _0x383a71(_0x3ce9ab,this[_0x58a5('0x111')]);_0x3ce9ab[_0x58a5('0x88')][_0x58a5('0x10f')](_0x58a5('0xc9'),_0x420d39),this[_0x58a5('0x1a')](_0x58a5('0xc9')),_0x3ce9ab[_0x58a5('0x88')]['add']('acceptAllSuggestions',new _0x3d5262(_0x3ce9ab,_0x41f2c9,this[_0x58a5('0x111')])),this['enableCommand'](_0x58a5('0xb0')),_0x3ce9ab['commands'][_0x58a5('0x10f')](_0x58a5('0x1b'),new _0x3d5262(_0x3ce9ab,_0x420d39,this[_0x58a5('0x111')])),this[_0x58a5('0x1a')]('discardAllSuggestions'),_0x3ce9ab[_0x58a5('0x88')][_0x58a5('0x10f')]('acceptSelectedSuggestions',new _0x57e24e(_0x3ce9ab,_0x41f2c9,this['_suggestions'])),this[_0x58a5('0x1a')]('acceptSelectedSuggestions'),_0x3ce9ab[_0x58a5('0x88')][_0x58a5('0x10f')]('discardSelectedSuggestions',new _0x57e24e(_0x3ce9ab,_0x420d39,this[_0x58a5('0x111')])),this[_0x58a5('0x1a')](_0x58a5('0x106'));const _0x147f18=_0x3ce9ab[_0x58a5('0x136')][_0x58a5('0x2')](_0x58a5('0x3b'));this[_0x58a5('0x3d')](_0x147f18,_0x58a5('0x78'),(_0x28e425,{threadId:_0x1f97dd})=>{const _0xe6b9b0=this[_0x58a5('0x111')]['get'](_0x1f97dd);_0xe6b9b0&&_0xe6b9b0[_0x58a5('0xf6')]&&0x1===_0xe6b9b0[_0x58a5('0xf6')][_0x58a5('0xb')]&&this['_updateSuggestionData'](_0x1f97dd,{'hasComments':!0x0});},{'priority':_0x58a5('0x92')}),this[_0x58a5('0x3d')](_0x147f18,_0x58a5('0x12b'),(_0x522845,{threadId:_0x13eb27})=>{const _0x1da223=this[_0x58a5('0x111')][_0x58a5('0x2')](_0x13eb27);_0x1da223&&_0x1da223[_0x58a5('0xf6')]&&!_0x1da223['commentThread'][_0x58a5('0xb')]&&this[_0x58a5('0x94')](_0x13eb27,{'hasComments':!0x1});},{'priority':'low'});}set[_0x58a5('0xff')](_0x54451d){if(this[_0x58a5('0x8c')])throw new _0x123d36(_0x58a5('0x107'),this);this['_adapter']=_0x54451d;}get[_0x58a5('0xff')](){return this[_0x58a5('0x8c')];}[_0x58a5('0xf0')]({skipNotAttached:_0x15351b=!0x1,toJSON:_0x54cca8=!0x1}={}){const _0xe32795=[];for(const _0x4ed11c of this[_0x58a5('0x111')]['values']())_0x15351b&&!_0x4ed11c[_0x58a5('0x121')]||_0xe32795['push'](_0x4ed11c);return _0x54cca8?_0xe32795[_0x58a5('0x48')](_0x47c2fb=>_0x47c2fb[_0x58a5('0x68')]()):_0xe32795;}[_0x58a5('0x7e')](_0x39075b){const _0x2deade=this['_suggestions'][_0x58a5('0x2')](_0x39075b);if(!_0x2deade)throw new _0x123d36(_0x58a5('0x114'),this);return _0x2deade;}[_0x58a5('0xc6')](_0x485e76){return this[_0x58a5('0x111')][_0x58a5('0x97')](_0x485e76);}[_0x58a5('0x10d')](_0x5f14e9){const {authorId:_0x46b45b,id:_0x4c032a,attributes:_0x5dba55}=_0x5f14e9,[_0x51f565,_0x2dae5b]=_0x5f14e9[_0x58a5('0x5')]['split'](':'),_0x226999=this[_0x58a5('0x111')][_0x58a5('0x2')](_0x4c032a)||this[_0x58a5('0xb8')](_0x51f565,_0x2dae5b,_0x4c032a,_0x46b45b,_0x5dba55);if(this[_0x58a5('0x79')](_0x226999),this[_0x58a5('0x11')](_0x226999,_0x51f565,_0x2dae5b||null,_0x46b45b),_0x226999[_0x58a5('0xcb')]=_0x5f14e9[_0x58a5('0xcb')],_0x226999[_0x58a5('0xcd')]=!0x0,_0x5dba55&&_0x5dba55[_0x58a5('0x83')]){const _0x469916=_0x5dba55[_0x58a5('0x83')],_0x267872=this[_0x58a5('0x76')](_0x469916[_0x58a5('0x49')]);_0x226999[_0x58a5('0x11d')]=_0x469916[_0x58a5('0xcb')],_0x226999[_0x58a5('0xa5')]=_0x267872,_0x226999[_0x58a5('0xc0')]=!0x0;}else _0x226999['authoredAt']=_0x5f14e9['createdAt'];switch(_0x5f14e9[_0x58a5('0xe9')]&&(_0x226999[_0x58a5('0xe9')]=_0x5f14e9['data']),_0x5f14e9['attributes']&&(_0x226999[_0x58a5('0x129')]=_0x5f14e9[_0x58a5('0x129')]),this['_adapter']&&this[_0x58a5('0x8c')][_0x58a5('0x37')]||(_0x226999[_0x58a5('0x84')]=!0x0),this[_0x58a5('0xd3')]['get'](_0x226999)){case _0x58a5('0xc'):this['_suggestionState'][_0x58a5('0x3f')](_0x226999,_0x58a5('0x3'));break;case _0x58a5('0x33'):_0x226999['isInContent']?(this[_0x58a5('0x57')](new Set([_0x226999])),this['_joinWithAdjacentSuggestions'](new Set([_0x226999])),this['_suggestionState'][_0x58a5('0x3f')](_0x226999,_0x58a5('0x4b')),this['fire'](_0x58a5('0x70'),_0x226999)):this[_0x58a5('0xd3')][_0x58a5('0x3f')](_0x226999,_0x58a5('0x8f'));}return _0x226999;}[_0x58a5('0x2c')](_0x5c65b8){this[_0x58a5('0x2b')](()=>{this[_0x58a5('0xd0')][_0x58a5('0x35')][_0x58a5('0x126')](()=>{for(const _0x3dd017 of _0x5c65b8['getAllAdjacentSuggestions']())_0x3dd017['accept']();});});}[_0x58a5('0xc9')](_0x596435){this[_0x58a5('0x2b')](()=>{this[_0x58a5('0xd0')][_0x58a5('0x35')]['change'](()=>{for(const _0x326b8d of _0x596435[_0x58a5('0x108')]())_0x326b8d[_0x58a5('0x16')]();});});}[_0x58a5('0x1a')](_0x5c4a8e,_0x19bded){const _0x134941=this['editor'][_0x58a5('0x88')][_0x58a5('0x2')](_0x5c4a8e);if(!_0x134941)throw new _0x123d36('track-changes-command-not-found',this,{'commandName':_0x5c4a8e});this['_enabledCommands'][_0x58a5('0x10f')](_0x134941),_0x19bded&&_0x134941['on'](_0x58a5('0x122'),(_0x117e7c,_0x85c7e9)=>{this[_0x58a5('0xf3')][_0x58a5('0xfd')]&&(this[_0x58a5('0x105')]||_0x85c7e9[_0x58a5('0xb')]>0x0&&_0x85c7e9[_0x85c7e9['length']-0x1]&&_0x85c7e9[_0x85c7e9[_0x58a5('0xb')]-0x1][_0x58a5('0x2b')]||(_0x19bded((..._0x25801e)=>_0x134941['execute'](..._0x25801e,{'forceDefaultExecution':!0x0}),..._0x85c7e9),_0x117e7c['stop']()));},{'priority':_0x58a5('0x58')});}[_0x58a5('0x2b')](_0x1f16b0){let _0x1d9c1b,_0x23cde9;const _0x26228=this[_0x58a5('0x105')];this[_0x58a5('0x105')]=!0x0;try{_0x1d9c1b=_0x1f16b0();}catch(_0x228542){_0x23cde9=_0x228542;}return _0x26228||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x23cde9&&_0x123d36[_0x58a5('0xbc')](_0x23cde9,this),_0x1d9c1b;}[_0x58a5('0x6d')](_0x443417,_0x196909=null,_0x6a7e6b={}){if(_0x443417[_0x58a5('0x38')])return null;const _0x2eeaef=this[_0x58a5('0xd0')]['plugins'][_0x58a5('0x2')]('Users')['me'];for(const {suggestion:_0x1991cc,meta:_0x1596ff}of this[_0x58a5('0x42')](_0x443417,_0x58a5('0xe0')))if(_0x1596ff[_0x58a5('0xd7')]){if(!_0x1596ff[_0x58a5('0x13b')]){if(_0x1596ff[_0x58a5('0x7c')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x1991cc,_0x6a7e6b))continue;return _0x1991cc;}if(Ut(_0x1991cc,_0x6a7e6b))return _0x1991cc;this[_0x58a5('0xa')](_0x1991cc,_0x443417[_0x58a5('0xb7')],_0x443417['end']);break;}if(_0x196909==_0x1991cc[_0x58a5('0xa2')]&&Ut(_0x1991cc,_0x6a7e6b)){const _0x540c1a=_0x1991cc[_0x58a5('0x10c')]();return _0x540c1a[_0x58a5('0xb7')]['isEqual'](_0x443417['end'])?this['_setSuggestionRange'](_0x1991cc,this[_0x58a5('0x139')][_0x58a5('0x25')](_0x443417['start'],_0x540c1a[_0x58a5('0x11f')])):this['_setSuggestionRange'](_0x1991cc,this[_0x58a5('0x139')][_0x58a5('0x25')](_0x540c1a['start'],_0x443417[_0x58a5('0x11f')])),_0x1991cc;}}const _0x3a15fb=_0x155a2e(),_0x2adb26=_0x2eeaef['id'],_0x5e3119=_0x196909?_0x58a5('0xad')+_0x196909:_0x58a5('0xe0'),_0x4fc25e=this[_0x58a5('0x113')]({'id':_0x3a15fb,'type':_0x5e3119,'createdAt':new Date(),'authorId':_0x2adb26,'attributes':_0x6a7e6b});return this['_addSuggestionMarker'](_0x5e3119,_0x3a15fb,_0x2adb26,_0x443417),_0x4fc25e;}[_0x58a5('0xa3')](_0x29ca01,_0xaff7a6=_0x58a5('0x11e'),_0xc2b269={}){const _0x3f03ec=this['editor']['plugins']['get'](_0x58a5('0xbd'))['me'],_0xb13e5b=this['_suggestionFactory'][_0x58a5('0x13f')](_0x58a5('0xe0'),_0xaff7a6,_0x58a5('0xf9'));for(const _0x1d56f2 of this[_0x58a5('0xf0')]())if(_0x1d56f2[_0x58a5('0xa5')]['id']==_0x3f03ec['id']&&'insertion'==_0x1d56f2[_0x58a5('0x5')]&&_0x1d56f2[_0x58a5('0xa2')]==_0xaff7a6&&Ut(_0x1d56f2,_0xc2b269)&&(_0xb13e5b(_0x1d56f2[_0x58a5('0x4f')](),_0x29ca01)||_0xb13e5b(_0x29ca01,_0x1d56f2['getRanges']()))){for(const _0x5b71ca of _0x29ca01)_0x1d56f2['addRange'](_0x5b71ca);return _0x1d56f2;}for(const {suggestion:_0x3ef00b,meta:_0x2d3ebd}of this[_0x58a5('0x42')](_0x29ca01,_0x58a5('0xe0'))){if(!_0x2d3ebd[_0x58a5('0xd7')])continue;if(!this[_0x58a5('0x29')]&&_0x2d3ebd[_0x58a5('0x7c')])continue;if(!Ut(_0x3ef00b,_0xc2b269))continue;let _0x3a32f1=!0x0;for(const _0x34387f of _0x3ef00b['getRanges']())for(const _0x5b0ce2 of _0x29ca01)if(!_0x34387f[_0x58a5('0x62')](_0x5b0ce2)){_0x3a32f1=!0x1;break;}if(_0x3a32f1)return _0x3ef00b;}const _0x4e940a=_0x155a2e(),_0x1a68a5=_0x3f03ec['id'],_0x455116='insertion:'+_0xaff7a6,_0x3fe56b=this['_setSuggestionData']({'id':_0x4e940a,'type':_0x455116,'createdAt':new Date(),'authorId':_0x1a68a5,'attributes':_0xc2b269});for(const _0x4b8d40 of _0x29ca01)this[_0x58a5('0x96')](_0x455116,_0x4e940a,_0x1a68a5,_0x4b8d40,_0x4059ef[_0x58a5('0xf4')]());return _0x3fe56b;}['markInlineFormat'](_0x591b29,_0x3b59c3,_0x4ac719=null,_0x36a6c7={}){if(_0x4ac719=_0x4ac719||$t(_0x3b59c3),_0x591b29[_0x58a5('0x38')])return null;if('never'===this[_0x58a5('0xde')]){const _0x4f8821=this['_suggestionFactory'][_0x58a5('0x13f')](_0x58a5('0xee'),_0x4ac719,_0x58a5('0x6f'));return this[_0x58a5('0x2b')](()=>_0x4f8821([_0x591b29],_0x3b59c3,_0x36a6c7)),null;}const _0xc6c61d=this[_0x58a5('0xd0')][_0x58a5('0x136')]['get'](_0x58a5('0xbd'))['me'],_0x41d447=[];if(_0x58a5('0x140')!==this[_0x58a5('0xde')])for(const {suggestion:_0x3aa172,meta:_0x2c15e2}of this[_0x58a5('0x42')](_0x591b29,_0x58a5('0xe0')))_0x2c15e2['isOwn']&&!_0x2c15e2[_0x58a5('0x5a')]&&_0x41d447[_0x58a5('0x8a')](..._0x3aa172[_0x58a5('0x4f')]());const _0x26f503=function(_0x44c65e,_0x4f7c73){const _0x1d8533=[];for(const _0x2d356d of _0x4f7c73){const _0x259fe9=_0x44c65e[_0x58a5('0x12')](_0x2d356d);_0x259fe9&&_0x1d8533[_0x58a5('0x8a')](_0x259fe9);}return _0x1d8533;}(_0x591b29,_0x41d447),_0x53984a=function(_0x3df0ef,_0x5e0106){const _0x3e89aa=[_0x3df0ef];for(const _0x3f3b68 of _0x5e0106){let _0x398bab=0x0;for(;_0x398bab<_0x3e89aa[_0x58a5('0xb')];){const _0xc3ae2f=_0x3e89aa[_0x398bab]['getDifference'](_0x3f3b68);_0x3e89aa[_0x58a5('0xdc')](_0x398bab,0x1,..._0xc3ae2f),_0x398bab+=_0xc3ae2f[_0x58a5('0xb')];}}return _0x3e89aa;}(_0x591b29,_0x41d447);_0x26f503[_0x58a5('0xb')]&&this[_0x58a5('0x139')]['change'](()=>{for(const _0xd4c6bf of _0x26f503){const _0xf0251a=this[_0x58a5('0xe3')]['getSuggestionCallback'](_0x58a5('0xee'),_0x4ac719,_0x58a5('0x6f'));this[_0x58a5('0x2b')](()=>_0xf0251a([_0xd4c6bf],_0x3b59c3,_0x36a6c7));}});for(const _0x1ad185 of _0x53984a){let _0x4774db=null,_0x7659dc=_0x1ad185[_0x58a5('0xb7')],_0xfa8951=_0x1ad185[_0x58a5('0x11f')];for(const {suggestion:_0x1983c6,meta:_0x1972fe}of this[_0x58a5('0x42')](_0x1ad185,'formatInline')){if(!_0x1972fe[_0x58a5('0xd7')])continue;if(_0x1983c6[_0x58a5('0xa2')]!=_0x4ac719)continue;if(!Ut(_0x1983c6,_0x36a6c7))continue;const _0x2aad9f=_0x1983c6['getFirstRange']();if(_0x2aad9f[_0x58a5('0x62')](_0x1ad185,!0x0))return null;_0x7659dc=_0x7659dc['isBefore'](_0x2aad9f[_0x58a5('0xb7')])?_0x7659dc:_0x2aad9f[_0x58a5('0xb7')],_0xfa8951=_0xfa8951[_0x58a5('0xc7')](_0x2aad9f[_0x58a5('0x11f')])?_0xfa8951:_0x2aad9f['end'],_0x4774db?_0x2aad9f['start'][_0x58a5('0xea')](_0x4774db[_0x58a5('0x10c')]()[_0x58a5('0xb7')])?(_0x4774db[_0x58a5('0x3e')](),_0x4774db=_0x1983c6):_0x1983c6[_0x58a5('0x3e')]():_0x4774db=_0x1983c6;}const _0x403c56=this[_0x58a5('0x139')][_0x58a5('0x25')](_0x7659dc,_0xfa8951);if(_0x4774db)this['_setSuggestionRange'](_0x4774db,_0x403c56);else{const _0x399a8f=_0x155a2e(),_0x2625bb=_0xc6c61d['id'];this[_0x58a5('0x113')]({'id':_0x399a8f,'type':_0x58a5('0x132')+_0x4ac719,'data':_0x3b59c3,'createdAt':new Date(),'authorId':_0x2625bb,'attributes':_0x36a6c7}),this['_addSuggestionMarker'](_0x58a5('0x132')+_0x4ac719,_0x399a8f,_0x2625bb,_0x403c56);}}return null;}['markBlockFormat'](_0xd226db,_0x26e1d0,_0x38d1c4=[],_0x550441=null,_0x38dfa9={}){_0x26e1d0[_0x58a5('0x27')]||(_0x26e1d0[_0x58a5('0x27')]=_0x26e1d0[_0x58a5('0x43')]),_0x26e1d0['multipleBlocks']=_0xd226db['is'](_0x58a5('0x9f')),_0x550441=_0x550441||$t(_0x26e1d0);const _0x41ae23=_0x38d1c4['map'](_0x2c6d63=>Rt(_0x2c6d63,this[_0x58a5('0x139')])),_0x387244=_0xd226db['is'](_0x58a5('0x9f'))?_0xd226db:Rt(_0xd226db,this[_0x58a5('0x139')]);if(_0x58a5('0xec')===this[_0x58a5('0xde')]){const _0x36ce00=this[_0x58a5('0xe3')]['getSuggestionCallback'](_0x58a5('0x6a'),_0x550441,_0x58a5('0x6f'));return this[_0x58a5('0x2b')](()=>_0x36ce00([_0x387244],_0x26e1d0,_0x38dfa9)),null;}_0x41ae23[_0x58a5('0x8a')](_0x387244);let _0x235efb=!0x0;for(const _0x567a04 of _0x41ae23)if(!this[_0x58a5('0x123')](_0x567a04)){_0x235efb=!0x1;break;}if(_0x235efb&&'always'!==this[_0x58a5('0xde')]){const _0x300cd9=this['_suggestionFactory'][_0x58a5('0x13f')](_0x58a5('0x6a'),_0x550441,_0x58a5('0x6f'));return this['forceDefaultExecution'](()=>_0x300cd9([_0x387244],_0x26e1d0,_0x38dfa9)),null;}let _0x1a9b2d=null,_0x5f0034=_0x387244[_0x58a5('0xb7')],_0x1545dc=_0x387244['end'];for(const {suggestion:_0x3a0f67,meta:_0xd9fa98}of this[_0x58a5('0x42')](_0x387244,_0x58a5('0x6a'))){if(!_0xd9fa98[_0x58a5('0xd7')])continue;if(_0xd9fa98[_0x58a5('0x13b')]||_0xd9fa98['containsRangeInObject']||_0xd9fa98[_0x58a5('0x5a')])continue;if(_0x3a0f67[_0x58a5('0xe9')][_0x58a5('0x27')]!=_0x26e1d0[_0x58a5('0x27')])continue;if(!Ut(_0x3a0f67,_0x38dfa9))continue;const _0x39284d=_0x3a0f67[_0x58a5('0x10c')]();if(_0x3a0f67[_0x58a5('0xa2')]==_0x550441){if(_0x39284d[_0x58a5('0x62')](_0x387244,!0x0))return null;_0x5f0034=_0x5f0034[_0x58a5('0xea')](_0x39284d[_0x58a5('0xb7')])?_0x5f0034:_0x39284d[_0x58a5('0xb7')],_0x1545dc=_0x1545dc[_0x58a5('0xc7')](_0x39284d[_0x58a5('0x11f')])?_0x1545dc:_0x39284d[_0x58a5('0x11f')],_0x1a9b2d?_0x39284d[_0x58a5('0xb7')][_0x58a5('0xea')](_0x1a9b2d[_0x58a5('0x10c')]()['start'])?(_0x1a9b2d[_0x58a5('0x3e')](),_0x1a9b2d=_0x3a0f67):_0x3a0f67['removeMarkers']():_0x1a9b2d=_0x3a0f67;}else{const _0x128eb5=_0x387244[_0x58a5('0x12')](_0x39284d);this[_0x58a5('0x61')](_0x3a0f67,_0x128eb5);}}const _0x4fd8b6=this[_0x58a5('0xd0')][_0x58a5('0x136')]['get'](_0x58a5('0xbd'))['me'],_0x267d68=_0x155a2e(),_0x56095e=_0x4fd8b6['id'];if(_0x1a9b2d)return this[_0x58a5('0xc4')](_0x1a9b2d,this['_model'][_0x58a5('0x25')](_0x5f0034,_0x1545dc)),_0x1a9b2d;{const _0x4506f7=this[_0x58a5('0x113')]({'id':_0x267d68,'type':_0x58a5('0x41')+_0x550441,'data':_0x26e1d0,'createdAt':new Date(),'authorId':_0x56095e,'attributes':_0x38dfa9});return this['_addSuggestionMarker'](_0x58a5('0x41')+_0x550441,_0x267d68,_0x56095e,this['_model'][_0x58a5('0x25')](_0x5f0034,_0x1545dc)),_0x4506f7;}}[_0x58a5('0xc5')](_0x385903,_0x1a08e6,_0x589757=[],_0x36b806=null,_0x464065={}){_0x1a08e6[_0x58a5('0x27')]||(_0x1a08e6[_0x58a5('0x27')]=_0x1a08e6[_0x58a5('0x43')]);const _0x3c8e44=_0x385903[0x0];_0x1a08e6[_0x58a5('0xd9')]=_0x3c8e44['is'](_0x58a5('0x9f')),_0x36b806=_0x36b806||$t(_0x1a08e6);const _0x45fbc8=_0x589757['map'](_0x4338ee=>Rt(_0x4338ee,this['_model'])),_0x4043bd=_0x3c8e44['is'](_0x58a5('0x9f'))?_0x385903:_0x385903[_0x58a5('0x48')](_0x40946b=>Rt(_0x40946b,this[_0x58a5('0x139')]));if(_0x58a5('0xec')===this[_0x58a5('0xde')]){const _0x144eaf=this[_0x58a5('0xe3')][_0x58a5('0x13f')](_0x58a5('0x6a'),_0x36b806,_0x58a5('0x6f'));return this['forceDefaultExecution'](()=>_0x144eaf(_0x4043bd,_0x1a08e6,_0x464065)),null;}_0x45fbc8[_0x58a5('0x8a')](..._0x4043bd);let _0x25744f=!0x0;for(const _0x1f597c of _0x45fbc8)if(!this[_0x58a5('0x123')](_0x1f597c)){_0x25744f=!0x1;break;}if(_0x25744f&&'always'!==this[_0x58a5('0xde')]){const _0x5dc8ff=this[_0x58a5('0xe3')][_0x58a5('0x13f')](_0x58a5('0x6a'),_0x36b806,_0x58a5('0x6f'));return this[_0x58a5('0x2b')](()=>_0x5dc8ff(_0x4043bd,_0x1a08e6,_0x464065)),null;}const _0xde5606=this[_0x58a5('0xd0')][_0x58a5('0x136')][_0x58a5('0x2')](_0x58a5('0xbd'))['me'];for(const _0x386180 of this['getSuggestions']()){if(_0x386180['author']['id']!=_0xde5606['id'])continue;if('formatBlock'!=_0x386180[_0x58a5('0x5')]||_0x386180[_0x58a5('0xe9')]['formatGroupId']!=_0x1a08e6[_0x58a5('0x27')])continue;if(!Ut(_0x386180,_0x464065))continue;const _0x47ede2=_0x386180[_0x58a5('0xa2')]==_0x36b806;for(let _0x3f43da=0x0;_0x3f43da<_0x4043bd[_0x58a5('0xb')];_0x3f43da++){const _0x482217=_0x4043bd[_0x3f43da];for(const _0x1f8138 of _0x386180[_0x58a5('0x69')]()){const _0x4d95b2=_0x1f8138[_0x58a5('0x143')]();if(_0x482217['isEqual'](_0x4d95b2)){_0x47ede2?(_0x4043bd[_0x58a5('0xdc')](_0x3f43da,0x1),_0x3f43da--):_0x386180[_0x58a5('0xf8')](_0x1f8138[_0x58a5('0x112')]);break;}}}}if(0x0==_0x4043bd[_0x58a5('0xb')])return null;const _0xa4f6e9=this[_0x58a5('0xe3')]['getSuggestionCallback'](_0x58a5('0x6a'),_0x36b806,_0x58a5('0xf9'));for(const _0x2809a9 of this[_0x58a5('0xf0')]())if(_0x2809a9[_0x58a5('0xa5')]['id']==_0xde5606['id']&&_0x58a5('0x6a')==_0x2809a9[_0x58a5('0x5')]&&_0x2809a9['data']['formatGroupId']==_0x1a08e6[_0x58a5('0x27')]&&_0x2809a9[_0x58a5('0xa2')]==_0x36b806&&Ut(_0x2809a9,_0x464065)&&(_0xa4f6e9(_0x2809a9[_0x58a5('0x4f')](),_0x4043bd)||_0xa4f6e9(_0x4043bd,_0x2809a9[_0x58a5('0x4f')]()))){for(const _0x4cd64c of _0x4043bd)_0x2809a9[_0x58a5('0x53')](_0x4cd64c);return _0x2809a9;}const _0x8716f5=_0x155a2e(),_0x16ef27=_0xde5606['id'],_0x3e831f=_0x58a5('0x41')+_0x36b806,_0x4aebaa=this['_setSuggestionData']({'id':_0x8716f5,'type':_0x3e831f,'data':_0x1a08e6,'createdAt':new Date(),'authorId':_0x16ef27,'attributes':_0x464065});for(const _0x1823c2 of _0x4043bd)this[_0x58a5('0x96')](_0x3e831f,_0x8716f5,_0x16ef27,_0x1823c2,_0x4059ef[_0x58a5('0xf4')]());return _0x4aebaa;}[_0x58a5('0x127')](_0x122e0d,_0x130468=null,_0x260a48={}){if(_0x122e0d[_0x58a5('0x38')])return null;const _0x209d23=this[_0x58a5('0xd0')][_0x58a5('0x136')][_0x58a5('0x2')](_0x58a5('0xbd'))['me'],_0x1992ec=new _0x909b8a(_0x122e0d[_0x58a5('0xb7')],_0x122e0d[_0x58a5('0x11f')]);for(const {suggestion:_0xcb24b0,meta:_0x5997ba}of this[_0x58a5('0x42')](_0x1992ec,_0x58a5('0xe0')))if(_0x5997ba['isOwn']&&!_0x5997ba[_0x58a5('0x13b')]){if(_0xcb24b0[_0x58a5('0xcc')]){const _0x262851=_0xcb24b0[_0x58a5('0x4f')]()[_0x58a5('0x4c')](_0x38350a=>_0x58a5('0x14')!=_0x38350a[_0x58a5('0x77')]['rootName']);_0x262851[_0x58a5('0xd')](_0xe872de=>_0x1992ec[_0x58a5('0x62')](_0xe872de,!0x0))&&_0xcb24b0['discard']();if(_0x262851[_0x58a5('0x24')](_0xf3e8e4=>_0xf3e8e4[_0x58a5('0x62')](_0x1992ec,!0x0))){const _0xdb796a=this[_0x58a5('0xe3')][_0x58a5('0x13f')](_0x58a5('0x0'),_0x130468,'accept');return this['forceDefaultExecution'](()=>_0xdb796a([_0x1992ec],null,_0x260a48)),null;}}else{const _0x4e7cbc=_0x1992ec[_0x58a5('0x12')](_0xcb24b0['getFirstRange']());null!==_0x4e7cbc&&_0xcb24b0[_0x58a5('0x17')]([_0x4e7cbc],null,_0x260a48);}}if(_0x1992ec[_0x58a5('0x5c')](),_0x1992ec[_0x58a5('0x38')]||_0x58a5('0x14')==_0x1992ec[_0x58a5('0x77')]['rootName'])return null;let _0xd1e87c=null,_0x426bad=_0x1992ec['start'],_0x1ec10c=_0x1992ec[_0x58a5('0x11f')];const _0x3e690c=this[_0x58a5('0x42')](_0x1992ec,'deletion');for(const {suggestion:_0x55c341,meta:_0x16ce75}of _0x3e690c){const _0x7f2449=this[_0x58a5('0x139')][_0x58a5('0x25')](_0x426bad,_0x1ec10c);if(_0x16ce75[_0x58a5('0xd7')]&&(this[_0x58a5('0x29')]||!_0x16ce75[_0x58a5('0x7c')]&&!_0x16ce75[_0x58a5('0x5a')])){if(_0x55c341['isMultiRange']){if(!Ut(_0x55c341,_0x260a48))continue;let _0x3feec8=!0x0;for(const _0x27c92e of _0x55c341[_0x58a5('0x4f')]()){if(_0x27c92e[_0x58a5('0x62')](_0x7f2449,!0x0))return _0x55c341;_0x7f2449[_0x58a5('0x62')](_0x27c92e)||(_0x3feec8=!0x1);}_0x3feec8&&_0x55c341[_0x58a5('0x16')]();}else{const _0x4893ac=_0x55c341[_0x58a5('0x10c')]();if(_0x4893ac[_0x58a5('0x62')](_0x7f2449,!0x0))return _0x55c341;if(!Ut(_0x55c341,_0x260a48)){_0x7f2449[_0x58a5('0x62')](_0x4893ac)?_0x55c341[_0x58a5('0x3e')]():_0x4893ac[_0x58a5('0x137')](_0x426bad)?_0x426bad=_0x4893ac['end']:_0x4893ac[_0x58a5('0x137')](_0x1ec10c)&&(_0x1ec10c=_0x4893ac[_0x58a5('0xb7')]);continue;}_0x426bad=_0x426bad['isBefore'](_0x4893ac[_0x58a5('0xb7')])?_0x426bad:_0x4893ac['start'],_0x1ec10c=_0x1ec10c['isAfter'](_0x4893ac[_0x58a5('0x11f')])?_0x1ec10c:_0x4893ac[_0x58a5('0x11f')],_0x260a48=Object[_0x58a5('0x34')]({},_0x55c341[_0x58a5('0x129')]),_0xd1e87c?_0x4893ac[_0x58a5('0xb7')][_0x58a5('0xea')](_0xd1e87c[_0x58a5('0x10c')]()['start'])?(_0xd1e87c[_0x58a5('0x3e')](),_0xd1e87c=_0x55c341):_0x55c341[_0x58a5('0x3e')]():_0xd1e87c=_0x55c341;}}}if(_0xd1e87c)return this['_setSuggestionRange'](_0xd1e87c,this['_model']['createRange'](_0x426bad,_0x1ec10c)),_0xd1e87c;{const _0x138fd1=_0x155a2e(),_0x33ffb8=this[_0x58a5('0x139')]['createRange'](_0x426bad,_0x1ec10c),_0x5f5645=_0x209d23['id'],_0x2d6ff0=_0x130468?_0x58a5('0x142')+_0x130468:_0x58a5('0x0'),_0x4b8d80=this[_0x58a5('0x113')]({'id':_0x138fd1,'type':_0x2d6ff0,'createdAt':new Date(),'authorId':_0x5f5645,'attributes':_0x260a48});return this[_0x58a5('0x96')](_0x2d6ff0,_0x138fd1,_0x5f5645,_0x33ffb8),_0x4b8d80;}}[_0x58a5('0xbf')](_0x30ba3f,_0x531262=_0x58a5('0x11e'),_0x22cb16={}){const _0x45f73a=this[_0x58a5('0xd0')][_0x58a5('0x136')][_0x58a5('0x2')]('Users')['me'],_0xf4cf5d=_0x30ba3f['map'](_0x1ea65f=>new _0x909b8a(_0x1ea65f[_0x58a5('0xb7')],_0x1ea65f['end'])),_0x11db2c=new Set();for(const {suggestion:_0x2c603e,meta:_0x37e7b5}of this['_findSuggestions'](_0xf4cf5d,_0x58a5('0xe0')))_0x37e7b5[_0x58a5('0xd7')]&&!_0x37e7b5[_0x58a5('0x13b')]&&_0x11db2c[_0x58a5('0x10f')](_0x2c603e);for(const _0x3837bc of _0x11db2c)if(_0x3837bc[_0x58a5('0xcc')]){const _0x242990=_0x3837bc[_0x58a5('0x4f')]();(!_0x3837bc['attributes']||!_0x3837bc[_0x58a5('0x129')][_0x58a5('0x8')])&&(_0x242990['every'](_0x3f0214=>_0xf4cf5d[_0x58a5('0x24')](_0x184c09=>_0x184c09[_0x58a5('0x62')](_0x3f0214,!0x0)))&&_0x3837bc[_0x58a5('0x16')]());if(_0xf4cf5d[_0x58a5('0xd')](_0xb4e95e=>_0x242990['some'](_0x2af893=>_0x2af893[_0x58a5('0x62')](_0xb4e95e,!0x0)))){const _0x3f7570=this[_0x58a5('0xe3')][_0x58a5('0x13f')](_0x58a5('0x0'),_0x531262,_0x58a5('0x6f'));return this[_0x58a5('0x2b')](()=>_0x3f7570(_0x30ba3f,null,_0x22cb16)),null;}}else{const _0x5d674f=_0x3837bc[_0x58a5('0x10c')]();_0xf4cf5d[_0x58a5('0x24')](_0x4ddd62=>_0x4ddd62[_0x58a5('0x62')](_0x5d674f,!0x0))&&_0x3837bc['discard']();if(_0xf4cf5d[_0x58a5('0xd')](_0x28e1fb=>_0x5d674f[_0x58a5('0x62')](_0x28e1fb,!0x0))){const _0x1d100e=this[_0x58a5('0xe3')][_0x58a5('0x13f')](_0x58a5('0x0'),_0x531262,'accept');return this[_0x58a5('0x2b')](()=>_0x1d100e(_0xf4cf5d,null,_0x22cb16)),null;}}const _0xc5593b=this[_0x58a5('0xe3')][_0x58a5('0x13f')](_0x58a5('0x0'),_0x531262,_0x58a5('0xf9'));let _0x4fc429=null;for(const _0x34ad0 of this['getSuggestions']())if(_0x34ad0[_0x58a5('0xa5')]['id']==_0x45f73a['id']&&_0x34ad0[_0x58a5('0x121')]&&_0x58a5('0x0')==_0x34ad0[_0x58a5('0x5')]&&_0x34ad0[_0x58a5('0xa2')]==_0x531262&&Ut(_0x34ad0,_0x22cb16)&&(_0xc5593b(_0x34ad0[_0x58a5('0x4f')](),_0xf4cf5d)||_0xc5593b(_0xf4cf5d,_0x34ad0[_0x58a5('0x4f')]()))){if(_0x4fc429){if(_0x34ad0['commentThread']&&_0x34ad0[_0x58a5('0xf6')]['length'])continue;for(const _0x2e027e of _0x34ad0[_0x58a5('0x4f')]())_0x4fc429['isIntersectingWithRange'](_0x2e027e)||_0x4fc429[_0x58a5('0x53')](_0x2e027e);_0x34ad0[_0x58a5('0x3e')]();}else{_0x4fc429=_0x34ad0;for(const _0x284e51 of _0xf4cf5d)_0x34ad0[_0x58a5('0x95')](_0x284e51)||_0x34ad0['addRange'](_0x284e51);}}if(_0x4fc429)return _0x4fc429;_0x11db2c[_0x58a5('0xdf')]();for(const {suggestion:_0x3d4544,meta:_0x461fc8}of this['_findSuggestions'](_0xf4cf5d,_0x58a5('0x0')))_0x461fc8[_0x58a5('0xd7')]&&(this['_mergeNestedSuggestions']||!_0x461fc8['containsRangeInObject']&&!_0x461fc8[_0x58a5('0x5a')])&&Ut(_0x3d4544,_0x22cb16)&&_0x11db2c[_0x58a5('0x10f')](_0x3d4544);for(const _0x432b83 of _0x11db2c){const _0x448a15=_0x432b83[_0x58a5('0x4f')]();if(!_0x22cb16||!_0x22cb16['skipNestingCheck']){if(_0xf4cf5d[_0x58a5('0xd')](_0x2a70e6=>_0x448a15[_0x58a5('0x24')](_0x81b8df=>_0x81b8df[_0x58a5('0x62')](_0x2a70e6,!0x0))))return _0x432b83;}(!_0x432b83['attributes']||!_0x432b83[_0x58a5('0x129')][_0x58a5('0x8')])&&(_0x448a15['every'](_0x57e56a=>_0xf4cf5d[_0x58a5('0x24')](_0x46bd45=>_0x46bd45['containsRange'](_0x57e56a,!0x0)))&&_0x432b83[_0x58a5('0x16')]());}const _0xa29141=_0x155a2e(),_0x18dce4=_0x45f73a['id'],_0x197312=_0x58a5('0x142')+_0x531262,_0xd40271=this[_0x58a5('0x113')]({'id':_0xa29141,'type':_0x197312,'createdAt':new Date(),'authorId':_0x18dce4,'attributes':_0x22cb16});for(const _0x515b03 of _0xf4cf5d)_0x515b03['detach'](),_0x515b03[_0x58a5('0x38')]||_0x58a5('0x14')==_0x515b03[_0x58a5('0x77')][_0x58a5('0x7d')]||this[_0x58a5('0x96')](_0x197312,_0xa29141,_0x18dce4,_0x515b03,_0x4059ef[_0x58a5('0xf4')]());return _0xd40271;}[_0x58a5('0xc4')](_0x5142c1,_0x571e57){const _0x185316=_0x5142c1[_0x58a5('0xfb')]();this[_0x58a5('0x139')][_0x58a5('0x126')](_0xd73cb7=>{_0xd73cb7[_0x58a5('0x1e')](_0x185316,{'range':_0x571e57});});}[_0x58a5('0x79')](_0x4774d2){const _0x26ec0a=_0x4774d2['id'],_0xd4d5ef=this[_0x58a5('0xd0')][_0x58a5('0x104')][_0x58a5('0x2')](_0x58a5('0xfe'));this[_0x58a5('0xa1')][_0x58a5('0x18')](_0x26ec0a)||this[_0x58a5('0xa1')][_0x58a5('0x80')]({'channelId':_0xd4d5ef,'threadId':_0x26ec0a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x31c741=this['_commentsRepository'][_0x58a5('0x131')](_0x26ec0a);_0x31c741['unbind'](_0x58a5('0xef')),_0x31c741[_0x58a5('0xef')]=!0x1,_0x4774d2[_0x58a5('0xf6')]=_0x31c741;}[_0x58a5('0x11')](_0x160a78,_0x24fd81,_0x56b44e,_0x5b1238){if(_0x160a78[_0x58a5('0x5')]!=_0x24fd81||_0x160a78['subType']!=_0x56b44e||_0x160a78[_0x58a5('0x4e')]['id']!=_0x5b1238)throw this[_0x58a5('0xd0')][_0x58a5('0xd1')](_0x58a5('0x12e')),new _0x123d36(_0x58a5('0x12e'),this);}[_0x58a5('0x61')](_0x363a26,_0x51f109){const _0x559eb9=_0x363a26[_0x58a5('0x10c')]();if(_0x51f109[_0x58a5('0xc2')](_0x559eb9))_0x363a26['removeMarkers']();else{if(_0x559eb9[_0x58a5('0x62')](_0x51f109)){const _0x1fbeb0=this['_model'][_0x58a5('0x19')](_0x51f109['start'][_0x58a5('0xf7')],'end');this[_0x58a5('0xc4')](_0x363a26,this[_0x58a5('0x139')][_0x58a5('0x25')](_0x559eb9[_0x58a5('0xb7')],_0x1fbeb0));const _0x2fa30e=_0x155a2e(),_0x3500e6=_0x363a26[_0x58a5('0x4e')]['id'],_0xbc5d13=_0x363a26[_0x58a5('0x5')]+':'+_0x363a26[_0x58a5('0xa2')];this[_0x58a5('0x113')]({'id':_0x2fa30e,'type':_0xbc5d13,'createdAt':new Date(),'authorId':_0x3500e6,'data':_0x363a26['data'],'attributes':_0x363a26[_0x58a5('0x129')]});const _0x7f76e9=this['_model'][_0x58a5('0x19')](_0x51f109['end']['parent'],_0x58a5('0x9a')),_0x410ad9=this[_0x58a5('0x139')][_0x58a5('0x25')](_0x7f76e9,_0x559eb9[_0x58a5('0x11f')]);this[_0x58a5('0x96')](_0xbc5d13,_0x2fa30e,_0x3500e6,_0x410ad9);}else{if(_0x559eb9[_0x58a5('0x137')](_0x51f109['start'])){const _0x3d02e4=this[_0x58a5('0x139')][_0x58a5('0x19')](_0x51f109[_0x58a5('0xb7')][_0x58a5('0xf7')],_0x58a5('0x11f'));this[_0x58a5('0xc4')](_0x363a26,this[_0x58a5('0x139')][_0x58a5('0x25')](_0x559eb9[_0x58a5('0xb7')],_0x3d02e4));}else{const _0x5a76f2=this[_0x58a5('0x139')]['createPositionAt'](_0x51f109[_0x58a5('0x11f')]['parent'],_0x58a5('0x9a'));this[_0x58a5('0xc4')](_0x363a26,this[_0x58a5('0x139')][_0x58a5('0x25')](_0x5a76f2,_0x559eb9[_0x58a5('0x11f')]));}}}}[_0x58a5('0x123')](_0x308f3c){for(const {suggestion:_0x2d57d3,meta:_0xd9e2d7}of this[_0x58a5('0x42')](_0x308f3c,'insertion')){if(!_0xd9e2d7[_0x58a5('0xd7')])continue;const _0x10f9e3=_0x2d57d3['getRanges']();for(const _0x19c4ca of _0x10f9e3)if(!_0x308f3c[_0x58a5('0x144')](_0x19c4ca)[_0x58a5('0xb')])return!0x0;}return!0x1;}[_0x58a5('0xa0')](_0x138be2){const _0x4d8b98=this[_0x58a5('0xd0')][_0x58a5('0x136')][_0x58a5('0x2')]('Users')[_0x58a5('0xe2')](_0x138be2);if(!_0x4d8b98)throw new _0x123d36('track-changes-user-not-found',this);return _0x4d8b98;}['_getExternalAuthor'](_0x903157){const _0x872d73=this['editor'][_0x58a5('0x136')]['get'](_0x58a5('0xbd')),_0x257af8=_0x397af0(_0x58a5('0x9')+_0x903157),_0x34c4df=_0x872d73[_0x58a5('0xe2')](_0x257af8);return _0x34c4df||_0x872d73[_0x58a5('0x73')]({'id':_0x257af8,'name':_0x903157});}[_0x58a5('0xb8')](_0x3a256d,_0x387d10,_0x612bae,_0x3123b5,_0x5834e1){const _0x4b3298=this[_0x58a5('0xa0')](_0x3123b5),_0x18c8f1=this[_0x58a5('0xe3')]['buildSuggestion'](_0x3a256d,_0x387d10,_0x612bae,_0x4b3298,_0x5834e1,_0x2e8565=>this[_0x58a5('0x94')](_0x612bae,{'attributes':_0x2e8565}));return this[_0x58a5('0x3d')](_0x18c8f1,_0x58a5('0x6f'),()=>{this['_updateSuggestionData'](_0x612bae,{'state':_0x58a5('0x23')});},{'priority':'high'}),this[_0x58a5('0x3d')](_0x18c8f1,'discard',()=>{this[_0x58a5('0x94')](_0x612bae,{'state':_0x58a5('0x3a')});},{'priority':'high'}),this['_suggestions'][_0x58a5('0x3f')](_0x612bae,_0x18c8f1),this['_suggestionState'][_0x58a5('0x3f')](_0x18c8f1,'notReady'),_0x18c8f1;}['_splitMarkerName'](_0x4e5116){const _0x12bb32=_0x4e5116[_0x58a5('0x138')](':');return{'group':_0x12bb32[0x0],'type':_0x12bb32[0x1],'subType':_0x12bb32[_0x58a5('0xb')]>=0x5?_0x12bb32[0x2]:null,'id':_0x12bb32[_0x58a5('0xb')]<0x5?_0x12bb32[0x2]:_0x12bb32[0x3],'authorId':_0x12bb32[_0x58a5('0xb')]<0x5?_0x12bb32[0x3]:_0x12bb32[0x4],'markerCount':0x6==_0x12bb32['length']?_0x12bb32[0x5]:null};}[_0x58a5('0xa')](_0x83c5d1,_0x2d6fb3,_0x1271aa){const _0x2d963e=_0x83c5d1['getFirstRange'](),_0xcb8987=_0x2d963e[_0x58a5('0xb7')],_0x244925=_0x2d963e['end'];this[_0x58a5('0xc4')](_0x83c5d1,this[_0x58a5('0x139')]['createRange'](_0xcb8987,_0x2d6fb3));const _0x29c62f=_0x155a2e(),_0x5401cf=_0x83c5d1['creator']['id'],_0x1c5784=_0x83c5d1[_0x58a5('0x5')]+(_0x83c5d1[_0x58a5('0xa2')]?':'+_0x83c5d1['subType']:'');this[_0x58a5('0x113')]({'id':_0x29c62f,'type':_0x1c5784,'createdAt':new Date(),'authorId':_0x5401cf,'originalSuggestionId':_0x83c5d1['id'],'attributes':_0x83c5d1['attributes'],'data':_0x83c5d1[_0x58a5('0xe9')]}),_0x58a5('0x6a')==_0x83c5d1['type']&&(_0x1271aa=this['_model'][_0x58a5('0x85')](_0x1271aa[_0x58a5('0x9d')])),this[_0x58a5('0x96')](_0x1c5784,_0x29c62f,_0x5401cf,this[_0x58a5('0x139')][_0x58a5('0x25')](_0x1271aa,_0x244925));}[_0x58a5('0x42')](_0x49aa70,_0x4af7cb=null){const _0x86a015=[],_0xb543b=this[_0x58a5('0xd0')][_0x58a5('0x136')]['get']('Users')['me'];Array['isArray'](_0x49aa70)||(_0x49aa70=[_0x49aa70]);for(const _0x2e1f44 of this[_0x58a5('0xf0')]()){if(!_0x2e1f44[_0x58a5('0x121')])continue;if(_0x4af7cb&&_0x2e1f44[_0x58a5('0x5')]!=_0x4af7cb)continue;let _0x152f7d=!0x1;for(const _0xbf4c55 of _0x2e1f44[_0x58a5('0x4f')]()){for(const _0x427de3 of _0x49aa70){const _0x2538a4=_0x427de3[_0x58a5('0xb7')][_0x58a5('0xc2')](_0xbf4c55[_0x58a5('0x11f')])||_0x427de3[_0x58a5('0x11f')][_0x58a5('0xc2')](_0xbf4c55[_0x58a5('0xb7')]);if(_0x2538a4||_0x427de3[_0x58a5('0x12')](_0xbf4c55)){const _0x29a358=_0x427de3[_0x58a5('0x62')](_0xbf4c55)&&Bt(this[_0x58a5('0x139')]['schema'],_0xbf4c55['start'],_0x427de3),_0x212934=_0xbf4c55[_0x58a5('0x62')](_0x427de3)&&Bt(this[_0x58a5('0x139')]['schema'],_0x427de3[_0x58a5('0xb7')],_0xbf4c55);_0x86a015['push']({'suggestion':_0x2e1f44,'meta':{'isOwn':_0xb543b==_0x2e1f44['author'],'isNextTo':_0x2538a4,'isInsideObject':_0x29a358,'containsRangeInObject':_0x212934}}),_0x152f7d=!0x0;break;}}if(_0x152f7d)break;}}return _0x86a015;}['_addSuggestionMarker'](_0x38059a,_0x5d0180,_0xcd56f4,_0xfb4a4,_0x245f7d){this[_0x58a5('0x139')][_0x58a5('0x126')](_0x198a89=>{let _0x211c8c=_0x58a5('0xd6')+_0x38059a+':'+_0x5d0180+':'+_0xcd56f4;_0x245f7d&&(_0x211c8c=_0x211c8c+':'+_0x245f7d),_0x198a89[_0x58a5('0x89')](_0x211c8c,{'range':_0xfb4a4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x58a5('0x50')](_0x21ba65){const _0x360f72=_0x21ba65['previous'],_0x126352=_0x21ba65[_0x58a5('0x9e')];_0x21ba65[_0x58a5('0x87')]=null,null!=_0x360f72&&(_0x360f72[_0x58a5('0x9e')]=null),_0x21ba65[_0x58a5('0x9e')]=null,null!=_0x126352&&(_0x126352['previous']=null),_0x58a5('0x4b')==this[_0x58a5('0xd3')][_0x58a5('0x2')](_0x21ba65)&&(this['_suggestionState']['set'](_0x21ba65,_0x58a5('0x8f')),this[_0x58a5('0x59')](_0x58a5('0x11c'),_0x21ba65,_0x360f72,_0x126352));}[_0x58a5('0x113')](_0x3d5fa7){const _0x185982=_0x3d5fa7['id'],_0x4b35e0=this['addSuggestionData'](_0x3d5fa7);if(this[_0x58a5('0x8c')]&&this[_0x58a5('0x8c')][_0x58a5('0x37')]){const _0x1707a3=this['editor'][_0x58a5('0x136')][_0x58a5('0x2')](_0x58a5('0x13a')),_0x168828=_0x4b35e0['hasComments'],_0x2c77a3=_0x4b35e0[_0x58a5('0xa2')]?_0x4b35e0['type']+':'+_0x4b35e0[_0x58a5('0xa2')]:_0x4b35e0[_0x58a5('0x5')],_0x3e6ecb=this[_0x58a5('0xd0')][_0x58a5('0x63')],_0x1a386e=_0x1707a3[_0x58a5('0x10f')](_0x56b64e(_0x3e6ecb,_0x58a5('0x91'))),_0xc5b317={'id':_0x185982,'type':_0x2c77a3,'hasComments':_0x168828,'data':_0x3d5fa7[_0x58a5('0xe9')]||null,'originalSuggestionId':_0x3d5fa7['originalSuggestionId']||null,'attributes':_0x4b35e0[_0x58a5('0x129')]};this[_0x58a5('0x8c')][_0x58a5('0x37')](_0xc5b317)[_0x58a5('0x12d')](_0x1da79b=>{_0x4b35e0[_0x58a5('0x84')]=!0x0,_0x1707a3[_0x58a5('0xa7')](_0x1a386e),_0x1da79b&&_0x1da79b[_0x58a5('0xcb')]&&(this[_0x58a5('0x111')]['get'](_0x185982)[_0x58a5('0xcb')]=_0x1da79b[_0x58a5('0xcb')]);})['catch'](_0x5551ad=>{throw _0x10b99e('error-saving-suggestion-data-suggestion-discarded'),this[_0x58a5('0xd0')][_0x58a5('0x35')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x4b35e0[_0x58a5('0x16')]();}),_0x4b35e0[_0x58a5('0x7b')](),this[_0x58a5('0x111')][_0x58a5('0xda')](_0x4b35e0['id']),this['_suggestionState'][_0x58a5('0xda')](_0x4b35e0),_0x5551ad;});}return _0x4b35e0;}[_0x58a5('0x94')](_0x36bd55,_0x2128fd){const _0x3d6e1c=this[_0x58a5('0xd0')][_0x58a5('0x136')][_0x58a5('0x2')](_0x58a5('0x13a')),_0x5e5929=this['getSuggestion'](_0x36bd55);if(this[_0x58a5('0x8c')]&&this[_0x58a5('0x8c')][_0x58a5('0x125')]){if(_0x5e5929[_0x58a5('0x84')]){const _0x37cb6d=_0x3d6e1c['add'](_0x56b64e(this[_0x58a5('0xd0')][_0x58a5('0x63')],_0x58a5('0x91')));this[_0x58a5('0x8c')][_0x58a5('0x125')](_0x36bd55,_0x2128fd)[_0x58a5('0x12d')](()=>{_0x3d6e1c[_0x58a5('0xa7')](_0x37cb6d);});}else _0x5e5929['on'](_0x58a5('0x8b'),()=>{this[_0x58a5('0x94')](_0x36bd55,_0x2128fd);});}}[_0x58a5('0x65')](_0x1357fa){if(!this[_0x58a5('0x8c')]||!this[_0x58a5('0x8c')][_0x58a5('0x7e')])throw new _0x123d36(_0x58a5('0x67'),this);return this[_0x58a5('0x8c')]['getSuggestion'](_0x1357fa);}[_0x58a5('0x54')](_0x28ef12){const {id:_0x16a3ed,type:_0x3020aa,subType:_0x188b84,authorId:_0x296464}=this[_0x58a5('0xac')](_0x28ef12),_0x56a600=this[_0x58a5('0x111')][_0x58a5('0x2')](_0x16a3ed)||this['_createSuggestion'](_0x3020aa,_0x188b84,_0x16a3ed,_0x296464,{});switch(this[_0x58a5('0x11')](_0x56a600,_0x3020aa,_0x188b84,_0x296464),this[_0x58a5('0xd3')]['get'](_0x56a600)){case _0x58a5('0xc'):this[_0x58a5('0x65')](_0x16a3ed)[_0x58a5('0x12d')](_0xb2fd15=>{let _0x452a9b=Promise['resolve']();_0xb2fd15['hasComments']&&(_0x452a9b=this[_0x58a5('0xa1')][_0x58a5('0x1f')]({'channelId':this[_0x58a5('0xd0')]['config']['get'](_0x58a5('0xfe')),'threadId':_0x16a3ed})),_0x452a9b[_0x58a5('0x12d')](()=>{this[_0x58a5('0x10d')](_0xb2fd15)['_saved']=!0x0;});}),this[_0x58a5('0xd3')][_0x58a5('0x3f')](_0x56a600,_0x58a5('0x33'));break;case _0x58a5('0x8f'):this[_0x58a5('0x94')](_0x16a3ed,{'state':'open'});case _0x58a5('0x3'):this[_0x58a5('0xd3')]['set'](_0x56a600,'ready'),this[_0x58a5('0x59')](_0x58a5('0x70'),_0x56a600);break;case _0x58a5('0x4b'):this['fire'](_0x58a5('0xe6'),_0x56a600);}return _0x56a600['addMarkerName'](_0x28ef12),_0x56a600;}['_refreshSuggestionsChain'](_0x22629a){const _0xc9d44=Array[_0x58a5('0x1')](_0x22629a)['filter'](_0x5ec517=>!_0x5ec517[_0x58a5('0xcc')]),_0x5c61a0=this[_0x58a5('0xf0')]({'skipNotAttached':!0x0})[_0x58a5('0x4c')](_0x5c6c94=>!_0x5c6c94[_0x58a5('0xcc')]),_0x312f72=_0x5c61a0[_0x58a5('0x4c')](_0x3f45de=>!_0x22629a[_0x58a5('0x97')](_0x3f45de)),_0x1df2a6=new Map(_0x5c61a0[_0x58a5('0x48')](_0x40e7d8=>[_0x40e7d8,this[_0x58a5('0xe3')][_0x58a5('0x13f')](_0x40e7d8[_0x58a5('0x5')],_0x40e7d8[_0x58a5('0xa2')],'chain')])),_0x15127a=new Map(_0x5c61a0[_0x58a5('0x48')](_0xa09187=>[_0xa09187,_0xa09187['getFirstRange']()])),_0x275283=new Set(),_0x55033e=new Set();for(let _0x1037a2=0x0;_0x1037a2<_0xc9d44[_0x58a5('0xb')];_0x1037a2++)_0x56e9f3(_0xc9d44[_0x1037a2],_0xc9d44,_0x1037a2+0x1);for(let _0x1d892e=0x0;_0x1d892e<_0xc9d44['length'];_0x1d892e++)_0x56e9f3(_0xc9d44[_0x1d892e],_0x312f72,0x0);for(let _0x3a3d8a=0x0;_0x3a3d8a<_0xc9d44['length'];_0x3a3d8a++){const _0x56de9c=_0xc9d44[_0x3a3d8a];!_0x55033e['has'](_0x56de9c)&&_0x56de9c[_0x58a5('0x87')]&&(_0x56de9c[_0x58a5('0x87')][_0x58a5('0x9e')]===_0x56de9c&&(_0x56de9c[_0x58a5('0x87')][_0x58a5('0x9e')]=null),_0x56de9c[_0x58a5('0x87')]=null),!_0x275283[_0x58a5('0x97')](_0x56de9c)&&_0x56de9c[_0x58a5('0x9e')]&&(_0x56de9c['next'][_0x58a5('0x87')]===_0x56de9c&&(_0x56de9c[_0x58a5('0x9e')]['previous']=null),_0x56de9c[_0x58a5('0x9e')]=null);}function _0x56e9f3(_0x24e23,_0x3a9cf2,_0x18355e){for(let _0x3b4e2a=_0x18355e;_0x3b4e2a<_0x3a9cf2[_0x58a5('0xb')];_0x3b4e2a++){const _0x26733b=_0x2920a3(_0x24e23,_0x3a9cf2[_0x3b4e2a]);_0x26733b&&(_0x26733b[0x0][_0x58a5('0x9e')]=_0x26733b[0x1],_0x26733b[0x1][_0x58a5('0x87')]=_0x26733b[0x0],_0x275283['add'](_0x26733b[0x0]),_0x55033e[_0x58a5('0x10f')](_0x26733b[0x1]));}}function _0x2920a3(_0x398a95,_0xdc606){if(_0x398a95['author']['id']!==_0xdc606[_0x58a5('0xa5')]['id'])return null;const _0x3f22da=_0x1df2a6[_0x58a5('0x2')](_0x398a95)(_0x398a95,_0xdc606,_0x15127a[_0x58a5('0x2')](_0x398a95),_0x15127a[_0x58a5('0x2')](_0xdc606));if(!_0x3f22da)return null;return _0x1df2a6[_0x58a5('0x2')](_0xdc606)(_0x398a95,_0xdc606,_0x15127a[_0x58a5('0x2')](_0x398a95),_0x15127a[_0x58a5('0x2')](_0xdc606))?_0x3f22da[0x1][_0x58a5('0xf6')]&&_0x3f22da[0x1][_0x58a5('0xf6')]['length']?null:_0x3f22da:null;}}['_joinWithAdjacentSuggestions'](_0x27e1f3){const _0x4ac52a=Array['from'](_0x27e1f3),_0x43aa19=this[_0x58a5('0xf0')]({'skipNotAttached':!0x0}),_0x112b86=_0x43aa19[_0x58a5('0x4c')](_0x207370=>!_0x27e1f3[_0x58a5('0x97')](_0x207370)),_0x34dc89=new Map(_0x4ac52a['map'](_0xdb6ab4=>[_0xdb6ab4,this['_suggestionFactory']['getSuggestionCallback'](_0xdb6ab4['type'],_0xdb6ab4[_0x58a5('0xa2')],_0x58a5('0xf9'))])),_0x2a4fb2=new Map(_0x43aa19[_0x58a5('0x48')](_0x4520e2=>[_0x4520e2,_0x4520e2[_0x58a5('0x4f')]()]));for(let _0xfd0ed6=0x0;_0xfd0ed6<_0x4ac52a[_0x58a5('0xb')];_0xfd0ed6++){if(_0x59387a(this,_0x4ac52a[_0xfd0ed6],_0x4ac52a,_0xfd0ed6+0x1))return!0x0;}for(let _0x4b11db=0x0;_0x4b11db<_0x4ac52a[_0x58a5('0xb')];_0x4b11db++){if(_0x59387a(this,_0x4ac52a[_0x4b11db],_0x112b86,0x0))return!0x0;}return!0x1;function _0x59387a(_0x48b4b3,_0x377841,_0xf072e9,_0x1dc2ff){for(let _0x5c4a93=_0x1dc2ff;_0x5c4a93<_0xf072e9[_0x58a5('0xb')];_0x5c4a93++){const _0x55db00=_0xf072e9[_0x5c4a93];if(_0x55db00[_0x58a5('0x5')]!==_0x377841['type']||_0x55db00[_0x58a5('0xa5')]['id']!==_0x377841[_0x58a5('0xa5')]['id']||_0x55db00[_0x58a5('0xa2')]!==_0x377841[_0x58a5('0xa2')])continue;if(!xt(_0x377841,_0x55db00))continue;const _0x25edc7=_0x34dc89[_0x58a5('0x2')](_0x377841),_0x521352=_0x2a4fb2[_0x58a5('0x2')](_0x377841),_0xf6c390=_0x2a4fb2[_0x58a5('0x2')](_0x55db00),_0x54a929=_0x377841[_0x58a5('0xf6')]&&_0x377841[_0x58a5('0xf6')][_0x58a5('0xb')],_0x13857f=_0x55db00[_0x58a5('0xf6')]&&_0x55db00[_0x58a5('0xf6')][_0x58a5('0xb')];if(!_0x54a929&&_0x25edc7(_0xf6c390,_0x521352))return _0x48b4b3[_0x58a5('0x12a')](_0x55db00,_0x377841),_0x2a4fb2[_0x58a5('0xda')](_0x377841),!0x0;if(!_0x13857f&&_0x25edc7(_0x521352,_0xf6c390))return _0x48b4b3['_joinSuggestions'](_0x377841,_0x55db00),_0x2a4fb2[_0x58a5('0xda')](_0x55db00),!0x0;}return!0x1;}}[_0x58a5('0x12a')](_0x1ecf88,_0x1f5737){if(_0x1ecf88[_0x58a5('0xcc')])for(const _0x509d21 of _0x1f5737['getRanges']())_0x1ecf88[_0x58a5('0x53')](_0x509d21);else{const _0x2a8959=_0x1f5737['getFirstRange']()[_0x58a5('0x11f')];this['_setSuggestionRange'](_0x1ecf88,this[_0x58a5('0x139')][_0x58a5('0x25')](_0x1ecf88[_0x58a5('0x10c')]()[_0x58a5('0xb7')],_0x2a8959));}_0x1f5737['removeMarkers']();}}class Dt{constructor(_0x517334){this[_0x58a5('0x66')]=_0x517334,this[_0x58a5('0x139')]=_0x517334[_0x58a5('0x35')],this[_0x58a5('0xa9')]=new Map(),this[_0x58a5('0xb6')]=new Map(),this[_0x58a5('0x10')]();}[_0x58a5('0xb5')](_0x55697d,_0x2d1266,_0x1f8bb0,_0x1cf095,_0x19a51c,_0x1d63fc){return new _0x4059ef(this[_0x58a5('0x139')],{'type':_0x55697d,'subType':_0x2d1266,'id':_0x1f8bb0,'author':_0x1cf095,'creator':_0x1cf095,'attributes':_0x19a51c,'onAttributesChange':_0x1d63fc,'onAccept':(..._0x4b563b)=>this[_0x58a5('0x13f')](_0x55697d,_0x2d1266,_0x58a5('0x6f'))(..._0x4b563b),'onDiscard':(..._0x2bb099)=>this[_0x58a5('0x13f')](_0x55697d,_0x2d1266,'discard')(..._0x2bb099)});}[_0x58a5('0x120')](_0x2d179a,_0x6e45b6,_0xfd2f6b,_0x5456af){const _0x546ce9=_0x2d179a+':'+_0x6e45b6+':'+_0xfd2f6b;this[_0x58a5('0xa9')]['set'](_0x546ce9,_0x5456af);}['getSuggestionCallback'](_0x4d240f,_0x1fc8bd,_0x44c843){const _0x2ea064=_0x4d240f+':'+_0x1fc8bd+':'+_0x44c843;return this['_customCallbacks'][_0x58a5('0x2')](_0x2ea064)||this[_0x58a5('0xb6')][_0x58a5('0x2')](_0x4d240f+':'+_0x44c843);}['_registerDefaultCallbacks'](){const _0x517107=()=>!0x1,_0x2aa632=_0x4096b5=>{_0x4096b5[_0x58a5('0x117')]((_0x5b9105,_0xc82fbd)=>_0x5b9105[_0x58a5('0xb7')]['isBefore'](_0xc82fbd[_0x58a5('0xb7')])?0x1:-0x1),this[_0x58a5('0x139')][_0x58a5('0x126')](_0x484b5c=>{for(const _0x114b45 of _0x4096b5){let _0x20069b;_0x20069b=_0x114b45[_0x58a5('0x11f')][_0x58a5('0xbb')]&&_0x114b45[_0x58a5('0x11f')][_0x58a5('0x9d')]==_0x114b45[_0x58a5('0xb7')][_0x58a5('0x7a')]?_0x484b5c[_0x58a5('0xb2')](_0x114b45[_0x58a5('0xb7')][_0x58a5('0x7a')],'on'):_0x484b5c['createSelection'](_0x114b45),this[_0x58a5('0x139')][_0x58a5('0x99')](_0x20069b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1f00bf=(_0x226397,_0x3bb111)=>{this[_0x58a5('0x139')][_0x58a5('0x126')](_0x596c9f=>{const {commandName:_0x43d32a,commandParams:_0x401acd=[]}=_0x3bb111,_0xf36f88=_0x226397[_0x58a5('0x48')](_0x9123bb=>(_t(_0x9123bb)&&(_0x9123bb=this[_0x58a5('0x139')][_0x58a5('0x25')](_0x9123bb[_0x58a5('0x11f')])),_0x9123bb))[_0x58a5('0x4c')](_0x4ba1eb=>_0x58a5('0x14')!==_0x4ba1eb[_0x58a5('0x77')][_0x58a5('0x7d')]);if(_0xf36f88[_0x58a5('0xb')]<0x1)return;const _0x360415=Array[_0x58a5('0x1')](this['_model'][_0x58a5('0x102')][_0x58a5('0x8d')]['getRanges']())[_0x58a5('0x48')](_0x35b504=>_0x909b8a[_0x58a5('0x6b')](_0x35b504));_0x596c9f[_0x58a5('0x46')](_0xf36f88);for(const _0x2d20ce of this[_0x58a5('0x66')][_0x58a5('0x88')][_0x58a5('0x88')]())_0x2d20ce['refresh']();_0x401acd[_0x58a5('0x8a')]({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x43d32a,..._0x401acd);const _0x286eda=_0x360415['filter'](_0x12d51c=>_0x58a5('0x14')!=_0x12d51c[_0x58a5('0x77')][_0x58a5('0x7d')]);_0x286eda['length']>0x0&&_0x596c9f[_0x58a5('0x46')](_0x286eda);for(const _0x59fe88 of _0x360415)_0x59fe88['detach']();});},_0x18cec3=(_0x349dd,_0x376d54)=>0x1==_0x349dd[_0x58a5('0xb')]&&0x1==_0x376d54[_0x58a5('0xb')]&&_0x349dd[0x0][_0x58a5('0x11f')][_0x58a5('0xc2')](_0x376d54[0x0][_0x58a5('0xb7')]),_0x351329=(_0xb16aa6,_0x2f83ae,_0x2aad0f,_0x269d01)=>jt(_0xb16aa6,_0x2f83ae,_0x2aad0f,_0x269d01,this[_0x58a5('0x139')])?[_0xb16aa6,_0x2f83ae]:jt(_0x2f83ae,_0xb16aa6,_0x269d01,_0x2aad0f,this['_model'])?[_0x2f83ae,_0xb16aa6]:null;this['_defaultCallbacks'][_0x58a5('0x3f')](_0x58a5('0x101'),_0x517107),this[_0x58a5('0xb6')]['set'](_0x58a5('0xf1'),_0x2aa632),this[_0x58a5('0xb6')][_0x58a5('0x3f')]('insertion:join',_0x18cec3),this[_0x58a5('0xb6')][_0x58a5('0x3f')](_0x58a5('0x28'),_0x351329),this['_defaultCallbacks'][_0x58a5('0x3f')](_0x58a5('0x11b'),_0x2aa632),this['_defaultCallbacks'][_0x58a5('0x3f')](_0x58a5('0x3c'),_0x517107),this[_0x58a5('0xb6')][_0x58a5('0x3f')](_0x58a5('0x135'),_0x18cec3),this['_defaultCallbacks'][_0x58a5('0x3f')](_0x58a5('0xb4'),_0x351329),this[_0x58a5('0xb6')][_0x58a5('0x3f')](_0x58a5('0x133'),_0x1f00bf),this['_defaultCallbacks'][_0x58a5('0x3f')]('formatInline:discard',_0x517107),this[_0x58a5('0xb6')][_0x58a5('0x3f')](_0x58a5('0x141'),_0x18cec3),this[_0x58a5('0xb6')][_0x58a5('0x3f')](_0x58a5('0x13d'),_0x517107),this[_0x58a5('0xb6')][_0x58a5('0x3f')](_0x58a5('0x98'),_0x1f00bf),this[_0x58a5('0xb6')][_0x58a5('0x3f')]('formatBlock:discard',_0x517107),this[_0x58a5('0xb6')][_0x58a5('0x3f')](_0x58a5('0xb3'),_0x18cec3),this[_0x58a5('0xb6')][_0x58a5('0x3f')]('formatBlock:chain',_0x517107);}}function Bt(_0x110c9d,_0x40cfa4,_0xd7e6b2){for(const _0x3333e2 of _0x40cfa4[_0x58a5('0x9d')][_0x58a5('0x82')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3333e2[_0x58a5('0x77')]==_0x3333e2)return!0x1;if(!_0xd7e6b2[_0x58a5('0x31')](_0x3333e2))return!0x1;if(_0x110c9d[_0x58a5('0x7f')](_0x3333e2)||_0x110c9d[_0x58a5('0x10b')](_0x3333e2))return!0x0;}return!0x1;}function _t(_0xbc8b4a){return _0xbc8b4a[_0x58a5('0x11f')][_0x58a5('0x9d')]==_0xbc8b4a[_0x58a5('0xb7')]['nodeAfter']&&_0xbc8b4a['end'][_0x58a5('0x39')];}function Mt(_0x34b364,_0x5f3949,_0x2874cf,_0x2358fa){const _0x55407d=_0x349a76=>!_0x349a76[_0x58a5('0x71')]['is'](_0x58a5('0x55'))&&!_0x2358fa[_0x58a5('0x7f')](_0x349a76[_0x58a5('0x71')]),_0x5a90b0=_0x34b364[_0x58a5('0xb7')]['getLastMatchingPosition'](_0x55407d),_0x4c00a9=_0x34b364[_0x58a5('0x11f')][_0x58a5('0x47')](_0x55407d,{'direction':_0x58a5('0x52')});return(!_0x34b364[_0x58a5('0xb7')]['isEqual'](_0x5a90b0)||!_0x34b364[_0x58a5('0x11f')][_0x58a5('0xc2')](_0x4c00a9))&&(_0x5a90b0[_0x58a5('0xea')](_0x4c00a9)?_0x2874cf['updateMarker'](_0x5f3949,{'range':_0x2874cf[_0x58a5('0x25')](_0x5a90b0,_0x4c00a9)}):_0x2874cf[_0x58a5('0xf8')](_0x5f3949),!0x0);}function $t(_0x43e82a){return _0x397af0(_0x43e82a);}function Nt(_0x557fe1){const _0x3f663f=_0x557fe1[_0x58a5('0xb7')][_0x58a5('0x7a')];return _0x3f663f&&_0x3f663f['is'](_0x58a5('0x51'));}function Rt(_0x2efc9c,_0x3a24d4){const _0x10d50d=_0x3a24d4[_0x58a5('0xd8')][_0x58a5('0x7f')](_0x2efc9c)||_0x3a24d4[_0x58a5('0xd8')]['isSelectable'](_0x2efc9c);return _0x3a24d4['createRange'](_0x3a24d4[_0x58a5('0x19')](_0x2efc9c,_0x58a5('0xba')),_0x10d50d?_0x3a24d4['createPositionAfter'](_0x2efc9c):_0x3a24d4[_0x58a5('0x19')](_0x2efc9c,_0x58a5('0x11f')));}function jt(_0x3fd342,_0x35b982,_0x4632c7,_0x31e94b,_0x2cbdfc){if(!xt(_0x3fd342,_0x35b982))return!0x1;if(_0x4632c7[_0x58a5('0x11f')][_0x58a5('0xc2')](_0x31e94b[_0x58a5('0xb7')]))return!0x0;if(_0x3fd342['type']!=_0x35b982[_0x58a5('0x5')])return!0x1;if(!_0x4632c7['end'][_0x58a5('0x36')](_0x31e94b[_0x58a5('0xb7')]))return!0x1;const _0x2ceccb=_0x2cbdfc[_0x58a5('0x25')](_0x4632c7[_0x58a5('0x11f')],_0x31e94b[_0x58a5('0xb7')])[_0x58a5('0x1d')]();for(const _0x26a562 of _0x2ceccb)if([_0x58a5('0x7'),_0x58a5('0x10e')][_0x58a5('0xe8')](_0x26a562[_0x58a5('0x5')])&&_0x2cbdfc[_0x58a5('0xd8')]['isLimit'](_0x26a562['item']))return!0x1;return!0x0;}function xt(_0x17dcdb,_0x551a86){return!(!_0x17dcdb[_0x58a5('0xcd')]||!_0x551a86[_0x58a5('0xcd')])&&_0x10108a(_0x17dcdb[_0x58a5('0x129')],_0x551a86[_0x58a5('0x129')]);}function Ut(_0x432533,_0x55d0fa){const _0x47dafa=Ot(_0x432533[_0x58a5('0x129')]),_0x1032b7=Ot(_0x55d0fa);if(!_0x432533[_0x58a5('0xcd')])return!0x1;for(const _0x55ec15 of Object[_0x58a5('0x130')](_0x1032b7))if(!_0x10108a(_0x47dafa[_0x55ec15],_0x1032b7[_0x55ec15]))return!0x1;return!0x0;}function Ot(_0x453aad){const _0x478f8b=Object[_0x58a5('0x34')]({},_0x453aad);return delete _0x478f8b['skipNestingCheck'],delete _0x478f8b[_0x58a5('0x128')],_0x478f8b;}