@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230709.0 → 0.0.0-nightly-20230710.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20230709.0",
3
+ "version": "0.0.0-nightly-20230710.1",
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-20230709.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230709.0",
42
+ "ckeditor5": "0.0.0-nightly-20230710.1",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230710.1",
44
44
  "lodash-es": "^4.17.11"
45
45
  },
46
46
  "engines": {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ae9=['discardSelectedSuggestions','elementToElement','isUndo','addHighlight','removed','insertContent','dataReady','default','writer','removeClass','_removeSuggestion','map','_trackFormatChanges','acceptSelectedSuggestions','createPositionBefore','track-changes-command-not-found','_checkSuggestionCorrectness','removeAttribute','documentSelection','suggestionChanged','accepted','formatBlock','nodeBefore','_getSuggestionData','formatInline:discard','forward','insert','containsRangeInObject','_registerDefaultCallbacks','isNextTo','selection','activeMarkers','enableCommand','before','addUser','_customCallbacks','creator','applyOperation','split','toJSON','parent','buildSuggestion','editingDowncast','splitPosition','showSuggestionHighlights','getAllAdjacentSuggestions','change:activeMarkers','Users','addMarker:suggestion:formatBlock','fromRange','commentThread','item','move','_addSuggestionMarker','commands','set','marker-count','range','_setSuggestionRange','isAfter','locale','normal','formatGroupId','trackChanges','change:data','setAttribute','getCustomProperty','getAttribute','editor','_setSuggestionData','getMarkers','clone','trackChanges.trackFormatChanges','getSuggestionCallback','$textProxy','listenTo','suggestion:','_addThreadToSuggestion','insertion:discard','rootName','markInsertion','_adapter','size','markInlineFormat','getDifference','isExternal','CommentsRepository','createdAt','author','detach','isMultiRange','getShiftedBy','clear','after','_findSuggestions','PendingActions','formatInline:','acceptAllSuggestions','getRanges','formatBlock:join','discardAllSuggestions','addSuggestionData','newRange','conversion','markMultiRangeBlockFormat','stop','createRange','addCommentThread','isSelectable','filter','dataToMarker','mapper','isInContent','change','isLimit','addClass','addMarker','howMany','isObject','update:suggestion','element','editing','discard','schema','insertion:join','resolve','fire','splice','track-changes-suggestion-not-found','_breakSuggestionMarker','markerReady','batch','fromCharCode','_joinWithAdjacentSuggestions','change:_saved','dataDowncast','getFirstRange','hasComments','_cutOutSuggestionMarker','data','commandName','discardSuggestion','root','isCollapsed','plugins','some','suggestionLoaded','has','_getAuthorFromId','previous','from','insertion:accept','markerToHighlight','options','_model','_saved','markers','_suggestionFactory','updateSuggestion','getNearestSelectionRange','every','consumable','$graveyard','_splitMarkerName','multi','skipNestingCheck','_defaultCallbacks','setTo','unbind','track-changes-user-not-found','deletion:','getRange','insertion','end','addMarkerName','isBefore','name','_rangeIsInLocalUserInsertion','lowest','config','formatBlock:chain','_refreshSuggestionsChain','_editor','track-changes-adapter-already-set','_updateSuggestionData','never','error-saving-suggestion-data-suggestion-discarded','formatBlock:discard','suggestion','then','getSuggestion','rejected','_descriptionFactory','pluginName','createPositionAfter','markMultiRangeInsertion','high','init','ready','createPositionAt','_enabledCommands','formatInline:chain','formatBlock:','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active','getIntersection','elementStart','_commentsRepository','oldRange','always','collaboration.channelId','_suggestionState','join','add','subType','containsRange','getUser','remove','createSelection','isAtEnd','authoredAt','suggestion-type','unbindElementFromMarkerName','suggestionUnloaded','sort','for','trackChangesCommand','getFirstMarker','ck-suggestion-marker-','low','formatInline','isRemovable','consume','acceptSuggestion','TrackChangesEditing','PENDING_ACTION_SUGGESTION','attributes','registerCustomCallback','_suggestions','getSuggestions','document','deleteContent','enqueueChange','catch','hasSuggestion','moveTargetPosition','track-changes-suggestion-data-mismatch','getLastMatchingPosition','adapter','rethrowUnexpectedError','getAncestors','_joinSuggestions','nodeAfter','elementEnd','execute','deletion','@external','removeMarkers','isEqual','delete','markMultiRangeDeletion','model','addSuggestion','next','multipleBlocks','chain','formatInline:accept','ck-suggestion-marker','reconvertMarker','removeMarker','start','upcast','getChangedMarkers','markerName','isAtStart','value','setSelection','formatBlock:accept','head','_createSuggestion','isIntersectingWithRange','addRange','isInsideObject','registerPostFixer','_isForcedDefaultExecutionBlock','markBlockFormat','isBlock','values','getChanges','fetchCommentThread','getCommentThread','addComment','createElement','markerToData','length','type','hasCommentThread','forceDefaultExecution','get','differ','insertion:','removeMarker:suggestion:formatBlock','define','getMultiRangeId','containsPosition','accept','widget','data-suggestion','targetPosition','push','getItems','_handleNewSuggestionMarker','trackChanges.mergeNestedSuggestions','toViewElement','isOwn','backward','_mergeNestedSuggestions','includes','deletion:chain','updateMarker'];(function(_0x156c4c,_0x4ae939){const _0x4407d6=function(_0x1e7645){while(--_0x1e7645){_0x156c4c['push'](_0x156c4c['shift']());}};_0x4407d6(++_0x4ae939);}(_0x4ae9,0xbe));const _0x4407=function(_0x156c4c,_0x4ae939){_0x156c4c=_0x156c4c-0x0;let _0x4407d6=_0x4ae9[_0x156c4c];return _0x4407d6;};import{Plugin as _0x2986d8,PendingActions as _0x103b2c}from'ckeditor5/src/core';import{LiveRange as _0xe7e90e}from'ckeditor5/src/engine';import{CKEditorError as _0xd26818,uid as _0xd49a,priorities as _0x493584,logWarning as _0x3fd0ac}from'ckeditor5/src/utils';import{toWidget as _0x40a379}from'ckeditor5/src/widget';import{Users as _0x10a38b,hashObject as _0x457b72}from'ckeditor5-collaboration/src/collaboration-core';import _0x50529e from'./commands/trackchangescommand';import _0x20fc77 from'./commands/acceptsuggestioncommand';import _0x35b2b4 from'./commands/discardsuggestioncommand';import _0x3de5e9 from'./commands/executeonallsuggestionscommand';import _0x1f85f1 from'./commands/executeonselectedsuggestionscommand';import _0x30b61b from'./suggestion';import _0x4286d5 from'./suggestiondescriptionfactory';import _0x5330bd from'./integrations/alignment';import _0xb900f8 from'./integrations/basicstyles';import _0x4a4a13 from'./integrations/blockquote';import _0x4aee25 from'./integrations/ckbox';import _0x9da8 from'./integrations/codeblock';import _0x4daf0d from'./integrations/comments';import _0xb1f7cd from'./integrations/deletecommand';import _0x53b480 from'./integrations/documentlist';import _0x3a202e from'./integrations/entercommand';import _0x18b2eb from'./integrations/findandreplace';import _0x3add49 from'./integrations/font';import _0x43c7e7 from'./integrations/formatpainter';import _0x46837f from'./integrations/heading';import _0x58bce4 from'./integrations/highlight';import _0x22cacb from'./integrations/horizontalline';import _0x1cbc84 from'./integrations/htmlembed';import _0x18b42c from'./integrations/image';import _0x24c97b from'./integrations/imagereplace';import _0x560982 from'./integrations/importword';import _0x5af473 from'./integrations/indent';import _0x4a044a from'./integrations/inputcommand';import _0x593b92 from'./integrations/link';import _0x34ad0a from'./integrations/list';import _0x326c6a from'./integrations/listproperties';import _0x2cc50f from'./integrations/mediaembed';import _0x512bab from'./integrations/mention';import _0x39bf5b from'./integrations/pagebreak';import _0x1381fb from'./integrations/paragraph';import _0x4c4fe8 from'./integrations/removeformat';import _0x250bac from'./integrations/restrictededitingmode';import _0x238c9f from'./integrations/shiftentercommand';import _0x17248a from'./integrations/standardeditingmode';import _0x5ec99f from'./integrations/style';import _0x58c4db from'./integrations/table';import _0xa75e8c from'./integrations/tablemergesplit';import _0x5e7a8a from'./integrations/tableheadings';import _0x4f10c5 from'./integrations/tableclipboard';import _0x2e787b from'./integrations/tablecolumnresize';import _0x26a9b0 from'./integrations/template';import _0x1390c2 from'./integrations/tableofcontents';import _0x59401f from'./integrations/title';import _0x326fdb from'./integrations/undo';import{getTranslation as _0x1042ed}from'./utils/common-translations';import _0x1b4a64 from'./integrations/tablecaption';import _0x304433 from'./integrations/documentlistproperties';import _0x32dfcc from'./integrations/tableproperties';export default class p extends _0x2986d8{static get['requires'](){return[_0x4407('0xd8'),_0x10a38b,_0x103b2c,_0x5330bd,_0xb900f8,_0x4a4a13,_0x4aee25,_0x9da8,_0x4daf0d,_0xb1f7cd,_0x53b480,_0x304433,_0x3a202e,_0x18b2eb,_0x3add49,_0x43c7e7,_0x46837f,_0x58bce4,_0x22cacb,_0x1cbc84,_0x18b42c,_0x24c97b,_0x560982,_0x5af473,_0x4a044a,_0x593b92,_0x34ad0a,_0x326c6a,_0x2cc50f,_0x512bab,_0x39bf5b,_0x1381fb,_0x4c4fe8,_0x250bac,_0x238c9f,_0x17248a,_0x5ec99f,_0x58c4db,_0xa75e8c,_0x5e7a8a,_0x1b4a64,_0x4f10c5,_0x2e787b,_0x1390c2,_0x32dfcc,_0x26a9b0,_0x59401f,_0x326fdb];}static get[_0x4407('0x3')](){return _0x4407('0x2c');}constructor(_0x555e84){function _0x59af12(_0x383e72){return _0x383e72['map'](_0x3bc1ab=>String[_0x4407('0x106')](_0x3bc1ab))[_0x4407('0x16')]('');}super(_0x555e84),this[_0x4407('0xb9')](_0x4407('0xa1'),[]),this['on'](_0x4407('0xb0'),(_0x820caf,_0x1c11e7,_0x4a14d4,_0x642a92)=>{this['_model']['change'](()=>{for(const _0x27af4f of[..._0x642a92,..._0x4a14d4])this[_0x4407('0x11c')][_0x4407('0x11e')][_0x4407('0x115')](_0x27af4f)&&_0x555e84[_0x4407('0xfb')][_0x4407('0x4e')](_0x27af4f);});}),this[_0x4407('0x2')]=new _0x4286d5(this[_0x4407('0xc6')][_0x4407('0x47')][_0x4407('0xfd')],this[_0x4407('0xc6')][_0x4407('0xbe')]),this[_0x4407('0xd3')]=null,this[_0x4407('0x11f')]=new Dt(this[_0x4407('0xc6')]),this['_suggestions']=new Map(),this[_0x4407('0x11')]=_0x555e84['plugins'][_0x4407('0x6c')](_0x4407('0xd8')),this[_0x4407('0xa')]=new Set(),this[_0x4407('0x11c')]=this[_0x4407('0xc6')][_0x4407('0x47')],this[_0x4407('0x15')]=new WeakMap(),this[_0x4407('0x5e')]=!0x1,_0x555e84[_0x4407('0x135')][_0x4407('0x70')]('trackChanges.trackFormatChanges',_0x4407('0x89')),this['_trackFormatChanges']=_0x555e84[_0x4407('0x135')][_0x4407('0x6c')](_0x4407('0xca')),_0x555e84[_0x4407('0x135')][_0x4407('0x70')](_0x4407('0x7a'),!0x0),this[_0x4407('0x7e')]=_0x555e84[_0x4407('0x135')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x4407('0x24')]=new _0x50529e(_0x555e84,this[_0x4407('0xa')]),this[_0x59af12([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x59af12([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x38]);}[_0x4407('0x7')](){const _0x46b922=this['editor'];_0x46b922[_0x4407('0xe9')]['for'](_0x4407('0xac'))['markerToHighlight']({'model':_0x4407('0x13e'),'view':_0x38a369=>{const {id:_0xa2b743,type:_0x440f50}=this[_0x4407('0x125')](_0x38a369[_0x4407('0x53')]),_0x3f567f=[_0x4407('0x4d'),_0x4407('0x26')+_0x440f50];let _0x8722c7=0xbb8;return this[_0x4407('0xa1')][_0x4407('0x7f')](_0x38a369[_0x4407('0x53')])&&(_0x3f567f[_0x4407('0x77')]('ck-suggestion-marker--active'),_0x8722c7=0xbc2),_0x4407('0x41')==_0x440f50&&(_0x8722c7+=0x5),{'classes':_0x3f567f,'attributes':{'data-suggestion':_0xa2b743},'priority':_0x8722c7};}}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x109'))['add'](_0x3d9f82=>{_0x3d9f82['on']('addMarker:suggestion',(_0x2c9553,_0x1a0266,_0x4d453e)=>{if(!_0x4d453e[_0x4407('0x11b')][_0x4407('0xae')])return;const _0x2dfc28=_0x1a0266[_0x4407('0xb5')];if(!_0x2dfc28)return;const _0x188e4a=_0x4d453e[_0x4407('0xf1')]['toViewElement'](_0x2dfc28);_0x46b922['model'][_0x4407('0xfd')][_0x4407('0xf8')](_0x2dfc28)&&_0x188e4a&&!_0x188e4a[_0x4407('0xc4')](_0x4407('0x74'))&&_0x188e4a['is']('containerElement')&&_0x40a379(_0x188e4a,_0x4d453e[_0x4407('0x8a')]);},{'priority':'high'});}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x109'))[_0x4407('0x11a')]({'model':_0x4407('0x13e'),'view':(_0x26616c,_0x43e1f7)=>{if(!_0x43e1f7['options'][_0x4407('0xae')])return null;const {type:_0x45c3e9}=this[_0x4407('0x125')](_0x26616c[_0x4407('0x53')]);return{'classes':[_0x4407('0x4d'),_0x4407('0x26')+_0x45c3e9],'priority':0xbb8};}});const _0x171c7a=({showActiveMarkers:_0x32a8c4=!0x0}={})=>(_0x2e4029,_0x44d3d6,_0x5be4a5)=>{if(!_0x44d3d6[_0x4407('0xb5')])return;if(_0x44d3d6['item']['is'](_0x4407('0xa0')))return void _0x5be4a5[_0x4407('0x123')][_0x4407('0x2a')](_0x44d3d6[_0x4407('0xb5')],_0x2e4029[_0x4407('0x132')]);const _0x41cf80=_0x5be4a5[_0x4407('0xf1')][_0x4407('0x7b')](_0x44d3d6[_0x4407('0xb5')]);if(!(_0x44d3d6[_0x4407('0xb5')]['is'](_0x4407('0xfa'))&&_0x46b922[_0x4407('0x47')]['schema'][_0x4407('0x60')](_0x44d3d6[_0x4407('0xb5')])&&!_0x41cf80[_0x4407('0xc4')]('addHighlight')))return;const {id:_0x27a1c7}=this[_0x4407('0x125')](_0x44d3d6['markerName']);_0x5be4a5[_0x4407('0x8a')]['addClass']([_0x4407('0x4d'),_0x4407('0xd')],_0x41cf80),_0x5be4a5[_0x4407('0x8a')][_0x4407('0xc3')](_0x4407('0x75'),_0x27a1c7,_0x41cf80),_0x5be4a5[_0x4407('0xf1')]['bindElementToMarker'](_0x41cf80,_0x44d3d6[_0x4407('0x53')]),_0x32a8c4&&(this[_0x4407('0xa1')]['includes'](_0x44d3d6[_0x4407('0x53')])?_0x5be4a5[_0x4407('0x8a')][_0x4407('0xf5')](_0x4407('0xe'),_0x41cf80):_0x5be4a5['writer']['removeClass'](_0x4407('0xe'),_0x41cf80));for(const _0x2a7712 of _0x46b922[_0x4407('0x47')]['createRangeIn'](_0x44d3d6[_0x4407('0xb5')])[_0x4407('0x78')]())_0x5be4a5[_0x4407('0x123')]['consume'](_0x2a7712,_0x2e4029[_0x4407('0x132')]);_0x5be4a5[_0x4407('0x123')][_0x4407('0x2a')](_0x44d3d6[_0x4407('0xb5')],_0x2e4029['name']);};_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x109'))[_0x4407('0x17')](_0x30cf2b=>{_0x30cf2b['on']('addMarker:suggestion:formatBlock',(_0x30b5aa,_0x501070,_0x1b5819)=>{_0x1b5819[_0x4407('0x11b')][_0x4407('0xae')]&&_0x171c7a({'showActiveMarkers':!0x1})(_0x30b5aa,_0x501070,_0x1b5819);},{'priority':'highest'});}),_0x46b922['conversion'][_0x4407('0x23')](_0x4407('0x109'))[_0x4407('0x67')]({'model':_0x4407('0x13e'),'view':(_0xa8a127,_0x2d46e3)=>_0x2d46e3[_0x4407('0x11b')][_0x4407('0xae')]?null:{'group':_0x4407('0x13e'),'name':_0xa8a127['substr'](0xb)}}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x51'))[_0x4407('0x83')]({'view':{'name':_0x4407('0x13e'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x28d12a,{writer:_0x2cbb2b})=>{let _0x2b418f='suggestion:'+_0x28d12a[_0x4407('0xc5')](_0x4407('0x1f'))+':'+_0x28d12a[_0x4407('0xc5')]('id');return _0x28d12a[_0x4407('0xc5')]('marker-count')&&(_0x2b418f+=':'+_0x28d12a[_0x4407('0xc5')](_0x4407('0xba'))),_0x2cbb2b[_0x4407('0x66')]('$marker',{'data-name':_0x2b418f});}}),_0x46b922['conversion'][_0x4407('0x23')]('upcast')[_0x4407('0xf0')]({'view':_0x4407('0x13e')}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0xac'))['add'](_0x732b34=>{_0x732b34['on'](_0x4407('0xb2'),_0x171c7a(),{'priority':'high'});}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')]('editingDowncast')['add'](_0x217fa7=>{_0x217fa7['on'](_0x4407('0x6f'),(_0x1d001e,_0x58d3a7,_0x2dc305)=>{const _0x4542ff=_0x2dc305[_0x4407('0xf1')]['markerNameToElements'](_0x58d3a7['markerName']);if(_0x4542ff)for(const _0xe71099 of _0x4542ff)_0xe71099[_0x4407('0xc4')](_0x4407('0x85'))||(_0x2dc305['writer'][_0x4407('0x8b')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe71099),_0x2dc305[_0x4407('0x8a')][_0x4407('0x93')]('data-suggestion',_0xe71099),_0x2dc305[_0x4407('0xf1')][_0x4407('0x20')](_0xe71099,_0x58d3a7[_0x4407('0x53')]));},{'priority':_0x4407('0x6')});}),_0x46b922['model']['document'][_0x4407('0x5d')](_0x5a46bc=>{let _0x1a105d=!0x1;const _0x30a8f5=Array[_0x4407('0x118')](_0x46b922[_0x4407('0x47')][_0x4407('0x32')][_0x4407('0x6d')][_0x4407('0x52')]()),_0x531f51=new Set();for(const {name:_0x13ea77,data:_0x3c439a}of _0x30a8f5){const {group:_0x632f4a,type:_0x1ddf43,id:_0x326904}=this[_0x4407('0x125')](_0x13ea77);if(_0x4407('0x13e')!==_0x632f4a)continue;const _0x433abd=this[_0x4407('0x30')][_0x4407('0x6c')](_0x326904);if(null!=_0x3c439a['newRange']){_0x4407('0x28')==_0x1ddf43&&(_0x1a105d=_0x1a105d||Mt(_0x3c439a[_0x4407('0xe8')],_0x13ea77,_0x5a46bc,_0x46b922[_0x4407('0x47')][_0x4407('0xfd')]));if(_0x3c439a['newRange']['isCollapsed']||_0x4407('0x124')==_0x3c439a[_0x4407('0xe8')]['root'][_0x4407('0xd1')]||_0x4407('0x97')==_0x1ddf43&&!Nt(_0x3c439a[_0x4407('0xe8')])||_0x4407('0x41')==_0x1ddf43&&!(!_t(_0x3cb3b5=_0x3c439a[_0x4407('0xe8')])&&!function(_0x432e5d){return _0x432e5d[_0x4407('0x50')][_0x4407('0xaa')]==_0x432e5d[_0x4407('0x12f')]['nodeBefore']&&_0x432e5d[_0x4407('0x50')]['isAtEnd'];}(_0x3cb3b5)))_0x5a46bc[_0x4407('0x4f')](_0x13ea77),_0x1a105d=!0x0;else{if(!_0x433abd||!_0x433abd[_0x4407('0xf2')])continue;_0x531f51['add'](_0x433abd);}}}var _0x3cb3b5;return _0x531f51[_0x4407('0xd4')]>0x0&&(_0x1a105d=!!this['_joinWithAdjacentSuggestions'](_0x531f51)||_0x1a105d),_0x1a105d;}),_0x46b922[_0x4407('0x47')][_0x4407('0x32')]['registerPostFixer'](_0x1bbb14=>{let _0x471e28=!0x1;for(const _0x50cf98 of _0x46b922[_0x4407('0x47')][_0x4407('0x32')]['differ'][_0x4407('0x62')]()){if('insert'!=_0x50cf98[_0x4407('0x69')])continue;const _0x53143d=_0x50cf98['position'][_0x4407('0xdd')](_0x50cf98['length']);if(_0x53143d[_0x4407('0x1d')])for(const _0x5c9832 of this[_0x4407('0x30')][_0x4407('0x61')]()){if(_0x5c9832[_0x4407('0xdc')]||!_0x5c9832['isInContent'])continue;if(_0x4407('0x97')!=_0x5c9832[_0x4407('0x69')])continue;const _0x42bd3b=_0x5c9832['getFirstRange']();if(_0x42bd3b[_0x4407('0x50')][_0x4407('0xaa')]!=_0x42bd3b[_0x4407('0x12f')]['parent']&&_0x42bd3b[_0x4407('0x12f')]['isEqual'](_0x50cf98['position'])){const _0x1b56ef=_0x46b922[_0x4407('0x47')][_0x4407('0xec')](_0x42bd3b[_0x4407('0x50')],_0x53143d);_0x1bbb14[_0x4407('0x81')](_0x5c9832[_0x4407('0x25')](),{'range':_0x1b56ef}),_0x471e28=!0x0;}}}return _0x471e28;}),_0x46b922['model'][_0x4407('0x11e')]['on'](_0x4407('0xf9'),(_0xa39c36,_0x333114,_0x65c7b0)=>{if(null==_0x65c7b0){const {id:_0x49032c}=this[_0x4407('0x125')](_0x333114['name']),_0x2e81db=this[_0x4407('0x30')][_0x4407('0x6c')](_0x49032c);_0x2e81db&&_0x2e81db[_0x4407('0x130')](_0x333114['name']);}}),_0x46b922[_0x4407('0x47')][_0x4407('0x32')]['on'](_0x4407('0xc2'),()=>{const _0x23b194=Array[_0x4407('0x118')](_0x46b922['model']['document'][_0x4407('0x6d')][_0x4407('0x52')]())['filter'](_0x37b1c6=>_0x4407('0x13e')===this[_0x4407('0x125')](_0x37b1c6[_0x4407('0x132')])['group']);if(0x0===_0x23b194['length'])return;_0x23b194[_0x4407('0x22')]((_0x48d847,_0x21935e)=>{const _0x4ba885=_0x48d847[_0x4407('0x10d')]['oldRange'],_0x4f142d=_0x21935e[_0x4407('0x10d')][_0x4407('0x12')];return null===_0x4ba885&&null===_0x4f142d?0x0:null===_0x4ba885&&null!==_0x4f142d?-0x1:null!==_0x4ba885&&null===_0x4f142d?0x1:_0x4ba885[_0x4407('0x50')][_0x4407('0x131')](_0x4f142d[_0x4407('0x50')])?-0x1:0x1;});const _0x2f94d9=new Set(),_0x33bea8=new Set();for(const {name:_0x4ec41c,data:_0x57a399}of _0x23b194){const {id:_0x57939f}=this['_splitMarkerName'](_0x4ec41c);if(null===_0x57a399[_0x4407('0x12')]){const _0x3f4e58=this['_handleNewSuggestionMarker'](_0x4ec41c);_0x33bea8[_0x4407('0x17')](_0x3f4e58);}else{const _0x471d54=this['_suggestions']['get'](_0x57939f);null!==_0x57a399['newRange']||_0x471d54[_0x4407('0xf2')]?(_0x2f94d9[_0x4407('0x17')](_0x471d54[_0x4407('0x58')]),_0x33bea8[_0x4407('0x17')](_0x471d54)):this[_0x4407('0x8c')](_0x471d54);}}_0x33bea8[_0x4407('0xd4')]>0x0&&this[_0x4407('0x137')](_0x33bea8);for(const _0x28f336 of _0x2f94d9)this[_0x4407('0x100')](_0x4407('0x95'),_0x28f336);}),_0x46b922[_0x4407('0x47')]['on'](_0x4407('0xa7'),(_0x41e6c0,_0xcc6a76)=>{const _0x100948=_0xcc6a76[0x0];if(!this[_0x4407('0x30')]['size'])return;if(!_0x100948['isDocumentOperation'])return;if(_0x100948[_0x4407('0x105')][_0x4407('0x84')]||!_0x100948[_0x4407('0x105')]['isLocal'])return;let _0xaea0ac,_0x3f4c77;switch(_0x100948[_0x4407('0x69')]){case _0x4407('0x9c'):_0xaea0ac=_0x46b922[_0x4407('0x47')][_0x4407('0x9')](_0x100948['position']),_0x3f4c77=_0xaea0ac[_0x4407('0xdd')](_0x100948[_0x4407('0xf7')]);break;case _0x4407('0xa8'):_0xaea0ac=_0x46b922[_0x4407('0x47')]['createPositionAt'](_0x100948[_0x4407('0xad')]),_0x3f4c77=_0x46b922['model'][_0x4407('0x9')](_0x100948[_0x4407('0x37')]);break;case _0x4407('0xb6'):_0xaea0ac=_0x46b922[_0x4407('0x47')][_0x4407('0x9')](_0x100948[_0x4407('0x76')]),_0x3f4c77=_0xaea0ac['getShiftedBy'](_0x100948[_0x4407('0xf7')]);break;default:return;}const _0x42a832=_0x46b922[_0x4407('0x47')][_0x4407('0xec')](_0xaea0ac,_0x3f4c77);_0x46b922['model']['change'](()=>{for(const {suggestion:_0x566337,meta:_0x60e037}of this[_0x4407('0xe0')](_0x42a832)){if(_0x566337[_0x4407('0xdc')])continue;if('formatInline'==_0x566337[_0x4407('0x69')])continue;const _0x2e08ec=_0x566337[_0x4407('0x10d')]&&_0x566337[_0x4407('0x10d')][_0x4407('0x4a')];(_0x4407('0x97')!=_0x566337[_0x4407('0x69')]||'split'==_0x100948['type']&&!_0x2e08ec)&&(_0x60e037[_0x4407('0x9d')]||_0x4407('0x12e')==_0x566337[_0x4407('0x69')]&&_0x60e037['isOwn']||_0x566337['getFirstRange']()[_0x4407('0x19')](_0x42a832)&&this[_0x4407('0x103')](_0x566337,_0xaea0ac,_0x3f4c77));}});},{'priority':_0x4407('0x134')}),_0x46b922[_0x4407('0x47')]['on']('deleteContent',(_0x4894c4,_0x340e00)=>{const _0x500f69=_0x340e00[0x0],_0x17cfea=_0x340e00[0x1];if(_0x17cfea&&_0x17cfea[_0x4407('0x6b')])return;if(this[_0x4407('0x5e')])return;if(!this['trackChangesCommand'][_0x4407('0x55')])return;if(_0x500f69[_0x4407('0x111')])return;const _0x240a43=_0x46b922[_0x4407('0x47')][_0x4407('0xfd')],{start:_0x14ed95,end:_0x5cdad5}=_0x500f69[_0x4407('0x10a')](),_0x4935ff=_0x14ed95[_0x4407('0x3e')]&&_0x240a43[_0x4407('0xf4')](_0x14ed95['nodeAfter'])?null:_0x240a43['getNearestSelectionRange'](_0x14ed95,_0x4407('0x9b')),_0x984abb=_0x5cdad5['nodeBefore']&&_0x240a43['isLimit'](_0x5cdad5[_0x4407('0x98')])?null:_0x240a43[_0x4407('0x121')](_0x5cdad5,_0x4407('0x7d')),_0x395280=_0x46b922[_0x4407('0x47')]['createRange'](_0x4935ff?_0x4935ff['start']:_0x14ed95,_0x984abb?_0x984abb['end']:_0x5cdad5);_0x46b922[_0x4407('0x47')][_0x4407('0xf3')](_0x42f726=>{this['markDeletion'](_0x395280);const _0x25c9a6=_0x46b922[_0x4407('0x47')]['schema'][_0x4407('0x121')](_0x395280[_0x4407('0x50')]);_0x500f69['is'](_0x4407('0x94'))?_0x42f726[_0x4407('0x56')](_0x25c9a6):_0x500f69[_0x4407('0x129')](_0x25c9a6);}),_0x4894c4[_0x4407('0xeb')]();},{'priority':_0x493584[_0x4407('0xbf')]+0xa}),_0x46b922[_0x4407('0x47')]['on'](_0x4407('0x87'),(_0x28ffe3,_0x103d86)=>{const _0x27aff2=_0x103d86[_0x103d86['length']-0x1];_0x27aff2&&_0x27aff2['forceDefaultExecution']||this[_0x4407('0x5e')]||this['trackChangesCommand'][_0x4407('0x55')]&&(_0x46b922['model'][_0x4407('0xf3')](()=>{let _0x15861b=_0x46b922[_0x4407('0x47')]['insertContent'](_0x103d86[0x0],_0x103d86[0x1],_0x103d86[0x2],{'forceDefaultExecution':!0x0});if(!_0x15861b)return;_0x28ffe3['return']=_0x15861b[_0x4407('0xc9')]();const _0x43af9e=_0x15861b['end'][_0x4407('0x98')],_0x4e2681=_0x46b922[_0x4407('0x47')]['schema'];_0x43af9e&&_0x4e2681[_0x4407('0x60')](_0x43af9e)&&!_0x4e2681[_0x4407('0xf8')](_0x43af9e)&&(_0x15861b=_0x46b922[_0x4407('0x47')]['createRange'](_0x15861b[_0x4407('0x50')],_0x46b922['model'][_0x4407('0x9')](_0x43af9e,_0x4407('0x12f')))),this['markInsertion'](_0x15861b);}),_0x28ffe3['stop']());},{'priority':_0x4407('0x6')}),this[_0x4407('0xc6')]['commands'][_0x4407('0x17')](_0x4407('0xc1'),this['trackChangesCommand']),this[_0x4407('0xa2')](_0x4407('0xc1'));const _0x4d27e4=new _0x20fc77(_0x46b922,this[_0x4407('0x30')]);_0x46b922[_0x4407('0xb8')][_0x4407('0x17')](_0x4407('0x2b'),_0x4d27e4),this['enableCommand'](_0x4407('0x2b'));const _0x539264=new _0x35b2b4(_0x46b922,this[_0x4407('0x30')]);_0x46b922[_0x4407('0xb8')][_0x4407('0x17')]('discardSuggestion',_0x539264),this['enableCommand'](_0x4407('0x10f')),_0x46b922[_0x4407('0xb8')][_0x4407('0x17')](_0x4407('0xe3'),new _0x3de5e9(_0x46b922,_0x4d27e4,this[_0x4407('0x30')])),this[_0x4407('0xa2')](_0x4407('0xe3')),_0x46b922[_0x4407('0xb8')][_0x4407('0x17')](_0x4407('0xe6'),new _0x3de5e9(_0x46b922,_0x539264,this['_suggestions'])),this[_0x4407('0xa2')](_0x4407('0xe6')),_0x46b922[_0x4407('0xb8')]['add'](_0x4407('0x8f'),new _0x1f85f1(_0x46b922,_0x4d27e4,this[_0x4407('0x30')])),this[_0x4407('0xa2')](_0x4407('0x8f')),_0x46b922['commands'][_0x4407('0x17')](_0x4407('0x82'),new _0x1f85f1(_0x46b922,_0x539264,this['_suggestions'])),this[_0x4407('0xa2')](_0x4407('0x82'));const _0x44588a=_0x46b922[_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xd8'));this[_0x4407('0xcd')](_0x44588a,_0x4407('0x65'),(_0x2ed5c8,{threadId:_0x46c33b})=>{const _0x58bc8d=this[_0x4407('0x30')][_0x4407('0x6c')](_0x46c33b);_0x58bc8d&&_0x58bc8d[_0x4407('0xb4')]&&0x1===_0x58bc8d[_0x4407('0xb4')][_0x4407('0x68')]&&this[_0x4407('0x13a')](_0x46c33b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x44588a,'removeComment',(_0x59b848,{threadId:_0x5b520e})=>{const _0x24215a=this[_0x4407('0x30')][_0x4407('0x6c')](_0x5b520e);_0x24215a&&_0x24215a[_0x4407('0xb4')]&&!_0x24215a[_0x4407('0xb4')][_0x4407('0x68')]&&this[_0x4407('0x13a')](_0x5b520e,{'hasComments':!0x1});},{'priority':_0x4407('0x27')});}set[_0x4407('0x3a')](_0x1f4f81){if(this[_0x4407('0xd3')])throw new _0xd26818(_0x4407('0x139'),this);this[_0x4407('0xd3')]=_0x1f4f81;}get[_0x4407('0x3a')](){return this['_adapter'];}[_0x4407('0x31')]({skipNotAttached:_0x239c5f=!0x1,toJSON:_0x27f688=!0x1}={}){const _0x6083e=[];for(const _0x2a1e0f of this[_0x4407('0x30')][_0x4407('0x61')]())_0x239c5f&&!_0x2a1e0f['isInContent']||_0x6083e[_0x4407('0x77')](_0x2a1e0f);return _0x27f688?_0x6083e[_0x4407('0x8d')](_0x263d0a=>_0x263d0a[_0x4407('0xa9')]()):_0x6083e;}[_0x4407('0x0')](_0x21b242){const _0x51262f=this[_0x4407('0x30')]['get'](_0x21b242);if(!_0x51262f)throw new _0xd26818(_0x4407('0x102'),this);return _0x51262f;}[_0x4407('0x36')](_0x319757){return this[_0x4407('0x30')][_0x4407('0x115')](_0x319757);}[_0x4407('0xe7')](_0x163f4f){const {authorId:_0x412f70,id:_0x294d71,attributes:_0x450646}=_0x163f4f,[_0x4c96d8,_0x40872c]=_0x163f4f[_0x4407('0x69')][_0x4407('0xa8')](':'),_0x405e82=this['_suggestions'][_0x4407('0x6c')](_0x294d71)||this[_0x4407('0x59')](_0x4c96d8,_0x40872c,_0x294d71,_0x412f70,_0x450646);if(this[_0x4407('0xcf')](_0x405e82),this[_0x4407('0x92')](_0x405e82,_0x4c96d8,_0x40872c||null,_0x412f70),_0x405e82['createdAt']=_0x163f4f[_0x4407('0xd9')],_0x450646&&_0x450646['@external']){const _0x42742a=_0x450646[_0x4407('0x42')],_0x264430=this['_getExternalAuthor'](_0x42742a['authorName']);_0x405e82[_0x4407('0x1e')]=_0x42742a[_0x4407('0xd9')],_0x405e82[_0x4407('0xda')]=_0x264430,_0x405e82[_0x4407('0xd7')]=!0x0;}else _0x405e82['authoredAt']=_0x163f4f['createdAt'];switch(_0x163f4f[_0x4407('0x10d')]&&(_0x405e82[_0x4407('0x10d')]=_0x163f4f[_0x4407('0x10d')]),_0x163f4f[_0x4407('0x2e')]&&(_0x405e82[_0x4407('0x2e')]=_0x163f4f['attributes']),this[_0x4407('0xd3')]&&this[_0x4407('0xd3')][_0x4407('0x48')]||(_0x405e82[_0x4407('0x11d')]=!0x0),this[_0x4407('0x15')][_0x4407('0x6c')](_0x405e82)){case'notReady':this[_0x4407('0x15')][_0x4407('0xb9')](_0x405e82,_0x4407('0x88'));break;case _0x4407('0x104'):_0x405e82[_0x4407('0xf2')]?(this['_suggestionState'][_0x4407('0xb9')](_0x405e82,_0x4407('0x8')),this[_0x4407('0x100')]('suggestionLoaded',_0x405e82)):this[_0x4407('0x15')]['set'](_0x405e82,_0x4407('0x86'));}return _0x405e82;}[_0x4407('0x2b')](_0x5d0445){this[_0x4407('0x6b')](()=>{this[_0x4407('0xc6')]['model'][_0x4407('0xf3')](()=>{for(const _0x1291ce of _0x5d0445[_0x4407('0xaf')]())_0x1291ce[_0x4407('0x73')]();});});}['discardSuggestion'](_0x31e767){this[_0x4407('0x6b')](()=>{this[_0x4407('0xc6')][_0x4407('0x47')][_0x4407('0xf3')](()=>{for(const _0x53531c of _0x31e767[_0x4407('0xaf')]())_0x53531c[_0x4407('0xfc')]();});});}[_0x4407('0xa2')](_0x18a31b,_0x190e1b){const _0x184c80=this[_0x4407('0xc6')][_0x4407('0xb8')][_0x4407('0x6c')](_0x18a31b);if(!_0x184c80)throw new _0xd26818(_0x4407('0x91'),this,{'commandName':_0x18a31b});this['_enabledCommands']['add'](_0x184c80),_0x190e1b&&_0x184c80['on'](_0x4407('0x40'),(_0x582588,_0x4d9f6c)=>{this[_0x4407('0x24')][_0x4407('0x55')]&&(this['_isForcedDefaultExecutionBlock']||_0x4d9f6c[_0x4407('0x68')]>0x0&&_0x4d9f6c[_0x4d9f6c[_0x4407('0x68')]-0x1]&&_0x4d9f6c[_0x4d9f6c[_0x4407('0x68')]-0x1][_0x4407('0x6b')]||(_0x190e1b((..._0x565b16)=>_0x184c80['execute'](..._0x565b16,{'forceDefaultExecution':!0x0}),..._0x4d9f6c),_0x582588['stop']()));},{'priority':_0x4407('0x6')});}['forceDefaultExecution'](_0x447465){let _0x5b0130,_0x1bee18;const _0x1cd142=this[_0x4407('0x5e')];this[_0x4407('0x5e')]=!0x0;try{_0x5b0130=_0x447465();}catch(_0x189aad){_0x1bee18=_0x189aad;}return _0x1cd142||(this[_0x4407('0x5e')]=!0x1),_0x1bee18&&_0xd26818[_0x4407('0x3b')](_0x1bee18,this),_0x5b0130;}[_0x4407('0xd2')](_0x1f600d,_0x11b431=null,_0x357dae={}){if(_0x1f600d[_0x4407('0x111')])return null;const _0x4966df=this[_0x4407('0xc6')]['plugins'][_0x4407('0x6c')]('Users')['me'];for(const {suggestion:_0x501604,meta:_0x4b5459}of this[_0x4407('0xe0')](_0x1f600d,_0x4407('0x12e')))if(_0x4b5459[_0x4407('0x7c')]){if(!_0x4b5459[_0x4407('0x9f')]){if(!this['_mergeNestedSuggestions']&&_0x4b5459[_0x4407('0x9d')])continue;return _0x501604;}if(_0x11b431==_0x501604[_0x4407('0x18')]){const _0x1c52e0=_0x501604['getFirstRange']();return _0x1c52e0['start']['isEqual'](_0x1f600d[_0x4407('0x12f')])?this[_0x4407('0xbc')](_0x501604,this[_0x4407('0x11c')][_0x4407('0xec')](_0x1f600d[_0x4407('0x50')],_0x1c52e0[_0x4407('0x12f')])):this[_0x4407('0xbc')](_0x501604,this['_model']['createRange'](_0x1c52e0[_0x4407('0x50')],_0x1f600d[_0x4407('0x12f')])),_0x501604;}}const _0xb64b6=_0xd49a(),_0x5af2fe=_0x4966df['id'],_0x1b312d=_0x11b431?_0x4407('0x6e')+_0x11b431:'insertion',_0x19c4ec=this[_0x4407('0xc7')]({'id':_0xb64b6,'type':_0x1b312d,'createdAt':new Date(),'authorId':_0x5af2fe,'attributes':_0x357dae});return this[_0x4407('0xb7')](_0x1b312d,_0xb64b6,_0x5af2fe,_0x1f600d),_0x19c4ec;}[_0x4407('0x5')](_0xc354fc,_0x4d690f=_0x4407('0x126'),_0x3b0746={}){const _0xdf2a64=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x16299f=this[_0x4407('0x11f')][_0x4407('0xcb')]('insertion',_0x4d690f,_0x4407('0x16'));for(const _0x55ff4b of this['getSuggestions']())if(_0x55ff4b[_0x4407('0xda')]['id']==_0xdf2a64['id']&&_0x4407('0x12e')==_0x55ff4b[_0x4407('0x69')]&&_0x55ff4b[_0x4407('0x18')]==_0x4d690f&&(_0x16299f(_0x55ff4b[_0x4407('0xe4')](),_0xc354fc)||_0x16299f(_0xc354fc,_0x55ff4b[_0x4407('0xe4')]()))){for(const _0x5a5aeb of _0xc354fc)_0x55ff4b[_0x4407('0x5b')](_0x5a5aeb);return _0x55ff4b;}if(this[_0x4407('0x7e')])for(const _0x147433 of _0xc354fc)for(const {suggestion:_0x401e40,meta:_0x505516}of this[_0x4407('0xe0')](_0x147433,_0x4407('0x12e'))){if(!_0x505516[_0x4407('0x7c')])continue;let _0x4a8599=!0x0;for(const _0x375692 of _0x401e40[_0x4407('0xe4')]())for(const _0x146042 of _0xc354fc)if(!_0x375692[_0x4407('0x19')](_0x146042)){_0x4a8599=!0x1;break;}if(_0x4a8599)return _0x401e40;}const _0x42959a=_0xd49a(),_0x130095=_0xdf2a64['id'],_0x398949=_0x4407('0x6e')+_0x4d690f,_0xf007e4=this['_setSuggestionData']({'id':_0x42959a,'type':_0x398949,'createdAt':new Date(),'authorId':_0x130095,'attributes':_0x3b0746});for(const _0x17bb52 of _0xc354fc)this['_addSuggestionMarker'](_0x398949,_0x42959a,_0x130095,_0x17bb52,_0x30b61b[_0x4407('0x71')]());return _0xf007e4;}[_0x4407('0xd5')](_0xecd003,_0x29ebb8,_0x3cdd99=null,_0x471518={}){if(_0x3cdd99=_0x3cdd99||$t(_0x29ebb8),_0xecd003[_0x4407('0x111')])return null;if(_0x4407('0x13b')===this[_0x4407('0x8e')]){const _0x5d7677=this[_0x4407('0x11f')]['getSuggestionCallback'](_0x4407('0x28'),_0x3cdd99,'accept');return this[_0x4407('0x6b')](()=>_0x5d7677([_0xecd003],_0x29ebb8,_0x471518)),null;}const _0x1614c5=this['editor'][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x6675df=[];if(_0x4407('0x13')!==this[_0x4407('0x8e')])for(const {suggestion:_0x3d1ad3,meta:_0x1bf282}of this[_0x4407('0xe0')](_0xecd003,_0x4407('0x12e')))_0x1bf282['isOwn']&&!_0x1bf282[_0x4407('0x5c')]&&_0x6675df[_0x4407('0x77')](..._0x3d1ad3[_0x4407('0xe4')]());const _0x355f5f=function(_0xad2832,_0xfd06d3){const _0x439433=[];for(const _0x49f468 of _0xfd06d3){const _0x2f4f26=_0xad2832[_0x4407('0xf')](_0x49f468);_0x2f4f26&&_0x439433[_0x4407('0x77')](_0x2f4f26);}return _0x439433;}(_0xecd003,_0x6675df),_0xc3d06c=function(_0x1c869d,_0x59c2b0){const _0x2c6739=[_0x1c869d];for(const _0x118686 of _0x59c2b0){let _0x5bb1e0=0x0;for(;_0x5bb1e0<_0x2c6739[_0x4407('0x68')];){const _0x4f4542=_0x2c6739[_0x5bb1e0][_0x4407('0xd6')](_0x118686);_0x2c6739[_0x4407('0x101')](_0x5bb1e0,0x1,..._0x4f4542),_0x5bb1e0+=_0x4f4542[_0x4407('0x68')];}}return _0x2c6739;}(_0xecd003,_0x6675df);_0x355f5f[_0x4407('0x68')]&&this[_0x4407('0x11c')][_0x4407('0xf3')](()=>{for(const _0x381e1b of _0x355f5f){const _0x4fac3d=this[_0x4407('0x11f')][_0x4407('0xcb')]('formatInline',_0x3cdd99,_0x4407('0x73'));this[_0x4407('0x6b')](()=>_0x4fac3d([_0x381e1b],_0x29ebb8,_0x471518));}});for(const _0x3507a3 of _0xc3d06c){let _0x2971a5=null,_0x1c3028=_0x3507a3[_0x4407('0x50')],_0x9e2d53=_0x3507a3[_0x4407('0x12f')];for(const {suggestion:_0x37a377,meta:_0x4b6968}of this[_0x4407('0xe0')](_0x3507a3,'formatInline')){if(!_0x4b6968[_0x4407('0x7c')])continue;if(_0x37a377[_0x4407('0x18')]!=_0x3cdd99)continue;const _0x355847=_0x37a377[_0x4407('0x10a')]();if(_0x355847['containsRange'](_0x3507a3,!0x0))return null;_0x1c3028=_0x1c3028['isBefore'](_0x355847[_0x4407('0x50')])?_0x1c3028:_0x355847[_0x4407('0x50')],_0x9e2d53=_0x9e2d53['isAfter'](_0x355847[_0x4407('0x12f')])?_0x9e2d53:_0x355847[_0x4407('0x12f')],_0x2971a5?_0x355847[_0x4407('0x50')]['isBefore'](_0x2971a5[_0x4407('0x10a')]()[_0x4407('0x50')])?(_0x2971a5[_0x4407('0x43')](),_0x2971a5=_0x37a377):_0x37a377['removeMarkers']():_0x2971a5=_0x37a377;}const _0x5eb7ce=this[_0x4407('0x11c')]['createRange'](_0x1c3028,_0x9e2d53);if(_0x2971a5)this[_0x4407('0xbc')](_0x2971a5,_0x5eb7ce);else{const _0x995805=_0xd49a(),_0x5a1416=_0x1614c5['id'];this['_setSuggestionData']({'id':_0x995805,'type':'formatInline:'+_0x3cdd99,'data':_0x29ebb8,'createdAt':new Date(),'authorId':_0x5a1416,'attributes':_0x471518}),this[_0x4407('0xb7')](_0x4407('0xe2')+_0x3cdd99,_0x995805,_0x5a1416,_0x5eb7ce);}}return null;}[_0x4407('0x5f')](_0x57c364,_0x43f312,_0x1f2371=[],_0x2897af=null,_0x1667ca={}){_0x43f312['formatGroupId']||(_0x43f312['formatGroupId']=_0x43f312[_0x4407('0x10e')]),_0x43f312[_0x4407('0x4a')]=_0x57c364['is'](_0x4407('0xbb')),_0x2897af=_0x2897af||$t(_0x43f312);const _0x2bf401=_0x1f2371['map'](_0x281278=>Rt(_0x281278,this[_0x4407('0x11c')])),_0x6dfe01=_0x57c364['is'](_0x4407('0xbb'))?_0x57c364:Rt(_0x57c364,this[_0x4407('0x11c')]);if(_0x4407('0x13b')===this[_0x4407('0x8e')]){const _0x4fd9cf=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x2897af,_0x4407('0x73'));return this[_0x4407('0x6b')](()=>_0x4fd9cf([_0x6dfe01],_0x43f312,_0x1667ca)),null;}_0x2bf401['push'](_0x6dfe01);let _0x588359=!0x0;for(const _0x316038 of _0x2bf401)if(!this[_0x4407('0x133')](_0x316038)){_0x588359=!0x1;break;}if(_0x588359&&_0x4407('0x13')!==this[_0x4407('0x8e')]){const _0x5e010e=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x2897af,_0x4407('0x73'));return this['forceDefaultExecution'](()=>_0x5e010e([_0x6dfe01],_0x43f312,_0x1667ca)),null;}let _0x52b0f2=null,_0x5931a5=_0x6dfe01[_0x4407('0x50')],_0x1813b1=_0x6dfe01[_0x4407('0x12f')];for(const {suggestion:_0x134535,meta:_0xf743ca}of this['_findSuggestions'](_0x6dfe01,_0x4407('0x97'))){if(!_0xf743ca['isOwn']||_0xf743ca[_0x4407('0x9f')]||_0xf743ca['containsRangeInObject']||_0xf743ca[_0x4407('0x5c')])continue;if(_0x134535[_0x4407('0x10d')][_0x4407('0xc0')]!=_0x43f312[_0x4407('0xc0')])continue;const _0xc0ca49=_0x134535['getFirstRange']();if(_0x134535[_0x4407('0x18')]==_0x2897af){if(_0xc0ca49[_0x4407('0x19')](_0x6dfe01,!0x0))return null;_0x5931a5=_0x5931a5['isBefore'](_0xc0ca49[_0x4407('0x50')])?_0x5931a5:_0xc0ca49[_0x4407('0x50')],_0x1813b1=_0x1813b1[_0x4407('0xbd')](_0xc0ca49['end'])?_0x1813b1:_0xc0ca49['end'],_0x52b0f2?_0xc0ca49[_0x4407('0x50')][_0x4407('0x131')](_0x52b0f2[_0x4407('0x10a')]()['start'])?(_0x52b0f2[_0x4407('0x43')](),_0x52b0f2=_0x134535):_0x134535[_0x4407('0x43')]():_0x52b0f2=_0x134535;}else{const _0x3ece74=_0x6dfe01[_0x4407('0xf')](_0xc0ca49);this[_0x4407('0x10c')](_0x134535,_0x3ece74);}}const _0x498555=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x5f3e54=_0xd49a(),_0x1903af=_0x498555['id'];if(_0x52b0f2)return this[_0x4407('0xbc')](_0x52b0f2,this[_0x4407('0x11c')][_0x4407('0xec')](_0x5931a5,_0x1813b1)),_0x52b0f2;{const _0x36bf43=this[_0x4407('0xc7')]({'id':_0x5f3e54,'type':_0x4407('0xc')+_0x2897af,'data':_0x43f312,'createdAt':new Date(),'authorId':_0x1903af,'attributes':_0x1667ca});return this['_addSuggestionMarker'](_0x4407('0xc')+_0x2897af,_0x5f3e54,_0x1903af,this[_0x4407('0x11c')][_0x4407('0xec')](_0x5931a5,_0x1813b1)),_0x36bf43;}}[_0x4407('0xea')](_0x503c0c,_0x4d4a59,_0x575d4f=[],_0x48b829=null,_0x33bef8={}){_0x4d4a59['formatGroupId']||(_0x4d4a59[_0x4407('0xc0')]=_0x4d4a59[_0x4407('0x10e')]);const _0x21387c=_0x503c0c[0x0];_0x4d4a59['multipleBlocks']=_0x21387c['is'](_0x4407('0xbb')),_0x48b829=_0x48b829||$t(_0x4d4a59);const _0x9e0d11=_0x575d4f['map'](_0x520ea8=>Rt(_0x520ea8,this[_0x4407('0x11c')])),_0x3b30bf=_0x21387c['is'](_0x4407('0xbb'))?_0x503c0c:_0x503c0c['map'](_0x534b81=>Rt(_0x534b81,this['_model']));if(_0x4407('0x13b')===this['_trackFormatChanges']){const _0x370e71=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x48b829,'accept');return this[_0x4407('0x6b')](()=>_0x370e71(_0x3b30bf,_0x4d4a59,_0x33bef8)),null;}_0x9e0d11[_0x4407('0x77')](..._0x3b30bf);let _0x22d75b=!0x0;for(const _0x5e078a of _0x9e0d11)if(!this[_0x4407('0x133')](_0x5e078a)){_0x22d75b=!0x1;break;}if(_0x22d75b&&_0x4407('0x13')!==this['_trackFormatChanges']){const _0x51285d=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x48b829,_0x4407('0x73'));return this[_0x4407('0x6b')](()=>_0x51285d(_0x3b30bf,_0x4d4a59,_0x33bef8)),null;}const _0x286a9a=this['editor']['plugins'][_0x4407('0x6c')]('Users')['me'];for(const _0x413a33 of this[_0x4407('0x31')]()){if(_0x413a33[_0x4407('0xda')]['id']!=_0x286a9a['id'])continue;if('formatBlock'!=_0x413a33[_0x4407('0x69')]||_0x413a33[_0x4407('0x10d')][_0x4407('0xc0')]!=_0x4d4a59[_0x4407('0xc0')])continue;const _0xa5730a=_0x413a33[_0x4407('0x18')]==_0x48b829;for(let _0x1cd830=0x0;_0x1cd830<_0x3b30bf[_0x4407('0x68')];_0x1cd830++){const _0x7b5045=_0x3b30bf[_0x1cd830];for(const _0x329a6e of _0x413a33[_0x4407('0xc8')]()){const _0x474f43=_0x329a6e[_0x4407('0x12d')]();if(_0x7b5045[_0x4407('0x44')](_0x474f43)){_0xa5730a?(_0x3b30bf['splice'](_0x1cd830,0x1),_0x1cd830--):_0x413a33[_0x4407('0x4f')](_0x329a6e[_0x4407('0x132')]);break;}}}}if(0x0==_0x3b30bf[_0x4407('0x68')])return null;const _0x26be76=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x48b829,'join');for(const _0x18c806 of this[_0x4407('0x31')]())if(_0x18c806[_0x4407('0xda')]['id']==_0x286a9a['id']&&_0x4407('0x97')==_0x18c806[_0x4407('0x69')]&&_0x18c806['data'][_0x4407('0xc0')]==_0x4d4a59[_0x4407('0xc0')]&&_0x18c806[_0x4407('0x18')]==_0x48b829&&(_0x26be76(_0x18c806['getRanges'](),_0x3b30bf)||_0x26be76(_0x3b30bf,_0x18c806[_0x4407('0xe4')]()))){for(const _0x58ae34 of _0x3b30bf)_0x18c806['addRange'](_0x58ae34);return _0x18c806;}const _0x25ed86=_0xd49a(),_0x2e6311=_0x286a9a['id'],_0x35d3ad=_0x4407('0xc')+_0x48b829,_0x4ea942=this[_0x4407('0xc7')]({'id':_0x25ed86,'type':_0x35d3ad,'data':_0x4d4a59,'createdAt':new Date(),'authorId':_0x2e6311,'attributes':_0x33bef8});for(const _0x1035cc of _0x3b30bf)this[_0x4407('0xb7')](_0x35d3ad,_0x25ed86,_0x2e6311,_0x1035cc,_0x30b61b['getMultiRangeId']());return _0x4ea942;}['markDeletion'](_0x37ae53,_0x3a39e5=null,_0x482b6f={}){if(_0x37ae53[_0x4407('0x111')])return null;const _0x14bef4=this['editor']['plugins'][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x1e8947=new _0xe7e90e(_0x37ae53['start'],_0x37ae53[_0x4407('0x12f')]);for(const {suggestion:_0x69291f,meta:_0x442ed6}of this[_0x4407('0xe0')](_0x1e8947,_0x4407('0x12e')))if(_0x442ed6['isOwn']&&!_0x442ed6['isNextTo']){if(_0x69291f[_0x4407('0xdc')]){const _0xe36a28=_0x69291f[_0x4407('0xe4')]()[_0x4407('0xef')](_0x463d38=>_0x4407('0x124')!=_0x463d38['root'][_0x4407('0xd1')]);_0xe36a28[_0x4407('0x122')](_0x248836=>_0x1e8947[_0x4407('0x19')](_0x248836,!0x0))&&_0x69291f['discard']();if(_0xe36a28[_0x4407('0x113')](_0xd2b188=>_0xd2b188[_0x4407('0x19')](_0x1e8947,!0x0))){const _0x5bb949=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x41'),_0x3a39e5,_0x4407('0x73'));return this['forceDefaultExecution'](()=>_0x5bb949([_0x1e8947],null,_0x482b6f)),null;}}else{const _0x2de733=_0x1e8947[_0x4407('0xf')](_0x69291f[_0x4407('0x10a')]());null!==_0x2de733&&_0x69291f['_onDiscard']([_0x2de733],null,_0x482b6f);}}if(_0x1e8947['detach'](),_0x1e8947[_0x4407('0x111')]||'$graveyard'==_0x1e8947[_0x4407('0x110')][_0x4407('0xd1')])return null;let _0x2ee047=null,_0x1fa435=_0x1e8947[_0x4407('0x50')],_0x2b0986=_0x1e8947[_0x4407('0x12f')];for(const {suggestion:_0xaedb0c,meta:_0x2e41bd}of this['_findSuggestions'](_0x1e8947,_0x4407('0x41')))if(_0x2e41bd[_0x4407('0x7c')]){if(_0xaedb0c[_0x4407('0xdc')]&&this[_0x4407('0x7e')]){let _0x4b60cb=!0x0;for(const _0x2686ed of _0xaedb0c[_0x4407('0xe4')]()){if(_0x2686ed[_0x4407('0x19')](_0x1e8947,!0x0))return _0xaedb0c;_0x1e8947[_0x4407('0x19')](_0x2686ed)||(_0x4b60cb=!0x1);}_0x4b60cb&&_0xaedb0c[_0x4407('0xfc')]();}else{const _0x406093=_0xaedb0c[_0x4407('0x10a')]();if(_0x406093[_0x4407('0x19')](_0x1e8947,!0x0)){if(!this[_0x4407('0x7e')]&&_0x2e41bd[_0x4407('0x9d')])continue;return _0xaedb0c;}_0x1fa435=_0x1fa435[_0x4407('0x131')](_0x406093[_0x4407('0x50')])?_0x1fa435:_0x406093[_0x4407('0x50')],_0x2b0986=_0x2b0986[_0x4407('0xbd')](_0x406093['end'])?_0x2b0986:_0x406093[_0x4407('0x12f')],_0x2ee047?_0x406093[_0x4407('0x50')][_0x4407('0x131')](_0x2ee047[_0x4407('0x10a')]()[_0x4407('0x50')])?(_0x2ee047[_0x4407('0x43')](),_0x2ee047=_0xaedb0c):_0xaedb0c['removeMarkers']():_0x2ee047=_0xaedb0c;}}if(_0x2ee047)return this[_0x4407('0xbc')](_0x2ee047,this[_0x4407('0x11c')][_0x4407('0xec')](_0x1fa435,_0x2b0986)),_0x2ee047;{const _0x2d8736=_0xd49a(),_0x15d73a=this[_0x4407('0x11c')][_0x4407('0xec')](_0x1fa435,_0x2b0986),_0x2a29e7=_0x14bef4['id'],_0x16aab0=_0x3a39e5?_0x4407('0x12c')+_0x3a39e5:'deletion',_0x3b5f73=this[_0x4407('0xc7')]({'id':_0x2d8736,'type':_0x16aab0,'createdAt':new Date(),'authorId':_0x2a29e7,'attributes':_0x482b6f});return this[_0x4407('0xb7')](_0x16aab0,_0x2d8736,_0x2a29e7,_0x15d73a),_0x3b5f73;}}[_0x4407('0x46')](_0xe0c959,_0x2dd69e='multi',_0x4f83b0={}){const _0x154eb0=this[_0x4407('0xc6')]['plugins']['get'](_0x4407('0xb1'))['me'],_0x79f756=_0xe0c959[_0x4407('0x8d')](_0x2bdf88=>new _0xe7e90e(_0x2bdf88['start'],_0x2bdf88['end'])),_0x410a4e=new Set();for(const _0xf35fb7 of _0x79f756)for(const {suggestion:_0x126210,meta:_0x3d957d}of this['_findSuggestions'](_0xf35fb7,_0x4407('0x12e')))_0x3d957d['isOwn']&&!_0x3d957d[_0x4407('0x9f')]&&_0x410a4e['add'](_0x126210);for(const _0x5b79fd of _0x410a4e)if(_0x5b79fd[_0x4407('0xdc')]){const _0x44696e=_0x5b79fd[_0x4407('0xe4')]();(!_0x5b79fd['attributes']||!_0x5b79fd[_0x4407('0x2e')][_0x4407('0x127')])&&(_0x44696e[_0x4407('0x122')](_0x32c2a=>_0x79f756[_0x4407('0x113')](_0x4a7cb7=>_0x4a7cb7[_0x4407('0x19')](_0x32c2a,!0x0)))&&_0x5b79fd[_0x4407('0xfc')]());if(_0x79f756[_0x4407('0x122')](_0x13e22e=>_0x44696e[_0x4407('0x113')](_0x23ebca=>_0x23ebca[_0x4407('0x19')](_0x13e22e,!0x0)))){const _0x3d0876=this[_0x4407('0x11f')]['getSuggestionCallback'](_0x4407('0x41'),_0x2dd69e,'accept');return this[_0x4407('0x6b')](()=>_0x3d0876(_0xe0c959,null,_0x4f83b0)),null;}}else{const _0x57dab7=_0x5b79fd[_0x4407('0x10a')]();_0x79f756[_0x4407('0x113')](_0x6bb6cb=>_0x6bb6cb[_0x4407('0x19')](_0x57dab7,!0x0))&&_0x5b79fd[_0x4407('0xfc')]();if(_0x79f756[_0x4407('0x122')](_0x49c16a=>_0x57dab7[_0x4407('0x19')](_0x49c16a,!0x0))){const _0xcdc836=this[_0x4407('0x11f')][_0x4407('0xcb')]('deletion',_0x2dd69e,_0x4407('0x73'));return this['forceDefaultExecution'](()=>_0xcdc836(_0x79f756,null,_0x4f83b0)),null;}}const _0x3d1c3b=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x41'),_0x2dd69e,'join');let _0x557009=null;for(const _0x315e48 of this[_0x4407('0x31')]())if(_0x315e48[_0x4407('0xda')]['id']==_0x154eb0['id']&&_0x315e48[_0x4407('0xf2')]&&'deletion'==_0x315e48[_0x4407('0x69')]&&_0x315e48[_0x4407('0x18')]==_0x2dd69e&&(_0x3d1c3b(_0x315e48[_0x4407('0xe4')](),_0x79f756)||_0x3d1c3b(_0x79f756,_0x315e48[_0x4407('0xe4')]()))){if(_0x557009){if(_0x315e48['commentThread']&&_0x315e48['commentThread'][_0x4407('0x68')])continue;for(const _0x1d7d2f of _0x315e48['getRanges']())_0x557009[_0x4407('0x5a')](_0x1d7d2f)||_0x557009[_0x4407('0x5b')](_0x1d7d2f);_0x315e48[_0x4407('0x43')]();}else{_0x557009=_0x315e48;for(const _0x3d8843 of _0x79f756)_0x315e48['isIntersectingWithRange'](_0x3d8843)||_0x315e48[_0x4407('0x5b')](_0x3d8843);}}if(_0x557009)return _0x557009;_0x410a4e[_0x4407('0xde')]();for(const _0x4dca0f of _0x79f756)for(const {suggestion:_0x465080,meta:_0x126639}of this[_0x4407('0xe0')](_0x4dca0f,_0x4407('0x41')))_0x126639[_0x4407('0x7c')]&&_0x410a4e[_0x4407('0x17')](_0x465080);for(const _0xbd64b0 of _0x410a4e){const _0x21db99=_0xbd64b0['getRanges']();if(!_0x4f83b0||!_0x4f83b0[_0x4407('0x127')]){if(_0x79f756[_0x4407('0x122')](_0x5833fa=>_0x21db99[_0x4407('0x113')](_0x408116=>_0x408116[_0x4407('0x19')](_0x5833fa,!0x0))))return _0xbd64b0;}(!_0xbd64b0[_0x4407('0x2e')]||!_0xbd64b0[_0x4407('0x2e')][_0x4407('0x127')])&&(_0x21db99['every'](_0x57623e=>_0x79f756[_0x4407('0x113')](_0x4be2f3=>_0x4be2f3[_0x4407('0x19')](_0x57623e,!0x0)))&&_0xbd64b0[_0x4407('0xfc')]());}const _0x169962=_0xd49a(),_0x1e0db4=_0x154eb0['id'],_0x1b2f80='deletion:'+_0x2dd69e,_0x3759b3=this[_0x4407('0xc7')]({'id':_0x169962,'type':_0x1b2f80,'createdAt':new Date(),'authorId':_0x1e0db4,'attributes':_0x4f83b0});for(const _0x3ae08f of _0x79f756)_0x3ae08f['detach'](),_0x3ae08f[_0x4407('0x111')]||_0x4407('0x124')==_0x3ae08f['root'][_0x4407('0xd1')]||this[_0x4407('0xb7')](_0x1b2f80,_0x169962,_0x1e0db4,_0x3ae08f,_0x30b61b[_0x4407('0x71')]());return _0x3759b3;}['_setSuggestionRange'](_0x217e21,_0x383902){const _0x4e3922=_0x217e21[_0x4407('0x25')]();this['_model'][_0x4407('0xf3')](_0x55c6f6=>{_0x55c6f6['updateMarker'](_0x4e3922,{'range':_0x383902});});}['_addThreadToSuggestion'](_0x4c3c2d){const _0x1250d5=_0x4c3c2d['id'],_0x1b7a25=this[_0x4407('0xc6')][_0x4407('0x135')][_0x4407('0x6c')](_0x4407('0x14'));this[_0x4407('0x11')][_0x4407('0x6a')](_0x1250d5)||this[_0x4407('0x11')][_0x4407('0xed')]({'channelId':_0x1b7a25,'threadId':_0x1250d5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xe10b4a=this[_0x4407('0x11')][_0x4407('0x64')](_0x1250d5);_0xe10b4a[_0x4407('0x12a')](_0x4407('0x29')),_0xe10b4a['isRemovable']=!0x1,_0x4c3c2d['commentThread']=_0xe10b4a;}['_checkSuggestionCorrectness'](_0x4e6777,_0x53448d,_0x1f2beb,_0x56ccd2){if(_0x4e6777['type']!=_0x53448d||_0x4e6777[_0x4407('0x18')]!=_0x1f2beb||_0x4e6777[_0x4407('0xa6')]['id']!=_0x56ccd2)throw this['editor']['enableReadOnlyMode'](_0x4407('0x38')),new _0xd26818(_0x4407('0x38'),this);}[_0x4407('0x10c')](_0x2bb29c,_0x4dd87a){const _0xc5fc4f=_0x2bb29c[_0x4407('0x10a')]();if(_0x4dd87a[_0x4407('0x44')](_0xc5fc4f))_0x2bb29c['removeMarkers']();else{if(_0xc5fc4f[_0x4407('0x19')](_0x4dd87a)){const _0x453ed4=this[_0x4407('0x11c')][_0x4407('0x9')](_0x4dd87a['start'][_0x4407('0x98')],_0x4407('0x12f'));this[_0x4407('0xbc')](_0x2bb29c,this['_model'][_0x4407('0xec')](_0xc5fc4f[_0x4407('0x50')],_0x453ed4));const _0x1b4862=_0xd49a(),_0x2d549d=_0x2bb29c['creator']['id'],_0x505264=_0x2bb29c[_0x4407('0x69')]+':'+_0x2bb29c[_0x4407('0x18')];this[_0x4407('0xc7')]({'id':_0x1b4862,'type':_0x505264,'createdAt':new Date(),'authorId':_0x2d549d,'data':_0x2bb29c[_0x4407('0x10d')],'attributes':_0x2bb29c[_0x4407('0x2e')]});const _0x20ca80=this[_0x4407('0x11c')][_0x4407('0x9')](_0x4dd87a['end'][_0x4407('0xaa')],_0x4407('0xdf')),_0x4d86f1=this[_0x4407('0x11c')][_0x4407('0xec')](_0x20ca80,_0xc5fc4f[_0x4407('0x12f')]);this[_0x4407('0xb7')](_0x505264,_0x1b4862,_0x2d549d,_0x4d86f1);}else{if(_0xc5fc4f[_0x4407('0x72')](_0x4dd87a['start'])){const _0x48d1e0=this['_model'][_0x4407('0x9')](_0x4dd87a[_0x4407('0x50')][_0x4407('0x98')],'end');this[_0x4407('0xbc')](_0x2bb29c,this[_0x4407('0x11c')][_0x4407('0xec')](_0xc5fc4f[_0x4407('0x50')],_0x48d1e0));}else{const _0x7bf208=this[_0x4407('0x11c')]['createPositionAt'](_0x4dd87a[_0x4407('0x12f')][_0x4407('0xaa')],_0x4407('0xdf'));this['_setSuggestionRange'](_0x2bb29c,this[_0x4407('0x11c')]['createRange'](_0x7bf208,_0xc5fc4f[_0x4407('0x12f')]));}}}}[_0x4407('0x133')](_0x48710c){for(const {suggestion:_0x3dc523,meta:_0x414eed}of this[_0x4407('0xe0')](_0x48710c,'insertion')){if(!_0x414eed['isOwn'])continue;const _0x1ded04=_0x3dc523[_0x4407('0xe4')]();for(const _0x3f0cf5 of _0x1ded04)if(!_0x48710c[_0x4407('0xd6')](_0x3f0cf5)[_0x4407('0x68')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x31ac9a){const _0x15a1f0=this['editor'][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))[_0x4407('0x1a')](_0x31ac9a);if(!_0x15a1f0)throw new _0xd26818(_0x4407('0x12b'),this);return _0x15a1f0;}['_getExternalAuthor'](_0x5e22cb){const _0x43e1d0=this['editor'][_0x4407('0x112')]['get'](_0x4407('0xb1')),_0x20029b=_0x457b72('external:'+_0x5e22cb),_0x23bd90=_0x43e1d0[_0x4407('0x1a')](_0x20029b);return _0x23bd90||_0x43e1d0[_0x4407('0xa4')]({'id':_0x20029b,'name':_0x5e22cb});}['_createSuggestion'](_0x602269,_0x3ececf,_0x5669eb,_0x55d2ba,_0x2ca36f){const _0x3a0991=this[_0x4407('0x116')](_0x55d2ba),_0xc7067=this[_0x4407('0x11f')]['buildSuggestion'](_0x602269,_0x3ececf,_0x5669eb,_0x3a0991,_0x2ca36f,_0x209d41=>this[_0x4407('0x13a')](_0x5669eb,{'attributes':_0x209d41}));return this[_0x4407('0xcd')](_0xc7067,_0x4407('0x73'),()=>{this[_0x4407('0x13a')](_0x5669eb,{'state':_0x4407('0x96')});},{'priority':_0x4407('0x6')}),this[_0x4407('0xcd')](_0xc7067,_0x4407('0xfc'),()=>{this[_0x4407('0x13a')](_0x5669eb,{'state':_0x4407('0x1')});},{'priority':_0x4407('0x6')}),this[_0x4407('0x30')]['set'](_0x5669eb,_0xc7067),this['_suggestionState'][_0x4407('0xb9')](_0xc7067,'notReady'),_0xc7067;}['_splitMarkerName'](_0x42d2c6){const _0x554585=_0x42d2c6[_0x4407('0xa8')](':');return{'group':_0x554585[0x0],'type':_0x554585[0x1],'subType':_0x554585[_0x4407('0x68')]>=0x5?_0x554585[0x2]:null,'id':_0x554585['length']<0x5?_0x554585[0x2]:_0x554585[0x3],'authorId':_0x554585[_0x4407('0x68')]<0x5?_0x554585[0x3]:_0x554585[0x4],'markerCount':0x6==_0x554585[_0x4407('0x68')]?_0x554585[0x5]:null};}['_breakSuggestionMarker'](_0x2399ca,_0x19a065,_0x21a7ea){const _0x51f3cf=_0x2399ca['getFirstRange'](),_0x4571c0=_0x51f3cf['start'],_0x53ed82=_0x51f3cf[_0x4407('0x12f')];this[_0x4407('0xbc')](_0x2399ca,this[_0x4407('0x11c')]['createRange'](_0x4571c0,_0x19a065));const _0xb44ca7=_0xd49a(),_0x31fbe7=_0x2399ca[_0x4407('0xa6')]['id'],_0x21860a=_0x2399ca[_0x4407('0x69')]+(_0x2399ca['subType']?':'+_0x2399ca['subType']:'');this['_setSuggestionData']({'id':_0xb44ca7,'type':_0x21860a,'createdAt':new Date(),'authorId':_0x31fbe7,'originalSuggestionId':_0x2399ca['id'],'attributes':_0x2399ca[_0x4407('0x2e')],'data':_0x2399ca[_0x4407('0x10d')]}),'formatBlock'==_0x2399ca[_0x4407('0x69')]&&(_0x21a7ea=this['_model'][_0x4407('0x90')](_0x21a7ea[_0x4407('0xaa')])),this[_0x4407('0xb7')](_0x21860a,_0xb44ca7,_0x31fbe7,this['_model']['createRange'](_0x21a7ea,_0x53ed82));}[_0x4407('0xe0')](_0x1ae9d2,_0xd4851=null){const _0x4d6e60=[],_0x2796ef=this['_model'][_0x4407('0xfd')],_0x71ce55=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'];for(const _0xb17bc3 of this['getSuggestions']())if(_0xb17bc3[_0x4407('0xf2')]&&(!_0xd4851||_0xb17bc3[_0x4407('0x69')]==_0xd4851))for(const _0x1f0393 of _0xb17bc3[_0x4407('0xe4')]()){const _0x2cedde=_0x1ae9d2['start'][_0x4407('0x44')](_0x1f0393['end'])||_0x1ae9d2[_0x4407('0x12f')]['isEqual'](_0x1f0393[_0x4407('0x50')]);if(_0x2cedde||_0x1ae9d2[_0x4407('0xf')](_0x1f0393)){const _0xee734c=_0x1ae9d2[_0x4407('0x19')](_0x1f0393)&&Bt(_0x2796ef,_0x1f0393['start'],_0x1ae9d2),_0x8867a7=_0x1f0393[_0x4407('0x19')](_0x1ae9d2)&&Bt(_0x2796ef,_0x1ae9d2['start'],_0x1f0393);_0x4d6e60[_0x4407('0x77')]({'suggestion':_0xb17bc3,'meta':{'isOwn':_0x71ce55==_0xb17bc3['author'],'isNextTo':_0x2cedde,'isInsideObject':_0xee734c,'containsRangeInObject':_0x8867a7}});break;}}return _0x4d6e60;}[_0x4407('0xb7')](_0x11c568,_0x12a558,_0x56a44c,_0x4e3213,_0x376ce7){this[_0x4407('0x11c')][_0x4407('0xf3')](_0x1ce976=>{let _0x41bed0=_0x4407('0xce')+_0x11c568+':'+_0x12a558+':'+_0x56a44c;_0x376ce7&&(_0x41bed0=_0x41bed0+':'+_0x376ce7),_0x1ce976[_0x4407('0xf6')](_0x41bed0,{'range':_0x4e3213,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4407('0x8c')](_0x271e24){const _0x1ddc3e=_0x271e24['previous'],_0x5acfbf=_0x271e24[_0x4407('0x49')];_0x271e24[_0x4407('0x117')]=null,null!=_0x1ddc3e&&(_0x1ddc3e[_0x4407('0x49')]=null),_0x271e24[_0x4407('0x49')]=null,null!=_0x5acfbf&&(_0x5acfbf[_0x4407('0x117')]=null),'ready'==this[_0x4407('0x15')]['get'](_0x271e24)&&(this[_0x4407('0x15')]['set'](_0x271e24,_0x4407('0x86')),this[_0x4407('0x100')](_0x4407('0x21'),_0x271e24,_0x1ddc3e,_0x5acfbf));}[_0x4407('0xc7')](_0x19f4df){const _0x120cd0=_0x19f4df['id'],_0x39dcee=this[_0x4407('0xe7')](_0x19f4df);if(this[_0x4407('0xd3')]&&this[_0x4407('0xd3')][_0x4407('0x48')]){const _0x17eafa=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xe1')),_0x16f91c=_0x39dcee[_0x4407('0x10b')],_0x46d6e3=_0x39dcee[_0x4407('0x18')]?_0x39dcee[_0x4407('0x69')]+':'+_0x39dcee[_0x4407('0x18')]:_0x39dcee['type'],_0x53e9eb=this['editor']['locale'],_0x5a606c=_0x17eafa['add'](_0x1042ed(_0x53e9eb,_0x4407('0x2d'))),_0x3a371d={'id':_0x120cd0,'type':_0x46d6e3,'hasComments':_0x16f91c,'data':_0x19f4df[_0x4407('0x10d')]||null,'originalSuggestionId':_0x19f4df['originalSuggestionId']||null,'attributes':_0x39dcee[_0x4407('0x2e')]};this[_0x4407('0xd3')]['addSuggestion'](_0x3a371d)['then'](_0x75e764=>{_0x39dcee[_0x4407('0x11d')]=!0x0,_0x17eafa[_0x4407('0x1b')](_0x5a606c),_0x75e764&&_0x75e764['createdAt']&&(this['_suggestions'][_0x4407('0x6c')](_0x120cd0)['createdAt']=_0x75e764['createdAt']);})[_0x4407('0x35')](_0x2f54cd=>{throw _0x3fd0ac(_0x4407('0x13c')),this[_0x4407('0xc6')]['model'][_0x4407('0x34')]({'isUndoable':!0x1},()=>{_0x39dcee[_0x4407('0xfc')]();}),_0x39dcee['stopListening'](),this['_suggestions']['delete'](_0x39dcee['id']),this['_suggestionState'][_0x4407('0x45')](_0x39dcee),_0x2f54cd;});}return _0x39dcee;}[_0x4407('0x13a')](_0x47999f,_0x149557){const _0x4e4303=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xe1')),_0x4aa3f6=this[_0x4407('0x0')](_0x47999f);if(this[_0x4407('0xd3')]&&this[_0x4407('0xd3')][_0x4407('0x120')]){if(_0x4aa3f6[_0x4407('0x11d')]){const _0x3ab420=_0x4e4303[_0x4407('0x17')](_0x1042ed(this[_0x4407('0xc6')][_0x4407('0xbe')],_0x4407('0x2d')));this['_adapter']['updateSuggestion'](_0x47999f,_0x149557)[_0x4407('0x13f')](()=>{_0x4e4303[_0x4407('0x1b')](_0x3ab420);});}else _0x4aa3f6['on'](_0x4407('0x108'),()=>{this[_0x4407('0x13a')](_0x47999f,_0x149557);});}}[_0x4407('0x99')](_0x45d868){if(!this[_0x4407('0xd3')]||!this[_0x4407('0xd3')][_0x4407('0x0')])throw new _0xd26818('track-changes-adapter-missing-getsuggestion',this);return this['_adapter'][_0x4407('0x0')](_0x45d868);}[_0x4407('0x79')](_0x4221d3){const {id:_0x1fb928,type:_0x205388,subType:_0x1c0c88,authorId:_0x1b78c4}=this[_0x4407('0x125')](_0x4221d3),_0x253737=this[_0x4407('0x30')][_0x4407('0x6c')](_0x1fb928)||this[_0x4407('0x59')](_0x205388,_0x1c0c88,_0x1fb928,_0x1b78c4,{});switch(this[_0x4407('0x92')](_0x253737,_0x205388,_0x1c0c88,_0x1b78c4),this['_suggestionState'][_0x4407('0x6c')](_0x253737)){case'notReady':this[_0x4407('0x99')](_0x1fb928)[_0x4407('0x13f')](_0x38d4c8=>{let _0x2d3b31=Promise[_0x4407('0xff')]();_0x38d4c8[_0x4407('0x10b')]&&(_0x2d3b31=this[_0x4407('0x11')][_0x4407('0x63')]({'channelId':this[_0x4407('0xc6')][_0x4407('0x135')][_0x4407('0x6c')](_0x4407('0x14')),'threadId':_0x1fb928})),_0x2d3b31[_0x4407('0x13f')](()=>{this[_0x4407('0xe7')](_0x38d4c8)['_saved']=!0x0;});}),this['_suggestionState'][_0x4407('0xb9')](_0x253737,'markerReady');break;case _0x4407('0x86'):this[_0x4407('0x13a')](_0x1fb928,{'state':'open'});case'dataReady':this[_0x4407('0x15')][_0x4407('0xb9')](_0x253737,_0x4407('0x8')),this[_0x4407('0x100')](_0x4407('0x114'),_0x253737);break;case _0x4407('0x8'):this[_0x4407('0x100')](_0x4407('0x95'),_0x253737);}return _0x253737[_0x4407('0x130')](_0x4221d3),_0x253737;}[_0x4407('0x137')](_0x50e2d1){const _0x54e379=Array['from'](_0x50e2d1)[_0x4407('0xef')](_0x43d8e9=>!_0x43d8e9[_0x4407('0xdc')]),_0x1e3351=this[_0x4407('0x31')]({'skipNotAttached':!0x0})[_0x4407('0xef')](_0x2fe79e=>!_0x2fe79e[_0x4407('0xdc')]),_0x3bc545=_0x1e3351[_0x4407('0xef')](_0xe5580d=>!_0x50e2d1['has'](_0xe5580d)),_0x11a3bb=new Map(_0x1e3351[_0x4407('0x8d')](_0x2d9c3f=>[_0x2d9c3f,this[_0x4407('0x11f')][_0x4407('0xcb')](_0x2d9c3f[_0x4407('0x69')],_0x2d9c3f[_0x4407('0x18')],_0x4407('0x4b'))])),_0x4b4fc7=new Map(_0x1e3351[_0x4407('0x8d')](_0x3657c8=>[_0x3657c8,_0x3657c8['getFirstRange']()])),_0x4e0e77=new Set(),_0x447942=new Set();for(let _0x5955cb=0x0;_0x5955cb<_0x54e379[_0x4407('0x68')];_0x5955cb++)_0x2c15ce(_0x54e379[_0x5955cb],_0x54e379,_0x5955cb+0x1);for(let _0x8af959=0x0;_0x8af959<_0x54e379['length'];_0x8af959++)_0x2c15ce(_0x54e379[_0x8af959],_0x3bc545,0x0);for(let _0x136492=0x0;_0x136492<_0x54e379[_0x4407('0x68')];_0x136492++){const _0x44e714=_0x54e379[_0x136492];!_0x447942[_0x4407('0x115')](_0x44e714)&&_0x44e714['previous']&&(_0x44e714[_0x4407('0x117')]['next']===_0x44e714&&(_0x44e714[_0x4407('0x117')]['next']=null),_0x44e714[_0x4407('0x117')]=null),!_0x4e0e77[_0x4407('0x115')](_0x44e714)&&_0x44e714['next']&&(_0x44e714[_0x4407('0x49')][_0x4407('0x117')]===_0x44e714&&(_0x44e714[_0x4407('0x49')]['previous']=null),_0x44e714[_0x4407('0x49')]=null);}function _0x2c15ce(_0x49dec1,_0x1d8f35,_0x49f5a3){for(let _0x56673c=_0x49f5a3;_0x56673c<_0x1d8f35[_0x4407('0x68')];_0x56673c++){const _0x2ee7fe=_0x1ab603(_0x49dec1,_0x1d8f35[_0x56673c]);_0x2ee7fe&&(_0x2ee7fe[0x0][_0x4407('0x49')]=_0x2ee7fe[0x1],_0x2ee7fe[0x1][_0x4407('0x117')]=_0x2ee7fe[0x0],_0x4e0e77[_0x4407('0x17')](_0x2ee7fe[0x0]),_0x447942[_0x4407('0x17')](_0x2ee7fe[0x1]));}}function _0x1ab603(_0x4fc0a0,_0x42ad85){if(_0x4fc0a0[_0x4407('0xda')]['id']!==_0x42ad85[_0x4407('0xda')]['id'])return null;const _0x143b98=_0x11a3bb['get'](_0x4fc0a0)(_0x4fc0a0,_0x42ad85,_0x4b4fc7[_0x4407('0x6c')](_0x4fc0a0),_0x4b4fc7[_0x4407('0x6c')](_0x42ad85));if(!_0x143b98)return null;return _0x11a3bb['get'](_0x42ad85)(_0x4fc0a0,_0x42ad85,_0x4b4fc7['get'](_0x4fc0a0),_0x4b4fc7[_0x4407('0x6c')](_0x42ad85))?_0x143b98[0x1]['commentThread']&&_0x143b98[0x1][_0x4407('0xb4')][_0x4407('0x68')]?null:_0x143b98:null;}}[_0x4407('0x107')](_0x546c8c){const _0x599905=Array[_0x4407('0x118')](_0x546c8c),_0x21f9aa=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1f5b1d=_0x21f9aa[_0x4407('0xef')](_0xaf1e4e=>!_0x546c8c['has'](_0xaf1e4e)),_0x3d0e35=new Map(_0x599905['map'](_0x3505bb=>[_0x3505bb,this[_0x4407('0x11f')][_0x4407('0xcb')](_0x3505bb[_0x4407('0x69')],_0x3505bb['subType'],_0x4407('0x16'))])),_0x52478b=new Map(_0x21f9aa[_0x4407('0x8d')](_0x16f10d=>[_0x16f10d,_0x16f10d[_0x4407('0xe4')]()]));for(let _0x294830=0x0;_0x294830<_0x599905[_0x4407('0x68')];_0x294830++){if(_0x329e0b(this,_0x599905[_0x294830],_0x599905,_0x294830+0x1))return!0x0;}for(let _0x39e788=0x0;_0x39e788<_0x599905['length'];_0x39e788++){if(_0x329e0b(this,_0x599905[_0x39e788],_0x1f5b1d,0x0))return!0x0;}return!0x1;function _0x329e0b(_0x176a11,_0x8a107d,_0xd7e826,_0x149a78){for(let _0x407cff=_0x149a78;_0x407cff<_0xd7e826[_0x4407('0x68')];_0x407cff++){const _0x225bbe=_0xd7e826[_0x407cff];if(_0x225bbe[_0x4407('0x69')]!==_0x8a107d[_0x4407('0x69')]||_0x225bbe['author']['id']!==_0x8a107d[_0x4407('0xda')]['id']||_0x225bbe[_0x4407('0x18')]!==_0x8a107d['subType'])continue;const _0x5946a5=_0x3d0e35[_0x4407('0x6c')](_0x8a107d),_0x48fcd9=_0x52478b[_0x4407('0x6c')](_0x8a107d),_0x322a13=_0x52478b[_0x4407('0x6c')](_0x225bbe),_0x1799b2=_0x8a107d[_0x4407('0xb4')]&&_0x8a107d['commentThread']['length'],_0x502449=_0x225bbe[_0x4407('0xb4')]&&_0x225bbe[_0x4407('0xb4')][_0x4407('0x68')];if(!_0x1799b2&&_0x5946a5(_0x322a13,_0x48fcd9))return _0x176a11['_joinSuggestions'](_0x225bbe,_0x8a107d),_0x52478b[_0x4407('0x45')](_0x8a107d),!0x0;if(!_0x502449&&_0x5946a5(_0x48fcd9,_0x322a13))return _0x176a11[_0x4407('0x3d')](_0x8a107d,_0x225bbe),_0x52478b[_0x4407('0x45')](_0x225bbe),!0x0;}return!0x1;}}[_0x4407('0x3d')](_0x2c5a8e,_0x2c8392){if(_0x2c5a8e['isMultiRange'])for(const _0x3c64f7 of _0x2c8392['getRanges']())_0x2c5a8e[_0x4407('0x5b')](_0x3c64f7);else{const _0x1dd543=_0x2c8392[_0x4407('0x10a')]()[_0x4407('0x12f')];this[_0x4407('0xbc')](_0x2c5a8e,this[_0x4407('0x11c')][_0x4407('0xec')](_0x2c5a8e[_0x4407('0x10a')]()[_0x4407('0x50')],_0x1dd543));}_0x2c8392['removeMarkers']();}}class Dt{constructor(_0x225360){this[_0x4407('0x138')]=_0x225360,this[_0x4407('0x11c')]=_0x225360[_0x4407('0x47')],this[_0x4407('0xa5')]=new Map(),this[_0x4407('0x128')]=new Map(),this[_0x4407('0x9e')]();}[_0x4407('0xab')](_0x34e034,_0x25b398,_0x56d857,_0x23dc45,_0x32a369,_0x99c6a4){return new _0x30b61b(this[_0x4407('0x11c')],{'type':_0x34e034,'subType':_0x25b398,'id':_0x56d857,'author':_0x23dc45,'creator':_0x23dc45,'attributes':_0x32a369,'onAttributesChange':_0x99c6a4,'onAccept':(..._0x2c29be)=>this[_0x4407('0xcb')](_0x34e034,_0x25b398,_0x4407('0x73'))(..._0x2c29be),'onDiscard':(..._0x163c2d)=>this['getSuggestionCallback'](_0x34e034,_0x25b398,_0x4407('0xfc'))(..._0x163c2d)});}[_0x4407('0x2f')](_0x204a67,_0x8ac35f,_0x2e3d21,_0x54afdc){const _0x58dc08=_0x204a67+':'+_0x8ac35f+':'+_0x2e3d21;this[_0x4407('0xa5')]['set'](_0x58dc08,_0x54afdc);}[_0x4407('0xcb')](_0x2c9b70,_0x13cc77,_0x381bcb){const _0x53d2dd=_0x2c9b70+':'+_0x13cc77+':'+_0x381bcb;return this['_customCallbacks'][_0x4407('0x6c')](_0x53d2dd)||this['_defaultCallbacks'][_0x4407('0x6c')](_0x2c9b70+':'+_0x381bcb);}[_0x4407('0x9e')](){const _0x464577=()=>{},_0x7167de=_0x4d5f46=>{_0x4d5f46[_0x4407('0x22')]((_0x38a212,_0x4e0590)=>_0x38a212[_0x4407('0x50')][_0x4407('0x131')](_0x4e0590[_0x4407('0x50')])?0x1:-0x1),this[_0x4407('0x11c')]['change'](_0x2959e4=>{for(const _0x504a64 of _0x4d5f46){let _0x371b55;_0x371b55=_0x504a64[_0x4407('0x12f')][_0x4407('0x1d')]&&_0x504a64['end'][_0x4407('0xaa')]==_0x504a64[_0x4407('0x50')][_0x4407('0x3e')]?_0x2959e4[_0x4407('0x1c')](_0x504a64[_0x4407('0x50')][_0x4407('0x3e')],'on'):_0x2959e4[_0x4407('0x1c')](_0x504a64),this['_model'][_0x4407('0x33')](_0x371b55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2763c0=(_0x122454,_0x12ac00)=>{this[_0x4407('0x11c')][_0x4407('0xf3')](_0x275bde=>{const {commandName:_0x2476ae,commandParams:_0x57161f=[]}=_0x12ac00,_0x38e7c3=_0x122454[_0x4407('0x8d')](_0xe072c7=>(_t(_0xe072c7)&&(_0xe072c7=this[_0x4407('0x11c')][_0x4407('0xec')](_0xe072c7['end'])),_0xe072c7))[_0x4407('0xef')](_0x336087=>'$graveyard'!==_0x336087[_0x4407('0x110')][_0x4407('0xd1')]);if(_0x38e7c3[_0x4407('0x68')]<0x1)return;const _0x3a3a5f=Array[_0x4407('0x118')](this[_0x4407('0x11c')][_0x4407('0x32')][_0x4407('0xa0')][_0x4407('0xe4')]())[_0x4407('0x8d')](_0x575d48=>_0xe7e90e[_0x4407('0xb3')](_0x575d48));_0x275bde[_0x4407('0x56')](_0x38e7c3);for(const _0x3ee840 of this[_0x4407('0x138')][_0x4407('0xb8')]['commands']())_0x3ee840['refresh']();_0x57161f[_0x4407('0x77')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4407('0x40')](_0x2476ae,..._0x57161f);const _0x4f6bb5=_0x3a3a5f[_0x4407('0xef')](_0x5bddfc=>_0x4407('0x124')!=_0x5bddfc['root'][_0x4407('0xd1')]);_0x4f6bb5[_0x4407('0x68')]>0x0&&_0x275bde[_0x4407('0x56')](_0x4f6bb5);for(const _0x30b029 of _0x3a3a5f)_0x30b029[_0x4407('0xdb')]();});},_0x5da5b4=(_0xfb7391,_0x2f79f1)=>0x1==_0xfb7391[_0x4407('0x68')]&&0x1==_0x2f79f1['length']&&_0xfb7391[0x0]['end'][_0x4407('0x44')](_0x2f79f1[0x0][_0x4407('0x50')]),_0x26779e=(_0x397549,_0x214ae2,_0x173b4f,_0x216f25)=>xt(_0x397549,_0x214ae2,_0x173b4f,_0x216f25,this[_0x4407('0x11c')])?[_0x397549,_0x214ae2]:xt(_0x214ae2,_0x397549,_0x216f25,_0x173b4f,this[_0x4407('0x11c')])?[_0x214ae2,_0x397549]:null;this[_0x4407('0x128')]['set'](_0x4407('0x119'),_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0xd0'),_0x7167de),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0xfe'),_0x5da5b4),this['_defaultCallbacks']['set']('insertion:chain',_0x26779e),this[_0x4407('0x128')]['set']('deletion:accept',_0x7167de),this[_0x4407('0x128')][_0x4407('0xb9')]('deletion:discard',_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')]('deletion:join',_0x5da5b4),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x80'),_0x26779e),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x4c'),_0x2763c0),this['_defaultCallbacks'][_0x4407('0xb9')](_0x4407('0x9a'),_0x464577),this['_defaultCallbacks']['set']('formatInline:join',_0x5da5b4),this[_0x4407('0x128')]['set'](_0x4407('0xb'),_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x57'),_0x2763c0),this[_0x4407('0x128')]['set'](_0x4407('0x13d'),_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0xe5'),_0x5da5b4),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x136'),_0x464577);}}function Bt(_0x2fc579,_0x101c18,_0x4b883a){for(const _0x246bed of _0x101c18['parent'][_0x4407('0x3c')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x246bed[_0x4407('0x110')]==_0x246bed)return!0x1;if(!_0x4b883a['containsItem'](_0x246bed))return!0x1;if(_0x2fc579[_0x4407('0xf8')](_0x246bed)||_0x2fc579[_0x4407('0xf4')](_0x246bed))return!0x0;}return!0x1;}function _t(_0x1f596a){return _0x1f596a[_0x4407('0x12f')][_0x4407('0xaa')]==_0x1f596a[_0x4407('0x50')]['nodeAfter']&&_0x1f596a[_0x4407('0x12f')][_0x4407('0x54')];}function Mt(_0x3814c9,_0x23ceef,_0x14f924,_0x4aef2a){const _0x425d6b=_0x41c31f=>!_0x41c31f[_0x4407('0xb5')]['is'](_0x4407('0xcc'))&&!_0x4aef2a[_0x4407('0xf8')](_0x41c31f['item']),_0x106a22=_0x3814c9['start'][_0x4407('0x39')](_0x425d6b),_0x119757=_0x3814c9[_0x4407('0x12f')]['getLastMatchingPosition'](_0x425d6b,{'direction':_0x4407('0x7d')});return(!_0x3814c9[_0x4407('0x50')][_0x4407('0x44')](_0x106a22)||!_0x3814c9[_0x4407('0x12f')]['isEqual'](_0x119757))&&(_0x106a22[_0x4407('0x131')](_0x119757)?_0x14f924[_0x4407('0x81')](_0x23ceef,{'range':_0x14f924[_0x4407('0xec')](_0x106a22,_0x119757)}):_0x14f924['removeMarker'](_0x23ceef),!0x0);}function $t(_0x5f03ff){return _0x457b72(_0x5f03ff);}function Nt(_0x4d1406){const _0x4e79f4=_0x4d1406['start'][_0x4407('0x3e')];return _0x4e79f4&&_0x4e79f4['is']('element');}function Rt(_0x1f5f52,_0x1d7be7){const _0x35ed4d=_0x1d7be7[_0x4407('0xfd')][_0x4407('0xf8')](_0x1f5f52)||_0x1d7be7[_0x4407('0xfd')][_0x4407('0xee')](_0x1f5f52);return _0x1d7be7[_0x4407('0xec')](_0x1d7be7['createPositionAt'](_0x1f5f52,_0x4407('0xa3')),_0x35ed4d?_0x1d7be7[_0x4407('0x4')](_0x1f5f52):_0x1d7be7[_0x4407('0x9')](_0x1f5f52,_0x4407('0x12f')));}function xt(_0x4447aa,_0x48face,_0x240af1,_0x50865f,_0x502d7f){if(_0x240af1[_0x4407('0x12f')]['isEqual'](_0x50865f[_0x4407('0x50')]))return!0x0;if(_0x4447aa['type']!=_0x48face[_0x4407('0x69')])return!0x1;if(!_0x240af1[_0x4407('0x12f')]['isTouching'](_0x50865f[_0x4407('0x50')]))return!0x1;const _0x2049ff=_0x502d7f['createRange'](_0x240af1[_0x4407('0x12f')],_0x50865f['start'])['getWalker']();for(const _0x21f0ad of _0x2049ff)if([_0x4407('0x10'),_0x4407('0x3f')][_0x4407('0x7f')](_0x21f0ad[_0x4407('0x69')])&&_0x502d7f['schema'][_0x4407('0xf4')](_0x21f0ad[_0x4407('0xb5')]))return!0x1;return!0x0;}
23
+ const _0x3924=['execute','for','getFirstMarker','_enabledCommands','end','getChanges','filter','removed','suggestion','_saved','_findSuggestions','nodeAfter','_createSuggestion','notReady','$marker','isBefore','formatInline:discard','deletion:','document','createdAt','addMarker','removeComment','data-suggestion','trackChanges.mergeNestedSuggestions','isAtStart','push','item','_splitMarkerName','insertion','createPositionAt','createElement','before','marker-count','targetPosition','registerPostFixer','updateSuggestion','acceptSelectedSuggestions','_removeSuggestion','insertContent','formatInline:join','normal','deletion:chain','size','move','external:','_rangeIsInLocalUserInsertion','ck-suggestion-marker','isNextTo','markers','markerToHighlight','isAtEnd','_setSuggestionData','PendingActions','_updateSuggestionData','getAllAdjacentSuggestions','containsRangeInObject','_suggestionState','insertion:discard','clone','getRange','markInsertion','enableReadOnlyMode','updateMarker','remove','getAttribute','deletion:accept','CommentsRepository','toViewElement','track-changes-suggestion-data-mismatch','addMarkerName','addComment','isObject','formatInline:accept','multipleBlocks','fetchCommentThread','deleteContent','value','insertion:','accept','author','adapter','getChangedMarkers','previous','_commentsRepository','markMultiRangeDeletion','track-changes-suggestion-not-found','getSuggestions','includes','removeMarkers','init','multi','discardSuggestion','stop','formatInline:chain','getMarkers','skipNestingCheck','sort','change:data','addMarker:suggestion:formatBlock','discard','insertion:accept','always','then','isBlock','trackChanges','start','change:activeMarkers','batch','consumable','$textProxy','ck-suggestion-marker-','default','data','enqueueChange','unbindElementFromMarkerName','addSuggestion','nodeBefore','some','name','markerReady','dataReady','_addSuggestionMarker','parent','conversion','join','mapper','_adapter','forceDefaultExecution','addSuggestionData','addHighlight','highest','isRemovable','formatBlock','add','unbind','track-changes-user-not-found','getCustomProperty','isIntersectingWithRange','range','@external','markDeletion','track-changes-command-not-found','formatBlock:','removeClass','elementToElement','config','isOwn','has','attributes','setAttribute','_defaultCallbacks','writer','getLastMatchingPosition','formatInline:','activeMarkers','_breakSuggestionMarker','trackChanges.trackFormatChanges','element','backward','_getExternalAuthor','rethrowUnexpectedError','update:suggestion','stopListening','isMultiRange','isDocumentOperation','listenTo','newRange','options','resolve','hasComments','fire','getNearestSelectionRange','buildSuggestion','commandName','track-changes-adapter-missing-getsuggestion','bindElementToMarker','subType','getUser','_mergeNestedSuggestions','schema','markMultiRangeInsertion','oldRange','_descriptionFactory','_onDiscard','removeMarker','isInContent','_setSuggestionRange','acceptAllSuggestions','markerName','isSelectable','getItems','get','ck-suggestion-marker-formatBlock','plugins','addRange','acceptSuggestion','formatGroupId','registerCustomCallback','type','clear','getSuggestion','pluginName','markBlockFormat','moveTargetPosition','reconvertMarker','formatInline','containsPosition','markerNameToElements','fromRange','change','consume','position','_isForcedDefaultExecutionBlock','dataDowncast','trackChangesCommand','PENDING_ACTION_SUGGESTION','enableCommand','upcast','change:_saved','low','never','originalSuggestionId','track-changes-adapter-already-set','elementStart','error-saving-suggestion-data-suggestion-discarded','ready','showSuggestionHighlights','TrackChangesEditing','_refreshSuggestionsChain','discardAllSuggestions','containsRange','suggestion:','addCommentThread','Users','_trackFormatChanges','getMultiRangeId','return','isExternal','_customCallbacks','getRanges','dataToMarker','map','catch','isInsideObject','addClass','from','model','chain','splitPosition','insertion:chain','getIntersection','commands','substr','rejected','fromCharCode','creator','insert','setSelection','differ','addMarker:suggestion','_suggestions','getSuggestionCallback','suggestionLoaded','getFirstRange','_suggestionFactory','elementEnd','editor','markerToData','_registerDefaultCallbacks','toJSON','authorName','authoredAt','isLocal','commentThread','howMany','addUser','formatBlock:discard','editingDowncast','insertion:join','detach','collaboration.channelId','isTouching','$graveyard','isUndo','_checkSuggestionCorrectness','high','getDifference','createPositionAfter','isLimit','selection','next','_joinWithAdjacentSuggestions','markMultiRangeBlockFormat','length','_cutOutSuggestionMarker','getShiftedBy','hasSuggestion','isEqual','split','_model','open','delete','root','deletion','_getAuthorFromId','locale','createSelection','_editor','ck-suggestion-marker--active','every','_addThreadToSuggestion','group','formatBlock:join','accepted','rootName','isCollapsed','after','createRange','_joinSuggestions','splice','set','isAfter'];(function(_0xf97f91,_0x392429){const _0x24dcb3=function(_0x5a1d14){while(--_0x5a1d14){_0xf97f91['push'](_0xf97f91['shift']());}};_0x24dcb3(++_0x392429);}(_0x3924,0xa5));const _0x24dc=function(_0xf97f91,_0x392429){_0xf97f91=_0xf97f91-0x0;let _0x24dcb3=_0x3924[_0xf97f91];return _0x24dcb3;};import{Plugin as _0x26e1e9,PendingActions as _0x1a4584}from'ckeditor5/src/core';import{LiveRange as _0x21503c}from'ckeditor5/src/engine';import{CKEditorError as _0x1cc2fb,uid as _0x1d47f5,priorities as _0x454d35,logWarning as _0x516b1e}from'ckeditor5/src/utils';import{toWidget as _0x361f99}from'ckeditor5/src/widget';import{Users as _0x4dc0cd,hashObject as _0x3a4b2e}from'ckeditor5-collaboration/src/collaboration-core';import _0x56f7bb from'./commands/trackchangescommand';import _0x48a906 from'./commands/acceptsuggestioncommand';import _0x4b54b7 from'./commands/discardsuggestioncommand';import _0x351c36 from'./commands/executeonallsuggestionscommand';import _0x570f62 from'./commands/executeonselectedsuggestionscommand';import _0xc1d4ef from'./suggestion';import _0x1320e4 from'./suggestiondescriptionfactory';import _0x4cc8a2 from'./integrations/alignment';import _0x18a863 from'./integrations/basicstyles';import _0x383923 from'./integrations/blockquote';import _0x3480f9 from'./integrations/ckbox';import _0x3cb85e from'./integrations/codeblock';import _0x465102 from'./integrations/comments';import _0x3b32bb from'./integrations/deletecommand';import _0x1ca3c5 from'./integrations/documentlist';import _0x55f938 from'./integrations/entercommand';import _0x2b8c44 from'./integrations/findandreplace';import _0x51f450 from'./integrations/font';import _0x2abe67 from'./integrations/formatpainter';import _0x2f35ff from'./integrations/heading';import _0x21d2c2 from'./integrations/highlight';import _0x4db61e from'./integrations/horizontalline';import _0x4286ba from'./integrations/htmlembed';import _0x44d5e3 from'./integrations/image';import _0x5175dd from'./integrations/imagereplace';import _0x54f50a from'./integrations/importword';import _0x5a3bf4 from'./integrations/indent';import _0x38ff8f from'./integrations/inputcommand';import _0x1b0910 from'./integrations/link';import _0x1e98ed from'./integrations/list';import _0x5f3e80 from'./integrations/listproperties';import _0x161176 from'./integrations/mediaembed';import _0x15d905 from'./integrations/mention';import _0x414cb6 from'./integrations/pagebreak';import _0x4ea145 from'./integrations/paragraph';import _0x5b4a9f from'./integrations/removeformat';import _0x3c40be from'./integrations/restrictededitingmode';import _0x5c8af9 from'./integrations/shiftentercommand';import _0xe79ef4 from'./integrations/standardeditingmode';import _0xa1b515 from'./integrations/style';import _0x19c27f from'./integrations/table';import _0x1a4457 from'./integrations/tablemergesplit';import _0x388674 from'./integrations/tableheadings';import _0x21b38b from'./integrations/tableclipboard';import _0xefaa29 from'./integrations/tablecolumnresize';import _0x43738b from'./integrations/template';import _0x561545 from'./integrations/tableofcontents';import _0x21fa89 from'./integrations/title';import _0x2d289a from'./integrations/undo';import{getTranslation as _0x53685f}from'./utils/common-translations';import _0x3515e7 from'./integrations/tablecaption';import _0x412403 from'./integrations/documentlistproperties';import _0x45f0a4 from'./integrations/tableproperties';export default class p extends _0x26e1e9{static get['requires'](){return[_0x24dc('0xdf'),_0x4dc0cd,_0x1a4584,_0x4cc8a2,_0x18a863,_0x383923,_0x3480f9,_0x3cb85e,_0x465102,_0x3b32bb,_0x1ca3c5,_0x412403,_0x55f938,_0x2b8c44,_0x51f450,_0x2abe67,_0x2f35ff,_0x21d2c2,_0x4db61e,_0x4286ba,_0x44d5e3,_0x5175dd,_0x54f50a,_0x5a3bf4,_0x38ff8f,_0x1b0910,_0x1e98ed,_0x5f3e80,_0x161176,_0x15d905,_0x414cb6,_0x4ea145,_0x5b4a9f,_0x3c40be,_0x5c8af9,_0xe79ef4,_0xa1b515,_0x19c27f,_0x1a4457,_0x388674,_0x3515e7,_0x21b38b,_0xefaa29,_0x561545,_0x45f0a4,_0x43738b,_0x21fa89,_0x2d289a];}static get[_0x24dc('0x24')](){return _0x24dc('0x3e');}constructor(_0x580a0b){function _0x55ab25(_0x5d8e7c){return _0x5d8e7c['map'](_0x1f4d01=>String[_0x24dc('0x59')](_0x1f4d01))['join']('');}super(_0x580a0b),this[_0x24dc('0x9b')](_0x24dc('0x137'),[]),this['on'](_0x24dc('0x107'),(_0x374f8b,_0x4204c8,_0x159871,_0x1141f2)=>{this[_0x24dc('0x86')][_0x24dc('0x2c')](()=>{for(const _0x40990d of[..._0x1141f2,..._0x159871])this['_model']['markers'][_0x24dc('0x130')](_0x40990d)&&_0x580a0b['editing'][_0x24dc('0x27')](_0x40990d);});}),this[_0x24dc('0x11')]=new _0x1320e4(this[_0x24dc('0x65')][_0x24dc('0x51')][_0x24dc('0xe')],this[_0x24dc('0x65')][_0x24dc('0x8c')]),this['_adapter']=null,this['_suggestionFactory']=new Dt(this[_0x24dc('0x65')]),this[_0x24dc('0x5f')]=new Map(),this['_commentsRepository']=_0x580a0b[_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0xdf')),this[_0x24dc('0xa0')]=new Set(),this[_0x24dc('0x86')]=this[_0x24dc('0x65')]['model'],this[_0x24dc('0xd5')]=new WeakMap(),this[_0x24dc('0x2f')]=!0x1,_0x580a0b[_0x24dc('0x12e')]['define']('trackChanges.trackFormatChanges',_0x24dc('0x10c')),this['_trackFormatChanges']=_0x580a0b['config'][_0x24dc('0x1a')](_0x24dc('0x139')),_0x580a0b[_0x24dc('0x12e')]['define'](_0x24dc('0xb4'),!0x0),this[_0x24dc('0xd')]=_0x580a0b[_0x24dc('0x12e')][_0x24dc('0x1a')](_0x24dc('0xb4')),this[_0x24dc('0x31')]=new _0x56f7bb(_0x580a0b,this[_0x24dc('0xa0')]),this[_0x55ab25([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55ab25([0x34,0x30,0x34,0x36,0x31,0x34,0x32,0x30]);}[_0x24dc('0xf6')](){const _0x2cb200=this[_0x24dc('0x65')];_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')]('editingDowncast')['markerToHighlight']({'model':_0x24dc('0xa5'),'view':_0x267138=>{const {id:_0x41d0f5,type:_0xead147}=this[_0x24dc('0xb8')](_0x267138[_0x24dc('0x17')]),_0x24d1a8=[_0x24dc('0xcb'),_0x24dc('0x10b')+_0xead147];let _0x220e2f=0xbb8;return this[_0x24dc('0x137')][_0x24dc('0xf4')](_0x267138[_0x24dc('0x17')])&&(_0x24d1a8['push'](_0x24dc('0x8f')),_0x220e2f=0xbc2),'deletion'==_0xead147&&(_0x220e2f+=0x5),{'classes':_0x24d1a8,'attributes':{'data-suggestion':_0x41d0f5},'priority':_0x220e2f};}}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x30'))['add'](_0x262904=>{_0x262904['on'](_0x24dc('0x5e'),(_0x5257b7,_0x5ca9b9,_0x5810cc)=>{if(!_0x5810cc[_0x24dc('0x2')][_0x24dc('0x3d')])return;const _0x2f6afa=_0x5ca9b9[_0x24dc('0xb7')];if(!_0x2f6afa)return;const _0x3c7d4d=_0x5810cc[_0x24dc('0x11a')][_0x24dc('0xe0')](_0x2f6afa);_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')][_0x24dc('0xe4')](_0x2f6afa)&&_0x3c7d4d&&!_0x3c7d4d[_0x24dc('0x125')]('widget')&&_0x3c7d4d['is']('containerElement')&&_0x361f99(_0x3c7d4d,_0x5810cc[_0x24dc('0x134')]);},{'priority':_0x24dc('0x78')});}),_0x2cb200['conversion'][_0x24dc('0x9e')](_0x24dc('0x30'))[_0x24dc('0xce')]({'model':'suggestion','view':(_0xd17f16,_0x31b9b1)=>{if(!_0x31b9b1['options'][_0x24dc('0x3d')])return null;const {type:_0x54526c}=this['_splitMarkerName'](_0xd17f16[_0x24dc('0x17')]);return{'classes':[_0x24dc('0xcb'),_0x24dc('0x10b')+_0x54526c],'priority':0xbb8};}});const _0x46ab16=({showActiveMarkers:_0x139c75=!0x0}={})=>(_0x493ce5,_0xb8a9c8,_0x39d046)=>{if(!_0xb8a9c8[_0x24dc('0xb7')])return;if(_0xb8a9c8[_0x24dc('0xb7')]['is'](_0x24dc('0x7c')))return void _0x39d046[_0x24dc('0x109')][_0x24dc('0x2d')](_0xb8a9c8[_0x24dc('0xb7')],_0x493ce5[_0x24dc('0x113')]);const _0x6c81eb=_0x39d046['mapper'][_0x24dc('0xe0')](_0xb8a9c8[_0x24dc('0xb7')]);if(!(_0xb8a9c8['item']['is'](_0x24dc('0x13a'))&&_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')][_0x24dc('0x104')](_0xb8a9c8[_0x24dc('0xb7')])&&!_0x6c81eb[_0x24dc('0x125')]('addHighlight')))return;const {id:_0x5945a8}=this['_splitMarkerName'](_0xb8a9c8[_0x24dc('0x17')]);_0x39d046[_0x24dc('0x134')][_0x24dc('0x4f')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x6c81eb),_0x39d046[_0x24dc('0x134')][_0x24dc('0x132')](_0x24dc('0xb3'),_0x5945a8,_0x6c81eb),_0x39d046[_0x24dc('0x11a')][_0x24dc('0xa')](_0x6c81eb,_0xb8a9c8['markerName']),_0x139c75&&(this[_0x24dc('0x137')]['includes'](_0xb8a9c8['markerName'])?_0x39d046['writer'][_0x24dc('0x4f')](_0x24dc('0x8f'),_0x6c81eb):_0x39d046[_0x24dc('0x134')][_0x24dc('0x12c')](_0x24dc('0x8f'),_0x6c81eb));for(const _0x421026 of _0x2cb200[_0x24dc('0x51')]['createRangeIn'](_0xb8a9c8['item'])[_0x24dc('0x19')]())_0x39d046[_0x24dc('0x109')]['consume'](_0x421026,_0x493ce5[_0x24dc('0x113')]);_0x39d046['consumable'][_0x24dc('0x2d')](_0xb8a9c8[_0x24dc('0xb7')],_0x493ce5[_0x24dc('0x113')]);};_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')]('dataDowncast')[_0x24dc('0x122')](_0x4f892b=>{_0x4f892b['on'](_0x24dc('0xff'),(_0x379671,_0x2225a2,_0x539c5c)=>{_0x539c5c['options'][_0x24dc('0x3d')]&&_0x46ab16({'showActiveMarkers':!0x1})(_0x379671,_0x2225a2,_0x539c5c);},{'priority':_0x24dc('0x11f')});}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x30'))[_0x24dc('0x66')]({'model':_0x24dc('0xa5'),'view':(_0x48df26,_0x5435d5)=>_0x5435d5['options'][_0x24dc('0x3d')]?null:{'group':'suggestion','name':_0x48df26[_0x24dc('0x57')](0xb)}}),_0x2cb200[_0x24dc('0x118')]['for']('upcast')[_0x24dc('0x12d')]({'view':{'name':_0x24dc('0xa5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ed07e,{writer:_0x31290f})=>{let _0x529533=_0x24dc('0x42')+_0x5ed07e[_0x24dc('0xdd')]('suggestion-type')+':'+_0x5ed07e[_0x24dc('0xdd')]('id');return _0x5ed07e[_0x24dc('0xdd')](_0x24dc('0xbd'))&&(_0x529533+=':'+_0x5ed07e[_0x24dc('0xdd')]('marker-count')),_0x31290f[_0x24dc('0xbb')](_0x24dc('0xab'),{'data-name':_0x529533});}}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x34'))[_0x24dc('0x4b')]({'view':_0x24dc('0xa5')}),_0x2cb200['conversion'][_0x24dc('0x9e')](_0x24dc('0x70'))[_0x24dc('0x122')](_0xf5699d=>{_0xf5699d['on'](_0x24dc('0xff'),_0x46ab16(),{'priority':'high'});}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x70'))['add'](_0x2eedf3=>{_0x2eedf3['on']('removeMarker:suggestion:formatBlock',(_0x4c7416,_0x418ab4,_0x5e4bcf)=>{const _0x4df808=_0x5e4bcf[_0x24dc('0x11a')][_0x24dc('0x2a')](_0x418ab4[_0x24dc('0x17')]);if(_0x4df808)for(const _0x370d0a of _0x4df808)_0x370d0a['getCustomProperty'](_0x24dc('0x11e'))||(_0x5e4bcf[_0x24dc('0x134')][_0x24dc('0x12c')]([_0x24dc('0xcb'),_0x24dc('0x1b'),_0x24dc('0x8f')],_0x370d0a),_0x5e4bcf[_0x24dc('0x134')]['removeAttribute'](_0x24dc('0xb3'),_0x370d0a),_0x5e4bcf[_0x24dc('0x11a')][_0x24dc('0x10f')](_0x370d0a,_0x418ab4[_0x24dc('0x17')]));},{'priority':_0x24dc('0x78')});}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0xbf')](_0x2f39fa=>{let _0x19a128=!0x1;const _0x2ed584=Array[_0x24dc('0x50')](_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0x5d')][_0x24dc('0xee')]()),_0x2d11f5=new Set();for(const {name:_0x49448a,data:_0x302419}of _0x2ed584){const {group:_0x21e7d5,type:_0x4752f1,id:_0x1463d4}=this[_0x24dc('0xb8')](_0x49448a);if(_0x24dc('0xa5')!==_0x21e7d5)continue;const _0x21d844=this['_suggestions']['get'](_0x1463d4);if(null!=_0x302419[_0x24dc('0x1')]){_0x24dc('0x28')==_0x4752f1&&(_0x19a128=_0x19a128||Mt(_0x302419[_0x24dc('0x1')],_0x49448a,_0x2f39fa,_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')]));if(_0x302419[_0x24dc('0x1')]['isCollapsed']||_0x24dc('0x75')==_0x302419[_0x24dc('0x1')][_0x24dc('0x89')][_0x24dc('0x95')]||_0x24dc('0x121')==_0x4752f1&&!Nt(_0x302419['newRange'])||'deletion'==_0x4752f1&&!(!_t(_0x28cc94=_0x302419[_0x24dc('0x1')])&&!function(_0x39e6e6){return _0x39e6e6['start'][_0x24dc('0x117')]==_0x39e6e6[_0x24dc('0xa1')][_0x24dc('0x111')]&&_0x39e6e6['start']['isAtEnd'];}(_0x28cc94)))_0x2f39fa[_0x24dc('0x13')](_0x49448a),_0x19a128=!0x0;else{if(!_0x21d844||!_0x21d844[_0x24dc('0x14')])continue;_0x2d11f5['add'](_0x21d844);}}}var _0x28cc94;return _0x2d11f5[_0x24dc('0xc7')]>0x0&&(_0x19a128=!!this['_joinWithAdjacentSuggestions'](_0x2d11f5)||_0x19a128),_0x19a128;}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0xbf')](_0x36899b=>{let _0x73d4d=!0x1;for(const _0x6d6518 of _0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0x5d')][_0x24dc('0xa2')]()){if(_0x24dc('0x5b')!=_0x6d6518[_0x24dc('0x21')])continue;const _0x441ad3=_0x6d6518[_0x24dc('0x2e')]['getShiftedBy'](_0x6d6518['length']);if(_0x441ad3[_0x24dc('0xcf')])for(const _0x51a4ba of this[_0x24dc('0x5f')]['values']()){if(_0x51a4ba[_0x24dc('0x140')]||!_0x51a4ba[_0x24dc('0x14')])continue;if('formatBlock'!=_0x51a4ba[_0x24dc('0x21')])continue;const _0x4f21d6=_0x51a4ba[_0x24dc('0x62')]();if(_0x4f21d6['start']['parent']!=_0x4f21d6[_0x24dc('0xa1')]['parent']&&_0x4f21d6['end'][_0x24dc('0x84')](_0x6d6518[_0x24dc('0x2e')])){const _0x31310c=_0x2cb200[_0x24dc('0x51')]['createRange'](_0x4f21d6[_0x24dc('0x106')],_0x441ad3);_0x36899b[_0x24dc('0xdb')](_0x51a4ba[_0x24dc('0x9f')](),{'range':_0x31310c}),_0x73d4d=!0x0;}}}return _0x73d4d;}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xcd')]['on'](_0x24dc('0x13e'),(_0xa75b9c,_0x24b138,_0x44b085)=>{if(null==_0x44b085){const {id:_0x2dedba}=this['_splitMarkerName'](_0x24b138[_0x24dc('0x113')]),_0x338a4d=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x2dedba);_0x338a4d&&_0x338a4d['addMarkerName'](_0x24b138[_0x24dc('0x113')]);}}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')]['on'](_0x24dc('0xfe'),()=>{const _0x3941fc=Array['from'](_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0x5d')][_0x24dc('0xee')]())[_0x24dc('0xa3')](_0x7dd970=>_0x24dc('0xa5')===this[_0x24dc('0xb8')](_0x7dd970[_0x24dc('0x113')])[_0x24dc('0x92')]);if(0x0===_0x3941fc[_0x24dc('0x80')])return;_0x3941fc[_0x24dc('0xfd')]((_0x1873c1,_0x1e4a88)=>{const _0x3abb5e=_0x1873c1['data'][_0x24dc('0x10')],_0x118f07=_0x1e4a88[_0x24dc('0x10d')][_0x24dc('0x10')];return null===_0x3abb5e&&null===_0x118f07?0x0:null===_0x3abb5e&&null!==_0x118f07?-0x1:null!==_0x3abb5e&&null===_0x118f07?0x1:_0x3abb5e['start']['isBefore'](_0x118f07['start'])?-0x1:0x1;});const _0x51c154=new Set(),_0x5886fd=new Set();for(const {name:_0x166d63,data:_0x421436}of _0x3941fc){const {id:_0x357b9b}=this[_0x24dc('0xb8')](_0x166d63);if(null===_0x421436[_0x24dc('0x10')]){const _0x2c7d17=this['_handleNewSuggestionMarker'](_0x166d63);_0x5886fd[_0x24dc('0x122')](_0x2c7d17);}else{const _0x55db85=this[_0x24dc('0x5f')]['get'](_0x357b9b);null!==_0x421436[_0x24dc('0x1')]||_0x55db85[_0x24dc('0x14')]?(_0x51c154[_0x24dc('0x122')](_0x55db85['head']),_0x5886fd['add'](_0x55db85)):this[_0x24dc('0xc2')](_0x55db85);}}_0x5886fd[_0x24dc('0xc7')]>0x0&&this[_0x24dc('0x3f')](_0x5886fd);for(const _0x5665fb of _0x51c154)this['fire']('suggestionChanged',_0x5665fb);}),_0x2cb200[_0x24dc('0x51')]['on']('applyOperation',(_0x4561a1,_0x4d7f7d)=>{const _0x526059=_0x4d7f7d[0x0];if(!this[_0x24dc('0x5f')][_0x24dc('0xc7')])return;if(!_0x526059[_0x24dc('0x141')])return;if(_0x526059[_0x24dc('0x108')][_0x24dc('0x76')]||!_0x526059['batch'][_0x24dc('0x6b')])return;let _0x168b2c,_0x21f7a7;switch(_0x526059[_0x24dc('0x21')]){case'insert':_0x168b2c=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0x526059[_0x24dc('0x2e')]),_0x21f7a7=_0x168b2c[_0x24dc('0x82')](_0x526059[_0x24dc('0x6d')]);break;case _0x24dc('0x85'):_0x168b2c=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0x526059[_0x24dc('0x53')]),_0x21f7a7=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0x526059[_0x24dc('0x26')]);break;case _0x24dc('0xc8'):_0x168b2c=_0x2cb200[_0x24dc('0x51')]['createPositionAt'](_0x526059[_0x24dc('0xbe')]),_0x21f7a7=_0x168b2c['getShiftedBy'](_0x526059[_0x24dc('0x6d')]);break;default:return;}const _0x2f3adf=_0x2cb200[_0x24dc('0x51')][_0x24dc('0x98')](_0x168b2c,_0x21f7a7);_0x2cb200[_0x24dc('0x51')][_0x24dc('0x2c')](()=>{for(const {suggestion:_0x48ff58,meta:_0x2f36a0}of this[_0x24dc('0xa7')](_0x2f3adf)){if(_0x48ff58['isMultiRange'])continue;if(_0x24dc('0x28')==_0x48ff58[_0x24dc('0x21')])continue;const _0x276a5c=_0x48ff58['data']&&_0x48ff58[_0x24dc('0x10d')][_0x24dc('0xe6')];(_0x24dc('0x121')!=_0x48ff58[_0x24dc('0x21')]||_0x24dc('0x85')==_0x526059[_0x24dc('0x21')]&&!_0x276a5c)&&(_0x2f36a0['containsRangeInObject']||'insertion'==_0x48ff58[_0x24dc('0x21')]&&_0x2f36a0[_0x24dc('0x12f')]||_0x48ff58[_0x24dc('0x62')]()[_0x24dc('0x41')](_0x2f3adf)&&this[_0x24dc('0x138')](_0x48ff58,_0x168b2c,_0x21f7a7));}});},{'priority':'lowest'}),_0x2cb200[_0x24dc('0x51')]['on']('deleteContent',(_0xc394b6,_0x1f8394)=>{const _0x21d7c3=_0x1f8394[0x0],_0x3f2390=_0x1f8394[0x1];if(_0x3f2390&&_0x3f2390[_0x24dc('0x11c')])return;if(this[_0x24dc('0x2f')])return;if(!this[_0x24dc('0x31')][_0x24dc('0xe9')])return;if(_0x21d7c3['isCollapsed'])return;const _0x348616=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')],{start:_0x2c56ac,end:_0x328e05}=_0x21d7c3['getFirstRange'](),_0x499af7=_0x2c56ac[_0x24dc('0xa8')]&&_0x348616[_0x24dc('0x7b')](_0x2c56ac['nodeAfter'])?null:_0x348616[_0x24dc('0x6')](_0x2c56ac,'forward'),_0x400f27=_0x328e05[_0x24dc('0x111')]&&_0x348616[_0x24dc('0x7b')](_0x328e05['nodeBefore'])?null:_0x348616[_0x24dc('0x6')](_0x328e05,_0x24dc('0x13b')),_0x24b096=_0x2cb200[_0x24dc('0x51')][_0x24dc('0x98')](_0x499af7?_0x499af7[_0x24dc('0x106')]:_0x2c56ac,_0x400f27?_0x400f27[_0x24dc('0xa1')]:_0x328e05);_0x2cb200[_0x24dc('0x51')]['change'](_0x2d6dbd=>{this[_0x24dc('0x129')](_0x24b096);const _0x148a81=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')]['getNearestSelectionRange'](_0x24b096[_0x24dc('0x106')]);_0x21d7c3['is']('documentSelection')?_0x2d6dbd[_0x24dc('0x5c')](_0x148a81):_0x21d7c3['setTo'](_0x148a81);}),_0xc394b6[_0x24dc('0xf9')]();},{'priority':_0x454d35[_0x24dc('0xc5')]+0xa}),_0x2cb200[_0x24dc('0x51')]['on']('insertContent',(_0x174049,_0x1737c3)=>{const _0x3482c0=_0x1737c3[_0x1737c3['length']-0x1];_0x3482c0&&_0x3482c0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x24dc('0xe9')]&&(_0x2cb200[_0x24dc('0x51')][_0x24dc('0x2c')](()=>{let _0x256ca8=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xc3')](_0x1737c3[0x0],_0x1737c3[0x1],_0x1737c3[0x2],{'forceDefaultExecution':!0x0});if(!_0x256ca8)return;_0x174049[_0x24dc('0x47')]=_0x256ca8[_0x24dc('0xd7')]();const _0xcb3f7d=_0x256ca8[_0x24dc('0xa1')][_0x24dc('0x111')],_0x33ab16=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')];_0xcb3f7d&&_0x33ab16['isBlock'](_0xcb3f7d)&&!_0x33ab16[_0x24dc('0xe4')](_0xcb3f7d)&&(_0x256ca8=_0x2cb200['model']['createRange'](_0x256ca8['start'],_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0xcb3f7d,_0x24dc('0xa1')))),this[_0x24dc('0xd9')](_0x256ca8);}),_0x174049['stop']());},{'priority':_0x24dc('0x78')}),this['editor'][_0x24dc('0x56')]['add'](_0x24dc('0x105'),this[_0x24dc('0x31')]),this[_0x24dc('0x33')](_0x24dc('0x105'));const _0x30e5e9=new _0x48a906(_0x2cb200,this[_0x24dc('0x5f')]);_0x2cb200[_0x24dc('0x56')][_0x24dc('0x122')](_0x24dc('0x1e'),_0x30e5e9),this[_0x24dc('0x33')](_0x24dc('0x1e'));const _0x1e6825=new _0x4b54b7(_0x2cb200,this['_suggestions']);_0x2cb200[_0x24dc('0x56')][_0x24dc('0x122')](_0x24dc('0xf8'),_0x1e6825),this['enableCommand'](_0x24dc('0xf8')),_0x2cb200[_0x24dc('0x56')]['add']('acceptAllSuggestions',new _0x351c36(_0x2cb200,_0x30e5e9,this[_0x24dc('0x5f')])),this[_0x24dc('0x33')](_0x24dc('0x16')),_0x2cb200[_0x24dc('0x56')]['add'](_0x24dc('0x40'),new _0x351c36(_0x2cb200,_0x1e6825,this[_0x24dc('0x5f')])),this[_0x24dc('0x33')](_0x24dc('0x40')),_0x2cb200[_0x24dc('0x56')]['add'](_0x24dc('0xc1'),new _0x570f62(_0x2cb200,_0x30e5e9,this[_0x24dc('0x5f')])),this[_0x24dc('0x33')](_0x24dc('0xc1')),_0x2cb200[_0x24dc('0x56')][_0x24dc('0x122')]('discardSelectedSuggestions',new _0x570f62(_0x2cb200,_0x1e6825,this['_suggestions'])),this[_0x24dc('0x33')]('discardSelectedSuggestions');const _0xcac75c=_0x2cb200[_0x24dc('0x1c')]['get']('CommentsRepository');this[_0x24dc('0x0')](_0xcac75c,_0x24dc('0xe3'),(_0x5b8a0a,{threadId:_0x25219d})=>{const _0x1dc7c3=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x25219d);_0x1dc7c3&&_0x1dc7c3[_0x24dc('0x6c')]&&0x1===_0x1dc7c3[_0x24dc('0x6c')][_0x24dc('0x80')]&&this[_0x24dc('0xd2')](_0x25219d,{'hasComments':!0x0});},{'priority':'low'}),this[_0x24dc('0x0')](_0xcac75c,_0x24dc('0xb2'),(_0x41a81a,{threadId:_0x7c1b02})=>{const _0x2ba278=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x7c1b02);_0x2ba278&&_0x2ba278[_0x24dc('0x6c')]&&!_0x2ba278[_0x24dc('0x6c')][_0x24dc('0x80')]&&this[_0x24dc('0xd2')](_0x7c1b02,{'hasComments':!0x1});},{'priority':_0x24dc('0x36')});}set[_0x24dc('0xed')](_0x4133b9){if(this[_0x24dc('0x11b')])throw new _0x1cc2fb(_0x24dc('0x39'),this);this['_adapter']=_0x4133b9;}get[_0x24dc('0xed')](){return this['_adapter'];}[_0x24dc('0xf3')]({skipNotAttached:_0x2e66ba=!0x1,toJSON:_0x18328e=!0x1}={}){const _0x1c6315=[];for(const _0x551c95 of this['_suggestions']['values']())_0x2e66ba&&!_0x551c95['isInContent']||_0x1c6315[_0x24dc('0xb6')](_0x551c95);return _0x18328e?_0x1c6315[_0x24dc('0x4c')](_0x467c1e=>_0x467c1e[_0x24dc('0x68')]()):_0x1c6315;}['getSuggestion'](_0x334e85){const _0x21be00=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x334e85);if(!_0x21be00)throw new _0x1cc2fb(_0x24dc('0xf2'),this);return _0x21be00;}[_0x24dc('0x83')](_0x5cea10){return this[_0x24dc('0x5f')][_0x24dc('0x130')](_0x5cea10);}['addSuggestionData'](_0x4bb200){const {authorId:_0x41ff85,id:_0x163bbc,attributes:_0x8fe42a}=_0x4bb200,[_0x9786e6,_0x172552]=_0x4bb200[_0x24dc('0x21')]['split'](':'),_0xbc476a=this['_suggestions']['get'](_0x163bbc)||this['_createSuggestion'](_0x9786e6,_0x172552,_0x163bbc,_0x41ff85,_0x8fe42a);if(this['_addThreadToSuggestion'](_0xbc476a),this[_0x24dc('0x77')](_0xbc476a,_0x9786e6,_0x172552||null,_0x41ff85),_0xbc476a[_0x24dc('0xb0')]=_0x4bb200[_0x24dc('0xb0')],_0x8fe42a&&_0x8fe42a[_0x24dc('0x128')]){const _0x2a9842=_0x8fe42a[_0x24dc('0x128')],_0x40f8fb=this[_0x24dc('0x13c')](_0x2a9842[_0x24dc('0x69')]);_0xbc476a[_0x24dc('0x6a')]=_0x2a9842[_0x24dc('0xb0')],_0xbc476a[_0x24dc('0xec')]=_0x40f8fb,_0xbc476a[_0x24dc('0x48')]=!0x0;}else _0xbc476a[_0x24dc('0x6a')]=_0x4bb200[_0x24dc('0xb0')];switch(_0x4bb200[_0x24dc('0x10d')]&&(_0xbc476a[_0x24dc('0x10d')]=_0x4bb200[_0x24dc('0x10d')]),_0x4bb200[_0x24dc('0x131')]&&(_0xbc476a[_0x24dc('0x131')]=_0x4bb200[_0x24dc('0x131')]),this[_0x24dc('0x11b')]&&this[_0x24dc('0x11b')][_0x24dc('0x110')]||(_0xbc476a[_0x24dc('0xa6')]=!0x0),this[_0x24dc('0xd5')][_0x24dc('0x1a')](_0xbc476a)){case'notReady':this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0xbc476a,_0x24dc('0x115'));break;case _0x24dc('0x114'):_0xbc476a['isInContent']?(this[_0x24dc('0xd5')]['set'](_0xbc476a,_0x24dc('0x3c')),this[_0x24dc('0x5')]('suggestionLoaded',_0xbc476a)):this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0xbc476a,_0x24dc('0xa4'));}return _0xbc476a;}[_0x24dc('0x1e')](_0x5e4ddf){this['forceDefaultExecution'](()=>{this[_0x24dc('0x65')][_0x24dc('0x51')][_0x24dc('0x2c')](()=>{for(const _0xaf53a0 of _0x5e4ddf[_0x24dc('0xd3')]())_0xaf53a0[_0x24dc('0xeb')]();});});}['discardSuggestion'](_0x5e2afc){this[_0x24dc('0x11c')](()=>{this[_0x24dc('0x65')]['model']['change'](()=>{for(const _0x1d5ddb of _0x5e2afc[_0x24dc('0xd3')]())_0x1d5ddb[_0x24dc('0x100')]();});});}[_0x24dc('0x33')](_0x13123f,_0x2c2172){const _0xef5b6b=this[_0x24dc('0x65')]['commands'][_0x24dc('0x1a')](_0x13123f);if(!_0xef5b6b)throw new _0x1cc2fb(_0x24dc('0x12a'),this,{'commandName':_0x13123f});this[_0x24dc('0xa0')][_0x24dc('0x122')](_0xef5b6b),_0x2c2172&&_0xef5b6b['on'](_0x24dc('0x9d'),(_0x484d37,_0xf1e3f2)=>{this['trackChangesCommand'][_0x24dc('0xe9')]&&(this[_0x24dc('0x2f')]||_0xf1e3f2[_0x24dc('0x80')]>0x0&&_0xf1e3f2[_0xf1e3f2[_0x24dc('0x80')]-0x1]&&_0xf1e3f2[_0xf1e3f2[_0x24dc('0x80')]-0x1][_0x24dc('0x11c')]||(_0x2c2172((..._0x268940)=>_0xef5b6b[_0x24dc('0x9d')](..._0x268940,{'forceDefaultExecution':!0x0}),..._0xf1e3f2),_0x484d37[_0x24dc('0xf9')]()));},{'priority':_0x24dc('0x78')});}[_0x24dc('0x11c')](_0x571bc3){let _0x1f1828,_0x11cd45;const _0x5648cf=this['_isForcedDefaultExecutionBlock'];this[_0x24dc('0x2f')]=!0x0;try{_0x1f1828=_0x571bc3();}catch(_0x5ca1e1){_0x11cd45=_0x5ca1e1;}return _0x5648cf||(this[_0x24dc('0x2f')]=!0x1),_0x11cd45&&_0x1cc2fb[_0x24dc('0x13d')](_0x11cd45,this),_0x1f1828;}[_0x24dc('0xd9')](_0x4fcc30,_0x12de1a=null,_0x143d8b={}){if(_0x4fcc30[_0x24dc('0x96')])return null;const _0x55d6fd=this[_0x24dc('0x65')]['plugins']['get']('Users')['me'];for(const {suggestion:_0x41238b,meta:_0x23e6bf}of this['_findSuggestions'](_0x4fcc30,_0x24dc('0xb9')))if(_0x23e6bf[_0x24dc('0x12f')]){if(!_0x23e6bf[_0x24dc('0xcc')]){if(!this[_0x24dc('0xd')]&&_0x23e6bf['containsRangeInObject'])continue;return _0x41238b;}if(_0x12de1a==_0x41238b[_0x24dc('0xb')]){const _0xe50fc9=_0x41238b['getFirstRange']();return _0xe50fc9['start']['isEqual'](_0x4fcc30[_0x24dc('0xa1')])?this[_0x24dc('0x15')](_0x41238b,this['_model'][_0x24dc('0x98')](_0x4fcc30[_0x24dc('0x106')],_0xe50fc9[_0x24dc('0xa1')])):this[_0x24dc('0x15')](_0x41238b,this['_model'][_0x24dc('0x98')](_0xe50fc9['start'],_0x4fcc30[_0x24dc('0xa1')])),_0x41238b;}}const _0x437f7e=_0x1d47f5(),_0x951368=_0x55d6fd['id'],_0x27036b=_0x12de1a?'insertion:'+_0x12de1a:_0x24dc('0xb9'),_0x1d7786=this['_setSuggestionData']({'id':_0x437f7e,'type':_0x27036b,'createdAt':new Date(),'authorId':_0x951368,'attributes':_0x143d8b});return this[_0x24dc('0x116')](_0x27036b,_0x437f7e,_0x951368,_0x4fcc30),_0x1d7786;}[_0x24dc('0xf')](_0x40b581,_0x470e42=_0x24dc('0xf7'),_0xc5ecab={}){const _0xdb17c6=this[_0x24dc('0x65')][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0x44'))['me'],_0x3f7843=this[_0x24dc('0x63')][_0x24dc('0x60')]('insertion',_0x470e42,_0x24dc('0x119'));for(const _0x5d3ec9 of this['getSuggestions']())if(_0x5d3ec9[_0x24dc('0xec')]['id']==_0xdb17c6['id']&&_0x24dc('0xb9')==_0x5d3ec9[_0x24dc('0x21')]&&_0x5d3ec9[_0x24dc('0xb')]==_0x470e42&&(_0x3f7843(_0x5d3ec9[_0x24dc('0x4a')](),_0x40b581)||_0x3f7843(_0x40b581,_0x5d3ec9['getRanges']()))){for(const _0x1a0144 of _0x40b581)_0x5d3ec9[_0x24dc('0x1d')](_0x1a0144);return _0x5d3ec9;}if(this['_mergeNestedSuggestions'])for(const _0x2ed075 of _0x40b581)for(const {suggestion:_0x5b6ac6,meta:_0x1bacba}of this[_0x24dc('0xa7')](_0x2ed075,_0x24dc('0xb9'))){if(!_0x1bacba['isOwn'])continue;let _0x4b686c=!0x0;for(const _0xf26cff of _0x5b6ac6['getRanges']())for(const _0x2d47bb of _0x40b581)if(!_0xf26cff[_0x24dc('0x41')](_0x2d47bb)){_0x4b686c=!0x1;break;}if(_0x4b686c)return _0x5b6ac6;}const _0x168497=_0x1d47f5(),_0xfc2181=_0xdb17c6['id'],_0x5e69f1=_0x24dc('0xea')+_0x470e42,_0x37ef2c=this[_0x24dc('0xd0')]({'id':_0x168497,'type':_0x5e69f1,'createdAt':new Date(),'authorId':_0xfc2181,'attributes':_0xc5ecab});for(const _0x25bbb5 of _0x40b581)this['_addSuggestionMarker'](_0x5e69f1,_0x168497,_0xfc2181,_0x25bbb5,_0xc1d4ef['getMultiRangeId']());return _0x37ef2c;}['markInlineFormat'](_0x2bceee,_0x40a6d9,_0x28eb13=null,_0x290c4a={}){if(_0x28eb13=_0x28eb13||$t(_0x40a6d9),_0x2bceee[_0x24dc('0x96')])return null;if(_0x24dc('0x37')===this[_0x24dc('0x45')]){const _0x3d8a93=this['_suggestionFactory'][_0x24dc('0x60')](_0x24dc('0x28'),_0x28eb13,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x3d8a93([_0x2bceee],_0x40a6d9,_0x290c4a)),null;}const _0x481057=this[_0x24dc('0x65')]['plugins'][_0x24dc('0x1a')](_0x24dc('0x44'))['me'],_0x2797a0=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x5b316a,meta:_0x4ae5c0}of this[_0x24dc('0xa7')](_0x2bceee,_0x24dc('0xb9')))_0x4ae5c0[_0x24dc('0x12f')]&&!_0x4ae5c0[_0x24dc('0x4e')]&&_0x2797a0[_0x24dc('0xb6')](..._0x5b316a['getRanges']());const _0x152e92=function(_0x4bb97e,_0x82cafa){const _0x566dc2=[];for(const _0x6cc6f6 of _0x82cafa){const _0x430d3e=_0x4bb97e['getIntersection'](_0x6cc6f6);_0x430d3e&&_0x566dc2['push'](_0x430d3e);}return _0x566dc2;}(_0x2bceee,_0x2797a0),_0x57457b=function(_0x2eaf39,_0x429f51){const _0x18f0ac=[_0x2eaf39];for(const _0x55efa4 of _0x429f51){let _0x2c233e=0x0;for(;_0x2c233e<_0x18f0ac[_0x24dc('0x80')];){const _0x3cda39=_0x18f0ac[_0x2c233e][_0x24dc('0x79')](_0x55efa4);_0x18f0ac[_0x24dc('0x9a')](_0x2c233e,0x1,..._0x3cda39),_0x2c233e+=_0x3cda39[_0x24dc('0x80')];}}return _0x18f0ac;}(_0x2bceee,_0x2797a0);_0x152e92[_0x24dc('0x80')]&&this[_0x24dc('0x86')][_0x24dc('0x2c')](()=>{for(const _0x4f7210 of _0x152e92){const _0x44db77=this[_0x24dc('0x63')][_0x24dc('0x60')]('formatInline',_0x28eb13,_0x24dc('0xeb'));this[_0x24dc('0x11c')](()=>_0x44db77([_0x4f7210],_0x40a6d9,_0x290c4a));}});for(const _0x38a0fa of _0x57457b){let _0x1ff200=null,_0x32658b=_0x38a0fa[_0x24dc('0x106')],_0x141538=_0x38a0fa[_0x24dc('0xa1')];for(const {suggestion:_0x50eb1c,meta:_0xc30c48}of this['_findSuggestions'](_0x38a0fa,_0x24dc('0x28'))){if(!_0xc30c48[_0x24dc('0x12f')])continue;if(_0x50eb1c[_0x24dc('0xb')]!=_0x28eb13)continue;const _0x4a1711=_0x50eb1c[_0x24dc('0x62')]();if(_0x4a1711[_0x24dc('0x41')](_0x38a0fa,!0x0))return null;_0x32658b=_0x32658b[_0x24dc('0xac')](_0x4a1711[_0x24dc('0x106')])?_0x32658b:_0x4a1711[_0x24dc('0x106')],_0x141538=_0x141538[_0x24dc('0x9c')](_0x4a1711[_0x24dc('0xa1')])?_0x141538:_0x4a1711[_0x24dc('0xa1')],_0x1ff200?_0x4a1711[_0x24dc('0x106')][_0x24dc('0xac')](_0x1ff200[_0x24dc('0x62')]()[_0x24dc('0x106')])?(_0x1ff200[_0x24dc('0xf5')](),_0x1ff200=_0x50eb1c):_0x50eb1c[_0x24dc('0xf5')]():_0x1ff200=_0x50eb1c;}const _0x23b03a=this['_model']['createRange'](_0x32658b,_0x141538);if(_0x1ff200)this[_0x24dc('0x15')](_0x1ff200,_0x23b03a);else{const _0x1a659e=_0x1d47f5(),_0x3168df=_0x481057['id'];this[_0x24dc('0xd0')]({'id':_0x1a659e,'type':_0x24dc('0x136')+_0x28eb13,'data':_0x40a6d9,'createdAt':new Date(),'authorId':_0x3168df,'attributes':_0x290c4a}),this[_0x24dc('0x116')](_0x24dc('0x136')+_0x28eb13,_0x1a659e,_0x3168df,_0x23b03a);}}return null;}[_0x24dc('0x25')](_0x564ecc,_0x2c67f0,_0x23c4f3=[],_0x4da675=null,_0x3f446a={}){_0x2c67f0[_0x24dc('0x1f')]||(_0x2c67f0['formatGroupId']=_0x2c67f0[_0x24dc('0x8')]),_0x2c67f0[_0x24dc('0xe6')]=_0x564ecc['is'](_0x24dc('0x127')),_0x4da675=_0x4da675||$t(_0x2c67f0);const _0x1c7700=_0x23c4f3[_0x24dc('0x4c')](_0x257bd8=>Rt(_0x257bd8,this['_model'])),_0x43db0b=_0x564ecc['is'](_0x24dc('0x127'))?_0x564ecc:Rt(_0x564ecc,this[_0x24dc('0x86')]);if('never'===this[_0x24dc('0x45')]){const _0x1acc0d=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x121'),_0x4da675,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x1acc0d([_0x43db0b],_0x2c67f0,_0x3f446a)),null;}_0x1c7700[_0x24dc('0xb6')](_0x43db0b);let _0x55c1f4=!0x0;for(const _0x232ffb of _0x1c7700)if(!this['_rangeIsInLocalUserInsertion'](_0x232ffb)){_0x55c1f4=!0x1;break;}if(_0x55c1f4&&_0x24dc('0x102')!==this[_0x24dc('0x45')]){const _0x355a27=this['_suggestionFactory'][_0x24dc('0x60')]('formatBlock',_0x4da675,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x355a27([_0x43db0b],_0x2c67f0,_0x3f446a)),null;}let _0x4e1b2d=null,_0x3fc982=_0x43db0b['start'],_0x74731d=_0x43db0b[_0x24dc('0xa1')];for(const {suggestion:_0x53c0e4,meta:_0x4471d9}of this[_0x24dc('0xa7')](_0x43db0b,_0x24dc('0x121'))){if(!_0x4471d9['isOwn']||_0x4471d9['isNextTo']||_0x4471d9[_0x24dc('0xd4')]||_0x4471d9[_0x24dc('0x4e')])continue;if(_0x53c0e4[_0x24dc('0x10d')][_0x24dc('0x1f')]!=_0x2c67f0[_0x24dc('0x1f')])continue;const _0x26a5aa=_0x53c0e4[_0x24dc('0x62')]();if(_0x53c0e4[_0x24dc('0xb')]==_0x4da675){if(_0x26a5aa['containsRange'](_0x43db0b,!0x0))return null;_0x3fc982=_0x3fc982[_0x24dc('0xac')](_0x26a5aa[_0x24dc('0x106')])?_0x3fc982:_0x26a5aa['start'],_0x74731d=_0x74731d['isAfter'](_0x26a5aa[_0x24dc('0xa1')])?_0x74731d:_0x26a5aa[_0x24dc('0xa1')],_0x4e1b2d?_0x26a5aa['start'][_0x24dc('0xac')](_0x4e1b2d[_0x24dc('0x62')]()[_0x24dc('0x106')])?(_0x4e1b2d['removeMarkers'](),_0x4e1b2d=_0x53c0e4):_0x53c0e4[_0x24dc('0xf5')]():_0x4e1b2d=_0x53c0e4;}else{const _0x5cb082=_0x43db0b[_0x24dc('0x55')](_0x26a5aa);this[_0x24dc('0x81')](_0x53c0e4,_0x5cb082);}}const _0x4adbaf=this[_0x24dc('0x65')][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0x44'))['me'],_0x1244ec=_0x1d47f5(),_0xdbee68=_0x4adbaf['id'];if(_0x4e1b2d)return this[_0x24dc('0x15')](_0x4e1b2d,this[_0x24dc('0x86')]['createRange'](_0x3fc982,_0x74731d)),_0x4e1b2d;{const _0x39fdbe=this[_0x24dc('0xd0')]({'id':_0x1244ec,'type':'formatBlock:'+_0x4da675,'data':_0x2c67f0,'createdAt':new Date(),'authorId':_0xdbee68,'attributes':_0x3f446a});return this['_addSuggestionMarker']('formatBlock:'+_0x4da675,_0x1244ec,_0xdbee68,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x3fc982,_0x74731d)),_0x39fdbe;}}[_0x24dc('0x7f')](_0x2436ab,_0x13ccf7,_0xd8c16f=[],_0x439f2b=null,_0x3fa818={}){_0x13ccf7[_0x24dc('0x1f')]||(_0x13ccf7['formatGroupId']=_0x13ccf7['commandName']);const _0x69c822=_0x2436ab[0x0];_0x13ccf7['multipleBlocks']=_0x69c822['is']('range'),_0x439f2b=_0x439f2b||$t(_0x13ccf7);const _0x1ea365=_0xd8c16f[_0x24dc('0x4c')](_0x16a9a6=>Rt(_0x16a9a6,this[_0x24dc('0x86')])),_0x6ea16c=_0x69c822['is'](_0x24dc('0x127'))?_0x2436ab:_0x2436ab[_0x24dc('0x4c')](_0x33c5e2=>Rt(_0x33c5e2,this['_model']));if(_0x24dc('0x37')===this[_0x24dc('0x45')]){const _0x48af80=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x121'),_0x439f2b,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x48af80(_0x6ea16c,_0x13ccf7,_0x3fa818)),null;}_0x1ea365[_0x24dc('0xb6')](..._0x6ea16c);let _0x1b3f9b=!0x0;for(const _0x46644c of _0x1ea365)if(!this[_0x24dc('0xca')](_0x46644c)){_0x1b3f9b=!0x1;break;}if(_0x1b3f9b&&_0x24dc('0x102')!==this[_0x24dc('0x45')]){const _0xbb89a3=this['_suggestionFactory'][_0x24dc('0x60')](_0x24dc('0x121'),_0x439f2b,_0x24dc('0xeb'));return this['forceDefaultExecution'](()=>_0xbb89a3(_0x6ea16c,_0x13ccf7,_0x3fa818)),null;}const _0x16be3e=this['editor'][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0x44'))['me'];for(const _0x54124b of this[_0x24dc('0xf3')]()){if(_0x54124b[_0x24dc('0xec')]['id']!=_0x16be3e['id'])continue;if(_0x24dc('0x121')!=_0x54124b[_0x24dc('0x21')]||_0x54124b[_0x24dc('0x10d')][_0x24dc('0x1f')]!=_0x13ccf7['formatGroupId'])continue;const _0x547dce=_0x54124b['subType']==_0x439f2b;for(let _0x35a47d=0x0;_0x35a47d<_0x6ea16c[_0x24dc('0x80')];_0x35a47d++){const _0x11f590=_0x6ea16c[_0x35a47d];for(const _0x45bd86 of _0x54124b[_0x24dc('0xfb')]()){const _0x1e7df9=_0x45bd86[_0x24dc('0xd8')]();if(_0x11f590[_0x24dc('0x84')](_0x1e7df9)){_0x547dce?(_0x6ea16c[_0x24dc('0x9a')](_0x35a47d,0x1),_0x35a47d--):_0x54124b['removeMarker'](_0x45bd86[_0x24dc('0x113')]);break;}}}}if(0x0==_0x6ea16c['length'])return null;const _0x239677=this['_suggestionFactory'][_0x24dc('0x60')](_0x24dc('0x121'),_0x439f2b,_0x24dc('0x119'));for(const _0x518f40 of this[_0x24dc('0xf3')]())if(_0x518f40['author']['id']==_0x16be3e['id']&&'formatBlock'==_0x518f40[_0x24dc('0x21')]&&_0x518f40[_0x24dc('0x10d')]['formatGroupId']==_0x13ccf7[_0x24dc('0x1f')]&&_0x518f40[_0x24dc('0xb')]==_0x439f2b&&(_0x239677(_0x518f40[_0x24dc('0x4a')](),_0x6ea16c)||_0x239677(_0x6ea16c,_0x518f40[_0x24dc('0x4a')]()))){for(const _0x148da8 of _0x6ea16c)_0x518f40[_0x24dc('0x1d')](_0x148da8);return _0x518f40;}const _0x1d92d5=_0x1d47f5(),_0x448ec8=_0x16be3e['id'],_0x7bf720=_0x24dc('0x12b')+_0x439f2b,_0x4ad91c=this[_0x24dc('0xd0')]({'id':_0x1d92d5,'type':_0x7bf720,'data':_0x13ccf7,'createdAt':new Date(),'authorId':_0x448ec8,'attributes':_0x3fa818});for(const _0x299fe2 of _0x6ea16c)this[_0x24dc('0x116')](_0x7bf720,_0x1d92d5,_0x448ec8,_0x299fe2,_0xc1d4ef[_0x24dc('0x46')]());return _0x4ad91c;}[_0x24dc('0x129')](_0xe32dcf,_0x5842bf=null,_0x150c9f={}){if(_0xe32dcf[_0x24dc('0x96')])return null;const _0x2f7df2=this[_0x24dc('0x65')]['plugins']['get'](_0x24dc('0x44'))['me'],_0xd59e85=new _0x21503c(_0xe32dcf[_0x24dc('0x106')],_0xe32dcf['end']);for(const {suggestion:_0x12dc45,meta:_0x1e7c9d}of this[_0x24dc('0xa7')](_0xd59e85,_0x24dc('0xb9')))if(_0x1e7c9d['isOwn']&&!_0x1e7c9d[_0x24dc('0xcc')]){if(_0x12dc45[_0x24dc('0x140')]){const _0x56a4c5=_0x12dc45[_0x24dc('0x4a')]()[_0x24dc('0xa3')](_0x32c164=>_0x24dc('0x75')!=_0x32c164[_0x24dc('0x89')][_0x24dc('0x95')]);_0x56a4c5[_0x24dc('0x90')](_0x39e1b1=>_0xd59e85[_0x24dc('0x41')](_0x39e1b1,!0x0))&&_0x12dc45['discard']();if(_0x56a4c5[_0x24dc('0x112')](_0x2b09c8=>_0x2b09c8[_0x24dc('0x41')](_0xd59e85,!0x0))){const _0x2c4c8d=this['_suggestionFactory'][_0x24dc('0x60')]('deletion',_0x5842bf,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x2c4c8d([_0xd59e85],null,_0x150c9f)),null;}}else{const _0x60c7c6=_0xd59e85['getIntersection'](_0x12dc45[_0x24dc('0x62')]());null!==_0x60c7c6&&_0x12dc45[_0x24dc('0x12')]([_0x60c7c6],null,_0x150c9f);}}if(_0xd59e85['detach'](),_0xd59e85['isCollapsed']||_0x24dc('0x75')==_0xd59e85[_0x24dc('0x89')]['rootName'])return null;let _0x5ca177=null,_0x4fb6b0=_0xd59e85['start'],_0xaab333=_0xd59e85[_0x24dc('0xa1')];for(const {suggestion:_0x385cb6,meta:_0x51f028}of this[_0x24dc('0xa7')](_0xd59e85,_0x24dc('0x8a')))if(_0x51f028['isOwn']){if(_0x385cb6[_0x24dc('0x140')]&&this[_0x24dc('0xd')]){let _0x2e64fc=!0x0;for(const _0x43326b of _0x385cb6[_0x24dc('0x4a')]()){if(_0x43326b[_0x24dc('0x41')](_0xd59e85,!0x0))return _0x385cb6;_0xd59e85[_0x24dc('0x41')](_0x43326b)||(_0x2e64fc=!0x1);}_0x2e64fc&&_0x385cb6[_0x24dc('0x100')]();}else{const _0x270267=_0x385cb6[_0x24dc('0x62')]();if(_0x270267['containsRange'](_0xd59e85,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x51f028[_0x24dc('0xd4')])continue;return _0x385cb6;}_0x4fb6b0=_0x4fb6b0[_0x24dc('0xac')](_0x270267[_0x24dc('0x106')])?_0x4fb6b0:_0x270267[_0x24dc('0x106')],_0xaab333=_0xaab333[_0x24dc('0x9c')](_0x270267[_0x24dc('0xa1')])?_0xaab333:_0x270267[_0x24dc('0xa1')],_0x5ca177?_0x270267[_0x24dc('0x106')]['isBefore'](_0x5ca177[_0x24dc('0x62')]()[_0x24dc('0x106')])?(_0x5ca177[_0x24dc('0xf5')](),_0x5ca177=_0x385cb6):_0x385cb6[_0x24dc('0xf5')]():_0x5ca177=_0x385cb6;}}if(_0x5ca177)return this['_setSuggestionRange'](_0x5ca177,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x4fb6b0,_0xaab333)),_0x5ca177;{const _0x3f9ea8=_0x1d47f5(),_0x4a150d=this[_0x24dc('0x86')][_0x24dc('0x98')](_0x4fb6b0,_0xaab333),_0x39265e=_0x2f7df2['id'],_0x195bbd=_0x5842bf?_0x24dc('0xae')+_0x5842bf:_0x24dc('0x8a'),_0x1794c6=this[_0x24dc('0xd0')]({'id':_0x3f9ea8,'type':_0x195bbd,'createdAt':new Date(),'authorId':_0x39265e,'attributes':_0x150c9f});return this['_addSuggestionMarker'](_0x195bbd,_0x3f9ea8,_0x39265e,_0x4a150d),_0x1794c6;}}[_0x24dc('0xf1')](_0x3900ed,_0x1de157=_0x24dc('0xf7'),_0x2956de={}){const _0x5d39e4=this[_0x24dc('0x65')][_0x24dc('0x1c')]['get'](_0x24dc('0x44'))['me'],_0x409a18=_0x3900ed[_0x24dc('0x4c')](_0x15318f=>new _0x21503c(_0x15318f[_0x24dc('0x106')],_0x15318f['end'])),_0x192592=new Set();for(const _0x5619ed of _0x409a18)for(const {suggestion:_0x471709,meta:_0x311332}of this[_0x24dc('0xa7')](_0x5619ed,_0x24dc('0xb9')))_0x311332[_0x24dc('0x12f')]&&!_0x311332['isNextTo']&&_0x192592['add'](_0x471709);for(const _0x21fb45 of _0x192592)if(_0x21fb45[_0x24dc('0x140')]){const _0x4edc08=_0x21fb45[_0x24dc('0x4a')]();(!_0x21fb45[_0x24dc('0x131')]||!_0x21fb45[_0x24dc('0x131')][_0x24dc('0xfc')])&&(_0x4edc08[_0x24dc('0x90')](_0x153106=>_0x409a18[_0x24dc('0x112')](_0x5dab00=>_0x5dab00[_0x24dc('0x41')](_0x153106,!0x0)))&&_0x21fb45[_0x24dc('0x100')]());if(_0x409a18[_0x24dc('0x90')](_0x5cd3cf=>_0x4edc08[_0x24dc('0x112')](_0x159aa1=>_0x159aa1[_0x24dc('0x41')](_0x5cd3cf,!0x0)))){const _0x482ae4=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x8a'),_0x1de157,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x482ae4(_0x3900ed,null,_0x2956de)),null;}}else{const _0x8e45a1=_0x21fb45[_0x24dc('0x62')]();_0x409a18['some'](_0x8f9e68=>_0x8f9e68['containsRange'](_0x8e45a1,!0x0))&&_0x21fb45['discard']();if(_0x409a18['every'](_0x28ff78=>_0x8e45a1[_0x24dc('0x41')](_0x28ff78,!0x0))){const _0x3419d8=this['_suggestionFactory']['getSuggestionCallback'](_0x24dc('0x8a'),_0x1de157,'accept');return this['forceDefaultExecution'](()=>_0x3419d8(_0x409a18,null,_0x2956de)),null;}}const _0x29ec55=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x8a'),_0x1de157,_0x24dc('0x119'));let _0x4874e2=null;for(const _0x4d9f28 of this[_0x24dc('0xf3')]())if(_0x4d9f28[_0x24dc('0xec')]['id']==_0x5d39e4['id']&&_0x4d9f28[_0x24dc('0x14')]&&'deletion'==_0x4d9f28[_0x24dc('0x21')]&&_0x4d9f28[_0x24dc('0xb')]==_0x1de157&&(_0x29ec55(_0x4d9f28[_0x24dc('0x4a')](),_0x409a18)||_0x29ec55(_0x409a18,_0x4d9f28[_0x24dc('0x4a')]()))){if(_0x4874e2){if(_0x4d9f28[_0x24dc('0x6c')]&&_0x4d9f28[_0x24dc('0x6c')]['length'])continue;for(const _0x2d210e of _0x4d9f28[_0x24dc('0x4a')]())_0x4874e2['isIntersectingWithRange'](_0x2d210e)||_0x4874e2[_0x24dc('0x1d')](_0x2d210e);_0x4d9f28[_0x24dc('0xf5')]();}else{_0x4874e2=_0x4d9f28;for(const _0x225614 of _0x409a18)_0x4d9f28[_0x24dc('0x126')](_0x225614)||_0x4d9f28['addRange'](_0x225614);}}if(_0x4874e2)return _0x4874e2;_0x192592[_0x24dc('0x22')]();for(const _0x49c822 of _0x409a18)for(const {suggestion:_0x3e7f63,meta:_0x6d490d}of this[_0x24dc('0xa7')](_0x49c822,_0x24dc('0x8a')))_0x6d490d['isOwn']&&_0x192592[_0x24dc('0x122')](_0x3e7f63);for(const _0x374907 of _0x192592){const _0x41ebf0=_0x374907[_0x24dc('0x4a')]();if(!_0x2956de||!_0x2956de[_0x24dc('0xfc')]){if(_0x409a18[_0x24dc('0x90')](_0x9f90a4=>_0x41ebf0[_0x24dc('0x112')](_0x4f4490=>_0x4f4490[_0x24dc('0x41')](_0x9f90a4,!0x0))))return _0x374907;}(!_0x374907['attributes']||!_0x374907[_0x24dc('0x131')][_0x24dc('0xfc')])&&(_0x41ebf0[_0x24dc('0x90')](_0x2c8a15=>_0x409a18[_0x24dc('0x112')](_0x208f84=>_0x208f84[_0x24dc('0x41')](_0x2c8a15,!0x0)))&&_0x374907[_0x24dc('0x100')]());}const _0x2d3e51=_0x1d47f5(),_0x13fb17=_0x5d39e4['id'],_0x168ce2=_0x24dc('0xae')+_0x1de157,_0x5a33ac=this[_0x24dc('0xd0')]({'id':_0x2d3e51,'type':_0x168ce2,'createdAt':new Date(),'authorId':_0x13fb17,'attributes':_0x2956de});for(const _0x13ff33 of _0x409a18)_0x13ff33['detach'](),_0x13ff33[_0x24dc('0x96')]||_0x24dc('0x75')==_0x13ff33[_0x24dc('0x89')]['rootName']||this[_0x24dc('0x116')](_0x168ce2,_0x2d3e51,_0x13fb17,_0x13ff33,_0xc1d4ef[_0x24dc('0x46')]());return _0x5a33ac;}['_setSuggestionRange'](_0x3ba6c2,_0x4e1ce3){const _0x20ecd9=_0x3ba6c2[_0x24dc('0x9f')]();this[_0x24dc('0x86')][_0x24dc('0x2c')](_0x3e7404=>{_0x3e7404[_0x24dc('0xdb')](_0x20ecd9,{'range':_0x4e1ce3});});}[_0x24dc('0x91')](_0x118f5b){const _0x59c2c9=_0x118f5b['id'],_0x16c747=this[_0x24dc('0x65')]['config'][_0x24dc('0x1a')](_0x24dc('0x73'));this['_commentsRepository']['hasCommentThread'](_0x59c2c9)||this[_0x24dc('0xf0')][_0x24dc('0x43')]({'channelId':_0x16c747,'threadId':_0x59c2c9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b8803=this[_0x24dc('0xf0')]['getCommentThread'](_0x59c2c9);_0x2b8803[_0x24dc('0x123')](_0x24dc('0x120')),_0x2b8803[_0x24dc('0x120')]=!0x1,_0x118f5b[_0x24dc('0x6c')]=_0x2b8803;}[_0x24dc('0x77')](_0x198df6,_0x54b233,_0x564070,_0x1a31f1){if(_0x198df6[_0x24dc('0x21')]!=_0x54b233||_0x198df6[_0x24dc('0xb')]!=_0x564070||_0x198df6[_0x24dc('0x5a')]['id']!=_0x1a31f1)throw this[_0x24dc('0x65')][_0x24dc('0xda')](_0x24dc('0xe1')),new _0x1cc2fb(_0x24dc('0xe1'),this);}[_0x24dc('0x81')](_0x2c6120,_0x1d4441){const _0x30f267=_0x2c6120['getFirstRange']();if(_0x1d4441[_0x24dc('0x84')](_0x30f267))_0x2c6120[_0x24dc('0xf5')]();else{if(_0x30f267[_0x24dc('0x41')](_0x1d4441)){const _0x279c5f=this[_0x24dc('0x86')][_0x24dc('0xba')](_0x1d4441[_0x24dc('0x106')][_0x24dc('0x111')],_0x24dc('0xa1'));this[_0x24dc('0x15')](_0x2c6120,this[_0x24dc('0x86')]['createRange'](_0x30f267[_0x24dc('0x106')],_0x279c5f));const _0x1bec7b=_0x1d47f5(),_0x1c8e3b=_0x2c6120[_0x24dc('0x5a')]['id'],_0x1fb2db=_0x2c6120[_0x24dc('0x21')]+':'+_0x2c6120[_0x24dc('0xb')];this[_0x24dc('0xd0')]({'id':_0x1bec7b,'type':_0x1fb2db,'createdAt':new Date(),'authorId':_0x1c8e3b,'data':_0x2c6120['data'],'attributes':_0x2c6120[_0x24dc('0x131')]});const _0x28df4b=this[_0x24dc('0x86')]['createPositionAt'](_0x1d4441['end']['parent'],'after'),_0x3c6348=this[_0x24dc('0x86')][_0x24dc('0x98')](_0x28df4b,_0x30f267[_0x24dc('0xa1')]);this['_addSuggestionMarker'](_0x1fb2db,_0x1bec7b,_0x1c8e3b,_0x3c6348);}else{if(_0x30f267[_0x24dc('0x29')](_0x1d4441[_0x24dc('0x106')])){const _0xf7511d=this[_0x24dc('0x86')][_0x24dc('0xba')](_0x1d4441[_0x24dc('0x106')]['nodeBefore'],_0x24dc('0xa1'));this[_0x24dc('0x15')](_0x2c6120,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x30f267['start'],_0xf7511d));}else{const _0x3de802=this[_0x24dc('0x86')]['createPositionAt'](_0x1d4441[_0x24dc('0xa1')][_0x24dc('0x117')],_0x24dc('0x97'));this[_0x24dc('0x15')](_0x2c6120,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x3de802,_0x30f267[_0x24dc('0xa1')]));}}}}['_rangeIsInLocalUserInsertion'](_0x224998){for(const {suggestion:_0x4cd8be,meta:_0x2372e8}of this[_0x24dc('0xa7')](_0x224998,'insertion')){if(!_0x2372e8['isOwn'])continue;const _0x3d5671=_0x4cd8be[_0x24dc('0x4a')]();for(const _0x506864 of _0x3d5671)if(!_0x224998[_0x24dc('0x79')](_0x506864)['length'])return!0x0;}return!0x1;}[_0x24dc('0x8b')](_0x3d5553){const _0x3ff9bd=this[_0x24dc('0x65')]['plugins'][_0x24dc('0x1a')](_0x24dc('0x44'))[_0x24dc('0xc')](_0x3d5553);if(!_0x3ff9bd)throw new _0x1cc2fb(_0x24dc('0x124'),this);return _0x3ff9bd;}[_0x24dc('0x13c')](_0xade0dc){const _0x280181=this[_0x24dc('0x65')]['plugins'][_0x24dc('0x1a')](_0x24dc('0x44')),_0x152c16=_0x3a4b2e(_0x24dc('0xc9')+_0xade0dc),_0x541253=_0x280181[_0x24dc('0xc')](_0x152c16);return _0x541253||_0x280181[_0x24dc('0x6e')]({'id':_0x152c16,'name':_0xade0dc});}[_0x24dc('0xa9')](_0x506ed3,_0x220ac2,_0x4d4baa,_0x16f344,_0x1d6adf){const _0xb1dd05=this[_0x24dc('0x8b')](_0x16f344),_0x38ef59=this[_0x24dc('0x63')][_0x24dc('0x7')](_0x506ed3,_0x220ac2,_0x4d4baa,_0xb1dd05,_0x1d6adf,_0x4538f6=>this['_updateSuggestionData'](_0x4d4baa,{'attributes':_0x4538f6}));return this['listenTo'](_0x38ef59,'accept',()=>{this[_0x24dc('0xd2')](_0x4d4baa,{'state':_0x24dc('0x94')});},{'priority':_0x24dc('0x78')}),this[_0x24dc('0x0')](_0x38ef59,'discard',()=>{this[_0x24dc('0xd2')](_0x4d4baa,{'state':_0x24dc('0x58')});},{'priority':_0x24dc('0x78')}),this['_suggestions']['set'](_0x4d4baa,_0x38ef59),this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0x38ef59,_0x24dc('0xaa')),_0x38ef59;}[_0x24dc('0xb8')](_0x533db3){const _0x316905=_0x533db3[_0x24dc('0x85')](':');return{'group':_0x316905[0x0],'type':_0x316905[0x1],'subType':_0x316905[_0x24dc('0x80')]>=0x5?_0x316905[0x2]:null,'id':_0x316905['length']<0x5?_0x316905[0x2]:_0x316905[0x3],'authorId':_0x316905['length']<0x5?_0x316905[0x3]:_0x316905[0x4],'markerCount':0x6==_0x316905[_0x24dc('0x80')]?_0x316905[0x5]:null};}[_0x24dc('0x138')](_0x572dc4,_0x284816,_0x187f68){const _0x2bb43a=_0x572dc4[_0x24dc('0x62')](),_0xe44a93=_0x2bb43a[_0x24dc('0x106')],_0x4a6734=_0x2bb43a[_0x24dc('0xa1')];this[_0x24dc('0x15')](_0x572dc4,this[_0x24dc('0x86')][_0x24dc('0x98')](_0xe44a93,_0x284816));const _0x1b837a=_0x1d47f5(),_0x5b1446=_0x572dc4[_0x24dc('0x5a')]['id'],_0x283a5d=_0x572dc4[_0x24dc('0x21')]+(_0x572dc4[_0x24dc('0xb')]?':'+_0x572dc4['subType']:'');this[_0x24dc('0xd0')]({'id':_0x1b837a,'type':_0x283a5d,'createdAt':new Date(),'authorId':_0x5b1446,'originalSuggestionId':_0x572dc4['id'],'attributes':_0x572dc4[_0x24dc('0x131')],'data':_0x572dc4[_0x24dc('0x10d')]}),'formatBlock'==_0x572dc4[_0x24dc('0x21')]&&(_0x187f68=this['_model']['createPositionBefore'](_0x187f68[_0x24dc('0x117')])),this[_0x24dc('0x116')](_0x283a5d,_0x1b837a,_0x5b1446,this[_0x24dc('0x86')]['createRange'](_0x187f68,_0x4a6734));}[_0x24dc('0xa7')](_0x358c61,_0x34a5f6=null){const _0x411c9d=[],_0x1d397c=this[_0x24dc('0x86')][_0x24dc('0xe')],_0xa9954=this[_0x24dc('0x65')]['plugins']['get'](_0x24dc('0x44'))['me'];for(const _0x2c576f of this[_0x24dc('0xf3')]())if(_0x2c576f[_0x24dc('0x14')]&&(!_0x34a5f6||_0x2c576f['type']==_0x34a5f6))for(const _0x2dcd9d of _0x2c576f[_0x24dc('0x4a')]()){const _0x122748=_0x358c61['start'][_0x24dc('0x84')](_0x2dcd9d[_0x24dc('0xa1')])||_0x358c61[_0x24dc('0xa1')][_0x24dc('0x84')](_0x2dcd9d[_0x24dc('0x106')]);if(_0x122748||_0x358c61[_0x24dc('0x55')](_0x2dcd9d)){const _0x253648=_0x358c61['containsRange'](_0x2dcd9d)&&Bt(_0x1d397c,_0x2dcd9d[_0x24dc('0x106')],_0x358c61),_0x63ec61=_0x2dcd9d[_0x24dc('0x41')](_0x358c61)&&Bt(_0x1d397c,_0x358c61[_0x24dc('0x106')],_0x2dcd9d);_0x411c9d[_0x24dc('0xb6')]({'suggestion':_0x2c576f,'meta':{'isOwn':_0xa9954==_0x2c576f[_0x24dc('0xec')],'isNextTo':_0x122748,'isInsideObject':_0x253648,'containsRangeInObject':_0x63ec61}});break;}}return _0x411c9d;}[_0x24dc('0x116')](_0x18bd03,_0x243cea,_0x49575e,_0x458167,_0x590248){this[_0x24dc('0x86')][_0x24dc('0x2c')](_0xff5f1b=>{let _0x59daa3=_0x24dc('0x42')+_0x18bd03+':'+_0x243cea+':'+_0x49575e;_0x590248&&(_0x59daa3=_0x59daa3+':'+_0x590248),_0xff5f1b[_0x24dc('0xb1')](_0x59daa3,{'range':_0x458167,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x68478){const _0x3e53ba=_0x68478[_0x24dc('0xef')],_0x2c7b=_0x68478[_0x24dc('0x7d')];_0x68478['previous']=null,null!=_0x3e53ba&&(_0x3e53ba[_0x24dc('0x7d')]=null),_0x68478[_0x24dc('0x7d')]=null,null!=_0x2c7b&&(_0x2c7b[_0x24dc('0xef')]=null),_0x24dc('0x3c')==this[_0x24dc('0xd5')][_0x24dc('0x1a')](_0x68478)&&(this['_suggestionState'][_0x24dc('0x9b')](_0x68478,'removed'),this[_0x24dc('0x5')]('suggestionUnloaded',_0x68478,_0x3e53ba,_0x2c7b));}[_0x24dc('0xd0')](_0x3cafb7){const _0x3ce49f=_0x3cafb7['id'],_0xff473a=this['addSuggestionData'](_0x3cafb7);if(this['_adapter']&&this[_0x24dc('0x11b')]['addSuggestion']){const _0x5d1807=this[_0x24dc('0x65')][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0xd1')),_0xcb8b85=_0xff473a[_0x24dc('0x4')],_0x19a34c=_0xff473a[_0x24dc('0xb')]?_0xff473a['type']+':'+_0xff473a[_0x24dc('0xb')]:_0xff473a[_0x24dc('0x21')],_0x3038a3=this[_0x24dc('0x65')][_0x24dc('0x8c')],_0x171252=_0x5d1807[_0x24dc('0x122')](_0x53685f(_0x3038a3,_0x24dc('0x32'))),_0x25f9ff={'id':_0x3ce49f,'type':_0x19a34c,'hasComments':_0xcb8b85,'data':_0x3cafb7[_0x24dc('0x10d')]||null,'originalSuggestionId':_0x3cafb7[_0x24dc('0x38')]||null,'attributes':_0xff473a[_0x24dc('0x131')]};this[_0x24dc('0x11b')][_0x24dc('0x110')](_0x25f9ff)[_0x24dc('0x103')](_0x26f228=>{_0xff473a[_0x24dc('0xa6')]=!0x0,_0x5d1807[_0x24dc('0xdc')](_0x171252),_0x26f228&&_0x26f228[_0x24dc('0xb0')]&&(this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x3ce49f)[_0x24dc('0xb0')]=_0x26f228[_0x24dc('0xb0')]);})[_0x24dc('0x4d')](_0x78e277=>{throw _0x516b1e(_0x24dc('0x3b')),this[_0x24dc('0x65')][_0x24dc('0x51')][_0x24dc('0x10e')]({'isUndoable':!0x1},()=>{_0xff473a[_0x24dc('0x100')]();}),_0xff473a[_0x24dc('0x13f')](),this[_0x24dc('0x5f')][_0x24dc('0x88')](_0xff473a['id']),this[_0x24dc('0xd5')][_0x24dc('0x88')](_0xff473a),_0x78e277;});}return _0xff473a;}[_0x24dc('0xd2')](_0x4f2d86,_0x89b78f){const _0x206ff4=this['editor']['plugins'][_0x24dc('0x1a')](_0x24dc('0xd1')),_0x2c5306=this[_0x24dc('0x23')](_0x4f2d86);if(this[_0x24dc('0x11b')]&&this['_adapter'][_0x24dc('0xc0')]){if(_0x2c5306['_saved']){const _0x14ea3b=_0x206ff4[_0x24dc('0x122')](_0x53685f(this[_0x24dc('0x65')][_0x24dc('0x8c')],_0x24dc('0x32')));this[_0x24dc('0x11b')][_0x24dc('0xc0')](_0x4f2d86,_0x89b78f)[_0x24dc('0x103')](()=>{_0x206ff4['remove'](_0x14ea3b);});}else _0x2c5306['on'](_0x24dc('0x35'),()=>{this[_0x24dc('0xd2')](_0x4f2d86,_0x89b78f);});}}['_getSuggestionData'](_0x1b653d){if(!this[_0x24dc('0x11b')]||!this[_0x24dc('0x11b')][_0x24dc('0x23')])throw new _0x1cc2fb(_0x24dc('0x9'),this);return this[_0x24dc('0x11b')][_0x24dc('0x23')](_0x1b653d);}['_handleNewSuggestionMarker'](_0x2b16a1){const {id:_0x2d7abd,type:_0xf9b931,subType:_0x5f2198,authorId:_0x4fcddb}=this[_0x24dc('0xb8')](_0x2b16a1),_0x17c85a=this['_suggestions']['get'](_0x2d7abd)||this['_createSuggestion'](_0xf9b931,_0x5f2198,_0x2d7abd,_0x4fcddb,{});switch(this[_0x24dc('0x77')](_0x17c85a,_0xf9b931,_0x5f2198,_0x4fcddb),this[_0x24dc('0xd5')]['get'](_0x17c85a)){case _0x24dc('0xaa'):this['_getSuggestionData'](_0x2d7abd)['then'](_0x278200=>{let _0x139f4a=Promise[_0x24dc('0x3')]();_0x278200['hasComments']&&(_0x139f4a=this['_commentsRepository'][_0x24dc('0xe7')]({'channelId':this[_0x24dc('0x65')][_0x24dc('0x12e')][_0x24dc('0x1a')](_0x24dc('0x73')),'threadId':_0x2d7abd})),_0x139f4a[_0x24dc('0x103')](()=>{this[_0x24dc('0x11d')](_0x278200)['_saved']=!0x0;});}),this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0x17c85a,'markerReady');break;case _0x24dc('0xa4'):this[_0x24dc('0xd2')](_0x2d7abd,{'state':_0x24dc('0x87')});case _0x24dc('0x115'):this['_suggestionState'][_0x24dc('0x9b')](_0x17c85a,_0x24dc('0x3c')),this[_0x24dc('0x5')](_0x24dc('0x61'),_0x17c85a);break;case'ready':this[_0x24dc('0x5')]('suggestionChanged',_0x17c85a);}return _0x17c85a[_0x24dc('0xe2')](_0x2b16a1),_0x17c85a;}[_0x24dc('0x3f')](_0x5f0dd4){const _0xa8bbf6=Array[_0x24dc('0x50')](_0x5f0dd4)[_0x24dc('0xa3')](_0x56905a=>!_0x56905a['isMultiRange']),_0x204d68=this[_0x24dc('0xf3')]({'skipNotAttached':!0x0})[_0x24dc('0xa3')](_0x187b1c=>!_0x187b1c[_0x24dc('0x140')]),_0x543648=_0x204d68[_0x24dc('0xa3')](_0x1c1a41=>!_0x5f0dd4[_0x24dc('0x130')](_0x1c1a41)),_0x5d6c41=new Map(_0x204d68[_0x24dc('0x4c')](_0x2f927f=>[_0x2f927f,this[_0x24dc('0x63')]['getSuggestionCallback'](_0x2f927f[_0x24dc('0x21')],_0x2f927f[_0x24dc('0xb')],_0x24dc('0x52'))])),_0x27a306=new Map(_0x204d68[_0x24dc('0x4c')](_0x1fd0e2=>[_0x1fd0e2,_0x1fd0e2[_0x24dc('0x62')]()])),_0x1d6e74=new Set(),_0x4be7bc=new Set();for(let _0x25088c=0x0;_0x25088c<_0xa8bbf6['length'];_0x25088c++)_0x1f20bd(_0xa8bbf6[_0x25088c],_0xa8bbf6,_0x25088c+0x1);for(let _0x9db2dc=0x0;_0x9db2dc<_0xa8bbf6[_0x24dc('0x80')];_0x9db2dc++)_0x1f20bd(_0xa8bbf6[_0x9db2dc],_0x543648,0x0);for(let _0x116370=0x0;_0x116370<_0xa8bbf6[_0x24dc('0x80')];_0x116370++){const _0x3e0923=_0xa8bbf6[_0x116370];!_0x4be7bc[_0x24dc('0x130')](_0x3e0923)&&_0x3e0923[_0x24dc('0xef')]&&(_0x3e0923[_0x24dc('0xef')][_0x24dc('0x7d')]===_0x3e0923&&(_0x3e0923[_0x24dc('0xef')][_0x24dc('0x7d')]=null),_0x3e0923[_0x24dc('0xef')]=null),!_0x1d6e74[_0x24dc('0x130')](_0x3e0923)&&_0x3e0923[_0x24dc('0x7d')]&&(_0x3e0923[_0x24dc('0x7d')]['previous']===_0x3e0923&&(_0x3e0923[_0x24dc('0x7d')][_0x24dc('0xef')]=null),_0x3e0923['next']=null);}function _0x1f20bd(_0x45f184,_0x32c579,_0xc6e3bc){for(let _0x3e23b1=_0xc6e3bc;_0x3e23b1<_0x32c579['length'];_0x3e23b1++){const _0x4e266c=_0x4fa8c3(_0x45f184,_0x32c579[_0x3e23b1]);_0x4e266c&&(_0x4e266c[0x0][_0x24dc('0x7d')]=_0x4e266c[0x1],_0x4e266c[0x1][_0x24dc('0xef')]=_0x4e266c[0x0],_0x1d6e74[_0x24dc('0x122')](_0x4e266c[0x0]),_0x4be7bc[_0x24dc('0x122')](_0x4e266c[0x1]));}}function _0x4fa8c3(_0xd6386f,_0x385f03){if(_0xd6386f['author']['id']!==_0x385f03[_0x24dc('0xec')]['id'])return null;const _0x3f52b9=_0x5d6c41['get'](_0xd6386f)(_0xd6386f,_0x385f03,_0x27a306[_0x24dc('0x1a')](_0xd6386f),_0x27a306[_0x24dc('0x1a')](_0x385f03));if(!_0x3f52b9)return null;return _0x5d6c41[_0x24dc('0x1a')](_0x385f03)(_0xd6386f,_0x385f03,_0x27a306[_0x24dc('0x1a')](_0xd6386f),_0x27a306['get'](_0x385f03))?_0x3f52b9[0x1]['commentThread']&&_0x3f52b9[0x1]['commentThread'][_0x24dc('0x80')]?null:_0x3f52b9:null;}}[_0x24dc('0x7e')](_0x41783b){const _0x35980a=Array[_0x24dc('0x50')](_0x41783b),_0x5413f1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1938a6=_0x5413f1[_0x24dc('0xa3')](_0x59e698=>!_0x41783b['has'](_0x59e698)),_0x5da6ca=new Map(_0x35980a[_0x24dc('0x4c')](_0x1b011b=>[_0x1b011b,this[_0x24dc('0x63')]['getSuggestionCallback'](_0x1b011b[_0x24dc('0x21')],_0x1b011b[_0x24dc('0xb')],_0x24dc('0x119'))])),_0x443d75=new Map(_0x5413f1[_0x24dc('0x4c')](_0x3aa825=>[_0x3aa825,_0x3aa825['getRanges']()]));for(let _0xfadae7=0x0;_0xfadae7<_0x35980a[_0x24dc('0x80')];_0xfadae7++){if(_0x48cc74(this,_0x35980a[_0xfadae7],_0x35980a,_0xfadae7+0x1))return!0x0;}for(let _0x1ba9ad=0x0;_0x1ba9ad<_0x35980a[_0x24dc('0x80')];_0x1ba9ad++){if(_0x48cc74(this,_0x35980a[_0x1ba9ad],_0x1938a6,0x0))return!0x0;}return!0x1;function _0x48cc74(_0x172333,_0xe37e7c,_0x2bb2c7,_0x308c42){for(let _0x754207=_0x308c42;_0x754207<_0x2bb2c7[_0x24dc('0x80')];_0x754207++){const _0x2d300d=_0x2bb2c7[_0x754207];if(_0x2d300d[_0x24dc('0x21')]!==_0xe37e7c[_0x24dc('0x21')]||_0x2d300d[_0x24dc('0xec')]['id']!==_0xe37e7c[_0x24dc('0xec')]['id']||_0x2d300d['subType']!==_0xe37e7c[_0x24dc('0xb')])continue;const _0x58c82b=_0x5da6ca['get'](_0xe37e7c),_0x5f56be=_0x443d75[_0x24dc('0x1a')](_0xe37e7c),_0x139ff8=_0x443d75[_0x24dc('0x1a')](_0x2d300d),_0x400b5b=_0xe37e7c[_0x24dc('0x6c')]&&_0xe37e7c[_0x24dc('0x6c')]['length'],_0x5a7ead=_0x2d300d[_0x24dc('0x6c')]&&_0x2d300d[_0x24dc('0x6c')][_0x24dc('0x80')];if(!_0x400b5b&&_0x58c82b(_0x139ff8,_0x5f56be))return _0x172333[_0x24dc('0x99')](_0x2d300d,_0xe37e7c),_0x443d75[_0x24dc('0x88')](_0xe37e7c),!0x0;if(!_0x5a7ead&&_0x58c82b(_0x5f56be,_0x139ff8))return _0x172333[_0x24dc('0x99')](_0xe37e7c,_0x2d300d),_0x443d75[_0x24dc('0x88')](_0x2d300d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x309d0c,_0x34f7c2){if(_0x309d0c[_0x24dc('0x140')])for(const _0x4ff2ba of _0x34f7c2[_0x24dc('0x4a')]())_0x309d0c[_0x24dc('0x1d')](_0x4ff2ba);else{const _0x1d3026=_0x34f7c2[_0x24dc('0x62')]()[_0x24dc('0xa1')];this[_0x24dc('0x15')](_0x309d0c,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x309d0c['getFirstRange']()[_0x24dc('0x106')],_0x1d3026));}_0x34f7c2['removeMarkers']();}}class Dt{constructor(_0x359025){this[_0x24dc('0x8e')]=_0x359025,this[_0x24dc('0x86')]=_0x359025[_0x24dc('0x51')],this[_0x24dc('0x49')]=new Map(),this[_0x24dc('0x133')]=new Map(),this[_0x24dc('0x67')]();}[_0x24dc('0x7')](_0x55e82c,_0x328ff5,_0x4cb926,_0x5d9dbd,_0x185ae9,_0x59c746){return new _0xc1d4ef(this[_0x24dc('0x86')],{'type':_0x55e82c,'subType':_0x328ff5,'id':_0x4cb926,'author':_0x5d9dbd,'creator':_0x5d9dbd,'attributes':_0x185ae9,'onAttributesChange':_0x59c746,'onAccept':(..._0x3fbcbc)=>this[_0x24dc('0x60')](_0x55e82c,_0x328ff5,_0x24dc('0xeb'))(..._0x3fbcbc),'onDiscard':(..._0x4839ac)=>this[_0x24dc('0x60')](_0x55e82c,_0x328ff5,'discard')(..._0x4839ac)});}[_0x24dc('0x20')](_0x42dd9f,_0xf62540,_0x23242e,_0x8e6972){const _0x588ee5=_0x42dd9f+':'+_0xf62540+':'+_0x23242e;this[_0x24dc('0x49')][_0x24dc('0x9b')](_0x588ee5,_0x8e6972);}[_0x24dc('0x60')](_0x4ee3b9,_0x4108a5,_0x3df23e){const _0x5d8303=_0x4ee3b9+':'+_0x4108a5+':'+_0x3df23e;return this[_0x24dc('0x49')][_0x24dc('0x1a')](_0x5d8303)||this[_0x24dc('0x133')][_0x24dc('0x1a')](_0x4ee3b9+':'+_0x3df23e);}['_registerDefaultCallbacks'](){const _0x2f0e31=()=>{},_0x4343a1=_0x385d57=>{_0x385d57[_0x24dc('0xfd')]((_0x1c6610,_0x40e7f2)=>_0x1c6610[_0x24dc('0x106')][_0x24dc('0xac')](_0x40e7f2['start'])?0x1:-0x1),this['_model']['change'](_0x503e4f=>{for(const _0x17bef6 of _0x385d57){let _0x73adef;_0x73adef=_0x17bef6[_0x24dc('0xa1')][_0x24dc('0xcf')]&&_0x17bef6[_0x24dc('0xa1')][_0x24dc('0x117')]==_0x17bef6[_0x24dc('0x106')][_0x24dc('0xa8')]?_0x503e4f[_0x24dc('0x8d')](_0x17bef6['start'][_0x24dc('0xa8')],'on'):_0x503e4f[_0x24dc('0x8d')](_0x17bef6),this[_0x24dc('0x86')][_0x24dc('0xe8')](_0x73adef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x54dbbf=(_0x350f2b,_0x43c2a4)=>{this['_model'][_0x24dc('0x2c')](_0x22504c=>{const {commandName:_0x531ed3,commandParams:_0x242097=[]}=_0x43c2a4,_0x109a60=_0x350f2b[_0x24dc('0x4c')](_0x5152b2=>(_t(_0x5152b2)&&(_0x5152b2=this[_0x24dc('0x86')][_0x24dc('0x98')](_0x5152b2[_0x24dc('0xa1')])),_0x5152b2))['filter'](_0x13e958=>_0x24dc('0x75')!==_0x13e958['root']['rootName']);if(_0x109a60[_0x24dc('0x80')]<0x1)return;const _0x493475=Array[_0x24dc('0x50')](this[_0x24dc('0x86')][_0x24dc('0xaf')][_0x24dc('0x7c')][_0x24dc('0x4a')]())[_0x24dc('0x4c')](_0x23a171=>_0x21503c[_0x24dc('0x2b')](_0x23a171));_0x22504c[_0x24dc('0x5c')](_0x109a60);for(const _0x5280f4 of this['_editor']['commands'][_0x24dc('0x56')]())_0x5280f4['refresh']();_0x242097[_0x24dc('0xb6')]({'forceDefaultExecution':!0x0}),this[_0x24dc('0x8e')]['execute'](_0x531ed3,..._0x242097);const _0x4a0cfc=_0x493475[_0x24dc('0xa3')](_0x3a4d1e=>_0x24dc('0x75')!=_0x3a4d1e[_0x24dc('0x89')][_0x24dc('0x95')]);_0x4a0cfc[_0x24dc('0x80')]>0x0&&_0x22504c['setSelection'](_0x4a0cfc);for(const _0x3a7cb0 of _0x493475)_0x3a7cb0[_0x24dc('0x72')]();});},_0x1ef22d=(_0x5b6756,_0x34ae10)=>0x1==_0x5b6756[_0x24dc('0x80')]&&0x1==_0x34ae10[_0x24dc('0x80')]&&_0x5b6756[0x0]['end']['isEqual'](_0x34ae10[0x0][_0x24dc('0x106')]),_0x52a909=(_0x24825d,_0x403e08,_0x2d045f,_0x3d7b65)=>xt(_0x24825d,_0x403e08,_0x2d045f,_0x3d7b65,this[_0x24dc('0x86')])?[_0x24825d,_0x403e08]:xt(_0x403e08,_0x24825d,_0x3d7b65,_0x2d045f,this[_0x24dc('0x86')])?[_0x403e08,_0x24825d]:null;this['_defaultCallbacks']['set'](_0x24dc('0x101'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0xd6'),_0x4343a1),this[_0x24dc('0x133')]['set'](_0x24dc('0x71'),_0x1ef22d),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0x54'),_0x52a909),this['_defaultCallbacks']['set'](_0x24dc('0xde'),_0x4343a1),this[_0x24dc('0x133')][_0x24dc('0x9b')]('deletion:discard',_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')]('deletion:join',_0x1ef22d),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0xc6'),_0x52a909),this[_0x24dc('0x133')]['set'](_0x24dc('0xe5'),_0x54dbbf),this[_0x24dc('0x133')]['set'](_0x24dc('0xad'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0xc4'),_0x1ef22d),this['_defaultCallbacks']['set'](_0x24dc('0xfa'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')]('formatBlock:accept',_0x54dbbf),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0x6f'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0x93'),_0x1ef22d),this[_0x24dc('0x133')]['set']('formatBlock:chain',_0x2f0e31);}}function Bt(_0x4b85c9,_0xbfa0cf,_0x38a829){for(const _0x51dc2f of _0xbfa0cf[_0x24dc('0x117')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51dc2f[_0x24dc('0x89')]==_0x51dc2f)return!0x1;if(!_0x38a829['containsItem'](_0x51dc2f))return!0x1;if(_0x4b85c9['isObject'](_0x51dc2f)||_0x4b85c9[_0x24dc('0x7b')](_0x51dc2f))return!0x0;}return!0x1;}function _t(_0x361dd3){return _0x361dd3[_0x24dc('0xa1')][_0x24dc('0x117')]==_0x361dd3[_0x24dc('0x106')][_0x24dc('0xa8')]&&_0x361dd3[_0x24dc('0xa1')][_0x24dc('0xb5')];}function Mt(_0x4e7ba7,_0x310288,_0x1be3a5,_0x54393f){const _0x5598f9=_0x284550=>!_0x284550[_0x24dc('0xb7')]['is'](_0x24dc('0x10a'))&&!_0x54393f[_0x24dc('0xe4')](_0x284550['item']),_0x14222e=_0x4e7ba7[_0x24dc('0x106')][_0x24dc('0x135')](_0x5598f9),_0x4d295e=_0x4e7ba7[_0x24dc('0xa1')][_0x24dc('0x135')](_0x5598f9,{'direction':_0x24dc('0x13b')});return(!_0x4e7ba7['start'][_0x24dc('0x84')](_0x14222e)||!_0x4e7ba7[_0x24dc('0xa1')][_0x24dc('0x84')](_0x4d295e))&&(_0x14222e['isBefore'](_0x4d295e)?_0x1be3a5[_0x24dc('0xdb')](_0x310288,{'range':_0x1be3a5['createRange'](_0x14222e,_0x4d295e)}):_0x1be3a5['removeMarker'](_0x310288),!0x0);}function $t(_0x2e8459){return _0x3a4b2e(_0x2e8459);}function Nt(_0x17faac){const _0x51ad26=_0x17faac[_0x24dc('0x106')][_0x24dc('0xa8')];return _0x51ad26&&_0x51ad26['is'](_0x24dc('0x13a'));}function Rt(_0xa1c2ca,_0x3ffc5a){const _0xe95832=_0x3ffc5a['schema'][_0x24dc('0xe4')](_0xa1c2ca)||_0x3ffc5a[_0x24dc('0xe')][_0x24dc('0x18')](_0xa1c2ca);return _0x3ffc5a[_0x24dc('0x98')](_0x3ffc5a[_0x24dc('0xba')](_0xa1c2ca,_0x24dc('0xbc')),_0xe95832?_0x3ffc5a[_0x24dc('0x7a')](_0xa1c2ca):_0x3ffc5a[_0x24dc('0xba')](_0xa1c2ca,'end'));}function xt(_0x48397f,_0x5ab2c7,_0x299f0f,_0x49e943,_0x3eb8ed){if(_0x299f0f[_0x24dc('0xa1')][_0x24dc('0x84')](_0x49e943[_0x24dc('0x106')]))return!0x0;if(_0x48397f[_0x24dc('0x21')]!=_0x5ab2c7[_0x24dc('0x21')])return!0x1;if(!_0x299f0f[_0x24dc('0xa1')][_0x24dc('0x74')](_0x49e943[_0x24dc('0x106')]))return!0x1;const _0x394d8b=_0x3eb8ed[_0x24dc('0x98')](_0x299f0f[_0x24dc('0xa1')],_0x49e943[_0x24dc('0x106')])['getWalker']();for(const _0x29fe09 of _0x394d8b)if([_0x24dc('0x3a'),_0x24dc('0x64')]['includes'](_0x29fe09[_0x24dc('0x21')])&&_0x3eb8ed[_0x24dc('0xe')]['isLimit'](_0x29fe09[_0x24dc('0xb7')]))return!0x1;return!0x0;}