@ckeditor/ckeditor5-comments 33.0.0 → 34.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/comments.js +2 -2
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/bs.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de-ch.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/hi.js +1 -1
  17. package/build/translations/hr.js +1 -1
  18. package/build/translations/hu.js +1 -1
  19. package/build/translations/id.js +1 -1
  20. package/build/translations/it.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/jv.js +1 -0
  23. package/build/translations/ko.js +1 -1
  24. package/build/translations/lv.js +1 -0
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt-br.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr-latn.js +1 -1
  33. package/build/translations/sr.js +1 -1
  34. package/build/translations/tk.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/ug.js +1 -1
  37. package/build/translations/uk.js +1 -1
  38. package/build/translations/ur.js +1 -0
  39. package/build/translations/zh-cn.js +1 -1
  40. package/build/translations/zh.js +1 -1
  41. package/lang/contexts.json +0 -3
  42. package/lang/translations/af.po +67 -0
  43. package/lang/translations/bs.po +0 -12
  44. package/lang/translations/cs.po +0 -12
  45. package/lang/translations/da.po +0 -12
  46. package/lang/translations/de-ch.po +0 -12
  47. package/lang/translations/de.po +0 -12
  48. package/lang/translations/el.po +0 -12
  49. package/lang/translations/en-au.po +0 -12
  50. package/lang/translations/en.po +0 -12
  51. package/lang/translations/es.po +2 -13
  52. package/lang/translations/et.po +0 -12
  53. package/lang/translations/fr.po +2 -13
  54. package/lang/translations/gl.po +0 -12
  55. package/lang/translations/hi.po +0 -12
  56. package/lang/translations/hr.po +0 -12
  57. package/lang/translations/hu.po +0 -12
  58. package/lang/translations/id.po +0 -12
  59. package/lang/translations/it.po +2 -13
  60. package/lang/translations/ja.po +0 -12
  61. package/lang/translations/jv.po +66 -0
  62. package/lang/translations/ko.po +0 -12
  63. package/lang/translations/lv.po +68 -0
  64. package/lang/translations/nl.po +0 -12
  65. package/lang/translations/no.po +0 -12
  66. package/lang/translations/pl.po +0 -12
  67. package/lang/translations/pt-br.po +2 -13
  68. package/lang/translations/ro.po +0 -12
  69. package/lang/translations/ru.po +0 -12
  70. package/lang/translations/sk.po +0 -12
  71. package/lang/translations/sr-latn.po +0 -12
  72. package/lang/translations/sr.po +0 -12
  73. package/lang/translations/tk.po +0 -12
  74. package/lang/translations/tr.po +0 -12
  75. package/lang/translations/ug.po +0 -12
  76. package/lang/translations/uk.po +0 -12
  77. package/lang/translations/ur.po +67 -0
  78. package/lang/translations/zh-cn.po +0 -12
  79. package/lang/translations/zh.po +0 -12
  80. package/package.json +3 -3
  81. package/src/annotations/annotation.js +1 -1
  82. package/src/annotations/annotationcollection.js +1 -1
  83. package/src/annotations/annotations.js +1 -1
  84. package/src/annotations/annotationsuis.js +1 -1
  85. package/src/annotations/editorannotations.js +1 -1
  86. package/src/annotations/inlineannotations.js +1 -1
  87. package/src/annotations/narrowsidebar.js +1 -1
  88. package/src/annotations/sidebar.js +1 -1
  89. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  90. package/src/annotations/view/annotationview.js +1 -1
  91. package/src/annotations/view/sidebaritemview.js +1 -1
  92. package/src/annotations/view/sidebarview.js +1 -1
  93. package/src/annotations/widesidebar.js +1 -1
  94. package/src/comments/addcommentthreadcommand.js +1 -1
  95. package/src/comments/commentsediting.js +1 -1
  96. package/src/comments/commentsrepository.js +1 -1
  97. package/src/comments/commentsui.js +1 -1
  98. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  99. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  100. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  101. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  102. package/src/comments/ui/commentthreadcontroller.js +1 -1
  103. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  104. package/src/comments/ui/view/basecommentview.js +1 -1
  105. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  106. package/src/comments/ui/view/commentcontentview.js +1 -1
  107. package/src/comments/ui/view/commentinputview.js +1 -1
  108. package/src/comments/ui/view/commentslistview.js +1 -1
  109. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  110. package/src/comments/ui/view/commentthreadview.js +1 -1
  111. package/src/comments/ui/view/commentview.js +1 -1
  112. package/src/comments.js +1 -1
  113. package/src/commentsonly.js +1 -1
  114. package/src/utils/common-translations.js +1 -1
  115. package/src/utils/createmutationobserver.js +1 -1
  116. package/src/comments/ui/view/confirmmixin.js +0 -23
  117. package/src/comments/ui/view/confirmview.js +0 -23
@@ -57,18 +57,6 @@ msgctxt "The confirmation message shown after pressing the delete comment thread
57
57
  msgid "Delete comment thread?"
58
58
  msgstr "刪除討論串?"
59
59
 
60
- msgctxt "The label for confirming an action."
61
- msgid "Yes"
62
- msgstr "好"
63
-
64
- msgctxt "The label for rejecting an action."
65
- msgid "No"
66
- msgstr "先不要"
67
-
68
- msgctxt "The label for confirming a dangerous action."
69
- msgid "Are you sure?"
70
- msgstr "確定做此操作?"
71
-
72
60
  msgctxt "The tooltip for the comment toolbar button."
73
61
  msgid "Comment"
74
62
  msgstr "留言"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "33.0.0",
