@ckeditor/ckeditor5-comments 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20230811.0",
3
+ "version": "0.0.0-nightly-20230812.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-20230811.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230811.0",
46
+ "ckeditor5": "0.0.0-nightly-20230812.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230812.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 _0x113c=['annotation-invalid-target','length','render','set','object','focusableElements','add','function','_id','stopListening','_target','innerView','_assertCorrectTarget','refreshVisibility','view','filter','_type','target','element','every','type','isVisible','mainView','getClientRects','_getNormalizedTarget','isActive','nodeType','isArray','focusTracker','offsetParent','updateTargetRect','targetRect','item'];(function(_0x491ee2,_0x113c14){const _0x118653=function(_0x3f1745){while(--_0x3f1745){_0x491ee2['push'](_0x491ee2['shift']());}};_0x118653(++_0x113c14);}(_0x113c,0x197));const _0x1186=function(_0x491ee2,_0x113c14){_0x491ee2=_0x491ee2-0x0;let _0x118653=_0x113c[_0x491ee2];return _0x118653;};import{CKEditorError as _0x11475b,Rect as _0x1e006d,Collection as _0x1f522b,ObservableMixin as _0x261b6d}from'ckeditor5/src/utils';export default class d extends _0x261b6d(){constructor({view:_0x603c31,target:_0x1dda3b,type:_0xc0c868,isVisible:_0x5c23d5=!0x0}){super(),this['view']=_0x603c31,this[_0x1186('0x3')][_0x1186('0x7')]||this['view'][_0x1186('0x18')](),this[_0x1186('0x5')]=_0xc0c868,this['_target']=_0x1dda3b,d[_0x1186('0x1')](this['_getNormalizedTarget']()),this[_0x1186('0x1b')]=new _0x1f522b([this[_0x1186('0x3')][_0x1186('0x7')]],{'idProperty':_0x1186('0x1e')}),this[_0x1186('0x1b')]['on'](_0x1186('0x1c'),(_0x52e466,_0xf4715)=>{this['view'][_0x1186('0x11')][_0x1186('0x1c')](_0xf4715);}),this[_0x1186('0x1b')]['on']('remove',(_0x258eb3,_0x3a69fd)=>{this[_0x1186('0x3')][_0x1186('0x11')]['remove'](_0x3a69fd);}),this[_0x1186('0x19')](_0x1186('0xa'),_0x5c23d5);}get[_0x1186('0x9')](){return'function'==typeof this[_0x1186('0x5')]?this[_0x1186('0x5')]():this[_0x1186('0x5')];}get[_0x1186('0x0')](){return this['view'][_0x1186('0xb')];}get['target'](){const _0x3643b2=this[_0x1186('0xd')]();return d[_0x1186('0x1')](_0x3643b2),_0x3643b2;}get[_0x1186('0x14')](){const _0x1b4df7=this[_0x1186('0x6')];if(null===_0x1b4df7)return null;if(_0x1b4df7 instanceof _0x1e006d)return _0x1b4df7;const _0x48fb5d=_0x1b4df7[_0x1186('0x4')](_0x5d2a0f=>function(_0x5db83b){const _0x115891=_0x5db83b[_0x1186('0x12')];if(_0x115891)return!0x0;const _0x577413=_0x5db83b[_0x1186('0xc')]()[_0x1186('0x15')](0x0);return!!_0x577413;}(_0x5d2a0f));return 0x0===_0x48fb5d[_0x1186('0x17')]?null:new _0x1e006d(_0x48fb5d[0x0][_0x1186('0xc')]()[_0x1186('0x15')](0x0));}get[_0x1186('0xe')](){return this[_0x1186('0x3')][_0x1186('0xe')];}set['isActive'](_0x1aaba3){this[_0x1186('0x3')]['isActive']=_0x1aaba3,this[_0x1186('0x3')][_0x1186('0xb')][_0x1186('0xe')]=_0x1aaba3;}[_0x1186('0x13')](){this[_0x1186('0x3')]['targetRect']=this[_0x1186('0x14')];}['destroy'](){this[_0x1186('0x1b')][_0x1186('0x1f')](),this[_0x1186('0x1b')]['clear'](),this['stopListening']();}[_0x1186('0x2')](){this['isVisible']=!!this[_0x1186('0x14')];}static['_assertCorrectTarget'](_0x54c7c4){if(!(null===_0x54c7c4||_0x54c7c4 instanceof _0x1e006d||Array[_0x1186('0x10')](_0x54c7c4)&&_0x54c7c4[_0x1186('0x8')](_0x464a5b=>y(_0x464a5b))))throw new _0x11475b(_0x1186('0x16'),null,{'target':_0x54c7c4});}['_getNormalizedTarget'](){const _0x5d7d67=_0x1186('0x1d')==typeof this[_0x1186('0x20')]?this[_0x1186('0x20')]():this[_0x1186('0x20')];return y(_0x5d7d67)?[_0x5d7d67]:_0x5d7d67;}}function y(_0x1d039a){return null!==_0x1d039a&&_0x1186('0x1a')==typeof _0x1d039a&&_0x1186('0xf')in _0x1d039a&&0x1===_0x1d039a['nodeType'];}
23
+ const _0x4f16=['add','remove','item','_target','isActive','view','function','innerView','element','length','focusTracker','annotation-invalid-target','targetRect','focusableElements','filter','isVisible','_getNormalizedTarget','every','isArray','set','clear','nodeType','_assertCorrectTarget','getClientRects','_type','refreshVisibility','_id','destroy','target','mainView'];(function(_0x1d081f,_0x4f16c6){const _0x5574aa=function(_0x342bd8){while(--_0x342bd8){_0x1d081f['push'](_0x1d081f['shift']());}};_0x5574aa(++_0x4f16c6);}(_0x4f16,0xde));const _0x5574=function(_0x1d081f,_0x4f16c6){_0x1d081f=_0x1d081f-0x0;let _0x5574aa=_0x4f16[_0x1d081f];return _0x5574aa;};import{CKEditorError as _0x214602,Rect as _0x3ffc1b,Collection as _0x1fb86e,ObservableMixin as _0x3f03ce}from'ckeditor5/src/utils';export default class d extends _0x3f03ce(){constructor({view:_0x4d8ca3,target:_0x44aad3,type:_0x34a414,isVisible:_0x4fb124=!0x0}){super(),this[_0x5574('0x17')]=_0x4d8ca3,this['view'][_0x5574('0x1a')]||this[_0x5574('0x17')]['render'](),this['_type']=_0x34a414,this[_0x5574('0x15')]=_0x44aad3,d['_assertCorrectTarget'](this[_0x5574('0x4')]()),this['focusableElements']=new _0x1fb86e([this['view'][_0x5574('0x1a')]],{'idProperty':_0x5574('0xe')}),this[_0x5574('0x1')]['on']('add',(_0x30786a,_0x37002c)=>{this['view']['focusTracker'][_0x5574('0x12')](_0x37002c);}),this[_0x5574('0x1')]['on'](_0x5574('0x13'),(_0x59bf94,_0x15f3f3)=>{this[_0x5574('0x17')][_0x5574('0x1c')]['remove'](_0x15f3f3);}),this[_0x5574('0x7')](_0x5574('0x3'),_0x4fb124);}get['type'](){return _0x5574('0x18')==typeof this[_0x5574('0xc')]?this[_0x5574('0xc')]():this[_0x5574('0xc')];}get[_0x5574('0x19')](){return this[_0x5574('0x17')][_0x5574('0x11')];}get['target'](){const _0x38e980=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x38e980),_0x38e980;}get[_0x5574('0x0')](){const _0x3691a2=this[_0x5574('0x10')];if(null===_0x3691a2)return null;if(_0x3691a2 instanceof _0x3ffc1b)return _0x3691a2;const _0x95bbc3=_0x3691a2[_0x5574('0x2')](_0x21be9b=>function(_0x428167){const _0x5967ca=_0x428167['offsetParent'];if(_0x5967ca)return!0x0;const _0x95ef55=_0x428167[_0x5574('0xb')]()[_0x5574('0x14')](0x0);return!!_0x95ef55;}(_0x21be9b));return 0x0===_0x95bbc3[_0x5574('0x1b')]?null:new _0x3ffc1b(_0x95bbc3[0x0][_0x5574('0xb')]()[_0x5574('0x14')](0x0));}get[_0x5574('0x16')](){return this[_0x5574('0x17')]['isActive'];}set[_0x5574('0x16')](_0x4c2f1f){this[_0x5574('0x17')]['isActive']=_0x4c2f1f,this[_0x5574('0x17')][_0x5574('0x11')][_0x5574('0x16')]=_0x4c2f1f;}['updateTargetRect'](){this[_0x5574('0x17')][_0x5574('0x0')]=this[_0x5574('0x0')];}[_0x5574('0xf')](){this[_0x5574('0x1')]['stopListening'](),this[_0x5574('0x1')][_0x5574('0x8')](),this['stopListening']();}[_0x5574('0xd')](){this[_0x5574('0x3')]=!!this['targetRect'];}static[_0x5574('0xa')](_0x14782b){if(!(null===_0x14782b||_0x14782b instanceof _0x3ffc1b||Array[_0x5574('0x6')](_0x14782b)&&_0x14782b[_0x5574('0x5')](_0x1bc069=>y(_0x1bc069))))throw new _0x214602(_0x5574('0x1d'),null,{'target':_0x14782b});}[_0x5574('0x4')](){const _0x2f1e90=_0x5574('0x18')==typeof this['_target']?this[_0x5574('0x15')]():this[_0x5574('0x15')];return y(_0x2f1e90)?[_0x2f1e90]:_0x2f1e90;}}function y(_0x4458bd){return null!==_0x4458bd&&'object'==typeof _0x4458bd&&_0x5574('0x9')in _0x4458bd&&0x1===_0x4458bd[_0x5574('0x9')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d41=['length','change:isFocused','annotationcollection-duplicated-item','set','left','updateTargetRect','listenTo','fire','sort','stopListening','blur','add','_focusTracker','has','from','_sort','_innerViewToAnnotation','focusableElements','clear','top','focusTracker','remove','delete','getByInnerView','_viewToAnnotation','get','_getOrderInContent','focus','targetRect','destroy','view'];(function(_0x536a11,_0x2d416d){const _0x164a3d=function(_0x41d954){while(--_0x41d954){_0x536a11['push'](_0x536a11['shift']());}};_0x164a3d(++_0x2d416d);}(_0x2d41,0x1c2));const _0x164a=function(_0x536a11,_0x2d416d){_0x536a11=_0x536a11-0x0;let _0x164a3d=_0x2d41[_0x536a11];return _0x164a3d;};import{CKEditorError as _0x9caa4b,Collection as _0x4a3877,FocusTracker as _0x365932}from'ckeditor5/src/utils';export default class x extends _0x4a3877{constructor(_0x393b4b=[]){super(),this[_0x164a('0x0')]=new Map(),this[_0x164a('0x8')]=new Map(),this[_0x164a('0x1b')]=new _0x365932(),this[_0x164a('0x1b')]['on'](_0x164a('0x10'),(_0x5e2630,_0x333457,_0x4a38e0)=>{_0x4a38e0||this[_0x164a('0x16')](_0x164a('0x19'));});for(const _0x26b6c3 of _0x393b4b)this[_0x164a('0x1a')](_0x26b6c3);}get['isFocused'](){return this['_focusTracker']['isFocused'];}[_0x164a('0x1a')](_0x582e60){if(this[_0x164a('0x1c')](_0x582e60))throw new _0x9caa4b(_0x164a('0x11'),null);this[_0x164a('0x0')][_0x164a('0x12')](_0x582e60['innerView'],_0x582e60),this[_0x164a('0x8')][_0x164a('0x12')](_0x582e60[_0x164a('0xe')],_0x582e60);for(const _0x685c9f of _0x582e60['focusableElements'])this[_0x164a('0x1b')][_0x164a('0x1a')](_0x685c9f);this[_0x164a('0x15')](_0x582e60['focusableElements'],_0x164a('0x1a'),(_0x3b997c,_0x53ee97)=>{this[_0x164a('0x1b')]['add'](_0x53ee97);}),this[_0x164a('0x15')](_0x582e60['focusableElements'],_0x164a('0x5'),(_0x40ea97,_0x49bc0a)=>{this[_0x164a('0x1b')][_0x164a('0x5')](_0x49bc0a);}),this['listenTo'](_0x582e60[_0x164a('0xe')]['focusTracker'],_0x164a('0x10'),(_0x127b96,_0x21befb,_0x59c619)=>{_0x59c619&&this[_0x164a('0x16')](_0x164a('0xb'),_0x582e60);}),_0x582e60[_0x164a('0x14')]();const _0x5c6d62=this[_0x164a('0xa')](_0x582e60['view']['targetRect']);return super[_0x164a('0x1a')](_0x582e60,_0x5c6d62);}[_0x164a('0x5')](_0x44f48f){if(!this['has'](_0x44f48f))throw new _0x9caa4b('annotationcollection-not-existing-item',null);this[_0x164a('0x18')](_0x44f48f[_0x164a('0xe')][_0x164a('0x4')]),this[_0x164a('0x18')](_0x44f48f[_0x164a('0x1')]);for(const _0x553152 of _0x44f48f[_0x164a('0x1')])this[_0x164a('0x1b')]['remove'](_0x553152);return this[_0x164a('0x8')][_0x164a('0x6')](_0x44f48f['view']),this[_0x164a('0x0')][_0x164a('0x6')](_0x44f48f['innerView']),super[_0x164a('0x5')](_0x44f48f);}[_0x164a('0x7')](_0x3f8764){return this[_0x164a('0x0')][_0x164a('0x9')](_0x3f8764);}['getByView'](_0x325a8c){return this[_0x164a('0x8')]['get'](_0x325a8c);}[_0x164a('0xd')](){super['clear'](),this['stopListening'](),this[_0x164a('0x0')]['clear'](),this[_0x164a('0x8')][_0x164a('0x2')](),this[_0x164a('0x1b')][_0x164a('0xd')]();}['refreshPositioning'](){for(const _0x100e47 of this)_0x100e47[_0x164a('0x14')]();this[_0x164a('0x1e')]();}['_sort'](){const _0x11e45a=Array[_0x164a('0x1d')](this)[_0x164a('0x17')]((_0x253c7f,_0x5c7c3c)=>v(_0x253c7f['view']['targetRect'],_0x5c7c3c['view'][_0x164a('0xc')]));for(let _0x1a097c=_0x11e45a['length']-0x1;_0x1a097c>0x0;_0x1a097c--){const _0x5061ca=_0x11e45a[_0x1a097c];_0x1a097c!==this['getIndex'](_0x5061ca)&&(this[_0x164a('0x5')](_0x5061ca),this[_0x164a('0x1a')](_0x5061ca));}}[_0x164a('0xa')](_0x10f135){let _0x5b09dc=0x0;if(!_0x10f135)return this[_0x164a('0xf')];for(const _0x111575 of this){const _0x581b2d=_0x111575[_0x164a('0xe')][_0x164a('0xc')];if(_0x581b2d){if(v(_0x10f135,_0x581b2d)<0x0)return _0x5b09dc;_0x5b09dc++;}}return _0x5b09dc;}}export function bindAnnotationCollections({source:_0x27ff5c,target:_0x2a6325,filter:_0x4d6133}){for(const _0xe1ba1a of _0x27ff5c)_0x4d6133(_0xe1ba1a)&&_0x2a6325[_0x164a('0x1a')](_0xe1ba1a);_0x2a6325[_0x164a('0x15')](_0x27ff5c,'add',(_0x130d0c,_0x140d33)=>{_0x4d6133(_0x140d33)&&_0x2a6325[_0x164a('0x1a')](_0x140d33);}),_0x2a6325[_0x164a('0x15')](_0x27ff5c,_0x164a('0x5'),(_0x3da1ea,_0x3b4afc)=>{_0x2a6325[_0x164a('0x1c')](_0x3b4afc)&&_0x2a6325[_0x164a('0x5')](_0x3b4afc);});}function v(_0x5cbe81,_0x2cca1d){if(null===_0x5cbe81&&null===_0x2cca1d)return 0x0;if(null===_0x5cbe81)return-0x1;if(null===_0x2cca1d)return 0x1;const _0x1bfd17=_0x5cbe81[_0x164a('0x3')]-_0x2cca1d[_0x164a('0x3')];return 0x0==_0x1bfd17?_0x5cbe81[_0x164a('0x13')]-_0x2cca1d[_0x164a('0x13')]:_0x1bfd17;}
23
+ const _0x3bdd=['top','view','_innerViewToAnnotation','listenTo','clear','fire','refreshPositioning','_focusTracker','innerView','destroy','_viewToAnnotation','getByInnerView','_getOrderInContent','blur','change:isFocused','from','targetRect','annotationcollection-duplicated-item','delete','getIndex','remove','focus','isFocused','annotationcollection-not-existing-item','stopListening','add','left','set','has','focusableElements','updateTargetRect','_sort','length','get','focusTracker'];(function(_0x275c3f,_0x3bddaf){const _0x2c06ae=function(_0x5dc95d){while(--_0x5dc95d){_0x275c3f['push'](_0x275c3f['shift']());}};_0x2c06ae(++_0x3bddaf);}(_0x3bdd,0x6e));const _0x2c06=function(_0x275c3f,_0x3bddaf){_0x275c3f=_0x275c3f-0x0;let _0x2c06ae=_0x3bdd[_0x275c3f];return _0x2c06ae;};import{CKEditorError as _0x42961c,Collection as _0x16129a,FocusTracker as _0x54cf3e}from'ckeditor5/src/utils';export default class x extends _0x16129a{constructor(_0x27b6f0=[]){super(),this[_0x2c06('0x20')]=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x54cf3e(),this[_0x2c06('0x2')]['on'](_0x2c06('0x9'),(_0x85f755,_0x4b7d25,_0x3fc951)=>{_0x3fc951||this[_0x2c06('0x0')](_0x2c06('0x8'));});for(const _0x40775b of _0x27b6f0)this['add'](_0x40775b);}get[_0x2c06('0x11')](){return this['_focusTracker'][_0x2c06('0x11')];}[_0x2c06('0x14')](_0x15778e){if(this['has'](_0x15778e))throw new _0x42961c(_0x2c06('0xc'),null);this[_0x2c06('0x20')][_0x2c06('0x16')](_0x15778e[_0x2c06('0x3')],_0x15778e),this[_0x2c06('0x5')][_0x2c06('0x16')](_0x15778e[_0x2c06('0x1f')],_0x15778e);for(const _0x270449 of _0x15778e[_0x2c06('0x18')])this['_focusTracker'][_0x2c06('0x14')](_0x270449);this[_0x2c06('0x21')](_0x15778e[_0x2c06('0x18')],_0x2c06('0x14'),(_0x488980,_0x40ab22)=>{this[_0x2c06('0x2')][_0x2c06('0x14')](_0x40ab22);}),this['listenTo'](_0x15778e[_0x2c06('0x18')],'remove',(_0x3f8c6b,_0x4f4cb8)=>{this[_0x2c06('0x2')][_0x2c06('0xf')](_0x4f4cb8);}),this[_0x2c06('0x21')](_0x15778e[_0x2c06('0x1f')][_0x2c06('0x1d')],_0x2c06('0x9'),(_0x240026,_0x4804d3,_0x2209db)=>{_0x2209db&&this[_0x2c06('0x0')](_0x2c06('0x10'),_0x15778e);}),_0x15778e['updateTargetRect']();const _0x3c8201=this[_0x2c06('0x7')](_0x15778e['view'][_0x2c06('0xb')]);return super['add'](_0x15778e,_0x3c8201);}[_0x2c06('0xf')](_0x294bd9){if(!this[_0x2c06('0x17')](_0x294bd9))throw new _0x42961c(_0x2c06('0x12'),null);this[_0x2c06('0x13')](_0x294bd9[_0x2c06('0x1f')]['focusTracker']),this[_0x2c06('0x13')](_0x294bd9[_0x2c06('0x18')]);for(const _0x4db58c of _0x294bd9[_0x2c06('0x18')])this['_focusTracker']['remove'](_0x4db58c);return this[_0x2c06('0x5')]['delete'](_0x294bd9[_0x2c06('0x1f')]),this['_innerViewToAnnotation'][_0x2c06('0xd')](_0x294bd9[_0x2c06('0x3')]),super['remove'](_0x294bd9);}[_0x2c06('0x6')](_0x41d40c){return this[_0x2c06('0x20')][_0x2c06('0x1c')](_0x41d40c);}['getByView'](_0x3f35ae){return this[_0x2c06('0x5')][_0x2c06('0x1c')](_0x3f35ae);}[_0x2c06('0x4')](){super[_0x2c06('0x22')](),this[_0x2c06('0x13')](),this[_0x2c06('0x20')][_0x2c06('0x22')](),this['_viewToAnnotation'][_0x2c06('0x22')](),this[_0x2c06('0x2')]['destroy']();}[_0x2c06('0x1')](){for(const _0x51edbe of this)_0x51edbe[_0x2c06('0x19')]();this[_0x2c06('0x1a')]();}['_sort'](){const _0x53a741=Array[_0x2c06('0xa')](this)['sort']((_0x42e4c1,_0x7f6010)=>v(_0x42e4c1['view'][_0x2c06('0xb')],_0x7f6010[_0x2c06('0x1f')][_0x2c06('0xb')]));for(let _0x13db3d=_0x53a741[_0x2c06('0x1b')]-0x1;_0x13db3d>0x0;_0x13db3d--){const _0x2d5db5=_0x53a741[_0x13db3d];_0x13db3d!==this[_0x2c06('0xe')](_0x2d5db5)&&(this[_0x2c06('0xf')](_0x2d5db5),this['add'](_0x2d5db5));}}[_0x2c06('0x7')](_0x1a31e4){let _0x20cbb2=0x0;if(!_0x1a31e4)return this[_0x2c06('0x1b')];for(const _0x163ca8 of this){const _0x2582b0=_0x163ca8[_0x2c06('0x1f')]['targetRect'];if(_0x2582b0){if(v(_0x1a31e4,_0x2582b0)<0x0)return _0x20cbb2;_0x20cbb2++;}}return _0x20cbb2;}}export function bindAnnotationCollections({source:_0x45a651,target:_0x38d956,filter:_0x25cf97}){for(const _0x43864e of _0x45a651)_0x25cf97(_0x43864e)&&_0x38d956[_0x2c06('0x14')](_0x43864e);_0x38d956['listenTo'](_0x45a651,_0x2c06('0x14'),(_0x3d28c3,_0x12046f)=>{_0x25cf97(_0x12046f)&&_0x38d956['add'](_0x12046f);}),_0x38d956['listenTo'](_0x45a651,_0x2c06('0xf'),(_0x5720df,_0x127d4d)=>{_0x38d956[_0x2c06('0x17')](_0x127d4d)&&_0x38d956[_0x2c06('0xf')](_0x127d4d);});}function v(_0x368d53,_0x48df23){if(null===_0x368d53&&null===_0x48df23)return 0x0;if(null===_0x368d53)return-0x1;if(null===_0x48df23)return 0x1;const _0x547313=_0x368d53[_0x2c06('0x1e')]-_0x48df23[_0x2c06('0x1e')];return 0x0==_0x547313?_0x368d53[_0x2c06('0x15')]-_0x48df23[_0x2c06('0x15')]:_0x547313;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59c6=['fire','change:isVisible','deactivateAll','listenTo','set','_visibleAnnotations','destroy','Annotations','has','isVisible','element','collection','activate','remove','stopListening','refreshVisibility','activeAnnotations','pluginName','view','_deactivateAllAnnotations','_removeActiveAnnotation','delete','add','_activateAnnotation','createAnnotation','createAnnotationView','source','focusTracker','getByInnerView','refreshPositioning','_bindAnnotationsToVisibleAnnotations'];(function(_0x46d3b1,_0x59c68b){const _0x114623=function(_0x365361){while(--_0x365361){_0x46d3b1['push'](_0x46d3b1['shift']());}};_0x114623(++_0x59c68b);}(_0x59c6,0x18d));const _0x1146=function(_0x46d3b1,_0x59c68b){_0x46d3b1=_0x46d3b1-0x0;let _0x114623=_0x59c6[_0x46d3b1];return _0x114623;};import{ContextPlugin as _0x16d9bb}from'ckeditor5/src/core';import _0x2d0141 from'./annotation';import _0x4b840e from'./annotationcollection';import _0x1003a2 from'./view/annotationview';export default class b extends _0x16d9bb{static get[_0x1146('0x17')](){return _0x1146('0xd');}constructor(_0x2db8e2){super(_0x2db8e2),this[_0x1146('0x11')]=new _0x4b840e(),this[_0x1146('0xb')]=new _0x4b840e(),this[_0x1146('0xa')](_0x1146('0x16'),new Set()),this[_0x1146('0x5')]();}[_0x1146('0x1c')](_0x44bd26){this['collection'][_0x1146('0x1c')](_0x44bd26);}['remove'](_0x47cdc6){this[_0x1146('0x11')][_0x1146('0x13')](_0x47cdc6),_0x47cdc6['destroy']();}[_0x1146('0x15')](){for(const _0x39da65 of this['collection'])_0x39da65[_0x1146('0x15')]();}[_0x1146('0x4')](){this['_visibleAnnotations'][_0x1146('0x4')]();}[_0x1146('0x3')](_0x56b833){return this['collection'][_0x1146('0x3')](_0x56b833);}[_0x1146('0x8')](){this[_0x1146('0x6')](_0x1146('0x19'));}[_0x1146('0xc')](){for(const _0x1161f0 of this['collection'])_0x1161f0[_0x1146('0xc')]();this['_visibleAnnotations'][_0x1146('0xc')](),this[_0x1146('0x11')][_0x1146('0xc')](),super[_0x1146('0xc')]();}[_0x1146('0x12')](_0x56b23e){this['fire'](_0x1146('0x1d'),_0x56b23e);}[_0x1146('0x1e')](_0xa1c90){return new _0x2d0141(_0xa1c90);}[_0x1146('0x0')](_0x2e2100,_0x140ed3){return new _0x1003a2(_0x2e2100,_0x140ed3);}['_addActiveAnnotation'](_0xd306b9){const _0xc67716=new Set(this[_0x1146('0x16')]);_0xc67716['add'](_0xd306b9),this[_0x1146('0x16')]=_0xc67716;}[_0x1146('0x1a')](_0x51ca74){const _0x2621d0=new Set(this[_0x1146('0x16')]);_0x2621d0[_0x1146('0x1b')](_0x51ca74),this[_0x1146('0x16')]=_0x2621d0;}[_0x1146('0x5')](){const _0x63d327=this['collection'],_0xc150aa=this['_visibleAnnotations'];function _0x4b9d94(_0x23742f){const _0x1ff7bb=_0x23742f[_0x1146('0x1')];_0x1ff7bb['isVisible']&&!_0xc150aa[_0x1146('0xe')](_0x1ff7bb)?_0xc150aa['add'](_0x1ff7bb):!_0x1ff7bb[_0x1146('0xf')]&&_0xc150aa[_0x1146('0xe')](_0x1ff7bb)&&_0xc150aa['remove'](_0x1ff7bb),_0x1ff7bb[_0x1146('0x18')]['focusTracker'][_0x1146('0x13')](_0x1ff7bb[_0x1146('0x18')]['element']),_0x1ff7bb[_0x1146('0x18')][_0x1146('0x2')][_0x1146('0x1c')](_0x1ff7bb[_0x1146('0x18')][_0x1146('0x10')]);}this[_0x1146('0x9')](_0x63d327,'add',(_0x940e58,_0x5de75d)=>{_0x5de75d[_0x1146('0xf')]&&_0xc150aa[_0x1146('0x1c')](_0x5de75d),this['listenTo'](_0x5de75d,_0x1146('0x7'),_0x4b9d94);}),this[_0x1146('0x9')](_0x63d327,_0x1146('0x13'),(_0x6dfc67,_0x34f0bc)=>{_0xc150aa[_0x1146('0xe')](_0x34f0bc)&&_0xc150aa[_0x1146('0x13')](_0x34f0bc),this[_0x1146('0x14')](_0x34f0bc,'change:isVisible',_0x4b9d94);});}}
23
+ const _0x1abf=['createAnnotation','getByInnerView','_removeActiveAnnotation','collection','listenTo','createAnnotationView','isVisible','refreshVisibility','_deactivateAllAnnotations','_activateAnnotation','element','view','refreshPositioning','_bindAnnotationsToVisibleAnnotations','_addActiveAnnotation','activeAnnotations','change:isVisible','has','deactivateAll','add','pluginName','remove','focusTracker','fire','activate','_visibleAnnotations','destroy','source'];(function(_0x250e7f,_0x1abfad){const _0x4cbcf7=function(_0x2ed6f8){while(--_0x2ed6f8){_0x250e7f['push'](_0x250e7f['shift']());}};_0x4cbcf7(++_0x1abfad);}(_0x1abf,0xff));const _0x4cbc=function(_0x250e7f,_0x1abfad){_0x250e7f=_0x250e7f-0x0;let _0x4cbcf7=_0x1abf[_0x250e7f];return _0x4cbcf7;};import{ContextPlugin as _0x3783ee}from'ckeditor5/src/core';import _0x59296d from'./annotation';import _0x1e857e from'./annotationcollection';import _0x3fd126 from'./view/annotationview';export default class b extends _0x3783ee{static get[_0x4cbc('0x11')](){return'Annotations';}constructor(_0x5f1ca3){super(_0x5f1ca3),this['collection']=new _0x1e857e(),this[_0x4cbc('0x16')]=new _0x1e857e(),this['set'](_0x4cbc('0xc'),new Set()),this[_0x4cbc('0xa')]();}[_0x4cbc('0x10')](_0x591272){this[_0x4cbc('0x0')][_0x4cbc('0x10')](_0x591272);}['remove'](_0x520125){this[_0x4cbc('0x0')][_0x4cbc('0x12')](_0x520125),_0x520125['destroy']();}[_0x4cbc('0x4')](){for(const _0x543c74 of this[_0x4cbc('0x0')])_0x543c74[_0x4cbc('0x4')]();}['refreshPositioning'](){this[_0x4cbc('0x16')][_0x4cbc('0x9')]();}['getByInnerView'](_0x4038c1){return this[_0x4cbc('0x0')][_0x4cbc('0x1a')](_0x4038c1);}[_0x4cbc('0xf')](){this[_0x4cbc('0x14')](_0x4cbc('0x5'));}['destroy'](){for(const _0x177933 of this[_0x4cbc('0x0')])_0x177933[_0x4cbc('0x17')]();this[_0x4cbc('0x16')][_0x4cbc('0x17')](),this['collection'][_0x4cbc('0x17')](),super[_0x4cbc('0x17')]();}[_0x4cbc('0x15')](_0x235a63){this[_0x4cbc('0x14')](_0x4cbc('0x6'),_0x235a63);}[_0x4cbc('0x19')](_0x147fac){return new _0x59296d(_0x147fac);}[_0x4cbc('0x2')](_0xd6b821,_0xe44cc0){return new _0x3fd126(_0xd6b821,_0xe44cc0);}[_0x4cbc('0xb')](_0x3673ed){const _0xecc56f=new Set(this['activeAnnotations']);_0xecc56f[_0x4cbc('0x10')](_0x3673ed),this[_0x4cbc('0xc')]=_0xecc56f;}[_0x4cbc('0x1b')](_0x49c1b9){const _0x227457=new Set(this[_0x4cbc('0xc')]);_0x227457['delete'](_0x49c1b9),this[_0x4cbc('0xc')]=_0x227457;}[_0x4cbc('0xa')](){const _0x14a670=this['collection'],_0x2dab5b=this[_0x4cbc('0x16')];function _0x512ba2(_0xe373e3){const _0x3f99b2=_0xe373e3[_0x4cbc('0x18')];_0x3f99b2['isVisible']&&!_0x2dab5b[_0x4cbc('0xe')](_0x3f99b2)?_0x2dab5b[_0x4cbc('0x10')](_0x3f99b2):!_0x3f99b2[_0x4cbc('0x3')]&&_0x2dab5b['has'](_0x3f99b2)&&_0x2dab5b[_0x4cbc('0x12')](_0x3f99b2),_0x3f99b2['view'][_0x4cbc('0x13')][_0x4cbc('0x12')](_0x3f99b2[_0x4cbc('0x8')][_0x4cbc('0x7')]),_0x3f99b2[_0x4cbc('0x8')][_0x4cbc('0x13')][_0x4cbc('0x10')](_0x3f99b2[_0x4cbc('0x8')]['element']);}this[_0x4cbc('0x1')](_0x14a670,_0x4cbc('0x10'),(_0x3fda94,_0x5042b9)=>{_0x5042b9[_0x4cbc('0x3')]&&_0x2dab5b['add'](_0x5042b9),this['listenTo'](_0x5042b9,'change:isVisible',_0x512ba2);}),this[_0x4cbc('0x1')](_0x14a670,_0x4cbc('0x12'),(_0x58a24a,_0x55a7c5)=>{_0x2dab5b['has'](_0x55a7c5)&&_0x2dab5b[_0x4cbc('0x12')](_0x55a7c5),this['stopListening'](_0x55a7c5,_0x4cbc('0xd'),_0x512ba2);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x80f0=['length','refilterAnnotations','_setSelectedAnnotations','size','get','_uis','function','filter','activate','listenTo','annotationsuis-missing-ui','_removeActiveAnnotation','collection','_deactivateAllAnnotations','detach','has','_visibleAnnotations','destroy','annotationsuis-annotation-mismatch','set','type','requires','deactivateAll','from','activeUIs','init','stopListening','AnnotationsUIs','pluginName','activeAnnotations','push','delete','annotationsuis-register-already-registered','setActiveAnnotation','_uisData','context','isActive','plugins','change:activeAnnotation','attach','switchTo','add','remove','annotationsuis-register-invalid-interface','register','find','deactivate'];(function(_0x134147,_0x80f07e){const _0x3b0a9d=function(_0x5bcfc7){while(--_0x5bcfc7){_0x134147['push'](_0x134147['shift']());}};_0x3b0a9d(++_0x80f07e);}(_0x80f0,0xb4));const _0x3b0a=function(_0x134147,_0x80f07e){_0x134147=_0x134147-0x0;let _0x3b0a9d=_0x80f0[_0x134147];return _0x3b0a9d;};import{ContextPlugin as _0x4822cb}from'ckeditor5/src/core';import{CKEditorError as _0x4aefaf}from'ckeditor5/src/utils';import _0x4e2c1f,{bindAnnotationCollections as _0x45c02a}from'./annotationcollection';import _0x39455b from'./annotations';export default class M extends _0x4822cb{static get[_0x3b0a('0x1d')](){return[_0x39455b];}static get[_0x3b0a('0x24')](){return _0x3b0a('0x23');}constructor(_0xb99427){super(_0xb99427),this[_0x3b0a('0x20')]=new Set(),this[_0x3b0a('0xd')]=new Map(),this['_uisData']=new Map();}[_0x3b0a('0x21')](){const _0x54d2c9=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')]['get'](_0x39455b);this[_0x3b0a('0x11')](_0x54d2c9,'_activateAnnotation',(_0x119d1a,_0x450523)=>{for(const _0x21df37 of this[_0x3b0a('0x20')]){const _0x9e8ba0=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x21df37);(0x0,this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x21df37)[_0x3b0a('0xf')])(_0x450523)&&_0x9e8ba0['setActiveAnnotation'](_0x450523);}}),this[_0x3b0a('0x11')](_0x54d2c9,_0x3b0a('0x15'),()=>{for(const _0x124a57 of this[_0x3b0a('0x20')]){this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x124a57)['setActiveAnnotation'](null);}}),this['listenTo'](_0x54d2c9[_0x3b0a('0x18')],'add',(_0x1788dc,_0x30fc89)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x30fc89);});}['hasActive'](){return this[_0x3b0a('0x20')][_0x3b0a('0xb')]>0x0;}[_0x3b0a('0x2c')](_0x4d653b){return this[_0x3b0a('0x20')][_0x3b0a('0x17')](_0x4d653b);}[_0x3b0a('0x10')](_0x52cded,_0x4c15ec=()=>!0x0){const _0x5718bb=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')][_0x3b0a('0xc')](_0x39455b);if(!this['_uis'][_0x3b0a('0x17')](_0x52cded))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x52cded});this[_0x3b0a('0x2c')](_0x52cded)&&this[_0x3b0a('0x7')](_0x52cded),this[_0x3b0a('0x20')][_0x3b0a('0x2')](_0x52cded);const _0x12a4cd=new _0x4e2c1f(),_0x2b11b7=_0x5718bb['_visibleAnnotations'];_0x45c02a({'source':_0x2b11b7,'target':_0x12a4cd,'filter':_0x4c15ec}),this['_uisData'][_0x3b0a('0x1b')](_0x52cded,{'collection':_0x12a4cd,'filter':_0x4c15ec});const _0x4c4410=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x52cded);_0x4c4410[_0x3b0a('0x0')](_0x12a4cd),this[_0x3b0a('0x11')](_0x4c4410,_0x3b0a('0x2e'),(_0x433ac2,_0x432f1c,_0x9bc941,_0x221f88)=>{_0x221f88&&_0x5718bb[_0x3b0a('0x13')](_0x221f88),_0x9bc941&&_0x5718bb['_addActiveAnnotation'](_0x9bc941);});}[_0x3b0a('0x7')](_0x2ac350){if(this[_0x3b0a('0x20')][_0x3b0a('0x27')](_0x2ac350),!this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x2ac350))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x2ac350});const _0x3cc862=this[_0x3b0a('0xd')]['get'](_0x2ac350);_0x3cc862[_0x3b0a('0x16')](),this[_0x3b0a('0x22')](_0x3cc862),this['_uisData']['get'](_0x2ac350)[_0x3b0a('0x14')][_0x3b0a('0x19')](),this[_0x3b0a('0x2a')][_0x3b0a('0x27')](_0x2ac350);}[_0x3b0a('0x1')](_0x53a110){if(!this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x53a110))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x53a110});const _0x2aa981=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')]['get'](_0x39455b),_0x5581ac=Array[_0x3b0a('0x1f')](_0x2aa981[_0x3b0a('0x25')])[0x0]||null;this[_0x3b0a('0x1e')](),this[_0x3b0a('0x10')](_0x53a110);const _0x3118ff=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x53a110);_0x3118ff[_0x3b0a('0x29')](_0x5581ac),_0x3118ff[_0x3b0a('0xa')]&&_0x5581ac&&_0x3118ff[_0x3b0a('0xa')]([_0x5581ac]);}[_0x3b0a('0x1e')](){for(const _0x4e4c7e of this[_0x3b0a('0x20')])this['deactivate'](_0x4e4c7e);}[_0x3b0a('0x5')](_0x495c6e,_0x1b7d3e){if(this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x495c6e))throw new _0x4aefaf(_0x3b0a('0x28'));if(_0x3b0a('0xe')!=typeof _0x1b7d3e['attach']||_0x3b0a('0xe')!=typeof _0x1b7d3e[_0x3b0a('0x16')]||'function'!=typeof _0x1b7d3e['setActiveAnnotation'])throw new _0x4aefaf(_0x3b0a('0x4'),null);this[_0x3b0a('0xd')][_0x3b0a('0x1b')](_0x495c6e,_0x1b7d3e);}[_0x3b0a('0x9')](){const _0x336762=this[_0x3b0a('0x2b')]['plugins'][_0x3b0a('0xc')](_0x39455b)['collection'],_0x308004=new Map(),_0x5928f5=Array[_0x3b0a('0x1f')](this[_0x3b0a('0x20')]);for(const _0x124fa8 of this['activeUIs']){const _0x4c43b6=this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x124fa8)['collection'];for(const _0x5a7496 of _0x4c43b6)_0x308004['set'](_0x5a7496,_0x124fa8);}for(const _0x1e1b5b of _0x336762){const _0xa061fc=_0x308004[_0x3b0a('0xc')](_0x1e1b5b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1e1b5b);const _0x373129=_0x5928f5[_0x3b0a('0x6')](_0x130b01=>this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x130b01)[_0x3b0a('0xf')](_0x1e1b5b));_0xa061fc!==_0x373129&&(_0xa061fc&&this['_uisData'][_0x3b0a('0xc')](_0xa061fc)[_0x3b0a('0x14')][_0x3b0a('0x3')](_0x1e1b5b),_0x373129&&this[_0x3b0a('0x2a')]['get'](_0x373129)[_0x3b0a('0x14')][_0x3b0a('0x2')](_0x1e1b5b));}}[_0x3b0a('0x19')](){this[_0x3b0a('0x1e')](),super[_0x3b0a('0x19')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3047e5){const _0x5abb6a=[];for(const _0x480f93 of this[_0x3b0a('0x20')]){(0x0,this[_0x3b0a('0x2a')]['get'](_0x480f93)[_0x3b0a('0xf')])(_0x3047e5)&&_0x5abb6a[_0x3b0a('0x26')](_0x480f93);}if(_0x5abb6a[_0x3b0a('0x8')]>0x1)throw new _0x4aefaf(_0x3b0a('0x1a'),null,{'matchedUIs':_0x5abb6a,'annotationType':_0x3047e5[_0x3b0a('0x1c')]});}}
23
+ const _0x4a30=['init','change:activeAnnotation','function','deactivate','register','_setSelectedAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','deactivateAll','_removeActiveAnnotation','_uis','isActive','delete','hasActive','AnnotationsUIs','add','_activateAnnotation','set','attach','pluginName','_deactivateAllAnnotations','size','annotationsuis-register-invalid-interface','has','destroy','annotationsuis-missing-ui','find','annotationsuis-register-already-registered','activate','refilterAnnotations','length','filter','context','type','activeUIs','collection','remove','from','detach','plugins','_addActiveAnnotation','get','_uisData','setActiveAnnotation','_visibleAnnotations','push'];(function(_0x1c5371,_0x4a30eb){const _0x2c74a4=function(_0x10b900){while(--_0x10b900){_0x1c5371['push'](_0x1c5371['shift']());}};_0x2c74a4(++_0x4a30eb);}(_0x4a30,0xdb));const _0x2c74=function(_0x1c5371,_0x4a30eb){_0x1c5371=_0x1c5371-0x0;let _0x2c74a4=_0x4a30[_0x1c5371];return _0x2c74a4;};import{ContextPlugin as _0x542f2a}from'ckeditor5/src/core';import{CKEditorError as _0x2f5908}from'ckeditor5/src/utils';import _0x1f3544,{bindAnnotationCollections as _0x5904c7}from'./annotationcollection';import _0x1965b4 from'./annotations';export default class M extends _0x542f2a{static get['requires'](){return[_0x1965b4];}static get[_0x2c74('0x1e')](){return _0x2c74('0x19');}constructor(_0x4484a6){super(_0x4484a6),this[_0x2c74('0x2d')]=new Set(),this['_uis']=new Map(),this[_0x2c74('0x7')]=new Map();}[_0x2c74('0xb')](){const _0xb5a78b=this[_0x2c74('0x2b')][_0x2c74('0x4')][_0x2c74('0x6')](_0x1965b4);this[_0x2c74('0x12')](_0xb5a78b,_0x2c74('0x1b'),(_0xa06809,_0x2dc965)=>{for(const _0x4ac370 of this[_0x2c74('0x2d')]){const _0x2db4f6=this[_0x2c74('0x15')][_0x2c74('0x6')](_0x4ac370);(0x0,this[_0x2c74('0x7')][_0x2c74('0x6')](_0x4ac370)['filter'])(_0x2dc965)&&_0x2db4f6[_0x2c74('0x8')](_0x2dc965);}}),this['listenTo'](_0xb5a78b,_0x2c74('0x1f'),()=>{for(const _0x255388 of this[_0x2c74('0x2d')]){this[_0x2c74('0x15')][_0x2c74('0x6')](_0x255388)[_0x2c74('0x8')](null);}}),this['listenTo'](_0xb5a78b[_0x2c74('0x9')],'add',(_0x33dd13,_0x5711ef)=>{this[_0x2c74('0x11')](_0x5711ef);});}[_0x2c74('0x18')](){return this[_0x2c74('0x2d')][_0x2c74('0x20')]>0x0;}[_0x2c74('0x16')](_0xb41eda){return this[_0x2c74('0x2d')][_0x2c74('0x22')](_0xb41eda);}[_0x2c74('0x27')](_0x2fc375,_0x28f055=()=>!0x0){const _0x17bce2=this[_0x2c74('0x2b')][_0x2c74('0x4')][_0x2c74('0x6')](_0x1965b4);if(!this[_0x2c74('0x15')]['has'](_0x2fc375))throw new _0x2f5908(_0x2c74('0x24'),this,{'uiName':_0x2fc375});this[_0x2c74('0x16')](_0x2fc375)&&this[_0x2c74('0xe')](_0x2fc375),this[_0x2c74('0x2d')][_0x2c74('0x1a')](_0x2fc375);const _0x257b56=new _0x1f3544(),_0x3f3cec=_0x17bce2[_0x2c74('0x9')];_0x5904c7({'source':_0x3f3cec,'target':_0x257b56,'filter':_0x28f055}),this[_0x2c74('0x7')][_0x2c74('0x1c')](_0x2fc375,{'collection':_0x257b56,'filter':_0x28f055});const _0x3d6e2d=this[_0x2c74('0x15')][_0x2c74('0x6')](_0x2fc375);_0x3d6e2d[_0x2c74('0x1d')](_0x257b56),this[_0x2c74('0x12')](_0x3d6e2d,_0x2c74('0xc'),(_0x5d93cb,_0x1547db,_0x3b6f74,_0x208bc3)=>{_0x208bc3&&_0x17bce2[_0x2c74('0x14')](_0x208bc3),_0x3b6f74&&_0x17bce2[_0x2c74('0x5')](_0x3b6f74);});}[_0x2c74('0xe')](_0x37a787){if(this[_0x2c74('0x2d')]['delete'](_0x37a787),!this['_uis'][_0x2c74('0x22')](_0x37a787))throw new _0x2f5908('annotationsuis-missing-ui',this,{'uiName':_0x37a787});const _0x22b5f5=this[_0x2c74('0x15')][_0x2c74('0x6')](_0x37a787);_0x22b5f5[_0x2c74('0x3')](),this['stopListening'](_0x22b5f5),this['_uisData'][_0x2c74('0x6')](_0x37a787)['collection'][_0x2c74('0x23')](),this['_uisData'][_0x2c74('0x17')](_0x37a787);}['switchTo'](_0x1683fd){if(!this['_uis'][_0x2c74('0x22')](_0x1683fd))throw new _0x2f5908(_0x2c74('0x24'),this,{'uiName':_0x1683fd});const _0x32ef65=this[_0x2c74('0x2b')]['plugins'][_0x2c74('0x6')](_0x1965b4),_0x117ad6=Array[_0x2c74('0x2')](_0x32ef65['activeAnnotations'])[0x0]||null;this[_0x2c74('0x13')](),this[_0x2c74('0x27')](_0x1683fd);const _0x48f213=this['_uis']['get'](_0x1683fd);_0x48f213[_0x2c74('0x8')](_0x117ad6),_0x48f213['_setSelectedAnnotations']&&_0x117ad6&&_0x48f213[_0x2c74('0x10')]([_0x117ad6]);}[_0x2c74('0x13')](){for(const _0x5d8dc9 of this[_0x2c74('0x2d')])this[_0x2c74('0xe')](_0x5d8dc9);}[_0x2c74('0xf')](_0xe815ce,_0x167230){if(this['_uis']['has'](_0xe815ce))throw new _0x2f5908(_0x2c74('0x26'));if(_0x2c74('0xd')!=typeof _0x167230[_0x2c74('0x1d')]||_0x2c74('0xd')!=typeof _0x167230[_0x2c74('0x3')]||'function'!=typeof _0x167230[_0x2c74('0x8')])throw new _0x2f5908(_0x2c74('0x21'),null);this[_0x2c74('0x15')][_0x2c74('0x1c')](_0xe815ce,_0x167230);}[_0x2c74('0x28')](){const _0x276b73=this['context'][_0x2c74('0x4')]['get'](_0x1965b4)['collection'],_0x35b578=new Map(),_0x3936e7=Array[_0x2c74('0x2')](this[_0x2c74('0x2d')]);for(const _0x40f037 of this['activeUIs']){const _0x3d1d13=this[_0x2c74('0x7')]['get'](_0x40f037)[_0x2c74('0x0')];for(const _0x9502e2 of _0x3d1d13)_0x35b578['set'](_0x9502e2,_0x40f037);}for(const _0x16a13a of _0x276b73){const _0x1638e1=_0x35b578[_0x2c74('0x6')](_0x16a13a);this[_0x2c74('0x11')](_0x16a13a);const _0x1de994=_0x3936e7[_0x2c74('0x25')](_0x1f88f7=>this[_0x2c74('0x7')][_0x2c74('0x6')](_0x1f88f7)[_0x2c74('0x2a')](_0x16a13a));_0x1638e1!==_0x1de994&&(_0x1638e1&&this[_0x2c74('0x7')][_0x2c74('0x6')](_0x1638e1)[_0x2c74('0x0')][_0x2c74('0x1')](_0x16a13a),_0x1de994&&this[_0x2c74('0x7')][_0x2c74('0x6')](_0x1de994)['collection'][_0x2c74('0x1a')](_0x16a13a));}}[_0x2c74('0x23')](){this[_0x2c74('0x13')](),super[_0x2c74('0x23')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x8a4f6c){const _0x1f8ce6=[];for(const _0x427f59 of this[_0x2c74('0x2d')]){(0x0,this['_uisData'][_0x2c74('0x6')](_0x427f59)['filter'])(_0x8a4f6c)&&_0x1f8ce6[_0x2c74('0xa')](_0x427f59);}if(_0x1f8ce6[_0x2c74('0x29')]>0x1)throw new _0x2f5908('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1f8ce6,'annotationType':_0x8a4f6c[_0x2c74('0x2c')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dfd=['document','requires','isCollapsed','isReadOnly','map','fire','hasDomSelection','getRanges','listenTo','view','change:range','innerView','EditorAnnotations','init','_editorAnnotationsData','pluginName','update','function','get','selection','directChange','focusTracker','from','change:isFocused','refresh','element','getByInnerView','model','_dataCollectors','editorannotations-invalid-source-callback','has','refreshSelectedViews','editing','add','blur','collection','range','uiUpdate','remove','_editorAnnotations','sort','addSourceCollector','annotation','containsRange','push','editor'];(function(_0x1517cb,_0x2dfdc0){const _0x343de0=function(_0x57f780){while(--_0x57f780){_0x1517cb['push'](_0x1517cb['shift']());}};_0x343de0(++_0x2dfdc0);}(_0x2dfd,0xbc));const _0x343d=function(_0x1517cb,_0x2dfdc0){_0x1517cb=_0x1517cb-0x0;let _0x343de0=_0x2dfd[_0x1517cb];return _0x343de0;};import{Plugin as _0x1c12ad}from'ckeditor5/src/core';import{CKEditorError as _0xe4a609}from'ckeditor5/src/utils';import{debounce as _0x187aa4}from'lodash-es';import _0x21b9bd from'./annotations';export default class k extends _0x1c12ad{static get[_0x343d('0x2b')](){return[_0x21b9bd];}static get[_0x343d('0xb')](){return _0x343d('0x8');}constructor(_0x5eaf71){super(_0x5eaf71),this[_0x343d('0x18')]=new Set(),this[_0x343d('0x23')]=new Set();}[_0x343d('0x9')](){const _0xf5baca=this['editor'],_0x3c2a87=_0xf5baca['model']['document']['selection'],_0x2bc768=_0x187aa4(()=>this[_0x343d('0x1b')](),0xa);_0x3c2a87['on'](_0x343d('0x6'),(_0x31ffb5,_0x614937)=>{_0x614937[_0x343d('0x10')]&&(_0x2bc768['cancel'](),this[_0x343d('0x1b')]());}),this[_0x343d('0x4')](_0xf5baca[_0x343d('0x1c')][_0x343d('0x5')][_0x343d('0x2a')],_0x343d('0x13'),(_0x21fa32,_0x2870a7,_0x155291)=>{_0x155291&&_0x2bc768();}),this[_0x343d('0x4')](_0xf5baca['ui']['focusTracker'],'change:isFocused',(_0x2eca52,_0x501887,_0x296880)=>{_0x296880||_0xf5baca[_0x343d('0x2d')]||this['fire'](_0x343d('0x1e'),{'isAnnotationTracked':_0x668d7d=>this[_0x343d('0xa')]['has'](_0x668d7d[_0x343d('0x7')])});}),this['listenTo'](this[_0x343d('0x29')]['ui'],_0x343d('0xc'),()=>this[_0x343d('0x1')](_0x343d('0x21')));}['registerAnnotation'](_0x22e173){if(this[_0x343d('0x23')][_0x343d('0x1a')](_0x22e173[_0x343d('0x5')]))return;this[_0x343d('0x23')][_0x343d('0x1d')](_0x22e173[_0x343d('0x5')]),this[_0x343d('0x29')]['ui']['focusTracker'][_0x343d('0x1d')](_0x22e173['view'][_0x343d('0x15')]);const _0xae3716=this[_0x343d('0x29')]['plugins'][_0x343d('0xe')](_0x21b9bd);this[_0x343d('0x4')](_0xae3716[_0x343d('0x1f')],_0x343d('0x22'),(_0x1d7f26,_0x25a8ef)=>{this[_0x343d('0x29')]['ui'][_0x343d('0x11')][_0x343d('0x22')](_0x25a8ef[_0x343d('0x5')][_0x343d('0x15')]),this[_0x343d('0x23')]['delete'](_0x25a8ef[_0x343d('0x5')]);});}[_0x343d('0x2')](){return this[_0x343d('0x29')]['editing'][_0x343d('0x5')][_0x343d('0x2')];}[_0x343d('0x25')](_0x26ca5a){if(_0x343d('0xd')!=typeof _0x26ca5a)throw new _0xe4a609(_0x343d('0x19'));this[_0x343d('0x18')][_0x343d('0x1d')](_0x26ca5a);}['refreshSelectedViews'](){this[_0x343d('0x1')](_0x343d('0x14'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4df1fc,annotations:_0x3dfe3a}){const _0x1fdab3=[],_0xf04bf2=this['editor'][_0x343d('0x17')]['document'][_0x343d('0xf')],_0x21ffb7=Array[_0x343d('0x12')](_0xf04bf2[_0x343d('0x3')]());for(const [_0x2662b7,_0x4854eb]of this[_0x343d('0xa')]){const _0x97d76d=_0x183953(_0x4854eb),_0x543db1=_0x3dfe3a[_0x343d('0x16')](_0x2662b7);_0x97d76d&&_0x543db1&&_0x1fdab3[_0x343d('0x28')]({'annotation':_0x543db1,'range':_0x97d76d});}function _0x183953(_0x4377a1){for(const _0x3fc1b2 of _0x4377a1)for(const _0xbd13d1 of _0x21ffb7)if(_0x3fc1b2[_0x343d('0x27')](_0xbd13d1,!_0xf04bf2[_0x343d('0x2c')]))return _0x3fc1b2;return null;}return _0x1fdab3[_0x343d('0x24')]((_0x1d39fd,_0x1e2eaf)=>{const _0x420b4a=_0x1d39fd[_0x343d('0x20')],_0x38dea6=_0x1e2eaf[_0x343d('0x20')];if(!_0x420b4a['isEqual'](_0x38dea6)){if(_0x420b4a[_0x343d('0x27')](_0x38dea6,!0x0))return 0x1;if(_0x38dea6[_0x343d('0x27')](_0x420b4a,!0x0))return-0x1;}return _0x1d39fd['annotation']==_0x4df1fc?-0x1:_0x1e2eaf[_0x343d('0x26')]==_0x4df1fc?0x1:0x0;})[_0x343d('0x0')](_0x12db59=>_0x12db59[_0x343d('0x26')]);}get[_0x343d('0xa')](){const _0x49ad7d=new Map();for(const _0x422885 of Array[_0x343d('0x12')](this[_0x343d('0x18')]))for(const [_0x352e6f,_0xb10c2c]of _0x422885())_0x49ad7d['set'](_0x352e6f,_0xb10c2c);return _0x49ad7d;}}
23
+ const _0x36cd=['push','delete','_editorAnnotations','range','editing','uiUpdate','model','focusTracker','annotation','element','addSourceCollector','map','set','selection','fire','_dataCollectors','editor','isCollapsed','listenTo','document','refreshSelectedViews','has','function','view','getOrderedSelectedAnnotations','pluginName','_editorAnnotationsData','add','isEqual','from','collection','plugins','update','EditorAnnotations','get','hasDomSelection','remove','requires','editorannotations-invalid-source-callback','registerAnnotation','refresh','innerView'];(function(_0x40bb40,_0x36cdf5){const _0x22d3b2=function(_0x2e7309){while(--_0x2e7309){_0x40bb40['push'](_0x40bb40['shift']());}};_0x22d3b2(++_0x36cdf5);}(_0x36cd,0x174));const _0x22d3=function(_0x40bb40,_0x36cdf5){_0x40bb40=_0x40bb40-0x0;let _0x22d3b2=_0x36cd[_0x40bb40];return _0x22d3b2;};import{Plugin as _0x8ccfe4}from'ckeditor5/src/core';import{CKEditorError as _0x2b699e}from'ckeditor5/src/utils';import{debounce as _0x299552}from'lodash-es';import _0x24a087 from'./annotations';export default class k extends _0x8ccfe4{static get[_0x22d3('0x1')](){return[_0x24a087];}static get[_0x22d3('0x1f')](){return _0x22d3('0x27');}constructor(_0x4f9bbb){super(_0x4f9bbb),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4738a6=this[_0x22d3('0x16')],_0x1f80cd=_0x4738a6[_0x22d3('0xc')][_0x22d3('0x19')][_0x22d3('0x13')],_0x543ed0=_0x299552(()=>this[_0x22d3('0x1a')](),0xa);_0x1f80cd['on']('change:range',(_0x37bf58,_0x4f5048)=>{_0x4f5048['directChange']&&(_0x543ed0['cancel'](),this[_0x22d3('0x1a')]());}),this['listenTo'](_0x4738a6['editing']['view'][_0x22d3('0x19')],'change:isFocused',(_0x1fff74,_0x237f5c,_0x95f842)=>{_0x95f842&&_0x543ed0();}),this[_0x22d3('0x18')](_0x4738a6['ui'][_0x22d3('0xd')],'change:isFocused',(_0x345c3c,_0x581f77,_0x54ea38)=>{_0x54ea38||_0x4738a6['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x5e195c=>this['_editorAnnotationsData'][_0x22d3('0x1b')](_0x5e195c[_0x22d3('0x5')])});}),this[_0x22d3('0x18')](this[_0x22d3('0x16')]['ui'],_0x22d3('0x26'),()=>this[_0x22d3('0x14')](_0x22d3('0xb')));}[_0x22d3('0x3')](_0x548d01){if(this[_0x22d3('0x8')][_0x22d3('0x1b')](_0x548d01[_0x22d3('0x1d')]))return;this[_0x22d3('0x8')][_0x22d3('0x21')](_0x548d01['view']),this[_0x22d3('0x16')]['ui'][_0x22d3('0xd')][_0x22d3('0x21')](_0x548d01[_0x22d3('0x1d')][_0x22d3('0xf')]);const _0x59bbb=this[_0x22d3('0x16')][_0x22d3('0x25')][_0x22d3('0x28')](_0x24a087);this['listenTo'](_0x59bbb[_0x22d3('0x24')],'remove',(_0x447c27,_0x99ff06)=>{this['editor']['ui'][_0x22d3('0xd')][_0x22d3('0x0')](_0x99ff06[_0x22d3('0x1d')][_0x22d3('0xf')]),this[_0x22d3('0x8')][_0x22d3('0x7')](_0x99ff06[_0x22d3('0x1d')]);});}[_0x22d3('0x29')](){return this[_0x22d3('0x16')][_0x22d3('0xa')][_0x22d3('0x1d')][_0x22d3('0x29')];}[_0x22d3('0x10')](_0xc7d21f){if(_0x22d3('0x1c')!=typeof _0xc7d21f)throw new _0x2b699e(_0x22d3('0x2'));this[_0x22d3('0x15')][_0x22d3('0x21')](_0xc7d21f);}['refreshSelectedViews'](){this['fire'](_0x22d3('0x4'));}[_0x22d3('0x1e')]({activeAnnotation:_0x511033,annotations:_0x3b6107}){const _0x4a0b2a=[],_0x74ccf=this['editor'][_0x22d3('0xc')][_0x22d3('0x19')][_0x22d3('0x13')],_0x1fb067=Array[_0x22d3('0x23')](_0x74ccf['getRanges']());for(const [_0x4d4c8a,_0x47ba61]of this[_0x22d3('0x20')]){const _0x245242=_0x517405(_0x47ba61),_0x190618=_0x3b6107['getByInnerView'](_0x4d4c8a);_0x245242&&_0x190618&&_0x4a0b2a[_0x22d3('0x6')]({'annotation':_0x190618,'range':_0x245242});}function _0x517405(_0x13725e){for(const _0x5b8426 of _0x13725e)for(const _0x2ca4b8 of _0x1fb067)if(_0x5b8426['containsRange'](_0x2ca4b8,!_0x74ccf[_0x22d3('0x17')]))return _0x5b8426;return null;}return _0x4a0b2a['sort']((_0x208042,_0x236a21)=>{const _0x3aa4e0=_0x208042[_0x22d3('0x9')],_0xa76d3d=_0x236a21[_0x22d3('0x9')];if(!_0x3aa4e0[_0x22d3('0x22')](_0xa76d3d)){if(_0x3aa4e0['containsRange'](_0xa76d3d,!0x0))return 0x1;if(_0xa76d3d['containsRange'](_0x3aa4e0,!0x0))return-0x1;}return _0x208042[_0x22d3('0xe')]==_0x511033?-0x1:_0x236a21[_0x22d3('0xe')]==_0x511033?0x1:0x0;})[_0x22d3('0x11')](_0x1aec76=>_0x1aec76[_0x22d3('0xe')]);}get[_0x22d3('0x20')](){const _0x24a657=new Map();for(const _0x868fff of Array['from'](this[_0x22d3('0x15')]))for(const [_0x1eaa0b,_0x27b815]of _0x868fff())_0x24a657[_0x22d3('0x12')](_0x1eaa0b,_0x27b815);return _0x24a657;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25ec=['hasView','editing','change:height','editor','fromRect','isActive','updatePosition','push','pluginName','inlineannotations-detach-not-attached','annotations','targetRect','getBoundingClientRect','register','destroy','set','document','selection','has','top','_setSelectedAnnotations','isAttached','getFirstRange','remove','switchTo','init','focus','context','delete','activeAnnotation','includes','_balloon','_removeAnnotationFromBalloon','_manuallyClosed','focusTracker','domConverter','_selectedAnnotations','listenTo','keystrokes','bottom','clear','plugins','add','visibleView','length','viewRangeToDom','getOrderedSelectedAnnotations','inlineannotations-attach-already-attached','addObserver','find','editableElement','map','isFocused','attach','every','getClientRects','change:visibleView','width','left','requires','inlineannotations-not-allowed-with-context','right','_addedAnnotations','_getBalloonTargetForAnnotation','detach','target','getByView','_forceRefresh','setActiveAnnotation','stopListening','_addAnnotationToBalloon','InlineAnnotations','Esc','mousedown','inline','change:isFocused','view','get'];(function(_0x5c7603,_0x25ec6e){const _0x10a261=function(_0xf5abec){while(--_0xf5abec){_0x5c7603['push'](_0x5c7603['shift']());}};_0x10a261(++_0x25ec6e);}(_0x25ec,0x1e8));const _0x10a2=function(_0x5c7603,_0x25ec6e){_0x5c7603=_0x5c7603-0x0;let _0x10a261=_0x25ec[_0x5c7603];return _0x10a261;};import{Plugin as _0x398c0b}from'ckeditor5/src/core';import _0x1da505 from'./annotationsuis';import _0xc47756 from'./editorannotations';import{ContextualBalloon as _0x28b9db}from'ckeditor5/src/ui';import{MouseObserver as _0x493e07}from'ckeditor5/src/engine';import{CKEditorError as _0x1fddc2,Rect as _0x1ee2c4}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x398c0b{static get[_0x10a2('0x27')](){return[_0xc47756,_0x28b9db,_0x1da505];}static get[_0x10a2('0x42')](){return _0x10a2('0x33');}constructor(_0x40b698){super(_0x40b698),_0x40b698[_0x10a2('0x3b')]['view'][_0x10a2('0x1c')](_0x493e07),this[_0x10a2('0x1')]=!0x1,this[_0x10a2('0x49')]('activeAnnotation',null),this['annotations']=null,this[_0x10a2('0xd')]=new Set(),this[_0x10a2('0xb')]=_0x40b698[_0x10a2('0x15')][_0x10a2('0x39')](_0x28b9db),this[_0x10a2('0x2a')]=new Set(),this['_selectedAnnotations']=[],this[_0x10a2('0x2f')]=!0x1;}[_0x10a2('0x5')](){const _0x3b5c6f=this[_0x10a2('0x3d')]['plugins'][_0x10a2('0x39')](_0x1da505);_0x3b5c6f[_0x10a2('0x7')]===this[_0x10a2('0x3d')]&&(_0x3b5c6f[_0x10a2('0x47')]('inline',this),this[_0x10a2('0x3d')][_0x10a2('0x12')]['set']('Esc',(_0xcd0c63,_0x4d2a7f)=>{const _0x472aeb=this[_0x10a2('0xb')];if(this[_0x10a2('0x1')]&&_0x472aeb[_0x10a2('0x17')]){const _0x30852d=this[_0x10a2('0x44')][_0x10a2('0x2e')](_0x472aeb[_0x10a2('0x17')]);_0x30852d&&this['_closeAnnotation'](_0x30852d),_0x4d2a7f();}}));}['afterInit'](){const _0x1ce567=this[_0x10a2('0x3d')][_0x10a2('0x15')][_0x10a2('0x39')](_0x1da505);_0x1ce567['context']===this[_0x10a2('0x3d')]&&(_0x1ce567['hasActive']()||_0x1ce567[_0x10a2('0x4')](_0x10a2('0x36')));}['setActiveAnnotation'](_0x5f275a){_0x5f275a!==this[_0x10a2('0x9')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x10a2('0x3f')]=!0x1),_0x5f275a&&this[_0x10a2('0x3d')]['ui'][_0x10a2('0xe')][_0x10a2('0x20')]&&(this[_0x10a2('0x44')][_0x10a2('0x4c')](_0x5f275a)&&this[_0x10a2('0x32')](_0x5f275a,!0x0),_0x5f275a[_0x10a2('0x3f')]=!0x0),_0x5f275a||this['_setSelectedAnnotations']([]),this[_0x10a2('0x9')]=_0x5f275a);}[_0x10a2('0x21')](_0x26f984){this['annotations']=_0x26f984;const _0x3ff261=this['editor']['plugins'][_0x10a2('0x39')](_0x1da505),_0x2c75d2=this[_0x10a2('0xb')];if(this[_0x10a2('0x1')])throw new _0x1fddc2(_0x10a2('0x1b'),this);if(_0x3ff261['context']!==this[_0x10a2('0x3d')])throw new _0x1fddc2(_0x10a2('0x28'),this);const _0x5b1f11=this[_0x10a2('0x3d')][_0x10a2('0x15')][_0x10a2('0x39')](_0xc47756);this[_0x10a2('0x11')](_0x5b1f11,'refresh',()=>{const _0x517e4e=_0x5b1f11[_0x10a2('0x1a')]({'annotations':this[_0x10a2('0x44')],'activeAnnotation':this[_0x10a2('0x9')]});var _0x4dd055,_0x3cedfa;!this['_forceRefresh']&&(_0x4dd055=_0x517e4e,_0x3cedfa=this[_0x10a2('0x10')],_0x4dd055['length']===_0x3cedfa[_0x10a2('0x18')]&&_0x4dd055[_0x10a2('0x22')](_0x4eff7a=>_0x3cedfa[_0x10a2('0xa')](_0x4eff7a)))||(this[_0x10a2('0x2f')]=!0x1,this[_0x10a2('0x0')](_0x517e4e),this['setActiveAnnotation'](_0x517e4e[0x0]||null));}),this[_0x10a2('0x11')](_0x5b1f11,'blur',(_0x1c44f2,{isAnnotationTracked:_0x346808})=>{this[_0x10a2('0x9')]&&_0x346808(this[_0x10a2('0x9')])&&(this[_0x10a2('0x0')]([]),this['setActiveAnnotation'](null));}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')]['ui']['focusTracker'],_0x10a2('0x37'),(_0x4e0e17,_0x43c119,_0x18719e)=>{_0x18719e||this[_0x10a2('0x30')](null);}),this[_0x10a2('0x11')](_0x26f984,_0x10a2('0x3'),(_0x22ead5,_0x232a01)=>{this[_0x10a2('0xc')](_0x232a01),_0x232a01===this['activeAnnotation']&&this[_0x10a2('0x30')](null);}),this[_0x10a2('0x11')](_0x2c75d2,_0x10a2('0x24'),(_0x34a2d4,_0x2dc956,_0x47c0db,_0x618a5f)=>{_0x618a5f&&this['stopListening'](_0x618a5f);const _0x39e7e2=_0x26f984[_0x10a2('0x2e')](_0x47c0db);_0x47c0db&&_0x39e7e2&&(this[_0x10a2('0x11')](_0x47c0db,_0x10a2('0x3c'),()=>{_0x2c75d2['updatePosition']();}),this[_0x10a2('0x11')](_0x47c0db,_0x10a2('0x34'),()=>{this['_closeAnnotation'](_0x39e7e2),this[_0x10a2('0x3d')][_0x10a2('0x3b')][_0x10a2('0x38')][_0x10a2('0x6')]();}),this['activeAnnotation']!==_0x39e7e2&&this['setActiveAnnotation'](_0x39e7e2));}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')]['ui'],'update',()=>{_0x2c75d2[_0x10a2('0x17')]&&(_0x26f984[_0x10a2('0x2e')](_0x2c75d2[_0x10a2('0x17')])&&_0x2c75d2[_0x10a2('0x40')]());}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')][_0x10a2('0x3b')][_0x10a2('0x38')][_0x10a2('0x4a')],_0x10a2('0x35'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed'][_0x10a2('0x14')]();}),this[_0x10a2('0x3d')]['editing'][_0x10a2('0x38')][_0x10a2('0x4a')][_0x10a2('0x4b')][_0x10a2('0x1e')]&&this[_0x10a2('0x3d')][_0x10a2('0x3b')]['view'][_0x10a2('0x6')](),this[_0x10a2('0x1')]=!0x0;}[_0x10a2('0x2c')](){if(!this[_0x10a2('0x1')])throw new _0x1fddc2(_0x10a2('0x43'),this);this[_0x10a2('0x30')](null);for(const _0x2ceaab of this[_0x10a2('0x2a')])this[_0x10a2('0xc')](_0x2ceaab);this[_0x10a2('0x31')](),this[_0x10a2('0x1')]=!0x1,this[_0x10a2('0x44')]=null;}[_0x10a2('0x48')](){this[_0x10a2('0x1')]&&this[_0x10a2('0x2c')]();}[_0x10a2('0x0')](_0x1d230e){for(const _0x304fed of this[_0x10a2('0x10')])_0x1d230e[_0x10a2('0xa')](_0x304fed)||this['_manuallyClosed'][_0x10a2('0x8')](_0x304fed);for(const _0x1c34c4 of this[_0x10a2('0x44')])_0x1d230e['includes'](_0x1c34c4)||this[_0x10a2('0xc')](_0x1c34c4);if(this['editor']['ui'][_0x10a2('0xe')][_0x10a2('0x20')])for(const _0x48e962 of _0x1d230e)this[_0x10a2('0x32')](_0x48e962);this[_0x10a2('0x10')]=_0x1d230e;}[_0x10a2('0x32')](_0xdbc2ea,_0xb40439=!0x1){this['_manuallyClosed'][_0x10a2('0x4c')](_0xdbc2ea)||(this[_0x10a2('0x2a')][_0x10a2('0x4c')](_0xdbc2ea)||this[_0x10a2('0xb')][_0x10a2('0x3a')](_0xdbc2ea[_0x10a2('0x38')])||(this[_0x10a2('0x2a')][_0x10a2('0x16')](_0xdbc2ea),this['_balloon'][_0x10a2('0x16')]({'stackId':_0xdbc2ea[_0x10a2('0x38')]['id'],'view':_0xdbc2ea[_0x10a2('0x38')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xdbc2ea)}})),_0xb40439&&this[_0x10a2('0xb')]['showStack'](_0xdbc2ea[_0x10a2('0x38')]['id']));}[_0x10a2('0x2b')](_0x1e4390){const _0x538c82=_0x1e4390[_0x10a2('0x2d')],_0x91b9f7=this['editor'][_0x10a2('0x3b')]['view'],_0x316da8=_0x91b9f7[_0x10a2('0x4a')][_0x10a2('0x4b')][_0x10a2('0x2')](),_0x51c517=_0x91b9f7[_0x10a2('0xf')][_0x10a2('0x19')](_0x316da8);if(_0x51c517['collapse'](!0x0),_0x538c82){if(_0x538c82 instanceof _0x1ee2c4)return _0x538c82;let _0x34ce24=[];for(const _0x3ae739 of _0x538c82)_0x34ce24[_0x10a2('0x41')](...(_0x2682f8=_0x3ae739[_0x10a2('0x23')](),Array['from'](_0x2682f8)[_0x10a2('0x1f')](DOMRect[_0x10a2('0x3e')])));_0x34ce24=function(_0x4de5c9){const _0x59f92b=[];let _0x2370f7=_0x4de5c9[0x0];for(let _0x40956a=0x1;_0x40956a<_0x4de5c9[_0x10a2('0x18')];_0x40956a++)F(_0x2370f7,_0x4de5c9[_0x40956a])?_0x2370f7[_0x10a2('0x25')]+=_0x4de5c9[_0x40956a][_0x10a2('0x25')]:(_0x59f92b[_0x10a2('0x41')](_0x2370f7),_0x2370f7=_0x4de5c9[_0x40956a]);return _0x59f92b[_0x10a2('0x41')](_0x2370f7),_0x59f92b;}(_0x34ce24);const _0x251638=_0x51c517[_0x10a2('0x46')]();return _0x34ce24[_0x10a2('0x1d')](_0x291086=>_0x291086['top']<=_0x251638[_0x10a2('0x4d')]&&_0x291086['bottom']>=_0x251638[_0x10a2('0x13')]&&_0x291086[_0x10a2('0x26')]<=_0x251638[_0x10a2('0x26')]&&_0x291086[_0x10a2('0x29')]>=_0x251638[_0x10a2('0x29')])||_0x34ce24[0x0];}var _0x2682f8;return _0x1e4390[_0x10a2('0x45')]||_0x51c517;}[_0x10a2('0xc')](_0x391689){this['_addedAnnotations'][_0x10a2('0x4c')](_0x391689)&&this['_balloon']['hasView'](_0x391689[_0x10a2('0x38')])&&(this[_0x10a2('0x2a')]['delete'](_0x391689),this[_0x10a2('0xb')]['remove'](_0x391689[_0x10a2('0x38')]));}['_closeAnnotation'](_0x71d2f2){this[_0x10a2('0xd')][_0x10a2('0x16')](_0x71d2f2),this[_0x10a2('0xc')](_0x71d2f2);}}function F(_0x2aede,_0x43ee7f){return _0x2aede[_0x10a2('0x4d')]===_0x43ee7f[_0x10a2('0x4d')]&&_0x2aede[_0x10a2('0x13')]===_0x43ee7f[_0x10a2('0x13')]&&_0x2aede[_0x10a2('0x29')]===_0x43ee7f[_0x10a2('0x26')];}
23
+ const _0x3ecf=['_addAnnotationToBalloon','domConverter','getFirstRange','afterInit','isFocused','set','fromRect','change:height','switchTo','change:isFocused','includes','left','bottom','focusTracker','inlineannotations-detach-not-attached','focus','width','_closeAnnotation','top','isAttached','right','keystrokes','pluginName','_setSelectedAnnotations','view','collapse','addObserver','detach','isActive','_forceRefresh','visibleView','add','attach','blur','getByView','_getBalloonTargetForAnnotation','refresh','_balloon','_manuallyClosed','target','selection','get','inlineannotations-attach-already-attached','_removeAnnotationFromBalloon','activeAnnotation','setActiveAnnotation','showStack','remove','context','annotations','editing','length','mousedown','_selectedAnnotations','_addedAnnotations','has','listenTo','updatePosition','editor','stopListening','InlineAnnotations','change:visibleView','Esc','hasView','getOrderedSelectedAnnotations','plugins','delete','inline','viewRangeToDom','targetRect','document','push','map','getClientRects'];(function(_0x45119f,_0x3ecf28){const _0x2b0676=function(_0x429c7f){while(--_0x429c7f){_0x45119f['push'](_0x45119f['shift']());}};_0x2b0676(++_0x3ecf28);}(_0x3ecf,0x186));const _0x2b06=function(_0x45119f,_0x3ecf28){_0x45119f=_0x45119f-0x0;let _0x2b0676=_0x3ecf[_0x45119f];return _0x2b0676;};import{Plugin as _0xe75626}from'ckeditor5/src/core';import _0x4057b1 from'./annotationsuis';import _0x377c93 from'./editorannotations';import{ContextualBalloon as _0x14e8e5}from'ckeditor5/src/ui';import{MouseObserver as _0x4ece0d}from'ckeditor5/src/engine';import{CKEditorError as _0x3f6419,Rect as _0x4fcc34}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0xe75626{static get['requires'](){return[_0x377c93,_0x14e8e5,_0x4057b1];}static get[_0x2b06('0x2')](){return _0x2b06('0x28');}constructor(_0x258071){super(_0x258071),_0x258071[_0x2b06('0x1e')][_0x2b06('0x4')][_0x2b06('0x6')](_0x4ece0d),this[_0x2b06('0x49')]=!0x1,this[_0x2b06('0x3b')](_0x2b06('0x18'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x258071[_0x2b06('0x2d')][_0x2b06('0x15')](_0x14e8e5),this[_0x2b06('0x22')]=new Set(),this[_0x2b06('0x21')]=[],this[_0x2b06('0x9')]=!0x1;}['init'](){const _0x44f3e7=this['editor'][_0x2b06('0x2d')][_0x2b06('0x15')](_0x4057b1);_0x44f3e7['context']===this['editor']&&(_0x44f3e7['register'](_0x2b06('0x2f'),this),this['editor'][_0x2b06('0x1')][_0x2b06('0x3b')](_0x2b06('0x2a'),(_0x365f56,_0x2b7053)=>{const _0x2fa3de=this[_0x2b06('0x11')];if(this['isAttached']&&_0x2fa3de[_0x2b06('0xa')]){const _0x12effd=this[_0x2b06('0x1d')][_0x2b06('0xe')](_0x2fa3de[_0x2b06('0xa')]);_0x12effd&&this[_0x2b06('0x47')](_0x12effd),_0x2b7053();}}));}[_0x2b06('0x39')](){const _0x3f1980=this[_0x2b06('0x26')]['plugins'][_0x2b06('0x15')](_0x4057b1);_0x3f1980[_0x2b06('0x1c')]===this[_0x2b06('0x26')]&&(_0x3f1980['hasActive']()||_0x3f1980[_0x2b06('0x3e')]('inline'));}[_0x2b06('0x19')](_0x3b0511){_0x3b0511!==this[_0x2b06('0x18')]&&(this[_0x2b06('0x18')]&&(this[_0x2b06('0x18')][_0x2b06('0x8')]=!0x1),_0x3b0511&&this[_0x2b06('0x26')]['ui'][_0x2b06('0x43')][_0x2b06('0x3a')]&&(this[_0x2b06('0x1d')][_0x2b06('0x23')](_0x3b0511)&&this['_addAnnotationToBalloon'](_0x3b0511,!0x0),_0x3b0511[_0x2b06('0x8')]=!0x0),_0x3b0511||this[_0x2b06('0x3')]([]),this[_0x2b06('0x18')]=_0x3b0511);}[_0x2b06('0xc')](_0x3add43){this[_0x2b06('0x1d')]=_0x3add43;const _0x566fdf=this[_0x2b06('0x26')][_0x2b06('0x2d')]['get'](_0x4057b1),_0x596661=this['_balloon'];if(this[_0x2b06('0x49')])throw new _0x3f6419(_0x2b06('0x16'),this);if(_0x566fdf['context']!==this['editor'])throw new _0x3f6419('inlineannotations-not-allowed-with-context',this);const _0x427df9=this['editor'][_0x2b06('0x2d')][_0x2b06('0x15')](_0x377c93);this[_0x2b06('0x24')](_0x427df9,_0x2b06('0x10'),()=>{const _0x54e17d=_0x427df9[_0x2b06('0x2c')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2b06('0x18')]});var _0x261014,_0x5df536;!this[_0x2b06('0x9')]&&(_0x261014=_0x54e17d,_0x5df536=this[_0x2b06('0x21')],_0x261014['length']===_0x5df536[_0x2b06('0x1f')]&&_0x261014['every'](_0x438dc9=>_0x5df536[_0x2b06('0x40')](_0x438dc9)))||(this['_forceRefresh']=!0x1,this[_0x2b06('0x3')](_0x54e17d),this['setActiveAnnotation'](_0x54e17d[0x0]||null));}),this['listenTo'](_0x427df9,_0x2b06('0xd'),(_0x18d71c,{isAnnotationTracked:_0x5084a4})=>{this[_0x2b06('0x18')]&&_0x5084a4(this[_0x2b06('0x18')])&&(this[_0x2b06('0x3')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0x2b06('0x26')]['ui']['focusTracker'],_0x2b06('0x3f'),(_0x1b0f2c,_0x4d488a,_0x1f187f)=>{_0x1f187f||this[_0x2b06('0x19')](null);}),this['listenTo'](_0x3add43,'remove',(_0x5d3e0a,_0x413649)=>{this[_0x2b06('0x17')](_0x413649),_0x413649===this['activeAnnotation']&&this[_0x2b06('0x19')](null);}),this[_0x2b06('0x24')](_0x596661,_0x2b06('0x29'),(_0x1e9277,_0x186027,_0x466d64,_0x454566)=>{_0x454566&&this[_0x2b06('0x27')](_0x454566);const _0x511292=_0x3add43['getByView'](_0x466d64);_0x466d64&&_0x511292&&(this[_0x2b06('0x24')](_0x466d64,_0x2b06('0x3d'),()=>{_0x596661[_0x2b06('0x25')]();}),this[_0x2b06('0x24')](_0x466d64,_0x2b06('0x2a'),()=>{this[_0x2b06('0x47')](_0x511292),this[_0x2b06('0x26')][_0x2b06('0x1e')][_0x2b06('0x4')][_0x2b06('0x45')]();}),this[_0x2b06('0x18')]!==_0x511292&&this['setActiveAnnotation'](_0x511292));}),this['listenTo'](this[_0x2b06('0x26')]['ui'],'update',()=>{_0x596661[_0x2b06('0xa')]&&(_0x3add43[_0x2b06('0xe')](_0x596661[_0x2b06('0xa')])&&_0x596661[_0x2b06('0x25')]());}),this['listenTo'](this[_0x2b06('0x26')][_0x2b06('0x1e')]['view'][_0x2b06('0x32')],_0x2b06('0x20'),()=>{this[_0x2b06('0x9')]=!0x0,this[_0x2b06('0x12')]['clear']();}),this['editor'][_0x2b06('0x1e')][_0x2b06('0x4')][_0x2b06('0x32')][_0x2b06('0x14')]['editableElement']&&this['editor'][_0x2b06('0x1e')]['view']['focus'](),this[_0x2b06('0x49')]=!0x0;}[_0x2b06('0x7')](){if(!this[_0x2b06('0x49')])throw new _0x3f6419(_0x2b06('0x44'),this);this['setActiveAnnotation'](null);for(const _0x1a1e28 of this[_0x2b06('0x22')])this[_0x2b06('0x17')](_0x1a1e28);this[_0x2b06('0x27')](),this[_0x2b06('0x49')]=!0x1,this[_0x2b06('0x1d')]=null;}['destroy'](){this[_0x2b06('0x49')]&&this[_0x2b06('0x7')]();}[_0x2b06('0x3')](_0x257c9e){for(const _0x2f6444 of this[_0x2b06('0x21')])_0x257c9e[_0x2b06('0x40')](_0x2f6444)||this[_0x2b06('0x12')]['delete'](_0x2f6444);for(const _0x48a7fd of this['annotations'])_0x257c9e[_0x2b06('0x40')](_0x48a7fd)||this[_0x2b06('0x17')](_0x48a7fd);if(this[_0x2b06('0x26')]['ui'][_0x2b06('0x43')]['isFocused'])for(const _0x548db7 of _0x257c9e)this[_0x2b06('0x36')](_0x548db7);this[_0x2b06('0x21')]=_0x257c9e;}[_0x2b06('0x36')](_0x28dda6,_0x49719a=!0x1){this[_0x2b06('0x12')]['has'](_0x28dda6)||(this['_addedAnnotations']['has'](_0x28dda6)||this[_0x2b06('0x11')][_0x2b06('0x2b')](_0x28dda6['view'])||(this[_0x2b06('0x22')]['add'](_0x28dda6),this[_0x2b06('0x11')][_0x2b06('0xb')]({'stackId':_0x28dda6[_0x2b06('0x4')]['id'],'view':_0x28dda6['view'],'position':{'target':()=>this[_0x2b06('0xf')](_0x28dda6)}})),_0x49719a&&this[_0x2b06('0x11')][_0x2b06('0x1a')](_0x28dda6[_0x2b06('0x4')]['id']));}['_getBalloonTargetForAnnotation'](_0x34c749){const _0x311d81=_0x34c749[_0x2b06('0x13')],_0x4a9cb9=this[_0x2b06('0x26')][_0x2b06('0x1e')][_0x2b06('0x4')],_0x192bc6=_0x4a9cb9[_0x2b06('0x32')][_0x2b06('0x14')][_0x2b06('0x38')](),_0x484e51=_0x4a9cb9[_0x2b06('0x37')][_0x2b06('0x30')](_0x192bc6);if(_0x484e51[_0x2b06('0x5')](!0x0),_0x311d81){if(_0x311d81 instanceof _0x4fcc34)return _0x311d81;let _0x5c7b99=[];for(const _0x16ea47 of _0x311d81)_0x5c7b99['push'](...(_0x140f5d=_0x16ea47[_0x2b06('0x35')](),Array['from'](_0x140f5d)[_0x2b06('0x34')](DOMRect[_0x2b06('0x3c')])));_0x5c7b99=function(_0x2a233c){const _0xed8bcc=[];let _0x25b300=_0x2a233c[0x0];for(let _0x460bb4=0x1;_0x460bb4<_0x2a233c[_0x2b06('0x1f')];_0x460bb4++)F(_0x25b300,_0x2a233c[_0x460bb4])?_0x25b300[_0x2b06('0x46')]+=_0x2a233c[_0x460bb4][_0x2b06('0x46')]:(_0xed8bcc[_0x2b06('0x33')](_0x25b300),_0x25b300=_0x2a233c[_0x460bb4]);return _0xed8bcc['push'](_0x25b300),_0xed8bcc;}(_0x5c7b99);const _0x3cc99e=_0x484e51['getBoundingClientRect']();return _0x5c7b99['find'](_0xc57809=>_0xc57809['top']<=_0x3cc99e[_0x2b06('0x48')]&&_0xc57809[_0x2b06('0x42')]>=_0x3cc99e['bottom']&&_0xc57809[_0x2b06('0x41')]<=_0x3cc99e['left']&&_0xc57809[_0x2b06('0x0')]>=_0x3cc99e[_0x2b06('0x0')])||_0x5c7b99[0x0];}var _0x140f5d;return _0x34c749[_0x2b06('0x31')]||_0x484e51;}['_removeAnnotationFromBalloon'](_0x509a2f){this[_0x2b06('0x22')][_0x2b06('0x23')](_0x509a2f)&&this[_0x2b06('0x11')][_0x2b06('0x2b')](_0x509a2f[_0x2b06('0x4')])&&(this[_0x2b06('0x22')][_0x2b06('0x2e')](_0x509a2f),this[_0x2b06('0x11')][_0x2b06('0x1b')](_0x509a2f['view']));}['_closeAnnotation'](_0x27e729){this[_0x2b06('0x12')]['add'](_0x27e729),this[_0x2b06('0x17')](_0x27e729);}}function F(_0x33399e,_0x23acfc){return _0x33399e['top']===_0x23acfc[_0x2b06('0x48')]&&_0x33399e[_0x2b06('0x42')]===_0x23acfc[_0x2b06('0x42')]&&_0x33399e['right']===_0x23acfc[_0x2b06('0x41')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cdf=['refresh','mousedown','Esc','has','first','bodyCollection','view','hasDomSelection','_refreshPositioningDebounced','_domEmitter','editors','includes','blur','getByView','add','balloonPanelView','setActiveAnnotation','southArrowNorthWest','_attachListeners','unpin','high','ready','annotationType','length','preventDefault','esc','annotations','remove','removeEventListener','clear','_annotations','NarrowSidebar','execute','_setSelectedAnnotations','_hideBalloon','change:container','_selectedAnnotations','narrowSidebar','_manuallyClosedAnnotationViews','requires','detachFromDom','isDirty','addAnnotation','_detachListeners','resize','northArrowSouth','_detachFromContainer','isVisible','element','isAttached','_destroyEditorAnnotationsIntegration','focusableElements','focus','stopPropagation','_showBalloon','get','from','contains','create','stop','defaultPositions','register','ck-sidebar--narrow','_editorAnnotations','stopListening','find','content','set','narrowsidebar-detach-not-attached','keydown','pin','rearrange','uiUpdate','attachToDom','set:container','getSidebarItemView','init','listenTo','type','preventClosingBalloon','locale','getOrderedSelectedAnnotations','southArrowNorth','_updateBalloonPosition','EditorAnnotations','plugins','_annotationToNarrowView','detach','target','context','addEventListener','low','attach','activeAnnotation','_refreshPositioning','_integrateWithEditorAnnotations','destroy','delete','_attachToContainer','northArrowSouthEast'];(function(_0x2cdd3d,_0x5cdf66){const _0x196ba7=function(_0x1b1431){while(--_0x1b1431){_0x2cdd3d['push'](_0x2cdd3d['shift']());}};_0x196ba7(++_0x5cdf66);}(_0x5cdf,0x120));const _0x196b=function(_0x2cdd3d,_0x5cdf66){_0x2cdd3d=_0x2cdd3d-0x0;let _0x196ba7=_0x5cdf[_0x2cdd3d];return _0x196ba7;};import{ContextPlugin as _0x203cc8,Context as _0x3b6256}from'ckeditor5/src/core';import _0x10bdba from'./annotationsuis';import _0x48e11e from'./sidebar';import _0x1a5194 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x429397,BodyCollection as _0x1f3acb}from'ckeditor5/src/ui';import{CKEditorError as _0x1320ef,DomEmitterMixin as _0x49f1c6,keyCodes as _0x716ebf,Collection as _0x412490}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b1677}from'lodash-es';import _0x539083 from'./editorannotations';export default class s extends _0x203cc8{static get[_0x196b('0x33')](){return[_0x48e11e,_0x10bdba];}static get['pluginName'](){return _0x196b('0x2b');}constructor(_0x171296){super(_0x171296),this[_0x196b('0x3d')]=!0x1,this[_0x196b('0x32')]=new Set(),this['_domEmitter']=Object[_0x196b('0x46')](_0x49f1c6),this['_annotationToNarrowView']=new Map(),this[_0x196b('0x4f')](_0x196b('0x5'),null),this[_0x196b('0x26')]=null,this[_0x196b('0x30')]=[],this[_0x196b('0x4b')]=new _0x412490(),this[_0x196b('0x14')]=_0x5b1677(()=>{this[_0x196b('0x6')]();},0xfa,{'leading':!0x1});}[_0x196b('0x58')](){this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x10bdba)[_0x196b('0x49')](_0x196b('0x31'),this),this[_0x196b('0x11')]=new _0x1f3acb(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x1b')]=new _0x429397(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x11')][_0x196b('0x55')](),this[_0x196b('0x11')][_0x196b('0x1a')](this['balloonPanelView']);}[_0x196b('0x4')](_0x35589b){this[_0x196b('0x26')]=_0x35589b;const _0xeb36a8=this[_0x196b('0x1')]['plugins']['get'](_0x48e11e),_0x28c859=this[_0x196b('0x1b')];if(_0xeb36a8[_0x196b('0x2a')]=_0x35589b,this[_0x196b('0x3d')])throw new _0x1320ef('narrowsidebar-attach-already-attached',this);this[_0x196b('0x3d')]=!0x0,this[_0x196b('0x59')](_0xeb36a8,_0x196b('0x56'),()=>{this[_0x196b('0x63')](),this['listenTo'](_0xeb36a8,_0x196b('0x2f'),_0x511ae5=>{_0x511ae5['off'](),this[_0x196b('0x4')](_0x35589b);});}),_0xeb36a8[_0x196b('0xa')]({'viewClass':_0x196b('0x4a'),'spaceBetweenItems':0x5});const _0x2e124f=_0x3faa90=>{const _0x5e70ed=new _0x1a5194(this[_0x196b('0x1')][_0x196b('0x5c')]);_0xeb36a8[_0x196b('0x36')](_0x3faa90,_0x5e70ed),this[_0x196b('0x62')][_0x196b('0x4f')](_0x3faa90,_0x5e70ed),_0x5e70ed['bind']('isDirty',_0x196b('0x22'),'number')['to'](_0x3faa90[_0x196b('0x12')],_0x196b('0x35'),_0x196b('0x5a'),_0x196b('0x23')),_0x5e70ed['on'](_0x196b('0x2c'),()=>{this['_manuallyClosedAnnotationViews'][_0x196b('0x29')](),_0x28c859[_0x196b('0x4e')][_0x196b('0x10')]!==_0x3faa90[_0x196b('0x12')]?(this[_0x196b('0x42')](_0x3faa90),_0x3faa90[_0x196b('0x12')]['element'][_0x196b('0x40')](),this[_0x196b('0x1c')](_0x3faa90)):this['setActiveAnnotation'](null);});};for(const _0x50544c of _0x35589b)_0x2e124f(_0x50544c);this[_0x196b('0x59')](_0x35589b,_0x196b('0x1a'),(_0x434f4d,_0x2aeea3)=>{_0x2e124f(_0x2aeea3);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x27'),(_0x21ee54,_0x44d2f4,_0x33a37f)=>{this[_0x196b('0x62')][_0x196b('0x43')](_0x44d2f4)[_0x196b('0x8')](),this[_0x196b('0x62')][_0x196b('0x9')](_0x44d2f4),_0xeb36a8[_0x196b('0x53')]({'removedAnnotation':_0x44d2f4,'previousAnnotation':_0x35589b[_0x196b('0x43')](_0x33a37f-0x1),'nextAnnotation':_0x35589b['get'](_0x33a37f+0x1)}),_0x44d2f4===this[_0x196b('0x5')]&&this['setActiveAnnotation'](null);},{'priority':_0x196b('0x3')}),this[_0x196b('0x59')](_0x35589b,'focus',(_0xf405ba,_0x5d98b7)=>{this[_0x196b('0x1c')](_0x5d98b7);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x18'),()=>{this[_0x196b('0x1c')](null);}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0x51'),(_0x37a293,_0x48781d)=>{_0x48781d['keyCode']===_0x716ebf[_0x196b('0x25')]&&_0x28c859[_0x196b('0x3b')]&&(this[_0x196b('0x32')]['add'](_0x28c859[_0x196b('0x4e')]['first']),this[_0x196b('0x2e')](),_0x48781d[_0x196b('0x41')](),_0x48781d[_0x196b('0x24')]());}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0xd'),(_0x5518e5,_0x2460be)=>{const _0x197a03=_0x2460be['target'];_0x28c859[_0x196b('0x3b')]&&_0x28c859[_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0xeb36a8[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0x5518e5[_0x196b('0x5b')]||this[_0x196b('0x5')]&&this[_0x196b('0x5')][_0x196b('0x3f')][_0x196b('0x4d')](_0x3a2d9a=>_0x3a2d9a[_0x196b('0x45')](_0x197a03))||(this[_0x196b('0x32')]['clear'](),this[_0x196b('0x2e')](),this['setActiveAnnotation'](null));});const _0x47445b=this[_0x196b('0x1')]instanceof _0x3b6256?this[_0x196b('0x1')][_0x196b('0x16')]:new _0x412490([this['context']]);for(const _0x3df9b1 of _0x47445b)this[_0x196b('0x7')](_0x3df9b1);this['listenTo'](_0x47445b,_0x196b('0x1a'),(_0x579436,_0x519ca6)=>{this['listenTo'](_0x519ca6,_0x196b('0x21'),()=>{this[_0x196b('0x7')](_0x519ca6);});}),this[_0x196b('0x59')](_0x47445b,_0x196b('0x27'),(_0x5e958e,_0x3aeb44)=>{_0x3aeb44[_0x196b('0x61')]['has'](_0x196b('0x60'))&&this['_destroyEditorAnnotationsIntegration'](_0x3aeb44[_0x196b('0x61')][_0x196b('0x43')](_0x196b('0x60')));}),window[_0x196b('0x2')](_0x196b('0x38'),this[_0x196b('0x14')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x46b33f){if(_0x46b33f===this[_0x196b('0x5')])return;const _0x2f025d=this['context']['plugins']['get'](_0x48e11e);if(_0x2f025d[_0x196b('0xc')]({'blurredAnnotation':this[_0x196b('0x5')],'activatedAnnotation':_0x46b33f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x46b33f)_0x2f025d[_0x196b('0x57')](_0x46b33f)?this[_0x196b('0x42')](_0x46b33f):this[_0x196b('0x2e')]();else this[_0x196b('0x2e')]();this[_0x196b('0x5')]=_0x46b33f;}['detach'](){if(!this[_0x196b('0x3d')])throw new _0x1320ef(_0x196b('0x50'),this);this[_0x196b('0x1c')](null);const _0x48123a=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e);this[_0x196b('0x2e')](),Array[_0x196b('0x44')](this[_0x196b('0x62')]['values'](),_0x1e72c0=>_0x1e72c0['destroy']()),this[_0x196b('0x62')][_0x196b('0x29')](),_0x48123a[_0x196b('0x3a')](this[_0x196b('0x26')]),this[_0x196b('0x4c')](),this[_0x196b('0x15')][_0x196b('0x4c')](),this[_0x196b('0x1')]instanceof _0x3b6256&&this[_0x196b('0x4c')](this[_0x196b('0x1')][_0x196b('0x16')]);for(const _0x17be86 of Array[_0x196b('0x44')](this[_0x196b('0x4b')]))this[_0x196b('0x3e')](_0x17be86);window[_0x196b('0x28')](_0x196b('0x38'),this[_0x196b('0x14')]),this[_0x196b('0x14')]['cancel'](),this[_0x196b('0x30')]=[],this[_0x196b('0x3d')]=!0x1,this['annotations']=null;}[_0x196b('0x8')](){this[_0x196b('0x3d')]&&this[_0x196b('0x63')](),this['bodyCollection'][_0x196b('0x34')]();}[_0x196b('0x7')](_0x3ef313){const _0x443a11=_0x3ef313[_0x196b('0x61')][_0x196b('0x43')](_0x539083),_0x4a7657=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e),_0x187a40=this[_0x196b('0x26')],_0x1257b4=this[_0x196b('0x1b')],_0x40d6e2=()=>{const _0x514208=_0x443a11[_0x196b('0x5d')]({'annotations':this[_0x196b('0x26')],'activeAnnotation':this[_0x196b('0x5')]});this['_setSelectedAnnotations'](_0x514208),this[_0x196b('0x1c')](_0x514208[0x0]||null);};this[_0x196b('0x59')](_0x443a11,_0x196b('0xc'),_0x40d6e2),this['listenTo'](_0x443a11,_0x196b('0x18'),(_0x45d255,{isAnnotationTracked:_0x4de943})=>{this[_0x196b('0x5')]&&_0x4de943(this[_0x196b('0x5')])&&(this[_0x196b('0x2d')]([]),this[_0x196b('0x1c')](null));}),this['listenTo'](_0x443a11,_0x196b('0x54'),()=>{this[_0x196b('0x14')]();}),this['listenTo'](_0x187a40,'blur',_0x4d70d8=>{_0x443a11[_0x196b('0x13')]()&&_0x4d70d8[_0x196b('0x47')]();},{'priority':_0x196b('0x20')}),this[_0x196b('0x59')](this[_0x196b('0x15')],_0x196b('0xd'),(_0x4baaeb,_0x51b47e)=>{const _0x52959d=_0x51b47e[_0x196b('0x0')];_0x1257b4[_0x196b('0x3b')]&&_0x1257b4[_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||_0x4a7657[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||this['activeAnnotation']&&_0x443a11[_0x196b('0x13')]()&&(_0x40d6e2(),_0x4baaeb[_0x196b('0x5b')]=!0x0);},{'priority':_0x196b('0x20')}),this[_0x196b('0x4b')][_0x196b('0x1a')](_0x443a11);}[_0x196b('0x3e')](_0x2af604){_0x2af604&&(this[_0x196b('0x4c')](_0x2af604),this[_0x196b('0x4b')][_0x196b('0x27')](_0x2af604));}['_setSelectedAnnotations'](_0x20c2eb){for(const _0x1e40c9 of this[_0x196b('0x30')])_0x20c2eb[_0x196b('0x17')](_0x1e40c9)||this[_0x196b('0x32')][_0x196b('0x9')](_0x1e40c9[_0x196b('0x12')]);this['_selectedAnnotations']=_0x20c2eb;}[_0x196b('0x6')](){const _0x423d2a=this[_0x196b('0x1b')];this[_0x196b('0x26')]['refreshPositioning'](),_0x423d2a[_0x196b('0x3b')]&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa57099){if(this[_0x196b('0x32')][_0x196b('0xf')](_0xa57099[_0x196b('0x12')]))return;const _0x58ebe1=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')];_0x58ebe1!==_0xa57099[_0x196b('0x12')]?(_0x58ebe1&&this[_0x196b('0x37')](_0x58ebe1),this['_attachListeners'](_0xa57099[_0x196b('0x12')]),this[_0x196b('0x1b')]['content'][_0x196b('0x29')](),this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x1a')](_0xa57099['view']),this['_updateBalloonPosition']()):this[_0x196b('0x5f')]();}[_0x196b('0x5f')](){const _0x2aedfe=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')],_0x5531ac=_0x2aedfe&&this['annotations'][_0x196b('0x19')](_0x2aedfe);if(!_0x5531ac||!this[_0x196b('0x62')][_0x196b('0xf')](_0x5531ac))return;const _0x339050=this[_0x196b('0x62')][_0x196b('0x43')](_0x5531ac)['element'],_0x55e4b1=function(){const _0x4bfc70=_0x429397[_0x196b('0x48')];return[_0x4bfc70['southArrowNorthEast'],_0x4bfc70[_0x196b('0xb')],_0x4bfc70[_0x196b('0x5e')],_0x4bfc70[_0x196b('0x39')],_0x4bfc70[_0x196b('0x1d')],_0x4bfc70['northArrowSouthWest']];}();this['balloonPanelView'][_0x196b('0x52')]({'target':_0x339050,'positions':_0x55e4b1});}[_0x196b('0x2e')](){const _0x1ddc3d=this[_0x196b('0x1b')],_0x2de1e5=_0x1ddc3d[_0x196b('0x4e')][_0x196b('0x10')];_0x2de1e5&&(this[_0x196b('0x37')](_0x2de1e5),_0x1ddc3d[_0x196b('0x1f')](),_0x1ddc3d[_0x196b('0x4e')]['clear']());}[_0x196b('0x1e')](_0x2b94f4){this[_0x196b('0x59')](_0x2b94f4,'change:height',()=>this[_0x196b('0x5f')]()),this['listenTo'](_0x2b94f4,_0x196b('0xe'),(_0x32b15f,_0x56f9a6)=>{this[_0x196b('0x32')][_0x196b('0x1a')](_0x2b94f4),this[_0x196b('0x2e')](),_0x56f9a6();});}['_detachListeners'](_0x20587a){this[_0x196b('0x4c')](_0x20587a);}}
23
+ const _0x3833=['southArrowNorth','preventDefault','find','blur','ready','balloonPanelView','_updateBalloonPosition','_attachToContainer','_domEmitter','target','change:container','attach','rearrange','northArrowSouthEast','hasDomSelection','set:container','delete','northArrowSouth','_attachListeners','_showBalloon','destroy','_detachListeners','_annotationToNarrowView','listenTo','_refreshPositioningDebounced','setActiveAnnotation','locale','bind','set','getOrderedSelectedAnnotations','add','EditorAnnotations','_manuallyClosedAnnotationViews','isAttached','refresh','remove','northArrowSouthWest','has','resize','keyCode','keydown','_hideBalloon','narrowSidebar','annotationType','view','_selectedAnnotations','context','contains','_editorAnnotations','pluginName','narrowsidebar-detach-not-attached','change:height','get','cancel','_integrateWithEditorAnnotations','stopListening','_destroyEditorAnnotationsIntegration','editors','isVisible','preventClosingBalloon','element','content','focus','init','esc','Esc','number','addEventListener','_annotations','from','create','detach','mousedown','southArrowNorthEast','type','off','activeAnnotation','_refreshPositioning','stopPropagation','register','stop','removeEventListener','bodyCollection','getSidebarItemView','_setSelectedAnnotations','refreshPositioning','plugins','attachToDom','annotations','first','clear'];(function(_0x4c7aa5,_0x3833c3){const _0x28b71e=function(_0x4b632b){while(--_0x4b632b){_0x4c7aa5['push'](_0x4c7aa5['shift']());}};_0x28b71e(++_0x3833c3);}(_0x3833,0x1a5));const _0x28b7=function(_0x4c7aa5,_0x3833c3){_0x4c7aa5=_0x4c7aa5-0x0;let _0x28b71e=_0x3833[_0x4c7aa5];return _0x28b71e;};import{ContextPlugin as _0x2dfbe5,Context as _0x43d2f9}from'ckeditor5/src/core';import _0x31dd74 from'./annotationsuis';import _0xa85274 from'./sidebar';import _0x12e1a4 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x51333b,BodyCollection as _0x6e721c}from'ckeditor5/src/ui';import{CKEditorError as _0xd5aff9,DomEmitterMixin as _0x51c7cb,keyCodes as _0x54bf1f,Collection as _0x5764ca}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5319a6}from'lodash-es';import _0x1f7b2d from'./editorannotations';export default class s extends _0x2dfbe5{static get['requires'](){return[_0xa85274,_0x31dd74];}static get[_0x28b7('0x53')](){return'NarrowSidebar';}constructor(_0x3175cb){super(_0x3175cb),this[_0x28b7('0x43')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object[_0x28b7('0xd')](_0x51c7cb),this[_0x28b7('0x38')]=new Map(),this['set']('activeAnnotation',null),this[_0x28b7('0x1f')]=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5764ca(),this[_0x28b7('0x3a')]=_0x5319a6(()=>{this[_0x28b7('0x14')]();},0xfa,{'leading':!0x1});}[_0x28b7('0x6')](){this[_0x28b7('0x50')][_0x28b7('0x1d')]['get'](_0x31dd74)[_0x28b7('0x16')](_0x28b7('0x4c'),this),this[_0x28b7('0x19')]=new _0x6e721c(this[_0x28b7('0x50')][_0x28b7('0x3c')]),this[_0x28b7('0x27')]=new _0x51333b(this[_0x28b7('0x50')][_0x28b7('0x3c')]),this[_0x28b7('0x19')][_0x28b7('0x1e')](),this[_0x28b7('0x19')][_0x28b7('0x40')](this[_0x28b7('0x27')]);}['attach'](_0x328200){this[_0x28b7('0x1f')]=_0x328200;const _0x15e76d=this[_0x28b7('0x50')][_0x28b7('0x1d')][_0x28b7('0x56')](_0xa85274),_0x460b13=this[_0x28b7('0x27')];if(_0x15e76d[_0x28b7('0xb')]=_0x328200,this['isAttached'])throw new _0xd5aff9('narrowsidebar-attach-already-attached',this);this[_0x28b7('0x43')]=!0x0,this[_0x28b7('0x39')](_0x15e76d,_0x28b7('0x31'),()=>{this[_0x28b7('0xe')](),this['listenTo'](_0x15e76d,_0x28b7('0x2c'),_0x2595a3=>{_0x2595a3[_0x28b7('0x12')](),this[_0x28b7('0x2d')](_0x328200);});}),_0x15e76d[_0x28b7('0x29')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3bb6b8=_0x2fe12d=>{const _0x3e983e=new _0x12e1a4(this[_0x28b7('0x50')][_0x28b7('0x3c')]);_0x15e76d['addAnnotation'](_0x2fe12d,_0x3e983e),this[_0x28b7('0x38')][_0x28b7('0x3e')](_0x2fe12d,_0x3e983e),_0x3e983e[_0x28b7('0x3d')]('isDirty',_0x28b7('0x4d'),_0x28b7('0x9'))['to'](_0x2fe12d[_0x28b7('0x4e')],'isDirty',_0x28b7('0x11'),'length'),_0x3e983e['on']('execute',()=>{this[_0x28b7('0x42')]['clear'](),_0x460b13[_0x28b7('0x4')][_0x28b7('0x20')]!==_0x2fe12d[_0x28b7('0x4e')]?(this[_0x28b7('0x35')](_0x2fe12d),_0x2fe12d[_0x28b7('0x4e')]['element'][_0x28b7('0x5')](),this[_0x28b7('0x3b')](_0x2fe12d)):this[_0x28b7('0x3b')](null);});};for(const _0x41487e of _0x328200)_0x3bb6b8(_0x41487e);this[_0x28b7('0x39')](_0x328200,_0x28b7('0x40'),(_0x2ec420,_0x5bcdec)=>{_0x3bb6b8(_0x5bcdec);}),this[_0x28b7('0x39')](_0x328200,_0x28b7('0x45'),(_0x3a43b5,_0x45e059,_0x377d59)=>{this[_0x28b7('0x38')][_0x28b7('0x56')](_0x45e059)['destroy'](),this['_annotationToNarrowView'][_0x28b7('0x32')](_0x45e059),_0x15e76d[_0x28b7('0x2e')]({'removedAnnotation':_0x45e059,'previousAnnotation':_0x328200[_0x28b7('0x56')](_0x377d59-0x1),'nextAnnotation':_0x328200[_0x28b7('0x56')](_0x377d59+0x1)}),_0x45e059===this[_0x28b7('0x13')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x28b7('0x39')](_0x328200,'focus',(_0x5a370f,_0x9474b9)=>{this[_0x28b7('0x3b')](_0x9474b9);}),this[_0x28b7('0x39')](_0x328200,'blur',()=>{this[_0x28b7('0x3b')](null);}),this[_0x28b7('0x2a')]['listenTo'](document,_0x28b7('0x4a'),(_0x4d94c6,_0x509cab)=>{_0x509cab[_0x28b7('0x49')]===_0x54bf1f[_0x28b7('0x7')]&&_0x460b13[_0x28b7('0x1')]&&(this[_0x28b7('0x42')][_0x28b7('0x40')](_0x460b13[_0x28b7('0x4')]['first']),this[_0x28b7('0x4b')](),_0x509cab[_0x28b7('0x15')](),_0x509cab[_0x28b7('0x23')]());}),this[_0x28b7('0x2a')]['listenTo'](document,_0x28b7('0xf'),(_0x14573e,_0x78e6a6)=>{const _0x2a33cc=_0x78e6a6[_0x28b7('0x2b')];_0x460b13[_0x28b7('0x1')]&&_0x460b13[_0x28b7('0x3')][_0x28b7('0x51')](_0x2a33cc)||_0x15e76d[_0x28b7('0x4e')][_0x28b7('0x3')][_0x28b7('0x51')](_0x2a33cc)||_0x14573e[_0x28b7('0x2')]||this[_0x28b7('0x13')]&&this['activeAnnotation']['focusableElements'][_0x28b7('0x24')](_0x8e09e0=>_0x8e09e0['contains'](_0x2a33cc))||(this['_manuallyClosedAnnotationViews'][_0x28b7('0x21')](),this[_0x28b7('0x4b')](),this['setActiveAnnotation'](null));});const _0x149fd2=this[_0x28b7('0x50')]instanceof _0x43d2f9?this['context'][_0x28b7('0x0')]:new _0x5764ca([this[_0x28b7('0x50')]]);for(const _0x42625a of _0x149fd2)this['_integrateWithEditorAnnotations'](_0x42625a);this[_0x28b7('0x39')](_0x149fd2,_0x28b7('0x40'),(_0xb7bf24,_0x2348ac)=>{this[_0x28b7('0x39')](_0x2348ac,_0x28b7('0x26'),()=>{this[_0x28b7('0x58')](_0x2348ac);});}),this[_0x28b7('0x39')](_0x149fd2,_0x28b7('0x45'),(_0xaecfaa,_0x2977ab)=>{_0x2977ab[_0x28b7('0x1d')][_0x28b7('0x47')](_0x28b7('0x41'))&&this['_destroyEditorAnnotationsIntegration'](_0x2977ab[_0x28b7('0x1d')][_0x28b7('0x56')]('EditorAnnotations'));}),window[_0x28b7('0xa')](_0x28b7('0x48'),this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x166a78){if(_0x166a78===this[_0x28b7('0x13')])return;const _0x30e2e3=this['context']['plugins'][_0x28b7('0x56')](_0xa85274);if(_0x30e2e3['refresh']({'blurredAnnotation':this[_0x28b7('0x13')],'activatedAnnotation':_0x166a78,'disableAnimationOnActivatedAnnotation':!0x0}),_0x166a78)_0x30e2e3[_0x28b7('0x1a')](_0x166a78)?this[_0x28b7('0x35')](_0x166a78):this[_0x28b7('0x4b')]();else this[_0x28b7('0x4b')]();this[_0x28b7('0x13')]=_0x166a78;}[_0x28b7('0xe')](){if(!this[_0x28b7('0x43')])throw new _0xd5aff9(_0x28b7('0x54'),this);this[_0x28b7('0x3b')](null);const _0x10a50b=this['context'][_0x28b7('0x1d')][_0x28b7('0x56')](_0xa85274);this[_0x28b7('0x4b')](),Array[_0x28b7('0xc')](this[_0x28b7('0x38')]['values'](),_0x2dc714=>_0x2dc714[_0x28b7('0x36')]()),this[_0x28b7('0x38')][_0x28b7('0x21')](),_0x10a50b['_detachFromContainer'](this[_0x28b7('0x1f')]),this['stopListening'](),this[_0x28b7('0x2a')]['stopListening'](),this[_0x28b7('0x50')]instanceof _0x43d2f9&&this['stopListening'](this['context'][_0x28b7('0x0')]);for(const _0x5b390c of Array[_0x28b7('0xc')](this[_0x28b7('0x52')]))this[_0x28b7('0x5a')](_0x5b390c);window[_0x28b7('0x18')](_0x28b7('0x48'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x28b7('0x57')](),this[_0x28b7('0x4f')]=[],this[_0x28b7('0x43')]=!0x1,this[_0x28b7('0x1f')]=null;}['destroy'](){this[_0x28b7('0x43')]&&this['detach'](),this[_0x28b7('0x19')]['detachFromDom']();}[_0x28b7('0x58')](_0x1ef4ee){const _0x126a44=_0x1ef4ee[_0x28b7('0x1d')][_0x28b7('0x56')](_0x1f7b2d),_0x2c1001=this[_0x28b7('0x50')][_0x28b7('0x1d')]['get'](_0xa85274),_0x3a3ae9=this[_0x28b7('0x1f')],_0x2aaab9=this[_0x28b7('0x27')],_0x23a49e=()=>{const _0x28fc29=_0x126a44[_0x28b7('0x3f')]({'annotations':this[_0x28b7('0x1f')],'activeAnnotation':this[_0x28b7('0x13')]});this[_0x28b7('0x1b')](_0x28fc29),this['setActiveAnnotation'](_0x28fc29[0x0]||null);};this[_0x28b7('0x39')](_0x126a44,_0x28b7('0x44'),_0x23a49e),this[_0x28b7('0x39')](_0x126a44,_0x28b7('0x25'),(_0x57c6f1,{isAnnotationTracked:_0x4c57aa})=>{this[_0x28b7('0x13')]&&_0x4c57aa(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x28b7('0x3b')](null));}),this['listenTo'](_0x126a44,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x28b7('0x39')](_0x3a3ae9,_0x28b7('0x25'),_0x2e92dd=>{_0x126a44[_0x28b7('0x30')]()&&_0x2e92dd[_0x28b7('0x17')]();},{'priority':'high'}),this['listenTo'](this[_0x28b7('0x2a')],'mousedown',(_0x38a0ad,_0x460a68)=>{const _0xb0b9a0=_0x460a68[_0x28b7('0x2b')];_0x2aaab9['isVisible']&&_0x2aaab9[_0x28b7('0x3')][_0x28b7('0x51')](_0xb0b9a0)||_0x2c1001['view']['element'][_0x28b7('0x51')](_0xb0b9a0)||this[_0x28b7('0x13')]&&_0x126a44[_0x28b7('0x30')]()&&(_0x23a49e(),_0x38a0ad[_0x28b7('0x2')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x28b7('0x40')](_0x126a44);}[_0x28b7('0x5a')](_0x24f0ac){_0x24f0ac&&(this[_0x28b7('0x59')](_0x24f0ac),this[_0x28b7('0x52')]['remove'](_0x24f0ac));}['_setSelectedAnnotations'](_0x1f4dd4){for(const _0x53d11e of this['_selectedAnnotations'])_0x1f4dd4['includes'](_0x53d11e)||this['_manuallyClosedAnnotationViews'][_0x28b7('0x32')](_0x53d11e[_0x28b7('0x4e')]);this[_0x28b7('0x4f')]=_0x1f4dd4;}[_0x28b7('0x14')](){const _0x26054f=this[_0x28b7('0x27')];this[_0x28b7('0x1f')][_0x28b7('0x1c')](),_0x26054f[_0x28b7('0x1')]&&this['_updateBalloonPosition']();}[_0x28b7('0x35')](_0x551c3a){if(this['_manuallyClosedAnnotationViews'][_0x28b7('0x47')](_0x551c3a[_0x28b7('0x4e')]))return;const _0x3e4bec=this[_0x28b7('0x27')]['content'][_0x28b7('0x20')];_0x3e4bec!==_0x551c3a['view']?(_0x3e4bec&&this[_0x28b7('0x37')](_0x3e4bec),this[_0x28b7('0x34')](_0x551c3a['view']),this[_0x28b7('0x27')]['content'][_0x28b7('0x21')](),this['balloonPanelView'][_0x28b7('0x4')][_0x28b7('0x40')](_0x551c3a[_0x28b7('0x4e')]),this['_updateBalloonPosition']()):this[_0x28b7('0x28')]();}['_updateBalloonPosition'](){const _0x418671=this[_0x28b7('0x27')][_0x28b7('0x4')][_0x28b7('0x20')],_0x5bb6bd=_0x418671&&this[_0x28b7('0x1f')]['getByView'](_0x418671);if(!_0x5bb6bd||!this['_annotationToNarrowView'][_0x28b7('0x47')](_0x5bb6bd))return;const _0xad188c=this[_0x28b7('0x38')][_0x28b7('0x56')](_0x5bb6bd)[_0x28b7('0x3')],_0x242c7d=function(){const _0x5e66e9=_0x51333b['defaultPositions'];return[_0x5e66e9[_0x28b7('0x10')],_0x5e66e9[_0x28b7('0x2f')],_0x5e66e9[_0x28b7('0x22')],_0x5e66e9[_0x28b7('0x33')],_0x5e66e9['southArrowNorthWest'],_0x5e66e9[_0x28b7('0x46')]];}();this[_0x28b7('0x27')]['pin']({'target':_0xad188c,'positions':_0x242c7d});}['_hideBalloon'](){const _0x4213e1=this[_0x28b7('0x27')],_0x22f7b6=_0x4213e1[_0x28b7('0x4')][_0x28b7('0x20')];_0x22f7b6&&(this['_detachListeners'](_0x22f7b6),_0x4213e1['unpin'](),_0x4213e1[_0x28b7('0x4')][_0x28b7('0x21')]());}[_0x28b7('0x34')](_0x29ce3b){this[_0x28b7('0x39')](_0x29ce3b,_0x28b7('0x55'),()=>this[_0x28b7('0x28')]()),this['listenTo'](_0x29ce3b,_0x28b7('0x8'),(_0x5af16f,_0x39cadd)=>{this[_0x28b7('0x42')]['add'](_0x29ce3b),this[_0x28b7('0x4b')](),_0x39cadd();});}['_detachListeners'](_0x2c7ea8){this[_0x28b7('0x59')](_0x2c7ea8);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dea=['_getItemAfter','minHeight','_alignForTopChange','top','_spaceBetweenItems','_recalculate','change:_lastItem','change:top','height','pluginName','getIndex','length','_createSidebarView','_alignForBottomChange','view','_alignBeforeItem','stopListening','_activeAnnotation','push','object','getSidebarItemView','context','_targetTop','add','_annotationToSidebarItemView','appendChild','_getMaxAvailableTop','bottom','updateHeight','change:bottom','_alignAfterItem','target','remove','define','max','targetRect','sidebar-setcontainer-invalid-element','last','get','addAnnotation','_destroySidebarItemView','_sidebarItemViewToAnnotation','container','sidebar.preventScrollOutOfView','_getTargetTop','rearrange','unbind','_lastItem','delete','set','content','_recalculateBuffer','locale','class','clear','destroy','isActive','isAnimationDisabled','_attachToContainer','listenTo','element','Sidebar','_alignToTargetRect','init','refresh','_getItemBefore','render','_updateLastItem','_setItemTop','_annotations','list','config','sidebar-attachtocontainer-missing-container','setContainer'];(function(_0x2290a6,_0x2dea96){const _0x4b6f21=function(_0x59d1dd){while(--_0x59d1dd){_0x2290a6['push'](_0x2290a6['shift']());}};_0x4b6f21(++_0x2dea96);}(_0x2dea,0xf5));const _0x4b6f=function(_0x2290a6,_0x2dea96){_0x2290a6=_0x2290a6-0x0;let _0x4b6f21=_0x2dea[_0x2290a6];return _0x4b6f21;};import{ContextPlugin as _0x403b45}from'ckeditor5/src/core';import{Rect as _0x478338,CKEditorError as _0x14fa0c}from'ckeditor5/src/utils';import _0xcda41c from'./view/sidebarview';import _0x4f4d26 from'./view/sidebaritemview';export default class z extends _0x403b45{static get[_0x4b6f('0x3c')](){return _0x4b6f('0x26');}constructor(_0x3c4ae6){super(_0x3c4ae6),this[_0x4b6f('0x1a')](_0x4b6f('0x18'),void 0x0),this[_0x4b6f('0x41')]=this[_0x4b6f('0x3f')](),this[_0x4b6f('0x1a')](_0x4b6f('0x13'),null),this['_spaceBetweenItems']=0x19,this[_0x4b6f('0x12')]=new Map(),this[_0x4b6f('0x1')]=new Map(),this[_0x4b6f('0x48')][_0x4b6f('0x30')][_0x4b6f('0xa')](_0x4b6f('0x14'),!0x1),this[_0x4b6f('0x2e')]=null,this[_0x4b6f('0x44')]=null,this['_recalculateBuffer']=[];}[_0x4b6f('0x28')](){const _0x35d795=this[_0x4b6f('0x48')]['config']['get']('sidebar.container');_0x35d795&&this[_0x4b6f('0x32')](_0x35d795);}[_0x4b6f('0x32')](_0x264dfe){if(!y(_0x264dfe))throw new _0x14fa0c(_0x4b6f('0xd'));this[_0x4b6f('0x13')]=_0x264dfe;}[_0x4b6f('0x23')]({viewClass:_0x4e6841='',spaceBetweenItems:_0x59e735=0x19}={}){if(!y(this[_0x4b6f('0x13')]))throw new _0x14fa0c(_0x4b6f('0x31'),this);this['container'][_0x4b6f('0x2')](this[_0x4b6f('0x41')][_0x4b6f('0x25')]),this['view'][_0x4b6f('0x1e')]=_0x4e6841,this['_spaceBetweenItems']=_0x59e735;}[_0x4b6f('0x16')]({removedAnnotation:_0x4b349b,previousAnnotation:_0x5cf6ee,nextAnnotation:_0x2b67bf}){const _0x4207d2=this[_0x4b6f('0x47')](_0x4b349b);this[_0x4b6f('0x41')][_0x4b6f('0x2f')][_0x4b6f('0x9')](_0x4207d2),this[_0x4b6f('0x11')](_0x4b349b),_0x5cf6ee&&this[_0x4b6f('0x27')](this[_0x4b6f('0x47')](_0x5cf6ee)),_0x2b67bf&&this[_0x4b6f('0x27')](this[_0x4b6f('0x47')](_0x2b67bf)),this[_0x4b6f('0x2c')]();}[_0x4b6f('0x29')]({blurredAnnotation:_0x439d2b,activatedAnnotation:_0x215b8d,disableAnimationOnActivatedAnnotation:_0x3818a0}){if(this[_0x4b6f('0x44')]=_0x215b8d,_0x439d2b){_0x439d2b[_0x4b6f('0x21')]=!0x1;const _0x402889=this[_0x4b6f('0x47')](_0x439d2b);_0x402889&&_0x3818a0&&(_0x402889[_0x4b6f('0x22')]=!0x1);}if(_0x215b8d){const _0xbe8732=this[_0x4b6f('0x47')](_0x215b8d);_0xbe8732&&(_0x215b8d[_0x4b6f('0x21')]=!0x0,_0x3818a0&&(_0xbe8732['isAnimationDisabled']=!0x0,_0xbe8732['top']+=0x1),this['_alignToTargetRect'](_0xbe8732));}}['_detachFromContainer'](_0x19adf5){if(this[_0x4b6f('0x41')]['element'][_0x4b6f('0x9')](),_0x19adf5)for(const _0x33f735 of _0x19adf5)this[_0x4b6f('0x11')](_0x33f735);this[_0x4b6f('0x41')]['list'][_0x4b6f('0x1f')](),this['view'][_0x4b6f('0x1e')]='',this[_0x4b6f('0x18')]=null;}[_0x4b6f('0x10')](_0x3ef30b,_0x342092){_0x342092||(_0x342092=_0x3ef30b['view']);const _0x565431=new _0x4f4d26(this['context'][_0x4b6f('0x1d')]);this[_0x4b6f('0x12')]['set'](_0x565431,_0x3ef30b),this[_0x4b6f('0x1')][_0x4b6f('0x1a')](_0x3ef30b,_0x565431),_0x565431[_0x4b6f('0x1b')]['add'](_0x342092),this[_0x4b6f('0x24')](_0x3ef30b[_0x4b6f('0x41')],'change:targetRect',(_0x306b50,_0xe2a175,_0x3e5056)=>{const _0x2ddf68=this[_0x4b6f('0x15')](_0x3ef30b,_0x3e5056);_0x565431[_0x4b6f('0x49')]!=_0x2ddf68&&(_0x565431['_targetTop']=_0x2ddf68,this['_setItemTop'](_0x565431,_0x2ddf68));}),this[_0x4b6f('0x24')](_0x565431,_0x4b6f('0x3a'),()=>{this[_0x4b6f('0x38')](_0x565431,'top');}),this[_0x4b6f('0x24')](_0x565431,_0x4b6f('0x6'),()=>{this['_recalculate'](_0x565431,_0x4b6f('0x4'));}),this[_0x4b6f('0x27')](_0x565431);const _0x502cce=this[_0x4b6f('0x2a')](_0x565431);if(_0x502cce)this[_0x4b6f('0x7')](_0x502cce,_0x565431)||this[_0x4b6f('0x27')](_0x565431);else this[_0x4b6f('0x27')](_0x565431);return this[_0x4b6f('0x2c')](),this[_0x4b6f('0x41')]['list'][_0x4b6f('0x0')](_0x565431),_0x565431;}[_0x4b6f('0x35')](_0x4590b3){if(!_0x4590b3[_0x4b6f('0x1b')][_0x4b6f('0x3e')])return;const _0x35e3dc=this[_0x4b6f('0x2a')](_0x4590b3);if(!_0x35e3dc)return;const _0x4c8e5e=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x35e3dc),_0x3263ef=this[_0x4b6f('0x44')];_0x3263ef&&_0x3263ef===_0x4c8e5e?this[_0x4b6f('0x7')](_0x35e3dc,_0x4590b3):this[_0x4b6f('0x42')](_0x4590b3,_0x35e3dc);}[_0x4b6f('0x40')](_0x4dbfb0){if(!_0x4dbfb0[_0x4b6f('0x1b')][_0x4b6f('0x3e')])return;const _0x533b16=this[_0x4b6f('0x33')](_0x4dbfb0);if(!_0x533b16)return;const _0x3e8c7b=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x533b16),_0x471fa0=this[_0x4b6f('0x48')]['config']['get']('sidebar.preventScrollOutOfView'),_0xca7cb1=this[_0x4b6f('0x44')];_0xca7cb1&&_0xca7cb1===_0x3e8c7b&&_0x471fa0?(this['_alignBeforeItem'](_0x533b16,_0x4dbfb0),this[_0x4b6f('0x7')](_0x4dbfb0,_0x533b16)):_0xca7cb1&&_0xca7cb1===_0x3e8c7b?this['_alignBeforeItem'](_0x533b16,_0x4dbfb0):this['_alignAfterItem'](_0x4dbfb0,_0x533b16);}['_recalculate'](_0x1144f3,_0x1f2b38){0x0===this[_0x4b6f('0x1c')][_0x4b6f('0x3e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3b7834,changedProp:_0x5635a6}of this[_0x4b6f('0x1c')])_0x4b6f('0x36')===_0x5635a6?this[_0x4b6f('0x35')](_0x3b7834):this[_0x4b6f('0x40')](_0x3b7834);this['_recalculateBuffer']=[];},0xa),this[_0x4b6f('0x1c')][_0x4b6f('0x45')]({'sidebarItemView':_0x1144f3,'changedProp':_0x1f2b38});}['getSidebarItemView'](_0xfd16c3){return this[_0x4b6f('0x1')][_0x4b6f('0xf')](_0xfd16c3);}[_0x4b6f('0x20')](){this[_0x4b6f('0x43')](),this[_0x4b6f('0x41')][_0x4b6f('0x20')]();}['_destroySidebarItemView'](_0x2daff2){const _0x243626=this[_0x4b6f('0x47')](_0x2daff2);this[_0x4b6f('0x43')](_0x243626),this['stopListening'](_0x2daff2['view']),_0x243626[_0x4b6f('0x20')](),this['_annotationToSidebarItemView'][_0x4b6f('0x19')](_0x2daff2),this[_0x4b6f('0x12')][_0x4b6f('0x19')](_0x243626);}['_createSidebarView'](){const _0x23b77c=new _0xcda41c(this[_0x4b6f('0x48')]['locale']);return _0x23b77c[_0x4b6f('0x2b')](),this['on'](_0x4b6f('0x39'),(_0x4e2a0c,_0x3ece92,_0x4b9111,_0x233ec5)=>{_0x233ec5&&_0x23b77c[_0x4b6f('0x17')](_0x4b6f('0x34')),_0x4b9111?_0x23b77c['bind'](_0x4b6f('0x34'))['to'](_0x4b9111,_0x4b6f('0x4')):_0x23b77c['minHeight']=null;}),_0x23b77c;}[_0x4b6f('0x2c')](){var _0x282afa;this[_0x4b6f('0x18')]=(null===(_0x282afa=this['_annotations'])||void 0x0===_0x282afa?void 0x0:_0x282afa['last'])?this[_0x4b6f('0x47')](this[_0x4b6f('0x2e')][_0x4b6f('0xe')]):null;}['_getItemBefore'](_0x49b827){var _0x5aca19;const _0xa6f209=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x49b827),_0x33808c=_0xa6f209&&(null===(_0x5aca19=this[_0x4b6f('0x2e')])||void 0x0===_0x5aca19?void 0x0:_0x5aca19[_0x4b6f('0xf')](this['_annotations'][_0x4b6f('0x3d')](_0xa6f209)-0x1));return _0x33808c&&this[_0x4b6f('0x47')](_0x33808c)||null;}[_0x4b6f('0x33')](_0x55ffe8){var _0x4ed98b;const _0x3910c4=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x55ffe8),_0x401561=_0x3910c4&&(null===(_0x4ed98b=this[_0x4b6f('0x2e')])||void 0x0===_0x4ed98b?void 0x0:_0x4ed98b['get'](this[_0x4b6f('0x2e')]['getIndex'](_0x3910c4)+0x1));return _0x401561&&this['getSidebarItemView'](_0x401561)||null;}[_0x4b6f('0x42')](_0x168c4a,_0x1d7ba4){_0x168c4a[_0x4b6f('0x5')]();const _0x326977=H(_0x1d7ba4[_0x4b6f('0x4')]+this[_0x4b6f('0x37')],_0x168c4a[_0x4b6f('0x36')]);return!!_0x326977&&(this[_0x4b6f('0x2d')](_0x1d7ba4,_0x1d7ba4[_0x4b6f('0x36')]-_0x326977),!0x0);}[_0x4b6f('0x7')](_0x5e3771,_0xc9aa98){_0x5e3771[_0x4b6f('0x5')]();const _0x42ca82=H(_0x5e3771[_0x4b6f('0x4')]+this['_spaceBetweenItems'],_0xc9aa98[_0x4b6f('0x36')]);return!!_0x42ca82&&(this[_0x4b6f('0x2d')](_0xc9aa98,_0xc9aa98[_0x4b6f('0x36')]+_0x42ca82,!0x1),!0x0);}[_0x4b6f('0x27')](_0x50c0c8){const _0x14687c=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x50c0c8);if(!_0x14687c||!_0x14687c['target']||!_0x14687c[_0x4b6f('0xc')])return;const _0x14f974=this[_0x4b6f('0x15')](_0x14687c,_0x14687c[_0x4b6f('0xc')]);this[_0x4b6f('0x2d')](_0x50c0c8,_0x14f974);}['_getTargetTop'](_0x426e3e,_0x5777bb){if(null===_0x5777bb)return 0x0;if(_0x426e3e[_0x4b6f('0x8')]instanceof _0x478338)return _0x5777bb[_0x4b6f('0x36')];{const _0x3df586=new _0x478338(this[_0x4b6f('0x41')][_0x4b6f('0x25')])['top'];return _0x5777bb[_0x4b6f('0x36')]-_0x3df586;}}[_0x4b6f('0x2d')](_0x2353ad,_0x135c97,_0x2dafba=this[_0x4b6f('0x48')][_0x4b6f('0x30')][_0x4b6f('0xf')]('sidebar.preventScrollOutOfView')){_0x2dafba&&(_0x135c97=Math['max'](_0x135c97,this[_0x4b6f('0x3')](_0x2353ad))),_0x2353ad[_0x4b6f('0x36')]=_0x135c97;}[_0x4b6f('0x3')](_0x4c0b50){let _0x225a62=this['_getItemBefore'](_0x4c0b50),_0x2b014f=0x0;for(;_0x225a62;)_0x225a62['updateHeight'](),_0x2b014f+=this[_0x4b6f('0x37')]+_0x225a62[_0x4b6f('0x3b')],_0x225a62=this[_0x4b6f('0x2a')](_0x225a62);return _0x2b014f;}}function H(_0x449219,_0x601d55){return Math[_0x4b6f('0xb')](_0x449219-_0x601d55,0x0);}function y(_0x33f5b6){return null!==_0x33f5b6&&_0x4b6f('0x46')==typeof _0x33f5b6&&0x1===_0x33f5b6['nodeType'];}
23
+ const _0x5a4d=['set','stopListening','minHeight','content','get','listenTo','init','push','view','_alignForBottomChange','_targetTop','getIndex','_annotations','_attachToContainer','getSidebarItemView','delete','_sidebarItemViewToAnnotation','top','bottom','pluginName','sidebar-setcontainer-invalid-element','_getMaxAvailableTop','clear','targetRect','_recalculateBuffer','remove','isActive','_alignToTargetRect','updateHeight','isAnimationDisabled','height','appendChild','sidebar.preventScrollOutOfView','target','element','_annotationToSidebarItemView','_destroySidebarItemView','_lastItem','_getItemAfter','_alignForTopChange','_detachFromContainer','sidebar-attachtocontainer-missing-container','change:top','render','add','class','list','_updateLastItem','_alignBeforeItem','_spaceBetweenItems','destroy','_alignAfterItem','setContainer','rearrange','change:targetRect','change:bottom','_createSidebarView','_recalculate','Sidebar','container','_setItemTop','locale','context','config','length','_getItemBefore','bind','_getTargetTop','_activeAnnotation','max','last','object'];(function(_0x4c1078,_0x5a4d12){const _0x3f97c1=function(_0xdadbf3){while(--_0xdadbf3){_0x4c1078['push'](_0x4c1078['shift']());}};_0x3f97c1(++_0x5a4d12);}(_0x5a4d,0x1a3));const _0x3f97=function(_0x4c1078,_0x5a4d12){_0x4c1078=_0x4c1078-0x0;let _0x3f97c1=_0x5a4d[_0x4c1078];return _0x3f97c1;};import{ContextPlugin as _0x3652ce}from'ckeditor5/src/core';import{Rect as _0x7d7c20,CKEditorError as _0x34d546}from'ckeditor5/src/utils';import _0x4369d1 from'./view/sidebarview';import _0x4b409a from'./view/sidebaritemview';export default class z extends _0x3652ce{static get[_0x3f97('0x20')](){return _0x3f97('0x47');}constructor(_0x3a7c55){super(_0x3a7c55),this[_0x3f97('0xd')](_0x3f97('0x32'),void 0x0),this[_0x3f97('0x15')]=this[_0x3f97('0x45')](),this['set'](_0x3f97('0x0'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3f97('0x30')]=new Map(),this[_0x3f97('0x3')][_0x3f97('0x4')]['define'](_0x3f97('0x2d'),!0x1),this[_0x3f97('0x19')]=null,this[_0x3f97('0x9')]=null,this['_recalculateBuffer']=[];}[_0x3f97('0x13')](){const _0x478505=this[_0x3f97('0x3')][_0x3f97('0x4')][_0x3f97('0x11')]('sidebar.container');_0x478505&&this[_0x3f97('0x41')](_0x478505);}['setContainer'](_0x2986b2){if(!y(_0x2986b2))throw new _0x34d546(_0x3f97('0x21'));this[_0x3f97('0x0')]=_0x2986b2;}[_0x3f97('0x1a')]({viewClass:_0x27cb82='',spaceBetweenItems:_0x1f35b6=0x19}={}){if(!y(this[_0x3f97('0x0')]))throw new _0x34d546(_0x3f97('0x36'),this);this[_0x3f97('0x0')][_0x3f97('0x2c')](this[_0x3f97('0x15')][_0x3f97('0x2f')]),this[_0x3f97('0x15')][_0x3f97('0x3a')]=_0x27cb82,this[_0x3f97('0x3e')]=_0x1f35b6;}[_0x3f97('0x42')]({removedAnnotation:_0x3d0a67,previousAnnotation:_0x25422d,nextAnnotation:_0x43182a}){const _0x200f72=this[_0x3f97('0x1b')](_0x3d0a67);this[_0x3f97('0x15')]['list'][_0x3f97('0x26')](_0x200f72),this[_0x3f97('0x31')](_0x3d0a67),_0x25422d&&this[_0x3f97('0x28')](this[_0x3f97('0x1b')](_0x25422d)),_0x43182a&&this[_0x3f97('0x28')](this['getSidebarItemView'](_0x43182a)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3e0223,activatedAnnotation:_0x347e21,disableAnimationOnActivatedAnnotation:_0x554cc0}){if(this[_0x3f97('0x9')]=_0x347e21,_0x3e0223){_0x3e0223['isActive']=!0x1;const _0x5ca114=this['getSidebarItemView'](_0x3e0223);_0x5ca114&&_0x554cc0&&(_0x5ca114[_0x3f97('0x2a')]=!0x1);}if(_0x347e21){const _0x39589f=this[_0x3f97('0x1b')](_0x347e21);_0x39589f&&(_0x347e21[_0x3f97('0x27')]=!0x0,_0x554cc0&&(_0x39589f['isAnimationDisabled']=!0x0,_0x39589f[_0x3f97('0x1e')]+=0x1),this[_0x3f97('0x28')](_0x39589f));}}[_0x3f97('0x35')](_0x2eb20e){if(this[_0x3f97('0x15')][_0x3f97('0x2f')][_0x3f97('0x26')](),_0x2eb20e)for(const _0x38b37d of _0x2eb20e)this[_0x3f97('0x31')](_0x38b37d);this[_0x3f97('0x15')][_0x3f97('0x3b')][_0x3f97('0x23')](),this[_0x3f97('0x15')][_0x3f97('0x3a')]='',this[_0x3f97('0x32')]=null;}['addAnnotation'](_0x4ae045,_0x524e26){_0x524e26||(_0x524e26=_0x4ae045[_0x3f97('0x15')]);const _0x25a191=new _0x4b409a(this['context'][_0x3f97('0x2')]);this[_0x3f97('0x1d')][_0x3f97('0xd')](_0x25a191,_0x4ae045),this[_0x3f97('0x30')][_0x3f97('0xd')](_0x4ae045,_0x25a191),_0x25a191[_0x3f97('0x10')][_0x3f97('0x39')](_0x524e26),this[_0x3f97('0x12')](_0x4ae045[_0x3f97('0x15')],_0x3f97('0x43'),(_0x23a889,_0x22afa4,_0x33b89b)=>{const _0x1023ad=this[_0x3f97('0x8')](_0x4ae045,_0x33b89b);_0x25a191[_0x3f97('0x17')]!=_0x1023ad&&(_0x25a191['_targetTop']=_0x1023ad,this[_0x3f97('0x1')](_0x25a191,_0x1023ad));}),this['listenTo'](_0x25a191,_0x3f97('0x37'),()=>{this['_recalculate'](_0x25a191,'top');}),this[_0x3f97('0x12')](_0x25a191,_0x3f97('0x44'),()=>{this['_recalculate'](_0x25a191,_0x3f97('0x1f'));}),this['_alignToTargetRect'](_0x25a191);const _0xc9e337=this[_0x3f97('0x6')](_0x25a191);if(_0xc9e337)this[_0x3f97('0x40')](_0xc9e337,_0x25a191)||this[_0x3f97('0x28')](_0x25a191);else this[_0x3f97('0x28')](_0x25a191);return this[_0x3f97('0x3c')](),this[_0x3f97('0x15')]['list'][_0x3f97('0x39')](_0x25a191),_0x25a191;}[_0x3f97('0x34')](_0x51f3de){if(!_0x51f3de[_0x3f97('0x10')][_0x3f97('0x5')])return;const _0x3cdc00=this[_0x3f97('0x6')](_0x51f3de);if(!_0x3cdc00)return;const _0x377ee2=this[_0x3f97('0x1d')]['get'](_0x3cdc00),_0x596fe8=this['_activeAnnotation'];_0x596fe8&&_0x596fe8===_0x377ee2?this['_alignAfterItem'](_0x3cdc00,_0x51f3de):this[_0x3f97('0x3d')](_0x51f3de,_0x3cdc00);}[_0x3f97('0x16')](_0x2ffa9a){if(!_0x2ffa9a['content'][_0x3f97('0x5')])return;const _0x52c51c=this[_0x3f97('0x33')](_0x2ffa9a);if(!_0x52c51c)return;const _0x1ef7a4=this['_sidebarItemViewToAnnotation'][_0x3f97('0x11')](_0x52c51c),_0x27658d=this[_0x3f97('0x3')][_0x3f97('0x4')]['get'](_0x3f97('0x2d')),_0x293ded=this[_0x3f97('0x9')];_0x293ded&&_0x293ded===_0x1ef7a4&&_0x27658d?(this[_0x3f97('0x3d')](_0x52c51c,_0x2ffa9a),this[_0x3f97('0x40')](_0x2ffa9a,_0x52c51c)):_0x293ded&&_0x293ded===_0x1ef7a4?this['_alignBeforeItem'](_0x52c51c,_0x2ffa9a):this[_0x3f97('0x40')](_0x2ffa9a,_0x52c51c);}[_0x3f97('0x46')](_0xdcd28b,_0x4e49da){0x0===this['_recalculateBuffer'][_0x3f97('0x5')]&&setTimeout(()=>{for(const {sidebarItemView:_0x56c105,changedProp:_0x26ea60}of this[_0x3f97('0x25')])_0x3f97('0x1e')===_0x26ea60?this['_alignForTopChange'](_0x56c105):this[_0x3f97('0x16')](_0x56c105);this[_0x3f97('0x25')]=[];},0xa),this[_0x3f97('0x25')][_0x3f97('0x14')]({'sidebarItemView':_0xdcd28b,'changedProp':_0x4e49da});}[_0x3f97('0x1b')](_0x3fb43a){return this[_0x3f97('0x30')][_0x3f97('0x11')](_0x3fb43a);}[_0x3f97('0x3f')](){this[_0x3f97('0xe')](),this[_0x3f97('0x15')][_0x3f97('0x3f')]();}[_0x3f97('0x31')](_0x5ecd30){const _0x160d8e=this[_0x3f97('0x1b')](_0x5ecd30);this['stopListening'](_0x160d8e),this[_0x3f97('0xe')](_0x5ecd30[_0x3f97('0x15')]),_0x160d8e[_0x3f97('0x3f')](),this[_0x3f97('0x30')][_0x3f97('0x1c')](_0x5ecd30),this[_0x3f97('0x1d')][_0x3f97('0x1c')](_0x160d8e);}[_0x3f97('0x45')](){const _0x595c79=new _0x4369d1(this[_0x3f97('0x3')][_0x3f97('0x2')]);return _0x595c79[_0x3f97('0x38')](),this['on']('change:_lastItem',(_0x2be3e3,_0x4baa6b,_0xc5783d,_0x3be917)=>{_0x3be917&&_0x595c79['unbind'](_0x3f97('0xf')),_0xc5783d?_0x595c79[_0x3f97('0x7')](_0x3f97('0xf'))['to'](_0xc5783d,'bottom'):_0x595c79[_0x3f97('0xf')]=null;}),_0x595c79;}[_0x3f97('0x3c')](){var _0x26066d;this[_0x3f97('0x32')]=(null===(_0x26066d=this[_0x3f97('0x19')])||void 0x0===_0x26066d?void 0x0:_0x26066d['last'])?this[_0x3f97('0x1b')](this['_annotations'][_0x3f97('0xb')]):null;}[_0x3f97('0x6')](_0x3f62a4){var _0x41cf9c;const _0x5196b2=this[_0x3f97('0x1d')]['get'](_0x3f62a4),_0x2c95a0=_0x5196b2&&(null===(_0x41cf9c=this['_annotations'])||void 0x0===_0x41cf9c?void 0x0:_0x41cf9c[_0x3f97('0x11')](this['_annotations'][_0x3f97('0x18')](_0x5196b2)-0x1));return _0x2c95a0&&this[_0x3f97('0x1b')](_0x2c95a0)||null;}[_0x3f97('0x33')](_0x570d07){var _0x20e877;const _0x58afbe=this[_0x3f97('0x1d')][_0x3f97('0x11')](_0x570d07),_0x14adf1=_0x58afbe&&(null===(_0x20e877=this[_0x3f97('0x19')])||void 0x0===_0x20e877?void 0x0:_0x20e877[_0x3f97('0x11')](this['_annotations'][_0x3f97('0x18')](_0x58afbe)+0x1));return _0x14adf1&&this[_0x3f97('0x1b')](_0x14adf1)||null;}[_0x3f97('0x3d')](_0xff8565,_0xfde40a){_0xff8565[_0x3f97('0x29')]();const _0x1996ce=H(_0xfde40a[_0x3f97('0x1f')]+this[_0x3f97('0x3e')],_0xff8565['top']);return!!_0x1996ce&&(this[_0x3f97('0x1')](_0xfde40a,_0xfde40a['top']-_0x1996ce),!0x0);}[_0x3f97('0x40')](_0x1d00ed,_0x208eab){_0x1d00ed[_0x3f97('0x29')]();const _0x22e3f8=H(_0x1d00ed[_0x3f97('0x1f')]+this[_0x3f97('0x3e')],_0x208eab[_0x3f97('0x1e')]);return!!_0x22e3f8&&(this['_setItemTop'](_0x208eab,_0x208eab['top']+_0x22e3f8,!0x1),!0x0);}[_0x3f97('0x28')](_0x5cc35a){const _0x1ae73e=this[_0x3f97('0x1d')][_0x3f97('0x11')](_0x5cc35a);if(!_0x1ae73e||!_0x1ae73e[_0x3f97('0x2e')]||!_0x1ae73e[_0x3f97('0x24')])return;const _0x21c561=this[_0x3f97('0x8')](_0x1ae73e,_0x1ae73e[_0x3f97('0x24')]);this[_0x3f97('0x1')](_0x5cc35a,_0x21c561);}['_getTargetTop'](_0x5077d5,_0x24f69a){if(null===_0x24f69a)return 0x0;if(_0x5077d5[_0x3f97('0x2e')]instanceof _0x7d7c20)return _0x24f69a[_0x3f97('0x1e')];{const _0x5a9c5e=new _0x7d7c20(this[_0x3f97('0x15')][_0x3f97('0x2f')])[_0x3f97('0x1e')];return _0x24f69a[_0x3f97('0x1e')]-_0x5a9c5e;}}[_0x3f97('0x1')](_0x12d5b8,_0x10fe48,_0x3d1583=this[_0x3f97('0x3')]['config'][_0x3f97('0x11')](_0x3f97('0x2d'))){_0x3d1583&&(_0x10fe48=Math[_0x3f97('0xa')](_0x10fe48,this[_0x3f97('0x22')](_0x12d5b8))),_0x12d5b8['top']=_0x10fe48;}[_0x3f97('0x22')](_0x53dd7b){let _0x1e92ad=this[_0x3f97('0x6')](_0x53dd7b),_0xb34061=0x0;for(;_0x1e92ad;)_0x1e92ad['updateHeight'](),_0xb34061+=this['_spaceBetweenItems']+_0x1e92ad[_0x3f97('0x2b')],_0x1e92ad=this[_0x3f97('0x6')](_0x1e92ad);return _0xb34061;}}function H(_0x310e3b,_0x43d397){return Math[_0x3f97('0xa')](_0x310e3b-_0x43d397,0x0);}function y(_0x2a7656){return null!==_0x2a7656&&_0x3f97('0xc')==typeof _0x2a7656&&0x1===_0x2a7656['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17b1=['ck-annotation-counter__badge','icon','add','...','bindTemplate','annotationType','set','number','span','ck-annotation-counter','counterView','isDirty','children','_badge','extendTemplate','bind','ck-annotation-counter__badge--','toString'];(function(_0x1d5d74,_0x17b1c1){const _0x119642=function(_0x409271){while(--_0x409271){_0x1d5d74['push'](_0x1d5d74['shift']());}};_0x119642(++_0x17b1c1);}(_0x17b1,0xdf));const _0x1196=function(_0x1d5d74,_0x17b1c1){_0x1d5d74=_0x1d5d74-0x0;let _0x119642=_0x17b1[_0x1d5d74];return _0x119642;};import{ButtonView as _0x5b540d,View as _0x28263c}from'ckeditor5/src/ui';import _0x25db7f from'../../../theme/icons/add-comment.svg';export default class D extends _0x5b540d{constructor(_0x494ec1){super(_0x494ec1);const _0x28cb39=this[_0x1196('0xf')];this['set']('isDirty',!0x1),this['set'](_0x1196('0x0'),0x0),this[_0x1196('0x8')](_0x1196('0x6'))['to'](this,_0x1196('0x4'),this,_0x1196('0x0'),(_0x311c5d,_0x397791)=>_0x311c5d?_0x1196('0xe'):_0x397791[_0x1196('0xa')]()),this[_0x1196('0x11')](_0x1196('0x10'),''),this[_0x1196('0xc')]=_0x25db7f,this[_0x1196('0x7')]({'attributes':{'class':[_0x1196('0x2')]}}),this[_0x1196('0x3')]=new _0x28263c(),this[_0x1196('0x3')]['setTemplate']({'tag':_0x1196('0x1'),'attributes':{'class':[_0x1196('0xb'),_0x28cb39['to'](_0x1196('0x10'),_0x2d533c=>_0x1196('0x9')+_0x2d533c),_0x28cb39['if'](_0x1196('0x4'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x28cb39['to'](_0x1196('0x6'))}]}),this[_0x1196('0x5')][_0x1196('0xd')](this[_0x1196('0x3')]);}}
23
+ const _0x295a=['bindTemplate','icon','annotationType','...','children','set','setTemplate','span','_badge','counterView','isDirty','number','add','ck-annotation-counter__badge','ck-annotation-counter'];(function(_0x5b0229,_0x295a00){const _0x18429e=function(_0x52ec8a){while(--_0x52ec8a){_0x5b0229['push'](_0x5b0229['shift']());}};_0x18429e(++_0x295a00);}(_0x295a,0x1e2));const _0x1842=function(_0x5b0229,_0x295a00){_0x5b0229=_0x5b0229-0x0;let _0x18429e=_0x295a[_0x5b0229];return _0x18429e;};import{ButtonView as _0x1b66bc,View as _0x2e3309}from'ckeditor5/src/ui';import _0x7fe0f6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1b66bc{constructor(_0x42c6ee){super(_0x42c6ee);const _0x1fb734=this[_0x1842('0xd')];this[_0x1842('0x3')](_0x1842('0x8'),!0x1),this[_0x1842('0x3')](_0x1842('0x9'),0x0),this['bind']('_badge')['to'](this,_0x1842('0x8'),this,_0x1842('0x9'),(_0xb55eff,_0x44e6dc)=>_0xb55eff?_0x1842('0x1'):_0x44e6dc['toString']()),this[_0x1842('0x3')](_0x1842('0x0'),''),this[_0x1842('0xe')]=_0x7fe0f6,this['extendTemplate']({'attributes':{'class':[_0x1842('0xc')]}}),this[_0x1842('0x7')]=new _0x2e3309(),this['counterView'][_0x1842('0x4')]({'tag':_0x1842('0x5'),'attributes':{'class':[_0x1842('0xb'),_0x1fb734['to'](_0x1842('0x0'),_0x204d3b=>'ck-annotation-counter__badge--'+_0x204d3b),_0x1fb734['if'](_0x1842('0x8'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1fb734['to'](_0x1842('0x6'))}]}),this[_0x1842('0x2')][_0x1842('0xa')](this[_0x1842('0x7')]);}}