@ckeditor/ckeditor5-comments 0.0.0-nightly-20231207.0 → 0.0.0-nightly-20231209.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-20231207.0",
3
+ "version": "0.0.0-nightly-20231209.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-20231207.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20231207.0",
46
+ "ckeditor5": "0.0.0-nightly-20231209.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20231209.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 _0x97f2=['element','function','target','_type','item','destroy','render','_getNormalizedTarget','_assertCorrectTarget','remove','innerView','set','add','focusTracker','object','clear','targetRect','view','focusableElements','nodeType','annotation-invalid-target','type','length','updateTargetRect','offsetParent','isActive','stopListening','filter','_target','mainView','isVisible','every','getClientRects'];(function(_0x537660,_0x97f2b7){const _0x3f9966=function(_0x32064d){while(--_0x32064d){_0x537660['push'](_0x537660['shift']());}};_0x3f9966(++_0x97f2b7);}(_0x97f2,0x1c2));const _0x3f99=function(_0x537660,_0x97f2b7){_0x537660=_0x537660-0x0;let _0x3f9966=_0x97f2[_0x537660];return _0x3f9966;};import{CKEditorError as _0x7911a2,Rect as _0x528439,Collection as _0x1ba301,ObservableMixin as _0x5a5c32}from'ckeditor5/src/utils';export default class d extends _0x5a5c32(){constructor({view:_0x2873c6,target:_0x27fd63,type:_0x196c52,isVisible:_0x47ce57=!0x0}){super(),this[_0x3f99('0x1d')]=_0x2873c6,this[_0x3f99('0x1d')][_0x3f99('0xc')]||this[_0x3f99('0x1d')][_0x3f99('0x12')](),this[_0x3f99('0xf')]=_0x196c52,this['_target']=_0x27fd63,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1ba301([this[_0x3f99('0x1d')][_0x3f99('0xc')]],{'idProperty':'_id'}),this['focusableElements']['on'](_0x3f99('0x18'),(_0x47b855,_0x4d8cce)=>{this['view'][_0x3f99('0x19')][_0x3f99('0x18')](_0x4d8cce);}),this[_0x3f99('0x1e')]['on'](_0x3f99('0x15'),(_0x1937b7,_0x42cd6b)=>{this[_0x3f99('0x1d')][_0x3f99('0x19')][_0x3f99('0x15')](_0x42cd6b);}),this[_0x3f99('0x17')](_0x3f99('0x9'),_0x47ce57);}get[_0x3f99('0x0')](){return _0x3f99('0xd')==typeof this[_0x3f99('0xf')]?this[_0x3f99('0xf')]():this[_0x3f99('0xf')];}get[_0x3f99('0x16')](){return this[_0x3f99('0x1d')][_0x3f99('0x8')];}get['target'](){const _0x44a484=this['_getNormalizedTarget']();return d[_0x3f99('0x14')](_0x44a484),_0x44a484;}get[_0x3f99('0x1c')](){const _0x51c0d4=this[_0x3f99('0xe')];if(null===_0x51c0d4)return null;if(_0x51c0d4 instanceof _0x528439)return _0x51c0d4;const _0x4c32b6=_0x51c0d4[_0x3f99('0x6')](_0x570254=>function(_0x44a555){const _0x343a27=_0x44a555[_0x3f99('0x3')];if(_0x343a27)return!0x0;const _0x1104d8=_0x44a555['getClientRects']()[_0x3f99('0x10')](0x0);return!!_0x1104d8;}(_0x570254));return 0x0===_0x4c32b6[_0x3f99('0x1')]?null:new _0x528439(_0x4c32b6[0x0][_0x3f99('0xb')]()[_0x3f99('0x10')](0x0));}get[_0x3f99('0x4')](){return this[_0x3f99('0x1d')][_0x3f99('0x4')];}set['isActive'](_0x2c2311){this[_0x3f99('0x1d')][_0x3f99('0x4')]=_0x2c2311,this['view'][_0x3f99('0x8')]['isActive']=_0x2c2311;}[_0x3f99('0x2')](){this['view'][_0x3f99('0x1c')]=this[_0x3f99('0x1c')];}[_0x3f99('0x11')](){this[_0x3f99('0x1e')][_0x3f99('0x5')](),this[_0x3f99('0x1e')][_0x3f99('0x1b')](),this[_0x3f99('0x5')]();}['refreshVisibility'](){this[_0x3f99('0x9')]=!!this[_0x3f99('0x1c')];}static[_0x3f99('0x14')](_0x11c25f){if(!(null===_0x11c25f||_0x11c25f instanceof _0x528439||Array['isArray'](_0x11c25f)&&_0x11c25f[_0x3f99('0xa')](_0x5769fb=>y(_0x5769fb))))throw new _0x7911a2(_0x3f99('0x20'),null,{'target':_0x11c25f});}[_0x3f99('0x13')](){const _0x3b6a27='function'==typeof this[_0x3f99('0x7')]?this['_target']():this[_0x3f99('0x7')];return y(_0x3b6a27)?[_0x3b6a27]:_0x3b6a27;}}function y(_0xb6c675){return null!==_0xb6c675&&_0x3f99('0x1a')==typeof _0xb6c675&&_0x3f99('0x1f')in _0xb6c675&&0x1===_0xb6c675['nodeType'];}
23
+ const _0x4ea5=['function','_target','innerView','getClientRects','render','item','target','_getNormalizedTarget','targetRect','isActive','mainView','_assertCorrectTarget','element','isVisible','nodeType','add','type','stopListening','refreshVisibility','_type','length','offsetParent','_id','annotation-invalid-target','focusTracker','focusableElements','isArray','view'];(function(_0x7c6575,_0x4ea535){const _0x207dd6=function(_0x54fab2){while(--_0x54fab2){_0x7c6575['push'](_0x7c6575['shift']());}};_0x207dd6(++_0x4ea535);}(_0x4ea5,0x84));const _0x207d=function(_0x7c6575,_0x4ea535){_0x7c6575=_0x7c6575-0x0;let _0x207dd6=_0x4ea5[_0x7c6575];return _0x207dd6;};import{CKEditorError as _0x2a6541,Rect as _0xf2d3fd,Collection as _0x25d6f7,ObservableMixin as _0x84e879}from'ckeditor5/src/utils';export default class d extends _0x84e879(){constructor({view:_0x156811,target:_0x3bdf40,type:_0xa72538,isVisible:_0xd9f11c=!0x0}){super(),this[_0x207d('0x7')]=_0x156811,this[_0x207d('0x7')]['element']||this[_0x207d('0x7')][_0x207d('0xc')](),this['_type']=_0xa72538,this['_target']=_0x3bdf40,d['_assertCorrectTarget'](this[_0x207d('0xf')]()),this['focusableElements']=new _0x25d6f7([this['view'][_0x207d('0x14')]],{'idProperty':_0x207d('0x2')}),this['focusableElements']['on'](_0x207d('0x17'),(_0x31082c,_0x45055a)=>{this[_0x207d('0x7')][_0x207d('0x4')][_0x207d('0x17')](_0x45055a);}),this[_0x207d('0x5')]['on']('remove',(_0x17f4a4,_0x1e8db7)=>{this[_0x207d('0x7')]['focusTracker']['remove'](_0x1e8db7);}),this['set'](_0x207d('0x15'),_0xd9f11c);}get[_0x207d('0x18')](){return'function'==typeof this['_type']?this[_0x207d('0x1b')]():this[_0x207d('0x1b')];}get[_0x207d('0xa')](){return this['view'][_0x207d('0x12')];}get[_0x207d('0xe')](){const _0x101c48=this['_getNormalizedTarget']();return d[_0x207d('0x13')](_0x101c48),_0x101c48;}get['targetRect'](){const _0x33c16c=this[_0x207d('0xe')];if(null===_0x33c16c)return null;if(_0x33c16c instanceof _0xf2d3fd)return _0x33c16c;const _0x2dc66d=_0x33c16c['filter'](_0x5d54ea=>function(_0x14da21){const _0x9f9a21=_0x14da21[_0x207d('0x1')];if(_0x9f9a21)return!0x0;const _0x588cd3=_0x14da21[_0x207d('0xb')]()['item'](0x0);return!!_0x588cd3;}(_0x5d54ea));return 0x0===_0x2dc66d[_0x207d('0x0')]?null:new _0xf2d3fd(_0x2dc66d[0x0][_0x207d('0xb')]()[_0x207d('0xd')](0x0));}get[_0x207d('0x11')](){return this[_0x207d('0x7')]['isActive'];}set[_0x207d('0x11')](_0x221df3){this[_0x207d('0x7')]['isActive']=_0x221df3,this[_0x207d('0x7')]['mainView'][_0x207d('0x11')]=_0x221df3;}['updateTargetRect'](){this[_0x207d('0x7')]['targetRect']=this[_0x207d('0x10')];}['destroy'](){this[_0x207d('0x5')][_0x207d('0x19')](),this['focusableElements']['clear'](),this['stopListening']();}[_0x207d('0x1a')](){this[_0x207d('0x15')]=!!this[_0x207d('0x10')];}static[_0x207d('0x13')](_0x4ee644){if(!(null===_0x4ee644||_0x4ee644 instanceof _0xf2d3fd||Array[_0x207d('0x6')](_0x4ee644)&&_0x4ee644['every'](_0x1707cf=>y(_0x1707cf))))throw new _0x2a6541(_0x207d('0x3'),null,{'target':_0x4ee644});}[_0x207d('0xf')](){const _0x2d0423=_0x207d('0x8')==typeof this['_target']?this[_0x207d('0x9')]():this[_0x207d('0x9')];return y(_0x2d0423)?[_0x2d0423]:_0x2d0423;}}function y(_0xaaa8e4){return null!==_0xaaa8e4&&'object'==typeof _0xaaa8e4&&_0x207d('0x16')in _0xaaa8e4&&0x1===_0xaaa8e4['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x254d=['from','_focusTracker','length','focus','delete','fire','isFocused','destroy','_innerViewToAnnotation','_sort','stopListening','get','innerView','getByInnerView','targetRect','add','remove','focusableElements','updateTargetRect','view','change:isFocused','focusTracker','clear','_getOrderInContent','_viewToAnnotation','getIndex','has','sort','left','listenTo','annotationcollection-not-existing-item','top','getByView'];(function(_0x42cd86,_0x254d47){const _0x4f7d70=function(_0x3362c8){while(--_0x3362c8){_0x42cd86['push'](_0x42cd86['shift']());}};_0x4f7d70(++_0x254d47);}(_0x254d,0x17c));const _0x4f7d=function(_0x42cd86,_0x254d47){_0x42cd86=_0x42cd86-0x0;let _0x4f7d70=_0x254d[_0x42cd86];return _0x4f7d70;};import{CKEditorError as _0x1c8689,Collection as _0x2017fe,FocusTracker as _0x4f896f}from'ckeditor5/src/utils';export default class x extends _0x2017fe{constructor(_0x23c5a4=[]){super(),this[_0x4f7d('0x18')]=new Map(),this[_0x4f7d('0x7')]=new Map(),this['_focusTracker']=new _0x4f896f(),this[_0x4f7d('0x11')]['on'](_0x4f7d('0x3'),(_0x45fa2a,_0xc1c9f4,_0x5c031c)=>{_0x5c031c||this[_0x4f7d('0x15')]('blur');});for(const _0x2bbbe7 of _0x23c5a4)this[_0x4f7d('0x1f')](_0x2bbbe7);}get[_0x4f7d('0x16')](){return this['_focusTracker'][_0x4f7d('0x16')];}[_0x4f7d('0x1f')](_0x27d228){if(this[_0x4f7d('0x9')](_0x27d228))throw new _0x1c8689('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x27d228[_0x4f7d('0x1c')],_0x27d228),this['_viewToAnnotation']['set'](_0x27d228[_0x4f7d('0x2')],_0x27d228);for(const _0x526029 of _0x27d228[_0x4f7d('0x0')])this[_0x4f7d('0x11')][_0x4f7d('0x1f')](_0x526029);this[_0x4f7d('0xc')](_0x27d228[_0x4f7d('0x0')],_0x4f7d('0x1f'),(_0x2f7fb3,_0x46d69c)=>{this[_0x4f7d('0x11')][_0x4f7d('0x1f')](_0x46d69c);}),this['listenTo'](_0x27d228[_0x4f7d('0x0')],_0x4f7d('0x20'),(_0x44818a,_0x2c134e)=>{this[_0x4f7d('0x11')][_0x4f7d('0x20')](_0x2c134e);}),this['listenTo'](_0x27d228[_0x4f7d('0x2')]['focusTracker'],_0x4f7d('0x3'),(_0x2b05ce,_0x44e8a7,_0x29a2bb)=>{_0x29a2bb&&this[_0x4f7d('0x15')](_0x4f7d('0x13'),_0x27d228);}),_0x27d228['updateTargetRect']();const _0x12d8fd=this[_0x4f7d('0x6')](_0x27d228[_0x4f7d('0x2')][_0x4f7d('0x1e')]);return super['add'](_0x27d228,_0x12d8fd);}[_0x4f7d('0x20')](_0x2b6966){if(!this[_0x4f7d('0x9')](_0x2b6966))throw new _0x1c8689(_0x4f7d('0xd'),null);this[_0x4f7d('0x1a')](_0x2b6966[_0x4f7d('0x2')][_0x4f7d('0x4')]),this['stopListening'](_0x2b6966['focusableElements']);for(const _0x47d24c of _0x2b6966[_0x4f7d('0x0')])this[_0x4f7d('0x11')][_0x4f7d('0x20')](_0x47d24c);return this[_0x4f7d('0x7')]['delete'](_0x2b6966[_0x4f7d('0x2')]),this[_0x4f7d('0x18')][_0x4f7d('0x14')](_0x2b6966[_0x4f7d('0x1c')]),super['remove'](_0x2b6966);}[_0x4f7d('0x1d')](_0x537dfc){return this[_0x4f7d('0x18')][_0x4f7d('0x1b')](_0x537dfc);}[_0x4f7d('0xf')](_0x4945bd){return this[_0x4f7d('0x7')][_0x4f7d('0x1b')](_0x4945bd);}[_0x4f7d('0x17')](){super[_0x4f7d('0x5')](),this['stopListening'](),this[_0x4f7d('0x18')][_0x4f7d('0x5')](),this[_0x4f7d('0x7')]['clear'](),this[_0x4f7d('0x11')]['destroy']();}['refreshPositioning'](){for(const _0x262e2b of this)_0x262e2b[_0x4f7d('0x1')]();this[_0x4f7d('0x19')]();}[_0x4f7d('0x19')](){const _0x2eb82e=Array[_0x4f7d('0x10')](this)[_0x4f7d('0xa')]((_0x6288bc,_0x519eae)=>v(_0x6288bc[_0x4f7d('0x2')][_0x4f7d('0x1e')],_0x519eae[_0x4f7d('0x2')][_0x4f7d('0x1e')]));for(let _0x1abed7=_0x2eb82e['length']-0x1;_0x1abed7>0x0;_0x1abed7--){const _0x6fbb09=_0x2eb82e[_0x1abed7];_0x1abed7!==this[_0x4f7d('0x8')](_0x6fbb09)&&(this[_0x4f7d('0x20')](_0x6fbb09),this[_0x4f7d('0x1f')](_0x6fbb09));}}['_getOrderInContent'](_0x3ffb70){let _0x232175=0x0;if(!_0x3ffb70)return this[_0x4f7d('0x12')];for(const _0x5b1ad3 of this){const _0x514eef=_0x5b1ad3['view'][_0x4f7d('0x1e')];if(_0x514eef){if(v(_0x3ffb70,_0x514eef)<0x0)return _0x232175;_0x232175++;}}return _0x232175;}}export function bindAnnotationCollections({source:_0x3d3ec9,target:_0x128b60,filter:_0x2eb6f2}){for(const _0x13100b of _0x3d3ec9)_0x2eb6f2(_0x13100b)&&_0x128b60[_0x4f7d('0x1f')](_0x13100b);_0x128b60[_0x4f7d('0xc')](_0x3d3ec9,_0x4f7d('0x1f'),(_0x40d77b,_0x1f3387)=>{_0x2eb6f2(_0x1f3387)&&_0x128b60[_0x4f7d('0x1f')](_0x1f3387);}),_0x128b60['listenTo'](_0x3d3ec9,'remove',(_0x2078be,_0x19730a)=>{_0x128b60[_0x4f7d('0x9')](_0x19730a)&&_0x128b60[_0x4f7d('0x20')](_0x19730a);});}function v(_0x184799,_0x3fd42a){if(null===_0x184799&&null===_0x3fd42a)return 0x0;if(null===_0x184799)return-0x1;if(null===_0x3fd42a)return 0x1;const _0x34efd6=_0x184799['top']-_0x3fd42a[_0x4f7d('0xe')];return 0x0==_0x34efd6?_0x184799[_0x4f7d('0xb')]-_0x3fd42a['left']:_0x34efd6;}
23
+ const _0x59d9=['change:isFocused','remove','destroy','stopListening','_viewToAnnotation','listenTo','delete','innerView','sort','set','length','has','from','get','focusTracker','_sort','add','annotationcollection-duplicated-item','getByView','getIndex','focus','updateTargetRect','_focusTracker','isFocused','view','focusableElements','top','left','_getOrderInContent','_innerViewToAnnotation','clear','fire','targetRect'];(function(_0xf0a3cb,_0x59d9ba){const _0xaadc71=function(_0x5dfcfb){while(--_0x5dfcfb){_0xf0a3cb['push'](_0xf0a3cb['shift']());}};_0xaadc71(++_0x59d9ba);}(_0x59d9,0xa3));const _0xaadc=function(_0xf0a3cb,_0x59d9ba){_0xf0a3cb=_0xf0a3cb-0x0;let _0xaadc71=_0x59d9[_0xf0a3cb];return _0xaadc71;};import{CKEditorError as _0x19657a,Collection as _0x456172,FocusTracker as _0x18e597}from'ckeditor5/src/utils';export default class x extends _0x456172{constructor(_0x2b4751=[]){super(),this[_0xaadc('0x1f')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0xaadc('0x18')]=new _0x18e597(),this[_0xaadc('0x18')]['on'](_0xaadc('0x2'),(_0x1ac030,_0x2cc73e,_0x38107d)=>{_0x38107d||this['fire']('blur');});for(const _0x5d0641 of _0x2b4751)this['add'](_0x5d0641);}get[_0xaadc('0x19')](){return this[_0xaadc('0x18')]['isFocused'];}[_0xaadc('0x12')](_0x371b6b){if(this[_0xaadc('0xd')](_0x371b6b))throw new _0x19657a(_0xaadc('0x13'),null);this[_0xaadc('0x1f')][_0xaadc('0xb')](_0x371b6b[_0xaadc('0x9')],_0x371b6b),this[_0xaadc('0x6')][_0xaadc('0xb')](_0x371b6b[_0xaadc('0x1a')],_0x371b6b);for(const _0x475c22 of _0x371b6b[_0xaadc('0x1b')])this[_0xaadc('0x18')]['add'](_0x475c22);this[_0xaadc('0x7')](_0x371b6b[_0xaadc('0x1b')],_0xaadc('0x12'),(_0x1b9ecd,_0x17d5c3)=>{this['_focusTracker'][_0xaadc('0x12')](_0x17d5c3);}),this[_0xaadc('0x7')](_0x371b6b['focusableElements'],_0xaadc('0x3'),(_0x20a244,_0x487631)=>{this[_0xaadc('0x18')][_0xaadc('0x3')](_0x487631);}),this[_0xaadc('0x7')](_0x371b6b['view'][_0xaadc('0x10')],_0xaadc('0x2'),(_0x36d5a1,_0x46f312,_0x5b1636)=>{_0x5b1636&&this[_0xaadc('0x0')](_0xaadc('0x16'),_0x371b6b);}),_0x371b6b[_0xaadc('0x17')]();const _0x5b34c5=this[_0xaadc('0x1e')](_0x371b6b['view']['targetRect']);return super[_0xaadc('0x12')](_0x371b6b,_0x5b34c5);}[_0xaadc('0x3')](_0x14c520){if(!this['has'](_0x14c520))throw new _0x19657a('annotationcollection-not-existing-item',null);this['stopListening'](_0x14c520[_0xaadc('0x1a')]['focusTracker']),this[_0xaadc('0x5')](_0x14c520['focusableElements']);for(const _0x5ec6ad of _0x14c520[_0xaadc('0x1b')])this[_0xaadc('0x18')][_0xaadc('0x3')](_0x5ec6ad);return this['_viewToAnnotation'][_0xaadc('0x8')](_0x14c520[_0xaadc('0x1a')]),this[_0xaadc('0x1f')][_0xaadc('0x8')](_0x14c520['innerView']),super['remove'](_0x14c520);}['getByInnerView'](_0x519e2b){return this[_0xaadc('0x1f')][_0xaadc('0xf')](_0x519e2b);}[_0xaadc('0x14')](_0x2cc176){return this[_0xaadc('0x6')][_0xaadc('0xf')](_0x2cc176);}[_0xaadc('0x4')](){super[_0xaadc('0x20')](),this[_0xaadc('0x5')](),this[_0xaadc('0x1f')][_0xaadc('0x20')](),this[_0xaadc('0x6')]['clear'](),this[_0xaadc('0x18')][_0xaadc('0x4')]();}['refreshPositioning'](){for(const _0x2dcb42 of this)_0x2dcb42['updateTargetRect']();this[_0xaadc('0x11')]();}['_sort'](){const _0x16ea7f=Array[_0xaadc('0xe')](this)[_0xaadc('0xa')]((_0x582822,_0x5b5917)=>v(_0x582822['view'][_0xaadc('0x1')],_0x5b5917[_0xaadc('0x1a')]['targetRect']));for(let _0x5158d5=_0x16ea7f[_0xaadc('0xc')]-0x1;_0x5158d5>0x0;_0x5158d5--){const _0x27013a=_0x16ea7f[_0x5158d5];_0x5158d5!==this[_0xaadc('0x15')](_0x27013a)&&(this[_0xaadc('0x3')](_0x27013a),this[_0xaadc('0x12')](_0x27013a));}}[_0xaadc('0x1e')](_0x2ae518){let _0xd172df=0x0;if(!_0x2ae518)return this[_0xaadc('0xc')];for(const _0x5d3a78 of this){const _0x465e24=_0x5d3a78[_0xaadc('0x1a')][_0xaadc('0x1')];if(_0x465e24){if(v(_0x2ae518,_0x465e24)<0x0)return _0xd172df;_0xd172df++;}}return _0xd172df;}}export function bindAnnotationCollections({source:_0x3bb8d4,target:_0x3ea0de,filter:_0x3ebfb2}){for(const _0x2216c9 of _0x3bb8d4)_0x3ebfb2(_0x2216c9)&&_0x3ea0de[_0xaadc('0x12')](_0x2216c9);_0x3ea0de[_0xaadc('0x7')](_0x3bb8d4,'add',(_0x103118,_0x2a6060)=>{_0x3ebfb2(_0x2a6060)&&_0x3ea0de[_0xaadc('0x12')](_0x2a6060);}),_0x3ea0de['listenTo'](_0x3bb8d4,_0xaadc('0x3'),(_0x1ab31f,_0x287ed4)=>{_0x3ea0de[_0xaadc('0xd')](_0x287ed4)&&_0x3ea0de[_0xaadc('0x3')](_0x287ed4);});}function v(_0x445160,_0x4caea6){if(null===_0x445160&&null===_0x4caea6)return 0x0;if(null===_0x445160)return-0x1;if(null===_0x4caea6)return 0x1;const _0x520649=_0x445160[_0xaadc('0x1c')]-_0x4caea6[_0xaadc('0x1c')];return 0x0==_0x520649?_0x445160[_0xaadc('0x1d')]-_0x4caea6[_0xaadc('0x1d')]:_0x520649;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d6b=['deactivateAll','remove','view','_deactivateAllAnnotations','destroy','refreshPositioning','Annotations','focusTracker','has','refreshVisibility','element','getByInnerView','_removeActiveAnnotation','listenTo','collection','activate','add','fire','activeAnnotations','isVisible','set','pluginName','change:isVisible','source','_bindAnnotationsToVisibleAnnotations','_activateAnnotation','_visibleAnnotations','createAnnotationView'];(function(_0x5cacfd,_0x2d6b3e){const _0x571feb=function(_0x9dc933){while(--_0x9dc933){_0x5cacfd['push'](_0x5cacfd['shift']());}};_0x571feb(++_0x2d6b3e);}(_0x2d6b,0x1e9));const _0x571f=function(_0x5cacfd,_0x2d6b3e){_0x5cacfd=_0x5cacfd-0x0;let _0x571feb=_0x2d6b[_0x5cacfd];return _0x571feb;};import{ContextPlugin as _0x1d864b}from'ckeditor5/src/core';import _0x4c2162 from'./annotation';import _0x4de8da from'./annotationcollection';import _0x6573d from'./view/annotationview';export default class b extends _0x1d864b{static get[_0x571f('0x8')](){return _0x571f('0x15');}constructor(_0x3a369d){super(_0x3a369d),this['collection']=new _0x4de8da(),this[_0x571f('0xd')]=new _0x4de8da(),this[_0x571f('0x7')](_0x571f('0x5'),new Set()),this[_0x571f('0xb')]();}[_0x571f('0x3')](_0x8f96ae){this[_0x571f('0x1')][_0x571f('0x3')](_0x8f96ae);}[_0x571f('0x10')](_0x3b3a50){this[_0x571f('0x1')][_0x571f('0x10')](_0x3b3a50),_0x3b3a50[_0x571f('0x13')]();}['refreshVisibility'](){for(const _0x473a1c of this[_0x571f('0x1')])_0x473a1c[_0x571f('0x18')]();}[_0x571f('0x14')](){this['_visibleAnnotations'][_0x571f('0x14')]();}['getByInnerView'](_0x10f577){return this[_0x571f('0x1')][_0x571f('0x1a')](_0x10f577);}[_0x571f('0xf')](){this[_0x571f('0x4')](_0x571f('0x12'));}['destroy'](){for(const _0x8bed35 of this[_0x571f('0x1')])_0x8bed35['destroy']();this[_0x571f('0xd')][_0x571f('0x13')](),this['collection'][_0x571f('0x13')](),super[_0x571f('0x13')]();}[_0x571f('0x2')](_0xdf1b5c){this[_0x571f('0x4')](_0x571f('0xc'),_0xdf1b5c);}['createAnnotation'](_0x32a109){return new _0x4c2162(_0x32a109);}[_0x571f('0xe')](_0x1ea484,_0x21b289){return new _0x6573d(_0x1ea484,_0x21b289);}['_addActiveAnnotation'](_0x5c36ce){const _0x4b84f0=new Set(this[_0x571f('0x5')]);_0x4b84f0[_0x571f('0x3')](_0x5c36ce),this[_0x571f('0x5')]=_0x4b84f0;}[_0x571f('0x1b')](_0x22dfbc){const _0x4849c9=new Set(this[_0x571f('0x5')]);_0x4849c9['delete'](_0x22dfbc),this['activeAnnotations']=_0x4849c9;}[_0x571f('0xb')](){const _0xd321a4=this[_0x571f('0x1')],_0xb103f9=this[_0x571f('0xd')];function _0x64881a(_0x2afcde){const _0x273db8=_0x2afcde[_0x571f('0xa')];_0x273db8[_0x571f('0x6')]&&!_0xb103f9[_0x571f('0x17')](_0x273db8)?_0xb103f9[_0x571f('0x3')](_0x273db8):!_0x273db8[_0x571f('0x6')]&&_0xb103f9[_0x571f('0x17')](_0x273db8)&&_0xb103f9[_0x571f('0x10')](_0x273db8),_0x273db8[_0x571f('0x11')][_0x571f('0x16')][_0x571f('0x10')](_0x273db8['view'][_0x571f('0x19')]),_0x273db8[_0x571f('0x11')]['focusTracker'][_0x571f('0x3')](_0x273db8[_0x571f('0x11')][_0x571f('0x19')]);}this[_0x571f('0x0')](_0xd321a4,_0x571f('0x3'),(_0x44e10e,_0x5cd7c4)=>{_0x5cd7c4[_0x571f('0x6')]&&_0xb103f9[_0x571f('0x3')](_0x5cd7c4),this[_0x571f('0x0')](_0x5cd7c4,_0x571f('0x9'),_0x64881a);}),this[_0x571f('0x0')](_0xd321a4,'remove',(_0x4157d7,_0x57bdff)=>{_0xb103f9[_0x571f('0x17')](_0x57bdff)&&_0xb103f9[_0x571f('0x10')](_0x57bdff),this['stopListening'](_0x57bdff,_0x571f('0x9'),_0x64881a);});}}
23
+ const _0x5c6c=['pluginName','focusTracker','add','_visibleAnnotations','createAnnotation','fire','getByInnerView','isVisible','_bindAnnotationsToVisibleAnnotations','source','collection','activate','delete','set','_deactivateAllAnnotations','element','refreshVisibility','Annotations','change:isVisible','_addActiveAnnotation','view','has','remove','destroy','deactivateAll','refreshPositioning','_removeActiveAnnotation','activeAnnotations','listenTo'];(function(_0x3f1f68,_0x5c6caf){const _0x290336=function(_0x43c1d6){while(--_0x43c1d6){_0x3f1f68['push'](_0x3f1f68['shift']());}};_0x290336(++_0x5c6caf);}(_0x5c6c,0x16d));const _0x2903=function(_0x3f1f68,_0x5c6caf){_0x3f1f68=_0x3f1f68-0x0;let _0x290336=_0x5c6c[_0x3f1f68];return _0x290336;};import{ContextPlugin as _0x1854c8}from'ckeditor5/src/core';import _0x26cfaf from'./annotation';import _0x14db80 from'./annotationcollection';import _0x1a5648 from'./view/annotationview';export default class b extends _0x1854c8{static get[_0x2903('0xc')](){return _0x2903('0x0');}constructor(_0x3b85d5){super(_0x3b85d5),this[_0x2903('0x16')]=new _0x14db80(),this['_visibleAnnotations']=new _0x14db80(),this[_0x2903('0x19')](_0x2903('0xa'),new Set()),this[_0x2903('0x14')]();}[_0x2903('0xe')](_0x26b81d){this['collection']['add'](_0x26b81d);}[_0x2903('0x5')](_0x4bc1eb){this[_0x2903('0x16')]['remove'](_0x4bc1eb),_0x4bc1eb['destroy']();}[_0x2903('0x1c')](){for(const _0x385856 of this[_0x2903('0x16')])_0x385856[_0x2903('0x1c')]();}[_0x2903('0x8')](){this[_0x2903('0xf')][_0x2903('0x8')]();}['getByInnerView'](_0x26ed32){return this[_0x2903('0x16')][_0x2903('0x12')](_0x26ed32);}[_0x2903('0x7')](){this['fire'](_0x2903('0x1a'));}[_0x2903('0x6')](){for(const _0x4021bc of this[_0x2903('0x16')])_0x4021bc['destroy']();this[_0x2903('0xf')][_0x2903('0x6')](),this['collection'][_0x2903('0x6')](),super['destroy']();}[_0x2903('0x17')](_0x72ae36){this[_0x2903('0x11')]('_activateAnnotation',_0x72ae36);}[_0x2903('0x10')](_0x1d4865){return new _0x26cfaf(_0x1d4865);}['createAnnotationView'](_0x3fa36b,_0x5af52c){return new _0x1a5648(_0x3fa36b,_0x5af52c);}[_0x2903('0x2')](_0x1adc58){const _0x8c2e9c=new Set(this[_0x2903('0xa')]);_0x8c2e9c['add'](_0x1adc58),this[_0x2903('0xa')]=_0x8c2e9c;}[_0x2903('0x9')](_0x29189f){const _0x5c3480=new Set(this[_0x2903('0xa')]);_0x5c3480[_0x2903('0x18')](_0x29189f),this[_0x2903('0xa')]=_0x5c3480;}['_bindAnnotationsToVisibleAnnotations'](){const _0x101f3d=this[_0x2903('0x16')],_0x182c06=this['_visibleAnnotations'];function _0x52bf67(_0x20fdba){const _0x5b5088=_0x20fdba[_0x2903('0x15')];_0x5b5088[_0x2903('0x13')]&&!_0x182c06[_0x2903('0x4')](_0x5b5088)?_0x182c06[_0x2903('0xe')](_0x5b5088):!_0x5b5088['isVisible']&&_0x182c06[_0x2903('0x4')](_0x5b5088)&&_0x182c06[_0x2903('0x5')](_0x5b5088),_0x5b5088[_0x2903('0x3')][_0x2903('0xd')][_0x2903('0x5')](_0x5b5088[_0x2903('0x3')][_0x2903('0x1b')]),_0x5b5088[_0x2903('0x3')][_0x2903('0xd')][_0x2903('0xe')](_0x5b5088['view'][_0x2903('0x1b')]);}this[_0x2903('0xb')](_0x101f3d,'add',(_0x59d227,_0x367841)=>{_0x367841[_0x2903('0x13')]&&_0x182c06[_0x2903('0xe')](_0x367841),this[_0x2903('0xb')](_0x367841,_0x2903('0x1'),_0x52bf67);}),this[_0x2903('0xb')](_0x101f3d,_0x2903('0x5'),(_0x3a4e12,_0x11bd9a)=>{_0x182c06['has'](_0x11bd9a)&&_0x182c06[_0x2903('0x5')](_0x11bd9a),this['stopListening'](_0x11bd9a,_0x2903('0x1'),_0x52bf67);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5562=['pluginName','_assertAnnotationDoesNotBelongToMultipleUIs','refilterAnnotations','hasActive','detach','_uisData','_uis','deactivateAll','_visibleAnnotations','register','_activateAnnotation','annotationsuis-register-invalid-interface','type','function','filter','annotationsuis-missing-ui','delete','activeAnnotations','change:activeAnnotation','setActiveAnnotation','plugins','isActive','from','_setSelectedAnnotations','activate','has','activeUIs','set','size','remove','destroy','annotationsuis-annotation-mismatch','context','get','AnnotationsUIs','length','_addActiveAnnotation','collection','_removeActiveAnnotation','switchTo','add','init','push','listenTo'];(function(_0x2f20e4,_0x5562ea){const _0x5e5317=function(_0x50af53){while(--_0x50af53){_0x2f20e4['push'](_0x2f20e4['shift']());}};_0x5e5317(++_0x5562ea);}(_0x5562,0x12a));const _0x5e53=function(_0x2f20e4,_0x5562ea){_0x2f20e4=_0x2f20e4-0x0;let _0x5e5317=_0x5562[_0x2f20e4];return _0x5e5317;};import{ContextPlugin as _0x3e9f65}from'ckeditor5/src/core';import{CKEditorError as _0x28b7a3}from'ckeditor5/src/utils';import _0x5a4cbc,{bindAnnotationCollections as _0x3d5806}from'./annotationcollection';import _0x5f0171 from'./annotations';export default class M extends _0x3e9f65{static get['requires'](){return[_0x5f0171];}static get[_0x5e53('0xa')](){return _0x5e53('0x0');}constructor(_0x338657){super(_0x338657),this[_0x5e53('0x24')]=new Set(),this[_0x5e53('0x10')]=new Map(),this[_0x5e53('0xf')]=new Map();}[_0x5e53('0x7')](){const _0x3ebdff=this[_0x5e53('0x2a')][_0x5e53('0x1e')][_0x5e53('0x2b')](_0x5f0171);this[_0x5e53('0x9')](_0x3ebdff,_0x5e53('0x14'),(_0x19a058,_0x4946e9)=>{for(const _0x1e968c of this[_0x5e53('0x24')]){const _0x1b5185=this[_0x5e53('0x10')]['get'](_0x1e968c);(0x0,this[_0x5e53('0xf')][_0x5e53('0x2b')](_0x1e968c)[_0x5e53('0x18')])(_0x4946e9)&&_0x1b5185['setActiveAnnotation'](_0x4946e9);}}),this[_0x5e53('0x9')](_0x3ebdff,'_deactivateAllAnnotations',()=>{for(const _0x185740 of this[_0x5e53('0x24')]){this[_0x5e53('0x10')][_0x5e53('0x2b')](_0x185740)['setActiveAnnotation'](null);}}),this[_0x5e53('0x9')](_0x3ebdff[_0x5e53('0x12')],_0x5e53('0x6'),(_0x4970ee,_0x55ad31)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x55ad31);});}[_0x5e53('0xd')](){return this['activeUIs'][_0x5e53('0x26')]>0x0;}[_0x5e53('0x1f')](_0x1251c5){return this[_0x5e53('0x24')]['has'](_0x1251c5);}[_0x5e53('0x22')](_0x173401,_0x44ab56=()=>!0x0){const _0x11b265=this[_0x5e53('0x2a')][_0x5e53('0x1e')]['get'](_0x5f0171);if(!this[_0x5e53('0x10')][_0x5e53('0x23')](_0x173401))throw new _0x28b7a3('annotationsuis-missing-ui',this,{'uiName':_0x173401});this[_0x5e53('0x1f')](_0x173401)&&this['deactivate'](_0x173401),this['activeUIs']['add'](_0x173401);const _0x8d23d6=new _0x5a4cbc(),_0x4b892a=_0x11b265[_0x5e53('0x12')];_0x3d5806({'source':_0x4b892a,'target':_0x8d23d6,'filter':_0x44ab56}),this[_0x5e53('0xf')]['set'](_0x173401,{'collection':_0x8d23d6,'filter':_0x44ab56});const _0x1d1207=this[_0x5e53('0x10')][_0x5e53('0x2b')](_0x173401);_0x1d1207['attach'](_0x8d23d6),this[_0x5e53('0x9')](_0x1d1207,_0x5e53('0x1c'),(_0x197848,_0x217d02,_0x3154da,_0x5170d5)=>{_0x5170d5&&_0x11b265[_0x5e53('0x4')](_0x5170d5),_0x3154da&&_0x11b265[_0x5e53('0x2')](_0x3154da);});}['deactivate'](_0x310701){if(this[_0x5e53('0x24')]['delete'](_0x310701),!this[_0x5e53('0x10')]['has'](_0x310701))throw new _0x28b7a3(_0x5e53('0x19'),this,{'uiName':_0x310701});const _0x766ec=this[_0x5e53('0x10')]['get'](_0x310701);_0x766ec[_0x5e53('0xe')](),this['stopListening'](_0x766ec),this[_0x5e53('0xf')]['get'](_0x310701)[_0x5e53('0x3')]['destroy'](),this['_uisData'][_0x5e53('0x1a')](_0x310701);}[_0x5e53('0x5')](_0x33f8a4){if(!this['_uis']['has'](_0x33f8a4))throw new _0x28b7a3('annotationsuis-missing-ui',this,{'uiName':_0x33f8a4});const _0x3879e9=this['context']['plugins'][_0x5e53('0x2b')](_0x5f0171),_0x148a07=Array[_0x5e53('0x20')](_0x3879e9[_0x5e53('0x1b')])[0x0]||null;this[_0x5e53('0x11')](),this[_0x5e53('0x22')](_0x33f8a4);const _0x2cc2b8=this[_0x5e53('0x10')][_0x5e53('0x2b')](_0x33f8a4);_0x2cc2b8['setActiveAnnotation'](_0x148a07),_0x2cc2b8['_setSelectedAnnotations']&&_0x148a07&&_0x2cc2b8[_0x5e53('0x21')]([_0x148a07]);}[_0x5e53('0x11')](){for(const _0x504414 of this['activeUIs'])this['deactivate'](_0x504414);}[_0x5e53('0x13')](_0x5647c7,_0xbcbd92){if(this[_0x5e53('0x10')][_0x5e53('0x23')](_0x5647c7))throw new _0x28b7a3('annotationsuis-register-already-registered');if('function'!=typeof _0xbcbd92['attach']||_0x5e53('0x17')!=typeof _0xbcbd92[_0x5e53('0xe')]||_0x5e53('0x17')!=typeof _0xbcbd92[_0x5e53('0x1d')])throw new _0x28b7a3(_0x5e53('0x15'),null);this[_0x5e53('0x10')][_0x5e53('0x25')](_0x5647c7,_0xbcbd92);}[_0x5e53('0xc')](){const _0x1dbe69=this['context'][_0x5e53('0x1e')]['get'](_0x5f0171)['collection'],_0x1a915e=new Map(),_0x148684=Array['from'](this[_0x5e53('0x24')]);for(const _0x4b3fdb of this[_0x5e53('0x24')]){const _0x9bde26=this[_0x5e53('0xf')][_0x5e53('0x2b')](_0x4b3fdb)[_0x5e53('0x3')];for(const _0x19817a of _0x9bde26)_0x1a915e[_0x5e53('0x25')](_0x19817a,_0x4b3fdb);}for(const _0x27e9f5 of _0x1dbe69){const _0x3ba3d2=_0x1a915e['get'](_0x27e9f5);this[_0x5e53('0xb')](_0x27e9f5);const _0x4ef25c=_0x148684['find'](_0xc9bb91=>this[_0x5e53('0xf')][_0x5e53('0x2b')](_0xc9bb91)['filter'](_0x27e9f5));_0x3ba3d2!==_0x4ef25c&&(_0x3ba3d2&&this[_0x5e53('0xf')][_0x5e53('0x2b')](_0x3ba3d2)[_0x5e53('0x3')][_0x5e53('0x27')](_0x27e9f5),_0x4ef25c&&this[_0x5e53('0xf')][_0x5e53('0x2b')](_0x4ef25c)[_0x5e53('0x3')][_0x5e53('0x6')](_0x27e9f5));}}['destroy'](){this[_0x5e53('0x11')](),super[_0x5e53('0x28')]();}[_0x5e53('0xb')](_0x25f9df){const _0x401ebc=[];for(const _0x1f796 of this[_0x5e53('0x24')]){(0x0,this['_uisData']['get'](_0x1f796)[_0x5e53('0x18')])(_0x25f9df)&&_0x401ebc[_0x5e53('0x8')](_0x1f796);}if(_0x401ebc[_0x5e53('0x1')]>0x1)throw new _0x28b7a3(_0x5e53('0x29'),null,{'matchedUIs':_0x401ebc,'annotationType':_0x25f9df[_0x5e53('0x16')]});}}
23
+ const _0x3d26=['function','_setSelectedAnnotations','annotationsuis-register-already-registered','switchTo','plugins','isActive','activate','type','deactivate','annotationsuis-missing-ui','init','annotationsuis-register-invalid-interface','listenTo','AnnotationsUIs','activeUIs','find','hasActive','_addActiveAnnotation','_uisData','size','refilterAnnotations','_removeActiveAnnotation','deactivateAll','set','_visibleAnnotations','attach','_activateAnnotation','detach','filter','register','get','push','pluginName','_assertAnnotationDoesNotBelongToMultipleUIs','from','context','add','collection','requires','has','_uis','destroy','setActiveAnnotation','length','activeAnnotations'];(function(_0x59745c,_0x3d2624){const _0x466dfc=function(_0x3f0679){while(--_0x3f0679){_0x59745c['push'](_0x59745c['shift']());}};_0x466dfc(++_0x3d2624);}(_0x3d26,0x1dc));const _0x466d=function(_0x59745c,_0x3d2624){_0x59745c=_0x59745c-0x0;let _0x466dfc=_0x3d26[_0x59745c];return _0x466dfc;};import{ContextPlugin as _0x2956f8}from'ckeditor5/src/core';import{CKEditorError as _0x50996b}from'ckeditor5/src/utils';import _0x21db00,{bindAnnotationCollections as _0x455a4c}from'./annotationcollection';import _0x450024 from'./annotations';export default class M extends _0x2956f8{static get[_0x466d('0xc')](){return[_0x450024];}static get[_0x466d('0x6')](){return _0x466d('0x20');}constructor(_0x343a2d){super(_0x343a2d),this['activeUIs']=new Set(),this[_0x466d('0xe')]=new Map(),this[_0x466d('0x25')]=new Map();}[_0x466d('0x1d')](){const _0x1c03f5=this[_0x466d('0x9')][_0x466d('0x17')][_0x466d('0x4')](_0x450024);this[_0x466d('0x1f')](_0x1c03f5,_0x466d('0x0'),(_0x7a08d5,_0x2deaed)=>{for(const _0xa61d45 of this['activeUIs']){const _0x302f16=this[_0x466d('0xe')][_0x466d('0x4')](_0xa61d45);(0x0,this[_0x466d('0x25')][_0x466d('0x4')](_0xa61d45)['filter'])(_0x2deaed)&&_0x302f16[_0x466d('0x10')](_0x2deaed);}}),this[_0x466d('0x1f')](_0x1c03f5,'_deactivateAllAnnotations',()=>{for(const _0x55ecbb of this[_0x466d('0x21')]){this[_0x466d('0xe')][_0x466d('0x4')](_0x55ecbb)[_0x466d('0x10')](null);}}),this[_0x466d('0x1f')](_0x1c03f5[_0x466d('0x2b')],_0x466d('0xa'),(_0xd55e5c,_0x330a2f)=>{this[_0x466d('0x7')](_0x330a2f);});}[_0x466d('0x23')](){return this[_0x466d('0x21')][_0x466d('0x26')]>0x0;}[_0x466d('0x18')](_0x18de3f){return this[_0x466d('0x21')][_0x466d('0xd')](_0x18de3f);}[_0x466d('0x19')](_0x201f96,_0x3c70a0=()=>!0x0){const _0x4fdca1=this[_0x466d('0x9')][_0x466d('0x17')]['get'](_0x450024);if(!this['_uis'][_0x466d('0xd')](_0x201f96))throw new _0x50996b(_0x466d('0x1c'),this,{'uiName':_0x201f96});this['isActive'](_0x201f96)&&this[_0x466d('0x1b')](_0x201f96),this[_0x466d('0x21')]['add'](_0x201f96);const _0x323778=new _0x21db00(),_0x2dc308=_0x4fdca1[_0x466d('0x2b')];_0x455a4c({'source':_0x2dc308,'target':_0x323778,'filter':_0x3c70a0}),this[_0x466d('0x25')]['set'](_0x201f96,{'collection':_0x323778,'filter':_0x3c70a0});const _0x293f85=this[_0x466d('0xe')][_0x466d('0x4')](_0x201f96);_0x293f85[_0x466d('0x2c')](_0x323778),this[_0x466d('0x1f')](_0x293f85,'change:activeAnnotation',(_0x3d3cc6,_0x5d79a5,_0x226057,_0xc906d6)=>{_0xc906d6&&_0x4fdca1[_0x466d('0x28')](_0xc906d6),_0x226057&&_0x4fdca1[_0x466d('0x24')](_0x226057);});}[_0x466d('0x1b')](_0xa1215){if(this[_0x466d('0x21')]['delete'](_0xa1215),!this[_0x466d('0xe')][_0x466d('0xd')](_0xa1215))throw new _0x50996b(_0x466d('0x1c'),this,{'uiName':_0xa1215});const _0x56aec4=this[_0x466d('0xe')][_0x466d('0x4')](_0xa1215);_0x56aec4[_0x466d('0x1')](),this['stopListening'](_0x56aec4),this[_0x466d('0x25')]['get'](_0xa1215)['collection'][_0x466d('0xf')](),this[_0x466d('0x25')]['delete'](_0xa1215);}[_0x466d('0x16')](_0x3eb6d0){if(!this[_0x466d('0xe')]['has'](_0x3eb6d0))throw new _0x50996b(_0x466d('0x1c'),this,{'uiName':_0x3eb6d0});const _0xf3ea12=this['context'][_0x466d('0x17')][_0x466d('0x4')](_0x450024),_0x25172f=Array['from'](_0xf3ea12[_0x466d('0x12')])[0x0]||null;this[_0x466d('0x29')](),this[_0x466d('0x19')](_0x3eb6d0);const _0x547b23=this[_0x466d('0xe')]['get'](_0x3eb6d0);_0x547b23[_0x466d('0x10')](_0x25172f),_0x547b23[_0x466d('0x14')]&&_0x25172f&&_0x547b23[_0x466d('0x14')]([_0x25172f]);}[_0x466d('0x29')](){for(const _0x45cb0c of this[_0x466d('0x21')])this[_0x466d('0x1b')](_0x45cb0c);}[_0x466d('0x3')](_0x5461f2,_0x5d9bfb){if(this[_0x466d('0xe')][_0x466d('0xd')](_0x5461f2))throw new _0x50996b(_0x466d('0x15'));if(_0x466d('0x13')!=typeof _0x5d9bfb[_0x466d('0x2c')]||_0x466d('0x13')!=typeof _0x5d9bfb[_0x466d('0x1')]||_0x466d('0x13')!=typeof _0x5d9bfb[_0x466d('0x10')])throw new _0x50996b(_0x466d('0x1e'),null);this[_0x466d('0xe')][_0x466d('0x2a')](_0x5461f2,_0x5d9bfb);}[_0x466d('0x27')](){const _0x418c3a=this[_0x466d('0x9')]['plugins'][_0x466d('0x4')](_0x450024)[_0x466d('0xb')],_0x1480af=new Map(),_0x8948a7=Array[_0x466d('0x8')](this[_0x466d('0x21')]);for(const _0x3ca287 of this[_0x466d('0x21')]){const _0x260b55=this[_0x466d('0x25')]['get'](_0x3ca287)['collection'];for(const _0x2280e6 of _0x260b55)_0x1480af['set'](_0x2280e6,_0x3ca287);}for(const _0x26bf3b of _0x418c3a){const _0x39e3f6=_0x1480af[_0x466d('0x4')](_0x26bf3b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x26bf3b);const _0x553036=_0x8948a7[_0x466d('0x22')](_0x515170=>this[_0x466d('0x25')][_0x466d('0x4')](_0x515170)['filter'](_0x26bf3b));_0x39e3f6!==_0x553036&&(_0x39e3f6&&this['_uisData'][_0x466d('0x4')](_0x39e3f6)[_0x466d('0xb')]['remove'](_0x26bf3b),_0x553036&&this[_0x466d('0x25')][_0x466d('0x4')](_0x553036)[_0x466d('0xb')]['add'](_0x26bf3b));}}[_0x466d('0xf')](){this[_0x466d('0x29')](),super[_0x466d('0xf')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xe65716){const _0x416900=[];for(const _0x908642 of this['activeUIs']){(0x0,this[_0x466d('0x25')]['get'](_0x908642)[_0x466d('0x2')])(_0xe65716)&&_0x416900[_0x466d('0x5')](_0x908642);}if(_0x416900[_0x466d('0x11')]>0x1)throw new _0x50996b('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x416900,'annotationType':_0xe65716[_0x466d('0x1a')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36cc=['function','annotation','registerAnnotation','focusTracker','plugins','requires','isEqual','_editorAnnotations','from','_editorAnnotationsData','getByInnerView','editor','push','refresh','hasDomSelection','refreshSelectedViews','isReadOnly','element','fire','innerView','get','EditorAnnotations','editorannotations-invalid-source-callback','range','selection','listenTo','model','_dataCollectors','cancel','update','uiUpdate','map','isCollapsed','getOrderedSelectedAnnotations','add','change:range','set','containsRange','editing','getRanges','view','blur','change:isFocused'];(function(_0x4731d6,_0x36ccf4){const _0x1bf1fa=function(_0x5ae0ee){while(--_0x5ae0ee){_0x4731d6['push'](_0x4731d6['shift']());}};_0x1bf1fa(++_0x36ccf4);}(_0x36cc,0x18f));const _0x1bf1=function(_0x4731d6,_0x36ccf4){_0x4731d6=_0x4731d6-0x0;let _0x1bf1fa=_0x36cc[_0x4731d6];return _0x1bf1fa;};import{Plugin as _0x3cdee1}from'ckeditor5/src/core';import{CKEditorError as _0x166c67}from'ckeditor5/src/utils';import{debounce as _0x4be22f}from'lodash-es';import _0x1f7011 from'./annotations';export default class k extends _0x3cdee1{static get[_0x1bf1('0x24')](){return[_0x1f7011];}static get['pluginName'](){return _0x1bf1('0x9');}constructor(_0x523a5a){super(_0x523a5a),this[_0x1bf1('0xf')]=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x53c5b6=this[_0x1bf1('0x2a')],_0x176792=_0x53c5b6[_0x1bf1('0xe')]['document'][_0x1bf1('0xc')],_0x5324ea=_0x4be22f(()=>this[_0x1bf1('0x3')](),0xa);_0x176792['on'](_0x1bf1('0x17'),(_0x4f035a,_0x3874ff)=>{_0x3874ff['directChange']&&(_0x5324ea[_0x1bf1('0x10')](),this[_0x1bf1('0x3')]());}),this['listenTo'](_0x53c5b6[_0x1bf1('0x1a')][_0x1bf1('0x1c')]['document'],_0x1bf1('0x1e'),(_0x253657,_0x563862,_0x4faf09)=>{_0x4faf09&&_0x5324ea();}),this[_0x1bf1('0xd')](_0x53c5b6['ui'][_0x1bf1('0x22')],_0x1bf1('0x1e'),(_0x6070b4,_0x10ebce,_0x43f8ad)=>{_0x43f8ad||_0x53c5b6[_0x1bf1('0x4')]||this[_0x1bf1('0x6')](_0x1bf1('0x1d'),{'isAnnotationTracked':_0x232c32=>this[_0x1bf1('0x28')]['has'](_0x232c32[_0x1bf1('0x7')])});}),this[_0x1bf1('0xd')](this[_0x1bf1('0x2a')]['ui'],_0x1bf1('0x11'),()=>this[_0x1bf1('0x6')](_0x1bf1('0x12')));}[_0x1bf1('0x21')](_0x554490){if(this['_editorAnnotations']['has'](_0x554490[_0x1bf1('0x1c')]))return;this[_0x1bf1('0x26')]['add'](_0x554490[_0x1bf1('0x1c')]),this['editor']['ui'][_0x1bf1('0x22')][_0x1bf1('0x16')](_0x554490['view'][_0x1bf1('0x5')]);const _0x3191a6=this['editor'][_0x1bf1('0x23')][_0x1bf1('0x8')](_0x1f7011);this[_0x1bf1('0xd')](_0x3191a6['collection'],'remove',(_0x1ef99b,_0x42beed)=>{this[_0x1bf1('0x2a')]['ui'][_0x1bf1('0x22')]['remove'](_0x42beed[_0x1bf1('0x1c')][_0x1bf1('0x5')]),this['_editorAnnotations']['delete'](_0x42beed[_0x1bf1('0x1c')]);});}[_0x1bf1('0x2')](){return this[_0x1bf1('0x2a')][_0x1bf1('0x1a')][_0x1bf1('0x1c')]['hasDomSelection'];}['addSourceCollector'](_0x5ece4f){if(_0x1bf1('0x1f')!=typeof _0x5ece4f)throw new _0x166c67(_0x1bf1('0xa'));this[_0x1bf1('0xf')][_0x1bf1('0x16')](_0x5ece4f);}['refreshSelectedViews'](){this[_0x1bf1('0x6')](_0x1bf1('0x1'));}[_0x1bf1('0x15')]({activeAnnotation:_0x2c2707,annotations:_0x34ab48}){const _0x3e88d4=[],_0x7f66f1=this[_0x1bf1('0x2a')][_0x1bf1('0xe')]['document'][_0x1bf1('0xc')],_0x57b9fb=Array['from'](_0x7f66f1[_0x1bf1('0x1b')]());for(const [_0x421c19,_0x27460a]of this[_0x1bf1('0x28')]){const _0xbfa9a7=_0x1bf51d(_0x27460a),_0x1fd46f=_0x34ab48[_0x1bf1('0x29')](_0x421c19);_0xbfa9a7&&_0x1fd46f&&_0x3e88d4[_0x1bf1('0x0')]({'annotation':_0x1fd46f,'range':_0xbfa9a7});}function _0x1bf51d(_0x1f31a2){for(const _0x4e2f39 of _0x1f31a2)for(const _0xa1ba89 of _0x57b9fb)if(_0x4e2f39[_0x1bf1('0x19')](_0xa1ba89,!_0x7f66f1[_0x1bf1('0x14')]))return _0x4e2f39;return null;}return _0x3e88d4['sort']((_0x4db350,_0x1e5231)=>{const _0x4e4cfe=_0x4db350['range'],_0x2859c3=_0x1e5231[_0x1bf1('0xb')];if(!_0x4e4cfe[_0x1bf1('0x25')](_0x2859c3)){if(_0x4e4cfe[_0x1bf1('0x19')](_0x2859c3,!0x0))return 0x1;if(_0x2859c3['containsRange'](_0x4e4cfe,!0x0))return-0x1;}return _0x4db350[_0x1bf1('0x20')]==_0x2c2707?-0x1:_0x1e5231['annotation']==_0x2c2707?0x1:0x0;})[_0x1bf1('0x13')](_0x398df0=>_0x398df0[_0x1bf1('0x20')]);}get[_0x1bf1('0x28')](){const _0x4a6c2e=new Map();for(const _0x2477f1 of Array[_0x1bf1('0x27')](this['_dataCollectors']))for(const [_0x4d6d9,_0x4fdfa6]of _0x2477f1())_0x4a6c2e[_0x1bf1('0x18')](_0x4d6d9,_0x4fdfa6);return _0x4a6c2e;}}
23
+ const _0x2f48=['getRanges','model','set','EditorAnnotations','registerAnnotation','refreshSelectedViews','uiUpdate','change:isFocused','update','_editorAnnotations','addSourceCollector','collection','_dataCollectors','view','get','annotation','from','push','remove','document','change:range','cancel','range','selection','function','editing','_editorAnnotationsData','element','fire','requires','getByInnerView','innerView','directChange','add','editor','has','pluginName','refresh','map','listenTo','focusTracker','containsRange','blur','init','getOrderedSelectedAnnotations','sort','hasDomSelection'];(function(_0x52374b,_0x2f4867){const _0x4912c0=function(_0x3f2581){while(--_0x3f2581){_0x52374b['push'](_0x52374b['shift']());}};_0x4912c0(++_0x2f4867);}(_0x2f48,0x1bd));const _0x4912=function(_0x52374b,_0x2f4867){_0x52374b=_0x52374b-0x0;let _0x4912c0=_0x2f48[_0x52374b];return _0x4912c0;};import{Plugin as _0x488fc4}from'ckeditor5/src/core';import{CKEditorError as _0x5b1c24}from'ckeditor5/src/utils';import{debounce as _0x218ffe}from'lodash-es';import _0x3f404a from'./annotations';export default class k extends _0x488fc4{static get[_0x4912('0x7')](){return[_0x3f404a];}static get[_0x4912('0xe')](){return _0x4912('0x1c');}constructor(_0x459a68){super(_0x459a68),this[_0x4912('0x25')]=new Set(),this[_0x4912('0x22')]=new Set();}[_0x4912('0x15')](){const _0x26e24a=this[_0x4912('0xc')],_0x156133=_0x26e24a[_0x4912('0x1a')]['document'][_0x4912('0x1')],_0xd1ee70=_0x218ffe(()=>this[_0x4912('0x1e')](),0xa);_0x156133['on'](_0x4912('0x2d'),(_0x5b077a,_0x4f9018)=>{_0x4f9018[_0x4912('0xa')]&&(_0xd1ee70[_0x4912('0x2e')](),this['refreshSelectedViews']());}),this[_0x4912('0x11')](_0x26e24a[_0x4912('0x3')][_0x4912('0x26')]['document'],_0x4912('0x20'),(_0x53eea3,_0x51e40d,_0x4b895d)=>{_0x4b895d&&_0xd1ee70();}),this[_0x4912('0x11')](_0x26e24a['ui'][_0x4912('0x12')],_0x4912('0x20'),(_0x494e7f,_0x40ff49,_0x564cf1)=>{_0x564cf1||_0x26e24a['isReadOnly']||this[_0x4912('0x6')](_0x4912('0x14'),{'isAnnotationTracked':_0x521c28=>this[_0x4912('0x4')][_0x4912('0xd')](_0x521c28[_0x4912('0x9')])});}),this['listenTo'](this[_0x4912('0xc')]['ui'],_0x4912('0x21'),()=>this[_0x4912('0x6')](_0x4912('0x1f')));}[_0x4912('0x1d')](_0x14568b){if(this[_0x4912('0x22')]['has'](_0x14568b[_0x4912('0x26')]))return;this[_0x4912('0x22')][_0x4912('0xb')](_0x14568b[_0x4912('0x26')]),this[_0x4912('0xc')]['ui'][_0x4912('0x12')][_0x4912('0xb')](_0x14568b['view'][_0x4912('0x5')]);const _0x5a0534=this['editor']['plugins'][_0x4912('0x27')](_0x3f404a);this[_0x4912('0x11')](_0x5a0534[_0x4912('0x24')],_0x4912('0x2b'),(_0xc9fd78,_0x3d0fd0)=>{this[_0x4912('0xc')]['ui'][_0x4912('0x12')][_0x4912('0x2b')](_0x3d0fd0['view'][_0x4912('0x5')]),this[_0x4912('0x22')]['delete'](_0x3d0fd0['view']);});}['hasDomSelection'](){return this[_0x4912('0xc')][_0x4912('0x3')][_0x4912('0x26')][_0x4912('0x18')];}[_0x4912('0x23')](_0x46d0dc){if(_0x4912('0x2')!=typeof _0x46d0dc)throw new _0x5b1c24('editorannotations-invalid-source-callback');this[_0x4912('0x25')][_0x4912('0xb')](_0x46d0dc);}[_0x4912('0x1e')](){this[_0x4912('0x6')](_0x4912('0xf'));}[_0x4912('0x16')]({activeAnnotation:_0x325030,annotations:_0x3471d1}){const _0x195cba=[],_0x548ba8=this[_0x4912('0xc')][_0x4912('0x1a')][_0x4912('0x2c')]['selection'],_0x2ce418=Array[_0x4912('0x29')](_0x548ba8[_0x4912('0x19')]());for(const [_0x2189ff,_0x28c99d]of this[_0x4912('0x4')]){const _0x52a169=_0x34153f(_0x28c99d),_0x4ff6e5=_0x3471d1[_0x4912('0x8')](_0x2189ff);_0x52a169&&_0x4ff6e5&&_0x195cba[_0x4912('0x2a')]({'annotation':_0x4ff6e5,'range':_0x52a169});}function _0x34153f(_0x109047){for(const _0xab9648 of _0x109047)for(const _0x2e0749 of _0x2ce418)if(_0xab9648['containsRange'](_0x2e0749,!_0x548ba8['isCollapsed']))return _0xab9648;return null;}return _0x195cba[_0x4912('0x17')]((_0xebf61f,_0x1cc719)=>{const _0x9095b4=_0xebf61f[_0x4912('0x0')],_0x27ca6a=_0x1cc719[_0x4912('0x0')];if(!_0x9095b4['isEqual'](_0x27ca6a)){if(_0x9095b4['containsRange'](_0x27ca6a,!0x0))return 0x1;if(_0x27ca6a[_0x4912('0x13')](_0x9095b4,!0x0))return-0x1;}return _0xebf61f['annotation']==_0x325030?-0x1:_0x1cc719[_0x4912('0x28')]==_0x325030?0x1:0x0;})[_0x4912('0x10')](_0x5df531=>_0x5df531[_0x4912('0x28')]);}get[_0x4912('0x4')](){const _0x205a16=new Map();for(const _0x57fe4d of Array[_0x4912('0x29')](this[_0x4912('0x25')]))for(const [_0x2d4919,_0x3e8959]of _0x57fe4d())_0x205a16[_0x4912('0x1b')](_0x2d4919,_0x3e8959);return _0x205a16;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1999=['context','_closeAnnotation','init','isFocused','_setSelectedAnnotations','every','has','collapse','pluginName','getBoundingClientRect','selection','Esc','inlineannotations-detach-not-attached','_addAnnotationToBalloon','_getBalloonTargetForAnnotation','set','target','fromRect','add','addObserver','hasView','inlineannotations-not-allowed-with-context','getByView','InlineAnnotations','_addedAnnotations','left','showStack','destroy','bottom','setActiveAnnotation','delete','visibleView','hasActive','inlineannotations-attach-already-attached','change:visibleView','editor','annotations','get','length','inline','getOrderedSelectedAnnotations','clear','detach','stopListening','keystrokes','_removeAnnotationFromBalloon','from','top','view','refresh','afterInit','includes','_forceRefresh','map','requires','document','listenTo','right','width','editableElement','plugins','editing','isActive','push','find','isAttached','_manuallyClosed','_selectedAnnotations','blur','focusTracker','focus','remove','getFirstRange','activeAnnotation','change:isFocused','_balloon'];(function(_0x58731d,_0x199937){const _0x2325b7=function(_0x1b68ce){while(--_0x1b68ce){_0x58731d['push'](_0x58731d['shift']());}};_0x2325b7(++_0x199937);}(_0x1999,0x1d7));const _0x2325=function(_0x58731d,_0x199937){_0x58731d=_0x58731d-0x0;let _0x2325b7=_0x1999[_0x58731d];return _0x2325b7;};import{Plugin as _0x278d59}from'ckeditor5/src/core';import _0x172f8c from'./annotationsuis';import _0x5aabc7 from'./editorannotations';import{ContextualBalloon as _0x4de56d}from'ckeditor5/src/ui';import{MouseObserver as _0x3685bc}from'ckeditor5/src/engine';import{CKEditorError as _0x2f36bf,Rect as _0x4de600}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x278d59{static get[_0x2325('0x27')](){return[_0x5aabc7,_0x4de56d,_0x172f8c];}static get[_0x2325('0x45')](){return _0x2325('0x8');}constructor(_0x2e4bad){super(_0x2e4bad),_0x2e4bad[_0x2325('0x2e')][_0x2325('0x21')][_0x2325('0x4')](_0x3685bc),this[_0x2325('0x32')]=!0x1,this['set'](_0x2325('0x3a'),null),this[_0x2325('0x15')]=null,this[_0x2325('0x33')]=new Set(),this[_0x2325('0x3c')]=_0x2e4bad['plugins'][_0x2325('0x16')](_0x4de56d),this[_0x2325('0x9')]=new Set(),this[_0x2325('0x34')]=[],this['_forceRefresh']=!0x1;}[_0x2325('0x3f')](){const _0x1e164a=this['editor'][_0x2325('0x2d')][_0x2325('0x16')](_0x172f8c);_0x1e164a['context']===this[_0x2325('0x14')]&&(_0x1e164a['register'](_0x2325('0x18'),this),this['editor'][_0x2325('0x1d')][_0x2325('0x0')](_0x2325('0x48'),(_0x55ba84,_0x4b02af)=>{const _0xeae5e=this[_0x2325('0x3c')];if(this[_0x2325('0x32')]&&_0xeae5e[_0x2325('0x10')]){const _0x54b579=this[_0x2325('0x15')][_0x2325('0x7')](_0xeae5e[_0x2325('0x10')]);_0x54b579&&this[_0x2325('0x3e')](_0x54b579),_0x4b02af();}}));}[_0x2325('0x23')](){const _0x14b8f8=this[_0x2325('0x14')][_0x2325('0x2d')][_0x2325('0x16')](_0x172f8c);_0x14b8f8[_0x2325('0x3d')]===this[_0x2325('0x14')]&&(_0x14b8f8[_0x2325('0x11')]()||_0x14b8f8['switchTo'](_0x2325('0x18')));}[_0x2325('0xe')](_0x4685c4){_0x4685c4!==this[_0x2325('0x3a')]&&(this[_0x2325('0x3a')]&&(this['activeAnnotation']['isActive']=!0x1),_0x4685c4&&this[_0x2325('0x14')]['ui'][_0x2325('0x36')]['isFocused']&&(this[_0x2325('0x15')]['has'](_0x4685c4)&&this[_0x2325('0x4a')](_0x4685c4,!0x0),_0x4685c4[_0x2325('0x2f')]=!0x0),_0x4685c4||this[_0x2325('0x41')]([]),this[_0x2325('0x3a')]=_0x4685c4);}['attach'](_0x4a7c55){this[_0x2325('0x15')]=_0x4a7c55;const _0x28af3e=this[_0x2325('0x14')][_0x2325('0x2d')][_0x2325('0x16')](_0x172f8c),_0x396ce5=this[_0x2325('0x3c')];if(this[_0x2325('0x32')])throw new _0x2f36bf(_0x2325('0x12'),this);if(_0x28af3e[_0x2325('0x3d')]!==this['editor'])throw new _0x2f36bf(_0x2325('0x6'),this);const _0x44f3a3=this[_0x2325('0x14')][_0x2325('0x2d')][_0x2325('0x16')](_0x5aabc7);this[_0x2325('0x29')](_0x44f3a3,_0x2325('0x22'),()=>{const _0x5313e1=_0x44f3a3[_0x2325('0x19')]({'annotations':this[_0x2325('0x15')],'activeAnnotation':this[_0x2325('0x3a')]});var _0x5dbfe0,_0x2d1a56;!this[_0x2325('0x25')]&&(_0x5dbfe0=_0x5313e1,_0x2d1a56=this[_0x2325('0x34')],_0x5dbfe0[_0x2325('0x17')]===_0x2d1a56[_0x2325('0x17')]&&_0x5dbfe0[_0x2325('0x42')](_0x522400=>_0x2d1a56[_0x2325('0x24')](_0x522400)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5313e1),this[_0x2325('0xe')](_0x5313e1[0x0]||null));}),this[_0x2325('0x29')](_0x44f3a3,_0x2325('0x35'),(_0x81215c,{isAnnotationTracked:_0x5e36c6})=>{this[_0x2325('0x3a')]&&_0x5e36c6(this[_0x2325('0x3a')])&&(this[_0x2325('0x41')]([]),this[_0x2325('0xe')](null));}),this[_0x2325('0x29')](this[_0x2325('0x14')]['ui'][_0x2325('0x36')],_0x2325('0x3b'),(_0x4c7fa3,_0x961e48,_0x258571)=>{_0x258571||this['setActiveAnnotation'](null);}),this[_0x2325('0x29')](_0x4a7c55,'remove',(_0x2cdad6,_0x5b352b)=>{this['_removeAnnotationFromBalloon'](_0x5b352b),_0x5b352b===this[_0x2325('0x3a')]&&this[_0x2325('0xe')](null);}),this['listenTo'](_0x396ce5,_0x2325('0x13'),(_0x2b9b9f,_0x586c05,_0xd18139,_0x8efcf3)=>{_0x8efcf3&&this['stopListening'](_0x8efcf3);const _0x57440d=_0x4a7c55['getByView'](_0xd18139);_0xd18139&&_0x57440d&&(this['listenTo'](_0xd18139,'change:height',()=>{_0x396ce5['updatePosition']();}),this[_0x2325('0x29')](_0xd18139,_0x2325('0x48'),()=>{this[_0x2325('0x3e')](_0x57440d),this[_0x2325('0x14')][_0x2325('0x2e')][_0x2325('0x21')][_0x2325('0x37')]();}),this[_0x2325('0x3a')]!==_0x57440d&&this[_0x2325('0xe')](_0x57440d));}),this[_0x2325('0x29')](this[_0x2325('0x14')]['ui'],'update',()=>{_0x396ce5[_0x2325('0x10')]&&(_0x4a7c55['getByView'](_0x396ce5[_0x2325('0x10')])&&_0x396ce5['updatePosition']());}),this[_0x2325('0x29')](this[_0x2325('0x14')][_0x2325('0x2e')][_0x2325('0x21')][_0x2325('0x28')],'mousedown',()=>{this[_0x2325('0x25')]=!0x0,this['_manuallyClosed'][_0x2325('0x1a')]();}),this[_0x2325('0x14')]['editing'][_0x2325('0x21')][_0x2325('0x28')][_0x2325('0x47')][_0x2325('0x2c')]&&this[_0x2325('0x14')]['editing']['view'][_0x2325('0x37')](),this[_0x2325('0x32')]=!0x0;}[_0x2325('0x1b')](){if(!this[_0x2325('0x32')])throw new _0x2f36bf(_0x2325('0x49'),this);this[_0x2325('0xe')](null);for(const _0x5c6770 of this['_addedAnnotations'])this[_0x2325('0x1e')](_0x5c6770);this[_0x2325('0x1c')](),this['isAttached']=!0x1,this[_0x2325('0x15')]=null;}[_0x2325('0xc')](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x28cf00){for(const _0x76cb52 of this[_0x2325('0x34')])_0x28cf00[_0x2325('0x24')](_0x76cb52)||this[_0x2325('0x33')][_0x2325('0xf')](_0x76cb52);for(const _0x4e235e of this[_0x2325('0x15')])_0x28cf00[_0x2325('0x24')](_0x4e235e)||this['_removeAnnotationFromBalloon'](_0x4e235e);if(this[_0x2325('0x14')]['ui'][_0x2325('0x36')][_0x2325('0x40')])for(const _0x4f7e04 of _0x28cf00)this['_addAnnotationToBalloon'](_0x4f7e04);this[_0x2325('0x34')]=_0x28cf00;}['_addAnnotationToBalloon'](_0x5e6c58,_0x1f93aa=!0x1){this[_0x2325('0x33')][_0x2325('0x43')](_0x5e6c58)||(this[_0x2325('0x9')]['has'](_0x5e6c58)||this[_0x2325('0x3c')]['hasView'](_0x5e6c58[_0x2325('0x21')])||(this[_0x2325('0x9')][_0x2325('0x3')](_0x5e6c58),this[_0x2325('0x3c')][_0x2325('0x3')]({'stackId':_0x5e6c58[_0x2325('0x21')]['id'],'view':_0x5e6c58[_0x2325('0x21')],'position':{'target':()=>this[_0x2325('0x4b')](_0x5e6c58)}})),_0x1f93aa&&this[_0x2325('0x3c')][_0x2325('0xb')](_0x5e6c58[_0x2325('0x21')]['id']));}['_getBalloonTargetForAnnotation'](_0x6b09f7){const _0x3638ea=_0x6b09f7[_0x2325('0x1')],_0x1a11b1=this[_0x2325('0x14')][_0x2325('0x2e')][_0x2325('0x21')],_0x37d7bd=_0x1a11b1['document'][_0x2325('0x47')][_0x2325('0x39')](),_0x17df39=_0x1a11b1['domConverter']['viewRangeToDom'](_0x37d7bd);if(_0x17df39[_0x2325('0x44')](!0x0),_0x3638ea){if(_0x3638ea instanceof _0x4de600)return _0x3638ea;let _0x12646f=[];for(const _0x3f63a2 of _0x3638ea)_0x12646f[_0x2325('0x30')](...(_0x4fb8c3=_0x3f63a2['getClientRects'](),Array[_0x2325('0x1f')](_0x4fb8c3)[_0x2325('0x26')](DOMRect[_0x2325('0x2')])));_0x12646f=function(_0x3af046){const _0xa3d054=[];let _0x2c1b5e=_0x3af046[0x0];for(let _0x3e8541=0x1;_0x3e8541<_0x3af046[_0x2325('0x17')];_0x3e8541++)F(_0x2c1b5e,_0x3af046[_0x3e8541])?_0x2c1b5e[_0x2325('0x2b')]+=_0x3af046[_0x3e8541][_0x2325('0x2b')]:(_0xa3d054[_0x2325('0x30')](_0x2c1b5e),_0x2c1b5e=_0x3af046[_0x3e8541]);return _0xa3d054['push'](_0x2c1b5e),_0xa3d054;}(_0x12646f);const _0x46f65c=_0x17df39[_0x2325('0x46')]();return _0x12646f[_0x2325('0x31')](_0x292129=>_0x292129[_0x2325('0x20')]<=_0x46f65c['top']&&_0x292129[_0x2325('0xd')]>=_0x46f65c[_0x2325('0xd')]&&_0x292129[_0x2325('0xa')]<=_0x46f65c[_0x2325('0xa')]&&_0x292129[_0x2325('0x2a')]>=_0x46f65c[_0x2325('0x2a')])||_0x12646f[0x0];}var _0x4fb8c3;return _0x6b09f7['targetRect']||_0x17df39;}[_0x2325('0x1e')](_0x2bff0e){this[_0x2325('0x9')][_0x2325('0x43')](_0x2bff0e)&&this[_0x2325('0x3c')][_0x2325('0x5')](_0x2bff0e['view'])&&(this[_0x2325('0x9')][_0x2325('0xf')](_0x2bff0e),this['_balloon'][_0x2325('0x38')](_0x2bff0e[_0x2325('0x21')]));}[_0x2325('0x3e')](_0xb6ede){this['_manuallyClosed'][_0x2325('0x3')](_0xb6ede),this[_0x2325('0x1e')](_0xb6ede);}}function F(_0x2e68cd,_0x49f869){return _0x2e68cd[_0x2325('0x20')]===_0x49f869[_0x2325('0x20')]&&_0x2e68cd[_0x2325('0xd')]===_0x49f869[_0x2325('0xd')]&&_0x2e68cd[_0x2325('0x2a')]===_0x49f869[_0x2325('0xa')];}
23
+ const _0x219b=['init','editor','document','inlineannotations-attach-already-attached','setActiveAnnotation','collapse','showStack','refresh','annotations','editableElement','length','from','left','_manuallyClosed','width','top','updatePosition','add','_selectedAnnotations','isActive','activeAnnotation','set','visibleView','_addAnnotationToBalloon','update','getBoundingClientRect','_setSelectedAnnotations','target','pluginName','selection','hasView','domConverter','_addedAnnotations','listenTo','get','find','focus','change:height','editing','context','requires','fromRect','view','getByView','keystrokes','isFocused','addObserver','isAttached','mousedown','right','detach','afterInit','bottom','_balloon','stopListening','plugins','push','focusTracker','delete','map','Esc','has','getClientRects','remove','every','_forceRefresh','_closeAnnotation','inline','includes','_getBalloonTargetForAnnotation','register'];(function(_0x467f21,_0x219b5f){const _0x116133=function(_0x3ea731){while(--_0x3ea731){_0x467f21['push'](_0x467f21['shift']());}};_0x116133(++_0x219b5f);}(_0x219b,0x18c));const _0x1161=function(_0x467f21,_0x219b5f){_0x467f21=_0x467f21-0x0;let _0x116133=_0x219b[_0x467f21];return _0x116133;};import{Plugin as _0x4886cb}from'ckeditor5/src/core';import _0x1e452b from'./annotationsuis';import _0x307b65 from'./editorannotations';import{ContextualBalloon as _0xb7b5a6}from'ckeditor5/src/ui';import{MouseObserver as _0x358c62}from'ckeditor5/src/engine';import{CKEditorError as _0x3084dc,Rect as _0x1b74b1}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x4886cb{static get[_0x1161('0x46')](){return[_0x307b65,_0xb7b5a6,_0x1e452b];}static get[_0x1161('0x3a')](){return'InlineAnnotations';}constructor(_0x56402d){super(_0x56402d),_0x56402d['editing'][_0x1161('0x1')][_0x1161('0x5')](_0x358c62),this[_0x1161('0x6')]=!0x1,this['set'](_0x1161('0x32'),null),this[_0x1161('0x26')]=null,this['_manuallyClosed']=new Set(),this[_0x1161('0xc')]=_0x56402d[_0x1161('0xe')][_0x1161('0x40')](_0xb7b5a6),this[_0x1161('0x3e')]=new Set(),this[_0x1161('0x30')]=[],this[_0x1161('0x18')]=!0x1;}[_0x1161('0x1e')](){const _0x34e07d=this[_0x1161('0x1f')][_0x1161('0xe')]['get'](_0x1e452b);_0x34e07d[_0x1161('0x45')]===this[_0x1161('0x1f')]&&(_0x34e07d[_0x1161('0x1d')]('inline',this),this[_0x1161('0x1f')][_0x1161('0x3')][_0x1161('0x33')](_0x1161('0x13'),(_0x1b374f,_0x170bcb)=>{const _0x529e58=this['_balloon'];if(this['isAttached']&&_0x529e58['visibleView']){const _0x31f8b2=this[_0x1161('0x26')][_0x1161('0x2')](_0x529e58[_0x1161('0x34')]);_0x31f8b2&&this['_closeAnnotation'](_0x31f8b2),_0x170bcb();}}));}[_0x1161('0xa')](){const _0x537671=this[_0x1161('0x1f')][_0x1161('0xe')][_0x1161('0x40')](_0x1e452b);_0x537671[_0x1161('0x45')]===this['editor']&&(_0x537671['hasActive']()||_0x537671['switchTo'](_0x1161('0x1a')));}['setActiveAnnotation'](_0x175f64){_0x175f64!==this[_0x1161('0x32')]&&(this[_0x1161('0x32')]&&(this['activeAnnotation'][_0x1161('0x31')]=!0x1),_0x175f64&&this[_0x1161('0x1f')]['ui'][_0x1161('0x10')][_0x1161('0x4')]&&(this['annotations'][_0x1161('0x14')](_0x175f64)&&this[_0x1161('0x35')](_0x175f64,!0x0),_0x175f64['isActive']=!0x0),_0x175f64||this['_setSelectedAnnotations']([]),this[_0x1161('0x32')]=_0x175f64);}['attach'](_0x3d78aa){this[_0x1161('0x26')]=_0x3d78aa;const _0x31951d=this[_0x1161('0x1f')][_0x1161('0xe')][_0x1161('0x40')](_0x1e452b),_0x587147=this[_0x1161('0xc')];if(this['isAttached'])throw new _0x3084dc(_0x1161('0x21'),this);if(_0x31951d['context']!==this[_0x1161('0x1f')])throw new _0x3084dc('inlineannotations-not-allowed-with-context',this);const _0x3afdb2=this[_0x1161('0x1f')][_0x1161('0xe')][_0x1161('0x40')](_0x307b65);this['listenTo'](_0x3afdb2,_0x1161('0x25'),()=>{const _0xaedb5d=_0x3afdb2['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x1161('0x32')]});var _0x2f65ba,_0x3d3e42;!this[_0x1161('0x18')]&&(_0x2f65ba=_0xaedb5d,_0x3d3e42=this[_0x1161('0x30')],_0x2f65ba[_0x1161('0x28')]===_0x3d3e42[_0x1161('0x28')]&&_0x2f65ba[_0x1161('0x17')](_0x2b3a53=>_0x3d3e42['includes'](_0x2b3a53)))||(this[_0x1161('0x18')]=!0x1,this[_0x1161('0x38')](_0xaedb5d),this[_0x1161('0x22')](_0xaedb5d[0x0]||null));}),this['listenTo'](_0x3afdb2,'blur',(_0x4775f6,{isAnnotationTracked:_0x2fe47e})=>{this[_0x1161('0x32')]&&_0x2fe47e(this[_0x1161('0x32')])&&(this[_0x1161('0x38')]([]),this[_0x1161('0x22')](null));}),this['listenTo'](this[_0x1161('0x1f')]['ui'][_0x1161('0x10')],'change:isFocused',(_0x1e21e1,_0x5590c9,_0x44ed32)=>{_0x44ed32||this[_0x1161('0x22')](null);}),this[_0x1161('0x3f')](_0x3d78aa,'remove',(_0x3ae573,_0x3668a3)=>{this['_removeAnnotationFromBalloon'](_0x3668a3),_0x3668a3===this['activeAnnotation']&&this[_0x1161('0x22')](null);}),this['listenTo'](_0x587147,'change:visibleView',(_0x1f0995,_0x5a2b8b,_0x5efd34,_0x12f60e)=>{_0x12f60e&&this[_0x1161('0xd')](_0x12f60e);const _0x34ccb2=_0x3d78aa[_0x1161('0x2')](_0x5efd34);_0x5efd34&&_0x34ccb2&&(this[_0x1161('0x3f')](_0x5efd34,_0x1161('0x43'),()=>{_0x587147[_0x1161('0x2e')]();}),this[_0x1161('0x3f')](_0x5efd34,_0x1161('0x13'),()=>{this[_0x1161('0x19')](_0x34ccb2),this[_0x1161('0x1f')][_0x1161('0x44')][_0x1161('0x1')][_0x1161('0x42')]();}),this['activeAnnotation']!==_0x34ccb2&&this[_0x1161('0x22')](_0x34ccb2));}),this[_0x1161('0x3f')](this[_0x1161('0x1f')]['ui'],_0x1161('0x36'),()=>{_0x587147['visibleView']&&(_0x3d78aa[_0x1161('0x2')](_0x587147[_0x1161('0x34')])&&_0x587147[_0x1161('0x2e')]());}),this[_0x1161('0x3f')](this[_0x1161('0x1f')]['editing'][_0x1161('0x1')][_0x1161('0x20')],_0x1161('0x7'),()=>{this[_0x1161('0x18')]=!0x0,this[_0x1161('0x2b')]['clear']();}),this[_0x1161('0x1f')]['editing'][_0x1161('0x1')][_0x1161('0x20')][_0x1161('0x3b')][_0x1161('0x27')]&&this[_0x1161('0x1f')]['editing'][_0x1161('0x1')][_0x1161('0x42')](),this[_0x1161('0x6')]=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3084dc('inlineannotations-detach-not-attached',this);this[_0x1161('0x22')](null);for(const _0x13d3b6 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x13d3b6);this['stopListening'](),this['isAttached']=!0x1,this[_0x1161('0x26')]=null;}['destroy'](){this[_0x1161('0x6')]&&this[_0x1161('0x9')]();}[_0x1161('0x38')](_0x418f89){for(const _0x171ad8 of this[_0x1161('0x30')])_0x418f89[_0x1161('0x1b')](_0x171ad8)||this['_manuallyClosed'][_0x1161('0x11')](_0x171ad8);for(const _0x355a30 of this['annotations'])_0x418f89[_0x1161('0x1b')](_0x355a30)||this['_removeAnnotationFromBalloon'](_0x355a30);if(this[_0x1161('0x1f')]['ui']['focusTracker']['isFocused'])for(const _0x54a90a of _0x418f89)this[_0x1161('0x35')](_0x54a90a);this[_0x1161('0x30')]=_0x418f89;}[_0x1161('0x35')](_0x3f71fe,_0x57b7a6=!0x1){this[_0x1161('0x2b')][_0x1161('0x14')](_0x3f71fe)||(this[_0x1161('0x3e')][_0x1161('0x14')](_0x3f71fe)||this[_0x1161('0xc')]['hasView'](_0x3f71fe[_0x1161('0x1')])||(this[_0x1161('0x3e')][_0x1161('0x2f')](_0x3f71fe),this[_0x1161('0xc')][_0x1161('0x2f')]({'stackId':_0x3f71fe[_0x1161('0x1')]['id'],'view':_0x3f71fe['view'],'position':{'target':()=>this[_0x1161('0x1c')](_0x3f71fe)}})),_0x57b7a6&&this[_0x1161('0xc')][_0x1161('0x24')](_0x3f71fe[_0x1161('0x1')]['id']));}[_0x1161('0x1c')](_0x423a09){const _0x31e85a=_0x423a09[_0x1161('0x39')],_0x4ee266=this[_0x1161('0x1f')]['editing']['view'],_0x6d6287=_0x4ee266['document'][_0x1161('0x3b')]['getFirstRange'](),_0x2bf44f=_0x4ee266[_0x1161('0x3d')]['viewRangeToDom'](_0x6d6287);if(_0x2bf44f[_0x1161('0x23')](!0x0),_0x31e85a){if(_0x31e85a instanceof _0x1b74b1)return _0x31e85a;let _0x51f580=[];for(const _0x466084 of _0x31e85a)_0x51f580[_0x1161('0xf')](...(_0x35b79e=_0x466084[_0x1161('0x15')](),Array[_0x1161('0x29')](_0x35b79e)[_0x1161('0x12')](DOMRect[_0x1161('0x0')])));_0x51f580=function(_0x3bf22e){const _0x3b01bb=[];let _0x33dae9=_0x3bf22e[0x0];for(let _0x26125b=0x1;_0x26125b<_0x3bf22e[_0x1161('0x28')];_0x26125b++)F(_0x33dae9,_0x3bf22e[_0x26125b])?_0x33dae9['width']+=_0x3bf22e[_0x26125b][_0x1161('0x2c')]:(_0x3b01bb[_0x1161('0xf')](_0x33dae9),_0x33dae9=_0x3bf22e[_0x26125b]);return _0x3b01bb[_0x1161('0xf')](_0x33dae9),_0x3b01bb;}(_0x51f580);const _0x528c82=_0x2bf44f[_0x1161('0x37')]();return _0x51f580[_0x1161('0x41')](_0x41f555=>_0x41f555['top']<=_0x528c82[_0x1161('0x2d')]&&_0x41f555[_0x1161('0xb')]>=_0x528c82[_0x1161('0xb')]&&_0x41f555[_0x1161('0x2a')]<=_0x528c82[_0x1161('0x2a')]&&_0x41f555['right']>=_0x528c82[_0x1161('0x8')])||_0x51f580[0x0];}var _0x35b79e;return _0x423a09['targetRect']||_0x2bf44f;}['_removeAnnotationFromBalloon'](_0x9c566f){this[_0x1161('0x3e')][_0x1161('0x14')](_0x9c566f)&&this['_balloon'][_0x1161('0x3c')](_0x9c566f[_0x1161('0x1')])&&(this[_0x1161('0x3e')][_0x1161('0x11')](_0x9c566f),this[_0x1161('0xc')][_0x1161('0x16')](_0x9c566f[_0x1161('0x1')]));}['_closeAnnotation'](_0x12987d){this[_0x1161('0x2b')][_0x1161('0x2f')](_0x12987d),this['_removeAnnotationFromBalloon'](_0x12987d);}}function F(_0x356a34,_0x3e289b){return _0x356a34[_0x1161('0x2d')]===_0x3e289b[_0x1161('0x2d')]&&_0x356a34[_0x1161('0xb')]===_0x3e289b['bottom']&&_0x356a34[_0x1161('0x8')]===_0x3e289b[_0x1161('0x2a')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x180f=['refreshPositioning','annotations','includes','detachFromDom','focus','preventDefault','stop','hasDomSelection','length','change:container','stopListening','isDirty','resize','number','detach','cancel','off','ck-sidebar--narrow','southArrowNorthWest','has','target','destroy','set:container','element','_refreshPositioning','type','northArrowSouthEast','removeEventListener','locale','view','balloonPanelView','attachToDom','stopPropagation','low','add','first','listenTo','_manuallyClosedAnnotationViews','_setSelectedAnnotations','context','_selectedAnnotations','from','addAnnotation','narrowSidebar','pin','northArrowSouth','contains','_updateBalloonPosition','isVisible','annotationType','pluginName','set','remove','clear','get','requires','bind','_editorAnnotations','northArrowSouthWest','_domEmitter','_detachListeners','_destroyEditorAnnotationsIntegration','focusableElements','unpin','bodyCollection','activeAnnotation','execute','refresh','editors','blur','_attachListeners','_annotationToNarrowView','esc','southArrowNorthEast','defaultPositions','_annotations','_showBalloon','isAttached','addEventListener','_integrateWithEditorAnnotations','mousedown','EditorAnnotations','setActiveAnnotation','register','narrowsidebar-detach-not-attached','_refreshPositioningDebounced','delete','_hideBalloon','plugins','preventClosingBalloon','getByView','change:height','Esc','content'];(function(_0x27084b,_0x180ffc){const _0x50148b=function(_0x4a66c9){while(--_0x4a66c9){_0x27084b['push'](_0x27084b['shift']());}};_0x50148b(++_0x180ffc);}(_0x180f,0x108));const _0x5014=function(_0x27084b,_0x180ffc){_0x27084b=_0x27084b-0x0;let _0x50148b=_0x180f[_0x27084b];return _0x50148b;};import{ContextPlugin as _0x33b060,Context as _0x36f248}from'ckeditor5/src/core';import _0x2ba122 from'./annotationsuis';import _0x2f95a2 from'./sidebar';import _0x19897f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x583444,BodyCollection as _0x4a6373}from'ckeditor5/src/ui';import{CKEditorError as _0x32c47f,DomEmitterMixin as _0x54ca8f,keyCodes as _0x102f34,Collection as _0x127bc7}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x554c2b}from'lodash-es';import _0x2f4f08 from'./editorannotations';export default class s extends _0x33b060{static get[_0x5014('0x49')](){return[_0x2f95a2,_0x2ba122];}static get[_0x5014('0x44')](){return'NarrowSidebar';}constructor(_0xb1697e){super(_0xb1697e),this[_0x5014('0x1')]=!0x1,this[_0x5014('0x37')]=new Set(),this['_domEmitter']=Object['create'](_0x54ca8f),this[_0x5014('0x59')]=new Map(),this['set'](_0x5014('0x53'),null),this[_0x5014('0x13')]=null,this[_0x5014('0x3a')]=[],this[_0x5014('0x4b')]=new _0x127bc7(),this['_refreshPositioningDebounced']=_0x554c2b(()=>{this[_0x5014('0x2a')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x5014('0x39')][_0x5014('0xc')][_0x5014('0x48')](_0x2ba122)[_0x5014('0x7')](_0x5014('0x3d'),this),this[_0x5014('0x52')]=new _0x4a6373(this[_0x5014('0x39')][_0x5014('0x2e')]),this[_0x5014('0x30')]=new _0x583444(this[_0x5014('0x39')][_0x5014('0x2e')]),this['bodyCollection'][_0x5014('0x31')](),this[_0x5014('0x52')]['add'](this[_0x5014('0x30')]);}['attach'](_0x56cb73){this[_0x5014('0x13')]=_0x56cb73;const _0x4f134a=this[_0x5014('0x39')][_0x5014('0xc')][_0x5014('0x48')](_0x2f95a2),_0x284028=this[_0x5014('0x30')];if(_0x4f134a[_0x5014('0x5d')]=_0x56cb73,this[_0x5014('0x1')])throw new _0x32c47f('narrowsidebar-attach-already-attached',this);this[_0x5014('0x1')]=!0x0,this['listenTo'](_0x4f134a,_0x5014('0x28'),()=>{this[_0x5014('0x20')](),this[_0x5014('0x36')](_0x4f134a,_0x5014('0x1b'),_0x23d58d=>{_0x23d58d[_0x5014('0x22')](),this['attach'](_0x56cb73);});}),_0x4f134a['_attachToContainer']({'viewClass':_0x5014('0x23'),'spaceBetweenItems':0x5});const _0x4ece4d=_0x1e23ed=>{const _0x8ad8d=new _0x19897f(this[_0x5014('0x39')]['locale']);_0x4f134a[_0x5014('0x3c')](_0x1e23ed,_0x8ad8d),this['_annotationToNarrowView'][_0x5014('0x45')](_0x1e23ed,_0x8ad8d),_0x8ad8d[_0x5014('0x4a')]('isDirty',_0x5014('0x43'),_0x5014('0x1f'))['to'](_0x1e23ed[_0x5014('0x2f')],_0x5014('0x1d'),_0x5014('0x2b'),_0x5014('0x1a')),_0x8ad8d['on'](_0x5014('0x54'),()=>{this[_0x5014('0x37')]['clear'](),_0x284028[_0x5014('0x11')]['first']!==_0x1e23ed[_0x5014('0x2f')]?(this[_0x5014('0x0')](_0x1e23ed),_0x1e23ed[_0x5014('0x2f')][_0x5014('0x29')]['focus'](),this[_0x5014('0x6')](_0x1e23ed)):this[_0x5014('0x6')](null);});};for(const _0x150285 of _0x56cb73)_0x4ece4d(_0x150285);this[_0x5014('0x36')](_0x56cb73,'add',(_0x211b2a,_0x5603a3)=>{_0x4ece4d(_0x5603a3);}),this[_0x5014('0x36')](_0x56cb73,_0x5014('0x46'),(_0x23004b,_0x350d59,_0x5b8c08)=>{this['_annotationToNarrowView']['get'](_0x350d59)[_0x5014('0x27')](),this['_annotationToNarrowView'][_0x5014('0xa')](_0x350d59),_0x4f134a['rearrange']({'removedAnnotation':_0x350d59,'previousAnnotation':_0x56cb73[_0x5014('0x48')](_0x5b8c08-0x1),'nextAnnotation':_0x56cb73[_0x5014('0x48')](_0x5b8c08+0x1)}),_0x350d59===this[_0x5014('0x53')]&&this[_0x5014('0x6')](null);},{'priority':_0x5014('0x33')}),this[_0x5014('0x36')](_0x56cb73,_0x5014('0x16'),(_0x5dfe4e,_0x551913)=>{this[_0x5014('0x6')](_0x551913);}),this['listenTo'](_0x56cb73,_0x5014('0x57'),()=>{this['setActiveAnnotation'](null);}),this[_0x5014('0x4d')][_0x5014('0x36')](document,'keydown',(_0x211f35,_0x508f90)=>{_0x508f90['keyCode']===_0x102f34[_0x5014('0x5a')]&&_0x284028[_0x5014('0x42')]&&(this[_0x5014('0x37')][_0x5014('0x34')](_0x284028[_0x5014('0x11')]['first']),this['_hideBalloon'](),_0x508f90[_0x5014('0x32')](),_0x508f90[_0x5014('0x17')]());}),this[_0x5014('0x4d')]['listenTo'](document,_0x5014('0x4'),(_0x1d6d1f,_0x9d61b0)=>{const _0xe33eb4=_0x9d61b0[_0x5014('0x26')];_0x284028['isVisible']&&_0x284028[_0x5014('0x29')][_0x5014('0x40')](_0xe33eb4)||_0x4f134a['view']['element']['contains'](_0xe33eb4)||_0x1d6d1f[_0x5014('0xd')]||this['activeAnnotation']&&this[_0x5014('0x53')][_0x5014('0x50')]['find'](_0x4f9067=>_0x4f9067[_0x5014('0x40')](_0xe33eb4))||(this[_0x5014('0x37')][_0x5014('0x47')](),this[_0x5014('0xb')](),this[_0x5014('0x6')](null));});const _0x2b2a47=this[_0x5014('0x39')]instanceof _0x36f248?this['context'][_0x5014('0x56')]:new _0x127bc7([this['context']]);for(const _0x394e09 of _0x2b2a47)this[_0x5014('0x3')](_0x394e09);this['listenTo'](_0x2b2a47,_0x5014('0x34'),(_0x150eb1,_0xe9f533)=>{this[_0x5014('0x36')](_0xe9f533,'ready',()=>{this[_0x5014('0x3')](_0xe9f533);});}),this['listenTo'](_0x2b2a47,'remove',(_0x39fc60,_0x53a737)=>{_0x53a737[_0x5014('0xc')]['has']('EditorAnnotations')&&this[_0x5014('0x4f')](_0x53a737[_0x5014('0xc')][_0x5014('0x48')](_0x5014('0x5')));}),window[_0x5014('0x2')](_0x5014('0x1e'),this[_0x5014('0x9')]),this[_0x5014('0x2a')]();}[_0x5014('0x6')](_0x47e1f9){if(_0x47e1f9===this[_0x5014('0x53')])return;const _0x1ad4ba=this['context']['plugins'][_0x5014('0x48')](_0x2f95a2);if(_0x1ad4ba['refresh']({'blurredAnnotation':this[_0x5014('0x53')],'activatedAnnotation':_0x47e1f9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x47e1f9)_0x1ad4ba['getSidebarItemView'](_0x47e1f9)?this[_0x5014('0x0')](_0x47e1f9):this[_0x5014('0xb')]();else this[_0x5014('0xb')]();this[_0x5014('0x53')]=_0x47e1f9;}[_0x5014('0x20')](){if(!this[_0x5014('0x1')])throw new _0x32c47f(_0x5014('0x8'),this);this[_0x5014('0x6')](null);const _0x3271ee=this[_0x5014('0x39')]['plugins'][_0x5014('0x48')](_0x2f95a2);this[_0x5014('0xb')](),Array['from'](this[_0x5014('0x59')]['values'](),_0x44baa0=>_0x44baa0['destroy']()),this[_0x5014('0x59')][_0x5014('0x47')](),_0x3271ee['_detachFromContainer'](this[_0x5014('0x13')]),this['stopListening'](),this['_domEmitter']['stopListening'](),this[_0x5014('0x39')]instanceof _0x36f248&&this[_0x5014('0x1c')](this[_0x5014('0x39')][_0x5014('0x56')]);for(const _0x238b62 of Array[_0x5014('0x3b')](this[_0x5014('0x4b')]))this[_0x5014('0x4f')](_0x238b62);window[_0x5014('0x2d')](_0x5014('0x1e'),this[_0x5014('0x9')]),this[_0x5014('0x9')][_0x5014('0x21')](),this['_selectedAnnotations']=[],this[_0x5014('0x1')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x5014('0x1')]&&this['detach'](),this[_0x5014('0x52')][_0x5014('0x15')]();}[_0x5014('0x3')](_0x3da742){const _0x376149=_0x3da742[_0x5014('0xc')][_0x5014('0x48')](_0x2f4f08),_0x38188b=this[_0x5014('0x39')][_0x5014('0xc')][_0x5014('0x48')](_0x2f95a2),_0x28d189=this[_0x5014('0x13')],_0x46073f=this['balloonPanelView'],_0x502120=()=>{const _0x392534=_0x376149['getOrderedSelectedAnnotations']({'annotations':this[_0x5014('0x13')],'activeAnnotation':this[_0x5014('0x53')]});this['_setSelectedAnnotations'](_0x392534),this[_0x5014('0x6')](_0x392534[0x0]||null);};this[_0x5014('0x36')](_0x376149,_0x5014('0x55'),_0x502120),this[_0x5014('0x36')](_0x376149,_0x5014('0x57'),(_0x37c6ae,{isAnnotationTracked:_0x33f639})=>{this['activeAnnotation']&&_0x33f639(this[_0x5014('0x53')])&&(this[_0x5014('0x38')]([]),this[_0x5014('0x6')](null));}),this[_0x5014('0x36')](_0x376149,'uiUpdate',()=>{this[_0x5014('0x9')]();}),this['listenTo'](_0x28d189,_0x5014('0x57'),_0x4545c2=>{_0x376149[_0x5014('0x19')]()&&_0x4545c2[_0x5014('0x18')]();},{'priority':'high'}),this[_0x5014('0x36')](this[_0x5014('0x4d')],_0x5014('0x4'),(_0x4bc0f0,_0x361915)=>{const _0xe15ef6=_0x361915[_0x5014('0x26')];_0x46073f[_0x5014('0x42')]&&_0x46073f['element']['contains'](_0xe15ef6)||_0x38188b[_0x5014('0x2f')][_0x5014('0x29')][_0x5014('0x40')](_0xe15ef6)||this['activeAnnotation']&&_0x376149[_0x5014('0x19')]()&&(_0x502120(),_0x4bc0f0[_0x5014('0xd')]=!0x0);},{'priority':'high'}),this[_0x5014('0x4b')][_0x5014('0x34')](_0x376149);}[_0x5014('0x4f')](_0x59c411){_0x59c411&&(this[_0x5014('0x1c')](_0x59c411),this[_0x5014('0x4b')][_0x5014('0x46')](_0x59c411));}[_0x5014('0x38')](_0x2ef648){for(const _0x2db8ae of this[_0x5014('0x3a')])_0x2ef648[_0x5014('0x14')](_0x2db8ae)||this[_0x5014('0x37')][_0x5014('0xa')](_0x2db8ae[_0x5014('0x2f')]);this[_0x5014('0x3a')]=_0x2ef648;}['_refreshPositioning'](){const _0x2b6ddc=this[_0x5014('0x30')];this['annotations'][_0x5014('0x12')](),_0x2b6ddc[_0x5014('0x42')]&&this[_0x5014('0x41')]();}[_0x5014('0x0')](_0x141c24){if(this[_0x5014('0x37')][_0x5014('0x25')](_0x141c24[_0x5014('0x2f')]))return;const _0x5a3ee5=this['balloonPanelView'][_0x5014('0x11')][_0x5014('0x35')];_0x5a3ee5!==_0x141c24['view']?(_0x5a3ee5&&this[_0x5014('0x4e')](_0x5a3ee5),this[_0x5014('0x58')](_0x141c24[_0x5014('0x2f')]),this[_0x5014('0x30')][_0x5014('0x11')]['clear'](),this[_0x5014('0x30')][_0x5014('0x11')]['add'](_0x141c24['view']),this[_0x5014('0x41')]()):this['_updateBalloonPosition']();}[_0x5014('0x41')](){const _0x7c4391=this[_0x5014('0x30')]['content'][_0x5014('0x35')],_0x22a0f8=_0x7c4391&&this[_0x5014('0x13')][_0x5014('0xe')](_0x7c4391);if(!_0x22a0f8||!this[_0x5014('0x59')][_0x5014('0x25')](_0x22a0f8))return;const _0x251ad1=this[_0x5014('0x59')][_0x5014('0x48')](_0x22a0f8)[_0x5014('0x29')],_0x4b1390=function(){const _0x225f18=_0x583444[_0x5014('0x5c')];return[_0x225f18[_0x5014('0x5b')],_0x225f18[_0x5014('0x2c')],_0x225f18['southArrowNorth'],_0x225f18[_0x5014('0x3f')],_0x225f18[_0x5014('0x24')],_0x225f18[_0x5014('0x4c')]];}();this[_0x5014('0x30')][_0x5014('0x3e')]({'target':_0x251ad1,'positions':_0x4b1390});}[_0x5014('0xb')](){const _0x3c0a1a=this[_0x5014('0x30')],_0x33f83e=_0x3c0a1a[_0x5014('0x11')]['first'];_0x33f83e&&(this[_0x5014('0x4e')](_0x33f83e),_0x3c0a1a[_0x5014('0x51')](),_0x3c0a1a['content'][_0x5014('0x47')]());}[_0x5014('0x58')](_0x5a5dd2){this['listenTo'](_0x5a5dd2,_0x5014('0xf'),()=>this['_updateBalloonPosition']()),this[_0x5014('0x36')](_0x5a5dd2,_0x5014('0x10'),(_0x59acf3,_0x405d0a)=>{this['_manuallyClosedAnnotationViews'][_0x5014('0x34')](_0x5a5dd2),this[_0x5014('0xb')](),_0x405d0a();});}[_0x5014('0x4e')](_0x3ca619){this[_0x5014('0x1c')](_0x3ca619);}}
23
+ const _0x45c4=['stop','length','isDirty','focusableElements','number','listenTo','defaultPositions','context','narrowsidebar-attach-already-attached','refreshPositioning','blur','contains','set','_destroyEditorAnnotationsIntegration','element','editors','destroy','detach','_attachListeners','plugins','_annotationToNarrowView','_detachListeners','preventDefault','southArrowNorthEast','keyCode','attachToDom','_detachFromContainer','create','find','low','change:height','includes','off','target','balloonPanelView','_selectedAnnotations','get','_editorAnnotations','high','unpin','ck-sidebar--narrow','bodyCollection','_hideBalloon','init','type','_showBalloon','_refreshPositioningDebounced','pluginName','resize','_attachToContainer','_updateBalloonPosition','southArrowNorthWest','_integrateWithEditorAnnotations','northArrowSouthWest','EditorAnnotations','addEventListener','southArrowNorth','remove','first','mousedown','narrowSidebar','isAttached','hasDomSelection','has','cancel','setActiveAnnotation','register','addAnnotation','delete','pin','change:container','_refreshPositioning','execute','from','activeAnnotation','detachFromDom','_annotations','refresh','annotationType','preventClosingBalloon','_setSelectedAnnotations','keydown','clear','content','stopListening','getByView','northArrowSouth','focus','locale','isVisible','NarrowSidebar','bind','narrowsidebar-detach-not-attached','add','_manuallyClosedAnnotationViews','northArrowSouthEast','view','annotations','_domEmitter'];(function(_0x828e41,_0x45c447){const _0x531776=function(_0x407c0f){while(--_0x407c0f){_0x828e41['push'](_0x828e41['shift']());}};_0x531776(++_0x45c447);}(_0x45c4,0x86));const _0x5317=function(_0x828e41,_0x45c447){_0x828e41=_0x828e41-0x0;let _0x531776=_0x45c4[_0x828e41];return _0x531776;};import{ContextPlugin as _0x364bb7,Context as _0x4092fc}from'ckeditor5/src/core';import _0x3883c7 from'./annotationsuis';import _0x198cb3 from'./sidebar';import _0x2fbf6f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3b9b2f,BodyCollection as _0x3e5280}from'ckeditor5/src/ui';import{CKEditorError as _0x2c47e5,DomEmitterMixin as _0x33a64f,keyCodes as _0x5e1017,Collection as _0x2c087b}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5150c8}from'lodash-es';import _0x1828fd from'./editorannotations';export default class s extends _0x364bb7{static get['requires'](){return[_0x198cb3,_0x3883c7];}static get[_0x5317('0xc')](){return _0x5317('0x37');}constructor(_0x292282){super(_0x292282),this['isAttached']=!0x1,this[_0x5317('0x3b')]=new Set(),this[_0x5317('0x3f')]=Object[_0x5317('0x5b')](_0x33a64f),this[_0x5317('0x54')]=new Map(),this['set'](_0x5317('0x27'),null),this['annotations']=null,this['_selectedAnnotations']=[],this[_0x5317('0x2')]=new _0x2c087b(),this['_refreshPositioningDebounced']=_0x5150c8(()=>{this[_0x5317('0x24')]();},0xfa,{'leading':!0x1});}[_0x5317('0x8')](){this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x3883c7)[_0x5317('0x1f')](_0x5317('0x19'),this),this['bodyCollection']=new _0x3e5280(this[_0x5317('0x47')][_0x5317('0x35')]),this[_0x5317('0x62')]=new _0x3b9b2f(this[_0x5317('0x47')]['locale']),this[_0x5317('0x6')][_0x5317('0x59')](),this[_0x5317('0x6')][_0x5317('0x3a')](this[_0x5317('0x62')]);}['attach'](_0x367ed0){this['annotations']=_0x367ed0;const _0x1f3f25=this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3),_0x45c73d=this[_0x5317('0x62')];if(_0x1f3f25[_0x5317('0x29')]=_0x367ed0,this['isAttached'])throw new _0x2c47e5(_0x5317('0x48'),this);this[_0x5317('0x1a')]=!0x0,this[_0x5317('0x45')](_0x1f3f25,'set:container',()=>{this[_0x5317('0x51')](),this[_0x5317('0x45')](_0x1f3f25,_0x5317('0x23'),_0x28b64a=>{_0x28b64a[_0x5317('0x60')](),this['attach'](_0x367ed0);});}),_0x1f3f25[_0x5317('0xe')]({'viewClass':_0x5317('0x5'),'spaceBetweenItems':0x5});const _0x5b9172=_0x2690f8=>{const _0x35913=new _0x2fbf6f(this['context']['locale']);_0x1f3f25[_0x5317('0x20')](_0x2690f8,_0x35913),this[_0x5317('0x54')][_0x5317('0x4c')](_0x2690f8,_0x35913),_0x35913[_0x5317('0x38')](_0x5317('0x42'),_0x5317('0x2b'),_0x5317('0x44'))['to'](_0x2690f8[_0x5317('0x3d')],_0x5317('0x42'),_0x5317('0x9'),_0x5317('0x41')),_0x35913['on'](_0x5317('0x25'),()=>{this[_0x5317('0x3b')][_0x5317('0x2f')](),_0x45c73d[_0x5317('0x30')][_0x5317('0x17')]!==_0x2690f8[_0x5317('0x3d')]?(this[_0x5317('0xa')](_0x2690f8),_0x2690f8['view'][_0x5317('0x4e')][_0x5317('0x34')](),this[_0x5317('0x1e')](_0x2690f8)):this[_0x5317('0x1e')](null);});};for(const _0xd264de of _0x367ed0)_0x5b9172(_0xd264de);this[_0x5317('0x45')](_0x367ed0,_0x5317('0x3a'),(_0x129170,_0x41201c)=>{_0x5b9172(_0x41201c);}),this[_0x5317('0x45')](_0x367ed0,_0x5317('0x16'),(_0x2319a0,_0x32339d,_0x344fc4)=>{this['_annotationToNarrowView'][_0x5317('0x1')](_0x32339d)['destroy'](),this[_0x5317('0x54')][_0x5317('0x21')](_0x32339d),_0x1f3f25['rearrange']({'removedAnnotation':_0x32339d,'previousAnnotation':_0x367ed0['get'](_0x344fc4-0x1),'nextAnnotation':_0x367ed0['get'](_0x344fc4+0x1)}),_0x32339d===this[_0x5317('0x27')]&&this[_0x5317('0x1e')](null);},{'priority':_0x5317('0x5d')}),this[_0x5317('0x45')](_0x367ed0,_0x5317('0x34'),(_0x14ed73,_0x4b9e34)=>{this[_0x5317('0x1e')](_0x4b9e34);}),this[_0x5317('0x45')](_0x367ed0,'blur',()=>{this[_0x5317('0x1e')](null);}),this[_0x5317('0x3f')]['listenTo'](document,_0x5317('0x2e'),(_0x4b06b4,_0x531809)=>{_0x531809[_0x5317('0x58')]===_0x5e1017['esc']&&_0x45c73d[_0x5317('0x36')]&&(this[_0x5317('0x3b')][_0x5317('0x3a')](_0x45c73d['content'][_0x5317('0x17')]),this['_hideBalloon'](),_0x531809['stopPropagation'](),_0x531809[_0x5317('0x56')]());}),this['_domEmitter'][_0x5317('0x45')](document,'mousedown',(_0x4f66d2,_0x193602)=>{const _0x5b4882=_0x193602[_0x5317('0x61')];_0x45c73d[_0x5317('0x36')]&&_0x45c73d[_0x5317('0x4e')][_0x5317('0x4b')](_0x5b4882)||_0x1f3f25[_0x5317('0x3d')][_0x5317('0x4e')]['contains'](_0x5b4882)||_0x4f66d2[_0x5317('0x2c')]||this['activeAnnotation']&&this[_0x5317('0x27')][_0x5317('0x43')][_0x5317('0x5c')](_0x30268b=>_0x30268b[_0x5317('0x4b')](_0x5b4882))||(this[_0x5317('0x3b')]['clear'](),this[_0x5317('0x7')](),this[_0x5317('0x1e')](null));});const _0x268f0b=this[_0x5317('0x47')]instanceof _0x4092fc?this[_0x5317('0x47')][_0x5317('0x4f')]:new _0x2c087b([this[_0x5317('0x47')]]);for(const _0x4f3229 of _0x268f0b)this[_0x5317('0x11')](_0x4f3229);this['listenTo'](_0x268f0b,_0x5317('0x3a'),(_0x374022,_0x2c6cf3)=>{this[_0x5317('0x45')](_0x2c6cf3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2c6cf3);});}),this['listenTo'](_0x268f0b,_0x5317('0x16'),(_0x48cd5b,_0x307995)=>{_0x307995[_0x5317('0x53')][_0x5317('0x1c')]('EditorAnnotations')&&this[_0x5317('0x4d')](_0x307995[_0x5317('0x53')][_0x5317('0x1')](_0x5317('0x13')));}),window[_0x5317('0x14')](_0x5317('0xd'),this['_refreshPositioningDebounced']),this[_0x5317('0x24')]();}[_0x5317('0x1e')](_0x191459){if(_0x191459===this['activeAnnotation'])return;const _0x416cef=this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3);if(_0x416cef[_0x5317('0x2a')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x191459,'disableAnimationOnActivatedAnnotation':!0x0}),_0x191459)_0x416cef['getSidebarItemView'](_0x191459)?this[_0x5317('0xa')](_0x191459):this[_0x5317('0x7')]();else this[_0x5317('0x7')]();this[_0x5317('0x27')]=_0x191459;}[_0x5317('0x51')](){if(!this[_0x5317('0x1a')])throw new _0x2c47e5(_0x5317('0x39'),this);this[_0x5317('0x1e')](null);const _0x1861e6=this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3);this[_0x5317('0x7')](),Array['from'](this[_0x5317('0x54')]['values'](),_0x4c3f35=>_0x4c3f35[_0x5317('0x50')]()),this[_0x5317('0x54')]['clear'](),_0x1861e6[_0x5317('0x5a')](this['annotations']),this[_0x5317('0x31')](),this['_domEmitter'][_0x5317('0x31')](),this['context']instanceof _0x4092fc&&this['stopListening'](this[_0x5317('0x47')][_0x5317('0x4f')]);for(const _0x45d07c of Array[_0x5317('0x26')](this[_0x5317('0x2')]))this['_destroyEditorAnnotationsIntegration'](_0x45d07c);window['removeEventListener']('resize',this[_0x5317('0xb')]),this[_0x5317('0xb')][_0x5317('0x1d')](),this[_0x5317('0x0')]=[],this[_0x5317('0x1a')]=!0x1,this[_0x5317('0x3e')]=null;}[_0x5317('0x50')](){this[_0x5317('0x1a')]&&this[_0x5317('0x51')](),this['bodyCollection'][_0x5317('0x28')]();}['_integrateWithEditorAnnotations'](_0x221bd5){const _0x2c62af=_0x221bd5['plugins'][_0x5317('0x1')](_0x1828fd),_0xdd95c9=this['context'][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3),_0x385f2c=this['annotations'],_0x42a47c=this[_0x5317('0x62')],_0x34688f=()=>{const _0x3529b9=_0x2c62af['getOrderedSelectedAnnotations']({'annotations':this[_0x5317('0x3e')],'activeAnnotation':this[_0x5317('0x27')]});this[_0x5317('0x2d')](_0x3529b9),this[_0x5317('0x1e')](_0x3529b9[0x0]||null);};this['listenTo'](_0x2c62af,_0x5317('0x2a'),_0x34688f),this[_0x5317('0x45')](_0x2c62af,'blur',(_0xe00ee,{isAnnotationTracked:_0x37edd9})=>{this['activeAnnotation']&&_0x37edd9(this[_0x5317('0x27')])&&(this[_0x5317('0x2d')]([]),this[_0x5317('0x1e')](null));}),this[_0x5317('0x45')](_0x2c62af,'uiUpdate',()=>{this[_0x5317('0xb')]();}),this[_0x5317('0x45')](_0x385f2c,_0x5317('0x4a'),_0x532fb3=>{_0x2c62af[_0x5317('0x1b')]()&&_0x532fb3[_0x5317('0x40')]();},{'priority':_0x5317('0x3')}),this['listenTo'](this[_0x5317('0x3f')],_0x5317('0x18'),(_0x12434a,_0x546c7a)=>{const _0x588e0a=_0x546c7a['target'];_0x42a47c[_0x5317('0x36')]&&_0x42a47c[_0x5317('0x4e')][_0x5317('0x4b')](_0x588e0a)||_0xdd95c9[_0x5317('0x3d')][_0x5317('0x4e')][_0x5317('0x4b')](_0x588e0a)||this[_0x5317('0x27')]&&_0x2c62af['hasDomSelection']()&&(_0x34688f(),_0x12434a[_0x5317('0x2c')]=!0x0);},{'priority':'high'}),this[_0x5317('0x2')][_0x5317('0x3a')](_0x2c62af);}[_0x5317('0x4d')](_0x3fea15){_0x3fea15&&(this['stopListening'](_0x3fea15),this['_editorAnnotations'][_0x5317('0x16')](_0x3fea15));}['_setSelectedAnnotations'](_0x78d466){for(const _0x2bf327 of this['_selectedAnnotations'])_0x78d466[_0x5317('0x5f')](_0x2bf327)||this[_0x5317('0x3b')][_0x5317('0x21')](_0x2bf327[_0x5317('0x3d')]);this[_0x5317('0x0')]=_0x78d466;}[_0x5317('0x24')](){const _0x4cbdb8=this[_0x5317('0x62')];this[_0x5317('0x3e')][_0x5317('0x49')](),_0x4cbdb8[_0x5317('0x36')]&&this['_updateBalloonPosition']();}[_0x5317('0xa')](_0x3f71a9){if(this['_manuallyClosedAnnotationViews']['has'](_0x3f71a9[_0x5317('0x3d')]))return;const _0x5415bb=this['balloonPanelView']['content']['first'];_0x5415bb!==_0x3f71a9['view']?(_0x5415bb&&this[_0x5317('0x55')](_0x5415bb),this[_0x5317('0x52')](_0x3f71a9[_0x5317('0x3d')]),this[_0x5317('0x62')][_0x5317('0x30')][_0x5317('0x2f')](),this['balloonPanelView'][_0x5317('0x30')]['add'](_0x3f71a9[_0x5317('0x3d')]),this[_0x5317('0xf')]()):this[_0x5317('0xf')]();}[_0x5317('0xf')](){const _0x4666dd=this[_0x5317('0x62')][_0x5317('0x30')]['first'],_0xab752f=_0x4666dd&&this[_0x5317('0x3e')][_0x5317('0x32')](_0x4666dd);if(!_0xab752f||!this[_0x5317('0x54')][_0x5317('0x1c')](_0xab752f))return;const _0x248ddc=this[_0x5317('0x54')]['get'](_0xab752f)['element'],_0x6b5622=function(){const _0x19d3ed=_0x3b9b2f[_0x5317('0x46')];return[_0x19d3ed[_0x5317('0x57')],_0x19d3ed[_0x5317('0x3c')],_0x19d3ed[_0x5317('0x15')],_0x19d3ed[_0x5317('0x33')],_0x19d3ed[_0x5317('0x10')],_0x19d3ed[_0x5317('0x12')]];}();this[_0x5317('0x62')][_0x5317('0x22')]({'target':_0x248ddc,'positions':_0x6b5622});}['_hideBalloon'](){const _0x5bde29=this[_0x5317('0x62')],_0x3c4e13=_0x5bde29[_0x5317('0x30')][_0x5317('0x17')];_0x3c4e13&&(this[_0x5317('0x55')](_0x3c4e13),_0x5bde29[_0x5317('0x4')](),_0x5bde29['content'][_0x5317('0x2f')]());}[_0x5317('0x52')](_0x2dd34b){this[_0x5317('0x45')](_0x2dd34b,_0x5317('0x5e'),()=>this[_0x5317('0xf')]()),this[_0x5317('0x45')](_0x2dd34b,'Esc',(_0x3be7cb,_0x5004fa)=>{this['_manuallyClosedAnnotationViews'][_0x5317('0x3a')](_0x2dd34b),this[_0x5317('0x7')](),_0x5004fa();});}[_0x5317('0x55')](_0x4ec161){this[_0x5317('0x31')](_0x4ec161);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41c3=['pluginName','setContainer','element','remove','minHeight','class','_updateLastItem','sidebar.preventScrollOutOfView','_alignAfterItem','destroy','addAnnotation','_detachFromContainer','init','sidebar-setcontainer-invalid-element','updateHeight','isActive','change:top','listenTo','push','_annotations','bottom','refresh','_getTargetTop','appendChild','bind','content','getIndex','height','list','locale','_alignToTargetRect','_createSidebarView','unbind','change:targetRect','stopListening','_recalculate','nodeType','_alignForBottomChange','getSidebarItemView','container','max','target','_getItemAfter','delete','_attachToContainer','last','_recalculateBuffer','top','_lastItem','view','_targetTop','_getMaxAvailableTop','isAnimationDisabled','_sidebarItemViewToAnnotation','object','_annotationToSidebarItemView','rearrange','change:_lastItem','get','_spaceBetweenItems','context','_alignForTopChange','targetRect','_setItemTop','_getItemBefore','render','_alignBeforeItem','_activeAnnotation','add','length','config','set','_destroySidebarItemView','Sidebar'];(function(_0x676177,_0x41c347){const _0x2b65a0=function(_0xac8b19){while(--_0xac8b19){_0x676177['push'](_0x676177['shift']());}};_0x2b65a0(++_0x41c347);}(_0x41c3,0x7f));const _0x2b65=function(_0x676177,_0x41c347){_0x676177=_0x676177-0x0;let _0x2b65a0=_0x41c3[_0x676177];return _0x2b65a0;};import{ContextPlugin as _0x3dd9ad}from'ckeditor5/src/core';import{Rect as _0x443899,CKEditorError as _0x1ff682}from'ckeditor5/src/utils';import _0x5cec39 from'./view/sidebarview';import _0x117fe7 from'./view/sidebaritemview';export default class z extends _0x3dd9ad{static get[_0x2b65('0x15')](){return _0x2b65('0x14');}constructor(_0x3a49ab){super(_0x3a49ab),this['set'](_0x2b65('0x45'),void 0x0),this[_0x2b65('0x46')]=this['_createSidebarView'](),this[_0x2b65('0x12')](_0x2b65('0x3c'),null),this[_0x2b65('0x6')]=0x19,this[_0x2b65('0x0')]=new Map(),this[_0x2b65('0x2')]=new Map(),this[_0x2b65('0x7')][_0x2b65('0x11')]['define'](_0x2b65('0x1c'),!0x1),this[_0x2b65('0x28')]=null,this[_0x2b65('0xe')]=null,this['_recalculateBuffer']=[];}[_0x2b65('0x21')](){const _0x417dd5=this['context'][_0x2b65('0x11')][_0x2b65('0x5')]('sidebar.container');_0x417dd5&&this[_0x2b65('0x16')](_0x417dd5);}['setContainer'](_0xcad40a){if(!y(_0xcad40a))throw new _0x1ff682(_0x2b65('0x22'));this[_0x2b65('0x3c')]=_0xcad40a;}[_0x2b65('0x41')]({viewClass:_0x5ace69='',spaceBetweenItems:_0x5f5796=0x19}={}){if(!y(this[_0x2b65('0x3c')]))throw new _0x1ff682('sidebar-attachtocontainer-missing-container',this);this[_0x2b65('0x3c')][_0x2b65('0x2c')](this[_0x2b65('0x46')][_0x2b65('0x17')]),this[_0x2b65('0x46')][_0x2b65('0x1a')]=_0x5ace69,this[_0x2b65('0x6')]=_0x5f5796;}[_0x2b65('0x3')]({removedAnnotation:_0x3a649a,previousAnnotation:_0x51c6ec,nextAnnotation:_0xfb3fce}){const _0x1a68e=this[_0x2b65('0x3b')](_0x3a649a);this[_0x2b65('0x46')]['list']['remove'](_0x1a68e),this[_0x2b65('0x13')](_0x3a649a),_0x51c6ec&&this['_alignToTargetRect'](this[_0x2b65('0x3b')](_0x51c6ec)),_0xfb3fce&&this[_0x2b65('0x33')](this['getSidebarItemView'](_0xfb3fce)),this[_0x2b65('0x1b')]();}[_0x2b65('0x2a')]({blurredAnnotation:_0x11d756,activatedAnnotation:_0x49c601,disableAnimationOnActivatedAnnotation:_0x3a720e}){if(this[_0x2b65('0xe')]=_0x49c601,_0x11d756){_0x11d756[_0x2b65('0x24')]=!0x1;const _0x17e438=this[_0x2b65('0x3b')](_0x11d756);_0x17e438&&_0x3a720e&&(_0x17e438[_0x2b65('0x49')]=!0x1);}if(_0x49c601){const _0x1c5ef3=this[_0x2b65('0x3b')](_0x49c601);_0x1c5ef3&&(_0x49c601[_0x2b65('0x24')]=!0x0,_0x3a720e&&(_0x1c5ef3[_0x2b65('0x49')]=!0x0,_0x1c5ef3[_0x2b65('0x44')]+=0x1),this[_0x2b65('0x33')](_0x1c5ef3));}}[_0x2b65('0x20')](_0x80e92b){if(this['view'][_0x2b65('0x17')][_0x2b65('0x18')](),_0x80e92b)for(const _0x5da9db of _0x80e92b)this[_0x2b65('0x13')](_0x5da9db);this[_0x2b65('0x46')][_0x2b65('0x31')]['clear'](),this['view'][_0x2b65('0x1a')]='',this[_0x2b65('0x45')]=null;}[_0x2b65('0x1f')](_0x45bcb3,_0x59bac6){_0x59bac6||(_0x59bac6=_0x45bcb3[_0x2b65('0x46')]);const _0x2070a7=new _0x117fe7(this[_0x2b65('0x7')]['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2070a7,_0x45bcb3),this['_annotationToSidebarItemView'][_0x2b65('0x12')](_0x45bcb3,_0x2070a7),_0x2070a7['content'][_0x2b65('0xf')](_0x59bac6),this[_0x2b65('0x26')](_0x45bcb3[_0x2b65('0x46')],_0x2b65('0x36'),(_0x30d19b,_0x3f57a2,_0xf3237f)=>{const _0x4537b0=this[_0x2b65('0x2b')](_0x45bcb3,_0xf3237f);_0x2070a7[_0x2b65('0x47')]!=_0x4537b0&&(_0x2070a7[_0x2b65('0x47')]=_0x4537b0,this[_0x2b65('0xa')](_0x2070a7,_0x4537b0));}),this[_0x2b65('0x26')](_0x2070a7,_0x2b65('0x25'),()=>{this[_0x2b65('0x38')](_0x2070a7,_0x2b65('0x44'));}),this[_0x2b65('0x26')](_0x2070a7,'change:bottom',()=>{this['_recalculate'](_0x2070a7,'bottom');}),this[_0x2b65('0x33')](_0x2070a7);const _0x34dae5=this[_0x2b65('0xb')](_0x2070a7);if(_0x34dae5)this[_0x2b65('0x1d')](_0x34dae5,_0x2070a7)||this['_alignToTargetRect'](_0x2070a7);else this['_alignToTargetRect'](_0x2070a7);return this[_0x2b65('0x1b')](),this['view']['list'][_0x2b65('0xf')](_0x2070a7),_0x2070a7;}['_alignForTopChange'](_0x2275ce){if(!_0x2275ce[_0x2b65('0x2e')][_0x2b65('0x10')])return;const _0x97e606=this[_0x2b65('0xb')](_0x2275ce);if(!_0x97e606)return;const _0x519507=this[_0x2b65('0x0')]['get'](_0x97e606),_0x312184=this['_activeAnnotation'];_0x312184&&_0x312184===_0x519507?this[_0x2b65('0x1d')](_0x97e606,_0x2275ce):this[_0x2b65('0xd')](_0x2275ce,_0x97e606);}[_0x2b65('0x3a')](_0x5f09f5){if(!_0x5f09f5[_0x2b65('0x2e')][_0x2b65('0x10')])return;const _0x53ae21=this[_0x2b65('0x3f')](_0x5f09f5);if(!_0x53ae21)return;const _0x46a643=this[_0x2b65('0x0')][_0x2b65('0x5')](_0x53ae21),_0x7a968=this[_0x2b65('0x7')][_0x2b65('0x11')][_0x2b65('0x5')]('sidebar.preventScrollOutOfView'),_0x342fe1=this[_0x2b65('0xe')];_0x342fe1&&_0x342fe1===_0x46a643&&_0x7a968?(this[_0x2b65('0xd')](_0x53ae21,_0x5f09f5),this[_0x2b65('0x1d')](_0x5f09f5,_0x53ae21)):_0x342fe1&&_0x342fe1===_0x46a643?this[_0x2b65('0xd')](_0x53ae21,_0x5f09f5):this[_0x2b65('0x1d')](_0x5f09f5,_0x53ae21);}['_recalculate'](_0x59991f,_0x158fdd){0x0===this[_0x2b65('0x43')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x16e350,changedProp:_0x2329fa}of this[_0x2b65('0x43')])_0x2b65('0x44')===_0x2329fa?this[_0x2b65('0x8')](_0x16e350):this[_0x2b65('0x3a')](_0x16e350);this[_0x2b65('0x43')]=[];},0xa),this[_0x2b65('0x43')][_0x2b65('0x27')]({'sidebarItemView':_0x59991f,'changedProp':_0x158fdd});}['getSidebarItemView'](_0x263872){return this[_0x2b65('0x2')][_0x2b65('0x5')](_0x263872);}[_0x2b65('0x1e')](){this[_0x2b65('0x37')](),this[_0x2b65('0x46')]['destroy']();}[_0x2b65('0x13')](_0x3f3b44){const _0x4e1f0b=this[_0x2b65('0x3b')](_0x3f3b44);this['stopListening'](_0x4e1f0b),this[_0x2b65('0x37')](_0x3f3b44[_0x2b65('0x46')]),_0x4e1f0b[_0x2b65('0x1e')](),this[_0x2b65('0x2')][_0x2b65('0x40')](_0x3f3b44),this[_0x2b65('0x0')][_0x2b65('0x40')](_0x4e1f0b);}[_0x2b65('0x34')](){const _0x49a8a8=new _0x5cec39(this['context'][_0x2b65('0x32')]);return _0x49a8a8[_0x2b65('0xc')](),this['on'](_0x2b65('0x4'),(_0x23faa2,_0x2ca94e,_0x14695c,_0x43e116)=>{_0x43e116&&_0x49a8a8[_0x2b65('0x35')](_0x2b65('0x19')),_0x14695c?_0x49a8a8[_0x2b65('0x2d')](_0x2b65('0x19'))['to'](_0x14695c,_0x2b65('0x29')):_0x49a8a8[_0x2b65('0x19')]=null;}),_0x49a8a8;}[_0x2b65('0x1b')](){var _0x11e8e6;this[_0x2b65('0x45')]=(null===(_0x11e8e6=this[_0x2b65('0x28')])||void 0x0===_0x11e8e6?void 0x0:_0x11e8e6[_0x2b65('0x42')])?this['getSidebarItemView'](this['_annotations'][_0x2b65('0x42')]):null;}[_0x2b65('0xb')](_0x40cd11){var _0x4cb069;const _0x4b585a=this['_sidebarItemViewToAnnotation'][_0x2b65('0x5')](_0x40cd11),_0xf663f6=_0x4b585a&&(null===(_0x4cb069=this[_0x2b65('0x28')])||void 0x0===_0x4cb069?void 0x0:_0x4cb069[_0x2b65('0x5')](this[_0x2b65('0x28')]['getIndex'](_0x4b585a)-0x1));return _0xf663f6&&this[_0x2b65('0x3b')](_0xf663f6)||null;}['_getItemAfter'](_0xb3e885){var _0x34ca5d;const _0x25c608=this[_0x2b65('0x0')][_0x2b65('0x5')](_0xb3e885),_0x4fade9=_0x25c608&&(null===(_0x34ca5d=this['_annotations'])||void 0x0===_0x34ca5d?void 0x0:_0x34ca5d[_0x2b65('0x5')](this['_annotations'][_0x2b65('0x2f')](_0x25c608)+0x1));return _0x4fade9&&this[_0x2b65('0x3b')](_0x4fade9)||null;}[_0x2b65('0xd')](_0x598d29,_0x22d661){_0x598d29[_0x2b65('0x23')]();const _0xc3cedf=H(_0x22d661[_0x2b65('0x29')]+this[_0x2b65('0x6')],_0x598d29[_0x2b65('0x44')]);return!!_0xc3cedf&&(this[_0x2b65('0xa')](_0x22d661,_0x22d661[_0x2b65('0x44')]-_0xc3cedf),!0x0);}[_0x2b65('0x1d')](_0x54401d,_0x2e093f){_0x54401d[_0x2b65('0x23')]();const _0x5e4690=H(_0x54401d['bottom']+this['_spaceBetweenItems'],_0x2e093f['top']);return!!_0x5e4690&&(this[_0x2b65('0xa')](_0x2e093f,_0x2e093f[_0x2b65('0x44')]+_0x5e4690,!0x1),!0x0);}[_0x2b65('0x33')](_0xe60b0c){const _0x304d8=this['_sidebarItemViewToAnnotation'][_0x2b65('0x5')](_0xe60b0c);if(!_0x304d8||!_0x304d8[_0x2b65('0x3e')]||!_0x304d8['targetRect'])return;const _0xa36122=this[_0x2b65('0x2b')](_0x304d8,_0x304d8[_0x2b65('0x9')]);this['_setItemTop'](_0xe60b0c,_0xa36122);}[_0x2b65('0x2b')](_0xb6c4b,_0x2a7a84){if(null===_0x2a7a84)return 0x0;if(_0xb6c4b['target']instanceof _0x443899)return _0x2a7a84[_0x2b65('0x44')];{const _0x86b9d=new _0x443899(this[_0x2b65('0x46')][_0x2b65('0x17')])[_0x2b65('0x44')];return _0x2a7a84[_0x2b65('0x44')]-_0x86b9d;}}[_0x2b65('0xa')](_0x4e8bb4,_0x24402c,_0x75ff52=this[_0x2b65('0x7')][_0x2b65('0x11')][_0x2b65('0x5')](_0x2b65('0x1c'))){_0x75ff52&&(_0x24402c=Math[_0x2b65('0x3d')](_0x24402c,this[_0x2b65('0x48')](_0x4e8bb4))),_0x4e8bb4[_0x2b65('0x44')]=_0x24402c;}['_getMaxAvailableTop'](_0x34be04){let _0x1264ad=this[_0x2b65('0xb')](_0x34be04),_0x1c3075=0x0;for(;_0x1264ad;)_0x1264ad[_0x2b65('0x23')](),_0x1c3075+=this[_0x2b65('0x6')]+_0x1264ad[_0x2b65('0x30')],_0x1264ad=this['_getItemBefore'](_0x1264ad);return _0x1c3075;}}function H(_0x426101,_0x392ef9){return Math['max'](_0x426101-_0x392ef9,0x0);}function y(_0x4efa4d){return null!==_0x4efa4d&&_0x2b65('0x1')==typeof _0x4efa4d&&0x1===_0x4efa4d[_0x2b65('0x39')];}
23
+ const _0x11bb=['_sidebarItemViewToAnnotation','_annotationToSidebarItemView','top','context','target','unbind','_getTargetTop','getSidebarItemView','last','change:_lastItem','_attachToContainer','height','max','listenTo','render','refresh','targetRect','_getItemAfter','destroy','sidebar.container','_spaceBetweenItems','_alignForBottomChange','_alignAfterItem','clear','add','_activeAnnotation','_updateLastItem','_alignForTopChange','config','set','_setItemTop','object','getIndex','setContainer','delete','updateHeight','_alignBeforeItem','length','rearrange','isActive','element','remove','sidebar.preventScrollOutOfView','container','class','Sidebar','_getItemBefore','_annotations','_destroySidebarItemView','locale','_recalculateBuffer','change:targetRect','addAnnotation','_getMaxAvailableTop','sidebar-setcontainer-invalid-element','content','get','bottom','_createSidebarView','change:bottom','init','stopListening','minHeight','push','_detachFromContainer','view','_alignToTargetRect','list','appendChild','isAnimationDisabled','_lastItem','_recalculate'];(function(_0x10c68a,_0x11bb89){const _0x786788=function(_0x3f482c){while(--_0x3f482c){_0x10c68a['push'](_0x10c68a['shift']());}};_0x786788(++_0x11bb89);}(_0x11bb,0xaa));const _0x7867=function(_0x10c68a,_0x11bb89){_0x10c68a=_0x10c68a-0x0;let _0x786788=_0x11bb[_0x10c68a];return _0x786788;};import{ContextPlugin as _0x21ac19}from'ckeditor5/src/core';import{Rect as _0x37bf08,CKEditorError as _0x2eb825}from'ckeditor5/src/utils';import _0x3cd58d from'./view/sidebarview';import _0x28c24a from'./view/sidebaritemview';export default class z extends _0x21ac19{static get['pluginName'](){return _0x7867('0x13');}constructor(_0x52dd12){super(_0x52dd12),this[_0x7867('0x3')](_0x7867('0x2c'),void 0x0),this[_0x7867('0x27')]=this[_0x7867('0x20')](),this[_0x7867('0x3')](_0x7867('0x11'),null),this[_0x7867('0x42')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x7867('0x2f')]=new Map(),this[_0x7867('0x31')]['config']['define'](_0x7867('0x10'),!0x1),this[_0x7867('0x15')]=null,this[_0x7867('0x47')]=null,this['_recalculateBuffer']=[];}[_0x7867('0x22')](){const _0x20577a=this[_0x7867('0x31')][_0x7867('0x2')][_0x7867('0x1e')](_0x7867('0x41'));_0x20577a&&this[_0x7867('0x7')](_0x20577a);}[_0x7867('0x7')](_0x4bf6f9){if(!y(_0x4bf6f9))throw new _0x2eb825(_0x7867('0x1c'));this[_0x7867('0x11')]=_0x4bf6f9;}[_0x7867('0x38')]({viewClass:_0x410fe1='',spaceBetweenItems:_0x5f1e2b=0x19}={}){if(!y(this[_0x7867('0x11')]))throw new _0x2eb825('sidebar-attachtocontainer-missing-container',this);this[_0x7867('0x11')][_0x7867('0x2a')](this[_0x7867('0x27')][_0x7867('0xe')]),this[_0x7867('0x27')][_0x7867('0x12')]=_0x410fe1,this[_0x7867('0x42')]=_0x5f1e2b;}[_0x7867('0xc')]({removedAnnotation:_0x1e0724,previousAnnotation:_0x38f3d1,nextAnnotation:_0x30bba9}){const _0x3efb12=this[_0x7867('0x35')](_0x1e0724);this[_0x7867('0x27')][_0x7867('0x29')][_0x7867('0xf')](_0x3efb12),this[_0x7867('0x16')](_0x1e0724),_0x38f3d1&&this['_alignToTargetRect'](this[_0x7867('0x35')](_0x38f3d1)),_0x30bba9&&this[_0x7867('0x28')](this[_0x7867('0x35')](_0x30bba9)),this[_0x7867('0x0')]();}[_0x7867('0x3d')]({blurredAnnotation:_0x2b5263,activatedAnnotation:_0x2f9726,disableAnimationOnActivatedAnnotation:_0x196e3a}){if(this[_0x7867('0x47')]=_0x2f9726,_0x2b5263){_0x2b5263[_0x7867('0xd')]=!0x1;const _0x565e69=this[_0x7867('0x35')](_0x2b5263);_0x565e69&&_0x196e3a&&(_0x565e69['isAnimationDisabled']=!0x1);}if(_0x2f9726){const _0x206863=this[_0x7867('0x35')](_0x2f9726);_0x206863&&(_0x2f9726['isActive']=!0x0,_0x196e3a&&(_0x206863[_0x7867('0x2b')]=!0x0,_0x206863[_0x7867('0x30')]+=0x1),this['_alignToTargetRect'](_0x206863));}}[_0x7867('0x26')](_0x450cda){if(this['view']['element'][_0x7867('0xf')](),_0x450cda)for(const _0x4749eb of _0x450cda)this[_0x7867('0x16')](_0x4749eb);this[_0x7867('0x27')][_0x7867('0x29')][_0x7867('0x45')](),this['view'][_0x7867('0x12')]='',this[_0x7867('0x2c')]=null;}[_0x7867('0x1a')](_0x20f71c,_0x1a1c21){_0x1a1c21||(_0x1a1c21=_0x20f71c[_0x7867('0x27')]);const _0x1a3677=new _0x28c24a(this[_0x7867('0x31')][_0x7867('0x17')]);this[_0x7867('0x2e')][_0x7867('0x3')](_0x1a3677,_0x20f71c),this[_0x7867('0x2f')][_0x7867('0x3')](_0x20f71c,_0x1a3677),_0x1a3677[_0x7867('0x1d')][_0x7867('0x46')](_0x1a1c21),this[_0x7867('0x3b')](_0x20f71c[_0x7867('0x27')],_0x7867('0x19'),(_0x1c7f3b,_0x1aa9d2,_0x4b87e5)=>{const _0x5e05f5=this[_0x7867('0x34')](_0x20f71c,_0x4b87e5);_0x1a3677['_targetTop']!=_0x5e05f5&&(_0x1a3677['_targetTop']=_0x5e05f5,this[_0x7867('0x4')](_0x1a3677,_0x5e05f5));}),this['listenTo'](_0x1a3677,'change:top',()=>{this[_0x7867('0x2d')](_0x1a3677,_0x7867('0x30'));}),this[_0x7867('0x3b')](_0x1a3677,_0x7867('0x21'),()=>{this[_0x7867('0x2d')](_0x1a3677,_0x7867('0x1f'));}),this[_0x7867('0x28')](_0x1a3677);const _0xc7b26e=this['_getItemBefore'](_0x1a3677);if(_0xc7b26e)this[_0x7867('0x44')](_0xc7b26e,_0x1a3677)||this[_0x7867('0x28')](_0x1a3677);else this[_0x7867('0x28')](_0x1a3677);return this[_0x7867('0x0')](),this['view'][_0x7867('0x29')][_0x7867('0x46')](_0x1a3677),_0x1a3677;}[_0x7867('0x1')](_0x1474bd){if(!_0x1474bd[_0x7867('0x1d')][_0x7867('0xb')])return;const _0x4ec4be=this[_0x7867('0x14')](_0x1474bd);if(!_0x4ec4be)return;const _0x3a082c=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x4ec4be),_0x447c1c=this[_0x7867('0x47')];_0x447c1c&&_0x447c1c===_0x3a082c?this[_0x7867('0x44')](_0x4ec4be,_0x1474bd):this[_0x7867('0xa')](_0x1474bd,_0x4ec4be);}[_0x7867('0x43')](_0x779ce){if(!_0x779ce[_0x7867('0x1d')][_0x7867('0xb')])return;const _0x33c078=this['_getItemAfter'](_0x779ce);if(!_0x33c078)return;const _0x4d2ea0=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x33c078),_0x3c471d=this['context'][_0x7867('0x2')][_0x7867('0x1e')]('sidebar.preventScrollOutOfView'),_0x410d30=this[_0x7867('0x47')];_0x410d30&&_0x410d30===_0x4d2ea0&&_0x3c471d?(this['_alignBeforeItem'](_0x33c078,_0x779ce),this[_0x7867('0x44')](_0x779ce,_0x33c078)):_0x410d30&&_0x410d30===_0x4d2ea0?this[_0x7867('0xa')](_0x33c078,_0x779ce):this['_alignAfterItem'](_0x779ce,_0x33c078);}[_0x7867('0x2d')](_0x36a80d,_0x5e8037){0x0===this[_0x7867('0x18')][_0x7867('0xb')]&&setTimeout(()=>{for(const {sidebarItemView:_0x2fea55,changedProp:_0x54986c}of this[_0x7867('0x18')])_0x7867('0x30')===_0x54986c?this[_0x7867('0x1')](_0x2fea55):this[_0x7867('0x43')](_0x2fea55);this[_0x7867('0x18')]=[];},0xa),this['_recalculateBuffer'][_0x7867('0x25')]({'sidebarItemView':_0x36a80d,'changedProp':_0x5e8037});}['getSidebarItemView'](_0x22e24a){return this[_0x7867('0x2f')]['get'](_0x22e24a);}['destroy'](){this[_0x7867('0x23')](),this[_0x7867('0x27')][_0x7867('0x40')]();}['_destroySidebarItemView'](_0x18c3d0){const _0xe1735d=this[_0x7867('0x35')](_0x18c3d0);this[_0x7867('0x23')](_0xe1735d),this['stopListening'](_0x18c3d0[_0x7867('0x27')]),_0xe1735d[_0x7867('0x40')](),this[_0x7867('0x2f')][_0x7867('0x8')](_0x18c3d0),this[_0x7867('0x2e')]['delete'](_0xe1735d);}[_0x7867('0x20')](){const _0x4ef023=new _0x3cd58d(this['context'][_0x7867('0x17')]);return _0x4ef023[_0x7867('0x3c')](),this['on'](_0x7867('0x37'),(_0x110f6d,_0x4c5628,_0x521e7e,_0x3d83fb)=>{_0x3d83fb&&_0x4ef023[_0x7867('0x33')](_0x7867('0x24')),_0x521e7e?_0x4ef023['bind'](_0x7867('0x24'))['to'](_0x521e7e,'bottom'):_0x4ef023[_0x7867('0x24')]=null;}),_0x4ef023;}[_0x7867('0x0')](){var _0x5c3bb8;this[_0x7867('0x2c')]=(null===(_0x5c3bb8=this[_0x7867('0x15')])||void 0x0===_0x5c3bb8?void 0x0:_0x5c3bb8['last'])?this['getSidebarItemView'](this['_annotations'][_0x7867('0x36')]):null;}['_getItemBefore'](_0x6d8fa8){var _0x115029;const _0x2578e8=this['_sidebarItemViewToAnnotation'][_0x7867('0x1e')](_0x6d8fa8),_0x12b87a=_0x2578e8&&(null===(_0x115029=this[_0x7867('0x15')])||void 0x0===_0x115029?void 0x0:_0x115029[_0x7867('0x1e')](this['_annotations']['getIndex'](_0x2578e8)-0x1));return _0x12b87a&&this[_0x7867('0x35')](_0x12b87a)||null;}[_0x7867('0x3f')](_0x1470f6){var _0x2f59b8;const _0x207d49=this[_0x7867('0x2e')]['get'](_0x1470f6),_0x403caa=_0x207d49&&(null===(_0x2f59b8=this[_0x7867('0x15')])||void 0x0===_0x2f59b8?void 0x0:_0x2f59b8[_0x7867('0x1e')](this[_0x7867('0x15')][_0x7867('0x6')](_0x207d49)+0x1));return _0x403caa&&this[_0x7867('0x35')](_0x403caa)||null;}[_0x7867('0xa')](_0x228839,_0x52cd25){_0x228839[_0x7867('0x9')]();const _0x18cf26=H(_0x52cd25[_0x7867('0x1f')]+this[_0x7867('0x42')],_0x228839[_0x7867('0x30')]);return!!_0x18cf26&&(this['_setItemTop'](_0x52cd25,_0x52cd25[_0x7867('0x30')]-_0x18cf26),!0x0);}[_0x7867('0x44')](_0x8bd746,_0x3a0647){_0x8bd746[_0x7867('0x9')]();const _0x42f994=H(_0x8bd746['bottom']+this['_spaceBetweenItems'],_0x3a0647[_0x7867('0x30')]);return!!_0x42f994&&(this[_0x7867('0x4')](_0x3a0647,_0x3a0647[_0x7867('0x30')]+_0x42f994,!0x1),!0x0);}[_0x7867('0x28')](_0x5f2e37){const _0x5aaaa9=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x5f2e37);if(!_0x5aaaa9||!_0x5aaaa9[_0x7867('0x32')]||!_0x5aaaa9[_0x7867('0x3e')])return;const _0x236a86=this[_0x7867('0x34')](_0x5aaaa9,_0x5aaaa9[_0x7867('0x3e')]);this[_0x7867('0x4')](_0x5f2e37,_0x236a86);}['_getTargetTop'](_0x333999,_0x55f354){if(null===_0x55f354)return 0x0;if(_0x333999[_0x7867('0x32')]instanceof _0x37bf08)return _0x55f354['top'];{const _0x266255=new _0x37bf08(this[_0x7867('0x27')][_0x7867('0xe')])[_0x7867('0x30')];return _0x55f354[_0x7867('0x30')]-_0x266255;}}[_0x7867('0x4')](_0x10838a,_0x23c671,_0x3e815e=this[_0x7867('0x31')][_0x7867('0x2')][_0x7867('0x1e')](_0x7867('0x10'))){_0x3e815e&&(_0x23c671=Math[_0x7867('0x3a')](_0x23c671,this[_0x7867('0x1b')](_0x10838a))),_0x10838a[_0x7867('0x30')]=_0x23c671;}['_getMaxAvailableTop'](_0x4aad9b){let _0x2030e1=this['_getItemBefore'](_0x4aad9b),_0x1a8f1c=0x0;for(;_0x2030e1;)_0x2030e1['updateHeight'](),_0x1a8f1c+=this[_0x7867('0x42')]+_0x2030e1[_0x7867('0x39')],_0x2030e1=this['_getItemBefore'](_0x2030e1);return _0x1a8f1c;}}function H(_0x501726,_0x22060e){return Math['max'](_0x501726-_0x22060e,0x0);}function y(_0x255145){return null!==_0x255145&&_0x7867('0x5')==typeof _0x255145&&0x1===_0x255145['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7b75=['number','annotationType','toString','_badge','span','ck-annotation-counter__badge--','children','set','extendTemplate','counterView','icon','ck-annotation-counter','bindTemplate','add','...','ck-annotation-counter__badge','bind'];(function(_0x303d2e,_0x7b7520){const _0x620ecc=function(_0x4852ee){while(--_0x4852ee){_0x303d2e['push'](_0x303d2e['shift']());}};_0x620ecc(++_0x7b7520);}(_0x7b75,0x12e));const _0x620e=function(_0x303d2e,_0x7b7520){_0x303d2e=_0x303d2e-0x0;let _0x620ecc=_0x7b75[_0x303d2e];return _0x620ecc;};import{ButtonView as _0x4e0192,View as _0x5b1344}from'ckeditor5/src/ui';import _0x5e0ed6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4e0192{constructor(_0x15f04d){super(_0x15f04d);const _0x542c29=this[_0x620e('0x10')];this[_0x620e('0xb')]('isDirty',!0x1),this[_0x620e('0xb')]('number',0x0),this[_0x620e('0x3')]('_badge')['to'](this,'isDirty',this,_0x620e('0x4'),(_0x35e397,_0x5e41e2)=>_0x35e397?_0x620e('0x1'):_0x5e41e2[_0x620e('0x6')]()),this[_0x620e('0xb')](_0x620e('0x5'),''),this[_0x620e('0xe')]=_0x5e0ed6,this[_0x620e('0xc')]({'attributes':{'class':[_0x620e('0xf')]}}),this['counterView']=new _0x5b1344(),this[_0x620e('0xd')]['setTemplate']({'tag':_0x620e('0x8'),'attributes':{'class':[_0x620e('0x2'),_0x542c29['to'](_0x620e('0x5'),_0x4685ac=>_0x620e('0x9')+_0x4685ac),_0x542c29['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x542c29['to'](_0x620e('0x7'))}]}),this[_0x620e('0xa')][_0x620e('0x0')](this[_0x620e('0xd')]);}}
23
+ const _0x304a=['annotationType','isDirty','counterView','ck-annotation-counter__badge','ck-annotation-counter__badge--','icon','number','span','ck-annotation-counter__badge--edit-mode','add','set','extendTemplate','_badge','...','ck-annotation-counter','toString'];(function(_0x31a2eb,_0x304a3b){const _0x33c778=function(_0x352a48){while(--_0x352a48){_0x31a2eb['push'](_0x31a2eb['shift']());}};_0x33c778(++_0x304a3b);}(_0x304a,0x134));const _0x33c7=function(_0x31a2eb,_0x304a3b){_0x31a2eb=_0x31a2eb-0x0;let _0x33c778=_0x304a[_0x31a2eb];return _0x33c778;};import{ButtonView as _0x5a5978,View as _0x3cc075}from'ckeditor5/src/ui';import _0x13c7e8 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5a5978{constructor(_0xf40360){super(_0xf40360);const _0xcba301=this['bindTemplate'];this[_0x33c7('0x6')](_0x33c7('0xd'),!0x1),this[_0x33c7('0x6')]('number',0x0),this['bind'](_0x33c7('0x8'))['to'](this,_0x33c7('0xd'),this,_0x33c7('0x2'),(_0x3ba213,_0x70004f)=>_0x3ba213?_0x33c7('0x9'):_0x70004f[_0x33c7('0xb')]()),this[_0x33c7('0x6')]('annotationType',''),this[_0x33c7('0x1')]=_0x13c7e8,this[_0x33c7('0x7')]({'attributes':{'class':[_0x33c7('0xa')]}}),this[_0x33c7('0xe')]=new _0x3cc075(),this[_0x33c7('0xe')]['setTemplate']({'tag':_0x33c7('0x3'),'attributes':{'class':[_0x33c7('0xf'),_0xcba301['to'](_0x33c7('0xc'),_0xd08b36=>_0x33c7('0x0')+_0xd08b36),_0xcba301['if']('isDirty',_0x33c7('0x4'))]},'children':[{'text':_0xcba301['to'](_0x33c7('0x8'))}]}),this['children'][_0x33c7('0x5')](this[_0x33c7('0xe')]);}}