3
+ "version": "34.2.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "^33.0.0",
35
- "ckeditor5-collaboration": "^33.0.0",
34
+ "ckeditor5": "^34.2.0",
35
+ "ckeditor5-collaboration": "^34.2.0",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15f1=['clear','isVisible','focusTracker','render','view','type','add','element','_type','_target','focusableElements','_isTargetElementVisible','targetRect','offsetParent','innerView','_assertCorrectTarget','refreshVisibility','getClientRects','target','_id','mainView','isActive','stopListening','set','annotation-invalid-target'];(function(_0xda45d7,_0x15f1f9){const _0x533eeb=function(_0x4893b8){while(--_0x4893b8){_0xda45d7['push'](_0xda45d7['shift']());}};_0x533eeb(++_0x15f1f9);}(_0x15f1,0x9d));const _0x533e=function(_0xda45d7,_0x15f1f9){_0xda45d7=_0xda45d7-0x0;let _0x533eeb=_0x15f1[_0xda45d7];return _0x533eeb;};import{CKEditorError as _0x5ca36a,Rect as _0x55baec,Collection as _0x14b303,mix as _0x2ca081,ObservableMixin as _0x40716d}from'ckeditor5/src/utils';import{isElement as _0x1dd9a2}from'lodash-es';export default class p{constructor({view:_0x347a41,target:_0x34a865,type:_0x431b37,isVisible:_0x4ec95a=!0x0}){this[_0x533e('0x16')]=_0x347a41,this[_0x533e('0x16')][_0x533e('0x0')]||this[_0x533e('0x16')][_0x533e('0x15')](),this[_0x533e('0x1')]=_0x431b37,this['_target']=_0x34a865,this[_0x533e('0x8')](),this[_0x533e('0x3')]=new _0x14b303([this['view'][_0x533e('0x0')]],{'idProperty':_0x533e('0xc')}),this[_0x533e('0x3')]['on'](_0x533e('0x18'),(_0xd88faa,_0x12206f)=>{this[_0x533e('0x16')][_0x533e('0x14')]['add'](_0x12206f);}),this[_0x533e('0x3')]['on']('remove',(_0x4b2901,_0x472c44)=>{this[_0x533e('0x16')][_0x533e('0x14')]['remove'](_0x472c44);}),this[_0x533e('0x10')](_0x533e('0x13'),_0x4ec95a);}get[_0x533e('0x17')](){return'function'==typeof this[_0x533e('0x1')]?this[_0x533e('0x1')]():this['_type'];}get[_0x533e('0x7')](){return this[_0x533e('0x16')]['mainView'];}get['target'](){return'function'==typeof this[_0x533e('0x2')]?this[_0x533e('0x2')]():this['_target'];}get[_0x533e('0x5')](){const _0x29e1dc=this['target'];return this[_0x533e('0x8')](),null!==_0x29e1dc&&this['_isTargetElementVisible']()?new _0x55baec(_0x29e1dc):null;}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4632f0){this[_0x533e('0x16')]['isActive']=_0x4632f0,this[_0x533e('0x16')][_0x533e('0xd')][_0x533e('0xe')]=_0x4632f0;}['updateTargetRect'](){this[_0x533e('0x16')][_0x533e('0x5')]=this[_0x533e('0x5')];}['destroy'](){this['focusableElements'][_0x533e('0xf')](),this[_0x533e('0x3')][_0x533e('0x12')](),this[_0x533e('0xf')]();}[_0x533e('0x9')](){this[_0x533e('0x13')]=this[_0x533e('0x4')]();}[_0x533e('0x4')](){const _0x494b5b=this[_0x533e('0xb')];if(_0x1dd9a2(_0x494b5b)){const _0x65f13f=_0x494b5b[_0x533e('0xa')]()['item'](0x0),_0x10eaa8=_0x494b5b[_0x533e('0x6')];if(!_0x65f13f||!_0x10eaa8)return!0x1;}return!0x0;}[_0x533e('0x8')](){const _0x3a765b=this['target'];if(!(null===_0x3a765b||_0x3a765b instanceof _0x55baec||_0x1dd9a2(_0x3a765b)))throw new _0x5ca36a(_0x533e('0x11'),null,{'target':_0x3a765b});}}_0x2ca081(p,_0x40716d);
23
+ const _0x402b=['focusableElements','mainView','isActive','_isTargetElementVisible','item','destroy','element','type','_target','function','set','_assertCorrectTarget','isVisible','remove','_type','refreshVisibility','render','targetRect','getClientRects','focusTracker','clear','target','annotation-invalid-target','add','view','stopListening'];(function(_0x281e52,_0x402b2f){const _0xeac67d=function(_0x12006e){while(--_0x12006e){_0x281e52['push'](_0x281e52['shift']());}};_0xeac67d(++_0x402b2f);}(_0x402b,0x10c));const _0xeac6=function(_0x281e52,_0x402b2f){_0x281e52=_0x281e52-0x0;let _0xeac67d=_0x402b[_0x281e52];return _0xeac67d;};import{CKEditorError as _0x109831,Rect as _0x66e9ca,Collection as _0x3c0d47,mix as _0x3d40d3,ObservableMixin as _0x2278aa}from'ckeditor5/src/utils';import{isElement as _0x29ba9f}from'lodash-es';export default class p{constructor({view:_0x6f6ed8,target:_0x5d0891,type:_0x31aefa,isVisible:_0x5f46c5=!0x0}){this[_0xeac6('0x10')]=_0x6f6ed8,this[_0xeac6('0x10')]['element']||this['view'][_0xeac6('0x8')](),this[_0xeac6('0x6')]=_0x31aefa,this[_0xeac6('0x0')]=_0x5d0891,this[_0xeac6('0x3')](),this[_0xeac6('0x12')]=new _0x3c0d47([this[_0xeac6('0x10')][_0xeac6('0x18')]],{'idProperty':'_id'}),this[_0xeac6('0x12')]['on'](_0xeac6('0xf'),(_0x29dc09,_0x384c89)=>{this[_0xeac6('0x10')][_0xeac6('0xb')][_0xeac6('0xf')](_0x384c89);}),this['focusableElements']['on'](_0xeac6('0x5'),(_0x462584,_0x236f04)=>{this[_0xeac6('0x10')]['focusTracker']['remove'](_0x236f04);}),this[_0xeac6('0x2')](_0xeac6('0x4'),_0x5f46c5);}get[_0xeac6('0x19')](){return _0xeac6('0x1')==typeof this[_0xeac6('0x6')]?this[_0xeac6('0x6')]():this[_0xeac6('0x6')];}get['innerView'](){return this[_0xeac6('0x10')][_0xeac6('0x13')];}get[_0xeac6('0xd')](){return'function'==typeof this[_0xeac6('0x0')]?this[_0xeac6('0x0')]():this[_0xeac6('0x0')];}get[_0xeac6('0x9')](){const _0x47daba=this[_0xeac6('0xd')];return this[_0xeac6('0x3')](),null!==_0x47daba&&this[_0xeac6('0x15')]()?new _0x66e9ca(_0x47daba):null;}get[_0xeac6('0x14')](){return this['view'][_0xeac6('0x14')];}set['isActive'](_0x406eac){this[_0xeac6('0x10')]['isActive']=_0x406eac,this[_0xeac6('0x10')][_0xeac6('0x13')][_0xeac6('0x14')]=_0x406eac;}['updateTargetRect'](){this[_0xeac6('0x10')][_0xeac6('0x9')]=this[_0xeac6('0x9')];}[_0xeac6('0x17')](){this[_0xeac6('0x12')][_0xeac6('0x11')](),this[_0xeac6('0x12')][_0xeac6('0xc')](),this[_0xeac6('0x11')]();}[_0xeac6('0x7')](){this[_0xeac6('0x4')]=this[_0xeac6('0x15')]();}['_isTargetElementVisible'](){const _0x5242d6=this['target'];if(_0x29ba9f(_0x5242d6)){const _0x3cf7c8=_0x5242d6[_0xeac6('0xa')]()[_0xeac6('0x16')](0x0),_0x1b6cc8=_0x5242d6['offsetParent'];if(!_0x3cf7c8||!_0x1b6cc8)return!0x1;}return!0x0;}[_0xeac6('0x3')](){const _0x19f18a=this[_0xeac6('0xd')];if(!(null===_0x19f18a||_0x19f18a instanceof _0x66e9ca||_0x29ba9f(_0x19f18a)))throw new _0x109831(_0xeac6('0xe'),null,{'target':_0x19f18a});}}_0x3d40d3(p,_0x2278aa);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d50=['change:isFocused','fire','_sort','blur','add','_innerViewToAnnotation','remove','getIndex','clear','updateTargetRect','_viewToAnnotation','refreshPositioning','focusTracker','_items','_focusTracker','view','destroy','left','stopListening','has','_getOrderInContent','set','targetRect','listenTo','focusableElements','from','delete','length','get','innerView','top'];(function(_0x326b07,_0x1d50f3){const _0x32020d=function(_0x1e567a){while(--_0x1e567a){_0x326b07['push'](_0x326b07['shift']());}};_0x32020d(++_0x1d50f3);}(_0x1d50,0x137));const _0x3202=function(_0x326b07,_0x1d50f3){_0x326b07=_0x326b07-0x0;let _0x32020d=_0x1d50[_0x326b07];return _0x32020d;};import{CKEditorError as _0x4d9e63,Collection as _0x55dab7,FocusTracker as _0x287de0}from'ckeditor5/src/utils';export default class x extends _0x55dab7{constructor(_0x4f14ae=[]){super(),this[_0x3202('0x4')]=new Map(),this[_0x3202('0x9')]=new Map(),this[_0x3202('0xd')]=new _0x287de0(),this[_0x3202('0xd')]['on'](_0x3202('0x1e'),(_0x3005ee,_0x4fb247,_0x18062f)=>{_0x18062f||this[_0x3202('0x0')](_0x3202('0x2'));});for(const _0xe20619 of _0x4f14ae)this[_0x3202('0x3')](_0xe20619);}get['isFocused'](){return this[_0x3202('0xd')]['isFocused'];}[_0x3202('0x3')](_0x371154){if(this['has'](_0x371154))throw new _0x4d9e63('annotationcollection-duplicated-item',null);this[_0x3202('0x4')][_0x3202('0x14')](_0x371154[_0x3202('0x1c')],_0x371154),this['_viewToAnnotation'][_0x3202('0x14')](_0x371154[_0x3202('0xe')],_0x371154);for(const _0x142025 of _0x371154[_0x3202('0x17')])this['_focusTracker']['add'](_0x142025);this[_0x3202('0x16')](_0x371154[_0x3202('0x17')],_0x3202('0x3'),(_0x1fd6c9,_0x3fc271)=>{this['_focusTracker']['add'](_0x3fc271);}),this[_0x3202('0x16')](_0x371154['focusableElements'],'remove',(_0x2bf33b,_0x178f05)=>{this['_focusTracker'][_0x3202('0x5')](_0x178f05);}),this[_0x3202('0x16')](_0x371154['view'][_0x3202('0xb')],'change:isFocused',(_0x539d2f,_0x4a8485,_0xd71ef)=>{_0xd71ef&&this[_0x3202('0x0')]('focus',_0x371154);});const _0x47a8e5=this['_getOrderInContent'](_0x371154);super[_0x3202('0x3')](_0x371154,_0x47a8e5),_0x371154[_0x3202('0x8')]();}[_0x3202('0x5')](_0x33d6bc){if(!this['has'](_0x33d6bc))throw new _0x4d9e63('annotationcollection-not-existing-item',null);this[_0x3202('0x11')](_0x33d6bc[_0x3202('0xe')][_0x3202('0xb')]),this[_0x3202('0x11')](_0x33d6bc[_0x3202('0x17')]);for(const _0xb821aa of _0x33d6bc[_0x3202('0x17')])this[_0x3202('0xd')][_0x3202('0x5')](_0xb821aa);this['_viewToAnnotation'][_0x3202('0x19')](_0x33d6bc['view']),this['_innerViewToAnnotation'][_0x3202('0x19')](_0x33d6bc[_0x3202('0x1c')]),super['remove'](_0x33d6bc);}['getByInnerView'](_0x199ae4){return this[_0x3202('0x4')][_0x3202('0x1b')](_0x199ae4);}['getByView'](_0xb4adf5){return this[_0x3202('0x9')][_0x3202('0x1b')](_0xb4adf5);}['destroy'](){super['clear'](),this[_0x3202('0x11')](),this[_0x3202('0x4')][_0x3202('0x7')](),this[_0x3202('0x9')][_0x3202('0x7')](),this['_focusTracker'][_0x3202('0xf')]();}[_0x3202('0xa')](){for(const _0x326cc6 of this)_0x326cc6[_0x3202('0x8')]();this[_0x3202('0x1')]();}[_0x3202('0x1')](){const _0x4f0460=Array[_0x3202('0x18')](this)['sort']((_0x4e4d51,_0x4cd5ec)=>y(_0x4e4d51[_0x3202('0x15')],_0x4cd5ec[_0x3202('0x15')]));for(let _0x19dbdb=_0x4f0460['length']-0x1;_0x19dbdb>0x0;_0x19dbdb--){const _0x1c589c=_0x4f0460[_0x19dbdb];_0x19dbdb!==this[_0x3202('0x6')](_0x1c589c)&&(this[_0x3202('0x5')](_0x1c589c),this[_0x3202('0x3')](_0x1c589c,_0x19dbdb));}}[_0x3202('0x13')](_0x597b36){let _0x348899=0x0;const _0x5e4e07=_0x597b36[_0x3202('0x15')];if(!_0x5e4e07)return this[_0x3202('0xc')][_0x3202('0x1a')];for(const _0x10160b of this){const _0x164654=_0x10160b[_0x3202('0x15')];if(_0x164654){if(y(_0x5e4e07,_0x164654)<0x0)return _0x348899;_0x348899++;}}return _0x348899;}}export function bindAnnotationCollections({source:_0x5b8813,target:_0x2df6af,filter:_0x461046}){for(const _0x1061f9 of _0x5b8813)_0x461046(_0x1061f9)&&_0x2df6af['add'](_0x1061f9);_0x2df6af[_0x3202('0x16')](_0x5b8813,_0x3202('0x3'),(_0xf2d9ae,_0x35ba20)=>{_0x461046(_0x35ba20)&&_0x2df6af[_0x3202('0x3')](_0x35ba20);}),_0x2df6af[_0x3202('0x16')](_0x5b8813,_0x3202('0x5'),(_0x420bc6,_0x12a405)=>{_0x2df6af[_0x3202('0x12')](_0x12a405)&&_0x2df6af[_0x3202('0x5')](_0x12a405);});}function y(_0x23f9d9,_0x59c344){if(null===_0x23f9d9&&null===_0x59c344)return 0x0;if(null===_0x23f9d9)return-0x1;if(null===_0x59c344)return 0x1;const _0x404860=_0x23f9d9[_0x3202('0x1d')]-_0x59c344[_0x3202('0x1d')];return 0x0==_0x404860?_0x23f9d9[_0x3202('0x10')]-_0x59c344['left']:_0x404860;}
23
+ const _0x5dbf=['destroy','innerView','_innerViewToAnnotation','clear','_items','annotationcollection-not-existing-item','remove','focusTracker','_getOrderInContent','focusableElements','stopListening','listenTo','_sort','updateTargetRect','_viewToAnnotation','view','delete','_focusTracker','targetRect','annotationcollection-duplicated-item','sort','refreshPositioning','get','has','left','change:isFocused','from','blur','getByView','add','top','length','isFocused','getByInnerView','fire'];(function(_0x474a36,_0x5dbf0f){const _0x137208=function(_0x3ff9a7){while(--_0x3ff9a7){_0x474a36['push'](_0x474a36['shift']());}};_0x137208(++_0x5dbf0f);}(_0x5dbf,0x18f));const _0x1372=function(_0x474a36,_0x5dbf0f){_0x474a36=_0x474a36-0x0;let _0x137208=_0x5dbf[_0x474a36];return _0x137208;};import{CKEditorError as _0x31aeae,Collection as _0x2bc692,FocusTracker as _0x4b4b0b}from'ckeditor5/src/utils';export default class x extends _0x2bc692{constructor(_0x470e79=[]){super(),this[_0x1372('0x17')]=new Map(),this[_0x1372('0x0')]=new Map(),this[_0x1372('0x3')]=new _0x4b4b0b(),this[_0x1372('0x3')]['on'](_0x1372('0xb'),(_0x2a4d5e,_0x22fc6d,_0x2be1ee)=>{_0x2be1ee||this['fire'](_0x1372('0xd'));});for(const _0x31455a of _0x470e79)this[_0x1372('0xf')](_0x31455a);}get[_0x1372('0x12')](){return this['_focusTracker'][_0x1372('0x12')];}[_0x1372('0xf')](_0x1768cc){if(this[_0x1372('0x9')](_0x1768cc))throw new _0x31aeae(_0x1372('0x5'),null);this[_0x1372('0x17')]['set'](_0x1768cc[_0x1372('0x16')],_0x1768cc),this[_0x1372('0x0')]['set'](_0x1768cc[_0x1372('0x1')],_0x1768cc);for(const _0x48dbf2 of _0x1768cc[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0xf')](_0x48dbf2);this[_0x1372('0x20')](_0x1768cc['focusableElements'],_0x1372('0xf'),(_0x19b7e7,_0x233947)=>{this[_0x1372('0x3')][_0x1372('0xf')](_0x233947);}),this[_0x1372('0x20')](_0x1768cc['focusableElements'],'remove',(_0x394e26,_0x10b426)=>{this[_0x1372('0x3')][_0x1372('0x1b')](_0x10b426);}),this[_0x1372('0x20')](_0x1768cc[_0x1372('0x1')][_0x1372('0x1c')],'change:isFocused',(_0x21788a,_0x56abf0,_0x37fa7a)=>{_0x37fa7a&&this[_0x1372('0x14')]('focus',_0x1768cc);});const _0x408ed3=this[_0x1372('0x1d')](_0x1768cc);super[_0x1372('0xf')](_0x1768cc,_0x408ed3),_0x1768cc[_0x1372('0x22')]();}['remove'](_0x48b006){if(!this[_0x1372('0x9')](_0x48b006))throw new _0x31aeae(_0x1372('0x1a'),null);this[_0x1372('0x1f')](_0x48b006[_0x1372('0x1')]['focusTracker']),this['stopListening'](_0x48b006[_0x1372('0x1e')]);for(const _0x1e0312 of _0x48b006[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0x1b')](_0x1e0312);this[_0x1372('0x0')][_0x1372('0x2')](_0x48b006[_0x1372('0x1')]),this[_0x1372('0x17')]['delete'](_0x48b006['innerView']),super['remove'](_0x48b006);}[_0x1372('0x13')](_0x34ac0c){return this[_0x1372('0x17')][_0x1372('0x8')](_0x34ac0c);}[_0x1372('0xe')](_0x68cf57){return this[_0x1372('0x0')][_0x1372('0x8')](_0x68cf57);}[_0x1372('0x15')](){super[_0x1372('0x18')](),this[_0x1372('0x1f')](),this[_0x1372('0x17')][_0x1372('0x18')](),this[_0x1372('0x0')][_0x1372('0x18')](),this['_focusTracker'][_0x1372('0x15')]();}[_0x1372('0x7')](){for(const _0x3393aa of this)_0x3393aa[_0x1372('0x22')]();this[_0x1372('0x21')]();}[_0x1372('0x21')](){const _0x5dd13f=Array[_0x1372('0xc')](this)[_0x1372('0x6')]((_0x15f81f,_0x381a0b)=>y(_0x15f81f[_0x1372('0x4')],_0x381a0b['targetRect']));for(let _0x228408=_0x5dd13f[_0x1372('0x11')]-0x1;_0x228408>0x0;_0x228408--){const _0x5a2a2b=_0x5dd13f[_0x228408];_0x228408!==this['getIndex'](_0x5a2a2b)&&(this[_0x1372('0x1b')](_0x5a2a2b),this['add'](_0x5a2a2b,_0x228408));}}['_getOrderInContent'](_0x26abc4){let _0x680b23=0x0;const _0x3fc37d=_0x26abc4[_0x1372('0x4')];if(!_0x3fc37d)return this[_0x1372('0x19')]['length'];for(const _0x2fad9d of this){const _0x425ba3=_0x2fad9d['targetRect'];if(_0x425ba3){if(y(_0x3fc37d,_0x425ba3)<0x0)return _0x680b23;_0x680b23++;}}return _0x680b23;}}export function bindAnnotationCollections({source:_0x3b6433,target:_0x37eca2,filter:_0x98f4a9}){for(const _0xf5d1e2 of _0x3b6433)_0x98f4a9(_0xf5d1e2)&&_0x37eca2['add'](_0xf5d1e2);_0x37eca2['listenTo'](_0x3b6433,_0x1372('0xf'),(_0x25d7b9,_0x3bd665)=>{_0x98f4a9(_0x3bd665)&&_0x37eca2[_0x1372('0xf')](_0x3bd665);}),_0x37eca2[_0x1372('0x20')](_0x3b6433,_0x1372('0x1b'),(_0x5deee5,_0x31d1d4)=>{_0x37eca2['has'](_0x31d1d4)&&_0x37eca2[_0x1372('0x1b')](_0x31d1d4);});}function y(_0x2fa2c0,_0x419ad6){if(null===_0x2fa2c0&&null===_0x419ad6)return 0x0;if(null===_0x2fa2c0)return-0x1;if(null===_0x419ad6)return 0x1;const _0x12b3f4=_0x2fa2c0[_0x1372('0x10')]-_0x419ad6[_0x1372('0x10')];return 0x0==_0x12b3f4?_0x2fa2c0[_0x1372('0xa')]-_0x419ad6[_0x1372('0xa')]:_0x12b3f4;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54ab=['pluginName','delete','createAnnotation','refreshVisibility','stopListening','deactivateAll','destroy','has','activate','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations','remove','add','getByInnerView','collection','fire','_addActiveAnnotation','change:isVisible','activeAnnotations','set','isVisible','refreshPositioning','source','listenTo'];(function(_0x41c1ba,_0x54ab0a){const _0x27d136=function(_0x485c30){while(--_0x485c30){_0x41c1ba['push'](_0x41c1ba['shift']());}};_0x27d136(++_0x54ab0a);}(_0x54ab,0x75));const _0x27d1=function(_0x41c1ba,_0x54ab0a){_0x41c1ba=_0x41c1ba-0x0;let _0x27d136=_0x54ab[_0x41c1ba];return _0x27d136;};import{ContextPlugin as _0x40a6a0}from'ckeditor5/src/core';import _0x433ba9 from'./annotation';import _0x9ae26e from'./annotationcollection';import _0x5c12ae from'./view/annotationview';export default class V extends _0x40a6a0{static get[_0x27d1('0x3')](){return'Annotations';}constructor(_0x10288d){super(_0x10288d),this['collection']=new _0x9ae26e(),this[_0x27d1('0xc')]=new _0x9ae26e(),this[_0x27d1('0x16')]('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations']();}['add'](_0x2d23f6){this[_0x27d1('0x11')][_0x27d1('0xf')](_0x2d23f6);}[_0x27d1('0xe')](_0x5e805e){this[_0x27d1('0x11')][_0x27d1('0xe')](_0x5e805e),_0x5e805e['destroy']();}[_0x27d1('0x6')](){for(const _0x92c0cf of this['collection'])_0x92c0cf[_0x27d1('0x6')]();}['refreshPositioning'](){this[_0x27d1('0xc')][_0x27d1('0x0')]();}[_0x27d1('0x10')](_0xab7b4b){return this['collection'][_0x27d1('0x10')](_0xab7b4b);}[_0x27d1('0x8')](){this[_0x27d1('0x12')]('_deactivateAllAnnotations');}[_0x27d1('0x9')](){for(const _0x24b233 of this[_0x27d1('0x11')])_0x24b233[_0x27d1('0x9')]();this['_visibleAnnotations'][_0x27d1('0x9')](),this[_0x27d1('0x11')][_0x27d1('0x9')](),super[_0x27d1('0x9')]();}[_0x27d1('0xb')](_0x12b309){this['fire']('_activateAnnotation',_0x12b309);}[_0x27d1('0x5')](_0x232d36){return new _0x433ba9(_0x232d36);}['createAnnotationView'](_0x2c0aa4,_0x1980fc){return new _0x5c12ae(_0x2c0aa4,_0x1980fc);}[_0x27d1('0x13')](_0x225377){const _0x5e6bde=new Set(this['activeAnnotations']);_0x5e6bde[_0x27d1('0xf')](_0x225377),this[_0x27d1('0x15')]=_0x5e6bde;}['_removeActiveAnnotation'](_0x2a0e2b){const _0x18e5d3=new Set(this[_0x27d1('0x15')]);_0x18e5d3[_0x27d1('0x4')](_0x2a0e2b),this[_0x27d1('0x15')]=_0x18e5d3;}[_0x27d1('0xd')](){const _0x38852d=this[_0x27d1('0x11')],_0x1ffcd2=this[_0x27d1('0xc')];function _0x345b87(_0x14b352){const _0x5ab1eb=_0x14b352[_0x27d1('0x1')];_0x5ab1eb[_0x27d1('0x17')]&&!_0x1ffcd2[_0x27d1('0xa')](_0x5ab1eb)?_0x1ffcd2[_0x27d1('0xf')](_0x5ab1eb):!_0x5ab1eb[_0x27d1('0x17')]&&_0x1ffcd2[_0x27d1('0xa')](_0x5ab1eb)&&_0x1ffcd2[_0x27d1('0xe')](_0x5ab1eb);}this[_0x27d1('0x2')](_0x38852d,_0x27d1('0xf'),(_0x57ade6,_0x23fdcf)=>{_0x23fdcf[_0x27d1('0x17')]&&_0x1ffcd2[_0x27d1('0xf')](_0x23fdcf),this['listenTo'](_0x23fdcf,'change:isVisible',_0x345b87);}),this[_0x27d1('0x2')](_0x38852d,_0x27d1('0xe'),(_0x18f2fa,_0x1a7e8e)=>{_0x1ffcd2[_0x27d1('0xa')](_0x1a7e8e)&&_0x1ffcd2['remove'](_0x1a7e8e),this[_0x27d1('0x7')](_0x1a7e8e,_0x27d1('0x14'),_0x345b87);});}}
23
+ const _0x45a5=['_visibleAnnotations','isVisible','listenTo','destroy','activeAnnotations','fire','add','has','_addActiveAnnotation','pluginName','change:isVisible','delete','_removeActiveAnnotation','stopListening','_activateAnnotation','collection','remove','getByInnerView','_bindAnnotationsToVisibleAnnotations','_deactivateAllAnnotations','activate'];(function(_0x5a6567,_0x45a5f9){const _0x1be08b=function(_0x5a20c5){while(--_0x5a20c5){_0x5a6567['push'](_0x5a6567['shift']());}};_0x1be08b(++_0x45a5f9);}(_0x45a5,0x1e0));const _0x1be0=function(_0x5a6567,_0x45a5f9){_0x5a6567=_0x5a6567-0x0;let _0x1be08b=_0x45a5[_0x5a6567];return _0x1be08b;};import{ContextPlugin as _0x1d1fe7}from'ckeditor5/src/core';import _0x32746a from'./annotation';import _0xbfdb26 from'./annotationcollection';import _0xa11573 from'./view/annotationview';export default class V extends _0x1d1fe7{static get[_0x1be0('0xc')](){return'Annotations';}constructor(_0x2f6f60){super(_0x2f6f60),this['collection']=new _0xbfdb26(),this[_0x1be0('0x3')]=new _0xbfdb26(),this['set'](_0x1be0('0x7'),new Set()),this[_0x1be0('0x0')]();}['add'](_0x3718f4){this[_0x1be0('0x12')]['add'](_0x3718f4);}[_0x1be0('0x13')](_0x237a81){this[_0x1be0('0x12')]['remove'](_0x237a81),_0x237a81[_0x1be0('0x6')]();}['refreshVisibility'](){for(const _0x354338 of this[_0x1be0('0x12')])_0x354338['refreshVisibility']();}['refreshPositioning'](){this[_0x1be0('0x3')]['refreshPositioning']();}['getByInnerView'](_0x1cd9fe){return this[_0x1be0('0x12')][_0x1be0('0x14')](_0x1cd9fe);}['deactivateAll'](){this['fire'](_0x1be0('0x1'));}['destroy'](){for(const _0x5be55a of this[_0x1be0('0x12')])_0x5be55a[_0x1be0('0x6')]();this[_0x1be0('0x3')]['destroy'](),this['collection'][_0x1be0('0x6')](),super[_0x1be0('0x6')]();}[_0x1be0('0x2')](_0x2fea11){this[_0x1be0('0x8')](_0x1be0('0x11'),_0x2fea11);}['createAnnotation'](_0x2b6f04){return new _0x32746a(_0x2b6f04);}['createAnnotationView'](_0x1385da,_0xb07c7d){return new _0xa11573(_0x1385da,_0xb07c7d);}[_0x1be0('0xb')](_0x353995){const _0xf8e3a6=new Set(this[_0x1be0('0x7')]);_0xf8e3a6[_0x1be0('0x9')](_0x353995),this[_0x1be0('0x7')]=_0xf8e3a6;}[_0x1be0('0xf')](_0x3a1753){const _0x4a83e4=new Set(this[_0x1be0('0x7')]);_0x4a83e4[_0x1be0('0xe')](_0x3a1753),this[_0x1be0('0x7')]=_0x4a83e4;}[_0x1be0('0x0')](){const _0x1ca9a6=this[_0x1be0('0x12')],_0x15eab0=this[_0x1be0('0x3')];function _0x37078d(_0x127730){const _0x338d91=_0x127730['source'];_0x338d91[_0x1be0('0x4')]&&!_0x15eab0[_0x1be0('0xa')](_0x338d91)?_0x15eab0['add'](_0x338d91):!_0x338d91[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0xa')](_0x338d91)&&_0x15eab0['remove'](_0x338d91);}this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x9'),(_0x5bb336,_0x5ed6fe)=>{_0x5ed6fe[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0x9')](_0x5ed6fe),this[_0x1be0('0x5')](_0x5ed6fe,_0x1be0('0xd'),_0x37078d);}),this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x13'),(_0x1a7d30,_0x2474a2)=>{_0x15eab0[_0x1be0('0xa')](_0x2474a2)&&_0x15eab0['remove'](_0x2474a2),this[_0x1be0('0x10')](_0x2474a2,_0x1be0('0xd'),_0x37078d);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5443=['switchTo','isActive','refilterAnnotations','attach','length','setActiveAnnotation','_uisData','get','hasActive','_uis','annotationsuis-register-invalid-interface','_activateAnnotation','annotationsuis-register-already-registered','from','size','context','register','_deactivateAllAnnotations','listenTo','activeUIs','plugins','_removeActiveAnnotation','_visibleAnnotations','requires','set','filter','function','_setSelectedAnnotations','detach','pluginName','has','destroy','annotationsuis-activate-missing-ui','add','collection','delete','AnnotationsUIs','deactivateAll','init','activeAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','deactivate','type','activate'];(function(_0xe81566,_0x5443ba){const _0x1c4949=function(_0x4444c0){while(--_0x4444c0){_0xe81566['push'](_0xe81566['shift']());}};_0x1c4949(++_0x5443ba);}(_0x5443,0xa0));const _0x1c49=function(_0xe81566,_0x5443ba){_0xe81566=_0xe81566-0x0;let _0x1c4949=_0x5443[_0xe81566];return _0x1c4949;};import{ContextPlugin as _0x34fb0d}from'ckeditor5/src/core';import{CKEditorError as _0x4b8f6e}from'ckeditor5/src/utils';import _0x2abb73,{bindAnnotationCollections as _0x1557f6}from'./annotationcollection';import _0x1c1b10 from'./annotations';export default class I extends _0x34fb0d{static get[_0x1c49('0x27')](){return[_0x1c1b10];}static get[_0x1c49('0x1')](){return _0x1c49('0x8');}constructor(_0x27f275){super(_0x27f275),this[_0x1c49('0x23')]=new Set(),this[_0x1c49('0x19')]=new Map(),this[_0x1c49('0x16')]=new Map();}[_0x1c49('0xa')](){const _0xbf43a7=this[_0x1c49('0x1f')][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10);this[_0x1c49('0x22')](_0xbf43a7,_0x1c49('0x1b'),(_0x531bc0,_0xe7f247)=>{for(const _0x1a8a34 of this[_0x1c49('0x23')]){const _0x260fea=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x1a8a34);(0x0,this[_0x1c49('0x16')]['get'](_0x1a8a34)['filter'])(_0xe7f247)&&_0x260fea['setActiveAnnotation'](_0xe7f247);}}),this[_0x1c49('0x22')](_0xbf43a7,_0x1c49('0x21'),()=>{for(const _0xc3e629 of this[_0x1c49('0x23')]){this[_0x1c49('0x19')][_0x1c49('0x17')](_0xc3e629)[_0x1c49('0x15')](null);}}),this[_0x1c49('0x22')](_0xbf43a7[_0x1c49('0x26')],_0x1c49('0x5'),(_0x5143f2,_0x38fbe5)=>{this[_0x1c49('0xc')](_0x38fbe5);});}[_0x1c49('0x18')](){return this[_0x1c49('0x23')][_0x1c49('0x1e')]>0x0;}[_0x1c49('0x11')](_0x1e5b8c){return this[_0x1c49('0x23')][_0x1c49('0x2')](_0x1e5b8c);}['activate'](_0x252e0c,_0x1f5d1f=()=>!0x0){const _0x15d8e8=this[_0x1c49('0x1f')][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10);if(!this[_0x1c49('0x19')][_0x1c49('0x2')](_0x252e0c))throw new _0x4b8f6e(_0x1c49('0x4'),this,{'uiName':_0x252e0c});this[_0x1c49('0x11')](_0x252e0c)&&this[_0x1c49('0xd')](_0x252e0c),this[_0x1c49('0x23')][_0x1c49('0x5')](_0x252e0c);const _0x355efe=new _0x2abb73(),_0x21f98e=_0x15d8e8[_0x1c49('0x26')];_0x1557f6({'source':_0x21f98e,'target':_0x355efe,'filter':_0x1f5d1f}),this[_0x1c49('0x16')][_0x1c49('0x28')](_0x252e0c,{'collection':_0x355efe,'filter':_0x1f5d1f});const _0x442925=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x252e0c);_0x442925[_0x1c49('0x13')](_0x355efe),this[_0x1c49('0x22')](_0x442925,'change:activeAnnotation',(_0x5d2c46,_0x362b04,_0x179aef,_0x5949b4)=>{_0x5949b4&&_0x15d8e8[_0x1c49('0x25')](_0x5949b4),_0x179aef&&_0x15d8e8['_addActiveAnnotation'](_0x179aef);});}[_0x1c49('0xd')](_0x1cabd8){this[_0x1c49('0x23')][_0x1c49('0x7')](_0x1cabd8);const _0x2ccbe2=this[_0x1c49('0x19')]['get'](_0x1cabd8);_0x2ccbe2[_0x1c49('0x0')](),this['stopListening'](_0x2ccbe2),this[_0x1c49('0x16')][_0x1c49('0x17')](_0x1cabd8)[_0x1c49('0x6')][_0x1c49('0x3')](),this[_0x1c49('0x16')][_0x1c49('0x7')](_0x1cabd8);}[_0x1c49('0x10')](_0x294a06){const _0x15526e=this['context'][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10),_0x59de97=Array[_0x1c49('0x1d')](_0x15526e[_0x1c49('0xb')])[0x0]||null;this[_0x1c49('0x9')](),this[_0x1c49('0xf')](_0x294a06);const _0x3054c1=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x294a06);_0x3054c1['setActiveAnnotation'](_0x59de97),_0x3054c1['_setSelectedAnnotations']&&_0x59de97&&_0x3054c1[_0x1c49('0x2b')]([_0x59de97]);}[_0x1c49('0x9')](){for(const _0x5cfbda of this[_0x1c49('0x23')])this[_0x1c49('0xd')](_0x5cfbda);}[_0x1c49('0x20')](_0x441ebc,_0x2954b8){if(this[_0x1c49('0x19')]['has'](_0x441ebc))throw new _0x4b8f6e(_0x1c49('0x1c'));if('function'!=typeof _0x2954b8[_0x1c49('0x13')]||'function'!=typeof _0x2954b8[_0x1c49('0x0')]||_0x1c49('0x2a')!=typeof _0x2954b8[_0x1c49('0x15')])throw new _0x4b8f6e(_0x1c49('0x1a'),null);this[_0x1c49('0x19')][_0x1c49('0x28')](_0x441ebc,_0x2954b8);}[_0x1c49('0x12')](){const _0x54fba0=this['context'][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10)['collection'],_0x4e996e=new Map(),_0x24f6be=Array['from'](this[_0x1c49('0x23')]);for(const _0x960a04 of this[_0x1c49('0x23')]){const _0x4ea3e5=this[_0x1c49('0x16')][_0x1c49('0x17')](_0x960a04)[_0x1c49('0x6')];for(const _0x1871c9 of _0x4ea3e5)_0x4e996e[_0x1c49('0x28')](_0x1871c9,_0x960a04);}for(const _0x20aee8 of _0x54fba0){const _0x1e98f7=_0x4e996e[_0x1c49('0x17')](_0x20aee8);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x20aee8);const _0x3919e1=_0x24f6be['find'](_0x53688e=>this[_0x1c49('0x16')][_0x1c49('0x17')](_0x53688e)[_0x1c49('0x29')](_0x20aee8));_0x1e98f7!==_0x3919e1&&(_0x1e98f7&&this[_0x1c49('0x16')][_0x1c49('0x17')](_0x1e98f7)[_0x1c49('0x6')]['remove'](_0x20aee8),_0x3919e1&&this['_uisData'][_0x1c49('0x17')](_0x3919e1)['collection']['add'](_0x20aee8));}}['destroy'](){this[_0x1c49('0x9')](),super[_0x1c49('0x3')]();}[_0x1c49('0xc')](_0x565a3d){const _0x59d432=[];for(const _0x330775 of this[_0x1c49('0x23')]){(0x0,this[_0x1c49('0x16')][_0x1c49('0x17')](_0x330775)[_0x1c49('0x29')])(_0x565a3d)&&_0x59d432['push'](_0x330775);}if(_0x59d432[_0x1c49('0x14')]>0x1)throw new _0x4b8f6e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x59d432,'annotationType':_0x565a3d[_0x1c49('0xe')]});}}
23
+ const _0x22d0=['filter','annotationsuis-activate-missing-ui','push','attach','requires','has','from','annotationsuis-register-already-registered','init','pluginName','_uisData','get','_uis','set','detach','setActiveAnnotation','add','_deactivateAllAnnotations','_setSelectedAnnotations','isActive','activate','destroy','_visibleAnnotations','change:activeAnnotation','_activateAnnotation','deactivate','stopListening','refilterAnnotations','_addActiveAnnotation','length','AnnotationsUIs','switchTo','size','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','activeUIs','collection','function','listenTo','plugins','delete','context'];(function(_0x1aab56,_0x22d012){const _0x2c5d94=function(_0x483b12){while(--_0x483b12){_0x1aab56['push'](_0x1aab56['shift']());}};_0x2c5d94(++_0x22d012);}(_0x22d0,0xd4));const _0x2c5d=function(_0x1aab56,_0x22d012){_0x1aab56=_0x1aab56-0x0;let _0x2c5d94=_0x22d0[_0x1aab56];return _0x2c5d94;};import{ContextPlugin as _0x5c6968}from'ckeditor5/src/core';import{CKEditorError as _0x20c69d}from'ckeditor5/src/utils';import _0x41e3e4,{bindAnnotationCollections as _0x505d13}from'./annotationcollection';import _0x15e37b from'./annotations';export default class I extends _0x5c6968{static get[_0x2c5d('0x2')](){return[_0x15e37b];}static get[_0x2c5d('0x7')](){return _0x2c5d('0x1c');}constructor(_0x1bb737){super(_0x1bb737),this[_0x2c5d('0x21')]=new Set(),this['_uis']=new Map(),this[_0x2c5d('0x8')]=new Map();}[_0x2c5d('0x6')](){const _0x38fd93=this[_0x2c5d('0x27')][_0x2c5d('0x25')]['get'](_0x15e37b);this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0x16'),(_0x182303,_0x370bb3)=>{for(const _0x21355f of this[_0x2c5d('0x21')]){const _0x529e42=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x21355f);(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x21355f)[_0x2c5d('0x28')])(_0x370bb3)&&_0x529e42[_0x2c5d('0xd')](_0x370bb3);}}),this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0xf'),()=>{for(const _0x4f2783 of this['activeUIs']){this[_0x2c5d('0xa')]['get'](_0x4f2783)[_0x2c5d('0xd')](null);}}),this[_0x2c5d('0x24')](_0x38fd93[_0x2c5d('0x14')],_0x2c5d('0xe'),(_0x3cfaa5,_0x2e3da9)=>{this[_0x2c5d('0x1f')](_0x2e3da9);});}['hasActive'](){return this[_0x2c5d('0x21')][_0x2c5d('0x1e')]>0x0;}['isActive'](_0x4d3b8e){return this[_0x2c5d('0x21')][_0x2c5d('0x3')](_0x4d3b8e);}['activate'](_0x4ce587,_0x6f673e=()=>!0x0){const _0x2480fe=this[_0x2c5d('0x27')]['plugins'][_0x2c5d('0x9')](_0x15e37b);if(!this[_0x2c5d('0xa')]['has'](_0x4ce587))throw new _0x20c69d(_0x2c5d('0x29'),this,{'uiName':_0x4ce587});this[_0x2c5d('0x11')](_0x4ce587)&&this[_0x2c5d('0x17')](_0x4ce587),this[_0x2c5d('0x21')][_0x2c5d('0xe')](_0x4ce587);const _0x58f459=new _0x41e3e4(),_0x36e579=_0x2480fe[_0x2c5d('0x14')];_0x505d13({'source':_0x36e579,'target':_0x58f459,'filter':_0x6f673e}),this[_0x2c5d('0x8')][_0x2c5d('0xb')](_0x4ce587,{'collection':_0x58f459,'filter':_0x6f673e});const _0x4b29cb=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x4ce587);_0x4b29cb['attach'](_0x58f459),this[_0x2c5d('0x24')](_0x4b29cb,_0x2c5d('0x15'),(_0x5dd907,_0x31b865,_0x42b026,_0x435b58)=>{_0x435b58&&_0x2480fe['_removeActiveAnnotation'](_0x435b58),_0x42b026&&_0x2480fe[_0x2c5d('0x1a')](_0x42b026);});}[_0x2c5d('0x17')](_0xd7bab2){this[_0x2c5d('0x21')][_0x2c5d('0x26')](_0xd7bab2);const _0x198417=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0xd7bab2);_0x198417[_0x2c5d('0xc')](),this[_0x2c5d('0x18')](_0x198417),this[_0x2c5d('0x8')]['get'](_0xd7bab2)[_0x2c5d('0x22')][_0x2c5d('0x13')](),this[_0x2c5d('0x8')][_0x2c5d('0x26')](_0xd7bab2);}[_0x2c5d('0x1d')](_0x25dd41){const _0x106900=this['context'][_0x2c5d('0x25')][_0x2c5d('0x9')](_0x15e37b),_0x584d8a=Array[_0x2c5d('0x4')](_0x106900['activeAnnotations'])[0x0]||null;this[_0x2c5d('0x20')](),this[_0x2c5d('0x12')](_0x25dd41);const _0x15af2c=this['_uis']['get'](_0x25dd41);_0x15af2c['setActiveAnnotation'](_0x584d8a),_0x15af2c[_0x2c5d('0x10')]&&_0x584d8a&&_0x15af2c[_0x2c5d('0x10')]([_0x584d8a]);}[_0x2c5d('0x20')](){for(const _0x3557f7 of this[_0x2c5d('0x21')])this[_0x2c5d('0x17')](_0x3557f7);}['register'](_0x5d4e74,_0x26a303){if(this['_uis'][_0x2c5d('0x3')](_0x5d4e74))throw new _0x20c69d(_0x2c5d('0x5'));if(_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0x1')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xc')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xd')])throw new _0x20c69d('annotationsuis-register-invalid-interface',null);this[_0x2c5d('0xa')][_0x2c5d('0xb')](_0x5d4e74,_0x26a303);}[_0x2c5d('0x19')](){const _0x5f1991=this['context']['plugins'][_0x2c5d('0x9')](_0x15e37b)[_0x2c5d('0x22')],_0x381280=new Map(),_0x3bd8d7=Array[_0x2c5d('0x4')](this['activeUIs']);for(const _0x148516 of this['activeUIs']){const _0x35e586=this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x148516)[_0x2c5d('0x22')];for(const _0x2944b3 of _0x35e586)_0x381280[_0x2c5d('0xb')](_0x2944b3,_0x148516);}for(const _0x34276d of _0x5f1991){const _0x3c90f5=_0x381280[_0x2c5d('0x9')](_0x34276d);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x34276d);const _0x3dc1ca=_0x3bd8d7['find'](_0x798d0f=>this['_uisData'][_0x2c5d('0x9')](_0x798d0f)[_0x2c5d('0x28')](_0x34276d));_0x3c90f5!==_0x3dc1ca&&(_0x3c90f5&&this[_0x2c5d('0x8')]['get'](_0x3c90f5)[_0x2c5d('0x22')]['remove'](_0x34276d),_0x3dc1ca&&this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x3dc1ca)[_0x2c5d('0x22')][_0x2c5d('0xe')](_0x34276d));}}['destroy'](){this['deactivateAll'](),super[_0x2c5d('0x13')]();}[_0x2c5d('0x1f')](_0x5809a2){const _0x232588=[];for(const _0xfd2e36 of this[_0x2c5d('0x21')]){(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0xfd2e36)['filter'])(_0x5809a2)&&_0x232588[_0x2c5d('0x0')](_0xfd2e36);}if(_0x232588[_0x2c5d('0x1b')]>0x1)throw new _0x20c69d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x232588,'annotationType':_0x5809a2['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1855=['annotation','remove','collection','editing','model','element','push','document','view','plugins','has','change:isFocused','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','refresh','sort','innerView','range','change:range','directChange','add','from','_dataCollectors','hasDomSelection','map','containsRange','refreshSelectedViews','isCollapsed','addSourceCollector','pluginName','getByInnerView','keys','init','get','editor','isReadOnly','listenTo','selection','delete','_editorAnnotationsData','fire','cancel','set','requires','focusTracker'];(function(_0x362386,_0x1855cd){const _0x3bb80c=function(_0x3f8122){while(--_0x3f8122){_0x362386['push'](_0x362386['shift']());}};_0x3bb80c(++_0x1855cd);}(_0x1855,0x147));const _0x3bb8=function(_0x362386,_0x1855cd){_0x362386=_0x362386-0x0;let _0x3bb80c=_0x1855[_0x362386];return _0x3bb80c;};import{Plugin as _0x558b1d}from'ckeditor5/src/core';import{CKEditorError as _0x227259}from'ckeditor5/src/utils';import{debounce as _0x223d77}from'lodash-es';import _0x564171 from'./annotations';export default class k extends _0x558b1d{static get[_0x3bb8('0x1f')](){return[_0x564171];}static get[_0x3bb8('0x11')](){return'EditorAnnotations';}constructor(_0x42fe20){super(_0x42fe20),this['_dataCollectors']=new Set();}[_0x3bb8('0x14')](){const _0x49110a=this[_0x3bb8('0x16')],_0x1764f6=_0x49110a[_0x3bb8('0x2a')][_0x3bb8('0x15')](_0x564171),_0xa4c2d8=_0x49110a[_0x3bb8('0x25')][_0x3bb8('0x28')]['selection'],_0x1a93c4=_0x223d77(()=>this[_0x3bb8('0xe')](),0xa);_0xa4c2d8['on'](_0x3bb8('0x6'),(_0x3610cb,_0xde067a)=>{_0xde067a[_0x3bb8('0x7')]&&(_0x1a93c4[_0x3bb8('0x1d')](),this[_0x3bb8('0xe')]());}),this[_0x3bb8('0x18')](_0x49110a[_0x3bb8('0x24')][_0x3bb8('0x29')][_0x3bb8('0x28')],'change:isFocused',(_0x2750c7,_0x36f6aa,_0x3b722a)=>{_0x3b722a&&_0x1a93c4();}),this[_0x3bb8('0x18')](_0x49110a['ui']['focusTracker'],_0x3bb8('0x2c'),(_0x1e7787,_0x774f94,_0x2336d9)=>{_0x2336d9||_0x49110a[_0x3bb8('0x17')]||this[_0x3bb8('0x1c')]('blur',{'isAnnotationTracked':_0x178db3=>this[_0x3bb8('0x1b')][_0x3bb8('0x2b')](_0x178db3[_0x3bb8('0x4')])});}),this[_0x3bb8('0x18')](this[_0x3bb8('0x16')]['ui'],'update',()=>this[_0x3bb8('0x1c')]('uiUpdate'));const _0x4d5e3b=new Set();this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x8'),(_0x443b98,_0x36e805)=>{for(const _0x1a7fcd of this[_0x3bb8('0x1b')][_0x3bb8('0x13')]())if(_0x1a7fcd===_0x36e805['innerView']){_0x49110a['ui'][_0x3bb8('0x20')][_0x3bb8('0x8')](_0x36e805[_0x3bb8('0x29')][_0x3bb8('0x26')]),_0x4d5e3b['add'](_0x36e805['view']);break;}}),this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x22'),(_0x2bb5c0,_0xe6d3b0)=>{_0x4d5e3b[_0x3bb8('0x2b')](_0xe6d3b0['view'])&&(_0x49110a['ui'][_0x3bb8('0x20')]['remove'](_0xe6d3b0[_0x3bb8('0x29')]['element']),_0x4d5e3b[_0x3bb8('0x1a')](_0xe6d3b0['view']));});}[_0x3bb8('0xb')](){return this[_0x3bb8('0x16')][_0x3bb8('0x24')][_0x3bb8('0x29')]['hasDomSelection'];}[_0x3bb8('0x10')](_0x3d2530){if('function'!=typeof _0x3d2530)throw new _0x227259(_0x3bb8('0x1'));this['_dataCollectors']['add'](_0x3d2530);}[_0x3bb8('0xe')](){this[_0x3bb8('0x1c')](_0x3bb8('0x2'));}[_0x3bb8('0x0')]({activeAnnotation:_0x33fc1e,annotations:_0x4f3856}){const _0x509b7c=[],_0x2c15ac=this[_0x3bb8('0x16')][_0x3bb8('0x25')]['document'][_0x3bb8('0x19')],_0xe565ca=Array[_0x3bb8('0x9')](_0x2c15ac['getRanges']());for(const [_0x713807,_0x196f11]of this[_0x3bb8('0x1b')]){const _0x480e26=_0x241ee1(_0x196f11),_0x1c31fe=_0x4f3856[_0x3bb8('0x12')](_0x713807);_0x480e26&&_0x1c31fe&&_0x509b7c[_0x3bb8('0x27')]({'annotation':_0x1c31fe,'range':_0x480e26});}function _0x241ee1(_0x2c8564){for(const _0x17fd46 of _0x2c8564)for(const _0x42518d of _0xe565ca)if(_0x17fd46[_0x3bb8('0xd')](_0x42518d,!_0x2c15ac[_0x3bb8('0xf')]))return _0x17fd46;return null;}return _0x509b7c[_0x3bb8('0x3')]((_0x3cf163,_0x108144)=>{const _0x12cb56=_0x3cf163['range'],_0x537e79=_0x108144[_0x3bb8('0x5')];if(!_0x12cb56['isEqual'](_0x537e79)){if(_0x12cb56['containsRange'](_0x537e79,!0x0))return 0x1;if(_0x537e79[_0x3bb8('0xd')](_0x12cb56,!0x0))return-0x1;}return _0x3cf163[_0x3bb8('0x21')]==_0x33fc1e?-0x1:_0x108144[_0x3bb8('0x21')]==_0x33fc1e?0x1:0x0;})[_0x3bb8('0xc')](_0x408d4e=>_0x408d4e[_0x3bb8('0x21')]);}get[_0x3bb8('0x1b')](){const _0x685736=new Map();for(const _0x5141e2 of Array[_0x3bb8('0x9')](this[_0x3bb8('0xa')]))for(const [_0x2d8210,_0x25aebf]of _0x5141e2())_0x685736[_0x3bb8('0x1e')](_0x2d8210,_0x25aebf);return _0x685736;}}
23
+ const _0x2042=['init','containsRange','get','_editorAnnotationsData','refreshSelectedViews','editor','has','uiUpdate','from','view','editing','selection','keys','addSourceCollector','sort','remove','delete','map','document','focusTracker','innerView','getRanges','blur','isCollapsed','collection','fire','editorannotations-invalid-source-callback','isEqual','directChange','listenTo','isReadOnly','refresh','change:isFocused','getOrderedSelectedAnnotations','update','function','annotation','range','add','pluginName','requires','set','model','element','change:range','EditorAnnotations','getByInnerView','_dataCollectors','push','hasDomSelection'];(function(_0x287f2,_0x204281){const _0x5740b8=function(_0x45d309){while(--_0x45d309){_0x287f2['push'](_0x287f2['shift']());}};_0x5740b8(++_0x204281);}(_0x2042,0x64));const _0x5740=function(_0x287f2,_0x204281){_0x287f2=_0x287f2-0x0;let _0x5740b8=_0x2042[_0x287f2];return _0x5740b8;};import{Plugin as _0x4a5851}from'ckeditor5/src/core';import{CKEditorError as _0x2863d4}from'ckeditor5/src/utils';import{debounce as _0x160f76}from'lodash-es';import _0x29de9b from'./annotations';export default class k extends _0x4a5851{static get[_0x5740('0x28')](){return[_0x29de9b];}static get[_0x5740('0x27')](){return _0x5740('0x2d');}constructor(_0x3a9e75){super(_0x3a9e75),this[_0x5740('0x2f')]=new Set();}[_0x5740('0x0')](){const _0x547a4b=this['editor'],_0x2e1561=_0x547a4b['plugins'][_0x5740('0x2')](_0x29de9b),_0x267e38=_0x547a4b['model'][_0x5740('0x12')][_0x5740('0xb')],_0x5c7edb=_0x160f76(()=>this[_0x5740('0x4')](),0xa);_0x267e38['on'](_0x5740('0x2c'),(_0x279284,_0x237b31)=>{_0x237b31[_0x5740('0x1c')]&&(_0x5c7edb['cancel'](),this[_0x5740('0x4')]());}),this['listenTo'](_0x547a4b['editing']['view']['document'],'change:isFocused',(_0x555f91,_0x58dab3,_0x4bc2d7)=>{_0x4bc2d7&&_0x5c7edb();}),this[_0x5740('0x1d')](_0x547a4b['ui'][_0x5740('0x13')],_0x5740('0x20'),(_0x23aa2a,_0x5227b6,_0x27616e)=>{_0x27616e||_0x547a4b[_0x5740('0x1e')]||this[_0x5740('0x19')](_0x5740('0x16'),{'isAnnotationTracked':_0x40a5e2=>this['_editorAnnotationsData'][_0x5740('0x6')](_0x40a5e2['innerView'])});}),this['listenTo'](this[_0x5740('0x5')]['ui'],_0x5740('0x22'),()=>this[_0x5740('0x19')](_0x5740('0x7')));const _0x1d6c37=new Set();this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],'add',(_0x12723d,_0x123d47)=>{for(const _0x430305 of this[_0x5740('0x3')][_0x5740('0xc')]())if(_0x430305===_0x123d47[_0x5740('0x14')]){_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0x26')](_0x123d47[_0x5740('0x9')]['element']),_0x1d6c37[_0x5740('0x26')](_0x123d47[_0x5740('0x9')]);break;}}),this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],_0x5740('0xf'),(_0x4de0e5,_0x37ae72)=>{_0x1d6c37['has'](_0x37ae72[_0x5740('0x9')])&&(_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0xf')](_0x37ae72[_0x5740('0x9')][_0x5740('0x2b')]),_0x1d6c37[_0x5740('0x10')](_0x37ae72['view']));});}[_0x5740('0x31')](){return this[_0x5740('0x5')][_0x5740('0xa')]['view'][_0x5740('0x31')];}[_0x5740('0xd')](_0x5e8846){if(_0x5740('0x23')!=typeof _0x5e8846)throw new _0x2863d4(_0x5740('0x1a'));this[_0x5740('0x2f')][_0x5740('0x26')](_0x5e8846);}[_0x5740('0x4')](){this[_0x5740('0x19')](_0x5740('0x1f'));}[_0x5740('0x21')]({activeAnnotation:_0x149018,annotations:_0x5b48c5}){const _0x99bad2=[],_0x3783ba=this[_0x5740('0x5')][_0x5740('0x2a')]['document']['selection'],_0x4d3c33=Array[_0x5740('0x8')](_0x3783ba[_0x5740('0x15')]());for(const [_0x59583a,_0x4ce31b]of this[_0x5740('0x3')]){const _0x1917ef=_0x55412f(_0x4ce31b),_0x68162e=_0x5b48c5[_0x5740('0x2e')](_0x59583a);_0x1917ef&&_0x68162e&&_0x99bad2[_0x5740('0x30')]({'annotation':_0x68162e,'range':_0x1917ef});}function _0x55412f(_0x64b001){for(const _0x5c4332 of _0x64b001)for(const _0x25391e of _0x4d3c33)if(_0x5c4332[_0x5740('0x1')](_0x25391e,!_0x3783ba[_0x5740('0x17')]))return _0x5c4332;return null;}return _0x99bad2[_0x5740('0xe')]((_0x509091,_0x3d4f16)=>{const _0x1e96f1=_0x509091[_0x5740('0x25')],_0x470545=_0x3d4f16['range'];if(!_0x1e96f1[_0x5740('0x1b')](_0x470545)){if(_0x1e96f1['containsRange'](_0x470545,!0x0))return 0x1;if(_0x470545[_0x5740('0x1')](_0x1e96f1,!0x0))return-0x1;}return _0x509091[_0x5740('0x24')]==_0x149018?-0x1:_0x3d4f16[_0x5740('0x24')]==_0x149018?0x1:0x0;})[_0x5740('0x11')](_0x55f440=>_0x55f440[_0x5740('0x24')]);}get[_0x5740('0x3')](){const _0x3a4fa4=new Map();for(const _0x3fc842 of Array[_0x5740('0x8')](this[_0x5740('0x2f')]))for(const [_0x11f990,_0x454741]of _0x3fc842())_0x3a4fa4[_0x5740('0x29')](_0x11f990,_0x454741);return _0x3a4fa4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f89=['requires','pluginName','_selectedAnnotations','EditorAnnotations','attach','set','has','editor','inlineannotations-not-allowed-with-context','context','getSelection','focus','blur','keystrokes','destroy','change:height','setActiveAnnotation','update','inline','clear','editableElement','add','editing','Esc','inlineannotations-attach-already-attached','addObserver','get','_annotations','visibleView','remove','_manuallyClosed','_addedAnnotations','view','register','isAttached','plugins','change:visibleView','hasView','activeAnnotation','document','updatePosition','_setSelectedAnnotations','stopListening','targetRect','getByView','bind','_balloon','_removeAnnotationFromBalloon','focusTracker','selection','refresh','afterInit','InlineAnnotations','_addAnnotationToBalloon','mousedown','isFocused','change:isFocused','inlineannotations-detach-not-attached','switchTo','listenTo','detach','delete','isActive'];(function(_0x54c6cf,_0x4f89b1){const _0x586297=function(_0x533c10){while(--_0x533c10){_0x54c6cf['push'](_0x54c6cf['shift']());}};_0x586297(++_0x4f89b1);}(_0x4f89,0x1c8));const _0x5862=function(_0x54c6cf,_0x4f89b1){_0x54c6cf=_0x54c6cf-0x0;let _0x586297=_0x4f89[_0x54c6cf];return _0x586297;};import{Plugin as _0x128311}from'ckeditor5/src/core';import _0x235bac from'./annotationsuis';import _0x7e1d97 from'./editorannotations';import{ContextualBalloon as _0xe5f3c5}from'ckeditor5/src/ui';import{MouseObserver as _0x5c3f10}from'ckeditor5/src/engine';import{CKEditorError as _0x15c006}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x128311{static get[_0x5862('0x30')](){return[_0x7e1d97,_0xe5f3c5,_0x235bac];}static get[_0x5862('0x31')](){return _0x5862('0x25');}constructor(_0x577613){super(_0x577613),_0x577613[_0x5862('0x7')][_0x5862('0x11')][_0x5862('0xa')](_0x5c3f10),this['isAttached']=!0x1,this[_0x5862('0x35')](_0x5862('0x17'),null),this[_0x5862('0xc')]=null,this[_0x5862('0xf')]=new Set(),this[_0x5862('0x1f')]=_0x577613[_0x5862('0x14')][_0x5862('0xb')](_0xe5f3c5),this['_addedAnnotations']=new Set(),this[_0x5862('0x32')]=[];}['init'](){const _0x5e73fb=this[_0x5862('0x37')]['plugins'][_0x5862('0xb')](_0x235bac);_0x5e73fb[_0x5862('0x39')]===this[_0x5862('0x37')]&&(_0x5e73fb[_0x5862('0x12')](_0x5862('0x3'),this),this[_0x5862('0x37')][_0x5862('0x3d')][_0x5862('0x35')](_0x5862('0x8'),(_0x2ca8d1,_0x35494f)=>{const _0x4c99a7=this[_0x5862('0x1f')];if(this[_0x5862('0x13')]&&_0x4c99a7['visibleView']){const _0x322092=this[_0x5862('0xc')][_0x5862('0x1d')](_0x4c99a7['visibleView']);this[_0x5862('0xf')]['add'](_0x322092),this[_0x5862('0x20')](_0x322092),_0x35494f();}}));}[_0x5862('0x24')](){const _0x59aa7a=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac);_0x59aa7a['context']===this[_0x5862('0x37')]&&(_0x59aa7a['hasActive']()||_0x59aa7a[_0x5862('0x2b')]('inline'));}[_0x5862('0x1')](_0x3ef6ec){_0x3ef6ec!==this[_0x5862('0x17')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x5862('0x2f')]=!0x1),_0x3ef6ec&&this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')]&&(this[_0x5862('0x26')](_0x3ef6ec,!0x0),_0x3ef6ec[_0x5862('0x2f')]=!0x0),_0x3ef6ec||this[_0x5862('0x1a')]([]),this[_0x5862('0x17')]=_0x3ef6ec);}[_0x5862('0x34')](_0x59d18b){this[_0x5862('0xc')]=_0x59d18b;const _0x5cb023=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac),_0x2ac759=this['_balloon'];if(this['isAttached'])throw new _0x15c006(_0x5862('0x9'),this);if(_0x5cb023[_0x5862('0x39')]!==this['editor'])throw new _0x15c006(_0x5862('0x38'),this);const _0x2b8789=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x5862('0x33'));this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x23'),function(){const _0x4a679c=_0x2b8789['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5862('0xc')]});this[_0x5862('0x1a')](_0x4a679c),this['setActiveAnnotation'](_0x4a679c[0x0]||null);}[_0x5862('0x1e')](this)),this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x3c'),(_0x11fc11,{isAnnotationTracked:_0x2a7784})=>{this['activeAnnotation']&&_0x2a7784(this[_0x5862('0x17')])&&(this['_setSelectedAnnotations']([]),this[_0x5862('0x1')](null));}),this[_0x5862('0x2c')](this['editor']['ui'][_0x5862('0x21')],_0x5862('0x29'),(_0x594c2d,_0x22f5dc,_0x350c47)=>{_0x350c47||this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x59d18b,_0x5862('0xe'),(_0x22a99a,_0x12f404)=>{this['_removeAnnotationFromBalloon'](_0x12f404),_0x12f404===this[_0x5862('0x17')]&&this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x2ac759,_0x5862('0x15'),(_0x3bf079,_0x4068f2,_0x53ee2d,_0x9fe385)=>{if(_0x9fe385&&this[_0x5862('0x1b')](_0x9fe385),!_0x53ee2d||!_0x59d18b['getByView'](_0x53ee2d))return;const _0x3e7f61=_0x59d18b[_0x5862('0x1d')](_0x53ee2d);this[_0x5862('0x2c')](_0x53ee2d,_0x5862('0x0'),()=>{_0x2ac759[_0x5862('0x19')]();}),this['listenTo'](_0x53ee2d,_0x5862('0x8'),()=>{this[_0x5862('0xf')][_0x5862('0x6')](_0x3e7f61),this[_0x5862('0x20')](_0x3e7f61),this[_0x5862('0x37')][_0x5862('0x7')]['view']['focus']();}),this[_0x5862('0x17')]!==_0x3e7f61&&this[_0x5862('0x1')](_0x3e7f61);}),this[_0x5862('0x2c')](this[_0x5862('0x37')]['ui'],_0x5862('0x2'),()=>{_0x2ac759[_0x5862('0xd')]&&(_0x59d18b['getByView'](_0x2ac759['visibleView'])&&_0x2ac759[_0x5862('0x19')]());}),this['listenTo'](this[_0x5862('0x37')][_0x5862('0x7')][_0x5862('0x11')][_0x5862('0x18')],_0x5862('0x27'),()=>{this['_manuallyClosed'][_0x5862('0x4')]();}),this[_0x5862('0x37')][_0x5862('0x7')]['view'][_0x5862('0x18')][_0x5862('0x22')][_0x5862('0x5')]&&this['editor'][_0x5862('0x7')]['view'][_0x5862('0x3b')](),this[_0x5862('0x13')]=!0x0;}[_0x5862('0x2d')](){if(!this[_0x5862('0x13')])throw new _0x15c006(_0x5862('0x2a'),this);this['setActiveAnnotation'](null);for(const _0x46fe1b of this[_0x5862('0x10')])this[_0x5862('0x20')](_0x46fe1b);this[_0x5862('0x1b')](),this['isAttached']=!0x1;}[_0x5862('0x3e')](){this[_0x5862('0x13')]&&this[_0x5862('0x2d')]();}[_0x5862('0x1a')](_0x6d3ada){const _0x1c9ace=this[_0x5862('0x32')];for(const _0x2500f2 of _0x1c9ace)_0x6d3ada['includes'](_0x2500f2)||this[_0x5862('0xf')][_0x5862('0x2e')](_0x2500f2);for(const _0x264c4e of this[_0x5862('0xc')])_0x6d3ada['includes'](_0x264c4e)||this[_0x5862('0x20')](_0x264c4e);if(this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')])for(const _0x25ae38 of _0x6d3ada)this['_addAnnotationToBalloon'](_0x25ae38);this['_selectedAnnotations']=_0x6d3ada;}[_0x5862('0x26')](_0x4684f9,_0x4acdd7){this['_manuallyClosed']['has'](_0x4684f9)||(this[_0x5862('0x10')][_0x5862('0x36')](_0x4684f9)||this['_balloon'][_0x5862('0x16')](_0x4684f9[_0x5862('0x11')])||(this['_addedAnnotations'][_0x5862('0x6')](_0x4684f9),this['_balloon'][_0x5862('0x6')]({'stackId':_0x4684f9['view']['id'],'view':_0x4684f9[_0x5862('0x11')],'position':{'target':()=>_0x4684f9['target']||_0x4684f9[_0x5862('0x1c')]||document[_0x5862('0x3a')]()['getRangeAt'](0x0)}})),_0x4acdd7&&this[_0x5862('0x1f')]['showStack'](_0x4684f9[_0x5862('0x11')]['id']));}[_0x5862('0x20')](_0x268989){this[_0x5862('0x10')][_0x5862('0x36')](_0x268989)&&this[_0x5862('0x1f')][_0x5862('0x16')](_0x268989[_0x5862('0x11')])&&(this['_addedAnnotations'][_0x5862('0x2e')](_0x268989),this[_0x5862('0x1f')]['remove'](_0x268989['view']));}}
23
+ const _0x2e82=['refresh','targetRect','delete','view','Esc','editableElement','stopListening','inlineannotations-not-allowed-with-context','InlineAnnotations','inlineannotations-attach-already-attached','_removeAnnotationFromBalloon','_addAnnotationToBalloon','change:isFocused','_selectedAnnotations','includes','register','addObserver','inlineannotations-detach-not-attached','set','get','getByView','hasActive','update','switchTo','isFocused','has','isAttached','showStack','change:visibleView','annotations','blur','_manuallyClosed','listenTo','context','attach','hasView','_balloon','clear','_setSelectedAnnotations','document','focus','getSelection','focusTracker','editor','init','visibleView','change:height','EditorAnnotations','add','editing','remove','target','setActiveAnnotation','inline','isActive','destroy','plugins','keystrokes','detach','_addedAnnotations','selection','bind','activeAnnotation','requires','updatePosition'];(function(_0x37ef3a,_0x2e82f8){const _0x579209=function(_0xd8fc4c){while(--_0xd8fc4c){_0x37ef3a['push'](_0x37ef3a['shift']());}};_0x579209(++_0x2e82f8);}(_0x2e82,0x14f));const _0x5792=function(_0x37ef3a,_0x2e82f8){_0x37ef3a=_0x37ef3a-0x0;let _0x579209=_0x2e82[_0x37ef3a];return _0x579209;};import{Plugin as _0x4f39d3}from'ckeditor5/src/core';import _0x43122b from'./annotationsuis';import _0x50c7c9 from'./editorannotations';import{ContextualBalloon as _0x1d4ae7}from'ckeditor5/src/ui';import{MouseObserver as _0x15145a}from'ckeditor5/src/engine';import{CKEditorError as _0x457991}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4f39d3{static get[_0x5792('0x35')](){return[_0x50c7c9,_0x1d4ae7,_0x43122b];}static get['pluginName'](){return _0x5792('0x3f');}constructor(_0x48c18d){super(_0x48c18d),_0x48c18d[_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x6')](_0x15145a),this[_0x5792('0x10')]=!0x1,this['set'](_0x5792('0x34'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x48c18d['plugins'][_0x5792('0x9')](_0x1d4ae7),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[];}[_0x5792('0x22')](){const _0x49b470=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b);_0x49b470[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x49b470[_0x5792('0x5')](_0x5792('0x2b'),this),this[_0x5792('0x21')][_0x5792('0x2f')][_0x5792('0x8')]('Esc',(_0x147dc7,_0x320682)=>{const _0x418249=this[_0x5792('0x1a')];if(this[_0x5792('0x10')]&&_0x418249['visibleView']){const _0x364cff=this['annotations']['getByView'](_0x418249[_0x5792('0x23')]);this[_0x5792('0x15')]['add'](_0x364cff),this[_0x5792('0x0')](_0x364cff),_0x320682();}}));}['afterInit'](){const _0x2c2a09=this['editor'][_0x5792('0x2e')]['get'](_0x43122b);_0x2c2a09[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x2c2a09[_0x5792('0xb')]()||_0x2c2a09[_0x5792('0xd')]('inline'));}[_0x5792('0x2a')](_0x3ad36a){_0x3ad36a!==this[_0x5792('0x34')]&&(this[_0x5792('0x34')]&&(this[_0x5792('0x34')]['isActive']=!0x1),_0x3ad36a&&this[_0x5792('0x21')]['ui'][_0x5792('0x20')][_0x5792('0xe')]&&(this[_0x5792('0x1')](_0x3ad36a,!0x0),_0x3ad36a[_0x5792('0x2c')]=!0x0),_0x3ad36a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3ad36a);}[_0x5792('0x18')](_0x2f034a){this[_0x5792('0x13')]=_0x2f034a;const _0x29c71d=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b),_0x45cb42=this['_balloon'];if(this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x40'),this);if(_0x29c71d[_0x5792('0x17')]!==this[_0x5792('0x21')])throw new _0x457991(_0x5792('0x3e'),this);const _0x1f66df=this[_0x5792('0x21')][_0x5792('0x2e')]['get'](_0x5792('0x25'));this[_0x5792('0x16')](_0x1f66df,_0x5792('0x37'),function(){const _0x55aae8=_0x1f66df['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5792('0x13')]});this[_0x5792('0x1c')](_0x55aae8),this[_0x5792('0x2a')](_0x55aae8[0x0]||null);}[_0x5792('0x33')](this)),this[_0x5792('0x16')](_0x1f66df,_0x5792('0x14'),(_0x1146ed,{isAnnotationTracked:_0x5d1940})=>{this[_0x5792('0x34')]&&_0x5d1940(this[_0x5792('0x34')])&&(this[_0x5792('0x1c')]([]),this['setActiveAnnotation'](null));}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'][_0x5792('0x20')],_0x5792('0x2'),(_0x594fc7,_0x4fae53,_0x36f1a9)=>{_0x36f1a9||this[_0x5792('0x2a')](null);}),this['listenTo'](_0x2f034a,_0x5792('0x28'),(_0x352298,_0x86ee90)=>{this[_0x5792('0x0')](_0x86ee90),_0x86ee90===this[_0x5792('0x34')]&&this[_0x5792('0x2a')](null);}),this[_0x5792('0x16')](_0x45cb42,_0x5792('0x12'),(_0x5134fc,_0x32e76e,_0x6a230b,_0x8463d5)=>{if(_0x8463d5&&this[_0x5792('0x3d')](_0x8463d5),!_0x6a230b||!_0x2f034a[_0x5792('0xa')](_0x6a230b))return;const _0x4e1401=_0x2f034a[_0x5792('0xa')](_0x6a230b);this['listenTo'](_0x6a230b,_0x5792('0x24'),()=>{_0x45cb42['updatePosition']();}),this['listenTo'](_0x6a230b,_0x5792('0x3b'),()=>{this[_0x5792('0x15')]['add'](_0x4e1401),this[_0x5792('0x0')](_0x4e1401),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')]();}),this[_0x5792('0x34')]!==_0x4e1401&&this[_0x5792('0x2a')](_0x4e1401);}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'],_0x5792('0xc'),()=>{_0x45cb42[_0x5792('0x23')]&&(_0x2f034a[_0x5792('0xa')](_0x45cb42[_0x5792('0x23')])&&_0x45cb42[_0x5792('0x36')]());}),this[_0x5792('0x16')](this[_0x5792('0x21')][_0x5792('0x27')]['view']['document'],'mousedown',()=>{this[_0x5792('0x15')][_0x5792('0x1b')]();}),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1d')][_0x5792('0x32')][_0x5792('0x3c')]&&this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')](),this['isAttached']=!0x0;}[_0x5792('0x30')](){if(!this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x7'),this);this[_0x5792('0x2a')](null);for(const _0x4c2e8f of this[_0x5792('0x31')])this[_0x5792('0x0')](_0x4c2e8f);this[_0x5792('0x3d')](),this[_0x5792('0x10')]=!0x1,this['annotations']=null;}[_0x5792('0x2d')](){this[_0x5792('0x10')]&&this[_0x5792('0x30')]();}[_0x5792('0x1c')](_0x1fe0f1){const _0x11d9eb=this[_0x5792('0x3')];for(const _0x3a7c72 of _0x11d9eb)_0x1fe0f1[_0x5792('0x4')](_0x3a7c72)||this[_0x5792('0x15')][_0x5792('0x39')](_0x3a7c72);for(const _0x519686 of this[_0x5792('0x13')])_0x1fe0f1[_0x5792('0x4')](_0x519686)||this['_removeAnnotationFromBalloon'](_0x519686);if(this[_0x5792('0x21')]['ui']['focusTracker'][_0x5792('0xe')])for(const _0x3d85df of _0x1fe0f1)this[_0x5792('0x1')](_0x3d85df);this[_0x5792('0x3')]=_0x1fe0f1;}['_addAnnotationToBalloon'](_0x1cbda2,_0x41c569){this[_0x5792('0x15')][_0x5792('0xf')](_0x1cbda2)||(this['_addedAnnotations']['has'](_0x1cbda2)||this[_0x5792('0x1a')][_0x5792('0x19')](_0x1cbda2[_0x5792('0x3a')])||(this[_0x5792('0x31')][_0x5792('0x26')](_0x1cbda2),this[_0x5792('0x1a')]['add']({'stackId':_0x1cbda2['view']['id'],'view':_0x1cbda2['view'],'position':{'target':()=>_0x1cbda2[_0x5792('0x29')]||_0x1cbda2[_0x5792('0x38')]||document[_0x5792('0x1f')]()['getRangeAt'](0x0)}})),_0x41c569&&this[_0x5792('0x1a')][_0x5792('0x11')](_0x1cbda2[_0x5792('0x3a')]['id']));}[_0x5792('0x0')](_0x6b5add){this['_addedAnnotations'][_0x5792('0xf')](_0x6b5add)&&this[_0x5792('0x1a')][_0x5792('0x19')](_0x6b5add[_0x5792('0x3a')])&&(this['_addedAnnotations'][_0x5792('0x39')](_0x6b5add),this[_0x5792('0x1a')][_0x5792('0x28')](_0x6b5add[_0x5792('0x3a')]));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1843=['refreshPositioning','attachToDom','_detachListeners','has','remove','detach','register','keydown','clear','NarrowSidebar','southArrowNorthWest','stopListening','isVisible','contains','unpin','_throttledRefreshPositioning','off','isDirty','preventDefault','_detachFromContainer','focus','_hideBalloon','target','get','element','_selectedAnnotations','listenTo','view','esc','destroy','context','ck-sidebar--narrow','resize','balloonPanelView','activeAnnotation','refresh','_annotations','values','length','high','preventClosingBalloon','setActiveAnnotation','bodyCollection','_attachToContainer','stop','locale','_manuallyClosedAnnotationViews','content','mousedown','northArrowSouthEast','plugins','narrowsidebar-detach-not-attached','cancel','_updateBalloonPosition','_attachListeners','Sidebar','requires','rearrange','blur','hasDomSelection','_refreshPositioning','set','change:container','narrowSidebar','detachFromDom','editors','addEventListener','getByView','pluginName','delete','_domEmitter','_annotationToNarrowView','_destroyEditorAnnotationsIntegration','addAnnotation','init','removeEventListener','first','narrowsidebar-attach-already-attached','attach','change:height','EditorAnnotations','isAttached','create','_showBalloon','_editorAnnotations','_setSelectedAnnotations','keyCode','_integrateWithEditorAnnotations','add','type'];(function(_0x5d929c,_0x184329){const _0xb9784f=function(_0x14f7a3){while(--_0x14f7a3){_0x5d929c['push'](_0x5d929c['shift']());}};_0xb9784f(++_0x184329);}(_0x1843,0x1ed));const _0xb978=function(_0x5d929c,_0x184329){_0x5d929c=_0x5d929c-0x0;let _0xb9784f=_0x1843[_0x5d929c];return _0xb9784f;};import{ContextPlugin as _0x53a403}from'ckeditor5/src/core';import _0x5d07ea from'./annotationsuis';import _0x536bdb from'./sidebar';import _0x220f8b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4143a6,BodyCollection as _0x529ac2}from'ckeditor5/src/ui';import{CKEditorError as _0x556d90,DomEmitterMixin as _0x559ff9,keyCodes as _0x2d3321,Collection as _0x8692ab}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x33c2a0}from'lodash-es';export default class s extends _0x53a403{static get[_0xb978('0xd')](){return[_0x536bdb,_0x5d07ea];}static get[_0xb978('0x19')](){return _0xb978('0x38');}constructor(_0x29ebfa){super(_0x29ebfa),this['isAttached']=!0x1,this[_0xb978('0x3')]=new Set(),this[_0xb978('0x1b')]=Object[_0xb978('0x27')](_0x559ff9),this[_0xb978('0x1c')]=new Map(),this[_0xb978('0x12')](_0xb978('0x51'),null),this[_0xb978('0x53')]=null,this[_0xb978('0x48')]=[],this[_0xb978('0x29')]=new _0x8692ab(),this['_throttledRefreshPositioning']=_0x33c2a0(()=>{this[_0xb978('0x11')]();},0x190,{'leading':!0x1});}[_0xb978('0x1f')](){this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x5d07ea)[_0xb978('0x35')](_0xb978('0x14'),this),this[_0xb978('0x59')]=new _0x529ac2(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x50')]=new _0x4143a6(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x59')][_0xb978('0x30')](),this['bodyCollection'][_0xb978('0x2d')](this[_0xb978('0x50')]);}[_0xb978('0x23')](_0x33f11c){this['_annotations']=_0x33f11c;const _0xcb87c0=this['context']['plugins'][_0xb978('0x46')](_0x536bdb),_0x577ac6=this[_0xb978('0x50')];if(_0xcb87c0[_0xb978('0x53')]=_0x33f11c,this['isAttached'])throw new _0x556d90(_0xb978('0x22'),this);this[_0xb978('0x26')]=!0x0,this[_0xb978('0x49')](_0xcb87c0,'set:container',()=>{this[_0xb978('0x34')](),this[_0xb978('0x49')](_0xcb87c0,_0xb978('0x13'),_0x5f5ac3=>{_0x5f5ac3[_0xb978('0x3f')](),this[_0xb978('0x23')](_0x33f11c);});}),_0xcb87c0[_0xb978('0x0')]({'viewClass':_0xb978('0x4e'),'spaceBetweenItems':0x5});const _0x2c61db=_0xa88d72=>{const _0x49d563=new _0x220f8b(this[_0xb978('0x4d')][_0xb978('0x2')]);_0xcb87c0[_0xb978('0x1e')](_0xa88d72,_0x49d563),this['_annotationToNarrowView'][_0xb978('0x12')](_0xa88d72,_0x49d563),_0x49d563['bind']('isDirty','annotationType','number')['to'](_0xa88d72[_0xb978('0x4a')],_0xb978('0x40'),_0xb978('0x2e'),_0xb978('0x55')),_0x49d563['on']('execute',()=>{this[_0xb978('0x3')]['clear'](),_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]!==_0xa88d72['view']?(this['_showBalloon'](_0xa88d72),_0xa88d72[_0xb978('0x4a')]['element']['focus'](),this['setActiveAnnotation'](_0xa88d72)):this[_0xb978('0x58')](null);});};for(const _0x3d7012 of _0x33f11c)_0x2c61db(_0x3d7012);this[_0xb978('0x49')](_0x33f11c,'add',(_0x3ce507,_0x17447c)=>{_0x2c61db(_0x17447c);}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x33'),(_0x1a0860,_0x24fb0e,_0x51f3d9)=>{this['_annotationToNarrowView'][_0xb978('0x46')](_0x24fb0e)['destroy'](),this[_0xb978('0x1c')][_0xb978('0x1a')](_0x24fb0e),_0xcb87c0[_0xb978('0xe')]({'removedAnnotation':_0x24fb0e,'previousAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9-0x1),'nextAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9+0x1)}),_0x24fb0e===this[_0xb978('0x51')]&&this[_0xb978('0x58')](null);},{'priority':'low'}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x43'),(_0x6062d8,_0x3ca5b8)=>{this[_0xb978('0x58')](_0x3ca5b8);}),this['listenTo'](_0x33f11c,_0xb978('0xf'),()=>{this[_0xb978('0x58')](null);}),this['_domEmitter'][_0xb978('0x49')](document,_0xb978('0x36'),(_0x23cae6,_0x845db4)=>{_0x845db4[_0xb978('0x2b')]===_0x2d3321[_0xb978('0x4b')]&&_0x577ac6[_0xb978('0x3b')]&&(this[_0xb978('0x3')][_0xb978('0x2d')](_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]),this['_hideBalloon'](),_0x845db4['stopPropagation'](),_0x845db4[_0xb978('0x41')]());}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0x2a8e10,_0x5df01f)=>{const _0x49e25c=_0x5df01f['target'];_0x577ac6[_0xb978('0x3b')]&&_0x577ac6['element'][_0xb978('0x3c')](_0x49e25c)||_0xcb87c0[_0xb978('0x4a')][_0xb978('0x47')][_0xb978('0x3c')](_0x49e25c)||_0x2a8e10[_0xb978('0x57')]||(this[_0xb978('0x3')][_0xb978('0x37')](),this[_0xb978('0x44')](),this[_0xb978('0x58')](null));});const _0x4eb275=this[_0xb978('0x4d')]['editors']?this[_0xb978('0x4d')][_0xb978('0x16')]:new _0x8692ab([this['context']]);for(const _0x181c5b of _0x4eb275)this[_0xb978('0x2c')](_0x181c5b);this[_0xb978('0x49')](_0x4eb275,'add',(_0x5df7ee,_0x2923b4)=>{this['listenTo'](_0x2923b4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2923b4);});}),this[_0xb978('0x49')](_0x4eb275,_0xb978('0x33'),(_0x62e9c4,_0x4905d2)=>{_0x4905d2[_0xb978('0x7')]['has'](_0xb978('0x25'))&&this[_0xb978('0x1d')](_0x4905d2['plugins'][_0xb978('0x46')](_0xb978('0x25')));}),window[_0xb978('0x17')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x11')]();}[_0xb978('0x58')](_0x1965ea){if(_0x1965ea===this[_0xb978('0x51')])return;const _0x50c019=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));if(_0x50c019['refresh']({'blurredAnnotation':this[_0xb978('0x51')],'activatedAnnotation':_0x1965ea,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1965ea)_0x50c019['getSidebarItemView'](_0x1965ea)?this['_showBalloon'](_0x1965ea):this[_0xb978('0x44')]();else this[_0xb978('0x44')]();this[_0xb978('0x51')]=_0x1965ea;}[_0xb978('0x34')](){if(!this['isAttached'])throw new _0x556d90(_0xb978('0x8'),this);this['setActiveAnnotation'](null);const _0xa4a826=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));this[_0xb978('0x44')](),Array['from'](this[_0xb978('0x1c')][_0xb978('0x54')](),_0x4070d7=>_0x4070d7[_0xb978('0x4c')]()),this[_0xb978('0x1c')]['clear'](),_0xa4a826[_0xb978('0x42')](this[_0xb978('0x53')]),this[_0xb978('0x3a')](),this[_0xb978('0x1b')]['stopListening'](),this['stopListening'](this[_0xb978('0x4d')][_0xb978('0x16')]);for(const _0x3569f0 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3569f0);window[_0xb978('0x20')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x3e')][_0xb978('0x9')](),this[_0xb978('0x48')]=[],this[_0xb978('0x26')]=!0x1,this['_annotations']=null;}[_0xb978('0x4c')](){this[_0xb978('0x26')]&&this['detach'](),this[_0xb978('0x59')][_0xb978('0x15')]();}[_0xb978('0x2c')](_0x338d35){const _0x411798=_0x338d35[_0xb978('0x7')][_0xb978('0x46')](_0xb978('0x25')),_0x4220d1=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x536bdb),_0x11c8c1=this['_annotations'],_0x2c6c2e=this[_0xb978('0x50')],_0x166a27=()=>{const _0x56ae60=_0x411798['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0xb978('0x51')],'annotations':this[_0xb978('0x53')]});this['_setSelectedAnnotations'](_0x56ae60),this[_0xb978('0x58')](_0x56ae60[0x0]||null);};this[_0xb978('0x49')](_0x411798,_0xb978('0x52'),_0x166a27),this['listenTo'](_0x411798,_0xb978('0xf'),(_0x34e604,{isAnnotationTracked:_0x1add6e})=>{this[_0xb978('0x51')]&&_0x1add6e(this[_0xb978('0x51')])&&(this['_setSelectedAnnotations']([]),this[_0xb978('0x58')](null));}),this[_0xb978('0x49')](_0x411798,'uiUpdate',()=>{this[_0xb978('0x3e')]();}),this[_0xb978('0x49')](_0x11c8c1,'blur',_0x389a21=>{_0x411798[_0xb978('0x10')]()&&_0x389a21[_0xb978('0x1')]();},{'priority':_0xb978('0x56')}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0xebc7a0,_0x31dd18)=>{const _0x5501fc=_0x31dd18[_0xb978('0x45')];_0x2c6c2e[_0xb978('0x3b')]&&_0x2c6c2e[_0xb978('0x47')][_0xb978('0x3c')](_0x5501fc)||_0x4220d1[_0xb978('0x4a')][_0xb978('0x47')]['contains'](_0x5501fc)||this[_0xb978('0x51')]&&_0x411798['hasDomSelection']()&&(_0x166a27(),_0xebc7a0[_0xb978('0x57')]=!0x0);},{'priority':'high'}),this[_0xb978('0x29')][_0xb978('0x2d')](_0x411798);}['_destroyEditorAnnotationsIntegration'](_0x470ffe){_0x470ffe&&(this[_0xb978('0x3a')](_0x470ffe),this[_0xb978('0x29')]['remove'](_0x470ffe));}[_0xb978('0x2a')](_0x4fd009){for(const _0x4c8721 of this[_0xb978('0x48')])_0x4fd009['includes'](_0x4c8721)||this[_0xb978('0x3')][_0xb978('0x1a')](_0x4c8721[_0xb978('0x4a')]);this[_0xb978('0x48')]=_0x4fd009;}['_refreshPositioning'](){const _0x1583a0=this[_0xb978('0x50')];this[_0xb978('0x53')][_0xb978('0x2f')](),_0x1583a0[_0xb978('0x3b')]&&this['_updateBalloonPosition']();}[_0xb978('0x28')](_0x184ac3){if(this[_0xb978('0x3')][_0xb978('0x32')](_0x184ac3[_0xb978('0x4a')]))return;const _0x355e97=this[_0xb978('0x50')]['content'][_0xb978('0x21')];_0x355e97!==_0x184ac3[_0xb978('0x4a')]?(_0x355e97&&this['_detachListeners'](_0x355e97),this['_attachListeners'](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0x50')]['content'][_0xb978('0x37')](),this[_0xb978('0x50')][_0xb978('0x4')][_0xb978('0x2d')](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0xa')]()):this[_0xb978('0xa')]();}[_0xb978('0xa')](){const _0x8a01fc=this[_0xb978('0x50')][_0xb978('0x4')]['first'],_0x4b565b=this['_annotations'][_0xb978('0x18')](_0x8a01fc);if(!this[_0xb978('0x1c')]['has'](_0x4b565b))return;const _0x3b7c77=this[_0xb978('0x1c')]['get'](_0x4b565b)[_0xb978('0x47')],_0x5476b3=function(){const _0x317038=_0x4143a6['defaultPositions'];return[_0x317038['southArrowNorthEast'],_0x317038[_0xb978('0x6')],_0x317038['southArrowNorth'],_0x317038['northArrowSouth'],_0x317038[_0xb978('0x39')],_0x317038['northArrowSouthWest']];}();this[_0xb978('0x50')]['pin']({'target':_0x3b7c77,'positions':_0x5476b3});}['_hideBalloon'](){const _0x26618d=this[_0xb978('0x50')],_0x432bf6=_0x26618d[_0xb978('0x4')][_0xb978('0x21')];_0x432bf6&&(this[_0xb978('0x31')](_0x432bf6),_0x26618d[_0xb978('0x3d')](),_0x26618d['content']['clear']());}[_0xb978('0xb')](_0x1a9f0c){this[_0xb978('0x49')](_0x1a9f0c,_0xb978('0x24'),()=>this[_0xb978('0xa')]()),this['listenTo'](_0x1a9f0c,'Esc',(_0xc64974,_0x4852e0)=>{this[_0xb978('0x3')][_0xb978('0x2d')](_0x1a9f0c),this[_0xb978('0x44')](),_0x4852e0();});}[_0xb978('0x31')](_0x3740d2){this[_0xb978('0x3a')](_0x3740d2);}}
23
+ const _0x4fcc=['_detachListeners','delete','off','_manuallyClosedAnnotationViews','change:height','includes','Sidebar','setActiveAnnotation','has','ready','stop','attachToDom','bind','balloonPanelView','northArrowSouthWest','EditorAnnotations','narrowsidebar-attach-already-attached','getByView','type','addEventListener','narrowSidebar','annotations','_attachToContainer','plugins','clear','ck-sidebar--narrow','high','view','activeAnnotation','_updateBalloonPosition','set:container','_hideBalloon','_selectedAnnotations','bodyCollection','execute','_domEmitter','pluginName','contains','_setSelectedAnnotations','focus','context','defaultPositions','stopListening','add','isVisible','editors','isDirty','removeEventListener','_attachListeners','attach','keyCode','values','get','register','set','esc','detach','southArrowNorthEast','_throttledRefreshPositioning','remove','_editorAnnotations','blur','_showBalloon','southArrowNorth','northArrowSouthEast','length','listenTo','stopPropagation','element','isAttached','number','preventDefault','detachFromDom','from','destroy','init','locale','refresh','_destroyEditorAnnotationsIntegration','resize','addAnnotation','NarrowSidebar','_refreshPositioning','mousedown','hasDomSelection','target','create','unpin','keydown','refreshPositioning','_annotationToNarrowView','first','content','narrowsidebar-detach-not-attached','_integrateWithEditorAnnotations'];(function(_0x1a21bb,_0x4fccab){const _0x162f73=function(_0x1cd84f){while(--_0x1cd84f){_0x1a21bb['push'](_0x1a21bb['shift']());}};_0x162f73(++_0x4fccab);}(_0x4fcc,0xd1));const _0x162f=function(_0x1a21bb,_0x4fccab){_0x1a21bb=_0x1a21bb-0x0;let _0x162f73=_0x4fcc[_0x1a21bb];return _0x162f73;};import{ContextPlugin as _0x56913a}from'ckeditor5/src/core';import _0x276ddc from'./annotationsuis';import _0x4a9b5c from'./sidebar';import _0x13b028 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2912f0,BodyCollection as _0x12b8f8}from'ckeditor5/src/ui';import{CKEditorError as _0x22c5f1,DomEmitterMixin as _0x2e8ffa,keyCodes as _0x1045f7,Collection as _0x3c6ad5}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x3e039e}from'lodash-es';export default class s extends _0x56913a{static get['requires'](){return[_0x4a9b5c,_0x276ddc];}static get[_0x162f('0x11')](){return _0x162f('0x3e');}constructor(_0x151c4a){super(_0x151c4a),this[_0x162f('0x32')]=!0x1,this[_0x162f('0x4f')]=new Set(),this[_0x162f('0x10')]=Object[_0x162f('0x43')](_0x2e8ffa),this[_0x162f('0x47')]=new Map(),this['set']('activeAnnotation',null),this[_0x162f('0x2')]=null,this[_0x162f('0xd')]=[],this[_0x162f('0x29')]=new _0x3c6ad5(),this['_throttledRefreshPositioning']=_0x3e039e(()=>{this[_0x162f('0x3f')]();},0x190,{'leading':!0x1});}[_0x162f('0x38')](){this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x276ddc)[_0x162f('0x22')](_0x162f('0x1'),this),this[_0x162f('0xe')]=new _0x12b8f8(this[_0x162f('0x15')]['locale']),this[_0x162f('0x59')]=new _0x2912f0(this[_0x162f('0x15')][_0x162f('0x39')]),this[_0x162f('0xe')][_0x162f('0x57')](),this[_0x162f('0xe')][_0x162f('0x18')](this[_0x162f('0x59')]);}[_0x162f('0x1e')](_0x1477ab){this[_0x162f('0x2')]=_0x1477ab;const _0x25482c=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x4a9b5c),_0x2a07f0=this['balloonPanelView'];if(_0x25482c['_annotations']=_0x1477ab,this['isAttached'])throw new _0x22c5f1(_0x162f('0x5c'),this);this[_0x162f('0x32')]=!0x0,this[_0x162f('0x2f')](_0x25482c,_0x162f('0xb'),()=>{this[_0x162f('0x25')](),this['listenTo'](_0x25482c,'change:container',_0x573b06=>{_0x573b06[_0x162f('0x4e')](),this[_0x162f('0x1e')](_0x1477ab);});}),_0x25482c[_0x162f('0x3')]({'viewClass':_0x162f('0x6'),'spaceBetweenItems':0x5});const _0x44d374=_0x6e3875=>{const _0x376f16=new _0x13b028(this[_0x162f('0x15')]['locale']);_0x25482c[_0x162f('0x3d')](_0x6e3875,_0x376f16),this[_0x162f('0x47')][_0x162f('0x23')](_0x6e3875,_0x376f16),_0x376f16[_0x162f('0x58')](_0x162f('0x1b'),'annotationType',_0x162f('0x33'))['to'](_0x6e3875[_0x162f('0x8')],_0x162f('0x1b'),_0x162f('0x5e'),_0x162f('0x2e')),_0x376f16['on'](_0x162f('0xf'),()=>{this[_0x162f('0x4f')][_0x162f('0x5')](),_0x2a07f0[_0x162f('0x49')][_0x162f('0x48')]!==_0x6e3875[_0x162f('0x8')]?(this[_0x162f('0x2b')](_0x6e3875),_0x6e3875['view']['element'][_0x162f('0x14')](),this[_0x162f('0x53')](_0x6e3875)):this['setActiveAnnotation'](null);});};for(const _0x45cd94 of _0x1477ab)_0x44d374(_0x45cd94);this['listenTo'](_0x1477ab,'add',(_0x263800,_0x1bdbfe)=>{_0x44d374(_0x1bdbfe);}),this[_0x162f('0x2f')](_0x1477ab,'remove',(_0x35f392,_0x1d40a9,_0x3e475a)=>{this[_0x162f('0x47')][_0x162f('0x21')](_0x1d40a9)[_0x162f('0x37')](),this['_annotationToNarrowView'][_0x162f('0x4d')](_0x1d40a9),_0x25482c['rearrange']({'removedAnnotation':_0x1d40a9,'previousAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a-0x1),'nextAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a+0x1)}),_0x1d40a9===this[_0x162f('0x9')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x14'),(_0x418d92,_0x5b05b4)=>{this[_0x162f('0x53')](_0x5b05b4);}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x2a'),()=>{this[_0x162f('0x53')](null);}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x45'),(_0x5c7118,_0x135b6d)=>{_0x135b6d[_0x162f('0x1f')]===_0x1045f7[_0x162f('0x24')]&&_0x2a07f0['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x162f('0x18')](_0x2a07f0[_0x162f('0x49')]['first']),this['_hideBalloon'](),_0x135b6d[_0x162f('0x30')](),_0x135b6d[_0x162f('0x34')]());}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x3b6b30,_0x5a83ab)=>{const _0x15749b=_0x5a83ab[_0x162f('0x42')];_0x2a07f0[_0x162f('0x19')]&&_0x2a07f0[_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x25482c[_0x162f('0x8')][_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x3b6b30['preventClosingBalloon']||(this[_0x162f('0x4f')]['clear'](),this['_hideBalloon'](),this[_0x162f('0x53')](null));});const _0x5ae632=this[_0x162f('0x15')][_0x162f('0x1a')]?this[_0x162f('0x15')][_0x162f('0x1a')]:new _0x3c6ad5([this['context']]);for(const _0xac17e0 of _0x5ae632)this[_0x162f('0x4b')](_0xac17e0);this['listenTo'](_0x5ae632,_0x162f('0x18'),(_0x56cefc,_0x23b8c2)=>{this[_0x162f('0x2f')](_0x23b8c2,_0x162f('0x55'),()=>{this['_integrateWithEditorAnnotations'](_0x23b8c2);});}),this[_0x162f('0x2f')](_0x5ae632,_0x162f('0x28'),(_0x5c4397,_0x5e9b51)=>{_0x5e9b51['plugins'][_0x162f('0x54')]('EditorAnnotations')&&this[_0x162f('0x3b')](_0x5e9b51['plugins'][_0x162f('0x21')]('EditorAnnotations'));}),window[_0x162f('0x0')](_0x162f('0x3c'),this['_throttledRefreshPositioning']),this[_0x162f('0x3f')]();}['setActiveAnnotation'](_0x761c47){if(_0x761c47===this['activeAnnotation'])return;const _0x21753d=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x52'));if(_0x21753d[_0x162f('0x3a')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x761c47,'disableAnimationOnActivatedAnnotation':!0x0}),_0x761c47)_0x21753d['getSidebarItemView'](_0x761c47)?this[_0x162f('0x2b')](_0x761c47):this['_hideBalloon']();else this[_0x162f('0xc')]();this[_0x162f('0x9')]=_0x761c47;}[_0x162f('0x25')](){if(!this[_0x162f('0x32')])throw new _0x22c5f1(_0x162f('0x4a'),this);this[_0x162f('0x53')](null);const _0x15fa65=this[_0x162f('0x15')][_0x162f('0x4')]['get']('Sidebar');this[_0x162f('0xc')](),Array[_0x162f('0x36')](this[_0x162f('0x47')][_0x162f('0x20')](),_0x327875=>_0x327875[_0x162f('0x37')]()),this[_0x162f('0x47')]['clear'](),_0x15fa65['_detachFromContainer'](this[_0x162f('0x2')]),this['stopListening'](),this[_0x162f('0x10')][_0x162f('0x17')](),this[_0x162f('0x17')](this['context'][_0x162f('0x1a')]);for(const _0x2b3612 of Array[_0x162f('0x36')](this[_0x162f('0x29')]))this[_0x162f('0x3b')](_0x2b3612);window[_0x162f('0x1c')]('resize',this[_0x162f('0x27')]),this['_throttledRefreshPositioning']['cancel'](),this[_0x162f('0xd')]=[],this[_0x162f('0x32')]=!0x1,this['annotations']=null;}[_0x162f('0x37')](){this[_0x162f('0x32')]&&this['detach'](),this[_0x162f('0xe')][_0x162f('0x35')]();}[_0x162f('0x4b')](_0x19b9fe){const _0x2472db=_0x19b9fe[_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x5b')),_0x3d705b=this[_0x162f('0x15')]['plugins'][_0x162f('0x21')](_0x4a9b5c),_0x33b963=this[_0x162f('0x2')],_0x1569d7=this[_0x162f('0x59')],_0x5cc6fe=()=>{const _0x429c49=_0x2472db['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x162f('0x9')],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x429c49),this[_0x162f('0x53')](_0x429c49[0x0]||null);};this['listenTo'](_0x2472db,'refresh',_0x5cc6fe),this['listenTo'](_0x2472db,_0x162f('0x2a'),(_0x1a1605,{isAnnotationTracked:_0x3699b8})=>{this['activeAnnotation']&&_0x3699b8(this[_0x162f('0x9')])&&(this[_0x162f('0x13')]([]),this[_0x162f('0x53')](null));}),this[_0x162f('0x2f')](_0x2472db,'uiUpdate',()=>{this[_0x162f('0x27')]();}),this[_0x162f('0x2f')](_0x33b963,_0x162f('0x2a'),_0x984f7f=>{_0x2472db[_0x162f('0x41')]()&&_0x984f7f[_0x162f('0x56')]();},{'priority':_0x162f('0x7')}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x5cf3c4,_0x4874b0)=>{const _0x43b490=_0x4874b0[_0x162f('0x42')];_0x1569d7[_0x162f('0x19')]&&_0x1569d7[_0x162f('0x31')]['contains'](_0x43b490)||_0x3d705b['view']['element'][_0x162f('0x12')](_0x43b490)||this[_0x162f('0x9')]&&_0x2472db[_0x162f('0x41')]()&&(_0x5cc6fe(),_0x5cf3c4['preventClosingBalloon']=!0x0);},{'priority':_0x162f('0x7')}),this[_0x162f('0x29')]['add'](_0x2472db);}[_0x162f('0x3b')](_0x35c04f){_0x35c04f&&(this['stopListening'](_0x35c04f),this[_0x162f('0x29')][_0x162f('0x28')](_0x35c04f));}[_0x162f('0x13')](_0x474b33){for(const _0x1a6cf4 of this[_0x162f('0xd')])_0x474b33[_0x162f('0x51')](_0x1a6cf4)||this[_0x162f('0x4f')][_0x162f('0x4d')](_0x1a6cf4[_0x162f('0x8')]);this[_0x162f('0xd')]=_0x474b33;}[_0x162f('0x3f')](){const _0x37dd00=this[_0x162f('0x59')];this['annotations'][_0x162f('0x46')](),_0x37dd00[_0x162f('0x19')]&&this[_0x162f('0xa')]();}[_0x162f('0x2b')](_0x494803){if(this[_0x162f('0x4f')][_0x162f('0x54')](_0x494803[_0x162f('0x8')]))return;const _0x2568cf=this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x48')];_0x2568cf!==_0x494803[_0x162f('0x8')]?(_0x2568cf&&this[_0x162f('0x4c')](_0x2568cf),this[_0x162f('0x1d')](_0x494803['view']),this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x5')](),this['balloonPanelView'][_0x162f('0x49')]['add'](_0x494803[_0x162f('0x8')]),this[_0x162f('0xa')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x11c79d=this[_0x162f('0x59')][_0x162f('0x49')][_0x162f('0x48')],_0x42d90f=this['annotations'][_0x162f('0x5d')](_0x11c79d);if(!this[_0x162f('0x47')][_0x162f('0x54')](_0x42d90f))return;const _0xd373b7=this[_0x162f('0x47')][_0x162f('0x21')](_0x42d90f)[_0x162f('0x31')],_0x2af960=function(){const _0x50073c=_0x2912f0[_0x162f('0x16')];return[_0x50073c[_0x162f('0x26')],_0x50073c[_0x162f('0x2d')],_0x50073c[_0x162f('0x2c')],_0x50073c['northArrowSouth'],_0x50073c['southArrowNorthWest'],_0x50073c[_0x162f('0x5a')]];}();this['balloonPanelView']['pin']({'target':_0xd373b7,'positions':_0x2af960});}[_0x162f('0xc')](){const _0x2fe619=this[_0x162f('0x59')],_0x5ae7f8=_0x2fe619[_0x162f('0x49')][_0x162f('0x48')];_0x5ae7f8&&(this[_0x162f('0x4c')](_0x5ae7f8),_0x2fe619[_0x162f('0x44')](),_0x2fe619['content']['clear']());}[_0x162f('0x1d')](_0x1015d3){this['listenTo'](_0x1015d3,_0x162f('0x50'),()=>this[_0x162f('0xa')]()),this[_0x162f('0x2f')](_0x1015d3,'Esc',(_0x1ce694,_0x46b8c2)=>{this[_0x162f('0x4f')][_0x162f('0x18')](_0x1015d3),this[_0x162f('0xc')](),_0x46b8c2();});}['_detachListeners'](_0x45c9c6){this[_0x162f('0x17')](_0x45c9c6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5636=['isActive','getSidebarItemView','addAnnotation','_updateLastItem','config','element','bottom','max','minHeight','_sidebarItemViewToAnnotation','locale','_destroySidebarItemView','_annotationToSidebarItemView','getIndex','_targetTop','_getItemAfter','targetRect','_getItemBefore','refresh','change:top','_annotations','sidebar.container','_setItemTop','change:targetRect','unbind','list','height','sidebar-attachtocontainer-missing-container','appendChild','container','pluginName','define','_alignAfterItem','class','remove','destroy','_getTargetTop','target','init','Sidebar','updateHeight','delete','top','add','_alignBeforeItem','_activeAnnotation','sidebar.preventScrollOutOfView','set','stopListening','view','isAnimationDisabled','_spaceBetweenItems','listenTo','clear','get','content','length','_alignToTargetRect','setContainer','context','sidebar-setcontainer-invalid-element'];(function(_0x13c60d,_0x563682){const _0x5e96fe=function(_0x345068){while(--_0x345068){_0x13c60d['push'](_0x13c60d['shift']());}};_0x5e96fe(++_0x563682);}(_0x5636,0x69));const _0x5e96=function(_0x13c60d,_0x563682){_0x13c60d=_0x13c60d-0x0;let _0x5e96fe=_0x5636[_0x13c60d];return _0x5e96fe;};import{ContextPlugin as _0x599806}from'ckeditor5/src/core';import _0x5af177 from'./view/sidebarview';import _0x2f9e08 from'./view/sidebaritemview';import{Rect as _0x300841,CKEditorError as _0x575631}from'ckeditor5/src/utils';import{isElement as _0x4568e7,throttle as _0x5cf3c5}from'lodash-es';export default class b extends _0x599806{static get[_0x5e96('0x2f')](){return _0x5e96('0x38');}constructor(_0x52226b){super(_0x52226b),this[_0x5e96('0x3')]('_lastItem'),this[_0x5e96('0x5')]=this['_createSidebarView'](),this[_0x5e96('0x3')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x5e96('0x1a')]=new Map(),this[_0x5e96('0x1d')]=new Map(),this['context'][_0x5e96('0x15')][_0x5e96('0x30')](_0x5e96('0x2'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}[_0x5e96('0x37')](){const _0x1b3d79=this[_0x5e96('0xf')]['config']['get'](_0x5e96('0x26'));_0x1b3d79&&this[_0x5e96('0xe')](_0x1b3d79);}['setContainer'](_0x52b848){if(!_0x4568e7(_0x52b848))throw new _0x575631(_0x5e96('0x10'));this[_0x5e96('0x2e')]=_0x52b848;}['_attachToContainer']({viewClass:_0x3c59b3='',spaceBetweenItems:_0x5f37e3=0x19}={}){if(!_0x4568e7(this[_0x5e96('0x2e')]))throw new _0x575631(_0x5e96('0x2c'),this);this[_0x5e96('0x2e')][_0x5e96('0x2d')](this[_0x5e96('0x5')]['element']),this[_0x5e96('0x5')][_0x5e96('0x32')]=_0x3c59b3,this[_0x5e96('0x7')]=_0x5f37e3;}['rearrange']({removedAnnotation:_0x3cb0f9,previousAnnotation:_0x3b2037,nextAnnotation:_0x496768}){const _0x35f329=this[_0x5e96('0x12')](_0x3cb0f9);this[_0x5e96('0x5')]['list']['remove'](_0x35f329),this[_0x5e96('0x1c')](_0x3cb0f9),_0x3b2037&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x3b2037)),_0x496768&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x496768)),this[_0x5e96('0x14')]();}[_0x5e96('0x23')]({blurredAnnotation:_0x47c201,activatedAnnotation:_0x44fb00,disableAnimationOnActivatedAnnotation:_0x43231b}){if(this[_0x5e96('0x1')]=_0x44fb00,_0x47c201){_0x47c201[_0x5e96('0x11')]=!0x1;const _0x2bd0d0=this[_0x5e96('0x12')](_0x47c201);_0x2bd0d0&&_0x43231b&&(_0x2bd0d0[_0x5e96('0x6')]=!0x1);}if(_0x44fb00){const _0x1d21d3=this[_0x5e96('0x12')](_0x44fb00);_0x1d21d3&&(_0x44fb00['isActive']=!0x0,_0x43231b&&(_0x1d21d3[_0x5e96('0x6')]=!0x0,_0x1d21d3[_0x5e96('0x3b')]+=0x1),this[_0x5e96('0xd')](_0x1d21d3));}}['_detachFromContainer'](_0x4e40af){this[_0x5e96('0x4')](),this[_0x5e96('0x5')][_0x5e96('0x16')][_0x5e96('0x33')]();for(const _0x482e98 of _0x4e40af)this[_0x5e96('0x1c')](_0x482e98);this['view']['list'][_0x5e96('0x9')](),this[_0x5e96('0x5')][_0x5e96('0x32')]='',this['_lastItem']=null;}[_0x5e96('0x13')](_0x4f5944,_0x598cb9){_0x598cb9||(_0x598cb9=_0x4f5944[_0x5e96('0x5')]);const _0x5cddcf=new _0x2f9e08(this['context']['locale']);this[_0x5e96('0x1a')][_0x5e96('0x3')](_0x5cddcf,_0x4f5944),this[_0x5e96('0x1d')]['set'](_0x4f5944,_0x5cddcf),_0x5cddcf[_0x5e96('0xb')][_0x5e96('0x3c')](_0x598cb9),this[_0x5e96('0xd')](_0x5cddcf),this[_0x5e96('0x8')](_0x4f5944[_0x5e96('0x5')],_0x5e96('0x28'),()=>{const _0x2edc12=this[_0x5e96('0x35')](_0x5cddcf);_0x5cddcf[_0x5e96('0x1f')]!=_0x2edc12&&(_0x5cddcf[_0x5e96('0x1f')]=_0x2edc12,this['_setItemTop'](_0x5cddcf,_0x2edc12));}),this[_0x5e96('0x8')](_0x5cddcf,_0x5e96('0x24'),_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x2b90b4=this['_getItemBefore'](_0x5cddcf);if(!_0x2b90b4)return;const _0x2e0142=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x2b90b4),_0xab0bc7=this['_activeAnnotation'];_0xab0bc7&&_0xab0bc7===_0x2e0142?this[_0x5e96('0x31')](_0x2b90b4,_0x5cddcf):this['_alignBeforeItem'](_0x5cddcf,_0x2b90b4);},0xa,{'leading':!0x1})),this[_0x5e96('0x8')](_0x5cddcf,'change:bottom',_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x4280cc=this[_0x5e96('0x20')](_0x5cddcf);if(!_0x4280cc)return;const _0x500ebe=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4280cc),_0x3909f1=this[_0x5e96('0xf')][_0x5e96('0x15')][_0x5e96('0xa')]('sidebar.preventScrollOutOfView'),_0x320dae=this[_0x5e96('0x1')];_0x320dae&&_0x320dae===_0x500ebe&&_0x3909f1?(this['_alignBeforeItem'](_0x4280cc,_0x5cddcf),this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc)):_0x320dae&&_0x320dae===_0x500ebe?this[_0x5e96('0x0')](_0x4280cc,_0x5cddcf):this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc);},0xa,{'leading':!0x1}));const _0x21690a=this[_0x5e96('0x22')](_0x5cddcf);if(_0x21690a)this[_0x5e96('0x31')](_0x21690a,_0x5cddcf)||this['_alignToTargetRect'](_0x5cddcf);else this['_alignToTargetRect'](_0x5cddcf);return this['_updateLastItem'](),this[_0x5e96('0x5')][_0x5e96('0x2a')]['add'](_0x5cddcf),_0x5cddcf;}[_0x5e96('0x12')](_0x5fe8c7){return this[_0x5e96('0x1d')][_0x5e96('0xa')](_0x5fe8c7);}[_0x5e96('0x34')](){this['view']['destroy']();}[_0x5e96('0x1c')](_0x54c132){const _0x31451f=this[_0x5e96('0x12')](_0x54c132);this[_0x5e96('0x4')](_0x31451f),this[_0x5e96('0x4')](_0x54c132[_0x5e96('0x5')]),_0x31451f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x54c132),this[_0x5e96('0x1a')][_0x5e96('0x3a')](_0x31451f);}['_createSidebarView'](){const _0x2f74df=new _0x5af177(this[_0x5e96('0xf')][_0x5e96('0x1b')]);return _0x2f74df['render'](),this['on']('change:_lastItem',(_0x282aec,_0x588038,_0x2534fa,_0x5a0d30)=>{_0x5a0d30&&_0x2f74df[_0x5e96('0x29')](_0x5e96('0x19')),_0x2534fa?_0x2f74df['bind']('minHeight')['to'](_0x2534fa,_0x5e96('0x17')):_0x2f74df[_0x5e96('0x19')]=null;}),_0x2f74df;}[_0x5e96('0x14')](){this['_lastItem']=this[_0x5e96('0x12')](this[_0x5e96('0x25')]['last']);}[_0x5e96('0x22')](_0x49ae64){const _0x19c9cb=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x49ae64),_0x3cfca2=this['_annotations'][_0x5e96('0xa')](this[_0x5e96('0x25')][_0x5e96('0x1e')](_0x19c9cb)-0x1);return _0x3cfca2&&this['getSidebarItemView'](_0x3cfca2);}[_0x5e96('0x20')](_0x447ded){const _0x1d16c1=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x447ded),_0x43a435=this[_0x5e96('0x25')]['get'](this[_0x5e96('0x25')]['getIndex'](_0x1d16c1)+0x1);return _0x43a435&&this[_0x5e96('0x12')](_0x43a435);}[_0x5e96('0x0')](_0x4bd367,_0x3235b8){_0x4bd367[_0x5e96('0x39')]();const _0x1d35be=H(_0x3235b8['bottom']+this['_spaceBetweenItems'],_0x4bd367[_0x5e96('0x3b')]);return!!_0x1d35be&&(this[_0x5e96('0x27')](_0x3235b8,_0x3235b8[_0x5e96('0x3b')]-_0x1d35be),!0x0);}[_0x5e96('0x31')](_0x280a58,_0x18aa2b){_0x280a58[_0x5e96('0x39')]();const _0x16fcea=H(_0x280a58['bottom']+this[_0x5e96('0x7')],_0x18aa2b['top']);return!!_0x16fcea&&(this['_setItemTop'](_0x18aa2b,_0x18aa2b[_0x5e96('0x3b')]+_0x16fcea,!0x1),!0x0);}[_0x5e96('0xd')](_0x573451){const _0x527113=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x573451);if(!_0x527113||!_0x527113[_0x5e96('0x36')])return;const _0x5f463f=this[_0x5e96('0x35')](_0x573451);this[_0x5e96('0x27')](_0x573451,_0x5f463f);}[_0x5e96('0x35')](_0x4ddc80){const _0x29dd81=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4ddc80);if(null===_0x29dd81['targetRect'])return 0x0;if(_0x29dd81[_0x5e96('0x36')]instanceof _0x300841)return _0x29dd81['targetRect'][_0x5e96('0x3b')];{const _0x1ddb33=new _0x300841(this['view'][_0x5e96('0x16')])[_0x5e96('0x3b')];return _0x29dd81[_0x5e96('0x21')][_0x5e96('0x3b')]-_0x1ddb33;}}[_0x5e96('0x27')](_0x1c9a73,_0x3d4184,_0x5e4c78=this[_0x5e96('0xf')]['config'][_0x5e96('0xa')](_0x5e96('0x2'))){_0x5e4c78&&(_0x3d4184=Math[_0x5e96('0x18')](_0x3d4184,this['_getMaxAvailableTop'](_0x1c9a73))),_0x1c9a73[_0x5e96('0x3b')]=_0x3d4184;}['_getMaxAvailableTop'](_0x14fef2){let _0x239d31=this[_0x5e96('0x22')](_0x14fef2),_0x42054c=0x0;for(;_0x239d31;)_0x239d31[_0x5e96('0x39')](),_0x42054c+=this['_spaceBetweenItems']+_0x239d31[_0x5e96('0x2b')],_0x239d31=this[_0x5e96('0x22')](_0x239d31);return _0x42054c;}}function H(_0x12999a,_0x4dad12){return Math[_0x5e96('0x18')](_0x12999a-_0x4dad12,0x0);}
23
+ const _0x1549=['listenTo','add','_alignToTargetRect','length','targetRect','height','updateHeight','clear','delete','sidebar.container','get','container','define','element','_alignAfterItem','bottom','_destroySidebarItemView','change:targetRect','_getItemBefore','_annotationToSidebarItemView','sidebar-setcontainer-invalid-element','_alignBeforeItem','destroy','_createSidebarView','_getMaxAvailableTop','context','view','config','refresh','list','change:bottom','_updateLastItem','content','_spaceBetweenItems','_attachToContainer','unbind','top','_sidebarItemViewToAnnotation','set','locale','remove','bind','_lastItem','_activeAnnotation','pluginName','minHeight','setContainer','sidebar.preventScrollOutOfView','class','_getTargetTop','stopListening','isAnimationDisabled','_setItemTop','change:top','_annotations','addAnnotation','getIndex','last','change:_lastItem','_targetTop','sidebar-attachtocontainer-missing-container','max','rearrange','getSidebarItemView'];(function(_0xf10924,_0x15490d){const _0x2ce7dc=function(_0x4a41d6){while(--_0x4a41d6){_0xf10924['push'](_0xf10924['shift']());}};_0x2ce7dc(++_0x15490d);}(_0x1549,0xa3));const _0x2ce7=function(_0xf10924,_0x15490d){_0xf10924=_0xf10924-0x0;let _0x2ce7dc=_0x1549[_0xf10924];return _0x2ce7dc;};import{ContextPlugin as _0x5f0abb}from'ckeditor5/src/core';import _0x5c03fb from'./view/sidebarview';import _0x324977 from'./view/sidebaritemview';import{Rect as _0x46aa1b,CKEditorError as _0x15d584}from'ckeditor5/src/utils';import{isElement as _0x134f43,throttle as _0x2b543c}from'lodash-es';export default class b extends _0x5f0abb{static get[_0x2ce7('0x9')](){return'Sidebar';}constructor(_0x963f41){super(_0x963f41),this[_0x2ce7('0x3')](_0x2ce7('0x7')),this['view']=this[_0x2ce7('0x34')](),this['set'](_0x2ce7('0x28'),null),this[_0x2ce7('0x3e')]=0x19,this[_0x2ce7('0x2')]=new Map(),this[_0x2ce7('0x30')]=new Map(),this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x29')](_0x2ce7('0xc'),!0x1),this[_0x2ce7('0x13')]=null,this[_0x2ce7('0x8')]=null;}['init'](){const _0x4a787f=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0x26'));_0x4a787f&&this[_0x2ce7('0xb')](_0x4a787f);}[_0x2ce7('0xb')](_0x332013){if(!_0x134f43(_0x332013))throw new _0x15d584(_0x2ce7('0x31'));this[_0x2ce7('0x28')]=_0x332013;}[_0x2ce7('0x3f')]({viewClass:_0x5c99f5='',spaceBetweenItems:_0x8a6ced=0x19}={}){if(!_0x134f43(this[_0x2ce7('0x28')]))throw new _0x15d584(_0x2ce7('0x19'),this);this[_0x2ce7('0x28')]['appendChild'](this[_0x2ce7('0x37')][_0x2ce7('0x2a')]),this[_0x2ce7('0x37')][_0x2ce7('0xd')]=_0x5c99f5,this[_0x2ce7('0x3e')]=_0x8a6ced;}[_0x2ce7('0x1b')]({removedAnnotation:_0x534d5d,previousAnnotation:_0x440480,nextAnnotation:_0x2d043d}){const _0x3433aa=this['getSidebarItemView'](_0x534d5d);this[_0x2ce7('0x37')]['list'][_0x2ce7('0x5')](_0x3433aa),this['_destroySidebarItemView'](_0x534d5d),_0x440480&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x440480)),_0x2d043d&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x2d043d)),this[_0x2ce7('0x3c')]();}[_0x2ce7('0x39')]({blurredAnnotation:_0x5ccf69,activatedAnnotation:_0x57eae4,disableAnimationOnActivatedAnnotation:_0xbe22a}){if(this['_activeAnnotation']=_0x57eae4,_0x5ccf69){_0x5ccf69['isActive']=!0x1;const _0x1a4b90=this[_0x2ce7('0x1c')](_0x5ccf69);_0x1a4b90&&_0xbe22a&&(_0x1a4b90[_0x2ce7('0x10')]=!0x1);}if(_0x57eae4){const _0xcc8c1=this[_0x2ce7('0x1c')](_0x57eae4);_0xcc8c1&&(_0x57eae4['isActive']=!0x0,_0xbe22a&&(_0xcc8c1[_0x2ce7('0x10')]=!0x0,_0xcc8c1[_0x2ce7('0x1')]+=0x1),this['_alignToTargetRect'](_0xcc8c1));}}['_detachFromContainer'](_0x5d8411){this[_0x2ce7('0xf')](),this['view'][_0x2ce7('0x2a')][_0x2ce7('0x5')]();for(const _0x4431af of _0x5d8411)this[_0x2ce7('0x2d')](_0x4431af);this[_0x2ce7('0x37')][_0x2ce7('0x3a')][_0x2ce7('0x24')](),this['view'][_0x2ce7('0xd')]='',this[_0x2ce7('0x7')]=null;}[_0x2ce7('0x14')](_0x370146,_0x7a244){_0x7a244||(_0x7a244=_0x370146[_0x2ce7('0x37')]);const _0xfb5705=new _0x324977(this[_0x2ce7('0x36')][_0x2ce7('0x4')]);this[_0x2ce7('0x2')][_0x2ce7('0x3')](_0xfb5705,_0x370146),this['_annotationToSidebarItemView'][_0x2ce7('0x3')](_0x370146,_0xfb5705),_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x1e')](_0x7a244),this['_alignToTargetRect'](_0xfb5705),this[_0x2ce7('0x1d')](_0x370146[_0x2ce7('0x37')],_0x2ce7('0x2e'),()=>{const _0x3f7ffe=this['_getTargetTop'](_0xfb5705);_0xfb5705[_0x2ce7('0x18')]!=_0x3f7ffe&&(_0xfb5705['_targetTop']=_0x3f7ffe,this['_setItemTop'](_0xfb5705,_0x3f7ffe));}),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x12'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x2a314c=this[_0x2ce7('0x2f')](_0xfb5705);if(!_0x2a314c)return;const _0x267712=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x2a314c),_0x1df41b=this[_0x2ce7('0x8')];_0x1df41b&&_0x1df41b===_0x267712?this[_0x2ce7('0x2b')](_0x2a314c,_0xfb5705):this[_0x2ce7('0x32')](_0xfb5705,_0x2a314c);},0xa,{'leading':!0x1})),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x3b'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x18f899=this['_getItemAfter'](_0xfb5705);if(!_0x18f899)return;const _0xccf227=this['_sidebarItemViewToAnnotation'][_0x2ce7('0x27')](_0x18f899),_0x24bd13=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0xc')),_0x3e41f5=this[_0x2ce7('0x8')];_0x3e41f5&&_0x3e41f5===_0xccf227&&_0x24bd13?(this[_0x2ce7('0x32')](_0x18f899,_0xfb5705),this['_alignAfterItem'](_0xfb5705,_0x18f899)):_0x3e41f5&&_0x3e41f5===_0xccf227?this[_0x2ce7('0x32')](_0x18f899,_0xfb5705):this[_0x2ce7('0x2b')](_0xfb5705,_0x18f899);},0xa,{'leading':!0x1}));const _0x2a990d=this[_0x2ce7('0x2f')](_0xfb5705);if(_0x2a990d)this['_alignAfterItem'](_0x2a990d,_0xfb5705)||this['_alignToTargetRect'](_0xfb5705);else this['_alignToTargetRect'](_0xfb5705);return this[_0x2ce7('0x3c')](),this['view']['list']['add'](_0xfb5705),_0xfb5705;}['getSidebarItemView'](_0x1f0817){return this[_0x2ce7('0x30')][_0x2ce7('0x27')](_0x1f0817);}['destroy'](){this[_0x2ce7('0x37')][_0x2ce7('0x33')]();}[_0x2ce7('0x2d')](_0x110673){const _0x536429=this[_0x2ce7('0x1c')](_0x110673);this['stopListening'](_0x536429),this[_0x2ce7('0xf')](_0x110673['view']),_0x536429[_0x2ce7('0x33')](),this['_annotationToSidebarItemView'][_0x2ce7('0x25')](_0x110673),this[_0x2ce7('0x2')][_0x2ce7('0x25')](_0x536429);}[_0x2ce7('0x34')](){const _0x461ad6=new _0x5c03fb(this['context'][_0x2ce7('0x4')]);return _0x461ad6['render'](),this['on'](_0x2ce7('0x17'),(_0x40df4d,_0x5a82ff,_0x4ee22a,_0x3c9b56)=>{_0x3c9b56&&_0x461ad6[_0x2ce7('0x0')]('minHeight'),_0x4ee22a?_0x461ad6[_0x2ce7('0x6')]('minHeight')['to'](_0x4ee22a,_0x2ce7('0x2c')):_0x461ad6[_0x2ce7('0xa')]=null;}),_0x461ad6;}[_0x2ce7('0x3c')](){this[_0x2ce7('0x7')]=this['getSidebarItemView'](this[_0x2ce7('0x13')][_0x2ce7('0x16')]);}[_0x2ce7('0x2f')](_0x28d65b){const _0x14711e=this['_sidebarItemViewToAnnotation']['get'](_0x28d65b),_0x54910b=this[_0x2ce7('0x13')][_0x2ce7('0x27')](this[_0x2ce7('0x13')][_0x2ce7('0x15')](_0x14711e)-0x1);return _0x54910b&&this[_0x2ce7('0x1c')](_0x54910b);}['_getItemAfter'](_0x43db57){const _0x521a95=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x43db57),_0x249c6f=this['_annotations'][_0x2ce7('0x27')](this['_annotations'][_0x2ce7('0x15')](_0x521a95)+0x1);return _0x249c6f&&this['getSidebarItemView'](_0x249c6f);}[_0x2ce7('0x32')](_0x385dc7,_0x23e9e8){_0x385dc7[_0x2ce7('0x23')]();const _0x38f454=H(_0x23e9e8['bottom']+this[_0x2ce7('0x3e')],_0x385dc7[_0x2ce7('0x1')]);return!!_0x38f454&&(this[_0x2ce7('0x11')](_0x23e9e8,_0x23e9e8[_0x2ce7('0x1')]-_0x38f454),!0x0);}[_0x2ce7('0x2b')](_0x5550ff,_0x2935c3){_0x5550ff['updateHeight']();const _0x55a8d3=H(_0x5550ff[_0x2ce7('0x2c')]+this[_0x2ce7('0x3e')],_0x2935c3['top']);return!!_0x55a8d3&&(this[_0x2ce7('0x11')](_0x2935c3,_0x2935c3[_0x2ce7('0x1')]+_0x55a8d3,!0x1),!0x0);}[_0x2ce7('0x1f')](_0x35c0db){const _0x54cac4=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x35c0db);if(!_0x54cac4||!_0x54cac4['target'])return;const _0x3e9c17=this[_0x2ce7('0xe')](_0x35c0db);this[_0x2ce7('0x11')](_0x35c0db,_0x3e9c17);}[_0x2ce7('0xe')](_0x4581c2){const _0x644612=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x4581c2);if(null===_0x644612[_0x2ce7('0x21')])return 0x0;if(_0x644612['target']instanceof _0x46aa1b)return _0x644612[_0x2ce7('0x21')][_0x2ce7('0x1')];{const _0x3d3d94=new _0x46aa1b(this['view'][_0x2ce7('0x2a')])[_0x2ce7('0x1')];return _0x644612['targetRect']['top']-_0x3d3d94;}}[_0x2ce7('0x11')](_0x758b79,_0x41a26f,_0x1c5293=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')]('sidebar.preventScrollOutOfView')){_0x1c5293&&(_0x41a26f=Math['max'](_0x41a26f,this[_0x2ce7('0x35')](_0x758b79))),_0x758b79['top']=_0x41a26f;}[_0x2ce7('0x35')](_0x5d7832){let _0x2ef42c=this[_0x2ce7('0x2f')](_0x5d7832),_0xe8676f=0x0;for(;_0x2ef42c;)_0x2ef42c[_0x2ce7('0x23')](),_0xe8676f+=this['_spaceBetweenItems']+_0x2ef42c[_0x2ce7('0x22')],_0x2ef42c=this[_0x2ce7('0x2f')](_0x2ef42c);return _0xe8676f;}}function H(_0x1eff2f,_0x55b945){return Math[_0x2ce7('0x1a')](_0x1eff2f-_0x55b945,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x139d=['annotationType','add','setTemplate','ck-annotation-counter','isDirty','_badge','icon','...','ck-annotation-counter__badge','set','ck-annotation-counter__badge--edit-mode','bind','counterView','number','span'];(function(_0x540025,_0x139df4){const _0x4c0511=function(_0x2ae88b){while(--_0x2ae88b){_0x540025['push'](_0x540025['shift']());}};_0x4c0511(++_0x139df4);}(_0x139d,0x1c5));const _0x4c05=function(_0x540025,_0x139df4){_0x540025=_0x540025-0x0;let _0x4c0511=_0x139d[_0x540025];return _0x4c0511;};import{ButtonView as _0x1a1cb7,View as _0x11a9dc}from'ckeditor5/src/ui';import _0x4ecc5d from'../../../theme/icons/add-comment.svg';export default class B extends _0x1a1cb7{constructor(_0x5bbc85){super(_0x5bbc85);const _0x5950b4=this['bindTemplate'];this['set'](_0x4c05('0x1'),!0x1),this[_0x4c05('0x6')](_0x4c05('0xa'),0x0),this[_0x4c05('0x8')](_0x4c05('0x2'))['to'](this,_0x4c05('0x1'),this,'number',(_0x58c1b3,_0x2ef73c)=>_0x58c1b3?_0x4c05('0x4'):_0x2ef73c),this[_0x4c05('0x6')](_0x4c05('0xc'),''),this[_0x4c05('0x3')]=_0x4ecc5d,this['extendTemplate']({'attributes':{'class':[_0x4c05('0x0')]}}),this[_0x4c05('0x9')]=new _0x11a9dc(),this[_0x4c05('0x9')][_0x4c05('0xe')]({'tag':_0x4c05('0xb'),'attributes':{'class':[_0x4c05('0x5'),_0x5950b4['to']('annotationType',_0x3d343d=>'ck-annotation-counter__badge--'+_0x3d343d),_0x5950b4['if']('isDirty',_0x4c05('0x7'))]},'children':[{'text':_0x5950b4['to'](_0x4c05('0x2'))}]}),this['children'][_0x4c05('0xd')](this[_0x4c05('0x9')]);}}
23
+ const _0x1579=['annotationType','number','isDirty','counterView','children','set','extendTemplate','ck-annotation-counter__badge--','bindTemplate','_badge','ck-annotation-counter__badge','span','...','bind'];(function(_0x5ece19,_0x157916){const _0x1becfa=function(_0x3ace4b){while(--_0x3ace4b){_0x5ece19['push'](_0x5ece19['shift']());}};_0x1becfa(++_0x157916);}(_0x1579,0x1f2));const _0x1bec=function(_0x5ece19,_0x157916){_0x5ece19=_0x5ece19-0x0;let _0x1becfa=_0x1579[_0x5ece19];return _0x1becfa;};import{ButtonView as _0x10f1d5,View as _0x273e2a}from'ckeditor5/src/ui';import _0x5c9623 from'../../../theme/icons/add-comment.svg';export default class B extends _0x10f1d5{constructor(_0x292811){super(_0x292811);const _0x52c117=this[_0x1bec('0x0')];this[_0x1bec('0xb')]('isDirty',!0x1),this[_0x1bec('0xb')](_0x1bec('0x7'),0x0),this[_0x1bec('0x5')]('_badge')['to'](this,_0x1bec('0x8'),this,_0x1bec('0x7'),(_0x3f9321,_0x38d900)=>_0x3f9321?_0x1bec('0x4'):_0x38d900),this[_0x1bec('0xb')](_0x1bec('0x6'),''),this['icon']=_0x5c9623,this[_0x1bec('0xc')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x273e2a(),this[_0x1bec('0x9')]['setTemplate']({'tag':_0x1bec('0x3'),'attributes':{'class':[_0x1bec('0x2'),_0x52c117['to'](_0x1bec('0x6'),_0x4663c7=>_0x1bec('0xd')+_0x4663c7),_0x52c117['if'](_0x1bec('0x8'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x52c117['to'](_0x1bec('0x1'))}]}),this[_0x1bec('0xa')]['add'](this[_0x1bec('0x9')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2957=['add','height','ck-annotation-wrapper','element','isActive','mainView','clear','detach','keystrokes','Esc','targetRect','render','_mutationObserver','fire','listenTo','content','setTemplate','focus','_updateHeight','set','createCollection','bindTemplate','focusTracker','isDirty','destroy','length','ck-rounded-corners'];(function(_0x52ca42,_0x2957a9){const _0x30037f=function(_0x785402){while(--_0x785402){_0x52ca42['push'](_0x52ca42['shift']());}};_0x30037f(++_0x2957a9);}(_0x2957,0x1c0));const _0x3003=function(_0x52ca42,_0x2957a9){_0x52ca42=_0x52ca42-0x0;let _0x30037f=_0x2957[_0x52ca42];return _0x30037f;};import{View as _0xb9d63a}from'ckeditor5/src/ui';import{FocusTracker as _0x96e13c,KeystrokeHandler as _0x2fd355,uid as _0x2f5818}from'ckeditor5/src/utils';import _0x5bbc4d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xb9d63a{constructor(_0x18af2b,_0x52567b){super(_0x18af2b),this['id']=_0x2f5818(),this[_0x3003('0x6')]=new _0x96e13c(),this[_0x3003('0x13')]=new _0x2fd355(),this[_0x3003('0x13')][_0x3003('0x3')](_0x3003('0x14'),(_0x2ea949,_0x8154bc)=>this[_0x3003('0x18')]('Esc',_0x8154bc)),this[_0x3003('0x3')](_0x3003('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3003('0x3')](_0x3003('0xc'),0x0),this['set'](_0x3003('0xf'),!0x1),this[_0x3003('0x3')](_0x3003('0x7'),!0x1),this['set'](_0x3003('0x9'),0x0),this[_0x3003('0x3')]('type',''),this[_0x3003('0x17')]=_0x5bbc4d(()=>this[_0x3003('0x2')]()),this['content']=this[_0x3003('0x4')](),this['content'][_0x3003('0xb')](_0x52567b),this[_0x3003('0x10')]=_0x52567b;const _0x130c2c=this[_0x3003('0x5')];this[_0x3003('0x0')]({'tag':'div','attributes':{'class':['ck',_0x3003('0xd'),_0x3003('0xa'),_0x130c2c['if'](_0x3003('0xf'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x3003('0x1a')]});}[_0x3003('0x16')](){super['render'](),this[_0x3003('0x6')][_0x3003('0xb')](this[_0x3003('0xe')]),this[_0x3003('0x13')][_0x3003('0x19')](this[_0x3003('0xe')]),this[_0x3003('0x17')]['attach'](this[_0x3003('0xe')]);}[_0x3003('0x8')](){this[_0x3003('0x1a')][_0x3003('0x11')](),this[_0x3003('0x13')][_0x3003('0x8')](),this[_0x3003('0x6')][_0x3003('0x8')](),this['_mutationObserver'][_0x3003('0x12')](),super[_0x3003('0x8')]();}[_0x3003('0x1')](){this[_0x3003('0xe')][_0x3003('0x1')]();}[_0x3003('0x2')](){const _0x191ac6=this[_0x3003('0xe')]['clientHeight'];_0x191ac6&&(this[_0x3003('0xc')]=_0x191ac6);}}
23
+ const _0x5402=['div','bindTemplate','focus','destroy','isDirty','ck-rounded-corners','ck-annotation-wrapper','focusTracker','height','targetRect','clear','clientHeight','add','content','_updateHeight','render','_mutationObserver','isActive','listenTo','type','createCollection','set','keystrokes','element','Esc'];(function(_0x29347d,_0x540265){const _0x210c79=function(_0x43dbc0){while(--_0x43dbc0){_0x29347d['push'](_0x29347d['shift']());}};_0x210c79(++_0x540265);}(_0x5402,0x111));const _0x210c=function(_0x29347d,_0x540265){_0x29347d=_0x29347d-0x0;let _0x210c79=_0x5402[_0x29347d];return _0x210c79;};import{View as _0x3a30dd}from'ckeditor5/src/ui';import{FocusTracker as _0x168e0a,KeystrokeHandler as _0x47bc39,uid as _0x3cfc80}from'ckeditor5/src/utils';import _0x421512 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x3a30dd{constructor(_0x344ca1,_0x72919f){super(_0x344ca1),this['id']=_0x3cfc80(),this[_0x210c('0x9')]=new _0x168e0a(),this[_0x210c('0x18')]=new _0x47bc39(),this[_0x210c('0x18')][_0x210c('0x17')](_0x210c('0x1'),(_0x449607,_0x51101a)=>this['fire'](_0x210c('0x1'),_0x51101a)),this['set'](_0x210c('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x210c('0xa'),0x0),this[_0x210c('0x17')](_0x210c('0x13'),!0x1),this['set'](_0x210c('0x6'),!0x1),this[_0x210c('0x17')]('length',0x0),this[_0x210c('0x17')](_0x210c('0x15'),''),this['_mutationObserver']=_0x421512(()=>this[_0x210c('0x10')]()),this[_0x210c('0xf')]=this[_0x210c('0x16')](),this[_0x210c('0xf')][_0x210c('0xe')](_0x72919f),this['mainView']=_0x72919f;const _0x260897=this[_0x210c('0x3')];this['setTemplate']({'tag':_0x210c('0x2'),'attributes':{'class':['ck',_0x210c('0x8'),_0x210c('0x7'),_0x260897['if'](_0x210c('0x13'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x210c('0xf')]});}[_0x210c('0x11')](){super[_0x210c('0x11')](),this['focusTracker'][_0x210c('0xe')](this[_0x210c('0x0')]),this['keystrokes'][_0x210c('0x14')](this['element']),this['_mutationObserver']['attach'](this[_0x210c('0x0')]);}[_0x210c('0x5')](){this[_0x210c('0xf')][_0x210c('0xc')](),this[_0x210c('0x18')][_0x210c('0x5')](),this['focusTracker'][_0x210c('0x5')](),this[_0x210c('0x12')]['detach'](),super[_0x210c('0x5')]();}[_0x210c('0x4')](){this['element'][_0x210c('0x4')]();}[_0x210c('0x10')](){const _0x5be1ad=this[_0x210c('0x0')][_0x210c('0xd')];_0x5be1ad&&(this[_0x210c('0xa')]=_0x5be1ad);}}