@ckeditor/ckeditor5-comments 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230908.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.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.d.ts +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-20230906.0",
3
+ "version": "0.0.0-nightly-20230908.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-20230906.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230906.0",
46
+ "ckeditor5": "0.0.0-nightly-20230908.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230908.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 _0x287c=['nodeType','isArray','set','_getNormalizedTarget','function','remove','length','_target','focusableElements','target','destroy','_id','element','mainView','render','targetRect','innerView','filter','stopListening','isActive','view','_type','_assertCorrectTarget','offsetParent','getClientRects','add','every','isVisible','annotation-invalid-target','item','focusTracker','type'];(function(_0x4403ff,_0x287c26){const _0x48c8ad=function(_0x52622d){while(--_0x52622d){_0x4403ff['push'](_0x4403ff['shift']());}};_0x48c8ad(++_0x287c26);}(_0x287c,0x181));const _0x48c8=function(_0x4403ff,_0x287c26){_0x4403ff=_0x4403ff-0x0;let _0x48c8ad=_0x287c[_0x4403ff];return _0x48c8ad;};import{CKEditorError as _0x32abf4,Rect as _0x581fdf,Collection as _0x10ede1,ObservableMixin as _0x105602}from'ckeditor5/src/utils';export default class d extends _0x105602(){constructor({view:_0x3b6ede,target:_0x371e49,type:_0x3d2690,isVisible:_0x1afff4=!0x0}){super(),this[_0x48c8('0x13')]=_0x3b6ede,this[_0x48c8('0x13')][_0x48c8('0xb')]||this[_0x48c8('0x13')][_0x48c8('0xd')](),this[_0x48c8('0x14')]=_0x3d2690,this[_0x48c8('0x6')]=_0x371e49,d[_0x48c8('0x15')](this['_getNormalizedTarget']()),this[_0x48c8('0x7')]=new _0x10ede1([this[_0x48c8('0x13')]['element']],{'idProperty':_0x48c8('0xa')}),this[_0x48c8('0x7')]['on']('add',(_0x2f567f,_0x3665cc)=>{this[_0x48c8('0x13')][_0x48c8('0x1d')][_0x48c8('0x18')](_0x3665cc);}),this[_0x48c8('0x7')]['on']('remove',(_0x23b163,_0x4e7016)=>{this[_0x48c8('0x13')][_0x48c8('0x1d')][_0x48c8('0x4')](_0x4e7016);}),this[_0x48c8('0x1')](_0x48c8('0x1a'),_0x1afff4);}get[_0x48c8('0x1e')](){return _0x48c8('0x3')==typeof this[_0x48c8('0x14')]?this[_0x48c8('0x14')]():this['_type'];}get[_0x48c8('0xf')](){return this[_0x48c8('0x13')][_0x48c8('0xc')];}get[_0x48c8('0x8')](){const _0x279a24=this[_0x48c8('0x2')]();return d[_0x48c8('0x15')](_0x279a24),_0x279a24;}get[_0x48c8('0xe')](){const _0x56e379=this[_0x48c8('0x8')];if(null===_0x56e379)return null;if(_0x56e379 instanceof _0x581fdf)return _0x56e379;const _0x2b3b28=_0x56e379[_0x48c8('0x10')](_0x4be1d5=>function(_0x3da7ed){const _0x949b40=_0x3da7ed[_0x48c8('0x16')];if(_0x949b40)return!0x0;const _0x2348e4=_0x3da7ed[_0x48c8('0x17')]()['item'](0x0);return!!_0x2348e4;}(_0x4be1d5));return 0x0===_0x2b3b28[_0x48c8('0x5')]?null:new _0x581fdf(_0x2b3b28[0x0][_0x48c8('0x17')]()[_0x48c8('0x1c')](0x0));}get['isActive'](){return this[_0x48c8('0x13')][_0x48c8('0x12')];}set['isActive'](_0x525ef1){this[_0x48c8('0x13')][_0x48c8('0x12')]=_0x525ef1,this['view'][_0x48c8('0xc')][_0x48c8('0x12')]=_0x525ef1;}['updateTargetRect'](){this[_0x48c8('0x13')]['targetRect']=this['targetRect'];}[_0x48c8('0x9')](){this['focusableElements']['stopListening'](),this[_0x48c8('0x7')]['clear'](),this[_0x48c8('0x11')]();}['refreshVisibility'](){this[_0x48c8('0x1a')]=!!this[_0x48c8('0xe')];}static['_assertCorrectTarget'](_0x33d004){if(!(null===_0x33d004||_0x33d004 instanceof _0x581fdf||Array[_0x48c8('0x0')](_0x33d004)&&_0x33d004[_0x48c8('0x19')](_0x36f31e=>y(_0x36f31e))))throw new _0x32abf4(_0x48c8('0x1b'),null,{'target':_0x33d004});}[_0x48c8('0x2')](){const _0x4774ca='function'==typeof this[_0x48c8('0x6')]?this[_0x48c8('0x6')]():this['_target'];return y(_0x4774ca)?[_0x4774ca]:_0x4774ca;}}function y(_0x1ffaec){return null!==_0x1ffaec&&'object'==typeof _0x1ffaec&&_0x48c8('0x1f')in _0x1ffaec&&0x1===_0x1ffaec[_0x48c8('0x1f')];}
23
+ const _0x5721=['_assertCorrectTarget','_getNormalizedTarget','object','type','targetRect','target','mainView','isActive','destroy','render','view','filter','function','add','focusTracker','element','updateTargetRect','innerView','refreshVisibility','_type','annotation-invalid-target','stopListening','isVisible','_target','focusableElements','remove','item','_id','offsetParent'];(function(_0x2a8768,_0x5721b3){const _0x53a255=function(_0x905229){while(--_0x905229){_0x2a8768['push'](_0x2a8768['shift']());}};_0x53a255(++_0x5721b3);}(_0x5721,0x116));const _0x53a2=function(_0x2a8768,_0x5721b3){_0x2a8768=_0x2a8768-0x0;let _0x53a255=_0x5721[_0x2a8768];return _0x53a255;};import{CKEditorError as _0x37425a,Rect as _0x345377,Collection as _0x45932c,ObservableMixin as _0x22caa3}from'ckeditor5/src/utils';export default class d extends _0x22caa3(){constructor({view:_0x1b4361,target:_0x13905a,type:_0x382a79,isVisible:_0xf795cd=!0x0}){super(),this[_0x53a2('0x16')]=_0x1b4361,this[_0x53a2('0x16')][_0x53a2('0x1b')]||this[_0x53a2('0x16')][_0x53a2('0x15')](),this[_0x53a2('0x2')]=_0x382a79,this[_0x53a2('0x6')]=_0x13905a,d[_0x53a2('0xc')](this[_0x53a2('0xd')]()),this[_0x53a2('0x7')]=new _0x45932c([this[_0x53a2('0x16')]['element']],{'idProperty':_0x53a2('0xa')}),this[_0x53a2('0x7')]['on'](_0x53a2('0x19'),(_0xb194ab,_0x456c97)=>{this[_0x53a2('0x16')]['focusTracker']['add'](_0x456c97);}),this[_0x53a2('0x7')]['on'](_0x53a2('0x8'),(_0x18fdc1,_0x5ba69a)=>{this['view'][_0x53a2('0x1a')][_0x53a2('0x8')](_0x5ba69a);}),this['set'](_0x53a2('0x5'),_0xf795cd);}get[_0x53a2('0xf')](){return _0x53a2('0x18')==typeof this[_0x53a2('0x2')]?this[_0x53a2('0x2')]():this['_type'];}get[_0x53a2('0x0')](){return this[_0x53a2('0x16')][_0x53a2('0x12')];}get[_0x53a2('0x11')](){const _0x2def2f=this[_0x53a2('0xd')]();return d['_assertCorrectTarget'](_0x2def2f),_0x2def2f;}get[_0x53a2('0x10')](){const _0x46a1d5=this['target'];if(null===_0x46a1d5)return null;if(_0x46a1d5 instanceof _0x345377)return _0x46a1d5;const _0x57ac33=_0x46a1d5[_0x53a2('0x17')](_0x10bd07=>function(_0x406bee){const _0x55d98a=_0x406bee[_0x53a2('0xb')];if(_0x55d98a)return!0x0;const _0x496b54=_0x406bee['getClientRects']()[_0x53a2('0x9')](0x0);return!!_0x496b54;}(_0x10bd07));return 0x0===_0x57ac33['length']?null:new _0x345377(_0x57ac33[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view'][_0x53a2('0x13')];}set[_0x53a2('0x13')](_0x18114a){this[_0x53a2('0x16')][_0x53a2('0x13')]=_0x18114a,this[_0x53a2('0x16')][_0x53a2('0x12')]['isActive']=_0x18114a;}[_0x53a2('0x1c')](){this['view'][_0x53a2('0x10')]=this['targetRect'];}[_0x53a2('0x14')](){this[_0x53a2('0x7')][_0x53a2('0x4')](),this['focusableElements']['clear'](),this[_0x53a2('0x4')]();}[_0x53a2('0x1')](){this[_0x53a2('0x5')]=!!this[_0x53a2('0x10')];}static['_assertCorrectTarget'](_0x4fa6d3){if(!(null===_0x4fa6d3||_0x4fa6d3 instanceof _0x345377||Array['isArray'](_0x4fa6d3)&&_0x4fa6d3['every'](_0x1be0c1=>y(_0x1be0c1))))throw new _0x37425a(_0x53a2('0x3'),null,{'target':_0x4fa6d3});}[_0x53a2('0xd')](){const _0x43eb8d='function'==typeof this[_0x53a2('0x6')]?this[_0x53a2('0x6')]():this[_0x53a2('0x6')];return y(_0x43eb8d)?[_0x43eb8d]:_0x43eb8d;}}function y(_0xfbda2a){return null!==_0xfbda2a&&_0x53a2('0xe')==typeof _0xfbda2a&&'nodeType'in _0xfbda2a&&0x1===_0xfbda2a['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5521=['listenTo','change:isFocused','delete','remove','getByInnerView','targetRect','_getOrderInContent','focus','annotationcollection-duplicated-item','set','left','sort','stopListening','length','getIndex','blur','_innerViewToAnnotation','getByView','focusableElements','innerView','fire','view','has','add','get','_sort','updateTargetRect','_focusTracker','top','annotationcollection-not-existing-item','_viewToAnnotation','destroy','from','clear'];(function(_0xd06720,_0x552148){const _0x4bbeaa=function(_0x3c686a){while(--_0x3c686a){_0xd06720['push'](_0xd06720['shift']());}};_0x4bbeaa(++_0x552148);}(_0x5521,0x9a));const _0x4bbe=function(_0xd06720,_0x552148){_0xd06720=_0xd06720-0x0;let _0x4bbeaa=_0x5521[_0xd06720];return _0x4bbeaa;};import{CKEditorError as _0x3d62ad,Collection as _0x442cb8,FocusTracker as _0x14b1f0}from'ckeditor5/src/utils';export default class x extends _0x442cb8{constructor(_0x275914=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x14b1f0(),this['_focusTracker']['on'](_0x4bbe('0x11'),(_0x6f1618,_0x48e7a6,_0x522159)=>{_0x522159||this[_0x4bbe('0x2')](_0x4bbe('0x1f'));});for(const _0x39d5bd of _0x275914)this['add'](_0x39d5bd);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4584ee){if(this['has'](_0x4584ee))throw new _0x3d62ad(_0x4bbe('0x18'),null);this['_innerViewToAnnotation']['set'](_0x4584ee[_0x4bbe('0x1')],_0x4584ee),this['_viewToAnnotation'][_0x4bbe('0x19')](_0x4584ee[_0x4bbe('0x3')],_0x4584ee);for(const _0x4ef0d9 of _0x4584ee[_0x4bbe('0x0')])this['_focusTracker'][_0x4bbe('0x5')](_0x4ef0d9);this[_0x4bbe('0x10')](_0x4584ee[_0x4bbe('0x0')],_0x4bbe('0x5'),(_0x2e324e,_0x14fb10)=>{this[_0x4bbe('0x9')][_0x4bbe('0x5')](_0x14fb10);}),this[_0x4bbe('0x10')](_0x4584ee[_0x4bbe('0x0')],_0x4bbe('0x13'),(_0x2ebd6e,_0x12221c)=>{this['_focusTracker']['remove'](_0x12221c);}),this[_0x4bbe('0x10')](_0x4584ee[_0x4bbe('0x3')]['focusTracker'],_0x4bbe('0x11'),(_0x43b03c,_0xd8c9af,_0x50b9de)=>{_0x50b9de&&this[_0x4bbe('0x2')](_0x4bbe('0x17'),_0x4584ee);}),_0x4584ee[_0x4bbe('0x8')]();const _0x17715e=this[_0x4bbe('0x16')](_0x4584ee[_0x4bbe('0x3')]['targetRect']);return super[_0x4bbe('0x5')](_0x4584ee,_0x17715e);}[_0x4bbe('0x13')](_0x56b98e){if(!this[_0x4bbe('0x4')](_0x56b98e))throw new _0x3d62ad(_0x4bbe('0xb'),null);this[_0x4bbe('0x1c')](_0x56b98e['view']['focusTracker']),this[_0x4bbe('0x1c')](_0x56b98e[_0x4bbe('0x0')]);for(const _0x224173 of _0x56b98e['focusableElements'])this[_0x4bbe('0x9')][_0x4bbe('0x13')](_0x224173);return this[_0x4bbe('0xc')][_0x4bbe('0x12')](_0x56b98e[_0x4bbe('0x3')]),this[_0x4bbe('0x20')][_0x4bbe('0x12')](_0x56b98e[_0x4bbe('0x1')]),super[_0x4bbe('0x13')](_0x56b98e);}[_0x4bbe('0x14')](_0x21ded4){return this[_0x4bbe('0x20')][_0x4bbe('0x6')](_0x21ded4);}[_0x4bbe('0x21')](_0x490261){return this[_0x4bbe('0xc')][_0x4bbe('0x6')](_0x490261);}[_0x4bbe('0xd')](){super[_0x4bbe('0xf')](),this[_0x4bbe('0x1c')](),this['_innerViewToAnnotation'][_0x4bbe('0xf')](),this[_0x4bbe('0xc')][_0x4bbe('0xf')](),this['_focusTracker'][_0x4bbe('0xd')]();}['refreshPositioning'](){for(const _0x560b06 of this)_0x560b06[_0x4bbe('0x8')]();this[_0x4bbe('0x7')]();}[_0x4bbe('0x7')](){const _0x2d6e7b=Array[_0x4bbe('0xe')](this)[_0x4bbe('0x1b')]((_0x31aa19,_0x489a24)=>v(_0x31aa19[_0x4bbe('0x3')][_0x4bbe('0x15')],_0x489a24[_0x4bbe('0x3')][_0x4bbe('0x15')]));for(let _0x337e2f=_0x2d6e7b[_0x4bbe('0x1d')]-0x1;_0x337e2f>0x0;_0x337e2f--){const _0x1dccbb=_0x2d6e7b[_0x337e2f];_0x337e2f!==this[_0x4bbe('0x1e')](_0x1dccbb)&&(this[_0x4bbe('0x13')](_0x1dccbb),this[_0x4bbe('0x5')](_0x1dccbb));}}['_getOrderInContent'](_0x4c447f){let _0x385df4=0x0;if(!_0x4c447f)return this[_0x4bbe('0x1d')];for(const _0x33e676 of this){const _0x20bc47=_0x33e676[_0x4bbe('0x3')][_0x4bbe('0x15')];if(_0x20bc47){if(v(_0x4c447f,_0x20bc47)<0x0)return _0x385df4;_0x385df4++;}}return _0x385df4;}}export function bindAnnotationCollections({source:_0xbd5b91,target:_0x244924,filter:_0x17ec70}){for(const _0x1f4ddc of _0xbd5b91)_0x17ec70(_0x1f4ddc)&&_0x244924[_0x4bbe('0x5')](_0x1f4ddc);_0x244924[_0x4bbe('0x10')](_0xbd5b91,_0x4bbe('0x5'),(_0x3dd7c9,_0x582199)=>{_0x17ec70(_0x582199)&&_0x244924['add'](_0x582199);}),_0x244924['listenTo'](_0xbd5b91,_0x4bbe('0x13'),(_0x43cfa9,_0x71f567)=>{_0x244924[_0x4bbe('0x4')](_0x71f567)&&_0x244924['remove'](_0x71f567);});}function v(_0x21fd78,_0x31eec3){if(null===_0x21fd78&&null===_0x31eec3)return 0x0;if(null===_0x21fd78)return-0x1;if(null===_0x31eec3)return 0x1;const _0x587e4c=_0x21fd78[_0x4bbe('0xa')]-_0x31eec3['top'];return 0x0==_0x587e4c?_0x21fd78[_0x4bbe('0x1a')]-_0x31eec3[_0x4bbe('0x1a')]:_0x587e4c;}
23
+ const _0x1aeb=['focusTracker','clear','add','getIndex','_sort','top','delete','left','getByView','isFocused','blur','annotationcollection-not-existing-item','get','fire','getByInnerView','focusableElements','focus','_focusTracker','refreshPositioning','_innerViewToAnnotation','has','set','view','targetRect','innerView','sort','stopListening','destroy','_viewToAnnotation','_getOrderInContent','change:isFocused','length','annotationcollection-duplicated-item','listenTo','updateTargetRect','remove'];(function(_0x1ff689,_0x1aeb70){const _0x171479=function(_0x12deb9){while(--_0x12deb9){_0x1ff689['push'](_0x1ff689['shift']());}};_0x171479(++_0x1aeb70);}(_0x1aeb,0xea));const _0x1714=function(_0x1ff689,_0x1aeb70){_0x1ff689=_0x1ff689-0x0;let _0x171479=_0x1aeb[_0x1ff689];return _0x171479;};import{CKEditorError as _0x41789c,Collection as _0x166593,FocusTracker as _0x444f0d}from'ckeditor5/src/utils';export default class x extends _0x166593{constructor(_0xf8621c=[]){super(),this[_0x1714('0x1')]=new Map(),this[_0x1714('0xa')]=new Map(),this[_0x1714('0x23')]=new _0x444f0d(),this[_0x1714('0x23')]['on']('change:isFocused',(_0x28a505,_0x2c005a,_0x44b823)=>{_0x44b823||this[_0x1714('0x1f')](_0x1714('0x1c'));});for(const _0x2edc01 of _0xf8621c)this[_0x1714('0x14')](_0x2edc01);}get[_0x1714('0x1b')](){return this['_focusTracker']['isFocused'];}[_0x1714('0x14')](_0x1beeb2){if(this[_0x1714('0x2')](_0x1beeb2))throw new _0x41789c(_0x1714('0xe'),null);this[_0x1714('0x1')]['set'](_0x1beeb2[_0x1714('0x6')],_0x1beeb2),this[_0x1714('0xa')][_0x1714('0x3')](_0x1beeb2['view'],_0x1beeb2);for(const _0x59504f of _0x1beeb2['focusableElements'])this[_0x1714('0x23')][_0x1714('0x14')](_0x59504f);this[_0x1714('0xf')](_0x1beeb2[_0x1714('0x21')],'add',(_0x32d45e,_0x20310d)=>{this[_0x1714('0x23')]['add'](_0x20310d);}),this[_0x1714('0xf')](_0x1beeb2[_0x1714('0x21')],_0x1714('0x11'),(_0x25a737,_0x5ece58)=>{this[_0x1714('0x23')][_0x1714('0x11')](_0x5ece58);}),this[_0x1714('0xf')](_0x1beeb2[_0x1714('0x4')][_0x1714('0x12')],_0x1714('0xc'),(_0x203591,_0x329d3f,_0x26bb3c)=>{_0x26bb3c&&this[_0x1714('0x1f')](_0x1714('0x22'),_0x1beeb2);}),_0x1beeb2[_0x1714('0x10')]();const _0x3ca0ca=this[_0x1714('0xb')](_0x1beeb2['view']['targetRect']);return super['add'](_0x1beeb2,_0x3ca0ca);}[_0x1714('0x11')](_0x516899){if(!this[_0x1714('0x2')](_0x516899))throw new _0x41789c(_0x1714('0x1d'),null);this['stopListening'](_0x516899[_0x1714('0x4')][_0x1714('0x12')]),this[_0x1714('0x8')](_0x516899[_0x1714('0x21')]);for(const _0x564638 of _0x516899['focusableElements'])this[_0x1714('0x23')][_0x1714('0x11')](_0x564638);return this[_0x1714('0xa')][_0x1714('0x18')](_0x516899[_0x1714('0x4')]),this[_0x1714('0x1')]['delete'](_0x516899[_0x1714('0x6')]),super['remove'](_0x516899);}[_0x1714('0x20')](_0x2c6ba6){return this['_innerViewToAnnotation'][_0x1714('0x1e')](_0x2c6ba6);}[_0x1714('0x1a')](_0x547552){return this['_viewToAnnotation'][_0x1714('0x1e')](_0x547552);}[_0x1714('0x9')](){super[_0x1714('0x13')](),this[_0x1714('0x8')](),this[_0x1714('0x1')][_0x1714('0x13')](),this[_0x1714('0xa')][_0x1714('0x13')](),this[_0x1714('0x23')][_0x1714('0x9')]();}[_0x1714('0x0')](){for(const _0x200285 of this)_0x200285[_0x1714('0x10')]();this[_0x1714('0x16')]();}['_sort'](){const _0x474a54=Array['from'](this)[_0x1714('0x7')]((_0x6332b8,_0x1faa6f)=>v(_0x6332b8[_0x1714('0x4')][_0x1714('0x5')],_0x1faa6f[_0x1714('0x4')][_0x1714('0x5')]));for(let _0x1b9e02=_0x474a54[_0x1714('0xd')]-0x1;_0x1b9e02>0x0;_0x1b9e02--){const _0x12402c=_0x474a54[_0x1b9e02];_0x1b9e02!==this[_0x1714('0x15')](_0x12402c)&&(this['remove'](_0x12402c),this[_0x1714('0x14')](_0x12402c));}}[_0x1714('0xb')](_0x37b593){let _0x346bca=0x0;if(!_0x37b593)return this[_0x1714('0xd')];for(const _0x408ebb of this){const _0x1ae6ff=_0x408ebb[_0x1714('0x4')][_0x1714('0x5')];if(_0x1ae6ff){if(v(_0x37b593,_0x1ae6ff)<0x0)return _0x346bca;_0x346bca++;}}return _0x346bca;}}export function bindAnnotationCollections({source:_0x4e8806,target:_0x4a3d37,filter:_0x39c1bc}){for(const _0x4dd031 of _0x4e8806)_0x39c1bc(_0x4dd031)&&_0x4a3d37[_0x1714('0x14')](_0x4dd031);_0x4a3d37[_0x1714('0xf')](_0x4e8806,_0x1714('0x14'),(_0x19e56e,_0x47d0a3)=>{_0x39c1bc(_0x47d0a3)&&_0x4a3d37[_0x1714('0x14')](_0x47d0a3);}),_0x4a3d37[_0x1714('0xf')](_0x4e8806,_0x1714('0x11'),(_0x53eb13,_0x345d5f)=>{_0x4a3d37[_0x1714('0x2')](_0x345d5f)&&_0x4a3d37[_0x1714('0x11')](_0x345d5f);});}function v(_0x3902ee,_0x345291){if(null===_0x3902ee&&null===_0x345291)return 0x0;if(null===_0x3902ee)return-0x1;if(null===_0x345291)return 0x1;const _0x3310db=_0x3902ee['top']-_0x345291[_0x1714('0x17')];return 0x0==_0x3310db?_0x3902ee['left']-_0x345291[_0x1714('0x19')]:_0x3310db;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33a4=['getByInnerView','listenTo','_deactivateAllAnnotations','collection','_visibleAnnotations','deactivateAll','element','source','destroy','_addActiveAnnotation','Annotations','change:isVisible','add','stopListening','_activateAnnotation','view','isVisible','_bindAnnotationsToVisibleAnnotations','activeAnnotations','refreshPositioning','has','_removeActiveAnnotation','pluginName','refreshVisibility','set','fire','remove'];(function(_0x2d0fe8,_0x33a4fe){const _0x894253=function(_0x1e0a86){while(--_0x1e0a86){_0x2d0fe8['push'](_0x2d0fe8['shift']());}};_0x894253(++_0x33a4fe);}(_0x33a4,0x121));const _0x8942=function(_0x2d0fe8,_0x33a4fe){_0x2d0fe8=_0x2d0fe8-0x0;let _0x894253=_0x33a4[_0x2d0fe8];return _0x894253;};import{ContextPlugin as _0x4be10e}from'ckeditor5/src/core';import _0x2cba37 from'./annotation';import _0x3720ea from'./annotationcollection';import _0x59fc47 from'./view/annotationview';export default class b extends _0x4be10e{static get[_0x8942('0x3')](){return _0x8942('0x12');}constructor(_0x5ab273){super(_0x5ab273),this['collection']=new _0x3720ea(),this['_visibleAnnotations']=new _0x3720ea(),this[_0x8942('0x5')](_0x8942('0x1a'),new Set()),this[_0x8942('0x19')]();}['add'](_0x51c983){this[_0x8942('0xb')][_0x8942('0x14')](_0x51c983);}[_0x8942('0x7')](_0x5e62e9){this['collection']['remove'](_0x5e62e9),_0x5e62e9[_0x8942('0x10')]();}['refreshVisibility'](){for(const _0x276fbd of this[_0x8942('0xb')])_0x276fbd[_0x8942('0x4')]();}[_0x8942('0x0')](){this[_0x8942('0xc')][_0x8942('0x0')]();}[_0x8942('0x8')](_0x4ff32d){return this[_0x8942('0xb')][_0x8942('0x8')](_0x4ff32d);}[_0x8942('0xd')](){this[_0x8942('0x6')](_0x8942('0xa'));}[_0x8942('0x10')](){for(const _0x327878 of this[_0x8942('0xb')])_0x327878[_0x8942('0x10')]();this[_0x8942('0xc')][_0x8942('0x10')](),this[_0x8942('0xb')][_0x8942('0x10')](),super[_0x8942('0x10')]();}['activate'](_0x36a77c){this[_0x8942('0x6')](_0x8942('0x16'),_0x36a77c);}['createAnnotation'](_0x119643){return new _0x2cba37(_0x119643);}['createAnnotationView'](_0x24d8d7,_0x40ad91){return new _0x59fc47(_0x24d8d7,_0x40ad91);}[_0x8942('0x11')](_0x10e5eb){const _0x352884=new Set(this[_0x8942('0x1a')]);_0x352884['add'](_0x10e5eb),this[_0x8942('0x1a')]=_0x352884;}[_0x8942('0x2')](_0x353ca5){const _0x26c5ec=new Set(this[_0x8942('0x1a')]);_0x26c5ec['delete'](_0x353ca5),this[_0x8942('0x1a')]=_0x26c5ec;}[_0x8942('0x19')](){const _0x39467c=this[_0x8942('0xb')],_0x2cb43e=this[_0x8942('0xc')];function _0x42aecd(_0x1ea141){const _0x57aaa5=_0x1ea141[_0x8942('0xf')];_0x57aaa5[_0x8942('0x18')]&&!_0x2cb43e[_0x8942('0x1')](_0x57aaa5)?_0x2cb43e['add'](_0x57aaa5):!_0x57aaa5[_0x8942('0x18')]&&_0x2cb43e[_0x8942('0x1')](_0x57aaa5)&&_0x2cb43e[_0x8942('0x7')](_0x57aaa5),_0x57aaa5[_0x8942('0x17')]['focusTracker'][_0x8942('0x7')](_0x57aaa5[_0x8942('0x17')][_0x8942('0xe')]),_0x57aaa5['view']['focusTracker'][_0x8942('0x14')](_0x57aaa5[_0x8942('0x17')]['element']);}this[_0x8942('0x9')](_0x39467c,_0x8942('0x14'),(_0x168e03,_0x237183)=>{_0x237183[_0x8942('0x18')]&&_0x2cb43e[_0x8942('0x14')](_0x237183),this[_0x8942('0x9')](_0x237183,_0x8942('0x13'),_0x42aecd);}),this[_0x8942('0x9')](_0x39467c,_0x8942('0x7'),(_0x3d5165,_0x4e18f1)=>{_0x2cb43e[_0x8942('0x1')](_0x4e18f1)&&_0x2cb43e[_0x8942('0x7')](_0x4e18f1),this[_0x8942('0x15')](_0x4e18f1,_0x8942('0x13'),_0x42aecd);});}}
23
+ const _0x5375=['isVisible','add','_deactivateAllAnnotations','getByInnerView','destroy','Annotations','element','createAnnotationView','createAnnotation','change:isVisible','_bindAnnotationsToVisibleAnnotations','collection','refreshVisibility','has','activate','view','stopListening','deactivateAll','_visibleAnnotations','listenTo','set','source','remove','focusTracker','activeAnnotations','fire','_addActiveAnnotation'];(function(_0x477e90,_0x53754a){const _0x3ba1d0=function(_0x1b394a){while(--_0x1b394a){_0x477e90['push'](_0x477e90['shift']());}};_0x3ba1d0(++_0x53754a);}(_0x5375,0x190));const _0x3ba1=function(_0x477e90,_0x53754a){_0x477e90=_0x477e90-0x0;let _0x3ba1d0=_0x5375[_0x477e90];return _0x3ba1d0;};import{ContextPlugin as _0x5f07a4}from'ckeditor5/src/core';import _0x3daf1e from'./annotation';import _0x582a28 from'./annotationcollection';import _0x42abdd from'./view/annotationview';export default class b extends _0x5f07a4{static get['pluginName'](){return _0x3ba1('0xa');}constructor(_0x4bdaad){super(_0x4bdaad),this[_0x3ba1('0x10')]=new _0x582a28(),this[_0x3ba1('0x17')]=new _0x582a28(),this[_0x3ba1('0x19')]('activeAnnotations',new Set()),this[_0x3ba1('0xf')]();}[_0x3ba1('0x6')](_0x35b033){this[_0x3ba1('0x10')]['add'](_0x35b033);}[_0x3ba1('0x0')](_0x2f3ac2){this[_0x3ba1('0x10')][_0x3ba1('0x0')](_0x2f3ac2),_0x2f3ac2[_0x3ba1('0x9')]();}['refreshVisibility'](){for(const _0x50065e of this['collection'])_0x50065e[_0x3ba1('0x11')]();}['refreshPositioning'](){this[_0x3ba1('0x17')]['refreshPositioning']();}[_0x3ba1('0x8')](_0x40edd3){return this[_0x3ba1('0x10')]['getByInnerView'](_0x40edd3);}[_0x3ba1('0x16')](){this[_0x3ba1('0x3')](_0x3ba1('0x7'));}['destroy'](){for(const _0x33ca32 of this['collection'])_0x33ca32['destroy']();this[_0x3ba1('0x17')][_0x3ba1('0x9')](),this[_0x3ba1('0x10')][_0x3ba1('0x9')](),super[_0x3ba1('0x9')]();}[_0x3ba1('0x13')](_0x374b29){this['fire']('_activateAnnotation',_0x374b29);}[_0x3ba1('0xd')](_0xd357c0){return new _0x3daf1e(_0xd357c0);}[_0x3ba1('0xc')](_0x1b7273,_0x247f28){return new _0x42abdd(_0x1b7273,_0x247f28);}[_0x3ba1('0x4')](_0x17d431){const _0x3f8bfe=new Set(this[_0x3ba1('0x2')]);_0x3f8bfe[_0x3ba1('0x6')](_0x17d431),this[_0x3ba1('0x2')]=_0x3f8bfe;}['_removeActiveAnnotation'](_0x140b9c){const _0x114921=new Set(this[_0x3ba1('0x2')]);_0x114921['delete'](_0x140b9c),this[_0x3ba1('0x2')]=_0x114921;}[_0x3ba1('0xf')](){const _0x2cd7ba=this[_0x3ba1('0x10')],_0x4249a2=this['_visibleAnnotations'];function _0x854c9(_0x995880){const _0x579171=_0x995880[_0x3ba1('0x1a')];_0x579171['isVisible']&&!_0x4249a2[_0x3ba1('0x12')](_0x579171)?_0x4249a2[_0x3ba1('0x6')](_0x579171):!_0x579171[_0x3ba1('0x5')]&&_0x4249a2[_0x3ba1('0x12')](_0x579171)&&_0x4249a2[_0x3ba1('0x0')](_0x579171),_0x579171[_0x3ba1('0x14')][_0x3ba1('0x1')][_0x3ba1('0x0')](_0x579171[_0x3ba1('0x14')][_0x3ba1('0xb')]),_0x579171['view'][_0x3ba1('0x1')][_0x3ba1('0x6')](_0x579171['view']['element']);}this[_0x3ba1('0x18')](_0x2cd7ba,'add',(_0x4292dd,_0xc29154)=>{_0xc29154[_0x3ba1('0x5')]&&_0x4249a2[_0x3ba1('0x6')](_0xc29154),this[_0x3ba1('0x18')](_0xc29154,_0x3ba1('0xe'),_0x854c9);}),this[_0x3ba1('0x18')](_0x2cd7ba,'remove',(_0x47c785,_0x278414)=>{_0x4249a2['has'](_0x278414)&&_0x4249a2[_0x3ba1('0x0')](_0x278414),this[_0x3ba1('0x15')](_0x278414,_0x3ba1('0xe'),_0x854c9);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e83=['context','_uis','switchTo','activate','setActiveAnnotation','deactivateAll','set','_uisData','filter','_setSelectedAnnotations','collection','deactivate','has','function','detach','push','get','annotationsuis-annotation-mismatch','activeAnnotations','hasActive','destroy','length','change:activeAnnotation','activeUIs','size','delete','find','_assertAnnotationDoesNotBelongToMultipleUIs','register','_addActiveAnnotation','_deactivateAllAnnotations','refilterAnnotations','_visibleAnnotations','attach','pluginName','init','plugins','stopListening','add','type','isActive','AnnotationsUIs','listenTo','annotationsuis-missing-ui'];(function(_0x729cc7,_0x5e83a1){const _0x3a0a00=function(_0x3ebf89){while(--_0x3ebf89){_0x729cc7['push'](_0x729cc7['shift']());}};_0x3a0a00(++_0x5e83a1);}(_0x5e83,0x82));const _0x3a0a=function(_0x729cc7,_0x5e83a1){_0x729cc7=_0x729cc7-0x0;let _0x3a0a00=_0x5e83[_0x729cc7];return _0x3a0a00;};import{ContextPlugin as _0xdbca11}from'ckeditor5/src/core';import{CKEditorError as _0x34d343}from'ckeditor5/src/utils';import _0xff22ef,{bindAnnotationCollections as _0x1e5341}from'./annotationcollection';import _0x21d5a5 from'./annotations';export default class M extends _0xdbca11{static get['requires'](){return[_0x21d5a5];}static get[_0x3a0a('0x24')](){return _0x3a0a('0x2b');}constructor(_0x5d15c7){super(_0x5d15c7),this[_0x3a0a('0x19')]=new Set(),this[_0x3a0a('0x3')]=new Map(),this[_0x3a0a('0x9')]=new Map();}[_0x3a0a('0x25')](){const _0x4449f4=this[_0x3a0a('0x2')][_0x3a0a('0x26')][_0x3a0a('0x12')](_0x21d5a5);this[_0x3a0a('0x0')](_0x4449f4,'_activateAnnotation',(_0x17f349,_0x26d9d9)=>{for(const _0x1c20a5 of this['activeUIs']){const _0x5f34f6=this['_uis']['get'](_0x1c20a5);(0x0,this['_uisData'][_0x3a0a('0x12')](_0x1c20a5)['filter'])(_0x26d9d9)&&_0x5f34f6['setActiveAnnotation'](_0x26d9d9);}}),this[_0x3a0a('0x0')](_0x4449f4,_0x3a0a('0x20'),()=>{for(const _0x4c3fe5 of this[_0x3a0a('0x19')]){this[_0x3a0a('0x3')][_0x3a0a('0x12')](_0x4c3fe5)[_0x3a0a('0x6')](null);}}),this[_0x3a0a('0x0')](_0x4449f4[_0x3a0a('0x22')],_0x3a0a('0x28'),(_0x50e3e,_0x12c937)=>{this[_0x3a0a('0x1d')](_0x12c937);});}[_0x3a0a('0x15')](){return this[_0x3a0a('0x19')][_0x3a0a('0x1a')]>0x0;}['isActive'](_0x521ae7){return this[_0x3a0a('0x19')][_0x3a0a('0xe')](_0x521ae7);}[_0x3a0a('0x5')](_0x53bb35,_0xa43070=()=>!0x0){const _0x5aae6a=this[_0x3a0a('0x2')]['plugins'][_0x3a0a('0x12')](_0x21d5a5);if(!this[_0x3a0a('0x3')][_0x3a0a('0xe')](_0x53bb35))throw new _0x34d343(_0x3a0a('0x1'),this,{'uiName':_0x53bb35});this[_0x3a0a('0x2a')](_0x53bb35)&&this[_0x3a0a('0xd')](_0x53bb35),this[_0x3a0a('0x19')]['add'](_0x53bb35);const _0x368657=new _0xff22ef(),_0x8388e1=_0x5aae6a['_visibleAnnotations'];_0x1e5341({'source':_0x8388e1,'target':_0x368657,'filter':_0xa43070}),this['_uisData'][_0x3a0a('0x8')](_0x53bb35,{'collection':_0x368657,'filter':_0xa43070});const _0x3a4dad=this[_0x3a0a('0x3')][_0x3a0a('0x12')](_0x53bb35);_0x3a4dad[_0x3a0a('0x23')](_0x368657),this[_0x3a0a('0x0')](_0x3a4dad,_0x3a0a('0x18'),(_0x6b9387,_0x8e8d25,_0x309e3e,_0x54991c)=>{_0x54991c&&_0x5aae6a['_removeActiveAnnotation'](_0x54991c),_0x309e3e&&_0x5aae6a[_0x3a0a('0x1f')](_0x309e3e);});}[_0x3a0a('0xd')](_0x575a91){if(this[_0x3a0a('0x19')][_0x3a0a('0x1b')](_0x575a91),!this['_uis']['has'](_0x575a91))throw new _0x34d343(_0x3a0a('0x1'),this,{'uiName':_0x575a91});const _0x564b86=this[_0x3a0a('0x3')][_0x3a0a('0x12')](_0x575a91);_0x564b86[_0x3a0a('0x10')](),this[_0x3a0a('0x27')](_0x564b86),this[_0x3a0a('0x9')][_0x3a0a('0x12')](_0x575a91)[_0x3a0a('0xc')][_0x3a0a('0x16')](),this[_0x3a0a('0x9')]['delete'](_0x575a91);}[_0x3a0a('0x4')](_0x16de1b){if(!this['_uis'][_0x3a0a('0xe')](_0x16de1b))throw new _0x34d343(_0x3a0a('0x1'),this,{'uiName':_0x16de1b});const _0x4af9f4=this['context']['plugins'][_0x3a0a('0x12')](_0x21d5a5),_0x2533dc=Array['from'](_0x4af9f4[_0x3a0a('0x14')])[0x0]||null;this[_0x3a0a('0x7')](),this[_0x3a0a('0x5')](_0x16de1b);const _0x4aed53=this[_0x3a0a('0x3')]['get'](_0x16de1b);_0x4aed53[_0x3a0a('0x6')](_0x2533dc),_0x4aed53[_0x3a0a('0xb')]&&_0x2533dc&&_0x4aed53['_setSelectedAnnotations']([_0x2533dc]);}[_0x3a0a('0x7')](){for(const _0x5b13fe of this[_0x3a0a('0x19')])this[_0x3a0a('0xd')](_0x5b13fe);}[_0x3a0a('0x1e')](_0x26a184,_0x321ba7){if(this[_0x3a0a('0x3')]['has'](_0x26a184))throw new _0x34d343('annotationsuis-register-already-registered');if('function'!=typeof _0x321ba7[_0x3a0a('0x23')]||_0x3a0a('0xf')!=typeof _0x321ba7[_0x3a0a('0x10')]||_0x3a0a('0xf')!=typeof _0x321ba7[_0x3a0a('0x6')])throw new _0x34d343('annotationsuis-register-invalid-interface',null);this[_0x3a0a('0x3')]['set'](_0x26a184,_0x321ba7);}[_0x3a0a('0x21')](){const _0x40f6ef=this[_0x3a0a('0x2')][_0x3a0a('0x26')][_0x3a0a('0x12')](_0x21d5a5)[_0x3a0a('0xc')],_0xd94f56=new Map(),_0x543086=Array['from'](this['activeUIs']);for(const _0x2019c2 of this['activeUIs']){const _0x29185d=this['_uisData']['get'](_0x2019c2)[_0x3a0a('0xc')];for(const _0x161085 of _0x29185d)_0xd94f56['set'](_0x161085,_0x2019c2);}for(const _0x2f3e12 of _0x40f6ef){const _0x2488e8=_0xd94f56[_0x3a0a('0x12')](_0x2f3e12);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2f3e12);const _0x1321a2=_0x543086[_0x3a0a('0x1c')](_0x56626d=>this[_0x3a0a('0x9')][_0x3a0a('0x12')](_0x56626d)[_0x3a0a('0xa')](_0x2f3e12));_0x2488e8!==_0x1321a2&&(_0x2488e8&&this['_uisData'][_0x3a0a('0x12')](_0x2488e8)[_0x3a0a('0xc')]['remove'](_0x2f3e12),_0x1321a2&&this[_0x3a0a('0x9')][_0x3a0a('0x12')](_0x1321a2)[_0x3a0a('0xc')][_0x3a0a('0x28')](_0x2f3e12));}}[_0x3a0a('0x16')](){this['deactivateAll'](),super[_0x3a0a('0x16')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x12a964){const _0x1c2099=[];for(const _0x1b22ed of this[_0x3a0a('0x19')]){(0x0,this[_0x3a0a('0x9')][_0x3a0a('0x12')](_0x1b22ed)['filter'])(_0x12a964)&&_0x1c2099[_0x3a0a('0x11')](_0x1b22ed);}if(_0x1c2099[_0x3a0a('0x17')]>0x1)throw new _0x34d343(_0x3a0a('0x13'),null,{'matchedUIs':_0x1c2099,'annotationType':_0x12a964[_0x3a0a('0x29')]});}}
23
+ const _0x57ce=['filter','activeUIs','_setSelectedAnnotations','activeAnnotations','_visibleAnnotations','_activateAnnotation','has','attach','function','_removeActiveAnnotation','setActiveAnnotation','listenTo','delete','_deactivateAllAnnotations','destroy','set','change:activeAnnotation','refilterAnnotations','deactivate','switchTo','requires','pluginName','hasActive','isActive','collection','annotationsuis-register-invalid-interface','_addActiveAnnotation','get','activate','_assertAnnotationDoesNotBelongToMultipleUIs','from','context','type','_uisData','length','annotationsuis-register-already-registered','deactivateAll','push','_uis','annotationsuis-annotation-mismatch','plugins','add','size'];(function(_0x8020a6,_0x57ce48){const _0x328025=function(_0xfb5e2f){while(--_0xfb5e2f){_0x8020a6['push'](_0x8020a6['shift']());}};_0x328025(++_0x57ce48);}(_0x57ce,0x85));const _0x3280=function(_0x8020a6,_0x57ce48){_0x8020a6=_0x8020a6-0x0;let _0x328025=_0x57ce[_0x8020a6];return _0x328025;};import{ContextPlugin as _0x344675}from'ckeditor5/src/core';import{CKEditorError as _0x3d9f78}from'ckeditor5/src/utils';import _0x4a7646,{bindAnnotationCollections as _0x3f1d6e}from'./annotationcollection';import _0x3e6c40 from'./annotations';export default class M extends _0x344675{static get[_0x3280('0x10')](){return[_0x3e6c40];}static get[_0x3280('0x11')](){return'AnnotationsUIs';}constructor(_0x925e66){super(_0x925e66),this[_0x3280('0x28')]=new Set(),this[_0x3280('0x22')]=new Map(),this[_0x3280('0x1d')]=new Map();}['init'](){const _0x32c3f3=this['context']['plugins'][_0x3280('0x17')](_0x3e6c40);this[_0x3280('0x7')](_0x32c3f3,_0x3280('0x1'),(_0x38ba7f,_0x3d1794)=>{for(const _0x2745c6 of this['activeUIs']){const _0x540eff=this['_uis'][_0x3280('0x17')](_0x2745c6);(0x0,this[_0x3280('0x1d')][_0x3280('0x17')](_0x2745c6)['filter'])(_0x3d1794)&&_0x540eff[_0x3280('0x6')](_0x3d1794);}}),this[_0x3280('0x7')](_0x32c3f3,_0x3280('0x9'),()=>{for(const _0x5b9de0 of this[_0x3280('0x28')]){this[_0x3280('0x22')]['get'](_0x5b9de0)[_0x3280('0x6')](null);}}),this[_0x3280('0x7')](_0x32c3f3[_0x3280('0x0')],'add',(_0x4a4a90,_0x3dde7b)=>{this[_0x3280('0x19')](_0x3dde7b);});}[_0x3280('0x12')](){return this[_0x3280('0x28')][_0x3280('0x26')]>0x0;}[_0x3280('0x13')](_0xe59c2a){return this['activeUIs']['has'](_0xe59c2a);}[_0x3280('0x18')](_0x57e85d,_0x43babc=()=>!0x0){const _0x29143d=this['context']['plugins'][_0x3280('0x17')](_0x3e6c40);if(!this[_0x3280('0x22')]['has'](_0x57e85d))throw new _0x3d9f78('annotationsuis-missing-ui',this,{'uiName':_0x57e85d});this['isActive'](_0x57e85d)&&this[_0x3280('0xe')](_0x57e85d),this[_0x3280('0x28')][_0x3280('0x25')](_0x57e85d);const _0x4f8b21=new _0x4a7646(),_0x52f37e=_0x29143d[_0x3280('0x0')];_0x3f1d6e({'source':_0x52f37e,'target':_0x4f8b21,'filter':_0x43babc}),this[_0x3280('0x1d')][_0x3280('0xb')](_0x57e85d,{'collection':_0x4f8b21,'filter':_0x43babc});const _0x4b38e8=this[_0x3280('0x22')][_0x3280('0x17')](_0x57e85d);_0x4b38e8[_0x3280('0x3')](_0x4f8b21),this[_0x3280('0x7')](_0x4b38e8,_0x3280('0xc'),(_0x42518f,_0x82bdc4,_0x404205,_0x49ba04)=>{_0x49ba04&&_0x29143d[_0x3280('0x5')](_0x49ba04),_0x404205&&_0x29143d[_0x3280('0x16')](_0x404205);});}[_0x3280('0xe')](_0x58293a){if(this['activeUIs'][_0x3280('0x8')](_0x58293a),!this[_0x3280('0x22')][_0x3280('0x2')](_0x58293a))throw new _0x3d9f78('annotationsuis-missing-ui',this,{'uiName':_0x58293a});const _0x2058a1=this[_0x3280('0x22')][_0x3280('0x17')](_0x58293a);_0x2058a1['detach'](),this['stopListening'](_0x2058a1),this[_0x3280('0x1d')][_0x3280('0x17')](_0x58293a)['collection']['destroy'](),this['_uisData'][_0x3280('0x8')](_0x58293a);}[_0x3280('0xf')](_0x25da1a){if(!this[_0x3280('0x22')][_0x3280('0x2')](_0x25da1a))throw new _0x3d9f78('annotationsuis-missing-ui',this,{'uiName':_0x25da1a});const _0x5b8399=this[_0x3280('0x1b')][_0x3280('0x24')][_0x3280('0x17')](_0x3e6c40),_0x586e90=Array[_0x3280('0x1a')](_0x5b8399[_0x3280('0x2a')])[0x0]||null;this[_0x3280('0x20')](),this['activate'](_0x25da1a);const _0x5a3467=this[_0x3280('0x22')][_0x3280('0x17')](_0x25da1a);_0x5a3467[_0x3280('0x6')](_0x586e90),_0x5a3467[_0x3280('0x29')]&&_0x586e90&&_0x5a3467[_0x3280('0x29')]([_0x586e90]);}['deactivateAll'](){for(const _0x512bf5 of this['activeUIs'])this['deactivate'](_0x512bf5);}['register'](_0xc7c731,_0x532bae){if(this[_0x3280('0x22')][_0x3280('0x2')](_0xc7c731))throw new _0x3d9f78(_0x3280('0x1f'));if(_0x3280('0x4')!=typeof _0x532bae[_0x3280('0x3')]||_0x3280('0x4')!=typeof _0x532bae['detach']||_0x3280('0x4')!=typeof _0x532bae['setActiveAnnotation'])throw new _0x3d9f78(_0x3280('0x15'),null);this[_0x3280('0x22')]['set'](_0xc7c731,_0x532bae);}[_0x3280('0xd')](){const _0x36fa7b=this[_0x3280('0x1b')][_0x3280('0x24')][_0x3280('0x17')](_0x3e6c40)[_0x3280('0x14')],_0x42ae06=new Map(),_0xde1ad3=Array[_0x3280('0x1a')](this['activeUIs']);for(const _0xd041d0 of this[_0x3280('0x28')]){const _0x3161e4=this['_uisData'][_0x3280('0x17')](_0xd041d0)[_0x3280('0x14')];for(const _0x1e140b of _0x3161e4)_0x42ae06[_0x3280('0xb')](_0x1e140b,_0xd041d0);}for(const _0xc4a829 of _0x36fa7b){const _0x1c3a83=_0x42ae06[_0x3280('0x17')](_0xc4a829);this[_0x3280('0x19')](_0xc4a829);const _0x31bf6b=_0xde1ad3['find'](_0x4d9481=>this[_0x3280('0x1d')][_0x3280('0x17')](_0x4d9481)[_0x3280('0x27')](_0xc4a829));_0x1c3a83!==_0x31bf6b&&(_0x1c3a83&&this['_uisData']['get'](_0x1c3a83)[_0x3280('0x14')]['remove'](_0xc4a829),_0x31bf6b&&this[_0x3280('0x1d')][_0x3280('0x17')](_0x31bf6b)[_0x3280('0x14')][_0x3280('0x25')](_0xc4a829));}}['destroy'](){this[_0x3280('0x20')](),super[_0x3280('0xa')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xee313){const _0x1b6ed8=[];for(const _0x573a97 of this[_0x3280('0x28')]){(0x0,this[_0x3280('0x1d')][_0x3280('0x17')](_0x573a97)[_0x3280('0x27')])(_0xee313)&&_0x1b6ed8[_0x3280('0x21')](_0x573a97);}if(_0x1b6ed8[_0x3280('0x1e')]>0x1)throw new _0x3d9f78(_0x3280('0x23'),null,{'matchedUIs':_0x1b6ed8,'annotationType':_0xee313[_0x3280('0x1c')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2225=['refreshSelectedViews','focusTracker','editor','selection','getOrderedSelectedAnnotations','from','registerAnnotation','uiUpdate','_editorAnnotations','pluginName','init','change:isFocused','isEqual','sort','range','annotation','_dataCollectors','set','has','remove','_editorAnnotationsData','hasDomSelection','element','containsRange','change:range','getByInnerView','listenTo','EditorAnnotations','isCollapsed','add','delete','function','view','editing','refresh','directChange','document','fire','model','innerView','update','blur','getRanges','isReadOnly','cancel','get'];(function(_0x582f2e,_0x2225a5){const _0x3a011b=function(_0x1a8ffd){while(--_0x1a8ffd){_0x582f2e['push'](_0x582f2e['shift']());}};_0x3a011b(++_0x2225a5);}(_0x2225,0x1d6));const _0x3a01=function(_0x582f2e,_0x2225a5){_0x582f2e=_0x582f2e-0x0;let _0x3a011b=_0x2225[_0x582f2e];return _0x3a011b;};import{Plugin as _0x35e6e7}from'ckeditor5/src/core';import{CKEditorError as _0x285284}from'ckeditor5/src/utils';import{debounce as _0x2698b8}from'lodash-es';import _0x195335 from'./annotations';export default class k extends _0x35e6e7{static get['requires'](){return[_0x195335];}static get[_0x3a01('0x2d')](){return _0x3a01('0x11');}constructor(_0x491261){super(_0x491261),this[_0x3a01('0x6')]=new Set(),this[_0x3a01('0x2c')]=new Set();}[_0x3a01('0x0')](){const _0x2df00e=this[_0x3a01('0x26')],_0x56e42=_0x2df00e[_0x3a01('0x1c')][_0x3a01('0x1a')][_0x3a01('0x27')],_0x39c718=_0x2698b8(()=>this[_0x3a01('0x24')](),0xa);_0x56e42['on'](_0x3a01('0xe'),(_0x18affe,_0x3f5974)=>{_0x3f5974[_0x3a01('0x19')]&&(_0x39c718[_0x3a01('0x22')](),this[_0x3a01('0x24')]());}),this[_0x3a01('0x10')](_0x2df00e[_0x3a01('0x17')][_0x3a01('0x16')][_0x3a01('0x1a')],_0x3a01('0x1'),(_0x45538a,_0x396056,_0x4feca8)=>{_0x4feca8&&_0x39c718();}),this[_0x3a01('0x10')](_0x2df00e['ui'][_0x3a01('0x25')],_0x3a01('0x1'),(_0x373c79,_0x3013a5,_0x169f1f)=>{_0x169f1f||_0x2df00e[_0x3a01('0x21')]||this[_0x3a01('0x1b')](_0x3a01('0x1f'),{'isAnnotationTracked':_0x1a1e60=>this['_editorAnnotationsData'][_0x3a01('0x8')](_0x1a1e60[_0x3a01('0x1d')])});}),this[_0x3a01('0x10')](this[_0x3a01('0x26')]['ui'],_0x3a01('0x1e'),()=>this['fire'](_0x3a01('0x2b')));}[_0x3a01('0x2a')](_0x22aa27){if(this['_editorAnnotations'][_0x3a01('0x8')](_0x22aa27['view']))return;this['_editorAnnotations'][_0x3a01('0x13')](_0x22aa27['view']),this[_0x3a01('0x26')]['ui'][_0x3a01('0x25')][_0x3a01('0x13')](_0x22aa27[_0x3a01('0x16')]['element']);const _0x2410e4=this[_0x3a01('0x26')]['plugins'][_0x3a01('0x23')](_0x195335);this[_0x3a01('0x10')](_0x2410e4['collection'],_0x3a01('0x9'),(_0x265786,_0x1de568)=>{this[_0x3a01('0x26')]['ui']['focusTracker'][_0x3a01('0x9')](_0x1de568[_0x3a01('0x16')][_0x3a01('0xc')]),this[_0x3a01('0x2c')][_0x3a01('0x14')](_0x1de568[_0x3a01('0x16')]);});}['hasDomSelection'](){return this['editor'][_0x3a01('0x17')]['view'][_0x3a01('0xb')];}['addSourceCollector'](_0x3af223){if(_0x3a01('0x15')!=typeof _0x3af223)throw new _0x285284('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x3a01('0x13')](_0x3af223);}[_0x3a01('0x24')](){this[_0x3a01('0x1b')](_0x3a01('0x18'));}[_0x3a01('0x28')]({activeAnnotation:_0xd0b013,annotations:_0x40ebec}){const _0x5da62b=[],_0x2a19a8=this[_0x3a01('0x26')]['model']['document'][_0x3a01('0x27')],_0x3e2c0d=Array[_0x3a01('0x29')](_0x2a19a8[_0x3a01('0x20')]());for(const [_0x28dece,_0x2c5247]of this[_0x3a01('0xa')]){const _0x528cb3=_0x120343(_0x2c5247),_0x5e123a=_0x40ebec[_0x3a01('0xf')](_0x28dece);_0x528cb3&&_0x5e123a&&_0x5da62b['push']({'annotation':_0x5e123a,'range':_0x528cb3});}function _0x120343(_0x3ebe5c){for(const _0xcb712f of _0x3ebe5c)for(const _0xa774de of _0x3e2c0d)if(_0xcb712f[_0x3a01('0xd')](_0xa774de,!_0x2a19a8[_0x3a01('0x12')]))return _0xcb712f;return null;}return _0x5da62b[_0x3a01('0x3')]((_0x4dceee,_0xf96cd0)=>{const _0xb5ae29=_0x4dceee[_0x3a01('0x4')],_0x3d4681=_0xf96cd0[_0x3a01('0x4')];if(!_0xb5ae29[_0x3a01('0x2')](_0x3d4681)){if(_0xb5ae29[_0x3a01('0xd')](_0x3d4681,!0x0))return 0x1;if(_0x3d4681[_0x3a01('0xd')](_0xb5ae29,!0x0))return-0x1;}return _0x4dceee[_0x3a01('0x5')]==_0xd0b013?-0x1:_0xf96cd0[_0x3a01('0x5')]==_0xd0b013?0x1:0x0;})['map'](_0x9d7745=>_0x9d7745[_0x3a01('0x5')]);}get[_0x3a01('0xa')](){const _0x48a2f6=new Map();for(const _0x5e7b7c of Array['from'](this[_0x3a01('0x6')]))for(const [_0x4f8126,_0x535f03]of _0x5e7b7c())_0x48a2f6[_0x3a01('0x7')](_0x4f8126,_0x535f03);return _0x48a2f6;}}
23
+ const _0x5ae2=['function','directChange','init','element','requires','add','EditorAnnotations','cancel','isReadOnly','focusTracker','get','refreshSelectedViews','isCollapsed','hasDomSelection','refresh','range','map','_editorAnnotations','isEqual','blur','from','_editorAnnotationsData','annotation','getOrderedSelectedAnnotations','uiUpdate','selection','innerView','push','plugins','containsRange','editing','change:range','model','collection','fire','_dataCollectors','remove','registerAnnotation','view','has','change:isFocused','pluginName','document','listenTo','update','editor'];(function(_0xa98a4d,_0x5ae279){const _0x2efd57=function(_0x1450dc){while(--_0x1450dc){_0xa98a4d['push'](_0xa98a4d['shift']());}};_0x2efd57(++_0x5ae279);}(_0x5ae2,0x90));const _0x2efd=function(_0xa98a4d,_0x5ae279){_0xa98a4d=_0xa98a4d-0x0;let _0x2efd57=_0x5ae2[_0xa98a4d];return _0x2efd57;};import{Plugin as _0x5bab27}from'ckeditor5/src/core';import{CKEditorError as _0x2e5780}from'ckeditor5/src/utils';import{debounce as _0x4c261d}from'lodash-es';import _0x518cbc from'./annotations';export default class k extends _0x5bab27{static get[_0x2efd('0x2c')](){return[_0x518cbc];}static get[_0x2efd('0x23')](){return _0x2efd('0x0');}constructor(_0x5a39b2){super(_0x5a39b2),this[_0x2efd('0x1d')]=new Set(),this[_0x2efd('0xb')]=new Set();}[_0x2efd('0x2a')](){const _0x5c8255=this['editor'],_0x4a1a7b=_0x5c8255[_0x2efd('0x1a')][_0x2efd('0x24')][_0x2efd('0x13')],_0x1d77ea=_0x4c261d(()=>this['refreshSelectedViews'](),0xa);_0x4a1a7b['on'](_0x2efd('0x19'),(_0x292352,_0x1ffe0b)=>{_0x1ffe0b[_0x2efd('0x29')]&&(_0x1d77ea[_0x2efd('0x1')](),this[_0x2efd('0x5')]());}),this[_0x2efd('0x25')](_0x5c8255[_0x2efd('0x18')]['view'][_0x2efd('0x24')],_0x2efd('0x22'),(_0x49a9a8,_0x2b588d,_0x58bafc)=>{_0x58bafc&&_0x1d77ea();}),this[_0x2efd('0x25')](_0x5c8255['ui']['focusTracker'],_0x2efd('0x22'),(_0x51544e,_0x24c11c,_0x4eca29)=>{_0x4eca29||_0x5c8255[_0x2efd('0x2')]||this[_0x2efd('0x1c')](_0x2efd('0xd'),{'isAnnotationTracked':_0x3800cf=>this[_0x2efd('0xf')][_0x2efd('0x21')](_0x3800cf[_0x2efd('0x14')])});}),this['listenTo'](this[_0x2efd('0x27')]['ui'],_0x2efd('0x26'),()=>this[_0x2efd('0x1c')](_0x2efd('0x12')));}[_0x2efd('0x1f')](_0x95b28a){if(this[_0x2efd('0xb')][_0x2efd('0x21')](_0x95b28a[_0x2efd('0x20')]))return;this[_0x2efd('0xb')]['add'](_0x95b28a[_0x2efd('0x20')]),this[_0x2efd('0x27')]['ui'][_0x2efd('0x3')][_0x2efd('0x2d')](_0x95b28a[_0x2efd('0x20')][_0x2efd('0x2b')]);const _0x1065fd=this[_0x2efd('0x27')][_0x2efd('0x16')][_0x2efd('0x4')](_0x518cbc);this['listenTo'](_0x1065fd[_0x2efd('0x1b')],'remove',(_0x33d0b5,_0x4f19c9)=>{this[_0x2efd('0x27')]['ui'][_0x2efd('0x3')][_0x2efd('0x1e')](_0x4f19c9[_0x2efd('0x20')][_0x2efd('0x2b')]),this[_0x2efd('0xb')]['delete'](_0x4f19c9[_0x2efd('0x20')]);});}[_0x2efd('0x7')](){return this[_0x2efd('0x27')]['editing']['view'][_0x2efd('0x7')];}['addSourceCollector'](_0x1a590b){if(_0x2efd('0x28')!=typeof _0x1a590b)throw new _0x2e5780('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x2efd('0x2d')](_0x1a590b);}[_0x2efd('0x5')](){this[_0x2efd('0x1c')](_0x2efd('0x8'));}[_0x2efd('0x11')]({activeAnnotation:_0x451ad0,annotations:_0x4bd892}){const _0x5adec1=[],_0x5c7512=this[_0x2efd('0x27')][_0x2efd('0x1a')][_0x2efd('0x24')][_0x2efd('0x13')],_0x136509=Array[_0x2efd('0xe')](_0x5c7512['getRanges']());for(const [_0x2d8240,_0x1dec13]of this[_0x2efd('0xf')]){const _0x1ae640=_0xeba5a(_0x1dec13),_0x104e95=_0x4bd892['getByInnerView'](_0x2d8240);_0x1ae640&&_0x104e95&&_0x5adec1[_0x2efd('0x15')]({'annotation':_0x104e95,'range':_0x1ae640});}function _0xeba5a(_0x726815){for(const _0x47b6fe of _0x726815)for(const _0x4bf63a of _0x136509)if(_0x47b6fe[_0x2efd('0x17')](_0x4bf63a,!_0x5c7512[_0x2efd('0x6')]))return _0x47b6fe;return null;}return _0x5adec1['sort']((_0x66230,_0x3a47a2)=>{const _0x284d2e=_0x66230['range'],_0x550378=_0x3a47a2[_0x2efd('0x9')];if(!_0x284d2e[_0x2efd('0xc')](_0x550378)){if(_0x284d2e[_0x2efd('0x17')](_0x550378,!0x0))return 0x1;if(_0x550378[_0x2efd('0x17')](_0x284d2e,!0x0))return-0x1;}return _0x66230[_0x2efd('0x10')]==_0x451ad0?-0x1:_0x3a47a2['annotation']==_0x451ad0?0x1:0x0;})[_0x2efd('0xa')](_0x4a5677=>_0x4a5677[_0x2efd('0x10')]);}get[_0x2efd('0xf')](){const _0x414daf=new Map();for(const _0x1badb8 of Array[_0x2efd('0xe')](this['_dataCollectors']))for(const [_0x302d3a,_0x1018ee]of _0x1badb8())_0x414daf['set'](_0x302d3a,_0x1018ee);return _0x414daf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x491d=['listenTo','hasActive','inlineannotations-detach-not-attached','_removeAnnotationFromBalloon','getFirstRange','delete','context','left','from','_setSelectedAnnotations','width','editor','switchTo','viewRangeToDom','_manuallyClosed','inlineannotations-not-allowed-with-context','view','blur','map','_getBalloonTargetForAnnotation','addObserver','_balloon','getByView','document','hasView','has','set','push','attach','target','getOrderedSelectedAnnotations','collapse','isFocused','bottom','remove','activeAnnotation','targetRect','annotations','top','add','_forceRefresh','stopListening','isAttached','_addedAnnotations','detach','fromRect','mousedown','updatePosition','register','every','editing','_selectedAnnotations','clear','right','change:height','plugins','inline','focus','visibleView','requires','afterInit','_addAnnotationToBalloon','setActiveAnnotation','init','change:isFocused','get','focusTracker','showStack','Esc','includes','inlineannotations-attach-already-attached','length','getBoundingClientRect','_closeAnnotation','update','isActive'];(function(_0x203a10,_0x491d68){const _0x24bab9=function(_0x5c8faa){while(--_0x5c8faa){_0x203a10['push'](_0x203a10['shift']());}};_0x24bab9(++_0x491d68);}(_0x491d,0xeb));const _0x24ba=function(_0x203a10,_0x491d68){_0x203a10=_0x203a10-0x0;let _0x24bab9=_0x491d[_0x203a10];return _0x24bab9;};import{Plugin as _0x2a0fee}from'ckeditor5/src/core';import _0x10d057 from'./annotationsuis';import _0x1a4b3f from'./editorannotations';import{ContextualBalloon as _0x466cc2}from'ckeditor5/src/ui';import{MouseObserver as _0x4c3e3d}from'ckeditor5/src/engine';import{CKEditorError as _0xf1f35e,Rect as _0x1751cb}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x2a0fee{static get[_0x24ba('0x34')](){return[_0x1a4b3f,_0x466cc2,_0x10d057];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0xb9936d){super(_0xb9936d),_0xb9936d[_0x24ba('0x2b')][_0x24ba('0x9')][_0x24ba('0xd')](_0x4c3e3d),this[_0x24ba('0x23')]=!0x1,this[_0x24ba('0x13')](_0x24ba('0x1c'),null),this[_0x24ba('0x1e')]=null,this['_manuallyClosed']=new Set(),this[_0x24ba('0xe')]=_0xb9936d[_0x24ba('0x30')][_0x24ba('0x3a')](_0x466cc2),this[_0x24ba('0x24')]=new Set(),this[_0x24ba('0x2c')]=[],this[_0x24ba('0x21')]=!0x1;}[_0x24ba('0x38')](){const _0x48c468=this['editor']['plugins'][_0x24ba('0x3a')](_0x10d057);_0x48c468[_0x24ba('0x4b')]===this[_0x24ba('0x4')]&&(_0x48c468[_0x24ba('0x29')](_0x24ba('0x31'),this),this[_0x24ba('0x4')]['keystrokes'][_0x24ba('0x13')](_0x24ba('0x3d'),(_0x1f7d87,_0x36797e)=>{const _0x3e0779=this[_0x24ba('0xe')];if(this[_0x24ba('0x23')]&&_0x3e0779[_0x24ba('0x33')]){const _0x41a195=this[_0x24ba('0x1e')]['getByView'](_0x3e0779[_0x24ba('0x33')]);_0x41a195&&this[_0x24ba('0x42')](_0x41a195),_0x36797e();}}));}[_0x24ba('0x35')](){const _0x54ed23=this[_0x24ba('0x4')][_0x24ba('0x30')][_0x24ba('0x3a')](_0x10d057);_0x54ed23[_0x24ba('0x4b')]===this[_0x24ba('0x4')]&&(_0x54ed23[_0x24ba('0x46')]()||_0x54ed23[_0x24ba('0x5')]('inline'));}[_0x24ba('0x37')](_0x30ff00){_0x30ff00!==this[_0x24ba('0x1c')]&&(this[_0x24ba('0x1c')]&&(this[_0x24ba('0x1c')][_0x24ba('0x44')]=!0x1),_0x30ff00&&this[_0x24ba('0x4')]['ui'][_0x24ba('0x3b')][_0x24ba('0x19')]&&(this[_0x24ba('0x1e')][_0x24ba('0x12')](_0x30ff00)&&this[_0x24ba('0x36')](_0x30ff00,!0x0),_0x30ff00[_0x24ba('0x44')]=!0x0),_0x30ff00||this[_0x24ba('0x2')]([]),this['activeAnnotation']=_0x30ff00);}[_0x24ba('0x15')](_0x1b3e06){this[_0x24ba('0x1e')]=_0x1b3e06;const _0x4eef29=this[_0x24ba('0x4')][_0x24ba('0x30')][_0x24ba('0x3a')](_0x10d057),_0xcaf3e3=this[_0x24ba('0xe')];if(this['isAttached'])throw new _0xf1f35e(_0x24ba('0x3f'),this);if(_0x4eef29[_0x24ba('0x4b')]!==this[_0x24ba('0x4')])throw new _0xf1f35e(_0x24ba('0x8'),this);const _0x3a5021=this[_0x24ba('0x4')][_0x24ba('0x30')]['get'](_0x1a4b3f);this[_0x24ba('0x45')](_0x3a5021,'refresh',()=>{const _0x442554=_0x3a5021[_0x24ba('0x17')]({'annotations':this[_0x24ba('0x1e')],'activeAnnotation':this[_0x24ba('0x1c')]});var _0x590377,_0x262daf;!this[_0x24ba('0x21')]&&(_0x590377=_0x442554,_0x262daf=this['_selectedAnnotations'],_0x590377[_0x24ba('0x40')]===_0x262daf[_0x24ba('0x40')]&&_0x590377[_0x24ba('0x2a')](_0x14b8eb=>_0x262daf[_0x24ba('0x3e')](_0x14b8eb)))||(this[_0x24ba('0x21')]=!0x1,this[_0x24ba('0x2')](_0x442554),this['setActiveAnnotation'](_0x442554[0x0]||null));}),this[_0x24ba('0x45')](_0x3a5021,_0x24ba('0xa'),(_0x500cfe,{isAnnotationTracked:_0x58c467})=>{this[_0x24ba('0x1c')]&&_0x58c467(this[_0x24ba('0x1c')])&&(this[_0x24ba('0x2')]([]),this[_0x24ba('0x37')](null));}),this['listenTo'](this[_0x24ba('0x4')]['ui']['focusTracker'],_0x24ba('0x39'),(_0xe1f3e2,_0x36bb46,_0x3e9fda)=>{_0x3e9fda||this[_0x24ba('0x37')](null);}),this[_0x24ba('0x45')](_0x1b3e06,_0x24ba('0x1b'),(_0x3c34c1,_0x306352)=>{this['_removeAnnotationFromBalloon'](_0x306352),_0x306352===this[_0x24ba('0x1c')]&&this[_0x24ba('0x37')](null);}),this[_0x24ba('0x45')](_0xcaf3e3,'change:visibleView',(_0x3df3af,_0x319d7e,_0x2f5f4f,_0x5541ca)=>{_0x5541ca&&this[_0x24ba('0x22')](_0x5541ca);const _0x9cad3d=_0x1b3e06['getByView'](_0x2f5f4f);_0x2f5f4f&&_0x9cad3d&&(this['listenTo'](_0x2f5f4f,_0x24ba('0x2f'),()=>{_0xcaf3e3[_0x24ba('0x28')]();}),this[_0x24ba('0x45')](_0x2f5f4f,'Esc',()=>{this[_0x24ba('0x42')](_0x9cad3d),this['editor']['editing'][_0x24ba('0x9')][_0x24ba('0x32')]();}),this['activeAnnotation']!==_0x9cad3d&&this['setActiveAnnotation'](_0x9cad3d));}),this[_0x24ba('0x45')](this[_0x24ba('0x4')]['ui'],_0x24ba('0x43'),()=>{_0xcaf3e3[_0x24ba('0x33')]&&(_0x1b3e06[_0x24ba('0xf')](_0xcaf3e3[_0x24ba('0x33')])&&_0xcaf3e3['updatePosition']());}),this[_0x24ba('0x45')](this[_0x24ba('0x4')][_0x24ba('0x2b')][_0x24ba('0x9')]['document'],_0x24ba('0x27'),()=>{this[_0x24ba('0x21')]=!0x0,this[_0x24ba('0x7')][_0x24ba('0x2d')]();}),this[_0x24ba('0x4')][_0x24ba('0x2b')]['view']['document']['selection']['editableElement']&&this[_0x24ba('0x4')][_0x24ba('0x2b')][_0x24ba('0x9')][_0x24ba('0x32')](),this['isAttached']=!0x0;}[_0x24ba('0x25')](){if(!this[_0x24ba('0x23')])throw new _0xf1f35e(_0x24ba('0x47'),this);this[_0x24ba('0x37')](null);for(const _0x19259f of this[_0x24ba('0x24')])this[_0x24ba('0x48')](_0x19259f);this['stopListening'](),this[_0x24ba('0x23')]=!0x1,this[_0x24ba('0x1e')]=null;}['destroy'](){this[_0x24ba('0x23')]&&this[_0x24ba('0x25')]();}['_setSelectedAnnotations'](_0xc4458a){for(const _0x72c14f of this[_0x24ba('0x2c')])_0xc4458a['includes'](_0x72c14f)||this[_0x24ba('0x7')][_0x24ba('0x4a')](_0x72c14f);for(const _0x531d02 of this['annotations'])_0xc4458a[_0x24ba('0x3e')](_0x531d02)||this[_0x24ba('0x48')](_0x531d02);if(this['editor']['ui'][_0x24ba('0x3b')][_0x24ba('0x19')])for(const _0x252042 of _0xc4458a)this[_0x24ba('0x36')](_0x252042);this[_0x24ba('0x2c')]=_0xc4458a;}[_0x24ba('0x36')](_0x432542,_0x46f013=!0x1){this['_manuallyClosed'][_0x24ba('0x12')](_0x432542)||(this[_0x24ba('0x24')][_0x24ba('0x12')](_0x432542)||this[_0x24ba('0xe')][_0x24ba('0x11')](_0x432542[_0x24ba('0x9')])||(this[_0x24ba('0x24')][_0x24ba('0x20')](_0x432542),this[_0x24ba('0xe')][_0x24ba('0x20')]({'stackId':_0x432542[_0x24ba('0x9')]['id'],'view':_0x432542[_0x24ba('0x9')],'position':{'target':()=>this[_0x24ba('0xc')](_0x432542)}})),_0x46f013&&this['_balloon'][_0x24ba('0x3c')](_0x432542[_0x24ba('0x9')]['id']));}[_0x24ba('0xc')](_0x390a51){const _0x16f15e=_0x390a51[_0x24ba('0x16')],_0x1d2f5f=this['editor']['editing']['view'],_0x4ef2cc=_0x1d2f5f[_0x24ba('0x10')]['selection'][_0x24ba('0x49')](),_0x3d5502=_0x1d2f5f['domConverter'][_0x24ba('0x6')](_0x4ef2cc);if(_0x3d5502[_0x24ba('0x18')](!0x0),_0x16f15e){if(_0x16f15e instanceof _0x1751cb)return _0x16f15e;let _0xdacc4c=[];for(const _0x4093da of _0x16f15e)_0xdacc4c[_0x24ba('0x14')](...(_0x3edb0d=_0x4093da['getClientRects'](),Array[_0x24ba('0x1')](_0x3edb0d)[_0x24ba('0xb')](DOMRect[_0x24ba('0x26')])));_0xdacc4c=function(_0x395dc8){const _0x46274e=[];let _0x4175d1=_0x395dc8[0x0];for(let _0x5018fe=0x1;_0x5018fe<_0x395dc8[_0x24ba('0x40')];_0x5018fe++)F(_0x4175d1,_0x395dc8[_0x5018fe])?_0x4175d1['width']+=_0x395dc8[_0x5018fe][_0x24ba('0x3')]:(_0x46274e[_0x24ba('0x14')](_0x4175d1),_0x4175d1=_0x395dc8[_0x5018fe]);return _0x46274e['push'](_0x4175d1),_0x46274e;}(_0xdacc4c);const _0x4bb4b0=_0x3d5502[_0x24ba('0x41')]();return _0xdacc4c['find'](_0x4aa448=>_0x4aa448['top']<=_0x4bb4b0[_0x24ba('0x1f')]&&_0x4aa448[_0x24ba('0x1a')]>=_0x4bb4b0[_0x24ba('0x1a')]&&_0x4aa448[_0x24ba('0x0')]<=_0x4bb4b0[_0x24ba('0x0')]&&_0x4aa448[_0x24ba('0x2e')]>=_0x4bb4b0[_0x24ba('0x2e')])||_0xdacc4c[0x0];}var _0x3edb0d;return _0x390a51[_0x24ba('0x1d')]||_0x3d5502;}['_removeAnnotationFromBalloon'](_0x2d91ce){this['_addedAnnotations'][_0x24ba('0x12')](_0x2d91ce)&&this['_balloon'][_0x24ba('0x11')](_0x2d91ce[_0x24ba('0x9')])&&(this[_0x24ba('0x24')][_0x24ba('0x4a')](_0x2d91ce),this[_0x24ba('0xe')][_0x24ba('0x1b')](_0x2d91ce['view']));}['_closeAnnotation'](_0x455b9f){this[_0x24ba('0x7')]['add'](_0x455b9f),this[_0x24ba('0x48')](_0x455b9f);}}function F(_0x6b3196,_0x1ca16c){return _0x6b3196[_0x24ba('0x1f')]===_0x1ca16c[_0x24ba('0x1f')]&&_0x6b3196['bottom']===_0x1ca16c[_0x24ba('0x1a')]&&_0x6b3196[_0x24ba('0x2e')]===_0x1ca16c[_0x24ba('0x0')];}
23
+ const _0x126f=['_removeAnnotationFromBalloon','_balloon','afterInit','inline','listenTo','requires','_getBalloonTargetForAnnotation','fromRect','inlineannotations-attach-already-attached','right','editing','addObserver','from','set','domConverter','refresh','Esc','selection','target','focusTracker','detach','_selectedAnnotations','document','switchTo','map','change:visibleView','isAttached','add','push','_addedAnnotations','_forceRefresh','hasActive','focus','get','width','_setSelectedAnnotations','change:isFocused','editor','every','destroy','isFocused','hasView','remove','bottom','getBoundingClientRect','visibleView','has','left','context','annotations','change:height','includes','_closeAnnotation','showStack','_addAnnotationToBalloon','getOrderedSelectedAnnotations','view','_manuallyClosed','plugins','getByView','register','stopListening','editableElement','init','activeAnnotation','pluginName','clear','top','isActive','updatePosition','update','length','setActiveAnnotation'];(function(_0x386a7a,_0x126f91){const _0x32300a=function(_0x4f59c6){while(--_0x4f59c6){_0x386a7a['push'](_0x386a7a['shift']());}};_0x32300a(++_0x126f91);}(_0x126f,0x151));const _0x3230=function(_0x386a7a,_0x126f91){_0x386a7a=_0x386a7a-0x0;let _0x32300a=_0x126f[_0x386a7a];return _0x32300a;};import{Plugin as _0x537d06}from'ckeditor5/src/core';import _0x52cda7 from'./annotationsuis';import _0x125e3b from'./editorannotations';import{ContextualBalloon as _0x581819}from'ckeditor5/src/ui';import{MouseObserver as _0x3d27ba}from'ckeditor5/src/engine';import{CKEditorError as _0x2c9930,Rect as _0x3d4343}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x537d06{static get[_0x3230('0x21')](){return[_0x125e3b,_0x581819,_0x52cda7];}static get[_0x3230('0x14')](){return'InlineAnnotations';}constructor(_0x5be932){super(_0x5be932),_0x5be932['editing']['view'][_0x3230('0x27')](_0x3d27ba),this[_0x3230('0x36')]=!0x1,this[_0x3230('0x29')](_0x3230('0x13'),null),this[_0x3230('0x4')]=null,this[_0x3230('0xc')]=new Set(),this[_0x3230('0x1d')]=_0x5be932[_0x3230('0xd')][_0x3230('0x3d')](_0x581819),this['_addedAnnotations']=new Set(),this[_0x3230('0x31')]=[],this[_0x3230('0x3a')]=!0x1;}[_0x3230('0x12')](){const _0x599144=this[_0x3230('0x41')][_0x3230('0xd')][_0x3230('0x3d')](_0x52cda7);_0x599144[_0x3230('0x3')]===this['editor']&&(_0x599144[_0x3230('0xf')](_0x3230('0x1f'),this),this[_0x3230('0x41')]['keystrokes'][_0x3230('0x29')](_0x3230('0x2c'),(_0x3286cd,_0xd87299)=>{const _0x446ab9=this['_balloon'];if(this['isAttached']&&_0x446ab9[_0x3230('0x0')]){const _0x21ae69=this[_0x3230('0x4')][_0x3230('0xe')](_0x446ab9[_0x3230('0x0')]);_0x21ae69&&this[_0x3230('0x7')](_0x21ae69),_0xd87299();}}));}[_0x3230('0x1e')](){const _0xfbd97=this[_0x3230('0x41')]['plugins'][_0x3230('0x3d')](_0x52cda7);_0xfbd97[_0x3230('0x3')]===this['editor']&&(_0xfbd97[_0x3230('0x3b')]()||_0xfbd97[_0x3230('0x33')](_0x3230('0x1f')));}[_0x3230('0x1b')](_0x302a69){_0x302a69!==this[_0x3230('0x13')]&&(this[_0x3230('0x13')]&&(this['activeAnnotation']['isActive']=!0x1),_0x302a69&&this[_0x3230('0x41')]['ui']['focusTracker'][_0x3230('0x44')]&&(this[_0x3230('0x4')][_0x3230('0x1')](_0x302a69)&&this[_0x3230('0x9')](_0x302a69,!0x0),_0x302a69[_0x3230('0x17')]=!0x0),_0x302a69||this[_0x3230('0x3f')]([]),this[_0x3230('0x13')]=_0x302a69);}['attach'](_0x148437){this[_0x3230('0x4')]=_0x148437;const _0x57e1d6=this['editor'][_0x3230('0xd')][_0x3230('0x3d')](_0x52cda7),_0x544365=this[_0x3230('0x1d')];if(this[_0x3230('0x36')])throw new _0x2c9930(_0x3230('0x24'),this);if(_0x57e1d6[_0x3230('0x3')]!==this['editor'])throw new _0x2c9930('inlineannotations-not-allowed-with-context',this);const _0x4e293d=this[_0x3230('0x41')][_0x3230('0xd')][_0x3230('0x3d')](_0x125e3b);this[_0x3230('0x20')](_0x4e293d,_0x3230('0x2b'),()=>{const _0x4de453=_0x4e293d[_0x3230('0xa')]({'annotations':this[_0x3230('0x4')],'activeAnnotation':this[_0x3230('0x13')]});var _0x6ea503,_0x4ab634;!this['_forceRefresh']&&(_0x6ea503=_0x4de453,_0x4ab634=this[_0x3230('0x31')],_0x6ea503[_0x3230('0x1a')]===_0x4ab634[_0x3230('0x1a')]&&_0x6ea503[_0x3230('0x42')](_0x3f4aa5=>_0x4ab634['includes'](_0x3f4aa5)))||(this[_0x3230('0x3a')]=!0x1,this[_0x3230('0x3f')](_0x4de453),this[_0x3230('0x1b')](_0x4de453[0x0]||null));}),this[_0x3230('0x20')](_0x4e293d,'blur',(_0x56f4e0,{isAnnotationTracked:_0x456d5c})=>{this[_0x3230('0x13')]&&_0x456d5c(this[_0x3230('0x13')])&&(this['_setSelectedAnnotations']([]),this[_0x3230('0x1b')](null));}),this['listenTo'](this['editor']['ui'][_0x3230('0x2f')],_0x3230('0x40'),(_0xc893ec,_0x5c0e4d,_0x544ecd)=>{_0x544ecd||this[_0x3230('0x1b')](null);}),this['listenTo'](_0x148437,_0x3230('0x46'),(_0x1c7b2e,_0x49c973)=>{this[_0x3230('0x1c')](_0x49c973),_0x49c973===this['activeAnnotation']&&this[_0x3230('0x1b')](null);}),this[_0x3230('0x20')](_0x544365,_0x3230('0x35'),(_0x5e52ee,_0x5b328c,_0x53e3bb,_0x3e9dbc)=>{_0x3e9dbc&&this['stopListening'](_0x3e9dbc);const _0x318d14=_0x148437[_0x3230('0xe')](_0x53e3bb);_0x53e3bb&&_0x318d14&&(this[_0x3230('0x20')](_0x53e3bb,_0x3230('0x5'),()=>{_0x544365[_0x3230('0x18')]();}),this[_0x3230('0x20')](_0x53e3bb,'Esc',()=>{this[_0x3230('0x7')](_0x318d14),this[_0x3230('0x41')][_0x3230('0x26')][_0x3230('0xb')][_0x3230('0x3c')]();}),this['activeAnnotation']!==_0x318d14&&this[_0x3230('0x1b')](_0x318d14));}),this[_0x3230('0x20')](this[_0x3230('0x41')]['ui'],_0x3230('0x19'),()=>{_0x544365[_0x3230('0x0')]&&(_0x148437[_0x3230('0xe')](_0x544365[_0x3230('0x0')])&&_0x544365[_0x3230('0x18')]());}),this[_0x3230('0x20')](this[_0x3230('0x41')][_0x3230('0x26')]['view'][_0x3230('0x32')],'mousedown',()=>{this[_0x3230('0x3a')]=!0x0,this[_0x3230('0xc')][_0x3230('0x15')]();}),this[_0x3230('0x41')][_0x3230('0x26')][_0x3230('0xb')][_0x3230('0x32')][_0x3230('0x2d')][_0x3230('0x11')]&&this['editor'][_0x3230('0x26')][_0x3230('0xb')][_0x3230('0x3c')](),this[_0x3230('0x36')]=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x2c9930('inlineannotations-detach-not-attached',this);this[_0x3230('0x1b')](null);for(const _0x207fb9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x207fb9);this[_0x3230('0x10')](),this[_0x3230('0x36')]=!0x1,this['annotations']=null;}[_0x3230('0x43')](){this[_0x3230('0x36')]&&this[_0x3230('0x30')]();}['_setSelectedAnnotations'](_0x5c2a9c){for(const _0x1e786d of this[_0x3230('0x31')])_0x5c2a9c[_0x3230('0x6')](_0x1e786d)||this[_0x3230('0xc')]['delete'](_0x1e786d);for(const _0x14c2f6 of this['annotations'])_0x5c2a9c['includes'](_0x14c2f6)||this['_removeAnnotationFromBalloon'](_0x14c2f6);if(this[_0x3230('0x41')]['ui'][_0x3230('0x2f')][_0x3230('0x44')])for(const _0x201618 of _0x5c2a9c)this[_0x3230('0x9')](_0x201618);this[_0x3230('0x31')]=_0x5c2a9c;}[_0x3230('0x9')](_0x5ccddf,_0xf8b664=!0x1){this[_0x3230('0xc')][_0x3230('0x1')](_0x5ccddf)||(this['_addedAnnotations'][_0x3230('0x1')](_0x5ccddf)||this[_0x3230('0x1d')]['hasView'](_0x5ccddf[_0x3230('0xb')])||(this[_0x3230('0x39')][_0x3230('0x37')](_0x5ccddf),this[_0x3230('0x1d')]['add']({'stackId':_0x5ccddf['view']['id'],'view':_0x5ccddf[_0x3230('0xb')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5ccddf)}})),_0xf8b664&&this['_balloon'][_0x3230('0x8')](_0x5ccddf['view']['id']));}[_0x3230('0x22')](_0x1a15f9){const _0x8d4454=_0x1a15f9[_0x3230('0x2e')],_0x197253=this[_0x3230('0x41')][_0x3230('0x26')][_0x3230('0xb')],_0x24e09a=_0x197253[_0x3230('0x32')][_0x3230('0x2d')]['getFirstRange'](),_0x526e29=_0x197253[_0x3230('0x2a')]['viewRangeToDom'](_0x24e09a);if(_0x526e29['collapse'](!0x0),_0x8d4454){if(_0x8d4454 instanceof _0x3d4343)return _0x8d4454;let _0x462c63=[];for(const _0x4cf5b7 of _0x8d4454)_0x462c63[_0x3230('0x38')](...(_0x2ddcb2=_0x4cf5b7['getClientRects'](),Array[_0x3230('0x28')](_0x2ddcb2)[_0x3230('0x34')](DOMRect[_0x3230('0x23')])));_0x462c63=function(_0x43691b){const _0x377f48=[];let _0x1f2d55=_0x43691b[0x0];for(let _0x540604=0x1;_0x540604<_0x43691b[_0x3230('0x1a')];_0x540604++)F(_0x1f2d55,_0x43691b[_0x540604])?_0x1f2d55[_0x3230('0x3e')]+=_0x43691b[_0x540604][_0x3230('0x3e')]:(_0x377f48[_0x3230('0x38')](_0x1f2d55),_0x1f2d55=_0x43691b[_0x540604]);return _0x377f48[_0x3230('0x38')](_0x1f2d55),_0x377f48;}(_0x462c63);const _0x249739=_0x526e29[_0x3230('0x48')]();return _0x462c63['find'](_0x5a1159=>_0x5a1159['top']<=_0x249739[_0x3230('0x16')]&&_0x5a1159[_0x3230('0x47')]>=_0x249739[_0x3230('0x47')]&&_0x5a1159['left']<=_0x249739[_0x3230('0x2')]&&_0x5a1159[_0x3230('0x25')]>=_0x249739[_0x3230('0x25')])||_0x462c63[0x0];}var _0x2ddcb2;return _0x1a15f9['targetRect']||_0x526e29;}[_0x3230('0x1c')](_0x5ac29e){this[_0x3230('0x39')][_0x3230('0x1')](_0x5ac29e)&&this[_0x3230('0x1d')][_0x3230('0x45')](_0x5ac29e[_0x3230('0xb')])&&(this[_0x3230('0x39')]['delete'](_0x5ac29e),this[_0x3230('0x1d')][_0x3230('0x46')](_0x5ac29e[_0x3230('0xb')]));}[_0x3230('0x7')](_0x4ad361){this['_manuallyClosed'][_0x3230('0x37')](_0x4ad361),this['_removeAnnotationFromBalloon'](_0x4ad361);}}function F(_0x5d456b,_0x21b1b8){return _0x5d456b['top']===_0x21b1b8['top']&&_0x5d456b[_0x3230('0x47')]===_0x21b1b8['bottom']&&_0x5d456b[_0x3230('0x25')]===_0x21b1b8[_0x3230('0x2')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b53=['requires','getSidebarItemView','init','off','refresh','listenTo','element','refreshPositioning','delete','mousedown','find','northArrowSouthEast','activeAnnotation','_updateBalloonPosition','cancel','stop','clear','create','includes','northArrowSouthWest','annotations','values','addAnnotation','type','_destroyEditorAnnotationsIntegration','add','isDirty','_editorAnnotations','low','preventDefault','annotationType','execute','length','from','change:container','resize','balloonPanelView','stopListening','plugins','destroy','_detachListeners','attach','target','southArrowNorth','southArrowNorthEast','_manuallyClosedAnnotationViews','_annotationToNarrowView','number','removeEventListener','has','set','bodyCollection','unpin','narrowsidebar-detach-not-attached','_integrateWithEditorAnnotations','EditorAnnotations','narrowsidebar-attach-already-attached','contains','keydown','set:container','_showBalloon','editors','view','uiUpdate','content','attachToDom','_selectedAnnotations','Esc','getOrderedSelectedAnnotations','_hideBalloon','_refreshPositioningDebounced','southArrowNorthWest','blur','preventClosingBalloon','_annotations','change:height','setActiveAnnotation','_attachListeners','isVisible','get','bind','isAttached','_detachFromContainer','detachFromDom','locale','pin','focus','first','context','focusableElements','rearrange','register','detach','defaultPositions','_attachToContainer','_refreshPositioning','_setSelectedAnnotations','keyCode','_domEmitter','getByView'];(function(_0x8427cb,_0x3b535b){const _0x47bb1e=function(_0x12ed1b){while(--_0x12ed1b){_0x8427cb['push'](_0x8427cb['shift']());}};_0x47bb1e(++_0x3b535b);}(_0x3b53,0x86));const _0x47bb=function(_0x8427cb,_0x3b535b){_0x8427cb=_0x8427cb-0x0;let _0x47bb1e=_0x3b53[_0x8427cb];return _0x47bb1e;};import{ContextPlugin as _0x5d40f6,Context as _0xc60477}from'ckeditor5/src/core';import _0x5562d0 from'./annotationsuis';import _0x9179fb from'./sidebar';import _0x292515 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4b7a7e,BodyCollection as _0x3080a8}from'ckeditor5/src/ui';import{CKEditorError as _0x58263e,DomEmitterMixin as _0x24c130,keyCodes as _0x3ed2d4,Collection as _0x36d601}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x53dbfa}from'lodash-es';import _0x4b7bf1 from'./editorannotations';export default class s extends _0x5d40f6{static get[_0x47bb('0x42')](){return[_0x9179fb,_0x5562d0];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x5170d0){super(_0x5170d0),this[_0x47bb('0x2f')]=!0x1,this[_0x47bb('0xb')]=new Set(),this[_0x47bb('0x40')]=Object[_0x47bb('0x53')](_0x24c130),this[_0x47bb('0xc')]=new Map(),this[_0x47bb('0x10')](_0x47bb('0x4e'),null),this[_0x47bb('0x56')]=null,this[_0x47bb('0x20')]=[],this[_0x47bb('0x5d')]=new _0x36d601(),this[_0x47bb('0x24')]=_0x53dbfa(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x47bb('0x44')](){this[_0x47bb('0x36')][_0x47bb('0x4')]['get'](_0x5562d0)[_0x47bb('0x39')]('narrowSidebar',this),this[_0x47bb('0x11')]=new _0x3080a8(this[_0x47bb('0x36')]['locale']),this[_0x47bb('0x2')]=new _0x4b7a7e(this[_0x47bb('0x36')]['locale']),this[_0x47bb('0x11')][_0x47bb('0x1f')](),this[_0x47bb('0x11')][_0x47bb('0x5b')](this[_0x47bb('0x2')]);}[_0x47bb('0x7')](_0x13e20b){this['annotations']=_0x13e20b;const _0x2b2300=this[_0x47bb('0x36')]['plugins'][_0x47bb('0x2d')](_0x9179fb),_0x5977a2=this[_0x47bb('0x2')];if(_0x2b2300[_0x47bb('0x28')]=_0x13e20b,this['isAttached'])throw new _0x58263e(_0x47bb('0x16'),this);this[_0x47bb('0x2f')]=!0x0,this[_0x47bb('0x47')](_0x2b2300,_0x47bb('0x19'),()=>{this['detach'](),this[_0x47bb('0x47')](_0x2b2300,_0x47bb('0x0'),_0x5a686c=>{_0x5a686c[_0x47bb('0x45')](),this[_0x47bb('0x7')](_0x13e20b);});}),_0x2b2300[_0x47bb('0x3c')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x22639e=_0x387167=>{const _0x426783=new _0x292515(this[_0x47bb('0x36')][_0x47bb('0x32')]);_0x2b2300[_0x47bb('0x58')](_0x387167,_0x426783),this[_0x47bb('0xc')][_0x47bb('0x10')](_0x387167,_0x426783),_0x426783[_0x47bb('0x2e')](_0x47bb('0x5c'),_0x47bb('0x60'),_0x47bb('0xd'))['to'](_0x387167[_0x47bb('0x1c')],_0x47bb('0x5c'),_0x47bb('0x59'),_0x47bb('0x62')),_0x426783['on'](_0x47bb('0x61'),()=>{this[_0x47bb('0xb')]['clear'](),_0x5977a2[_0x47bb('0x1e')][_0x47bb('0x35')]!==_0x387167[_0x47bb('0x1c')]?(this[_0x47bb('0x1a')](_0x387167),_0x387167[_0x47bb('0x1c')][_0x47bb('0x48')][_0x47bb('0x34')](),this[_0x47bb('0x2a')](_0x387167)):this[_0x47bb('0x2a')](null);});};for(const _0x10031b of _0x13e20b)_0x22639e(_0x10031b);this[_0x47bb('0x47')](_0x13e20b,_0x47bb('0x5b'),(_0x2d9323,_0x2d076b)=>{_0x22639e(_0x2d076b);}),this[_0x47bb('0x47')](_0x13e20b,'remove',(_0x3081d5,_0x530839,_0x12462c)=>{this[_0x47bb('0xc')][_0x47bb('0x2d')](_0x530839)[_0x47bb('0x5')](),this[_0x47bb('0xc')][_0x47bb('0x4a')](_0x530839),_0x2b2300[_0x47bb('0x38')]({'removedAnnotation':_0x530839,'previousAnnotation':_0x13e20b['get'](_0x12462c-0x1),'nextAnnotation':_0x13e20b['get'](_0x12462c+0x1)}),_0x530839===this[_0x47bb('0x4e')]&&this['setActiveAnnotation'](null);},{'priority':_0x47bb('0x5e')}),this[_0x47bb('0x47')](_0x13e20b,_0x47bb('0x34'),(_0x3cf970,_0x4ad6a9)=>{this['setActiveAnnotation'](_0x4ad6a9);}),this[_0x47bb('0x47')](_0x13e20b,_0x47bb('0x26'),()=>{this[_0x47bb('0x2a')](null);}),this[_0x47bb('0x40')]['listenTo'](document,_0x47bb('0x18'),(_0x9ba65b,_0x3bcd59)=>{_0x3bcd59[_0x47bb('0x3f')]===_0x3ed2d4['esc']&&_0x5977a2['isVisible']&&(this[_0x47bb('0xb')][_0x47bb('0x5b')](_0x5977a2[_0x47bb('0x1e')][_0x47bb('0x35')]),this['_hideBalloon'](),_0x3bcd59['stopPropagation'](),_0x3bcd59[_0x47bb('0x5f')]());}),this['_domEmitter'][_0x47bb('0x47')](document,'mousedown',(_0xa9da7c,_0x5e9486)=>{const _0x492b6a=_0x5e9486[_0x47bb('0x8')];_0x5977a2['isVisible']&&_0x5977a2[_0x47bb('0x48')]['contains'](_0x492b6a)||_0x2b2300[_0x47bb('0x1c')][_0x47bb('0x48')][_0x47bb('0x17')](_0x492b6a)||_0xa9da7c[_0x47bb('0x27')]||this[_0x47bb('0x4e')]&&this[_0x47bb('0x4e')][_0x47bb('0x37')][_0x47bb('0x4c')](_0x3dfd36=>_0x3dfd36[_0x47bb('0x17')](_0x492b6a))||(this[_0x47bb('0xb')]['clear'](),this[_0x47bb('0x23')](),this['setActiveAnnotation'](null));});const _0x2e301d=this[_0x47bb('0x36')]instanceof _0xc60477?this[_0x47bb('0x36')][_0x47bb('0x1b')]:new _0x36d601([this[_0x47bb('0x36')]]);for(const _0x1aef19 of _0x2e301d)this['_integrateWithEditorAnnotations'](_0x1aef19);this[_0x47bb('0x47')](_0x2e301d,_0x47bb('0x5b'),(_0x45137d,_0x9cc548)=>{this['listenTo'](_0x9cc548,'ready',()=>{this[_0x47bb('0x14')](_0x9cc548);});}),this[_0x47bb('0x47')](_0x2e301d,'remove',(_0x1cbf0d,_0x10dc96)=>{_0x10dc96['plugins'][_0x47bb('0xf')](_0x47bb('0x15'))&&this[_0x47bb('0x5a')](_0x10dc96[_0x47bb('0x4')]['get'](_0x47bb('0x15')));}),window['addEventListener'](_0x47bb('0x1'),this[_0x47bb('0x24')]),this[_0x47bb('0x3d')]();}['setActiveAnnotation'](_0x218022){if(_0x218022===this[_0x47bb('0x4e')])return;const _0x1e4ba2=this[_0x47bb('0x36')][_0x47bb('0x4')][_0x47bb('0x2d')](_0x9179fb);if(_0x1e4ba2['refresh']({'blurredAnnotation':this[_0x47bb('0x4e')],'activatedAnnotation':_0x218022,'disableAnimationOnActivatedAnnotation':!0x0}),_0x218022)_0x1e4ba2[_0x47bb('0x43')](_0x218022)?this[_0x47bb('0x1a')](_0x218022):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x218022;}[_0x47bb('0x3a')](){if(!this[_0x47bb('0x2f')])throw new _0x58263e(_0x47bb('0x13'),this);this[_0x47bb('0x2a')](null);const _0x170f0e=this['context'][_0x47bb('0x4')][_0x47bb('0x2d')](_0x9179fb);this[_0x47bb('0x23')](),Array[_0x47bb('0x63')](this[_0x47bb('0xc')][_0x47bb('0x57')](),_0x341d89=>_0x341d89[_0x47bb('0x5')]()),this['_annotationToNarrowView'][_0x47bb('0x52')](),_0x170f0e[_0x47bb('0x30')](this['annotations']),this[_0x47bb('0x3')](),this[_0x47bb('0x40')]['stopListening'](),this['context']instanceof _0xc60477&&this[_0x47bb('0x3')](this[_0x47bb('0x36')][_0x47bb('0x1b')]);for(const _0x335292 of Array[_0x47bb('0x63')](this[_0x47bb('0x5d')]))this[_0x47bb('0x5a')](_0x335292);window[_0x47bb('0xe')](_0x47bb('0x1'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x47bb('0x50')](),this[_0x47bb('0x20')]=[],this['isAttached']=!0x1,this[_0x47bb('0x56')]=null;}[_0x47bb('0x5')](){this[_0x47bb('0x2f')]&&this[_0x47bb('0x3a')](),this[_0x47bb('0x11')][_0x47bb('0x31')]();}[_0x47bb('0x14')](_0x564359){const _0x3ba514=_0x564359[_0x47bb('0x4')][_0x47bb('0x2d')](_0x4b7bf1),_0x4d261c=this[_0x47bb('0x36')][_0x47bb('0x4')][_0x47bb('0x2d')](_0x9179fb),_0x2d3640=this[_0x47bb('0x56')],_0x1083d9=this[_0x47bb('0x2')],_0x5458b2=()=>{const _0x209702=_0x3ba514[_0x47bb('0x22')]({'annotations':this[_0x47bb('0x56')],'activeAnnotation':this[_0x47bb('0x4e')]});this['_setSelectedAnnotations'](_0x209702),this[_0x47bb('0x2a')](_0x209702[0x0]||null);};this[_0x47bb('0x47')](_0x3ba514,_0x47bb('0x46'),_0x5458b2),this['listenTo'](_0x3ba514,_0x47bb('0x26'),(_0x24f4ae,{isAnnotationTracked:_0xa5d0e7})=>{this['activeAnnotation']&&_0xa5d0e7(this[_0x47bb('0x4e')])&&(this[_0x47bb('0x3e')]([]),this[_0x47bb('0x2a')](null));}),this[_0x47bb('0x47')](_0x3ba514,_0x47bb('0x1d'),()=>{this['_refreshPositioningDebounced']();}),this[_0x47bb('0x47')](_0x2d3640,_0x47bb('0x26'),_0x32541c=>{_0x3ba514['hasDomSelection']()&&_0x32541c[_0x47bb('0x51')]();},{'priority':'high'}),this[_0x47bb('0x47')](this[_0x47bb('0x40')],_0x47bb('0x4b'),(_0x111df1,_0x1015bf)=>{const _0x4b2a46=_0x1015bf[_0x47bb('0x8')];_0x1083d9['isVisible']&&_0x1083d9[_0x47bb('0x48')][_0x47bb('0x17')](_0x4b2a46)||_0x4d261c['view'][_0x47bb('0x48')][_0x47bb('0x17')](_0x4b2a46)||this[_0x47bb('0x4e')]&&_0x3ba514['hasDomSelection']()&&(_0x5458b2(),_0x111df1[_0x47bb('0x27')]=!0x0);},{'priority':'high'}),this[_0x47bb('0x5d')][_0x47bb('0x5b')](_0x3ba514);}[_0x47bb('0x5a')](_0x258133){_0x258133&&(this[_0x47bb('0x3')](_0x258133),this[_0x47bb('0x5d')]['remove'](_0x258133));}[_0x47bb('0x3e')](_0x40829f){for(const _0x351652 of this[_0x47bb('0x20')])_0x40829f[_0x47bb('0x54')](_0x351652)||this[_0x47bb('0xb')]['delete'](_0x351652[_0x47bb('0x1c')]);this['_selectedAnnotations']=_0x40829f;}[_0x47bb('0x3d')](){const _0x4ffe0f=this['balloonPanelView'];this[_0x47bb('0x56')][_0x47bb('0x49')](),_0x4ffe0f[_0x47bb('0x2c')]&&this['_updateBalloonPosition']();}[_0x47bb('0x1a')](_0xe09f99){if(this[_0x47bb('0xb')][_0x47bb('0xf')](_0xe09f99[_0x47bb('0x1c')]))return;const _0x3b9687=this['balloonPanelView'][_0x47bb('0x1e')][_0x47bb('0x35')];_0x3b9687!==_0xe09f99[_0x47bb('0x1c')]?(_0x3b9687&&this[_0x47bb('0x6')](_0x3b9687),this[_0x47bb('0x2b')](_0xe09f99[_0x47bb('0x1c')]),this['balloonPanelView'][_0x47bb('0x1e')][_0x47bb('0x52')](),this[_0x47bb('0x2')][_0x47bb('0x1e')][_0x47bb('0x5b')](_0xe09f99[_0x47bb('0x1c')]),this[_0x47bb('0x4f')]()):this[_0x47bb('0x4f')]();}[_0x47bb('0x4f')](){const _0x5af60e=this[_0x47bb('0x2')][_0x47bb('0x1e')]['first'],_0x1f0384=_0x5af60e&&this[_0x47bb('0x56')][_0x47bb('0x41')](_0x5af60e);if(!_0x1f0384||!this[_0x47bb('0xc')]['has'](_0x1f0384))return;const _0x503356=this[_0x47bb('0xc')]['get'](_0x1f0384)[_0x47bb('0x48')],_0x40546a=function(){const _0x59d09d=_0x4b7a7e[_0x47bb('0x3b')];return[_0x59d09d[_0x47bb('0xa')],_0x59d09d[_0x47bb('0x4d')],_0x59d09d[_0x47bb('0x9')],_0x59d09d['northArrowSouth'],_0x59d09d[_0x47bb('0x25')],_0x59d09d[_0x47bb('0x55')]];}();this[_0x47bb('0x2')][_0x47bb('0x33')]({'target':_0x503356,'positions':_0x40546a});}[_0x47bb('0x23')](){const _0x43f3c9=this[_0x47bb('0x2')],_0x6a4a5b=_0x43f3c9['content']['first'];_0x6a4a5b&&(this['_detachListeners'](_0x6a4a5b),_0x43f3c9[_0x47bb('0x12')](),_0x43f3c9[_0x47bb('0x1e')]['clear']());}['_attachListeners'](_0x26c3bb){this['listenTo'](_0x26c3bb,_0x47bb('0x29'),()=>this['_updateBalloonPosition']()),this[_0x47bb('0x47')](_0x26c3bb,_0x47bb('0x21'),(_0x43a810,_0x2854ee)=>{this['_manuallyClosedAnnotationViews'][_0x47bb('0x5b')](_0x26c3bb),this[_0x47bb('0x23')](),_0x2854ee();});}['_detachListeners'](_0x537087){this[_0x47bb('0x3')](_0x537087);}}
23
+ const _0x23d5=['add','resize','_annotations','esc','context','plugins','balloonPanelView','isAttached','stop','_editorAnnotations','_annotationToNarrowView','includes','ready','editors','_detachFromContainer','target','length','getOrderedSelectedAnnotations','blur','register','attach','mousedown','first','_selectedAnnotations','stopListening','remove','_manuallyClosedAnnotationViews','clear','_domEmitter','uiUpdate','change:container','northArrowSouthEast','setActiveAnnotation','attachToDom','isDirty','preventClosingBalloon','change:height','keydown','_attachToContainer','has','cancel','focus','element','content','destroy','find','locale','requires','southArrowNorth','contains','get','annotations','getByView','_updateBalloonPosition','bodyCollection','listenTo','delete','_hideBalloon','init','defaultPositions','activeAnnotation','removeEventListener','set:container','set','_setSelectedAnnotations','_refreshPositioningDebounced','detach','stopPropagation','execute','northArrowSouthWest','detachFromDom','focusableElements','northArrowSouth','NarrowSidebar','create','_refreshPositioning','addAnnotation','preventDefault','_attachListeners','from','_detachListeners','isVisible','addEventListener','refresh','EditorAnnotations','view','pluginName','bind','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','high','pin','keyCode','ck-sidebar--narrow','_showBalloon'];(function(_0xce54f8,_0x23d555){const _0x3dcdd1=function(_0x4791c7){while(--_0x4791c7){_0xce54f8['push'](_0xce54f8['shift']());}};_0x3dcdd1(++_0x23d555);}(_0x23d5,0x9a));const _0x3dcd=function(_0xce54f8,_0x23d555){_0xce54f8=_0xce54f8-0x0;let _0x3dcdd1=_0x23d5[_0xce54f8];return _0x3dcdd1;};import{ContextPlugin as _0x5095cb,Context as _0x66cff3}from'ckeditor5/src/core';import _0x3725ec from'./annotationsuis';import _0x483754 from'./sidebar';import _0x3f82ee from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x201a9e,BodyCollection as _0x14279e}from'ckeditor5/src/ui';import{CKEditorError as _0x1698a9,DomEmitterMixin as _0x4dd01f,keyCodes as _0x3467fc,Collection as _0x4db380}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3c47dc}from'lodash-es';import _0x4ced7c from'./editorannotations';export default class s extends _0x5095cb{static get[_0x3dcd('0x53')](){return[_0x483754,_0x3725ec];}static get[_0x3dcd('0x1b')](){return _0x3dcd('0xe');}constructor(_0x29774a){super(_0x29774a),this[_0x3dcd('0x2b')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x3dcd('0x40')]=Object[_0x3dcd('0xf')](_0x4dd01f),this[_0x3dcd('0x2e')]=new Map(),this[_0x3dcd('0x4')](_0x3dcd('0x1'),null),this[_0x3dcd('0x57')]=null,this[_0x3dcd('0x3b')]=[],this[_0x3dcd('0x2d')]=new _0x4db380(),this['_refreshPositioningDebounced']=_0x3c47dc(()=>{this[_0x3dcd('0x10')]();},0xfa,{'leading':!0x1});}[_0x3dcd('0x5e')](){this['context'][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x3725ec)[_0x3dcd('0x37')]('narrowSidebar',this),this[_0x3dcd('0x5a')]=new _0x14279e(this[_0x3dcd('0x28')]['locale']),this[_0x3dcd('0x2a')]=new _0x201a9e(this[_0x3dcd('0x28')][_0x3dcd('0x52')]),this[_0x3dcd('0x5a')][_0x3dcd('0x45')](),this[_0x3dcd('0x5a')][_0x3dcd('0x24')](this['balloonPanelView']);}[_0x3dcd('0x38')](_0x3dcd78){this['annotations']=_0x3dcd78;const _0x271f13=this[_0x3dcd('0x28')]['plugins'][_0x3dcd('0x56')](_0x483754),_0x49fb2d=this['balloonPanelView'];if(_0x271f13[_0x3dcd('0x26')]=_0x3dcd78,this[_0x3dcd('0x2b')])throw new _0x1698a9('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x271f13,_0x3dcd('0x3'),()=>{this[_0x3dcd('0x7')](),this['listenTo'](_0x271f13,_0x3dcd('0x42'),_0x5c158a=>{_0x5c158a['off'](),this['attach'](_0x3dcd78);});}),_0x271f13[_0x3dcd('0x4a')]({'viewClass':_0x3dcd('0x22'),'spaceBetweenItems':0x5});const _0x22b704=_0xa93de2=>{const _0x3811d8=new _0x3f82ee(this['context'][_0x3dcd('0x52')]);_0x271f13[_0x3dcd('0x11')](_0xa93de2,_0x3811d8),this[_0x3dcd('0x2e')][_0x3dcd('0x4')](_0xa93de2,_0x3811d8),_0x3811d8[_0x3dcd('0x1c')](_0x3dcd('0x46'),'annotationType','number')['to'](_0xa93de2['view'],_0x3dcd('0x46'),'type',_0x3dcd('0x34')),_0x3811d8['on'](_0x3dcd('0x9'),()=>{this[_0x3dcd('0x3e')]['clear'](),_0x49fb2d[_0x3dcd('0x4f')]['first']!==_0xa93de2[_0x3dcd('0x1a')]?(this[_0x3dcd('0x23')](_0xa93de2),_0xa93de2[_0x3dcd('0x1a')][_0x3dcd('0x4e')]['focus'](),this[_0x3dcd('0x44')](_0xa93de2)):this[_0x3dcd('0x44')](null);});};for(const _0x3d5f13 of _0x3dcd78)_0x22b704(_0x3d5f13);this[_0x3dcd('0x5b')](_0x3dcd78,_0x3dcd('0x24'),(_0x2b82c4,_0x506d0a)=>{_0x22b704(_0x506d0a);}),this[_0x3dcd('0x5b')](_0x3dcd78,_0x3dcd('0x3d'),(_0x552498,_0x4f382f,_0x573b72)=>{this[_0x3dcd('0x2e')][_0x3dcd('0x56')](_0x4f382f)[_0x3dcd('0x50')](),this[_0x3dcd('0x2e')][_0x3dcd('0x5c')](_0x4f382f),_0x271f13['rearrange']({'removedAnnotation':_0x4f382f,'previousAnnotation':_0x3dcd78['get'](_0x573b72-0x1),'nextAnnotation':_0x3dcd78[_0x3dcd('0x56')](_0x573b72+0x1)}),_0x4f382f===this[_0x3dcd('0x1')]&&this[_0x3dcd('0x44')](null);},{'priority':'low'}),this['listenTo'](_0x3dcd78,_0x3dcd('0x4d'),(_0x1324ba,_0x330f69)=>{this[_0x3dcd('0x44')](_0x330f69);}),this[_0x3dcd('0x5b')](_0x3dcd78,_0x3dcd('0x36'),()=>{this['setActiveAnnotation'](null);}),this[_0x3dcd('0x40')][_0x3dcd('0x5b')](document,_0x3dcd('0x49'),(_0x3b6a81,_0x3136d8)=>{_0x3136d8[_0x3dcd('0x21')]===_0x3467fc[_0x3dcd('0x27')]&&_0x49fb2d[_0x3dcd('0x16')]&&(this[_0x3dcd('0x3e')][_0x3dcd('0x24')](_0x49fb2d['content'][_0x3dcd('0x3a')]),this['_hideBalloon'](),_0x3136d8[_0x3dcd('0x8')](),_0x3136d8[_0x3dcd('0x12')]());}),this[_0x3dcd('0x40')][_0x3dcd('0x5b')](document,_0x3dcd('0x39'),(_0x16d08b,_0x2d00c2)=>{const _0x2490a3=_0x2d00c2[_0x3dcd('0x33')];_0x49fb2d[_0x3dcd('0x16')]&&_0x49fb2d['element'][_0x3dcd('0x55')](_0x2490a3)||_0x271f13[_0x3dcd('0x1a')][_0x3dcd('0x4e')]['contains'](_0x2490a3)||_0x16d08b['preventClosingBalloon']||this[_0x3dcd('0x1')]&&this['activeAnnotation'][_0x3dcd('0xc')][_0x3dcd('0x51')](_0x3e757f=>_0x3e757f['contains'](_0x2490a3))||(this[_0x3dcd('0x3e')]['clear'](),this['_hideBalloon'](),this[_0x3dcd('0x44')](null));});const _0x3c4f6a=this['context']instanceof _0x66cff3?this[_0x3dcd('0x28')][_0x3dcd('0x31')]:new _0x4db380([this['context']]);for(const _0x371a00 of _0x3c4f6a)this[_0x3dcd('0x1e')](_0x371a00);this[_0x3dcd('0x5b')](_0x3c4f6a,_0x3dcd('0x24'),(_0x21698d,_0x127f81)=>{this[_0x3dcd('0x5b')](_0x127f81,_0x3dcd('0x30'),()=>{this[_0x3dcd('0x1e')](_0x127f81);});}),this[_0x3dcd('0x5b')](_0x3c4f6a,_0x3dcd('0x3d'),(_0x1e8b6e,_0x2e8040)=>{_0x2e8040['plugins'][_0x3dcd('0x4b')](_0x3dcd('0x19'))&&this[_0x3dcd('0x1d')](_0x2e8040['plugins'][_0x3dcd('0x56')]('EditorAnnotations'));}),window[_0x3dcd('0x17')](_0x3dcd('0x25'),this[_0x3dcd('0x6')]),this[_0x3dcd('0x10')]();}[_0x3dcd('0x44')](_0x392174){if(_0x392174===this[_0x3dcd('0x1')])return;const _0x16805d=this['context'][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x483754);if(_0x16805d[_0x3dcd('0x18')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x392174,'disableAnimationOnActivatedAnnotation':!0x0}),_0x392174)_0x16805d['getSidebarItemView'](_0x392174)?this['_showBalloon'](_0x392174):this['_hideBalloon']();else this[_0x3dcd('0x5d')]();this[_0x3dcd('0x1')]=_0x392174;}[_0x3dcd('0x7')](){if(!this[_0x3dcd('0x2b')])throw new _0x1698a9('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5700c3=this['context'][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x483754);this[_0x3dcd('0x5d')](),Array['from'](this[_0x3dcd('0x2e')]['values'](),_0xe1d6ce=>_0xe1d6ce[_0x3dcd('0x50')]()),this[_0x3dcd('0x2e')]['clear'](),_0x5700c3[_0x3dcd('0x32')](this[_0x3dcd('0x57')]),this[_0x3dcd('0x3c')](),this[_0x3dcd('0x40')][_0x3dcd('0x3c')](),this[_0x3dcd('0x28')]instanceof _0x66cff3&&this['stopListening'](this[_0x3dcd('0x28')]['editors']);for(const _0x2be053 of Array[_0x3dcd('0x14')](this[_0x3dcd('0x2d')]))this['_destroyEditorAnnotationsIntegration'](_0x2be053);window[_0x3dcd('0x2')](_0x3dcd('0x25'),this[_0x3dcd('0x6')]),this['_refreshPositioningDebounced'][_0x3dcd('0x4c')](),this[_0x3dcd('0x3b')]=[],this[_0x3dcd('0x2b')]=!0x1,this[_0x3dcd('0x57')]=null;}[_0x3dcd('0x50')](){this[_0x3dcd('0x2b')]&&this[_0x3dcd('0x7')](),this[_0x3dcd('0x5a')][_0x3dcd('0xb')]();}[_0x3dcd('0x1e')](_0x2a0766){const _0x26792f=_0x2a0766[_0x3dcd('0x29')]['get'](_0x4ced7c),_0x3a1ece=this[_0x3dcd('0x28')][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x483754),_0x3a2a50=this[_0x3dcd('0x57')],_0x98e61c=this[_0x3dcd('0x2a')],_0x215f4b=()=>{const _0x282f11=_0x26792f[_0x3dcd('0x35')]({'annotations':this[_0x3dcd('0x57')],'activeAnnotation':this[_0x3dcd('0x1')]});this[_0x3dcd('0x5')](_0x282f11),this['setActiveAnnotation'](_0x282f11[0x0]||null);};this[_0x3dcd('0x5b')](_0x26792f,_0x3dcd('0x18'),_0x215f4b),this[_0x3dcd('0x5b')](_0x26792f,_0x3dcd('0x36'),(_0x575f98,{isAnnotationTracked:_0x214fbd})=>{this[_0x3dcd('0x1')]&&_0x214fbd(this['activeAnnotation'])&&(this[_0x3dcd('0x5')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x26792f,_0x3dcd('0x41'),()=>{this[_0x3dcd('0x6')]();}),this[_0x3dcd('0x5b')](_0x3a2a50,_0x3dcd('0x36'),_0x45a65d=>{_0x26792f['hasDomSelection']()&&_0x45a65d[_0x3dcd('0x2c')]();},{'priority':_0x3dcd('0x1f')}),this[_0x3dcd('0x5b')](this[_0x3dcd('0x40')],_0x3dcd('0x39'),(_0x2d3b41,_0x32acee)=>{const _0x3a46a1=_0x32acee[_0x3dcd('0x33')];_0x98e61c['isVisible']&&_0x98e61c[_0x3dcd('0x4e')][_0x3dcd('0x55')](_0x3a46a1)||_0x3a1ece[_0x3dcd('0x1a')][_0x3dcd('0x4e')][_0x3dcd('0x55')](_0x3a46a1)||this[_0x3dcd('0x1')]&&_0x26792f['hasDomSelection']()&&(_0x215f4b(),_0x2d3b41[_0x3dcd('0x47')]=!0x0);},{'priority':'high'}),this[_0x3dcd('0x2d')]['add'](_0x26792f);}[_0x3dcd('0x1d')](_0x12f6ba){_0x12f6ba&&(this[_0x3dcd('0x3c')](_0x12f6ba),this[_0x3dcd('0x2d')][_0x3dcd('0x3d')](_0x12f6ba));}[_0x3dcd('0x5')](_0x11db43){for(const _0x46c61c of this['_selectedAnnotations'])_0x11db43[_0x3dcd('0x2f')](_0x46c61c)||this[_0x3dcd('0x3e')][_0x3dcd('0x5c')](_0x46c61c[_0x3dcd('0x1a')]);this[_0x3dcd('0x3b')]=_0x11db43;}[_0x3dcd('0x10')](){const _0x538a8b=this[_0x3dcd('0x2a')];this[_0x3dcd('0x57')]['refreshPositioning'](),_0x538a8b[_0x3dcd('0x16')]&&this[_0x3dcd('0x59')]();}['_showBalloon'](_0x500c21){if(this[_0x3dcd('0x3e')][_0x3dcd('0x4b')](_0x500c21[_0x3dcd('0x1a')]))return;const _0x5da7fa=this[_0x3dcd('0x2a')][_0x3dcd('0x4f')]['first'];_0x5da7fa!==_0x500c21['view']?(_0x5da7fa&&this['_detachListeners'](_0x5da7fa),this[_0x3dcd('0x13')](_0x500c21['view']),this[_0x3dcd('0x2a')][_0x3dcd('0x4f')][_0x3dcd('0x3f')](),this[_0x3dcd('0x2a')][_0x3dcd('0x4f')][_0x3dcd('0x24')](_0x500c21[_0x3dcd('0x1a')]),this[_0x3dcd('0x59')]()):this[_0x3dcd('0x59')]();}[_0x3dcd('0x59')](){const _0x381190=this[_0x3dcd('0x2a')][_0x3dcd('0x4f')]['first'],_0x2de1f8=_0x381190&&this[_0x3dcd('0x57')][_0x3dcd('0x58')](_0x381190);if(!_0x2de1f8||!this[_0x3dcd('0x2e')][_0x3dcd('0x4b')](_0x2de1f8))return;const _0x15d344=this['_annotationToNarrowView']['get'](_0x2de1f8)[_0x3dcd('0x4e')],_0x33c143=function(){const _0x383bd6=_0x201a9e[_0x3dcd('0x0')];return[_0x383bd6['southArrowNorthEast'],_0x383bd6[_0x3dcd('0x43')],_0x383bd6[_0x3dcd('0x54')],_0x383bd6[_0x3dcd('0xd')],_0x383bd6['southArrowNorthWest'],_0x383bd6[_0x3dcd('0xa')]];}();this[_0x3dcd('0x2a')][_0x3dcd('0x20')]({'target':_0x15d344,'positions':_0x33c143});}[_0x3dcd('0x5d')](){const _0x1f3ff1=this[_0x3dcd('0x2a')],_0x36cdaf=_0x1f3ff1[_0x3dcd('0x4f')]['first'];_0x36cdaf&&(this[_0x3dcd('0x15')](_0x36cdaf),_0x1f3ff1['unpin'](),_0x1f3ff1[_0x3dcd('0x4f')][_0x3dcd('0x3f')]());}[_0x3dcd('0x13')](_0x97591b){this['listenTo'](_0x97591b,_0x3dcd('0x48'),()=>this['_updateBalloonPosition']()),this[_0x3dcd('0x5b')](_0x97591b,'Esc',(_0x176dff,_0x42428f)=>{this[_0x3dcd('0x3e')][_0x3dcd('0x24')](_0x97591b),this['_hideBalloon'](),_0x42428f();});}[_0x3dcd('0x15')](_0x578679){this[_0x3dcd('0x3c')](_0x578679);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32e9=['sidebar-attachtocontainer-missing-container','_destroySidebarItemView','change:top','setContainer','container','getSidebarItemView','_alignForBottomChange','stopListening','context','targetRect','_setItemTop','_activeAnnotation','_spaceBetweenItems','Sidebar','_lastItem','change:bottom','sidebar.container','_annotations','rearrange','view','set','updateHeight','clear','list','length','add','_recalculate','sidebar-setcontainer-invalid-element','render','config','remove','_getMaxAvailableTop','appendChild','_alignBeforeItem','locale','last','_updateLastItem','define','target','element','unbind','isActive','_sidebarItemViewToAnnotation','pluginName','class','object','top','content','max','_alignAfterItem','_targetTop','_attachToContainer','_getTargetTop','sidebar.preventScrollOutOfView','minHeight','change:_lastItem','destroy','_recalculateBuffer','addAnnotation','init','_alignToTargetRect','_getItemBefore','_alignForTopChange','bottom','push','getIndex','_detachFromContainer','delete','get','listenTo','_annotationToSidebarItemView','refresh','bind','height','_createSidebarView'];(function(_0x110bb9,_0x32e915){const _0x26d305=function(_0x170b7d){while(--_0x170b7d){_0x110bb9['push'](_0x110bb9['shift']());}};_0x26d305(++_0x32e915);}(_0x32e9,0xab));const _0x26d3=function(_0x110bb9,_0x32e915){_0x110bb9=_0x110bb9-0x0;let _0x26d305=_0x32e9[_0x110bb9];return _0x26d305;};import{ContextPlugin as _0x2b1bbb}from'ckeditor5/src/core';import{Rect as _0x421238,CKEditorError as _0x4f4970}from'ckeditor5/src/utils';import _0xf40f8b from'./view/sidebarview';import _0x302212 from'./view/sidebaritemview';export default class z extends _0x2b1bbb{static get[_0x26d3('0x16')](){return _0x26d3('0x43');}constructor(_0x63ab87){super(_0x63ab87),this['set'](_0x26d3('0x44'),void 0x0),this[_0x26d3('0x49')]=this[_0x26d3('0x35')](),this[_0x26d3('0x4a')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x26d3('0x15')]=new Map(),this[_0x26d3('0x31')]=new Map(),this[_0x26d3('0x3e')][_0x26d3('0x8')][_0x26d3('0x10')](_0x26d3('0x20'),!0x1),this[_0x26d3('0x47')]=null,this[_0x26d3('0x41')]=null,this[_0x26d3('0x24')]=[];}[_0x26d3('0x26')](){const _0x4aee43=this[_0x26d3('0x3e')][_0x26d3('0x8')]['get'](_0x26d3('0x46'));_0x4aee43&&this[_0x26d3('0x39')](_0x4aee43);}[_0x26d3('0x39')](_0x2129d7){if(!y(_0x2129d7))throw new _0x4f4970(_0x26d3('0x6'));this[_0x26d3('0x3a')]=_0x2129d7;}[_0x26d3('0x1e')]({viewClass:_0x4f95c9='',spaceBetweenItems:_0x4e555c=0x19}={}){if(!y(this[_0x26d3('0x3a')]))throw new _0x4f4970(_0x26d3('0x36'),this);this[_0x26d3('0x3a')][_0x26d3('0xb')](this[_0x26d3('0x49')]['element']),this['view']['class']=_0x4f95c9,this[_0x26d3('0x42')]=_0x4e555c;}[_0x26d3('0x48')]({removedAnnotation:_0x2d269a,previousAnnotation:_0x1c41df,nextAnnotation:_0x58cc78}){const _0x4c4612=this[_0x26d3('0x3b')](_0x2d269a);this['view'][_0x26d3('0x2')][_0x26d3('0x9')](_0x4c4612),this['_destroySidebarItemView'](_0x2d269a),_0x1c41df&&this[_0x26d3('0x27')](this[_0x26d3('0x3b')](_0x1c41df)),_0x58cc78&&this[_0x26d3('0x27')](this[_0x26d3('0x3b')](_0x58cc78)),this[_0x26d3('0xf')]();}[_0x26d3('0x32')]({blurredAnnotation:_0x173c9d,activatedAnnotation:_0x9a764e,disableAnimationOnActivatedAnnotation:_0x3b810d}){if(this['_activeAnnotation']=_0x9a764e,_0x173c9d){_0x173c9d[_0x26d3('0x14')]=!0x1;const _0x3254aa=this['getSidebarItemView'](_0x173c9d);_0x3254aa&&_0x3b810d&&(_0x3254aa['isAnimationDisabled']=!0x1);}if(_0x9a764e){const _0x4fea4a=this[_0x26d3('0x3b')](_0x9a764e);_0x4fea4a&&(_0x9a764e[_0x26d3('0x14')]=!0x0,_0x3b810d&&(_0x4fea4a['isAnimationDisabled']=!0x0,_0x4fea4a[_0x26d3('0x19')]+=0x1),this[_0x26d3('0x27')](_0x4fea4a));}}[_0x26d3('0x2d')](_0xea7247){if(this['view']['element']['remove'](),_0xea7247)for(const _0x106114 of _0xea7247)this[_0x26d3('0x37')](_0x106114);this[_0x26d3('0x49')][_0x26d3('0x2')][_0x26d3('0x1')](),this[_0x26d3('0x49')][_0x26d3('0x17')]='',this[_0x26d3('0x44')]=null;}[_0x26d3('0x25')](_0x39bff3,_0x2b0653){_0x2b0653||(_0x2b0653=_0x39bff3['view']);const _0x4dea7c=new _0x302212(this['context'][_0x26d3('0xd')]);this['_sidebarItemViewToAnnotation'][_0x26d3('0x4a')](_0x4dea7c,_0x39bff3),this[_0x26d3('0x31')][_0x26d3('0x4a')](_0x39bff3,_0x4dea7c),_0x4dea7c[_0x26d3('0x1a')][_0x26d3('0x4')](_0x2b0653),this[_0x26d3('0x30')](_0x39bff3[_0x26d3('0x49')],'change:targetRect',(_0x3aed01,_0xce32fd,_0x15c3fb)=>{const _0x54f0d8=this[_0x26d3('0x1f')](_0x39bff3,_0x15c3fb);_0x4dea7c[_0x26d3('0x1d')]!=_0x54f0d8&&(_0x4dea7c['_targetTop']=_0x54f0d8,this['_setItemTop'](_0x4dea7c,_0x54f0d8));}),this[_0x26d3('0x30')](_0x4dea7c,_0x26d3('0x38'),()=>{this['_recalculate'](_0x4dea7c,_0x26d3('0x19'));}),this[_0x26d3('0x30')](_0x4dea7c,_0x26d3('0x45'),()=>{this[_0x26d3('0x5')](_0x4dea7c,_0x26d3('0x2a'));}),this[_0x26d3('0x27')](_0x4dea7c);const _0xd853b0=this[_0x26d3('0x28')](_0x4dea7c);if(_0xd853b0)this[_0x26d3('0x1c')](_0xd853b0,_0x4dea7c)||this[_0x26d3('0x27')](_0x4dea7c);else this[_0x26d3('0x27')](_0x4dea7c);return this['_updateLastItem'](),this['view'][_0x26d3('0x2')][_0x26d3('0x4')](_0x4dea7c),_0x4dea7c;}[_0x26d3('0x29')](_0x115ee8){if(!_0x115ee8['content']['length'])return;const _0x404f7d=this[_0x26d3('0x28')](_0x115ee8);if(!_0x404f7d)return;const _0x32c18b=this[_0x26d3('0x15')][_0x26d3('0x2f')](_0x404f7d),_0x22e858=this[_0x26d3('0x41')];_0x22e858&&_0x22e858===_0x32c18b?this[_0x26d3('0x1c')](_0x404f7d,_0x115ee8):this[_0x26d3('0xc')](_0x115ee8,_0x404f7d);}[_0x26d3('0x3c')](_0x5df09b){if(!_0x5df09b['content'][_0x26d3('0x3')])return;const _0x595342=this['_getItemAfter'](_0x5df09b);if(!_0x595342)return;const _0x427abd=this[_0x26d3('0x15')][_0x26d3('0x2f')](_0x595342),_0x55f5c4=this[_0x26d3('0x3e')]['config'][_0x26d3('0x2f')]('sidebar.preventScrollOutOfView'),_0x131a92=this[_0x26d3('0x41')];_0x131a92&&_0x131a92===_0x427abd&&_0x55f5c4?(this[_0x26d3('0xc')](_0x595342,_0x5df09b),this['_alignAfterItem'](_0x5df09b,_0x595342)):_0x131a92&&_0x131a92===_0x427abd?this['_alignBeforeItem'](_0x595342,_0x5df09b):this[_0x26d3('0x1c')](_0x5df09b,_0x595342);}[_0x26d3('0x5')](_0x5df94a,_0x4e4c24){0x0===this[_0x26d3('0x24')][_0x26d3('0x3')]&&setTimeout(()=>{for(const {sidebarItemView:_0x29a6da,changedProp:_0x3f2baa}of this[_0x26d3('0x24')])_0x26d3('0x19')===_0x3f2baa?this[_0x26d3('0x29')](_0x29a6da):this['_alignForBottomChange'](_0x29a6da);this['_recalculateBuffer']=[];},0xa),this[_0x26d3('0x24')][_0x26d3('0x2b')]({'sidebarItemView':_0x5df94a,'changedProp':_0x4e4c24});}[_0x26d3('0x3b')](_0x1a3638){return this[_0x26d3('0x31')][_0x26d3('0x2f')](_0x1a3638);}[_0x26d3('0x23')](){this[_0x26d3('0x3d')](),this[_0x26d3('0x49')][_0x26d3('0x23')]();}[_0x26d3('0x37')](_0x1ed3ab){const _0x2319cf=this[_0x26d3('0x3b')](_0x1ed3ab);this[_0x26d3('0x3d')](_0x2319cf),this[_0x26d3('0x3d')](_0x1ed3ab['view']),_0x2319cf[_0x26d3('0x23')](),this['_annotationToSidebarItemView'][_0x26d3('0x2e')](_0x1ed3ab),this[_0x26d3('0x15')][_0x26d3('0x2e')](_0x2319cf);}[_0x26d3('0x35')](){const _0x3cbb34=new _0xf40f8b(this[_0x26d3('0x3e')][_0x26d3('0xd')]);return _0x3cbb34[_0x26d3('0x7')](),this['on'](_0x26d3('0x22'),(_0x243ed2,_0x5b05a7,_0x2620b0,_0x5f1044)=>{_0x5f1044&&_0x3cbb34[_0x26d3('0x13')](_0x26d3('0x21')),_0x2620b0?_0x3cbb34[_0x26d3('0x33')](_0x26d3('0x21'))['to'](_0x2620b0,_0x26d3('0x2a')):_0x3cbb34[_0x26d3('0x21')]=null;}),_0x3cbb34;}['_updateLastItem'](){var _0x2013e1;this[_0x26d3('0x44')]=(null===(_0x2013e1=this[_0x26d3('0x47')])||void 0x0===_0x2013e1?void 0x0:_0x2013e1[_0x26d3('0xe')])?this[_0x26d3('0x3b')](this['_annotations'][_0x26d3('0xe')]):null;}[_0x26d3('0x28')](_0x204ce0){var _0x44307a;const _0xec7e06=this[_0x26d3('0x15')]['get'](_0x204ce0),_0x281577=_0xec7e06&&(null===(_0x44307a=this[_0x26d3('0x47')])||void 0x0===_0x44307a?void 0x0:_0x44307a['get'](this[_0x26d3('0x47')]['getIndex'](_0xec7e06)-0x1));return _0x281577&&this[_0x26d3('0x3b')](_0x281577)||null;}['_getItemAfter'](_0x41b15f){var _0x227fc2;const _0x3efdf3=this[_0x26d3('0x15')][_0x26d3('0x2f')](_0x41b15f),_0x4621fb=_0x3efdf3&&(null===(_0x227fc2=this[_0x26d3('0x47')])||void 0x0===_0x227fc2?void 0x0:_0x227fc2[_0x26d3('0x2f')](this[_0x26d3('0x47')][_0x26d3('0x2c')](_0x3efdf3)+0x1));return _0x4621fb&&this[_0x26d3('0x3b')](_0x4621fb)||null;}['_alignBeforeItem'](_0x36b6cf,_0x5f04ec){_0x36b6cf[_0x26d3('0x0')]();const _0x5d740f=H(_0x5f04ec['bottom']+this['_spaceBetweenItems'],_0x36b6cf[_0x26d3('0x19')]);return!!_0x5d740f&&(this[_0x26d3('0x40')](_0x5f04ec,_0x5f04ec[_0x26d3('0x19')]-_0x5d740f),!0x0);}[_0x26d3('0x1c')](_0x43a5e7,_0x3650e9){_0x43a5e7[_0x26d3('0x0')]();const _0x5c56ba=H(_0x43a5e7[_0x26d3('0x2a')]+this[_0x26d3('0x42')],_0x3650e9[_0x26d3('0x19')]);return!!_0x5c56ba&&(this['_setItemTop'](_0x3650e9,_0x3650e9[_0x26d3('0x19')]+_0x5c56ba,!0x1),!0x0);}['_alignToTargetRect'](_0x1b9d2a){const _0x351173=this['_sidebarItemViewToAnnotation'][_0x26d3('0x2f')](_0x1b9d2a);if(!_0x351173||!_0x351173[_0x26d3('0x11')]||!_0x351173['targetRect'])return;const _0x8711ad=this[_0x26d3('0x1f')](_0x351173,_0x351173[_0x26d3('0x3f')]);this[_0x26d3('0x40')](_0x1b9d2a,_0x8711ad);}[_0x26d3('0x1f')](_0x7c4bfd,_0x78a11c){if(null===_0x78a11c)return 0x0;if(_0x7c4bfd[_0x26d3('0x11')]instanceof _0x421238)return _0x78a11c[_0x26d3('0x19')];{const _0x2c629f=new _0x421238(this[_0x26d3('0x49')][_0x26d3('0x12')])['top'];return _0x78a11c[_0x26d3('0x19')]-_0x2c629f;}}['_setItemTop'](_0x2c2a6a,_0x2a0c30,_0x109382=this[_0x26d3('0x3e')]['config'][_0x26d3('0x2f')](_0x26d3('0x20'))){_0x109382&&(_0x2a0c30=Math[_0x26d3('0x1b')](_0x2a0c30,this[_0x26d3('0xa')](_0x2c2a6a))),_0x2c2a6a['top']=_0x2a0c30;}[_0x26d3('0xa')](_0x3eeeba){let _0x2067c7=this[_0x26d3('0x28')](_0x3eeeba),_0x465768=0x0;for(;_0x2067c7;)_0x2067c7[_0x26d3('0x0')](),_0x465768+=this[_0x26d3('0x42')]+_0x2067c7[_0x26d3('0x34')],_0x2067c7=this[_0x26d3('0x28')](_0x2067c7);return _0x465768;}}function H(_0x5f17f4,_0x521e19){return Math[_0x26d3('0x1b')](_0x5f17f4-_0x521e19,0x0);}function y(_0xbab5a7){return null!==_0xbab5a7&&_0x26d3('0x18')==typeof _0xbab5a7&&0x1===_0xbab5a7['nodeType'];}
23
+ const _0x4b81=['_annotationToSidebarItemView','target','_detachFromContainer','change:bottom','_createSidebarView','stopListening','get','_alignBeforeItem','addAnnotation','getIndex','minHeight','_setItemTop','_attachToContainer','setContainer','element','sidebar-attachtocontainer-missing-container','_updateLastItem','isAnimationDisabled','_annotations','_destroySidebarItemView','unbind','_getItemAfter','_alignForBottomChange','_lastItem','bottom','_recalculateBuffer','top','content','refresh','appendChild','bind','Sidebar','_alignToTargetRect','_getItemBefore','_getMaxAvailableTop','_activeAnnotation','push','_recalculate','list','set','_alignAfterItem','length','sidebar-setcontainer-invalid-element','remove','height','context','isActive','updateHeight','pluginName','targetRect','sidebar.container','_spaceBetweenItems','getSidebarItemView','_alignForTopChange','view','init','object','container','_getTargetTop','add','max','change:_lastItem','config','change:targetRect','_sidebarItemViewToAnnotation','listenTo','last','sidebar.preventScrollOutOfView','delete','destroy','class','_targetTop'];(function(_0x2412e2,_0x4b8135){const _0x21c581=function(_0x3ddf46){while(--_0x3ddf46){_0x2412e2['push'](_0x2412e2['shift']());}};_0x21c581(++_0x4b8135);}(_0x4b81,0xfb));const _0x21c5=function(_0x2412e2,_0x4b8135){_0x2412e2=_0x2412e2-0x0;let _0x21c581=_0x4b81[_0x2412e2];return _0x21c581;};import{ContextPlugin as _0x2f5b08}from'ckeditor5/src/core';import{Rect as _0x763586,CKEditorError as _0x3c9fcb}from'ckeditor5/src/utils';import _0xdd39a4 from'./view/sidebarview';import _0x377067 from'./view/sidebaritemview';export default class z extends _0x2f5b08{static get[_0x21c5('0xd')](){return _0x21c5('0x44');}constructor(_0x3df754){super(_0x3df754),this[_0x21c5('0x4')](_0x21c5('0x3c'),void 0x0),this[_0x21c5('0x13')]=this[_0x21c5('0x29')](),this[_0x21c5('0x4')](_0x21c5('0x16'),null),this[_0x21c5('0x10')]=0x19,this[_0x21c5('0x1d')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x21c5('0xa')][_0x21c5('0x1b')]['define'](_0x21c5('0x20'),!0x1),this[_0x21c5('0x37')]=null,this['_activeAnnotation']=null,this[_0x21c5('0x3e')]=[];}[_0x21c5('0x14')](){const _0x72d3aa=this[_0x21c5('0xa')][_0x21c5('0x1b')][_0x21c5('0x2b')](_0x21c5('0xf'));_0x72d3aa&&this[_0x21c5('0x32')](_0x72d3aa);}[_0x21c5('0x32')](_0x10020a){if(!y(_0x10020a))throw new _0x3c9fcb(_0x21c5('0x7'));this['container']=_0x10020a;}[_0x21c5('0x31')]({viewClass:_0x1d44b9='',spaceBetweenItems:_0x41d40c=0x19}={}){if(!y(this[_0x21c5('0x16')]))throw new _0x3c9fcb(_0x21c5('0x34'),this);this['container'][_0x21c5('0x42')](this[_0x21c5('0x13')][_0x21c5('0x33')]),this[_0x21c5('0x13')][_0x21c5('0x23')]=_0x1d44b9,this[_0x21c5('0x10')]=_0x41d40c;}['rearrange']({removedAnnotation:_0x4e7190,previousAnnotation:_0x537b57,nextAnnotation:_0xe7aedf}){const _0x3acf5c=this['getSidebarItemView'](_0x4e7190);this['view']['list']['remove'](_0x3acf5c),this[_0x21c5('0x38')](_0x4e7190),_0x537b57&&this[_0x21c5('0x45')](this['getSidebarItemView'](_0x537b57)),_0xe7aedf&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xe7aedf)),this[_0x21c5('0x35')]();}[_0x21c5('0x41')]({blurredAnnotation:_0x5ae0e6,activatedAnnotation:_0x2ba011,disableAnimationOnActivatedAnnotation:_0x4b77b6}){if(this['_activeAnnotation']=_0x2ba011,_0x5ae0e6){_0x5ae0e6['isActive']=!0x1;const _0xaa348f=this[_0x21c5('0x11')](_0x5ae0e6);_0xaa348f&&_0x4b77b6&&(_0xaa348f[_0x21c5('0x36')]=!0x1);}if(_0x2ba011){const _0x13f831=this[_0x21c5('0x11')](_0x2ba011);_0x13f831&&(_0x2ba011[_0x21c5('0xb')]=!0x0,_0x4b77b6&&(_0x13f831['isAnimationDisabled']=!0x0,_0x13f831['top']+=0x1),this['_alignToTargetRect'](_0x13f831));}}[_0x21c5('0x27')](_0x469eef){if(this[_0x21c5('0x13')][_0x21c5('0x33')][_0x21c5('0x8')](),_0x469eef)for(const _0x48318e of _0x469eef)this[_0x21c5('0x38')](_0x48318e);this[_0x21c5('0x13')]['list']['clear'](),this[_0x21c5('0x13')]['class']='',this[_0x21c5('0x3c')]=null;}[_0x21c5('0x2d')](_0x91522a,_0x43c13b){_0x43c13b||(_0x43c13b=_0x91522a[_0x21c5('0x13')]);const _0x141c18=new _0x377067(this[_0x21c5('0xa')]['locale']);this[_0x21c5('0x1d')][_0x21c5('0x4')](_0x141c18,_0x91522a),this[_0x21c5('0x25')][_0x21c5('0x4')](_0x91522a,_0x141c18),_0x141c18[_0x21c5('0x40')]['add'](_0x43c13b),this[_0x21c5('0x1e')](_0x91522a['view'],_0x21c5('0x1c'),(_0x1ef783,_0x212be2,_0x46120f)=>{const _0x46ad72=this['_getTargetTop'](_0x91522a,_0x46120f);_0x141c18[_0x21c5('0x24')]!=_0x46ad72&&(_0x141c18['_targetTop']=_0x46ad72,this[_0x21c5('0x30')](_0x141c18,_0x46ad72));}),this[_0x21c5('0x1e')](_0x141c18,'change:top',()=>{this[_0x21c5('0x2')](_0x141c18,_0x21c5('0x3f'));}),this[_0x21c5('0x1e')](_0x141c18,_0x21c5('0x28'),()=>{this[_0x21c5('0x2')](_0x141c18,_0x21c5('0x3d'));}),this[_0x21c5('0x45')](_0x141c18);const _0x16a1fb=this[_0x21c5('0x46')](_0x141c18);if(_0x16a1fb)this[_0x21c5('0x5')](_0x16a1fb,_0x141c18)||this[_0x21c5('0x45')](_0x141c18);else this[_0x21c5('0x45')](_0x141c18);return this['_updateLastItem'](),this[_0x21c5('0x13')][_0x21c5('0x3')][_0x21c5('0x18')](_0x141c18),_0x141c18;}['_alignForTopChange'](_0x170018){if(!_0x170018[_0x21c5('0x40')][_0x21c5('0x6')])return;const _0x3ed5a0=this[_0x21c5('0x46')](_0x170018);if(!_0x3ed5a0)return;const _0x5ef4db=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x3ed5a0),_0x2b1b2c=this[_0x21c5('0x0')];_0x2b1b2c&&_0x2b1b2c===_0x5ef4db?this['_alignAfterItem'](_0x3ed5a0,_0x170018):this[_0x21c5('0x2c')](_0x170018,_0x3ed5a0);}['_alignForBottomChange'](_0x5c774c){if(!_0x5c774c[_0x21c5('0x40')][_0x21c5('0x6')])return;const _0xc5e444=this[_0x21c5('0x3a')](_0x5c774c);if(!_0xc5e444)return;const _0x3e2d4a=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0xc5e444),_0x157b5c=this['context']['config'][_0x21c5('0x2b')](_0x21c5('0x20')),_0x23d92d=this['_activeAnnotation'];_0x23d92d&&_0x23d92d===_0x3e2d4a&&_0x157b5c?(this[_0x21c5('0x2c')](_0xc5e444,_0x5c774c),this['_alignAfterItem'](_0x5c774c,_0xc5e444)):_0x23d92d&&_0x23d92d===_0x3e2d4a?this[_0x21c5('0x2c')](_0xc5e444,_0x5c774c):this[_0x21c5('0x5')](_0x5c774c,_0xc5e444);}[_0x21c5('0x2')](_0x5af9fa,_0x4ae5fe){0x0===this[_0x21c5('0x3e')][_0x21c5('0x6')]&&setTimeout(()=>{for(const {sidebarItemView:_0x43ac87,changedProp:_0x21c6ec}of this[_0x21c5('0x3e')])_0x21c5('0x3f')===_0x21c6ec?this[_0x21c5('0x12')](_0x43ac87):this[_0x21c5('0x3b')](_0x43ac87);this['_recalculateBuffer']=[];},0xa),this[_0x21c5('0x3e')][_0x21c5('0x1')]({'sidebarItemView':_0x5af9fa,'changedProp':_0x4ae5fe});}['getSidebarItemView'](_0x44c423){return this[_0x21c5('0x25')][_0x21c5('0x2b')](_0x44c423);}[_0x21c5('0x22')](){this[_0x21c5('0x2a')](),this[_0x21c5('0x13')][_0x21c5('0x22')]();}[_0x21c5('0x38')](_0x316241){const _0x3620c0=this['getSidebarItemView'](_0x316241);this[_0x21c5('0x2a')](_0x3620c0),this[_0x21c5('0x2a')](_0x316241[_0x21c5('0x13')]),_0x3620c0[_0x21c5('0x22')](),this[_0x21c5('0x25')][_0x21c5('0x21')](_0x316241),this[_0x21c5('0x1d')][_0x21c5('0x21')](_0x3620c0);}['_createSidebarView'](){const _0xce8a36=new _0xdd39a4(this['context']['locale']);return _0xce8a36['render'](),this['on'](_0x21c5('0x1a'),(_0x29a9ad,_0x1a8361,_0x439a3b,_0x5388d6)=>{_0x5388d6&&_0xce8a36[_0x21c5('0x39')]('minHeight'),_0x439a3b?_0xce8a36[_0x21c5('0x43')](_0x21c5('0x2f'))['to'](_0x439a3b,_0x21c5('0x3d')):_0xce8a36['minHeight']=null;}),_0xce8a36;}[_0x21c5('0x35')](){var _0xf89305;this[_0x21c5('0x3c')]=(null===(_0xf89305=this[_0x21c5('0x37')])||void 0x0===_0xf89305?void 0x0:_0xf89305[_0x21c5('0x1f')])?this[_0x21c5('0x11')](this[_0x21c5('0x37')][_0x21c5('0x1f')]):null;}[_0x21c5('0x46')](_0x4cc469){var _0xf9091f;const _0x34c994=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x4cc469),_0x2acdab=_0x34c994&&(null===(_0xf9091f=this[_0x21c5('0x37')])||void 0x0===_0xf9091f?void 0x0:_0xf9091f[_0x21c5('0x2b')](this[_0x21c5('0x37')][_0x21c5('0x2e')](_0x34c994)-0x1));return _0x2acdab&&this['getSidebarItemView'](_0x2acdab)||null;}[_0x21c5('0x3a')](_0x3e8a28){var _0x3f376c;const _0xa330d6=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x3e8a28),_0x1ff523=_0xa330d6&&(null===(_0x3f376c=this[_0x21c5('0x37')])||void 0x0===_0x3f376c?void 0x0:_0x3f376c[_0x21c5('0x2b')](this[_0x21c5('0x37')][_0x21c5('0x2e')](_0xa330d6)+0x1));return _0x1ff523&&this['getSidebarItemView'](_0x1ff523)||null;}[_0x21c5('0x2c')](_0x2ce616,_0x2ff623){_0x2ce616['updateHeight']();const _0x5f3203=H(_0x2ff623[_0x21c5('0x3d')]+this['_spaceBetweenItems'],_0x2ce616[_0x21c5('0x3f')]);return!!_0x5f3203&&(this[_0x21c5('0x30')](_0x2ff623,_0x2ff623[_0x21c5('0x3f')]-_0x5f3203),!0x0);}[_0x21c5('0x5')](_0x48d0ea,_0x4c60b7){_0x48d0ea[_0x21c5('0xc')]();const _0x472fe4=H(_0x48d0ea[_0x21c5('0x3d')]+this['_spaceBetweenItems'],_0x4c60b7['top']);return!!_0x472fe4&&(this[_0x21c5('0x30')](_0x4c60b7,_0x4c60b7[_0x21c5('0x3f')]+_0x472fe4,!0x1),!0x0);}[_0x21c5('0x45')](_0x500644){const _0x277cd8=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x500644);if(!_0x277cd8||!_0x277cd8[_0x21c5('0x26')]||!_0x277cd8[_0x21c5('0xe')])return;const _0xb3406a=this[_0x21c5('0x17')](_0x277cd8,_0x277cd8[_0x21c5('0xe')]);this[_0x21c5('0x30')](_0x500644,_0xb3406a);}[_0x21c5('0x17')](_0x337dcb,_0x43a92f){if(null===_0x43a92f)return 0x0;if(_0x337dcb[_0x21c5('0x26')]instanceof _0x763586)return _0x43a92f[_0x21c5('0x3f')];{const _0x255a89=new _0x763586(this['view'][_0x21c5('0x33')])[_0x21c5('0x3f')];return _0x43a92f[_0x21c5('0x3f')]-_0x255a89;}}['_setItemTop'](_0x2bfa70,_0x22744e,_0x10fcf1=this[_0x21c5('0xa')][_0x21c5('0x1b')][_0x21c5('0x2b')](_0x21c5('0x20'))){_0x10fcf1&&(_0x22744e=Math['max'](_0x22744e,this[_0x21c5('0x47')](_0x2bfa70))),_0x2bfa70[_0x21c5('0x3f')]=_0x22744e;}[_0x21c5('0x47')](_0x7aa547){let _0x488334=this['_getItemBefore'](_0x7aa547),_0x1e5797=0x0;for(;_0x488334;)_0x488334['updateHeight'](),_0x1e5797+=this['_spaceBetweenItems']+_0x488334[_0x21c5('0x9')],_0x488334=this[_0x21c5('0x46')](_0x488334);return _0x1e5797;}}function H(_0x1381c2,_0x278180){return Math[_0x21c5('0x19')](_0x1381c2-_0x278180,0x0);}function y(_0x53c5a9){return null!==_0x53c5a9&&_0x21c5('0x15')==typeof _0x53c5a9&&0x1===_0x53c5a9['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x513c=['ck-annotation-counter__badge','bind','set','ck-annotation-counter','isDirty','...','toString','children','ck-annotation-counter__badge--edit-mode','annotationType','_badge','ck-annotation-counter__badge--','number','setTemplate','counterView'];(function(_0x1e382f,_0x513ca8){const _0x5ec5a3=function(_0x4bcde1){while(--_0x4bcde1){_0x1e382f['push'](_0x1e382f['shift']());}};_0x5ec5a3(++_0x513ca8);}(_0x513c,0xe3));const _0x5ec5=function(_0x1e382f,_0x513ca8){_0x1e382f=_0x1e382f-0x0;let _0x5ec5a3=_0x513c[_0x1e382f];return _0x5ec5a3;};import{ButtonView as _0xc3edfa,View as _0x8e0bdd}from'ckeditor5/src/ui';import _0xc90117 from'../../../theme/icons/add-comment.svg';export default class D extends _0xc3edfa{constructor(_0x36666a){super(_0x36666a);const _0x3f7a6b=this['bindTemplate'];this[_0x5ec5('0x0')](_0x5ec5('0x2'),!0x1),this[_0x5ec5('0x0')]('number',0x0),this[_0x5ec5('0xe')](_0x5ec5('0x8'))['to'](this,'isDirty',this,_0x5ec5('0xa'),(_0x486c25,_0xe0cee1)=>_0x486c25?_0x5ec5('0x3'):_0xe0cee1[_0x5ec5('0x4')]()),this['set'](_0x5ec5('0x7'),''),this['icon']=_0xc90117,this['extendTemplate']({'attributes':{'class':[_0x5ec5('0x1')]}}),this['counterView']=new _0x8e0bdd(),this[_0x5ec5('0xc')][_0x5ec5('0xb')]({'tag':'span','attributes':{'class':[_0x5ec5('0xd'),_0x3f7a6b['to']('annotationType',_0x11a3c2=>_0x5ec5('0x9')+_0x11a3c2),_0x3f7a6b['if'](_0x5ec5('0x2'),_0x5ec5('0x6'))]},'children':[{'text':_0x3f7a6b['to'](_0x5ec5('0x8'))}]}),this[_0x5ec5('0x5')]['add'](this[_0x5ec5('0xc')]);}}
23
+ const _0x510d=['_badge','bindTemplate','ck-annotation-counter','bind','span','set','isDirty','counterView','toString','extendTemplate','...','annotationType','add','number','icon','ck-annotation-counter__badge--'];(function(_0x4c5d5a,_0x510dde){const _0x165ccf=function(_0x5ee8a5){while(--_0x5ee8a5){_0x4c5d5a['push'](_0x4c5d5a['shift']());}};_0x165ccf(++_0x510dde);}(_0x510d,0x1a5));const _0x165c=function(_0x4c5d5a,_0x510dde){_0x4c5d5a=_0x4c5d5a-0x0;let _0x165ccf=_0x510d[_0x4c5d5a];return _0x165ccf;};import{ButtonView as _0x598003,View as _0x57224f}from'ckeditor5/src/ui';import _0x1673fe from'../../../theme/icons/add-comment.svg';export default class D extends _0x598003{constructor(_0x188a30){super(_0x188a30);const _0x505958=this[_0x165c('0xc')];this[_0x165c('0x0')](_0x165c('0x1'),!0x1),this['set'](_0x165c('0x8'),0x0),this[_0x165c('0xe')](_0x165c('0xb'))['to'](this,'isDirty',this,_0x165c('0x8'),(_0x1c0efe,_0x151071)=>_0x1c0efe?_0x165c('0x5'):_0x151071[_0x165c('0x3')]()),this[_0x165c('0x0')](_0x165c('0x6'),''),this[_0x165c('0x9')]=_0x1673fe,this[_0x165c('0x4')]({'attributes':{'class':[_0x165c('0xd')]}}),this[_0x165c('0x2')]=new _0x57224f(),this[_0x165c('0x2')]['setTemplate']({'tag':_0x165c('0xf'),'attributes':{'class':['ck-annotation-counter__badge',_0x505958['to'](_0x165c('0x6'),_0x5422cb=>_0x165c('0xa')+_0x5422cb),_0x505958['if'](_0x165c('0x1'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x505958['to']('_badge')}]}),this['children'][_0x165c('0x7')](this[_0x165c('0x2')]);}}