@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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 (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe09d=['data','getMultiRangeId','filter','get','commentThread','head','onAccept','accept','isIntersecting','getMarkerNames','setAttribute','_onAttributesChange','addMarkerName','isInContent','@external','_model','getContainedElement','createdAt','subType','decorate','from','removeAttribute','hasComments','onDiscard','_onDiscard','_onAccept','start','discard','isMultiRange','_saved','map','authoredAt','getMarkers','type','push','removeMarker','reduce','addRange','set','creator','length','getItems','previous','getFirstRange','delete','isIntersectingWithRange','author','getRanges','add','attributes','change','getFirstMarker','clear','removeMarkers','getRange','markers','getAllAdjacentSuggestions','substr','next','toJSON','_markerNames'];(function(_0xe930e4,_0xe09d72){const _0x529c9b=function(_0x1ce8a1){while(--_0x1ce8a1){_0xe930e4['push'](_0xe930e4['shift']());}};_0x529c9b(++_0xe09d72);}(_0xe09d,0xa1));const _0x529c=function(_0xe930e4,_0xe09d72){_0xe930e4=_0xe930e4-0x0;let _0x529c9b=_0xe09d[_0xe930e4];return _0x529c9b;};import{Element as _0x541b78}from'ckeditor5/src/engine';import{ObservableMixin as _0xee0577,uid as _0x442869}from'ckeditor5/src/utils';import{cloneDeep as _0x25179b,isEqual as _0x40aa69,set as _0x546c0,unset as _0x354c44}from'lodash-es';export default class u extends _0xee0577(){constructor(_0x11579d,_0x59bf42){super(),this['id']=_0x59bf42['id'],this[_0x529c('0x37')]=_0x59bf42[_0x529c('0x37')],this[_0x529c('0x28')]=_0x59bf42[_0x529c('0x28')]||null,this['author']=_0x59bf42['author'],this[_0x529c('0x0')]=_0x59bf42[_0x529c('0x0')]||_0x59bf42[_0x529c('0x7')],this['isExternal']=Boolean(_0x59bf42['attributes']&&_0x59bf42[_0x529c('0xa')][_0x529c('0x24')]),this[_0x529c('0x16')]=null,this[_0x529c('0x25')]=_0x11579d,this[_0x529c('0x2f')]=_0x59bf42[_0x529c('0x1c')],this['_onDiscard']=_0x59bf42[_0x529c('0x2d')],this[_0x529c('0x21')]=_0x59bf42['onAttributesChange'],this[_0x529c('0x15')]=new Set(),this['createdAt']=null,this[_0x529c('0x3c')](_0x529c('0x35'),null),this[_0x529c('0x3c')]('attributes',_0x59bf42[_0x529c('0xa')]||{}),this[_0x529c('0x3c')](_0x529c('0x3'),null),this['set'](_0x529c('0x13'),null),this[_0x529c('0x3c')](_0x529c('0x1a'),null),this[_0x529c('0x3c')](_0x529c('0x33'),!0x1),this['decorate'](_0x529c('0x1d')),this[_0x529c('0x29')](_0x529c('0x31'));}get[_0x529c('0x1b')](){let _0x441f24=this;for(;_0x441f24[_0x529c('0x3')];)_0x441f24=_0x441f24[_0x529c('0x3')];return _0x441f24;}get[_0x529c('0x2c')](){return!!this[_0x529c('0x1a')]&&this['commentThread'][_0x529c('0x1')]>0x0;}get[_0x529c('0x32')](){if(0x0==this[_0x529c('0x15')]['size'])return!0x1;return 0x6==Array[_0x529c('0x2a')](this[_0x529c('0x15')])[0x0]['split'](':')[_0x529c('0x1')];}get[_0x529c('0x23')](){return null!==this[_0x529c('0xc')]();}['addMarkerName'](_0x43cd7f){this[_0x529c('0x15')][_0x529c('0x9')](_0x43cd7f);}[_0x529c('0x1f')](){return Array[_0x529c('0x2a')](this[_0x529c('0x15')]);}['getMarkers'](){return this[_0x529c('0x1f')]()['map'](_0x47ea67=>this[_0x529c('0x25')][_0x529c('0x10')][_0x529c('0x19')](_0x47ea67))[_0x529c('0x18')](_0x59f622=>_0x59f622);}['getFirstMarker'](){return this[_0x529c('0x36')]()[0x0]||null;}['removeMarkers'](){this[_0x529c('0x25')][_0x529c('0xb')](_0x50fba3=>{for(const _0xccb878 of this[_0x529c('0x36')]())_0x50fba3['removeMarker'](_0xccb878);}),this[_0x529c('0x15')][_0x529c('0xd')]();}[_0x529c('0x39')](_0x32b1fa){this['_model'][_0x529c('0xb')](_0x10e8ca=>{_0x10e8ca[_0x529c('0x39')](_0x32b1fa);}),this['_markerNames'][_0x529c('0x5')](_0x32b1fa);}[_0x529c('0x3b')](_0x4a00d6){const _0x336f58='suggestion:'+this[_0x529c('0x37')]+':'+this[_0x529c('0x28')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x529c('0x17')]();this[_0x529c('0x22')](_0x336f58),this[_0x529c('0x25')][_0x529c('0xb')](_0x684208=>{_0x684208['addMarker'](_0x336f58,{'range':_0x4a00d6,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x529c('0x6')](_0x3b9c46){for(const _0x3c4a6a of this[_0x529c('0x8')]())if(_0x3c4a6a[_0x529c('0x1e')](_0x3b9c46))return!0x0;return!0x1;}[_0x529c('0x8')](){return this[_0x529c('0x36')]()[_0x529c('0x34')](_0x4eab4f=>_0x4eab4f[_0x529c('0xf')]());}[_0x529c('0x2')](){return this[_0x529c('0x8')]()[_0x529c('0x3a')]((_0x56c68e,_0x32eb99)=>[..._0x56c68e,..._0x32eb99[_0x529c('0x2')]()],[]);}[_0x529c('0x4')](){var _0x1a501d;return(null===(_0x1a501d=this['getFirstMarker']())||void 0x0===_0x1a501d?void 0x0:_0x1a501d[_0x529c('0xf')]())||null;}[_0x529c('0x26')](){const _0x4bc14e=this[_0x529c('0x8')]();if(0x1!=_0x4bc14e[_0x529c('0x1')])return null;const _0x5487ed=_0x4bc14e[0x0],_0x594347=_0x5487ed[_0x529c('0x30')]['nodeAfter'],_0x1fac73=_0x5487ed['end']['nodeBefore'];return _0x594347 instanceof _0x541b78?_0x594347!=_0x1fac73?null:_0x594347:null;}[_0x529c('0x1d')](){this[_0x529c('0x2f')](this[_0x529c('0x8')](),this[_0x529c('0x16')],this[_0x529c('0xa')]),this[_0x529c('0xe')]();}[_0x529c('0x31')](){this[_0x529c('0x2e')](this['getRanges'](),this[_0x529c('0x16')],this['attributes']),this[_0x529c('0xe')]();}[_0x529c('0x11')](){const _0x2df097=[];let _0x582768=this[_0x529c('0x1b')];for(;_0x582768;)_0x2df097[_0x529c('0x38')](_0x582768),_0x582768=_0x582768[_0x529c('0x13')];return _0x2df097;}[_0x529c('0x20')](_0x40e298,_0x5050af){const _0x774733=_0x25179b(this[_0x529c('0xa')]);_0x546c0(_0x774733,_0x40e298,_0x5050af),_0x40aa69(_0x774733,this[_0x529c('0xa')])||(this[_0x529c('0xa')]=_0x774733,this[_0x529c('0x21')](_0x774733));}[_0x529c('0x2b')](_0x57631e){const _0x389109=_0x25179b(this['attributes']);_0x354c44(_0x389109,_0x57631e),_0x40aa69(_0x389109,this[_0x529c('0xa')])||(this[_0x529c('0xa')]=_0x389109,this[_0x529c('0x21')](this[_0x529c('0xa')]));}[_0x529c('0x14')](){return{'id':this['id'],'type':this[_0x529c('0x28')]?this[_0x529c('0x37')]+':'+this[_0x529c('0x28')]:this[_0x529c('0x37')],'authorId':this[_0x529c('0x0')]['id'],'createdAt':this[_0x529c('0x27')],'hasComments':this[_0x529c('0x2c')],'data':this[_0x529c('0x16')],'attributes':this[_0x529c('0xa')]};}static['getMultiRangeId'](){return _0x442869()[_0x529c('0x12')](0x1,0x5);}}
23
+ const _0x2670=['_model','_markerNames','createdAt','reduce','_onAttributesChange','subType','onAccept','commentThread','getMarkers','getMultiRangeId','getMarkerNames','filter','nodeBefore','removeMarker','map','getFirstRange','type','removeMarkers','getRange','attributes','isMultiRange','head','split','authoredAt','removeAttribute','onDiscard','previous','getFirstMarker','nodeAfter','decorate','change','onAttributesChange','isIntersecting','addMarker','accept','discard','author','addRange','delete','getContainedElement','length','getItems','_onDiscard','addMarkerName','getRanges','start','set','data','creator','size','from','clear','_onAccept','substr','push','get','next','hasComments','isInContent','add','_saved'];(function(_0x2442c9,_0x2670d6){const _0x1ba1c3=function(_0x1e00b5){while(--_0x1e00b5){_0x2442c9['push'](_0x2442c9['shift']());}};_0x1ba1c3(++_0x2670d6);}(_0x2670,0xfc));const _0x1ba1=function(_0x2442c9,_0x2670d6){_0x2442c9=_0x2442c9-0x0;let _0x1ba1c3=_0x2670[_0x2442c9];return _0x1ba1c3;};import{Element as _0x228824}from'ckeditor5/src/engine';import{ObservableMixin as _0x90fd1e,uid as _0x590aa7}from'ckeditor5/src/utils';import{cloneDeep as _0x531ecb,isEqual as _0x42d840,set as _0x54e476,unset as _0x3d4148}from'lodash-es';export default class u extends _0x90fd1e(){constructor(_0x181495,_0x5748f8){super(),this['id']=_0x5748f8['id'],this['type']=_0x5748f8[_0x1ba1('0x8')],this[_0x1ba1('0x3a')]=_0x5748f8['subType']||null,this[_0x1ba1('0x1c')]=_0x5748f8[_0x1ba1('0x1c')],this[_0x1ba1('0x28')]=_0x5748f8[_0x1ba1('0x28')]||_0x5748f8[_0x1ba1('0x1c')],this['isExternal']=Boolean(_0x5748f8[_0x1ba1('0xb')]&&_0x5748f8[_0x1ba1('0xb')]['@external']),this[_0x1ba1('0x27')]=null,this['_model']=_0x181495,this[_0x1ba1('0x2c')]=_0x5748f8[_0x1ba1('0x3b')],this[_0x1ba1('0x22')]=_0x5748f8[_0x1ba1('0x11')],this[_0x1ba1('0x39')]=_0x5748f8[_0x1ba1('0x17')],this[_0x1ba1('0x36')]=new Set(),this['createdAt']=null,this[_0x1ba1('0x26')](_0x1ba1('0xf'),null),this[_0x1ba1('0x26')]('attributes',_0x5748f8['attributes']||{}),this[_0x1ba1('0x26')](_0x1ba1('0x12'),null),this[_0x1ba1('0x26')](_0x1ba1('0x30'),null),this[_0x1ba1('0x26')]('commentThread',null),this[_0x1ba1('0x26')](_0x1ba1('0x34'),!0x1),this[_0x1ba1('0x15')](_0x1ba1('0x1a')),this[_0x1ba1('0x15')]('discard');}get[_0x1ba1('0xd')](){let _0x2165fd=this;for(;_0x2165fd[_0x1ba1('0x12')];)_0x2165fd=_0x2165fd[_0x1ba1('0x12')];return _0x2165fd;}get['hasComments'](){return!!this[_0x1ba1('0x3c')]&&this[_0x1ba1('0x3c')][_0x1ba1('0x20')]>0x0;}get[_0x1ba1('0xc')](){if(0x0==this[_0x1ba1('0x36')][_0x1ba1('0x29')])return!0x1;return 0x6==Array[_0x1ba1('0x2a')](this[_0x1ba1('0x36')])[0x0][_0x1ba1('0xe')](':')['length'];}get[_0x1ba1('0x32')](){return null!==this[_0x1ba1('0x13')]();}[_0x1ba1('0x23')](_0x466feb){this[_0x1ba1('0x36')][_0x1ba1('0x33')](_0x466feb);}['getMarkerNames'](){return Array[_0x1ba1('0x2a')](this['_markerNames']);}[_0x1ba1('0x0')](){return this[_0x1ba1('0x2')]()[_0x1ba1('0x6')](_0x4d0d08=>this[_0x1ba1('0x35')]['markers'][_0x1ba1('0x2f')](_0x4d0d08))[_0x1ba1('0x3')](_0x36082a=>_0x36082a);}[_0x1ba1('0x13')](){return this['getMarkers']()[0x0]||null;}[_0x1ba1('0x9')](){this[_0x1ba1('0x35')]['change'](_0x14691c=>{for(const _0xdf97ba of this['getMarkers']())_0x14691c['removeMarker'](_0xdf97ba);}),this[_0x1ba1('0x36')][_0x1ba1('0x2b')]();}['removeMarker'](_0x482713){this[_0x1ba1('0x35')][_0x1ba1('0x16')](_0x582773=>{_0x582773[_0x1ba1('0x5')](_0x482713);}),this[_0x1ba1('0x36')][_0x1ba1('0x1e')](_0x482713);}[_0x1ba1('0x1d')](_0x364123){const _0x5e37f0='suggestion:'+this[_0x1ba1('0x8')]+':'+this[_0x1ba1('0x3a')]+':'+this['id']+':'+this[_0x1ba1('0x28')]['id']+':'+u[_0x1ba1('0x1')]();this[_0x1ba1('0x23')](_0x5e37f0),this[_0x1ba1('0x35')]['change'](_0x1292df=>{_0x1292df[_0x1ba1('0x19')](_0x5e37f0,{'range':_0x364123,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x381a86){for(const _0x5e2c76 of this[_0x1ba1('0x24')]())if(_0x5e2c76[_0x1ba1('0x18')](_0x381a86))return!0x0;return!0x1;}[_0x1ba1('0x24')](){return this[_0x1ba1('0x0')]()['map'](_0x58ba09=>_0x58ba09[_0x1ba1('0xa')]());}[_0x1ba1('0x21')](){return this['getRanges']()[_0x1ba1('0x38')]((_0xda3fed,_0x3ac2e8)=>[..._0xda3fed,..._0x3ac2e8['getItems']()],[]);}[_0x1ba1('0x7')](){var _0x504410;return(null===(_0x504410=this[_0x1ba1('0x13')]())||void 0x0===_0x504410?void 0x0:_0x504410[_0x1ba1('0xa')]())||null;}[_0x1ba1('0x1f')](){const _0x324434=this['getRanges']();if(0x1!=_0x324434['length'])return null;const _0x2544fd=_0x324434[0x0],_0x3ced3e=_0x2544fd[_0x1ba1('0x25')][_0x1ba1('0x14')],_0x35a0b7=_0x2544fd['end'][_0x1ba1('0x4')];return _0x3ced3e instanceof _0x228824?_0x3ced3e!=_0x35a0b7?null:_0x3ced3e:null;}[_0x1ba1('0x1a')](){this[_0x1ba1('0x2c')](this[_0x1ba1('0x24')](),this['data'],this[_0x1ba1('0xb')]),this[_0x1ba1('0x9')]();}[_0x1ba1('0x1b')](){this[_0x1ba1('0x22')](this['getRanges'](),this[_0x1ba1('0x27')],this[_0x1ba1('0xb')]),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x3ed4c6=[];let _0x5704a0=this[_0x1ba1('0xd')];for(;_0x5704a0;)_0x3ed4c6[_0x1ba1('0x2e')](_0x5704a0),_0x5704a0=_0x5704a0[_0x1ba1('0x30')];return _0x3ed4c6;}['setAttribute'](_0x3f5598,_0x5b2f40){const _0x1a6003=_0x531ecb(this[_0x1ba1('0xb')]);_0x54e476(_0x1a6003,_0x3f5598,_0x5b2f40),_0x42d840(_0x1a6003,this[_0x1ba1('0xb')])||(this['attributes']=_0x1a6003,this[_0x1ba1('0x39')](_0x1a6003));}[_0x1ba1('0x10')](_0x165404){const _0xbd39b7=_0x531ecb(this[_0x1ba1('0xb')]);_0x3d4148(_0xbd39b7,_0x165404),_0x42d840(_0xbd39b7,this[_0x1ba1('0xb')])||(this['attributes']=_0xbd39b7,this[_0x1ba1('0x39')](this[_0x1ba1('0xb')]));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this[_0x1ba1('0x8')]+':'+this['subType']:this[_0x1ba1('0x8')],'authorId':this['creator']['id'],'createdAt':this[_0x1ba1('0x37')],'hasComments':this[_0x1ba1('0x31')],'data':this[_0x1ba1('0x27')],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x590aa7()[_0x1ba1('0x2d')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x230a=['$1\x20$2','text','push','remove','indexOf','removeContainer','*Insert:*\x20%0','_itemLabelsCallbacks','label','_schema','removeEmptyContainer','quantity','type','_addDescriptionItems','_locale','isObject','match','_resolveDescriptionItems','Container','registerElementLabel','length','data','Object','getFirstRange','checkChild','EmptyContainer','removeObject','elementEnd','deletion','replace','REPLACE_TEXT','name','isEmpty','getItemLabel','_customCallbacks','$text','end','elementStart','_itemLabels','item','pop','previousSibling','skip','normal','nextSibling','registerDescriptionCallback','add','element','get','isInContent','ELEMENT_SPACE','function','getWalker','insertion','*Remove:*\x20%0','addContainer','matchingCallback','set'];(function(_0x48286f,_0x230aca){const _0x185b28=function(_0xd6004b){while(--_0xd6004b){_0x48286f['push'](_0x48286f['shift']());}};_0x185b28(++_0x230aca);}(_0x230a,0x193));const _0x185b=function(_0x48286f,_0x230aca){_0x48286f=_0x48286f-0x0;let _0x185b28=_0x230a[_0x48286f];return _0x185b28;};import{getTranslation as _0x573e48}from'./utils/common-translations';import{priorities as _0x5324f9,insertToPriorityArray as _0x3f4fce}from'ckeditor5/src/utils';export default class m{constructor(_0x15a643,_0x97530d){this['_customCallbacks']=[],this[_0x185b('0x29')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x185b('0xc')]=_0x15a643,this[_0x185b('0x11')]=_0x97530d;}['getDescriptions'](_0x4ffa19){const _0x2bd5e6=[];for(let _0x27e343=0x0;_0x27e343<_0x4ffa19[_0x185b('0x17')];_0x27e343++){const _0x6c88f0=_0x4ffa19[_0x27e343];if(!_0x6c88f0[_0x185b('0x34')])continue;let _0x5a2c20=!0x1;for(const _0x32012f of this[_0x185b('0x25')]){const _0x3911c0=_0x32012f(_0x6c88f0);if(_0x3911c0){'type'in _0x3911c0&&_0x2bd5e6[_0x185b('0x5')](_0x3911c0),_0x5a2c20=!0x0;break;}}if(!_0x5a2c20){this['_addDescriptionItems'](_0x2bd5e6,_0x6c88f0);const _0x2a2588=_0x4ffa19[_0x27e343+0x1];if(_0x2a2588&&!_0x6c88f0['getFirstRange']()[_0x185b('0x27')]['isEqual'](_0x2a2588[_0x185b('0x1a')]()['start'])){const _0x1d698d=_0x2bd5e6[_0x2bd5e6[_0x185b('0x17')]-0x1],_0x3cf3db='insertion'==_0x6c88f0[_0x185b('0xf')]?'add':'remove';_0x1d698d&&_0x185b('0x4')==_0x1d698d[_0x185b('0xf')]&&(_0x1d698d[_0x3cf3db]+='\x0a');}}}return this[_0x185b('0x14')](_0x2bd5e6);}[_0x185b('0x30')](_0x3f63dd){this[_0x185b('0x25')]['push'](_0x3f63dd);}[_0x185b('0x16')](_0x395ca3,_0x768c50,_0x261b78=_0x5324f9[_0x185b('0x2e')]){_0x185b('0x36')==typeof _0x395ca3?_0x3f4fce(this[_0x185b('0xa')],{'matchingCallback':_0x395ca3,'label':_0x768c50,'priority':_0x261b78}):this[_0x185b('0x29')][_0x185b('0x2')](_0x395ca3,_0x768c50);}[_0x185b('0x24')](_0x59cc72,_0x11d431=0x1){let _0x25b3d2;for(const _0xda4a61 of this[_0x185b('0xa')])if(_0xda4a61[_0x185b('0x1')](_0x59cc72)){_0x25b3d2=_0xda4a61[_0x185b('0xb')];break;}return _0x25b3d2||(_0x25b3d2=this[_0x185b('0x29')][_0x185b('0x33')](_0x59cc72[_0x185b('0x22')])),_0x25b3d2?_0x25b3d2(_0x11d431):0x1!==_0x11d431?_0x11d431+'\x20'+_0x59cc72['name']+'s':''+_0x59cc72[_0x185b('0x22')];}[_0x185b('0x10')](_0x2337db,_0x1d416b){const _0x164e16=_0x1d416b[_0x185b('0x1a')]()[_0x185b('0x37')](),_0x2e5ec3=_0x185b('0x38')==_0x1d416b[_0x185b('0xf')]?_0x185b('0x31'):_0x185b('0x6');for(const _0x331e5f of _0x164e16){const _0xa9612f=_0x331e5f[_0x185b('0x2a')],_0x2852bf=_0x2337db[_0x2337db[_0x185b('0x17')]-0x1];if(_0xa9612f['is']('$textProxy'))_0x2852bf&&_0x2852bf['type'][_0x185b('0x7')](_0x185b('0x15'))>-0x1&&_0x2337db['pop'](),_0x2852bf&&_0x185b('0x4')==_0x2852bf['type']?_0x2852bf[_0x2e5ec3]+=_0xa9612f[_0x185b('0x18')]:_0x2337db[_0x185b('0x5')]({'type':_0x185b('0x4'),'add':'add'==_0x2e5ec3?_0xa9612f[_0x185b('0x18')]:'','remove':_0x185b('0x6')==_0x2e5ec3?_0xa9612f[_0x185b('0x18')]:''});else{if(this[_0x185b('0xc')][_0x185b('0x12')](_0xa9612f)){const _0xc6fad2=_0xa9612f;if(_0x2852bf&&_0x2852bf[_0x185b('0xf')]['indexOf'](_0x185b('0x15'))>-0x1&&_0x2337db[_0x185b('0x2b')](),'elementEnd'==_0x331e5f[_0x185b('0xf')])continue;_0x2852bf&&_0x2852bf[_0x185b('0xf')]==_0x2e5ec3+_0x185b('0x19')&&_0x2852bf['element'][_0x185b('0x22')]==_0xc6fad2['name']?_0x2852bf[_0x185b('0xe')]++:_0x2337db[_0x185b('0x5')]({'type':_0x2e5ec3+_0x185b('0x19'),'element':_0xc6fad2,'quantity':0x1}),_0x164e16[_0x185b('0x2d')](_0x1b087f=>!(_0x185b('0x1e')==_0x1b087f[_0x185b('0xf')]&&_0x1b087f[_0x185b('0x2a')]==_0xa9612f));}else{if(this['_schema'][_0x185b('0x1b')](_0xa9612f,_0x185b('0x26'))||_0xa9612f['is'](_0x185b('0x32'),'softBreak')){const _0x21e6c7=_0xa9612f;if(_0x185b('0x31')==_0x2e5ec3&&_0x185b('0x28')==_0x331e5f[_0x185b('0xf')]||_0x185b('0x6')==_0x2e5ec3&&'elementEnd'==_0x331e5f[_0x185b('0xf')])continue;if(_0x2852bf&&-0x1==_0x2852bf[_0x185b('0xf')]['indexOf'](_0x185b('0x15'))){'text'==_0x2852bf[_0x185b('0xf')]&&(_0x2852bf[_0x2e5ec3]+='\x0a');continue;}let _0xbe500e;if(_0xbe500e='add'==_0x2e5ec3?_0x21e6c7[_0x185b('0x2f')]&&!this['_schema'][_0x185b('0x12')](_0x21e6c7['nextSibling'])?_0x21e6c7[_0x185b('0x2f')]:null:_0x21e6c7[_0x185b('0x2c')]&&!this[_0x185b('0xc')]['isObject'](_0x21e6c7[_0x185b('0x2c')])?_0x21e6c7[_0x185b('0x2c')]:null,_0x21e6c7[_0x185b('0x23')]||_0xbe500e&&_0xbe500e[_0x185b('0x23')]){const _0x50ef12=_0xbe500e&&_0xbe500e['isEmpty']?_0xbe500e:_0x21e6c7;_0x2852bf&&_0x2852bf[_0x185b('0xf')]==_0x2e5ec3+_0x185b('0x1c')&&_0x2852bf[_0x185b('0x32')][_0x185b('0x22')]==_0x50ef12[_0x185b('0x22')]?_0x2852bf['quantity']++:_0x2337db['push']({'type':_0x2e5ec3+'EmptyContainer','element':_0x50ef12,'quantity':0x1});}else _0x2337db[_0x185b('0x5')]({'type':_0x2e5ec3+_0x185b('0x15'),'element':_0x21e6c7});}}}}}[_0x185b('0x14')](_0x4231e8){const _0x5c987e=this[_0x185b('0x11')],_0x5446c0=[];for(const _0x2167df of _0x4231e8){switch(_0x2167df['type']){case _0x185b('0x4'):if(_0x2167df[_0x185b('0x31')]=_0x2167df[_0x185b('0x31')][_0x185b('0x20')](/(\S)\u000A+(\S)/g,_0x185b('0x3'))['replace'](/\u000A/g,''),_0x2167df[_0x185b('0x6')]=_0x2167df['remove'][_0x185b('0x20')](/(\S)\u000A+(\S)/g,_0x185b('0x3'))['replace'](/\u000A/g,''),''!=_0x2167df[_0x185b('0x31')]&&''!=_0x2167df[_0x185b('0x6')]){_0x5446c0['push']({'type':_0x185b('0x20'),'content':_0x573e48(_0x5c987e,_0x185b('0x21'),['\x22'+_0x2167df['remove']+'\x22','\x22'+_0x2167df[_0x185b('0x31')]+'\x22'])});continue;}if(null!=_0x2167df['add'][_0x185b('0x13')](/^ +$/)){_0x5446c0['push']({'type':_0x185b('0x38'),'content':_0x573e48(_0x5c987e,_0x185b('0x9'),_0x573e48(_0x5c987e,_0x185b('0x35'),_0x2167df[_0x185b('0x31')][_0x185b('0x17')]))});continue;}if(null!=_0x2167df['remove']['match'](/^ +$/)){_0x5446c0[_0x185b('0x5')]({'type':_0x185b('0x1f'),'content':_0x573e48(_0x5c987e,_0x185b('0x39'),_0x573e48(_0x5c987e,_0x185b('0x35'),_0x2167df['remove']['length']))});continue;}if(''!=_0x2167df[_0x185b('0x31')]){_0x5446c0[_0x185b('0x5')]({'type':_0x185b('0x38'),'content':_0x573e48(_0x5c987e,_0x185b('0x9'),'\x22'+_0x2167df[_0x185b('0x31')]+'\x22')});continue;}_0x5446c0[_0x185b('0x5')]({'type':_0x185b('0x1f'),'content':_0x573e48(_0x5c987e,_0x185b('0x39'),'\x22'+_0x2167df[_0x185b('0x6')]+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5446c0[_0x185b('0x5')]({'type':_0x185b('0x38'),'content':_0x573e48(_0x5c987e,_0x185b('0x9'),this['getItemLabel'](_0x2167df[_0x185b('0x32')],_0x2167df[_0x185b('0xe')]))});continue;case _0x185b('0xd'):case _0x185b('0x1d'):_0x5446c0[_0x185b('0x5')]({'type':_0x185b('0x1f'),'content':_0x573e48(_0x5c987e,'*Remove:*\x20%0',this[_0x185b('0x24')](_0x2167df[_0x185b('0x32')],_0x2167df[_0x185b('0xe')]))});continue;case _0x185b('0x0'):_0x5446c0['push']({'type':_0x185b('0x38'),'content':_0x573e48(_0x5c987e,'*Split:*\x20%0',this[_0x185b('0x24')](_0x2167df['element'],_0x2167df[_0x185b('0xe')]))});continue;case _0x185b('0x8'):_0x5446c0[_0x185b('0x5')]({'type':_0x185b('0x1f'),'content':_0x573e48(_0x5c987e,'*Merge:*\x20%0',this[_0x185b('0x24')](_0x2167df['element'],_0x2167df[_0x185b('0xe')]))});continue;}_0x5446c0[_0x185b('0x5')](_0x2167df);}return _0x5446c0;}}
23
+ const _0x3fb5=['addContainer','*Merge:*\x20%0','indexOf','elementStart','$textProxy','text','set','isObject','getFirstRange','EmptyContainer','Object','_itemLabelsCallbacks','isInContent','_addDescriptionItems','nextSibling','insertion','getWalker','removeObject','$1\x20$2','pop','_itemLabels','_schema','isEmpty','addEmptyContainer','getDescriptions','removeEmptyContainer','name','data','$text','element','*Split:*\x20%0','function','normal','replace','REPLACE_TEXT','deletion','end','remove','addObject','_resolveDescriptionItems','ELEMENT_SPACE','quantity','*Remove:*\x20%0','label','previousSibling','softBreak','length','getItemLabel','elementEnd','_customCallbacks','push','removeContainer','type','get','registerDescriptionCallback','Container','_locale','add','matchingCallback','*Insert:*\x20%0','checkChild','item'];(function(_0xe99edb,_0x3fb5ad){const _0x5173bc=function(_0x37a83f){while(--_0x37a83f){_0xe99edb['push'](_0xe99edb['shift']());}};_0x5173bc(++_0x3fb5ad);}(_0x3fb5,0xa1));const _0x5173=function(_0xe99edb,_0x3fb5ad){_0xe99edb=_0xe99edb-0x0;let _0x5173bc=_0x3fb5[_0xe99edb];return _0x5173bc;};import{getTranslation as _0x30b77e}from'./utils/common-translations';import{priorities as _0x14d8e7,insertToPriorityArray as _0x2bad31}from'ckeditor5/src/utils';export default class m{constructor(_0x4071fa,_0x108c5){this['_customCallbacks']=[],this[_0x5173('0x2d')]=new Map(),this[_0x5173('0x24')]=[],this[_0x5173('0x2e')]=_0x4071fa,this[_0x5173('0x13')]=_0x108c5;}[_0x5173('0x31')](_0x328c67){const _0x579c32=[];for(let _0xc8b7fc=0x0;_0xc8b7fc<_0x328c67[_0x5173('0x9')];_0xc8b7fc++){const _0x55adb7=_0x328c67[_0xc8b7fc];if(!_0x55adb7[_0x5173('0x25')])continue;let _0x49e2cc=!0x1;for(const _0x2ce72a of this['_customCallbacks']){const _0x4e6fe8=_0x2ce72a(_0x55adb7);if(_0x4e6fe8){_0x5173('0xf')in _0x4e6fe8&&_0x579c32[_0x5173('0xd')](_0x4e6fe8),_0x49e2cc=!0x0;break;}}if(!_0x49e2cc){this['_addDescriptionItems'](_0x579c32,_0x55adb7);const _0x22a173=_0x328c67[_0xc8b7fc+0x1];if(_0x22a173&&!_0x55adb7[_0x5173('0x21')]()[_0x5173('0x3d')]['isEqual'](_0x22a173[_0x5173('0x21')]()['start'])){const _0xc051a0=_0x579c32[_0x579c32[_0x5173('0x9')]-0x1],_0x2b161b=_0x5173('0x28')==_0x55adb7['type']?_0x5173('0x14'):'remove';_0xc051a0&&_0x5173('0x1e')==_0xc051a0[_0x5173('0xf')]&&(_0xc051a0[_0x2b161b]+='\x0a');}}}return this[_0x5173('0x2')](_0x579c32);}[_0x5173('0x11')](_0x22aeea){this[_0x5173('0xc')][_0x5173('0xd')](_0x22aeea);}['registerElementLabel'](_0x3adef2,_0x5159a7,_0x1f1f18=_0x14d8e7[_0x5173('0x39')]){_0x5173('0x38')==typeof _0x3adef2?_0x2bad31(this[_0x5173('0x24')],{'matchingCallback':_0x3adef2,'label':_0x5159a7,'priority':_0x1f1f18}):this['_itemLabels'][_0x5173('0x1f')](_0x3adef2,_0x5159a7);}[_0x5173('0xa')](_0x501b2e,_0x6cfe04=0x1){let _0x4de9b5;for(const _0x3d2cca of this[_0x5173('0x24')])if(_0x3d2cca[_0x5173('0x15')](_0x501b2e)){_0x4de9b5=_0x3d2cca[_0x5173('0x6')];break;}return _0x4de9b5||(_0x4de9b5=this['_itemLabels'][_0x5173('0x10')](_0x501b2e[_0x5173('0x33')])),_0x4de9b5?_0x4de9b5(_0x6cfe04):0x1!==_0x6cfe04?_0x6cfe04+'\x20'+_0x501b2e[_0x5173('0x33')]+'s':''+_0x501b2e[_0x5173('0x33')];}[_0x5173('0x26')](_0x37d0dc,_0x2c5689){const _0x44fc38=_0x2c5689[_0x5173('0x21')]()[_0x5173('0x29')](),_0x5ac6b8=_0x5173('0x28')==_0x2c5689[_0x5173('0xf')]?_0x5173('0x14'):_0x5173('0x0');for(const _0x1f5b23 of _0x44fc38){const _0x5429c6=_0x1f5b23['item'],_0x1556f9=_0x37d0dc[_0x37d0dc[_0x5173('0x9')]-0x1];if(_0x5429c6['is'](_0x5173('0x1d')))_0x1556f9&&_0x1556f9[_0x5173('0xf')][_0x5173('0x1b')](_0x5173('0x12'))>-0x1&&_0x37d0dc[_0x5173('0x2c')](),_0x1556f9&&_0x5173('0x1e')==_0x1556f9[_0x5173('0xf')]?_0x1556f9[_0x5ac6b8]+=_0x5429c6['data']:_0x37d0dc[_0x5173('0xd')]({'type':'text','add':_0x5173('0x14')==_0x5ac6b8?_0x5429c6[_0x5173('0x34')]:'','remove':'remove'==_0x5ac6b8?_0x5429c6['data']:''});else{if(this[_0x5173('0x2e')][_0x5173('0x20')](_0x5429c6)){const _0x479ac6=_0x5429c6;if(_0x1556f9&&_0x1556f9['type'][_0x5173('0x1b')](_0x5173('0x12'))>-0x1&&_0x37d0dc[_0x5173('0x2c')](),_0x5173('0xb')==_0x1f5b23[_0x5173('0xf')])continue;_0x1556f9&&_0x1556f9[_0x5173('0xf')]==_0x5ac6b8+_0x5173('0x23')&&_0x1556f9[_0x5173('0x36')][_0x5173('0x33')]==_0x479ac6[_0x5173('0x33')]?_0x1556f9[_0x5173('0x4')]++:_0x37d0dc[_0x5173('0xd')]({'type':_0x5ac6b8+_0x5173('0x23'),'element':_0x479ac6,'quantity':0x1}),_0x44fc38['skip'](_0x432b18=>!(_0x5173('0xb')==_0x432b18[_0x5173('0xf')]&&_0x432b18[_0x5173('0x18')]==_0x5429c6));}else{if(this[_0x5173('0x2e')][_0x5173('0x17')](_0x5429c6,_0x5173('0x35'))||_0x5429c6['is'](_0x5173('0x36'),_0x5173('0x8'))){const _0x11d078=_0x5429c6;if('add'==_0x5ac6b8&&_0x5173('0x1c')==_0x1f5b23[_0x5173('0xf')]||_0x5173('0x0')==_0x5ac6b8&&_0x5173('0xb')==_0x1f5b23[_0x5173('0xf')])continue;if(_0x1556f9&&-0x1==_0x1556f9['type'][_0x5173('0x1b')](_0x5173('0x12'))){_0x5173('0x1e')==_0x1556f9[_0x5173('0xf')]&&(_0x1556f9[_0x5ac6b8]+='\x0a');continue;}let _0x4c9e4b;if(_0x4c9e4b=_0x5173('0x14')==_0x5ac6b8?_0x11d078['nextSibling']&&!this['_schema'][_0x5173('0x20')](_0x11d078[_0x5173('0x27')])?_0x11d078[_0x5173('0x27')]:null:_0x11d078[_0x5173('0x7')]&&!this[_0x5173('0x2e')][_0x5173('0x20')](_0x11d078[_0x5173('0x7')])?_0x11d078[_0x5173('0x7')]:null,_0x11d078[_0x5173('0x2f')]||_0x4c9e4b&&_0x4c9e4b[_0x5173('0x2f')]){const _0x184bfb=_0x4c9e4b&&_0x4c9e4b[_0x5173('0x2f')]?_0x4c9e4b:_0x11d078;_0x1556f9&&_0x1556f9['type']==_0x5ac6b8+_0x5173('0x22')&&_0x1556f9[_0x5173('0x36')][_0x5173('0x33')]==_0x184bfb[_0x5173('0x33')]?_0x1556f9[_0x5173('0x4')]++:_0x37d0dc['push']({'type':_0x5ac6b8+'EmptyContainer','element':_0x184bfb,'quantity':0x1});}else _0x37d0dc[_0x5173('0xd')]({'type':_0x5ac6b8+_0x5173('0x12'),'element':_0x11d078});}}}}}[_0x5173('0x2')](_0x3398e8){const _0x34b0a0=this[_0x5173('0x13')],_0x5362e0=[];for(const _0x5dfae4 of _0x3398e8){switch(_0x5dfae4[_0x5173('0xf')]){case'text':if(_0x5dfae4[_0x5173('0x14')]=_0x5dfae4['add'][_0x5173('0x3a')](/(\S)\u000A+(\S)/g,_0x5173('0x2b'))[_0x5173('0x3a')](/\u000A/g,''),_0x5dfae4[_0x5173('0x0')]=_0x5dfae4[_0x5173('0x0')][_0x5173('0x3a')](/(\S)\u000A+(\S)/g,_0x5173('0x2b'))['replace'](/\u000A/g,''),''!=_0x5dfae4[_0x5173('0x14')]&&''!=_0x5dfae4[_0x5173('0x0')]){_0x5362e0[_0x5173('0xd')]({'type':_0x5173('0x3a'),'content':_0x30b77e(_0x34b0a0,_0x5173('0x3b'),['\x22'+_0x5dfae4[_0x5173('0x0')]+'\x22','\x22'+_0x5dfae4[_0x5173('0x14')]+'\x22'])});continue;}if(null!=_0x5dfae4[_0x5173('0x14')]['match'](/^ +$/)){_0x5362e0['push']({'type':_0x5173('0x28'),'content':_0x30b77e(_0x34b0a0,_0x5173('0x16'),_0x30b77e(_0x34b0a0,_0x5173('0x3'),_0x5dfae4[_0x5173('0x14')][_0x5173('0x9')]))});continue;}if(null!=_0x5dfae4[_0x5173('0x0')]['match'](/^ +$/)){_0x5362e0[_0x5173('0xd')]({'type':_0x5173('0x3c'),'content':_0x30b77e(_0x34b0a0,_0x5173('0x5'),_0x30b77e(_0x34b0a0,_0x5173('0x3'),_0x5dfae4[_0x5173('0x0')][_0x5173('0x9')]))});continue;}if(''!=_0x5dfae4[_0x5173('0x14')]){_0x5362e0[_0x5173('0xd')]({'type':'insertion','content':_0x30b77e(_0x34b0a0,'*Insert:*\x20%0','\x22'+_0x5dfae4[_0x5173('0x14')]+'\x22')});continue;}_0x5362e0[_0x5173('0xd')]({'type':_0x5173('0x3c'),'content':_0x30b77e(_0x34b0a0,'*Remove:*\x20%0','\x22'+_0x5dfae4[_0x5173('0x0')]+'\x22')});continue;case _0x5173('0x30'):case _0x5173('0x1'):_0x5362e0[_0x5173('0xd')]({'type':'insertion','content':_0x30b77e(_0x34b0a0,_0x5173('0x16'),this['getItemLabel'](_0x5dfae4[_0x5173('0x36')],_0x5dfae4[_0x5173('0x4')]))});continue;case _0x5173('0x32'):case _0x5173('0x2a'):_0x5362e0[_0x5173('0xd')]({'type':_0x5173('0x3c'),'content':_0x30b77e(_0x34b0a0,_0x5173('0x5'),this['getItemLabel'](_0x5dfae4[_0x5173('0x36')],_0x5dfae4[_0x5173('0x4')]))});continue;case _0x5173('0x19'):_0x5362e0[_0x5173('0xd')]({'type':_0x5173('0x28'),'content':_0x30b77e(_0x34b0a0,_0x5173('0x37'),this[_0x5173('0xa')](_0x5dfae4[_0x5173('0x36')],_0x5dfae4[_0x5173('0x4')]))});continue;case _0x5173('0xe'):_0x5362e0[_0x5173('0xd')]({'type':'deletion','content':_0x30b77e(_0x34b0a0,_0x5173('0x1a'),this[_0x5173('0xa')](_0x5dfae4['element'],_0x5dfae4[_0x5173('0x4')]))});continue;}_0x5362e0[_0x5173('0xd')](_0x5dfae4);}return _0x5362e0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1208=['adapter','TrackChanges','Comments','editor','plugins','requires','addSuggestion','pluginName','getSuggestion','getSuggestions','get','addSuggestionData'];(function(_0x106450,_0x120860){var _0x9f7e3d=function(_0x3d1cba){while(--_0x3d1cba){_0x106450['push'](_0x106450['shift']());}};_0x9f7e3d(++_0x120860);}(_0x1208,0xa8));var _0x9f7e=function(_0x106450,_0x120860){_0x106450=_0x106450-0x0;var _0x9f7e3d=_0x1208[_0x106450];return _0x9f7e3d;};import{Plugin as _0x2e3e43}from'ckeditor5/src/core';import _0x17b67d from'./trackchangesui';import _0x2f8c77 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x2e3e43{static get[_0x9f7e('0x5')](){return[_0x2f8c77,_0x17b67d,_0x9f7e('0x2')];}static get[_0x9f7e('0x7')](){return _0x9f7e('0x1');}set[_0x9f7e('0x0')](_0x4c59cb){this[_0x9f7e('0x3')]['plugins']['get'](_0x2f8c77)['adapter']=_0x4c59cb;}get['adapter'](){return this[_0x9f7e('0x3')][_0x9f7e('0x4')][_0x9f7e('0xa')](_0x2f8c77)[_0x9f7e('0x0')];}[_0x9f7e('0x6')](_0x44c012){return this[_0x9f7e('0x3')]['plugins']['get'](_0x2f8c77)[_0x9f7e('0xb')](_0x44c012);}[_0x9f7e('0x9')]({skipNotAttached:_0x516739=!0x1,toJSON:_0x4bac4b=!0x1}={}){return this[_0x9f7e('0x3')][_0x9f7e('0x4')]['get'](_0x2f8c77)[_0x9f7e('0x9')]({'skipNotAttached':_0x516739,'toJSON':_0x4bac4b});}['getSuggestion'](_0x12fda0){return this['editor'][_0x9f7e('0x4')][_0x9f7e('0xa')](_0x2f8c77)[_0x9f7e('0x8')](_0x12fda0);}}
23
+ var _0x4844=['TrackChanges','getSuggestion','Comments','addSuggestion','get','editor','addSuggestionData','adapter','requires','plugins','pluginName','getSuggestions'];(function(_0xf81cd1,_0x4844fd){var _0x639d9=function(_0x35e671){while(--_0x35e671){_0xf81cd1['push'](_0xf81cd1['shift']());}};_0x639d9(++_0x4844fd);}(_0x4844,0xa5));var _0x639d=function(_0xf81cd1,_0x4844fd){_0xf81cd1=_0xf81cd1-0x0;var _0x639d9=_0x4844[_0xf81cd1];return _0x639d9;};import{Plugin as _0x262bb8}from'ckeditor5/src/core';import _0x42ee6d from'./trackchangesui';import _0x220d54 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x262bb8{static get[_0x639d('0xb')](){return[_0x220d54,_0x42ee6d,_0x639d('0x5')];}static get[_0x639d('0x1')](){return _0x639d('0x3');}set[_0x639d('0xa')](_0x1b1669){this[_0x639d('0x8')][_0x639d('0x0')][_0x639d('0x7')](_0x220d54)['adapter']=_0x1b1669;}get[_0x639d('0xa')](){return this[_0x639d('0x8')][_0x639d('0x0')][_0x639d('0x7')](_0x220d54)[_0x639d('0xa')];}[_0x639d('0x6')](_0x182258){return this[_0x639d('0x8')][_0x639d('0x0')]['get'](_0x220d54)[_0x639d('0x9')](_0x182258);}[_0x639d('0x2')]({skipNotAttached:_0x319954=!0x1,toJSON:_0x1e2740=!0x1}={}){return this[_0x639d('0x8')][_0x639d('0x0')][_0x639d('0x7')](_0x220d54)['getSuggestions']({'skipNotAttached':_0x319954,'toJSON':_0x1e2740});}['getSuggestion'](_0x152a70){return this[_0x639d('0x8')]['plugins']['get'](_0x220d54)[_0x639d('0x4')](_0x152a70);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e8d=['destroy','set','get','rootsAttributes','createDocumentFragment','CommentsRepository','requires','appendChild','name','editor','addUser','TrackChangesData','document','execute','trackChangesData.editorCreator','define','end','addSuggestionData','editorCreator','getDataWithDiscardedSuggestions','result','getRootNames','function','data','getFullData','TrackChangesDataGetter','config','TrackChangesEditing','push','acceptAllSuggestions','discardAllSuggestions','div','init','map','constructor','reduce','getDataWithAcceptedSuggestions','create','getUser','Pagination','trackChangesData','plugins','model','getRootsAttributes','pluginName'];(function(_0x4925be,_0x1e8de2){const _0x48419c=function(_0x53591b){while(--_0x53591b){_0x4925be['push'](_0x4925be['shift']());}};_0x48419c(++_0x1e8de2);}(_0x1e8d,0x197));const _0x4841=function(_0x4925be,_0x1e8de2){_0x4925be=_0x4925be-0x0;let _0x48419c=_0x1e8d[_0x4925be];return _0x48419c;};import{Plugin as _0x2045c8}from'ckeditor5/src/core';import{CKEditorError as _0x5b9a30}from'ckeditor5/src/utils';import _0x1aeb03 from'./trackchangesediting';import{sanitizeEditorConfig as _0x127264}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x4841('0x25')];export default class T extends _0x2045c8{static get[_0x4841('0x4')](){return[_0x1aeb03];}static get[_0x4841('0x2a')](){return _0x4841('0x9');}[_0x4841('0x1e')](){const _0x292ec7=this['editor'];if(_0x292ec7[_0x4841('0x18')][_0x4841('0xd')](_0x4841('0xc'),_0x3b62a4=>{const _0x2db94e=_0x292ec7[_0x4841('0x28')][_0x4841('0xa')][_0x4841('0x13')]()[_0x4841('0x21')]((_0x5dc501,_0x114253)=>(_0x5dc501[_0x114253]='',_0x5dc501),{});return _0x292ec7[_0x4841('0x20')][_0x4841('0x23')](_0x2db94e,_0x3b62a4);}),_0x4841('0x14')!=typeof _0x292ec7[_0x4841('0x18')][_0x4841('0x0')](_0x4841('0x26'))[_0x4841('0x10')])throw new _0x5b9a30('track-changes-data-invalid-editor-creator');}[_0x4841('0x22')](_0x9528f9){return v(this[_0x4841('0x7')],!0x0,_0x9528f9);}[_0x4841('0x11')](_0xa7fd91){return v(this['editor'],!0x1,_0xa7fd91);}}class P extends _0x2045c8{static get[_0x4841('0x2a')](){return _0x4841('0x17');}constructor(_0x533c1a){super(_0x533c1a),this[_0x4841('0x12')]=_0x4841('0xe');}[_0x4841('0x1e')](){this[_0x4841('0x7')][_0x4841('0x27')]['get'](_0x4841('0x3'))['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x4841('0x7')][_0x4841('0x27')][_0x4841('0x0')](_0x4841('0x19'))['_adapter']=null;}}function D(_0x37234a){return void 0x0!==_0x37234a[_0x4841('0x29')];}async function v(_0x4169ff,_0x245d24,_0x2881ec){const _0x165a9c=_0x127264(_0x4169ff,w);_0x165a9c[_0x4841('0x27')][_0x4841('0x1a')](_0x1aeb03,P),_0x165a9c[_0x4841('0x1')]=D(_0x4169ff)?_0x4169ff['getRootsAttributes']():void 0x0;const _0x515790=document[_0x4841('0x2')](),_0x290f50=_0x4169ff['config'][_0x4841('0x0')](_0x4841('0x26'))[_0x4841('0x10')],_0x103789=await _0x290f50(_0x165a9c,()=>function(_0x502b89){const _0x3d7dbc=document['createElement'](_0x4841('0x1d'));return _0x502b89[_0x4841('0x5')](_0x3d7dbc),_0x3d7dbc;}(_0x515790));!function(_0x285e01,_0x304ee6){const _0x5d964d=_0x285e01[_0x4841('0x28')][_0x4841('0xa')][_0x4841('0x13')]()[_0x4841('0x21')]((_0xabc5ca,_0x2ecbaa)=>(_0xabc5ca[_0x2ecbaa]=_0x285e01[_0x4841('0x15')][_0x4841('0x0')]({'rootName':_0x2ecbaa}),_0xabc5ca),{}),_0xd46bb2=_0x285e01[_0x4841('0x27')]['get']('Users')['users'][_0x4841('0x1f')](_0x2a03be=>({'id':_0x2a03be['id'],'name':_0x2a03be[_0x4841('0x6')]})),_0x162fb5=_0x285e01['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x12910d=_0x304ee6['plugins'][_0x4841('0x0')]('Users'),_0x3ea0e0=_0x304ee6['plugins'][_0x4841('0x0')]('TrackChangesEditing');for(const _0x236a55 of _0xd46bb2)_0x12910d[_0x4841('0x24')](_0x236a55['id'])||_0x12910d[_0x4841('0x8')](_0x236a55);_0x12910d['me']||_0x12910d['useAnonymousUser']();for(const _0x1ad100 of _0x162fb5)_0x3ea0e0[_0x4841('0xf')](_0x1ad100);_0x304ee6[_0x4841('0x15')][_0x4841('0x2c')](_0x5d964d);}(_0x4169ff,_0x103789),_0x103789[_0x4841('0xb')](_0x245d24?_0x4841('0x1b'):_0x4841('0x1c'));const _0x3c6beb=D(_0x103789)?_0x103789[_0x4841('0x16')](_0x2881ec):_0x103789[_0x4841('0x15')][_0x4841('0x0')](_0x2881ec);return await _0x103789[_0x4841('0x2b')](),_0x3c6beb;}
23
+ const _0x2e3c=['get','track-changes-data-invalid-editor-creator','addSuggestionData','name','trackChangesData','editor','users','Pagination','getRootsAttributes','getFullData','trackChangesData.editorCreator','editorCreator','pluginName','config','acceptAllSuggestions','createDocumentFragment','rootsAttributes','reduce','result','_adapter','model','plugins','document','execute','CommentsRepository','Users','set','getRootNames','TrackChangesEditing','discardAllSuggestions','div','map','define','push','init','useAnonymousUser','getDataWithAcceptedSuggestions','TrackChangesDataGetter','data','end','addUser','createElement'];(function(_0x5b3b6b,_0x2e3cea){const _0x215857=function(_0x5d353f){while(--_0x5d353f){_0x5b3b6b['push'](_0x5b3b6b['shift']());}};_0x215857(++_0x2e3cea);}(_0x2e3c,0x1e3));const _0x2158=function(_0x5b3b6b,_0x2e3cea){_0x5b3b6b=_0x5b3b6b-0x0;let _0x215857=_0x2e3c[_0x5b3b6b];return _0x215857;};import{Plugin as _0x431bcb}from'ckeditor5/src/core';import{CKEditorError as _0x395666}from'ckeditor5/src/utils';import _0x39980c from'./trackchangesediting';import{sanitizeEditorConfig as _0x1b8ec8}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x2158('0x1c')];export default class T extends _0x431bcb{static get['requires'](){return[_0x39980c];}static get[_0x2158('0x21')](){return'TrackChangesData';}[_0x2158('0xd')](){const _0x44328b=this[_0x2158('0x1a')];if(_0x44328b[_0x2158('0x22')][_0x2158('0xb')](_0x2158('0x1f'),_0xc56ff4=>{const _0x308286=_0x44328b[_0x2158('0x29')][_0x2158('0x1')][_0x2158('0x6')]()['reduce']((_0x3de4a5,_0x32cf83)=>(_0x3de4a5[_0x32cf83]='',_0x3de4a5),{});return _0x44328b['constructor']['create'](_0x308286,_0xc56ff4);}),'function'!=typeof _0x44328b['config']['get'](_0x2158('0x19'))[_0x2158('0x20')])throw new _0x395666(_0x2158('0x16'));}[_0x2158('0xf')](_0x301bfb){return v(this[_0x2158('0x1a')],!0x0,_0x301bfb);}['getDataWithDiscardedSuggestions'](_0x8cdc34){return v(this[_0x2158('0x1a')],!0x1,_0x8cdc34);}}class P extends _0x431bcb{static get[_0x2158('0x21')](){return _0x2158('0x10');}constructor(_0xa25e69){super(_0xa25e69),this[_0x2158('0x27')]=_0x2158('0x12');}[_0x2158('0xd')](){this['editor']['plugins']['get'](_0x2158('0x3'))[_0x2158('0x28')]={'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[_0x2158('0x1a')][_0x2158('0x0')][_0x2158('0x15')](_0x2158('0x7'))[_0x2158('0x28')]=null;}}function D(_0x445096){return void 0x0!==_0x445096[_0x2158('0x1d')];}async function v(_0x7d569b,_0xb99aac,_0x3a37f8){const _0x5cf01c=_0x1b8ec8(_0x7d569b,w);_0x5cf01c[_0x2158('0x0')][_0x2158('0xc')](_0x39980c,P),_0x5cf01c[_0x2158('0x25')]=D(_0x7d569b)?_0x7d569b[_0x2158('0x1d')]():void 0x0;const _0x5bc5d7=document[_0x2158('0x24')](),_0x365e7a=_0x7d569b[_0x2158('0x22')]['get'](_0x2158('0x19'))[_0x2158('0x20')],_0x3b3c26=await _0x365e7a(_0x5cf01c,()=>function(_0x1013b5){const _0x5aab5f=document[_0x2158('0x14')](_0x2158('0x9'));return _0x1013b5['appendChild'](_0x5aab5f),_0x5aab5f;}(_0x5bc5d7));!function(_0x8be78d,_0x48c611){const _0x5b5074=_0x8be78d['model']['document'][_0x2158('0x6')]()[_0x2158('0x26')]((_0x3db976,_0x194f3d)=>(_0x3db976[_0x194f3d]=_0x8be78d[_0x2158('0x11')][_0x2158('0x15')]({'rootName':_0x194f3d}),_0x3db976),{}),_0xdb57c8=_0x8be78d['plugins'][_0x2158('0x15')](_0x2158('0x4'))[_0x2158('0x1b')][_0x2158('0xa')](_0x1f7b9e=>({'id':_0x1f7b9e['id'],'name':_0x1f7b9e[_0x2158('0x18')]})),_0x53179e=_0x8be78d['plugins'][_0x2158('0x15')](_0x2158('0x7'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x165b9d=_0x48c611[_0x2158('0x0')][_0x2158('0x15')](_0x2158('0x4')),_0x2dc3c6=_0x48c611[_0x2158('0x0')][_0x2158('0x15')](_0x2158('0x7'));for(const _0x314c53 of _0xdb57c8)_0x165b9d['getUser'](_0x314c53['id'])||_0x165b9d[_0x2158('0x13')](_0x314c53);_0x165b9d['me']||_0x165b9d[_0x2158('0xe')]();for(const _0x20e13a of _0x53179e)_0x2dc3c6[_0x2158('0x17')](_0x20e13a);_0x48c611[_0x2158('0x11')][_0x2158('0x5')](_0x5b5074);}(_0x7d569b,_0x3b3c26),_0x3b3c26[_0x2158('0x2')](_0xb99aac?_0x2158('0x23'):_0x2158('0x8'));const _0xd85f39=D(_0x3b3c26)?_0x3b3c26[_0x2158('0x1e')](_0x3a37f8):_0x3b3c26['data'][_0x2158('0x15')](_0x3a37f8);return await _0x3b3c26['destroy'](),_0xd85f39;}