@ckeditor/ckeditor5-comments 39.0.1 → 39.0.2

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 (107) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/comments.js +1 -1
  5. package/build/translations/fa.js +1 -1
  6. package/lang/translations/af.po +1 -0
  7. package/lang/translations/ar.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/bs.po +1 -0
  11. package/lang/translations/ca.po +1 -0
  12. package/lang/translations/cs.po +1 -0
  13. package/lang/translations/da.po +1 -0
  14. package/lang/translations/de-ch.po +1 -0
  15. package/lang/translations/de.po +1 -0
  16. package/lang/translations/el.po +1 -0
  17. package/lang/translations/en-au.po +1 -0
  18. package/lang/translations/en.po +1 -0
  19. package/lang/translations/es-co.po +1 -0
  20. package/lang/translations/es.po +1 -0
  21. package/lang/translations/et.po +1 -0
  22. package/lang/translations/fa.po +10 -9
  23. package/lang/translations/fi.po +1 -0
  24. package/lang/translations/fr.po +1 -0
  25. package/lang/translations/gl.po +1 -0
  26. package/lang/translations/he.po +1 -0
  27. package/lang/translations/hi.po +1 -0
  28. package/lang/translations/hr.po +1 -0
  29. package/lang/translations/hu.po +1 -0
  30. package/lang/translations/id.po +1 -0
  31. package/lang/translations/it.po +1 -0
  32. package/lang/translations/ja.po +1 -0
  33. package/lang/translations/jv.po +1 -0
  34. package/lang/translations/ko.po +1 -0
  35. package/lang/translations/lt.po +1 -0
  36. package/lang/translations/lv.po +1 -0
  37. package/lang/translations/ms.po +1 -0
  38. package/lang/translations/nl.po +1 -0
  39. package/lang/translations/no.po +1 -0
  40. package/lang/translations/pl.po +1 -0
  41. package/lang/translations/pt-br.po +1 -0
  42. package/lang/translations/pt.po +1 -0
  43. package/lang/translations/ro.po +1 -0
  44. package/lang/translations/ru.po +1 -0
  45. package/lang/translations/sk.po +1 -0
  46. package/lang/translations/sq.po +1 -0
  47. package/lang/translations/sr-latn.po +1 -0
  48. package/lang/translations/sr.po +1 -0
  49. package/lang/translations/sv.po +1 -0
  50. package/lang/translations/th.po +1 -0
  51. package/lang/translations/tk.po +1 -0
  52. package/lang/translations/tr.po +1 -0
  53. package/lang/translations/tt.po +1 -0
  54. package/lang/translations/ug.po +1 -0
  55. package/lang/translations/uk.po +1 -0
  56. package/lang/translations/ur.po +1 -0
  57. package/lang/translations/vi.po +1 -0
  58. package/lang/translations/zh-cn.po +1 -0
  59. package/lang/translations/zh.po +1 -0
  60. package/package.json +3 -7
  61. package/src/annotations/annotation.js +1 -1
  62. package/src/annotations/annotationcollection.js +1 -1
  63. package/src/annotations/annotations.js +1 -1
  64. package/src/annotations/annotationsuis.js +1 -1
  65. package/src/annotations/editorannotations.js +1 -1
  66. package/src/annotations/inlineannotations.js +1 -1
  67. package/src/annotations/narrowsidebar.js +1 -1
  68. package/src/annotations/sidebar.js +1 -1
  69. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  70. package/src/annotations/view/annotationview.js +1 -1
  71. package/src/annotations/view/sidebaritemview.js +1 -1
  72. package/src/annotations/view/sidebarview.js +1 -1
  73. package/src/annotations/widesidebar.js +1 -1
  74. package/src/comments/addcommentthreadcommand.js +1 -1
  75. package/src/comments/commentsarchive.js +1 -1
  76. package/src/comments/commentsarchiveui.js +1 -1
  77. package/src/comments/commentsediting.js +1 -1
  78. package/src/comments/commentsrepository.js +1 -1
  79. package/src/comments/commentsui.js +1 -1
  80. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  81. package/src/comments/integrations/importword.js +1 -1
  82. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  83. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  84. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  85. package/src/comments/ui/commentthreadcontroller.js +1 -1
  86. package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
  87. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  88. package/src/comments/ui/view/basecommentview.js +1 -1
  89. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  90. package/src/comments/ui/view/commentcontentview.js +1 -1
  91. package/src/comments/ui/view/commentinputview.js +1 -1
  92. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  93. package/src/comments/ui/view/commentslistview.js +1 -1
  94. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  95. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  96. package/src/comments/ui/view/commentthreadview.js +1 -1
  97. package/src/comments/ui/view/commentview.js +1 -1
  98. package/src/comments.js +1 -1
  99. package/src/commentsonly.js +1 -1
  100. package/src/utils/common-translations.js +1 -1
  101. package/src/utils/createmutationobserver.js +1 -1
  102. package/theme/annotation.css +0 -2
  103. package/theme/comment.css +37 -37
  104. package/theme/commentmarker.css +5 -5
  105. package/theme/commentthread.css +56 -56
  106. package/theme/sidebar-narrow.css +2 -2
  107. package/theme/sidebar.css +11 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36d6=['refreshVisibility','targetRect','stopListening','view','_assertCorrectTarget','render','item','isVisible','length','isActive','nodeType','element','type','function','remove','focusTracker','focusableElements','_id','_target','annotation-invalid-target','target','_getNormalizedTarget','every','offsetParent','filter','mainView','add','_type','getClientRects'];(function(_0x2a0870,_0x36d6f2){const _0x494858=function(_0x5ad8f4){while(--_0x5ad8f4){_0x2a0870['push'](_0x2a0870['shift']());}};_0x494858(++_0x36d6f2);}(_0x36d6,0x114));const _0x4948=function(_0x2a0870,_0x36d6f2){_0x2a0870=_0x2a0870-0x0;let _0x494858=_0x36d6[_0x2a0870];return _0x494858;};import{CKEditorError as _0x302764,Rect as _0x59d830,Collection as _0x39193d,ObservableMixin as _0x1f988c}from'ckeditor5/src/utils';export default class d extends _0x1f988c(){constructor({view:_0x1c6efe,target:_0x39d939,type:_0x32d894,isVisible:_0x16c96e=!0x0}){super(),this[_0x4948('0x11')]=_0x1c6efe,this[_0x4948('0x11')][_0x4948('0x19')]||this['view'][_0x4948('0x13')](),this[_0x4948('0xc')]=_0x32d894,this[_0x4948('0x3')]=_0x39d939,d[_0x4948('0x12')](this[_0x4948('0x6')]()),this[_0x4948('0x1')]=new _0x39193d([this['view'][_0x4948('0x19')]],{'idProperty':_0x4948('0x2')}),this[_0x4948('0x1')]['on'](_0x4948('0xb'),(_0x2bc25f,_0x3b2b91)=>{this[_0x4948('0x11')][_0x4948('0x0')][_0x4948('0xb')](_0x3b2b91);}),this[_0x4948('0x1')]['on']('remove',(_0x166795,_0x1061ca)=>{this[_0x4948('0x11')][_0x4948('0x0')][_0x4948('0x1c')](_0x1061ca);}),this['set'](_0x4948('0x15'),_0x16c96e);}get[_0x4948('0x1a')](){return'function'==typeof this['_type']?this[_0x4948('0xc')]():this[_0x4948('0xc')];}get['innerView'](){return this[_0x4948('0x11')][_0x4948('0xa')];}get[_0x4948('0x5')](){const _0xda31d8=this['_getNormalizedTarget']();return d[_0x4948('0x12')](_0xda31d8),_0xda31d8;}get[_0x4948('0xf')](){const _0x57927f=this[_0x4948('0x5')];if(null===_0x57927f)return null;if(_0x57927f instanceof _0x59d830)return _0x57927f;const _0x48e3b9=_0x57927f[_0x4948('0x9')](_0x2424ac=>function(_0x331e58){const _0x206050=_0x331e58[_0x4948('0x8')];if(_0x206050)return!0x0;const _0x3cccbb=_0x331e58[_0x4948('0xd')]()[_0x4948('0x14')](0x0);return!!_0x3cccbb;}(_0x2424ac));return 0x0===_0x48e3b9[_0x4948('0x16')]?null:new _0x59d830(_0x48e3b9[0x0][_0x4948('0xd')]()[_0x4948('0x14')](0x0));}get[_0x4948('0x17')](){return this[_0x4948('0x11')][_0x4948('0x17')];}set[_0x4948('0x17')](_0x40d013){this[_0x4948('0x11')][_0x4948('0x17')]=_0x40d013,this[_0x4948('0x11')]['mainView']['isActive']=_0x40d013;}['updateTargetRect'](){this[_0x4948('0x11')][_0x4948('0xf')]=this['targetRect'];}['destroy'](){this[_0x4948('0x1')][_0x4948('0x10')](),this[_0x4948('0x1')]['clear'](),this[_0x4948('0x10')]();}[_0x4948('0xe')](){this[_0x4948('0x15')]=!!this['targetRect'];}static[_0x4948('0x12')](_0x2c9c21){if(!(null===_0x2c9c21||_0x2c9c21 instanceof _0x59d830||Array['isArray'](_0x2c9c21)&&_0x2c9c21[_0x4948('0x7')](_0x3c965f=>y(_0x3c965f))))throw new _0x302764(_0x4948('0x4'),null,{'target':_0x2c9c21});}[_0x4948('0x6')](){const _0x187840=_0x4948('0x1b')==typeof this['_target']?this[_0x4948('0x3')]():this[_0x4948('0x3')];return y(_0x187840)?[_0x187840]:_0x187840;}}function y(_0x30ac72){return null!==_0x30ac72&&'object'==typeof _0x30ac72&&_0x4948('0x18')in _0x30ac72&&0x1===_0x30ac72[_0x4948('0x18')];}
