@ckeditor/ckeditor5-track-changes 37.0.1 → 37.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.
Files changed (162) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +15 -1
  50. package/lang/translations/az.po +11 -1
  51. package/lang/translations/bg.po +11 -1
  52. package/lang/translations/bn.po +11 -1
  53. package/lang/translations/ca.po +11 -1
  54. package/lang/translations/cs.po +13 -1
  55. package/lang/translations/da.po +11 -1
  56. package/lang/translations/de.po +11 -1
  57. package/lang/translations/el.po +11 -1
  58. package/lang/translations/en-au.po +11 -1
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +12 -1
  61. package/lang/translations/et.po +11 -1
  62. package/lang/translations/fi.po +11 -1
  63. package/lang/translations/fr.po +12 -1
  64. package/lang/translations/gl.po +11 -1
  65. package/lang/translations/he.po +13 -1
  66. package/lang/translations/hi.po +11 -1
  67. package/lang/translations/hr.po +12 -1
  68. package/lang/translations/hu.po +11 -1
  69. package/lang/translations/id.po +10 -1
  70. package/lang/translations/it.po +12 -1
  71. package/lang/translations/ja.po +10 -1
  72. package/lang/translations/ko.po +10 -1
  73. package/lang/translations/lt.po +13 -1
  74. package/lang/translations/lv.po +12 -1
  75. package/lang/translations/ms.po +10 -1
  76. package/lang/translations/nl.po +11 -1
  77. package/lang/translations/no.po +11 -1
  78. package/lang/translations/pl.po +13 -1
  79. package/lang/translations/pt-br.po +12 -1
  80. package/lang/translations/pt.po +12 -1
  81. package/lang/translations/ro.po +12 -1
  82. package/lang/translations/ru.po +13 -1
  83. package/lang/translations/sk.po +13 -1
  84. package/lang/translations/sr-latn.po +12 -1
  85. package/lang/translations/sr.po +33 -22
  86. package/lang/translations/sv.po +11 -1
  87. package/lang/translations/th.po +10 -1
  88. package/lang/translations/tk.po +11 -1
  89. package/lang/translations/tr.po +11 -1
  90. package/lang/translations/tt.po +10 -1
  91. package/lang/translations/uk.po +13 -1
  92. package/lang/translations/ur.po +11 -1
  93. package/lang/translations/vi.po +10 -1
  94. package/lang/translations/zh-cn.po +10 -1
  95. package/lang/translations/zh.po +10 -1
  96. package/package.json +3 -3
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/index.d.ts +1 -1
  103. package/src/integrations/alignment.js +1 -1
  104. package/src/integrations/basicstyles.js +1 -1
  105. package/src/integrations/blockquote.js +1 -1
  106. package/src/integrations/ckbox.js +1 -1
  107. package/src/integrations/codeblock.js +1 -1
  108. package/src/integrations/comments.js +1 -1
  109. package/src/integrations/deletecommand.js +1 -1
  110. package/src/integrations/documentlist.js +1 -1
  111. package/src/integrations/documentlistproperties.js +1 -1
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/findandreplace.js +1 -1
  114. package/src/integrations/font.js +1 -1
  115. package/src/integrations/formatpainter.d.ts +13 -0
  116. package/src/integrations/formatpainter.js +23 -0
  117. package/src/integrations/heading.js +1 -1
  118. package/src/integrations/highlight.js +1 -1
  119. package/src/integrations/horizontalline.js +1 -1
  120. package/src/integrations/htmlembed.js +1 -1
  121. package/src/integrations/image.js +1 -1
  122. package/src/integrations/imagereplace.js +1 -1
  123. package/src/integrations/importword.js +1 -1
  124. package/src/integrations/indent.js +1 -1
  125. package/src/integrations/inputcommand.js +1 -1
  126. package/src/integrations/link.js +1 -1
  127. package/src/integrations/list.js +1 -1
  128. package/src/integrations/listproperties.js +1 -1
  129. package/src/integrations/mediaembed.js +1 -1
  130. package/src/integrations/mention.js +1 -1
  131. package/src/integrations/pagebreak.js +1 -1
  132. package/src/integrations/paragraph.js +1 -1
  133. package/src/integrations/removeformat.js +1 -1
  134. package/src/integrations/restrictededitingmode.js +1 -1
  135. package/src/integrations/shiftentercommand.js +1 -1
  136. package/src/integrations/standardeditingmode.js +1 -1
  137. package/src/integrations/style.js +1 -1
  138. package/src/integrations/table.js +1 -1
  139. package/src/integrations/tablecaption.js +1 -1
  140. package/src/integrations/tableclipboard.js +1 -1
  141. package/src/integrations/tablecolumnresize.js +1 -1
  142. package/src/integrations/tableheadings.js +1 -1
  143. package/src/integrations/tablemergesplit.js +1 -1
  144. package/src/integrations/tableofcontents.d.ts +13 -0
  145. package/src/integrations/tableofcontents.js +23 -0
  146. package/src/integrations/tableproperties.js +1 -1
  147. package/src/integrations/template.d.ts +13 -0
  148. package/src/integrations/template.js +23 -0
  149. package/src/integrations/title.js +1 -1
  150. package/src/integrations/undo.js +1 -1
  151. package/src/integrations/utils.js +1 -1
  152. package/src/suggestion.js +1 -1
  153. package/src/suggestiondescriptionfactory.js +1 -1
  154. package/src/trackchanges.js +1 -1
  155. package/src/trackchangesdata.js +1 -1
  156. package/src/trackchangesediting.js +1 -1
  157. package/src/trackchangesui.js +1 -1
  158. package/src/ui/suggestioncontroller.js +1 -1
  159. package/src/ui/view/basesuggestionthreadview.js +1 -1
  160. package/src/ui/view/suggestionthreadview.js +1 -1
  161. package/src/utils/common-translations.js +1 -1
  162. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2818=['TrackChanges','get','editor','adapter','getSuggestions','requires','addSuggestionData','plugins','pluginName','getSuggestion'];(function(_0x2d8288,_0x2818b8){var _0xbb126e=function(_0x592a8f){while(--_0x592a8f){_0x2d8288['push'](_0x2d8288['shift']());}};_0xbb126e(++_0x2818b8);}(_0x2818,0x123));var _0xbb12=function(_0x2d8288,_0x2818b8){_0x2d8288=_0x2d8288-0x0;var _0xbb126e=_0x2818[_0x2d8288];return _0xbb126e;};import{Plugin as _0x5c1cd6}from'ckeditor5/src/core';import _0x300084 from'./trackchangesui';import _0x359ba5 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x5c1cd6{static get[_0xbb12('0x4')](){return[_0x359ba5,_0x300084,'Comments'];}static get[_0xbb12('0x7')](){return _0xbb12('0x9');}set['adapter'](_0x4b979f){this[_0xbb12('0x1')]['plugins']['get'](_0x359ba5)[_0xbb12('0x2')]=_0x4b979f;}get['adapter'](){return this[_0xbb12('0x1')][_0xbb12('0x6')]['get'](_0x359ba5)[_0xbb12('0x2')];}['addSuggestion'](_0x3c98fa){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x5')](_0x3c98fa);}[_0xbb12('0x3')]({skipNotAttached:_0x5d1957=!0x1,toJSON:_0x55893d=!0x1}={}){return this['editor'][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x3')]({'skipNotAttached':_0x5d1957,'toJSON':_0x55893d});}[_0xbb12('0x8')](_0x4c0e04){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x8')](_0x4c0e04);}}
23
+ var _0x4a2f=['addSuggestionData','plugins','getSuggestion','TrackChanges','addSuggestion','get','editor','pluginName','Comments','getSuggestions','adapter'];(function(_0x3b39aa,_0x4a2f33){var _0x53f447=function(_0x15106d){while(--_0x15106d){_0x3b39aa['push'](_0x3b39aa['shift']());}};_0x53f447(++_0x4a2f33);}(_0x4a2f,0x15d));var _0x53f4=function(_0x3b39aa,_0x4a2f33){_0x3b39aa=_0x3b39aa-0x0;var _0x53f447=_0x4a2f[_0x3b39aa];return _0x53f447;};import{Plugin as _0x554796}from'ckeditor5/src/core';import _0x205ddd from'./trackchangesui';import _0x54b419 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x554796{static get['requires'](){return[_0x54b419,_0x205ddd,_0x53f4('0x0')];}static get[_0x53f4('0xa')](){return _0x53f4('0x6');}set['adapter'](_0x181426){this[_0x53f4('0x9')]['plugins'][_0x53f4('0x8')](_0x54b419)[_0x53f4('0x2')]=_0x181426;}get[_0x53f4('0x2')](){return this[_0x53f4('0x9')]['plugins']['get'](_0x54b419)[_0x53f4('0x2')];}[_0x53f4('0x7')](_0x424951){return this[_0x53f4('0x9')][_0x53f4('0x4')][_0x53f4('0x8')](_0x54b419)[_0x53f4('0x3')](_0x424951);}[_0x53f4('0x1')]({skipNotAttached:_0x371c9c=!0x1,toJSON:_0x55ea58=!0x1}={}){return this[_0x53f4('0x9')][_0x53f4('0x4')]['get'](_0x54b419)['getSuggestions']({'skipNotAttached':_0x371c9c,'toJSON':_0x55ea58});}[_0x53f4('0x5')](_0x310e01){return this[_0x53f4('0x9')][_0x53f4('0x4')]['get'](_0x54b419)['getSuggestion'](_0x310e01);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20fd=['useAnonymousUser','track-changes-data-invalid-editor-creator','extraPlugins','find','editorCreator','users','builtinPlugins','model','discardAllSuggestions','end','WebSocketGateway','constructor','getUser','editor','appendChild','Autosave','WordCount','TrackChangesData','requires','push','includes','trackChangesData.editorCreator','set','init','adapter','name','pluginName','config','RevisionTracker','filter','getRootNames','getDataWithDiscardedSuggestions','map','trackChangesData','has','create','execute','string','plugins','document','addSuggestionData','createElement','CommentsRepository','TrackChangesEditing','createDocumentFragment','data','destroy','concat','getDataWithAcceptedSuggestions','context','Users','TrackChangesDataGetter','function','get'];(function(_0x5a37ee,_0x20fda8){const _0x414c46=function(_0x2e2529){while(--_0x2e2529){_0x5a37ee['push'](_0x5a37ee['shift']());}};_0x414c46(++_0x20fda8);}(_0x20fd,0x1df));const _0x414c=function(_0x5a37ee,_0x20fda8){_0x5a37ee=_0x5a37ee-0x0;let _0x414c46=_0x20fd[_0x5a37ee];return _0x414c46;};import{Plugin as _0x30e67d}from'ckeditor5/src/core';import{CKEditorError as _0x18edc4}from'ckeditor5/src/utils';import _0x25b209 from'./trackchangesediting';const C=['initialData',_0x414c('0x2'),'toolbar'],w=[_0x414c('0x11'),_0x414c('0x23'),_0x414c('0x16'),_0x414c('0x17'),'Pagination'];export default class T extends _0x30e67d{static get[_0x414c('0x19')](){return[_0x25b209];}static get['pluginName'](){return _0x414c('0x18');}['init'](){const _0x11e265=this[_0x414c('0x14')];if(_0x11e265['config']['define'](_0x414c('0x1c'),_0x52fa35=>_0x11e265[_0x414c('0x12')][_0x414c('0x2a')]('',_0x52fa35)),_0x414c('0x5')!=typeof _0x11e265[_0x414c('0x22')][_0x414c('0x6')](_0x414c('0x28'))[_0x414c('0xb')])throw new _0x18edc4(_0x414c('0x8'));}[_0x414c('0x1')](_0x11ab8e){return D(this[_0x414c('0x14')],!0x0,_0x11ab8e);}[_0x414c('0x26')](_0x620506){return D(this[_0x414c('0x14')],!0x1,_0x620506);}}class P extends _0x30e67d{static get['pluginName'](){return _0x414c('0x4');}constructor(_0x13abf3){super(_0x13abf3),this['result']=_0x414c('0x10');}[_0x414c('0x1e')](){this[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x31'))[_0x414c('0x1f')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'))['_adapter']=null;}}async function D(_0x31f8d3,_0x2d1a01,_0x4311e2){const _0x2e612c=function(_0x528070){const _0x3b3b17={};for(const _0x2ccb08 of _0x528070['config']['names']())C[_0x414c('0x1b')](_0x2ccb08)||(_0x3b3b17[_0x2ccb08]=_0x528070[_0x414c('0x22')][_0x414c('0x6')](_0x2ccb08));const _0x1f58b5=_0x528070['constructor'][_0x414c('0xd')]||[],_0x228195=_0x3b3b17[_0x414c('0x9')]||[];delete _0x3b3b17[_0x414c('0x9')];const _0x19743e=_0x1f58b5[_0x414c('0x0')](_0x3b3b17['plugins'])['concat'](_0x228195)[_0x414c('0x27')](_0x1ea9ca=>_0x414c('0x2c')==typeof _0x1ea9ca?_0x1f58b5[_0x414c('0xa')](_0x197979=>_0x197979[_0x414c('0x21')]==_0x1ea9ca):_0x1ea9ca),_0x19bb11=Array['from'](new Set(_0x19743e)),_0x523973=new Map();return _0x3b3b17['plugins']=_0x19bb11[_0x414c('0x24')](_0x5635c0=>v(_0x5635c0,_0x523973)),_0x3b3b17[_0x414c('0x2d')][_0x414c('0x1a')](P),_0x3b3b17[_0x414c('0x2d')]['push'](_0x25b209),_0x3b3b17;}(_0x31f8d3),_0x148b40=document[_0x414c('0x33')](),_0x46ed23=_0x31f8d3[_0x414c('0x22')]['get'](_0x414c('0x28'))[_0x414c('0xb')],_0x92ee5=await _0x46ed23(_0x2e612c,()=>function(_0x1857d3){const _0x2a8d77=document[_0x414c('0x30')]('div');return _0x1857d3[_0x414c('0x15')](_0x2a8d77),_0x2a8d77;}(_0x148b40));!function(_0x501b89,_0x5c7d60){const _0x1c9f94=_0x501b89[_0x414c('0xe')][_0x414c('0x2e')][_0x414c('0x25')]()['reduce']((_0x272b66,_0x3cfd7c)=>(_0x272b66[_0x3cfd7c]=_0x501b89[_0x414c('0x34')][_0x414c('0x6')]({'rootName':_0x3cfd7c}),_0x272b66),{}),_0x315624=_0x501b89['plugins'][_0x414c('0x6')](_0x414c('0x3'))[_0x414c('0xc')]['map'](_0x501df9=>({'id':_0x501df9['id'],'name':_0x501df9[_0x414c('0x20')]})),_0x37df8e=_0x501b89[_0x414c('0x2d')]['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c1c10=_0x5c7d60['plugins']['get'](_0x414c('0x3')),_0x434f7f=_0x5c7d60[_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'));for(const _0x1bdca6 of _0x315624)_0x5c1c10[_0x414c('0x13')](_0x1bdca6['id'])||_0x5c1c10['addUser'](_0x1bdca6);_0x5c1c10['me']||_0x5c1c10[_0x414c('0x7')]();for(const _0x2c5e87 of _0x37df8e)_0x434f7f[_0x414c('0x2f')](_0x2c5e87);_0x5c7d60[_0x414c('0x34')][_0x414c('0x1d')](_0x1c9f94);}(_0x31f8d3,_0x92ee5),_0x92ee5[_0x414c('0x2b')](_0x2d1a01?'acceptAllSuggestions':_0x414c('0xf'));const _0x26e3d3=_0x92ee5[_0x414c('0x34')]['get'](_0x4311e2);return await _0x92ee5[_0x414c('0x35')](),_0x26e3d3;}function v(_0x1d6d10,_0x3f305c){const _0x5022c0=_0x414c('0x5')==typeof _0x1d6d10?_0x1d6d10['pluginName']||_0x1d6d10[_0x414c('0x20')]:_0x1d6d10;if(_0x3f305c[_0x414c('0x29')](_0x5022c0))return _0x3f305c['get'](_0x5022c0);if(_0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),_0x5022c0&&w[_0x414c('0x1b')](_0x5022c0))return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x1),!0x1;if(!_0x1d6d10[_0x414c('0x19')])return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),!0x0;const _0x3fa570=_0x1d6d10[_0x414c('0x19')]['every'](_0x4cdfa6=>v(_0x4cdfa6,_0x3f305c));return _0x3f305c[_0x414c('0x1d')](_0x5022c0,_0x3fa570),_0x3fa570;}
23
+ const _0x1200=['appendChild','filter','function','discardAllSuggestions','init','RevisionTracker','_adapter','context','editor','DocumentOutline','plugins','has','get','destroy','data','end','Users','set','trackChangesData.editorCreator','getRootNames','trackChangesData','push','getSuggestions','addSuggestionData','execute','Pagination','users','adapter','names','TrackChangesEditing','constructor','from','every','requires','define','div','editorCreator','concat','CommentsRepository','result','createElement','WordCount','useAnonymousUser','addUser','string','WebSocketGateway','TrackChangesDataGetter','reduce','pluginName','track-changes-data-invalid-editor-creator','createDocumentFragment','extraPlugins','map','toolbar','config','acceptAllSuggestions','getDataWithAcceptedSuggestions'];(function(_0x2f9db6,_0x120005){const _0x13731e=function(_0x436593){while(--_0x436593){_0x2f9db6['push'](_0x2f9db6['shift']());}};_0x13731e(++_0x120005);}(_0x1200,0x70));const _0x1373=function(_0x2f9db6,_0x120005){_0x2f9db6=_0x2f9db6-0x0;let _0x13731e=_0x1200[_0x2f9db6];return _0x13731e;};import{Plugin as _0x152db5}from'ckeditor5/src/core';import{CKEditorError as _0x338a74}from'ckeditor5/src/utils';import _0x55629c from'./trackchangesediting';const C=['initialData',_0x1373('0x9'),_0x1373('0x37')],w=[_0x1373('0x2f'),_0x1373('0x7'),'Autosave',_0x1373('0x2b'),_0x1373('0x1b'),_0x1373('0xb')];export default class T extends _0x152db5{static get[_0x1373('0x23')](){return[_0x55629c];}static get[_0x1373('0x32')](){return'TrackChangesData';}[_0x1373('0x6')](){const _0x2d9b0b=this[_0x1373('0xa')];if(_0x2d9b0b[_0x1373('0x38')][_0x1373('0x24')](_0x1373('0x14'),_0x22c2f9=>_0x2d9b0b[_0x1373('0x20')]['create']('',_0x22c2f9)),_0x1373('0x4')!=typeof _0x2d9b0b[_0x1373('0x38')]['get']('trackChangesData')[_0x1373('0x26')])throw new _0x338a74(_0x1373('0x33'));}[_0x1373('0x1')](_0x2a5f76){return P(this[_0x1373('0xa')],!0x0,_0x2a5f76);}['getDataWithDiscardedSuggestions'](_0x449fea){return P(this[_0x1373('0xa')],!0x1,_0x449fea);}}class D extends _0x152db5{static get[_0x1373('0x32')](){return _0x1373('0x30');}constructor(_0x5b0cc8){super(_0x5b0cc8),this[_0x1373('0x29')]=_0x1373('0x11');}[_0x1373('0x6')](){this[_0x1373('0xa')][_0x1373('0xc')][_0x1373('0xe')](_0x1373('0x28'))[_0x1373('0x1d')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')[_0x1373('0x8')]=null;}}async function P(_0x129bee,_0x4f2a0a,_0x49da44){const _0x5b69d4=function(_0x320b6e){const _0x1e1d1b={};for(const _0x522734 of _0x320b6e[_0x1373('0x38')][_0x1373('0x1e')]())C['includes'](_0x522734)||(_0x1e1d1b[_0x522734]=_0x320b6e[_0x1373('0x38')][_0x1373('0xe')](_0x522734));const _0xe9cf13=_0x320b6e[_0x1373('0x20')]['builtinPlugins']||[],_0x43f950=_0x1e1d1b['extraPlugins']||[];delete _0x1e1d1b[_0x1373('0x35')];const _0x4035c8=_0xe9cf13[_0x1373('0x27')](_0x1e1d1b[_0x1373('0xc')])[_0x1373('0x27')](_0x43f950)[_0x1373('0x36')](_0x18ad25=>_0x1373('0x2e')==typeof _0x18ad25?_0xe9cf13['find'](_0x82113=>_0x82113[_0x1373('0x32')]==_0x18ad25):_0x18ad25),_0x480736=Array[_0x1373('0x21')](new Set(_0x4035c8)),_0x2df1af=new Map();return _0x1e1d1b[_0x1373('0xc')]=_0x480736[_0x1373('0x3')](_0x5bf1f1=>v(_0x5bf1f1,_0x2df1af)),_0x1e1d1b[_0x1373('0xc')][_0x1373('0x17')](D),_0x1e1d1b[_0x1373('0xc')][_0x1373('0x17')](_0x55629c),_0x1e1d1b;}(_0x129bee),_0xa266b8=document[_0x1373('0x34')](),_0xb8f945=_0x129bee[_0x1373('0x38')][_0x1373('0xe')](_0x1373('0x16'))[_0x1373('0x26')],_0x188a6f=await _0xb8f945(_0x5b69d4,()=>function(_0x4c72ab){const _0x55ac3c=document[_0x1373('0x2a')](_0x1373('0x25'));return _0x4c72ab[_0x1373('0x2')](_0x55ac3c),_0x55ac3c;}(_0xa266b8));!function(_0x19c09a,_0x85064c){const _0xd66e9=_0x19c09a['model']['document'][_0x1373('0x15')]()[_0x1373('0x31')]((_0x2f7502,_0x572a8f)=>(_0x2f7502[_0x572a8f]=_0x19c09a[_0x1373('0x10')][_0x1373('0xe')]({'rootName':_0x572a8f}),_0x2f7502),{}),_0x9697a8=_0x19c09a[_0x1373('0xc')][_0x1373('0xe')]('Users')[_0x1373('0x1c')][_0x1373('0x36')](_0x406e37=>({'id':_0x406e37['id'],'name':_0x406e37['name']})),_0x571b8f=_0x19c09a[_0x1373('0xc')][_0x1373('0xe')](_0x1373('0x1f'))[_0x1373('0x18')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x237a48=_0x85064c[_0x1373('0xc')]['get'](_0x1373('0x12')),_0x1a80d4=_0x85064c[_0x1373('0xc')][_0x1373('0xe')]('TrackChangesEditing');for(const _0x509b99 of _0x9697a8)_0x237a48['getUser'](_0x509b99['id'])||_0x237a48[_0x1373('0x2d')](_0x509b99);_0x237a48['me']||_0x237a48[_0x1373('0x2c')]();for(const _0x470f0a of _0x571b8f)_0x1a80d4[_0x1373('0x19')](_0x470f0a);_0x85064c['data'][_0x1373('0x13')](_0xd66e9);}(_0x129bee,_0x188a6f),_0x188a6f[_0x1373('0x1a')](_0x4f2a0a?_0x1373('0x0'):_0x1373('0x5'));const _0x118691=_0x188a6f[_0x1373('0x10')][_0x1373('0xe')](_0x49da44);return await _0x188a6f[_0x1373('0xf')](),_0x118691;}function v(_0x4408b8,_0x5bac7e){const _0x72dcda=_0x1373('0x4')==typeof _0x4408b8?_0x4408b8[_0x1373('0x32')]||_0x4408b8['name']:_0x4408b8;if(_0x5bac7e[_0x1373('0xd')](_0x72dcda))return _0x5bac7e[_0x1373('0xe')](_0x72dcda);if(_0x5bac7e[_0x1373('0x13')](_0x72dcda,!0x0),_0x72dcda&&w['includes'](_0x72dcda))return _0x5bac7e[_0x1373('0x13')](_0x72dcda,!0x1),!0x1;if(!_0x4408b8[_0x1373('0x23')])return _0x5bac7e[_0x1373('0x13')](_0x72dcda,!0x0),!0x0;const _0x3de95f=_0x4408b8[_0x1373('0x23')][_0x1373('0x22')](_0x11fe85=>v(_0x11fe85,_0x5bac7e));return _0x5bac7e[_0x1373('0x13')](_0x72dcda,_0x3de95f),_0x3de95f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bd5=['PENDING_ACTION_SUGGESTION','getAncestors','_enabledCommands','options','data-suggestion','update:suggestion','applyOperation','commandName','return','isEqual','selection','activeMarkers','suggestion:','addRange','discard','normal','_customCallbacks','dataToMarker','detach','getMultiRangeId','change:activeMarkers','markerReady','isDocumentOperation','_findSuggestions','elementStart','_handleNewSuggestionMarker','_checkSuggestionCorrectness','values','isObject','insert','has','parent','updateSuggestion','filter','containerElement','subType','_rangeIsInLocalUserInsertion','containsRange','_getExternalAuthor','size','formatInline:chain','isNextTo','refresh','elementToElement','_trackFormatChanges','$graveyard','removeComment','_getAuthorFromId','isMultiRange','_breakSuggestionMarker','howMany','hasCommentThread','createRange','attributes','getChangedMarkers','deletion:discard','insertion:','_defaultCallbacks','createPositionAt','getAttribute','getLastMatchingPosition','@external','registerCustomCallback','marker-count','name','PendingActions','isOwn','accepted','isCollapsed','deletion:join','trackChangesCommand','isAtEnd','isBefore','ck-suggestion-marker--active','_getSuggestionData','external:','deletion','ready','adapter','_setSuggestionData','push','bindElementToMarker','createPositionBefore','enableCommand','formatInline:discard','CommentsRepository','isInContent','acceptSuggestion','isSelectable','next','_adapter','length','commands','deletion:chain','track-changes-suggestion-data-mismatch','formatInline:accept','createRangeIn','_createSuggestion','commentThread','getAllAdjacentSuggestions','delete','suggestionChanged','createPositionAfter','formatInline','pluginName','ck-suggestion-marker-','track-changes-adapter-missing-getsuggestion','markDeletion','root','getShiftedBy','differ','isRemovable','acceptAllSuggestions','conversion','type','formatGroupId','formatInline:','addMarker:suggestion:formatBlock','clone','isUndo','createdAt','setSelection','markInsertion','removed','_registerDefaultCallbacks','split','author','model','suggestionLoaded','splice','every','getChanges','join','addComment','isLimit','splitPosition','high','removeMarkers','nodeAfter','hasSuggestion','markerToData','before','getMarkers','group','getFirstMarker','_commentsRepository','dataDowncast','isIntersectingWithRange','_addSuggestionMarker','locale','_saved','getSuggestionCallback','value','Users','forceDefaultExecution','getWalker','get','move','consumable','previous','getUser','remove','_model','getFirstRange','map','ck-suggestion-marker-formatBlock','isInsideObject','$textProxy','end','addSuggestion','addMarker','schema','plugins','setAttribute','isBlock','getSuggestions','editor','newRange','_suggestionFactory','stop','_setSuggestionRange','_joinWithAdjacentSuggestions','multipleBlocks','track-changes-command-not-found','head','authoredAt','ck-suggestion-marker','formatBlock:accept','sort','range','containsRangeInObject','track-changes-suggestion-not-found','documentSelection','mapper','position','init','define','markerNameToElements','getIntersection','config','trackChanges.trackFormatChanges','getDifference','removeMarker','trackChanges','_isForcedDefaultExecutionBlock','insertion:chain','toViewElement','_editor','enableReadOnlyMode','rootName','discardAllSuggestions','isAfter','fire','consume','data','addClass','nodeBefore','getRanges','formatBlock:chain','rejected','markBlockFormat','execute','deletion:','_cutOutSuggestionMarker','createElement','item','removeMarker:suggestion:formatBlock','insertContent','addSuggestionData','addMarker:suggestion','updateMarker','registerPostFixer','formatBlock:discard','lowest','listenTo','markers','_refreshSuggestionsChain','acceptSelectedSuggestions','markInlineFormat','start','formatInline:join','change','getNearestSelectionRange','writer','editingDowncast','track-changes-adapter-already-set','createSelection','batch','getCustomProperty','resolve','_addThreadToSuggestion','add','fromCharCode','chain','forward','creator','upcast','includes','markerToHighlight','buildSuggestion','_descriptionFactory','_suggestionState','multi','suggestion','markerName','hasComments','for','containsItem','toJSON','_suggestions','catch','set','then','deleteContent','isAtStart','formatBlock:','_joinSuggestions','getItems','showSuggestionHighlights','removeClass','_splitMarkerName','reconvertMarker','insertion','some','unbindElementFromMarkerName','getCommentThread','_onDiscard','containsPosition','suggestion-type','moveTargetPosition','discardSuggestion','getSuggestion','addHighlight','addMarkerName','collaboration.channelId','_removeSuggestion','change:data','_updateSuggestionData','deletion:accept','setTo','widget','element','discardSelectedSuggestions','notReady','dataReady','insertion:join','oldRange','stopListening','formatBlock','document','from','accept','after','low'];(function(_0xe5ab4,_0x3bd5fa){const _0x350f9c=function(_0x48e97a){while(--_0x48e97a){_0xe5ab4['push'](_0xe5ab4['shift']());}};_0x350f9c(++_0x3bd5fa);}(_0x3bd5,0x67));const _0x350f=function(_0xe5ab4,_0x3bd5fa){_0xe5ab4=_0xe5ab4-0x0;let _0x350f9c=_0x3bd5[_0xe5ab4];return _0x350f9c;};import{Plugin as _0x1517c8,PendingActions as _0x3fa6ea}from'ckeditor5/src/core';import{LiveRange as _0x319865}from'ckeditor5/src/engine';import{CKEditorError as _0x119d3e,uid as _0x4cb20a,priorities as _0x59dfda,logWarning as _0xd5393f}from'ckeditor5/src/utils';import{toWidget as _0x466ac4}from'ckeditor5/src/widget';import{Users as _0x4a58c5,hashObject as _0x394310}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d34bb from'./commands/trackchangescommand';import _0x4bcffe from'./commands/acceptsuggestioncommand';import _0x4186d0 from'./commands/discardsuggestioncommand';import _0x4a8fef from'./commands/executeonallsuggestionscommand';import _0xea949b from'./commands/executeonselectedsuggestionscommand';import _0x14b365 from'./suggestion';import _0x516da3 from'./suggestiondescriptionfactory';import _0x4c9d57 from'./integrations/alignment';import _0x154435 from'./integrations/basicstyles';import _0x804368 from'./integrations/blockquote';import _0x4458eb from'./integrations/ckbox';import _0x3ce1d3 from'./integrations/codeblock';import _0x23536b from'./integrations/comments';import _0x38c2a4 from'./integrations/deletecommand';import _0x3d7022 from'./integrations/documentlist';import _0x4792cd from'./integrations/entercommand';import _0x5e9ee8 from'./integrations/findandreplace';import _0x30e073 from'./integrations/font';import _0x5d7a9c from'./integrations/heading';import _0x1b625b from'./integrations/highlight';import _0x4c6b3f from'./integrations/horizontalline';import _0x338ebb from'./integrations/htmlembed';import _0x2b50d8 from'./integrations/image';import _0x4bdbfa from'./integrations/imagereplace';import _0x18c38f from'./integrations/importword';import _0x122ffd from'./integrations/indent';import _0x32252c from'./integrations/inputcommand';import _0x3f10e3 from'./integrations/link';import _0x59088e from'./integrations/list';import _0x14ba1f from'./integrations/listproperties';import _0x5ccc88 from'./integrations/mediaembed';import _0x49aa95 from'./integrations/mention';import _0x2e4b54 from'./integrations/pagebreak';import _0x4eddb9 from'./integrations/paragraph';import _0x381ea0 from'./integrations/removeformat';import _0xd1bac0 from'./integrations/restrictededitingmode';import _0x5502af from'./integrations/shiftentercommand';import _0x303eca from'./integrations/standardeditingmode';import _0x1e6178 from'./integrations/style';import _0x4486aa from'./integrations/table';import _0x12e456 from'./integrations/tablemergesplit';import _0x42bfb1 from'./integrations/tableheadings';import _0x42bf29 from'./integrations/tableclipboard';import _0x3dca8f from'./integrations/tablecolumnresize';import _0x4921df from'./integrations/title';import _0x4cf8d3 from'./integrations/undo';import{getTranslation as _0x3436c0}from'./utils/common-translations';import _0x34d931 from'./integrations/tablecaption';import _0x2c73a6 from'./integrations/documentlistproperties';import _0x27d865 from'./integrations/tableproperties';export default class p extends _0x1517c8{static get['requires'](){return['CommentsRepository',_0x4a58c5,_0x3fa6ea,_0x4c9d57,_0x154435,_0x804368,_0x4458eb,_0x3ce1d3,_0x23536b,_0x38c2a4,_0x3d7022,_0x2c73a6,_0x4792cd,_0x5e9ee8,_0x30e073,_0x5d7a9c,_0x1b625b,_0x4c6b3f,_0x338ebb,_0x2b50d8,_0x4bdbfa,_0x18c38f,_0x122ffd,_0x32252c,_0x3f10e3,_0x59088e,_0x14ba1f,_0x5ccc88,_0x49aa95,_0x2e4b54,_0x4eddb9,_0x381ea0,_0xd1bac0,_0x5502af,_0x303eca,_0x1e6178,_0x4486aa,_0x12e456,_0x42bfb1,_0x34d931,_0x42bf29,_0x3dca8f,_0x27d865,_0x4921df,_0x4cf8d3];}static get[_0x350f('0x1')](){return'TrackChangesEditing';}constructor(_0x2e4011){function _0x314b1f(_0x2f6356){return _0x2f6356[_0x350f('0x3d')](_0x23f325=>String[_0x350f('0x95')](_0x23f325))['join']('');}super(_0x2e4011),this[_0x350f('0xa8')](_0x350f('0xde'),[]),this['on'](_0x350f('0xe7'),(_0x1c79c7,_0x98370,_0x5c388f,_0x2281fa)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](()=>{for(const _0x15ee7e of[..._0x2281fa,..._0x5c388f])this[_0x350f('0x3b')][_0x350f('0x84')][_0x350f('0xf1')](_0x15ee7e)&&_0x2e4011['editing'][_0x350f('0xb2')](_0x15ee7e);});}),this[_0x350f('0x9d')]=new _0x516da3(this[_0x350f('0x49')]['model'][_0x350f('0x44')],this[_0x350f('0x49')][_0x350f('0x2e')]),this[_0x350f('0x12d')]=null,this[_0x350f('0x4b')]=new vt(this['editor']),this[_0x350f('0xa6')]=new Map(),this[_0x350f('0x2a')]=_0x2e4011[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128')),this[_0x350f('0xd5')]=new Set(),this[_0x350f('0x3b')]=this[_0x350f('0x49')]['model'],this[_0x350f('0x9e')]=new WeakMap(),this[_0x350f('0x65')]=!0x1,_0x2e4011[_0x350f('0x60')][_0x350f('0x5d')]('trackChanges.trackFormatChanges',!0x0),this['_trackFormatChanges']=_0x2e4011[_0x350f('0x60')]['get'](_0x350f('0x61')),this[_0x350f('0x119')]=new _0x2d34bb(_0x2e4011,this[_0x350f('0xd5')]),this[_0x314b1f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x314b1f([0x34,0x30,0x34,0x36,0x30,0x38,0x31,0x30]);}[_0x350f('0x5c')](){const _0x5a8c0c=this[_0x350f('0x49')];_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))['markerToHighlight']({'model':_0x350f('0xa0'),'view':_0x4aad6a=>{const {id:_0x55a5bf,type:_0x1c382e}=this['_splitMarkerName'](_0x4aad6a[_0x350f('0xa1')]),_0xd7c253=[_0x350f('0x53'),_0x350f('0x2')+_0x1c382e];let _0x5cfb01=0xbb8;return this['activeMarkers']['includes'](_0x4aad6a[_0x350f('0xa1')])&&(_0xd7c253[_0x350f('0x123')](_0x350f('0x11c')),_0x5cfb01=0xbc2),_0x350f('0x11f')==_0x1c382e&&(_0x5cfb01+=0x5),{'classes':_0xd7c253,'attributes':{'data-suggestion':_0x55a5bf},'priority':_0x5cfb01};}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))[_0x350f('0x94')](_0x4f6648=>{_0x4f6648['on'](_0x350f('0x7e'),(_0xc113d5,_0x368f7f,_0x4f97eb)=>{if(!_0x4f97eb[_0x350f('0xd6')][_0x350f('0xaf')])return;const _0xefff09=_0x368f7f['item'];if(!_0xefff09)return;const _0x3eaf8c=_0x4f97eb['mapper'][_0x350f('0x67')](_0xefff09);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0xef')](_0xefff09)&&_0x3eaf8c&&!_0x3eaf8c[_0x350f('0x91')](_0x350f('0xc5'))&&_0x3eaf8c['is'](_0x350f('0xf5'))&&_0x466ac4(_0x3eaf8c,_0x4f97eb[_0x350f('0x8c')]);},{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('dataDowncast')[_0x350f('0x9b')]({'model':_0x350f('0xa0'),'view':(_0x50be73,_0x277a65)=>{if(!_0x277a65['options'][_0x350f('0xaf')])return null;const {type:_0x120c5c}=this[_0x350f('0xb1')](_0x50be73[_0x350f('0xa1')]);return{'classes':[_0x350f('0x53'),_0x350f('0x2')+_0x120c5c],'priority':0xbb8};}});const _0x188385=({showActiveMarkers:_0x109e2b=!0x0}={})=>(_0x527657,_0x17a984,_0x3e0de1)=>{if(!_0x17a984[_0x350f('0x7a')])return;if(_0x17a984['item']['is'](_0x350f('0xdd')))return void _0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x17a984['item'],_0x527657[_0x350f('0x113')]);const _0x5556f2=_0x3e0de1[_0x350f('0x5a')]['toViewElement'](_0x17a984[_0x350f('0x7a')]);if(!(_0x17a984[_0x350f('0x7a')]['is'](_0x350f('0xc6'))&&_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0x47')](_0x17a984[_0x350f('0x7a')])&&!_0x5556f2[_0x350f('0x91')](_0x350f('0xbd'))))return;const {id:_0x23fc5c}=this[_0x350f('0xb1')](_0x17a984[_0x350f('0xa1')]);_0x3e0de1['writer'][_0x350f('0x70')]([_0x350f('0x53'),'ck-suggestion-marker-formatBlock'],_0x5556f2),_0x3e0de1[_0x350f('0x8c')][_0x350f('0x46')](_0x350f('0xd7'),_0x23fc5c,_0x5556f2),_0x3e0de1[_0x350f('0x5a')][_0x350f('0x124')](_0x5556f2,_0x17a984[_0x350f('0xa1')]),_0x109e2b&&(this[_0x350f('0xde')][_0x350f('0x9a')](_0x17a984[_0x350f('0xa1')])?_0x3e0de1[_0x350f('0x8c')]['addClass']('ck-suggestion-marker--active',_0x5556f2):_0x3e0de1[_0x350f('0x8c')][_0x350f('0xb0')](_0x350f('0x11c'),_0x5556f2));for(const _0x49467d of _0x5a8c0c[_0x350f('0x18')][_0x350f('0x133')](_0x17a984[_0x350f('0x7a')])[_0x350f('0xae')]())_0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x49467d,_0x527657['name']);_0x3e0de1['consumable'][_0x350f('0x6e')](_0x17a984[_0x350f('0x7a')],_0x527657['name']);};_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))['add'](_0x9dc56a=>{_0x9dc56a['on']('addMarker:suggestion:formatBlock',(_0x383272,_0xb4a754,_0x448c18)=>{_0x448c18[_0x350f('0xd6')]['showSuggestionHighlights']&&_0x188385({'showActiveMarkers':!0x1})(_0x383272,_0xb4a754,_0x448c18);},{'priority':'highest'});}),_0x5a8c0c[_0x350f('0xa')]['for'](_0x350f('0x2b'))[_0x350f('0x25')]({'model':_0x350f('0xa0'),'view':(_0x3ef126,_0xb33579)=>_0xb33579[_0x350f('0xd6')][_0x350f('0xaf')]?null:{'group':_0x350f('0xa0'),'name':_0x3ef126['substr'](_0x350f('0xa0')[_0x350f('0x12e')]+0x1)}}),_0x5a8c0c['conversion'][_0x350f('0xa3')](_0x350f('0x99'))[_0x350f('0xfe')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bff05,{writer:_0x2ef49e})=>{let _0x1e7a97=_0x350f('0xdf')+_0x3bff05['getAttribute'](_0x350f('0xb9'))+':'+_0x3bff05['getAttribute']('id');return _0x3bff05[_0x350f('0x10e')]('marker-count')&&(_0x1e7a97+=':'+_0x3bff05[_0x350f('0x10e')](_0x350f('0x112'))),_0x2ef49e[_0x350f('0x79')]('$marker',{'data-name':_0x1e7a97});}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('upcast')[_0x350f('0xe4')]({'view':_0x350f('0xa0')}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x93735e=>{_0x93735e['on'](_0x350f('0xe'),_0x188385(),{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x40423f=>{_0x40423f['on'](_0x350f('0x7b'),(_0x19f6a9,_0x1c5eeb,_0x3637df)=>{const _0x3c36b5=_0x3637df[_0x350f('0x5a')][_0x350f('0x5e')](_0x1c5eeb[_0x350f('0xa1')]);if(_0x3c36b5)for(const _0x3f360b of _0x3c36b5)_0x3f360b[_0x350f('0x91')]('addHighlight')||(_0x3637df['writer']['removeClass']([_0x350f('0x53'),_0x350f('0x3e'),'ck-suggestion-marker--active'],_0x3f360b),_0x3637df[_0x350f('0x8c')]['removeAttribute'](_0x350f('0xd7'),_0x3f360b),_0x3637df['mapper'][_0x350f('0xb5')](_0x3f360b,_0x1c5eeb['markerName']));},{'priority':'high'});}),_0x5a8c0c[_0x350f('0x18')]['document'][_0x350f('0x80')](_0x577f5d=>{let _0x2d7fc4=!0x1;const _0x20a2da=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')]['differ'][_0x350f('0x109')]()),_0x67ae9e=new Set();for(const {name:_0x1f8221,data:_0x5d06fd}of _0x20a2da){const {group:_0x15a9b2,type:_0x503f85,id:_0x56ce1e}=this[_0x350f('0xb1')](_0x1f8221);if(_0x350f('0xa0')!==_0x15a9b2)continue;const _0x1e99cc=this[_0x350f('0xa6')][_0x350f('0x35')](_0x56ce1e);if(null!=_0x5d06fd[_0x350f('0x4a')]){'formatInline'==_0x503f85&&(_0x2d7fc4=_0x2d7fc4||Ct(_0x5d06fd[_0x350f('0x4a')],_0x1f8221,_0x577f5d,_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')]));if(_0x5d06fd[_0x350f('0x4a')]['isCollapsed']||_0x350f('0x100')==_0x5d06fd[_0x350f('0x4a')][_0x350f('0x5')][_0x350f('0x6a')]||_0x350f('0xcd')==_0x503f85&&!_t(_0x5d06fd[_0x350f('0x4a')])||'deletion'==_0x503f85&&!(!Dt(_0x35ffa0=_0x5d06fd['newRange'])&&!function(_0x5e39f8){return _0x5e39f8[_0x350f('0x88')][_0x350f('0xf2')]==_0x5e39f8[_0x350f('0x41')][_0x350f('0x71')]&&_0x5e39f8['start'][_0x350f('0x11a')];}(_0x35ffa0)))_0x577f5d[_0x350f('0x63')](_0x1f8221),_0x2d7fc4=!0x0;else{if(!_0x1e99cc||!_0x1e99cc[_0x350f('0x129')])continue;_0x67ae9e[_0x350f('0x94')](_0x1e99cc);}}}var _0x35ffa0;return _0x67ae9e[_0x350f('0xfa')]>0x0&&(_0x2d7fc4=!!this[_0x350f('0x4e')](_0x67ae9e)||_0x2d7fc4),_0x2d7fc4;}),_0x5a8c0c['model'][_0x350f('0xce')][_0x350f('0x80')](_0x35889b=>{let _0x128166=!0x1;for(const _0x3d438e of _0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')][_0x350f('0x1c')]()){if('insert'!=_0x3d438e[_0x350f('0xb')])continue;const _0x4b1c0f=_0x3d438e[_0x350f('0x5b')][_0x350f('0x6')](_0x3d438e[_0x350f('0x12e')]);if(_0x4b1c0f[_0x350f('0x11a')])for(const _0x4b4f69 of this[_0x350f('0xa6')][_0x350f('0xee')]()){if(_0x4b4f69[_0x350f('0x103')]||!_0x4b4f69[_0x350f('0x129')])continue;if(_0x350f('0xcd')!=_0x4b4f69[_0x350f('0xb')])continue;const _0x596185=_0x4b4f69['getFirstRange']();if(_0x596185['start']['parent']!=_0x596185[_0x350f('0x41')]['parent']&&_0x596185[_0x350f('0x41')][_0x350f('0xdc')](_0x3d438e['position'])){const _0x4e045b=_0x5a8c0c['model'][_0x350f('0x107')](_0x596185[_0x350f('0x88')],_0x4b1c0f);_0x35889b[_0x350f('0x7f')](_0x4b4f69[_0x350f('0x29')](),{'range':_0x4e045b}),_0x128166=!0x0;}}}return _0x128166;}),_0x5a8c0c[_0x350f('0x18')][_0x350f('0x84')]['on'](_0x350f('0xd8'),(_0x17d0da,_0x365487,_0x3b96ad)=>{if(null==_0x3b96ad){const {id:_0x4d9ef9}=this[_0x350f('0xb1')](_0x365487[_0x350f('0x113')]),_0x4ac7e4=this['_suggestions'][_0x350f('0x35')](_0x4d9ef9);_0x4ac7e4&&_0x4ac7e4[_0x350f('0xbe')](_0x365487[_0x350f('0x113')]);}}),_0x5a8c0c['model']['document']['on'](_0x350f('0xc1'),()=>{const _0x324523=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')]['getChangedMarkers']())[_0x350f('0xf4')](_0x389dd6=>_0x350f('0xa0')===this[_0x350f('0xb1')](_0x389dd6['name'])[_0x350f('0x28')]);if(0x0===_0x324523[_0x350f('0x12e')])return;_0x324523[_0x350f('0x55')]((_0x3ad3df,_0x15da92)=>{const _0x4a5883=_0x3ad3df[_0x350f('0x6f')][_0x350f('0xcb')],_0x2901b6=_0x15da92['data'][_0x350f('0xcb')];return null===_0x4a5883&&null===_0x2901b6?0x0:null===_0x4a5883&&null!==_0x2901b6?-0x1:null!==_0x4a5883&&null===_0x2901b6?0x1:_0x4a5883[_0x350f('0x88')][_0x350f('0x11b')](_0x2901b6[_0x350f('0x88')])?-0x1:0x1;});const _0x67deaf=new Set(),_0x20b4a6=new Set();for(const {name:_0x55bf57,data:_0x48dff8}of _0x324523){const {id:_0x495590}=this[_0x350f('0xb1')](_0x55bf57);if(null===_0x48dff8['oldRange']){const _0x121478=this[_0x350f('0xec')](_0x55bf57);_0x20b4a6[_0x350f('0x94')](_0x121478);}else{const _0x289638=this[_0x350f('0xa6')][_0x350f('0x35')](_0x495590);null!==_0x48dff8[_0x350f('0x4a')]||_0x289638['isInContent']?(_0x67deaf['add'](_0x289638[_0x350f('0x51')]),_0x20b4a6[_0x350f('0x94')](_0x289638)):this[_0x350f('0xc0')](_0x289638);}}_0x20b4a6[_0x350f('0xfa')]>0x0&&this['_refreshSuggestionsChain'](_0x20b4a6);for(const _0x117667 of _0x67deaf)this[_0x350f('0x6d')]('suggestionChanged',_0x117667);}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xd9'),(_0x4ce38b,_0x489155)=>{const _0x45a442=_0x489155[0x0];if(!this[_0x350f('0xa6')][_0x350f('0xfa')])return;if(!_0x45a442[_0x350f('0xe9')])return;if(_0x45a442[_0x350f('0x90')][_0x350f('0x10')]||!_0x45a442[_0x350f('0x90')]['isLocal'])return;let _0x4d64ac,_0x297439;switch(_0x45a442[_0x350f('0xb')]){case _0x350f('0xf0'):_0x4d64ac=_0x5a8c0c['model']['createPositionAt'](_0x45a442[_0x350f('0x5b')]),_0x297439=_0x4d64ac[_0x350f('0x6')](_0x45a442[_0x350f('0x105')]);break;case _0x350f('0x16'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x45a442[_0x350f('0x20')]),_0x297439=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442[_0x350f('0xba')]);break;case _0x350f('0x36'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442['targetPosition']),_0x297439=_0x4d64ac['getShiftedBy'](_0x45a442[_0x350f('0x105')]);break;default:return;}const _0x219649=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x107')](_0x4d64ac,_0x297439);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const {suggestion:_0x75fd13,meta:_0x47cfc9}of this['_findSuggestions'](_0x219649)){if(_0x75fd13['isMultiRange'])continue;if(_0x350f('0x0')==_0x75fd13[_0x350f('0xb')])continue;const _0x2a3467=_0x75fd13[_0x350f('0x6f')]&&_0x75fd13['data'][_0x350f('0x4f')];(_0x350f('0xcd')!=_0x75fd13['type']||_0x350f('0x16')==_0x45a442['type']&&!_0x2a3467)&&(_0x47cfc9[_0x350f('0x57')]||_0x350f('0xb3')==_0x75fd13[_0x350f('0xb')]&&_0x47cfc9['isOwn']||_0x75fd13[_0x350f('0x3c')]()[_0x350f('0xf8')](_0x219649)&&this[_0x350f('0x104')](_0x75fd13,_0x4d64ac,_0x297439));}});},{'priority':_0x350f('0x82')}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xaa'),(_0x1fa3e0,_0x5c57c7)=>{const _0x60f1da=_0x5c57c7[0x0],_0x3298d3=_0x5c57c7[0x1];if(_0x3298d3&&_0x3298d3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x350f('0x119')][_0x350f('0x31')])return;if(_0x60f1da[_0x350f('0x117')])return;const _0x5ae90c=_0x5a8c0c[_0x350f('0x18')]['schema'],{start:_0x345400,end:_0x281790}=_0x60f1da[_0x350f('0x3c')](),_0x4cd966=_0x345400[_0x350f('0x23')]&&_0x5ae90c[_0x350f('0x1f')](_0x345400[_0x350f('0x23')])?null:_0x5ae90c['getNearestSelectionRange'](_0x345400,_0x350f('0x97')),_0x48c5c5=_0x281790[_0x350f('0x71')]&&_0x5ae90c[_0x350f('0x1f')](_0x281790[_0x350f('0x71')])?null:_0x5ae90c[_0x350f('0x8b')](_0x281790,'backward'),_0x4deb99=_0x5a8c0c['model'][_0x350f('0x107')](_0x4cd966?_0x4cd966[_0x350f('0x88')]:_0x345400,_0x48c5c5?_0x48c5c5['end']:_0x281790);_0x5a8c0c['model'][_0x350f('0x8a')](_0x3a1e15=>{this[_0x350f('0x4')](_0x4deb99);const _0x3dd609=_0x5a8c0c[_0x350f('0x18')]['schema']['getNearestSelectionRange'](_0x4deb99[_0x350f('0x88')]);_0x60f1da['is'](_0x350f('0x59'))?_0x3a1e15['setSelection'](_0x3dd609):_0x60f1da[_0x350f('0xc4')](_0x3dd609);}),_0x1fa3e0[_0x350f('0x4c')]();},{'priority':_0x59dfda[_0x350f('0xe2')]+0xa}),_0x5a8c0c['model']['on'](_0x350f('0x7c'),(_0x42087f,_0x4ee43c)=>{const _0x451212=_0x4ee43c[_0x4ee43c[_0x350f('0x12e')]-0x1];_0x451212&&_0x451212[_0x350f('0x33')]||this[_0x350f('0x65')]||this['trackChangesCommand']['value']&&(_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{let _0x44b51a=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x7c')](_0x4ee43c[0x0],_0x4ee43c[0x1],_0x4ee43c[0x2],{'forceDefaultExecution':!0x0});if(!_0x44b51a)return;_0x42087f[_0x350f('0xdb')]=_0x44b51a[_0x350f('0xf')]();const _0x1f245a=_0x44b51a[_0x350f('0x41')][_0x350f('0x71')],_0x33d792=_0x5a8c0c['model'][_0x350f('0x44')];_0x1f245a&&_0x33d792[_0x350f('0x47')](_0x1f245a)&&!_0x33d792[_0x350f('0xef')](_0x1f245a)&&(_0x44b51a=_0x5a8c0c['model']['createRange'](_0x44b51a[_0x350f('0x88')],_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x1f245a,_0x350f('0x41')))),this[_0x350f('0x13')](_0x44b51a);}),_0x42087f['stop']());},{'priority':_0x350f('0x21')}),this[_0x350f('0x49')][_0x350f('0x12f')]['add'](_0x350f('0x64'),this[_0x350f('0x119')]),this['enableCommand'](_0x350f('0x64'));const _0x4a0e01=new _0x4bcffe(_0x5a8c0c,this[_0x350f('0xa6')]);_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')](_0x350f('0x12a'),_0x4a0e01),this['enableCommand'](_0x350f('0x12a'));const _0x1fda72=new _0x4186d0(_0x5a8c0c,this['_suggestions']);_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0xbb'),_0x1fda72),this[_0x350f('0x126')](_0x350f('0xbb')),_0x5a8c0c['commands']['add'](_0x350f('0x9'),new _0x4a8fef(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x9')),_0x5a8c0c[_0x350f('0x12f')]['add'](_0x350f('0x6b'),new _0x4a8fef(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x6b')),_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0x86'),new _0xea949b(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')]('acceptSelectedSuggestions'),_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')]('discardSelectedSuggestions',new _0xea949b(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0xc7'));const _0x34df29=_0x5a8c0c[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128'));this[_0x350f('0x83')](_0x34df29,_0x350f('0x1e'),(_0x29c5f9,{threadId:_0x5f0f7c})=>{const _0x4f5ca2=this['_suggestions'][_0x350f('0x35')](_0x5f0f7c);_0x4f5ca2&&_0x4f5ca2[_0x350f('0x135')]&&0x1===_0x4f5ca2[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x5f0f7c,{'hasComments':!0x0});},{'priority':_0x350f('0xd2')}),this['listenTo'](_0x34df29,_0x350f('0x101'),(_0x105ce3,{threadId:_0x286176})=>{const _0x153c0e=this[_0x350f('0xa6')][_0x350f('0x35')](_0x286176);_0x153c0e&&_0x153c0e[_0x350f('0x135')]&&!_0x153c0e[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x286176,{'hasComments':!0x1});},{'priority':'low'});}set[_0x350f('0x121')](_0x24fae5){if(this['_adapter'])throw new _0x119d3e(_0x350f('0x8e'),this);this[_0x350f('0x12d')]=_0x24fae5;}get[_0x350f('0x121')](){return this[_0x350f('0x12d')];}[_0x350f('0x48')]({skipNotAttached:_0x15e49c=!0x1,toJSON:_0x35b3a2=!0x1}={}){const _0x1fcd1a=[];for(const _0x4124ab of this[_0x350f('0xa6')][_0x350f('0xee')]())_0x15e49c&&!_0x4124ab[_0x350f('0x129')]||_0x1fcd1a[_0x350f('0x123')](_0x4124ab);return _0x35b3a2?_0x1fcd1a['map'](_0x28cd60=>_0x28cd60[_0x350f('0xa5')]()):_0x1fcd1a;}[_0x350f('0xbc')](_0x4bbff7){const _0x46194d=this['_suggestions'][_0x350f('0x35')](_0x4bbff7);if(!_0x46194d)throw new _0x119d3e(_0x350f('0x58'),this);return _0x46194d;}[_0x350f('0x24')](_0x16aa5f){return this['_suggestions'][_0x350f('0xf1')](_0x16aa5f);}[_0x350f('0x7d')](_0x83ef1c){const {authorId:_0x4f6825,id:_0x32ef33,attributes:_0x48f0d8}=_0x83ef1c,[_0x1a7b61,_0x454c3a]=_0x83ef1c['type'][_0x350f('0x16')](':'),_0x5a7369=this['_suggestions'][_0x350f('0x35')](_0x32ef33)||this[_0x350f('0x134')](_0x1a7b61,_0x454c3a,_0x32ef33,_0x4f6825,_0x48f0d8);if(this[_0x350f('0x93')](_0x5a7369),this['_checkSuggestionCorrectness'](_0x5a7369,_0x1a7b61,_0x454c3a||null,_0x4f6825),_0x5a7369[_0x350f('0x11')]=_0x83ef1c['createdAt'],_0x48f0d8&&_0x48f0d8[_0x350f('0x110')]){const _0x5ba79c=_0x48f0d8[_0x350f('0x110')],_0x29df94=this[_0x350f('0xf9')](_0x5ba79c['authorName']);_0x5a7369[_0x350f('0x52')]=_0x5ba79c[_0x350f('0x11')],_0x5a7369[_0x350f('0x17')]=_0x29df94,_0x5a7369['isExternal']=!0x0;}else _0x5a7369[_0x350f('0x52')]=_0x83ef1c[_0x350f('0x11')];switch(_0x83ef1c[_0x350f('0x6f')]&&(_0x5a7369[_0x350f('0x6f')]=_0x83ef1c['data']),_0x83ef1c['attributes']&&(_0x5a7369[_0x350f('0x108')]=_0x83ef1c[_0x350f('0x108')]),this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]||(_0x5a7369[_0x350f('0x2f')]=!0x0),this[_0x350f('0x9e')][_0x350f('0x35')](_0x5a7369)){case _0x350f('0xc8'):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'dataReady');break;case _0x350f('0xe8'):_0x5a7369[_0x350f('0x129')]?(this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'ready'),this[_0x350f('0x6d')]('suggestionLoaded',_0x5a7369)):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'removed');}return _0x5a7369;}[_0x350f('0x12a')](_0x598410){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x3ba021 of _0x598410[_0x350f('0x136')]())_0x3ba021[_0x350f('0xd0')]();});});}[_0x350f('0xbb')](_0x306bc3){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x220c02 of _0x306bc3[_0x350f('0x136')]())_0x220c02['discard']();});});}[_0x350f('0x126')](_0x2ac6a6,_0x459c7d){const _0x5d6cfe=this[_0x350f('0x49')][_0x350f('0x12f')][_0x350f('0x35')](_0x2ac6a6);if(!_0x5d6cfe)throw new _0x119d3e(_0x350f('0x50'),this,{'commandName':_0x2ac6a6});this['_enabledCommands'][_0x350f('0x94')](_0x5d6cfe),_0x459c7d&&_0x5d6cfe['on'](_0x350f('0x76'),(_0x238f81,_0x277cc0)=>{this[_0x350f('0x119')][_0x350f('0x31')]&&(this[_0x350f('0x65')]||_0x277cc0['length']>0x0&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]['forceDefaultExecution']||(_0x459c7d((..._0xec9968)=>_0x5d6cfe[_0x350f('0x76')](..._0xec9968,{'forceDefaultExecution':!0x0}),..._0x277cc0),_0x238f81[_0x350f('0x4c')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x51d7a4){let _0x40f02b,_0x4225a9;const _0x3c3bb3=this[_0x350f('0x65')];this[_0x350f('0x65')]=!0x0;try{_0x40f02b=_0x51d7a4();}catch(_0x2ce40c){_0x4225a9=_0x2ce40c;}return _0x3c3bb3||(this[_0x350f('0x65')]=!0x1),_0x4225a9&&_0x119d3e['rethrowUnexpectedError'](_0x4225a9,this),_0x40f02b;}['markInsertion'](_0x5cc0a3,_0x58df4c=null,_0x507b25={}){if(_0x5cc0a3[_0x350f('0x117')])return null;const _0x1109cf=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'];for(const {suggestion:_0x457c26,meta:_0x2da8cd}of this[_0x350f('0xea')](_0x5cc0a3,_0x350f('0xb3')))if(_0x2da8cd['isOwn']){if(!_0x2da8cd[_0x350f('0xfc')])return _0x457c26;if(_0x58df4c==_0x457c26[_0x350f('0xf6')]){const _0x531f2e=_0x457c26[_0x350f('0x3c')]();return _0x531f2e[_0x350f('0x88')][_0x350f('0xdc')](_0x5cc0a3[_0x350f('0x41')])?this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x5cc0a3[_0x350f('0x88')],_0x531f2e[_0x350f('0x41')])):this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x531f2e[_0x350f('0x88')],_0x5cc0a3[_0x350f('0x41')])),_0x457c26;}}const _0x53dc7e=_0x4cb20a(),_0x25df07=_0x1109cf['id'],_0x2a57a5=_0x58df4c?_0x350f('0x10b')+_0x58df4c:_0x350f('0xb3'),_0xaee594=this[_0x350f('0x122')]({'id':_0x53dc7e,'type':_0x2a57a5,'createdAt':new Date(),'authorId':_0x25df07,'attributes':_0x507b25});return this['_addSuggestionMarker'](_0x2a57a5,_0x53dc7e,_0x25df07,_0x5cc0a3),_0xaee594;}['markMultiRangeInsertion'](_0x50d360,_0x23c15c=_0x350f('0x9f'),_0x535aea={}){const _0x2d7036=this[_0x350f('0x49')]['plugins']['get']('Users')['me'],_0x460172=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xb3'),_0x23c15c,_0x350f('0x1d'));for(const _0x14bbde of this[_0x350f('0x48')]())if(_0x14bbde[_0x350f('0x17')]['id']==_0x2d7036['id']&&_0x350f('0xb3')==_0x14bbde['type']&&_0x14bbde['subType']==_0x23c15c&&(_0x460172(_0x14bbde[_0x350f('0x72')](),_0x50d360)||_0x460172(_0x50d360,_0x14bbde['getRanges']()))){for(const _0x30263f of _0x50d360)_0x14bbde[_0x350f('0xe0')](_0x30263f);return _0x14bbde;}for(const _0x274191 of _0x50d360)for(const {suggestion:_0x36de1b,meta:_0x256895}of this['_findSuggestions'](_0x274191,_0x350f('0xb3'))){if(!_0x256895['isOwn'])continue;let _0x3149ae=!0x0;for(const _0x2b98fd of _0x36de1b[_0x350f('0x72')]())for(const _0x319757 of _0x50d360)if(!_0x2b98fd['containsRange'](_0x319757)){_0x3149ae=!0x1;break;}if(_0x3149ae)return _0x36de1b;}const _0x3cbfa6=_0x4cb20a(),_0x4b5629=_0x2d7036['id'],_0x1885ae=_0x350f('0x10b')+_0x23c15c,_0x4732eb=this['_setSuggestionData']({'id':_0x3cbfa6,'type':_0x1885ae,'createdAt':new Date(),'authorId':_0x4b5629,'attributes':_0x535aea});for(const _0x1a6804 of _0x50d360)this['_addSuggestionMarker'](_0x1885ae,_0x3cbfa6,_0x4b5629,_0x1a6804,_0x14b365[_0x350f('0xe6')]());return _0x4732eb;}[_0x350f('0x87')](_0x2f0a18,_0x2d2c5b,_0x34f3c4=null,_0x4c3fd3={}){if(_0x34f3c4=_0x34f3c4||Bt(_0x2d2c5b),_0x2f0a18[_0x350f('0x117')])return null;if(!0x1===this[_0x350f('0xff')]){const _0x3e9ba3=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');return this['forceDefaultExecution'](()=>_0x3e9ba3([_0x2f0a18],_0x2d2c5b,_0x4c3fd3)),null;}const _0x28eb0f=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x45cdb4=[];for(const {suggestion:_0x364019,meta:_0x453951}of this[_0x350f('0xea')](_0x2f0a18,_0x350f('0xb3')))_0x453951[_0x350f('0x115')]&&!_0x453951[_0x350f('0x3f')]&&_0x45cdb4[_0x350f('0x123')](..._0x364019[_0x350f('0x72')]());const _0x5188f7=function(_0x5b0d76,_0x40f1d8){const _0x45cb64=[];for(const _0x25963f of _0x40f1d8){const _0x57cf8c=_0x5b0d76[_0x350f('0x5f')](_0x25963f);_0x57cf8c&&_0x45cb64[_0x350f('0x123')](_0x57cf8c);}return _0x45cb64;}(_0x2f0a18,_0x45cdb4),_0x77388=function(_0x42b57c,_0x4a6b40){const _0x2c31ee=[_0x42b57c];for(const _0x4798e8 of _0x4a6b40){let _0x17ec16=0x0;for(;_0x17ec16<_0x2c31ee[_0x350f('0x12e')];){const _0x4832b7=_0x2c31ee[_0x17ec16][_0x350f('0x62')](_0x4798e8);_0x2c31ee[_0x350f('0x1a')](_0x17ec16,0x1,..._0x4832b7),_0x17ec16+=_0x4832b7[_0x350f('0x12e')];}}return _0x2c31ee;}(_0x2f0a18,_0x45cdb4);_0x5188f7[_0x350f('0x12e')]&&this[_0x350f('0x3b')]['change'](()=>{for(const _0x202df2 of _0x5188f7){const _0x53b0e1=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');this[_0x350f('0x33')](()=>_0x53b0e1([_0x202df2],_0x2d2c5b,_0x4c3fd3));}});for(const _0x40a706 of _0x77388){let _0x1ca11f=null,_0x4e2b90=_0x40a706[_0x350f('0x88')],_0x4af164=_0x40a706['end'];for(const {suggestion:_0x296ef9,meta:_0x2b535f}of this[_0x350f('0xea')](_0x40a706,_0x350f('0x0'))){if(!_0x2b535f[_0x350f('0x115')])continue;if(_0x296ef9[_0x350f('0xf6')]!=_0x34f3c4)continue;const _0xda85a=_0x296ef9[_0x350f('0x3c')]();if(_0xda85a[_0x350f('0xf8')](_0x40a706,!0x0))return null;_0x4e2b90=_0x4e2b90[_0x350f('0x11b')](_0xda85a['start'])?_0x4e2b90:_0xda85a[_0x350f('0x88')],_0x4af164=_0x4af164[_0x350f('0x6c')](_0xda85a[_0x350f('0x41')])?_0x4af164:_0xda85a[_0x350f('0x41')],_0x1ca11f?_0xda85a[_0x350f('0x88')][_0x350f('0x11b')](_0x1ca11f[_0x350f('0x3c')]()['start'])?(_0x1ca11f[_0x350f('0x22')](),_0x1ca11f=_0x296ef9):_0x296ef9[_0x350f('0x22')]():_0x1ca11f=_0x296ef9;}const _0x5b8126=this['_model'][_0x350f('0x107')](_0x4e2b90,_0x4af164);if(_0x1ca11f)this[_0x350f('0x4d')](_0x1ca11f,_0x5b8126);else{const _0x4b46e0=_0x4cb20a(),_0x3cc1bd=_0x28eb0f['id'];this[_0x350f('0x122')]({'id':_0x4b46e0,'type':_0x350f('0xd')+_0x34f3c4,'data':_0x2d2c5b,'createdAt':new Date(),'authorId':_0x3cc1bd,'attributes':_0x4c3fd3}),this[_0x350f('0x2d')](_0x350f('0xd')+_0x34f3c4,_0x4b46e0,_0x3cc1bd,_0x5b8126);}}return null;}[_0x350f('0x75')](_0x2001fc,_0x16bf22,_0x3ed712=[],_0x1b5d23=null,_0x5f841c={}){_0x16bf22[_0x350f('0xc')]||(_0x16bf22['formatGroupId']=_0x16bf22[_0x350f('0xda')]),_0x16bf22['multipleBlocks']=_0x2001fc['is'](_0x350f('0x56')),_0x1b5d23=_0x1b5d23||Bt(_0x16bf22);const _0x5dedba=_0x3ed712[_0x350f('0x3d')](_0x57b896=>Mt(_0x57b896,this[_0x350f('0x3b')])),_0x47d47b=_0x2001fc['is'](_0x350f('0x56'))?_0x2001fc:Mt(_0x2001fc,this['_model']);if(!0x1===this[_0x350f('0xff')]){const _0x1437dd=this[_0x350f('0x4b')]['getSuggestionCallback']('formatBlock',_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x1437dd([_0x47d47b],_0x16bf22,_0x5f841c)),null;}_0x5dedba['push'](_0x47d47b);let _0x1a94db=!0x0;for(const _0x48f433 of _0x5dedba)if(!this['_rangeIsInLocalUserInsertion'](_0x48f433)){_0x1a94db=!0x1;break;}if(_0x1a94db){const _0x19591d=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x19591d([_0x47d47b],_0x16bf22,_0x5f841c)),null;}let _0x16ace9=null,_0x50f6ae=_0x47d47b[_0x350f('0x88')],_0x2c2edf=_0x47d47b[_0x350f('0x41')];for(const {suggestion:_0x162bc7,meta:_0x3c28ed}of this['_findSuggestions'](_0x47d47b,_0x350f('0xcd'))){if(!_0x3c28ed[_0x350f('0x115')]||_0x3c28ed['isNextTo']||_0x3c28ed[_0x350f('0x57')]||_0x3c28ed[_0x350f('0x3f')])continue;if(_0x162bc7[_0x350f('0x6f')]['formatGroupId']!=_0x16bf22[_0x350f('0xc')])continue;const _0xee1340=_0x162bc7[_0x350f('0x3c')]();if(_0x162bc7[_0x350f('0xf6')]==_0x1b5d23){if(_0xee1340[_0x350f('0xf8')](_0x47d47b,!0x0))return null;_0x50f6ae=_0x50f6ae[_0x350f('0x11b')](_0xee1340['start'])?_0x50f6ae:_0xee1340[_0x350f('0x88')],_0x2c2edf=_0x2c2edf[_0x350f('0x6c')](_0xee1340[_0x350f('0x41')])?_0x2c2edf:_0xee1340[_0x350f('0x41')],_0x16ace9?_0xee1340[_0x350f('0x88')]['isBefore'](_0x16ace9['getFirstRange']()[_0x350f('0x88')])?(_0x16ace9[_0x350f('0x22')](),_0x16ace9=_0x162bc7):_0x162bc7[_0x350f('0x22')]():_0x16ace9=_0x162bc7;}else{const _0x236d7c=_0x47d47b[_0x350f('0x5f')](_0xee1340);this[_0x350f('0x78')](_0x162bc7,_0x236d7c);}}const _0x49db2c=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'],_0x5d6d11=_0x4cb20a(),_0x43b5bd=_0x49db2c['id'];if(_0x16ace9)return this[_0x350f('0x4d')](_0x16ace9,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x16ace9;{const _0x4b6a28=this[_0x350f('0x122')]({'id':_0x5d6d11,'type':'formatBlock:'+_0x1b5d23,'data':_0x16bf22,'createdAt':new Date(),'authorId':_0x43b5bd,'attributes':_0x5f841c});return this[_0x350f('0x2d')](_0x350f('0xac')+_0x1b5d23,_0x5d6d11,_0x43b5bd,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x4b6a28;}}['markMultiRangeBlockFormat'](_0x4d2ead,_0x309c8f,_0x2b9809=[],_0x3699ae=null,_0x31bf53={}){_0x309c8f[_0x350f('0xc')]||(_0x309c8f[_0x350f('0xc')]=_0x309c8f['commandName']);const _0xc21016=_0x4d2ead[0x0];_0x309c8f[_0x350f('0x4f')]=_0xc21016['is'](_0x350f('0x56')),_0x3699ae=_0x3699ae||Bt(_0x309c8f);const _0x3bbc3d=_0x2b9809[_0x350f('0x3d')](_0x357af4=>Mt(_0x357af4,this[_0x350f('0x3b')])),_0xd02e20=_0xc21016['is'](_0x350f('0x56'))?_0x4d2ead:_0x4d2ead['map'](_0x156977=>Mt(_0x156977,this[_0x350f('0x3b')]));if(!0x1===this['_trackFormatChanges']){const _0x5c0fa9=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x3699ae,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x5c0fa9(_0xd02e20,_0x309c8f,_0x31bf53)),null;}_0x3bbc3d[_0x350f('0x123')](..._0xd02e20);let _0x3eb3bf=!0x0;for(const _0x3dcd15 of _0x3bbc3d)if(!this[_0x350f('0xf7')](_0x3dcd15)){_0x3eb3bf=!0x1;break;}if(_0x3eb3bf){const _0x51ebd8=this[_0x350f('0x4b')]['getSuggestionCallback'](_0x350f('0xcd'),_0x3699ae,'accept');return this[_0x350f('0x33')](()=>_0x51ebd8(_0xd02e20,_0x309c8f,_0x31bf53)),null;}const _0x5beaeb=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x5946bf of this['getSuggestions']()){if(_0x5946bf[_0x350f('0x17')]['id']!=_0x5beaeb['id'])continue;if(_0x350f('0xcd')!=_0x5946bf[_0x350f('0xb')]||_0x5946bf[_0x350f('0x6f')][_0x350f('0xc')]!=_0x309c8f[_0x350f('0xc')])continue;const _0x303dcc=_0x5946bf[_0x350f('0xf6')]==_0x3699ae;for(let _0x3320c2=0x0;_0x3320c2<_0xd02e20['length'];_0x3320c2++){const _0x25e1af=_0xd02e20[_0x3320c2];for(const _0x1858ae of _0x5946bf[_0x350f('0x27')]()){const _0x2cb58d=_0x1858ae['getRange']();if(_0x25e1af[_0x350f('0xdc')](_0x2cb58d)){_0x303dcc?(_0xd02e20[_0x350f('0x1a')](_0x3320c2,0x1),_0x3320c2--):_0x5946bf[_0x350f('0x63')](_0x1858ae['name']);break;}}}}if(0x0==_0xd02e20[_0x350f('0x12e')])return null;const _0x3c235c=this['_suggestionFactory'][_0x350f('0x30')]('formatBlock',_0x3699ae,_0x350f('0x1d'));for(const _0x5bfc15 of this[_0x350f('0x48')]())if(_0x5bfc15[_0x350f('0x17')]['id']==_0x5beaeb['id']&&_0x350f('0xcd')==_0x5bfc15[_0x350f('0xb')]&&_0x5bfc15[_0x350f('0x6f')][_0x350f('0xc')]==_0x309c8f[_0x350f('0xc')]&&_0x5bfc15[_0x350f('0xf6')]==_0x3699ae&&(_0x3c235c(_0x5bfc15[_0x350f('0x72')](),_0xd02e20)||_0x3c235c(_0xd02e20,_0x5bfc15[_0x350f('0x72')]()))){for(const _0x4a9a56 of _0xd02e20)_0x5bfc15[_0x350f('0xe0')](_0x4a9a56);return _0x5bfc15;}const _0x116125=_0x4cb20a(),_0x47e80f=_0x5beaeb['id'],_0x570891=_0x350f('0xac')+_0x3699ae,_0xb9e47b=this['_setSuggestionData']({'id':_0x116125,'type':_0x570891,'data':_0x309c8f,'createdAt':new Date(),'authorId':_0x47e80f,'attributes':_0x31bf53});for(const _0x37445f of _0xd02e20)this[_0x350f('0x2d')](_0x570891,_0x116125,_0x47e80f,_0x37445f,_0x14b365[_0x350f('0xe6')]());return _0xb9e47b;}[_0x350f('0x4')](_0x2b0f55,_0x50f2dd=null,_0x4178ea={}){if(_0x2b0f55[_0x350f('0x117')])return null;const _0x4f2238=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x5cc337=new _0x319865(_0x2b0f55['start'],_0x2b0f55['end']);for(const {suggestion:_0x4e090b,meta:_0x77d797}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0xb3')))if(_0x77d797[_0x350f('0x115')]&&!_0x77d797[_0x350f('0xfc')]){if(_0x4e090b[_0x350f('0x103')]){const _0x418ff5=_0x4e090b[_0x350f('0x72')]()[_0x350f('0xf4')](_0x1eed0f=>'$graveyard'!=_0x1eed0f[_0x350f('0x5')][_0x350f('0x6a')]);_0x418ff5[_0x350f('0x1b')](_0xa6b7a4=>_0x5cc337[_0x350f('0xf8')](_0xa6b7a4,!0x0))&&_0x4e090b[_0x350f('0xe1')]();if(_0x418ff5['some'](_0x2c658e=>_0x2c658e[_0x350f('0xf8')](_0x5cc337,!0x0))){const _0x9a3a06=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x50f2dd,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x9a3a06([_0x5cc337],null,_0x4178ea)),null;}}else{const _0x4dcd2f=_0x5cc337[_0x350f('0x5f')](_0x4e090b[_0x350f('0x3c')]());_0x4e090b[_0x350f('0xb7')]([_0x4dcd2f],null,_0x4178ea);}}if(_0x5cc337[_0x350f('0xe5')](),_0x5cc337[_0x350f('0x117')]||_0x350f('0x100')==_0x5cc337[_0x350f('0x5')][_0x350f('0x6a')])return null;let _0x2c3c05=null,_0x455d5f=_0x5cc337['start'],_0x580d8c=_0x5cc337['end'];for(const {suggestion:_0x330c54,meta:_0x25e1e0}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0x11f')))if(_0x25e1e0['isOwn']){if(_0x330c54[_0x350f('0x103')]){let _0xcc8b33=!0x0;for(const _0x260969 of _0x330c54['getRanges']()){if(_0x260969[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x5cc337['containsRange'](_0x260969)||(_0xcc8b33=!0x1);}_0xcc8b33&&_0x330c54[_0x350f('0xe1')]();}else{const _0x296dbd=_0x330c54['getFirstRange']();if(_0x296dbd[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x455d5f=_0x455d5f[_0x350f('0x11b')](_0x296dbd[_0x350f('0x88')])?_0x455d5f:_0x296dbd[_0x350f('0x88')],_0x580d8c=_0x580d8c[_0x350f('0x6c')](_0x296dbd['end'])?_0x580d8c:_0x296dbd[_0x350f('0x41')],_0x2c3c05?_0x296dbd[_0x350f('0x88')][_0x350f('0x11b')](_0x2c3c05['getFirstRange']()[_0x350f('0x88')])?(_0x2c3c05[_0x350f('0x22')](),_0x2c3c05=_0x330c54):_0x330c54[_0x350f('0x22')]():_0x2c3c05=_0x330c54;}}if(_0x2c3c05)return this[_0x350f('0x4d')](_0x2c3c05,this[_0x350f('0x3b')]['createRange'](_0x455d5f,_0x580d8c)),_0x2c3c05;{const _0x4105bc=_0x4cb20a(),_0x221136=this[_0x350f('0x3b')][_0x350f('0x107')](_0x455d5f,_0x580d8c),_0x336022=_0x4f2238['id'],_0x16893c=_0x50f2dd?'deletion:'+_0x50f2dd:_0x350f('0x11f'),_0x20db8d=this[_0x350f('0x122')]({'id':_0x4105bc,'type':_0x16893c,'createdAt':new Date(),'authorId':_0x336022,'attributes':_0x4178ea});return this[_0x350f('0x2d')](_0x16893c,_0x4105bc,_0x336022,_0x221136),_0x20db8d;}}['markMultiRangeDeletion'](_0x5557c6,_0x4c53ed=_0x350f('0x9f'),_0x5ad3c9={}){const _0x1e06b3=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x3c8ef5=_0x5557c6[_0x350f('0x3d')](_0x10d70f=>new _0x319865(_0x10d70f[_0x350f('0x88')],_0x10d70f[_0x350f('0x41')])),_0x3340bb=new Set();for(const _0x43be22 of _0x3c8ef5)for(const {suggestion:_0x43f35c,meta:_0xfe976}of this[_0x350f('0xea')](_0x43be22,_0x350f('0xb3')))_0xfe976['isOwn']&&!_0xfe976['isNextTo']&&_0x3340bb[_0x350f('0x94')](_0x43f35c);for(const _0x123f7c of _0x3340bb)if(_0x123f7c[_0x350f('0x103')]){const _0x32e386=_0x123f7c['getRanges']();(!_0x123f7c[_0x350f('0x108')]||!_0x123f7c[_0x350f('0x108')]['skipNestingCheck'])&&(_0x32e386[_0x350f('0x1b')](_0x4aaab2=>_0x3c8ef5[_0x350f('0xb4')](_0x1ebf26=>_0x1ebf26[_0x350f('0xf8')](_0x4aaab2,!0x0)))&&_0x123f7c['discard']());if(_0x3c8ef5['every'](_0x240368=>_0x32e386[_0x350f('0xb4')](_0x569f0f=>_0x569f0f[_0x350f('0xf8')](_0x240368,!0x0)))){const _0x589e15=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,'accept');return this['forceDefaultExecution'](()=>_0x589e15(_0x5557c6,null,_0x5ad3c9)),null;}}else{const _0x18d71f=_0x123f7c[_0x350f('0x3c')]();_0x3c8ef5['some'](_0x54e99f=>_0x54e99f[_0x350f('0xf8')](_0x18d71f,!0x0))&&_0x123f7c[_0x350f('0xe1')]();if(_0x3c8ef5['every'](_0x2ba696=>_0x18d71f[_0x350f('0xf8')](_0x2ba696,!0x0))){const _0x54a358=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x54a358(_0x3c8ef5,null,_0x5ad3c9)),null;}}const _0x56f480=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0x1d'));let _0x1f0c34=null;for(const _0x1ffa00 of this[_0x350f('0x48')]())if(_0x1ffa00[_0x350f('0x17')]['id']==_0x1e06b3['id']&&_0x1ffa00[_0x350f('0x129')]&&_0x350f('0x11f')==_0x1ffa00[_0x350f('0xb')]&&_0x1ffa00[_0x350f('0xf6')]==_0x4c53ed&&(_0x56f480(_0x1ffa00[_0x350f('0x72')](),_0x3c8ef5)||_0x56f480(_0x3c8ef5,_0x1ffa00['getRanges']()))){if(_0x1f0c34){if(_0x1ffa00[_0x350f('0x135')]&&_0x1ffa00[_0x350f('0x135')][_0x350f('0x12e')])continue;for(const _0x23ac9e of _0x1ffa00[_0x350f('0x72')]())_0x1f0c34[_0x350f('0x2c')](_0x23ac9e)||_0x1f0c34[_0x350f('0xe0')](_0x23ac9e);_0x1ffa00[_0x350f('0x22')]();}else{_0x1f0c34=_0x1ffa00;for(const _0x3f4f7d of _0x3c8ef5)_0x1ffa00[_0x350f('0x2c')](_0x3f4f7d)||_0x1ffa00[_0x350f('0xe0')](_0x3f4f7d);}}if(_0x1f0c34)return _0x1f0c34;_0x3340bb['clear']();for(const _0x29d19e of _0x3c8ef5)for(const {suggestion:_0x18b89a,meta:_0x49c7b4}of this['_findSuggestions'](_0x29d19e,'deletion'))_0x49c7b4[_0x350f('0x115')]&&_0x3340bb[_0x350f('0x94')](_0x18b89a);for(const _0x1dcb4d of _0x3340bb){const _0x50d4fc=_0x1dcb4d[_0x350f('0x72')]();if(!_0x5ad3c9||!_0x5ad3c9['skipNestingCheck']){if(_0x3c8ef5['every'](_0x4c2df8=>_0x50d4fc[_0x350f('0xb4')](_0x32a57a=>_0x32a57a[_0x350f('0xf8')](_0x4c2df8,!0x0))))return _0x1dcb4d;}(!_0x1dcb4d['attributes']||!_0x1dcb4d[_0x350f('0x108')]['skipNestingCheck'])&&(_0x50d4fc['every'](_0xb67221=>_0x3c8ef5[_0x350f('0xb4')](_0xd43dac=>_0xd43dac[_0x350f('0xf8')](_0xb67221,!0x0)))&&_0x1dcb4d['discard']());}const _0x25d11c=_0x4cb20a(),_0x3930b7=_0x1e06b3['id'],_0x4d363f=_0x350f('0x77')+_0x4c53ed,_0x48e581=this['_setSuggestionData']({'id':_0x25d11c,'type':_0x4d363f,'createdAt':new Date(),'authorId':_0x3930b7,'attributes':_0x5ad3c9});for(const _0x34f24e of _0x3c8ef5)_0x34f24e[_0x350f('0xe5')](),_0x34f24e[_0x350f('0x117')]||_0x350f('0x100')==_0x34f24e[_0x350f('0x5')][_0x350f('0x6a')]||this[_0x350f('0x2d')](_0x4d363f,_0x25d11c,_0x3930b7,_0x34f24e,_0x14b365[_0x350f('0xe6')]());return _0x48e581;}[_0x350f('0x4d')](_0x55b05d,_0x58e01a){const _0x320b52=_0x55b05d[_0x350f('0x29')]();this[_0x350f('0x3b')][_0x350f('0x8a')](_0x7c6247=>{_0x7c6247[_0x350f('0x7f')](_0x320b52,{'range':_0x58e01a});});}[_0x350f('0x93')](_0x360fc0){const _0x4f8995=_0x360fc0['id'],_0x5add5d=this['editor']['config'][_0x350f('0x35')](_0x350f('0xbf'));this[_0x350f('0x2a')][_0x350f('0x106')](_0x4f8995)||this[_0x350f('0x2a')]['addCommentThread']({'channelId':_0x5add5d,'threadId':_0x4f8995,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5700dd=this[_0x350f('0x2a')][_0x350f('0xb6')](_0x4f8995);_0x5700dd['unbind'](_0x350f('0x8')),_0x5700dd[_0x350f('0x8')]=!0x1,_0x360fc0[_0x350f('0x135')]=_0x5700dd;}['_checkSuggestionCorrectness'](_0x3c121e,_0x273c95,_0x4c6634,_0x52b89e){if(_0x3c121e[_0x350f('0xb')]!=_0x273c95||_0x3c121e[_0x350f('0xf6')]!=_0x4c6634||_0x3c121e[_0x350f('0x98')]['id']!=_0x52b89e)throw this[_0x350f('0x49')][_0x350f('0x69')](_0x350f('0x131')),new _0x119d3e(_0x350f('0x131'),this);}[_0x350f('0x78')](_0x24cc4d,_0x3438bc){const _0x52112f=_0x24cc4d[_0x350f('0x3c')]();if(_0x3438bc[_0x350f('0xdc')](_0x52112f))_0x24cc4d[_0x350f('0x22')]();else{if(_0x52112f['containsRange'](_0x3438bc)){const _0x15b1e5=this[_0x350f('0x3b')][_0x350f('0x10d')](_0x3438bc['start'][_0x350f('0x71')],_0x350f('0x41'));this[_0x350f('0x4d')](_0x24cc4d,this['_model'][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x15b1e5));const _0x4a996=_0x4cb20a(),_0x1f6f9f=_0x24cc4d[_0x350f('0x98')]['id'],_0xe2d367=_0x24cc4d[_0x350f('0xb')]+':'+_0x24cc4d[_0x350f('0xf6')];this['_setSuggestionData']({'id':_0x4a996,'type':_0xe2d367,'createdAt':new Date(),'authorId':_0x1f6f9f,'data':_0x24cc4d[_0x350f('0x6f')],'attributes':_0x24cc4d[_0x350f('0x108')]});const _0x3e48c5=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],'after'),_0x5026b7=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3e48c5,_0x52112f[_0x350f('0x41')]);this[_0x350f('0x2d')](_0xe2d367,_0x4a996,_0x1f6f9f,_0x5026b7);}else{if(_0x52112f[_0x350f('0xb8')](_0x3438bc[_0x350f('0x88')])){const _0x3fd59=this['_model'][_0x350f('0x10d')](_0x3438bc['start']['nodeBefore'],_0x350f('0x41'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x3fd59));}else{const _0x2c0457=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],_0x350f('0xd1'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x2c0457,_0x52112f[_0x350f('0x41')]));}}}}[_0x350f('0xf7')](_0x56ceba){for(const {suggestion:_0x14c4ab,meta:_0x337721}of this['_findSuggestions'](_0x56ceba,_0x350f('0xb3'))){if(!_0x337721[_0x350f('0x115')])continue;const _0x23648a=_0x14c4ab[_0x350f('0x72')]();for(const _0x4ba9e6 of _0x23648a)if(!_0x56ceba['getDifference'](_0x4ba9e6)['length'])return!0x0;}return!0x1;}[_0x350f('0x102')](_0x45589f){const _0xacc214=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))[_0x350f('0x39')](_0x45589f);if(!_0xacc214)throw new _0x119d3e('track-changes-user-not-found',this);return _0xacc214;}['_getExternalAuthor'](_0x33eb99){const _0x5a1d5c=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32')),_0x45df3d=_0x394310(_0x350f('0x11e')+_0x33eb99),_0x128e57=_0x5a1d5c[_0x350f('0x39')](_0x45df3d);return _0x128e57||_0x5a1d5c['addUser']({'id':_0x45df3d,'name':_0x33eb99});}['_createSuggestion'](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x41ed03,_0x2d4210){const _0x35b21e=this[_0x350f('0x102')](_0x41ed03),_0x41e5e7=this[_0x350f('0x4b')][_0x350f('0x9c')](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x35b21e,_0x2d4210,_0x156556=>this[_0x350f('0xc2')](_0x2f26d3,{'attributes':_0x156556}));return this[_0x350f('0x83')](_0x41e5e7,'accept',()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x116')});},{'priority':_0x350f('0x21')}),this[_0x350f('0x83')](_0x41e5e7,_0x350f('0xe1'),()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x74')});},{'priority':_0x350f('0x21')}),this[_0x350f('0xa6')][_0x350f('0xa8')](_0x2f26d3,_0x41e5e7),this[_0x350f('0x9e')]['set'](_0x41e5e7,_0x350f('0xc8')),_0x41e5e7;}['_splitMarkerName'](_0x2393e3){const _0x39385e=_0x2393e3[_0x350f('0x16')](':');return{'group':_0x39385e[0x0],'type':_0x39385e[0x1],'subType':_0x39385e['length']>=0x5?_0x39385e[0x2]:null,'id':_0x39385e['length']<0x5?_0x39385e[0x2]:_0x39385e[0x3],'authorId':_0x39385e[_0x350f('0x12e')]<0x5?_0x39385e[0x3]:_0x39385e[0x4],'markerCount':0x6==_0x39385e[_0x350f('0x12e')]?_0x39385e[0x5]:null};}[_0x350f('0x104')](_0x37c199,_0x3f2260,_0x830434){const _0x429b70=_0x37c199[_0x350f('0x3c')](),_0x21edc5=_0x429b70[_0x350f('0x88')],_0x51da37=_0x429b70[_0x350f('0x41')];this['_setSuggestionRange'](_0x37c199,this[_0x350f('0x3b')][_0x350f('0x107')](_0x21edc5,_0x3f2260));const _0x19ff2e=_0x4cb20a(),_0x447afd=_0x37c199[_0x350f('0x98')]['id'],_0x4dff0e=_0x37c199[_0x350f('0xb')]+(_0x37c199[_0x350f('0xf6')]?':'+_0x37c199[_0x350f('0xf6')]:'');this[_0x350f('0x122')]({'id':_0x19ff2e,'type':_0x4dff0e,'createdAt':new Date(),'authorId':_0x447afd,'originalSuggestionId':_0x37c199['id'],'attributes':_0x37c199['attributes'],'data':_0x37c199[_0x350f('0x6f')]}),'formatBlock'==_0x37c199[_0x350f('0xb')]&&(_0x830434=this[_0x350f('0x3b')][_0x350f('0x125')](_0x830434[_0x350f('0xf2')])),this['_addSuggestionMarker'](_0x4dff0e,_0x19ff2e,_0x447afd,this[_0x350f('0x3b')]['createRange'](_0x830434,_0x51da37));}[_0x350f('0xea')](_0x3d3fd7,_0x5dceae=null){const _0x4ced67=[],_0xb654d6=this[_0x350f('0x3b')]['schema'],_0x33cee7=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x279b36 of this['getSuggestions']())if(_0x279b36['isInContent']&&(!_0x5dceae||_0x279b36[_0x350f('0xb')]==_0x5dceae))for(const _0x2090ec of _0x279b36[_0x350f('0x72')]()){const _0x1e94e6=_0x3d3fd7['start'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x41')])||_0x3d3fd7['end'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x88')]);if(_0x1e94e6||_0x3d3fd7[_0x350f('0x5f')](_0x2090ec)){const _0x266d2e=_0x3d3fd7['containsRange'](_0x2090ec)&&At(_0xb654d6,_0x2090ec['start'],_0x3d3fd7),_0x3346b0=_0x2090ec[_0x350f('0xf8')](_0x3d3fd7)&&At(_0xb654d6,_0x3d3fd7[_0x350f('0x88')],_0x2090ec);_0x4ced67[_0x350f('0x123')]({'suggestion':_0x279b36,'meta':{'isOwn':_0x33cee7==_0x279b36['author'],'isNextTo':_0x1e94e6,'isInsideObject':_0x266d2e,'containsRangeInObject':_0x3346b0}});break;}}return _0x4ced67;}[_0x350f('0x2d')](_0x1599ad,_0x3e9583,_0x3ddd4c,_0x2411a4,_0x382e11){this[_0x350f('0x3b')][_0x350f('0x8a')](_0xdd9af3=>{let _0x33e3f1=_0x350f('0xdf')+_0x1599ad+':'+_0x3e9583+':'+_0x3ddd4c;_0x382e11&&(_0x33e3f1=_0x33e3f1+':'+_0x382e11),_0xdd9af3[_0x350f('0x43')](_0x33e3f1,{'range':_0x2411a4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x350f('0xc0')](_0x432b01){const _0x425df5=_0x432b01[_0x350f('0x38')],_0xe9c7c=_0x432b01[_0x350f('0x12c')];_0x432b01[_0x350f('0x38')]=null,null!=_0x425df5&&(_0x425df5[_0x350f('0x12c')]=null),_0x432b01[_0x350f('0x12c')]=null,null!=_0xe9c7c&&(_0xe9c7c[_0x350f('0x38')]=null),_0x350f('0x120')==this[_0x350f('0x9e')][_0x350f('0x35')](_0x432b01)&&(this['_suggestionState'][_0x350f('0xa8')](_0x432b01,_0x350f('0x14')),this[_0x350f('0x6d')]('suggestionUnloaded',_0x432b01,_0x425df5,_0xe9c7c));}[_0x350f('0x122')](_0x3a8819){const _0x81c7ea=_0x3a8819['id'],_0x1e3c05=this[_0x350f('0x7d')](_0x3a8819);if(this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]){const _0x4341ea=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x114')),_0x5b6fb7=_0x1e3c05[_0x350f('0xa2')],_0x4deea5=_0x1e3c05['subType']?_0x1e3c05[_0x350f('0xb')]+':'+_0x1e3c05[_0x350f('0xf6')]:_0x1e3c05['type'],_0x3886db=this[_0x350f('0x49')]['locale'],_0x556b38=_0x4341ea[_0x350f('0x94')](_0x3436c0(_0x3886db,_0x350f('0xd3'))),_0x56b856={'id':_0x81c7ea,'type':_0x4deea5,'hasComments':_0x5b6fb7,'data':_0x3a8819[_0x350f('0x6f')]||null,'originalSuggestionId':_0x3a8819['originalSuggestionId']||null,'attributes':_0x1e3c05[_0x350f('0x108')]};this[_0x350f('0x12d')][_0x350f('0x42')](_0x56b856)[_0x350f('0xa9')](_0x14251c=>{_0x1e3c05['_saved']=!0x0,_0x4341ea['remove'](_0x556b38),_0x14251c&&_0x14251c['createdAt']&&(this[_0x350f('0xa6')][_0x350f('0x35')](_0x81c7ea)['createdAt']=_0x14251c[_0x350f('0x11')]);})[_0x350f('0xa7')](_0x2c3247=>{throw _0xd5393f('error-saving-suggestion-data-suggestion-discarded'),this[_0x350f('0x49')][_0x350f('0x18')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e3c05[_0x350f('0xe1')]();}),_0x1e3c05[_0x350f('0xcc')](),this['_suggestions'][_0x350f('0x137')](_0x1e3c05['id']),this['_suggestionState']['delete'](_0x1e3c05),_0x2c3247;});}return _0x1e3c05;}[_0x350f('0xc2')](_0x341f17,_0x544195){const _0x2e4755=this['editor'][_0x350f('0x45')]['get'](_0x350f('0x114')),_0x45e0fe=this['getSuggestion'](_0x341f17);if(this[_0x350f('0x12d')]&&this['_adapter'][_0x350f('0xf3')]){if(_0x45e0fe['_saved']){const _0x1c19ee=_0x2e4755[_0x350f('0x94')](_0x3436c0(this[_0x350f('0x49')][_0x350f('0x2e')],_0x350f('0xd3')));this['_adapter'][_0x350f('0xf3')](_0x341f17,_0x544195)[_0x350f('0xa9')](()=>{_0x2e4755[_0x350f('0x3a')](_0x1c19ee);});}else _0x45e0fe['on']('change:_saved',()=>{this[_0x350f('0xc2')](_0x341f17,_0x544195);});}}['_getSuggestionData'](_0x4bb2f9){if(!this[_0x350f('0x12d')]||!this[_0x350f('0x12d')]['getSuggestion'])throw new _0x119d3e(_0x350f('0x3'),this);return this[_0x350f('0x12d')]['getSuggestion'](_0x4bb2f9);}[_0x350f('0xec')](_0x3977b9){const {id:_0xac369e,type:_0x3555d8,subType:_0x5d0bc7,authorId:_0x3e4c5a}=this[_0x350f('0xb1')](_0x3977b9),_0x309c8d=this[_0x350f('0xa6')][_0x350f('0x35')](_0xac369e)||this[_0x350f('0x134')](_0x3555d8,_0x5d0bc7,_0xac369e,_0x3e4c5a,{});switch(this[_0x350f('0xed')](_0x309c8d,_0x3555d8,_0x5d0bc7,_0x3e4c5a),this['_suggestionState']['get'](_0x309c8d)){case _0x350f('0xc8'):this[_0x350f('0x11d')](_0xac369e)[_0x350f('0xa9')](_0x1b8b03=>{let _0x532577=Promise[_0x350f('0x92')]();_0x1b8b03[_0x350f('0xa2')]&&(_0x532577=this[_0x350f('0x2a')]['fetchCommentThread']({'channelId':this['editor'][_0x350f('0x60')][_0x350f('0x35')](_0x350f('0xbf')),'threadId':_0xac369e})),_0x532577['then'](()=>{this[_0x350f('0x7d')](_0x1b8b03)['_saved']=!0x0;});}),this[_0x350f('0x9e')][_0x350f('0xa8')](_0x309c8d,_0x350f('0xe8'));break;case'removed':this[_0x350f('0xc2')](_0xac369e,{'state':'open'});case _0x350f('0xc9'):this[_0x350f('0x9e')]['set'](_0x309c8d,'ready'),this[_0x350f('0x6d')](_0x350f('0x19'),_0x309c8d);break;case _0x350f('0x120'):this[_0x350f('0x6d')](_0x350f('0x138'),_0x309c8d);}return _0x309c8d['addMarkerName'](_0x3977b9),_0x309c8d;}[_0x350f('0x85')](_0x3fb5d6){const _0x2c9d67=Array['from'](_0x3fb5d6)[_0x350f('0xf4')](_0x3c3e12=>!_0x3c3e12[_0x350f('0x103')]),_0x2503d5=this[_0x350f('0x48')]({'skipNotAttached':!0x0})[_0x350f('0xf4')](_0x2fcc25=>!_0x2fcc25[_0x350f('0x103')]),_0x5456dc=_0x2503d5[_0x350f('0xf4')](_0x277d1a=>!_0x3fb5d6[_0x350f('0xf1')](_0x277d1a)),_0x59619b=new Map(_0x2503d5['map'](_0x1dc7c7=>[_0x1dc7c7,this[_0x350f('0x4b')][_0x350f('0x30')](_0x1dc7c7[_0x350f('0xb')],_0x1dc7c7[_0x350f('0xf6')],_0x350f('0x96'))])),_0x59d069=new Map(_0x2503d5[_0x350f('0x3d')](_0x3438f1=>[_0x3438f1,_0x3438f1[_0x350f('0x3c')]()])),_0x54e50a=new Set(),_0x3d535a=new Set();for(let _0x3c56cf=0x0;_0x3c56cf<_0x2c9d67['length'];_0x3c56cf++)_0x44dbfa(_0x2c9d67[_0x3c56cf],_0x2c9d67,_0x3c56cf+0x1);for(let _0x4ab20f=0x0;_0x4ab20f<_0x2c9d67[_0x350f('0x12e')];_0x4ab20f++)_0x44dbfa(_0x2c9d67[_0x4ab20f],_0x5456dc,0x0);for(let _0x181f22=0x0;_0x181f22<_0x2c9d67['length'];_0x181f22++){const _0x211eda=_0x2c9d67[_0x181f22];!_0x3d535a[_0x350f('0xf1')](_0x211eda)&&_0x211eda['previous']&&(_0x211eda[_0x350f('0x38')]['next']===_0x211eda&&(_0x211eda['previous'][_0x350f('0x12c')]=null),_0x211eda['previous']=null),!_0x54e50a[_0x350f('0xf1')](_0x211eda)&&_0x211eda[_0x350f('0x12c')]&&(_0x211eda[_0x350f('0x12c')][_0x350f('0x38')]===_0x211eda&&(_0x211eda['next'][_0x350f('0x38')]=null),_0x211eda[_0x350f('0x12c')]=null);}function _0x44dbfa(_0x5c1715,_0x4f0e12,_0x46926b){for(let _0x598ef6=_0x46926b;_0x598ef6<_0x4f0e12[_0x350f('0x12e')];_0x598ef6++){const _0x36ef25=_0xfe5c5b(_0x5c1715,_0x4f0e12[_0x598ef6]);_0x36ef25&&(_0x36ef25[0x0][_0x350f('0x12c')]=_0x36ef25[0x1],_0x36ef25[0x1][_0x350f('0x38')]=_0x36ef25[0x0],_0x54e50a[_0x350f('0x94')](_0x36ef25[0x0]),_0x3d535a[_0x350f('0x94')](_0x36ef25[0x1]));}}function _0xfe5c5b(_0x24daea,_0x244094){if(_0x24daea[_0x350f('0x17')]['id']!==_0x244094[_0x350f('0x17')]['id'])return null;const _0x2c5077=_0x59619b[_0x350f('0x35')](_0x24daea)(_0x24daea,_0x244094,_0x59d069[_0x350f('0x35')](_0x24daea),_0x59d069['get'](_0x244094));if(!_0x2c5077)return null;return _0x59619b['get'](_0x244094)(_0x24daea,_0x244094,_0x59d069['get'](_0x24daea),_0x59d069[_0x350f('0x35')](_0x244094))?_0x2c5077[0x1]['commentThread']&&_0x2c5077[0x1][_0x350f('0x135')][_0x350f('0x12e')]?null:_0x2c5077:null;}}['_joinWithAdjacentSuggestions'](_0x120aa4){const _0xea9554=Array[_0x350f('0xcf')](_0x120aa4),_0x620af2=this[_0x350f('0x48')]({'skipNotAttached':!0x0}),_0x5a5973=_0x620af2['filter'](_0xf5e509=>!_0x120aa4[_0x350f('0xf1')](_0xf5e509)),_0x458a98=new Map(_0xea9554[_0x350f('0x3d')](_0x5f1416=>[_0x5f1416,this[_0x350f('0x4b')][_0x350f('0x30')](_0x5f1416[_0x350f('0xb')],_0x5f1416[_0x350f('0xf6')],_0x350f('0x1d'))])),_0x9fabf0=new Map(_0x620af2[_0x350f('0x3d')](_0x1baaf7=>[_0x1baaf7,_0x1baaf7[_0x350f('0x72')]()]));for(let _0x3394ab=0x0;_0x3394ab<_0xea9554[_0x350f('0x12e')];_0x3394ab++){if(_0x3a216e(this,_0xea9554[_0x3394ab],_0xea9554,_0x3394ab+0x1))return!0x0;}for(let _0x5e9297=0x0;_0x5e9297<_0xea9554[_0x350f('0x12e')];_0x5e9297++){if(_0x3a216e(this,_0xea9554[_0x5e9297],_0x5a5973,0x0))return!0x0;}return!0x1;function _0x3a216e(_0x3ba5ac,_0x5b1594,_0x2de71e,_0x4da04c){for(let _0x4493dc=_0x4da04c;_0x4493dc<_0x2de71e[_0x350f('0x12e')];_0x4493dc++){const _0x2c3b87=_0x2de71e[_0x4493dc];if(_0x2c3b87['type']!==_0x5b1594[_0x350f('0xb')]||_0x2c3b87['author']['id']!==_0x5b1594['author']['id']||_0x2c3b87['subType']!==_0x5b1594['subType'])continue;const _0x5e8acf=_0x458a98[_0x350f('0x35')](_0x5b1594),_0xd3a727=_0x9fabf0[_0x350f('0x35')](_0x5b1594),_0x3f782d=_0x9fabf0[_0x350f('0x35')](_0x2c3b87),_0x233345=_0x5b1594['commentThread']&&_0x5b1594[_0x350f('0x135')][_0x350f('0x12e')],_0x180b00=_0x2c3b87['commentThread']&&_0x2c3b87[_0x350f('0x135')]['length'];if(!_0x233345&&_0x5e8acf(_0x3f782d,_0xd3a727))return _0x3ba5ac[_0x350f('0xad')](_0x2c3b87,_0x5b1594),_0x9fabf0[_0x350f('0x137')](_0x5b1594),!0x0;if(!_0x180b00&&_0x5e8acf(_0xd3a727,_0x3f782d))return _0x3ba5ac['_joinSuggestions'](_0x5b1594,_0x2c3b87),_0x9fabf0[_0x350f('0x137')](_0x2c3b87),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4dbd18,_0x704343){if(_0x4dbd18[_0x350f('0x103')])for(const _0x17b908 of _0x704343[_0x350f('0x72')]())_0x4dbd18[_0x350f('0xe0')](_0x17b908);else{const _0x35c325=_0x704343[_0x350f('0x3c')]()['end'];this[_0x350f('0x4d')](_0x4dbd18,this[_0x350f('0x3b')][_0x350f('0x107')](_0x4dbd18['getFirstRange']()[_0x350f('0x88')],_0x35c325));}_0x704343[_0x350f('0x22')]();}}class vt{constructor(_0x591476){this['_editor']=_0x591476,this[_0x350f('0x3b')]=_0x591476[_0x350f('0x18')],this[_0x350f('0xe3')]=new Map(),this[_0x350f('0x10c')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10420b,_0x2c812c,_0x4fc6b4,_0x2869dc,_0xe81114,_0x8192eb){return new _0x14b365(this[_0x350f('0x3b')],{'type':_0x10420b,'subType':_0x2c812c,'id':_0x4fc6b4,'author':_0x2869dc,'creator':_0x2869dc,'attributes':_0xe81114,'onAttributesChange':_0x8192eb,'onAccept':(..._0x1161a9)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xd0'))(..._0x1161a9),'onDiscard':(..._0x49f437)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xe1'))(..._0x49f437)});}[_0x350f('0x111')](_0x432336,_0x4d0e6d,_0x3b6b00,_0x398ea5){const _0x8fb2b3=_0x432336+':'+_0x4d0e6d+':'+_0x3b6b00;this[_0x350f('0xe3')][_0x350f('0xa8')](_0x8fb2b3,_0x398ea5);}[_0x350f('0x30')](_0x49ab91,_0x498789,_0xcd4630){const _0x2635f4=_0x49ab91+':'+_0x498789+':'+_0xcd4630;return this[_0x350f('0xe3')][_0x350f('0x35')](_0x2635f4)||this['_defaultCallbacks'][_0x350f('0x35')](_0x49ab91+':'+_0xcd4630);}[_0x350f('0x15')](){const _0x2e96a7=()=>{},_0x33bcc8=_0x5dadfa=>{_0x5dadfa[_0x350f('0x55')]((_0x275e67,_0x79da03)=>_0x275e67['start']['isBefore'](_0x79da03[_0x350f('0x88')])?0x1:-0x1),this['_model']['change'](_0xd9215a=>{for(const _0x936924 of _0x5dadfa){let _0x455a1d;_0x455a1d=_0x936924['end'][_0x350f('0x11a')]&&_0x936924[_0x350f('0x41')][_0x350f('0xf2')]==_0x936924['start'][_0x350f('0x23')]?_0xd9215a[_0x350f('0x8f')](_0x936924[_0x350f('0x88')][_0x350f('0x23')],'on'):_0xd9215a['createSelection'](_0x936924),this[_0x350f('0x3b')][_0x350f('0xaa')](_0x455a1d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1889ef=(_0x31c220,_0x493297)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](_0x24525f=>{const {commandName:_0x46d901,commandParams:_0x1091f2=[]}=_0x493297,_0x5db87a=_0x31c220['map'](_0x3d265a=>(Dt(_0x3d265a)&&(_0x3d265a=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3d265a[_0x350f('0x41')])),_0x3d265a))[_0x350f('0xf4')](_0x2b51b8=>_0x350f('0x100')!==_0x2b51b8[_0x350f('0x5')][_0x350f('0x6a')]);if(_0x5db87a[_0x350f('0x12e')]<0x1)return;const _0x2521d5=Array[_0x350f('0xcf')](this['_model'][_0x350f('0xce')][_0x350f('0xdd')][_0x350f('0x72')]())['map'](_0x21a8fb=>_0x319865['fromRange'](_0x21a8fb));_0x24525f[_0x350f('0x12')](_0x5db87a);for(const _0x1ab088 of this[_0x350f('0x68')]['commands']['commands']())_0x1ab088[_0x350f('0xfd')]();_0x1091f2[_0x350f('0x123')]({'forceDefaultExecution':!0x0}),this[_0x350f('0x68')][_0x350f('0x76')](_0x46d901,..._0x1091f2);const _0x67de0c=_0x2521d5['filter'](_0xb9117f=>'$graveyard'!=_0xb9117f[_0x350f('0x5')][_0x350f('0x6a')]);_0x67de0c[_0x350f('0x12e')]>0x0&&_0x24525f[_0x350f('0x12')](_0x67de0c);for(const _0x7e6c86 of _0x2521d5)_0x7e6c86['detach']();});},_0x47bf7c=(_0x59547c,_0x4c37c1)=>0x1==_0x59547c[_0x350f('0x12e')]&&0x1==_0x4c37c1['length']&&_0x59547c[0x0][_0x350f('0x41')]['isEqual'](_0x4c37c1[0x0][_0x350f('0x88')]),_0x104e99=(_0x59d387,_0x217d69,_0x3946cb,_0x27af16)=>$t(_0x59d387,_0x217d69,_0x3946cb,_0x27af16,this[_0x350f('0x3b')])?[_0x59d387,_0x217d69]:$t(_0x217d69,_0x59d387,_0x27af16,_0x3946cb,this[_0x350f('0x3b')])?[_0x217d69,_0x59d387]:null;this[_0x350f('0x10c')][_0x350f('0xa8')]('insertion:accept',_0x2e96a7),this[_0x350f('0x10c')]['set']('insertion:discard',_0x33bcc8),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xca'),_0x47bf7c),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0x66'),_0x104e99),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xc3'),_0x33bcc8),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x10a'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x118'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0x130'),_0x104e99),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x132'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x127'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x89'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0xfb'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x54'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x81'),_0x2e96a7),this['_defaultCallbacks'][_0x350f('0xa8')]('formatBlock:join',_0x47bf7c),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x73'),_0x2e96a7);}}function At(_0x2b1223,_0x18c51b,_0x2c8f4e){for(const _0x52b6a4 of _0x18c51b[_0x350f('0xf2')][_0x350f('0xd4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52b6a4[_0x350f('0x5')]==_0x52b6a4)return!0x1;if(!_0x2c8f4e[_0x350f('0xa4')](_0x52b6a4))return!0x1;if(_0x2b1223[_0x350f('0xef')](_0x52b6a4)||_0x2b1223[_0x350f('0x1f')](_0x52b6a4))return!0x0;}return!0x1;}function Dt(_0x16f261){return _0x16f261[_0x350f('0x41')][_0x350f('0xf2')]==_0x16f261[_0x350f('0x88')][_0x350f('0x23')]&&_0x16f261['end'][_0x350f('0xab')];}function Ct(_0x1ece1e,_0x1a9432,_0x173547,_0x4c5885){const _0x78739b=_0x5f5c5a=>!_0x5f5c5a[_0x350f('0x7a')]['is'](_0x350f('0x40'))&&!_0x4c5885[_0x350f('0xef')](_0x5f5c5a[_0x350f('0x7a')]),_0x253313=_0x1ece1e[_0x350f('0x88')][_0x350f('0x10f')](_0x78739b),_0x21e8c1=_0x1ece1e[_0x350f('0x41')]['getLastMatchingPosition'](_0x78739b,{'direction':'backward'});return(!_0x1ece1e['start'][_0x350f('0xdc')](_0x253313)||!_0x1ece1e[_0x350f('0x41')][_0x350f('0xdc')](_0x21e8c1))&&(_0x253313['isBefore'](_0x21e8c1)?_0x173547[_0x350f('0x7f')](_0x1a9432,{'range':_0x173547[_0x350f('0x107')](_0x253313,_0x21e8c1)}):_0x173547['removeMarker'](_0x1a9432),!0x0);}function Bt(_0x346bff){return _0x394310(_0x346bff);}function _t(_0x1d0156){const _0x4c1aee=_0x1d0156[_0x350f('0x88')][_0x350f('0x23')];return _0x4c1aee&&_0x4c1aee['is']('element');}function Mt(_0x311239,_0xd5f1b5){const _0x16ec73=_0xd5f1b5[_0x350f('0x44')][_0x350f('0xef')](_0x311239)||_0xd5f1b5[_0x350f('0x44')][_0x350f('0x12b')](_0x311239);return _0xd5f1b5['createRange'](_0xd5f1b5[_0x350f('0x10d')](_0x311239,_0x350f('0x26')),_0x16ec73?_0xd5f1b5[_0x350f('0x139')](_0x311239):_0xd5f1b5['createPositionAt'](_0x311239,'end'));}function $t(_0x13db3c,_0x2d7557,_0x5aa4d2,_0x52fc57,_0x579125){if(_0x5aa4d2[_0x350f('0x41')]['isEqual'](_0x52fc57[_0x350f('0x88')]))return!0x0;if(_0x13db3c[_0x350f('0xb')]!=_0x2d7557[_0x350f('0xb')])return!0x1;if(!_0x5aa4d2['end']['isTouching'](_0x52fc57['start']))return!0x1;const _0x1cc686=_0x579125[_0x350f('0x107')](_0x5aa4d2[_0x350f('0x41')],_0x52fc57[_0x350f('0x88')])[_0x350f('0x34')]();for(const _0x3f8a00 of _0x1cc686)if([_0x350f('0xeb'),'elementEnd'][_0x350f('0x9a')](_0x3f8a00[_0x350f('0xb')])&&_0x579125[_0x350f('0x44')][_0x350f('0x1f')](_0x3f8a00['item']))return!0x1;return!0x0;}
23
+ const _0x274a=['_suggestions','isAfter','attributes','includes','getAllAdjacentSuggestions','discardSuggestion','trackChanges','ck-suggestion-marker-','nodeBefore','isMultiRange','from','pluginName','detach','isUndo','_splitMarkerName','commands','setTo','insertContent','addRange','applyOperation','isInsideObject','createPositionBefore','for','rejected','_removeSuggestion','document','data','config','getShiftedBy','unbindElementFromMarkerName','consumable','length','high','PENDING_ACTION_SUGGESTION','chain','addUser','targetPosition','updateSuggestion','isInContent','markMultiRangeDeletion','_findSuggestions','containsRange','unbind','getAttribute','createSelection','getNearestSelectionRange','containsItem','nodeAfter','hasSuggestion','deletion:','toViewElement','markerToData','markerNameToElements','sort','delete','discard','get','insertion','activeMarkers','addMarkerName','createRangeIn','markDeletion','isExternal','values','discardAllSuggestions','subType','_saved','plugins','isObject','isBlock','stopListening','addHighlight','@external','_joinSuggestions','_handleNewSuggestionMarker','_customCallbacks','_editor','insertion:discard','authoredAt','change:data','removeMarkers','$graveyard','schema','collaboration.channelId','_checkSuggestionCorrectness','_setSuggestionData','insertion:chain','consume','type','change','removeMarker:suggestion:formatBlock','formatBlock:accept','toJSON','trackChangesCommand','isOwn','_isForcedDefaultExecutionBlock','has','stop','rootName','define','formatInline','fromCharCode','formatInline:','getChanges','_adapter','size','containsRangeInObject','clone','getChangedMarkers','_setSuggestionRange','_commentsRepository','getSuggestions','deletion:discard','addMarker','$marker','_addThreadToSuggestion','_model','reconvertMarker','getLastMatchingPosition','catch','removed','markerName','push','_addSuggestionMarker','addSuggestionData','suggestionLoaded','author','PendingActions','commentThread','isCollapsed','insertion:','isRemovable','suggestionChanged','clear','getMarkers','CommentsRepository','_getExternalAuthor','createElement','dataToMarker','ck-suggestion-marker--active','suggestion-type','_defaultCallbacks','createPositionAfter','getUser','track-changes-suggestion-data-mismatch','conversion','next','enableCommand','filter','createdAt','deletion:join','registerPostFixer','formatBlock:discard','writer','model','formatGroupId','_cutOutSuggestionMarker','end','ck-suggestion-marker-formatBlock','listenTo','_getAuthorFromId','dataReady','selection','start','addMarker:suggestion:formatBlock','hasComments','formatBlock','createPositionAt','forceDefaultExecution','originalSuggestionId','insert','error-saving-suggestion-data-suggestion-discarded','dataDowncast','data-suggestion','getSuggestionCallback','backward','markers','ck-suggestion-marker','deletion:accept','before','bindElementToMarker','return','_getSuggestionData','formatBlock:join','remove','previous','getMultiRangeId','ready','after','getFirstMarker','suggestion','multi','isLocal','documentSelection','$textProxy','deleteContent','_onDiscard','editor','getRanges','mapper','resolve','isBefore','newRange','getCommentThread','isTouching','map','fromRange','upcast','acceptSuggestion','getWalker','low','getDifference','open','options','_updateSuggestionData','root','set','deletion:chain','editing','howMany','removeMarker','change:_saved','formatBlock:','lowest','isIntersectingWithRange','name','adapter','enqueueChange','element','authorName','suggestionUnloaded','multipleBlocks','isAtEnd','getItems','elementEnd','_descriptionFactory','fire','highest','then','_enabledCommands','moveTargetPosition','value','formatInline:accept','isEqual','updateMarker','fetchCommentThread','getFirstRange','trackChanges.trackFormatChanges','containsPosition','isNextTo','isSelectable','addComment','markerToHighlight','addClass','formatBlock:chain','every','_suggestionFactory','locale','markMultiRangeInsertion','containerElement','addCommentThread','deletion','buildSuggestion','differ','commandName','getRange','getIntersection','markMultiRangeBlockFormat','_registerDefaultCallbacks','some','_rangeIsInLocalUserInsertion','refresh','showSuggestionHighlights','substr','insertion:join','execute','acceptAllSuggestions','split','notReady','marker-count','add','_suggestionState','creator','range','_refreshSuggestionsChain','formatInline:join','addSuggestion','join','removeAttribute','isLimit','_createSuggestion','parent','getCustomProperty','formatInline:discard','markerReady','_breakSuggestionMarker','skipNestingCheck','splitPosition','normal','oldRange','rethrowUnexpectedError','TrackChangesEditing','elementToElement','requires','createRange','editingDowncast','elementStart','suggestion:','Users','track-changes-command-not-found','_trackFormatChanges','batch','item','accept'];(function(_0x37ba30,_0x274a79){const _0x9ebea5=function(_0xf59b5){while(--_0xf59b5){_0x37ba30['push'](_0x37ba30['shift']());}};_0x9ebea5(++_0x274a79);}(_0x274a,0x14e));const _0x9ebe=function(_0x37ba30,_0x274a79){_0x37ba30=_0x37ba30-0x0;let _0x9ebea5=_0x274a[_0x37ba30];return _0x9ebea5;};import{Plugin as _0x1015b7,PendingActions as _0x517343}from'ckeditor5/src/core';import{LiveRange as _0x5ea0ee}from'ckeditor5/src/engine';import{CKEditorError as _0x168803,uid as _0x4e3532,priorities as _0x4039f0,logWarning as _0x138b14}from'ckeditor5/src/utils';import{toWidget as _0x78162b}from'ckeditor5/src/widget';import{Users as _0x4a7b0d,hashObject as _0x1a7906}from'ckeditor5-collaboration/src/collaboration-core';import _0x51065e from'./commands/trackchangescommand';import _0x1e1b09 from'./commands/acceptsuggestioncommand';import _0x3693e3 from'./commands/discardsuggestioncommand';import _0x5c1c31 from'./commands/executeonallsuggestionscommand';import _0x46d85a from'./commands/executeonselectedsuggestionscommand';import _0x428cce from'./suggestion';import _0x90ee9a from'./suggestiondescriptionfactory';import _0x25e9fe from'./integrations/alignment';import _0x33d675 from'./integrations/basicstyles';import _0xc49306 from'./integrations/blockquote';import _0x418f1e from'./integrations/ckbox';import _0x500c4a from'./integrations/codeblock';import _0x3e305d from'./integrations/comments';import _0x2acc13 from'./integrations/deletecommand';import _0x1c850a from'./integrations/documentlist';import _0x3f2c11 from'./integrations/entercommand';import _0x401fa9 from'./integrations/findandreplace';import _0xb5be06 from'./integrations/font';import _0x28f455 from'./integrations/formatpainter';import _0x3ebe7d from'./integrations/heading';import _0x1d777b from'./integrations/highlight';import _0x4d79d0 from'./integrations/horizontalline';import _0x3050c8 from'./integrations/htmlembed';import _0x29878f from'./integrations/image';import _0x48851 from'./integrations/imagereplace';import _0xb69abb from'./integrations/importword';import _0x529e23 from'./integrations/indent';import _0x116f67 from'./integrations/inputcommand';import _0x105364 from'./integrations/link';import _0x4c1c27 from'./integrations/list';import _0x2b97eb from'./integrations/listproperties';import _0x53878e from'./integrations/mediaembed';import _0x1a6f9d from'./integrations/mention';import _0x5e68b7 from'./integrations/pagebreak';import _0x2b30a3 from'./integrations/paragraph';import _0x1e8579 from'./integrations/removeformat';import _0xc52fde from'./integrations/restrictededitingmode';import _0x7f89a9 from'./integrations/shiftentercommand';import _0xb5ad58 from'./integrations/standardeditingmode';import _0x367168 from'./integrations/style';import _0x3a7cc3 from'./integrations/table';import _0x2e95d1 from'./integrations/tablemergesplit';import _0x7f6020 from'./integrations/tableheadings';import _0x35e388 from'./integrations/tableclipboard';import _0x1b263b from'./integrations/tablecolumnresize';import _0x50c661 from'./integrations/template';import _0x52fed9 from'./integrations/tableofcontents';import _0x3e7a6a from'./integrations/title';import _0x5bb1da from'./integrations/undo';import{getTranslation as _0x447cd7}from'./utils/common-translations';import _0x51637a from'./integrations/tablecaption';import _0x574b61 from'./integrations/documentlistproperties';import _0x44b4de from'./integrations/tableproperties';export default class p extends _0x1015b7{static get[_0x9ebe('0x11b')](){return[_0x9ebe('0x73'),_0x4a7b0d,_0x517343,_0x25e9fe,_0x33d675,_0xc49306,_0x418f1e,_0x500c4a,_0x3e305d,_0x2acc13,_0x1c850a,_0x574b61,_0x3f2c11,_0x401fa9,_0xb5be06,_0x28f455,_0x3ebe7d,_0x1d777b,_0x4d79d0,_0x3050c8,_0x29878f,_0x48851,_0xb69abb,_0x529e23,_0x116f67,_0x105364,_0x4c1c27,_0x2b97eb,_0x53878e,_0x1a6f9d,_0x5e68b7,_0x2b30a3,_0x1e8579,_0xc52fde,_0x7f89a9,_0xb5ad58,_0x367168,_0x3a7cc3,_0x2e95d1,_0x7f6020,_0x51637a,_0x35e388,_0x1b263b,_0x52fed9,_0x44b4de,_0x50c661,_0x3e7a6a,_0x5bb1da];}static get[_0x9ebe('0x131')](){return _0x9ebe('0x119');}constructor(_0x5b0cd0){function _0x4165dc(_0x57d01a){return _0x57d01a[_0x9ebe('0xb9')](_0x18aa65=>String[_0x9ebe('0x51')](_0x18aa65))[_0x9ebe('0x10b')]('');}super(_0x5b0cd0),this['set'](_0x9ebe('0x26'),[]),this['on']('change:activeMarkers',(_0x1bb89a,_0x96553d,_0x52ad62,_0x1bbc33)=>{this[_0x9ebe('0x60')][_0x9ebe('0x45')](()=>{for(const _0x3d8350 of[..._0x1bbc33,..._0x52ad62])this['_model'][_0x9ebe('0x9c')]['has'](_0x3d8350)&&_0x5b0cd0[_0x9ebe('0xc6')][_0x9ebe('0x61')](_0x3d8350);});}),this[_0x9ebe('0xd7')]=new _0x90ee9a(this[_0x9ebe('0xb1')]['model'][_0x9ebe('0x3e')],this[_0x9ebe('0xb1')][_0x9ebe('0xed')]),this[_0x9ebe('0x54')]=null,this[_0x9ebe('0xec')]=new Ct(this[_0x9ebe('0xb1')]),this[_0x9ebe('0x126')]=new Map(),this[_0x9ebe('0x5a')]=_0x5b0cd0[_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x73')),this[_0x9ebe('0xdb')]=new Set(),this[_0x9ebe('0x60')]=this[_0x9ebe('0xb1')][_0x9ebe('0x86')],this[_0x9ebe('0x105')]=new WeakMap(),this[_0x9ebe('0x4b')]=!0x1,_0x5b0cd0['config'][_0x9ebe('0x4f')](_0x9ebe('0xe3'),!0x0),this['_trackFormatChanges']=_0x5b0cd0[_0x9ebe('0x7')]['get']('trackChanges.trackFormatChanges'),this[_0x9ebe('0x49')]=new _0x51065e(_0x5b0cd0,this['_enabledCommands']),this[_0x4165dc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4165dc([0x34,0x30,0x34,0x36,0x30,0x38,0x33,0x38]);}['init'](){const _0x530df3=this[_0x9ebe('0xb1')];_0x530df3['conversion']['for']('editingDowncast')[_0x9ebe('0xe8')]({'model':'suggestion','view':_0x39f991=>{const {id:_0x138c35,type:_0x32d7cd}=this[_0x9ebe('0x134')](_0x39f991['markerName']),_0x5c85f7=['ck-suggestion-marker',_0x9ebe('0x12d')+_0x32d7cd];let _0x1b6242=0xbb8;return this[_0x9ebe('0x26')][_0x9ebe('0x129')](_0x39f991[_0x9ebe('0x65')])&&(_0x5c85f7['push'](_0x9ebe('0x77')),_0x1b6242=0xbc2),_0x9ebe('0xf1')==_0x32d7cd&&(_0x1b6242+=0x5),{'classes':_0x5c85f7,'attributes':{'data-suggestion':_0x138c35},'priority':_0x1b6242};}}),_0x530df3['conversion'][_0x9ebe('0x2')]('dataDowncast')[_0x9ebe('0x104')](_0x4e4897=>{_0x4e4897['on']('addMarker:suggestion',(_0x42a26b,_0x4376b8,_0x4f1534)=>{if(!_0x4f1534[_0x9ebe('0xc1')][_0x9ebe('0xfc')])return;const _0xefcd96=_0x4376b8['item'];if(!_0xefcd96)return;const _0x4086c1=_0x4f1534[_0x9ebe('0xb3')][_0x9ebe('0x1e')](_0xefcd96);_0x530df3['model']['schema']['isObject'](_0xefcd96)&&_0x4086c1&&!_0x4086c1['getCustomProperty']('widget')&&_0x4086c1['is'](_0x9ebe('0xef'))&&_0x78162b(_0x4086c1,_0x4f1534[_0x9ebe('0x85')]);},{'priority':_0x9ebe('0xc')});}),_0x530df3['conversion'][_0x9ebe('0x2')](_0x9ebe('0x98'))[_0x9ebe('0xe8')]({'model':_0x9ebe('0xaa'),'view':(_0x3a5463,_0x567f93)=>{if(!_0x567f93[_0x9ebe('0xc1')][_0x9ebe('0xfc')])return null;const {type:_0x37f42f}=this[_0x9ebe('0x134')](_0x3a5463[_0x9ebe('0x65')]);return{'classes':[_0x9ebe('0x9d'),_0x9ebe('0x12d')+_0x37f42f],'priority':0xbb8};}});const _0x24fdc8=({showActiveMarkers:_0x46be9e=!0x0}={})=>(_0x210a15,_0x27512a,_0x2e1404)=>{if(!_0x27512a[_0x9ebe('0x124')])return;if(_0x27512a[_0x9ebe('0x124')]['is'](_0x9ebe('0x8e')))return void _0x2e1404[_0x9ebe('0xa')]['consume'](_0x27512a[_0x9ebe('0x124')],_0x210a15['name']);const _0x43006a=_0x2e1404[_0x9ebe('0xb3')][_0x9ebe('0x1e')](_0x27512a[_0x9ebe('0x124')]);if(!(_0x27512a[_0x9ebe('0x124')]['is'](_0x9ebe('0xd0'))&&_0x530df3[_0x9ebe('0x86')]['schema'][_0x9ebe('0x31')](_0x27512a['item'])&&!_0x43006a[_0x9ebe('0x110')](_0x9ebe('0x33'))))return;const {id:_0x27a31a}=this[_0x9ebe('0x134')](_0x27512a['markerName']);_0x2e1404[_0x9ebe('0x85')][_0x9ebe('0xe9')]([_0x9ebe('0x9d'),'ck-suggestion-marker-formatBlock'],_0x43006a),_0x2e1404['writer']['setAttribute'](_0x9ebe('0x99'),_0x27a31a,_0x43006a),_0x2e1404[_0x9ebe('0xb3')][_0x9ebe('0xa0')](_0x43006a,_0x27512a[_0x9ebe('0x65')]),_0x46be9e&&(this[_0x9ebe('0x26')][_0x9ebe('0x129')](_0x27512a[_0x9ebe('0x65')])?_0x2e1404[_0x9ebe('0x85')][_0x9ebe('0xe9')]('ck-suggestion-marker--active',_0x43006a):_0x2e1404[_0x9ebe('0x85')]['removeClass'](_0x9ebe('0x77'),_0x43006a));for(const _0x2fd9d7 of _0x530df3[_0x9ebe('0x86')][_0x9ebe('0x28')](_0x27512a[_0x9ebe('0x124')])[_0x9ebe('0xd5')]())_0x2e1404['consumable'][_0x9ebe('0x43')](_0x2fd9d7,_0x210a15['name']);_0x2e1404[_0x9ebe('0xa')]['consume'](_0x27512a[_0x9ebe('0x124')],_0x210a15[_0x9ebe('0xcd')]);};_0x530df3[_0x9ebe('0x7d')][_0x9ebe('0x2')](_0x9ebe('0x98'))[_0x9ebe('0x104')](_0x3348d4=>{_0x3348d4['on'](_0x9ebe('0x90'),(_0x593d1d,_0x87446f,_0x50e829)=>{_0x50e829[_0x9ebe('0xc1')][_0x9ebe('0xfc')]&&_0x24fdc8({'showActiveMarkers':!0x1})(_0x593d1d,_0x87446f,_0x50e829);},{'priority':_0x9ebe('0xd9')});}),_0x530df3[_0x9ebe('0x7d')]['for'](_0x9ebe('0x98'))[_0x9ebe('0x1f')]({'model':_0x9ebe('0xaa'),'view':(_0x417bb9,_0x3782bc)=>_0x3782bc[_0x9ebe('0xc1')][_0x9ebe('0xfc')]?null:{'group':_0x9ebe('0xaa'),'name':_0x417bb9[_0x9ebe('0xfd')](0xb)}}),_0x530df3[_0x9ebe('0x7d')]['for'](_0x9ebe('0xbb'))[_0x9ebe('0x11a')]({'view':{'name':_0x9ebe('0xaa'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4453b0,{writer:_0x17fe5c})=>{let _0x1e0b4d=_0x9ebe('0x11f')+_0x4453b0[_0x9ebe('0x17')](_0x9ebe('0x78'))+':'+_0x4453b0['getAttribute']('id');return _0x4453b0[_0x9ebe('0x17')]('marker-count')&&(_0x1e0b4d+=':'+_0x4453b0[_0x9ebe('0x17')](_0x9ebe('0x103'))),_0x17fe5c[_0x9ebe('0x75')](_0x9ebe('0x5e'),{'data-name':_0x1e0b4d});}}),_0x530df3[_0x9ebe('0x7d')]['for'](_0x9ebe('0xbb'))[_0x9ebe('0x76')]({'view':_0x9ebe('0xaa')}),_0x530df3['conversion'][_0x9ebe('0x2')](_0x9ebe('0x11d'))[_0x9ebe('0x104')](_0x217982=>{_0x217982['on'](_0x9ebe('0x90'),_0x24fdc8(),{'priority':_0x9ebe('0xc')});}),_0x530df3[_0x9ebe('0x7d')][_0x9ebe('0x2')]('editingDowncast')[_0x9ebe('0x104')](_0x2f9880=>{_0x2f9880['on'](_0x9ebe('0x46'),(_0x4ccd63,_0x2e65ff,_0x51e191)=>{const _0x186465=_0x51e191[_0x9ebe('0xb3')][_0x9ebe('0x20')](_0x2e65ff[_0x9ebe('0x65')]);if(_0x186465)for(const _0xdd629d of _0x186465)_0xdd629d[_0x9ebe('0x110')](_0x9ebe('0x33'))||(_0x51e191['writer']['removeClass']([_0x9ebe('0x9d'),_0x9ebe('0x8a'),'ck-suggestion-marker--active'],_0xdd629d),_0x51e191[_0x9ebe('0x85')][_0x9ebe('0x10c')](_0x9ebe('0x99'),_0xdd629d),_0x51e191[_0x9ebe('0xb3')][_0x9ebe('0x9')](_0xdd629d,_0x2e65ff[_0x9ebe('0x65')]));},{'priority':_0x9ebe('0xc')});}),_0x530df3[_0x9ebe('0x86')]['document']['registerPostFixer'](_0x35bc6a=>{let _0x1dc850=!0x1;const _0x2e4bb5=Array[_0x9ebe('0x130')](_0x530df3[_0x9ebe('0x86')]['document'][_0x9ebe('0xf3')][_0x9ebe('0x58')]()),_0x34a43b=new Set();for(const {name:_0x529de0,data:_0x472172}of _0x2e4bb5){const {group:_0x2428c5,type:_0x455abe,id:_0x3c7e74}=this[_0x9ebe('0x134')](_0x529de0);if(_0x9ebe('0xaa')!==_0x2428c5)continue;const _0x480bc0=this['_suggestions'][_0x9ebe('0x24')](_0x3c7e74);if(null!=_0x472172[_0x9ebe('0xb6')]){_0x9ebe('0x50')==_0x455abe&&(_0x1dc850=_0x1dc850||Mt(_0x472172[_0x9ebe('0xb6')],_0x529de0,_0x35bc6a,_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')]));if(_0x472172[_0x9ebe('0xb6')][_0x9ebe('0x6d')]||_0x9ebe('0x3d')==_0x472172['newRange'][_0x9ebe('0xc3')][_0x9ebe('0x4e')]||_0x9ebe('0x92')==_0x455abe&&!Nt(_0x472172[_0x9ebe('0xb6')])||_0x9ebe('0xf1')==_0x455abe&&!(!_t(_0xb55b7b=_0x472172[_0x9ebe('0xb6')])&&!function(_0x3714a2){return _0x3714a2['start'][_0x9ebe('0x10f')]==_0x3714a2[_0x9ebe('0x89')][_0x9ebe('0x12e')]&&_0x3714a2['start'][_0x9ebe('0xd4')];}(_0xb55b7b)))_0x35bc6a[_0x9ebe('0xc8')](_0x529de0),_0x1dc850=!0x0;else{if(!_0x480bc0||!_0x480bc0[_0x9ebe('0x12')])continue;_0x34a43b[_0x9ebe('0x104')](_0x480bc0);}}}var _0xb55b7b;return _0x34a43b[_0x9ebe('0x55')]>0x0&&(_0x1dc850=!!this['_joinWithAdjacentSuggestions'](_0x34a43b)||_0x1dc850),_0x1dc850;}),_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x5')][_0x9ebe('0x83')](_0x1ab37c=>{let _0x4b9426=!0x1;for(const _0x598e99 of _0x530df3[_0x9ebe('0x86')][_0x9ebe('0x5')]['differ'][_0x9ebe('0x53')]()){if(_0x9ebe('0x96')!=_0x598e99[_0x9ebe('0x44')])continue;const _0x51398f=_0x598e99['position'][_0x9ebe('0x8')](_0x598e99['length']);if(_0x51398f['isAtEnd'])for(const _0x90029f of this[_0x9ebe('0x126')][_0x9ebe('0x2b')]()){if(_0x90029f[_0x9ebe('0x12f')]||!_0x90029f[_0x9ebe('0x12')])continue;if('formatBlock'!=_0x90029f['type'])continue;const _0x40c41f=_0x90029f['getFirstRange']();if(_0x40c41f[_0x9ebe('0x8f')]['parent']!=_0x40c41f['end'][_0x9ebe('0x10f')]&&_0x40c41f[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x598e99['position'])){const _0x2880e8=_0x530df3[_0x9ebe('0x86')]['createRange'](_0x40c41f[_0x9ebe('0x8f')],_0x51398f);_0x1ab37c['updateMarker'](_0x90029f[_0x9ebe('0xa9')](),{'range':_0x2880e8}),_0x4b9426=!0x0;}}}return _0x4b9426;}),_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x9c')]['on']('update:suggestion',(_0x14b2a8,_0x3fa746,_0x14c23c)=>{if(null==_0x14c23c){const {id:_0x1f7f5e}=this[_0x9ebe('0x134')](_0x3fa746['name']),_0x5ed5b9=this['_suggestions'][_0x9ebe('0x24')](_0x1f7f5e);_0x5ed5b9&&_0x5ed5b9[_0x9ebe('0x27')](_0x3fa746[_0x9ebe('0xcd')]);}}),_0x530df3['model'][_0x9ebe('0x5')]['on'](_0x9ebe('0x3b'),()=>{const _0x1aca63=Array['from'](_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x5')][_0x9ebe('0xf3')][_0x9ebe('0x58')]())[_0x9ebe('0x80')](_0x1d8f34=>_0x9ebe('0xaa')===this[_0x9ebe('0x134')](_0x1d8f34[_0x9ebe('0xcd')])['group']);if(0x0===_0x1aca63['length'])return;_0x1aca63[_0x9ebe('0x21')]((_0x2afe3d,_0x23bff8)=>{const _0x49dfd8=_0x2afe3d[_0x9ebe('0x6')]['oldRange'],_0x261ce5=_0x23bff8[_0x9ebe('0x6')][_0x9ebe('0x117')];return null===_0x49dfd8&&null===_0x261ce5?0x0:null===_0x49dfd8&&null!==_0x261ce5?-0x1:null!==_0x49dfd8&&null===_0x261ce5?0x1:_0x49dfd8[_0x9ebe('0x8f')][_0x9ebe('0xb5')](_0x261ce5[_0x9ebe('0x8f')])?-0x1:0x1;});const _0x7efa6c=new Set(),_0x224883=new Set();for(const {name:_0x202e1c,data:_0x42d297}of _0x1aca63){const {id:_0xa00184}=this['_splitMarkerName'](_0x202e1c);if(null===_0x42d297['oldRange']){const _0x48c61f=this[_0x9ebe('0x36')](_0x202e1c);_0x224883[_0x9ebe('0x104')](_0x48c61f);}else{const _0x20206d=this[_0x9ebe('0x126')]['get'](_0xa00184);null!==_0x42d297[_0x9ebe('0xb6')]||_0x20206d[_0x9ebe('0x12')]?(_0x7efa6c['add'](_0x20206d['head']),_0x224883[_0x9ebe('0x104')](_0x20206d)):this['_removeSuggestion'](_0x20206d);}}_0x224883[_0x9ebe('0x55')]>0x0&&this[_0x9ebe('0x108')](_0x224883);for(const _0x582271 of _0x7efa6c)this[_0x9ebe('0xd8')](_0x9ebe('0x70'),_0x582271);}),_0x530df3[_0x9ebe('0x86')]['on'](_0x9ebe('0x139'),(_0x2fb8c5,_0x29784f)=>{const _0x158256=_0x29784f[0x0];if(!this['_suggestions'][_0x9ebe('0x55')])return;if(!_0x158256['isDocumentOperation'])return;if(_0x158256[_0x9ebe('0x123')][_0x9ebe('0x133')]||!_0x158256[_0x9ebe('0x123')][_0x9ebe('0xac')])return;let _0x2ca0de,_0x37f03c;switch(_0x158256[_0x9ebe('0x44')]){case _0x9ebe('0x96'):_0x2ca0de=_0x530df3['model'][_0x9ebe('0x93')](_0x158256['position']),_0x37f03c=_0x2ca0de[_0x9ebe('0x8')](_0x158256[_0x9ebe('0xc7')]);break;case'split':_0x2ca0de=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x93')](_0x158256[_0x9ebe('0x115')]),_0x37f03c=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x93')](_0x158256[_0x9ebe('0xdc')]);break;case'move':_0x2ca0de=_0x530df3[_0x9ebe('0x86')]['createPositionAt'](_0x158256[_0x9ebe('0x10')]),_0x37f03c=_0x2ca0de[_0x9ebe('0x8')](_0x158256[_0x9ebe('0xc7')]);break;default:return;}const _0x4227e0=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x11c')](_0x2ca0de,_0x37f03c);_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x45')](()=>{for(const {suggestion:_0x282bed,meta:_0x2ad730}of this[_0x9ebe('0x14')](_0x4227e0)){if(_0x282bed[_0x9ebe('0x12f')])continue;if('formatInline'==_0x282bed[_0x9ebe('0x44')])continue;const _0xd4e78a=_0x282bed[_0x9ebe('0x6')]&&_0x282bed[_0x9ebe('0x6')][_0x9ebe('0xd3')];(_0x9ebe('0x92')!=_0x282bed['type']||_0x9ebe('0x101')==_0x158256['type']&&!_0xd4e78a)&&(_0x2ad730[_0x9ebe('0x56')]||_0x9ebe('0x25')==_0x282bed[_0x9ebe('0x44')]&&_0x2ad730['isOwn']||_0x282bed['getFirstRange']()[_0x9ebe('0x15')](_0x4227e0)&&this[_0x9ebe('0x113')](_0x282bed,_0x2ca0de,_0x37f03c));}});},{'priority':_0x9ebe('0xcb')}),_0x530df3[_0x9ebe('0x86')]['on'](_0x9ebe('0xaf'),(_0x41b36b,_0x579920)=>{const _0x4abd90=_0x579920[0x0],_0x524d15=_0x579920[0x1];if(_0x524d15&&_0x524d15[_0x9ebe('0x94')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x9ebe('0x49')][_0x9ebe('0xdd')])return;if(_0x4abd90[_0x9ebe('0x6d')])return;const _0x51009f=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')],{start:_0x125b8d,end:_0x52530e}=_0x4abd90['getFirstRange'](),_0x126786=_0x125b8d['nodeAfter']&&_0x51009f[_0x9ebe('0x10d')](_0x125b8d[_0x9ebe('0x1b')])?null:_0x51009f['getNearestSelectionRange'](_0x125b8d,'forward'),_0x5737a1=_0x52530e['nodeBefore']&&_0x51009f[_0x9ebe('0x10d')](_0x52530e[_0x9ebe('0x12e')])?null:_0x51009f[_0x9ebe('0x19')](_0x52530e,_0x9ebe('0x9b')),_0x2a804c=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x11c')](_0x126786?_0x126786[_0x9ebe('0x8f')]:_0x125b8d,_0x5737a1?_0x5737a1['end']:_0x52530e);_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x45')](_0x3ae5a2=>{this[_0x9ebe('0x29')](_0x2a804c);const _0x41dfb6=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')][_0x9ebe('0x19')](_0x2a804c[_0x9ebe('0x8f')]);_0x4abd90['is'](_0x9ebe('0xad'))?_0x3ae5a2['setSelection'](_0x41dfb6):_0x4abd90[_0x9ebe('0x136')](_0x41dfb6);}),_0x41b36b[_0x9ebe('0x4d')]();},{'priority':_0x4039f0[_0x9ebe('0x116')]+0xa}),_0x530df3['model']['on']('insertContent',(_0x3d65ad,_0x52d751)=>{const _0xfb2e6=_0x52d751[_0x52d751[_0x9ebe('0xb')]-0x1];_0xfb2e6&&_0xfb2e6[_0x9ebe('0x94')]||this[_0x9ebe('0x4b')]||this[_0x9ebe('0x49')][_0x9ebe('0xdd')]&&(_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x45')](()=>{let _0x2d59ae=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x137')](_0x52d751[0x0],_0x52d751[0x1],_0x52d751[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d59ae)return;_0x3d65ad[_0x9ebe('0xa1')]=_0x2d59ae[_0x9ebe('0x57')]();const _0x2eca08=_0x2d59ae[_0x9ebe('0x89')][_0x9ebe('0x12e')],_0x4752d3=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')];_0x2eca08&&_0x4752d3['isBlock'](_0x2eca08)&&!_0x4752d3['isObject'](_0x2eca08)&&(_0x2d59ae=_0x530df3['model'][_0x9ebe('0x11c')](_0x2d59ae[_0x9ebe('0x8f')],_0x530df3['model'][_0x9ebe('0x93')](_0x2eca08,_0x9ebe('0x89')))),this['markInsertion'](_0x2d59ae);}),_0x3d65ad['stop']());},{'priority':_0x9ebe('0xc')}),this[_0x9ebe('0xb1')][_0x9ebe('0x135')][_0x9ebe('0x104')](_0x9ebe('0x12c'),this[_0x9ebe('0x49')]),this[_0x9ebe('0x7f')](_0x9ebe('0x12c'));const _0x5cc585=new _0x1e1b09(_0x530df3,this[_0x9ebe('0x126')]);_0x530df3[_0x9ebe('0x135')][_0x9ebe('0x104')](_0x9ebe('0xbc'),_0x5cc585),this[_0x9ebe('0x7f')](_0x9ebe('0xbc'));const _0x553647=new _0x3693e3(_0x530df3,this[_0x9ebe('0x126')]);_0x530df3[_0x9ebe('0x135')][_0x9ebe('0x104')](_0x9ebe('0x12b'),_0x553647),this[_0x9ebe('0x7f')]('discardSuggestion'),_0x530df3[_0x9ebe('0x135')]['add'](_0x9ebe('0x100'),new _0x5c1c31(_0x530df3,_0x5cc585,this[_0x9ebe('0x126')])),this[_0x9ebe('0x7f')](_0x9ebe('0x100')),_0x530df3[_0x9ebe('0x135')]['add']('discardAllSuggestions',new _0x5c1c31(_0x530df3,_0x553647,this[_0x9ebe('0x126')])),this[_0x9ebe('0x7f')](_0x9ebe('0x2c')),_0x530df3[_0x9ebe('0x135')][_0x9ebe('0x104')]('acceptSelectedSuggestions',new _0x46d85a(_0x530df3,_0x5cc585,this['_suggestions'])),this[_0x9ebe('0x7f')]('acceptSelectedSuggestions'),_0x530df3['commands'][_0x9ebe('0x104')]('discardSelectedSuggestions',new _0x46d85a(_0x530df3,_0x553647,this[_0x9ebe('0x126')])),this['enableCommand']('discardSelectedSuggestions');const _0xba1b4d=_0x530df3[_0x9ebe('0x2f')]['get'](_0x9ebe('0x73'));this['listenTo'](_0xba1b4d,_0x9ebe('0xe7'),(_0x557236,{threadId:_0x112c79})=>{const _0x290b53=this[_0x9ebe('0x126')][_0x9ebe('0x24')](_0x112c79);_0x290b53&&_0x290b53[_0x9ebe('0x6c')]&&0x1===_0x290b53[_0x9ebe('0x6c')][_0x9ebe('0xb')]&&this['_updateSuggestionData'](_0x112c79,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xba1b4d,'removeComment',(_0x33f077,{threadId:_0x592408})=>{const _0x196f7f=this[_0x9ebe('0x126')]['get'](_0x592408);_0x196f7f&&_0x196f7f['commentThread']&&!_0x196f7f[_0x9ebe('0x6c')][_0x9ebe('0xb')]&&this[_0x9ebe('0xc2')](_0x592408,{'hasComments':!0x1});},{'priority':_0x9ebe('0xbe')});}set[_0x9ebe('0xce')](_0x35af03){if(this[_0x9ebe('0x54')])throw new _0x168803('track-changes-adapter-already-set',this);this[_0x9ebe('0x54')]=_0x35af03;}get['adapter'](){return this[_0x9ebe('0x54')];}[_0x9ebe('0x5b')]({skipNotAttached:_0x147d12=!0x1,toJSON:_0x3f260d=!0x1}={}){const _0x16c068=[];for(const _0x19592c of this[_0x9ebe('0x126')][_0x9ebe('0x2b')]())_0x147d12&&!_0x19592c['isInContent']||_0x16c068[_0x9ebe('0x66')](_0x19592c);return _0x3f260d?_0x16c068['map'](_0x324ae9=>_0x324ae9[_0x9ebe('0x48')]()):_0x16c068;}['getSuggestion'](_0x29b15e){const _0x522b08=this['_suggestions'][_0x9ebe('0x24')](_0x29b15e);if(!_0x522b08)throw new _0x168803('track-changes-suggestion-not-found',this);return _0x522b08;}[_0x9ebe('0x1c')](_0x35539f){return this[_0x9ebe('0x126')]['has'](_0x35539f);}[_0x9ebe('0x68')](_0x5eac4b){const {authorId:_0x5a3eb4,id:_0x267fd9,attributes:_0x9f8875}=_0x5eac4b,[_0x4182b8,_0xc62a29]=_0x5eac4b[_0x9ebe('0x44')][_0x9ebe('0x101')](':'),_0x5195b5=this[_0x9ebe('0x126')][_0x9ebe('0x24')](_0x267fd9)||this['_createSuggestion'](_0x4182b8,_0xc62a29,_0x267fd9,_0x5a3eb4,_0x9f8875);if(this[_0x9ebe('0x5f')](_0x5195b5),this[_0x9ebe('0x40')](_0x5195b5,_0x4182b8,_0xc62a29||null,_0x5a3eb4),_0x5195b5[_0x9ebe('0x81')]=_0x5eac4b[_0x9ebe('0x81')],_0x9f8875&&_0x9f8875[_0x9ebe('0x34')]){const _0x11b33e=_0x9f8875[_0x9ebe('0x34')],_0x1ec474=this[_0x9ebe('0x74')](_0x11b33e[_0x9ebe('0xd1')]);_0x5195b5[_0x9ebe('0x3a')]=_0x11b33e[_0x9ebe('0x81')],_0x5195b5[_0x9ebe('0x6a')]=_0x1ec474,_0x5195b5[_0x9ebe('0x2a')]=!0x0;}else _0x5195b5['authoredAt']=_0x5eac4b['createdAt'];switch(_0x5eac4b[_0x9ebe('0x6')]&&(_0x5195b5['data']=_0x5eac4b[_0x9ebe('0x6')]),_0x5eac4b[_0x9ebe('0x128')]&&(_0x5195b5[_0x9ebe('0x128')]=_0x5eac4b[_0x9ebe('0x128')]),this[_0x9ebe('0x54')]&&this[_0x9ebe('0x54')][_0x9ebe('0x10a')]||(_0x5195b5[_0x9ebe('0x2e')]=!0x0),this[_0x9ebe('0x105')][_0x9ebe('0x24')](_0x5195b5)){case _0x9ebe('0x102'):this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x5195b5,_0x9ebe('0x8d'));break;case _0x9ebe('0x112'):_0x5195b5[_0x9ebe('0x12')]?(this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x5195b5,'ready'),this[_0x9ebe('0xd8')](_0x9ebe('0x69'),_0x5195b5)):this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x5195b5,_0x9ebe('0x64'));}return _0x5195b5;}['acceptSuggestion'](_0x447ed0){this[_0x9ebe('0x94')](()=>{this[_0x9ebe('0xb1')]['model'][_0x9ebe('0x45')](()=>{for(const _0x1a33d0 of _0x447ed0[_0x9ebe('0x12a')]())_0x1a33d0[_0x9ebe('0x125')]();});});}['discardSuggestion'](_0x304021){this[_0x9ebe('0x94')](()=>{this[_0x9ebe('0xb1')][_0x9ebe('0x86')][_0x9ebe('0x45')](()=>{for(const _0x465bdf of _0x304021[_0x9ebe('0x12a')]())_0x465bdf[_0x9ebe('0x23')]();});});}[_0x9ebe('0x7f')](_0x2cd5ef,_0x15a6db){const _0x740185=this['editor'][_0x9ebe('0x135')][_0x9ebe('0x24')](_0x2cd5ef);if(!_0x740185)throw new _0x168803(_0x9ebe('0x121'),this,{'commandName':_0x2cd5ef});this[_0x9ebe('0xdb')][_0x9ebe('0x104')](_0x740185),_0x15a6db&&_0x740185['on']('execute',(_0x5ef923,_0x541c99)=>{this[_0x9ebe('0x49')][_0x9ebe('0xdd')]&&(this['_isForcedDefaultExecutionBlock']||_0x541c99[_0x9ebe('0xb')]>0x0&&_0x541c99[_0x541c99[_0x9ebe('0xb')]-0x1]&&_0x541c99[_0x541c99['length']-0x1][_0x9ebe('0x94')]||(_0x15a6db((..._0x2013b4)=>_0x740185[_0x9ebe('0xff')](..._0x2013b4,{'forceDefaultExecution':!0x0}),..._0x541c99),_0x5ef923['stop']()));},{'priority':'high'});}[_0x9ebe('0x94')](_0x3cbe36){let _0x1391eb,_0x4a9b5b;const _0x2cd869=this[_0x9ebe('0x4b')];this[_0x9ebe('0x4b')]=!0x0;try{_0x1391eb=_0x3cbe36();}catch(_0x5ccede){_0x4a9b5b=_0x5ccede;}return _0x2cd869||(this[_0x9ebe('0x4b')]=!0x1),_0x4a9b5b&&_0x168803[_0x9ebe('0x118')](_0x4a9b5b,this),_0x1391eb;}['markInsertion'](_0x2903d0,_0x4943af=null,_0x587fd5={}){if(_0x2903d0[_0x9ebe('0x6d')])return null;const _0x4896e0=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'];for(const {suggestion:_0x2ba625,meta:_0x2d2f66}of this[_0x9ebe('0x14')](_0x2903d0,_0x9ebe('0x25')))if(_0x2d2f66[_0x9ebe('0x4a')]){if(!_0x2d2f66[_0x9ebe('0xe5')])return _0x2ba625;if(_0x4943af==_0x2ba625[_0x9ebe('0x2d')]){const _0x9c37f=_0x2ba625[_0x9ebe('0xe2')]();return _0x9c37f[_0x9ebe('0x8f')][_0x9ebe('0xdf')](_0x2903d0['end'])?this[_0x9ebe('0x59')](_0x2ba625,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x2903d0[_0x9ebe('0x8f')],_0x9c37f[_0x9ebe('0x89')])):this[_0x9ebe('0x59')](_0x2ba625,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x9c37f['start'],_0x2903d0['end'])),_0x2ba625;}}const _0x59990a=_0x4e3532(),_0x2c9aad=_0x4896e0['id'],_0x513555=_0x4943af?_0x9ebe('0x6e')+_0x4943af:_0x9ebe('0x25'),_0x574d59=this[_0x9ebe('0x41')]({'id':_0x59990a,'type':_0x513555,'createdAt':new Date(),'authorId':_0x2c9aad,'attributes':_0x587fd5});return this[_0x9ebe('0x67')](_0x513555,_0x59990a,_0x2c9aad,_0x2903d0),_0x574d59;}[_0x9ebe('0xee')](_0x4f2bd8,_0x3c55f3='multi',_0x2d3d0f={}){const _0x526057=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')]('Users')['me'],_0x3e5ce1=this['_suggestionFactory'][_0x9ebe('0x9a')](_0x9ebe('0x25'),_0x3c55f3,_0x9ebe('0x10b'));for(const _0x2958ef of this[_0x9ebe('0x5b')]())if(_0x2958ef[_0x9ebe('0x6a')]['id']==_0x526057['id']&&_0x9ebe('0x25')==_0x2958ef['type']&&_0x2958ef['subType']==_0x3c55f3&&(_0x3e5ce1(_0x2958ef['getRanges'](),_0x4f2bd8)||_0x3e5ce1(_0x4f2bd8,_0x2958ef[_0x9ebe('0xb2')]()))){for(const _0x88c28 of _0x4f2bd8)_0x2958ef['addRange'](_0x88c28);return _0x2958ef;}for(const _0x498b7d of _0x4f2bd8)for(const {suggestion:_0x4f03d9,meta:_0x3649d0}of this[_0x9ebe('0x14')](_0x498b7d,_0x9ebe('0x25'))){if(!_0x3649d0[_0x9ebe('0x4a')])continue;let _0x188d8f=!0x0;for(const _0x55d4df of _0x4f03d9[_0x9ebe('0xb2')]())for(const _0x1246a7 of _0x4f2bd8)if(!_0x55d4df[_0x9ebe('0x15')](_0x1246a7)){_0x188d8f=!0x1;break;}if(_0x188d8f)return _0x4f03d9;}const _0x423659=_0x4e3532(),_0x50dbf0=_0x526057['id'],_0x505cf2=_0x9ebe('0x6e')+_0x3c55f3,_0x56ba9c=this[_0x9ebe('0x41')]({'id':_0x423659,'type':_0x505cf2,'createdAt':new Date(),'authorId':_0x50dbf0,'attributes':_0x2d3d0f});for(const _0x300a63 of _0x4f2bd8)this[_0x9ebe('0x67')](_0x505cf2,_0x423659,_0x50dbf0,_0x300a63,_0x428cce[_0x9ebe('0xa6')]());return _0x56ba9c;}['markInlineFormat'](_0x23acdb,_0x1b3b51,_0x3ba164=null,_0x138b31={}){if(_0x3ba164=_0x3ba164||$t(_0x1b3b51),_0x23acdb[_0x9ebe('0x6d')])return null;if(!0x1===this[_0x9ebe('0x122')]){const _0x2cbc6c=this[_0x9ebe('0xec')]['getSuggestionCallback']('formatInline',_0x3ba164,_0x9ebe('0x125'));return this['forceDefaultExecution'](()=>_0x2cbc6c([_0x23acdb],_0x1b3b51,_0x138b31)),null;}const _0x528ba4=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'],_0x3f7813=[];for(const {suggestion:_0xffe180,meta:_0x19c01e}of this[_0x9ebe('0x14')](_0x23acdb,'insertion'))_0x19c01e[_0x9ebe('0x4a')]&&!_0x19c01e[_0x9ebe('0x0')]&&_0x3f7813[_0x9ebe('0x66')](..._0xffe180['getRanges']());const _0x18a910=function(_0x2f73dd,_0x3382d7){const _0x409a5b=[];for(const _0x1c2e95 of _0x3382d7){const _0x1c941c=_0x2f73dd[_0x9ebe('0xf6')](_0x1c2e95);_0x1c941c&&_0x409a5b[_0x9ebe('0x66')](_0x1c941c);}return _0x409a5b;}(_0x23acdb,_0x3f7813),_0x355bd0=function(_0x97fa20,_0x3ed068){const _0x41f045=[_0x97fa20];for(const _0x1752e1 of _0x3ed068){let _0x47be28=0x0;for(;_0x47be28<_0x41f045['length'];){const _0x52f39f=_0x41f045[_0x47be28][_0x9ebe('0xbf')](_0x1752e1);_0x41f045['splice'](_0x47be28,0x1,..._0x52f39f),_0x47be28+=_0x52f39f[_0x9ebe('0xb')];}}return _0x41f045;}(_0x23acdb,_0x3f7813);_0x18a910[_0x9ebe('0xb')]&&this[_0x9ebe('0x60')][_0x9ebe('0x45')](()=>{for(const _0x4adbb8 of _0x18a910){const _0x43c2ff=this[_0x9ebe('0xec')]['getSuggestionCallback'](_0x9ebe('0x50'),_0x3ba164,_0x9ebe('0x125'));this['forceDefaultExecution'](()=>_0x43c2ff([_0x4adbb8],_0x1b3b51,_0x138b31));}});for(const _0x37de74 of _0x355bd0){let _0x3784f1=null,_0x3bfdd1=_0x37de74[_0x9ebe('0x8f')],_0x43ee04=_0x37de74[_0x9ebe('0x89')];for(const {suggestion:_0x3a370,meta:_0x4af832}of this['_findSuggestions'](_0x37de74,_0x9ebe('0x50'))){if(!_0x4af832['isOwn'])continue;if(_0x3a370[_0x9ebe('0x2d')]!=_0x3ba164)continue;const _0xab4764=_0x3a370[_0x9ebe('0xe2')]();if(_0xab4764['containsRange'](_0x37de74,!0x0))return null;_0x3bfdd1=_0x3bfdd1[_0x9ebe('0xb5')](_0xab4764[_0x9ebe('0x8f')])?_0x3bfdd1:_0xab4764[_0x9ebe('0x8f')],_0x43ee04=_0x43ee04[_0x9ebe('0x127')](_0xab4764[_0x9ebe('0x89')])?_0x43ee04:_0xab4764[_0x9ebe('0x89')],_0x3784f1?_0xab4764[_0x9ebe('0x8f')]['isBefore'](_0x3784f1[_0x9ebe('0xe2')]()[_0x9ebe('0x8f')])?(_0x3784f1[_0x9ebe('0x3c')](),_0x3784f1=_0x3a370):_0x3a370[_0x9ebe('0x3c')]():_0x3784f1=_0x3a370;}const _0x86603c=this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x3bfdd1,_0x43ee04);if(_0x3784f1)this['_setSuggestionRange'](_0x3784f1,_0x86603c);else{const _0x1e2db1=_0x4e3532(),_0x14bd0b=_0x528ba4['id'];this[_0x9ebe('0x41')]({'id':_0x1e2db1,'type':'formatInline:'+_0x3ba164,'data':_0x1b3b51,'createdAt':new Date(),'authorId':_0x14bd0b,'attributes':_0x138b31}),this[_0x9ebe('0x67')](_0x9ebe('0x52')+_0x3ba164,_0x1e2db1,_0x14bd0b,_0x86603c);}}return null;}['markBlockFormat'](_0x5cb96c,_0x22d60c,_0x8e5acb=[],_0x1865f9=null,_0x3dad79={}){_0x22d60c[_0x9ebe('0x87')]||(_0x22d60c['formatGroupId']=_0x22d60c[_0x9ebe('0xf4')]),_0x22d60c[_0x9ebe('0xd3')]=_0x5cb96c['is'](_0x9ebe('0x107')),_0x1865f9=_0x1865f9||$t(_0x22d60c);const _0x497611=_0x8e5acb[_0x9ebe('0xb9')](_0x32b82f=>Rt(_0x32b82f,this[_0x9ebe('0x60')])),_0xd500e7=_0x5cb96c['is'](_0x9ebe('0x107'))?_0x5cb96c:Rt(_0x5cb96c,this[_0x9ebe('0x60')]);if(!0x1===this[_0x9ebe('0x122')]){const _0x32c698=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0x92'),_0x1865f9,'accept');return this[_0x9ebe('0x94')](()=>_0x32c698([_0xd500e7],_0x22d60c,_0x3dad79)),null;}_0x497611[_0x9ebe('0x66')](_0xd500e7);let _0x173aa8=!0x0;for(const _0x27871c of _0x497611)if(!this[_0x9ebe('0xfa')](_0x27871c)){_0x173aa8=!0x1;break;}if(_0x173aa8){const _0x251883=this[_0x9ebe('0xec')][_0x9ebe('0x9a')]('formatBlock',_0x1865f9,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x251883([_0xd500e7],_0x22d60c,_0x3dad79)),null;}let _0x40c552=null,_0x3fb4ba=_0xd500e7[_0x9ebe('0x8f')],_0x1d7268=_0xd500e7['end'];for(const {suggestion:_0x5d0c30,meta:_0x2c4269}of this['_findSuggestions'](_0xd500e7,_0x9ebe('0x92'))){if(!_0x2c4269[_0x9ebe('0x4a')]||_0x2c4269[_0x9ebe('0xe5')]||_0x2c4269[_0x9ebe('0x56')]||_0x2c4269[_0x9ebe('0x0')])continue;if(_0x5d0c30['data'][_0x9ebe('0x87')]!=_0x22d60c[_0x9ebe('0x87')])continue;const _0x10ed5e=_0x5d0c30[_0x9ebe('0xe2')]();if(_0x5d0c30[_0x9ebe('0x2d')]==_0x1865f9){if(_0x10ed5e[_0x9ebe('0x15')](_0xd500e7,!0x0))return null;_0x3fb4ba=_0x3fb4ba['isBefore'](_0x10ed5e['start'])?_0x3fb4ba:_0x10ed5e['start'],_0x1d7268=_0x1d7268[_0x9ebe('0x127')](_0x10ed5e[_0x9ebe('0x89')])?_0x1d7268:_0x10ed5e[_0x9ebe('0x89')],_0x40c552?_0x10ed5e[_0x9ebe('0x8f')][_0x9ebe('0xb5')](_0x40c552['getFirstRange']()[_0x9ebe('0x8f')])?(_0x40c552[_0x9ebe('0x3c')](),_0x40c552=_0x5d0c30):_0x5d0c30[_0x9ebe('0x3c')]():_0x40c552=_0x5d0c30;}else{const _0x1cb9a4=_0xd500e7[_0x9ebe('0xf6')](_0x10ed5e);this['_cutOutSuggestionMarker'](_0x5d0c30,_0x1cb9a4);}}const _0x729c84=this['editor'][_0x9ebe('0x2f')][_0x9ebe('0x24')]('Users')['me'],_0x50c5f9=_0x4e3532(),_0xb4d25e=_0x729c84['id'];if(_0x40c552)return this[_0x9ebe('0x59')](_0x40c552,this[_0x9ebe('0x60')]['createRange'](_0x3fb4ba,_0x1d7268)),_0x40c552;{const _0x33fbd0=this[_0x9ebe('0x41')]({'id':_0x50c5f9,'type':_0x9ebe('0xca')+_0x1865f9,'data':_0x22d60c,'createdAt':new Date(),'authorId':_0xb4d25e,'attributes':_0x3dad79});return this[_0x9ebe('0x67')](_0x9ebe('0xca')+_0x1865f9,_0x50c5f9,_0xb4d25e,this['_model']['createRange'](_0x3fb4ba,_0x1d7268)),_0x33fbd0;}}[_0x9ebe('0xf7')](_0x4be03f,_0x57dee3,_0x3cab08=[],_0x4c9fe3=null,_0x28ce50={}){_0x57dee3[_0x9ebe('0x87')]||(_0x57dee3[_0x9ebe('0x87')]=_0x57dee3[_0x9ebe('0xf4')]);const _0x36481e=_0x4be03f[0x0];_0x57dee3['multipleBlocks']=_0x36481e['is'](_0x9ebe('0x107')),_0x4c9fe3=_0x4c9fe3||$t(_0x57dee3);const _0x533138=_0x3cab08[_0x9ebe('0xb9')](_0x5971f8=>Rt(_0x5971f8,this[_0x9ebe('0x60')])),_0x1318f9=_0x36481e['is'](_0x9ebe('0x107'))?_0x4be03f:_0x4be03f[_0x9ebe('0xb9')](_0x51d8bc=>Rt(_0x51d8bc,this['_model']));if(!0x1===this[_0x9ebe('0x122')]){const _0x16c55d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c9fe3,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x16c55d(_0x1318f9,_0x57dee3,_0x28ce50)),null;}_0x533138['push'](..._0x1318f9);let _0x2161f2=!0x0;for(const _0xc275c5 of _0x533138)if(!this[_0x9ebe('0xfa')](_0xc275c5)){_0x2161f2=!0x1;break;}if(_0x2161f2){const _0x2de637=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0x92'),_0x4c9fe3,'accept');return this[_0x9ebe('0x94')](()=>_0x2de637(_0x1318f9,_0x57dee3,_0x28ce50)),null;}const _0x2be6cc=this['editor'][_0x9ebe('0x2f')]['get']('Users')['me'];for(const _0x253d80 of this[_0x9ebe('0x5b')]()){if(_0x253d80['author']['id']!=_0x2be6cc['id'])continue;if('formatBlock'!=_0x253d80[_0x9ebe('0x44')]||_0x253d80[_0x9ebe('0x6')][_0x9ebe('0x87')]!=_0x57dee3[_0x9ebe('0x87')])continue;const _0x40db9d=_0x253d80['subType']==_0x4c9fe3;for(let _0x1982bf=0x0;_0x1982bf<_0x1318f9[_0x9ebe('0xb')];_0x1982bf++){const _0x3e9fb0=_0x1318f9[_0x1982bf];for(const _0x35e8f1 of _0x253d80[_0x9ebe('0x72')]()){const _0x561118=_0x35e8f1[_0x9ebe('0xf5')]();if(_0x3e9fb0[_0x9ebe('0xdf')](_0x561118)){_0x40db9d?(_0x1318f9['splice'](_0x1982bf,0x1),_0x1982bf--):_0x253d80[_0x9ebe('0xc8')](_0x35e8f1[_0x9ebe('0xcd')]);break;}}}}if(0x0==_0x1318f9[_0x9ebe('0xb')])return null;const _0x25c401=this['_suggestionFactory']['getSuggestionCallback'](_0x9ebe('0x92'),_0x4c9fe3,'join');for(const _0x3d84d3 of this[_0x9ebe('0x5b')]())if(_0x3d84d3['author']['id']==_0x2be6cc['id']&&_0x9ebe('0x92')==_0x3d84d3['type']&&_0x3d84d3[_0x9ebe('0x6')][_0x9ebe('0x87')]==_0x57dee3[_0x9ebe('0x87')]&&_0x3d84d3[_0x9ebe('0x2d')]==_0x4c9fe3&&(_0x25c401(_0x3d84d3[_0x9ebe('0xb2')](),_0x1318f9)||_0x25c401(_0x1318f9,_0x3d84d3[_0x9ebe('0xb2')]()))){for(const _0x163b82 of _0x1318f9)_0x3d84d3[_0x9ebe('0x138')](_0x163b82);return _0x3d84d3;}const _0x400c03=_0x4e3532(),_0x4ef0a0=_0x2be6cc['id'],_0x47c59f='formatBlock:'+_0x4c9fe3,_0x67c2b5=this['_setSuggestionData']({'id':_0x400c03,'type':_0x47c59f,'data':_0x57dee3,'createdAt':new Date(),'authorId':_0x4ef0a0,'attributes':_0x28ce50});for(const _0x2a7dae of _0x1318f9)this[_0x9ebe('0x67')](_0x47c59f,_0x400c03,_0x4ef0a0,_0x2a7dae,_0x428cce[_0x9ebe('0xa6')]());return _0x67c2b5;}[_0x9ebe('0x29')](_0x3f5d52,_0x27c61e=null,_0x595989={}){if(_0x3f5d52[_0x9ebe('0x6d')])return null;const _0x543ffb=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'],_0x4065ad=new _0x5ea0ee(_0x3f5d52[_0x9ebe('0x8f')],_0x3f5d52[_0x9ebe('0x89')]);for(const {suggestion:_0x39ab01,meta:_0xa99a05}of this['_findSuggestions'](_0x4065ad,_0x9ebe('0x25')))if(_0xa99a05[_0x9ebe('0x4a')]&&!_0xa99a05[_0x9ebe('0xe5')]){if(_0x39ab01['isMultiRange']){const _0x3eddcb=_0x39ab01[_0x9ebe('0xb2')]()[_0x9ebe('0x80')](_0x1cea3b=>_0x9ebe('0x3d')!=_0x1cea3b[_0x9ebe('0xc3')][_0x9ebe('0x4e')]);_0x3eddcb[_0x9ebe('0xeb')](_0xef9093=>_0x4065ad[_0x9ebe('0x15')](_0xef9093,!0x0))&&_0x39ab01[_0x9ebe('0x23')]();if(_0x3eddcb[_0x9ebe('0xf9')](_0x5e3351=>_0x5e3351[_0x9ebe('0x15')](_0x4065ad,!0x0))){const _0x565f31=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0xf1'),_0x27c61e,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x565f31([_0x4065ad],null,_0x595989)),null;}}else{const _0x2eb63f=_0x4065ad[_0x9ebe('0xf6')](_0x39ab01[_0x9ebe('0xe2')]());_0x39ab01[_0x9ebe('0xb0')]([_0x2eb63f],null,_0x595989);}}if(_0x4065ad['detach'](),_0x4065ad['isCollapsed']||_0x9ebe('0x3d')==_0x4065ad[_0x9ebe('0xc3')]['rootName'])return null;let _0x3855ba=null,_0x4da7c0=_0x4065ad[_0x9ebe('0x8f')],_0x5ed9bd=_0x4065ad[_0x9ebe('0x89')];for(const {suggestion:_0x31d074,meta:_0x420d79}of this[_0x9ebe('0x14')](_0x4065ad,_0x9ebe('0xf1')))if(_0x420d79[_0x9ebe('0x4a')]){if(_0x31d074[_0x9ebe('0x12f')]){let _0x5e0158=!0x0;for(const _0x42a428 of _0x31d074[_0x9ebe('0xb2')]()){if(_0x42a428[_0x9ebe('0x15')](_0x4065ad,!0x0))return _0x31d074;_0x4065ad[_0x9ebe('0x15')](_0x42a428)||(_0x5e0158=!0x1);}_0x5e0158&&_0x31d074['discard']();}else{const _0x5cc7ee=_0x31d074[_0x9ebe('0xe2')]();if(_0x5cc7ee[_0x9ebe('0x15')](_0x4065ad,!0x0))return _0x31d074;_0x4da7c0=_0x4da7c0['isBefore'](_0x5cc7ee[_0x9ebe('0x8f')])?_0x4da7c0:_0x5cc7ee[_0x9ebe('0x8f')],_0x5ed9bd=_0x5ed9bd[_0x9ebe('0x127')](_0x5cc7ee[_0x9ebe('0x89')])?_0x5ed9bd:_0x5cc7ee[_0x9ebe('0x89')],_0x3855ba?_0x5cc7ee['start'][_0x9ebe('0xb5')](_0x3855ba[_0x9ebe('0xe2')]()[_0x9ebe('0x8f')])?(_0x3855ba[_0x9ebe('0x3c')](),_0x3855ba=_0x31d074):_0x31d074['removeMarkers']():_0x3855ba=_0x31d074;}}if(_0x3855ba)return this['_setSuggestionRange'](_0x3855ba,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x4da7c0,_0x5ed9bd)),_0x3855ba;{const _0xe3be0b=_0x4e3532(),_0x5798ec=this['_model'][_0x9ebe('0x11c')](_0x4da7c0,_0x5ed9bd),_0xd4e0e9=_0x543ffb['id'],_0x1c84d9=_0x27c61e?_0x9ebe('0x1d')+_0x27c61e:_0x9ebe('0xf1'),_0x99f615=this['_setSuggestionData']({'id':_0xe3be0b,'type':_0x1c84d9,'createdAt':new Date(),'authorId':_0xd4e0e9,'attributes':_0x595989});return this[_0x9ebe('0x67')](_0x1c84d9,_0xe3be0b,_0xd4e0e9,_0x5798ec),_0x99f615;}}[_0x9ebe('0x13')](_0x30a7cf,_0x15d86b=_0x9ebe('0xab'),_0x49b9d4={}){const _0x314091=this[_0x9ebe('0xb1')]['plugins'][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'],_0x129fbd=_0x30a7cf[_0x9ebe('0xb9')](_0x2626cc=>new _0x5ea0ee(_0x2626cc[_0x9ebe('0x8f')],_0x2626cc[_0x9ebe('0x89')])),_0x1c889f=new Set();for(const _0x2388c6 of _0x129fbd)for(const {suggestion:_0x415bbe,meta:_0x3d3982}of this[_0x9ebe('0x14')](_0x2388c6,_0x9ebe('0x25')))_0x3d3982[_0x9ebe('0x4a')]&&!_0x3d3982[_0x9ebe('0xe5')]&&_0x1c889f['add'](_0x415bbe);for(const _0x3df963 of _0x1c889f)if(_0x3df963[_0x9ebe('0x12f')]){const _0x71b749=_0x3df963[_0x9ebe('0xb2')]();(!_0x3df963[_0x9ebe('0x128')]||!_0x3df963['attributes'][_0x9ebe('0x114')])&&(_0x71b749[_0x9ebe('0xeb')](_0x43da1c=>_0x129fbd[_0x9ebe('0xf9')](_0x3ba273=>_0x3ba273[_0x9ebe('0x15')](_0x43da1c,!0x0)))&&_0x3df963['discard']());if(_0x129fbd[_0x9ebe('0xeb')](_0xc5fdd9=>_0x71b749[_0x9ebe('0xf9')](_0x35f05e=>_0x35f05e[_0x9ebe('0x15')](_0xc5fdd9,!0x0)))){const _0x1c47ad=this[_0x9ebe('0xec')][_0x9ebe('0x9a')]('deletion',_0x15d86b,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x1c47ad(_0x30a7cf,null,_0x49b9d4)),null;}}else{const _0x443760=_0x3df963[_0x9ebe('0xe2')]();_0x129fbd[_0x9ebe('0xf9')](_0x1355d3=>_0x1355d3[_0x9ebe('0x15')](_0x443760,!0x0))&&_0x3df963[_0x9ebe('0x23')]();if(_0x129fbd['every'](_0x221af2=>_0x443760[_0x9ebe('0x15')](_0x221af2,!0x0))){const _0x407a8=this[_0x9ebe('0xec')]['getSuggestionCallback'](_0x9ebe('0xf1'),_0x15d86b,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x407a8(_0x129fbd,null,_0x49b9d4)),null;}}const _0x21199e=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0xf1'),_0x15d86b,_0x9ebe('0x10b'));let _0x104488=null;for(const _0x4d0556 of this[_0x9ebe('0x5b')]())if(_0x4d0556[_0x9ebe('0x6a')]['id']==_0x314091['id']&&_0x4d0556[_0x9ebe('0x12')]&&_0x9ebe('0xf1')==_0x4d0556[_0x9ebe('0x44')]&&_0x4d0556[_0x9ebe('0x2d')]==_0x15d86b&&(_0x21199e(_0x4d0556['getRanges'](),_0x129fbd)||_0x21199e(_0x129fbd,_0x4d0556['getRanges']()))){if(_0x104488){if(_0x4d0556[_0x9ebe('0x6c')]&&_0x4d0556[_0x9ebe('0x6c')][_0x9ebe('0xb')])continue;for(const _0x2a5bc3 of _0x4d0556[_0x9ebe('0xb2')]())_0x104488[_0x9ebe('0xcc')](_0x2a5bc3)||_0x104488[_0x9ebe('0x138')](_0x2a5bc3);_0x4d0556[_0x9ebe('0x3c')]();}else{_0x104488=_0x4d0556;for(const _0x32f65a of _0x129fbd)_0x4d0556[_0x9ebe('0xcc')](_0x32f65a)||_0x4d0556['addRange'](_0x32f65a);}}if(_0x104488)return _0x104488;_0x1c889f[_0x9ebe('0x71')]();for(const _0x12f2d9 of _0x129fbd)for(const {suggestion:_0x10187c,meta:_0x469f09}of this['_findSuggestions'](_0x12f2d9,'deletion'))_0x469f09['isOwn']&&_0x1c889f[_0x9ebe('0x104')](_0x10187c);for(const _0x15b8e8 of _0x1c889f){const _0xe28e53=_0x15b8e8['getRanges']();if(!_0x49b9d4||!_0x49b9d4[_0x9ebe('0x114')]){if(_0x129fbd['every'](_0x46eb58=>_0xe28e53[_0x9ebe('0xf9')](_0x49e56b=>_0x49e56b[_0x9ebe('0x15')](_0x46eb58,!0x0))))return _0x15b8e8;}(!_0x15b8e8[_0x9ebe('0x128')]||!_0x15b8e8[_0x9ebe('0x128')][_0x9ebe('0x114')])&&(_0xe28e53['every'](_0x2717ee=>_0x129fbd[_0x9ebe('0xf9')](_0x25c693=>_0x25c693[_0x9ebe('0x15')](_0x2717ee,!0x0)))&&_0x15b8e8[_0x9ebe('0x23')]());}const _0x49739e=_0x4e3532(),_0xf95dfb=_0x314091['id'],_0xdd0850=_0x9ebe('0x1d')+_0x15d86b,_0x1201ed=this[_0x9ebe('0x41')]({'id':_0x49739e,'type':_0xdd0850,'createdAt':new Date(),'authorId':_0xf95dfb,'attributes':_0x49b9d4});for(const _0x4305c0 of _0x129fbd)_0x4305c0[_0x9ebe('0x132')](),_0x4305c0['isCollapsed']||_0x9ebe('0x3d')==_0x4305c0[_0x9ebe('0xc3')]['rootName']||this[_0x9ebe('0x67')](_0xdd0850,_0x49739e,_0xf95dfb,_0x4305c0,_0x428cce[_0x9ebe('0xa6')]());return _0x1201ed;}[_0x9ebe('0x59')](_0x34eec0,_0x337850){const _0x5ee305=_0x34eec0[_0x9ebe('0xa9')]();this[_0x9ebe('0x60')][_0x9ebe('0x45')](_0x4436b8=>{_0x4436b8[_0x9ebe('0xe0')](_0x5ee305,{'range':_0x337850});});}['_addThreadToSuggestion'](_0x43198e){const _0x1c842d=_0x43198e['id'],_0x30d77f=this[_0x9ebe('0xb1')][_0x9ebe('0x7')][_0x9ebe('0x24')](_0x9ebe('0x3f'));this[_0x9ebe('0x5a')]['hasCommentThread'](_0x1c842d)||this['_commentsRepository'][_0x9ebe('0xf0')]({'channelId':_0x30d77f,'threadId':_0x1c842d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x574ba1=this['_commentsRepository'][_0x9ebe('0xb7')](_0x1c842d);_0x574ba1[_0x9ebe('0x16')](_0x9ebe('0x6f')),_0x574ba1[_0x9ebe('0x6f')]=!0x1,_0x43198e[_0x9ebe('0x6c')]=_0x574ba1;}[_0x9ebe('0x40')](_0x30ae75,_0x5d3412,_0x552fda,_0x258de4){if(_0x30ae75[_0x9ebe('0x44')]!=_0x5d3412||_0x30ae75[_0x9ebe('0x2d')]!=_0x552fda||_0x30ae75[_0x9ebe('0x106')]['id']!=_0x258de4)throw this['editor']['enableReadOnlyMode'](_0x9ebe('0x7c')),new _0x168803(_0x9ebe('0x7c'),this);}[_0x9ebe('0x88')](_0xc0a97,_0x840b1c){const _0x3ad5c9=_0xc0a97[_0x9ebe('0xe2')]();if(_0x840b1c[_0x9ebe('0xdf')](_0x3ad5c9))_0xc0a97[_0x9ebe('0x3c')]();else{if(_0x3ad5c9[_0x9ebe('0x15')](_0x840b1c)){const _0x502e4c=this[_0x9ebe('0x60')]['createPositionAt'](_0x840b1c[_0x9ebe('0x8f')][_0x9ebe('0x12e')],'end');this[_0x9ebe('0x59')](_0xc0a97,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x3ad5c9[_0x9ebe('0x8f')],_0x502e4c));const _0x414e59=_0x4e3532(),_0x5ca09d=_0xc0a97[_0x9ebe('0x106')]['id'],_0x4a31f6=_0xc0a97[_0x9ebe('0x44')]+':'+_0xc0a97[_0x9ebe('0x2d')];this[_0x9ebe('0x41')]({'id':_0x414e59,'type':_0x4a31f6,'createdAt':new Date(),'authorId':_0x5ca09d,'data':_0xc0a97[_0x9ebe('0x6')],'attributes':_0xc0a97['attributes']});const _0x4d9780=this[_0x9ebe('0x60')][_0x9ebe('0x93')](_0x840b1c[_0x9ebe('0x89')][_0x9ebe('0x10f')],_0x9ebe('0xa8')),_0x32f7f1=this[_0x9ebe('0x60')]['createRange'](_0x4d9780,_0x3ad5c9[_0x9ebe('0x89')]);this[_0x9ebe('0x67')](_0x4a31f6,_0x414e59,_0x5ca09d,_0x32f7f1);}else{if(_0x3ad5c9[_0x9ebe('0xe4')](_0x840b1c[_0x9ebe('0x8f')])){const _0xfce0c0=this[_0x9ebe('0x60')][_0x9ebe('0x93')](_0x840b1c[_0x9ebe('0x8f')][_0x9ebe('0x12e')],'end');this[_0x9ebe('0x59')](_0xc0a97,this[_0x9ebe('0x60')]['createRange'](_0x3ad5c9[_0x9ebe('0x8f')],_0xfce0c0));}else{const _0x29b2c8=this['_model'][_0x9ebe('0x93')](_0x840b1c[_0x9ebe('0x89')][_0x9ebe('0x10f')],_0x9ebe('0xa8'));this[_0x9ebe('0x59')](_0xc0a97,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x29b2c8,_0x3ad5c9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2bf8fd){for(const {suggestion:_0x29ee69,meta:_0x2b40c8}of this[_0x9ebe('0x14')](_0x2bf8fd,_0x9ebe('0x25'))){if(!_0x2b40c8[_0x9ebe('0x4a')])continue;const _0x354d11=_0x29ee69[_0x9ebe('0xb2')]();for(const _0x407c9e of _0x354d11)if(!_0x2bf8fd[_0x9ebe('0xbf')](_0x407c9e)[_0x9ebe('0xb')])return!0x0;}return!0x1;}[_0x9ebe('0x8c')](_0x38c41a){const _0x7f2710=this[_0x9ebe('0xb1')]['plugins'][_0x9ebe('0x24')](_0x9ebe('0x120'))[_0x9ebe('0x7b')](_0x38c41a);if(!_0x7f2710)throw new _0x168803('track-changes-user-not-found',this);return _0x7f2710;}[_0x9ebe('0x74')](_0x3af092){const _0x29c53c=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120')),_0x2799fb=_0x1a7906('external:'+_0x3af092),_0x5423d0=_0x29c53c[_0x9ebe('0x7b')](_0x2799fb);return _0x5423d0||_0x29c53c[_0x9ebe('0xf')]({'id':_0x2799fb,'name':_0x3af092});}[_0x9ebe('0x10e')](_0x5582aa,_0xa5ca2b,_0x357a4b,_0x476e0b,_0xe51e63){const _0x32234c=this['_getAuthorFromId'](_0x476e0b),_0x42d976=this['_suggestionFactory'][_0x9ebe('0xf2')](_0x5582aa,_0xa5ca2b,_0x357a4b,_0x32234c,_0xe51e63,_0x385056=>this['_updateSuggestionData'](_0x357a4b,{'attributes':_0x385056}));return this[_0x9ebe('0x8b')](_0x42d976,_0x9ebe('0x125'),()=>{this[_0x9ebe('0xc2')](_0x357a4b,{'state':'accepted'});},{'priority':_0x9ebe('0xc')}),this[_0x9ebe('0x8b')](_0x42d976,_0x9ebe('0x23'),()=>{this['_updateSuggestionData'](_0x357a4b,{'state':_0x9ebe('0x3')});},{'priority':_0x9ebe('0xc')}),this['_suggestions'][_0x9ebe('0xc4')](_0x357a4b,_0x42d976),this[_0x9ebe('0x105')]['set'](_0x42d976,'notReady'),_0x42d976;}['_splitMarkerName'](_0x50ed47){const _0x36a86d=_0x50ed47['split'](':');return{'group':_0x36a86d[0x0],'type':_0x36a86d[0x1],'subType':_0x36a86d[_0x9ebe('0xb')]>=0x5?_0x36a86d[0x2]:null,'id':_0x36a86d['length']<0x5?_0x36a86d[0x2]:_0x36a86d[0x3],'authorId':_0x36a86d['length']<0x5?_0x36a86d[0x3]:_0x36a86d[0x4],'markerCount':0x6==_0x36a86d[_0x9ebe('0xb')]?_0x36a86d[0x5]:null};}[_0x9ebe('0x113')](_0x4f5469,_0x260262,_0x4263d0){const _0x53eeeb=_0x4f5469[_0x9ebe('0xe2')](),_0x56f15f=_0x53eeeb[_0x9ebe('0x8f')],_0x28545e=_0x53eeeb[_0x9ebe('0x89')];this[_0x9ebe('0x59')](_0x4f5469,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x56f15f,_0x260262));const _0x53e122=_0x4e3532(),_0x572e49=_0x4f5469[_0x9ebe('0x106')]['id'],_0x4783be=_0x4f5469[_0x9ebe('0x44')]+(_0x4f5469[_0x9ebe('0x2d')]?':'+_0x4f5469[_0x9ebe('0x2d')]:'');this[_0x9ebe('0x41')]({'id':_0x53e122,'type':_0x4783be,'createdAt':new Date(),'authorId':_0x572e49,'originalSuggestionId':_0x4f5469['id'],'attributes':_0x4f5469[_0x9ebe('0x128')],'data':_0x4f5469[_0x9ebe('0x6')]}),_0x9ebe('0x92')==_0x4f5469['type']&&(_0x4263d0=this[_0x9ebe('0x60')][_0x9ebe('0x1')](_0x4263d0['parent'])),this[_0x9ebe('0x67')](_0x4783be,_0x53e122,_0x572e49,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x4263d0,_0x28545e));}[_0x9ebe('0x14')](_0x1735f4,_0x434441=null){const _0x13caef=[],_0x24ee41=this[_0x9ebe('0x60')][_0x9ebe('0x3e')],_0x66d5d6=this[_0x9ebe('0xb1')]['plugins'][_0x9ebe('0x24')]('Users')['me'];for(const _0x5a60c8 of this[_0x9ebe('0x5b')]())if(_0x5a60c8['isInContent']&&(!_0x434441||_0x5a60c8[_0x9ebe('0x44')]==_0x434441))for(const _0x576bce of _0x5a60c8[_0x9ebe('0xb2')]()){const _0x3e47cf=_0x1735f4[_0x9ebe('0x8f')][_0x9ebe('0xdf')](_0x576bce[_0x9ebe('0x89')])||_0x1735f4[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x576bce[_0x9ebe('0x8f')]);if(_0x3e47cf||_0x1735f4[_0x9ebe('0xf6')](_0x576bce)){const _0x171b4e=_0x1735f4[_0x9ebe('0x15')](_0x576bce)&&Bt(_0x24ee41,_0x576bce['start'],_0x1735f4),_0xe9392=_0x576bce[_0x9ebe('0x15')](_0x1735f4)&&Bt(_0x24ee41,_0x1735f4[_0x9ebe('0x8f')],_0x576bce);_0x13caef['push']({'suggestion':_0x5a60c8,'meta':{'isOwn':_0x66d5d6==_0x5a60c8[_0x9ebe('0x6a')],'isNextTo':_0x3e47cf,'isInsideObject':_0x171b4e,'containsRangeInObject':_0xe9392}});break;}}return _0x13caef;}[_0x9ebe('0x67')](_0x497407,_0x558580,_0x48bc77,_0x3e6aa2,_0x4f6fe2){this[_0x9ebe('0x60')][_0x9ebe('0x45')](_0x1826c8=>{let _0x1a5c87=_0x9ebe('0x11f')+_0x497407+':'+_0x558580+':'+_0x48bc77;_0x4f6fe2&&(_0x1a5c87=_0x1a5c87+':'+_0x4f6fe2),_0x1826c8[_0x9ebe('0x5d')](_0x1a5c87,{'range':_0x3e6aa2,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x9ebe('0x4')](_0xe8c8c6){const _0x3cf099=_0xe8c8c6[_0x9ebe('0xa5')],_0x52af48=_0xe8c8c6[_0x9ebe('0x7e')];_0xe8c8c6[_0x9ebe('0xa5')]=null,null!=_0x3cf099&&(_0x3cf099['next']=null),_0xe8c8c6['next']=null,null!=_0x52af48&&(_0x52af48[_0x9ebe('0xa5')]=null),_0x9ebe('0xa7')==this['_suggestionState']['get'](_0xe8c8c6)&&(this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0xe8c8c6,_0x9ebe('0x64')),this[_0x9ebe('0xd8')](_0x9ebe('0xd2'),_0xe8c8c6,_0x3cf099,_0x52af48));}[_0x9ebe('0x41')](_0x2355f6){const _0x579196=_0x2355f6['id'],_0x26278d=this[_0x9ebe('0x68')](_0x2355f6);if(this['_adapter']&&this[_0x9ebe('0x54')][_0x9ebe('0x10a')]){const _0x1f1980=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')]['get'](_0x9ebe('0x6b')),_0x575dea=_0x26278d[_0x9ebe('0x91')],_0x28abd7=_0x26278d['subType']?_0x26278d[_0x9ebe('0x44')]+':'+_0x26278d['subType']:_0x26278d[_0x9ebe('0x44')],_0x30358b=this[_0x9ebe('0xb1')][_0x9ebe('0xed')],_0x1dc3b9=_0x1f1980[_0x9ebe('0x104')](_0x447cd7(_0x30358b,_0x9ebe('0xd'))),_0x130faa={'id':_0x579196,'type':_0x28abd7,'hasComments':_0x575dea,'data':_0x2355f6[_0x9ebe('0x6')]||null,'originalSuggestionId':_0x2355f6[_0x9ebe('0x95')]||null,'attributes':_0x26278d[_0x9ebe('0x128')]};this[_0x9ebe('0x54')][_0x9ebe('0x10a')](_0x130faa)[_0x9ebe('0xda')](_0x1de65c=>{_0x26278d[_0x9ebe('0x2e')]=!0x0,_0x1f1980['remove'](_0x1dc3b9),_0x1de65c&&_0x1de65c['createdAt']&&(this[_0x9ebe('0x126')][_0x9ebe('0x24')](_0x579196)['createdAt']=_0x1de65c[_0x9ebe('0x81')]);})[_0x9ebe('0x63')](_0xc13e44=>{throw _0x138b14(_0x9ebe('0x97')),this[_0x9ebe('0xb1')]['model'][_0x9ebe('0xcf')]({'isUndoable':!0x1},()=>{_0x26278d[_0x9ebe('0x23')]();}),_0x26278d[_0x9ebe('0x32')](),this[_0x9ebe('0x126')][_0x9ebe('0x22')](_0x26278d['id']),this['_suggestionState'][_0x9ebe('0x22')](_0x26278d),_0xc13e44;});}return _0x26278d;}['_updateSuggestionData'](_0xf9beec,_0x1432f1){const _0x461b02=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x6b')),_0x364445=this['getSuggestion'](_0xf9beec);if(this[_0x9ebe('0x54')]&&this[_0x9ebe('0x54')][_0x9ebe('0x11')]){if(_0x364445[_0x9ebe('0x2e')]){const _0x5b6c24=_0x461b02[_0x9ebe('0x104')](_0x447cd7(this[_0x9ebe('0xb1')][_0x9ebe('0xed')],'PENDING_ACTION_SUGGESTION'));this[_0x9ebe('0x54')][_0x9ebe('0x11')](_0xf9beec,_0x1432f1)['then'](()=>{_0x461b02[_0x9ebe('0xa4')](_0x5b6c24);});}else _0x364445['on'](_0x9ebe('0xc9'),()=>{this[_0x9ebe('0xc2')](_0xf9beec,_0x1432f1);});}}[_0x9ebe('0xa2')](_0x441c9c){if(!this[_0x9ebe('0x54')]||!this[_0x9ebe('0x54')]['getSuggestion'])throw new _0x168803('track-changes-adapter-missing-getsuggestion',this);return this[_0x9ebe('0x54')]['getSuggestion'](_0x441c9c);}['_handleNewSuggestionMarker'](_0x35d4c4){const {id:_0xb7fe99,type:_0x3dcf29,subType:_0x1049a5,authorId:_0x1d473c}=this[_0x9ebe('0x134')](_0x35d4c4),_0x44e33=this[_0x9ebe('0x126')]['get'](_0xb7fe99)||this[_0x9ebe('0x10e')](_0x3dcf29,_0x1049a5,_0xb7fe99,_0x1d473c,{});switch(this[_0x9ebe('0x40')](_0x44e33,_0x3dcf29,_0x1049a5,_0x1d473c),this[_0x9ebe('0x105')][_0x9ebe('0x24')](_0x44e33)){case'notReady':this[_0x9ebe('0xa2')](_0xb7fe99)[_0x9ebe('0xda')](_0x4da716=>{let _0x564cf2=Promise[_0x9ebe('0xb4')]();_0x4da716['hasComments']&&(_0x564cf2=this[_0x9ebe('0x5a')][_0x9ebe('0xe1')]({'channelId':this[_0x9ebe('0xb1')][_0x9ebe('0x7')]['get'](_0x9ebe('0x3f')),'threadId':_0xb7fe99})),_0x564cf2['then'](()=>{this[_0x9ebe('0x68')](_0x4da716)[_0x9ebe('0x2e')]=!0x0;});}),this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x44e33,_0x9ebe('0x112'));break;case _0x9ebe('0x64'):this[_0x9ebe('0xc2')](_0xb7fe99,{'state':_0x9ebe('0xc0')});case _0x9ebe('0x8d'):this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x44e33,'ready'),this[_0x9ebe('0xd8')]('suggestionLoaded',_0x44e33);break;case _0x9ebe('0xa7'):this[_0x9ebe('0xd8')](_0x9ebe('0x70'),_0x44e33);}return _0x44e33[_0x9ebe('0x27')](_0x35d4c4),_0x44e33;}[_0x9ebe('0x108')](_0x5e2bba){const _0x7b66e8=Array[_0x9ebe('0x130')](_0x5e2bba)[_0x9ebe('0x80')](_0x5266d4=>!_0x5266d4[_0x9ebe('0x12f')]),_0x509850=this[_0x9ebe('0x5b')]({'skipNotAttached':!0x0})[_0x9ebe('0x80')](_0xac6b0c=>!_0xac6b0c[_0x9ebe('0x12f')]),_0x4ba002=_0x509850['filter'](_0x1ac8ba=>!_0x5e2bba[_0x9ebe('0x4c')](_0x1ac8ba)),_0x4be11d=new Map(_0x509850[_0x9ebe('0xb9')](_0x41bc01=>[_0x41bc01,this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x41bc01[_0x9ebe('0x44')],_0x41bc01[_0x9ebe('0x2d')],_0x9ebe('0xe'))])),_0x34cae1=new Map(_0x509850['map'](_0x4f1ecf=>[_0x4f1ecf,_0x4f1ecf[_0x9ebe('0xe2')]()])),_0x55de06=new Set(),_0x989dd4=new Set();for(let _0x545427=0x0;_0x545427<_0x7b66e8[_0x9ebe('0xb')];_0x545427++)_0x4c968a(_0x7b66e8[_0x545427],_0x7b66e8,_0x545427+0x1);for(let _0xb1c128=0x0;_0xb1c128<_0x7b66e8[_0x9ebe('0xb')];_0xb1c128++)_0x4c968a(_0x7b66e8[_0xb1c128],_0x4ba002,0x0);for(let _0x59a94d=0x0;_0x59a94d<_0x7b66e8[_0x9ebe('0xb')];_0x59a94d++){const _0xad8d9c=_0x7b66e8[_0x59a94d];!_0x989dd4['has'](_0xad8d9c)&&_0xad8d9c[_0x9ebe('0xa5')]&&(_0xad8d9c['previous'][_0x9ebe('0x7e')]===_0xad8d9c&&(_0xad8d9c[_0x9ebe('0xa5')]['next']=null),_0xad8d9c[_0x9ebe('0xa5')]=null),!_0x55de06['has'](_0xad8d9c)&&_0xad8d9c[_0x9ebe('0x7e')]&&(_0xad8d9c[_0x9ebe('0x7e')][_0x9ebe('0xa5')]===_0xad8d9c&&(_0xad8d9c[_0x9ebe('0x7e')][_0x9ebe('0xa5')]=null),_0xad8d9c['next']=null);}function _0x4c968a(_0x436b46,_0x5a234e,_0x51c6f5){for(let _0x2a404e=_0x51c6f5;_0x2a404e<_0x5a234e[_0x9ebe('0xb')];_0x2a404e++){const _0x1594d6=_0x1e8a93(_0x436b46,_0x5a234e[_0x2a404e]);_0x1594d6&&(_0x1594d6[0x0][_0x9ebe('0x7e')]=_0x1594d6[0x1],_0x1594d6[0x1]['previous']=_0x1594d6[0x0],_0x55de06[_0x9ebe('0x104')](_0x1594d6[0x0]),_0x989dd4['add'](_0x1594d6[0x1]));}}function _0x1e8a93(_0xd62c37,_0x3c529e){if(_0xd62c37[_0x9ebe('0x6a')]['id']!==_0x3c529e[_0x9ebe('0x6a')]['id'])return null;const _0x5e214d=_0x4be11d[_0x9ebe('0x24')](_0xd62c37)(_0xd62c37,_0x3c529e,_0x34cae1[_0x9ebe('0x24')](_0xd62c37),_0x34cae1[_0x9ebe('0x24')](_0x3c529e));if(!_0x5e214d)return null;return _0x4be11d['get'](_0x3c529e)(_0xd62c37,_0x3c529e,_0x34cae1['get'](_0xd62c37),_0x34cae1[_0x9ebe('0x24')](_0x3c529e))?_0x5e214d[0x1][_0x9ebe('0x6c')]&&_0x5e214d[0x1][_0x9ebe('0x6c')][_0x9ebe('0xb')]?null:_0x5e214d:null;}}['_joinWithAdjacentSuggestions'](_0x599ee5){const _0x184e70=Array[_0x9ebe('0x130')](_0x599ee5),_0x558913=this[_0x9ebe('0x5b')]({'skipNotAttached':!0x0}),_0x559008=_0x558913[_0x9ebe('0x80')](_0x1a321c=>!_0x599ee5[_0x9ebe('0x4c')](_0x1a321c)),_0x1f7692=new Map(_0x184e70[_0x9ebe('0xb9')](_0x20a8c3=>[_0x20a8c3,this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x20a8c3[_0x9ebe('0x44')],_0x20a8c3['subType'],_0x9ebe('0x10b'))])),_0x504299=new Map(_0x558913[_0x9ebe('0xb9')](_0xeb3b9e=>[_0xeb3b9e,_0xeb3b9e[_0x9ebe('0xb2')]()]));for(let _0x3d7572=0x0;_0x3d7572<_0x184e70[_0x9ebe('0xb')];_0x3d7572++){if(_0x250e12(this,_0x184e70[_0x3d7572],_0x184e70,_0x3d7572+0x1))return!0x0;}for(let _0x545b78=0x0;_0x545b78<_0x184e70['length'];_0x545b78++){if(_0x250e12(this,_0x184e70[_0x545b78],_0x559008,0x0))return!0x0;}return!0x1;function _0x250e12(_0x474be8,_0x5044b0,_0xd61e07,_0x2e46a3){for(let _0x35268f=_0x2e46a3;_0x35268f<_0xd61e07['length'];_0x35268f++){const _0xf67a38=_0xd61e07[_0x35268f];if(_0xf67a38[_0x9ebe('0x44')]!==_0x5044b0['type']||_0xf67a38['author']['id']!==_0x5044b0[_0x9ebe('0x6a')]['id']||_0xf67a38[_0x9ebe('0x2d')]!==_0x5044b0[_0x9ebe('0x2d')])continue;const _0x569e21=_0x1f7692[_0x9ebe('0x24')](_0x5044b0),_0x16ceb4=_0x504299[_0x9ebe('0x24')](_0x5044b0),_0x54c5bf=_0x504299[_0x9ebe('0x24')](_0xf67a38),_0x50789b=_0x5044b0[_0x9ebe('0x6c')]&&_0x5044b0[_0x9ebe('0x6c')][_0x9ebe('0xb')],_0x57eeed=_0xf67a38[_0x9ebe('0x6c')]&&_0xf67a38['commentThread']['length'];if(!_0x50789b&&_0x569e21(_0x54c5bf,_0x16ceb4))return _0x474be8[_0x9ebe('0x35')](_0xf67a38,_0x5044b0),_0x504299[_0x9ebe('0x22')](_0x5044b0),!0x0;if(!_0x57eeed&&_0x569e21(_0x16ceb4,_0x54c5bf))return _0x474be8[_0x9ebe('0x35')](_0x5044b0,_0xf67a38),_0x504299[_0x9ebe('0x22')](_0xf67a38),!0x0;}return!0x1;}}[_0x9ebe('0x35')](_0x492ca3,_0x376621){if(_0x492ca3[_0x9ebe('0x12f')])for(const _0x28cbe1 of _0x376621[_0x9ebe('0xb2')]())_0x492ca3[_0x9ebe('0x138')](_0x28cbe1);else{const _0x441c34=_0x376621[_0x9ebe('0xe2')]()['end'];this[_0x9ebe('0x59')](_0x492ca3,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x492ca3[_0x9ebe('0xe2')]()[_0x9ebe('0x8f')],_0x441c34));}_0x376621[_0x9ebe('0x3c')]();}}class Ct{constructor(_0x381fad){this['_editor']=_0x381fad,this[_0x9ebe('0x60')]=_0x381fad[_0x9ebe('0x86')],this[_0x9ebe('0x37')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x9ebe('0xf8')]();}[_0x9ebe('0xf2')](_0x499c80,_0x590090,_0x19a853,_0x388168,_0x312bf1,_0xe93442){return new _0x428cce(this[_0x9ebe('0x60')],{'type':_0x499c80,'subType':_0x590090,'id':_0x19a853,'author':_0x388168,'creator':_0x388168,'attributes':_0x312bf1,'onAttributesChange':_0xe93442,'onAccept':(..._0x11bf41)=>this[_0x9ebe('0x9a')](_0x499c80,_0x590090,_0x9ebe('0x125'))(..._0x11bf41),'onDiscard':(..._0x55a0b1)=>this['getSuggestionCallback'](_0x499c80,_0x590090,_0x9ebe('0x23'))(..._0x55a0b1)});}['registerCustomCallback'](_0x6f4da5,_0x4af981,_0x4a48fd,_0x59ee11){const _0x1b438d=_0x6f4da5+':'+_0x4af981+':'+_0x4a48fd;this[_0x9ebe('0x37')][_0x9ebe('0xc4')](_0x1b438d,_0x59ee11);}['getSuggestionCallback'](_0x98bca6,_0x458d05,_0xb21553){const _0x208abc=_0x98bca6+':'+_0x458d05+':'+_0xb21553;return this['_customCallbacks'][_0x9ebe('0x24')](_0x208abc)||this[_0x9ebe('0x79')]['get'](_0x98bca6+':'+_0xb21553);}[_0x9ebe('0xf8')](){const _0x23a7bf=()=>{},_0x38fc84=_0x37ec89=>{_0x37ec89['sort']((_0x1a3294,_0x2f6be9)=>_0x1a3294[_0x9ebe('0x8f')]['isBefore'](_0x2f6be9[_0x9ebe('0x8f')])?0x1:-0x1),this[_0x9ebe('0x60')][_0x9ebe('0x45')](_0x1218cb=>{for(const _0x214d74 of _0x37ec89){let _0x4107c4;_0x4107c4=_0x214d74[_0x9ebe('0x89')]['isAtEnd']&&_0x214d74[_0x9ebe('0x89')][_0x9ebe('0x10f')]==_0x214d74['start'][_0x9ebe('0x1b')]?_0x1218cb[_0x9ebe('0x18')](_0x214d74[_0x9ebe('0x8f')][_0x9ebe('0x1b')],'on'):_0x1218cb['createSelection'](_0x214d74),this[_0x9ebe('0x60')][_0x9ebe('0xaf')](_0x4107c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x100030=(_0x8c1151,_0x7a42fe)=>{this[_0x9ebe('0x60')]['change'](_0x4a4c22=>{const {commandName:_0x1d29b0,commandParams:_0x5b76c1=[]}=_0x7a42fe,_0x85367f=_0x8c1151[_0x9ebe('0xb9')](_0x43cb13=>(_t(_0x43cb13)&&(_0x43cb13=this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x43cb13[_0x9ebe('0x89')])),_0x43cb13))[_0x9ebe('0x80')](_0x5b7ace=>_0x9ebe('0x3d')!==_0x5b7ace['root']['rootName']);if(_0x85367f['length']<0x1)return;const _0x107007=Array[_0x9ebe('0x130')](this[_0x9ebe('0x60')][_0x9ebe('0x5')][_0x9ebe('0x8e')][_0x9ebe('0xb2')]())[_0x9ebe('0xb9')](_0x5bcafa=>_0x5ea0ee[_0x9ebe('0xba')](_0x5bcafa));_0x4a4c22['setSelection'](_0x85367f);for(const _0x4b474a of this[_0x9ebe('0x38')][_0x9ebe('0x135')][_0x9ebe('0x135')]())_0x4b474a[_0x9ebe('0xfb')]();_0x5b76c1[_0x9ebe('0x66')]({'forceDefaultExecution':!0x0}),this[_0x9ebe('0x38')]['execute'](_0x1d29b0,..._0x5b76c1);const _0xc8de5f=_0x107007[_0x9ebe('0x80')](_0x390476=>_0x9ebe('0x3d')!=_0x390476[_0x9ebe('0xc3')][_0x9ebe('0x4e')]);_0xc8de5f[_0x9ebe('0xb')]>0x0&&_0x4a4c22['setSelection'](_0xc8de5f);for(const _0x51e3b6 of _0x107007)_0x51e3b6['detach']();});},_0x182017=(_0x4595fe,_0x54f2b7)=>0x1==_0x4595fe[_0x9ebe('0xb')]&&0x1==_0x54f2b7['length']&&_0x4595fe[0x0][_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x54f2b7[0x0][_0x9ebe('0x8f')]),_0x5aa73b=(_0x3a21ef,_0x7d9864,_0x279aac,_0x586ebb)=>xt(_0x3a21ef,_0x7d9864,_0x279aac,_0x586ebb,this[_0x9ebe('0x60')])?[_0x3a21ef,_0x7d9864]:xt(_0x7d9864,_0x3a21ef,_0x586ebb,_0x279aac,this['_model'])?[_0x7d9864,_0x3a21ef]:null;this['_defaultCallbacks'][_0x9ebe('0xc4')]('insertion:accept',_0x23a7bf),this[_0x9ebe('0x79')]['set'](_0x9ebe('0x39'),_0x38fc84),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xfe'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x42'),_0x5aa73b),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x9e'),_0x38fc84),this[_0x9ebe('0x79')]['set'](_0x9ebe('0x5c'),_0x23a7bf),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x82'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xc5'),_0x5aa73b),this['_defaultCallbacks'][_0x9ebe('0xc4')](_0x9ebe('0xde'),_0x100030),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x111'),_0x23a7bf),this['_defaultCallbacks'][_0x9ebe('0xc4')](_0x9ebe('0x109'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')]('formatInline:chain',_0x23a7bf),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x47'),_0x100030),this['_defaultCallbacks'][_0x9ebe('0xc4')](_0x9ebe('0x84'),_0x23a7bf),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xa3'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xea'),_0x23a7bf);}}function Bt(_0x2fa1b4,_0xd81d7a,_0x53a342){for(const _0xfdff08 of _0xd81d7a[_0x9ebe('0x10f')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xfdff08[_0x9ebe('0xc3')]==_0xfdff08)return!0x1;if(!_0x53a342[_0x9ebe('0x1a')](_0xfdff08))return!0x1;if(_0x2fa1b4[_0x9ebe('0x30')](_0xfdff08)||_0x2fa1b4['isLimit'](_0xfdff08))return!0x0;}return!0x1;}function _t(_0x274bc7){return _0x274bc7['end'][_0x9ebe('0x10f')]==_0x274bc7['start']['nodeAfter']&&_0x274bc7[_0x9ebe('0x89')]['isAtStart'];}function Mt(_0x548384,_0x570d83,_0x283cc8,_0x59533b){const _0xf4566d=_0x168be8=>!_0x168be8[_0x9ebe('0x124')]['is'](_0x9ebe('0xae'))&&!_0x59533b[_0x9ebe('0x30')](_0x168be8[_0x9ebe('0x124')]),_0x556a3b=_0x548384[_0x9ebe('0x8f')][_0x9ebe('0x62')](_0xf4566d),_0x5a2e2a=_0x548384['end'][_0x9ebe('0x62')](_0xf4566d,{'direction':_0x9ebe('0x9b')});return(!_0x548384[_0x9ebe('0x8f')][_0x9ebe('0xdf')](_0x556a3b)||!_0x548384[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x5a2e2a))&&(_0x556a3b['isBefore'](_0x5a2e2a)?_0x283cc8[_0x9ebe('0xe0')](_0x570d83,{'range':_0x283cc8[_0x9ebe('0x11c')](_0x556a3b,_0x5a2e2a)}):_0x283cc8[_0x9ebe('0xc8')](_0x570d83),!0x0);}function $t(_0x50d2c5){return _0x1a7906(_0x50d2c5);}function Nt(_0x30ec7c){const _0x27a4a4=_0x30ec7c[_0x9ebe('0x8f')]['nodeAfter'];return _0x27a4a4&&_0x27a4a4['is']('element');}function Rt(_0x316e4e,_0x48d6bf){const _0x418b7d=_0x48d6bf['schema']['isObject'](_0x316e4e)||_0x48d6bf[_0x9ebe('0x3e')][_0x9ebe('0xe6')](_0x316e4e);return _0x48d6bf[_0x9ebe('0x11c')](_0x48d6bf[_0x9ebe('0x93')](_0x316e4e,_0x9ebe('0x9f')),_0x418b7d?_0x48d6bf[_0x9ebe('0x7a')](_0x316e4e):_0x48d6bf['createPositionAt'](_0x316e4e,_0x9ebe('0x89')));}function xt(_0x3fda4b,_0x17681f,_0x30746e,_0x588e27,_0x2ef021){if(_0x30746e[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x588e27[_0x9ebe('0x8f')]))return!0x0;if(_0x3fda4b['type']!=_0x17681f['type'])return!0x1;if(!_0x30746e[_0x9ebe('0x89')][_0x9ebe('0xb8')](_0x588e27[_0x9ebe('0x8f')]))return!0x1;const _0xaa25d8=_0x2ef021[_0x9ebe('0x11c')](_0x30746e[_0x9ebe('0x89')],_0x588e27['start'])[_0x9ebe('0xbd')]();for(const _0x1d7ea5 of _0xaa25d8)if([_0x9ebe('0x11e'),_0x9ebe('0xd6')][_0x9ebe('0x129')](_0x1d7ea5[_0x9ebe('0x44')])&&_0x2ef021[_0x9ebe('0x3e')]['isLimit'](_0x1d7ea5[_0x9ebe('0x124')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36f4=['has','EditorAnnotations','registerAnnotation','CommentsUI','isOn','_initializeController','commandName','getSuggestion','isMultiRange','pluginName','requires','suggestion-','value','_suggestionToController','editor','stopListening','_updateController','from','isDirty','button','remove','getByInnerView','descriptionParts','isInContent','innerView','comments.editorConfig','size','buttonView','change:activeAnnotations','Discard\x20all\x20suggestions','CommentsRepository','actionView','CommentView','discardButton','getAllAdjacentSuggestions','editing','TrackChangesEditing','destroy','arrowView','delete','Track\x20changes','length','_destroyController','_descriptionFactory','define','comments.maxCommentsWhenCollapsed','createCommentThreadController','listenTo','commentThread','activeMarkers','addSourceCollector','change:previous','_viewToController','Accept\x20all\x20selected\x20suggestions','suggestionLoaded','comments.maxThreadTotalWeight','getDescriptions','addComment','_refreshActiveMarkers','separator','createAnnotation','isEnabled','view','Annotations','add','_handleSuggestionControllerDelayed','_createUIButton','activeAnnotations','TrackChangesUI','get','set','hasSuggestion','_handleControllerBuffer','getJoined','reduce','head','discardSelectedSuggestions','_disableComments','refreshSelectedViews','SuggestionThreadView','previous','map','unbind','init','suggestionChanged','locale','execute','keys','focus','switchbutton','values','suggestionUnloaded','getFirstRange','source','_annotationViews','bind','type','model','acceptSelectedSuggestions','trackChanges.SuggestionThreadView','commands','trackChanges','plugins','createAnnotationView','Accept\x20all\x20suggestions','push','toMany','getMarkers'];(function(_0x313d64,_0x36f45f){const _0x3f751f=function(_0xac24ac){while(--_0xac24ac){_0x313d64['push'](_0x313d64['shift']());}};_0x3f751f(++_0x36f45f);}(_0x36f4,0x133));const _0x3f75=function(_0x313d64,_0x36f45f){_0x313d64=_0x313d64-0x0;let _0x3f751f=_0x36f4[_0x313d64];return _0x3f751f;};import{Plugin as _0x22ce4c}from'ckeditor5/src/core';import{Collection as _0x3b1209}from'ckeditor5/src/utils';import{Model as _0xbc0774,SplitButtonView as _0x4181ce,createDropdown as _0xf6037a,addListToDropdown as _0x29c764}from'ckeditor5/src/ui';import{Users as _0xb86ca7,getDateTimeFormatter as _0x53a538,getAllMarkersDomElementsSorted as _0x53d969}from'ckeditor5-collaboration/src/collaboration-core';import _0x45e6f8 from'./trackchangesediting';import _0x2f353c from'./ui/suggestioncontroller';import _0x12a1da from'./ui/view/suggestionthreadview';import{getTranslation as _0xee3a58}from'./utils/common-translations';import _0x4a014a from'../theme/icons/track-changes.svg';export default class d extends _0x22ce4c{static get[_0x3f75('0x1b')](){return[_0x45e6f8,_0xb86ca7,_0x3f75('0x2f'),_0x3f75('0x50'),_0x3f75('0x12')];}static get[_0x3f75('0x1a')](){return _0x3f75('0x55');}constructor(_0x4126fa){super(_0x4126fa),this[_0x3f75('0x1e')]=new Map(),this[_0x3f75('0x45')]=new Map(),this[_0x3f75('0x3')]=new Map(),this[_0x3f75('0x59')]=new Map();const _0x588324=this['editor']['config'];_0x588324[_0x3f75('0x3d')](_0x3f75('0x8'),_0x12a1da),_0x588324[_0x3f75('0x3d')]('trackChanges.disableComments',!0x1),this[_0x3f75('0x5e')]=_0x588324[_0x3f75('0x56')]('trackChanges.disableComments');}[_0x3f75('0x52')](_0x741916,_0x4d082f){0x0===this[_0x3f75('0x59')][_0x3f75('0x2b')]&&setTimeout(()=>{for(const [_0x414b06,_0x4063eb]of this['_handleControllerBuffer']){const _0x1eb9c5=this[_0x3f75('0x1e')]['has'](_0x414b06);_0x1eb9c5||_0x4063eb?_0x1eb9c5&&_0x4063eb&&this['_destroyController'](_0x414b06):this[_0x3f75('0x16')](_0x414b06);}this[_0x3f75('0x1f')]['plugins'][_0x3f75('0x56')](_0x3f75('0x12'))[_0x3f75('0x5f')](),this['_refreshActiveMarkers'](),this[_0x3f75('0x59')]['clear']();},0xa),this[_0x3f75('0x59')]['set'](_0x741916,_0x4d082f);}[_0x3f75('0x64')](){const _0x49d757=this[_0x3f75('0x1f')],_0x543599=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x2be0a5=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x3d0dc3=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')]('EditorAnnotations'),_0x56e9f4=_0x49d757['plugins'][_0x3f75('0x56')](_0x3f75('0x2f'));_0x49d757['ui']['componentFactory']['add']('trackChanges',_0x47a898=>this[_0x3f75('0x53')](_0x47a898)),_0x3d0dc3[_0x3f75('0x43')](()=>{const _0x78e04=[];for(const [_0x2f77ba,_0x307b3f]of Array[_0x3f75('0x22')](this[_0x3f75('0x1e')])){const _0x502aa2=_0x2f77ba['getAllAdjacentSuggestions'](),_0x25c7e5=[];for(const _0x5de521 of _0x502aa2){if(!_0x5de521[_0x3f75('0x28')])continue;if(_0x5de521[_0x3f75('0x19')]){_0x25c7e5[_0x3f75('0xe')](..._0x5de521['getRanges']());continue;}const _0x34269e=_0x5de521[_0x3f75('0x1')]();if(_0x25c7e5[_0x3f75('0x3a')]>0x0){const _0x50b19b=_0x25c7e5[0x0][_0x3f75('0x5a')](_0x34269e);if(_0x50b19b){_0x25c7e5[0x0]=_0x50b19b;continue;}}_0x25c7e5[_0x3f75('0xe')](_0x34269e);}_0x78e04[_0x3f75('0xe')]([_0x307b3f[_0x3f75('0x4f')],_0x25c7e5]);}return _0x78e04;}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x47'),(_0x2615a1,_0x30ea28)=>{this[_0x3f75('0x40')](_0x30ea28,_0x3f75('0x44'),(_0x3eab2a,_0x1971af,_0x4e7247,_0x3fb13a)=>{_0x30ea28[_0x3f75('0x28')]&&(null==_0x4e7247?(this[_0x3f75('0x21')](_0x3fb13a['head']),this[_0x3f75('0x52')](_0x30ea28,!0x1)):(this[_0x3f75('0x21')](_0x4e7247[_0x3f75('0x5c')]),this[_0x3f75('0x52')](_0x30ea28,!0x0)));}),null===_0x30ea28[_0x3f75('0x61')]?this[_0x3f75('0x52')](_0x30ea28,!0x1):this[_0x3f75('0x21')](_0x30ea28[_0x3f75('0x5c')]);}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x0'),(_0x42e142,_0x195230,_0x150d51)=>{this[_0x3f75('0x20')](_0x195230,'change:previous'),this[_0x3f75('0x59')][_0x3f75('0x38')](_0x195230);const _0x45c745=_0x150d51?_0x150d51[_0x3f75('0x5c')]:_0x195230,_0x1135e0=this['_suggestionToController'][_0x3f75('0x56')](_0x45c745);null!==_0x150d51&&this[_0x3f75('0x21')](_0x45c745),null===_0x150d51&&_0x1135e0&&this[_0x3f75('0x3b')](_0x195230);}),this['listenTo'](_0x543599,_0x3f75('0x65'),(_0xe00b04,_0x50ab48)=>{this[_0x3f75('0x21')](_0x50ab48);}),this['listenTo'](_0x2be0a5,_0x3f75('0x2d'),()=>{this[_0x3f75('0x4b')]();}),this[_0x3f75('0x40')](_0x56e9f4,_0x3f75('0x4a'),(_0xd0f1fd,{threadId:_0x12a07a,isFromAdapter:_0x1f642b})=>{if(_0x1f642b||!_0x543599[_0x3f75('0x58')](_0x12a07a))return;const _0x538ae6=_0x543599[_0x3f75('0x18')](_0x12a07a);this[_0x3f75('0x1e')]['get'](_0x538ae6)[_0x3f75('0x4f')][_0x3f75('0x69')]();},{'priority':'lowest'});}[_0x3f75('0x4b')](){const _0x446d29=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x8fc63=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x43c26c=Array[_0x3f75('0x22')](_0x446d29[_0x3f75('0x54')],_0x1b108e=>_0x1b108e[_0x3f75('0x29')])['filter'](_0xaef36b=>this[_0x3f75('0x45')][_0x3f75('0x11')](_0xaef36b)),_0x260d98=[];for(const _0x1ab33c of _0x43c26c){const _0x58d3e8=this[_0x3f75('0x45')]['get'](_0x1ab33c)[_0x3f75('0x6')]['getAllAdjacentSuggestions']();_0x260d98[_0x3f75('0xe')](..._0x58d3e8[_0x3f75('0x5b')]((_0xbd6249,_0x41254d)=>[..._0xbd6249,..._0x41254d['getMarkerNames']()],[]));}_0x8fc63[_0x3f75('0x42')]=_0x260d98;}['_createUIButton'](_0xdf3e11){const _0x5829bd=_0xf6037a(_0xdf3e11,_0x4181ce),_0x2220cf=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0x3f75('0xa')),_0x456b36=_0xee3a58(_0xdf3e11,_0x3f75('0x39'));_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x57')]({'tooltip':_0x456b36,'label':_0x456b36,'icon':_0x4a014a}),_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x4')](_0x3f75('0x15'))['to'](_0x2220cf,_0x3f75('0x1d')),_0x5829bd[_0x3f75('0x2c')]['on'](_0x3f75('0x67'),()=>{_0x2220cf['execute'](),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();});const _0x46102a=new _0x3b1209(),_0x5508a2=[{'type':_0x3f75('0x6a'),'model':{'withText':!0x0,'label':_0x456b36,'commandName':_0x3f75('0xa')}},{'type':'separator'},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0xd')),'commandName':'acceptAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x46')),'commandName':_0x3f75('0x7')}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x2e')),'commandName':'discardAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3f75('0x5d')}}];for(const _0x45860c of _0x5508a2){let _0x55f4c1={'type':_0x3f75('0x4c')};if(_0x45860c[_0x3f75('0x6')]){const _0xb49240=new _0xbc0774(_0x45860c['model']),_0xdbe8c1=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0xb49240[_0x3f75('0x17')]);_0xb49240[_0x3f75('0x4')](_0x3f75('0x15'),'isEnabled')['to'](_0xdbe8c1,_0x3f75('0x1d'),_0x3f75('0x4e')),_0x55f4c1={'type':_0x45860c[_0x3f75('0x5')],'model':_0xb49240};}_0x46102a['add'](_0x55f4c1);}_0x29c764(_0x5829bd,_0x46102a);const _0x3058f3=_0x5508a2['filter'](_0xb49c06=>null!=_0xb49c06[_0x3f75('0x6')])[_0x3f75('0x62')](_0x4c13a4=>this[_0x3f75('0x1f')][_0x3f75('0x9')]['get'](_0x4c13a4[_0x3f75('0x6')][_0x3f75('0x17')])),_0x286117=_0x5829bd[_0x3f75('0x2c')];return _0x286117['actionView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117['arrowView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117[_0x3f75('0x30')]['bind']('isEnabled')['to'](_0x2220cf,'isEnabled'),_0x286117[_0x3f75('0x37')][_0x3f75('0x4')](_0x3f75('0x4e'))[_0x3f75('0xf')](_0x3058f3,_0x3f75('0x4e'),(..._0x154681)=>_0x154681['some'](_0x359252=>_0x359252)),_0x5829bd['on']('execute',_0x2267d3=>{this['editor'][_0x3f75('0x67')](_0x2267d3[_0x3f75('0x2')][_0x3f75('0x17')]),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();}),_0x5829bd;}['_initializeController'](_0x21b04a){const _0x2c3732=this[_0x3f75('0x1f')],_0x5e54dd=_0x2c3732['config'],_0x41a6c8=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')]('Annotations'),_0x4bd52a=_0x2c3732['plugins'][_0x3f75('0x56')](_0x3f75('0x2f')),_0x3f4280=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x12')),_0x566809=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0xb86ca7)['me'],_0x1b4d47=_0x5e54dd['get'](_0x3f75('0xa'))[_0x3f75('0x60')],{CommentsListView:_0x5a8c08,CommentThreadInputView:_0x572f5c}=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x14'));let _0x28c234,_0x353264;this[_0x3f75('0x3')][_0x3f75('0x11')](_0x21b04a['id'])?(_0x353264=this[_0x3f75('0x3')][_0x3f75('0x56')](_0x21b04a['id']),_0x28c234=_0x353264['mainView']):(_0x28c234=new _0x1b4d47(_0x2c3732[_0x3f75('0x66')],_0x21b04a,_0x566809,{'disableComments':this['_disableComments'],'editorConfig':_0x5e54dd['get'](_0x3f75('0x2a')),'maxCommentsWhenCollapsed':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x3e')),'maxThreadTotalWeight':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x48')),'maxCommentCharsWhenCollapsed':_0x5e54dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53a538(_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x66'))),'CommentView':_0x5e54dd['get']('comments')[_0x3f75('0x31')],'CommentsListView':_0x5a8c08,'CommentThreadInputView':_0x572f5c}),_0x28c234['acceptButton']['on'](_0x3f75('0x67'),()=>{_0x2c3732['editing'][_0x3f75('0x4f')]['focus']();}),_0x28c234[_0x3f75('0x32')]['on'](_0x3f75('0x67'),()=>{_0x2c3732[_0x3f75('0x34')]['view'][_0x3f75('0x69')]();}),_0x353264=_0x41a6c8[_0x3f75('0xc')](this[_0x3f75('0x1f')]['locale'],_0x28c234),_0x353264[_0x3f75('0x4')]('isDirty')['to'](_0x28c234,_0x3f75('0x23')),_0x353264[_0x3f75('0x4')](_0x3f75('0x3a'))['to'](_0x28c234),_0x353264['bind'](_0x3f75('0x5'))['to'](_0x28c234,'type',_0xe98f46=>_0x3f75('0x1c')+_0xe98f46),this[_0x3f75('0x3')][_0x3f75('0x57')](_0x21b04a['id'],_0x353264));const _0x4ca5f8=_0x4bd52a[_0x3f75('0x3f')](_0x21b04a[_0x3f75('0x41')],_0x28c234),_0x529ff2=new _0x2f353c(_0x2c3732,_0x21b04a,_0x28c234,_0x4ca5f8),_0x40771c=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x312f75=>_0x312f75[_0x3f75('0x28')]);_0x28c234[_0x3f75('0x27')]=_0x2c3732[_0x3f75('0xb')]['get'](_0x3f75('0x35'))[_0x3f75('0x3c')][_0x3f75('0x49')](_0x40771c),this[_0x3f75('0x1e')][_0x3f75('0x57')](_0x21b04a,_0x529ff2),this[_0x3f75('0x45')][_0x3f75('0x57')](_0x28c234,_0x529ff2);const _0x119c51=_0x41a6c8[_0x3f75('0x4d')]({'view':_0x353264,'target':()=>{const _0x398ce3=[],_0x58462d=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x576716=>_0x576716[_0x3f75('0x28')]);for(const _0x5e7984 of _0x58462d)_0x398ce3[_0x3f75('0xe')](..._0x5e7984[_0x3f75('0x10')]());return _0x53d969(_0x2c3732[_0x3f75('0x34')],_0x398ce3);},'type':()=>_0x3f75('0x1c')+_0x529ff2['view'][_0x3f75('0x5')]});_0x41a6c8[_0x3f75('0x51')](_0x119c51),_0x3f4280[_0x3f75('0x13')](_0x119c51);}['_destroyController'](_0x4cf77e){const _0x448e06=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x5d81b9=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x4cf77e),_0x4d7a1d=_0x5d81b9[_0x3f75('0x4f')],_0x56dcb0=_0x448e06[_0x3f75('0x26')](_0x4d7a1d);_0x56dcb0&&_0x448e06[_0x3f75('0x25')](_0x56dcb0),this[_0x3f75('0x1e')]['delete'](_0x4cf77e),this['_viewToController']['delete'](_0x4d7a1d),_0x5d81b9[_0x3f75('0x36')]();}[_0x3f75('0x21')](_0x5ec115){if(!_0x5ec115[_0x3f75('0x28')]||!this[_0x3f75('0x1e')][_0x3f75('0x11')](_0x5ec115))return;const _0x2beba1=this[_0x3f75('0x1f')]['plugins']['get']('TrackChangesEditing'),_0x1f9211=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x5ec115),_0x1ff358=_0x5ec115[_0x3f75('0x33')]();_0x1f9211[_0x3f75('0x4f')][_0x3f75('0x27')]=_0x2beba1[_0x3f75('0x3c')][_0x3f75('0x49')](_0x1ff358);}[_0x3f75('0x36')](){for(const _0x53bbbd of this[_0x3f75('0x1e')][_0x3f75('0x68')]())this[_0x3f75('0x3b')](_0x53bbbd);for(const _0x1b5636 of this[_0x3f75('0x3')][_0x3f75('0x6b')]())_0x1b5636['mainView']['destroy']();super[_0x3f75('0x36')]();}}
23
+ const _0x314a=['suggestion-','suggestionLoaded','stopListening','add','Accept\x20all\x20suggestions','has','switchbutton','set','suggestionUnloaded','editor','Discard\x20all\x20selected\x20suggestions','getAllAdjacentSuggestions','separator','getJoined','_updateController','delete','componentFactory','_initializeController','mainView','isMultiRange','registerAnnotation','value','keys','getSuggestion','activeMarkers','focus','config','_viewToController','CommentsUI','_createUIButton','values','EditorAnnotations','Annotations','comments.maxThreadTotalWeight','editing','trackChanges','CommentsRepository','acceptButton','actionView','isOn','_handleControllerBuffer','unbind','trackChanges.disableComments','getFirstRange','discardSelectedSuggestions','clear','source','view','commentThread','createAnnotationView','change:activeAnnotations','isEnabled','getMarkers','map','_refreshActiveMarkers','remove','reduce','button','some','init','model','requires','Track\x20changes','length','TrackChangesEditing','_annotationViews','change:previous','comments.maxCommentCharsWhenCollapsed','_disableComments','isInContent','Accept\x20all\x20selected\x20suggestions','getByInnerView','comments.maxCommentsWhenCollapsed','_destroyController','arrowView','discardAllSuggestions','push','commandName','discardButton','commands','isDirty','SuggestionThreadView','suggestionChanged','getMarkerNames','addComment','from','_handleSuggestionControllerDelayed','destroy','listenTo','buttonView','acceptAllSuggestions','locale','_suggestionToController','activeAnnotations','plugins','size','comments.editorConfig','_descriptionFactory','descriptionParts','type','get','head','execute','define','createAnnotation','filter','hasSuggestion','getRanges','getDescriptions','bind'];(function(_0x4af0d2,_0x314ade){const _0x2c3358=function(_0x532520){while(--_0x532520){_0x4af0d2['push'](_0x4af0d2['shift']());}};_0x2c3358(++_0x314ade);}(_0x314a,0x19f));const _0x2c33=function(_0x4af0d2,_0x314ade){_0x4af0d2=_0x4af0d2-0x0;let _0x2c3358=_0x314a[_0x4af0d2];return _0x2c3358;};import{Plugin as _0x46bf41}from'ckeditor5/src/core';import{Collection as _0x14b3b9}from'ckeditor5/src/utils';import{Model as _0x3e9d15,SplitButtonView as _0x2a5631,createDropdown as _0x1e9d51,addListToDropdown as _0x46aa93}from'ckeditor5/src/ui';import{Users as _0x4e7ee8,getDateTimeFormatter as _0x23102c,getAllMarkersDomElementsSorted as _0x319b1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x55094a from'./trackchangesediting';import _0x20fdc3 from'./ui/suggestioncontroller';import _0x59372c from'./ui/view/suggestionthreadview';import{getTranslation as _0x11c724}from'./utils/common-translations';import _0x1dbc08 from'../theme/icons/track-changes.svg';export default class d extends _0x46bf41{static get[_0x2c33('0x56')](){return[_0x55094a,_0x4e7ee8,_0x2c33('0x3d'),_0x2c33('0x39'),_0x2c33('0x38')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x410ac0){super(_0x410ac0),this[_0x2c33('0x7')]=new Map(),this[_0x2c33('0x34')]=new Map(),this[_0x2c33('0x5a')]=new Map(),this[_0x2c33('0x41')]=new Map();const _0xb723b6=this['editor'][_0x2c33('0x33')];_0xb723b6['define']('trackChanges.SuggestionThreadView',_0x59372c),_0xb723b6[_0x2c33('0x12')]('trackChanges.disableComments',!0x1),this[_0x2c33('0x5d')]=_0xb723b6[_0x2c33('0xf')](_0x2c33('0x43'));}['_handleSuggestionControllerDelayed'](_0x17c74b,_0x342faf){0x0===this[_0x2c33('0x41')][_0x2c33('0xa')]&&setTimeout(()=>{for(const [_0x418d97,_0x124dac]of this['_handleControllerBuffer']){const _0x1372fc=this[_0x2c33('0x7')][_0x2c33('0x1e')](_0x418d97);_0x1372fc||_0x124dac?_0x1372fc&&_0x124dac&&this[_0x2c33('0x62')](_0x418d97):this[_0x2c33('0x2a')](_0x418d97);}this[_0x2c33('0x22')][_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x38'))['refreshSelectedViews'](),this[_0x2c33('0x4f')](),this[_0x2c33('0x41')][_0x2c33('0x46')]();},0xa),this[_0x2c33('0x41')][_0x2c33('0x20')](_0x17c74b,_0x342faf);}[_0x2c33('0x54')](){const _0x4335e5=this[_0x2c33('0x22')],_0x52859d=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')]('TrackChangesEditing'),_0x29a21e=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x39')),_0x429d3a=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x38')),_0x59411a=_0x4335e5[_0x2c33('0x9')]['get']('CommentsRepository');_0x4335e5['ui'][_0x2c33('0x29')][_0x2c33('0x1c')]('trackChanges',_0x3ed7d5=>this[_0x2c33('0x36')](_0x3ed7d5)),_0x429d3a['addSourceCollector'](()=>{const _0x177e06=[];for(const [_0x3e1c26,_0x49a5bf]of Array[_0x2c33('0x0')](this[_0x2c33('0x7')])){const _0x2fd1c5=_0x3e1c26[_0x2c33('0x24')](),_0x14f6e4=[];for(const _0x41cbff of _0x2fd1c5){if(!_0x41cbff['isInContent'])continue;if(_0x41cbff[_0x2c33('0x2c')]){_0x14f6e4[_0x2c33('0x65')](..._0x41cbff[_0x2c33('0x16')]());continue;}const _0x457c7f=_0x41cbff[_0x2c33('0x44')]();if(_0x14f6e4[_0x2c33('0x58')]>0x0){const _0x4b983d=_0x14f6e4[0x0][_0x2c33('0x26')](_0x457c7f);if(_0x4b983d){_0x14f6e4[0x0]=_0x4b983d;continue;}}_0x14f6e4[_0x2c33('0x65')](_0x457c7f);}_0x177e06[_0x2c33('0x65')]([_0x49a5bf[_0x2c33('0x48')],_0x14f6e4]);}return _0x177e06;}),this['listenTo'](_0x52859d,_0x2c33('0x1a'),(_0x537078,_0x414e47)=>{this[_0x2c33('0x3')](_0x414e47,_0x2c33('0x5b'),(_0x5971ed,_0x6d58b4,_0x3826c0,_0x2e2e35)=>{_0x414e47[_0x2c33('0x5e')]&&(null==_0x3826c0?(this[_0x2c33('0x27')](_0x2e2e35[_0x2c33('0x10')]),this[_0x2c33('0x1')](_0x414e47,!0x1)):(this['_updateController'](_0x3826c0['head']),this[_0x2c33('0x1')](_0x414e47,!0x0)));}),null===_0x414e47['previous']?this['_handleSuggestionControllerDelayed'](_0x414e47,!0x1):this[_0x2c33('0x27')](_0x414e47['head']);}),this[_0x2c33('0x3')](_0x52859d,_0x2c33('0x21'),(_0x2e5582,_0x561da5,_0x488073)=>{this[_0x2c33('0x1b')](_0x561da5,'change:previous'),this[_0x2c33('0x41')][_0x2c33('0x28')](_0x561da5);const _0x28bd10=_0x488073?_0x488073[_0x2c33('0x10')]:_0x561da5,_0x1de983=this[_0x2c33('0x7')][_0x2c33('0xf')](_0x28bd10);null!==_0x488073&&this[_0x2c33('0x27')](_0x28bd10),null===_0x488073&&_0x1de983&&this[_0x2c33('0x62')](_0x561da5);}),this[_0x2c33('0x3')](_0x52859d,_0x2c33('0x6b'),(_0x54aed6,_0x86e1dd)=>{this[_0x2c33('0x27')](_0x86e1dd);}),this['listenTo'](_0x29a21e,_0x2c33('0x4b'),()=>{this[_0x2c33('0x4f')]();}),this['listenTo'](_0x59411a,_0x2c33('0x6d'),(_0x27372f,{threadId:_0x55226c,isFromAdapter:_0xfa6bb8})=>{if(_0xfa6bb8||!_0x52859d[_0x2c33('0x15')](_0x55226c))return;const _0x3640a8=_0x52859d[_0x2c33('0x30')](_0x55226c);this[_0x2c33('0x7')][_0x2c33('0xf')](_0x3640a8)[_0x2c33('0x48')][_0x2c33('0x32')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42f47f=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x39')),_0x2658f7=this['editor'][_0x2c33('0x9')]['get'](_0x2c33('0x59')),_0x502da8=Array[_0x2c33('0x0')](_0x42f47f[_0x2c33('0x8')],_0x3522d6=>_0x3522d6['innerView'])[_0x2c33('0x14')](_0x55c7a8=>this['_viewToController'][_0x2c33('0x1e')](_0x55c7a8)),_0x4e069d=[];for(const _0x3ae3c3 of _0x502da8){const _0x4272a4=this[_0x2c33('0x34')]['get'](_0x3ae3c3)[_0x2c33('0x55')][_0x2c33('0x24')]();_0x4e069d[_0x2c33('0x65')](..._0x4272a4[_0x2c33('0x51')]((_0xeacbae,_0x22735f)=>[..._0xeacbae,..._0x22735f[_0x2c33('0x6c')]()],[]));}_0x2658f7[_0x2c33('0x31')]=_0x4e069d;}[_0x2c33('0x36')](_0x347d98){const _0x1879f6=_0x1e9d51(_0x347d98,_0x2a5631),_0x2a3edc=this[_0x2c33('0x22')][_0x2c33('0x68')]['get'](_0x2c33('0x3c')),_0x56220e=_0x11c724(_0x347d98,_0x2c33('0x57'));_0x1879f6[_0x2c33('0x4')][_0x2c33('0x20')]({'tooltip':_0x56220e,'label':_0x56220e,'icon':_0x1dbc08}),_0x1879f6[_0x2c33('0x4')][_0x2c33('0x18')]('isOn')['to'](_0x2a3edc,_0x2c33('0x2e')),_0x1879f6['buttonView']['on'](_0x2c33('0x11'),()=>{_0x2a3edc[_0x2c33('0x11')](),this['editor'][_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();});const _0x5e4bbe=new _0x14b3b9(),_0x5810ef=[{'type':_0x2c33('0x1f'),'model':{'withText':!0x0,'label':_0x56220e,'commandName':_0x2c33('0x3c')}},{'type':_0x2c33('0x25')},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x1d')),'commandName':_0x2c33('0x5')}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x5f')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,'Discard\x20all\x20suggestions'),'commandName':_0x2c33('0x64')}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x23')),'commandName':_0x2c33('0x45')}}];for(const _0x13a67f of _0x5810ef){let _0x19fd06={'type':_0x2c33('0x25')};if(_0x13a67f[_0x2c33('0x55')]){const _0x3a083f=new _0x3e9d15(_0x13a67f[_0x2c33('0x55')]),_0x522e13=this[_0x2c33('0x22')][_0x2c33('0x68')][_0x2c33('0xf')](_0x3a083f['commandName']);_0x3a083f[_0x2c33('0x18')](_0x2c33('0x40'),'isEnabled')['to'](_0x522e13,'value','isEnabled'),_0x19fd06={'type':_0x13a67f[_0x2c33('0xe')],'model':_0x3a083f};}_0x5e4bbe['add'](_0x19fd06);}_0x46aa93(_0x1879f6,_0x5e4bbe);const _0x1f6f35=_0x5810ef['filter'](_0x55a90d=>null!=_0x55a90d[_0x2c33('0x55')])[_0x2c33('0x4e')](_0x26f513=>this[_0x2c33('0x22')][_0x2c33('0x68')][_0x2c33('0xf')](_0x26f513[_0x2c33('0x55')][_0x2c33('0x66')])),_0x5be2db=_0x1879f6[_0x2c33('0x4')];return _0x5be2db[_0x2c33('0x3f')][_0x2c33('0x42')](_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x63')]['unbind'](_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x3f')]['bind'](_0x2c33('0x4c'))['to'](_0x2a3edc,_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x63')][_0x2c33('0x18')](_0x2c33('0x4c'))['toMany'](_0x1f6f35,'isEnabled',(..._0x27ebe1)=>_0x27ebe1[_0x2c33('0x53')](_0x4e258c=>_0x4e258c)),_0x1879f6['on'](_0x2c33('0x11'),_0x3f4473=>{this['editor']['execute'](_0x3f4473[_0x2c33('0x47')]['commandName']),this[_0x2c33('0x22')]['editing']['view'][_0x2c33('0x32')]();}),_0x1879f6;}[_0x2c33('0x2a')](_0x4a2306){const _0x509fb6=this['editor'],_0x13f96e=_0x509fb6[_0x2c33('0x33')],_0x1bde4f=_0x509fb6['plugins']['get'](_0x2c33('0x39')),_0x5427c1=_0x509fb6[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x3d')),_0x2163d2=_0x509fb6['plugins']['get'](_0x2c33('0x38')),_0x579ffd=_0x509fb6['plugins'][_0x2c33('0xf')](_0x4e7ee8)['me'],_0xccc4e5=_0x13f96e['get'](_0x2c33('0x3c'))[_0x2c33('0x6a')],{CommentsListView:_0x577341,CommentThreadInputView:_0x15748e}=_0x509fb6[_0x2c33('0x9')]['get'](_0x2c33('0x35'));let _0x5086c2,_0xf8c7b9;this[_0x2c33('0x5a')]['has'](_0x4a2306['id'])?(_0xf8c7b9=this['_annotationViews'][_0x2c33('0xf')](_0x4a2306['id']),_0x5086c2=_0xf8c7b9[_0x2c33('0x2b')]):(_0x5086c2=new _0xccc4e5(_0x509fb6[_0x2c33('0x6')],_0x4a2306,_0x579ffd,{'disableComments':this[_0x2c33('0x5d')],'editorConfig':_0x13f96e[_0x2c33('0xf')](_0x2c33('0xb')),'maxCommentsWhenCollapsed':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x61')),'maxThreadTotalWeight':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x3a')),'maxCommentCharsWhenCollapsed':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x5c')),'formatDateTime':_0x23102c(_0x13f96e['get'](_0x2c33('0x6'))),'CommentView':_0x13f96e[_0x2c33('0xf')]('comments')['CommentView'],'CommentsListView':_0x577341,'CommentThreadInputView':_0x15748e}),_0x5086c2[_0x2c33('0x3e')]['on']('execute',()=>{_0x509fb6[_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();}),_0x5086c2[_0x2c33('0x67')]['on'](_0x2c33('0x11'),()=>{_0x509fb6[_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();}),_0xf8c7b9=_0x1bde4f[_0x2c33('0x4a')](this[_0x2c33('0x22')][_0x2c33('0x6')],_0x5086c2),_0xf8c7b9[_0x2c33('0x18')](_0x2c33('0x69'))['to'](_0x5086c2,_0x2c33('0x69')),_0xf8c7b9['bind'](_0x2c33('0x58'))['to'](_0x5086c2),_0xf8c7b9['bind']('type')['to'](_0x5086c2,_0x2c33('0xe'),_0x2ededc=>'suggestion-'+_0x2ededc),this[_0x2c33('0x5a')][_0x2c33('0x20')](_0x4a2306['id'],_0xf8c7b9));const _0x4def72=_0x5427c1['createCommentThreadController'](_0x4a2306[_0x2c33('0x49')],_0x5086c2),_0x1b0859=new _0x20fdc3(_0x509fb6,_0x4a2306,_0x5086c2,_0x4def72),_0x264da1=_0x4a2306[_0x2c33('0x24')]()[_0x2c33('0x14')](_0x1eb431=>_0x1eb431['isInContent']);_0x5086c2[_0x2c33('0xd')]=_0x509fb6['plugins']['get'](_0x2c33('0x59'))[_0x2c33('0xc')][_0x2c33('0x17')](_0x264da1),this['_suggestionToController'][_0x2c33('0x20')](_0x4a2306,_0x1b0859),this[_0x2c33('0x34')][_0x2c33('0x20')](_0x5086c2,_0x1b0859);const _0x344628=_0x1bde4f[_0x2c33('0x13')]({'view':_0xf8c7b9,'target':()=>{const _0x4a2650=[],_0x27d72c=_0x4a2306[_0x2c33('0x24')]()['filter'](_0x498679=>_0x498679['isInContent']);for(const _0xf5d4b2 of _0x27d72c)_0x4a2650[_0x2c33('0x65')](..._0xf5d4b2[_0x2c33('0x4d')]());return _0x319b1f(_0x509fb6[_0x2c33('0x3b')],_0x4a2650);},'type':()=>_0x2c33('0x19')+_0x1b0859[_0x2c33('0x48')][_0x2c33('0xe')]});_0x1bde4f[_0x2c33('0x1c')](_0x344628),_0x2163d2[_0x2c33('0x2d')](_0x344628);}[_0x2c33('0x62')](_0x17e484){const _0x4b251f=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x39')),_0x25eede=this[_0x2c33('0x7')][_0x2c33('0xf')](_0x17e484),_0x36d19f=_0x25eede[_0x2c33('0x48')],_0x2e21c8=_0x4b251f[_0x2c33('0x60')](_0x36d19f);_0x2e21c8&&_0x4b251f[_0x2c33('0x50')](_0x2e21c8),this[_0x2c33('0x7')][_0x2c33('0x28')](_0x17e484),this[_0x2c33('0x34')]['delete'](_0x36d19f),_0x25eede[_0x2c33('0x2')]();}[_0x2c33('0x27')](_0x34027b){if(!_0x34027b[_0x2c33('0x5e')]||!this[_0x2c33('0x7')][_0x2c33('0x1e')](_0x34027b))return;const _0x6e597c=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x59')),_0x867320=this[_0x2c33('0x7')]['get'](_0x34027b),_0x18f10d=_0x34027b[_0x2c33('0x24')]();_0x867320[_0x2c33('0x48')][_0x2c33('0xd')]=_0x6e597c[_0x2c33('0xc')][_0x2c33('0x17')](_0x18f10d);}[_0x2c33('0x2')](){for(const _0x2b8648 of this[_0x2c33('0x7')][_0x2c33('0x2f')]())this[_0x2c33('0x62')](_0x2b8648);for(const _0xa0f6c3 of this[_0x2c33('0x5a')][_0x2c33('0x37')]())_0xa0f6c3[_0x2c33('0x2b')][_0x2c33('0x2')]();super[_0x2c33('0x2')]();}}