@ckeditor/ckeditor5-comments 0.0.0-nightly-20231212.0 → 0.0.0-nightly-20231214.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 (43) 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.d.ts +1 -0
  21. package/src/comments/commentsrepository.js +1 -1
  22. package/src/comments/commentsui.js +1 -1
  23. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  24. package/src/comments/integrations/importword.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. 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-20231212.0",
3
+ "version": "0.0.0-nightly-20231214.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-20231212.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20231212.0",
46
+ "ckeditor5": "0.0.0-nightly-20231214.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20231214.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 _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'];}
23
+ const _0x4b93=['stopListening','add','function','render','object','isVisible','_assertCorrectTarget','refreshVisibility','remove','every','filter','annotation-invalid-target','clear','mainView','targetRect','view','isActive','focusTracker','updateTargetRect','set','_type','getClientRects','nodeType','destroy','_getNormalizedTarget','target','type','_id','item','focusableElements','isArray','length','innerView','_target'];(function(_0x5c3df2,_0x4b93e3){const _0x5e7f0e=function(_0x5a8a68){while(--_0x5a8a68){_0x5c3df2['push'](_0x5c3df2['shift']());}};_0x5e7f0e(++_0x4b93e3);}(_0x4b93,0x1e7));const _0x5e7f=function(_0x5c3df2,_0x4b93e3){_0x5c3df2=_0x5c3df2-0x0;let _0x5e7f0e=_0x4b93[_0x5c3df2];return _0x5e7f0e;};import{CKEditorError as _0x45ef57,Rect as _0x58f1d2,Collection as _0x534e51,ObservableMixin as _0x1ace8d}from'ckeditor5/src/utils';export default class d extends _0x1ace8d(){constructor({view:_0x43aa40,target:_0x3e0a57,type:_0x4f7e28,isVisible:_0x458e9e=!0x0}){super(),this['view']=_0x43aa40,this['view']['element']||this[_0x5e7f('0x4')][_0x5e7f('0x1a')](),this['_type']=_0x4f7e28,this[_0x5e7f('0x16')]=_0x3e0a57,d[_0x5e7f('0x1d')](this['_getNormalizedTarget']()),this[_0x5e7f('0x12')]=new _0x534e51([this[_0x5e7f('0x4')]['element']],{'idProperty':_0x5e7f('0x10')}),this[_0x5e7f('0x12')]['on'](_0x5e7f('0x18'),(_0xc2d255,_0x2bfd9a)=>{this['view'][_0x5e7f('0x6')][_0x5e7f('0x18')](_0x2bfd9a);}),this[_0x5e7f('0x12')]['on'](_0x5e7f('0x1f'),(_0x123b1f,_0x507a28)=>{this['view']['focusTracker'][_0x5e7f('0x1f')](_0x507a28);}),this[_0x5e7f('0x8')](_0x5e7f('0x1c'),_0x458e9e);}get[_0x5e7f('0xf')](){return _0x5e7f('0x19')==typeof this[_0x5e7f('0x9')]?this[_0x5e7f('0x9')]():this[_0x5e7f('0x9')];}get[_0x5e7f('0x15')](){return this['view'][_0x5e7f('0x2')];}get[_0x5e7f('0xe')](){const _0x1a1bf5=this['_getNormalizedTarget']();return d[_0x5e7f('0x1d')](_0x1a1bf5),_0x1a1bf5;}get[_0x5e7f('0x3')](){const _0x3f6df2=this[_0x5e7f('0xe')];if(null===_0x3f6df2)return null;if(_0x3f6df2 instanceof _0x58f1d2)return _0x3f6df2;const _0x1b9899=_0x3f6df2[_0x5e7f('0x21')](_0x3d3050=>function(_0x43b57e){const _0x31c167=_0x43b57e['offsetParent'];if(_0x31c167)return!0x0;const _0x2143c5=_0x43b57e['getClientRects']()[_0x5e7f('0x11')](0x0);return!!_0x2143c5;}(_0x3d3050));return 0x0===_0x1b9899[_0x5e7f('0x14')]?null:new _0x58f1d2(_0x1b9899[0x0][_0x5e7f('0xa')]()[_0x5e7f('0x11')](0x0));}get[_0x5e7f('0x5')](){return this[_0x5e7f('0x4')]['isActive'];}set['isActive'](_0x505539){this['view'][_0x5e7f('0x5')]=_0x505539,this[_0x5e7f('0x4')]['mainView']['isActive']=_0x505539;}[_0x5e7f('0x7')](){this['view']['targetRect']=this['targetRect'];}[_0x5e7f('0xc')](){this[_0x5e7f('0x12')]['stopListening'](),this[_0x5e7f('0x12')][_0x5e7f('0x1')](),this[_0x5e7f('0x17')]();}[_0x5e7f('0x1e')](){this[_0x5e7f('0x1c')]=!!this['targetRect'];}static[_0x5e7f('0x1d')](_0x541227){if(!(null===_0x541227||_0x541227 instanceof _0x58f1d2||Array[_0x5e7f('0x13')](_0x541227)&&_0x541227[_0x5e7f('0x20')](_0x156638=>y(_0x156638))))throw new _0x45ef57(_0x5e7f('0x0'),null,{'target':_0x541227});}[_0x5e7f('0xd')](){const _0x346f48=_0x5e7f('0x19')==typeof this[_0x5e7f('0x16')]?this[_0x5e7f('0x16')]():this[_0x5e7f('0x16')];return y(_0x346f48)?[_0x346f48]:_0x346f48;}}function y(_0x2b1612){return null!==_0x2b1612&&_0x5e7f('0x1b')==typeof _0x2b1612&&_0x5e7f('0xb')in _0x2b1612&&0x1===_0x2b1612[_0x5e7f('0xb')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}
23
+ const _0x2250=['add','getByView','listenTo','_focusTracker','left','get','stopListening','refreshPositioning','annotationcollection-duplicated-item','focus','isFocused','_viewToAnnotation','focusableElements','focusTracker','getByInnerView','delete','change:isFocused','_getOrderInContent','annotationcollection-not-existing-item','_innerViewToAnnotation','_sort','fire','has','set','targetRect','from','innerView','top','blur','destroy','view','clear','remove','updateTargetRect','getIndex'];(function(_0x390638,_0x225098){const _0x14c695=function(_0x5d7c57){while(--_0x5d7c57){_0x390638['push'](_0x390638['shift']());}};_0x14c695(++_0x225098);}(_0x2250,0x153));const _0x14c6=function(_0x390638,_0x225098){_0x390638=_0x390638-0x0;let _0x14c695=_0x2250[_0x390638];return _0x14c695;};import{CKEditorError as _0x41e0ae,Collection as _0x5dc1e3,FocusTracker as _0x39afd8}from'ckeditor5/src/utils';export default class x extends _0x5dc1e3{constructor(_0x84c1cf=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x14c6('0x16')]=new Map(),this['_focusTracker']=new _0x39afd8(),this['_focusTracker']['on'](_0x14c6('0x1b'),(_0x4898ee,_0x171269,_0x661a7f)=>{_0x661a7f||this[_0x14c6('0x20')](_0x14c6('0x4'));});for(const _0x50ac68 of _0x84c1cf)this[_0x14c6('0xb')](_0x50ac68);}get[_0x14c6('0x15')](){return this[_0x14c6('0xe')]['isFocused'];}['add'](_0x4d6c9b){if(this[_0x14c6('0x21')](_0x4d6c9b))throw new _0x41e0ae(_0x14c6('0x13'),null);this[_0x14c6('0x1e')][_0x14c6('0x22')](_0x4d6c9b[_0x14c6('0x2')],_0x4d6c9b),this[_0x14c6('0x16')][_0x14c6('0x22')](_0x4d6c9b[_0x14c6('0x6')],_0x4d6c9b);for(const _0x4a0123 of _0x4d6c9b[_0x14c6('0x17')])this[_0x14c6('0xe')][_0x14c6('0xb')](_0x4a0123);this[_0x14c6('0xd')](_0x4d6c9b['focusableElements'],_0x14c6('0xb'),(_0x11fb6b,_0x4abd07)=>{this[_0x14c6('0xe')][_0x14c6('0xb')](_0x4abd07);}),this[_0x14c6('0xd')](_0x4d6c9b[_0x14c6('0x17')],_0x14c6('0x8'),(_0x23e82d,_0x1abf45)=>{this['_focusTracker']['remove'](_0x1abf45);}),this[_0x14c6('0xd')](_0x4d6c9b[_0x14c6('0x6')]['focusTracker'],'change:isFocused',(_0x25e010,_0x22c39d,_0x3a8fde)=>{_0x3a8fde&&this[_0x14c6('0x20')](_0x14c6('0x14'),_0x4d6c9b);}),_0x4d6c9b[_0x14c6('0x9')]();const _0x128377=this['_getOrderInContent'](_0x4d6c9b[_0x14c6('0x6')]['targetRect']);return super[_0x14c6('0xb')](_0x4d6c9b,_0x128377);}[_0x14c6('0x8')](_0x12ec73){if(!this[_0x14c6('0x21')](_0x12ec73))throw new _0x41e0ae(_0x14c6('0x1d'),null);this[_0x14c6('0x11')](_0x12ec73['view'][_0x14c6('0x18')]),this[_0x14c6('0x11')](_0x12ec73[_0x14c6('0x17')]);for(const _0x32e095 of _0x12ec73[_0x14c6('0x17')])this[_0x14c6('0xe')][_0x14c6('0x8')](_0x32e095);return this['_viewToAnnotation'][_0x14c6('0x1a')](_0x12ec73[_0x14c6('0x6')]),this['_innerViewToAnnotation'][_0x14c6('0x1a')](_0x12ec73[_0x14c6('0x2')]),super[_0x14c6('0x8')](_0x12ec73);}[_0x14c6('0x19')](_0x30335f){return this['_innerViewToAnnotation'][_0x14c6('0x10')](_0x30335f);}[_0x14c6('0xc')](_0x6dabda){return this[_0x14c6('0x16')][_0x14c6('0x10')](_0x6dabda);}['destroy'](){super[_0x14c6('0x7')](),this[_0x14c6('0x11')](),this[_0x14c6('0x1e')][_0x14c6('0x7')](),this[_0x14c6('0x16')][_0x14c6('0x7')](),this[_0x14c6('0xe')][_0x14c6('0x5')]();}[_0x14c6('0x12')](){for(const _0xd86cfd of this)_0xd86cfd[_0x14c6('0x9')]();this[_0x14c6('0x1f')]();}[_0x14c6('0x1f')](){const _0x282bdd=Array[_0x14c6('0x1')](this)['sort']((_0x41f766,_0x2a77af)=>v(_0x41f766[_0x14c6('0x6')][_0x14c6('0x0')],_0x2a77af[_0x14c6('0x6')][_0x14c6('0x0')]));for(let _0x4ae855=_0x282bdd['length']-0x1;_0x4ae855>0x0;_0x4ae855--){const _0xc07657=_0x282bdd[_0x4ae855];_0x4ae855!==this[_0x14c6('0xa')](_0xc07657)&&(this[_0x14c6('0x8')](_0xc07657),this[_0x14c6('0xb')](_0xc07657));}}[_0x14c6('0x1c')](_0x200d65){let _0x4638a5=0x0;if(!_0x200d65)return this['length'];for(const _0x4b01c1 of this){const _0xc84a14=_0x4b01c1[_0x14c6('0x6')][_0x14c6('0x0')];if(_0xc84a14){if(v(_0x200d65,_0xc84a14)<0x0)return _0x4638a5;_0x4638a5++;}}return _0x4638a5;}}export function bindAnnotationCollections({source:_0xb98493,target:_0x105b5d,filter:_0x40d8cd}){for(const _0x44f024 of _0xb98493)_0x40d8cd(_0x44f024)&&_0x105b5d[_0x14c6('0xb')](_0x44f024);_0x105b5d[_0x14c6('0xd')](_0xb98493,_0x14c6('0xb'),(_0x4a8aef,_0x9c92bf)=>{_0x40d8cd(_0x9c92bf)&&_0x105b5d[_0x14c6('0xb')](_0x9c92bf);}),_0x105b5d['listenTo'](_0xb98493,'remove',(_0x3b043f,_0x21c861)=>{_0x105b5d[_0x14c6('0x21')](_0x21c861)&&_0x105b5d['remove'](_0x21c861);});}function v(_0x5cd3d9,_0x3f7a94){if(null===_0x5cd3d9&&null===_0x3f7a94)return 0x0;if(null===_0x5cd3d9)return-0x1;if(null===_0x3f7a94)return 0x1;const _0x5d2bc5=_0x5cd3d9[_0x14c6('0x3')]-_0x3f7a94[_0x14c6('0x3')];return 0x0==_0x5d2bc5?_0x5cd3d9['left']-_0x3f7a94[_0x14c6('0xf')]:_0x5d2bc5;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);});}}
23
+ const _0x4e54=['collection','createAnnotation','change:isVisible','getByInnerView','createAnnotationView','stopListening','view','has','activeAnnotations','focusTracker','element','_activateAnnotation','_removeActiveAnnotation','activate','add','refreshPositioning','listenTo','isVisible','remove','refreshVisibility','_bindAnnotationsToVisibleAnnotations','_deactivateAllAnnotations','_visibleAnnotations','Annotations','deactivateAll','set','source','fire','destroy'];(function(_0x5a0a05,_0x4e5489){const _0x3e4819=function(_0x3767fd){while(--_0x3767fd){_0x5a0a05['push'](_0x5a0a05['shift']());}};_0x3e4819(++_0x4e5489);}(_0x4e54,0x1de));const _0x3e48=function(_0x5a0a05,_0x4e5489){_0x5a0a05=_0x5a0a05-0x0;let _0x3e4819=_0x4e54[_0x5a0a05];return _0x3e4819;};import{ContextPlugin as _0xe2aa41}from'ckeditor5/src/core';import _0x3fbc20 from'./annotation';import _0x207fd7 from'./annotationcollection';import _0x23549e from'./view/annotationview';export default class b extends _0xe2aa41{static get['pluginName'](){return _0x3e48('0x9');}constructor(_0x1b401c){super(_0x1b401c),this[_0x3e48('0xf')]=new _0x207fd7(),this[_0x3e48('0x8')]=new _0x207fd7(),this[_0x3e48('0xb')](_0x3e48('0x17'),new Set()),this[_0x3e48('0x6')]();}[_0x3e48('0x0')](_0x37437c){this['collection'][_0x3e48('0x0')](_0x37437c);}[_0x3e48('0x4')](_0x548564){this[_0x3e48('0xf')][_0x3e48('0x4')](_0x548564),_0x548564[_0x3e48('0xe')]();}[_0x3e48('0x5')](){for(const _0x53143e of this[_0x3e48('0xf')])_0x53143e[_0x3e48('0x5')]();}[_0x3e48('0x1')](){this['_visibleAnnotations'][_0x3e48('0x1')]();}[_0x3e48('0x12')](_0x395c03){return this['collection'][_0x3e48('0x12')](_0x395c03);}[_0x3e48('0xa')](){this[_0x3e48('0xd')](_0x3e48('0x7'));}[_0x3e48('0xe')](){for(const _0x5f2e04 of this[_0x3e48('0xf')])_0x5f2e04[_0x3e48('0xe')]();this['_visibleAnnotations']['destroy'](),this[_0x3e48('0xf')][_0x3e48('0xe')](),super[_0x3e48('0xe')]();}[_0x3e48('0x1c')](_0x5f2db4){this[_0x3e48('0xd')](_0x3e48('0x1a'),_0x5f2db4);}[_0x3e48('0x10')](_0x3d33bc){return new _0x3fbc20(_0x3d33bc);}[_0x3e48('0x13')](_0x28c464,_0x1f28df){return new _0x23549e(_0x28c464,_0x1f28df);}['_addActiveAnnotation'](_0x42e575){const _0x575db5=new Set(this[_0x3e48('0x17')]);_0x575db5['add'](_0x42e575),this[_0x3e48('0x17')]=_0x575db5;}[_0x3e48('0x1b')](_0x1d7fde){const _0x5bcc18=new Set(this[_0x3e48('0x17')]);_0x5bcc18['delete'](_0x1d7fde),this[_0x3e48('0x17')]=_0x5bcc18;}[_0x3e48('0x6')](){const _0x51995a=this[_0x3e48('0xf')],_0x340bfa=this['_visibleAnnotations'];function _0x540f9e(_0x503e11){const _0x3102a5=_0x503e11[_0x3e48('0xc')];_0x3102a5[_0x3e48('0x3')]&&!_0x340bfa[_0x3e48('0x16')](_0x3102a5)?_0x340bfa[_0x3e48('0x0')](_0x3102a5):!_0x3102a5[_0x3e48('0x3')]&&_0x340bfa['has'](_0x3102a5)&&_0x340bfa[_0x3e48('0x4')](_0x3102a5),_0x3102a5[_0x3e48('0x15')][_0x3e48('0x18')][_0x3e48('0x4')](_0x3102a5[_0x3e48('0x15')][_0x3e48('0x19')]),_0x3102a5[_0x3e48('0x15')][_0x3e48('0x18')]['add'](_0x3102a5[_0x3e48('0x15')][_0x3e48('0x19')]);}this[_0x3e48('0x2')](_0x51995a,_0x3e48('0x0'),(_0x289845,_0x1648c9)=>{_0x1648c9[_0x3e48('0x3')]&&_0x340bfa[_0x3e48('0x0')](_0x1648c9),this[_0x3e48('0x2')](_0x1648c9,_0x3e48('0x11'),_0x540f9e);}),this[_0x3e48('0x2')](_0x51995a,_0x3e48('0x4'),(_0x5f5499,_0x11516f)=>{_0x340bfa['has'](_0x11516f)&&_0x340bfa[_0x3e48('0x4')](_0x11516f),this[_0x3e48('0x14')](_0x11516f,'change:isVisible',_0x540f9e);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]});}}
23
+ const _0x15d6=['_uisData','type','_activateAnnotation','plugins','_assertAnnotationDoesNotBelongToMultipleUIs','filter','activeAnnotations','destroy','hasActive','_deactivateAllAnnotations','deactivateAll','AnnotationsUIs','detach','listenTo','activeUIs','context','annotationsuis-annotation-mismatch','register','set','stopListening','_setSelectedAnnotations','add','from','remove','isActive','delete','activate','_removeActiveAnnotation','length','collection','find','annotationsuis-missing-ui','deactivate','_visibleAnnotations','_uis','change:activeAnnotation','get','function','size','setActiveAnnotation','switchTo','has'];(function(_0x545e85,_0x15d627){const _0x517628=function(_0x31086c){while(--_0x31086c){_0x545e85['push'](_0x545e85['shift']());}};_0x517628(++_0x15d627);}(_0x15d6,0x7a));const _0x5176=function(_0x545e85,_0x15d627){_0x545e85=_0x545e85-0x0;let _0x517628=_0x15d6[_0x545e85];return _0x517628;};import{ContextPlugin as _0x2f5343}from'ckeditor5/src/core';import{CKEditorError as _0x477b42}from'ckeditor5/src/utils';import _0x481e59,{bindAnnotationCollections as _0x598e50}from'./annotationcollection';import _0xbe9ff7 from'./annotations';export default class M extends _0x2f5343{static get['requires'](){return[_0xbe9ff7];}static get['pluginName'](){return _0x5176('0xf');}constructor(_0x1a4136){super(_0x1a4136),this[_0x5176('0x12')]=new Set(),this[_0x5176('0x26')]=new Map(),this[_0x5176('0x4')]=new Map();}['init'](){const _0x2af772=this[_0x5176('0x13')][_0x5176('0x7')]['get'](_0xbe9ff7);this[_0x5176('0x11')](_0x2af772,_0x5176('0x6'),(_0x5e8538,_0x58146f)=>{for(const _0xfdc964 of this[_0x5176('0x12')]){const _0x162c32=this[_0x5176('0x26')][_0x5176('0x28')](_0xfdc964);(0x0,this[_0x5176('0x4')][_0x5176('0x28')](_0xfdc964)['filter'])(_0x58146f)&&_0x162c32['setActiveAnnotation'](_0x58146f);}}),this[_0x5176('0x11')](_0x2af772,_0x5176('0xd'),()=>{for(const _0x1c9dcf of this['activeUIs']){this[_0x5176('0x26')][_0x5176('0x28')](_0x1c9dcf)[_0x5176('0x1')](null);}}),this[_0x5176('0x11')](_0x2af772[_0x5176('0x25')],_0x5176('0x19'),(_0x38230d,_0x2ec488)=>{this[_0x5176('0x8')](_0x2ec488);});}[_0x5176('0xc')](){return this['activeUIs'][_0x5176('0x0')]>0x0;}[_0x5176('0x1c')](_0x56d56d){return this[_0x5176('0x12')]['has'](_0x56d56d);}[_0x5176('0x1e')](_0x54e1a1,_0x10cd3f=()=>!0x0){const _0x30c5b1=this[_0x5176('0x13')]['plugins'][_0x5176('0x28')](_0xbe9ff7);if(!this['_uis']['has'](_0x54e1a1))throw new _0x477b42(_0x5176('0x23'),this,{'uiName':_0x54e1a1});this[_0x5176('0x1c')](_0x54e1a1)&&this[_0x5176('0x24')](_0x54e1a1),this[_0x5176('0x12')][_0x5176('0x19')](_0x54e1a1);const _0x492866=new _0x481e59(),_0x502fed=_0x30c5b1[_0x5176('0x25')];_0x598e50({'source':_0x502fed,'target':_0x492866,'filter':_0x10cd3f}),this[_0x5176('0x4')][_0x5176('0x16')](_0x54e1a1,{'collection':_0x492866,'filter':_0x10cd3f});const _0x13c158=this['_uis']['get'](_0x54e1a1);_0x13c158['attach'](_0x492866),this[_0x5176('0x11')](_0x13c158,_0x5176('0x27'),(_0x22b252,_0x24760c,_0x4212da,_0x2ba448)=>{_0x2ba448&&_0x30c5b1[_0x5176('0x1f')](_0x2ba448),_0x4212da&&_0x30c5b1['_addActiveAnnotation'](_0x4212da);});}[_0x5176('0x24')](_0x47f347){if(this[_0x5176('0x12')]['delete'](_0x47f347),!this[_0x5176('0x26')][_0x5176('0x3')](_0x47f347))throw new _0x477b42(_0x5176('0x23'),this,{'uiName':_0x47f347});const _0x3ec217=this[_0x5176('0x26')][_0x5176('0x28')](_0x47f347);_0x3ec217[_0x5176('0x10')](),this[_0x5176('0x17')](_0x3ec217),this['_uisData']['get'](_0x47f347)['collection'][_0x5176('0xb')](),this[_0x5176('0x4')][_0x5176('0x1d')](_0x47f347);}[_0x5176('0x2')](_0x5c2bb3){if(!this[_0x5176('0x26')][_0x5176('0x3')](_0x5c2bb3))throw new _0x477b42(_0x5176('0x23'),this,{'uiName':_0x5c2bb3});const _0x31a10a=this[_0x5176('0x13')]['plugins'][_0x5176('0x28')](_0xbe9ff7),_0x4d93cc=Array[_0x5176('0x1a')](_0x31a10a[_0x5176('0xa')])[0x0]||null;this[_0x5176('0xe')](),this[_0x5176('0x1e')](_0x5c2bb3);const _0x16deea=this['_uis'][_0x5176('0x28')](_0x5c2bb3);_0x16deea['setActiveAnnotation'](_0x4d93cc),_0x16deea['_setSelectedAnnotations']&&_0x4d93cc&&_0x16deea[_0x5176('0x18')]([_0x4d93cc]);}[_0x5176('0xe')](){for(const _0x49c1e5 of this[_0x5176('0x12')])this[_0x5176('0x24')](_0x49c1e5);}[_0x5176('0x15')](_0x5af75b,_0x191d5e){if(this['_uis']['has'](_0x5af75b))throw new _0x477b42('annotationsuis-register-already-registered');if(_0x5176('0x29')!=typeof _0x191d5e['attach']||_0x5176('0x29')!=typeof _0x191d5e[_0x5176('0x10')]||_0x5176('0x29')!=typeof _0x191d5e['setActiveAnnotation'])throw new _0x477b42('annotationsuis-register-invalid-interface',null);this['_uis'][_0x5176('0x16')](_0x5af75b,_0x191d5e);}['refilterAnnotations'](){const _0x1f8f8b=this[_0x5176('0x13')][_0x5176('0x7')][_0x5176('0x28')](_0xbe9ff7)[_0x5176('0x21')],_0x148a13=new Map(),_0xde3048=Array[_0x5176('0x1a')](this[_0x5176('0x12')]);for(const _0x57921f of this['activeUIs']){const _0x1ff896=this['_uisData'][_0x5176('0x28')](_0x57921f)[_0x5176('0x21')];for(const _0x46f98f of _0x1ff896)_0x148a13[_0x5176('0x16')](_0x46f98f,_0x57921f);}for(const _0x4dcfe9 of _0x1f8f8b){const _0x1ccd2f=_0x148a13['get'](_0x4dcfe9);this[_0x5176('0x8')](_0x4dcfe9);const _0x164adb=_0xde3048[_0x5176('0x22')](_0xf599b=>this[_0x5176('0x4')][_0x5176('0x28')](_0xf599b)[_0x5176('0x9')](_0x4dcfe9));_0x1ccd2f!==_0x164adb&&(_0x1ccd2f&&this[_0x5176('0x4')][_0x5176('0x28')](_0x1ccd2f)[_0x5176('0x21')][_0x5176('0x1b')](_0x4dcfe9),_0x164adb&&this[_0x5176('0x4')][_0x5176('0x28')](_0x164adb)['collection'][_0x5176('0x19')](_0x4dcfe9));}}[_0x5176('0xb')](){this[_0x5176('0xe')](),super[_0x5176('0xb')]();}[_0x5176('0x8')](_0x29e8b7){const _0x54216b=[];for(const _0x3e2849 of this[_0x5176('0x12')]){(0x0,this[_0x5176('0x4')][_0x5176('0x28')](_0x3e2849)[_0x5176('0x9')])(_0x29e8b7)&&_0x54216b['push'](_0x3e2849);}if(_0x54216b[_0x5176('0x20')]>0x1)throw new _0x477b42(_0x5176('0x14'),null,{'matchedUIs':_0x54216b,'annotationType':_0x29e8b7[_0x5176('0x5')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x1cbc=['requires','remove','from','focusTracker','EditorAnnotations','editor','_editorAnnotations','set','add','getByInnerView','registerAnnotation','isReadOnly','getRanges','has','sort','change:range','containsRange','isCollapsed','model','editing','delete','element','change:isFocused','isEqual','annotation','fire','listenTo','uiUpdate','function','get','hasDomSelection','push','_dataCollectors','range','update','document','collection','init','view','refresh','refreshSelectedViews','_editorAnnotationsData','selection','pluginName'];(function(_0x1e83b5,_0x1cbcff){const _0x4c75e6=function(_0x43a05c){while(--_0x43a05c){_0x1e83b5['push'](_0x1e83b5['shift']());}};_0x4c75e6(++_0x1cbcff);}(_0x1cbc,0xe4));const _0x4c75=function(_0x1e83b5,_0x1cbcff){_0x1e83b5=_0x1e83b5-0x0;let _0x4c75e6=_0x1cbc[_0x1e83b5];return _0x4c75e6;};import{Plugin as _0x171a16}from'ckeditor5/src/core';import{CKEditorError as _0x28af6d}from'ckeditor5/src/utils';import{debounce as _0x1b5f85}from'lodash-es';import _0x462429 from'./annotations';export default class k extends _0x171a16{static get[_0x4c75('0x24')](){return[_0x462429];}static get[_0x4c75('0x23')](){return _0x4c75('0x28');}constructor(_0x4fad87){super(_0x4fad87),this[_0x4c75('0x18')]=new Set(),this[_0x4c75('0x2a')]=new Set();}[_0x4c75('0x1d')](){const _0x200fa1=this[_0x4c75('0x29')],_0x4c06e6=_0x200fa1[_0x4c75('0xa')][_0x4c75('0x1b')][_0x4c75('0x22')],_0x500729=_0x1b5f85(()=>this[_0x4c75('0x20')](),0xa);_0x4c06e6['on'](_0x4c75('0x7'),(_0x1e2265,_0x464783)=>{_0x464783['directChange']&&(_0x500729['cancel'](),this['refreshSelectedViews']());}),this[_0x4c75('0x12')](_0x200fa1['editing']['view'][_0x4c75('0x1b')],_0x4c75('0xe'),(_0x2563d7,_0x4a6287,_0x31942e)=>{_0x31942e&&_0x500729();}),this[_0x4c75('0x12')](_0x200fa1['ui']['focusTracker'],_0x4c75('0xe'),(_0x305759,_0x5d6738,_0x1165f5)=>{_0x1165f5||_0x200fa1[_0x4c75('0x3')]||this[_0x4c75('0x11')]('blur',{'isAnnotationTracked':_0x27b4ca=>this['_editorAnnotationsData']['has'](_0x27b4ca['innerView'])});}),this[_0x4c75('0x12')](this[_0x4c75('0x29')]['ui'],_0x4c75('0x1a'),()=>this[_0x4c75('0x11')](_0x4c75('0x13')));}[_0x4c75('0x2')](_0x3da6e2){if(this[_0x4c75('0x2a')][_0x4c75('0x5')](_0x3da6e2[_0x4c75('0x1e')]))return;this[_0x4c75('0x2a')]['add'](_0x3da6e2[_0x4c75('0x1e')]),this[_0x4c75('0x29')]['ui']['focusTracker'][_0x4c75('0x0')](_0x3da6e2[_0x4c75('0x1e')][_0x4c75('0xd')]);const _0x3fcd7b=this['editor']['plugins'][_0x4c75('0x15')](_0x462429);this[_0x4c75('0x12')](_0x3fcd7b[_0x4c75('0x1c')],_0x4c75('0x25'),(_0x1bde13,_0x4a4d29)=>{this[_0x4c75('0x29')]['ui'][_0x4c75('0x27')][_0x4c75('0x25')](_0x4a4d29[_0x4c75('0x1e')]['element']),this[_0x4c75('0x2a')][_0x4c75('0xc')](_0x4a4d29[_0x4c75('0x1e')]);});}[_0x4c75('0x16')](){return this[_0x4c75('0x29')][_0x4c75('0xb')]['view']['hasDomSelection'];}['addSourceCollector'](_0x51d0d2){if(_0x4c75('0x14')!=typeof _0x51d0d2)throw new _0x28af6d('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x4c75('0x0')](_0x51d0d2);}[_0x4c75('0x20')](){this[_0x4c75('0x11')](_0x4c75('0x1f'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0xb3a16a,annotations:_0x29ed07}){const _0x175691=[],_0xffb8ae=this[_0x4c75('0x29')]['model'][_0x4c75('0x1b')][_0x4c75('0x22')],_0x310315=Array[_0x4c75('0x26')](_0xffb8ae[_0x4c75('0x4')]());for(const [_0x39ddc8,_0x2be03f]of this['_editorAnnotationsData']){const _0x1d2163=_0x5a838b(_0x2be03f),_0x79d136=_0x29ed07[_0x4c75('0x1')](_0x39ddc8);_0x1d2163&&_0x79d136&&_0x175691[_0x4c75('0x17')]({'annotation':_0x79d136,'range':_0x1d2163});}function _0x5a838b(_0x425092){for(const _0x112358 of _0x425092)for(const _0x4bf1d2 of _0x310315)if(_0x112358[_0x4c75('0x8')](_0x4bf1d2,!_0xffb8ae[_0x4c75('0x9')]))return _0x112358;return null;}return _0x175691[_0x4c75('0x6')]((_0x4fb76b,_0x4c0ceb)=>{const _0x1b6830=_0x4fb76b[_0x4c75('0x19')],_0x2943d1=_0x4c0ceb[_0x4c75('0x19')];if(!_0x1b6830[_0x4c75('0xf')](_0x2943d1)){if(_0x1b6830[_0x4c75('0x8')](_0x2943d1,!0x0))return 0x1;if(_0x2943d1[_0x4c75('0x8')](_0x1b6830,!0x0))return-0x1;}return _0x4fb76b[_0x4c75('0x10')]==_0xb3a16a?-0x1:_0x4c0ceb[_0x4c75('0x10')]==_0xb3a16a?0x1:0x0;})['map'](_0x155955=>_0x155955[_0x4c75('0x10')]);}get[_0x4c75('0x21')](){const _0x464f66=new Map();for(const _0x38937e of Array[_0x4c75('0x26')](this[_0x4c75('0x18')]))for(const [_0x2f6bf2,_0x257921]of _0x38937e())_0x464f66[_0x4c75('0x2b')](_0x2f6bf2,_0x257921);return _0x464f66;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}
23
+ const _0x4955=['right','targetRect','change:visibleView','editor','document','delete','editableElement','visibleView','hasView','isAttached','detach','fromRect','context','map','_setSelectedAnnotations','set','_manuallyClosed','editing','inline','_forceRefresh','focusTracker','_addedAnnotations','hasActive','register','get','update','selection','collapse','getByView','plugins','refresh','isActive','_selectedAnnotations','has','remove','target','annotations','view','_closeAnnotation','push','top','length','Esc','pluginName','_removeAnnotationFromBalloon','bottom','listenTo','keystrokes','change:height','from','setActiveAnnotation','left','inlineannotations-not-allowed-with-context','updatePosition','activeAnnotation','InlineAnnotations','getFirstRange','switchTo','viewRangeToDom','stopListening','_addAnnotationToBalloon','getBoundingClientRect','_balloon','requires','add','_getBalloonTargetForAnnotation','isFocused','includes','width','inlineannotations-attach-already-attached','init','mousedown'];(function(_0x2422d9,_0x495534){const _0x4625e6=function(_0x8d0453){while(--_0x8d0453){_0x2422d9['push'](_0x2422d9['shift']());}};_0x4625e6(++_0x495534);}(_0x4955,0xfb));const _0x4625=function(_0x2422d9,_0x495534){_0x2422d9=_0x2422d9-0x0;let _0x4625e6=_0x4955[_0x2422d9];return _0x4625e6;};import{Plugin as _0x542af2}from'ckeditor5/src/core';import _0x35b5bf from'./annotationsuis';import _0x3ddef from'./editorannotations';import{ContextualBalloon as _0x4fa1d5}from'ckeditor5/src/ui';import{MouseObserver as _0x55ba9b}from'ckeditor5/src/engine';import{CKEditorError as _0x9e7f2b,Rect as _0x578e28}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x542af2{static get[_0x4625('0x1c')](){return[_0x3ddef,_0x4fa1d5,_0x35b5bf];}static get[_0x4625('0x8')](){return _0x4625('0x14');}constructor(_0x24de72){super(_0x24de72),_0x24de72['editing']['view']['addObserver'](_0x55ba9b),this[_0x4625('0x2e')]=!0x1,this[_0x4625('0x34')]('activeAnnotation',null),this['annotations']=null,this[_0x4625('0x35')]=new Set(),this[_0x4625('0x1b')]=_0x24de72[_0x4625('0x42')][_0x4625('0x3d')](_0x4fa1d5),this[_0x4625('0x3a')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}[_0x4625('0x23')](){const _0x171ee2=this[_0x4625('0x28')][_0x4625('0x42')][_0x4625('0x3d')](_0x35b5bf);_0x171ee2[_0x4625('0x31')]===this[_0x4625('0x28')]&&(_0x171ee2[_0x4625('0x3c')]('inline',this),this[_0x4625('0x28')][_0x4625('0xc')][_0x4625('0x34')](_0x4625('0x7'),(_0x4e23a2,_0x5bee3b)=>{const _0x2a10cb=this['_balloon'];if(this['isAttached']&&_0x2a10cb[_0x4625('0x2c')]){const _0x44c473=this['annotations'][_0x4625('0x41')](_0x2a10cb['visibleView']);_0x44c473&&this[_0x4625('0x3')](_0x44c473),_0x5bee3b();}}));}['afterInit'](){const _0x202907=this[_0x4625('0x28')][_0x4625('0x42')][_0x4625('0x3d')](_0x35b5bf);_0x202907[_0x4625('0x31')]===this[_0x4625('0x28')]&&(_0x202907[_0x4625('0x3b')]()||_0x202907[_0x4625('0x16')](_0x4625('0x37')));}['setActiveAnnotation'](_0x5c1cdc){_0x5c1cdc!==this[_0x4625('0x13')]&&(this[_0x4625('0x13')]&&(this[_0x4625('0x13')][_0x4625('0x44')]=!0x1),_0x5c1cdc&&this[_0x4625('0x28')]['ui'][_0x4625('0x39')]['isFocused']&&(this[_0x4625('0x1')][_0x4625('0x46')](_0x5c1cdc)&&this[_0x4625('0x19')](_0x5c1cdc,!0x0),_0x5c1cdc[_0x4625('0x44')]=!0x0),_0x5c1cdc||this[_0x4625('0x33')]([]),this[_0x4625('0x13')]=_0x5c1cdc);}['attach'](_0x40e956){this[_0x4625('0x1')]=_0x40e956;const _0x37db16=this['editor'][_0x4625('0x42')][_0x4625('0x3d')](_0x35b5bf),_0x182d73=this['_balloon'];if(this[_0x4625('0x2e')])throw new _0x9e7f2b(_0x4625('0x22'),this);if(_0x37db16['context']!==this['editor'])throw new _0x9e7f2b(_0x4625('0x11'),this);const _0x1c8c83=this[_0x4625('0x28')][_0x4625('0x42')][_0x4625('0x3d')](_0x3ddef);this[_0x4625('0xb')](_0x1c8c83,_0x4625('0x43'),()=>{const _0xa504a2=_0x1c8c83['getOrderedSelectedAnnotations']({'annotations':this[_0x4625('0x1')],'activeAnnotation':this[_0x4625('0x13')]});var _0x407a3e,_0x1cf419;!this[_0x4625('0x38')]&&(_0x407a3e=_0xa504a2,_0x1cf419=this[_0x4625('0x45')],_0x407a3e['length']===_0x1cf419[_0x4625('0x6')]&&_0x407a3e['every'](_0x440855=>_0x1cf419[_0x4625('0x20')](_0x440855)))||(this[_0x4625('0x38')]=!0x1,this[_0x4625('0x33')](_0xa504a2),this[_0x4625('0xf')](_0xa504a2[0x0]||null));}),this[_0x4625('0xb')](_0x1c8c83,'blur',(_0x460773,{isAnnotationTracked:_0x440914})=>{this['activeAnnotation']&&_0x440914(this[_0x4625('0x13')])&&(this[_0x4625('0x33')]([]),this[_0x4625('0xf')](null));}),this['listenTo'](this[_0x4625('0x28')]['ui'][_0x4625('0x39')],'change:isFocused',(_0x53576d,_0x492338,_0x31fafb)=>{_0x31fafb||this[_0x4625('0xf')](null);}),this[_0x4625('0xb')](_0x40e956,'remove',(_0xada1fb,_0x1db98c)=>{this['_removeAnnotationFromBalloon'](_0x1db98c),_0x1db98c===this[_0x4625('0x13')]&&this[_0x4625('0xf')](null);}),this[_0x4625('0xb')](_0x182d73,_0x4625('0x27'),(_0x294153,_0x5be730,_0xcba2b9,_0x3bb9af)=>{_0x3bb9af&&this[_0x4625('0x18')](_0x3bb9af);const _0x473f1e=_0x40e956[_0x4625('0x41')](_0xcba2b9);_0xcba2b9&&_0x473f1e&&(this[_0x4625('0xb')](_0xcba2b9,_0x4625('0xd'),()=>{_0x182d73[_0x4625('0x12')]();}),this[_0x4625('0xb')](_0xcba2b9,_0x4625('0x7'),()=>{this[_0x4625('0x3')](_0x473f1e),this[_0x4625('0x28')]['editing'][_0x4625('0x2')]['focus']();}),this['activeAnnotation']!==_0x473f1e&&this[_0x4625('0xf')](_0x473f1e));}),this['listenTo'](this[_0x4625('0x28')]['ui'],_0x4625('0x3e'),()=>{_0x182d73[_0x4625('0x2c')]&&(_0x40e956[_0x4625('0x41')](_0x182d73[_0x4625('0x2c')])&&_0x182d73['updatePosition']());}),this[_0x4625('0xb')](this[_0x4625('0x28')][_0x4625('0x36')][_0x4625('0x2')][_0x4625('0x29')],_0x4625('0x24'),()=>{this['_forceRefresh']=!0x0,this[_0x4625('0x35')]['clear']();}),this['editor'][_0x4625('0x36')][_0x4625('0x2')]['document'][_0x4625('0x3f')][_0x4625('0x2b')]&&this['editor'][_0x4625('0x36')][_0x4625('0x2')]['focus'](),this[_0x4625('0x2e')]=!0x0;}[_0x4625('0x2f')](){if(!this[_0x4625('0x2e')])throw new _0x9e7f2b('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x55caae of this[_0x4625('0x3a')])this[_0x4625('0x9')](_0x55caae);this[_0x4625('0x18')](),this[_0x4625('0x2e')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x4625('0x2e')]&&this['detach']();}[_0x4625('0x33')](_0xf4ec12){for(const _0x30795e of this[_0x4625('0x45')])_0xf4ec12['includes'](_0x30795e)||this[_0x4625('0x35')][_0x4625('0x2a')](_0x30795e);for(const _0x1183c2 of this[_0x4625('0x1')])_0xf4ec12['includes'](_0x1183c2)||this[_0x4625('0x9')](_0x1183c2);if(this['editor']['ui'][_0x4625('0x39')][_0x4625('0x1f')])for(const _0x438296 of _0xf4ec12)this[_0x4625('0x19')](_0x438296);this[_0x4625('0x45')]=_0xf4ec12;}[_0x4625('0x19')](_0x3eebb3,_0x83e3cf=!0x1){this[_0x4625('0x35')][_0x4625('0x46')](_0x3eebb3)||(this[_0x4625('0x3a')][_0x4625('0x46')](_0x3eebb3)||this[_0x4625('0x1b')][_0x4625('0x2d')](_0x3eebb3['view'])||(this[_0x4625('0x3a')]['add'](_0x3eebb3),this[_0x4625('0x1b')]['add']({'stackId':_0x3eebb3['view']['id'],'view':_0x3eebb3[_0x4625('0x2')],'position':{'target':()=>this[_0x4625('0x1e')](_0x3eebb3)}})),_0x83e3cf&&this['_balloon']['showStack'](_0x3eebb3['view']['id']));}['_getBalloonTargetForAnnotation'](_0x335886){const _0x3e8c22=_0x335886[_0x4625('0x0')],_0x29634e=this[_0x4625('0x28')][_0x4625('0x36')]['view'],_0x172c63=_0x29634e['document'][_0x4625('0x3f')][_0x4625('0x15')](),_0x37d6c0=_0x29634e['domConverter'][_0x4625('0x17')](_0x172c63);if(_0x37d6c0[_0x4625('0x40')](!0x0),_0x3e8c22){if(_0x3e8c22 instanceof _0x578e28)return _0x3e8c22;let _0x3d80da=[];for(const _0x1b46a2 of _0x3e8c22)_0x3d80da[_0x4625('0x4')](...(_0xd890a2=_0x1b46a2['getClientRects'](),Array[_0x4625('0xe')](_0xd890a2)[_0x4625('0x32')](DOMRect[_0x4625('0x30')])));_0x3d80da=function(_0x322a17){const _0xf3adc=[];let _0x18a87=_0x322a17[0x0];for(let _0x851065=0x1;_0x851065<_0x322a17[_0x4625('0x6')];_0x851065++)F(_0x18a87,_0x322a17[_0x851065])?_0x18a87['width']+=_0x322a17[_0x851065][_0x4625('0x21')]:(_0xf3adc[_0x4625('0x4')](_0x18a87),_0x18a87=_0x322a17[_0x851065]);return _0xf3adc[_0x4625('0x4')](_0x18a87),_0xf3adc;}(_0x3d80da);const _0x27a5a0=_0x37d6c0[_0x4625('0x1a')]();return _0x3d80da['find'](_0x284c60=>_0x284c60[_0x4625('0x5')]<=_0x27a5a0[_0x4625('0x5')]&&_0x284c60[_0x4625('0xa')]>=_0x27a5a0['bottom']&&_0x284c60[_0x4625('0x10')]<=_0x27a5a0[_0x4625('0x10')]&&_0x284c60[_0x4625('0x25')]>=_0x27a5a0[_0x4625('0x25')])||_0x3d80da[0x0];}var _0xd890a2;return _0x335886[_0x4625('0x26')]||_0x37d6c0;}[_0x4625('0x9')](_0x10a9b2){this[_0x4625('0x3a')][_0x4625('0x46')](_0x10a9b2)&&this['_balloon']['hasView'](_0x10a9b2[_0x4625('0x2')])&&(this['_addedAnnotations'][_0x4625('0x2a')](_0x10a9b2),this[_0x4625('0x1b')][_0x4625('0x47')](_0x10a9b2[_0x4625('0x2')]));}['_closeAnnotation'](_0x137d70){this[_0x4625('0x35')][_0x4625('0x1d')](_0x137d70),this['_removeAnnotationFromBalloon'](_0x137d70);}}function F(_0x142d2a,_0x3a8c1e){return _0x142d2a[_0x4625('0x5')]===_0x3a8c1e[_0x4625('0x5')]&&_0x142d2a[_0x4625('0xa')]===_0x3a8c1e[_0x4625('0xa')]&&_0x142d2a[_0x4625('0x25')]===_0x3a8c1e[_0x4625('0x10')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x3e6f=['southArrowNorthWest','_annotations','set:container','off','defaultPositions','northArrowSouthWest','getSidebarItemView','refresh','set','type','create','includes','has','change:container','register','requires','destroy','NarrowSidebar','attach','focus','removeEventListener','pin','activeAnnotation','_integrateWithEditorAnnotations','narrowsidebar-detach-not-attached','_selectedAnnotations','content','annotations','clear','mousedown','low','esc','isDirty','element','values','_detachListeners','_refreshPositioning','keyCode','detach','_editorAnnotations','_updateBalloonPosition','balloonPanelView','from','_showBalloon','cancel','plugins','contains','EditorAnnotations','getOrderedSelectedAnnotations','getByView','_hideBalloon','remove','ck-sidebar--narrow','_setSelectedAnnotations','focusableElements','view','setActiveAnnotation','uiUpdate','stopListening','southArrowNorth','_annotationToNarrowView','attachToDom','annotationType','rearrange','isAttached','bind','bodyCollection','get','_attachListeners','editors','hasDomSelection','narrowsidebar-attach-already-attached','delete','ready','_destroyEditorAnnotationsIntegration','first','_domEmitter','find','listenTo','northArrowSouth','isVisible','addEventListener','target','resize','preventClosingBalloon','narrowSidebar','context','add','blur','keydown','locale','_refreshPositioningDebounced','change:height','southArrowNorthEast','detachFromDom','high','_manuallyClosedAnnotationViews'];(function(_0x3e7f49,_0x3e6fc4){const _0x29c638=function(_0x4a08ed){while(--_0x4a08ed){_0x3e7f49['push'](_0x3e7f49['shift']());}};_0x29c638(++_0x3e6fc4);}(_0x3e6f,0x16a));const _0x29c6=function(_0x3e7f49,_0x3e6fc4){_0x3e7f49=_0x3e7f49-0x0;let _0x29c638=_0x3e6f[_0x3e7f49];return _0x29c638;};import{ContextPlugin as _0x365b2e,Context as _0x72ef77}from'ckeditor5/src/core';import _0x4f00bd from'./annotationsuis';import _0x548c7a from'./sidebar';import _0x3e6229 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3c64ec,BodyCollection as _0x519f20}from'ckeditor5/src/ui';import{CKEditorError as _0x5adb75,DomEmitterMixin as _0x1b64da,keyCodes as _0x3682a6,Collection as _0x5ee14d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0xf10f22}from'lodash-es';import _0x42789e from'./editorannotations';export default class s extends _0x365b2e{static get[_0x29c6('0x29')](){return[_0x548c7a,_0x4f00bd];}static get['pluginName'](){return _0x29c6('0x2b');}constructor(_0x4e6882){super(_0x4e6882),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x29c6('0x5')]=Object[_0x29c6('0x24')](_0x1b64da),this[_0x29c6('0x56')]=new Map(),this[_0x29c6('0x22')]('activeAnnotation',null),this[_0x29c6('0x35')]=null,this[_0x29c6('0x33')]=[],this[_0x29c6('0x41')]=new _0x5ee14d(),this[_0x29c6('0x14')]=_0xf10f22(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this[_0x29c6('0xf')][_0x29c6('0x47')][_0x29c6('0x5d')](_0x4f00bd)[_0x29c6('0x28')](_0x29c6('0xe'),this),this[_0x29c6('0x5c')]=new _0x519f20(this[_0x29c6('0xf')][_0x29c6('0x13')]),this[_0x29c6('0x43')]=new _0x3c64ec(this['context']['locale']),this['bodyCollection'][_0x29c6('0x57')](),this[_0x29c6('0x5c')][_0x29c6('0x10')](this[_0x29c6('0x43')]);}[_0x29c6('0x2c')](_0x38ca5d){this[_0x29c6('0x35')]=_0x38ca5d;const _0x2933fa=this[_0x29c6('0xf')][_0x29c6('0x47')][_0x29c6('0x5d')](_0x548c7a),_0x5cd0ed=this[_0x29c6('0x43')];if(_0x2933fa[_0x29c6('0x1b')]=_0x38ca5d,this[_0x29c6('0x5a')])throw new _0x5adb75(_0x29c6('0x0'),this);this[_0x29c6('0x5a')]=!0x0,this[_0x29c6('0x7')](_0x2933fa,_0x29c6('0x1c'),()=>{this[_0x29c6('0x40')](),this[_0x29c6('0x7')](_0x2933fa,_0x29c6('0x27'),_0x144569=>{_0x144569[_0x29c6('0x1d')](),this['attach'](_0x38ca5d);});}),_0x2933fa['_attachToContainer']({'viewClass':_0x29c6('0x4e'),'spaceBetweenItems':0x5});const _0x4e3139=_0x17aaa4=>{const _0x4267ab=new _0x3e6229(this['context'][_0x29c6('0x13')]);_0x2933fa['addAnnotation'](_0x17aaa4,_0x4267ab),this['_annotationToNarrowView'][_0x29c6('0x22')](_0x17aaa4,_0x4267ab),_0x4267ab[_0x29c6('0x5b')](_0x29c6('0x3a'),_0x29c6('0x58'),'number')['to'](_0x17aaa4[_0x29c6('0x51')],'isDirty',_0x29c6('0x23'),'length'),_0x4267ab['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x29c6('0x36')](),_0x5cd0ed[_0x29c6('0x34')][_0x29c6('0x4')]!==_0x17aaa4[_0x29c6('0x51')]?(this['_showBalloon'](_0x17aaa4),_0x17aaa4[_0x29c6('0x51')]['element']['focus'](),this[_0x29c6('0x52')](_0x17aaa4)):this[_0x29c6('0x52')](null);});};for(const _0x593019 of _0x38ca5d)_0x4e3139(_0x593019);this[_0x29c6('0x7')](_0x38ca5d,_0x29c6('0x10'),(_0x97dde,_0x2dde50)=>{_0x4e3139(_0x2dde50);}),this[_0x29c6('0x7')](_0x38ca5d,_0x29c6('0x4d'),(_0x398bbb,_0x309ecd,_0x3aa5ec)=>{this[_0x29c6('0x56')][_0x29c6('0x5d')](_0x309ecd)[_0x29c6('0x2a')](),this['_annotationToNarrowView'][_0x29c6('0x1')](_0x309ecd),_0x2933fa[_0x29c6('0x59')]({'removedAnnotation':_0x309ecd,'previousAnnotation':_0x38ca5d[_0x29c6('0x5d')](_0x3aa5ec-0x1),'nextAnnotation':_0x38ca5d[_0x29c6('0x5d')](_0x3aa5ec+0x1)}),_0x309ecd===this[_0x29c6('0x30')]&&this[_0x29c6('0x52')](null);},{'priority':_0x29c6('0x38')}),this[_0x29c6('0x7')](_0x38ca5d,_0x29c6('0x2d'),(_0x5b0b0c,_0x345e22)=>{this['setActiveAnnotation'](_0x345e22);}),this['listenTo'](_0x38ca5d,_0x29c6('0x11'),()=>{this[_0x29c6('0x52')](null);}),this['_domEmitter'][_0x29c6('0x7')](document,_0x29c6('0x12'),(_0x290905,_0x4abfaa)=>{_0x4abfaa[_0x29c6('0x3f')]===_0x3682a6[_0x29c6('0x39')]&&_0x5cd0ed['isVisible']&&(this[_0x29c6('0x19')][_0x29c6('0x10')](_0x5cd0ed['content'][_0x29c6('0x4')]),this[_0x29c6('0x4c')](),_0x4abfaa['stopPropagation'](),_0x4abfaa['preventDefault']());}),this[_0x29c6('0x5')][_0x29c6('0x7')](document,_0x29c6('0x37'),(_0x395e72,_0x2618d6)=>{const _0xa99400=_0x2618d6[_0x29c6('0xb')];_0x5cd0ed[_0x29c6('0x9')]&&_0x5cd0ed['element'][_0x29c6('0x48')](_0xa99400)||_0x2933fa['view'][_0x29c6('0x3b')]['contains'](_0xa99400)||_0x395e72[_0x29c6('0xd')]||this[_0x29c6('0x30')]&&this[_0x29c6('0x30')][_0x29c6('0x50')][_0x29c6('0x6')](_0x32cff0=>_0x32cff0[_0x29c6('0x48')](_0xa99400))||(this[_0x29c6('0x19')][_0x29c6('0x36')](),this[_0x29c6('0x4c')](),this[_0x29c6('0x52')](null));});const _0x5a1517=this[_0x29c6('0xf')]instanceof _0x72ef77?this[_0x29c6('0xf')]['editors']:new _0x5ee14d([this[_0x29c6('0xf')]]);for(const _0x166229 of _0x5a1517)this[_0x29c6('0x31')](_0x166229);this[_0x29c6('0x7')](_0x5a1517,_0x29c6('0x10'),(_0x461f28,_0x1f4a0e)=>{this[_0x29c6('0x7')](_0x1f4a0e,_0x29c6('0x2'),()=>{this['_integrateWithEditorAnnotations'](_0x1f4a0e);});}),this[_0x29c6('0x7')](_0x5a1517,_0x29c6('0x4d'),(_0x544964,_0x15a396)=>{_0x15a396['plugins'][_0x29c6('0x26')](_0x29c6('0x49'))&&this['_destroyEditorAnnotationsIntegration'](_0x15a396[_0x29c6('0x47')][_0x29c6('0x5d')](_0x29c6('0x49')));}),window[_0x29c6('0xa')]('resize',this['_refreshPositioningDebounced']),this[_0x29c6('0x3e')]();}[_0x29c6('0x52')](_0x4adc08){if(_0x4adc08===this[_0x29c6('0x30')])return;const _0x453d10=this[_0x29c6('0xf')][_0x29c6('0x47')]['get'](_0x548c7a);if(_0x453d10[_0x29c6('0x21')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4adc08,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4adc08)_0x453d10[_0x29c6('0x20')](_0x4adc08)?this['_showBalloon'](_0x4adc08):this[_0x29c6('0x4c')]();else this['_hideBalloon']();this[_0x29c6('0x30')]=_0x4adc08;}[_0x29c6('0x40')](){if(!this[_0x29c6('0x5a')])throw new _0x5adb75(_0x29c6('0x32'),this);this[_0x29c6('0x52')](null);const _0x2a5de2=this[_0x29c6('0xf')][_0x29c6('0x47')]['get'](_0x548c7a);this[_0x29c6('0x4c')](),Array[_0x29c6('0x44')](this['_annotationToNarrowView'][_0x29c6('0x3c')](),_0x26c511=>_0x26c511[_0x29c6('0x2a')]()),this['_annotationToNarrowView']['clear'](),_0x2a5de2['_detachFromContainer'](this[_0x29c6('0x35')]),this[_0x29c6('0x54')](),this['_domEmitter']['stopListening'](),this[_0x29c6('0xf')]instanceof _0x72ef77&&this[_0x29c6('0x54')](this['context'][_0x29c6('0x5f')]);for(const _0x2146ab of Array[_0x29c6('0x44')](this['_editorAnnotations']))this[_0x29c6('0x3')](_0x2146ab);window[_0x29c6('0x2e')](_0x29c6('0xc'),this[_0x29c6('0x14')]),this[_0x29c6('0x14')][_0x29c6('0x46')](),this[_0x29c6('0x33')]=[],this[_0x29c6('0x5a')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x29c6('0x5a')]&&this[_0x29c6('0x40')](),this[_0x29c6('0x5c')][_0x29c6('0x17')]();}[_0x29c6('0x31')](_0x448e0c){const _0x1eb836=_0x448e0c[_0x29c6('0x47')][_0x29c6('0x5d')](_0x42789e),_0x294c6e=this[_0x29c6('0xf')]['plugins'][_0x29c6('0x5d')](_0x548c7a),_0x577fd5=this[_0x29c6('0x35')],_0x260adf=this['balloonPanelView'],_0x407970=()=>{const _0x4b6a8d=_0x1eb836[_0x29c6('0x4a')]({'annotations':this[_0x29c6('0x35')],'activeAnnotation':this[_0x29c6('0x30')]});this[_0x29c6('0x4f')](_0x4b6a8d),this['setActiveAnnotation'](_0x4b6a8d[0x0]||null);};this[_0x29c6('0x7')](_0x1eb836,_0x29c6('0x21'),_0x407970),this[_0x29c6('0x7')](_0x1eb836,_0x29c6('0x11'),(_0x400e27,{isAnnotationTracked:_0xd55619})=>{this[_0x29c6('0x30')]&&_0xd55619(this[_0x29c6('0x30')])&&(this['_setSelectedAnnotations']([]),this[_0x29c6('0x52')](null));}),this[_0x29c6('0x7')](_0x1eb836,_0x29c6('0x53'),()=>{this[_0x29c6('0x14')]();}),this[_0x29c6('0x7')](_0x577fd5,'blur',_0x4a4eb5=>{_0x1eb836[_0x29c6('0x60')]()&&_0x4a4eb5['stop']();},{'priority':_0x29c6('0x18')}),this[_0x29c6('0x7')](this[_0x29c6('0x5')],'mousedown',(_0x264b65,_0x40abd9)=>{const _0x382558=_0x40abd9[_0x29c6('0xb')];_0x260adf[_0x29c6('0x9')]&&_0x260adf[_0x29c6('0x3b')][_0x29c6('0x48')](_0x382558)||_0x294c6e['view'][_0x29c6('0x3b')][_0x29c6('0x48')](_0x382558)||this[_0x29c6('0x30')]&&_0x1eb836[_0x29c6('0x60')]()&&(_0x407970(),_0x264b65[_0x29c6('0xd')]=!0x0);},{'priority':_0x29c6('0x18')}),this[_0x29c6('0x41')][_0x29c6('0x10')](_0x1eb836);}[_0x29c6('0x3')](_0x286fbd){_0x286fbd&&(this['stopListening'](_0x286fbd),this['_editorAnnotations'][_0x29c6('0x4d')](_0x286fbd));}[_0x29c6('0x4f')](_0x42d15e){for(const _0x2e8c70 of this[_0x29c6('0x33')])_0x42d15e[_0x29c6('0x25')](_0x2e8c70)||this[_0x29c6('0x19')][_0x29c6('0x1')](_0x2e8c70[_0x29c6('0x51')]);this[_0x29c6('0x33')]=_0x42d15e;}[_0x29c6('0x3e')](){const _0x193151=this[_0x29c6('0x43')];this[_0x29c6('0x35')]['refreshPositioning'](),_0x193151['isVisible']&&this[_0x29c6('0x42')]();}[_0x29c6('0x45')](_0x472621){if(this[_0x29c6('0x19')][_0x29c6('0x26')](_0x472621['view']))return;const _0x3aafa5=this[_0x29c6('0x43')]['content']['first'];_0x3aafa5!==_0x472621['view']?(_0x3aafa5&&this['_detachListeners'](_0x3aafa5),this[_0x29c6('0x5e')](_0x472621[_0x29c6('0x51')]),this[_0x29c6('0x43')]['content']['clear'](),this[_0x29c6('0x43')]['content'][_0x29c6('0x10')](_0x472621[_0x29c6('0x51')]),this[_0x29c6('0x42')]()):this[_0x29c6('0x42')]();}[_0x29c6('0x42')](){const _0x16f421=this['balloonPanelView'][_0x29c6('0x34')][_0x29c6('0x4')],_0x5154e2=_0x16f421&&this[_0x29c6('0x35')][_0x29c6('0x4b')](_0x16f421);if(!_0x5154e2||!this['_annotationToNarrowView'][_0x29c6('0x26')](_0x5154e2))return;const _0x18b293=this[_0x29c6('0x56')][_0x29c6('0x5d')](_0x5154e2)[_0x29c6('0x3b')],_0x378b01=function(){const _0x406669=_0x3c64ec[_0x29c6('0x1e')];return[_0x406669[_0x29c6('0x16')],_0x406669['northArrowSouthEast'],_0x406669[_0x29c6('0x55')],_0x406669[_0x29c6('0x8')],_0x406669[_0x29c6('0x1a')],_0x406669[_0x29c6('0x1f')]];}();this['balloonPanelView'][_0x29c6('0x2f')]({'target':_0x18b293,'positions':_0x378b01});}[_0x29c6('0x4c')](){const _0x1efe41=this[_0x29c6('0x43')],_0x19ba47=_0x1efe41['content'][_0x29c6('0x4')];_0x19ba47&&(this[_0x29c6('0x3d')](_0x19ba47),_0x1efe41['unpin'](),_0x1efe41[_0x29c6('0x34')][_0x29c6('0x36')]());}[_0x29c6('0x5e')](_0x54f732){this[_0x29c6('0x7')](_0x54f732,_0x29c6('0x15'),()=>this[_0x29c6('0x42')]()),this[_0x29c6('0x7')](_0x54f732,'Esc',(_0x16f829,_0x415e6c)=>{this[_0x29c6('0x19')][_0x29c6('0x10')](_0x54f732),this[_0x29c6('0x4c')](),_0x415e6c();});}[_0x29c6('0x3d')](_0x46552e){this[_0x29c6('0x54')](_0x46552e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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'];}
23
+ const _0x580b=['updateHeight','config','_annotations','container','_detachFromContainer','_destroySidebarItemView','define','minHeight','push','target','addAnnotation','last','_annotationToSidebarItemView','sidebar.preventScrollOutOfView','_spaceBetweenItems','get','getSidebarItemView','bottom','nodeType','class','setContainer','render','_lastItem','_updateLastItem','_targetTop','sidebar-setcontainer-invalid-element','change:bottom','top','stopListening','object','init','_getTargetTop','max','isAnimationDisabled','_activeAnnotation','bind','sidebar-attachtocontainer-missing-container','_recalculate','clear','listenTo','change:top','_recalculateBuffer','_sidebarItemViewToAnnotation','_alignForBottomChange','context','destroy','_alignBeforeItem','_alignToTargetRect','isActive','_getItemBefore','add','locale','_getItemAfter','length','_getMaxAvailableTop','list','height','rearrange','content','sidebar.container','_alignAfterItem','change:targetRect','delete','getIndex','_setItemTop','_attachToContainer','change:_lastItem','Sidebar','view','targetRect','element','_alignForTopChange','set'];(function(_0x9bfd49,_0x580b41){const _0x3a76f3=function(_0x5d8eae){while(--_0x5d8eae){_0x9bfd49['push'](_0x9bfd49['shift']());}};_0x3a76f3(++_0x580b41);}(_0x580b,0x8c));const _0x3a76=function(_0x9bfd49,_0x580b41){_0x9bfd49=_0x9bfd49-0x0;let _0x3a76f3=_0x580b[_0x9bfd49];return _0x3a76f3;};import{ContextPlugin as _0x41ea08}from'ckeditor5/src/core';import{Rect as _0x10be81,CKEditorError as _0x4b0e4c}from'ckeditor5/src/utils';import _0x295ab9 from'./view/sidebarview';import _0x598155 from'./view/sidebaritemview';export default class z extends _0x41ea08{static get['pluginName'](){return _0x3a76('0x0');}constructor(_0x27dfdf){super(_0x27dfdf),this[_0x3a76('0x5')](_0x3a76('0x1c'),void 0x0),this[_0x3a76('0x1')]=this['_createSidebarView'](),this[_0x3a76('0x5')]('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3a76('0x12')]=new Map(),this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0xc')](_0x3a76('0x13'),!0x1),this['_annotations']=null,this[_0x3a76('0x28')]=null,this[_0x3a76('0x2f')]=[];}[_0x3a76('0x24')](){const _0x4e1808=this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x41'));_0x4e1808&&this[_0x3a76('0x1a')](_0x4e1808);}[_0x3a76('0x1a')](_0x203998){if(!y(_0x203998))throw new _0x4b0e4c(_0x3a76('0x1f'));this[_0x3a76('0x9')]=_0x203998;}[_0x3a76('0x47')]({viewClass:_0x33b994='',spaceBetweenItems:_0x47de86=0x19}={}){if(!y(this[_0x3a76('0x9')]))throw new _0x4b0e4c(_0x3a76('0x2a'),this);this[_0x3a76('0x9')]['appendChild'](this[_0x3a76('0x1')][_0x3a76('0x3')]),this[_0x3a76('0x1')]['class']=_0x33b994,this['_spaceBetweenItems']=_0x47de86;}[_0x3a76('0x3f')]({removedAnnotation:_0x2c6094,previousAnnotation:_0x5cd4ca,nextAnnotation:_0x36c771}){const _0x580a78=this[_0x3a76('0x16')](_0x2c6094);this[_0x3a76('0x1')][_0x3a76('0x3d')]['remove'](_0x580a78),this[_0x3a76('0xb')](_0x2c6094),_0x5cd4ca&&this[_0x3a76('0x35')](this[_0x3a76('0x16')](_0x5cd4ca)),_0x36c771&&this[_0x3a76('0x35')](this['getSidebarItemView'](_0x36c771)),this[_0x3a76('0x1d')]();}['refresh']({blurredAnnotation:_0x4870dd,activatedAnnotation:_0x1e5b76,disableAnimationOnActivatedAnnotation:_0x4e76cd}){if(this[_0x3a76('0x28')]=_0x1e5b76,_0x4870dd){_0x4870dd[_0x3a76('0x36')]=!0x1;const _0x33d215=this['getSidebarItemView'](_0x4870dd);_0x33d215&&_0x4e76cd&&(_0x33d215[_0x3a76('0x27')]=!0x1);}if(_0x1e5b76){const _0x2b7b2c=this[_0x3a76('0x16')](_0x1e5b76);_0x2b7b2c&&(_0x1e5b76[_0x3a76('0x36')]=!0x0,_0x4e76cd&&(_0x2b7b2c[_0x3a76('0x27')]=!0x0,_0x2b7b2c[_0x3a76('0x21')]+=0x1),this[_0x3a76('0x35')](_0x2b7b2c));}}[_0x3a76('0xa')](_0xfbcff2){if(this['view'][_0x3a76('0x3')]['remove'](),_0xfbcff2)for(const _0xa5a203 of _0xfbcff2)this[_0x3a76('0xb')](_0xa5a203);this['view'][_0x3a76('0x3d')][_0x3a76('0x2c')](),this[_0x3a76('0x1')][_0x3a76('0x19')]='',this[_0x3a76('0x1c')]=null;}[_0x3a76('0x10')](_0x5477c6,_0x1c3c55){_0x1c3c55||(_0x1c3c55=_0x5477c6[_0x3a76('0x1')]);const _0x518c5e=new _0x598155(this[_0x3a76('0x32')][_0x3a76('0x39')]);this[_0x3a76('0x30')][_0x3a76('0x5')](_0x518c5e,_0x5477c6),this[_0x3a76('0x12')][_0x3a76('0x5')](_0x5477c6,_0x518c5e),_0x518c5e[_0x3a76('0x40')][_0x3a76('0x38')](_0x1c3c55),this[_0x3a76('0x2d')](_0x5477c6[_0x3a76('0x1')],_0x3a76('0x43'),(_0x15768a,_0x5c82d4,_0x2011de)=>{const _0x3e196c=this[_0x3a76('0x25')](_0x5477c6,_0x2011de);_0x518c5e[_0x3a76('0x1e')]!=_0x3e196c&&(_0x518c5e[_0x3a76('0x1e')]=_0x3e196c,this['_setItemTop'](_0x518c5e,_0x3e196c));}),this[_0x3a76('0x2d')](_0x518c5e,_0x3a76('0x2e'),()=>{this[_0x3a76('0x2b')](_0x518c5e,_0x3a76('0x21'));}),this['listenTo'](_0x518c5e,_0x3a76('0x20'),()=>{this[_0x3a76('0x2b')](_0x518c5e,_0x3a76('0x17'));}),this[_0x3a76('0x35')](_0x518c5e);const _0x307b1d=this['_getItemBefore'](_0x518c5e);if(_0x307b1d)this['_alignAfterItem'](_0x307b1d,_0x518c5e)||this[_0x3a76('0x35')](_0x518c5e);else this[_0x3a76('0x35')](_0x518c5e);return this[_0x3a76('0x1d')](),this[_0x3a76('0x1')][_0x3a76('0x3d')][_0x3a76('0x38')](_0x518c5e),_0x518c5e;}[_0x3a76('0x4')](_0x9808f7){if(!_0x9808f7[_0x3a76('0x40')]['length'])return;const _0x5831a7=this[_0x3a76('0x37')](_0x9808f7);if(!_0x5831a7)return;const _0x2ae02a=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x5831a7),_0x211c45=this['_activeAnnotation'];_0x211c45&&_0x211c45===_0x2ae02a?this[_0x3a76('0x42')](_0x5831a7,_0x9808f7):this[_0x3a76('0x34')](_0x9808f7,_0x5831a7);}[_0x3a76('0x31')](_0xe3c7fd){if(!_0xe3c7fd[_0x3a76('0x40')][_0x3a76('0x3b')])return;const _0x33d652=this[_0x3a76('0x3a')](_0xe3c7fd);if(!_0x33d652)return;const _0x2179c5=this['_sidebarItemViewToAnnotation'][_0x3a76('0x15')](_0x33d652),_0x175ff2=this['context'][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x13')),_0x34b55a=this[_0x3a76('0x28')];_0x34b55a&&_0x34b55a===_0x2179c5&&_0x175ff2?(this[_0x3a76('0x34')](_0x33d652,_0xe3c7fd),this[_0x3a76('0x42')](_0xe3c7fd,_0x33d652)):_0x34b55a&&_0x34b55a===_0x2179c5?this[_0x3a76('0x34')](_0x33d652,_0xe3c7fd):this['_alignAfterItem'](_0xe3c7fd,_0x33d652);}['_recalculate'](_0x35914e,_0x1d7ef7){0x0===this['_recalculateBuffer'][_0x3a76('0x3b')]&&setTimeout(()=>{for(const {sidebarItemView:_0x47938e,changedProp:_0x35ba2e}of this[_0x3a76('0x2f')])_0x3a76('0x21')===_0x35ba2e?this[_0x3a76('0x4')](_0x47938e):this[_0x3a76('0x31')](_0x47938e);this[_0x3a76('0x2f')]=[];},0xa),this[_0x3a76('0x2f')][_0x3a76('0xe')]({'sidebarItemView':_0x35914e,'changedProp':_0x1d7ef7});}[_0x3a76('0x16')](_0x31bbe3){return this[_0x3a76('0x12')]['get'](_0x31bbe3);}[_0x3a76('0x33')](){this['stopListening'](),this[_0x3a76('0x1')][_0x3a76('0x33')]();}[_0x3a76('0xb')](_0x3a6284){const _0xafab60=this['getSidebarItemView'](_0x3a6284);this[_0x3a76('0x22')](_0xafab60),this[_0x3a76('0x22')](_0x3a6284[_0x3a76('0x1')]),_0xafab60[_0x3a76('0x33')](),this[_0x3a76('0x12')][_0x3a76('0x44')](_0x3a6284),this[_0x3a76('0x30')][_0x3a76('0x44')](_0xafab60);}['_createSidebarView'](){const _0x5925cf=new _0x295ab9(this['context'][_0x3a76('0x39')]);return _0x5925cf[_0x3a76('0x1b')](),this['on'](_0x3a76('0x48'),(_0x1b8187,_0x2e5179,_0x267198,_0x9c142d)=>{_0x9c142d&&_0x5925cf['unbind']('minHeight'),_0x267198?_0x5925cf[_0x3a76('0x29')](_0x3a76('0xd'))['to'](_0x267198,'bottom'):_0x5925cf['minHeight']=null;}),_0x5925cf;}[_0x3a76('0x1d')](){var _0xa0c5c6;this['_lastItem']=(null===(_0xa0c5c6=this[_0x3a76('0x8')])||void 0x0===_0xa0c5c6?void 0x0:_0xa0c5c6[_0x3a76('0x11')])?this[_0x3a76('0x16')](this['_annotations'][_0x3a76('0x11')]):null;}[_0x3a76('0x37')](_0x329265){var _0x5c1c27;const _0x25af42=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x329265),_0x48131a=_0x25af42&&(null===(_0x5c1c27=this['_annotations'])||void 0x0===_0x5c1c27?void 0x0:_0x5c1c27[_0x3a76('0x15')](this['_annotations'][_0x3a76('0x45')](_0x25af42)-0x1));return _0x48131a&&this[_0x3a76('0x16')](_0x48131a)||null;}[_0x3a76('0x3a')](_0x52957a){var _0x53c891;const _0x2beaa1=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x52957a),_0x2238b6=_0x2beaa1&&(null===(_0x53c891=this['_annotations'])||void 0x0===_0x53c891?void 0x0:_0x53c891['get'](this[_0x3a76('0x8')][_0x3a76('0x45')](_0x2beaa1)+0x1));return _0x2238b6&&this[_0x3a76('0x16')](_0x2238b6)||null;}[_0x3a76('0x34')](_0x4274e6,_0x38e54c){_0x4274e6['updateHeight']();const _0xc0a709=H(_0x38e54c[_0x3a76('0x17')]+this[_0x3a76('0x14')],_0x4274e6['top']);return!!_0xc0a709&&(this['_setItemTop'](_0x38e54c,_0x38e54c[_0x3a76('0x21')]-_0xc0a709),!0x0);}[_0x3a76('0x42')](_0x5188e0,_0x2912d1){_0x5188e0[_0x3a76('0x6')]();const _0x5c2a1a=H(_0x5188e0[_0x3a76('0x17')]+this[_0x3a76('0x14')],_0x2912d1[_0x3a76('0x21')]);return!!_0x5c2a1a&&(this['_setItemTop'](_0x2912d1,_0x2912d1[_0x3a76('0x21')]+_0x5c2a1a,!0x1),!0x0);}[_0x3a76('0x35')](_0x5b30a3){const _0xbba0fe=this['_sidebarItemViewToAnnotation']['get'](_0x5b30a3);if(!_0xbba0fe||!_0xbba0fe[_0x3a76('0xf')]||!_0xbba0fe['targetRect'])return;const _0x292e97=this['_getTargetTop'](_0xbba0fe,_0xbba0fe[_0x3a76('0x2')]);this[_0x3a76('0x46')](_0x5b30a3,_0x292e97);}[_0x3a76('0x25')](_0x4a3bb4,_0x1da53c){if(null===_0x1da53c)return 0x0;if(_0x4a3bb4[_0x3a76('0xf')]instanceof _0x10be81)return _0x1da53c['top'];{const _0x5a2308=new _0x10be81(this['view'][_0x3a76('0x3')])[_0x3a76('0x21')];return _0x1da53c[_0x3a76('0x21')]-_0x5a2308;}}[_0x3a76('0x46')](_0xf0ba2f,_0x3be5c7,_0x4d14ee=this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x13'))){_0x4d14ee&&(_0x3be5c7=Math[_0x3a76('0x26')](_0x3be5c7,this['_getMaxAvailableTop'](_0xf0ba2f))),_0xf0ba2f[_0x3a76('0x21')]=_0x3be5c7;}[_0x3a76('0x3c')](_0x464c25){let _0x4b5203=this['_getItemBefore'](_0x464c25),_0x1bd4de=0x0;for(;_0x4b5203;)_0x4b5203[_0x3a76('0x6')](),_0x1bd4de+=this[_0x3a76('0x14')]+_0x4b5203[_0x3a76('0x3e')],_0x4b5203=this[_0x3a76('0x37')](_0x4b5203);return _0x1bd4de;}}function H(_0x593b4a,_0x2eab23){return Math['max'](_0x593b4a-_0x2eab23,0x0);}function y(_0x24dc99){return null!==_0x24dc99&&_0x3a76('0x23')==typeof _0x24dc99&&0x1===_0x24dc99[_0x3a76('0x18')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]);}}
23
+ const _0x116a=['add','bind','isDirty','extendTemplate','ck-annotation-counter__badge--','children','ck-annotation-counter__badge','ck-annotation-counter','...','icon','annotationType','counterView','toString','_badge','ck-annotation-counter__badge--edit-mode','set','number'];(function(_0x4c291d,_0x116af8){const _0x20478d=function(_0x4b0e08){while(--_0x4b0e08){_0x4c291d['push'](_0x4c291d['shift']());}};_0x20478d(++_0x116af8);}(_0x116a,0x1a4));const _0x2047=function(_0x4c291d,_0x116af8){_0x4c291d=_0x4c291d-0x0;let _0x20478d=_0x116a[_0x4c291d];return _0x20478d;};import{ButtonView as _0x20e8aa,View as _0x5d6f48}from'ckeditor5/src/ui';import _0x573e77 from'../../../theme/icons/add-comment.svg';export default class D extends _0x20e8aa{constructor(_0x1baf16){super(_0x1baf16);const _0x4c9f10=this['bindTemplate'];this[_0x2047('0x3')](_0x2047('0x7'),!0x1),this[_0x2047('0x3')](_0x2047('0x4'),0x0),this[_0x2047('0x6')](_0x2047('0x1'))['to'](this,_0x2047('0x7'),this,_0x2047('0x4'),(_0x65cf97,_0x3aef80)=>_0x65cf97?_0x2047('0xd'):_0x3aef80[_0x2047('0x0')]()),this[_0x2047('0x3')](_0x2047('0xf'),''),this[_0x2047('0xe')]=_0x573e77,this[_0x2047('0x8')]({'attributes':{'class':[_0x2047('0xc')]}}),this[_0x2047('0x10')]=new _0x5d6f48(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0x2047('0xb'),_0x4c9f10['to'](_0x2047('0xf'),_0x1859f1=>_0x2047('0x9')+_0x1859f1),_0x4c9f10['if'](_0x2047('0x7'),_0x2047('0x2'))]},'children':[{'text':_0x4c9f10['to']('_badge')}]}),this[_0x2047('0xa')][_0x2047('0x5')](this[_0x2047('0x10')]);}}