23
+ const _0x1dbc=['add','nodeType','isActive','_id','isArray','focusableElements','item','_assertCorrectTarget','innerView','remove','view','getClientRects','updateTargetRect','function','destroy','isVisible','focusTracker','_getNormalizedTarget','set','targetRect','stopListening','_type','annotation-invalid-target','filter','mainView','element','clear','_target'];(function(_0x3c0d50,_0x1dbcc6){const _0x4725d3=function(_0x11b84b){while(--_0x11b84b){_0x3c0d50['push'](_0x3c0d50['shift']());}};_0x4725d3(++_0x1dbcc6);}(_0x1dbc,0x160));const _0x4725=function(_0x3c0d50,_0x1dbcc6){_0x3c0d50=_0x3c0d50-0x0;let _0x4725d3=_0x1dbc[_0x3c0d50];return _0x4725d3;};import{CKEditorError as _0x1db29c,Rect as _0xcb6314,Collection as _0x4e6fc0,ObservableMixin as _0x52a241}from'ckeditor5/src/utils';export default class d extends _0x52a241(){constructor({view:_0x46791d,target:_0x7e4034,type:_0x164624,isVisible:_0x5e41ba=!0x0}){super(),this['view']=_0x46791d,this['view'][_0x4725('0x9')]||this[_0x4725('0x16')]['render'](),this[_0x4725('0x5')]=_0x164624,this[_0x4725('0xb')]=_0x7e4034,d[_0x4725('0x13')](this[_0x4725('0x1')]()),this[_0x4725('0x11')]=new _0x4e6fc0([this[_0x4725('0x16')]['element']],{'idProperty':_0x4725('0xf')}),this[_0x4725('0x11')]['on'](_0x4725('0xc'),(_0x3d9ef7,_0x146bbb)=>{this[_0x4725('0x16')][_0x4725('0x0')][_0x4725('0xc')](_0x146bbb);}),this[_0x4725('0x11')]['on'](_0x4725('0x15'),(_0x2e1e74,_0x5db11c)=>{this['view'][_0x4725('0x0')][_0x4725('0x15')](_0x5db11c);}),this[_0x4725('0x2')](_0x4725('0x1b'),_0x5e41ba);}get['type'](){return'function'==typeof this['_type']?this[_0x4725('0x5')]():this[_0x4725('0x5')];}get[_0x4725('0x14')](){return this[_0x4725('0x16')]['mainView'];}get['target'](){const _0x4b3a11=this[_0x4725('0x1')]();return d[_0x4725('0x13')](_0x4b3a11),_0x4b3a11;}get['targetRect'](){const _0x944a2c=this['target'];if(null===_0x944a2c)return null;if(_0x944a2c instanceof _0xcb6314)return _0x944a2c;const _0x17ffbc=_0x944a2c[_0x4725('0x7')](_0x40ecc1=>function(_0x110d6a){const _0x9f8b08=_0x110d6a['offsetParent'];if(_0x9f8b08)return!0x0;const _0x342091=_0x110d6a[_0x4725('0x17')]()[_0x4725('0x12')](0x0);return!!_0x342091;}(_0x40ecc1));return 0x0===_0x17ffbc['length']?null:new _0xcb6314(_0x17ffbc[0x0][_0x4725('0x17')]()[_0x4725('0x12')](0x0));}get[_0x4725('0xe')](){return this[_0x4725('0x16')][_0x4725('0xe')];}set['isActive'](_0x886171){this['view']['isActive']=_0x886171,this[_0x4725('0x16')][_0x4725('0x8')]['isActive']=_0x886171;}[_0x4725('0x18')](){this['view'][_0x4725('0x3')]=this[_0x4725('0x3')];}[_0x4725('0x1a')](){this[_0x4725('0x11')][_0x4725('0x4')](),this[_0x4725('0x11')][_0x4725('0xa')](),this['stopListening']();}['refreshVisibility'](){this[_0x4725('0x1b')]=!!this[_0x4725('0x3')];}static[_0x4725('0x13')](_0x31a8b0){if(!(null===_0x31a8b0||_0x31a8b0 instanceof _0xcb6314||Array[_0x4725('0x10')](_0x31a8b0)&&_0x31a8b0['every'](_0x450d34=>y(_0x450d34))))throw new _0x1db29c(_0x4725('0x6'),null,{'target':_0x31a8b0});}[_0x4725('0x1')](){const _0x561415=_0x4725('0x19')==typeof this[_0x4725('0xb')]?this[_0x4725('0xb')]():this[_0x4725('0xb')];return y(_0x561415)?[_0x561415]:_0x561415;}}function y(_0x2bbfe9){return null!==_0x2bbfe9&&'object'==typeof _0x2bbfe9&&_0x4725('0xd')in _0x2bbfe9&&0x1===_0x2bbfe9[_0x4725('0xd')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fe3=['from','getByView','view','getByInnerView','annotationcollection-duplicated-item','_innerViewToAnnotation','isFocused','focusTracker','stopListening','add','annotationcollection-not-existing-item','fire','focus','_sort','targetRect','change:isFocused','clear','remove','has','delete','destroy','set','length','focusableElements','get','_viewToAnnotation','_getOrderInContent','listenTo','getIndex','updateTargetRect','_focusTracker','innerView','left','top','sort'];(function(_0x77fc86,_0x3fe357){const _0x575ee8=function(_0x9ac481){while(--_0x9ac481){_0x77fc86['push'](_0x77fc86['shift']());}};_0x575ee8(++_0x3fe357);}(_0x3fe3,0x83));const _0x575e=function(_0x77fc86,_0x3fe357){_0x77fc86=_0x77fc86-0x0;let _0x575ee8=_0x3fe3[_0x77fc86];return _0x575ee8;};import{CKEditorError as _0x413dc6,Collection as _0x20da9a,FocusTracker as _0x242223}from'ckeditor5/src/utils';export default class x extends _0x20da9a{constructor(_0x1a6264=[]){super(),this[_0x575e('0xe')]=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x242223(),this['_focusTracker']['on'](_0x575e('0x18'),(_0x5c57d5,_0x7c5cbc,_0x3452d9)=>{_0x3452d9||this[_0x575e('0x14')]('blur');});for(const _0x5dce02 of _0x1a6264)this['add'](_0x5dce02);}get[_0x575e('0xf')](){return this['_focusTracker']['isFocused'];}['add'](_0xe4aecb){if(this[_0x575e('0x1b')](_0xe4aecb))throw new _0x413dc6(_0x575e('0xd'),null);this[_0x575e('0xe')][_0x575e('0x1e')](_0xe4aecb[_0x575e('0x5')],_0xe4aecb),this['_viewToAnnotation']['set'](_0xe4aecb['view'],_0xe4aecb);for(const _0xb53497 of _0xe4aecb[_0x575e('0x20')])this[_0x575e('0x4')][_0x575e('0x12')](_0xb53497);this[_0x575e('0x1')](_0xe4aecb[_0x575e('0x20')],_0x575e('0x12'),(_0x5350cc,_0x3673c6)=>{this[_0x575e('0x4')][_0x575e('0x12')](_0x3673c6);}),this[_0x575e('0x1')](_0xe4aecb[_0x575e('0x20')],_0x575e('0x1a'),(_0x2e1c44,_0x52f966)=>{this[_0x575e('0x4')][_0x575e('0x1a')](_0x52f966);}),this[_0x575e('0x1')](_0xe4aecb['view'][_0x575e('0x10')],'change:isFocused',(_0x5a2026,_0x2c516b,_0xbb8256)=>{_0xbb8256&&this[_0x575e('0x14')](_0x575e('0x15'),_0xe4aecb);}),_0xe4aecb['updateTargetRect']();const _0x5a089a=this[_0x575e('0x0')](_0xe4aecb[_0x575e('0xb')]['targetRect']);return super['add'](_0xe4aecb,_0x5a089a);}['remove'](_0x3893c5){if(!this[_0x575e('0x1b')](_0x3893c5))throw new _0x413dc6(_0x575e('0x13'),null);this[_0x575e('0x11')](_0x3893c5['view']['focusTracker']),this[_0x575e('0x11')](_0x3893c5[_0x575e('0x20')]);for(const _0x414460 of _0x3893c5['focusableElements'])this[_0x575e('0x4')][_0x575e('0x1a')](_0x414460);return this[_0x575e('0x22')][_0x575e('0x1c')](_0x3893c5[_0x575e('0xb')]),this['_innerViewToAnnotation']['delete'](_0x3893c5['innerView']),super[_0x575e('0x1a')](_0x3893c5);}[_0x575e('0xc')](_0xd8007b){return this[_0x575e('0xe')][_0x575e('0x21')](_0xd8007b);}[_0x575e('0xa')](_0x1ea035){return this[_0x575e('0x22')][_0x575e('0x21')](_0x1ea035);}['destroy'](){super['clear'](),this[_0x575e('0x11')](),this[_0x575e('0xe')][_0x575e('0x19')](),this[_0x575e('0x22')][_0x575e('0x19')](),this[_0x575e('0x4')][_0x575e('0x1d')]();}['refreshPositioning'](){for(const _0x431bf0 of this)_0x431bf0[_0x575e('0x3')]();this['_sort']();}[_0x575e('0x16')](){const _0x2f83c0=Array[_0x575e('0x9')](this)[_0x575e('0x8')]((_0x20e222,_0x519771)=>v(_0x20e222[_0x575e('0xb')][_0x575e('0x17')],_0x519771[_0x575e('0xb')][_0x575e('0x17')]));for(let _0x257fb7=_0x2f83c0[_0x575e('0x1f')]-0x1;_0x257fb7>0x0;_0x257fb7--){const _0x2a36e5=_0x2f83c0[_0x257fb7];_0x257fb7!==this[_0x575e('0x2')](_0x2a36e5)&&(this[_0x575e('0x1a')](_0x2a36e5),this[_0x575e('0x12')](_0x2a36e5));}}[_0x575e('0x0')](_0x1efea3){let _0x57453b=0x0;if(!_0x1efea3)return this[_0x575e('0x1f')];for(const _0x5f54d0 of this){const _0xaed341=_0x5f54d0[_0x575e('0xb')][_0x575e('0x17')];if(_0xaed341){if(v(_0x1efea3,_0xaed341)<0x0)return _0x57453b;_0x57453b++;}}return _0x57453b;}}export function bindAnnotationCollections({source:_0x437e47,target:_0x1601bf,filter:_0x182738}){for(const _0x370d19 of _0x437e47)_0x182738(_0x370d19)&&_0x1601bf[_0x575e('0x12')](_0x370d19);_0x1601bf[_0x575e('0x1')](_0x437e47,_0x575e('0x12'),(_0x4ea21b,_0x22c5cd)=>{_0x182738(_0x22c5cd)&&_0x1601bf[_0x575e('0x12')](_0x22c5cd);}),_0x1601bf[_0x575e('0x1')](_0x437e47,_0x575e('0x1a'),(_0x568a1f,_0x3c13d5)=>{_0x1601bf[_0x575e('0x1b')](_0x3c13d5)&&_0x1601bf[_0x575e('0x1a')](_0x3c13d5);});}function v(_0x3301f9,_0x24ee94){if(null===_0x3301f9&&null===_0x24ee94)return 0x0;if(null===_0x3301f9)return-0x1;if(null===_0x24ee94)return 0x1;const _0xb609a5=_0x3301f9[_0x575e('0x7')]-_0x24ee94['top'];return 0x0==_0xb609a5?_0x3301f9[_0x575e('0x6')]-_0x24ee94['left']:_0xb609a5;}
23
+ const _0x3b25=['stopListening','top','getIndex','change:isFocused','blur','updateTargetRect','refreshPositioning','_focusTracker','targetRect','innerView','annotationcollection-duplicated-item','length','getByView','add','_getOrderInContent','clear','view','has','remove','left','_sort','set','get','focusableElements','focusTracker','destroy','from','isFocused','annotationcollection-not-existing-item','_viewToAnnotation','getByInnerView','listenTo','_innerViewToAnnotation','delete','fire'];(function(_0x4cbf30,_0x3b25c0){const _0x2f0500=function(_0x384258){while(--_0x384258){_0x4cbf30['push'](_0x4cbf30['shift']());}};_0x2f0500(++_0x3b25c0);}(_0x3b25,0x78));const _0x2f05=function(_0x4cbf30,_0x3b25c0){_0x4cbf30=_0x4cbf30-0x0;let _0x2f0500=_0x3b25[_0x4cbf30];return _0x2f0500;};import{CKEditorError as _0x19bf33,Collection as _0x4c5e97,FocusTracker as _0x354511}from'ckeditor5/src/utils';export default class x extends _0x4c5e97{constructor(_0x51a849=[]){super(),this[_0x2f05('0x11')]=new Map(),this[_0x2f05('0xe')]=new Map(),this[_0x2f05('0x1b')]=new _0x354511(),this[_0x2f05('0x1b')]['on'](_0x2f05('0x17'),(_0x17dbc0,_0x69ef4a,_0x1dcd39)=>{_0x1dcd39||this[_0x2f05('0x13')](_0x2f05('0x18'));});for(const _0x1764ad of _0x51a849)this[_0x2f05('0x21')](_0x1764ad);}get[_0x2f05('0xc')](){return this[_0x2f05('0x1b')][_0x2f05('0xc')];}[_0x2f05('0x21')](_0x4e7e26){if(this[_0x2f05('0x2')](_0x4e7e26))throw new _0x19bf33(_0x2f05('0x1e'),null);this[_0x2f05('0x11')][_0x2f05('0x6')](_0x4e7e26['innerView'],_0x4e7e26),this[_0x2f05('0xe')][_0x2f05('0x6')](_0x4e7e26[_0x2f05('0x1')],_0x4e7e26);for(const _0x59a28c of _0x4e7e26[_0x2f05('0x8')])this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x59a28c);this[_0x2f05('0x10')](_0x4e7e26['focusableElements'],'add',(_0x17d263,_0x1d5904)=>{this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x1d5904);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x8')],_0x2f05('0x3'),(_0x197bb1,_0x4a9eea)=>{this[_0x2f05('0x1b')]['remove'](_0x4a9eea);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x1')]['focusTracker'],_0x2f05('0x17'),(_0x461e8d,_0x5c1e70,_0x4b0811)=>{_0x4b0811&&this[_0x2f05('0x13')]('focus',_0x4e7e26);}),_0x4e7e26[_0x2f05('0x19')]();const _0x1d87cc=this[_0x2f05('0x22')](_0x4e7e26[_0x2f05('0x1')][_0x2f05('0x1c')]);return super[_0x2f05('0x21')](_0x4e7e26,_0x1d87cc);}[_0x2f05('0x3')](_0x3d3fc7){if(!this[_0x2f05('0x2')](_0x3d3fc7))throw new _0x19bf33(_0x2f05('0xd'),null);this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x1')][_0x2f05('0x9')]),this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x8')]);for(const _0x5eaeb6 of _0x3d3fc7[_0x2f05('0x8')])this[_0x2f05('0x1b')]['remove'](_0x5eaeb6);return this['_viewToAnnotation'][_0x2f05('0x12')](_0x3d3fc7[_0x2f05('0x1')]),this[_0x2f05('0x11')]['delete'](_0x3d3fc7[_0x2f05('0x1d')]),super[_0x2f05('0x3')](_0x3d3fc7);}[_0x2f05('0xf')](_0x1a0a87){return this[_0x2f05('0x11')][_0x2f05('0x7')](_0x1a0a87);}[_0x2f05('0x20')](_0x4a083b){return this[_0x2f05('0xe')][_0x2f05('0x7')](_0x4a083b);}['destroy'](){super[_0x2f05('0x0')](),this['stopListening'](),this[_0x2f05('0x11')][_0x2f05('0x0')](),this[_0x2f05('0xe')][_0x2f05('0x0')](),this['_focusTracker'][_0x2f05('0xa')]();}[_0x2f05('0x1a')](){for(const _0x44cfdc of this)_0x44cfdc['updateTargetRect']();this[_0x2f05('0x5')]();}[_0x2f05('0x5')](){const _0x38cd01=Array[_0x2f05('0xb')](this)['sort']((_0x566c16,_0x4dade2)=>v(_0x566c16['view'][_0x2f05('0x1c')],_0x4dade2[_0x2f05('0x1')][_0x2f05('0x1c')]));for(let _0x8bdbd3=_0x38cd01[_0x2f05('0x1f')]-0x1;_0x8bdbd3>0x0;_0x8bdbd3--){const _0x26354d=_0x38cd01[_0x8bdbd3];_0x8bdbd3!==this[_0x2f05('0x16')](_0x26354d)&&(this[_0x2f05('0x3')](_0x26354d),this['add'](_0x26354d));}}['_getOrderInContent'](_0x405fff){let _0x968a3c=0x0;if(!_0x405fff)return this[_0x2f05('0x1f')];for(const _0x5bc0a3 of this){const _0x568a71=_0x5bc0a3[_0x2f05('0x1')][_0x2f05('0x1c')];if(_0x568a71){if(v(_0x405fff,_0x568a71)<0x0)return _0x968a3c;_0x968a3c++;}}return _0x968a3c;}}export function bindAnnotationCollections({source:_0x24d318,target:_0x432179,filter:_0x2eda4e}){for(const _0x2e78c5 of _0x24d318)_0x2eda4e(_0x2e78c5)&&_0x432179['add'](_0x2e78c5);_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x21'),(_0x3ac4ae,_0x4bc8d6)=>{_0x2eda4e(_0x4bc8d6)&&_0x432179['add'](_0x4bc8d6);}),_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x3'),(_0x160410,_0x2c76c8)=>{_0x432179[_0x2f05('0x2')](_0x2c76c8)&&_0x432179[_0x2f05('0x3')](_0x2c76c8);});}function v(_0x21679f,_0x108c4c){if(null===_0x21679f&&null===_0x108c4c)return 0x0;if(null===_0x21679f)return-0x1;if(null===_0x108c4c)return 0x1;const _0x4e3291=_0x21679f[_0x2f05('0x15')]-_0x108c4c[_0x2f05('0x15')];return 0x0==_0x4e3291?_0x21679f[_0x2f05('0x4')]-_0x108c4c[_0x2f05('0x4')]:_0x4e3291;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5af9=['change:isVisible','has','refreshPositioning','source','refreshVisibility','createAnnotationView','delete','activate','collection','isVisible','activeAnnotations','createAnnotation','_activateAnnotation','destroy','view','getByInnerView','Annotations','fire','deactivateAll','_addActiveAnnotation','set','_deactivateAllAnnotations','add','remove','_removeActiveAnnotation','element','focusTracker','listenTo','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations'];(function(_0x12f9db,_0x5af9f5){const _0x5219ee=function(_0x3b80cf){while(--_0x3b80cf){_0x12f9db['push'](_0x12f9db['shift']());}};_0x5219ee(++_0x5af9f5);}(_0x5af9,0xb3));const _0x5219=function(_0x12f9db,_0x5af9f5){_0x12f9db=_0x12f9db-0x0;let _0x5219ee=_0x5af9[_0x12f9db];return _0x5219ee;};import{ContextPlugin as _0x25ada4}from'ckeditor5/src/core';import _0x9cfe95 from'./annotation';import _0x3ed50e from'./annotationcollection';import _0x22f3e5 from'./view/annotationview';export default class b extends _0x25ada4{static get['pluginName'](){return _0x5219('0x11');}constructor(_0x2df73){super(_0x2df73),this['collection']=new _0x3ed50e(),this[_0x5219('0x1d')]=new _0x3ed50e(),this[_0x5219('0x15')]('activeAnnotations',new Set()),this[_0x5219('0x0')]();}[_0x5219('0x17')](_0x499b01){this[_0x5219('0x9')][_0x5219('0x17')](_0x499b01);}[_0x5219('0x18')](_0x51e582){this[_0x5219('0x9')][_0x5219('0x18')](_0x51e582),_0x51e582[_0x5219('0xe')]();}[_0x5219('0x5')](){for(const _0x19f1cb of this[_0x5219('0x9')])_0x19f1cb['refreshVisibility']();}[_0x5219('0x3')](){this['_visibleAnnotations'][_0x5219('0x3')]();}[_0x5219('0x10')](_0x5a0987){return this[_0x5219('0x9')][_0x5219('0x10')](_0x5a0987);}[_0x5219('0x13')](){this[_0x5219('0x12')](_0x5219('0x16'));}[_0x5219('0xe')](){for(const _0x3ec537 of this[_0x5219('0x9')])_0x3ec537[_0x5219('0xe')]();this['_visibleAnnotations'][_0x5219('0xe')](),this['collection'][_0x5219('0xe')](),super[_0x5219('0xe')]();}[_0x5219('0x8')](_0x24d0dd){this[_0x5219('0x12')](_0x5219('0xd'),_0x24d0dd);}[_0x5219('0xc')](_0x18e8ff){return new _0x9cfe95(_0x18e8ff);}[_0x5219('0x6')](_0x1cdc1d,_0x47073c){return new _0x22f3e5(_0x1cdc1d,_0x47073c);}[_0x5219('0x14')](_0x1b3f05){const _0xb9cf19=new Set(this[_0x5219('0xb')]);_0xb9cf19[_0x5219('0x17')](_0x1b3f05),this[_0x5219('0xb')]=_0xb9cf19;}[_0x5219('0x19')](_0x516289){const _0x71394f=new Set(this[_0x5219('0xb')]);_0x71394f[_0x5219('0x7')](_0x516289),this['activeAnnotations']=_0x71394f;}[_0x5219('0x0')](){const _0x535ddf=this[_0x5219('0x9')],_0x36582a=this[_0x5219('0x1d')];function _0x3a657e(_0x3b4f65){const _0x17f4df=_0x3b4f65[_0x5219('0x4')];_0x17f4df['isVisible']&&!_0x36582a['has'](_0x17f4df)?_0x36582a['add'](_0x17f4df):!_0x17f4df['isVisible']&&_0x36582a[_0x5219('0x2')](_0x17f4df)&&_0x36582a[_0x5219('0x18')](_0x17f4df),_0x17f4df[_0x5219('0xf')][_0x5219('0x1b')][_0x5219('0x18')](_0x17f4df[_0x5219('0xf')][_0x5219('0x1a')]),_0x17f4df[_0x5219('0xf')][_0x5219('0x1b')][_0x5219('0x17')](_0x17f4df[_0x5219('0xf')]['element']);}this[_0x5219('0x1c')](_0x535ddf,_0x5219('0x17'),(_0x3ae8c9,_0x571df8)=>{_0x571df8[_0x5219('0xa')]&&_0x36582a[_0x5219('0x17')](_0x571df8),this[_0x5219('0x1c')](_0x571df8,_0x5219('0x1'),_0x3a657e);}),this[_0x5219('0x1c')](_0x535ddf,_0x5219('0x18'),(_0x42a2ae,_0x4577b9)=>{_0x36582a[_0x5219('0x2')](_0x4577b9)&&_0x36582a[_0x5219('0x18')](_0x4577b9),this['stopListening'](_0x4577b9,_0x5219('0x1'),_0x3a657e);});}}
23
+ const _0x26b8=['remove','activate','createAnnotation','change:isVisible','refreshVisibility','add','focusTracker','getByInnerView','_removeActiveAnnotation','has','stopListening','collection','set','isVisible','fire','view','destroy','source','_activateAnnotation','_deactivateAllAnnotations','refreshPositioning','element','activeAnnotations','_addActiveAnnotation','Annotations','createAnnotationView','pluginName','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations'];(function(_0x322e55,_0x26b8aa){const _0x6759d6=function(_0x511e88){while(--_0x511e88){_0x322e55['push'](_0x322e55['shift']());}};_0x6759d6(++_0x26b8aa);}(_0x26b8,0x136));const _0x6759=function(_0x322e55,_0x26b8aa){_0x322e55=_0x322e55-0x0;let _0x6759d6=_0x26b8[_0x322e55];return _0x6759d6;};import{ContextPlugin as _0x3a666}from'ckeditor5/src/core';import _0x4b4a3a from'./annotation';import _0x4a45ff from'./annotationcollection';import _0x231645 from'./view/annotationview';export default class b extends _0x3a666{static get[_0x6759('0x6')](){return _0x6759('0x4');}constructor(_0x14cc1b){super(_0x14cc1b),this[_0x6759('0x14')]=new _0x4a45ff(),this[_0x6759('0x7')]=new _0x4a45ff(),this[_0x6759('0x15')](_0x6759('0x2'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x6759('0xe')](_0x4abd01){this[_0x6759('0x14')][_0x6759('0xe')](_0x4abd01);}[_0x6759('0x9')](_0x3cb7b9){this[_0x6759('0x14')][_0x6759('0x9')](_0x3cb7b9),_0x3cb7b9[_0x6759('0x19')]();}[_0x6759('0xd')](){for(const _0x348423 of this[_0x6759('0x14')])_0x348423[_0x6759('0xd')]();}[_0x6759('0x0')](){this['_visibleAnnotations'][_0x6759('0x0')]();}[_0x6759('0x10')](_0x57311c){return this['collection']['getByInnerView'](_0x57311c);}['deactivateAll'](){this[_0x6759('0x17')](_0x6759('0x1c'));}['destroy'](){for(const _0x41e9db of this[_0x6759('0x14')])_0x41e9db[_0x6759('0x19')]();this[_0x6759('0x7')][_0x6759('0x19')](),this[_0x6759('0x14')][_0x6759('0x19')](),super['destroy']();}[_0x6759('0xa')](_0x579e36){this[_0x6759('0x17')](_0x6759('0x1b'),_0x579e36);}[_0x6759('0xb')](_0x5a371f){return new _0x4b4a3a(_0x5a371f);}[_0x6759('0x5')](_0x5de769,_0x3b09ef){return new _0x231645(_0x5de769,_0x3b09ef);}[_0x6759('0x3')](_0x1a8148){const _0x3d89cd=new Set(this[_0x6759('0x2')]);_0x3d89cd['add'](_0x1a8148),this[_0x6759('0x2')]=_0x3d89cd;}[_0x6759('0x11')](_0x22d4cd){const _0x4e97d2=new Set(this['activeAnnotations']);_0x4e97d2['delete'](_0x22d4cd),this[_0x6759('0x2')]=_0x4e97d2;}[_0x6759('0x8')](){const _0x5d848b=this['collection'],_0x26a0bc=this[_0x6759('0x7')];function _0x3a50af(_0x37ec18){const _0x3a00ac=_0x37ec18[_0x6759('0x1a')];_0x3a00ac[_0x6759('0x16')]&&!_0x26a0bc[_0x6759('0x12')](_0x3a00ac)?_0x26a0bc[_0x6759('0xe')](_0x3a00ac):!_0x3a00ac[_0x6759('0x16')]&&_0x26a0bc['has'](_0x3a00ac)&&_0x26a0bc[_0x6759('0x9')](_0x3a00ac),_0x3a00ac['view'][_0x6759('0xf')][_0x6759('0x9')](_0x3a00ac[_0x6759('0x18')][_0x6759('0x1')]),_0x3a00ac[_0x6759('0x18')][_0x6759('0xf')][_0x6759('0xe')](_0x3a00ac[_0x6759('0x18')][_0x6759('0x1')]);}this['listenTo'](_0x5d848b,_0x6759('0xe'),(_0x4efcca,_0x37e4f8)=>{_0x37e4f8[_0x6759('0x16')]&&_0x26a0bc[_0x6759('0xe')](_0x37e4f8),this['listenTo'](_0x37e4f8,_0x6759('0xc'),_0x3a50af);}),this['listenTo'](_0x5d848b,_0x6759('0x9'),(_0x311695,_0x2f5c80)=>{_0x26a0bc['has'](_0x2f5c80)&&_0x26a0bc[_0x6759('0x9')](_0x2f5c80),this[_0x6759('0x13')](_0x2f5c80,_0x6759('0xc'),_0x3a50af);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f6b=['change:activeAnnotation','remove','init','_visibleAnnotations','delete','AnnotationsUIs','_activateAnnotation','type','activeUIs','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','activate','stopListening','function','_deactivateAllAnnotations','push','refilterAnnotations','collection','hasActive','find','context','attach','listenTo','isActive','get','length','deactivateAll','deactivate','add','register','from','_uis','activeAnnotations','detach','plugins','setActiveAnnotation','set','has','_removeActiveAnnotation','annotationsuis-missing-ui','annotationsuis-register-already-registered','size','pluginName','_uisData','destroy'];(function(_0x3f1a36,_0x2f6b49){const _0x222e3c=function(_0x31c5c5){while(--_0x31c5c5){_0x3f1a36['push'](_0x3f1a36['shift']());}};_0x222e3c(++_0x2f6b49);}(_0x2f6b,0x16d));const _0x222e=function(_0x3f1a36,_0x2f6b49){_0x3f1a36=_0x3f1a36-0x0;let _0x222e3c=_0x2f6b[_0x3f1a36];return _0x222e3c;};import{ContextPlugin as _0x86448f}from'ckeditor5/src/core';import{CKEditorError as _0x519c9e}from'ckeditor5/src/utils';import _0x45efe3,{bindAnnotationCollections as _0x242ca8}from'./annotationcollection';import _0x5c75f1 from'./annotations';export default class M extends _0x86448f{static get['requires'](){return[_0x5c75f1];}static get[_0x222e('0x25')](){return _0x222e('0x0');}constructor(_0x2f73b5){super(_0x2f73b5),this[_0x222e('0x3')]=new Set(),this[_0x222e('0x1a')]=new Map(),this[_0x222e('0x26')]=new Map();}[_0x222e('0x2a')](){const _0x2e4d1e=this[_0x222e('0xf')][_0x222e('0x1d')][_0x222e('0x13')](_0x5c75f1);this[_0x222e('0x11')](_0x2e4d1e,_0x222e('0x1'),(_0x1fc851,_0x59715a)=>{for(const _0x3f305b of this[_0x222e('0x3')]){const _0x190799=this[_0x222e('0x1a')][_0x222e('0x13')](_0x3f305b);(0x0,this[_0x222e('0x26')][_0x222e('0x13')](_0x3f305b)['filter'])(_0x59715a)&&_0x190799[_0x222e('0x1e')](_0x59715a);}}),this[_0x222e('0x11')](_0x2e4d1e,_0x222e('0x9'),()=>{for(const _0x20f974 of this[_0x222e('0x3')]){this[_0x222e('0x1a')][_0x222e('0x13')](_0x20f974)[_0x222e('0x1e')](null);}}),this[_0x222e('0x11')](_0x2e4d1e['_visibleAnnotations'],_0x222e('0x17'),(_0x44faa0,_0x8dd248)=>{this[_0x222e('0x4')](_0x8dd248);});}[_0x222e('0xd')](){return this[_0x222e('0x3')][_0x222e('0x24')]>0x0;}[_0x222e('0x12')](_0x55785f){return this[_0x222e('0x3')]['has'](_0x55785f);}[_0x222e('0x6')](_0x4f7173,_0x27da01=()=>!0x0){const _0x2b42a=this['context'][_0x222e('0x1d')][_0x222e('0x13')](_0x5c75f1);if(!this[_0x222e('0x1a')][_0x222e('0x20')](_0x4f7173))throw new _0x519c9e(_0x222e('0x22'),this,{'uiName':_0x4f7173});this[_0x222e('0x12')](_0x4f7173)&&this[_0x222e('0x16')](_0x4f7173),this['activeUIs'][_0x222e('0x17')](_0x4f7173);const _0x191c09=new _0x45efe3(),_0x5890f7=_0x2b42a[_0x222e('0x2b')];_0x242ca8({'source':_0x5890f7,'target':_0x191c09,'filter':_0x27da01}),this[_0x222e('0x26')]['set'](_0x4f7173,{'collection':_0x191c09,'filter':_0x27da01});const _0x11cd83=this['_uis'][_0x222e('0x13')](_0x4f7173);_0x11cd83[_0x222e('0x10')](_0x191c09),this[_0x222e('0x11')](_0x11cd83,_0x222e('0x28'),(_0xda4c12,_0x4f5f75,_0x4e281e,_0x3d9045)=>{_0x3d9045&&_0x2b42a[_0x222e('0x21')](_0x3d9045),_0x4e281e&&_0x2b42a['_addActiveAnnotation'](_0x4e281e);});}['deactivate'](_0x1318c8){if(this['activeUIs'][_0x222e('0x2c')](_0x1318c8),!this[_0x222e('0x1a')][_0x222e('0x20')](_0x1318c8))throw new _0x519c9e(_0x222e('0x22'),this,{'uiName':_0x1318c8});const _0x47484d=this[_0x222e('0x1a')]['get'](_0x1318c8);_0x47484d['detach'](),this[_0x222e('0x7')](_0x47484d),this[_0x222e('0x26')][_0x222e('0x13')](_0x1318c8)[_0x222e('0xc')][_0x222e('0x27')](),this['_uisData']['delete'](_0x1318c8);}['switchTo'](_0x534e78){if(!this[_0x222e('0x1a')][_0x222e('0x20')](_0x534e78))throw new _0x519c9e(_0x222e('0x22'),this,{'uiName':_0x534e78});const _0x47a29c=this[_0x222e('0xf')]['plugins']['get'](_0x5c75f1),_0x47d1e4=Array['from'](_0x47a29c[_0x222e('0x1b')])[0x0]||null;this[_0x222e('0x15')](),this['activate'](_0x534e78);const _0x39f707=this[_0x222e('0x1a')][_0x222e('0x13')](_0x534e78);_0x39f707['setActiveAnnotation'](_0x47d1e4),_0x39f707[_0x222e('0x5')]&&_0x47d1e4&&_0x39f707[_0x222e('0x5')]([_0x47d1e4]);}[_0x222e('0x15')](){for(const _0x39acd6 of this[_0x222e('0x3')])this[_0x222e('0x16')](_0x39acd6);}[_0x222e('0x18')](_0x37f437,_0x15cf1f){if(this[_0x222e('0x1a')][_0x222e('0x20')](_0x37f437))throw new _0x519c9e(_0x222e('0x23'));if(_0x222e('0x8')!=typeof _0x15cf1f[_0x222e('0x10')]||'function'!=typeof _0x15cf1f[_0x222e('0x1c')]||_0x222e('0x8')!=typeof _0x15cf1f[_0x222e('0x1e')])throw new _0x519c9e('annotationsuis-register-invalid-interface',null);this[_0x222e('0x1a')][_0x222e('0x1f')](_0x37f437,_0x15cf1f);}[_0x222e('0xb')](){const _0x49baaa=this[_0x222e('0xf')]['plugins']['get'](_0x5c75f1)[_0x222e('0xc')],_0x5a92ae=new Map(),_0x3a505f=Array[_0x222e('0x19')](this[_0x222e('0x3')]);for(const _0x534575 of this[_0x222e('0x3')]){const _0x1d615f=this[_0x222e('0x26')][_0x222e('0x13')](_0x534575)[_0x222e('0xc')];for(const _0x522227 of _0x1d615f)_0x5a92ae[_0x222e('0x1f')](_0x522227,_0x534575);}for(const _0x85fcf6 of _0x49baaa){const _0x30e0f8=_0x5a92ae[_0x222e('0x13')](_0x85fcf6);this[_0x222e('0x4')](_0x85fcf6);const _0x4822e2=_0x3a505f[_0x222e('0xe')](_0x56dbe7=>this[_0x222e('0x26')][_0x222e('0x13')](_0x56dbe7)['filter'](_0x85fcf6));_0x30e0f8!==_0x4822e2&&(_0x30e0f8&&this[_0x222e('0x26')][_0x222e('0x13')](_0x30e0f8)[_0x222e('0xc')][_0x222e('0x29')](_0x85fcf6),_0x4822e2&&this[_0x222e('0x26')]['get'](_0x4822e2)['collection'][_0x222e('0x17')](_0x85fcf6));}}[_0x222e('0x27')](){this[_0x222e('0x15')](),super[_0x222e('0x27')]();}[_0x222e('0x4')](_0x183ea5){const _0x170f4d=[];for(const _0x49a39e of this[_0x222e('0x3')]){(0x0,this[_0x222e('0x26')]['get'](_0x49a39e)['filter'])(_0x183ea5)&&_0x170f4d[_0x222e('0xa')](_0x49a39e);}if(_0x170f4d[_0x222e('0x14')]>0x1)throw new _0x519c9e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x170f4d,'annotationType':_0x183ea5[_0x222e('0x2')]});}}
23
+ const _0x5d8e=['push','get','_removeActiveAnnotation','annotationsuis-missing-ui','activeAnnotations','context','from','_addActiveAnnotation','function','refilterAnnotations','annotationsuis-register-invalid-interface','deactivate','deactivateAll','_uis','detach','_uisData','size','change:activeAnnotation','length','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','annotationsuis-register-already-registered','_visibleAnnotations','isActive','attach','listenTo','collection','delete','activeUIs','filter','has','plugins','_setSelectedAnnotations','switchTo','set','register','_activateAnnotation','annotationsuis-annotation-mismatch','destroy','add','AnnotationsUIs','activate'];(function(_0xd4d5c2,_0x5d8e17){const _0x179655=function(_0x281a22){while(--_0x281a22){_0xd4d5c2['push'](_0xd4d5c2['shift']());}};_0x179655(++_0x5d8e17);}(_0x5d8e,0x9b));const _0x1796=function(_0xd4d5c2,_0x5d8e17){_0xd4d5c2=_0xd4d5c2-0x0;let _0x179655=_0x5d8e[_0xd4d5c2];return _0x179655;};import{ContextPlugin as _0x3ce081}from'ckeditor5/src/core';import{CKEditorError as _0x36e025}from'ckeditor5/src/utils';import _0x1d995f,{bindAnnotationCollections as _0x5a7ddb}from'./annotationcollection';import _0x28ad51 from'./annotations';export default class M extends _0x3ce081{static get['requires'](){return[_0x28ad51];}static get['pluginName'](){return _0x1796('0xb');}constructor(_0x5cf027){super(_0x5cf027),this[_0x1796('0x29')]=new Set(),this['_uis']=new Map(),this[_0x1796('0x1c')]=new Map();}['init'](){const _0x3cc2d8=this['context']['plugins'][_0x1796('0xe')](_0x28ad51);this[_0x1796('0x26')](_0x3cc2d8,_0x1796('0x7'),(_0x4ee690,_0x1964f6)=>{for(const _0x22e83c of this[_0x1796('0x29')]){const _0x4fd267=this[_0x1796('0x1a')]['get'](_0x22e83c);(0x0,this[_0x1796('0x1c')][_0x1796('0xe')](_0x22e83c)[_0x1796('0x0')])(_0x1964f6)&&_0x4fd267[_0x1796('0x21')](_0x1964f6);}}),this[_0x1796('0x26')](_0x3cc2d8,'_deactivateAllAnnotations',()=>{for(const _0x2637c5 of this['activeUIs']){this[_0x1796('0x1a')][_0x1796('0xe')](_0x2637c5)[_0x1796('0x21')](null);}}),this[_0x1796('0x26')](_0x3cc2d8[_0x1796('0x23')],_0x1796('0xa'),(_0x8d4f3b,_0x347311)=>{this[_0x1796('0x20')](_0x347311);});}['hasActive'](){return this[_0x1796('0x29')][_0x1796('0x1d')]>0x0;}[_0x1796('0x24')](_0x17233f){return this[_0x1796('0x29')][_0x1796('0x1')](_0x17233f);}[_0x1796('0xc')](_0x101f96,_0xa749bb=()=>!0x0){const _0x4eb829=this[_0x1796('0x12')]['plugins'][_0x1796('0xe')](_0x28ad51);if(!this[_0x1796('0x1a')][_0x1796('0x1')](_0x101f96))throw new _0x36e025('annotationsuis-missing-ui',this,{'uiName':_0x101f96});this[_0x1796('0x24')](_0x101f96)&&this[_0x1796('0x18')](_0x101f96),this[_0x1796('0x29')]['add'](_0x101f96);const _0x3293a2=new _0x1d995f(),_0x292b7a=_0x4eb829[_0x1796('0x23')];_0x5a7ddb({'source':_0x292b7a,'target':_0x3293a2,'filter':_0xa749bb}),this[_0x1796('0x1c')][_0x1796('0x5')](_0x101f96,{'collection':_0x3293a2,'filter':_0xa749bb});const _0x469d20=this[_0x1796('0x1a')][_0x1796('0xe')](_0x101f96);_0x469d20[_0x1796('0x25')](_0x3293a2),this[_0x1796('0x26')](_0x469d20,_0x1796('0x1e'),(_0x14519a,_0x39fc9f,_0x2b26ac,_0x5db4fa)=>{_0x5db4fa&&_0x4eb829[_0x1796('0xf')](_0x5db4fa),_0x2b26ac&&_0x4eb829[_0x1796('0x14')](_0x2b26ac);});}[_0x1796('0x18')](_0x55ce40){if(this[_0x1796('0x29')][_0x1796('0x28')](_0x55ce40),!this['_uis'][_0x1796('0x1')](_0x55ce40))throw new _0x36e025(_0x1796('0x10'),this,{'uiName':_0x55ce40});const _0x12aa6f=this['_uis'][_0x1796('0xe')](_0x55ce40);_0x12aa6f[_0x1796('0x1b')](),this['stopListening'](_0x12aa6f),this[_0x1796('0x1c')][_0x1796('0xe')](_0x55ce40)[_0x1796('0x27')]['destroy'](),this[_0x1796('0x1c')][_0x1796('0x28')](_0x55ce40);}[_0x1796('0x4')](_0x507e12){if(!this['_uis'][_0x1796('0x1')](_0x507e12))throw new _0x36e025(_0x1796('0x10'),this,{'uiName':_0x507e12});const _0x45f7df=this[_0x1796('0x12')][_0x1796('0x2')]['get'](_0x28ad51),_0x2112f1=Array['from'](_0x45f7df[_0x1796('0x11')])[0x0]||null;this[_0x1796('0x19')](),this['activate'](_0x507e12);const _0xd658d6=this[_0x1796('0x1a')][_0x1796('0xe')](_0x507e12);_0xd658d6[_0x1796('0x21')](_0x2112f1),_0xd658d6['_setSelectedAnnotations']&&_0x2112f1&&_0xd658d6[_0x1796('0x3')]([_0x2112f1]);}[_0x1796('0x19')](){for(const _0x2019e0 of this[_0x1796('0x29')])this[_0x1796('0x18')](_0x2019e0);}[_0x1796('0x6')](_0x4b040f,_0x1e526d){if(this[_0x1796('0x1a')][_0x1796('0x1')](_0x4b040f))throw new _0x36e025(_0x1796('0x22'));if(_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x25')]||_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x1b')]||_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x21')])throw new _0x36e025(_0x1796('0x17'),null);this[_0x1796('0x1a')]['set'](_0x4b040f,_0x1e526d);}[_0x1796('0x16')](){const _0x172430=this[_0x1796('0x12')][_0x1796('0x2')][_0x1796('0xe')](_0x28ad51)[_0x1796('0x27')],_0x53c910=new Map(),_0xaeb4fd=Array[_0x1796('0x13')](this[_0x1796('0x29')]);for(const _0x4fa98c of this[_0x1796('0x29')]){const _0xb4b8c1=this['_uisData'][_0x1796('0xe')](_0x4fa98c)[_0x1796('0x27')];for(const _0x166eca of _0xb4b8c1)_0x53c910['set'](_0x166eca,_0x4fa98c);}for(const _0xa4caf3 of _0x172430){const _0x2b57e8=_0x53c910[_0x1796('0xe')](_0xa4caf3);this[_0x1796('0x20')](_0xa4caf3);const _0x40405d=_0xaeb4fd['find'](_0x415caa=>this[_0x1796('0x1c')][_0x1796('0xe')](_0x415caa)[_0x1796('0x0')](_0xa4caf3));_0x2b57e8!==_0x40405d&&(_0x2b57e8&&this[_0x1796('0x1c')]['get'](_0x2b57e8)[_0x1796('0x27')]['remove'](_0xa4caf3),_0x40405d&&this[_0x1796('0x1c')]['get'](_0x40405d)[_0x1796('0x27')][_0x1796('0xa')](_0xa4caf3));}}['destroy'](){this['deactivateAll'](),super[_0x1796('0x9')]();}[_0x1796('0x20')](_0x4f4a26){const _0x3dc0ba=[];for(const _0x24a0d8 of this[_0x1796('0x29')]){(0x0,this['_uisData']['get'](_0x24a0d8)[_0x1796('0x0')])(_0x4f4a26)&&_0x3dc0ba[_0x1796('0xd')](_0x24a0d8);}if(_0x3dc0ba[_0x1796('0x1f')]>0x1)throw new _0x36e025(_0x1796('0x8'),null,{'matchedUIs':_0x3dc0ba,'annotationType':_0x4f4a26['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43ea=['isCollapsed','editorannotations-invalid-source-callback','document','_dataCollectors','change:range','fire','delete','init','registerAnnotation','from','change:isFocused','pluginName','addSourceCollector','collection','sort','_editorAnnotations','requires','editing','annotation','model','blur','uiUpdate','getRanges','plugins','selection','editor','containsRange','isReadOnly','focusTracker','has','getByInnerView','_editorAnnotationsData','function','hasDomSelection','remove','directChange','listenTo','view','range','innerView','push','update','refresh','add','refreshSelectedViews'];(function(_0x4cd92d,_0x43ea9f){const _0x1b6d04=function(_0x7ddee9){while(--_0x7ddee9){_0x4cd92d['push'](_0x4cd92d['shift']());}};_0x1b6d04(++_0x43ea9f);}(_0x43ea,0x1a7));const _0x1b6d=function(_0x4cd92d,_0x43ea9f){_0x4cd92d=_0x4cd92d-0x0;let _0x1b6d04=_0x43ea[_0x4cd92d];return _0x1b6d04;};import{Plugin as _0x12c412}from'ckeditor5/src/core';import{CKEditorError as _0x33b60c}from'ckeditor5/src/utils';import{debounce as _0x312117}from'lodash-es';import _0x2cb62e from'./annotations';export default class k extends _0x12c412{static get[_0x1b6d('0x2b')](){return[_0x2cb62e];}static get[_0x1b6d('0x26')](){return'EditorAnnotations';}constructor(_0x1961dd){super(_0x1961dd),this[_0x1b6d('0x1e')]=new Set(),this[_0x1b6d('0x2a')]=new Set();}[_0x1b6d('0x22')](){const _0x110d48=this[_0x1b6d('0x7')],_0x33d9e8=_0x110d48[_0x1b6d('0x1')][_0x1b6d('0x1d')][_0x1b6d('0x6')],_0x9cfba3=_0x312117(()=>this[_0x1b6d('0x1a')](),0xa);_0x33d9e8['on'](_0x1b6d('0x1f'),(_0x3bce26,_0x12aa5e)=>{_0x12aa5e[_0x1b6d('0x11')]&&(_0x9cfba3['cancel'](),this[_0x1b6d('0x1a')]());}),this[_0x1b6d('0x12')](_0x110d48['editing']['view'][_0x1b6d('0x1d')],_0x1b6d('0x25'),(_0x3e7fc4,_0x3e15ee,_0x25edcd)=>{_0x25edcd&&_0x9cfba3();}),this['listenTo'](_0x110d48['ui'][_0x1b6d('0xa')],_0x1b6d('0x25'),(_0x373bc1,_0x5ba019,_0x47e9e4)=>{_0x47e9e4||_0x110d48[_0x1b6d('0x9')]||this['fire'](_0x1b6d('0x2'),{'isAnnotationTracked':_0x13427b=>this['_editorAnnotationsData'][_0x1b6d('0xb')](_0x13427b[_0x1b6d('0x15')])});}),this[_0x1b6d('0x12')](this[_0x1b6d('0x7')]['ui'],_0x1b6d('0x17'),()=>this[_0x1b6d('0x20')](_0x1b6d('0x3')));}[_0x1b6d('0x23')](_0x3d8cfd){if(this[_0x1b6d('0x2a')][_0x1b6d('0xb')](_0x3d8cfd[_0x1b6d('0x13')]))return;this[_0x1b6d('0x2a')][_0x1b6d('0x19')](_0x3d8cfd['view']),this[_0x1b6d('0x7')]['ui'][_0x1b6d('0xa')][_0x1b6d('0x19')](_0x3d8cfd['view']['element']);const _0x5da015=this[_0x1b6d('0x7')][_0x1b6d('0x5')]['get'](_0x2cb62e);this[_0x1b6d('0x12')](_0x5da015[_0x1b6d('0x28')],_0x1b6d('0x10'),(_0xd83084,_0x538cd7)=>{this[_0x1b6d('0x7')]['ui']['focusTracker']['remove'](_0x538cd7[_0x1b6d('0x13')]['element']),this[_0x1b6d('0x2a')][_0x1b6d('0x21')](_0x538cd7[_0x1b6d('0x13')]);});}[_0x1b6d('0xf')](){return this[_0x1b6d('0x7')][_0x1b6d('0x2c')][_0x1b6d('0x13')][_0x1b6d('0xf')];}[_0x1b6d('0x27')](_0x2d3ac4){if(_0x1b6d('0xe')!=typeof _0x2d3ac4)throw new _0x33b60c(_0x1b6d('0x1c'));this[_0x1b6d('0x1e')]['add'](_0x2d3ac4);}['refreshSelectedViews'](){this['fire'](_0x1b6d('0x18'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1afe65,annotations:_0x5df738}){const _0x5d76a4=[],_0x55984e=this[_0x1b6d('0x7')][_0x1b6d('0x1')][_0x1b6d('0x1d')][_0x1b6d('0x6')],_0x25b46b=Array[_0x1b6d('0x24')](_0x55984e[_0x1b6d('0x4')]());for(const [_0x49cf18,_0x1dcb39]of this[_0x1b6d('0xd')]){const _0x3e9c29=_0x19482b(_0x1dcb39),_0x51e08a=_0x5df738[_0x1b6d('0xc')](_0x49cf18);_0x3e9c29&&_0x51e08a&&_0x5d76a4[_0x1b6d('0x16')]({'annotation':_0x51e08a,'range':_0x3e9c29});}function _0x19482b(_0x40965e){for(const _0x45f424 of _0x40965e)for(const _0x32abfd of _0x25b46b)if(_0x45f424[_0x1b6d('0x8')](_0x32abfd,!_0x55984e[_0x1b6d('0x1b')]))return _0x45f424;return null;}return _0x5d76a4[_0x1b6d('0x29')]((_0xcbc8e6,_0x2eb3e7)=>{const _0x5e95a7=_0xcbc8e6[_0x1b6d('0x14')],_0x1c31bb=_0x2eb3e7[_0x1b6d('0x14')];if(!_0x5e95a7['isEqual'](_0x1c31bb)){if(_0x5e95a7[_0x1b6d('0x8')](_0x1c31bb,!0x0))return 0x1;if(_0x1c31bb[_0x1b6d('0x8')](_0x5e95a7,!0x0))return-0x1;}return _0xcbc8e6[_0x1b6d('0x0')]==_0x1afe65?-0x1:_0x2eb3e7[_0x1b6d('0x0')]==_0x1afe65?0x1:0x0;})['map'](_0x3ecae8=>_0x3ecae8[_0x1b6d('0x0')]);}get['_editorAnnotationsData'](){const _0x4860a0=new Map();for(const _0x28fd39 of Array['from'](this[_0x1b6d('0x1e')]))for(const [_0x19fac1,_0x368542]of _0x28fd39())_0x4860a0['set'](_0x19fac1,_0x368542);return _0x4860a0;}}
23
+ const _0x51c3=['annotation','getByInnerView','from','view','_editorAnnotations','document','change:isFocused','set','editor','getRanges','get','map','editorannotations-invalid-source-callback','refresh','innerView','cancel','isCollapsed','refreshSelectedViews','change:range','editing','getOrderedSelectedAnnotations','EditorAnnotations','uiUpdate','blur','collection','model','focusTracker','isReadOnly','sort','range','selection','add','listenTo','fire','element','init','remove','hasDomSelection','containsRange','addSourceCollector','_dataCollectors','directChange','isEqual','delete','pluginName','_editorAnnotationsData'];(function(_0x39f55b,_0x51c33e){const _0x5330f0=function(_0x39fcce){while(--_0x39fcce){_0x39f55b['push'](_0x39f55b['shift']());}};_0x5330f0(++_0x51c33e);}(_0x51c3,0x157));const _0x5330=function(_0x39f55b,_0x51c33e){_0x39f55b=_0x39f55b-0x0;let _0x5330f0=_0x51c3[_0x39f55b];return _0x5330f0;};import{Plugin as _0x1c8180}from'ckeditor5/src/core';import{CKEditorError as _0x5dd79e}from'ckeditor5/src/utils';import{debounce as _0x28dfa2}from'lodash-es';import _0x2bd8ec from'./annotations';export default class k extends _0x1c8180{static get['requires'](){return[_0x2bd8ec];}static get[_0x5330('0x17')](){return _0x5330('0x0');}constructor(_0x46f423){super(_0x46f423),this[_0x5330('0x13')]=new Set(),this[_0x5330('0x1d')]=new Set();}[_0x5330('0xe')](){const _0x1d82f0=this[_0x5330('0x21')],_0x5d9e6a=_0x1d82f0[_0x5330('0x4')][_0x5330('0x1e')]['selection'],_0xdc33e8=_0x28dfa2(()=>this['refreshSelectedViews'](),0xa);_0x5d9e6a['on'](_0x5330('0x2b'),(_0x3d1781,_0x1a312a)=>{_0x1a312a[_0x5330('0x14')]&&(_0xdc33e8[_0x5330('0x28')](),this[_0x5330('0x2a')]());}),this[_0x5330('0xb')](_0x1d82f0[_0x5330('0x2c')][_0x5330('0x1c')][_0x5330('0x1e')],_0x5330('0x1f'),(_0x217355,_0xdc1d9c,_0x5f4316)=>{_0x5f4316&&_0xdc33e8();}),this[_0x5330('0xb')](_0x1d82f0['ui'][_0x5330('0x5')],'change:isFocused',(_0x3986b3,_0x242e4f,_0x39680f)=>{_0x39680f||_0x1d82f0[_0x5330('0x6')]||this['fire'](_0x5330('0x2'),{'isAnnotationTracked':_0x297a59=>this['_editorAnnotationsData']['has'](_0x297a59[_0x5330('0x27')])});}),this[_0x5330('0xb')](this[_0x5330('0x21')]['ui'],'update',()=>this[_0x5330('0xc')](_0x5330('0x1')));}['registerAnnotation'](_0x2dec73){if(this[_0x5330('0x1d')]['has'](_0x2dec73[_0x5330('0x1c')]))return;this[_0x5330('0x1d')][_0x5330('0xa')](_0x2dec73[_0x5330('0x1c')]),this[_0x5330('0x21')]['ui']['focusTracker'][_0x5330('0xa')](_0x2dec73[_0x5330('0x1c')][_0x5330('0xd')]);const _0x23b86b=this['editor']['plugins'][_0x5330('0x23')](_0x2bd8ec);this['listenTo'](_0x23b86b[_0x5330('0x3')],_0x5330('0xf'),(_0xeedea5,_0x23ba73)=>{this[_0x5330('0x21')]['ui']['focusTracker'][_0x5330('0xf')](_0x23ba73[_0x5330('0x1c')][_0x5330('0xd')]),this[_0x5330('0x1d')][_0x5330('0x16')](_0x23ba73['view']);});}[_0x5330('0x10')](){return this['editor'][_0x5330('0x2c')][_0x5330('0x1c')]['hasDomSelection'];}[_0x5330('0x12')](_0x46e72c){if('function'!=typeof _0x46e72c)throw new _0x5dd79e(_0x5330('0x25'));this[_0x5330('0x13')][_0x5330('0xa')](_0x46e72c);}[_0x5330('0x2a')](){this[_0x5330('0xc')](_0x5330('0x26'));}[_0x5330('0x2d')]({activeAnnotation:_0x5e085c,annotations:_0x352b37}){const _0x2f2d9b=[],_0x23f338=this[_0x5330('0x21')][_0x5330('0x4')]['document'][_0x5330('0x9')],_0x50c42b=Array[_0x5330('0x1b')](_0x23f338[_0x5330('0x22')]());for(const [_0x1addda,_0x447952]of this[_0x5330('0x18')]){const _0x55461f=_0x23181e(_0x447952),_0x10ea97=_0x352b37[_0x5330('0x1a')](_0x1addda);_0x55461f&&_0x10ea97&&_0x2f2d9b['push']({'annotation':_0x10ea97,'range':_0x55461f});}function _0x23181e(_0x329fe6){for(const _0x1ed227 of _0x329fe6)for(const _0x36d07d of _0x50c42b)if(_0x1ed227[_0x5330('0x11')](_0x36d07d,!_0x23f338[_0x5330('0x29')]))return _0x1ed227;return null;}return _0x2f2d9b[_0x5330('0x7')]((_0x960c70,_0x3a1280)=>{const _0x1b6ce8=_0x960c70[_0x5330('0x8')],_0x43f488=_0x3a1280[_0x5330('0x8')];if(!_0x1b6ce8[_0x5330('0x15')](_0x43f488)){if(_0x1b6ce8[_0x5330('0x11')](_0x43f488,!0x0))return 0x1;if(_0x43f488[_0x5330('0x11')](_0x1b6ce8,!0x0))return-0x1;}return _0x960c70['annotation']==_0x5e085c?-0x1:_0x3a1280[_0x5330('0x19')]==_0x5e085c?0x1:0x0;})[_0x5330('0x24')](_0x42c564=>_0x42c564[_0x5330('0x19')]);}get[_0x5330('0x18')](){const _0x16d4cc=new Map();for(const _0x58b70d of Array['from'](this[_0x5330('0x13')]))for(const [_0xcdd404,_0x3d9b16]of _0x58b70d())_0x16d4cc[_0x5330('0x20')](_0xcdd404,_0x3d9b16);return _0x16d4cc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56f9=['requires','top','collapse','isFocused','set','attach','refresh','remove','_selectedAnnotations','InlineAnnotations','afterInit','plugins','destroy','left','blur','change:visibleView','showStack','getBoundingClientRect','_addedAnnotations','hasView','focusTracker','hasActive','Esc','width','setActiveAnnotation','selection','activeAnnotation','listenTo','map','bottom','register','_balloon','view','isAttached','getFirstRange','inline','_removeAnnotationFromBalloon','editing','length','add','getByView','_closeAnnotation','includes','every','init','change:height','_setSelectedAnnotations','addObserver','_addAnnotationToBalloon','document','delete','fromRect','_forceRefresh','domConverter','annotations','update','stopListening','targetRect','inlineannotations-not-allowed-with-context','right','focus','getClientRects','editor','isActive','find','get','keystrokes','visibleView','detach','_manuallyClosed','context','has','pluginName','push','_getBalloonTargetForAnnotation','getOrderedSelectedAnnotations','updatePosition'];(function(_0x8fb7bb,_0x56f9a5){const _0x29af8a=function(_0x1aba22){while(--_0x1aba22){_0x8fb7bb['push'](_0x8fb7bb['shift']());}};_0x29af8a(++_0x56f9a5);}(_0x56f9,0x89));const _0x29af=function(_0x8fb7bb,_0x56f9a5){_0x8fb7bb=_0x8fb7bb-0x0;let _0x29af8a=_0x56f9[_0x8fb7bb];return _0x29af8a;};import{Plugin as _0x4e4fb3}from'ckeditor5/src/core';import _0xa0360a from'./annotationsuis';import _0xac1013 from'./editorannotations';import{ContextualBalloon as _0x187e5f}from'ckeditor5/src/ui';import{MouseObserver as _0x482d2d}from'ckeditor5/src/engine';import{CKEditorError as _0x5aceb7,Rect as _0x2f9ec5}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x4e4fb3{static get[_0x29af('0x11')](){return[_0xac1013,_0x187e5f,_0xa0360a];}static get[_0x29af('0xc')](){return _0x29af('0x1a');}constructor(_0x1611d6){super(_0x1611d6),_0x1611d6[_0x29af('0x36')][_0x29af('0x31')][_0x29af('0x40')](_0x482d2d),this['isAttached']=!0x1,this[_0x29af('0x15')](_0x29af('0x2b'),null),this[_0x29af('0x47')]=null,this[_0x29af('0x9')]=new Set(),this['_balloon']=_0x1611d6['plugins'][_0x29af('0x5')](_0x187e5f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this[_0x29af('0x45')]=!0x1;}[_0x29af('0x3d')](){const _0x5977d1=this[_0x29af('0x2')][_0x29af('0x1c')][_0x29af('0x5')](_0xa0360a);_0x5977d1[_0x29af('0xa')]===this[_0x29af('0x2')]&&(_0x5977d1[_0x29af('0x2f')]('inline',this),this[_0x29af('0x2')][_0x29af('0x6')][_0x29af('0x15')]('Esc',(_0x4f5068,_0x45550e)=>{const _0x32e8e9=this[_0x29af('0x30')];if(this[_0x29af('0x32')]&&_0x32e8e9['visibleView']){const _0x4e815e=this[_0x29af('0x47')][_0x29af('0x39')](_0x32e8e9['visibleView']);_0x4e815e&&this[_0x29af('0x3a')](_0x4e815e),_0x45550e();}}));}[_0x29af('0x1b')](){const _0x2cbf1f=this[_0x29af('0x2')][_0x29af('0x1c')][_0x29af('0x5')](_0xa0360a);_0x2cbf1f['context']===this[_0x29af('0x2')]&&(_0x2cbf1f[_0x29af('0x26')]()||_0x2cbf1f['switchTo'](_0x29af('0x34')));}[_0x29af('0x29')](_0x1abbaf){_0x1abbaf!==this[_0x29af('0x2b')]&&(this[_0x29af('0x2b')]&&(this[_0x29af('0x2b')][_0x29af('0x3')]=!0x1),_0x1abbaf&&this[_0x29af('0x2')]['ui'][_0x29af('0x25')][_0x29af('0x14')]&&(this[_0x29af('0x47')][_0x29af('0xb')](_0x1abbaf)&&this[_0x29af('0x41')](_0x1abbaf,!0x0),_0x1abbaf['isActive']=!0x0),_0x1abbaf||this[_0x29af('0x3f')]([]),this['activeAnnotation']=_0x1abbaf);}[_0x29af('0x16')](_0x3caa34){this['annotations']=_0x3caa34;const _0x5639c6=this['editor'][_0x29af('0x1c')][_0x29af('0x5')](_0xa0360a),_0x4bfff0=this[_0x29af('0x30')];if(this['isAttached'])throw new _0x5aceb7('inlineannotations-attach-already-attached',this);if(_0x5639c6[_0x29af('0xa')]!==this[_0x29af('0x2')])throw new _0x5aceb7(_0x29af('0x4b'),this);const _0x5ef627=this[_0x29af('0x2')][_0x29af('0x1c')][_0x29af('0x5')](_0xac1013);this[_0x29af('0x2c')](_0x5ef627,_0x29af('0x17'),()=>{const _0x12abbe=_0x5ef627[_0x29af('0xf')]({'annotations':this[_0x29af('0x47')],'activeAnnotation':this[_0x29af('0x2b')]});var _0x6b9807,_0x8bccd7;!this[_0x29af('0x45')]&&(_0x6b9807=_0x12abbe,_0x8bccd7=this['_selectedAnnotations'],_0x6b9807[_0x29af('0x37')]===_0x8bccd7[_0x29af('0x37')]&&_0x6b9807[_0x29af('0x3c')](_0x4662e5=>_0x8bccd7[_0x29af('0x3b')](_0x4662e5)))||(this['_forceRefresh']=!0x1,this[_0x29af('0x3f')](_0x12abbe),this[_0x29af('0x29')](_0x12abbe[0x0]||null));}),this[_0x29af('0x2c')](_0x5ef627,_0x29af('0x1f'),(_0x5d7824,{isAnnotationTracked:_0x4f53aa})=>{this[_0x29af('0x2b')]&&_0x4f53aa(this[_0x29af('0x2b')])&&(this[_0x29af('0x3f')]([]),this[_0x29af('0x29')](null));}),this[_0x29af('0x2c')](this[_0x29af('0x2')]['ui'][_0x29af('0x25')],'change:isFocused',(_0x336656,_0xd63b83,_0x57a091)=>{_0x57a091||this['setActiveAnnotation'](null);}),this[_0x29af('0x2c')](_0x3caa34,'remove',(_0x25e725,_0x8a22a)=>{this[_0x29af('0x35')](_0x8a22a),_0x8a22a===this[_0x29af('0x2b')]&&this[_0x29af('0x29')](null);}),this[_0x29af('0x2c')](_0x4bfff0,_0x29af('0x20'),(_0x43d651,_0x27678a,_0x151789,_0x5ce006)=>{_0x5ce006&&this['stopListening'](_0x5ce006);const _0x3cf1a3=_0x3caa34[_0x29af('0x39')](_0x151789);_0x151789&&_0x3cf1a3&&(this[_0x29af('0x2c')](_0x151789,_0x29af('0x3e'),()=>{_0x4bfff0[_0x29af('0x10')]();}),this['listenTo'](_0x151789,_0x29af('0x27'),()=>{this['_closeAnnotation'](_0x3cf1a3),this[_0x29af('0x2')][_0x29af('0x36')]['view'][_0x29af('0x0')]();}),this[_0x29af('0x2b')]!==_0x3cf1a3&&this[_0x29af('0x29')](_0x3cf1a3));}),this[_0x29af('0x2c')](this[_0x29af('0x2')]['ui'],_0x29af('0x48'),()=>{_0x4bfff0['visibleView']&&(_0x3caa34[_0x29af('0x39')](_0x4bfff0[_0x29af('0x7')])&&_0x4bfff0[_0x29af('0x10')]());}),this[_0x29af('0x2c')](this[_0x29af('0x2')][_0x29af('0x36')][_0x29af('0x31')]['document'],'mousedown',()=>{this[_0x29af('0x45')]=!0x0,this[_0x29af('0x9')]['clear']();}),this[_0x29af('0x2')]['editing'][_0x29af('0x31')][_0x29af('0x42')][_0x29af('0x2a')]['editableElement']&&this[_0x29af('0x2')][_0x29af('0x36')][_0x29af('0x31')][_0x29af('0x0')](),this['isAttached']=!0x0;}[_0x29af('0x8')](){if(!this[_0x29af('0x32')])throw new _0x5aceb7('inlineannotations-detach-not-attached',this);this[_0x29af('0x29')](null);for(const _0x589aa6 of this[_0x29af('0x23')])this['_removeAnnotationFromBalloon'](_0x589aa6);this[_0x29af('0x49')](),this[_0x29af('0x32')]=!0x1,this[_0x29af('0x47')]=null;}[_0x29af('0x1d')](){this['isAttached']&&this[_0x29af('0x8')]();}[_0x29af('0x3f')](_0x41acac){for(const _0x2c5b3d of this[_0x29af('0x19')])_0x41acac[_0x29af('0x3b')](_0x2c5b3d)||this['_manuallyClosed']['delete'](_0x2c5b3d);for(const _0x519f07 of this[_0x29af('0x47')])_0x41acac[_0x29af('0x3b')](_0x519f07)||this[_0x29af('0x35')](_0x519f07);if(this[_0x29af('0x2')]['ui'][_0x29af('0x25')][_0x29af('0x14')])for(const _0x517ef6 of _0x41acac)this[_0x29af('0x41')](_0x517ef6);this[_0x29af('0x19')]=_0x41acac;}[_0x29af('0x41')](_0x46f350,_0x57391c=!0x1){this[_0x29af('0x9')][_0x29af('0xb')](_0x46f350)||(this['_addedAnnotations'][_0x29af('0xb')](_0x46f350)||this[_0x29af('0x30')][_0x29af('0x24')](_0x46f350[_0x29af('0x31')])||(this[_0x29af('0x23')][_0x29af('0x38')](_0x46f350),this[_0x29af('0x30')][_0x29af('0x38')]({'stackId':_0x46f350[_0x29af('0x31')]['id'],'view':_0x46f350['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x46f350)}})),_0x57391c&&this['_balloon'][_0x29af('0x21')](_0x46f350[_0x29af('0x31')]['id']));}[_0x29af('0xe')](_0x1ff727){const _0x57fcb2=_0x1ff727['target'],_0x344e61=this[_0x29af('0x2')]['editing'][_0x29af('0x31')],_0x4d14a0=_0x344e61[_0x29af('0x42')][_0x29af('0x2a')][_0x29af('0x33')](),_0x3a9570=_0x344e61[_0x29af('0x46')]['viewRangeToDom'](_0x4d14a0);if(_0x3a9570[_0x29af('0x13')](!0x0),_0x57fcb2){if(_0x57fcb2 instanceof _0x2f9ec5)return _0x57fcb2;let _0x144ca5=[];for(const _0x5e4863 of _0x57fcb2)_0x144ca5[_0x29af('0xd')](...(_0x2d5d8d=_0x5e4863[_0x29af('0x1')](),Array['from'](_0x2d5d8d)[_0x29af('0x2d')](DOMRect[_0x29af('0x44')])));_0x144ca5=function(_0x4aba1b){const _0x42fa25=[];let _0x42d96b=_0x4aba1b[0x0];for(let _0x47eabb=0x1;_0x47eabb<_0x4aba1b['length'];_0x47eabb++)F(_0x42d96b,_0x4aba1b[_0x47eabb])?_0x42d96b['width']+=_0x4aba1b[_0x47eabb][_0x29af('0x28')]:(_0x42fa25['push'](_0x42d96b),_0x42d96b=_0x4aba1b[_0x47eabb]);return _0x42fa25[_0x29af('0xd')](_0x42d96b),_0x42fa25;}(_0x144ca5);const _0x108215=_0x3a9570[_0x29af('0x22')]();return _0x144ca5[_0x29af('0x4')](_0x1996a3=>_0x1996a3[_0x29af('0x12')]<=_0x108215[_0x29af('0x12')]&&_0x1996a3['bottom']>=_0x108215[_0x29af('0x2e')]&&_0x1996a3[_0x29af('0x1e')]<=_0x108215[_0x29af('0x1e')]&&_0x1996a3['right']>=_0x108215[_0x29af('0x4c')])||_0x144ca5[0x0];}var _0x2d5d8d;return _0x1ff727[_0x29af('0x4a')]||_0x3a9570;}['_removeAnnotationFromBalloon'](_0x13ce21){this['_addedAnnotations'][_0x29af('0xb')](_0x13ce21)&&this[_0x29af('0x30')][_0x29af('0x24')](_0x13ce21[_0x29af('0x31')])&&(this[_0x29af('0x23')][_0x29af('0x43')](_0x13ce21),this['_balloon'][_0x29af('0x18')](_0x13ce21[_0x29af('0x31')]));}[_0x29af('0x3a')](_0x5dc2cd){this[_0x29af('0x9')][_0x29af('0x38')](_0x5dc2cd),this[_0x29af('0x35')](_0x5dc2cd);}}function F(_0x3fef60,_0x29e14a){return _0x3fef60['top']===_0x29e14a[_0x29af('0x12')]&&_0x3fef60['bottom']===_0x29e14a[_0x29af('0x2e')]&&_0x3fef60[_0x29af('0x4c')]===_0x29e14a['left'];}
23
+ const _0x3062=['detach','has','_balloon','afterInit','refresh','_manuallyClosed','hasView','view','annotations','context','includes','push','getByView','_getBalloonTargetForAnnotation','_removeAnnotationFromBalloon','blur','addObserver','pluginName','update','showStack','selection','destroy','remove','top','InlineAnnotations','width','isActive','updatePosition','target','document','_addedAnnotations','register','change:height','isFocused','left','hasActive','Esc','editableElement','isAttached','editing','viewRangeToDom','plugins','right','bottom','domConverter','_closeAnnotation','getBoundingClientRect','getOrderedSelectedAnnotations','activeAnnotation','editor','get','focus','inline','getFirstRange','inlineannotations-not-allowed-with-context','stopListening','_addAnnotationToBalloon','setActiveAnnotation','listenTo','keystrokes','_selectedAnnotations','every','collapse','clear','from','focusTracker','delete','_forceRefresh','set','visibleView','_setSelectedAnnotations','add','mousedown','map','length'];(function(_0x3bb77b,_0x306234){const _0xee37e2=function(_0x592ba0){while(--_0x592ba0){_0x3bb77b['push'](_0x3bb77b['shift']());}};_0xee37e2(++_0x306234);}(_0x3062,0x15f));const _0xee37=function(_0x3bb77b,_0x306234){_0x3bb77b=_0x3bb77b-0x0;let _0xee37e2=_0x3062[_0x3bb77b];return _0xee37e2;};import{Plugin as _0x272301}from'ckeditor5/src/core';import _0x4b2f7e from'./annotationsuis';import _0xe224c from'./editorannotations';import{ContextualBalloon as _0x23392f}from'ckeditor5/src/ui';import{MouseObserver as _0x5b12c7}from'ckeditor5/src/engine';import{CKEditorError as _0x4ca5ac,Rect as _0x1dda66}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x272301{static get['requires'](){return[_0xe224c,_0x23392f,_0x4b2f7e];}static get[_0xee37('0x29')](){return _0xee37('0x30');}constructor(_0x4aedc9){super(_0x4aedc9),_0x4aedc9[_0xee37('0x3f')][_0xee37('0x1f')][_0xee37('0x28')](_0x5b12c7),this[_0xee37('0x3e')]=!0x1,this['set'](_0xee37('0x48'),null),this[_0xee37('0x20')]=null,this[_0xee37('0x1d')]=new Set(),this['_balloon']=_0x4aedc9['plugins'][_0xee37('0x4a')](_0x23392f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this[_0xee37('0x10')]=!0x1;}['init'](){const _0x48d949=this[_0xee37('0x49')]['plugins'][_0xee37('0x4a')](_0x4b2f7e);_0x48d949[_0xee37('0x21')]===this[_0xee37('0x49')]&&(_0x48d949[_0xee37('0x37')]('inline',this),this['editor'][_0xee37('0x8')][_0xee37('0x11')](_0xee37('0x3c'),(_0x79dff3,_0xf9473a)=>{const _0xc9d00f=this[_0xee37('0x1a')];if(this[_0xee37('0x3e')]&&_0xc9d00f['visibleView']){const _0x27aa03=this['annotations'][_0xee37('0x24')](_0xc9d00f[_0xee37('0x12')]);_0x27aa03&&this[_0xee37('0x45')](_0x27aa03),_0xf9473a();}}));}[_0xee37('0x1b')](){const _0x1db671=this[_0xee37('0x49')][_0xee37('0x41')][_0xee37('0x4a')](_0x4b2f7e);_0x1db671['context']===this[_0xee37('0x49')]&&(_0x1db671[_0xee37('0x3b')]()||_0x1db671['switchTo'](_0xee37('0x1')));}[_0xee37('0x6')](_0x15b977){_0x15b977!==this[_0xee37('0x48')]&&(this[_0xee37('0x48')]&&(this['activeAnnotation'][_0xee37('0x32')]=!0x1),_0x15b977&&this[_0xee37('0x49')]['ui'][_0xee37('0xe')]['isFocused']&&(this[_0xee37('0x20')][_0xee37('0x19')](_0x15b977)&&this[_0xee37('0x5')](_0x15b977,!0x0),_0x15b977[_0xee37('0x32')]=!0x0),_0x15b977||this[_0xee37('0x13')]([]),this[_0xee37('0x48')]=_0x15b977);}['attach'](_0x3aa636){this['annotations']=_0x3aa636;const _0xd9533c=this[_0xee37('0x49')][_0xee37('0x41')][_0xee37('0x4a')](_0x4b2f7e),_0x31bc57=this[_0xee37('0x1a')];if(this[_0xee37('0x3e')])throw new _0x4ca5ac('inlineannotations-attach-already-attached',this);if(_0xd9533c[_0xee37('0x21')]!==this[_0xee37('0x49')])throw new _0x4ca5ac(_0xee37('0x3'),this);const _0x19e3a4=this[_0xee37('0x49')][_0xee37('0x41')][_0xee37('0x4a')](_0xe224c);this['listenTo'](_0x19e3a4,_0xee37('0x1c'),()=>{const _0x4b98a3=_0x19e3a4[_0xee37('0x47')]({'annotations':this[_0xee37('0x20')],'activeAnnotation':this[_0xee37('0x48')]});var _0x425035,_0x5a597b;!this[_0xee37('0x10')]&&(_0x425035=_0x4b98a3,_0x5a597b=this[_0xee37('0x9')],_0x425035[_0xee37('0x17')]===_0x5a597b[_0xee37('0x17')]&&_0x425035[_0xee37('0xa')](_0x22078a=>_0x5a597b[_0xee37('0x22')](_0x22078a)))||(this[_0xee37('0x10')]=!0x1,this[_0xee37('0x13')](_0x4b98a3),this[_0xee37('0x6')](_0x4b98a3[0x0]||null));}),this[_0xee37('0x7')](_0x19e3a4,_0xee37('0x27'),(_0x20a37d,{isAnnotationTracked:_0x2cb3b9})=>{this[_0xee37('0x48')]&&_0x2cb3b9(this[_0xee37('0x48')])&&(this['_setSelectedAnnotations']([]),this[_0xee37('0x6')](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1cc82d,_0x34acdf,_0x2a2f0c)=>{_0x2a2f0c||this[_0xee37('0x6')](null);}),this[_0xee37('0x7')](_0x3aa636,'remove',(_0x7087e,_0x45995e)=>{this['_removeAnnotationFromBalloon'](_0x45995e),_0x45995e===this['activeAnnotation']&&this[_0xee37('0x6')](null);}),this[_0xee37('0x7')](_0x31bc57,'change:visibleView',(_0x2988d5,_0x2ffe4d,_0x5a7c15,_0x33a6b3)=>{_0x33a6b3&&this[_0xee37('0x4')](_0x33a6b3);const _0x4477dc=_0x3aa636[_0xee37('0x24')](_0x5a7c15);_0x5a7c15&&_0x4477dc&&(this['listenTo'](_0x5a7c15,_0xee37('0x38'),()=>{_0x31bc57[_0xee37('0x33')]();}),this[_0xee37('0x7')](_0x5a7c15,_0xee37('0x3c'),()=>{this['_closeAnnotation'](_0x4477dc),this[_0xee37('0x49')][_0xee37('0x3f')]['view'][_0xee37('0x0')]();}),this['activeAnnotation']!==_0x4477dc&&this[_0xee37('0x6')](_0x4477dc));}),this[_0xee37('0x7')](this['editor']['ui'],_0xee37('0x2a'),()=>{_0x31bc57[_0xee37('0x12')]&&(_0x3aa636[_0xee37('0x24')](_0x31bc57[_0xee37('0x12')])&&_0x31bc57[_0xee37('0x33')]());}),this[_0xee37('0x7')](this[_0xee37('0x49')][_0xee37('0x3f')]['view'][_0xee37('0x35')],_0xee37('0x15'),()=>{this[_0xee37('0x10')]=!0x0,this[_0xee37('0x1d')][_0xee37('0xc')]();}),this[_0xee37('0x49')]['editing'][_0xee37('0x1f')][_0xee37('0x35')][_0xee37('0x2c')][_0xee37('0x3d')]&&this['editor'][_0xee37('0x3f')][_0xee37('0x1f')][_0xee37('0x0')](),this[_0xee37('0x3e')]=!0x0;}[_0xee37('0x18')](){if(!this['isAttached'])throw new _0x4ca5ac('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5ec1a0 of this['_addedAnnotations'])this[_0xee37('0x26')](_0x5ec1a0);this[_0xee37('0x4')](),this[_0xee37('0x3e')]=!0x1,this[_0xee37('0x20')]=null;}[_0xee37('0x2d')](){this[_0xee37('0x3e')]&&this[_0xee37('0x18')]();}[_0xee37('0x13')](_0x5ba391){for(const _0x12a492 of this[_0xee37('0x9')])_0x5ba391[_0xee37('0x22')](_0x12a492)||this[_0xee37('0x1d')][_0xee37('0xf')](_0x12a492);for(const _0x1dc0cb of this['annotations'])_0x5ba391[_0xee37('0x22')](_0x1dc0cb)||this[_0xee37('0x26')](_0x1dc0cb);if(this[_0xee37('0x49')]['ui'][_0xee37('0xe')][_0xee37('0x39')])for(const _0x40ee02 of _0x5ba391)this['_addAnnotationToBalloon'](_0x40ee02);this[_0xee37('0x9')]=_0x5ba391;}[_0xee37('0x5')](_0x5e1eb6,_0x199c3c=!0x1){this['_manuallyClosed'][_0xee37('0x19')](_0x5e1eb6)||(this[_0xee37('0x36')][_0xee37('0x19')](_0x5e1eb6)||this[_0xee37('0x1a')][_0xee37('0x1e')](_0x5e1eb6['view'])||(this[_0xee37('0x36')][_0xee37('0x14')](_0x5e1eb6),this['_balloon'][_0xee37('0x14')]({'stackId':_0x5e1eb6[_0xee37('0x1f')]['id'],'view':_0x5e1eb6[_0xee37('0x1f')],'position':{'target':()=>this[_0xee37('0x25')](_0x5e1eb6)}})),_0x199c3c&&this[_0xee37('0x1a')][_0xee37('0x2b')](_0x5e1eb6[_0xee37('0x1f')]['id']));}['_getBalloonTargetForAnnotation'](_0x4dc0fd){const _0x227344=_0x4dc0fd[_0xee37('0x34')],_0x48d5ab=this['editor'][_0xee37('0x3f')][_0xee37('0x1f')],_0x185b14=_0x48d5ab[_0xee37('0x35')][_0xee37('0x2c')][_0xee37('0x2')](),_0x3998ec=_0x48d5ab[_0xee37('0x44')][_0xee37('0x40')](_0x185b14);if(_0x3998ec[_0xee37('0xb')](!0x0),_0x227344){if(_0x227344 instanceof _0x1dda66)return _0x227344;let _0x382a10=[];for(const _0x4d22ef of _0x227344)_0x382a10[_0xee37('0x23')](...(_0x48e515=_0x4d22ef['getClientRects'](),Array[_0xee37('0xd')](_0x48e515)[_0xee37('0x16')](DOMRect['fromRect'])));_0x382a10=function(_0xf8e937){const _0x14bc6f=[];let _0x5a6b58=_0xf8e937[0x0];for(let _0x21bf5a=0x1;_0x21bf5a<_0xf8e937['length'];_0x21bf5a++)F(_0x5a6b58,_0xf8e937[_0x21bf5a])?_0x5a6b58[_0xee37('0x31')]+=_0xf8e937[_0x21bf5a][_0xee37('0x31')]:(_0x14bc6f['push'](_0x5a6b58),_0x5a6b58=_0xf8e937[_0x21bf5a]);return _0x14bc6f[_0xee37('0x23')](_0x5a6b58),_0x14bc6f;}(_0x382a10);const _0x33ea9a=_0x3998ec[_0xee37('0x46')]();return _0x382a10['find'](_0x29ed0d=>_0x29ed0d[_0xee37('0x2f')]<=_0x33ea9a['top']&&_0x29ed0d[_0xee37('0x43')]>=_0x33ea9a[_0xee37('0x43')]&&_0x29ed0d[_0xee37('0x3a')]<=_0x33ea9a['left']&&_0x29ed0d[_0xee37('0x42')]>=_0x33ea9a[_0xee37('0x42')])||_0x382a10[0x0];}var _0x48e515;return _0x4dc0fd['targetRect']||_0x3998ec;}[_0xee37('0x26')](_0xd02a71){this['_addedAnnotations'][_0xee37('0x19')](_0xd02a71)&&this['_balloon'][_0xee37('0x1e')](_0xd02a71[_0xee37('0x1f')])&&(this[_0xee37('0x36')][_0xee37('0xf')](_0xd02a71),this['_balloon'][_0xee37('0x2e')](_0xd02a71[_0xee37('0x1f')]));}[_0xee37('0x45')](_0x1ea8e1){this[_0xee37('0x1d')][_0xee37('0x14')](_0x1ea8e1),this[_0xee37('0x26')](_0x1ea8e1);}}function F(_0x4f5480,_0x35ba30){return _0x4f5480[_0xee37('0x2f')]===_0x35ba30['top']&&_0x4f5480[_0xee37('0x43')]===_0x35ba30['bottom']&&_0x4f5480[_0xee37('0x42')]===_0x35ba30['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44aa=['set:container','mousedown','remove','element','pluginName','keyCode','register','uiUpdate','northArrowSouth','_selectedAnnotations','keydown','_detachListeners','isAttached','has','focus','balloonPanelView','context','attachToDom','create','_attachListeners','annotations','resize','removeEventListener','_domEmitter','listenTo','low','ck-sidebar--narrow','refresh','values','_refreshPositioningDebounced','get','_refreshPositioning','stopListening','includes','find','clear','getByView','destroy','_showBalloon','southArrowNorth','_setSelectedAnnotations','blur','contains','delete','add','hasDomSelection','execute','getOrderedSelectedAnnotations','content','southArrowNorthWest','rearrange','esc','editors','EditorAnnotations','isDirty','_hideBalloon','detach','plugins','preventClosingBalloon','addEventListener','getSidebarItemView','requires','_annotationToNarrowView','isVisible','pin','_annotations','high','view','_editorAnnotations','activeAnnotation','_integrateWithEditorAnnotations','from','_destroyEditorAnnotationsIntegration','attach','cancel','_attachToContainer','Esc','length','_manuallyClosedAnnotationViews','type','addAnnotation','_updateBalloonPosition','focusableElements','first','bodyCollection','stopPropagation','narrowSidebar','set','defaultPositions','target','setActiveAnnotation'];(function(_0x42790c,_0x44aa37){const _0x48998b=function(_0x153ad7){while(--_0x153ad7){_0x42790c['push'](_0x42790c['shift']());}};_0x48998b(++_0x44aa37);}(_0x44aa,0x17b));const _0x4899=function(_0x42790c,_0x44aa37){_0x42790c=_0x42790c-0x0;let _0x48998b=_0x44aa[_0x42790c];return _0x48998b;};import{ContextPlugin as _0x21606a,Context as _0x5d04b1}from'ckeditor5/src/core';import _0x1c5bad from'./annotationsuis';import _0x1c84a2 from'./sidebar';import _0xd25026 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x39ced8,BodyCollection as _0x569cb6}from'ckeditor5/src/ui';import{CKEditorError as _0x4bb7b8,DomEmitterMixin as _0x404662,keyCodes as _0x297d0d,Collection as _0x14b5f8}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x4b3394}from'lodash-es';import _0x2aa2f4 from'./editorannotations';export default class s extends _0x21606a{static get[_0x4899('0x2e')](){return[_0x1c84a2,_0x1c5bad];}static get[_0x4899('0x50')](){return'NarrowSidebar';}constructor(_0xeb7cd4){super(_0xeb7cd4),this['isAttached']=!0x1,this[_0x4899('0x3f')]=new Set(),this['_domEmitter']=Object[_0x4899('0x3')](_0x404662),this[_0x4899('0x2f')]=new Map(),this[_0x4899('0x48')](_0x4899('0x36'),null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x14b5f8(),this[_0x4899('0xe')]=_0x4b3394(()=>{this[_0x4899('0x10')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x4899('0x1')][_0x4899('0x2a')][_0x4899('0xf')](_0x1c5bad)[_0x4899('0x52')](_0x4899('0x47'),this),this[_0x4899('0x45')]=new _0x569cb6(this[_0x4899('0x1')]['locale']),this['balloonPanelView']=new _0x39ced8(this[_0x4899('0x1')]['locale']),this[_0x4899('0x45')][_0x4899('0x2')](),this[_0x4899('0x45')][_0x4899('0x1d')](this[_0x4899('0x0')]);}[_0x4899('0x3a')](_0x1959aa){this[_0x4899('0x5')]=_0x1959aa;const _0x27e765=this[_0x4899('0x1')][_0x4899('0x2a')]['get'](_0x1c84a2),_0x46a492=this[_0x4899('0x0')];if(_0x27e765[_0x4899('0x32')]=_0x1959aa,this['isAttached'])throw new _0x4bb7b8('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this[_0x4899('0x9')](_0x27e765,_0x4899('0x4c'),()=>{this[_0x4899('0x29')](),this['listenTo'](_0x27e765,'change:container',_0x4a6f12=>{_0x4a6f12['off'](),this[_0x4899('0x3a')](_0x1959aa);});}),_0x27e765[_0x4899('0x3c')]({'viewClass':_0x4899('0xb'),'spaceBetweenItems':0x5});const _0x24f6e7=_0x45b814=>{const _0x4037c9=new _0xd25026(this[_0x4899('0x1')]['locale']);_0x27e765[_0x4899('0x41')](_0x45b814,_0x4037c9),this['_annotationToNarrowView']['set'](_0x45b814,_0x4037c9),_0x4037c9['bind'](_0x4899('0x27'),'annotationType','number')['to'](_0x45b814['view'],_0x4899('0x27'),_0x4899('0x40'),_0x4899('0x3e')),_0x4037c9['on'](_0x4899('0x1f'),()=>{this[_0x4899('0x3f')][_0x4899('0x14')](),_0x46a492['content'][_0x4899('0x44')]!==_0x45b814[_0x4899('0x34')]?(this[_0x4899('0x17')](_0x45b814),_0x45b814[_0x4899('0x34')][_0x4899('0x4f')][_0x4899('0x5a')](),this[_0x4899('0x4b')](_0x45b814)):this[_0x4899('0x4b')](null);});};for(const _0x5a50e8 of _0x1959aa)_0x24f6e7(_0x5a50e8);this[_0x4899('0x9')](_0x1959aa,_0x4899('0x1d'),(_0x191a30,_0xdeeaf8)=>{_0x24f6e7(_0xdeeaf8);}),this[_0x4899('0x9')](_0x1959aa,'remove',(_0x44fe64,_0x5ffe0c,_0x562239)=>{this[_0x4899('0x2f')][_0x4899('0xf')](_0x5ffe0c)[_0x4899('0x16')](),this[_0x4899('0x2f')][_0x4899('0x1c')](_0x5ffe0c),_0x27e765[_0x4899('0x23')]({'removedAnnotation':_0x5ffe0c,'previousAnnotation':_0x1959aa['get'](_0x562239-0x1),'nextAnnotation':_0x1959aa[_0x4899('0xf')](_0x562239+0x1)}),_0x5ffe0c===this[_0x4899('0x36')]&&this[_0x4899('0x4b')](null);},{'priority':_0x4899('0xa')}),this[_0x4899('0x9')](_0x1959aa,'focus',(_0xbd8e31,_0x77239f)=>{this[_0x4899('0x4b')](_0x77239f);}),this[_0x4899('0x9')](_0x1959aa,_0x4899('0x1a'),()=>{this['setActiveAnnotation'](null);}),this['_domEmitter'][_0x4899('0x9')](document,_0x4899('0x56'),(_0x1ce23a,_0x17c15d)=>{_0x17c15d[_0x4899('0x51')]===_0x297d0d[_0x4899('0x24')]&&_0x46a492[_0x4899('0x30')]&&(this[_0x4899('0x3f')][_0x4899('0x1d')](_0x46a492['content'][_0x4899('0x44')]),this[_0x4899('0x28')](),_0x17c15d[_0x4899('0x46')](),_0x17c15d['preventDefault']());}),this[_0x4899('0x8')][_0x4899('0x9')](document,_0x4899('0x4d'),(_0x1e3666,_0x10707d)=>{const _0x49e8e1=_0x10707d[_0x4899('0x4a')];_0x46a492[_0x4899('0x30')]&&_0x46a492[_0x4899('0x4f')][_0x4899('0x1b')](_0x49e8e1)||_0x27e765[_0x4899('0x34')]['element'][_0x4899('0x1b')](_0x49e8e1)||_0x1e3666[_0x4899('0x2b')]||this['activeAnnotation']&&this[_0x4899('0x36')][_0x4899('0x43')][_0x4899('0x13')](_0x8a9f24=>_0x8a9f24[_0x4899('0x1b')](_0x49e8e1))||(this[_0x4899('0x3f')]['clear'](),this[_0x4899('0x28')](),this[_0x4899('0x4b')](null));});const _0x2a7acb=this[_0x4899('0x1')]instanceof _0x5d04b1?this[_0x4899('0x1')][_0x4899('0x25')]:new _0x14b5f8([this[_0x4899('0x1')]]);for(const _0x266fae of _0x2a7acb)this[_0x4899('0x37')](_0x266fae);this['listenTo'](_0x2a7acb,_0x4899('0x1d'),(_0x4e88a5,_0x33a62f)=>{this[_0x4899('0x9')](_0x33a62f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x33a62f);});}),this['listenTo'](_0x2a7acb,_0x4899('0x4e'),(_0x3e310a,_0x43b36d)=>{_0x43b36d[_0x4899('0x2a')][_0x4899('0x59')](_0x4899('0x26'))&&this[_0x4899('0x39')](_0x43b36d[_0x4899('0x2a')][_0x4899('0xf')](_0x4899('0x26')));}),window[_0x4899('0x2c')](_0x4899('0x6'),this[_0x4899('0xe')]),this[_0x4899('0x10')]();}[_0x4899('0x4b')](_0x49dffb){if(_0x49dffb===this[_0x4899('0x36')])return;const _0x28e567=this[_0x4899('0x1')]['plugins']['get'](_0x1c84a2);if(_0x28e567[_0x4899('0xc')]({'blurredAnnotation':this[_0x4899('0x36')],'activatedAnnotation':_0x49dffb,'disableAnimationOnActivatedAnnotation':!0x0}),_0x49dffb)_0x28e567[_0x4899('0x2d')](_0x49dffb)?this[_0x4899('0x17')](_0x49dffb):this[_0x4899('0x28')]();else this['_hideBalloon']();this[_0x4899('0x36')]=_0x49dffb;}[_0x4899('0x29')](){if(!this[_0x4899('0x58')])throw new _0x4bb7b8('narrowsidebar-detach-not-attached',this);this[_0x4899('0x4b')](null);const _0x55c40b=this[_0x4899('0x1')][_0x4899('0x2a')][_0x4899('0xf')](_0x1c84a2);this[_0x4899('0x28')](),Array[_0x4899('0x38')](this[_0x4899('0x2f')][_0x4899('0xd')](),_0x551521=>_0x551521['destroy']()),this[_0x4899('0x2f')][_0x4899('0x14')](),_0x55c40b['_detachFromContainer'](this[_0x4899('0x5')]),this[_0x4899('0x11')](),this[_0x4899('0x8')][_0x4899('0x11')](),this[_0x4899('0x1')]instanceof _0x5d04b1&&this[_0x4899('0x11')](this[_0x4899('0x1')][_0x4899('0x25')]);for(const _0x299702 of Array[_0x4899('0x38')](this[_0x4899('0x35')]))this[_0x4899('0x39')](_0x299702);window[_0x4899('0x7')](_0x4899('0x6'),this[_0x4899('0xe')]),this[_0x4899('0xe')][_0x4899('0x3b')](),this[_0x4899('0x55')]=[],this[_0x4899('0x58')]=!0x1,this[_0x4899('0x5')]=null;}['destroy'](){this[_0x4899('0x58')]&&this[_0x4899('0x29')](),this[_0x4899('0x45')]['detachFromDom']();}[_0x4899('0x37')](_0x2ce05f){const _0x3a8538=_0x2ce05f[_0x4899('0x2a')][_0x4899('0xf')](_0x2aa2f4),_0x224358=this['context'][_0x4899('0x2a')][_0x4899('0xf')](_0x1c84a2),_0x1b46b9=this[_0x4899('0x5')],_0x29e9b4=this['balloonPanelView'],_0x25b8f1=()=>{const _0x344086=_0x3a8538[_0x4899('0x20')]({'annotations':this['annotations'],'activeAnnotation':this[_0x4899('0x36')]});this['_setSelectedAnnotations'](_0x344086),this[_0x4899('0x4b')](_0x344086[0x0]||null);};this['listenTo'](_0x3a8538,_0x4899('0xc'),_0x25b8f1),this[_0x4899('0x9')](_0x3a8538,'blur',(_0x58e6df,{isAnnotationTracked:_0x3ff0d8})=>{this[_0x4899('0x36')]&&_0x3ff0d8(this[_0x4899('0x36')])&&(this[_0x4899('0x19')]([]),this['setActiveAnnotation'](null));}),this[_0x4899('0x9')](_0x3a8538,_0x4899('0x53'),()=>{this[_0x4899('0xe')]();}),this[_0x4899('0x9')](_0x1b46b9,_0x4899('0x1a'),_0x4728a1=>{_0x3a8538[_0x4899('0x1e')]()&&_0x4728a1['stop']();},{'priority':_0x4899('0x33')}),this[_0x4899('0x9')](this['_domEmitter'],_0x4899('0x4d'),(_0x38a3e5,_0xabed04)=>{const _0x3aa528=_0xabed04[_0x4899('0x4a')];_0x29e9b4['isVisible']&&_0x29e9b4[_0x4899('0x4f')][_0x4899('0x1b')](_0x3aa528)||_0x224358['view'][_0x4899('0x4f')][_0x4899('0x1b')](_0x3aa528)||this[_0x4899('0x36')]&&_0x3a8538[_0x4899('0x1e')]()&&(_0x25b8f1(),_0x38a3e5[_0x4899('0x2b')]=!0x0);},{'priority':_0x4899('0x33')}),this[_0x4899('0x35')][_0x4899('0x1d')](_0x3a8538);}[_0x4899('0x39')](_0x22e7cc){_0x22e7cc&&(this[_0x4899('0x11')](_0x22e7cc),this['_editorAnnotations']['remove'](_0x22e7cc));}[_0x4899('0x19')](_0x525d8d){for(const _0x3b1fa8 of this[_0x4899('0x55')])_0x525d8d[_0x4899('0x12')](_0x3b1fa8)||this['_manuallyClosedAnnotationViews'][_0x4899('0x1c')](_0x3b1fa8[_0x4899('0x34')]);this[_0x4899('0x55')]=_0x525d8d;}['_refreshPositioning'](){const _0x2ee624=this['balloonPanelView'];this[_0x4899('0x5')]['refreshPositioning'](),_0x2ee624['isVisible']&&this[_0x4899('0x42')]();}[_0x4899('0x17')](_0x30ecad){if(this[_0x4899('0x3f')][_0x4899('0x59')](_0x30ecad[_0x4899('0x34')]))return;const _0x546c1b=this[_0x4899('0x0')][_0x4899('0x21')][_0x4899('0x44')];_0x546c1b!==_0x30ecad[_0x4899('0x34')]?(_0x546c1b&&this[_0x4899('0x57')](_0x546c1b),this[_0x4899('0x4')](_0x30ecad[_0x4899('0x34')]),this[_0x4899('0x0')][_0x4899('0x21')][_0x4899('0x14')](),this['balloonPanelView'][_0x4899('0x21')]['add'](_0x30ecad['view']),this[_0x4899('0x42')]()):this['_updateBalloonPosition']();}[_0x4899('0x42')](){const _0x585dd3=this[_0x4899('0x0')]['content'][_0x4899('0x44')],_0x5d628a=_0x585dd3&&this[_0x4899('0x5')][_0x4899('0x15')](_0x585dd3);if(!_0x5d628a||!this[_0x4899('0x2f')][_0x4899('0x59')](_0x5d628a))return;const _0x135eb7=this[_0x4899('0x2f')][_0x4899('0xf')](_0x5d628a)[_0x4899('0x4f')],_0x1ba0a7=function(){const _0xd359ab=_0x39ced8[_0x4899('0x49')];return[_0xd359ab['southArrowNorthEast'],_0xd359ab['northArrowSouthEast'],_0xd359ab[_0x4899('0x18')],_0xd359ab[_0x4899('0x54')],_0xd359ab[_0x4899('0x22')],_0xd359ab['northArrowSouthWest']];}();this['balloonPanelView'][_0x4899('0x31')]({'target':_0x135eb7,'positions':_0x1ba0a7});}['_hideBalloon'](){const _0x124343=this[_0x4899('0x0')],_0x17e501=_0x124343[_0x4899('0x21')][_0x4899('0x44')];_0x17e501&&(this[_0x4899('0x57')](_0x17e501),_0x124343['unpin'](),_0x124343[_0x4899('0x21')]['clear']());}['_attachListeners'](_0x2aaa68){this[_0x4899('0x9')](_0x2aaa68,'change:height',()=>this[_0x4899('0x42')]()),this[_0x4899('0x9')](_0x2aaa68,_0x4899('0x3d'),(_0x10869a,_0x1a507b)=>{this[_0x4899('0x3f')][_0x4899('0x1d')](_0x2aaa68),this[_0x4899('0x28')](),_0x1a507b();});}[_0x4899('0x57')](_0x141ab0){this['stopListening'](_0x141ab0);}}
23
+ const _0xdbb6=['plugins','stopListening','clear','annotations','listenTo','stop','southArrowNorthWest','_selectedAnnotations','_showBalloon','create','find','element','isAttached','keydown','view','destroy','off','_attachToContainer','narrowsidebar-attach-already-attached','requires','narrowSidebar','_manuallyClosedAnnotationViews','northArrowSouthEast','refreshPositioning','_hideBalloon','_annotations','has','values','stopPropagation','EditorAnnotations','activeAnnotation','_refreshPositioning','init','hasDomSelection','_refreshPositioningDebounced','focus','change:height','delete','Esc','content','_editorAnnotations','narrowsidebar-detach-not-attached','detachFromDom','balloonPanelView','addAnnotation','mousedown','get','blur','add','set','isVisible','NarrowSidebar','defaultPositions','bind','preventDefault','contains','focusableElements','_updateBalloonPosition','_setSelectedAnnotations','register','resize','high','_attachListeners','setActiveAnnotation','from','target','detach','preventClosingBalloon','uiUpdate','low','locale','_annotationToNarrowView','refresh','southArrowNorth','_integrateWithEditorAnnotations','isDirty','_domEmitter','number','remove','esc','southArrowNorthEast','attach','_detachListeners','annotationType','cancel','context','_destroyEditorAnnotationsIntegration','length','change:container','first','bodyCollection','keyCode'];(function(_0x31adaa,_0xdbb601){const _0x4e1197=function(_0x4916ca){while(--_0x4916ca){_0x31adaa['push'](_0x31adaa['shift']());}};_0x4e1197(++_0xdbb601);}(_0xdbb6,0x134));const _0x4e11=function(_0x31adaa,_0xdbb601){_0x31adaa=_0x31adaa-0x0;let _0x4e1197=_0xdbb6[_0x31adaa];return _0x4e1197;};import{ContextPlugin as _0x4383e1,Context as _0x360811}from'ckeditor5/src/core';import _0x1d0aab from'./annotationsuis';import _0x525883 from'./sidebar';import _0x847a64 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x35ae86,BodyCollection as _0x170d9e}from'ckeditor5/src/ui';import{CKEditorError as _0x46865d,DomEmitterMixin as _0x58cf32,keyCodes as _0x362211,Collection as _0x21be6e}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1a3432}from'lodash-es';import _0xe0d9e5 from'./editorannotations';export default class s extends _0x4383e1{static get[_0x4e11('0x4f')](){return[_0x525883,_0x1d0aab];}static get['pluginName'](){return _0x4e11('0x13');}constructor(_0xe94f49){super(_0xe94f49),this[_0x4e11('0x48')]=!0x1,this[_0x4e11('0x51')]=new Set(),this[_0x4e11('0x2c')]=Object[_0x4e11('0x45')](_0x58cf32),this[_0x4e11('0x27')]=new Map(),this['set']('activeAnnotation',null),this[_0x4e11('0x3f')]=null,this[_0x4e11('0x43')]=[],this[_0x4e11('0x8')]=new _0x21be6e(),this[_0x4e11('0x2')]=_0x1a3432(()=>{this[_0x4e11('0x5b')]();},0xfa,{'leading':!0x1});}[_0x4e11('0x0')](){this[_0x4e11('0x35')][_0x4e11('0x3c')][_0x4e11('0xe')](_0x1d0aab)[_0x4e11('0x1b')](_0x4e11('0x50'),this),this['bodyCollection']=new _0x170d9e(this[_0x4e11('0x35')][_0x4e11('0x26')]),this[_0x4e11('0xb')]=new _0x35ae86(this[_0x4e11('0x35')][_0x4e11('0x26')]),this['bodyCollection']['attachToDom'](),this[_0x4e11('0x3a')][_0x4e11('0x10')](this[_0x4e11('0xb')]);}[_0x4e11('0x31')](_0x44be61){this[_0x4e11('0x3f')]=_0x44be61;const _0x3e3b7e=this[_0x4e11('0x35')][_0x4e11('0x3c')]['get'](_0x525883),_0x2fc2fc=this[_0x4e11('0xb')];if(_0x3e3b7e[_0x4e11('0x55')]=_0x44be61,this[_0x4e11('0x48')])throw new _0x46865d(_0x4e11('0x4e'),this);this['isAttached']=!0x0,this[_0x4e11('0x40')](_0x3e3b7e,'set:container',()=>{this[_0x4e11('0x22')](),this[_0x4e11('0x40')](_0x3e3b7e,_0x4e11('0x38'),_0x11994f=>{_0x11994f[_0x4e11('0x4c')](),this[_0x4e11('0x31')](_0x44be61);});}),_0x3e3b7e[_0x4e11('0x4d')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x41b600=_0x2a5262=>{const _0x76610d=new _0x847a64(this[_0x4e11('0x35')]['locale']);_0x3e3b7e[_0x4e11('0xc')](_0x2a5262,_0x76610d),this['_annotationToNarrowView'][_0x4e11('0x11')](_0x2a5262,_0x76610d),_0x76610d[_0x4e11('0x15')](_0x4e11('0x2b'),_0x4e11('0x33'),_0x4e11('0x2d'))['to'](_0x2a5262[_0x4e11('0x4a')],_0x4e11('0x2b'),'type',_0x4e11('0x37')),_0x76610d['on']('execute',()=>{this[_0x4e11('0x51')][_0x4e11('0x3e')](),_0x2fc2fc[_0x4e11('0x7')]['first']!==_0x2a5262[_0x4e11('0x4a')]?(this[_0x4e11('0x44')](_0x2a5262),_0x2a5262[_0x4e11('0x4a')][_0x4e11('0x47')]['focus'](),this[_0x4e11('0x1f')](_0x2a5262)):this[_0x4e11('0x1f')](null);});};for(const _0x54d1d1 of _0x44be61)_0x41b600(_0x54d1d1);this[_0x4e11('0x40')](_0x44be61,_0x4e11('0x10'),(_0x343598,_0x41d012)=>{_0x41b600(_0x41d012);}),this['listenTo'](_0x44be61,_0x4e11('0x2e'),(_0x48ec88,_0x3d873f,_0x76abf7)=>{this[_0x4e11('0x27')][_0x4e11('0xe')](_0x3d873f)[_0x4e11('0x4b')](),this['_annotationToNarrowView'][_0x4e11('0x5')](_0x3d873f),_0x3e3b7e['rearrange']({'removedAnnotation':_0x3d873f,'previousAnnotation':_0x44be61[_0x4e11('0xe')](_0x76abf7-0x1),'nextAnnotation':_0x44be61['get'](_0x76abf7+0x1)}),_0x3d873f===this[_0x4e11('0x5a')]&&this[_0x4e11('0x1f')](null);},{'priority':_0x4e11('0x25')}),this['listenTo'](_0x44be61,_0x4e11('0x3'),(_0x12583c,_0x56e3de)=>{this[_0x4e11('0x1f')](_0x56e3de);}),this['listenTo'](_0x44be61,_0x4e11('0xf'),()=>{this[_0x4e11('0x1f')](null);}),this['_domEmitter'][_0x4e11('0x40')](document,_0x4e11('0x49'),(_0x574d4a,_0x184c5d)=>{_0x184c5d[_0x4e11('0x3b')]===_0x362211[_0x4e11('0x2f')]&&_0x2fc2fc[_0x4e11('0x12')]&&(this[_0x4e11('0x51')][_0x4e11('0x10')](_0x2fc2fc[_0x4e11('0x7')]['first']),this[_0x4e11('0x54')](),_0x184c5d[_0x4e11('0x58')](),_0x184c5d[_0x4e11('0x16')]());}),this['_domEmitter'][_0x4e11('0x40')](document,'mousedown',(_0x45cfba,_0x28bc51)=>{const _0x5580cd=_0x28bc51['target'];_0x2fc2fc[_0x4e11('0x12')]&&_0x2fc2fc['element'][_0x4e11('0x17')](_0x5580cd)||_0x3e3b7e['view'][_0x4e11('0x47')][_0x4e11('0x17')](_0x5580cd)||_0x45cfba[_0x4e11('0x23')]||this[_0x4e11('0x5a')]&&this['activeAnnotation'][_0x4e11('0x18')][_0x4e11('0x46')](_0x3b393a=>_0x3b393a['contains'](_0x5580cd))||(this['_manuallyClosedAnnotationViews'][_0x4e11('0x3e')](),this[_0x4e11('0x54')](),this[_0x4e11('0x1f')](null));});const _0x45b12a=this['context']instanceof _0x360811?this[_0x4e11('0x35')]['editors']:new _0x21be6e([this[_0x4e11('0x35')]]);for(const _0x3d75a9 of _0x45b12a)this[_0x4e11('0x2a')](_0x3d75a9);this[_0x4e11('0x40')](_0x45b12a,_0x4e11('0x10'),(_0x523c65,_0x853599)=>{this[_0x4e11('0x40')](_0x853599,'ready',()=>{this[_0x4e11('0x2a')](_0x853599);});}),this[_0x4e11('0x40')](_0x45b12a,'remove',(_0x17804f,_0x2d8c28)=>{_0x2d8c28[_0x4e11('0x3c')][_0x4e11('0x56')](_0x4e11('0x59'))&&this['_destroyEditorAnnotationsIntegration'](_0x2d8c28['plugins'][_0x4e11('0xe')](_0x4e11('0x59')));}),window['addEventListener'](_0x4e11('0x1c'),this[_0x4e11('0x2')]),this[_0x4e11('0x5b')]();}[_0x4e11('0x1f')](_0x5131c6){if(_0x5131c6===this[_0x4e11('0x5a')])return;const _0x3907e1=this['context']['plugins']['get'](_0x525883);if(_0x3907e1[_0x4e11('0x28')]({'blurredAnnotation':this[_0x4e11('0x5a')],'activatedAnnotation':_0x5131c6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5131c6)_0x3907e1['getSidebarItemView'](_0x5131c6)?this[_0x4e11('0x44')](_0x5131c6):this[_0x4e11('0x54')]();else this[_0x4e11('0x54')]();this[_0x4e11('0x5a')]=_0x5131c6;}[_0x4e11('0x22')](){if(!this[_0x4e11('0x48')])throw new _0x46865d(_0x4e11('0x9'),this);this['setActiveAnnotation'](null);const _0x1791e7=this['context']['plugins'][_0x4e11('0xe')](_0x525883);this['_hideBalloon'](),Array[_0x4e11('0x20')](this['_annotationToNarrowView'][_0x4e11('0x57')](),_0xb8c9c3=>_0xb8c9c3[_0x4e11('0x4b')]()),this['_annotationToNarrowView'][_0x4e11('0x3e')](),_0x1791e7['_detachFromContainer'](this[_0x4e11('0x3f')]),this['stopListening'](),this[_0x4e11('0x2c')][_0x4e11('0x3d')](),this[_0x4e11('0x35')]instanceof _0x360811&&this[_0x4e11('0x3d')](this[_0x4e11('0x35')]['editors']);for(const _0x4b1920 of Array[_0x4e11('0x20')](this[_0x4e11('0x8')]))this['_destroyEditorAnnotationsIntegration'](_0x4b1920);window['removeEventListener'](_0x4e11('0x1c'),this[_0x4e11('0x2')]),this['_refreshPositioningDebounced'][_0x4e11('0x34')](),this[_0x4e11('0x43')]=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x4e11('0x4b')](){this[_0x4e11('0x48')]&&this[_0x4e11('0x22')](),this[_0x4e11('0x3a')][_0x4e11('0xa')]();}['_integrateWithEditorAnnotations'](_0xe1be85){const _0x50d279=_0xe1be85[_0x4e11('0x3c')][_0x4e11('0xe')](_0xe0d9e5),_0x1ab4af=this[_0x4e11('0x35')][_0x4e11('0x3c')][_0x4e11('0xe')](_0x525883),_0x20b889=this[_0x4e11('0x3f')],_0x1e8d05=this[_0x4e11('0xb')],_0x175c91=()=>{const _0x3e1572=_0x50d279['getOrderedSelectedAnnotations']({'annotations':this[_0x4e11('0x3f')],'activeAnnotation':this['activeAnnotation']});this[_0x4e11('0x1a')](_0x3e1572),this['setActiveAnnotation'](_0x3e1572[0x0]||null);};this[_0x4e11('0x40')](_0x50d279,_0x4e11('0x28'),_0x175c91),this[_0x4e11('0x40')](_0x50d279,_0x4e11('0xf'),(_0x29faab,{isAnnotationTracked:_0x37a90c})=>{this[_0x4e11('0x5a')]&&_0x37a90c(this['activeAnnotation'])&&(this[_0x4e11('0x1a')]([]),this[_0x4e11('0x1f')](null));}),this[_0x4e11('0x40')](_0x50d279,_0x4e11('0x24'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x20b889,_0x4e11('0xf'),_0xe0d005=>{_0x50d279[_0x4e11('0x1')]()&&_0xe0d005[_0x4e11('0x41')]();},{'priority':_0x4e11('0x1d')}),this[_0x4e11('0x40')](this['_domEmitter'],_0x4e11('0xd'),(_0x336488,_0x5b280a)=>{const _0x59829f=_0x5b280a[_0x4e11('0x21')];_0x1e8d05['isVisible']&&_0x1e8d05[_0x4e11('0x47')][_0x4e11('0x17')](_0x59829f)||_0x1ab4af[_0x4e11('0x4a')][_0x4e11('0x47')][_0x4e11('0x17')](_0x59829f)||this[_0x4e11('0x5a')]&&_0x50d279[_0x4e11('0x1')]()&&(_0x175c91(),_0x336488['preventClosingBalloon']=!0x0);},{'priority':_0x4e11('0x1d')}),this[_0x4e11('0x8')][_0x4e11('0x10')](_0x50d279);}[_0x4e11('0x36')](_0x58a322){_0x58a322&&(this[_0x4e11('0x3d')](_0x58a322),this[_0x4e11('0x8')][_0x4e11('0x2e')](_0x58a322));}[_0x4e11('0x1a')](_0x4b0ed1){for(const _0x36362c of this[_0x4e11('0x43')])_0x4b0ed1['includes'](_0x36362c)||this['_manuallyClosedAnnotationViews'][_0x4e11('0x5')](_0x36362c[_0x4e11('0x4a')]);this[_0x4e11('0x43')]=_0x4b0ed1;}[_0x4e11('0x5b')](){const _0x2299bb=this[_0x4e11('0xb')];this[_0x4e11('0x3f')][_0x4e11('0x53')](),_0x2299bb[_0x4e11('0x12')]&&this[_0x4e11('0x19')]();}['_showBalloon'](_0x523982){if(this['_manuallyClosedAnnotationViews'][_0x4e11('0x56')](_0x523982[_0x4e11('0x4a')]))return;const _0x5eb3e6=this['balloonPanelView'][_0x4e11('0x7')][_0x4e11('0x39')];_0x5eb3e6!==_0x523982[_0x4e11('0x4a')]?(_0x5eb3e6&&this[_0x4e11('0x32')](_0x5eb3e6),this[_0x4e11('0x1e')](_0x523982[_0x4e11('0x4a')]),this[_0x4e11('0xb')][_0x4e11('0x7')][_0x4e11('0x3e')](),this[_0x4e11('0xb')][_0x4e11('0x7')][_0x4e11('0x10')](_0x523982[_0x4e11('0x4a')]),this[_0x4e11('0x19')]()):this[_0x4e11('0x19')]();}['_updateBalloonPosition'](){const _0x12cd67=this['balloonPanelView'][_0x4e11('0x7')][_0x4e11('0x39')],_0x5a51bb=_0x12cd67&&this[_0x4e11('0x3f')]['getByView'](_0x12cd67);if(!_0x5a51bb||!this[_0x4e11('0x27')][_0x4e11('0x56')](_0x5a51bb))return;const _0x4aaa93=this[_0x4e11('0x27')]['get'](_0x5a51bb)[_0x4e11('0x47')],_0x5b6f68=function(){const _0x196fe2=_0x35ae86[_0x4e11('0x14')];return[_0x196fe2[_0x4e11('0x30')],_0x196fe2[_0x4e11('0x52')],_0x196fe2[_0x4e11('0x29')],_0x196fe2['northArrowSouth'],_0x196fe2[_0x4e11('0x42')],_0x196fe2['northArrowSouthWest']];}();this['balloonPanelView']['pin']({'target':_0x4aaa93,'positions':_0x5b6f68});}['_hideBalloon'](){const _0x38116a=this[_0x4e11('0xb')],_0x7f9772=_0x38116a[_0x4e11('0x7')][_0x4e11('0x39')];_0x7f9772&&(this[_0x4e11('0x32')](_0x7f9772),_0x38116a['unpin'](),_0x38116a[_0x4e11('0x7')][_0x4e11('0x3e')]());}[_0x4e11('0x1e')](_0x50e122){this['listenTo'](_0x50e122,_0x4e11('0x4'),()=>this[_0x4e11('0x19')]()),this[_0x4e11('0x40')](_0x50e122,_0x4e11('0x6'),(_0x4c10cf,_0x5c9bc9)=>{this[_0x4e11('0x51')]['add'](_0x50e122),this[_0x4e11('0x54')](),_0x5c9bc9();});}[_0x4e11('0x32')](_0x2e38fe){this[_0x4e11('0x3d')](_0x2e38fe);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x579b=['change:targetRect','_alignForTopChange','bottom','target','push','_sidebarItemViewToAnnotation','change:top','view','refresh','minHeight','last','_activeAnnotation','class','listenTo','getIndex','content','destroy','context','_setItemTop','container','_detachFromContainer','sidebar-setcontainer-invalid-element','locale','element','_updateLastItem','add','rearrange','set','stopListening','sidebar.preventScrollOutOfView','delete','setContainer','define','get','_alignAfterItem','_getTargetTop','_attachToContainer','sidebar.container','top','change:_lastItem','updateHeight','_recalculateBuffer','remove','_annotations','config','change:bottom','clear','_alignBeforeItem','targetRect','_annotationToSidebarItemView','_recalculate','_getItemBefore','max','bind','_alignForBottomChange','isAnimationDisabled','object','pluginName','list','_getItemAfter','_getMaxAvailableTop','nodeType','appendChild','_spaceBetweenItems','getSidebarItemView','_lastItem','_destroySidebarItemView','render','length','_createSidebarView','Sidebar','isActive','_alignToTargetRect'];(function(_0x18c2ac,_0x579b06){const _0x1bb21c=function(_0x4972ae){while(--_0x4972ae){_0x18c2ac['push'](_0x18c2ac['shift']());}};_0x1bb21c(++_0x579b06);}(_0x579b,0xcc));const _0x1bb2=function(_0x18c2ac,_0x579b06){_0x18c2ac=_0x18c2ac-0x0;let _0x1bb21c=_0x579b[_0x18c2ac];return _0x1bb21c;};import{ContextPlugin as _0x3ce82f}from'ckeditor5/src/core';import{Rect as _0x3d03cc,CKEditorError as _0x36b5e}from'ckeditor5/src/utils';import _0x16d3f8 from'./view/sidebarview';import _0x124176 from'./view/sidebaritemview';export default class z extends _0x3ce82f{static get[_0x1bb2('0x48')](){return _0x1bb2('0xc');}constructor(_0x385da3){super(_0x385da3),this[_0x1bb2('0x2a')](_0x1bb2('0x7'),void 0x0),this[_0x1bb2('0x16')]=this[_0x1bb2('0xb')](),this['set']('container',null),this[_0x1bb2('0x5')]=0x19,this[_0x1bb2('0x14')]=new Map(),this[_0x1bb2('0x40')]=new Map(),this[_0x1bb2('0x20')]['config'][_0x1bb2('0x2f')](_0x1bb2('0x2c'),!0x1),this[_0x1bb2('0x3a')]=null,this[_0x1bb2('0x1a')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x509c10=this[_0x1bb2('0x20')][_0x1bb2('0x3b')][_0x1bb2('0x30')](_0x1bb2('0x34'));_0x509c10&&this[_0x1bb2('0x2e')](_0x509c10);}[_0x1bb2('0x2e')](_0x418023){if(!y(_0x418023))throw new _0x36b5e(_0x1bb2('0x24'));this[_0x1bb2('0x22')]=_0x418023;}[_0x1bb2('0x33')]({viewClass:_0x1e0b1d='',spaceBetweenItems:_0x377e6e=0x19}={}){if(!y(this[_0x1bb2('0x22')]))throw new _0x36b5e('sidebar-attachtocontainer-missing-container',this);this['container'][_0x1bb2('0x4')](this[_0x1bb2('0x16')][_0x1bb2('0x26')]),this[_0x1bb2('0x16')][_0x1bb2('0x1b')]=_0x1e0b1d,this[_0x1bb2('0x5')]=_0x377e6e;}[_0x1bb2('0x29')]({removedAnnotation:_0x4cbecf,previousAnnotation:_0x551bea,nextAnnotation:_0xe9283c}){const _0x8e50d9=this['getSidebarItemView'](_0x4cbecf);this[_0x1bb2('0x16')][_0x1bb2('0x0')][_0x1bb2('0x39')](_0x8e50d9),this[_0x1bb2('0x8')](_0x4cbecf),_0x551bea&&this[_0x1bb2('0xe')](this[_0x1bb2('0x6')](_0x551bea)),_0xe9283c&&this[_0x1bb2('0xe')](this['getSidebarItemView'](_0xe9283c)),this[_0x1bb2('0x27')]();}[_0x1bb2('0x17')]({blurredAnnotation:_0x1e2a25,activatedAnnotation:_0x5264f6,disableAnimationOnActivatedAnnotation:_0x576573}){if(this[_0x1bb2('0x1a')]=_0x5264f6,_0x1e2a25){_0x1e2a25[_0x1bb2('0xd')]=!0x1;const _0x10fee6=this[_0x1bb2('0x6')](_0x1e2a25);_0x10fee6&&_0x576573&&(_0x10fee6[_0x1bb2('0x46')]=!0x1);}if(_0x5264f6){const _0x9de0a0=this[_0x1bb2('0x6')](_0x5264f6);_0x9de0a0&&(_0x5264f6['isActive']=!0x0,_0x576573&&(_0x9de0a0[_0x1bb2('0x46')]=!0x0,_0x9de0a0[_0x1bb2('0x35')]+=0x1),this[_0x1bb2('0xe')](_0x9de0a0));}}[_0x1bb2('0x23')](_0x5a6d0c){if(this['view'][_0x1bb2('0x26')][_0x1bb2('0x39')](),_0x5a6d0c)for(const _0x2cd77c of _0x5a6d0c)this[_0x1bb2('0x8')](_0x2cd77c);this[_0x1bb2('0x16')][_0x1bb2('0x0')][_0x1bb2('0x3d')](),this[_0x1bb2('0x16')][_0x1bb2('0x1b')]='',this[_0x1bb2('0x7')]=null;}['addAnnotation'](_0x5bf5e0,_0x683a04){_0x683a04||(_0x683a04=_0x5bf5e0[_0x1bb2('0x16')]);const _0x512e19=new _0x124176(this[_0x1bb2('0x20')]['locale']);this[_0x1bb2('0x14')][_0x1bb2('0x2a')](_0x512e19,_0x5bf5e0),this[_0x1bb2('0x40')]['set'](_0x5bf5e0,_0x512e19),_0x512e19[_0x1bb2('0x1e')][_0x1bb2('0x28')](_0x683a04),this[_0x1bb2('0x1c')](_0x5bf5e0[_0x1bb2('0x16')],_0x1bb2('0xf'),(_0x1613ee,_0x44949a,_0x593f85)=>{const _0x53affb=this[_0x1bb2('0x32')](_0x5bf5e0,_0x593f85);_0x512e19['_targetTop']!=_0x53affb&&(_0x512e19['_targetTop']=_0x53affb,this[_0x1bb2('0x21')](_0x512e19,_0x53affb));}),this[_0x1bb2('0x1c')](_0x512e19,_0x1bb2('0x15'),()=>{this[_0x1bb2('0x41')](_0x512e19,_0x1bb2('0x35'));}),this[_0x1bb2('0x1c')](_0x512e19,_0x1bb2('0x3c'),()=>{this[_0x1bb2('0x41')](_0x512e19,_0x1bb2('0x11'));}),this[_0x1bb2('0xe')](_0x512e19);const _0xcbdcc7=this[_0x1bb2('0x42')](_0x512e19);if(_0xcbdcc7)this['_alignAfterItem'](_0xcbdcc7,_0x512e19)||this[_0x1bb2('0xe')](_0x512e19);else this[_0x1bb2('0xe')](_0x512e19);return this[_0x1bb2('0x27')](),this[_0x1bb2('0x16')][_0x1bb2('0x0')][_0x1bb2('0x28')](_0x512e19),_0x512e19;}[_0x1bb2('0x10')](_0x217e16){if(!_0x217e16[_0x1bb2('0x1e')][_0x1bb2('0xa')])return;const _0x36da67=this['_getItemBefore'](_0x217e16);if(!_0x36da67)return;const _0x4a24b0=this['_sidebarItemViewToAnnotation'][_0x1bb2('0x30')](_0x36da67),_0xdb8fff=this[_0x1bb2('0x1a')];_0xdb8fff&&_0xdb8fff===_0x4a24b0?this[_0x1bb2('0x31')](_0x36da67,_0x217e16):this[_0x1bb2('0x3e')](_0x217e16,_0x36da67);}[_0x1bb2('0x45')](_0x4a049d){if(!_0x4a049d[_0x1bb2('0x1e')]['length'])return;const _0x2bc4e6=this[_0x1bb2('0x1')](_0x4a049d);if(!_0x2bc4e6)return;const _0x5e502f=this[_0x1bb2('0x14')][_0x1bb2('0x30')](_0x2bc4e6),_0x5347f6=this[_0x1bb2('0x20')][_0x1bb2('0x3b')][_0x1bb2('0x30')]('sidebar.preventScrollOutOfView'),_0x46661d=this[_0x1bb2('0x1a')];_0x46661d&&_0x46661d===_0x5e502f&&_0x5347f6?(this[_0x1bb2('0x3e')](_0x2bc4e6,_0x4a049d),this[_0x1bb2('0x31')](_0x4a049d,_0x2bc4e6)):_0x46661d&&_0x46661d===_0x5e502f?this['_alignBeforeItem'](_0x2bc4e6,_0x4a049d):this[_0x1bb2('0x31')](_0x4a049d,_0x2bc4e6);}[_0x1bb2('0x41')](_0x2df1b3,_0x2a9fa5){0x0===this[_0x1bb2('0x38')][_0x1bb2('0xa')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1046ba,changedProp:_0x1236f0}of this[_0x1bb2('0x38')])_0x1bb2('0x35')===_0x1236f0?this[_0x1bb2('0x10')](_0x1046ba):this['_alignForBottomChange'](_0x1046ba);this[_0x1bb2('0x38')]=[];},0xa),this[_0x1bb2('0x38')][_0x1bb2('0x13')]({'sidebarItemView':_0x2df1b3,'changedProp':_0x2a9fa5});}['getSidebarItemView'](_0x59a2f5){return this[_0x1bb2('0x40')]['get'](_0x59a2f5);}[_0x1bb2('0x1f')](){this[_0x1bb2('0x2b')](),this['view'][_0x1bb2('0x1f')]();}[_0x1bb2('0x8')](_0x30751f){const _0x149cb5=this[_0x1bb2('0x6')](_0x30751f);this[_0x1bb2('0x2b')](_0x149cb5),this['stopListening'](_0x30751f[_0x1bb2('0x16')]),_0x149cb5['destroy'](),this[_0x1bb2('0x40')]['delete'](_0x30751f),this[_0x1bb2('0x14')][_0x1bb2('0x2d')](_0x149cb5);}[_0x1bb2('0xb')](){const _0x109872=new _0x16d3f8(this['context'][_0x1bb2('0x25')]);return _0x109872[_0x1bb2('0x9')](),this['on'](_0x1bb2('0x36'),(_0x499230,_0x3c319d,_0x2eee4f,_0x51b3d9)=>{_0x51b3d9&&_0x109872['unbind']('minHeight'),_0x2eee4f?_0x109872[_0x1bb2('0x44')](_0x1bb2('0x18'))['to'](_0x2eee4f,_0x1bb2('0x11')):_0x109872[_0x1bb2('0x18')]=null;}),_0x109872;}[_0x1bb2('0x27')](){var _0x332dd4;this['_lastItem']=(null===(_0x332dd4=this[_0x1bb2('0x3a')])||void 0x0===_0x332dd4?void 0x0:_0x332dd4[_0x1bb2('0x19')])?this['getSidebarItemView'](this[_0x1bb2('0x3a')][_0x1bb2('0x19')]):null;}[_0x1bb2('0x42')](_0x24453){var _0x2b7893;const _0x1422b6=this['_sidebarItemViewToAnnotation']['get'](_0x24453),_0x4cba01=_0x1422b6&&(null===(_0x2b7893=this[_0x1bb2('0x3a')])||void 0x0===_0x2b7893?void 0x0:_0x2b7893[_0x1bb2('0x30')](this['_annotations']['getIndex'](_0x1422b6)-0x1));return _0x4cba01&&this[_0x1bb2('0x6')](_0x4cba01)||null;}[_0x1bb2('0x1')](_0x5c7b16){var _0x3db662;const _0x5c24af=this[_0x1bb2('0x14')][_0x1bb2('0x30')](_0x5c7b16),_0x1dec87=_0x5c24af&&(null===(_0x3db662=this['_annotations'])||void 0x0===_0x3db662?void 0x0:_0x3db662['get'](this[_0x1bb2('0x3a')][_0x1bb2('0x1d')](_0x5c24af)+0x1));return _0x1dec87&&this[_0x1bb2('0x6')](_0x1dec87)||null;}[_0x1bb2('0x3e')](_0x1e3ce8,_0x3a17a6){_0x1e3ce8[_0x1bb2('0x37')]();const _0x4971da=H(_0x3a17a6[_0x1bb2('0x11')]+this[_0x1bb2('0x5')],_0x1e3ce8[_0x1bb2('0x35')]);return!!_0x4971da&&(this['_setItemTop'](_0x3a17a6,_0x3a17a6[_0x1bb2('0x35')]-_0x4971da),!0x0);}['_alignAfterItem'](_0x4c5bc7,_0x216f3a){_0x4c5bc7[_0x1bb2('0x37')]();const _0x5f27b9=H(_0x4c5bc7[_0x1bb2('0x11')]+this[_0x1bb2('0x5')],_0x216f3a[_0x1bb2('0x35')]);return!!_0x5f27b9&&(this[_0x1bb2('0x21')](_0x216f3a,_0x216f3a[_0x1bb2('0x35')]+_0x5f27b9,!0x1),!0x0);}[_0x1bb2('0xe')](_0x2cc28f){const _0x2710dc=this[_0x1bb2('0x14')][_0x1bb2('0x30')](_0x2cc28f);if(!_0x2710dc||!_0x2710dc[_0x1bb2('0x12')]||!_0x2710dc['targetRect'])return;const _0x32e881=this[_0x1bb2('0x32')](_0x2710dc,_0x2710dc[_0x1bb2('0x3f')]);this[_0x1bb2('0x21')](_0x2cc28f,_0x32e881);}[_0x1bb2('0x32')](_0x2890a6,_0x2bb563){if(null===_0x2bb563)return 0x0;if(_0x2890a6[_0x1bb2('0x12')]instanceof _0x3d03cc)return _0x2bb563[_0x1bb2('0x35')];{const _0x413f31=new _0x3d03cc(this['view'][_0x1bb2('0x26')])[_0x1bb2('0x35')];return _0x2bb563[_0x1bb2('0x35')]-_0x413f31;}}[_0x1bb2('0x21')](_0x3cafa5,_0x2a47c0,_0x8d81b3=this['context'][_0x1bb2('0x3b')][_0x1bb2('0x30')](_0x1bb2('0x2c'))){_0x8d81b3&&(_0x2a47c0=Math[_0x1bb2('0x43')](_0x2a47c0,this[_0x1bb2('0x2')](_0x3cafa5))),_0x3cafa5[_0x1bb2('0x35')]=_0x2a47c0;}[_0x1bb2('0x2')](_0x326568){let _0x360a2e=this[_0x1bb2('0x42')](_0x326568),_0x838563=0x0;for(;_0x360a2e;)_0x360a2e[_0x1bb2('0x37')](),_0x838563+=this[_0x1bb2('0x5')]+_0x360a2e['height'],_0x360a2e=this[_0x1bb2('0x42')](_0x360a2e);return _0x838563;}}function H(_0x2bb70d,_0x280d0e){return Math[_0x1bb2('0x43')](_0x2bb70d-_0x280d0e,0x0);}function y(_0x1869e0){return null!==_0x1869e0&&_0x1bb2('0x47')==typeof _0x1869e0&&0x1===_0x1869e0[_0x1bb2('0x3')];}
23
+ const _0xc8fc=['listenTo','_alignBeforeItem','view','class','locale','_alignForBottomChange','updateHeight','get','context','length','destroy','Sidebar','content','_annotationToSidebarItemView','delete','set','_sidebarItemViewToAnnotation','pluginName','bind','nodeType','_recalculate','_getMaxAvailableTop','rearrange','isAnimationDisabled','_alignForTopChange','_getItemBefore','_recalculateBuffer','_activeAnnotation','change:top','refresh','targetRect','sidebar.container','config','bottom','change:bottom','add','_lastItem','remove','_alignAfterItem','target','_spaceBetweenItems','list','render','_alignToTargetRect','_updateLastItem','_getTargetTop','_annotations','define','max','stopListening','_destroySidebarItemView','push','sidebar-setcontainer-invalid-element','getSidebarItemView','minHeight','element','setContainer','sidebar-attachtocontainer-missing-container','_createSidebarView','last','appendChild','_attachToContainer','_targetTop','_getItemAfter','_setItemTop','init','container','change:targetRect','sidebar.preventScrollOutOfView','top'];(function(_0x1cfca1,_0xc8fc8b){const _0x5855f1=function(_0x3c2d76){while(--_0x3c2d76){_0x1cfca1['push'](_0x1cfca1['shift']());}};_0x5855f1(++_0xc8fc8b);}(_0xc8fc,0xdd));const _0x5855=function(_0x1cfca1,_0xc8fc8b){_0x1cfca1=_0x1cfca1-0x0;let _0x5855f1=_0xc8fc[_0x1cfca1];return _0x5855f1;};import{ContextPlugin as _0x545a91}from'ckeditor5/src/core';import{Rect as _0x55276f,CKEditorError as _0x35b55a}from'ckeditor5/src/utils';import _0x5c9c97 from'./view/sidebarview';import _0x3a0225 from'./view/sidebaritemview';export default class z extends _0x545a91{static get[_0x5855('0x6')](){return _0x5855('0x0');}constructor(_0x4abea0){super(_0x4abea0),this[_0x5855('0x4')]('_lastItem',void 0x0),this[_0x5855('0x3d')]=this[_0x5855('0x2f')](),this[_0x5855('0x4')]('container',null),this[_0x5855('0x1d')]=0x19,this[_0x5855('0x5')]=new Map(),this[_0x5855('0x2')]=new Map(),this['context'][_0x5855('0x15')][_0x5855('0x24')](_0x5855('0x39'),!0x1),this[_0x5855('0x23')]=null,this[_0x5855('0x10')]=null,this[_0x5855('0xf')]=[];}[_0x5855('0x36')](){const _0x2df2d9=this[_0x5855('0x43')]['config'][_0x5855('0x42')](_0x5855('0x14'));_0x2df2d9&&this[_0x5855('0x2d')](_0x2df2d9);}[_0x5855('0x2d')](_0x26f670){if(!y(_0x26f670))throw new _0x35b55a(_0x5855('0x29'));this[_0x5855('0x37')]=_0x26f670;}[_0x5855('0x32')]({viewClass:_0x19e34b='',spaceBetweenItems:_0x15865f=0x19}={}){if(!y(this['container']))throw new _0x35b55a(_0x5855('0x2e'),this);this[_0x5855('0x37')][_0x5855('0x31')](this[_0x5855('0x3d')][_0x5855('0x2c')]),this[_0x5855('0x3d')][_0x5855('0x3e')]=_0x19e34b,this[_0x5855('0x1d')]=_0x15865f;}[_0x5855('0xb')]({removedAnnotation:_0x531f68,previousAnnotation:_0x34d7f8,nextAnnotation:_0x1a7560}){const _0x547289=this[_0x5855('0x2a')](_0x531f68);this[_0x5855('0x3d')][_0x5855('0x1e')][_0x5855('0x1a')](_0x547289),this[_0x5855('0x27')](_0x531f68),_0x34d7f8&&this[_0x5855('0x20')](this[_0x5855('0x2a')](_0x34d7f8)),_0x1a7560&&this[_0x5855('0x20')](this[_0x5855('0x2a')](_0x1a7560)),this[_0x5855('0x21')]();}[_0x5855('0x12')]({blurredAnnotation:_0x10f2c2,activatedAnnotation:_0x27c6ee,disableAnimationOnActivatedAnnotation:_0x5e1d0e}){if(this[_0x5855('0x10')]=_0x27c6ee,_0x10f2c2){_0x10f2c2['isActive']=!0x1;const _0x48056a=this[_0x5855('0x2a')](_0x10f2c2);_0x48056a&&_0x5e1d0e&&(_0x48056a[_0x5855('0xc')]=!0x1);}if(_0x27c6ee){const _0x597fd9=this['getSidebarItemView'](_0x27c6ee);_0x597fd9&&(_0x27c6ee['isActive']=!0x0,_0x5e1d0e&&(_0x597fd9[_0x5855('0xc')]=!0x0,_0x597fd9[_0x5855('0x3a')]+=0x1),this[_0x5855('0x20')](_0x597fd9));}}['_detachFromContainer'](_0x4e5c30){if(this[_0x5855('0x3d')][_0x5855('0x2c')][_0x5855('0x1a')](),_0x4e5c30)for(const _0x3ebc16 of _0x4e5c30)this[_0x5855('0x27')](_0x3ebc16);this[_0x5855('0x3d')][_0x5855('0x1e')]['clear'](),this[_0x5855('0x3d')]['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3be7f2,_0x1e51b6){_0x1e51b6||(_0x1e51b6=_0x3be7f2[_0x5855('0x3d')]);const _0x431815=new _0x3a0225(this[_0x5855('0x43')][_0x5855('0x3f')]);this[_0x5855('0x5')][_0x5855('0x4')](_0x431815,_0x3be7f2),this[_0x5855('0x2')][_0x5855('0x4')](_0x3be7f2,_0x431815),_0x431815[_0x5855('0x1')][_0x5855('0x18')](_0x1e51b6),this['listenTo'](_0x3be7f2[_0x5855('0x3d')],_0x5855('0x38'),(_0x56112a,_0x153d7b,_0x54a848)=>{const _0x28514b=this[_0x5855('0x22')](_0x3be7f2,_0x54a848);_0x431815[_0x5855('0x33')]!=_0x28514b&&(_0x431815[_0x5855('0x33')]=_0x28514b,this[_0x5855('0x35')](_0x431815,_0x28514b));}),this[_0x5855('0x3b')](_0x431815,_0x5855('0x11'),()=>{this[_0x5855('0x9')](_0x431815,_0x5855('0x3a'));}),this[_0x5855('0x3b')](_0x431815,_0x5855('0x17'),()=>{this[_0x5855('0x9')](_0x431815,'bottom');}),this[_0x5855('0x20')](_0x431815);const _0x43ab26=this[_0x5855('0xe')](_0x431815);if(_0x43ab26)this[_0x5855('0x1b')](_0x43ab26,_0x431815)||this[_0x5855('0x20')](_0x431815);else this[_0x5855('0x20')](_0x431815);return this[_0x5855('0x21')](),this[_0x5855('0x3d')][_0x5855('0x1e')][_0x5855('0x18')](_0x431815),_0x431815;}[_0x5855('0xd')](_0x1e9e7d){if(!_0x1e9e7d[_0x5855('0x1')]['length'])return;const _0x4f4e46=this[_0x5855('0xe')](_0x1e9e7d);if(!_0x4f4e46)return;const _0x5dcfb5=this[_0x5855('0x5')][_0x5855('0x42')](_0x4f4e46),_0x75f3ab=this[_0x5855('0x10')];_0x75f3ab&&_0x75f3ab===_0x5dcfb5?this[_0x5855('0x1b')](_0x4f4e46,_0x1e9e7d):this[_0x5855('0x3c')](_0x1e9e7d,_0x4f4e46);}[_0x5855('0x40')](_0x277c43){if(!_0x277c43[_0x5855('0x1')][_0x5855('0x44')])return;const _0x47df08=this[_0x5855('0x34')](_0x277c43);if(!_0x47df08)return;const _0x5dc44f=this[_0x5855('0x5')][_0x5855('0x42')](_0x47df08),_0x10b6ec=this[_0x5855('0x43')][_0x5855('0x15')]['get'](_0x5855('0x39')),_0x12ea9b=this[_0x5855('0x10')];_0x12ea9b&&_0x12ea9b===_0x5dc44f&&_0x10b6ec?(this['_alignBeforeItem'](_0x47df08,_0x277c43),this['_alignAfterItem'](_0x277c43,_0x47df08)):_0x12ea9b&&_0x12ea9b===_0x5dc44f?this[_0x5855('0x3c')](_0x47df08,_0x277c43):this['_alignAfterItem'](_0x277c43,_0x47df08);}[_0x5855('0x9')](_0x4ea377,_0x2f577e){0x0===this[_0x5855('0xf')][_0x5855('0x44')]&&setTimeout(()=>{for(const {sidebarItemView:_0x32b907,changedProp:_0x2572d0}of this[_0x5855('0xf')])_0x5855('0x3a')===_0x2572d0?this[_0x5855('0xd')](_0x32b907):this[_0x5855('0x40')](_0x32b907);this['_recalculateBuffer']=[];},0xa),this[_0x5855('0xf')][_0x5855('0x28')]({'sidebarItemView':_0x4ea377,'changedProp':_0x2f577e});}[_0x5855('0x2a')](_0x4e3825){return this[_0x5855('0x2')][_0x5855('0x42')](_0x4e3825);}[_0x5855('0x45')](){this[_0x5855('0x26')](),this['view'][_0x5855('0x45')]();}[_0x5855('0x27')](_0x494dcd){const _0x1d904c=this[_0x5855('0x2a')](_0x494dcd);this[_0x5855('0x26')](_0x1d904c),this['stopListening'](_0x494dcd[_0x5855('0x3d')]),_0x1d904c[_0x5855('0x45')](),this[_0x5855('0x2')][_0x5855('0x3')](_0x494dcd),this[_0x5855('0x5')][_0x5855('0x3')](_0x1d904c);}[_0x5855('0x2f')](){const _0x3641bb=new _0x5c9c97(this[_0x5855('0x43')][_0x5855('0x3f')]);return _0x3641bb[_0x5855('0x1f')](),this['on']('change:_lastItem',(_0x5d5fb7,_0x187432,_0x43430f,_0x1ea4ec)=>{_0x1ea4ec&&_0x3641bb['unbind']('minHeight'),_0x43430f?_0x3641bb[_0x5855('0x7')](_0x5855('0x2b'))['to'](_0x43430f,_0x5855('0x16')):_0x3641bb[_0x5855('0x2b')]=null;}),_0x3641bb;}['_updateLastItem'](){var _0x46c0cf;this[_0x5855('0x19')]=(null===(_0x46c0cf=this['_annotations'])||void 0x0===_0x46c0cf?void 0x0:_0x46c0cf[_0x5855('0x30')])?this['getSidebarItemView'](this[_0x5855('0x23')]['last']):null;}['_getItemBefore'](_0x693c0d){var _0x15850d;const _0x68c1c2=this[_0x5855('0x5')]['get'](_0x693c0d),_0x15eca6=_0x68c1c2&&(null===(_0x15850d=this[_0x5855('0x23')])||void 0x0===_0x15850d?void 0x0:_0x15850d[_0x5855('0x42')](this[_0x5855('0x23')]['getIndex'](_0x68c1c2)-0x1));return _0x15eca6&&this[_0x5855('0x2a')](_0x15eca6)||null;}['_getItemAfter'](_0x1ff5f3){var _0x24badc;const _0x3fa9d8=this['_sidebarItemViewToAnnotation'][_0x5855('0x42')](_0x1ff5f3),_0x253fbc=_0x3fa9d8&&(null===(_0x24badc=this[_0x5855('0x23')])||void 0x0===_0x24badc?void 0x0:_0x24badc[_0x5855('0x42')](this[_0x5855('0x23')]['getIndex'](_0x3fa9d8)+0x1));return _0x253fbc&&this[_0x5855('0x2a')](_0x253fbc)||null;}[_0x5855('0x3c')](_0x2fc442,_0x51ece5){_0x2fc442[_0x5855('0x41')]();const _0x58c22c=H(_0x51ece5[_0x5855('0x16')]+this[_0x5855('0x1d')],_0x2fc442[_0x5855('0x3a')]);return!!_0x58c22c&&(this['_setItemTop'](_0x51ece5,_0x51ece5['top']-_0x58c22c),!0x0);}[_0x5855('0x1b')](_0x59ad37,_0x2a68c7){_0x59ad37['updateHeight']();const _0x38c5ac=H(_0x59ad37[_0x5855('0x16')]+this[_0x5855('0x1d')],_0x2a68c7[_0x5855('0x3a')]);return!!_0x38c5ac&&(this[_0x5855('0x35')](_0x2a68c7,_0x2a68c7[_0x5855('0x3a')]+_0x38c5ac,!0x1),!0x0);}[_0x5855('0x20')](_0xf5963f){const _0x121069=this[_0x5855('0x5')][_0x5855('0x42')](_0xf5963f);if(!_0x121069||!_0x121069[_0x5855('0x1c')]||!_0x121069['targetRect'])return;const _0x378db5=this[_0x5855('0x22')](_0x121069,_0x121069[_0x5855('0x13')]);this['_setItemTop'](_0xf5963f,_0x378db5);}['_getTargetTop'](_0x2692bc,_0x534102){if(null===_0x534102)return 0x0;if(_0x2692bc[_0x5855('0x1c')]instanceof _0x55276f)return _0x534102[_0x5855('0x3a')];{const _0x4d095c=new _0x55276f(this[_0x5855('0x3d')][_0x5855('0x2c')])['top'];return _0x534102['top']-_0x4d095c;}}[_0x5855('0x35')](_0x32f724,_0x5f5180,_0x55c552=this['context'][_0x5855('0x15')]['get'](_0x5855('0x39'))){_0x55c552&&(_0x5f5180=Math[_0x5855('0x25')](_0x5f5180,this[_0x5855('0xa')](_0x32f724))),_0x32f724[_0x5855('0x3a')]=_0x5f5180;}[_0x5855('0xa')](_0x34d4f6){let _0x9205b=this[_0x5855('0xe')](_0x34d4f6),_0x40a55e=0x0;for(;_0x9205b;)_0x9205b[_0x5855('0x41')](),_0x40a55e+=this[_0x5855('0x1d')]+_0x9205b['height'],_0x9205b=this[_0x5855('0xe')](_0x9205b);return _0x40a55e;}}function H(_0x14d1ad,_0x3e13e1){return Math['max'](_0x14d1ad-_0x3e13e1,0x0);}function y(_0x328c9a){return null!==_0x328c9a&&'object'==typeof _0x328c9a&&0x1===_0x328c9a[_0x5855('0x8')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2adc=['...','toString','span','ck-annotation-counter','setTemplate','number','set','icon','annotationType','extendTemplate','ck-annotation-counter__badge--edit-mode','children','add','ck-annotation-counter__badge','_badge','counterView','isDirty'];(function(_0x598520,_0x2adc33){const _0xf38186=function(_0x5333f3){while(--_0x5333f3){_0x598520['push'](_0x598520['shift']());}};_0xf38186(++_0x2adc33);}(_0x2adc,0x1dc));const _0xf381=function(_0x598520,_0x2adc33){_0x598520=_0x598520-0x0;let _0xf38186=_0x2adc[_0x598520];return _0xf38186;};import{ButtonView as _0x1c75f6,View as _0x11f0b6}from'ckeditor5/src/ui';import _0x46e691 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1c75f6{constructor(_0x4896c5){super(_0x4896c5);const _0x539a66=this['bindTemplate'];this['set'](_0xf381('0x10'),!0x1),this[_0xf381('0x6')](_0xf381('0x5'),0x0),this['bind'](_0xf381('0xe'))['to'](this,_0xf381('0x10'),this,_0xf381('0x5'),(_0xecab9d,_0x1af177)=>_0xecab9d?_0xf381('0x0'):_0x1af177[_0xf381('0x1')]()),this[_0xf381('0x6')](_0xf381('0x8'),''),this[_0xf381('0x7')]=_0x46e691,this[_0xf381('0x9')]({'attributes':{'class':[_0xf381('0x3')]}}),this[_0xf381('0xf')]=new _0x11f0b6(),this[_0xf381('0xf')][_0xf381('0x4')]({'tag':_0xf381('0x2'),'attributes':{'class':[_0xf381('0xd'),_0x539a66['to'](_0xf381('0x8'),_0x551dc4=>'ck-annotation-counter__badge--'+_0x551dc4),_0x539a66['if'](_0xf381('0x10'),_0xf381('0xa'))]},'children':[{'text':_0x539a66['to'](_0xf381('0xe'))}]}),this[_0xf381('0xb')][_0xf381('0xc')](this['counterView']);}}
23
+ const _0x2d1a=['children','set','_badge','ck-annotation-counter__badge--','ck-annotation-counter__badge--edit-mode','add','bind','ck-annotation-counter','annotationType','toString','number','isDirty','counterView','ck-annotation-counter__badge','setTemplate'];(function(_0x17aa43,_0x2d1a0f){const _0x1e8755=function(_0x4a740d){while(--_0x4a740d){_0x17aa43['push'](_0x17aa43['shift']());}};_0x1e8755(++_0x2d1a0f);}(_0x2d1a,0xc7));const _0x1e87=function(_0x17aa43,_0x2d1a0f){_0x17aa43=_0x17aa43-0x0;let _0x1e8755=_0x2d1a[_0x17aa43];return _0x1e8755;};import{ButtonView as _0x2498f3,View as _0x22d871}from'ckeditor5/src/ui';import _0x1c27bb from'../../../theme/icons/add-comment.svg';export default class D extends _0x2498f3{constructor(_0xa2c9cc){super(_0xa2c9cc);const _0xc3d8e0=this['bindTemplate'];this['set'](_0x1e87('0x7'),!0x1),this[_0x1e87('0xc')](_0x1e87('0x6'),0x0),this[_0x1e87('0x2')](_0x1e87('0xd'))['to'](this,'isDirty',this,'number',(_0xf94919,_0x52ce97)=>_0xf94919?'...':_0x52ce97[_0x1e87('0x5')]()),this[_0x1e87('0xc')](_0x1e87('0x4'),''),this['icon']=_0x1c27bb,this['extendTemplate']({'attributes':{'class':[_0x1e87('0x3')]}}),this['counterView']=new _0x22d871(),this[_0x1e87('0x8')][_0x1e87('0xa')]({'tag':'span','attributes':{'class':[_0x1e87('0x9'),_0xc3d8e0['to'](_0x1e87('0x4'),_0x502d28=>_0x1e87('0xe')+_0x502d28),_0xc3d8e0['if'](_0x1e87('0x7'),_0x1e87('0x0'))]},'children':[{'text':_0xc3d8e0['to'](_0x1e87('0xd'))}]}),this[_0x1e87('0xb')][_0x1e87('0x1')](this[_0x1e87('0x8')]);}}