@ckeditor/ckeditor5-comments 0.0.0-nightly-20230809.0 → 0.0.0-nightly-20230811.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 (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20230809.0",
3
+ "version": "0.0.0-nightly-20230811.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/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20230809.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230809.0",
46
+ "ckeditor5": "0.0.0-nightly-20230811.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230811.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a76=['add','function','item','clear','focusableElements','_getNormalizedTarget','getClientRects','offsetParent','focusTracker','length','_target','isArray','refreshVisibility','view','stopListening','isVisible','_type','innerView','isActive','targetRect','filter','mainView','object','type','element','nodeType','every','_id','destroy','remove','target','_assertCorrectTarget','set'];(function(_0x583d89,_0x2a765b){const _0x3dcd16=function(_0x3e8fb5){while(--_0x3e8fb5){_0x583d89['push'](_0x583d89['shift']());}};_0x3dcd16(++_0x2a765b);}(_0x2a76,0x1d7));const _0x3dcd=function(_0x583d89,_0x2a765b){_0x583d89=_0x583d89-0x0;let _0x3dcd16=_0x2a76[_0x583d89];return _0x3dcd16;};import{CKEditorError as _0xb5b2ba,Rect as _0x550d71,Collection as _0xcf479a,ObservableMixin as _0x6ba3ee}from'ckeditor5/src/utils';export default class d extends _0x6ba3ee(){constructor({view:_0x158570,target:_0x2d776a,type:_0x50e5d0,isVisible:_0xa95981=!0x0}){super(),this['view']=_0x158570,this[_0x3dcd('0x4')][_0x3dcd('0xf')]||this[_0x3dcd('0x4')]['render'](),this[_0x3dcd('0x7')]=_0x50e5d0,this[_0x3dcd('0x1')]=_0x2d776a,d[_0x3dcd('0x16')](this['_getNormalizedTarget']()),this['focusableElements']=new _0xcf479a([this[_0x3dcd('0x4')][_0x3dcd('0xf')]],{'idProperty':_0x3dcd('0x12')}),this[_0x3dcd('0x1c')]['on']('add',(_0x14c363,_0x2906ac)=>{this[_0x3dcd('0x4')][_0x3dcd('0x20')][_0x3dcd('0x18')](_0x2906ac);}),this[_0x3dcd('0x1c')]['on']('remove',(_0xd5e1f,_0x4e5846)=>{this[_0x3dcd('0x4')]['focusTracker'][_0x3dcd('0x14')](_0x4e5846);}),this[_0x3dcd('0x17')]('isVisible',_0xa95981);}get[_0x3dcd('0xe')](){return _0x3dcd('0x19')==typeof this['_type']?this[_0x3dcd('0x7')]():this[_0x3dcd('0x7')];}get[_0x3dcd('0x8')](){return this[_0x3dcd('0x4')][_0x3dcd('0xc')];}get[_0x3dcd('0x15')](){const _0x472de0=this[_0x3dcd('0x1d')]();return d[_0x3dcd('0x16')](_0x472de0),_0x472de0;}get['targetRect'](){const _0x566446=this['target'];if(null===_0x566446)return null;if(_0x566446 instanceof _0x550d71)return _0x566446;const _0x4a954f=_0x566446[_0x3dcd('0xb')](_0x149ea5=>function(_0x3bfdf3){const _0x3bfd53=_0x3bfdf3[_0x3dcd('0x1f')];if(_0x3bfd53)return!0x0;const _0x4a0853=_0x3bfdf3[_0x3dcd('0x1e')]()['item'](0x0);return!!_0x4a0853;}(_0x149ea5));return 0x0===_0x4a954f[_0x3dcd('0x0')]?null:new _0x550d71(_0x4a954f[0x0][_0x3dcd('0x1e')]()[_0x3dcd('0x1a')](0x0));}get['isActive'](){return this[_0x3dcd('0x4')][_0x3dcd('0x9')];}set[_0x3dcd('0x9')](_0x255c1f){this['view'][_0x3dcd('0x9')]=_0x255c1f,this[_0x3dcd('0x4')][_0x3dcd('0xc')][_0x3dcd('0x9')]=_0x255c1f;}['updateTargetRect'](){this[_0x3dcd('0x4')][_0x3dcd('0xa')]=this['targetRect'];}[_0x3dcd('0x13')](){this['focusableElements']['stopListening'](),this[_0x3dcd('0x1c')][_0x3dcd('0x1b')](),this[_0x3dcd('0x5')]();}[_0x3dcd('0x3')](){this[_0x3dcd('0x6')]=!!this[_0x3dcd('0xa')];}static[_0x3dcd('0x16')](_0x44a07){if(!(null===_0x44a07||_0x44a07 instanceof _0x550d71||Array[_0x3dcd('0x2')](_0x44a07)&&_0x44a07[_0x3dcd('0x11')](_0x17b5cb=>y(_0x17b5cb))))throw new _0xb5b2ba('annotation-invalid-target',null,{'target':_0x44a07});}[_0x3dcd('0x1d')](){const _0x4a8044=_0x3dcd('0x19')==typeof this[_0x3dcd('0x1')]?this[_0x3dcd('0x1')]():this[_0x3dcd('0x1')];return y(_0x4a8044)?[_0x4a8044]:_0x4a8044;}}function y(_0x114d70){return null!==_0x114d70&&_0x3dcd('0xd')==typeof _0x114d70&&'nodeType'in _0x114d70&&0x1===_0x114d70[_0x3dcd('0x10')];}
23
+ const _0x113c=['annotation-invalid-target','length','render','set','object','focusableElements','add','function','_id','stopListening','_target','innerView','_assertCorrectTarget','refreshVisibility','view','filter','_type','target','element','every','type','isVisible','mainView','getClientRects','_getNormalizedTarget','isActive','nodeType','isArray','focusTracker','offsetParent','updateTargetRect','targetRect','item'];(function(_0x491ee2,_0x113c14){const _0x118653=function(_0x3f1745){while(--_0x3f1745){_0x491ee2['push'](_0x491ee2['shift']());}};_0x118653(++_0x113c14);}(_0x113c,0x197));const _0x1186=function(_0x491ee2,_0x113c14){_0x491ee2=_0x491ee2-0x0;let _0x118653=_0x113c[_0x491ee2];return _0x118653;};import{CKEditorError as _0x11475b,Rect as _0x1e006d,Collection as _0x1f522b,ObservableMixin as _0x261b6d}from'ckeditor5/src/utils';export default class d extends _0x261b6d(){constructor({view:_0x603c31,target:_0x1dda3b,type:_0xc0c868,isVisible:_0x5c23d5=!0x0}){super(),this['view']=_0x603c31,this[_0x1186('0x3')][_0x1186('0x7')]||this['view'][_0x1186('0x18')](),this[_0x1186('0x5')]=_0xc0c868,this['_target']=_0x1dda3b,d[_0x1186('0x1')](this['_getNormalizedTarget']()),this[_0x1186('0x1b')]=new _0x1f522b([this[_0x1186('0x3')][_0x1186('0x7')]],{'idProperty':_0x1186('0x1e')}),this[_0x1186('0x1b')]['on'](_0x1186('0x1c'),(_0x52e466,_0xf4715)=>{this['view'][_0x1186('0x11')][_0x1186('0x1c')](_0xf4715);}),this[_0x1186('0x1b')]['on']('remove',(_0x258eb3,_0x3a69fd)=>{this[_0x1186('0x3')][_0x1186('0x11')]['remove'](_0x3a69fd);}),this[_0x1186('0x19')](_0x1186('0xa'),_0x5c23d5);}get[_0x1186('0x9')](){return'function'==typeof this[_0x1186('0x5')]?this[_0x1186('0x5')]():this[_0x1186('0x5')];}get[_0x1186('0x0')](){return this['view'][_0x1186('0xb')];}get['target'](){const _0x3643b2=this[_0x1186('0xd')]();return d[_0x1186('0x1')](_0x3643b2),_0x3643b2;}get[_0x1186('0x14')](){const _0x1b4df7=this[_0x1186('0x6')];if(null===_0x1b4df7)return null;if(_0x1b4df7 instanceof _0x1e006d)return _0x1b4df7;const _0x48fb5d=_0x1b4df7[_0x1186('0x4')](_0x5d2a0f=>function(_0x5db83b){const _0x115891=_0x5db83b[_0x1186('0x12')];if(_0x115891)return!0x0;const _0x577413=_0x5db83b[_0x1186('0xc')]()[_0x1186('0x15')](0x0);return!!_0x577413;}(_0x5d2a0f));return 0x0===_0x48fb5d[_0x1186('0x17')]?null:new _0x1e006d(_0x48fb5d[0x0][_0x1186('0xc')]()[_0x1186('0x15')](0x0));}get[_0x1186('0xe')](){return this[_0x1186('0x3')][_0x1186('0xe')];}set['isActive'](_0x1aaba3){this[_0x1186('0x3')]['isActive']=_0x1aaba3,this[_0x1186('0x3')][_0x1186('0xb')][_0x1186('0xe')]=_0x1aaba3;}[_0x1186('0x13')](){this[_0x1186('0x3')]['targetRect']=this[_0x1186('0x14')];}['destroy'](){this[_0x1186('0x1b')][_0x1186('0x1f')](),this[_0x1186('0x1b')]['clear'](),this['stopListening']();}[_0x1186('0x2')](){this['isVisible']=!!this[_0x1186('0x14')];}static['_assertCorrectTarget'](_0x54c7c4){if(!(null===_0x54c7c4||_0x54c7c4 instanceof _0x1e006d||Array[_0x1186('0x10')](_0x54c7c4)&&_0x54c7c4[_0x1186('0x8')](_0x464a5b=>y(_0x464a5b))))throw new _0x11475b(_0x1186('0x16'),null,{'target':_0x54c7c4});}['_getNormalizedTarget'](){const _0x5d7d67=_0x1186('0x1d')==typeof this[_0x1186('0x20')]?this[_0x1186('0x20')]():this[_0x1186('0x20')];return y(_0x5d7d67)?[_0x5d7d67]:_0x5d7d67;}}function y(_0x1d039a){return null!==_0x1d039a&&_0x1186('0x1a')==typeof _0x1d039a&&_0x1186('0xf')in _0x1d039a&&0x1===_0x1d039a['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13d6=['_innerViewToAnnotation','remove','change:isFocused','blur','_sort','getIndex','stopListening','sort','updateTargetRect','_getOrderInContent','targetRect','view','focus','set','refreshPositioning','destroy','length','annotationcollection-not-existing-item','delete','isFocused','get','innerView','fire','top','getByInnerView','_focusTracker','focusableElements','_viewToAnnotation','listenTo','add','focusTracker','clear','left','has'];(function(_0x4cf0cd,_0x13d63d){const _0x5e9983=function(_0x31a7bf){while(--_0x31a7bf){_0x4cf0cd['push'](_0x4cf0cd['shift']());}};_0x5e9983(++_0x13d63d);}(_0x13d6,0x1a7));const _0x5e99=function(_0x4cf0cd,_0x13d63d){_0x4cf0cd=_0x4cf0cd-0x0;let _0x5e9983=_0x13d6[_0x4cf0cd];return _0x5e9983;};import{CKEditorError as _0x1eeb16,Collection as _0x79ac74,FocusTracker as _0x1a1295}from'ckeditor5/src/utils';export default class x extends _0x79ac74{constructor(_0x52e3b5=[]){super(),this[_0x5e99('0x13')]=new Map(),this[_0x5e99('0xc')]=new Map(),this[_0x5e99('0xa')]=new _0x1a1295(),this[_0x5e99('0xa')]['on'](_0x5e99('0x15'),(_0xb874a5,_0xc663fd,_0x1f4aad)=>{_0x1f4aad||this['fire'](_0x5e99('0x16'));});for(const _0x44544d of _0x52e3b5)this[_0x5e99('0xe')](_0x44544d);}get[_0x5e99('0x4')](){return this['_focusTracker']['isFocused'];}['add'](_0x160166){if(this['has'](_0x160166))throw new _0x1eeb16('annotationcollection-duplicated-item',null);this[_0x5e99('0x13')][_0x5e99('0x20')](_0x160166[_0x5e99('0x6')],_0x160166),this[_0x5e99('0xc')][_0x5e99('0x20')](_0x160166[_0x5e99('0x1e')],_0x160166);for(const _0x5c0014 of _0x160166[_0x5e99('0xb')])this[_0x5e99('0xa')][_0x5e99('0xe')](_0x5c0014);this[_0x5e99('0xd')](_0x160166[_0x5e99('0xb')],_0x5e99('0xe'),(_0x40b011,_0x3b3a0e)=>{this[_0x5e99('0xa')][_0x5e99('0xe')](_0x3b3a0e);}),this[_0x5e99('0xd')](_0x160166[_0x5e99('0xb')],_0x5e99('0x14'),(_0x581b4d,_0x5e3cb3)=>{this[_0x5e99('0xa')][_0x5e99('0x14')](_0x5e3cb3);}),this[_0x5e99('0xd')](_0x160166[_0x5e99('0x1e')][_0x5e99('0xf')],_0x5e99('0x15'),(_0x4a3402,_0x11845f,_0xa8e922)=>{_0xa8e922&&this[_0x5e99('0x7')](_0x5e99('0x1f'),_0x160166);}),_0x160166[_0x5e99('0x1b')]();const _0x3f86e8=this[_0x5e99('0x1c')](_0x160166[_0x5e99('0x1e')][_0x5e99('0x1d')]);return super[_0x5e99('0xe')](_0x160166,_0x3f86e8);}[_0x5e99('0x14')](_0x3825a1){if(!this['has'](_0x3825a1))throw new _0x1eeb16(_0x5e99('0x2'),null);this[_0x5e99('0x19')](_0x3825a1[_0x5e99('0x1e')][_0x5e99('0xf')]),this['stopListening'](_0x3825a1[_0x5e99('0xb')]);for(const _0x3c9505 of _0x3825a1[_0x5e99('0xb')])this[_0x5e99('0xa')][_0x5e99('0x14')](_0x3c9505);return this['_viewToAnnotation'][_0x5e99('0x3')](_0x3825a1[_0x5e99('0x1e')]),this[_0x5e99('0x13')]['delete'](_0x3825a1[_0x5e99('0x6')]),super[_0x5e99('0x14')](_0x3825a1);}[_0x5e99('0x9')](_0x4649c3){return this['_innerViewToAnnotation'][_0x5e99('0x5')](_0x4649c3);}['getByView'](_0x1fb3f6){return this['_viewToAnnotation'][_0x5e99('0x5')](_0x1fb3f6);}[_0x5e99('0x0')](){super[_0x5e99('0x10')](),this[_0x5e99('0x19')](),this[_0x5e99('0x13')]['clear'](),this['_viewToAnnotation'][_0x5e99('0x10')](),this[_0x5e99('0xa')][_0x5e99('0x0')]();}[_0x5e99('0x21')](){for(const _0x571737 of this)_0x571737['updateTargetRect']();this[_0x5e99('0x17')]();}[_0x5e99('0x17')](){const _0x2a4963=Array['from'](this)[_0x5e99('0x1a')]((_0x1acc29,_0x4f288b)=>v(_0x1acc29[_0x5e99('0x1e')]['targetRect'],_0x4f288b['view'][_0x5e99('0x1d')]));for(let _0x3a2f7c=_0x2a4963[_0x5e99('0x1')]-0x1;_0x3a2f7c>0x0;_0x3a2f7c--){const _0xcf7591=_0x2a4963[_0x3a2f7c];_0x3a2f7c!==this[_0x5e99('0x18')](_0xcf7591)&&(this[_0x5e99('0x14')](_0xcf7591),this[_0x5e99('0xe')](_0xcf7591));}}['_getOrderInContent'](_0x300bf6){let _0x5d641c=0x0;if(!_0x300bf6)return this[_0x5e99('0x1')];for(const _0x23ac54 of this){const _0x918a77=_0x23ac54[_0x5e99('0x1e')][_0x5e99('0x1d')];if(_0x918a77){if(v(_0x300bf6,_0x918a77)<0x0)return _0x5d641c;_0x5d641c++;}}return _0x5d641c;}}export function bindAnnotationCollections({source:_0x3322a6,target:_0x149c66,filter:_0x1a1056}){for(const _0x382249 of _0x3322a6)_0x1a1056(_0x382249)&&_0x149c66[_0x5e99('0xe')](_0x382249);_0x149c66[_0x5e99('0xd')](_0x3322a6,_0x5e99('0xe'),(_0x1f8605,_0x486a4e)=>{_0x1a1056(_0x486a4e)&&_0x149c66[_0x5e99('0xe')](_0x486a4e);}),_0x149c66['listenTo'](_0x3322a6,_0x5e99('0x14'),(_0x11c609,_0x511d82)=>{_0x149c66[_0x5e99('0x12')](_0x511d82)&&_0x149c66['remove'](_0x511d82);});}function v(_0x46e610,_0x4dc9d1){if(null===_0x46e610&&null===_0x4dc9d1)return 0x0;if(null===_0x46e610)return-0x1;if(null===_0x4dc9d1)return 0x1;const _0x39ca10=_0x46e610['top']-_0x4dc9d1[_0x5e99('0x8')];return 0x0==_0x39ca10?_0x46e610[_0x5e99('0x11')]-_0x4dc9d1[_0x5e99('0x11')]:_0x39ca10;}
23
+ const _0x2d41=['length','change:isFocused','annotationcollection-duplicated-item','set','left','updateTargetRect','listenTo','fire','sort','stopListening','blur','add','_focusTracker','has','from','_sort','_innerViewToAnnotation','focusableElements','clear','top','focusTracker','remove','delete','getByInnerView','_viewToAnnotation','get','_getOrderInContent','focus','targetRect','destroy','view'];(function(_0x536a11,_0x2d416d){const _0x164a3d=function(_0x41d954){while(--_0x41d954){_0x536a11['push'](_0x536a11['shift']());}};_0x164a3d(++_0x2d416d);}(_0x2d41,0x1c2));const _0x164a=function(_0x536a11,_0x2d416d){_0x536a11=_0x536a11-0x0;let _0x164a3d=_0x2d41[_0x536a11];return _0x164a3d;};import{CKEditorError as _0x9caa4b,Collection as _0x4a3877,FocusTracker as _0x365932}from'ckeditor5/src/utils';export default class x extends _0x4a3877{constructor(_0x393b4b=[]){super(),this[_0x164a('0x0')]=new Map(),this[_0x164a('0x8')]=new Map(),this[_0x164a('0x1b')]=new _0x365932(),this[_0x164a('0x1b')]['on'](_0x164a('0x10'),(_0x5e2630,_0x333457,_0x4a38e0)=>{_0x4a38e0||this[_0x164a('0x16')](_0x164a('0x19'));});for(const _0x26b6c3 of _0x393b4b)this[_0x164a('0x1a')](_0x26b6c3);}get['isFocused'](){return this['_focusTracker']['isFocused'];}[_0x164a('0x1a')](_0x582e60){if(this[_0x164a('0x1c')](_0x582e60))throw new _0x9caa4b(_0x164a('0x11'),null);this[_0x164a('0x0')][_0x164a('0x12')](_0x582e60['innerView'],_0x582e60),this[_0x164a('0x8')][_0x164a('0x12')](_0x582e60[_0x164a('0xe')],_0x582e60);for(const _0x685c9f of _0x582e60['focusableElements'])this[_0x164a('0x1b')][_0x164a('0x1a')](_0x685c9f);this[_0x164a('0x15')](_0x582e60['focusableElements'],_0x164a('0x1a'),(_0x3b997c,_0x53ee97)=>{this[_0x164a('0x1b')]['add'](_0x53ee97);}),this[_0x164a('0x15')](_0x582e60['focusableElements'],_0x164a('0x5'),(_0x40ea97,_0x49bc0a)=>{this[_0x164a('0x1b')][_0x164a('0x5')](_0x49bc0a);}),this['listenTo'](_0x582e60[_0x164a('0xe')]['focusTracker'],_0x164a('0x10'),(_0x127b96,_0x21befb,_0x59c619)=>{_0x59c619&&this[_0x164a('0x16')](_0x164a('0xb'),_0x582e60);}),_0x582e60[_0x164a('0x14')]();const _0x5c6d62=this[_0x164a('0xa')](_0x582e60['view']['targetRect']);return super[_0x164a('0x1a')](_0x582e60,_0x5c6d62);}[_0x164a('0x5')](_0x44f48f){if(!this['has'](_0x44f48f))throw new _0x9caa4b('annotationcollection-not-existing-item',null);this[_0x164a('0x18')](_0x44f48f[_0x164a('0xe')][_0x164a('0x4')]),this[_0x164a('0x18')](_0x44f48f[_0x164a('0x1')]);for(const _0x553152 of _0x44f48f[_0x164a('0x1')])this[_0x164a('0x1b')]['remove'](_0x553152);return this[_0x164a('0x8')][_0x164a('0x6')](_0x44f48f['view']),this[_0x164a('0x0')][_0x164a('0x6')](_0x44f48f['innerView']),super[_0x164a('0x5')](_0x44f48f);}[_0x164a('0x7')](_0x3f8764){return this[_0x164a('0x0')][_0x164a('0x9')](_0x3f8764);}['getByView'](_0x325a8c){return this[_0x164a('0x8')]['get'](_0x325a8c);}[_0x164a('0xd')](){super['clear'](),this['stopListening'](),this[_0x164a('0x0')]['clear'](),this[_0x164a('0x8')][_0x164a('0x2')](),this[_0x164a('0x1b')][_0x164a('0xd')]();}['refreshPositioning'](){for(const _0x100e47 of this)_0x100e47[_0x164a('0x14')]();this[_0x164a('0x1e')]();}['_sort'](){const _0x11e45a=Array[_0x164a('0x1d')](this)[_0x164a('0x17')]((_0x253c7f,_0x5c7c3c)=>v(_0x253c7f['view']['targetRect'],_0x5c7c3c['view'][_0x164a('0xc')]));for(let _0x1a097c=_0x11e45a['length']-0x1;_0x1a097c>0x0;_0x1a097c--){const _0x5061ca=_0x11e45a[_0x1a097c];_0x1a097c!==this['getIndex'](_0x5061ca)&&(this[_0x164a('0x5')](_0x5061ca),this[_0x164a('0x1a')](_0x5061ca));}}[_0x164a('0xa')](_0x10f135){let _0x5b09dc=0x0;if(!_0x10f135)return this[_0x164a('0xf')];for(const _0x111575 of this){const _0x581b2d=_0x111575[_0x164a('0xe')][_0x164a('0xc')];if(_0x581b2d){if(v(_0x10f135,_0x581b2d)<0x0)return _0x5b09dc;_0x5b09dc++;}}return _0x5b09dc;}}export function bindAnnotationCollections({source:_0x27ff5c,target:_0x2a6325,filter:_0x4d6133}){for(const _0xe1ba1a of _0x27ff5c)_0x4d6133(_0xe1ba1a)&&_0x2a6325[_0x164a('0x1a')](_0xe1ba1a);_0x2a6325[_0x164a('0x15')](_0x27ff5c,'add',(_0x130d0c,_0x140d33)=>{_0x4d6133(_0x140d33)&&_0x2a6325[_0x164a('0x1a')](_0x140d33);}),_0x2a6325[_0x164a('0x15')](_0x27ff5c,_0x164a('0x5'),(_0x3da1ea,_0x3b4afc)=>{_0x2a6325[_0x164a('0x1c')](_0x3b4afc)&&_0x2a6325[_0x164a('0x5')](_0x3b4afc);});}function v(_0x5cbe81,_0x2cca1d){if(null===_0x5cbe81&&null===_0x2cca1d)return 0x0;if(null===_0x5cbe81)return-0x1;if(null===_0x2cca1d)return 0x1;const _0x1bfd17=_0x5cbe81[_0x164a('0x3')]-_0x2cca1d[_0x164a('0x3')];return 0x0==_0x1bfd17?_0x5cbe81[_0x164a('0x13')]-_0x2cca1d[_0x164a('0x13')]:_0x1bfd17;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf161=['element','Annotations','activeAnnotations','listenTo','_activateAnnotation','_addActiveAnnotation','deactivateAll','focusTracker','refreshVisibility','fire','_visibleAnnotations','remove','stopListening','collection','view','set','destroy','getByInnerView','_bindAnnotationsToVisibleAnnotations','refreshPositioning','has','pluginName','_removeActiveAnnotation','activate','add','createAnnotation','isVisible'];(function(_0x3dd5b0,_0xf161be){const _0x3cf65a=function(_0x24bb4c){while(--_0x24bb4c){_0x3dd5b0['push'](_0x3dd5b0['shift']());}};_0x3cf65a(++_0xf161be);}(_0xf161,0x167));const _0x3cf6=function(_0x3dd5b0,_0xf161be){_0x3dd5b0=_0x3dd5b0-0x0;let _0x3cf65a=_0xf161[_0x3dd5b0];return _0x3cf65a;};import{ContextPlugin as _0x158e19}from'ckeditor5/src/core';import _0x4c6150 from'./annotation';import _0x431a42 from'./annotationcollection';import _0x45d554 from'./view/annotationview';export default class b extends _0x158e19{static get[_0x3cf6('0xd')](){return _0x3cf6('0x14');}constructor(_0x39c796){super(_0x39c796),this[_0x3cf6('0x5')]=new _0x431a42(),this['_visibleAnnotations']=new _0x431a42(),this[_0x3cf6('0x7')](_0x3cf6('0x15'),new Set()),this[_0x3cf6('0xa')]();}[_0x3cf6('0x10')](_0x578ae4){this[_0x3cf6('0x5')][_0x3cf6('0x10')](_0x578ae4);}['remove'](_0x11b69e){this[_0x3cf6('0x5')][_0x3cf6('0x3')](_0x11b69e),_0x11b69e['destroy']();}[_0x3cf6('0x0')](){for(const _0x31db59 of this[_0x3cf6('0x5')])_0x31db59['refreshVisibility']();}[_0x3cf6('0xb')](){this[_0x3cf6('0x2')][_0x3cf6('0xb')]();}[_0x3cf6('0x9')](_0x5e6fe7){return this[_0x3cf6('0x5')][_0x3cf6('0x9')](_0x5e6fe7);}[_0x3cf6('0x19')](){this[_0x3cf6('0x1')]('_deactivateAllAnnotations');}[_0x3cf6('0x8')](){for(const _0x3302ce of this[_0x3cf6('0x5')])_0x3302ce['destroy']();this[_0x3cf6('0x2')][_0x3cf6('0x8')](),this[_0x3cf6('0x5')][_0x3cf6('0x8')](),super[_0x3cf6('0x8')]();}[_0x3cf6('0xf')](_0x59bbeb){this[_0x3cf6('0x1')](_0x3cf6('0x17'),_0x59bbeb);}[_0x3cf6('0x11')](_0x70c1f){return new _0x4c6150(_0x70c1f);}['createAnnotationView'](_0x46ed61,_0x464222){return new _0x45d554(_0x46ed61,_0x464222);}[_0x3cf6('0x18')](_0x546a79){const _0x41704e=new Set(this[_0x3cf6('0x15')]);_0x41704e[_0x3cf6('0x10')](_0x546a79),this[_0x3cf6('0x15')]=_0x41704e;}[_0x3cf6('0xe')](_0x15086d){const _0x12332b=new Set(this[_0x3cf6('0x15')]);_0x12332b['delete'](_0x15086d),this['activeAnnotations']=_0x12332b;}[_0x3cf6('0xa')](){const _0x2cd14d=this[_0x3cf6('0x5')],_0x45cb57=this[_0x3cf6('0x2')];function _0x456b28(_0x4e6a2c){const _0x18b24f=_0x4e6a2c['source'];_0x18b24f[_0x3cf6('0x12')]&&!_0x45cb57[_0x3cf6('0xc')](_0x18b24f)?_0x45cb57['add'](_0x18b24f):!_0x18b24f[_0x3cf6('0x12')]&&_0x45cb57['has'](_0x18b24f)&&_0x45cb57[_0x3cf6('0x3')](_0x18b24f),_0x18b24f[_0x3cf6('0x6')][_0x3cf6('0x1a')][_0x3cf6('0x3')](_0x18b24f[_0x3cf6('0x6')][_0x3cf6('0x13')]),_0x18b24f[_0x3cf6('0x6')][_0x3cf6('0x1a')][_0x3cf6('0x10')](_0x18b24f[_0x3cf6('0x6')][_0x3cf6('0x13')]);}this['listenTo'](_0x2cd14d,_0x3cf6('0x10'),(_0xe15640,_0x2669be)=>{_0x2669be[_0x3cf6('0x12')]&&_0x45cb57[_0x3cf6('0x10')](_0x2669be),this[_0x3cf6('0x16')](_0x2669be,'change:isVisible',_0x456b28);}),this[_0x3cf6('0x16')](_0x2cd14d,'remove',(_0x2ee539,_0x4f59e9)=>{_0x45cb57[_0x3cf6('0xc')](_0x4f59e9)&&_0x45cb57[_0x3cf6('0x3')](_0x4f59e9),this[_0x3cf6('0x4')](_0x4f59e9,'change:isVisible',_0x456b28);});}}
23
+ const _0x59c6=['fire','change:isVisible','deactivateAll','listenTo','set','_visibleAnnotations','destroy','Annotations','has','isVisible','element','collection','activate','remove','stopListening','refreshVisibility','activeAnnotations','pluginName','view','_deactivateAllAnnotations','_removeActiveAnnotation','delete','add','_activateAnnotation','createAnnotation','createAnnotationView','source','focusTracker','getByInnerView','refreshPositioning','_bindAnnotationsToVisibleAnnotations'];(function(_0x46d3b1,_0x59c68b){const _0x114623=function(_0x365361){while(--_0x365361){_0x46d3b1['push'](_0x46d3b1['shift']());}};_0x114623(++_0x59c68b);}(_0x59c6,0x18d));const _0x1146=function(_0x46d3b1,_0x59c68b){_0x46d3b1=_0x46d3b1-0x0;let _0x114623=_0x59c6[_0x46d3b1];return _0x114623;};import{ContextPlugin as _0x16d9bb}from'ckeditor5/src/core';import _0x2d0141 from'./annotation';import _0x4b840e from'./annotationcollection';import _0x1003a2 from'./view/annotationview';export default class b extends _0x16d9bb{static get[_0x1146('0x17')](){return _0x1146('0xd');}constructor(_0x2db8e2){super(_0x2db8e2),this[_0x1146('0x11')]=new _0x4b840e(),this[_0x1146('0xb')]=new _0x4b840e(),this[_0x1146('0xa')](_0x1146('0x16'),new Set()),this[_0x1146('0x5')]();}[_0x1146('0x1c')](_0x44bd26){this['collection'][_0x1146('0x1c')](_0x44bd26);}['remove'](_0x47cdc6){this[_0x1146('0x11')][_0x1146('0x13')](_0x47cdc6),_0x47cdc6['destroy']();}[_0x1146('0x15')](){for(const _0x39da65 of this['collection'])_0x39da65[_0x1146('0x15')]();}[_0x1146('0x4')](){this['_visibleAnnotations'][_0x1146('0x4')]();}[_0x1146('0x3')](_0x56b833){return this['collection'][_0x1146('0x3')](_0x56b833);}[_0x1146('0x8')](){this[_0x1146('0x6')](_0x1146('0x19'));}[_0x1146('0xc')](){for(const _0x1161f0 of this['collection'])_0x1161f0[_0x1146('0xc')]();this['_visibleAnnotations'][_0x1146('0xc')](),this[_0x1146('0x11')][_0x1146('0xc')](),super[_0x1146('0xc')]();}[_0x1146('0x12')](_0x56b23e){this['fire'](_0x1146('0x1d'),_0x56b23e);}[_0x1146('0x1e')](_0xa1c90){return new _0x2d0141(_0xa1c90);}[_0x1146('0x0')](_0x2e2100,_0x140ed3){return new _0x1003a2(_0x2e2100,_0x140ed3);}['_addActiveAnnotation'](_0xd306b9){const _0xc67716=new Set(this[_0x1146('0x16')]);_0xc67716['add'](_0xd306b9),this[_0x1146('0x16')]=_0xc67716;}[_0x1146('0x1a')](_0x51ca74){const _0x2621d0=new Set(this[_0x1146('0x16')]);_0x2621d0[_0x1146('0x1b')](_0x51ca74),this[_0x1146('0x16')]=_0x2621d0;}[_0x1146('0x5')](){const _0x63d327=this['collection'],_0xc150aa=this['_visibleAnnotations'];function _0x4b9d94(_0x23742f){const _0x1ff7bb=_0x23742f[_0x1146('0x1')];_0x1ff7bb['isVisible']&&!_0xc150aa[_0x1146('0xe')](_0x1ff7bb)?_0xc150aa['add'](_0x1ff7bb):!_0x1ff7bb[_0x1146('0xf')]&&_0xc150aa[_0x1146('0xe')](_0x1ff7bb)&&_0xc150aa['remove'](_0x1ff7bb),_0x1ff7bb[_0x1146('0x18')]['focusTracker'][_0x1146('0x13')](_0x1ff7bb[_0x1146('0x18')]['element']),_0x1ff7bb[_0x1146('0x18')][_0x1146('0x2')][_0x1146('0x1c')](_0x1ff7bb[_0x1146('0x18')][_0x1146('0x10')]);}this[_0x1146('0x9')](_0x63d327,'add',(_0x940e58,_0x5de75d)=>{_0x5de75d[_0x1146('0xf')]&&_0xc150aa[_0x1146('0x1c')](_0x5de75d),this['listenTo'](_0x5de75d,_0x1146('0x7'),_0x4b9d94);}),this[_0x1146('0x9')](_0x63d327,_0x1146('0x13'),(_0x6dfc67,_0x34f0bc)=>{_0xc150aa[_0x1146('0xe')](_0x34f0bc)&&_0xc150aa[_0x1146('0x13')](_0x34f0bc),this[_0x1146('0x14')](_0x34f0bc,'change:isVisible',_0x4b9d94);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2323=['isActive','has','listenTo','type','delete','_uis','activeAnnotations','push','change:activeAnnotation','add','plugins','register','annotationsuis-annotation-mismatch','detach','attach','filter','AnnotationsUIs','pluginName','hasActive','find','_setSelectedAnnotations','refilterAnnotations','deactivateAll','destroy','requires','_visibleAnnotations','function','_uisData','_activateAnnotation','_deactivateAllAnnotations','from','size','setActiveAnnotation','annotationsuis-register-invalid-interface','get','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-missing-ui','deactivate','activeUIs','collection','context','set','_addActiveAnnotation','activate','_removeActiveAnnotation'];(function(_0x2aff70,_0x23230e){const _0x43407c=function(_0x4190a8){while(--_0x4190a8){_0x2aff70['push'](_0x2aff70['shift']());}};_0x43407c(++_0x23230e);}(_0x2323,0x118));const _0x4340=function(_0x2aff70,_0x23230e){_0x2aff70=_0x2aff70-0x0;let _0x43407c=_0x2323[_0x2aff70];return _0x43407c;};import{ContextPlugin as _0x254dac}from'ckeditor5/src/core';import{CKEditorError as _0x5a092c}from'ckeditor5/src/utils';import _0x419588,{bindAnnotationCollections as _0xf42915}from'./annotationcollection';import _0x12d3d6 from'./annotations';export default class M extends _0x254dac{static get[_0x4340('0xe')](){return[_0x12d3d6];}static get[_0x4340('0x7')](){return _0x4340('0x6');}constructor(_0xc12eb9){super(_0xc12eb9),this[_0x4340('0x1c')]=new Set(),this[_0x4340('0x28')]=new Map(),this[_0x4340('0x11')]=new Map();}['init'](){const _0x511980=this[_0x4340('0x1e')][_0x4340('0x0')][_0x4340('0x18')](_0x12d3d6);this[_0x4340('0x25')](_0x511980,_0x4340('0x12'),(_0x2e6d07,_0x3bed51)=>{for(const _0x48463b of this[_0x4340('0x1c')]){const _0x17a334=this['_uis'][_0x4340('0x18')](_0x48463b);(0x0,this[_0x4340('0x11')]['get'](_0x48463b)[_0x4340('0x5')])(_0x3bed51)&&_0x17a334['setActiveAnnotation'](_0x3bed51);}}),this[_0x4340('0x25')](_0x511980,_0x4340('0x13'),()=>{for(const _0x22b698 of this[_0x4340('0x1c')]){this[_0x4340('0x28')][_0x4340('0x18')](_0x22b698)[_0x4340('0x16')](null);}}),this[_0x4340('0x25')](_0x511980[_0x4340('0xf')],_0x4340('0x2c'),(_0x56f445,_0x4105f9)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4105f9);});}[_0x4340('0x8')](){return this['activeUIs'][_0x4340('0x15')]>0x0;}[_0x4340('0x23')](_0x51cc55){return this[_0x4340('0x1c')][_0x4340('0x24')](_0x51cc55);}[_0x4340('0x21')](_0x49f0b3,_0x19dfb0=()=>!0x0){const _0x527581=this['context'][_0x4340('0x0')][_0x4340('0x18')](_0x12d3d6);if(!this[_0x4340('0x28')][_0x4340('0x24')](_0x49f0b3))throw new _0x5a092c(_0x4340('0x1a'),this,{'uiName':_0x49f0b3});this[_0x4340('0x23')](_0x49f0b3)&&this[_0x4340('0x1b')](_0x49f0b3),this[_0x4340('0x1c')][_0x4340('0x2c')](_0x49f0b3);const _0x4ba9da=new _0x419588(),_0x551eef=_0x527581['_visibleAnnotations'];_0xf42915({'source':_0x551eef,'target':_0x4ba9da,'filter':_0x19dfb0}),this[_0x4340('0x11')][_0x4340('0x1f')](_0x49f0b3,{'collection':_0x4ba9da,'filter':_0x19dfb0});const _0x1bbba5=this[_0x4340('0x28')][_0x4340('0x18')](_0x49f0b3);_0x1bbba5[_0x4340('0x4')](_0x4ba9da),this[_0x4340('0x25')](_0x1bbba5,_0x4340('0x2b'),(_0x19f220,_0x7fefe4,_0x33d46e,_0x1d8dcf)=>{_0x1d8dcf&&_0x527581[_0x4340('0x22')](_0x1d8dcf),_0x33d46e&&_0x527581[_0x4340('0x20')](_0x33d46e);});}[_0x4340('0x1b')](_0x12151f){if(this['activeUIs'][_0x4340('0x27')](_0x12151f),!this['_uis']['has'](_0x12151f))throw new _0x5a092c(_0x4340('0x1a'),this,{'uiName':_0x12151f});const _0x7d512e=this[_0x4340('0x28')][_0x4340('0x18')](_0x12151f);_0x7d512e[_0x4340('0x3')](),this['stopListening'](_0x7d512e),this[_0x4340('0x11')][_0x4340('0x18')](_0x12151f)[_0x4340('0x1d')][_0x4340('0xd')](),this[_0x4340('0x11')][_0x4340('0x27')](_0x12151f);}['switchTo'](_0x515b0b){if(!this[_0x4340('0x28')]['has'](_0x515b0b))throw new _0x5a092c(_0x4340('0x1a'),this,{'uiName':_0x515b0b});const _0x1fef19=this[_0x4340('0x1e')][_0x4340('0x0')][_0x4340('0x18')](_0x12d3d6),_0x14b8c4=Array[_0x4340('0x14')](_0x1fef19[_0x4340('0x29')])[0x0]||null;this['deactivateAll'](),this[_0x4340('0x21')](_0x515b0b);const _0x33128f=this[_0x4340('0x28')][_0x4340('0x18')](_0x515b0b);_0x33128f[_0x4340('0x16')](_0x14b8c4),_0x33128f[_0x4340('0xa')]&&_0x14b8c4&&_0x33128f[_0x4340('0xa')]([_0x14b8c4]);}[_0x4340('0xc')](){for(const _0x2ed7a2 of this[_0x4340('0x1c')])this[_0x4340('0x1b')](_0x2ed7a2);}[_0x4340('0x1')](_0x1bc0c6,_0x33cfc6){if(this[_0x4340('0x28')][_0x4340('0x24')](_0x1bc0c6))throw new _0x5a092c('annotationsuis-register-already-registered');if(_0x4340('0x10')!=typeof _0x33cfc6[_0x4340('0x4')]||_0x4340('0x10')!=typeof _0x33cfc6[_0x4340('0x3')]||_0x4340('0x10')!=typeof _0x33cfc6[_0x4340('0x16')])throw new _0x5a092c(_0x4340('0x17'),null);this[_0x4340('0x28')][_0x4340('0x1f')](_0x1bc0c6,_0x33cfc6);}[_0x4340('0xb')](){const _0x2d2a21=this['context'][_0x4340('0x0')][_0x4340('0x18')](_0x12d3d6)[_0x4340('0x1d')],_0x37fac6=new Map(),_0x2d5060=Array[_0x4340('0x14')](this[_0x4340('0x1c')]);for(const _0x359b3b of this[_0x4340('0x1c')]){const _0x1f8d6d=this[_0x4340('0x11')][_0x4340('0x18')](_0x359b3b)[_0x4340('0x1d')];for(const _0x2db51c of _0x1f8d6d)_0x37fac6[_0x4340('0x1f')](_0x2db51c,_0x359b3b);}for(const _0x15fd4e of _0x2d2a21){const _0x1c83e6=_0x37fac6[_0x4340('0x18')](_0x15fd4e);this[_0x4340('0x19')](_0x15fd4e);const _0x4b643a=_0x2d5060[_0x4340('0x9')](_0x4286b1=>this['_uisData'][_0x4340('0x18')](_0x4286b1)[_0x4340('0x5')](_0x15fd4e));_0x1c83e6!==_0x4b643a&&(_0x1c83e6&&this['_uisData'][_0x4340('0x18')](_0x1c83e6)[_0x4340('0x1d')]['remove'](_0x15fd4e),_0x4b643a&&this[_0x4340('0x11')][_0x4340('0x18')](_0x4b643a)['collection'][_0x4340('0x2c')](_0x15fd4e));}}[_0x4340('0xd')](){this[_0x4340('0xc')](),super[_0x4340('0xd')]();}[_0x4340('0x19')](_0x90a206){const _0x21e411=[];for(const _0x47ed80 of this[_0x4340('0x1c')]){(0x0,this[_0x4340('0x11')][_0x4340('0x18')](_0x47ed80)[_0x4340('0x5')])(_0x90a206)&&_0x21e411[_0x4340('0x2a')](_0x47ed80);}if(_0x21e411['length']>0x1)throw new _0x5a092c(_0x4340('0x2'),null,{'matchedUIs':_0x21e411,'annotationType':_0x90a206[_0x4340('0x26')]});}}
23
+ const _0x80f0=['length','refilterAnnotations','_setSelectedAnnotations','size','get','_uis','function','filter','activate','listenTo','annotationsuis-missing-ui','_removeActiveAnnotation','collection','_deactivateAllAnnotations','detach','has','_visibleAnnotations','destroy','annotationsuis-annotation-mismatch','set','type','requires','deactivateAll','from','activeUIs','init','stopListening','AnnotationsUIs','pluginName','activeAnnotations','push','delete','annotationsuis-register-already-registered','setActiveAnnotation','_uisData','context','isActive','plugins','change:activeAnnotation','attach','switchTo','add','remove','annotationsuis-register-invalid-interface','register','find','deactivate'];(function(_0x134147,_0x80f07e){const _0x3b0a9d=function(_0x5bcfc7){while(--_0x5bcfc7){_0x134147['push'](_0x134147['shift']());}};_0x3b0a9d(++_0x80f07e);}(_0x80f0,0xb4));const _0x3b0a=function(_0x134147,_0x80f07e){_0x134147=_0x134147-0x0;let _0x3b0a9d=_0x80f0[_0x134147];return _0x3b0a9d;};import{ContextPlugin as _0x4822cb}from'ckeditor5/src/core';import{CKEditorError as _0x4aefaf}from'ckeditor5/src/utils';import _0x4e2c1f,{bindAnnotationCollections as _0x45c02a}from'./annotationcollection';import _0x39455b from'./annotations';export default class M extends _0x4822cb{static get[_0x3b0a('0x1d')](){return[_0x39455b];}static get[_0x3b0a('0x24')](){return _0x3b0a('0x23');}constructor(_0xb99427){super(_0xb99427),this[_0x3b0a('0x20')]=new Set(),this[_0x3b0a('0xd')]=new Map(),this['_uisData']=new Map();}[_0x3b0a('0x21')](){const _0x54d2c9=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')]['get'](_0x39455b);this[_0x3b0a('0x11')](_0x54d2c9,'_activateAnnotation',(_0x119d1a,_0x450523)=>{for(const _0x21df37 of this[_0x3b0a('0x20')]){const _0x9e8ba0=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x21df37);(0x0,this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x21df37)[_0x3b0a('0xf')])(_0x450523)&&_0x9e8ba0['setActiveAnnotation'](_0x450523);}}),this[_0x3b0a('0x11')](_0x54d2c9,_0x3b0a('0x15'),()=>{for(const _0x124a57 of this[_0x3b0a('0x20')]){this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x124a57)['setActiveAnnotation'](null);}}),this['listenTo'](_0x54d2c9[_0x3b0a('0x18')],'add',(_0x1788dc,_0x30fc89)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x30fc89);});}['hasActive'](){return this[_0x3b0a('0x20')][_0x3b0a('0xb')]>0x0;}[_0x3b0a('0x2c')](_0x4d653b){return this[_0x3b0a('0x20')][_0x3b0a('0x17')](_0x4d653b);}[_0x3b0a('0x10')](_0x52cded,_0x4c15ec=()=>!0x0){const _0x5718bb=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')][_0x3b0a('0xc')](_0x39455b);if(!this['_uis'][_0x3b0a('0x17')](_0x52cded))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x52cded});this[_0x3b0a('0x2c')](_0x52cded)&&this[_0x3b0a('0x7')](_0x52cded),this[_0x3b0a('0x20')][_0x3b0a('0x2')](_0x52cded);const _0x12a4cd=new _0x4e2c1f(),_0x2b11b7=_0x5718bb['_visibleAnnotations'];_0x45c02a({'source':_0x2b11b7,'target':_0x12a4cd,'filter':_0x4c15ec}),this['_uisData'][_0x3b0a('0x1b')](_0x52cded,{'collection':_0x12a4cd,'filter':_0x4c15ec});const _0x4c4410=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x52cded);_0x4c4410[_0x3b0a('0x0')](_0x12a4cd),this[_0x3b0a('0x11')](_0x4c4410,_0x3b0a('0x2e'),(_0x433ac2,_0x432f1c,_0x9bc941,_0x221f88)=>{_0x221f88&&_0x5718bb[_0x3b0a('0x13')](_0x221f88),_0x9bc941&&_0x5718bb['_addActiveAnnotation'](_0x9bc941);});}[_0x3b0a('0x7')](_0x2ac350){if(this[_0x3b0a('0x20')][_0x3b0a('0x27')](_0x2ac350),!this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x2ac350))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x2ac350});const _0x3cc862=this[_0x3b0a('0xd')]['get'](_0x2ac350);_0x3cc862[_0x3b0a('0x16')](),this[_0x3b0a('0x22')](_0x3cc862),this['_uisData']['get'](_0x2ac350)[_0x3b0a('0x14')][_0x3b0a('0x19')](),this[_0x3b0a('0x2a')][_0x3b0a('0x27')](_0x2ac350);}[_0x3b0a('0x1')](_0x53a110){if(!this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x53a110))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x53a110});const _0x2aa981=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')]['get'](_0x39455b),_0x5581ac=Array[_0x3b0a('0x1f')](_0x2aa981[_0x3b0a('0x25')])[0x0]||null;this[_0x3b0a('0x1e')](),this[_0x3b0a('0x10')](_0x53a110);const _0x3118ff=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x53a110);_0x3118ff[_0x3b0a('0x29')](_0x5581ac),_0x3118ff[_0x3b0a('0xa')]&&_0x5581ac&&_0x3118ff[_0x3b0a('0xa')]([_0x5581ac]);}[_0x3b0a('0x1e')](){for(const _0x4e4c7e of this[_0x3b0a('0x20')])this['deactivate'](_0x4e4c7e);}[_0x3b0a('0x5')](_0x495c6e,_0x1b7d3e){if(this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x495c6e))throw new _0x4aefaf(_0x3b0a('0x28'));if(_0x3b0a('0xe')!=typeof _0x1b7d3e['attach']||_0x3b0a('0xe')!=typeof _0x1b7d3e[_0x3b0a('0x16')]||'function'!=typeof _0x1b7d3e['setActiveAnnotation'])throw new _0x4aefaf(_0x3b0a('0x4'),null);this[_0x3b0a('0xd')][_0x3b0a('0x1b')](_0x495c6e,_0x1b7d3e);}[_0x3b0a('0x9')](){const _0x336762=this[_0x3b0a('0x2b')]['plugins'][_0x3b0a('0xc')](_0x39455b)['collection'],_0x308004=new Map(),_0x5928f5=Array[_0x3b0a('0x1f')](this[_0x3b0a('0x20')]);for(const _0x124fa8 of this['activeUIs']){const _0x4c43b6=this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x124fa8)['collection'];for(const _0x5a7496 of _0x4c43b6)_0x308004['set'](_0x5a7496,_0x124fa8);}for(const _0x1e1b5b of _0x336762){const _0xa061fc=_0x308004[_0x3b0a('0xc')](_0x1e1b5b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1e1b5b);const _0x373129=_0x5928f5[_0x3b0a('0x6')](_0x130b01=>this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x130b01)[_0x3b0a('0xf')](_0x1e1b5b));_0xa061fc!==_0x373129&&(_0xa061fc&&this['_uisData'][_0x3b0a('0xc')](_0xa061fc)[_0x3b0a('0x14')][_0x3b0a('0x3')](_0x1e1b5b),_0x373129&&this[_0x3b0a('0x2a')]['get'](_0x373129)[_0x3b0a('0x14')][_0x3b0a('0x2')](_0x1e1b5b));}}[_0x3b0a('0x19')](){this[_0x3b0a('0x1e')](),super[_0x3b0a('0x19')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3047e5){const _0x5abb6a=[];for(const _0x480f93 of this[_0x3b0a('0x20')]){(0x0,this[_0x3b0a('0x2a')]['get'](_0x480f93)[_0x3b0a('0xf')])(_0x3047e5)&&_0x5abb6a[_0x3b0a('0x26')](_0x480f93);}if(_0x5abb6a[_0x3b0a('0x8')]>0x1)throw new _0x4aefaf(_0x3b0a('0x1a'),null,{'matchedUIs':_0x5abb6a,'annotationType':_0x3047e5[_0x3b0a('0x1c')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25b9=['innerView','containsRange','getRanges','pluginName','blur','_dataCollectors','get','requires','plugins','function','element','isCollapsed','refreshSelectedViews','directChange','change:isFocused','getByInnerView','hasDomSelection','sort','delete','has','editorannotations-invalid-source-callback','selection','isReadOnly','range','_editorAnnotations','_editorAnnotationsData','addSourceCollector','cancel','model','getOrderedSelectedAnnotations','uiUpdate','annotation','fire','collection','document','add','set','editor','isEqual','remove','view','focusTracker','EditorAnnotations','push','change:range','listenTo','refresh','editing'];(function(_0x234f5a,_0x25b9a2){const _0x579174=function(_0x3f6142){while(--_0x3f6142){_0x234f5a['push'](_0x234f5a['shift']());}};_0x579174(++_0x25b9a2);}(_0x25b9,0x6d));const _0x5791=function(_0x234f5a,_0x25b9a2){_0x234f5a=_0x234f5a-0x0;let _0x579174=_0x25b9[_0x234f5a];return _0x579174;};import{Plugin as _0x39b10c}from'ckeditor5/src/core';import{CKEditorError as _0x305c48}from'ckeditor5/src/utils';import{debounce as _0x7d8382}from'lodash-es';import _0xbd5e49 from'./annotations';export default class k extends _0x39b10c{static get[_0x5791('0x2a')](){return[_0xbd5e49];}static get[_0x5791('0x26')](){return _0x5791('0x1d');}constructor(_0x491f4c){super(_0x491f4c),this[_0x5791('0x28')]=new Set(),this[_0x5791('0xb')]=new Set();}['init'](){const _0x5a3c8b=this[_0x5791('0x18')],_0x5239f3=_0x5a3c8b[_0x5791('0xf')]['document'][_0x5791('0x8')],_0x3ef695=_0x7d8382(()=>this['refreshSelectedViews'](),0xa);_0x5239f3['on'](_0x5791('0x1f'),(_0x51848b,_0x4d6a94)=>{_0x4d6a94[_0x5791('0x0')]&&(_0x3ef695[_0x5791('0xe')](),this[_0x5791('0x2f')]());}),this[_0x5791('0x20')](_0x5a3c8b['editing'][_0x5791('0x1b')][_0x5791('0x15')],_0x5791('0x1'),(_0x224d87,_0x2ab709,_0x5ac220)=>{_0x5ac220&&_0x3ef695();}),this['listenTo'](_0x5a3c8b['ui'][_0x5791('0x1c')],_0x5791('0x1'),(_0x7f6aad,_0x70f8a3,_0x4fd589)=>{_0x4fd589||_0x5a3c8b[_0x5791('0x9')]||this[_0x5791('0x13')](_0x5791('0x27'),{'isAnnotationTracked':_0x47feba=>this['_editorAnnotationsData']['has'](_0x47feba[_0x5791('0x23')])});}),this['listenTo'](this['editor']['ui'],'update',()=>this[_0x5791('0x13')](_0x5791('0x11')));}['registerAnnotation'](_0x1734fb){if(this['_editorAnnotations'][_0x5791('0x6')](_0x1734fb[_0x5791('0x1b')]))return;this[_0x5791('0xb')]['add'](_0x1734fb[_0x5791('0x1b')]),this[_0x5791('0x18')]['ui'][_0x5791('0x1c')][_0x5791('0x16')](_0x1734fb[_0x5791('0x1b')][_0x5791('0x2d')]);const _0x24b80b=this['editor'][_0x5791('0x2b')][_0x5791('0x29')](_0xbd5e49);this['listenTo'](_0x24b80b[_0x5791('0x14')],_0x5791('0x1a'),(_0x52e4f7,_0x57e734)=>{this['editor']['ui'][_0x5791('0x1c')][_0x5791('0x1a')](_0x57e734['view'][_0x5791('0x2d')]),this[_0x5791('0xb')][_0x5791('0x5')](_0x57e734[_0x5791('0x1b')]);});}[_0x5791('0x3')](){return this[_0x5791('0x18')][_0x5791('0x22')][_0x5791('0x1b')][_0x5791('0x3')];}[_0x5791('0xd')](_0x39a092){if(_0x5791('0x2c')!=typeof _0x39a092)throw new _0x305c48(_0x5791('0x7'));this['_dataCollectors'][_0x5791('0x16')](_0x39a092);}[_0x5791('0x2f')](){this[_0x5791('0x13')](_0x5791('0x21'));}[_0x5791('0x10')]({activeAnnotation:_0x1f194f,annotations:_0xefbc29}){const _0x22b684=[],_0x424b83=this[_0x5791('0x18')][_0x5791('0xf')][_0x5791('0x15')][_0x5791('0x8')],_0xa274ff=Array['from'](_0x424b83[_0x5791('0x25')]());for(const [_0x2f8d1b,_0xfc93e3]of this[_0x5791('0xc')]){const _0x422e77=_0x4913d9(_0xfc93e3),_0xc8ac62=_0xefbc29[_0x5791('0x2')](_0x2f8d1b);_0x422e77&&_0xc8ac62&&_0x22b684[_0x5791('0x1e')]({'annotation':_0xc8ac62,'range':_0x422e77});}function _0x4913d9(_0x44cbd7){for(const _0x5dedf5 of _0x44cbd7)for(const _0x337dfa of _0xa274ff)if(_0x5dedf5['containsRange'](_0x337dfa,!_0x424b83[_0x5791('0x2e')]))return _0x5dedf5;return null;}return _0x22b684[_0x5791('0x4')]((_0x418ce4,_0x18e9ef)=>{const _0x41040d=_0x418ce4[_0x5791('0xa')],_0x209cde=_0x18e9ef[_0x5791('0xa')];if(!_0x41040d[_0x5791('0x19')](_0x209cde)){if(_0x41040d['containsRange'](_0x209cde,!0x0))return 0x1;if(_0x209cde[_0x5791('0x24')](_0x41040d,!0x0))return-0x1;}return _0x418ce4['annotation']==_0x1f194f?-0x1:_0x18e9ef['annotation']==_0x1f194f?0x1:0x0;})['map'](_0x1b20ac=>_0x1b20ac[_0x5791('0x12')]);}get[_0x5791('0xc')](){const _0x54b0f2=new Map();for(const _0x2c08ec of Array['from'](this['_dataCollectors']))for(const [_0x4eaf47,_0x311a48]of _0x2c08ec())_0x54b0f2[_0x5791('0x17')](_0x4eaf47,_0x311a48);return _0x54b0f2;}}
23
+ const _0x2dfd=['document','requires','isCollapsed','isReadOnly','map','fire','hasDomSelection','getRanges','listenTo','view','change:range','innerView','EditorAnnotations','init','_editorAnnotationsData','pluginName','update','function','get','selection','directChange','focusTracker','from','change:isFocused','refresh','element','getByInnerView','model','_dataCollectors','editorannotations-invalid-source-callback','has','refreshSelectedViews','editing','add','blur','collection','range','uiUpdate','remove','_editorAnnotations','sort','addSourceCollector','annotation','containsRange','push','editor'];(function(_0x1517cb,_0x2dfdc0){const _0x343de0=function(_0x57f780){while(--_0x57f780){_0x1517cb['push'](_0x1517cb['shift']());}};_0x343de0(++_0x2dfdc0);}(_0x2dfd,0xbc));const _0x343d=function(_0x1517cb,_0x2dfdc0){_0x1517cb=_0x1517cb-0x0;let _0x343de0=_0x2dfd[_0x1517cb];return _0x343de0;};import{Plugin as _0x1c12ad}from'ckeditor5/src/core';import{CKEditorError as _0xe4a609}from'ckeditor5/src/utils';import{debounce as _0x187aa4}from'lodash-es';import _0x21b9bd from'./annotations';export default class k extends _0x1c12ad{static get[_0x343d('0x2b')](){return[_0x21b9bd];}static get[_0x343d('0xb')](){return _0x343d('0x8');}constructor(_0x5eaf71){super(_0x5eaf71),this[_0x343d('0x18')]=new Set(),this[_0x343d('0x23')]=new Set();}[_0x343d('0x9')](){const _0xf5baca=this['editor'],_0x3c2a87=_0xf5baca['model']['document']['selection'],_0x2bc768=_0x187aa4(()=>this[_0x343d('0x1b')](),0xa);_0x3c2a87['on'](_0x343d('0x6'),(_0x31ffb5,_0x614937)=>{_0x614937[_0x343d('0x10')]&&(_0x2bc768['cancel'](),this[_0x343d('0x1b')]());}),this[_0x343d('0x4')](_0xf5baca[_0x343d('0x1c')][_0x343d('0x5')][_0x343d('0x2a')],_0x343d('0x13'),(_0x21fa32,_0x2870a7,_0x155291)=>{_0x155291&&_0x2bc768();}),this[_0x343d('0x4')](_0xf5baca['ui']['focusTracker'],'change:isFocused',(_0x2eca52,_0x501887,_0x296880)=>{_0x296880||_0xf5baca[_0x343d('0x2d')]||this['fire'](_0x343d('0x1e'),{'isAnnotationTracked':_0x668d7d=>this[_0x343d('0xa')]['has'](_0x668d7d[_0x343d('0x7')])});}),this['listenTo'](this[_0x343d('0x29')]['ui'],_0x343d('0xc'),()=>this[_0x343d('0x1')](_0x343d('0x21')));}['registerAnnotation'](_0x22e173){if(this[_0x343d('0x23')][_0x343d('0x1a')](_0x22e173[_0x343d('0x5')]))return;this[_0x343d('0x23')][_0x343d('0x1d')](_0x22e173[_0x343d('0x5')]),this[_0x343d('0x29')]['ui']['focusTracker'][_0x343d('0x1d')](_0x22e173['view'][_0x343d('0x15')]);const _0xae3716=this[_0x343d('0x29')]['plugins'][_0x343d('0xe')](_0x21b9bd);this[_0x343d('0x4')](_0xae3716[_0x343d('0x1f')],_0x343d('0x22'),(_0x1d7f26,_0x25a8ef)=>{this[_0x343d('0x29')]['ui'][_0x343d('0x11')][_0x343d('0x22')](_0x25a8ef[_0x343d('0x5')][_0x343d('0x15')]),this[_0x343d('0x23')]['delete'](_0x25a8ef[_0x343d('0x5')]);});}[_0x343d('0x2')](){return this[_0x343d('0x29')]['editing'][_0x343d('0x5')][_0x343d('0x2')];}[_0x343d('0x25')](_0x26ca5a){if(_0x343d('0xd')!=typeof _0x26ca5a)throw new _0xe4a609(_0x343d('0x19'));this[_0x343d('0x18')][_0x343d('0x1d')](_0x26ca5a);}['refreshSelectedViews'](){this[_0x343d('0x1')](_0x343d('0x14'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4df1fc,annotations:_0x3dfe3a}){const _0x1fdab3=[],_0xf04bf2=this['editor'][_0x343d('0x17')]['document'][_0x343d('0xf')],_0x21ffb7=Array[_0x343d('0x12')](_0xf04bf2[_0x343d('0x3')]());for(const [_0x2662b7,_0x4854eb]of this[_0x343d('0xa')]){const _0x97d76d=_0x183953(_0x4854eb),_0x543db1=_0x3dfe3a[_0x343d('0x16')](_0x2662b7);_0x97d76d&&_0x543db1&&_0x1fdab3[_0x343d('0x28')]({'annotation':_0x543db1,'range':_0x97d76d});}function _0x183953(_0x4377a1){for(const _0x3fc1b2 of _0x4377a1)for(const _0xbd13d1 of _0x21ffb7)if(_0x3fc1b2[_0x343d('0x27')](_0xbd13d1,!_0xf04bf2[_0x343d('0x2c')]))return _0x3fc1b2;return null;}return _0x1fdab3[_0x343d('0x24')]((_0x1d39fd,_0x1e2eaf)=>{const _0x420b4a=_0x1d39fd[_0x343d('0x20')],_0x38dea6=_0x1e2eaf[_0x343d('0x20')];if(!_0x420b4a['isEqual'](_0x38dea6)){if(_0x420b4a[_0x343d('0x27')](_0x38dea6,!0x0))return 0x1;if(_0x38dea6[_0x343d('0x27')](_0x420b4a,!0x0))return-0x1;}return _0x1d39fd['annotation']==_0x4df1fc?-0x1:_0x1e2eaf[_0x343d('0x26')]==_0x4df1fc?0x1:0x0;})[_0x343d('0x0')](_0x12db59=>_0x12db59[_0x343d('0x26')]);}get[_0x343d('0xa')](){const _0x49ad7d=new Map();for(const _0x422885 of Array[_0x343d('0x12')](this[_0x343d('0x18')]))for(const [_0x352e6f,_0xb10c2c]of _0x422885())_0x49ad7d['set'](_0x352e6f,_0xb10c2c);return _0x49ad7d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a20=['activeAnnotation','inline','set','init','document','map','editing','inlineannotations-not-allowed-with-context','annotations','addObserver','add','getOrderedSelectedAnnotations','_closeAnnotation','editor','listenTo','view','delete','fromRect','stopListening','Esc','_manuallyClosed','blur','push','setActiveAnnotation','isActive','switchTo','afterInit','_selectedAnnotations','hasView','requires','getClientRects','getFirstRange','visibleView','keystrokes','register','targetRect','updatePosition','selection','detach','_addAnnotationToBalloon','target','_addedAnnotations','change:isFocused','bottom','focus','top','_removeAnnotationFromBalloon','has','focusTracker','_getBalloonTargetForAnnotation','right','get','every','inlineannotations-detach-not-attached','plugins','isAttached','_forceRefresh','context','getBoundingClientRect','from','length','refresh','_setSelectedAnnotations','left','mousedown','width','change:visibleView','change:height','clear','includes','editableElement','isFocused','attach','getByView','showStack','remove','_balloon'];(function(_0x443bf8,_0x5a20a8){const _0x124aa5=function(_0xc06594){while(--_0xc06594){_0x443bf8['push'](_0x443bf8['shift']());}};_0x124aa5(++_0x5a20a8);}(_0x5a20,0x182));const _0x124a=function(_0x443bf8,_0x5a20a8){_0x443bf8=_0x443bf8-0x0;let _0x124aa5=_0x5a20[_0x443bf8];return _0x124aa5;};import{Plugin as _0x9cf465}from'ckeditor5/src/core';import _0x57cce6 from'./annotationsuis';import _0x5c7a61 from'./editorannotations';import{ContextualBalloon as _0x31a5f7}from'ckeditor5/src/ui';import{MouseObserver as _0x45080f}from'ckeditor5/src/engine';import{CKEditorError as _0x57237b,Rect as _0x17e0b9}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x9cf465{static get[_0x124a('0x1c')](){return[_0x5c7a61,_0x31a5f7,_0x57cce6];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x368130){super(_0x368130),_0x368130[_0x124a('0x5')][_0x124a('0xe')][_0x124a('0x8')](_0x45080f),this[_0x124a('0x36')]=!0x1,this[_0x124a('0x1')](_0x124a('0x4c'),null),this[_0x124a('0x7')]=null,this[_0x124a('0x13')]=new Set(),this['_balloon']=_0x368130[_0x124a('0x35')][_0x124a('0x32')](_0x31a5f7),this[_0x124a('0x28')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}[_0x124a('0x2')](){const _0x5a40ac=this['editor'][_0x124a('0x35')]['get'](_0x57cce6);_0x5a40ac[_0x124a('0x38')]===this[_0x124a('0xc')]&&(_0x5a40ac[_0x124a('0x21')](_0x124a('0x0'),this),this[_0x124a('0xc')][_0x124a('0x20')]['set'](_0x124a('0x12'),(_0x29362f,_0x50d51e)=>{const _0x3c15ef=this['_balloon'];if(this[_0x124a('0x36')]&&_0x3c15ef['visibleView']){const _0x450033=this[_0x124a('0x7')]['getByView'](_0x3c15ef[_0x124a('0x1f')]);_0x450033&&this[_0x124a('0xb')](_0x450033),_0x50d51e();}}));}[_0x124a('0x19')](){const _0x15fe10=this[_0x124a('0xc')][_0x124a('0x35')][_0x124a('0x32')](_0x57cce6);_0x15fe10[_0x124a('0x38')]===this[_0x124a('0xc')]&&(_0x15fe10['hasActive']()||_0x15fe10[_0x124a('0x18')](_0x124a('0x0')));}[_0x124a('0x16')](_0x5fa86d){_0x5fa86d!==this[_0x124a('0x4c')]&&(this[_0x124a('0x4c')]&&(this[_0x124a('0x4c')]['isActive']=!0x1),_0x5fa86d&&this['editor']['ui'][_0x124a('0x2f')][_0x124a('0x46')]&&(this['annotations'][_0x124a('0x2e')](_0x5fa86d)&&this[_0x124a('0x26')](_0x5fa86d,!0x0),_0x5fa86d[_0x124a('0x17')]=!0x0),_0x5fa86d||this[_0x124a('0x3d')]([]),this['activeAnnotation']=_0x5fa86d);}[_0x124a('0x47')](_0x4762ad){this[_0x124a('0x7')]=_0x4762ad;const _0x5c08cd=this['editor'][_0x124a('0x35')][_0x124a('0x32')](_0x57cce6),_0x2154d2=this[_0x124a('0x4b')];if(this[_0x124a('0x36')])throw new _0x57237b('inlineannotations-attach-already-attached',this);if(_0x5c08cd['context']!==this['editor'])throw new _0x57237b(_0x124a('0x6'),this);const _0x41ee2a=this[_0x124a('0xc')][_0x124a('0x35')][_0x124a('0x32')](_0x5c7a61);this[_0x124a('0xd')](_0x41ee2a,_0x124a('0x3c'),()=>{const _0x2568e1=_0x41ee2a[_0x124a('0xa')]({'annotations':this[_0x124a('0x7')],'activeAnnotation':this['activeAnnotation']});var _0x4bb326,_0x4b92e7;!this[_0x124a('0x37')]&&(_0x4bb326=_0x2568e1,_0x4b92e7=this[_0x124a('0x1a')],_0x4bb326[_0x124a('0x3b')]===_0x4b92e7[_0x124a('0x3b')]&&_0x4bb326[_0x124a('0x33')](_0x59260d=>_0x4b92e7['includes'](_0x59260d)))||(this[_0x124a('0x37')]=!0x1,this[_0x124a('0x3d')](_0x2568e1),this['setActiveAnnotation'](_0x2568e1[0x0]||null));}),this['listenTo'](_0x41ee2a,_0x124a('0x14'),(_0x1ee191,{isAnnotationTracked:_0x541dd8})=>{this['activeAnnotation']&&_0x541dd8(this['activeAnnotation'])&&(this[_0x124a('0x3d')]([]),this['setActiveAnnotation'](null));}),this[_0x124a('0xd')](this[_0x124a('0xc')]['ui']['focusTracker'],_0x124a('0x29'),(_0x14b739,_0x3baf8d,_0x557d2d)=>{_0x557d2d||this[_0x124a('0x16')](null);}),this[_0x124a('0xd')](_0x4762ad,_0x124a('0x4a'),(_0x492c19,_0x306707)=>{this['_removeAnnotationFromBalloon'](_0x306707),_0x306707===this[_0x124a('0x4c')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2154d2,_0x124a('0x41'),(_0x46edb7,_0x17cd8c,_0xf08f9f,_0x22d04f)=>{_0x22d04f&&this[_0x124a('0x11')](_0x22d04f);const _0x253577=_0x4762ad[_0x124a('0x48')](_0xf08f9f);_0xf08f9f&&_0x253577&&(this[_0x124a('0xd')](_0xf08f9f,_0x124a('0x42'),()=>{_0x2154d2[_0x124a('0x23')]();}),this[_0x124a('0xd')](_0xf08f9f,_0x124a('0x12'),()=>{this[_0x124a('0xb')](_0x253577),this[_0x124a('0xc')][_0x124a('0x5')][_0x124a('0xe')][_0x124a('0x2b')]();}),this[_0x124a('0x4c')]!==_0x253577&&this[_0x124a('0x16')](_0x253577));}),this['listenTo'](this[_0x124a('0xc')]['ui'],'update',()=>{_0x2154d2['visibleView']&&(_0x4762ad['getByView'](_0x2154d2[_0x124a('0x1f')])&&_0x2154d2[_0x124a('0x23')]());}),this[_0x124a('0xd')](this['editor'][_0x124a('0x5')]['view'][_0x124a('0x3')],_0x124a('0x3f'),()=>{this[_0x124a('0x37')]=!0x0,this[_0x124a('0x13')][_0x124a('0x43')]();}),this[_0x124a('0xc')][_0x124a('0x5')]['view'][_0x124a('0x3')][_0x124a('0x24')][_0x124a('0x45')]&&this['editor'][_0x124a('0x5')][_0x124a('0xe')][_0x124a('0x2b')](),this[_0x124a('0x36')]=!0x0;}[_0x124a('0x25')](){if(!this[_0x124a('0x36')])throw new _0x57237b(_0x124a('0x34'),this);this[_0x124a('0x16')](null);for(const _0x2502d6 of this[_0x124a('0x28')])this[_0x124a('0x2d')](_0x2502d6);this[_0x124a('0x11')](),this[_0x124a('0x36')]=!0x1,this[_0x124a('0x7')]=null;}['destroy'](){this['isAttached']&&this['detach']();}[_0x124a('0x3d')](_0x10d0ed){for(const _0x12c94a of this['_selectedAnnotations'])_0x10d0ed[_0x124a('0x44')](_0x12c94a)||this['_manuallyClosed']['delete'](_0x12c94a);for(const _0x1ddccc of this[_0x124a('0x7')])_0x10d0ed[_0x124a('0x44')](_0x1ddccc)||this['_removeAnnotationFromBalloon'](_0x1ddccc);if(this[_0x124a('0xc')]['ui'][_0x124a('0x2f')][_0x124a('0x46')])for(const _0x238132 of _0x10d0ed)this['_addAnnotationToBalloon'](_0x238132);this[_0x124a('0x1a')]=_0x10d0ed;}['_addAnnotationToBalloon'](_0x4aede7,_0x525d3e=!0x1){this['_manuallyClosed'][_0x124a('0x2e')](_0x4aede7)||(this[_0x124a('0x28')][_0x124a('0x2e')](_0x4aede7)||this[_0x124a('0x4b')][_0x124a('0x1b')](_0x4aede7[_0x124a('0xe')])||(this[_0x124a('0x28')][_0x124a('0x9')](_0x4aede7),this[_0x124a('0x4b')][_0x124a('0x9')]({'stackId':_0x4aede7[_0x124a('0xe')]['id'],'view':_0x4aede7['view'],'position':{'target':()=>this[_0x124a('0x30')](_0x4aede7)}})),_0x525d3e&&this[_0x124a('0x4b')][_0x124a('0x49')](_0x4aede7[_0x124a('0xe')]['id']));}[_0x124a('0x30')](_0x1128df){const _0xd541c=_0x1128df[_0x124a('0x27')],_0x17ea08=this[_0x124a('0xc')][_0x124a('0x5')][_0x124a('0xe')],_0x249f38=_0x17ea08[_0x124a('0x3')]['selection'][_0x124a('0x1e')](),_0xc9a91c=_0x17ea08['domConverter']['viewRangeToDom'](_0x249f38);if(_0xc9a91c['collapse'](!0x0),_0xd541c){if(_0xd541c instanceof _0x17e0b9)return _0xd541c;let _0x2240c5=[];for(const _0x4f429e of _0xd541c)_0x2240c5[_0x124a('0x15')](...(_0x2a1215=_0x4f429e[_0x124a('0x1d')](),Array[_0x124a('0x3a')](_0x2a1215)[_0x124a('0x4')](DOMRect[_0x124a('0x10')])));_0x2240c5=function(_0x3d5023){const _0x422f22=[];let _0x2a94ea=_0x3d5023[0x0];for(let _0x57d2b4=0x1;_0x57d2b4<_0x3d5023[_0x124a('0x3b')];_0x57d2b4++)F(_0x2a94ea,_0x3d5023[_0x57d2b4])?_0x2a94ea[_0x124a('0x40')]+=_0x3d5023[_0x57d2b4]['width']:(_0x422f22['push'](_0x2a94ea),_0x2a94ea=_0x3d5023[_0x57d2b4]);return _0x422f22[_0x124a('0x15')](_0x2a94ea),_0x422f22;}(_0x2240c5);const _0x26753e=_0xc9a91c[_0x124a('0x39')]();return _0x2240c5['find'](_0x399831=>_0x399831[_0x124a('0x2c')]<=_0x26753e[_0x124a('0x2c')]&&_0x399831[_0x124a('0x2a')]>=_0x26753e[_0x124a('0x2a')]&&_0x399831['left']<=_0x26753e[_0x124a('0x3e')]&&_0x399831[_0x124a('0x31')]>=_0x26753e['right'])||_0x2240c5[0x0];}var _0x2a1215;return _0x1128df[_0x124a('0x22')]||_0xc9a91c;}[_0x124a('0x2d')](_0x203e96){this[_0x124a('0x28')][_0x124a('0x2e')](_0x203e96)&&this[_0x124a('0x4b')][_0x124a('0x1b')](_0x203e96['view'])&&(this[_0x124a('0x28')][_0x124a('0xf')](_0x203e96),this['_balloon'][_0x124a('0x4a')](_0x203e96[_0x124a('0xe')]));}['_closeAnnotation'](_0xc856d9){this['_manuallyClosed']['add'](_0xc856d9),this['_removeAnnotationFromBalloon'](_0xc856d9);}}function F(_0x2f2909,_0x595dfd){return _0x2f2909[_0x124a('0x2c')]===_0x595dfd['top']&&_0x2f2909[_0x124a('0x2a')]===_0x595dfd[_0x124a('0x2a')]&&_0x2f2909[_0x124a('0x31')]===_0x595dfd[_0x124a('0x3e')];}
23
+ const _0x25ec=['hasView','editing','change:height','editor','fromRect','isActive','updatePosition','push','pluginName','inlineannotations-detach-not-attached','annotations','targetRect','getBoundingClientRect','register','destroy','set','document','selection','has','top','_setSelectedAnnotations','isAttached','getFirstRange','remove','switchTo','init','focus','context','delete','activeAnnotation','includes','_balloon','_removeAnnotationFromBalloon','_manuallyClosed','focusTracker','domConverter','_selectedAnnotations','listenTo','keystrokes','bottom','clear','plugins','add','visibleView','length','viewRangeToDom','getOrderedSelectedAnnotations','inlineannotations-attach-already-attached','addObserver','find','editableElement','map','isFocused','attach','every','getClientRects','change:visibleView','width','left','requires','inlineannotations-not-allowed-with-context','right','_addedAnnotations','_getBalloonTargetForAnnotation','detach','target','getByView','_forceRefresh','setActiveAnnotation','stopListening','_addAnnotationToBalloon','InlineAnnotations','Esc','mousedown','inline','change:isFocused','view','get'];(function(_0x5c7603,_0x25ec6e){const _0x10a261=function(_0xf5abec){while(--_0xf5abec){_0x5c7603['push'](_0x5c7603['shift']());}};_0x10a261(++_0x25ec6e);}(_0x25ec,0x1e8));const _0x10a2=function(_0x5c7603,_0x25ec6e){_0x5c7603=_0x5c7603-0x0;let _0x10a261=_0x25ec[_0x5c7603];return _0x10a261;};import{Plugin as _0x398c0b}from'ckeditor5/src/core';import _0x1da505 from'./annotationsuis';import _0xc47756 from'./editorannotations';import{ContextualBalloon as _0x28b9db}from'ckeditor5/src/ui';import{MouseObserver as _0x493e07}from'ckeditor5/src/engine';import{CKEditorError as _0x1fddc2,Rect as _0x1ee2c4}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x398c0b{static get[_0x10a2('0x27')](){return[_0xc47756,_0x28b9db,_0x1da505];}static get[_0x10a2('0x42')](){return _0x10a2('0x33');}constructor(_0x40b698){super(_0x40b698),_0x40b698[_0x10a2('0x3b')]['view'][_0x10a2('0x1c')](_0x493e07),this[_0x10a2('0x1')]=!0x1,this[_0x10a2('0x49')]('activeAnnotation',null),this['annotations']=null,this[_0x10a2('0xd')]=new Set(),this[_0x10a2('0xb')]=_0x40b698[_0x10a2('0x15')][_0x10a2('0x39')](_0x28b9db),this[_0x10a2('0x2a')]=new Set(),this['_selectedAnnotations']=[],this[_0x10a2('0x2f')]=!0x1;}[_0x10a2('0x5')](){const _0x3b5c6f=this[_0x10a2('0x3d')]['plugins'][_0x10a2('0x39')](_0x1da505);_0x3b5c6f[_0x10a2('0x7')]===this[_0x10a2('0x3d')]&&(_0x3b5c6f[_0x10a2('0x47')]('inline',this),this[_0x10a2('0x3d')][_0x10a2('0x12')]['set']('Esc',(_0xcd0c63,_0x4d2a7f)=>{const _0x472aeb=this[_0x10a2('0xb')];if(this[_0x10a2('0x1')]&&_0x472aeb[_0x10a2('0x17')]){const _0x30852d=this[_0x10a2('0x44')][_0x10a2('0x2e')](_0x472aeb[_0x10a2('0x17')]);_0x30852d&&this['_closeAnnotation'](_0x30852d),_0x4d2a7f();}}));}['afterInit'](){const _0x1ce567=this[_0x10a2('0x3d')][_0x10a2('0x15')][_0x10a2('0x39')](_0x1da505);_0x1ce567['context']===this[_0x10a2('0x3d')]&&(_0x1ce567['hasActive']()||_0x1ce567[_0x10a2('0x4')](_0x10a2('0x36')));}['setActiveAnnotation'](_0x5f275a){_0x5f275a!==this[_0x10a2('0x9')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x10a2('0x3f')]=!0x1),_0x5f275a&&this[_0x10a2('0x3d')]['ui'][_0x10a2('0xe')][_0x10a2('0x20')]&&(this[_0x10a2('0x44')][_0x10a2('0x4c')](_0x5f275a)&&this[_0x10a2('0x32')](_0x5f275a,!0x0),_0x5f275a[_0x10a2('0x3f')]=!0x0),_0x5f275a||this['_setSelectedAnnotations']([]),this[_0x10a2('0x9')]=_0x5f275a);}[_0x10a2('0x21')](_0x26f984){this['annotations']=_0x26f984;const _0x3ff261=this['editor']['plugins'][_0x10a2('0x39')](_0x1da505),_0x2c75d2=this[_0x10a2('0xb')];if(this[_0x10a2('0x1')])throw new _0x1fddc2(_0x10a2('0x1b'),this);if(_0x3ff261['context']!==this[_0x10a2('0x3d')])throw new _0x1fddc2(_0x10a2('0x28'),this);const _0x5b1f11=this[_0x10a2('0x3d')][_0x10a2('0x15')][_0x10a2('0x39')](_0xc47756);this[_0x10a2('0x11')](_0x5b1f11,'refresh',()=>{const _0x517e4e=_0x5b1f11[_0x10a2('0x1a')]({'annotations':this[_0x10a2('0x44')],'activeAnnotation':this[_0x10a2('0x9')]});var _0x4dd055,_0x3cedfa;!this['_forceRefresh']&&(_0x4dd055=_0x517e4e,_0x3cedfa=this[_0x10a2('0x10')],_0x4dd055['length']===_0x3cedfa[_0x10a2('0x18')]&&_0x4dd055[_0x10a2('0x22')](_0x4eff7a=>_0x3cedfa[_0x10a2('0xa')](_0x4eff7a)))||(this[_0x10a2('0x2f')]=!0x1,this[_0x10a2('0x0')](_0x517e4e),this['setActiveAnnotation'](_0x517e4e[0x0]||null));}),this[_0x10a2('0x11')](_0x5b1f11,'blur',(_0x1c44f2,{isAnnotationTracked:_0x346808})=>{this[_0x10a2('0x9')]&&_0x346808(this[_0x10a2('0x9')])&&(this[_0x10a2('0x0')]([]),this['setActiveAnnotation'](null));}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')]['ui']['focusTracker'],_0x10a2('0x37'),(_0x4e0e17,_0x43c119,_0x18719e)=>{_0x18719e||this[_0x10a2('0x30')](null);}),this[_0x10a2('0x11')](_0x26f984,_0x10a2('0x3'),(_0x22ead5,_0x232a01)=>{this[_0x10a2('0xc')](_0x232a01),_0x232a01===this['activeAnnotation']&&this[_0x10a2('0x30')](null);}),this[_0x10a2('0x11')](_0x2c75d2,_0x10a2('0x24'),(_0x34a2d4,_0x2dc956,_0x47c0db,_0x618a5f)=>{_0x618a5f&&this['stopListening'](_0x618a5f);const _0x39e7e2=_0x26f984[_0x10a2('0x2e')](_0x47c0db);_0x47c0db&&_0x39e7e2&&(this[_0x10a2('0x11')](_0x47c0db,_0x10a2('0x3c'),()=>{_0x2c75d2['updatePosition']();}),this[_0x10a2('0x11')](_0x47c0db,_0x10a2('0x34'),()=>{this['_closeAnnotation'](_0x39e7e2),this[_0x10a2('0x3d')][_0x10a2('0x3b')][_0x10a2('0x38')][_0x10a2('0x6')]();}),this['activeAnnotation']!==_0x39e7e2&&this['setActiveAnnotation'](_0x39e7e2));}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')]['ui'],'update',()=>{_0x2c75d2[_0x10a2('0x17')]&&(_0x26f984[_0x10a2('0x2e')](_0x2c75d2[_0x10a2('0x17')])&&_0x2c75d2[_0x10a2('0x40')]());}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')][_0x10a2('0x3b')][_0x10a2('0x38')][_0x10a2('0x4a')],_0x10a2('0x35'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed'][_0x10a2('0x14')]();}),this[_0x10a2('0x3d')]['editing'][_0x10a2('0x38')][_0x10a2('0x4a')][_0x10a2('0x4b')][_0x10a2('0x1e')]&&this[_0x10a2('0x3d')][_0x10a2('0x3b')]['view'][_0x10a2('0x6')](),this[_0x10a2('0x1')]=!0x0;}[_0x10a2('0x2c')](){if(!this[_0x10a2('0x1')])throw new _0x1fddc2(_0x10a2('0x43'),this);this[_0x10a2('0x30')](null);for(const _0x2ceaab of this[_0x10a2('0x2a')])this[_0x10a2('0xc')](_0x2ceaab);this[_0x10a2('0x31')](),this[_0x10a2('0x1')]=!0x1,this[_0x10a2('0x44')]=null;}[_0x10a2('0x48')](){this[_0x10a2('0x1')]&&this[_0x10a2('0x2c')]();}[_0x10a2('0x0')](_0x1d230e){for(const _0x304fed of this[_0x10a2('0x10')])_0x1d230e[_0x10a2('0xa')](_0x304fed)||this['_manuallyClosed'][_0x10a2('0x8')](_0x304fed);for(const _0x1c34c4 of this[_0x10a2('0x44')])_0x1d230e['includes'](_0x1c34c4)||this[_0x10a2('0xc')](_0x1c34c4);if(this['editor']['ui'][_0x10a2('0xe')][_0x10a2('0x20')])for(const _0x48e962 of _0x1d230e)this[_0x10a2('0x32')](_0x48e962);this[_0x10a2('0x10')]=_0x1d230e;}[_0x10a2('0x32')](_0xdbc2ea,_0xb40439=!0x1){this['_manuallyClosed'][_0x10a2('0x4c')](_0xdbc2ea)||(this[_0x10a2('0x2a')][_0x10a2('0x4c')](_0xdbc2ea)||this[_0x10a2('0xb')][_0x10a2('0x3a')](_0xdbc2ea[_0x10a2('0x38')])||(this[_0x10a2('0x2a')][_0x10a2('0x16')](_0xdbc2ea),this['_balloon'][_0x10a2('0x16')]({'stackId':_0xdbc2ea[_0x10a2('0x38')]['id'],'view':_0xdbc2ea[_0x10a2('0x38')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xdbc2ea)}})),_0xb40439&&this[_0x10a2('0xb')]['showStack'](_0xdbc2ea[_0x10a2('0x38')]['id']));}[_0x10a2('0x2b')](_0x1e4390){const _0x538c82=_0x1e4390[_0x10a2('0x2d')],_0x91b9f7=this['editor'][_0x10a2('0x3b')]['view'],_0x316da8=_0x91b9f7[_0x10a2('0x4a')][_0x10a2('0x4b')][_0x10a2('0x2')](),_0x51c517=_0x91b9f7[_0x10a2('0xf')][_0x10a2('0x19')](_0x316da8);if(_0x51c517['collapse'](!0x0),_0x538c82){if(_0x538c82 instanceof _0x1ee2c4)return _0x538c82;let _0x34ce24=[];for(const _0x3ae739 of _0x538c82)_0x34ce24[_0x10a2('0x41')](...(_0x2682f8=_0x3ae739[_0x10a2('0x23')](),Array['from'](_0x2682f8)[_0x10a2('0x1f')](DOMRect[_0x10a2('0x3e')])));_0x34ce24=function(_0x4de5c9){const _0x59f92b=[];let _0x2370f7=_0x4de5c9[0x0];for(let _0x40956a=0x1;_0x40956a<_0x4de5c9[_0x10a2('0x18')];_0x40956a++)F(_0x2370f7,_0x4de5c9[_0x40956a])?_0x2370f7[_0x10a2('0x25')]+=_0x4de5c9[_0x40956a][_0x10a2('0x25')]:(_0x59f92b[_0x10a2('0x41')](_0x2370f7),_0x2370f7=_0x4de5c9[_0x40956a]);return _0x59f92b[_0x10a2('0x41')](_0x2370f7),_0x59f92b;}(_0x34ce24);const _0x251638=_0x51c517[_0x10a2('0x46')]();return _0x34ce24[_0x10a2('0x1d')](_0x291086=>_0x291086['top']<=_0x251638[_0x10a2('0x4d')]&&_0x291086['bottom']>=_0x251638[_0x10a2('0x13')]&&_0x291086[_0x10a2('0x26')]<=_0x251638[_0x10a2('0x26')]&&_0x291086[_0x10a2('0x29')]>=_0x251638[_0x10a2('0x29')])||_0x34ce24[0x0];}var _0x2682f8;return _0x1e4390[_0x10a2('0x45')]||_0x51c517;}[_0x10a2('0xc')](_0x391689){this['_addedAnnotations'][_0x10a2('0x4c')](_0x391689)&&this['_balloon']['hasView'](_0x391689[_0x10a2('0x38')])&&(this[_0x10a2('0x2a')]['delete'](_0x391689),this[_0x10a2('0xb')]['remove'](_0x391689[_0x10a2('0x38')]));}['_closeAnnotation'](_0x71d2f2){this[_0x10a2('0xd')][_0x10a2('0x16')](_0x71d2f2),this[_0x10a2('0xc')](_0x71d2f2);}}function F(_0x2aede,_0x43ee7f){return _0x2aede[_0x10a2('0x4d')]===_0x43ee7f[_0x10a2('0x4d')]&&_0x2aede[_0x10a2('0x13')]===_0x43ee7f[_0x10a2('0x13')]&&_0x2aede[_0x10a2('0x29')]===_0x43ee7f[_0x10a2('0x26')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x93c6=['stopListening','_setSelectedAnnotations','southArrowNorthEast','get','focus','EditorAnnotations','isDirty','change:container','preventClosingBalloon','cancel','pluginName','content','defaultPositions','contains','ready','keyCode','values','_hideBalloon','mousedown','set','northArrowSouth','activeAnnotation','destroy','off','getByView','target','register','blur','_showBalloon','NarrowSidebar','plugins','find','focusableElements','southArrowNorth','context','annotationType','editors','refresh','detach','includes','first','listenTo','create','length','narrowsidebar-attach-already-attached','_detachListeners','esc','addAnnotation','set:container','isVisible','_domEmitter','_editorAnnotations','hasDomSelection','_selectedAnnotations','has','rearrange','_annotationToNarrowView','_refreshPositioningDebounced','_destroyEditorAnnotationsIntegration','requires','narrowsidebar-detach-not-attached','low','ck-sidebar--narrow','balloonPanelView','clear','high','number','_updateBalloonPosition','_integrateWithEditorAnnotations','addEventListener','remove','_attachListeners','pin','annotations','element','isAttached','resize','view','bodyCollection','preventDefault','setActiveAnnotation','delete','_refreshPositioning','from','_detachFromContainer','keydown','attachToDom','execute','add','locale','_manuallyClosedAnnotationViews'];(function(_0x138ea8,_0x93c621){const _0x207754=function(_0xf68406){while(--_0xf68406){_0x138ea8['push'](_0x138ea8['shift']());}};_0x207754(++_0x93c621);}(_0x93c6,0xb6));const _0x2077=function(_0x138ea8,_0x93c621){_0x138ea8=_0x138ea8-0x0;let _0x207754=_0x93c6[_0x138ea8];return _0x207754;};import{ContextPlugin as _0x5c6c9f,Context as _0x298210}from'ckeditor5/src/core';import _0x71f06d from'./annotationsuis';import _0x35ceea from'./sidebar';import _0x4894dd from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2e740b,BodyCollection as _0x2628c6}from'ckeditor5/src/ui';import{CKEditorError as _0x5e254b,DomEmitterMixin as _0x283ba1,keyCodes as _0x4945be,Collection as _0x2b77cb}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x426c4f}from'lodash-es';import _0x123f0a from'./editorannotations';export default class s extends _0x5c6c9f{static get[_0x2077('0x3b')](){return[_0x35ceea,_0x71f06d];}static get[_0x2077('0xa')](){return _0x2077('0x1d');}constructor(_0x3688dd){super(_0x3688dd),this[_0x2077('0x4b')]=!0x1,this[_0x2077('0x5a')]=new Set(),this[_0x2077('0x32')]=Object[_0x2077('0x2a')](_0x283ba1),this[_0x2077('0x38')]=new Map(),this[_0x2077('0x13')](_0x2077('0x15'),null),this[_0x2077('0x49')]=null,this['_selectedAnnotations']=[],this[_0x2077('0x33')]=new _0x2b77cb(),this['_refreshPositioningDebounced']=_0x426c4f(()=>{this[_0x2077('0x52')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x2077('0x22')][_0x2077('0x1e')][_0x2077('0x3')](_0x71f06d)[_0x2077('0x1a')]('narrowSidebar',this),this[_0x2077('0x4e')]=new _0x2628c6(this[_0x2077('0x22')][_0x2077('0x59')]),this['balloonPanelView']=new _0x2e740b(this['context'][_0x2077('0x59')]),this[_0x2077('0x4e')][_0x2077('0x56')](),this[_0x2077('0x4e')]['add'](this[_0x2077('0x3f')]);}['attach'](_0x416b09){this['annotations']=_0x416b09;const _0x2d7b67=this['context'][_0x2077('0x1e')][_0x2077('0x3')](_0x35ceea),_0x536cc1=this[_0x2077('0x3f')];if(_0x2d7b67['_annotations']=_0x416b09,this[_0x2077('0x4b')])throw new _0x5e254b(_0x2077('0x2c'),this);this[_0x2077('0x4b')]=!0x0,this['listenTo'](_0x2d7b67,_0x2077('0x30'),()=>{this['detach'](),this[_0x2077('0x29')](_0x2d7b67,_0x2077('0x7'),_0x42da53=>{_0x42da53[_0x2077('0x17')](),this['attach'](_0x416b09);});}),_0x2d7b67['_attachToContainer']({'viewClass':_0x2077('0x3e'),'spaceBetweenItems':0x5});const _0x2b0f05=_0x2dab3a=>{const _0x51311d=new _0x4894dd(this[_0x2077('0x22')][_0x2077('0x59')]);_0x2d7b67[_0x2077('0x2f')](_0x2dab3a,_0x51311d),this[_0x2077('0x38')][_0x2077('0x13')](_0x2dab3a,_0x51311d),_0x51311d['bind'](_0x2077('0x6'),_0x2077('0x23'),_0x2077('0x42'))['to'](_0x2dab3a[_0x2077('0x4d')],_0x2077('0x6'),'type',_0x2077('0x2b')),_0x51311d['on'](_0x2077('0x57'),()=>{this[_0x2077('0x5a')][_0x2077('0x40')](),_0x536cc1['content']['first']!==_0x2dab3a['view']?(this['_showBalloon'](_0x2dab3a),_0x2dab3a[_0x2077('0x4d')][_0x2077('0x4a')]['focus'](),this[_0x2077('0x50')](_0x2dab3a)):this[_0x2077('0x50')](null);});};for(const _0x124af3 of _0x416b09)_0x2b0f05(_0x124af3);this[_0x2077('0x29')](_0x416b09,_0x2077('0x58'),(_0x2e3b36,_0x36f18c)=>{_0x2b0f05(_0x36f18c);}),this['listenTo'](_0x416b09,'remove',(_0x53c09c,_0x9d1e9d,_0x31fc30)=>{this[_0x2077('0x38')]['get'](_0x9d1e9d)[_0x2077('0x16')](),this[_0x2077('0x38')][_0x2077('0x51')](_0x9d1e9d),_0x2d7b67[_0x2077('0x37')]({'removedAnnotation':_0x9d1e9d,'previousAnnotation':_0x416b09[_0x2077('0x3')](_0x31fc30-0x1),'nextAnnotation':_0x416b09[_0x2077('0x3')](_0x31fc30+0x1)}),_0x9d1e9d===this[_0x2077('0x15')]&&this[_0x2077('0x50')](null);},{'priority':_0x2077('0x3d')}),this[_0x2077('0x29')](_0x416b09,_0x2077('0x4'),(_0x3f28fc,_0x1a82eb)=>{this[_0x2077('0x50')](_0x1a82eb);}),this['listenTo'](_0x416b09,_0x2077('0x1b'),()=>{this[_0x2077('0x50')](null);}),this['_domEmitter'][_0x2077('0x29')](document,_0x2077('0x55'),(_0x17d310,_0x30a17d)=>{_0x30a17d[_0x2077('0xf')]===_0x4945be[_0x2077('0x2e')]&&_0x536cc1['isVisible']&&(this[_0x2077('0x5a')][_0x2077('0x58')](_0x536cc1['content'][_0x2077('0x28')]),this[_0x2077('0x11')](),_0x30a17d['stopPropagation'](),_0x30a17d[_0x2077('0x4f')]());}),this[_0x2077('0x32')][_0x2077('0x29')](document,_0x2077('0x12'),(_0x25fdf6,_0x4c7ecc)=>{const _0x16aa73=_0x4c7ecc[_0x2077('0x19')];_0x536cc1['isVisible']&&_0x536cc1[_0x2077('0x4a')][_0x2077('0xd')](_0x16aa73)||_0x2d7b67['view'][_0x2077('0x4a')]['contains'](_0x16aa73)||_0x25fdf6[_0x2077('0x8')]||this[_0x2077('0x15')]&&this[_0x2077('0x15')][_0x2077('0x20')][_0x2077('0x1f')](_0xe2d982=>_0xe2d982[_0x2077('0xd')](_0x16aa73))||(this['_manuallyClosedAnnotationViews'][_0x2077('0x40')](),this[_0x2077('0x11')](),this['setActiveAnnotation'](null));});const _0x43ae09=this['context']instanceof _0x298210?this['context'][_0x2077('0x24')]:new _0x2b77cb([this[_0x2077('0x22')]]);for(const _0x2fb74c of _0x43ae09)this[_0x2077('0x44')](_0x2fb74c);this[_0x2077('0x29')](_0x43ae09,_0x2077('0x58'),(_0x16033f,_0x159e22)=>{this[_0x2077('0x29')](_0x159e22,_0x2077('0xe'),()=>{this[_0x2077('0x44')](_0x159e22);});}),this[_0x2077('0x29')](_0x43ae09,_0x2077('0x46'),(_0x4692d3,_0x1302dc)=>{_0x1302dc['plugins'][_0x2077('0x36')](_0x2077('0x5'))&&this[_0x2077('0x3a')](_0x1302dc[_0x2077('0x1e')][_0x2077('0x3')](_0x2077('0x5')));}),window[_0x2077('0x45')](_0x2077('0x4c'),this['_refreshPositioningDebounced']),this['_refreshPositioning']();}[_0x2077('0x50')](_0x1281ce){if(_0x1281ce===this['activeAnnotation'])return;const _0x5992ef=this[_0x2077('0x22')][_0x2077('0x1e')]['get'](_0x35ceea);if(_0x5992ef['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1281ce,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1281ce)_0x5992ef['getSidebarItemView'](_0x1281ce)?this[_0x2077('0x1c')](_0x1281ce):this['_hideBalloon']();else this[_0x2077('0x11')]();this[_0x2077('0x15')]=_0x1281ce;}[_0x2077('0x26')](){if(!this['isAttached'])throw new _0x5e254b(_0x2077('0x3c'),this);this[_0x2077('0x50')](null);const _0x44e3f6=this[_0x2077('0x22')]['plugins'][_0x2077('0x3')](_0x35ceea);this[_0x2077('0x11')](),Array[_0x2077('0x53')](this[_0x2077('0x38')][_0x2077('0x10')](),_0x5c1532=>_0x5c1532['destroy']()),this[_0x2077('0x38')]['clear'](),_0x44e3f6[_0x2077('0x54')](this['annotations']),this[_0x2077('0x0')](),this['_domEmitter'][_0x2077('0x0')](),this['context']instanceof _0x298210&&this[_0x2077('0x0')](this[_0x2077('0x22')]['editors']);for(const _0x1f535b of Array[_0x2077('0x53')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1f535b);window['removeEventListener'](_0x2077('0x4c'),this[_0x2077('0x39')]),this[_0x2077('0x39')][_0x2077('0x9')](),this[_0x2077('0x35')]=[],this['isAttached']=!0x1,this[_0x2077('0x49')]=null;}[_0x2077('0x16')](){this[_0x2077('0x4b')]&&this['detach'](),this[_0x2077('0x4e')]['detachFromDom']();}[_0x2077('0x44')](_0x50f2d4){const _0x5c4cb4=_0x50f2d4[_0x2077('0x1e')][_0x2077('0x3')](_0x123f0a),_0x46691f=this[_0x2077('0x22')][_0x2077('0x1e')][_0x2077('0x3')](_0x35ceea),_0x4934fb=this[_0x2077('0x49')],_0x3d7a0e=this[_0x2077('0x3f')],_0x3adc48=()=>{const _0x56b42b=_0x5c4cb4['getOrderedSelectedAnnotations']({'annotations':this[_0x2077('0x49')],'activeAnnotation':this[_0x2077('0x15')]});this['_setSelectedAnnotations'](_0x56b42b),this[_0x2077('0x50')](_0x56b42b[0x0]||null);};this[_0x2077('0x29')](_0x5c4cb4,_0x2077('0x25'),_0x3adc48),this[_0x2077('0x29')](_0x5c4cb4,_0x2077('0x1b'),(_0x5a3cab,{isAnnotationTracked:_0xec8410})=>{this[_0x2077('0x15')]&&_0xec8410(this[_0x2077('0x15')])&&(this[_0x2077('0x1')]([]),this[_0x2077('0x50')](null));}),this[_0x2077('0x29')](_0x5c4cb4,'uiUpdate',()=>{this[_0x2077('0x39')]();}),this['listenTo'](_0x4934fb,'blur',_0x5d8170=>{_0x5c4cb4[_0x2077('0x34')]()&&_0x5d8170['stop']();},{'priority':_0x2077('0x41')}),this[_0x2077('0x29')](this['_domEmitter'],'mousedown',(_0x507592,_0x1d1d0c)=>{const _0x4c15a5=_0x1d1d0c[_0x2077('0x19')];_0x3d7a0e[_0x2077('0x31')]&&_0x3d7a0e['element'][_0x2077('0xd')](_0x4c15a5)||_0x46691f[_0x2077('0x4d')][_0x2077('0x4a')][_0x2077('0xd')](_0x4c15a5)||this['activeAnnotation']&&_0x5c4cb4[_0x2077('0x34')]()&&(_0x3adc48(),_0x507592[_0x2077('0x8')]=!0x0);},{'priority':_0x2077('0x41')}),this['_editorAnnotations']['add'](_0x5c4cb4);}[_0x2077('0x3a')](_0xc4e791){_0xc4e791&&(this['stopListening'](_0xc4e791),this[_0x2077('0x33')]['remove'](_0xc4e791));}[_0x2077('0x1')](_0x3e3266){for(const _0x25e883 of this[_0x2077('0x35')])_0x3e3266[_0x2077('0x27')](_0x25e883)||this[_0x2077('0x5a')][_0x2077('0x51')](_0x25e883[_0x2077('0x4d')]);this[_0x2077('0x35')]=_0x3e3266;}[_0x2077('0x52')](){const _0x3ca398=this[_0x2077('0x3f')];this['annotations']['refreshPositioning'](),_0x3ca398['isVisible']&&this['_updateBalloonPosition']();}[_0x2077('0x1c')](_0x281610){if(this[_0x2077('0x5a')][_0x2077('0x36')](_0x281610[_0x2077('0x4d')]))return;const _0x1fac7e=this[_0x2077('0x3f')]['content']['first'];_0x1fac7e!==_0x281610['view']?(_0x1fac7e&&this[_0x2077('0x2d')](_0x1fac7e),this[_0x2077('0x47')](_0x281610['view']),this[_0x2077('0x3f')][_0x2077('0xb')][_0x2077('0x40')](),this['balloonPanelView'][_0x2077('0xb')][_0x2077('0x58')](_0x281610['view']),this[_0x2077('0x43')]()):this[_0x2077('0x43')]();}[_0x2077('0x43')](){const _0x33c6da=this[_0x2077('0x3f')]['content'][_0x2077('0x28')],_0x5ec12b=_0x33c6da&&this[_0x2077('0x49')][_0x2077('0x18')](_0x33c6da);if(!_0x5ec12b||!this[_0x2077('0x38')][_0x2077('0x36')](_0x5ec12b))return;const _0x3674dc=this[_0x2077('0x38')][_0x2077('0x3')](_0x5ec12b)[_0x2077('0x4a')],_0x14e0f4=function(){const _0x23dac0=_0x2e740b[_0x2077('0xc')];return[_0x23dac0[_0x2077('0x2')],_0x23dac0['northArrowSouthEast'],_0x23dac0[_0x2077('0x21')],_0x23dac0[_0x2077('0x14')],_0x23dac0['southArrowNorthWest'],_0x23dac0['northArrowSouthWest']];}();this[_0x2077('0x3f')][_0x2077('0x48')]({'target':_0x3674dc,'positions':_0x14e0f4});}[_0x2077('0x11')](){const _0x231367=this[_0x2077('0x3f')],_0x5e7441=_0x231367[_0x2077('0xb')][_0x2077('0x28')];_0x5e7441&&(this[_0x2077('0x2d')](_0x5e7441),_0x231367['unpin'](),_0x231367['content'][_0x2077('0x40')]());}[_0x2077('0x47')](_0x4ba150){this[_0x2077('0x29')](_0x4ba150,'change:height',()=>this[_0x2077('0x43')]()),this[_0x2077('0x29')](_0x4ba150,'Esc',(_0xacc93d,_0x3b4047)=>{this[_0x2077('0x5a')]['add'](_0x4ba150),this['_hideBalloon'](),_0x3b4047();});}['_detachListeners'](_0x839243){this['stopListening'](_0x839243);}}
23
+ const _0x5cdf=['refresh','mousedown','Esc','has','first','bodyCollection','view','hasDomSelection','_refreshPositioningDebounced','_domEmitter','editors','includes','blur','getByView','add','balloonPanelView','setActiveAnnotation','southArrowNorthWest','_attachListeners','unpin','high','ready','annotationType','length','preventDefault','esc','annotations','remove','removeEventListener','clear','_annotations','NarrowSidebar','execute','_setSelectedAnnotations','_hideBalloon','change:container','_selectedAnnotations','narrowSidebar','_manuallyClosedAnnotationViews','requires','detachFromDom','isDirty','addAnnotation','_detachListeners','resize','northArrowSouth','_detachFromContainer','isVisible','element','isAttached','_destroyEditorAnnotationsIntegration','focusableElements','focus','stopPropagation','_showBalloon','get','from','contains','create','stop','defaultPositions','register','ck-sidebar--narrow','_editorAnnotations','stopListening','find','content','set','narrowsidebar-detach-not-attached','keydown','pin','rearrange','uiUpdate','attachToDom','set:container','getSidebarItemView','init','listenTo','type','preventClosingBalloon','locale','getOrderedSelectedAnnotations','southArrowNorth','_updateBalloonPosition','EditorAnnotations','plugins','_annotationToNarrowView','detach','target','context','addEventListener','low','attach','activeAnnotation','_refreshPositioning','_integrateWithEditorAnnotations','destroy','delete','_attachToContainer','northArrowSouthEast'];(function(_0x2cdd3d,_0x5cdf66){const _0x196ba7=function(_0x1b1431){while(--_0x1b1431){_0x2cdd3d['push'](_0x2cdd3d['shift']());}};_0x196ba7(++_0x5cdf66);}(_0x5cdf,0x120));const _0x196b=function(_0x2cdd3d,_0x5cdf66){_0x2cdd3d=_0x2cdd3d-0x0;let _0x196ba7=_0x5cdf[_0x2cdd3d];return _0x196ba7;};import{ContextPlugin as _0x203cc8,Context as _0x3b6256}from'ckeditor5/src/core';import _0x10bdba from'./annotationsuis';import _0x48e11e from'./sidebar';import _0x1a5194 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x429397,BodyCollection as _0x1f3acb}from'ckeditor5/src/ui';import{CKEditorError as _0x1320ef,DomEmitterMixin as _0x49f1c6,keyCodes as _0x716ebf,Collection as _0x412490}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b1677}from'lodash-es';import _0x539083 from'./editorannotations';export default class s extends _0x203cc8{static get[_0x196b('0x33')](){return[_0x48e11e,_0x10bdba];}static get['pluginName'](){return _0x196b('0x2b');}constructor(_0x171296){super(_0x171296),this[_0x196b('0x3d')]=!0x1,this[_0x196b('0x32')]=new Set(),this['_domEmitter']=Object[_0x196b('0x46')](_0x49f1c6),this['_annotationToNarrowView']=new Map(),this[_0x196b('0x4f')](_0x196b('0x5'),null),this[_0x196b('0x26')]=null,this[_0x196b('0x30')]=[],this[_0x196b('0x4b')]=new _0x412490(),this[_0x196b('0x14')]=_0x5b1677(()=>{this[_0x196b('0x6')]();},0xfa,{'leading':!0x1});}[_0x196b('0x58')](){this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x10bdba)[_0x196b('0x49')](_0x196b('0x31'),this),this[_0x196b('0x11')]=new _0x1f3acb(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x1b')]=new _0x429397(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x11')][_0x196b('0x55')](),this[_0x196b('0x11')][_0x196b('0x1a')](this['balloonPanelView']);}[_0x196b('0x4')](_0x35589b){this[_0x196b('0x26')]=_0x35589b;const _0xeb36a8=this[_0x196b('0x1')]['plugins']['get'](_0x48e11e),_0x28c859=this[_0x196b('0x1b')];if(_0xeb36a8[_0x196b('0x2a')]=_0x35589b,this[_0x196b('0x3d')])throw new _0x1320ef('narrowsidebar-attach-already-attached',this);this[_0x196b('0x3d')]=!0x0,this[_0x196b('0x59')](_0xeb36a8,_0x196b('0x56'),()=>{this[_0x196b('0x63')](),this['listenTo'](_0xeb36a8,_0x196b('0x2f'),_0x511ae5=>{_0x511ae5['off'](),this[_0x196b('0x4')](_0x35589b);});}),_0xeb36a8[_0x196b('0xa')]({'viewClass':_0x196b('0x4a'),'spaceBetweenItems':0x5});const _0x2e124f=_0x3faa90=>{const _0x5e70ed=new _0x1a5194(this[_0x196b('0x1')][_0x196b('0x5c')]);_0xeb36a8[_0x196b('0x36')](_0x3faa90,_0x5e70ed),this[_0x196b('0x62')][_0x196b('0x4f')](_0x3faa90,_0x5e70ed),_0x5e70ed['bind']('isDirty',_0x196b('0x22'),'number')['to'](_0x3faa90[_0x196b('0x12')],_0x196b('0x35'),_0x196b('0x5a'),_0x196b('0x23')),_0x5e70ed['on'](_0x196b('0x2c'),()=>{this['_manuallyClosedAnnotationViews'][_0x196b('0x29')](),_0x28c859[_0x196b('0x4e')][_0x196b('0x10')]!==_0x3faa90[_0x196b('0x12')]?(this[_0x196b('0x42')](_0x3faa90),_0x3faa90[_0x196b('0x12')]['element'][_0x196b('0x40')](),this[_0x196b('0x1c')](_0x3faa90)):this['setActiveAnnotation'](null);});};for(const _0x50544c of _0x35589b)_0x2e124f(_0x50544c);this[_0x196b('0x59')](_0x35589b,_0x196b('0x1a'),(_0x434f4d,_0x2aeea3)=>{_0x2e124f(_0x2aeea3);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x27'),(_0x21ee54,_0x44d2f4,_0x33a37f)=>{this[_0x196b('0x62')][_0x196b('0x43')](_0x44d2f4)[_0x196b('0x8')](),this[_0x196b('0x62')][_0x196b('0x9')](_0x44d2f4),_0xeb36a8[_0x196b('0x53')]({'removedAnnotation':_0x44d2f4,'previousAnnotation':_0x35589b[_0x196b('0x43')](_0x33a37f-0x1),'nextAnnotation':_0x35589b['get'](_0x33a37f+0x1)}),_0x44d2f4===this[_0x196b('0x5')]&&this['setActiveAnnotation'](null);},{'priority':_0x196b('0x3')}),this[_0x196b('0x59')](_0x35589b,'focus',(_0xf405ba,_0x5d98b7)=>{this[_0x196b('0x1c')](_0x5d98b7);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x18'),()=>{this[_0x196b('0x1c')](null);}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0x51'),(_0x37a293,_0x48781d)=>{_0x48781d['keyCode']===_0x716ebf[_0x196b('0x25')]&&_0x28c859[_0x196b('0x3b')]&&(this[_0x196b('0x32')]['add'](_0x28c859[_0x196b('0x4e')]['first']),this[_0x196b('0x2e')](),_0x48781d[_0x196b('0x41')](),_0x48781d[_0x196b('0x24')]());}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0xd'),(_0x5518e5,_0x2460be)=>{const _0x197a03=_0x2460be['target'];_0x28c859[_0x196b('0x3b')]&&_0x28c859[_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0xeb36a8[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0x5518e5[_0x196b('0x5b')]||this[_0x196b('0x5')]&&this[_0x196b('0x5')][_0x196b('0x3f')][_0x196b('0x4d')](_0x3a2d9a=>_0x3a2d9a[_0x196b('0x45')](_0x197a03))||(this[_0x196b('0x32')]['clear'](),this[_0x196b('0x2e')](),this['setActiveAnnotation'](null));});const _0x47445b=this[_0x196b('0x1')]instanceof _0x3b6256?this[_0x196b('0x1')][_0x196b('0x16')]:new _0x412490([this['context']]);for(const _0x3df9b1 of _0x47445b)this[_0x196b('0x7')](_0x3df9b1);this['listenTo'](_0x47445b,_0x196b('0x1a'),(_0x579436,_0x519ca6)=>{this['listenTo'](_0x519ca6,_0x196b('0x21'),()=>{this[_0x196b('0x7')](_0x519ca6);});}),this[_0x196b('0x59')](_0x47445b,_0x196b('0x27'),(_0x5e958e,_0x3aeb44)=>{_0x3aeb44[_0x196b('0x61')]['has'](_0x196b('0x60'))&&this['_destroyEditorAnnotationsIntegration'](_0x3aeb44[_0x196b('0x61')][_0x196b('0x43')](_0x196b('0x60')));}),window[_0x196b('0x2')](_0x196b('0x38'),this[_0x196b('0x14')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x46b33f){if(_0x46b33f===this[_0x196b('0x5')])return;const _0x2f025d=this['context']['plugins']['get'](_0x48e11e);if(_0x2f025d[_0x196b('0xc')]({'blurredAnnotation':this[_0x196b('0x5')],'activatedAnnotation':_0x46b33f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x46b33f)_0x2f025d[_0x196b('0x57')](_0x46b33f)?this[_0x196b('0x42')](_0x46b33f):this[_0x196b('0x2e')]();else this[_0x196b('0x2e')]();this[_0x196b('0x5')]=_0x46b33f;}['detach'](){if(!this[_0x196b('0x3d')])throw new _0x1320ef(_0x196b('0x50'),this);this[_0x196b('0x1c')](null);const _0x48123a=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e);this[_0x196b('0x2e')](),Array[_0x196b('0x44')](this[_0x196b('0x62')]['values'](),_0x1e72c0=>_0x1e72c0['destroy']()),this[_0x196b('0x62')][_0x196b('0x29')](),_0x48123a[_0x196b('0x3a')](this[_0x196b('0x26')]),this[_0x196b('0x4c')](),this[_0x196b('0x15')][_0x196b('0x4c')](),this[_0x196b('0x1')]instanceof _0x3b6256&&this[_0x196b('0x4c')](this[_0x196b('0x1')][_0x196b('0x16')]);for(const _0x17be86 of Array[_0x196b('0x44')](this[_0x196b('0x4b')]))this[_0x196b('0x3e')](_0x17be86);window[_0x196b('0x28')](_0x196b('0x38'),this[_0x196b('0x14')]),this[_0x196b('0x14')]['cancel'](),this[_0x196b('0x30')]=[],this[_0x196b('0x3d')]=!0x1,this['annotations']=null;}[_0x196b('0x8')](){this[_0x196b('0x3d')]&&this[_0x196b('0x63')](),this['bodyCollection'][_0x196b('0x34')]();}[_0x196b('0x7')](_0x3ef313){const _0x443a11=_0x3ef313[_0x196b('0x61')][_0x196b('0x43')](_0x539083),_0x4a7657=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e),_0x187a40=this[_0x196b('0x26')],_0x1257b4=this[_0x196b('0x1b')],_0x40d6e2=()=>{const _0x514208=_0x443a11[_0x196b('0x5d')]({'annotations':this[_0x196b('0x26')],'activeAnnotation':this[_0x196b('0x5')]});this['_setSelectedAnnotations'](_0x514208),this[_0x196b('0x1c')](_0x514208[0x0]||null);};this[_0x196b('0x59')](_0x443a11,_0x196b('0xc'),_0x40d6e2),this['listenTo'](_0x443a11,_0x196b('0x18'),(_0x45d255,{isAnnotationTracked:_0x4de943})=>{this[_0x196b('0x5')]&&_0x4de943(this[_0x196b('0x5')])&&(this[_0x196b('0x2d')]([]),this[_0x196b('0x1c')](null));}),this['listenTo'](_0x443a11,_0x196b('0x54'),()=>{this[_0x196b('0x14')]();}),this['listenTo'](_0x187a40,'blur',_0x4d70d8=>{_0x443a11[_0x196b('0x13')]()&&_0x4d70d8[_0x196b('0x47')]();},{'priority':_0x196b('0x20')}),this[_0x196b('0x59')](this[_0x196b('0x15')],_0x196b('0xd'),(_0x4baaeb,_0x51b47e)=>{const _0x52959d=_0x51b47e[_0x196b('0x0')];_0x1257b4[_0x196b('0x3b')]&&_0x1257b4[_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||_0x4a7657[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||this['activeAnnotation']&&_0x443a11[_0x196b('0x13')]()&&(_0x40d6e2(),_0x4baaeb[_0x196b('0x5b')]=!0x0);},{'priority':_0x196b('0x20')}),this[_0x196b('0x4b')][_0x196b('0x1a')](_0x443a11);}[_0x196b('0x3e')](_0x2af604){_0x2af604&&(this[_0x196b('0x4c')](_0x2af604),this[_0x196b('0x4b')][_0x196b('0x27')](_0x2af604));}['_setSelectedAnnotations'](_0x20c2eb){for(const _0x1e40c9 of this[_0x196b('0x30')])_0x20c2eb[_0x196b('0x17')](_0x1e40c9)||this[_0x196b('0x32')][_0x196b('0x9')](_0x1e40c9[_0x196b('0x12')]);this['_selectedAnnotations']=_0x20c2eb;}[_0x196b('0x6')](){const _0x423d2a=this[_0x196b('0x1b')];this[_0x196b('0x26')]['refreshPositioning'](),_0x423d2a[_0x196b('0x3b')]&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa57099){if(this[_0x196b('0x32')][_0x196b('0xf')](_0xa57099[_0x196b('0x12')]))return;const _0x58ebe1=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')];_0x58ebe1!==_0xa57099[_0x196b('0x12')]?(_0x58ebe1&&this[_0x196b('0x37')](_0x58ebe1),this['_attachListeners'](_0xa57099[_0x196b('0x12')]),this[_0x196b('0x1b')]['content'][_0x196b('0x29')](),this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x1a')](_0xa57099['view']),this['_updateBalloonPosition']()):this[_0x196b('0x5f')]();}[_0x196b('0x5f')](){const _0x2aedfe=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')],_0x5531ac=_0x2aedfe&&this['annotations'][_0x196b('0x19')](_0x2aedfe);if(!_0x5531ac||!this[_0x196b('0x62')][_0x196b('0xf')](_0x5531ac))return;const _0x339050=this[_0x196b('0x62')][_0x196b('0x43')](_0x5531ac)['element'],_0x55e4b1=function(){const _0x4bfc70=_0x429397[_0x196b('0x48')];return[_0x4bfc70['southArrowNorthEast'],_0x4bfc70[_0x196b('0xb')],_0x4bfc70[_0x196b('0x5e')],_0x4bfc70[_0x196b('0x39')],_0x4bfc70[_0x196b('0x1d')],_0x4bfc70['northArrowSouthWest']];}();this['balloonPanelView'][_0x196b('0x52')]({'target':_0x339050,'positions':_0x55e4b1});}[_0x196b('0x2e')](){const _0x1ddc3d=this[_0x196b('0x1b')],_0x2de1e5=_0x1ddc3d[_0x196b('0x4e')][_0x196b('0x10')];_0x2de1e5&&(this[_0x196b('0x37')](_0x2de1e5),_0x1ddc3d[_0x196b('0x1f')](),_0x1ddc3d[_0x196b('0x4e')]['clear']());}[_0x196b('0x1e')](_0x2b94f4){this[_0x196b('0x59')](_0x2b94f4,'change:height',()=>this[_0x196b('0x5f')]()),this['listenTo'](_0x2b94f4,_0x196b('0xe'),(_0x32b15f,_0x56f9a6)=>{this[_0x196b('0x32')][_0x196b('0x1a')](_0x2b94f4),this[_0x196b('0x2e')](),_0x56f9a6();});}['_detachListeners'](_0x20587a){this[_0x196b('0x4c')](_0x20587a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cb7=['change:top','remove','destroy','getIndex','_annotationToSidebarItemView','_updateLastItem','updateHeight','isAnimationDisabled','_alignForTopChange','change:bottom','Sidebar','content','_recalculate','_getMaxAvailableTop','_alignBeforeItem','unbind','_setItemTop','top','_spaceBetweenItems','_getTargetTop','delete','config','_destroySidebarItemView','list','last','bind','targetRect','height','bottom','_attachToContainer','listenTo','minHeight','define','class','_alignForBottomChange','_alignToTargetRect','_detachFromContainer','max','_lastItem','init','length','context','render','_getItemAfter','_activeAnnotation','_recalculateBuffer','object','locale','change:_lastItem','getSidebarItemView','stopListening','_targetTop','set','pluginName','_createSidebarView','isActive','_sidebarItemViewToAnnotation','sidebar.preventScrollOutOfView','change:targetRect','container','_getItemBefore','element','_annotations','view','target','add','nodeType','clear','_alignAfterItem','get'];(function(_0x4f2f56,_0x2cb72f){const _0xa3c18b=function(_0x2e38a8){while(--_0x2e38a8){_0x4f2f56['push'](_0x4f2f56['shift']());}};_0xa3c18b(++_0x2cb72f);}(_0x2cb7,0x1b0));const _0xa3c1=function(_0x4f2f56,_0x2cb72f){_0x4f2f56=_0x4f2f56-0x0;let _0xa3c18b=_0x2cb7[_0x4f2f56];return _0xa3c18b;};import{ContextPlugin as _0x31eede}from'ckeditor5/src/core';import{Rect as _0x4a22f5,CKEditorError as _0x4d306e}from'ckeditor5/src/utils';import _0x4c842f from'./view/sidebarview';import _0x540326 from'./view/sidebaritemview';export default class z extends _0x31eede{static get[_0xa3c1('0x29')](){return _0xa3c1('0x44');}constructor(_0x44b706){super(_0x44b706),this[_0xa3c1('0x28')](_0xa3c1('0x1a'),void 0x0),this[_0xa3c1('0x33')]=this[_0xa3c1('0x2a')](),this['set']('container',null),this[_0xa3c1('0x6')]=0x19,this[_0xa3c1('0x2c')]=new Map(),this[_0xa3c1('0x3e')]=new Map(),this[_0xa3c1('0x1d')][_0xa3c1('0x9')][_0xa3c1('0x14')](_0xa3c1('0x2d'),!0x1),this[_0xa3c1('0x32')]=null,this[_0xa3c1('0x20')]=null,this[_0xa3c1('0x21')]=[];}[_0xa3c1('0x1b')](){const _0x8c91bc=this[_0xa3c1('0x1d')][_0xa3c1('0x9')][_0xa3c1('0x39')]('sidebar.container');_0x8c91bc&&this['setContainer'](_0x8c91bc);}['setContainer'](_0x34af07){if(!y(_0x34af07))throw new _0x4d306e('sidebar-setcontainer-invalid-element');this[_0xa3c1('0x2f')]=_0x34af07;}[_0xa3c1('0x11')]({viewClass:_0x4c2103='',spaceBetweenItems:_0x59f0bc=0x19}={}){if(!y(this['container']))throw new _0x4d306e('sidebar-attachtocontainer-missing-container',this);this[_0xa3c1('0x2f')]['appendChild'](this[_0xa3c1('0x33')][_0xa3c1('0x31')]),this['view'][_0xa3c1('0x15')]=_0x4c2103,this[_0xa3c1('0x6')]=_0x59f0bc;}['rearrange']({removedAnnotation:_0x908ec,previousAnnotation:_0x5d1553,nextAnnotation:_0x452d25}){const _0x2bd0e1=this['getSidebarItemView'](_0x908ec);this[_0xa3c1('0x33')][_0xa3c1('0xb')][_0xa3c1('0x3b')](_0x2bd0e1),this[_0xa3c1('0xa')](_0x908ec),_0x5d1553&&this[_0xa3c1('0x17')](this[_0xa3c1('0x25')](_0x5d1553)),_0x452d25&&this[_0xa3c1('0x17')](this['getSidebarItemView'](_0x452d25)),this[_0xa3c1('0x3f')]();}['refresh']({blurredAnnotation:_0x39f378,activatedAnnotation:_0x46a491,disableAnimationOnActivatedAnnotation:_0xa32ec5}){if(this['_activeAnnotation']=_0x46a491,_0x39f378){_0x39f378[_0xa3c1('0x2b')]=!0x1;const _0x5cce1b=this[_0xa3c1('0x25')](_0x39f378);_0x5cce1b&&_0xa32ec5&&(_0x5cce1b[_0xa3c1('0x41')]=!0x1);}if(_0x46a491){const _0x293fb4=this[_0xa3c1('0x25')](_0x46a491);_0x293fb4&&(_0x46a491[_0xa3c1('0x2b')]=!0x0,_0xa32ec5&&(_0x293fb4['isAnimationDisabled']=!0x0,_0x293fb4[_0xa3c1('0x5')]+=0x1),this[_0xa3c1('0x17')](_0x293fb4));}}[_0xa3c1('0x18')](_0x30e05d){if(this[_0xa3c1('0x33')]['element'][_0xa3c1('0x3b')](),_0x30e05d)for(const _0x21f4f9 of _0x30e05d)this['_destroySidebarItemView'](_0x21f4f9);this[_0xa3c1('0x33')][_0xa3c1('0xb')][_0xa3c1('0x37')](),this[_0xa3c1('0x33')][_0xa3c1('0x15')]='',this[_0xa3c1('0x1a')]=null;}['addAnnotation'](_0x335e95,_0x163e53){_0x163e53||(_0x163e53=_0x335e95[_0xa3c1('0x33')]);const _0x361014=new _0x540326(this[_0xa3c1('0x1d')][_0xa3c1('0x23')]);this['_sidebarItemViewToAnnotation'][_0xa3c1('0x28')](_0x361014,_0x335e95),this['_annotationToSidebarItemView'][_0xa3c1('0x28')](_0x335e95,_0x361014),_0x361014[_0xa3c1('0x45')][_0xa3c1('0x35')](_0x163e53),this[_0xa3c1('0x12')](_0x335e95[_0xa3c1('0x33')],_0xa3c1('0x2e'),(_0x270d1c,_0x48d2e4,_0x38f3b4)=>{const _0x14f694=this[_0xa3c1('0x7')](_0x335e95,_0x38f3b4);_0x361014[_0xa3c1('0x27')]!=_0x14f694&&(_0x361014[_0xa3c1('0x27')]=_0x14f694,this['_setItemTop'](_0x361014,_0x14f694));}),this[_0xa3c1('0x12')](_0x361014,_0xa3c1('0x3a'),()=>{this[_0xa3c1('0x0')](_0x361014,_0xa3c1('0x5'));}),this[_0xa3c1('0x12')](_0x361014,_0xa3c1('0x43'),()=>{this[_0xa3c1('0x0')](_0x361014,_0xa3c1('0x10'));}),this['_alignToTargetRect'](_0x361014);const _0xde18ab=this[_0xa3c1('0x30')](_0x361014);if(_0xde18ab)this[_0xa3c1('0x38')](_0xde18ab,_0x361014)||this[_0xa3c1('0x17')](_0x361014);else this[_0xa3c1('0x17')](_0x361014);return this[_0xa3c1('0x3f')](),this[_0xa3c1('0x33')][_0xa3c1('0xb')][_0xa3c1('0x35')](_0x361014),_0x361014;}[_0xa3c1('0x42')](_0x423e30){if(!_0x423e30[_0xa3c1('0x45')][_0xa3c1('0x1c')])return;const _0x409de4=this[_0xa3c1('0x30')](_0x423e30);if(!_0x409de4)return;const _0x20b66c=this[_0xa3c1('0x2c')][_0xa3c1('0x39')](_0x409de4),_0x228f0b=this['_activeAnnotation'];_0x228f0b&&_0x228f0b===_0x20b66c?this[_0xa3c1('0x38')](_0x409de4,_0x423e30):this['_alignBeforeItem'](_0x423e30,_0x409de4);}[_0xa3c1('0x16')](_0x498a88){if(!_0x498a88[_0xa3c1('0x45')][_0xa3c1('0x1c')])return;const _0x4df91a=this[_0xa3c1('0x1f')](_0x498a88);if(!_0x4df91a)return;const _0xd2bcbd=this['_sidebarItemViewToAnnotation'][_0xa3c1('0x39')](_0x4df91a),_0xd9c232=this['context'][_0xa3c1('0x9')][_0xa3c1('0x39')](_0xa3c1('0x2d')),_0xe9728b=this[_0xa3c1('0x20')];_0xe9728b&&_0xe9728b===_0xd2bcbd&&_0xd9c232?(this['_alignBeforeItem'](_0x4df91a,_0x498a88),this[_0xa3c1('0x38')](_0x498a88,_0x4df91a)):_0xe9728b&&_0xe9728b===_0xd2bcbd?this[_0xa3c1('0x2')](_0x4df91a,_0x498a88):this['_alignAfterItem'](_0x498a88,_0x4df91a);}['_recalculate'](_0x117683,_0x515565){0x0===this[_0xa3c1('0x21')][_0xa3c1('0x1c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1b6f9f,changedProp:_0x366bb5}of this['_recalculateBuffer'])_0xa3c1('0x5')===_0x366bb5?this[_0xa3c1('0x42')](_0x1b6f9f):this['_alignForBottomChange'](_0x1b6f9f);this['_recalculateBuffer']=[];},0xa),this[_0xa3c1('0x21')]['push']({'sidebarItemView':_0x117683,'changedProp':_0x515565});}['getSidebarItemView'](_0x22b5fd){return this[_0xa3c1('0x3e')][_0xa3c1('0x39')](_0x22b5fd);}[_0xa3c1('0x3c')](){this['stopListening'](),this['view'][_0xa3c1('0x3c')]();}[_0xa3c1('0xa')](_0x1aea0a){const _0x5f26f4=this['getSidebarItemView'](_0x1aea0a);this['stopListening'](_0x5f26f4),this[_0xa3c1('0x26')](_0x1aea0a['view']),_0x5f26f4['destroy'](),this[_0xa3c1('0x3e')][_0xa3c1('0x8')](_0x1aea0a),this['_sidebarItemViewToAnnotation']['delete'](_0x5f26f4);}[_0xa3c1('0x2a')](){const _0x37ec8d=new _0x4c842f(this[_0xa3c1('0x1d')][_0xa3c1('0x23')]);return _0x37ec8d[_0xa3c1('0x1e')](),this['on'](_0xa3c1('0x24'),(_0x3dad42,_0x202d03,_0x409e20,_0x2037f9)=>{_0x2037f9&&_0x37ec8d[_0xa3c1('0x3')](_0xa3c1('0x13')),_0x409e20?_0x37ec8d[_0xa3c1('0xd')]('minHeight')['to'](_0x409e20,_0xa3c1('0x10')):_0x37ec8d[_0xa3c1('0x13')]=null;}),_0x37ec8d;}[_0xa3c1('0x3f')](){var _0x2b5ccb;this[_0xa3c1('0x1a')]=(null===(_0x2b5ccb=this[_0xa3c1('0x32')])||void 0x0===_0x2b5ccb?void 0x0:_0x2b5ccb[_0xa3c1('0xc')])?this[_0xa3c1('0x25')](this[_0xa3c1('0x32')]['last']):null;}[_0xa3c1('0x30')](_0x473302){var _0x29d040;const _0x6169c5=this['_sidebarItemViewToAnnotation'][_0xa3c1('0x39')](_0x473302),_0x3d3327=_0x6169c5&&(null===(_0x29d040=this[_0xa3c1('0x32')])||void 0x0===_0x29d040?void 0x0:_0x29d040[_0xa3c1('0x39')](this['_annotations'][_0xa3c1('0x3d')](_0x6169c5)-0x1));return _0x3d3327&&this['getSidebarItemView'](_0x3d3327)||null;}[_0xa3c1('0x1f')](_0x14f48c){var _0x160279;const _0x4c4d34=this[_0xa3c1('0x2c')][_0xa3c1('0x39')](_0x14f48c),_0x284f9e=_0x4c4d34&&(null===(_0x160279=this[_0xa3c1('0x32')])||void 0x0===_0x160279?void 0x0:_0x160279[_0xa3c1('0x39')](this[_0xa3c1('0x32')][_0xa3c1('0x3d')](_0x4c4d34)+0x1));return _0x284f9e&&this['getSidebarItemView'](_0x284f9e)||null;}[_0xa3c1('0x2')](_0x368d9a,_0x4d1aba){_0x368d9a[_0xa3c1('0x40')]();const _0x32daf6=H(_0x4d1aba['bottom']+this[_0xa3c1('0x6')],_0x368d9a[_0xa3c1('0x5')]);return!!_0x32daf6&&(this[_0xa3c1('0x4')](_0x4d1aba,_0x4d1aba[_0xa3c1('0x5')]-_0x32daf6),!0x0);}['_alignAfterItem'](_0x4bc959,_0x2b3abf){_0x4bc959[_0xa3c1('0x40')]();const _0x1366bd=H(_0x4bc959['bottom']+this[_0xa3c1('0x6')],_0x2b3abf[_0xa3c1('0x5')]);return!!_0x1366bd&&(this['_setItemTop'](_0x2b3abf,_0x2b3abf[_0xa3c1('0x5')]+_0x1366bd,!0x1),!0x0);}['_alignToTargetRect'](_0x3004f1){const _0x3bc8c4=this['_sidebarItemViewToAnnotation'][_0xa3c1('0x39')](_0x3004f1);if(!_0x3bc8c4||!_0x3bc8c4[_0xa3c1('0x34')]||!_0x3bc8c4[_0xa3c1('0xe')])return;const _0x2061f5=this['_getTargetTop'](_0x3bc8c4,_0x3bc8c4[_0xa3c1('0xe')]);this[_0xa3c1('0x4')](_0x3004f1,_0x2061f5);}[_0xa3c1('0x7')](_0x253f5e,_0xae821b){if(null===_0xae821b)return 0x0;if(_0x253f5e['target']instanceof _0x4a22f5)return _0xae821b[_0xa3c1('0x5')];{const _0x250313=new _0x4a22f5(this[_0xa3c1('0x33')][_0xa3c1('0x31')])['top'];return _0xae821b[_0xa3c1('0x5')]-_0x250313;}}['_setItemTop'](_0x39809f,_0x4f8b82,_0x482368=this['context'][_0xa3c1('0x9')][_0xa3c1('0x39')](_0xa3c1('0x2d'))){_0x482368&&(_0x4f8b82=Math['max'](_0x4f8b82,this['_getMaxAvailableTop'](_0x39809f))),_0x39809f[_0xa3c1('0x5')]=_0x4f8b82;}[_0xa3c1('0x1')](_0x1a031d){let _0x4171c5=this[_0xa3c1('0x30')](_0x1a031d),_0x1601db=0x0;for(;_0x4171c5;)_0x4171c5[_0xa3c1('0x40')](),_0x1601db+=this[_0xa3c1('0x6')]+_0x4171c5[_0xa3c1('0xf')],_0x4171c5=this[_0xa3c1('0x30')](_0x4171c5);return _0x1601db;}}function H(_0x9ba825,_0x2292b5){return Math[_0xa3c1('0x19')](_0x9ba825-_0x2292b5,0x0);}function y(_0x565371){return null!==_0x565371&&_0xa3c1('0x22')==typeof _0x565371&&0x1===_0x565371[_0xa3c1('0x36')];}
23
+ const _0x2dea=['_getItemAfter','minHeight','_alignForTopChange','top','_spaceBetweenItems','_recalculate','change:_lastItem','change:top','height','pluginName','getIndex','length','_createSidebarView','_alignForBottomChange','view','_alignBeforeItem','stopListening','_activeAnnotation','push','object','getSidebarItemView','context','_targetTop','add','_annotationToSidebarItemView','appendChild','_getMaxAvailableTop','bottom','updateHeight','change:bottom','_alignAfterItem','target','remove','define','max','targetRect','sidebar-setcontainer-invalid-element','last','get','addAnnotation','_destroySidebarItemView','_sidebarItemViewToAnnotation','container','sidebar.preventScrollOutOfView','_getTargetTop','rearrange','unbind','_lastItem','delete','set','content','_recalculateBuffer','locale','class','clear','destroy','isActive','isAnimationDisabled','_attachToContainer','listenTo','element','Sidebar','_alignToTargetRect','init','refresh','_getItemBefore','render','_updateLastItem','_setItemTop','_annotations','list','config','sidebar-attachtocontainer-missing-container','setContainer'];(function(_0x2290a6,_0x2dea96){const _0x4b6f21=function(_0x59d1dd){while(--_0x59d1dd){_0x2290a6['push'](_0x2290a6['shift']());}};_0x4b6f21(++_0x2dea96);}(_0x2dea,0xf5));const _0x4b6f=function(_0x2290a6,_0x2dea96){_0x2290a6=_0x2290a6-0x0;let _0x4b6f21=_0x2dea[_0x2290a6];return _0x4b6f21;};import{ContextPlugin as _0x403b45}from'ckeditor5/src/core';import{Rect as _0x478338,CKEditorError as _0x14fa0c}from'ckeditor5/src/utils';import _0xcda41c from'./view/sidebarview';import _0x4f4d26 from'./view/sidebaritemview';export default class z extends _0x403b45{static get[_0x4b6f('0x3c')](){return _0x4b6f('0x26');}constructor(_0x3c4ae6){super(_0x3c4ae6),this[_0x4b6f('0x1a')](_0x4b6f('0x18'),void 0x0),this[_0x4b6f('0x41')]=this[_0x4b6f('0x3f')](),this[_0x4b6f('0x1a')](_0x4b6f('0x13'),null),this['_spaceBetweenItems']=0x19,this[_0x4b6f('0x12')]=new Map(),this[_0x4b6f('0x1')]=new Map(),this[_0x4b6f('0x48')][_0x4b6f('0x30')][_0x4b6f('0xa')](_0x4b6f('0x14'),!0x1),this[_0x4b6f('0x2e')]=null,this[_0x4b6f('0x44')]=null,this['_recalculateBuffer']=[];}[_0x4b6f('0x28')](){const _0x35d795=this[_0x4b6f('0x48')]['config']['get']('sidebar.container');_0x35d795&&this[_0x4b6f('0x32')](_0x35d795);}[_0x4b6f('0x32')](_0x264dfe){if(!y(_0x264dfe))throw new _0x14fa0c(_0x4b6f('0xd'));this[_0x4b6f('0x13')]=_0x264dfe;}[_0x4b6f('0x23')]({viewClass:_0x4e6841='',spaceBetweenItems:_0x59e735=0x19}={}){if(!y(this[_0x4b6f('0x13')]))throw new _0x14fa0c(_0x4b6f('0x31'),this);this['container'][_0x4b6f('0x2')](this[_0x4b6f('0x41')][_0x4b6f('0x25')]),this['view'][_0x4b6f('0x1e')]=_0x4e6841,this['_spaceBetweenItems']=_0x59e735;}[_0x4b6f('0x16')]({removedAnnotation:_0x4b349b,previousAnnotation:_0x5cf6ee,nextAnnotation:_0x2b67bf}){const _0x4207d2=this[_0x4b6f('0x47')](_0x4b349b);this[_0x4b6f('0x41')][_0x4b6f('0x2f')][_0x4b6f('0x9')](_0x4207d2),this[_0x4b6f('0x11')](_0x4b349b),_0x5cf6ee&&this[_0x4b6f('0x27')](this[_0x4b6f('0x47')](_0x5cf6ee)),_0x2b67bf&&this[_0x4b6f('0x27')](this[_0x4b6f('0x47')](_0x2b67bf)),this[_0x4b6f('0x2c')]();}[_0x4b6f('0x29')]({blurredAnnotation:_0x439d2b,activatedAnnotation:_0x215b8d,disableAnimationOnActivatedAnnotation:_0x3818a0}){if(this[_0x4b6f('0x44')]=_0x215b8d,_0x439d2b){_0x439d2b[_0x4b6f('0x21')]=!0x1;const _0x402889=this[_0x4b6f('0x47')](_0x439d2b);_0x402889&&_0x3818a0&&(_0x402889[_0x4b6f('0x22')]=!0x1);}if(_0x215b8d){const _0xbe8732=this[_0x4b6f('0x47')](_0x215b8d);_0xbe8732&&(_0x215b8d[_0x4b6f('0x21')]=!0x0,_0x3818a0&&(_0xbe8732['isAnimationDisabled']=!0x0,_0xbe8732['top']+=0x1),this['_alignToTargetRect'](_0xbe8732));}}['_detachFromContainer'](_0x19adf5){if(this[_0x4b6f('0x41')]['element'][_0x4b6f('0x9')](),_0x19adf5)for(const _0x33f735 of _0x19adf5)this[_0x4b6f('0x11')](_0x33f735);this[_0x4b6f('0x41')]['list'][_0x4b6f('0x1f')](),this['view'][_0x4b6f('0x1e')]='',this[_0x4b6f('0x18')]=null;}[_0x4b6f('0x10')](_0x3ef30b,_0x342092){_0x342092||(_0x342092=_0x3ef30b['view']);const _0x565431=new _0x4f4d26(this['context'][_0x4b6f('0x1d')]);this[_0x4b6f('0x12')]['set'](_0x565431,_0x3ef30b),this[_0x4b6f('0x1')][_0x4b6f('0x1a')](_0x3ef30b,_0x565431),_0x565431[_0x4b6f('0x1b')]['add'](_0x342092),this[_0x4b6f('0x24')](_0x3ef30b[_0x4b6f('0x41')],'change:targetRect',(_0x306b50,_0xe2a175,_0x3e5056)=>{const _0x2ddf68=this[_0x4b6f('0x15')](_0x3ef30b,_0x3e5056);_0x565431[_0x4b6f('0x49')]!=_0x2ddf68&&(_0x565431['_targetTop']=_0x2ddf68,this['_setItemTop'](_0x565431,_0x2ddf68));}),this[_0x4b6f('0x24')](_0x565431,_0x4b6f('0x3a'),()=>{this[_0x4b6f('0x38')](_0x565431,'top');}),this[_0x4b6f('0x24')](_0x565431,_0x4b6f('0x6'),()=>{this['_recalculate'](_0x565431,_0x4b6f('0x4'));}),this[_0x4b6f('0x27')](_0x565431);const _0x502cce=this[_0x4b6f('0x2a')](_0x565431);if(_0x502cce)this[_0x4b6f('0x7')](_0x502cce,_0x565431)||this[_0x4b6f('0x27')](_0x565431);else this[_0x4b6f('0x27')](_0x565431);return this[_0x4b6f('0x2c')](),this[_0x4b6f('0x41')]['list'][_0x4b6f('0x0')](_0x565431),_0x565431;}[_0x4b6f('0x35')](_0x4590b3){if(!_0x4590b3[_0x4b6f('0x1b')][_0x4b6f('0x3e')])return;const _0x35e3dc=this[_0x4b6f('0x2a')](_0x4590b3);if(!_0x35e3dc)return;const _0x4c8e5e=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x35e3dc),_0x3263ef=this[_0x4b6f('0x44')];_0x3263ef&&_0x3263ef===_0x4c8e5e?this[_0x4b6f('0x7')](_0x35e3dc,_0x4590b3):this[_0x4b6f('0x42')](_0x4590b3,_0x35e3dc);}[_0x4b6f('0x40')](_0x4dbfb0){if(!_0x4dbfb0[_0x4b6f('0x1b')][_0x4b6f('0x3e')])return;const _0x533b16=this[_0x4b6f('0x33')](_0x4dbfb0);if(!_0x533b16)return;const _0x3e8c7b=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x533b16),_0x471fa0=this[_0x4b6f('0x48')]['config']['get']('sidebar.preventScrollOutOfView'),_0xca7cb1=this[_0x4b6f('0x44')];_0xca7cb1&&_0xca7cb1===_0x3e8c7b&&_0x471fa0?(this['_alignBeforeItem'](_0x533b16,_0x4dbfb0),this[_0x4b6f('0x7')](_0x4dbfb0,_0x533b16)):_0xca7cb1&&_0xca7cb1===_0x3e8c7b?this['_alignBeforeItem'](_0x533b16,_0x4dbfb0):this['_alignAfterItem'](_0x4dbfb0,_0x533b16);}['_recalculate'](_0x1144f3,_0x1f2b38){0x0===this[_0x4b6f('0x1c')][_0x4b6f('0x3e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3b7834,changedProp:_0x5635a6}of this[_0x4b6f('0x1c')])_0x4b6f('0x36')===_0x5635a6?this[_0x4b6f('0x35')](_0x3b7834):this[_0x4b6f('0x40')](_0x3b7834);this['_recalculateBuffer']=[];},0xa),this[_0x4b6f('0x1c')][_0x4b6f('0x45')]({'sidebarItemView':_0x1144f3,'changedProp':_0x1f2b38});}['getSidebarItemView'](_0xfd16c3){return this[_0x4b6f('0x1')][_0x4b6f('0xf')](_0xfd16c3);}[_0x4b6f('0x20')](){this[_0x4b6f('0x43')](),this[_0x4b6f('0x41')][_0x4b6f('0x20')]();}['_destroySidebarItemView'](_0x2daff2){const _0x243626=this[_0x4b6f('0x47')](_0x2daff2);this[_0x4b6f('0x43')](_0x243626),this['stopListening'](_0x2daff2['view']),_0x243626[_0x4b6f('0x20')](),this['_annotationToSidebarItemView'][_0x4b6f('0x19')](_0x2daff2),this[_0x4b6f('0x12')][_0x4b6f('0x19')](_0x243626);}['_createSidebarView'](){const _0x23b77c=new _0xcda41c(this[_0x4b6f('0x48')]['locale']);return _0x23b77c[_0x4b6f('0x2b')](),this['on'](_0x4b6f('0x39'),(_0x4e2a0c,_0x3ece92,_0x4b9111,_0x233ec5)=>{_0x233ec5&&_0x23b77c[_0x4b6f('0x17')](_0x4b6f('0x34')),_0x4b9111?_0x23b77c['bind'](_0x4b6f('0x34'))['to'](_0x4b9111,_0x4b6f('0x4')):_0x23b77c['minHeight']=null;}),_0x23b77c;}[_0x4b6f('0x2c')](){var _0x282afa;this[_0x4b6f('0x18')]=(null===(_0x282afa=this['_annotations'])||void 0x0===_0x282afa?void 0x0:_0x282afa['last'])?this[_0x4b6f('0x47')](this[_0x4b6f('0x2e')][_0x4b6f('0xe')]):null;}['_getItemBefore'](_0x49b827){var _0x5aca19;const _0xa6f209=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x49b827),_0x33808c=_0xa6f209&&(null===(_0x5aca19=this[_0x4b6f('0x2e')])||void 0x0===_0x5aca19?void 0x0:_0x5aca19[_0x4b6f('0xf')](this['_annotations'][_0x4b6f('0x3d')](_0xa6f209)-0x1));return _0x33808c&&this[_0x4b6f('0x47')](_0x33808c)||null;}[_0x4b6f('0x33')](_0x55ffe8){var _0x4ed98b;const _0x3910c4=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x55ffe8),_0x401561=_0x3910c4&&(null===(_0x4ed98b=this[_0x4b6f('0x2e')])||void 0x0===_0x4ed98b?void 0x0:_0x4ed98b['get'](this[_0x4b6f('0x2e')]['getIndex'](_0x3910c4)+0x1));return _0x401561&&this['getSidebarItemView'](_0x401561)||null;}[_0x4b6f('0x42')](_0x168c4a,_0x1d7ba4){_0x168c4a[_0x4b6f('0x5')]();const _0x326977=H(_0x1d7ba4[_0x4b6f('0x4')]+this[_0x4b6f('0x37')],_0x168c4a[_0x4b6f('0x36')]);return!!_0x326977&&(this[_0x4b6f('0x2d')](_0x1d7ba4,_0x1d7ba4[_0x4b6f('0x36')]-_0x326977),!0x0);}[_0x4b6f('0x7')](_0x5e3771,_0xc9aa98){_0x5e3771[_0x4b6f('0x5')]();const _0x42ca82=H(_0x5e3771[_0x4b6f('0x4')]+this['_spaceBetweenItems'],_0xc9aa98[_0x4b6f('0x36')]);return!!_0x42ca82&&(this[_0x4b6f('0x2d')](_0xc9aa98,_0xc9aa98[_0x4b6f('0x36')]+_0x42ca82,!0x1),!0x0);}[_0x4b6f('0x27')](_0x50c0c8){const _0x14687c=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x50c0c8);if(!_0x14687c||!_0x14687c['target']||!_0x14687c[_0x4b6f('0xc')])return;const _0x14f974=this[_0x4b6f('0x15')](_0x14687c,_0x14687c[_0x4b6f('0xc')]);this[_0x4b6f('0x2d')](_0x50c0c8,_0x14f974);}['_getTargetTop'](_0x426e3e,_0x5777bb){if(null===_0x5777bb)return 0x0;if(_0x426e3e[_0x4b6f('0x8')]instanceof _0x478338)return _0x5777bb[_0x4b6f('0x36')];{const _0x3df586=new _0x478338(this[_0x4b6f('0x41')][_0x4b6f('0x25')])['top'];return _0x5777bb[_0x4b6f('0x36')]-_0x3df586;}}[_0x4b6f('0x2d')](_0x2353ad,_0x135c97,_0x2dafba=this[_0x4b6f('0x48')][_0x4b6f('0x30')][_0x4b6f('0xf')]('sidebar.preventScrollOutOfView')){_0x2dafba&&(_0x135c97=Math['max'](_0x135c97,this[_0x4b6f('0x3')](_0x2353ad))),_0x2353ad[_0x4b6f('0x36')]=_0x135c97;}[_0x4b6f('0x3')](_0x4c0b50){let _0x225a62=this['_getItemBefore'](_0x4c0b50),_0x2b014f=0x0;for(;_0x225a62;)_0x225a62['updateHeight'](),_0x2b014f+=this[_0x4b6f('0x37')]+_0x225a62[_0x4b6f('0x3b')],_0x225a62=this[_0x4b6f('0x2a')](_0x225a62);return _0x2b014f;}}function H(_0x449219,_0x601d55){return Math[_0x4b6f('0xb')](_0x449219-_0x601d55,0x0);}function y(_0x33f5b6){return null!==_0x33f5b6&&_0x4b6f('0x46')==typeof _0x33f5b6&&0x1===_0x33f5b6['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a10=['ck-annotation-counter','_badge','set','isDirty','toString','setTemplate','annotationType','number','add','ck-annotation-counter__badge','counterView','icon','ck-annotation-counter__badge--','...'];(function(_0x5ad2d0,_0x4a10aa){const _0x326e6f=function(_0x83715b){while(--_0x83715b){_0x5ad2d0['push'](_0x5ad2d0['shift']());}};_0x326e6f(++_0x4a10aa);}(_0x4a10,0x1e1));const _0x326e=function(_0x5ad2d0,_0x4a10aa){_0x5ad2d0=_0x5ad2d0-0x0;let _0x326e6f=_0x4a10[_0x5ad2d0];return _0x326e6f;};import{ButtonView as _0x3d1ecb,View as _0x59b6d7}from'ckeditor5/src/ui';import _0x2d3ecc from'../../../theme/icons/add-comment.svg';export default class D extends _0x3d1ecb{constructor(_0x3173e0){super(_0x3173e0);const _0x207cba=this['bindTemplate'];this['set'](_0x326e('0xc'),!0x1),this[_0x326e('0xb')](_0x326e('0x2'),0x0),this['bind'](_0x326e('0xa'))['to'](this,'isDirty',this,_0x326e('0x2'),(_0x1f435e,_0x35f069)=>_0x1f435e?_0x326e('0x8'):_0x35f069[_0x326e('0xd')]()),this[_0x326e('0xb')](_0x326e('0x1'),''),this[_0x326e('0x6')]=_0x2d3ecc,this['extendTemplate']({'attributes':{'class':[_0x326e('0x9')]}}),this[_0x326e('0x5')]=new _0x59b6d7(),this[_0x326e('0x5')][_0x326e('0x0')]({'tag':'span','attributes':{'class':[_0x326e('0x4'),_0x207cba['to'](_0x326e('0x1'),_0x50a6c7=>_0x326e('0x7')+_0x50a6c7),_0x207cba['if'](_0x326e('0xc'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x207cba['to'](_0x326e('0xa'))}]}),this['children'][_0x326e('0x3')](this[_0x326e('0x5')]);}}
23
+ const _0x17b1=['ck-annotation-counter__badge','icon','add','...','bindTemplate','annotationType','set','number','span','ck-annotation-counter','counterView','isDirty','children','_badge','extendTemplate','bind','ck-annotation-counter__badge--','toString'];(function(_0x1d5d74,_0x17b1c1){const _0x119642=function(_0x409271){while(--_0x409271){_0x1d5d74['push'](_0x1d5d74['shift']());}};_0x119642(++_0x17b1c1);}(_0x17b1,0xdf));const _0x1196=function(_0x1d5d74,_0x17b1c1){_0x1d5d74=_0x1d5d74-0x0;let _0x119642=_0x17b1[_0x1d5d74];return _0x119642;};import{ButtonView as _0x5b540d,View as _0x28263c}from'ckeditor5/src/ui';import _0x25db7f from'../../../theme/icons/add-comment.svg';export default class D extends _0x5b540d{constructor(_0x494ec1){super(_0x494ec1);const _0x28cb39=this[_0x1196('0xf')];this['set']('isDirty',!0x1),this['set'](_0x1196('0x0'),0x0),this[_0x1196('0x8')](_0x1196('0x6'))['to'](this,_0x1196('0x4'),this,_0x1196('0x0'),(_0x311c5d,_0x397791)=>_0x311c5d?_0x1196('0xe'):_0x397791[_0x1196('0xa')]()),this[_0x1196('0x11')](_0x1196('0x10'),''),this[_0x1196('0xc')]=_0x25db7f,this[_0x1196('0x7')]({'attributes':{'class':[_0x1196('0x2')]}}),this[_0x1196('0x3')]=new _0x28263c(),this[_0x1196('0x3')]['setTemplate']({'tag':_0x1196('0x1'),'attributes':{'class':[_0x1196('0xb'),_0x28cb39['to'](_0x1196('0x10'),_0x2d533c=>_0x1196('0x9')+_0x2d533c),_0x28cb39['if'](_0x1196('0x4'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x28cb39['to'](_0x1196('0x6'))}]}),this[_0x1196('0x5')][_0x1196('0xd')](this[_0x1196('0x3')]);}}