@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231022.0 → 0.0.0-nightly-20231023.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231023.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20231023.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231023.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x35a7=['removeMarkers','isArray','_breakSuggestionMarker','formatInline:accept','addUser','toJSON','insertion:accept','selection','insertion','markInlineFormat','_findSuggestions','_joinSuggestions','from','forceDefaultExecution','addHighlight','group','element','createPositionAfter','containerElement','push','getRanges','elementEnd','_customCallbacks','editing','_onDiscard','formatBlock:accept','for','deletion:','_updateSuggestionData','discard','multi','_getAuthorFromId','isMultiRange','formatInline','_splitMarkerName','isOwn','ready','change:activeMarkers','isAfter','schema','removed','skipNestingCheck','nodeAfter','never','removeMarker','track-changes-suggestion-data-mismatch','_registerDefaultCallbacks','registerCustomCallback','getWalker','dataDowncast','start','$textProxy','_createSuggestion','has','batch','root','trackChanges.trackFormatChanges','getItems','detach','change','insertion:discard','_adapter','_model','isObject','track-changes-adapter-missing-getsuggestion','moveTargetPosition','_checkSuggestionCorrectness','always','widget','isRemovable','trackChangesCommand','mapper','containsItem','addRange','isAtStart','value','data','fromRange','multipleBlocks','enqueueChange','getAllAdjacentSuggestions','_mergeNestedSuggestions','TrackChangesEditing','marker-count','addSuggestionData','elementStart','some','hasCommentThread','isTouching','track-changes-suggestion-not-found','addSuggestion','ck-suggestion-marker','_suggestionFactory','markMultiRangeBlockFormat','unbindElementFromMarkerName','targetPosition','CommentsRepository','_suggestionState','createdAt','split','suggestionChanged','newRange','_setSuggestionRange','createSelection','isBefore','type','createPositionAt','isCollapsed','forward','acceptSelectedSuggestions','_defaultCallbacks','locale','isInsideObject','isAtEnd','isDocumentOperation','updateSuggestion','plugins','updateMarker','isIntersectingWithRange','enableReadOnlyMode','getSuggestion','tablePasteChainId','before','rootName','_getExternalAuthor','sort','low','addCommentThread','_isForcedDefaultExecutionBlock','discardSelectedSuggestions','return','open','removeComment','consume','join','_removeSuggestion','formatBlock:discard','howMany','activeMarkers','discardSuggestion','fromCharCode','addMarker:suggestion','deletion','head','createRangeIn','@external','document','listenTo','options','markerName','stopListening','getShiftedBy','isInContent','_cutOutSuggestionMarker','removeAttribute','backward','_isDataLoaded','consumable','default','isLimit','buildSuggestion','trackChanges.mergeNestedSuggestions','data-suggestion','Users','editor','addClass','$graveyard','isBlock','chain','subType','elementToElement','showSuggestionHighlights','nodeBefore','getMarkers','execute','removeClass','setTo','clone','commentThread','after','differ','requires','$marker','markInsertion','includes','assign','_enabledCommands','isNextTo','_descriptionFactory','getAncestors','documentSelection','acceptAllSuggestions','isSelectable','suggestionLoaded','markerReady','external:','item','ck-suggestion-marker--active','getCommentThread','_rangeIsInLocalUserInsertion','filter','attributes','refresh','formatInline:join','markDeletion','formatInline:','config','getSuggestionCallback','stop','markerToHighlight','high','range','ck-suggestion-marker-formatBlock','deleteContent','createPositionBefore','insertion:chain','_setSuggestionData','authoredAt','isExternal','createRange','formatBlock:','author','_editor','name','size','discardAllSuggestions','_saved','oldRange','_addThreadToSuggestion','markerNameToElements','adapter','end','originalSuggestionId','getLastMatchingPosition','add','markers','fire','addMarker','containsRangeInObject','length','accept','formatBlock','formatInline:discard','toViewElement','getFirstRange','containsRange','lowest','formatBlock:join','next','previous','unbind','values','clear','applyOperation','_commentsRepository','suggestion','bindElementToMarker','suggestionUnloaded','map','delete','dataReady','markMultiRangeDeletion','enableCommand','commandName','_joinWithAdjacentSuggestions','getUser','_addSuggestionMarker','rejected','creator','keys','parent','splice','acceptSuggestion','upcast','formatInline:chain','isLocal','conversion','suggestion:','getSuggestions','init','every','addMarker:suggestion:formatBlock','getNearestSelectionRange','notReady','getChangedMarkers','editingDowncast','ck-suggestion-marker-','hasComments','position','_suggestions','insertion:join','collaboration.channelId','writer','PendingActions','isUndo','markMultiRangeInsertion','addComment','_trackFormatChanges','remove','getAttribute','setSelection','isEqual','define','change:_saved','get','commands','PENDING_ACTION_SUGGESTION','_handleNewSuggestionMarker','getMultiRangeId','suggestion-type','resolve','formatGroupId','_refreshSuggestionsChain','insertion:','getFirstMarker','registerPostFixer','getIntersection','set','addMarkerName','containsPosition','normal','then','model','insert','getCustomProperty','catch'];(function(_0x5041ed,_0x35a728){const _0x3c417f=function(_0x2964c4){while(--_0x2964c4){_0x5041ed['push'](_0x5041ed['shift']());}};_0x3c417f(++_0x35a728);}(_0x35a7,0x1b5));const _0x3c41=function(_0x5041ed,_0x35a728){_0x5041ed=_0x5041ed-0x0;let _0x3c417f=_0x35a7[_0x5041ed];return _0x3c417f;};import{Plugin as _0xcc7ad3,PendingActions as _0x2ac684}from'ckeditor5/src/core';import{LiveRange as _0xe5a593}from'ckeditor5/src/engine';import{CKEditorError as _0x149c43,uid as _0x47dbea,priorities as _0xa4659f,logWarning as _0x151902}from'ckeditor5/src/utils';import{toWidget as _0x55a102}from'ckeditor5/src/widget';import{Users as _0x24abd7,hashObject as _0x4ee5c6}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e0ba5 from'./commands/trackchangescommand';import _0x2e3652 from'./commands/acceptsuggestioncommand';import _0x3335a5 from'./commands/discardsuggestioncommand';import _0x19c964 from'./commands/executeonallsuggestionscommand';import _0x2f37ce from'./commands/executeonselectedsuggestionscommand';import _0x32734f from'./suggestion';import _0x3b26fe from'./suggestiondescriptionfactory';import _0x340feb from'./integrations/aiassistant';import _0x49adac from'./integrations/alignment';import _0x75b8ab from'./integrations/basicstyles';import _0x16f2f9 from'./integrations/blockquote';import _0x5c9f03 from'./integrations/ckbox';import _0x4b80ae from'./integrations/codeblock';import _0x231535 from'./integrations/comments';import _0x5787c9 from'./integrations/deletecommand';import _0x4de95f from'./integrations/documentlist';import _0x15b330 from'./integrations/entercommand';import _0xbfce62 from'./integrations/findandreplace';import _0x451e65 from'./integrations/font';import _0xbc165c from'./integrations/formatpainter';import _0x2804bf from'./integrations/heading';import _0x269478 from'./integrations/highlight';import _0x23b6f0 from'./integrations/horizontalline';import _0x41d6b8 from'./integrations/htmlembed';import _0x33c9d1 from'./integrations/image';import _0x1e9e05 from'./integrations/imagereplace';import _0x5eae9f from'./integrations/importword';import _0xa0bc3e from'./integrations/indent';import _0x2afa09 from'./integrations/inputcommand';import _0x1948bc from'./integrations/link';import _0xa7ca2e from'./integrations/list';import _0x3d68ea from'./integrations/listproperties';import _0x4ec19b from'./integrations/mediaembed';import _0x2d3e55 from'./integrations/mention';import _0x5c44f1 from'./integrations/pagebreak';import _0x73cb8e from'./integrations/paragraph';import _0x230057 from'./integrations/removeformat';import _0x4c52d9 from'./integrations/restrictededitingmode';import _0x2e85ed from'./integrations/shiftentercommand';import _0x461d8b from'./integrations/standardeditingmode';import _0x45e382 from'./integrations/style';import _0x714963 from'./integrations/table';import _0x2183e8 from'./integrations/tablemergesplit';import _0x50351a from'./integrations/tableheadings';import _0x4a7d15 from'./integrations/tableclipboard';import _0x4a27bc from'./integrations/tablecolumnresize';import _0x1304cc from'./integrations/template';import _0x5e18df from'./integrations/tableofcontents';import _0x6e5c from'./integrations/title';import _0x3b9799 from'./integrations/undo';import{getTranslation as _0x5dd432}from'./utils/common-translations';import _0x55ec97 from'./integrations/tablecaption';import _0x5e8027 from'./integrations/documentlistproperties';import _0x12e33e from'./integrations/tableproperties';import{isEqual as _0x524132}from'lodash-es';export default class p extends _0xcc7ad3{static get[_0x3c41('0x46')](){return[_0x3c41('0x137'),_0x24abd7,_0x2ac684,_0x340feb,_0x49adac,_0x75b8ab,_0x16f2f9,_0x5c9f03,_0x4b80ae,_0x231535,_0x5787c9,_0x4de95f,_0x5e8027,_0x15b330,_0xbfce62,_0x451e65,_0xbc165c,_0x2804bf,_0x269478,_0x23b6f0,_0x41d6b8,_0x33c9d1,_0x1e9e05,_0x5eae9f,_0xa0bc3e,_0x2afa09,_0x1948bc,_0xa7ca2e,_0x3d68ea,_0x4ec19b,_0x2d3e55,_0x5c44f1,_0x73cb8e,_0x230057,_0x4c52d9,_0x2e85ed,_0x461d8b,_0x45e382,_0x714963,_0x2183e8,_0x50351a,_0x55ec97,_0x4a7d15,_0x4a27bc,_0x5e18df,_0x12e33e,_0x1304cc,_0x6e5c,_0x3b9799];}static get['pluginName'](){return _0x3c41('0x129');}constructor(_0x1d5df1){function _0x495e91(_0x420183){return _0x420183[_0x3c41('0x93')](_0x3ed498=>String[_0x3c41('0x1d')](_0x3ed498))[_0x3c41('0x17')]('');}super(_0x1d5df1),this[_0x3c41('0xce')](_0x3c41('0x1b'),[]),this['on'](_0x3c41('0xfc'),(_0x437041,_0x36feda,_0x490422,_0x30baf7)=>{this['_model']['change'](()=>{for(const _0x313b7a of[..._0x30baf7,..._0x490422])this[_0x3c41('0x115')][_0x3c41('0x7c')][_0x3c41('0x10c')](_0x313b7a)&&_0x1d5df1[_0x3c41('0xee')]['reconvertMarker'](_0x313b7a);});}),this[_0x3c41('0x4d')]=new _0x3b26fe(this[_0x3c41('0x35')][_0x3c41('0xd3')][_0x3c41('0xfe')],this['editor'][_0x3c41('0x0')]),this['_adapter']=null,this[_0x3c41('0x133')]=new Bt(this[_0x3c41('0x35')]),this['_suggestions']=new Map(),this[_0x3c41('0x8f')]=_0x1d5df1[_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x137')),this['_enabledCommands']=new Set(),this[_0x3c41('0x115')]=this['editor'][_0x3c41('0xd3')],this[_0x3c41('0x138')]=new WeakMap(),this[_0x3c41('0x11')]=!0x1,_0x1d5df1['config'][_0x3c41('0xbf')](_0x3c41('0x10f'),_0x3c41('0x2f')),this['_trackFormatChanges']=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x10f')),_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xbf')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x3c41('0x128')]=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x32')),this['trackChangesCommand']=new _0x3e0ba5(_0x1d5df1,this[_0x3c41('0x4b')]),this[_0x495e91([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x495e91([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x34]);}[_0x3c41('0xa8')](){const _0x534b7c=this['editor'];_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':_0x4c6898=>{const {id:_0x39cb01,type:_0x8dec53}=this[_0x3c41('0xf9')](_0x4c6898[_0x3c41('0x26')]),_0x17bca6=[_0x3c41('0x132'),_0x3c41('0xaf')+_0x8dec53];let _0x804d1b=0xbb8;return this['activeMarkers'][_0x3c41('0x49')](_0x4c6898[_0x3c41('0x26')])&&(_0x17bca6[_0x3c41('0xea')](_0x3c41('0x56')),_0x804d1b=0xbc2),_0x3c41('0x1f')==_0x8dec53&&(_0x804d1b+=0x5),{'classes':_0x17bca6,'attributes':{'data-suggestion':_0x39cb01},'priority':_0x804d1b};}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x2517b1=>{_0x2517b1['on'](_0x3c41('0x1e'),(_0x3b2acb,_0x3245da,_0x5af790)=>{if(!_0x5af790['options']['showSuggestionHighlights'])return;const _0x359e89=_0x3245da[_0x3c41('0x55')];if(!_0x359e89)return;const _0x5662dc=_0x5af790[_0x3c41('0x11e')][_0x3c41('0x84')](_0x359e89);_0x534b7c['model']['schema']['isObject'](_0x359e89)&&_0x5662dc&&!_0x5662dc['getCustomProperty'](_0x3c41('0x11b'))&&_0x5662dc['is'](_0x3c41('0xe9'))&&_0x55a102(_0x5662dc,_0x5af790['writer']);},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':(_0x26fde7,_0x2fca5e)=>{if(!_0x2fca5e[_0x3c41('0x25')][_0x3c41('0x3c')])return null;const {type:_0x3740b0}=this[_0x3c41('0xf9')](_0x26fde7['markerName']);return{'classes':[_0x3c41('0x132'),_0x3c41('0xaf')+_0x3740b0],'priority':0xbb8};}});const _0x7c9ab7=({showActiveMarkers:_0x219be0=!0x0}={})=>(_0x326658,_0x4ff732,_0x4f294c)=>{if(!_0x4ff732[_0x3c41('0x55')])return;if(_0x4ff732['item']['is'](_0x3c41('0xde')))return void _0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732['item'],_0x326658['name']);const _0x2c7b1a=_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x84')](_0x4ff732[_0x3c41('0x55')]);if(!(_0x4ff732[_0x3c41('0x55')]['is'](_0x3c41('0xe7'))&&_0x534b7c[_0x3c41('0xd3')]['schema'][_0x3c41('0x38')](_0x4ff732[_0x3c41('0x55')])&&!_0x2c7b1a[_0x3c41('0xd5')]('addHighlight')))return;const {id:_0x4e2cad}=this[_0x3c41('0xf9')](_0x4ff732['markerName']);_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')]([_0x3c41('0x132'),'ck-suggestion-marker-formatBlock'],_0x2c7b1a),_0x4f294c[_0x3c41('0xb5')]['setAttribute'](_0x3c41('0x33'),_0x4e2cad,_0x2c7b1a),_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x91')](_0x2c7b1a,_0x4ff732[_0x3c41('0x26')]),_0x219be0&&(this[_0x3c41('0x1b')]['includes'](_0x4ff732[_0x3c41('0x26')])?_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')](_0x3c41('0x56'),_0x2c7b1a):_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x40')](_0x3c41('0x56'),_0x2c7b1a));for(const _0x252ed6 of _0x534b7c[_0x3c41('0xd3')][_0x3c41('0x21')](_0x4ff732[_0x3c41('0x55')])[_0x3c41('0x110')]())_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x252ed6,_0x326658[_0x3c41('0x70')]);_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732[_0x3c41('0x55')],_0x326658['name']);};_0x534b7c['conversion']['for'](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x361555=>{_0x361555['on'](_0x3c41('0xaa'),(_0x18d60e,_0x51404c,_0x26ab48)=>{_0x26ab48['options'][_0x3c41('0x3c')]&&_0x7c9ab7({'showActiveMarkers':!0x1})(_0x18d60e,_0x51404c,_0x26ab48);},{'priority':'highest'});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('dataDowncast')['markerToData']({'model':_0x3c41('0x90'),'view':(_0x3f3dd7,_0x2f2a5b)=>_0x2f2a5b[_0x3c41('0x25')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f3dd7['substr'](0xb)}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))[_0x3c41('0x3b')]({'view':{'name':_0x3c41('0x90'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ae280,{writer:_0x238952})=>{let _0x279040=_0x3c41('0xa6')+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0xc6'))+':'+_0x3ae280['getAttribute']('id');return _0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))&&(_0x279040+=':'+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))),_0x238952['createElement'](_0x3c41('0x47'),{'data-name':_0x279040});}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))['dataToMarker']({'view':'suggestion'}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('editingDowncast')[_0x3c41('0x7b')](_0x4b276a=>{_0x4b276a['on'](_0x3c41('0xaa'),_0x7c9ab7(),{'priority':_0x3c41('0x63')});}),_0x534b7c['conversion'][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x7b')](_0x9e8108=>{_0x9e8108['on']('removeMarker:suggestion:formatBlock',(_0x289894,_0x3d81dc,_0x324a27)=>{const _0x23cc36=_0x324a27[_0x3c41('0x11e')][_0x3c41('0x76')](_0x3d81dc[_0x3c41('0x26')]);if(_0x23cc36)for(const _0x450795 of _0x23cc36)_0x450795[_0x3c41('0xd5')](_0x3c41('0xe5'))||(_0x324a27['writer'][_0x3c41('0x40')]([_0x3c41('0x132'),_0x3c41('0x65'),_0x3c41('0x56')],_0x450795),_0x324a27[_0x3c41('0xb5')][_0x3c41('0x2b')](_0x3c41('0x33'),_0x450795),_0x324a27[_0x3c41('0x11e')][_0x3c41('0x135')](_0x450795,_0x3d81dc[_0x3c41('0x26')]));},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['registerPostFixer'](_0x33a103=>{let _0x2dee42=!0x1;const _0x509a28=Array['from'](_0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')][_0x3c41('0xad')]()),_0x380aa7=new Set();for(const {name:_0x21b7bb,data:_0x5ab445}of _0x509a28){const {group:_0x2daa5f,type:_0x68280a,id:_0x421689}=this[_0x3c41('0xf9')](_0x21b7bb);if(_0x3c41('0x90')!==_0x2daa5f)continue;const _0x263633=this['_suggestions'][_0x3c41('0xc1')](_0x421689);if(null!=_0x5ab445[_0x3c41('0x13c')]){_0x3c41('0xf8')==_0x68280a&&(_0x2dee42=_0x2dee42||$t(_0x5ab445['newRange'],_0x21b7bb,_0x33a103,_0x534b7c['model'][_0x3c41('0xfe')]));if(_0x5ab445['newRange']['isCollapsed']||_0x3c41('0x37')==_0x5ab445[_0x3c41('0x13c')][_0x3c41('0x10e')][_0x3c41('0xc')]||_0x3c41('0x82')==_0x68280a&&!Rt(_0x5ab445[_0x3c41('0x13c')])||_0x3c41('0x1f')==_0x68280a&&!(!Mt(_0x3606d2=_0x5ab445['newRange'])&&!function(_0x4fa01b){return _0x4fa01b[_0x3c41('0x109')][_0x3c41('0x9f')]==_0x4fa01b[_0x3c41('0x78')][_0x3c41('0x3d')]&&_0x4fa01b[_0x3c41('0x109')][_0x3c41('0x2')];}(_0x3606d2)))_0x33a103[_0x3c41('0x103')](_0x21b7bb),_0x2dee42=!0x0;else{if(!_0x263633||!_0x263633[_0x3c41('0x29')])continue;_0x380aa7[_0x3c41('0x7b')](_0x263633);}}}var _0x3606d2;return _0x380aa7[_0x3c41('0x71')]>0x0&&(_0x2dee42=!!this[_0x3c41('0x99')](_0x380aa7)||_0x2dee42),_0x2dee42;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')][_0x3c41('0xcc')](_0xd79fc8=>{let _0xfdca99=!0x1;for(const _0x1eaba1 of _0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')]['getChanges']()){if(_0x3c41('0xd4')!=_0x1eaba1['type'])continue;const _0x4db876=_0x1eaba1[_0x3c41('0xb1')][_0x3c41('0x28')](_0x1eaba1[_0x3c41('0x80')]);if(_0x4db876['isAtEnd'])for(const _0x874c97 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]()){if(_0x874c97[_0x3c41('0xf7')]||!_0x874c97[_0x3c41('0x29')])continue;if('formatBlock'!=_0x874c97[_0x3c41('0x140')])continue;const _0x12d53f=_0x874c97[_0x3c41('0x85')]();if(_0x12d53f['start'][_0x3c41('0x9f')]!=_0x12d53f[_0x3c41('0x78')]['parent']&&_0x12d53f[_0x3c41('0x78')][_0x3c41('0xbe')](_0x1eaba1['position'])){const _0x45bfe7=_0x534b7c['model'][_0x3c41('0x6c')](_0x12d53f[_0x3c41('0x109')],_0x4db876);_0xd79fc8[_0x3c41('0x6')](_0x874c97['getFirstMarker'](),{'range':_0x45bfe7}),_0xfdca99=!0x0;}}}return _0xfdca99;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x7c')]['on']('update:suggestion',(_0xadd441,_0x2e012a,_0x16087a)=>{if(null==_0x16087a){const {id:_0x201009}=this['_splitMarkerName'](_0x2e012a['name']),_0x3271c1=this['_suggestions'][_0x3c41('0xc1')](_0x201009);_0x3271c1&&_0x3271c1[_0x3c41('0xcf')](_0x2e012a[_0x3c41('0x70')]);}}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['on']('change:data',()=>{const _0x13db48=Array[_0x3c41('0xe3')](_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['differ']['getChangedMarkers']())['filter'](_0x172e90=>_0x3c41('0x90')===this[_0x3c41('0xf9')](_0x172e90[_0x3c41('0x70')])[_0x3c41('0xe6')]);if(0x0===_0x13db48[_0x3c41('0x80')])return;_0x13db48['sort']((_0x3b8b1a,_0x6fb5ec)=>{const _0x56ad65=_0x3b8b1a[_0x3c41('0x123')][_0x3c41('0x74')],_0x5468d9=_0x6fb5ec['data'][_0x3c41('0x74')];return null===_0x56ad65&&null===_0x5468d9?0x0:null===_0x56ad65&&null!==_0x5468d9?-0x1:null!==_0x56ad65&&null===_0x5468d9?0x1:_0x56ad65[_0x3c41('0x109')][_0x3c41('0x13f')](_0x5468d9[_0x3c41('0x109')])?-0x1:0x1;});const _0x4357db=new Set(),_0x168812=new Set();for(const {name:_0x14aed1,data:_0x14514c}of _0x13db48){const {id:_0x1f0155}=this[_0x3c41('0xf9')](_0x14aed1);if(null===_0x14514c[_0x3c41('0x74')]){const _0xb8b0b=this[_0x3c41('0xc4')](_0x14aed1);_0x168812[_0x3c41('0x7b')](_0xb8b0b);}else{const _0x29e495=this['_suggestions'][_0x3c41('0xc1')](_0x1f0155);null!==_0x14514c[_0x3c41('0x13c')]||_0x29e495[_0x3c41('0x29')]?(_0x4357db[_0x3c41('0x7b')](_0x29e495[_0x3c41('0x20')]),_0x168812[_0x3c41('0x7b')](_0x29e495)):this[_0x3c41('0x18')](_0x29e495);}}_0x168812['size']>0x0&&this[_0x3c41('0xc9')](_0x168812);for(const _0x2fd383 of _0x4357db)this['fire'](_0x3c41('0x13b'),_0x2fd383);}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x8e'),(_0x191441,_0x36a97c)=>{const _0x26529b=_0x36a97c[0x0];if(!this['_suggestions'][_0x3c41('0x71')])return;if(!_0x26529b[_0x3c41('0x3')])return;if(_0x26529b[_0x3c41('0x10d')][_0x3c41('0xb7')]||!_0x26529b[_0x3c41('0x10d')][_0x3c41('0xa4')])return;let _0x298d93,_0x18e41d;switch(_0x26529b[_0x3c41('0x140')]){case _0x3c41('0xd4'):_0x298d93=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b['position']),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b[_0x3c41('0x1a')]);break;case _0x3c41('0x13a'):_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b['splitPosition']),_0x18e41d=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b[_0x3c41('0x118')]);break;case'move':_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b[_0x3c41('0x136')]),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b['howMany']);break;default:return;}const _0x52ddc0=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x298d93,_0x18e41d);_0x534b7c[_0x3c41('0xd3')]['change'](()=>{for(const {suggestion:_0x338fc0,meta:_0x3eef42}of this['_findSuggestions'](_0x52ddc0)){if(_0x338fc0[_0x3c41('0xf7')])continue;if(_0x3c41('0xf8')==_0x338fc0[_0x3c41('0x140')])continue;const _0x530550=_0x338fc0[_0x3c41('0x123')]&&_0x338fc0['data'][_0x3c41('0x125')];(_0x3c41('0x82')!=_0x338fc0['type']||_0x3c41('0x13a')==_0x26529b[_0x3c41('0x140')]&&!_0x530550)&&(_0x3eef42[_0x3c41('0x7f')]||_0x3c41('0xdf')==_0x338fc0[_0x3c41('0x140')]&&_0x3eef42[_0x3c41('0xfa')]||_0x338fc0['getFirstRange']()[_0x3c41('0x86')](_0x52ddc0)&&this[_0x3c41('0xd9')](_0x338fc0,_0x298d93,_0x18e41d));}});},{'priority':_0x3c41('0x87')}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x66'),(_0xcdc238,_0x1924dd)=>{const _0xe3ce25=_0x1924dd[0x0],_0x7d7070=_0x1924dd[0x1];if(_0x7d7070&&_0x7d7070['forceDefaultExecution'])return;if(this[_0x3c41('0x11')])return;if(!this['trackChangesCommand'][_0x3c41('0x122')])return;if(_0xe3ce25['isCollapsed'])return;const _0x3b3893=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0xfe')],{start:_0x38469d,end:_0x2726aa}=_0xe3ce25['getFirstRange'](),_0x58b33e=_0x38469d[_0x3c41('0x101')]&&_0x3b3893[_0x3c41('0x30')](_0x38469d[_0x3c41('0x101')])?null:_0x3b3893[_0x3c41('0xab')](_0x38469d,_0x3c41('0x143')),_0x257c1f=_0x2726aa['nodeBefore']&&_0x3b3893[_0x3c41('0x30')](_0x2726aa[_0x3c41('0x3d')])?null:_0x3b3893[_0x3c41('0xab')](_0x2726aa,'backward'),_0x4c105c=_0x534b7c[_0x3c41('0xd3')]['createRange'](_0x58b33e?_0x58b33e['start']:_0x38469d,_0x257c1f?_0x257c1f[_0x3c41('0x78')]:_0x2726aa);_0x534b7c[_0x3c41('0xd3')]['change'](_0x597fa4=>{this[_0x3c41('0x5d')](_0x4c105c);const _0x1a89fb=_0x534b7c['model'][_0x3c41('0xfe')][_0x3c41('0xab')](_0x4c105c[_0x3c41('0x109')]);_0xe3ce25['is'](_0x3c41('0x4f'))?_0x597fa4['setSelection'](_0x1a89fb):_0xe3ce25[_0x3c41('0x41')](_0x1a89fb);}),_0xcdc238[_0x3c41('0x61')]();},{'priority':_0xa4659f[_0x3c41('0xd1')]+0xa}),_0x534b7c['model']['on']('insertContent',(_0x213975,_0x208817)=>{const _0x41b2c7=_0x208817[_0x208817[_0x3c41('0x80')]-0x1];_0x41b2c7&&_0x41b2c7[_0x3c41('0xe4')]||this[_0x3c41('0x11')]||this[_0x3c41('0x11d')][_0x3c41('0x122')]&&(_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x112')](()=>{let _0x558c10=_0x534b7c[_0x3c41('0xd3')]['insertContent'](_0x208817[0x0],_0x208817[0x1],_0x208817[0x2],{'forceDefaultExecution':!0x0});if(!_0x558c10)return;_0x213975[_0x3c41('0x13')]=_0x558c10[_0x3c41('0x42')]();const _0x3eeae6=_0x558c10[_0x3c41('0x78')][_0x3c41('0x3d')],_0x15261e=_0x534b7c['model'][_0x3c41('0xfe')];_0x3eeae6&&_0x15261e[_0x3c41('0x38')](_0x3eeae6)&&!_0x15261e[_0x3c41('0x116')](_0x3eeae6)&&(_0x558c10=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x558c10['start'],_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x3eeae6,_0x3c41('0x78')))),this[_0x3c41('0x48')](_0x558c10);}),_0x213975[_0x3c41('0x61')]());},{'priority':'high'}),this[_0x3c41('0x35')][_0x3c41('0xc2')][_0x3c41('0x7b')]('trackChanges',this['trackChangesCommand']),this[_0x3c41('0x97')]('trackChanges');const _0x1ca2b7=new _0x2e3652(_0x534b7c,this[_0x3c41('0xb2')]);_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0xa1'),_0x1ca2b7),this['enableCommand'](_0x3c41('0xa1'));const _0x1414b0=new _0x3335a5(_0x534b7c,this['_suggestions']);_0x534b7c[_0x3c41('0xc2')]['add'](_0x3c41('0x1c'),_0x1414b0),this[_0x3c41('0x97')](_0x3c41('0x1c')),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x50'),new _0x19c964(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')]('acceptAllSuggestions'),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x72'),new _0x19c964(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x72')),_0x534b7c['commands'][_0x3c41('0x7b')](_0x3c41('0x144'),new _0x2f37ce(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x144')),_0x534b7c['commands'][_0x3c41('0x7b')]('discardSelectedSuggestions',new _0x2f37ce(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x12'));const _0x158eeb=_0x534b7c[_0x3c41('0x5')]['get'](_0x3c41('0x137'));this['listenTo'](_0x158eeb,_0x3c41('0xb9'),(_0x2bcd81,{threadId:_0x1e9f45})=>{const _0x2cc7bb=this['_suggestions'][_0x3c41('0xc1')](_0x1e9f45);_0x2cc7bb&&_0x2cc7bb[_0x3c41('0x43')]&&0x1===_0x2cc7bb[_0x3c41('0x43')][_0x3c41('0x80')]&&this[_0x3c41('0xf3')](_0x1e9f45,{'hasComments':!0x0});},{'priority':_0x3c41('0xf')}),this['listenTo'](_0x158eeb,_0x3c41('0x15'),(_0x48f8f3,{threadId:_0x2098d6})=>{const _0x4786bc=this[_0x3c41('0xb2')]['get'](_0x2098d6);_0x4786bc&&_0x4786bc[_0x3c41('0x43')]&&!_0x4786bc[_0x3c41('0x43')]['length']&&this[_0x3c41('0xf3')](_0x2098d6,{'hasComments':!0x1});},{'priority':_0x3c41('0xf')});}set[_0x3c41('0x77')](_0x3773a4){if(this['_adapter'])throw new _0x149c43('track-changes-adapter-already-set',this);this['_adapter']=_0x3773a4;}get[_0x3c41('0x77')](){return this[_0x3c41('0x114')];}['getSuggestions']({skipNotAttached:_0x45cf2a=!0x1,toJSON:_0x45ae6c=!0x1}={}){const _0x1577bb=[];for(const _0x349db3 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]())_0x45cf2a&&!_0x349db3[_0x3c41('0x29')]||_0x1577bb[_0x3c41('0xea')](_0x349db3);return _0x45ae6c?_0x1577bb['map'](_0x3098f5=>_0x3098f5[_0x3c41('0xdc')]()):_0x1577bb;}[_0x3c41('0x9')](_0x26ea28){const _0x4c0767=this[_0x3c41('0xb2')]['get'](_0x26ea28);if(!_0x4c0767)throw new _0x149c43(_0x3c41('0x130'),this);return _0x4c0767;}['hasSuggestion'](_0x5e817f){return this['_suggestions']['has'](_0x5e817f);}['addSuggestionData'](_0xa4d500){const {authorId:_0x544359,id:_0x5e6e30,attributes:_0x1f75a3}=_0xa4d500,[_0x279f8d,_0xc0548]=_0xa4d500['type'][_0x3c41('0x13a')](':'),_0x2b2975=this[_0x3c41('0xb2')]['get'](_0x5e6e30)||this[_0x3c41('0x10b')](_0x279f8d,_0xc0548,_0x5e6e30,_0x544359,_0x1f75a3);if(this[_0x3c41('0x75')](_0x2b2975),this[_0x3c41('0x119')](_0x2b2975,_0x279f8d,_0xc0548||null,_0x544359),_0x2b2975['createdAt']=_0xa4d500[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x2d')]=!0x0,_0x1f75a3&&_0x1f75a3['@external']){const _0x9a1c45=_0x1f75a3[_0x3c41('0x22')],_0x29dbe8=this[_0x3c41('0xd')](_0x9a1c45['authorName']);_0x2b2975[_0x3c41('0x6a')]=_0x9a1c45[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x6e')]=_0x29dbe8,_0x2b2975[_0x3c41('0x6b')]=!0x0;}else _0x2b2975[_0x3c41('0x6a')]=_0xa4d500[_0x3c41('0x139')];switch(_0xa4d500[_0x3c41('0x123')]&&(_0x2b2975[_0x3c41('0x123')]=_0xa4d500['data']),_0xa4d500[_0x3c41('0x5a')]&&(_0x2b2975[_0x3c41('0x5a')]=_0xa4d500[_0x3c41('0x5a')]),this[_0x3c41('0x114')]&&this[_0x3c41('0x114')][_0x3c41('0x131')]||(_0x2b2975[_0x3c41('0x73')]=!0x0),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0x2b2975)){case _0x3c41('0xac'):this['_suggestionState'][_0x3c41('0xce')](_0x2b2975,'dataReady');break;case _0x3c41('0x53'):_0x2b2975[_0x3c41('0x29')]?(this[_0x3c41('0xc9')](new Set([_0x2b2975])),this['_joinWithAdjacentSuggestions'](new Set([_0x2b2975])),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'ready'),this['fire'](_0x3c41('0x52'),_0x2b2975)):this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'removed');}return _0x2b2975;}[_0x3c41('0xa1')](_0x30256e){this[_0x3c41('0xe4')](()=>{this[_0x3c41('0x35')]['model'][_0x3c41('0x112')](()=>{for(const _0x20249d of _0x30256e[_0x3c41('0x127')]())_0x20249d['accept']();});});}[_0x3c41('0x1c')](_0x4c77a7){this[_0x3c41('0xe4')](()=>{this['editor'][_0x3c41('0xd3')][_0x3c41('0x112')](()=>{for(const _0x22e226 of _0x4c77a7[_0x3c41('0x127')]())_0x22e226[_0x3c41('0xf4')]();});});}[_0x3c41('0x97')](_0x28bb2b,_0x410629){const _0x1ca036=this[_0x3c41('0x35')]['commands'][_0x3c41('0xc1')](_0x28bb2b);if(!_0x1ca036)throw new _0x149c43('track-changes-command-not-found',this,{'commandName':_0x28bb2b});this[_0x3c41('0x4b')][_0x3c41('0x7b')](_0x1ca036),_0x410629&&_0x1ca036['on'](_0x3c41('0x3f'),(_0x3a213b,_0x462fe8)=>{this[_0x3c41('0x11d')]['value']&&(this[_0x3c41('0x11')]||_0x462fe8[_0x3c41('0x80')]>0x0&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1]&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1][_0x3c41('0xe4')]||(_0x3a213b[_0x3c41('0x13')]=_0x410629((..._0x44d8e2)=>_0x1ca036[_0x3c41('0x3f')](..._0x44d8e2,{'forceDefaultExecution':!0x0}),..._0x462fe8),_0x3a213b['stop']()));},{'priority':'high'});}[_0x3c41('0xe4')](_0x2b5190){let _0x37903a,_0x4b861e;const _0x206384=this[_0x3c41('0x11')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37903a=_0x2b5190();}catch(_0x250b34){_0x4b861e=_0x250b34;}return _0x206384||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b861e&&_0x149c43['rethrowUnexpectedError'](_0x4b861e,this),_0x37903a;}[_0x3c41('0x48')](_0x8b00b5,_0x27f5bf=null,_0x2a62ef={}){if(_0x8b00b5[_0x3c41('0x142')])return null;const _0x196699=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];for(const {suggestion:_0xabe631,meta:_0x38c81c}of this['_findSuggestions'](_0x8b00b5,_0x3c41('0xdf')))if(_0x38c81c[_0x3c41('0xfa')]){if(!_0x38c81c['isNextTo']){if(_0x38c81c[_0x3c41('0x7f')]){if(!this[_0x3c41('0x128')]||!Ot(_0xabe631,_0x2a62ef))continue;return _0xabe631;}if(Ot(_0xabe631,_0x2a62ef))return _0xabe631;this['_breakSuggestionMarker'](_0xabe631,_0x8b00b5[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')]);break;}if(_0x27f5bf==_0xabe631[_0x3c41('0x3a')]&&Ot(_0xabe631,_0x2a62ef)){const _0x346388=_0xabe631[_0x3c41('0x85')]();return _0x346388[_0x3c41('0x109')][_0x3c41('0xbe')](_0x8b00b5[_0x3c41('0x78')])?this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')]['createRange'](_0x8b00b5[_0x3c41('0x109')],_0x346388[_0x3c41('0x78')])):this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x346388[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')])),_0xabe631;}}const _0x14fa15=_0x47dbea(),_0x585c97=_0x196699['id'],_0x2fe527=_0x27f5bf?_0x3c41('0xca')+_0x27f5bf:_0x3c41('0xdf'),_0x5476c4=this[_0x3c41('0x69')]({'id':_0x14fa15,'type':_0x2fe527,'createdAt':new Date(),'authorId':_0x585c97,'attributes':_0x2a62ef});return this[_0x3c41('0x9b')](_0x2fe527,_0x14fa15,_0x585c97,_0x8b00b5),_0x5476c4;}[_0x3c41('0xb8')](_0x28b89b,_0x17019d='multi',_0x75a660={}){const _0x4dd1f7=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x125fbd=this[_0x3c41('0x133')][_0x3c41('0x60')]('insertion',_0x17019d,_0x3c41('0x17'));for(const _0x4f2cfc of this[_0x3c41('0xa7')]())if(_0x4f2cfc['author']['id']==_0x4dd1f7['id']&&'insertion'==_0x4f2cfc[_0x3c41('0x140')]&&_0x4f2cfc[_0x3c41('0x3a')]==_0x17019d&&Ot(_0x4f2cfc,_0x75a660)&&(_0x125fbd(_0x4f2cfc[_0x3c41('0xeb')](),_0x28b89b)||_0x125fbd(_0x28b89b,_0x4f2cfc[_0x3c41('0xeb')]()))){for(const _0x49160a of _0x28b89b)_0x4f2cfc[_0x3c41('0x120')](_0x49160a);return _0x4f2cfc;}for(const {suggestion:_0x12b21a,meta:_0x1f4c8f}of this['_findSuggestions'](_0x28b89b,_0x3c41('0xdf'))){if(!_0x1f4c8f[_0x3c41('0xfa')])continue;if(!this[_0x3c41('0x128')]&&_0x1f4c8f[_0x3c41('0x7f')])continue;if(!Ot(_0x12b21a,_0x75a660))continue;let _0x58e14d=!0x0;for(const _0x26f2a1 of _0x12b21a['getRanges']())for(const _0x5d4738 of _0x28b89b)if(!_0x26f2a1[_0x3c41('0x86')](_0x5d4738)){_0x58e14d=!0x1;break;}if(_0x58e14d)return _0x12b21a;}const _0x59a9e6=_0x47dbea(),_0xa6d0e0=_0x4dd1f7['id'],_0x6db77b=_0x3c41('0xca')+_0x17019d,_0xe50887=this[_0x3c41('0x69')]({'id':_0x59a9e6,'type':_0x6db77b,'createdAt':new Date(),'authorId':_0xa6d0e0,'attributes':_0x75a660});for(const _0x23103b of _0x28b89b)this['_addSuggestionMarker'](_0x6db77b,_0x59a9e6,_0xa6d0e0,_0x23103b,_0x32734f[_0x3c41('0xc5')]());return _0xe50887;}[_0x3c41('0xe0')](_0x320ef9,_0x40b9bf,_0x5537b7=null,_0x445bad={}){if(_0x5537b7=_0x5537b7||Nt(_0x40b9bf),_0x320ef9[_0x3c41('0x142')])return null;if(_0x3c41('0x102')===this[_0x3c41('0xba')]){const _0x28d153=this[_0x3c41('0x133')][_0x3c41('0x60')]('formatInline',_0x5537b7,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x28d153([_0x320ef9],_0x40b9bf,_0x445bad)),null;}const _0x39d8ba=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x347bb7=[];if(_0x3c41('0x11a')!==this[_0x3c41('0xba')])for(const {suggestion:_0x15fa94,meta:_0x389071}of this[_0x3c41('0xe1')](_0x320ef9,_0x3c41('0xdf')))_0x389071[_0x3c41('0xfa')]&&!_0x389071[_0x3c41('0x1')]&&_0x347bb7[_0x3c41('0xea')](..._0x15fa94[_0x3c41('0xeb')]());const _0x5438cb=function(_0x12c90e,_0xba329e){const _0x41f539=[];for(const _0x3e50b9 of _0xba329e){const _0x308412=_0x12c90e['getIntersection'](_0x3e50b9);_0x308412&&_0x41f539[_0x3c41('0xea')](_0x308412);}return _0x41f539;}(_0x320ef9,_0x347bb7),_0x40068a=function(_0x1b18e8,_0x3664ed){const _0x564d70=[_0x1b18e8];for(const _0x1643bc of _0x3664ed){let _0x1dea24=0x0;for(;_0x1dea24<_0x564d70['length'];){const _0x1ac02e=_0x564d70[_0x1dea24]['getDifference'](_0x1643bc);_0x564d70[_0x3c41('0xa0')](_0x1dea24,0x1,..._0x1ac02e),_0x1dea24+=_0x1ac02e[_0x3c41('0x80')];}}return _0x564d70;}(_0x320ef9,_0x347bb7);_0x5438cb[_0x3c41('0x80')]&&this[_0x3c41('0x115')][_0x3c41('0x112')](()=>{for(const _0x37d66b of _0x5438cb){const _0x399bc7=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0xf8'),_0x5537b7,_0x3c41('0x81'));this['forceDefaultExecution'](()=>_0x399bc7([_0x37d66b],_0x40b9bf,_0x445bad));}});for(const _0x4b7eeb of _0x40068a){let _0x28ec96=null,_0x5de4d5=_0x4b7eeb[_0x3c41('0x109')],_0x1aff71=_0x4b7eeb[_0x3c41('0x78')];for(const {suggestion:_0x2255bc,meta:_0x4cb0a5}of this[_0x3c41('0xe1')](_0x4b7eeb,_0x3c41('0xf8'))){if(!_0x4cb0a5['isOwn'])continue;if(_0x2255bc[_0x3c41('0x3a')]!=_0x5537b7)continue;if(!Ot(_0x2255bc,_0x445bad))continue;const _0x97d2a7=_0x2255bc[_0x3c41('0x85')]();if(_0x97d2a7[_0x3c41('0x86')](_0x4b7eeb,!0x0))return null;_0x5de4d5=_0x5de4d5['isBefore'](_0x97d2a7[_0x3c41('0x109')])?_0x5de4d5:_0x97d2a7[_0x3c41('0x109')],_0x1aff71=_0x1aff71[_0x3c41('0xfd')](_0x97d2a7['end'])?_0x1aff71:_0x97d2a7[_0x3c41('0x78')],_0x28ec96?_0x97d2a7[_0x3c41('0x109')][_0x3c41('0x13f')](_0x28ec96['getFirstRange']()[_0x3c41('0x109')])?(_0x28ec96['removeMarkers'](),_0x28ec96=_0x2255bc):_0x2255bc['removeMarkers']():_0x28ec96=_0x2255bc;}const _0xd97eb5=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5de4d5,_0x1aff71);if(_0x28ec96)this[_0x3c41('0x13d')](_0x28ec96,_0xd97eb5);else{const _0x46e822=_0x47dbea(),_0x532d20=_0x39d8ba['id'];this[_0x3c41('0x69')]({'id':_0x46e822,'type':_0x3c41('0x5e')+_0x5537b7,'data':_0x40b9bf,'createdAt':new Date(),'authorId':_0x532d20,'attributes':_0x445bad}),this[_0x3c41('0x9b')]('formatInline:'+_0x5537b7,_0x46e822,_0x532d20,_0xd97eb5);}}return null;}['markBlockFormat'](_0xdefe38,_0x33a088,_0x836a91=[],_0x14eba4=null,_0xa46b3e={}){_0x33a088[_0x3c41('0xc8')]||(_0x33a088[_0x3c41('0xc8')]=_0x33a088[_0x3c41('0x98')]),_0x33a088[_0x3c41('0x125')]=_0xdefe38['is'](_0x3c41('0x64')),_0x14eba4=_0x14eba4||Nt(_0x33a088);const _0x59bd67=_0x836a91[_0x3c41('0x93')](_0x2d994d=>jt(_0x2d994d,this[_0x3c41('0x115')])),_0x3e8c58=_0xdefe38['is'](_0x3c41('0x64'))?_0xdefe38:jt(_0xdefe38,this['_model']);if('never'===this[_0x3c41('0xba')]){const _0x194045=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x14eba4,'accept');return this['forceDefaultExecution'](()=>_0x194045([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}_0x59bd67[_0x3c41('0xea')](_0x3e8c58);let _0x10f81b=!0x0;for(const _0x2ef409 of _0x59bd67)if(!this[_0x3c41('0x58')](_0x2ef409)){_0x10f81b=!0x1;break;}if(_0x10f81b&&'always'!==this[_0x3c41('0xba')]){const _0x534654=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x14eba4,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x534654([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}let _0x410f7a=null,_0x2a7081=_0x3e8c58[_0x3c41('0x109')],_0x596c62=_0x3e8c58['end'];for(const {suggestion:_0x358793,meta:_0x2fa085}of this['_findSuggestions'](_0x3e8c58,'formatBlock')){if(!_0x2fa085[_0x3c41('0xfa')])continue;if(_0x2fa085[_0x3c41('0x4c')]||_0x2fa085[_0x3c41('0x7f')]||_0x2fa085['isInsideObject'])continue;if(_0x358793[_0x3c41('0x123')][_0x3c41('0xc8')]!=_0x33a088['formatGroupId'])continue;if(!Ot(_0x358793,_0xa46b3e))continue;const _0x438ce2=_0x358793[_0x3c41('0x85')]();if(_0x358793['subType']==_0x14eba4){if(_0x438ce2['containsRange'](_0x3e8c58,!0x0))return null;_0x2a7081=_0x2a7081[_0x3c41('0x13f')](_0x438ce2[_0x3c41('0x109')])?_0x2a7081:_0x438ce2[_0x3c41('0x109')],_0x596c62=_0x596c62[_0x3c41('0xfd')](_0x438ce2[_0x3c41('0x78')])?_0x596c62:_0x438ce2[_0x3c41('0x78')],_0x410f7a?_0x438ce2['start'][_0x3c41('0x13f')](_0x410f7a['getFirstRange']()[_0x3c41('0x109')])?(_0x410f7a['removeMarkers'](),_0x410f7a=_0x358793):_0x358793[_0x3c41('0xd7')]():_0x410f7a=_0x358793;}else{const _0x3fac89=_0x3e8c58[_0x3c41('0xcd')](_0x438ce2);this[_0x3c41('0x2a')](_0x358793,_0x3fac89);}}const _0x57292f=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x212de3=_0x47dbea(),_0x50145d=_0x57292f['id'];if(_0x410f7a)return this[_0x3c41('0x13d')](_0x410f7a,this['_model']['createRange'](_0x2a7081,_0x596c62)),_0x410f7a;{const _0x3b17df=this['_setSuggestionData']({'id':_0x212de3,'type':_0x3c41('0x6d')+_0x14eba4,'data':_0x33a088,'createdAt':new Date(),'authorId':_0x50145d,'attributes':_0xa46b3e});return this[_0x3c41('0x9b')](_0x3c41('0x6d')+_0x14eba4,_0x212de3,_0x50145d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x2a7081,_0x596c62)),_0x3b17df;}}[_0x3c41('0x134')](_0x6d2e0c,_0x39f9c0,_0x492dcc=[],_0x50aabb=null,_0x42e290={}){_0x39f9c0['formatGroupId']||(_0x39f9c0['formatGroupId']=_0x39f9c0['commandName']);const _0x8ee0fc=_0x6d2e0c[0x0];_0x39f9c0[_0x3c41('0x125')]=_0x8ee0fc['is'](_0x3c41('0x64')),_0x50aabb=_0x50aabb||Nt(_0x39f9c0);const _0xebf0e8=_0x492dcc[_0x3c41('0x93')](_0xc00508=>jt(_0xc00508,this[_0x3c41('0x115')])),_0x55a70f=_0x8ee0fc['is'](_0x3c41('0x64'))?_0x6d2e0c:_0x6d2e0c[_0x3c41('0x93')](_0x5a81ff=>jt(_0x5a81ff,this[_0x3c41('0x115')]));if('never'===this['_trackFormatChanges']){const _0x5bebde=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x5bebde(_0x55a70f,_0x39f9c0,_0x42e290)),null;}_0xebf0e8[_0x3c41('0xea')](..._0x55a70f);let _0x446a7c=!0x0;for(const _0x44a7fc of _0xebf0e8)if(!this['_rangeIsInLocalUserInsertion'](_0x44a7fc)){_0x446a7c=!0x1;break;}if(_0x446a7c&&'always'!==this[_0x3c41('0xba')]){const _0x45f8d7=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x45f8d7(_0x55a70f,_0x39f9c0,_0x42e290)),null;}const _0x2b9731=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'];for(const _0x3e18a1 of this['getSuggestions']()){if(_0x3e18a1[_0x3c41('0x6e')]['id']!=_0x2b9731['id'])continue;if(_0x3c41('0x82')!=_0x3e18a1[_0x3c41('0x140')]||_0x3e18a1['data'][_0x3c41('0xc8')]!=_0x39f9c0[_0x3c41('0xc8')])continue;if(!Ot(_0x3e18a1,_0x42e290))continue;const _0x3a1154=_0x3e18a1['subType']==_0x50aabb;for(let _0x4632df=0x0;_0x4632df<_0x55a70f['length'];_0x4632df++){const _0x3b8568=_0x55a70f[_0x4632df];for(const _0x35a02b of _0x3e18a1[_0x3c41('0x3e')]()){const _0x566528=_0x35a02b['getRange']();if(_0x3b8568[_0x3c41('0xbe')](_0x566528)){_0x3a1154?(_0x55a70f[_0x3c41('0xa0')](_0x4632df,0x1),_0x4632df--):_0x3e18a1[_0x3c41('0x103')](_0x35a02b[_0x3c41('0x70')]);break;}}}}if(0x0==_0x55a70f['length'])return null;const _0x193e6b=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x17'));for(const _0x171d93 of this[_0x3c41('0xa7')]())if(_0x171d93[_0x3c41('0x6e')]['id']==_0x2b9731['id']&&'formatBlock'==_0x171d93[_0x3c41('0x140')]&&_0x171d93[_0x3c41('0x123')][_0x3c41('0xc8')]==_0x39f9c0[_0x3c41('0xc8')]&&_0x171d93[_0x3c41('0x3a')]==_0x50aabb&&Ot(_0x171d93,_0x42e290)&&(_0x193e6b(_0x171d93[_0x3c41('0xeb')](),_0x55a70f)||_0x193e6b(_0x55a70f,_0x171d93[_0x3c41('0xeb')]()))){for(const _0x56fca3 of _0x55a70f)_0x171d93['addRange'](_0x56fca3);return _0x171d93;}const _0x352fa8=_0x47dbea(),_0x5a0554=_0x2b9731['id'],_0xc21d2e=_0x3c41('0x6d')+_0x50aabb,_0x3d3072=this[_0x3c41('0x69')]({'id':_0x352fa8,'type':_0xc21d2e,'data':_0x39f9c0,'createdAt':new Date(),'authorId':_0x5a0554,'attributes':_0x42e290});for(const _0x2cf681 of _0x55a70f)this[_0x3c41('0x9b')](_0xc21d2e,_0x352fa8,_0x5a0554,_0x2cf681,_0x32734f['getMultiRangeId']());return _0x3d3072;}[_0x3c41('0x5d')](_0x5e8758,_0x37ee87=null,_0x1c0238={}){if(_0x5e8758[_0x3c41('0x142')])return null;const _0x227e01=this[_0x3c41('0x35')]['plugins'][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x308df1=new _0xe5a593(_0x5e8758[_0x3c41('0x109')],_0x5e8758[_0x3c41('0x78')]);for(const {suggestion:_0x509fd5,meta:_0x55ae66}of this['_findSuggestions'](_0x308df1,_0x3c41('0xdf')))if(_0x55ae66['isOwn']&&!_0x55ae66[_0x3c41('0x4c')]){if(_0x509fd5[_0x3c41('0xf7')]){const _0x2b7971=_0x509fd5['getRanges']()[_0x3c41('0x59')](_0x4d7e06=>_0x3c41('0x37')!=_0x4d7e06[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2b7971[_0x3c41('0xa9')](_0x1c3b91=>_0x308df1[_0x3c41('0x86')](_0x1c3b91,!0x0))&&_0x509fd5['discard']();if(_0x2b7971[_0x3c41('0x12d')](_0x44b7ea=>_0x44b7ea[_0x3c41('0x86')](_0x308df1,!0x0))){const _0x3a6b2e=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x37ee87,'accept');return this[_0x3c41('0xe4')](()=>_0x3a6b2e([_0x308df1],null,_0x1c0238)),null;}}else{const _0x1dcace=_0x308df1[_0x3c41('0xcd')](_0x509fd5[_0x3c41('0x85')]());null!==_0x1dcace&&_0x509fd5[_0x3c41('0xef')]([_0x1dcace],null,_0x1c0238);}}if(_0x308df1[_0x3c41('0x111')](),_0x308df1[_0x3c41('0x142')]||_0x3c41('0x37')==_0x308df1[_0x3c41('0x10e')]['rootName'])return null;let _0x26c2f9=null,_0x21b2d4=_0x308df1[_0x3c41('0x109')],_0x59e8aa=_0x308df1[_0x3c41('0x78')];const _0x329460=this[_0x3c41('0xe1')](_0x308df1,_0x3c41('0x1f'));for(const {suggestion:_0x1dc60a,meta:_0x15e034}of _0x329460){const _0x19557e=this['_model']['createRange'](_0x21b2d4,_0x59e8aa);if(_0x15e034['isOwn']&&(this[_0x3c41('0x128')]||!_0x15e034[_0x3c41('0x7f')]&&!_0x15e034[_0x3c41('0x1')])){if(_0x1dc60a[_0x3c41('0xf7')]){if(!Ot(_0x1dc60a,_0x1c0238))continue;let _0x4646d5=!0x0;for(const _0x36e673 of _0x1dc60a[_0x3c41('0xeb')]()){if(_0x36e673[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;_0x19557e['containsRange'](_0x36e673)||(_0x4646d5=!0x1);}_0x4646d5&&_0x1dc60a['discard']();}else{const _0x168231=_0x1dc60a[_0x3c41('0x85')]();if(_0x168231[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;if(!Ot(_0x1dc60a,_0x1c0238)){_0x19557e['containsRange'](_0x168231)?_0x1dc60a['removeMarkers']():_0x168231[_0x3c41('0xd0')](_0x21b2d4)?_0x21b2d4=_0x168231['end']:_0x168231[_0x3c41('0xd0')](_0x59e8aa)&&(_0x59e8aa=_0x168231[_0x3c41('0x109')]);continue;}_0x21b2d4=_0x21b2d4[_0x3c41('0x13f')](_0x168231[_0x3c41('0x109')])?_0x21b2d4:_0x168231[_0x3c41('0x109')],_0x59e8aa=_0x59e8aa[_0x3c41('0xfd')](_0x168231[_0x3c41('0x78')])?_0x59e8aa:_0x168231[_0x3c41('0x78')],_0x1c0238=Object[_0x3c41('0x4a')]({},_0x1dc60a[_0x3c41('0x5a')]),_0x26c2f9?_0x168231[_0x3c41('0x109')][_0x3c41('0x13f')](_0x26c2f9[_0x3c41('0x85')]()[_0x3c41('0x109')])?(_0x26c2f9[_0x3c41('0xd7')](),_0x26c2f9=_0x1dc60a):_0x1dc60a[_0x3c41('0xd7')]():_0x26c2f9=_0x1dc60a;}}}if(_0x26c2f9)return this[_0x3c41('0x13d')](_0x26c2f9,this[_0x3c41('0x115')]['createRange'](_0x21b2d4,_0x59e8aa)),_0x26c2f9;{const _0x1b2a6a=_0x47dbea(),_0x4d1c99=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x21b2d4,_0x59e8aa),_0xb3ffa2=_0x227e01['id'],_0x3f10c1=_0x37ee87?'deletion:'+_0x37ee87:'deletion',_0x5e5309=this[_0x3c41('0x69')]({'id':_0x1b2a6a,'type':_0x3f10c1,'createdAt':new Date(),'authorId':_0xb3ffa2,'attributes':_0x1c0238});return this[_0x3c41('0x9b')](_0x3f10c1,_0x1b2a6a,_0xb3ffa2,_0x4d1c99),_0x5e5309;}}[_0x3c41('0x96')](_0x219f1b,_0x343987=_0x3c41('0xf5'),_0x2bbafe={}){const _0x5aadec=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'],_0x92769b=_0x219f1b[_0x3c41('0x93')](_0x4ff373=>new _0xe5a593(_0x4ff373['start'],_0x4ff373[_0x3c41('0x78')])),_0x2aeb5f=new Set();for(const {suggestion:_0x226cf3,meta:_0x321217}of this['_findSuggestions'](_0x92769b,_0x3c41('0xdf')))_0x321217[_0x3c41('0xfa')]&&!_0x321217[_0x3c41('0x4c')]&&_0x2aeb5f[_0x3c41('0x7b')](_0x226cf3);for(const _0xb00f14 of _0x2aeb5f)if(_0xb00f14[_0x3c41('0xf7')]){const _0x1ba51d=_0xb00f14[_0x3c41('0xeb')]();(!_0xb00f14[_0x3c41('0x5a')]||!_0xb00f14[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x1ba51d[_0x3c41('0xa9')](_0x5a0b13=>_0x92769b[_0x3c41('0x12d')](_0x27b815=>_0x27b815['containsRange'](_0x5a0b13,!0x0)))&&_0xb00f14[_0x3c41('0xf4')]());if(_0x92769b[_0x3c41('0xa9')](_0x4a1392=>_0x1ba51d[_0x3c41('0x12d')](_0x53e4b3=>_0x53e4b3['containsRange'](_0x4a1392,!0x0)))){const _0x30b96b=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x30b96b(_0x219f1b,null,_0x2bbafe)),null;}}else{const _0xb74c37=_0xb00f14['getFirstRange']();_0x92769b[_0x3c41('0x12d')](_0x4b9027=>_0x4b9027[_0x3c41('0x86')](_0xb74c37,!0x0))&&_0xb00f14[_0x3c41('0xf4')]();if(_0x92769b['every'](_0x8d4b27=>_0xb74c37['containsRange'](_0x8d4b27,!0x0))){const _0x126a3e=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x126a3e(_0x92769b,null,_0x2bbafe)),null;}}const _0xf18283=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x343987,_0x3c41('0x17'));let _0x11c605=null;for(const _0xeb3a20 of this[_0x3c41('0xa7')]())if(_0xeb3a20[_0x3c41('0x6e')]['id']==_0x5aadec['id']&&_0xeb3a20[_0x3c41('0x29')]&&_0x3c41('0x1f')==_0xeb3a20['type']&&_0xeb3a20[_0x3c41('0x3a')]==_0x343987&&Ot(_0xeb3a20,_0x2bbafe)&&(_0xf18283(_0xeb3a20['getRanges'](),_0x92769b)||_0xf18283(_0x92769b,_0xeb3a20[_0x3c41('0xeb')]()))){if(_0x11c605){if(_0xeb3a20[_0x3c41('0x43')]&&_0xeb3a20[_0x3c41('0x43')][_0x3c41('0x80')])continue;for(const _0x36cd38 of _0xeb3a20[_0x3c41('0xeb')]())_0x11c605[_0x3c41('0x7')](_0x36cd38)||_0x11c605[_0x3c41('0x120')](_0x36cd38);_0xeb3a20[_0x3c41('0xd7')]();}else{_0x11c605=_0xeb3a20;for(const _0x2bd602 of _0x92769b)_0xeb3a20[_0x3c41('0x7')](_0x2bd602)||_0xeb3a20[_0x3c41('0x120')](_0x2bd602);}}if(_0x11c605)return _0x11c605;_0x2aeb5f[_0x3c41('0x8d')]();for(const {suggestion:_0x45e54a,meta:_0x2d3dec}of this[_0x3c41('0xe1')](_0x92769b,'deletion'))_0x2d3dec[_0x3c41('0xfa')]&&(this[_0x3c41('0x128')]||!_0x2d3dec[_0x3c41('0x7f')]&&!_0x2d3dec['isInsideObject'])&&Ot(_0x45e54a,_0x2bbafe)&&_0x2aeb5f[_0x3c41('0x7b')](_0x45e54a);for(const _0x4adc0f of _0x2aeb5f){const _0x17bf39=_0x4adc0f['getRanges']();if(!_0x2bbafe||!_0x2bbafe[_0x3c41('0x100')]){if(_0x92769b[_0x3c41('0xa9')](_0x284b0f=>_0x17bf39[_0x3c41('0x12d')](_0x72ce1a=>_0x72ce1a[_0x3c41('0x86')](_0x284b0f,!0x0))))return _0x4adc0f;}(!_0x4adc0f[_0x3c41('0x5a')]||!_0x4adc0f[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x17bf39[_0x3c41('0xa9')](_0x562650=>_0x92769b[_0x3c41('0x12d')](_0x1dd516=>_0x1dd516[_0x3c41('0x86')](_0x562650,!0x0)))&&_0x4adc0f['discard']());}const _0x4fc84c=_0x47dbea(),_0x59c8a5=_0x5aadec['id'],_0x24ca0b=_0x3c41('0xf2')+_0x343987,_0x30b438=this[_0x3c41('0x69')]({'id':_0x4fc84c,'type':_0x24ca0b,'createdAt':new Date(),'authorId':_0x59c8a5,'attributes':_0x2bbafe});for(const _0x1f4ce3 of _0x92769b)_0x1f4ce3[_0x3c41('0x111')](),_0x1f4ce3[_0x3c41('0x142')]||_0x3c41('0x37')==_0x1f4ce3[_0x3c41('0x10e')][_0x3c41('0xc')]||this['_addSuggestionMarker'](_0x24ca0b,_0x4fc84c,_0x59c8a5,_0x1f4ce3,_0x32734f['getMultiRangeId']());return _0x30b438;}[_0x3c41('0x13d')](_0x35d5df,_0x21be79){const _0x37e25d=_0x35d5df[_0x3c41('0xcb')]();this[_0x3c41('0x115')]['change'](_0x4318df=>{_0x4318df[_0x3c41('0x6')](_0x37e25d,{'range':_0x21be79});});}[_0x3c41('0x75')](_0x5bcf4d){const _0x68dfcc=_0x5bcf4d['id'],_0x1fc068=this['editor'][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4'));this[_0x3c41('0x8f')][_0x3c41('0x12e')](_0x68dfcc)||this[_0x3c41('0x8f')][_0x3c41('0x10')]({'channelId':_0x1fc068,'threadId':_0x68dfcc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x257673=this[_0x3c41('0x8f')][_0x3c41('0x57')](_0x68dfcc);_0x257673[_0x3c41('0x8b')](_0x3c41('0x11c')),_0x257673[_0x3c41('0x11c')]=!0x1,_0x5bcf4d[_0x3c41('0x43')]=_0x257673;}[_0x3c41('0x119')](_0x117cd3,_0x412879,_0x41329b,_0x35dd3e){if(_0x117cd3[_0x3c41('0x140')]!=_0x412879||_0x117cd3[_0x3c41('0x3a')]!=_0x41329b||_0x117cd3['creator']['id']!=_0x35dd3e)throw this[_0x3c41('0x35')][_0x3c41('0x8')](_0x3c41('0x104')),new _0x149c43(_0x3c41('0x104'),this);}['_cutOutSuggestionMarker'](_0x4332aa,_0x4b8dba){const _0x455579=_0x4332aa[_0x3c41('0x85')]();if(_0x4b8dba[_0x3c41('0xbe')](_0x455579))_0x4332aa[_0x3c41('0xd7')]();else{if(_0x455579[_0x3c41('0x86')](_0x4b8dba)){const _0x568f4d=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['start'][_0x3c41('0x3d')],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x568f4d));const _0x388b06=_0x47dbea(),_0x1d5d6f=_0x4332aa['creator']['id'],_0x272c6a=_0x4332aa['type']+':'+_0x4332aa['subType'];this['_setSuggestionData']({'id':_0x388b06,'type':_0x272c6a,'createdAt':new Date(),'authorId':_0x1d5d6f,'data':_0x4332aa[_0x3c41('0x123')],'attributes':_0x4332aa[_0x3c41('0x5a')]});const _0x5662be=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['end'][_0x3c41('0x9f')],'after'),_0x147891=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5662be,_0x455579[_0x3c41('0x78')]);this[_0x3c41('0x9b')](_0x272c6a,_0x388b06,_0x1d5d6f,_0x147891);}else{if(_0x455579[_0x3c41('0xd0')](_0x4b8dba[_0x3c41('0x109')])){const _0x2c1cb2=this[_0x3c41('0x115')]['createPositionAt'](_0x4b8dba[_0x3c41('0x109')]['nodeBefore'],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x2c1cb2));}else{const _0x27acb5=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba[_0x3c41('0x78')][_0x3c41('0x9f')],_0x3c41('0x44'));this[_0x3c41('0x13d')](_0x4332aa,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x27acb5,_0x455579[_0x3c41('0x78')]));}}}}[_0x3c41('0x58')](_0x382610){for(const {suggestion:_0x38d169,meta:_0x4fd08f}of this['_findSuggestions'](_0x382610,_0x3c41('0xdf'))){if(!_0x4fd08f[_0x3c41('0xfa')])continue;const _0x27436c=_0x38d169['getRanges']();for(const _0x5053e6 of _0x27436c)if(!_0x382610['getDifference'](_0x5053e6)[_0x3c41('0x80')])return!0x0;}return!0x1;}[_0x3c41('0xf6')](_0x371004){const _0x1434d4=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))[_0x3c41('0x9a')](_0x371004);if(!_0x1434d4)throw new _0x149c43('track-changes-user-not-found',this);return _0x1434d4;}[_0x3c41('0xd')](_0x3a6cca){const _0x30c82a=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34')),_0x25f10d=_0x4ee5c6(_0x3c41('0x54')+_0x3a6cca),_0x500368=_0x30c82a[_0x3c41('0x9a')](_0x25f10d);return _0x500368||_0x30c82a[_0x3c41('0xdb')]({'id':_0x25f10d,'name':_0x3a6cca});}[_0x3c41('0x10b')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x4f0b0f,_0x45905b){const _0x2ed9c1=this['_getAuthorFromId'](_0x4f0b0f),_0x23fa55=this[_0x3c41('0x133')][_0x3c41('0x31')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x2ed9c1,_0x45905b,_0x11057b=>this[_0x3c41('0xf3')](_0x17cdf0,{'attributes':_0x11057b}));return this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0x81'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':'accepted'});},{'priority':'high'}),this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0xf4'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':_0x3c41('0x9c')});},{'priority':_0x3c41('0x63')}),this[_0x3c41('0xb2')][_0x3c41('0xce')](_0x17cdf0,_0x23fa55),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x23fa55,_0x3c41('0xac')),_0x23fa55;}[_0x3c41('0xf9')](_0x54fe73){const _0x4c3968=_0x54fe73[_0x3c41('0x13a')](':');return{'group':_0x4c3968[0x0],'type':_0x4c3968[0x1],'subType':_0x4c3968['length']>=0x5?_0x4c3968[0x2]:null,'id':_0x4c3968['length']<0x5?_0x4c3968[0x2]:_0x4c3968[0x3],'authorId':_0x4c3968[_0x3c41('0x80')]<0x5?_0x4c3968[0x3]:_0x4c3968[0x4],'markerCount':0x6==_0x4c3968[_0x3c41('0x80')]?_0x4c3968[0x5]:null};}['_breakSuggestionMarker'](_0x58fda4,_0xebdb1c,_0x93462a){const _0x2b8a04=_0x58fda4['getFirstRange'](),_0x4b13cb=_0x2b8a04[_0x3c41('0x109')],_0x4853e4=_0x2b8a04[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x58fda4,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4b13cb,_0xebdb1c));const _0x3b745a=_0x47dbea(),_0x1f7686=_0x58fda4[_0x3c41('0x9d')]['id'],_0x41e0c8=_0x58fda4[_0x3c41('0x140')]+(_0x58fda4['subType']?':'+_0x58fda4[_0x3c41('0x3a')]:'');this[_0x3c41('0x69')]({'id':_0x3b745a,'type':_0x41e0c8,'createdAt':new Date(),'authorId':_0x1f7686,'originalSuggestionId':_0x58fda4['id'],'attributes':_0x58fda4['attributes'],'data':_0x58fda4[_0x3c41('0x123')]}),_0x3c41('0x82')==_0x58fda4['type']&&(_0x93462a=this[_0x3c41('0x115')][_0x3c41('0x67')](_0x93462a['parent'])),this[_0x3c41('0x9b')](_0x41e0c8,_0x3b745a,_0x1f7686,this[_0x3c41('0x115')]['createRange'](_0x93462a,_0x4853e4));}['_findSuggestions'](_0x8cbc4c,_0x5c1c23=null){const _0x40b8c1=[],_0x2131e3=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];Array[_0x3c41('0xd8')](_0x8cbc4c)||(_0x8cbc4c=[_0x8cbc4c]);for(const _0x3470c3 of this['getSuggestions']()){if(!_0x3470c3['isInContent'])continue;if(_0x5c1c23&&_0x3470c3['type']!=_0x5c1c23)continue;let _0xb70167=!0x1;for(const _0x38fe90 of _0x3470c3[_0x3c41('0xeb')]()){for(const _0x51a406 of _0x8cbc4c){const _0x454763=_0x51a406['start'][_0x3c41('0xbe')](_0x38fe90[_0x3c41('0x78')])||_0x51a406[_0x3c41('0x78')]['isEqual'](_0x38fe90[_0x3c41('0x109')]);if(_0x454763||_0x51a406[_0x3c41('0xcd')](_0x38fe90)){const _0x50550e=_0x51a406[_0x3c41('0x86')](_0x38fe90)&&_t(this[_0x3c41('0x115')][_0x3c41('0xfe')],_0x38fe90[_0x3c41('0x109')],_0x51a406),_0x1aa59a=_0x38fe90['containsRange'](_0x51a406)&&_t(this[_0x3c41('0x115')]['schema'],_0x51a406['start'],_0x38fe90);_0x40b8c1['push']({'suggestion':_0x3470c3,'meta':{'isOwn':_0x2131e3==_0x3470c3[_0x3c41('0x6e')],'isNextTo':_0x454763,'isInsideObject':_0x50550e,'containsRangeInObject':_0x1aa59a}}),_0xb70167=!0x0;break;}}if(_0xb70167)break;}}return _0x40b8c1;}[_0x3c41('0x9b')](_0x58ac50,_0x10d1e4,_0x4df229,_0x245871,_0x594098){this['_model'][_0x3c41('0x112')](_0x1c68aa=>{let _0x173770='suggestion:'+_0x58ac50+':'+_0x10d1e4+':'+_0x4df229;_0x594098&&(_0x173770=_0x173770+':'+_0x594098),_0x1c68aa[_0x3c41('0x7e')](_0x173770,{'range':_0x245871,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3c41('0x18')](_0x42f4ca){const _0x2786c0=_0x42f4ca[_0x3c41('0x8a')],_0x5e3670=_0x42f4ca[_0x3c41('0x89')];_0x42f4ca['previous']=null,null!=_0x2786c0&&(_0x2786c0[_0x3c41('0x89')]=null),_0x42f4ca[_0x3c41('0x89')]=null,null!=_0x5e3670&&(_0x5e3670['previous']=null),_0x3c41('0xfb')==this['_suggestionState'][_0x3c41('0xc1')](_0x42f4ca)&&(this[_0x3c41('0x138')][_0x3c41('0xce')](_0x42f4ca,_0x3c41('0xff')),this[_0x3c41('0x7d')](_0x3c41('0x92'),_0x42f4ca,_0x2786c0,_0x5e3670));}[_0x3c41('0x69')](_0x1fa207){const _0x5d1e24=_0x1fa207['id'],_0x45a02b=this[_0x3c41('0x12b')](_0x1fa207);if(this[_0x3c41('0x114')]&&this[_0x3c41('0x114')]['addSuggestion']){const _0x571031=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0xb6')),_0x1e4711=_0x45a02b[_0x3c41('0xb0')],_0x3a1ea9=_0x45a02b[_0x3c41('0x3a')]?_0x45a02b['type']+':'+_0x45a02b[_0x3c41('0x3a')]:_0x45a02b[_0x3c41('0x140')],_0x37afd3=this[_0x3c41('0x35')]['locale'],_0x40d6c5=_0x571031[_0x3c41('0x7b')](_0x5dd432(_0x37afd3,_0x3c41('0xc3'))),_0x46e32b={'id':_0x5d1e24,'type':_0x3a1ea9,'hasComments':_0x1e4711,'data':_0x1fa207['data']||null,'originalSuggestionId':_0x1fa207[_0x3c41('0x79')]||null,'attributes':_0x45a02b[_0x3c41('0x5a')]};this[_0x3c41('0x114')][_0x3c41('0x131')](_0x46e32b)['then'](_0x2dd0b7=>{_0x45a02b[_0x3c41('0x73')]=!0x0,_0x571031[_0x3c41('0xbb')](_0x40d6c5),_0x2dd0b7&&_0x2dd0b7['createdAt']&&(this['_suggestions'][_0x3c41('0xc1')](_0x5d1e24)[_0x3c41('0x139')]=_0x2dd0b7[_0x3c41('0x139')]);})[_0x3c41('0xd6')](_0x36c5c4=>{throw _0x151902('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model'][_0x3c41('0x126')]({'isUndoable':!0x1},()=>{_0x45a02b[_0x3c41('0xf4')]();}),_0x45a02b[_0x3c41('0x27')](),this[_0x3c41('0xb2')][_0x3c41('0x94')](_0x45a02b['id']),this[_0x3c41('0x138')][_0x3c41('0x94')](_0x45a02b),_0x36c5c4;});}return _0x45a02b;}[_0x3c41('0xf3')](_0x434377,_0x3c3098){const _0xe244d3=this['editor'][_0x3c41('0x5')]['get']('PendingActions'),_0x2dfbff=this['getSuggestion'](_0x434377);if(this[_0x3c41('0x114')]&&this['_adapter'][_0x3c41('0x4')]){if(_0x2dfbff[_0x3c41('0x73')]){const _0x31b915=_0xe244d3[_0x3c41('0x7b')](_0x5dd432(this['editor']['locale'],_0x3c41('0xc3')));this['_adapter']['updateSuggestion'](_0x434377,_0x3c3098)[_0x3c41('0xd2')](()=>{_0xe244d3[_0x3c41('0xbb')](_0x31b915);});}else _0x2dfbff['on'](_0x3c41('0xc0'),()=>{this[_0x3c41('0xf3')](_0x434377,_0x3c3098);});}}['_getSuggestionData'](_0x321520){if(!this[_0x3c41('0x114')]||!this[_0x3c41('0x114')][_0x3c41('0x9')])throw new _0x149c43(_0x3c41('0x117'),this);return this[_0x3c41('0x114')][_0x3c41('0x9')](_0x321520);}[_0x3c41('0xc4')](_0x436909){const {id:_0x5062e9,type:_0x6258,subType:_0x501f17,authorId:_0x1d7efa}=this[_0x3c41('0xf9')](_0x436909),_0xdb1c35=this['_suggestions'][_0x3c41('0xc1')](_0x5062e9)||this['_createSuggestion'](_0x6258,_0x501f17,_0x5062e9,_0x1d7efa,{});switch(this[_0x3c41('0x119')](_0xdb1c35,_0x6258,_0x501f17,_0x1d7efa),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0xdb1c35)){case'notReady':this['_getSuggestionData'](_0x5062e9)['then'](_0x586961=>{let _0x411740=Promise[_0x3c41('0xc7')]();_0x586961[_0x3c41('0xb0')]&&(_0x411740=this[_0x3c41('0x8f')]['fetchCommentThread']({'channelId':this[_0x3c41('0x35')][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4')),'threadId':_0x5062e9})),_0x411740[_0x3c41('0xd2')](()=>{this[_0x3c41('0x12b')](_0x586961)[_0x3c41('0x73')]=!0x0;});}),this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,_0x3c41('0x53'));break;case _0x3c41('0xff'):this[_0x3c41('0xf3')](_0x5062e9,{'state':_0x3c41('0x14')});case _0x3c41('0x95'):this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,'ready'),this[_0x3c41('0x7d')]('suggestionLoaded',_0xdb1c35);break;case _0x3c41('0xfb'):this['fire']('suggestionChanged',_0xdb1c35);}return _0xdb1c35[_0x3c41('0xcf')](_0x436909),_0xdb1c35;}[_0x3c41('0xc9')](_0x42e3f6){const _0x2e8f61=Array[_0x3c41('0xe3')](_0x42e3f6)[_0x3c41('0x59')](_0x38a61f=>!_0x38a61f['isMultiRange']),_0x3fdb95=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3c41('0x59')](_0x43d301=>!_0x43d301[_0x3c41('0xf7')]),_0x31e170=_0x3fdb95[_0x3c41('0x59')](_0x4e6cbd=>!_0x42e3f6[_0x3c41('0x10c')](_0x4e6cbd)),_0x5541e8=new Map(_0x3fdb95[_0x3c41('0x93')](_0x13f329=>[_0x13f329,this[_0x3c41('0x133')][_0x3c41('0x60')](_0x13f329[_0x3c41('0x140')],_0x13f329['subType'],_0x3c41('0x39'))])),_0x13a7af=new Map(_0x3fdb95['map'](_0x335e80=>[_0x335e80,_0x335e80[_0x3c41('0x85')]()])),_0x48211d=new Set(),_0x4616f6=new Set();for(let _0x3c7a36=0x0;_0x3c7a36<_0x2e8f61[_0x3c41('0x80')];_0x3c7a36++)_0x130089(_0x2e8f61[_0x3c7a36],_0x2e8f61,_0x3c7a36+0x1);for(let _0x247799=0x0;_0x247799<_0x2e8f61['length'];_0x247799++)_0x130089(_0x2e8f61[_0x247799],_0x31e170,0x0);for(let _0x2700a4=0x0;_0x2700a4<_0x2e8f61[_0x3c41('0x80')];_0x2700a4++){const _0x454a66=_0x2e8f61[_0x2700a4];!_0x4616f6[_0x3c41('0x10c')](_0x454a66)&&_0x454a66[_0x3c41('0x8a')]&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]===_0x454a66&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]=null),_0x454a66['previous']=null),!_0x48211d[_0x3c41('0x10c')](_0x454a66)&&_0x454a66['next']&&(_0x454a66['next'][_0x3c41('0x8a')]===_0x454a66&&(_0x454a66['next'][_0x3c41('0x8a')]=null),_0x454a66[_0x3c41('0x89')]=null);}function _0x130089(_0x26afda,_0x56a303,_0xd019d9){for(let _0x1af70d=_0xd019d9;_0x1af70d<_0x56a303[_0x3c41('0x80')];_0x1af70d++){const _0x391f8e=_0x5d59b7(_0x26afda,_0x56a303[_0x1af70d]);_0x391f8e&&(_0x391f8e[0x0][_0x3c41('0x89')]=_0x391f8e[0x1],_0x391f8e[0x1][_0x3c41('0x8a')]=_0x391f8e[0x0],_0x48211d['add'](_0x391f8e[0x0]),_0x4616f6[_0x3c41('0x7b')](_0x391f8e[0x1]));}}function _0x5d59b7(_0x172e03,_0x4786b2){if(_0x172e03[_0x3c41('0x6e')]['id']!==_0x4786b2[_0x3c41('0x6e')]['id'])return null;const _0x1c4b6b=_0x5541e8[_0x3c41('0xc1')](_0x172e03)(_0x172e03,_0x4786b2,_0x13a7af['get'](_0x172e03),_0x13a7af['get'](_0x4786b2));if(!_0x1c4b6b)return null;return _0x5541e8[_0x3c41('0xc1')](_0x4786b2)(_0x172e03,_0x4786b2,_0x13a7af[_0x3c41('0xc1')](_0x172e03),_0x13a7af[_0x3c41('0xc1')](_0x4786b2))?_0x1c4b6b[0x1][_0x3c41('0x43')]&&_0x1c4b6b[0x1]['commentThread'][_0x3c41('0x80')]?null:_0x1c4b6b:null;}}[_0x3c41('0x99')](_0x544cb4){const _0x43c5ef=Array[_0x3c41('0xe3')](_0x544cb4),_0x5050f0=this[_0x3c41('0xa7')]({'skipNotAttached':!0x0}),_0x197629=_0x5050f0['filter'](_0x152700=>!_0x544cb4[_0x3c41('0x10c')](_0x152700)),_0x179bea=new Map(_0x43c5ef[_0x3c41('0x93')](_0x3d6a20=>[_0x3d6a20,this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3d6a20[_0x3c41('0x140')],_0x3d6a20[_0x3c41('0x3a')],_0x3c41('0x17'))])),_0x3087f7=new Map(_0x5050f0[_0x3c41('0x93')](_0x58ac0f=>[_0x58ac0f,_0x58ac0f[_0x3c41('0xeb')]()]));for(let _0x1efbe7=0x0;_0x1efbe7<_0x43c5ef[_0x3c41('0x80')];_0x1efbe7++){if(_0x5ba188(this,_0x43c5ef[_0x1efbe7],_0x43c5ef,_0x1efbe7+0x1))return!0x0;}for(let _0x1d8f4a=0x0;_0x1d8f4a<_0x43c5ef['length'];_0x1d8f4a++){if(_0x5ba188(this,_0x43c5ef[_0x1d8f4a],_0x197629,0x0))return!0x0;}return!0x1;function _0x5ba188(_0x56ac21,_0x2cc7a7,_0x279ade,_0x24c1d3){for(let _0x58b649=_0x24c1d3;_0x58b649<_0x279ade[_0x3c41('0x80')];_0x58b649++){const _0xc2eccc=_0x279ade[_0x58b649];if(_0xc2eccc[_0x3c41('0x140')]!==_0x2cc7a7[_0x3c41('0x140')]||_0xc2eccc['author']['id']!==_0x2cc7a7[_0x3c41('0x6e')]['id']||_0xc2eccc[_0x3c41('0x3a')]!==_0x2cc7a7['subType'])continue;if(!Ut(_0x2cc7a7,_0xc2eccc))continue;const _0x56a550=_0x179bea['get'](_0x2cc7a7),_0xdb5571=_0x3087f7[_0x3c41('0xc1')](_0x2cc7a7),_0x4db6aa=_0x3087f7[_0x3c41('0xc1')](_0xc2eccc),_0x54edeb=_0x2cc7a7[_0x3c41('0x43')]&&_0x2cc7a7[_0x3c41('0x43')]['length'],_0xf6a69e=_0xc2eccc[_0x3c41('0x43')]&&_0xc2eccc[_0x3c41('0x43')][_0x3c41('0x80')];if(!_0x54edeb&&_0x56a550(_0x4db6aa,_0xdb5571))return _0x56ac21[_0x3c41('0xe2')](_0xc2eccc,_0x2cc7a7),_0x3087f7['delete'](_0x2cc7a7),!0x0;if(!_0xf6a69e&&_0x56a550(_0xdb5571,_0x4db6aa))return _0x56ac21[_0x3c41('0xe2')](_0x2cc7a7,_0xc2eccc),_0x3087f7['delete'](_0xc2eccc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4bd81d,_0x69444){if(_0x4bd81d[_0x3c41('0xf7')])for(const _0xa47f95 of _0x69444[_0x3c41('0xeb')]())_0x4bd81d[_0x3c41('0x120')](_0xa47f95);else{const _0x101295=_0x69444['getFirstRange']()[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x4bd81d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4bd81d[_0x3c41('0x85')]()[_0x3c41('0x109')],_0x101295));}_0x69444['removeMarkers']();}}class Bt{constructor(_0x3b703a){this[_0x3c41('0x6f')]=_0x3b703a,this[_0x3c41('0x115')]=_0x3b703a[_0x3c41('0xd3')],this[_0x3c41('0xed')]=new Map(),this[_0x3c41('0x145')]=new Map(),this[_0x3c41('0x105')]();}[_0x3c41('0x31')](_0x338a9e,_0x6cad3d,_0x26a64b,_0x378e0d,_0x296cc9,_0x3e0c12){return new _0x32734f(this[_0x3c41('0x115')],{'type':_0x338a9e,'subType':_0x6cad3d,'id':_0x26a64b,'author':_0x378e0d,'creator':_0x378e0d,'attributes':_0x296cc9,'onAttributesChange':_0x3e0c12,'onAccept':(..._0x3fc6fe)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0x81'))(..._0x3fc6fe),'onDiscard':(..._0x53e451)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0xf4'))(..._0x53e451)});}[_0x3c41('0x106')](_0x5bfd6f,_0x131430,_0x3bc43a,_0x41f06e){const _0x272e72=_0x5bfd6f+':'+_0x131430+':'+_0x3bc43a;this[_0x3c41('0xed')]['set'](_0x272e72,_0x41f06e);}[_0x3c41('0x60')](_0x189991,_0x514e1a,_0x4eb028){const _0x4ac7dd=_0x189991+':'+_0x514e1a+':'+_0x4eb028;return this[_0x3c41('0xed')][_0x3c41('0xc1')](_0x4ac7dd)||this[_0x3c41('0x145')]['get'](_0x189991+':'+_0x4eb028);}[_0x3c41('0x105')](){const _0x5e2c9d=()=>!0x1,_0x1970df=_0x5ead93=>{_0x5ead93[_0x3c41('0xe')]((_0x44dc0b,_0x13e92d)=>_0x44dc0b[_0x3c41('0x109')]['isBefore'](_0x13e92d['start'])?0x1:-0x1),this[_0x3c41('0x115')][_0x3c41('0x112')](_0xe0b276=>{for(const _0x582795 of _0x5ead93){let _0x1ac909;_0x1ac909=_0x582795[_0x3c41('0x78')][_0x3c41('0x2')]&&_0x582795[_0x3c41('0x78')]['parent']==_0x582795[_0x3c41('0x109')]['nodeAfter']?_0xe0b276[_0x3c41('0x13e')](_0x582795['start']['nodeAfter'],'on'):_0xe0b276[_0x3c41('0x13e')](_0x582795),this[_0x3c41('0x115')]['deleteContent'](_0x1ac909,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x234acb=(_0x5453fa,_0x3a628e)=>{this[_0x3c41('0x115')][_0x3c41('0x112')](_0x54f13b=>{const {commandName:_0x74d212,commandParams:_0xa005ca=[]}=_0x3a628e,_0x47ee12=_0x5453fa[_0x3c41('0x93')](_0x5a08cd=>(Mt(_0x5a08cd)&&(_0x5a08cd=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5a08cd[_0x3c41('0x78')])),_0x5a08cd))[_0x3c41('0x59')](_0xe4fd48=>_0x3c41('0x37')!==_0xe4fd48[_0x3c41('0x10e')]['rootName']);if(_0x47ee12[_0x3c41('0x80')]<0x1)return;const _0x23c046=Array['from'](this['_model'][_0x3c41('0x23')]['selection'][_0x3c41('0xeb')]())[_0x3c41('0x93')](_0x572754=>_0xe5a593[_0x3c41('0x124')](_0x572754));_0x54f13b[_0x3c41('0xbd')](_0x47ee12);for(const _0xdd794c of this[_0x3c41('0x6f')][_0x3c41('0xc2')][_0x3c41('0xc2')]())_0xdd794c[_0x3c41('0x5b')]();_0xa005ca[_0x3c41('0xea')]({'forceDefaultExecution':!0x0}),this[_0x3c41('0x6f')][_0x3c41('0x3f')](_0x74d212,..._0xa005ca);const _0x2cbd54=_0x23c046[_0x3c41('0x59')](_0x88a5da=>_0x3c41('0x37')!=_0x88a5da[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2cbd54[_0x3c41('0x80')]>0x0&&_0x54f13b[_0x3c41('0xbd')](_0x2cbd54);for(const _0x238d6e of _0x23c046)_0x238d6e['detach']();});},_0x4bd0dc=(_0x47f96f,_0x3981df)=>0x1==_0x47f96f[_0x3c41('0x80')]&&0x1==_0x3981df[_0x3c41('0x80')]&&_0x47f96f[0x0][_0x3c41('0x78')][_0x3c41('0xbe')](_0x3981df[0x0]['start']),_0x2d0b25=(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8)=>xt(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8,this[_0x3c41('0x115')])?[_0xadc142,_0x3db0c2]:xt(_0x3db0c2,_0xadc142,_0x19ddd8,_0xd85bf8,this[_0x3c41('0x115')])?[_0x3db0c2,_0xadc142]:null;this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0xdd'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x113'),_0x1970df),this[_0x3c41('0x145')]['set'](_0x3c41('0xb3'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x68'),_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:accept',_0x1970df),this['_defaultCallbacks'][_0x3c41('0xce')]('deletion:discard',_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:join',_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:chain',_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xda'),_0x234acb),this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0x83'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x5c'),_0x4bd0dc),this[_0x3c41('0x145')]['set'](_0x3c41('0xa3'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xf0'),_0x234acb),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x19'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x88'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('formatBlock:chain',_0x5e2c9d);}}function _t(_0x169d6e,_0x5291f2,_0x2d3911){for(const _0x46bc80 of _0x5291f2[_0x3c41('0x9f')][_0x3c41('0x4e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46bc80[_0x3c41('0x10e')]==_0x46bc80)return!0x1;if(!_0x2d3911[_0x3c41('0x11f')](_0x46bc80))return!0x1;if(_0x169d6e[_0x3c41('0x116')](_0x46bc80)||_0x169d6e['isLimit'](_0x46bc80))return!0x0;}return!0x1;}function Mt(_0x2603e4){return _0x2603e4['end'][_0x3c41('0x9f')]==_0x2603e4['start'][_0x3c41('0x101')]&&_0x2603e4['end'][_0x3c41('0x121')];}function $t(_0x2f3057,_0x5c6461,_0x1f0ce3,_0x43ad37){const _0xe876f3=_0x260de7=>!_0x260de7[_0x3c41('0x55')]['is'](_0x3c41('0x10a'))&&!_0x43ad37[_0x3c41('0x116')](_0x260de7[_0x3c41('0x55')]),_0x2ac1c7=_0x2f3057[_0x3c41('0x109')]['getLastMatchingPosition'](_0xe876f3),_0x40518d=_0x2f3057['end'][_0x3c41('0x7a')](_0xe876f3,{'direction':_0x3c41('0x2c')});return(!_0x2f3057[_0x3c41('0x109')][_0x3c41('0xbe')](_0x2ac1c7)||!_0x2f3057['end']['isEqual'](_0x40518d))&&(_0x2ac1c7['isBefore'](_0x40518d)?_0x1f0ce3[_0x3c41('0x6')](_0x5c6461,{'range':_0x1f0ce3[_0x3c41('0x6c')](_0x2ac1c7,_0x40518d)}):_0x1f0ce3[_0x3c41('0x103')](_0x5c6461),!0x0);}function Nt(_0xe45085){return _0x4ee5c6(_0xe45085);}function Rt(_0x591c47){const _0x15ff1d=_0x591c47[_0x3c41('0x109')][_0x3c41('0x101')];return _0x15ff1d&&_0x15ff1d['is']('element');}function jt(_0x2bc029,_0x34cee1){const _0x2b8c05=_0x34cee1['schema'][_0x3c41('0x116')](_0x2bc029)||_0x34cee1['schema'][_0x3c41('0x51')](_0x2bc029);return _0x34cee1[_0x3c41('0x6c')](_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0xb')),_0x2b8c05?_0x34cee1[_0x3c41('0xe8')](_0x2bc029):_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0x78')));}function xt(_0x221282,_0x1dd102,_0x5bee6a,_0x497865,_0x497979){if(!Ut(_0x221282,_0x1dd102))return!0x1;if(_0x5bee6a['end'][_0x3c41('0xbe')](_0x497865[_0x3c41('0x109')]))return!0x0;if(_0x221282[_0x3c41('0x140')]!=_0x1dd102[_0x3c41('0x140')])return!0x1;if(!_0x5bee6a[_0x3c41('0x78')][_0x3c41('0x12f')](_0x497865['start']))return!0x1;const _0x40342a=_0x497979['createRange'](_0x5bee6a[_0x3c41('0x78')],_0x497865['start'])[_0x3c41('0x107')]();for(const _0x58b0d1 of _0x40342a)if([_0x3c41('0x12c'),_0x3c41('0xec')]['includes'](_0x58b0d1[_0x3c41('0x140')])&&_0x497979[_0x3c41('0xfe')][_0x3c41('0x30')](_0x58b0d1[_0x3c41('0x55')]))return!0x1;return!0x0;}function Ut(_0x310c94,_0x5c895e){return!(!_0x310c94[_0x3c41('0x2d')]||!_0x5c895e['_isDataLoaded'])&&_0x524132(_0x310c94[_0x3c41('0x5a')],_0x5c895e['attributes']);}function Ot(_0x2221af,_0x29a196){const _0x2f4a87=Et(_0x2221af[_0x3c41('0x5a')]),_0x31e941=Et(_0x29a196);if(!_0x2221af[_0x3c41('0x2d')])return!0x1;for(const _0x916825 of Object[_0x3c41('0x9e')](_0x31e941))if(!_0x524132(_0x2f4a87[_0x916825],_0x31e941[_0x916825]))return!0x1;return!0x0;}function Et(_0x8a29d5){const _0x2df627=Object[_0x3c41('0x4a')]({},_0x8a29d5);return delete _0x2df627[_0x3c41('0x100')],delete _0x2df627[_0x3c41('0xa')],_0x2df627;}
|
|
23
|
+
const _0x17ef=['nodeAfter','for','open','Users','consume','formatBlock','enableCommand','isAfter','after','locale','markDeletion','size','markerNameToElements','createPositionBefore','highest','removeAttribute','editor','addMarkerName','_findSuggestions','_updateSuggestionData','addComment','discardSelectedSuggestions','name','formatInline:chain','change','setAttribute','change:activeMarkers','formatBlock:discard','suggestion:','next','acceptSelectedSuggestions','_addThreadToSuggestion','isBlock','_handleNewSuggestionMarker','getRange','$textProxy','containsRange','createPositionAt','markMultiRangeDeletion','creator','_saved','_refreshSuggestionsChain','isSelectable','isCollapsed','containerElement','updateMarker','writer','targetPosition','join','suggestionChanged','isAtEnd','keys','_isDataLoaded','previous','deletion','pluginName','_setSuggestionRange','setTo','removeMarkers','isMultiRange','reconvertMarker','getCommentThread','getAttribute','document','createSelection','getMultiRangeId','commentThread','conversion','plugins','ck-suggestion-marker--active','enqueueChange','type','addMarker:suggestion:formatBlock','value','_rangeIsInLocalUserInsertion','_cutOutSuggestionMarker','_getAuthorFromId','_adapter','set','insertion:','external:','from','track-changes-suggestion-data-mismatch','_isForcedDefaultExecutionBlock','change:data','TrackChangesEditing','consumable','markMultiRangeBlockFormat','ck-suggestion-marker-','PENDING_ACTION_SUGGESTION','length','root','accept','isRemovable','formatBlock:','dataReady','position','getIntersection','track-changes-user-not-found','addSuggestionData','has','ready','get','registerPostFixer','_joinSuggestions','_editor','_removeSuggestion','unbindElementFromMarkerName','commandName','suggestion','isInContent','formatInline:accept','splitPosition','getLastMatchingPosition','_joinWithAdjacentSuggestions','detach','execute','normal','markerReady','requires','addMarker:suggestion','_enabledCommands','formatInline:join','insert','element','updateSuggestion','_descriptionFactory','insertion','getAncestors','formatInline:','getAllAdjacentSuggestions','split','getChangedMarkers','_mergeNestedSuggestions','createPositionAfter','$graveyard','isInsideObject','removeClass','model','deletion:join','some','markers','hasCommentThread','_model','elementToElement','deletion:','multi','substr','forceDefaultExecution','addCommentThread','author','collaboration.channelId','ck-suggestion-marker-formatBlock','markerToHighlight','isExternal','discard','batch','_registerDefaultCallbacks','applyOperation','setSelection','isBefore','move','assign','define','_commentsRepository','trackChanges.mergeNestedSuggestions','chain','parent','sort','getNearestSelectionRange','getFirstMarker','delete','formatBlock:chain','unbind','removeMarker','values','subType','start','commands','range','editingDowncast','high','clear','discardAllSuggestions','schema','track-changes-suggestion-not-found','resolve','isIntersectingWithRange','suggestionUnloaded','nodeBefore','_createSuggestion','getSuggestion','widget','update:suggestion','_checkSuggestionCorrectness','getRanges','splice','_onDiscard','differ','documentSelection','createdAt','insertion:chain','_breakSuggestionMarker','acceptAllSuggestions','removed','deletion:chain','trackChangesCommand','_suggestionFactory','then','fire','fromCharCode','markInlineFormat','_defaultCallbacks','markerName','never','authoredAt','add','accepted','buildSuggestion','config','filter','discardSuggestion','trackChanges','enableReadOnlyMode','data-suggestion','rootName','isOwn','containsPosition','error-saving-suggestion-data-suggestion-discarded','_trackFormatChanges','before','addRange','getUser','trackChanges.trackFormatChanges','marker-count','addUser','getSuggestionCallback','getFirstRange','ck-suggestion-marker','PendingActions','upcast','deletion:discard','always','toJSON','options','data','every','default','addSuggestion','formatGroupId','markInsertion','activeMarkers','listenTo','getCustomProperty','markerToData','mapper','newRange','notReady','deleteContent','hasComments','_splitMarkerName','_customCallbacks','return','lowest','showSuggestionHighlights','_getExternalAuthor','skipNestingCheck','head','editing','elementStart','createRange','bindElementToMarker','backward','includes','CommentsRepository','push','oldRange','containsRangeInObject','fromRange','_suggestionState','acceptSuggestion','catch','_setSuggestionData','insertion:accept','group','toViewElement','_getSuggestionData','end','rejected','multipleBlocks','formatInline','getSuggestions','isLimit','getDifference','suggestion-type','getItems','addMarker','isUndo','insertContent','adapter','dataToMarker','attributes','item','addHighlight','originalSuggestionId','_suggestions','isEqual','isNextTo','_addSuggestionMarker','map','addClass','selection','clone','moveTargetPosition','isObject','createRangeIn','stop'];(function(_0x32532c,_0x17ef96){const _0x5a4883=function(_0x110c51){while(--_0x110c51){_0x32532c['push'](_0x32532c['shift']());}};_0x5a4883(++_0x17ef96);}(_0x17ef,0x137));const _0x5a48=function(_0x32532c,_0x17ef96){_0x32532c=_0x32532c-0x0;let _0x5a4883=_0x17ef[_0x32532c];return _0x5a4883;};import{Plugin as _0x504f26,PendingActions as _0x49ee35}from'ckeditor5/src/core';import{LiveRange as _0x5e64e8}from'ckeditor5/src/engine';import{CKEditorError as _0x5c539a,uid as _0x31bd95,priorities as _0x378540,logWarning as _0x11dcbb}from'ckeditor5/src/utils';import{toWidget as _0x1eb6a8}from'ckeditor5/src/widget';import{Users as _0xe8ccfe,hashObject as _0x295668}from'ckeditor5-collaboration/src/collaboration-core';import _0x3aba37 from'./commands/trackchangescommand';import _0x12c8df from'./commands/acceptsuggestioncommand';import _0x9d033d from'./commands/discardsuggestioncommand';import _0x49a461 from'./commands/executeonallsuggestionscommand';import _0x129bce from'./commands/executeonselectedsuggestionscommand';import _0x37847a from'./suggestion';import _0x4eb6e0 from'./suggestiondescriptionfactory';import _0x36ab08 from'./integrations/aiassistant';import _0x3fef86 from'./integrations/alignment';import _0x42fca0 from'./integrations/basicstyles';import _0x4497fa from'./integrations/blockquote';import _0x5c8325 from'./integrations/ckbox';import _0x9496c from'./integrations/codeblock';import _0xecf40c from'./integrations/comments';import _0x1d5828 from'./integrations/deletecommand';import _0x2a98b2 from'./integrations/documentlist';import _0x4ae6cd from'./integrations/entercommand';import _0x1cbfbe from'./integrations/findandreplace';import _0x5c99c4 from'./integrations/font';import _0x6278eb from'./integrations/formatpainter';import _0x4ec177 from'./integrations/heading';import _0x44b3ac from'./integrations/highlight';import _0x29322f from'./integrations/horizontalline';import _0x50b797 from'./integrations/htmlembed';import _0x3913cf from'./integrations/image';import _0x275a48 from'./integrations/imagereplace';import _0x3da159 from'./integrations/importword';import _0x3b317e from'./integrations/indent';import _0x4de56b from'./integrations/inputcommand';import _0x4c451f from'./integrations/link';import _0x3608d5 from'./integrations/list';import _0x6edbf from'./integrations/listproperties';import _0x19238b from'./integrations/mediaembed';import _0x2ae4ac from'./integrations/mention';import _0x1425f4 from'./integrations/pagebreak';import _0x1b185c from'./integrations/paragraph';import _0xda6317 from'./integrations/removeformat';import _0x500530 from'./integrations/restrictededitingmode';import _0x1dd429 from'./integrations/shiftentercommand';import _0x5e9708 from'./integrations/standardeditingmode';import _0x53cab4 from'./integrations/style';import _0xb4de4 from'./integrations/table';import _0x5beefe from'./integrations/tablemergesplit';import _0x254c38 from'./integrations/tableheadings';import _0x38593e from'./integrations/tableclipboard';import _0xba6c3b from'./integrations/tablecolumnresize';import _0x344dd5 from'./integrations/template';import _0x559a31 from'./integrations/tableofcontents';import _0x5d77e5 from'./integrations/title';import _0x356766 from'./integrations/undo';import{getTranslation as _0x7186cc}from'./utils/common-translations';import _0x4b0305 from'./integrations/tablecaption';import _0x833af7 from'./integrations/documentlistproperties';import _0x2ffd8c from'./integrations/tableproperties';import{isEqual as _0x5c3132}from'lodash-es';export default class p extends _0x504f26{static get[_0x5a48('0x7d')](){return['CommentsRepository',_0xe8ccfe,_0x49ee35,_0x36ab08,_0x3fef86,_0x42fca0,_0x4497fa,_0x5c8325,_0x9496c,_0xecf40c,_0x1d5828,_0x2a98b2,_0x833af7,_0x4ae6cd,_0x1cbfbe,_0x5c99c4,_0x6278eb,_0x4ec177,_0x44b3ac,_0x29322f,_0x50b797,_0x3913cf,_0x275a48,_0x3da159,_0x3b317e,_0x4de56b,_0x4c451f,_0x3608d5,_0x6edbf,_0x19238b,_0x2ae4ac,_0x1425f4,_0x1b185c,_0xda6317,_0x500530,_0x1dd429,_0x5e9708,_0x53cab4,_0xb4de4,_0x5beefe,_0x254c38,_0x4b0305,_0x38593e,_0xba6c3b,_0x559a31,_0x2ffd8c,_0x344dd5,_0x5d77e5,_0x356766];}static get[_0x5a48('0x3d')](){return _0x5a48('0x5b');}constructor(_0x280382){function _0x2a67f8(_0x5b9190){return _0x5b9190['map'](_0x48c357=>String[_0x5a48('0xd8')](_0x48c357))[_0x5a48('0x36')]('');}super(_0x280382),this[_0x5a48('0x54')]('activeMarkers',[]),this['on'](_0x5a48('0x20'),(_0x28a572,_0x143de6,_0x579178,_0x4887f7)=>{this[_0x5a48('0x95')][_0x5a48('0x1e')](()=>{for(const _0x5734ed of[..._0x4887f7,..._0x579178])this[_0x5a48('0x95')][_0x5a48('0x93')]['has'](_0x5734ed)&&_0x280382[_0x5a48('0x112')][_0x5a48('0x42')](_0x5734ed);});}),this[_0x5a48('0x84')]=new _0x4eb6e0(this[_0x5a48('0x16')][_0x5a48('0x90')][_0x5a48('0xbe')],this[_0x5a48('0x16')][_0x5a48('0xf')]),this['_adapter']=null,this[_0x5a48('0xd5')]=new Bt(this['editor']),this[_0x5a48('0x137')]=new Map(),this[_0x5a48('0xaa')]=_0x280382[_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x118')),this[_0x5a48('0x7f')]=new Set(),this[_0x5a48('0x95')]=this[_0x5a48('0x16')][_0x5a48('0x90')],this['_suggestionState']=new WeakMap(),this[_0x5a48('0x59')]=!0x1,_0x280382[_0x5a48('0xe1')][_0x5a48('0xa9')](_0x5a48('0xef'),_0x5a48('0xfd')),this[_0x5a48('0xeb')]=_0x280382[_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0xef')),_0x280382['config']['define'](_0x5a48('0xab'),!0x0),this['_mergeNestedSuggestions']=_0x280382[_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0xab')),this['trackChangesCommand']=new _0x3aba37(_0x280382,this['_enabledCommands']),this[_0x2a67f8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2a67f8([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x36]);}['init'](){const _0x10d3d3=this[_0x5a48('0x16')];_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xba'))[_0x5a48('0x9f')]({'model':_0x5a48('0x73'),'view':_0x5bb0d0=>{const {id:_0x424342,type:_0x22ca16}=this[_0x5a48('0x10a')](_0x5bb0d0[_0x5a48('0xdb')]),_0x1be485=[_0x5a48('0xf4'),_0x5a48('0x5e')+_0x22ca16];let _0xb5f7c8=0xbb8;return this['activeMarkers'][_0x5a48('0x117')](_0x5bb0d0['markerName'])&&(_0x1be485['push']('ck-suggestion-marker--active'),_0xb5f7c8=0xbc2),_0x5a48('0x3c')==_0x22ca16&&(_0xb5f7c8+=0x5),{'classes':_0x1be485,'attributes':{'data-suggestion':_0x424342},'priority':_0xb5f7c8};}}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')[_0x5a48('0xde')](_0xb1f99f=>{_0xb1f99f['on'](_0x5a48('0x7e'),(_0x51db48,_0x5d7331,_0x164ddc)=>{if(!_0x164ddc['options'][_0x5a48('0x10e')])return;const _0x48d62e=_0x5d7331[_0x5a48('0x134')];if(!_0x48d62e)return;const _0x4d39f7=_0x164ddc['mapper'][_0x5a48('0x123')](_0x48d62e);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0xbe')]['isObject'](_0x48d62e)&&_0x4d39f7&&!_0x4d39f7[_0x5a48('0x103')](_0x5a48('0xc6'))&&_0x4d39f7['is'](_0x5a48('0x32'))&&_0x1eb6a8(_0x4d39f7,_0x164ddc[_0x5a48('0x34')]);},{'priority':_0x5a48('0xbb')});}),_0x10d3d3[_0x5a48('0x49')]['for']('dataDowncast')[_0x5a48('0x9f')]({'model':'suggestion','view':(_0x23e2cf,_0x34b10b)=>{if(!_0x34b10b[_0x5a48('0xfa')][_0x5a48('0x10e')])return null;const {type:_0xbba47}=this[_0x5a48('0x10a')](_0x23e2cf['markerName']);return{'classes':[_0x5a48('0xf4'),_0x5a48('0x5e')+_0xbba47],'priority':0xbb8};}});const _0x2685ef=({showActiveMarkers:_0x27b3d3=!0x0}={})=>(_0x3c1de1,_0x567307,_0x201b11)=>{if(!_0x567307[_0x5a48('0x134')])return;if(_0x567307[_0x5a48('0x134')]['is']('selection'))return void _0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x567307['item'],_0x3c1de1[_0x5a48('0x1c')]);const _0x1661a3=_0x201b11['mapper'][_0x5a48('0x123')](_0x567307[_0x5a48('0x134')]);if(!(_0x567307[_0x5a48('0x134')]['is'](_0x5a48('0x82'))&&_0x10d3d3[_0x5a48('0x90')][_0x5a48('0xbe')][_0x5a48('0x26')](_0x567307[_0x5a48('0x134')])&&!_0x1661a3[_0x5a48('0x103')]('addHighlight')))return;const {id:_0x1ea636}=this[_0x5a48('0x10a')](_0x567307[_0x5a48('0xdb')]);_0x201b11['writer'][_0x5a48('0x13c')]([_0x5a48('0xf4'),_0x5a48('0x9e')],_0x1661a3),_0x201b11[_0x5a48('0x34')][_0x5a48('0x1f')](_0x5a48('0xe6'),_0x1ea636,_0x1661a3),_0x201b11[_0x5a48('0x105')][_0x5a48('0x115')](_0x1661a3,_0x567307[_0x5a48('0xdb')]),_0x27b3d3&&(this[_0x5a48('0x101')][_0x5a48('0x117')](_0x567307[_0x5a48('0xdb')])?_0x201b11[_0x5a48('0x34')][_0x5a48('0x13c')](_0x5a48('0x4b'),_0x1661a3):_0x201b11[_0x5a48('0x34')][_0x5a48('0x8f')](_0x5a48('0x4b'),_0x1661a3));for(const _0x5b9bf9 of _0x10d3d3[_0x5a48('0x90')][_0x5a48('0x4')](_0x567307['item'])[_0x5a48('0x12d')]())_0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x5b9bf9,_0x3c1de1[_0x5a48('0x1c')]);_0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x567307[_0x5a48('0x134')],_0x3c1de1[_0x5a48('0x1c')]);};_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')['add'](_0x16e874=>{_0x16e874['on']('addMarker:suggestion:formatBlock',(_0x2b34c3,_0x557e65,_0x3a29e7)=>{_0x3a29e7[_0x5a48('0xfa')][_0x5a48('0x10e')]&&_0x2685ef({'showActiveMarkers':!0x1})(_0x2b34c3,_0x557e65,_0x3a29e7);},{'priority':_0x5a48('0x14')});}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')[_0x5a48('0x104')]({'model':_0x5a48('0x73'),'view':(_0x16e469,_0x3225ea)=>_0x3225ea[_0x5a48('0xfa')][_0x5a48('0x10e')]?null:{'group':_0x5a48('0x73'),'name':_0x16e469[_0x5a48('0x99')](0xb)}}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xf6'))[_0x5a48('0x96')]({'view':{'name':_0x5a48('0x73'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xfadfaa,{writer:_0x4beab7})=>{let _0x571740=_0x5a48('0x22')+_0xfadfaa[_0x5a48('0x44')](_0x5a48('0x12c'))+':'+_0xfadfaa[_0x5a48('0x44')]('id');return _0xfadfaa[_0x5a48('0x44')](_0x5a48('0xf0'))&&(_0x571740+=':'+_0xfadfaa['getAttribute'](_0x5a48('0xf0'))),_0x4beab7['createElement']('$marker',{'data-name':_0x571740});}}),_0x10d3d3[_0x5a48('0x49')]['for']('upcast')[_0x5a48('0x132')]({'view':'suggestion'}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xba'))[_0x5a48('0xde')](_0x5c1abd=>{_0x5c1abd['on'](_0x5a48('0x4e'),_0x2685ef(),{'priority':'high'});}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('editingDowncast')[_0x5a48('0xde')](_0x3ebc99=>{_0x3ebc99['on']('removeMarker:suggestion:formatBlock',(_0x59b26e,_0x462f49,_0x27ac9d)=>{const _0x172633=_0x27ac9d[_0x5a48('0x105')][_0x5a48('0x12')](_0x462f49['markerName']);if(_0x172633)for(const _0x543550 of _0x172633)_0x543550[_0x5a48('0x103')](_0x5a48('0x135'))||(_0x27ac9d[_0x5a48('0x34')][_0x5a48('0x8f')]([_0x5a48('0xf4'),_0x5a48('0x9e'),_0x5a48('0x4b')],_0x543550),_0x27ac9d[_0x5a48('0x34')][_0x5a48('0x15')](_0x5a48('0xe6'),_0x543550),_0x27ac9d[_0x5a48('0x105')][_0x5a48('0x71')](_0x543550,_0x462f49[_0x5a48('0xdb')]));},{'priority':'high'});}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')][_0x5a48('0x6d')](_0x194a31=>{let _0x39883f=!0x1;const _0x5455e0=Array[_0x5a48('0x57')](_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')][_0x5a48('0xcc')][_0x5a48('0x8a')]()),_0x5bdae9=new Set();for(const {name:_0xdf826b,data:_0x2cf670}of _0x5455e0){const {group:_0x2d6756,type:_0x1f6754,id:_0x54cc5c}=this[_0x5a48('0x10a')](_0xdf826b);if('suggestion'!==_0x2d6756)continue;const _0x4e6b9d=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x54cc5c);if(null!=_0x2cf670[_0x5a48('0x106')]){_0x5a48('0x128')==_0x1f6754&&(_0x39883f=_0x39883f||$t(_0x2cf670['newRange'],_0xdf826b,_0x194a31,_0x10d3d3[_0x5a48('0x90')]['schema']));if(_0x2cf670[_0x5a48('0x106')][_0x5a48('0x31')]||_0x5a48('0x8d')==_0x2cf670['newRange'][_0x5a48('0x61')]['rootName']||_0x5a48('0xb')==_0x1f6754&&!Rt(_0x2cf670[_0x5a48('0x106')])||'deletion'==_0x1f6754&&!(!Mt(_0x5c32fd=_0x2cf670[_0x5a48('0x106')])&&!function(_0x2bc0c9){return _0x2bc0c9[_0x5a48('0xb7')][_0x5a48('0xad')]==_0x2bc0c9[_0x5a48('0x125')][_0x5a48('0xc3')]&&_0x2bc0c9[_0x5a48('0xb7')][_0x5a48('0x38')];}(_0x5c32fd)))_0x194a31[_0x5a48('0xb4')](_0xdf826b),_0x39883f=!0x0;else{if(!_0x4e6b9d||!_0x4e6b9d['isInContent'])continue;_0x5bdae9['add'](_0x4e6b9d);}}}var _0x5c32fd;return _0x5bdae9['size']>0x0&&(_0x39883f=!!this[_0x5a48('0x78')](_0x5bdae9)||_0x39883f),_0x39883f;}),_0x10d3d3['model'][_0x5a48('0x45')]['registerPostFixer'](_0x42ab03=>{let _0x5d551e=!0x1;for(const _0x5cd128 of _0x10d3d3['model'][_0x5a48('0x45')][_0x5a48('0xcc')]['getChanges']()){if(_0x5a48('0x81')!=_0x5cd128[_0x5a48('0x4d')])continue;const _0x23a025=_0x5cd128[_0x5a48('0x66')]['getShiftedBy'](_0x5cd128[_0x5a48('0x60')]);if(_0x23a025['isAtEnd'])for(const _0x176e38 of this[_0x5a48('0x137')][_0x5a48('0xb5')]()){if(_0x176e38[_0x5a48('0x41')]||!_0x176e38[_0x5a48('0x74')])continue;if(_0x5a48('0xb')!=_0x176e38[_0x5a48('0x4d')])continue;const _0x1325ea=_0x176e38[_0x5a48('0xf3')]();if(_0x1325ea[_0x5a48('0xb7')]['parent']!=_0x1325ea[_0x5a48('0x125')][_0x5a48('0xad')]&&_0x1325ea[_0x5a48('0x125')][_0x5a48('0x138')](_0x5cd128[_0x5a48('0x66')])){const _0x4c0e41=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x1325ea[_0x5a48('0xb7')],_0x23a025);_0x42ab03[_0x5a48('0x33')](_0x176e38['getFirstMarker'](),{'range':_0x4c0e41}),_0x5d551e=!0x0;}}}return _0x5d551e;}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x93')]['on'](_0x5a48('0xc7'),(_0x490ea9,_0x489bac,_0x3bedeb)=>{if(null==_0x3bedeb){const {id:_0x8e587a}=this[_0x5a48('0x10a')](_0x489bac[_0x5a48('0x1c')]),_0x201b2c=this[_0x5a48('0x137')]['get'](_0x8e587a);_0x201b2c&&_0x201b2c[_0x5a48('0x17')](_0x489bac[_0x5a48('0x1c')]);}}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')]['on'](_0x5a48('0x5a'),()=>{const _0x3c071d=Array['from'](_0x10d3d3['model'][_0x5a48('0x45')][_0x5a48('0xcc')]['getChangedMarkers']())['filter'](_0x586820=>_0x5a48('0x73')===this[_0x5a48('0x10a')](_0x586820['name'])[_0x5a48('0x122')]);if(0x0===_0x3c071d[_0x5a48('0x60')])return;_0x3c071d[_0x5a48('0xae')]((_0x2fcc73,_0x2d62e4)=>{const _0x309244=_0x2fcc73[_0x5a48('0xfb')][_0x5a48('0x11a')],_0xec2a54=_0x2d62e4[_0x5a48('0xfb')][_0x5a48('0x11a')];return null===_0x309244&&null===_0xec2a54?0x0:null===_0x309244&&null!==_0xec2a54?-0x1:null!==_0x309244&&null===_0xec2a54?0x1:_0x309244[_0x5a48('0xb7')][_0x5a48('0xa6')](_0xec2a54[_0x5a48('0xb7')])?-0x1:0x1;});const _0x6fad4b=new Set(),_0x386dce=new Set();for(const {name:_0x303b44,data:_0x47c0b7}of _0x3c071d){const {id:_0x1e834f}=this[_0x5a48('0x10a')](_0x303b44);if(null===_0x47c0b7[_0x5a48('0x11a')]){const _0x397d90=this[_0x5a48('0x27')](_0x303b44);_0x386dce['add'](_0x397d90);}else{const _0x5065c4=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x1e834f);null!==_0x47c0b7['newRange']||_0x5065c4[_0x5a48('0x74')]?(_0x6fad4b[_0x5a48('0xde')](_0x5065c4[_0x5a48('0x111')]),_0x386dce[_0x5a48('0xde')](_0x5065c4)):this[_0x5a48('0x70')](_0x5065c4);}}_0x386dce[_0x5a48('0x11')]>0x0&&this[_0x5a48('0x2f')](_0x386dce);for(const _0x5111fa of _0x6fad4b)this['fire'](_0x5a48('0x37'),_0x5111fa);}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0xa4'),(_0x1c9c5f,_0xa9c7c9)=>{const _0x1722b9=_0xa9c7c9[0x0];if(!this[_0x5a48('0x137')]['size'])return;if(!_0x1722b9['isDocumentOperation'])return;if(_0x1722b9[_0x5a48('0xa2')][_0x5a48('0x12f')]||!_0x1722b9[_0x5a48('0xa2')]['isLocal'])return;let _0x565523,_0x25b031;switch(_0x1722b9[_0x5a48('0x4d')]){case _0x5a48('0x81'):_0x565523=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x66')]),_0x25b031=_0x565523['getShiftedBy'](_0x1722b9['howMany']);break;case _0x5a48('0x89'):_0x565523=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x76')]),_0x25b031=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x2')]);break;case _0x5a48('0xa7'):_0x565523=_0x10d3d3[_0x5a48('0x90')]['createPositionAt'](_0x1722b9[_0x5a48('0x35')]),_0x25b031=_0x565523['getShiftedBy'](_0x1722b9['howMany']);break;default:return;}const _0x4d1a66=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x565523,_0x25b031);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](()=>{for(const {suggestion:_0x1969e3,meta:_0x53ad43}of this['_findSuggestions'](_0x4d1a66)){if(_0x1969e3[_0x5a48('0x41')])continue;if('formatInline'==_0x1969e3[_0x5a48('0x4d')])continue;const _0x37baca=_0x1969e3[_0x5a48('0xfb')]&&_0x1969e3['data'][_0x5a48('0x127')];(_0x5a48('0xb')!=_0x1969e3[_0x5a48('0x4d')]||'split'==_0x1722b9[_0x5a48('0x4d')]&&!_0x37baca)&&(_0x53ad43[_0x5a48('0x11b')]||_0x5a48('0x85')==_0x1969e3[_0x5a48('0x4d')]&&_0x53ad43[_0x5a48('0xe8')]||_0x1969e3[_0x5a48('0xf3')]()[_0x5a48('0x2a')](_0x4d1a66)&&this[_0x5a48('0xd0')](_0x1969e3,_0x565523,_0x25b031));}});},{'priority':_0x5a48('0x10d')}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0x108'),(_0x23f106,_0x570d58)=>{const _0x572661=_0x570d58[0x0],_0x2a42c1=_0x570d58[0x1];if(_0x2a42c1&&_0x2a42c1[_0x5a48('0x9a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5a48('0xd4')][_0x5a48('0x4f')])return;if(_0x572661[_0x5a48('0x31')])return;const _0x4a36bf=_0x10d3d3['model'][_0x5a48('0xbe')],{start:_0x5cc586,end:_0x25b777}=_0x572661['getFirstRange'](),_0x492b7c=_0x5cc586[_0x5a48('0x6')]&&_0x4a36bf[_0x5a48('0x12a')](_0x5cc586['nodeAfter'])?null:_0x4a36bf[_0x5a48('0xaf')](_0x5cc586,'forward'),_0x23cd1=_0x25b777[_0x5a48('0xc3')]&&_0x4a36bf['isLimit'](_0x25b777[_0x5a48('0xc3')])?null:_0x4a36bf[_0x5a48('0xaf')](_0x25b777,_0x5a48('0x116')),_0x29453b=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x492b7c?_0x492b7c[_0x5a48('0xb7')]:_0x5cc586,_0x23cd1?_0x23cd1['end']:_0x25b777);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](_0x4d0858=>{this[_0x5a48('0x10')](_0x29453b);const _0x3dfaf1=_0x10d3d3['model'][_0x5a48('0xbe')][_0x5a48('0xaf')](_0x29453b['start']);_0x572661['is'](_0x5a48('0xcd'))?_0x4d0858[_0x5a48('0xa5')](_0x3dfaf1):_0x572661[_0x5a48('0x3f')](_0x3dfaf1);}),_0x23f106[_0x5a48('0x5')]();},{'priority':_0x378540[_0x5a48('0x7b')]+0xa}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0x130'),(_0x410c27,_0x5c05d0)=>{const _0x13eec5=_0x5c05d0[_0x5c05d0['length']-0x1];_0x13eec5&&_0x13eec5['forceDefaultExecution']||this[_0x5a48('0x59')]||this[_0x5a48('0xd4')]['value']&&(_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](()=>{let _0x3ce1fc=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x130')](_0x5c05d0[0x0],_0x5c05d0[0x1],_0x5c05d0[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ce1fc)return;_0x410c27[_0x5a48('0x10c')]=_0x3ce1fc[_0x5a48('0x1')]();const _0x32428e=_0x3ce1fc[_0x5a48('0x125')][_0x5a48('0xc3')],_0x48b30f=_0x10d3d3['model'][_0x5a48('0xbe')];_0x32428e&&_0x48b30f[_0x5a48('0x26')](_0x32428e)&&!_0x48b30f['isObject'](_0x32428e)&&(_0x3ce1fc=_0x10d3d3['model'][_0x5a48('0x114')](_0x3ce1fc[_0x5a48('0xb7')],_0x10d3d3[_0x5a48('0x90')]['createPositionAt'](_0x32428e,'end'))),this[_0x5a48('0x100')](_0x3ce1fc);}),_0x410c27[_0x5a48('0x5')]());},{'priority':_0x5a48('0xbb')}),this[_0x5a48('0x16')]['commands'][_0x5a48('0xde')](_0x5a48('0xe4'),this['trackChangesCommand']),this[_0x5a48('0xc')](_0x5a48('0xe4'));const _0x353190=new _0x12c8df(_0x10d3d3,this[_0x5a48('0x137')]);_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0x11e'),_0x353190),this['enableCommand'](_0x5a48('0x11e'));const _0x29030e=new _0x9d033d(_0x10d3d3,this[_0x5a48('0x137')]);_0x10d3d3[_0x5a48('0xb8')]['add'](_0x5a48('0xe3'),_0x29030e),this[_0x5a48('0xc')](_0x5a48('0xe3')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')]('acceptAllSuggestions',new _0x49a461(_0x10d3d3,_0x353190,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0xd1')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0xbd'),new _0x49a461(_0x10d3d3,_0x29030e,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0xbd')),_0x10d3d3['commands'][_0x5a48('0xde')](_0x5a48('0x24'),new _0x129bce(_0x10d3d3,_0x353190,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0x24')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0x1b'),new _0x129bce(_0x10d3d3,_0x29030e,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0x1b'));const _0x2ff9eb=_0x10d3d3['plugins']['get'](_0x5a48('0x118'));this[_0x5a48('0x102')](_0x2ff9eb,_0x5a48('0x1a'),(_0x512008,{threadId:_0x3a99df})=>{const _0x250dbd=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x3a99df);_0x250dbd&&_0x250dbd[_0x5a48('0x48')]&&0x1===_0x250dbd[_0x5a48('0x48')][_0x5a48('0x60')]&&this[_0x5a48('0x19')](_0x3a99df,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ff9eb,'removeComment',(_0x3123d1,{threadId:_0x5c7de4})=>{const _0x17003b=this[_0x5a48('0x137')]['get'](_0x5c7de4);_0x17003b&&_0x17003b['commentThread']&&!_0x17003b[_0x5a48('0x48')][_0x5a48('0x60')]&&this[_0x5a48('0x19')](_0x5c7de4,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5a48('0x131')](_0x273f98){if(this['_adapter'])throw new _0x5c539a('track-changes-adapter-already-set',this);this[_0x5a48('0x53')]=_0x273f98;}get[_0x5a48('0x131')](){return this[_0x5a48('0x53')];}['getSuggestions']({skipNotAttached:_0x43ec57=!0x1,toJSON:_0x40b909=!0x1}={}){const _0x19624e=[];for(const _0xd8db6f of this['_suggestions'][_0x5a48('0xb5')]())_0x43ec57&&!_0xd8db6f['isInContent']||_0x19624e['push'](_0xd8db6f);return _0x40b909?_0x19624e[_0x5a48('0x13b')](_0x2a71ac=>_0x2a71ac[_0x5a48('0xf9')]()):_0x19624e;}[_0x5a48('0xc5')](_0x14463a){const _0x19ba74=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x14463a);if(!_0x19ba74)throw new _0x5c539a(_0x5a48('0xbf'),this);return _0x19ba74;}['hasSuggestion'](_0x22b098){return this[_0x5a48('0x137')][_0x5a48('0x6a')](_0x22b098);}['addSuggestionData'](_0x49635f){const {authorId:_0x47684a,id:_0x3aefe4,attributes:_0x383406}=_0x49635f,[_0x427389,_0x5ce12a]=_0x49635f[_0x5a48('0x4d')][_0x5a48('0x89')](':'),_0x42373b=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x3aefe4)||this[_0x5a48('0xc4')](_0x427389,_0x5ce12a,_0x3aefe4,_0x47684a,_0x383406);if(this[_0x5a48('0x25')](_0x42373b),this[_0x5a48('0xc8')](_0x42373b,_0x427389,_0x5ce12a||null,_0x47684a),_0x42373b['createdAt']=_0x49635f[_0x5a48('0xce')],_0x42373b[_0x5a48('0x3a')]=!0x0,_0x383406&&_0x383406['@external']){const _0x10bd06=_0x383406['@external'],_0x1cb979=this['_getExternalAuthor'](_0x10bd06['authorName']);_0x42373b[_0x5a48('0xdd')]=_0x10bd06['createdAt'],_0x42373b[_0x5a48('0x9c')]=_0x1cb979,_0x42373b[_0x5a48('0xa0')]=!0x0;}else _0x42373b[_0x5a48('0xdd')]=_0x49635f[_0x5a48('0xce')];switch(_0x49635f[_0x5a48('0xfb')]&&(_0x42373b[_0x5a48('0xfb')]=_0x49635f[_0x5a48('0xfb')]),_0x49635f[_0x5a48('0x133')]&&(_0x42373b[_0x5a48('0x133')]=_0x49635f[_0x5a48('0x133')]),this[_0x5a48('0x53')]&&this['_adapter']['addSuggestion']||(_0x42373b['_saved']=!0x0),this['_suggestionState'][_0x5a48('0x6c')](_0x42373b)){case _0x5a48('0x107'):this[_0x5a48('0x11d')]['set'](_0x42373b,'dataReady');break;case _0x5a48('0x7c'):_0x42373b[_0x5a48('0x74')]?(this['_refreshSuggestionsChain'](new Set([_0x42373b])),this['_joinWithAdjacentSuggestions'](new Set([_0x42373b])),this['_suggestionState'][_0x5a48('0x54')](_0x42373b,_0x5a48('0x6b')),this[_0x5a48('0xd7')]('suggestionLoaded',_0x42373b)):this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x42373b,_0x5a48('0xd2'));}return _0x42373b;}['acceptSuggestion'](_0x464aa1){this[_0x5a48('0x9a')](()=>{this[_0x5a48('0x16')]['model']['change'](()=>{for(const _0x984e0f of _0x464aa1['getAllAdjacentSuggestions']())_0x984e0f[_0x5a48('0x62')]();});});}[_0x5a48('0xe3')](_0x3c9a82){this[_0x5a48('0x9a')](()=>{this['editor']['model'][_0x5a48('0x1e')](()=>{for(const _0x1c2c8b of _0x3c9a82[_0x5a48('0x88')]())_0x1c2c8b[_0x5a48('0xa1')]();});});}['enableCommand'](_0x55944b,_0x13365f){const _0x1734cb=this[_0x5a48('0x16')][_0x5a48('0xb8')][_0x5a48('0x6c')](_0x55944b);if(!_0x1734cb)throw new _0x5c539a('track-changes-command-not-found',this,{'commandName':_0x55944b});this[_0x5a48('0x7f')][_0x5a48('0xde')](_0x1734cb),_0x13365f&&_0x1734cb['on'](_0x5a48('0x7a'),(_0x45fe88,_0x470a71)=>{this['trackChangesCommand'][_0x5a48('0x4f')]&&(this[_0x5a48('0x59')]||_0x470a71[_0x5a48('0x60')]>0x0&&_0x470a71[_0x470a71[_0x5a48('0x60')]-0x1]&&_0x470a71[_0x470a71[_0x5a48('0x60')]-0x1][_0x5a48('0x9a')]||(_0x45fe88[_0x5a48('0x10c')]=_0x13365f((..._0x937404)=>_0x1734cb[_0x5a48('0x7a')](..._0x937404,{'forceDefaultExecution':!0x0}),..._0x470a71),_0x45fe88[_0x5a48('0x5')]()));},{'priority':_0x5a48('0xbb')});}[_0x5a48('0x9a')](_0x765874){let _0x28ab38,_0x3bb980;const _0x4260dd=this[_0x5a48('0x59')];this[_0x5a48('0x59')]=!0x0;try{_0x28ab38=_0x765874();}catch(_0x321372){_0x3bb980=_0x321372;}return _0x4260dd||(this[_0x5a48('0x59')]=!0x1),_0x3bb980&&_0x5c539a['rethrowUnexpectedError'](_0x3bb980,this),_0x28ab38;}[_0x5a48('0x100')](_0x2e5593,_0x3f956b=null,_0x33f64d={}){if(_0x2e5593[_0x5a48('0x31')])return null;const _0x195b7e=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'];for(const {suggestion:_0x53fb9a,meta:_0x55304f}of this[_0x5a48('0x18')](_0x2e5593,_0x5a48('0x85')))if(_0x55304f[_0x5a48('0xe8')]){if(!_0x55304f[_0x5a48('0x139')]){if(_0x55304f['containsRangeInObject']){if(!this[_0x5a48('0x8b')]||!Ot(_0x53fb9a,_0x33f64d))continue;return _0x53fb9a;}if(Ot(_0x53fb9a,_0x33f64d))return _0x53fb9a;this[_0x5a48('0xd0')](_0x53fb9a,_0x2e5593[_0x5a48('0xb7')],_0x2e5593['end']);break;}if(_0x3f956b==_0x53fb9a['subType']&&Ot(_0x53fb9a,_0x33f64d)){const _0x353edf=_0x53fb9a['getFirstRange']();return _0x353edf[_0x5a48('0xb7')]['isEqual'](_0x2e5593[_0x5a48('0x125')])?this['_setSuggestionRange'](_0x53fb9a,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x2e5593[_0x5a48('0xb7')],_0x353edf[_0x5a48('0x125')])):this['_setSuggestionRange'](_0x53fb9a,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x353edf['start'],_0x2e5593[_0x5a48('0x125')])),_0x53fb9a;}}const _0x5daf0a=_0x31bd95(),_0xf3ab16=_0x195b7e['id'],_0x3d39c1=_0x3f956b?'insertion:'+_0x3f956b:_0x5a48('0x85'),_0x5d6909=this[_0x5a48('0x120')]({'id':_0x5daf0a,'type':_0x3d39c1,'createdAt':new Date(),'authorId':_0xf3ab16,'attributes':_0x33f64d});return this[_0x5a48('0x13a')](_0x3d39c1,_0x5daf0a,_0xf3ab16,_0x2e5593),_0x5d6909;}['markMultiRangeInsertion'](_0x49d99c,_0x52a711=_0x5a48('0x98'),_0x4ce54e={}){const _0x165320=this['editor'][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x2712a1=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0x85'),_0x52a711,_0x5a48('0x36'));for(const _0xc0845f of this[_0x5a48('0x129')]())if(_0xc0845f[_0x5a48('0x9c')]['id']==_0x165320['id']&&_0x5a48('0x85')==_0xc0845f['type']&&_0xc0845f['subType']==_0x52a711&&Ot(_0xc0845f,_0x4ce54e)&&(_0x2712a1(_0xc0845f[_0x5a48('0xc9')](),_0x49d99c)||_0x2712a1(_0x49d99c,_0xc0845f[_0x5a48('0xc9')]()))){for(const _0x20cf1f of _0x49d99c)_0xc0845f['addRange'](_0x20cf1f);return _0xc0845f;}for(const {suggestion:_0x80e9ec,meta:_0x2f1797}of this[_0x5a48('0x18')](_0x49d99c,_0x5a48('0x85'))){if(!_0x2f1797['isOwn'])continue;if(!this[_0x5a48('0x8b')]&&_0x2f1797[_0x5a48('0x11b')])continue;if(!Ot(_0x80e9ec,_0x4ce54e))continue;let _0x2eab8c=!0x0;for(const _0x41b4aa of _0x80e9ec[_0x5a48('0xc9')]())for(const _0x26182b of _0x49d99c)if(!_0x41b4aa['containsRange'](_0x26182b)){_0x2eab8c=!0x1;break;}if(_0x2eab8c)return _0x80e9ec;}const _0x454c1b=_0x31bd95(),_0x4b265a=_0x165320['id'],_0x27ac66=_0x5a48('0x55')+_0x52a711,_0x437f60=this[_0x5a48('0x120')]({'id':_0x454c1b,'type':_0x27ac66,'createdAt':new Date(),'authorId':_0x4b265a,'attributes':_0x4ce54e});for(const _0x3f465b of _0x49d99c)this[_0x5a48('0x13a')](_0x27ac66,_0x454c1b,_0x4b265a,_0x3f465b,_0x37847a['getMultiRangeId']());return _0x437f60;}[_0x5a48('0xd9')](_0x310322,_0x3080ac,_0x334bcb=null,_0xc53460={}){if(_0x334bcb=_0x334bcb||Nt(_0x3080ac),_0x310322[_0x5a48('0x31')])return null;if(_0x5a48('0xdc')===this[_0x5a48('0xeb')]){const _0x411cfd=this['_suggestionFactory'][_0x5a48('0xf2')](_0x5a48('0x128'),_0x334bcb,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x411cfd([_0x310322],_0x3080ac,_0xc53460)),null;}const _0x99351d=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x3ffd9a=[];if(_0x5a48('0xf8')!==this[_0x5a48('0xeb')])for(const {suggestion:_0x4b27d8,meta:_0x423a94}of this[_0x5a48('0x18')](_0x310322,'insertion'))_0x423a94[_0x5a48('0xe8')]&&!_0x423a94[_0x5a48('0x8e')]&&_0x3ffd9a[_0x5a48('0x119')](..._0x4b27d8[_0x5a48('0xc9')]());const _0x31b1d1=function(_0x8e389f,_0x25f4e0){const _0x2c248b=[];for(const _0x48a696 of _0x25f4e0){const _0x2cdfec=_0x8e389f[_0x5a48('0x67')](_0x48a696);_0x2cdfec&&_0x2c248b[_0x5a48('0x119')](_0x2cdfec);}return _0x2c248b;}(_0x310322,_0x3ffd9a),_0x4eb45d=function(_0x85ee3d,_0x2fa159){const _0x55d039=[_0x85ee3d];for(const _0x593679 of _0x2fa159){let _0x46405f=0x0;for(;_0x46405f<_0x55d039['length'];){const _0x30ff58=_0x55d039[_0x46405f][_0x5a48('0x12b')](_0x593679);_0x55d039['splice'](_0x46405f,0x1,..._0x30ff58),_0x46405f+=_0x30ff58['length'];}}return _0x55d039;}(_0x310322,_0x3ffd9a);_0x31b1d1[_0x5a48('0x60')]&&this[_0x5a48('0x95')][_0x5a48('0x1e')](()=>{for(const _0x2be760 of _0x31b1d1){const _0x29614e=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatInline',_0x334bcb,_0x5a48('0x62'));this[_0x5a48('0x9a')](()=>_0x29614e([_0x2be760],_0x3080ac,_0xc53460));}});for(const _0xf3e67d of _0x4eb45d){let _0xfb36c4=null,_0x55881b=_0xf3e67d['start'],_0x1b9335=_0xf3e67d[_0x5a48('0x125')];for(const {suggestion:_0x17a9ed,meta:_0x195439}of this[_0x5a48('0x18')](_0xf3e67d,_0x5a48('0x128'))){if(!_0x195439[_0x5a48('0xe8')])continue;if(_0x17a9ed[_0x5a48('0xb6')]!=_0x334bcb)continue;if(!Ot(_0x17a9ed,_0xc53460))continue;const _0x5cb513=_0x17a9ed[_0x5a48('0xf3')]();if(_0x5cb513[_0x5a48('0x2a')](_0xf3e67d,!0x0))return null;_0x55881b=_0x55881b[_0x5a48('0xa6')](_0x5cb513[_0x5a48('0xb7')])?_0x55881b:_0x5cb513['start'],_0x1b9335=_0x1b9335[_0x5a48('0xd')](_0x5cb513[_0x5a48('0x125')])?_0x1b9335:_0x5cb513['end'],_0xfb36c4?_0x5cb513[_0x5a48('0xb7')][_0x5a48('0xa6')](_0xfb36c4[_0x5a48('0xf3')]()[_0x5a48('0xb7')])?(_0xfb36c4[_0x5a48('0x40')](),_0xfb36c4=_0x17a9ed):_0x17a9ed['removeMarkers']():_0xfb36c4=_0x17a9ed;}const _0x3cc7fa=this[_0x5a48('0x95')][_0x5a48('0x114')](_0x55881b,_0x1b9335);if(_0xfb36c4)this[_0x5a48('0x3e')](_0xfb36c4,_0x3cc7fa);else{const _0x1b01ac=_0x31bd95(),_0xc23f37=_0x99351d['id'];this[_0x5a48('0x120')]({'id':_0x1b01ac,'type':_0x5a48('0x87')+_0x334bcb,'data':_0x3080ac,'createdAt':new Date(),'authorId':_0xc23f37,'attributes':_0xc53460}),this['_addSuggestionMarker'](_0x5a48('0x87')+_0x334bcb,_0x1b01ac,_0xc23f37,_0x3cc7fa);}}return null;}['markBlockFormat'](_0x1e2133,_0x4f97c3,_0x3e0ee7=[],_0x1bf6d6=null,_0x1f5aac={}){_0x4f97c3[_0x5a48('0xff')]||(_0x4f97c3[_0x5a48('0xff')]=_0x4f97c3[_0x5a48('0x72')]),_0x4f97c3[_0x5a48('0x127')]=_0x1e2133['is'](_0x5a48('0xb9')),_0x1bf6d6=_0x1bf6d6||Nt(_0x4f97c3);const _0x51b58a=_0x3e0ee7[_0x5a48('0x13b')](_0x1734ab=>jt(_0x1734ab,this[_0x5a48('0x95')])),_0x242d0b=_0x1e2133['is']('range')?_0x1e2133:jt(_0x1e2133,this[_0x5a48('0x95')]);if(_0x5a48('0xdc')===this[_0x5a48('0xeb')]){const _0x331661=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0xb'),_0x1bf6d6,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x331661([_0x242d0b],_0x4f97c3,_0x1f5aac)),null;}_0x51b58a[_0x5a48('0x119')](_0x242d0b);let _0x102a19=!0x0;for(const _0x29fbd4 of _0x51b58a)if(!this['_rangeIsInLocalUserInsertion'](_0x29fbd4)){_0x102a19=!0x1;break;}if(_0x102a19&&_0x5a48('0xf8')!==this[_0x5a48('0xeb')]){const _0x16eb5f=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0xb'),_0x1bf6d6,'accept');return this[_0x5a48('0x9a')](()=>_0x16eb5f([_0x242d0b],_0x4f97c3,_0x1f5aac)),null;}let _0x3bcdbe=null,_0x48f85c=_0x242d0b[_0x5a48('0xb7')],_0x39c9dc=_0x242d0b[_0x5a48('0x125')];for(const {suggestion:_0x2fb427,meta:_0x50c486}of this[_0x5a48('0x18')](_0x242d0b,_0x5a48('0xb'))){if(!_0x50c486[_0x5a48('0xe8')])continue;if(_0x50c486[_0x5a48('0x139')]||_0x50c486[_0x5a48('0x11b')]||_0x50c486['isInsideObject'])continue;if(_0x2fb427[_0x5a48('0xfb')][_0x5a48('0xff')]!=_0x4f97c3['formatGroupId'])continue;if(!Ot(_0x2fb427,_0x1f5aac))continue;const _0x286eff=_0x2fb427['getFirstRange']();if(_0x2fb427[_0x5a48('0xb6')]==_0x1bf6d6){if(_0x286eff[_0x5a48('0x2a')](_0x242d0b,!0x0))return null;_0x48f85c=_0x48f85c['isBefore'](_0x286eff[_0x5a48('0xb7')])?_0x48f85c:_0x286eff[_0x5a48('0xb7')],_0x39c9dc=_0x39c9dc[_0x5a48('0xd')](_0x286eff[_0x5a48('0x125')])?_0x39c9dc:_0x286eff[_0x5a48('0x125')],_0x3bcdbe?_0x286eff[_0x5a48('0xb7')][_0x5a48('0xa6')](_0x3bcdbe[_0x5a48('0xf3')]()[_0x5a48('0xb7')])?(_0x3bcdbe[_0x5a48('0x40')](),_0x3bcdbe=_0x2fb427):_0x2fb427[_0x5a48('0x40')]():_0x3bcdbe=_0x2fb427;}else{const _0x33c8d7=_0x242d0b[_0x5a48('0x67')](_0x286eff);this[_0x5a48('0x51')](_0x2fb427,_0x33c8d7);}}const _0x5a8b13=this['editor'][_0x5a48('0x4a')]['get'](_0x5a48('0x9'))['me'],_0x4eb378=_0x31bd95(),_0x4f39ce=_0x5a8b13['id'];if(_0x3bcdbe)return this[_0x5a48('0x3e')](_0x3bcdbe,this[_0x5a48('0x95')]['createRange'](_0x48f85c,_0x39c9dc)),_0x3bcdbe;{const _0x2398b1=this[_0x5a48('0x120')]({'id':_0x4eb378,'type':_0x5a48('0x64')+_0x1bf6d6,'data':_0x4f97c3,'createdAt':new Date(),'authorId':_0x4f39ce,'attributes':_0x1f5aac});return this[_0x5a48('0x13a')]('formatBlock:'+_0x1bf6d6,_0x4eb378,_0x4f39ce,this['_model'][_0x5a48('0x114')](_0x48f85c,_0x39c9dc)),_0x2398b1;}}[_0x5a48('0x5d')](_0x3114bb,_0x442d8e,_0x5a8d1b=[],_0x5c26d2=null,_0x26cdbf={}){_0x442d8e[_0x5a48('0xff')]||(_0x442d8e[_0x5a48('0xff')]=_0x442d8e['commandName']);const _0x28a940=_0x3114bb[0x0];_0x442d8e[_0x5a48('0x127')]=_0x28a940['is']('range'),_0x5c26d2=_0x5c26d2||Nt(_0x442d8e);const _0x24584b=_0x5a8d1b['map'](_0x21ad3c=>jt(_0x21ad3c,this[_0x5a48('0x95')])),_0x1832ea=_0x28a940['is'](_0x5a48('0xb9'))?_0x3114bb:_0x3114bb[_0x5a48('0x13b')](_0x2d0c07=>jt(_0x2d0c07,this[_0x5a48('0x95')]));if('never'===this[_0x5a48('0xeb')]){const _0x4c9d87=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0xb'),_0x5c26d2,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x4c9d87(_0x1832ea,_0x442d8e,_0x26cdbf)),null;}_0x24584b[_0x5a48('0x119')](..._0x1832ea);let _0x47f568=!0x0;for(const _0x24ef14 of _0x24584b)if(!this['_rangeIsInLocalUserInsertion'](_0x24ef14)){_0x47f568=!0x1;break;}if(_0x47f568&&_0x5a48('0xf8')!==this[_0x5a48('0xeb')]){const _0x417604=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatBlock',_0x5c26d2,'accept');return this[_0x5a48('0x9a')](()=>_0x417604(_0x1832ea,_0x442d8e,_0x26cdbf)),null;}const _0x317099=this['editor'][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users')['me'];for(const _0xe4075d of this[_0x5a48('0x129')]()){if(_0xe4075d[_0x5a48('0x9c')]['id']!=_0x317099['id'])continue;if(_0x5a48('0xb')!=_0xe4075d[_0x5a48('0x4d')]||_0xe4075d[_0x5a48('0xfb')][_0x5a48('0xff')]!=_0x442d8e[_0x5a48('0xff')])continue;if(!Ot(_0xe4075d,_0x26cdbf))continue;const _0x14f724=_0xe4075d[_0x5a48('0xb6')]==_0x5c26d2;for(let _0x371f83=0x0;_0x371f83<_0x1832ea['length'];_0x371f83++){const _0x19c24c=_0x1832ea[_0x371f83];for(const _0x1f2ae5 of _0xe4075d['getMarkers']()){const _0x581640=_0x1f2ae5[_0x5a48('0x28')]();if(_0x19c24c[_0x5a48('0x138')](_0x581640)){_0x14f724?(_0x1832ea[_0x5a48('0xca')](_0x371f83,0x1),_0x371f83--):_0xe4075d[_0x5a48('0xb4')](_0x1f2ae5[_0x5a48('0x1c')]);break;}}}}if(0x0==_0x1832ea[_0x5a48('0x60')])return null;const _0x439e10=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatBlock',_0x5c26d2,'join');for(const _0x2f803e of this[_0x5a48('0x129')]())if(_0x2f803e[_0x5a48('0x9c')]['id']==_0x317099['id']&&_0x5a48('0xb')==_0x2f803e['type']&&_0x2f803e['data'][_0x5a48('0xff')]==_0x442d8e[_0x5a48('0xff')]&&_0x2f803e['subType']==_0x5c26d2&&Ot(_0x2f803e,_0x26cdbf)&&(_0x439e10(_0x2f803e[_0x5a48('0xc9')](),_0x1832ea)||_0x439e10(_0x1832ea,_0x2f803e[_0x5a48('0xc9')]()))){for(const _0x36457e of _0x1832ea)_0x2f803e[_0x5a48('0xed')](_0x36457e);return _0x2f803e;}const _0x53048f=_0x31bd95(),_0x471a35=_0x317099['id'],_0x3ac526=_0x5a48('0x64')+_0x5c26d2,_0x146fa6=this[_0x5a48('0x120')]({'id':_0x53048f,'type':_0x3ac526,'data':_0x442d8e,'createdAt':new Date(),'authorId':_0x471a35,'attributes':_0x26cdbf});for(const _0x178445 of _0x1832ea)this[_0x5a48('0x13a')](_0x3ac526,_0x53048f,_0x471a35,_0x178445,_0x37847a[_0x5a48('0x47')]());return _0x146fa6;}['markDeletion'](_0x58490a,_0x5799c6=null,_0x55db09={}){if(_0x58490a[_0x5a48('0x31')])return null;const _0x550d5b=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users')['me'],_0x5b6f3f=new _0x5e64e8(_0x58490a[_0x5a48('0xb7')],_0x58490a[_0x5a48('0x125')]);for(const {suggestion:_0x161976,meta:_0x443890}of this[_0x5a48('0x18')](_0x5b6f3f,_0x5a48('0x85')))if(_0x443890[_0x5a48('0xe8')]&&!_0x443890['isNextTo']){if(_0x161976['isMultiRange']){const _0x295c26=_0x161976[_0x5a48('0xc9')]()['filter'](_0xff8111=>_0x5a48('0x8d')!=_0xff8111['root']['rootName']);_0x295c26['every'](_0x2f224f=>_0x5b6f3f['containsRange'](_0x2f224f,!0x0))&&_0x161976[_0x5a48('0xa1')]();if(_0x295c26[_0x5a48('0x92')](_0x3a98a2=>_0x3a98a2[_0x5a48('0x2a')](_0x5b6f3f,!0x0))){const _0x7f7a82=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x5799c6,'accept');return this[_0x5a48('0x9a')](()=>_0x7f7a82([_0x5b6f3f],null,_0x55db09)),null;}}else{const _0x198da3=_0x5b6f3f[_0x5a48('0x67')](_0x161976[_0x5a48('0xf3')]());null!==_0x198da3&&_0x161976[_0x5a48('0xcb')]([_0x198da3],null,_0x55db09);}}if(_0x5b6f3f[_0x5a48('0x79')](),_0x5b6f3f[_0x5a48('0x31')]||_0x5a48('0x8d')==_0x5b6f3f[_0x5a48('0x61')][_0x5a48('0xe7')])return null;let _0x4eec85=null,_0x50d2f9=_0x5b6f3f[_0x5a48('0xb7')],_0x2eb16a=_0x5b6f3f[_0x5a48('0x125')];const _0x289223=this['_findSuggestions'](_0x5b6f3f,_0x5a48('0x3c'));for(const {suggestion:_0x1f9608,meta:_0xda7a4d}of _0x289223){const _0x44d1bc=this[_0x5a48('0x95')]['createRange'](_0x50d2f9,_0x2eb16a);if(_0xda7a4d['isOwn']&&(this['_mergeNestedSuggestions']||!_0xda7a4d[_0x5a48('0x11b')]&&!_0xda7a4d['isInsideObject'])){if(_0x1f9608[_0x5a48('0x41')]){if(!Ot(_0x1f9608,_0x55db09))continue;let _0x397270=!0x0;for(const _0x2b797a of _0x1f9608[_0x5a48('0xc9')]()){if(_0x2b797a['containsRange'](_0x44d1bc,!0x0))return _0x1f9608;_0x44d1bc[_0x5a48('0x2a')](_0x2b797a)||(_0x397270=!0x1);}_0x397270&&_0x1f9608[_0x5a48('0xa1')]();}else{const _0x52b3cb=_0x1f9608['getFirstRange']();if(_0x52b3cb[_0x5a48('0x2a')](_0x44d1bc,!0x0))return _0x1f9608;if(!Ot(_0x1f9608,_0x55db09)){_0x44d1bc[_0x5a48('0x2a')](_0x52b3cb)?_0x1f9608[_0x5a48('0x40')]():_0x52b3cb[_0x5a48('0xe9')](_0x50d2f9)?_0x50d2f9=_0x52b3cb[_0x5a48('0x125')]:_0x52b3cb[_0x5a48('0xe9')](_0x2eb16a)&&(_0x2eb16a=_0x52b3cb[_0x5a48('0xb7')]);continue;}_0x50d2f9=_0x50d2f9[_0x5a48('0xa6')](_0x52b3cb[_0x5a48('0xb7')])?_0x50d2f9:_0x52b3cb[_0x5a48('0xb7')],_0x2eb16a=_0x2eb16a[_0x5a48('0xd')](_0x52b3cb['end'])?_0x2eb16a:_0x52b3cb[_0x5a48('0x125')],_0x55db09=Object[_0x5a48('0xa8')]({},_0x1f9608[_0x5a48('0x133')]),_0x4eec85?_0x52b3cb[_0x5a48('0xb7')]['isBefore'](_0x4eec85['getFirstRange']()[_0x5a48('0xb7')])?(_0x4eec85[_0x5a48('0x40')](),_0x4eec85=_0x1f9608):_0x1f9608[_0x5a48('0x40')]():_0x4eec85=_0x1f9608;}}}if(_0x4eec85)return this[_0x5a48('0x3e')](_0x4eec85,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x50d2f9,_0x2eb16a)),_0x4eec85;{const _0x4cbcc9=_0x31bd95(),_0x157eef=this[_0x5a48('0x95')]['createRange'](_0x50d2f9,_0x2eb16a),_0x3c2e31=_0x550d5b['id'],_0x33cf82=_0x5799c6?_0x5a48('0x97')+_0x5799c6:_0x5a48('0x3c'),_0x500d90=this[_0x5a48('0x120')]({'id':_0x4cbcc9,'type':_0x33cf82,'createdAt':new Date(),'authorId':_0x3c2e31,'attributes':_0x55db09});return this[_0x5a48('0x13a')](_0x33cf82,_0x4cbcc9,_0x3c2e31,_0x157eef),_0x500d90;}}[_0x5a48('0x2c')](_0x5b98cf,_0x3d8e52=_0x5a48('0x98'),_0x312537={}){const _0x151a1e=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x3f2c0e=_0x5b98cf['map'](_0xb09e96=>new _0x5e64e8(_0xb09e96[_0x5a48('0xb7')],_0xb09e96[_0x5a48('0x125')])),_0x504106=new Set();for(const {suggestion:_0x565fae,meta:_0x3ecc9e}of this[_0x5a48('0x18')](_0x3f2c0e,'insertion'))_0x3ecc9e['isOwn']&&!_0x3ecc9e[_0x5a48('0x139')]&&_0x504106['add'](_0x565fae);for(const _0x452114 of _0x504106)if(_0x452114[_0x5a48('0x41')]){const _0x421436=_0x452114['getRanges']();(!_0x452114[_0x5a48('0x133')]||!_0x452114[_0x5a48('0x133')][_0x5a48('0x110')])&&(_0x421436[_0x5a48('0xfc')](_0x380878=>_0x3f2c0e[_0x5a48('0x92')](_0x51eb65=>_0x51eb65[_0x5a48('0x2a')](_0x380878,!0x0)))&&_0x452114['discard']());if(_0x3f2c0e[_0x5a48('0xfc')](_0xc3aa95=>_0x421436[_0x5a48('0x92')](_0x32b1fb=>_0x32b1fb[_0x5a48('0x2a')](_0xc3aa95,!0x0)))){const _0xcef951=this[_0x5a48('0xd5')]['getSuggestionCallback']('deletion',_0x3d8e52,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0xcef951(_0x5b98cf,null,_0x312537)),null;}}else{const _0x53902b=_0x452114[_0x5a48('0xf3')]();_0x3f2c0e[_0x5a48('0x92')](_0x5a3445=>_0x5a3445['containsRange'](_0x53902b,!0x0))&&_0x452114[_0x5a48('0xa1')]();if(_0x3f2c0e['every'](_0x2d7080=>_0x53902b[_0x5a48('0x2a')](_0x2d7080,!0x0))){const _0x1c33d1=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x3d8e52,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x1c33d1(_0x3f2c0e,null,_0x312537)),null;}}const _0x4cb373=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x3d8e52,_0x5a48('0x36'));let _0x55fd10=null;for(const _0x47d59b of this['getSuggestions']())if(_0x47d59b[_0x5a48('0x9c')]['id']==_0x151a1e['id']&&_0x47d59b[_0x5a48('0x74')]&&'deletion'==_0x47d59b[_0x5a48('0x4d')]&&_0x47d59b[_0x5a48('0xb6')]==_0x3d8e52&&Ot(_0x47d59b,_0x312537)&&(_0x4cb373(_0x47d59b[_0x5a48('0xc9')](),_0x3f2c0e)||_0x4cb373(_0x3f2c0e,_0x47d59b[_0x5a48('0xc9')]()))){if(_0x55fd10){if(_0x47d59b[_0x5a48('0x48')]&&_0x47d59b[_0x5a48('0x48')]['length'])continue;for(const _0x1a21cb of _0x47d59b[_0x5a48('0xc9')]())_0x55fd10['isIntersectingWithRange'](_0x1a21cb)||_0x55fd10[_0x5a48('0xed')](_0x1a21cb);_0x47d59b[_0x5a48('0x40')]();}else{_0x55fd10=_0x47d59b;for(const _0x3e49dd of _0x3f2c0e)_0x47d59b[_0x5a48('0xc1')](_0x3e49dd)||_0x47d59b[_0x5a48('0xed')](_0x3e49dd);}}if(_0x55fd10)return _0x55fd10;_0x504106[_0x5a48('0xbc')]();for(const {suggestion:_0x2faf8f,meta:_0x203d87}of this[_0x5a48('0x18')](_0x3f2c0e,_0x5a48('0x3c')))_0x203d87['isOwn']&&(this[_0x5a48('0x8b')]||!_0x203d87[_0x5a48('0x11b')]&&!_0x203d87[_0x5a48('0x8e')])&&Ot(_0x2faf8f,_0x312537)&&_0x504106['add'](_0x2faf8f);for(const _0x12e6b1 of _0x504106){const _0xc73c89=_0x12e6b1[_0x5a48('0xc9')]();if(!_0x312537||!_0x312537[_0x5a48('0x110')]){if(_0x3f2c0e[_0x5a48('0xfc')](_0xde35f5=>_0xc73c89[_0x5a48('0x92')](_0x3cc209=>_0x3cc209['containsRange'](_0xde35f5,!0x0))))return _0x12e6b1;}(!_0x12e6b1[_0x5a48('0x133')]||!_0x12e6b1[_0x5a48('0x133')]['skipNestingCheck'])&&(_0xc73c89[_0x5a48('0xfc')](_0x109918=>_0x3f2c0e[_0x5a48('0x92')](_0x90450d=>_0x90450d[_0x5a48('0x2a')](_0x109918,!0x0)))&&_0x12e6b1[_0x5a48('0xa1')]());}const _0x114155=_0x31bd95(),_0x1673fe=_0x151a1e['id'],_0xd037e6=_0x5a48('0x97')+_0x3d8e52,_0x53adfd=this[_0x5a48('0x120')]({'id':_0x114155,'type':_0xd037e6,'createdAt':new Date(),'authorId':_0x1673fe,'attributes':_0x312537});for(const _0x28d230 of _0x3f2c0e)_0x28d230['detach'](),_0x28d230[_0x5a48('0x31')]||_0x5a48('0x8d')==_0x28d230[_0x5a48('0x61')][_0x5a48('0xe7')]||this[_0x5a48('0x13a')](_0xd037e6,_0x114155,_0x1673fe,_0x28d230,_0x37847a[_0x5a48('0x47')]());return _0x53adfd;}[_0x5a48('0x3e')](_0x1aa8eb,_0x5474c7){const _0x11b441=_0x1aa8eb[_0x5a48('0xb0')]();this[_0x5a48('0x95')][_0x5a48('0x1e')](_0x4da1fa=>{_0x4da1fa[_0x5a48('0x33')](_0x11b441,{'range':_0x5474c7});});}[_0x5a48('0x25')](_0x58162d){const _0x52c7a6=_0x58162d['id'],_0x3f9aa8=this['editor']['config'][_0x5a48('0x6c')](_0x5a48('0x9d'));this[_0x5a48('0xaa')][_0x5a48('0x94')](_0x52c7a6)||this[_0x5a48('0xaa')][_0x5a48('0x9b')]({'channelId':_0x3f9aa8,'threadId':_0x52c7a6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d5633=this[_0x5a48('0xaa')][_0x5a48('0x43')](_0x52c7a6);_0x1d5633[_0x5a48('0xb3')]('isRemovable'),_0x1d5633[_0x5a48('0x63')]=!0x1,_0x58162d[_0x5a48('0x48')]=_0x1d5633;}[_0x5a48('0xc8')](_0x10d763,_0x14d8f0,_0x4ed7fd,_0x55f45f){if(_0x10d763[_0x5a48('0x4d')]!=_0x14d8f0||_0x10d763[_0x5a48('0xb6')]!=_0x4ed7fd||_0x10d763['creator']['id']!=_0x55f45f)throw this[_0x5a48('0x16')][_0x5a48('0xe5')](_0x5a48('0x58')),new _0x5c539a(_0x5a48('0x58'),this);}[_0x5a48('0x51')](_0x167753,_0xe2f077){const _0x5a5556=_0x167753[_0x5a48('0xf3')]();if(_0xe2f077[_0x5a48('0x138')](_0x5a5556))_0x167753['removeMarkers']();else{if(_0x5a5556[_0x5a48('0x2a')](_0xe2f077)){const _0x3aef97=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0xb7')][_0x5a48('0xc3')],'end');this[_0x5a48('0x3e')](_0x167753,this['_model'][_0x5a48('0x114')](_0x5a5556[_0x5a48('0xb7')],_0x3aef97));const _0x464a09=_0x31bd95(),_0x4b819c=_0x167753[_0x5a48('0x2d')]['id'],_0x2a35d8=_0x167753[_0x5a48('0x4d')]+':'+_0x167753[_0x5a48('0xb6')];this[_0x5a48('0x120')]({'id':_0x464a09,'type':_0x2a35d8,'createdAt':new Date(),'authorId':_0x4b819c,'data':_0x167753[_0x5a48('0xfb')],'attributes':_0x167753['attributes']});const _0x78e34e=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077['end'][_0x5a48('0xad')],_0x5a48('0xe')),_0x1bd46c=this[_0x5a48('0x95')]['createRange'](_0x78e34e,_0x5a5556[_0x5a48('0x125')]);this['_addSuggestionMarker'](_0x2a35d8,_0x464a09,_0x4b819c,_0x1bd46c);}else{if(_0x5a5556['containsPosition'](_0xe2f077[_0x5a48('0xb7')])){const _0x2e2e8f=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0xb7')][_0x5a48('0xc3')],_0x5a48('0x125'));this[_0x5a48('0x3e')](_0x167753,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x5a5556[_0x5a48('0xb7')],_0x2e2e8f));}else{const _0x2be70d=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0x125')][_0x5a48('0xad')],_0x5a48('0xe'));this['_setSuggestionRange'](_0x167753,this[_0x5a48('0x95')]['createRange'](_0x2be70d,_0x5a5556['end']));}}}}[_0x5a48('0x50')](_0x26b3b9){for(const {suggestion:_0xa9f3ff,meta:_0x20d7f9}of this[_0x5a48('0x18')](_0x26b3b9,_0x5a48('0x85'))){if(!_0x20d7f9['isOwn'])continue;const _0x31c004=_0xa9f3ff[_0x5a48('0xc9')]();for(const _0xbda023 of _0x31c004)if(!_0x26b3b9['getDifference'](_0xbda023)['length'])return!0x0;}return!0x1;}[_0x5a48('0x52')](_0x6d6148){const _0x38ee37=this[_0x5a48('0x16')]['plugins'][_0x5a48('0x6c')](_0x5a48('0x9'))[_0x5a48('0xee')](_0x6d6148);if(!_0x38ee37)throw new _0x5c539a(_0x5a48('0x68'),this);return _0x38ee37;}[_0x5a48('0x10f')](_0x3dad67){const _0xf32741=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users'),_0x197dad=_0x295668(_0x5a48('0x56')+_0x3dad67),_0xc372ab=_0xf32741[_0x5a48('0xee')](_0x197dad);return _0xc372ab||_0xf32741[_0x5a48('0xf1')]({'id':_0x197dad,'name':_0x3dad67});}[_0x5a48('0xc4')](_0x29fcc3,_0x1e9984,_0x172c33,_0xf5ebc6,_0x5a5bf3){const _0x394d84=this['_getAuthorFromId'](_0xf5ebc6),_0x4340be=this[_0x5a48('0xd5')][_0x5a48('0xe0')](_0x29fcc3,_0x1e9984,_0x172c33,_0x394d84,_0x5a5bf3,_0x4858c7=>this['_updateSuggestionData'](_0x172c33,{'attributes':_0x4858c7}));return this['listenTo'](_0x4340be,'accept',()=>{this[_0x5a48('0x19')](_0x172c33,{'state':_0x5a48('0xdf')});},{'priority':_0x5a48('0xbb')}),this[_0x5a48('0x102')](_0x4340be,_0x5a48('0xa1'),()=>{this[_0x5a48('0x19')](_0x172c33,{'state':_0x5a48('0x126')});},{'priority':_0x5a48('0xbb')}),this['_suggestions']['set'](_0x172c33,_0x4340be),this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x4340be,_0x5a48('0x107')),_0x4340be;}[_0x5a48('0x10a')](_0x2141cd){const _0x3c777c=_0x2141cd['split'](':');return{'group':_0x3c777c[0x0],'type':_0x3c777c[0x1],'subType':_0x3c777c[_0x5a48('0x60')]>=0x5?_0x3c777c[0x2]:null,'id':_0x3c777c[_0x5a48('0x60')]<0x5?_0x3c777c[0x2]:_0x3c777c[0x3],'authorId':_0x3c777c[_0x5a48('0x60')]<0x5?_0x3c777c[0x3]:_0x3c777c[0x4],'markerCount':0x6==_0x3c777c[_0x5a48('0x60')]?_0x3c777c[0x5]:null};}[_0x5a48('0xd0')](_0x4d5636,_0x5bb1b2,_0x480911){const _0x2977f5=_0x4d5636[_0x5a48('0xf3')](),_0x1ab70f=_0x2977f5[_0x5a48('0xb7')],_0x55f4e0=_0x2977f5[_0x5a48('0x125')];this['_setSuggestionRange'](_0x4d5636,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x1ab70f,_0x5bb1b2));const _0x34f80b=_0x31bd95(),_0xf917e6=_0x4d5636['creator']['id'],_0x462cd0=_0x4d5636[_0x5a48('0x4d')]+(_0x4d5636[_0x5a48('0xb6')]?':'+_0x4d5636[_0x5a48('0xb6')]:'');this[_0x5a48('0x120')]({'id':_0x34f80b,'type':_0x462cd0,'createdAt':new Date(),'authorId':_0xf917e6,'originalSuggestionId':_0x4d5636['id'],'attributes':_0x4d5636[_0x5a48('0x133')],'data':_0x4d5636[_0x5a48('0xfb')]}),_0x5a48('0xb')==_0x4d5636['type']&&(_0x480911=this[_0x5a48('0x95')][_0x5a48('0x13')](_0x480911['parent'])),this[_0x5a48('0x13a')](_0x462cd0,_0x34f80b,_0xf917e6,this['_model']['createRange'](_0x480911,_0x55f4e0));}[_0x5a48('0x18')](_0x18069d,_0x1f388d=null){const _0x2cff4c=[],_0x453696=this['editor']['plugins'][_0x5a48('0x6c')](_0x5a48('0x9'))['me'];Array['isArray'](_0x18069d)||(_0x18069d=[_0x18069d]);for(const _0x149b83 of this[_0x5a48('0x129')]()){if(!_0x149b83[_0x5a48('0x74')])continue;if(_0x1f388d&&_0x149b83[_0x5a48('0x4d')]!=_0x1f388d)continue;let _0x56d467=!0x1;for(const _0x365627 of _0x149b83['getRanges']()){for(const _0x54f622 of _0x18069d){const _0x1fbdea=_0x54f622[_0x5a48('0xb7')]['isEqual'](_0x365627['end'])||_0x54f622[_0x5a48('0x125')][_0x5a48('0x138')](_0x365627[_0x5a48('0xb7')]);if(_0x1fbdea||_0x54f622[_0x5a48('0x67')](_0x365627)){const _0x4378a9=_0x54f622[_0x5a48('0x2a')](_0x365627)&&_t(this[_0x5a48('0x95')]['schema'],_0x365627['start'],_0x54f622),_0x30927b=_0x365627[_0x5a48('0x2a')](_0x54f622)&&_t(this['_model'][_0x5a48('0xbe')],_0x54f622[_0x5a48('0xb7')],_0x365627);_0x2cff4c[_0x5a48('0x119')]({'suggestion':_0x149b83,'meta':{'isOwn':_0x453696==_0x149b83[_0x5a48('0x9c')],'isNextTo':_0x1fbdea,'isInsideObject':_0x4378a9,'containsRangeInObject':_0x30927b}}),_0x56d467=!0x0;break;}}if(_0x56d467)break;}}return _0x2cff4c;}[_0x5a48('0x13a')](_0x537a1e,_0x4c2bd9,_0x454a77,_0x36d080,_0x550891){this['_model'][_0x5a48('0x1e')](_0x3c8bd6=>{let _0x54b3fe='suggestion:'+_0x537a1e+':'+_0x4c2bd9+':'+_0x454a77;_0x550891&&(_0x54b3fe=_0x54b3fe+':'+_0x550891),_0x3c8bd6[_0x5a48('0x12e')](_0x54b3fe,{'range':_0x36d080,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a48('0x70')](_0x5596df){const _0x52b638=_0x5596df[_0x5a48('0x3b')],_0x45eece=_0x5596df['next'];_0x5596df[_0x5a48('0x3b')]=null,null!=_0x52b638&&(_0x52b638[_0x5a48('0x23')]=null),_0x5596df[_0x5a48('0x23')]=null,null!=_0x45eece&&(_0x45eece[_0x5a48('0x3b')]=null),_0x5a48('0x6b')==this['_suggestionState'][_0x5a48('0x6c')](_0x5596df)&&(this['_suggestionState'][_0x5a48('0x54')](_0x5596df,_0x5a48('0xd2')),this[_0x5a48('0xd7')](_0x5a48('0xc2'),_0x5596df,_0x52b638,_0x45eece));}[_0x5a48('0x120')](_0x44adf9){const _0x4ecef9=_0x44adf9['id'],_0x3ebc37=this[_0x5a48('0x69')](_0x44adf9);if(this[_0x5a48('0x53')]&&this['_adapter'][_0x5a48('0xfe')]){const _0x1095f0=this[_0x5a48('0x16')][_0x5a48('0x4a')]['get']('PendingActions'),_0xf95c9a=_0x3ebc37[_0x5a48('0x109')],_0x43a007=_0x3ebc37[_0x5a48('0xb6')]?_0x3ebc37[_0x5a48('0x4d')]+':'+_0x3ebc37[_0x5a48('0xb6')]:_0x3ebc37[_0x5a48('0x4d')],_0x430497=this['editor']['locale'],_0x632ba6=_0x1095f0[_0x5a48('0xde')](_0x7186cc(_0x430497,_0x5a48('0x5f'))),_0x4cd66e={'id':_0x4ecef9,'type':_0x43a007,'hasComments':_0xf95c9a,'data':_0x44adf9[_0x5a48('0xfb')]||null,'originalSuggestionId':_0x44adf9[_0x5a48('0x136')]||null,'attributes':_0x3ebc37[_0x5a48('0x133')]};this[_0x5a48('0x53')][_0x5a48('0xfe')](_0x4cd66e)[_0x5a48('0xd6')](_0xb544a0=>{_0x3ebc37['_saved']=!0x0,_0x1095f0['remove'](_0x632ba6),_0xb544a0&&_0xb544a0[_0x5a48('0xce')]&&(this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x4ecef9)[_0x5a48('0xce')]=_0xb544a0[_0x5a48('0xce')]);})[_0x5a48('0x11f')](_0x56728c=>{throw _0x11dcbb(_0x5a48('0xea')),this['editor'][_0x5a48('0x90')][_0x5a48('0x4c')]({'isUndoable':!0x1},()=>{_0x3ebc37[_0x5a48('0xa1')]();}),_0x3ebc37['stopListening'](),this['_suggestions'][_0x5a48('0xb1')](_0x3ebc37['id']),this['_suggestionState'][_0x5a48('0xb1')](_0x3ebc37),_0x56728c;});}return _0x3ebc37;}['_updateSuggestionData'](_0x11a604,_0x519de6){const _0x44085c=this[_0x5a48('0x16')][_0x5a48('0x4a')]['get'](_0x5a48('0xf5')),_0x31d818=this[_0x5a48('0xc5')](_0x11a604);if(this['_adapter']&&this[_0x5a48('0x53')][_0x5a48('0x83')]){if(_0x31d818[_0x5a48('0x2e')]){const _0x1fbe6f=_0x44085c[_0x5a48('0xde')](_0x7186cc(this['editor'][_0x5a48('0xf')],_0x5a48('0x5f')));this[_0x5a48('0x53')][_0x5a48('0x83')](_0x11a604,_0x519de6)[_0x5a48('0xd6')](()=>{_0x44085c['remove'](_0x1fbe6f);});}else _0x31d818['on']('change:_saved',()=>{this[_0x5a48('0x19')](_0x11a604,_0x519de6);});}}[_0x5a48('0x124')](_0x26b712){if(!this['_adapter']||!this[_0x5a48('0x53')][_0x5a48('0xc5')])throw new _0x5c539a('track-changes-adapter-missing-getsuggestion',this);return this[_0x5a48('0x53')][_0x5a48('0xc5')](_0x26b712);}[_0x5a48('0x27')](_0x324a26){const {id:_0x367105,type:_0x9a8a07,subType:_0x226076,authorId:_0x3cc78c}=this[_0x5a48('0x10a')](_0x324a26),_0x316ccd=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x367105)||this[_0x5a48('0xc4')](_0x9a8a07,_0x226076,_0x367105,_0x3cc78c,{});switch(this[_0x5a48('0xc8')](_0x316ccd,_0x9a8a07,_0x226076,_0x3cc78c),this[_0x5a48('0x11d')]['get'](_0x316ccd)){case _0x5a48('0x107'):this[_0x5a48('0x124')](_0x367105)[_0x5a48('0xd6')](_0x43059a=>{let _0x11f4e5=Promise[_0x5a48('0xc0')]();_0x43059a[_0x5a48('0x109')]&&(_0x11f4e5=this[_0x5a48('0xaa')]['fetchCommentThread']({'channelId':this[_0x5a48('0x16')][_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0x9d')),'threadId':_0x367105})),_0x11f4e5[_0x5a48('0xd6')](()=>{this[_0x5a48('0x69')](_0x43059a)[_0x5a48('0x2e')]=!0x0;});}),this['_suggestionState'][_0x5a48('0x54')](_0x316ccd,_0x5a48('0x7c'));break;case'removed':this['_updateSuggestionData'](_0x367105,{'state':_0x5a48('0x8')});case _0x5a48('0x65'):this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x316ccd,_0x5a48('0x6b')),this['fire']('suggestionLoaded',_0x316ccd);break;case _0x5a48('0x6b'):this[_0x5a48('0xd7')](_0x5a48('0x37'),_0x316ccd);}return _0x316ccd[_0x5a48('0x17')](_0x324a26),_0x316ccd;}[_0x5a48('0x2f')](_0x28d00f){const _0x4ccfce=Array[_0x5a48('0x57')](_0x28d00f)[_0x5a48('0xe2')](_0x456fa8=>!_0x456fa8[_0x5a48('0x41')]),_0x334e65=this[_0x5a48('0x129')]({'skipNotAttached':!0x0})[_0x5a48('0xe2')](_0x2838d4=>!_0x2838d4['isMultiRange']),_0x25ccba=_0x334e65[_0x5a48('0xe2')](_0x5149d2=>!_0x28d00f[_0x5a48('0x6a')](_0x5149d2)),_0x30dc07=new Map(_0x334e65['map'](_0x5979d6=>[_0x5979d6,this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5979d6[_0x5a48('0x4d')],_0x5979d6[_0x5a48('0xb6')],_0x5a48('0xac'))])),_0x225c05=new Map(_0x334e65[_0x5a48('0x13b')](_0x246e0b=>[_0x246e0b,_0x246e0b[_0x5a48('0xf3')]()])),_0x499759=new Set(),_0x9dab2a=new Set();for(let _0x1caee4=0x0;_0x1caee4<_0x4ccfce['length'];_0x1caee4++)_0x473d8f(_0x4ccfce[_0x1caee4],_0x4ccfce,_0x1caee4+0x1);for(let _0x45b441=0x0;_0x45b441<_0x4ccfce[_0x5a48('0x60')];_0x45b441++)_0x473d8f(_0x4ccfce[_0x45b441],_0x25ccba,0x0);for(let _0x3ebe26=0x0;_0x3ebe26<_0x4ccfce[_0x5a48('0x60')];_0x3ebe26++){const _0x50a2b3=_0x4ccfce[_0x3ebe26];!_0x9dab2a[_0x5a48('0x6a')](_0x50a2b3)&&_0x50a2b3[_0x5a48('0x3b')]&&(_0x50a2b3['previous']['next']===_0x50a2b3&&(_0x50a2b3['previous'][_0x5a48('0x23')]=null),_0x50a2b3[_0x5a48('0x3b')]=null),!_0x499759[_0x5a48('0x6a')](_0x50a2b3)&&_0x50a2b3[_0x5a48('0x23')]&&(_0x50a2b3[_0x5a48('0x23')][_0x5a48('0x3b')]===_0x50a2b3&&(_0x50a2b3[_0x5a48('0x23')][_0x5a48('0x3b')]=null),_0x50a2b3[_0x5a48('0x23')]=null);}function _0x473d8f(_0x78153,_0x1041ff,_0x597d64){for(let _0x1a870c=_0x597d64;_0x1a870c<_0x1041ff[_0x5a48('0x60')];_0x1a870c++){const _0x49a14b=_0x2085d1(_0x78153,_0x1041ff[_0x1a870c]);_0x49a14b&&(_0x49a14b[0x0][_0x5a48('0x23')]=_0x49a14b[0x1],_0x49a14b[0x1][_0x5a48('0x3b')]=_0x49a14b[0x0],_0x499759[_0x5a48('0xde')](_0x49a14b[0x0]),_0x9dab2a['add'](_0x49a14b[0x1]));}}function _0x2085d1(_0x164a25,_0x549331){if(_0x164a25['author']['id']!==_0x549331['author']['id'])return null;const _0x36f740=_0x30dc07[_0x5a48('0x6c')](_0x164a25)(_0x164a25,_0x549331,_0x225c05[_0x5a48('0x6c')](_0x164a25),_0x225c05['get'](_0x549331));if(!_0x36f740)return null;return _0x30dc07[_0x5a48('0x6c')](_0x549331)(_0x164a25,_0x549331,_0x225c05['get'](_0x164a25),_0x225c05['get'](_0x549331))?_0x36f740[0x1]['commentThread']&&_0x36f740[0x1][_0x5a48('0x48')][_0x5a48('0x60')]?null:_0x36f740:null;}}[_0x5a48('0x78')](_0x353a81){const _0x1416c0=Array[_0x5a48('0x57')](_0x353a81),_0x5ee5f3=this[_0x5a48('0x129')]({'skipNotAttached':!0x0}),_0x1d6d28=_0x5ee5f3[_0x5a48('0xe2')](_0x1e3de4=>!_0x353a81[_0x5a48('0x6a')](_0x1e3de4)),_0x14f5e5=new Map(_0x1416c0[_0x5a48('0x13b')](_0x2388aa=>[_0x2388aa,this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x2388aa[_0x5a48('0x4d')],_0x2388aa[_0x5a48('0xb6')],_0x5a48('0x36'))])),_0xc5fe50=new Map(_0x5ee5f3[_0x5a48('0x13b')](_0x5d6303=>[_0x5d6303,_0x5d6303[_0x5a48('0xc9')]()]));for(let _0x73ed90=0x0;_0x73ed90<_0x1416c0[_0x5a48('0x60')];_0x73ed90++){if(_0x38c3db(this,_0x1416c0[_0x73ed90],_0x1416c0,_0x73ed90+0x1))return!0x0;}for(let _0x4fa56f=0x0;_0x4fa56f<_0x1416c0[_0x5a48('0x60')];_0x4fa56f++){if(_0x38c3db(this,_0x1416c0[_0x4fa56f],_0x1d6d28,0x0))return!0x0;}return!0x1;function _0x38c3db(_0x2e7f44,_0xebde32,_0x361d41,_0x7bcae7){for(let _0x2035ce=_0x7bcae7;_0x2035ce<_0x361d41[_0x5a48('0x60')];_0x2035ce++){const _0x307533=_0x361d41[_0x2035ce];if(_0x307533[_0x5a48('0x4d')]!==_0xebde32[_0x5a48('0x4d')]||_0x307533[_0x5a48('0x9c')]['id']!==_0xebde32[_0x5a48('0x9c')]['id']||_0x307533[_0x5a48('0xb6')]!==_0xebde32[_0x5a48('0xb6')])continue;if(!Ut(_0xebde32,_0x307533))continue;const _0x3ecebf=_0x14f5e5[_0x5a48('0x6c')](_0xebde32),_0x2c1ceb=_0xc5fe50['get'](_0xebde32),_0x2118f7=_0xc5fe50[_0x5a48('0x6c')](_0x307533),_0x29aaeb=_0xebde32[_0x5a48('0x48')]&&_0xebde32['commentThread'][_0x5a48('0x60')],_0x1921de=_0x307533[_0x5a48('0x48')]&&_0x307533[_0x5a48('0x48')]['length'];if(!_0x29aaeb&&_0x3ecebf(_0x2118f7,_0x2c1ceb))return _0x2e7f44[_0x5a48('0x6e')](_0x307533,_0xebde32),_0xc5fe50[_0x5a48('0xb1')](_0xebde32),!0x0;if(!_0x1921de&&_0x3ecebf(_0x2c1ceb,_0x2118f7))return _0x2e7f44[_0x5a48('0x6e')](_0xebde32,_0x307533),_0xc5fe50['delete'](_0x307533),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d110e,_0x58e803){if(_0x5d110e[_0x5a48('0x41')])for(const _0x9774c2 of _0x58e803[_0x5a48('0xc9')]())_0x5d110e[_0x5a48('0xed')](_0x9774c2);else{const _0x40830f=_0x58e803[_0x5a48('0xf3')]()['end'];this[_0x5a48('0x3e')](_0x5d110e,this[_0x5a48('0x95')]['createRange'](_0x5d110e[_0x5a48('0xf3')]()[_0x5a48('0xb7')],_0x40830f));}_0x58e803[_0x5a48('0x40')]();}}class Bt{constructor(_0x1b093f){this['_editor']=_0x1b093f,this[_0x5a48('0x95')]=_0x1b093f['model'],this['_customCallbacks']=new Map(),this[_0x5a48('0xda')]=new Map(),this[_0x5a48('0xa3')]();}[_0x5a48('0xe0')](_0x4c92d3,_0x27a5d4,_0xacab48,_0x2f0391,_0x1683e4,_0x559936){return new _0x37847a(this[_0x5a48('0x95')],{'type':_0x4c92d3,'subType':_0x27a5d4,'id':_0xacab48,'author':_0x2f0391,'creator':_0x2f0391,'attributes':_0x1683e4,'onAttributesChange':_0x559936,'onAccept':(..._0x4b472a)=>this[_0x5a48('0xf2')](_0x4c92d3,_0x27a5d4,_0x5a48('0x62'))(..._0x4b472a),'onDiscard':(..._0x1827ef)=>this[_0x5a48('0xf2')](_0x4c92d3,_0x27a5d4,_0x5a48('0xa1'))(..._0x1827ef)});}['registerCustomCallback'](_0x2745a3,_0x3fed4b,_0x5c37ff,_0x4beedd){const _0x51c2b5=_0x2745a3+':'+_0x3fed4b+':'+_0x5c37ff;this[_0x5a48('0x10b')][_0x5a48('0x54')](_0x51c2b5,_0x4beedd);}[_0x5a48('0xf2')](_0x396877,_0x266b21,_0x41a1b5){const _0x20a576=_0x396877+':'+_0x266b21+':'+_0x41a1b5;return this[_0x5a48('0x10b')][_0x5a48('0x6c')](_0x20a576)||this[_0x5a48('0xda')][_0x5a48('0x6c')](_0x396877+':'+_0x41a1b5);}['_registerDefaultCallbacks'](){const _0x2950ef=()=>!0x1,_0x56a4ea=_0xc57481=>{_0xc57481[_0x5a48('0xae')]((_0x13240e,_0x39ddf0)=>_0x13240e[_0x5a48('0xb7')][_0x5a48('0xa6')](_0x39ddf0[_0x5a48('0xb7')])?0x1:-0x1),this[_0x5a48('0x95')][_0x5a48('0x1e')](_0x37ec9d=>{for(const _0x3b9d74 of _0xc57481){let _0x51957a;_0x51957a=_0x3b9d74[_0x5a48('0x125')]['isAtEnd']&&_0x3b9d74[_0x5a48('0x125')][_0x5a48('0xad')]==_0x3b9d74[_0x5a48('0xb7')][_0x5a48('0x6')]?_0x37ec9d[_0x5a48('0x46')](_0x3b9d74[_0x5a48('0xb7')][_0x5a48('0x6')],'on'):_0x37ec9d[_0x5a48('0x46')](_0x3b9d74),this[_0x5a48('0x95')]['deleteContent'](_0x51957a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5f22d6=(_0x49ab9c,_0x458ef0)=>{this['_model'][_0x5a48('0x1e')](_0x1b81d5=>{const {commandName:_0x2c8f77,commandParams:_0x4cc329=[]}=_0x458ef0,_0x4b652d=_0x49ab9c[_0x5a48('0x13b')](_0x1f9a87=>(Mt(_0x1f9a87)&&(_0x1f9a87=this[_0x5a48('0x95')]['createRange'](_0x1f9a87['end'])),_0x1f9a87))[_0x5a48('0xe2')](_0x11caf6=>_0x5a48('0x8d')!==_0x11caf6[_0x5a48('0x61')][_0x5a48('0xe7')]);if(_0x4b652d['length']<0x1)return;const _0x508f68=Array[_0x5a48('0x57')](this[_0x5a48('0x95')][_0x5a48('0x45')][_0x5a48('0x0')]['getRanges']())[_0x5a48('0x13b')](_0x16d1eb=>_0x5e64e8[_0x5a48('0x11c')](_0x16d1eb));_0x1b81d5[_0x5a48('0xa5')](_0x4b652d);for(const _0x52ab96 of this[_0x5a48('0x6f')][_0x5a48('0xb8')]['commands']())_0x52ab96['refresh']();_0x4cc329[_0x5a48('0x119')]({'forceDefaultExecution':!0x0}),this[_0x5a48('0x6f')][_0x5a48('0x7a')](_0x2c8f77,..._0x4cc329);const _0x2fc65e=_0x508f68[_0x5a48('0xe2')](_0xc51c2a=>_0x5a48('0x8d')!=_0xc51c2a[_0x5a48('0x61')]['rootName']);_0x2fc65e[_0x5a48('0x60')]>0x0&&_0x1b81d5[_0x5a48('0xa5')](_0x2fc65e);for(const _0x4007ec of _0x508f68)_0x4007ec['detach']();});},_0x2310fd=(_0xaab4fc,_0x162027)=>0x1==_0xaab4fc['length']&&0x1==_0x162027[_0x5a48('0x60')]&&_0xaab4fc[0x0][_0x5a48('0x125')]['isEqual'](_0x162027[0x0][_0x5a48('0xb7')]),_0x458f4d=(_0x16de6a,_0x43ba56,_0x32cf25,_0xfa8cd1)=>xt(_0x16de6a,_0x43ba56,_0x32cf25,_0xfa8cd1,this[_0x5a48('0x95')])?[_0x16de6a,_0x43ba56]:xt(_0x43ba56,_0x16de6a,_0xfa8cd1,_0x32cf25,this[_0x5a48('0x95')])?[_0x43ba56,_0x16de6a]:null;this[_0x5a48('0xda')]['set'](_0x5a48('0x121'),_0x2950ef),this[_0x5a48('0xda')]['set']('insertion:discard',_0x56a4ea),this[_0x5a48('0xda')]['set']('insertion:join',_0x2310fd),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0xcf'),_0x458f4d),this[_0x5a48('0xda')]['set']('deletion:accept',_0x56a4ea),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0xf7'),_0x2950ef),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x91'),_0x2310fd),this[_0x5a48('0xda')][_0x5a48('0x54')](_0x5a48('0xd3'),_0x458f4d),this[_0x5a48('0xda')]['set'](_0x5a48('0x75'),_0x5f22d6),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatInline:discard',_0x2950ef),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x80'),_0x2310fd),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x1d'),_0x2950ef),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatBlock:accept',_0x5f22d6),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x21'),_0x2950ef),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatBlock:join',_0x2310fd),this[_0x5a48('0xda')][_0x5a48('0x54')](_0x5a48('0xb2'),_0x2950ef);}}function _t(_0x48ba1f,_0x4be0c7,_0xd68c51){for(const _0x588a77 of _0x4be0c7[_0x5a48('0xad')][_0x5a48('0x86')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x588a77[_0x5a48('0x61')]==_0x588a77)return!0x1;if(!_0xd68c51['containsItem'](_0x588a77))return!0x1;if(_0x48ba1f[_0x5a48('0x3')](_0x588a77)||_0x48ba1f[_0x5a48('0x12a')](_0x588a77))return!0x0;}return!0x1;}function Mt(_0x4df4c4){return _0x4df4c4[_0x5a48('0x125')][_0x5a48('0xad')]==_0x4df4c4[_0x5a48('0xb7')][_0x5a48('0x6')]&&_0x4df4c4[_0x5a48('0x125')]['isAtStart'];}function $t(_0x273e21,_0x3386a6,_0x3cc157,_0x24bb0c){const _0x5a35ad=_0x27163e=>!_0x27163e[_0x5a48('0x134')]['is'](_0x5a48('0x29'))&&!_0x24bb0c[_0x5a48('0x3')](_0x27163e[_0x5a48('0x134')]),_0x45b8bb=_0x273e21[_0x5a48('0xb7')][_0x5a48('0x77')](_0x5a35ad),_0x181c07=_0x273e21[_0x5a48('0x125')][_0x5a48('0x77')](_0x5a35ad,{'direction':_0x5a48('0x116')});return(!_0x273e21[_0x5a48('0xb7')][_0x5a48('0x138')](_0x45b8bb)||!_0x273e21[_0x5a48('0x125')]['isEqual'](_0x181c07))&&(_0x45b8bb[_0x5a48('0xa6')](_0x181c07)?_0x3cc157[_0x5a48('0x33')](_0x3386a6,{'range':_0x3cc157['createRange'](_0x45b8bb,_0x181c07)}):_0x3cc157[_0x5a48('0xb4')](_0x3386a6),!0x0);}function Nt(_0x2beb0e){return _0x295668(_0x2beb0e);}function Rt(_0xc113f3){const _0x4002d5=_0xc113f3[_0x5a48('0xb7')][_0x5a48('0x6')];return _0x4002d5&&_0x4002d5['is'](_0x5a48('0x82'));}function jt(_0x4bba7a,_0x9ac5b4){const _0xae1644=_0x9ac5b4[_0x5a48('0xbe')][_0x5a48('0x3')](_0x4bba7a)||_0x9ac5b4[_0x5a48('0xbe')][_0x5a48('0x30')](_0x4bba7a);return _0x9ac5b4[_0x5a48('0x114')](_0x9ac5b4[_0x5a48('0x2b')](_0x4bba7a,_0x5a48('0xec')),_0xae1644?_0x9ac5b4[_0x5a48('0x8c')](_0x4bba7a):_0x9ac5b4[_0x5a48('0x2b')](_0x4bba7a,'end'));}function xt(_0x331998,_0x5a983a,_0x18d671,_0xb1efb1,_0x226024){if(!Ut(_0x331998,_0x5a983a))return!0x1;if(_0x18d671[_0x5a48('0x125')][_0x5a48('0x138')](_0xb1efb1[_0x5a48('0xb7')]))return!0x0;if(_0x331998[_0x5a48('0x4d')]!=_0x5a983a[_0x5a48('0x4d')])return!0x1;if(!_0x18d671['end']['isTouching'](_0xb1efb1[_0x5a48('0xb7')]))return!0x1;const _0x72dafc=_0x226024[_0x5a48('0x114')](_0x18d671[_0x5a48('0x125')],_0xb1efb1['start'])['getWalker']();for(const _0xd8dfea of _0x72dafc)if([_0x5a48('0x113'),'elementEnd'][_0x5a48('0x117')](_0xd8dfea[_0x5a48('0x4d')])&&_0x226024['schema'][_0x5a48('0x12a')](_0xd8dfea[_0x5a48('0x134')]))return!0x1;return!0x0;}function Ut(_0x43ae75,_0x41e2d7){return!(!_0x43ae75[_0x5a48('0x3a')]||!_0x41e2d7[_0x5a48('0x3a')])&&_0x5c3132(_0x43ae75[_0x5a48('0x133')],_0x41e2d7[_0x5a48('0x133')]);}function Ot(_0x12e262,_0x39c61f){const _0x183d4e=Et(_0x12e262[_0x5a48('0x133')]),_0x22fe49=Et(_0x39c61f);if(!_0x12e262[_0x5a48('0x3a')])return!0x1;for(const _0x545c47 of Object[_0x5a48('0x39')](_0x22fe49))if(!_0x5c3132(_0x183d4e[_0x545c47],_0x22fe49[_0x545c47]))return!0x1;return!0x0;}function Et(_0x84ee76){const _0x1e9a31=Object[_0x5a48('0xa8')]({},_0x84ee76);return delete _0x1e9a31[_0x5a48('0x110')],delete _0x1e9a31['tablePasteChainId'],_0x1e9a31;}
|