@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230829.0 → 0.0.0-nightly-20230831.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/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +29 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f32=['addSuggestionData','getDataWithDiscardedSuggestions','discardAllSuggestions','TrackChangesData','plugins','config','getRootNames','useAnonymousUser','create','Pagination','getUser','result','CommentsRepository','init','trackChangesData.editorCreator','getFullData','createElement','TrackChangesDataGetter','rootsAttributes','Users','reduce','document','data','users','function','createDocumentFragment','acceptAllSuggestions','trackChangesData','getSuggestions','destroy','end','TrackChangesEditing','requires','editor','model','push','editorCreator','getRootsAttributes','get','div','execute','name','appendChild'];(function(_0x471188,_0x2f322e){const _0x2d6017=function(_0x46975e){while(--_0x46975e){_0x471188['push'](_0x471188['shift']());}};_0x2d6017(++_0x2f322e);}(_0x2f32,0x18e));const _0x2d60=function(_0x471188,_0x2f322e){_0x471188=_0x471188-0x0;let _0x2d6017=_0x2f32[_0x471188];return _0x2d6017;};import{Plugin as _0x5a69ca}from'ckeditor5/src/core';import{CKEditorError as _0x58bf6c}from'ckeditor5/src/utils';import _0x36d4bb from'./trackchangesediting';import{sanitizeEditorConfig as _0x272d9c}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x2d60('0x29')];export default class T extends _0x5a69ca{static get[_0x2d60('0x15')](){return[_0x36d4bb];}static get['pluginName'](){return _0x2d60('0x23');}[_0x2d60('0x2')](){const _0x481dba=this['editor'];if(_0x481dba[_0x2d60('0x25')]['define'](_0x2d60('0x3'),_0x1cb49a=>{const _0x37eb15=_0x481dba[_0x2d60('0x17')][_0x2d60('0xa')][_0x2d60('0x26')]()[_0x2d60('0x9')]((_0x58c4fb,_0x1a6e4d)=>(_0x58c4fb[_0x1a6e4d]='',_0x58c4fb),{});return _0x481dba['constructor'][_0x2d60('0x28')](_0x37eb15,_0x1cb49a);}),_0x2d60('0xd')!=typeof _0x481dba[_0x2d60('0x25')][_0x2d60('0x1b')]('trackChangesData')[_0x2d60('0x19')])throw new _0x58bf6c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x56df52){return v(this[_0x2d60('0x16')],!0x0,_0x56df52);}[_0x2d60('0x21')](_0x511846){return v(this[_0x2d60('0x16')],!0x1,_0x511846);}}class P extends _0x5a69ca{static get['pluginName'](){return _0x2d60('0x6');}constructor(_0x2d5ddd){super(_0x2d5ddd),this[_0x2d60('0x0')]=_0x2d60('0x13');}['init'](){this[_0x2d60('0x16')][_0x2d60('0x24')][_0x2d60('0x1b')](_0x2d60('0x1'))['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x2d60('0x16')][_0x2d60('0x24')][_0x2d60('0x1b')]('TrackChangesEditing')['_adapter']=null;}}function D(_0x1bdc71){return void 0x0!==_0x1bdc71[_0x2d60('0x1a')];}async function v(_0xa388ed,_0x3f2fb8,_0x15c331){const _0x770140=_0x272d9c(_0xa388ed,w);_0x770140['plugins'][_0x2d60('0x18')](_0x36d4bb,P),_0x770140[_0x2d60('0x7')]=D(_0xa388ed)?_0xa388ed['getRootsAttributes']():void 0x0;const _0x957b4d=document[_0x2d60('0xe')](),_0x4517d2=_0xa388ed[_0x2d60('0x25')][_0x2d60('0x1b')](_0x2d60('0x10'))[_0x2d60('0x19')],_0x219381=await _0x4517d2(_0x770140,()=>function(_0x1e5fbb){const _0x555a9a=document[_0x2d60('0x5')](_0x2d60('0x1c'));return _0x1e5fbb[_0x2d60('0x1f')](_0x555a9a),_0x555a9a;}(_0x957b4d));!function(_0x282ebe,_0x1a6e77){const _0x4172d3=_0x282ebe[_0x2d60('0x17')]['document'][_0x2d60('0x26')]()['reduce']((_0x1e2229,_0x43af76)=>(_0x1e2229[_0x43af76]=_0x282ebe[_0x2d60('0xb')][_0x2d60('0x1b')]({'rootName':_0x43af76}),_0x1e2229),{}),_0x43fe1c=_0x282ebe[_0x2d60('0x24')][_0x2d60('0x1b')]('Users')[_0x2d60('0xc')]['map'](_0x2b7fd8=>({'id':_0x2b7fd8['id'],'name':_0x2b7fd8[_0x2d60('0x1e')]})),_0x3c037c=_0x282ebe[_0x2d60('0x24')][_0x2d60('0x1b')](_0x2d60('0x14'))[_0x2d60('0x11')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e7ecb=_0x1a6e77['plugins'][_0x2d60('0x1b')](_0x2d60('0x8')),_0x329160=_0x1a6e77[_0x2d60('0x24')][_0x2d60('0x1b')]('TrackChangesEditing');for(const _0x44d517 of _0x43fe1c)_0x5e7ecb[_0x2d60('0x2a')](_0x44d517['id'])||_0x5e7ecb['addUser'](_0x44d517);_0x5e7ecb['me']||_0x5e7ecb[_0x2d60('0x27')]();for(const _0x2407ed of _0x3c037c)_0x329160[_0x2d60('0x20')](_0x2407ed);_0x1a6e77[_0x2d60('0xb')]['set'](_0x4172d3);}(_0xa388ed,_0x219381),_0x219381[_0x2d60('0x1d')](_0x3f2fb8?_0x2d60('0xf'):_0x2d60('0x22'));const _0x30301f=D(_0x219381)?_0x219381[_0x2d60('0x4')](_0x15c331):_0x219381['data'][_0x2d60('0x1b')](_0x15c331);return await _0x219381[_0x2d60('0x12')](),_0x30301f;}
|
|
@@ -159,6 +159,10 @@ export default class TrackChangesEditing extends Plugin {
|
|
|
159
159
|
* Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
|
|
160
160
|
* this method are bound with one undo step.
|
|
161
161
|
*
|
|
162
|
+
* If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
|
|
163
|
+
* the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
|
|
164
|
+
* the existing suggestion).
|
|
165
|
+
*
|
|
162
166
|
* See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
|
|
163
167
|
* features guide} to learn more about enabling your feature in the suggestion mode.
|
|
164
168
|
*
|
|
@@ -189,12 +193,16 @@ export default class TrackChangesEditing extends Plugin {
|
|
|
189
193
|
* Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
|
|
190
194
|
* this method are bound with one undo step.
|
|
191
195
|
*
|
|
196
|
+
* If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
|
|
197
|
+
* the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
|
|
198
|
+
* the existing suggestion).
|
|
199
|
+
*
|
|
192
200
|
* See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
|
|
193
201
|
* features} guide to learn more about enabling your feature in the suggestion mode.
|
|
194
202
|
*
|
|
195
203
|
* @param ranges Ranges which got inserted.
|
|
196
204
|
* @param subType Suggestion {@link module:track-changes/suggestion~Suggestion#subType} to set. Only suggestions
|
|
197
|
-
* with the same
|
|
205
|
+
* with the same subtype will be joined.
|
|
198
206
|
* @param attributes Custom suggestion attributes.
|
|
199
207
|
* @returns {module:track-changes/suggestion~Suggestion} Suggestion created or expanded as a result of execution of this method.
|
|
200
208
|
*/
|
|
@@ -228,6 +236,10 @@ export default class TrackChangesEditing extends Plugin {
|
|
|
228
236
|
* If an inline format suggestion is marked inside the local user's insertion suggestion, the change is applied directly
|
|
229
237
|
* and no suggestion is created. This supports partial intersections with insertion suggestions.
|
|
230
238
|
*
|
|
239
|
+
* If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
|
|
240
|
+
* the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
|
|
241
|
+
* the existing suggestion).
|
|
242
|
+
*
|
|
231
243
|
* See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
|
|
232
244
|
* features} guide to learn more about enabling your feature in the suggestion mode.
|
|
233
245
|
*
|
|
@@ -301,6 +313,10 @@ export default class TrackChangesEditing extends Plugin {
|
|
|
301
313
|
* and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
|
|
302
314
|
* (as opposed to inline format suggestions).
|
|
303
315
|
*
|
|
316
|
+
* If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
|
|
317
|
+
* the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
|
|
318
|
+
* the existing suggestion).
|
|
319
|
+
*
|
|
304
320
|
* See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
|
|
305
321
|
* features} guide to learn more about enabling your feature in the suggestion mode.
|
|
306
322
|
*
|
|
@@ -336,6 +352,10 @@ export default class TrackChangesEditing extends Plugin {
|
|
|
336
352
|
* and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
|
|
337
353
|
* (as opposed to inline format suggestions).
|
|
338
354
|
*
|
|
355
|
+
* If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
|
|
356
|
+
* the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
|
|
357
|
+
* the existing suggestion).
|
|
358
|
+
*
|
|
339
359
|
* See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
|
|
340
360
|
* features} guide to learn more about enabling your feature in the suggestion mode.
|
|
341
361
|
*
|
|
@@ -369,6 +389,10 @@ export default class TrackChangesEditing extends Plugin {
|
|
|
369
389
|
* Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
|
|
370
390
|
* this method are bound with one undo step.
|
|
371
391
|
*
|
|
392
|
+
* If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
|
|
393
|
+
* the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
|
|
394
|
+
* the existing suggestion).
|
|
395
|
+
*
|
|
372
396
|
* See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
|
|
373
397
|
* features guide} to learn more about enabling your feature in the suggestion mode.
|
|
374
398
|
*
|
|
@@ -400,6 +424,10 @@ export default class TrackChangesEditing extends Plugin {
|
|
|
400
424
|
* Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
|
|
401
425
|
* this method are bound with one undo step.
|
|
402
426
|
*
|
|
427
|
+
* If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
|
|
428
|
+
* the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
|
|
429
|
+
* the existing suggestion).
|
|
430
|
+
*
|
|
403
431
|
* See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
|
|
404
432
|
* features} guide to learn more about enabling your feature in the suggestion mode.
|
|
405
433
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b30=['trackChanges.mergeNestedSuggestions','isSelectable','$graveyard','editingDowncast','add','isAtStart','getMultiRangeId','suggestion-type','getCommentThread','removed','getSuggestionCallback','newRange','createPositionAt','track-changes-command-not-found','isCollapsed','authoredAt','markers','commandName','formatBlock','get','fetchCommentThread','forward','stop','deletion:join','change:activeMarkers','from','_isForcedDefaultExecutionBlock','registerCustomCallback','deleteContent','plugins','addCommentThread','group','markerNameToElements','containsRange','change:_saved','fire','previous','discardSuggestion','unbindElementFromMarkerName','map','type','formatInline:','_splitMarkerName','consume','formatGroupId','track-changes-suggestion-data-mismatch','removeAttribute','markMultiRangeInsertion','formatBlock:join','mapper','createRange','_setSuggestionRange','insertContent','nodeBefore','change','getAncestors','ready','_createSuggestion','substr','start','error-saving-suggestion-data-suggestion-discarded','markDeletion','delete','insertion:','isLimit','isEqual','high','removeClass','trackChangesCommand','split','pluginName','catch','some','track-changes-suggestion-not-found','createElement','editor','deletion','addMarkerName','isExternal','_rangeIsInLocalUserInsertion','$marker','getSuggestion','toViewElement','isObject','commentThread','getLastMatchingPosition','batch','ck-suggestion-marker--active','_commentsRepository','_suggestionFactory','change:data','getAllAdjacentSuggestions','commands','forceDefaultExecution','acceptSelectedSuggestions','_getSuggestionData','_saved','TrackChangesEditing','ck-suggestion-marker','isBlock','markInsertion','containsItem','addMarker:suggestion','isOwn','enableReadOnlyMode','end','push','track-changes-adapter-missing-getsuggestion','fromRange','selection','suggestion:','_checkSuggestionCorrectness','markBlockFormat','differ','return','_defaultCallbacks','getRange','join','createSelection','getRanges','isMultiRange','getItems','CommentsRepository','isNextTo','editing','after','data','rejected','howMany','suggestion','_customCallbacks','init','_adapter','getCustomProperty','getShiftedBy','element','parent','getWalker','insertion:discard','multipleBlocks','ck-suggestion-marker-formatBlock','skipNestingCheck','_registerDefaultCallbacks','consumable','containsRangeInObject','_model','markerToHighlight','schema','bindElementToMarker','markerName','@external','_suggestions','insertion:join','toJSON','_onDiscard','accept','markInlineFormat','isLocal','addHighlight','range','length','discardAllSuggestions','config','_trackFormatChanges','formatBlock:accept','dataDowncast','markMultiRangeDeletion','collaboration.channelId','stopListening','deletion:chain','_addSuggestionMarker','containsPosition','isAfter','locale','_addThreadToSuggestion','detach','isInsideObject','_descriptionFactory','addSuggestion','suggestionLoaded','discardSelectedSuggestions','suggestionChanged','addSuggestionData','then','authorName','removeComment','lowest','document','markMultiRangeBlockFormat','enableCommand','Users','creator','getFirstRange','default','_editor','formatBlock:chain','activeMarkers','PendingActions','_removeSuggestion','every','getAttribute','value','addRange','addClass','getChanges','addUser','updateSuggestion','createPositionBefore','dataToMarker','data-suggestion','accepted','formatInline:chain','root','acceptAllSuggestions','adapter','_cutOutSuggestionMarker','size','_joinSuggestions','removeMarker:suggestion:formatBlock','formatInline:join','track-changes-user-not-found','_findSuggestions','getIntersection','attributes','PENDING_ACTION_SUGGESTION','trackChanges.trackFormatChanges','upcast','update:suggestion','author','originalSuggestionId','formatBlock:discard','getChangedMarkers','_suggestionState','position','nodeAfter','oldRange','execute','getFirstMarker','createdAt','createPositionAfter','highest','isDocumentOperation','isIntersectingWithRange','listenTo','formatInline','addMarker:suggestion:formatBlock','updateMarker','isTouching','item','suggestionUnloaded','setTo','values','_enabledCommands','name','_joinWithAdjacentSuggestions','getUser','_getExternalAuthor','hasComments','buildSuggestion','notReady','filter','insertion','set','multi','move','next','isUndo','setAttribute','elementToElement','showSuggestionHighlights','getNearestSelectionRange','splitPosition','for','elementEnd','subType','markerReady','documentSelection','never','formatBlock:','options','define','isAtEnd','formatInline:accept','has','_handleNewSuggestionMarker','rootName','conversion','writer','deletion:discard','model','acceptSuggestion','dataReady','applyOperation','addComment','_refreshSuggestionsChain','isRemovable','insert','backward','ck-suggestion-marker-','discard','removeMarkers','low','_setSuggestionData','$textProxy','removeMarker','isInContent','marker-count','isBefore','_getAuthorFromId','fromCharCode','_mergeNestedSuggestions','external:','_updateSuggestionData','insertion:chain','getDifference','includes','clone','markerToData','getSuggestions','trackChanges','normal','head','unbind'];(function(_0x3bc1d1,_0x5b30cc){const _0x3b3a16=function(_0x2df66f){while(--_0x2df66f){_0x3bc1d1['push'](_0x3bc1d1['shift']());}};_0x3b3a16(++_0x5b30cc);}(_0x5b30,0x15f));const _0x3b3a=function(_0x3bc1d1,_0x5b30cc){_0x3bc1d1=_0x3bc1d1-0x0;let _0x3b3a16=_0x5b30[_0x3bc1d1];return _0x3b3a16;};import{Plugin as _0x5a8a15,PendingActions as _0x5d29cd}from'ckeditor5/src/core';import{LiveRange as _0x541e31}from'ckeditor5/src/engine';import{CKEditorError as _0x351a30,uid as _0x562252,priorities as _0x4c7313,logWarning as _0x57dcef}from'ckeditor5/src/utils';import{toWidget as _0x3caca7}from'ckeditor5/src/widget';import{Users as _0x7cca0d,hashObject as _0xe552ec}from'ckeditor5-collaboration/src/collaboration-core';import _0x41bdf1 from'./commands/trackchangescommand';import _0x1b56cc from'./commands/acceptsuggestioncommand';import _0x5df727 from'./commands/discardsuggestioncommand';import _0x8f7995 from'./commands/executeonallsuggestionscommand';import _0x5229a3 from'./commands/executeonselectedsuggestionscommand';import _0x38aeef from'./suggestion';import _0x1c62f3 from'./suggestiondescriptionfactory';import _0x59a691 from'./integrations/alignment';import _0xd715fd from'./integrations/basicstyles';import _0x623f1b from'./integrations/blockquote';import _0x383b8c from'./integrations/ckbox';import _0x574c61 from'./integrations/codeblock';import _0xa4143 from'./integrations/comments';import _0x54d6e4 from'./integrations/deletecommand';import _0x155c2b from'./integrations/documentlist';import _0x5523b3 from'./integrations/entercommand';import _0xd4bc03 from'./integrations/findandreplace';import _0x1792b6 from'./integrations/font';import _0x226d43 from'./integrations/formatpainter';import _0x2bfde8 from'./integrations/heading';import _0x5d8156 from'./integrations/highlight';import _0x46406d from'./integrations/horizontalline';import _0x1040dc from'./integrations/htmlembed';import _0x233ce3 from'./integrations/image';import _0x975268 from'./integrations/imagereplace';import _0x20fd50 from'./integrations/importword';import _0x298950 from'./integrations/indent';import _0x3656a9 from'./integrations/inputcommand';import _0x4946df from'./integrations/link';import _0x247e30 from'./integrations/list';import _0x4df5dd from'./integrations/listproperties';import _0x2753a6 from'./integrations/mediaembed';import _0x1ee22b from'./integrations/mention';import _0x59a3bc from'./integrations/pagebreak';import _0x52d947 from'./integrations/paragraph';import _0x4e27ac from'./integrations/removeformat';import _0x5158f0 from'./integrations/restrictededitingmode';import _0x5eea33 from'./integrations/shiftentercommand';import _0x55b104 from'./integrations/standardeditingmode';import _0x534305 from'./integrations/style';import _0x24e5ae from'./integrations/table';import _0x4a5b1b from'./integrations/tablemergesplit';import _0x5505f4 from'./integrations/tableheadings';import _0x476fb3 from'./integrations/tableclipboard';import _0x282a41 from'./integrations/tablecolumnresize';import _0x5f4397 from'./integrations/template';import _0x2fc20e from'./integrations/tableofcontents';import _0x4bf7cf from'./integrations/title';import _0x53f492 from'./integrations/undo';import{getTranslation as _0x1c5b1c}from'./utils/common-translations';import _0x3fc06a from'./integrations/tablecaption';import _0x284672 from'./integrations/documentlistproperties';import _0x466b74 from'./integrations/tableproperties';export default class p extends _0x5a8a15{static get['requires'](){return[_0x3b3a('0x5e'),_0x7cca0d,_0x5d29cd,_0x59a691,_0xd715fd,_0x623f1b,_0x383b8c,_0x574c61,_0xa4143,_0x54d6e4,_0x155c2b,_0x284672,_0x5523b3,_0xd4bc03,_0x1792b6,_0x226d43,_0x2bfde8,_0x5d8156,_0x46406d,_0x1040dc,_0x233ce3,_0x975268,_0x20fd50,_0x298950,_0x3656a9,_0x4946df,_0x247e30,_0x4df5dd,_0x2753a6,_0x1ee22b,_0x59a3bc,_0x52d947,_0x4e27ac,_0x5158f0,_0x5eea33,_0x55b104,_0x534305,_0x24e5ae,_0x4a5b1b,_0x5505f4,_0x3fc06a,_0x476fb3,_0x282a41,_0x2fc20e,_0x466b74,_0x5f4397,_0x4bf7cf,_0x53f492];}static get[_0x3b3a('0x2a')](){return _0x3b3a('0x45');}constructor(_0x10855e){function _0x565a77(_0xb8f1db){return _0xb8f1db[_0x3b3a('0xb')](_0x154061=>String[_0x3b3a('0x119')](_0x154061))['join']('');}super(_0x10855e),this[_0x3b3a('0xea')](_0x3b3a('0xa8'),[]),this['on'](_0x3b3a('0x13f'),(_0x1adf8b,_0x31ce92,_0x293071,_0x4238e6)=>{this[_0x3b3a('0x75')][_0x3b3a('0x1a')](()=>{for(const _0x7e48ad of[..._0x4238e6,..._0x293071])this['_model'][_0x3b3a('0x137')]['has'](_0x7e48ad)&&_0x10855e[_0x3b3a('0x60')]['reconvertMarker'](_0x7e48ad);});}),this[_0x3b3a('0x95')]=new _0x1c62f3(this[_0x3b3a('0x2f')][_0x3b3a('0x105')][_0x3b3a('0x77')],this[_0x3b3a('0x2f')][_0x3b3a('0x91')]),this['_adapter']=null,this[_0x3b3a('0x3d')]=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x3b3a('0x3c')]=_0x10855e[_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0x5e')),this[_0x3b3a('0xe0')]=new Set(),this[_0x3b3a('0x75')]=this[_0x3b3a('0x2f')][_0x3b3a('0x105')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x10855e[_0x3b3a('0x86')][_0x3b3a('0xfc')](_0x3b3a('0xc5'),_0x3b3a('0xa5')),this[_0x3b3a('0x87')]=_0x10855e[_0x3b3a('0x86')][_0x3b3a('0x13a')](_0x3b3a('0xc5')),_0x10855e[_0x3b3a('0x86')][_0x3b3a('0xfc')](_0x3b3a('0x127'),!0x0),this[_0x3b3a('0x11a')]=_0x10855e['config'][_0x3b3a('0x13a')]('trackChanges.mergeNestedSuggestions'),this[_0x3b3a('0x28')]=new _0x41bdf1(_0x10855e,this[_0x3b3a('0xe0')]),this[_0x565a77([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x565a77([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x38]);}[_0x3b3a('0x67')](){const _0x2c0938=this[_0x3b3a('0x2f')];_0x2c0938['conversion']['for'](_0x3b3a('0x12a'))['markerToHighlight']({'model':_0x3b3a('0x65'),'view':_0x3da648=>{const {id:_0x3f4db9,type:_0xe2be87}=this[_0x3b3a('0xe')](_0x3da648[_0x3b3a('0x79')]),_0x807f5a=['ck-suggestion-marker',_0x3b3a('0x10e')+_0xe2be87];let _0x2bc137=0xbb8;return this[_0x3b3a('0xa8')][_0x3b3a('0x11f')](_0x3da648[_0x3b3a('0x79')])&&(_0x807f5a[_0x3b3a('0x4e')](_0x3b3a('0x3b')),_0x2bc137=0xbc2),_0x3b3a('0x30')==_0xe2be87&&(_0x2bc137+=0x5),{'classes':_0x807f5a,'attributes':{'data-suggestion':_0x3f4db9},'priority':_0x2bc137};}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))['add'](_0xe45712=>{_0xe45712['on'](_0x3b3a('0x4a'),(_0x2fc242,_0x7039e8,_0x1c3155)=>{if(!_0x1c3155['options'][_0x3b3a('0xf1')])return;const _0x5070ed=_0x7039e8['item'];if(!_0x5070ed)return;const _0x59ce2b=_0x1c3155[_0x3b3a('0x15')][_0x3b3a('0x36')](_0x5070ed);_0x2c0938['model']['schema'][_0x3b3a('0x37')](_0x5070ed)&&_0x59ce2b&&!_0x59ce2b[_0x3b3a('0x69')]('widget')&&_0x59ce2b['is']('containerElement')&&_0x3caca7(_0x59ce2b,_0x1c3155['writer']);},{'priority':'high'});}),_0x2c0938[_0x3b3a('0x102')]['for']('dataDowncast')[_0x3b3a('0x76')]({'model':_0x3b3a('0x65'),'view':(_0x4fc3bd,_0x5004b2)=>{if(!_0x5004b2[_0x3b3a('0xfb')][_0x3b3a('0xf1')])return null;const {type:_0x9567a}=this[_0x3b3a('0xe')](_0x4fc3bd['markerName']);return{'classes':[_0x3b3a('0x46'),_0x3b3a('0x10e')+_0x9567a],'priority':0xbb8};}});const _0x1e244c=({showActiveMarkers:_0x40e916=!0x0}={})=>(_0xf28b4e,_0x3c82c0,_0x2234a2)=>{if(!_0x3c82c0[_0x3b3a('0xdc')])return;if(_0x3c82c0[_0x3b3a('0xdc')]['is'](_0x3b3a('0x51')))return void _0x2234a2['consumable'][_0x3b3a('0xf')](_0x3c82c0[_0x3b3a('0xdc')],_0xf28b4e[_0x3b3a('0xe1')]);const _0x57c2b8=_0x2234a2[_0x3b3a('0x15')][_0x3b3a('0x36')](_0x3c82c0['item']);if(!(_0x3c82c0[_0x3b3a('0xdc')]['is']('element')&&_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')][_0x3b3a('0x47')](_0x3c82c0['item'])&&!_0x57c2b8[_0x3b3a('0x69')](_0x3b3a('0x82'))))return;const {id:_0x5f45a3}=this[_0x3b3a('0xe')](_0x3c82c0['markerName']);_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xaf')]([_0x3b3a('0x46'),_0x3b3a('0x70')],_0x57c2b8),_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xef')](_0x3b3a('0xb5'),_0x5f45a3,_0x57c2b8),_0x2234a2['mapper'][_0x3b3a('0x78')](_0x57c2b8,_0x3c82c0[_0x3b3a('0x79')]),_0x40e916&&(this[_0x3b3a('0xa8')]['includes'](_0x3c82c0['markerName'])?_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xaf')](_0x3b3a('0x3b'),_0x57c2b8):_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0x27')](_0x3b3a('0x3b'),_0x57c2b8));for(const _0x309021 of _0x2c0938[_0x3b3a('0x105')]['createRangeIn'](_0x3c82c0[_0x3b3a('0xdc')])[_0x3b3a('0x5d')]())_0x2234a2[_0x3b3a('0x73')]['consume'](_0x309021,_0xf28b4e['name']);_0x2234a2[_0x3b3a('0x73')][_0x3b3a('0xf')](_0x3c82c0[_0x3b3a('0xdc')],_0xf28b4e[_0x3b3a('0xe1')]);};_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))[_0x3b3a('0x12b')](_0x11ad6f=>{_0x11ad6f['on'](_0x3b3a('0xd9'),(_0x39ae84,_0x557e36,_0x22bc36)=>{_0x22bc36[_0x3b3a('0xfb')][_0x3b3a('0xf1')]&&_0x1e244c({'showActiveMarkers':!0x1})(_0x39ae84,_0x557e36,_0x22bc36);},{'priority':_0x3b3a('0xd4')});}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))[_0x3b3a('0x121')]({'model':_0x3b3a('0x65'),'view':(_0xd1c904,_0x43b9a2)=>_0x43b9a2[_0x3b3a('0xfb')]['showSuggestionHighlights']?null:{'group':_0x3b3a('0x65'),'name':_0xd1c904[_0x3b3a('0x1e')](0xb)}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0xc6'))[_0x3b3a('0xf0')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x26dbc1,{writer:_0x5881b5})=>{let _0x325d85=_0x3b3a('0x52')+_0x26dbc1[_0x3b3a('0xac')](_0x3b3a('0x12e'))+':'+_0x26dbc1[_0x3b3a('0xac')]('id');return _0x26dbc1[_0x3b3a('0xac')](_0x3b3a('0x116'))&&(_0x325d85+=':'+_0x26dbc1['getAttribute'](_0x3b3a('0x116'))),_0x5881b5[_0x3b3a('0x2e')](_0x3b3a('0x34'),{'data-name':_0x325d85});}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')]('upcast')[_0x3b3a('0xb4')]({'view':_0x3b3a('0x65')}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x12a'))[_0x3b3a('0x12b')](_0x2e91a3=>{_0x2e91a3['on']('addMarker:suggestion:formatBlock',_0x1e244c(),{'priority':_0x3b3a('0x26')});}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x12a'))[_0x3b3a('0x12b')](_0x36ff6b=>{_0x36ff6b['on'](_0x3b3a('0xbe'),(_0xbee629,_0x34d702,_0x3d434c)=>{const _0x325caa=_0x3d434c[_0x3b3a('0x15')][_0x3b3a('0x4')](_0x34d702['markerName']);if(_0x325caa)for(const _0xca140f of _0x325caa)_0xca140f[_0x3b3a('0x69')](_0x3b3a('0x82'))||(_0x3d434c[_0x3b3a('0x103')]['removeClass']([_0x3b3a('0x46'),_0x3b3a('0x70'),_0x3b3a('0x3b')],_0xca140f),_0x3d434c[_0x3b3a('0x103')][_0x3b3a('0x12')](_0x3b3a('0xb5'),_0xca140f),_0x3d434c[_0x3b3a('0x15')][_0x3b3a('0xa')](_0xca140f,_0x34d702[_0x3b3a('0x79')]));},{'priority':_0x3b3a('0x26')});}),_0x2c0938['model']['document']['registerPostFixer'](_0x2b8b77=>{let _0x3d71af=!0x1;const _0x1d7147=Array[_0x3b3a('0x140')](_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')]['getChangedMarkers']()),_0x4d24e1=new Set();for(const {name:_0x75b5ad,data:_0x5e8e6f}of _0x1d7147){const {group:_0x27aa23,type:_0x5798b3,id:_0x366675}=this['_splitMarkerName'](_0x75b5ad);if('suggestion'!==_0x27aa23)continue;const _0x542821=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x366675);if(null!=_0x5e8e6f[_0x3b3a('0x132')]){'formatInline'==_0x5798b3&&(_0x3d71af=_0x3d71af||Mt(_0x5e8e6f[_0x3b3a('0x132')],_0x75b5ad,_0x2b8b77,_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')]));if(_0x5e8e6f[_0x3b3a('0x132')]['isCollapsed']||_0x3b3a('0x129')==_0x5e8e6f['newRange'][_0x3b3a('0xb8')][_0x3b3a('0x101')]||_0x3b3a('0x139')==_0x5798b3&&!Nt(_0x5e8e6f[_0x3b3a('0x132')])||_0x3b3a('0x30')==_0x5798b3&&!(!_t(_0x197f9d=_0x5e8e6f[_0x3b3a('0x132')])&&!function(_0x5d82fc){return _0x5d82fc[_0x3b3a('0x1f')][_0x3b3a('0x6c')]==_0x5d82fc['end'][_0x3b3a('0x19')]&&_0x5d82fc[_0x3b3a('0x1f')][_0x3b3a('0xfd')];}(_0x197f9d)))_0x2b8b77['removeMarker'](_0x75b5ad),_0x3d71af=!0x0;else{if(!_0x542821||!_0x542821[_0x3b3a('0x115')])continue;_0x4d24e1[_0x3b3a('0x12b')](_0x542821);}}}var _0x197f9d;return _0x4d24e1[_0x3b3a('0xbc')]>0x0&&(_0x3d71af=!!this['_joinWithAdjacentSuggestions'](_0x4d24e1)||_0x3d71af),_0x3d71af;}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')]['registerPostFixer'](_0x572d95=>{let _0x11afdb=!0x1;for(const _0x475ce1 of _0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')][_0x3b3a('0xb0')]()){if(_0x3b3a('0x10c')!=_0x475ce1[_0x3b3a('0xc')])continue;const _0x58b4f5=_0x475ce1[_0x3b3a('0xcd')][_0x3b3a('0x6a')](_0x475ce1['length']);if(_0x58b4f5['isAtEnd'])for(const _0x255ea7 of this['_suggestions'][_0x3b3a('0xdf')]()){if(_0x255ea7[_0x3b3a('0x5c')]||!_0x255ea7[_0x3b3a('0x115')])continue;if(_0x3b3a('0x139')!=_0x255ea7[_0x3b3a('0xc')])continue;const _0x3a2775=_0x255ea7[_0x3b3a('0xa4')]();if(_0x3a2775[_0x3b3a('0x1f')][_0x3b3a('0x6c')]!=_0x3a2775[_0x3b3a('0x4d')][_0x3b3a('0x6c')]&&_0x3a2775[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x475ce1[_0x3b3a('0xcd')])){const _0x42d65c=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x3a2775[_0x3b3a('0x1f')],_0x58b4f5);_0x572d95[_0x3b3a('0xda')](_0x255ea7[_0x3b3a('0xd1')](),{'range':_0x42d65c}),_0x11afdb=!0x0;}}}return _0x11afdb;}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x137')]['on'](_0x3b3a('0xc7'),(_0x1a0466,_0x55a179,_0x2f7de6)=>{if(null==_0x2f7de6){const {id:_0x5d9987}=this[_0x3b3a('0xe')](_0x55a179[_0x3b3a('0xe1')]),_0x199761=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x5d9987);_0x199761&&_0x199761[_0x3b3a('0x31')](_0x55a179['name']);}}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')]['on'](_0x3b3a('0x3e'),()=>{const _0x5858e6=Array[_0x3b3a('0x140')](_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')][_0x3b3a('0xcb')]())[_0x3b3a('0xe8')](_0x279644=>_0x3b3a('0x65')===this[_0x3b3a('0xe')](_0x279644[_0x3b3a('0xe1')])[_0x3b3a('0x3')]);if(0x0===_0x5858e6[_0x3b3a('0x84')])return;_0x5858e6['sort']((_0x141538,_0x21cc8c)=>{const _0x1f1fc1=_0x141538[_0x3b3a('0x62')]['oldRange'],_0x4cc9b0=_0x21cc8c[_0x3b3a('0x62')]['oldRange'];return null===_0x1f1fc1&&null===_0x4cc9b0?0x0:null===_0x1f1fc1&&null!==_0x4cc9b0?-0x1:null!==_0x1f1fc1&&null===_0x4cc9b0?0x1:_0x1f1fc1['start'][_0x3b3a('0x117')](_0x4cc9b0['start'])?-0x1:0x1;});const _0xdae2b2=new Set(),_0x31f47b=new Set();for(const {name:_0x4520fd,data:_0x38e36e}of _0x5858e6){const {id:_0x9deda7}=this['_splitMarkerName'](_0x4520fd);if(null===_0x38e36e[_0x3b3a('0xcf')]){const _0x4ba167=this[_0x3b3a('0x100')](_0x4520fd);_0x31f47b[_0x3b3a('0x12b')](_0x4ba167);}else{const _0x536086=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x9deda7);null!==_0x38e36e[_0x3b3a('0x132')]||_0x536086[_0x3b3a('0x115')]?(_0xdae2b2['add'](_0x536086[_0x3b3a('0x125')]),_0x31f47b['add'](_0x536086)):this[_0x3b3a('0xaa')](_0x536086);}}_0x31f47b[_0x3b3a('0xbc')]>0x0&&this[_0x3b3a('0x10a')](_0x31f47b);for(const _0x4b8cbd of _0xdae2b2)this[_0x3b3a('0x7')](_0x3b3a('0x99'),_0x4b8cbd);}),_0x2c0938[_0x3b3a('0x105')]['on'](_0x3b3a('0x108'),(_0x1adbd1,_0x4b83a2)=>{const _0x339e59=_0x4b83a2[0x0];if(!this[_0x3b3a('0x7b')][_0x3b3a('0xbc')])return;if(!_0x339e59[_0x3b3a('0xd5')])return;if(_0x339e59[_0x3b3a('0x3a')][_0x3b3a('0xee')]||!_0x339e59[_0x3b3a('0x3a')][_0x3b3a('0x81')])return;let _0x582883,_0x1cddc0;switch(_0x339e59[_0x3b3a('0xc')]){case'insert':_0x582883=_0x2c0938[_0x3b3a('0x105')]['createPositionAt'](_0x339e59[_0x3b3a('0xcd')]),_0x1cddc0=_0x582883[_0x3b3a('0x6a')](_0x339e59[_0x3b3a('0x64')]);break;case _0x3b3a('0x29'):_0x582883=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59[_0x3b3a('0xf3')]),_0x1cddc0=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59['moveTargetPosition']);break;case _0x3b3a('0xec'):_0x582883=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59['targetPosition']),_0x1cddc0=_0x582883['getShiftedBy'](_0x339e59[_0x3b3a('0x64')]);break;default:return;}const _0x26fa5a=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x582883,_0x1cddc0);_0x2c0938['model'][_0x3b3a('0x1a')](()=>{for(const {suggestion:_0x547120,meta:_0xb711f6}of this[_0x3b3a('0xc1')](_0x26fa5a)){if(_0x547120[_0x3b3a('0x5c')])continue;if(_0x3b3a('0xd8')==_0x547120[_0x3b3a('0xc')])continue;const _0x3324f1=_0x547120[_0x3b3a('0x62')]&&_0x547120['data'][_0x3b3a('0x6f')];(_0x3b3a('0x139')!=_0x547120[_0x3b3a('0xc')]||_0x3b3a('0x29')==_0x339e59['type']&&!_0x3324f1)&&(_0xb711f6['containsRangeInObject']||_0x3b3a('0xe9')==_0x547120[_0x3b3a('0xc')]&&_0xb711f6[_0x3b3a('0x4b')]||_0x547120['getFirstRange']()[_0x3b3a('0x5')](_0x26fa5a)&&this['_breakSuggestionMarker'](_0x547120,_0x582883,_0x1cddc0));}});},{'priority':_0x3b3a('0x9e')}),_0x2c0938['model']['on'](_0x3b3a('0x0'),(_0x51e84c,_0x2bd6e2)=>{const _0x29b5b4=_0x2bd6e2[0x0],_0x2021f2=_0x2bd6e2[0x1];if(_0x2021f2&&_0x2021f2[_0x3b3a('0x41')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3b3a('0x28')]['value'])return;if(_0x29b5b4[_0x3b3a('0x135')])return;const _0x3381db=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')],{start:_0x45f245,end:_0x47db8e}=_0x29b5b4[_0x3b3a('0xa4')](),_0xe7fb0c=_0x45f245[_0x3b3a('0xce')]&&_0x3381db['isLimit'](_0x45f245[_0x3b3a('0xce')])?null:_0x3381db[_0x3b3a('0xf2')](_0x45f245,_0x3b3a('0x13c')),_0x2884d8=_0x47db8e[_0x3b3a('0x19')]&&_0x3381db[_0x3b3a('0x24')](_0x47db8e[_0x3b3a('0x19')])?null:_0x3381db['getNearestSelectionRange'](_0x47db8e,_0x3b3a('0x10d')),_0x28b94e=_0x2c0938['model']['createRange'](_0xe7fb0c?_0xe7fb0c[_0x3b3a('0x1f')]:_0x45f245,_0x2884d8?_0x2884d8[_0x3b3a('0x4d')]:_0x47db8e);_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x1a')](_0x5142c3=>{this['markDeletion'](_0x28b94e);const _0x142af1=_0x2c0938['model'][_0x3b3a('0x77')]['getNearestSelectionRange'](_0x28b94e['start']);_0x29b5b4['is'](_0x3b3a('0xf8'))?_0x5142c3['setSelection'](_0x142af1):_0x29b5b4[_0x3b3a('0xde')](_0x142af1);}),_0x51e84c['stop']();},{'priority':_0x4c7313[_0x3b3a('0x124')]+0xa}),_0x2c0938[_0x3b3a('0x105')]['on'](_0x3b3a('0x18'),(_0x12368b,_0x3eaa72)=>{const _0x273309=_0x3eaa72[_0x3eaa72[_0x3b3a('0x84')]-0x1];_0x273309&&_0x273309[_0x3b3a('0x41')]||this['_isForcedDefaultExecutionBlock']||this[_0x3b3a('0x28')][_0x3b3a('0xad')]&&(_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x1a')](()=>{let _0x41f23f=_0x2c0938['model'][_0x3b3a('0x18')](_0x3eaa72[0x0],_0x3eaa72[0x1],_0x3eaa72[0x2],{'forceDefaultExecution':!0x0});if(!_0x41f23f)return;_0x12368b[_0x3b3a('0x56')]=_0x41f23f[_0x3b3a('0x120')]();const _0x54cab8=_0x41f23f[_0x3b3a('0x4d')][_0x3b3a('0x19')],_0x40e277=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')];_0x54cab8&&_0x40e277[_0x3b3a('0x47')](_0x54cab8)&&!_0x40e277['isObject'](_0x54cab8)&&(_0x41f23f=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x41f23f[_0x3b3a('0x1f')],_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x54cab8,'end'))),this[_0x3b3a('0x48')](_0x41f23f);}),_0x12368b['stop']());},{'priority':_0x3b3a('0x26')}),this[_0x3b3a('0x2f')][_0x3b3a('0x40')]['add'](_0x3b3a('0x123'),this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a4337=new _0x1b56cc(_0x2c0938,this[_0x3b3a('0x7b')]);_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0x106'),_0x5a4337),this[_0x3b3a('0xa1')](_0x3b3a('0x106'));const _0x18bb06=new _0x5df727(_0x2c0938,this[_0x3b3a('0x7b')]);_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')]('discardSuggestion',_0x18bb06),this[_0x3b3a('0xa1')]('discardSuggestion'),_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0xb9'),new _0x8f7995(_0x2c0938,_0x5a4337,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0xb9')),_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0x85'),new _0x8f7995(_0x2c0938,_0x18bb06,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x85')),_0x2c0938['commands'][_0x3b3a('0x12b')]('acceptSelectedSuggestions',new _0x5229a3(_0x2c0938,_0x5a4337,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x42')),_0x2c0938['commands'][_0x3b3a('0x12b')](_0x3b3a('0x98'),new _0x5229a3(_0x2c0938,_0x18bb06,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x98'));const _0x5b5fcb=_0x2c0938[_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0x5e'));this[_0x3b3a('0xd7')](_0x5b5fcb,_0x3b3a('0x109'),(_0x4f77be,{threadId:_0x30835b})=>{const _0x30dc19=this['_suggestions'][_0x3b3a('0x13a')](_0x30835b);_0x30dc19&&_0x30dc19[_0x3b3a('0x38')]&&0x1===_0x30dc19[_0x3b3a('0x38')][_0x3b3a('0x84')]&&this[_0x3b3a('0x11c')](_0x30835b,{'hasComments':!0x0});},{'priority':'low'}),this[_0x3b3a('0xd7')](_0x5b5fcb,_0x3b3a('0x9d'),(_0x157ca7,{threadId:_0x2da3be})=>{const _0x451d36=this['_suggestions'][_0x3b3a('0x13a')](_0x2da3be);_0x451d36&&_0x451d36['commentThread']&&!_0x451d36[_0x3b3a('0x38')][_0x3b3a('0x84')]&&this['_updateSuggestionData'](_0x2da3be,{'hasComments':!0x1});},{'priority':_0x3b3a('0x111')});}set['adapter'](_0x4184cb){if(this['_adapter'])throw new _0x351a30('track-changes-adapter-already-set',this);this['_adapter']=_0x4184cb;}get[_0x3b3a('0xba')](){return this[_0x3b3a('0x68')];}[_0x3b3a('0x122')]({skipNotAttached:_0x4405b0=!0x1,toJSON:_0x2bb5af=!0x1}={}){const _0x479e21=[];for(const _0x5b33ad of this[_0x3b3a('0x7b')][_0x3b3a('0xdf')]())_0x4405b0&&!_0x5b33ad[_0x3b3a('0x115')]||_0x479e21[_0x3b3a('0x4e')](_0x5b33ad);return _0x2bb5af?_0x479e21[_0x3b3a('0xb')](_0x563689=>_0x563689[_0x3b3a('0x7d')]()):_0x479e21;}[_0x3b3a('0x35')](_0x3d1f5b){const _0x30f087=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x3d1f5b);if(!_0x30f087)throw new _0x351a30(_0x3b3a('0x2d'),this);return _0x30f087;}['hasSuggestion'](_0x146cb2){return this[_0x3b3a('0x7b')][_0x3b3a('0xff')](_0x146cb2);}[_0x3b3a('0x9a')](_0x325ede){const {authorId:_0x3380ed,id:_0x16dc36,attributes:_0x33cfdf}=_0x325ede,[_0x234cb9,_0x2b8896]=_0x325ede['type']['split'](':'),_0x33c2ed=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x16dc36)||this['_createSuggestion'](_0x234cb9,_0x2b8896,_0x16dc36,_0x3380ed,_0x33cfdf);if(this['_addThreadToSuggestion'](_0x33c2ed),this[_0x3b3a('0x53')](_0x33c2ed,_0x234cb9,_0x2b8896||null,_0x3380ed),_0x33c2ed['createdAt']=_0x325ede['createdAt'],_0x33cfdf&&_0x33cfdf[_0x3b3a('0x7a')]){const _0xcd008=_0x33cfdf[_0x3b3a('0x7a')],_0x2bfe01=this['_getExternalAuthor'](_0xcd008[_0x3b3a('0x9c')]);_0x33c2ed['authoredAt']=_0xcd008['createdAt'],_0x33c2ed[_0x3b3a('0xc8')]=_0x2bfe01,_0x33c2ed[_0x3b3a('0x32')]=!0x0;}else _0x33c2ed[_0x3b3a('0x136')]=_0x325ede[_0x3b3a('0xd2')];switch(_0x325ede[_0x3b3a('0x62')]&&(_0x33c2ed[_0x3b3a('0x62')]=_0x325ede[_0x3b3a('0x62')]),_0x325ede['attributes']&&(_0x33c2ed[_0x3b3a('0xc3')]=_0x325ede[_0x3b3a('0xc3')]),this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0x96')]||(_0x33c2ed[_0x3b3a('0x44')]=!0x0),this[_0x3b3a('0xcc')]['get'](_0x33c2ed)){case _0x3b3a('0xe7'):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,'dataReady');break;case _0x3b3a('0xf7'):_0x33c2ed[_0x3b3a('0x115')]?(this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,_0x3b3a('0x1c')),this['fire']('suggestionLoaded',_0x33c2ed)):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,_0x3b3a('0x130'));}return _0x33c2ed;}[_0x3b3a('0x106')](_0x5dbe42){this[_0x3b3a('0x41')](()=>{this['editor'][_0x3b3a('0x105')]['change'](()=>{for(const _0x21bc40 of _0x5dbe42[_0x3b3a('0x3f')]())_0x21bc40[_0x3b3a('0x7f')]();});});}[_0x3b3a('0x9')](_0x278e82){this[_0x3b3a('0x41')](()=>{this['editor'][_0x3b3a('0x105')][_0x3b3a('0x1a')](()=>{for(const _0xdc0525 of _0x278e82['getAllAdjacentSuggestions']())_0xdc0525['discard']();});});}[_0x3b3a('0xa1')](_0x597127,_0x4c8357){const _0x1d1033=this[_0x3b3a('0x2f')][_0x3b3a('0x40')][_0x3b3a('0x13a')](_0x597127);if(!_0x1d1033)throw new _0x351a30(_0x3b3a('0x134'),this,{'commandName':_0x597127});this[_0x3b3a('0xe0')]['add'](_0x1d1033),_0x4c8357&&_0x1d1033['on'](_0x3b3a('0xd0'),(_0x4160d4,_0x1c9441)=>{this[_0x3b3a('0x28')][_0x3b3a('0xad')]&&(this[_0x3b3a('0x141')]||_0x1c9441[_0x3b3a('0x84')]>0x0&&_0x1c9441[_0x1c9441[_0x3b3a('0x84')]-0x1]&&_0x1c9441[_0x1c9441[_0x3b3a('0x84')]-0x1][_0x3b3a('0x41')]||(_0x4c8357((..._0x299ad7)=>_0x1d1033[_0x3b3a('0xd0')](..._0x299ad7,{'forceDefaultExecution':!0x0}),..._0x1c9441),_0x4160d4[_0x3b3a('0x13d')]()));},{'priority':'high'});}[_0x3b3a('0x41')](_0x2b5e5d){let _0x9c3cff,_0x5de211;const _0x42a813=this[_0x3b3a('0x141')];this[_0x3b3a('0x141')]=!0x0;try{_0x9c3cff=_0x2b5e5d();}catch(_0x22c178){_0x5de211=_0x22c178;}return _0x42a813||(this[_0x3b3a('0x141')]=!0x1),_0x5de211&&_0x351a30['rethrowUnexpectedError'](_0x5de211,this),_0x9c3cff;}['markInsertion'](_0x90ebf9,_0x429369=null,_0x1e7bde={}){if(_0x90ebf9[_0x3b3a('0x135')])return null;const _0x28b9da=this['editor'][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'];for(const {suggestion:_0x57d8c7,meta:_0xb8fabd}of this[_0x3b3a('0xc1')](_0x90ebf9,_0x3b3a('0xe9')))if(_0xb8fabd[_0x3b3a('0x4b')]){if(!_0xb8fabd[_0x3b3a('0x5f')]){if(!this[_0x3b3a('0x11a')]&&_0xb8fabd[_0x3b3a('0x74')])continue;return _0x57d8c7;}if(_0x429369==_0x57d8c7[_0x3b3a('0xf6')]){const _0x4acceb=_0x57d8c7[_0x3b3a('0xa4')]();return _0x4acceb['start'][_0x3b3a('0x25')](_0x90ebf9[_0x3b3a('0x4d')])?this[_0x3b3a('0x17')](_0x57d8c7,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x90ebf9['start'],_0x4acceb[_0x3b3a('0x4d')])):this[_0x3b3a('0x17')](_0x57d8c7,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x4acceb[_0x3b3a('0x1f')],_0x90ebf9[_0x3b3a('0x4d')])),_0x57d8c7;}}const _0x485e9c=_0x562252(),_0x3de3b7=_0x28b9da['id'],_0x4378aa=_0x429369?_0x3b3a('0x23')+_0x429369:_0x3b3a('0xe9'),_0x34fe58=this[_0x3b3a('0x112')]({'id':_0x485e9c,'type':_0x4378aa,'createdAt':new Date(),'authorId':_0x3de3b7,'attributes':_0x1e7bde});return this[_0x3b3a('0x8e')](_0x4378aa,_0x485e9c,_0x3de3b7,_0x90ebf9),_0x34fe58;}[_0x3b3a('0x13')](_0x1478c6,_0x300ac4=_0x3b3a('0xeb'),_0x50398b={}){const _0x2e0171=this[_0x3b3a('0x2f')]['plugins'][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x3869ac=this[_0x3b3a('0x3d')]['getSuggestionCallback'](_0x3b3a('0xe9'),_0x300ac4,_0x3b3a('0x59'));for(const _0x48953f of this['getSuggestions']())if(_0x48953f[_0x3b3a('0xc8')]['id']==_0x2e0171['id']&&_0x3b3a('0xe9')==_0x48953f[_0x3b3a('0xc')]&&_0x48953f['subType']==_0x300ac4&&(_0x3869ac(_0x48953f['getRanges'](),_0x1478c6)||_0x3869ac(_0x1478c6,_0x48953f['getRanges']()))){for(const _0x4e3c7a of _0x1478c6)_0x48953f['addRange'](_0x4e3c7a);return _0x48953f;}if(this[_0x3b3a('0x11a')])for(const _0x1a3198 of _0x1478c6)for(const {suggestion:_0xf75895,meta:_0x555747}of this[_0x3b3a('0xc1')](_0x1a3198,_0x3b3a('0xe9'))){if(!_0x555747[_0x3b3a('0x4b')])continue;let _0x3163e4=!0x0;for(const _0x241e1c of _0xf75895[_0x3b3a('0x5b')]())for(const _0x3f3911 of _0x1478c6)if(!_0x241e1c['containsRange'](_0x3f3911)){_0x3163e4=!0x1;break;}if(_0x3163e4)return _0xf75895;}const _0x25529b=_0x562252(),_0x2fde60=_0x2e0171['id'],_0x2c78d6='insertion:'+_0x300ac4,_0x1dd0a5=this[_0x3b3a('0x112')]({'id':_0x25529b,'type':_0x2c78d6,'createdAt':new Date(),'authorId':_0x2fde60,'attributes':_0x50398b});for(const _0x95f008 of _0x1478c6)this[_0x3b3a('0x8e')](_0x2c78d6,_0x25529b,_0x2fde60,_0x95f008,_0x38aeef[_0x3b3a('0x12d')]());return _0x1dd0a5;}[_0x3b3a('0x80')](_0xb355b2,_0xe1aa8b,_0x408933=null,_0x269aac={}){if(_0x408933=_0x408933||$t(_0xe1aa8b),_0xb355b2[_0x3b3a('0x135')])return null;if('never'===this[_0x3b3a('0x87')]){const _0x4e917a=this['_suggestionFactory'][_0x3b3a('0x131')](_0x3b3a('0xd8'),_0x408933,'accept');return this['forceDefaultExecution'](()=>_0x4e917a([_0xb355b2],_0xe1aa8b,_0x269aac)),null;}const _0x236019=this['editor'][_0x3b3a('0x1')][_0x3b3a('0x13a')]('Users')['me'],_0x8566d3=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x2867b7,meta:_0x337d60}of this[_0x3b3a('0xc1')](_0xb355b2,_0x3b3a('0xe9')))_0x337d60['isOwn']&&!_0x337d60[_0x3b3a('0x94')]&&_0x8566d3['push'](..._0x2867b7[_0x3b3a('0x5b')]());const _0x368fb3=function(_0x1d8b13,_0x1872e4){const _0x3eb42c=[];for(const _0x22406a of _0x1872e4){const _0x5ae381=_0x1d8b13[_0x3b3a('0xc2')](_0x22406a);_0x5ae381&&_0x3eb42c['push'](_0x5ae381);}return _0x3eb42c;}(_0xb355b2,_0x8566d3),_0x34a7da=function(_0x4d3817,_0x4158f9){const _0xd80c71=[_0x4d3817];for(const _0x181a6c of _0x4158f9){let _0x2ff8a2=0x0;for(;_0x2ff8a2<_0xd80c71['length'];){const _0xab17bb=_0xd80c71[_0x2ff8a2][_0x3b3a('0x11e')](_0x181a6c);_0xd80c71['splice'](_0x2ff8a2,0x1,..._0xab17bb),_0x2ff8a2+=_0xab17bb['length'];}}return _0xd80c71;}(_0xb355b2,_0x8566d3);_0x368fb3[_0x3b3a('0x84')]&&this[_0x3b3a('0x75')][_0x3b3a('0x1a')](()=>{for(const _0x17daf8 of _0x368fb3){const _0x47e691=this['_suggestionFactory']['getSuggestionCallback'](_0x3b3a('0xd8'),_0x408933,_0x3b3a('0x7f'));this[_0x3b3a('0x41')](()=>_0x47e691([_0x17daf8],_0xe1aa8b,_0x269aac));}});for(const _0x17e069 of _0x34a7da){let _0x64bd9f=null,_0x141334=_0x17e069['start'],_0x1e56b3=_0x17e069[_0x3b3a('0x4d')];for(const {suggestion:_0x3d015c,meta:_0x395ac7}of this['_findSuggestions'](_0x17e069,_0x3b3a('0xd8'))){if(!_0x395ac7[_0x3b3a('0x4b')])continue;if(_0x3d015c[_0x3b3a('0xf6')]!=_0x408933)continue;const _0x32509f=_0x3d015c['getFirstRange']();if(_0x32509f[_0x3b3a('0x5')](_0x17e069,!0x0))return null;_0x141334=_0x141334[_0x3b3a('0x117')](_0x32509f[_0x3b3a('0x1f')])?_0x141334:_0x32509f[_0x3b3a('0x1f')],_0x1e56b3=_0x1e56b3[_0x3b3a('0x90')](_0x32509f[_0x3b3a('0x4d')])?_0x1e56b3:_0x32509f[_0x3b3a('0x4d')],_0x64bd9f?_0x32509f[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x64bd9f[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x64bd9f['removeMarkers'](),_0x64bd9f=_0x3d015c):_0x3d015c[_0x3b3a('0x110')]():_0x64bd9f=_0x3d015c;}const _0x182a14=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x141334,_0x1e56b3);if(_0x64bd9f)this[_0x3b3a('0x17')](_0x64bd9f,_0x182a14);else{const _0x114a03=_0x562252(),_0x2e267c=_0x236019['id'];this[_0x3b3a('0x112')]({'id':_0x114a03,'type':'formatInline:'+_0x408933,'data':_0xe1aa8b,'createdAt':new Date(),'authorId':_0x2e267c,'attributes':_0x269aac}),this['_addSuggestionMarker'](_0x3b3a('0xd')+_0x408933,_0x114a03,_0x2e267c,_0x182a14);}}return null;}[_0x3b3a('0x54')](_0x17deb8,_0xebecf3,_0x4b42ef=[],_0x18a27f=null,_0xac7ded={}){_0xebecf3['formatGroupId']||(_0xebecf3[_0x3b3a('0x10')]=_0xebecf3[_0x3b3a('0x138')]),_0xebecf3[_0x3b3a('0x6f')]=_0x17deb8['is'](_0x3b3a('0x83')),_0x18a27f=_0x18a27f||$t(_0xebecf3);const _0x2b8f7b=_0x4b42ef[_0x3b3a('0xb')](_0x48f7f6=>Rt(_0x48f7f6,this['_model'])),_0x1a0183=_0x17deb8['is']('range')?_0x17deb8:Rt(_0x17deb8,this[_0x3b3a('0x75')]);if(_0x3b3a('0xf9')===this['_trackFormatChanges']){const _0x361087=this['_suggestionFactory'][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x18a27f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x361087([_0x1a0183],_0xebecf3,_0xac7ded)),null;}_0x2b8f7b[_0x3b3a('0x4e')](_0x1a0183);let _0x169ccb=!0x0;for(const _0x1e9e40 of _0x2b8f7b)if(!this[_0x3b3a('0x33')](_0x1e9e40)){_0x169ccb=!0x1;break;}if(_0x169ccb&&'always'!==this['_trackFormatChanges']){const _0xe5929e=this['_suggestionFactory'][_0x3b3a('0x131')]('formatBlock',_0x18a27f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0xe5929e([_0x1a0183],_0xebecf3,_0xac7ded)),null;}let _0x49e905=null,_0x10cb77=_0x1a0183['start'],_0x30cddd=_0x1a0183[_0x3b3a('0x4d')];for(const {suggestion:_0x147c51,meta:_0xd8b1a4}of this['_findSuggestions'](_0x1a0183,_0x3b3a('0x139'))){if(!_0xd8b1a4['isOwn']||_0xd8b1a4[_0x3b3a('0x5f')]||_0xd8b1a4[_0x3b3a('0x74')]||_0xd8b1a4[_0x3b3a('0x94')])continue;if(_0x147c51[_0x3b3a('0x62')][_0x3b3a('0x10')]!=_0xebecf3[_0x3b3a('0x10')])continue;const _0xa7508=_0x147c51[_0x3b3a('0xa4')]();if(_0x147c51[_0x3b3a('0xf6')]==_0x18a27f){if(_0xa7508[_0x3b3a('0x5')](_0x1a0183,!0x0))return null;_0x10cb77=_0x10cb77[_0x3b3a('0x117')](_0xa7508[_0x3b3a('0x1f')])?_0x10cb77:_0xa7508[_0x3b3a('0x1f')],_0x30cddd=_0x30cddd[_0x3b3a('0x90')](_0xa7508[_0x3b3a('0x4d')])?_0x30cddd:_0xa7508[_0x3b3a('0x4d')],_0x49e905?_0xa7508[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x49e905[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x49e905['removeMarkers'](),_0x49e905=_0x147c51):_0x147c51[_0x3b3a('0x110')]():_0x49e905=_0x147c51;}else{const _0x476e8d=_0x1a0183[_0x3b3a('0xc2')](_0xa7508);this[_0x3b3a('0xbb')](_0x147c51,_0x476e8d);}}const _0x2c772e=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x55dd93=_0x562252(),_0x3c579b=_0x2c772e['id'];if(_0x49e905)return this[_0x3b3a('0x17')](_0x49e905,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x10cb77,_0x30cddd)),_0x49e905;{const _0x376503=this[_0x3b3a('0x112')]({'id':_0x55dd93,'type':'formatBlock:'+_0x18a27f,'data':_0xebecf3,'createdAt':new Date(),'authorId':_0x3c579b,'attributes':_0xac7ded});return this[_0x3b3a('0x8e')]('formatBlock:'+_0x18a27f,_0x55dd93,_0x3c579b,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x10cb77,_0x30cddd)),_0x376503;}}[_0x3b3a('0xa0')](_0x56b0c1,_0x5c583a,_0x3ff59d=[],_0x56e023=null,_0x413dbb={}){_0x5c583a['formatGroupId']||(_0x5c583a[_0x3b3a('0x10')]=_0x5c583a['commandName']);const _0x4adc0c=_0x56b0c1[0x0];_0x5c583a[_0x3b3a('0x6f')]=_0x4adc0c['is'](_0x3b3a('0x83')),_0x56e023=_0x56e023||$t(_0x5c583a);const _0xf6ec9c=_0x3ff59d['map'](_0x101c91=>Rt(_0x101c91,this[_0x3b3a('0x75')])),_0x1f6f44=_0x4adc0c['is'](_0x3b3a('0x83'))?_0x56b0c1:_0x56b0c1[_0x3b3a('0xb')](_0x4d1bc0=>Rt(_0x4d1bc0,this['_model']));if(_0x3b3a('0xf9')===this[_0x3b3a('0x87')]){const _0x4cd059=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x56e023,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x4cd059(_0x1f6f44,_0x5c583a,_0x413dbb)),null;}_0xf6ec9c[_0x3b3a('0x4e')](..._0x1f6f44);let _0x25b697=!0x0;for(const _0x4605b3 of _0xf6ec9c)if(!this[_0x3b3a('0x33')](_0x4605b3)){_0x25b697=!0x1;break;}if(_0x25b697&&'always'!==this['_trackFormatChanges']){const _0x3525b2=this['_suggestionFactory'][_0x3b3a('0x131')]('formatBlock',_0x56e023,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x3525b2(_0x1f6f44,_0x5c583a,_0x413dbb)),null;}const _0x18290b=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'];for(const _0x3faa6e of this[_0x3b3a('0x122')]()){if(_0x3faa6e[_0x3b3a('0xc8')]['id']!=_0x18290b['id'])continue;if('formatBlock'!=_0x3faa6e[_0x3b3a('0xc')]||_0x3faa6e[_0x3b3a('0x62')][_0x3b3a('0x10')]!=_0x5c583a[_0x3b3a('0x10')])continue;const _0x3a5f75=_0x3faa6e['subType']==_0x56e023;for(let _0xf9e2d3=0x0;_0xf9e2d3<_0x1f6f44[_0x3b3a('0x84')];_0xf9e2d3++){const _0x4a045a=_0x1f6f44[_0xf9e2d3];for(const _0x175401 of _0x3faa6e['getMarkers']()){const _0x37d475=_0x175401[_0x3b3a('0x58')]();if(_0x4a045a[_0x3b3a('0x25')](_0x37d475)){_0x3a5f75?(_0x1f6f44['splice'](_0xf9e2d3,0x1),_0xf9e2d3--):_0x3faa6e[_0x3b3a('0x114')](_0x175401[_0x3b3a('0xe1')]);break;}}}}if(0x0==_0x1f6f44[_0x3b3a('0x84')])return null;const _0x17489a=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x56e023,'join');for(const _0x34d53f of this['getSuggestions']())if(_0x34d53f[_0x3b3a('0xc8')]['id']==_0x18290b['id']&&_0x3b3a('0x139')==_0x34d53f[_0x3b3a('0xc')]&&_0x34d53f[_0x3b3a('0x62')][_0x3b3a('0x10')]==_0x5c583a['formatGroupId']&&_0x34d53f['subType']==_0x56e023&&(_0x17489a(_0x34d53f[_0x3b3a('0x5b')](),_0x1f6f44)||_0x17489a(_0x1f6f44,_0x34d53f[_0x3b3a('0x5b')]()))){for(const _0x4eebc1 of _0x1f6f44)_0x34d53f['addRange'](_0x4eebc1);return _0x34d53f;}const _0x42988c=_0x562252(),_0x5d6ca5=_0x18290b['id'],_0x329b64=_0x3b3a('0xfa')+_0x56e023,_0x477e2d=this[_0x3b3a('0x112')]({'id':_0x42988c,'type':_0x329b64,'data':_0x5c583a,'createdAt':new Date(),'authorId':_0x5d6ca5,'attributes':_0x413dbb});for(const _0x4b9eb0 of _0x1f6f44)this[_0x3b3a('0x8e')](_0x329b64,_0x42988c,_0x5d6ca5,_0x4b9eb0,_0x38aeef[_0x3b3a('0x12d')]());return _0x477e2d;}[_0x3b3a('0x21')](_0x5e380d,_0x1e717f=null,_0x19bbc6={}){if(_0x5e380d[_0x3b3a('0x135')])return null;const _0x2ce221=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0xcb9d36=new _0x541e31(_0x5e380d[_0x3b3a('0x1f')],_0x5e380d[_0x3b3a('0x4d')]);for(const {suggestion:_0x188faa,meta:_0x46f0ff}of this[_0x3b3a('0xc1')](_0xcb9d36,_0x3b3a('0xe9')))if(_0x46f0ff['isOwn']&&!_0x46f0ff[_0x3b3a('0x5f')]){if(_0x188faa['isMultiRange']){const _0x2de961=_0x188faa[_0x3b3a('0x5b')]()[_0x3b3a('0xe8')](_0x3ddef3=>_0x3b3a('0x129')!=_0x3ddef3[_0x3b3a('0xb8')][_0x3b3a('0x101')]);_0x2de961[_0x3b3a('0xab')](_0x5c990f=>_0xcb9d36[_0x3b3a('0x5')](_0x5c990f,!0x0))&&_0x188faa[_0x3b3a('0x10f')]();if(_0x2de961['some'](_0x19d4b5=>_0x19d4b5[_0x3b3a('0x5')](_0xcb9d36,!0x0))){const _0x6b9f66=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x1e717f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x6b9f66([_0xcb9d36],null,_0x19bbc6)),null;}}else{const _0x112e60=_0xcb9d36[_0x3b3a('0xc2')](_0x188faa[_0x3b3a('0xa4')]());null!==_0x112e60&&_0x188faa[_0x3b3a('0x7e')]([_0x112e60],null,_0x19bbc6);}}if(_0xcb9d36[_0x3b3a('0x93')](),_0xcb9d36[_0x3b3a('0x135')]||_0x3b3a('0x129')==_0xcb9d36[_0x3b3a('0xb8')][_0x3b3a('0x101')])return null;let _0x39284c=null,_0x5bc77d=_0xcb9d36['start'],_0x837cef=_0xcb9d36[_0x3b3a('0x4d')];for(const {suggestion:_0x58bcce,meta:_0x4b3d90}of this['_findSuggestions'](_0xcb9d36,_0x3b3a('0x30')))if(_0x4b3d90[_0x3b3a('0x4b')]){if(_0x58bcce[_0x3b3a('0x5c')]&&this[_0x3b3a('0x11a')]){let _0x3b712c=!0x0;for(const _0x4c7d70 of _0x58bcce[_0x3b3a('0x5b')]()){if(_0x4c7d70[_0x3b3a('0x5')](_0xcb9d36,!0x0))return _0x58bcce;_0xcb9d36[_0x3b3a('0x5')](_0x4c7d70)||(_0x3b712c=!0x1);}_0x3b712c&&_0x58bcce[_0x3b3a('0x10f')]();}else{const _0x2f2ce1=_0x58bcce[_0x3b3a('0xa4')]();if(_0x2f2ce1[_0x3b3a('0x5')](_0xcb9d36,!0x0)){if(!this[_0x3b3a('0x11a')]&&_0x4b3d90['containsRangeInObject'])continue;return _0x58bcce;}_0x5bc77d=_0x5bc77d[_0x3b3a('0x117')](_0x2f2ce1[_0x3b3a('0x1f')])?_0x5bc77d:_0x2f2ce1[_0x3b3a('0x1f')],_0x837cef=_0x837cef[_0x3b3a('0x90')](_0x2f2ce1[_0x3b3a('0x4d')])?_0x837cef:_0x2f2ce1[_0x3b3a('0x4d')],_0x39284c?_0x2f2ce1[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x39284c[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x39284c[_0x3b3a('0x110')](),_0x39284c=_0x58bcce):_0x58bcce['removeMarkers']():_0x39284c=_0x58bcce;}}if(_0x39284c)return this['_setSuggestionRange'](_0x39284c,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5bc77d,_0x837cef)),_0x39284c;{const _0x42df0c=_0x562252(),_0x5faca7=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5bc77d,_0x837cef),_0x25320e=_0x2ce221['id'],_0x2e4d5c=_0x1e717f?'deletion:'+_0x1e717f:'deletion',_0x8d4fb5=this['_setSuggestionData']({'id':_0x42df0c,'type':_0x2e4d5c,'createdAt':new Date(),'authorId':_0x25320e,'attributes':_0x19bbc6});return this[_0x3b3a('0x8e')](_0x2e4d5c,_0x42df0c,_0x25320e,_0x5faca7),_0x8d4fb5;}}[_0x3b3a('0x8a')](_0x1c668b,_0x52c705=_0x3b3a('0xeb'),_0x31e71a={}){const _0x337689=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x4cb46e=_0x1c668b[_0x3b3a('0xb')](_0x6f7756=>new _0x541e31(_0x6f7756['start'],_0x6f7756['end'])),_0x1c3756=new Set();for(const _0x55ab36 of _0x4cb46e)for(const {suggestion:_0x3bf6eb,meta:_0x53f103}of this['_findSuggestions'](_0x55ab36,_0x3b3a('0xe9')))_0x53f103[_0x3b3a('0x4b')]&&!_0x53f103['isNextTo']&&_0x1c3756[_0x3b3a('0x12b')](_0x3bf6eb);for(const _0x4303b1 of _0x1c3756)if(_0x4303b1[_0x3b3a('0x5c')]){const _0x3858c2=_0x4303b1[_0x3b3a('0x5b')]();(!_0x4303b1[_0x3b3a('0xc3')]||!_0x4303b1[_0x3b3a('0xc3')]['skipNestingCheck'])&&(_0x3858c2['every'](_0x29230e=>_0x4cb46e[_0x3b3a('0x2c')](_0x104749=>_0x104749[_0x3b3a('0x5')](_0x29230e,!0x0)))&&_0x4303b1[_0x3b3a('0x10f')]());if(_0x4cb46e[_0x3b3a('0xab')](_0x2a919c=>_0x3858c2['some'](_0x558d73=>_0x558d73[_0x3b3a('0x5')](_0x2a919c,!0x0)))){const _0x4050a0=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x52c705,'accept');return this[_0x3b3a('0x41')](()=>_0x4050a0(_0x1c668b,null,_0x31e71a)),null;}}else{const _0x2e9505=_0x4303b1[_0x3b3a('0xa4')]();_0x4cb46e[_0x3b3a('0x2c')](_0x22e65f=>_0x22e65f['containsRange'](_0x2e9505,!0x0))&&_0x4303b1[_0x3b3a('0x10f')]();if(_0x4cb46e[_0x3b3a('0xab')](_0x59f8aa=>_0x2e9505[_0x3b3a('0x5')](_0x59f8aa,!0x0))){const _0x4606ff=this['_suggestionFactory'][_0x3b3a('0x131')]('deletion',_0x52c705,'accept');return this['forceDefaultExecution'](()=>_0x4606ff(_0x4cb46e,null,_0x31e71a)),null;}}const _0x35eb43=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x52c705,_0x3b3a('0x59'));let _0x2a2175=null;for(const _0x8c1557 of this[_0x3b3a('0x122')]())if(_0x8c1557[_0x3b3a('0xc8')]['id']==_0x337689['id']&&_0x8c1557[_0x3b3a('0x115')]&&'deletion'==_0x8c1557[_0x3b3a('0xc')]&&_0x8c1557[_0x3b3a('0xf6')]==_0x52c705&&(_0x35eb43(_0x8c1557[_0x3b3a('0x5b')](),_0x4cb46e)||_0x35eb43(_0x4cb46e,_0x8c1557[_0x3b3a('0x5b')]()))){if(_0x2a2175){if(_0x8c1557['commentThread']&&_0x8c1557[_0x3b3a('0x38')][_0x3b3a('0x84')])continue;for(const _0x3ab0cc of _0x8c1557[_0x3b3a('0x5b')]())_0x2a2175[_0x3b3a('0xd6')](_0x3ab0cc)||_0x2a2175[_0x3b3a('0xae')](_0x3ab0cc);_0x8c1557[_0x3b3a('0x110')]();}else{_0x2a2175=_0x8c1557;for(const _0x462d1a of _0x4cb46e)_0x8c1557[_0x3b3a('0xd6')](_0x462d1a)||_0x8c1557['addRange'](_0x462d1a);}}if(_0x2a2175)return _0x2a2175;_0x1c3756['clear']();for(const _0x11f57f of _0x4cb46e)for(const {suggestion:_0x4dc857,meta:_0x1f207b}of this['_findSuggestions'](_0x11f57f,_0x3b3a('0x30')))_0x1f207b[_0x3b3a('0x4b')]&&_0x1c3756[_0x3b3a('0x12b')](_0x4dc857);for(const _0x577b20 of _0x1c3756){const _0x212eeb=_0x577b20[_0x3b3a('0x5b')]();if(!_0x31e71a||!_0x31e71a[_0x3b3a('0x71')]){if(_0x4cb46e[_0x3b3a('0xab')](_0x50af73=>_0x212eeb[_0x3b3a('0x2c')](_0x41173b=>_0x41173b[_0x3b3a('0x5')](_0x50af73,!0x0))))return _0x577b20;}(!_0x577b20[_0x3b3a('0xc3')]||!_0x577b20[_0x3b3a('0xc3')][_0x3b3a('0x71')])&&(_0x212eeb[_0x3b3a('0xab')](_0x3c4bb9=>_0x4cb46e['some'](_0x1ea122=>_0x1ea122['containsRange'](_0x3c4bb9,!0x0)))&&_0x577b20[_0x3b3a('0x10f')]());}const _0x1daf89=_0x562252(),_0x268a92=_0x337689['id'],_0x3ac014='deletion:'+_0x52c705,_0x11f773=this[_0x3b3a('0x112')]({'id':_0x1daf89,'type':_0x3ac014,'createdAt':new Date(),'authorId':_0x268a92,'attributes':_0x31e71a});for(const _0x512d69 of _0x4cb46e)_0x512d69['detach'](),_0x512d69[_0x3b3a('0x135')]||_0x3b3a('0x129')==_0x512d69[_0x3b3a('0xb8')][_0x3b3a('0x101')]||this[_0x3b3a('0x8e')](_0x3ac014,_0x1daf89,_0x268a92,_0x512d69,_0x38aeef[_0x3b3a('0x12d')]());return _0x11f773;}['_setSuggestionRange'](_0x5c7d64,_0x433ad7){const _0x4ef94a=_0x5c7d64[_0x3b3a('0xd1')]();this[_0x3b3a('0x75')][_0x3b3a('0x1a')](_0x2b123f=>{_0x2b123f[_0x3b3a('0xda')](_0x4ef94a,{'range':_0x433ad7});});}[_0x3b3a('0x92')](_0x180683){const _0x1d886a=_0x180683['id'],_0x253900=this[_0x3b3a('0x2f')][_0x3b3a('0x86')]['get'](_0x3b3a('0x8b'));this[_0x3b3a('0x3c')]['hasCommentThread'](_0x1d886a)||this[_0x3b3a('0x3c')][_0x3b3a('0x2')]({'channelId':_0x253900,'threadId':_0x1d886a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f27bf=this[_0x3b3a('0x3c')][_0x3b3a('0x12f')](_0x1d886a);_0x3f27bf[_0x3b3a('0x126')](_0x3b3a('0x10b')),_0x3f27bf[_0x3b3a('0x10b')]=!0x1,_0x180683[_0x3b3a('0x38')]=_0x3f27bf;}['_checkSuggestionCorrectness'](_0x14cf84,_0x10de1b,_0x15e08a,_0x3021bf){if(_0x14cf84[_0x3b3a('0xc')]!=_0x10de1b||_0x14cf84[_0x3b3a('0xf6')]!=_0x15e08a||_0x14cf84[_0x3b3a('0xa3')]['id']!=_0x3021bf)throw this[_0x3b3a('0x2f')][_0x3b3a('0x4c')](_0x3b3a('0x11')),new _0x351a30(_0x3b3a('0x11'),this);}['_cutOutSuggestionMarker'](_0x336370,_0x9e276c){const _0x5ce4c4=_0x336370['getFirstRange']();if(_0x9e276c['isEqual'](_0x5ce4c4))_0x336370['removeMarkers']();else{if(_0x5ce4c4[_0x3b3a('0x5')](_0x9e276c)){const _0x213c14=this['_model']['createPositionAt'](_0x9e276c['start'][_0x3b3a('0x19')],_0x3b3a('0x4d'));this[_0x3b3a('0x17')](_0x336370,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5ce4c4[_0x3b3a('0x1f')],_0x213c14));const _0xcaa11=_0x562252(),_0x470161=_0x336370[_0x3b3a('0xa3')]['id'],_0x3aea8a=_0x336370[_0x3b3a('0xc')]+':'+_0x336370[_0x3b3a('0xf6')];this[_0x3b3a('0x112')]({'id':_0xcaa11,'type':_0x3aea8a,'createdAt':new Date(),'authorId':_0x470161,'data':_0x336370[_0x3b3a('0x62')],'attributes':_0x336370['attributes']});const _0x47bd77=this['_model'][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x4d')][_0x3b3a('0x6c')],_0x3b3a('0x61')),_0xc536a0=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x47bd77,_0x5ce4c4[_0x3b3a('0x4d')]);this['_addSuggestionMarker'](_0x3aea8a,_0xcaa11,_0x470161,_0xc536a0);}else{if(_0x5ce4c4[_0x3b3a('0x8f')](_0x9e276c[_0x3b3a('0x1f')])){const _0x41b65d=this[_0x3b3a('0x75')][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x1f')]['nodeBefore'],_0x3b3a('0x4d'));this[_0x3b3a('0x17')](_0x336370,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5ce4c4['start'],_0x41b65d));}else{const _0x195b71=this['_model'][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x4d')][_0x3b3a('0x6c')],_0x3b3a('0x61'));this[_0x3b3a('0x17')](_0x336370,this['_model']['createRange'](_0x195b71,_0x5ce4c4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x158d71){for(const {suggestion:_0x5246a5,meta:_0x2adead}of this['_findSuggestions'](_0x158d71,_0x3b3a('0xe9'))){if(!_0x2adead[_0x3b3a('0x4b')])continue;const _0x46b3d9=_0x5246a5[_0x3b3a('0x5b')]();for(const _0x1cbe73 of _0x46b3d9)if(!_0x158d71[_0x3b3a('0x11e')](_0x1cbe73)[_0x3b3a('0x84')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x534527){const _0x2fd311=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get'](_0x3b3a('0xa2'))['getUser'](_0x534527);if(!_0x2fd311)throw new _0x351a30(_0x3b3a('0xc0'),this);return _0x2fd311;}[_0x3b3a('0xe4')](_0x35d3fe){const _0x48db0c=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get']('Users'),_0x45d8d4=_0xe552ec(_0x3b3a('0x11b')+_0x35d3fe),_0xd11b1=_0x48db0c[_0x3b3a('0xe3')](_0x45d8d4);return _0xd11b1||_0x48db0c[_0x3b3a('0xb1')]({'id':_0x45d8d4,'name':_0x35d3fe});}['_createSuggestion'](_0xbd71f2,_0x5602d4,_0x4a9b26,_0x10f84b,_0x367cba){const _0x3d6390=this[_0x3b3a('0x118')](_0x10f84b),_0x2c6dcd=this[_0x3b3a('0x3d')][_0x3b3a('0xe6')](_0xbd71f2,_0x5602d4,_0x4a9b26,_0x3d6390,_0x367cba,_0x5a20bb=>this[_0x3b3a('0x11c')](_0x4a9b26,{'attributes':_0x5a20bb}));return this[_0x3b3a('0xd7')](_0x2c6dcd,'accept',()=>{this['_updateSuggestionData'](_0x4a9b26,{'state':_0x3b3a('0xb6')});},{'priority':'high'}),this[_0x3b3a('0xd7')](_0x2c6dcd,_0x3b3a('0x10f'),()=>{this[_0x3b3a('0x11c')](_0x4a9b26,{'state':_0x3b3a('0x63')});},{'priority':_0x3b3a('0x26')}),this['_suggestions'][_0x3b3a('0xea')](_0x4a9b26,_0x2c6dcd),this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x2c6dcd,_0x3b3a('0xe7')),_0x2c6dcd;}[_0x3b3a('0xe')](_0x56d791){const _0x52ea19=_0x56d791[_0x3b3a('0x29')](':');return{'group':_0x52ea19[0x0],'type':_0x52ea19[0x1],'subType':_0x52ea19[_0x3b3a('0x84')]>=0x5?_0x52ea19[0x2]:null,'id':_0x52ea19['length']<0x5?_0x52ea19[0x2]:_0x52ea19[0x3],'authorId':_0x52ea19['length']<0x5?_0x52ea19[0x3]:_0x52ea19[0x4],'markerCount':0x6==_0x52ea19[_0x3b3a('0x84')]?_0x52ea19[0x5]:null};}['_breakSuggestionMarker'](_0xa7a0b9,_0x376133,_0x11da16){const _0x19c572=_0xa7a0b9['getFirstRange'](),_0x5e71f9=_0x19c572[_0x3b3a('0x1f')],_0x34b882=_0x19c572['end'];this[_0x3b3a('0x17')](_0xa7a0b9,this['_model'][_0x3b3a('0x16')](_0x5e71f9,_0x376133));const _0x4877a0=_0x562252(),_0xc4e427=_0xa7a0b9[_0x3b3a('0xa3')]['id'],_0x4ebd64=_0xa7a0b9[_0x3b3a('0xc')]+(_0xa7a0b9[_0x3b3a('0xf6')]?':'+_0xa7a0b9[_0x3b3a('0xf6')]:'');this[_0x3b3a('0x112')]({'id':_0x4877a0,'type':_0x4ebd64,'createdAt':new Date(),'authorId':_0xc4e427,'originalSuggestionId':_0xa7a0b9['id'],'attributes':_0xa7a0b9[_0x3b3a('0xc3')],'data':_0xa7a0b9[_0x3b3a('0x62')]}),_0x3b3a('0x139')==_0xa7a0b9[_0x3b3a('0xc')]&&(_0x11da16=this[_0x3b3a('0x75')][_0x3b3a('0xb3')](_0x11da16[_0x3b3a('0x6c')])),this[_0x3b3a('0x8e')](_0x4ebd64,_0x4877a0,_0xc4e427,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x11da16,_0x34b882));}[_0x3b3a('0xc1')](_0x1c8a1e,_0x2cfdc5=null){const _0x273974=[],_0x2460d3=this['_model']['schema'],_0x4839da=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get']('Users')['me'];for(const _0x280b38 of this['getSuggestions']())if(_0x280b38[_0x3b3a('0x115')]&&(!_0x2cfdc5||_0x280b38[_0x3b3a('0xc')]==_0x2cfdc5))for(const _0x29068b of _0x280b38[_0x3b3a('0x5b')]()){const _0x5ba589=_0x1c8a1e[_0x3b3a('0x1f')]['isEqual'](_0x29068b[_0x3b3a('0x4d')])||_0x1c8a1e[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x29068b['start']);if(_0x5ba589||_0x1c8a1e['getIntersection'](_0x29068b)){const _0x5b1ecd=_0x1c8a1e[_0x3b3a('0x5')](_0x29068b)&&Bt(_0x2460d3,_0x29068b[_0x3b3a('0x1f')],_0x1c8a1e),_0x32a0fb=_0x29068b[_0x3b3a('0x5')](_0x1c8a1e)&&Bt(_0x2460d3,_0x1c8a1e[_0x3b3a('0x1f')],_0x29068b);_0x273974['push']({'suggestion':_0x280b38,'meta':{'isOwn':_0x4839da==_0x280b38[_0x3b3a('0xc8')],'isNextTo':_0x5ba589,'isInsideObject':_0x5b1ecd,'containsRangeInObject':_0x32a0fb}});break;}}return _0x273974;}[_0x3b3a('0x8e')](_0x38c650,_0x31a996,_0x5e5de8,_0x46207b,_0x49e7ab){this[_0x3b3a('0x75')][_0x3b3a('0x1a')](_0x4290b9=>{let _0x35d260=_0x3b3a('0x52')+_0x38c650+':'+_0x31a996+':'+_0x5e5de8;_0x49e7ab&&(_0x35d260=_0x35d260+':'+_0x49e7ab),_0x4290b9['addMarker'](_0x35d260,{'range':_0x46207b,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3b3a('0xaa')](_0x2dc72a){const _0xa24fb1=_0x2dc72a[_0x3b3a('0x8')],_0x30e351=_0x2dc72a['next'];_0x2dc72a[_0x3b3a('0x8')]=null,null!=_0xa24fb1&&(_0xa24fb1[_0x3b3a('0xed')]=null),_0x2dc72a[_0x3b3a('0xed')]=null,null!=_0x30e351&&(_0x30e351[_0x3b3a('0x8')]=null),'ready'==this['_suggestionState'][_0x3b3a('0x13a')](_0x2dc72a)&&(this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x2dc72a,_0x3b3a('0x130')),this['fire'](_0x3b3a('0xdd'),_0x2dc72a,_0xa24fb1,_0x30e351));}[_0x3b3a('0x112')](_0x2247de){const _0x2f736a=_0x2247de['id'],_0x55f675=this[_0x3b3a('0x9a')](_0x2247de);if(this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0x96')]){const _0x4f510c=this['editor'][_0x3b3a('0x1')]['get'](_0x3b3a('0xa9')),_0x28c815=_0x55f675['hasComments'],_0x57ab2c=_0x55f675['subType']?_0x55f675[_0x3b3a('0xc')]+':'+_0x55f675[_0x3b3a('0xf6')]:_0x55f675[_0x3b3a('0xc')],_0x581674=this[_0x3b3a('0x2f')]['locale'],_0x245345=_0x4f510c[_0x3b3a('0x12b')](_0x1c5b1c(_0x581674,_0x3b3a('0xc4'))),_0x5c3f70={'id':_0x2f736a,'type':_0x57ab2c,'hasComments':_0x28c815,'data':_0x2247de[_0x3b3a('0x62')]||null,'originalSuggestionId':_0x2247de[_0x3b3a('0xc9')]||null,'attributes':_0x55f675[_0x3b3a('0xc3')]};this[_0x3b3a('0x68')][_0x3b3a('0x96')](_0x5c3f70)[_0x3b3a('0x9b')](_0x10d935=>{_0x55f675[_0x3b3a('0x44')]=!0x0,_0x4f510c['remove'](_0x245345),_0x10d935&&_0x10d935[_0x3b3a('0xd2')]&&(this[_0x3b3a('0x7b')]['get'](_0x2f736a)['createdAt']=_0x10d935[_0x3b3a('0xd2')]);})[_0x3b3a('0x2b')](_0x35b57c=>{throw _0x57dcef(_0x3b3a('0x20')),this[_0x3b3a('0x2f')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x55f675[_0x3b3a('0x10f')]();}),_0x55f675[_0x3b3a('0x8c')](),this[_0x3b3a('0x7b')]['delete'](_0x55f675['id']),this[_0x3b3a('0xcc')]['delete'](_0x55f675),_0x35b57c;});}return _0x55f675;}[_0x3b3a('0x11c')](_0x49d68d,_0x457520){const _0x2ada42=this['editor'][_0x3b3a('0x1')]['get']('PendingActions'),_0x1b95b3=this[_0x3b3a('0x35')](_0x49d68d);if(this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0xb2')]){if(_0x1b95b3[_0x3b3a('0x44')]){const _0xbcee9e=_0x2ada42[_0x3b3a('0x12b')](_0x1c5b1c(this[_0x3b3a('0x2f')][_0x3b3a('0x91')],_0x3b3a('0xc4')));this[_0x3b3a('0x68')][_0x3b3a('0xb2')](_0x49d68d,_0x457520)[_0x3b3a('0x9b')](()=>{_0x2ada42['remove'](_0xbcee9e);});}else _0x1b95b3['on'](_0x3b3a('0x6'),()=>{this[_0x3b3a('0x11c')](_0x49d68d,_0x457520);});}}['_getSuggestionData'](_0x371536){if(!this[_0x3b3a('0x68')]||!this['_adapter'][_0x3b3a('0x35')])throw new _0x351a30(_0x3b3a('0x4f'),this);return this[_0x3b3a('0x68')][_0x3b3a('0x35')](_0x371536);}['_handleNewSuggestionMarker'](_0x4db7b0){const {id:_0x316e72,type:_0x25f88d,subType:_0x5b03f8,authorId:_0x36cc89}=this['_splitMarkerName'](_0x4db7b0),_0x49b4cf=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x316e72)||this[_0x3b3a('0x1d')](_0x25f88d,_0x5b03f8,_0x316e72,_0x36cc89,{});switch(this[_0x3b3a('0x53')](_0x49b4cf,_0x25f88d,_0x5b03f8,_0x36cc89),this[_0x3b3a('0xcc')][_0x3b3a('0x13a')](_0x49b4cf)){case _0x3b3a('0xe7'):this[_0x3b3a('0x43')](_0x316e72)[_0x3b3a('0x9b')](_0xa58e9f=>{let _0x4ca9f9=Promise['resolve']();_0xa58e9f[_0x3b3a('0xe5')]&&(_0x4ca9f9=this[_0x3b3a('0x3c')][_0x3b3a('0x13b')]({'channelId':this[_0x3b3a('0x2f')][_0x3b3a('0x86')][_0x3b3a('0x13a')](_0x3b3a('0x8b')),'threadId':_0x316e72})),_0x4ca9f9[_0x3b3a('0x9b')](()=>{this[_0x3b3a('0x9a')](_0xa58e9f)[_0x3b3a('0x44')]=!0x0;});}),this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x49b4cf,_0x3b3a('0xf7'));break;case _0x3b3a('0x130'):this['_updateSuggestionData'](_0x316e72,{'state':'open'});case _0x3b3a('0x107'):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x49b4cf,_0x3b3a('0x1c')),this[_0x3b3a('0x7')](_0x3b3a('0x97'),_0x49b4cf);break;case _0x3b3a('0x1c'):this['fire'](_0x3b3a('0x99'),_0x49b4cf);}return _0x49b4cf[_0x3b3a('0x31')](_0x4db7b0),_0x49b4cf;}['_refreshSuggestionsChain'](_0x4b1313){const _0x1ccc0b=Array['from'](_0x4b1313)[_0x3b3a('0xe8')](_0x615f9a=>!_0x615f9a[_0x3b3a('0x5c')]),_0x461a70=this[_0x3b3a('0x122')]({'skipNotAttached':!0x0})[_0x3b3a('0xe8')](_0x67cdde=>!_0x67cdde[_0x3b3a('0x5c')]),_0x363f94=_0x461a70[_0x3b3a('0xe8')](_0xcd5a0e=>!_0x4b1313['has'](_0xcd5a0e)),_0x45cbfd=new Map(_0x461a70[_0x3b3a('0xb')](_0xd64950=>[_0xd64950,this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0xd64950[_0x3b3a('0xc')],_0xd64950[_0x3b3a('0xf6')],'chain')])),_0x587239=new Map(_0x461a70[_0x3b3a('0xb')](_0x133543=>[_0x133543,_0x133543[_0x3b3a('0xa4')]()])),_0x183187=new Set(),_0x56f0d2=new Set();for(let _0x3bc8aa=0x0;_0x3bc8aa<_0x1ccc0b['length'];_0x3bc8aa++)_0x5d781c(_0x1ccc0b[_0x3bc8aa],_0x1ccc0b,_0x3bc8aa+0x1);for(let _0x3b3704=0x0;_0x3b3704<_0x1ccc0b[_0x3b3a('0x84')];_0x3b3704++)_0x5d781c(_0x1ccc0b[_0x3b3704],_0x363f94,0x0);for(let _0x23d587=0x0;_0x23d587<_0x1ccc0b['length'];_0x23d587++){const _0xfc1f11=_0x1ccc0b[_0x23d587];!_0x56f0d2[_0x3b3a('0xff')](_0xfc1f11)&&_0xfc1f11['previous']&&(_0xfc1f11[_0x3b3a('0x8')][_0x3b3a('0xed')]===_0xfc1f11&&(_0xfc1f11[_0x3b3a('0x8')][_0x3b3a('0xed')]=null),_0xfc1f11[_0x3b3a('0x8')]=null),!_0x183187[_0x3b3a('0xff')](_0xfc1f11)&&_0xfc1f11[_0x3b3a('0xed')]&&(_0xfc1f11[_0x3b3a('0xed')][_0x3b3a('0x8')]===_0xfc1f11&&(_0xfc1f11[_0x3b3a('0xed')][_0x3b3a('0x8')]=null),_0xfc1f11[_0x3b3a('0xed')]=null);}function _0x5d781c(_0x28f841,_0x5bd869,_0x6df87){for(let _0x4d032f=_0x6df87;_0x4d032f<_0x5bd869[_0x3b3a('0x84')];_0x4d032f++){const _0xe25653=_0x473b23(_0x28f841,_0x5bd869[_0x4d032f]);_0xe25653&&(_0xe25653[0x0]['next']=_0xe25653[0x1],_0xe25653[0x1][_0x3b3a('0x8')]=_0xe25653[0x0],_0x183187[_0x3b3a('0x12b')](_0xe25653[0x0]),_0x56f0d2[_0x3b3a('0x12b')](_0xe25653[0x1]));}}function _0x473b23(_0x1bbd10,_0x247ad9){if(_0x1bbd10[_0x3b3a('0xc8')]['id']!==_0x247ad9[_0x3b3a('0xc8')]['id'])return null;const _0x13dbf6=_0x45cbfd[_0x3b3a('0x13a')](_0x1bbd10)(_0x1bbd10,_0x247ad9,_0x587239[_0x3b3a('0x13a')](_0x1bbd10),_0x587239['get'](_0x247ad9));if(!_0x13dbf6)return null;return _0x45cbfd['get'](_0x247ad9)(_0x1bbd10,_0x247ad9,_0x587239[_0x3b3a('0x13a')](_0x1bbd10),_0x587239[_0x3b3a('0x13a')](_0x247ad9))?_0x13dbf6[0x1]['commentThread']&&_0x13dbf6[0x1]['commentThread'][_0x3b3a('0x84')]?null:_0x13dbf6:null;}}[_0x3b3a('0xe2')](_0x16c929){const _0x4b39a=Array[_0x3b3a('0x140')](_0x16c929),_0x3c1379=this[_0x3b3a('0x122')]({'skipNotAttached':!0x0}),_0x374785=_0x3c1379[_0x3b3a('0xe8')](_0x6aa43c=>!_0x16c929[_0x3b3a('0xff')](_0x6aa43c)),_0x4d9618=new Map(_0x4b39a['map'](_0xa6455b=>[_0xa6455b,this['_suggestionFactory'][_0x3b3a('0x131')](_0xa6455b[_0x3b3a('0xc')],_0xa6455b[_0x3b3a('0xf6')],_0x3b3a('0x59'))])),_0xca58df=new Map(_0x3c1379[_0x3b3a('0xb')](_0x33cab1=>[_0x33cab1,_0x33cab1[_0x3b3a('0x5b')]()]));for(let _0xbdcc70=0x0;_0xbdcc70<_0x4b39a[_0x3b3a('0x84')];_0xbdcc70++){if(_0xd1cc7d(this,_0x4b39a[_0xbdcc70],_0x4b39a,_0xbdcc70+0x1))return!0x0;}for(let _0x32d8ea=0x0;_0x32d8ea<_0x4b39a['length'];_0x32d8ea++){if(_0xd1cc7d(this,_0x4b39a[_0x32d8ea],_0x374785,0x0))return!0x0;}return!0x1;function _0xd1cc7d(_0x13510a,_0x1b9806,_0x3a1658,_0x1fafbb){for(let _0x1932a9=_0x1fafbb;_0x1932a9<_0x3a1658[_0x3b3a('0x84')];_0x1932a9++){const _0x4085d8=_0x3a1658[_0x1932a9];if(_0x4085d8[_0x3b3a('0xc')]!==_0x1b9806[_0x3b3a('0xc')]||_0x4085d8[_0x3b3a('0xc8')]['id']!==_0x1b9806[_0x3b3a('0xc8')]['id']||_0x4085d8[_0x3b3a('0xf6')]!==_0x1b9806[_0x3b3a('0xf6')])continue;const _0x3b5c44=_0x4d9618['get'](_0x1b9806),_0x385e37=_0xca58df[_0x3b3a('0x13a')](_0x1b9806),_0x3a96d0=_0xca58df['get'](_0x4085d8),_0x4ce5b3=_0x1b9806[_0x3b3a('0x38')]&&_0x1b9806['commentThread'][_0x3b3a('0x84')],_0x4a6b4b=_0x4085d8[_0x3b3a('0x38')]&&_0x4085d8[_0x3b3a('0x38')][_0x3b3a('0x84')];if(!_0x4ce5b3&&_0x3b5c44(_0x3a96d0,_0x385e37))return _0x13510a[_0x3b3a('0xbd')](_0x4085d8,_0x1b9806),_0xca58df[_0x3b3a('0x22')](_0x1b9806),!0x0;if(!_0x4a6b4b&&_0x3b5c44(_0x385e37,_0x3a96d0))return _0x13510a[_0x3b3a('0xbd')](_0x1b9806,_0x4085d8),_0xca58df[_0x3b3a('0x22')](_0x4085d8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1da892,_0x1c65d1){if(_0x1da892[_0x3b3a('0x5c')])for(const _0x3afbdc of _0x1c65d1['getRanges']())_0x1da892[_0x3b3a('0xae')](_0x3afbdc);else{const _0x1b1367=_0x1c65d1[_0x3b3a('0xa4')]()[_0x3b3a('0x4d')];this['_setSuggestionRange'](_0x1da892,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x1da892[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')],_0x1b1367));}_0x1c65d1[_0x3b3a('0x110')]();}}class Dt{constructor(_0x49ea12){this[_0x3b3a('0xa6')]=_0x49ea12,this[_0x3b3a('0x75')]=_0x49ea12[_0x3b3a('0x105')],this[_0x3b3a('0x66')]=new Map(),this[_0x3b3a('0x57')]=new Map(),this[_0x3b3a('0x72')]();}['buildSuggestion'](_0x4e33cb,_0x1eb2e8,_0x576265,_0xdefa87,_0xeba648,_0x151086){return new _0x38aeef(this[_0x3b3a('0x75')],{'type':_0x4e33cb,'subType':_0x1eb2e8,'id':_0x576265,'author':_0xdefa87,'creator':_0xdefa87,'attributes':_0xeba648,'onAttributesChange':_0x151086,'onAccept':(..._0x5464b8)=>this['getSuggestionCallback'](_0x4e33cb,_0x1eb2e8,_0x3b3a('0x7f'))(..._0x5464b8),'onDiscard':(..._0x3ea9cd)=>this[_0x3b3a('0x131')](_0x4e33cb,_0x1eb2e8,_0x3b3a('0x10f'))(..._0x3ea9cd)});}[_0x3b3a('0x142')](_0x32a7ce,_0x582b31,_0x58131d,_0x2cd944){const _0x5b7c09=_0x32a7ce+':'+_0x582b31+':'+_0x58131d;this[_0x3b3a('0x66')][_0x3b3a('0xea')](_0x5b7c09,_0x2cd944);}['getSuggestionCallback'](_0x39956f,_0x42e1bd,_0x3af7bb){const _0x372dce=_0x39956f+':'+_0x42e1bd+':'+_0x3af7bb;return this['_customCallbacks'][_0x3b3a('0x13a')](_0x372dce)||this['_defaultCallbacks'][_0x3b3a('0x13a')](_0x39956f+':'+_0x3af7bb);}['_registerDefaultCallbacks'](){const _0x14fdfa=()=>{},_0x871637=_0x227210=>{_0x227210['sort']((_0x444011,_0x209e17)=>_0x444011[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x209e17[_0x3b3a('0x1f')])?0x1:-0x1),this[_0x3b3a('0x75')]['change'](_0x37658c=>{for(const _0x1575f4 of _0x227210){let _0x23938a;_0x23938a=_0x1575f4['end'][_0x3b3a('0xfd')]&&_0x1575f4['end']['parent']==_0x1575f4[_0x3b3a('0x1f')][_0x3b3a('0xce')]?_0x37658c[_0x3b3a('0x5a')](_0x1575f4['start'][_0x3b3a('0xce')],'on'):_0x37658c[_0x3b3a('0x5a')](_0x1575f4),this['_model']['deleteContent'](_0x23938a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53dfaa=(_0x3cabf7,_0x2dab3c)=>{this[_0x3b3a('0x75')]['change'](_0x2640c1=>{const {commandName:_0x1c603e,commandParams:_0x14d772=[]}=_0x2dab3c,_0xc25908=_0x3cabf7[_0x3b3a('0xb')](_0x3493c8=>(_t(_0x3493c8)&&(_0x3493c8=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x3493c8['end'])),_0x3493c8))[_0x3b3a('0xe8')](_0x1df85e=>_0x3b3a('0x129')!==_0x1df85e[_0x3b3a('0xb8')][_0x3b3a('0x101')]);if(_0xc25908[_0x3b3a('0x84')]<0x1)return;const _0x127989=Array[_0x3b3a('0x140')](this[_0x3b3a('0x75')]['document'][_0x3b3a('0x51')][_0x3b3a('0x5b')]())[_0x3b3a('0xb')](_0x39ecdb=>_0x541e31[_0x3b3a('0x50')](_0x39ecdb));_0x2640c1['setSelection'](_0xc25908);for(const _0x574c7b of this[_0x3b3a('0xa6')][_0x3b3a('0x40')][_0x3b3a('0x40')]())_0x574c7b['refresh']();_0x14d772[_0x3b3a('0x4e')]({'forceDefaultExecution':!0x0}),this[_0x3b3a('0xa6')][_0x3b3a('0xd0')](_0x1c603e,..._0x14d772);const _0x6819d4=_0x127989['filter'](_0x598da4=>_0x3b3a('0x129')!=_0x598da4[_0x3b3a('0xb8')][_0x3b3a('0x101')]);_0x6819d4[_0x3b3a('0x84')]>0x0&&_0x2640c1['setSelection'](_0x6819d4);for(const _0x2f6353 of _0x127989)_0x2f6353[_0x3b3a('0x93')]();});},_0x25dad6=(_0x150f8a,_0x289abc)=>0x1==_0x150f8a[_0x3b3a('0x84')]&&0x1==_0x289abc[_0x3b3a('0x84')]&&_0x150f8a[0x0][_0x3b3a('0x4d')]['isEqual'](_0x289abc[0x0][_0x3b3a('0x1f')]),_0x4b0bb3=(_0x32332b,_0x4ce730,_0x52034b,_0x4714b4)=>xt(_0x32332b,_0x4ce730,_0x52034b,_0x4714b4,this[_0x3b3a('0x75')])?[_0x32332b,_0x4ce730]:xt(_0x4ce730,_0x32332b,_0x4714b4,_0x52034b,this[_0x3b3a('0x75')])?[_0x4ce730,_0x32332b]:null;this[_0x3b3a('0x57')][_0x3b3a('0xea')]('insertion:accept',_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x6e'),_0x871637),this['_defaultCallbacks']['set'](_0x3b3a('0x7c'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x11d'),_0x4b0bb3),this[_0x3b3a('0x57')][_0x3b3a('0xea')]('deletion:accept',_0x871637),this[_0x3b3a('0x57')]['set'](_0x3b3a('0x104'),_0x14fdfa),this['_defaultCallbacks'][_0x3b3a('0xea')](_0x3b3a('0x13e'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x8d'),_0x4b0bb3),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xfe'),_0x53dfaa),this[_0x3b3a('0x57')][_0x3b3a('0xea')]('formatInline:discard',_0x14fdfa),this[_0x3b3a('0x57')]['set'](_0x3b3a('0xbf'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xb7'),_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x88'),_0x53dfaa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xca'),_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x14'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xa7'),_0x14fdfa);}}function Bt(_0x1664d0,_0x5d1a1a,_0x175550){for(const _0x28a7b of _0x5d1a1a[_0x3b3a('0x6c')][_0x3b3a('0x1b')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28a7b[_0x3b3a('0xb8')]==_0x28a7b)return!0x1;if(!_0x175550[_0x3b3a('0x49')](_0x28a7b))return!0x1;if(_0x1664d0['isObject'](_0x28a7b)||_0x1664d0[_0x3b3a('0x24')](_0x28a7b))return!0x0;}return!0x1;}function _t(_0x5f0810){return _0x5f0810[_0x3b3a('0x4d')][_0x3b3a('0x6c')]==_0x5f0810[_0x3b3a('0x1f')][_0x3b3a('0xce')]&&_0x5f0810['end'][_0x3b3a('0x12c')];}function Mt(_0x3601e0,_0x127650,_0x580618,_0x221154){const _0x21cd9f=_0x2780d4=>!_0x2780d4[_0x3b3a('0xdc')]['is'](_0x3b3a('0x113'))&&!_0x221154[_0x3b3a('0x37')](_0x2780d4['item']),_0x35f8c7=_0x3601e0[_0x3b3a('0x1f')][_0x3b3a('0x39')](_0x21cd9f),_0x58d451=_0x3601e0[_0x3b3a('0x4d')][_0x3b3a('0x39')](_0x21cd9f,{'direction':_0x3b3a('0x10d')});return(!_0x3601e0[_0x3b3a('0x1f')][_0x3b3a('0x25')](_0x35f8c7)||!_0x3601e0[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x58d451))&&(_0x35f8c7[_0x3b3a('0x117')](_0x58d451)?_0x580618['updateMarker'](_0x127650,{'range':_0x580618[_0x3b3a('0x16')](_0x35f8c7,_0x58d451)}):_0x580618[_0x3b3a('0x114')](_0x127650),!0x0);}function $t(_0x5a7fc3){return _0xe552ec(_0x5a7fc3);}function Nt(_0x757664){const _0x3f2bc6=_0x757664[_0x3b3a('0x1f')][_0x3b3a('0xce')];return _0x3f2bc6&&_0x3f2bc6['is'](_0x3b3a('0x6b'));}function Rt(_0x2704c6,_0x199b8c){const _0x44beaa=_0x199b8c[_0x3b3a('0x77')][_0x3b3a('0x37')](_0x2704c6)||_0x199b8c['schema'][_0x3b3a('0x128')](_0x2704c6);return _0x199b8c['createRange'](_0x199b8c['createPositionAt'](_0x2704c6,'before'),_0x44beaa?_0x199b8c[_0x3b3a('0xd3')](_0x2704c6):_0x199b8c['createPositionAt'](_0x2704c6,_0x3b3a('0x4d')));}function xt(_0x958436,_0x4a870b,_0x2d2a6b,_0x3b3706,_0x717dba){if(_0x2d2a6b['end']['isEqual'](_0x3b3706[_0x3b3a('0x1f')]))return!0x0;if(_0x958436['type']!=_0x4a870b[_0x3b3a('0xc')])return!0x1;if(!_0x2d2a6b[_0x3b3a('0x4d')][_0x3b3a('0xdb')](_0x3b3706[_0x3b3a('0x1f')]))return!0x1;const _0x159ba9=_0x717dba['createRange'](_0x2d2a6b['end'],_0x3b3706[_0x3b3a('0x1f')])[_0x3b3a('0x6d')]();for(const _0x506344 of _0x159ba9)if(['elementStart',_0x3b3a('0xf5')][_0x3b3a('0x11f')](_0x506344[_0x3b3a('0xc')])&&_0x717dba['schema']['isLimit'](_0x506344[_0x3b3a('0xdc')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x2983=['data','isExternal','head','createPositionAt','never','_joinSuggestions','isOwn','sort','containsRangeInObject','createdAt','rootName','pluginName','size','addSuggestionData','change:data','catch','oldRange','deletion:','consume','requires','trackChanges.trackFormatChanges','accepted','_commentsRepository','dataDowncast','writer','formatInline:chain','$marker','ready','isIntersectingWithRange','insertion:discard','editingDowncast','_setSuggestionData','push','always','editing','fetchCommentThread','addSuggestion','suggestion:','_mergeNestedSuggestions','_updateSuggestionData','getCommentThread','markerReady','getSuggestions','move','_isDataLoaded','update:suggestion','hasComments','_getExternalAuthor','_cutOutSuggestionMarker','highest','plugins','delete','removed','length','track-changes-adapter-missing-getsuggestion','isUndo','stopListening','formatBlock:discard','markerToHighlight','updateSuggestion','set','containsRange','ck-suggestion-marker-formatBlock','_saved','accept','commentThread','track-changes-user-not-found','fromRange','_joinWithAdjacentSuggestions','isBlock','has','suggestionLoaded','value','insertion','differ','ck-suggestion-marker-','isEqual','_onDiscard','CommentsRepository','createPositionAfter','createPositionBefore','formatInline:join','getNearestSelectionRange','suggestion-type','deletion:join','change:_saved','options','suggestion','createRangeIn','consumable','addMarker:suggestion:formatBlock','isNextTo','isCollapsed','dataReady','get','mapper','type','forward','_getAuthorFromId','then','discardSuggestion','for','formatBlock:accept','open','from','assign','hasSuggestion','bindElementToMarker','author','forceDefaultExecution','addMarkerName','root','insert','markMultiRangeDeletion','getMarkers','markInsertion','deletion:accept','_defaultCallbacks','targetPosition','some','setSelection','nodeAfter','schema','addMarker','isRemovable','getLastMatchingPosition','listenTo','acceptAllSuggestions','values','getIntersection','elementStart','newRange','track-changes-adapter-already-set','getShiftedBy','locale','formatInline:accept','markInlineFormat','subType','getSuggestionCallback','suggestionChanged','_removeSuggestion','buildSuggestion','isObject','addUser','includes','@external','isInContent','collaboration.channelId','removeMarkers','track-changes-suggestion-not-found','editor','getChanges','removeComment','_suggestionState','filter','stop','previous','isAtStart','batch','external:','PENDING_ACTION_SUGGESTION','getCustomProperty','formatGroupId','toViewElement','keys','$graveyard','lowest','element','getFirstRange','_handleNewSuggestionMarker','name','addComment','removeMarker:suggestion:formatBlock','_trackFormatChanges','next','authoredAt','originalSuggestionId','attributes','containsItem','markerNameToElements','widget','clone','moveTargetPosition','default','resolve','_setSuggestionRange','trackChanges','isInsideObject','isLocal','_isForcedDefaultExecutionBlock','model','track-changes-suggestion-data-mismatch','execute','creator','getFirstMarker','_addSuggestionMarker','discard','_getSuggestionData','addRange','backward','upcast','add','remove','deletion','fire','getRanges','_rangeIsInLocalUserInsertion','multipleBlocks','item','formatBlock:join','getSuggestion','getDifference','detach','authorName','activeMarkers','end','change:activeMarkers','data-suggestion','_suggestionFactory','formatBlock','_customCallbacks','isAfter','multi','suggestionUnloaded','map','_model','updateMarker','parent','_enabledCommands','ck-suggestion-marker--active','getUser','_editor','split','before','markers','documentSelection','high','formatInline','splice','isMultiRange','conversion','getMultiRangeId','trackChangesCommand','_refreshSuggestionsChain','formatInline:discard','getAttribute','_breakSuggestionMarker','addHighlight','init','unbind','isBefore','TrackChangesEditing','markMultiRangeInsertion','rejected','insertion:','showSuggestionHighlights','_adapter','containsPosition','discardAllSuggestions','deletion:chain','low','createRange','getRange','splitPosition','hasCommentThread','registerPostFixer','_createSuggestion','isLimit','$textProxy','enableCommand','markerName','enableReadOnlyMode','unbindElementFromMarkerName','PendingActions','_addThreadToSuggestion','formatBlock:chain','Users','document','start','addClass','ck-suggestion-marker','skipNestingCheck','substr','refresh','insertContent','createSelection','_suggestions','notReady','howMany','nodeBefore','getAllAdjacentSuggestions','acceptSuggestion','join','removeAttribute','_splitMarkerName','_registerDefaultCallbacks','acceptSelectedSuggestions','marker-count','commandName','containerElement','_findSuggestions','markDeletion','range','change','insertion:join','trackChanges.mergeNestedSuggestions','chain','dataToMarker','config','createElement','_checkSuggestionCorrectness','position','every','commands','getChangedMarkers','addMarker:suggestion'];(function(_0x32f40c,_0x2983aa){const _0x3f7800=function(_0x4840ee){while(--_0x4840ee){_0x32f40c['push'](_0x32f40c['shift']());}};_0x3f7800(++_0x2983aa);}(_0x2983,0x13a));const _0x3f78=function(_0x32f40c,_0x2983aa){_0x32f40c=_0x32f40c-0x0;let _0x3f7800=_0x2983[_0x32f40c];return _0x3f7800;};import{Plugin as _0x5d2f4f,PendingActions as _0x2320a5}from'ckeditor5/src/core';import{LiveRange as _0x4b8f82}from'ckeditor5/src/engine';import{CKEditorError as _0x400b29,uid as _0x418993,priorities as _0x372a5a,logWarning as _0x46fa9c}from'ckeditor5/src/utils';import{toWidget as _0x3228a9}from'ckeditor5/src/widget';import{Users as _0x11ba72,hashObject as _0x3abb0f}from'ckeditor5-collaboration/src/collaboration-core';import _0x22766f from'./commands/trackchangescommand';import _0x14c77f from'./commands/acceptsuggestioncommand';import _0x522ba1 from'./commands/discardsuggestioncommand';import _0x5f4998 from'./commands/executeonallsuggestionscommand';import _0x1686f1 from'./commands/executeonselectedsuggestionscommand';import _0x49aee1 from'./suggestion';import _0x52f1c8 from'./suggestiondescriptionfactory';import _0x24ae3c from'./integrations/alignment';import _0x2625f9 from'./integrations/basicstyles';import _0x2b6359 from'./integrations/blockquote';import _0x598ab2 from'./integrations/ckbox';import _0x3e7f4c from'./integrations/codeblock';import _0x1494f2 from'./integrations/comments';import _0x421aaf from'./integrations/deletecommand';import _0xf0e564 from'./integrations/documentlist';import _0x3d35c6 from'./integrations/entercommand';import _0x3532db from'./integrations/findandreplace';import _0x4d2acc from'./integrations/font';import _0x3e7b86 from'./integrations/formatpainter';import _0x3a9734 from'./integrations/heading';import _0x103cee from'./integrations/highlight';import _0x40a8bb from'./integrations/horizontalline';import _0x515eac from'./integrations/htmlembed';import _0x828745 from'./integrations/image';import _0x147183 from'./integrations/imagereplace';import _0x5a0945 from'./integrations/importword';import _0x41316e from'./integrations/indent';import _0x3ab921 from'./integrations/inputcommand';import _0x9242aa from'./integrations/link';import _0x1f3be7 from'./integrations/list';import _0xd287f2 from'./integrations/listproperties';import _0x1b9a09 from'./integrations/mediaembed';import _0x5478b3 from'./integrations/mention';import _0x49a53c from'./integrations/pagebreak';import _0x4048f4 from'./integrations/paragraph';import _0x5432b5 from'./integrations/removeformat';import _0x9e98f3 from'./integrations/restrictededitingmode';import _0x29c26f from'./integrations/shiftentercommand';import _0x3ee5d9 from'./integrations/standardeditingmode';import _0xb84f99 from'./integrations/style';import _0x4c22a3 from'./integrations/table';import _0x2c5488 from'./integrations/tablemergesplit';import _0x53b72d from'./integrations/tableheadings';import _0x48a740 from'./integrations/tableclipboard';import _0x1274a3 from'./integrations/tablecolumnresize';import _0x5756fb from'./integrations/template';import _0x37faca from'./integrations/tableofcontents';import _0x4a416c from'./integrations/title';import _0x56f780 from'./integrations/undo';import{getTranslation as _0x304cd0}from'./utils/common-translations';import _0x4d9eda from'./integrations/tablecaption';import _0x548624 from'./integrations/documentlistproperties';import _0x4fcfbc from'./integrations/tableproperties';import{isEqual as _0x4b2408}from'lodash-es';export default class p extends _0x5d2f4f{static get[_0x3f78('0x15')](){return[_0x3f78('0x50'),_0x11ba72,_0x2320a5,_0x24ae3c,_0x2625f9,_0x2b6359,_0x598ab2,_0x3e7f4c,_0x1494f2,_0x421aaf,_0xf0e564,_0x548624,_0x3d35c6,_0x3532db,_0x4d2acc,_0x3e7b86,_0x3a9734,_0x103cee,_0x40a8bb,_0x515eac,_0x828745,_0x147183,_0x5a0945,_0x41316e,_0x3ab921,_0x9242aa,_0x1f3be7,_0xd287f2,_0x1b9a09,_0x5478b3,_0x49a53c,_0x4048f4,_0x5432b5,_0x9e98f3,_0x29c26f,_0x3ee5d9,_0xb84f99,_0x4c22a3,_0x2c5488,_0x53b72d,_0x4d9eda,_0x48a740,_0x1274a3,_0x37faca,_0x4fcfbc,_0x5756fb,_0x4a416c,_0x56f780];}static get[_0x3f78('0xd')](){return _0x3f78('0xfd');}constructor(_0x76f12b){function _0xec8596(_0x28c917){return _0x28c917[_0x3f78('0xe2')](_0x4c4647=>String['fromCharCode'](_0x4c4647))[_0x3f78('0x126')]('');}super(_0x76f12b),this[_0x3f78('0x3e')](_0x3f78('0xd8'),[]),this['on'](_0x3f78('0xda'),(_0x1026aa,_0x476d56,_0x2a3a02,_0x3b6e37)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](()=>{for(const _0x43c157 of[..._0x3b6e37,..._0x2a3a02])this[_0x3f78('0xe3')]['markers']['has'](_0x43c157)&&_0x76f12b[_0x3f78('0x24')]['reconvertMarker'](_0x43c157);});}),this['_descriptionFactory']=new _0x52f1c8(this[_0x3f78('0x98')][_0x3f78('0xc0')][_0x3f78('0x7c')],this[_0x3f78('0x98')][_0x3f78('0x88')]),this[_0x3f78('0x102')]=null,this[_0x3f78('0xdc')]=new Dt(this[_0x3f78('0x98')]),this[_0x3f78('0x120')]=new Map(),this[_0x3f78('0x18')]=_0x76f12b[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50')),this[_0x3f78('0xe6')]=new Set(),this['_model']=this[_0x3f78('0x98')][_0x3f78('0xc0')],this[_0x3f78('0x9b')]=new WeakMap(),this[_0x3f78('0xbf')]=!0x1,_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x16'),_0x3f78('0xb9')),this[_0x3f78('0xaf')]=_0x76f12b[_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x16')),_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x133'),!0x0),this[_0x3f78('0x28')]=_0x76f12b['config'][_0x3f78('0x60')](_0x3f78('0x133')),this[_0x3f78('0xf4')]=new _0x22766f(_0x76f12b,this['_enabledCommands']),this[_0xec8596([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xec8596([0x34,0x30,0x34,0x36,0x31,0x36,0x36,0x32]);}[_0x3f78('0xfa')](){const _0x48add5=this[_0x3f78('0x98')];_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))['markerToHighlight']({'model':_0x3f78('0x59'),'view':_0x1998e0=>{const {id:_0x54f821,type:_0x2009c0}=this[_0x3f78('0x128')](_0x1998e0[_0x3f78('0x110')]),_0x2f929a=[_0x3f78('0x11a'),_0x3f78('0x4d')+_0x2009c0];let _0x26093a=0xbb8;return this[_0x3f78('0xd8')]['includes'](_0x1998e0['markerName'])&&(_0x2f929a[_0x3f78('0x22')](_0x3f78('0xe7')),_0x26093a=0xbc2),_0x3f78('0xcd')==_0x2009c0&&(_0x26093a+=0x5),{'classes':_0x2f929a,'attributes':{'data-suggestion':_0x54f821},'priority':_0x26093a};}}),_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))['add'](_0x8a9f9f=>{_0x8a9f9f['on'](_0x3f78('0x1'),(_0x3be6c1,_0x2c1463,_0x5cd680)=>{if(!_0x5cd680['options'][_0x3f78('0x101')])return;const _0x195611=_0x2c1463['item'];if(!_0x195611)return;const _0xdab9ed=_0x5cd680[_0x3f78('0x61')][_0x3f78('0xa5')](_0x195611);_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')][_0x3f78('0x90')](_0x195611)&&_0xdab9ed&&!_0xdab9ed[_0x3f78('0xa3')](_0x3f78('0xb6'))&&_0xdab9ed['is'](_0x3f78('0x12d'))&&_0x3228a9(_0xdab9ed,_0x5cd680['writer']);},{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('dataDowncast')[_0x3f78('0x3c')]({'model':_0x3f78('0x59'),'view':(_0x152f69,_0xbf5be8)=>{if(!_0xbf5be8[_0x3f78('0x58')][_0x3f78('0x101')])return null;const {type:_0x53a5d7}=this[_0x3f78('0x128')](_0x152f69['markerName']);return{'classes':[_0x3f78('0x11a'),'ck-suggestion-marker-'+_0x53a5d7],'priority':0xbb8};}});const _0x151bc8=({showActiveMarkers:_0x442768=!0x0}={})=>(_0x1871b2,_0x1f49fb,_0x368a8f)=>{if(!_0x1f49fb[_0x3f78('0xd2')])return;if(_0x1f49fb['item']['is']('selection'))return void _0x368a8f['consumable']['consume'](_0x1f49fb['item'],_0x1871b2[_0x3f78('0xac')]);const _0x1a6d20=_0x368a8f[_0x3f78('0x61')][_0x3f78('0xa5')](_0x1f49fb[_0x3f78('0xd2')]);if(!(_0x1f49fb[_0x3f78('0xd2')]['is']('element')&&_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['isBlock'](_0x1f49fb['item'])&&!_0x1a6d20[_0x3f78('0xa3')](_0x3f78('0xf9'))))return;const {id:_0x3aff99}=this[_0x3f78('0x128')](_0x1f49fb['markerName']);_0x368a8f['writer'][_0x3f78('0x119')](['ck-suggestion-marker',_0x3f78('0x40')],_0x1a6d20),_0x368a8f[_0x3f78('0x1a')]['setAttribute'](_0x3f78('0xdb'),_0x3aff99,_0x1a6d20),_0x368a8f[_0x3f78('0x61')][_0x3f78('0x6d')](_0x1a6d20,_0x1f49fb[_0x3f78('0x110')]),_0x442768&&(this[_0x3f78('0xd8')][_0x3f78('0x92')](_0x1f49fb['markerName'])?_0x368a8f[_0x3f78('0x1a')][_0x3f78('0x119')](_0x3f78('0xe7'),_0x1a6d20):_0x368a8f[_0x3f78('0x1a')]['removeClass']('ck-suggestion-marker--active',_0x1a6d20));for(const _0x507db5 of _0x48add5[_0x3f78('0xc0')][_0x3f78('0x5a')](_0x1f49fb['item'])['getItems']())_0x368a8f[_0x3f78('0x5b')][_0x3f78('0x14')](_0x507db5,_0x1871b2[_0x3f78('0xac')]);_0x368a8f[_0x3f78('0x5b')]['consume'](_0x1f49fb[_0x3f78('0xd2')],_0x1871b2[_0x3f78('0xac')]);};_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))[_0x3f78('0xcb')](_0x24ef8d=>{_0x24ef8d['on'](_0x3f78('0x5c'),(_0x5f3a89,_0x174cf8,_0x39087f)=>{_0x39087f[_0x3f78('0x58')][_0x3f78('0x101')]&&_0x151bc8({'showActiveMarkers':!0x1})(_0x5f3a89,_0x174cf8,_0x39087f);},{'priority':_0x3f78('0x33')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x19'))['markerToData']({'model':'suggestion','view':(_0x2f01ff,_0x4043a7)=>_0x4043a7[_0x3f78('0x58')][_0x3f78('0x101')]?null:{'group':'suggestion','name':_0x2f01ff[_0x3f78('0x11c')](0xb)}}),_0x48add5[_0x3f78('0xf2')]['for'](_0x3f78('0xca'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xeec12e,{writer:_0x165ae3})=>{let _0x193666=_0x3f78('0x27')+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x55'))+':'+_0xeec12e[_0x3f78('0xf7')]('id');return _0xeec12e[_0x3f78('0xf7')]('marker-count')&&(_0x193666+=':'+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x12b'))),_0x165ae3[_0x3f78('0x137')](_0x3f78('0x1c'),{'data-name':_0x193666});}}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0xca'))[_0x3f78('0x135')]({'view':'suggestion'}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))[_0x3f78('0xcb')](_0x354c46=>{_0x354c46['on']('addMarker:suggestion:formatBlock',_0x151bc8(),{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('editingDowncast')[_0x3f78('0xcb')](_0x4192a1=>{_0x4192a1['on'](_0x3f78('0xae'),(_0x3781de,_0x101623,_0x53cff0)=>{const _0x4a9a34=_0x53cff0['mapper'][_0x3f78('0xb5')](_0x101623[_0x3f78('0x110')]);if(_0x4a9a34)for(const _0x5e12e3 of _0x4a9a34)_0x5e12e3['getCustomProperty'](_0x3f78('0xf9'))||(_0x53cff0[_0x3f78('0x1a')]['removeClass']([_0x3f78('0x11a'),_0x3f78('0x40'),'ck-suggestion-marker--active'],_0x5e12e3),_0x53cff0[_0x3f78('0x1a')][_0x3f78('0x127')](_0x3f78('0xdb'),_0x5e12e3),_0x53cff0[_0x3f78('0x61')][_0x3f78('0x112')](_0x5e12e3,_0x101623[_0x3f78('0x110')]));},{'priority':_0x3f78('0xee')});}),_0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x10b')](_0x3887b8=>{let _0x3d0968=!0x1;const _0x3fd563=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')]['document']['differ'][_0x3f78('0x0')]()),_0xabe217=new Set();for(const {name:_0x4a5222,data:_0x33fcff}of _0x3fd563){const {group:_0xf1e615,type:_0x3ad08a,id:_0x464253}=this['_splitMarkerName'](_0x4a5222);if(_0x3f78('0x59')!==_0xf1e615)continue;const _0x34f53f=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x464253);if(null!=_0x33fcff[_0x3f78('0x85')]){_0x3f78('0xef')==_0x3ad08a&&(_0x3d0968=_0x3d0968||Mt(_0x33fcff[_0x3f78('0x85')],_0x4a5222,_0x3887b8,_0x48add5[_0x3f78('0xc0')]['schema']));if(_0x33fcff[_0x3f78('0x85')]['isCollapsed']||'$graveyard'==_0x33fcff[_0x3f78('0x85')]['root']['rootName']||'formatBlock'==_0x3ad08a&&!Nt(_0x33fcff[_0x3f78('0x85')])||_0x3f78('0xcd')==_0x3ad08a&&!(!_t(_0xf96b01=_0x33fcff[_0x3f78('0x85')])&&!function(_0x3023ad){return _0x3023ad[_0x3f78('0x118')][_0x3f78('0xe5')]==_0x3023ad[_0x3f78('0xd9')][_0x3f78('0x123')]&&_0x3023ad[_0x3f78('0x118')]['isAtEnd'];}(_0xf96b01)))_0x3887b8['removeMarker'](_0x4a5222),_0x3d0968=!0x0;else{if(!_0x34f53f||!_0x34f53f[_0x3f78('0x94')])continue;_0xabe217[_0x3f78('0xcb')](_0x34f53f);}}}var _0xf96b01;return _0xabe217[_0x3f78('0xe')]>0x0&&(_0x3d0968=!!this[_0x3f78('0x46')](_0xabe217)||_0x3d0968),_0x3d0968;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')][_0x3f78('0x10b')](_0xb4e143=>{let _0x49b52c=!0x1;for(const _0x5d1fcf of _0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x4c')][_0x3f78('0x99')]()){if(_0x3f78('0x72')!=_0x5d1fcf[_0x3f78('0x62')])continue;const _0x288495=_0x5d1fcf[_0x3f78('0x139')]['getShiftedBy'](_0x5d1fcf[_0x3f78('0x37')]);if(_0x288495['isAtEnd'])for(const _0x23d958 of this['_suggestions'][_0x3f78('0x82')]()){if(_0x23d958[_0x3f78('0xf1')]||!_0x23d958[_0x3f78('0x94')])continue;if(_0x3f78('0xdd')!=_0x23d958['type'])continue;const _0x1fe70d=_0x23d958[_0x3f78('0xaa')]();if(_0x1fe70d[_0x3f78('0x118')][_0x3f78('0xe5')]!=_0x1fe70d[_0x3f78('0xd9')][_0x3f78('0xe5')]&&_0x1fe70d['end'][_0x3f78('0x4e')](_0x5d1fcf['position'])){const _0x4cf601=_0x48add5['model'][_0x3f78('0x107')](_0x1fe70d[_0x3f78('0x118')],_0x288495);_0xb4e143[_0x3f78('0xe4')](_0x23d958[_0x3f78('0xc4')](),{'range':_0x4cf601}),_0x49b52c=!0x0;}}}return _0x49b52c;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0xec')]['on'](_0x3f78('0x2f'),(_0x20ba08,_0x18bb10,_0x112382)=>{if(null==_0x112382){const {id:_0x1a7ea7}=this['_splitMarkerName'](_0x18bb10['name']),_0x933994=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x1a7ea7);_0x933994&&_0x933994[_0x3f78('0x70')](_0x18bb10[_0x3f78('0xac')]);}}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['on'](_0x3f78('0x10'),()=>{const _0x482723=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['differ'][_0x3f78('0x0')]())[_0x3f78('0x9c')](_0x487135=>_0x3f78('0x59')===this[_0x3f78('0x128')](_0x487135['name'])['group']);if(0x0===_0x482723['length'])return;_0x482723[_0x3f78('0x9')]((_0xdc5519,_0x53a4de)=>{const _0x1f8099=_0xdc5519[_0x3f78('0x2')][_0x3f78('0x12')],_0xd21b26=_0x53a4de['data']['oldRange'];return null===_0x1f8099&&null===_0xd21b26?0x0:null===_0x1f8099&&null!==_0xd21b26?-0x1:null!==_0x1f8099&&null===_0xd21b26?0x1:_0x1f8099[_0x3f78('0x118')]['isBefore'](_0xd21b26[_0x3f78('0x118')])?-0x1:0x1;});const _0x3230df=new Set(),_0x3e6be8=new Set();for(const {name:_0x3de78c,data:_0x134078}of _0x482723){const {id:_0x4f67e6}=this[_0x3f78('0x128')](_0x3de78c);if(null===_0x134078[_0x3f78('0x12')]){const _0x4e4923=this[_0x3f78('0xab')](_0x3de78c);_0x3e6be8[_0x3f78('0xcb')](_0x4e4923);}else{const _0x22306b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x4f67e6);null!==_0x134078[_0x3f78('0x85')]||_0x22306b[_0x3f78('0x94')]?(_0x3230df[_0x3f78('0xcb')](_0x22306b[_0x3f78('0x4')]),_0x3e6be8[_0x3f78('0xcb')](_0x22306b)):this[_0x3f78('0x8e')](_0x22306b);}}_0x3e6be8[_0x3f78('0xe')]>0x0&&this[_0x3f78('0xf5')](_0x3e6be8);for(const _0x1c69d7 of _0x3230df)this['fire']('suggestionChanged',_0x1c69d7);}),_0x48add5['model']['on']('applyOperation',(_0xa37e2e,_0x2f6e36)=>{const _0xb58e36=_0x2f6e36[0x0];if(!this[_0x3f78('0x120')][_0x3f78('0xe')])return;if(!_0xb58e36['isDocumentOperation'])return;if(_0xb58e36[_0x3f78('0xa0')][_0x3f78('0x39')]||!_0xb58e36['batch'][_0x3f78('0xbe')])return;let _0x4f7b56,_0x5281c6;switch(_0xb58e36[_0x3f78('0x62')]){case'insert':_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x139')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36[_0x3f78('0x122')]);break;case _0x3f78('0xea'):_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x109')]),_0x5281c6=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0xb8')]);break;case _0x3f78('0x2d'):_0x4f7b56=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x78')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36['howMany']);break;default:return;}const _0x588a9e=_0x48add5['model'][_0x3f78('0x107')](_0x4f7b56,_0x5281c6);_0x48add5['model'][_0x3f78('0x131')](()=>{for(const {suggestion:_0x1f0762,meta:_0x6c07b7}of this[_0x3f78('0x12e')](_0x588a9e)){if(_0x1f0762[_0x3f78('0xf1')])continue;if(_0x3f78('0xef')==_0x1f0762[_0x3f78('0x62')])continue;const _0x2840e7=_0x1f0762[_0x3f78('0x2')]&&_0x1f0762[_0x3f78('0x2')][_0x3f78('0xd1')];(_0x3f78('0xdd')!=_0x1f0762['type']||_0x3f78('0xea')==_0xb58e36[_0x3f78('0x62')]&&!_0x2840e7)&&(_0x6c07b7[_0x3f78('0xa')]||_0x3f78('0x4b')==_0x1f0762[_0x3f78('0x62')]&&_0x6c07b7[_0x3f78('0x8')]||_0x1f0762[_0x3f78('0xaa')]()[_0x3f78('0x3f')](_0x588a9e)&&this['_breakSuggestionMarker'](_0x1f0762,_0x4f7b56,_0x5281c6));}});},{'priority':_0x3f78('0xa8')}),_0x48add5[_0x3f78('0xc0')]['on']('deleteContent',(_0x5a3f4b,_0x587955)=>{const _0x3e97b9=_0x587955[0x0],_0x3f7cae=_0x587955[0x1];if(_0x3f7cae&&_0x3f7cae[_0x3f78('0x6f')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3f78('0x4a')])return;if(_0x3e97b9[_0x3f78('0x5e')])return;const _0x4aa9f8=_0x48add5[_0x3f78('0xc0')]['schema'],{start:_0x428226,end:_0x52ac3e}=_0x3e97b9['getFirstRange'](),_0x5d1907=_0x428226[_0x3f78('0x7b')]&&_0x4aa9f8[_0x3f78('0x10d')](_0x428226[_0x3f78('0x7b')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x428226,_0x3f78('0x63')),_0x330d49=_0x52ac3e[_0x3f78('0x123')]&&_0x4aa9f8['isLimit'](_0x52ac3e[_0x3f78('0x123')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x52ac3e,_0x3f78('0xc9')),_0x40e439=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x107')](_0x5d1907?_0x5d1907['start']:_0x428226,_0x330d49?_0x330d49['end']:_0x52ac3e);_0x48add5[_0x3f78('0xc0')]['change'](_0x4e857d=>{this[_0x3f78('0x12f')](_0x40e439);const _0x335049=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['getNearestSelectionRange'](_0x40e439[_0x3f78('0x118')]);_0x3e97b9['is'](_0x3f78('0xed'))?_0x4e857d[_0x3f78('0x7a')](_0x335049):_0x3e97b9['setTo'](_0x335049);}),_0x5a3f4b[_0x3f78('0x9d')]();},{'priority':_0x372a5a['normal']+0xa}),_0x48add5[_0x3f78('0xc0')]['on'](_0x3f78('0x11e'),(_0x3c2084,_0x3e2ff5)=>{const _0x182567=_0x3e2ff5[_0x3e2ff5[_0x3f78('0x37')]-0x1];_0x182567&&_0x182567[_0x3f78('0x6f')]||this['_isForcedDefaultExecutionBlock']||this[_0x3f78('0xf4')][_0x3f78('0x4a')]&&(_0x48add5['model'][_0x3f78('0x131')](()=>{let _0x252b2a=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x11e')](_0x3e2ff5[0x0],_0x3e2ff5[0x1],_0x3e2ff5[0x2],{'forceDefaultExecution':!0x0});if(!_0x252b2a)return;_0x3c2084['return']=_0x252b2a[_0x3f78('0xb7')]();const _0x3b45d7=_0x252b2a[_0x3f78('0xd9')][_0x3f78('0x123')],_0x1dd888=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')];_0x3b45d7&&_0x1dd888[_0x3f78('0x47')](_0x3b45d7)&&!_0x1dd888[_0x3f78('0x90')](_0x3b45d7)&&(_0x252b2a=_0x48add5[_0x3f78('0xc0')]['createRange'](_0x252b2a[_0x3f78('0x118')],_0x48add5['model'][_0x3f78('0x5')](_0x3b45d7,_0x3f78('0xd9')))),this[_0x3f78('0x75')](_0x252b2a);}),_0x3c2084[_0x3f78('0x9d')]());},{'priority':'high'}),this['editor'][_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0xbc'),this[_0x3f78('0xf4')]),this[_0x3f78('0x10f')]('trackChanges');const _0x2a7225=new _0x14c77f(_0x48add5,this[_0x3f78('0x120')]);_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x125'),_0x2a7225),this[_0x3f78('0x10f')](_0x3f78('0x125'));const _0x3e1c08=new _0x522ba1(_0x48add5,this['_suggestions']);_0x48add5[_0x3f78('0x13b')]['add']('discardSuggestion',_0x3e1c08),this[_0x3f78('0x10f')]('discardSuggestion'),_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x81'),new _0x5f4998(_0x48add5,_0x2a7225,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')](_0x3f78('0x81')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x104'),new _0x5f4998(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this['enableCommand'](_0x3f78('0x104')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x12a'),new _0x1686f1(_0x48add5,_0x2a7225,this['_suggestions'])),this[_0x3f78('0x10f')]('acceptSelectedSuggestions'),_0x48add5[_0x3f78('0x13b')]['add']('discardSelectedSuggestions',new _0x1686f1(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')]('discardSelectedSuggestions');const _0x36c241=_0x48add5[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50'));this[_0x3f78('0x80')](_0x36c241,_0x3f78('0xad'),(_0x2f5e3a,{threadId:_0x3c72ad})=>{const _0x166037=this['_suggestions'][_0x3f78('0x60')](_0x3c72ad);_0x166037&&_0x166037[_0x3f78('0x43')]&&0x1===_0x166037[_0x3f78('0x43')]['length']&&this['_updateSuggestionData'](_0x3c72ad,{'hasComments':!0x0});},{'priority':_0x3f78('0x106')}),this[_0x3f78('0x80')](_0x36c241,_0x3f78('0x9a'),(_0x4ed059,{threadId:_0x2fc3dc})=>{const _0x243da3=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x2fc3dc);_0x243da3&&_0x243da3[_0x3f78('0x43')]&&!_0x243da3[_0x3f78('0x43')][_0x3f78('0x37')]&&this['_updateSuggestionData'](_0x2fc3dc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e0b47){if(this[_0x3f78('0x102')])throw new _0x400b29(_0x3f78('0x86'),this);this[_0x3f78('0x102')]=_0x5e0b47;}get['adapter'](){return this[_0x3f78('0x102')];}[_0x3f78('0x2c')]({skipNotAttached:_0x19a845=!0x1,toJSON:_0x547551=!0x1}={}){const _0x571e59=[];for(const _0xaba4ae of this[_0x3f78('0x120')][_0x3f78('0x82')]())_0x19a845&&!_0xaba4ae[_0x3f78('0x94')]||_0x571e59[_0x3f78('0x22')](_0xaba4ae);return _0x547551?_0x571e59['map'](_0x21cac1=>_0x21cac1['toJSON']()):_0x571e59;}[_0x3f78('0xd4')](_0x318bfc){const _0xa8e94=this['_suggestions'][_0x3f78('0x60')](_0x318bfc);if(!_0xa8e94)throw new _0x400b29(_0x3f78('0x97'),this);return _0xa8e94;}[_0x3f78('0x6c')](_0x1bbae5){return this[_0x3f78('0x120')][_0x3f78('0x48')](_0x1bbae5);}[_0x3f78('0xf')](_0x3efd7d){const {authorId:_0x1b0916,id:_0x3b3842,attributes:_0x452c52}=_0x3efd7d,[_0x1c16bb,_0x328ec8]=_0x3efd7d[_0x3f78('0x62')][_0x3f78('0xea')](':'),_0x575a0b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x3b3842)||this[_0x3f78('0x10c')](_0x1c16bb,_0x328ec8,_0x3b3842,_0x1b0916,_0x452c52);if(this[_0x3f78('0x114')](_0x575a0b),this[_0x3f78('0x138')](_0x575a0b,_0x1c16bb,_0x328ec8||null,_0x1b0916),_0x575a0b[_0x3f78('0xb')]=_0x3efd7d['createdAt'],_0x575a0b['_isDataLoaded']=!0x0,_0x452c52&&_0x452c52[_0x3f78('0x93')]){const _0x567cfd=_0x452c52[_0x3f78('0x93')],_0x31020b=this[_0x3f78('0x31')](_0x567cfd[_0x3f78('0xd7')]);_0x575a0b[_0x3f78('0xb1')]=_0x567cfd[_0x3f78('0xb')],_0x575a0b['author']=_0x31020b,_0x575a0b[_0x3f78('0x3')]=!0x0;}else _0x575a0b[_0x3f78('0xb1')]=_0x3efd7d[_0x3f78('0xb')];switch(_0x3efd7d[_0x3f78('0x2')]&&(_0x575a0b[_0x3f78('0x2')]=_0x3efd7d['data']),_0x3efd7d[_0x3f78('0xb3')]&&(_0x575a0b[_0x3f78('0xb3')]=_0x3efd7d[_0x3f78('0xb3')]),this[_0x3f78('0x102')]&&this[_0x3f78('0x102')][_0x3f78('0x26')]||(_0x575a0b[_0x3f78('0x41')]=!0x0),this['_suggestionState'][_0x3f78('0x60')](_0x575a0b)){case _0x3f78('0x121'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x5f'));break;case _0x3f78('0x2b'):_0x575a0b['isInContent']?(this[_0x3f78('0xf5')](new Set([_0x575a0b])),this['_joinWithAdjacentSuggestions'](new Set([_0x575a0b])),this['_suggestionState'][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x575a0b)):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x36'));}return _0x575a0b;}[_0x3f78('0x125')](_0x53b904){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x78636a of _0x53b904[_0x3f78('0x124')]())_0x78636a[_0x3f78('0x42')]();});});}[_0x3f78('0x66')](_0x54950f){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x5dc9a5 of _0x54950f[_0x3f78('0x124')]())_0x5dc9a5[_0x3f78('0xc6')]();});});}[_0x3f78('0x10f')](_0x3e086a,_0x5643f3){const _0x274fb6=this['editor'][_0x3f78('0x13b')][_0x3f78('0x60')](_0x3e086a);if(!_0x274fb6)throw new _0x400b29('track-changes-command-not-found',this,{'commandName':_0x3e086a});this[_0x3f78('0xe6')][_0x3f78('0xcb')](_0x274fb6),_0x5643f3&&_0x274fb6['on'](_0x3f78('0xc2'),(_0x296d78,_0x49dcdd)=>{this[_0x3f78('0xf4')]['value']&&(this[_0x3f78('0xbf')]||_0x49dcdd[_0x3f78('0x37')]>0x0&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1]&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1][_0x3f78('0x6f')]||(_0x5643f3((..._0x1930d5)=>_0x274fb6[_0x3f78('0xc2')](..._0x1930d5,{'forceDefaultExecution':!0x0}),..._0x49dcdd),_0x296d78[_0x3f78('0x9d')]()));},{'priority':_0x3f78('0xee')});}[_0x3f78('0x6f')](_0x1e9d89){let _0x111958,_0x2dd5d1;const _0x299e50=this[_0x3f78('0xbf')];this[_0x3f78('0xbf')]=!0x0;try{_0x111958=_0x1e9d89();}catch(_0x281ddf){_0x2dd5d1=_0x281ddf;}return _0x299e50||(this[_0x3f78('0xbf')]=!0x1),_0x2dd5d1&&_0x400b29['rethrowUnexpectedError'](_0x2dd5d1,this),_0x111958;}[_0x3f78('0x75')](_0x335542,_0x59d657=null,_0x581854={}){if(_0x335542[_0x3f78('0x5e')])return null;const _0x4d321b=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];for(const {suggestion:_0x422822,meta:_0x31fcee}of this['_findSuggestions'](_0x335542,_0x3f78('0x4b')))if(_0x31fcee[_0x3f78('0x8')]){if(!_0x31fcee['isNextTo']){if(_0x31fcee[_0x3f78('0xa')]){if(!this[_0x3f78('0x28')]||!Ut(_0x422822,_0x581854))continue;return _0x422822;}if(Ut(_0x422822,_0x581854))return _0x422822;this[_0x3f78('0xf8')](_0x422822,_0x335542[_0x3f78('0x118')],_0x335542['end']);break;}if(_0x59d657==_0x422822[_0x3f78('0x8b')]&&Ut(_0x422822,_0x581854)){const _0x3abe75=_0x422822[_0x3f78('0xaa')]();return _0x3abe75[_0x3f78('0x118')]['isEqual'](_0x335542[_0x3f78('0xd9')])?this[_0x3f78('0xbb')](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x335542[_0x3f78('0x118')],_0x3abe75['end'])):this['_setSuggestionRange'](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x3abe75['start'],_0x335542[_0x3f78('0xd9')])),_0x422822;}}const _0x1a80fe=_0x418993(),_0x5da009=_0x4d321b['id'],_0x2eb922=_0x59d657?_0x3f78('0x100')+_0x59d657:_0x3f78('0x4b'),_0x2d5a67=this[_0x3f78('0x21')]({'id':_0x1a80fe,'type':_0x2eb922,'createdAt':new Date(),'authorId':_0x5da009,'attributes':_0x581854});return this['_addSuggestionMarker'](_0x2eb922,_0x1a80fe,_0x5da009,_0x335542),_0x2d5a67;}[_0x3f78('0xfe')](_0x5d3302,_0x216a27=_0x3f78('0xe0'),_0x4c703c={}){const _0xe0905b=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x23b355=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0x4b'),_0x216a27,_0x3f78('0x126'));for(const _0x49a831 of this[_0x3f78('0x2c')]())if(_0x49a831['author']['id']==_0xe0905b['id']&&_0x3f78('0x4b')==_0x49a831[_0x3f78('0x62')]&&_0x49a831[_0x3f78('0x8b')]==_0x216a27&&Ut(_0x49a831,_0x4c703c)&&(_0x23b355(_0x49a831[_0x3f78('0xcf')](),_0x5d3302)||_0x23b355(_0x5d3302,_0x49a831[_0x3f78('0xcf')]()))){for(const _0x549fc2 of _0x5d3302)_0x49a831[_0x3f78('0xc8')](_0x549fc2);return _0x49a831;}for(const {suggestion:_0x460fe6,meta:_0x2a6f51}of this['_findSuggestions'](_0x5d3302,_0x3f78('0x4b'))){if(!_0x2a6f51[_0x3f78('0x8')])continue;if(!this[_0x3f78('0x28')]&&_0x2a6f51[_0x3f78('0xa')])continue;if(!Ut(_0x460fe6,_0x4c703c))continue;let _0x3aa11f=!0x0;for(const _0x2ca876 of _0x460fe6[_0x3f78('0xcf')]())for(const _0x5438ca of _0x5d3302)if(!_0x2ca876['containsRange'](_0x5438ca)){_0x3aa11f=!0x1;break;}if(_0x3aa11f)return _0x460fe6;}const _0xcc833a=_0x418993(),_0x412348=_0xe0905b['id'],_0x2a3b53=_0x3f78('0x100')+_0x216a27,_0x2d4d37=this[_0x3f78('0x21')]({'id':_0xcc833a,'type':_0x2a3b53,'createdAt':new Date(),'authorId':_0x412348,'attributes':_0x4c703c});for(const _0x100807 of _0x5d3302)this[_0x3f78('0xc5')](_0x2a3b53,_0xcc833a,_0x412348,_0x100807,_0x49aee1['getMultiRangeId']());return _0x2d4d37;}[_0x3f78('0x8a')](_0x4c3146,_0x363bd1,_0x4dd6c8=null,_0x2508fc={}){if(_0x4dd6c8=_0x4dd6c8||$t(_0x363bd1),_0x4c3146[_0x3f78('0x5e')])return null;if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x4f8977=this[_0x3f78('0xdc')]['getSuggestionCallback']('formatInline',_0x4dd6c8,'accept');return this[_0x3f78('0x6f')](()=>_0x4f8977([_0x4c3146],_0x363bd1,_0x2508fc)),null;}const _0x5713b4=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x43f808=[];if(_0x3f78('0x23')!==this[_0x3f78('0xaf')])for(const {suggestion:_0x12b3a3,meta:_0x509877}of this[_0x3f78('0x12e')](_0x4c3146,_0x3f78('0x4b')))_0x509877[_0x3f78('0x8')]&&!_0x509877[_0x3f78('0xbd')]&&_0x43f808['push'](..._0x12b3a3[_0x3f78('0xcf')]());const _0x1a0327=function(_0x429c7c,_0x10cde5){const _0xb03ec3=[];for(const _0x231a6d of _0x10cde5){const _0xc9c6d5=_0x429c7c[_0x3f78('0x83')](_0x231a6d);_0xc9c6d5&&_0xb03ec3[_0x3f78('0x22')](_0xc9c6d5);}return _0xb03ec3;}(_0x4c3146,_0x43f808),_0x1ed82f=function(_0x4353aa,_0x233fb5){const _0x42ce89=[_0x4353aa];for(const _0x2d8443 of _0x233fb5){let _0x49a476=0x0;for(;_0x49a476<_0x42ce89[_0x3f78('0x37')];){const _0x42e6d5=_0x42ce89[_0x49a476][_0x3f78('0xd5')](_0x2d8443);_0x42ce89[_0x3f78('0xf0')](_0x49a476,0x1,..._0x42e6d5),_0x49a476+=_0x42e6d5[_0x3f78('0x37')];}}return _0x42ce89;}(_0x4c3146,_0x43f808);_0x1a0327['length']&&this['_model'][_0x3f78('0x131')](()=>{for(const _0x13773f of _0x1a0327){const _0x3b6a6d=this['_suggestionFactory'][_0x3f78('0x8c')](_0x3f78('0xef'),_0x4dd6c8,'accept');this[_0x3f78('0x6f')](()=>_0x3b6a6d([_0x13773f],_0x363bd1,_0x2508fc));}});for(const _0x2c1f37 of _0x1ed82f){let _0x4cff7c=null,_0x4a09f2=_0x2c1f37[_0x3f78('0x118')],_0x46f7a2=_0x2c1f37[_0x3f78('0xd9')];for(const {suggestion:_0x2788a9,meta:_0x21c2c7}of this[_0x3f78('0x12e')](_0x2c1f37,_0x3f78('0xef'))){if(!_0x21c2c7[_0x3f78('0x8')])continue;if(_0x2788a9['subType']!=_0x4dd6c8)continue;if(!Ut(_0x2788a9,_0x2508fc))continue;const _0x3c8086=_0x2788a9['getFirstRange']();if(_0x3c8086[_0x3f78('0x3f')](_0x2c1f37,!0x0))return null;_0x4a09f2=_0x4a09f2['isBefore'](_0x3c8086[_0x3f78('0x118')])?_0x4a09f2:_0x3c8086[_0x3f78('0x118')],_0x46f7a2=_0x46f7a2[_0x3f78('0xdf')](_0x3c8086[_0x3f78('0xd9')])?_0x46f7a2:_0x3c8086[_0x3f78('0xd9')],_0x4cff7c?_0x3c8086[_0x3f78('0x118')][_0x3f78('0xfc')](_0x4cff7c['getFirstRange']()[_0x3f78('0x118')])?(_0x4cff7c[_0x3f78('0x96')](),_0x4cff7c=_0x2788a9):_0x2788a9[_0x3f78('0x96')]():_0x4cff7c=_0x2788a9;}const _0x34b8b2=this[_0x3f78('0xe3')]['createRange'](_0x4a09f2,_0x46f7a2);if(_0x4cff7c)this[_0x3f78('0xbb')](_0x4cff7c,_0x34b8b2);else{const _0x412a8c=_0x418993(),_0x3363b8=_0x5713b4['id'];this['_setSuggestionData']({'id':_0x412a8c,'type':'formatInline:'+_0x4dd6c8,'data':_0x363bd1,'createdAt':new Date(),'authorId':_0x3363b8,'attributes':_0x2508fc}),this[_0x3f78('0xc5')]('formatInline:'+_0x4dd6c8,_0x412a8c,_0x3363b8,_0x34b8b2);}}return null;}['markBlockFormat'](_0x3c4e60,_0x4ce830,_0x36d718=[],_0x109238=null,_0x143b1f={}){_0x4ce830[_0x3f78('0xa4')]||(_0x4ce830[_0x3f78('0xa4')]=_0x4ce830['commandName']),_0x4ce830[_0x3f78('0xd1')]=_0x3c4e60['is'](_0x3f78('0x130')),_0x109238=_0x109238||$t(_0x4ce830);const _0x29f1bb=_0x36d718[_0x3f78('0xe2')](_0x1d7e58=>Rt(_0x1d7e58,this[_0x3f78('0xe3')])),_0x35a3bf=_0x3c4e60['is']('range')?_0x3c4e60:Rt(_0x3c4e60,this['_model']);if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x568bb0=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this['forceDefaultExecution'](()=>_0x568bb0([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}_0x29f1bb['push'](_0x35a3bf);let _0x54ef25=!0x0;for(const _0x59771d of _0x29f1bb)if(!this[_0x3f78('0xd0')](_0x59771d)){_0x54ef25=!0x1;break;}if(_0x54ef25&&_0x3f78('0x23')!==this['_trackFormatChanges']){const _0x9d6da3=this['_suggestionFactory']['getSuggestionCallback'](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x9d6da3([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}let _0x4c67d4=null,_0x130bba=_0x35a3bf[_0x3f78('0x118')],_0x46462c=_0x35a3bf[_0x3f78('0xd9')];for(const {suggestion:_0x3545cd,meta:_0x18c58f}of this[_0x3f78('0x12e')](_0x35a3bf,_0x3f78('0xdd'))){if(!_0x18c58f[_0x3f78('0x8')])continue;if(_0x18c58f[_0x3f78('0x5d')]||_0x18c58f[_0x3f78('0xa')]||_0x18c58f['isInsideObject'])continue;if(_0x3545cd[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x4ce830[_0x3f78('0xa4')])continue;if(!Ut(_0x3545cd,_0x143b1f))continue;const _0x27be74=_0x3545cd['getFirstRange']();if(_0x3545cd['subType']==_0x109238){if(_0x27be74['containsRange'](_0x35a3bf,!0x0))return null;_0x130bba=_0x130bba[_0x3f78('0xfc')](_0x27be74[_0x3f78('0x118')])?_0x130bba:_0x27be74[_0x3f78('0x118')],_0x46462c=_0x46462c[_0x3f78('0xdf')](_0x27be74['end'])?_0x46462c:_0x27be74[_0x3f78('0xd9')],_0x4c67d4?_0x27be74['start'][_0x3f78('0xfc')](_0x4c67d4[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x4c67d4[_0x3f78('0x96')](),_0x4c67d4=_0x3545cd):_0x3545cd[_0x3f78('0x96')]():_0x4c67d4=_0x3545cd;}else{const _0x11bf5b=_0x35a3bf[_0x3f78('0x83')](_0x27be74);this[_0x3f78('0x32')](_0x3545cd,_0x11bf5b);}}const _0x510f71=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x5f5053=_0x418993(),_0x5d2651=_0x510f71['id'];if(_0x4c67d4)return this[_0x3f78('0xbb')](_0x4c67d4,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0x4c67d4;{const _0xf86234=this[_0x3f78('0x21')]({'id':_0x5f5053,'type':'formatBlock:'+_0x109238,'data':_0x4ce830,'createdAt':new Date(),'authorId':_0x5d2651,'attributes':_0x143b1f});return this[_0x3f78('0xc5')]('formatBlock:'+_0x109238,_0x5f5053,_0x5d2651,this['_model'][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0xf86234;}}['markMultiRangeBlockFormat'](_0x33af54,_0x25940c,_0x9df773=[],_0x1f5f00=null,_0x30c9c5={}){_0x25940c['formatGroupId']||(_0x25940c[_0x3f78('0xa4')]=_0x25940c[_0x3f78('0x12c')]);const _0x17ea3f=_0x33af54[0x0];_0x25940c[_0x3f78('0xd1')]=_0x17ea3f['is'](_0x3f78('0x130')),_0x1f5f00=_0x1f5f00||$t(_0x25940c);const _0x18fced=_0x9df773[_0x3f78('0xe2')](_0x6b313d=>Rt(_0x6b313d,this[_0x3f78('0xe3')])),_0x17a797=_0x17ea3f['is'](_0x3f78('0x130'))?_0x33af54:_0x33af54[_0x3f78('0xe2')](_0x184f70=>Rt(_0x184f70,this['_model']));if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x319f28=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x319f28(_0x17a797,_0x25940c,_0x30c9c5)),null;}_0x18fced[_0x3f78('0x22')](..._0x17a797);let _0x8903f7=!0x0;for(const _0x38f797 of _0x18fced)if(!this[_0x3f78('0xd0')](_0x38f797)){_0x8903f7=!0x1;break;}if(_0x8903f7&&_0x3f78('0x23')!==this[_0x3f78('0xaf')]){const _0x10c716=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x10c716(_0x17a797,_0x25940c,_0x30c9c5)),null;}const _0x2f3a85=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'];for(const _0x3f8a47 of this[_0x3f78('0x2c')]()){if(_0x3f8a47['author']['id']!=_0x2f3a85['id'])continue;if(_0x3f78('0xdd')!=_0x3f8a47[_0x3f78('0x62')]||_0x3f8a47[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x25940c[_0x3f78('0xa4')])continue;if(!Ut(_0x3f8a47,_0x30c9c5))continue;const _0x2e4553=_0x3f8a47[_0x3f78('0x8b')]==_0x1f5f00;for(let _0x9aad5a=0x0;_0x9aad5a<_0x17a797[_0x3f78('0x37')];_0x9aad5a++){const _0x3372dc=_0x17a797[_0x9aad5a];for(const _0x136bb8 of _0x3f8a47[_0x3f78('0x74')]()){const _0x146cb1=_0x136bb8[_0x3f78('0x108')]();if(_0x3372dc[_0x3f78('0x4e')](_0x146cb1)){_0x2e4553?(_0x17a797[_0x3f78('0xf0')](_0x9aad5a,0x1),_0x9aad5a--):_0x3f8a47['removeMarker'](_0x136bb8[_0x3f78('0xac')]);break;}}}}if(0x0==_0x17a797[_0x3f78('0x37')])return null;const _0x2913ff=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x126'));for(const _0xf25cac of this['getSuggestions']())if(_0xf25cac['author']['id']==_0x2f3a85['id']&&'formatBlock'==_0xf25cac['type']&&_0xf25cac[_0x3f78('0x2')][_0x3f78('0xa4')]==_0x25940c[_0x3f78('0xa4')]&&_0xf25cac[_0x3f78('0x8b')]==_0x1f5f00&&Ut(_0xf25cac,_0x30c9c5)&&(_0x2913ff(_0xf25cac[_0x3f78('0xcf')](),_0x17a797)||_0x2913ff(_0x17a797,_0xf25cac['getRanges']()))){for(const _0x101db0 of _0x17a797)_0xf25cac['addRange'](_0x101db0);return _0xf25cac;}const _0x62f1ee=_0x418993(),_0x4ebe2e=_0x2f3a85['id'],_0x3973b3='formatBlock:'+_0x1f5f00,_0x40e13b=this[_0x3f78('0x21')]({'id':_0x62f1ee,'type':_0x3973b3,'data':_0x25940c,'createdAt':new Date(),'authorId':_0x4ebe2e,'attributes':_0x30c9c5});for(const _0x1d0671 of _0x17a797)this['_addSuggestionMarker'](_0x3973b3,_0x62f1ee,_0x4ebe2e,_0x1d0671,_0x49aee1[_0x3f78('0xf3')]());return _0x40e13b;}['markDeletion'](_0x57c9db,_0x11b815=null,_0x42a425={}){if(_0x57c9db['isCollapsed'])return null;const _0x496d37=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x329d3e=new _0x4b8f82(_0x57c9db[_0x3f78('0x118')],_0x57c9db[_0x3f78('0xd9')]);for(const {suggestion:_0x428acf,meta:_0x447275}of this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0x4b')))if(_0x447275[_0x3f78('0x8')]&&!_0x447275[_0x3f78('0x5d')]){if(_0x428acf[_0x3f78('0xf1')]){const _0x20b47a=_0x428acf[_0x3f78('0xcf')]()[_0x3f78('0x9c')](_0x35487e=>_0x3f78('0xa7')!=_0x35487e[_0x3f78('0x71')]['rootName']);_0x20b47a[_0x3f78('0x13a')](_0x8684b2=>_0x329d3e[_0x3f78('0x3f')](_0x8684b2,!0x0))&&_0x428acf['discard']();if(_0x20b47a[_0x3f78('0x79')](_0x5f1efa=>_0x5f1efa[_0x3f78('0x3f')](_0x329d3e,!0x0))){const _0x102c9b=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x11b815,'accept');return this['forceDefaultExecution'](()=>_0x102c9b([_0x329d3e],null,_0x42a425)),null;}}else{const _0x216869=_0x329d3e[_0x3f78('0x83')](_0x428acf[_0x3f78('0xaa')]());null!==_0x216869&&_0x428acf[_0x3f78('0x4f')]([_0x216869],null,_0x42a425);}}if(_0x329d3e['detach'](),_0x329d3e[_0x3f78('0x5e')]||_0x3f78('0xa7')==_0x329d3e['root']['rootName'])return null;let _0x2cdd3b=null,_0xfec3d8=_0x329d3e[_0x3f78('0x118')],_0x23576e=_0x329d3e[_0x3f78('0xd9')];const _0x296106=this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0xcd'));for(const {suggestion:_0x4792a5,meta:_0x3cb365}of _0x296106){const _0x28cf7d=this['_model'][_0x3f78('0x107')](_0xfec3d8,_0x23576e);if(_0x3cb365[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x3cb365[_0x3f78('0xa')]&&!_0x3cb365[_0x3f78('0xbd')])){if(_0x4792a5['isMultiRange']){if(!Ut(_0x4792a5,_0x42a425))continue;let _0x39611c=!0x0;for(const _0xc3a7e1 of _0x4792a5[_0x3f78('0xcf')]()){if(_0xc3a7e1[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;_0x28cf7d[_0x3f78('0x3f')](_0xc3a7e1)||(_0x39611c=!0x1);}_0x39611c&&_0x4792a5[_0x3f78('0xc6')]();}else{const _0x2d05ff=_0x4792a5[_0x3f78('0xaa')]();if(_0x2d05ff[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;if(!Ut(_0x4792a5,_0x42a425)){_0x28cf7d[_0x3f78('0x3f')](_0x2d05ff)?_0x4792a5[_0x3f78('0x96')]():_0x2d05ff['containsPosition'](_0xfec3d8)?_0xfec3d8=_0x2d05ff[_0x3f78('0xd9')]:_0x2d05ff[_0x3f78('0x103')](_0x23576e)&&(_0x23576e=_0x2d05ff[_0x3f78('0x118')]);continue;}_0xfec3d8=_0xfec3d8[_0x3f78('0xfc')](_0x2d05ff['start'])?_0xfec3d8:_0x2d05ff[_0x3f78('0x118')],_0x23576e=_0x23576e[_0x3f78('0xdf')](_0x2d05ff[_0x3f78('0xd9')])?_0x23576e:_0x2d05ff['end'],_0x42a425=Object[_0x3f78('0x6b')]({},_0x4792a5[_0x3f78('0xb3')]),_0x2cdd3b?_0x2d05ff[_0x3f78('0x118')][_0x3f78('0xfc')](_0x2cdd3b[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x2cdd3b[_0x3f78('0x96')](),_0x2cdd3b=_0x4792a5):_0x4792a5[_0x3f78('0x96')]():_0x2cdd3b=_0x4792a5;}}}if(_0x2cdd3b)return this[_0x3f78('0xbb')](_0x2cdd3b,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e)),_0x2cdd3b;{const _0x8be7dd=_0x418993(),_0x4a8782=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e),_0x24d8dc=_0x496d37['id'],_0x1f72cc=_0x11b815?_0x3f78('0x13')+_0x11b815:_0x3f78('0xcd'),_0x272abc=this[_0x3f78('0x21')]({'id':_0x8be7dd,'type':_0x1f72cc,'createdAt':new Date(),'authorId':_0x24d8dc,'attributes':_0x42a425});return this[_0x3f78('0xc5')](_0x1f72cc,_0x8be7dd,_0x24d8dc,_0x4a8782),_0x272abc;}}[_0x3f78('0x73')](_0xd7244,_0x1ebd98=_0x3f78('0xe0'),_0x36ca5d={}){const _0x4674f2=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'],_0x205ea2=_0xd7244[_0x3f78('0xe2')](_0x5df00c=>new _0x4b8f82(_0x5df00c[_0x3f78('0x118')],_0x5df00c[_0x3f78('0xd9')])),_0x5bd86f=new Set();for(const {suggestion:_0x2b7201,meta:_0x28ceec}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0x4b')))_0x28ceec[_0x3f78('0x8')]&&!_0x28ceec['isNextTo']&&_0x5bd86f[_0x3f78('0xcb')](_0x2b7201);for(const _0x16dbf2 of _0x5bd86f)if(_0x16dbf2[_0x3f78('0xf1')]){const _0x78aeb=_0x16dbf2[_0x3f78('0xcf')]();(!_0x16dbf2[_0x3f78('0xb3')]||!_0x16dbf2['attributes']['skipNestingCheck'])&&(_0x78aeb[_0x3f78('0x13a')](_0x46ce90=>_0x205ea2['some'](_0x26ea9a=>_0x26ea9a['containsRange'](_0x46ce90,!0x0)))&&_0x16dbf2[_0x3f78('0xc6')]());if(_0x205ea2[_0x3f78('0x13a')](_0x4fa6fe=>_0x78aeb[_0x3f78('0x79')](_0x527ef1=>_0x527ef1[_0x3f78('0x3f')](_0x4fa6fe,!0x0)))){const _0x139c48=this[_0x3f78('0xdc')][_0x3f78('0x8c')]('deletion',_0x1ebd98,'accept');return this['forceDefaultExecution'](()=>_0x139c48(_0xd7244,null,_0x36ca5d)),null;}}else{const _0x2771f6=_0x16dbf2[_0x3f78('0xaa')]();_0x205ea2[_0x3f78('0x79')](_0x368989=>_0x368989['containsRange'](_0x2771f6,!0x0))&&_0x16dbf2[_0x3f78('0xc6')]();if(_0x205ea2['every'](_0x20a42f=>_0x2771f6[_0x3f78('0x3f')](_0x20a42f,!0x0))){const _0x8db062=this['_suggestionFactory'][_0x3f78('0x8c')]('deletion',_0x1ebd98,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x8db062(_0x205ea2,null,_0x36ca5d)),null;}}const _0x2abf22=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x1ebd98,'join');let _0x2051a3=null;for(const _0x56c534 of this[_0x3f78('0x2c')]())if(_0x56c534[_0x3f78('0x6e')]['id']==_0x4674f2['id']&&_0x56c534[_0x3f78('0x94')]&&_0x3f78('0xcd')==_0x56c534[_0x3f78('0x62')]&&_0x56c534[_0x3f78('0x8b')]==_0x1ebd98&&Ut(_0x56c534,_0x36ca5d)&&(_0x2abf22(_0x56c534['getRanges'](),_0x205ea2)||_0x2abf22(_0x205ea2,_0x56c534[_0x3f78('0xcf')]()))){if(_0x2051a3){if(_0x56c534[_0x3f78('0x43')]&&_0x56c534[_0x3f78('0x43')][_0x3f78('0x37')])continue;for(const _0x313404 of _0x56c534[_0x3f78('0xcf')]())_0x2051a3[_0x3f78('0x1e')](_0x313404)||_0x2051a3[_0x3f78('0xc8')](_0x313404);_0x56c534[_0x3f78('0x96')]();}else{_0x2051a3=_0x56c534;for(const _0x50c67c of _0x205ea2)_0x56c534['isIntersectingWithRange'](_0x50c67c)||_0x56c534['addRange'](_0x50c67c);}}if(_0x2051a3)return _0x2051a3;_0x5bd86f['clear']();for(const {suggestion:_0x3ae4c4,meta:_0x34257a}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0xcd')))_0x34257a[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x34257a['containsRangeInObject']&&!_0x34257a[_0x3f78('0xbd')])&&Ut(_0x3ae4c4,_0x36ca5d)&&_0x5bd86f[_0x3f78('0xcb')](_0x3ae4c4);for(const _0x4ae299 of _0x5bd86f){const _0x108f8e=_0x4ae299[_0x3f78('0xcf')]();if(!_0x36ca5d||!_0x36ca5d[_0x3f78('0x11b')]){if(_0x205ea2[_0x3f78('0x13a')](_0x5231f9=>_0x108f8e['some'](_0x5e3ac4=>_0x5e3ac4[_0x3f78('0x3f')](_0x5231f9,!0x0))))return _0x4ae299;}(!_0x4ae299['attributes']||!_0x4ae299['attributes'][_0x3f78('0x11b')])&&(_0x108f8e[_0x3f78('0x13a')](_0xb05d56=>_0x205ea2[_0x3f78('0x79')](_0x516ca7=>_0x516ca7[_0x3f78('0x3f')](_0xb05d56,!0x0)))&&_0x4ae299[_0x3f78('0xc6')]());}const _0x43bfbe=_0x418993(),_0x3c1503=_0x4674f2['id'],_0x4501a6=_0x3f78('0x13')+_0x1ebd98,_0x5d44b0=this[_0x3f78('0x21')]({'id':_0x43bfbe,'type':_0x4501a6,'createdAt':new Date(),'authorId':_0x3c1503,'attributes':_0x36ca5d});for(const _0x253b6b of _0x205ea2)_0x253b6b['detach'](),_0x253b6b['isCollapsed']||'$graveyard'==_0x253b6b[_0x3f78('0x71')]['rootName']||this['_addSuggestionMarker'](_0x4501a6,_0x43bfbe,_0x3c1503,_0x253b6b,_0x49aee1[_0x3f78('0xf3')]());return _0x5d44b0;}[_0x3f78('0xbb')](_0x77f6f9,_0x2e0813){const _0x29df6d=_0x77f6f9['getFirstMarker']();this[_0x3f78('0xe3')]['change'](_0x5d1821=>{_0x5d1821[_0x3f78('0xe4')](_0x29df6d,{'range':_0x2e0813});});}['_addThreadToSuggestion'](_0x4d872e){const _0xe9c359=_0x4d872e['id'],_0x373d9d=this[_0x3f78('0x98')][_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x95'));this[_0x3f78('0x18')][_0x3f78('0x10a')](_0xe9c359)||this['_commentsRepository']['addCommentThread']({'channelId':_0x373d9d,'threadId':_0xe9c359,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15fa5a=this[_0x3f78('0x18')][_0x3f78('0x2a')](_0xe9c359);_0x15fa5a[_0x3f78('0xfb')]('isRemovable'),_0x15fa5a[_0x3f78('0x7e')]=!0x1,_0x4d872e[_0x3f78('0x43')]=_0x15fa5a;}[_0x3f78('0x138')](_0x39d072,_0x2a7846,_0x5160ef,_0xf159cf){if(_0x39d072[_0x3f78('0x62')]!=_0x2a7846||_0x39d072[_0x3f78('0x8b')]!=_0x5160ef||_0x39d072[_0x3f78('0xc3')]['id']!=_0xf159cf)throw this['editor'][_0x3f78('0x111')](_0x3f78('0xc1')),new _0x400b29(_0x3f78('0xc1'),this);}[_0x3f78('0x32')](_0x42e82c,_0x5270ee){const _0x514634=_0x42e82c[_0x3f78('0xaa')]();if(_0x5270ee[_0x3f78('0x4e')](_0x514634))_0x42e82c[_0x3f78('0x96')]();else{if(_0x514634['containsRange'](_0x5270ee)){const _0x3be3e3=this['_model'][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x3be3e3));const _0x30250b=_0x418993(),_0x2485c5=_0x42e82c[_0x3f78('0xc3')]['id'],_0x3b8f56=_0x42e82c[_0x3f78('0x62')]+':'+_0x42e82c[_0x3f78('0x8b')];this['_setSuggestionData']({'id':_0x30250b,'type':_0x3b8f56,'createdAt':new Date(),'authorId':_0x2485c5,'data':_0x42e82c[_0x3f78('0x2')],'attributes':_0x42e82c[_0x3f78('0xb3')]});const _0x3ede23=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after'),_0x1cb952=this['_model'][_0x3f78('0x107')](_0x3ede23,_0x514634[_0x3f78('0xd9')]);this[_0x3f78('0xc5')](_0x3b8f56,_0x30250b,_0x2485c5,_0x1cb952);}else{if(_0x514634[_0x3f78('0x103')](_0x5270ee[_0x3f78('0x118')])){const _0x461ce1=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x461ce1));}else{const _0x1be8e3=this[_0x3f78('0xe3')]['createPositionAt'](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after');this[_0x3f78('0xbb')](_0x42e82c,this['_model'][_0x3f78('0x107')](_0x1be8e3,_0x514634[_0x3f78('0xd9')]));}}}}['_rangeIsInLocalUserInsertion'](_0x58f11b){for(const {suggestion:_0x26b983,meta:_0x51f48a}of this[_0x3f78('0x12e')](_0x58f11b,_0x3f78('0x4b'))){if(!_0x51f48a['isOwn'])continue;const _0x306839=_0x26b983[_0x3f78('0xcf')]();for(const _0x1953bf of _0x306839)if(!_0x58f11b[_0x3f78('0xd5')](_0x1953bf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x44c33d){const _0x57915c=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))[_0x3f78('0xe8')](_0x44c33d);if(!_0x57915c)throw new _0x400b29(_0x3f78('0x44'),this);return _0x57915c;}[_0x3f78('0x31')](_0x4f5e3d){const _0x192c08=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users'),_0x10acda=_0x3abb0f(_0x3f78('0xa1')+_0x4f5e3d),_0x16b4b1=_0x192c08[_0x3f78('0xe8')](_0x10acda);return _0x16b4b1||_0x192c08[_0x3f78('0x91')]({'id':_0x10acda,'name':_0x4f5e3d});}[_0x3f78('0x10c')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x5eb878,_0x2d5b3f){const _0x54e67b=this[_0x3f78('0x64')](_0x5eb878),_0x5dd636=this[_0x3f78('0xdc')][_0x3f78('0x8f')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x54e67b,_0x2d5b3f,_0x46dcc8=>this[_0x3f78('0x29')](_0x1f1801,{'attributes':_0x46dcc8}));return this['listenTo'](_0x5dd636,'accept',()=>{this[_0x3f78('0x29')](_0x1f1801,{'state':_0x3f78('0x17')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x80')](_0x5dd636,_0x3f78('0xc6'),()=>{this['_updateSuggestionData'](_0x1f1801,{'state':_0x3f78('0xff')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x120')][_0x3f78('0x3e')](_0x1f1801,_0x5dd636),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5dd636,'notReady'),_0x5dd636;}[_0x3f78('0x128')](_0x5ad0f1){const _0x410dc9=_0x5ad0f1[_0x3f78('0xea')](':');return{'group':_0x410dc9[0x0],'type':_0x410dc9[0x1],'subType':_0x410dc9[_0x3f78('0x37')]>=0x5?_0x410dc9[0x2]:null,'id':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x2]:_0x410dc9[0x3],'authorId':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x3]:_0x410dc9[0x4],'markerCount':0x6==_0x410dc9[_0x3f78('0x37')]?_0x410dc9[0x5]:null};}[_0x3f78('0xf8')](_0x54b35f,_0x48e259,_0xbdcea7){const _0x31ccb8=_0x54b35f['getFirstRange'](),_0x370b7a=_0x31ccb8['start'],_0x35384f=_0x31ccb8[_0x3f78('0xd9')];this[_0x3f78('0xbb')](_0x54b35f,this[_0x3f78('0xe3')]['createRange'](_0x370b7a,_0x48e259));const _0x1d91a1=_0x418993(),_0x40eb6f=_0x54b35f[_0x3f78('0xc3')]['id'],_0x2b09d8=_0x54b35f[_0x3f78('0x62')]+(_0x54b35f['subType']?':'+_0x54b35f[_0x3f78('0x8b')]:'');this[_0x3f78('0x21')]({'id':_0x1d91a1,'type':_0x2b09d8,'createdAt':new Date(),'authorId':_0x40eb6f,'originalSuggestionId':_0x54b35f['id'],'attributes':_0x54b35f[_0x3f78('0xb3')],'data':_0x54b35f[_0x3f78('0x2')]}),_0x3f78('0xdd')==_0x54b35f[_0x3f78('0x62')]&&(_0xbdcea7=this['_model'][_0x3f78('0x52')](_0xbdcea7['parent'])),this[_0x3f78('0xc5')](_0x2b09d8,_0x1d91a1,_0x40eb6f,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xbdcea7,_0x35384f));}[_0x3f78('0x12e')](_0x5b6057,_0x25e0e8=null){const _0x306b95=[],_0x1cc226=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];Array['isArray'](_0x5b6057)||(_0x5b6057=[_0x5b6057]);for(const _0x44c347 of this[_0x3f78('0x2c')]()){if(!_0x44c347['isInContent'])continue;if(_0x25e0e8&&_0x44c347[_0x3f78('0x62')]!=_0x25e0e8)continue;let _0x10680a=!0x1;for(const _0x4a6187 of _0x44c347['getRanges']()){for(const _0x204891 of _0x5b6057){const _0x5a66ff=_0x204891[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4a6187[_0x3f78('0xd9')])||_0x204891[_0x3f78('0xd9')][_0x3f78('0x4e')](_0x4a6187['start']);if(_0x5a66ff||_0x204891[_0x3f78('0x83')](_0x4a6187)){const _0x1b8a1d=_0x204891[_0x3f78('0x3f')](_0x4a6187)&&Bt(this['_model'][_0x3f78('0x7c')],_0x4a6187[_0x3f78('0x118')],_0x204891),_0x424719=_0x4a6187[_0x3f78('0x3f')](_0x204891)&&Bt(this[_0x3f78('0xe3')][_0x3f78('0x7c')],_0x204891[_0x3f78('0x118')],_0x4a6187);_0x306b95[_0x3f78('0x22')]({'suggestion':_0x44c347,'meta':{'isOwn':_0x1cc226==_0x44c347[_0x3f78('0x6e')],'isNextTo':_0x5a66ff,'isInsideObject':_0x1b8a1d,'containsRangeInObject':_0x424719}}),_0x10680a=!0x0;break;}}if(_0x10680a)break;}}return _0x306b95;}['_addSuggestionMarker'](_0x179ed6,_0x3da8a5,_0x3dc42c,_0x55424,_0x213d4b){this[_0x3f78('0xe3')]['change'](_0x4a0da7=>{let _0x367f6c=_0x3f78('0x27')+_0x179ed6+':'+_0x3da8a5+':'+_0x3dc42c;_0x213d4b&&(_0x367f6c=_0x367f6c+':'+_0x213d4b),_0x4a0da7[_0x3f78('0x7d')](_0x367f6c,{'range':_0x55424,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3f78('0x8e')](_0x18a893){const _0xdf386b=_0x18a893['previous'],_0xa6caba=_0x18a893[_0x3f78('0xb0')];_0x18a893[_0x3f78('0x9e')]=null,null!=_0xdf386b&&(_0xdf386b[_0x3f78('0xb0')]=null),_0x18a893['next']=null,null!=_0xa6caba&&(_0xa6caba[_0x3f78('0x9e')]=null),'ready'==this[_0x3f78('0x9b')][_0x3f78('0x60')](_0x18a893)&&(this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x18a893,_0x3f78('0x36')),this['fire'](_0x3f78('0xe1'),_0x18a893,_0xdf386b,_0xa6caba));}[_0x3f78('0x21')](_0x2822f9){const _0x12c42a=_0x2822f9['id'],_0x498d07=this[_0x3f78('0xf')](_0x2822f9);if(this['_adapter']&&this[_0x3f78('0x102')][_0x3f78('0x26')]){const _0xeb7cc9=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x113')),_0x36bd38=_0x498d07['hasComments'],_0x590047=_0x498d07['subType']?_0x498d07['type']+':'+_0x498d07[_0x3f78('0x8b')]:_0x498d07[_0x3f78('0x62')],_0xccff6f=this[_0x3f78('0x98')][_0x3f78('0x88')],_0x435965=_0xeb7cc9[_0x3f78('0xcb')](_0x304cd0(_0xccff6f,'PENDING_ACTION_SUGGESTION')),_0x45fa87={'id':_0x12c42a,'type':_0x590047,'hasComments':_0x36bd38,'data':_0x2822f9['data']||null,'originalSuggestionId':_0x2822f9[_0x3f78('0xb2')]||null,'attributes':_0x498d07[_0x3f78('0xb3')]};this[_0x3f78('0x102')]['addSuggestion'](_0x45fa87)[_0x3f78('0x65')](_0x4006b5=>{_0x498d07['_saved']=!0x0,_0xeb7cc9[_0x3f78('0xcc')](_0x435965),_0x4006b5&&_0x4006b5[_0x3f78('0xb')]&&(this['_suggestions'][_0x3f78('0x60')](_0x12c42a)[_0x3f78('0xb')]=_0x4006b5[_0x3f78('0xb')]);})[_0x3f78('0x11')](_0x598398=>{throw _0x46fa9c('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x3f78('0xc0')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x498d07[_0x3f78('0xc6')]();}),_0x498d07[_0x3f78('0x3a')](),this['_suggestions']['delete'](_0x498d07['id']),this[_0x3f78('0x9b')][_0x3f78('0x35')](_0x498d07),_0x598398;});}return _0x498d07;}[_0x3f78('0x29')](_0xf3ba2e,_0x1d0fe9){const _0x1e57b0=this[_0x3f78('0x98')]['plugins']['get']('PendingActions'),_0x21f104=this['getSuggestion'](_0xf3ba2e);if(this[_0x3f78('0x102')]&&this['_adapter'][_0x3f78('0x3d')]){if(_0x21f104[_0x3f78('0x41')]){const _0x40937f=_0x1e57b0[_0x3f78('0xcb')](_0x304cd0(this['editor'][_0x3f78('0x88')],_0x3f78('0xa2')));this[_0x3f78('0x102')][_0x3f78('0x3d')](_0xf3ba2e,_0x1d0fe9)['then'](()=>{_0x1e57b0[_0x3f78('0xcc')](_0x40937f);});}else _0x21f104['on'](_0x3f78('0x57'),()=>{this['_updateSuggestionData'](_0xf3ba2e,_0x1d0fe9);});}}['_getSuggestionData'](_0x28f1ba){if(!this['_adapter']||!this[_0x3f78('0x102')][_0x3f78('0xd4')])throw new _0x400b29(_0x3f78('0x38'),this);return this[_0x3f78('0x102')][_0x3f78('0xd4')](_0x28f1ba);}[_0x3f78('0xab')](_0x220d07){const {id:_0x289923,type:_0x4c8b32,subType:_0xc2b56a,authorId:_0x4958bb}=this[_0x3f78('0x128')](_0x220d07),_0x5b0a37=this[_0x3f78('0x120')]['get'](_0x289923)||this[_0x3f78('0x10c')](_0x4c8b32,_0xc2b56a,_0x289923,_0x4958bb,{});switch(this['_checkSuggestionCorrectness'](_0x5b0a37,_0x4c8b32,_0xc2b56a,_0x4958bb),this['_suggestionState']['get'](_0x5b0a37)){case _0x3f78('0x121'):this[_0x3f78('0xc7')](_0x289923)[_0x3f78('0x65')](_0x23349a=>{let _0x442cb2=Promise[_0x3f78('0xba')]();_0x23349a[_0x3f78('0x30')]&&(_0x442cb2=this[_0x3f78('0x18')][_0x3f78('0x25')]({'channelId':this['editor'][_0x3f78('0x136')]['get'](_0x3f78('0x95')),'threadId':_0x289923})),_0x442cb2[_0x3f78('0x65')](()=>{this[_0x3f78('0xf')](_0x23349a)[_0x3f78('0x41')]=!0x0;});}),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x2b'));break;case'removed':this['_updateSuggestionData'](_0x289923,{'state':_0x3f78('0x69')});case _0x3f78('0x5f'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x5b0a37);break;case _0x3f78('0x1d'):this[_0x3f78('0xce')](_0x3f78('0x8d'),_0x5b0a37);}return _0x5b0a37[_0x3f78('0x70')](_0x220d07),_0x5b0a37;}[_0x3f78('0xf5')](_0x11c698){const _0x4d28a1=Array[_0x3f78('0x6a')](_0x11c698)[_0x3f78('0x9c')](_0x578933=>!_0x578933[_0x3f78('0xf1')]),_0x1d16b9=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0})['filter'](_0x4b1dfd=>!_0x4b1dfd['isMultiRange']),_0x20d5d0=_0x1d16b9['filter'](_0x345553=>!_0x11c698[_0x3f78('0x48')](_0x345553)),_0x1a455e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x5a46b1=>[_0x5a46b1,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x5a46b1['type'],_0x5a46b1['subType'],_0x3f78('0x134'))])),_0x4a423e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x432264=>[_0x432264,_0x432264[_0x3f78('0xaa')]()])),_0x1c9b48=new Set(),_0x25fd43=new Set();for(let _0x4d7529=0x0;_0x4d7529<_0x4d28a1[_0x3f78('0x37')];_0x4d7529++)_0x21fd4d(_0x4d28a1[_0x4d7529],_0x4d28a1,_0x4d7529+0x1);for(let _0x1b86f1=0x0;_0x1b86f1<_0x4d28a1['length'];_0x1b86f1++)_0x21fd4d(_0x4d28a1[_0x1b86f1],_0x20d5d0,0x0);for(let _0x1b5140=0x0;_0x1b5140<_0x4d28a1[_0x3f78('0x37')];_0x1b5140++){const _0x3a929b=_0x4d28a1[_0x1b5140];!_0x25fd43[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0x9e')]&&(_0x3a929b[_0x3f78('0x9e')]['next']===_0x3a929b&&(_0x3a929b[_0x3f78('0x9e')][_0x3f78('0xb0')]=null),_0x3a929b['previous']=null),!_0x1c9b48[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0xb0')]&&(_0x3a929b['next'][_0x3f78('0x9e')]===_0x3a929b&&(_0x3a929b['next'][_0x3f78('0x9e')]=null),_0x3a929b['next']=null);}function _0x21fd4d(_0x2f98be,_0x2b58aa,_0x2d6c0e){for(let _0x42c234=_0x2d6c0e;_0x42c234<_0x2b58aa[_0x3f78('0x37')];_0x42c234++){const _0x575093=_0x345040(_0x2f98be,_0x2b58aa[_0x42c234]);_0x575093&&(_0x575093[0x0][_0x3f78('0xb0')]=_0x575093[0x1],_0x575093[0x1][_0x3f78('0x9e')]=_0x575093[0x0],_0x1c9b48[_0x3f78('0xcb')](_0x575093[0x0]),_0x25fd43[_0x3f78('0xcb')](_0x575093[0x1]));}}function _0x345040(_0x101541,_0x5f517f){if(_0x101541[_0x3f78('0x6e')]['id']!==_0x5f517f[_0x3f78('0x6e')]['id'])return null;const _0x2a34a3=_0x1a455e[_0x3f78('0x60')](_0x101541)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f));if(!_0x2a34a3)return null;return _0x1a455e[_0x3f78('0x60')](_0x5f517f)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f))?_0x2a34a3[0x1][_0x3f78('0x43')]&&_0x2a34a3[0x1][_0x3f78('0x43')][_0x3f78('0x37')]?null:_0x2a34a3:null;}}[_0x3f78('0x46')](_0x5da3c8){const _0x582bb8=Array[_0x3f78('0x6a')](_0x5da3c8),_0x555ef3=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0}),_0x1a479e=_0x555ef3[_0x3f78('0x9c')](_0x3043c0=>!_0x5da3c8[_0x3f78('0x48')](_0x3043c0)),_0x38c053=new Map(_0x582bb8['map'](_0x25814a=>[_0x25814a,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x25814a[_0x3f78('0x62')],_0x25814a[_0x3f78('0x8b')],_0x3f78('0x126'))])),_0x57e407=new Map(_0x555ef3[_0x3f78('0xe2')](_0x742cf0=>[_0x742cf0,_0x742cf0[_0x3f78('0xcf')]()]));for(let _0x15bf0c=0x0;_0x15bf0c<_0x582bb8['length'];_0x15bf0c++){if(_0x51d5f3(this,_0x582bb8[_0x15bf0c],_0x582bb8,_0x15bf0c+0x1))return!0x0;}for(let _0x29556a=0x0;_0x29556a<_0x582bb8[_0x3f78('0x37')];_0x29556a++){if(_0x51d5f3(this,_0x582bb8[_0x29556a],_0x1a479e,0x0))return!0x0;}return!0x1;function _0x51d5f3(_0x3fd78f,_0x3691ab,_0x3d12fe,_0x29f7dd){for(let _0x402cf1=_0x29f7dd;_0x402cf1<_0x3d12fe[_0x3f78('0x37')];_0x402cf1++){const _0x25164e=_0x3d12fe[_0x402cf1];if(_0x25164e[_0x3f78('0x62')]!==_0x3691ab[_0x3f78('0x62')]||_0x25164e['author']['id']!==_0x3691ab['author']['id']||_0x25164e[_0x3f78('0x8b')]!==_0x3691ab[_0x3f78('0x8b')])continue;if(!xt(_0x3691ab,_0x25164e))continue;const _0x2323a2=_0x38c053[_0x3f78('0x60')](_0x3691ab),_0x2553fa=_0x57e407[_0x3f78('0x60')](_0x3691ab),_0x9c9e99=_0x57e407[_0x3f78('0x60')](_0x25164e),_0x18d3fa=_0x3691ab[_0x3f78('0x43')]&&_0x3691ab[_0x3f78('0x43')][_0x3f78('0x37')],_0x324b1f=_0x25164e['commentThread']&&_0x25164e[_0x3f78('0x43')][_0x3f78('0x37')];if(!_0x18d3fa&&_0x2323a2(_0x9c9e99,_0x2553fa))return _0x3fd78f[_0x3f78('0x7')](_0x25164e,_0x3691ab),_0x57e407['delete'](_0x3691ab),!0x0;if(!_0x324b1f&&_0x2323a2(_0x2553fa,_0x9c9e99))return _0x3fd78f[_0x3f78('0x7')](_0x3691ab,_0x25164e),_0x57e407[_0x3f78('0x35')](_0x25164e),!0x0;}return!0x1;}}[_0x3f78('0x7')](_0xc0a22c,_0x1ba28c){if(_0xc0a22c[_0x3f78('0xf1')])for(const _0x2e83e2 of _0x1ba28c[_0x3f78('0xcf')]())_0xc0a22c['addRange'](_0x2e83e2);else{const _0x480801=_0x1ba28c['getFirstRange']()['end'];this[_0x3f78('0xbb')](_0xc0a22c,this[_0x3f78('0xe3')]['createRange'](_0xc0a22c['getFirstRange']()[_0x3f78('0x118')],_0x480801));}_0x1ba28c[_0x3f78('0x96')]();}}class Dt{constructor(_0x528fea){this['_editor']=_0x528fea,this[_0x3f78('0xe3')]=_0x528fea[_0x3f78('0xc0')],this[_0x3f78('0xde')]=new Map(),this[_0x3f78('0x77')]=new Map(),this[_0x3f78('0x129')]();}[_0x3f78('0x8f')](_0x3c5efa,_0x20dec6,_0x330eb5,_0x71fe91,_0x117515,_0xb9b740){return new _0x49aee1(this[_0x3f78('0xe3')],{'type':_0x3c5efa,'subType':_0x20dec6,'id':_0x330eb5,'author':_0x71fe91,'creator':_0x71fe91,'attributes':_0x117515,'onAttributesChange':_0xb9b740,'onAccept':(..._0x108fd8)=>this[_0x3f78('0x8c')](_0x3c5efa,_0x20dec6,'accept')(..._0x108fd8),'onDiscard':(..._0x3a6fe5)=>this['getSuggestionCallback'](_0x3c5efa,_0x20dec6,'discard')(..._0x3a6fe5)});}['registerCustomCallback'](_0x153479,_0x40f9a5,_0x5ebcee,_0x315469){const _0x10fa4f=_0x153479+':'+_0x40f9a5+':'+_0x5ebcee;this['_customCallbacks']['set'](_0x10fa4f,_0x315469);}[_0x3f78('0x8c')](_0x4e4706,_0x472852,_0x44175b){const _0xc24567=_0x4e4706+':'+_0x472852+':'+_0x44175b;return this[_0x3f78('0xde')]['get'](_0xc24567)||this[_0x3f78('0x77')]['get'](_0x4e4706+':'+_0x44175b);}[_0x3f78('0x129')](){const _0x36d9bd=()=>!0x1,_0x446313=_0x31f30b=>{_0x31f30b['sort']((_0x38e636,_0x3e6166)=>_0x38e636['start']['isBefore'](_0x3e6166[_0x3f78('0x118')])?0x1:-0x1),this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x1ee8ad=>{for(const _0x46f333 of _0x31f30b){let _0x2a4947;_0x2a4947=_0x46f333[_0x3f78('0xd9')]['isAtEnd']&&_0x46f333[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x46f333['start'][_0x3f78('0x7b')]?_0x1ee8ad[_0x3f78('0x11f')](_0x46f333[_0x3f78('0x118')][_0x3f78('0x7b')],'on'):_0x1ee8ad['createSelection'](_0x46f333),this['_model']['deleteContent'](_0x2a4947,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5cdfee=(_0x3f5ac1,_0x36642b)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x2133ee=>{const {commandName:_0x40fbee,commandParams:_0x5a580=[]}=_0x36642b,_0x2628e0=_0x3f5ac1[_0x3f78('0xe2')](_0xe0c9da=>(_t(_0xe0c9da)&&(_0xe0c9da=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xe0c9da['end'])),_0xe0c9da))[_0x3f78('0x9c')](_0x46f9bc=>_0x3f78('0xa7')!==_0x46f9bc[_0x3f78('0x71')][_0x3f78('0xc')]);if(_0x2628e0['length']<0x1)return;const _0x214087=Array[_0x3f78('0x6a')](this[_0x3f78('0xe3')]['document']['selection']['getRanges']())[_0x3f78('0xe2')](_0x2fb243=>_0x4b8f82[_0x3f78('0x45')](_0x2fb243));_0x2133ee['setSelection'](_0x2628e0);for(const _0x2590fe of this[_0x3f78('0xe9')]['commands'][_0x3f78('0x13b')]())_0x2590fe[_0x3f78('0x11d')]();_0x5a580['push']({'forceDefaultExecution':!0x0}),this[_0x3f78('0xe9')]['execute'](_0x40fbee,..._0x5a580);const _0x3f74c0=_0x214087[_0x3f78('0x9c')](_0xe24fa3=>_0x3f78('0xa7')!=_0xe24fa3[_0x3f78('0x71')][_0x3f78('0xc')]);_0x3f74c0[_0x3f78('0x37')]>0x0&&_0x2133ee[_0x3f78('0x7a')](_0x3f74c0);for(const _0x1f9a4f of _0x214087)_0x1f9a4f[_0x3f78('0xd6')]();});},_0x357c00=(_0x212404,_0x21acf3)=>0x1==_0x212404[_0x3f78('0x37')]&&0x1==_0x21acf3['length']&&_0x212404[0x0]['end'][_0x3f78('0x4e')](_0x21acf3[0x0][_0x3f78('0x118')]),_0x31ad18=(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d)=>jt(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d,this[_0x3f78('0xe3')])?[_0x2ba0ee,_0x21cd34]:jt(_0x21cd34,_0x2ba0ee,_0xcfe02d,_0x1d074a,this['_model'])?[_0x21cd34,_0x2ba0ee]:null;this[_0x3f78('0x77')][_0x3f78('0x3e')]('insertion:accept',_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x1f'),_0x446313),this[_0x3f78('0x77')]['set'](_0x3f78('0x132'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')]('insertion:chain',_0x31ad18),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x76'),_0x446313),this[_0x3f78('0x77')]['set']('deletion:discard',_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x56'),_0x357c00),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x105'),_0x31ad18),this[_0x3f78('0x77')]['set'](_0x3f78('0x89'),_0x5cdfee),this[_0x3f78('0x77')]['set'](_0x3f78('0xf6'),_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x53'),_0x357c00),this[_0x3f78('0x77')]['set'](_0x3f78('0x1b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x68'),_0x5cdfee),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x3b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0xd3'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x115'),_0x36d9bd);}}function Bt(_0x22ff8e,_0x3feb97,_0x1572f4){for(const _0x52c3bc of _0x3feb97[_0x3f78('0xe5')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52c3bc[_0x3f78('0x71')]==_0x52c3bc)return!0x1;if(!_0x1572f4[_0x3f78('0xb4')](_0x52c3bc))return!0x1;if(_0x22ff8e[_0x3f78('0x90')](_0x52c3bc)||_0x22ff8e[_0x3f78('0x10d')](_0x52c3bc))return!0x0;}return!0x1;}function _t(_0x188a7b){return _0x188a7b[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x188a7b[_0x3f78('0x118')][_0x3f78('0x7b')]&&_0x188a7b['end'][_0x3f78('0x9f')];}function Mt(_0x439e71,_0x17b806,_0x404635,_0x100f10){const _0x33fb9c=_0x1c5879=>!_0x1c5879[_0x3f78('0xd2')]['is'](_0x3f78('0x10e'))&&!_0x100f10[_0x3f78('0x90')](_0x1c5879[_0x3f78('0xd2')]),_0x4af227=_0x439e71['start'][_0x3f78('0x7f')](_0x33fb9c),_0x3609f1=_0x439e71['end'][_0x3f78('0x7f')](_0x33fb9c,{'direction':_0x3f78('0xc9')});return(!_0x439e71[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4af227)||!_0x439e71[_0x3f78('0xd9')]['isEqual'](_0x3609f1))&&(_0x4af227[_0x3f78('0xfc')](_0x3609f1)?_0x404635[_0x3f78('0xe4')](_0x17b806,{'range':_0x404635[_0x3f78('0x107')](_0x4af227,_0x3609f1)}):_0x404635['removeMarker'](_0x17b806),!0x0);}function $t(_0xcdb461){return _0x3abb0f(_0xcdb461);}function Nt(_0x5d29c9){const _0xc044b2=_0x5d29c9[_0x3f78('0x118')][_0x3f78('0x7b')];return _0xc044b2&&_0xc044b2['is'](_0x3f78('0xa9'));}function Rt(_0x14ca12,_0x589dad){const _0x109dcb=_0x589dad[_0x3f78('0x7c')][_0x3f78('0x90')](_0x14ca12)||_0x589dad['schema']['isSelectable'](_0x14ca12);return _0x589dad[_0x3f78('0x107')](_0x589dad['createPositionAt'](_0x14ca12,_0x3f78('0xeb')),_0x109dcb?_0x589dad[_0x3f78('0x51')](_0x14ca12):_0x589dad[_0x3f78('0x5')](_0x14ca12,_0x3f78('0xd9')));}function jt(_0x3597d8,_0x31dd78,_0x4b39b8,_0x4f465a,_0xf2ef83){if(!xt(_0x3597d8,_0x31dd78))return!0x1;if(_0x4b39b8['end'][_0x3f78('0x4e')](_0x4f465a['start']))return!0x0;if(_0x3597d8['type']!=_0x31dd78[_0x3f78('0x62')])return!0x1;if(!_0x4b39b8[_0x3f78('0xd9')]['isTouching'](_0x4f465a[_0x3f78('0x118')]))return!0x1;const _0x320cde=_0xf2ef83['createRange'](_0x4b39b8[_0x3f78('0xd9')],_0x4f465a['start'])['getWalker']();for(const _0x51c56c of _0x320cde)if([_0x3f78('0x84'),'elementEnd'][_0x3f78('0x92')](_0x51c56c[_0x3f78('0x62')])&&_0xf2ef83[_0x3f78('0x7c')][_0x3f78('0x10d')](_0x51c56c['item']))return!0x1;return!0x0;}function xt(_0x59e6f1,_0x390e2f){return!(!_0x59e6f1[_0x3f78('0x2e')]||!_0x390e2f[_0x3f78('0x2e')])&&_0x4b2408(_0x59e6f1[_0x3f78('0xb3')],_0x390e2f['attributes']);}function Ut(_0x1d68b1,_0x466d9e){const _0x1c1259=Ot(_0x1d68b1[_0x3f78('0xb3')]),_0x1fe3d0=Ot(_0x466d9e);if(!_0x1d68b1[_0x3f78('0x2e')])return!0x1;for(const _0x22ad86 of Object[_0x3f78('0xa6')](_0x1fe3d0))if(!_0x4b2408(_0x1c1259[_0x22ad86],_0x1fe3d0[_0x22ad86]))return!0x1;return!0x0;}function Ot(_0x4928d8){const _0xdbf634=Object[_0x3f78('0x6b')]({},_0x4928d8);return delete _0xdbf634[_0x3f78('0x11b')],delete _0xdbf634['tablePasteChainId'],_0xdbf634;}
|