@ckeditor/ckeditor5-track-changes 40.2.0 → 41.1.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/CHANGELOG.md +5 -5
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/es.js +1 -1
- package/build/translations/ro.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +2 -2
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +2 -2
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3d2a=['isUndo','trackChangesCommand','some','stopListening','set','add','subType','execute','join','_setSuggestionRange','notReady','ariaLiveAnnouncer','_joinWithAdjacentSuggestions','change:activeMarkers','value','addCommentThread','getDifference','_SUGGESTION_ANNOUNCEMENT','discardSelectedSuggestions','options','insertion:','_customCallbacks','createPositionAfter','oldName','type','element','markerToData','formatBlock:accept','setAttribute','markInsertion','map','attribute','root','isSelectable','hasComments','rootName','unshift','showSuggestionHighlights','upcast','delete','_registerInlineAttribute','_recordAttributeChanges','differ','$marker','comments','rethrowUnexpectedError','author','data','formatBlock','markMultiRangeInsertion','track-changes-adapter-missing-getsuggestion','changeAttribute','writer','push','_inlineAttributeKeys','isCollapsed','consume','model','editingDowncast','plugins','trackChanges.trackFormatChanges','track-changes-command-not-found','createSelection','keys','data-suggestion','getAttribute','from','authorName','range','suggestion-type','formatBlock:chain','discardAllSuggestions','isRemovable','elementToElement','isObject','ck-suggestion-marker','_updateSuggestionData','unbindElementFromMarkerName','createRange','_getAuthorFromId','deletion:','rename','_handleNewSuggestionMarker','oldRange','move','creator','item','$elementName','insert','trackChanges.mergeNestedSuggestions','selection','formatBlock:join','document','deletion:accept','insertion:chain','default','markerName','isLocal','define','key','oldValue','listenTo','_suggestionFactory','discardSuggestion','_trackFormatChanges','change','createPositionAt','track-changes-user-not-found','getMarkers','containsRangeInObject','getNearestSelectionRange','fetchCommentThread','suggestion','mapper','next','getShiftedBy','start','_mergeNestedSuggestions','suggestion:attribute:','formatInline:discard','remove','announce','version','high','formatInline:','skipNestingCheck','FORMATTING','addClass','_blockAttributeKeys','$graveyard','Users','for','createPositionBefore','insertion','commandName','before','error-saving-suggestion-data-suggestion-discarded','CommentsRepository','$text','nodeBefore','_registerDefaultCallbacks','_commentsRepository','splice','_initAriaMarkerChangeAnnouncements','every','_processAttributeSuggestions','consumable','always','fromCharCode','_suggestions','_model','suggestionChanged','multipleBlocks','deletion','ck-suggestion-marker-','createRangeIn','normal','PENDING_ACTION_SUGGESTION','enableReadOnlyMode','isBefore','tablePasteChainId','lowest','track-changes-adapter-already-set','get','concat','markerToHighlight','conversion','elementStart','adapter','_isDataLoaded','ck-suggestion-marker--active','isEqual','$textProxy','pop','markAttributeChange','getIntersection','getChanges','setSelection','getChangedMarkers','removeAttribute','batch','_getSuggestionData','substring','splitPosition','_editor','_createSuggestion','formatGroupId','suggestion:','_processAttributeChanges','_suggestionState','updateSuggestion','_refreshAttributeSuggestionsChain','getRange','activeMarkers','addRange','markMultiRangeDeletion','isOwn','registerCustomCallback','startsWith','addMarker:suggestion:attribute','addSuggestion','rejected','isTouching','getAllAdjacentSuggestions','authoredAt','containsPosition','accept','_enableDefaultAttributesIntegration','addSuggestionData','originalSuggestionId','markInlineFormat','isBlock','_joinSuggestions','_removeSuggestion','substr','_enabledCommands','_splitMarkerName','length','forceDefaultExecution','getMultiRangeId','multi','newRange','_reduceSuggestionAttributeRange','_setSuggestionData','accepted','acceptSuggestion','_checkSuggestionCorrectness','group','insertion:accept','removeMarker:suggestion:attribute','_getMarkerAnnouncementText','collaboration.channelId','registerPostFixer','discard','name','getCustomProperty','containsItem','ready','previous','_breakSuggestionMarker','highest','fire','targetPosition','after','_recordAttributeSuggestionsFromVersion','history','includes','getWalker','enableCommand','formatBlock:discard','hasCommentThread','updateMarker','schema','commentThread','addMarker','ck-suggestion-marker-formatBlock','reconvertMarker','buildSuggestion','split','parent','has','containsRange','createdAt','PendingActions','TrackChangesEditing','track-changes-suggestion-data-mismatch','_reduceExistingSuggestions','getFirstMarker','toUpperCase','addAttribute','trackChanges','formatInline','deletion:join','getSuggestions','requires','low','acceptAllSuggestions','chain','addMarker:suggestion','getFirstRange','isExternal','find','markerReady','howMany','setTo','stop','return','_registerBlockAttribute','isInsideObject','forward','position','_addSuggestionMarker','isAtEnd','_cutOutSuggestionMarker','track-changes-enable-command-twice','dataReady','getRanges','commands','_addThreadToSuggestion','removeMarkers','meta','getItems','_isBlockAttribute','getLastMatchingPosition','suggestionLoaded','getContainedElement','moveTargetPosition','_isForcedDefaultExecutionBlock','acceptSelectedSuggestions','dataToMarker','insertion:join','LEAVE','_adapter','clone','attributes','_rangeIsInLocalUserInsertion','never','attributeNewValue','newValue','markers','update:suggestion','addComment','editor','applyOperation','addMarkerName','attributeOldValue','backward','getSuggestionCallback','sort','newName','filter','_refreshSuggestionsChain','nodeAfter','removeMarker','addHighlight','removed','markerNameToElements','attributeKey','isInContent','change:data','formatInline:accept','head','assign','@external','getUser','groupId','getSuggestion','refresh','formatBlock:','isAfter','end','isIntersecting','values','addMarker:suggestion:formatBlock','then','bindElementToMarker','config','clear','_getExternalAuthor','isLimit','forEach','init','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','isNextTo','dataDowncast','isMultiRange','_findSuggestions','detach','locale','createRangeOn','toViewElement','isDocumentOperation','markDeletion','_saved','containerElement','_defaultCallbacks','marker-count','isAtStart'];(function(_0x3eb775,_0x3d2aef){const _0x24f21b=function(_0x2e6767){while(--_0x2e6767){_0x3eb775['push'](_0x3eb775['shift']());}};_0x24f21b(++_0x3d2aef);}(_0x3d2a,0x16b));const _0x24f2=function(_0x3eb775,_0x3d2aef){_0x3eb775=_0x3eb775-0x0;let _0x24f21b=_0x3d2a[_0x3eb775];return _0x24f21b;};import{Plugin as _0x357723,PendingActions as _0x4bdfad}from'ckeditor5/src/core';import{LiveRange as _0x353646}from'ckeditor5/src/engine';import{CKEditorError as _0x1937ba,uid as _0x4f0f07,priorities as _0x222b66,logWarning as _0x40d91e}from'ckeditor5/src/utils';import{toWidget as _0x1fcbde}from'ckeditor5/src/widget';import{Users as _0x98077b,hashObject as _0x232543,surroundingMarkersDetector as _0x492056}from'ckeditor5-collaboration/src/collaboration-core';import _0x2bfdb2 from'./commands/trackchangescommand';import _0x2a8fbb from'./commands/acceptsuggestioncommand';import _0x491c74 from'./commands/discardsuggestioncommand';import _0x547392 from'./commands/executeonallsuggestionscommand';import _0x13151f from'./commands/executeonselectedsuggestionscommand';import _0x897dd2 from'./suggestion';import _0x268df3 from'./suggestiondescriptionfactory';import _0x10ac8d from'./integrations/aiassistant';import _0x534c7c from'./integrations/alignment';import _0x4646e1 from'./integrations/basicstyles';import _0x28d659 from'./integrations/blockquote';import _0x171a31 from'./integrations/ckbox';import _0x2683ba from'./integrations/codeblock';import _0x16061c from'./integrations/comments';import _0x261a55 from'./integrations/deletecommand';import _0xdc7d3a from'./integrations/documentlist';import _0x34c47e from'./integrations/documentlistproperties';import _0x494961 from'./integrations/entercommand';import _0x688a2f from'./integrations/findandreplace';import _0x5667b0 from'./integrations/font';import _0xfbc7b9 from'./integrations/formatpainter';import _0x3b72ae from'./integrations/heading';import _0x184bd0 from'./integrations/highlight';import _0x387499 from'./integrations/horizontalline';import _0xfa4dcd from'./integrations/htmlembed';import _0x3bf7d7 from'./integrations/image';import _0x3aa902 from'./integrations/imagereplace';import _0x3ce75e from'./integrations/imagestyle';import _0x3d0d4f from'./integrations/importword';import _0x3d2af7 from'./integrations/indent';import _0x6ae1c4 from'./integrations/inputcommand';import _0x190643 from'./integrations/link';import _0x2a31bb from'./integrations/list';import _0x3fec6b from'./integrations/listproperties';import _0x744e7d from'./integrations/mediaembed';import _0x1de16c from'./integrations/mention';import _0x44510c from'./integrations/pagebreak';import _0x24dd38 from'./integrations/paragraph';import _0x561647 from'./integrations/removeformat';import _0x241604 from'./integrations/restrictededitingmode';import _0x43b96f from'./integrations/shiftentercommand';import _0xdfeb80 from'./integrations/standardeditingmode';import _0x701369 from'./integrations/style';import _0x8d2fc8 from'./integrations/table';import _0x2b2a5c from'./integrations/tablemergesplit';import _0x238db8 from'./integrations/tableheadings';import _0x2d1f31 from'./integrations/tableclipboard';import _0x31ff58 from'./integrations/tablecolumnresize';import _0x3c8e4e from'./integrations/template';import _0x300480 from'./integrations/tableofcontents';import _0x58f26c from'./integrations/title';import _0x36ea7d from'./integrations/undo';import _0x588a60 from'./integrations/tablecaption';import _0x4afdc0 from'./integrations/tableproperties';import{getTranslation as _0x46785b}from'./utils/common-translations';import{isEqual as _0x57a851,omit as _0x35f41d}from'lodash-es';export const renameAttributeKey=_0x24f2('0x66');export default class p extends _0x357723{static get[_0x24f2('0x121')](){return[_0x24f2('0x98'),_0x98077b,_0x4bdfad,_0x10ac8d,_0x534c7c,_0x4646e1,_0x28d659,_0x171a31,_0x2683ba,_0x16061c,_0x261a55,_0xdc7d3a,_0x34c47e,_0x494961,_0x688a2f,_0x5667b0,_0xfbc7b9,_0x3b72ae,_0x184bd0,_0x387499,_0xfa4dcd,_0x3bf7d7,_0x3ce75e,_0x3aa902,_0x3d0d4f,_0x3d2af7,_0x6ae1c4,_0x190643,_0x2a31bb,_0x3fec6b,_0x744e7d,_0x1de16c,_0x44510c,_0x24dd38,_0x561647,_0x241604,_0x43b96f,_0xdfeb80,_0x701369,_0x8d2fc8,_0x2b2a5c,_0x238db8,_0x588a60,_0x2d1f31,_0x31ff58,_0x300480,_0x4afdc0,_0x3c8e4e,_0x58f26c,_0x36ea7d];}static get['pluginName'](){return _0x24f2('0x117');}constructor(_0x3bbc2c){function _0x5396c1(_0x50b1b3){return _0x50b1b3[_0x24f2('0x2d')](_0x2308b6=>String[_0x24f2('0xa3')](_0x2308b6))[_0x24f2('0x17')]('');}super(_0x3bbc2c),this[_0x24f2('0x103')]=null,this['set'](_0x24f2('0xd0'),[]),this['on'](_0x24f2('0x1c'),(_0x577238,_0xc257d5,_0x52df2f,_0x3d626)=>{this[_0x24f2('0xa5')][_0x24f2('0x78')](()=>{for(const _0x38faa2 of[..._0x3d626,..._0x52df2f])this[_0x24f2('0xa5')][_0x24f2('0x14e')][_0x24f2('0x113')](_0x38faa2)&&_0x3bbc2c['editing'][_0x24f2('0x10f')](_0x38faa2);});}),this['_descriptionFactory']=new _0x268df3(this[_0x24f2('0x151')]['model'][_0x24f2('0x10b')],this[_0x24f2('0x151')][_0x24f2('0x5')]),this[_0x24f2('0x147')]=null,this['_suggestionFactory']=new Bt(this[_0x24f2('0x151')]),this[_0x24f2('0xa4')]=new Map(),this[_0x24f2('0x9c')]=_0x3bbc2c['plugins'][_0x24f2('0xb2')](_0x24f2('0x98')),this[_0x24f2('0xe6')]=new Set(),this['_model']=this[_0x24f2('0x151')][_0x24f2('0x48')],this[_0x24f2('0xcc')]=new WeakMap(),this[_0x24f2('0x142')]=!0x1,this[_0x24f2('0x8f')]=new Set([_0x24f2('0x66')]),this[_0x24f2('0x45')]=new Set(),_0x3bbc2c[_0x24f2('0x173')][_0x24f2('0x71')]('trackChanges.trackFormatChanges',_0x24f2('0x6e')),this['_trackFormatChanges']=_0x3bbc2c['config']['get'](_0x24f2('0x4b')),_0x3bbc2c[_0x24f2('0x173')][_0x24f2('0x71')](_0x24f2('0x68'),!0x0),this[_0x24f2('0x84')]=_0x3bbc2c[_0x24f2('0x173')]['get'](_0x24f2('0x68')),this[_0x24f2('0x10')]=new _0x2bfdb2(_0x3bbc2c,this[_0x24f2('0xe6')]),this[_0x24f2('0x9e')](),this[_0x5396c1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5396c1([0x34,0x30,0x34,0x36,0x32,0x34,0x32,0x34]);}[_0x24f2('0x178')](){const _0x3d7e7e=this[_0x24f2('0x151')],_0x486833=(_0x326ff3,_0x12c2ed)=>{if(_0x24f2('0x2e')!=_0x326ff3)return _0x24f2('0xa9')+_0x326ff3;const _0x326df0=_0x12c2ed[_0x24f2('0x111')]('|')[0x0];return this['_isBlockAttribute'](_0x326df0)?_0x24f2('0x10e'):'ck-suggestion-marker-formatInline';};_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))['markerToHighlight']({'model':_0x24f2('0x7f'),'view':_0x288293=>{const {id:_0x8c0e63,type:_0x9ad9d2,subType:_0x205f78}=this[_0x24f2('0xe7')](_0x288293[_0x24f2('0x6f')]),_0x245f9f=[_0x24f2('0x5a'),_0x486833(_0x9ad9d2,_0x205f78)];let _0x4bc2eb=0xbb8;return this[_0x24f2('0xd0')][_0x24f2('0x105')](_0x288293[_0x24f2('0x6f')])&&(_0x245f9f[_0x24f2('0x44')](_0x24f2('0xb9')),_0x4bc2eb=0xbc2),_0x24f2('0xa8')==_0x9ad9d2&&(_0x4bc2eb+=0x5),{'classes':_0x245f9f,'attributes':{'data-suggestion':_0x8c0e63},'priority':_0x4bc2eb};}}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x1'))[_0x24f2('0x14')](_0x30c8a2=>{_0x30c8a2['on'](_0x24f2('0x125'),(_0x10e54c,_0xa15bfe,_0x2432da)=>{if(!_0x2432da[_0x24f2('0x22')]['showSuggestionHighlights'])return;const _0x17b0b9=_0xa15bfe[_0x24f2('0x65')];if(!_0x17b0b9)return;const _0x140307=_0x2432da[_0x24f2('0x80')]['toViewElement'](_0x17b0b9);_0x3d7e7e['model'][_0x24f2('0x10b')][_0x24f2('0x59')](_0x17b0b9)&&_0x140307&&!_0x140307[_0x24f2('0xfa')]('widget')&&_0x140307['is'](_0x24f2('0xb'))&&_0x1fcbde(_0x140307,_0x2432da[_0x24f2('0x43')]);},{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x1'))[_0x24f2('0xb4')]({'model':'suggestion','view':(_0x2780a3,_0x29be78)=>{if(!_0x29be78[_0x24f2('0x22')]['showSuggestionHighlights'])return null;const {type:_0x30ba0d,subType:_0x245b0f}=this['_splitMarkerName'](_0x2780a3[_0x24f2('0x6f')]);return{'classes':['ck-suggestion-marker',_0x486833(_0x30ba0d,_0x245b0f)],'priority':0xbb8};}});const _0x46eefa=({showActiveMarkers:_0x5c8c4e=!0x0,isAttributeSuggestion:_0x920ba4=!0x1}={})=>(_0x1b3e5b,_0x47180e,_0x364709)=>{if(!_0x47180e[_0x24f2('0x65')])return;const {id:_0x42d753}=this[_0x24f2('0xe7')](_0x47180e['markerName']);if(_0x920ba4){const _0x55ce5f=Pt(this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x42d753));if(!this[_0x24f2('0x13d')](_0x55ce5f))return;}if(_0x47180e[_0x24f2('0x65')]['is'](_0x24f2('0x69')))return void _0x364709[_0x24f2('0xa1')][_0x24f2('0x47')](_0x47180e['item'],_0x1b3e5b[_0x24f2('0xf9')]);const _0x952d78=_0x364709[_0x24f2('0x80')][_0x24f2('0x7')](_0x47180e[_0x24f2('0x65')]);if(_0x47180e[_0x24f2('0x65')]['is']('element')&&_0x3d7e7e['model'][_0x24f2('0x10b')][_0x24f2('0xe2')](_0x47180e[_0x24f2('0x65')])&&!_0x952d78[_0x24f2('0xfa')](_0x24f2('0x15d'))){_0x364709[_0x24f2('0x43')]['addClass']([_0x24f2('0x5a'),_0x24f2('0x10e')],_0x952d78),_0x364709[_0x24f2('0x43')][_0x24f2('0x2b')]('data-suggestion',_0x42d753,_0x952d78),_0x364709[_0x24f2('0x80')][_0x24f2('0x172')](_0x952d78,_0x47180e[_0x24f2('0x6f')]),_0x5c8c4e&&(this[_0x24f2('0xd0')][_0x24f2('0x105')](_0x47180e[_0x24f2('0x6f')])?_0x364709[_0x24f2('0x43')][_0x24f2('0x8e')](_0x24f2('0xb9'),_0x952d78):_0x364709['writer']['removeClass'](_0x24f2('0xb9'),_0x952d78));for(const _0x2075d6 of _0x3d7e7e[_0x24f2('0x48')][_0x24f2('0xaa')](_0x47180e[_0x24f2('0x65')])[_0x24f2('0x13c')]())_0x364709[_0x24f2('0xa1')][_0x24f2('0x47')](_0x2075d6,_0x1b3e5b[_0x24f2('0xf9')]);_0x364709[_0x24f2('0xa1')][_0x24f2('0x47')](_0x47180e[_0x24f2('0x65')],_0x1b3e5b[_0x24f2('0xf9')]);}};_0x3d7e7e['conversion']['for'](_0x24f2('0x1'))[_0x24f2('0x14')](_0x13775d=>{_0x13775d['on'](_0x24f2('0x170'),(_0x24bbe2,_0x2a2a9b,_0x2285f1)=>{_0x2285f1['options'][_0x24f2('0x34')]&&_0x46eefa({'showActiveMarkers':!0x1})(_0x24bbe2,_0x2a2a9b,_0x2285f1);},{'priority':_0x24f2('0xff')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x1'))['add'](_0x554ac7=>{_0x554ac7['on'](_0x24f2('0xd6'),(_0x2b6d70,_0x51d725,_0x3040b3)=>{_0x3040b3['options'][_0x24f2('0x34')]&&_0x46eefa({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b6d70,_0x51d725,_0x3040b3);},{'priority':_0x24f2('0xff')});}),_0x3d7e7e['conversion'][_0x24f2('0x92')](_0x24f2('0x1'))[_0x24f2('0x29')]({'model':_0x24f2('0x7f'),'view':(_0x2eb972,_0x50ca19)=>_0x50ca19[_0x24f2('0x22')][_0x24f2('0x34')]?null:{'group':_0x24f2('0x7f'),'name':_0x2eb972[_0x24f2('0xe5')](0xb)}}),_0x3d7e7e[_0x24f2('0xb5')]['for'](_0x24f2('0x35'))[_0x24f2('0x58')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x36c841,{writer:_0x24d5d3})=>{let _0x10b0d1=_0x24f2('0xca')+_0x36c841['getAttribute'](_0x24f2('0x54'))+':'+_0x36c841[_0x24f2('0x50')]('id');return _0x36c841['getAttribute'](_0x24f2('0xd'))&&(_0x10b0d1+=':'+_0x36c841['getAttribute'](_0x24f2('0xd'))),_0x24d5d3['createElement'](_0x24f2('0x3a'),{'data-name':_0x10b0d1});}}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x35'))[_0x24f2('0x144')]({'view':_0x24f2('0x7f')}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))[_0x24f2('0x14')](_0x3351be=>{_0x3351be['on']('addMarker:suggestion:formatBlock',_0x46eefa(),{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')]['for'](_0x24f2('0x49'))[_0x24f2('0x14')](_0x130665=>{_0x130665['on'](_0x24f2('0xd6'),_0x46eefa({'isAttributeSuggestion':!0x0}),{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))[_0x24f2('0x14')](_0xfe60d2=>{_0xfe60d2['on']('removeMarker:suggestion:formatBlock',(_0x7f5072,_0x1843ce,_0x43f96a)=>{const _0x9f7b2b=_0x43f96a[_0x24f2('0x80')]['markerNameToElements'](_0x1843ce[_0x24f2('0x6f')]);if(_0x9f7b2b)for(const _0x15319d of _0x9f7b2b)_0x15319d[_0x24f2('0xfa')](_0x24f2('0x15d'))||(_0x43f96a[_0x24f2('0x43')]['removeClass']([_0x24f2('0x5a'),_0x24f2('0x10e'),_0x24f2('0xb9')],_0x15319d),_0x43f96a[_0x24f2('0x43')]['removeAttribute'](_0x24f2('0x4f'),_0x15319d),_0x43f96a[_0x24f2('0x80')][_0x24f2('0x5c')](_0x15319d,_0x1843ce[_0x24f2('0x6f')]));},{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))[_0x24f2('0x14')](_0x25a72a=>{_0x25a72a['on'](_0x24f2('0xf4'),(_0x393c93,_0x1ab11b,_0x5a1180)=>{const _0x2cf71d=_0x5a1180[_0x24f2('0x80')][_0x24f2('0x15f')](_0x1ab11b[_0x24f2('0x6f')]);if(!_0x2cf71d)return;const {id:_0x7974d1}=this[_0x24f2('0xe7')](_0x1ab11b[_0x24f2('0x6f')]),_0x285803=Pt(this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x7974d1));if(this[_0x24f2('0x13d')](_0x285803))for(const _0x16fee3 of _0x2cf71d)_0x16fee3[_0x24f2('0xfa')](_0x24f2('0x15d'))||(_0x5a1180[_0x24f2('0x43')]['removeClass']([_0x24f2('0x5a'),_0x24f2('0x10e'),_0x24f2('0xb9')],_0x16fee3),_0x5a1180['writer'][_0x24f2('0xc2')]('data-suggestion',_0x16fee3),_0x5a1180['mapper']['unbindElementFromMarkerName'](_0x16fee3,_0x1ab11b[_0x24f2('0x6f')]));},{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0xf7')](_0x3bf2fa=>{let _0x101e08=!0x1;const _0x8e5228=Array[_0x24f2('0x51')](_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0x39')]['getChangedMarkers']()),_0x25cb92=new Set();for(const {name:_0x528d21,data:_0x55e019}of _0x8e5228){const {group:_0x20b5e2,type:_0x2afee4,subType:_0x596c61,id:_0x22f1ed}=this[_0x24f2('0xe7')](_0x528d21);if(_0x24f2('0x7f')!==_0x20b5e2)continue;const _0x1bd4ce=this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x22f1ed);if(null!=_0x55e019[_0x24f2('0xec')]){_0x24f2('0x11e')==_0x2afee4&&(_0x101e08=_0x101e08||Et(_0x55e019['newRange'],_0x528d21,_0x3bf2fa,_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x10b')]));const _0x31023d=_0x24f2('0x2e')==_0x2afee4&&this[_0x24f2('0x13d')](_0x596c61[_0x24f2('0x111')]('|')[0x0]);if(_0x55e019[_0x24f2('0xec')][_0x24f2('0x46')]||'$graveyard'==_0x55e019[_0x24f2('0xec')][_0x24f2('0x2f')][_0x24f2('0x32')]||_0x24f2('0x3f')==_0x2afee4&&!jt(_0x55e019[_0x24f2('0xec')])||_0x31023d&&!jt(_0x55e019[_0x24f2('0xec')])||_0x24f2('0xa8')==_0x2afee4&&!(!xt(_0x5d1148=_0x55e019['newRange'])&&!function(_0x58e42f){return _0x58e42f[_0x24f2('0x83')][_0x24f2('0x112')]==_0x58e42f[_0x24f2('0x16d')][_0x24f2('0x9a')]&&_0x58e42f[_0x24f2('0x83')][_0x24f2('0x133')];}(_0x5d1148)))_0x3bf2fa[_0x24f2('0x15c')](_0x528d21),_0x101e08=!0x0;else{if(!_0x1bd4ce||!_0x1bd4ce['isInContent'])continue;_0x25cb92[_0x24f2('0x14')](_0x1bd4ce);}}}var _0x5d1148;return _0x25cb92['size']>0x0&&(_0x101e08=!!this[_0x24f2('0x1b')](_0x25cb92)||_0x101e08),_0x101e08;}),_0x3d7e7e[_0x24f2('0x48')]['document'][_0x24f2('0xf7')](_0x56a994=>{let _0x21cab6=!0x1;for(const _0x476cba of _0x3d7e7e['model']['document'][_0x24f2('0x39')][_0x24f2('0xbf')]())if(_0x24f2('0x67')==_0x476cba[_0x24f2('0x27')])for(const _0x3984af of this[_0x24f2('0xa4')][_0x24f2('0x16f')]()){if(_0x3984af[_0x24f2('0x2')]||!_0x3984af[_0x24f2('0x161')])continue;const _0x1a22b1=_0x24f2('0x3f')==_0x3984af['type'],_0x442043=Pt(_0x3984af),_0x4ba761=_0x442043&&this[_0x24f2('0x13d')](_0x442043);if(!_0x1a22b1&&!_0x4ba761)continue;const _0x4eba95=_0x3984af[_0x24f2('0x126')]();if(_0x4eba95[_0x24f2('0x83')]['parent']!=_0x4eba95[_0x24f2('0x16d')]['parent']&&!_0x4eba95[_0x24f2('0x16d')][_0x24f2('0x133')]){const _0x5b0d83=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x79')](_0x4eba95[_0x24f2('0x83')]['nodeAfter'],_0x24f2('0x16d')),_0xcb332e=_0x3d7e7e['model']['createRange'](_0x4eba95[_0x24f2('0x83')],_0x5b0d83);_0x56a994[_0x24f2('0x10a')](_0x3984af[_0x24f2('0x11a')](),{'range':_0xcb332e}),_0x21cab6=!0x0;}}return _0x21cab6;}),_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0xf7')](_0x183432=>this[_0x24f2('0xcb')](_0x183432)),_0x3d7e7e['model'][_0x24f2('0x6b')]['registerPostFixer'](_0x32257f=>!_0x32257f[_0x24f2('0xc3')][_0x24f2('0x70')]&&this['_processAttributeSuggestions'](_0x32257f)),_0x3d7e7e[_0x24f2('0x48')]['markers']['on'](_0x24f2('0x14f'),(_0x305b38,_0x25f289,_0x87de23)=>{if(null==_0x87de23){const {id:_0xbd01a8}=this[_0x24f2('0xe7')](_0x25f289[_0x24f2('0xf9')]),_0x2ff3ce=this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0xbd01a8);_0x2ff3ce&&_0x2ff3ce[_0x24f2('0x153')](_0x25f289[_0x24f2('0xf9')]);}}),_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')]['on'](_0x24f2('0x162'),()=>{const _0x40dab7=Array[_0x24f2('0x51')](_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0x39')]['getChangedMarkers']())[_0x24f2('0x159')](_0x476e4b=>'suggestion'===this[_0x24f2('0xe7')](_0x476e4b[_0x24f2('0xf9')])[_0x24f2('0xf2')]);if(0x0===_0x40dab7[_0x24f2('0xe8')])return;_0x40dab7[_0x24f2('0x157')]((_0x56ba5b,_0x59a881)=>{const _0x50bcf1=_0x56ba5b[_0x24f2('0x3e')][_0x24f2('0x62')],_0x2fc0f8=_0x59a881[_0x24f2('0x3e')][_0x24f2('0x62')];return null===_0x50bcf1&&null===_0x2fc0f8?0x0:null===_0x50bcf1&&null!==_0x2fc0f8?-0x1:null!==_0x50bcf1&&null===_0x2fc0f8?0x1:_0x50bcf1[_0x24f2('0x83')][_0x24f2('0xae')](_0x2fc0f8[_0x24f2('0x83')])?-0x1:0x1;});const _0x528952=new Set(),_0x4f5c38=new Set();for(const {name:_0x3e4282,data:_0x45cbb7}of _0x40dab7){const {id:_0x37b328}=this[_0x24f2('0xe7')](_0x3e4282);if(null===_0x45cbb7[_0x24f2('0x62')]){const _0x29401e=this[_0x24f2('0x61')](_0x3e4282);_0x4f5c38[_0x24f2('0x14')](_0x29401e);}else{const _0x19d0e2=this[_0x24f2('0xa4')]['get'](_0x37b328);null!==_0x45cbb7[_0x24f2('0xec')]||_0x19d0e2[_0x24f2('0x161')]?(_0x528952[_0x24f2('0x14')](_0x19d0e2[_0x24f2('0x164')]),_0x4f5c38[_0x24f2('0x14')](_0x19d0e2)):this[_0x24f2('0xe4')](_0x19d0e2);}}_0x4f5c38['size']>0x0&&this[_0x24f2('0x15a')](_0x4f5c38);for(const _0x42eb06 of _0x528952)this[_0x24f2('0x100')](_0x24f2('0xa6'),_0x42eb06);}),_0x3d7e7e[_0x24f2('0x48')]['on'](_0x24f2('0x152'),(_0x5c42d3,_0x20a01f)=>{const _0x2eb888=_0x20a01f[0x0];if(!this[_0x24f2('0xa4')]['size'])return;if(!_0x2eb888[_0x24f2('0x8')])return;if(_0x2eb888[_0x24f2('0xc3')][_0x24f2('0xf')]||!_0x2eb888[_0x24f2('0xc3')]['isLocal'])return;let _0x1bd635,_0x3e61ed;switch(_0x2eb888[_0x24f2('0x27')]){case _0x24f2('0x67'):_0x1bd635=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x79')](_0x2eb888[_0x24f2('0x131')]),_0x3e61ed=_0x1bd635['getShiftedBy'](_0x2eb888[_0x24f2('0x12a')]);break;case _0x24f2('0x111'):_0x1bd635=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x79')](_0x2eb888[_0x24f2('0xc6')]),_0x3e61ed=_0x3d7e7e['model'][_0x24f2('0x79')](_0x2eb888[_0x24f2('0x141')]);break;case _0x24f2('0x63'):_0x1bd635=_0x3d7e7e[_0x24f2('0x48')]['createPositionAt'](_0x2eb888[_0x24f2('0x101')]),_0x3e61ed=_0x1bd635[_0x24f2('0x82')](_0x2eb888['howMany']);break;default:return;}const _0x563602=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x5d')](_0x1bd635,_0x3e61ed);_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x78')](()=>{for(const {suggestion:_0x3ba849,meta:_0x1d65cc}of this[_0x24f2('0x3')](_0x563602)){if(_0x3ba849['isMultiRange'])continue;if(_0x24f2('0x11e')==_0x3ba849['type'])continue;const _0x4f43e3=Pt(_0x3ba849);if(_0x4f43e3&&this['_isBlockAttribute'](_0x4f43e3)&&_0x24f2('0x111')!=_0x2eb888['type'])continue;const _0x5d8a26=_0x3ba849['data']&&_0x3ba849[_0x24f2('0x3e')][_0x24f2('0xa7')];('formatBlock'!=_0x3ba849['type']||'split'==_0x2eb888[_0x24f2('0x27')]&&!_0x5d8a26)&&(_0x1d65cc[_0x24f2('0x7c')]||_0x24f2('0x94')==_0x3ba849[_0x24f2('0x27')]&&_0x1d65cc['isOwn']||_0x3ba849[_0x24f2('0x126')]()[_0x24f2('0x114')](_0x563602)&&this[_0x24f2('0xfe')](_0x3ba849,_0x1bd635,_0x3e61ed));}});},{'priority':_0x24f2('0xb0')}),_0x3d7e7e['model']['on']('deleteContent',(_0x548fe5,_0x3501cc)=>{const _0x16855e=_0x3501cc[0x0],_0x2b8198=_0x3501cc[0x1];if(_0x2b8198&&_0x2b8198[_0x24f2('0xe9')])return;if(this[_0x24f2('0x142')])return;if(!this[_0x24f2('0x10')]['value'])return;if(_0x16855e[_0x24f2('0x46')])return;const _0x128ec6=_0x3d7e7e[_0x24f2('0x48')]['schema'],{start:_0x29ebff,end:_0x5ac4e5}=_0x16855e[_0x24f2('0x126')](),_0x893621=_0x29ebff[_0x24f2('0x15b')]&&_0x128ec6[_0x24f2('0x176')](_0x29ebff['nodeAfter'])?null:_0x128ec6[_0x24f2('0x7d')](_0x29ebff,_0x24f2('0x130')),_0x6fc348=_0x5ac4e5[_0x24f2('0x9a')]&&_0x128ec6[_0x24f2('0x176')](_0x5ac4e5[_0x24f2('0x9a')])?null:_0x128ec6[_0x24f2('0x7d')](_0x5ac4e5,_0x24f2('0x155')),_0x4dc869=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x5d')](_0x893621?_0x893621[_0x24f2('0x83')]:_0x29ebff,_0x6fc348?_0x6fc348['end']:_0x5ac4e5);_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x78')](_0xf15765=>{this[_0x24f2('0x9')](_0x4dc869);const _0x2d63e1=_0x3d7e7e['model'][_0x24f2('0x10b')]['getNearestSelectionRange'](_0x4dc869['start']);_0x16855e['is']('documentSelection')?_0xf15765[_0x24f2('0xc0')](_0x2d63e1):_0x16855e[_0x24f2('0x12b')](_0x2d63e1);}),_0x548fe5['stop']();},{'priority':_0x222b66[_0x24f2('0xab')]+0xa}),_0x3d7e7e['model']['on']('insertContent',(_0x35b7f0,_0x506a41)=>{const _0x1941f4=_0x506a41[_0x506a41[_0x24f2('0xe8')]-0x1];_0x1941f4&&_0x1941f4[_0x24f2('0xe9')]||this[_0x24f2('0x142')]||this[_0x24f2('0x10')][_0x24f2('0x1d')]&&(_0x3d7e7e['model'][_0x24f2('0x78')](()=>{let _0x4b9b28=_0x3d7e7e['model']['insertContent'](_0x506a41[0x0],_0x506a41[0x1],_0x506a41[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b9b28)return;_0x35b7f0[_0x24f2('0x12d')]=_0x4b9b28[_0x24f2('0x148')]();const _0x36c102=_0x4b9b28[_0x24f2('0x16d')][_0x24f2('0x9a')],_0x3fb381=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x10b')];_0x36c102&&_0x3fb381[_0x24f2('0xe2')](_0x36c102)&&!_0x3fb381[_0x24f2('0x59')](_0x36c102)&&(_0x4b9b28=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x5d')](_0x4b9b28[_0x24f2('0x83')],_0x3d7e7e['model'][_0x24f2('0x79')](_0x36c102,_0x24f2('0x16d')))),this[_0x24f2('0x2c')](_0x4b9b28);}),_0x35b7f0['stop']());},{'priority':_0x24f2('0x8a')}),this[_0x24f2('0x151')]['commands'][_0x24f2('0x14')](_0x24f2('0x11d'),this[_0x24f2('0x10')]),this['enableCommand']('trackChanges');const _0x3d55ff=new _0x2a8fbb(_0x3d7e7e,this['_suggestions']);_0x3d7e7e[_0x24f2('0x138')]['add'](_0x24f2('0xf0'),_0x3d55ff),this[_0x24f2('0x107')]('acceptSuggestion');const _0x599473=new _0x491c74(_0x3d7e7e,this['_suggestions']);_0x3d7e7e['commands'][_0x24f2('0x14')](_0x24f2('0x76'),_0x599473),this[_0x24f2('0x107')]('discardSuggestion'),_0x3d7e7e['commands']['add'](_0x24f2('0x123'),new _0x547392(_0x3d7e7e,_0x3d55ff,this[_0x24f2('0xa4')])),this[_0x24f2('0x107')](_0x24f2('0x123')),_0x3d7e7e['commands']['add'](_0x24f2('0x56'),new _0x547392(_0x3d7e7e,_0x599473,this[_0x24f2('0xa4')])),this[_0x24f2('0x107')](_0x24f2('0x56')),_0x3d7e7e[_0x24f2('0x138')][_0x24f2('0x14')](_0x24f2('0x143'),new _0x13151f(_0x3d7e7e,_0x3d55ff,this[_0x24f2('0xa4')])),this['enableCommand'](_0x24f2('0x143')),_0x3d7e7e[_0x24f2('0x138')][_0x24f2('0x14')](_0x24f2('0x21'),new _0x13151f(_0x3d7e7e,_0x599473,this['_suggestions'])),this['enableCommand'](_0x24f2('0x21'));const _0x33b409=_0x3d7e7e[_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x98'));this['listenTo'](_0x33b409,_0x24f2('0x150'),(_0x2bbd09,{threadId:_0x5c1d9c})=>{const _0x52eae4=this['_suggestions']['get'](_0x5c1d9c);_0x52eae4&&_0x52eae4[_0x24f2('0x10c')]&&0x1===_0x52eae4[_0x24f2('0x10c')][_0x24f2('0xe8')]&&this[_0x24f2('0x5b')](_0x5c1d9c,{'hasComments':!0x0});},{'priority':_0x24f2('0x122')}),this['listenTo'](_0x33b409,'removeComment',(_0x56d7ee,{threadId:_0x5249d4})=>{const _0x4149ea=this['_suggestions'][_0x24f2('0xb2')](_0x5249d4);_0x4149ea&&_0x4149ea[_0x24f2('0x10c')]&&!_0x4149ea[_0x24f2('0x10c')][_0x24f2('0xe8')]&&this[_0x24f2('0x5b')](_0x5249d4,{'hasComments':!0x1});},{'priority':'low'});}set[_0x24f2('0xb7')](_0x3a7ec0){if(this[_0x24f2('0x147')])throw new _0x1937ba(_0x24f2('0xb1'),this);this[_0x24f2('0x147')]=_0x3a7ec0;}get[_0x24f2('0xb7')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x242f4c=!0x1,toJSON:_0x3f1720=!0x1}={}){const _0x4d4841=[];for(const _0x3e3084 of this[_0x24f2('0xa4')]['values']())_0x242f4c&&!_0x3e3084[_0x24f2('0x161')]||_0x4d4841[_0x24f2('0x44')](_0x3e3084);return _0x3f1720?_0x4d4841[_0x24f2('0x2d')](_0x59b628=>_0x59b628['toJSON']()):_0x4d4841;}[_0x24f2('0x169')](_0x4d4f4e){const _0x5c0d2a=this[_0x24f2('0xa4')]['get'](_0x4d4f4e);if(!_0x5c0d2a)throw new _0x1937ba('track-changes-suggestion-not-found',this);return _0x5c0d2a;}['hasSuggestion'](_0x13011e){return this[_0x24f2('0xa4')][_0x24f2('0x113')](_0x13011e);}[_0x24f2('0xdf')](_0x5210e9){const {authorId:_0x572429,id:_0x182bca,attributes:_0x1e43b2}=_0x5210e9,[_0x32d4d4,_0x1fdbf8]=_0x5210e9[_0x24f2('0x27')][_0x24f2('0x111')](':'),_0x30d39d=this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x182bca)||this[_0x24f2('0xc8')](_0x32d4d4,_0x1fdbf8,_0x182bca,_0x572429,_0x1e43b2);if(this[_0x24f2('0x139')](_0x30d39d),this[_0x24f2('0xf1')](_0x30d39d,_0x32d4d4,_0x1fdbf8||null,_0x572429),_0x30d39d[_0x24f2('0x115')]=_0x5210e9['createdAt'],_0x30d39d[_0x24f2('0xb8')]=!0x0,_0x1e43b2&&_0x1e43b2[_0x24f2('0x166')]){const _0x7df383=_0x1e43b2[_0x24f2('0x166')],_0x4ca1e6=this[_0x24f2('0x175')](_0x7df383[_0x24f2('0x52')]);_0x30d39d[_0x24f2('0xdb')]=_0x7df383[_0x24f2('0x115')],_0x30d39d[_0x24f2('0x3d')]=_0x4ca1e6,_0x30d39d[_0x24f2('0x127')]=!0x0;}else _0x30d39d[_0x24f2('0xdb')]=_0x5210e9[_0x24f2('0x115')];switch(_0x5210e9[_0x24f2('0x3e')]&&(_0x30d39d[_0x24f2('0x3e')]=_0x5210e9[_0x24f2('0x3e')]),_0x5210e9['attributes']&&(_0x30d39d[_0x24f2('0x149')]=_0x5210e9[_0x24f2('0x149')]),this[_0x24f2('0x147')]&&this[_0x24f2('0x147')][_0x24f2('0xd7')]||(_0x30d39d[_0x24f2('0xa')]=!0x0),this[_0x24f2('0xcc')][_0x24f2('0xb2')](_0x30d39d)){case _0x24f2('0x19'):this[_0x24f2('0xcc')]['set'](_0x30d39d,'dataReady');break;case _0x24f2('0x129'):_0x30d39d[_0x24f2('0x161')]?(this[_0x24f2('0x15a')](new Set([_0x30d39d])),this[_0x24f2('0x1b')](new Set([_0x30d39d])),this[_0x24f2('0xcc')][_0x24f2('0x13')](_0x30d39d,_0x24f2('0xfc')),this[_0x24f2('0x100')](_0x24f2('0x13f'),_0x30d39d)):this[_0x24f2('0xcc')]['set'](_0x30d39d,_0x24f2('0x15e'));}return _0x30d39d;}[_0x24f2('0xf0')](_0xede858){this[_0x24f2('0xe9')](()=>{this['editor'][_0x24f2('0x48')][_0x24f2('0x78')](()=>{for(const _0x18ede6 of _0xede858[_0x24f2('0xda')]())_0x18ede6['accept']();});});}['discardSuggestion'](_0x48ea0a){this['forceDefaultExecution'](()=>{this[_0x24f2('0x151')][_0x24f2('0x48')]['change'](()=>{for(const _0x58a15b of _0x48ea0a[_0x24f2('0xda')]())_0x58a15b[_0x24f2('0xf8')]();});});}[_0x24f2('0x107')](_0xa5a271,_0xb8d8b9){const _0x1e7569=this['editor']['commands']['get'](_0xa5a271);if(!_0x1e7569)throw new _0x1937ba(_0x24f2('0x4c'),this,{'commandName':_0xa5a271});if(this[_0x24f2('0xe6')][_0x24f2('0x113')](_0x1e7569))throw new _0x1937ba(_0x24f2('0x135'),this,{'commandName':_0xa5a271});this['_enabledCommands'][_0x24f2('0x14')](_0x1e7569),_0xb8d8b9&&_0x1e7569['on']('execute',(_0x77b402,_0x34a9a4)=>{this[_0x24f2('0x10')]['value']&&(this[_0x24f2('0x142')]||(_0x34a9a4[_0x24f2('0xe8')]>0x0&&_0x34a9a4[_0x34a9a4[_0x24f2('0xe8')]-0x1]&&_0x34a9a4[_0x34a9a4[_0x24f2('0xe8')]-0x1]['forceDefaultExecution']?_0x34a9a4[_0x24f2('0xbc')]():(_0x77b402[_0x24f2('0x12d')]=_0xb8d8b9((..._0x882fef)=>_0x1e7569[_0x24f2('0x16')](..._0x882fef,{'forceDefaultExecution':!0x0}),..._0x34a9a4),_0x77b402[_0x24f2('0x12c')]())));},{'priority':'high'});}[_0x24f2('0xe9')](_0x165c2d){let _0x399299,_0x1d2878;const _0x3d0f19=this['_isForcedDefaultExecutionBlock'];this[_0x24f2('0x142')]=!0x0;try{_0x399299=_0x165c2d();}catch(_0x3bd8c4){_0x1d2878=_0x3bd8c4;}return _0x3d0f19||(this[_0x24f2('0x142')]=!0x1),_0x1d2878&&_0x1937ba[_0x24f2('0x3c')](_0x1d2878,this),_0x399299;}['markInsertion'](_0x504c6b,_0x51eb86=null,_0x298b0a={}){if(_0x504c6b['isCollapsed'])return null;const _0x4c62f9=this['editor'][_0x24f2('0x4a')]['get']('Users')['me'];for(const {suggestion:_0x38ce83,meta:_0x5ab8fb}of this[_0x24f2('0x3')](_0x504c6b,_0x24f2('0x94')))if(_0x5ab8fb[_0x24f2('0xd3')]){if(!_0x5ab8fb[_0x24f2('0x0')]){if(_0x5ab8fb[_0x24f2('0x7c')]){if(!this[_0x24f2('0x84')]||!Gt(_0x38ce83,_0x298b0a))continue;return _0x38ce83;}if(Gt(_0x38ce83,_0x298b0a))return _0x38ce83;this[_0x24f2('0xfe')](_0x38ce83,_0x504c6b['start'],_0x504c6b['end']);break;}if(_0x51eb86==_0x38ce83[_0x24f2('0x15')]&&Gt(_0x38ce83,_0x298b0a)){const _0x1f3333=_0x38ce83[_0x24f2('0x126')]();return _0x1f3333['start'][_0x24f2('0xba')](_0x504c6b['end'])?this['_setSuggestionRange'](_0x38ce83,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x504c6b['start'],_0x1f3333[_0x24f2('0x16d')])):this[_0x24f2('0x18')](_0x38ce83,this['_model'][_0x24f2('0x5d')](_0x1f3333['start'],_0x504c6b[_0x24f2('0x16d')])),_0x38ce83;}}const _0x5ee35b=_0x4f0f07(),_0x3af831=_0x4c62f9['id'],_0x41c16b=_0x51eb86?_0x24f2('0x23')+_0x51eb86:_0x24f2('0x94'),_0x1650f9=this[_0x24f2('0xee')]({'id':_0x5ee35b,'type':_0x41c16b,'createdAt':new Date(),'authorId':_0x3af831,'attributes':_0x298b0a});return this[_0x24f2('0x132')](_0x41c16b,_0x5ee35b,_0x3af831,_0x504c6b),_0x1650f9;}[_0x24f2('0x40')](_0x1bbaea,_0x1e1778='multi',_0x112a7d={}){const _0x5c46b5=this[_0x24f2('0x151')][_0x24f2('0x4a')]['get']('Users')['me'],_0x1f63c8=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0x94'),_0x1e1778,_0x24f2('0x17'));for(const _0x57ae87 of this[_0x24f2('0x120')]())if(_0x57ae87[_0x24f2('0x3d')]['id']==_0x5c46b5['id']&&_0x24f2('0x94')==_0x57ae87['type']&&_0x57ae87['subType']==_0x1e1778&&Gt(_0x57ae87,_0x112a7d)&&(_0x1f63c8(_0x57ae87[_0x24f2('0x137')](),_0x1bbaea)||_0x1f63c8(_0x1bbaea,_0x57ae87[_0x24f2('0x137')]()))){for(const _0x64460d of _0x1bbaea)_0x57ae87[_0x24f2('0xd1')](_0x64460d);return _0x57ae87;}for(const {suggestion:_0x1154fc,meta:_0x218d9f}of this[_0x24f2('0x3')](_0x1bbaea,_0x24f2('0x94'))){if(!_0x218d9f[_0x24f2('0xd3')])continue;if(!this[_0x24f2('0x84')]&&_0x218d9f[_0x24f2('0x7c')])continue;if(!Gt(_0x1154fc,_0x112a7d))continue;let _0xca75d5=!0x0;for(const _0x52759a of _0x1154fc[_0x24f2('0x137')]())for(const _0xabe3ee of _0x1bbaea)if(!_0x52759a[_0x24f2('0x114')](_0xabe3ee)){_0xca75d5=!0x1;break;}if(_0xca75d5)return _0x1154fc;}const _0x1e4d36=_0x4f0f07(),_0x27dbcc=_0x5c46b5['id'],_0x341ac0=_0x24f2('0x23')+_0x1e1778,_0x1c4340=this[_0x24f2('0xee')]({'id':_0x1e4d36,'type':_0x341ac0,'createdAt':new Date(),'authorId':_0x27dbcc,'attributes':_0x112a7d});for(const _0x22499f of _0x1bbaea)this[_0x24f2('0x132')](_0x341ac0,_0x1e4d36,_0x27dbcc,_0x22499f,_0x897dd2['getMultiRangeId']());return _0x1c4340;}[_0x24f2('0xe1')](_0x4494b1,_0x5ba860,_0x2d5ab0=null,_0x30fae9={}){if(_0x2d5ab0=_0x2d5ab0||Rt(_0x5ba860),_0x4494b1[_0x24f2('0x46')])return null;if(_0x24f2('0x14b')===this['_trackFormatChanges']){const _0x97d4c1=this[_0x24f2('0x75')][_0x24f2('0x156')]('formatInline',_0x2d5ab0,_0x24f2('0xdd'));return this['forceDefaultExecution'](()=>_0x97d4c1([_0x4494b1],_0x5ba860,_0x30fae9)),null;}const _0x569a33=this[_0x24f2('0x151')]['plugins'][_0x24f2('0xb2')](_0x24f2('0x91'))['me'],_0x36035c=[];if(_0x24f2('0xa2')!==this[_0x24f2('0x77')])for(const {suggestion:_0x2882a5,meta:_0xa8eaa6}of this['_findSuggestions'](_0x4494b1,_0x24f2('0x94')))_0xa8eaa6['isOwn']&&!_0xa8eaa6[_0x24f2('0x12f')]&&_0x36035c[_0x24f2('0x44')](..._0x2882a5[_0x24f2('0x137')]());const _0x48c65a=function(_0x2f3372,_0x504635){const _0x9e9888=[];for(const _0x2250fd of _0x504635){const _0x196d47=_0x2f3372[_0x24f2('0xbe')](_0x2250fd);_0x196d47&&_0x9e9888[_0x24f2('0x44')](_0x196d47);}return _0x9e9888;}(_0x4494b1,_0x36035c),_0x51898a=function(_0x41b2f5,_0x4f4366){const _0x1c2295=[_0x41b2f5];for(const _0x27c9e0 of _0x4f4366){let _0x2fcaf2=0x0;for(;_0x2fcaf2<_0x1c2295['length'];){const _0x25e99e=_0x1c2295[_0x2fcaf2][_0x24f2('0x1f')](_0x27c9e0);_0x1c2295['splice'](_0x2fcaf2,0x1,..._0x25e99e),_0x2fcaf2+=_0x25e99e[_0x24f2('0xe8')];}}return _0x1c2295;}(_0x4494b1,_0x36035c);_0x48c65a[_0x24f2('0xe8')]&&this[_0x24f2('0xa5')][_0x24f2('0x78')](()=>{for(const _0xdcba75 of _0x48c65a){const _0x1e7ca7=this['_suggestionFactory'][_0x24f2('0x156')](_0x24f2('0x11e'),_0x2d5ab0,_0x24f2('0xdd'));this['forceDefaultExecution'](()=>_0x1e7ca7([_0xdcba75],_0x5ba860,_0x30fae9));}});for(const _0x24f103 of _0x51898a){let _0x1bb5cc=null,_0xde2737=_0x24f103['start'],_0x26ebfc=_0x24f103['end'];for(const {suggestion:_0x2e13a5,meta:_0x50aaaa}of this['_findSuggestions'](_0x24f103,_0x24f2('0x11e'))){if(!_0x50aaaa[_0x24f2('0xd3')])continue;if(_0x2e13a5[_0x24f2('0x15')]!=_0x2d5ab0)continue;if(!Gt(_0x2e13a5,_0x30fae9))continue;const _0x24e485=_0x2e13a5[_0x24f2('0x126')]();if(_0x24e485[_0x24f2('0x114')](_0x24f103,!0x0))return null;_0xde2737=_0xde2737[_0x24f2('0xae')](_0x24e485[_0x24f2('0x83')])?_0xde2737:_0x24e485[_0x24f2('0x83')],_0x26ebfc=_0x26ebfc[_0x24f2('0x16c')](_0x24e485[_0x24f2('0x16d')])?_0x26ebfc:_0x24e485['end'],_0x1bb5cc?_0x24e485['start'][_0x24f2('0xae')](_0x1bb5cc[_0x24f2('0x126')]()['start'])?(_0x1bb5cc[_0x24f2('0x13a')](),_0x1bb5cc=_0x2e13a5):_0x2e13a5[_0x24f2('0x13a')]():_0x1bb5cc=_0x2e13a5;}const _0x20af0a=this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0xde2737,_0x26ebfc);if(_0x1bb5cc)this['_setSuggestionRange'](_0x1bb5cc,_0x20af0a);else{const _0x4cc525=_0x4f0f07(),_0x47e1e1=_0x569a33['id'];this[_0x24f2('0xee')]({'id':_0x4cc525,'type':_0x24f2('0x8b')+_0x2d5ab0,'data':_0x5ba860,'createdAt':new Date(),'authorId':_0x47e1e1,'attributes':_0x30fae9}),this[_0x24f2('0x132')]('formatInline:'+_0x2d5ab0,_0x4cc525,_0x47e1e1,_0x20af0a);}}return null;}['markBlockFormat'](_0x91b2b9,_0x21c697,_0x33768c=[],_0x2c565f=null,_0x102371={}){_0x21c697[_0x24f2('0xc9')]||(_0x21c697[_0x24f2('0xc9')]=_0x21c697['commandName']),_0x21c697['multipleBlocks']=_0x91b2b9['is']('range'),_0x2c565f=_0x2c565f||Rt(_0x21c697);const _0x231b83=_0x33768c[_0x24f2('0x2d')](_0xe3c181=>Ut(_0xe3c181,this['_model'])),_0x1ad07e=_0x91b2b9['is']('range')?_0x91b2b9:Ut(_0x91b2b9,this[_0x24f2('0xa5')]);if('never'===this[_0x24f2('0x77')]){const _0x773c73=this[_0x24f2('0x75')]['getSuggestionCallback'](_0x24f2('0x3f'),_0x2c565f,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x773c73([_0x1ad07e],_0x21c697,_0x102371)),null;}_0x231b83['push'](_0x1ad07e);let _0x1c8335=!0x0;for(const _0x4c8f8c of _0x231b83)if(!this[_0x24f2('0x14a')](_0x4c8f8c)){_0x1c8335=!0x1;break;}if(_0x1c8335&&'always'!==this['_trackFormatChanges']){const _0x168c12=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0x3f'),_0x2c565f,'accept');return this[_0x24f2('0xe9')](()=>_0x168c12([_0x1ad07e],_0x21c697,_0x102371)),null;}let _0x1f9024=null,_0x5793dc=_0x1ad07e[_0x24f2('0x83')],_0x238642=_0x1ad07e[_0x24f2('0x16d')];for(const {suggestion:_0x41b517,meta:_0x1f62a8}of this[_0x24f2('0x3')](_0x1ad07e,_0x24f2('0x3f'))){if(!_0x1f62a8[_0x24f2('0xd3')])continue;if(_0x1f62a8[_0x24f2('0x0')]||_0x1f62a8[_0x24f2('0x7c')]||_0x1f62a8[_0x24f2('0x12f')])continue;if(_0x41b517[_0x24f2('0x3e')][_0x24f2('0xc9')]!=_0x21c697[_0x24f2('0xc9')])continue;if(!Gt(_0x41b517,_0x102371))continue;const _0xc9cc55=_0x41b517[_0x24f2('0x126')]();if(_0x41b517['subType']==_0x2c565f){if(_0xc9cc55['containsRange'](_0x1ad07e,!0x0))return null;_0x5793dc=_0x5793dc[_0x24f2('0xae')](_0xc9cc55[_0x24f2('0x83')])?_0x5793dc:_0xc9cc55['start'],_0x238642=_0x238642[_0x24f2('0x16c')](_0xc9cc55[_0x24f2('0x16d')])?_0x238642:_0xc9cc55[_0x24f2('0x16d')],_0x1f9024?_0xc9cc55[_0x24f2('0x83')][_0x24f2('0xae')](_0x1f9024[_0x24f2('0x126')]()[_0x24f2('0x83')])?(_0x1f9024[_0x24f2('0x13a')](),_0x1f9024=_0x41b517):_0x41b517[_0x24f2('0x13a')]():_0x1f9024=_0x41b517;}else{const _0x1319c8=_0x1ad07e[_0x24f2('0xbe')](_0xc9cc55);this[_0x24f2('0x134')](_0x41b517,_0x1319c8);}}const _0xc9b7b2=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'],_0x5c25db=_0x4f0f07(),_0x33e21e=_0xc9b7b2['id'];if(_0x1f9024)return this[_0x24f2('0x18')](_0x1f9024,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x5793dc,_0x238642)),_0x1f9024;{const _0x3636e5=this[_0x24f2('0xee')]({'id':_0x5c25db,'type':_0x24f2('0x16b')+_0x2c565f,'data':_0x21c697,'createdAt':new Date(),'authorId':_0x33e21e,'attributes':_0x102371});return this[_0x24f2('0x132')](_0x24f2('0x16b')+_0x2c565f,_0x5c25db,_0x33e21e,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x5793dc,_0x238642)),_0x3636e5;}}['markMultiRangeBlockFormat'](_0x21d96a,_0x38e2cd,_0x289ddc=[],_0x15f1a6=null,_0x1e894f={}){_0x38e2cd['formatGroupId']||(_0x38e2cd[_0x24f2('0xc9')]=_0x38e2cd[_0x24f2('0x95')]);const _0x20ea98=_0x21d96a[0x0];_0x38e2cd[_0x24f2('0xa7')]=_0x20ea98['is'](_0x24f2('0x53')),_0x15f1a6=_0x15f1a6||Rt(_0x38e2cd);const _0x275c9=_0x289ddc['map'](_0x47f531=>Ut(_0x47f531,this[_0x24f2('0xa5')])),_0x219d2c=_0x20ea98['is'](_0x24f2('0x53'))?_0x21d96a:_0x21d96a['map'](_0x320e95=>Ut(_0x320e95,this[_0x24f2('0xa5')]));if(_0x24f2('0x14b')===this[_0x24f2('0x77')]){const _0x1afa19=this[_0x24f2('0x75')]['getSuggestionCallback'](_0x24f2('0x3f'),_0x15f1a6,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x1afa19(_0x219d2c,_0x38e2cd,_0x1e894f)),null;}_0x275c9['push'](..._0x219d2c);let _0x1abbad=!0x0;for(const _0x34f9cb of _0x275c9)if(!this[_0x24f2('0x14a')](_0x34f9cb)){_0x1abbad=!0x1;break;}if(_0x1abbad&&_0x24f2('0xa2')!==this[_0x24f2('0x77')]){const _0x58a514=this[_0x24f2('0x75')][_0x24f2('0x156')]('formatBlock',_0x15f1a6,'accept');return this[_0x24f2('0xe9')](()=>_0x58a514(_0x219d2c,_0x38e2cd,_0x1e894f)),null;}const _0x4c84db=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'];for(const _0x18a24a of this[_0x24f2('0x120')]()){if(_0x18a24a[_0x24f2('0x3d')]['id']!=_0x4c84db['id'])continue;if(_0x24f2('0x3f')!=_0x18a24a[_0x24f2('0x27')]||_0x18a24a[_0x24f2('0x3e')][_0x24f2('0xc9')]!=_0x38e2cd[_0x24f2('0xc9')])continue;if(!Gt(_0x18a24a,_0x1e894f))continue;const _0x4eb0fe=_0x18a24a['subType']==_0x15f1a6;for(let _0x1eb591=0x0;_0x1eb591<_0x219d2c['length'];_0x1eb591++){const _0x5cffe0=_0x219d2c[_0x1eb591];for(const _0x97cfe6 of _0x18a24a[_0x24f2('0x7b')]()){const _0x424be7=_0x97cfe6[_0x24f2('0xcf')]();if(_0x5cffe0[_0x24f2('0xba')](_0x424be7)){_0x4eb0fe?(_0x219d2c[_0x24f2('0x9d')](_0x1eb591,0x1),_0x1eb591--):_0x18a24a[_0x24f2('0x15c')](_0x97cfe6[_0x24f2('0xf9')]);break;}}}}if(0x0==_0x219d2c[_0x24f2('0xe8')])return null;const _0x4e1433=this[_0x24f2('0x75')]['getSuggestionCallback']('formatBlock',_0x15f1a6,_0x24f2('0x17'));for(const _0x4e4345 of this[_0x24f2('0x120')]())if(_0x4e4345[_0x24f2('0x3d')]['id']==_0x4c84db['id']&&_0x24f2('0x3f')==_0x4e4345['type']&&_0x4e4345[_0x24f2('0x3e')][_0x24f2('0xc9')]==_0x38e2cd[_0x24f2('0xc9')]&&_0x4e4345[_0x24f2('0x15')]==_0x15f1a6&&Gt(_0x4e4345,_0x1e894f)&&(_0x4e1433(_0x4e4345[_0x24f2('0x137')](),_0x219d2c)||_0x4e1433(_0x219d2c,_0x4e4345[_0x24f2('0x137')]()))){for(const _0x5eec84 of _0x219d2c)_0x4e4345[_0x24f2('0xd1')](_0x5eec84);return _0x4e4345;}const _0x1a8453=_0x4f0f07(),_0x48f5f8=_0x4c84db['id'],_0x183f6d=_0x24f2('0x16b')+_0x15f1a6,_0x140a63=this[_0x24f2('0xee')]({'id':_0x1a8453,'type':_0x183f6d,'data':_0x38e2cd,'createdAt':new Date(),'authorId':_0x48f5f8,'attributes':_0x1e894f});for(const _0xcbdec0 of _0x219d2c)this['_addSuggestionMarker'](_0x183f6d,_0x1a8453,_0x48f5f8,_0xcbdec0,_0x897dd2[_0x24f2('0xea')]());return _0x140a63;}[_0x24f2('0x9')](_0x195652,_0x8bcf47=null,_0x5bde1b={}){if(_0x195652[_0x24f2('0x46')])return null;const _0x180d35=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'],_0x474b44=new _0x353646(_0x195652[_0x24f2('0x83')],_0x195652['end']);for(const {suggestion:_0x47671c,meta:_0x4852fe}of this[_0x24f2('0x3')](_0x474b44,'insertion'))if(_0x4852fe[_0x24f2('0xd3')]&&!_0x4852fe[_0x24f2('0x0')]){if(_0x47671c['isMultiRange']){const _0x1fdfbb=_0x47671c[_0x24f2('0x137')]()[_0x24f2('0x159')](_0x5c5b80=>_0x24f2('0x90')!=_0x5c5b80['root'][_0x24f2('0x32')]);_0x1fdfbb[_0x24f2('0x9f')](_0xf4717=>_0x474b44[_0x24f2('0x114')](_0xf4717,!0x0))&&_0x47671c[_0x24f2('0xf8')]();if(_0x1fdfbb[_0x24f2('0x11')](_0x7b6d40=>_0x7b6d40[_0x24f2('0x114')](_0x474b44,!0x0))){const _0x12f513=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x8bcf47,_0x24f2('0xdd'));return this['forceDefaultExecution'](()=>_0x12f513([_0x474b44],null,_0x5bde1b)),null;}}else{const _0x266473=_0x474b44['getIntersection'](_0x47671c['getFirstRange']());null!==_0x266473&&_0x47671c['_onDiscard']([_0x266473],null,_0x5bde1b);}}if(_0x474b44['detach'](),_0x474b44[_0x24f2('0x46')]||'$graveyard'==_0x474b44[_0x24f2('0x2f')][_0x24f2('0x32')])return null;let _0x39a79d=null,_0x428752=_0x474b44[_0x24f2('0x83')],_0x258bb3=_0x474b44[_0x24f2('0x16d')];const _0xba9af1=this[_0x24f2('0x3')](_0x474b44,'deletion');for(const {suggestion:_0x29e544,meta:_0x40c8d2}of _0xba9af1){const _0x14ca5f=this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x428752,_0x258bb3);if(_0x40c8d2[_0x24f2('0xd3')]&&(this['_mergeNestedSuggestions']||!_0x40c8d2[_0x24f2('0x7c')]&&!_0x40c8d2[_0x24f2('0x12f')])){if(_0x29e544[_0x24f2('0x2')]){if(!Gt(_0x29e544,_0x5bde1b))continue;let _0x1f5685=!0x0;for(const _0x928770 of _0x29e544[_0x24f2('0x137')]()){if(_0x928770[_0x24f2('0x114')](_0x14ca5f,!0x0))return _0x29e544;_0x14ca5f[_0x24f2('0x114')](_0x928770)||(_0x1f5685=!0x1);}_0x1f5685&&_0x29e544[_0x24f2('0xf8')]();}else{const _0x106dd4=_0x29e544[_0x24f2('0x126')]();if(_0x106dd4[_0x24f2('0x114')](_0x14ca5f,!0x0))return _0x29e544;if(!Gt(_0x29e544,_0x5bde1b)){_0x14ca5f[_0x24f2('0x114')](_0x106dd4)?_0x29e544[_0x24f2('0x13a')]():_0x106dd4[_0x24f2('0xdc')](_0x428752)?_0x428752=_0x106dd4[_0x24f2('0x16d')]:_0x106dd4['containsPosition'](_0x258bb3)&&(_0x258bb3=_0x106dd4['start']);continue;}_0x428752=_0x428752[_0x24f2('0xae')](_0x106dd4[_0x24f2('0x83')])?_0x428752:_0x106dd4[_0x24f2('0x83')],_0x258bb3=_0x258bb3[_0x24f2('0x16c')](_0x106dd4[_0x24f2('0x16d')])?_0x258bb3:_0x106dd4['end'],_0x5bde1b=Object[_0x24f2('0x165')]({},_0x29e544['attributes']),_0x39a79d?_0x106dd4[_0x24f2('0x83')][_0x24f2('0xae')](_0x39a79d['getFirstRange']()[_0x24f2('0x83')])?(_0x39a79d[_0x24f2('0x13a')](),_0x39a79d=_0x29e544):_0x29e544[_0x24f2('0x13a')]():_0x39a79d=_0x29e544;}}}if(_0x39a79d)return this['_setSuggestionRange'](_0x39a79d,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x428752,_0x258bb3)),_0x39a79d;{const _0x3b98cd=_0x4f0f07(),_0x36e1b5=this['_model']['createRange'](_0x428752,_0x258bb3),_0x496d25=_0x180d35['id'],_0x2ed416=_0x8bcf47?_0x24f2('0x5f')+_0x8bcf47:'deletion',_0x207d06=this['_setSuggestionData']({'id':_0x3b98cd,'type':_0x2ed416,'createdAt':new Date(),'authorId':_0x496d25,'attributes':_0x5bde1b});return this[_0x24f2('0x132')](_0x2ed416,_0x3b98cd,_0x496d25,_0x36e1b5),_0x207d06;}}[_0x24f2('0xd2')](_0x5de69b,_0x1c9bc1=_0x24f2('0xeb'),_0x6519ff={}){const _0x9c248a=this['editor'][_0x24f2('0x4a')][_0x24f2('0xb2')]('Users')['me'],_0x5924ae=_0x5de69b[_0x24f2('0x2d')](_0x41e904=>new _0x353646(_0x41e904[_0x24f2('0x83')],_0x41e904[_0x24f2('0x16d')])),_0x49d57c=new Set();for(const {suggestion:_0x478159,meta:_0x346e01}of this[_0x24f2('0x3')](_0x5924ae,'insertion'))_0x346e01[_0x24f2('0xd3')]&&!_0x346e01[_0x24f2('0x0')]&&_0x49d57c[_0x24f2('0x14')](_0x478159);for(const _0x1d81ac of _0x49d57c)if(_0x1d81ac['isMultiRange']){const _0x52a01f=_0x1d81ac['getRanges']();(!_0x1d81ac[_0x24f2('0x149')]||!_0x1d81ac[_0x24f2('0x149')][_0x24f2('0x8c')])&&(_0x52a01f[_0x24f2('0x9f')](_0x39828a=>_0x5924ae[_0x24f2('0x11')](_0x32e76c=>_0x32e76c['containsRange'](_0x39828a,!0x0)))&&_0x1d81ac[_0x24f2('0xf8')]());if(_0x5924ae[_0x24f2('0x9f')](_0x26dfd6=>_0x52a01f[_0x24f2('0x11')](_0x4aa55b=>_0x4aa55b['containsRange'](_0x26dfd6,!0x0)))){const _0x19f20b=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0xa8'),_0x1c9bc1,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x19f20b(_0x5de69b,null,_0x6519ff)),null;}}else{const _0x664a06=_0x1d81ac[_0x24f2('0x126')]();_0x5924ae[_0x24f2('0x11')](_0x43f332=>_0x43f332[_0x24f2('0x114')](_0x664a06,!0x0))&&_0x1d81ac['discard']();if(_0x5924ae[_0x24f2('0x9f')](_0x19a314=>_0x664a06[_0x24f2('0x114')](_0x19a314,!0x0))){const _0x35d387=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9bc1,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x35d387(_0x5924ae,null,_0x6519ff)),null;}}const _0x570714=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0xa8'),_0x1c9bc1,'join');let _0x4f6fae=null;for(const _0x21f223 of this['getSuggestions']())if(_0x21f223['author']['id']==_0x9c248a['id']&&_0x21f223[_0x24f2('0x161')]&&_0x24f2('0xa8')==_0x21f223['type']&&_0x21f223['subType']==_0x1c9bc1&&Gt(_0x21f223,_0x6519ff)&&(_0x570714(_0x21f223[_0x24f2('0x137')](),_0x5924ae)||_0x570714(_0x5924ae,_0x21f223[_0x24f2('0x137')]()))){if(_0x4f6fae){if(_0x21f223[_0x24f2('0x10c')]&&_0x21f223[_0x24f2('0x10c')][_0x24f2('0xe8')])continue;for(const _0x28d997 of _0x21f223['getRanges']())_0x4f6fae['isIntersectingWithRange'](_0x28d997)||_0x4f6fae[_0x24f2('0xd1')](_0x28d997);_0x21f223[_0x24f2('0x13a')]();}else{_0x4f6fae=_0x21f223;for(const _0x19c987 of _0x5924ae)_0x21f223['isIntersectingWithRange'](_0x19c987)||_0x21f223[_0x24f2('0xd1')](_0x19c987);}}if(_0x4f6fae)return _0x4f6fae;_0x49d57c[_0x24f2('0x174')]();for(const {suggestion:_0x4051f7,meta:_0x10dfae}of this[_0x24f2('0x3')](_0x5924ae,'deletion'))_0x10dfae[_0x24f2('0xd3')]&&(this[_0x24f2('0x84')]||!_0x10dfae[_0x24f2('0x7c')]&&!_0x10dfae[_0x24f2('0x12f')])&&Gt(_0x4051f7,_0x6519ff)&&_0x49d57c[_0x24f2('0x14')](_0x4051f7);for(const _0x4c863b of _0x49d57c){const _0x3f605e=_0x4c863b['getRanges']();if(!_0x6519ff||!_0x6519ff[_0x24f2('0x8c')]){if(_0x5924ae[_0x24f2('0x9f')](_0x3a9d06=>_0x3f605e[_0x24f2('0x11')](_0x41235f=>_0x41235f['containsRange'](_0x3a9d06,!0x0))))return _0x4c863b;}(!_0x4c863b[_0x24f2('0x149')]||!_0x4c863b[_0x24f2('0x149')][_0x24f2('0x8c')])&&(_0x3f605e[_0x24f2('0x9f')](_0x232ce1=>_0x5924ae[_0x24f2('0x11')](_0x1e69ee=>_0x1e69ee[_0x24f2('0x114')](_0x232ce1,!0x0)))&&_0x4c863b[_0x24f2('0xf8')]());}const _0x6b2713=_0x4f0f07(),_0x1510c0=_0x9c248a['id'],_0x2a6f49=_0x24f2('0x5f')+_0x1c9bc1,_0x22f30c=this[_0x24f2('0xee')]({'id':_0x6b2713,'type':_0x2a6f49,'createdAt':new Date(),'authorId':_0x1510c0,'attributes':_0x6519ff});for(const _0x5086d4 of _0x5924ae)_0x5086d4[_0x24f2('0x4')](),_0x5086d4[_0x24f2('0x46')]||_0x24f2('0x90')==_0x5086d4[_0x24f2('0x2f')][_0x24f2('0x32')]||this[_0x24f2('0x132')](_0x2a6f49,_0x6b2713,_0x1510c0,_0x5086d4,_0x897dd2[_0x24f2('0xea')]());return _0x22f30c;}[_0x24f2('0xbd')](_0x35c10e,_0x205eb4,_0x1c7f4a,_0x74909d,_0x248fc8){if(_0x35c10e[_0x24f2('0x46')])return[];if('never'===this[_0x24f2('0x77')])return[];const _0x2de5d4=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me']['id'],_0x18b5ff=Array[_0x24f2('0x51')](this[_0x24f2('0xa4')][_0x24f2('0x16f')]())[_0x24f2('0x159')](_0x47d435=>_0x24f2('0x2e')==_0x47d435[_0x24f2('0x27')]&&_0x47d435['data'][_0x24f2('0x72')]==_0x205eb4&&_0x47d435['isIntersectingWithRange'](_0x35c10e));if('default'===this[_0x24f2('0x77')]){const _0xb1e44b=this[_0x24f2('0x3')](_0x35c10e,_0x24f2('0x94'))[_0x24f2('0x159')](({meta:_0x45263e})=>_0x45263e[_0x24f2('0xd3')]&&!_0x45263e[_0x24f2('0x12f')]&&!_0x45263e[_0x24f2('0x0')])[_0x24f2('0x2d')](({suggestion:_0x160bb6})=>_0x160bb6);_0x18b5ff[_0x24f2('0x33')](..._0xb1e44b);}const _0x1a07ff=new Map([[_0x35c10e,_0x1c7f4a]]);for(const _0x2f789a of _0x18b5ff){const _0x261ad1=_0x24f2('0x2e')==_0x2f789a[_0x24f2('0x27')]?_0x2f789a[_0x24f2('0x3e')]['oldValue']:void 0x0,_0xa49337=_0x2f789a['getFirstRange'](),_0x269d95=Array[_0x24f2('0x51')](_0x1a07ff[_0x24f2('0x4e')]())[_0x24f2('0x128')](_0x47a609=>_0x47a609[_0x24f2('0x16e')](_0xa49337));if(!_0x269d95)continue;const _0x313224=_0x269d95[_0x24f2('0x1f')](_0xa49337);this[_0x24f2('0x13d')](_0x205eb4)&&'insertion'==_0x2f789a['type']&&0x0!=_0x313224[_0x24f2('0xe8')]||(_0x1a07ff[_0x24f2('0x36')](_0x269d95),_0x313224[_0x24f2('0x177')](_0xb54925=>{_0x1a07ff['set'](_0xb54925,_0x1c7f4a);}),_0x24f2('0x94')!=_0x2f789a[_0x24f2('0x27')]&&_0x261ad1!=_0x74909d&&_0x1a07ff[_0x24f2('0x13')](_0x269d95['getIntersection'](_0xa49337),_0x261ad1));}const _0x1eb0fa=[];for(const [_0x41e2d5,_0x10fd87]of _0x1a07ff){const _0x75e3f2=_0x4f0f07(),_0x434de8={'key':_0x205eb4,'oldValue':_0x10fd87,'newValue':_0x74909d};_0x205eb4['length']>0x25&&console['warn'](_0x24f2('0x179'),{'key':_0x205eb4});const _0x325677=('attribute:'+(_0x205eb4+'|'+Rt({'newValue':_0x74909d})))[_0x24f2('0xc5')](0x0,0x3c),_0x5cd322=this['_setSuggestionData']({'id':_0x75e3f2,'type':_0x325677,'data':_0x434de8,'createdAt':new Date(),'authorId':_0x2de5d4,'attributes':_0x248fc8});_0x1eb0fa['push'](_0x5cd322),this['_addSuggestionMarker'](_0x325677,_0x75e3f2,_0x2de5d4,_0x41e2d5);}return _0x1eb0fa;}[_0x24f2('0x12e')](_0x5c3f09){this[_0x24f2('0x8f')][_0x24f2('0x14')](_0x5c3f09);}['_registerInlineAttribute'](_0x5c1133){this[_0x24f2('0x45')][_0x24f2('0x14')](_0x5c1133);}[_0x24f2('0xde')](_0x3552f7,_0x11c292=[],_0x342d49=[]){this[_0x24f2('0x107')](_0x3552f7,(_0x583f9a,..._0x208fe9)=>{this['_recordAttributeChanges'](()=>{_0x583f9a(..._0x208fe9);});});for(const _0x5c7efb of _0x11c292)this[_0x24f2('0x37')](_0x5c7efb);for(const _0x2e5aeb of _0x342d49)this[_0x24f2('0x12e')](_0x2e5aeb);}[_0x24f2('0x18')](_0x2440be,_0x56a49d){const _0x19efb5=_0x2440be[_0x24f2('0x11a')]();this[_0x24f2('0xa5')][_0x24f2('0x78')](_0x2e6b3f=>{_0x2e6b3f['updateMarker'](_0x19efb5,{'range':_0x56a49d});});}['_addThreadToSuggestion'](_0x1110d2){const _0x36a563=_0x1110d2['id'],_0x415e96=this[_0x24f2('0x151')][_0x24f2('0x173')]['get'](_0x24f2('0xf6'));this['_commentsRepository'][_0x24f2('0x109')](_0x36a563)||this[_0x24f2('0x9c')][_0x24f2('0x1e')]({'channelId':_0x415e96,'threadId':_0x36a563,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x482ac5=this[_0x24f2('0x9c')]['getCommentThread'](_0x36a563);_0x482ac5['unbind']('isRemovable'),_0x482ac5[_0x24f2('0x57')]=!0x1,_0x1110d2[_0x24f2('0x10c')]=_0x482ac5;}[_0x24f2('0xf1')](_0x577a07,_0x33d7af,_0x12e158,_0xb2f6fd){if(_0x577a07[_0x24f2('0x27')]!=_0x33d7af||_0x577a07[_0x24f2('0x15')]!=_0x12e158||_0x577a07[_0x24f2('0x64')]['id']!=_0xb2f6fd)throw this[_0x24f2('0x151')][_0x24f2('0xad')]('track-changes-suggestion-data-mismatch'),new _0x1937ba(_0x24f2('0x118'),this);}[_0x24f2('0x134')](_0x45dd5b,_0x766a8e){const _0xfa70a0=_0x45dd5b[_0x24f2('0x126')]();if(_0x766a8e['isEqual'](_0xfa70a0))_0x45dd5b['removeMarkers']();else{if(_0xfa70a0[_0x24f2('0x114')](_0x766a8e)){const _0x5da62c=this['_model'][_0x24f2('0x79')](_0x766a8e[_0x24f2('0x83')][_0x24f2('0x9a')],'end');this['_setSuggestionRange'](_0x45dd5b,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0xfa70a0['start'],_0x5da62c));const _0xf2493c=_0x4f0f07(),_0x531d0c=_0x45dd5b[_0x24f2('0x64')]['id'],_0x44a802=_0x45dd5b[_0x24f2('0x27')]+':'+_0x45dd5b[_0x24f2('0x15')];this['_setSuggestionData']({'id':_0xf2493c,'type':_0x44a802,'createdAt':new Date(),'authorId':_0x531d0c,'data':_0x45dd5b[_0x24f2('0x3e')],'attributes':_0x45dd5b[_0x24f2('0x149')]});const _0xc34d00=this[_0x24f2('0xa5')]['createPositionAt'](_0x766a8e[_0x24f2('0x16d')][_0x24f2('0x112')],_0x24f2('0x102')),_0x1d4eae=this['_model']['createRange'](_0xc34d00,_0xfa70a0[_0x24f2('0x16d')]);this[_0x24f2('0x132')](_0x44a802,_0xf2493c,_0x531d0c,_0x1d4eae);}else{if(_0xfa70a0[_0x24f2('0xdc')](_0x766a8e[_0x24f2('0x83')])){const _0xd2928b=this['_model']['createPositionAt'](_0x766a8e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45dd5b,this['_model'][_0x24f2('0x5d')](_0xfa70a0[_0x24f2('0x83')],_0xd2928b));}else{const _0x7ad4ce=this['_model'][_0x24f2('0x79')](_0x766a8e['end'][_0x24f2('0x112')],_0x24f2('0x102'));this['_setSuggestionRange'](_0x45dd5b,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x7ad4ce,_0xfa70a0['end']));}}}}[_0x24f2('0x14a')](_0x1f8ca8){for(const {suggestion:_0x3ee735,meta:_0x207b0d}of this[_0x24f2('0x3')](_0x1f8ca8,_0x24f2('0x94'))){if(!_0x207b0d[_0x24f2('0xd3')])continue;const _0x333888=_0x3ee735['getRanges']();for(const _0x4dd76d of _0x333888)if(!_0x1f8ca8['getDifference'](_0x4dd76d)['length'])return!0x0;}return!0x1;}[_0x24f2('0x5e')](_0x11684e){const _0x2f1700=this['editor'][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))[_0x24f2('0x167')](_0x11684e);if(!_0x2f1700)throw new _0x1937ba(_0x24f2('0x7a'),this);return _0x2f1700;}[_0x24f2('0x175')](_0x52fa40){const _0x56dcab=this[_0x24f2('0x151')]['plugins']['get'](_0x24f2('0x91')),_0x2b9f60=_0x232543('external:'+_0x52fa40),_0xcc6728=_0x56dcab[_0x24f2('0x167')](_0x2b9f60);return _0xcc6728||_0x56dcab['addUser']({'id':_0x2b9f60,'name':_0x52fa40});}['_createSuggestion'](_0x228ce8,_0x96d104,_0x310935,_0x2cb6af,_0x5c66b8){const _0x388c56=this[_0x24f2('0x5e')](_0x2cb6af),_0xc183dd=this[_0x24f2('0x75')][_0x24f2('0x110')](_0x228ce8,_0x96d104,_0x310935,_0x388c56,_0x5c66b8,_0x1959eb=>this[_0x24f2('0x5b')](_0x310935,{'attributes':_0x1959eb}));return this[_0x24f2('0x74')](_0xc183dd,_0x24f2('0xdd'),()=>{this[_0x24f2('0x5b')](_0x310935,{'state':_0x24f2('0xef')});},{'priority':_0x24f2('0x8a')}),this[_0x24f2('0x74')](_0xc183dd,_0x24f2('0xf8'),()=>{this[_0x24f2('0x5b')](_0x310935,{'state':_0x24f2('0xd8')});},{'priority':_0x24f2('0x8a')}),this[_0x24f2('0xa4')]['set'](_0x310935,_0xc183dd),this[_0x24f2('0xcc')][_0x24f2('0x13')](_0xc183dd,'notReady'),_0xc183dd;}[_0x24f2('0xe7')](_0x2c26f3){const _0x33d50f=_0x2c26f3[_0x24f2('0x111')](':');return{'group':_0x33d50f[0x0],'type':_0x33d50f[0x1],'subType':_0x33d50f['length']>=0x5?_0x33d50f[0x2]:null,'id':_0x33d50f[_0x24f2('0xe8')]<0x5?_0x33d50f[0x2]:_0x33d50f[0x3],'authorId':_0x33d50f[_0x24f2('0xe8')]<0x5?_0x33d50f[0x3]:_0x33d50f[0x4],'markerCount':0x6==_0x33d50f[_0x24f2('0xe8')]?_0x33d50f[0x5]:null};}[_0x24f2('0xfe')](_0x1d441b,_0x39aae7,_0x10a6a7){const _0x552a20=_0x1d441b[_0x24f2('0x126')](),_0x2e8a21=_0x552a20[_0x24f2('0x83')],_0xe85e56=_0x552a20[_0x24f2('0x16d')];this[_0x24f2('0x18')](_0x1d441b,this['_model'][_0x24f2('0x5d')](_0x2e8a21,_0x39aae7));const _0x777bf8=_0x4f0f07(),_0x2a32a1=_0x1d441b['creator']['id'],_0x19de86=_0x1d441b[_0x24f2('0x27')]+(_0x1d441b['subType']?':'+_0x1d441b[_0x24f2('0x15')]:'');this[_0x24f2('0xee')]({'id':_0x777bf8,'type':_0x19de86,'createdAt':new Date(),'authorId':_0x2a32a1,'originalSuggestionId':_0x1d441b['id'],'attributes':_0x1d441b['attributes'],'data':_0x1d441b[_0x24f2('0x3e')]});const _0x6e6b54=Pt(_0x1d441b);(_0x24f2('0x3f')==_0x1d441b[_0x24f2('0x27')]||_0x6e6b54&&this[_0x24f2('0x13d')](_0x6e6b54))&&(_0x10a6a7=this[_0x24f2('0xa5')][_0x24f2('0x93')](_0x10a6a7[_0x24f2('0x112')])),this['_addSuggestionMarker'](_0x19de86,_0x777bf8,_0x2a32a1,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x10a6a7,_0xe85e56));}[_0x24f2('0x3')](_0x2e731a,_0x2e99fb=null){const _0x58f65f=[],_0x5a7f5e=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'];Array['isArray'](_0x2e731a)||(_0x2e731a=[_0x2e731a]);for(const _0x567d40 of this[_0x24f2('0x120')]()){if(!_0x567d40[_0x24f2('0x161')])continue;if(_0x2e99fb&&_0x567d40[_0x24f2('0x27')]!=_0x2e99fb)continue;let _0x13b940=!0x1;for(const _0x158bca of _0x567d40[_0x24f2('0x137')]()){for(const _0x3dce3e of _0x2e731a){const _0x3ed8b4=_0x3dce3e[_0x24f2('0x83')][_0x24f2('0xba')](_0x158bca['end'])||_0x3dce3e[_0x24f2('0x16d')]['isEqual'](_0x158bca[_0x24f2('0x83')]);if(_0x3ed8b4||_0x3dce3e[_0x24f2('0xbe')](_0x158bca)){const _0x176450=_0x3dce3e['containsRange'](_0x158bca)&&Tt(this['_model'][_0x24f2('0x10b')],_0x158bca[_0x24f2('0x83')],_0x3dce3e),_0x23e0cd=_0x158bca['containsRange'](_0x3dce3e)&&Tt(this[_0x24f2('0xa5')][_0x24f2('0x10b')],_0x3dce3e[_0x24f2('0x83')],_0x158bca);_0x58f65f[_0x24f2('0x44')]({'suggestion':_0x567d40,'meta':{'isOwn':_0x5a7f5e==_0x567d40['author'],'isNextTo':_0x3ed8b4,'isInsideObject':_0x176450,'containsRangeInObject':_0x23e0cd}}),_0x13b940=!0x0;break;}}if(_0x13b940)break;}}return _0x58f65f;}[_0x24f2('0x132')](_0x7be702,_0x203c3c,_0x12fb90,_0x21c416,_0x8c8207){this['_model'][_0x24f2('0x78')](_0x8ec817=>{let _0x4d4e55=_0x24f2('0xca')+_0x7be702+':'+_0x203c3c+':'+_0x12fb90;_0x8c8207&&(_0x4d4e55=_0x4d4e55+':'+_0x8c8207),_0x8ec817[_0x24f2('0x10d')](_0x4d4e55,{'range':_0x21c416,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x24f2('0xe4')](_0x227a13){const _0x45a5c7=_0x227a13[_0x24f2('0xfd')],_0x388c9b=_0x227a13[_0x24f2('0x81')];_0x227a13[_0x24f2('0xfd')]=null,_0x227a13['next']=null,null!=_0x45a5c7&&(_0x45a5c7['next']=_0x388c9b),null!=_0x388c9b&&(_0x388c9b[_0x24f2('0xfd')]=_0x45a5c7),_0x24f2('0xfc')==this[_0x24f2('0xcc')][_0x24f2('0xb2')](_0x227a13)&&(this[_0x24f2('0xcc')]['set'](_0x227a13,_0x24f2('0x15e')),this[_0x24f2('0x100')]('suggestionUnloaded',_0x227a13,_0x45a5c7,_0x388c9b));}[_0x24f2('0xee')](_0x49fe40){const _0x31d57a=_0x49fe40['id'],_0x18cec7=this[_0x24f2('0xdf')](_0x49fe40);if(this[_0x24f2('0x147')]&&this['_adapter'][_0x24f2('0xd7')]){const _0x45d842=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x116')),_0x559aa5=_0x18cec7[_0x24f2('0x31')],_0x1fc9a1=_0x18cec7[_0x24f2('0x15')]?_0x18cec7[_0x24f2('0x27')]+':'+_0x18cec7[_0x24f2('0x15')]:_0x18cec7[_0x24f2('0x27')],_0x3725c7=this[_0x24f2('0x151')]['locale'],_0x5100ca=_0x45d842[_0x24f2('0x14')](_0x46785b(_0x3725c7,_0x24f2('0xac'))),_0x19f3ba={'id':_0x31d57a,'type':_0x1fc9a1,'hasComments':_0x559aa5,'data':_0x49fe40[_0x24f2('0x3e')]||null,'originalSuggestionId':_0x49fe40[_0x24f2('0xe0')]||null,'attributes':_0x18cec7[_0x24f2('0x149')]};this['_adapter'][_0x24f2('0xd7')](_0x19f3ba)[_0x24f2('0x171')](_0x2ada96=>{_0x18cec7[_0x24f2('0xa')]=!0x0,_0x45d842[_0x24f2('0x87')](_0x5100ca),_0x2ada96&&_0x2ada96[_0x24f2('0x115')]&&(this[_0x24f2('0xa4')]['get'](_0x31d57a)[_0x24f2('0x115')]=_0x2ada96[_0x24f2('0x115')]);})['catch'](_0x35aacd=>{throw _0x40d91e(_0x24f2('0x97')),this['editor'][_0x24f2('0x48')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x18cec7[_0x24f2('0xf8')]();}),_0x18cec7[_0x24f2('0x12')](),this['_suggestions'][_0x24f2('0x36')](_0x18cec7['id']),this[_0x24f2('0xcc')][_0x24f2('0x36')](_0x18cec7),_0x35aacd;});}return _0x18cec7;}[_0x24f2('0x13d')](_0x1253da){return this['_blockAttributeKeys'][_0x24f2('0x113')](_0x1253da);}[_0x24f2('0x5b')](_0x59508b,_0x427f0a){const _0xe629f4=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x116')),_0x4bea3a=this['getSuggestion'](_0x59508b);if(this[_0x24f2('0x147')]&&this['_adapter'][_0x24f2('0xcd')]){if(_0x4bea3a[_0x24f2('0xa')]){const _0xb6521b=_0xe629f4['add'](_0x46785b(this['editor'][_0x24f2('0x5')],_0x24f2('0xac')));this[_0x24f2('0x147')][_0x24f2('0xcd')](_0x59508b,_0x427f0a)[_0x24f2('0x171')](()=>{_0xe629f4['remove'](_0xb6521b);});}else _0x4bea3a['on']('change:_saved',()=>{this[_0x24f2('0x5b')](_0x59508b,_0x427f0a);});}}[_0x24f2('0xc4')](_0x5466b3){if(!this[_0x24f2('0x147')]||!this[_0x24f2('0x147')][_0x24f2('0x169')])throw new _0x1937ba(_0x24f2('0x41'),this);return this[_0x24f2('0x147')][_0x24f2('0x169')](_0x5466b3);}[_0x24f2('0x61')](_0x5013eb){const {id:_0x9646f1,type:_0x4f25d8,subType:_0x514a8e,authorId:_0x4f1257}=this[_0x24f2('0xe7')](_0x5013eb),_0xfa5953=this[_0x24f2('0xa4')]['get'](_0x9646f1)||this[_0x24f2('0xc8')](_0x4f25d8,_0x514a8e,_0x9646f1,_0x4f1257,{});switch(this[_0x24f2('0xf1')](_0xfa5953,_0x4f25d8,_0x514a8e,_0x4f1257),this[_0x24f2('0xcc')][_0x24f2('0xb2')](_0xfa5953)){case _0x24f2('0x19'):this[_0x24f2('0xc4')](_0x9646f1)['then'](_0x57829=>{let _0x240069=Promise['resolve']();_0x57829[_0x24f2('0x31')]&&(_0x240069=this['_commentsRepository'][_0x24f2('0x7e')]({'channelId':this[_0x24f2('0x151')][_0x24f2('0x173')]['get'](_0x24f2('0xf6')),'threadId':_0x9646f1})),_0x240069[_0x24f2('0x171')](()=>{this[_0x24f2('0xdf')](_0x57829)[_0x24f2('0xa')]=!0x0;});}),this[_0x24f2('0xcc')][_0x24f2('0x13')](_0xfa5953,_0x24f2('0x129'));break;case _0x24f2('0x15e'):this[_0x24f2('0x5b')](_0x9646f1,{'state':'open'});case _0x24f2('0x136'):this[_0x24f2('0xcc')]['set'](_0xfa5953,_0x24f2('0xfc')),this[_0x24f2('0x100')](_0x24f2('0x13f'),_0xfa5953);break;case _0x24f2('0xfc'):this[_0x24f2('0x100')](_0x24f2('0xa6'),_0xfa5953);}return _0xfa5953[_0x24f2('0x153')](_0x5013eb),_0xfa5953;}[_0x24f2('0x15a')](_0xe0c8fd){const _0x33e2ac=Array[_0x24f2('0x51')](_0xe0c8fd),_0x26fc4f=_0x33e2ac['filter'](_0x30fa21=>'attribute'==_0x30fa21[_0x24f2('0x27')]);this[_0x24f2('0xce')](_0x26fc4f);const _0x421424=_0x33e2ac['filter'](_0x4627=>!_0x4627[_0x24f2('0x2')]&&_0x24f2('0x2e')!=_0x4627[_0x24f2('0x27')]),_0x56edaa=this[_0x24f2('0x120')]({'skipNotAttached':!0x0})['filter'](_0x81fc69=>!_0x81fc69[_0x24f2('0x2')]&&_0x24f2('0x2e')!=_0x81fc69[_0x24f2('0x27')]),_0x565abd=_0x56edaa[_0x24f2('0x159')](_0x278ba6=>!_0xe0c8fd[_0x24f2('0x113')](_0x278ba6)),_0x15dc01=new Map(_0x56edaa['map'](_0x133f46=>[_0x133f46,this[_0x24f2('0x75')]['getSuggestionCallback'](_0x133f46[_0x24f2('0x27')],_0x133f46['subType'],_0x24f2('0x124'))])),_0x2b3adf=new Map(_0x56edaa[_0x24f2('0x2d')](_0x87d50f=>[_0x87d50f,_0x87d50f[_0x24f2('0x126')]()])),_0x35806f=new Set(),_0x11f1b3=new Set();for(let _0x135a42=0x0;_0x135a42<_0x421424['length'];_0x135a42++)_0xee1b33(_0x421424[_0x135a42],_0x421424,_0x135a42+0x1);for(let _0x1377f7=0x0;_0x1377f7<_0x421424[_0x24f2('0xe8')];_0x1377f7++)_0xee1b33(_0x421424[_0x1377f7],_0x565abd,0x0);const _0x3937db=new Set();for(let _0x36770d=0x0;_0x36770d<_0x421424[_0x24f2('0xe8')];_0x36770d++){const _0x2629cd=_0x421424[_0x36770d];!_0x11f1b3[_0x24f2('0x113')](_0x2629cd)&&_0x2629cd[_0x24f2('0xfd')]&&(_0x3937db['add'](_0x2629cd[_0x24f2('0xfd')]),_0x2629cd['previous']['next']===_0x2629cd&&(_0x2629cd['previous']['next']=null),_0x2629cd[_0x24f2('0xfd')]=null),!_0x35806f[_0x24f2('0x113')](_0x2629cd)&&_0x2629cd[_0x24f2('0x81')]&&(_0x3937db['add'](_0x2629cd[_0x24f2('0x81')]),_0x2629cd['next'][_0x24f2('0xfd')]===_0x2629cd&&(_0x2629cd['next']['previous']=null),_0x2629cd['next']=null);}function _0xee1b33(_0x2ff590,_0x3b903f,_0x12a5f2){for(let _0x4ad2c0=_0x12a5f2;_0x4ad2c0<_0x3b903f[_0x24f2('0xe8')];_0x4ad2c0++){const _0x49f9ab=_0x3b3fe(_0x2ff590,_0x3b903f[_0x4ad2c0]);_0x49f9ab&&(_0x49f9ab[0x0]['next']=_0x49f9ab[0x1],_0x49f9ab[0x1][_0x24f2('0xfd')]=_0x49f9ab[0x0],_0x35806f['add'](_0x49f9ab[0x0]),_0x11f1b3[_0x24f2('0x14')](_0x49f9ab[0x1]));}}function _0x3b3fe(_0x2ae43d,_0x3fcc60){if(_0x2ae43d['author']['id']!==_0x3fcc60[_0x24f2('0x3d')]['id'])return null;const _0x4a3ddd=_0x15dc01[_0x24f2('0xb2')](_0x2ae43d)(_0x2ae43d,_0x3fcc60,_0x2b3adf[_0x24f2('0xb2')](_0x2ae43d),_0x2b3adf[_0x24f2('0xb2')](_0x3fcc60));if(!_0x4a3ddd)return null;return _0x15dc01[_0x24f2('0xb2')](_0x3fcc60)(_0x2ae43d,_0x3fcc60,_0x2b3adf[_0x24f2('0xb2')](_0x2ae43d),_0x2b3adf[_0x24f2('0xb2')](_0x3fcc60))?_0x4a3ddd[0x1][_0x24f2('0x10c')]&&_0x4a3ddd[0x1][_0x24f2('0x10c')][_0x24f2('0xe8')]?null:_0x4a3ddd:null;}_0x3937db['size']&&this[_0x24f2('0x15a')](_0x3937db);}['_refreshAttributeSuggestionsChain'](_0x390390){if(0x0==_0x390390[_0x24f2('0xe8')])return;const _0x538d0b=this[_0x24f2('0x120')]({'skipNotAttached':!0x0})[_0x24f2('0x159')](_0x463f7d=>_0x24f2('0x2e')==_0x463f7d['type']&&_0x463f7d[_0x24f2('0xb8')]),_0x187655=[],_0x54b602=new Map();for(const _0x3c3064 of _0x538d0b){const _0x29c91c=_0x232543(_0x3c3064[_0x24f2('0x149')]);_0x54b602[_0x24f2('0x113')](_0x29c91c)||(_0x54b602[_0x24f2('0x13')](_0x29c91c,_0x187655[_0x24f2('0xe8')]),_0x187655[_0x24f2('0x44')]([]));const _0x5e6b14=_0x54b602[_0x24f2('0xb2')](_0x29c91c);_0x187655[_0x5e6b14][_0x24f2('0x44')](_0x3c3064);}!function(){_0x187655[_0x24f2('0x157')]((_0xdac247,_0x59b765)=>{const _0x4871ef=_0xdac247[0x0][_0x24f2('0x115')],_0x121c35=_0x59b765[0x0][_0x24f2('0x115')];return _0x4871ef==_0x121c35?_0xdac247[0x0][_0x24f2('0x149')][_0x24f2('0x168')]<_0x59b765[0x0][_0x24f2('0x149')][_0x24f2('0x168')]?-0x1:0x1:_0x4871ef<_0x121c35?-0x1:0x1;});for(const _0x3938c6 of _0x187655)_0x3938c6[_0x24f2('0x157')]((_0x35a94c,_0x3f967e)=>_0x35a94c['id']<_0x3f967e['id']?-0x1:0x1);}();for(let _0x1f3e66=0x0;_0x1f3e66<_0x187655[_0x24f2('0xe8')];_0x1f3e66++){if(0x0==_0x187655[_0x1f3e66]['length'])continue;const _0x38d3f3=[];for(let _0x14edd7=_0x1f3e66+0x1;_0x14edd7<_0x187655[_0x24f2('0xe8')];_0x14edd7++)0x0!=_0x187655[_0x14edd7][_0x24f2('0xe8')]&&_0x1eaa84(_0x187655[_0x1f3e66],_0x187655[_0x14edd7])&&_0x38d3f3['push'](_0x14edd7);for(const _0x1c92cc of _0x38d3f3)_0x187655[_0x1f3e66]=_0x187655[_0x1f3e66][_0x24f2('0xb3')](_0x187655[_0x1c92cc]),_0x187655[_0x1c92cc]=[];}for(const _0x16187b of _0x187655)for(let _0x1e4b76=0x0;_0x1e4b76<_0x16187b[_0x24f2('0xe8')];_0x1e4b76++)_0x16187b[_0x1e4b76][_0x24f2('0x81')]=_0x16187b[_0x1e4b76+0x1]||null;for(const _0x47a8ce of _0x187655)for(let _0x3769e1=0x0;_0x3769e1<_0x47a8ce['length'];_0x3769e1++)_0x47a8ce[_0x3769e1]['previous']=_0x47a8ce[_0x3769e1-0x1]||null;function _0x1eaa84(_0x3fb731,_0x10327a){if(_0x3fb731[0x0]['author']!==_0x10327a[0x0][_0x24f2('0x3d')])return!0x1;if(!function(_0x3f83c2,_0x32baa0){if(!_0x3f83c2[_0x24f2('0x31')]&&!_0x32baa0['hasComments'])return!0x0;if(_0x3f83c2[_0x24f2('0x31')]&&_0x32baa0[_0x24f2('0x31')])return!0x1;if(_0x3f83c2[_0x24f2('0x31')]&&_0x32baa0['createdAt']<_0x3f83c2[_0x24f2('0x10c')][_0x24f2('0x3b')][_0x24f2('0xb2')](0x0)[_0x24f2('0x115')])return!0x0;if(_0x32baa0['hasComments']&&_0x3f83c2[_0x24f2('0x115')]<_0x32baa0[_0x24f2('0x10c')][_0x24f2('0x3b')][_0x24f2('0xb2')](0x0)[_0x24f2('0x115')])return!0x0;return!0x1;}(_0x3fb731[0x0],_0x10327a[0x0]))return!0x1;const _0xe2b539=_0x35f41d(_0x3fb731[0x0][_0x24f2('0x149')],_0x24f2('0x168')),_0x32ba32=_0x35f41d(_0x10327a[0x0]['attributes'],_0x24f2('0x168'));if(!_0x57a851(_0xe2b539,_0x32ba32))return!0x1;return!!_0x3fb731[_0x24f2('0x9f')](_0x3f703f=>_0x10327a['some'](_0x5ceb10=>_0x3f703f['getFirstRange']()['isEqual'](_0x5ceb10['getFirstRange']())))&&_0x10327a[_0x24f2('0x9f')](_0x3e1526=>_0x3fb731[_0x24f2('0x11')](_0x33d3c3=>_0x3e1526['getFirstRange']()[_0x24f2('0xba')](_0x33d3c3[_0x24f2('0x126')]())));}}[_0x24f2('0x1b')](_0x15be85){const _0x313b1b=Array[_0x24f2('0x51')](_0x15be85),_0x535d17=this['getSuggestions']({'skipNotAttached':!0x0}),_0x37d7a0=_0x535d17[_0x24f2('0x159')](_0x46363b=>!_0x15be85[_0x24f2('0x113')](_0x46363b)),_0x5c5ce4=new Map(_0x313b1b[_0x24f2('0x2d')](_0x555e39=>[_0x555e39,this[_0x24f2('0x75')][_0x24f2('0x156')](_0x555e39['type'],_0x555e39[_0x24f2('0x15')],'join')])),_0x8a2dc=new Map(_0x535d17[_0x24f2('0x2d')](_0x3cb04f=>[_0x3cb04f,_0x3cb04f['getRanges']()]));for(let _0xd563d9=0x0;_0xd563d9<_0x313b1b['length'];_0xd563d9++){if(_0xc2511f(this,_0x313b1b[_0xd563d9],_0x313b1b,_0xd563d9+0x1))return!0x0;}for(let _0x4c1ccc=0x0;_0x4c1ccc<_0x313b1b[_0x24f2('0xe8')];_0x4c1ccc++){if(_0xc2511f(this,_0x313b1b[_0x4c1ccc],_0x37d7a0,0x0))return!0x0;}return!0x1;function _0xc2511f(_0x3583e8,_0x4741dd,_0x2e1b2e,_0x2f4da4){for(let _0x230231=_0x2f4da4;_0x230231<_0x2e1b2e['length'];_0x230231++){const _0x3c2f44=_0x2e1b2e[_0x230231];if(_0x3c2f44[_0x24f2('0x27')]!==_0x4741dd[_0x24f2('0x27')]||_0x3c2f44[_0x24f2('0x3d')]['id']!==_0x4741dd['author']['id']||_0x3c2f44['subType']!==_0x4741dd[_0x24f2('0x15')])continue;if(!Vt(_0x4741dd,_0x3c2f44))continue;if('attribute'==_0x4741dd[_0x24f2('0x27')]&&_0x4741dd['data'][_0x24f2('0x73')]!=_0x3c2f44[_0x24f2('0x3e')][_0x24f2('0x73')])continue;if(_0x24f2('0x2e')==_0x4741dd[_0x24f2('0x27')]&&_0x3583e8[_0x24f2('0x13d')](_0x4741dd[_0x24f2('0x3e')]['key']))continue;if(_0x24f2('0x3f')==_0x4741dd[_0x24f2('0x27')]){const _0x197828=_0x3583e8[_0x24f2('0x151')][_0x24f2('0x48')],_0x1af861=_0x4741dd[_0x24f2('0x140')]();if(_0x1af861&&(_0x197828[_0x24f2('0x10b')][_0x24f2('0x59')](_0x1af861)||_0x197828['schema'][_0x24f2('0x176')](_0x1af861)))continue;}const _0x2a7e1a=_0x5c5ce4[_0x24f2('0xb2')](_0x4741dd),_0x4d80a3=_0x8a2dc[_0x24f2('0xb2')](_0x4741dd),_0x1e2630=_0x8a2dc[_0x24f2('0xb2')](_0x3c2f44),_0x3e5d3f=_0x4741dd[_0x24f2('0x10c')]&&_0x4741dd[_0x24f2('0x10c')][_0x24f2('0xe8')],_0x5b59bc=_0x3c2f44[_0x24f2('0x10c')]&&_0x3c2f44[_0x24f2('0x10c')][_0x24f2('0xe8')];if(!_0x3e5d3f&&_0x2a7e1a(_0x1e2630,_0x4d80a3))return _0x3583e8['_joinSuggestions'](_0x3c2f44,_0x4741dd),_0x8a2dc[_0x24f2('0x36')](_0x4741dd),!0x0;if(!_0x5b59bc&&_0x2a7e1a(_0x4d80a3,_0x1e2630))return _0x3583e8[_0x24f2('0xe3')](_0x4741dd,_0x3c2f44),_0x8a2dc[_0x24f2('0x36')](_0x3c2f44),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4be695,_0x518641){if(_0x4be695[_0x24f2('0x2')])for(const _0x173dd4 of _0x518641[_0x24f2('0x137')]())_0x4be695[_0x24f2('0xd1')](_0x173dd4);else{const _0x507140=_0x518641[_0x24f2('0x126')]()[_0x24f2('0x16d')];this[_0x24f2('0x18')](_0x4be695,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x4be695[_0x24f2('0x126')]()['start'],_0x507140));}_0x518641['removeMarkers']();}[_0x24f2('0xf5')](_0xd3f382,_0x2c6ffa){const _0x3c508a=_0xd3f382[_0x24f2('0xd5')]('format')||_0xd3f382[_0x24f2('0xd5')](_0x24f2('0x2e'))?_0x24f2('0x8d'):_0xd3f382[_0x24f2('0x11b')]();return _0x46785b(this[_0x24f2('0x151')][_0x24f2('0x5')],_0x2c6ffa+'_'+_0x3c508a+_0x24f2('0x20'));}[_0x24f2('0x9e')](){const _0x300f68=this['editor'];_0x492056(this['_model'],({left:_0x2bf37c,entered:_0x1ed2b9})=>{const _0x44e70f=[];for(const _0x5d8a7b of _0x2bf37c){const {group:_0xdb1f85,type:_0x21edec}=this[_0x24f2('0xe7')](_0x5d8a7b[_0x24f2('0xf9')]);if(_0x24f2('0x7f')===_0xdb1f85){_0x44e70f['push'](this[_0x24f2('0xf5')](_0x21edec,_0x24f2('0x146')));break;}}for(const _0x3d4edd of _0x1ed2b9){const {group:_0x41c251,type:_0x3e3651}=this[_0x24f2('0xe7')](_0x3d4edd[_0x24f2('0xf9')]);if('suggestion'===_0x41c251){_0x44e70f[_0x24f2('0x44')](this['_getMarkerAnnouncementText'](_0x3e3651,'ENTER'));break;}}_0x44e70f[_0x24f2('0xe8')]&&_0x300f68['ui'][_0x24f2('0x1a')][_0x24f2('0x88')](_0x24f2('0x11d'),_0x44e70f[_0x24f2('0x17')]('\x20'));});}[_0x24f2('0xcb')](_0x30a4ad){if(null!==this[_0x24f2('0x103')])return!0x1;const _0x1312ca=this[_0x24f2('0x151')],_0x1d39f4=_0x1312ca['model'][_0x24f2('0x6b')][_0x24f2('0x39')]['getChanges']();if(0x0==_0x1d39f4[_0x24f2('0xe8')])return!0x1;const _0x15e8ef=[],_0x40acd0=_0x1d39f4[_0x24f2('0x159')](_0x14bbb6=>_0x24f2('0x2e')==_0x14bbb6[_0x24f2('0x27')]),_0x270e7e=_0x1d39f4['filter'](_0x59c781=>_0x24f2('0x67')==_0x59c781['type']&&_0x24f2('0x99')!=_0x59c781['name']),_0x2e5652=_0x1d39f4[_0x24f2('0x159')](_0x30f01b=>_0x24f2('0x87')==_0x30f01b[_0x24f2('0x27')]&&'$text'!=_0x30f01b['name']);for(const _0x46b1ff of _0x40acd0)_0x15e8ef[_0x24f2('0x44')]({'key':_0x46b1ff[_0x24f2('0x160')],'newValue':_0x46b1ff[_0x24f2('0x14c')],'oldValue':_0x46b1ff[_0x24f2('0x154')],'range':_0x599448(_0x46b1ff['range'])});for(const _0x570cfc of _0x270e7e){const _0x48c0a5=_0x2e5652[_0x24f2('0x128')](_0x3a8fdd=>_0x3a8fdd[_0x24f2('0x131')][_0x24f2('0xba')](_0x570cfc['position']));_0x48c0a5&&_0x15e8ef[_0x24f2('0x44')]({'key':'$elementName','newValue':_0x570cfc[_0x24f2('0xf9')],'oldValue':_0x48c0a5[_0x24f2('0xf9')],'range':_0x1312ca[_0x24f2('0x48')][_0x24f2('0x6')](_0x570cfc[_0x24f2('0x131')][_0x24f2('0x15b')])});}return 0x0!=_0x15e8ef[_0x24f2('0xe8')]&&this[_0x24f2('0x119')](_0x30a4ad,_0x15e8ef);function _0x599448(_0x50c3ba){return null==_0x50c3ba[_0x24f2('0x16d')][_0x24f2('0x9a')]&&_0x50c3ba[_0x24f2('0x16d')][_0x24f2('0x112')]==_0x50c3ba[_0x24f2('0x83')][_0x24f2('0x15b')]?Ut(_0x50c3ba[_0x24f2('0x83')][_0x24f2('0x15b')],_0x1312ca['model']):_0x50c3ba;}}[_0x24f2('0xa0')](_0x27e8b0){let _0x1ab10f=!0x1;const _0x226ecb=this[_0x24f2('0x151')]['model'][_0x24f2('0x6b')][_0x24f2('0x39')][_0x24f2('0xc1')]()[_0x24f2('0x159')](_0x937f25=>_0x937f25['data'][_0x24f2('0xec')]&&_0x937f25['name']['startsWith'](_0x24f2('0x85')));for(const _0x354deb of _0x226ecb){const {subType:_0x394474,id:_0x1a1422}=this[_0x24f2('0xe7')](_0x354deb[_0x24f2('0xf9')]),_0x529f5b=_0x394474[_0x24f2('0x111')]('|')[0x0];for(const _0x435334 of this[_0x24f2('0x120')]({'skipNotAttached':!0x0}))_0x435334['id']!=_0x1a1422&&_0x24f2('0x2e')==_0x435334['type']&&_0x435334[_0x24f2('0x3e')]&&_0x435334[_0x24f2('0x3e')][_0x24f2('0x72')]==_0x529f5b&&_0x435334[_0x24f2('0x126')]()[_0x24f2('0x16e')](_0x354deb[_0x24f2('0x3e')][_0x24f2('0xec')])&&(this[_0x24f2('0xed')](_0x435334,_0x354deb[_0x24f2('0x3e')][_0x24f2('0xec')],_0x27e8b0),_0x1ab10f=!0x0);}return _0x1ab10f;}[_0x24f2('0x38')](_0x274d3c){if(null!==this[_0x24f2('0x103')])return void _0x274d3c();const _0x20950a=this[_0x24f2('0x151')];this[_0x24f2('0x103')]=_0x20950a['model'][_0x24f2('0x6b')][_0x24f2('0x89')],_0x274d3c();const _0x5e2f91=new Map();for(const _0x1d0ae3 of _0x20950a[_0x24f2('0x48')]['document'][_0x24f2('0x104')]['getOperations'](this[_0x24f2('0x103')]))if([_0x24f2('0x60'),_0x24f2('0x11c'),_0x24f2('0xc2'),_0x24f2('0x42')]['includes'](_0x1d0ae3['type'])){const _0x2e6d9a=_0x1d0ae3[_0x24f2('0xc3')],_0x41e02a=_0x5e2f91[_0x24f2('0xb2')](_0x2e6d9a)||[];_0x41e02a['push'](_0x1d0ae3),_0x5e2f91[_0x24f2('0x13')](_0x2e6d9a,_0x41e02a);}this[_0x24f2('0x103')]=null;for(const [_0x4d0c3c,_0x519c48]of _0x5e2f91){const _0x5c3d4a=_0x4f0f07();_0x20950a[_0x24f2('0x48')]['enqueueChange'](_0x4d0c3c,_0x45ae4b=>{const _0x227082=[];for(const _0x225919 of _0x519c48){let _0x16ce2b,_0x4a3eff,_0x2d8bf0,_0x2014a4;if(_0x24f2('0x60')==_0x225919[_0x24f2('0x27')]){const _0x3934fa=_0x225919;_0x16ce2b=Ut(_0x3934fa[_0x24f2('0x131')][_0x24f2('0x15b')],_0x20950a[_0x24f2('0x48')]),_0x4a3eff=_0x24f2('0x66'),_0x2d8bf0=_0x3934fa[_0x24f2('0x158')],_0x2014a4=_0x3934fa[_0x24f2('0x26')];}else{const _0x58385e=_0x225919,_0x310f87=this['_isBlockAttribute'](_0x58385e['key']),_0xa67d11=this[_0x24f2('0x45')]['has'](_0x58385e['key']);if(!_0x310f87&&!_0xa67d11)continue;_0x16ce2b=_0x310f87?Ut(_0x58385e[_0x24f2('0x53')]['start'][_0x24f2('0x15b')],_0x20950a['model']):_0x58385e[_0x24f2('0x53')],_0x4a3eff=_0x58385e[_0x24f2('0x72')],_0x2d8bf0=_0x24f2('0xc2')==_0x225919[_0x24f2('0x27')]?void 0x0:_0x58385e[_0x24f2('0x14d')],_0x2014a4=_0x58385e[_0x24f2('0x73')];}this['markAttributeChange'](_0x16ce2b,_0x4a3eff,_0x2014a4,_0x2d8bf0,{'groupId':_0x5c3d4a}),_0x227082['push']({'range':_0x16ce2b,'key':_0x4a3eff,'newValue':_0x2d8bf0,'oldValue':_0x2014a4});}this['_reduceExistingSuggestions'](_0x45ae4b,_0x227082);});}}[_0x24f2('0x119')](_0x559583,_0x3451b2){if(0x0==_0x3451b2[_0x24f2('0xe8')])return!0x1;let _0xd35416=!0x1;for(const _0x5c0d44 of _0x3451b2){const _0x2cf948=this[_0x24f2('0x3')](_0x5c0d44[_0x24f2('0x53')],_0x24f2('0x2e'))[_0x24f2('0x159')](_0x4f963c=>!_0x4f963c[_0x24f2('0x13b')][_0x24f2('0x0')])[_0x24f2('0x2d')](_0x76a17d=>_0x76a17d[_0x24f2('0x7f')]),_0x3fbe14=_0x232543({'newValue':_0x5c0d44[_0x24f2('0x14d')]});_0x2cf948[_0x24f2('0x159')](_0x5ae6ba=>{const [_0x35e2e8,_0x27ac9b]=_0x5ae6ba[_0x24f2('0x15')][_0x24f2('0x111')]('|');return _0x35e2e8==_0x5c0d44[_0x24f2('0x72')]&&_0x27ac9b!=_0x3fbe14;})[_0x24f2('0x177')](_0x55528f=>{this[_0x24f2('0xed')](_0x55528f,_0x5c0d44[_0x24f2('0x53')],_0x559583),_0xd35416=!0x0;});}return _0xd35416;}['_reduceSuggestionAttributeRange'](_0x25c2e4,_0x488924,_0xefebab){const _0x3ec868=_0x25c2e4[_0x24f2('0x126')]()[_0x24f2('0x1f')](_0x488924);0x0!==_0x3ec868[_0x24f2('0xe8')]?0x1!==_0x3ec868['length']?this[_0x24f2('0xfe')](_0x25c2e4,_0x488924[_0x24f2('0x83')],_0x488924[_0x24f2('0x16d')]):this[_0x24f2('0x18')](_0x25c2e4,_0x3ec868[0x0]):_0xefebab[_0x24f2('0x15c')](_0x25c2e4['getFirstMarker']());}}class Bt{constructor(_0x236e1f){this[_0x24f2('0xc7')]=_0x236e1f,this[_0x24f2('0xa5')]=_0x236e1f[_0x24f2('0x48')],this[_0x24f2('0x24')]=new Map(),this[_0x24f2('0xc')]=new Map(),this[_0x24f2('0x9b')]();}['buildSuggestion'](_0x22aa51,_0x9f2078,_0x5f581d,_0x5a6dcc,_0x28e9f0,_0x484fdb){return new _0x897dd2(this[_0x24f2('0xa5')],{'type':_0x22aa51,'subType':_0x9f2078,'id':_0x5f581d,'author':_0x5a6dcc,'creator':_0x5a6dcc,'attributes':_0x28e9f0,'onAttributesChange':_0x484fdb,'onAccept':(..._0x643d0)=>this['getSuggestionCallback'](_0x22aa51,_0x9f2078,'accept')(..._0x643d0),'onDiscard':(..._0x586766)=>this[_0x24f2('0x156')](_0x22aa51,_0x9f2078,_0x24f2('0xf8'))(..._0x586766)});}[_0x24f2('0xd4')](_0x5279ca,_0x1053c1,_0x188323,_0x2e4806){const _0x3c6fdd=_0x5279ca+':'+_0x1053c1+':'+_0x188323;this[_0x24f2('0x24')]['set'](_0x3c6fdd,_0x2e4806);}['getSuggestionCallback'](_0x454330,_0x665a69,_0x460a5d){const _0x21b7b6=_0x454330+':'+_0x665a69+':'+_0x460a5d;return this['_customCallbacks'][_0x24f2('0xb2')](_0x21b7b6)||this[_0x24f2('0xc')]['get'](_0x454330+':'+_0x460a5d);}['_registerDefaultCallbacks'](){const _0x4d1622=()=>!0x1,_0x4d4b53=_0x1c9500=>{_0x1c9500['sort']((_0x1dcb61,_0x39dde9)=>_0x1dcb61[_0x24f2('0x83')][_0x24f2('0xae')](_0x39dde9[_0x24f2('0x83')])?0x1:-0x1),this[_0x24f2('0xa5')][_0x24f2('0x78')](_0x1cff28=>{for(const _0x4ef710 of _0x1c9500){let _0x3f41f9;_0x3f41f9=_0x4ef710[_0x24f2('0x16d')][_0x24f2('0x133')]&&_0x4ef710[_0x24f2('0x16d')][_0x24f2('0x112')]==_0x4ef710[_0x24f2('0x83')][_0x24f2('0x15b')]?_0x1cff28[_0x24f2('0x4d')](_0x4ef710[_0x24f2('0x83')][_0x24f2('0x15b')],'on'):_0x1cff28['createSelection'](_0x4ef710),this[_0x24f2('0xa5')]['deleteContent'](_0x3f41f9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x38d2b4=(_0x262078,_0x4b8ff5)=>{_0x4b8ff5&&this[_0x24f2('0xa5')][_0x24f2('0x78')](_0x4378f1=>{const {commandName:_0x134dcf,commandParams:_0x2620fb=[]}=_0x4b8ff5,_0x15f2a0=_0x262078['map'](_0x29e3c3=>(xt(_0x29e3c3)&&(_0x29e3c3=this['_model']['createRange'](_0x29e3c3[_0x24f2('0x16d')])),_0x29e3c3))['filter'](_0x5ce462=>_0x24f2('0x90')!==_0x5ce462[_0x24f2('0x2f')][_0x24f2('0x32')]);if(_0x15f2a0[_0x24f2('0xe8')]<0x1)return;const _0x4921ce=Array['from'](this[_0x24f2('0xa5')][_0x24f2('0x6b')]['selection']['getRanges']())[_0x24f2('0x2d')](_0x5530e7=>_0x353646['fromRange'](_0x5530e7));_0x4378f1[_0x24f2('0xc0')](_0x15f2a0);for(const _0x3917e3 of this['_editor'][_0x24f2('0x138')]['commands']())_0x3917e3[_0x24f2('0x16a')]();_0x2620fb[_0x24f2('0x44')]({'forceDefaultExecution':!0x0}),this[_0x24f2('0xc7')][_0x24f2('0x16')](_0x134dcf,..._0x2620fb);const _0x2d8397=_0x4921ce[_0x24f2('0x159')](_0x124943=>_0x24f2('0x90')!=_0x124943[_0x24f2('0x2f')][_0x24f2('0x32')]);_0x2d8397[_0x24f2('0xe8')]>0x0&&_0x4378f1[_0x24f2('0xc0')](_0x2d8397);for(const _0x21b54c of _0x4921ce)_0x21b54c[_0x24f2('0x4')]();});},_0x13c505=(_0x5d4b01,_0x6c667)=>0x1==_0x5d4b01[_0x24f2('0xe8')]&&0x1==_0x6c667['length']&&_0x5d4b01[0x0][_0x24f2('0x16d')][_0x24f2('0xba')](_0x6c667[0x0][_0x24f2('0x83')]),_0x58b662=(_0xd459c,_0x42b9a4,_0x191313,_0x5caecf)=>Ot(_0xd459c,_0x42b9a4,_0x191313,_0x5caecf,this[_0x24f2('0xa5')])?[_0xd459c,_0x42b9a4]:Ot(_0x42b9a4,_0xd459c,_0x5caecf,_0x191313,this[_0x24f2('0xa5')])?[_0x42b9a4,_0xd459c]:null;this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0xf3'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('insertion:discard',_0x4d4b53),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x145'),_0x13c505),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x6d'),_0x58b662),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x6c'),_0x4d4b53),this['_defaultCallbacks'][_0x24f2('0x13')]('deletion:discard',_0x4d1622),this[_0x24f2('0xc')]['set'](_0x24f2('0x11f'),_0x13c505),this[_0x24f2('0xc')][_0x24f2('0x13')]('deletion:chain',_0x58b662),this['_defaultCallbacks'][_0x24f2('0x13')](_0x24f2('0x163'),_0x38d2b4),this['_defaultCallbacks'][_0x24f2('0x13')](_0x24f2('0x86'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('formatInline:join',_0x13c505),this['_defaultCallbacks'][_0x24f2('0x13')]('formatInline:chain',_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x2a'),_0x38d2b4),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x108'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x6a'),_0x13c505),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x55'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('attribute:accept',_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('attribute:discard',(_0x5317b3,_0x3d5207)=>{if(!_0x3d5207)return;const _0x578153=this[_0x24f2('0xc7')][_0x24f2('0x4a')][_0x24f2('0xb2')](p);this['_model'][_0x24f2('0x78')](_0x25ccb0=>{if(_0x24f2('0x66')==_0x3d5207[_0x24f2('0x72')])for(const _0x4d8d29 of _0x5317b3){const _0xc5afbe=_0x4d8d29[_0x24f2('0x83')][_0x24f2('0x15b')],_0x3cc3c4=_0x3d5207[_0x24f2('0x73')];_0x25ccb0[_0x24f2('0x60')](_0xc5afbe,_0x3cc3c4);}else{if(_0x578153[_0x24f2('0x13d')](_0x3d5207[_0x24f2('0x72')]))for(const _0x5150be of _0x5317b3)void 0x0!==_0x3d5207[_0x24f2('0x73')]?_0x25ccb0['setAttribute'](_0x3d5207[_0x24f2('0x72')],_0x3d5207[_0x24f2('0x73')],_0x5150be[_0x24f2('0x83')]['nodeAfter']):_0x25ccb0[_0x24f2('0xc2')](_0x3d5207[_0x24f2('0x72')],_0x5150be[_0x24f2('0x83')][_0x24f2('0x15b')]);else for(const _0x59cff9 of _0x5317b3)_0x3d5207[_0x24f2('0x73')]?_0x25ccb0[_0x24f2('0x2b')](_0x3d5207[_0x24f2('0x72')],_0x3d5207[_0x24f2('0x73')],_0x59cff9):_0x25ccb0['removeAttribute'](_0x3d5207[_0x24f2('0x72')],_0x59cff9);}});}),this[_0x24f2('0xc')][_0x24f2('0x13')]('attribute:join',_0x13c505);}}function Tt(_0x273299,_0x46f4f0,_0x586a4c){for(const _0x8b23cf of _0x46f4f0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x8b23cf['root']==_0x8b23cf)return!0x1;if(!_0x586a4c[_0x24f2('0xfb')](_0x8b23cf))return!0x1;if(_0x273299[_0x24f2('0x59')](_0x8b23cf)||_0x273299['isLimit'](_0x8b23cf))return!0x0;}return!0x1;}function xt(_0x502659){return _0x502659[_0x24f2('0x16d')]['parent']==_0x502659[_0x24f2('0x83')][_0x24f2('0x15b')]&&_0x502659[_0x24f2('0x16d')][_0x24f2('0xe')];}function Et(_0x3549a8,_0x507c35,_0x383b5c,_0x40e741){const _0x1a95e3=_0x3cfad4=>!_0x3cfad4[_0x24f2('0x65')]['is'](_0x24f2('0xbb'))&&!_0x40e741[_0x24f2('0x59')](_0x3cfad4[_0x24f2('0x65')]),_0x14f80b=_0x3549a8[_0x24f2('0x83')][_0x24f2('0x13e')](_0x1a95e3),_0x3a76ed=_0x3549a8[_0x24f2('0x16d')][_0x24f2('0x13e')](_0x1a95e3,{'direction':_0x24f2('0x155')});return(!_0x3549a8[_0x24f2('0x83')]['isEqual'](_0x14f80b)||!_0x3549a8[_0x24f2('0x16d')]['isEqual'](_0x3a76ed))&&(_0x14f80b[_0x24f2('0xae')](_0x3a76ed)?_0x383b5c[_0x24f2('0x10a')](_0x507c35,{'range':_0x383b5c[_0x24f2('0x5d')](_0x14f80b,_0x3a76ed)}):_0x383b5c[_0x24f2('0x15c')](_0x507c35),!0x0);}function Rt(_0x4e4b35){return _0x232543(_0x4e4b35);}function jt(_0x919ea){const _0x100465=_0x919ea[_0x24f2('0x83')][_0x24f2('0x15b')];return _0x100465&&_0x100465['is'](_0x24f2('0x28'));}function Ut(_0xfbcc69,_0x5d9832){const _0x3cdd03=_0x5d9832[_0x24f2('0x10b')][_0x24f2('0x59')](_0xfbcc69)||_0x5d9832[_0x24f2('0x10b')][_0x24f2('0x30')](_0xfbcc69);return _0x5d9832[_0x24f2('0x5d')](_0x5d9832[_0x24f2('0x79')](_0xfbcc69,_0x24f2('0x96')),_0x3cdd03?_0x5d9832[_0x24f2('0x25')](_0xfbcc69):_0x5d9832[_0x24f2('0x79')](_0xfbcc69,_0x24f2('0x16d')));}function Ot(_0x3a745e,_0x2526b2,_0x3b0665,_0x157c78,_0x9e4424){if(!Vt(_0x3a745e,_0x2526b2))return!0x1;if(_0x3b0665[_0x24f2('0x16d')][_0x24f2('0xba')](_0x157c78[_0x24f2('0x83')]))return!0x0;if(_0x3a745e[_0x24f2('0x27')]!=_0x2526b2[_0x24f2('0x27')])return!0x1;if(!_0x3b0665[_0x24f2('0x16d')][_0x24f2('0xd9')](_0x157c78[_0x24f2('0x83')]))return!0x1;const _0x4160be=_0x9e4424[_0x24f2('0x5d')](_0x3b0665[_0x24f2('0x16d')],_0x157c78[_0x24f2('0x83')])[_0x24f2('0x106')]();for(const _0x4dec67 of _0x4160be)if([_0x24f2('0xb6'),'elementEnd'][_0x24f2('0x105')](_0x4dec67[_0x24f2('0x27')])&&_0x9e4424[_0x24f2('0x10b')][_0x24f2('0x176')](_0x4dec67[_0x24f2('0x65')]))return!0x1;return!0x0;}function Vt(_0x3a30e4,_0x234923){return!(!_0x3a30e4['_isDataLoaded']||!_0x234923['_isDataLoaded'])&&_0x57a851(_0x3a30e4[_0x24f2('0x149')],_0x234923['attributes']);}function Gt(_0x245881,_0x13705d){const _0x4333d0=Ft(_0x245881[_0x24f2('0x149')]),_0x5cc03e=Ft(_0x13705d);if(!_0x245881[_0x24f2('0xb8')])return!0x1;for(const _0x4c540e of Object['keys'](_0x5cc03e))if(!_0x57a851(_0x4333d0[_0x4c540e],_0x5cc03e[_0x4c540e]))return!0x1;return!0x0;}function Ft(_0x329747){const _0x215c55=Object[_0x24f2('0x165')]({},_0x329747);return delete _0x215c55[_0x24f2('0x8c')],delete _0x215c55[_0x24f2('0xaf')],_0x215c55;}function Pt(_0x58a8a1){return _0x24f2('0x2e')==_0x58a8a1[_0x24f2('0x27')]?_0x58a8a1[_0x24f2('0x15')][_0x24f2('0x111')]('|')[0x0]:null;}
|
|
23
|
+
const _0x4261=['_removeSuggestion','insert','isAtEnd','_setSuggestionData','isUndo','format','isMultiRange','discardAllSuggestions','suggestion','getRanges','_splitMarkerName','getChanges','reconvertMarker','trackChanges.trackFormatChanges','track-changes-suggestion-data-mismatch','root','deletion:join','ck-suggestion-marker-','getSuggestions','_getExternalAuthor','_handleNewSuggestionMarker','options','lowest','size','notReady','track-changes-adapter-already-set','isLimit','_reduceExistingSuggestions','getAllAdjacentSuggestions','stop','trackChangesCommand','_breakSuggestionMarker','removeMarkers','addMarker','markDeletion','getSuggestion','push','_createSuggestion','document','PENDING_ACTION_SUGGESTION','getCommentThread','substring','some','registerPostFixer','_blockAttributeKeys','_isForcedDefaultExecutionBlock','backward','always','markMultiRangeBlockFormat','key','attribute:join','multi','widget','_getSuggestionData','_descriptionFactory','getShiftedBy','$elementName','FORMATTING','editingDowncast','attribute:accept','_getAuthorFromId','Users','_checkSuggestionCorrectness','startsWith','PendingActions','differ','getFirstMarker','insertion','createSelection','_recordAttributeChanges','isEqual','_isRegisteredAttribute','_registerDefaultCallbacks','isTouching','split','_rangeIsInLocalUserInsertion','hasComments','getMarkers','isDocumentOperation','position','updateMarker','attributeNewValue','getChangedMarkers','addMarkerName','formatInline','deletion:','attribute','_findSuggestions','keys','getSuggestionCallback','_enableDefaultAttributesIntegration','formatGroupId','isInsideObject','formatBlock:','from','type','clone','createPositionAfter','unbindElementFromMarkerName','element','_updateSuggestionData','addMarker:suggestion:formatBlock','isOwn','_model','assign','addSuggestionData','values','rejected','change','documentSelection','_refreshSuggestionsChain','isAfter','after','addCommentThread','consume','getNearestSelectionRange','updateSuggestion','isObject','find','commandName','pluginName','getDifference','getUser','data','_onDiscard','accept','range','createRange','LEAVE','set','name','head','forEach','ENTER','writer','_saved','default','markMultiRangeDeletion','creator','groupId','author','activeMarkers','_recordAttributeSuggestions','removed','toUpperCase','warn','selection','setAttribute','previous','acceptSuggestion','_processAttributeChanges','$marker','rethrowUnexpectedError','_customCallbacks','acceptAllSuggestions','join','deletion','containerElement','_mergeNestedSuggestions','fromRange','formatInline:discard','data-suggestion','value','getWalker','track-changes-adapter-missing-getsuggestion','_isDataLoaded','multipleBlocks','getMultiRangeId','formatInline:','removeMarker','markerName','discard','_processAttributeSuggestions','adapter','containsRange','plugins','_cutOutSuggestionMarker','dataDowncast','suggestion:attribute:','_adapter','open','moveTargetPosition','createPositionBefore','accepted','isRemovable','isBlock','getItems','_registerInlineAttribute','collaboration.channelId','markers','attribute:discard','addRange','getIntersection','createElement','isIntersectingWithRange','_setSuggestionRange','suggestion:','_trackFormatChanges','for','filter','isNextTo','splitPosition','end','every','addMarker:suggestion','never','enqueueChange','ck-suggestion-marker-formatInline','length','resolve','unshift','execute','nodeBefore','schema','_isBlockAttribute','trackChanges','discardSuggestion','isArray','sort','getLastMatchingPosition','getCustomProperty','addMarker:suggestion:attribute','refresh','ready','elementToElement','buildSuggestion','track-changes-suggestion-not-found','$text','hasCommentThread','oldValue','ck-suggestion-marker-formatBlock','conversion','has','suggestionLoaded','dataReady','removeComment','containsRangeInObject','pop','before','next','$graveyard','removeMarker:suggestion:attribute','bindElementToMarker','applyOperation','listenTo','createdAt','define','dataToMarker','addHighlight','remove','item','_defaultCallbacks','removeClass','_editor','isCollapsed','editor','locale','_initAriaMarkerChangeAnnouncements','createRangeOn','update:suggestion','discardSelectedSuggestions','isInContent','isLocal','addClass','newRange','getFirstRange','stopListening','_enabledCommands','_inlineAttributeKeys','_addSuggestionMarker','elementEnd','formatBlock','delete','_joinWithAdjacentSuggestions','addUser','_SUGGESTION_ANNOUNCEMENT','@external','markerNameToElements','insertion:chain','requires','markMultiRangeInsertion','originalSuggestionId','getContainedElement','start','highest','suggestionChanged','config','clear','detach','addSuggestion','external:','formatInline:join','deletion:chain','isBefore','formatInline:chain','getAttribute','nodeAfter','markBlockFormat','commands','batch','get','isIntersecting','ck-suggestion-marker','insertion:discard','deletion:discard','markInsertion','tablePasteChainId','splice','attributes','includes','toViewElement','consumable','enableReadOnlyMode','howMany','getRange','_suggestions','catch','rename','setSelection','forceDefaultExecution','model','add','unbind','attribute:','_suggestionFactory','markerToData','containsPosition','_commentsRepository','_element','high','marker-count','return','commentThread','insertContent','showSuggestionHighlights','TrackChangesEditing','isAtStart','mapper','upcast','rootName','attributeOldValue','parent','authorName','normal','map','subType','_registerBlockAttribute','_getMarkerAnnouncementText','_reduceSuggestionAttributeRange','fetchCommentThread','_getAttributeKey','change:data','attributeKey','CommentsRepository','createPositionAt','_joinSuggestions','ck-suggestion-marker--active','formatBlock:discard','registerCustomCallback','_refreshAttributeSuggestionsChain','isExternal','then','getAncestors','enableCommand','removeAttribute','oldRange','fire','_addThreadToSuggestion','markAttributeChange','skipNestingCheck','_suggestionState','acceptSelectedSuggestions','setTo'];(function(_0x54e7d7,_0x426163){const _0x2922df=function(_0x2c89a2){while(--_0x2c89a2){_0x54e7d7['push'](_0x54e7d7['shift']());}};_0x2922df(++_0x426163);}(_0x4261,0x1c9));const _0x2922=function(_0x54e7d7,_0x426163){_0x54e7d7=_0x54e7d7-0x0;let _0x2922df=_0x4261[_0x54e7d7];return _0x2922df;};import{Plugin as _0x1b76ca,PendingActions as _0x528891}from'ckeditor5/src/core.js';import{LiveRange as _0xf7cd46}from'ckeditor5/src/engine.js';import{CKEditorError as _0x5c60e2,uid as _0xafd120,priorities as _0x30ea24,logWarning as _0x2ff133}from'ckeditor5/src/utils.js';import{toWidget as _0x272a19}from'ckeditor5/src/widget.js';import{Users as _0xdf7b32,hashObject as _0xfbb62e,surroundingMarkersDetector as _0x34ee1c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x154b5e from'./commands/trackchangescommand.js';import _0x3a27c5 from'./commands/acceptsuggestioncommand.js';import _0x14e4fa from'./commands/discardsuggestioncommand.js';import _0x500b21 from'./commands/executeonallsuggestionscommand.js';import _0x4c1751 from'./commands/executeonselectedsuggestionscommand.js';import _0x4beafd from'./suggestion.js';import _0x24b4d1 from'./suggestiondescriptionfactory.js';import _0x43f699 from'./integrations/aiassistant.js';import _0x215911 from'./integrations/alignment.js';import _0x251099 from'./integrations/basicstyles.js';import _0x88750a from'./integrations/blockquote.js';import _0x55815c from'./integrations/casechange.js';import _0x453a9e from'./integrations/ckbox.js';import _0x4fd840 from'./integrations/codeblock.js';import _0x3a5bb8 from'./integrations/comments.js';import _0x3a2cc3 from'./integrations/deletecommand.js';import _0x51b73f from'./integrations/list.js';import _0x3c9af8 from'./integrations/listproperties.js';import _0x376e55 from'./integrations/entercommand.js';import _0x5ee1a3 from'./integrations/findandreplace.js';import _0x56432f from'./integrations/font.js';import _0x5b4bb7 from'./integrations/formatpainter.js';import _0x17dc82 from'./integrations/heading.js';import _0x275bed from'./integrations/highlight.js';import _0x409345 from'./integrations/horizontalline.js';import _0x11595d from'./integrations/htmlembed.js';import _0x56e718 from'./integrations/image.js';import _0x450f2e from'./integrations/imagereplace.js';import _0x256487 from'./integrations/imagestyle.js';import _0x20be8e from'./integrations/importword.js';import _0xb1e32d from'./integrations/indent.js';import _0x509ee0 from'./integrations/inputcommand.js';import _0x385551 from'./integrations/link.js';import _0xb5e246 from'./integrations/legacylist.js';import _0x521c0c from'./integrations/legacylistproperties.js';import _0x4148d2 from'./integrations/mediaembed.js';import _0x417f64 from'./integrations/mention.js';import _0x71d927 from'./integrations/pagebreak.js';import _0x1c5865 from'./integrations/paragraph.js';import _0x384c19 from'./integrations/removeformat.js';import _0x9d3764 from'./integrations/restrictededitingmode.js';import _0x286165 from'./integrations/shiftentercommand.js';import _0x54806e from'./integrations/standardeditingmode.js';import _0x4a9cbb from'./integrations/style.js';import _0x308e78 from'./integrations/table.js';import _0x5964d7 from'./integrations/tablemergesplit.js';import _0x26f728 from'./integrations/tableheadings.js';import _0x174fb4 from'./integrations/tableclipboard.js';import _0x125d37 from'./integrations/tablecolumnresize.js';import _0x2e3200 from'./integrations/template.js';import _0x306554 from'./integrations/tableofcontents.js';import _0x4bd0c2 from'./integrations/title.js';import _0x40aefe from'./integrations/undo.js';import _0x3a7705 from'./integrations/tablecaption.js';import _0x21f5d5 from'./integrations/tableproperties.js';import{getTranslation as _0x2f167f}from'./utils/common-translations.js';import{isEqual as _0x251346,omit as _0x1f34e9}from'lodash-es';export const renameAttributeKey=_0x2922('0x159');export default class p extends _0x1b76ca{static get[_0x2922('0xc3')](){return[_0x2922('0x10d'),_0xdf7b32,_0x528891,_0x43f699,_0x215911,_0x251099,_0x88750a,_0x453a9e,_0x55815c,_0x4fd840,_0x3a5bb8,_0x3a2cc3,_0x376e55,_0x5ee1a3,_0x56432f,_0x5b4bb7,_0x17dc82,_0x275bed,_0x409345,_0x11595d,_0x56e718,_0x256487,_0x450f2e,_0x20be8e,_0xb1e32d,_0x509ee0,_0xb5e246,_0x521c0c,_0x385551,_0x51b73f,_0x3c9af8,_0x4148d2,_0x417f64,_0x71d927,_0x1c5865,_0x384c19,_0x9d3764,_0x286165,_0x54806e,_0x4a9cbb,_0x308e78,_0x5964d7,_0x26f728,_0x3a7705,_0x174fb4,_0x125d37,_0x306554,_0x21f5d5,_0x2e3200,_0x4bd0c2,_0x40aefe];}static get[_0x2922('0x24')](){return _0x2922('0xfb');}constructor(_0x590401){function _0x3ed858(_0x538e2a){return _0x538e2a[_0x2922('0x104')](_0x529c04=>String['fromCharCode'](_0x529c04))[_0x2922('0x47')]('');}super(_0x590401),this[_0x2922('0x3a')]=!0x1,this[_0x2922('0x2d')](_0x2922('0x39'),[]),this['on']('change:activeMarkers',(_0x4f95c8,_0x3029f2,_0x5e2c0e,_0x5a7b10)=>{this[_0x2922('0x13')][_0x2922('0x18')](()=>{for(const _0x3a5a7d of[..._0x5a7b10,..._0x5e2c0e])this[_0x2922('0x13')][_0x2922('0x69')][_0x2922('0x94')](_0x3a5a7d)&&_0x590401['editing'][_0x2922('0x12d')](_0x3a5a7d);});}),this[_0x2922('0x157')]=new _0x24b4d1(this[_0x2922('0xab')][_0x2922('0xec')][_0x2922('0x81')],this[_0x2922('0xab')]['locale']),this['_adapter']=null,this[_0x2922('0xf0')]=new Bt(this[_0x2922('0xab')]),this[_0x2922('0xe7')]=new Map(),this[_0x2922('0xf3')]=_0x590401[_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x10d')),this[_0x2922('0xb7')]=new Set(),this['_model']=this[_0x2922('0xab')][_0x2922('0xec')],this['_suggestionState']=new WeakMap(),this[_0x2922('0x14e')]=!0x1,this[_0x2922('0x14d')]=new Set(['$elementName']),this[_0x2922('0xb8')]=new Set(),_0x590401[_0x2922('0xca')]['define']('trackChanges.trackFormatChanges',_0x2922('0x34')),this[_0x2922('0x71')]=_0x590401['config'][_0x2922('0xd8')](_0x2922('0x12e')),_0x590401['config'][_0x2922('0xa2')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x590401['config'][_0x2922('0xd8')]('trackChanges.mergeNestedSuggestions'),this[_0x2922('0x13f')]=new _0x154b5e(_0x590401,this[_0x2922('0xb7')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3ed858([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3ed858([0x34,0x30,0x34,0x38,0x30,0x34,0x31,0x34]);}['init'](){const _0x12a447=this[_0x2922('0xab')],_0x34ed5b=(_0x2745d5,_0x498f75)=>{if(_0x2922('0x2')!=_0x2745d5)return _0x2922('0x132')+_0x2745d5;const _0x4fbc53=_0x498f75[_0x2922('0x16b')]('|')[0x0];return this[_0x2922('0x82')](_0x4fbc53)?_0x2922('0x92'):_0x2922('0x7b');};_0x12a447['conversion'][_0x2922('0x72')](_0x2922('0x15b'))['markerToHighlight']({'model':_0x2922('0x129'),'view':_0x26f33c=>{const {id:_0x3f425a,type:_0x3d29fd,subType:_0x592109}=this[_0x2922('0x12b')](_0x26f33c[_0x2922('0x56')]),_0x3b30ed=[_0x2922('0xda'),_0x34ed5b(_0x3d29fd,_0x592109)];let _0x1c4a14=0xbb8;return this['activeMarkers']['includes'](_0x26f33c[_0x2922('0x56')])&&(_0x3b30ed[_0x2922('0x145')](_0x2922('0x110')),_0x1c4a14=0xbc2),_0x2922('0x48')==_0x3d29fd&&(_0x1c4a14+=0x5),{'classes':_0x3b30ed,'attributes':{'data-suggestion':_0x3f425a},'priority':_0x1c4a14};}}),_0x12a447['conversion'][_0x2922('0x72')](_0x2922('0x5d'))[_0x2922('0xed')](_0x1c25db=>{_0x1c25db['on'](_0x2922('0x78'),(_0x2364a3,_0x593a1c,_0xe7f92f)=>{if(!_0xe7f92f[_0x2922('0x136')][_0x2922('0xfa')])return;const _0x3640f9=_0x593a1c[_0x2922('0xa6')];if(!_0x3640f9)return;const _0x24dc3b=_0xe7f92f['mapper']['toViewElement'](_0x3640f9);_0x12a447[_0x2922('0xec')][_0x2922('0x81')]['isObject'](_0x3640f9)&&_0x24dc3b&&!_0x24dc3b[_0x2922('0x88')](_0x2922('0x155'))&&_0x24dc3b['is'](_0x2922('0x49'))&&_0x272a19(_0x24dc3b,_0xe7f92f[_0x2922('0x32')]);},{'priority':'high'});}),_0x12a447[_0x2922('0x93')][_0x2922('0x72')](_0x2922('0x5d'))['markerToHighlight']({'model':'suggestion','view':(_0x6dabff,_0xd84730)=>{if(!_0xd84730['options'][_0x2922('0xfa')])return null;const {type:_0x20ab3c,subType:_0x148925}=this[_0x2922('0x12b')](_0x6dabff[_0x2922('0x56')]);return{'classes':['ck-suggestion-marker',_0x34ed5b(_0x20ab3c,_0x148925)],'priority':0xbb8};}});const _0x4e7b8d=({showActiveMarkers:_0x26602c=!0x0,isAttributeSuggestion:_0x24e734=!0x1}={})=>(_0x1a4fdf,_0x5dc7d2,_0x2c9065)=>{if(!_0x5dc7d2[_0x2922('0xa6')])return;const {id:_0x192922}=this[_0x2922('0x12b')](_0x5dc7d2[_0x2922('0x56')]);if(_0x24e734){const _0x2c60a0=this['_suggestions'][_0x2922('0xd8')](_0x192922),_0x36edef=this[_0x2922('0x10a')](_0x2c60a0);if(!this[_0x2922('0x82')](_0x36edef))return;}if(_0x5dc7d2[_0x2922('0xa6')]['is'](_0x2922('0x3e')))return void _0x2c9065[_0x2922('0xe3')][_0x2922('0x1e')](_0x5dc7d2['item'],_0x1a4fdf[_0x2922('0x2e')]);const _0x298ba1=_0x2c9065[_0x2922('0xfd')][_0x2922('0xe2')](_0x5dc7d2[_0x2922('0xa6')]);if(_0x5dc7d2['item']['is']('element')&&_0x12a447[_0x2922('0xec')]['schema'][_0x2922('0x65')](_0x5dc7d2[_0x2922('0xa6')])&&!_0x298ba1[_0x2922('0x88')](_0x2922('0xa4'))){_0x2c9065[_0x2922('0x32')][_0x2922('0xb3')]([_0x2922('0xda'),_0x2922('0x92')],_0x298ba1),_0x2c9065['writer']['setAttribute']('data-suggestion',_0x192922,_0x298ba1),_0x2c9065[_0x2922('0xfd')][_0x2922('0x9e')](_0x298ba1,_0x5dc7d2['markerName']),_0x26602c&&(this['activeMarkers']['includes'](_0x5dc7d2[_0x2922('0x56')])?_0x2c9065[_0x2922('0x32')]['addClass'](_0x2922('0x110'),_0x298ba1):_0x2c9065[_0x2922('0x32')]['removeClass']('ck-suggestion-marker--active',_0x298ba1));for(const _0x3df699 of _0x12a447['model']['createRangeIn'](_0x5dc7d2[_0x2922('0xa6')])[_0x2922('0x66')]())_0x2c9065[_0x2922('0xe3')][_0x2922('0x1e')](_0x3df699,_0x1a4fdf['name']);_0x2c9065['consumable'][_0x2922('0x1e')](_0x5dc7d2[_0x2922('0xa6')],_0x1a4fdf['name']);}};_0x12a447['conversion'][_0x2922('0x72')](_0x2922('0x5d'))[_0x2922('0xed')](_0x5d80fc=>{_0x5d80fc['on'](_0x2922('0x11'),(_0x285eed,_0x763415,_0x42f7d9)=>{_0x42f7d9[_0x2922('0x136')][_0x2922('0xfa')]&&_0x4e7b8d({'showActiveMarkers':!0x1})(_0x285eed,_0x763415,_0x42f7d9);},{'priority':_0x2922('0xc8')});}),_0x12a447['conversion'][_0x2922('0x72')](_0x2922('0x5d'))[_0x2922('0xed')](_0x2ae60b=>{_0x2ae60b['on'](_0x2922('0x89'),(_0xb6b969,_0x2e6d74,_0x33ebcc)=>{_0x33ebcc['options'][_0x2922('0xfa')]&&_0x4e7b8d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb6b969,_0x2e6d74,_0x33ebcc);},{'priority':_0x2922('0xc8')});}),_0x12a447[_0x2922('0x93')][_0x2922('0x72')](_0x2922('0x5d'))[_0x2922('0xf1')]({'model':_0x2922('0x129'),'view':(_0x1d0c40,_0x8133e8)=>_0x8133e8[_0x2922('0x136')][_0x2922('0xfa')]?null:{'group':'suggestion','name':_0x1d0c40['substr'](0xb)}}),_0x12a447[_0x2922('0x93')]['for'](_0x2922('0xfe'))[_0x2922('0x8c')]({'view':{'name':_0x2922('0x129'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5a19a8,{writer:_0x299d73})=>{let _0x3d28f8=_0x2922('0x70')+_0x5a19a8['getAttribute']('suggestion-type')+':'+_0x5a19a8[_0x2922('0xd3')]('id');return _0x5a19a8['getAttribute'](_0x2922('0xf6'))&&(_0x3d28f8+=':'+_0x5a19a8[_0x2922('0xd3')](_0x2922('0xf6'))),_0x299d73[_0x2922('0x6d')](_0x2922('0x43'),{'data-name':_0x3d28f8});}}),_0x12a447['conversion']['for']('upcast')[_0x2922('0xa3')]({'view':_0x2922('0x129')}),_0x12a447[_0x2922('0x93')][_0x2922('0x72')](_0x2922('0x15b'))['add'](_0x53c01a=>{_0x53c01a['on'](_0x2922('0x11'),_0x4e7b8d(),{'priority':_0x2922('0xf5')});}),_0x12a447['conversion'][_0x2922('0x72')](_0x2922('0x15b'))[_0x2922('0xed')](_0x25cb48=>{_0x25cb48['on']('addMarker:suggestion:attribute',_0x4e7b8d({'isAttributeSuggestion':!0x0}),{'priority':_0x2922('0xf5')});}),_0x12a447['conversion']['for'](_0x2922('0x15b'))['add'](_0x5c308d=>{_0x5c308d['on']('removeMarker:suggestion:formatBlock',(_0x514347,_0x10ce2b,_0x444748)=>{const _0x1c0642=_0x444748[_0x2922('0xfd')][_0x2922('0xc1')](_0x10ce2b[_0x2922('0x56')]);if(_0x1c0642)for(const _0x89dfff of _0x1c0642)_0x89dfff[_0x2922('0x88')](_0x2922('0xa4'))||(_0x444748[_0x2922('0x32')]['removeClass']([_0x2922('0xda'),'ck-suggestion-marker-formatBlock',_0x2922('0x110')],_0x89dfff),_0x444748['writer'][_0x2922('0x118')](_0x2922('0x4d'),_0x89dfff),_0x444748[_0x2922('0xfd')]['unbindElementFromMarkerName'](_0x89dfff,_0x10ce2b['markerName']));},{'priority':_0x2922('0xf5')});}),_0x12a447['conversion'][_0x2922('0x72')]('editingDowncast')[_0x2922('0xed')](_0x2301a9=>{_0x2301a9['on'](_0x2922('0x9d'),(_0x496c4a,_0x5ac353,_0x18fa5d)=>{const _0x1e6d25=_0x18fa5d[_0x2922('0xfd')][_0x2922('0xc1')](_0x5ac353['markerName']);if(!_0x1e6d25)return;const {id:_0x2acaa2}=this[_0x2922('0x12b')](_0x5ac353[_0x2922('0x56')]),_0x3ee1e1=this['_suggestions'][_0x2922('0xd8')](_0x2acaa2),_0x5d8ed5=this['_getAttributeKey'](_0x3ee1e1);if(this['_isBlockAttribute'](_0x5d8ed5))for(const _0x314919 of _0x1e6d25)_0x314919[_0x2922('0x88')](_0x2922('0xa4'))||(_0x18fa5d[_0x2922('0x32')][_0x2922('0xa8')]([_0x2922('0xda'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x314919),_0x18fa5d[_0x2922('0x32')][_0x2922('0x118')](_0x2922('0x4d'),_0x314919),_0x18fa5d[_0x2922('0xfd')][_0x2922('0xe')](_0x314919,_0x5ac353[_0x2922('0x56')]));},{'priority':_0x2922('0xf5')});}),_0x12a447[_0x2922('0xec')][_0x2922('0x147')]['registerPostFixer'](_0x5c19e0=>{let _0x452976=!0x1;const _0x48ce83=Array[_0x2922('0xa')](_0x12a447['model']['document']['differ']['getChangedMarkers']()),_0x55954e=new Set();for(const {name:_0x55db8a,data:_0x33aef4}of _0x48ce83){const {group:_0x170853,type:_0x3c38f0,subType:_0x466dd3,id:_0x1c6b47}=this[_0x2922('0x12b')](_0x55db8a);if(_0x2922('0x129')!==_0x170853)continue;const _0x117754=this[_0x2922('0xe7')][_0x2922('0xd8')](_0x1c6b47);if(null!=_0x33aef4[_0x2922('0xb4')]){'formatInline'==_0x3c38f0&&(_0x452976=_0x452976||Tt(_0x33aef4[_0x2922('0xb4')],_0x55db8a,_0x5c19e0,_0x12a447[_0x2922('0xec')][_0x2922('0x81')]));const _0x464608=_0x2922('0x2')==_0x3c38f0&&this['_isBlockAttribute'](_0x466dd3[_0x2922('0x16b')]('|')[0x0]);if(_0x33aef4[_0x2922('0xb4')][_0x2922('0xaa')]||_0x2922('0x9c')==_0x33aef4[_0x2922('0xb4')][_0x2922('0x130')][_0x2922('0xff')]||_0x2922('0xbb')==_0x3c38f0&&!Vt(_0x33aef4['newRange'])||_0x464608&&!Vt(_0x33aef4[_0x2922('0xb4')])||'deletion'==_0x3c38f0&&!(!Rt(_0x3a21f5=_0x33aef4['newRange'])&&!function(_0x4a6df7){return _0x4a6df7['start'][_0x2922('0x101')]==_0x4a6df7[_0x2922('0x76')]['nodeBefore']&&_0x4a6df7[_0x2922('0xc7')]['isAtEnd'];}(_0x3a21f5)))_0x5c19e0['removeMarker'](_0x55db8a),_0x452976=!0x0;else{if(!_0x117754||!_0x117754['isInContent'])continue;_0x55954e[_0x2922('0xed')](_0x117754);}}}var _0x3a21f5;return _0x55954e[_0x2922('0x138')]>0x0&&(_0x452976=!!this['_joinWithAdjacentSuggestions'](_0x55954e)||_0x452976),_0x452976;}),_0x12a447[_0x2922('0xec')]['document'][_0x2922('0x14c')](_0x3f3bba=>{let _0x47440e=!0x1;for(const _0x34dbfb of _0x12a447[_0x2922('0xec')][_0x2922('0x147')]['differ']['getChanges']())if(_0x2922('0x122')==_0x34dbfb[_0x2922('0xb')])for(const _0x5edbe2 of this[_0x2922('0xe7')][_0x2922('0x16')]()){if(_0x5edbe2['isMultiRange']||!_0x5edbe2['isInContent'])continue;const _0x527f1a='formatBlock'==_0x5edbe2[_0x2922('0xb')],_0x586f35=this[_0x2922('0x10a')](_0x5edbe2),_0x15d9bc=_0x586f35&&this[_0x2922('0x82')](_0x586f35);if(!_0x527f1a&&!_0x15d9bc)continue;const _0xcf85cc=_0x5edbe2['getFirstRange']();if(_0xcf85cc[_0x2922('0xc7')]['parent']!=_0xcf85cc['end'][_0x2922('0x101')]&&!_0xcf85cc[_0x2922('0x76')][_0x2922('0x123')]){const _0x59c304=_0x12a447[_0x2922('0xec')][_0x2922('0x10e')](_0xcf85cc[_0x2922('0xc7')][_0x2922('0xd4')],_0x2922('0x76')),_0x59692b=_0x12a447[_0x2922('0xec')][_0x2922('0x2b')](_0xcf85cc[_0x2922('0xc7')],_0x59c304);_0x3f3bba[_0x2922('0x171')](_0x5edbe2['getFirstMarker'](),{'range':_0x59692b}),_0x47440e=!0x0;}}return _0x47440e;}),_0x12a447['model'][_0x2922('0x147')][_0x2922('0x14c')](_0xde44ee=>this['_processAttributeChanges'](_0xde44ee)),_0x12a447[_0x2922('0xec')][_0x2922('0x147')][_0x2922('0x14c')](_0x566c21=>!_0x566c21[_0x2922('0xd7')][_0x2922('0xb2')]&&this[_0x2922('0x58')](_0x566c21)),_0x12a447['model']['on']('_afterChanges',()=>{this[_0x2922('0x3a')]=!0x1;}),_0x12a447[_0x2922('0xec')]['document']['on']('change:data',(_0x5d2e6b,_0x148346)=>{if(!_0x148346['isLocal']||_0x148346['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2c2bf4=_0x12a447['model'][_0x2922('0x147')][_0x2922('0x162')][_0x2922('0x12c')]();if(0x0==_0x2c2bf4[_0x2922('0x7c')])return;const _0x301371=[],_0x5b60fb=_0x2c2bf4[_0x2922('0x73')](_0x4f997d=>_0x2922('0x2')==_0x4f997d['type']),_0x46c852=_0x2c2bf4[_0x2922('0x73')](_0x5c1ae4=>_0x2922('0x122')==_0x5c1ae4[_0x2922('0xb')]&&_0x2922('0x8f')!=_0x5c1ae4[_0x2922('0x2e')]),_0x15ce90=_0x2c2bf4[_0x2922('0x73')](_0x498cd7=>_0x2922('0xa5')==_0x498cd7['type']&&_0x2922('0x8f')!=_0x498cd7[_0x2922('0x2e')]);for(const _0x13b04a of _0x5b60fb)this['_isRegisteredAttribute'](_0x13b04a['attributeKey'])&&_0x301371[_0x2922('0x145')]({'key':_0x13b04a[_0x2922('0x10c')],'newValue':_0x13b04a[_0x2922('0x172')],'oldValue':_0x13b04a['attributeOldValue'],'range':Ut(_0x13b04a[_0x2922('0x2a')],_0x12a447['model'])});for(const _0x241dfa of _0x46c852){const _0x352a11=_0x15ce90['find'](_0x3a4d3e=>_0x3a4d3e[_0x2922('0xf4')]===_0x241dfa['_element']);if(_0x352a11){const _0x530e6b=Ot(_0x241dfa[_0x2922('0x170')][_0x2922('0xd4')],_0x12a447[_0x2922('0xec')]);_0x352a11[_0x2922('0x2e')]!==_0x241dfa['name']&&_0x301371[_0x2922('0x145')]({'key':_0x2922('0x159'),'newValue':_0x241dfa['name'],'oldValue':_0x352a11[_0x2922('0x2e')],'range':_0x530e6b});for(const [_0x47f6f8,_0x58be59]of _0x352a11[_0x2922('0xe0')]){if(!this[_0x2922('0x168')](_0x47f6f8))continue;const _0x3122c7=_0x241dfa[_0x2922('0xe0')][_0x2922('0xd8')](_0x47f6f8);_0x58be59!==_0x3122c7&&_0x301371[_0x2922('0x145')]({'key':_0x47f6f8,'newValue':_0x3122c7,'oldValue':_0x58be59,'range':_0x530e6b});}for(const [_0x24ae28,_0x38e4f7]of _0x241dfa[_0x2922('0xe0')])this['_isRegisteredAttribute'](_0x24ae28)&&(_0x352a11[_0x2922('0xe0')][_0x2922('0x94')](_0x24ae28)||_0x301371['push']({'key':_0x24ae28,'newValue':_0x38e4f7,'oldValue':null,'range':_0x530e6b}));}}0x0!=_0x301371[_0x2922('0x7c')]&&_0x12a447[_0x2922('0xec')][_0x2922('0x7a')](_0x148346,_0x318f48=>{const _0x5443ce=_0xafd120();for(const {range:_0x3b0b57,key:_0x3d0436,oldValue:_0x15b9aa,newValue:_0xcabfe7}of _0x301371)this[_0x2922('0x11c')](_0x3b0b57,_0x3d0436,_0x15b9aa,_0xcabfe7,{'groupId':_0x5443ce});this[_0x2922('0x13c')](_0x318f48,_0x301371);});},{'priority':_0x2922('0x137')}),_0x12a447[_0x2922('0xec')][_0x2922('0x69')]['on'](_0x2922('0xaf'),(_0x2d0b0c,_0x5eb8b8,_0x3d9a41)=>{if(null==_0x3d9a41){const {id:_0x27b3b7}=this[_0x2922('0x12b')](_0x5eb8b8[_0x2922('0x2e')]),_0x42b42b=this['_suggestions'][_0x2922('0xd8')](_0x27b3b7);_0x42b42b&&_0x42b42b[_0x2922('0x174')](_0x5eb8b8['name']);}}),_0x12a447['model'][_0x2922('0x147')]['on'](_0x2922('0x10b'),()=>{const _0x269dd3=Array[_0x2922('0xa')](_0x12a447[_0x2922('0xec')][_0x2922('0x147')][_0x2922('0x162')][_0x2922('0x173')]())[_0x2922('0x73')](_0x5d1a13=>_0x2922('0x129')===this[_0x2922('0x12b')](_0x5d1a13[_0x2922('0x2e')])['group']);if(0x0===_0x269dd3['length'])return;_0x269dd3['sort']((_0x358ff1,_0x3e9217)=>{const _0xb2debc=_0x358ff1[_0x2922('0x27')][_0x2922('0x119')],_0x4ac628=_0x3e9217[_0x2922('0x27')][_0x2922('0x119')];return null===_0xb2debc&&null===_0x4ac628?0x0:null===_0xb2debc&&null!==_0x4ac628?-0x1:null!==_0xb2debc&&null===_0x4ac628?0x1:_0xb2debc[_0x2922('0xc7')][_0x2922('0xd1')](_0x4ac628['start'])?-0x1:0x1;});const _0x121bc4=new Set(),_0x564cbf=new Set();for(const {name:_0x220782,data:_0xee4682}of _0x269dd3){const {id:_0x225839}=this[_0x2922('0x12b')](_0x220782);if(null===_0xee4682[_0x2922('0x119')]){const _0x25d5af=this['_handleNewSuggestionMarker'](_0x220782);_0x564cbf[_0x2922('0xed')](_0x25d5af);}else{const _0x1ade49=this[_0x2922('0xe7')][_0x2922('0xd8')](_0x225839);null!==_0xee4682[_0x2922('0xb4')]||_0x1ade49[_0x2922('0xb1')]?(_0x121bc4[_0x2922('0xed')](_0x1ade49[_0x2922('0x2f')]),_0x564cbf[_0x2922('0xed')](_0x1ade49)):this[_0x2922('0x121')](_0x1ade49);}}_0x564cbf[_0x2922('0x138')]>0x0&&this[_0x2922('0x1a')](_0x564cbf);for(const _0x249c3b of _0x121bc4)this[_0x2922('0x11a')](_0x2922('0xc9'),_0x249c3b);}),_0x12a447[_0x2922('0xec')]['on'](_0x2922('0x9f'),(_0x1ee303,_0x14414d)=>{const _0x49a55f=_0x14414d[0x0];if(!this['_suggestions'][_0x2922('0x138')])return;if(!_0x49a55f[_0x2922('0x16f')])return;if(_0x49a55f[_0x2922('0xd7')][_0x2922('0x125')]||!_0x49a55f[_0x2922('0xd7')][_0x2922('0xb2')])return;let _0x383817,_0x803f8;switch(_0x49a55f[_0x2922('0xb')]){case _0x2922('0x122'):_0x383817=_0x12a447[_0x2922('0xec')][_0x2922('0x10e')](_0x49a55f[_0x2922('0x170')]),_0x803f8=_0x383817[_0x2922('0x158')](_0x49a55f[_0x2922('0xe5')]);break;case _0x2922('0x16b'):_0x383817=_0x12a447[_0x2922('0xec')][_0x2922('0x10e')](_0x49a55f[_0x2922('0x75')]),_0x803f8=_0x12a447[_0x2922('0xec')]['createPositionAt'](_0x49a55f[_0x2922('0x61')]);break;case'move':_0x383817=_0x12a447['model']['createPositionAt'](_0x49a55f['targetPosition']),_0x803f8=_0x383817[_0x2922('0x158')](_0x49a55f[_0x2922('0xe5')]);break;default:return;}const _0x2b6f75=_0x12a447[_0x2922('0xec')]['createRange'](_0x383817,_0x803f8);_0x12a447['model'][_0x2922('0x18')](()=>{for(const {suggestion:_0x6d3b27,meta:_0x277957}of this['_findSuggestions'](_0x2b6f75)){if(_0x6d3b27[_0x2922('0x127')])continue;if(_0x2922('0x0')==_0x6d3b27[_0x2922('0xb')])continue;const _0x1e509d=this['_getAttributeKey'](_0x6d3b27);if(_0x1e509d&&this[_0x2922('0x82')](_0x1e509d)&&'split'!=_0x49a55f[_0x2922('0xb')])continue;const _0x354b72=_0x6d3b27[_0x2922('0x27')]&&_0x6d3b27[_0x2922('0x27')]['multipleBlocks'];(_0x2922('0xbb')!=_0x6d3b27['type']||_0x2922('0x16b')==_0x49a55f['type']&&!_0x354b72)&&(_0x277957[_0x2922('0x98')]||_0x2922('0x164')==_0x6d3b27[_0x2922('0xb')]&&_0x277957[_0x2922('0x12')]||_0x6d3b27['getFirstRange']()[_0x2922('0x5a')](_0x2b6f75)&&this[_0x2922('0x140')](_0x6d3b27,_0x383817,_0x803f8));}});},{'priority':_0x2922('0x137')}),_0x12a447[_0x2922('0xec')]['on']('deleteContent',(_0x4b61ef,_0x2d6969)=>{const _0x2a1c5d=_0x2d6969[0x0],_0x5abca4=_0x2d6969[0x1];if(_0x5abca4&&_0x5abca4[_0x2922('0xeb')])return;if(this[_0x2922('0x14e')])return;if(!this[_0x2922('0x13f')][_0x2922('0x4e')])return;if(_0x2a1c5d[_0x2922('0xaa')])return;const _0x3037f8=_0x12a447['model']['schema'],{start:_0x1b8706,end:_0x189871}=_0x2a1c5d['getFirstRange'](),_0x1d017f=_0x1b8706[_0x2922('0xd4')]&&_0x3037f8[_0x2922('0x13b')](_0x1b8706[_0x2922('0xd4')])?null:_0x3037f8[_0x2922('0x1f')](_0x1b8706,'forward'),_0x4e874a=_0x189871[_0x2922('0x80')]&&_0x3037f8[_0x2922('0x13b')](_0x189871[_0x2922('0x80')])?null:_0x3037f8[_0x2922('0x1f')](_0x189871,_0x2922('0x14f')),_0x6d08d1=_0x12a447[_0x2922('0xec')][_0x2922('0x2b')](_0x1d017f?_0x1d017f['start']:_0x1b8706,_0x4e874a?_0x4e874a[_0x2922('0x76')]:_0x189871);_0x12a447[_0x2922('0xec')][_0x2922('0x18')](_0x383dd3=>{this[_0x2922('0x143')](_0x6d08d1);const _0x5ac837=_0x12a447['model']['schema'][_0x2922('0x1f')](_0x6d08d1[_0x2922('0xc7')]);_0x2a1c5d['is'](_0x2922('0x19'))?_0x383dd3[_0x2922('0xea')](_0x5ac837):_0x2a1c5d[_0x2922('0x120')](_0x5ac837);}),_0x4b61ef[_0x2922('0x13e')]();},{'priority':_0x30ea24[_0x2922('0x103')]+0xa}),_0x12a447[_0x2922('0xec')]['on']('insertContent',(_0x106b48,_0x12fe8)=>{const _0x12f492=_0x12fe8[_0x12fe8[_0x2922('0x7c')]-0x1];_0x12f492&&_0x12f492[_0x2922('0xeb')]||this[_0x2922('0x14e')]||this[_0x2922('0x13f')][_0x2922('0x4e')]&&(_0x12a447['model']['change'](()=>{let _0x3e11b1=_0x12a447[_0x2922('0xec')][_0x2922('0xf9')](_0x12fe8[0x0],_0x12fe8[0x1],_0x12fe8[0x2],{'forceDefaultExecution':!0x0});if(!_0x3e11b1)return;_0x106b48[_0x2922('0xf7')]=_0x3e11b1[_0x2922('0xc')]();const _0x5e3c29=_0x3e11b1[_0x2922('0x76')][_0x2922('0x80')],_0x2f95c1=_0x12a447[_0x2922('0xec')][_0x2922('0x81')];_0x5e3c29&&_0x2f95c1[_0x2922('0x65')](_0x5e3c29)&&!_0x2f95c1[_0x2922('0x21')](_0x5e3c29)&&(_0x3e11b1=_0x12a447['model'][_0x2922('0x2b')](_0x3e11b1[_0x2922('0xc7')],_0x12a447[_0x2922('0xec')][_0x2922('0x10e')](_0x5e3c29,'end'))),this[_0x2922('0xdd')](_0x3e11b1);}),_0x106b48[_0x2922('0x13e')]());},{'priority':'high'}),this['editor'][_0x2922('0xd6')][_0x2922('0xed')](_0x2922('0x83'),this[_0x2922('0x13f')]),this['enableCommand'](_0x2922('0x83'));const _0x5e7541=new _0x3a27c5(_0x12a447,this[_0x2922('0xe7')]);_0x12a447[_0x2922('0xd6')][_0x2922('0xed')](_0x2922('0x41'),_0x5e7541),this['enableCommand'](_0x2922('0x41'));const _0x305ac4=new _0x14e4fa(_0x12a447,this['_suggestions']);_0x12a447[_0x2922('0xd6')]['add'](_0x2922('0x84'),_0x305ac4),this['enableCommand'](_0x2922('0x84')),_0x12a447[_0x2922('0xd6')][_0x2922('0xed')]('acceptAllSuggestions',new _0x500b21(_0x12a447,_0x5e7541,this[_0x2922('0xe7')])),this[_0x2922('0x117')](_0x2922('0x46')),_0x12a447['commands'][_0x2922('0xed')](_0x2922('0x128'),new _0x500b21(_0x12a447,_0x305ac4,this[_0x2922('0xe7')])),this['enableCommand'](_0x2922('0x128')),_0x12a447[_0x2922('0xd6')][_0x2922('0xed')]('acceptSelectedSuggestions',new _0x4c1751(_0x12a447,_0x5e7541,this['_suggestions'])),this[_0x2922('0x117')](_0x2922('0x11f')),_0x12a447[_0x2922('0xd6')][_0x2922('0xed')](_0x2922('0xb0'),new _0x4c1751(_0x12a447,_0x305ac4,this[_0x2922('0xe7')])),this[_0x2922('0x117')](_0x2922('0xb0'));const _0xe406ef=_0x12a447['plugins'][_0x2922('0xd8')](_0x2922('0x10d'));this[_0x2922('0xa0')](_0xe406ef,'addComment',(_0x56102d,{threadId:_0x13baf3})=>{const _0x4a70fa=this['_suggestions'][_0x2922('0xd8')](_0x13baf3);_0x4a70fa&&_0x4a70fa['commentThread']&&0x1===_0x4a70fa[_0x2922('0xf8')][_0x2922('0x7c')]&&this[_0x2922('0x10')](_0x13baf3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe406ef,_0x2922('0x97'),(_0x5a2aab,{threadId:_0xd5c98d})=>{const _0x3fc6f5=this[_0x2922('0xe7')]['get'](_0xd5c98d);_0x3fc6f5&&_0x3fc6f5[_0x2922('0xf8')]&&!_0x3fc6f5[_0x2922('0xf8')][_0x2922('0x7c')]&&this[_0x2922('0x10')](_0xd5c98d,{'hasComments':!0x1});},{'priority':'low'});}set[_0x2922('0x59')](_0xa9b180){if(this[_0x2922('0x5f')])throw new _0x5c60e2(_0x2922('0x13a'),this);this['_adapter']=_0xa9b180;}get[_0x2922('0x59')](){return this[_0x2922('0x5f')];}[_0x2922('0x133')]({skipNotAttached:_0x2fff1c=!0x1,toJSON:_0x3f53e4=!0x1}={}){const _0x3207f0=[];for(const _0x507d2d of this['_suggestions']['values']())_0x2fff1c&&!_0x507d2d[_0x2922('0xb1')]||_0x3207f0['push'](_0x507d2d);return _0x3f53e4?_0x3207f0[_0x2922('0x104')](_0x4e606a=>_0x4e606a['toJSON']()):_0x3207f0;}[_0x2922('0x144')](_0x3448c7){const _0x6f3e12=this[_0x2922('0xe7')][_0x2922('0xd8')](_0x3448c7);if(!_0x6f3e12)throw new _0x5c60e2(_0x2922('0x8e'),this);return _0x6f3e12;}['hasSuggestion'](_0x3c4f32){return this['_suggestions'][_0x2922('0x94')](_0x3c4f32);}[_0x2922('0x15')](_0x488149){const {authorId:_0x3b8f1f,id:_0x2d5f69,attributes:_0xbf60be}=_0x488149,[_0x42c408,_0x49e3bf]=_0x488149['type'][_0x2922('0x16b')](':'),_0x57cdc3=this[_0x2922('0xe7')][_0x2922('0xd8')](_0x2d5f69)||this[_0x2922('0x146')](_0x42c408,_0x49e3bf,_0x2d5f69,_0x3b8f1f,_0xbf60be);if(this[_0x2922('0x11b')](_0x57cdc3),this[_0x2922('0x15f')](_0x57cdc3,_0x42c408,_0x49e3bf||null,_0x3b8f1f),_0x57cdc3[_0x2922('0xa1')]=_0x488149['createdAt'],_0x57cdc3['_isDataLoaded']=!0x0,_0xbf60be&&_0xbf60be[_0x2922('0xc0')]){const _0x30a382=_0xbf60be[_0x2922('0xc0')],_0x11b059=this['_getExternalAuthor'](_0x30a382[_0x2922('0x102')]);_0x57cdc3['authoredAt']=_0x30a382[_0x2922('0xa1')],_0x57cdc3[_0x2922('0x38')]=_0x11b059,_0x57cdc3[_0x2922('0x114')]=!0x0;}else _0x57cdc3['authoredAt']=_0x488149[_0x2922('0xa1')];switch(_0x488149[_0x2922('0x27')]&&(_0x57cdc3['data']=_0x488149[_0x2922('0x27')]),_0x488149[_0x2922('0xe0')]&&(_0x57cdc3[_0x2922('0xe0')]=_0x488149[_0x2922('0xe0')]),this[_0x2922('0x5f')]&&this[_0x2922('0x5f')][_0x2922('0xcd')]||(_0x57cdc3[_0x2922('0x33')]=!0x0),this['_suggestionState'][_0x2922('0xd8')](_0x57cdc3)){case'notReady':this['_suggestionState'][_0x2922('0x2d')](_0x57cdc3,'dataReady');break;case'markerReady':_0x57cdc3[_0x2922('0xb1')]?(this[_0x2922('0xbd')](new Set([_0x57cdc3])),this[_0x2922('0x1a')](new Set([_0x57cdc3])),this[_0x2922('0x11e')][_0x2922('0x2d')](_0x57cdc3,_0x2922('0x8b')),this[_0x2922('0x11a')]('suggestionLoaded',_0x57cdc3)):this[_0x2922('0x11e')][_0x2922('0x2d')](_0x57cdc3,_0x2922('0x3b'));}return _0x57cdc3;}[_0x2922('0x41')](_0x1415f3){this[_0x2922('0xeb')](()=>{this[_0x2922('0xab')][_0x2922('0xec')]['change'](()=>{for(const _0x4a8852 of _0x1415f3[_0x2922('0x13d')]())_0x4a8852[_0x2922('0x29')]();});});}[_0x2922('0x84')](_0x36327c){this[_0x2922('0xeb')](()=>{this['editor']['model'][_0x2922('0x18')](()=>{for(const _0x1007b2 of _0x36327c['getAllAdjacentSuggestions']())_0x1007b2['discard']();});});}['enableCommand'](_0x39867,_0x29022f){const _0x22b345=this[_0x2922('0xab')][_0x2922('0xd6')][_0x2922('0xd8')](_0x39867);if(!_0x22b345)throw new _0x5c60e2('track-changes-command-not-found',this,{'commandName':_0x39867});if(this[_0x2922('0xb7')][_0x2922('0x94')](_0x22b345))throw new _0x5c60e2('track-changes-enable-command-twice',this,{'commandName':_0x39867});this['_enabledCommands']['add'](_0x22b345),_0x29022f&&_0x22b345['on'](_0x2922('0x7f'),(_0x12c65d,_0x4087d1)=>{this[_0x2922('0x13f')][_0x2922('0x4e')]&&(this[_0x2922('0x14e')]||(_0x4087d1['length']>0x0&&_0x4087d1[_0x4087d1['length']-0x1]&&_0x4087d1[_0x4087d1['length']-0x1][_0x2922('0xeb')]?_0x4087d1[_0x2922('0x99')]():(_0x12c65d[_0x2922('0xf7')]=_0x29022f((..._0x37e663)=>_0x22b345[_0x2922('0x7f')](..._0x37e663,{'forceDefaultExecution':!0x0}),..._0x4087d1),_0x12c65d[_0x2922('0x13e')]())));},{'priority':_0x2922('0xf5')});}[_0x2922('0xeb')](_0x29705a){let _0xf1b350,_0x1542d3;const _0x8f6425=this[_0x2922('0x14e')];this[_0x2922('0x14e')]=!0x0;try{_0xf1b350=_0x29705a();}catch(_0x245489){_0x1542d3=_0x245489;}return _0x8f6425||(this[_0x2922('0x14e')]=!0x1),_0x1542d3&&_0x5c60e2[_0x2922('0x44')](_0x1542d3,this),_0xf1b350;}[_0x2922('0xdd')](_0x149f75,_0x3debfc=null,_0x2f074b={}){if(_0x149f75[_0x2922('0xaa')])return null;const _0x4837dd=this[_0x2922('0xab')]['plugins'][_0x2922('0xd8')](_0x2922('0x15e'))['me'];for(const {suggestion:_0x2c60fe,meta:_0x31d7f5}of this[_0x2922('0x3')](_0x149f75,_0x2922('0x164')))if(_0x31d7f5[_0x2922('0x12')]){if(!_0x31d7f5[_0x2922('0x74')]){if(_0x31d7f5[_0x2922('0x98')]){if(!this[_0x2922('0x4a')]||!Pt(_0x2c60fe,_0x2f074b))continue;return _0x2c60fe;}if(Pt(_0x2c60fe,_0x2f074b))return _0x2c60fe;this['_breakSuggestionMarker'](_0x2c60fe,_0x149f75[_0x2922('0xc7')],_0x149f75['end']);break;}if(_0x3debfc==_0x2c60fe[_0x2922('0x105')]&&Pt(_0x2c60fe,_0x2f074b)){const _0x5f2a1e=_0x2c60fe[_0x2922('0xb5')]();return _0x5f2a1e[_0x2922('0xc7')][_0x2922('0x167')](_0x149f75[_0x2922('0x76')])?this['_setSuggestionRange'](_0x2c60fe,this[_0x2922('0x13')][_0x2922('0x2b')](_0x149f75[_0x2922('0xc7')],_0x5f2a1e[_0x2922('0x76')])):this['_setSuggestionRange'](_0x2c60fe,this[_0x2922('0x13')][_0x2922('0x2b')](_0x5f2a1e[_0x2922('0xc7')],_0x149f75[_0x2922('0x76')])),_0x2c60fe;}}const _0x5cf19b=_0xafd120(),_0x13e400=_0x4837dd['id'],_0x1c60af=_0x3debfc?'insertion:'+_0x3debfc:'insertion',_0x2730be=this['_setSuggestionData']({'id':_0x5cf19b,'type':_0x1c60af,'createdAt':new Date(),'authorId':_0x13e400,'attributes':_0x2f074b});return this[_0x2922('0xb9')](_0x1c60af,_0x5cf19b,_0x13e400,_0x149f75),_0x2730be;}[_0x2922('0xc4')](_0x35cb04,_0x318c26=_0x2922('0x154'),_0x2edb96={}){const _0x9c6efb=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x15e'))['me'],_0x4563a2=this[_0x2922('0xf0')][_0x2922('0x5')](_0x2922('0x164'),_0x318c26,_0x2922('0x47'));for(const _0x42814b of this[_0x2922('0x133')]())if(_0x42814b['author']['id']==_0x9c6efb['id']&&_0x2922('0x164')==_0x42814b['type']&&_0x42814b[_0x2922('0x105')]==_0x318c26&&Pt(_0x42814b,_0x2edb96)&&(_0x4563a2(_0x42814b['getRanges'](),_0x35cb04)||_0x4563a2(_0x35cb04,_0x42814b[_0x2922('0x12a')]()))){for(const _0x44c70a of _0x35cb04)_0x42814b[_0x2922('0x6b')](_0x44c70a);return _0x42814b;}for(const {suggestion:_0xb8fea9,meta:_0x44f2c5}of this['_findSuggestions'](_0x35cb04,_0x2922('0x164'))){if(!_0x44f2c5[_0x2922('0x12')])continue;if(!this[_0x2922('0x4a')]&&_0x44f2c5[_0x2922('0x98')])continue;if(!Pt(_0xb8fea9,_0x2edb96))continue;let _0x100a13=!0x0;for(const _0x144d5c of _0xb8fea9[_0x2922('0x12a')]())for(const _0x68604 of _0x35cb04)if(!_0x144d5c[_0x2922('0x5a')](_0x68604)){_0x100a13=!0x1;break;}if(_0x100a13)return _0xb8fea9;}const _0x57848f=_0xafd120(),_0x51f446=_0x9c6efb['id'],_0x48336e='insertion:'+_0x318c26,_0x574376=this['_setSuggestionData']({'id':_0x57848f,'type':_0x48336e,'createdAt':new Date(),'authorId':_0x51f446,'attributes':_0x2edb96});for(const _0x11470c of _0x35cb04)this[_0x2922('0xb9')](_0x48336e,_0x57848f,_0x51f446,_0x11470c,_0x4beafd['getMultiRangeId']());return _0x574376;}['markInlineFormat'](_0x54b12c,_0x4c578b,_0x3c7c78=null,_0x272592={}){if(_0x3c7c78=_0x3c7c78||Et(_0x4c578b),_0x54b12c['isCollapsed'])return null;if(_0x2922('0x79')===this[_0x2922('0x71')]){const _0x530e3d=this[_0x2922('0xf0')][_0x2922('0x5')](_0x2922('0x0'),_0x3c7c78,_0x2922('0x29'));return this['forceDefaultExecution'](()=>_0x530e3d([_0x54b12c],_0x4c578b,_0x272592)),null;}const _0x3e5c50=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x15e'))['me'],_0x14ba6f=[];if('always'!==this[_0x2922('0x71')])for(const {suggestion:_0x1b4e4f,meta:_0x57e9cb}of this[_0x2922('0x3')](_0x54b12c,'insertion'))_0x57e9cb[_0x2922('0x12')]&&!_0x57e9cb[_0x2922('0x8')]&&_0x14ba6f[_0x2922('0x145')](..._0x1b4e4f[_0x2922('0x12a')]());const _0x4f04cd=function(_0x5609db,_0x3533e9){const _0x18c006=[];for(const _0xc9eaf0 of _0x3533e9){const _0x55b171=_0x5609db[_0x2922('0x6c')](_0xc9eaf0);_0x55b171&&_0x18c006['push'](_0x55b171);}return _0x18c006;}(_0x54b12c,_0x14ba6f),_0xa3b7e2=function(_0xeb50a7,_0x1c510b){const _0x3ee0ab=[_0xeb50a7];for(const _0x219b63 of _0x1c510b){let _0x300ac7=0x0;for(;_0x300ac7<_0x3ee0ab[_0x2922('0x7c')];){const _0x57b400=_0x3ee0ab[_0x300ac7][_0x2922('0x25')](_0x219b63);_0x3ee0ab['splice'](_0x300ac7,0x1,..._0x57b400),_0x300ac7+=_0x57b400[_0x2922('0x7c')];}}return _0x3ee0ab;}(_0x54b12c,_0x14ba6f);_0x4f04cd[_0x2922('0x7c')]&&this['_model'][_0x2922('0x18')](()=>{for(const _0x4a7dc4 of _0x4f04cd){const _0x1030fa=this[_0x2922('0xf0')]['getSuggestionCallback'](_0x2922('0x0'),_0x3c7c78,_0x2922('0x29'));this[_0x2922('0xeb')](()=>_0x1030fa([_0x4a7dc4],_0x4c578b,_0x272592));}});for(const _0x5016f9 of _0xa3b7e2){let _0x4cb148=null,_0x1d7646=_0x5016f9[_0x2922('0xc7')],_0x57c5f2=_0x5016f9['end'];for(const {suggestion:_0x2561b5,meta:_0x160577}of this[_0x2922('0x3')](_0x5016f9,'formatInline')){if(!_0x160577[_0x2922('0x12')])continue;if(_0x2561b5[_0x2922('0x105')]!=_0x3c7c78)continue;if(!Pt(_0x2561b5,_0x272592))continue;const _0x99366e=_0x2561b5[_0x2922('0xb5')]();if(_0x99366e['containsRange'](_0x5016f9,!0x0))return null;_0x1d7646=_0x1d7646[_0x2922('0xd1')](_0x99366e[_0x2922('0xc7')])?_0x1d7646:_0x99366e[_0x2922('0xc7')],_0x57c5f2=_0x57c5f2[_0x2922('0x1b')](_0x99366e[_0x2922('0x76')])?_0x57c5f2:_0x99366e[_0x2922('0x76')],_0x4cb148?_0x99366e[_0x2922('0xc7')][_0x2922('0xd1')](_0x4cb148[_0x2922('0xb5')]()['start'])?(_0x4cb148[_0x2922('0x141')](),_0x4cb148=_0x2561b5):_0x2561b5['removeMarkers']():_0x4cb148=_0x2561b5;}const _0x2ba285=this['_model'][_0x2922('0x2b')](_0x1d7646,_0x57c5f2);if(_0x4cb148)this[_0x2922('0x6f')](_0x4cb148,_0x2ba285);else{const _0x368e34=_0xafd120(),_0x2eb8e=_0x3e5c50['id'];this['_setSuggestionData']({'id':_0x368e34,'type':_0x2922('0x54')+_0x3c7c78,'data':_0x4c578b,'createdAt':new Date(),'authorId':_0x2eb8e,'attributes':_0x272592}),this[_0x2922('0xb9')](_0x2922('0x54')+_0x3c7c78,_0x368e34,_0x2eb8e,_0x2ba285);}}return null;}[_0x2922('0xd5')](_0x3b2a49,_0x472e82,_0x22e567=[],_0x324f09=null,_0x3088a7={}){_0x472e82[_0x2922('0x7')]||(_0x472e82[_0x2922('0x7')]=_0x472e82[_0x2922('0x23')]),_0x472e82[_0x2922('0x52')]=_0x3b2a49['is'](_0x2922('0x2a')),_0x324f09=_0x324f09||Et(_0x472e82);const _0x45ceeb=_0x22e567[_0x2922('0x104')](_0x2097c7=>Ot(_0x2097c7,this[_0x2922('0x13')])),_0x4df1aa=_0x3b2a49['is']('range')?_0x3b2a49:Ot(_0x3b2a49,this[_0x2922('0x13')]);if('never'===this[_0x2922('0x71')]){const _0x3d5f7a=this[_0x2922('0xf0')]['getSuggestionCallback']('formatBlock',_0x324f09,'accept');return this['forceDefaultExecution'](()=>_0x3d5f7a([_0x4df1aa],_0x472e82,_0x3088a7)),null;}_0x45ceeb[_0x2922('0x145')](_0x4df1aa);let _0x4ba335=!0x0;for(const _0x5b053f of _0x45ceeb)if(!this[_0x2922('0x16c')](_0x5b053f)){_0x4ba335=!0x1;break;}if(_0x4ba335&&_0x2922('0x150')!==this['_trackFormatChanges']){const _0x4f67cb=this[_0x2922('0xf0')][_0x2922('0x5')](_0x2922('0xbb'),_0x324f09,_0x2922('0x29'));return this['forceDefaultExecution'](()=>_0x4f67cb([_0x4df1aa],_0x472e82,_0x3088a7)),null;}let _0x5657b4=null,_0x113111=_0x4df1aa[_0x2922('0xc7')],_0x4f5848=_0x4df1aa[_0x2922('0x76')];for(const {suggestion:_0x4c3110,meta:_0x37450f}of this[_0x2922('0x3')](_0x4df1aa,_0x2922('0xbb'))){if(!_0x37450f['isOwn'])continue;if(_0x37450f[_0x2922('0x74')]||_0x37450f['containsRangeInObject']||_0x37450f['isInsideObject'])continue;if(_0x4c3110[_0x2922('0x27')][_0x2922('0x7')]!=_0x472e82['formatGroupId'])continue;if(!Pt(_0x4c3110,_0x3088a7))continue;const _0x4dacf1=_0x4c3110[_0x2922('0xb5')]();if(_0x4c3110[_0x2922('0x105')]==_0x324f09){if(_0x4dacf1[_0x2922('0x5a')](_0x4df1aa,!0x0))return null;_0x113111=_0x113111[_0x2922('0xd1')](_0x4dacf1['start'])?_0x113111:_0x4dacf1[_0x2922('0xc7')],_0x4f5848=_0x4f5848[_0x2922('0x1b')](_0x4dacf1[_0x2922('0x76')])?_0x4f5848:_0x4dacf1[_0x2922('0x76')],_0x5657b4?_0x4dacf1[_0x2922('0xc7')][_0x2922('0xd1')](_0x5657b4[_0x2922('0xb5')]()[_0x2922('0xc7')])?(_0x5657b4[_0x2922('0x141')](),_0x5657b4=_0x4c3110):_0x4c3110[_0x2922('0x141')]():_0x5657b4=_0x4c3110;}else{const _0x5cac48=_0x4df1aa[_0x2922('0x6c')](_0x4dacf1);this[_0x2922('0x5c')](_0x4c3110,_0x5cac48);}}const _0x2a60e3=this['editor']['plugins']['get'](_0x2922('0x15e'))['me'],_0x354001=_0xafd120(),_0x5688bc=_0x2a60e3['id'];if(_0x5657b4)return this[_0x2922('0x6f')](_0x5657b4,this[_0x2922('0x13')][_0x2922('0x2b')](_0x113111,_0x4f5848)),_0x5657b4;{const _0x5ace6b=this['_setSuggestionData']({'id':_0x354001,'type':_0x2922('0x9')+_0x324f09,'data':_0x472e82,'createdAt':new Date(),'authorId':_0x5688bc,'attributes':_0x3088a7});return this[_0x2922('0xb9')]('formatBlock:'+_0x324f09,_0x354001,_0x5688bc,this[_0x2922('0x13')][_0x2922('0x2b')](_0x113111,_0x4f5848)),_0x5ace6b;}}[_0x2922('0x151')](_0x56e12a,_0x13af5e,_0x40c6f7=[],_0x856bb3=null,_0x2c1c12={}){_0x13af5e[_0x2922('0x7')]||(_0x13af5e['formatGroupId']=_0x13af5e[_0x2922('0x23')]);const _0x1ae2c3=_0x56e12a[0x0];_0x13af5e['multipleBlocks']=_0x1ae2c3['is'](_0x2922('0x2a')),_0x856bb3=_0x856bb3||Et(_0x13af5e);const _0x4e0297=_0x40c6f7['map'](_0x1cdc9e=>Ot(_0x1cdc9e,this[_0x2922('0x13')])),_0x40f2b9=_0x1ae2c3['is'](_0x2922('0x2a'))?_0x56e12a:_0x56e12a[_0x2922('0x104')](_0x3117df=>Ot(_0x3117df,this['_model']));if(_0x2922('0x79')===this[_0x2922('0x71')]){const _0x3fd3e3=this[_0x2922('0xf0')][_0x2922('0x5')](_0x2922('0xbb'),_0x856bb3,'accept');return this[_0x2922('0xeb')](()=>_0x3fd3e3(_0x40f2b9,_0x13af5e,_0x2c1c12)),null;}_0x4e0297[_0x2922('0x145')](..._0x40f2b9);let _0x2d8504=!0x0;for(const _0x3ff411 of _0x4e0297)if(!this[_0x2922('0x16c')](_0x3ff411)){_0x2d8504=!0x1;break;}if(_0x2d8504&&'always'!==this[_0x2922('0x71')]){const _0x8375da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x856bb3,_0x2922('0x29'));return this['forceDefaultExecution'](()=>_0x8375da(_0x40f2b9,_0x13af5e,_0x2c1c12)),null;}const _0x4ba3e4=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x15e'))['me'];for(const _0xe09f4 of this['getSuggestions']()){if(_0xe09f4[_0x2922('0x38')]['id']!=_0x4ba3e4['id'])continue;if(_0x2922('0xbb')!=_0xe09f4[_0x2922('0xb')]||_0xe09f4[_0x2922('0x27')][_0x2922('0x7')]!=_0x13af5e[_0x2922('0x7')])continue;if(!Pt(_0xe09f4,_0x2c1c12))continue;const _0x2184ae=_0xe09f4[_0x2922('0x105')]==_0x856bb3;for(let _0x47dbf0=0x0;_0x47dbf0<_0x40f2b9['length'];_0x47dbf0++){const _0x3116de=_0x40f2b9[_0x47dbf0];for(const _0x49eeb7 of _0xe09f4[_0x2922('0x16e')]()){const _0x13ca4a=_0x49eeb7[_0x2922('0xe6')]();if(_0x3116de[_0x2922('0x167')](_0x13ca4a)){_0x2184ae?(_0x40f2b9[_0x2922('0xdf')](_0x47dbf0,0x1),_0x47dbf0--):_0xe09f4[_0x2922('0x55')](_0x49eeb7['name']);break;}}}}if(0x0==_0x40f2b9['length'])return null;const _0x40ca6c=this[_0x2922('0xf0')]['getSuggestionCallback'](_0x2922('0xbb'),_0x856bb3,'join');for(const _0x28df6c of this[_0x2922('0x133')]())if(_0x28df6c['author']['id']==_0x4ba3e4['id']&&_0x2922('0xbb')==_0x28df6c[_0x2922('0xb')]&&_0x28df6c[_0x2922('0x27')]['formatGroupId']==_0x13af5e['formatGroupId']&&_0x28df6c['subType']==_0x856bb3&&Pt(_0x28df6c,_0x2c1c12)&&(_0x40ca6c(_0x28df6c['getRanges'](),_0x40f2b9)||_0x40ca6c(_0x40f2b9,_0x28df6c[_0x2922('0x12a')]()))){for(const _0x45f06a of _0x40f2b9)_0x28df6c[_0x2922('0x6b')](_0x45f06a);return _0x28df6c;}const _0x36b452=_0xafd120(),_0x52c8b8=_0x4ba3e4['id'],_0x3b0d23=_0x2922('0x9')+_0x856bb3,_0x149019=this[_0x2922('0x124')]({'id':_0x36b452,'type':_0x3b0d23,'data':_0x13af5e,'createdAt':new Date(),'authorId':_0x52c8b8,'attributes':_0x2c1c12});for(const _0x44ffcf of _0x40f2b9)this['_addSuggestionMarker'](_0x3b0d23,_0x36b452,_0x52c8b8,_0x44ffcf,_0x4beafd[_0x2922('0x53')]());return _0x149019;}[_0x2922('0x143')](_0x3fdc4a,_0xc980d9=null,_0x1b6c80={}){if(_0x3fdc4a[_0x2922('0xaa')])return null;const _0x238e68=this['editor'][_0x2922('0x5b')]['get'](_0x2922('0x15e'))['me'],_0x2efa60=new _0xf7cd46(_0x3fdc4a[_0x2922('0xc7')],_0x3fdc4a['end']);for(const {suggestion:_0x1f694b,meta:_0x10da8e}of this['_findSuggestions'](_0x2efa60,_0x2922('0x164')))if(_0x10da8e[_0x2922('0x12')]&&!_0x10da8e[_0x2922('0x74')]){if(_0x1f694b[_0x2922('0x127')]){const _0x599ba5=_0x1f694b[_0x2922('0x12a')]()['filter'](_0x2953da=>_0x2922('0x9c')!=_0x2953da[_0x2922('0x130')][_0x2922('0xff')]);_0x599ba5[_0x2922('0x77')](_0x588854=>_0x2efa60['containsRange'](_0x588854,!0x0))&&_0x1f694b[_0x2922('0x57')]();if(_0x599ba5['some'](_0x486d03=>_0x486d03[_0x2922('0x5a')](_0x2efa60,!0x0))){const _0x101f71=this[_0x2922('0xf0')]['getSuggestionCallback'](_0x2922('0x48'),_0xc980d9,_0x2922('0x29'));return this['forceDefaultExecution'](()=>_0x101f71([_0x2efa60],null,_0x1b6c80)),null;}}else{const _0x374359=_0x2efa60['getIntersection'](_0x1f694b['getFirstRange']());null!==_0x374359&&_0x1f694b[_0x2922('0x28')]([_0x374359],null,_0x1b6c80);}}if(_0x2efa60[_0x2922('0xcc')](),_0x2efa60[_0x2922('0xaa')]||_0x2922('0x9c')==_0x2efa60[_0x2922('0x130')]['rootName'])return null;let _0x4eeb44=null,_0x30d414=_0x2efa60[_0x2922('0xc7')],_0x42d790=_0x2efa60[_0x2922('0x76')];const _0x4bf3be=this[_0x2922('0x3')](_0x2efa60,'deletion');for(const {suggestion:_0x7a358a,meta:_0x3a4cef}of _0x4bf3be){const _0x2bfcfc=this[_0x2922('0x13')][_0x2922('0x2b')](_0x30d414,_0x42d790);if(_0x3a4cef['isOwn']&&(this[_0x2922('0x4a')]||!_0x3a4cef[_0x2922('0x98')]&&!_0x3a4cef[_0x2922('0x8')])){if(_0x7a358a['isMultiRange']){if(!Pt(_0x7a358a,_0x1b6c80))continue;let _0xfa3bc7=!0x0;for(const _0x39efc6 of _0x7a358a[_0x2922('0x12a')]()){if(_0x39efc6[_0x2922('0x5a')](_0x2bfcfc,!0x0))return _0x7a358a;_0x2bfcfc[_0x2922('0x5a')](_0x39efc6)||(_0xfa3bc7=!0x1);}_0xfa3bc7&&_0x7a358a[_0x2922('0x57')]();}else{const _0x4bf19d=_0x7a358a[_0x2922('0xb5')]();if(_0x4bf19d[_0x2922('0x5a')](_0x2bfcfc,!0x0))return _0x7a358a;if(!Pt(_0x7a358a,_0x1b6c80)){_0x2bfcfc[_0x2922('0x5a')](_0x4bf19d)?_0x7a358a[_0x2922('0x141')]():_0x4bf19d[_0x2922('0xf2')](_0x30d414)?_0x30d414=_0x4bf19d[_0x2922('0x76')]:_0x4bf19d[_0x2922('0xf2')](_0x42d790)&&(_0x42d790=_0x4bf19d['start']);continue;}_0x30d414=_0x30d414[_0x2922('0xd1')](_0x4bf19d[_0x2922('0xc7')])?_0x30d414:_0x4bf19d[_0x2922('0xc7')],_0x42d790=_0x42d790[_0x2922('0x1b')](_0x4bf19d[_0x2922('0x76')])?_0x42d790:_0x4bf19d[_0x2922('0x76')],_0x1b6c80=Object[_0x2922('0x14')]({},_0x7a358a[_0x2922('0xe0')]),_0x4eeb44?_0x4bf19d[_0x2922('0xc7')][_0x2922('0xd1')](_0x4eeb44[_0x2922('0xb5')]()['start'])?(_0x4eeb44['removeMarkers'](),_0x4eeb44=_0x7a358a):_0x7a358a['removeMarkers']():_0x4eeb44=_0x7a358a;}}}if(_0x4eeb44)return this[_0x2922('0x6f')](_0x4eeb44,this[_0x2922('0x13')]['createRange'](_0x30d414,_0x42d790)),_0x4eeb44;{const _0x405974=_0xafd120(),_0x20a928=this[_0x2922('0x13')]['createRange'](_0x30d414,_0x42d790),_0x121df2=_0x238e68['id'],_0x186978=_0xc980d9?_0x2922('0x1')+_0xc980d9:_0x2922('0x48'),_0x19e081=this['_setSuggestionData']({'id':_0x405974,'type':_0x186978,'createdAt':new Date(),'authorId':_0x121df2,'attributes':_0x1b6c80});return this[_0x2922('0xb9')](_0x186978,_0x405974,_0x121df2,_0x20a928),_0x19e081;}}[_0x2922('0x35')](_0x23672c,_0x446969=_0x2922('0x154'),_0x3ac09a={}){const _0x3366d5=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x15e'))['me'],_0x59954b=_0x23672c['map'](_0x4c2105=>new _0xf7cd46(_0x4c2105['start'],_0x4c2105[_0x2922('0x76')])),_0x53841b=new Set();for(const {suggestion:_0x448f92,meta:_0x4002de}of this['_findSuggestions'](_0x59954b,_0x2922('0x164')))_0x4002de[_0x2922('0x12')]&&!_0x4002de[_0x2922('0x74')]&&_0x53841b['add'](_0x448f92);for(const _0x4f05c6 of _0x53841b)if(_0x4f05c6[_0x2922('0x127')]){const _0x4404ee=_0x4f05c6[_0x2922('0x12a')]();(!_0x4f05c6[_0x2922('0xe0')]||!_0x4f05c6[_0x2922('0xe0')][_0x2922('0x11d')])&&(_0x4404ee[_0x2922('0x77')](_0x596444=>_0x59954b[_0x2922('0x14b')](_0xdb53e8=>_0xdb53e8[_0x2922('0x5a')](_0x596444,!0x0)))&&_0x4f05c6['discard']());if(_0x59954b[_0x2922('0x77')](_0x308dc1=>_0x4404ee[_0x2922('0x14b')](_0x7c358b=>_0x7c358b['containsRange'](_0x308dc1,!0x0)))){const _0x5610fd=this[_0x2922('0xf0')][_0x2922('0x5')]('deletion',_0x446969,_0x2922('0x29'));return this['forceDefaultExecution'](()=>_0x5610fd(_0x23672c,null,_0x3ac09a)),null;}}else{const _0x36e271=_0x4f05c6[_0x2922('0xb5')]();_0x59954b[_0x2922('0x14b')](_0x33946b=>_0x33946b[_0x2922('0x5a')](_0x36e271,!0x0))&&_0x4f05c6[_0x2922('0x57')]();if(_0x59954b[_0x2922('0x77')](_0x4499da=>_0x36e271[_0x2922('0x5a')](_0x4499da,!0x0))){const _0x2ac207=this['_suggestionFactory'][_0x2922('0x5')](_0x2922('0x48'),_0x446969,_0x2922('0x29'));return this[_0x2922('0xeb')](()=>_0x2ac207(_0x59954b,null,_0x3ac09a)),null;}}const _0x1a1c17=this[_0x2922('0xf0')][_0x2922('0x5')](_0x2922('0x48'),_0x446969,'join');let _0x289ae7=null;for(const _0x264f6b of this[_0x2922('0x133')]())if(_0x264f6b[_0x2922('0x38')]['id']==_0x3366d5['id']&&_0x264f6b[_0x2922('0xb1')]&&_0x2922('0x48')==_0x264f6b[_0x2922('0xb')]&&_0x264f6b[_0x2922('0x105')]==_0x446969&&Pt(_0x264f6b,_0x3ac09a)&&(_0x1a1c17(_0x264f6b['getRanges'](),_0x59954b)||_0x1a1c17(_0x59954b,_0x264f6b[_0x2922('0x12a')]()))){if(_0x289ae7){if(_0x264f6b[_0x2922('0xf8')]&&_0x264f6b[_0x2922('0xf8')]['length'])continue;for(const _0x340b49 of _0x264f6b[_0x2922('0x12a')]())_0x289ae7[_0x2922('0x6e')](_0x340b49)||_0x289ae7[_0x2922('0x6b')](_0x340b49);_0x264f6b[_0x2922('0x141')]();}else{_0x289ae7=_0x264f6b;for(const _0x5d6a0d of _0x59954b)_0x264f6b[_0x2922('0x6e')](_0x5d6a0d)||_0x264f6b[_0x2922('0x6b')](_0x5d6a0d);}}if(_0x289ae7)return _0x289ae7;_0x53841b[_0x2922('0xcb')]();for(const {suggestion:_0x443380,meta:_0x256ae1}of this[_0x2922('0x3')](_0x59954b,_0x2922('0x48')))_0x256ae1[_0x2922('0x12')]&&(this['_mergeNestedSuggestions']||!_0x256ae1[_0x2922('0x98')]&&!_0x256ae1[_0x2922('0x8')])&&Pt(_0x443380,_0x3ac09a)&&_0x53841b[_0x2922('0xed')](_0x443380);for(const _0x3cc620 of _0x53841b){const _0xaa2b71=_0x3cc620[_0x2922('0x12a')]();if(!_0x3ac09a||!_0x3ac09a[_0x2922('0x11d')]){if(_0x59954b[_0x2922('0x77')](_0x236836=>_0xaa2b71[_0x2922('0x14b')](_0x4d3845=>_0x4d3845[_0x2922('0x5a')](_0x236836,!0x0))))return _0x3cc620;}(!_0x3cc620[_0x2922('0xe0')]||!_0x3cc620[_0x2922('0xe0')][_0x2922('0x11d')])&&(_0xaa2b71[_0x2922('0x77')](_0x12d455=>_0x59954b[_0x2922('0x14b')](_0xdcd42e=>_0xdcd42e[_0x2922('0x5a')](_0x12d455,!0x0)))&&_0x3cc620['discard']());}const _0x2b9e71=_0xafd120(),_0x2f1df0=_0x3366d5['id'],_0x159fb1=_0x2922('0x1')+_0x446969,_0x2a048b=this[_0x2922('0x124')]({'id':_0x2b9e71,'type':_0x159fb1,'createdAt':new Date(),'authorId':_0x2f1df0,'attributes':_0x3ac09a});for(const _0xf8d321 of _0x59954b)_0xf8d321[_0x2922('0xcc')](),_0xf8d321[_0x2922('0xaa')]||_0x2922('0x9c')==_0xf8d321[_0x2922('0x130')][_0x2922('0xff')]||this[_0x2922('0xb9')](_0x159fb1,_0x2b9e71,_0x2f1df0,_0xf8d321,_0x4beafd[_0x2922('0x53')]());return _0x2a048b;}['markAttributeChange'](_0x4deafe,_0xba6faa,_0x26f910,_0x49fbe5,_0x2d2f9b){if(_0x4deafe[_0x2922('0xaa')])return[];if(_0x2922('0x79')===this['_trackFormatChanges'])return[];const _0x51d5fd=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x15e'))['me']['id'],_0x5938e9=Array[_0x2922('0xa')](this[_0x2922('0xe7')]['values']())[_0x2922('0x73')](_0xff9d1c=>'attribute'==_0xff9d1c[_0x2922('0xb')]&&_0xff9d1c[_0x2922('0x27')]['key']==_0xba6faa&&_0xff9d1c[_0x2922('0x6e')](_0x4deafe));if(_0x2922('0x34')===this[_0x2922('0x71')]){const _0x519eda=this[_0x2922('0x3')](_0x4deafe,_0x2922('0x164'))[_0x2922('0x73')](({meta:_0x258bd0})=>_0x258bd0[_0x2922('0x12')]&&!_0x258bd0['isInsideObject']&&!_0x258bd0[_0x2922('0x74')])[_0x2922('0x104')](({suggestion:_0x2a3ff8})=>_0x2a3ff8);_0x5938e9[_0x2922('0x7e')](..._0x519eda);}const _0x264424=new Map([[_0x4deafe,_0x26f910]]);for(const _0x350c47 of _0x5938e9){const _0x1e290c=_0x2922('0x2')==_0x350c47[_0x2922('0xb')]?_0x350c47['data'][_0x2922('0x91')]:void 0x0,_0x3d95d6=_0x350c47[_0x2922('0xb5')](),_0x2fefb2=Array[_0x2922('0xa')](_0x264424[_0x2922('0x4')]())['find'](_0x533c20=>_0x533c20[_0x2922('0xd9')](_0x3d95d6));if(!_0x2fefb2)continue;const _0x31ca65=_0x2fefb2[_0x2922('0x25')](_0x3d95d6);this[_0x2922('0x82')](_0xba6faa)&&'insertion'==_0x350c47[_0x2922('0xb')]&&0x0!=_0x31ca65[_0x2922('0x7c')]||(_0x264424[_0x2922('0xbc')](_0x2fefb2),_0x31ca65[_0x2922('0x30')](_0x59cc49=>{_0x264424[_0x2922('0x2d')](_0x59cc49,_0x26f910);}),_0x2922('0x164')!=_0x350c47[_0x2922('0xb')]&&_0x1e290c!=_0x49fbe5&&_0x264424[_0x2922('0x2d')](_0x2fefb2[_0x2922('0x6c')](_0x3d95d6),_0x1e290c));}const _0x5c6297=[];for(const [_0x21ba50,_0x4e10f3]of _0x264424){const _0x1d0f18=_0xafd120(),_0x417725={'key':_0xba6faa,'oldValue':_0x4e10f3,'newValue':_0x49fbe5};_0xba6faa[_0x2922('0x7c')]>0x25&&console[_0x2922('0x3d')]('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0xba6faa});const _0x233b1e=(_0x2922('0xef')+(_0xba6faa+'|'+Et({'newValue':_0x49fbe5})))[_0x2922('0x14a')](0x0,0x3c),_0x30f251=this[_0x2922('0x124')]({'id':_0x1d0f18,'type':_0x233b1e,'data':_0x417725,'createdAt':new Date(),'authorId':_0x51d5fd,'attributes':_0x2d2f9b});_0x5c6297[_0x2922('0x145')](_0x30f251),this[_0x2922('0xb9')](_0x233b1e,_0x1d0f18,_0x51d5fd,_0x21ba50);}return _0x5c6297;}[_0x2922('0x106')](_0x23a3a6){this['_blockAttributeKeys'][_0x2922('0xed')](_0x23a3a6);}[_0x2922('0x67')](_0x4dfeee){this[_0x2922('0xb8')][_0x2922('0xed')](_0x4dfeee);}[_0x2922('0x6')](_0x56e9b4,_0x26542f=[],_0x50b272=[]){this['enableCommand'](_0x56e9b4,(_0x50c747,..._0x49c21a)=>{this[_0x2922('0x166')](()=>{_0x50c747(..._0x49c21a);});});for(const _0x102bf7 of _0x26542f)this[_0x2922('0x67')](_0x102bf7);for(const _0xde1ac4 of _0x50b272)this[_0x2922('0x106')](_0xde1ac4);}['_getAttributeKey'](_0xd1a958){return _0x2922('0x2')==_0xd1a958[_0x2922('0xb')]?_0xd1a958[_0x2922('0x105')]['split']('|')[0x0]:null;}[_0x2922('0x6f')](_0x373414,_0x4ac2c1){const _0x3d50e4=_0x373414[_0x2922('0x163')]();this['_model'][_0x2922('0x18')](_0x2d3ad3=>{_0x2d3ad3[_0x2922('0x171')](_0x3d50e4,{'range':_0x4ac2c1});});}[_0x2922('0x11b')](_0x1798e4){const _0x3b6399=_0x1798e4['id'],_0x58d7a5=this[_0x2922('0xab')][_0x2922('0xca')][_0x2922('0xd8')](_0x2922('0x68'));this[_0x2922('0xf3')][_0x2922('0x90')](_0x3b6399)||this[_0x2922('0xf3')][_0x2922('0x1d')]({'channelId':_0x58d7a5,'threadId':_0x3b6399,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2537ca=this[_0x2922('0xf3')][_0x2922('0x149')](_0x3b6399);_0x2537ca[_0x2922('0xee')](_0x2922('0x64')),_0x2537ca[_0x2922('0x64')]=!0x1,_0x1798e4[_0x2922('0xf8')]=_0x2537ca;}[_0x2922('0x15f')](_0x58d3d1,_0x59b3ed,_0x24c1ac,_0x1c38dd){if(_0x58d3d1[_0x2922('0xb')]!=_0x59b3ed||_0x58d3d1['subType']!=_0x24c1ac||_0x58d3d1[_0x2922('0x36')]['id']!=_0x1c38dd)throw this[_0x2922('0xab')][_0x2922('0xe4')](_0x2922('0x12f')),new _0x5c60e2(_0x2922('0x12f'),this);}[_0x2922('0x5c')](_0x239481,_0xa3f39c){const _0x14757a=_0x239481[_0x2922('0xb5')]();if(_0xa3f39c[_0x2922('0x167')](_0x14757a))_0x239481[_0x2922('0x141')]();else{if(_0x14757a['containsRange'](_0xa3f39c)){const _0x206150=this['_model']['createPositionAt'](_0xa3f39c[_0x2922('0xc7')][_0x2922('0x80')],_0x2922('0x76'));this[_0x2922('0x6f')](_0x239481,this[_0x2922('0x13')][_0x2922('0x2b')](_0x14757a['start'],_0x206150));const _0x19a16e=_0xafd120(),_0x516688=_0x239481['creator']['id'],_0x1daa71=_0x239481['type']+':'+_0x239481[_0x2922('0x105')];this[_0x2922('0x124')]({'id':_0x19a16e,'type':_0x1daa71,'createdAt':new Date(),'authorId':_0x516688,'data':_0x239481[_0x2922('0x27')],'attributes':_0x239481['attributes']});const _0x333bdc=this['_model'][_0x2922('0x10e')](_0xa3f39c[_0x2922('0x76')][_0x2922('0x101')],'after'),_0x461f23=this[_0x2922('0x13')][_0x2922('0x2b')](_0x333bdc,_0x14757a[_0x2922('0x76')]);this[_0x2922('0xb9')](_0x1daa71,_0x19a16e,_0x516688,_0x461f23);}else{if(_0x14757a[_0x2922('0xf2')](_0xa3f39c['start'])){const _0x402398=this[_0x2922('0x13')][_0x2922('0x10e')](_0xa3f39c[_0x2922('0xc7')][_0x2922('0x80')],_0x2922('0x76'));this[_0x2922('0x6f')](_0x239481,this['_model'][_0x2922('0x2b')](_0x14757a[_0x2922('0xc7')],_0x402398));}else{const _0x7a3687=this[_0x2922('0x13')][_0x2922('0x10e')](_0xa3f39c[_0x2922('0x76')][_0x2922('0x101')],_0x2922('0x1c'));this[_0x2922('0x6f')](_0x239481,this['_model'][_0x2922('0x2b')](_0x7a3687,_0x14757a['end']));}}}}[_0x2922('0x16c')](_0x4b0f75){for(const {suggestion:_0x19d0d6,meta:_0x37247a}of this[_0x2922('0x3')](_0x4b0f75,_0x2922('0x164'))){if(!_0x37247a[_0x2922('0x12')])continue;const _0x4b741e=_0x19d0d6['getRanges']();for(const _0x379ee2 of _0x4b741e)if(!_0x4b0f75[_0x2922('0x25')](_0x379ee2)[_0x2922('0x7c')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5138b6){const _0x24bc29=this[_0x2922('0xab')]['plugins']['get']('Users')[_0x2922('0x26')](_0x5138b6);if(!_0x24bc29)throw new _0x5c60e2('track-changes-user-not-found',this);return _0x24bc29;}[_0x2922('0x134')](_0x22c6ee){const _0x2cf3d6=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x15e')),_0xb0f5a4=_0xfbb62e(_0x2922('0xce')+_0x22c6ee),_0x4bb9ed=_0x2cf3d6['getUser'](_0xb0f5a4);return _0x4bb9ed||_0x2cf3d6[_0x2922('0xbe')]({'id':_0xb0f5a4,'name':_0x22c6ee});}[_0x2922('0x146')](_0x5a29f5,_0x1355e9,_0x532b31,_0x286b7e,_0x42c21d){const _0x5a45f8=this[_0x2922('0x15d')](_0x286b7e),_0xdf0436=this['_suggestionFactory'][_0x2922('0x8d')](_0x5a29f5,_0x1355e9,_0x532b31,_0x5a45f8,_0x42c21d,_0x4a7cd0=>{this['_updateSuggestionData'](_0x532b31,{'attributes':_0x4a7cd0});const _0x3341d1=this['getSuggestion'](_0x532b31);this[_0x2922('0xbd')](new Set([_0x3341d1])),this[_0x2922('0x1a')](new Set([_0x3341d1]));});return this[_0x2922('0xa0')](_0xdf0436,_0x2922('0x29'),()=>{this['_updateSuggestionData'](_0x532b31,{'state':_0x2922('0x63')});},{'priority':_0x2922('0xf5')}),this[_0x2922('0xa0')](_0xdf0436,'discard',()=>{this['_updateSuggestionData'](_0x532b31,{'state':_0x2922('0x17')});},{'priority':'high'}),this[_0x2922('0xe7')][_0x2922('0x2d')](_0x532b31,_0xdf0436),this[_0x2922('0x11e')][_0x2922('0x2d')](_0xdf0436,_0x2922('0x139')),_0xdf0436;}[_0x2922('0x12b')](_0xc09207){const _0x58fd45=_0xc09207[_0x2922('0x16b')](':');return{'group':_0x58fd45[0x0],'type':_0x58fd45[0x1],'subType':_0x58fd45['length']>=0x5?_0x58fd45[0x2]:null,'id':_0x58fd45[_0x2922('0x7c')]<0x5?_0x58fd45[0x2]:_0x58fd45[0x3],'authorId':_0x58fd45['length']<0x5?_0x58fd45[0x3]:_0x58fd45[0x4],'markerCount':0x6==_0x58fd45['length']?_0x58fd45[0x5]:null};}[_0x2922('0x140')](_0x2405ea,_0x505acb,_0x3b2cbe){const _0x43b862=_0x2405ea[_0x2922('0xb5')](),_0x55787a=_0x43b862[_0x2922('0xc7')],_0x190903=_0x43b862[_0x2922('0x76')];this['_setSuggestionRange'](_0x2405ea,this['_model'][_0x2922('0x2b')](_0x55787a,_0x505acb));const _0x4d68ee=_0xafd120(),_0x2bb820=_0x2405ea[_0x2922('0x36')]['id'],_0x10578b=_0x2405ea[_0x2922('0xb')]+(_0x2405ea[_0x2922('0x105')]?':'+_0x2405ea[_0x2922('0x105')]:'');this['_setSuggestionData']({'id':_0x4d68ee,'type':_0x10578b,'createdAt':new Date(),'authorId':_0x2bb820,'originalSuggestionId':_0x2405ea['id'],'attributes':_0x2405ea['attributes'],'data':_0x2405ea[_0x2922('0x27')]});const _0x565fb3=this[_0x2922('0x10a')](_0x2405ea);(_0x2922('0xbb')==_0x2405ea[_0x2922('0xb')]||_0x565fb3&&this[_0x2922('0x82')](_0x565fb3))&&(_0x3b2cbe=this['_model'][_0x2922('0x62')](_0x3b2cbe[_0x2922('0x101')])),this['_addSuggestionMarker'](_0x10578b,_0x4d68ee,_0x2bb820,this[_0x2922('0x13')][_0x2922('0x2b')](_0x3b2cbe,_0x190903));}[_0x2922('0x3')](_0x135b72,_0x10761d=null){const _0x21a213=[],_0x495435=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x15e'))['me'];Array[_0x2922('0x85')](_0x135b72)||(_0x135b72=[_0x135b72]);for(const _0x5949bd of this['getSuggestions']()){if(!_0x5949bd[_0x2922('0xb1')])continue;if(_0x10761d&&_0x5949bd['type']!=_0x10761d)continue;let _0x379317=!0x1;for(const _0x4314e1 of _0x5949bd[_0x2922('0x12a')]()){for(const _0x4393bd of _0x135b72){const _0x157bc8=_0x4393bd[_0x2922('0xc7')][_0x2922('0x167')](_0x4314e1['end'])||_0x4393bd[_0x2922('0x76')][_0x2922('0x167')](_0x4314e1[_0x2922('0xc7')]);if(_0x157bc8||_0x4393bd[_0x2922('0x6c')](_0x4314e1)){const _0x5e59d4=_0x4393bd[_0x2922('0x5a')](_0x4314e1)&&xt(this[_0x2922('0x13')][_0x2922('0x81')],_0x4314e1[_0x2922('0xc7')],_0x4393bd),_0x70337=_0x4314e1[_0x2922('0x5a')](_0x4393bd)&&xt(this[_0x2922('0x13')][_0x2922('0x81')],_0x4393bd[_0x2922('0xc7')],_0x4314e1);_0x21a213['push']({'suggestion':_0x5949bd,'meta':{'isOwn':_0x495435==_0x5949bd[_0x2922('0x38')],'isNextTo':_0x157bc8,'isInsideObject':_0x5e59d4,'containsRangeInObject':_0x70337}}),_0x379317=!0x0;break;}}if(_0x379317)break;}}return _0x21a213;}[_0x2922('0xb9')](_0x5e710f,_0x1b2282,_0xa31d0a,_0x6ad1c4,_0x5aa254){this[_0x2922('0x13')]['change'](_0x49a10e=>{let _0x1822a0=_0x2922('0x70')+_0x5e710f+':'+_0x1b2282+':'+_0xa31d0a;_0x5aa254&&(_0x1822a0=_0x1822a0+':'+_0x5aa254),_0x49a10e[_0x2922('0x142')](_0x1822a0,{'range':_0x6ad1c4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x41a24c){const _0x2a5c70=_0x41a24c['previous'],_0x445921=_0x41a24c[_0x2922('0x9b')];_0x41a24c['previous']=null,_0x41a24c[_0x2922('0x9b')]=null,null!=_0x2a5c70&&_0x2a5c70[_0x2922('0x9b')]==_0x41a24c&&(_0x2a5c70[_0x2922('0x9b')]=_0x445921),null!=_0x445921&&_0x445921['previous']==_0x41a24c&&(_0x445921['previous']=_0x2a5c70),_0x2922('0x8b')==this[_0x2922('0x11e')][_0x2922('0xd8')](_0x41a24c)&&(this[_0x2922('0x11e')][_0x2922('0x2d')](_0x41a24c,_0x2922('0x3b')),this[_0x2922('0x11a')]('suggestionUnloaded',_0x41a24c,_0x2a5c70,_0x445921));}[_0x2922('0x124')](_0x42cf9d){const _0x4a03ba=_0x42cf9d['id'],_0x55668f=this[_0x2922('0x15')](_0x42cf9d);if(this['_adapter']&&this[_0x2922('0x5f')][_0x2922('0xcd')]){const _0x22c9a1=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x161')),_0x29f57b=_0x55668f[_0x2922('0x16d')],_0x100427=_0x55668f[_0x2922('0x105')]?_0x55668f[_0x2922('0xb')]+':'+_0x55668f[_0x2922('0x105')]:_0x55668f[_0x2922('0xb')],_0x33be4c=this['editor'][_0x2922('0xac')],_0x59a23d=_0x22c9a1[_0x2922('0xed')](_0x2f167f(_0x33be4c,_0x2922('0x148'))),_0x24894f={'id':_0x4a03ba,'type':_0x100427,'hasComments':_0x29f57b,'data':_0x42cf9d[_0x2922('0x27')]||null,'originalSuggestionId':_0x42cf9d[_0x2922('0xc5')]||null,'attributes':_0x55668f['attributes']};this[_0x2922('0x5f')][_0x2922('0xcd')](_0x24894f)[_0x2922('0x115')](_0x354f01=>{_0x55668f['_saved']=!0x0,_0x22c9a1[_0x2922('0xa5')](_0x59a23d),_0x354f01&&_0x354f01[_0x2922('0xa1')]&&(this[_0x2922('0xe7')]['get'](_0x4a03ba)['createdAt']=_0x354f01[_0x2922('0xa1')]);})[_0x2922('0xe8')](_0x48d99e=>{throw _0x2ff133('error-saving-suggestion-data-suggestion-discarded'),this[_0x2922('0xab')][_0x2922('0xec')][_0x2922('0x7a')]({'isUndoable':!0x1},()=>{_0x55668f['discard']();}),_0x55668f[_0x2922('0xb6')](),this['_suggestions'][_0x2922('0xbc')](_0x55668f['id']),this[_0x2922('0x11e')][_0x2922('0xbc')](_0x55668f),_0x48d99e;});}return _0x55668f;}[_0x2922('0x82')](_0x390452){return this[_0x2922('0x14d')][_0x2922('0x94')](_0x390452);}[_0x2922('0x10')](_0x3c9f3a,_0x580b9c){const _0x337fb2=this[_0x2922('0xab')][_0x2922('0x5b')][_0x2922('0xd8')](_0x2922('0x161')),_0x5570af=this[_0x2922('0x144')](_0x3c9f3a);if(this[_0x2922('0x5f')]&&this['_adapter'][_0x2922('0x20')]){if(_0x5570af[_0x2922('0x33')]){const _0x2c2b47=_0x337fb2[_0x2922('0xed')](_0x2f167f(this[_0x2922('0xab')][_0x2922('0xac')],_0x2922('0x148')));this['_adapter'][_0x2922('0x20')](_0x3c9f3a,_0x580b9c)[_0x2922('0x115')](()=>{_0x337fb2['remove'](_0x2c2b47);});}else _0x5570af['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3c9f3a,_0x580b9c);});}}[_0x2922('0x156')](_0x49fbf0){if(!this[_0x2922('0x5f')]||!this[_0x2922('0x5f')][_0x2922('0x144')])throw new _0x5c60e2(_0x2922('0x50'),this);return this['_adapter'][_0x2922('0x144')](_0x49fbf0);}[_0x2922('0x135')](_0x17bdbe){const {id:_0x35f3c7,type:_0x1ce4ee,subType:_0x4eeaa2,authorId:_0x6a006a}=this[_0x2922('0x12b')](_0x17bdbe),_0x4daf91=this['_suggestions'][_0x2922('0xd8')](_0x35f3c7)||this['_createSuggestion'](_0x1ce4ee,_0x4eeaa2,_0x35f3c7,_0x6a006a,{});switch(this[_0x2922('0x15f')](_0x4daf91,_0x1ce4ee,_0x4eeaa2,_0x6a006a),this['_suggestionState']['get'](_0x4daf91)){case'notReady':this['_getSuggestionData'](_0x35f3c7)[_0x2922('0x115')](_0x26f719=>{let _0x48d76d=Promise[_0x2922('0x7d')]();_0x26f719[_0x2922('0x16d')]&&(_0x48d76d=this['_commentsRepository'][_0x2922('0x109')]({'channelId':this[_0x2922('0xab')][_0x2922('0xca')][_0x2922('0xd8')](_0x2922('0x68')),'threadId':_0x35f3c7})),_0x48d76d['then'](()=>{this[_0x2922('0x15')](_0x26f719)[_0x2922('0x33')]=!0x0;});}),this[_0x2922('0x11e')][_0x2922('0x2d')](_0x4daf91,'markerReady');break;case _0x2922('0x3b'):this['_updateSuggestionData'](_0x35f3c7,{'state':_0x2922('0x60')});case _0x2922('0x96'):this[_0x2922('0x11e')]['set'](_0x4daf91,'ready'),this[_0x2922('0x11a')](_0x2922('0x95'),_0x4daf91);break;case _0x2922('0x8b'):this[_0x2922('0x11a')](_0x2922('0xc9'),_0x4daf91);}return _0x4daf91[_0x2922('0x174')](_0x17bdbe),_0x4daf91;}[_0x2922('0x1a')](_0x5beef8){const _0x27cfbd=Array[_0x2922('0xa')](_0x5beef8),_0x54fc9b=_0x27cfbd['filter'](_0x3ee1be=>_0x2922('0x2')==_0x3ee1be[_0x2922('0xb')]);this[_0x2922('0x113')](_0x54fc9b);const _0x1017b1=_0x27cfbd[_0x2922('0x73')](_0x20bd4e=>!_0x20bd4e[_0x2922('0x127')]&&'attribute'!=_0x20bd4e[_0x2922('0xb')]),_0x9c9a2b=this['getSuggestions']({'skipNotAttached':!0x0})[_0x2922('0x73')](_0x14610b=>!_0x14610b[_0x2922('0x127')]&&_0x2922('0x2')!=_0x14610b[_0x2922('0xb')]),_0xfcff79=_0x9c9a2b[_0x2922('0x73')](_0x76c00d=>!_0x5beef8[_0x2922('0x94')](_0x76c00d)),_0x4879ea=new Map(_0x9c9a2b['map'](_0x5e7b09=>[_0x5e7b09,this[_0x2922('0xf0')][_0x2922('0x5')](_0x5e7b09['type'],_0x5e7b09[_0x2922('0x105')],'chain')])),_0x3e9d80=new Map(_0x9c9a2b[_0x2922('0x104')](_0x39a36d=>[_0x39a36d,_0x39a36d[_0x2922('0xb5')]()])),_0xd18f1c=new Set(),_0x2591f3=new Set();for(let _0x2cbcf0=0x0;_0x2cbcf0<_0x1017b1[_0x2922('0x7c')];_0x2cbcf0++)_0x13b1c3(_0x1017b1[_0x2cbcf0],_0x1017b1,_0x2cbcf0+0x1);for(let _0x359956=0x0;_0x359956<_0x1017b1['length'];_0x359956++)_0x13b1c3(_0x1017b1[_0x359956],_0xfcff79,0x0);const _0xe56a13=new Set();for(let _0x88f2b7=0x0;_0x88f2b7<_0x1017b1['length'];_0x88f2b7++){const _0x56b525=_0x1017b1[_0x88f2b7];!_0x2591f3[_0x2922('0x94')](_0x56b525)&&_0x56b525['previous']&&(_0xe56a13[_0x2922('0xed')](_0x56b525[_0x2922('0x40')]),_0x56b525[_0x2922('0x40')][_0x2922('0x9b')]===_0x56b525&&(_0x56b525[_0x2922('0x40')][_0x2922('0x9b')]=null),_0x56b525[_0x2922('0x40')]=null),!_0xd18f1c['has'](_0x56b525)&&_0x56b525[_0x2922('0x9b')]&&(_0xe56a13['add'](_0x56b525[_0x2922('0x9b')]),_0x56b525[_0x2922('0x9b')][_0x2922('0x40')]===_0x56b525&&(_0x56b525[_0x2922('0x9b')][_0x2922('0x40')]=null),_0x56b525[_0x2922('0x9b')]=null);}function _0x13b1c3(_0x460e7c,_0x11bdb1,_0x510e64){for(let _0x395b82=_0x510e64;_0x395b82<_0x11bdb1[_0x2922('0x7c')];_0x395b82++){const _0x3dfbdb=_0x164d0d(_0x460e7c,_0x11bdb1[_0x395b82]);_0x3dfbdb&&(_0x3dfbdb[0x0]['next']=_0x3dfbdb[0x1],_0x3dfbdb[0x1]['previous']=_0x3dfbdb[0x0],_0xd18f1c[_0x2922('0xed')](_0x3dfbdb[0x0]),_0x2591f3[_0x2922('0xed')](_0x3dfbdb[0x1]));}}function _0x164d0d(_0x80d793,_0x3a16a6){if(_0x80d793[_0x2922('0x38')]['id']!==_0x3a16a6[_0x2922('0x38')]['id'])return null;const _0x5b7eb5=_0x4879ea['get'](_0x80d793)(_0x80d793,_0x3a16a6,_0x3e9d80['get'](_0x80d793),_0x3e9d80['get'](_0x3a16a6));if(!_0x5b7eb5)return null;return _0x4879ea[_0x2922('0xd8')](_0x3a16a6)(_0x80d793,_0x3a16a6,_0x3e9d80[_0x2922('0xd8')](_0x80d793),_0x3e9d80[_0x2922('0xd8')](_0x3a16a6))?_0x5b7eb5[0x1][_0x2922('0xf8')]&&_0x5b7eb5[0x1]['commentThread'][_0x2922('0x7c')]?null:_0x5b7eb5:null;}_0xe56a13[_0x2922('0x138')]&&this[_0x2922('0x1a')](_0xe56a13);}[_0x2922('0x113')](_0x553844){if(0x0==_0x553844[_0x2922('0x7c')])return;const _0x56bf99=this[_0x2922('0x133')]({'skipNotAttached':!0x0})[_0x2922('0x73')](_0x5de5ca=>_0x2922('0x2')==_0x5de5ca[_0x2922('0xb')]&&_0x5de5ca[_0x2922('0x51')]),_0x115cae=[],_0x3fb45f=new Map();for(const _0x41ceb2 of _0x56bf99){const _0xfbbbc1=_0xfbb62e(_0x41ceb2[_0x2922('0xe0')]);_0x3fb45f[_0x2922('0x94')](_0xfbbbc1)||(_0x3fb45f[_0x2922('0x2d')](_0xfbbbc1,_0x115cae[_0x2922('0x7c')]),_0x115cae[_0x2922('0x145')]([]));const _0x410393=_0x3fb45f[_0x2922('0xd8')](_0xfbbbc1);_0x115cae[_0x410393][_0x2922('0x145')](_0x41ceb2);}!function(){_0x115cae[_0x2922('0x86')]((_0x517452,_0x4dad22)=>{const _0x5aa101=_0x517452[0x0][_0x2922('0xa1')],_0x3ed34b=_0x4dad22[0x0][_0x2922('0xa1')];return _0x5aa101==_0x3ed34b?_0x517452[0x0][_0x2922('0xe0')]['groupId']<_0x4dad22[0x0][_0x2922('0xe0')]['groupId']?-0x1:0x1:_0x5aa101<_0x3ed34b?-0x1:0x1;});for(const _0x43d328 of _0x115cae)_0x43d328[_0x2922('0x86')]((_0xf0a440,_0x159400)=>_0xf0a440['id']<_0x159400['id']?-0x1:0x1);}();for(let _0x1c8f03=0x0;_0x1c8f03<_0x115cae[_0x2922('0x7c')];_0x1c8f03++){if(0x0==_0x115cae[_0x1c8f03][_0x2922('0x7c')])continue;const _0x56f3f0=[];for(let _0x177ae7=_0x1c8f03+0x1;_0x177ae7<_0x115cae[_0x2922('0x7c')];_0x177ae7++)0x0!=_0x115cae[_0x177ae7][_0x2922('0x7c')]&&_0x4f3cd4(_0x115cae[_0x1c8f03],_0x115cae[_0x177ae7])&&_0x56f3f0[_0x2922('0x145')](_0x177ae7);for(const _0x2daf8e of _0x56f3f0)_0x115cae[_0x1c8f03]=_0x115cae[_0x1c8f03]['concat'](_0x115cae[_0x2daf8e]),_0x115cae[_0x2daf8e]=[];}for(const _0x171b49 of _0x115cae)for(let _0x50cecf=0x0;_0x50cecf<_0x171b49[_0x2922('0x7c')];_0x50cecf++)_0x171b49[_0x50cecf][_0x2922('0x9b')]=_0x171b49[_0x50cecf+0x1]||null;for(const _0x614215 of _0x115cae)for(let _0x27acca=0x0;_0x27acca<_0x614215['length'];_0x27acca++)_0x614215[_0x27acca][_0x2922('0x40')]=_0x614215[_0x27acca-0x1]||null;function _0x4f3cd4(_0x362ee2,_0x1b7533){if(_0x362ee2[0x0]['attributes'][_0x2922('0x37')]!==_0x1b7533[0x0]['attributes'][_0x2922('0x37')]&&_0x362ee2[0x0][_0x2922('0x38')]!==_0x1b7533[0x0][_0x2922('0x38')])return!0x1;if(!function(_0x17dd1f,_0x410a30){if(!_0x17dd1f[_0x2922('0x16d')]&&!_0x410a30['hasComments'])return!0x0;if(_0x17dd1f['hasComments']&&_0x410a30[_0x2922('0x16d')])return!0x1;if(_0x17dd1f[_0x2922('0x16d')]&&_0x410a30[_0x2922('0xa1')]<_0x17dd1f[_0x2922('0xf8')]['comments'][_0x2922('0xd8')](0x0)[_0x2922('0xa1')])return!0x0;if(_0x410a30['hasComments']&&_0x17dd1f[_0x2922('0xa1')]<_0x410a30[_0x2922('0xf8')]['comments'][_0x2922('0xd8')](0x0)[_0x2922('0xa1')])return!0x0;return!0x1;}(_0x362ee2[0x0],_0x1b7533[0x0]))return!0x1;const _0x3a897c=_0x1f34e9(_0x362ee2[0x0][_0x2922('0xe0')],_0x2922('0x37')),_0x233c2d=_0x1f34e9(_0x1b7533[0x0]['attributes'],_0x2922('0x37'));if(!_0x251346(_0x3a897c,_0x233c2d))return!0x1;return!!_0x362ee2[_0x2922('0x77')](_0x2db134=>_0x1b7533[_0x2922('0x14b')](_0x320a85=>_0x2db134[_0x2922('0xb5')]()[_0x2922('0x167')](_0x320a85[_0x2922('0xb5')]())))&&_0x1b7533['every'](_0x37dc84=>_0x362ee2['some'](_0x3335ab=>_0x37dc84[_0x2922('0xb5')]()[_0x2922('0x167')](_0x3335ab[_0x2922('0xb5')]())));}}[_0x2922('0xbd')](_0x3464b3){const _0x5ac31d=Array[_0x2922('0xa')](_0x3464b3),_0x558f75=this['getSuggestions']({'skipNotAttached':!0x0}),_0x417fc4=_0x558f75[_0x2922('0x73')](_0x48ded6=>!_0x3464b3[_0x2922('0x94')](_0x48ded6)),_0x362a22=new Map(_0x5ac31d[_0x2922('0x104')](_0x8488d4=>[_0x8488d4,this[_0x2922('0xf0')][_0x2922('0x5')](_0x8488d4[_0x2922('0xb')],_0x8488d4[_0x2922('0x105')],'join')])),_0x3b517a=new Map(_0x558f75[_0x2922('0x104')](_0xb51487=>[_0xb51487,_0xb51487['getRanges']()]));for(let _0x98a113=0x0;_0x98a113<_0x5ac31d[_0x2922('0x7c')];_0x98a113++){if(_0x9ffc11(this,_0x5ac31d[_0x98a113],_0x5ac31d,_0x98a113+0x1))return!0x0;}for(let _0xe44357=0x0;_0xe44357<_0x5ac31d[_0x2922('0x7c')];_0xe44357++){if(_0x9ffc11(this,_0x5ac31d[_0xe44357],_0x417fc4,0x0))return!0x0;}return!0x1;function _0x9ffc11(_0x9d4c73,_0x5003b2,_0x325f30,_0x10348c){for(let _0x223a50=_0x10348c;_0x223a50<_0x325f30[_0x2922('0x7c')];_0x223a50++){const _0x39ec52=_0x325f30[_0x223a50];if(_0x39ec52[_0x2922('0xb')]!==_0x5003b2[_0x2922('0xb')]||_0x39ec52['author']['id']!==_0x5003b2[_0x2922('0x38')]['id']||_0x39ec52[_0x2922('0x105')]!==_0x5003b2[_0x2922('0x105')])continue;if(!Ft(_0x5003b2,_0x39ec52,[_0x2922('0x37')]))continue;if('attribute'==_0x5003b2['type']&&_0x5003b2[_0x2922('0x27')]['oldValue']!=_0x39ec52[_0x2922('0x27')]['oldValue'])continue;if(_0x2922('0x2')==_0x5003b2[_0x2922('0xb')]&&_0x9d4c73['_isBlockAttribute'](_0x5003b2['data']['key']))continue;if('formatBlock'==_0x5003b2['type']){const _0xde66c3=_0x9d4c73[_0x2922('0xab')][_0x2922('0xec')],_0x96c6f8=_0x5003b2[_0x2922('0xc6')]();if(_0x96c6f8&&(_0xde66c3['schema']['isObject'](_0x96c6f8)||_0xde66c3[_0x2922('0x81')][_0x2922('0x13b')](_0x96c6f8)))continue;}const _0x11f8e9=_0x362a22['get'](_0x5003b2),_0x362769=_0x3b517a[_0x2922('0xd8')](_0x5003b2),_0x21d81b=_0x3b517a[_0x2922('0xd8')](_0x39ec52),_0x4f7238=_0x5003b2[_0x2922('0xf8')]&&_0x5003b2[_0x2922('0xf8')][_0x2922('0x7c')],_0x614d6=_0x39ec52[_0x2922('0xf8')]&&_0x39ec52['commentThread'][_0x2922('0x7c')];if(!_0x4f7238&&_0x11f8e9(_0x21d81b,_0x362769))return _0x9d4c73[_0x2922('0x10f')](_0x39ec52,_0x5003b2),_0x3b517a[_0x2922('0xbc')](_0x5003b2),!0x0;if(!_0x614d6&&_0x11f8e9(_0x362769,_0x21d81b))return _0x9d4c73[_0x2922('0x10f')](_0x5003b2,_0x39ec52),_0x3b517a[_0x2922('0xbc')](_0x39ec52),!0x0;}return!0x1;}}[_0x2922('0x10f')](_0x43c1b0,_0x4d0f82){if(_0x43c1b0[_0x2922('0x127')])for(const _0x3201f7 of _0x4d0f82[_0x2922('0x12a')]())_0x43c1b0[_0x2922('0x6b')](_0x3201f7);else{const _0xaab690=_0x4d0f82['getFirstRange']()[_0x2922('0x76')];this[_0x2922('0x6f')](_0x43c1b0,this[_0x2922('0x13')]['createRange'](_0x43c1b0[_0x2922('0xb5')]()['start'],_0xaab690));}_0x4d0f82[_0x2922('0x141')]();}[_0x2922('0x107')](_0x2eeaee,_0x8c3d2c){const _0xecd7c4=_0x2eeaee[_0x2922('0x160')](_0x2922('0x126'))||_0x2eeaee[_0x2922('0x160')]('attribute')?_0x2922('0x15a'):_0x2eeaee[_0x2922('0x3c')]();return _0x2f167f(this['editor']['locale'],_0x8c3d2c+'_'+_0xecd7c4+_0x2922('0xbf'));}[_0x2922('0xad')](){const _0x29085f=this[_0x2922('0xab')];_0x34ee1c(this['_model'],({left:_0x342da6,entered:_0x1d78a0})=>{const _0x5196e5=[];for(const _0x345bf4 of _0x342da6){const {group:_0x323116,type:_0x3dddef}=this[_0x2922('0x12b')](_0x345bf4['name']);if(_0x2922('0x129')===_0x323116){_0x5196e5[_0x2922('0x145')](this[_0x2922('0x107')](_0x3dddef,_0x2922('0x2c')));break;}}for(const _0x55c482 of _0x1d78a0){const {group:_0x14de50,type:_0x5e448c}=this[_0x2922('0x12b')](_0x55c482[_0x2922('0x2e')]);if(_0x2922('0x129')===_0x14de50){_0x5196e5[_0x2922('0x145')](this[_0x2922('0x107')](_0x5e448c,_0x2922('0x31')));break;}}_0x5196e5['length']&&_0x29085f['ui']['ariaLiveAnnouncer']['announce']('trackChanges',_0x5196e5[_0x2922('0x47')]('\x20'));});}[_0x2922('0x42')](_0x3100d1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x69ed38=this[_0x2922('0xab')],_0x29146b=_0x69ed38[_0x2922('0xec')][_0x2922('0x147')]['differ'][_0x2922('0x12c')]();if(0x0==_0x29146b[_0x2922('0x7c')])return!0x1;const _0x537624=[],_0x2326cc=_0x29146b[_0x2922('0x73')](_0x24dc0a=>'attribute'==_0x24dc0a[_0x2922('0xb')]),_0x2661c3=_0x29146b[_0x2922('0x73')](_0x2da0fc=>_0x2922('0x122')==_0x2da0fc[_0x2922('0xb')]&&_0x2922('0x8f')!=_0x2da0fc[_0x2922('0x2e')]),_0xbb08de=_0x29146b[_0x2922('0x73')](_0x438362=>_0x2922('0xa5')==_0x438362[_0x2922('0xb')]&&_0x2922('0x8f')!=_0x438362['name']);for(const _0x1a0949 of _0x2326cc)_0x537624[_0x2922('0x145')]({'key':_0x1a0949['attributeKey'],'newValue':_0x1a0949['attributeNewValue'],'oldValue':_0x1a0949[_0x2922('0x100')],'range':Ut(_0x1a0949[_0x2922('0x2a')],_0x69ed38[_0x2922('0xec')])});for(const _0x3bd56e of _0x2661c3){const _0x796990=_0xbb08de[_0x2922('0x22')](_0xe94137=>_0xe94137['position']['isEqual'](_0x3bd56e[_0x2922('0x170')]));_0x796990&&_0x537624[_0x2922('0x145')]({'key':'$elementName','newValue':_0x3bd56e['name'],'oldValue':_0x796990['name'],'range':_0x69ed38['model'][_0x2922('0xae')](_0x3bd56e[_0x2922('0x170')][_0x2922('0xd4')])});}return 0x0!=_0x537624[_0x2922('0x7c')]&&this[_0x2922('0x13c')](_0x3100d1,_0x537624);}[_0x2922('0x58')](_0x3a1bc9){let _0x403a1c=!0x1;const _0x2c8c1d=this[_0x2922('0xab')][_0x2922('0xec')][_0x2922('0x147')]['differ'][_0x2922('0x173')]()[_0x2922('0x73')](_0x29d20e=>_0x29d20e[_0x2922('0x27')][_0x2922('0xb4')]&&_0x29d20e[_0x2922('0x2e')][_0x2922('0x160')](_0x2922('0x5e')));for(const _0x383551 of _0x2c8c1d){const {subType:_0xc208b3,id:_0x503cb3}=this['_splitMarkerName'](_0x383551['name']),_0x439cae=_0xc208b3[_0x2922('0x16b')]('|')[0x0];for(const _0xc50287 of this[_0x2922('0x133')]({'skipNotAttached':!0x0}))_0xc50287['id']!=_0x503cb3&&_0x2922('0x2')==_0xc50287[_0x2922('0xb')]&&_0xc50287[_0x2922('0x27')]&&_0xc50287[_0x2922('0x27')][_0x2922('0x152')]==_0x439cae&&_0xc50287['getFirstRange']()[_0x2922('0xd9')](_0x383551[_0x2922('0x27')][_0x2922('0xb4')])&&(this['_reduceSuggestionAttributeRange'](_0xc50287,_0x383551[_0x2922('0x27')][_0x2922('0xb4')],_0x3a1bc9),_0x403a1c=!0x0);}return _0x403a1c;}[_0x2922('0x166')](_0x396ac5){this[_0x2922('0xab')],(this[_0x2922('0x3a')]=!0x0,_0x396ac5());}['_isRegisteredAttribute'](_0x5c11a5){const _0x4ff136=this[_0x2922('0x82')](_0x5c11a5),_0x22fa15=this[_0x2922('0xb8')][_0x2922('0x94')](_0x5c11a5);return _0x4ff136||_0x22fa15;}[_0x2922('0x13c')](_0x596dcb,_0x1223b1){if(0x0==_0x1223b1[_0x2922('0x7c')])return!0x1;let _0x16be5d=!0x1;for(const _0xe93324 of _0x1223b1){const _0x4ec17e=this[_0x2922('0x3')](_0xe93324['range'],_0x2922('0x2'))[_0x2922('0x73')](_0x2e2452=>!_0x2e2452['meta'][_0x2922('0x74')])[_0x2922('0x104')](_0x510c12=>_0x510c12[_0x2922('0x129')]),_0x44e1c4=_0xfbb62e({'newValue':_0xe93324['newValue']});_0x4ec17e[_0x2922('0x73')](_0xe7547c=>{const [_0xac9393,_0x253b67]=_0xe7547c['subType'][_0x2922('0x16b')]('|');return _0xac9393==_0xe93324[_0x2922('0x152')]&&_0x253b67!=_0x44e1c4;})[_0x2922('0x30')](_0x2f135a=>{this[_0x2922('0x108')](_0x2f135a,_0xe93324[_0x2922('0x2a')],_0x596dcb),_0x16be5d=!0x0;});}return _0x16be5d;}[_0x2922('0x108')](_0x357ce0,_0x526434,_0x2c577e){const _0x5b6232=_0x357ce0[_0x2922('0xb5')]()[_0x2922('0x25')](_0x526434);0x0!==_0x5b6232['length']?0x1!==_0x5b6232[_0x2922('0x7c')]?this[_0x2922('0x140')](_0x357ce0,_0x526434[_0x2922('0xc7')],_0x526434[_0x2922('0x76')]):this[_0x2922('0x6f')](_0x357ce0,_0x5b6232[0x0]):_0x2c577e[_0x2922('0x55')](_0x357ce0['getFirstMarker']());}}class Bt{constructor(_0x1470c8){this[_0x2922('0xa9')]=_0x1470c8,this[_0x2922('0x13')]=_0x1470c8[_0x2922('0xec')],this[_0x2922('0x45')]=new Map(),this[_0x2922('0xa7')]=new Map(),this['_registerDefaultCallbacks']();}[_0x2922('0x8d')](_0x3110cf,_0x4c1244,_0x37c770,_0x17dd94,_0x56326b,_0x3f0b34){return new _0x4beafd(this[_0x2922('0x13')],{'type':_0x3110cf,'subType':_0x4c1244,'id':_0x37c770,'author':_0x17dd94,'creator':_0x17dd94,'attributes':_0x56326b,'onAttributesChange':_0x3f0b34,'onAccept':(..._0x53529d)=>this['getSuggestionCallback'](_0x3110cf,_0x4c1244,'accept')(..._0x53529d),'onDiscard':(..._0x3f647e)=>this[_0x2922('0x5')](_0x3110cf,_0x4c1244,_0x2922('0x57'))(..._0x3f647e)});}[_0x2922('0x112')](_0x386e88,_0x25572b,_0x329608,_0x228863){const _0x4c14af=_0x386e88+':'+_0x25572b+':'+_0x329608;this[_0x2922('0x45')][_0x2922('0x2d')](_0x4c14af,_0x228863);}[_0x2922('0x5')](_0x33acf1,_0x38ccf2,_0x293394){const _0x270677=_0x33acf1+':'+_0x38ccf2+':'+_0x293394;return this['_customCallbacks'][_0x2922('0xd8')](_0x270677)||this[_0x2922('0xa7')]['get'](_0x33acf1+':'+_0x293394);}[_0x2922('0x169')](){const _0x18d686=()=>!0x1,_0x3e3414=_0x5c8425=>{_0x5c8425['sort']((_0x5d8731,_0x185992)=>_0x5d8731[_0x2922('0xc7')][_0x2922('0xd1')](_0x185992[_0x2922('0xc7')])?0x1:-0x1),this['_model'][_0x2922('0x18')](_0x4e262e=>{for(const _0xf66e29 of _0x5c8425){let _0x139ca8;_0x139ca8=_0xf66e29[_0x2922('0x76')][_0x2922('0x123')]&&_0xf66e29[_0x2922('0x76')][_0x2922('0x101')]==_0xf66e29[_0x2922('0xc7')][_0x2922('0xd4')]?_0x4e262e[_0x2922('0x165')](_0xf66e29[_0x2922('0xc7')][_0x2922('0xd4')],'on'):_0x4e262e[_0x2922('0x165')](_0xf66e29),this[_0x2922('0x13')]['deleteContent'](_0x139ca8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5a9a74=(_0x1a1555,_0x26b220)=>{_0x26b220&&this[_0x2922('0x13')][_0x2922('0x18')](_0x53891d=>{const {commandName:_0x3710d4,commandParams:_0x514100=[]}=_0x26b220,_0x2a37a2=_0x1a1555[_0x2922('0x104')](_0x8eb120=>(Rt(_0x8eb120)&&(_0x8eb120=this['_model'][_0x2922('0x2b')](_0x8eb120['end'])),_0x8eb120))['filter'](_0x194ae9=>'$graveyard'!==_0x194ae9[_0x2922('0x130')][_0x2922('0xff')]);if(_0x2a37a2['length']<0x1)return;const _0x24b2cc=Array[_0x2922('0xa')](this[_0x2922('0x13')][_0x2922('0x147')][_0x2922('0x3e')][_0x2922('0x12a')]())['map'](_0x49b87e=>_0xf7cd46[_0x2922('0x4b')](_0x49b87e));_0x53891d['setSelection'](_0x2a37a2);for(const _0x197c22 of this[_0x2922('0xa9')][_0x2922('0xd6')][_0x2922('0xd6')]())_0x197c22[_0x2922('0x8a')]();_0x514100['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x2922('0x7f')](_0x3710d4,..._0x514100);const _0x3d7e0d=_0x24b2cc[_0x2922('0x73')](_0xdbfad0=>_0x2922('0x9c')!=_0xdbfad0[_0x2922('0x130')][_0x2922('0xff')]);_0x3d7e0d[_0x2922('0x7c')]>0x0&&_0x53891d['setSelection'](_0x3d7e0d);for(const _0x1d18af of _0x24b2cc)_0x1d18af[_0x2922('0xcc')]();});},_0xc1efcc=(_0x52b385,_0x2a0aed)=>0x1==_0x52b385[_0x2922('0x7c')]&&0x1==_0x2a0aed[_0x2922('0x7c')]&&_0x52b385[0x0][_0x2922('0x76')]['isEqual'](_0x2a0aed[0x0]['start']),_0x256db4=(_0xc5c0d3,_0x2a59bd,_0x49a2b9,_0x422557)=>Gt(_0xc5c0d3,_0x2a59bd,_0x49a2b9,_0x422557,this['_model'])?[_0xc5c0d3,_0x2a59bd]:Gt(_0x2a59bd,_0xc5c0d3,_0x422557,_0x49a2b9,this[_0x2922('0x13')])?[_0x2a59bd,_0xc5c0d3]:null;this['_defaultCallbacks'][_0x2922('0x2d')]('insertion:accept',_0x18d686),this['_defaultCallbacks']['set'](_0x2922('0xdb'),_0x3e3414),this[_0x2922('0xa7')]['set']('insertion:join',_0xc1efcc),this['_defaultCallbacks'][_0x2922('0x2d')](_0x2922('0xc2'),_0x256db4),this[_0x2922('0xa7')][_0x2922('0x2d')]('deletion:accept',_0x3e3414),this['_defaultCallbacks']['set'](_0x2922('0xdc'),_0x18d686),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0x131'),_0xc1efcc),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0xd0'),_0x256db4),this[_0x2922('0xa7')][_0x2922('0x2d')]('formatInline:accept',_0x5a9a74),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0x4c'),_0x18d686),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0xcf'),_0xc1efcc),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0xd2'),_0x18d686),this[_0x2922('0xa7')][_0x2922('0x2d')]('formatBlock:accept',_0x5a9a74),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0x111'),_0x18d686),this[_0x2922('0xa7')][_0x2922('0x2d')]('formatBlock:join',_0xc1efcc),this[_0x2922('0xa7')]['set']('formatBlock:chain',_0x18d686),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0x15c'),_0x18d686),this[_0x2922('0xa7')][_0x2922('0x2d')](_0x2922('0x6a'),(_0xd3d0d5,_0x5527e1)=>{if(!_0x5527e1)return;const _0x4ee072=this[_0x2922('0xa9')][_0x2922('0x5b')][_0x2922('0xd8')](p);this[_0x2922('0x13')][_0x2922('0x18')](_0x585630=>{if('$elementName'==_0x5527e1[_0x2922('0x152')])for(const _0x3139f9 of _0xd3d0d5){const _0x1f5a91=_0x3139f9[_0x2922('0xc7')][_0x2922('0xd4')],_0x3428cb=_0x5527e1[_0x2922('0x91')];_0x585630[_0x2922('0xe9')](_0x1f5a91,_0x3428cb);}else{if(_0x4ee072[_0x2922('0x82')](_0x5527e1[_0x2922('0x152')]))for(const _0x442659 of _0xd3d0d5)void 0x0!==_0x5527e1[_0x2922('0x91')]?_0x585630[_0x2922('0x3f')](_0x5527e1[_0x2922('0x152')],_0x5527e1['oldValue'],_0x442659[_0x2922('0xc7')][_0x2922('0xd4')]):_0x585630[_0x2922('0x118')](_0x5527e1[_0x2922('0x152')],_0x442659['start']['nodeAfter']);else for(const _0x3ebba0 of _0xd3d0d5)_0x5527e1[_0x2922('0x91')]?_0x585630[_0x2922('0x3f')](_0x5527e1['key'],_0x5527e1[_0x2922('0x91')],_0x3ebba0):_0x585630['removeAttribute'](_0x5527e1[_0x2922('0x152')],_0x3ebba0);}});}),this['_defaultCallbacks'][_0x2922('0x2d')](_0x2922('0x153'),_0xc1efcc);}}function xt(_0x16c3ee,_0x186195,_0x1e2ec3){for(const _0x2719e4 of _0x186195[_0x2922('0x101')][_0x2922('0x116')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2719e4['root']==_0x2719e4)return!0x1;if(!_0x1e2ec3['containsItem'](_0x2719e4))return!0x1;if(_0x16c3ee['isObject'](_0x2719e4)||_0x16c3ee[_0x2922('0x13b')](_0x2719e4))return!0x0;}return!0x1;}function Rt(_0x14ca05){return _0x14ca05[_0x2922('0x76')][_0x2922('0x101')]==_0x14ca05[_0x2922('0xc7')]['nodeAfter']&&_0x14ca05[_0x2922('0x76')][_0x2922('0xfc')];}function Tt(_0x5b1de1,_0x3eedb5,_0x217381,_0x204c5d){const _0x529fe5=_0x206aaa=>!_0x206aaa[_0x2922('0xa6')]['is']('$textProxy')&&!_0x204c5d[_0x2922('0x21')](_0x206aaa['item']),_0x5d3d15=_0x5b1de1[_0x2922('0xc7')]['getLastMatchingPosition'](_0x529fe5),_0xf5408b=_0x5b1de1['end'][_0x2922('0x87')](_0x529fe5,{'direction':_0x2922('0x14f')});return(!_0x5b1de1[_0x2922('0xc7')]['isEqual'](_0x5d3d15)||!_0x5b1de1[_0x2922('0x76')][_0x2922('0x167')](_0xf5408b))&&(_0x5d3d15['isBefore'](_0xf5408b)?_0x217381[_0x2922('0x171')](_0x3eedb5,{'range':_0x217381[_0x2922('0x2b')](_0x5d3d15,_0xf5408b)}):_0x217381[_0x2922('0x55')](_0x3eedb5),!0x0);}function Et(_0x6f4644){return _0xfbb62e(_0x6f4644);}function Vt(_0x260177){const _0x1487ec=_0x260177['start'][_0x2922('0xd4')];return _0x1487ec&&_0x1487ec['is'](_0x2922('0xf'));}function Ut(_0x1c18c0,_0x4967e6){return null==_0x1c18c0[_0x2922('0x76')][_0x2922('0x80')]&&_0x1c18c0[_0x2922('0x76')][_0x2922('0x101')]==_0x1c18c0[_0x2922('0xc7')][_0x2922('0xd4')]?Ot(_0x1c18c0[_0x2922('0xc7')][_0x2922('0xd4')],_0x4967e6):_0x1c18c0;}function Ot(_0x8e9cfa,_0x2c577d){const _0x173112=_0x2c577d[_0x2922('0x81')][_0x2922('0x21')](_0x8e9cfa)||_0x2c577d[_0x2922('0x81')]['isSelectable'](_0x8e9cfa);return _0x2c577d[_0x2922('0x2b')](_0x2c577d['createPositionAt'](_0x8e9cfa,_0x2922('0x9a')),_0x173112?_0x2c577d[_0x2922('0xd')](_0x8e9cfa):_0x2c577d[_0x2922('0x10e')](_0x8e9cfa,_0x2922('0x76')));}function Gt(_0x11474c,_0x3dc609,_0x39b065,_0x2a2460,_0x205328){if(!Ft(_0x11474c,_0x3dc609))return!0x1;if(_0x39b065[_0x2922('0x76')][_0x2922('0x167')](_0x2a2460[_0x2922('0xc7')]))return!0x0;if(_0x11474c[_0x2922('0xb')]!=_0x3dc609[_0x2922('0xb')])return!0x1;if(!_0x39b065[_0x2922('0x76')][_0x2922('0x16a')](_0x2a2460[_0x2922('0xc7')]))return!0x1;const _0x18e806=_0x205328['createRange'](_0x39b065['end'],_0x2a2460[_0x2922('0xc7')])[_0x2922('0x4f')]();for(const _0x4e3007 of _0x18e806)if(['elementStart',_0x2922('0xba')][_0x2922('0xe1')](_0x4e3007[_0x2922('0xb')])&&_0x205328[_0x2922('0x81')][_0x2922('0x13b')](_0x4e3007[_0x2922('0xa6')]))return!0x1;return!0x0;}function Ft(_0x44fad9,_0x1f6160,_0x18f695=[]){return!(!_0x44fad9[_0x2922('0x51')]||!_0x1f6160[_0x2922('0x51')])&&_0x251346(_0x1f34e9(_0x44fad9['attributes'],_0x18f695),_0x1f34e9(_0x1f6160[_0x2922('0xe0')],_0x18f695));}function Pt(_0x451faf,_0x3202bd){const _0x2c6146=Lt(_0x451faf[_0x2922('0xe0')]),_0x20ab65=Lt(_0x3202bd);if(!_0x451faf['_isDataLoaded'])return!0x1;for(const _0x1e3289 of Object[_0x2922('0x4')](_0x20ab65))if(!_0x251346(_0x2c6146[_0x1e3289],_0x20ab65[_0x1e3289]))return!0x1;return!0x0;}function Lt(_0x5bec2f){const _0x4e9cc2=Object['assign']({},_0x5bec2f);return delete _0x4e9cc2[_0x2922('0x11d')],delete _0x4e9cc2[_0x2922('0xde')],_0x4e9cc2;}
|
package/src/trackchangesui.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/trackchangesui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
10
|
-
import TrackChangesEditing from './trackchangesediting';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
10
|
+
import TrackChangesEditing from './trackchangesediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* Provides UI for track changes plugin.
|
|
13
13
|
*
|