@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231021.0 → 0.0.0-nightly-20231023.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-
|
|
3
|
+
"version": "0.0.0-nightly-20231023.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-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20231023.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231023.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 _0x1e9b=['getShiftedBy','previous','refresh','bindElementToMarker','trackChangesCommand','addMarkerName','TrackChangesEditing','formatInline','_addSuggestionMarker','markMultiRangeInsertion','isAfter','_joinWithAdjacentSuggestions','addComment','isTouching','acceptAllSuggestions','init','removeComment','next','markerToHighlight','addMarker:suggestion','dataReady','data','commandName','removeMarker','hasCommentThread','marker-count','deletion:','multi','includes','isRemovable','mapper','removeClass','setAttribute','update:suggestion','insert','element','markerName','trackChanges','createRange','remove','rootName','set','substr','_refreshSuggestionsChain','fromCharCode','howMany','then','containsRange','createPositionAfter','insertion:','execute','upcast','getNearestSelectionRange','fetchCommentThread','addClass','tablePasteChainId','_updateSuggestionData','start','editing','nodeBefore','track-changes-command-not-found','getItems','ready','_commentsRepository','formatInline:accept','isLocal','_model','registerCustomCallback','item','subType','track-changes-user-not-found','filter','consume','_cutOutSuggestionMarker','differ','newRange','detach','addRange','deletion:chain','consumable','config','_getSuggestionData','isOwn','_setSuggestionRange','moveTargetPosition','getRanges','isDocumentOperation','commentThread','_mergeNestedSuggestions','options','accepted','values','_isDataLoaded','enableReadOnlyMode','formatGroupId','attributes','trackChanges.mergeNestedSuggestions','change:activeMarkers','isLimit','PendingActions','isObject','ck-suggestion-marker-','deletion:join','get','forceDefaultExecution','registerPostFixer','_getAuthorFromId','discard','define','resolve','isUndo','batch','discardAllSuggestions','schema','sort','markerReady','delete','formatBlock','backward','formatBlock:join','addMarker:suggestion:formatBlock','removeMarkers','_adapter','notReady','group','head','getFirstRange','isMultiRange','clone','$marker','trackChanges.trackFormatChanges','writer','getMarkers','addSuggestionData','add','_removeSuggestion','_joinSuggestions','forward','isEqual','createSelection','getChanges','addCommentThread','_defaultCallbacks','isCollapsed','chain','deletion:accept','setSelection','rejected','deletion','type','_setSuggestionData','join','isInsideObject','PENDING_ACTION_SUGGESTION','highest','addSuggestion','root','acceptSuggestion','Users','never','showSuggestionHighlights','getSuggestions','enqueueChange','markDeletion','size','editingDowncast','_editor','selection','some','default','dataDowncast','removeAttribute','isIntersectingWithRange','formatBlock:','getUser','suggestionLoaded','activeMarkers','editor','isSelectable','formatInline:','markInsertion','_breakSuggestionMarker','isBlock','getCustomProperty','markerNameToElements','createRangeIn','high','getDifference','containsRangeInObject','getAttribute','position','getSuggestionCallback','containsPosition','isBefore','open','fromRange','listenTo','author','split','conversion','getCommentThread','markerToData','unbindElementFromMarkerName','addHighlight','insertContent','discardSuggestion','skipNestingCheck','_descriptionFactory','change:data','markers','_rangeIsInLocalUserInsertion','_customCallbacks','range','authoredAt','isInContent','always','change:_saved','change','parent','getFirstMarker','_suggestionState','@external','formatBlock:accept','ck-suggestion-marker','deleteContent','buildSuggestion','updateSuggestion','originalSuggestionId','_onDiscard','_registerDefaultCallbacks','getChangedMarkers','applyOperation','_enabledCommands','setTo','getIntersection','requires','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','_addThreadToSuggestion','markInlineFormat','elementEnd','toViewElement','addMarker','value','has','plugins','markMultiRangeBlockFormat','accept','updateMarker','map','multipleBlocks','collaboration.channelId','createPositionAt','elementStart','_handleNewSuggestionMarker','getLastMatchingPosition','_findSuggestions','model','locale','createElement','creator','_saved','_isForcedDefaultExecutionBlock','_suggestions','suggestion','fire','external:','unbind','isAtEnd','getAllAdjacentSuggestions','length','pluginName','formatInline:chain','getMultiRangeId','isArray','stop','from','elementToElement','createdAt','splitPosition','_createSuggestion','insertion:join','formatInline:join','_suggestionFactory','lowest','name','after','assign','for','hasComments','_trackFormatChanges','acceptSelectedSuggestions','isExternal','ck-suggestion-marker-formatBlock','formatBlock:chain','clear','stopListening','enableCommand','nodeAfter','removeMarker:suggestion:formatBlock','reconvertMarker','$graveyard','suggestionChanged','low','_checkSuggestionCorrectness','isNextTo','insertion:discard','getSuggestion','commands','push','track-changes-adapter-already-set','splice','document','_getExternalAuthor','oldRange','every','_splitMarkerName','track-changes-adapter-missing-getsuggestion','getAncestors','data-suggestion','CommentsRepository','end','insertion'];(function(_0x4a8597,_0x1e9b7b){const _0x2c67d9=function(_0x536943){while(--_0x536943){_0x4a8597['push'](_0x4a8597['shift']());}};_0x2c67d9(++_0x1e9b7b);}(_0x1e9b,0x19d));const _0x2c67=function(_0x4a8597,_0x1e9b7b){_0x4a8597=_0x4a8597-0x0;let _0x2c67d9=_0x1e9b[_0x4a8597];return _0x2c67d9;};import{Plugin as _0x3aae55,PendingActions as _0x307adb}from'ckeditor5/src/core';import{LiveRange as _0x2a689f}from'ckeditor5/src/engine';import{CKEditorError as _0x12916d,uid as _0x14b3c2,priorities as _0x41fd06,logWarning as _0x34eed0}from'ckeditor5/src/utils';import{toWidget as _0x23170e}from'ckeditor5/src/widget';import{Users as _0x27440e,hashObject as _0x26d881}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ad4ef from'./commands/trackchangescommand';import _0x37ca99 from'./commands/acceptsuggestioncommand';import _0x2e678f from'./commands/discardsuggestioncommand';import _0x8fd8 from'./commands/executeonallsuggestionscommand';import _0x5983b4 from'./commands/executeonselectedsuggestionscommand';import _0x368607 from'./suggestion';import _0x5077ed from'./suggestiondescriptionfactory';import _0x421534 from'./integrations/aiassistant';import _0x31f96b from'./integrations/alignment';import _0x382c09 from'./integrations/basicstyles';import _0x59fbac from'./integrations/blockquote';import _0x1687fd from'./integrations/ckbox';import _0x34ed8a from'./integrations/codeblock';import _0x2c0829 from'./integrations/comments';import _0x36ddb6 from'./integrations/deletecommand';import _0x15c5be from'./integrations/documentlist';import _0x40bde7 from'./integrations/entercommand';import _0x355ca6 from'./integrations/findandreplace';import _0x3e8fc0 from'./integrations/font';import _0x470a6b from'./integrations/formatpainter';import _0x419e69 from'./integrations/heading';import _0x56559b from'./integrations/highlight';import _0xa82cf5 from'./integrations/horizontalline';import _0x2e4e96 from'./integrations/htmlembed';import _0x3729c8 from'./integrations/image';import _0x283335 from'./integrations/imagereplace';import _0x547a0e from'./integrations/importword';import _0x17e56c from'./integrations/indent';import _0x224b9b from'./integrations/inputcommand';import _0x3b56d4 from'./integrations/link';import _0x631513 from'./integrations/list';import _0x5729a9 from'./integrations/listproperties';import _0x2efba4 from'./integrations/mediaembed';import _0x2a52f6 from'./integrations/mention';import _0x8402a0 from'./integrations/pagebreak';import _0x163ff6 from'./integrations/paragraph';import _0x5b8f58 from'./integrations/removeformat';import _0x363319 from'./integrations/restrictededitingmode';import _0x62e450 from'./integrations/shiftentercommand';import _0x5c23dd from'./integrations/standardeditingmode';import _0x5ec205 from'./integrations/style';import _0x2590f6 from'./integrations/table';import _0x2fc9d0 from'./integrations/tablemergesplit';import _0x222e10 from'./integrations/tableheadings';import _0x2a5d74 from'./integrations/tableclipboard';import _0x56df6d from'./integrations/tablecolumnresize';import _0x5e19b1 from'./integrations/template';import _0xe7a760 from'./integrations/tableofcontents';import _0x1f2a80 from'./integrations/title';import _0x1811ad from'./integrations/undo';import{getTranslation as _0x243cd0}from'./utils/common-translations';import _0x4c1868 from'./integrations/tablecaption';import _0x50f680 from'./integrations/documentlistproperties';import _0x58b798 from'./integrations/tableproperties';import{isEqual as _0x5960dc}from'lodash-es';export default class p extends _0x3aae55{static get[_0x2c67('0x91')](){return[_0x2c67('0xe6'),_0x27440e,_0x307adb,_0x421534,_0x31f96b,_0x382c09,_0x59fbac,_0x1687fd,_0x34ed8a,_0x2c0829,_0x36ddb6,_0x15c5be,_0x50f680,_0x40bde7,_0x355ca6,_0x3e8fc0,_0x470a6b,_0x419e69,_0x56559b,_0xa82cf5,_0x2e4e96,_0x3729c8,_0x283335,_0x547a0e,_0x17e56c,_0x224b9b,_0x3b56d4,_0x631513,_0x5729a9,_0x2efba4,_0x2a52f6,_0x8402a0,_0x163ff6,_0x5b8f58,_0x363319,_0x62e450,_0x5c23dd,_0x5ec205,_0x2590f6,_0x2fc9d0,_0x222e10,_0x4c1868,_0x2a5d74,_0x56df6d,_0xe7a760,_0x58b798,_0x5e19b1,_0x1f2a80,_0x1811ad];}static get[_0x2c67('0xb5')](){return _0x2c67('0xef');}constructor(_0x31d47c){function _0x1a6925(_0x34770b){return _0x34770b[_0x2c67('0x9f')](_0x42be93=>String[_0x2c67('0x115')](_0x42be93))[_0x2c67('0x3d')]('');}super(_0x31d47c),this[_0x2c67('0x112')](_0x2c67('0x56'),[]),this['on'](_0x2c67('0x7'),(_0x2f4ef5,_0x3101d4,_0xaf9642,_0xe6aef6)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x51fd8c of[..._0xe6aef6,..._0xaf9642])this[_0x2c67('0x12b')][_0x2c67('0x77')][_0x2c67('0x9a')](_0x51fd8c)&&_0x31d47c[_0x2c67('0x123')][_0x2c67('0xd2')](_0x51fd8c);});}),this[_0x2c67('0x75')]=new _0x5077ed(this['editor']['model'][_0x2c67('0x17')],this[_0x2c67('0x57')]['locale']),this[_0x2c67('0x20')]=null,this[_0x2c67('0xc1')]=new Bt(this[_0x2c67('0x57')]),this['_suggestions']=new Map(),this[_0x2c67('0x128')]=_0x31d47c[_0x2c67('0x9b')]['get'](_0x2c67('0xe6')),this['_enabledCommands']=new Set(),this[_0x2c67('0x12b')]=this[_0x2c67('0x57')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2c67('0xac')]=!0x1,_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x28'),_0x2c67('0x4f')),this['_trackFormatChanges']=_0x31d47c['config'][_0x2c67('0xd')]('trackChanges.trackFormatChanges'),_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x6'),!0x0),this[_0x2c67('0x141')]=_0x31d47c[_0x2c67('0x139')][_0x2c67('0xd')]('trackChanges.mergeNestedSuggestions'),this[_0x2c67('0xed')]=new _0x5ad4ef(_0x31d47c,this[_0x2c67('0x8e')]),this[_0x1a6925([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1a6925([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x32]);}[_0x2c67('0xf8')](){const _0x2e35e1=this[_0x2c67('0x57')];_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x4b'))[_0x2c67('0xfb')]({'model':'suggestion','view':_0x5e7a39=>{const {id:_0x576a2a,type:_0x45ae56}=this['_splitMarkerName'](_0x5e7a39[_0x2c67('0x10d')]),_0x93478=[_0x2c67('0x85'),'ck-suggestion-marker-'+_0x45ae56];let _0x2aea62=0xbb8;return this[_0x2c67('0x56')][_0x2c67('0x105')](_0x5e7a39[_0x2c67('0x10d')])&&(_0x93478[_0x2c67('0xdb')]('ck-suggestion-marker--active'),_0x2aea62=0xbc2),'deletion'==_0x45ae56&&(_0x2aea62+=0x5),{'classes':_0x93478,'attributes':{'data-suggestion':_0x576a2a},'priority':_0x2aea62};}}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x2c')](_0x24baf7=>{_0x24baf7['on'](_0x2c67('0xfc'),(_0x35931f,_0x4cdb88,_0x3e898f)=>{if(!_0x3e898f[_0x2c67('0x142')][_0x2c67('0x46')])return;const _0x3a57a4=_0x4cdb88[_0x2c67('0x12d')];if(!_0x3a57a4)return;const _0x460cba=_0x3e898f['mapper'][_0x2c67('0x97')](_0x3a57a4);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')]['isObject'](_0x3a57a4)&&_0x460cba&&!_0x460cba[_0x2c67('0x5d')]('widget')&&_0x460cba['is']('containerElement')&&_0x23170e(_0x460cba,_0x3e898f[_0x2c67('0x29')]);},{'priority':'high'});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x50'))['markerToHighlight']({'model':_0x2c67('0xae'),'view':(_0x5b334f,_0xd6b8a8)=>{if(!_0xd6b8a8[_0x2c67('0x142')][_0x2c67('0x46')])return null;const {type:_0x55f9f6}=this[_0x2c67('0xe2')](_0x5b334f[_0x2c67('0x10d')]);return{'classes':[_0x2c67('0x85'),_0x2c67('0xb')+_0x55f9f6],'priority':0xbb8};}});const _0x4d2978=({showActiveMarkers:_0x69f34a=!0x0}={})=>(_0xfc9463,_0x506065,_0x262dc6)=>{if(!_0x506065[_0x2c67('0x12d')])return;if(_0x506065['item']['is'](_0x2c67('0x4d')))return void _0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x506065['item'],_0xfc9463[_0x2c67('0xc3')]);const _0x539bdf=_0x262dc6[_0x2c67('0x107')]['toViewElement'](_0x506065['item']);if(!(_0x506065['item']['is'](_0x2c67('0x10c'))&&_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x5c')](_0x506065[_0x2c67('0x12d')])&&!_0x539bdf[_0x2c67('0x5d')](_0x2c67('0x71'))))return;const {id:_0x584d57}=this[_0x2c67('0xe2')](_0x506065[_0x2c67('0x10d')]);_0x262dc6[_0x2c67('0x29')]['addClass']([_0x2c67('0x85'),_0x2c67('0xcb')],_0x539bdf),_0x262dc6[_0x2c67('0x29')][_0x2c67('0x109')](_0x2c67('0xe5'),_0x584d57,_0x539bdf),_0x262dc6[_0x2c67('0x107')][_0x2c67('0xec')](_0x539bdf,_0x506065['markerName']),_0x69f34a&&(this[_0x2c67('0x56')][_0x2c67('0x105')](_0x506065[_0x2c67('0x10d')])?_0x262dc6['writer'][_0x2c67('0x11f')](_0x2c67('0x92'),_0x539bdf):_0x262dc6[_0x2c67('0x29')][_0x2c67('0x108')](_0x2c67('0x92'),_0x539bdf));for(const _0x74422 of _0x2e35e1['model'][_0x2c67('0x5f')](_0x506065[_0x2c67('0x12d')])[_0x2c67('0x126')]())_0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x74422,_0xfc9463[_0x2c67('0xc3')]);_0x262dc6['consumable'][_0x2c67('0x131')](_0x506065[_0x2c67('0x12d')],_0xfc9463[_0x2c67('0xc3')]);};_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('dataDowncast')['add'](_0x4e479a=>{_0x4e479a['on'](_0x2c67('0x1e'),(_0x39d33a,_0x272cae,_0x3c2a35)=>{_0x3c2a35[_0x2c67('0x142')][_0x2c67('0x46')]&&_0x4d2978({'showActiveMarkers':!0x1})(_0x39d33a,_0x272cae,_0x3c2a35);},{'priority':_0x2c67('0x40')});}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x6f')]({'model':_0x2c67('0xae'),'view':(_0x57aed6,_0x4aaf0c)=>_0x4aaf0c[_0x2c67('0x142')][_0x2c67('0x46')]?null:{'group':_0x2c67('0xae'),'name':_0x57aed6[_0x2c67('0x113')](0xb)}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('upcast')[_0x2c67('0xbb')]({'view':{'name':_0x2c67('0xae'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5baf44,{writer:_0x21c037})=>{let _0x4fb193='suggestion:'+_0x5baf44['getAttribute']('suggestion-type')+':'+_0x5baf44[_0x2c67('0x63')]('id');return _0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))&&(_0x4fb193+=':'+_0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))),_0x21c037[_0x2c67('0xa9')](_0x2c67('0x27'),{'data-name':_0x4fb193});}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x11c'))['dataToMarker']({'view':_0x2c67('0xae')}),_0x2e35e1['conversion'][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x1f23eb=>{_0x1f23eb['on']('addMarker:suggestion:formatBlock',_0x4d2978(),{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x2587c5=>{_0x2587c5['on'](_0x2c67('0xd1'),(_0xf3a6,_0xa998a,_0xddf438)=>{const _0x4df9e1=_0xddf438['mapper'][_0x2c67('0x5e')](_0xa998a[_0x2c67('0x10d')]);if(_0x4df9e1)for(const _0x5d7c07 of _0x4df9e1)_0x5d7c07[_0x2c67('0x5d')](_0x2c67('0x71'))||(_0xddf438[_0x2c67('0x29')]['removeClass']([_0x2c67('0x85'),_0x2c67('0xcb'),_0x2c67('0x92')],_0x5d7c07),_0xddf438[_0x2c67('0x29')][_0x2c67('0x51')](_0x2c67('0xe5'),_0x5d7c07),_0xddf438[_0x2c67('0x107')][_0x2c67('0x70')](_0x5d7c07,_0xa998a[_0x2c67('0x10d')]));},{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0xf')](_0x3306c9=>{let _0x418cf9=!0x1;const _0x60c433=Array['from'](_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x8c')]()),_0x65b2d2=new Set();for(const {name:_0x5b4375,data:_0x45dc16}of _0x60c433){const {group:_0x5e5c4a,type:_0x47e1dd,id:_0x3fdb8f}=this[_0x2c67('0xe2')](_0x5b4375);if(_0x2c67('0xae')!==_0x5e5c4a)continue;const _0x12f8e8=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3fdb8f);if(null!=_0x45dc16['newRange']){_0x2c67('0xf0')==_0x47e1dd&&(_0x418cf9=_0x418cf9||$t(_0x45dc16[_0x2c67('0x134')],_0x5b4375,_0x3306c9,_0x2e35e1['model'][_0x2c67('0x17')]));if(_0x45dc16[_0x2c67('0x134')][_0x2c67('0x35')]||'$graveyard'==_0x45dc16['newRange'][_0x2c67('0x42')][_0x2c67('0x111')]||'formatBlock'==_0x47e1dd&&!Rt(_0x45dc16['newRange'])||_0x2c67('0x3a')==_0x47e1dd&&!(!Mt(_0x53b926=_0x45dc16[_0x2c67('0x134')])&&!function(_0x46229e){return _0x46229e[_0x2c67('0x122')][_0x2c67('0x80')]==_0x46229e['end'][_0x2c67('0x124')]&&_0x46229e['start'][_0x2c67('0xb2')];}(_0x53b926)))_0x3306c9[_0x2c67('0x100')](_0x5b4375),_0x418cf9=!0x0;else{if(!_0x12f8e8||!_0x12f8e8[_0x2c67('0x7c')])continue;_0x65b2d2['add'](_0x12f8e8);}}}var _0x53b926;return _0x65b2d2[_0x2c67('0x4a')]>0x0&&(_0x418cf9=!!this[_0x2c67('0xf4')](_0x65b2d2)||_0x418cf9),_0x418cf9;}),_0x2e35e1['model']['document']['registerPostFixer'](_0x36dbfa=>{let _0x381149=!0x1;for(const _0x184e05 of _0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x32')]()){if(_0x2c67('0x10b')!=_0x184e05[_0x2c67('0x3b')])continue;const _0x1cddb3=_0x184e05[_0x2c67('0x64')]['getShiftedBy'](_0x184e05['length']);if(_0x1cddb3[_0x2c67('0xb2')])for(const _0x9321d4 of this[_0x2c67('0xad')][_0x2c67('0x1')]()){if(_0x9321d4[_0x2c67('0x25')]||!_0x9321d4[_0x2c67('0x7c')])continue;if('formatBlock'!=_0x9321d4[_0x2c67('0x3b')])continue;const _0x295064=_0x9321d4[_0x2c67('0x24')]();if(_0x295064[_0x2c67('0x122')][_0x2c67('0x80')]!=_0x295064['end'][_0x2c67('0x80')]&&_0x295064['end'][_0x2c67('0x30')](_0x184e05['position'])){const _0x4ad1ea=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x295064[_0x2c67('0x122')],_0x1cddb3);_0x36dbfa[_0x2c67('0x9e')](_0x9321d4['getFirstMarker'](),{'range':_0x4ad1ea}),_0x381149=!0x0;}}}return _0x381149;}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x77')]['on'](_0x2c67('0x10a'),(_0x2930c6,_0x446d3c,_0x1c407c)=>{if(null==_0x1c407c){const {id:_0x5bdd1d}=this[_0x2c67('0xe2')](_0x446d3c['name']),_0x5903f2=this['_suggestions']['get'](_0x5bdd1d);_0x5903f2&&_0x5903f2[_0x2c67('0xee')](_0x446d3c[_0x2c67('0xc3')]);}}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')]['on'](_0x2c67('0x76'),()=>{const _0x7cf65=Array[_0x2c67('0xba')](_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')][_0x2c67('0x133')][_0x2c67('0x8c')]())[_0x2c67('0x130')](_0x52d2f7=>'suggestion'===this[_0x2c67('0xe2')](_0x52d2f7[_0x2c67('0xc3')])[_0x2c67('0x22')]);if(0x0===_0x7cf65[_0x2c67('0xb4')])return;_0x7cf65['sort']((_0x6a8c98,_0x329299)=>{const _0x430c46=_0x6a8c98[_0x2c67('0xfe')][_0x2c67('0xe0')],_0x5e582a=_0x329299[_0x2c67('0xfe')][_0x2c67('0xe0')];return null===_0x430c46&&null===_0x5e582a?0x0:null===_0x430c46&&null!==_0x5e582a?-0x1:null!==_0x430c46&&null===_0x5e582a?0x1:_0x430c46[_0x2c67('0x122')][_0x2c67('0x67')](_0x5e582a['start'])?-0x1:0x1;});const _0x38e6e6=new Set(),_0x38c110=new Set();for(const {name:_0x3f1324,data:_0x466981}of _0x7cf65){const {id:_0x21bece}=this[_0x2c67('0xe2')](_0x3f1324);if(null===_0x466981[_0x2c67('0xe0')]){const _0x42c4dc=this[_0x2c67('0xa4')](_0x3f1324);_0x38c110[_0x2c67('0x2c')](_0x42c4dc);}else{const _0x45333d=this['_suggestions'][_0x2c67('0xd')](_0x21bece);null!==_0x466981[_0x2c67('0x134')]||_0x45333d[_0x2c67('0x7c')]?(_0x38e6e6['add'](_0x45333d[_0x2c67('0x23')]),_0x38c110['add'](_0x45333d)):this[_0x2c67('0x2d')](_0x45333d);}}_0x38c110[_0x2c67('0x4a')]>0x0&&this[_0x2c67('0x114')](_0x38c110);for(const _0x3d3c9d of _0x38e6e6)this[_0x2c67('0xaf')](_0x2c67('0xd4'),_0x3d3c9d);}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x8d'),(_0x343fb9,_0x27fb6d)=>{const _0x52f7f8=_0x27fb6d[0x0];if(!this[_0x2c67('0xad')]['size'])return;if(!_0x52f7f8[_0x2c67('0x13f')])return;if(_0x52f7f8['batch'][_0x2c67('0x14')]||!_0x52f7f8[_0x2c67('0x15')][_0x2c67('0x12a')])return;let _0x3fc03c,_0xd4e2ab;switch(_0x52f7f8[_0x2c67('0x3b')]){case _0x2c67('0x10b'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x64')]),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;case _0x2c67('0x6c'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0xbd')]),_0xd4e2ab=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x13d')]);break;case'move':_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')]['createPositionAt'](_0x52f7f8['targetPosition']),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;default:return;}const _0x3d835a=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x3fc03c,_0xd4e2ab);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const {suggestion:_0x43d62a,meta:_0x4cf6e9}of this[_0x2c67('0xa6')](_0x3d835a)){if(_0x43d62a[_0x2c67('0x25')])continue;if('formatInline'==_0x43d62a[_0x2c67('0x3b')])continue;const _0x5b4d0a=_0x43d62a[_0x2c67('0xfe')]&&_0x43d62a[_0x2c67('0xfe')][_0x2c67('0xa0')];('formatBlock'!=_0x43d62a[_0x2c67('0x3b')]||_0x2c67('0x6c')==_0x52f7f8[_0x2c67('0x3b')]&&!_0x5b4d0a)&&(_0x4cf6e9[_0x2c67('0x62')]||_0x2c67('0xe8')==_0x43d62a['type']&&_0x4cf6e9[_0x2c67('0x13b')]||_0x43d62a[_0x2c67('0x24')]()['containsRange'](_0x3d835a)&&this[_0x2c67('0x5b')](_0x43d62a,_0x3fc03c,_0xd4e2ab));}});},{'priority':_0x2c67('0xc2')}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x86'),(_0x523459,_0x368b03)=>{const _0x41dbc1=_0x368b03[0x0],_0x4543a4=_0x368b03[0x1];if(_0x4543a4&&_0x4543a4[_0x2c67('0xe')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2c67('0xed')]['value'])return;if(_0x41dbc1[_0x2c67('0x35')])return;const _0x574b75=_0x2e35e1[_0x2c67('0xa7')]['schema'],{start:_0xd823a7,end:_0x54c021}=_0x41dbc1[_0x2c67('0x24')](),_0x5c80f0=_0xd823a7['nodeAfter']&&_0x574b75[_0x2c67('0x8')](_0xd823a7[_0x2c67('0xd0')])?null:_0x574b75[_0x2c67('0x11d')](_0xd823a7,_0x2c67('0x2f')),_0x4b985e=_0x54c021[_0x2c67('0x124')]&&_0x574b75['isLimit'](_0x54c021[_0x2c67('0x124')])?null:_0x574b75['getNearestSelectionRange'](_0x54c021,_0x2c67('0x1c')),_0x2b409e=_0x2e35e1['model'][_0x2c67('0x10f')](_0x5c80f0?_0x5c80f0[_0x2c67('0x122')]:_0xd823a7,_0x4b985e?_0x4b985e[_0x2c67('0xe7')]:_0x54c021);_0x2e35e1['model'][_0x2c67('0x7f')](_0xee82b1=>{this[_0x2c67('0x49')](_0x2b409e);const _0x15feec=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x11d')](_0x2b409e['start']);_0x41dbc1['is']('documentSelection')?_0xee82b1[_0x2c67('0x38')](_0x15feec):_0x41dbc1[_0x2c67('0x8f')](_0x15feec);}),_0x523459['stop']();},{'priority':_0x41fd06['normal']+0xa}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x72'),(_0x4cdb39,_0x5a4ce5)=>{const _0x355738=_0x5a4ce5[_0x5a4ce5['length']-0x1];_0x355738&&_0x355738[_0x2c67('0xe')]||this['_isForcedDefaultExecutionBlock']||this[_0x2c67('0xed')][_0x2c67('0x99')]&&(_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{let _0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x72')](_0x5a4ce5[0x0],_0x5a4ce5[0x1],_0x5a4ce5[0x2],{'forceDefaultExecution':!0x0});if(!_0x46c38f)return;_0x4cdb39['return']=_0x46c38f[_0x2c67('0x26')]();const _0x35b0ee=_0x46c38f[_0x2c67('0xe7')][_0x2c67('0x124')],_0x1bd3f9=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')];_0x35b0ee&&_0x1bd3f9[_0x2c67('0x5c')](_0x35b0ee)&&!_0x1bd3f9[_0x2c67('0xa')](_0x35b0ee)&&(_0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x10f')](_0x46c38f[_0x2c67('0x122')],_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x35b0ee,_0x2c67('0xe7')))),this[_0x2c67('0x5a')](_0x46c38f);}),_0x4cdb39[_0x2c67('0xb9')]());},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x57')]['commands'][_0x2c67('0x2c')]('trackChanges',this[_0x2c67('0xed')]),this['enableCommand'](_0x2c67('0x10e'));const _0x38e133=new _0x37ca99(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')]['add']('acceptSuggestion',_0x38e133),this[_0x2c67('0xcf')](_0x2c67('0x43'));const _0x4b8dc6=new _0x2e678f(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0x73'),_0x4b8dc6),this[_0x2c67('0xcf')](_0x2c67('0x73')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0xf7'),new _0x8fd8(_0x2e35e1,_0x38e133,this['_suggestions'])),this[_0x2c67('0xcf')]('acceptAllSuggestions'),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardAllSuggestions',new _0x8fd8(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this['enableCommand'](_0x2c67('0x16')),_0x2e35e1['commands']['add'](_0x2c67('0xc9'),new _0x5983b4(_0x2e35e1,_0x38e133,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')](_0x2c67('0xc9')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardSelectedSuggestions',new _0x5983b4(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')]('discardSelectedSuggestions');const _0x1ceaff=_0x2e35e1[_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0xe6'));this[_0x2c67('0x6a')](_0x1ceaff,_0x2c67('0xf5'),(_0x29e976,{threadId:_0x4115b7})=>{const _0x4db7e5=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x4115b7);_0x4db7e5&&_0x4db7e5['commentThread']&&0x1===_0x4db7e5[_0x2c67('0x140')]['length']&&this['_updateSuggestionData'](_0x4115b7,{'hasComments':!0x0});},{'priority':_0x2c67('0xd5')}),this['listenTo'](_0x1ceaff,_0x2c67('0xf9'),(_0x149428,{threadId:_0x3d83de})=>{const _0x297574=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3d83de);_0x297574&&_0x297574[_0x2c67('0x140')]&&!_0x297574['commentThread'][_0x2c67('0xb4')]&&this[_0x2c67('0x121')](_0x3d83de,{'hasComments':!0x1});},{'priority':_0x2c67('0xd5')});}set['adapter'](_0x105d6b){if(this[_0x2c67('0x20')])throw new _0x12916d(_0x2c67('0xdc'),this);this[_0x2c67('0x20')]=_0x105d6b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x107610=!0x1,toJSON:_0x2876b5=!0x1}={}){const _0x51ea94=[];for(const _0x36dec8 of this[_0x2c67('0xad')]['values']())_0x107610&&!_0x36dec8[_0x2c67('0x7c')]||_0x51ea94[_0x2c67('0xdb')](_0x36dec8);return _0x2876b5?_0x51ea94[_0x2c67('0x9f')](_0x50d650=>_0x50d650['toJSON']()):_0x51ea94;}[_0x2c67('0xd9')](_0x1b9b1d){const _0x178b32=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x1b9b1d);if(!_0x178b32)throw new _0x12916d('track-changes-suggestion-not-found',this);return _0x178b32;}['hasSuggestion'](_0x1a11b9){return this[_0x2c67('0xad')][_0x2c67('0x9a')](_0x1a11b9);}['addSuggestionData'](_0x2520ee){const {authorId:_0x4b1d83,id:_0xcba6c2,attributes:_0xaa172a}=_0x2520ee,[_0x4be77e,_0x403592]=_0x2520ee[_0x2c67('0x3b')][_0x2c67('0x6c')](':'),_0x3e9815=this[_0x2c67('0xad')][_0x2c67('0xd')](_0xcba6c2)||this[_0x2c67('0xbe')](_0x4be77e,_0x403592,_0xcba6c2,_0x4b1d83,_0xaa172a);if(this[_0x2c67('0x94')](_0x3e9815),this[_0x2c67('0xd6')](_0x3e9815,_0x4be77e,_0x403592||null,_0x4b1d83),_0x3e9815['createdAt']=_0x2520ee[_0x2c67('0xbc')],_0x3e9815[_0x2c67('0x2')]=!0x0,_0xaa172a&&_0xaa172a[_0x2c67('0x83')]){const _0x4d4ff0=_0xaa172a['@external'],_0x262173=this['_getExternalAuthor'](_0x4d4ff0['authorName']);_0x3e9815[_0x2c67('0x7b')]=_0x4d4ff0['createdAt'],_0x3e9815[_0x2c67('0x6b')]=_0x262173,_0x3e9815[_0x2c67('0xca')]=!0x0;}else _0x3e9815[_0x2c67('0x7b')]=_0x2520ee[_0x2c67('0xbc')];switch(_0x2520ee[_0x2c67('0xfe')]&&(_0x3e9815[_0x2c67('0xfe')]=_0x2520ee[_0x2c67('0xfe')]),_0x2520ee['attributes']&&(_0x3e9815[_0x2c67('0x5')]=_0x2520ee['attributes']),this[_0x2c67('0x20')]&&this[_0x2c67('0x20')]['addSuggestion']||(_0x3e9815[_0x2c67('0xab')]=!0x0),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x3e9815)){case'notReady':this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'dataReady');break;case _0x2c67('0x19'):_0x3e9815[_0x2c67('0x7c')]?(this[_0x2c67('0x114')](new Set([_0x3e9815])),this['_joinWithAdjacentSuggestions'](new Set([_0x3e9815])),this[_0x2c67('0x82')]['set'](_0x3e9815,'ready'),this['fire'](_0x2c67('0x55'),_0x3e9815)):this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'removed');}return _0x3e9815;}[_0x2c67('0x43')](_0x2529d6){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x326b58 of _0x2529d6[_0x2c67('0xb3')]())_0x326b58[_0x2c67('0x9d')]();});});}[_0x2c67('0x73')](_0x8855dd){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x11c123 of _0x8855dd[_0x2c67('0xb3')]())_0x11c123[_0x2c67('0x11')]();});});}['enableCommand'](_0x558cb6,_0xed5299){const _0x52c573=this[_0x2c67('0x57')][_0x2c67('0xda')][_0x2c67('0xd')](_0x558cb6);if(!_0x52c573)throw new _0x12916d(_0x2c67('0x125'),this,{'commandName':_0x558cb6});this['_enabledCommands'][_0x2c67('0x2c')](_0x52c573),_0xed5299&&_0x52c573['on'](_0x2c67('0x11b'),(_0x198b55,_0x5886fd)=>{this[_0x2c67('0xed')][_0x2c67('0x99')]&&(this[_0x2c67('0xac')]||_0x5886fd[_0x2c67('0xb4')]>0x0&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1]&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1][_0x2c67('0xe')]||(_0x198b55['return']=_0xed5299((..._0x37088b)=>_0x52c573['execute'](..._0x37088b,{'forceDefaultExecution':!0x0}),..._0x5886fd),_0x198b55[_0x2c67('0xb9')]()));},{'priority':_0x2c67('0x60')});}['forceDefaultExecution'](_0x227f37){let _0x682a45,_0x247e31;const _0x1c3f56=this[_0x2c67('0xac')];this[_0x2c67('0xac')]=!0x0;try{_0x682a45=_0x227f37();}catch(_0x5de538){_0x247e31=_0x5de538;}return _0x1c3f56||(this[_0x2c67('0xac')]=!0x1),_0x247e31&&_0x12916d['rethrowUnexpectedError'](_0x247e31,this),_0x682a45;}[_0x2c67('0x5a')](_0x43ba0c,_0x1e3e48=null,_0x1cda64={}){if(_0x43ba0c[_0x2c67('0x35')])return null;const _0xae5ddb=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')]('Users')['me'];for(const {suggestion:_0x397567,meta:_0x12e7f2}of this[_0x2c67('0xa6')](_0x43ba0c,_0x2c67('0xe8')))if(_0x12e7f2[_0x2c67('0x13b')]){if(!_0x12e7f2[_0x2c67('0xd7')]){if(_0x12e7f2['containsRangeInObject']){if(!this[_0x2c67('0x141')]||!Ot(_0x397567,_0x1cda64))continue;return _0x397567;}if(Ot(_0x397567,_0x1cda64))return _0x397567;this['_breakSuggestionMarker'](_0x397567,_0x43ba0c['start'],_0x43ba0c[_0x2c67('0xe7')]);break;}if(_0x1e3e48==_0x397567['subType']&&Ot(_0x397567,_0x1cda64)){const _0x8d52be=_0x397567[_0x2c67('0x24')]();return _0x8d52be[_0x2c67('0x122')][_0x2c67('0x30')](_0x43ba0c['end'])?this[_0x2c67('0x13c')](_0x397567,this['_model'][_0x2c67('0x10f')](_0x43ba0c[_0x2c67('0x122')],_0x8d52be[_0x2c67('0xe7')])):this[_0x2c67('0x13c')](_0x397567,this[_0x2c67('0x12b')]['createRange'](_0x8d52be[_0x2c67('0x122')],_0x43ba0c['end'])),_0x397567;}}const _0x21fa62=_0x14b3c2(),_0xae02ef=_0xae5ddb['id'],_0x3a867a=_0x1e3e48?_0x2c67('0x11a')+_0x1e3e48:_0x2c67('0xe8'),_0x4dae1d=this['_setSuggestionData']({'id':_0x21fa62,'type':_0x3a867a,'createdAt':new Date(),'authorId':_0xae02ef,'attributes':_0x1cda64});return this[_0x2c67('0xf1')](_0x3a867a,_0x21fa62,_0xae02ef,_0x43ba0c),_0x4dae1d;}[_0x2c67('0xf2')](_0x1d82a0,_0xebbff6=_0x2c67('0x104'),_0x201025={}){const _0xa5be83=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x44'))['me'],_0x100469=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0xe8'),_0xebbff6,_0x2c67('0x3d'));for(const _0x44ead9 of this[_0x2c67('0x47')]())if(_0x44ead9[_0x2c67('0x6b')]['id']==_0xa5be83['id']&&'insertion'==_0x44ead9[_0x2c67('0x3b')]&&_0x44ead9[_0x2c67('0x12e')]==_0xebbff6&&Ot(_0x44ead9,_0x201025)&&(_0x100469(_0x44ead9[_0x2c67('0x13e')](),_0x1d82a0)||_0x100469(_0x1d82a0,_0x44ead9[_0x2c67('0x13e')]()))){for(const _0x5b2553 of _0x1d82a0)_0x44ead9[_0x2c67('0x136')](_0x5b2553);return _0x44ead9;}for(const {suggestion:_0x202ff7,meta:_0x4dddfb}of this[_0x2c67('0xa6')](_0x1d82a0,'insertion')){if(!_0x4dddfb['isOwn'])continue;if(!this[_0x2c67('0x141')]&&_0x4dddfb['containsRangeInObject'])continue;if(!Ot(_0x202ff7,_0x201025))continue;let _0x557734=!0x0;for(const _0x425c57 of _0x202ff7['getRanges']())for(const _0x2af66c of _0x1d82a0)if(!_0x425c57[_0x2c67('0x118')](_0x2af66c)){_0x557734=!0x1;break;}if(_0x557734)return _0x202ff7;}const _0x2c91b2=_0x14b3c2(),_0x3e86a4=_0xa5be83['id'],_0x53bdb5='insertion:'+_0xebbff6,_0x390451=this[_0x2c67('0x3c')]({'id':_0x2c91b2,'type':_0x53bdb5,'createdAt':new Date(),'authorId':_0x3e86a4,'attributes':_0x201025});for(const _0x548ca8 of _0x1d82a0)this[_0x2c67('0xf1')](_0x53bdb5,_0x2c91b2,_0x3e86a4,_0x548ca8,_0x368607['getMultiRangeId']());return _0x390451;}[_0x2c67('0x95')](_0x49697a,_0x434517,_0x5158ec=null,_0x3fe7eb={}){if(_0x5158ec=_0x5158ec||Nt(_0x434517),_0x49697a[_0x2c67('0x35')])return null;if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x5b0834=this[_0x2c67('0xc1')]['getSuggestionCallback']('formatInline',_0x5158ec,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5b0834([_0x49697a],_0x434517,_0x3fe7eb)),null;}const _0x140c97=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'],_0x265b54=[];if(_0x2c67('0x7d')!==this['_trackFormatChanges'])for(const {suggestion:_0x2c19a7,meta:_0x171c7a}of this[_0x2c67('0xa6')](_0x49697a,_0x2c67('0xe8')))_0x171c7a[_0x2c67('0x13b')]&&!_0x171c7a['isInsideObject']&&_0x265b54[_0x2c67('0xdb')](..._0x2c19a7['getRanges']());const _0x9ea269=function(_0x52262c,_0x5b7159){const _0x52b49f=[];for(const _0x336a94 of _0x5b7159){const _0x3b7d0a=_0x52262c[_0x2c67('0x90')](_0x336a94);_0x3b7d0a&&_0x52b49f['push'](_0x3b7d0a);}return _0x52b49f;}(_0x49697a,_0x265b54),_0x4d066d=function(_0x220be1,_0x2fc881){const _0x27b7fb=[_0x220be1];for(const _0x28ee14 of _0x2fc881){let _0x544e2b=0x0;for(;_0x544e2b<_0x27b7fb[_0x2c67('0xb4')];){const _0x253b37=_0x27b7fb[_0x544e2b][_0x2c67('0x61')](_0x28ee14);_0x27b7fb[_0x2c67('0xdd')](_0x544e2b,0x1,..._0x253b37),_0x544e2b+=_0x253b37[_0x2c67('0xb4')];}}return _0x27b7fb;}(_0x49697a,_0x265b54);_0x9ea269['length']&&this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x5122d1 of _0x9ea269){const _0x429ffb=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0xf0'),_0x5158ec,'accept');this[_0x2c67('0xe')](()=>_0x429ffb([_0x5122d1],_0x434517,_0x3fe7eb));}});for(const _0x2adf99 of _0x4d066d){let _0x3d93a1=null,_0x33bbe2=_0x2adf99[_0x2c67('0x122')],_0x461cbe=_0x2adf99['end'];for(const {suggestion:_0xf9ad05,meta:_0x89753a}of this[_0x2c67('0xa6')](_0x2adf99,_0x2c67('0xf0'))){if(!_0x89753a[_0x2c67('0x13b')])continue;if(_0xf9ad05['subType']!=_0x5158ec)continue;if(!Ot(_0xf9ad05,_0x3fe7eb))continue;const _0x990c30=_0xf9ad05['getFirstRange']();if(_0x990c30['containsRange'](_0x2adf99,!0x0))return null;_0x33bbe2=_0x33bbe2[_0x2c67('0x67')](_0x990c30['start'])?_0x33bbe2:_0x990c30['start'],_0x461cbe=_0x461cbe[_0x2c67('0xf3')](_0x990c30[_0x2c67('0xe7')])?_0x461cbe:_0x990c30[_0x2c67('0xe7')],_0x3d93a1?_0x990c30['start'][_0x2c67('0x67')](_0x3d93a1[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x3d93a1[_0x2c67('0x1f')](),_0x3d93a1=_0xf9ad05):_0xf9ad05[_0x2c67('0x1f')]():_0x3d93a1=_0xf9ad05;}const _0x132c02=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x33bbe2,_0x461cbe);if(_0x3d93a1)this[_0x2c67('0x13c')](_0x3d93a1,_0x132c02);else{const _0x285d5c=_0x14b3c2(),_0x330627=_0x140c97['id'];this[_0x2c67('0x3c')]({'id':_0x285d5c,'type':_0x2c67('0x59')+_0x5158ec,'data':_0x434517,'createdAt':new Date(),'authorId':_0x330627,'attributes':_0x3fe7eb}),this[_0x2c67('0xf1')](_0x2c67('0x59')+_0x5158ec,_0x285d5c,_0x330627,_0x132c02);}}return null;}['markBlockFormat'](_0x579461,_0x4b842c,_0x3004ad=[],_0x6377cb=null,_0x3e872a={}){_0x4b842c[_0x2c67('0x4')]||(_0x4b842c[_0x2c67('0x4')]=_0x4b842c['commandName']),_0x4b842c[_0x2c67('0xa0')]=_0x579461['is'](_0x2c67('0x7a')),_0x6377cb=_0x6377cb||Nt(_0x4b842c);const _0x2a12fa=_0x3004ad[_0x2c67('0x9f')](_0xba290d=>jt(_0xba290d,this[_0x2c67('0x12b')])),_0x1442b6=_0x579461['is']('range')?_0x579461:jt(_0x579461,this[_0x2c67('0x12b')]);if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x3c7ac0=this[_0x2c67('0xc1')]['getSuggestionCallback'](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x3c7ac0([_0x1442b6],_0x4b842c,_0x3e872a)),null;}_0x2a12fa['push'](_0x1442b6);let _0x1a5da3=!0x0;for(const _0x37a3e7 of _0x2a12fa)if(!this['_rangeIsInLocalUserInsertion'](_0x37a3e7)){_0x1a5da3=!0x1;break;}if(_0x1a5da3&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x303921=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x303921([_0x1442b6],_0x4b842c,_0x3e872a)),null;}let _0x560074=null,_0x40322d=_0x1442b6[_0x2c67('0x122')],_0x1cb8f4=_0x1442b6[_0x2c67('0xe7')];for(const {suggestion:_0x366725,meta:_0x193e44}of this[_0x2c67('0xa6')](_0x1442b6,_0x2c67('0x1b'))){if(!_0x193e44[_0x2c67('0x13b')])continue;if(_0x193e44[_0x2c67('0xd7')]||_0x193e44[_0x2c67('0x62')]||_0x193e44['isInsideObject'])continue;if(_0x366725[_0x2c67('0xfe')]['formatGroupId']!=_0x4b842c[_0x2c67('0x4')])continue;if(!Ot(_0x366725,_0x3e872a))continue;const _0x535f9f=_0x366725[_0x2c67('0x24')]();if(_0x366725[_0x2c67('0x12e')]==_0x6377cb){if(_0x535f9f[_0x2c67('0x118')](_0x1442b6,!0x0))return null;_0x40322d=_0x40322d[_0x2c67('0x67')](_0x535f9f['start'])?_0x40322d:_0x535f9f['start'],_0x1cb8f4=_0x1cb8f4[_0x2c67('0xf3')](_0x535f9f[_0x2c67('0xe7')])?_0x1cb8f4:_0x535f9f[_0x2c67('0xe7')],_0x560074?_0x535f9f[_0x2c67('0x122')][_0x2c67('0x67')](_0x560074['getFirstRange']()[_0x2c67('0x122')])?(_0x560074[_0x2c67('0x1f')](),_0x560074=_0x366725):_0x366725[_0x2c67('0x1f')]():_0x560074=_0x366725;}else{const _0x438262=_0x1442b6[_0x2c67('0x90')](_0x535f9f);this[_0x2c67('0x132')](_0x366725,_0x438262);}}const _0x557f6c=this[_0x2c67('0x57')]['plugins']['get'](_0x2c67('0x44'))['me'],_0x1856f7=_0x14b3c2(),_0x46f408=_0x557f6c['id'];if(_0x560074)return this[_0x2c67('0x13c')](_0x560074,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x560074;{const _0x4fa710=this[_0x2c67('0x3c')]({'id':_0x1856f7,'type':'formatBlock:'+_0x6377cb,'data':_0x4b842c,'createdAt':new Date(),'authorId':_0x46f408,'attributes':_0x3e872a});return this['_addSuggestionMarker'](_0x2c67('0x53')+_0x6377cb,_0x1856f7,_0x46f408,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x4fa710;}}[_0x2c67('0x9c')](_0x31ac20,_0x40dd3b,_0x2f5873=[],_0xd85339=null,_0x3c6bcd={}){_0x40dd3b['formatGroupId']||(_0x40dd3b[_0x2c67('0x4')]=_0x40dd3b[_0x2c67('0xff')]);const _0x31139c=_0x31ac20[0x0];_0x40dd3b[_0x2c67('0xa0')]=_0x31139c['is']('range'),_0xd85339=_0xd85339||Nt(_0x40dd3b);const _0x570394=_0x2f5873[_0x2c67('0x9f')](_0x3cdf54=>jt(_0x3cdf54,this[_0x2c67('0x12b')])),_0xcb5480=_0x31139c['is']('range')?_0x31ac20:_0x31ac20[_0x2c67('0x9f')](_0x1805fa=>jt(_0x1805fa,this[_0x2c67('0x12b')]));if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x18b03a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd85339,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x18b03a(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}_0x570394[_0x2c67('0xdb')](..._0xcb5480);let _0x48dbd9=!0x0;for(const _0x56ee43 of _0x570394)if(!this['_rangeIsInLocalUserInsertion'](_0x56ee43)){_0x48dbd9=!0x1;break;}if(_0x48dbd9&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x1a9d67=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x1a9d67(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}const _0x144181=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];for(const _0x1cc35d of this['getSuggestions']()){if(_0x1cc35d[_0x2c67('0x6b')]['id']!=_0x144181['id'])continue;if('formatBlock'!=_0x1cc35d['type']||_0x1cc35d[_0x2c67('0xfe')][_0x2c67('0x4')]!=_0x40dd3b[_0x2c67('0x4')])continue;if(!Ot(_0x1cc35d,_0x3c6bcd))continue;const _0x3c68de=_0x1cc35d['subType']==_0xd85339;for(let _0x28481e=0x0;_0x28481e<_0xcb5480[_0x2c67('0xb4')];_0x28481e++){const _0x4fa39a=_0xcb5480[_0x28481e];for(const _0x4482f1 of _0x1cc35d[_0x2c67('0x2a')]()){const _0x2915d1=_0x4482f1['getRange']();if(_0x4fa39a[_0x2c67('0x30')](_0x2915d1)){_0x3c68de?(_0xcb5480[_0x2c67('0xdd')](_0x28481e,0x1),_0x28481e--):_0x1cc35d[_0x2c67('0x100')](_0x4482f1['name']);break;}}}}if(0x0==_0xcb5480[_0x2c67('0xb4')])return null;const _0x387063=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,'join');for(const _0xccb967 of this[_0x2c67('0x47')]())if(_0xccb967['author']['id']==_0x144181['id']&&_0x2c67('0x1b')==_0xccb967[_0x2c67('0x3b')]&&_0xccb967[_0x2c67('0xfe')][_0x2c67('0x4')]==_0x40dd3b[_0x2c67('0x4')]&&_0xccb967['subType']==_0xd85339&&Ot(_0xccb967,_0x3c6bcd)&&(_0x387063(_0xccb967[_0x2c67('0x13e')](),_0xcb5480)||_0x387063(_0xcb5480,_0xccb967[_0x2c67('0x13e')]()))){for(const _0x3c5031 of _0xcb5480)_0xccb967[_0x2c67('0x136')](_0x3c5031);return _0xccb967;}const _0x58c7e0=_0x14b3c2(),_0x4aa7cb=_0x144181['id'],_0x5736dd=_0x2c67('0x53')+_0xd85339,_0xdbf4a5=this[_0x2c67('0x3c')]({'id':_0x58c7e0,'type':_0x5736dd,'data':_0x40dd3b,'createdAt':new Date(),'authorId':_0x4aa7cb,'attributes':_0x3c6bcd});for(const _0xf8cd5b of _0xcb5480)this['_addSuggestionMarker'](_0x5736dd,_0x58c7e0,_0x4aa7cb,_0xf8cd5b,_0x368607[_0x2c67('0xb7')]());return _0xdbf4a5;}['markDeletion'](_0x5c7f0e,_0x556165=null,_0x281c8b={}){if(_0x5c7f0e[_0x2c67('0x35')])return null;const _0x4cf962=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x4f939d=new _0x2a689f(_0x5c7f0e['start'],_0x5c7f0e['end']);for(const {suggestion:_0x178438,meta:_0x5dbc48}of this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0xe8')))if(_0x5dbc48[_0x2c67('0x13b')]&&!_0x5dbc48[_0x2c67('0xd7')]){if(_0x178438['isMultiRange']){const _0x421a26=_0x178438[_0x2c67('0x13e')]()[_0x2c67('0x130')](_0x4c4ddf=>_0x2c67('0xd3')!=_0x4c4ddf[_0x2c67('0x42')][_0x2c67('0x111')]);_0x421a26[_0x2c67('0xe1')](_0x77b50a=>_0x4f939d[_0x2c67('0x118')](_0x77b50a,!0x0))&&_0x178438[_0x2c67('0x11')]();if(_0x421a26[_0x2c67('0x4e')](_0x102fab=>_0x102fab[_0x2c67('0x118')](_0x4f939d,!0x0))){const _0x3186e0=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x556165,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x3186e0([_0x4f939d],null,_0x281c8b)),null;}}else{const _0x14e74e=_0x4f939d[_0x2c67('0x90')](_0x178438[_0x2c67('0x24')]());null!==_0x14e74e&&_0x178438[_0x2c67('0x8a')]([_0x14e74e],null,_0x281c8b);}}if(_0x4f939d[_0x2c67('0x135')](),_0x4f939d[_0x2c67('0x35')]||_0x2c67('0xd3')==_0x4f939d[_0x2c67('0x42')][_0x2c67('0x111')])return null;let _0x107b3e=null,_0x53332a=_0x4f939d[_0x2c67('0x122')],_0x2c3060=_0x4f939d[_0x2c67('0xe7')];const _0x303efe=this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0x3a'));for(const {suggestion:_0x51faeb,meta:_0x1d40cb}of _0x303efe){const _0x41cce3=this['_model']['createRange'](_0x53332a,_0x2c3060);if(_0x1d40cb[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x1d40cb[_0x2c67('0x62')]&&!_0x1d40cb[_0x2c67('0x3e')])){if(_0x51faeb['isMultiRange']){if(!Ot(_0x51faeb,_0x281c8b))continue;let _0x1949ab=!0x0;for(const _0x2e9652 of _0x51faeb[_0x2c67('0x13e')]()){if(_0x2e9652[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;_0x41cce3[_0x2c67('0x118')](_0x2e9652)||(_0x1949ab=!0x1);}_0x1949ab&&_0x51faeb[_0x2c67('0x11')]();}else{const _0x48a02b=_0x51faeb[_0x2c67('0x24')]();if(_0x48a02b[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;if(!Ot(_0x51faeb,_0x281c8b)){_0x41cce3[_0x2c67('0x118')](_0x48a02b)?_0x51faeb[_0x2c67('0x1f')]():_0x48a02b[_0x2c67('0x66')](_0x53332a)?_0x53332a=_0x48a02b[_0x2c67('0xe7')]:_0x48a02b[_0x2c67('0x66')](_0x2c3060)&&(_0x2c3060=_0x48a02b[_0x2c67('0x122')]);continue;}_0x53332a=_0x53332a[_0x2c67('0x67')](_0x48a02b[_0x2c67('0x122')])?_0x53332a:_0x48a02b[_0x2c67('0x122')],_0x2c3060=_0x2c3060[_0x2c67('0xf3')](_0x48a02b[_0x2c67('0xe7')])?_0x2c3060:_0x48a02b[_0x2c67('0xe7')],_0x281c8b=Object[_0x2c67('0xc5')]({},_0x51faeb['attributes']),_0x107b3e?_0x48a02b[_0x2c67('0x122')][_0x2c67('0x67')](_0x107b3e[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x107b3e[_0x2c67('0x1f')](),_0x107b3e=_0x51faeb):_0x51faeb[_0x2c67('0x1f')]():_0x107b3e=_0x51faeb;}}}if(_0x107b3e)return this[_0x2c67('0x13c')](_0x107b3e,this[_0x2c67('0x12b')]['createRange'](_0x53332a,_0x2c3060)),_0x107b3e;{const _0x184573=_0x14b3c2(),_0x551749=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x53332a,_0x2c3060),_0x126073=_0x4cf962['id'],_0x3bcfc9=_0x556165?_0x2c67('0x103')+_0x556165:'deletion',_0x1384fa=this['_setSuggestionData']({'id':_0x184573,'type':_0x3bcfc9,'createdAt':new Date(),'authorId':_0x126073,'attributes':_0x281c8b});return this[_0x2c67('0xf1')](_0x3bcfc9,_0x184573,_0x126073,_0x551749),_0x1384fa;}}['markMultiRangeDeletion'](_0x3c589c,_0x34406c=_0x2c67('0x104'),_0x50ba1c={}){const _0x46c7fd=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x5a9353=_0x3c589c['map'](_0x25a476=>new _0x2a689f(_0x25a476[_0x2c67('0x122')],_0x25a476[_0x2c67('0xe7')])),_0x513260=new Set();for(const {suggestion:_0xe1875e,meta:_0x3b061c}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0xe8')))_0x3b061c[_0x2c67('0x13b')]&&!_0x3b061c[_0x2c67('0xd7')]&&_0x513260[_0x2c67('0x2c')](_0xe1875e);for(const _0x3f443c of _0x513260)if(_0x3f443c[_0x2c67('0x25')]){const _0x449ecc=_0x3f443c[_0x2c67('0x13e')]();(!_0x3f443c['attributes']||!_0x3f443c['attributes']['skipNestingCheck'])&&(_0x449ecc[_0x2c67('0xe1')](_0x510b28=>_0x5a9353[_0x2c67('0x4e')](_0x1ccce9=>_0x1ccce9['containsRange'](_0x510b28,!0x0)))&&_0x3f443c['discard']());if(_0x5a9353[_0x2c67('0xe1')](_0x1d7c63=>_0x449ecc[_0x2c67('0x4e')](_0x3fa2be=>_0x3fa2be[_0x2c67('0x118')](_0x1d7c63,!0x0)))){const _0x5ee53d=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5ee53d(_0x3c589c,null,_0x50ba1c)),null;}}else{const _0x16a9d1=_0x3f443c[_0x2c67('0x24')]();_0x5a9353[_0x2c67('0x4e')](_0x2ba01c=>_0x2ba01c['containsRange'](_0x16a9d1,!0x0))&&_0x3f443c[_0x2c67('0x11')]();if(_0x5a9353[_0x2c67('0xe1')](_0x49a90f=>_0x16a9d1['containsRange'](_0x49a90f,!0x0))){const _0x234dd4=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x234dd4(_0x5a9353,null,_0x50ba1c)),null;}}const _0x37e179=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x3d'));let _0xe19f97=null;for(const _0x48d2d0 of this[_0x2c67('0x47')]())if(_0x48d2d0[_0x2c67('0x6b')]['id']==_0x46c7fd['id']&&_0x48d2d0[_0x2c67('0x7c')]&&_0x2c67('0x3a')==_0x48d2d0['type']&&_0x48d2d0['subType']==_0x34406c&&Ot(_0x48d2d0,_0x50ba1c)&&(_0x37e179(_0x48d2d0[_0x2c67('0x13e')](),_0x5a9353)||_0x37e179(_0x5a9353,_0x48d2d0[_0x2c67('0x13e')]()))){if(_0xe19f97){if(_0x48d2d0[_0x2c67('0x140')]&&_0x48d2d0[_0x2c67('0x140')][_0x2c67('0xb4')])continue;for(const _0x3fc9c6 of _0x48d2d0[_0x2c67('0x13e')]())_0xe19f97[_0x2c67('0x52')](_0x3fc9c6)||_0xe19f97['addRange'](_0x3fc9c6);_0x48d2d0[_0x2c67('0x1f')]();}else{_0xe19f97=_0x48d2d0;for(const _0x2b2dc7 of _0x5a9353)_0x48d2d0[_0x2c67('0x52')](_0x2b2dc7)||_0x48d2d0['addRange'](_0x2b2dc7);}}if(_0xe19f97)return _0xe19f97;_0x513260[_0x2c67('0xcd')]();for(const {suggestion:_0x42ebae,meta:_0x4df149}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0x3a')))_0x4df149[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x4df149[_0x2c67('0x62')]&&!_0x4df149[_0x2c67('0x3e')])&&Ot(_0x42ebae,_0x50ba1c)&&_0x513260['add'](_0x42ebae);for(const _0x3fdefa of _0x513260){const _0x532839=_0x3fdefa[_0x2c67('0x13e')]();if(!_0x50ba1c||!_0x50ba1c[_0x2c67('0x74')]){if(_0x5a9353['every'](_0x589c07=>_0x532839[_0x2c67('0x4e')](_0x2256a1=>_0x2256a1['containsRange'](_0x589c07,!0x0))))return _0x3fdefa;}(!_0x3fdefa[_0x2c67('0x5')]||!_0x3fdefa[_0x2c67('0x5')][_0x2c67('0x74')])&&(_0x532839['every'](_0xb280a=>_0x5a9353[_0x2c67('0x4e')](_0x59bc5f=>_0x59bc5f[_0x2c67('0x118')](_0xb280a,!0x0)))&&_0x3fdefa[_0x2c67('0x11')]());}const _0x3579b9=_0x14b3c2(),_0x1fa3f4=_0x46c7fd['id'],_0x3f91f6='deletion:'+_0x34406c,_0x1712d5=this[_0x2c67('0x3c')]({'id':_0x3579b9,'type':_0x3f91f6,'createdAt':new Date(),'authorId':_0x1fa3f4,'attributes':_0x50ba1c});for(const _0x4a226d of _0x5a9353)_0x4a226d[_0x2c67('0x135')](),_0x4a226d['isCollapsed']||_0x2c67('0xd3')==_0x4a226d[_0x2c67('0x42')][_0x2c67('0x111')]||this[_0x2c67('0xf1')](_0x3f91f6,_0x3579b9,_0x1fa3f4,_0x4a226d,_0x368607[_0x2c67('0xb7')]());return _0x1712d5;}[_0x2c67('0x13c')](_0x2d2a42,_0x5e33a9){const _0x1dd409=_0x2d2a42[_0x2c67('0x81')]();this['_model']['change'](_0x5b2eb9=>{_0x5b2eb9['updateMarker'](_0x1dd409,{'range':_0x5e33a9});});}[_0x2c67('0x94')](_0x25d421){const _0x52cae5=_0x25d421['id'],_0x4d167b=this['editor'][_0x2c67('0x139')][_0x2c67('0xd')](_0x2c67('0xa1'));this[_0x2c67('0x128')][_0x2c67('0x101')](_0x52cae5)||this[_0x2c67('0x128')][_0x2c67('0x33')]({'channelId':_0x4d167b,'threadId':_0x52cae5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e721c=this['_commentsRepository'][_0x2c67('0x6e')](_0x52cae5);_0x1e721c[_0x2c67('0xb1')](_0x2c67('0x106')),_0x1e721c[_0x2c67('0x106')]=!0x1,_0x25d421[_0x2c67('0x140')]=_0x1e721c;}[_0x2c67('0xd6')](_0x4af61a,_0x46e861,_0x5fe775,_0x285fc4){if(_0x4af61a[_0x2c67('0x3b')]!=_0x46e861||_0x4af61a['subType']!=_0x5fe775||_0x4af61a[_0x2c67('0xaa')]['id']!=_0x285fc4)throw this['editor'][_0x2c67('0x3')]('track-changes-suggestion-data-mismatch'),new _0x12916d('track-changes-suggestion-data-mismatch',this);}[_0x2c67('0x132')](_0x2babfb,_0x4b554c){const _0x60d258=_0x2babfb[_0x2c67('0x24')]();if(_0x4b554c[_0x2c67('0x30')](_0x60d258))_0x2babfb[_0x2c67('0x1f')]();else{if(_0x60d258[_0x2c67('0x118')](_0x4b554c)){const _0x248487=this['_model'][_0x2c67('0xa2')](_0x4b554c['start'][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x60d258[_0x2c67('0x122')],_0x248487));const _0x271997=_0x14b3c2(),_0x133bd0=_0x2babfb['creator']['id'],_0x480bd4=_0x2babfb[_0x2c67('0x3b')]+':'+_0x2babfb[_0x2c67('0x12e')];this[_0x2c67('0x3c')]({'id':_0x271997,'type':_0x480bd4,'createdAt':new Date(),'authorId':_0x133bd0,'data':_0x2babfb['data'],'attributes':_0x2babfb[_0x2c67('0x5')]});const _0x2fb6f2=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0xe7')][_0x2c67('0x80')],_0x2c67('0xc4')),_0x3ff70b=this[_0x2c67('0x12b')]['createRange'](_0x2fb6f2,_0x60d258['end']);this[_0x2c67('0xf1')](_0x480bd4,_0x271997,_0x133bd0,_0x3ff70b);}else{if(_0x60d258[_0x2c67('0x66')](_0x4b554c[_0x2c67('0x122')])){const _0x537dd4=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0x122')][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this['_model']['createRange'](_0x60d258[_0x2c67('0x122')],_0x537dd4));}else{const _0x7af79e=this[_0x2c67('0x12b')]['createPositionAt'](_0x4b554c[_0x2c67('0xe7')]['parent'],_0x2c67('0xc4'));this['_setSuggestionRange'](_0x2babfb,this['_model'][_0x2c67('0x10f')](_0x7af79e,_0x60d258['end']));}}}}[_0x2c67('0x78')](_0xd0e464){for(const {suggestion:_0x499b17,meta:_0xcd146c}of this[_0x2c67('0xa6')](_0xd0e464,_0x2c67('0xe8'))){if(!_0xcd146c[_0x2c67('0x13b')])continue;const _0x1f4d75=_0x499b17['getRanges']();for(const _0x2d3bee of _0x1f4d75)if(!_0xd0e464['getDifference'](_0x2d3bee)[_0x2c67('0xb4')])return!0x0;}return!0x1;}[_0x2c67('0x10')](_0x239721){const _0x222810=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')[_0x2c67('0x54')](_0x239721);if(!_0x222810)throw new _0x12916d(_0x2c67('0x12f'),this);return _0x222810;}[_0x2c67('0xdf')](_0x4b2f41){const _0x33685e=this['editor']['plugins'][_0x2c67('0xd')](_0x2c67('0x44')),_0x3ffa3a=_0x26d881(_0x2c67('0xb0')+_0x4b2f41),_0x4de70a=_0x33685e[_0x2c67('0x54')](_0x3ffa3a);return _0x4de70a||_0x33685e['addUser']({'id':_0x3ffa3a,'name':_0x4b2f41});}['_createSuggestion'](_0x2619b4,_0x3d4c77,_0x5e4687,_0x38944d,_0x5403c5){const _0x386411=this[_0x2c67('0x10')](_0x38944d),_0x1be287=this[_0x2c67('0xc1')][_0x2c67('0x87')](_0x2619b4,_0x3d4c77,_0x5e4687,_0x386411,_0x5403c5,_0x10f763=>this[_0x2c67('0x121')](_0x5e4687,{'attributes':_0x10f763}));return this[_0x2c67('0x6a')](_0x1be287,_0x2c67('0x9d'),()=>{this[_0x2c67('0x121')](_0x5e4687,{'state':_0x2c67('0x0')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x6a')](_0x1be287,'discard',()=>{this['_updateSuggestionData'](_0x5e4687,{'state':_0x2c67('0x39')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0xad')][_0x2c67('0x112')](_0x5e4687,_0x1be287),this[_0x2c67('0x82')][_0x2c67('0x112')](_0x1be287,_0x2c67('0x21')),_0x1be287;}[_0x2c67('0xe2')](_0x3f63cf){const _0xa6da8=_0x3f63cf[_0x2c67('0x6c')](':');return{'group':_0xa6da8[0x0],'type':_0xa6da8[0x1],'subType':_0xa6da8[_0x2c67('0xb4')]>=0x5?_0xa6da8[0x2]:null,'id':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x2]:_0xa6da8[0x3],'authorId':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x3]:_0xa6da8[0x4],'markerCount':0x6==_0xa6da8[_0x2c67('0xb4')]?_0xa6da8[0x5]:null};}[_0x2c67('0x5b')](_0x258334,_0xf6344a,_0x15e3e6){const _0x5e4212=_0x258334[_0x2c67('0x24')](),_0x2a95c4=_0x5e4212[_0x2c67('0x122')],_0x5c976b=_0x5e4212[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x258334,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x2a95c4,_0xf6344a));const _0x5b989e=_0x14b3c2(),_0x311d8f=_0x258334[_0x2c67('0xaa')]['id'],_0xe95f66=_0x258334[_0x2c67('0x3b')]+(_0x258334['subType']?':'+_0x258334[_0x2c67('0x12e')]:'');this[_0x2c67('0x3c')]({'id':_0x5b989e,'type':_0xe95f66,'createdAt':new Date(),'authorId':_0x311d8f,'originalSuggestionId':_0x258334['id'],'attributes':_0x258334['attributes'],'data':_0x258334[_0x2c67('0xfe')]}),'formatBlock'==_0x258334[_0x2c67('0x3b')]&&(_0x15e3e6=this['_model']['createPositionBefore'](_0x15e3e6['parent'])),this[_0x2c67('0xf1')](_0xe95f66,_0x5b989e,_0x311d8f,this[_0x2c67('0x12b')]['createRange'](_0x15e3e6,_0x5c976b));}[_0x2c67('0xa6')](_0x14e3e2,_0x257d04=null){const _0x11d162=[],_0x345ebe=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];Array[_0x2c67('0xb8')](_0x14e3e2)||(_0x14e3e2=[_0x14e3e2]);for(const _0x4d8fce of this[_0x2c67('0x47')]()){if(!_0x4d8fce[_0x2c67('0x7c')])continue;if(_0x257d04&&_0x4d8fce[_0x2c67('0x3b')]!=_0x257d04)continue;let _0x1aab04=!0x1;for(const _0x4229ed of _0x4d8fce['getRanges']()){for(const _0x20885a of _0x14e3e2){const _0xd37a32=_0x20885a[_0x2c67('0x122')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0xe7')])||_0x20885a[_0x2c67('0xe7')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0x122')]);if(_0xd37a32||_0x20885a[_0x2c67('0x90')](_0x4229ed)){const _0xb46809=_0x20885a['containsRange'](_0x4229ed)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x4229ed[_0x2c67('0x122')],_0x20885a),_0xe52eb3=_0x4229ed[_0x2c67('0x118')](_0x20885a)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x20885a[_0x2c67('0x122')],_0x4229ed);_0x11d162[_0x2c67('0xdb')]({'suggestion':_0x4d8fce,'meta':{'isOwn':_0x345ebe==_0x4d8fce['author'],'isNextTo':_0xd37a32,'isInsideObject':_0xb46809,'containsRangeInObject':_0xe52eb3}}),_0x1aab04=!0x0;break;}}if(_0x1aab04)break;}}return _0x11d162;}[_0x2c67('0xf1')](_0x14c0e3,_0x595b96,_0x9ab734,_0x15e0a1,_0xc9f1f0){this['_model'][_0x2c67('0x7f')](_0x1561d4=>{let _0x13649f='suggestion:'+_0x14c0e3+':'+_0x595b96+':'+_0x9ab734;_0xc9f1f0&&(_0x13649f=_0x13649f+':'+_0xc9f1f0),_0x1561d4[_0x2c67('0x98')](_0x13649f,{'range':_0x15e0a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x577380){const _0x2dcca5=_0x577380[_0x2c67('0xea')],_0x11f972=_0x577380[_0x2c67('0xfa')];_0x577380[_0x2c67('0xea')]=null,null!=_0x2dcca5&&(_0x2dcca5['next']=null),_0x577380[_0x2c67('0xfa')]=null,null!=_0x11f972&&(_0x11f972[_0x2c67('0xea')]=null),_0x2c67('0x127')==this['_suggestionState'][_0x2c67('0xd')](_0x577380)&&(this['_suggestionState'][_0x2c67('0x112')](_0x577380,'removed'),this[_0x2c67('0xaf')]('suggestionUnloaded',_0x577380,_0x2dcca5,_0x11f972));}[_0x2c67('0x3c')](_0x293bab){const _0x157319=_0x293bab['id'],_0x4808a9=this['addSuggestionData'](_0x293bab);if(this[_0x2c67('0x20')]&&this[_0x2c67('0x20')][_0x2c67('0x41')]){const _0x422583=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x9')),_0x382e50=_0x4808a9[_0x2c67('0xc7')],_0x266db7=_0x4808a9['subType']?_0x4808a9[_0x2c67('0x3b')]+':'+_0x4808a9[_0x2c67('0x12e')]:_0x4808a9[_0x2c67('0x3b')],_0x34325d=this[_0x2c67('0x57')]['locale'],_0x40a5c8=_0x422583[_0x2c67('0x2c')](_0x243cd0(_0x34325d,_0x2c67('0x3f'))),_0x299a5a={'id':_0x157319,'type':_0x266db7,'hasComments':_0x382e50,'data':_0x293bab[_0x2c67('0xfe')]||null,'originalSuggestionId':_0x293bab[_0x2c67('0x89')]||null,'attributes':_0x4808a9[_0x2c67('0x5')]};this[_0x2c67('0x20')][_0x2c67('0x41')](_0x299a5a)[_0x2c67('0x117')](_0x1d05ba=>{_0x4808a9['_saved']=!0x0,_0x422583[_0x2c67('0x110')](_0x40a5c8),_0x1d05ba&&_0x1d05ba[_0x2c67('0xbc')]&&(this[_0x2c67('0xad')]['get'](_0x157319)[_0x2c67('0xbc')]=_0x1d05ba[_0x2c67('0xbc')]);})['catch'](_0x51ce95=>{throw _0x34eed0(_0x2c67('0x93')),this['editor'][_0x2c67('0xa7')][_0x2c67('0x48')]({'isUndoable':!0x1},()=>{_0x4808a9[_0x2c67('0x11')]();}),_0x4808a9[_0x2c67('0xce')](),this[_0x2c67('0xad')][_0x2c67('0x1a')](_0x4808a9['id']),this[_0x2c67('0x82')]['delete'](_0x4808a9),_0x51ce95;});}return _0x4808a9;}[_0x2c67('0x121')](_0x192139,_0x547021){const _0x52ae47=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')](_0x2c67('0x9')),_0x34f4ab=this['getSuggestion'](_0x192139);if(this['_adapter']&&this['_adapter'][_0x2c67('0x88')]){if(_0x34f4ab[_0x2c67('0xab')]){const _0x312aca=_0x52ae47[_0x2c67('0x2c')](_0x243cd0(this[_0x2c67('0x57')][_0x2c67('0xa8')],'PENDING_ACTION_SUGGESTION'));this[_0x2c67('0x20')][_0x2c67('0x88')](_0x192139,_0x547021)[_0x2c67('0x117')](()=>{_0x52ae47['remove'](_0x312aca);});}else _0x34f4ab['on'](_0x2c67('0x7e'),()=>{this[_0x2c67('0x121')](_0x192139,_0x547021);});}}[_0x2c67('0x13a')](_0x33abed){if(!this[_0x2c67('0x20')]||!this[_0x2c67('0x20')][_0x2c67('0xd9')])throw new _0x12916d(_0x2c67('0xe3'),this);return this[_0x2c67('0x20')][_0x2c67('0xd9')](_0x33abed);}['_handleNewSuggestionMarker'](_0x1ec224){const {id:_0x1ff55b,type:_0x401cbd,subType:_0x4c0674,authorId:_0x40b984}=this[_0x2c67('0xe2')](_0x1ec224),_0x180f93=this['_suggestions'][_0x2c67('0xd')](_0x1ff55b)||this[_0x2c67('0xbe')](_0x401cbd,_0x4c0674,_0x1ff55b,_0x40b984,{});switch(this[_0x2c67('0xd6')](_0x180f93,_0x401cbd,_0x4c0674,_0x40b984),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x180f93)){case'notReady':this[_0x2c67('0x13a')](_0x1ff55b)[_0x2c67('0x117')](_0x42bcb1=>{let _0xf39bec=Promise[_0x2c67('0x13')]();_0x42bcb1[_0x2c67('0xc7')]&&(_0xf39bec=this[_0x2c67('0x128')][_0x2c67('0x11e')]({'channelId':this[_0x2c67('0x57')]['config']['get'](_0x2c67('0xa1')),'threadId':_0x1ff55b})),_0xf39bec['then'](()=>{this[_0x2c67('0x2b')](_0x42bcb1)[_0x2c67('0xab')]=!0x0;});}),this['_suggestionState'][_0x2c67('0x112')](_0x180f93,_0x2c67('0x19'));break;case'removed':this[_0x2c67('0x121')](_0x1ff55b,{'state':_0x2c67('0x68')});case _0x2c67('0xfd'):this[_0x2c67('0x82')]['set'](_0x180f93,'ready'),this[_0x2c67('0xaf')](_0x2c67('0x55'),_0x180f93);break;case _0x2c67('0x127'):this[_0x2c67('0xaf')]('suggestionChanged',_0x180f93);}return _0x180f93['addMarkerName'](_0x1ec224),_0x180f93;}[_0x2c67('0x114')](_0x347c70){const _0x57b543=Array[_0x2c67('0xba')](_0x347c70)[_0x2c67('0x130')](_0x5717aa=>!_0x5717aa[_0x2c67('0x25')]),_0x3315f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b05fa=>!_0x5b05fa[_0x2c67('0x25')]),_0x301998=_0x3315f6[_0x2c67('0x130')](_0x44d1be=>!_0x347c70[_0x2c67('0x9a')](_0x44d1be)),_0x1c83bf=new Map(_0x3315f6['map'](_0x3248ea=>[_0x3248ea,this['_suggestionFactory'][_0x2c67('0x65')](_0x3248ea[_0x2c67('0x3b')],_0x3248ea[_0x2c67('0x12e')],_0x2c67('0x36'))])),_0x1b2bb9=new Map(_0x3315f6['map'](_0x5d266e=>[_0x5d266e,_0x5d266e['getFirstRange']()])),_0x11a858=new Set(),_0x32f470=new Set();for(let _0x57b66d=0x0;_0x57b66d<_0x57b543[_0x2c67('0xb4')];_0x57b66d++)_0x306f8f(_0x57b543[_0x57b66d],_0x57b543,_0x57b66d+0x1);for(let _0x8148db=0x0;_0x8148db<_0x57b543['length'];_0x8148db++)_0x306f8f(_0x57b543[_0x8148db],_0x301998,0x0);for(let _0x474735=0x0;_0x474735<_0x57b543['length'];_0x474735++){const _0x5c0b4b=_0x57b543[_0x474735];!_0x32f470[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xea')]&&(_0x5c0b4b[_0x2c67('0xea')][_0x2c67('0xfa')]===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xea')]['next']=null),_0x5c0b4b[_0x2c67('0xea')]=null),!_0x11a858[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xfa')]&&(_0x5c0b4b['next']['previous']===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xfa')][_0x2c67('0xea')]=null),_0x5c0b4b[_0x2c67('0xfa')]=null);}function _0x306f8f(_0x5d3ad3,_0x21bf81,_0x36f3b1){for(let _0xfe0b46=_0x36f3b1;_0xfe0b46<_0x21bf81[_0x2c67('0xb4')];_0xfe0b46++){const _0x1a3dd6=_0x1148ec(_0x5d3ad3,_0x21bf81[_0xfe0b46]);_0x1a3dd6&&(_0x1a3dd6[0x0]['next']=_0x1a3dd6[0x1],_0x1a3dd6[0x1][_0x2c67('0xea')]=_0x1a3dd6[0x0],_0x11a858['add'](_0x1a3dd6[0x0]),_0x32f470[_0x2c67('0x2c')](_0x1a3dd6[0x1]));}}function _0x1148ec(_0x5d4832,_0x5dfbb5){if(_0x5d4832[_0x2c67('0x6b')]['id']!==_0x5dfbb5['author']['id'])return null;const _0x5284ac=_0x1c83bf[_0x2c67('0xd')](_0x5d4832)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9[_0x2c67('0xd')](_0x5dfbb5));if(!_0x5284ac)return null;return _0x1c83bf[_0x2c67('0xd')](_0x5dfbb5)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9['get'](_0x5dfbb5))?_0x5284ac[0x1]['commentThread']&&_0x5284ac[0x1][_0x2c67('0x140')][_0x2c67('0xb4')]?null:_0x5284ac:null;}}[_0x2c67('0xf4')](_0x39df63){const _0xf9e1af=Array[_0x2c67('0xba')](_0x39df63),_0x44d045=this[_0x2c67('0x47')]({'skipNotAttached':!0x0}),_0x466419=_0x44d045[_0x2c67('0x130')](_0x3c7ecb=>!_0x39df63[_0x2c67('0x9a')](_0x3c7ecb)),_0x35d575=new Map(_0xf9e1af[_0x2c67('0x9f')](_0xbf9502=>[_0xbf9502,this[_0x2c67('0xc1')]['getSuggestionCallback'](_0xbf9502[_0x2c67('0x3b')],_0xbf9502['subType'],_0x2c67('0x3d'))])),_0x534daa=new Map(_0x44d045[_0x2c67('0x9f')](_0x161f34=>[_0x161f34,_0x161f34[_0x2c67('0x13e')]()]));for(let _0x3e167b=0x0;_0x3e167b<_0xf9e1af['length'];_0x3e167b++){if(_0x5688f0(this,_0xf9e1af[_0x3e167b],_0xf9e1af,_0x3e167b+0x1))return!0x0;}for(let _0x537ad8=0x0;_0x537ad8<_0xf9e1af[_0x2c67('0xb4')];_0x537ad8++){if(_0x5688f0(this,_0xf9e1af[_0x537ad8],_0x466419,0x0))return!0x0;}return!0x1;function _0x5688f0(_0x211444,_0x2f9d83,_0x54d79f,_0x3e5f81){for(let _0x33c78b=_0x3e5f81;_0x33c78b<_0x54d79f[_0x2c67('0xb4')];_0x33c78b++){const _0xead7be=_0x54d79f[_0x33c78b];if(_0xead7be['type']!==_0x2f9d83[_0x2c67('0x3b')]||_0xead7be[_0x2c67('0x6b')]['id']!==_0x2f9d83[_0x2c67('0x6b')]['id']||_0xead7be[_0x2c67('0x12e')]!==_0x2f9d83[_0x2c67('0x12e')])continue;if(!Ut(_0x2f9d83,_0xead7be))continue;const _0x5d88be=_0x35d575[_0x2c67('0xd')](_0x2f9d83),_0x52a6ed=_0x534daa[_0x2c67('0xd')](_0x2f9d83),_0x3e3072=_0x534daa['get'](_0xead7be),_0x525f22=_0x2f9d83[_0x2c67('0x140')]&&_0x2f9d83[_0x2c67('0x140')][_0x2c67('0xb4')],_0x437323=_0xead7be[_0x2c67('0x140')]&&_0xead7be['commentThread']['length'];if(!_0x525f22&&_0x5d88be(_0x3e3072,_0x52a6ed))return _0x211444[_0x2c67('0x2e')](_0xead7be,_0x2f9d83),_0x534daa[_0x2c67('0x1a')](_0x2f9d83),!0x0;if(!_0x437323&&_0x5d88be(_0x52a6ed,_0x3e3072))return _0x211444[_0x2c67('0x2e')](_0x2f9d83,_0xead7be),_0x534daa[_0x2c67('0x1a')](_0xead7be),!0x0;}return!0x1;}}[_0x2c67('0x2e')](_0x370035,_0x13ca36){if(_0x370035[_0x2c67('0x25')])for(const _0x2da569 of _0x13ca36['getRanges']())_0x370035[_0x2c67('0x136')](_0x2da569);else{const _0x21a523=_0x13ca36[_0x2c67('0x24')]()[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x370035,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x370035[_0x2c67('0x24')]()['start'],_0x21a523));}_0x13ca36['removeMarkers']();}}class Bt{constructor(_0x52bc92){this[_0x2c67('0x4c')]=_0x52bc92,this[_0x2c67('0x12b')]=_0x52bc92[_0x2c67('0xa7')],this[_0x2c67('0x79')]=new Map(),this[_0x2c67('0x34')]=new Map(),this[_0x2c67('0x8b')]();}[_0x2c67('0x87')](_0xf88642,_0x52b6a9,_0x448aec,_0x575c2d,_0x50213c,_0x13532d){return new _0x368607(this[_0x2c67('0x12b')],{'type':_0xf88642,'subType':_0x52b6a9,'id':_0x448aec,'author':_0x575c2d,'creator':_0x575c2d,'attributes':_0x50213c,'onAttributesChange':_0x13532d,'onAccept':(..._0x437ff1)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x9d'))(..._0x437ff1),'onDiscard':(..._0x3d4408)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x11'))(..._0x3d4408)});}[_0x2c67('0x12c')](_0x502ac7,_0x2f8894,_0x441c64,_0x1a7b0a){const _0x1f0fd1=_0x502ac7+':'+_0x2f8894+':'+_0x441c64;this['_customCallbacks'][_0x2c67('0x112')](_0x1f0fd1,_0x1a7b0a);}[_0x2c67('0x65')](_0x3800af,_0x4b9e77,_0x2371db){const _0x5a9f89=_0x3800af+':'+_0x4b9e77+':'+_0x2371db;return this[_0x2c67('0x79')][_0x2c67('0xd')](_0x5a9f89)||this['_defaultCallbacks']['get'](_0x3800af+':'+_0x2371db);}[_0x2c67('0x8b')](){const _0x472c60=()=>!0x1,_0x443cdf=_0x3cbb92=>{_0x3cbb92[_0x2c67('0x18')]((_0xde8635,_0x314a66)=>_0xde8635[_0x2c67('0x122')][_0x2c67('0x67')](_0x314a66[_0x2c67('0x122')])?0x1:-0x1),this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x20fbfa=>{for(const _0xe7d118 of _0x3cbb92){let _0x62f01c;_0x62f01c=_0xe7d118[_0x2c67('0xe7')][_0x2c67('0xb2')]&&_0xe7d118[_0x2c67('0xe7')][_0x2c67('0x80')]==_0xe7d118[_0x2c67('0x122')][_0x2c67('0xd0')]?_0x20fbfa[_0x2c67('0x31')](_0xe7d118['start'][_0x2c67('0xd0')],'on'):_0x20fbfa[_0x2c67('0x31')](_0xe7d118),this[_0x2c67('0x12b')][_0x2c67('0x86')](_0x62f01c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a3e20=(_0x2363a8,_0x364113)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x2f2adc=>{const {commandName:_0x59324c,commandParams:_0x4066d1=[]}=_0x364113,_0x37b046=_0x2363a8[_0x2c67('0x9f')](_0x274352=>(Mt(_0x274352)&&(_0x274352=this[_0x2c67('0x12b')]['createRange'](_0x274352[_0x2c67('0xe7')])),_0x274352))[_0x2c67('0x130')](_0x33394a=>_0x2c67('0xd3')!==_0x33394a[_0x2c67('0x42')][_0x2c67('0x111')]);if(_0x37b046['length']<0x1)return;const _0x3ccf9a=Array[_0x2c67('0xba')](this[_0x2c67('0x12b')][_0x2c67('0xde')][_0x2c67('0x4d')]['getRanges']())[_0x2c67('0x9f')](_0x443806=>_0x2a689f[_0x2c67('0x69')](_0x443806));_0x2f2adc['setSelection'](_0x37b046);for(const _0x14f4e0 of this['_editor'][_0x2c67('0xda')][_0x2c67('0xda')]())_0x14f4e0[_0x2c67('0xeb')]();_0x4066d1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x59324c,..._0x4066d1);const _0x3c2f26=_0x3ccf9a['filter'](_0x40d5f1=>_0x2c67('0xd3')!=_0x40d5f1[_0x2c67('0x42')][_0x2c67('0x111')]);_0x3c2f26['length']>0x0&&_0x2f2adc['setSelection'](_0x3c2f26);for(const _0x498c78 of _0x3ccf9a)_0x498c78[_0x2c67('0x135')]();});},_0x5de969=(_0x3a4ced,_0x34a760)=>0x1==_0x3a4ced[_0x2c67('0xb4')]&&0x1==_0x34a760[_0x2c67('0xb4')]&&_0x3a4ced[0x0][_0x2c67('0xe7')]['isEqual'](_0x34a760[0x0][_0x2c67('0x122')]),_0x5920d5=(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735)=>xt(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735,this[_0x2c67('0x12b')])?[_0x14d417,_0x4d5511]:xt(_0x4d5511,_0x14d417,_0x3a4735,_0xd09c03,this[_0x2c67('0x12b')])?[_0x4d5511,_0x14d417]:null;this['_defaultCallbacks'][_0x2c67('0x112')]('insertion:accept',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xd8'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xbf'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')]('insertion:chain',_0x5920d5),this[_0x2c67('0x34')]['set'](_0x2c67('0x37'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')]('deletion:discard',_0x472c60),this[_0x2c67('0x34')]['set'](_0x2c67('0xc'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x137'),_0x5920d5),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x129'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatInline:discard',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xc0'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xb6'),_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x84'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatBlock:discard',_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x1d'),_0x5de969),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xcc'),_0x472c60);}}function _t(_0x3a8b63,_0x4087e0,_0x2bc9c7){for(const _0x4ef511 of _0x4087e0[_0x2c67('0x80')][_0x2c67('0xe4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4ef511[_0x2c67('0x42')]==_0x4ef511)return!0x1;if(!_0x2bc9c7['containsItem'](_0x4ef511))return!0x1;if(_0x3a8b63[_0x2c67('0xa')](_0x4ef511)||_0x3a8b63[_0x2c67('0x8')](_0x4ef511))return!0x0;}return!0x1;}function Mt(_0x2e842a){return _0x2e842a[_0x2c67('0xe7')][_0x2c67('0x80')]==_0x2e842a[_0x2c67('0x122')]['nodeAfter']&&_0x2e842a[_0x2c67('0xe7')]['isAtStart'];}function $t(_0x1a05dd,_0x1178b5,_0x95fcc2,_0x57a8c5){const _0x1c86be=_0x465f11=>!_0x465f11['item']['is']('$textProxy')&&!_0x57a8c5[_0x2c67('0xa')](_0x465f11[_0x2c67('0x12d')]),_0xfee2fe=_0x1a05dd[_0x2c67('0x122')]['getLastMatchingPosition'](_0x1c86be),_0x5e0770=_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0xa5')](_0x1c86be,{'direction':'backward'});return(!_0x1a05dd['start'][_0x2c67('0x30')](_0xfee2fe)||!_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0x30')](_0x5e0770))&&(_0xfee2fe[_0x2c67('0x67')](_0x5e0770)?_0x95fcc2['updateMarker'](_0x1178b5,{'range':_0x95fcc2[_0x2c67('0x10f')](_0xfee2fe,_0x5e0770)}):_0x95fcc2['removeMarker'](_0x1178b5),!0x0);}function Nt(_0x3d6a93){return _0x26d881(_0x3d6a93);}function Rt(_0x1df46f){const _0x539c67=_0x1df46f[_0x2c67('0x122')][_0x2c67('0xd0')];return _0x539c67&&_0x539c67['is']('element');}function jt(_0x53d36c,_0x3e46d3){const _0x1ea4db=_0x3e46d3['schema'][_0x2c67('0xa')](_0x53d36c)||_0x3e46d3['schema'][_0x2c67('0x58')](_0x53d36c);return _0x3e46d3[_0x2c67('0x10f')](_0x3e46d3[_0x2c67('0xa2')](_0x53d36c,'before'),_0x1ea4db?_0x3e46d3[_0x2c67('0x119')](_0x53d36c):_0x3e46d3['createPositionAt'](_0x53d36c,_0x2c67('0xe7')));}function xt(_0x4f4ebb,_0x285c57,_0xd6b060,_0xeac180,_0x4b041b){if(!Ut(_0x4f4ebb,_0x285c57))return!0x1;if(_0xd6b060['end']['isEqual'](_0xeac180[_0x2c67('0x122')]))return!0x0;if(_0x4f4ebb['type']!=_0x285c57[_0x2c67('0x3b')])return!0x1;if(!_0xd6b060[_0x2c67('0xe7')][_0x2c67('0xf6')](_0xeac180[_0x2c67('0x122')]))return!0x1;const _0x125a15=_0x4b041b[_0x2c67('0x10f')](_0xd6b060[_0x2c67('0xe7')],_0xeac180[_0x2c67('0x122')])['getWalker']();for(const _0x17b65f of _0x125a15)if([_0x2c67('0xa3'),_0x2c67('0x96')]['includes'](_0x17b65f['type'])&&_0x4b041b['schema']['isLimit'](_0x17b65f[_0x2c67('0x12d')]))return!0x1;return!0x0;}function Ut(_0x17a7ab,_0x479ee5){return!(!_0x17a7ab[_0x2c67('0x2')]||!_0x479ee5[_0x2c67('0x2')])&&_0x5960dc(_0x17a7ab[_0x2c67('0x5')],_0x479ee5['attributes']);}function Ot(_0x122854,_0x40e9c5){const _0x2bb542=Et(_0x122854[_0x2c67('0x5')]),_0xa0a19d=Et(_0x40e9c5);if(!_0x122854['_isDataLoaded'])return!0x1;for(const _0xa3e853 of Object['keys'](_0xa0a19d))if(!_0x5960dc(_0x2bb542[_0xa3e853],_0xa0a19d[_0xa3e853]))return!0x1;return!0x0;}function Et(_0x339fc3){const _0x54b321=Object[_0x2c67('0xc5')]({},_0x339fc3);return delete _0x54b321[_0x2c67('0x74')],delete _0x54b321[_0x2c67('0x120')],_0x54b321;}
|
|
23
|
+
const _0x17ef=['nodeAfter','for','open','Users','consume','formatBlock','enableCommand','isAfter','after','locale','markDeletion','size','markerNameToElements','createPositionBefore','highest','removeAttribute','editor','addMarkerName','_findSuggestions','_updateSuggestionData','addComment','discardSelectedSuggestions','name','formatInline:chain','change','setAttribute','change:activeMarkers','formatBlock:discard','suggestion:','next','acceptSelectedSuggestions','_addThreadToSuggestion','isBlock','_handleNewSuggestionMarker','getRange','$textProxy','containsRange','createPositionAt','markMultiRangeDeletion','creator','_saved','_refreshSuggestionsChain','isSelectable','isCollapsed','containerElement','updateMarker','writer','targetPosition','join','suggestionChanged','isAtEnd','keys','_isDataLoaded','previous','deletion','pluginName','_setSuggestionRange','setTo','removeMarkers','isMultiRange','reconvertMarker','getCommentThread','getAttribute','document','createSelection','getMultiRangeId','commentThread','conversion','plugins','ck-suggestion-marker--active','enqueueChange','type','addMarker:suggestion:formatBlock','value','_rangeIsInLocalUserInsertion','_cutOutSuggestionMarker','_getAuthorFromId','_adapter','set','insertion:','external:','from','track-changes-suggestion-data-mismatch','_isForcedDefaultExecutionBlock','change:data','TrackChangesEditing','consumable','markMultiRangeBlockFormat','ck-suggestion-marker-','PENDING_ACTION_SUGGESTION','length','root','accept','isRemovable','formatBlock:','dataReady','position','getIntersection','track-changes-user-not-found','addSuggestionData','has','ready','get','registerPostFixer','_joinSuggestions','_editor','_removeSuggestion','unbindElementFromMarkerName','commandName','suggestion','isInContent','formatInline:accept','splitPosition','getLastMatchingPosition','_joinWithAdjacentSuggestions','detach','execute','normal','markerReady','requires','addMarker:suggestion','_enabledCommands','formatInline:join','insert','element','updateSuggestion','_descriptionFactory','insertion','getAncestors','formatInline:','getAllAdjacentSuggestions','split','getChangedMarkers','_mergeNestedSuggestions','createPositionAfter','$graveyard','isInsideObject','removeClass','model','deletion:join','some','markers','hasCommentThread','_model','elementToElement','deletion:','multi','substr','forceDefaultExecution','addCommentThread','author','collaboration.channelId','ck-suggestion-marker-formatBlock','markerToHighlight','isExternal','discard','batch','_registerDefaultCallbacks','applyOperation','setSelection','isBefore','move','assign','define','_commentsRepository','trackChanges.mergeNestedSuggestions','chain','parent','sort','getNearestSelectionRange','getFirstMarker','delete','formatBlock:chain','unbind','removeMarker','values','subType','start','commands','range','editingDowncast','high','clear','discardAllSuggestions','schema','track-changes-suggestion-not-found','resolve','isIntersectingWithRange','suggestionUnloaded','nodeBefore','_createSuggestion','getSuggestion','widget','update:suggestion','_checkSuggestionCorrectness','getRanges','splice','_onDiscard','differ','documentSelection','createdAt','insertion:chain','_breakSuggestionMarker','acceptAllSuggestions','removed','deletion:chain','trackChangesCommand','_suggestionFactory','then','fire','fromCharCode','markInlineFormat','_defaultCallbacks','markerName','never','authoredAt','add','accepted','buildSuggestion','config','filter','discardSuggestion','trackChanges','enableReadOnlyMode','data-suggestion','rootName','isOwn','containsPosition','error-saving-suggestion-data-suggestion-discarded','_trackFormatChanges','before','addRange','getUser','trackChanges.trackFormatChanges','marker-count','addUser','getSuggestionCallback','getFirstRange','ck-suggestion-marker','PendingActions','upcast','deletion:discard','always','toJSON','options','data','every','default','addSuggestion','formatGroupId','markInsertion','activeMarkers','listenTo','getCustomProperty','markerToData','mapper','newRange','notReady','deleteContent','hasComments','_splitMarkerName','_customCallbacks','return','lowest','showSuggestionHighlights','_getExternalAuthor','skipNestingCheck','head','editing','elementStart','createRange','bindElementToMarker','backward','includes','CommentsRepository','push','oldRange','containsRangeInObject','fromRange','_suggestionState','acceptSuggestion','catch','_setSuggestionData','insertion:accept','group','toViewElement','_getSuggestionData','end','rejected','multipleBlocks','formatInline','getSuggestions','isLimit','getDifference','suggestion-type','getItems','addMarker','isUndo','insertContent','adapter','dataToMarker','attributes','item','addHighlight','originalSuggestionId','_suggestions','isEqual','isNextTo','_addSuggestionMarker','map','addClass','selection','clone','moveTargetPosition','isObject','createRangeIn','stop'];(function(_0x32532c,_0x17ef96){const _0x5a4883=function(_0x110c51){while(--_0x110c51){_0x32532c['push'](_0x32532c['shift']());}};_0x5a4883(++_0x17ef96);}(_0x17ef,0x137));const _0x5a48=function(_0x32532c,_0x17ef96){_0x32532c=_0x32532c-0x0;let _0x5a4883=_0x17ef[_0x32532c];return _0x5a4883;};import{Plugin as _0x504f26,PendingActions as _0x49ee35}from'ckeditor5/src/core';import{LiveRange as _0x5e64e8}from'ckeditor5/src/engine';import{CKEditorError as _0x5c539a,uid as _0x31bd95,priorities as _0x378540,logWarning as _0x11dcbb}from'ckeditor5/src/utils';import{toWidget as _0x1eb6a8}from'ckeditor5/src/widget';import{Users as _0xe8ccfe,hashObject as _0x295668}from'ckeditor5-collaboration/src/collaboration-core';import _0x3aba37 from'./commands/trackchangescommand';import _0x12c8df from'./commands/acceptsuggestioncommand';import _0x9d033d from'./commands/discardsuggestioncommand';import _0x49a461 from'./commands/executeonallsuggestionscommand';import _0x129bce from'./commands/executeonselectedsuggestionscommand';import _0x37847a from'./suggestion';import _0x4eb6e0 from'./suggestiondescriptionfactory';import _0x36ab08 from'./integrations/aiassistant';import _0x3fef86 from'./integrations/alignment';import _0x42fca0 from'./integrations/basicstyles';import _0x4497fa from'./integrations/blockquote';import _0x5c8325 from'./integrations/ckbox';import _0x9496c from'./integrations/codeblock';import _0xecf40c from'./integrations/comments';import _0x1d5828 from'./integrations/deletecommand';import _0x2a98b2 from'./integrations/documentlist';import _0x4ae6cd from'./integrations/entercommand';import _0x1cbfbe from'./integrations/findandreplace';import _0x5c99c4 from'./integrations/font';import _0x6278eb from'./integrations/formatpainter';import _0x4ec177 from'./integrations/heading';import _0x44b3ac from'./integrations/highlight';import _0x29322f from'./integrations/horizontalline';import _0x50b797 from'./integrations/htmlembed';import _0x3913cf from'./integrations/image';import _0x275a48 from'./integrations/imagereplace';import _0x3da159 from'./integrations/importword';import _0x3b317e from'./integrations/indent';import _0x4de56b from'./integrations/inputcommand';import _0x4c451f from'./integrations/link';import _0x3608d5 from'./integrations/list';import _0x6edbf from'./integrations/listproperties';import _0x19238b from'./integrations/mediaembed';import _0x2ae4ac from'./integrations/mention';import _0x1425f4 from'./integrations/pagebreak';import _0x1b185c from'./integrations/paragraph';import _0xda6317 from'./integrations/removeformat';import _0x500530 from'./integrations/restrictededitingmode';import _0x1dd429 from'./integrations/shiftentercommand';import _0x5e9708 from'./integrations/standardeditingmode';import _0x53cab4 from'./integrations/style';import _0xb4de4 from'./integrations/table';import _0x5beefe from'./integrations/tablemergesplit';import _0x254c38 from'./integrations/tableheadings';import _0x38593e from'./integrations/tableclipboard';import _0xba6c3b from'./integrations/tablecolumnresize';import _0x344dd5 from'./integrations/template';import _0x559a31 from'./integrations/tableofcontents';import _0x5d77e5 from'./integrations/title';import _0x356766 from'./integrations/undo';import{getTranslation as _0x7186cc}from'./utils/common-translations';import _0x4b0305 from'./integrations/tablecaption';import _0x833af7 from'./integrations/documentlistproperties';import _0x2ffd8c from'./integrations/tableproperties';import{isEqual as _0x5c3132}from'lodash-es';export default class p extends _0x504f26{static get[_0x5a48('0x7d')](){return['CommentsRepository',_0xe8ccfe,_0x49ee35,_0x36ab08,_0x3fef86,_0x42fca0,_0x4497fa,_0x5c8325,_0x9496c,_0xecf40c,_0x1d5828,_0x2a98b2,_0x833af7,_0x4ae6cd,_0x1cbfbe,_0x5c99c4,_0x6278eb,_0x4ec177,_0x44b3ac,_0x29322f,_0x50b797,_0x3913cf,_0x275a48,_0x3da159,_0x3b317e,_0x4de56b,_0x4c451f,_0x3608d5,_0x6edbf,_0x19238b,_0x2ae4ac,_0x1425f4,_0x1b185c,_0xda6317,_0x500530,_0x1dd429,_0x5e9708,_0x53cab4,_0xb4de4,_0x5beefe,_0x254c38,_0x4b0305,_0x38593e,_0xba6c3b,_0x559a31,_0x2ffd8c,_0x344dd5,_0x5d77e5,_0x356766];}static get[_0x5a48('0x3d')](){return _0x5a48('0x5b');}constructor(_0x280382){function _0x2a67f8(_0x5b9190){return _0x5b9190['map'](_0x48c357=>String[_0x5a48('0xd8')](_0x48c357))[_0x5a48('0x36')]('');}super(_0x280382),this[_0x5a48('0x54')]('activeMarkers',[]),this['on'](_0x5a48('0x20'),(_0x28a572,_0x143de6,_0x579178,_0x4887f7)=>{this[_0x5a48('0x95')][_0x5a48('0x1e')](()=>{for(const _0x5734ed of[..._0x4887f7,..._0x579178])this[_0x5a48('0x95')][_0x5a48('0x93')]['has'](_0x5734ed)&&_0x280382[_0x5a48('0x112')][_0x5a48('0x42')](_0x5734ed);});}),this[_0x5a48('0x84')]=new _0x4eb6e0(this[_0x5a48('0x16')][_0x5a48('0x90')][_0x5a48('0xbe')],this[_0x5a48('0x16')][_0x5a48('0xf')]),this['_adapter']=null,this[_0x5a48('0xd5')]=new Bt(this['editor']),this[_0x5a48('0x137')]=new Map(),this[_0x5a48('0xaa')]=_0x280382[_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x118')),this[_0x5a48('0x7f')]=new Set(),this[_0x5a48('0x95')]=this[_0x5a48('0x16')][_0x5a48('0x90')],this['_suggestionState']=new WeakMap(),this[_0x5a48('0x59')]=!0x1,_0x280382[_0x5a48('0xe1')][_0x5a48('0xa9')](_0x5a48('0xef'),_0x5a48('0xfd')),this[_0x5a48('0xeb')]=_0x280382[_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0xef')),_0x280382['config']['define'](_0x5a48('0xab'),!0x0),this['_mergeNestedSuggestions']=_0x280382[_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0xab')),this['trackChangesCommand']=new _0x3aba37(_0x280382,this['_enabledCommands']),this[_0x2a67f8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2a67f8([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x36]);}['init'](){const _0x10d3d3=this[_0x5a48('0x16')];_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xba'))[_0x5a48('0x9f')]({'model':_0x5a48('0x73'),'view':_0x5bb0d0=>{const {id:_0x424342,type:_0x22ca16}=this[_0x5a48('0x10a')](_0x5bb0d0[_0x5a48('0xdb')]),_0x1be485=[_0x5a48('0xf4'),_0x5a48('0x5e')+_0x22ca16];let _0xb5f7c8=0xbb8;return this['activeMarkers'][_0x5a48('0x117')](_0x5bb0d0['markerName'])&&(_0x1be485['push']('ck-suggestion-marker--active'),_0xb5f7c8=0xbc2),_0x5a48('0x3c')==_0x22ca16&&(_0xb5f7c8+=0x5),{'classes':_0x1be485,'attributes':{'data-suggestion':_0x424342},'priority':_0xb5f7c8};}}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')[_0x5a48('0xde')](_0xb1f99f=>{_0xb1f99f['on'](_0x5a48('0x7e'),(_0x51db48,_0x5d7331,_0x164ddc)=>{if(!_0x164ddc['options'][_0x5a48('0x10e')])return;const _0x48d62e=_0x5d7331[_0x5a48('0x134')];if(!_0x48d62e)return;const _0x4d39f7=_0x164ddc['mapper'][_0x5a48('0x123')](_0x48d62e);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0xbe')]['isObject'](_0x48d62e)&&_0x4d39f7&&!_0x4d39f7[_0x5a48('0x103')](_0x5a48('0xc6'))&&_0x4d39f7['is'](_0x5a48('0x32'))&&_0x1eb6a8(_0x4d39f7,_0x164ddc[_0x5a48('0x34')]);},{'priority':_0x5a48('0xbb')});}),_0x10d3d3[_0x5a48('0x49')]['for']('dataDowncast')[_0x5a48('0x9f')]({'model':'suggestion','view':(_0x23e2cf,_0x34b10b)=>{if(!_0x34b10b[_0x5a48('0xfa')][_0x5a48('0x10e')])return null;const {type:_0xbba47}=this[_0x5a48('0x10a')](_0x23e2cf['markerName']);return{'classes':[_0x5a48('0xf4'),_0x5a48('0x5e')+_0xbba47],'priority':0xbb8};}});const _0x2685ef=({showActiveMarkers:_0x27b3d3=!0x0}={})=>(_0x3c1de1,_0x567307,_0x201b11)=>{if(!_0x567307[_0x5a48('0x134')])return;if(_0x567307[_0x5a48('0x134')]['is']('selection'))return void _0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x567307['item'],_0x3c1de1[_0x5a48('0x1c')]);const _0x1661a3=_0x201b11['mapper'][_0x5a48('0x123')](_0x567307[_0x5a48('0x134')]);if(!(_0x567307[_0x5a48('0x134')]['is'](_0x5a48('0x82'))&&_0x10d3d3[_0x5a48('0x90')][_0x5a48('0xbe')][_0x5a48('0x26')](_0x567307[_0x5a48('0x134')])&&!_0x1661a3[_0x5a48('0x103')]('addHighlight')))return;const {id:_0x1ea636}=this[_0x5a48('0x10a')](_0x567307[_0x5a48('0xdb')]);_0x201b11['writer'][_0x5a48('0x13c')]([_0x5a48('0xf4'),_0x5a48('0x9e')],_0x1661a3),_0x201b11[_0x5a48('0x34')][_0x5a48('0x1f')](_0x5a48('0xe6'),_0x1ea636,_0x1661a3),_0x201b11[_0x5a48('0x105')][_0x5a48('0x115')](_0x1661a3,_0x567307[_0x5a48('0xdb')]),_0x27b3d3&&(this[_0x5a48('0x101')][_0x5a48('0x117')](_0x567307[_0x5a48('0xdb')])?_0x201b11[_0x5a48('0x34')][_0x5a48('0x13c')](_0x5a48('0x4b'),_0x1661a3):_0x201b11[_0x5a48('0x34')][_0x5a48('0x8f')](_0x5a48('0x4b'),_0x1661a3));for(const _0x5b9bf9 of _0x10d3d3[_0x5a48('0x90')][_0x5a48('0x4')](_0x567307['item'])[_0x5a48('0x12d')]())_0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x5b9bf9,_0x3c1de1[_0x5a48('0x1c')]);_0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x567307[_0x5a48('0x134')],_0x3c1de1[_0x5a48('0x1c')]);};_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')['add'](_0x16e874=>{_0x16e874['on']('addMarker:suggestion:formatBlock',(_0x2b34c3,_0x557e65,_0x3a29e7)=>{_0x3a29e7[_0x5a48('0xfa')][_0x5a48('0x10e')]&&_0x2685ef({'showActiveMarkers':!0x1})(_0x2b34c3,_0x557e65,_0x3a29e7);},{'priority':_0x5a48('0x14')});}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')[_0x5a48('0x104')]({'model':_0x5a48('0x73'),'view':(_0x16e469,_0x3225ea)=>_0x3225ea[_0x5a48('0xfa')][_0x5a48('0x10e')]?null:{'group':_0x5a48('0x73'),'name':_0x16e469[_0x5a48('0x99')](0xb)}}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xf6'))[_0x5a48('0x96')]({'view':{'name':_0x5a48('0x73'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xfadfaa,{writer:_0x4beab7})=>{let _0x571740=_0x5a48('0x22')+_0xfadfaa[_0x5a48('0x44')](_0x5a48('0x12c'))+':'+_0xfadfaa[_0x5a48('0x44')]('id');return _0xfadfaa[_0x5a48('0x44')](_0x5a48('0xf0'))&&(_0x571740+=':'+_0xfadfaa['getAttribute'](_0x5a48('0xf0'))),_0x4beab7['createElement']('$marker',{'data-name':_0x571740});}}),_0x10d3d3[_0x5a48('0x49')]['for']('upcast')[_0x5a48('0x132')]({'view':'suggestion'}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xba'))[_0x5a48('0xde')](_0x5c1abd=>{_0x5c1abd['on'](_0x5a48('0x4e'),_0x2685ef(),{'priority':'high'});}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('editingDowncast')[_0x5a48('0xde')](_0x3ebc99=>{_0x3ebc99['on']('removeMarker:suggestion:formatBlock',(_0x59b26e,_0x462f49,_0x27ac9d)=>{const _0x172633=_0x27ac9d[_0x5a48('0x105')][_0x5a48('0x12')](_0x462f49['markerName']);if(_0x172633)for(const _0x543550 of _0x172633)_0x543550[_0x5a48('0x103')](_0x5a48('0x135'))||(_0x27ac9d[_0x5a48('0x34')][_0x5a48('0x8f')]([_0x5a48('0xf4'),_0x5a48('0x9e'),_0x5a48('0x4b')],_0x543550),_0x27ac9d[_0x5a48('0x34')][_0x5a48('0x15')](_0x5a48('0xe6'),_0x543550),_0x27ac9d[_0x5a48('0x105')][_0x5a48('0x71')](_0x543550,_0x462f49[_0x5a48('0xdb')]));},{'priority':'high'});}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')][_0x5a48('0x6d')](_0x194a31=>{let _0x39883f=!0x1;const _0x5455e0=Array[_0x5a48('0x57')](_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')][_0x5a48('0xcc')][_0x5a48('0x8a')]()),_0x5bdae9=new Set();for(const {name:_0xdf826b,data:_0x2cf670}of _0x5455e0){const {group:_0x2d6756,type:_0x1f6754,id:_0x54cc5c}=this[_0x5a48('0x10a')](_0xdf826b);if('suggestion'!==_0x2d6756)continue;const _0x4e6b9d=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x54cc5c);if(null!=_0x2cf670[_0x5a48('0x106')]){_0x5a48('0x128')==_0x1f6754&&(_0x39883f=_0x39883f||$t(_0x2cf670['newRange'],_0xdf826b,_0x194a31,_0x10d3d3[_0x5a48('0x90')]['schema']));if(_0x2cf670[_0x5a48('0x106')][_0x5a48('0x31')]||_0x5a48('0x8d')==_0x2cf670['newRange'][_0x5a48('0x61')]['rootName']||_0x5a48('0xb')==_0x1f6754&&!Rt(_0x2cf670[_0x5a48('0x106')])||'deletion'==_0x1f6754&&!(!Mt(_0x5c32fd=_0x2cf670[_0x5a48('0x106')])&&!function(_0x2bc0c9){return _0x2bc0c9[_0x5a48('0xb7')][_0x5a48('0xad')]==_0x2bc0c9[_0x5a48('0x125')][_0x5a48('0xc3')]&&_0x2bc0c9[_0x5a48('0xb7')][_0x5a48('0x38')];}(_0x5c32fd)))_0x194a31[_0x5a48('0xb4')](_0xdf826b),_0x39883f=!0x0;else{if(!_0x4e6b9d||!_0x4e6b9d['isInContent'])continue;_0x5bdae9['add'](_0x4e6b9d);}}}var _0x5c32fd;return _0x5bdae9['size']>0x0&&(_0x39883f=!!this[_0x5a48('0x78')](_0x5bdae9)||_0x39883f),_0x39883f;}),_0x10d3d3['model'][_0x5a48('0x45')]['registerPostFixer'](_0x42ab03=>{let _0x5d551e=!0x1;for(const _0x5cd128 of _0x10d3d3['model'][_0x5a48('0x45')][_0x5a48('0xcc')]['getChanges']()){if(_0x5a48('0x81')!=_0x5cd128[_0x5a48('0x4d')])continue;const _0x23a025=_0x5cd128[_0x5a48('0x66')]['getShiftedBy'](_0x5cd128[_0x5a48('0x60')]);if(_0x23a025['isAtEnd'])for(const _0x176e38 of this[_0x5a48('0x137')][_0x5a48('0xb5')]()){if(_0x176e38[_0x5a48('0x41')]||!_0x176e38[_0x5a48('0x74')])continue;if(_0x5a48('0xb')!=_0x176e38[_0x5a48('0x4d')])continue;const _0x1325ea=_0x176e38[_0x5a48('0xf3')]();if(_0x1325ea[_0x5a48('0xb7')]['parent']!=_0x1325ea[_0x5a48('0x125')][_0x5a48('0xad')]&&_0x1325ea[_0x5a48('0x125')][_0x5a48('0x138')](_0x5cd128[_0x5a48('0x66')])){const _0x4c0e41=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x1325ea[_0x5a48('0xb7')],_0x23a025);_0x42ab03[_0x5a48('0x33')](_0x176e38['getFirstMarker'](),{'range':_0x4c0e41}),_0x5d551e=!0x0;}}}return _0x5d551e;}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x93')]['on'](_0x5a48('0xc7'),(_0x490ea9,_0x489bac,_0x3bedeb)=>{if(null==_0x3bedeb){const {id:_0x8e587a}=this[_0x5a48('0x10a')](_0x489bac[_0x5a48('0x1c')]),_0x201b2c=this[_0x5a48('0x137')]['get'](_0x8e587a);_0x201b2c&&_0x201b2c[_0x5a48('0x17')](_0x489bac[_0x5a48('0x1c')]);}}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')]['on'](_0x5a48('0x5a'),()=>{const _0x3c071d=Array['from'](_0x10d3d3['model'][_0x5a48('0x45')][_0x5a48('0xcc')]['getChangedMarkers']())['filter'](_0x586820=>_0x5a48('0x73')===this[_0x5a48('0x10a')](_0x586820['name'])[_0x5a48('0x122')]);if(0x0===_0x3c071d[_0x5a48('0x60')])return;_0x3c071d[_0x5a48('0xae')]((_0x2fcc73,_0x2d62e4)=>{const _0x309244=_0x2fcc73[_0x5a48('0xfb')][_0x5a48('0x11a')],_0xec2a54=_0x2d62e4[_0x5a48('0xfb')][_0x5a48('0x11a')];return null===_0x309244&&null===_0xec2a54?0x0:null===_0x309244&&null!==_0xec2a54?-0x1:null!==_0x309244&&null===_0xec2a54?0x1:_0x309244[_0x5a48('0xb7')][_0x5a48('0xa6')](_0xec2a54[_0x5a48('0xb7')])?-0x1:0x1;});const _0x6fad4b=new Set(),_0x386dce=new Set();for(const {name:_0x303b44,data:_0x47c0b7}of _0x3c071d){const {id:_0x1e834f}=this[_0x5a48('0x10a')](_0x303b44);if(null===_0x47c0b7[_0x5a48('0x11a')]){const _0x397d90=this[_0x5a48('0x27')](_0x303b44);_0x386dce['add'](_0x397d90);}else{const _0x5065c4=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x1e834f);null!==_0x47c0b7['newRange']||_0x5065c4[_0x5a48('0x74')]?(_0x6fad4b[_0x5a48('0xde')](_0x5065c4[_0x5a48('0x111')]),_0x386dce[_0x5a48('0xde')](_0x5065c4)):this[_0x5a48('0x70')](_0x5065c4);}}_0x386dce[_0x5a48('0x11')]>0x0&&this[_0x5a48('0x2f')](_0x386dce);for(const _0x5111fa of _0x6fad4b)this['fire'](_0x5a48('0x37'),_0x5111fa);}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0xa4'),(_0x1c9c5f,_0xa9c7c9)=>{const _0x1722b9=_0xa9c7c9[0x0];if(!this[_0x5a48('0x137')]['size'])return;if(!_0x1722b9['isDocumentOperation'])return;if(_0x1722b9[_0x5a48('0xa2')][_0x5a48('0x12f')]||!_0x1722b9[_0x5a48('0xa2')]['isLocal'])return;let _0x565523,_0x25b031;switch(_0x1722b9[_0x5a48('0x4d')]){case _0x5a48('0x81'):_0x565523=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x66')]),_0x25b031=_0x565523['getShiftedBy'](_0x1722b9['howMany']);break;case _0x5a48('0x89'):_0x565523=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x76')]),_0x25b031=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x2')]);break;case _0x5a48('0xa7'):_0x565523=_0x10d3d3[_0x5a48('0x90')]['createPositionAt'](_0x1722b9[_0x5a48('0x35')]),_0x25b031=_0x565523['getShiftedBy'](_0x1722b9['howMany']);break;default:return;}const _0x4d1a66=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x565523,_0x25b031);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](()=>{for(const {suggestion:_0x1969e3,meta:_0x53ad43}of this['_findSuggestions'](_0x4d1a66)){if(_0x1969e3[_0x5a48('0x41')])continue;if('formatInline'==_0x1969e3[_0x5a48('0x4d')])continue;const _0x37baca=_0x1969e3[_0x5a48('0xfb')]&&_0x1969e3['data'][_0x5a48('0x127')];(_0x5a48('0xb')!=_0x1969e3[_0x5a48('0x4d')]||'split'==_0x1722b9[_0x5a48('0x4d')]&&!_0x37baca)&&(_0x53ad43[_0x5a48('0x11b')]||_0x5a48('0x85')==_0x1969e3[_0x5a48('0x4d')]&&_0x53ad43[_0x5a48('0xe8')]||_0x1969e3[_0x5a48('0xf3')]()[_0x5a48('0x2a')](_0x4d1a66)&&this[_0x5a48('0xd0')](_0x1969e3,_0x565523,_0x25b031));}});},{'priority':_0x5a48('0x10d')}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0x108'),(_0x23f106,_0x570d58)=>{const _0x572661=_0x570d58[0x0],_0x2a42c1=_0x570d58[0x1];if(_0x2a42c1&&_0x2a42c1[_0x5a48('0x9a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5a48('0xd4')][_0x5a48('0x4f')])return;if(_0x572661[_0x5a48('0x31')])return;const _0x4a36bf=_0x10d3d3['model'][_0x5a48('0xbe')],{start:_0x5cc586,end:_0x25b777}=_0x572661['getFirstRange'](),_0x492b7c=_0x5cc586[_0x5a48('0x6')]&&_0x4a36bf[_0x5a48('0x12a')](_0x5cc586['nodeAfter'])?null:_0x4a36bf[_0x5a48('0xaf')](_0x5cc586,'forward'),_0x23cd1=_0x25b777[_0x5a48('0xc3')]&&_0x4a36bf['isLimit'](_0x25b777[_0x5a48('0xc3')])?null:_0x4a36bf[_0x5a48('0xaf')](_0x25b777,_0x5a48('0x116')),_0x29453b=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x492b7c?_0x492b7c[_0x5a48('0xb7')]:_0x5cc586,_0x23cd1?_0x23cd1['end']:_0x25b777);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](_0x4d0858=>{this[_0x5a48('0x10')](_0x29453b);const _0x3dfaf1=_0x10d3d3['model'][_0x5a48('0xbe')][_0x5a48('0xaf')](_0x29453b['start']);_0x572661['is'](_0x5a48('0xcd'))?_0x4d0858[_0x5a48('0xa5')](_0x3dfaf1):_0x572661[_0x5a48('0x3f')](_0x3dfaf1);}),_0x23f106[_0x5a48('0x5')]();},{'priority':_0x378540[_0x5a48('0x7b')]+0xa}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0x130'),(_0x410c27,_0x5c05d0)=>{const _0x13eec5=_0x5c05d0[_0x5c05d0['length']-0x1];_0x13eec5&&_0x13eec5['forceDefaultExecution']||this[_0x5a48('0x59')]||this[_0x5a48('0xd4')]['value']&&(_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](()=>{let _0x3ce1fc=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x130')](_0x5c05d0[0x0],_0x5c05d0[0x1],_0x5c05d0[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ce1fc)return;_0x410c27[_0x5a48('0x10c')]=_0x3ce1fc[_0x5a48('0x1')]();const _0x32428e=_0x3ce1fc[_0x5a48('0x125')][_0x5a48('0xc3')],_0x48b30f=_0x10d3d3['model'][_0x5a48('0xbe')];_0x32428e&&_0x48b30f[_0x5a48('0x26')](_0x32428e)&&!_0x48b30f['isObject'](_0x32428e)&&(_0x3ce1fc=_0x10d3d3['model'][_0x5a48('0x114')](_0x3ce1fc[_0x5a48('0xb7')],_0x10d3d3[_0x5a48('0x90')]['createPositionAt'](_0x32428e,'end'))),this[_0x5a48('0x100')](_0x3ce1fc);}),_0x410c27[_0x5a48('0x5')]());},{'priority':_0x5a48('0xbb')}),this[_0x5a48('0x16')]['commands'][_0x5a48('0xde')](_0x5a48('0xe4'),this['trackChangesCommand']),this[_0x5a48('0xc')](_0x5a48('0xe4'));const _0x353190=new _0x12c8df(_0x10d3d3,this[_0x5a48('0x137')]);_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0x11e'),_0x353190),this['enableCommand'](_0x5a48('0x11e'));const _0x29030e=new _0x9d033d(_0x10d3d3,this[_0x5a48('0x137')]);_0x10d3d3[_0x5a48('0xb8')]['add'](_0x5a48('0xe3'),_0x29030e),this[_0x5a48('0xc')](_0x5a48('0xe3')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')]('acceptAllSuggestions',new _0x49a461(_0x10d3d3,_0x353190,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0xd1')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0xbd'),new _0x49a461(_0x10d3d3,_0x29030e,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0xbd')),_0x10d3d3['commands'][_0x5a48('0xde')](_0x5a48('0x24'),new _0x129bce(_0x10d3d3,_0x353190,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0x24')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0x1b'),new _0x129bce(_0x10d3d3,_0x29030e,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0x1b'));const _0x2ff9eb=_0x10d3d3['plugins']['get'](_0x5a48('0x118'));this[_0x5a48('0x102')](_0x2ff9eb,_0x5a48('0x1a'),(_0x512008,{threadId:_0x3a99df})=>{const _0x250dbd=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x3a99df);_0x250dbd&&_0x250dbd[_0x5a48('0x48')]&&0x1===_0x250dbd[_0x5a48('0x48')][_0x5a48('0x60')]&&this[_0x5a48('0x19')](_0x3a99df,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ff9eb,'removeComment',(_0x3123d1,{threadId:_0x5c7de4})=>{const _0x17003b=this[_0x5a48('0x137')]['get'](_0x5c7de4);_0x17003b&&_0x17003b['commentThread']&&!_0x17003b[_0x5a48('0x48')][_0x5a48('0x60')]&&this[_0x5a48('0x19')](_0x5c7de4,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5a48('0x131')](_0x273f98){if(this['_adapter'])throw new _0x5c539a('track-changes-adapter-already-set',this);this[_0x5a48('0x53')]=_0x273f98;}get[_0x5a48('0x131')](){return this[_0x5a48('0x53')];}['getSuggestions']({skipNotAttached:_0x43ec57=!0x1,toJSON:_0x40b909=!0x1}={}){const _0x19624e=[];for(const _0xd8db6f of this['_suggestions'][_0x5a48('0xb5')]())_0x43ec57&&!_0xd8db6f['isInContent']||_0x19624e['push'](_0xd8db6f);return _0x40b909?_0x19624e[_0x5a48('0x13b')](_0x2a71ac=>_0x2a71ac[_0x5a48('0xf9')]()):_0x19624e;}[_0x5a48('0xc5')](_0x14463a){const _0x19ba74=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x14463a);if(!_0x19ba74)throw new _0x5c539a(_0x5a48('0xbf'),this);return _0x19ba74;}['hasSuggestion'](_0x22b098){return this[_0x5a48('0x137')][_0x5a48('0x6a')](_0x22b098);}['addSuggestionData'](_0x49635f){const {authorId:_0x47684a,id:_0x3aefe4,attributes:_0x383406}=_0x49635f,[_0x427389,_0x5ce12a]=_0x49635f[_0x5a48('0x4d')][_0x5a48('0x89')](':'),_0x42373b=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x3aefe4)||this[_0x5a48('0xc4')](_0x427389,_0x5ce12a,_0x3aefe4,_0x47684a,_0x383406);if(this[_0x5a48('0x25')](_0x42373b),this[_0x5a48('0xc8')](_0x42373b,_0x427389,_0x5ce12a||null,_0x47684a),_0x42373b['createdAt']=_0x49635f[_0x5a48('0xce')],_0x42373b[_0x5a48('0x3a')]=!0x0,_0x383406&&_0x383406['@external']){const _0x10bd06=_0x383406['@external'],_0x1cb979=this['_getExternalAuthor'](_0x10bd06['authorName']);_0x42373b[_0x5a48('0xdd')]=_0x10bd06['createdAt'],_0x42373b[_0x5a48('0x9c')]=_0x1cb979,_0x42373b[_0x5a48('0xa0')]=!0x0;}else _0x42373b[_0x5a48('0xdd')]=_0x49635f[_0x5a48('0xce')];switch(_0x49635f[_0x5a48('0xfb')]&&(_0x42373b[_0x5a48('0xfb')]=_0x49635f[_0x5a48('0xfb')]),_0x49635f[_0x5a48('0x133')]&&(_0x42373b[_0x5a48('0x133')]=_0x49635f[_0x5a48('0x133')]),this[_0x5a48('0x53')]&&this['_adapter']['addSuggestion']||(_0x42373b['_saved']=!0x0),this['_suggestionState'][_0x5a48('0x6c')](_0x42373b)){case _0x5a48('0x107'):this[_0x5a48('0x11d')]['set'](_0x42373b,'dataReady');break;case _0x5a48('0x7c'):_0x42373b[_0x5a48('0x74')]?(this['_refreshSuggestionsChain'](new Set([_0x42373b])),this['_joinWithAdjacentSuggestions'](new Set([_0x42373b])),this['_suggestionState'][_0x5a48('0x54')](_0x42373b,_0x5a48('0x6b')),this[_0x5a48('0xd7')]('suggestionLoaded',_0x42373b)):this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x42373b,_0x5a48('0xd2'));}return _0x42373b;}['acceptSuggestion'](_0x464aa1){this[_0x5a48('0x9a')](()=>{this[_0x5a48('0x16')]['model']['change'](()=>{for(const _0x984e0f of _0x464aa1['getAllAdjacentSuggestions']())_0x984e0f[_0x5a48('0x62')]();});});}[_0x5a48('0xe3')](_0x3c9a82){this[_0x5a48('0x9a')](()=>{this['editor']['model'][_0x5a48('0x1e')](()=>{for(const _0x1c2c8b of _0x3c9a82[_0x5a48('0x88')]())_0x1c2c8b[_0x5a48('0xa1')]();});});}['enableCommand'](_0x55944b,_0x13365f){const _0x1734cb=this[_0x5a48('0x16')][_0x5a48('0xb8')][_0x5a48('0x6c')](_0x55944b);if(!_0x1734cb)throw new _0x5c539a('track-changes-command-not-found',this,{'commandName':_0x55944b});this[_0x5a48('0x7f')][_0x5a48('0xde')](_0x1734cb),_0x13365f&&_0x1734cb['on'](_0x5a48('0x7a'),(_0x45fe88,_0x470a71)=>{this['trackChangesCommand'][_0x5a48('0x4f')]&&(this[_0x5a48('0x59')]||_0x470a71[_0x5a48('0x60')]>0x0&&_0x470a71[_0x470a71[_0x5a48('0x60')]-0x1]&&_0x470a71[_0x470a71[_0x5a48('0x60')]-0x1][_0x5a48('0x9a')]||(_0x45fe88[_0x5a48('0x10c')]=_0x13365f((..._0x937404)=>_0x1734cb[_0x5a48('0x7a')](..._0x937404,{'forceDefaultExecution':!0x0}),..._0x470a71),_0x45fe88[_0x5a48('0x5')]()));},{'priority':_0x5a48('0xbb')});}[_0x5a48('0x9a')](_0x765874){let _0x28ab38,_0x3bb980;const _0x4260dd=this[_0x5a48('0x59')];this[_0x5a48('0x59')]=!0x0;try{_0x28ab38=_0x765874();}catch(_0x321372){_0x3bb980=_0x321372;}return _0x4260dd||(this[_0x5a48('0x59')]=!0x1),_0x3bb980&&_0x5c539a['rethrowUnexpectedError'](_0x3bb980,this),_0x28ab38;}[_0x5a48('0x100')](_0x2e5593,_0x3f956b=null,_0x33f64d={}){if(_0x2e5593[_0x5a48('0x31')])return null;const _0x195b7e=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'];for(const {suggestion:_0x53fb9a,meta:_0x55304f}of this[_0x5a48('0x18')](_0x2e5593,_0x5a48('0x85')))if(_0x55304f[_0x5a48('0xe8')]){if(!_0x55304f[_0x5a48('0x139')]){if(_0x55304f['containsRangeInObject']){if(!this[_0x5a48('0x8b')]||!Ot(_0x53fb9a,_0x33f64d))continue;return _0x53fb9a;}if(Ot(_0x53fb9a,_0x33f64d))return _0x53fb9a;this[_0x5a48('0xd0')](_0x53fb9a,_0x2e5593[_0x5a48('0xb7')],_0x2e5593['end']);break;}if(_0x3f956b==_0x53fb9a['subType']&&Ot(_0x53fb9a,_0x33f64d)){const _0x353edf=_0x53fb9a['getFirstRange']();return _0x353edf[_0x5a48('0xb7')]['isEqual'](_0x2e5593[_0x5a48('0x125')])?this['_setSuggestionRange'](_0x53fb9a,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x2e5593[_0x5a48('0xb7')],_0x353edf[_0x5a48('0x125')])):this['_setSuggestionRange'](_0x53fb9a,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x353edf['start'],_0x2e5593[_0x5a48('0x125')])),_0x53fb9a;}}const _0x5daf0a=_0x31bd95(),_0xf3ab16=_0x195b7e['id'],_0x3d39c1=_0x3f956b?'insertion:'+_0x3f956b:_0x5a48('0x85'),_0x5d6909=this[_0x5a48('0x120')]({'id':_0x5daf0a,'type':_0x3d39c1,'createdAt':new Date(),'authorId':_0xf3ab16,'attributes':_0x33f64d});return this[_0x5a48('0x13a')](_0x3d39c1,_0x5daf0a,_0xf3ab16,_0x2e5593),_0x5d6909;}['markMultiRangeInsertion'](_0x49d99c,_0x52a711=_0x5a48('0x98'),_0x4ce54e={}){const _0x165320=this['editor'][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x2712a1=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0x85'),_0x52a711,_0x5a48('0x36'));for(const _0xc0845f of this[_0x5a48('0x129')]())if(_0xc0845f[_0x5a48('0x9c')]['id']==_0x165320['id']&&_0x5a48('0x85')==_0xc0845f['type']&&_0xc0845f['subType']==_0x52a711&&Ot(_0xc0845f,_0x4ce54e)&&(_0x2712a1(_0xc0845f[_0x5a48('0xc9')](),_0x49d99c)||_0x2712a1(_0x49d99c,_0xc0845f[_0x5a48('0xc9')]()))){for(const _0x20cf1f of _0x49d99c)_0xc0845f['addRange'](_0x20cf1f);return _0xc0845f;}for(const {suggestion:_0x80e9ec,meta:_0x2f1797}of this[_0x5a48('0x18')](_0x49d99c,_0x5a48('0x85'))){if(!_0x2f1797['isOwn'])continue;if(!this[_0x5a48('0x8b')]&&_0x2f1797[_0x5a48('0x11b')])continue;if(!Ot(_0x80e9ec,_0x4ce54e))continue;let _0x2eab8c=!0x0;for(const _0x41b4aa of _0x80e9ec[_0x5a48('0xc9')]())for(const _0x26182b of _0x49d99c)if(!_0x41b4aa['containsRange'](_0x26182b)){_0x2eab8c=!0x1;break;}if(_0x2eab8c)return _0x80e9ec;}const _0x454c1b=_0x31bd95(),_0x4b265a=_0x165320['id'],_0x27ac66=_0x5a48('0x55')+_0x52a711,_0x437f60=this[_0x5a48('0x120')]({'id':_0x454c1b,'type':_0x27ac66,'createdAt':new Date(),'authorId':_0x4b265a,'attributes':_0x4ce54e});for(const _0x3f465b of _0x49d99c)this[_0x5a48('0x13a')](_0x27ac66,_0x454c1b,_0x4b265a,_0x3f465b,_0x37847a['getMultiRangeId']());return _0x437f60;}[_0x5a48('0xd9')](_0x310322,_0x3080ac,_0x334bcb=null,_0xc53460={}){if(_0x334bcb=_0x334bcb||Nt(_0x3080ac),_0x310322[_0x5a48('0x31')])return null;if(_0x5a48('0xdc')===this[_0x5a48('0xeb')]){const _0x411cfd=this['_suggestionFactory'][_0x5a48('0xf2')](_0x5a48('0x128'),_0x334bcb,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x411cfd([_0x310322],_0x3080ac,_0xc53460)),null;}const _0x99351d=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x3ffd9a=[];if(_0x5a48('0xf8')!==this[_0x5a48('0xeb')])for(const {suggestion:_0x4b27d8,meta:_0x423a94}of this[_0x5a48('0x18')](_0x310322,'insertion'))_0x423a94[_0x5a48('0xe8')]&&!_0x423a94[_0x5a48('0x8e')]&&_0x3ffd9a[_0x5a48('0x119')](..._0x4b27d8[_0x5a48('0xc9')]());const _0x31b1d1=function(_0x8e389f,_0x25f4e0){const _0x2c248b=[];for(const _0x48a696 of _0x25f4e0){const _0x2cdfec=_0x8e389f[_0x5a48('0x67')](_0x48a696);_0x2cdfec&&_0x2c248b[_0x5a48('0x119')](_0x2cdfec);}return _0x2c248b;}(_0x310322,_0x3ffd9a),_0x4eb45d=function(_0x85ee3d,_0x2fa159){const _0x55d039=[_0x85ee3d];for(const _0x593679 of _0x2fa159){let _0x46405f=0x0;for(;_0x46405f<_0x55d039['length'];){const _0x30ff58=_0x55d039[_0x46405f][_0x5a48('0x12b')](_0x593679);_0x55d039['splice'](_0x46405f,0x1,..._0x30ff58),_0x46405f+=_0x30ff58['length'];}}return _0x55d039;}(_0x310322,_0x3ffd9a);_0x31b1d1[_0x5a48('0x60')]&&this[_0x5a48('0x95')][_0x5a48('0x1e')](()=>{for(const _0x2be760 of _0x31b1d1){const _0x29614e=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatInline',_0x334bcb,_0x5a48('0x62'));this[_0x5a48('0x9a')](()=>_0x29614e([_0x2be760],_0x3080ac,_0xc53460));}});for(const _0xf3e67d of _0x4eb45d){let _0xfb36c4=null,_0x55881b=_0xf3e67d['start'],_0x1b9335=_0xf3e67d[_0x5a48('0x125')];for(const {suggestion:_0x17a9ed,meta:_0x195439}of this[_0x5a48('0x18')](_0xf3e67d,_0x5a48('0x128'))){if(!_0x195439[_0x5a48('0xe8')])continue;if(_0x17a9ed[_0x5a48('0xb6')]!=_0x334bcb)continue;if(!Ot(_0x17a9ed,_0xc53460))continue;const _0x5cb513=_0x17a9ed[_0x5a48('0xf3')]();if(_0x5cb513[_0x5a48('0x2a')](_0xf3e67d,!0x0))return null;_0x55881b=_0x55881b[_0x5a48('0xa6')](_0x5cb513[_0x5a48('0xb7')])?_0x55881b:_0x5cb513['start'],_0x1b9335=_0x1b9335[_0x5a48('0xd')](_0x5cb513[_0x5a48('0x125')])?_0x1b9335:_0x5cb513['end'],_0xfb36c4?_0x5cb513[_0x5a48('0xb7')][_0x5a48('0xa6')](_0xfb36c4[_0x5a48('0xf3')]()[_0x5a48('0xb7')])?(_0xfb36c4[_0x5a48('0x40')](),_0xfb36c4=_0x17a9ed):_0x17a9ed['removeMarkers']():_0xfb36c4=_0x17a9ed;}const _0x3cc7fa=this[_0x5a48('0x95')][_0x5a48('0x114')](_0x55881b,_0x1b9335);if(_0xfb36c4)this[_0x5a48('0x3e')](_0xfb36c4,_0x3cc7fa);else{const _0x1b01ac=_0x31bd95(),_0xc23f37=_0x99351d['id'];this[_0x5a48('0x120')]({'id':_0x1b01ac,'type':_0x5a48('0x87')+_0x334bcb,'data':_0x3080ac,'createdAt':new Date(),'authorId':_0xc23f37,'attributes':_0xc53460}),this['_addSuggestionMarker'](_0x5a48('0x87')+_0x334bcb,_0x1b01ac,_0xc23f37,_0x3cc7fa);}}return null;}['markBlockFormat'](_0x1e2133,_0x4f97c3,_0x3e0ee7=[],_0x1bf6d6=null,_0x1f5aac={}){_0x4f97c3[_0x5a48('0xff')]||(_0x4f97c3[_0x5a48('0xff')]=_0x4f97c3[_0x5a48('0x72')]),_0x4f97c3[_0x5a48('0x127')]=_0x1e2133['is'](_0x5a48('0xb9')),_0x1bf6d6=_0x1bf6d6||Nt(_0x4f97c3);const _0x51b58a=_0x3e0ee7[_0x5a48('0x13b')](_0x1734ab=>jt(_0x1734ab,this[_0x5a48('0x95')])),_0x242d0b=_0x1e2133['is']('range')?_0x1e2133:jt(_0x1e2133,this[_0x5a48('0x95')]);if(_0x5a48('0xdc')===this[_0x5a48('0xeb')]){const _0x331661=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0xb'),_0x1bf6d6,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x331661([_0x242d0b],_0x4f97c3,_0x1f5aac)),null;}_0x51b58a[_0x5a48('0x119')](_0x242d0b);let _0x102a19=!0x0;for(const _0x29fbd4 of _0x51b58a)if(!this['_rangeIsInLocalUserInsertion'](_0x29fbd4)){_0x102a19=!0x1;break;}if(_0x102a19&&_0x5a48('0xf8')!==this[_0x5a48('0xeb')]){const _0x16eb5f=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0xb'),_0x1bf6d6,'accept');return this[_0x5a48('0x9a')](()=>_0x16eb5f([_0x242d0b],_0x4f97c3,_0x1f5aac)),null;}let _0x3bcdbe=null,_0x48f85c=_0x242d0b[_0x5a48('0xb7')],_0x39c9dc=_0x242d0b[_0x5a48('0x125')];for(const {suggestion:_0x2fb427,meta:_0x50c486}of this[_0x5a48('0x18')](_0x242d0b,_0x5a48('0xb'))){if(!_0x50c486[_0x5a48('0xe8')])continue;if(_0x50c486[_0x5a48('0x139')]||_0x50c486[_0x5a48('0x11b')]||_0x50c486['isInsideObject'])continue;if(_0x2fb427[_0x5a48('0xfb')][_0x5a48('0xff')]!=_0x4f97c3['formatGroupId'])continue;if(!Ot(_0x2fb427,_0x1f5aac))continue;const _0x286eff=_0x2fb427['getFirstRange']();if(_0x2fb427[_0x5a48('0xb6')]==_0x1bf6d6){if(_0x286eff[_0x5a48('0x2a')](_0x242d0b,!0x0))return null;_0x48f85c=_0x48f85c['isBefore'](_0x286eff[_0x5a48('0xb7')])?_0x48f85c:_0x286eff[_0x5a48('0xb7')],_0x39c9dc=_0x39c9dc[_0x5a48('0xd')](_0x286eff[_0x5a48('0x125')])?_0x39c9dc:_0x286eff[_0x5a48('0x125')],_0x3bcdbe?_0x286eff[_0x5a48('0xb7')][_0x5a48('0xa6')](_0x3bcdbe[_0x5a48('0xf3')]()[_0x5a48('0xb7')])?(_0x3bcdbe[_0x5a48('0x40')](),_0x3bcdbe=_0x2fb427):_0x2fb427[_0x5a48('0x40')]():_0x3bcdbe=_0x2fb427;}else{const _0x33c8d7=_0x242d0b[_0x5a48('0x67')](_0x286eff);this[_0x5a48('0x51')](_0x2fb427,_0x33c8d7);}}const _0x5a8b13=this['editor'][_0x5a48('0x4a')]['get'](_0x5a48('0x9'))['me'],_0x4eb378=_0x31bd95(),_0x4f39ce=_0x5a8b13['id'];if(_0x3bcdbe)return this[_0x5a48('0x3e')](_0x3bcdbe,this[_0x5a48('0x95')]['createRange'](_0x48f85c,_0x39c9dc)),_0x3bcdbe;{const _0x2398b1=this[_0x5a48('0x120')]({'id':_0x4eb378,'type':_0x5a48('0x64')+_0x1bf6d6,'data':_0x4f97c3,'createdAt':new Date(),'authorId':_0x4f39ce,'attributes':_0x1f5aac});return this[_0x5a48('0x13a')]('formatBlock:'+_0x1bf6d6,_0x4eb378,_0x4f39ce,this['_model'][_0x5a48('0x114')](_0x48f85c,_0x39c9dc)),_0x2398b1;}}[_0x5a48('0x5d')](_0x3114bb,_0x442d8e,_0x5a8d1b=[],_0x5c26d2=null,_0x26cdbf={}){_0x442d8e[_0x5a48('0xff')]||(_0x442d8e[_0x5a48('0xff')]=_0x442d8e['commandName']);const _0x28a940=_0x3114bb[0x0];_0x442d8e[_0x5a48('0x127')]=_0x28a940['is']('range'),_0x5c26d2=_0x5c26d2||Nt(_0x442d8e);const _0x24584b=_0x5a8d1b['map'](_0x21ad3c=>jt(_0x21ad3c,this[_0x5a48('0x95')])),_0x1832ea=_0x28a940['is'](_0x5a48('0xb9'))?_0x3114bb:_0x3114bb[_0x5a48('0x13b')](_0x2d0c07=>jt(_0x2d0c07,this[_0x5a48('0x95')]));if('never'===this[_0x5a48('0xeb')]){const _0x4c9d87=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0xb'),_0x5c26d2,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x4c9d87(_0x1832ea,_0x442d8e,_0x26cdbf)),null;}_0x24584b[_0x5a48('0x119')](..._0x1832ea);let _0x47f568=!0x0;for(const _0x24ef14 of _0x24584b)if(!this['_rangeIsInLocalUserInsertion'](_0x24ef14)){_0x47f568=!0x1;break;}if(_0x47f568&&_0x5a48('0xf8')!==this[_0x5a48('0xeb')]){const _0x417604=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatBlock',_0x5c26d2,'accept');return this[_0x5a48('0x9a')](()=>_0x417604(_0x1832ea,_0x442d8e,_0x26cdbf)),null;}const _0x317099=this['editor'][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users')['me'];for(const _0xe4075d of this[_0x5a48('0x129')]()){if(_0xe4075d[_0x5a48('0x9c')]['id']!=_0x317099['id'])continue;if(_0x5a48('0xb')!=_0xe4075d[_0x5a48('0x4d')]||_0xe4075d[_0x5a48('0xfb')][_0x5a48('0xff')]!=_0x442d8e[_0x5a48('0xff')])continue;if(!Ot(_0xe4075d,_0x26cdbf))continue;const _0x14f724=_0xe4075d[_0x5a48('0xb6')]==_0x5c26d2;for(let _0x371f83=0x0;_0x371f83<_0x1832ea['length'];_0x371f83++){const _0x19c24c=_0x1832ea[_0x371f83];for(const _0x1f2ae5 of _0xe4075d['getMarkers']()){const _0x581640=_0x1f2ae5[_0x5a48('0x28')]();if(_0x19c24c[_0x5a48('0x138')](_0x581640)){_0x14f724?(_0x1832ea[_0x5a48('0xca')](_0x371f83,0x1),_0x371f83--):_0xe4075d[_0x5a48('0xb4')](_0x1f2ae5[_0x5a48('0x1c')]);break;}}}}if(0x0==_0x1832ea[_0x5a48('0x60')])return null;const _0x439e10=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatBlock',_0x5c26d2,'join');for(const _0x2f803e of this[_0x5a48('0x129')]())if(_0x2f803e[_0x5a48('0x9c')]['id']==_0x317099['id']&&_0x5a48('0xb')==_0x2f803e['type']&&_0x2f803e['data'][_0x5a48('0xff')]==_0x442d8e[_0x5a48('0xff')]&&_0x2f803e['subType']==_0x5c26d2&&Ot(_0x2f803e,_0x26cdbf)&&(_0x439e10(_0x2f803e[_0x5a48('0xc9')](),_0x1832ea)||_0x439e10(_0x1832ea,_0x2f803e[_0x5a48('0xc9')]()))){for(const _0x36457e of _0x1832ea)_0x2f803e[_0x5a48('0xed')](_0x36457e);return _0x2f803e;}const _0x53048f=_0x31bd95(),_0x471a35=_0x317099['id'],_0x3ac526=_0x5a48('0x64')+_0x5c26d2,_0x146fa6=this[_0x5a48('0x120')]({'id':_0x53048f,'type':_0x3ac526,'data':_0x442d8e,'createdAt':new Date(),'authorId':_0x471a35,'attributes':_0x26cdbf});for(const _0x178445 of _0x1832ea)this[_0x5a48('0x13a')](_0x3ac526,_0x53048f,_0x471a35,_0x178445,_0x37847a[_0x5a48('0x47')]());return _0x146fa6;}['markDeletion'](_0x58490a,_0x5799c6=null,_0x55db09={}){if(_0x58490a[_0x5a48('0x31')])return null;const _0x550d5b=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users')['me'],_0x5b6f3f=new _0x5e64e8(_0x58490a[_0x5a48('0xb7')],_0x58490a[_0x5a48('0x125')]);for(const {suggestion:_0x161976,meta:_0x443890}of this[_0x5a48('0x18')](_0x5b6f3f,_0x5a48('0x85')))if(_0x443890[_0x5a48('0xe8')]&&!_0x443890['isNextTo']){if(_0x161976['isMultiRange']){const _0x295c26=_0x161976[_0x5a48('0xc9')]()['filter'](_0xff8111=>_0x5a48('0x8d')!=_0xff8111['root']['rootName']);_0x295c26['every'](_0x2f224f=>_0x5b6f3f['containsRange'](_0x2f224f,!0x0))&&_0x161976[_0x5a48('0xa1')]();if(_0x295c26[_0x5a48('0x92')](_0x3a98a2=>_0x3a98a2[_0x5a48('0x2a')](_0x5b6f3f,!0x0))){const _0x7f7a82=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x5799c6,'accept');return this[_0x5a48('0x9a')](()=>_0x7f7a82([_0x5b6f3f],null,_0x55db09)),null;}}else{const _0x198da3=_0x5b6f3f[_0x5a48('0x67')](_0x161976[_0x5a48('0xf3')]());null!==_0x198da3&&_0x161976[_0x5a48('0xcb')]([_0x198da3],null,_0x55db09);}}if(_0x5b6f3f[_0x5a48('0x79')](),_0x5b6f3f[_0x5a48('0x31')]||_0x5a48('0x8d')==_0x5b6f3f[_0x5a48('0x61')][_0x5a48('0xe7')])return null;let _0x4eec85=null,_0x50d2f9=_0x5b6f3f[_0x5a48('0xb7')],_0x2eb16a=_0x5b6f3f[_0x5a48('0x125')];const _0x289223=this['_findSuggestions'](_0x5b6f3f,_0x5a48('0x3c'));for(const {suggestion:_0x1f9608,meta:_0xda7a4d}of _0x289223){const _0x44d1bc=this[_0x5a48('0x95')]['createRange'](_0x50d2f9,_0x2eb16a);if(_0xda7a4d['isOwn']&&(this['_mergeNestedSuggestions']||!_0xda7a4d[_0x5a48('0x11b')]&&!_0xda7a4d['isInsideObject'])){if(_0x1f9608[_0x5a48('0x41')]){if(!Ot(_0x1f9608,_0x55db09))continue;let _0x397270=!0x0;for(const _0x2b797a of _0x1f9608[_0x5a48('0xc9')]()){if(_0x2b797a['containsRange'](_0x44d1bc,!0x0))return _0x1f9608;_0x44d1bc[_0x5a48('0x2a')](_0x2b797a)||(_0x397270=!0x1);}_0x397270&&_0x1f9608[_0x5a48('0xa1')]();}else{const _0x52b3cb=_0x1f9608['getFirstRange']();if(_0x52b3cb[_0x5a48('0x2a')](_0x44d1bc,!0x0))return _0x1f9608;if(!Ot(_0x1f9608,_0x55db09)){_0x44d1bc[_0x5a48('0x2a')](_0x52b3cb)?_0x1f9608[_0x5a48('0x40')]():_0x52b3cb[_0x5a48('0xe9')](_0x50d2f9)?_0x50d2f9=_0x52b3cb[_0x5a48('0x125')]:_0x52b3cb[_0x5a48('0xe9')](_0x2eb16a)&&(_0x2eb16a=_0x52b3cb[_0x5a48('0xb7')]);continue;}_0x50d2f9=_0x50d2f9[_0x5a48('0xa6')](_0x52b3cb[_0x5a48('0xb7')])?_0x50d2f9:_0x52b3cb[_0x5a48('0xb7')],_0x2eb16a=_0x2eb16a[_0x5a48('0xd')](_0x52b3cb['end'])?_0x2eb16a:_0x52b3cb[_0x5a48('0x125')],_0x55db09=Object[_0x5a48('0xa8')]({},_0x1f9608[_0x5a48('0x133')]),_0x4eec85?_0x52b3cb[_0x5a48('0xb7')]['isBefore'](_0x4eec85['getFirstRange']()[_0x5a48('0xb7')])?(_0x4eec85[_0x5a48('0x40')](),_0x4eec85=_0x1f9608):_0x1f9608[_0x5a48('0x40')]():_0x4eec85=_0x1f9608;}}}if(_0x4eec85)return this[_0x5a48('0x3e')](_0x4eec85,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x50d2f9,_0x2eb16a)),_0x4eec85;{const _0x4cbcc9=_0x31bd95(),_0x157eef=this[_0x5a48('0x95')]['createRange'](_0x50d2f9,_0x2eb16a),_0x3c2e31=_0x550d5b['id'],_0x33cf82=_0x5799c6?_0x5a48('0x97')+_0x5799c6:_0x5a48('0x3c'),_0x500d90=this[_0x5a48('0x120')]({'id':_0x4cbcc9,'type':_0x33cf82,'createdAt':new Date(),'authorId':_0x3c2e31,'attributes':_0x55db09});return this[_0x5a48('0x13a')](_0x33cf82,_0x4cbcc9,_0x3c2e31,_0x157eef),_0x500d90;}}[_0x5a48('0x2c')](_0x5b98cf,_0x3d8e52=_0x5a48('0x98'),_0x312537={}){const _0x151a1e=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x3f2c0e=_0x5b98cf['map'](_0xb09e96=>new _0x5e64e8(_0xb09e96[_0x5a48('0xb7')],_0xb09e96[_0x5a48('0x125')])),_0x504106=new Set();for(const {suggestion:_0x565fae,meta:_0x3ecc9e}of this[_0x5a48('0x18')](_0x3f2c0e,'insertion'))_0x3ecc9e['isOwn']&&!_0x3ecc9e[_0x5a48('0x139')]&&_0x504106['add'](_0x565fae);for(const _0x452114 of _0x504106)if(_0x452114[_0x5a48('0x41')]){const _0x421436=_0x452114['getRanges']();(!_0x452114[_0x5a48('0x133')]||!_0x452114[_0x5a48('0x133')][_0x5a48('0x110')])&&(_0x421436[_0x5a48('0xfc')](_0x380878=>_0x3f2c0e[_0x5a48('0x92')](_0x51eb65=>_0x51eb65[_0x5a48('0x2a')](_0x380878,!0x0)))&&_0x452114['discard']());if(_0x3f2c0e[_0x5a48('0xfc')](_0xc3aa95=>_0x421436[_0x5a48('0x92')](_0x32b1fb=>_0x32b1fb[_0x5a48('0x2a')](_0xc3aa95,!0x0)))){const _0xcef951=this[_0x5a48('0xd5')]['getSuggestionCallback']('deletion',_0x3d8e52,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0xcef951(_0x5b98cf,null,_0x312537)),null;}}else{const _0x53902b=_0x452114[_0x5a48('0xf3')]();_0x3f2c0e[_0x5a48('0x92')](_0x5a3445=>_0x5a3445['containsRange'](_0x53902b,!0x0))&&_0x452114[_0x5a48('0xa1')]();if(_0x3f2c0e['every'](_0x2d7080=>_0x53902b[_0x5a48('0x2a')](_0x2d7080,!0x0))){const _0x1c33d1=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x3d8e52,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x1c33d1(_0x3f2c0e,null,_0x312537)),null;}}const _0x4cb373=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x3d8e52,_0x5a48('0x36'));let _0x55fd10=null;for(const _0x47d59b of this['getSuggestions']())if(_0x47d59b[_0x5a48('0x9c')]['id']==_0x151a1e['id']&&_0x47d59b[_0x5a48('0x74')]&&'deletion'==_0x47d59b[_0x5a48('0x4d')]&&_0x47d59b[_0x5a48('0xb6')]==_0x3d8e52&&Ot(_0x47d59b,_0x312537)&&(_0x4cb373(_0x47d59b[_0x5a48('0xc9')](),_0x3f2c0e)||_0x4cb373(_0x3f2c0e,_0x47d59b[_0x5a48('0xc9')]()))){if(_0x55fd10){if(_0x47d59b[_0x5a48('0x48')]&&_0x47d59b[_0x5a48('0x48')]['length'])continue;for(const _0x1a21cb of _0x47d59b[_0x5a48('0xc9')]())_0x55fd10['isIntersectingWithRange'](_0x1a21cb)||_0x55fd10[_0x5a48('0xed')](_0x1a21cb);_0x47d59b[_0x5a48('0x40')]();}else{_0x55fd10=_0x47d59b;for(const _0x3e49dd of _0x3f2c0e)_0x47d59b[_0x5a48('0xc1')](_0x3e49dd)||_0x47d59b[_0x5a48('0xed')](_0x3e49dd);}}if(_0x55fd10)return _0x55fd10;_0x504106[_0x5a48('0xbc')]();for(const {suggestion:_0x2faf8f,meta:_0x203d87}of this[_0x5a48('0x18')](_0x3f2c0e,_0x5a48('0x3c')))_0x203d87['isOwn']&&(this[_0x5a48('0x8b')]||!_0x203d87[_0x5a48('0x11b')]&&!_0x203d87[_0x5a48('0x8e')])&&Ot(_0x2faf8f,_0x312537)&&_0x504106['add'](_0x2faf8f);for(const _0x12e6b1 of _0x504106){const _0xc73c89=_0x12e6b1[_0x5a48('0xc9')]();if(!_0x312537||!_0x312537[_0x5a48('0x110')]){if(_0x3f2c0e[_0x5a48('0xfc')](_0xde35f5=>_0xc73c89[_0x5a48('0x92')](_0x3cc209=>_0x3cc209['containsRange'](_0xde35f5,!0x0))))return _0x12e6b1;}(!_0x12e6b1[_0x5a48('0x133')]||!_0x12e6b1[_0x5a48('0x133')]['skipNestingCheck'])&&(_0xc73c89[_0x5a48('0xfc')](_0x109918=>_0x3f2c0e[_0x5a48('0x92')](_0x90450d=>_0x90450d[_0x5a48('0x2a')](_0x109918,!0x0)))&&_0x12e6b1[_0x5a48('0xa1')]());}const _0x114155=_0x31bd95(),_0x1673fe=_0x151a1e['id'],_0xd037e6=_0x5a48('0x97')+_0x3d8e52,_0x53adfd=this[_0x5a48('0x120')]({'id':_0x114155,'type':_0xd037e6,'createdAt':new Date(),'authorId':_0x1673fe,'attributes':_0x312537});for(const _0x28d230 of _0x3f2c0e)_0x28d230['detach'](),_0x28d230[_0x5a48('0x31')]||_0x5a48('0x8d')==_0x28d230[_0x5a48('0x61')][_0x5a48('0xe7')]||this[_0x5a48('0x13a')](_0xd037e6,_0x114155,_0x1673fe,_0x28d230,_0x37847a[_0x5a48('0x47')]());return _0x53adfd;}[_0x5a48('0x3e')](_0x1aa8eb,_0x5474c7){const _0x11b441=_0x1aa8eb[_0x5a48('0xb0')]();this[_0x5a48('0x95')][_0x5a48('0x1e')](_0x4da1fa=>{_0x4da1fa[_0x5a48('0x33')](_0x11b441,{'range':_0x5474c7});});}[_0x5a48('0x25')](_0x58162d){const _0x52c7a6=_0x58162d['id'],_0x3f9aa8=this['editor']['config'][_0x5a48('0x6c')](_0x5a48('0x9d'));this[_0x5a48('0xaa')][_0x5a48('0x94')](_0x52c7a6)||this[_0x5a48('0xaa')][_0x5a48('0x9b')]({'channelId':_0x3f9aa8,'threadId':_0x52c7a6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d5633=this[_0x5a48('0xaa')][_0x5a48('0x43')](_0x52c7a6);_0x1d5633[_0x5a48('0xb3')]('isRemovable'),_0x1d5633[_0x5a48('0x63')]=!0x1,_0x58162d[_0x5a48('0x48')]=_0x1d5633;}[_0x5a48('0xc8')](_0x10d763,_0x14d8f0,_0x4ed7fd,_0x55f45f){if(_0x10d763[_0x5a48('0x4d')]!=_0x14d8f0||_0x10d763[_0x5a48('0xb6')]!=_0x4ed7fd||_0x10d763['creator']['id']!=_0x55f45f)throw this[_0x5a48('0x16')][_0x5a48('0xe5')](_0x5a48('0x58')),new _0x5c539a(_0x5a48('0x58'),this);}[_0x5a48('0x51')](_0x167753,_0xe2f077){const _0x5a5556=_0x167753[_0x5a48('0xf3')]();if(_0xe2f077[_0x5a48('0x138')](_0x5a5556))_0x167753['removeMarkers']();else{if(_0x5a5556[_0x5a48('0x2a')](_0xe2f077)){const _0x3aef97=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0xb7')][_0x5a48('0xc3')],'end');this[_0x5a48('0x3e')](_0x167753,this['_model'][_0x5a48('0x114')](_0x5a5556[_0x5a48('0xb7')],_0x3aef97));const _0x464a09=_0x31bd95(),_0x4b819c=_0x167753[_0x5a48('0x2d')]['id'],_0x2a35d8=_0x167753[_0x5a48('0x4d')]+':'+_0x167753[_0x5a48('0xb6')];this[_0x5a48('0x120')]({'id':_0x464a09,'type':_0x2a35d8,'createdAt':new Date(),'authorId':_0x4b819c,'data':_0x167753[_0x5a48('0xfb')],'attributes':_0x167753['attributes']});const _0x78e34e=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077['end'][_0x5a48('0xad')],_0x5a48('0xe')),_0x1bd46c=this[_0x5a48('0x95')]['createRange'](_0x78e34e,_0x5a5556[_0x5a48('0x125')]);this['_addSuggestionMarker'](_0x2a35d8,_0x464a09,_0x4b819c,_0x1bd46c);}else{if(_0x5a5556['containsPosition'](_0xe2f077[_0x5a48('0xb7')])){const _0x2e2e8f=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0xb7')][_0x5a48('0xc3')],_0x5a48('0x125'));this[_0x5a48('0x3e')](_0x167753,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x5a5556[_0x5a48('0xb7')],_0x2e2e8f));}else{const _0x2be70d=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0x125')][_0x5a48('0xad')],_0x5a48('0xe'));this['_setSuggestionRange'](_0x167753,this[_0x5a48('0x95')]['createRange'](_0x2be70d,_0x5a5556['end']));}}}}[_0x5a48('0x50')](_0x26b3b9){for(const {suggestion:_0xa9f3ff,meta:_0x20d7f9}of this[_0x5a48('0x18')](_0x26b3b9,_0x5a48('0x85'))){if(!_0x20d7f9['isOwn'])continue;const _0x31c004=_0xa9f3ff[_0x5a48('0xc9')]();for(const _0xbda023 of _0x31c004)if(!_0x26b3b9['getDifference'](_0xbda023)['length'])return!0x0;}return!0x1;}[_0x5a48('0x52')](_0x6d6148){const _0x38ee37=this[_0x5a48('0x16')]['plugins'][_0x5a48('0x6c')](_0x5a48('0x9'))[_0x5a48('0xee')](_0x6d6148);if(!_0x38ee37)throw new _0x5c539a(_0x5a48('0x68'),this);return _0x38ee37;}[_0x5a48('0x10f')](_0x3dad67){const _0xf32741=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users'),_0x197dad=_0x295668(_0x5a48('0x56')+_0x3dad67),_0xc372ab=_0xf32741[_0x5a48('0xee')](_0x197dad);return _0xc372ab||_0xf32741[_0x5a48('0xf1')]({'id':_0x197dad,'name':_0x3dad67});}[_0x5a48('0xc4')](_0x29fcc3,_0x1e9984,_0x172c33,_0xf5ebc6,_0x5a5bf3){const _0x394d84=this['_getAuthorFromId'](_0xf5ebc6),_0x4340be=this[_0x5a48('0xd5')][_0x5a48('0xe0')](_0x29fcc3,_0x1e9984,_0x172c33,_0x394d84,_0x5a5bf3,_0x4858c7=>this['_updateSuggestionData'](_0x172c33,{'attributes':_0x4858c7}));return this['listenTo'](_0x4340be,'accept',()=>{this[_0x5a48('0x19')](_0x172c33,{'state':_0x5a48('0xdf')});},{'priority':_0x5a48('0xbb')}),this[_0x5a48('0x102')](_0x4340be,_0x5a48('0xa1'),()=>{this[_0x5a48('0x19')](_0x172c33,{'state':_0x5a48('0x126')});},{'priority':_0x5a48('0xbb')}),this['_suggestions']['set'](_0x172c33,_0x4340be),this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x4340be,_0x5a48('0x107')),_0x4340be;}[_0x5a48('0x10a')](_0x2141cd){const _0x3c777c=_0x2141cd['split'](':');return{'group':_0x3c777c[0x0],'type':_0x3c777c[0x1],'subType':_0x3c777c[_0x5a48('0x60')]>=0x5?_0x3c777c[0x2]:null,'id':_0x3c777c[_0x5a48('0x60')]<0x5?_0x3c777c[0x2]:_0x3c777c[0x3],'authorId':_0x3c777c[_0x5a48('0x60')]<0x5?_0x3c777c[0x3]:_0x3c777c[0x4],'markerCount':0x6==_0x3c777c[_0x5a48('0x60')]?_0x3c777c[0x5]:null};}[_0x5a48('0xd0')](_0x4d5636,_0x5bb1b2,_0x480911){const _0x2977f5=_0x4d5636[_0x5a48('0xf3')](),_0x1ab70f=_0x2977f5[_0x5a48('0xb7')],_0x55f4e0=_0x2977f5[_0x5a48('0x125')];this['_setSuggestionRange'](_0x4d5636,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x1ab70f,_0x5bb1b2));const _0x34f80b=_0x31bd95(),_0xf917e6=_0x4d5636['creator']['id'],_0x462cd0=_0x4d5636[_0x5a48('0x4d')]+(_0x4d5636[_0x5a48('0xb6')]?':'+_0x4d5636[_0x5a48('0xb6')]:'');this[_0x5a48('0x120')]({'id':_0x34f80b,'type':_0x462cd0,'createdAt':new Date(),'authorId':_0xf917e6,'originalSuggestionId':_0x4d5636['id'],'attributes':_0x4d5636[_0x5a48('0x133')],'data':_0x4d5636[_0x5a48('0xfb')]}),_0x5a48('0xb')==_0x4d5636['type']&&(_0x480911=this[_0x5a48('0x95')][_0x5a48('0x13')](_0x480911['parent'])),this[_0x5a48('0x13a')](_0x462cd0,_0x34f80b,_0xf917e6,this['_model']['createRange'](_0x480911,_0x55f4e0));}[_0x5a48('0x18')](_0x18069d,_0x1f388d=null){const _0x2cff4c=[],_0x453696=this['editor']['plugins'][_0x5a48('0x6c')](_0x5a48('0x9'))['me'];Array['isArray'](_0x18069d)||(_0x18069d=[_0x18069d]);for(const _0x149b83 of this[_0x5a48('0x129')]()){if(!_0x149b83[_0x5a48('0x74')])continue;if(_0x1f388d&&_0x149b83[_0x5a48('0x4d')]!=_0x1f388d)continue;let _0x56d467=!0x1;for(const _0x365627 of _0x149b83['getRanges']()){for(const _0x54f622 of _0x18069d){const _0x1fbdea=_0x54f622[_0x5a48('0xb7')]['isEqual'](_0x365627['end'])||_0x54f622[_0x5a48('0x125')][_0x5a48('0x138')](_0x365627[_0x5a48('0xb7')]);if(_0x1fbdea||_0x54f622[_0x5a48('0x67')](_0x365627)){const _0x4378a9=_0x54f622[_0x5a48('0x2a')](_0x365627)&&_t(this[_0x5a48('0x95')]['schema'],_0x365627['start'],_0x54f622),_0x30927b=_0x365627[_0x5a48('0x2a')](_0x54f622)&&_t(this['_model'][_0x5a48('0xbe')],_0x54f622[_0x5a48('0xb7')],_0x365627);_0x2cff4c[_0x5a48('0x119')]({'suggestion':_0x149b83,'meta':{'isOwn':_0x453696==_0x149b83[_0x5a48('0x9c')],'isNextTo':_0x1fbdea,'isInsideObject':_0x4378a9,'containsRangeInObject':_0x30927b}}),_0x56d467=!0x0;break;}}if(_0x56d467)break;}}return _0x2cff4c;}[_0x5a48('0x13a')](_0x537a1e,_0x4c2bd9,_0x454a77,_0x36d080,_0x550891){this['_model'][_0x5a48('0x1e')](_0x3c8bd6=>{let _0x54b3fe='suggestion:'+_0x537a1e+':'+_0x4c2bd9+':'+_0x454a77;_0x550891&&(_0x54b3fe=_0x54b3fe+':'+_0x550891),_0x3c8bd6[_0x5a48('0x12e')](_0x54b3fe,{'range':_0x36d080,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a48('0x70')](_0x5596df){const _0x52b638=_0x5596df[_0x5a48('0x3b')],_0x45eece=_0x5596df['next'];_0x5596df[_0x5a48('0x3b')]=null,null!=_0x52b638&&(_0x52b638[_0x5a48('0x23')]=null),_0x5596df[_0x5a48('0x23')]=null,null!=_0x45eece&&(_0x45eece[_0x5a48('0x3b')]=null),_0x5a48('0x6b')==this['_suggestionState'][_0x5a48('0x6c')](_0x5596df)&&(this['_suggestionState'][_0x5a48('0x54')](_0x5596df,_0x5a48('0xd2')),this[_0x5a48('0xd7')](_0x5a48('0xc2'),_0x5596df,_0x52b638,_0x45eece));}[_0x5a48('0x120')](_0x44adf9){const _0x4ecef9=_0x44adf9['id'],_0x3ebc37=this[_0x5a48('0x69')](_0x44adf9);if(this[_0x5a48('0x53')]&&this['_adapter'][_0x5a48('0xfe')]){const _0x1095f0=this[_0x5a48('0x16')][_0x5a48('0x4a')]['get']('PendingActions'),_0xf95c9a=_0x3ebc37[_0x5a48('0x109')],_0x43a007=_0x3ebc37[_0x5a48('0xb6')]?_0x3ebc37[_0x5a48('0x4d')]+':'+_0x3ebc37[_0x5a48('0xb6')]:_0x3ebc37[_0x5a48('0x4d')],_0x430497=this['editor']['locale'],_0x632ba6=_0x1095f0[_0x5a48('0xde')](_0x7186cc(_0x430497,_0x5a48('0x5f'))),_0x4cd66e={'id':_0x4ecef9,'type':_0x43a007,'hasComments':_0xf95c9a,'data':_0x44adf9[_0x5a48('0xfb')]||null,'originalSuggestionId':_0x44adf9[_0x5a48('0x136')]||null,'attributes':_0x3ebc37[_0x5a48('0x133')]};this[_0x5a48('0x53')][_0x5a48('0xfe')](_0x4cd66e)[_0x5a48('0xd6')](_0xb544a0=>{_0x3ebc37['_saved']=!0x0,_0x1095f0['remove'](_0x632ba6),_0xb544a0&&_0xb544a0[_0x5a48('0xce')]&&(this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x4ecef9)[_0x5a48('0xce')]=_0xb544a0[_0x5a48('0xce')]);})[_0x5a48('0x11f')](_0x56728c=>{throw _0x11dcbb(_0x5a48('0xea')),this['editor'][_0x5a48('0x90')][_0x5a48('0x4c')]({'isUndoable':!0x1},()=>{_0x3ebc37[_0x5a48('0xa1')]();}),_0x3ebc37['stopListening'](),this['_suggestions'][_0x5a48('0xb1')](_0x3ebc37['id']),this['_suggestionState'][_0x5a48('0xb1')](_0x3ebc37),_0x56728c;});}return _0x3ebc37;}['_updateSuggestionData'](_0x11a604,_0x519de6){const _0x44085c=this[_0x5a48('0x16')][_0x5a48('0x4a')]['get'](_0x5a48('0xf5')),_0x31d818=this[_0x5a48('0xc5')](_0x11a604);if(this['_adapter']&&this[_0x5a48('0x53')][_0x5a48('0x83')]){if(_0x31d818[_0x5a48('0x2e')]){const _0x1fbe6f=_0x44085c[_0x5a48('0xde')](_0x7186cc(this['editor'][_0x5a48('0xf')],_0x5a48('0x5f')));this[_0x5a48('0x53')][_0x5a48('0x83')](_0x11a604,_0x519de6)[_0x5a48('0xd6')](()=>{_0x44085c['remove'](_0x1fbe6f);});}else _0x31d818['on']('change:_saved',()=>{this[_0x5a48('0x19')](_0x11a604,_0x519de6);});}}[_0x5a48('0x124')](_0x26b712){if(!this['_adapter']||!this[_0x5a48('0x53')][_0x5a48('0xc5')])throw new _0x5c539a('track-changes-adapter-missing-getsuggestion',this);return this[_0x5a48('0x53')][_0x5a48('0xc5')](_0x26b712);}[_0x5a48('0x27')](_0x324a26){const {id:_0x367105,type:_0x9a8a07,subType:_0x226076,authorId:_0x3cc78c}=this[_0x5a48('0x10a')](_0x324a26),_0x316ccd=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x367105)||this[_0x5a48('0xc4')](_0x9a8a07,_0x226076,_0x367105,_0x3cc78c,{});switch(this[_0x5a48('0xc8')](_0x316ccd,_0x9a8a07,_0x226076,_0x3cc78c),this[_0x5a48('0x11d')]['get'](_0x316ccd)){case _0x5a48('0x107'):this[_0x5a48('0x124')](_0x367105)[_0x5a48('0xd6')](_0x43059a=>{let _0x11f4e5=Promise[_0x5a48('0xc0')]();_0x43059a[_0x5a48('0x109')]&&(_0x11f4e5=this[_0x5a48('0xaa')]['fetchCommentThread']({'channelId':this[_0x5a48('0x16')][_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0x9d')),'threadId':_0x367105})),_0x11f4e5[_0x5a48('0xd6')](()=>{this[_0x5a48('0x69')](_0x43059a)[_0x5a48('0x2e')]=!0x0;});}),this['_suggestionState'][_0x5a48('0x54')](_0x316ccd,_0x5a48('0x7c'));break;case'removed':this['_updateSuggestionData'](_0x367105,{'state':_0x5a48('0x8')});case _0x5a48('0x65'):this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x316ccd,_0x5a48('0x6b')),this['fire']('suggestionLoaded',_0x316ccd);break;case _0x5a48('0x6b'):this[_0x5a48('0xd7')](_0x5a48('0x37'),_0x316ccd);}return _0x316ccd[_0x5a48('0x17')](_0x324a26),_0x316ccd;}[_0x5a48('0x2f')](_0x28d00f){const _0x4ccfce=Array[_0x5a48('0x57')](_0x28d00f)[_0x5a48('0xe2')](_0x456fa8=>!_0x456fa8[_0x5a48('0x41')]),_0x334e65=this[_0x5a48('0x129')]({'skipNotAttached':!0x0})[_0x5a48('0xe2')](_0x2838d4=>!_0x2838d4['isMultiRange']),_0x25ccba=_0x334e65[_0x5a48('0xe2')](_0x5149d2=>!_0x28d00f[_0x5a48('0x6a')](_0x5149d2)),_0x30dc07=new Map(_0x334e65['map'](_0x5979d6=>[_0x5979d6,this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5979d6[_0x5a48('0x4d')],_0x5979d6[_0x5a48('0xb6')],_0x5a48('0xac'))])),_0x225c05=new Map(_0x334e65[_0x5a48('0x13b')](_0x246e0b=>[_0x246e0b,_0x246e0b[_0x5a48('0xf3')]()])),_0x499759=new Set(),_0x9dab2a=new Set();for(let _0x1caee4=0x0;_0x1caee4<_0x4ccfce['length'];_0x1caee4++)_0x473d8f(_0x4ccfce[_0x1caee4],_0x4ccfce,_0x1caee4+0x1);for(let _0x45b441=0x0;_0x45b441<_0x4ccfce[_0x5a48('0x60')];_0x45b441++)_0x473d8f(_0x4ccfce[_0x45b441],_0x25ccba,0x0);for(let _0x3ebe26=0x0;_0x3ebe26<_0x4ccfce[_0x5a48('0x60')];_0x3ebe26++){const _0x50a2b3=_0x4ccfce[_0x3ebe26];!_0x9dab2a[_0x5a48('0x6a')](_0x50a2b3)&&_0x50a2b3[_0x5a48('0x3b')]&&(_0x50a2b3['previous']['next']===_0x50a2b3&&(_0x50a2b3['previous'][_0x5a48('0x23')]=null),_0x50a2b3[_0x5a48('0x3b')]=null),!_0x499759[_0x5a48('0x6a')](_0x50a2b3)&&_0x50a2b3[_0x5a48('0x23')]&&(_0x50a2b3[_0x5a48('0x23')][_0x5a48('0x3b')]===_0x50a2b3&&(_0x50a2b3[_0x5a48('0x23')][_0x5a48('0x3b')]=null),_0x50a2b3[_0x5a48('0x23')]=null);}function _0x473d8f(_0x78153,_0x1041ff,_0x597d64){for(let _0x1a870c=_0x597d64;_0x1a870c<_0x1041ff[_0x5a48('0x60')];_0x1a870c++){const _0x49a14b=_0x2085d1(_0x78153,_0x1041ff[_0x1a870c]);_0x49a14b&&(_0x49a14b[0x0][_0x5a48('0x23')]=_0x49a14b[0x1],_0x49a14b[0x1][_0x5a48('0x3b')]=_0x49a14b[0x0],_0x499759[_0x5a48('0xde')](_0x49a14b[0x0]),_0x9dab2a['add'](_0x49a14b[0x1]));}}function _0x2085d1(_0x164a25,_0x549331){if(_0x164a25['author']['id']!==_0x549331['author']['id'])return null;const _0x36f740=_0x30dc07[_0x5a48('0x6c')](_0x164a25)(_0x164a25,_0x549331,_0x225c05[_0x5a48('0x6c')](_0x164a25),_0x225c05['get'](_0x549331));if(!_0x36f740)return null;return _0x30dc07[_0x5a48('0x6c')](_0x549331)(_0x164a25,_0x549331,_0x225c05['get'](_0x164a25),_0x225c05['get'](_0x549331))?_0x36f740[0x1]['commentThread']&&_0x36f740[0x1][_0x5a48('0x48')][_0x5a48('0x60')]?null:_0x36f740:null;}}[_0x5a48('0x78')](_0x353a81){const _0x1416c0=Array[_0x5a48('0x57')](_0x353a81),_0x5ee5f3=this[_0x5a48('0x129')]({'skipNotAttached':!0x0}),_0x1d6d28=_0x5ee5f3[_0x5a48('0xe2')](_0x1e3de4=>!_0x353a81[_0x5a48('0x6a')](_0x1e3de4)),_0x14f5e5=new Map(_0x1416c0[_0x5a48('0x13b')](_0x2388aa=>[_0x2388aa,this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x2388aa[_0x5a48('0x4d')],_0x2388aa[_0x5a48('0xb6')],_0x5a48('0x36'))])),_0xc5fe50=new Map(_0x5ee5f3[_0x5a48('0x13b')](_0x5d6303=>[_0x5d6303,_0x5d6303[_0x5a48('0xc9')]()]));for(let _0x73ed90=0x0;_0x73ed90<_0x1416c0[_0x5a48('0x60')];_0x73ed90++){if(_0x38c3db(this,_0x1416c0[_0x73ed90],_0x1416c0,_0x73ed90+0x1))return!0x0;}for(let _0x4fa56f=0x0;_0x4fa56f<_0x1416c0[_0x5a48('0x60')];_0x4fa56f++){if(_0x38c3db(this,_0x1416c0[_0x4fa56f],_0x1d6d28,0x0))return!0x0;}return!0x1;function _0x38c3db(_0x2e7f44,_0xebde32,_0x361d41,_0x7bcae7){for(let _0x2035ce=_0x7bcae7;_0x2035ce<_0x361d41[_0x5a48('0x60')];_0x2035ce++){const _0x307533=_0x361d41[_0x2035ce];if(_0x307533[_0x5a48('0x4d')]!==_0xebde32[_0x5a48('0x4d')]||_0x307533[_0x5a48('0x9c')]['id']!==_0xebde32[_0x5a48('0x9c')]['id']||_0x307533[_0x5a48('0xb6')]!==_0xebde32[_0x5a48('0xb6')])continue;if(!Ut(_0xebde32,_0x307533))continue;const _0x3ecebf=_0x14f5e5[_0x5a48('0x6c')](_0xebde32),_0x2c1ceb=_0xc5fe50['get'](_0xebde32),_0x2118f7=_0xc5fe50[_0x5a48('0x6c')](_0x307533),_0x29aaeb=_0xebde32[_0x5a48('0x48')]&&_0xebde32['commentThread'][_0x5a48('0x60')],_0x1921de=_0x307533[_0x5a48('0x48')]&&_0x307533[_0x5a48('0x48')]['length'];if(!_0x29aaeb&&_0x3ecebf(_0x2118f7,_0x2c1ceb))return _0x2e7f44[_0x5a48('0x6e')](_0x307533,_0xebde32),_0xc5fe50[_0x5a48('0xb1')](_0xebde32),!0x0;if(!_0x1921de&&_0x3ecebf(_0x2c1ceb,_0x2118f7))return _0x2e7f44[_0x5a48('0x6e')](_0xebde32,_0x307533),_0xc5fe50['delete'](_0x307533),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d110e,_0x58e803){if(_0x5d110e[_0x5a48('0x41')])for(const _0x9774c2 of _0x58e803[_0x5a48('0xc9')]())_0x5d110e[_0x5a48('0xed')](_0x9774c2);else{const _0x40830f=_0x58e803[_0x5a48('0xf3')]()['end'];this[_0x5a48('0x3e')](_0x5d110e,this[_0x5a48('0x95')]['createRange'](_0x5d110e[_0x5a48('0xf3')]()[_0x5a48('0xb7')],_0x40830f));}_0x58e803[_0x5a48('0x40')]();}}class Bt{constructor(_0x1b093f){this['_editor']=_0x1b093f,this[_0x5a48('0x95')]=_0x1b093f['model'],this['_customCallbacks']=new Map(),this[_0x5a48('0xda')]=new Map(),this[_0x5a48('0xa3')]();}[_0x5a48('0xe0')](_0x4c92d3,_0x27a5d4,_0xacab48,_0x2f0391,_0x1683e4,_0x559936){return new _0x37847a(this[_0x5a48('0x95')],{'type':_0x4c92d3,'subType':_0x27a5d4,'id':_0xacab48,'author':_0x2f0391,'creator':_0x2f0391,'attributes':_0x1683e4,'onAttributesChange':_0x559936,'onAccept':(..._0x4b472a)=>this[_0x5a48('0xf2')](_0x4c92d3,_0x27a5d4,_0x5a48('0x62'))(..._0x4b472a),'onDiscard':(..._0x1827ef)=>this[_0x5a48('0xf2')](_0x4c92d3,_0x27a5d4,_0x5a48('0xa1'))(..._0x1827ef)});}['registerCustomCallback'](_0x2745a3,_0x3fed4b,_0x5c37ff,_0x4beedd){const _0x51c2b5=_0x2745a3+':'+_0x3fed4b+':'+_0x5c37ff;this[_0x5a48('0x10b')][_0x5a48('0x54')](_0x51c2b5,_0x4beedd);}[_0x5a48('0xf2')](_0x396877,_0x266b21,_0x41a1b5){const _0x20a576=_0x396877+':'+_0x266b21+':'+_0x41a1b5;return this[_0x5a48('0x10b')][_0x5a48('0x6c')](_0x20a576)||this[_0x5a48('0xda')][_0x5a48('0x6c')](_0x396877+':'+_0x41a1b5);}['_registerDefaultCallbacks'](){const _0x2950ef=()=>!0x1,_0x56a4ea=_0xc57481=>{_0xc57481[_0x5a48('0xae')]((_0x13240e,_0x39ddf0)=>_0x13240e[_0x5a48('0xb7')][_0x5a48('0xa6')](_0x39ddf0[_0x5a48('0xb7')])?0x1:-0x1),this[_0x5a48('0x95')][_0x5a48('0x1e')](_0x37ec9d=>{for(const _0x3b9d74 of _0xc57481){let _0x51957a;_0x51957a=_0x3b9d74[_0x5a48('0x125')]['isAtEnd']&&_0x3b9d74[_0x5a48('0x125')][_0x5a48('0xad')]==_0x3b9d74[_0x5a48('0xb7')][_0x5a48('0x6')]?_0x37ec9d[_0x5a48('0x46')](_0x3b9d74[_0x5a48('0xb7')][_0x5a48('0x6')],'on'):_0x37ec9d[_0x5a48('0x46')](_0x3b9d74),this[_0x5a48('0x95')]['deleteContent'](_0x51957a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5f22d6=(_0x49ab9c,_0x458ef0)=>{this['_model'][_0x5a48('0x1e')](_0x1b81d5=>{const {commandName:_0x2c8f77,commandParams:_0x4cc329=[]}=_0x458ef0,_0x4b652d=_0x49ab9c[_0x5a48('0x13b')](_0x1f9a87=>(Mt(_0x1f9a87)&&(_0x1f9a87=this[_0x5a48('0x95')]['createRange'](_0x1f9a87['end'])),_0x1f9a87))[_0x5a48('0xe2')](_0x11caf6=>_0x5a48('0x8d')!==_0x11caf6[_0x5a48('0x61')][_0x5a48('0xe7')]);if(_0x4b652d['length']<0x1)return;const _0x508f68=Array[_0x5a48('0x57')](this[_0x5a48('0x95')][_0x5a48('0x45')][_0x5a48('0x0')]['getRanges']())[_0x5a48('0x13b')](_0x16d1eb=>_0x5e64e8[_0x5a48('0x11c')](_0x16d1eb));_0x1b81d5[_0x5a48('0xa5')](_0x4b652d);for(const _0x52ab96 of this[_0x5a48('0x6f')][_0x5a48('0xb8')]['commands']())_0x52ab96['refresh']();_0x4cc329[_0x5a48('0x119')]({'forceDefaultExecution':!0x0}),this[_0x5a48('0x6f')][_0x5a48('0x7a')](_0x2c8f77,..._0x4cc329);const _0x2fc65e=_0x508f68[_0x5a48('0xe2')](_0xc51c2a=>_0x5a48('0x8d')!=_0xc51c2a[_0x5a48('0x61')]['rootName']);_0x2fc65e[_0x5a48('0x60')]>0x0&&_0x1b81d5[_0x5a48('0xa5')](_0x2fc65e);for(const _0x4007ec of _0x508f68)_0x4007ec['detach']();});},_0x2310fd=(_0xaab4fc,_0x162027)=>0x1==_0xaab4fc['length']&&0x1==_0x162027[_0x5a48('0x60')]&&_0xaab4fc[0x0][_0x5a48('0x125')]['isEqual'](_0x162027[0x0][_0x5a48('0xb7')]),_0x458f4d=(_0x16de6a,_0x43ba56,_0x32cf25,_0xfa8cd1)=>xt(_0x16de6a,_0x43ba56,_0x32cf25,_0xfa8cd1,this[_0x5a48('0x95')])?[_0x16de6a,_0x43ba56]:xt(_0x43ba56,_0x16de6a,_0xfa8cd1,_0x32cf25,this[_0x5a48('0x95')])?[_0x43ba56,_0x16de6a]:null;this[_0x5a48('0xda')]['set'](_0x5a48('0x121'),_0x2950ef),this[_0x5a48('0xda')]['set']('insertion:discard',_0x56a4ea),this[_0x5a48('0xda')]['set']('insertion:join',_0x2310fd),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0xcf'),_0x458f4d),this[_0x5a48('0xda')]['set']('deletion:accept',_0x56a4ea),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0xf7'),_0x2950ef),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x91'),_0x2310fd),this[_0x5a48('0xda')][_0x5a48('0x54')](_0x5a48('0xd3'),_0x458f4d),this[_0x5a48('0xda')]['set'](_0x5a48('0x75'),_0x5f22d6),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatInline:discard',_0x2950ef),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x80'),_0x2310fd),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x1d'),_0x2950ef),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatBlock:accept',_0x5f22d6),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x21'),_0x2950ef),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatBlock:join',_0x2310fd),this[_0x5a48('0xda')][_0x5a48('0x54')](_0x5a48('0xb2'),_0x2950ef);}}function _t(_0x48ba1f,_0x4be0c7,_0xd68c51){for(const _0x588a77 of _0x4be0c7[_0x5a48('0xad')][_0x5a48('0x86')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x588a77[_0x5a48('0x61')]==_0x588a77)return!0x1;if(!_0xd68c51['containsItem'](_0x588a77))return!0x1;if(_0x48ba1f[_0x5a48('0x3')](_0x588a77)||_0x48ba1f[_0x5a48('0x12a')](_0x588a77))return!0x0;}return!0x1;}function Mt(_0x4df4c4){return _0x4df4c4[_0x5a48('0x125')][_0x5a48('0xad')]==_0x4df4c4[_0x5a48('0xb7')][_0x5a48('0x6')]&&_0x4df4c4[_0x5a48('0x125')]['isAtStart'];}function $t(_0x273e21,_0x3386a6,_0x3cc157,_0x24bb0c){const _0x5a35ad=_0x27163e=>!_0x27163e[_0x5a48('0x134')]['is'](_0x5a48('0x29'))&&!_0x24bb0c[_0x5a48('0x3')](_0x27163e[_0x5a48('0x134')]),_0x45b8bb=_0x273e21[_0x5a48('0xb7')][_0x5a48('0x77')](_0x5a35ad),_0x181c07=_0x273e21[_0x5a48('0x125')][_0x5a48('0x77')](_0x5a35ad,{'direction':_0x5a48('0x116')});return(!_0x273e21[_0x5a48('0xb7')][_0x5a48('0x138')](_0x45b8bb)||!_0x273e21[_0x5a48('0x125')]['isEqual'](_0x181c07))&&(_0x45b8bb[_0x5a48('0xa6')](_0x181c07)?_0x3cc157[_0x5a48('0x33')](_0x3386a6,{'range':_0x3cc157['createRange'](_0x45b8bb,_0x181c07)}):_0x3cc157[_0x5a48('0xb4')](_0x3386a6),!0x0);}function Nt(_0x2beb0e){return _0x295668(_0x2beb0e);}function Rt(_0xc113f3){const _0x4002d5=_0xc113f3[_0x5a48('0xb7')][_0x5a48('0x6')];return _0x4002d5&&_0x4002d5['is'](_0x5a48('0x82'));}function jt(_0x4bba7a,_0x9ac5b4){const _0xae1644=_0x9ac5b4[_0x5a48('0xbe')][_0x5a48('0x3')](_0x4bba7a)||_0x9ac5b4[_0x5a48('0xbe')][_0x5a48('0x30')](_0x4bba7a);return _0x9ac5b4[_0x5a48('0x114')](_0x9ac5b4[_0x5a48('0x2b')](_0x4bba7a,_0x5a48('0xec')),_0xae1644?_0x9ac5b4[_0x5a48('0x8c')](_0x4bba7a):_0x9ac5b4[_0x5a48('0x2b')](_0x4bba7a,'end'));}function xt(_0x331998,_0x5a983a,_0x18d671,_0xb1efb1,_0x226024){if(!Ut(_0x331998,_0x5a983a))return!0x1;if(_0x18d671[_0x5a48('0x125')][_0x5a48('0x138')](_0xb1efb1[_0x5a48('0xb7')]))return!0x0;if(_0x331998[_0x5a48('0x4d')]!=_0x5a983a[_0x5a48('0x4d')])return!0x1;if(!_0x18d671['end']['isTouching'](_0xb1efb1[_0x5a48('0xb7')]))return!0x1;const _0x72dafc=_0x226024[_0x5a48('0x114')](_0x18d671[_0x5a48('0x125')],_0xb1efb1['start'])['getWalker']();for(const _0xd8dfea of _0x72dafc)if([_0x5a48('0x113'),'elementEnd'][_0x5a48('0x117')](_0xd8dfea[_0x5a48('0x4d')])&&_0x226024['schema'][_0x5a48('0x12a')](_0xd8dfea[_0x5a48('0x134')]))return!0x1;return!0x0;}function Ut(_0x43ae75,_0x41e2d7){return!(!_0x43ae75[_0x5a48('0x3a')]||!_0x41e2d7[_0x5a48('0x3a')])&&_0x5c3132(_0x43ae75[_0x5a48('0x133')],_0x41e2d7[_0x5a48('0x133')]);}function Ot(_0x12e262,_0x39c61f){const _0x183d4e=Et(_0x12e262[_0x5a48('0x133')]),_0x22fe49=Et(_0x39c61f);if(!_0x12e262[_0x5a48('0x3a')])return!0x1;for(const _0x545c47 of Object[_0x5a48('0x39')](_0x22fe49))if(!_0x5c3132(_0x183d4e[_0x545c47],_0x22fe49[_0x545c47]))return!0x1;return!0x0;}function Et(_0x84ee76){const _0x1e9a31=Object[_0x5a48('0xa8')]({},_0x84ee76);return delete _0x1e9a31[_0x5a48('0x110')],delete _0x1e9a31['tablePasteChainId'],_0x1e9a31;}
|