@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240127.0 → 0.0.0-nightly-20240128.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-20240128.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"CHANGELOG.md"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"ckeditor5": "0.0.0-nightly-
|
|
44
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
43
|
+
"ckeditor5": "0.0.0-nightly-20240128.0",
|
|
44
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240128.0",
|
|
45
45
|
"lodash-es": "4.17.21"
|
|
46
46
|
},
|
|
47
47
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5adc=['position','mapper','end','_joinWithAdjacentSuggestions','containerElement','define','_cutOutSuggestionMarker','subType','formatInline:chain','deletion','_suggestionState','newRange','isRemovable','$textProxy','createSelection','accept','insertion:accept','enableCommand','isLocal','getAttribute','@external','formatBlock:discard','formatInline:discard','isAfter','_suggestions','_isRegisteredAttribute','discardSelectedSuggestions','isInContent','commentThread','discardAllSuggestions','some','fetchCommentThread','_getAuthorFromId','getWalker','_addSuggestionMarker','set','removeMarker','comments','$text','refresh','_getExternalAuthor','markDeletion','adapter','pop','containsItem','_setSuggestionRange','_reduceSuggestionAttributeRange','markMultiRangeDeletion','always','isBefore','model','getCustomProperty','for','split','delete','values','includes','previous','targetPosition','addRange','_suggestionFactory','_handleNewSuggestionMarker','map','high','error-saving-suggestion-data-suggestion-discarded','find','change','setSelection','Users','trackChanges.mergeNestedSuggestions','track-changes-adapter-missing-getsuggestion','addSuggestionData','LEAVE','remove','getSuggestions','removed','trackChangesCommand','_SUGGESTION_ANNOUNCEMENT','_setSuggestionData','CommentsRepository','markMultiRangeBlockFormat','_findSuggestions','join','attribute','removeMarker:suggestion:attribute','markBlockFormat','isCollapsed','isInsideObject','addUser','filter','resolve','_recordAttributeChanges','rename','substring','insertion:join','getShiftedBy','listenTo','addComment','markerName','trackChanges.trackFormatChanges','forEach','name','registerPostFixer','_breakSuggestionMarker','default','_element','oldValue','createPositionBefore','documentSelection','getIntersection','external:','unshift','getMarkers','length','attribute:join','toJSON','markerNameToElements','markInlineFormat','commands','getChanges','formatBlock:','fire','addMarker:suggestion:formatBlock','discardSuggestion','_enableDefaultAttributesIntegration','detach','markerReady','attribute:discard','concat','bindElementToMarker','_checkSuggestionCorrectness','has','_addThreadToSuggestion','every','type','editor','highest','createdAt','_saved','attributeKey','addMarkerName','isArray','_recordAttributeSuggestions','stop','_rangeIsInLocalUserInsertion','removeClass','isIntersectingWithRange','_updateSuggestionData','attributeOldValue','options','keys','sort','_registerDefaultCallbacks','group','acceptSelectedSuggestions','createRange','head','normal','removeMarker:suggestion:formatBlock','author','execute','_onDiscard','config','showSuggestionHighlights','oldRange','stopListening','suggestionUnloaded','getRange','ck-suggestion-marker-formatInline','format','differ','_processAttributeChanges','plugins','data','suggestionChanged','skipNestingCheck','marker-count','addSuggestion','addMarker','suggestionLoaded','getFirstMarker','setTo','track-changes-user-not-found','suggestion','ck-suggestion-marker','_refreshSuggestionsChain','startsWith','_trackFormatChanges','range','insertion:','trackChanges','formatInline','init','change:data','formatInline:','hasCommentThread','hasSuggestion','requires','setAttribute','backward','key','never','containsRangeInObject','catch','from','_enabledCommands','formatInline:join','multipleBlocks','ariaLiveAnnouncer','fromCharCode','getFirstRange','_isBlockAttribute','_joinSuggestions','removeAttribute','_removeSuggestion','authoredAt','insertContent','get','multi','meta','updateSuggestion','formatBlock','value','_isForcedDefaultExecutionBlock','_customCallbacks','elementEnd','assign','next','editingDowncast','isAtEnd','item','isOwn','containsRange','_inlineAttributeKeys','parent','_refreshAttributeSuggestionsChain','addMarker:suggestion:attribute','containsPosition','size','suggestion:','then','return','_createSuggestion','_defaultCallbacks','_processAttributeSuggestions','$elementName','push','getUser','start','track-changes-suggestion-data-mismatch','splitPosition','removeMarkers','buildSuggestion','deletion:','getAllAdjacentSuggestions','isTouching','forward','track-changes-command-not-found','groupId','_model','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','clone','_afterChanges','FORMATTING','markInsertion','insertion:chain','markerToHighlight','pluginName','attribute:accept','$graveyard','addMarker:suggestion','_registerBlockAttribute','collaboration.channelId','PENDING_ACTION_SUGGESTION','_registerInlineAttribute','dataDowncast','conversion','_getSuggestionData','getSuggestionCallback','toUpperCase','notReady','locale','formatBlock:join','enableReadOnlyMode','markAttributeChange','TrackChangesEditing','splice','attributes','unbindElementFromMarkerName','selection','rejected','isIntersecting','_getAttributeKey','rethrowUnexpectedError','_isDataLoaded','dataReady','formatInline:accept','getNearestSelectionRange','_initAriaMarkerChangeAnnouncements','newValue','updateMarker','forceDefaultExecution','howMany','formatBlock:accept','widget','getLastMatchingPosition','_mergeNestedSuggestions','$marker','after','getSuggestion','_commentsRepository','moveTargetPosition','ck-suggestion-marker--active','acceptSuggestion','deletion:discard','upcast','createPositionAfter','root','unbind','element','_blockAttributeKeys','isMultiRange','batch','hasComments','toViewElement','enqueueChange','createPositionAt','deleteContent','rootName','isBlock','schema','_splitMarkerName','creator','low','ck-suggestion-marker-formatBlock','elementToElement','_getMarkerAnnouncementText','isEqual','addClass','_adapter','acceptAllSuggestions','consumable','getDifference','originalSuggestionId','authorName','add','getItems','track-changes-enable-command-twice','PendingActions','commandName','isAtStart','nodeAfter','attribute:','insertion:discard','ready','attributeNewValue','registerCustomCallback','nodeBefore','markerToData','suggestion:attribute:','update:suggestion','isObject','consume','markers','insert','elementStart','lowest','discard','formatGroupId','writer','isNextTo','getRanges','track-changes-suggestion-not-found','_editor','data-suggestion','reconvertMarker','insertion','isLimit','document','editing','addHighlight','_reduceExistingSuggestions','dataToMarker','getChangedMarkers','getMultiRangeId'];(function(_0x28141b,_0x5adc6d){const _0x356161=function(_0x361afe){while(--_0x361afe){_0x28141b['push'](_0x28141b['shift']());}};_0x356161(++_0x5adc6d);}(_0x5adc,0x10c));const _0x3561=function(_0x28141b,_0x5adc6d){_0x28141b=_0x28141b-0x0;let _0x356161=_0x5adc[_0x28141b];return _0x356161;};import{Plugin as _0x5f3ff6,PendingActions as _0x273306}from'ckeditor5/src/core.js';import{LiveRange as _0x31aba2}from'ckeditor5/src/engine.js';import{CKEditorError as _0x9a5bf9,uid as _0x22a876,priorities as _0x3cd436,logWarning as _0x134655}from'ckeditor5/src/utils.js';import{toWidget as _0x17ccf1}from'ckeditor5/src/widget.js';import{Users as _0x9d752b,hashObject as _0x429fe9,surroundingMarkersDetector as _0x4a53ac}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3cf41e from'./commands/trackchangescommand.js';import _0xd04be7 from'./commands/acceptsuggestioncommand.js';import _0x31bb3e from'./commands/discardsuggestioncommand.js';import _0x1b5dff from'./commands/executeonallsuggestionscommand.js';import _0x390370 from'./commands/executeonselectedsuggestionscommand.js';import _0x495a04 from'./suggestion.js';import _0x239b1c from'./suggestiondescriptionfactory.js';import _0x2791f6 from'./integrations/aiassistant.js';import _0xdb0e78 from'./integrations/alignment.js';import _0x4d85a6 from'./integrations/basicstyles.js';import _0x1562c1 from'./integrations/blockquote.js';import _0x4a5799 from'./integrations/casechange.js';import _0xe1d008 from'./integrations/ckbox.js';import _0x138c54 from'./integrations/codeblock.js';import _0x2482e1 from'./integrations/comments.js';import _0x180060 from'./integrations/deletecommand.js';import _0x4b71fc from'./integrations/list.js';import _0xfad09f from'./integrations/listproperties.js';import _0x53b11c from'./integrations/entercommand.js';import _0x58c8a9 from'./integrations/findandreplace.js';import _0x22dd06 from'./integrations/font.js';import _0x56c150 from'./integrations/formatpainter.js';import _0x27d67f from'./integrations/heading.js';import _0x5c660e from'./integrations/highlight.js';import _0x31bcf2 from'./integrations/horizontalline.js';import _0x47790f from'./integrations/htmlembed.js';import _0x5dc56b from'./integrations/image.js';import _0x487623 from'./integrations/imagereplace.js';import _0x42be92 from'./integrations/imagestyle.js';import _0x4ae2d3 from'./integrations/importword.js';import _0x497464 from'./integrations/indent.js';import _0x356c09 from'./integrations/inputcommand.js';import _0x3459f8 from'./integrations/link.js';import _0x483791 from'./integrations/legacylist.js';import _0x4dfd85 from'./integrations/legacylistproperties.js';import _0xbc1dd6 from'./integrations/mediaembed.js';import _0x54e540 from'./integrations/mention.js';import _0x25f558 from'./integrations/pagebreak.js';import _0x1a0bda from'./integrations/paragraph.js';import _0x54f45a from'./integrations/removeformat.js';import _0x2d84b4 from'./integrations/restrictededitingmode.js';import _0x49b240 from'./integrations/shiftentercommand.js';import _0x232c68 from'./integrations/standardeditingmode.js';import _0x12a537 from'./integrations/style.js';import _0x1c996f from'./integrations/table.js';import _0x4111c1 from'./integrations/tablemergesplit.js';import _0x3904ce from'./integrations/tableheadings.js';import _0x5e6d25 from'./integrations/tableclipboard.js';import _0x5a8535 from'./integrations/tablecolumnresize.js';import _0xec8bb3 from'./integrations/template.js';import _0x45f5df from'./integrations/tableofcontents.js';import _0x4aebc9 from'./integrations/title.js';import _0x390b94 from'./integrations/undo.js';import _0xd0b766 from'./integrations/tablecaption.js';import _0xd9dc6f from'./integrations/tableproperties.js';import{getTranslation as _0x341f67}from'./utils/common-translations.js';import{isEqual as _0x385e63,omit as _0x5d5f8a}from'lodash-es';export const renameAttributeKey=_0x3561('0x16a');export default class p extends _0x5f3ff6{static get[_0x3561('0x13a')](){return['CommentsRepository',_0x9d752b,_0x273306,_0x2791f6,_0xdb0e78,_0x4d85a6,_0x1562c1,_0xe1d008,_0x4a5799,_0x138c54,_0x2482e1,_0x180060,_0x53b11c,_0x58c8a9,_0x22dd06,_0x56c150,_0x27d67f,_0x5c660e,_0x31bcf2,_0x47790f,_0x5dc56b,_0x42be92,_0x487623,_0x4ae2d3,_0x497464,_0x356c09,_0x483791,_0x4dfd85,_0x3459f8,_0x4b71fc,_0xfad09f,_0xbc1dd6,_0x54e540,_0x25f558,_0x1a0bda,_0x54f45a,_0x2d84b4,_0x49b240,_0x232c68,_0x12a537,_0x1c996f,_0x4111c1,_0x3904ce,_0xd0b766,_0x5e6d25,_0x5a8535,_0x45f5df,_0xd9dc6f,_0xec8bb3,_0x4aebc9,_0x390b94];}static get[_0x3561('0x180')](){return _0x3561('0x11');}constructor(_0x4576d2){function _0x42eb46(_0x1ca2a5){return _0x1ca2a5[_0x3561('0xb3')](_0x5edd1f=>String[_0x3561('0x146')](_0x5edd1f))[_0x3561('0xc7')]('');}super(_0x4576d2),this[_0x3561('0x103')]=!0x1,this[_0x3561('0x98')]('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49da9c,_0x4d6d4c,_0x544fdf,_0x13b681)=>{this[_0x3561('0x178')][_0x3561('0xb7')](()=>{for(const _0x28e3b4 of[..._0x13b681,..._0x544fdf])this[_0x3561('0x178')]['markers'][_0x3561('0xf8')](_0x28e3b4)&&_0x4576d2[_0x3561('0x6f')][_0x3561('0x6b')](_0x28e3b4);});}),this['_descriptionFactory']=new _0x239b1c(this[_0x3561('0xfc')]['model'][_0x3561('0x3e')],this[_0x3561('0xfc')][_0x3561('0xd')]),this[_0x3561('0x47')]=null,this[_0x3561('0xb1')]=new Bt(this['editor']),this[_0x3561('0x8d')]=new Map(),this[_0x3561('0x2a')]=_0x4576d2[_0x3561('0x121')][_0x3561('0x14e')]('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this[_0x3561('0xfc')][_0x3561('0xa7')],this[_0x3561('0x7f')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x3561('0x34')]=new Set(['$elementName']),this[_0x3561('0x15e')]=new Set(),_0x4576d2[_0x3561('0x117')][_0x3561('0x7a')](_0x3561('0xd8'),_0x3561('0xdd')),this[_0x3561('0x130')]=_0x4576d2[_0x3561('0x117')][_0x3561('0x14e')](_0x3561('0xd8')),_0x4576d2[_0x3561('0x117')][_0x3561('0x7a')](_0x3561('0xba'),!0x0),this[_0x3561('0x26')]=_0x4576d2[_0x3561('0x117')]['get'](_0x3561('0xba')),this[_0x3561('0xc1')]=new _0x3cf41e(_0x4576d2,this[_0x3561('0x142')]),this[_0x3561('0x1e')](),this[_0x42eb46([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x42eb46([0x34,0x30,0x34,0x38,0x30,0x32,0x35,0x34]);}[_0x3561('0x135')](){const _0x4bffc0=this['editor'],_0x5dda43=(_0x19afd9,_0x14898c)=>{if('attribute'!=_0x19afd9)return'ck-suggestion-marker-'+_0x19afd9;const _0x200135=_0x14898c['split']('|')[0x0];return this[_0x3561('0x148')](_0x200135)?_0x3561('0x42'):_0x3561('0x11d');};_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')](_0x3561('0x159'))[_0x3561('0x17f')]({'model':_0x3561('0x12c'),'view':_0x3486b8=>{const {id:_0x5c5eba,type:_0x3721ac,subType:_0x3fb750}=this[_0x3561('0x3f')](_0x3486b8[_0x3561('0xd7')]),_0x4a56af=[_0x3561('0x12d'),_0x5dda43(_0x3721ac,_0x3fb750)];let _0x20fb99=0xbb8;return this['activeMarkers'][_0x3561('0xad')](_0x3486b8[_0x3561('0xd7')])&&(_0x4a56af[_0x3561('0x16b')](_0x3561('0x2c')),_0x20fb99=0xbc2),'deletion'==_0x3721ac&&(_0x20fb99+=0x5),{'classes':_0x4a56af,'attributes':{'data-suggestion':_0x5c5eba},'priority':_0x20fb99};}}),_0x4bffc0[_0x3561('0x8')]['for'](_0x3561('0x7'))[_0x3561('0x4d')](_0x4aa550=>{_0x4aa550['on'](_0x3561('0x2'),(_0x41773b,_0x5038e8,_0x4642b9)=>{if(!_0x4642b9[_0x3561('0x10a')][_0x3561('0x118')])return;const _0x4544cb=_0x5038e8[_0x3561('0x15b')];if(!_0x4544cb)return;const _0x1888d6=_0x4642b9[_0x3561('0x76')][_0x3561('0x38')](_0x4544cb);_0x4bffc0[_0x3561('0xa7')]['schema'][_0x3561('0x5d')](_0x4544cb)&&_0x1888d6&&!_0x1888d6[_0x3561('0xa8')](_0x3561('0x24'))&&_0x1888d6['is'](_0x3561('0x79'))&&_0x17ccf1(_0x1888d6,_0x4642b9[_0x3561('0x65')]);},{'priority':'high'});}),_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')]('dataDowncast')['markerToHighlight']({'model':_0x3561('0x12c'),'view':(_0x1b7cbf,_0x271658)=>{if(!_0x271658[_0x3561('0x10a')][_0x3561('0x118')])return null;const {type:_0x9be6f6,subType:_0x97b778}=this[_0x3561('0x3f')](_0x1b7cbf[_0x3561('0xd7')]);return{'classes':[_0x3561('0x12d'),_0x5dda43(_0x9be6f6,_0x97b778)],'priority':0xbb8};}});const _0x2d540e=({showActiveMarkers:_0x3faede=!0x0,isAttributeSuggestion:_0x1a6d01=!0x1}={})=>(_0x3c042f,_0x191c07,_0x546d90)=>{if(!_0x191c07['item'])return;const {id:_0x1e6bbe}=this[_0x3561('0x3f')](_0x191c07['markerName']);if(_0x1a6d01){const _0x1e691c=this[_0x3561('0x8d')][_0x3561('0x14e')](_0x1e6bbe),_0x388cc5=this[_0x3561('0x18')](_0x1e691c);if(!this[_0x3561('0x148')](_0x388cc5))return;}if(_0x191c07['item']['is'](_0x3561('0x15')))return void _0x546d90['consumable'][_0x3561('0x5e')](_0x191c07[_0x3561('0x15b')],_0x3c042f[_0x3561('0xda')]);const _0x29ce52=_0x546d90['mapper'][_0x3561('0x38')](_0x191c07[_0x3561('0x15b')]);if(_0x191c07['item']['is'](_0x3561('0x33'))&&_0x4bffc0[_0x3561('0xa7')]['schema'][_0x3561('0x3d')](_0x191c07['item'])&&!_0x29ce52[_0x3561('0xa8')](_0x3561('0x70'))){_0x546d90[_0x3561('0x65')][_0x3561('0x46')]([_0x3561('0x12d'),_0x3561('0x42')],_0x29ce52),_0x546d90[_0x3561('0x65')]['setAttribute'](_0x3561('0x6a'),_0x1e6bbe,_0x29ce52),_0x546d90['mapper'][_0x3561('0xf6')](_0x29ce52,_0x191c07['markerName']),_0x3faede&&(this['activeMarkers']['includes'](_0x191c07['markerName'])?_0x546d90[_0x3561('0x65')][_0x3561('0x46')](_0x3561('0x2c'),_0x29ce52):_0x546d90[_0x3561('0x65')][_0x3561('0x106')](_0x3561('0x2c'),_0x29ce52));for(const _0x4acded of _0x4bffc0['model']['createRangeIn'](_0x191c07[_0x3561('0x15b')])[_0x3561('0x4e')]())_0x546d90[_0x3561('0x49')][_0x3561('0x5e')](_0x4acded,_0x3c042f[_0x3561('0xda')]);_0x546d90['consumable'][_0x3561('0x5e')](_0x191c07[_0x3561('0x15b')],_0x3c042f['name']);}};_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')](_0x3561('0x7'))['add'](_0x49b8a0=>{_0x49b8a0['on'](_0x3561('0xef'),(_0x781ccb,_0x5d063d,_0x24f24d)=>{_0x24f24d[_0x3561('0x10a')]['showSuggestionHighlights']&&_0x2d540e({'showActiveMarkers':!0x1})(_0x781ccb,_0x5d063d,_0x24f24d);},{'priority':_0x3561('0xfd')});}),_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')](_0x3561('0x7'))[_0x3561('0x4d')](_0x42788c=>{_0x42788c['on'](_0x3561('0x161'),(_0x4b528c,_0x23aa4a,_0x2562a7)=>{_0x2562a7['options'][_0x3561('0x118')]&&_0x2d540e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4b528c,_0x23aa4a,_0x2562a7);},{'priority':_0x3561('0xfd')});}),_0x4bffc0['conversion']['for']('dataDowncast')[_0x3561('0x5a')]({'model':'suggestion','view':(_0x320c25,_0x9e973a)=>_0x9e973a[_0x3561('0x10a')][_0x3561('0x118')]?null:{'group':_0x3561('0x12c'),'name':_0x320c25['substr'](0xb)}}),_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')](_0x3561('0x2f'))[_0x3561('0x43')]({'view':{'name':_0x3561('0x12c'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5cc7d8,{writer:_0x4eff88})=>{let _0x129691=_0x3561('0x164')+_0x5cc7d8[_0x3561('0x88')]('suggestion-type')+':'+_0x5cc7d8[_0x3561('0x88')]('id');return _0x5cc7d8[_0x3561('0x88')](_0x3561('0x125'))&&(_0x129691+=':'+_0x5cc7d8[_0x3561('0x88')]('marker-count')),_0x4eff88['createElement'](_0x3561('0x27'),{'data-name':_0x129691});}}),_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')]('upcast')[_0x3561('0x72')]({'view':'suggestion'}),_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')](_0x3561('0x159'))[_0x3561('0x4d')](_0x2f57ac=>{_0x2f57ac['on']('addMarker:suggestion:formatBlock',_0x2d540e(),{'priority':_0x3561('0xb4')});}),_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')](_0x3561('0x159'))[_0x3561('0x4d')](_0x2702bd=>{_0x2702bd['on'](_0x3561('0x161'),_0x2d540e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4bffc0[_0x3561('0x8')]['for'](_0x3561('0x159'))[_0x3561('0x4d')](_0x5ccab0=>{_0x5ccab0['on'](_0x3561('0x113'),(_0x54d9b4,_0x1eba92,_0x30a59c)=>{const _0x4022a2=_0x30a59c[_0x3561('0x76')][_0x3561('0xe9')](_0x1eba92['markerName']);if(_0x4022a2)for(const _0x2e7400 of _0x4022a2)_0x2e7400[_0x3561('0xa8')](_0x3561('0x70'))||(_0x30a59c['writer'][_0x3561('0x106')]([_0x3561('0x12d'),_0x3561('0x42'),_0x3561('0x2c')],_0x2e7400),_0x30a59c[_0x3561('0x65')][_0x3561('0x14a')]('data-suggestion',_0x2e7400),_0x30a59c[_0x3561('0x76')][_0x3561('0x14')](_0x2e7400,_0x1eba92[_0x3561('0xd7')]));},{'priority':_0x3561('0xb4')});}),_0x4bffc0[_0x3561('0x8')][_0x3561('0xa9')](_0x3561('0x159'))[_0x3561('0x4d')](_0x35ca4f=>{_0x35ca4f['on'](_0x3561('0xc9'),(_0x3b7b5b,_0x2082ad,_0x33378c)=>{const _0x2ea7a1=_0x33378c[_0x3561('0x76')][_0x3561('0xe9')](_0x2082ad[_0x3561('0xd7')]);if(!_0x2ea7a1)return;const {id:_0x432426}=this[_0x3561('0x3f')](_0x2082ad[_0x3561('0xd7')]),_0x4a6920=this[_0x3561('0x8d')][_0x3561('0x14e')](_0x432426),_0x293900=this[_0x3561('0x18')](_0x4a6920);if(this[_0x3561('0x148')](_0x293900))for(const _0x2af079 of _0x2ea7a1)_0x2af079['getCustomProperty']('addHighlight')||(_0x33378c['writer'][_0x3561('0x106')]([_0x3561('0x12d'),_0x3561('0x42'),_0x3561('0x2c')],_0x2af079),_0x33378c['writer'][_0x3561('0x14a')](_0x3561('0x6a'),_0x2af079),_0x33378c[_0x3561('0x76')][_0x3561('0x14')](_0x2af079,_0x2082ad['markerName']));},{'priority':_0x3561('0xb4')});}),_0x4bffc0[_0x3561('0xa7')]['document']['registerPostFixer'](_0x33d566=>{let _0x116d79=!0x1;const _0x42b9d4=Array[_0x3561('0x141')](_0x4bffc0[_0x3561('0xa7')][_0x3561('0x6e')]['differ']['getChangedMarkers']()),_0x3e9000=new Set();for(const {name:_0xb6a0e2,data:_0x3fbe19}of _0x42b9d4){const {group:_0x20d55b,type:_0x428e3d,subType:_0x3051bb,id:_0x43b339}=this[_0x3561('0x3f')](_0xb6a0e2);if(_0x3561('0x12c')!==_0x20d55b)continue;const _0x4207dc=this[_0x3561('0x8d')]['get'](_0x43b339);if(null!=_0x3fbe19[_0x3561('0x80')]){'formatInline'==_0x428e3d&&(_0x116d79=_0x116d79||Tt(_0x3fbe19[_0x3561('0x80')],_0xb6a0e2,_0x33d566,_0x4bffc0[_0x3561('0xa7')][_0x3561('0x3e')]));const _0x54f9c5=_0x3561('0xc8')==_0x428e3d&&this[_0x3561('0x148')](_0x3051bb[_0x3561('0xaa')]('|')[0x0]);if(_0x3fbe19[_0x3561('0x80')][_0x3561('0xcb')]||'$graveyard'==_0x3fbe19[_0x3561('0x80')][_0x3561('0x31')][_0x3561('0x3c')]||_0x3561('0x152')==_0x428e3d&&!Vt(_0x3fbe19['newRange'])||_0x54f9c5&&!Vt(_0x3fbe19[_0x3561('0x80')])||_0x3561('0x7e')==_0x428e3d&&!(!Rt(_0x2191af=_0x3fbe19[_0x3561('0x80')])&&!function(_0x394a50){return _0x394a50[_0x3561('0x16d')][_0x3561('0x15f')]==_0x394a50[_0x3561('0x77')]['nodeBefore']&&_0x394a50[_0x3561('0x16d')][_0x3561('0x15a')];}(_0x2191af)))_0x33d566[_0x3561('0x99')](_0xb6a0e2),_0x116d79=!0x0;else{if(!_0x4207dc||!_0x4207dc[_0x3561('0x90')])continue;_0x3e9000['add'](_0x4207dc);}}}var _0x2191af;return _0x3e9000[_0x3561('0x163')]>0x0&&(_0x116d79=!!this[_0x3561('0x78')](_0x3e9000)||_0x116d79),_0x116d79;}),_0x4bffc0[_0x3561('0xa7')]['document']['registerPostFixer'](_0xd0ccaf=>{let _0x4e72e3=!0x1;for(const _0x332b4e of _0x4bffc0[_0x3561('0xa7')][_0x3561('0x6e')][_0x3561('0x11f')][_0x3561('0xec')]())if('insert'==_0x332b4e[_0x3561('0xfb')])for(const _0xf54073 of this[_0x3561('0x8d')][_0x3561('0xac')]()){if(_0xf54073[_0x3561('0x35')]||!_0xf54073[_0x3561('0x90')])continue;const _0x453696=_0x3561('0x152')==_0xf54073['type'],_0x44257b=this[_0x3561('0x18')](_0xf54073),_0x359041=_0x44257b&&this['_isBlockAttribute'](_0x44257b);if(!_0x453696&&!_0x359041)continue;const _0x4d04ab=_0xf54073[_0x3561('0x147')]();if(_0x4d04ab['start']['parent']!=_0x4d04ab['end'][_0x3561('0x15f')]&&!_0x4d04ab[_0x3561('0x77')]['isAtEnd']){const _0x149249=_0x4bffc0['model'][_0x3561('0x3a')](_0x4d04ab['start'][_0x3561('0x53')],_0x3561('0x77')),_0x1c3af3=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x110')](_0x4d04ab['start'],_0x149249);_0xd0ccaf[_0x3561('0x20')](_0xf54073[_0x3561('0x129')](),{'range':_0x1c3af3}),_0x4e72e3=!0x0;}}return _0x4e72e3;}),_0x4bffc0[_0x3561('0xa7')][_0x3561('0x6e')][_0x3561('0xdb')](_0x18ea09=>this[_0x3561('0x120')](_0x18ea09)),_0x4bffc0[_0x3561('0xa7')][_0x3561('0x6e')][_0x3561('0xdb')](_0xcac77a=>!_0xcac77a[_0x3561('0x36')][_0x3561('0x87')]&&this['_processAttributeSuggestions'](_0xcac77a)),_0x4bffc0[_0x3561('0xa7')]['on'](_0x3561('0x17b'),()=>{this[_0x3561('0x103')]=!0x1;}),_0x4bffc0[_0x3561('0xa7')][_0x3561('0x6e')]['on'](_0x3561('0x136'),(_0x363dfd,_0x54051c)=>{if(!_0x54051c[_0x3561('0x87')]||_0x54051c['isUndo'])return;if(!this[_0x3561('0x103')])return;const _0x2c4bea=_0x4bffc0['model'][_0x3561('0x6e')][_0x3561('0x11f')][_0x3561('0xec')]();if(0x0==_0x2c4bea[_0x3561('0xe6')])return;const _0xae3a89=[],_0x24c63f=_0x2c4bea[_0x3561('0xce')](_0x312dcb=>'attribute'==_0x312dcb[_0x3561('0xfb')]),_0x2e650b=_0x2c4bea[_0x3561('0xce')](_0x193d17=>'insert'==_0x193d17[_0x3561('0xfb')]&&_0x3561('0x9b')!=_0x193d17[_0x3561('0xda')]),_0x1b41df=_0x2c4bea[_0x3561('0xce')](_0x52d7ce=>_0x3561('0xbe')==_0x52d7ce[_0x3561('0xfb')]&&_0x3561('0x9b')!=_0x52d7ce[_0x3561('0xda')]);for(const _0x181cbc of _0x24c63f)this[_0x3561('0x8e')](_0x181cbc[_0x3561('0x100')])&&_0xae3a89[_0x3561('0x16b')]({'key':_0x181cbc[_0x3561('0x100')],'newValue':_0x181cbc[_0x3561('0x57')],'oldValue':_0x181cbc['attributeOldValue'],'range':Ut(_0x181cbc['range'],_0x4bffc0[_0x3561('0xa7')])});for(const _0x4a8e53 of _0x2e650b){const _0xa5aa64=_0x1b41df[_0x3561('0xb6')](_0x1a5b08=>_0x1a5b08['_element']===_0x4a8e53[_0x3561('0xde')]);if(_0xa5aa64){const _0x70492b=Ot(_0x4a8e53[_0x3561('0x75')]['nodeAfter'],_0x4bffc0[_0x3561('0xa7')]);_0xa5aa64[_0x3561('0xda')]!==_0x4a8e53[_0x3561('0xda')]&&_0xae3a89[_0x3561('0x16b')]({'key':_0x3561('0x16a'),'newValue':_0x4a8e53[_0x3561('0xda')],'oldValue':_0xa5aa64[_0x3561('0xda')],'range':_0x70492b});for(const [_0x2b5040,_0x25cc8f]of _0xa5aa64[_0x3561('0x13')]){if(!this[_0x3561('0x8e')](_0x2b5040))continue;const _0x2d7233=_0x4a8e53[_0x3561('0x13')]['get'](_0x2b5040);_0x25cc8f!==_0x2d7233&&_0xae3a89['push']({'key':_0x2b5040,'newValue':_0x2d7233,'oldValue':_0x25cc8f,'range':_0x70492b});}for(const [_0x153a4b,_0x3056f5]of _0x4a8e53[_0x3561('0x13')])this['_isRegisteredAttribute'](_0x153a4b)&&(_0xa5aa64['attributes'][_0x3561('0xf8')](_0x153a4b)||_0xae3a89[_0x3561('0x16b')]({'key':_0x153a4b,'newValue':_0x3056f5,'oldValue':null,'range':_0x70492b}));}}0x0!=_0xae3a89[_0x3561('0xe6')]&&_0x4bffc0[_0x3561('0xa7')][_0x3561('0x39')](_0x54051c,_0x471b02=>{const _0x4bb1b7=_0x22a876();for(const {range:_0x2ddb8b,key:_0xdbf675,oldValue:_0x634723,newValue:_0x1ac430}of _0xae3a89)this['markAttributeChange'](_0x2ddb8b,_0xdbf675,_0x634723,_0x1ac430,{'groupId':_0x4bb1b7});this['_reduceExistingSuggestions'](_0x471b02,_0xae3a89);});},{'priority':_0x3561('0x62')}),_0x4bffc0[_0x3561('0xa7')][_0x3561('0x5f')]['on'](_0x3561('0x5c'),(_0x3cfe6d,_0xebc2cd,_0x3d93f4)=>{if(null==_0x3d93f4){const {id:_0x45ee7d}=this[_0x3561('0x3f')](_0xebc2cd[_0x3561('0xda')]),_0x1cd680=this[_0x3561('0x8d')]['get'](_0x45ee7d);_0x1cd680&&_0x1cd680[_0x3561('0x101')](_0xebc2cd['name']);}}),_0x4bffc0['model'][_0x3561('0x6e')]['on'](_0x3561('0x136'),()=>{const _0x4559e4=Array[_0x3561('0x141')](_0x4bffc0['model'][_0x3561('0x6e')][_0x3561('0x11f')][_0x3561('0x73')]())[_0x3561('0xce')](_0x520f80=>'suggestion'===this[_0x3561('0x3f')](_0x520f80['name'])[_0x3561('0x10e')]);if(0x0===_0x4559e4[_0x3561('0xe6')])return;_0x4559e4['sort']((_0x417f17,_0x90de7)=>{const _0x48916a=_0x417f17[_0x3561('0x122')][_0x3561('0x119')],_0x5960f5=_0x90de7[_0x3561('0x122')]['oldRange'];return null===_0x48916a&&null===_0x5960f5?0x0:null===_0x48916a&&null!==_0x5960f5?-0x1:null!==_0x48916a&&null===_0x5960f5?0x1:_0x48916a[_0x3561('0x16d')][_0x3561('0xa6')](_0x5960f5['start'])?-0x1:0x1;});const _0x3cf1a4=new Set(),_0x354c70=new Set();for(const {name:_0xaaf39a,data:_0x25438b}of _0x4559e4){const {id:_0x21e813}=this['_splitMarkerName'](_0xaaf39a);if(null===_0x25438b['oldRange']){const _0x37de41=this[_0x3561('0xb2')](_0xaaf39a);_0x354c70[_0x3561('0x4d')](_0x37de41);}else{const _0x12160c=this[_0x3561('0x8d')]['get'](_0x21e813);null!==_0x25438b[_0x3561('0x80')]||_0x12160c[_0x3561('0x90')]?(_0x3cf1a4[_0x3561('0x4d')](_0x12160c[_0x3561('0x111')]),_0x354c70[_0x3561('0x4d')](_0x12160c)):this[_0x3561('0x14b')](_0x12160c);}}_0x354c70['size']>0x0&&this[_0x3561('0x12e')](_0x354c70);for(const _0x3d7e56 of _0x3cf1a4)this[_0x3561('0xee')]('suggestionChanged',_0x3d7e56);}),_0x4bffc0[_0x3561('0xa7')]['on']('applyOperation',(_0x245129,_0x4078c9)=>{const _0x43b39e=_0x4078c9[0x0];if(!this[_0x3561('0x8d')][_0x3561('0x163')])return;if(!_0x43b39e['isDocumentOperation'])return;if(_0x43b39e[_0x3561('0x36')]['isUndo']||!_0x43b39e[_0x3561('0x36')]['isLocal'])return;let _0x30dc7a,_0x1fd6a8;switch(_0x43b39e['type']){case'insert':_0x30dc7a=_0x4bffc0[_0x3561('0xa7')]['createPositionAt'](_0x43b39e[_0x3561('0x75')]),_0x1fd6a8=_0x30dc7a[_0x3561('0xd4')](_0x43b39e['howMany']);break;case _0x3561('0xaa'):_0x30dc7a=_0x4bffc0['model'][_0x3561('0x3a')](_0x43b39e[_0x3561('0x16f')]),_0x1fd6a8=_0x4bffc0[_0x3561('0xa7')]['createPositionAt'](_0x43b39e[_0x3561('0x2b')]);break;case'move':_0x30dc7a=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x3a')](_0x43b39e[_0x3561('0xaf')]),_0x1fd6a8=_0x30dc7a[_0x3561('0xd4')](_0x43b39e[_0x3561('0x22')]);break;default:return;}const _0x2414cb=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x110')](_0x30dc7a,_0x1fd6a8);_0x4bffc0[_0x3561('0xa7')][_0x3561('0xb7')](()=>{for(const {suggestion:_0x4dff7a,meta:_0x37a03f}of this['_findSuggestions'](_0x2414cb)){if(_0x4dff7a[_0x3561('0x35')])continue;if(_0x3561('0x134')==_0x4dff7a[_0x3561('0xfb')])continue;const _0x4a0d2e=this[_0x3561('0x18')](_0x4dff7a);if(_0x4a0d2e&&this[_0x3561('0x148')](_0x4a0d2e)&&_0x3561('0xaa')!=_0x43b39e[_0x3561('0xfb')])continue;const _0x2ca569=_0x4dff7a['data']&&_0x4dff7a[_0x3561('0x122')][_0x3561('0x144')];('formatBlock'!=_0x4dff7a[_0x3561('0xfb')]||'split'==_0x43b39e['type']&&!_0x2ca569)&&(_0x37a03f[_0x3561('0x13f')]||_0x3561('0x6c')==_0x4dff7a[_0x3561('0xfb')]&&_0x37a03f[_0x3561('0x15c')]||_0x4dff7a[_0x3561('0x147')]()['containsRange'](_0x2414cb)&&this[_0x3561('0xdc')](_0x4dff7a,_0x30dc7a,_0x1fd6a8));}});},{'priority':_0x3561('0x62')}),_0x4bffc0[_0x3561('0xa7')]['on'](_0x3561('0x3b'),(_0x6a4c71,_0x16a850)=>{const _0x3de8ae=_0x16a850[0x0],_0x46a1c8=_0x16a850[0x1];if(_0x46a1c8&&_0x46a1c8[_0x3561('0x21')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3561('0x153')])return;if(_0x3de8ae['isCollapsed'])return;const _0x503166=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x3e')],{start:_0x5e90e1,end:_0x165450}=_0x3de8ae[_0x3561('0x147')](),_0x7f3c2c=_0x5e90e1['nodeAfter']&&_0x503166[_0x3561('0x6d')](_0x5e90e1[_0x3561('0x53')])?null:_0x503166[_0x3561('0x1d')](_0x5e90e1,_0x3561('0x175')),_0x2a9117=_0x165450[_0x3561('0x59')]&&_0x503166[_0x3561('0x6d')](_0x165450[_0x3561('0x59')])?null:_0x503166[_0x3561('0x1d')](_0x165450,'backward'),_0x455226=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x110')](_0x7f3c2c?_0x7f3c2c[_0x3561('0x16d')]:_0x5e90e1,_0x2a9117?_0x2a9117[_0x3561('0x77')]:_0x165450);_0x4bffc0['model'][_0x3561('0xb7')](_0x19e55d=>{this[_0x3561('0x9e')](_0x455226);const _0x5f1ae4=_0x4bffc0['model'][_0x3561('0x3e')]['getNearestSelectionRange'](_0x455226[_0x3561('0x16d')]);_0x3de8ae['is'](_0x3561('0xe1'))?_0x19e55d[_0x3561('0xb8')](_0x5f1ae4):_0x3de8ae[_0x3561('0x12a')](_0x5f1ae4);}),_0x6a4c71[_0x3561('0x104')]();},{'priority':_0x3cd436[_0x3561('0x112')]+0xa}),_0x4bffc0['model']['on'](_0x3561('0x14d'),(_0x1e78e9,_0x32475b)=>{const _0x57b075=_0x32475b[_0x32475b['length']-0x1];_0x57b075&&_0x57b075[_0x3561('0x21')]||this[_0x3561('0x154')]||this[_0x3561('0xc1')][_0x3561('0x153')]&&(_0x4bffc0[_0x3561('0xa7')]['change'](()=>{let _0x45f4ce=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x14d')](_0x32475b[0x0],_0x32475b[0x1],_0x32475b[0x2],{'forceDefaultExecution':!0x0});if(!_0x45f4ce)return;_0x1e78e9[_0x3561('0x166')]=_0x45f4ce[_0x3561('0x17a')]();const _0x16294f=_0x45f4ce[_0x3561('0x77')][_0x3561('0x59')],_0x1fefd2=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x3e')];_0x16294f&&_0x1fefd2['isBlock'](_0x16294f)&&!_0x1fefd2[_0x3561('0x5d')](_0x16294f)&&(_0x45f4ce=_0x4bffc0[_0x3561('0xa7')][_0x3561('0x110')](_0x45f4ce['start'],_0x4bffc0[_0x3561('0xa7')][_0x3561('0x3a')](_0x16294f,_0x3561('0x77')))),this[_0x3561('0x17d')](_0x45f4ce);}),_0x1e78e9[_0x3561('0x104')]());},{'priority':_0x3561('0xb4')}),this['editor'][_0x3561('0xeb')][_0x3561('0x4d')](_0x3561('0x133'),this[_0x3561('0xc1')]),this[_0x3561('0x86')](_0x3561('0x133'));const _0x1b3d80=new _0xd04be7(_0x4bffc0,this[_0x3561('0x8d')]);_0x4bffc0[_0x3561('0xeb')][_0x3561('0x4d')](_0x3561('0x2d'),_0x1b3d80),this[_0x3561('0x86')]('acceptSuggestion');const _0x2dddd6=new _0x31bb3e(_0x4bffc0,this[_0x3561('0x8d')]);_0x4bffc0[_0x3561('0xeb')][_0x3561('0x4d')]('discardSuggestion',_0x2dddd6),this['enableCommand'](_0x3561('0xf0')),_0x4bffc0[_0x3561('0xeb')][_0x3561('0x4d')](_0x3561('0x48'),new _0x1b5dff(_0x4bffc0,_0x1b3d80,this[_0x3561('0x8d')])),this[_0x3561('0x86')](_0x3561('0x48')),_0x4bffc0[_0x3561('0xeb')][_0x3561('0x4d')](_0x3561('0x92'),new _0x1b5dff(_0x4bffc0,_0x2dddd6,this['_suggestions'])),this['enableCommand'](_0x3561('0x92')),_0x4bffc0[_0x3561('0xeb')]['add']('acceptSelectedSuggestions',new _0x390370(_0x4bffc0,_0x1b3d80,this[_0x3561('0x8d')])),this['enableCommand'](_0x3561('0x10f')),_0x4bffc0[_0x3561('0xeb')][_0x3561('0x4d')](_0x3561('0x8f'),new _0x390370(_0x4bffc0,_0x2dddd6,this['_suggestions'])),this[_0x3561('0x86')](_0x3561('0x8f'));const _0x47ffc8=_0x4bffc0[_0x3561('0x121')]['get'](_0x3561('0xc4'));this[_0x3561('0xd5')](_0x47ffc8,_0x3561('0xd6'),(_0x54f991,{threadId:_0x31bd11})=>{const _0x15dc77=this[_0x3561('0x8d')]['get'](_0x31bd11);_0x15dc77&&_0x15dc77[_0x3561('0x91')]&&0x1===_0x15dc77[_0x3561('0x91')][_0x3561('0xe6')]&&this[_0x3561('0x108')](_0x31bd11,{'hasComments':!0x0});},{'priority':'low'}),this[_0x3561('0xd5')](_0x47ffc8,'removeComment',(_0xacba56,{threadId:_0x468b1b})=>{const _0x3cad1d=this[_0x3561('0x8d')][_0x3561('0x14e')](_0x468b1b);_0x3cad1d&&_0x3cad1d['commentThread']&&!_0x3cad1d['commentThread'][_0x3561('0xe6')]&&this[_0x3561('0x108')](_0x468b1b,{'hasComments':!0x1});},{'priority':_0x3561('0x41')});}set[_0x3561('0x9f')](_0x52f968){if(this[_0x3561('0x47')])throw new _0x9a5bf9('track-changes-adapter-already-set',this);this[_0x3561('0x47')]=_0x52f968;}get[_0x3561('0x9f')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4d62f6=!0x1,toJSON:_0x39c4c4=!0x1}={}){const _0x4bf3c5=[];for(const _0xd9592 of this['_suggestions'][_0x3561('0xac')]())_0x4d62f6&&!_0xd9592[_0x3561('0x90')]||_0x4bf3c5['push'](_0xd9592);return _0x39c4c4?_0x4bf3c5[_0x3561('0xb3')](_0x37d574=>_0x37d574[_0x3561('0xe8')]()):_0x4bf3c5;}[_0x3561('0x29')](_0xa749ad){const _0x8cc1d5=this[_0x3561('0x8d')][_0x3561('0x14e')](_0xa749ad);if(!_0x8cc1d5)throw new _0x9a5bf9(_0x3561('0x68'),this);return _0x8cc1d5;}[_0x3561('0x139')](_0x21ee81){return this[_0x3561('0x8d')]['has'](_0x21ee81);}['addSuggestionData'](_0x2001ef){const {authorId:_0x1065e3,id:_0x50299f,attributes:_0x15637c}=_0x2001ef,[_0x3adc52,_0x1fdfd3]=_0x2001ef['type'][_0x3561('0xaa')](':'),_0x201b72=this[_0x3561('0x8d')][_0x3561('0x14e')](_0x50299f)||this[_0x3561('0x167')](_0x3adc52,_0x1fdfd3,_0x50299f,_0x1065e3,_0x15637c);if(this[_0x3561('0xf9')](_0x201b72),this[_0x3561('0xf7')](_0x201b72,_0x3adc52,_0x1fdfd3||null,_0x1065e3),_0x201b72[_0x3561('0xfe')]=_0x2001ef['createdAt'],_0x201b72[_0x3561('0x1a')]=!0x0,_0x15637c&&_0x15637c[_0x3561('0x89')]){const _0x4ed5a3=_0x15637c[_0x3561('0x89')],_0x153695=this[_0x3561('0x9d')](_0x4ed5a3[_0x3561('0x4c')]);_0x201b72[_0x3561('0x14c')]=_0x4ed5a3[_0x3561('0xfe')],_0x201b72[_0x3561('0x114')]=_0x153695,_0x201b72['isExternal']=!0x0;}else _0x201b72[_0x3561('0x14c')]=_0x2001ef[_0x3561('0xfe')];switch(_0x2001ef[_0x3561('0x122')]&&(_0x201b72['data']=_0x2001ef[_0x3561('0x122')]),_0x2001ef[_0x3561('0x13')]&&(_0x201b72[_0x3561('0x13')]=_0x2001ef[_0x3561('0x13')]),this['_adapter']&&this[_0x3561('0x47')][_0x3561('0x126')]||(_0x201b72[_0x3561('0xff')]=!0x0),this[_0x3561('0x7f')]['get'](_0x201b72)){case'notReady':this[_0x3561('0x7f')][_0x3561('0x98')](_0x201b72,_0x3561('0x1b'));break;case _0x3561('0xf3'):_0x201b72[_0x3561('0x90')]?(this['_joinWithAdjacentSuggestions'](new Set([_0x201b72])),this['_refreshSuggestionsChain'](new Set([_0x201b72])),this[_0x3561('0x7f')][_0x3561('0x98')](_0x201b72,'ready'),this[_0x3561('0xee')](_0x3561('0x128'),_0x201b72)):this[_0x3561('0x7f')]['set'](_0x201b72,'removed');}return _0x201b72;}[_0x3561('0x2d')](_0x4d4612){this[_0x3561('0x21')](()=>{this['editor']['model'][_0x3561('0xb7')](()=>{for(const _0x48082c of _0x4d4612[_0x3561('0x173')]())_0x48082c[_0x3561('0x84')]();});});}[_0x3561('0xf0')](_0x32f540){this[_0x3561('0x21')](()=>{this[_0x3561('0xfc')][_0x3561('0xa7')][_0x3561('0xb7')](()=>{for(const _0x4eca18 of _0x32f540[_0x3561('0x173')]())_0x4eca18['discard']();});});}[_0x3561('0x86')](_0x2f9198,_0x312635){const _0x1d415a=this['editor'][_0x3561('0xeb')][_0x3561('0x14e')](_0x2f9198);if(!_0x1d415a)throw new _0x9a5bf9(_0x3561('0x176'),this,{'commandName':_0x2f9198});if(this[_0x3561('0x142')][_0x3561('0xf8')](_0x1d415a))throw new _0x9a5bf9(_0x3561('0x4f'),this,{'commandName':_0x2f9198});this[_0x3561('0x142')]['add'](_0x1d415a),_0x312635&&_0x1d415a['on']('execute',(_0x33e626,_0x9f3653)=>{this[_0x3561('0xc1')][_0x3561('0x153')]&&(this[_0x3561('0x154')]||(_0x9f3653['length']>0x0&&_0x9f3653[_0x9f3653[_0x3561('0xe6')]-0x1]&&_0x9f3653[_0x9f3653[_0x3561('0xe6')]-0x1]['forceDefaultExecution']?_0x9f3653[_0x3561('0xa0')]():(_0x33e626[_0x3561('0x166')]=_0x312635((..._0x56a9d9)=>_0x1d415a[_0x3561('0x115')](..._0x56a9d9,{'forceDefaultExecution':!0x0}),..._0x9f3653),_0x33e626[_0x3561('0x104')]())));},{'priority':'high'});}[_0x3561('0x21')](_0x3f7cc5){let _0x1e1ea3,_0x3e4a0d;const _0x39bd02=this[_0x3561('0x154')];this[_0x3561('0x154')]=!0x0;try{_0x1e1ea3=_0x3f7cc5();}catch(_0xb38113){_0x3e4a0d=_0xb38113;}return _0x39bd02||(this[_0x3561('0x154')]=!0x1),_0x3e4a0d&&_0x9a5bf9[_0x3561('0x19')](_0x3e4a0d,this),_0x1e1ea3;}[_0x3561('0x17d')](_0x530286,_0x1f1073=null,_0x1c4aac={}){if(_0x530286[_0x3561('0xcb')])return null;const _0x34c57d=this[_0x3561('0xfc')]['plugins']['get'](_0x3561('0xb9'))['me'];for(const {suggestion:_0x293fc6,meta:_0x74fcd9}of this[_0x3561('0xc6')](_0x530286,_0x3561('0x6c')))if(_0x74fcd9[_0x3561('0x15c')]){if(!_0x74fcd9['isNextTo']){if(_0x74fcd9[_0x3561('0x13f')]){if(!this[_0x3561('0x26')]||!Pt(_0x293fc6,_0x1c4aac))continue;return _0x293fc6;}if(Pt(_0x293fc6,_0x1c4aac))return _0x293fc6;this[_0x3561('0xdc')](_0x293fc6,_0x530286[_0x3561('0x16d')],_0x530286['end']);break;}if(_0x1f1073==_0x293fc6[_0x3561('0x7c')]&&Pt(_0x293fc6,_0x1c4aac)){const _0x407e8b=_0x293fc6[_0x3561('0x147')]();return _0x407e8b[_0x3561('0x16d')][_0x3561('0x45')](_0x530286[_0x3561('0x77')])?this[_0x3561('0xa2')](_0x293fc6,this[_0x3561('0x178')][_0x3561('0x110')](_0x530286['start'],_0x407e8b['end'])):this[_0x3561('0xa2')](_0x293fc6,this[_0x3561('0x178')][_0x3561('0x110')](_0x407e8b[_0x3561('0x16d')],_0x530286['end'])),_0x293fc6;}}const _0xb02ac2=_0x22a876(),_0xce6146=_0x34c57d['id'],_0x538208=_0x1f1073?_0x3561('0x132')+_0x1f1073:_0x3561('0x6c'),_0x48616b=this['_setSuggestionData']({'id':_0xb02ac2,'type':_0x538208,'createdAt':new Date(),'authorId':_0xce6146,'attributes':_0x1c4aac});return this[_0x3561('0x97')](_0x538208,_0xb02ac2,_0xce6146,_0x530286),_0x48616b;}['markMultiRangeInsertion'](_0x3f3f1e,_0x486c9b=_0x3561('0x14f'),_0x4ad671={}){const _0x5c2294=this[_0x3561('0xfc')][_0x3561('0x121')]['get']('Users')['me'],_0x1e5338=this[_0x3561('0xb1')][_0x3561('0xa')]('insertion',_0x486c9b,'join');for(const _0x23f3b9 of this[_0x3561('0xbf')]())if(_0x23f3b9['author']['id']==_0x5c2294['id']&&'insertion'==_0x23f3b9['type']&&_0x23f3b9[_0x3561('0x7c')]==_0x486c9b&&Pt(_0x23f3b9,_0x4ad671)&&(_0x1e5338(_0x23f3b9[_0x3561('0x67')](),_0x3f3f1e)||_0x1e5338(_0x3f3f1e,_0x23f3b9[_0x3561('0x67')]()))){for(const _0x3d0628 of _0x3f3f1e)_0x23f3b9['addRange'](_0x3d0628);return _0x23f3b9;}for(const {suggestion:_0xcb8b11,meta:_0x5d3376}of this[_0x3561('0xc6')](_0x3f3f1e,_0x3561('0x6c'))){if(!_0x5d3376[_0x3561('0x15c')])continue;if(!this['_mergeNestedSuggestions']&&_0x5d3376[_0x3561('0x13f')])continue;if(!Pt(_0xcb8b11,_0x4ad671))continue;let _0x481574=!0x0;for(const _0x3a7b74 of _0xcb8b11[_0x3561('0x67')]())for(const _0x4c5c90 of _0x3f3f1e)if(!_0x3a7b74['containsRange'](_0x4c5c90)){_0x481574=!0x1;break;}if(_0x481574)return _0xcb8b11;}const _0x5c8d6e=_0x22a876(),_0xff6414=_0x5c2294['id'],_0x42f4f3=_0x3561('0x132')+_0x486c9b,_0x35f17f=this[_0x3561('0xc3')]({'id':_0x5c8d6e,'type':_0x42f4f3,'createdAt':new Date(),'authorId':_0xff6414,'attributes':_0x4ad671});for(const _0x39c20f of _0x3f3f1e)this[_0x3561('0x97')](_0x42f4f3,_0x5c8d6e,_0xff6414,_0x39c20f,_0x495a04[_0x3561('0x74')]());return _0x35f17f;}[_0x3561('0xea')](_0x43bb69,_0x461273,_0x4b9499=null,_0x39ff71={}){if(_0x4b9499=_0x4b9499||Et(_0x461273),_0x43bb69[_0x3561('0xcb')])return null;if('never'===this[_0x3561('0x130')]){const _0x228629=this[_0x3561('0xb1')][_0x3561('0xa')](_0x3561('0x134'),_0x4b9499,'accept');return this[_0x3561('0x21')](()=>_0x228629([_0x43bb69],_0x461273,_0x39ff71)),null;}const _0x3d40f2=this[_0x3561('0xfc')][_0x3561('0x121')][_0x3561('0x14e')]('Users')['me'],_0x39fec4=[];if(_0x3561('0xa5')!==this['_trackFormatChanges'])for(const {suggestion:_0x564423,meta:_0x4c7547}of this[_0x3561('0xc6')](_0x43bb69,_0x3561('0x6c')))_0x4c7547[_0x3561('0x15c')]&&!_0x4c7547[_0x3561('0xcc')]&&_0x39fec4[_0x3561('0x16b')](..._0x564423['getRanges']());const _0x4f9476=function(_0x32bd0d,_0x1a252a){const _0x5c8e24=[];for(const _0x3acfe6 of _0x1a252a){const _0x243fe9=_0x32bd0d[_0x3561('0xe2')](_0x3acfe6);_0x243fe9&&_0x5c8e24[_0x3561('0x16b')](_0x243fe9);}return _0x5c8e24;}(_0x43bb69,_0x39fec4),_0x165a3a=function(_0x5e974c,_0x4f67ee){const _0x19d06f=[_0x5e974c];for(const _0x4dc73c of _0x4f67ee){let _0x1b11b6=0x0;for(;_0x1b11b6<_0x19d06f[_0x3561('0xe6')];){const _0x3cce25=_0x19d06f[_0x1b11b6][_0x3561('0x4a')](_0x4dc73c);_0x19d06f['splice'](_0x1b11b6,0x1,..._0x3cce25),_0x1b11b6+=_0x3cce25['length'];}}return _0x19d06f;}(_0x43bb69,_0x39fec4);_0x4f9476[_0x3561('0xe6')]&&this[_0x3561('0x178')][_0x3561('0xb7')](()=>{for(const _0x42b45c of _0x4f9476){const _0x296300=this[_0x3561('0xb1')][_0x3561('0xa')](_0x3561('0x134'),_0x4b9499,_0x3561('0x84'));this[_0x3561('0x21')](()=>_0x296300([_0x42b45c],_0x461273,_0x39ff71));}});for(const _0x464aef of _0x165a3a){let _0x1d17df=null,_0x270fc1=_0x464aef['start'],_0x97a4a7=_0x464aef[_0x3561('0x77')];for(const {suggestion:_0x5cc256,meta:_0x559d3b}of this[_0x3561('0xc6')](_0x464aef,_0x3561('0x134'))){if(!_0x559d3b[_0x3561('0x15c')])continue;if(_0x5cc256[_0x3561('0x7c')]!=_0x4b9499)continue;if(!Pt(_0x5cc256,_0x39ff71))continue;const _0x209588=_0x5cc256[_0x3561('0x147')]();if(_0x209588[_0x3561('0x15d')](_0x464aef,!0x0))return null;_0x270fc1=_0x270fc1['isBefore'](_0x209588[_0x3561('0x16d')])?_0x270fc1:_0x209588[_0x3561('0x16d')],_0x97a4a7=_0x97a4a7[_0x3561('0x8c')](_0x209588['end'])?_0x97a4a7:_0x209588[_0x3561('0x77')],_0x1d17df?_0x209588[_0x3561('0x16d')]['isBefore'](_0x1d17df[_0x3561('0x147')]()[_0x3561('0x16d')])?(_0x1d17df[_0x3561('0x170')](),_0x1d17df=_0x5cc256):_0x5cc256[_0x3561('0x170')]():_0x1d17df=_0x5cc256;}const _0xa064ad=this[_0x3561('0x178')][_0x3561('0x110')](_0x270fc1,_0x97a4a7);if(_0x1d17df)this[_0x3561('0xa2')](_0x1d17df,_0xa064ad);else{const _0x26a513=_0x22a876(),_0x55196c=_0x3d40f2['id'];this['_setSuggestionData']({'id':_0x26a513,'type':'formatInline:'+_0x4b9499,'data':_0x461273,'createdAt':new Date(),'authorId':_0x55196c,'attributes':_0x39ff71}),this[_0x3561('0x97')](_0x3561('0x137')+_0x4b9499,_0x26a513,_0x55196c,_0xa064ad);}}return null;}[_0x3561('0xca')](_0x6a5b98,_0x5ce07e,_0x5030e1=[],_0x96a1bc=null,_0x377f6e={}){_0x5ce07e['formatGroupId']||(_0x5ce07e['formatGroupId']=_0x5ce07e[_0x3561('0x51')]),_0x5ce07e[_0x3561('0x144')]=_0x6a5b98['is'](_0x3561('0x131')),_0x96a1bc=_0x96a1bc||Et(_0x5ce07e);const _0x1ef6d9=_0x5030e1[_0x3561('0xb3')](_0x4ae1a2=>Ot(_0x4ae1a2,this['_model'])),_0x43ce65=_0x6a5b98['is'](_0x3561('0x131'))?_0x6a5b98:Ot(_0x6a5b98,this['_model']);if('never'===this[_0x3561('0x130')]){const _0x3cac10=this[_0x3561('0xb1')][_0x3561('0xa')]('formatBlock',_0x96a1bc,_0x3561('0x84'));return this['forceDefaultExecution'](()=>_0x3cac10([_0x43ce65],_0x5ce07e,_0x377f6e)),null;}_0x1ef6d9[_0x3561('0x16b')](_0x43ce65);let _0x1aef65=!0x0;for(const _0x361ba7 of _0x1ef6d9)if(!this[_0x3561('0x105')](_0x361ba7)){_0x1aef65=!0x1;break;}if(_0x1aef65&&_0x3561('0xa5')!==this[_0x3561('0x130')]){const _0x14d56e=this['_suggestionFactory'][_0x3561('0xa')](_0x3561('0x152'),_0x96a1bc,'accept');return this[_0x3561('0x21')](()=>_0x14d56e([_0x43ce65],_0x5ce07e,_0x377f6e)),null;}let _0x467dc9=null,_0x321d36=_0x43ce65[_0x3561('0x16d')],_0x2a7e46=_0x43ce65['end'];for(const {suggestion:_0x122383,meta:_0x3b20de}of this[_0x3561('0xc6')](_0x43ce65,_0x3561('0x152'))){if(!_0x3b20de[_0x3561('0x15c')])continue;if(_0x3b20de[_0x3561('0x66')]||_0x3b20de[_0x3561('0x13f')]||_0x3b20de[_0x3561('0xcc')])continue;if(_0x122383[_0x3561('0x122')]['formatGroupId']!=_0x5ce07e[_0x3561('0x64')])continue;if(!Pt(_0x122383,_0x377f6e))continue;const _0x132b8b=_0x122383[_0x3561('0x147')]();if(_0x122383[_0x3561('0x7c')]==_0x96a1bc){if(_0x132b8b[_0x3561('0x15d')](_0x43ce65,!0x0))return null;_0x321d36=_0x321d36[_0x3561('0xa6')](_0x132b8b[_0x3561('0x16d')])?_0x321d36:_0x132b8b['start'],_0x2a7e46=_0x2a7e46['isAfter'](_0x132b8b['end'])?_0x2a7e46:_0x132b8b[_0x3561('0x77')],_0x467dc9?_0x132b8b[_0x3561('0x16d')][_0x3561('0xa6')](_0x467dc9[_0x3561('0x147')]()['start'])?(_0x467dc9['removeMarkers'](),_0x467dc9=_0x122383):_0x122383[_0x3561('0x170')]():_0x467dc9=_0x122383;}else{const _0xcfc14d=_0x43ce65[_0x3561('0xe2')](_0x132b8b);this[_0x3561('0x7b')](_0x122383,_0xcfc14d);}}const _0x2c82a4=this['editor'][_0x3561('0x121')][_0x3561('0x14e')]('Users')['me'],_0x4ef82c=_0x22a876(),_0x2d9eeb=_0x2c82a4['id'];if(_0x467dc9)return this[_0x3561('0xa2')](_0x467dc9,this[_0x3561('0x178')][_0x3561('0x110')](_0x321d36,_0x2a7e46)),_0x467dc9;{const _0x5a6fae=this['_setSuggestionData']({'id':_0x4ef82c,'type':_0x3561('0xed')+_0x96a1bc,'data':_0x5ce07e,'createdAt':new Date(),'authorId':_0x2d9eeb,'attributes':_0x377f6e});return this[_0x3561('0x97')](_0x3561('0xed')+_0x96a1bc,_0x4ef82c,_0x2d9eeb,this[_0x3561('0x178')]['createRange'](_0x321d36,_0x2a7e46)),_0x5a6fae;}}[_0x3561('0xc5')](_0x26c724,_0x3e626d,_0xa4df8a=[],_0x201122=null,_0x1c79d4={}){_0x3e626d[_0x3561('0x64')]||(_0x3e626d['formatGroupId']=_0x3e626d[_0x3561('0x51')]);const _0x3b9c5f=_0x26c724[0x0];_0x3e626d[_0x3561('0x144')]=_0x3b9c5f['is'](_0x3561('0x131')),_0x201122=_0x201122||Et(_0x3e626d);const _0x1da3f8=_0xa4df8a[_0x3561('0xb3')](_0x1101a0=>Ot(_0x1101a0,this['_model'])),_0x1d3926=_0x3b9c5f['is']('range')?_0x26c724:_0x26c724[_0x3561('0xb3')](_0x8f7e25=>Ot(_0x8f7e25,this[_0x3561('0x178')]));if(_0x3561('0x13e')===this[_0x3561('0x130')]){const _0x19176b=this[_0x3561('0xb1')]['getSuggestionCallback'](_0x3561('0x152'),_0x201122,_0x3561('0x84'));return this[_0x3561('0x21')](()=>_0x19176b(_0x1d3926,_0x3e626d,_0x1c79d4)),null;}_0x1da3f8['push'](..._0x1d3926);let _0x5b85ea=!0x0;for(const _0x151cfa of _0x1da3f8)if(!this[_0x3561('0x105')](_0x151cfa)){_0x5b85ea=!0x1;break;}if(_0x5b85ea&&_0x3561('0xa5')!==this[_0x3561('0x130')]){const _0x519160=this[_0x3561('0xb1')]['getSuggestionCallback'](_0x3561('0x152'),_0x201122,'accept');return this[_0x3561('0x21')](()=>_0x519160(_0x1d3926,_0x3e626d,_0x1c79d4)),null;}const _0x47dfa8=this[_0x3561('0xfc')][_0x3561('0x121')][_0x3561('0x14e')](_0x3561('0xb9'))['me'];for(const _0x368662 of this[_0x3561('0xbf')]()){if(_0x368662[_0x3561('0x114')]['id']!=_0x47dfa8['id'])continue;if('formatBlock'!=_0x368662['type']||_0x368662[_0x3561('0x122')][_0x3561('0x64')]!=_0x3e626d['formatGroupId'])continue;if(!Pt(_0x368662,_0x1c79d4))continue;const _0x3977e0=_0x368662['subType']==_0x201122;for(let _0x3d6040=0x0;_0x3d6040<_0x1d3926[_0x3561('0xe6')];_0x3d6040++){const _0x1c8947=_0x1d3926[_0x3d6040];for(const _0x2079a4 of _0x368662[_0x3561('0xe5')]()){const _0x2118e7=_0x2079a4[_0x3561('0x11c')]();if(_0x1c8947[_0x3561('0x45')](_0x2118e7)){_0x3977e0?(_0x1d3926[_0x3561('0x12')](_0x3d6040,0x1),_0x3d6040--):_0x368662['removeMarker'](_0x2079a4[_0x3561('0xda')]);break;}}}}if(0x0==_0x1d3926[_0x3561('0xe6')])return null;const _0x50257e=this[_0x3561('0xb1')]['getSuggestionCallback'](_0x3561('0x152'),_0x201122,_0x3561('0xc7'));for(const _0x26930b of this['getSuggestions']())if(_0x26930b[_0x3561('0x114')]['id']==_0x47dfa8['id']&&_0x3561('0x152')==_0x26930b[_0x3561('0xfb')]&&_0x26930b[_0x3561('0x122')]['formatGroupId']==_0x3e626d[_0x3561('0x64')]&&_0x26930b[_0x3561('0x7c')]==_0x201122&&Pt(_0x26930b,_0x1c79d4)&&(_0x50257e(_0x26930b[_0x3561('0x67')](),_0x1d3926)||_0x50257e(_0x1d3926,_0x26930b[_0x3561('0x67')]()))){for(const _0x24cfae of _0x1d3926)_0x26930b[_0x3561('0xb0')](_0x24cfae);return _0x26930b;}const _0x330083=_0x22a876(),_0x599d21=_0x47dfa8['id'],_0x2de8c7=_0x3561('0xed')+_0x201122,_0x57400c=this[_0x3561('0xc3')]({'id':_0x330083,'type':_0x2de8c7,'data':_0x3e626d,'createdAt':new Date(),'authorId':_0x599d21,'attributes':_0x1c79d4});for(const _0x43f00e of _0x1d3926)this[_0x3561('0x97')](_0x2de8c7,_0x330083,_0x599d21,_0x43f00e,_0x495a04[_0x3561('0x74')]());return _0x57400c;}[_0x3561('0x9e')](_0x5c3ac3,_0x4ce7d6=null,_0x542115={}){if(_0x5c3ac3[_0x3561('0xcb')])return null;const _0xb7ca9a=this[_0x3561('0xfc')][_0x3561('0x121')][_0x3561('0x14e')](_0x3561('0xb9'))['me'],_0x32f7ff=new _0x31aba2(_0x5c3ac3[_0x3561('0x16d')],_0x5c3ac3[_0x3561('0x77')]);for(const {suggestion:_0x36792f,meta:_0x42d852}of this['_findSuggestions'](_0x32f7ff,_0x3561('0x6c')))if(_0x42d852[_0x3561('0x15c')]&&!_0x42d852[_0x3561('0x66')]){if(_0x36792f[_0x3561('0x35')]){const _0x30676f=_0x36792f[_0x3561('0x67')]()[_0x3561('0xce')](_0x3fa3b8=>_0x3561('0x1')!=_0x3fa3b8[_0x3561('0x31')][_0x3561('0x3c')]);_0x30676f['every'](_0x3ec029=>_0x32f7ff[_0x3561('0x15d')](_0x3ec029,!0x0))&&_0x36792f[_0x3561('0x63')]();if(_0x30676f[_0x3561('0x93')](_0x49cfb0=>_0x49cfb0[_0x3561('0x15d')](_0x32f7ff,!0x0))){const _0x531010=this[_0x3561('0xb1')]['getSuggestionCallback']('deletion',_0x4ce7d6,_0x3561('0x84'));return this['forceDefaultExecution'](()=>_0x531010([_0x32f7ff],null,_0x542115)),null;}}else{const _0x4a97a6=_0x32f7ff['getIntersection'](_0x36792f[_0x3561('0x147')]());null!==_0x4a97a6&&_0x36792f[_0x3561('0x116')]([_0x4a97a6],null,_0x542115);}}if(_0x32f7ff[_0x3561('0xf2')](),_0x32f7ff['isCollapsed']||_0x3561('0x1')==_0x32f7ff['root'][_0x3561('0x3c')])return null;let _0x1ec508=null,_0x5439a5=_0x32f7ff[_0x3561('0x16d')],_0xe4055=_0x32f7ff['end'];const _0x328ce4=this[_0x3561('0xc6')](_0x32f7ff,_0x3561('0x7e'));for(const {suggestion:_0x2666e0,meta:_0x13cf52}of _0x328ce4){const _0x4ed572=this[_0x3561('0x178')][_0x3561('0x110')](_0x5439a5,_0xe4055);if(_0x13cf52[_0x3561('0x15c')]&&(this[_0x3561('0x26')]||!_0x13cf52[_0x3561('0x13f')]&&!_0x13cf52[_0x3561('0xcc')])){if(_0x2666e0[_0x3561('0x35')]){if(!Pt(_0x2666e0,_0x542115))continue;let _0x30373c=!0x0;for(const _0x35b74e of _0x2666e0['getRanges']()){if(_0x35b74e[_0x3561('0x15d')](_0x4ed572,!0x0))return _0x2666e0;_0x4ed572[_0x3561('0x15d')](_0x35b74e)||(_0x30373c=!0x1);}_0x30373c&&_0x2666e0[_0x3561('0x63')]();}else{const _0x48a98d=_0x2666e0['getFirstRange']();if(_0x48a98d['containsRange'](_0x4ed572,!0x0))return _0x2666e0;if(!Pt(_0x2666e0,_0x542115)){_0x4ed572[_0x3561('0x15d')](_0x48a98d)?_0x2666e0[_0x3561('0x170')]():_0x48a98d['containsPosition'](_0x5439a5)?_0x5439a5=_0x48a98d[_0x3561('0x77')]:_0x48a98d[_0x3561('0x162')](_0xe4055)&&(_0xe4055=_0x48a98d[_0x3561('0x16d')]);continue;}_0x5439a5=_0x5439a5['isBefore'](_0x48a98d['start'])?_0x5439a5:_0x48a98d[_0x3561('0x16d')],_0xe4055=_0xe4055[_0x3561('0x8c')](_0x48a98d['end'])?_0xe4055:_0x48a98d[_0x3561('0x77')],_0x542115=Object[_0x3561('0x157')]({},_0x2666e0[_0x3561('0x13')]),_0x1ec508?_0x48a98d['start']['isBefore'](_0x1ec508[_0x3561('0x147')]()['start'])?(_0x1ec508[_0x3561('0x170')](),_0x1ec508=_0x2666e0):_0x2666e0['removeMarkers']():_0x1ec508=_0x2666e0;}}}if(_0x1ec508)return this['_setSuggestionRange'](_0x1ec508,this[_0x3561('0x178')][_0x3561('0x110')](_0x5439a5,_0xe4055)),_0x1ec508;{const _0x5e8bbf=_0x22a876(),_0x43cf9c=this[_0x3561('0x178')]['createRange'](_0x5439a5,_0xe4055),_0x2be050=_0xb7ca9a['id'],_0x4515cf=_0x4ce7d6?'deletion:'+_0x4ce7d6:_0x3561('0x7e'),_0x3192e7=this['_setSuggestionData']({'id':_0x5e8bbf,'type':_0x4515cf,'createdAt':new Date(),'authorId':_0x2be050,'attributes':_0x542115});return this[_0x3561('0x97')](_0x4515cf,_0x5e8bbf,_0x2be050,_0x43cf9c),_0x3192e7;}}[_0x3561('0xa4')](_0x28e46d,_0x15d00c=_0x3561('0x14f'),_0x7e8c9={}){const _0x3dc48e=this[_0x3561('0xfc')]['plugins'][_0x3561('0x14e')](_0x3561('0xb9'))['me'],_0x5f2c36=_0x28e46d[_0x3561('0xb3')](_0x4cc873=>new _0x31aba2(_0x4cc873[_0x3561('0x16d')],_0x4cc873[_0x3561('0x77')])),_0x3f2855=new Set();for(const {suggestion:_0x13fcb5,meta:_0x43970f}of this['_findSuggestions'](_0x5f2c36,'insertion'))_0x43970f[_0x3561('0x15c')]&&!_0x43970f['isNextTo']&&_0x3f2855[_0x3561('0x4d')](_0x13fcb5);for(const _0x4d00c8 of _0x3f2855)if(_0x4d00c8[_0x3561('0x35')]){const _0x3fa70e=_0x4d00c8[_0x3561('0x67')]();(!_0x4d00c8[_0x3561('0x13')]||!_0x4d00c8[_0x3561('0x13')][_0x3561('0x124')])&&(_0x3fa70e[_0x3561('0xfa')](_0xc37325=>_0x5f2c36[_0x3561('0x93')](_0x2e33f0=>_0x2e33f0[_0x3561('0x15d')](_0xc37325,!0x0)))&&_0x4d00c8['discard']());if(_0x5f2c36[_0x3561('0xfa')](_0x2952f3=>_0x3fa70e[_0x3561('0x93')](_0x51d8e=>_0x51d8e[_0x3561('0x15d')](_0x2952f3,!0x0)))){const _0x390d9a=this[_0x3561('0xb1')][_0x3561('0xa')](_0x3561('0x7e'),_0x15d00c,_0x3561('0x84'));return this[_0x3561('0x21')](()=>_0x390d9a(_0x28e46d,null,_0x7e8c9)),null;}}else{const _0x14cba6=_0x4d00c8['getFirstRange']();_0x5f2c36[_0x3561('0x93')](_0xd97dca=>_0xd97dca[_0x3561('0x15d')](_0x14cba6,!0x0))&&_0x4d00c8['discard']();if(_0x5f2c36['every'](_0x5cd416=>_0x14cba6[_0x3561('0x15d')](_0x5cd416,!0x0))){const _0x469063=this[_0x3561('0xb1')][_0x3561('0xa')](_0x3561('0x7e'),_0x15d00c,_0x3561('0x84'));return this[_0x3561('0x21')](()=>_0x469063(_0x5f2c36,null,_0x7e8c9)),null;}}const _0x543fdf=this[_0x3561('0xb1')][_0x3561('0xa')](_0x3561('0x7e'),_0x15d00c,_0x3561('0xc7'));let _0x452bb9=null;for(const _0x13dd45 of this[_0x3561('0xbf')]())if(_0x13dd45[_0x3561('0x114')]['id']==_0x3dc48e['id']&&_0x13dd45[_0x3561('0x90')]&&'deletion'==_0x13dd45['type']&&_0x13dd45[_0x3561('0x7c')]==_0x15d00c&&Pt(_0x13dd45,_0x7e8c9)&&(_0x543fdf(_0x13dd45[_0x3561('0x67')](),_0x5f2c36)||_0x543fdf(_0x5f2c36,_0x13dd45['getRanges']()))){if(_0x452bb9){if(_0x13dd45[_0x3561('0x91')]&&_0x13dd45[_0x3561('0x91')][_0x3561('0xe6')])continue;for(const _0x363a2d of _0x13dd45[_0x3561('0x67')]())_0x452bb9[_0x3561('0x107')](_0x363a2d)||_0x452bb9[_0x3561('0xb0')](_0x363a2d);_0x13dd45[_0x3561('0x170')]();}else{_0x452bb9=_0x13dd45;for(const _0x2c757b of _0x5f2c36)_0x13dd45[_0x3561('0x107')](_0x2c757b)||_0x13dd45['addRange'](_0x2c757b);}}if(_0x452bb9)return _0x452bb9;_0x3f2855['clear']();for(const {suggestion:_0x29250d,meta:_0x5b27b0}of this[_0x3561('0xc6')](_0x5f2c36,_0x3561('0x7e')))_0x5b27b0[_0x3561('0x15c')]&&(this[_0x3561('0x26')]||!_0x5b27b0['containsRangeInObject']&&!_0x5b27b0[_0x3561('0xcc')])&&Pt(_0x29250d,_0x7e8c9)&&_0x3f2855[_0x3561('0x4d')](_0x29250d);for(const _0x5b5929 of _0x3f2855){const _0x128eb6=_0x5b5929[_0x3561('0x67')]();if(!_0x7e8c9||!_0x7e8c9['skipNestingCheck']){if(_0x5f2c36[_0x3561('0xfa')](_0x75cabf=>_0x128eb6['some'](_0x3fe20f=>_0x3fe20f[_0x3561('0x15d')](_0x75cabf,!0x0))))return _0x5b5929;}(!_0x5b5929['attributes']||!_0x5b5929['attributes'][_0x3561('0x124')])&&(_0x128eb6[_0x3561('0xfa')](_0x459fd6=>_0x5f2c36[_0x3561('0x93')](_0x4acde9=>_0x4acde9['containsRange'](_0x459fd6,!0x0)))&&_0x5b5929['discard']());}const _0xdf32b5=_0x22a876(),_0x38b56f=_0x3dc48e['id'],_0x138aa6=_0x3561('0x172')+_0x15d00c,_0x5aa7e0=this[_0x3561('0xc3')]({'id':_0xdf32b5,'type':_0x138aa6,'createdAt':new Date(),'authorId':_0x38b56f,'attributes':_0x7e8c9});for(const _0x1016dd of _0x5f2c36)_0x1016dd[_0x3561('0xf2')](),_0x1016dd['isCollapsed']||_0x3561('0x1')==_0x1016dd[_0x3561('0x31')][_0x3561('0x3c')]||this[_0x3561('0x97')](_0x138aa6,_0xdf32b5,_0x38b56f,_0x1016dd,_0x495a04[_0x3561('0x74')]());return _0x5aa7e0;}[_0x3561('0x10')](_0x818886,_0x161107,_0x5d92a9,_0xfc8fed,_0x4f4db6){if(_0x818886[_0x3561('0xcb')])return[];if(_0x3561('0x13e')===this[_0x3561('0x130')])return[];const _0x560525=this[_0x3561('0xfc')][_0x3561('0x121')][_0x3561('0x14e')](_0x3561('0xb9'))['me']['id'],_0x2bc4c0=Array[_0x3561('0x141')](this[_0x3561('0x8d')][_0x3561('0xac')]())[_0x3561('0xce')](_0x38f415=>_0x3561('0xc8')==_0x38f415['type']&&_0x38f415[_0x3561('0x122')][_0x3561('0x13d')]==_0x161107&&_0x38f415[_0x3561('0x107')](_0x818886));if(_0x3561('0xdd')===this[_0x3561('0x130')]){const _0x3e82ea=this['_findSuggestions'](_0x818886,_0x3561('0x6c'))['filter'](({meta:_0x369b1b})=>_0x369b1b[_0x3561('0x15c')]&&!_0x369b1b[_0x3561('0xcc')]&&!_0x369b1b[_0x3561('0x66')])[_0x3561('0xb3')](({suggestion:_0x1e448b})=>_0x1e448b);_0x2bc4c0[_0x3561('0xe4')](..._0x3e82ea);}const _0x376f3e=new Map([[_0x818886,_0x5d92a9]]);for(const _0x36a96e of _0x2bc4c0){const _0x2fb4e3=_0x3561('0xc8')==_0x36a96e[_0x3561('0xfb')]?_0x36a96e['data'][_0x3561('0xdf')]:void 0x0,_0x2adea6=_0x36a96e[_0x3561('0x147')](),_0x4d664a=Array[_0x3561('0x141')](_0x376f3e['keys']())[_0x3561('0xb6')](_0x2c5262=>_0x2c5262[_0x3561('0x17')](_0x2adea6));if(!_0x4d664a)continue;const _0x3f1d08=_0x4d664a['getDifference'](_0x2adea6);this[_0x3561('0x148')](_0x161107)&&'insertion'==_0x36a96e['type']&&0x0!=_0x3f1d08[_0x3561('0xe6')]||(_0x376f3e['delete'](_0x4d664a),_0x3f1d08[_0x3561('0xd9')](_0x49ba23=>{_0x376f3e[_0x3561('0x98')](_0x49ba23,_0x5d92a9);}),_0x3561('0x6c')!=_0x36a96e[_0x3561('0xfb')]&&_0x2fb4e3!=_0xfc8fed&&_0x376f3e[_0x3561('0x98')](_0x4d664a[_0x3561('0xe2')](_0x2adea6),_0x2fb4e3));}const _0x56bb23=[];for(const [_0x12ff21,_0xb2655d]of _0x376f3e){const _0x425bc7=_0x22a876(),_0x46bedc={'key':_0x161107,'oldValue':_0xb2655d,'newValue':_0xfc8fed};_0x161107[_0x3561('0xe6')]>0x25&&console['warn'](_0x3561('0x179'),{'key':_0x161107});const _0x5b3b41=(_0x3561('0x54')+(_0x161107+'|'+Et({'newValue':_0xfc8fed})))[_0x3561('0xd2')](0x0,0x3c),_0x2f272b=this['_setSuggestionData']({'id':_0x425bc7,'type':_0x5b3b41,'data':_0x46bedc,'createdAt':new Date(),'authorId':_0x560525,'attributes':_0x4f4db6});_0x56bb23[_0x3561('0x16b')](_0x2f272b),this[_0x3561('0x97')](_0x5b3b41,_0x425bc7,_0x560525,_0x12ff21);}return _0x56bb23;}[_0x3561('0x3')](_0x10ac84){this[_0x3561('0x34')][_0x3561('0x4d')](_0x10ac84);}[_0x3561('0x6')](_0x87d566){this['_inlineAttributeKeys'][_0x3561('0x4d')](_0x87d566);}[_0x3561('0xf1')](_0x1f1145,_0x153e74=[],_0xb00978=[]){this[_0x3561('0x86')](_0x1f1145,(_0x236076,..._0x4bd630)=>{this[_0x3561('0xd0')](()=>{_0x236076(..._0x4bd630);});});for(const _0x16081a of _0x153e74)this[_0x3561('0x6')](_0x16081a);for(const _0xfcfce0 of _0xb00978)this[_0x3561('0x3')](_0xfcfce0);}[_0x3561('0x18')](_0x2db5c9){return _0x3561('0xc8')==_0x2db5c9['type']?_0x2db5c9[_0x3561('0x7c')][_0x3561('0xaa')]('|')[0x0]:null;}['_setSuggestionRange'](_0x538217,_0x56edf9){const _0x4d67a5=_0x538217[_0x3561('0x129')]();this[_0x3561('0x178')][_0x3561('0xb7')](_0x5f4494=>{_0x5f4494['updateMarker'](_0x4d67a5,{'range':_0x56edf9});});}[_0x3561('0xf9')](_0x6f3d15){const _0x316643=_0x6f3d15['id'],_0x986637=this[_0x3561('0xfc')][_0x3561('0x117')][_0x3561('0x14e')](_0x3561('0x4'));this[_0x3561('0x2a')][_0x3561('0x138')](_0x316643)||this[_0x3561('0x2a')]['addCommentThread']({'channelId':_0x986637,'threadId':_0x316643,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x451a86=this['_commentsRepository']['getCommentThread'](_0x316643);_0x451a86[_0x3561('0x32')]('isRemovable'),_0x451a86[_0x3561('0x81')]=!0x1,_0x6f3d15[_0x3561('0x91')]=_0x451a86;}['_checkSuggestionCorrectness'](_0x17e2dc,_0x3bdcf4,_0x1145e5,_0x7a9ded){if(_0x17e2dc['type']!=_0x3bdcf4||_0x17e2dc[_0x3561('0x7c')]!=_0x1145e5||_0x17e2dc[_0x3561('0x40')]['id']!=_0x7a9ded)throw this[_0x3561('0xfc')][_0x3561('0xf')](_0x3561('0x16e')),new _0x9a5bf9(_0x3561('0x16e'),this);}[_0x3561('0x7b')](_0x25b917,_0x155901){const _0x55dd42=_0x25b917[_0x3561('0x147')]();if(_0x155901['isEqual'](_0x55dd42))_0x25b917['removeMarkers']();else{if(_0x55dd42['containsRange'](_0x155901)){const _0x59a9e0=this[_0x3561('0x178')][_0x3561('0x3a')](_0x155901[_0x3561('0x16d')][_0x3561('0x59')],'end');this['_setSuggestionRange'](_0x25b917,this[_0x3561('0x178')][_0x3561('0x110')](_0x55dd42[_0x3561('0x16d')],_0x59a9e0));const _0x52a493=_0x22a876(),_0x105938=_0x25b917[_0x3561('0x40')]['id'],_0x35d357=_0x25b917[_0x3561('0xfb')]+':'+_0x25b917['subType'];this[_0x3561('0xc3')]({'id':_0x52a493,'type':_0x35d357,'createdAt':new Date(),'authorId':_0x105938,'data':_0x25b917['data'],'attributes':_0x25b917['attributes']});const _0x33fb6b=this[_0x3561('0x178')][_0x3561('0x3a')](_0x155901[_0x3561('0x77')][_0x3561('0x15f')],_0x3561('0x28')),_0x17896=this['_model'][_0x3561('0x110')](_0x33fb6b,_0x55dd42[_0x3561('0x77')]);this[_0x3561('0x97')](_0x35d357,_0x52a493,_0x105938,_0x17896);}else{if(_0x55dd42[_0x3561('0x162')](_0x155901[_0x3561('0x16d')])){const _0x1ed168=this['_model'][_0x3561('0x3a')](_0x155901[_0x3561('0x16d')]['nodeBefore'],'end');this[_0x3561('0xa2')](_0x25b917,this['_model'][_0x3561('0x110')](_0x55dd42[_0x3561('0x16d')],_0x1ed168));}else{const _0x38dc15=this['_model']['createPositionAt'](_0x155901[_0x3561('0x77')]['parent'],_0x3561('0x28'));this[_0x3561('0xa2')](_0x25b917,this[_0x3561('0x178')][_0x3561('0x110')](_0x38dc15,_0x55dd42['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x280739){for(const {suggestion:_0x1e0f47,meta:_0x23f4d6}of this[_0x3561('0xc6')](_0x280739,_0x3561('0x6c'))){if(!_0x23f4d6[_0x3561('0x15c')])continue;const _0x10eeff=_0x1e0f47['getRanges']();for(const _0x379543 of _0x10eeff)if(!_0x280739[_0x3561('0x4a')](_0x379543)[_0x3561('0xe6')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b9579){const _0x28c262=this[_0x3561('0xfc')]['plugins'][_0x3561('0x14e')]('Users')[_0x3561('0x16c')](_0x2b9579);if(!_0x28c262)throw new _0x9a5bf9(_0x3561('0x12b'),this);return _0x28c262;}[_0x3561('0x9d')](_0x36e711){const _0x26917e=this[_0x3561('0xfc')][_0x3561('0x121')][_0x3561('0x14e')](_0x3561('0xb9')),_0x388ccf=_0x429fe9(_0x3561('0xe3')+_0x36e711),_0x43d1f3=_0x26917e['getUser'](_0x388ccf);return _0x43d1f3||_0x26917e[_0x3561('0xcd')]({'id':_0x388ccf,'name':_0x36e711});}[_0x3561('0x167')](_0x70f73d,_0x5d15a9,_0x4535ad,_0x57aa5a,_0x3fae1b){const _0x6149b2=this[_0x3561('0x95')](_0x57aa5a),_0xb05c3a=this[_0x3561('0xb1')]['buildSuggestion'](_0x70f73d,_0x5d15a9,_0x4535ad,_0x6149b2,_0x3fae1b,_0x3e7913=>{this[_0x3561('0x108')](_0x4535ad,{'attributes':_0x3e7913});const _0x57403e=this[_0x3561('0x29')](_0x4535ad);this[_0x3561('0x78')](new Set([_0x57403e])),this[_0x3561('0x12e')](new Set([_0x57403e]));});return this[_0x3561('0xd5')](_0xb05c3a,_0x3561('0x84'),()=>{this[_0x3561('0x108')](_0x4535ad,{'state':'accepted'});},{'priority':_0x3561('0xb4')}),this[_0x3561('0xd5')](_0xb05c3a,'discard',()=>{this[_0x3561('0x108')](_0x4535ad,{'state':_0x3561('0x16')});},{'priority':_0x3561('0xb4')}),this[_0x3561('0x8d')]['set'](_0x4535ad,_0xb05c3a),this[_0x3561('0x7f')][_0x3561('0x98')](_0xb05c3a,_0x3561('0xc')),_0xb05c3a;}['_splitMarkerName'](_0x5ac8ba){const _0x27173e=_0x5ac8ba['split'](':');return{'group':_0x27173e[0x0],'type':_0x27173e[0x1],'subType':_0x27173e[_0x3561('0xe6')]>=0x5?_0x27173e[0x2]:null,'id':_0x27173e[_0x3561('0xe6')]<0x5?_0x27173e[0x2]:_0x27173e[0x3],'authorId':_0x27173e['length']<0x5?_0x27173e[0x3]:_0x27173e[0x4],'markerCount':0x6==_0x27173e[_0x3561('0xe6')]?_0x27173e[0x5]:null};}[_0x3561('0xdc')](_0x1a15f4,_0x2c5db7,_0x16a534){const _0x1f03d7=_0x1a15f4['getFirstRange'](),_0x2a576d=_0x1f03d7[_0x3561('0x16d')],_0x4ef9cc=_0x1f03d7[_0x3561('0x77')];this[_0x3561('0xa2')](_0x1a15f4,this[_0x3561('0x178')][_0x3561('0x110')](_0x2a576d,_0x2c5db7));const _0x491a7b=_0x22a876(),_0xb833e3=_0x1a15f4[_0x3561('0x40')]['id'],_0x329f4b=_0x1a15f4[_0x3561('0xfb')]+(_0x1a15f4['subType']?':'+_0x1a15f4[_0x3561('0x7c')]:'');this[_0x3561('0xc3')]({'id':_0x491a7b,'type':_0x329f4b,'createdAt':new Date(),'authorId':_0xb833e3,'originalSuggestionId':_0x1a15f4['id'],'attributes':_0x1a15f4[_0x3561('0x13')],'data':_0x1a15f4[_0x3561('0x122')]});const _0x310091=this[_0x3561('0x18')](_0x1a15f4);(_0x3561('0x152')==_0x1a15f4['type']||_0x310091&&this['_isBlockAttribute'](_0x310091))&&(_0x16a534=this['_model'][_0x3561('0xe0')](_0x16a534[_0x3561('0x15f')])),this[_0x3561('0x97')](_0x329f4b,_0x491a7b,_0xb833e3,this['_model'][_0x3561('0x110')](_0x16a534,_0x4ef9cc));}[_0x3561('0xc6')](_0x51769e,_0x21f210=null){const _0x4f1730=[],_0x7795e3=this[_0x3561('0xfc')][_0x3561('0x121')]['get'](_0x3561('0xb9'))['me'];Array[_0x3561('0x102')](_0x51769e)||(_0x51769e=[_0x51769e]);for(const _0x1ff616 of this[_0x3561('0xbf')]()){if(!_0x1ff616['isInContent'])continue;if(_0x21f210&&_0x1ff616['type']!=_0x21f210)continue;let _0x1c49d2=!0x1;for(const _0x47f0d8 of _0x1ff616['getRanges']()){for(const _0xe624cc of _0x51769e){const _0x469f41=_0xe624cc[_0x3561('0x16d')][_0x3561('0x45')](_0x47f0d8[_0x3561('0x77')])||_0xe624cc[_0x3561('0x77')][_0x3561('0x45')](_0x47f0d8[_0x3561('0x16d')]);if(_0x469f41||_0xe624cc[_0x3561('0xe2')](_0x47f0d8)){const _0x157519=_0xe624cc[_0x3561('0x15d')](_0x47f0d8)&&xt(this[_0x3561('0x178')]['schema'],_0x47f0d8[_0x3561('0x16d')],_0xe624cc),_0x5139c0=_0x47f0d8['containsRange'](_0xe624cc)&&xt(this[_0x3561('0x178')]['schema'],_0xe624cc[_0x3561('0x16d')],_0x47f0d8);_0x4f1730[_0x3561('0x16b')]({'suggestion':_0x1ff616,'meta':{'isOwn':_0x7795e3==_0x1ff616[_0x3561('0x114')],'isNextTo':_0x469f41,'isInsideObject':_0x157519,'containsRangeInObject':_0x5139c0}}),_0x1c49d2=!0x0;break;}}if(_0x1c49d2)break;}}return _0x4f1730;}[_0x3561('0x97')](_0xa4e8fe,_0x76b4ea,_0x1e30d2,_0x2ddf9e,_0x59c031){this[_0x3561('0x178')][_0x3561('0xb7')](_0x2382d8=>{let _0x52c2c3=_0x3561('0x164')+_0xa4e8fe+':'+_0x76b4ea+':'+_0x1e30d2;_0x59c031&&(_0x52c2c3=_0x52c2c3+':'+_0x59c031),_0x2382d8[_0x3561('0x127')](_0x52c2c3,{'range':_0x2ddf9e,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3561('0x14b')](_0x4b275f){const _0x2578d2=_0x4b275f['previous'],_0x1d48b6=_0x4b275f[_0x3561('0x158')];_0x4b275f[_0x3561('0xae')]=null,_0x4b275f['next']=null,null!=_0x2578d2&&_0x2578d2['next']==_0x4b275f&&(_0x2578d2['next']=_0x1d48b6),null!=_0x1d48b6&&_0x1d48b6[_0x3561('0xae')]==_0x4b275f&&(_0x1d48b6[_0x3561('0xae')]=_0x2578d2),_0x3561('0x56')==this[_0x3561('0x7f')][_0x3561('0x14e')](_0x4b275f)&&(this[_0x3561('0x7f')][_0x3561('0x98')](_0x4b275f,_0x3561('0xc0')),this[_0x3561('0xee')](_0x3561('0x11b'),_0x4b275f,_0x2578d2,_0x1d48b6));}[_0x3561('0xc3')](_0x6e9920){const _0x5970ec=_0x6e9920['id'],_0x26e718=this[_0x3561('0xbc')](_0x6e9920);if(this[_0x3561('0x47')]&&this[_0x3561('0x47')]['addSuggestion']){const _0x3d9934=this['editor'][_0x3561('0x121')][_0x3561('0x14e')]('PendingActions'),_0xf584dc=_0x26e718[_0x3561('0x37')],_0x5cf55a=_0x26e718[_0x3561('0x7c')]?_0x26e718[_0x3561('0xfb')]+':'+_0x26e718['subType']:_0x26e718[_0x3561('0xfb')],_0x4fa2d0=this[_0x3561('0xfc')][_0x3561('0xd')],_0x548cae=_0x3d9934[_0x3561('0x4d')](_0x341f67(_0x4fa2d0,_0x3561('0x5'))),_0x429887={'id':_0x5970ec,'type':_0x5cf55a,'hasComments':_0xf584dc,'data':_0x6e9920[_0x3561('0x122')]||null,'originalSuggestionId':_0x6e9920[_0x3561('0x4b')]||null,'attributes':_0x26e718[_0x3561('0x13')]};this[_0x3561('0x47')][_0x3561('0x126')](_0x429887)[_0x3561('0x165')](_0x5042f6=>{_0x26e718['_saved']=!0x0,_0x3d9934[_0x3561('0xbe')](_0x548cae),_0x5042f6&&_0x5042f6['createdAt']&&(this[_0x3561('0x8d')]['get'](_0x5970ec)[_0x3561('0xfe')]=_0x5042f6[_0x3561('0xfe')]);})[_0x3561('0x140')](_0x538677=>{throw _0x134655(_0x3561('0xb5')),this[_0x3561('0xfc')]['model'][_0x3561('0x39')]({'isUndoable':!0x1},()=>{_0x26e718[_0x3561('0x63')]();}),_0x26e718[_0x3561('0x11a')](),this[_0x3561('0x8d')][_0x3561('0xab')](_0x26e718['id']),this[_0x3561('0x7f')][_0x3561('0xab')](_0x26e718),_0x538677;});}return _0x26e718;}[_0x3561('0x148')](_0x5a350a){return this[_0x3561('0x34')][_0x3561('0xf8')](_0x5a350a);}['_updateSuggestionData'](_0x529bab,_0x29f6b2){const _0x5c98d0=this[_0x3561('0xfc')]['plugins'][_0x3561('0x14e')](_0x3561('0x50')),_0x257e52=this[_0x3561('0x29')](_0x529bab);if(this[_0x3561('0x47')]&&this[_0x3561('0x47')]['updateSuggestion']){if(_0x257e52[_0x3561('0xff')]){const _0x148458=_0x5c98d0['add'](_0x341f67(this[_0x3561('0xfc')][_0x3561('0xd')],_0x3561('0x5')));this[_0x3561('0x47')][_0x3561('0x151')](_0x529bab,_0x29f6b2)[_0x3561('0x165')](()=>{_0x5c98d0[_0x3561('0xbe')](_0x148458);});}else _0x257e52['on']('change:_saved',()=>{this[_0x3561('0x108')](_0x529bab,_0x29f6b2);});}}[_0x3561('0x9')](_0x441a72){if(!this[_0x3561('0x47')]||!this['_adapter']['getSuggestion'])throw new _0x9a5bf9(_0x3561('0xbb'),this);return this[_0x3561('0x47')][_0x3561('0x29')](_0x441a72);}['_handleNewSuggestionMarker'](_0x47fe8f){const {id:_0x711d6e,type:_0x42df6c,subType:_0x1bc875,authorId:_0x5b9674}=this[_0x3561('0x3f')](_0x47fe8f),_0x27e2d4=this[_0x3561('0x8d')]['get'](_0x711d6e)||this[_0x3561('0x167')](_0x42df6c,_0x1bc875,_0x711d6e,_0x5b9674,{});switch(this[_0x3561('0xf7')](_0x27e2d4,_0x42df6c,_0x1bc875,_0x5b9674),this[_0x3561('0x7f')][_0x3561('0x14e')](_0x27e2d4)){case _0x3561('0xc'):this[_0x3561('0x9')](_0x711d6e)[_0x3561('0x165')](_0x1b9b18=>{let _0x583ce5=Promise[_0x3561('0xcf')]();_0x1b9b18[_0x3561('0x37')]&&(_0x583ce5=this[_0x3561('0x2a')][_0x3561('0x94')]({'channelId':this['editor'][_0x3561('0x117')]['get'](_0x3561('0x4')),'threadId':_0x711d6e})),_0x583ce5[_0x3561('0x165')](()=>{this[_0x3561('0xbc')](_0x1b9b18)[_0x3561('0xff')]=!0x0;});}),this[_0x3561('0x7f')][_0x3561('0x98')](_0x27e2d4,_0x3561('0xf3'));break;case _0x3561('0xc0'):this[_0x3561('0x108')](_0x711d6e,{'state':'open'});case _0x3561('0x1b'):this[_0x3561('0x7f')]['set'](_0x27e2d4,_0x3561('0x56')),this[_0x3561('0xee')](_0x3561('0x128'),_0x27e2d4);break;case _0x3561('0x56'):this['fire'](_0x3561('0x123'),_0x27e2d4);}return _0x27e2d4['addMarkerName'](_0x47fe8f),_0x27e2d4;}[_0x3561('0x12e')](_0x14510a){const _0x3f551=Array[_0x3561('0x141')](_0x14510a),_0x57b84d=_0x3f551[_0x3561('0xce')](_0x3130db=>_0x3561('0xc8')==_0x3130db[_0x3561('0xfb')]);this[_0x3561('0x160')](_0x57b84d);const _0x530281=_0x3f551['filter'](_0x5b43c9=>!_0x5b43c9[_0x3561('0x35')]&&_0x3561('0xc8')!=_0x5b43c9[_0x3561('0xfb')]),_0x2a888c=this[_0x3561('0xbf')]({'skipNotAttached':!0x0})['filter'](_0x16527a=>!_0x16527a['isMultiRange']&&_0x3561('0xc8')!=_0x16527a[_0x3561('0xfb')]),_0xe20dd8=_0x2a888c[_0x3561('0xce')](_0xb4accc=>!_0x14510a[_0x3561('0xf8')](_0xb4accc)),_0x534d1e=new Map(_0x2a888c[_0x3561('0xb3')](_0x47840c=>[_0x47840c,this['_suggestionFactory']['getSuggestionCallback'](_0x47840c[_0x3561('0xfb')],_0x47840c[_0x3561('0x7c')],'chain')])),_0x7d5b5f=new Map(_0x2a888c[_0x3561('0xb3')](_0x3ab45c=>[_0x3ab45c,_0x3ab45c[_0x3561('0x147')]()])),_0xf93445=new Set(),_0x4330c5=new Set();for(let _0x36878c=0x0;_0x36878c<_0x530281['length'];_0x36878c++)_0x3b6f65(_0x530281[_0x36878c],_0x530281,_0x36878c+0x1);for(let _0xaf2f23=0x0;_0xaf2f23<_0x530281[_0x3561('0xe6')];_0xaf2f23++)_0x3b6f65(_0x530281[_0xaf2f23],_0xe20dd8,0x0);const _0x141752=new Set();for(let _0x56de78=0x0;_0x56de78<_0x530281[_0x3561('0xe6')];_0x56de78++){const _0x4e1f1c=_0x530281[_0x56de78];!_0x4330c5[_0x3561('0xf8')](_0x4e1f1c)&&_0x4e1f1c[_0x3561('0xae')]&&(_0x141752['add'](_0x4e1f1c['previous']),_0x4e1f1c[_0x3561('0xae')]['next']===_0x4e1f1c&&(_0x4e1f1c[_0x3561('0xae')][_0x3561('0x158')]=null),_0x4e1f1c[_0x3561('0xae')]=null),!_0xf93445[_0x3561('0xf8')](_0x4e1f1c)&&_0x4e1f1c[_0x3561('0x158')]&&(_0x141752[_0x3561('0x4d')](_0x4e1f1c[_0x3561('0x158')]),_0x4e1f1c['next'][_0x3561('0xae')]===_0x4e1f1c&&(_0x4e1f1c[_0x3561('0x158')]['previous']=null),_0x4e1f1c[_0x3561('0x158')]=null);}function _0x3b6f65(_0x1ca556,_0x5ee00b,_0x3f5d66){for(let _0x7a856b=_0x3f5d66;_0x7a856b<_0x5ee00b['length'];_0x7a856b++){const _0x120480=_0x2e9a27(_0x1ca556,_0x5ee00b[_0x7a856b]);_0x120480&&(_0x120480[0x0][_0x3561('0x158')]=_0x120480[0x1],_0x120480[0x1]['previous']=_0x120480[0x0],_0xf93445[_0x3561('0x4d')](_0x120480[0x0]),_0x4330c5['add'](_0x120480[0x1]));}}function _0x2e9a27(_0x348988,_0x3b37dc){if(_0x348988[_0x3561('0x114')]['id']!==_0x3b37dc[_0x3561('0x114')]['id'])return null;const _0xa687af=_0x534d1e['get'](_0x348988)(_0x348988,_0x3b37dc,_0x7d5b5f[_0x3561('0x14e')](_0x348988),_0x7d5b5f['get'](_0x3b37dc));if(!_0xa687af)return null;return _0x534d1e['get'](_0x3b37dc)(_0x348988,_0x3b37dc,_0x7d5b5f[_0x3561('0x14e')](_0x348988),_0x7d5b5f['get'](_0x3b37dc))?_0xa687af[0x1]['commentThread']&&_0xa687af[0x1][_0x3561('0x91')]['length']?null:_0xa687af:null;}_0x141752['size']&&this[_0x3561('0x12e')](_0x141752);}[_0x3561('0x160')](_0x2fc882){if(0x0==_0x2fc882[_0x3561('0xe6')])return;const _0x5429c0=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3561('0xce')](_0x571542=>_0x3561('0xc8')==_0x571542['type']&&_0x571542['_isDataLoaded']),_0x492230=[],_0x36b958=new Map();for(const _0x58c8d5 of _0x5429c0){const _0x1dba27=_0x429fe9(_0x58c8d5[_0x3561('0x13')]);_0x36b958[_0x3561('0xf8')](_0x1dba27)||(_0x36b958[_0x3561('0x98')](_0x1dba27,_0x492230[_0x3561('0xe6')]),_0x492230[_0x3561('0x16b')]([]));const _0x59334f=_0x36b958['get'](_0x1dba27);_0x492230[_0x59334f]['push'](_0x58c8d5);}!function(){_0x492230[_0x3561('0x10c')]((_0x13a65,_0xf2b3b)=>{const _0x332994=_0x13a65[0x0]['createdAt'],_0x31033c=_0xf2b3b[0x0]['createdAt'];return _0x332994==_0x31033c?_0x13a65[0x0]['attributes']['groupId']<_0xf2b3b[0x0][_0x3561('0x13')]['groupId']?-0x1:0x1:_0x332994<_0x31033c?-0x1:0x1;});for(const _0x2a486a of _0x492230)_0x2a486a[_0x3561('0x10c')]((_0x2261d9,_0x37c44a)=>_0x2261d9['id']<_0x37c44a['id']?-0x1:0x1);}();for(let _0x58cd97=0x0;_0x58cd97<_0x492230[_0x3561('0xe6')];_0x58cd97++){if(0x0==_0x492230[_0x58cd97][_0x3561('0xe6')])continue;const _0x192e08=[];for(let _0x3a462d=_0x58cd97+0x1;_0x3a462d<_0x492230[_0x3561('0xe6')];_0x3a462d++)0x0!=_0x492230[_0x3a462d][_0x3561('0xe6')]&&_0x405aef(_0x492230[_0x58cd97],_0x492230[_0x3a462d])&&_0x192e08['push'](_0x3a462d);for(const _0x245e5a of _0x192e08)_0x492230[_0x58cd97]=_0x492230[_0x58cd97][_0x3561('0xf5')](_0x492230[_0x245e5a]),_0x492230[_0x245e5a]=[];}for(const _0x44e50a of _0x492230)for(let _0x2c8b74=0x0;_0x2c8b74<_0x44e50a[_0x3561('0xe6')];_0x2c8b74++)_0x44e50a[_0x2c8b74][_0x3561('0x158')]=_0x44e50a[_0x2c8b74+0x1]||null;for(const _0x5218f1 of _0x492230)for(let _0x2e0c97=0x0;_0x2e0c97<_0x5218f1[_0x3561('0xe6')];_0x2e0c97++)_0x5218f1[_0x2e0c97]['previous']=_0x5218f1[_0x2e0c97-0x1]||null;function _0x405aef(_0x52f20a,_0x3c3e4c){if(_0x52f20a[0x0][_0x3561('0x13')]['groupId']!==_0x3c3e4c[0x0]['attributes']['groupId']&&_0x52f20a[0x0][_0x3561('0x114')]!==_0x3c3e4c[0x0]['author'])return!0x1;if(!function(_0x230d9e,_0x188919){if(!_0x230d9e[_0x3561('0x37')]&&!_0x188919['hasComments'])return!0x0;if(_0x230d9e[_0x3561('0x37')]&&_0x188919[_0x3561('0x37')])return!0x1;if(_0x230d9e[_0x3561('0x37')]&&_0x188919['createdAt']<_0x230d9e[_0x3561('0x91')][_0x3561('0x9a')][_0x3561('0x14e')](0x0)[_0x3561('0xfe')])return!0x0;if(_0x188919[_0x3561('0x37')]&&_0x230d9e['createdAt']<_0x188919['commentThread']['comments']['get'](0x0)[_0x3561('0xfe')])return!0x0;return!0x1;}(_0x52f20a[0x0],_0x3c3e4c[0x0]))return!0x1;const _0x15e24d=_0x5d5f8a(_0x52f20a[0x0]['attributes'],'groupId'),_0x13cecd=_0x5d5f8a(_0x3c3e4c[0x0][_0x3561('0x13')],_0x3561('0x177'));if(!_0x385e63(_0x15e24d,_0x13cecd))return!0x1;return!!_0x52f20a[_0x3561('0xfa')](_0x4b6b81=>_0x3c3e4c['some'](_0x4bb3a0=>_0x4b6b81[_0x3561('0x147')]()['isEqual'](_0x4bb3a0[_0x3561('0x147')]())))&&_0x3c3e4c['every'](_0x2a7e96=>_0x52f20a['some'](_0x5e00f6=>_0x2a7e96[_0x3561('0x147')]()[_0x3561('0x45')](_0x5e00f6[_0x3561('0x147')]())));}}[_0x3561('0x78')](_0x456beb){const _0x5488ea=Array[_0x3561('0x141')](_0x456beb),_0x43f6d4=this[_0x3561('0xbf')]({'skipNotAttached':!0x0}),_0x5d16a6=_0x43f6d4[_0x3561('0xce')](_0x1e5852=>!_0x456beb[_0x3561('0xf8')](_0x1e5852)),_0x25e631=new Map(_0x5488ea[_0x3561('0xb3')](_0x37598a=>[_0x37598a,this[_0x3561('0xb1')]['getSuggestionCallback'](_0x37598a[_0x3561('0xfb')],_0x37598a['subType'],_0x3561('0xc7'))])),_0x1711e8=new Map(_0x43f6d4[_0x3561('0xb3')](_0x586796=>[_0x586796,_0x586796[_0x3561('0x67')]()]));for(let _0x294f86=0x0;_0x294f86<_0x5488ea[_0x3561('0xe6')];_0x294f86++){if(_0x11ad8b(this,_0x5488ea[_0x294f86],_0x5488ea,_0x294f86+0x1))return!0x0;}for(let _0x188da5=0x0;_0x188da5<_0x5488ea[_0x3561('0xe6')];_0x188da5++){if(_0x11ad8b(this,_0x5488ea[_0x188da5],_0x5d16a6,0x0))return!0x0;}return!0x1;function _0x11ad8b(_0x3a11a2,_0x1b1f44,_0x4affed,_0x197579){for(let _0x460917=_0x197579;_0x460917<_0x4affed[_0x3561('0xe6')];_0x460917++){const _0x4e67dc=_0x4affed[_0x460917];if(_0x4e67dc[_0x3561('0xfb')]!==_0x1b1f44[_0x3561('0xfb')]||_0x4e67dc[_0x3561('0x114')]['id']!==_0x1b1f44[_0x3561('0x114')]['id']||_0x4e67dc[_0x3561('0x7c')]!==_0x1b1f44[_0x3561('0x7c')])continue;if(!Ft(_0x1b1f44,_0x4e67dc,[_0x3561('0x177')]))continue;if(_0x3561('0xc8')==_0x1b1f44[_0x3561('0xfb')]&&_0x1b1f44[_0x3561('0x122')]['oldValue']!=_0x4e67dc['data'][_0x3561('0xdf')])continue;if(_0x3561('0xc8')==_0x1b1f44['type']&&_0x3a11a2[_0x3561('0x148')](_0x1b1f44['data'][_0x3561('0x13d')]))continue;if(_0x3561('0x152')==_0x1b1f44['type']){const _0x3d74f4=_0x3a11a2['editor'][_0x3561('0xa7')],_0x2b10e0=_0x1b1f44['getContainedElement']();if(_0x2b10e0&&(_0x3d74f4[_0x3561('0x3e')][_0x3561('0x5d')](_0x2b10e0)||_0x3d74f4[_0x3561('0x3e')]['isLimit'](_0x2b10e0)))continue;}const _0x2454c0=_0x25e631[_0x3561('0x14e')](_0x1b1f44),_0x5d0cb=_0x1711e8[_0x3561('0x14e')](_0x1b1f44),_0x54bce5=_0x1711e8[_0x3561('0x14e')](_0x4e67dc),_0x4ad3b5=_0x1b1f44[_0x3561('0x91')]&&_0x1b1f44[_0x3561('0x91')][_0x3561('0xe6')],_0x27660a=_0x4e67dc[_0x3561('0x91')]&&_0x4e67dc[_0x3561('0x91')][_0x3561('0xe6')];if(!_0x4ad3b5&&_0x2454c0(_0x54bce5,_0x5d0cb))return _0x3a11a2[_0x3561('0x149')](_0x4e67dc,_0x1b1f44),_0x1711e8['delete'](_0x1b1f44),!0x0;if(!_0x27660a&&_0x2454c0(_0x5d0cb,_0x54bce5))return _0x3a11a2[_0x3561('0x149')](_0x1b1f44,_0x4e67dc),_0x1711e8[_0x3561('0xab')](_0x4e67dc),!0x0;}return!0x1;}}[_0x3561('0x149')](_0x1a3955,_0x10a481){if(_0x1a3955[_0x3561('0x35')])for(const _0x5da986 of _0x10a481[_0x3561('0x67')]())_0x1a3955[_0x3561('0xb0')](_0x5da986);else{const _0x3fb346=_0x10a481[_0x3561('0x147')]()[_0x3561('0x77')];this[_0x3561('0xa2')](_0x1a3955,this[_0x3561('0x178')][_0x3561('0x110')](_0x1a3955[_0x3561('0x147')]()['start'],_0x3fb346));}_0x10a481[_0x3561('0x170')]();}[_0x3561('0x44')](_0x57b894,_0xa5832a){const _0x24b1ae=_0x57b894[_0x3561('0x12f')](_0x3561('0x11e'))||_0x57b894['startsWith'](_0x3561('0xc8'))?_0x3561('0x17c'):_0x57b894[_0x3561('0xb')]();return _0x341f67(this[_0x3561('0xfc')][_0x3561('0xd')],_0xa5832a+'_'+_0x24b1ae+_0x3561('0xc2'));}[_0x3561('0x1e')](){const _0x371980=this[_0x3561('0xfc')];_0x4a53ac(this['_model'],({left:_0x4d91f8,entered:_0x56f0c1})=>{const _0x5e0172=[];for(const _0x2b1274 of _0x4d91f8){const {group:_0x2755ba,type:_0x17d704}=this['_splitMarkerName'](_0x2b1274['name']);if(_0x3561('0x12c')===_0x2755ba){_0x5e0172[_0x3561('0x16b')](this[_0x3561('0x44')](_0x17d704,_0x3561('0xbd')));break;}}for(const _0x331b61 of _0x56f0c1){const {group:_0x35b450,type:_0x2239ff}=this['_splitMarkerName'](_0x331b61['name']);if(_0x3561('0x12c')===_0x35b450){_0x5e0172[_0x3561('0x16b')](this[_0x3561('0x44')](_0x2239ff,'ENTER'));break;}}_0x5e0172[_0x3561('0xe6')]&&_0x371980['ui'][_0x3561('0x145')]['announce'](_0x3561('0x133'),_0x5e0172['join']('\x20'));});}[_0x3561('0x120')](_0x40c34b){if(this[_0x3561('0x103')])return!0x1;const _0x17748c=this[_0x3561('0xfc')],_0x4f0819=_0x17748c['model'][_0x3561('0x6e')][_0x3561('0x11f')][_0x3561('0xec')]();if(0x0==_0x4f0819[_0x3561('0xe6')])return!0x1;const _0x1ad88e=[],_0x1282a7=_0x4f0819['filter'](_0x169c81=>_0x3561('0xc8')==_0x169c81[_0x3561('0xfb')]),_0x273216=_0x4f0819['filter'](_0x270b75=>_0x3561('0x60')==_0x270b75[_0x3561('0xfb')]&&_0x3561('0x9b')!=_0x270b75[_0x3561('0xda')]),_0x11a7df=_0x4f0819['filter'](_0x1eea23=>_0x3561('0xbe')==_0x1eea23[_0x3561('0xfb')]&&_0x3561('0x9b')!=_0x1eea23[_0x3561('0xda')]);for(const _0xbef06e of _0x1282a7)_0x1ad88e[_0x3561('0x16b')]({'key':_0xbef06e['attributeKey'],'newValue':_0xbef06e[_0x3561('0x57')],'oldValue':_0xbef06e[_0x3561('0x109')],'range':Ut(_0xbef06e[_0x3561('0x131')],_0x17748c[_0x3561('0xa7')])});for(const _0x31eb52 of _0x273216){const _0x3ee672=_0x11a7df[_0x3561('0xb6')](_0x4a3793=>_0x4a3793[_0x3561('0x75')]['isEqual'](_0x31eb52['position']));_0x3ee672&&_0x1ad88e['push']({'key':_0x3561('0x16a'),'newValue':_0x31eb52[_0x3561('0xda')],'oldValue':_0x3ee672[_0x3561('0xda')],'range':_0x17748c[_0x3561('0xa7')]['createRangeOn'](_0x31eb52[_0x3561('0x75')]['nodeAfter'])});}return 0x0!=_0x1ad88e[_0x3561('0xe6')]&&this['_reduceExistingSuggestions'](_0x40c34b,_0x1ad88e);}[_0x3561('0x169')](_0x56a7de){let _0x2eeb12=!0x1;const _0x7d72c3=this[_0x3561('0xfc')]['model'][_0x3561('0x6e')][_0x3561('0x11f')][_0x3561('0x73')]()[_0x3561('0xce')](_0x40490a=>_0x40490a[_0x3561('0x122')]['newRange']&&_0x40490a['name'][_0x3561('0x12f')](_0x3561('0x5b')));for(const _0x1bb491 of _0x7d72c3){const {subType:_0x5d5d9c,id:_0x2a7390}=this['_splitMarkerName'](_0x1bb491['name']),_0x255b6d=_0x5d5d9c[_0x3561('0xaa')]('|')[0x0];for(const _0x1a5b8a of this[_0x3561('0xbf')]({'skipNotAttached':!0x0}))_0x1a5b8a['id']!=_0x2a7390&&'attribute'==_0x1a5b8a['type']&&_0x1a5b8a[_0x3561('0x122')]&&_0x1a5b8a[_0x3561('0x122')]['key']==_0x255b6d&&_0x1a5b8a['getFirstRange']()[_0x3561('0x17')](_0x1bb491['data'][_0x3561('0x80')])&&(this[_0x3561('0xa3')](_0x1a5b8a,_0x1bb491[_0x3561('0x122')][_0x3561('0x80')],_0x56a7de),_0x2eeb12=!0x0);}return _0x2eeb12;}[_0x3561('0xd0')](_0x310b46){this[_0x3561('0xfc')],(this['_recordAttributeSuggestions']=!0x0,_0x310b46());}['_isRegisteredAttribute'](_0x542881){const _0x46a08a=this[_0x3561('0x148')](_0x542881),_0x311ce0=this[_0x3561('0x15e')]['has'](_0x542881);return _0x46a08a||_0x311ce0;}[_0x3561('0x71')](_0x4a29a7,_0x181cea){if(0x0==_0x181cea['length'])return!0x1;let _0x8777f6=!0x1;for(const _0x1dc337 of _0x181cea){const _0x264ca7=this['_findSuggestions'](_0x1dc337[_0x3561('0x131')],_0x3561('0xc8'))[_0x3561('0xce')](_0xa38c44=>!_0xa38c44[_0x3561('0x150')][_0x3561('0x66')])['map'](_0x358b15=>_0x358b15[_0x3561('0x12c')]),_0x189f62=_0x429fe9({'newValue':_0x1dc337[_0x3561('0x1f')]});_0x264ca7[_0x3561('0xce')](_0x13ef8f=>{const [_0x2a2285,_0x52d4bc]=_0x13ef8f[_0x3561('0x7c')][_0x3561('0xaa')]('|');return _0x2a2285==_0x1dc337['key']&&_0x52d4bc!=_0x189f62;})['forEach'](_0x19c9f3=>{this['_reduceSuggestionAttributeRange'](_0x19c9f3,_0x1dc337[_0x3561('0x131')],_0x4a29a7),_0x8777f6=!0x0;});}return _0x8777f6;}[_0x3561('0xa3')](_0x598efa,_0x27af2f,_0x3869b5){const _0x154d8d=_0x598efa['getFirstRange']()[_0x3561('0x4a')](_0x27af2f);0x0!==_0x154d8d[_0x3561('0xe6')]?0x1!==_0x154d8d['length']?this[_0x3561('0xdc')](_0x598efa,_0x27af2f[_0x3561('0x16d')],_0x27af2f[_0x3561('0x77')]):this['_setSuggestionRange'](_0x598efa,_0x154d8d[0x0]):_0x3869b5[_0x3561('0x99')](_0x598efa['getFirstMarker']());}}class Bt{constructor(_0x69cec){this[_0x3561('0x69')]=_0x69cec,this['_model']=_0x69cec[_0x3561('0xa7')],this[_0x3561('0x155')]=new Map(),this[_0x3561('0x168')]=new Map(),this[_0x3561('0x10d')]();}[_0x3561('0x171')](_0x46d817,_0x118888,_0x566bd3,_0x31deb4,_0x35eecf,_0x504b91){return new _0x495a04(this[_0x3561('0x178')],{'type':_0x46d817,'subType':_0x118888,'id':_0x566bd3,'author':_0x31deb4,'creator':_0x31deb4,'attributes':_0x35eecf,'onAttributesChange':_0x504b91,'onAccept':(..._0x54cd63)=>this['getSuggestionCallback'](_0x46d817,_0x118888,_0x3561('0x84'))(..._0x54cd63),'onDiscard':(..._0x197b04)=>this[_0x3561('0xa')](_0x46d817,_0x118888,_0x3561('0x63'))(..._0x197b04)});}[_0x3561('0x58')](_0x57ebae,_0x3a44d0,_0x670a27,_0x355633){const _0x31bcef=_0x57ebae+':'+_0x3a44d0+':'+_0x670a27;this[_0x3561('0x155')]['set'](_0x31bcef,_0x355633);}[_0x3561('0xa')](_0x9df012,_0x5a5a73,_0x7244fd){const _0x1ff652=_0x9df012+':'+_0x5a5a73+':'+_0x7244fd;return this[_0x3561('0x155')][_0x3561('0x14e')](_0x1ff652)||this['_defaultCallbacks'][_0x3561('0x14e')](_0x9df012+':'+_0x7244fd);}[_0x3561('0x10d')](){const _0x102c31=()=>!0x1,_0x46f372=_0x2cb395=>{_0x2cb395['sort']((_0x49f085,_0x4e892e)=>_0x49f085[_0x3561('0x16d')]['isBefore'](_0x4e892e[_0x3561('0x16d')])?0x1:-0x1),this['_model'][_0x3561('0xb7')](_0x4ad14c=>{for(const _0x55ac80 of _0x2cb395){let _0x1f77f4;_0x1f77f4=_0x55ac80['end'][_0x3561('0x15a')]&&_0x55ac80[_0x3561('0x77')][_0x3561('0x15f')]==_0x55ac80[_0x3561('0x16d')]['nodeAfter']?_0x4ad14c[_0x3561('0x83')](_0x55ac80[_0x3561('0x16d')][_0x3561('0x53')],'on'):_0x4ad14c[_0x3561('0x83')](_0x55ac80),this[_0x3561('0x178')][_0x3561('0x3b')](_0x1f77f4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x47dbf0=(_0x31d7ed,_0x558461)=>{_0x558461&&this[_0x3561('0x178')]['change'](_0x2d20e3=>{const {commandName:_0x471540,commandParams:_0x240c19=[]}=_0x558461,_0x4531fa=_0x31d7ed[_0x3561('0xb3')](_0x2b7d0a=>(Rt(_0x2b7d0a)&&(_0x2b7d0a=this['_model'][_0x3561('0x110')](_0x2b7d0a[_0x3561('0x77')])),_0x2b7d0a))[_0x3561('0xce')](_0xb4e951=>_0x3561('0x1')!==_0xb4e951[_0x3561('0x31')][_0x3561('0x3c')]);if(_0x4531fa[_0x3561('0xe6')]<0x1)return;const _0x1846b1=Array[_0x3561('0x141')](this[_0x3561('0x178')][_0x3561('0x6e')][_0x3561('0x15')][_0x3561('0x67')]())['map'](_0x301d66=>_0x31aba2['fromRange'](_0x301d66));_0x2d20e3['setSelection'](_0x4531fa);for(const _0x1ad6a0 of this[_0x3561('0x69')]['commands']['commands']())_0x1ad6a0[_0x3561('0x9c')]();_0x240c19['push']({'forceDefaultExecution':!0x0}),this[_0x3561('0x69')][_0x3561('0x115')](_0x471540,..._0x240c19);const _0x5900db=_0x1846b1['filter'](_0x59c5d1=>_0x3561('0x1')!=_0x59c5d1[_0x3561('0x31')][_0x3561('0x3c')]);_0x5900db[_0x3561('0xe6')]>0x0&&_0x2d20e3[_0x3561('0xb8')](_0x5900db);for(const _0x3a75a5 of _0x1846b1)_0x3a75a5[_0x3561('0xf2')]();});},_0x425e43=(_0x16a908,_0x48f742)=>0x1==_0x16a908[_0x3561('0xe6')]&&0x1==_0x48f742['length']&&_0x16a908[0x0][_0x3561('0x77')][_0x3561('0x45')](_0x48f742[0x0]['start']),_0x173aa4=(_0x283da1,_0x1f4f76,_0x439fde,_0x4114a7)=>Gt(_0x283da1,_0x1f4f76,_0x439fde,_0x4114a7,this[_0x3561('0x178')])?[_0x283da1,_0x1f4f76]:Gt(_0x1f4f76,_0x283da1,_0x4114a7,_0x439fde,this['_model'])?[_0x1f4f76,_0x283da1]:null;this['_defaultCallbacks'][_0x3561('0x98')](_0x3561('0x85'),_0x102c31),this['_defaultCallbacks'][_0x3561('0x98')](_0x3561('0x55'),_0x46f372),this[_0x3561('0x168')][_0x3561('0x98')](_0x3561('0xd3'),_0x425e43),this[_0x3561('0x168')][_0x3561('0x98')](_0x3561('0x17e'),_0x173aa4),this['_defaultCallbacks'][_0x3561('0x98')]('deletion:accept',_0x46f372),this[_0x3561('0x168')][_0x3561('0x98')](_0x3561('0x2e'),_0x102c31),this[_0x3561('0x168')][_0x3561('0x98')]('deletion:join',_0x425e43),this[_0x3561('0x168')][_0x3561('0x98')]('deletion:chain',_0x173aa4),this[_0x3561('0x168')][_0x3561('0x98')](_0x3561('0x1c'),_0x47dbf0),this[_0x3561('0x168')][_0x3561('0x98')](_0x3561('0x8b'),_0x102c31),this[_0x3561('0x168')][_0x3561('0x98')](_0x3561('0x143'),_0x425e43),this[_0x3561('0x168')][_0x3561('0x98')](_0x3561('0x7d'),_0x102c31),this[_0x3561('0x168')]['set'](_0x3561('0x23'),_0x47dbf0),this['_defaultCallbacks'][_0x3561('0x98')](_0x3561('0x8a'),_0x102c31),this['_defaultCallbacks'][_0x3561('0x98')](_0x3561('0xe'),_0x425e43),this[_0x3561('0x168')][_0x3561('0x98')]('formatBlock:chain',_0x102c31),this[_0x3561('0x168')]['set'](_0x3561('0x0'),_0x102c31),this[_0x3561('0x168')]['set'](_0x3561('0xf4'),(_0x388ed9,_0x12d7fc)=>{if(!_0x12d7fc)return;const _0x3c76cd=this[_0x3561('0x69')]['plugins'][_0x3561('0x14e')](p);this['_model'][_0x3561('0xb7')](_0x6696a5=>{if(_0x3561('0x16a')==_0x12d7fc[_0x3561('0x13d')])for(const _0x4bdafa of _0x388ed9){const _0x2f878a=_0x4bdafa[_0x3561('0x16d')][_0x3561('0x53')],_0x78e980=_0x12d7fc[_0x3561('0xdf')];_0x6696a5[_0x3561('0xd1')](_0x2f878a,_0x78e980);}else{if(_0x3c76cd[_0x3561('0x148')](_0x12d7fc['key']))for(const _0x35dffb of _0x388ed9)void 0x0!==_0x12d7fc['oldValue']?_0x6696a5[_0x3561('0x13b')](_0x12d7fc[_0x3561('0x13d')],_0x12d7fc[_0x3561('0xdf')],_0x35dffb[_0x3561('0x16d')][_0x3561('0x53')]):_0x6696a5[_0x3561('0x14a')](_0x12d7fc['key'],_0x35dffb[_0x3561('0x16d')][_0x3561('0x53')]);else for(const _0x780ab of _0x388ed9)_0x12d7fc[_0x3561('0xdf')]?_0x6696a5[_0x3561('0x13b')](_0x12d7fc[_0x3561('0x13d')],_0x12d7fc[_0x3561('0xdf')],_0x780ab):_0x6696a5[_0x3561('0x14a')](_0x12d7fc['key'],_0x780ab);}});}),this['_defaultCallbacks'][_0x3561('0x98')](_0x3561('0xe7'),_0x425e43);}}function xt(_0x1fc979,_0x3d2287,_0x1b623c){for(const _0xb618d2 of _0x3d2287[_0x3561('0x15f')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xb618d2[_0x3561('0x31')]==_0xb618d2)return!0x1;if(!_0x1b623c[_0x3561('0xa1')](_0xb618d2))return!0x1;if(_0x1fc979[_0x3561('0x5d')](_0xb618d2)||_0x1fc979[_0x3561('0x6d')](_0xb618d2))return!0x0;}return!0x1;}function Rt(_0x31d5e4){return _0x31d5e4[_0x3561('0x77')][_0x3561('0x15f')]==_0x31d5e4[_0x3561('0x16d')][_0x3561('0x53')]&&_0x31d5e4['end'][_0x3561('0x52')];}function Tt(_0x71c04b,_0x348679,_0x18cf66,_0x42184d){const _0x12e16b=_0xc0cf8f=>!_0xc0cf8f[_0x3561('0x15b')]['is'](_0x3561('0x82'))&&!_0x42184d[_0x3561('0x5d')](_0xc0cf8f[_0x3561('0x15b')]),_0x3f2209=_0x71c04b['start'][_0x3561('0x25')](_0x12e16b),_0x2144f2=_0x71c04b[_0x3561('0x77')][_0x3561('0x25')](_0x12e16b,{'direction':_0x3561('0x13c')});return(!_0x71c04b['start'][_0x3561('0x45')](_0x3f2209)||!_0x71c04b[_0x3561('0x77')]['isEqual'](_0x2144f2))&&(_0x3f2209[_0x3561('0xa6')](_0x2144f2)?_0x18cf66['updateMarker'](_0x348679,{'range':_0x18cf66[_0x3561('0x110')](_0x3f2209,_0x2144f2)}):_0x18cf66['removeMarker'](_0x348679),!0x0);}function Et(_0x28aeda){return _0x429fe9(_0x28aeda);}function Vt(_0x30d76d){const _0x10c7f2=_0x30d76d[_0x3561('0x16d')][_0x3561('0x53')];return _0x10c7f2&&_0x10c7f2['is'](_0x3561('0x33'));}function Ut(_0x14f63d,_0x4bdfd7){return null==_0x14f63d[_0x3561('0x77')]['nodeBefore']&&_0x14f63d[_0x3561('0x77')][_0x3561('0x15f')]==_0x14f63d['start'][_0x3561('0x53')]?Ot(_0x14f63d[_0x3561('0x16d')][_0x3561('0x53')],_0x4bdfd7):_0x14f63d;}function Ot(_0x3c7a41,_0x5f30ed){const _0x2af9b6=_0x5f30ed['schema'][_0x3561('0x5d')](_0x3c7a41)||_0x5f30ed[_0x3561('0x3e')]['isSelectable'](_0x3c7a41);return _0x5f30ed[_0x3561('0x110')](_0x5f30ed[_0x3561('0x3a')](_0x3c7a41,'before'),_0x2af9b6?_0x5f30ed[_0x3561('0x30')](_0x3c7a41):_0x5f30ed['createPositionAt'](_0x3c7a41,_0x3561('0x77')));}function Gt(_0x1cba16,_0x4edc5a,_0x44c279,_0x1715ba,_0x565adb){if(!Ft(_0x1cba16,_0x4edc5a))return!0x1;if(_0x44c279[_0x3561('0x77')][_0x3561('0x45')](_0x1715ba[_0x3561('0x16d')]))return!0x0;if(_0x1cba16[_0x3561('0xfb')]!=_0x4edc5a[_0x3561('0xfb')])return!0x1;if(!_0x44c279[_0x3561('0x77')][_0x3561('0x174')](_0x1715ba[_0x3561('0x16d')]))return!0x1;const _0x4d2794=_0x565adb[_0x3561('0x110')](_0x44c279[_0x3561('0x77')],_0x1715ba[_0x3561('0x16d')])[_0x3561('0x96')]();for(const _0x2f1575 of _0x4d2794)if([_0x3561('0x61'),_0x3561('0x156')][_0x3561('0xad')](_0x2f1575['type'])&&_0x565adb[_0x3561('0x3e')][_0x3561('0x6d')](_0x2f1575[_0x3561('0x15b')]))return!0x1;return!0x0;}function Ft(_0x5e2f11,_0x5bfc41,_0x2d0041=[]){return!(!_0x5e2f11[_0x3561('0x1a')]||!_0x5bfc41['_isDataLoaded'])&&_0x385e63(_0x5d5f8a(_0x5e2f11[_0x3561('0x13')],_0x2d0041),_0x5d5f8a(_0x5bfc41['attributes'],_0x2d0041));}function Pt(_0x518af1,_0x2cfe32){const _0x3dd12f=Lt(_0x518af1[_0x3561('0x13')]),_0x390830=Lt(_0x2cfe32);if(!_0x518af1[_0x3561('0x1a')])return!0x1;for(const _0x368495 of Object[_0x3561('0x10b')](_0x390830))if(!_0x385e63(_0x3dd12f[_0x368495],_0x390830[_0x368495]))return!0x1;return!0x0;}function Lt(_0x2748ad){const _0x4fed4e=Object[_0x3561('0x157')]({},_0x2748ad);return delete _0x4fed4e[_0x3561('0x124')],delete _0x4fed4e['tablePasteChainId'],_0x4fed4e;}
|
|
23
|
+
const _0x9674=['CommentsRepository','getNearestSelectionRange','deletion:','_reduceExistingSuggestions','model','high','_isForcedDefaultExecutionBlock','unshift','rename','formatInline:','_trackFormatChanges','splice','every','isRemovable','comments','addComment','_createSuggestion','ck-suggestion-marker-','root','$text','_removeSuggestion','forceDefaultExecution','_isDataLoaded','nodeBefore','_getSuggestionData','clear','addMarkerName','removeMarker:suggestion:formatBlock','howMany','ariaLiveAnnouncer','isOwn','for','length','getMultiRangeId','_reduceSuggestionAttributeRange','insertion:discard','createPositionBefore','_splitMarkerName','isArray','removeMarker:suggestion:attribute','accepted','formatBlock:discard','insertion:join','suggestionUnloaded','_registerDefaultCallbacks','_getAuthorFromId','value','track-changes-adapter-already-set','name','announce','_commentsRepository','documentSelection','getCommentThread','reconvertMarker','hasCommentThread','getCustomProperty','enableReadOnlyMode','registerPostFixer','end','group','set','insertContent','suggestionChanged','ck-suggestion-marker-formatBlock','substring','getAttribute','createPositionAfter','addRange','_setSuggestionData','isBlock','push','elementStart','getSuggestionCallback','trackChanges','isInsideObject','track-changes-suggestion-not-found','editingDowncast','attributeKey','track-changes-suggestion-data-mismatch','_addThreadToSuggestion','format','containsPosition','config','consumable','PendingActions','isUndo','editor','addMarker','$graveyard','insertion:','discard','setSelection','listenTo','always','toViewElement','keys','getItems','showSuggestionHighlights','Users','enableCommand','markInlineFormat','_saved','_getExternalAuthor','containerElement','isSelectable','track-changes-user-not-found','trackChanges.mergeNestedSuggestions','notReady','_breakSuggestionMarker','highest','fire','rejected','containsRange','_getAttributeKey','editing','suggestion:','isMultiRange','_editor','_isBlockAttribute','deletion','subType','_rangeIsInLocalUserInsertion','isCollapsed','unbindElementFromMarkerName','trackChangesCommand','_recordAttributeSuggestions','removeClass','pop','_initAriaMarkerChangeAnnouncements','addMarker:suggestion:attribute','low','item','default','_cutOutSuggestionMarker','isExternal','position','execute','getMarkers','data','pluginName','multi','formatGroupId','_joinSuggestions','marker-count','type','start','commands','removed','find','createdAt','discardSuggestion','discardSelectedSuggestions','attributes','deletion:join','_adapter','move','isInContent','getFirstRange','ck-suggestion-marker-formatInline','detach','fromCharCode','from','schema','isTouching','removeMarker','deletion:discard','split','chain','parent','previous','markInsertion','getWalker','hasComments','attribute:join','trackChanges.trackFormatChanges','attribute:discard','consume','deletion:accept','newValue','suggestion','addMarker:suggestion','LEAVE','track-changes-enable-command-twice','isObject','getRanges','_suggestions','$elementName','requires','document','rootName','isBefore','locale','containsRangeInObject','has','authoredAt','oldRange','setAttribute','setTo','markerReady','addSuggestionData','newRange','_isRegisteredAttribute','_refreshAttributeSuggestionsChain','_recordAttributeChanges','forward','update:suggestion','concat','commentThread','_registerBlockAttribute','author','updateSuggestion','elementToElement','attribute:accept','_inlineAttributeKeys','filter','remove','markAttributeChange','_SUGGESTION_ANNOUNCEMENT','_blockAttributeKeys','_setSuggestionRange','change:data','next','isEqual','some','insertion:accept','_findSuggestions','upcast','backward','getUser','options','PENDING_ACTION_SUGGESTION','markerToHighlight','attribute','getChanges','return','discardAllSuggestions','open','_element','clone','markMultiRangeDeletion','isAtEnd','updateMarker','attributeOldValue','key','_onDiscard','ck-suggestion-marker','differ','applyOperation','isIntersectingWithRange','element','ENTER','change:activeMarkers','meta','isIntersecting','getRange','values','isAtStart','after','before','activeMarkers','lowest','define','acceptAllSuggestions','moveTargetPosition','join','assign','warn','includes','getAllAdjacentSuggestions','removeMarkers','_addSuggestionMarker','suggestion-type','attribute:','data-suggestion','init','getSuggestion','addUser','markerNameToElements','track-changes-command-not-found','isLocal','_getMarkerAnnouncementText','get','refresh','formatBlock','_defaultCallbacks','authorName','_model','change','startsWith','_suggestionFactory','_updateSuggestionData','add','nodeAfter','hasSuggestion','formatBlock:join','widget','addMarker:suggestion:formatBlock','oldValue','addClass','isLimit','_processAttributeChanges','ck-suggestion-marker--active','getChangedMarkers','addSuggestion','batch','createRange','size','_enabledCommands','toJSON','formatInline:chain','insertion:chain','getIntersection','buildSuggestion','acceptSuggestion','formatInline','_mergeNestedSuggestions','elementEnd','getAncestors','head','suggestionLoaded','createSelection','getLastMatchingPosition','isAfter','formatBlock:','createRangeOn','markers','never','getSuggestions','commandName','containsItem','attributeNewValue','getFirstMarker','insertion','_customCallbacks','creator','accept','stop','catch','createPositionAt','getShiftedBy','enqueueChange','writer','isNextTo','range','markerName','registerCustomCallback','collaboration.channelId','ready','insert','mapper','_checkSuggestionCorrectness','getDifference','addCommentThread','delete','multipleBlocks','_processAttributeSuggestions','addHighlight','then','conversion','map','_descriptionFactory','$marker','plugins','_suggestionState','sort','_refreshSuggestionsChain','splitPosition','dataReady','unbind','adapter','stopListening','markMultiRangeInsertion','_joinWithAdjacentSuggestions','dataDowncast','groupId','acceptSelectedSuggestions','skipNestingCheck','removeAttribute'];(function(_0x51fccd,_0x9674ab){const _0x19cd14=function(_0x3ec782){while(--_0x3ec782){_0x51fccd['push'](_0x51fccd['shift']());}};_0x19cd14(++_0x9674ab);}(_0x9674,0x1bc));const _0x19cd=function(_0x51fccd,_0x9674ab){_0x51fccd=_0x51fccd-0x0;let _0x19cd14=_0x9674[_0x51fccd];return _0x19cd14;};import{Plugin as _0x55104c,PendingActions as _0x591f53}from'ckeditor5/src/core.js';import{LiveRange as _0xb00d8d}from'ckeditor5/src/engine.js';import{CKEditorError as _0x26400e,uid as _0x53da6a,priorities as _0x482df7,logWarning as _0x51132c}from'ckeditor5/src/utils.js';import{toWidget as _0x590b33}from'ckeditor5/src/widget.js';import{Users as _0x2e2901,hashObject as _0x120711,surroundingMarkersDetector as _0x526c68}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x24fc8e from'./commands/trackchangescommand.js';import _0x383892 from'./commands/acceptsuggestioncommand.js';import _0x55d849 from'./commands/discardsuggestioncommand.js';import _0x4e0ac6 from'./commands/executeonallsuggestionscommand.js';import _0x1b069a from'./commands/executeonselectedsuggestionscommand.js';import _0xf9ee21 from'./suggestion.js';import _0x32c005 from'./suggestiondescriptionfactory.js';import _0x114ccf from'./integrations/aiassistant.js';import _0x250ab4 from'./integrations/alignment.js';import _0x2125c9 from'./integrations/basicstyles.js';import _0x2fdbcf from'./integrations/blockquote.js';import _0x521820 from'./integrations/casechange.js';import _0x2b06b5 from'./integrations/ckbox.js';import _0x202b66 from'./integrations/codeblock.js';import _0x3330df from'./integrations/comments.js';import _0x2ebf47 from'./integrations/deletecommand.js';import _0x37fdb4 from'./integrations/list.js';import _0x2c1659 from'./integrations/listproperties.js';import _0x54fd9c from'./integrations/entercommand.js';import _0x52519a from'./integrations/findandreplace.js';import _0x3608d4 from'./integrations/font.js';import _0x4bae4c from'./integrations/formatpainter.js';import _0x5cc4c3 from'./integrations/heading.js';import _0x399bbf from'./integrations/highlight.js';import _0x46cd1e from'./integrations/horizontalline.js';import _0x4e50d4 from'./integrations/htmlembed.js';import _0x4e57cf from'./integrations/image.js';import _0x4a2f88 from'./integrations/imagereplace.js';import _0x1245ff from'./integrations/imagestyle.js';import _0x5bce54 from'./integrations/importword.js';import _0x3e5f3e from'./integrations/indent.js';import _0x38016a from'./integrations/inputcommand.js';import _0x5b2057 from'./integrations/link.js';import _0x29aac3 from'./integrations/legacylist.js';import _0x377603 from'./integrations/legacylistproperties.js';import _0x4e3638 from'./integrations/mediaembed.js';import _0x97c4a9 from'./integrations/mention.js';import _0x21c4d6 from'./integrations/pagebreak.js';import _0x5a2208 from'./integrations/paragraph.js';import _0x1af964 from'./integrations/removeformat.js';import _0x1f9395 from'./integrations/restrictededitingmode.js';import _0x4b25d4 from'./integrations/shiftentercommand.js';import _0x4d03f2 from'./integrations/standardeditingmode.js';import _0x24486c from'./integrations/style.js';import _0x3d8133 from'./integrations/table.js';import _0x192348 from'./integrations/tablemergesplit.js';import _0x5dca0a from'./integrations/tableheadings.js';import _0x264ee7 from'./integrations/tableclipboard.js';import _0x555714 from'./integrations/tablecolumnresize.js';import _0x20d342 from'./integrations/template.js';import _0x2b25a8 from'./integrations/tableofcontents.js';import _0x576310 from'./integrations/title.js';import _0x17d10c from'./integrations/undo.js';import _0x4613a3 from'./integrations/tablecaption.js';import _0x3037cd from'./integrations/tableproperties.js';import{getTranslation as _0x4e3a96}from'./utils/common-translations.js';import{isEqual as _0x5acd85,omit as _0x39f2a8}from'lodash-es';export const renameAttributeKey='$elementName';export default class p extends _0x55104c{static get[_0x19cd('0x79')](){return['CommentsRepository',_0x2e2901,_0x591f53,_0x114ccf,_0x250ab4,_0x2125c9,_0x2fdbcf,_0x2b06b5,_0x521820,_0x202b66,_0x3330df,_0x2ebf47,_0x54fd9c,_0x52519a,_0x3608d4,_0x4bae4c,_0x5cc4c3,_0x399bbf,_0x46cd1e,_0x4e50d4,_0x4e57cf,_0x1245ff,_0x4a2f88,_0x5bce54,_0x3e5f3e,_0x38016a,_0x29aac3,_0x377603,_0x5b2057,_0x37fdb4,_0x2c1659,_0x4e3638,_0x97c4a9,_0x21c4d6,_0x5a2208,_0x1af964,_0x1f9395,_0x4b25d4,_0x4d03f2,_0x24486c,_0x3d8133,_0x192348,_0x5dca0a,_0x4613a3,_0x264ee7,_0x555714,_0x2b25a8,_0x3037cd,_0x20d342,_0x576310,_0x17d10c];}static get[_0x19cd('0x49')](){return'TrackChangesEditing';}constructor(_0x306c01){function _0x15c5b1(_0x2b358d){return _0x2b358d[_0x19cd('0x125')](_0x16f827=>String[_0x19cd('0x5e')](_0x16f827))[_0x19cd('0xc6')]('');}super(_0x306c01),this['_recordAttributeSuggestions']=!0x1,this['set'](_0x19cd('0xc1'),[]),this['on'](_0x19cd('0xb9'),(_0x2e9dbf,_0x56026c,_0x72fe17,_0x51bfdd)=>{this[_0x19cd('0xdc')]['change'](()=>{for(const _0x523255 of[..._0x51bfdd,..._0x72fe17])this['_model'][_0x19cd('0x103')]['has'](_0x523255)&&_0x306c01[_0x19cd('0x30')][_0x19cd('0x16d')](_0x523255);});}),this[_0x19cd('0x126')]=new _0x32c005(this['editor']['model'][_0x19cd('0x60')],this[_0x19cd('0x14')][_0x19cd('0x7d')]),this[_0x19cd('0x58')]=null,this[_0x19cd('0xdf')]=new Bt(this[_0x19cd('0x14')]),this[_0x19cd('0x77')]=new Map(),this['_commentsRepository']=_0x306c01['plugins']['get'](_0x19cd('0x138')),this[_0x19cd('0xf1')]=new Set(),this[_0x19cd('0xdc')]=this[_0x19cd('0x14')][_0x19cd('0x13c')],this['_suggestionState']=new WeakMap(),this[_0x19cd('0x13e')]=!0x1,this[_0x19cd('0x98')]=new Set(['$elementName']),this[_0x19cd('0x93')]=new Set(),_0x306c01[_0x19cd('0x10')][_0x19cd('0xc3')](_0x19cd('0x6c'),_0x19cd('0x42')),this[_0x19cd('0x142')]=_0x306c01[_0x19cd('0x10')]['get'](_0x19cd('0x6c')),_0x306c01[_0x19cd('0x10')][_0x19cd('0xc3')](_0x19cd('0x28'),!0x0),this[_0x19cd('0xf9')]=_0x306c01[_0x19cd('0x10')][_0x19cd('0xd7')](_0x19cd('0x28')),this[_0x19cd('0x3a')]=new _0x24fc8e(_0x306c01,this[_0x19cd('0xf1')]),this[_0x19cd('0x3e')](),this[_0x15c5b1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x15c5b1([0x34,0x30,0x34,0x38,0x30,0x32,0x35,0x36]);}[_0x19cd('0xd0')](){const _0x20b514=this[_0x19cd('0x14')],_0x2123b8=(_0x39210d,_0x94a40e)=>{if(_0x19cd('0xa6')!=_0x39210d)return _0x19cd('0x149')+_0x39210d;const _0x9bdf9a=_0x94a40e[_0x19cd('0x64')]('|')[0x0];return this[_0x19cd('0x34')](_0x9bdf9a)?_0x19cd('0x177'):_0x19cd('0x5c');};_0x20b514[_0x19cd('0x124')]['for'](_0x19cd('0xa'))[_0x19cd('0xa5')]({'model':_0x19cd('0x71'),'view':_0x4b9f2d=>{const {id:_0x55153e,type:_0x598916,subType:_0x3a80aa}=this[_0x19cd('0x15d')](_0x4b9f2d[_0x19cd('0x116')]),_0x3f7709=[_0x19cd('0xb3'),_0x2123b8(_0x598916,_0x3a80aa)];let _0x3fa16d=0xbb8;return this[_0x19cd('0xc1')][_0x19cd('0xc9')](_0x4b9f2d[_0x19cd('0x116')])&&(_0x3f7709['push'](_0x19cd('0xeb')),_0x3fa16d=0xbc2),_0x19cd('0x35')==_0x598916&&(_0x3fa16d+=0x5),{'classes':_0x3f7709,'attributes':{'data-suggestion':_0x55153e},'priority':_0x3fa16d};}}),_0x20b514['conversion']['for'](_0x19cd('0x133'))[_0x19cd('0xe1')](_0x42afa9=>{_0x42afa9['on'](_0x19cd('0x72'),(_0x3c4ed7,_0x4fde1a,_0x2e3147)=>{if(!_0x2e3147['options'][_0x19cd('0x1f')])return;const _0x83671d=_0x4fde1a[_0x19cd('0x41')];if(!_0x83671d)return;const _0x48c62e=_0x2e3147['mapper'][_0x19cd('0x1c')](_0x83671d);_0x20b514[_0x19cd('0x13c')]['schema'][_0x19cd('0x75')](_0x83671d)&&_0x48c62e&&!_0x48c62e[_0x19cd('0x16f')](_0x19cd('0xe5'))&&_0x48c62e['is'](_0x19cd('0x25'))&&_0x590b33(_0x48c62e,_0x2e3147[_0x19cd('0x113')]);},{'priority':_0x19cd('0x13d')});}),_0x20b514['conversion']['for']('dataDowncast')[_0x19cd('0xa5')]({'model':_0x19cd('0x71'),'view':(_0x205fce,_0x3f6b4a)=>{if(!_0x3f6b4a[_0x19cd('0xa3')][_0x19cd('0x1f')])return null;const {type:_0x208a3b,subType:_0x461386}=this['_splitMarkerName'](_0x205fce[_0x19cd('0x116')]);return{'classes':[_0x19cd('0xb3'),_0x2123b8(_0x208a3b,_0x461386)],'priority':0xbb8};}});const _0x20a25a=({showActiveMarkers:_0x5d2bc9=!0x0,isAttributeSuggestion:_0x1b3eb0=!0x1}={})=>(_0xd1c77,_0x4f0aa9,_0x2b8b53)=>{if(!_0x4f0aa9[_0x19cd('0x41')])return;const {id:_0x51cd72}=this[_0x19cd('0x15d')](_0x4f0aa9[_0x19cd('0x116')]);if(_0x1b3eb0){const _0x4b2330=this[_0x19cd('0x77')][_0x19cd('0xd7')](_0x51cd72),_0x22e1de=this[_0x19cd('0x2f')](_0x4b2330);if(!this[_0x19cd('0x34')](_0x22e1de))return;}if(_0x4f0aa9[_0x19cd('0x41')]['is']('selection'))return void _0x2b8b53[_0x19cd('0x11')][_0x19cd('0x6e')](_0x4f0aa9['item'],_0xd1c77[_0x19cd('0x168')]);const _0x54921f=_0x2b8b53[_0x19cd('0x11b')][_0x19cd('0x1c')](_0x4f0aa9[_0x19cd('0x41')]);if(_0x4f0aa9[_0x19cd('0x41')]['is']('element')&&_0x20b514['model'][_0x19cd('0x60')][_0x19cd('0x3')](_0x4f0aa9['item'])&&!_0x54921f[_0x19cd('0x16f')](_0x19cd('0x122'))){_0x2b8b53[_0x19cd('0x113')][_0x19cd('0xe8')]([_0x19cd('0xb3'),'ck-suggestion-marker-formatBlock'],_0x54921f),_0x2b8b53[_0x19cd('0x113')]['setAttribute']('data-suggestion',_0x51cd72,_0x54921f),_0x2b8b53[_0x19cd('0x11b')]['bindElementToMarker'](_0x54921f,_0x4f0aa9['markerName']),_0x5d2bc9&&(this['activeMarkers'][_0x19cd('0xc9')](_0x4f0aa9[_0x19cd('0x116')])?_0x2b8b53[_0x19cd('0x113')][_0x19cd('0xe8')](_0x19cd('0xeb'),_0x54921f):_0x2b8b53[_0x19cd('0x113')][_0x19cd('0x3c')]('ck-suggestion-marker--active',_0x54921f));for(const _0x21d4a4 of _0x20b514[_0x19cd('0x13c')]['createRangeIn'](_0x4f0aa9[_0x19cd('0x41')])[_0x19cd('0x1e')]())_0x2b8b53[_0x19cd('0x11')]['consume'](_0x21d4a4,_0xd1c77['name']);_0x2b8b53[_0x19cd('0x11')][_0x19cd('0x6e')](_0x4f0aa9['item'],_0xd1c77[_0x19cd('0x168')]);}};_0x20b514[_0x19cd('0x124')]['for'](_0x19cd('0x133'))[_0x19cd('0xe1')](_0x5ac0c6=>{_0x5ac0c6['on'](_0x19cd('0xe6'),(_0x49e921,_0x59e6a6,_0x2d1f9e)=>{_0x2d1f9e[_0x19cd('0xa3')][_0x19cd('0x1f')]&&_0x20a25a({'showActiveMarkers':!0x1})(_0x49e921,_0x59e6a6,_0x2d1f9e);},{'priority':_0x19cd('0x2b')});}),_0x20b514[_0x19cd('0x124')][_0x19cd('0x157')](_0x19cd('0x133'))[_0x19cd('0xe1')](_0x579fa5=>{_0x579fa5['on'](_0x19cd('0x3f'),(_0x100a00,_0x298099,_0x2fb2d5)=>{_0x2fb2d5[_0x19cd('0xa3')][_0x19cd('0x1f')]&&_0x20a25a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x100a00,_0x298099,_0x2fb2d5);},{'priority':_0x19cd('0x2b')});}),_0x20b514[_0x19cd('0x124')][_0x19cd('0x157')](_0x19cd('0x133'))['markerToData']({'model':_0x19cd('0x71'),'view':(_0x1d6d30,_0x2ac2c0)=>_0x2ac2c0['options'][_0x19cd('0x1f')]?null:{'group':_0x19cd('0x71'),'name':_0x1d6d30['substr'](0xb)}}),_0x20b514[_0x19cd('0x124')][_0x19cd('0x157')]('upcast')[_0x19cd('0x91')]({'view':{'name':_0x19cd('0x71'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x436921,{writer:_0x5df9a4})=>{let _0x3b3bf5=_0x19cd('0x31')+_0x436921[_0x19cd('0x179')](_0x19cd('0xcd'))+':'+_0x436921[_0x19cd('0x179')]('id');return _0x436921[_0x19cd('0x179')](_0x19cd('0x4d'))&&(_0x3b3bf5+=':'+_0x436921['getAttribute'](_0x19cd('0x4d'))),_0x5df9a4['createElement'](_0x19cd('0x127'),{'data-name':_0x3b3bf5});}}),_0x20b514['conversion']['for'](_0x19cd('0xa0'))['dataToMarker']({'view':'suggestion'}),_0x20b514[_0x19cd('0x124')][_0x19cd('0x157')](_0x19cd('0xa'))[_0x19cd('0xe1')](_0x1faea2=>{_0x1faea2['on']('addMarker:suggestion:formatBlock',_0x20a25a(),{'priority':'high'});}),_0x20b514[_0x19cd('0x124')][_0x19cd('0x157')](_0x19cd('0xa'))[_0x19cd('0xe1')](_0x18425a=>{_0x18425a['on']('addMarker:suggestion:attribute',_0x20a25a({'isAttributeSuggestion':!0x0}),{'priority':_0x19cd('0x13d')});}),_0x20b514[_0x19cd('0x124')]['for'](_0x19cd('0xa'))[_0x19cd('0xe1')](_0x328e5f=>{_0x328e5f['on'](_0x19cd('0x153'),(_0x55ff34,_0x285030,_0x2be560)=>{const _0x10c74f=_0x2be560[_0x19cd('0x11b')][_0x19cd('0xd3')](_0x285030['markerName']);if(_0x10c74f)for(const _0x3e5e77 of _0x10c74f)_0x3e5e77['getCustomProperty'](_0x19cd('0x122'))||(_0x2be560['writer'][_0x19cd('0x3c')]([_0x19cd('0xb3'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e5e77),_0x2be560[_0x19cd('0x113')][_0x19cd('0x137')](_0x19cd('0xcf'),_0x3e5e77),_0x2be560[_0x19cd('0x11b')]['unbindElementFromMarkerName'](_0x3e5e77,_0x285030[_0x19cd('0x116')]));},{'priority':_0x19cd('0x13d')});}),_0x20b514['conversion'][_0x19cd('0x157')](_0x19cd('0xa'))[_0x19cd('0xe1')](_0x1b36d2=>{_0x1b36d2['on'](_0x19cd('0x15f'),(_0x29fb27,_0x5724f2,_0x47c4fb)=>{const _0x174c94=_0x47c4fb[_0x19cd('0x11b')]['markerNameToElements'](_0x5724f2[_0x19cd('0x116')]);if(!_0x174c94)return;const {id:_0x5c4953}=this[_0x19cd('0x15d')](_0x5724f2[_0x19cd('0x116')]),_0xf6d737=this[_0x19cd('0x77')]['get'](_0x5c4953),_0x4dd02c=this[_0x19cd('0x2f')](_0xf6d737);if(this['_isBlockAttribute'](_0x4dd02c))for(const _0x698c1a of _0x174c94)_0x698c1a['getCustomProperty']('addHighlight')||(_0x47c4fb[_0x19cd('0x113')][_0x19cd('0x3c')]([_0x19cd('0xb3'),_0x19cd('0x177'),'ck-suggestion-marker--active'],_0x698c1a),_0x47c4fb[_0x19cd('0x113')][_0x19cd('0x137')](_0x19cd('0xcf'),_0x698c1a),_0x47c4fb[_0x19cd('0x11b')][_0x19cd('0x39')](_0x698c1a,_0x5724f2[_0x19cd('0x116')]));},{'priority':_0x19cd('0x13d')});}),_0x20b514[_0x19cd('0x13c')][_0x19cd('0x7a')][_0x19cd('0x171')](_0xec08d0=>{let _0x4e5595=!0x1;const _0x2fd7b2=Array['from'](_0x20b514[_0x19cd('0x13c')][_0x19cd('0x7a')][_0x19cd('0xb4')]['getChangedMarkers']()),_0x533d65=new Set();for(const {name:_0x121453,data:_0x4f4b77}of _0x2fd7b2){const {group:_0x3315ee,type:_0x2e00dc,subType:_0x19d1e0,id:_0x3386d4}=this[_0x19cd('0x15d')](_0x121453);if(_0x19cd('0x71')!==_0x3315ee)continue;const _0x8cba78=this[_0x19cd('0x77')][_0x19cd('0xd7')](_0x3386d4);if(null!=_0x4f4b77['newRange']){_0x19cd('0xf8')==_0x2e00dc&&(_0x4e5595=_0x4e5595||Tt(_0x4f4b77[_0x19cd('0x86')],_0x121453,_0xec08d0,_0x20b514[_0x19cd('0x13c')]['schema']));const _0x39eaac=_0x19cd('0xa6')==_0x2e00dc&&this[_0x19cd('0x34')](_0x19d1e0[_0x19cd('0x64')]('|')[0x0]);if(_0x4f4b77[_0x19cd('0x86')][_0x19cd('0x38')]||_0x19cd('0x16')==_0x4f4b77['newRange'][_0x19cd('0x14a')][_0x19cd('0x7b')]||_0x19cd('0xd9')==_0x2e00dc&&!Vt(_0x4f4b77['newRange'])||_0x39eaac&&!Vt(_0x4f4b77[_0x19cd('0x86')])||_0x19cd('0x35')==_0x2e00dc&&!(!Rt(_0x1d570a=_0x4f4b77[_0x19cd('0x86')])&&!function(_0x5e1a0d){return _0x5e1a0d['start'][_0x19cd('0x66')]==_0x5e1a0d[_0x19cd('0x172')][_0x19cd('0x14f')]&&_0x5e1a0d[_0x19cd('0x4f')][_0x19cd('0xae')];}(_0x1d570a)))_0xec08d0[_0x19cd('0x62')](_0x121453),_0x4e5595=!0x0;else{if(!_0x8cba78||!_0x8cba78['isInContent'])continue;_0x533d65[_0x19cd('0xe1')](_0x8cba78);}}}var _0x1d570a;return _0x533d65[_0x19cd('0xf0')]>0x0&&(_0x4e5595=!!this['_joinWithAdjacentSuggestions'](_0x533d65)||_0x4e5595),_0x4e5595;}),_0x20b514[_0x19cd('0x13c')][_0x19cd('0x7a')][_0x19cd('0x171')](_0xb62737=>{let _0x42ae09=!0x1;for(const _0x322fb8 of _0x20b514['model'][_0x19cd('0x7a')][_0x19cd('0xb4')][_0x19cd('0xa7')]())if(_0x19cd('0x11a')==_0x322fb8[_0x19cd('0x4e')])for(const _0x237af5 of this[_0x19cd('0x77')][_0x19cd('0xbd')]()){if(_0x237af5[_0x19cd('0x32')]||!_0x237af5[_0x19cd('0x5a')])continue;const _0x336629=_0x19cd('0xd9')==_0x237af5[_0x19cd('0x4e')],_0x1a89da=this['_getAttributeKey'](_0x237af5),_0x1debba=_0x1a89da&&this['_isBlockAttribute'](_0x1a89da);if(!_0x336629&&!_0x1debba)continue;const _0x3219da=_0x237af5[_0x19cd('0x5b')]();if(_0x3219da[_0x19cd('0x4f')][_0x19cd('0x66')]!=_0x3219da[_0x19cd('0x172')][_0x19cd('0x66')]&&!_0x3219da[_0x19cd('0x172')]['isAtEnd']){const _0x55b143=_0x20b514[_0x19cd('0x13c')][_0x19cd('0x110')](_0x3219da[_0x19cd('0x4f')][_0x19cd('0xe2')],_0x19cd('0x172')),_0x1a011d=_0x20b514[_0x19cd('0x13c')][_0x19cd('0xef')](_0x3219da[_0x19cd('0x4f')],_0x55b143);_0xb62737[_0x19cd('0xaf')](_0x237af5[_0x19cd('0x109')](),{'range':_0x1a011d}),_0x42ae09=!0x0;}}return _0x42ae09;}),_0x20b514[_0x19cd('0x13c')][_0x19cd('0x7a')][_0x19cd('0x171')](_0x8ea2c3=>this[_0x19cd('0xea')](_0x8ea2c3)),_0x20b514['model'][_0x19cd('0x7a')]['registerPostFixer'](_0x154cc8=>!_0x154cc8[_0x19cd('0xee')][_0x19cd('0xd5')]&&this[_0x19cd('0x121')](_0x154cc8)),_0x20b514[_0x19cd('0x13c')]['on']('_afterChanges',()=>{this[_0x19cd('0x3b')]=!0x1;}),_0x20b514[_0x19cd('0x13c')][_0x19cd('0x7a')]['on'](_0x19cd('0x9a'),(_0x4c1e29,_0x52d287)=>{if(!_0x52d287[_0x19cd('0xd5')]||_0x52d287[_0x19cd('0x13')])return;if(!this[_0x19cd('0x3b')])return;const _0x2242d0=_0x20b514['model'][_0x19cd('0x7a')][_0x19cd('0xb4')][_0x19cd('0xa7')]();if(0x0==_0x2242d0[_0x19cd('0x158')])return;const _0xc5b432=[],_0x7fb8e4=_0x2242d0['filter'](_0x636486=>_0x19cd('0xa6')==_0x636486['type']),_0x599e4f=_0x2242d0['filter'](_0x98d996=>'insert'==_0x98d996[_0x19cd('0x4e')]&&_0x19cd('0x14b')!=_0x98d996['name']),_0x4b0224=_0x2242d0[_0x19cd('0x94')](_0x324430=>'remove'==_0x324430[_0x19cd('0x4e')]&&'$text'!=_0x324430['name']);for(const _0x2b4b43 of _0x7fb8e4)this['_isRegisteredAttribute'](_0x2b4b43[_0x19cd('0xb')])&&_0xc5b432[_0x19cd('0x4')]({'key':_0x2b4b43[_0x19cd('0xb')],'newValue':_0x2b4b43[_0x19cd('0x108')],'oldValue':_0x2b4b43[_0x19cd('0xb0')],'range':Ut(_0x2b4b43[_0x19cd('0x115')],_0x20b514['model'])});for(const _0x3c8aad of _0x599e4f){const _0x12dc17=_0x4b0224[_0x19cd('0x52')](_0xcf9c2a=>_0xcf9c2a[_0x19cd('0xab')]===_0x3c8aad[_0x19cd('0xab')]);if(_0x12dc17){const _0x30529c=Ot(_0x3c8aad['position'][_0x19cd('0xe2')],_0x20b514[_0x19cd('0x13c')]);_0x12dc17[_0x19cd('0x168')]!==_0x3c8aad[_0x19cd('0x168')]&&_0xc5b432[_0x19cd('0x4')]({'key':'$elementName','newValue':_0x3c8aad['name'],'oldValue':_0x12dc17[_0x19cd('0x168')],'range':_0x30529c});for(const [_0x37338f,_0x11de42]of _0x12dc17[_0x19cd('0x56')]){if(!this[_0x19cd('0x87')](_0x37338f))continue;const _0x47a4f8=_0x3c8aad[_0x19cd('0x56')][_0x19cd('0xd7')](_0x37338f);_0x11de42!==_0x47a4f8&&_0xc5b432[_0x19cd('0x4')]({'key':_0x37338f,'newValue':_0x47a4f8,'oldValue':_0x11de42,'range':_0x30529c});}for(const [_0x55e5e4,_0x572845]of _0x3c8aad['attributes'])this[_0x19cd('0x87')](_0x55e5e4)&&(_0x12dc17['attributes'][_0x19cd('0x7f')](_0x55e5e4)||_0xc5b432[_0x19cd('0x4')]({'key':_0x55e5e4,'newValue':_0x572845,'oldValue':null,'range':_0x30529c}));}}0x0!=_0xc5b432[_0x19cd('0x158')]&&_0x20b514[_0x19cd('0x13c')][_0x19cd('0x112')](_0x52d287,_0x1d1e1f=>{const _0x4b816f=_0x53da6a();for(const {range:_0x56ddda,key:_0x53de52,oldValue:_0x38b8cf,newValue:_0x3ee898}of _0xc5b432)this[_0x19cd('0x96')](_0x56ddda,_0x53de52,_0x38b8cf,_0x3ee898,{'groupId':_0x4b816f});this[_0x19cd('0x13b')](_0x1d1e1f,_0xc5b432);});},{'priority':_0x19cd('0xc2')}),_0x20b514[_0x19cd('0x13c')][_0x19cd('0x103')]['on'](_0x19cd('0x8b'),(_0x164e58,_0x17284c,_0x51a046)=>{if(null==_0x51a046){const {id:_0x54fe34}=this[_0x19cd('0x15d')](_0x17284c[_0x19cd('0x168')]),_0x11089d=this['_suggestions'][_0x19cd('0xd7')](_0x54fe34);_0x11089d&&_0x11089d[_0x19cd('0x152')](_0x17284c[_0x19cd('0x168')]);}}),_0x20b514['model'][_0x19cd('0x7a')]['on']('change:data',()=>{const _0x460b2c=Array[_0x19cd('0x5f')](_0x20b514[_0x19cd('0x13c')][_0x19cd('0x7a')][_0x19cd('0xb4')][_0x19cd('0xec')]())[_0x19cd('0x94')](_0x4872e0=>_0x19cd('0x71')===this[_0x19cd('0x15d')](_0x4872e0['name'])[_0x19cd('0x173')]);if(0x0===_0x460b2c['length'])return;_0x460b2c['sort']((_0x40860f,_0x290441)=>{const _0x1bbd69=_0x40860f[_0x19cd('0x48')][_0x19cd('0x81')],_0x2c4af5=_0x290441[_0x19cd('0x48')][_0x19cd('0x81')];return null===_0x1bbd69&&null===_0x2c4af5?0x0:null===_0x1bbd69&&null!==_0x2c4af5?-0x1:null!==_0x1bbd69&&null===_0x2c4af5?0x1:_0x1bbd69['start'][_0x19cd('0x7c')](_0x2c4af5[_0x19cd('0x4f')])?-0x1:0x1;});const _0x31afcd=new Set(),_0xeec367=new Set();for(const {name:_0xc7970,data:_0x3f1938}of _0x460b2c){const {id:_0x2615e1}=this[_0x19cd('0x15d')](_0xc7970);if(null===_0x3f1938['oldRange']){const _0x5a3d9b=this['_handleNewSuggestionMarker'](_0xc7970);_0xeec367[_0x19cd('0xe1')](_0x5a3d9b);}else{const _0x1cea78=this[_0x19cd('0x77')][_0x19cd('0xd7')](_0x2615e1);null!==_0x3f1938[_0x19cd('0x86')]||_0x1cea78[_0x19cd('0x5a')]?(_0x31afcd[_0x19cd('0xe1')](_0x1cea78[_0x19cd('0xfc')]),_0xeec367['add'](_0x1cea78)):this[_0x19cd('0x14c')](_0x1cea78);}}_0xeec367['size']>0x0&&this[_0x19cd('0x12b')](_0xeec367);for(const _0x2ccdbe of _0x31afcd)this[_0x19cd('0x2c')](_0x19cd('0x176'),_0x2ccdbe);}),_0x20b514['model']['on'](_0x19cd('0xb5'),(_0x360c7e,_0x5c4d3b)=>{const _0x2f15f0=_0x5c4d3b[0x0];if(!this['_suggestions'][_0x19cd('0xf0')])return;if(!_0x2f15f0['isDocumentOperation'])return;if(_0x2f15f0[_0x19cd('0xee')][_0x19cd('0x13')]||!_0x2f15f0[_0x19cd('0xee')]['isLocal'])return;let _0x3f7206,_0xe50545;switch(_0x2f15f0[_0x19cd('0x4e')]){case _0x19cd('0x11a'):_0x3f7206=_0x20b514[_0x19cd('0x13c')][_0x19cd('0x110')](_0x2f15f0[_0x19cd('0x45')]),_0xe50545=_0x3f7206[_0x19cd('0x111')](_0x2f15f0[_0x19cd('0x154')]);break;case'split':_0x3f7206=_0x20b514[_0x19cd('0x13c')]['createPositionAt'](_0x2f15f0[_0x19cd('0x12c')]),_0xe50545=_0x20b514[_0x19cd('0x13c')][_0x19cd('0x110')](_0x2f15f0[_0x19cd('0xc5')]);break;case _0x19cd('0x59'):_0x3f7206=_0x20b514[_0x19cd('0x13c')][_0x19cd('0x110')](_0x2f15f0['targetPosition']),_0xe50545=_0x3f7206[_0x19cd('0x111')](_0x2f15f0[_0x19cd('0x154')]);break;default:return;}const _0x10bcb5=_0x20b514[_0x19cd('0x13c')]['createRange'](_0x3f7206,_0xe50545);_0x20b514[_0x19cd('0x13c')][_0x19cd('0xdd')](()=>{for(const {suggestion:_0x188ae7,meta:_0x17b647}of this[_0x19cd('0x9f')](_0x10bcb5)){if(_0x188ae7[_0x19cd('0x32')])continue;if('formatInline'==_0x188ae7[_0x19cd('0x4e')])continue;const _0xbe2ff4=this[_0x19cd('0x2f')](_0x188ae7);if(_0xbe2ff4&&this[_0x19cd('0x34')](_0xbe2ff4)&&_0x19cd('0x64')!=_0x2f15f0[_0x19cd('0x4e')])continue;const _0x4693d1=_0x188ae7[_0x19cd('0x48')]&&_0x188ae7[_0x19cd('0x48')][_0x19cd('0x120')];('formatBlock'!=_0x188ae7[_0x19cd('0x4e')]||_0x19cd('0x64')==_0x2f15f0['type']&&!_0x4693d1)&&(_0x17b647['containsRangeInObject']||_0x19cd('0x10a')==_0x188ae7[_0x19cd('0x4e')]&&_0x17b647[_0x19cd('0x156')]||_0x188ae7['getFirstRange']()[_0x19cd('0x2e')](_0x10bcb5)&&this[_0x19cd('0x2a')](_0x188ae7,_0x3f7206,_0xe50545));}});},{'priority':_0x19cd('0xc2')}),_0x20b514[_0x19cd('0x13c')]['on']('deleteContent',(_0x5d38df,_0x42ad4e)=>{const _0x36ba55=_0x42ad4e[0x0],_0x462388=_0x42ad4e[0x1];if(_0x462388&&_0x462388[_0x19cd('0x14d')])return;if(this[_0x19cd('0x13e')])return;if(!this[_0x19cd('0x3a')]['value'])return;if(_0x36ba55[_0x19cd('0x38')])return;const _0x5dd004=_0x20b514[_0x19cd('0x13c')][_0x19cd('0x60')],{start:_0x1aa130,end:_0x2b2b84}=_0x36ba55[_0x19cd('0x5b')](),_0x3b8396=_0x1aa130[_0x19cd('0xe2')]&&_0x5dd004[_0x19cd('0xe9')](_0x1aa130['nodeAfter'])?null:_0x5dd004['getNearestSelectionRange'](_0x1aa130,_0x19cd('0x8a')),_0x51558c=_0x2b2b84[_0x19cd('0x14f')]&&_0x5dd004[_0x19cd('0xe9')](_0x2b2b84[_0x19cd('0x14f')])?null:_0x5dd004[_0x19cd('0x139')](_0x2b2b84,_0x19cd('0xa1')),_0x1b3412=_0x20b514[_0x19cd('0x13c')]['createRange'](_0x3b8396?_0x3b8396[_0x19cd('0x4f')]:_0x1aa130,_0x51558c?_0x51558c['end']:_0x2b2b84);_0x20b514['model']['change'](_0x3165a2=>{this['markDeletion'](_0x1b3412);const _0x274285=_0x20b514['model'][_0x19cd('0x60')][_0x19cd('0x139')](_0x1b3412[_0x19cd('0x4f')]);_0x36ba55['is'](_0x19cd('0x16b'))?_0x3165a2[_0x19cd('0x19')](_0x274285):_0x36ba55[_0x19cd('0x83')](_0x274285);}),_0x5d38df['stop']();},{'priority':_0x482df7['normal']+0xa}),_0x20b514['model']['on']('insertContent',(_0x4740b2,_0x1c301b)=>{const _0x35881b=_0x1c301b[_0x1c301b[_0x19cd('0x158')]-0x1];_0x35881b&&_0x35881b[_0x19cd('0x14d')]||this[_0x19cd('0x13e')]||this[_0x19cd('0x3a')][_0x19cd('0x166')]&&(_0x20b514[_0x19cd('0x13c')][_0x19cd('0xdd')](()=>{let _0x5c79d2=_0x20b514['model'][_0x19cd('0x175')](_0x1c301b[0x0],_0x1c301b[0x1],_0x1c301b[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c79d2)return;_0x4740b2[_0x19cd('0xa8')]=_0x5c79d2[_0x19cd('0xac')]();const _0x414227=_0x5c79d2[_0x19cd('0x172')][_0x19cd('0x14f')],_0x2b9727=_0x20b514[_0x19cd('0x13c')][_0x19cd('0x60')];_0x414227&&_0x2b9727[_0x19cd('0x3')](_0x414227)&&!_0x2b9727[_0x19cd('0x75')](_0x414227)&&(_0x5c79d2=_0x20b514[_0x19cd('0x13c')][_0x19cd('0xef')](_0x5c79d2['start'],_0x20b514['model'][_0x19cd('0x110')](_0x414227,_0x19cd('0x172')))),this[_0x19cd('0x68')](_0x5c79d2);}),_0x4740b2[_0x19cd('0x10e')]());},{'priority':_0x19cd('0x13d')}),this[_0x19cd('0x14')]['commands']['add'](_0x19cd('0x7'),this[_0x19cd('0x3a')]),this['enableCommand'](_0x19cd('0x7'));const _0x3bf689=new _0x383892(_0x20b514,this[_0x19cd('0x77')]);_0x20b514['commands'][_0x19cd('0xe1')](_0x19cd('0xf7'),_0x3bf689),this['enableCommand'](_0x19cd('0xf7'));const _0x3ef672=new _0x55d849(_0x20b514,this[_0x19cd('0x77')]);_0x20b514[_0x19cd('0x50')]['add'](_0x19cd('0x54'),_0x3ef672),this[_0x19cd('0x21')](_0x19cd('0x54')),_0x20b514[_0x19cd('0x50')][_0x19cd('0xe1')](_0x19cd('0xc4'),new _0x4e0ac6(_0x20b514,_0x3bf689,this['_suggestions'])),this['enableCommand'](_0x19cd('0xc4')),_0x20b514['commands'][_0x19cd('0xe1')]('discardAllSuggestions',new _0x4e0ac6(_0x20b514,_0x3ef672,this['_suggestions'])),this[_0x19cd('0x21')](_0x19cd('0xa9')),_0x20b514[_0x19cd('0x50')][_0x19cd('0xe1')](_0x19cd('0x135'),new _0x1b069a(_0x20b514,_0x3bf689,this[_0x19cd('0x77')])),this['enableCommand'](_0x19cd('0x135')),_0x20b514['commands'][_0x19cd('0xe1')]('discardSelectedSuggestions',new _0x1b069a(_0x20b514,_0x3ef672,this[_0x19cd('0x77')])),this['enableCommand'](_0x19cd('0x55'));const _0x2ba0c1=_0x20b514[_0x19cd('0x128')][_0x19cd('0xd7')](_0x19cd('0x138'));this[_0x19cd('0x1a')](_0x2ba0c1,_0x19cd('0x147'),(_0x538210,{threadId:_0x2a9a4d})=>{const _0x2e51b8=this[_0x19cd('0x77')]['get'](_0x2a9a4d);_0x2e51b8&&_0x2e51b8[_0x19cd('0x8d')]&&0x1===_0x2e51b8['commentThread'][_0x19cd('0x158')]&&this['_updateSuggestionData'](_0x2a9a4d,{'hasComments':!0x0});},{'priority':_0x19cd('0x40')}),this[_0x19cd('0x1a')](_0x2ba0c1,'removeComment',(_0xa89dfe,{threadId:_0x6fa844})=>{const _0x690d95=this[_0x19cd('0x77')][_0x19cd('0xd7')](_0x6fa844);_0x690d95&&_0x690d95[_0x19cd('0x8d')]&&!_0x690d95['commentThread']['length']&&this['_updateSuggestionData'](_0x6fa844,{'hasComments':!0x1});},{'priority':_0x19cd('0x40')});}set['adapter'](_0x414f24){if(this[_0x19cd('0x58')])throw new _0x26400e(_0x19cd('0x167'),this);this[_0x19cd('0x58')]=_0x414f24;}get[_0x19cd('0x12f')](){return this[_0x19cd('0x58')];}[_0x19cd('0x105')]({skipNotAttached:_0x355542=!0x1,toJSON:_0x4153c4=!0x1}={}){const _0x2f100f=[];for(const _0x55c1d1 of this[_0x19cd('0x77')][_0x19cd('0xbd')]())_0x355542&&!_0x55c1d1[_0x19cd('0x5a')]||_0x2f100f[_0x19cd('0x4')](_0x55c1d1);return _0x4153c4?_0x2f100f[_0x19cd('0x125')](_0x4aad1a=>_0x4aad1a[_0x19cd('0xf2')]()):_0x2f100f;}[_0x19cd('0xd1')](_0xd659ee){const _0xad9016=this[_0x19cd('0x77')]['get'](_0xd659ee);if(!_0xad9016)throw new _0x26400e(_0x19cd('0x9'),this);return _0xad9016;}[_0x19cd('0xe3')](_0xa82545){return this[_0x19cd('0x77')][_0x19cd('0x7f')](_0xa82545);}[_0x19cd('0x85')](_0x1073c6){const {authorId:_0x3d4c47,id:_0x27de6d,attributes:_0x4415ff}=_0x1073c6,[_0x209b49,_0x146de0]=_0x1073c6['type']['split'](':'),_0x6472bd=this['_suggestions']['get'](_0x27de6d)||this[_0x19cd('0x148')](_0x209b49,_0x146de0,_0x27de6d,_0x3d4c47,_0x4415ff);if(this['_addThreadToSuggestion'](_0x6472bd),this[_0x19cd('0x11c')](_0x6472bd,_0x209b49,_0x146de0||null,_0x3d4c47),_0x6472bd[_0x19cd('0x53')]=_0x1073c6['createdAt'],_0x6472bd[_0x19cd('0x14e')]=!0x0,_0x4415ff&&_0x4415ff['@external']){const _0x183744=_0x4415ff['@external'],_0x77a5da=this[_0x19cd('0x24')](_0x183744[_0x19cd('0xdb')]);_0x6472bd[_0x19cd('0x80')]=_0x183744[_0x19cd('0x53')],_0x6472bd[_0x19cd('0x8f')]=_0x77a5da,_0x6472bd[_0x19cd('0x44')]=!0x0;}else _0x6472bd[_0x19cd('0x80')]=_0x1073c6[_0x19cd('0x53')];switch(_0x1073c6['data']&&(_0x6472bd[_0x19cd('0x48')]=_0x1073c6['data']),_0x1073c6[_0x19cd('0x56')]&&(_0x6472bd[_0x19cd('0x56')]=_0x1073c6['attributes']),this[_0x19cd('0x58')]&&this[_0x19cd('0x58')]['addSuggestion']||(_0x6472bd[_0x19cd('0x23')]=!0x0),this[_0x19cd('0x129')][_0x19cd('0xd7')](_0x6472bd)){case _0x19cd('0x29'):this[_0x19cd('0x129')]['set'](_0x6472bd,_0x19cd('0x12d'));break;case _0x19cd('0x84'):_0x6472bd[_0x19cd('0x5a')]?(this[_0x19cd('0x132')](new Set([_0x6472bd])),this['_refreshSuggestionsChain'](new Set([_0x6472bd])),this[_0x19cd('0x129')]['set'](_0x6472bd,'ready'),this['fire'](_0x19cd('0xfd'),_0x6472bd)):this[_0x19cd('0x129')]['set'](_0x6472bd,_0x19cd('0x51'));}return _0x6472bd;}[_0x19cd('0xf7')](_0x3fb757){this[_0x19cd('0x14d')](()=>{this[_0x19cd('0x14')]['model'][_0x19cd('0xdd')](()=>{for(const _0x263ca0 of _0x3fb757[_0x19cd('0xca')]())_0x263ca0[_0x19cd('0x10d')]();});});}[_0x19cd('0x54')](_0x2e6011){this['forceDefaultExecution'](()=>{this[_0x19cd('0x14')][_0x19cd('0x13c')]['change'](()=>{for(const _0x289373 of _0x2e6011[_0x19cd('0xca')]())_0x289373[_0x19cd('0x18')]();});});}[_0x19cd('0x21')](_0x39385e,_0x3b8f4b){const _0x4a3721=this[_0x19cd('0x14')][_0x19cd('0x50')][_0x19cd('0xd7')](_0x39385e);if(!_0x4a3721)throw new _0x26400e(_0x19cd('0xd4'),this,{'commandName':_0x39385e});if(this[_0x19cd('0xf1')]['has'](_0x4a3721))throw new _0x26400e(_0x19cd('0x74'),this,{'commandName':_0x39385e});this['_enabledCommands'][_0x19cd('0xe1')](_0x4a3721),_0x3b8f4b&&_0x4a3721['on']('execute',(_0x324920,_0x41c88f)=>{this[_0x19cd('0x3a')][_0x19cd('0x166')]&&(this[_0x19cd('0x13e')]||(_0x41c88f['length']>0x0&&_0x41c88f[_0x41c88f['length']-0x1]&&_0x41c88f[_0x41c88f['length']-0x1][_0x19cd('0x14d')]?_0x41c88f[_0x19cd('0x3d')]():(_0x324920['return']=_0x3b8f4b((..._0x179042)=>_0x4a3721[_0x19cd('0x46')](..._0x179042,{'forceDefaultExecution':!0x0}),..._0x41c88f),_0x324920[_0x19cd('0x10e')]())));},{'priority':'high'});}[_0x19cd('0x14d')](_0x3d69b2){let _0x474966,_0x1234c4;const _0x2117fe=this[_0x19cd('0x13e')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x474966=_0x3d69b2();}catch(_0x3e917e){_0x1234c4=_0x3e917e;}return _0x2117fe||(this[_0x19cd('0x13e')]=!0x1),_0x1234c4&&_0x26400e['rethrowUnexpectedError'](_0x1234c4,this),_0x474966;}['markInsertion'](_0x226555,_0x1acd0a=null,_0x36835a={}){if(_0x226555[_0x19cd('0x38')])return null;const _0x342a73=this[_0x19cd('0x14')][_0x19cd('0x128')][_0x19cd('0xd7')](_0x19cd('0x20'))['me'];for(const {suggestion:_0x1f22f9,meta:_0x56e7ee}of this[_0x19cd('0x9f')](_0x226555,'insertion'))if(_0x56e7ee[_0x19cd('0x156')]){if(!_0x56e7ee[_0x19cd('0x114')]){if(_0x56e7ee[_0x19cd('0x7e')]){if(!this[_0x19cd('0xf9')]||!Pt(_0x1f22f9,_0x36835a))continue;return _0x1f22f9;}if(Pt(_0x1f22f9,_0x36835a))return _0x1f22f9;this['_breakSuggestionMarker'](_0x1f22f9,_0x226555[_0x19cd('0x4f')],_0x226555[_0x19cd('0x172')]);break;}if(_0x1acd0a==_0x1f22f9['subType']&&Pt(_0x1f22f9,_0x36835a)){const _0x29fcc8=_0x1f22f9['getFirstRange']();return _0x29fcc8[_0x19cd('0x4f')][_0x19cd('0x9c')](_0x226555[_0x19cd('0x172')])?this[_0x19cd('0x99')](_0x1f22f9,this[_0x19cd('0xdc')][_0x19cd('0xef')](_0x226555[_0x19cd('0x4f')],_0x29fcc8[_0x19cd('0x172')])):this[_0x19cd('0x99')](_0x1f22f9,this['_model']['createRange'](_0x29fcc8[_0x19cd('0x4f')],_0x226555['end'])),_0x1f22f9;}}const _0x54ab09=_0x53da6a(),_0x564c4c=_0x342a73['id'],_0x5f2602=_0x1acd0a?_0x19cd('0x17')+_0x1acd0a:_0x19cd('0x10a'),_0x784ca5=this[_0x19cd('0x2')]({'id':_0x54ab09,'type':_0x5f2602,'createdAt':new Date(),'authorId':_0x564c4c,'attributes':_0x36835a});return this['_addSuggestionMarker'](_0x5f2602,_0x54ab09,_0x564c4c,_0x226555),_0x784ca5;}[_0x19cd('0x131')](_0x22ac2a,_0x4d7c75=_0x19cd('0x4a'),_0x47ce2d={}){const _0x29d8d5=this[_0x19cd('0x14')][_0x19cd('0x128')][_0x19cd('0xd7')]('Users')['me'],_0x138fe7=this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x19cd('0x10a'),_0x4d7c75,'join');for(const _0x356133 of this[_0x19cd('0x105')]())if(_0x356133['author']['id']==_0x29d8d5['id']&&_0x19cd('0x10a')==_0x356133[_0x19cd('0x4e')]&&_0x356133[_0x19cd('0x36')]==_0x4d7c75&&Pt(_0x356133,_0x47ce2d)&&(_0x138fe7(_0x356133[_0x19cd('0x76')](),_0x22ac2a)||_0x138fe7(_0x22ac2a,_0x356133[_0x19cd('0x76')]()))){for(const _0x5acd16 of _0x22ac2a)_0x356133[_0x19cd('0x1')](_0x5acd16);return _0x356133;}for(const {suggestion:_0x34e26f,meta:_0x1197fb}of this['_findSuggestions'](_0x22ac2a,_0x19cd('0x10a'))){if(!_0x1197fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1197fb[_0x19cd('0x7e')])continue;if(!Pt(_0x34e26f,_0x47ce2d))continue;let _0x153b5a=!0x0;for(const _0x25f912 of _0x34e26f['getRanges']())for(const _0x4c17a9 of _0x22ac2a)if(!_0x25f912[_0x19cd('0x2e')](_0x4c17a9)){_0x153b5a=!0x1;break;}if(_0x153b5a)return _0x34e26f;}const _0x163dae=_0x53da6a(),_0x340ace=_0x29d8d5['id'],_0x4fb55f=_0x19cd('0x17')+_0x4d7c75,_0x254352=this[_0x19cd('0x2')]({'id':_0x163dae,'type':_0x4fb55f,'createdAt':new Date(),'authorId':_0x340ace,'attributes':_0x47ce2d});for(const _0x271881 of _0x22ac2a)this[_0x19cd('0xcc')](_0x4fb55f,_0x163dae,_0x340ace,_0x271881,_0xf9ee21['getMultiRangeId']());return _0x254352;}[_0x19cd('0x22')](_0x93d0a7,_0x1806a9,_0x4727a7=null,_0x442764={}){if(_0x4727a7=_0x4727a7||Et(_0x1806a9),_0x93d0a7[_0x19cd('0x38')])return null;if('never'===this['_trackFormatChanges']){const _0xf4202d=this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x19cd('0xf8'),_0x4727a7,_0x19cd('0x10d'));return this[_0x19cd('0x14d')](()=>_0xf4202d([_0x93d0a7],_0x1806a9,_0x442764)),null;}const _0x104ef9=this['editor'][_0x19cd('0x128')][_0x19cd('0xd7')](_0x19cd('0x20'))['me'],_0x20b867=[];if('always'!==this[_0x19cd('0x142')])for(const {suggestion:_0x16aa7c,meta:_0x4257e1}of this[_0x19cd('0x9f')](_0x93d0a7,_0x19cd('0x10a')))_0x4257e1['isOwn']&&!_0x4257e1[_0x19cd('0x8')]&&_0x20b867['push'](..._0x16aa7c[_0x19cd('0x76')]());const _0xfd729=function(_0x1549af,_0x4d0b2c){const _0x549e48=[];for(const _0x3b9a59 of _0x4d0b2c){const _0x2840d5=_0x1549af[_0x19cd('0xf5')](_0x3b9a59);_0x2840d5&&_0x549e48['push'](_0x2840d5);}return _0x549e48;}(_0x93d0a7,_0x20b867),_0x28fdee=function(_0x25fd57,_0x5cbf75){const _0xfa2984=[_0x25fd57];for(const _0x5e94ba of _0x5cbf75){let _0x198c1b=0x0;for(;_0x198c1b<_0xfa2984[_0x19cd('0x158')];){const _0x41e3de=_0xfa2984[_0x198c1b]['getDifference'](_0x5e94ba);_0xfa2984[_0x19cd('0x143')](_0x198c1b,0x1,..._0x41e3de),_0x198c1b+=_0x41e3de[_0x19cd('0x158')];}}return _0xfa2984;}(_0x93d0a7,_0x20b867);_0xfd729[_0x19cd('0x158')]&&this[_0x19cd('0xdc')][_0x19cd('0xdd')](()=>{for(const _0x40224f of _0xfd729){const _0x6ce771=this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x19cd('0xf8'),_0x4727a7,'accept');this['forceDefaultExecution'](()=>_0x6ce771([_0x40224f],_0x1806a9,_0x442764));}});for(const _0x475bc7 of _0x28fdee){let _0x5ef8c0=null,_0x545ce4=_0x475bc7[_0x19cd('0x4f')],_0x988ede=_0x475bc7[_0x19cd('0x172')];for(const {suggestion:_0x5e4c42,meta:_0x587248}of this[_0x19cd('0x9f')](_0x475bc7,'formatInline')){if(!_0x587248[_0x19cd('0x156')])continue;if(_0x5e4c42[_0x19cd('0x36')]!=_0x4727a7)continue;if(!Pt(_0x5e4c42,_0x442764))continue;const _0x4be06f=_0x5e4c42[_0x19cd('0x5b')]();if(_0x4be06f[_0x19cd('0x2e')](_0x475bc7,!0x0))return null;_0x545ce4=_0x545ce4[_0x19cd('0x7c')](_0x4be06f[_0x19cd('0x4f')])?_0x545ce4:_0x4be06f[_0x19cd('0x4f')],_0x988ede=_0x988ede[_0x19cd('0x100')](_0x4be06f[_0x19cd('0x172')])?_0x988ede:_0x4be06f['end'],_0x5ef8c0?_0x4be06f[_0x19cd('0x4f')][_0x19cd('0x7c')](_0x5ef8c0[_0x19cd('0x5b')]()[_0x19cd('0x4f')])?(_0x5ef8c0[_0x19cd('0xcb')](),_0x5ef8c0=_0x5e4c42):_0x5e4c42[_0x19cd('0xcb')]():_0x5ef8c0=_0x5e4c42;}const _0x47068a=this[_0x19cd('0xdc')][_0x19cd('0xef')](_0x545ce4,_0x988ede);if(_0x5ef8c0)this['_setSuggestionRange'](_0x5ef8c0,_0x47068a);else{const _0x14f6e9=_0x53da6a(),_0x34f41a=_0x104ef9['id'];this[_0x19cd('0x2')]({'id':_0x14f6e9,'type':_0x19cd('0x141')+_0x4727a7,'data':_0x1806a9,'createdAt':new Date(),'authorId':_0x34f41a,'attributes':_0x442764}),this[_0x19cd('0xcc')](_0x19cd('0x141')+_0x4727a7,_0x14f6e9,_0x34f41a,_0x47068a);}}return null;}['markBlockFormat'](_0x26ed17,_0x571ca8,_0x275a03=[],_0xda4569=null,_0xc44a12={}){_0x571ca8[_0x19cd('0x4b')]||(_0x571ca8[_0x19cd('0x4b')]=_0x571ca8[_0x19cd('0x106')]),_0x571ca8[_0x19cd('0x120')]=_0x26ed17['is'](_0x19cd('0x115')),_0xda4569=_0xda4569||Et(_0x571ca8);const _0x59d282=_0x275a03[_0x19cd('0x125')](_0x444821=>Ot(_0x444821,this[_0x19cd('0xdc')])),_0x3893c4=_0x26ed17['is']('range')?_0x26ed17:Ot(_0x26ed17,this[_0x19cd('0xdc')]);if(_0x19cd('0x104')===this[_0x19cd('0x142')]){const _0x302656=this['_suggestionFactory']['getSuggestionCallback'](_0x19cd('0xd9'),_0xda4569,_0x19cd('0x10d'));return this[_0x19cd('0x14d')](()=>_0x302656([_0x3893c4],_0x571ca8,_0xc44a12)),null;}_0x59d282[_0x19cd('0x4')](_0x3893c4);let _0x341bef=!0x0;for(const _0x14e608 of _0x59d282)if(!this[_0x19cd('0x37')](_0x14e608)){_0x341bef=!0x1;break;}if(_0x341bef&&_0x19cd('0x1b')!==this['_trackFormatChanges']){const _0x44c9b7=this['_suggestionFactory'][_0x19cd('0x6')](_0x19cd('0xd9'),_0xda4569,'accept');return this['forceDefaultExecution'](()=>_0x44c9b7([_0x3893c4],_0x571ca8,_0xc44a12)),null;}let _0x5987e5=null,_0x473341=_0x3893c4[_0x19cd('0x4f')],_0x32ee80=_0x3893c4[_0x19cd('0x172')];for(const {suggestion:_0xfc0848,meta:_0xd6ce2f}of this[_0x19cd('0x9f')](_0x3893c4,_0x19cd('0xd9'))){if(!_0xd6ce2f['isOwn'])continue;if(_0xd6ce2f[_0x19cd('0x114')]||_0xd6ce2f[_0x19cd('0x7e')]||_0xd6ce2f['isInsideObject'])continue;if(_0xfc0848['data'][_0x19cd('0x4b')]!=_0x571ca8[_0x19cd('0x4b')])continue;if(!Pt(_0xfc0848,_0xc44a12))continue;const _0x5d3208=_0xfc0848['getFirstRange']();if(_0xfc0848[_0x19cd('0x36')]==_0xda4569){if(_0x5d3208[_0x19cd('0x2e')](_0x3893c4,!0x0))return null;_0x473341=_0x473341[_0x19cd('0x7c')](_0x5d3208[_0x19cd('0x4f')])?_0x473341:_0x5d3208['start'],_0x32ee80=_0x32ee80[_0x19cd('0x100')](_0x5d3208['end'])?_0x32ee80:_0x5d3208[_0x19cd('0x172')],_0x5987e5?_0x5d3208[_0x19cd('0x4f')][_0x19cd('0x7c')](_0x5987e5['getFirstRange']()[_0x19cd('0x4f')])?(_0x5987e5[_0x19cd('0xcb')](),_0x5987e5=_0xfc0848):_0xfc0848[_0x19cd('0xcb')]():_0x5987e5=_0xfc0848;}else{const _0x40ba88=_0x3893c4[_0x19cd('0xf5')](_0x5d3208);this[_0x19cd('0x43')](_0xfc0848,_0x40ba88);}}const _0x2c0735=this['editor']['plugins'][_0x19cd('0xd7')](_0x19cd('0x20'))['me'],_0x147ca5=_0x53da6a(),_0x584f21=_0x2c0735['id'];if(_0x5987e5)return this['_setSuggestionRange'](_0x5987e5,this['_model'][_0x19cd('0xef')](_0x473341,_0x32ee80)),_0x5987e5;{const _0x9e9f73=this[_0x19cd('0x2')]({'id':_0x147ca5,'type':_0x19cd('0x101')+_0xda4569,'data':_0x571ca8,'createdAt':new Date(),'authorId':_0x584f21,'attributes':_0xc44a12});return this[_0x19cd('0xcc')](_0x19cd('0x101')+_0xda4569,_0x147ca5,_0x584f21,this[_0x19cd('0xdc')][_0x19cd('0xef')](_0x473341,_0x32ee80)),_0x9e9f73;}}['markMultiRangeBlockFormat'](_0x8e1590,_0x1f8366,_0x56e184=[],_0x13836c=null,_0x41d22b={}){_0x1f8366[_0x19cd('0x4b')]||(_0x1f8366['formatGroupId']=_0x1f8366[_0x19cd('0x106')]);const _0x5b7d05=_0x8e1590[0x0];_0x1f8366[_0x19cd('0x120')]=_0x5b7d05['is'](_0x19cd('0x115')),_0x13836c=_0x13836c||Et(_0x1f8366);const _0x16931f=_0x56e184['map'](_0xc23beb=>Ot(_0xc23beb,this['_model'])),_0x180cb2=_0x5b7d05['is'](_0x19cd('0x115'))?_0x8e1590:_0x8e1590[_0x19cd('0x125')](_0x2ff8c4=>Ot(_0x2ff8c4,this[_0x19cd('0xdc')]));if(_0x19cd('0x104')===this['_trackFormatChanges']){const _0x47b06=this['_suggestionFactory']['getSuggestionCallback'](_0x19cd('0xd9'),_0x13836c,'accept');return this[_0x19cd('0x14d')](()=>_0x47b06(_0x180cb2,_0x1f8366,_0x41d22b)),null;}_0x16931f[_0x19cd('0x4')](..._0x180cb2);let _0x62b969=!0x0;for(const _0x561e8a of _0x16931f)if(!this[_0x19cd('0x37')](_0x561e8a)){_0x62b969=!0x1;break;}if(_0x62b969&&_0x19cd('0x1b')!==this['_trackFormatChanges']){const _0x4dee22=this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x19cd('0xd9'),_0x13836c,_0x19cd('0x10d'));return this['forceDefaultExecution'](()=>_0x4dee22(_0x180cb2,_0x1f8366,_0x41d22b)),null;}const _0x3a0ef9=this[_0x19cd('0x14')][_0x19cd('0x128')][_0x19cd('0xd7')]('Users')['me'];for(const _0xb30c7a of this[_0x19cd('0x105')]()){if(_0xb30c7a[_0x19cd('0x8f')]['id']!=_0x3a0ef9['id'])continue;if('formatBlock'!=_0xb30c7a[_0x19cd('0x4e')]||_0xb30c7a['data'][_0x19cd('0x4b')]!=_0x1f8366[_0x19cd('0x4b')])continue;if(!Pt(_0xb30c7a,_0x41d22b))continue;const _0x3d253a=_0xb30c7a['subType']==_0x13836c;for(let _0x12a028=0x0;_0x12a028<_0x180cb2['length'];_0x12a028++){const _0x386ceb=_0x180cb2[_0x12a028];for(const _0x5e771f of _0xb30c7a[_0x19cd('0x47')]()){const _0x383ce0=_0x5e771f[_0x19cd('0xbc')]();if(_0x386ceb[_0x19cd('0x9c')](_0x383ce0)){_0x3d253a?(_0x180cb2['splice'](_0x12a028,0x1),_0x12a028--):_0xb30c7a['removeMarker'](_0x5e771f[_0x19cd('0x168')]);break;}}}}if(0x0==_0x180cb2[_0x19cd('0x158')])return null;const _0x13f213=this[_0x19cd('0xdf')][_0x19cd('0x6')]('formatBlock',_0x13836c,'join');for(const _0x5d5907 of this['getSuggestions']())if(_0x5d5907[_0x19cd('0x8f')]['id']==_0x3a0ef9['id']&&_0x19cd('0xd9')==_0x5d5907[_0x19cd('0x4e')]&&_0x5d5907[_0x19cd('0x48')]['formatGroupId']==_0x1f8366[_0x19cd('0x4b')]&&_0x5d5907[_0x19cd('0x36')]==_0x13836c&&Pt(_0x5d5907,_0x41d22b)&&(_0x13f213(_0x5d5907['getRanges'](),_0x180cb2)||_0x13f213(_0x180cb2,_0x5d5907[_0x19cd('0x76')]()))){for(const _0x1392f3 of _0x180cb2)_0x5d5907[_0x19cd('0x1')](_0x1392f3);return _0x5d5907;}const _0x5046c3=_0x53da6a(),_0x4bb0b9=_0x3a0ef9['id'],_0x21c062=_0x19cd('0x101')+_0x13836c,_0x1369ff=this[_0x19cd('0x2')]({'id':_0x5046c3,'type':_0x21c062,'data':_0x1f8366,'createdAt':new Date(),'authorId':_0x4bb0b9,'attributes':_0x41d22b});for(const _0xf6eedd of _0x180cb2)this[_0x19cd('0xcc')](_0x21c062,_0x5046c3,_0x4bb0b9,_0xf6eedd,_0xf9ee21[_0x19cd('0x159')]());return _0x1369ff;}['markDeletion'](_0x207f23,_0x287810=null,_0x20a415={}){if(_0x207f23[_0x19cd('0x38')])return null;const _0x53709b=this['editor'][_0x19cd('0x128')][_0x19cd('0xd7')](_0x19cd('0x20'))['me'],_0x22b996=new _0xb00d8d(_0x207f23[_0x19cd('0x4f')],_0x207f23[_0x19cd('0x172')]);for(const {suggestion:_0x2c8510,meta:_0x116a98}of this['_findSuggestions'](_0x22b996,_0x19cd('0x10a')))if(_0x116a98[_0x19cd('0x156')]&&!_0x116a98[_0x19cd('0x114')]){if(_0x2c8510[_0x19cd('0x32')]){const _0xa5dd33=_0x2c8510[_0x19cd('0x76')]()[_0x19cd('0x94')](_0x2e84c6=>_0x19cd('0x16')!=_0x2e84c6[_0x19cd('0x14a')]['rootName']);_0xa5dd33['every'](_0x1276a0=>_0x22b996['containsRange'](_0x1276a0,!0x0))&&_0x2c8510['discard']();if(_0xa5dd33[_0x19cd('0x9d')](_0x5947ac=>_0x5947ac[_0x19cd('0x2e')](_0x22b996,!0x0))){const _0x472869=this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x19cd('0x35'),_0x287810,_0x19cd('0x10d'));return this[_0x19cd('0x14d')](()=>_0x472869([_0x22b996],null,_0x20a415)),null;}}else{const _0x409ed1=_0x22b996[_0x19cd('0xf5')](_0x2c8510[_0x19cd('0x5b')]());null!==_0x409ed1&&_0x2c8510[_0x19cd('0xb2')]([_0x409ed1],null,_0x20a415);}}if(_0x22b996[_0x19cd('0x5d')](),_0x22b996[_0x19cd('0x38')]||_0x19cd('0x16')==_0x22b996[_0x19cd('0x14a')][_0x19cd('0x7b')])return null;let _0x455f1d=null,_0x337575=_0x22b996[_0x19cd('0x4f')],_0x46975b=_0x22b996[_0x19cd('0x172')];const _0x285219=this[_0x19cd('0x9f')](_0x22b996,_0x19cd('0x35'));for(const {suggestion:_0x44e3f3,meta:_0x31d179}of _0x285219){const _0x4c5029=this[_0x19cd('0xdc')][_0x19cd('0xef')](_0x337575,_0x46975b);if(_0x31d179['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31d179[_0x19cd('0x7e')]&&!_0x31d179['isInsideObject'])){if(_0x44e3f3[_0x19cd('0x32')]){if(!Pt(_0x44e3f3,_0x20a415))continue;let _0xb63ea0=!0x0;for(const _0x3e0da5 of _0x44e3f3[_0x19cd('0x76')]()){if(_0x3e0da5[_0x19cd('0x2e')](_0x4c5029,!0x0))return _0x44e3f3;_0x4c5029[_0x19cd('0x2e')](_0x3e0da5)||(_0xb63ea0=!0x1);}_0xb63ea0&&_0x44e3f3[_0x19cd('0x18')]();}else{const _0x8ed449=_0x44e3f3[_0x19cd('0x5b')]();if(_0x8ed449['containsRange'](_0x4c5029,!0x0))return _0x44e3f3;if(!Pt(_0x44e3f3,_0x20a415)){_0x4c5029[_0x19cd('0x2e')](_0x8ed449)?_0x44e3f3[_0x19cd('0xcb')]():_0x8ed449[_0x19cd('0xf')](_0x337575)?_0x337575=_0x8ed449['end']:_0x8ed449[_0x19cd('0xf')](_0x46975b)&&(_0x46975b=_0x8ed449[_0x19cd('0x4f')]);continue;}_0x337575=_0x337575['isBefore'](_0x8ed449[_0x19cd('0x4f')])?_0x337575:_0x8ed449[_0x19cd('0x4f')],_0x46975b=_0x46975b[_0x19cd('0x100')](_0x8ed449[_0x19cd('0x172')])?_0x46975b:_0x8ed449[_0x19cd('0x172')],_0x20a415=Object[_0x19cd('0xc7')]({},_0x44e3f3[_0x19cd('0x56')]),_0x455f1d?_0x8ed449[_0x19cd('0x4f')][_0x19cd('0x7c')](_0x455f1d[_0x19cd('0x5b')]()['start'])?(_0x455f1d[_0x19cd('0xcb')](),_0x455f1d=_0x44e3f3):_0x44e3f3[_0x19cd('0xcb')]():_0x455f1d=_0x44e3f3;}}}if(_0x455f1d)return this['_setSuggestionRange'](_0x455f1d,this[_0x19cd('0xdc')][_0x19cd('0xef')](_0x337575,_0x46975b)),_0x455f1d;{const _0x3e95ed=_0x53da6a(),_0x216ec8=this['_model'][_0x19cd('0xef')](_0x337575,_0x46975b),_0x4b53c2=_0x53709b['id'],_0x3df46b=_0x287810?_0x19cd('0x13a')+_0x287810:_0x19cd('0x35'),_0x1ab5b7=this[_0x19cd('0x2')]({'id':_0x3e95ed,'type':_0x3df46b,'createdAt':new Date(),'authorId':_0x4b53c2,'attributes':_0x20a415});return this[_0x19cd('0xcc')](_0x3df46b,_0x3e95ed,_0x4b53c2,_0x216ec8),_0x1ab5b7;}}[_0x19cd('0xad')](_0x2f1c80,_0x26fea3=_0x19cd('0x4a'),_0x4a33b5={}){const _0x4c1dab=this[_0x19cd('0x14')]['plugins'][_0x19cd('0xd7')](_0x19cd('0x20'))['me'],_0xade5a1=_0x2f1c80[_0x19cd('0x125')](_0x5b29bb=>new _0xb00d8d(_0x5b29bb[_0x19cd('0x4f')],_0x5b29bb[_0x19cd('0x172')])),_0x168551=new Set();for(const {suggestion:_0x273e55,meta:_0x506ee1}of this[_0x19cd('0x9f')](_0xade5a1,'insertion'))_0x506ee1[_0x19cd('0x156')]&&!_0x506ee1[_0x19cd('0x114')]&&_0x168551[_0x19cd('0xe1')](_0x273e55);for(const _0xac06f1 of _0x168551)if(_0xac06f1['isMultiRange']){const _0x3d19a5=_0xac06f1[_0x19cd('0x76')]();(!_0xac06f1[_0x19cd('0x56')]||!_0xac06f1[_0x19cd('0x56')]['skipNestingCheck'])&&(_0x3d19a5['every'](_0x86ac0e=>_0xade5a1[_0x19cd('0x9d')](_0x515953=>_0x515953[_0x19cd('0x2e')](_0x86ac0e,!0x0)))&&_0xac06f1[_0x19cd('0x18')]());if(_0xade5a1[_0x19cd('0x144')](_0x225921=>_0x3d19a5['some'](_0x60279c=>_0x60279c[_0x19cd('0x2e')](_0x225921,!0x0)))){const _0x3be9d3=this[_0x19cd('0xdf')][_0x19cd('0x6')]('deletion',_0x26fea3,_0x19cd('0x10d'));return this['forceDefaultExecution'](()=>_0x3be9d3(_0x2f1c80,null,_0x4a33b5)),null;}}else{const _0x332fb5=_0xac06f1[_0x19cd('0x5b')]();_0xade5a1[_0x19cd('0x9d')](_0x69380e=>_0x69380e['containsRange'](_0x332fb5,!0x0))&&_0xac06f1['discard']();if(_0xade5a1['every'](_0x1759c1=>_0x332fb5[_0x19cd('0x2e')](_0x1759c1,!0x0))){const _0x5e582a=this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x19cd('0x35'),_0x26fea3,'accept');return this[_0x19cd('0x14d')](()=>_0x5e582a(_0xade5a1,null,_0x4a33b5)),null;}}const _0x114055=this[_0x19cd('0xdf')][_0x19cd('0x6')]('deletion',_0x26fea3,_0x19cd('0xc6'));let _0x5031ee=null;for(const _0x1237eb of this[_0x19cd('0x105')]())if(_0x1237eb[_0x19cd('0x8f')]['id']==_0x4c1dab['id']&&_0x1237eb[_0x19cd('0x5a')]&&_0x19cd('0x35')==_0x1237eb[_0x19cd('0x4e')]&&_0x1237eb[_0x19cd('0x36')]==_0x26fea3&&Pt(_0x1237eb,_0x4a33b5)&&(_0x114055(_0x1237eb[_0x19cd('0x76')](),_0xade5a1)||_0x114055(_0xade5a1,_0x1237eb['getRanges']()))){if(_0x5031ee){if(_0x1237eb[_0x19cd('0x8d')]&&_0x1237eb[_0x19cd('0x8d')][_0x19cd('0x158')])continue;for(const _0x529aa0 of _0x1237eb[_0x19cd('0x76')]())_0x5031ee[_0x19cd('0xb6')](_0x529aa0)||_0x5031ee[_0x19cd('0x1')](_0x529aa0);_0x1237eb['removeMarkers']();}else{_0x5031ee=_0x1237eb;for(const _0x206ea0 of _0xade5a1)_0x1237eb[_0x19cd('0xb6')](_0x206ea0)||_0x1237eb[_0x19cd('0x1')](_0x206ea0);}}if(_0x5031ee)return _0x5031ee;_0x168551[_0x19cd('0x151')]();for(const {suggestion:_0x52c946,meta:_0x2b1fee}of this[_0x19cd('0x9f')](_0xade5a1,_0x19cd('0x35')))_0x2b1fee[_0x19cd('0x156')]&&(this[_0x19cd('0xf9')]||!_0x2b1fee[_0x19cd('0x7e')]&&!_0x2b1fee[_0x19cd('0x8')])&&Pt(_0x52c946,_0x4a33b5)&&_0x168551[_0x19cd('0xe1')](_0x52c946);for(const _0x3fd578 of _0x168551){const _0x35af90=_0x3fd578[_0x19cd('0x76')]();if(!_0x4a33b5||!_0x4a33b5['skipNestingCheck']){if(_0xade5a1[_0x19cd('0x144')](_0x3a8c59=>_0x35af90[_0x19cd('0x9d')](_0x20d84d=>_0x20d84d['containsRange'](_0x3a8c59,!0x0))))return _0x3fd578;}(!_0x3fd578[_0x19cd('0x56')]||!_0x3fd578['attributes'][_0x19cd('0x136')])&&(_0x35af90['every'](_0x2d449d=>_0xade5a1[_0x19cd('0x9d')](_0x3025ce=>_0x3025ce[_0x19cd('0x2e')](_0x2d449d,!0x0)))&&_0x3fd578[_0x19cd('0x18')]());}const _0x4d52cf=_0x53da6a(),_0x14d282=_0x4c1dab['id'],_0x21663f='deletion:'+_0x26fea3,_0x464675=this['_setSuggestionData']({'id':_0x4d52cf,'type':_0x21663f,'createdAt':new Date(),'authorId':_0x14d282,'attributes':_0x4a33b5});for(const _0x43be1f of _0xade5a1)_0x43be1f['detach'](),_0x43be1f['isCollapsed']||_0x19cd('0x16')==_0x43be1f[_0x19cd('0x14a')][_0x19cd('0x7b')]||this['_addSuggestionMarker'](_0x21663f,_0x4d52cf,_0x14d282,_0x43be1f,_0xf9ee21[_0x19cd('0x159')]());return _0x464675;}[_0x19cd('0x96')](_0x50acc7,_0x1f75af,_0x44ac92,_0x518fa8,_0x2cc851){if(_0x50acc7['isCollapsed'])return[];if(_0x19cd('0x104')===this[_0x19cd('0x142')])return[];const _0x1f3cc8=this[_0x19cd('0x14')][_0x19cd('0x128')]['get'](_0x19cd('0x20'))['me']['id'],_0x59db7d=Array[_0x19cd('0x5f')](this[_0x19cd('0x77')][_0x19cd('0xbd')]())[_0x19cd('0x94')](_0x7d2d5a=>_0x19cd('0xa6')==_0x7d2d5a['type']&&_0x7d2d5a['data'][_0x19cd('0xb1')]==_0x1f75af&&_0x7d2d5a[_0x19cd('0xb6')](_0x50acc7));if(_0x19cd('0x42')===this[_0x19cd('0x142')]){const _0x88c508=this[_0x19cd('0x9f')](_0x50acc7,_0x19cd('0x10a'))['filter'](({meta:_0xa697b1})=>_0xa697b1['isOwn']&&!_0xa697b1['isInsideObject']&&!_0xa697b1[_0x19cd('0x114')])[_0x19cd('0x125')](({suggestion:_0xb74088})=>_0xb74088);_0x59db7d[_0x19cd('0x13f')](..._0x88c508);}const _0x4fb221=new Map([[_0x50acc7,_0x44ac92]]);for(const _0x4b8865 of _0x59db7d){const _0x3ff99d=_0x19cd('0xa6')==_0x4b8865[_0x19cd('0x4e')]?_0x4b8865[_0x19cd('0x48')][_0x19cd('0xe7')]:void 0x0,_0x18114f=_0x4b8865[_0x19cd('0x5b')](),_0x34f406=Array[_0x19cd('0x5f')](_0x4fb221[_0x19cd('0x1d')]())[_0x19cd('0x52')](_0x1bfdd1=>_0x1bfdd1[_0x19cd('0xbb')](_0x18114f));if(!_0x34f406)continue;const _0x17ace8=_0x34f406['getDifference'](_0x18114f);this[_0x19cd('0x34')](_0x1f75af)&&_0x19cd('0x10a')==_0x4b8865['type']&&0x0!=_0x17ace8['length']||(_0x4fb221['delete'](_0x34f406),_0x17ace8['forEach'](_0x153536=>{_0x4fb221[_0x19cd('0x174')](_0x153536,_0x44ac92);}),'insertion'!=_0x4b8865[_0x19cd('0x4e')]&&_0x3ff99d!=_0x518fa8&&_0x4fb221['set'](_0x34f406[_0x19cd('0xf5')](_0x18114f),_0x3ff99d));}const _0xf97380=[];for(const [_0x1e3220,_0x431698]of _0x4fb221){const _0x88da59=_0x53da6a(),_0x1ffc42={'key':_0x1f75af,'oldValue':_0x431698,'newValue':_0x518fa8};_0x1f75af['length']>0x25&&console[_0x19cd('0xc8')]('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x1f75af});const _0x3ccdb0=(_0x19cd('0xce')+(_0x1f75af+'|'+Et({'newValue':_0x518fa8})))[_0x19cd('0x178')](0x0,0x3c),_0x55d04c=this[_0x19cd('0x2')]({'id':_0x88da59,'type':_0x3ccdb0,'data':_0x1ffc42,'createdAt':new Date(),'authorId':_0x1f3cc8,'attributes':_0x2cc851});_0xf97380['push'](_0x55d04c),this[_0x19cd('0xcc')](_0x3ccdb0,_0x88da59,_0x1f3cc8,_0x1e3220);}return _0xf97380;}['_registerBlockAttribute'](_0x509df3){this[_0x19cd('0x98')]['add'](_0x509df3);}['_registerInlineAttribute'](_0x39815e){this[_0x19cd('0x93')][_0x19cd('0xe1')](_0x39815e);}['_enableDefaultAttributesIntegration'](_0x56524d,_0x187449=[],_0x163685=[]){this[_0x19cd('0x21')](_0x56524d,(_0x2a2d14,..._0x3ae37e)=>{this[_0x19cd('0x89')](()=>{_0x2a2d14(..._0x3ae37e);});});for(const _0x347dcd of _0x187449)this['_registerInlineAttribute'](_0x347dcd);for(const _0x5646be of _0x163685)this[_0x19cd('0x8e')](_0x5646be);}['_getAttributeKey'](_0x17e7d8){return _0x19cd('0xa6')==_0x17e7d8['type']?_0x17e7d8[_0x19cd('0x36')][_0x19cd('0x64')]('|')[0x0]:null;}['_setSuggestionRange'](_0x3da442,_0x4c95f6){const _0x457f79=_0x3da442[_0x19cd('0x109')]();this[_0x19cd('0xdc')][_0x19cd('0xdd')](_0x234981=>{_0x234981[_0x19cd('0xaf')](_0x457f79,{'range':_0x4c95f6});});}[_0x19cd('0xd')](_0x2ce397){const _0x192ec9=_0x2ce397['id'],_0x13cbc2=this[_0x19cd('0x14')][_0x19cd('0x10')]['get'](_0x19cd('0x118'));this[_0x19cd('0x16a')][_0x19cd('0x16e')](_0x192ec9)||this[_0x19cd('0x16a')][_0x19cd('0x11e')]({'channelId':_0x13cbc2,'threadId':_0x192ec9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5d002a=this['_commentsRepository'][_0x19cd('0x16c')](_0x192ec9);_0x5d002a[_0x19cd('0x12e')](_0x19cd('0x145')),_0x5d002a[_0x19cd('0x145')]=!0x1,_0x2ce397[_0x19cd('0x8d')]=_0x5d002a;}[_0x19cd('0x11c')](_0xdb5117,_0x19a885,_0xc0813f,_0x4c5df2){if(_0xdb5117[_0x19cd('0x4e')]!=_0x19a885||_0xdb5117[_0x19cd('0x36')]!=_0xc0813f||_0xdb5117[_0x19cd('0x10c')]['id']!=_0x4c5df2)throw this[_0x19cd('0x14')][_0x19cd('0x170')](_0x19cd('0xc')),new _0x26400e(_0x19cd('0xc'),this);}[_0x19cd('0x43')](_0x22fd5b,_0x59dd05){const _0x56c8d4=_0x22fd5b[_0x19cd('0x5b')]();if(_0x59dd05['isEqual'](_0x56c8d4))_0x22fd5b['removeMarkers']();else{if(_0x56c8d4[_0x19cd('0x2e')](_0x59dd05)){const _0x1e769b=this[_0x19cd('0xdc')]['createPositionAt'](_0x59dd05[_0x19cd('0x4f')][_0x19cd('0x14f')],_0x19cd('0x172'));this[_0x19cd('0x99')](_0x22fd5b,this[_0x19cd('0xdc')][_0x19cd('0xef')](_0x56c8d4[_0x19cd('0x4f')],_0x1e769b));const _0x493bfe=_0x53da6a(),_0x33f739=_0x22fd5b[_0x19cd('0x10c')]['id'],_0x17403b=_0x22fd5b[_0x19cd('0x4e')]+':'+_0x22fd5b['subType'];this[_0x19cd('0x2')]({'id':_0x493bfe,'type':_0x17403b,'createdAt':new Date(),'authorId':_0x33f739,'data':_0x22fd5b[_0x19cd('0x48')],'attributes':_0x22fd5b[_0x19cd('0x56')]});const _0x3624ce=this['_model'][_0x19cd('0x110')](_0x59dd05['end'][_0x19cd('0x66')],_0x19cd('0xbf')),_0x5ab86b=this[_0x19cd('0xdc')]['createRange'](_0x3624ce,_0x56c8d4[_0x19cd('0x172')]);this['_addSuggestionMarker'](_0x17403b,_0x493bfe,_0x33f739,_0x5ab86b);}else{if(_0x56c8d4[_0x19cd('0xf')](_0x59dd05['start'])){const _0x4fb3fb=this['_model'][_0x19cd('0x110')](_0x59dd05['start'][_0x19cd('0x14f')],'end');this[_0x19cd('0x99')](_0x22fd5b,this[_0x19cd('0xdc')]['createRange'](_0x56c8d4[_0x19cd('0x4f')],_0x4fb3fb));}else{const _0x151f21=this[_0x19cd('0xdc')][_0x19cd('0x110')](_0x59dd05[_0x19cd('0x172')][_0x19cd('0x66')],'after');this[_0x19cd('0x99')](_0x22fd5b,this['_model'][_0x19cd('0xef')](_0x151f21,_0x56c8d4[_0x19cd('0x172')]));}}}}[_0x19cd('0x37')](_0x3962db){for(const {suggestion:_0x20a8c8,meta:_0x16b245}of this[_0x19cd('0x9f')](_0x3962db,_0x19cd('0x10a'))){if(!_0x16b245[_0x19cd('0x156')])continue;const _0x30765d=_0x20a8c8[_0x19cd('0x76')]();for(const _0x32cfa5 of _0x30765d)if(!_0x3962db[_0x19cd('0x11d')](_0x32cfa5)[_0x19cd('0x158')])return!0x0;}return!0x1;}[_0x19cd('0x165')](_0x3c76ea){const _0x2e4534=this[_0x19cd('0x14')][_0x19cd('0x128')][_0x19cd('0xd7')]('Users')[_0x19cd('0xa2')](_0x3c76ea);if(!_0x2e4534)throw new _0x26400e(_0x19cd('0x27'),this);return _0x2e4534;}[_0x19cd('0x24')](_0x358074){const _0x5918a6=this['editor'][_0x19cd('0x128')][_0x19cd('0xd7')](_0x19cd('0x20')),_0x6bf395=_0x120711('external:'+_0x358074),_0x3374b5=_0x5918a6['getUser'](_0x6bf395);return _0x3374b5||_0x5918a6[_0x19cd('0xd2')]({'id':_0x6bf395,'name':_0x358074});}[_0x19cd('0x148')](_0xc57f3d,_0x1548bc,_0x27021e,_0x4aba46,_0x245d1c){const _0x22e277=this[_0x19cd('0x165')](_0x4aba46),_0x1f4b9c=this[_0x19cd('0xdf')][_0x19cd('0xf6')](_0xc57f3d,_0x1548bc,_0x27021e,_0x22e277,_0x245d1c,_0x3b70ce=>{this['_updateSuggestionData'](_0x27021e,{'attributes':_0x3b70ce});const _0x2973c2=this['getSuggestion'](_0x27021e);this[_0x19cd('0x132')](new Set([_0x2973c2])),this[_0x19cd('0x12b')](new Set([_0x2973c2]));});return this[_0x19cd('0x1a')](_0x1f4b9c,_0x19cd('0x10d'),()=>{this['_updateSuggestionData'](_0x27021e,{'state':_0x19cd('0x160')});},{'priority':_0x19cd('0x13d')}),this['listenTo'](_0x1f4b9c,_0x19cd('0x18'),()=>{this['_updateSuggestionData'](_0x27021e,{'state':_0x19cd('0x2d')});},{'priority':'high'}),this[_0x19cd('0x77')]['set'](_0x27021e,_0x1f4b9c),this[_0x19cd('0x129')][_0x19cd('0x174')](_0x1f4b9c,_0x19cd('0x29')),_0x1f4b9c;}['_splitMarkerName'](_0x106ed7){const _0x3435c4=_0x106ed7[_0x19cd('0x64')](':');return{'group':_0x3435c4[0x0],'type':_0x3435c4[0x1],'subType':_0x3435c4[_0x19cd('0x158')]>=0x5?_0x3435c4[0x2]:null,'id':_0x3435c4[_0x19cd('0x158')]<0x5?_0x3435c4[0x2]:_0x3435c4[0x3],'authorId':_0x3435c4[_0x19cd('0x158')]<0x5?_0x3435c4[0x3]:_0x3435c4[0x4],'markerCount':0x6==_0x3435c4[_0x19cd('0x158')]?_0x3435c4[0x5]:null};}[_0x19cd('0x2a')](_0x5d70df,_0x2974f1,_0xfa364e){const _0x529a23=_0x5d70df[_0x19cd('0x5b')](),_0x5becb5=_0x529a23[_0x19cd('0x4f')],_0x453f0a=_0x529a23['end'];this['_setSuggestionRange'](_0x5d70df,this['_model']['createRange'](_0x5becb5,_0x2974f1));const _0xbfa543=_0x53da6a(),_0x1e7dbb=_0x5d70df[_0x19cd('0x10c')]['id'],_0x7e2166=_0x5d70df['type']+(_0x5d70df['subType']?':'+_0x5d70df['subType']:'');this[_0x19cd('0x2')]({'id':_0xbfa543,'type':_0x7e2166,'createdAt':new Date(),'authorId':_0x1e7dbb,'originalSuggestionId':_0x5d70df['id'],'attributes':_0x5d70df['attributes'],'data':_0x5d70df[_0x19cd('0x48')]});const _0x1478fb=this['_getAttributeKey'](_0x5d70df);(_0x19cd('0xd9')==_0x5d70df[_0x19cd('0x4e')]||_0x1478fb&&this[_0x19cd('0x34')](_0x1478fb))&&(_0xfa364e=this[_0x19cd('0xdc')][_0x19cd('0x15c')](_0xfa364e['parent'])),this[_0x19cd('0xcc')](_0x7e2166,_0xbfa543,_0x1e7dbb,this['_model'][_0x19cd('0xef')](_0xfa364e,_0x453f0a));}[_0x19cd('0x9f')](_0x46e343,_0x3d8cc2=null){const _0x42523b=[],_0x202e3f=this[_0x19cd('0x14')][_0x19cd('0x128')][_0x19cd('0xd7')](_0x19cd('0x20'))['me'];Array[_0x19cd('0x15e')](_0x46e343)||(_0x46e343=[_0x46e343]);for(const _0x2fccb3 of this['getSuggestions']()){if(!_0x2fccb3[_0x19cd('0x5a')])continue;if(_0x3d8cc2&&_0x2fccb3[_0x19cd('0x4e')]!=_0x3d8cc2)continue;let _0x45e75e=!0x1;for(const _0x3699d2 of _0x2fccb3[_0x19cd('0x76')]()){for(const _0xc6a67f of _0x46e343){const _0x51659b=_0xc6a67f['start'][_0x19cd('0x9c')](_0x3699d2[_0x19cd('0x172')])||_0xc6a67f[_0x19cd('0x172')][_0x19cd('0x9c')](_0x3699d2[_0x19cd('0x4f')]);if(_0x51659b||_0xc6a67f[_0x19cd('0xf5')](_0x3699d2)){const _0x37fdf1=_0xc6a67f[_0x19cd('0x2e')](_0x3699d2)&&xt(this[_0x19cd('0xdc')]['schema'],_0x3699d2[_0x19cd('0x4f')],_0xc6a67f),_0x27a197=_0x3699d2[_0x19cd('0x2e')](_0xc6a67f)&&xt(this[_0x19cd('0xdc')]['schema'],_0xc6a67f[_0x19cd('0x4f')],_0x3699d2);_0x42523b['push']({'suggestion':_0x2fccb3,'meta':{'isOwn':_0x202e3f==_0x2fccb3['author'],'isNextTo':_0x51659b,'isInsideObject':_0x37fdf1,'containsRangeInObject':_0x27a197}}),_0x45e75e=!0x0;break;}}if(_0x45e75e)break;}}return _0x42523b;}[_0x19cd('0xcc')](_0x4c8cd5,_0x5785aa,_0x2d4844,_0x2d7e52,_0x53841f){this[_0x19cd('0xdc')][_0x19cd('0xdd')](_0x26294d=>{let _0x84dfc8=_0x19cd('0x31')+_0x4c8cd5+':'+_0x5785aa+':'+_0x2d4844;_0x53841f&&(_0x84dfc8=_0x84dfc8+':'+_0x53841f),_0x26294d[_0x19cd('0x15')](_0x84dfc8,{'range':_0x2d7e52,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x19cd('0x14c')](_0x5d0612){const _0x480036=_0x5d0612[_0x19cd('0x67')],_0x3fef46=_0x5d0612[_0x19cd('0x9b')];_0x5d0612[_0x19cd('0x67')]=null,_0x5d0612[_0x19cd('0x9b')]=null,null!=_0x480036&&_0x480036['next']==_0x5d0612&&(_0x480036[_0x19cd('0x9b')]=_0x3fef46),null!=_0x3fef46&&_0x3fef46[_0x19cd('0x67')]==_0x5d0612&&(_0x3fef46[_0x19cd('0x67')]=_0x480036),'ready'==this[_0x19cd('0x129')]['get'](_0x5d0612)&&(this['_suggestionState']['set'](_0x5d0612,'removed'),this[_0x19cd('0x2c')](_0x19cd('0x163'),_0x5d0612,_0x480036,_0x3fef46));}[_0x19cd('0x2')](_0x9f872e){const _0x57d5a3=_0x9f872e['id'],_0x152150=this[_0x19cd('0x85')](_0x9f872e);if(this[_0x19cd('0x58')]&&this[_0x19cd('0x58')][_0x19cd('0xed')]){const _0x5217f1=this[_0x19cd('0x14')][_0x19cd('0x128')]['get'](_0x19cd('0x12')),_0x334a75=_0x152150[_0x19cd('0x6a')],_0x40404c=_0x152150[_0x19cd('0x36')]?_0x152150[_0x19cd('0x4e')]+':'+_0x152150[_0x19cd('0x36')]:_0x152150[_0x19cd('0x4e')],_0xa15e27=this[_0x19cd('0x14')][_0x19cd('0x7d')],_0x101ab4=_0x5217f1[_0x19cd('0xe1')](_0x4e3a96(_0xa15e27,_0x19cd('0xa4'))),_0x53b1e4={'id':_0x57d5a3,'type':_0x40404c,'hasComments':_0x334a75,'data':_0x9f872e[_0x19cd('0x48')]||null,'originalSuggestionId':_0x9f872e['originalSuggestionId']||null,'attributes':_0x152150[_0x19cd('0x56')]};this[_0x19cd('0x58')][_0x19cd('0xed')](_0x53b1e4)[_0x19cd('0x123')](_0x13105e=>{_0x152150['_saved']=!0x0,_0x5217f1[_0x19cd('0x95')](_0x101ab4),_0x13105e&&_0x13105e[_0x19cd('0x53')]&&(this['_suggestions']['get'](_0x57d5a3)[_0x19cd('0x53')]=_0x13105e[_0x19cd('0x53')]);})[_0x19cd('0x10f')](_0x333e3b=>{throw _0x51132c('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x19cd('0x13c')][_0x19cd('0x112')]({'isUndoable':!0x1},()=>{_0x152150['discard']();}),_0x152150[_0x19cd('0x130')](),this['_suggestions'][_0x19cd('0x11f')](_0x152150['id']),this[_0x19cd('0x129')][_0x19cd('0x11f')](_0x152150),_0x333e3b;});}return _0x152150;}[_0x19cd('0x34')](_0x487be4){return this[_0x19cd('0x98')]['has'](_0x487be4);}[_0x19cd('0xe0')](_0x5ebefa,_0x26741e){const _0x415a4a=this[_0x19cd('0x14')][_0x19cd('0x128')][_0x19cd('0xd7')]('PendingActions'),_0x31a359=this[_0x19cd('0xd1')](_0x5ebefa);if(this['_adapter']&&this[_0x19cd('0x58')][_0x19cd('0x90')]){if(_0x31a359[_0x19cd('0x23')]){const _0x4d4c56=_0x415a4a[_0x19cd('0xe1')](_0x4e3a96(this[_0x19cd('0x14')][_0x19cd('0x7d')],_0x19cd('0xa4')));this[_0x19cd('0x58')]['updateSuggestion'](_0x5ebefa,_0x26741e)[_0x19cd('0x123')](()=>{_0x415a4a[_0x19cd('0x95')](_0x4d4c56);});}else _0x31a359['on']('change:_saved',()=>{this[_0x19cd('0xe0')](_0x5ebefa,_0x26741e);});}}[_0x19cd('0x150')](_0x431d85){if(!this[_0x19cd('0x58')]||!this[_0x19cd('0x58')][_0x19cd('0xd1')])throw new _0x26400e('track-changes-adapter-missing-getsuggestion',this);return this[_0x19cd('0x58')][_0x19cd('0xd1')](_0x431d85);}['_handleNewSuggestionMarker'](_0x3b2b28){const {id:_0x1e6927,type:_0x6c9e02,subType:_0x59e5ee,authorId:_0x27c765}=this[_0x19cd('0x15d')](_0x3b2b28),_0x20b97a=this[_0x19cd('0x77')][_0x19cd('0xd7')](_0x1e6927)||this['_createSuggestion'](_0x6c9e02,_0x59e5ee,_0x1e6927,_0x27c765,{});switch(this['_checkSuggestionCorrectness'](_0x20b97a,_0x6c9e02,_0x59e5ee,_0x27c765),this['_suggestionState'][_0x19cd('0xd7')](_0x20b97a)){case _0x19cd('0x29'):this[_0x19cd('0x150')](_0x1e6927)[_0x19cd('0x123')](_0x599bcc=>{let _0x5e1b75=Promise['resolve']();_0x599bcc['hasComments']&&(_0x5e1b75=this[_0x19cd('0x16a')]['fetchCommentThread']({'channelId':this['editor'][_0x19cd('0x10')][_0x19cd('0xd7')](_0x19cd('0x118')),'threadId':_0x1e6927})),_0x5e1b75[_0x19cd('0x123')](()=>{this[_0x19cd('0x85')](_0x599bcc)['_saved']=!0x0;});}),this[_0x19cd('0x129')][_0x19cd('0x174')](_0x20b97a,_0x19cd('0x84'));break;case _0x19cd('0x51'):this[_0x19cd('0xe0')](_0x1e6927,{'state':_0x19cd('0xaa')});case _0x19cd('0x12d'):this['_suggestionState'][_0x19cd('0x174')](_0x20b97a,'ready'),this[_0x19cd('0x2c')](_0x19cd('0xfd'),_0x20b97a);break;case _0x19cd('0x119'):this[_0x19cd('0x2c')](_0x19cd('0x176'),_0x20b97a);}return _0x20b97a[_0x19cd('0x152')](_0x3b2b28),_0x20b97a;}[_0x19cd('0x12b')](_0x45781d){const _0x3ff89b=Array[_0x19cd('0x5f')](_0x45781d),_0x4b8b2=_0x3ff89b[_0x19cd('0x94')](_0x5e3b69=>'attribute'==_0x5e3b69[_0x19cd('0x4e')]);this['_refreshAttributeSuggestionsChain'](_0x4b8b2);const _0x4810ca=_0x3ff89b[_0x19cd('0x94')](_0xc6faa9=>!_0xc6faa9['isMultiRange']&&'attribute'!=_0xc6faa9['type']),_0x633b1b=this[_0x19cd('0x105')]({'skipNotAttached':!0x0})[_0x19cd('0x94')](_0x283e97=>!_0x283e97[_0x19cd('0x32')]&&'attribute'!=_0x283e97[_0x19cd('0x4e')]),_0x1739eb=_0x633b1b['filter'](_0x355195=>!_0x45781d[_0x19cd('0x7f')](_0x355195)),_0x1246d5=new Map(_0x633b1b[_0x19cd('0x125')](_0x33656c=>[_0x33656c,this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x33656c[_0x19cd('0x4e')],_0x33656c[_0x19cd('0x36')],_0x19cd('0x65'))])),_0x2de819=new Map(_0x633b1b['map'](_0x2412b1=>[_0x2412b1,_0x2412b1[_0x19cd('0x5b')]()])),_0x88dd64=new Set(),_0x2fa498=new Set();for(let _0x293064=0x0;_0x293064<_0x4810ca['length'];_0x293064++)_0x3317d0(_0x4810ca[_0x293064],_0x4810ca,_0x293064+0x1);for(let _0x597fe5=0x0;_0x597fe5<_0x4810ca[_0x19cd('0x158')];_0x597fe5++)_0x3317d0(_0x4810ca[_0x597fe5],_0x1739eb,0x0);const _0x10b2dd=new Set();for(let _0x9b6bdf=0x0;_0x9b6bdf<_0x4810ca['length'];_0x9b6bdf++){const _0x4e6a5b=_0x4810ca[_0x9b6bdf];!_0x2fa498[_0x19cd('0x7f')](_0x4e6a5b)&&_0x4e6a5b[_0x19cd('0x67')]&&(_0x10b2dd[_0x19cd('0xe1')](_0x4e6a5b[_0x19cd('0x67')]),_0x4e6a5b['previous'][_0x19cd('0x9b')]===_0x4e6a5b&&(_0x4e6a5b[_0x19cd('0x67')][_0x19cd('0x9b')]=null),_0x4e6a5b['previous']=null),!_0x88dd64[_0x19cd('0x7f')](_0x4e6a5b)&&_0x4e6a5b[_0x19cd('0x9b')]&&(_0x10b2dd[_0x19cd('0xe1')](_0x4e6a5b['next']),_0x4e6a5b[_0x19cd('0x9b')][_0x19cd('0x67')]===_0x4e6a5b&&(_0x4e6a5b[_0x19cd('0x9b')][_0x19cd('0x67')]=null),_0x4e6a5b[_0x19cd('0x9b')]=null);}function _0x3317d0(_0x361e38,_0x4e0ec5,_0x322385){for(let _0x485ec4=_0x322385;_0x485ec4<_0x4e0ec5[_0x19cd('0x158')];_0x485ec4++){const _0x18ffc0=_0x1f5a54(_0x361e38,_0x4e0ec5[_0x485ec4]);_0x18ffc0&&(_0x18ffc0[0x0]['next']=_0x18ffc0[0x1],_0x18ffc0[0x1][_0x19cd('0x67')]=_0x18ffc0[0x0],_0x88dd64[_0x19cd('0xe1')](_0x18ffc0[0x0]),_0x2fa498[_0x19cd('0xe1')](_0x18ffc0[0x1]));}}function _0x1f5a54(_0x367a8c,_0xe266ea){if(_0x367a8c[_0x19cd('0x8f')]['id']!==_0xe266ea[_0x19cd('0x8f')]['id'])return null;const _0x5f2b32=_0x1246d5[_0x19cd('0xd7')](_0x367a8c)(_0x367a8c,_0xe266ea,_0x2de819[_0x19cd('0xd7')](_0x367a8c),_0x2de819[_0x19cd('0xd7')](_0xe266ea));if(!_0x5f2b32)return null;return _0x1246d5[_0x19cd('0xd7')](_0xe266ea)(_0x367a8c,_0xe266ea,_0x2de819[_0x19cd('0xd7')](_0x367a8c),_0x2de819['get'](_0xe266ea))?_0x5f2b32[0x1][_0x19cd('0x8d')]&&_0x5f2b32[0x1]['commentThread'][_0x19cd('0x158')]?null:_0x5f2b32:null;}_0x10b2dd[_0x19cd('0xf0')]&&this[_0x19cd('0x12b')](_0x10b2dd);}[_0x19cd('0x88')](_0x5f3822){if(0x0==_0x5f3822[_0x19cd('0x158')])return;const _0x1c3b1c=this['getSuggestions']({'skipNotAttached':!0x0})[_0x19cd('0x94')](_0x57269=>_0x19cd('0xa6')==_0x57269['type']&&_0x57269[_0x19cd('0x14e')]),_0x23add3=[],_0x6d6c65=new Map();for(const _0x59ab73 of _0x1c3b1c){const _0x7bfcb=_0x120711(_0x59ab73['attributes']);_0x6d6c65[_0x19cd('0x7f')](_0x7bfcb)||(_0x6d6c65[_0x19cd('0x174')](_0x7bfcb,_0x23add3[_0x19cd('0x158')]),_0x23add3[_0x19cd('0x4')]([]));const _0x2c3d2d=_0x6d6c65[_0x19cd('0xd7')](_0x7bfcb);_0x23add3[_0x2c3d2d][_0x19cd('0x4')](_0x59ab73);}!function(){_0x23add3[_0x19cd('0x12a')]((_0x2d2c96,_0x57e1f6)=>{const _0x114b06=_0x2d2c96[0x0][_0x19cd('0x53')],_0x771b29=_0x57e1f6[0x0][_0x19cd('0x53')];return _0x114b06==_0x771b29?_0x2d2c96[0x0][_0x19cd('0x56')][_0x19cd('0x134')]<_0x57e1f6[0x0][_0x19cd('0x56')]['groupId']?-0x1:0x1:_0x114b06<_0x771b29?-0x1:0x1;});for(const _0x24be49 of _0x23add3)_0x24be49[_0x19cd('0x12a')]((_0x2c1a17,_0x2f43d5)=>_0x2c1a17['id']<_0x2f43d5['id']?-0x1:0x1);}();for(let _0x4189c4=0x0;_0x4189c4<_0x23add3[_0x19cd('0x158')];_0x4189c4++){if(0x0==_0x23add3[_0x4189c4][_0x19cd('0x158')])continue;const _0x298631=[];for(let _0x1d07be=_0x4189c4+0x1;_0x1d07be<_0x23add3[_0x19cd('0x158')];_0x1d07be++)0x0!=_0x23add3[_0x1d07be][_0x19cd('0x158')]&&_0x1f1410(_0x23add3[_0x4189c4],_0x23add3[_0x1d07be])&&_0x298631[_0x19cd('0x4')](_0x1d07be);for(const _0x6e56bc of _0x298631)_0x23add3[_0x4189c4]=_0x23add3[_0x4189c4][_0x19cd('0x8c')](_0x23add3[_0x6e56bc]),_0x23add3[_0x6e56bc]=[];}for(const _0x11775a of _0x23add3)for(let _0x3e640d=0x0;_0x3e640d<_0x11775a[_0x19cd('0x158')];_0x3e640d++)_0x11775a[_0x3e640d][_0x19cd('0x9b')]=_0x11775a[_0x3e640d+0x1]||null;for(const _0x141462 of _0x23add3)for(let _0x4cb5ea=0x0;_0x4cb5ea<_0x141462[_0x19cd('0x158')];_0x4cb5ea++)_0x141462[_0x4cb5ea][_0x19cd('0x67')]=_0x141462[_0x4cb5ea-0x1]||null;function _0x1f1410(_0x490176,_0x10e7f4){if(_0x490176[0x0][_0x19cd('0x56')]['groupId']!==_0x10e7f4[0x0]['attributes']['groupId']&&_0x490176[0x0][_0x19cd('0x8f')]!==_0x10e7f4[0x0][_0x19cd('0x8f')])return!0x1;if(!function(_0x575273,_0x680903){if(!_0x575273[_0x19cd('0x6a')]&&!_0x680903['hasComments'])return!0x0;if(_0x575273[_0x19cd('0x6a')]&&_0x680903[_0x19cd('0x6a')])return!0x1;if(_0x575273[_0x19cd('0x6a')]&&_0x680903['createdAt']<_0x575273[_0x19cd('0x8d')][_0x19cd('0x146')][_0x19cd('0xd7')](0x0)['createdAt'])return!0x0;if(_0x680903['hasComments']&&_0x575273[_0x19cd('0x53')]<_0x680903[_0x19cd('0x8d')]['comments'][_0x19cd('0xd7')](0x0)[_0x19cd('0x53')])return!0x0;return!0x1;}(_0x490176[0x0],_0x10e7f4[0x0]))return!0x1;const _0x1e20c5=_0x39f2a8(_0x490176[0x0]['attributes'],_0x19cd('0x134')),_0x23561a=_0x39f2a8(_0x10e7f4[0x0][_0x19cd('0x56')],'groupId');if(!_0x5acd85(_0x1e20c5,_0x23561a))return!0x1;return!!_0x490176[_0x19cd('0x144')](_0x56a9a4=>_0x10e7f4[_0x19cd('0x9d')](_0x19ad4d=>_0x56a9a4[_0x19cd('0x5b')]()[_0x19cd('0x9c')](_0x19ad4d[_0x19cd('0x5b')]())))&&_0x10e7f4[_0x19cd('0x144')](_0x11edd0=>_0x490176[_0x19cd('0x9d')](_0x123341=>_0x11edd0['getFirstRange']()[_0x19cd('0x9c')](_0x123341[_0x19cd('0x5b')]())));}}[_0x19cd('0x132')](_0x3c4651){const _0x554aad=Array[_0x19cd('0x5f')](_0x3c4651),_0x96cd05=this[_0x19cd('0x105')]({'skipNotAttached':!0x0}),_0x1406e9=_0x96cd05[_0x19cd('0x94')](_0x396e63=>!_0x3c4651[_0x19cd('0x7f')](_0x396e63)),_0x16a289=new Map(_0x554aad[_0x19cd('0x125')](_0x1a0780=>[_0x1a0780,this[_0x19cd('0xdf')][_0x19cd('0x6')](_0x1a0780[_0x19cd('0x4e')],_0x1a0780[_0x19cd('0x36')],'join')])),_0x41bdbb=new Map(_0x96cd05[_0x19cd('0x125')](_0x53b981=>[_0x53b981,_0x53b981['getRanges']()]));for(let _0x1be99b=0x0;_0x1be99b<_0x554aad[_0x19cd('0x158')];_0x1be99b++){if(_0x3a0532(this,_0x554aad[_0x1be99b],_0x554aad,_0x1be99b+0x1))return!0x0;}for(let _0x29beca=0x0;_0x29beca<_0x554aad['length'];_0x29beca++){if(_0x3a0532(this,_0x554aad[_0x29beca],_0x1406e9,0x0))return!0x0;}return!0x1;function _0x3a0532(_0x57b224,_0x35b41a,_0x103f4b,_0x36bdaf){for(let _0x89a3fb=_0x36bdaf;_0x89a3fb<_0x103f4b[_0x19cd('0x158')];_0x89a3fb++){const _0x49a99d=_0x103f4b[_0x89a3fb];if(_0x49a99d[_0x19cd('0x4e')]!==_0x35b41a[_0x19cd('0x4e')]||_0x49a99d[_0x19cd('0x8f')]['id']!==_0x35b41a[_0x19cd('0x8f')]['id']||_0x49a99d[_0x19cd('0x36')]!==_0x35b41a[_0x19cd('0x36')])continue;if(!Ft(_0x35b41a,_0x49a99d,[_0x19cd('0x134')]))continue;if(_0x19cd('0xa6')==_0x35b41a[_0x19cd('0x4e')]&&_0x35b41a[_0x19cd('0x48')]['oldValue']!=_0x49a99d['data'][_0x19cd('0xe7')])continue;if(_0x19cd('0xa6')==_0x35b41a[_0x19cd('0x4e')]&&_0x57b224[_0x19cd('0x34')](_0x35b41a[_0x19cd('0x48')][_0x19cd('0xb1')]))continue;if(_0x19cd('0xd9')==_0x35b41a[_0x19cd('0x4e')]){const _0x13e3cb=_0x57b224['editor'][_0x19cd('0x13c')],_0x3cbaa5=_0x35b41a['getContainedElement']();if(_0x3cbaa5&&(_0x13e3cb['schema'][_0x19cd('0x75')](_0x3cbaa5)||_0x13e3cb[_0x19cd('0x60')][_0x19cd('0xe9')](_0x3cbaa5)))continue;}const _0x5ecaaf=_0x16a289[_0x19cd('0xd7')](_0x35b41a),_0x51259f=_0x41bdbb['get'](_0x35b41a),_0xcdf0a6=_0x41bdbb[_0x19cd('0xd7')](_0x49a99d),_0x47438c=_0x35b41a['commentThread']&&_0x35b41a['commentThread'][_0x19cd('0x158')],_0x47aa1c=_0x49a99d[_0x19cd('0x8d')]&&_0x49a99d[_0x19cd('0x8d')][_0x19cd('0x158')];if(!_0x47438c&&_0x5ecaaf(_0xcdf0a6,_0x51259f))return _0x57b224[_0x19cd('0x4c')](_0x49a99d,_0x35b41a),_0x41bdbb[_0x19cd('0x11f')](_0x35b41a),!0x0;if(!_0x47aa1c&&_0x5ecaaf(_0x51259f,_0xcdf0a6))return _0x57b224[_0x19cd('0x4c')](_0x35b41a,_0x49a99d),_0x41bdbb[_0x19cd('0x11f')](_0x49a99d),!0x0;}return!0x1;}}[_0x19cd('0x4c')](_0x3c1cde,_0x6875d7){if(_0x3c1cde[_0x19cd('0x32')])for(const _0x263c5a of _0x6875d7[_0x19cd('0x76')]())_0x3c1cde[_0x19cd('0x1')](_0x263c5a);else{const _0x42ccaf=_0x6875d7[_0x19cd('0x5b')]()[_0x19cd('0x172')];this[_0x19cd('0x99')](_0x3c1cde,this['_model'][_0x19cd('0xef')](_0x3c1cde['getFirstRange']()[_0x19cd('0x4f')],_0x42ccaf));}_0x6875d7['removeMarkers']();}[_0x19cd('0xd6')](_0xaa4d27,_0x481fd0){const _0x8fdfbf=_0xaa4d27[_0x19cd('0xde')](_0x19cd('0xe'))||_0xaa4d27['startsWith']('attribute')?'FORMATTING':_0xaa4d27['toUpperCase']();return _0x4e3a96(this[_0x19cd('0x14')][_0x19cd('0x7d')],_0x481fd0+'_'+_0x8fdfbf+_0x19cd('0x97'));}[_0x19cd('0x3e')](){const _0x2b0bde=this[_0x19cd('0x14')];_0x526c68(this[_0x19cd('0xdc')],({left:_0x42331c,entered:_0x2418d4})=>{const _0x25c148=[];for(const _0x37eac7 of _0x42331c){const {group:_0x5f2a0d,type:_0x32ab27}=this['_splitMarkerName'](_0x37eac7[_0x19cd('0x168')]);if(_0x19cd('0x71')===_0x5f2a0d){_0x25c148[_0x19cd('0x4')](this['_getMarkerAnnouncementText'](_0x32ab27,_0x19cd('0x73')));break;}}for(const _0x2ee40e of _0x2418d4){const {group:_0x14db7d,type:_0x5c42af}=this[_0x19cd('0x15d')](_0x2ee40e[_0x19cd('0x168')]);if(_0x19cd('0x71')===_0x14db7d){_0x25c148[_0x19cd('0x4')](this['_getMarkerAnnouncementText'](_0x5c42af,_0x19cd('0xb8')));break;}}_0x25c148[_0x19cd('0x158')]&&_0x2b0bde['ui'][_0x19cd('0x155')][_0x19cd('0x169')](_0x19cd('0x7'),_0x25c148['join']('\x20'));});}[_0x19cd('0xea')](_0x2c51b9){if(this[_0x19cd('0x3b')])return!0x1;const _0x27868d=this[_0x19cd('0x14')],_0xa4c51c=_0x27868d[_0x19cd('0x13c')][_0x19cd('0x7a')]['differ'][_0x19cd('0xa7')]();if(0x0==_0xa4c51c[_0x19cd('0x158')])return!0x1;const _0x161d88=[],_0xb65ac8=_0xa4c51c[_0x19cd('0x94')](_0x19e384=>_0x19cd('0xa6')==_0x19e384[_0x19cd('0x4e')]),_0xbf4496=_0xa4c51c[_0x19cd('0x94')](_0x497769=>_0x19cd('0x11a')==_0x497769['type']&&_0x19cd('0x14b')!=_0x497769[_0x19cd('0x168')]),_0x3a24a6=_0xa4c51c['filter'](_0x51fbd3=>_0x19cd('0x95')==_0x51fbd3[_0x19cd('0x4e')]&&_0x19cd('0x14b')!=_0x51fbd3[_0x19cd('0x168')]);for(const _0xc22487 of _0xb65ac8)_0x161d88[_0x19cd('0x4')]({'key':_0xc22487['attributeKey'],'newValue':_0xc22487[_0x19cd('0x108')],'oldValue':_0xc22487[_0x19cd('0xb0')],'range':Ut(_0xc22487[_0x19cd('0x115')],_0x27868d[_0x19cd('0x13c')])});for(const _0x107516 of _0xbf4496){const _0x3e1a0b=_0x3a24a6[_0x19cd('0x52')](_0x5524c7=>_0x5524c7['position'][_0x19cd('0x9c')](_0x107516[_0x19cd('0x45')]));_0x3e1a0b&&_0x161d88[_0x19cd('0x4')]({'key':_0x19cd('0x78'),'newValue':_0x107516[_0x19cd('0x168')],'oldValue':_0x3e1a0b[_0x19cd('0x168')],'range':_0x27868d[_0x19cd('0x13c')][_0x19cd('0x102')](_0x107516[_0x19cd('0x45')][_0x19cd('0xe2')])});}return 0x0!=_0x161d88[_0x19cd('0x158')]&&this[_0x19cd('0x13b')](_0x2c51b9,_0x161d88);}[_0x19cd('0x121')](_0x520811){let _0x62d816=!0x1;const _0x412ff9=this[_0x19cd('0x14')][_0x19cd('0x13c')][_0x19cd('0x7a')]['differ'][_0x19cd('0xec')]()[_0x19cd('0x94')](_0x114e21=>_0x114e21[_0x19cd('0x48')][_0x19cd('0x86')]&&_0x114e21[_0x19cd('0x168')][_0x19cd('0xde')]('suggestion:attribute:'));for(const _0x702ed4 of _0x412ff9){const {subType:_0x257f47,id:_0x29c22b}=this[_0x19cd('0x15d')](_0x702ed4['name']),_0x4d3e8c=_0x257f47[_0x19cd('0x64')]('|')[0x0];for(const _0x264f7c of this[_0x19cd('0x105')]({'skipNotAttached':!0x0}))_0x264f7c['id']!=_0x29c22b&&'attribute'==_0x264f7c[_0x19cd('0x4e')]&&_0x264f7c[_0x19cd('0x48')]&&_0x264f7c[_0x19cd('0x48')]['key']==_0x4d3e8c&&_0x264f7c[_0x19cd('0x5b')]()[_0x19cd('0xbb')](_0x702ed4[_0x19cd('0x48')]['newRange'])&&(this[_0x19cd('0x15a')](_0x264f7c,_0x702ed4[_0x19cd('0x48')][_0x19cd('0x86')],_0x520811),_0x62d816=!0x0);}return _0x62d816;}[_0x19cd('0x89')](_0x123f56){this[_0x19cd('0x14')],(this[_0x19cd('0x3b')]=!0x0,_0x123f56());}[_0x19cd('0x87')](_0x2c4a8d){const _0x4cf6f8=this[_0x19cd('0x34')](_0x2c4a8d),_0x207dd0=this[_0x19cd('0x93')][_0x19cd('0x7f')](_0x2c4a8d);return _0x4cf6f8||_0x207dd0;}[_0x19cd('0x13b')](_0x1ae7af,_0x112c83){if(0x0==_0x112c83[_0x19cd('0x158')])return!0x1;let _0x2d3d01=!0x1;for(const _0x20a4cd of _0x112c83){const _0x12e347=this[_0x19cd('0x9f')](_0x20a4cd[_0x19cd('0x115')],_0x19cd('0xa6'))['filter'](_0x326cec=>!_0x326cec[_0x19cd('0xba')]['isNextTo'])[_0x19cd('0x125')](_0x52777d=>_0x52777d['suggestion']),_0x99026b=_0x120711({'newValue':_0x20a4cd[_0x19cd('0x70')]});_0x12e347[_0x19cd('0x94')](_0x3efb8d=>{const [_0x678687,_0x7a1d34]=_0x3efb8d['subType'][_0x19cd('0x64')]('|');return _0x678687==_0x20a4cd[_0x19cd('0xb1')]&&_0x7a1d34!=_0x99026b;})['forEach'](_0x2d0798=>{this[_0x19cd('0x15a')](_0x2d0798,_0x20a4cd[_0x19cd('0x115')],_0x1ae7af),_0x2d3d01=!0x0;});}return _0x2d3d01;}[_0x19cd('0x15a')](_0x1005cd,_0x3c762c,_0x432a09){const _0x4f10dd=_0x1005cd[_0x19cd('0x5b')]()[_0x19cd('0x11d')](_0x3c762c);0x0!==_0x4f10dd[_0x19cd('0x158')]?0x1!==_0x4f10dd[_0x19cd('0x158')]?this[_0x19cd('0x2a')](_0x1005cd,_0x3c762c[_0x19cd('0x4f')],_0x3c762c['end']):this[_0x19cd('0x99')](_0x1005cd,_0x4f10dd[0x0]):_0x432a09[_0x19cd('0x62')](_0x1005cd[_0x19cd('0x109')]());}}class Bt{constructor(_0x4f4b40){this[_0x19cd('0x33')]=_0x4f4b40,this['_model']=_0x4f4b40[_0x19cd('0x13c')],this[_0x19cd('0x10b')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x19cd('0x164')]();}[_0x19cd('0xf6')](_0x31b595,_0x17b937,_0x5ed320,_0x42532a,_0x182e74,_0x2efe86){return new _0xf9ee21(this[_0x19cd('0xdc')],{'type':_0x31b595,'subType':_0x17b937,'id':_0x5ed320,'author':_0x42532a,'creator':_0x42532a,'attributes':_0x182e74,'onAttributesChange':_0x2efe86,'onAccept':(..._0x56eb62)=>this[_0x19cd('0x6')](_0x31b595,_0x17b937,_0x19cd('0x10d'))(..._0x56eb62),'onDiscard':(..._0x4618ff)=>this[_0x19cd('0x6')](_0x31b595,_0x17b937,_0x19cd('0x18'))(..._0x4618ff)});}[_0x19cd('0x117')](_0x371589,_0x2f6306,_0x2f5e6a,_0x29003a){const _0x13b4d5=_0x371589+':'+_0x2f6306+':'+_0x2f5e6a;this[_0x19cd('0x10b')][_0x19cd('0x174')](_0x13b4d5,_0x29003a);}['getSuggestionCallback'](_0x58d307,_0xc1ab6a,_0x49582d){const _0x134ab5=_0x58d307+':'+_0xc1ab6a+':'+_0x49582d;return this[_0x19cd('0x10b')][_0x19cd('0xd7')](_0x134ab5)||this[_0x19cd('0xda')][_0x19cd('0xd7')](_0x58d307+':'+_0x49582d);}['_registerDefaultCallbacks'](){const _0x273d75=()=>!0x1,_0x53ed8f=_0x500d36=>{_0x500d36[_0x19cd('0x12a')]((_0x4ca1cc,_0x1bb3bc)=>_0x4ca1cc[_0x19cd('0x4f')][_0x19cd('0x7c')](_0x1bb3bc[_0x19cd('0x4f')])?0x1:-0x1),this[_0x19cd('0xdc')][_0x19cd('0xdd')](_0x5e75d5=>{for(const _0x4ecc31 of _0x500d36){let _0x2b17cd;_0x2b17cd=_0x4ecc31['end'][_0x19cd('0xae')]&&_0x4ecc31['end'][_0x19cd('0x66')]==_0x4ecc31['start'][_0x19cd('0xe2')]?_0x5e75d5[_0x19cd('0xfe')](_0x4ecc31['start']['nodeAfter'],'on'):_0x5e75d5[_0x19cd('0xfe')](_0x4ecc31),this['_model']['deleteContent'](_0x2b17cd,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x365f10=(_0x13ff93,_0x5ac283)=>{_0x5ac283&&this[_0x19cd('0xdc')]['change'](_0x407f25=>{const {commandName:_0x294085,commandParams:_0x338cf1=[]}=_0x5ac283,_0x51d396=_0x13ff93['map'](_0x47181f=>(Rt(_0x47181f)&&(_0x47181f=this[_0x19cd('0xdc')][_0x19cd('0xef')](_0x47181f[_0x19cd('0x172')])),_0x47181f))[_0x19cd('0x94')](_0x3b7ee3=>'$graveyard'!==_0x3b7ee3['root']['rootName']);if(_0x51d396[_0x19cd('0x158')]<0x1)return;const _0x5f3684=Array['from'](this[_0x19cd('0xdc')][_0x19cd('0x7a')]['selection'][_0x19cd('0x76')]())[_0x19cd('0x125')](_0x2f17ac=>_0xb00d8d['fromRange'](_0x2f17ac));_0x407f25[_0x19cd('0x19')](_0x51d396);for(const _0x415a6b of this[_0x19cd('0x33')][_0x19cd('0x50')][_0x19cd('0x50')]())_0x415a6b[_0x19cd('0xd8')]();_0x338cf1[_0x19cd('0x4')]({'forceDefaultExecution':!0x0}),this[_0x19cd('0x33')][_0x19cd('0x46')](_0x294085,..._0x338cf1);const _0x2c0695=_0x5f3684[_0x19cd('0x94')](_0x3db4ca=>_0x19cd('0x16')!=_0x3db4ca[_0x19cd('0x14a')][_0x19cd('0x7b')]);_0x2c0695[_0x19cd('0x158')]>0x0&&_0x407f25['setSelection'](_0x2c0695);for(const _0xd0c57b of _0x5f3684)_0xd0c57b[_0x19cd('0x5d')]();});},_0x54e600=(_0x15c336,_0x26de6f)=>0x1==_0x15c336[_0x19cd('0x158')]&&0x1==_0x26de6f[_0x19cd('0x158')]&&_0x15c336[0x0][_0x19cd('0x172')][_0x19cd('0x9c')](_0x26de6f[0x0]['start']),_0x195d86=(_0x267510,_0x24cae1,_0x3d9e2f,_0x11e00c)=>Gt(_0x267510,_0x24cae1,_0x3d9e2f,_0x11e00c,this[_0x19cd('0xdc')])?[_0x267510,_0x24cae1]:Gt(_0x24cae1,_0x267510,_0x11e00c,_0x3d9e2f,this[_0x19cd('0xdc')])?[_0x24cae1,_0x267510]:null;this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0x9e'),_0x273d75),this[_0x19cd('0xda')]['set'](_0x19cd('0x15b'),_0x53ed8f),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0x162'),_0x54e600),this['_defaultCallbacks'][_0x19cd('0x174')](_0x19cd('0xf4'),_0x195d86),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0x6f'),_0x53ed8f),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0x63'),_0x273d75),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0x57'),_0x54e600),this[_0x19cd('0xda')][_0x19cd('0x174')]('deletion:chain',_0x195d86),this[_0x19cd('0xda')]['set']('formatInline:accept',_0x365f10),this[_0x19cd('0xda')][_0x19cd('0x174')]('formatInline:discard',_0x273d75),this[_0x19cd('0xda')]['set']('formatInline:join',_0x54e600),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0xf3'),_0x273d75),this[_0x19cd('0xda')][_0x19cd('0x174')]('formatBlock:accept',_0x365f10),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0x161'),_0x273d75),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0xe4'),_0x54e600),this[_0x19cd('0xda')][_0x19cd('0x174')]('formatBlock:chain',_0x273d75),this['_defaultCallbacks'][_0x19cd('0x174')](_0x19cd('0x92'),_0x273d75),this[_0x19cd('0xda')][_0x19cd('0x174')](_0x19cd('0x6d'),(_0x1a5174,_0x3c3cdf)=>{if(!_0x3c3cdf)return;const _0x3be5c1=this[_0x19cd('0x33')][_0x19cd('0x128')][_0x19cd('0xd7')](p);this[_0x19cd('0xdc')]['change'](_0x3604e0=>{if(_0x19cd('0x78')==_0x3c3cdf[_0x19cd('0xb1')])for(const _0xe0010c of _0x1a5174){const _0x6be9ab=_0xe0010c[_0x19cd('0x4f')]['nodeAfter'],_0x5c87b9=_0x3c3cdf[_0x19cd('0xe7')];_0x3604e0[_0x19cd('0x140')](_0x6be9ab,_0x5c87b9);}else{if(_0x3be5c1[_0x19cd('0x34')](_0x3c3cdf[_0x19cd('0xb1')]))for(const _0x6b9b86 of _0x1a5174)void 0x0!==_0x3c3cdf[_0x19cd('0xe7')]?_0x3604e0[_0x19cd('0x82')](_0x3c3cdf[_0x19cd('0xb1')],_0x3c3cdf['oldValue'],_0x6b9b86['start'][_0x19cd('0xe2')]):_0x3604e0['removeAttribute'](_0x3c3cdf['key'],_0x6b9b86[_0x19cd('0x4f')]['nodeAfter']);else for(const _0x1fc6c1 of _0x1a5174)_0x3c3cdf[_0x19cd('0xe7')]?_0x3604e0['setAttribute'](_0x3c3cdf[_0x19cd('0xb1')],_0x3c3cdf['oldValue'],_0x1fc6c1):_0x3604e0[_0x19cd('0x137')](_0x3c3cdf['key'],_0x1fc6c1);}});}),this['_defaultCallbacks'][_0x19cd('0x174')](_0x19cd('0x6b'),_0x54e600);}}function xt(_0x5a407b,_0x43ce6c,_0x36361b){for(const _0x59070a of _0x43ce6c[_0x19cd('0x66')][_0x19cd('0xfb')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59070a['root']==_0x59070a)return!0x1;if(!_0x36361b[_0x19cd('0x107')](_0x59070a))return!0x1;if(_0x5a407b[_0x19cd('0x75')](_0x59070a)||_0x5a407b[_0x19cd('0xe9')](_0x59070a))return!0x0;}return!0x1;}function Rt(_0x4ec49a){return _0x4ec49a[_0x19cd('0x172')][_0x19cd('0x66')]==_0x4ec49a[_0x19cd('0x4f')][_0x19cd('0xe2')]&&_0x4ec49a['end'][_0x19cd('0xbe')];}function Tt(_0x55e66d,_0xc3bcb,_0x1bf88,_0x2d8f41){const _0x1bd6ce=_0x201101=>!_0x201101[_0x19cd('0x41')]['is']('$textProxy')&&!_0x2d8f41[_0x19cd('0x75')](_0x201101[_0x19cd('0x41')]),_0x4a324f=_0x55e66d[_0x19cd('0x4f')][_0x19cd('0xff')](_0x1bd6ce),_0x27e580=_0x55e66d[_0x19cd('0x172')][_0x19cd('0xff')](_0x1bd6ce,{'direction':_0x19cd('0xa1')});return(!_0x55e66d[_0x19cd('0x4f')][_0x19cd('0x9c')](_0x4a324f)||!_0x55e66d['end']['isEqual'](_0x27e580))&&(_0x4a324f[_0x19cd('0x7c')](_0x27e580)?_0x1bf88['updateMarker'](_0xc3bcb,{'range':_0x1bf88[_0x19cd('0xef')](_0x4a324f,_0x27e580)}):_0x1bf88[_0x19cd('0x62')](_0xc3bcb),!0x0);}function Et(_0x3c9237){return _0x120711(_0x3c9237);}function Vt(_0x2651f0){const _0x466654=_0x2651f0[_0x19cd('0x4f')][_0x19cd('0xe2')];return _0x466654&&_0x466654['is'](_0x19cd('0xb7'));}function Ut(_0xccd826,_0x387208){return null==_0xccd826[_0x19cd('0x172')]['nodeBefore']&&_0xccd826['end'][_0x19cd('0x66')]==_0xccd826['start'][_0x19cd('0xe2')]?Ot(_0xccd826[_0x19cd('0x4f')]['nodeAfter'],_0x387208):_0xccd826;}function Ot(_0xc48831,_0x1000b7){const _0x5b88ac=_0x1000b7['schema'][_0x19cd('0x75')](_0xc48831)||_0x1000b7[_0x19cd('0x60')][_0x19cd('0x26')](_0xc48831);return _0x1000b7[_0x19cd('0xef')](_0x1000b7[_0x19cd('0x110')](_0xc48831,_0x19cd('0xc0')),_0x5b88ac?_0x1000b7[_0x19cd('0x0')](_0xc48831):_0x1000b7[_0x19cd('0x110')](_0xc48831,_0x19cd('0x172')));}function Gt(_0xadf958,_0x2200d7,_0x1719fd,_0x25f5c5,_0x106ff1){if(!Ft(_0xadf958,_0x2200d7))return!0x1;if(_0x1719fd[_0x19cd('0x172')][_0x19cd('0x9c')](_0x25f5c5[_0x19cd('0x4f')]))return!0x0;if(_0xadf958[_0x19cd('0x4e')]!=_0x2200d7[_0x19cd('0x4e')])return!0x1;if(!_0x1719fd['end'][_0x19cd('0x61')](_0x25f5c5[_0x19cd('0x4f')]))return!0x1;const _0x503aa1=_0x106ff1[_0x19cd('0xef')](_0x1719fd[_0x19cd('0x172')],_0x25f5c5[_0x19cd('0x4f')])[_0x19cd('0x69')]();for(const _0x1dec1c of _0x503aa1)if([_0x19cd('0x5'),_0x19cd('0xfa')][_0x19cd('0xc9')](_0x1dec1c[_0x19cd('0x4e')])&&_0x106ff1[_0x19cd('0x60')][_0x19cd('0xe9')](_0x1dec1c[_0x19cd('0x41')]))return!0x1;return!0x0;}function Ft(_0x187078,_0xc7a29f,_0x1c2247=[]){return!(!_0x187078[_0x19cd('0x14e')]||!_0xc7a29f[_0x19cd('0x14e')])&&_0x5acd85(_0x39f2a8(_0x187078[_0x19cd('0x56')],_0x1c2247),_0x39f2a8(_0xc7a29f['attributes'],_0x1c2247));}function Pt(_0x22d1f0,_0x502212){const _0x32934a=Lt(_0x22d1f0[_0x19cd('0x56')]),_0x346aee=Lt(_0x502212);if(!_0x22d1f0['_isDataLoaded'])return!0x1;for(const _0x4ec701 of Object[_0x19cd('0x1d')](_0x346aee))if(!_0x5acd85(_0x32934a[_0x4ec701],_0x346aee[_0x4ec701]))return!0x1;return!0x0;}function Lt(_0x5b981a){const _0x2f130c=Object['assign']({},_0x5b981a);return delete _0x2f130c[_0x19cd('0x136')],delete _0x2f130c['tablePasteChainId'],_0x2f130c;}
|