@ckeditor/ckeditor5-comments 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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-20230818.1",
3
+ "version": "0.0.0-nightly-20230820.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-20230818.1",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230818.1",
46
+ "ckeditor5": "0.0.0-nightly-20230820.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230820.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 _0x5ef4=['refreshVisibility','nodeType','_target','_assertCorrectTarget','function','_getNormalizedTarget','annotation-invalid-target','focusTracker','filter','add','destroy','view','clear','length','every','_type','isActive','set','_id','item','isVisible','focusableElements','targetRect','target','getClientRects','element','stopListening','updateTargetRect','mainView','remove'];(function(_0x4b351f,_0x5ef4cb){const _0x45763e=function(_0x38293b){while(--_0x38293b){_0x4b351f['push'](_0x4b351f['shift']());}};_0x45763e(++_0x5ef4cb);}(_0x5ef4,0x1a0));const _0x4576=function(_0x4b351f,_0x5ef4cb){_0x4b351f=_0x4b351f-0x0;let _0x45763e=_0x5ef4[_0x4b351f];return _0x45763e;};import{CKEditorError as _0xb2558,Rect as _0x325c91,Collection as _0x16719f,ObservableMixin as _0x4e5433}from'ckeditor5/src/utils';export default class d extends _0x4e5433(){constructor({view:_0x30a1b9,target:_0x3fed94,type:_0x24c0f9,isVisible:_0x29ef06=!0x0}){super(),this['view']=_0x30a1b9,this[_0x4576('0xf')][_0x4576('0x1d')]||this[_0x4576('0xf')]['render'](),this[_0x4576('0x13')]=_0x24c0f9,this['_target']=_0x3fed94,d[_0x4576('0x7')](this[_0x4576('0x9')]()),this[_0x4576('0x19')]=new _0x16719f([this[_0x4576('0xf')][_0x4576('0x1d')]],{'idProperty':_0x4576('0x16')}),this[_0x4576('0x19')]['on']('add',(_0x1a84bf,_0x5bad99)=>{this[_0x4576('0xf')][_0x4576('0xb')][_0x4576('0xd')](_0x5bad99);}),this[_0x4576('0x19')]['on'](_0x4576('0x3'),(_0x3f7732,_0x4925e0)=>{this[_0x4576('0xf')][_0x4576('0xb')][_0x4576('0x3')](_0x4925e0);}),this[_0x4576('0x15')](_0x4576('0x18'),_0x29ef06);}get['type'](){return _0x4576('0x8')==typeof this[_0x4576('0x13')]?this[_0x4576('0x13')]():this[_0x4576('0x13')];}get['innerView'](){return this[_0x4576('0xf')]['mainView'];}get[_0x4576('0x1b')](){const _0x5e5a61=this[_0x4576('0x9')]();return d[_0x4576('0x7')](_0x5e5a61),_0x5e5a61;}get[_0x4576('0x1a')](){const _0x12c7b1=this['target'];if(null===_0x12c7b1)return null;if(_0x12c7b1 instanceof _0x325c91)return _0x12c7b1;const _0x25b83e=_0x12c7b1[_0x4576('0xc')](_0x138851=>function(_0x15b12e){const _0x489b56=_0x15b12e['offsetParent'];if(_0x489b56)return!0x0;const _0x22c95f=_0x15b12e[_0x4576('0x1c')]()[_0x4576('0x17')](0x0);return!!_0x22c95f;}(_0x138851));return 0x0===_0x25b83e[_0x4576('0x11')]?null:new _0x325c91(_0x25b83e[0x0][_0x4576('0x1c')]()[_0x4576('0x17')](0x0));}get[_0x4576('0x14')](){return this['view'][_0x4576('0x14')];}set[_0x4576('0x14')](_0x2150cc){this['view'][_0x4576('0x14')]=_0x2150cc,this['view'][_0x4576('0x2')][_0x4576('0x14')]=_0x2150cc;}[_0x4576('0x1')](){this['view'][_0x4576('0x1a')]=this['targetRect'];}[_0x4576('0xe')](){this[_0x4576('0x19')][_0x4576('0x0')](),this[_0x4576('0x19')][_0x4576('0x10')](),this[_0x4576('0x0')]();}[_0x4576('0x4')](){this[_0x4576('0x18')]=!!this[_0x4576('0x1a')];}static[_0x4576('0x7')](_0x324f4f){if(!(null===_0x324f4f||_0x324f4f instanceof _0x325c91||Array['isArray'](_0x324f4f)&&_0x324f4f[_0x4576('0x12')](_0x29cbd5=>y(_0x29cbd5))))throw new _0xb2558(_0x4576('0xa'),null,{'target':_0x324f4f});}[_0x4576('0x9')](){const _0x13efcd=_0x4576('0x8')==typeof this[_0x4576('0x6')]?this[_0x4576('0x6')]():this[_0x4576('0x6')];return y(_0x13efcd)?[_0x13efcd]:_0x13efcd;}}function y(_0x398f78){return null!==_0x398f78&&'object'==typeof _0x398f78&&_0x4576('0x5')in _0x398f78&&0x1===_0x398f78[_0x4576('0x5')];}
23
+ const _0x25e4=['filter','remove','length','add','clear','target','item','getClientRects','focusTracker','render','view','every','_id','function','offsetParent','type','destroy','stopListening','isArray','annotation-invalid-target','updateTargetRect','element','targetRect','innerView','isActive','_getNormalizedTarget','_type','mainView','_assertCorrectTarget','focusableElements','isVisible','_target'];(function(_0x3be51f,_0x25e487){const _0x3017a5=function(_0x34b7fc){while(--_0x34b7fc){_0x3be51f['push'](_0x3be51f['shift']());}};_0x3017a5(++_0x25e487);}(_0x25e4,0x15f));const _0x3017=function(_0x3be51f,_0x25e487){_0x3be51f=_0x3be51f-0x0;let _0x3017a5=_0x25e4[_0x3be51f];return _0x3017a5;};import{CKEditorError as _0x1c0aeb,Rect as _0x35d490,Collection as _0x3f826d,ObservableMixin as _0x5d587f}from'ckeditor5/src/utils';export default class d extends _0x5d587f(){constructor({view:_0x4d6d61,target:_0x81fa44,type:_0x3c76c7,isVisible:_0x7c620b=!0x0}){super(),this['view']=_0x4d6d61,this[_0x3017('0xb')][_0x3017('0x16')]||this['view'][_0x3017('0xa')](),this[_0x3017('0x1b')]=_0x3c76c7,this['_target']=_0x81fa44,d[_0x3017('0x1d')](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3f826d([this[_0x3017('0xb')][_0x3017('0x16')]],{'idProperty':_0x3017('0xd')}),this[_0x3017('0x1e')]['on'](_0x3017('0x4'),(_0x5b2841,_0x27bb37)=>{this['view'][_0x3017('0x9')][_0x3017('0x4')](_0x27bb37);}),this[_0x3017('0x1e')]['on'](_0x3017('0x2'),(_0x46e5c1,_0x3ed07b)=>{this[_0x3017('0xb')]['focusTracker'][_0x3017('0x2')](_0x3ed07b);}),this['set'](_0x3017('0x1f'),_0x7c620b);}get[_0x3017('0x10')](){return _0x3017('0xe')==typeof this[_0x3017('0x1b')]?this[_0x3017('0x1b')]():this['_type'];}get[_0x3017('0x18')](){return this['view'][_0x3017('0x1c')];}get['target'](){const _0x3fee07=this[_0x3017('0x1a')]();return d[_0x3017('0x1d')](_0x3fee07),_0x3fee07;}get['targetRect'](){const _0x16aa17=this[_0x3017('0x6')];if(null===_0x16aa17)return null;if(_0x16aa17 instanceof _0x35d490)return _0x16aa17;const _0x2e66a6=_0x16aa17[_0x3017('0x1')](_0x4d9f12=>function(_0x495166){const _0x4944b9=_0x495166[_0x3017('0xf')];if(_0x4944b9)return!0x0;const _0x129bd2=_0x495166[_0x3017('0x8')]()[_0x3017('0x7')](0x0);return!!_0x129bd2;}(_0x4d9f12));return 0x0===_0x2e66a6[_0x3017('0x3')]?null:new _0x35d490(_0x2e66a6[0x0]['getClientRects']()[_0x3017('0x7')](0x0));}get[_0x3017('0x19')](){return this[_0x3017('0xb')]['isActive'];}set[_0x3017('0x19')](_0x58e5a5){this[_0x3017('0xb')][_0x3017('0x19')]=_0x58e5a5,this[_0x3017('0xb')][_0x3017('0x1c')]['isActive']=_0x58e5a5;}[_0x3017('0x15')](){this[_0x3017('0xb')][_0x3017('0x17')]=this[_0x3017('0x17')];}[_0x3017('0x11')](){this[_0x3017('0x1e')][_0x3017('0x12')](),this[_0x3017('0x1e')][_0x3017('0x5')](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this[_0x3017('0x17')];}static[_0x3017('0x1d')](_0x14062a){if(!(null===_0x14062a||_0x14062a instanceof _0x35d490||Array[_0x3017('0x13')](_0x14062a)&&_0x14062a[_0x3017('0xc')](_0x300298=>y(_0x300298))))throw new _0x1c0aeb(_0x3017('0x14'),null,{'target':_0x14062a});}[_0x3017('0x1a')](){const _0x43dc70=_0x3017('0xe')==typeof this['_target']?this[_0x3017('0x0')]():this[_0x3017('0x0')];return y(_0x43dc70)?[_0x43dc70]:_0x43dc70;}}function y(_0xec299f){return null!==_0xec299f&&'object'==typeof _0xec299f&&'nodeType'in _0xec299f&&0x1===_0xec299f['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e39=['has','_viewToAnnotation','blur','_getOrderInContent','add','view','innerView','set','isFocused','annotationcollection-duplicated-item','targetRect','getIndex','get','clear','change:isFocused','stopListening','listenTo','top','updateTargetRect','focus','fire','getByInnerView','destroy','left','length','sort','delete','focusableElements','remove','annotationcollection-not-existing-item','from','_focusTracker','_innerViewToAnnotation'];(function(_0x282556,_0x3e397a){const _0x222f50=function(_0x6c1f70){while(--_0x6c1f70){_0x282556['push'](_0x282556['shift']());}};_0x222f50(++_0x3e397a);}(_0x3e39,0x10c));const _0x222f=function(_0x282556,_0x3e397a){_0x282556=_0x282556-0x0;let _0x222f50=_0x3e39[_0x282556];return _0x222f50;};import{CKEditorError as _0x17e486,Collection as _0x41505c,FocusTracker as _0x928912}from'ckeditor5/src/utils';export default class x extends _0x41505c{constructor(_0x18d8be=[]){super(),this[_0x222f('0x1c')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x222f('0x1b')]=new _0x928912(),this[_0x222f('0x1b')]['on'](_0x222f('0xa'),(_0x2ce215,_0xd26ba0,_0x2669df)=>{_0x2669df||this[_0x222f('0x10')](_0x222f('0x1f'));});for(const _0x5b3842 of _0x18d8be)this[_0x222f('0x0')](_0x5b3842);}get[_0x222f('0x4')](){return this[_0x222f('0x1b')][_0x222f('0x4')];}[_0x222f('0x0')](_0x5d1840){if(this[_0x222f('0x1d')](_0x5d1840))throw new _0x17e486(_0x222f('0x5'),null);this['_innerViewToAnnotation'][_0x222f('0x3')](_0x5d1840[_0x222f('0x2')],_0x5d1840),this['_viewToAnnotation'][_0x222f('0x3')](_0x5d1840[_0x222f('0x1')],_0x5d1840);for(const _0x153823 of _0x5d1840['focusableElements'])this[_0x222f('0x1b')][_0x222f('0x0')](_0x153823);this[_0x222f('0xc')](_0x5d1840[_0x222f('0x17')],_0x222f('0x0'),(_0x3579de,_0x256133)=>{this[_0x222f('0x1b')]['add'](_0x256133);}),this['listenTo'](_0x5d1840[_0x222f('0x17')],'remove',(_0x31be84,_0x2409d6)=>{this[_0x222f('0x1b')][_0x222f('0x18')](_0x2409d6);}),this[_0x222f('0xc')](_0x5d1840[_0x222f('0x1')]['focusTracker'],'change:isFocused',(_0x3f8da6,_0x436ebf,_0x546f37)=>{_0x546f37&&this[_0x222f('0x10')](_0x222f('0xf'),_0x5d1840);}),_0x5d1840[_0x222f('0xe')]();const _0x3e1260=this[_0x222f('0x20')](_0x5d1840[_0x222f('0x1')][_0x222f('0x6')]);return super['add'](_0x5d1840,_0x3e1260);}['remove'](_0x41bebb){if(!this[_0x222f('0x1d')](_0x41bebb))throw new _0x17e486(_0x222f('0x19'),null);this['stopListening'](_0x41bebb[_0x222f('0x1')]['focusTracker']),this['stopListening'](_0x41bebb[_0x222f('0x17')]);for(const _0x5d4e23 of _0x41bebb[_0x222f('0x17')])this[_0x222f('0x1b')][_0x222f('0x18')](_0x5d4e23);return this[_0x222f('0x1e')][_0x222f('0x16')](_0x41bebb[_0x222f('0x1')]),this[_0x222f('0x1c')][_0x222f('0x16')](_0x41bebb[_0x222f('0x2')]),super[_0x222f('0x18')](_0x41bebb);}[_0x222f('0x11')](_0x350da9){return this[_0x222f('0x1c')]['get'](_0x350da9);}['getByView'](_0x3739f8){return this['_viewToAnnotation'][_0x222f('0x8')](_0x3739f8);}[_0x222f('0x12')](){super[_0x222f('0x9')](),this[_0x222f('0xb')](),this['_innerViewToAnnotation'][_0x222f('0x9')](),this[_0x222f('0x1e')][_0x222f('0x9')](),this[_0x222f('0x1b')]['destroy']();}['refreshPositioning'](){for(const _0x284e11 of this)_0x284e11['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2d4d5c=Array[_0x222f('0x1a')](this)[_0x222f('0x15')]((_0x488e90,_0xb8ce81)=>v(_0x488e90[_0x222f('0x1')]['targetRect'],_0xb8ce81[_0x222f('0x1')][_0x222f('0x6')]));for(let _0x3f39ea=_0x2d4d5c[_0x222f('0x14')]-0x1;_0x3f39ea>0x0;_0x3f39ea--){const _0x36c399=_0x2d4d5c[_0x3f39ea];_0x3f39ea!==this[_0x222f('0x7')](_0x36c399)&&(this['remove'](_0x36c399),this[_0x222f('0x0')](_0x36c399));}}['_getOrderInContent'](_0x99fe80){let _0x4ede84=0x0;if(!_0x99fe80)return this[_0x222f('0x14')];for(const _0x5c894c of this){const _0x33c70b=_0x5c894c[_0x222f('0x1')][_0x222f('0x6')];if(_0x33c70b){if(v(_0x99fe80,_0x33c70b)<0x0)return _0x4ede84;_0x4ede84++;}}return _0x4ede84;}}export function bindAnnotationCollections({source:_0x1fa652,target:_0x1bf2fd,filter:_0xcca42}){for(const _0x28890b of _0x1fa652)_0xcca42(_0x28890b)&&_0x1bf2fd['add'](_0x28890b);_0x1bf2fd[_0x222f('0xc')](_0x1fa652,_0x222f('0x0'),(_0x4fbad4,_0x420a59)=>{_0xcca42(_0x420a59)&&_0x1bf2fd['add'](_0x420a59);}),_0x1bf2fd[_0x222f('0xc')](_0x1fa652,_0x222f('0x18'),(_0x32e0a3,_0x53c969)=>{_0x1bf2fd[_0x222f('0x1d')](_0x53c969)&&_0x1bf2fd[_0x222f('0x18')](_0x53c969);});}function v(_0x9a7ce6,_0xf9add4){if(null===_0x9a7ce6&&null===_0xf9add4)return 0x0;if(null===_0x9a7ce6)return-0x1;if(null===_0xf9add4)return 0x1;const _0x1e2d53=_0x9a7ce6['top']-_0xf9add4[_0x222f('0xd')];return 0x0==_0x1e2d53?_0x9a7ce6[_0x222f('0x13')]-_0xf9add4[_0x222f('0x13')]:_0x1e2d53;}
23
+ const _0xf1e6=['left','getByInnerView','stopListening','getIndex','has','from','remove','get','delete','sort','_focusTracker','top','annotationcollection-not-existing-item','isFocused','set','add','_sort','_getOrderInContent','refreshPositioning','view','clear','listenTo','targetRect','focusableElements','_innerViewToAnnotation','focusTracker','destroy','length','fire','_viewToAnnotation','getByView','focus','innerView'];(function(_0x6b20f0,_0xf1e6d){const _0x57a166=function(_0x36d24f){while(--_0x36d24f){_0x6b20f0['push'](_0x6b20f0['shift']());}};_0x57a166(++_0xf1e6d);}(_0xf1e6,0x80));const _0x57a1=function(_0x6b20f0,_0xf1e6d){_0x6b20f0=_0x6b20f0-0x0;let _0x57a166=_0xf1e6[_0x6b20f0];return _0x57a166;};import{CKEditorError as _0x4d6e33,Collection as _0x5552b8,FocusTracker as _0x5c6ca5}from'ckeditor5/src/utils';export default class x extends _0x5552b8{constructor(_0x3349bc=[]){super(),this[_0x57a1('0x1c')]=new Map(),this[_0x57a1('0x0')]=new Map(),this['_focusTracker']=new _0x5c6ca5(),this['_focusTracker']['on']('change:isFocused',(_0x57df05,_0x31645c,_0x32c484)=>{_0x32c484||this[_0x57a1('0x20')]('blur');});for(const _0x660967 of _0x3349bc)this['add'](_0x660967);}get[_0x57a1('0x11')](){return this[_0x57a1('0xe')][_0x57a1('0x11')];}[_0x57a1('0x13')](_0xc78092){if(this[_0x57a1('0x8')](_0xc78092))throw new _0x4d6e33('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0xc78092['innerView'],_0xc78092),this['_viewToAnnotation'][_0x57a1('0x12')](_0xc78092[_0x57a1('0x17')],_0xc78092);for(const _0x1de148 of _0xc78092[_0x57a1('0x1b')])this[_0x57a1('0xe')]['add'](_0x1de148);this[_0x57a1('0x19')](_0xc78092[_0x57a1('0x1b')],_0x57a1('0x13'),(_0x558d01,_0x598c06)=>{this[_0x57a1('0xe')][_0x57a1('0x13')](_0x598c06);}),this[_0x57a1('0x19')](_0xc78092[_0x57a1('0x1b')],_0x57a1('0xa'),(_0x98501c,_0x5deeb9)=>{this['_focusTracker'][_0x57a1('0xa')](_0x5deeb9);}),this[_0x57a1('0x19')](_0xc78092[_0x57a1('0x17')][_0x57a1('0x1d')],'change:isFocused',(_0x171e58,_0x20780c,_0x434155)=>{_0x434155&&this[_0x57a1('0x20')](_0x57a1('0x2'),_0xc78092);}),_0xc78092['updateTargetRect']();const _0x96d892=this['_getOrderInContent'](_0xc78092['view'][_0x57a1('0x1a')]);return super['add'](_0xc78092,_0x96d892);}[_0x57a1('0xa')](_0x1dd501){if(!this['has'](_0x1dd501))throw new _0x4d6e33(_0x57a1('0x10'),null);this['stopListening'](_0x1dd501[_0x57a1('0x17')][_0x57a1('0x1d')]),this[_0x57a1('0x6')](_0x1dd501[_0x57a1('0x1b')]);for(const _0x5b75f4 of _0x1dd501[_0x57a1('0x1b')])this['_focusTracker'][_0x57a1('0xa')](_0x5b75f4);return this[_0x57a1('0x0')]['delete'](_0x1dd501[_0x57a1('0x17')]),this[_0x57a1('0x1c')][_0x57a1('0xc')](_0x1dd501[_0x57a1('0x3')]),super[_0x57a1('0xa')](_0x1dd501);}[_0x57a1('0x5')](_0xa3ceca){return this['_innerViewToAnnotation'][_0x57a1('0xb')](_0xa3ceca);}[_0x57a1('0x1')](_0x48fd02){return this[_0x57a1('0x0')][_0x57a1('0xb')](_0x48fd02);}[_0x57a1('0x1e')](){super[_0x57a1('0x18')](),this['stopListening'](),this[_0x57a1('0x1c')][_0x57a1('0x18')](),this[_0x57a1('0x0')][_0x57a1('0x18')](),this[_0x57a1('0xe')][_0x57a1('0x1e')]();}[_0x57a1('0x16')](){for(const _0x5082ed of this)_0x5082ed['updateTargetRect']();this[_0x57a1('0x14')]();}[_0x57a1('0x14')](){const _0x1aa66f=Array[_0x57a1('0x9')](this)[_0x57a1('0xd')]((_0x48eb4a,_0x56ff26)=>v(_0x48eb4a['view'][_0x57a1('0x1a')],_0x56ff26[_0x57a1('0x17')][_0x57a1('0x1a')]));for(let _0x13c8e5=_0x1aa66f[_0x57a1('0x1f')]-0x1;_0x13c8e5>0x0;_0x13c8e5--){const _0x409e54=_0x1aa66f[_0x13c8e5];_0x13c8e5!==this[_0x57a1('0x7')](_0x409e54)&&(this[_0x57a1('0xa')](_0x409e54),this['add'](_0x409e54));}}[_0x57a1('0x15')](_0x508de6){let _0x4b63fa=0x0;if(!_0x508de6)return this[_0x57a1('0x1f')];for(const _0x22404e of this){const _0x535a5c=_0x22404e[_0x57a1('0x17')][_0x57a1('0x1a')];if(_0x535a5c){if(v(_0x508de6,_0x535a5c)<0x0)return _0x4b63fa;_0x4b63fa++;}}return _0x4b63fa;}}export function bindAnnotationCollections({source:_0x52873b,target:_0x445613,filter:_0x1dd493}){for(const _0x5f1478 of _0x52873b)_0x1dd493(_0x5f1478)&&_0x445613['add'](_0x5f1478);_0x445613[_0x57a1('0x19')](_0x52873b,_0x57a1('0x13'),(_0x4ef8e7,_0x262be5)=>{_0x1dd493(_0x262be5)&&_0x445613[_0x57a1('0x13')](_0x262be5);}),_0x445613['listenTo'](_0x52873b,'remove',(_0x313552,_0x1efc68)=>{_0x445613[_0x57a1('0x8')](_0x1efc68)&&_0x445613[_0x57a1('0xa')](_0x1efc68);});}function v(_0x53b75e,_0x2e1249){if(null===_0x53b75e&&null===_0x2e1249)return 0x0;if(null===_0x53b75e)return-0x1;if(null===_0x2e1249)return 0x1;const _0x4e7782=_0x53b75e['top']-_0x2e1249[_0x57a1('0xf')];return 0x0==_0x4e7782?_0x53b75e[_0x57a1('0x4')]-_0x2e1249['left']:_0x4e7782;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44de=['createAnnotationView','listenTo','change:isVisible','set','element','remove','refreshVisibility','refreshPositioning','add','activeAnnotations','fire','collection','has','_removeActiveAnnotation','Annotations','deactivateAll','_bindAnnotationsToVisibleAnnotations','focusTracker','_visibleAnnotations','view','createAnnotation','delete','destroy','getByInnerView','_addActiveAnnotation','isVisible'];(function(_0x5c3c62,_0x44de80){const _0xa6cc1=function(_0x2ac1e2){while(--_0x2ac1e2){_0x5c3c62['push'](_0x5c3c62['shift']());}};_0xa6cc1(++_0x44de80);}(_0x44de,0x7c));const _0xa6cc=function(_0x5c3c62,_0x44de80){_0x5c3c62=_0x5c3c62-0x0;let _0xa6cc1=_0x44de[_0x5c3c62];return _0xa6cc1;};import{ContextPlugin as _0x46e704}from'ckeditor5/src/core';import _0x39ef54 from'./annotation';import _0x5e4fcf from'./annotationcollection';import _0x1d161d from'./view/annotationview';export default class b extends _0x46e704{static get['pluginName'](){return _0xa6cc('0x14');}constructor(_0x5dd9b5){super(_0x5dd9b5),this[_0xa6cc('0x11')]=new _0x5e4fcf(),this['_visibleAnnotations']=new _0x5e4fcf(),this[_0xa6cc('0x9')](_0xa6cc('0xf'),new Set()),this[_0xa6cc('0x16')]();}[_0xa6cc('0xe')](_0x1b4509){this['collection'][_0xa6cc('0xe')](_0x1b4509);}[_0xa6cc('0xb')](_0x11080d){this['collection'][_0xa6cc('0xb')](_0x11080d),_0x11080d[_0xa6cc('0x2')]();}[_0xa6cc('0xc')](){for(const _0x572130 of this['collection'])_0x572130[_0xa6cc('0xc')]();}[_0xa6cc('0xd')](){this[_0xa6cc('0x18')]['refreshPositioning']();}[_0xa6cc('0x3')](_0x229454){return this['collection'][_0xa6cc('0x3')](_0x229454);}[_0xa6cc('0x15')](){this['fire']('_deactivateAllAnnotations');}[_0xa6cc('0x2')](){for(const _0x2478de of this['collection'])_0x2478de[_0xa6cc('0x2')]();this['_visibleAnnotations']['destroy'](),this[_0xa6cc('0x11')][_0xa6cc('0x2')](),super[_0xa6cc('0x2')]();}['activate'](_0x293826){this[_0xa6cc('0x10')]('_activateAnnotation',_0x293826);}[_0xa6cc('0x0')](_0x2c0843){return new _0x39ef54(_0x2c0843);}[_0xa6cc('0x6')](_0x36986c,_0x1bb44c){return new _0x1d161d(_0x36986c,_0x1bb44c);}[_0xa6cc('0x4')](_0x15a6eb){const _0x2f4416=new Set(this[_0xa6cc('0xf')]);_0x2f4416[_0xa6cc('0xe')](_0x15a6eb),this[_0xa6cc('0xf')]=_0x2f4416;}[_0xa6cc('0x13')](_0xf8eaf){const _0x2abd9c=new Set(this[_0xa6cc('0xf')]);_0x2abd9c[_0xa6cc('0x1')](_0xf8eaf),this[_0xa6cc('0xf')]=_0x2abd9c;}[_0xa6cc('0x16')](){const _0x40fa42=this[_0xa6cc('0x11')],_0x5a25b1=this['_visibleAnnotations'];function _0x52418c(_0x4a8e76){const _0x3a1f7=_0x4a8e76['source'];_0x3a1f7['isVisible']&&!_0x5a25b1['has'](_0x3a1f7)?_0x5a25b1[_0xa6cc('0xe')](_0x3a1f7):!_0x3a1f7[_0xa6cc('0x5')]&&_0x5a25b1[_0xa6cc('0x12')](_0x3a1f7)&&_0x5a25b1[_0xa6cc('0xb')](_0x3a1f7),_0x3a1f7[_0xa6cc('0x19')][_0xa6cc('0x17')]['remove'](_0x3a1f7['view'][_0xa6cc('0xa')]),_0x3a1f7[_0xa6cc('0x19')][_0xa6cc('0x17')][_0xa6cc('0xe')](_0x3a1f7[_0xa6cc('0x19')][_0xa6cc('0xa')]);}this[_0xa6cc('0x7')](_0x40fa42,_0xa6cc('0xe'),(_0x4ad05a,_0x11f6ed)=>{_0x11f6ed[_0xa6cc('0x5')]&&_0x5a25b1['add'](_0x11f6ed),this[_0xa6cc('0x7')](_0x11f6ed,_0xa6cc('0x8'),_0x52418c);}),this['listenTo'](_0x40fa42,_0xa6cc('0xb'),(_0x1278b1,_0xe851d2)=>{_0x5a25b1['has'](_0xe851d2)&&_0x5a25b1[_0xa6cc('0xb')](_0xe851d2),this['stopListening'](_0xe851d2,'change:isVisible',_0x52418c);});}}
23
+ const _0x32a0=['createAnnotation','destroy','view','collection','isVisible','source','refreshVisibility','element','focusTracker','_visibleAnnotations','createAnnotationView','listenTo','refreshPositioning','has','_activateAnnotation','set','_bindAnnotationsToVisibleAnnotations','activate','delete','stopListening','Annotations','activeAnnotations','deactivateAll','_addActiveAnnotation','_deactivateAllAnnotations','remove','change:isVisible','add','getByInnerView'];(function(_0x1b702b,_0x32a037){const _0x6ed64=function(_0x65f176){while(--_0x65f176){_0x1b702b['push'](_0x1b702b['shift']());}};_0x6ed64(++_0x32a037);}(_0x32a0,0xd7));const _0x6ed6=function(_0x1b702b,_0x32a037){_0x1b702b=_0x1b702b-0x0;let _0x6ed64=_0x32a0[_0x1b702b];return _0x6ed64;};import{ContextPlugin as _0x46b6fb}from'ckeditor5/src/core';import _0x565a02 from'./annotation';import _0x482ee4 from'./annotationcollection';import _0x514bb1 from'./view/annotationview';export default class b extends _0x46b6fb{static get['pluginName'](){return _0x6ed6('0x8');}constructor(_0x488b4f){super(_0x488b4f),this['collection']=new _0x482ee4(),this[_0x6ed6('0x1a')]=new _0x482ee4(),this[_0x6ed6('0x3')](_0x6ed6('0x9'),new Set()),this[_0x6ed6('0x4')]();}[_0x6ed6('0xf')](_0x4ad35b){this[_0x6ed6('0x14')][_0x6ed6('0xf')](_0x4ad35b);}[_0x6ed6('0xd')](_0x13da28){this[_0x6ed6('0x14')]['remove'](_0x13da28),_0x13da28[_0x6ed6('0x12')]();}['refreshVisibility'](){for(const _0x490805 of this['collection'])_0x490805[_0x6ed6('0x17')]();}[_0x6ed6('0x0')](){this[_0x6ed6('0x1a')][_0x6ed6('0x0')]();}[_0x6ed6('0x10')](_0x23ece1){return this[_0x6ed6('0x14')][_0x6ed6('0x10')](_0x23ece1);}[_0x6ed6('0xa')](){this['fire'](_0x6ed6('0xc'));}[_0x6ed6('0x12')](){for(const _0x2b8b4e of this['collection'])_0x2b8b4e[_0x6ed6('0x12')]();this[_0x6ed6('0x1a')][_0x6ed6('0x12')](),this[_0x6ed6('0x14')][_0x6ed6('0x12')](),super[_0x6ed6('0x12')]();}[_0x6ed6('0x5')](_0x44ce53){this['fire'](_0x6ed6('0x2'),_0x44ce53);}[_0x6ed6('0x11')](_0x5aef37){return new _0x565a02(_0x5aef37);}[_0x6ed6('0x1b')](_0x22519b,_0x98ca5){return new _0x514bb1(_0x22519b,_0x98ca5);}[_0x6ed6('0xb')](_0x3d1c01){const _0x2b132b=new Set(this[_0x6ed6('0x9')]);_0x2b132b[_0x6ed6('0xf')](_0x3d1c01),this['activeAnnotations']=_0x2b132b;}['_removeActiveAnnotation'](_0x258681){const _0x38cf3c=new Set(this[_0x6ed6('0x9')]);_0x38cf3c[_0x6ed6('0x6')](_0x258681),this[_0x6ed6('0x9')]=_0x38cf3c;}[_0x6ed6('0x4')](){const _0x1c0b43=this[_0x6ed6('0x14')],_0x5d4090=this['_visibleAnnotations'];function _0x115e58(_0x5d9d8b){const _0x10ccde=_0x5d9d8b[_0x6ed6('0x16')];_0x10ccde[_0x6ed6('0x15')]&&!_0x5d4090[_0x6ed6('0x1')](_0x10ccde)?_0x5d4090['add'](_0x10ccde):!_0x10ccde[_0x6ed6('0x15')]&&_0x5d4090[_0x6ed6('0x1')](_0x10ccde)&&_0x5d4090[_0x6ed6('0xd')](_0x10ccde),_0x10ccde['view']['focusTracker']['remove'](_0x10ccde[_0x6ed6('0x13')][_0x6ed6('0x18')]),_0x10ccde[_0x6ed6('0x13')][_0x6ed6('0x19')][_0x6ed6('0xf')](_0x10ccde['view']['element']);}this[_0x6ed6('0x1c')](_0x1c0b43,_0x6ed6('0xf'),(_0x478c8a,_0x5cb3cc)=>{_0x5cb3cc[_0x6ed6('0x15')]&&_0x5d4090[_0x6ed6('0xf')](_0x5cb3cc),this[_0x6ed6('0x1c')](_0x5cb3cc,_0x6ed6('0xe'),_0x115e58);}),this['listenTo'](_0x1c0b43,_0x6ed6('0xd'),(_0x2056fe,_0x2a57b6)=>{_0x5d4090[_0x6ed6('0x1')](_0x2a57b6)&&_0x5d4090['remove'](_0x2a57b6),this[_0x6ed6('0x7')](_0x2a57b6,_0x6ed6('0xe'),_0x115e58);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x523a=['plugins','collection','function','hasActive','listenTo','deactivate','length','_removeActiveAnnotation','_uisData','get','activeAnnotations','filter','annotationsuis-missing-ui','isActive','change:activeAnnotation','_visibleAnnotations','remove','_deactivateAllAnnotations','set','attach','_activateAnnotation','activate','switchTo','_uis','has','setActiveAnnotation','push','find','register','AnnotationsUIs','activeUIs','deactivateAll','_assertAnnotationDoesNotBelongToMultipleUIs','delete','destroy','annotationsuis-annotation-mismatch','init','from','refilterAnnotations','add','stopListening','context','_setSelectedAnnotations','detach','pluginName'];(function(_0x3b9749,_0x523af1){const _0x47df32=function(_0x29ab9d){while(--_0x29ab9d){_0x3b9749['push'](_0x3b9749['shift']());}};_0x47df32(++_0x523af1);}(_0x523a,0x15e));const _0x47df=function(_0x3b9749,_0x523af1){_0x3b9749=_0x3b9749-0x0;let _0x47df32=_0x523a[_0x3b9749];return _0x47df32;};import{ContextPlugin as _0x543f95}from'ckeditor5/src/core';import{CKEditorError as _0x2f1603}from'ckeditor5/src/utils';import _0x4e2b9f,{bindAnnotationCollections as _0x43ab71}from'./annotationcollection';import _0x13f9cb from'./annotations';export default class M extends _0x543f95{static get['requires'](){return[_0x13f9cb];}static get[_0x47df('0x9')](){return _0x47df('0x27');}constructor(_0x5b8da3){super(_0x5b8da3),this[_0x47df('0x28')]=new Set(),this[_0x47df('0x21')]=new Map(),this[_0x47df('0x12')]=new Map();}[_0x47df('0x1')](){const _0x58e7a4=this[_0x47df('0x6')][_0x47df('0xa')][_0x47df('0x13')](_0x13f9cb);this[_0x47df('0xe')](_0x58e7a4,_0x47df('0x1e'),(_0x348616,_0x2ef57e)=>{for(const _0xf5ae8f of this[_0x47df('0x28')]){const _0x2425bf=this[_0x47df('0x21')][_0x47df('0x13')](_0xf5ae8f);(0x0,this[_0x47df('0x12')][_0x47df('0x13')](_0xf5ae8f)[_0x47df('0x15')])(_0x2ef57e)&&_0x2425bf['setActiveAnnotation'](_0x2ef57e);}}),this[_0x47df('0xe')](_0x58e7a4,_0x47df('0x1b'),()=>{for(const _0x54746b of this[_0x47df('0x28')]){this['_uis'][_0x47df('0x13')](_0x54746b)[_0x47df('0x23')](null);}}),this[_0x47df('0xe')](_0x58e7a4['_visibleAnnotations'],_0x47df('0x4'),(_0x310814,_0x375b86)=>{this[_0x47df('0x2a')](_0x375b86);});}[_0x47df('0xd')](){return this['activeUIs']['size']>0x0;}[_0x47df('0x17')](_0x25cef3){return this[_0x47df('0x28')]['has'](_0x25cef3);}[_0x47df('0x1f')](_0xeefeaa,_0x39fb02=()=>!0x0){const _0x4b080e=this[_0x47df('0x6')]['plugins']['get'](_0x13f9cb);if(!this[_0x47df('0x21')]['has'](_0xeefeaa))throw new _0x2f1603(_0x47df('0x16'),this,{'uiName':_0xeefeaa});this[_0x47df('0x17')](_0xeefeaa)&&this[_0x47df('0xf')](_0xeefeaa),this['activeUIs'][_0x47df('0x4')](_0xeefeaa);const _0x48e7de=new _0x4e2b9f(),_0x57ab46=_0x4b080e[_0x47df('0x19')];_0x43ab71({'source':_0x57ab46,'target':_0x48e7de,'filter':_0x39fb02}),this[_0x47df('0x12')][_0x47df('0x1c')](_0xeefeaa,{'collection':_0x48e7de,'filter':_0x39fb02});const _0x513434=this[_0x47df('0x21')][_0x47df('0x13')](_0xeefeaa);_0x513434[_0x47df('0x1d')](_0x48e7de),this[_0x47df('0xe')](_0x513434,_0x47df('0x18'),(_0x4874f7,_0x3a70f4,_0x48daf3,_0x451068)=>{_0x451068&&_0x4b080e[_0x47df('0x11')](_0x451068),_0x48daf3&&_0x4b080e['_addActiveAnnotation'](_0x48daf3);});}[_0x47df('0xf')](_0x55073e){if(this[_0x47df('0x28')][_0x47df('0x2b')](_0x55073e),!this[_0x47df('0x21')][_0x47df('0x22')](_0x55073e))throw new _0x2f1603(_0x47df('0x16'),this,{'uiName':_0x55073e});const _0x50d8a7=this[_0x47df('0x21')][_0x47df('0x13')](_0x55073e);_0x50d8a7['detach'](),this[_0x47df('0x5')](_0x50d8a7),this[_0x47df('0x12')][_0x47df('0x13')](_0x55073e)[_0x47df('0xb')][_0x47df('0x2c')](),this[_0x47df('0x12')][_0x47df('0x2b')](_0x55073e);}[_0x47df('0x20')](_0x12894f){if(!this[_0x47df('0x21')][_0x47df('0x22')](_0x12894f))throw new _0x2f1603('annotationsuis-missing-ui',this,{'uiName':_0x12894f});const _0x48c243=this[_0x47df('0x6')][_0x47df('0xa')]['get'](_0x13f9cb),_0x4e78ac=Array['from'](_0x48c243[_0x47df('0x14')])[0x0]||null;this['deactivateAll'](),this[_0x47df('0x1f')](_0x12894f);const _0x435ae2=this[_0x47df('0x21')]['get'](_0x12894f);_0x435ae2[_0x47df('0x23')](_0x4e78ac),_0x435ae2[_0x47df('0x7')]&&_0x4e78ac&&_0x435ae2[_0x47df('0x7')]([_0x4e78ac]);}[_0x47df('0x29')](){for(const _0x261ff7 of this['activeUIs'])this['deactivate'](_0x261ff7);}[_0x47df('0x26')](_0x382ecd,_0x5eb56a){if(this[_0x47df('0x21')][_0x47df('0x22')](_0x382ecd))throw new _0x2f1603('annotationsuis-register-already-registered');if(_0x47df('0xc')!=typeof _0x5eb56a[_0x47df('0x1d')]||_0x47df('0xc')!=typeof _0x5eb56a[_0x47df('0x8')]||'function'!=typeof _0x5eb56a[_0x47df('0x23')])throw new _0x2f1603('annotationsuis-register-invalid-interface',null);this[_0x47df('0x21')]['set'](_0x382ecd,_0x5eb56a);}[_0x47df('0x3')](){const _0x1a3a01=this['context'][_0x47df('0xa')][_0x47df('0x13')](_0x13f9cb)[_0x47df('0xb')],_0x24b6a3=new Map(),_0x157771=Array[_0x47df('0x2')](this[_0x47df('0x28')]);for(const _0xe2cef6 of this[_0x47df('0x28')]){const _0x5a1385=this['_uisData'][_0x47df('0x13')](_0xe2cef6)['collection'];for(const _0x1a6bed of _0x5a1385)_0x24b6a3[_0x47df('0x1c')](_0x1a6bed,_0xe2cef6);}for(const _0x1f7c0a of _0x1a3a01){const _0x592696=_0x24b6a3[_0x47df('0x13')](_0x1f7c0a);this[_0x47df('0x2a')](_0x1f7c0a);const _0x7096fa=_0x157771[_0x47df('0x25')](_0x102e2b=>this[_0x47df('0x12')]['get'](_0x102e2b)['filter'](_0x1f7c0a));_0x592696!==_0x7096fa&&(_0x592696&&this['_uisData']['get'](_0x592696)[_0x47df('0xb')][_0x47df('0x1a')](_0x1f7c0a),_0x7096fa&&this[_0x47df('0x12')][_0x47df('0x13')](_0x7096fa)['collection'][_0x47df('0x4')](_0x1f7c0a));}}[_0x47df('0x2c')](){this[_0x47df('0x29')](),super['destroy']();}[_0x47df('0x2a')](_0x25cfa5){const _0xfe938b=[];for(const _0x5a6006 of this['activeUIs']){(0x0,this['_uisData'][_0x47df('0x13')](_0x5a6006)['filter'])(_0x25cfa5)&&_0xfe938b[_0x47df('0x24')](_0x5a6006);}if(_0xfe938b[_0x47df('0x10')]>0x1)throw new _0x2f1603(_0x47df('0x0'),null,{'matchedUIs':_0xfe938b,'annotationType':_0x25cfa5['type']});}}
23
+ const _0x1b4d=['attach','switchTo','length','deactivate','setActiveAnnotation','AnnotationsUIs','_activateAnnotation','find','remove','annotationsuis-missing-ui','refilterAnnotations','context','filter','add','annotationsuis-register-invalid-interface','activate','pluginName','_visibleAnnotations','set','_deactivateAllAnnotations','requires','change:activeAnnotation','collection','from','hasActive','has','function','type','init','destroy','delete','_uis','plugins','_uisData','_setSelectedAnnotations','get','activeUIs','_assertAnnotationDoesNotBelongToMultipleUIs','register','size','listenTo','deactivateAll','activeAnnotations','detach','annotationsuis-annotation-mismatch','push'];(function(_0x3002c9,_0x1b4d2f){const _0x4bb973=function(_0x3f041f){while(--_0x3f041f){_0x3002c9['push'](_0x3002c9['shift']());}};_0x4bb973(++_0x1b4d2f);}(_0x1b4d,0x12d));const _0x4bb9=function(_0x3002c9,_0x1b4d2f){_0x3002c9=_0x3002c9-0x0;let _0x4bb973=_0x1b4d[_0x3002c9];return _0x4bb973;};import{ContextPlugin as _0x4a28b0}from'ckeditor5/src/core';import{CKEditorError as _0x2747e1}from'ckeditor5/src/utils';import _0x530a85,{bindAnnotationCollections as _0x4913f7}from'./annotationcollection';import _0x188f9f from'./annotations';export default class M extends _0x4a28b0{static get[_0x4bb9('0x29')](){return[_0x188f9f];}static get[_0x4bb9('0x25')](){return _0x4bb9('0x1a');}constructor(_0x8d71e){super(_0x8d71e),this[_0x4bb9('0xb')]=new Set(),this[_0x4bb9('0x6')]=new Map(),this['_uisData']=new Map();}[_0x4bb9('0x3')](){const _0x588e37=this['context']['plugins']['get'](_0x188f9f);this[_0x4bb9('0xf')](_0x588e37,_0x4bb9('0x1b'),(_0x17b5d4,_0x5f25a5)=>{for(const _0x38782d of this[_0x4bb9('0xb')]){const _0x5bd4cf=this[_0x4bb9('0x6')]['get'](_0x38782d);(0x0,this['_uisData']['get'](_0x38782d)['filter'])(_0x5f25a5)&&_0x5bd4cf[_0x4bb9('0x19')](_0x5f25a5);}}),this[_0x4bb9('0xf')](_0x588e37,_0x4bb9('0x28'),()=>{for(const _0x1d8626 of this[_0x4bb9('0xb')]){this[_0x4bb9('0x6')][_0x4bb9('0xa')](_0x1d8626)['setActiveAnnotation'](null);}}),this[_0x4bb9('0xf')](_0x588e37[_0x4bb9('0x26')],_0x4bb9('0x22'),(_0xa67d67,_0x179d84)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x179d84);});}[_0x4bb9('0x2d')](){return this[_0x4bb9('0xb')][_0x4bb9('0xe')]>0x0;}['isActive'](_0x52d7dd){return this['activeUIs']['has'](_0x52d7dd);}['activate'](_0x4f0f2f,_0x1014d5=()=>!0x0){const _0x27ba52=this[_0x4bb9('0x20')][_0x4bb9('0x7')][_0x4bb9('0xa')](_0x188f9f);if(!this[_0x4bb9('0x6')]['has'](_0x4f0f2f))throw new _0x2747e1(_0x4bb9('0x1e'),this,{'uiName':_0x4f0f2f});this['isActive'](_0x4f0f2f)&&this[_0x4bb9('0x18')](_0x4f0f2f),this[_0x4bb9('0xb')][_0x4bb9('0x22')](_0x4f0f2f);const _0x4086fa=new _0x530a85(),_0x27182e=_0x27ba52[_0x4bb9('0x26')];_0x4913f7({'source':_0x27182e,'target':_0x4086fa,'filter':_0x1014d5}),this[_0x4bb9('0x8')][_0x4bb9('0x27')](_0x4f0f2f,{'collection':_0x4086fa,'filter':_0x1014d5});const _0x522e80=this['_uis']['get'](_0x4f0f2f);_0x522e80[_0x4bb9('0x15')](_0x4086fa),this['listenTo'](_0x522e80,_0x4bb9('0x2a'),(_0x378302,_0x675f79,_0x469b92,_0x1046aa)=>{_0x1046aa&&_0x27ba52['_removeActiveAnnotation'](_0x1046aa),_0x469b92&&_0x27ba52['_addActiveAnnotation'](_0x469b92);});}[_0x4bb9('0x18')](_0x1fb73c){if(this[_0x4bb9('0xb')][_0x4bb9('0x5')](_0x1fb73c),!this[_0x4bb9('0x6')][_0x4bb9('0x0')](_0x1fb73c))throw new _0x2747e1(_0x4bb9('0x1e'),this,{'uiName':_0x1fb73c});const _0x40b66a=this['_uis'][_0x4bb9('0xa')](_0x1fb73c);_0x40b66a[_0x4bb9('0x12')](),this['stopListening'](_0x40b66a),this['_uisData']['get'](_0x1fb73c)[_0x4bb9('0x2b')][_0x4bb9('0x4')](),this[_0x4bb9('0x8')]['delete'](_0x1fb73c);}[_0x4bb9('0x16')](_0x52035f){if(!this['_uis'][_0x4bb9('0x0')](_0x52035f))throw new _0x2747e1(_0x4bb9('0x1e'),this,{'uiName':_0x52035f});const _0x442bc2=this[_0x4bb9('0x20')][_0x4bb9('0x7')][_0x4bb9('0xa')](_0x188f9f),_0x5c07dc=Array[_0x4bb9('0x2c')](_0x442bc2[_0x4bb9('0x11')])[0x0]||null;this[_0x4bb9('0x10')](),this[_0x4bb9('0x24')](_0x52035f);const _0x57c43d=this[_0x4bb9('0x6')][_0x4bb9('0xa')](_0x52035f);_0x57c43d[_0x4bb9('0x19')](_0x5c07dc),_0x57c43d[_0x4bb9('0x9')]&&_0x5c07dc&&_0x57c43d[_0x4bb9('0x9')]([_0x5c07dc]);}[_0x4bb9('0x10')](){for(const _0x5605b1 of this['activeUIs'])this['deactivate'](_0x5605b1);}[_0x4bb9('0xd')](_0x2a78ee,_0x508a40){if(this[_0x4bb9('0x6')][_0x4bb9('0x0')](_0x2a78ee))throw new _0x2747e1('annotationsuis-register-already-registered');if('function'!=typeof _0x508a40[_0x4bb9('0x15')]||'function'!=typeof _0x508a40[_0x4bb9('0x12')]||_0x4bb9('0x1')!=typeof _0x508a40['setActiveAnnotation'])throw new _0x2747e1(_0x4bb9('0x23'),null);this[_0x4bb9('0x6')]['set'](_0x2a78ee,_0x508a40);}[_0x4bb9('0x1f')](){const _0x66bd0=this[_0x4bb9('0x20')][_0x4bb9('0x7')][_0x4bb9('0xa')](_0x188f9f)[_0x4bb9('0x2b')],_0xc66481=new Map(),_0x2e78cc=Array[_0x4bb9('0x2c')](this[_0x4bb9('0xb')]);for(const _0x446e3e of this[_0x4bb9('0xb')]){const _0x10d21a=this['_uisData'][_0x4bb9('0xa')](_0x446e3e)['collection'];for(const _0x5682a6 of _0x10d21a)_0xc66481['set'](_0x5682a6,_0x446e3e);}for(const _0x1c428f of _0x66bd0){const _0x27086d=_0xc66481[_0x4bb9('0xa')](_0x1c428f);this[_0x4bb9('0xc')](_0x1c428f);const _0x5b49f8=_0x2e78cc[_0x4bb9('0x1c')](_0x418d0b=>this[_0x4bb9('0x8')][_0x4bb9('0xa')](_0x418d0b)[_0x4bb9('0x21')](_0x1c428f));_0x27086d!==_0x5b49f8&&(_0x27086d&&this['_uisData'][_0x4bb9('0xa')](_0x27086d)[_0x4bb9('0x2b')][_0x4bb9('0x1d')](_0x1c428f),_0x5b49f8&&this['_uisData']['get'](_0x5b49f8)[_0x4bb9('0x2b')]['add'](_0x1c428f));}}[_0x4bb9('0x4')](){this[_0x4bb9('0x10')](),super['destroy']();}[_0x4bb9('0xc')](_0x415165){const _0x58b28d=[];for(const _0x466873 of this[_0x4bb9('0xb')]){(0x0,this[_0x4bb9('0x8')][_0x4bb9('0xa')](_0x466873)[_0x4bb9('0x21')])(_0x415165)&&_0x58b28d[_0x4bb9('0x14')](_0x466873);}if(_0x58b28d[_0x4bb9('0x17')]>0x1)throw new _0x2747e1(_0x4bb9('0x13'),null,{'matchedUIs':_0x58b28d,'annotationType':_0x415165[_0x4bb9('0x2')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8b48=['focusTracker','editorannotations-invalid-source-callback','containsRange','update','editor','innerView','cancel','annotation','hasDomSelection','editing','push','getOrderedSelectedAnnotations','blur','refreshSelectedViews','selection','model','fire','set','EditorAnnotations','has','remove','function','_editorAnnotationsData','plugins','sort','add','init','requires','element','listenTo','collection','addSourceCollector','_dataCollectors','pluginName','directChange','_editorAnnotations','change:isFocused','isCollapsed','range','get','getRanges','view','document','from','registerAnnotation'];(function(_0x5034fd,_0x8b48c5){const _0x44283e=function(_0x21d188){while(--_0x21d188){_0x5034fd['push'](_0x5034fd['shift']());}};_0x44283e(++_0x8b48c5);}(_0x8b48,0x1b5));const _0x4428=function(_0x5034fd,_0x8b48c5){_0x5034fd=_0x5034fd-0x0;let _0x44283e=_0x8b48[_0x5034fd];return _0x44283e;};import{Plugin as _0x6ef614}from'ckeditor5/src/core';import{CKEditorError as _0x21b464}from'ckeditor5/src/utils';import{debounce as _0x14cb1c}from'lodash-es';import _0x29dcc3 from'./annotations';export default class k extends _0x6ef614{static get[_0x4428('0x28')](){return[_0x29dcc3];}static get[_0x4428('0x1')](){return _0x4428('0x1f');}constructor(_0x10b637){super(_0x10b637),this[_0x4428('0x0')]=new Set(),this[_0x4428('0x3')]=new Set();}[_0x4428('0x27')](){const _0x4b2b97=this['editor'],_0x37a637=_0x4b2b97[_0x4428('0x1c')][_0x4428('0xa')][_0x4428('0x1b')],_0x158963=_0x14cb1c(()=>this[_0x4428('0x1a')](),0xa);_0x37a637['on']('change:range',(_0x4bfb90,_0x54ddd4)=>{_0x54ddd4[_0x4428('0x2')]&&(_0x158963[_0x4428('0x13')](),this[_0x4428('0x1a')]());}),this[_0x4428('0x2a')](_0x4b2b97['editing'][_0x4428('0x9')][_0x4428('0xa')],_0x4428('0x4'),(_0x2223e3,_0x48eabe,_0x39b463)=>{_0x39b463&&_0x158963();}),this[_0x4428('0x2a')](_0x4b2b97['ui'][_0x4428('0xd')],_0x4428('0x4'),(_0x1a144d,_0x37450e,_0x23673a)=>{_0x23673a||_0x4b2b97['isReadOnly']||this[_0x4428('0x1d')](_0x4428('0x19'),{'isAnnotationTracked':_0x600bc1=>this['_editorAnnotationsData'][_0x4428('0x20')](_0x600bc1[_0x4428('0x12')])});}),this[_0x4428('0x2a')](this[_0x4428('0x11')]['ui'],_0x4428('0x10'),()=>this['fire']('uiUpdate'));}[_0x4428('0xc')](_0x105254){if(this[_0x4428('0x3')][_0x4428('0x20')](_0x105254[_0x4428('0x9')]))return;this[_0x4428('0x3')][_0x4428('0x26')](_0x105254['view']),this[_0x4428('0x11')]['ui'][_0x4428('0xd')][_0x4428('0x26')](_0x105254[_0x4428('0x9')]['element']);const _0x4bb136=this[_0x4428('0x11')][_0x4428('0x24')][_0x4428('0x7')](_0x29dcc3);this['listenTo'](_0x4bb136[_0x4428('0x2b')],'remove',(_0x46416e,_0x5e7ea9)=>{this[_0x4428('0x11')]['ui'][_0x4428('0xd')][_0x4428('0x21')](_0x5e7ea9['view'][_0x4428('0x29')]),this['_editorAnnotations']['delete'](_0x5e7ea9['view']);});}[_0x4428('0x15')](){return this[_0x4428('0x11')][_0x4428('0x16')]['view']['hasDomSelection'];}[_0x4428('0x2c')](_0x1f72f3){if(_0x4428('0x22')!=typeof _0x1f72f3)throw new _0x21b464(_0x4428('0xe'));this[_0x4428('0x0')][_0x4428('0x26')](_0x1f72f3);}[_0x4428('0x1a')](){this[_0x4428('0x1d')]('refresh');}[_0x4428('0x18')]({activeAnnotation:_0x30fc54,annotations:_0x33788c}){const _0x509f4d=[],_0x48d1cd=this['editor'][_0x4428('0x1c')][_0x4428('0xa')][_0x4428('0x1b')],_0x450048=Array['from'](_0x48d1cd[_0x4428('0x8')]());for(const [_0x140b05,_0x1a4e2b]of this['_editorAnnotationsData']){const _0x54ad89=_0x40212a(_0x1a4e2b),_0x199001=_0x33788c['getByInnerView'](_0x140b05);_0x54ad89&&_0x199001&&_0x509f4d[_0x4428('0x17')]({'annotation':_0x199001,'range':_0x54ad89});}function _0x40212a(_0x40bc8d){for(const _0x330588 of _0x40bc8d)for(const _0x33d321 of _0x450048)if(_0x330588[_0x4428('0xf')](_0x33d321,!_0x48d1cd[_0x4428('0x5')]))return _0x330588;return null;}return _0x509f4d[_0x4428('0x25')]((_0x4594ae,_0x1fe797)=>{const _0x17ed6a=_0x4594ae[_0x4428('0x6')],_0x36287c=_0x1fe797[_0x4428('0x6')];if(!_0x17ed6a['isEqual'](_0x36287c)){if(_0x17ed6a[_0x4428('0xf')](_0x36287c,!0x0))return 0x1;if(_0x36287c[_0x4428('0xf')](_0x17ed6a,!0x0))return-0x1;}return _0x4594ae[_0x4428('0x14')]==_0x30fc54?-0x1:_0x1fe797[_0x4428('0x14')]==_0x30fc54?0x1:0x0;})['map'](_0x44e3a4=>_0x44e3a4['annotation']);}get[_0x4428('0x23')](){const _0x59af02=new Map();for(const _0x25ce3f of Array[_0x4428('0xb')](this['_dataCollectors']))for(const [_0xd776d0,_0x14fc3c]of _0x25ce3f())_0x59af02[_0x4428('0x1e')](_0xd776d0,_0x14fc3c);return _0x59af02;}}
23
+ const _0x24e1=['change:isFocused','get','getByInnerView','view','addSourceCollector','set','pluginName','delete','change:range','plugins','init','editing','fire','blur','registerAnnotation','getRanges','has','innerView','push','annotation','from','uiUpdate','_editorAnnotations','listenTo','range','getOrderedSelectedAnnotations','directChange','_dataCollectors','_editorAnnotationsData','function','refresh','remove','editor','focusTracker','collection','selection','document','update','model','EditorAnnotations','element','hasDomSelection','refreshSelectedViews','containsRange','map'];(function(_0x4c8838,_0x24e1fd){const _0x1d33a3=function(_0x12c853){while(--_0x12c853){_0x4c8838['push'](_0x4c8838['shift']());}};_0x1d33a3(++_0x24e1fd);}(_0x24e1,0x1a5));const _0x1d33=function(_0x4c8838,_0x24e1fd){_0x4c8838=_0x4c8838-0x0;let _0x1d33a3=_0x24e1[_0x4c8838];return _0x1d33a3;};import{Plugin as _0x25fc9d}from'ckeditor5/src/core';import{CKEditorError as _0x1a2318}from'ckeditor5/src/utils';import{debounce as _0x33d6f9}from'lodash-es';import _0x5a9874 from'./annotations';export default class k extends _0x25fc9d{static get['requires'](){return[_0x5a9874];}static get[_0x1d33('0x23')](){return _0x1d33('0x17');}constructor(_0x6c87e0){super(_0x6c87e0),this[_0x1d33('0xb')]=new Set(),this[_0x1d33('0x6')]=new Set();}[_0x1d33('0x27')](){const _0x1835be=this[_0x1d33('0x10')],_0x3264f5=_0x1835be['model'][_0x1d33('0x14')][_0x1d33('0x13')],_0x41f3c4=_0x33d6f9(()=>this['refreshSelectedViews'](),0xa);_0x3264f5['on'](_0x1d33('0x25'),(_0x155b91,_0xf93158)=>{_0xf93158[_0x1d33('0xa')]&&(_0x41f3c4['cancel'](),this[_0x1d33('0x1a')]());}),this[_0x1d33('0x7')](_0x1835be[_0x1d33('0x28')][_0x1d33('0x20')]['document'],_0x1d33('0x1d'),(_0x3a43a7,_0x2b1987,_0x223d62)=>{_0x223d62&&_0x41f3c4();}),this[_0x1d33('0x7')](_0x1835be['ui'][_0x1d33('0x11')],_0x1d33('0x1d'),(_0x5323b8,_0x150a88,_0x1ff55b)=>{_0x1ff55b||_0x1835be['isReadOnly']||this[_0x1d33('0x29')](_0x1d33('0x2a'),{'isAnnotationTracked':_0x1048f4=>this[_0x1d33('0xc')][_0x1d33('0x0')](_0x1048f4[_0x1d33('0x1')])});}),this[_0x1d33('0x7')](this[_0x1d33('0x10')]['ui'],_0x1d33('0x15'),()=>this['fire'](_0x1d33('0x5')));}[_0x1d33('0x2b')](_0x29d267){if(this[_0x1d33('0x6')][_0x1d33('0x0')](_0x29d267[_0x1d33('0x20')]))return;this[_0x1d33('0x6')]['add'](_0x29d267[_0x1d33('0x20')]),this['editor']['ui'][_0x1d33('0x11')]['add'](_0x29d267[_0x1d33('0x20')][_0x1d33('0x18')]);const _0x69ed0e=this['editor'][_0x1d33('0x26')][_0x1d33('0x1e')](_0x5a9874);this[_0x1d33('0x7')](_0x69ed0e[_0x1d33('0x12')],_0x1d33('0xf'),(_0x14fd19,_0xff9be4)=>{this[_0x1d33('0x10')]['ui'][_0x1d33('0x11')][_0x1d33('0xf')](_0xff9be4[_0x1d33('0x20')][_0x1d33('0x18')]),this[_0x1d33('0x6')][_0x1d33('0x24')](_0xff9be4[_0x1d33('0x20')]);});}[_0x1d33('0x19')](){return this['editor'][_0x1d33('0x28')]['view'][_0x1d33('0x19')];}[_0x1d33('0x21')](_0x29803f){if(_0x1d33('0xd')!=typeof _0x29803f)throw new _0x1a2318('editorannotations-invalid-source-callback');this[_0x1d33('0xb')]['add'](_0x29803f);}['refreshSelectedViews'](){this['fire'](_0x1d33('0xe'));}[_0x1d33('0x9')]({activeAnnotation:_0x3531cf,annotations:_0xdeec99}){const _0x303a45=[],_0x53badd=this[_0x1d33('0x10')][_0x1d33('0x16')][_0x1d33('0x14')][_0x1d33('0x13')],_0x16bc5e=Array[_0x1d33('0x4')](_0x53badd[_0x1d33('0x2c')]());for(const [_0x504b4c,_0x28b9cf]of this['_editorAnnotationsData']){const _0x21c700=_0x1d615b(_0x28b9cf),_0x470d66=_0xdeec99[_0x1d33('0x1f')](_0x504b4c);_0x21c700&&_0x470d66&&_0x303a45[_0x1d33('0x2')]({'annotation':_0x470d66,'range':_0x21c700});}function _0x1d615b(_0x19b6ab){for(const _0x131273 of _0x19b6ab)for(const _0x1737ae of _0x16bc5e)if(_0x131273['containsRange'](_0x1737ae,!_0x53badd['isCollapsed']))return _0x131273;return null;}return _0x303a45['sort']((_0x47de7a,_0x27db66)=>{const _0x521bbf=_0x47de7a[_0x1d33('0x8')],_0x4be2e9=_0x27db66['range'];if(!_0x521bbf['isEqual'](_0x4be2e9)){if(_0x521bbf[_0x1d33('0x1b')](_0x4be2e9,!0x0))return 0x1;if(_0x4be2e9[_0x1d33('0x1b')](_0x521bbf,!0x0))return-0x1;}return _0x47de7a[_0x1d33('0x3')]==_0x3531cf?-0x1:_0x27db66[_0x1d33('0x3')]==_0x3531cf?0x1:0x0;})[_0x1d33('0x1c')](_0x39a109=>_0x39a109[_0x1d33('0x3')]);}get[_0x1d33('0xc')](){const _0x52d173=new Map();for(const _0xc72501 of Array['from'](this['_dataCollectors']))for(const [_0x4cd4cb,_0x164c9f]of _0xc72501())_0x52d173[_0x1d33('0x22')](_0x4cd4cb,_0x164c9f);return _0x52d173;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x354d=['_selectedAnnotations','detach','stopListening','_addedAnnotations','setActiveAnnotation','set','inlineannotations-attach-already-attached','_forceRefresh','_closeAnnotation','change:height','focus','top','refresh','bottom','delete','domConverter','view','right','change:visibleView','hasView','init','editing','width','updatePosition','_balloon','hasActive','afterInit','document','get','remove','_setSelectedAnnotations','getClientRects','isAttached','activeAnnotation','selection','pluginName','getOrderedSelectedAnnotations','focusTracker','getFirstRange','addObserver','inlineannotations-detach-not-attached','attach','_removeAnnotationFromBalloon','left','push','annotations','destroy','showStack','_getBalloonTargetForAnnotation','from','isActive','plugins','_addAnnotationToBalloon','switchTo','length','isFocused','map','every','inline','includes','blur','Esc','visibleView','add','requires','editor','inlineannotations-not-allowed-with-context','change:isFocused','has','editableElement','listenTo','context','find','_manuallyClosed','getByView'];(function(_0x3906b5,_0x354d98){const _0x4dee4a=function(_0x3951e1){while(--_0x3951e1){_0x3906b5['push'](_0x3906b5['shift']());}};_0x4dee4a(++_0x354d98);}(_0x354d,0x153));const _0x4dee=function(_0x3906b5,_0x354d98){_0x3906b5=_0x3906b5-0x0;let _0x4dee4a=_0x354d[_0x3906b5];return _0x4dee4a;};import{Plugin as _0x2bf636}from'ckeditor5/src/core';import _0x51a792 from'./annotationsuis';import _0x230b7e from'./editorannotations';import{ContextualBalloon as _0x4720d6}from'ckeditor5/src/ui';import{MouseObserver as _0x7cd6d2}from'ckeditor5/src/engine';import{CKEditorError as _0x302398,Rect as _0x230f1a}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x2bf636{static get[_0x4dee('0x19')](){return[_0x230b7e,_0x4720d6,_0x51a792];}static get[_0x4dee('0x47')](){return'InlineAnnotations';}constructor(_0x3e6ec9){super(_0x3e6ec9),_0x3e6ec9['editing']['view'][_0x4dee('0x0')](_0x7cd6d2),this[_0x4dee('0x44')]=!0x1,this[_0x4dee('0x29')]('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x4dee('0x3c')]=_0x3e6ec9[_0x4dee('0xc')][_0x4dee('0x40')](_0x4720d6),this[_0x4dee('0x27')]=new Set(),this['_selectedAnnotations']=[],this[_0x4dee('0x2b')]=!0x1;}[_0x4dee('0x38')](){const _0x2639e0=this[_0x4dee('0x1a')][_0x4dee('0xc')][_0x4dee('0x40')](_0x51a792);_0x2639e0[_0x4dee('0x20')]===this[_0x4dee('0x1a')]&&(_0x2639e0['register'](_0x4dee('0x13'),this),this[_0x4dee('0x1a')]['keystrokes'][_0x4dee('0x29')](_0x4dee('0x16'),(_0xb93870,_0x19bec0)=>{const _0x22907b=this[_0x4dee('0x3c')];if(this[_0x4dee('0x44')]&&_0x22907b[_0x4dee('0x17')]){const _0x135216=this[_0x4dee('0x6')][_0x4dee('0x23')](_0x22907b[_0x4dee('0x17')]);_0x135216&&this[_0x4dee('0x2c')](_0x135216),_0x19bec0();}}));}[_0x4dee('0x3e')](){const _0x3d7a8c=this[_0x4dee('0x1a')][_0x4dee('0xc')][_0x4dee('0x40')](_0x51a792);_0x3d7a8c[_0x4dee('0x20')]===this[_0x4dee('0x1a')]&&(_0x3d7a8c[_0x4dee('0x3d')]()||_0x3d7a8c[_0x4dee('0xe')](_0x4dee('0x13')));}[_0x4dee('0x28')](_0xcfaf33){_0xcfaf33!==this[_0x4dee('0x45')]&&(this['activeAnnotation']&&(this[_0x4dee('0x45')][_0x4dee('0xb')]=!0x1),_0xcfaf33&&this[_0x4dee('0x1a')]['ui']['focusTracker'][_0x4dee('0x10')]&&(this['annotations'][_0x4dee('0x1d')](_0xcfaf33)&&this[_0x4dee('0xd')](_0xcfaf33,!0x0),_0xcfaf33[_0x4dee('0xb')]=!0x0),_0xcfaf33||this[_0x4dee('0x42')]([]),this['activeAnnotation']=_0xcfaf33);}[_0x4dee('0x2')](_0x8c47f1){this[_0x4dee('0x6')]=_0x8c47f1;const _0x4f0a5d=this[_0x4dee('0x1a')][_0x4dee('0xc')]['get'](_0x51a792),_0x1874b8=this[_0x4dee('0x3c')];if(this[_0x4dee('0x44')])throw new _0x302398(_0x4dee('0x2a'),this);if(_0x4f0a5d[_0x4dee('0x20')]!==this[_0x4dee('0x1a')])throw new _0x302398(_0x4dee('0x1b'),this);const _0x59385b=this[_0x4dee('0x1a')]['plugins'][_0x4dee('0x40')](_0x230b7e);this['listenTo'](_0x59385b,_0x4dee('0x30'),()=>{const _0x567de4=_0x59385b[_0x4dee('0x48')]({'annotations':this['annotations'],'activeAnnotation':this[_0x4dee('0x45')]});var _0x7cf87f,_0xf303a5;!this[_0x4dee('0x2b')]&&(_0x7cf87f=_0x567de4,_0xf303a5=this[_0x4dee('0x24')],_0x7cf87f[_0x4dee('0xf')]===_0xf303a5['length']&&_0x7cf87f[_0x4dee('0x12')](_0x3458c0=>_0xf303a5[_0x4dee('0x14')](_0x3458c0)))||(this[_0x4dee('0x2b')]=!0x1,this[_0x4dee('0x42')](_0x567de4),this['setActiveAnnotation'](_0x567de4[0x0]||null));}),this[_0x4dee('0x1f')](_0x59385b,_0x4dee('0x15'),(_0xef9802,{isAnnotationTracked:_0x12d1ec})=>{this['activeAnnotation']&&_0x12d1ec(this[_0x4dee('0x45')])&&(this[_0x4dee('0x42')]([]),this[_0x4dee('0x28')](null));}),this[_0x4dee('0x1f')](this[_0x4dee('0x1a')]['ui'][_0x4dee('0x49')],_0x4dee('0x1c'),(_0x148fe6,_0x2a87cb,_0xd65b60)=>{_0xd65b60||this['setActiveAnnotation'](null);}),this[_0x4dee('0x1f')](_0x8c47f1,_0x4dee('0x41'),(_0x1e8121,_0x3b0a91)=>{this['_removeAnnotationFromBalloon'](_0x3b0a91),_0x3b0a91===this[_0x4dee('0x45')]&&this[_0x4dee('0x28')](null);}),this['listenTo'](_0x1874b8,_0x4dee('0x36'),(_0x187584,_0x25baf9,_0x578984,_0x2110d2)=>{_0x2110d2&&this[_0x4dee('0x26')](_0x2110d2);const _0x1f9e58=_0x8c47f1[_0x4dee('0x23')](_0x578984);_0x578984&&_0x1f9e58&&(this[_0x4dee('0x1f')](_0x578984,_0x4dee('0x2d'),()=>{_0x1874b8[_0x4dee('0x3b')]();}),this['listenTo'](_0x578984,'Esc',()=>{this[_0x4dee('0x2c')](_0x1f9e58),this[_0x4dee('0x1a')][_0x4dee('0x39')]['view'][_0x4dee('0x2e')]();}),this[_0x4dee('0x45')]!==_0x1f9e58&&this['setActiveAnnotation'](_0x1f9e58));}),this[_0x4dee('0x1f')](this[_0x4dee('0x1a')]['ui'],'update',()=>{_0x1874b8['visibleView']&&(_0x8c47f1[_0x4dee('0x23')](_0x1874b8[_0x4dee('0x17')])&&_0x1874b8[_0x4dee('0x3b')]());}),this['listenTo'](this[_0x4dee('0x1a')][_0x4dee('0x39')]['view'][_0x4dee('0x3f')],'mousedown',()=>{this[_0x4dee('0x2b')]=!0x0,this[_0x4dee('0x22')]['clear']();}),this[_0x4dee('0x1a')][_0x4dee('0x39')][_0x4dee('0x34')][_0x4dee('0x3f')]['selection'][_0x4dee('0x1e')]&&this[_0x4dee('0x1a')][_0x4dee('0x39')][_0x4dee('0x34')][_0x4dee('0x2e')](),this[_0x4dee('0x44')]=!0x0;}[_0x4dee('0x25')](){if(!this['isAttached'])throw new _0x302398(_0x4dee('0x1'),this);this[_0x4dee('0x28')](null);for(const _0x3b4863 of this[_0x4dee('0x27')])this[_0x4dee('0x3')](_0x3b4863);this[_0x4dee('0x26')](),this[_0x4dee('0x44')]=!0x1,this[_0x4dee('0x6')]=null;}[_0x4dee('0x7')](){this['isAttached']&&this[_0x4dee('0x25')]();}[_0x4dee('0x42')](_0x5db14e){for(const _0x1836f2 of this[_0x4dee('0x24')])_0x5db14e[_0x4dee('0x14')](_0x1836f2)||this[_0x4dee('0x22')][_0x4dee('0x32')](_0x1836f2);for(const _0x10a0b6 of this[_0x4dee('0x6')])_0x5db14e['includes'](_0x10a0b6)||this[_0x4dee('0x3')](_0x10a0b6);if(this['editor']['ui'][_0x4dee('0x49')][_0x4dee('0x10')])for(const _0x230147 of _0x5db14e)this[_0x4dee('0xd')](_0x230147);this[_0x4dee('0x24')]=_0x5db14e;}[_0x4dee('0xd')](_0x3db229,_0x346fbd=!0x1){this[_0x4dee('0x22')]['has'](_0x3db229)||(this[_0x4dee('0x27')][_0x4dee('0x1d')](_0x3db229)||this[_0x4dee('0x3c')][_0x4dee('0x37')](_0x3db229[_0x4dee('0x34')])||(this[_0x4dee('0x27')][_0x4dee('0x18')](_0x3db229),this[_0x4dee('0x3c')][_0x4dee('0x18')]({'stackId':_0x3db229[_0x4dee('0x34')]['id'],'view':_0x3db229['view'],'position':{'target':()=>this[_0x4dee('0x9')](_0x3db229)}})),_0x346fbd&&this[_0x4dee('0x3c')][_0x4dee('0x8')](_0x3db229[_0x4dee('0x34')]['id']));}[_0x4dee('0x9')](_0xc8a66b){const _0x47ce3d=_0xc8a66b['target'],_0x1c5a8e=this['editor'][_0x4dee('0x39')]['view'],_0x440a80=_0x1c5a8e[_0x4dee('0x3f')][_0x4dee('0x46')][_0x4dee('0x4a')](),_0x593b98=_0x1c5a8e[_0x4dee('0x33')]['viewRangeToDom'](_0x440a80);if(_0x593b98['collapse'](!0x0),_0x47ce3d){if(_0x47ce3d instanceof _0x230f1a)return _0x47ce3d;let _0x19b3c0=[];for(const _0x27db74 of _0x47ce3d)_0x19b3c0[_0x4dee('0x5')](...(_0xded84e=_0x27db74[_0x4dee('0x43')](),Array[_0x4dee('0xa')](_0xded84e)[_0x4dee('0x11')](DOMRect['fromRect'])));_0x19b3c0=function(_0x40c951){const _0x5dd188=[];let _0x422c3e=_0x40c951[0x0];for(let _0x4c833e=0x1;_0x4c833e<_0x40c951[_0x4dee('0xf')];_0x4c833e++)F(_0x422c3e,_0x40c951[_0x4c833e])?_0x422c3e[_0x4dee('0x3a')]+=_0x40c951[_0x4c833e][_0x4dee('0x3a')]:(_0x5dd188['push'](_0x422c3e),_0x422c3e=_0x40c951[_0x4c833e]);return _0x5dd188[_0x4dee('0x5')](_0x422c3e),_0x5dd188;}(_0x19b3c0);const _0x4f47b5=_0x593b98['getBoundingClientRect']();return _0x19b3c0[_0x4dee('0x21')](_0xe24a38=>_0xe24a38[_0x4dee('0x2f')]<=_0x4f47b5[_0x4dee('0x2f')]&&_0xe24a38['bottom']>=_0x4f47b5[_0x4dee('0x31')]&&_0xe24a38['left']<=_0x4f47b5[_0x4dee('0x4')]&&_0xe24a38[_0x4dee('0x35')]>=_0x4f47b5[_0x4dee('0x35')])||_0x19b3c0[0x0];}var _0xded84e;return _0xc8a66b['targetRect']||_0x593b98;}[_0x4dee('0x3')](_0x5dd7b8){this[_0x4dee('0x27')][_0x4dee('0x1d')](_0x5dd7b8)&&this['_balloon']['hasView'](_0x5dd7b8[_0x4dee('0x34')])&&(this[_0x4dee('0x27')]['delete'](_0x5dd7b8),this[_0x4dee('0x3c')]['remove'](_0x5dd7b8[_0x4dee('0x34')]));}[_0x4dee('0x2c')](_0x1e6447){this[_0x4dee('0x22')][_0x4dee('0x18')](_0x1e6447),this[_0x4dee('0x3')](_0x1e6447);}}function F(_0x16bff9,_0x1fdeb7){return _0x16bff9[_0x4dee('0x2f')]===_0x1fdeb7[_0x4dee('0x2f')]&&_0x16bff9[_0x4dee('0x31')]===_0x1fdeb7['bottom']&&_0x16bff9[_0x4dee('0x35')]===_0x1fdeb7['left'];}
23
+ const _0x148a=['targetRect','blur','get','init','inline','context','destroy','plugins','getClientRects','getBoundingClientRect','_manuallyClosed','_addAnnotationToBalloon','listenTo','showStack','visibleView','activeAnnotation','addObserver','requires','push','_balloon','isAttached','width','getOrderedSelectedAnnotations','_selectedAnnotations','document','detach','setActiveAnnotation','collapse','add','set','left','refresh','isActive','fromRect','mousedown','_setSelectedAnnotations','remove','delete','keystrokes','editor','hasActive','right','_closeAnnotation','selection','domConverter','stopListening','isFocused','annotations','Esc','has','editing','inlineannotations-detach-not-attached','from','attach','change:isFocused','register','hasView','includes','afterInit','updatePosition','InlineAnnotations','view','focusTracker','clear','_forceRefresh','_removeAnnotationFromBalloon','inlineannotations-not-allowed-with-context','top','map','getFirstRange','_addedAnnotations','_getBalloonTargetForAnnotation','length','bottom','focus','getByView','target'];(function(_0x4fad4e,_0x148ad7){const _0x374bc2=function(_0x168313){while(--_0x168313){_0x4fad4e['push'](_0x4fad4e['shift']());}};_0x374bc2(++_0x148ad7);}(_0x148a,0x1b3));const _0x374b=function(_0x4fad4e,_0x148ad7){_0x4fad4e=_0x4fad4e-0x0;let _0x374bc2=_0x148a[_0x4fad4e];return _0x374bc2;};import{Plugin as _0x1d2bd1}from'ckeditor5/src/core';import _0x3c083d from'./annotationsuis';import _0x498477 from'./editorannotations';import{ContextualBalloon as _0xde8a70}from'ckeditor5/src/ui';import{MouseObserver as _0x58b6cf}from'ckeditor5/src/engine';import{CKEditorError as _0x4942e2,Rect as _0x313398}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x1d2bd1{static get[_0x374b('0x2c')](){return[_0x498477,_0xde8a70,_0x3c083d];}static get['pluginName'](){return _0x374b('0xa');}constructor(_0x1a7c37){super(_0x1a7c37),_0x1a7c37[_0x374b('0x0')][_0x374b('0xb')][_0x374b('0x2b')](_0x58b6cf),this[_0x374b('0x2f')]=!0x1,this[_0x374b('0x38')](_0x374b('0x2a'),null),this['annotations']=null,this[_0x374b('0x25')]=new Set(),this[_0x374b('0x2e')]=_0x1a7c37[_0x374b('0x22')][_0x374b('0x1d')](_0xde8a70),this[_0x374b('0x14')]=new Set(),this['_selectedAnnotations']=[],this[_0x374b('0xe')]=!0x1;}[_0x374b('0x1e')](){const _0x8ef7a9=this[_0x374b('0x42')][_0x374b('0x22')][_0x374b('0x1d')](_0x3c083d);_0x8ef7a9[_0x374b('0x20')]===this['editor']&&(_0x8ef7a9[_0x374b('0x5')](_0x374b('0x1f'),this),this[_0x374b('0x42')][_0x374b('0x41')][_0x374b('0x38')](_0x374b('0x4b'),(_0x4e25d6,_0x4f5a9b)=>{const _0x5da8d1=this[_0x374b('0x2e')];if(this['isAttached']&&_0x5da8d1['visibleView']){const _0x4cc4ae=this['annotations'][_0x374b('0x19')](_0x5da8d1[_0x374b('0x29')]);_0x4cc4ae&&this[_0x374b('0x45')](_0x4cc4ae),_0x4f5a9b();}}));}[_0x374b('0x8')](){const _0x248b22=this['editor'][_0x374b('0x22')]['get'](_0x3c083d);_0x248b22[_0x374b('0x20')]===this[_0x374b('0x42')]&&(_0x248b22[_0x374b('0x43')]()||_0x248b22['switchTo']('inline'));}[_0x374b('0x35')](_0xc504bc){_0xc504bc!==this[_0x374b('0x2a')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x374b('0x3b')]=!0x1),_0xc504bc&&this[_0x374b('0x42')]['ui'][_0x374b('0xc')][_0x374b('0x49')]&&(this['annotations'][_0x374b('0x4c')](_0xc504bc)&&this[_0x374b('0x26')](_0xc504bc,!0x0),_0xc504bc[_0x374b('0x3b')]=!0x0),_0xc504bc||this[_0x374b('0x3e')]([]),this[_0x374b('0x2a')]=_0xc504bc);}[_0x374b('0x3')](_0x5110b7){this[_0x374b('0x4a')]=_0x5110b7;const _0x431a7f=this[_0x374b('0x42')][_0x374b('0x22')]['get'](_0x3c083d),_0x51b606=this['_balloon'];if(this[_0x374b('0x2f')])throw new _0x4942e2('inlineannotations-attach-already-attached',this);if(_0x431a7f[_0x374b('0x20')]!==this[_0x374b('0x42')])throw new _0x4942e2(_0x374b('0x10'),this);const _0x13c42a=this[_0x374b('0x42')][_0x374b('0x22')][_0x374b('0x1d')](_0x498477);this[_0x374b('0x27')](_0x13c42a,_0x374b('0x3a'),()=>{const _0xd87c28=_0x13c42a[_0x374b('0x31')]({'annotations':this[_0x374b('0x4a')],'activeAnnotation':this[_0x374b('0x2a')]});var _0x4cbe88,_0x11e6a7;!this[_0x374b('0xe')]&&(_0x4cbe88=_0xd87c28,_0x11e6a7=this[_0x374b('0x32')],_0x4cbe88[_0x374b('0x16')]===_0x11e6a7[_0x374b('0x16')]&&_0x4cbe88['every'](_0x385570=>_0x11e6a7['includes'](_0x385570)))||(this['_forceRefresh']=!0x1,this[_0x374b('0x3e')](_0xd87c28),this['setActiveAnnotation'](_0xd87c28[0x0]||null));}),this['listenTo'](_0x13c42a,_0x374b('0x1c'),(_0x1f7e00,{isAnnotationTracked:_0x127b0e})=>{this[_0x374b('0x2a')]&&_0x127b0e(this['activeAnnotation'])&&(this[_0x374b('0x3e')]([]),this[_0x374b('0x35')](null));}),this[_0x374b('0x27')](this[_0x374b('0x42')]['ui'][_0x374b('0xc')],_0x374b('0x4'),(_0x10f895,_0x2cc480,_0x5c07b1)=>{_0x5c07b1||this['setActiveAnnotation'](null);}),this[_0x374b('0x27')](_0x5110b7,_0x374b('0x3f'),(_0x5b956b,_0x25fc11)=>{this[_0x374b('0xf')](_0x25fc11),_0x25fc11===this[_0x374b('0x2a')]&&this['setActiveAnnotation'](null);}),this[_0x374b('0x27')](_0x51b606,'change:visibleView',(_0x4a4a0e,_0x1d896c,_0x91a084,_0x10db81)=>{_0x10db81&&this[_0x374b('0x48')](_0x10db81);const _0x55d87c=_0x5110b7['getByView'](_0x91a084);_0x91a084&&_0x55d87c&&(this[_0x374b('0x27')](_0x91a084,'change:height',()=>{_0x51b606['updatePosition']();}),this[_0x374b('0x27')](_0x91a084,_0x374b('0x4b'),()=>{this[_0x374b('0x45')](_0x55d87c),this[_0x374b('0x42')]['editing']['view']['focus']();}),this[_0x374b('0x2a')]!==_0x55d87c&&this[_0x374b('0x35')](_0x55d87c));}),this[_0x374b('0x27')](this[_0x374b('0x42')]['ui'],'update',()=>{_0x51b606[_0x374b('0x29')]&&(_0x5110b7['getByView'](_0x51b606[_0x374b('0x29')])&&_0x51b606[_0x374b('0x9')]());}),this['listenTo'](this[_0x374b('0x42')][_0x374b('0x0')][_0x374b('0xb')][_0x374b('0x33')],_0x374b('0x3d'),()=>{this[_0x374b('0xe')]=!0x0,this[_0x374b('0x25')][_0x374b('0xd')]();}),this['editor'][_0x374b('0x0')][_0x374b('0xb')][_0x374b('0x33')]['selection']['editableElement']&&this[_0x374b('0x42')]['editing'][_0x374b('0xb')][_0x374b('0x18')](),this[_0x374b('0x2f')]=!0x0;}[_0x374b('0x34')](){if(!this['isAttached'])throw new _0x4942e2(_0x374b('0x1'),this);this['setActiveAnnotation'](null);for(const _0x49b1ad of this['_addedAnnotations'])this[_0x374b('0xf')](_0x49b1ad);this['stopListening'](),this[_0x374b('0x2f')]=!0x1,this[_0x374b('0x4a')]=null;}[_0x374b('0x21')](){this['isAttached']&&this[_0x374b('0x34')]();}[_0x374b('0x3e')](_0x93dded){for(const _0x3da4c2 of this[_0x374b('0x32')])_0x93dded[_0x374b('0x7')](_0x3da4c2)||this[_0x374b('0x25')][_0x374b('0x40')](_0x3da4c2);for(const _0x2547b2 of this[_0x374b('0x4a')])_0x93dded[_0x374b('0x7')](_0x2547b2)||this[_0x374b('0xf')](_0x2547b2);if(this['editor']['ui'][_0x374b('0xc')]['isFocused'])for(const _0x42b4c9 of _0x93dded)this[_0x374b('0x26')](_0x42b4c9);this[_0x374b('0x32')]=_0x93dded;}[_0x374b('0x26')](_0x292299,_0x599ebf=!0x1){this[_0x374b('0x25')][_0x374b('0x4c')](_0x292299)||(this[_0x374b('0x14')][_0x374b('0x4c')](_0x292299)||this[_0x374b('0x2e')]['hasView'](_0x292299['view'])||(this['_addedAnnotations'][_0x374b('0x37')](_0x292299),this[_0x374b('0x2e')][_0x374b('0x37')]({'stackId':_0x292299[_0x374b('0xb')]['id'],'view':_0x292299[_0x374b('0xb')],'position':{'target':()=>this[_0x374b('0x15')](_0x292299)}})),_0x599ebf&&this['_balloon'][_0x374b('0x28')](_0x292299[_0x374b('0xb')]['id']));}[_0x374b('0x15')](_0x48d61e){const _0x5550b6=_0x48d61e[_0x374b('0x1a')],_0x427b9a=this[_0x374b('0x42')][_0x374b('0x0')][_0x374b('0xb')],_0x3eea30=_0x427b9a[_0x374b('0x33')][_0x374b('0x46')][_0x374b('0x13')](),_0x4f0da4=_0x427b9a[_0x374b('0x47')]['viewRangeToDom'](_0x3eea30);if(_0x4f0da4[_0x374b('0x36')](!0x0),_0x5550b6){if(_0x5550b6 instanceof _0x313398)return _0x5550b6;let _0xe55b99=[];for(const _0x23f77e of _0x5550b6)_0xe55b99[_0x374b('0x2d')](...(_0x4919bd=_0x23f77e[_0x374b('0x23')](),Array[_0x374b('0x2')](_0x4919bd)[_0x374b('0x12')](DOMRect[_0x374b('0x3c')])));_0xe55b99=function(_0x491b7b){const _0x11b5fb=[];let _0x140478=_0x491b7b[0x0];for(let _0xc63144=0x1;_0xc63144<_0x491b7b['length'];_0xc63144++)F(_0x140478,_0x491b7b[_0xc63144])?_0x140478['width']+=_0x491b7b[_0xc63144][_0x374b('0x30')]:(_0x11b5fb[_0x374b('0x2d')](_0x140478),_0x140478=_0x491b7b[_0xc63144]);return _0x11b5fb[_0x374b('0x2d')](_0x140478),_0x11b5fb;}(_0xe55b99);const _0x2b603b=_0x4f0da4[_0x374b('0x24')]();return _0xe55b99['find'](_0xe5d782=>_0xe5d782[_0x374b('0x11')]<=_0x2b603b['top']&&_0xe5d782[_0x374b('0x17')]>=_0x2b603b[_0x374b('0x17')]&&_0xe5d782[_0x374b('0x39')]<=_0x2b603b[_0x374b('0x39')]&&_0xe5d782['right']>=_0x2b603b[_0x374b('0x44')])||_0xe55b99[0x0];}var _0x4919bd;return _0x48d61e[_0x374b('0x1b')]||_0x4f0da4;}[_0x374b('0xf')](_0x2dda90){this[_0x374b('0x14')]['has'](_0x2dda90)&&this[_0x374b('0x2e')][_0x374b('0x6')](_0x2dda90[_0x374b('0xb')])&&(this[_0x374b('0x14')]['delete'](_0x2dda90),this[_0x374b('0x2e')]['remove'](_0x2dda90[_0x374b('0xb')]));}['_closeAnnotation'](_0x32adf7){this[_0x374b('0x25')][_0x374b('0x37')](_0x32adf7),this[_0x374b('0xf')](_0x32adf7);}}function F(_0x5d13de,_0x8d4ff3){return _0x5d13de['top']===_0x8d4ff3[_0x374b('0x11')]&&_0x5d13de[_0x374b('0x17')]===_0x8d4ff3['bottom']&&_0x5d13de[_0x374b('0x44')]===_0x8d4ff3['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ac6=['detach','annotationType','pluginName','change:height','ck-sidebar--narrow','_showBalloon','hasDomSelection','editors','cancel','requires','register','_selectedAnnotations','_manuallyClosedAnnotationViews','set','clear','remove','delete','northArrowSouth','northArrowSouthWest','addAnnotation','_attachListeners','_editorAnnotations','_detachFromContainer','_refreshPositioningDebounced','resize','pin','Esc','attach','uiUpdate','refresh','isAttached','_integrateWithEditorAnnotations','bind','from','preventDefault','refreshPositioning','destroy','get','create','southArrowNorthWest','view','listenTo','annotations','length','init','high','blur','narrowsidebar-detach-not-attached','_annotations','defaultPositions','_refreshPositioning','setActiveAnnotation','element','EditorAnnotations','NarrowSidebar','stopListening','addEventListener','contains','execute','_setSelectedAnnotations','_annotationToNarrowView','activeAnnotation','preventClosingBalloon','rearrange','southArrowNorthEast','isVisible','narrowsidebar-attach-already-attached','detachFromDom','balloonPanelView','_updateBalloonPosition','has','target','set:container','_detachListeners','stop','content','change:container','locale','removeEventListener','plugins','_domEmitter','add','context','isDirty','_destroyEditorAnnotationsIntegration','_hideBalloon','bodyCollection','focus','mousedown','_attachToContainer','keydown','values','first'];(function(_0x546e2b,_0x5ac612){const _0x2e8e25=function(_0x40560c){while(--_0x40560c){_0x546e2b['push'](_0x546e2b['shift']());}};_0x2e8e25(++_0x5ac612);}(_0x5ac6,0x1c7));const _0x2e8e=function(_0x546e2b,_0x5ac612){_0x546e2b=_0x546e2b-0x0;let _0x2e8e25=_0x5ac6[_0x546e2b];return _0x2e8e25;};import{ContextPlugin as _0x5072c8,Context as _0x28ee51}from'ckeditor5/src/core';import _0x3e7339 from'./annotationsuis';import _0x7f58cb from'./sidebar';import _0x26d63c from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1582e3,BodyCollection as _0x46e427}from'ckeditor5/src/ui';import{CKEditorError as _0x2ae881,DomEmitterMixin as _0x696a28,keyCodes as _0xffe5d0,Collection as _0x4e086d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x26d9fe}from'lodash-es';import _0x52ebe7 from'./editorannotations';export default class s extends _0x5072c8{static get[_0x2e8e('0x13')](){return[_0x7f58cb,_0x3e7339];}static get[_0x2e8e('0xc')](){return _0x2e8e('0x40');}constructor(_0x4c3f4f){super(_0x4c3f4f),this[_0x2e8e('0x28')]=!0x1,this[_0x2e8e('0x16')]=new Set(),this[_0x2e8e('0x5a')]=Object[_0x2e8e('0x30')](_0x696a28),this[_0x2e8e('0x46')]=new Map(),this[_0x2e8e('0x17')](_0x2e8e('0x47'),null),this[_0x2e8e('0x34')]=null,this['_selectedAnnotations']=[],this[_0x2e8e('0x1f')]=new _0x4e086d(),this[_0x2e8e('0x21')]=_0x26d9fe(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2e8e('0x36')](){this[_0x2e8e('0x5c')]['plugins'][_0x2e8e('0x2f')](_0x3e7339)[_0x2e8e('0x14')]('narrowSidebar',this),this['bodyCollection']=new _0x46e427(this[_0x2e8e('0x5c')][_0x2e8e('0x57')]),this['balloonPanelView']=new _0x1582e3(this[_0x2e8e('0x5c')][_0x2e8e('0x57')]),this['bodyCollection']['attachToDom'](),this[_0x2e8e('0x3')]['add'](this[_0x2e8e('0x4e')]);}[_0x2e8e('0x25')](_0x5d311b){this[_0x2e8e('0x34')]=_0x5d311b;const _0x181d8a=this[_0x2e8e('0x5c')][_0x2e8e('0x59')][_0x2e8e('0x2f')](_0x7f58cb),_0x680509=this['balloonPanelView'];if(_0x181d8a[_0x2e8e('0x3a')]=_0x5d311b,this[_0x2e8e('0x28')])throw new _0x2ae881(_0x2e8e('0x4c'),this);this[_0x2e8e('0x28')]=!0x0,this[_0x2e8e('0x33')](_0x181d8a,_0x2e8e('0x52'),()=>{this['detach'](),this[_0x2e8e('0x33')](_0x181d8a,_0x2e8e('0x56'),_0xfd4a89=>{_0xfd4a89['off'](),this[_0x2e8e('0x25')](_0x5d311b);});}),_0x181d8a[_0x2e8e('0x6')]({'viewClass':_0x2e8e('0xe'),'spaceBetweenItems':0x5});const _0x6c479e=_0x686884=>{const _0x5730df=new _0x26d63c(this[_0x2e8e('0x5c')][_0x2e8e('0x57')]);_0x181d8a[_0x2e8e('0x1d')](_0x686884,_0x5730df),this[_0x2e8e('0x46')][_0x2e8e('0x17')](_0x686884,_0x5730df),_0x5730df[_0x2e8e('0x2a')](_0x2e8e('0x0'),_0x2e8e('0xb'),'number')['to'](_0x686884[_0x2e8e('0x32')],_0x2e8e('0x0'),'type',_0x2e8e('0x35')),_0x5730df['on'](_0x2e8e('0x44'),()=>{this[_0x2e8e('0x16')]['clear'](),_0x680509[_0x2e8e('0x55')][_0x2e8e('0x9')]!==_0x686884['view']?(this[_0x2e8e('0xf')](_0x686884),_0x686884[_0x2e8e('0x32')]['element']['focus'](),this[_0x2e8e('0x3d')](_0x686884)):this[_0x2e8e('0x3d')](null);});};for(const _0x17e876 of _0x5d311b)_0x6c479e(_0x17e876);this['listenTo'](_0x5d311b,_0x2e8e('0x5b'),(_0x376b25,_0x3879d8)=>{_0x6c479e(_0x3879d8);}),this['listenTo'](_0x5d311b,'remove',(_0x2a63b1,_0x31679b,_0x42f46f)=>{this[_0x2e8e('0x46')][_0x2e8e('0x2f')](_0x31679b)[_0x2e8e('0x2e')](),this[_0x2e8e('0x46')][_0x2e8e('0x1a')](_0x31679b),_0x181d8a[_0x2e8e('0x49')]({'removedAnnotation':_0x31679b,'previousAnnotation':_0x5d311b[_0x2e8e('0x2f')](_0x42f46f-0x1),'nextAnnotation':_0x5d311b[_0x2e8e('0x2f')](_0x42f46f+0x1)}),_0x31679b===this[_0x2e8e('0x47')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x2e8e('0x33')](_0x5d311b,_0x2e8e('0x4'),(_0x1d52bd,_0x186657)=>{this['setActiveAnnotation'](_0x186657);}),this['listenTo'](_0x5d311b,'blur',()=>{this[_0x2e8e('0x3d')](null);}),this[_0x2e8e('0x5a')]['listenTo'](document,_0x2e8e('0x7'),(_0x42a70d,_0x48b4fb)=>{_0x48b4fb['keyCode']===_0xffe5d0['esc']&&_0x680509[_0x2e8e('0x4b')]&&(this[_0x2e8e('0x16')]['add'](_0x680509['content'][_0x2e8e('0x9')]),this['_hideBalloon'](),_0x48b4fb['stopPropagation'](),_0x48b4fb[_0x2e8e('0x2c')]());}),this[_0x2e8e('0x5a')]['listenTo'](document,_0x2e8e('0x5'),(_0x2582dd,_0x459bc8)=>{const _0x3d2120=_0x459bc8[_0x2e8e('0x51')];_0x680509[_0x2e8e('0x4b')]&&_0x680509[_0x2e8e('0x3e')]['contains'](_0x3d2120)||_0x181d8a[_0x2e8e('0x32')][_0x2e8e('0x3e')][_0x2e8e('0x43')](_0x3d2120)||_0x2582dd[_0x2e8e('0x48')]||this['activeAnnotation']&&this[_0x2e8e('0x47')]['focusableElements']['find'](_0x255b61=>_0x255b61['contains'](_0x3d2120))||(this[_0x2e8e('0x16')][_0x2e8e('0x18')](),this[_0x2e8e('0x2')](),this[_0x2e8e('0x3d')](null));});const _0x575ce4=this[_0x2e8e('0x5c')]instanceof _0x28ee51?this[_0x2e8e('0x5c')][_0x2e8e('0x11')]:new _0x4e086d([this[_0x2e8e('0x5c')]]);for(const _0x4ae414 of _0x575ce4)this['_integrateWithEditorAnnotations'](_0x4ae414);this[_0x2e8e('0x33')](_0x575ce4,_0x2e8e('0x5b'),(_0x459056,_0x145d74)=>{this[_0x2e8e('0x33')](_0x145d74,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x145d74);});}),this[_0x2e8e('0x33')](_0x575ce4,_0x2e8e('0x19'),(_0x255bef,_0x15bd55)=>{_0x15bd55[_0x2e8e('0x59')]['has'](_0x2e8e('0x3f'))&&this['_destroyEditorAnnotationsIntegration'](_0x15bd55[_0x2e8e('0x59')]['get']('EditorAnnotations'));}),window[_0x2e8e('0x42')](_0x2e8e('0x22'),this[_0x2e8e('0x21')]),this[_0x2e8e('0x3c')]();}['setActiveAnnotation'](_0x1f2abb){if(_0x1f2abb===this[_0x2e8e('0x47')])return;const _0x46ef6a=this['context']['plugins'][_0x2e8e('0x2f')](_0x7f58cb);if(_0x46ef6a[_0x2e8e('0x27')]({'blurredAnnotation':this[_0x2e8e('0x47')],'activatedAnnotation':_0x1f2abb,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1f2abb)_0x46ef6a['getSidebarItemView'](_0x1f2abb)?this[_0x2e8e('0xf')](_0x1f2abb):this[_0x2e8e('0x2')]();else this['_hideBalloon']();this[_0x2e8e('0x47')]=_0x1f2abb;}[_0x2e8e('0xa')](){if(!this['isAttached'])throw new _0x2ae881(_0x2e8e('0x39'),this);this[_0x2e8e('0x3d')](null);const _0x159740=this[_0x2e8e('0x5c')][_0x2e8e('0x59')][_0x2e8e('0x2f')](_0x7f58cb);this[_0x2e8e('0x2')](),Array['from'](this[_0x2e8e('0x46')][_0x2e8e('0x8')](),_0x1e368e=>_0x1e368e['destroy']()),this[_0x2e8e('0x46')]['clear'](),_0x159740[_0x2e8e('0x20')](this[_0x2e8e('0x34')]),this[_0x2e8e('0x41')](),this[_0x2e8e('0x5a')]['stopListening'](),this[_0x2e8e('0x5c')]instanceof _0x28ee51&&this['stopListening'](this[_0x2e8e('0x5c')]['editors']);for(const _0x2929c2 of Array[_0x2e8e('0x2b')](this['_editorAnnotations']))this[_0x2e8e('0x1')](_0x2929c2);window[_0x2e8e('0x58')](_0x2e8e('0x22'),this[_0x2e8e('0x21')]),this[_0x2e8e('0x21')][_0x2e8e('0x12')](),this['_selectedAnnotations']=[],this[_0x2e8e('0x28')]=!0x1,this['annotations']=null;}[_0x2e8e('0x2e')](){this[_0x2e8e('0x28')]&&this[_0x2e8e('0xa')](),this[_0x2e8e('0x3')][_0x2e8e('0x4d')]();}[_0x2e8e('0x29')](_0x221252){const _0x5166c7=_0x221252[_0x2e8e('0x59')]['get'](_0x52ebe7),_0x59cc1c=this[_0x2e8e('0x5c')][_0x2e8e('0x59')]['get'](_0x7f58cb),_0x4967f0=this[_0x2e8e('0x34')],_0x386339=this[_0x2e8e('0x4e')],_0x44f497=()=>{const _0x3618c5=_0x5166c7['getOrderedSelectedAnnotations']({'annotations':this[_0x2e8e('0x34')],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x3618c5),this['setActiveAnnotation'](_0x3618c5[0x0]||null);};this[_0x2e8e('0x33')](_0x5166c7,_0x2e8e('0x27'),_0x44f497),this[_0x2e8e('0x33')](_0x5166c7,_0x2e8e('0x38'),(_0x4b7ed7,{isAnnotationTracked:_0x5df1f4})=>{this[_0x2e8e('0x47')]&&_0x5df1f4(this[_0x2e8e('0x47')])&&(this[_0x2e8e('0x45')]([]),this[_0x2e8e('0x3d')](null));}),this[_0x2e8e('0x33')](_0x5166c7,_0x2e8e('0x26'),()=>{this[_0x2e8e('0x21')]();}),this[_0x2e8e('0x33')](_0x4967f0,_0x2e8e('0x38'),_0x599ffe=>{_0x5166c7[_0x2e8e('0x10')]()&&_0x599ffe[_0x2e8e('0x54')]();},{'priority':_0x2e8e('0x37')}),this[_0x2e8e('0x33')](this['_domEmitter'],'mousedown',(_0x136b0f,_0x5c04fb)=>{const _0x2161c4=_0x5c04fb[_0x2e8e('0x51')];_0x386339['isVisible']&&_0x386339[_0x2e8e('0x3e')]['contains'](_0x2161c4)||_0x59cc1c[_0x2e8e('0x32')][_0x2e8e('0x3e')][_0x2e8e('0x43')](_0x2161c4)||this[_0x2e8e('0x47')]&&_0x5166c7[_0x2e8e('0x10')]()&&(_0x44f497(),_0x136b0f[_0x2e8e('0x48')]=!0x0);},{'priority':_0x2e8e('0x37')}),this[_0x2e8e('0x1f')]['add'](_0x5166c7);}[_0x2e8e('0x1')](_0x29d8c0){_0x29d8c0&&(this['stopListening'](_0x29d8c0),this[_0x2e8e('0x1f')][_0x2e8e('0x19')](_0x29d8c0));}[_0x2e8e('0x45')](_0xe199d2){for(const _0x582839 of this[_0x2e8e('0x15')])_0xe199d2['includes'](_0x582839)||this[_0x2e8e('0x16')]['delete'](_0x582839['view']);this[_0x2e8e('0x15')]=_0xe199d2;}[_0x2e8e('0x3c')](){const _0x23e73b=this[_0x2e8e('0x4e')];this[_0x2e8e('0x34')][_0x2e8e('0x2d')](),_0x23e73b[_0x2e8e('0x4b')]&&this['_updateBalloonPosition']();}[_0x2e8e('0xf')](_0x207960){if(this[_0x2e8e('0x16')][_0x2e8e('0x50')](_0x207960[_0x2e8e('0x32')]))return;const _0x487bbf=this[_0x2e8e('0x4e')][_0x2e8e('0x55')]['first'];_0x487bbf!==_0x207960['view']?(_0x487bbf&&this[_0x2e8e('0x53')](_0x487bbf),this[_0x2e8e('0x1e')](_0x207960[_0x2e8e('0x32')]),this[_0x2e8e('0x4e')][_0x2e8e('0x55')][_0x2e8e('0x18')](),this[_0x2e8e('0x4e')][_0x2e8e('0x55')]['add'](_0x207960[_0x2e8e('0x32')]),this[_0x2e8e('0x4f')]()):this[_0x2e8e('0x4f')]();}[_0x2e8e('0x4f')](){const _0x333680=this['balloonPanelView'][_0x2e8e('0x55')][_0x2e8e('0x9')],_0x340f74=_0x333680&&this[_0x2e8e('0x34')]['getByView'](_0x333680);if(!_0x340f74||!this['_annotationToNarrowView'][_0x2e8e('0x50')](_0x340f74))return;const _0x29d14e=this['_annotationToNarrowView'][_0x2e8e('0x2f')](_0x340f74)[_0x2e8e('0x3e')],_0x2e8909=function(){const _0x560f00=_0x1582e3[_0x2e8e('0x3b')];return[_0x560f00[_0x2e8e('0x4a')],_0x560f00['northArrowSouthEast'],_0x560f00['southArrowNorth'],_0x560f00[_0x2e8e('0x1b')],_0x560f00[_0x2e8e('0x31')],_0x560f00[_0x2e8e('0x1c')]];}();this[_0x2e8e('0x4e')][_0x2e8e('0x23')]({'target':_0x29d14e,'positions':_0x2e8909});}['_hideBalloon'](){const _0x1b3d01=this[_0x2e8e('0x4e')],_0xadd021=_0x1b3d01[_0x2e8e('0x55')]['first'];_0xadd021&&(this[_0x2e8e('0x53')](_0xadd021),_0x1b3d01['unpin'](),_0x1b3d01[_0x2e8e('0x55')][_0x2e8e('0x18')]());}[_0x2e8e('0x1e')](_0xa6bcad){this[_0x2e8e('0x33')](_0xa6bcad,_0x2e8e('0xd'),()=>this[_0x2e8e('0x4f')]()),this[_0x2e8e('0x33')](_0xa6bcad,_0x2e8e('0x24'),(_0x3ceeaf,_0x4f4efe)=>{this[_0x2e8e('0x16')][_0x2e8e('0x5b')](_0xa6bcad),this[_0x2e8e('0x2')](),_0x4f4efe();});}[_0x2e8e('0x53')](_0x842f5d){this[_0x2e8e('0x41')](_0x842f5d);}}
23
+ const _0x3e8d=['southArrowNorthWest','_detachFromContainer','preventDefault','content','preventClosingBalloon','_manuallyClosedAnnotationViews','_editorAnnotations','esc','register','find','_selectedAnnotations','mousedown','unpin','remove','detach','_updateBalloonPosition','includes','destroy','removeEventListener','first','add','_domEmitter','element','attach','type','detachFromDom','_refreshPositioning','cancel','length','narrowsidebar-attach-already-attached','context','Esc','_setSelectedAnnotations','isDirty','getOrderedSelectedAnnotations','_integrateWithEditorAnnotations','isVisible','getSidebarItemView','annotationType','locale','refreshPositioning','bodyCollection','stopListening','delete','rearrange','_destroyEditorAnnotationsIntegration','_attachToContainer','pin','_attachListeners','high','northArrowSouth','view','balloonPanelView','clear','number','stopPropagation','requires','_annotationToNarrowView','target','refresh','EditorAnnotations','keydown','activeAnnotation','getByView','_hideBalloon','set','from','narrowSidebar','focusableElements','addEventListener','editors','create','has','setActiveAnnotation','_refreshPositioningDebounced','resize','annotations','set:container','uiUpdate','ck-sidebar--narrow','_detachListeners','focus','_showBalloon','northArrowSouthWest','northArrowSouthEast','contains','values','NarrowSidebar','blur','hasDomSelection','get','listenTo','plugins','isAttached','_annotations','low','init'];(function(_0x11b1d1,_0x3e8dee){const _0x1a0095=function(_0x46fcc8){while(--_0x46fcc8){_0x11b1d1['push'](_0x11b1d1['shift']());}};_0x1a0095(++_0x3e8dee);}(_0x3e8d,0xae));const _0x1a00=function(_0x11b1d1,_0x3e8dee){_0x11b1d1=_0x11b1d1-0x0;let _0x1a0095=_0x3e8d[_0x11b1d1];return _0x1a0095;};import{ContextPlugin as _0x10815b,Context as _0x2e5e0d}from'ckeditor5/src/core';import _0x631709 from'./annotationsuis';import _0x153d22 from'./sidebar';import _0x113915 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x884e4c,BodyCollection as _0x5aa6f9}from'ckeditor5/src/ui';import{CKEditorError as _0x253b15,DomEmitterMixin as _0x147e4c,keyCodes as _0x3faf63,Collection as _0x55c8a2}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x45e0ac}from'lodash-es';import _0x546586 from'./editorannotations';export default class s extends _0x10815b{static get[_0x1a00('0x4c')](){return[_0x153d22,_0x631709];}static get['pluginName'](){return _0x1a00('0xa');}constructor(_0x1c88c9){super(_0x1c88c9),this[_0x1a00('0x10')]=!0x1,this[_0x1a00('0x19')]=new Set(),this[_0x1a00('0x29')]=Object[_0x1a00('0x5b')](_0x147e4c),this['_annotationToNarrowView']=new Map(),this[_0x1a00('0x55')]('activeAnnotation',null),this[_0x1a00('0x60')]=null,this['_selectedAnnotations']=[],this[_0x1a00('0x1a')]=new _0x55c8a2(),this[_0x1a00('0x5e')]=_0x45e0ac(()=>{this[_0x1a00('0x2e')]();},0xfa,{'leading':!0x1});}[_0x1a00('0x13')](){this['context'][_0x1a00('0xf')][_0x1a00('0xd')](_0x631709)[_0x1a00('0x1c')](_0x1a00('0x57'),this),this[_0x1a00('0x3d')]=new _0x5aa6f9(this[_0x1a00('0x32')][_0x1a00('0x3b')]),this[_0x1a00('0x48')]=new _0x884e4c(this['context']['locale']),this[_0x1a00('0x3d')]['attachToDom'](),this[_0x1a00('0x3d')][_0x1a00('0x28')](this[_0x1a00('0x48')]);}[_0x1a00('0x2b')](_0xd706b3){this[_0x1a00('0x60')]=_0xd706b3;const _0x4e473b=this[_0x1a00('0x32')][_0x1a00('0xf')][_0x1a00('0xd')](_0x153d22),_0x9005a2=this[_0x1a00('0x48')];if(_0x4e473b[_0x1a00('0x11')]=_0xd706b3,this['isAttached'])throw new _0x253b15(_0x1a00('0x31'),this);this['isAttached']=!0x0,this['listenTo'](_0x4e473b,_0x1a00('0x0'),()=>{this[_0x1a00('0x22')](),this['listenTo'](_0x4e473b,'change:container',_0x14605c=>{_0x14605c['off'](),this[_0x1a00('0x2b')](_0xd706b3);});}),_0x4e473b[_0x1a00('0x42')]({'viewClass':_0x1a00('0x2'),'spaceBetweenItems':0x5});const _0x3bc8f0=_0x444a49=>{const _0x22b0e8=new _0x113915(this[_0x1a00('0x32')]['locale']);_0x4e473b['addAnnotation'](_0x444a49,_0x22b0e8),this[_0x1a00('0x4d')][_0x1a00('0x55')](_0x444a49,_0x22b0e8),_0x22b0e8['bind'](_0x1a00('0x35'),_0x1a00('0x3a'),_0x1a00('0x4a'))['to'](_0x444a49[_0x1a00('0x47')],_0x1a00('0x35'),_0x1a00('0x2c'),_0x1a00('0x30')),_0x22b0e8['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x1a00('0x49')](),_0x9005a2['content'][_0x1a00('0x27')]!==_0x444a49[_0x1a00('0x47')]?(this[_0x1a00('0x5')](_0x444a49),_0x444a49[_0x1a00('0x47')][_0x1a00('0x2a')][_0x1a00('0x4')](),this['setActiveAnnotation'](_0x444a49)):this[_0x1a00('0x5d')](null);});};for(const _0x2fdef0 of _0xd706b3)_0x3bc8f0(_0x2fdef0);this[_0x1a00('0xe')](_0xd706b3,'add',(_0x44d954,_0x3a3519)=>{_0x3bc8f0(_0x3a3519);}),this[_0x1a00('0xe')](_0xd706b3,_0x1a00('0x21'),(_0x5cc7ec,_0xcbc5bc,_0xff3555)=>{this[_0x1a00('0x4d')][_0x1a00('0xd')](_0xcbc5bc)[_0x1a00('0x25')](),this[_0x1a00('0x4d')][_0x1a00('0x3f')](_0xcbc5bc),_0x4e473b[_0x1a00('0x40')]({'removedAnnotation':_0xcbc5bc,'previousAnnotation':_0xd706b3[_0x1a00('0xd')](_0xff3555-0x1),'nextAnnotation':_0xd706b3[_0x1a00('0xd')](_0xff3555+0x1)}),_0xcbc5bc===this[_0x1a00('0x52')]&&this['setActiveAnnotation'](null);},{'priority':_0x1a00('0x12')}),this[_0x1a00('0xe')](_0xd706b3,_0x1a00('0x4'),(_0x3d26c1,_0x16998d)=>{this[_0x1a00('0x5d')](_0x16998d);}),this[_0x1a00('0xe')](_0xd706b3,_0x1a00('0xb'),()=>{this[_0x1a00('0x5d')](null);}),this[_0x1a00('0x29')]['listenTo'](document,_0x1a00('0x51'),(_0x5b02b5,_0x36cae9)=>{_0x36cae9['keyCode']===_0x3faf63[_0x1a00('0x1b')]&&_0x9005a2['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x1a00('0x28')](_0x9005a2[_0x1a00('0x17')][_0x1a00('0x27')]),this[_0x1a00('0x54')](),_0x36cae9[_0x1a00('0x4b')](),_0x36cae9[_0x1a00('0x16')]());}),this['_domEmitter'][_0x1a00('0xe')](document,_0x1a00('0x1f'),(_0x5beeb2,_0x25aa89)=>{const _0x56df0c=_0x25aa89[_0x1a00('0x4e')];_0x9005a2['isVisible']&&_0x9005a2[_0x1a00('0x2a')][_0x1a00('0x8')](_0x56df0c)||_0x4e473b[_0x1a00('0x47')][_0x1a00('0x2a')][_0x1a00('0x8')](_0x56df0c)||_0x5beeb2[_0x1a00('0x18')]||this[_0x1a00('0x52')]&&this[_0x1a00('0x52')][_0x1a00('0x58')][_0x1a00('0x1d')](_0x5da892=>_0x5da892[_0x1a00('0x8')](_0x56df0c))||(this[_0x1a00('0x19')][_0x1a00('0x49')](),this[_0x1a00('0x54')](),this[_0x1a00('0x5d')](null));});const _0x1ed55c=this[_0x1a00('0x32')]instanceof _0x2e5e0d?this[_0x1a00('0x32')][_0x1a00('0x5a')]:new _0x55c8a2([this[_0x1a00('0x32')]]);for(const _0x5dceab of _0x1ed55c)this[_0x1a00('0x37')](_0x5dceab);this[_0x1a00('0xe')](_0x1ed55c,_0x1a00('0x28'),(_0x21ef69,_0x5cc874)=>{this[_0x1a00('0xe')](_0x5cc874,'ready',()=>{this[_0x1a00('0x37')](_0x5cc874);});}),this[_0x1a00('0xe')](_0x1ed55c,_0x1a00('0x21'),(_0x496524,_0x2b40e3)=>{_0x2b40e3[_0x1a00('0xf')]['has']('EditorAnnotations')&&this[_0x1a00('0x41')](_0x2b40e3['plugins'][_0x1a00('0xd')](_0x1a00('0x50')));}),window[_0x1a00('0x59')]('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}[_0x1a00('0x5d')](_0x518fc7){if(_0x518fc7===this[_0x1a00('0x52')])return;const _0x5b96b1=this[_0x1a00('0x32')]['plugins'][_0x1a00('0xd')](_0x153d22);if(_0x5b96b1[_0x1a00('0x4f')]({'blurredAnnotation':this[_0x1a00('0x52')],'activatedAnnotation':_0x518fc7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x518fc7)_0x5b96b1[_0x1a00('0x39')](_0x518fc7)?this[_0x1a00('0x5')](_0x518fc7):this['_hideBalloon']();else this['_hideBalloon']();this[_0x1a00('0x52')]=_0x518fc7;}[_0x1a00('0x22')](){if(!this['isAttached'])throw new _0x253b15('narrowsidebar-detach-not-attached',this);this[_0x1a00('0x5d')](null);const _0x2c1e75=this[_0x1a00('0x32')][_0x1a00('0xf')][_0x1a00('0xd')](_0x153d22);this['_hideBalloon'](),Array[_0x1a00('0x56')](this[_0x1a00('0x4d')][_0x1a00('0x9')](),_0x2ca587=>_0x2ca587[_0x1a00('0x25')]()),this[_0x1a00('0x4d')][_0x1a00('0x49')](),_0x2c1e75[_0x1a00('0x15')](this[_0x1a00('0x60')]),this[_0x1a00('0x3e')](),this[_0x1a00('0x29')][_0x1a00('0x3e')](),this[_0x1a00('0x32')]instanceof _0x2e5e0d&&this['stopListening'](this[_0x1a00('0x32')][_0x1a00('0x5a')]);for(const _0x11632b of Array['from'](this[_0x1a00('0x1a')]))this['_destroyEditorAnnotationsIntegration'](_0x11632b);window[_0x1a00('0x26')](_0x1a00('0x5f'),this[_0x1a00('0x5e')]),this[_0x1a00('0x5e')][_0x1a00('0x2f')](),this[_0x1a00('0x1e')]=[],this[_0x1a00('0x10')]=!0x1,this[_0x1a00('0x60')]=null;}[_0x1a00('0x25')](){this['isAttached']&&this[_0x1a00('0x22')](),this[_0x1a00('0x3d')][_0x1a00('0x2d')]();}[_0x1a00('0x37')](_0x49fd60){const _0x12dc41=_0x49fd60[_0x1a00('0xf')][_0x1a00('0xd')](_0x546586),_0x4fa1df=this[_0x1a00('0x32')][_0x1a00('0xf')][_0x1a00('0xd')](_0x153d22),_0x5af350=this[_0x1a00('0x60')],_0x74cc4c=this[_0x1a00('0x48')],_0x20a7f6=()=>{const _0x2b1631=_0x12dc41[_0x1a00('0x36')]({'annotations':this[_0x1a00('0x60')],'activeAnnotation':this[_0x1a00('0x52')]});this['_setSelectedAnnotations'](_0x2b1631),this[_0x1a00('0x5d')](_0x2b1631[0x0]||null);};this[_0x1a00('0xe')](_0x12dc41,'refresh',_0x20a7f6),this[_0x1a00('0xe')](_0x12dc41,'blur',(_0x224e49,{isAnnotationTracked:_0x3da4ac})=>{this[_0x1a00('0x52')]&&_0x3da4ac(this[_0x1a00('0x52')])&&(this[_0x1a00('0x34')]([]),this['setActiveAnnotation'](null));}),this[_0x1a00('0xe')](_0x12dc41,_0x1a00('0x1'),()=>{this[_0x1a00('0x5e')]();}),this['listenTo'](_0x5af350,_0x1a00('0xb'),_0x20d3a3=>{_0x12dc41[_0x1a00('0xc')]()&&_0x20d3a3['stop']();},{'priority':_0x1a00('0x45')}),this['listenTo'](this[_0x1a00('0x29')],_0x1a00('0x1f'),(_0x319110,_0x552099)=>{const _0x5b15ba=_0x552099[_0x1a00('0x4e')];_0x74cc4c['isVisible']&&_0x74cc4c['element'][_0x1a00('0x8')](_0x5b15ba)||_0x4fa1df[_0x1a00('0x47')][_0x1a00('0x2a')][_0x1a00('0x8')](_0x5b15ba)||this['activeAnnotation']&&_0x12dc41[_0x1a00('0xc')]()&&(_0x20a7f6(),_0x319110['preventClosingBalloon']=!0x0);},{'priority':_0x1a00('0x45')}),this['_editorAnnotations'][_0x1a00('0x28')](_0x12dc41);}[_0x1a00('0x41')](_0x52ebb8){_0x52ebb8&&(this[_0x1a00('0x3e')](_0x52ebb8),this[_0x1a00('0x1a')]['remove'](_0x52ebb8));}[_0x1a00('0x34')](_0x12532b){for(const _0x530fbf of this[_0x1a00('0x1e')])_0x12532b[_0x1a00('0x24')](_0x530fbf)||this[_0x1a00('0x19')]['delete'](_0x530fbf[_0x1a00('0x47')]);this[_0x1a00('0x1e')]=_0x12532b;}['_refreshPositioning'](){const _0x115b30=this[_0x1a00('0x48')];this[_0x1a00('0x60')][_0x1a00('0x3c')](),_0x115b30[_0x1a00('0x38')]&&this[_0x1a00('0x23')]();}['_showBalloon'](_0x54786b){if(this[_0x1a00('0x19')][_0x1a00('0x5c')](_0x54786b[_0x1a00('0x47')]))return;const _0x406fac=this[_0x1a00('0x48')][_0x1a00('0x17')][_0x1a00('0x27')];_0x406fac!==_0x54786b['view']?(_0x406fac&&this[_0x1a00('0x3')](_0x406fac),this[_0x1a00('0x44')](_0x54786b[_0x1a00('0x47')]),this[_0x1a00('0x48')][_0x1a00('0x17')][_0x1a00('0x49')](),this[_0x1a00('0x48')][_0x1a00('0x17')][_0x1a00('0x28')](_0x54786b['view']),this[_0x1a00('0x23')]()):this[_0x1a00('0x23')]();}['_updateBalloonPosition'](){const _0x3b69a0=this['balloonPanelView'][_0x1a00('0x17')][_0x1a00('0x27')],_0x47481b=_0x3b69a0&&this[_0x1a00('0x60')][_0x1a00('0x53')](_0x3b69a0);if(!_0x47481b||!this[_0x1a00('0x4d')]['has'](_0x47481b))return;const _0x5c20ca=this[_0x1a00('0x4d')][_0x1a00('0xd')](_0x47481b)[_0x1a00('0x2a')],_0x22b9c7=function(){const _0x5e00e7=_0x884e4c['defaultPositions'];return[_0x5e00e7['southArrowNorthEast'],_0x5e00e7[_0x1a00('0x7')],_0x5e00e7['southArrowNorth'],_0x5e00e7[_0x1a00('0x46')],_0x5e00e7[_0x1a00('0x14')],_0x5e00e7[_0x1a00('0x6')]];}();this[_0x1a00('0x48')][_0x1a00('0x43')]({'target':_0x5c20ca,'positions':_0x22b9c7});}[_0x1a00('0x54')](){const _0x1007bf=this[_0x1a00('0x48')],_0x4080d4=_0x1007bf[_0x1a00('0x17')][_0x1a00('0x27')];_0x4080d4&&(this[_0x1a00('0x3')](_0x4080d4),_0x1007bf[_0x1a00('0x20')](),_0x1007bf[_0x1a00('0x17')][_0x1a00('0x49')]());}[_0x1a00('0x44')](_0x4c317e){this['listenTo'](_0x4c317e,'change:height',()=>this[_0x1a00('0x23')]()),this[_0x1a00('0xe')](_0x4c317e,_0x1a00('0x33'),(_0xe8db92,_0xd5354b)=>{this['_manuallyClosedAnnotationViews'][_0x1a00('0x28')](_0x4c317e),this['_hideBalloon'](),_0xd5354b();});}['_detachListeners'](_0x1e67e3){this[_0x1a00('0x3e')](_0x1e67e3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5931=['bottom','_setItemTop','sidebar.preventScrollOutOfView','isActive','getSidebarItemView','locale','targetRect','minHeight','config','_alignToTargetRect','Sidebar','_getItemBefore','element','_recalculateBuffer','_spaceBetweenItems','define','last','render','view','_updateLastItem','content','setContainer','length','_annotationToSidebarItemView','_annotations','_getTargetTop','_recalculate','stopListening','change:top','appendChild','unbind','_alignForTopChange','_targetTop','height','container','_alignAfterItem','class','_destroySidebarItemView','sidebar-attachtocontainer-missing-container','isAnimationDisabled','remove','get','_alignBeforeItem','sidebar.container','refresh','nodeType','updateHeight','add','listenTo','init','context','_getMaxAvailableTop','pluginName','_attachToContainer','_alignForBottomChange','set','_getItemAfter','destroy','delete','_detachFromContainer','clear','_lastItem','target','rearrange','bind','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','_activeAnnotation','_createSidebarView','change:_lastItem','max','list','top'];(function(_0x5b09d5,_0x59316b){const _0x2a1f3c=function(_0x4437fb){while(--_0x4437fb){_0x5b09d5['push'](_0x5b09d5['shift']());}};_0x2a1f3c(++_0x59316b);}(_0x5931,0x1e2));const _0x2a1f=function(_0x5b09d5,_0x59316b){_0x5b09d5=_0x5b09d5-0x0;let _0x2a1f3c=_0x5931[_0x5b09d5];return _0x2a1f3c;};import{ContextPlugin as _0x1edeff}from'ckeditor5/src/core';import{Rect as _0xa1cecf,CKEditorError as _0xe12512}from'ckeditor5/src/utils';import _0x2a1ab1 from'./view/sidebarview';import _0x3c11c9 from'./view/sidebaritemview';export default class z extends _0x1edeff{static get[_0x2a1f('0x8')](){return _0x2a1f('0x27');}constructor(_0x3defcc){super(_0x3defcc),this[_0x2a1f('0xb')](_0x2a1f('0x11'),void 0x0),this['view']=this[_0x2a1f('0x18')](),this[_0x2a1f('0xb')](_0x2a1f('0x3f'),null),this[_0x2a1f('0x2b')]=0x19,this[_0x2a1f('0x16')]=new Map(),this[_0x2a1f('0x34')]=new Map(),this[_0x2a1f('0x6')]['config'][_0x2a1f('0x2c')](_0x2a1f('0x1f'),!0x1),this[_0x2a1f('0x35')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x2a1f('0x5')](){const _0x1685fe=this[_0x2a1f('0x6')][_0x2a1f('0x25')][_0x2a1f('0x46')](_0x2a1f('0x48'));_0x1685fe&&this[_0x2a1f('0x32')](_0x1685fe);}[_0x2a1f('0x32')](_0x45aef6){if(!y(_0x45aef6))throw new _0xe12512(_0x2a1f('0x15'));this[_0x2a1f('0x3f')]=_0x45aef6;}[_0x2a1f('0x9')]({viewClass:_0x4307d8='',spaceBetweenItems:_0x46c701=0x19}={}){if(!y(this[_0x2a1f('0x3f')]))throw new _0xe12512(_0x2a1f('0x43'),this);this[_0x2a1f('0x3f')][_0x2a1f('0x3a')](this['view'][_0x2a1f('0x29')]),this[_0x2a1f('0x2f')][_0x2a1f('0x41')]=_0x4307d8,this[_0x2a1f('0x2b')]=_0x46c701;}[_0x2a1f('0x13')]({removedAnnotation:_0x5812e5,previousAnnotation:_0x349a79,nextAnnotation:_0x1cd550}){const _0x52f6f5=this['getSidebarItemView'](_0x5812e5);this['view'][_0x2a1f('0x1b')]['remove'](_0x52f6f5),this[_0x2a1f('0x42')](_0x5812e5),_0x349a79&&this[_0x2a1f('0x26')](this[_0x2a1f('0x21')](_0x349a79)),_0x1cd550&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1cd550)),this[_0x2a1f('0x30')]();}[_0x2a1f('0x0')]({blurredAnnotation:_0x1d79c4,activatedAnnotation:_0x49d53e,disableAnimationOnActivatedAnnotation:_0x53f9c7}){if(this[_0x2a1f('0x17')]=_0x49d53e,_0x1d79c4){_0x1d79c4[_0x2a1f('0x20')]=!0x1;const _0x17d152=this[_0x2a1f('0x21')](_0x1d79c4);_0x17d152&&_0x53f9c7&&(_0x17d152[_0x2a1f('0x44')]=!0x1);}if(_0x49d53e){const _0x1be66a=this['getSidebarItemView'](_0x49d53e);_0x1be66a&&(_0x49d53e[_0x2a1f('0x20')]=!0x0,_0x53f9c7&&(_0x1be66a[_0x2a1f('0x44')]=!0x0,_0x1be66a[_0x2a1f('0x1c')]+=0x1),this[_0x2a1f('0x26')](_0x1be66a));}}[_0x2a1f('0xf')](_0x5453d4){if(this[_0x2a1f('0x2f')]['element'][_0x2a1f('0x45')](),_0x5453d4)for(const _0x12a29c of _0x5453d4)this[_0x2a1f('0x42')](_0x12a29c);this[_0x2a1f('0x2f')][_0x2a1f('0x1b')][_0x2a1f('0x10')](),this[_0x2a1f('0x2f')][_0x2a1f('0x41')]='',this['_lastItem']=null;}['addAnnotation'](_0x512941,_0x6e6008){_0x6e6008||(_0x6e6008=_0x512941[_0x2a1f('0x2f')]);const _0x73822c=new _0x3c11c9(this[_0x2a1f('0x6')]['locale']);this[_0x2a1f('0x16')]['set'](_0x73822c,_0x512941),this['_annotationToSidebarItemView'][_0x2a1f('0xb')](_0x512941,_0x73822c),_0x73822c[_0x2a1f('0x31')][_0x2a1f('0x3')](_0x6e6008),this['listenTo'](_0x512941['view'],'change:targetRect',(_0x13874b,_0x37b5f6,_0x2a9fe6)=>{const _0x448714=this[_0x2a1f('0x36')](_0x512941,_0x2a9fe6);_0x73822c[_0x2a1f('0x3d')]!=_0x448714&&(_0x73822c[_0x2a1f('0x3d')]=_0x448714,this[_0x2a1f('0x1e')](_0x73822c,_0x448714));}),this[_0x2a1f('0x4')](_0x73822c,_0x2a1f('0x39'),()=>{this[_0x2a1f('0x37')](_0x73822c,_0x2a1f('0x1c'));}),this['listenTo'](_0x73822c,'change:bottom',()=>{this[_0x2a1f('0x37')](_0x73822c,_0x2a1f('0x1d'));}),this[_0x2a1f('0x26')](_0x73822c);const _0x16329b=this[_0x2a1f('0x28')](_0x73822c);if(_0x16329b)this[_0x2a1f('0x40')](_0x16329b,_0x73822c)||this[_0x2a1f('0x26')](_0x73822c);else this[_0x2a1f('0x26')](_0x73822c);return this[_0x2a1f('0x30')](),this['view']['list'][_0x2a1f('0x3')](_0x73822c),_0x73822c;}[_0x2a1f('0x3c')](_0x4ea054){if(!_0x4ea054['content']['length'])return;const _0x5c3686=this[_0x2a1f('0x28')](_0x4ea054);if(!_0x5c3686)return;const _0x902d3e=this['_sidebarItemViewToAnnotation'][_0x2a1f('0x46')](_0x5c3686),_0x4f25f7=this[_0x2a1f('0x17')];_0x4f25f7&&_0x4f25f7===_0x902d3e?this[_0x2a1f('0x40')](_0x5c3686,_0x4ea054):this[_0x2a1f('0x47')](_0x4ea054,_0x5c3686);}[_0x2a1f('0xa')](_0x4912ff){if(!_0x4912ff[_0x2a1f('0x31')][_0x2a1f('0x33')])return;const _0x1b2e66=this[_0x2a1f('0xc')](_0x4912ff);if(!_0x1b2e66)return;const _0x2cf625=this[_0x2a1f('0x16')]['get'](_0x1b2e66),_0x1a209d=this[_0x2a1f('0x6')][_0x2a1f('0x25')][_0x2a1f('0x46')]('sidebar.preventScrollOutOfView'),_0x5e5771=this[_0x2a1f('0x17')];_0x5e5771&&_0x5e5771===_0x2cf625&&_0x1a209d?(this[_0x2a1f('0x47')](_0x1b2e66,_0x4912ff),this[_0x2a1f('0x40')](_0x4912ff,_0x1b2e66)):_0x5e5771&&_0x5e5771===_0x2cf625?this[_0x2a1f('0x47')](_0x1b2e66,_0x4912ff):this['_alignAfterItem'](_0x4912ff,_0x1b2e66);}['_recalculate'](_0x2f22b2,_0x3e03ae){0x0===this[_0x2a1f('0x2a')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5d8541,changedProp:_0x24e1ff}of this[_0x2a1f('0x2a')])_0x2a1f('0x1c')===_0x24e1ff?this['_alignForTopChange'](_0x5d8541):this['_alignForBottomChange'](_0x5d8541);this[_0x2a1f('0x2a')]=[];},0xa),this[_0x2a1f('0x2a')]['push']({'sidebarItemView':_0x2f22b2,'changedProp':_0x3e03ae});}[_0x2a1f('0x21')](_0xf0b0eb){return this['_annotationToSidebarItemView'][_0x2a1f('0x46')](_0xf0b0eb);}[_0x2a1f('0xd')](){this[_0x2a1f('0x38')](),this[_0x2a1f('0x2f')][_0x2a1f('0xd')]();}[_0x2a1f('0x42')](_0x3b8168){const _0x5e6127=this['getSidebarItemView'](_0x3b8168);this[_0x2a1f('0x38')](_0x5e6127),this[_0x2a1f('0x38')](_0x3b8168[_0x2a1f('0x2f')]),_0x5e6127[_0x2a1f('0xd')](),this[_0x2a1f('0x34')]['delete'](_0x3b8168),this[_0x2a1f('0x16')][_0x2a1f('0xe')](_0x5e6127);}[_0x2a1f('0x18')](){const _0x349411=new _0x2a1ab1(this['context'][_0x2a1f('0x22')]);return _0x349411[_0x2a1f('0x2e')](),this['on'](_0x2a1f('0x19'),(_0x29e362,_0x2b5078,_0xb60c8c,_0xb13a0d)=>{_0xb13a0d&&_0x349411[_0x2a1f('0x3b')](_0x2a1f('0x24')),_0xb60c8c?_0x349411[_0x2a1f('0x14')](_0x2a1f('0x24'))['to'](_0xb60c8c,_0x2a1f('0x1d')):_0x349411[_0x2a1f('0x24')]=null;}),_0x349411;}[_0x2a1f('0x30')](){var _0x5e44c4;this['_lastItem']=(null===(_0x5e44c4=this[_0x2a1f('0x35')])||void 0x0===_0x5e44c4?void 0x0:_0x5e44c4['last'])?this['getSidebarItemView'](this[_0x2a1f('0x35')][_0x2a1f('0x2d')]):null;}[_0x2a1f('0x28')](_0x4321e8){var _0x4bf9dd;const _0x10632a=this['_sidebarItemViewToAnnotation'][_0x2a1f('0x46')](_0x4321e8),_0x1b8f5a=_0x10632a&&(null===(_0x4bf9dd=this[_0x2a1f('0x35')])||void 0x0===_0x4bf9dd?void 0x0:_0x4bf9dd[_0x2a1f('0x46')](this['_annotations']['getIndex'](_0x10632a)-0x1));return _0x1b8f5a&&this[_0x2a1f('0x21')](_0x1b8f5a)||null;}['_getItemAfter'](_0x1957f9){var _0x9dfae;const _0x412b34=this['_sidebarItemViewToAnnotation'][_0x2a1f('0x46')](_0x1957f9),_0x506b98=_0x412b34&&(null===(_0x9dfae=this[_0x2a1f('0x35')])||void 0x0===_0x9dfae?void 0x0:_0x9dfae[_0x2a1f('0x46')](this['_annotations']['getIndex'](_0x412b34)+0x1));return _0x506b98&&this[_0x2a1f('0x21')](_0x506b98)||null;}['_alignBeforeItem'](_0x2913ca,_0x1f2809){_0x2913ca[_0x2a1f('0x2')]();const _0x180c66=H(_0x1f2809[_0x2a1f('0x1d')]+this[_0x2a1f('0x2b')],_0x2913ca['top']);return!!_0x180c66&&(this['_setItemTop'](_0x1f2809,_0x1f2809[_0x2a1f('0x1c')]-_0x180c66),!0x0);}[_0x2a1f('0x40')](_0x205dae,_0xd13446){_0x205dae[_0x2a1f('0x2')]();const _0x3254cf=H(_0x205dae['bottom']+this[_0x2a1f('0x2b')],_0xd13446['top']);return!!_0x3254cf&&(this['_setItemTop'](_0xd13446,_0xd13446[_0x2a1f('0x1c')]+_0x3254cf,!0x1),!0x0);}[_0x2a1f('0x26')](_0x5b744c){const _0x50f033=this[_0x2a1f('0x16')][_0x2a1f('0x46')](_0x5b744c);if(!_0x50f033||!_0x50f033[_0x2a1f('0x12')]||!_0x50f033[_0x2a1f('0x23')])return;const _0x55dc1c=this[_0x2a1f('0x36')](_0x50f033,_0x50f033[_0x2a1f('0x23')]);this[_0x2a1f('0x1e')](_0x5b744c,_0x55dc1c);}[_0x2a1f('0x36')](_0x26fb10,_0x3619d0){if(null===_0x3619d0)return 0x0;if(_0x26fb10[_0x2a1f('0x12')]instanceof _0xa1cecf)return _0x3619d0[_0x2a1f('0x1c')];{const _0x3fd88b=new _0xa1cecf(this[_0x2a1f('0x2f')][_0x2a1f('0x29')])[_0x2a1f('0x1c')];return _0x3619d0[_0x2a1f('0x1c')]-_0x3fd88b;}}[_0x2a1f('0x1e')](_0x1e300a,_0x1c0290,_0x457a2a=this[_0x2a1f('0x6')][_0x2a1f('0x25')][_0x2a1f('0x46')](_0x2a1f('0x1f'))){_0x457a2a&&(_0x1c0290=Math[_0x2a1f('0x1a')](_0x1c0290,this[_0x2a1f('0x7')](_0x1e300a))),_0x1e300a['top']=_0x1c0290;}[_0x2a1f('0x7')](_0x5e3c0a){let _0xa17f4c=this[_0x2a1f('0x28')](_0x5e3c0a),_0x5252d5=0x0;for(;_0xa17f4c;)_0xa17f4c[_0x2a1f('0x2')](),_0x5252d5+=this[_0x2a1f('0x2b')]+_0xa17f4c[_0x2a1f('0x3e')],_0xa17f4c=this[_0x2a1f('0x28')](_0xa17f4c);return _0x5252d5;}}function H(_0x482141,_0x310a7d){return Math[_0x2a1f('0x1a')](_0x482141-_0x310a7d,0x0);}function y(_0x5af857){return null!==_0x5af857&&'object'==typeof _0x5af857&&0x1===_0x5af857[_0x2a1f('0x1')];}
23
+ const _0xb2b6=['_alignBeforeItem','addAnnotation','_annotations','_recalculate','content','container','_targetTop','_attachToContainer','element','object','class','targetRect','target','pluginName','refresh','_detachFromContainer','height','_annotationToSidebarItemView','getSidebarItemView','_activeAnnotation','isActive','get','change:_lastItem','sidebar.container','_destroySidebarItemView','Sidebar','bottom','_recalculateBuffer','_alignForBottomChange','listenTo','setContainer','context','stopListening','_getItemAfter','_alignAfterItem','length','nodeType','unbind','render','_alignForTopChange','_getMaxAvailableTop','config','_updateLastItem','add','list','change:targetRect','updateHeight','remove','bind','_sidebarItemViewToAnnotation','clear','_lastItem','define','change:bottom','top','delete','_getTargetTop','set','_setItemTop','_spaceBetweenItems','appendChild','_getItemBefore','_alignToTargetRect','change:top','destroy','last','sidebar.preventScrollOutOfView','getIndex','_createSidebarView','minHeight','locale','push','view'];(function(_0x5884bf,_0xb2b617){const _0x56534d=function(_0x36cae1){while(--_0x36cae1){_0x5884bf['push'](_0x5884bf['shift']());}};_0x56534d(++_0xb2b617);}(_0xb2b6,0x1d8));const _0x5653=function(_0x5884bf,_0xb2b617){_0x5884bf=_0x5884bf-0x0;let _0x56534d=_0xb2b6[_0x5884bf];return _0x56534d;};import{ContextPlugin as _0x5d307b}from'ckeditor5/src/core';import{Rect as _0x37bdda,CKEditorError as _0x4e76e8}from'ckeditor5/src/utils';import _0x25fc4e from'./view/sidebarview';import _0x4af31d from'./view/sidebaritemview';export default class z extends _0x5d307b{static get[_0x5653('0x34')](){return _0x5653('0x40');}constructor(_0x59fa61){super(_0x59fa61),this['set'](_0x5653('0x11'),void 0x0),this[_0x5653('0x26')]=this[_0x5653('0x22')](),this[_0x5653('0x17')](_0x5653('0x2c'),null),this[_0x5653('0x19')]=0x19,this[_0x5653('0xf')]=new Map(),this[_0x5653('0x38')]=new Map(),this[_0x5653('0x46')][_0x5653('0x7')][_0x5653('0x12')](_0x5653('0x20'),!0x1),this['_annotations']=null,this[_0x5653('0x3a')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x22a4f9=this[_0x5653('0x46')][_0x5653('0x7')][_0x5653('0x3c')](_0x5653('0x3e'));_0x22a4f9&&this[_0x5653('0x45')](_0x22a4f9);}[_0x5653('0x45')](_0x32f3a8){if(!y(_0x32f3a8))throw new _0x4e76e8('sidebar-setcontainer-invalid-element');this[_0x5653('0x2c')]=_0x32f3a8;}[_0x5653('0x2e')]({viewClass:_0x6eedd='',spaceBetweenItems:_0xb6e52a=0x19}={}){if(!y(this[_0x5653('0x2c')]))throw new _0x4e76e8('sidebar-attachtocontainer-missing-container',this);this[_0x5653('0x2c')][_0x5653('0x1a')](this['view'][_0x5653('0x2f')]),this['view'][_0x5653('0x31')]=_0x6eedd,this['_spaceBetweenItems']=_0xb6e52a;}['rearrange']({removedAnnotation:_0x4110c0,previousAnnotation:_0x534c31,nextAnnotation:_0x201596}){const _0x44c2eb=this['getSidebarItemView'](_0x4110c0);this['view'][_0x5653('0xa')][_0x5653('0xd')](_0x44c2eb),this[_0x5653('0x3f')](_0x4110c0),_0x534c31&&this[_0x5653('0x1c')](this['getSidebarItemView'](_0x534c31)),_0x201596&&this[_0x5653('0x1c')](this[_0x5653('0x39')](_0x201596)),this[_0x5653('0x8')]();}[_0x5653('0x35')]({blurredAnnotation:_0x42eb75,activatedAnnotation:_0x57b80d,disableAnimationOnActivatedAnnotation:_0x5c28d2}){if(this[_0x5653('0x3a')]=_0x57b80d,_0x42eb75){_0x42eb75[_0x5653('0x3b')]=!0x1;const _0x2773a6=this[_0x5653('0x39')](_0x42eb75);_0x2773a6&&_0x5c28d2&&(_0x2773a6['isAnimationDisabled']=!0x1);}if(_0x57b80d){const _0x17c5ec=this[_0x5653('0x39')](_0x57b80d);_0x17c5ec&&(_0x57b80d[_0x5653('0x3b')]=!0x0,_0x5c28d2&&(_0x17c5ec['isAnimationDisabled']=!0x0,_0x17c5ec[_0x5653('0x14')]+=0x1),this[_0x5653('0x1c')](_0x17c5ec));}}[_0x5653('0x36')](_0x49bcf8){if(this[_0x5653('0x26')][_0x5653('0x2f')][_0x5653('0xd')](),_0x49bcf8)for(const _0x508874 of _0x49bcf8)this[_0x5653('0x3f')](_0x508874);this['view'][_0x5653('0xa')][_0x5653('0x10')](),this[_0x5653('0x26')][_0x5653('0x31')]='',this[_0x5653('0x11')]=null;}[_0x5653('0x28')](_0x3b86b0,_0x471ae7){_0x471ae7||(_0x471ae7=_0x3b86b0[_0x5653('0x26')]);const _0x3de0ce=new _0x4af31d(this[_0x5653('0x46')][_0x5653('0x24')]);this[_0x5653('0xf')][_0x5653('0x17')](_0x3de0ce,_0x3b86b0),this[_0x5653('0x38')][_0x5653('0x17')](_0x3b86b0,_0x3de0ce),_0x3de0ce[_0x5653('0x2b')][_0x5653('0x9')](_0x471ae7),this[_0x5653('0x44')](_0x3b86b0[_0x5653('0x26')],_0x5653('0xb'),(_0x56ccd3,_0x10664c,_0x53dfc9)=>{const _0x33f57e=this['_getTargetTop'](_0x3b86b0,_0x53dfc9);_0x3de0ce[_0x5653('0x2d')]!=_0x33f57e&&(_0x3de0ce[_0x5653('0x2d')]=_0x33f57e,this[_0x5653('0x18')](_0x3de0ce,_0x33f57e));}),this[_0x5653('0x44')](_0x3de0ce,_0x5653('0x1d'),()=>{this[_0x5653('0x2a')](_0x3de0ce,'top');}),this['listenTo'](_0x3de0ce,_0x5653('0x13'),()=>{this['_recalculate'](_0x3de0ce,_0x5653('0x41'));}),this['_alignToTargetRect'](_0x3de0ce);const _0x368225=this['_getItemBefore'](_0x3de0ce);if(_0x368225)this[_0x5653('0x0')](_0x368225,_0x3de0ce)||this[_0x5653('0x1c')](_0x3de0ce);else this[_0x5653('0x1c')](_0x3de0ce);return this[_0x5653('0x8')](),this['view'][_0x5653('0xa')][_0x5653('0x9')](_0x3de0ce),_0x3de0ce;}[_0x5653('0x5')](_0x4a2648){if(!_0x4a2648[_0x5653('0x2b')]['length'])return;const _0xb66525=this[_0x5653('0x1b')](_0x4a2648);if(!_0xb66525)return;const _0x121388=this[_0x5653('0xf')]['get'](_0xb66525),_0x86df27=this[_0x5653('0x3a')];_0x86df27&&_0x86df27===_0x121388?this[_0x5653('0x0')](_0xb66525,_0x4a2648):this[_0x5653('0x27')](_0x4a2648,_0xb66525);}[_0x5653('0x43')](_0x1428a5){if(!_0x1428a5[_0x5653('0x2b')][_0x5653('0x1')])return;const _0x5e59e6=this[_0x5653('0x48')](_0x1428a5);if(!_0x5e59e6)return;const _0x2f3c7f=this[_0x5653('0xf')]['get'](_0x5e59e6),_0x4d9799=this[_0x5653('0x46')][_0x5653('0x7')][_0x5653('0x3c')](_0x5653('0x20')),_0x3fce6e=this[_0x5653('0x3a')];_0x3fce6e&&_0x3fce6e===_0x2f3c7f&&_0x4d9799?(this['_alignBeforeItem'](_0x5e59e6,_0x1428a5),this[_0x5653('0x0')](_0x1428a5,_0x5e59e6)):_0x3fce6e&&_0x3fce6e===_0x2f3c7f?this[_0x5653('0x27')](_0x5e59e6,_0x1428a5):this[_0x5653('0x0')](_0x1428a5,_0x5e59e6);}[_0x5653('0x2a')](_0x104dbb,_0x20e50e){0x0===this[_0x5653('0x42')][_0x5653('0x1')]&&setTimeout(()=>{for(const {sidebarItemView:_0x267c99,changedProp:_0x4e627f}of this[_0x5653('0x42')])_0x5653('0x14')===_0x4e627f?this[_0x5653('0x5')](_0x267c99):this[_0x5653('0x43')](_0x267c99);this[_0x5653('0x42')]=[];},0xa),this[_0x5653('0x42')][_0x5653('0x25')]({'sidebarItemView':_0x104dbb,'changedProp':_0x20e50e});}[_0x5653('0x39')](_0x3942c9){return this[_0x5653('0x38')][_0x5653('0x3c')](_0x3942c9);}[_0x5653('0x1e')](){this[_0x5653('0x47')](),this[_0x5653('0x26')][_0x5653('0x1e')]();}['_destroySidebarItemView'](_0x30cb4b){const _0x56b7a8=this['getSidebarItemView'](_0x30cb4b);this[_0x5653('0x47')](_0x56b7a8),this['stopListening'](_0x30cb4b[_0x5653('0x26')]),_0x56b7a8[_0x5653('0x1e')](),this[_0x5653('0x38')]['delete'](_0x30cb4b),this['_sidebarItemViewToAnnotation'][_0x5653('0x15')](_0x56b7a8);}[_0x5653('0x22')](){const _0x36f535=new _0x25fc4e(this[_0x5653('0x46')][_0x5653('0x24')]);return _0x36f535[_0x5653('0x4')](),this['on'](_0x5653('0x3d'),(_0x317ce4,_0x357b4f,_0x51e0ad,_0x5c1568)=>{_0x5c1568&&_0x36f535[_0x5653('0x3')](_0x5653('0x23')),_0x51e0ad?_0x36f535[_0x5653('0xe')]('minHeight')['to'](_0x51e0ad,_0x5653('0x41')):_0x36f535['minHeight']=null;}),_0x36f535;}[_0x5653('0x8')](){var _0x58667a;this[_0x5653('0x11')]=(null===(_0x58667a=this[_0x5653('0x29')])||void 0x0===_0x58667a?void 0x0:_0x58667a[_0x5653('0x1f')])?this[_0x5653('0x39')](this[_0x5653('0x29')][_0x5653('0x1f')]):null;}[_0x5653('0x1b')](_0xe2c371){var _0x3218b1;const _0x5e19f7=this[_0x5653('0xf')]['get'](_0xe2c371),_0x3a0714=_0x5e19f7&&(null===(_0x3218b1=this[_0x5653('0x29')])||void 0x0===_0x3218b1?void 0x0:_0x3218b1[_0x5653('0x3c')](this['_annotations']['getIndex'](_0x5e19f7)-0x1));return _0x3a0714&&this['getSidebarItemView'](_0x3a0714)||null;}[_0x5653('0x48')](_0x41d4e4){var _0x314673;const _0x291290=this['_sidebarItemViewToAnnotation'][_0x5653('0x3c')](_0x41d4e4),_0x4f60c8=_0x291290&&(null===(_0x314673=this['_annotations'])||void 0x0===_0x314673?void 0x0:_0x314673[_0x5653('0x3c')](this[_0x5653('0x29')][_0x5653('0x21')](_0x291290)+0x1));return _0x4f60c8&&this[_0x5653('0x39')](_0x4f60c8)||null;}['_alignBeforeItem'](_0x3517cb,_0x39e42d){_0x3517cb['updateHeight']();const _0x33b6de=H(_0x39e42d[_0x5653('0x41')]+this[_0x5653('0x19')],_0x3517cb[_0x5653('0x14')]);return!!_0x33b6de&&(this[_0x5653('0x18')](_0x39e42d,_0x39e42d[_0x5653('0x14')]-_0x33b6de),!0x0);}[_0x5653('0x0')](_0x38734b,_0x10d6a5){_0x38734b[_0x5653('0xc')]();const _0x40d404=H(_0x38734b[_0x5653('0x41')]+this[_0x5653('0x19')],_0x10d6a5[_0x5653('0x14')]);return!!_0x40d404&&(this[_0x5653('0x18')](_0x10d6a5,_0x10d6a5[_0x5653('0x14')]+_0x40d404,!0x1),!0x0);}['_alignToTargetRect'](_0x2c12c7){const _0x478aff=this[_0x5653('0xf')]['get'](_0x2c12c7);if(!_0x478aff||!_0x478aff['target']||!_0x478aff[_0x5653('0x32')])return;const _0xd31140=this[_0x5653('0x16')](_0x478aff,_0x478aff[_0x5653('0x32')]);this[_0x5653('0x18')](_0x2c12c7,_0xd31140);}[_0x5653('0x16')](_0x596afd,_0x7e129a){if(null===_0x7e129a)return 0x0;if(_0x596afd[_0x5653('0x33')]instanceof _0x37bdda)return _0x7e129a[_0x5653('0x14')];{const _0x40f1d8=new _0x37bdda(this[_0x5653('0x26')]['element'])[_0x5653('0x14')];return _0x7e129a['top']-_0x40f1d8;}}[_0x5653('0x18')](_0x3e8553,_0x328ade,_0x1ad4da=this[_0x5653('0x46')][_0x5653('0x7')]['get'](_0x5653('0x20'))){_0x1ad4da&&(_0x328ade=Math['max'](_0x328ade,this[_0x5653('0x6')](_0x3e8553))),_0x3e8553[_0x5653('0x14')]=_0x328ade;}[_0x5653('0x6')](_0x1d9116){let _0x5f5bbb=this[_0x5653('0x1b')](_0x1d9116),_0x5c865d=0x0;for(;_0x5f5bbb;)_0x5f5bbb['updateHeight'](),_0x5c865d+=this[_0x5653('0x19')]+_0x5f5bbb[_0x5653('0x37')],_0x5f5bbb=this[_0x5653('0x1b')](_0x5f5bbb);return _0x5c865d;}}function H(_0x4b4523,_0x42bca3){return Math['max'](_0x4b4523-_0x42bca3,0x0);}function y(_0x5e1471){return null!==_0x5e1471&&_0x5653('0x30')==typeof _0x5e1471&&0x1===_0x5e1471[_0x5653('0x2')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45dc=['ck-annotation-counter__badge','children','annotationType','counterView','...','icon','bind','isDirty','number','ck-annotation-counter__badge--edit-mode','add','span','toString','set','_badge','ck-annotation-counter'];(function(_0xa76baf,_0x45dcde){const _0x3d49f4=function(_0x352e63){while(--_0x352e63){_0xa76baf['push'](_0xa76baf['shift']());}};_0x3d49f4(++_0x45dcde);}(_0x45dc,0x8f));const _0x3d49=function(_0xa76baf,_0x45dcde){_0xa76baf=_0xa76baf-0x0;let _0x3d49f4=_0x45dc[_0xa76baf];return _0x3d49f4;};import{ButtonView as _0x483cbd,View as _0x45ac8a}from'ckeditor5/src/ui';import _0x2322f0 from'../../../theme/icons/add-comment.svg';export default class D extends _0x483cbd{constructor(_0x2a4089){super(_0x2a4089);const _0x539ac5=this['bindTemplate'];this[_0x3d49('0xe')](_0x3d49('0x8'),!0x1),this[_0x3d49('0xe')](_0x3d49('0x9'),0x0),this[_0x3d49('0x7')](_0x3d49('0xf'))['to'](this,_0x3d49('0x8'),this,'number',(_0x1b566b,_0x421751)=>_0x1b566b?_0x3d49('0x5'):_0x421751[_0x3d49('0xd')]()),this[_0x3d49('0xe')](_0x3d49('0x3'),''),this[_0x3d49('0x6')]=_0x2322f0,this['extendTemplate']({'attributes':{'class':[_0x3d49('0x0')]}}),this[_0x3d49('0x4')]=new _0x45ac8a(),this[_0x3d49('0x4')]['setTemplate']({'tag':_0x3d49('0xc'),'attributes':{'class':[_0x3d49('0x1'),_0x539ac5['to'](_0x3d49('0x3'),_0x451f19=>'ck-annotation-counter__badge--'+_0x451f19),_0x539ac5['if']('isDirty',_0x3d49('0xa'))]},'children':[{'text':_0x539ac5['to'](_0x3d49('0xf'))}]}),this[_0x3d49('0x2')][_0x3d49('0xb')](this['counterView']);}}
23
+ const _0x2642=['set','ck-annotation-counter__badge--edit-mode','bind','counterView','annotationType','...','_badge','ck-annotation-counter__badge--','bindTemplate','setTemplate','isDirty','number','add','extendTemplate','children','icon','ck-annotation-counter__badge'];(function(_0x42fb41,_0x2642bc){const _0x15d02b=function(_0x5054ce){while(--_0x5054ce){_0x42fb41['push'](_0x42fb41['shift']());}};_0x15d02b(++_0x2642bc);}(_0x2642,0x17d));const _0x15d0=function(_0x42fb41,_0x2642bc){_0x42fb41=_0x42fb41-0x0;let _0x15d02b=_0x2642[_0x42fb41];return _0x15d02b;};import{ButtonView as _0xbfb91d,View as _0x5a0b5d}from'ckeditor5/src/ui';import _0x43f961 from'../../../theme/icons/add-comment.svg';export default class D extends _0xbfb91d{constructor(_0x259078){super(_0x259078);const _0x4e0605=this[_0x15d0('0x1')];this[_0x15d0('0xa')](_0x15d0('0x3'),!0x1),this[_0x15d0('0xa')](_0x15d0('0x4'),0x0),this[_0x15d0('0xc')](_0x15d0('0x10'))['to'](this,'isDirty',this,_0x15d0('0x4'),(_0x337aa2,_0x5360a8)=>_0x337aa2?_0x15d0('0xf'):_0x5360a8['toString']()),this[_0x15d0('0xa')](_0x15d0('0xe'),''),this[_0x15d0('0x8')]=_0x43f961,this[_0x15d0('0x6')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x15d0('0xd')]=new _0x5a0b5d(),this[_0x15d0('0xd')][_0x15d0('0x2')]({'tag':'span','attributes':{'class':[_0x15d0('0x9'),_0x4e0605['to'](_0x15d0('0xe'),_0x23fbf3=>_0x15d0('0x0')+_0x23fbf3),_0x4e0605['if'](_0x15d0('0x3'),_0x15d0('0xb'))]},'children':[{'text':_0x4e0605['to'](_0x15d0('0x10'))}]}),this[_0x15d0('0x7')][_0x15d0('0x5')](this[_0x15d0('0xd')]);}}