@ckeditor/ckeditor5-comments 37.0.0-rc.0 → 37.0.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 +2 -2
  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": "37.0.0-rc.0",
3
+ "version": "37.0.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/)",
@@ -45,7 +45,7 @@
45
45
  "postversion": "npm run build"
46
46
  },
47
47
  "dependencies": {
48
- "ckeditor5": "^37.0.0-rc.0",
48
+ "ckeditor5": "^37.0.0",
49
49
  "ckeditor5-collaboration": "^36.0.1",
50
50
  "lodash-es": "^4.17.11"
51
51
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46d3=['destroy','item','length','target','focusableElements','object','nodeType','_getNormalizedTarget','getClientRects','function','remove','set','type','targetRect','_type','isActive','mainView','view','render','updateTargetRect','isVisible','_assertCorrectTarget','stopListening','clear','_target','element','refreshVisibility','annotation-invalid-target','focusTracker','filter','add','every','isArray','innerView','offsetParent'];(function(_0x5d6fec,_0x46d389){const _0x6269ac=function(_0x2c6a42){while(--_0x2c6a42){_0x5d6fec['push'](_0x5d6fec['shift']());}};_0x6269ac(++_0x46d389);}(_0x46d3,0x1ec));const _0x6269=function(_0x5d6fec,_0x46d389){_0x5d6fec=_0x5d6fec-0x0;let _0x6269ac=_0x46d3[_0x5d6fec];return _0x6269ac;};import{CKEditorError as _0x1539dc,Rect as _0x36c313,Collection as _0x135bc6,ObservableMixin as _0x89f78f}from'ckeditor5/src/utils';export default class d extends _0x89f78f(){constructor({view:_0x3121cd,target:_0xbeae3c,type:_0x22ed43,isVisible:_0x1a70f1=!0x0}){super(),this[_0x6269('0xf')]=_0x3121cd,this[_0x6269('0xf')][_0x6269('0x17')]||this[_0x6269('0xf')][_0x6269('0x10')](),this[_0x6269('0xc')]=_0x22ed43,this[_0x6269('0x16')]=_0xbeae3c,d[_0x6269('0x13')](this['_getNormalizedTarget']()),this[_0x6269('0x2')]=new _0x135bc6([this[_0x6269('0xf')]['element']],{'idProperty':'_id'}),this[_0x6269('0x2')]['on'](_0x6269('0x1c'),(_0x46a262,_0xa602f1)=>{this['view']['focusTracker']['add'](_0xa602f1);}),this['focusableElements']['on'](_0x6269('0x8'),(_0x5ac726,_0x3d4ed1)=>{this['view'][_0x6269('0x1a')][_0x6269('0x8')](_0x3d4ed1);}),this[_0x6269('0x9')]('isVisible',_0x1a70f1);}get[_0x6269('0xa')](){return _0x6269('0x7')==typeof this[_0x6269('0xc')]?this[_0x6269('0xc')]():this[_0x6269('0xc')];}get[_0x6269('0x1f')](){return this['view'][_0x6269('0xe')];}get['target'](){const _0x35d2ed=this[_0x6269('0x5')]();return d[_0x6269('0x13')](_0x35d2ed),_0x35d2ed;}get[_0x6269('0xb')](){const _0x5ecea1=this[_0x6269('0x1')];if(null===_0x5ecea1)return null;if(_0x5ecea1 instanceof _0x36c313)return _0x5ecea1;const _0x3048cd=_0x5ecea1[_0x6269('0x1b')](_0x33ee5e=>function(_0x53ec07){const _0x239967=_0x53ec07[_0x6269('0x20')];if(_0x239967)return!0x0;const _0x53f635=_0x53ec07['getClientRects']()[_0x6269('0x22')](0x0);return!!_0x53f635;}(_0x33ee5e));return 0x0===_0x3048cd[_0x6269('0x0')]?null:new _0x36c313(_0x3048cd[0x0][_0x6269('0x6')]()[_0x6269('0x22')](0x0));}get['isActive'](){return this['view'][_0x6269('0xd')];}set[_0x6269('0xd')](_0x1a0a6c){this[_0x6269('0xf')][_0x6269('0xd')]=_0x1a0a6c,this[_0x6269('0xf')]['mainView'][_0x6269('0xd')]=_0x1a0a6c;}[_0x6269('0x11')](){this[_0x6269('0xf')][_0x6269('0xb')]=this[_0x6269('0xb')];}[_0x6269('0x21')](){this['focusableElements'][_0x6269('0x14')](),this[_0x6269('0x2')][_0x6269('0x15')](),this[_0x6269('0x14')]();}[_0x6269('0x18')](){this[_0x6269('0x12')]=!!this[_0x6269('0xb')];}static[_0x6269('0x13')](_0x1afe33){if(!(null===_0x1afe33||_0x1afe33 instanceof _0x36c313||Array[_0x6269('0x1e')](_0x1afe33)&&_0x1afe33[_0x6269('0x1d')](_0x2e1f6b=>y(_0x2e1f6b))))throw new _0x1539dc(_0x6269('0x19'),null,{'target':_0x1afe33});}[_0x6269('0x5')](){const _0x5327c8=_0x6269('0x7')==typeof this[_0x6269('0x16')]?this[_0x6269('0x16')]():this[_0x6269('0x16')];return y(_0x5327c8)?[_0x5327c8]:_0x5327c8;}}function y(_0x18ab9d){return null!==_0x18ab9d&&_0x6269('0x3')==typeof _0x18ab9d&&_0x6269('0x4')in _0x18ab9d&&0x1===_0x18ab9d['nodeType'];}
23
+ const _0x4219=['filter','item','mainView','targetRect','function','focusableElements','getClientRects','set','isActive','element','updateTargetRect','focusTracker','destroy','target','_assertCorrectTarget','annotation-invalid-target','_target','clear','_getNormalizedTarget','add','offsetParent','_type','isVisible','view','stopListening','remove','length','every','refreshVisibility','nodeType','innerView'];(function(_0xc09e6e,_0x421957){const _0x2f3c02=function(_0x581287){while(--_0x581287){_0xc09e6e['push'](_0xc09e6e['shift']());}};_0x2f3c02(++_0x421957);}(_0x4219,0x96));const _0x2f3c=function(_0xc09e6e,_0x421957){_0xc09e6e=_0xc09e6e-0x0;let _0x2f3c02=_0x4219[_0xc09e6e];return _0x2f3c02;};import{CKEditorError as _0x39190c,Rect as _0x100afd,Collection as _0x13ddaf,ObservableMixin as _0x146ec4}from'ckeditor5/src/utils';export default class d extends _0x146ec4(){constructor({view:_0x551cab,target:_0x3d17d9,type:_0x111136,isVisible:_0x272e01=!0x0}){super(),this['view']=_0x551cab,this[_0x2f3c('0x1c')][_0x2f3c('0xe')]||this[_0x2f3c('0x1c')]['render'](),this[_0x2f3c('0x1a')]=_0x111136,this[_0x2f3c('0x15')]=_0x3d17d9,d[_0x2f3c('0x13')](this[_0x2f3c('0x17')]()),this['focusableElements']=new _0x13ddaf([this['view'][_0x2f3c('0xe')]],{'idProperty':'_id'}),this[_0x2f3c('0xa')]['on'](_0x2f3c('0x18'),(_0x4ae4b9,_0x381d9d)=>{this[_0x2f3c('0x1c')][_0x2f3c('0x10')][_0x2f3c('0x18')](_0x381d9d);}),this[_0x2f3c('0xa')]['on'](_0x2f3c('0x1e'),(_0x206f6c,_0x2217ca)=>{this[_0x2f3c('0x1c')][_0x2f3c('0x10')][_0x2f3c('0x1e')](_0x2217ca);}),this[_0x2f3c('0xc')](_0x2f3c('0x1b'),_0x272e01);}get['type'](){return'function'==typeof this[_0x2f3c('0x1a')]?this[_0x2f3c('0x1a')]():this[_0x2f3c('0x1a')];}get[_0x2f3c('0x4')](){return this[_0x2f3c('0x1c')][_0x2f3c('0x7')];}get[_0x2f3c('0x12')](){const _0x3c2670=this[_0x2f3c('0x17')]();return d[_0x2f3c('0x13')](_0x3c2670),_0x3c2670;}get['targetRect'](){const _0x5c73aa=this['target'];if(null===_0x5c73aa)return null;if(_0x5c73aa instanceof _0x100afd)return _0x5c73aa;const _0x32fc63=_0x5c73aa[_0x2f3c('0x5')](_0x8239df=>function(_0x928fc9){const _0x3fd192=_0x928fc9[_0x2f3c('0x19')];if(_0x3fd192)return!0x0;const _0x2417d5=_0x928fc9['getClientRects']()[_0x2f3c('0x6')](0x0);return!!_0x2417d5;}(_0x8239df));return 0x0===_0x32fc63[_0x2f3c('0x0')]?null:new _0x100afd(_0x32fc63[0x0][_0x2f3c('0xb')]()[_0x2f3c('0x6')](0x0));}get[_0x2f3c('0xd')](){return this[_0x2f3c('0x1c')][_0x2f3c('0xd')];}set[_0x2f3c('0xd')](_0x1078e0){this['view']['isActive']=_0x1078e0,this[_0x2f3c('0x1c')][_0x2f3c('0x7')]['isActive']=_0x1078e0;}[_0x2f3c('0xf')](){this[_0x2f3c('0x1c')][_0x2f3c('0x8')]=this[_0x2f3c('0x8')];}[_0x2f3c('0x11')](){this['focusableElements'][_0x2f3c('0x1d')](),this[_0x2f3c('0xa')][_0x2f3c('0x16')](),this[_0x2f3c('0x1d')]();}[_0x2f3c('0x2')](){this['isVisible']=!!this['targetRect'];}static[_0x2f3c('0x13')](_0x184f4b){if(!(null===_0x184f4b||_0x184f4b instanceof _0x100afd||Array['isArray'](_0x184f4b)&&_0x184f4b[_0x2f3c('0x1')](_0x29490f=>y(_0x29490f))))throw new _0x39190c(_0x2f3c('0x14'),null,{'target':_0x184f4b});}['_getNormalizedTarget'](){const _0x1e029e=_0x2f3c('0x9')==typeof this['_target']?this[_0x2f3c('0x15')]():this[_0x2f3c('0x15')];return y(_0x1e029e)?[_0x1e029e]:_0x1e029e;}}function y(_0x2c4faa){return null!==_0x2c4faa&&'object'==typeof _0x2c4faa&&_0x2f3c('0x3')in _0x2c4faa&&0x1===_0x2c4faa['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ec4=['fire','refreshPositioning','left','view','get','_sort','targetRect','clear','from','blur','sort','has','listenTo','_innerViewToAnnotation','_getOrderInContent','getByInnerView','_viewToAnnotation','destroy','focus','annotationcollection-not-existing-item','stopListening','_focusTracker','set','top','updateTargetRect','add','remove','focusableElements','delete','focusTracker','length'];(function(_0x2e07ce,_0x5ec45a){const _0x3feed2=function(_0x3fa998){while(--_0x3fa998){_0x2e07ce['push'](_0x2e07ce['shift']());}};_0x3feed2(++_0x5ec45a);}(_0x5ec4,0x125));const _0x3fee=function(_0x2e07ce,_0x5ec45a){_0x2e07ce=_0x2e07ce-0x0;let _0x3feed2=_0x5ec4[_0x2e07ce];return _0x3feed2;};import{CKEditorError as _0xb63554,Collection as _0x183b29,FocusTracker as _0x474772}from'ckeditor5/src/utils';export default class x extends _0x183b29{constructor(_0x8c8ce8=[]){super(),this[_0x3fee('0x1e')]=new Map(),this[_0x3fee('0x2')]=new Map(),this[_0x3fee('0x7')]=new _0x474772(),this[_0x3fee('0x7')]['on']('change:isFocused',(_0x4a9bb2,_0x161061,_0x300280)=>{_0x300280||this[_0x3fee('0x11')](_0x3fee('0x1a'));});for(const _0x129225 of _0x8c8ce8)this[_0x3fee('0xb')](_0x129225);}get['isFocused'](){return this[_0x3fee('0x7')]['isFocused'];}[_0x3fee('0xb')](_0xdbba77){if(this[_0x3fee('0x1c')](_0xdbba77))throw new _0xb63554('annotationcollection-duplicated-item',null);this[_0x3fee('0x1e')][_0x3fee('0x8')](_0xdbba77['innerView'],_0xdbba77),this[_0x3fee('0x2')][_0x3fee('0x8')](_0xdbba77['view'],_0xdbba77);for(const _0x3118c of _0xdbba77[_0x3fee('0xd')])this[_0x3fee('0x7')][_0x3fee('0xb')](_0x3118c);this[_0x3fee('0x1d')](_0xdbba77[_0x3fee('0xd')],_0x3fee('0xb'),(_0x5e396c,_0x1828ab)=>{this[_0x3fee('0x7')]['add'](_0x1828ab);}),this['listenTo'](_0xdbba77[_0x3fee('0xd')],_0x3fee('0xc'),(_0x2e32ae,_0x1cdf9f)=>{this[_0x3fee('0x7')]['remove'](_0x1cdf9f);}),this[_0x3fee('0x1d')](_0xdbba77[_0x3fee('0x14')][_0x3fee('0xf')],'change:isFocused',(_0x1ac2a6,_0x305934,_0x4a4804)=>{_0x4a4804&&this[_0x3fee('0x11')](_0x3fee('0x4'),_0xdbba77);}),_0xdbba77['updateTargetRect']();const _0x5ebffb=this[_0x3fee('0x0')](_0xdbba77['view']['targetRect']);return super[_0x3fee('0xb')](_0xdbba77,_0x5ebffb);}[_0x3fee('0xc')](_0x3e3177){if(!this[_0x3fee('0x1c')](_0x3e3177))throw new _0xb63554(_0x3fee('0x5'),null);this[_0x3fee('0x6')](_0x3e3177[_0x3fee('0x14')][_0x3fee('0xf')]),this['stopListening'](_0x3e3177['focusableElements']);for(const _0x4e9d0f of _0x3e3177['focusableElements'])this[_0x3fee('0x7')][_0x3fee('0xc')](_0x4e9d0f);return this[_0x3fee('0x2')][_0x3fee('0xe')](_0x3e3177[_0x3fee('0x14')]),this[_0x3fee('0x1e')]['delete'](_0x3e3177['innerView']),super[_0x3fee('0xc')](_0x3e3177);}[_0x3fee('0x1')](_0x1f33e9){return this[_0x3fee('0x1e')][_0x3fee('0x15')](_0x1f33e9);}['getByView'](_0x48beea){return this[_0x3fee('0x2')][_0x3fee('0x15')](_0x48beea);}[_0x3fee('0x3')](){super[_0x3fee('0x18')](),this[_0x3fee('0x6')](),this['_innerViewToAnnotation'][_0x3fee('0x18')](),this[_0x3fee('0x2')][_0x3fee('0x18')](),this[_0x3fee('0x7')][_0x3fee('0x3')]();}[_0x3fee('0x12')](){for(const _0x133a22 of this)_0x133a22[_0x3fee('0xa')]();this['_sort']();}[_0x3fee('0x16')](){const _0x5f503f=Array[_0x3fee('0x19')](this)[_0x3fee('0x1b')]((_0x590d51,_0x3d3e5a)=>v(_0x590d51[_0x3fee('0x14')][_0x3fee('0x17')],_0x3d3e5a['view']['targetRect']));for(let _0x5eec74=_0x5f503f[_0x3fee('0x10')]-0x1;_0x5eec74>0x0;_0x5eec74--){const _0x521219=_0x5f503f[_0x5eec74];_0x5eec74!==this['getIndex'](_0x521219)&&(this[_0x3fee('0xc')](_0x521219),this[_0x3fee('0xb')](_0x521219));}}[_0x3fee('0x0')](_0x4658de){let _0x449265=0x0;if(!_0x4658de)return this['length'];for(const _0xfb4d65 of this){const _0x474041=_0xfb4d65[_0x3fee('0x14')]['targetRect'];if(_0x474041){if(v(_0x4658de,_0x474041)<0x0)return _0x449265;_0x449265++;}}return _0x449265;}}export function bindAnnotationCollections({source:_0x331057,target:_0xb3610f,filter:_0x5cd02e}){for(const _0xac8d85 of _0x331057)_0x5cd02e(_0xac8d85)&&_0xb3610f['add'](_0xac8d85);_0xb3610f[_0x3fee('0x1d')](_0x331057,_0x3fee('0xb'),(_0x21b4c9,_0xae82a3)=>{_0x5cd02e(_0xae82a3)&&_0xb3610f['add'](_0xae82a3);}),_0xb3610f['listenTo'](_0x331057,_0x3fee('0xc'),(_0xf9dd0d,_0x1c4bfb)=>{_0xb3610f['has'](_0x1c4bfb)&&_0xb3610f['remove'](_0x1c4bfb);});}function v(_0x57e9a9,_0x3e7471){if(null===_0x57e9a9&&null===_0x3e7471)return 0x0;if(null===_0x57e9a9)return-0x1;if(null===_0x3e7471)return 0x1;const _0x37bc59=_0x57e9a9[_0x3fee('0x9')]-_0x3e7471[_0x3fee('0x9')];return 0x0==_0x37bc59?_0x57e9a9[_0x3fee('0x13')]-_0x3e7471[_0x3fee('0x13')]:_0x37bc59;}
23
+ const _0x533b=['get','from','add','_sort','_getOrderInContent','length','fire','top','remove','focus','getByInnerView','stopListening','listenTo','view','clear','_innerViewToAnnotation','annotationcollection-not-existing-item','getIndex','annotationcollection-duplicated-item','getByView','_focusTracker','focusableElements','blur','delete','has','refreshPositioning','updateTargetRect','set','innerView','change:isFocused','targetRect','_viewToAnnotation'];(function(_0x52f59f,_0x533bc1){const _0x5ca27c=function(_0x144e3c){while(--_0x144e3c){_0x52f59f['push'](_0x52f59f['shift']());}};_0x5ca27c(++_0x533bc1);}(_0x533b,0x1c0));const _0x5ca2=function(_0x52f59f,_0x533bc1){_0x52f59f=_0x52f59f-0x0;let _0x5ca27c=_0x533b[_0x52f59f];return _0x5ca27c;};import{CKEditorError as _0x3500a6,Collection as _0xcc458b,FocusTracker as _0x5a5bd2}from'ckeditor5/src/utils';export default class x extends _0xcc458b{constructor(_0x15cc32=[]){super(),this[_0x5ca2('0xf')]=new Map(),this[_0x5ca2('0x1f')]=new Map(),this[_0x5ca2('0x14')]=new _0x5a5bd2(),this[_0x5ca2('0x14')]['on'](_0x5ca2('0x1d'),(_0x30b14f,_0x77dba5,_0x56989a)=>{_0x56989a||this[_0x5ca2('0x6')](_0x5ca2('0x16'));});for(const _0x22e550 of _0x15cc32)this['add'](_0x22e550);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x55427c){if(this[_0x5ca2('0x18')](_0x55427c))throw new _0x3500a6(_0x5ca2('0x12'),null);this[_0x5ca2('0xf')]['set'](_0x55427c[_0x5ca2('0x1c')],_0x55427c),this[_0x5ca2('0x1f')][_0x5ca2('0x1b')](_0x55427c[_0x5ca2('0xd')],_0x55427c);for(const _0x336fab of _0x55427c['focusableElements'])this[_0x5ca2('0x14')][_0x5ca2('0x2')](_0x336fab);this[_0x5ca2('0xc')](_0x55427c['focusableElements'],_0x5ca2('0x2'),(_0x409890,_0x46bb3c)=>{this[_0x5ca2('0x14')]['add'](_0x46bb3c);}),this['listenTo'](_0x55427c[_0x5ca2('0x15')],_0x5ca2('0x8'),(_0x53c979,_0x50c393)=>{this[_0x5ca2('0x14')][_0x5ca2('0x8')](_0x50c393);}),this[_0x5ca2('0xc')](_0x55427c['view']['focusTracker'],_0x5ca2('0x1d'),(_0x34ef4b,_0x2ce32d,_0x22b5c0)=>{_0x22b5c0&&this[_0x5ca2('0x6')](_0x5ca2('0x9'),_0x55427c);}),_0x55427c[_0x5ca2('0x1a')]();const _0x353f69=this[_0x5ca2('0x4')](_0x55427c[_0x5ca2('0xd')][_0x5ca2('0x1e')]);return super[_0x5ca2('0x2')](_0x55427c,_0x353f69);}[_0x5ca2('0x8')](_0x268392){if(!this[_0x5ca2('0x18')](_0x268392))throw new _0x3500a6(_0x5ca2('0x10'),null);this[_0x5ca2('0xb')](_0x268392[_0x5ca2('0xd')]['focusTracker']),this[_0x5ca2('0xb')](_0x268392['focusableElements']);for(const _0x453fb5 of _0x268392[_0x5ca2('0x15')])this[_0x5ca2('0x14')][_0x5ca2('0x8')](_0x453fb5);return this[_0x5ca2('0x1f')][_0x5ca2('0x17')](_0x268392[_0x5ca2('0xd')]),this[_0x5ca2('0xf')][_0x5ca2('0x17')](_0x268392[_0x5ca2('0x1c')]),super[_0x5ca2('0x8')](_0x268392);}[_0x5ca2('0xa')](_0x4a7429){return this['_innerViewToAnnotation'][_0x5ca2('0x0')](_0x4a7429);}[_0x5ca2('0x13')](_0x51a91a){return this[_0x5ca2('0x1f')][_0x5ca2('0x0')](_0x51a91a);}['destroy'](){super[_0x5ca2('0xe')](),this[_0x5ca2('0xb')](),this[_0x5ca2('0xf')][_0x5ca2('0xe')](),this[_0x5ca2('0x1f')][_0x5ca2('0xe')](),this['_focusTracker']['destroy']();}[_0x5ca2('0x19')](){for(const _0xf3f0f8 of this)_0xf3f0f8[_0x5ca2('0x1a')]();this[_0x5ca2('0x3')]();}['_sort'](){const _0x36a32b=Array[_0x5ca2('0x1')](this)['sort']((_0x352002,_0x3aa1e0)=>v(_0x352002['view'][_0x5ca2('0x1e')],_0x3aa1e0[_0x5ca2('0xd')][_0x5ca2('0x1e')]));for(let _0x3b819d=_0x36a32b['length']-0x1;_0x3b819d>0x0;_0x3b819d--){const _0x243329=_0x36a32b[_0x3b819d];_0x3b819d!==this[_0x5ca2('0x11')](_0x243329)&&(this[_0x5ca2('0x8')](_0x243329),this[_0x5ca2('0x2')](_0x243329));}}[_0x5ca2('0x4')](_0x591b78){let _0x20d20d=0x0;if(!_0x591b78)return this[_0x5ca2('0x5')];for(const _0xd35c96 of this){const _0x3f6f17=_0xd35c96[_0x5ca2('0xd')][_0x5ca2('0x1e')];if(_0x3f6f17){if(v(_0x591b78,_0x3f6f17)<0x0)return _0x20d20d;_0x20d20d++;}}return _0x20d20d;}}export function bindAnnotationCollections({source:_0xee54f8,target:_0x57a66e,filter:_0x34e3a9}){for(const _0x1331ff of _0xee54f8)_0x34e3a9(_0x1331ff)&&_0x57a66e[_0x5ca2('0x2')](_0x1331ff);_0x57a66e[_0x5ca2('0xc')](_0xee54f8,'add',(_0x5df793,_0x941097)=>{_0x34e3a9(_0x941097)&&_0x57a66e[_0x5ca2('0x2')](_0x941097);}),_0x57a66e['listenTo'](_0xee54f8,_0x5ca2('0x8'),(_0x1cbb6e,_0x5951b4)=>{_0x57a66e[_0x5ca2('0x18')](_0x5951b4)&&_0x57a66e['remove'](_0x5951b4);});}function v(_0x163526,_0x3c8709){if(null===_0x163526&&null===_0x3c8709)return 0x0;if(null===_0x163526)return-0x1;if(null===_0x3c8709)return 0x1;const _0x53cff0=_0x163526['top']-_0x3c8709[_0x5ca2('0x7')];return 0x0==_0x53cff0?_0x163526['left']-_0x3c8709['left']:_0x53cff0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x491a=['pluginName','refreshVisibility','remove','Annotations','_removeActiveAnnotation','deactivateAll','stopListening','add','change:isVisible','refreshPositioning','_visibleAnnotations','isVisible','element','_addActiveAnnotation','_activateAnnotation','fire','view','destroy','listenTo','_deactivateAllAnnotations','collection','getByInnerView','source','has','activate','activeAnnotations'];(function(_0x53a3b9,_0x491ac8){const _0x3b9b09=function(_0x4a29ea){while(--_0x4a29ea){_0x53a3b9['push'](_0x53a3b9['shift']());}};_0x3b9b09(++_0x491ac8);}(_0x491a,0x1c3));const _0x3b9b=function(_0x53a3b9,_0x491ac8){_0x53a3b9=_0x53a3b9-0x0;let _0x3b9b09=_0x491a[_0x53a3b9];return _0x3b9b09;};import{ContextPlugin as _0x59d1ff}from'ckeditor5/src/core';import _0x1d2878 from'./annotation';import _0x1e97db from'./annotationcollection';import _0x5c4aad from'./view/annotationview';export default class b extends _0x59d1ff{static get[_0x3b9b('0x11')](){return _0x3b9b('0x14');}constructor(_0x11b7eb){super(_0x11b7eb),this[_0x3b9b('0xb')]=new _0x1e97db(),this[_0x3b9b('0x1')]=new _0x1e97db(),this['set'](_0x3b9b('0x10'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x3b9b('0x18')](_0x57984f){this[_0x3b9b('0xb')][_0x3b9b('0x18')](_0x57984f);}['remove'](_0x2f6e91){this['collection'][_0x3b9b('0x13')](_0x2f6e91),_0x2f6e91[_0x3b9b('0x8')]();}['refreshVisibility'](){for(const _0x168c0a of this[_0x3b9b('0xb')])_0x168c0a[_0x3b9b('0x12')]();}[_0x3b9b('0x0')](){this[_0x3b9b('0x1')][_0x3b9b('0x0')]();}[_0x3b9b('0xc')](_0x324fd0){return this[_0x3b9b('0xb')][_0x3b9b('0xc')](_0x324fd0);}[_0x3b9b('0x16')](){this[_0x3b9b('0x6')](_0x3b9b('0xa'));}['destroy'](){for(const _0x2d1640 of this[_0x3b9b('0xb')])_0x2d1640[_0x3b9b('0x8')]();this[_0x3b9b('0x1')][_0x3b9b('0x8')](),this['collection'][_0x3b9b('0x8')](),super['destroy']();}[_0x3b9b('0xf')](_0x239c19){this[_0x3b9b('0x6')](_0x3b9b('0x5'),_0x239c19);}['createAnnotation'](_0x26acfc){return new _0x1d2878(_0x26acfc);}['createAnnotationView'](_0x17b921,_0x226db9){return new _0x5c4aad(_0x17b921,_0x226db9);}[_0x3b9b('0x4')](_0x58829b){const _0x25059d=new Set(this[_0x3b9b('0x10')]);_0x25059d[_0x3b9b('0x18')](_0x58829b),this[_0x3b9b('0x10')]=_0x25059d;}[_0x3b9b('0x15')](_0x78bbf3){const _0x575cec=new Set(this[_0x3b9b('0x10')]);_0x575cec['delete'](_0x78bbf3),this['activeAnnotations']=_0x575cec;}['_bindAnnotationsToVisibleAnnotations'](){const _0x42900b=this[_0x3b9b('0xb')],_0x29f9e9=this[_0x3b9b('0x1')];function _0x560870(_0x1ff2a0){const _0x14fa66=_0x1ff2a0[_0x3b9b('0xd')];_0x14fa66[_0x3b9b('0x2')]&&!_0x29f9e9[_0x3b9b('0xe')](_0x14fa66)?_0x29f9e9[_0x3b9b('0x18')](_0x14fa66):!_0x14fa66[_0x3b9b('0x2')]&&_0x29f9e9[_0x3b9b('0xe')](_0x14fa66)&&_0x29f9e9[_0x3b9b('0x13')](_0x14fa66),_0x14fa66['view']['focusTracker'][_0x3b9b('0x13')](_0x14fa66[_0x3b9b('0x7')][_0x3b9b('0x3')]),_0x14fa66[_0x3b9b('0x7')]['focusTracker']['add'](_0x14fa66['view'][_0x3b9b('0x3')]);}this['listenTo'](_0x42900b,_0x3b9b('0x18'),(_0x1f7d0d,_0x2c75b5)=>{_0x2c75b5['isVisible']&&_0x29f9e9[_0x3b9b('0x18')](_0x2c75b5),this['listenTo'](_0x2c75b5,_0x3b9b('0x19'),_0x560870);}),this[_0x3b9b('0x9')](_0x42900b,_0x3b9b('0x13'),(_0x4ed42b,_0x200467)=>{_0x29f9e9['has'](_0x200467)&&_0x29f9e9[_0x3b9b('0x13')](_0x200467),this[_0x3b9b('0x17')](_0x200467,_0x3b9b('0x19'),_0x560870);});}}
23
+ const _0x49c2=['activeAnnotations','activate','set','destroy','Annotations','fire','createAnnotationView','refreshPositioning','getByInnerView','view','collection','listenTo','change:isVisible','isVisible','_visibleAnnotations','focusTracker','_activateAnnotation','_addActiveAnnotation','deactivateAll','stopListening','add','remove','has','delete','refreshVisibility','element','_deactivateAllAnnotations','_removeActiveAnnotation','createAnnotation'];(function(_0x51f07e,_0x49c243){const _0x1040a8=function(_0x5b7edf){while(--_0x5b7edf){_0x51f07e['push'](_0x51f07e['shift']());}};_0x1040a8(++_0x49c243);}(_0x49c2,0x1bc));const _0x1040=function(_0x51f07e,_0x49c243){_0x51f07e=_0x51f07e-0x0;let _0x1040a8=_0x49c2[_0x51f07e];return _0x1040a8;};import{ContextPlugin as _0x2544da}from'ckeditor5/src/core';import _0x39cd61 from'./annotation';import _0x424dbb from'./annotationcollection';import _0x45ec7d from'./view/annotationview';export default class b extends _0x2544da{static get['pluginName'](){return _0x1040('0x18');}constructor(_0x4759ae){super(_0x4759ae),this[_0x1040('0x1')]=new _0x424dbb(),this[_0x1040('0x5')]=new _0x424dbb(),this[_0x1040('0x16')](_0x1040('0x14'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}['add'](_0x51c780){this[_0x1040('0x1')][_0x1040('0xb')](_0x51c780);}['remove'](_0x33be38){this['collection'][_0x1040('0xc')](_0x33be38),_0x33be38[_0x1040('0x17')]();}[_0x1040('0xf')](){for(const _0x29287b of this[_0x1040('0x1')])_0x29287b[_0x1040('0xf')]();}[_0x1040('0x1b')](){this[_0x1040('0x5')][_0x1040('0x1b')]();}['getByInnerView'](_0x52d660){return this['collection'][_0x1040('0x1c')](_0x52d660);}[_0x1040('0x9')](){this[_0x1040('0x19')](_0x1040('0x11'));}['destroy'](){for(const _0x3cf91f of this[_0x1040('0x1')])_0x3cf91f[_0x1040('0x17')]();this[_0x1040('0x5')][_0x1040('0x17')](),this[_0x1040('0x1')][_0x1040('0x17')](),super['destroy']();}[_0x1040('0x15')](_0x2d2c0b){this[_0x1040('0x19')](_0x1040('0x7'),_0x2d2c0b);}[_0x1040('0x13')](_0x3bd74f){return new _0x39cd61(_0x3bd74f);}[_0x1040('0x1a')](_0xf79294,_0x5c18f0){return new _0x45ec7d(_0xf79294,_0x5c18f0);}[_0x1040('0x8')](_0x282228){const _0xb244de=new Set(this[_0x1040('0x14')]);_0xb244de['add'](_0x282228),this[_0x1040('0x14')]=_0xb244de;}[_0x1040('0x12')](_0x1000a5){const _0x3b7c38=new Set(this['activeAnnotations']);_0x3b7c38[_0x1040('0xe')](_0x1000a5),this['activeAnnotations']=_0x3b7c38;}['_bindAnnotationsToVisibleAnnotations'](){const _0x44a355=this['collection'],_0x566aef=this[_0x1040('0x5')];function _0xbfc5aa(_0x3f05be){const _0x38e8de=_0x3f05be['source'];_0x38e8de[_0x1040('0x4')]&&!_0x566aef[_0x1040('0xd')](_0x38e8de)?_0x566aef[_0x1040('0xb')](_0x38e8de):!_0x38e8de[_0x1040('0x4')]&&_0x566aef['has'](_0x38e8de)&&_0x566aef[_0x1040('0xc')](_0x38e8de),_0x38e8de[_0x1040('0x0')][_0x1040('0x6')][_0x1040('0xc')](_0x38e8de[_0x1040('0x0')]['element']),_0x38e8de[_0x1040('0x0')][_0x1040('0x6')][_0x1040('0xb')](_0x38e8de['view'][_0x1040('0x10')]);}this[_0x1040('0x2')](_0x44a355,'add',(_0x525458,_0x3a0ef1)=>{_0x3a0ef1['isVisible']&&_0x566aef['add'](_0x3a0ef1),this[_0x1040('0x2')](_0x3a0ef1,_0x1040('0x3'),_0xbfc5aa);}),this[_0x1040('0x2')](_0x44a355,'remove',(_0x3ec650,_0x7f1fb0)=>{_0x566aef[_0x1040('0xd')](_0x7f1fb0)&&_0x566aef[_0x1040('0xc')](_0x7f1fb0),this[_0x1040('0xa')](_0x7f1fb0,_0x1040('0x3'),_0xbfc5aa);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e8c=['change:activeAnnotation','get','annotationsuis-annotation-mismatch','AnnotationsUIs','annotationsuis-register-invalid-interface','isActive','refilterAnnotations','_visibleAnnotations','find','listenTo','setActiveAnnotation','size','deactivateAll','filter','hasActive','activeAnnotations','_activateAnnotation','_uis','from','activate','annotationsuis-missing-ui','init','function','push','annotationsuis-register-already-registered','stopListening','collection','deactivate','pluginName','attach','length','destroy','has','activeUIs','set','type','add','context','detach','delete','_assertAnnotationDoesNotBelongToMultipleUIs','plugins','_setSelectedAnnotations','register','_deactivateAllAnnotations','_uisData'];(function(_0x6f9690,_0x3e8c82){const _0x5d7eac=function(_0xe605da){while(--_0xe605da){_0x6f9690['push'](_0x6f9690['shift']());}};_0x5d7eac(++_0x3e8c82);}(_0x3e8c,0x81));const _0x5d7e=function(_0x6f9690,_0x3e8c82){_0x6f9690=_0x6f9690-0x0;let _0x5d7eac=_0x3e8c[_0x6f9690];return _0x5d7eac;};import{ContextPlugin as _0x1e9bb8}from'ckeditor5/src/core';import{CKEditorError as _0x1a45d6}from'ckeditor5/src/utils';import _0xee8372,{bindAnnotationCollections as _0x4f41d9}from'./annotationcollection';import _0x442de0 from'./annotations';export default class M extends _0x1e9bb8{static get['requires'](){return[_0x442de0];}static get[_0x5d7e('0x25')](){return _0x5d7e('0xc');}constructor(_0x489912){super(_0x489912),this[_0x5d7e('0x2a')]=new Set(),this['_uis']=new Map(),this[_0x5d7e('0x8')]=new Map();}[_0x5d7e('0x1e')](){const _0x34abec=this[_0x5d7e('0x0')]['plugins'][_0x5d7e('0xa')](_0x442de0);this[_0x5d7e('0x12')](_0x34abec,_0x5d7e('0x19'),(_0xc79007,_0x42a938)=>{for(const _0x5f03ee of this[_0x5d7e('0x2a')]){const _0x3ad975=this[_0x5d7e('0x1a')][_0x5d7e('0xa')](_0x5f03ee);(0x0,this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x5f03ee)['filter'])(_0x42a938)&&_0x3ad975[_0x5d7e('0x13')](_0x42a938);}}),this['listenTo'](_0x34abec,_0x5d7e('0x7'),()=>{for(const _0x2f0040 of this['activeUIs']){this['_uis'][_0x5d7e('0xa')](_0x2f0040)[_0x5d7e('0x13')](null);}}),this['listenTo'](_0x34abec['_visibleAnnotations'],_0x5d7e('0x2d'),(_0x58db70,_0x33535f)=>{this[_0x5d7e('0x3')](_0x33535f);});}[_0x5d7e('0x17')](){return this[_0x5d7e('0x2a')][_0x5d7e('0x14')]>0x0;}[_0x5d7e('0xe')](_0x175a83){return this[_0x5d7e('0x2a')][_0x5d7e('0x29')](_0x175a83);}[_0x5d7e('0x1c')](_0x58a41e,_0x26923f=()=>!0x0){const _0x12d253=this[_0x5d7e('0x0')][_0x5d7e('0x4')][_0x5d7e('0xa')](_0x442de0);if(!this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x58a41e))throw new _0x1a45d6(_0x5d7e('0x1d'),this,{'uiName':_0x58a41e});this[_0x5d7e('0xe')](_0x58a41e)&&this[_0x5d7e('0x24')](_0x58a41e),this['activeUIs']['add'](_0x58a41e);const _0x26b739=new _0xee8372(),_0x17715f=_0x12d253[_0x5d7e('0x10')];_0x4f41d9({'source':_0x17715f,'target':_0x26b739,'filter':_0x26923f}),this[_0x5d7e('0x8')][_0x5d7e('0x2b')](_0x58a41e,{'collection':_0x26b739,'filter':_0x26923f});const _0x56c9cb=this[_0x5d7e('0x1a')][_0x5d7e('0xa')](_0x58a41e);_0x56c9cb[_0x5d7e('0x26')](_0x26b739),this['listenTo'](_0x56c9cb,_0x5d7e('0x9'),(_0x230199,_0x1ab1c7,_0x3758d8,_0x51ef7f)=>{_0x51ef7f&&_0x12d253['_removeActiveAnnotation'](_0x51ef7f),_0x3758d8&&_0x12d253['_addActiveAnnotation'](_0x3758d8);});}[_0x5d7e('0x24')](_0x5c435f){if(this['activeUIs'][_0x5d7e('0x2')](_0x5c435f),!this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x5c435f))throw new _0x1a45d6(_0x5d7e('0x1d'),this,{'uiName':_0x5c435f});const _0xc4cc3a=this['_uis'][_0x5d7e('0xa')](_0x5c435f);_0xc4cc3a['detach'](),this[_0x5d7e('0x22')](_0xc4cc3a),this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x5c435f)[_0x5d7e('0x23')][_0x5d7e('0x28')](),this['_uisData'][_0x5d7e('0x2')](_0x5c435f);}['switchTo'](_0x27eada){if(!this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x27eada))throw new _0x1a45d6('annotationsuis-missing-ui',this,{'uiName':_0x27eada});const _0x677ac1=this[_0x5d7e('0x0')][_0x5d7e('0x4')][_0x5d7e('0xa')](_0x442de0),_0x531df0=Array[_0x5d7e('0x1b')](_0x677ac1[_0x5d7e('0x18')])[0x0]||null;this[_0x5d7e('0x15')](),this[_0x5d7e('0x1c')](_0x27eada);const _0x13b440=this[_0x5d7e('0x1a')]['get'](_0x27eada);_0x13b440[_0x5d7e('0x13')](_0x531df0),_0x13b440[_0x5d7e('0x5')]&&_0x531df0&&_0x13b440[_0x5d7e('0x5')]([_0x531df0]);}['deactivateAll'](){for(const _0x3a3efa of this[_0x5d7e('0x2a')])this[_0x5d7e('0x24')](_0x3a3efa);}[_0x5d7e('0x6')](_0x1b1c66,_0x129b90){if(this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x1b1c66))throw new _0x1a45d6(_0x5d7e('0x21'));if(_0x5d7e('0x1f')!=typeof _0x129b90[_0x5d7e('0x26')]||_0x5d7e('0x1f')!=typeof _0x129b90[_0x5d7e('0x1')]||_0x5d7e('0x1f')!=typeof _0x129b90['setActiveAnnotation'])throw new _0x1a45d6(_0x5d7e('0xd'),null);this[_0x5d7e('0x1a')]['set'](_0x1b1c66,_0x129b90);}[_0x5d7e('0xf')](){const _0x34a016=this[_0x5d7e('0x0')]['plugins']['get'](_0x442de0)[_0x5d7e('0x23')],_0x1f213a=new Map(),_0x566e2c=Array[_0x5d7e('0x1b')](this[_0x5d7e('0x2a')]);for(const _0x3fade1 of this[_0x5d7e('0x2a')]){const _0x28e03c=this[_0x5d7e('0x8')]['get'](_0x3fade1)[_0x5d7e('0x23')];for(const _0x2a0638 of _0x28e03c)_0x1f213a[_0x5d7e('0x2b')](_0x2a0638,_0x3fade1);}for(const _0x1a7c71 of _0x34a016){const _0x5c01c8=_0x1f213a[_0x5d7e('0xa')](_0x1a7c71);this[_0x5d7e('0x3')](_0x1a7c71);const _0x117b02=_0x566e2c[_0x5d7e('0x11')](_0x57d67c=>this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x57d67c)[_0x5d7e('0x16')](_0x1a7c71));_0x5c01c8!==_0x117b02&&(_0x5c01c8&&this[_0x5d7e('0x8')]['get'](_0x5c01c8)['collection']['remove'](_0x1a7c71),_0x117b02&&this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x117b02)[_0x5d7e('0x23')][_0x5d7e('0x2d')](_0x1a7c71));}}[_0x5d7e('0x28')](){this[_0x5d7e('0x15')](),super[_0x5d7e('0x28')]();}[_0x5d7e('0x3')](_0x2e025b){const _0x266aec=[];for(const _0x330883 of this[_0x5d7e('0x2a')]){(0x0,this[_0x5d7e('0x8')]['get'](_0x330883)['filter'])(_0x2e025b)&&_0x266aec[_0x5d7e('0x20')](_0x330883);}if(_0x266aec[_0x5d7e('0x27')]>0x1)throw new _0x1a45d6(_0x5d7e('0xb'),null,{'matchedUIs':_0x266aec,'annotationType':_0x2e025b[_0x5d7e('0x2c')]});}}
23
+ const _0x403f=['requires','push','AnnotationsUIs','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','set','annotationsuis-annotation-mismatch','_setSelectedAnnotations','get','activeAnnotations','annotationsuis-missing-ui','deactivate','annotationsuis-register-already-registered','context','detach','remove','_uisData','delete','attach','from','_visibleAnnotations','filter','size','has','type','refilterAnnotations','_uis','collection','listenTo','destroy','activate','change:activeAnnotation','plugins','_removeActiveAnnotation','find','register','setActiveAnnotation','_addActiveAnnotation','stopListening','switchTo','add','isActive','function','pluginName','deactivateAll'];(function(_0x370d65,_0x403f5c){const _0x2ac678=function(_0x4a51ef){while(--_0x4a51ef){_0x370d65['push'](_0x370d65['shift']());}};_0x2ac678(++_0x403f5c);}(_0x403f,0x14b));const _0x2ac6=function(_0x370d65,_0x403f5c){_0x370d65=_0x370d65-0x0;let _0x2ac678=_0x403f[_0x370d65];return _0x2ac678;};import{ContextPlugin as _0x5f3f26}from'ckeditor5/src/core';import{CKEditorError as _0x3ba4f2}from'ckeditor5/src/utils';import _0x2e7693,{bindAnnotationCollections as _0x569b57}from'./annotationcollection';import _0x306da9 from'./annotations';export default class M extends _0x5f3f26{static get[_0x2ac6('0x1d')](){return[_0x306da9];}static get[_0x2ac6('0x1b')](){return _0x2ac6('0x1f');}constructor(_0xc8af6b){super(_0xc8af6b),this[_0x2ac6('0x21')]=new Set(),this['_uis']=new Map(),this[_0x2ac6('0x0')]=new Map();}['init'](){const _0x40f01f=this[_0x2ac6('0x2a')]['plugins'][_0x2ac6('0x25')](_0x306da9);this[_0x2ac6('0xc')](_0x40f01f,'_activateAnnotation',(_0x4787cb,_0x301ac0)=>{for(const _0x31323b of this[_0x2ac6('0x21')]){const _0x120c3d=this[_0x2ac6('0xa')][_0x2ac6('0x25')](_0x31323b);(0x0,this['_uisData']['get'](_0x31323b)[_0x2ac6('0x5')])(_0x301ac0)&&_0x120c3d[_0x2ac6('0x14')](_0x301ac0);}}),this[_0x2ac6('0xc')](_0x40f01f,'_deactivateAllAnnotations',()=>{for(const _0x54c1c9 of this[_0x2ac6('0x21')]){this[_0x2ac6('0xa')][_0x2ac6('0x25')](_0x54c1c9)[_0x2ac6('0x14')](null);}}),this[_0x2ac6('0xc')](_0x40f01f[_0x2ac6('0x4')],_0x2ac6('0x18'),(_0x266fc6,_0x1c4377)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1c4377);});}['hasActive'](){return this[_0x2ac6('0x21')][_0x2ac6('0x6')]>0x0;}[_0x2ac6('0x19')](_0x17da9e){return this['activeUIs']['has'](_0x17da9e);}[_0x2ac6('0xe')](_0x4b1203,_0x28afd0=()=>!0x0){const _0x3d970a=this[_0x2ac6('0x2a')][_0x2ac6('0x10')][_0x2ac6('0x25')](_0x306da9);if(!this[_0x2ac6('0xa')]['has'](_0x4b1203))throw new _0x3ba4f2('annotationsuis-missing-ui',this,{'uiName':_0x4b1203});this[_0x2ac6('0x19')](_0x4b1203)&&this['deactivate'](_0x4b1203),this[_0x2ac6('0x21')]['add'](_0x4b1203);const _0x5970d0=new _0x2e7693(),_0x5e3add=_0x3d970a[_0x2ac6('0x4')];_0x569b57({'source':_0x5e3add,'target':_0x5970d0,'filter':_0x28afd0}),this['_uisData'][_0x2ac6('0x22')](_0x4b1203,{'collection':_0x5970d0,'filter':_0x28afd0});const _0x29aa98=this['_uis'][_0x2ac6('0x25')](_0x4b1203);_0x29aa98[_0x2ac6('0x2')](_0x5970d0),this[_0x2ac6('0xc')](_0x29aa98,_0x2ac6('0xf'),(_0x4c3c48,_0x5d7f7c,_0x15b169,_0x513b8f)=>{_0x513b8f&&_0x3d970a[_0x2ac6('0x11')](_0x513b8f),_0x15b169&&_0x3d970a[_0x2ac6('0x15')](_0x15b169);});}[_0x2ac6('0x28')](_0x317c04){if(this[_0x2ac6('0x21')]['delete'](_0x317c04),!this[_0x2ac6('0xa')][_0x2ac6('0x7')](_0x317c04))throw new _0x3ba4f2(_0x2ac6('0x27'),this,{'uiName':_0x317c04});const _0x1e8355=this[_0x2ac6('0xa')]['get'](_0x317c04);_0x1e8355[_0x2ac6('0x2b')](),this[_0x2ac6('0x16')](_0x1e8355),this[_0x2ac6('0x0')][_0x2ac6('0x25')](_0x317c04)[_0x2ac6('0xb')][_0x2ac6('0xd')](),this['_uisData'][_0x2ac6('0x1')](_0x317c04);}[_0x2ac6('0x17')](_0x3b0b9d){if(!this[_0x2ac6('0xa')]['has'](_0x3b0b9d))throw new _0x3ba4f2('annotationsuis-missing-ui',this,{'uiName':_0x3b0b9d});const _0x29a617=this[_0x2ac6('0x2a')][_0x2ac6('0x10')][_0x2ac6('0x25')](_0x306da9),_0x21c533=Array[_0x2ac6('0x3')](_0x29a617[_0x2ac6('0x26')])[0x0]||null;this[_0x2ac6('0x1c')](),this[_0x2ac6('0xe')](_0x3b0b9d);const _0x3cf37b=this[_0x2ac6('0xa')]['get'](_0x3b0b9d);_0x3cf37b[_0x2ac6('0x14')](_0x21c533),_0x3cf37b['_setSelectedAnnotations']&&_0x21c533&&_0x3cf37b[_0x2ac6('0x24')]([_0x21c533]);}[_0x2ac6('0x1c')](){for(const _0x2b333f of this[_0x2ac6('0x21')])this[_0x2ac6('0x28')](_0x2b333f);}[_0x2ac6('0x13')](_0x39edf4,_0x324251){if(this[_0x2ac6('0xa')]['has'](_0x39edf4))throw new _0x3ba4f2(_0x2ac6('0x29'));if('function'!=typeof _0x324251['attach']||_0x2ac6('0x1a')!=typeof _0x324251['detach']||_0x2ac6('0x1a')!=typeof _0x324251[_0x2ac6('0x14')])throw new _0x3ba4f2('annotationsuis-register-invalid-interface',null);this[_0x2ac6('0xa')][_0x2ac6('0x22')](_0x39edf4,_0x324251);}[_0x2ac6('0x9')](){const _0x31d7b1=this[_0x2ac6('0x2a')][_0x2ac6('0x10')]['get'](_0x306da9)['collection'],_0x26475f=new Map(),_0x3487cd=Array['from'](this[_0x2ac6('0x21')]);for(const _0x50766a of this[_0x2ac6('0x21')]){const _0x35fe24=this[_0x2ac6('0x0')][_0x2ac6('0x25')](_0x50766a)[_0x2ac6('0xb')];for(const _0x5a0acf of _0x35fe24)_0x26475f[_0x2ac6('0x22')](_0x5a0acf,_0x50766a);}for(const _0x10807c of _0x31d7b1){const _0x2f9a80=_0x26475f[_0x2ac6('0x25')](_0x10807c);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x10807c);const _0x74043f=_0x3487cd[_0x2ac6('0x12')](_0x5ac4af=>this[_0x2ac6('0x0')][_0x2ac6('0x25')](_0x5ac4af)[_0x2ac6('0x5')](_0x10807c));_0x2f9a80!==_0x74043f&&(_0x2f9a80&&this[_0x2ac6('0x0')][_0x2ac6('0x25')](_0x2f9a80)[_0x2ac6('0xb')][_0x2ac6('0x2c')](_0x10807c),_0x74043f&&this[_0x2ac6('0x0')]['get'](_0x74043f)['collection']['add'](_0x10807c));}}[_0x2ac6('0xd')](){this[_0x2ac6('0x1c')](),super[_0x2ac6('0xd')]();}[_0x2ac6('0x20')](_0xa28c0c){const _0xccd752=[];for(const _0x2216db of this['activeUIs']){(0x0,this['_uisData'][_0x2ac6('0x25')](_0x2216db)[_0x2ac6('0x5')])(_0xa28c0c)&&_0xccd752[_0x2ac6('0x1e')](_0x2216db);}if(_0xccd752['length']>0x1)throw new _0x3ba4f2(_0x2ac6('0x23'),null,{'matchedUIs':_0xccd752,'annotationType':_0xa28c0c[_0x2ac6('0x8')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cdb=['getRanges','model','annotation','hasDomSelection','refreshSelectedViews','pluginName','change:range','remove','requires','registerAnnotation','directChange','addSourceCollector','uiUpdate','selection','cancel','listenTo','editorannotations-invalid-source-callback','sort','fire','document','_dataCollectors','view','delete','collection','refresh','isCollapsed','element','init','has','range','_editorAnnotations','editor','update','EditorAnnotations','function','editing','blur','isEqual','from','containsRange','focusTracker','_editorAnnotationsData','plugins','add'];(function(_0x10e3ff,_0x4cdb8a){const _0x2076cf=function(_0x3839c4){while(--_0x3839c4){_0x10e3ff['push'](_0x10e3ff['shift']());}};_0x2076cf(++_0x4cdb8a);}(_0x4cdb,0xaa));const _0x2076=function(_0x10e3ff,_0x4cdb8a){_0x10e3ff=_0x10e3ff-0x0;let _0x2076cf=_0x4cdb[_0x10e3ff];return _0x2076cf;};import{Plugin as _0x42a95c}from'ckeditor5/src/core';import{CKEditorError as _0x16c200}from'ckeditor5/src/utils';import{debounce as _0x1d3262}from'lodash-es';import _0x16e8f6 from'./annotations';export default class k extends _0x42a95c{static get[_0x2076('0xe')](){return[_0x16e8f6];}static get[_0x2076('0xb')](){return _0x2076('0x27');}constructor(_0x53a8c3){super(_0x53a8c3),this['_dataCollectors']=new Set(),this[_0x2076('0x24')]=new Set();}[_0x2076('0x21')](){const _0x21708d=this[_0x2076('0x25')],_0x5af893=_0x21708d[_0x2076('0x7')]['document'][_0x2076('0x13')],_0x464bcd=_0x1d3262(()=>this[_0x2076('0xa')](),0xa);_0x5af893['on'](_0x2076('0xc'),(_0x3d4405,_0x349840)=>{_0x349840[_0x2076('0x10')]&&(_0x464bcd[_0x2076('0x14')](),this[_0x2076('0xa')]());}),this[_0x2076('0x15')](_0x21708d[_0x2076('0x29')][_0x2076('0x1b')]['document'],'change:isFocused',(_0x30632b,_0x5604e1,_0x2b1c5c)=>{_0x2b1c5c&&_0x464bcd();}),this[_0x2076('0x15')](_0x21708d['ui'][_0x2076('0x2')],'change:isFocused',(_0x178971,_0x236be2,_0x1cca44)=>{_0x1cca44||_0x21708d['isReadOnly']||this['fire'](_0x2076('0x2a'),{'isAnnotationTracked':_0x572f5d=>this[_0x2076('0x3')][_0x2076('0x22')](_0x572f5d['innerView'])});}),this[_0x2076('0x15')](this['editor']['ui'],_0x2076('0x26'),()=>this[_0x2076('0x18')](_0x2076('0x12')));}[_0x2076('0xf')](_0x2c3985){if(this['_editorAnnotations'][_0x2076('0x22')](_0x2c3985[_0x2076('0x1b')]))return;this['_editorAnnotations'][_0x2076('0x5')](_0x2c3985['view']),this['editor']['ui'][_0x2076('0x2')][_0x2076('0x5')](_0x2c3985[_0x2076('0x1b')]['element']);const _0x50acab=this[_0x2076('0x25')][_0x2076('0x4')]['get'](_0x16e8f6);this[_0x2076('0x15')](_0x50acab[_0x2076('0x1d')],_0x2076('0xd'),(_0x241f98,_0x40705f)=>{this[_0x2076('0x25')]['ui'][_0x2076('0x2')][_0x2076('0xd')](_0x40705f['view'][_0x2076('0x20')]),this[_0x2076('0x24')][_0x2076('0x1c')](_0x40705f[_0x2076('0x1b')]);});}[_0x2076('0x9')](){return this[_0x2076('0x25')]['editing'][_0x2076('0x1b')]['hasDomSelection'];}[_0x2076('0x11')](_0x444108){if(_0x2076('0x28')!=typeof _0x444108)throw new _0x16c200(_0x2076('0x16'));this[_0x2076('0x1a')][_0x2076('0x5')](_0x444108);}['refreshSelectedViews'](){this[_0x2076('0x18')](_0x2076('0x1e'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2bc608,annotations:_0x259879}){const _0x23137d=[],_0x39b943=this[_0x2076('0x25')]['model'][_0x2076('0x19')]['selection'],_0x22f6ed=Array[_0x2076('0x0')](_0x39b943[_0x2076('0x6')]());for(const [_0x1ab604,_0xd83149]of this[_0x2076('0x3')]){const _0x4b3e54=_0xcdfd55(_0xd83149),_0x1ae01e=_0x259879['getByInnerView'](_0x1ab604);_0x4b3e54&&_0x1ae01e&&_0x23137d['push']({'annotation':_0x1ae01e,'range':_0x4b3e54});}function _0xcdfd55(_0x5d28bd){for(const _0x588a52 of _0x5d28bd)for(const _0x35596b of _0x22f6ed)if(_0x588a52['containsRange'](_0x35596b,!_0x39b943[_0x2076('0x1f')]))return _0x588a52;return null;}return _0x23137d[_0x2076('0x17')]((_0x2e4f90,_0x124436)=>{const _0x38abf0=_0x2e4f90[_0x2076('0x23')],_0x48b3fb=_0x124436[_0x2076('0x23')];if(!_0x38abf0[_0x2076('0x2b')](_0x48b3fb)){if(_0x38abf0[_0x2076('0x1')](_0x48b3fb,!0x0))return 0x1;if(_0x48b3fb[_0x2076('0x1')](_0x38abf0,!0x0))return-0x1;}return _0x2e4f90[_0x2076('0x8')]==_0x2bc608?-0x1:_0x124436[_0x2076('0x8')]==_0x2bc608?0x1:0x0;})['map'](_0x1e3ca2=>_0x1e3ca2[_0x2076('0x8')]);}get[_0x2076('0x3')](){const _0x465407=new Map();for(const _0x28df52 of Array[_0x2076('0x0')](this[_0x2076('0x1a')]))for(const [_0x1da194,_0xa3df59]of _0x28df52())_0x465407['set'](_0x1da194,_0xa3df59);return _0x465407;}}
23
+ const _0x5aaa=['_editorAnnotationsData','hasDomSelection','sort','has','change:isFocused','editorannotations-invalid-source-callback','set','change:range','getOrderedSelectedAnnotations','add','remove','refreshSelectedViews','document','requires','_editorAnnotations','push','blur','_dataCollectors','fire','registerAnnotation','range','editing','refresh','cancel','view','map','listenTo','editor','containsRange','directChange','annotation','getRanges','collection','function','pluginName','addSourceCollector','isEqual','delete','model','getByInnerView','focusTracker','isCollapsed','plugins','selection'];(function(_0x211fe6,_0x5aaa67){const _0x345fca=function(_0x43886c){while(--_0x43886c){_0x211fe6['push'](_0x211fe6['shift']());}};_0x345fca(++_0x5aaa67);}(_0x5aaa,0xef));const _0x345f=function(_0x211fe6,_0x5aaa67){_0x211fe6=_0x211fe6-0x0;let _0x345fca=_0x5aaa[_0x211fe6];return _0x345fca;};import{Plugin as _0x4e4a8f}from'ckeditor5/src/core';import{CKEditorError as _0x5ce7cc}from'ckeditor5/src/utils';import{debounce as _0x4ab039}from'lodash-es';import _0xeeff55 from'./annotations';export default class k extends _0x4e4a8f{static get[_0x345f('0x26')](){return[_0xeeff55];}static get[_0x345f('0xf')](){return'EditorAnnotations';}constructor(_0x1e128d){super(_0x1e128d),this[_0x345f('0x2a')]=new Set(),this[_0x345f('0x27')]=new Set();}['init'](){const _0x3888e3=this[_0x345f('0x8')],_0x1a8663=_0x3888e3[_0x345f('0x13')][_0x345f('0x25')][_0x345f('0x18')],_0x22869e=_0x4ab039(()=>this[_0x345f('0x24')](),0xa);_0x1a8663['on'](_0x345f('0x20'),(_0x4591e3,_0x29d672)=>{_0x29d672[_0x345f('0xa')]&&(_0x22869e[_0x345f('0x4')](),this['refreshSelectedViews']());}),this[_0x345f('0x7')](_0x3888e3[_0x345f('0x2')][_0x345f('0x5')][_0x345f('0x25')],_0x345f('0x1d'),(_0x283475,_0x48ecd0,_0xec54f8)=>{_0xec54f8&&_0x22869e();}),this[_0x345f('0x7')](_0x3888e3['ui'][_0x345f('0x15')],_0x345f('0x1d'),(_0x3d3ff1,_0x581def,_0x57a73f)=>{_0x57a73f||_0x3888e3['isReadOnly']||this[_0x345f('0x2b')](_0x345f('0x29'),{'isAnnotationTracked':_0x178809=>this[_0x345f('0x19')][_0x345f('0x1c')](_0x178809['innerView'])});}),this[_0x345f('0x7')](this[_0x345f('0x8')]['ui'],'update',()=>this[_0x345f('0x2b')]('uiUpdate'));}[_0x345f('0x0')](_0x915825){if(this[_0x345f('0x27')][_0x345f('0x1c')](_0x915825['view']))return;this[_0x345f('0x27')][_0x345f('0x22')](_0x915825[_0x345f('0x5')]),this[_0x345f('0x8')]['ui']['focusTracker'][_0x345f('0x22')](_0x915825['view']['element']);const _0x5d156d=this[_0x345f('0x8')][_0x345f('0x17')]['get'](_0xeeff55);this['listenTo'](_0x5d156d[_0x345f('0xd')],_0x345f('0x23'),(_0x23f35a,_0x2e31b2)=>{this[_0x345f('0x8')]['ui']['focusTracker'][_0x345f('0x23')](_0x2e31b2[_0x345f('0x5')]['element']),this['_editorAnnotations'][_0x345f('0x12')](_0x2e31b2[_0x345f('0x5')]);});}['hasDomSelection'](){return this[_0x345f('0x8')]['editing'][_0x345f('0x5')][_0x345f('0x1a')];}[_0x345f('0x10')](_0x1bd9c1){if(_0x345f('0xe')!=typeof _0x1bd9c1)throw new _0x5ce7cc(_0x345f('0x1e'));this[_0x345f('0x2a')][_0x345f('0x22')](_0x1bd9c1);}[_0x345f('0x24')](){this[_0x345f('0x2b')](_0x345f('0x3'));}[_0x345f('0x21')]({activeAnnotation:_0x274dc5,annotations:_0x3a0a44}){const _0x4ba91d=[],_0x2f52ff=this[_0x345f('0x8')]['model'][_0x345f('0x25')][_0x345f('0x18')],_0x6af06=Array['from'](_0x2f52ff[_0x345f('0xc')]());for(const [_0x5e07a5,_0x2f02d4]of this[_0x345f('0x19')]){const _0x8a65cb=_0x29016f(_0x2f02d4),_0x3ff766=_0x3a0a44[_0x345f('0x14')](_0x5e07a5);_0x8a65cb&&_0x3ff766&&_0x4ba91d[_0x345f('0x28')]({'annotation':_0x3ff766,'range':_0x8a65cb});}function _0x29016f(_0x39d558){for(const _0x2b56d6 of _0x39d558)for(const _0x2081ce of _0x6af06)if(_0x2b56d6[_0x345f('0x9')](_0x2081ce,!_0x2f52ff[_0x345f('0x16')]))return _0x2b56d6;return null;}return _0x4ba91d[_0x345f('0x1b')]((_0xc91ac9,_0x2a4aae)=>{const _0x1c3c40=_0xc91ac9[_0x345f('0x1')],_0x2ca9af=_0x2a4aae['range'];if(!_0x1c3c40[_0x345f('0x11')](_0x2ca9af)){if(_0x1c3c40[_0x345f('0x9')](_0x2ca9af,!0x0))return 0x1;if(_0x2ca9af[_0x345f('0x9')](_0x1c3c40,!0x0))return-0x1;}return _0xc91ac9[_0x345f('0xb')]==_0x274dc5?-0x1:_0x2a4aae[_0x345f('0xb')]==_0x274dc5?0x1:0x0;})[_0x345f('0x6')](_0x5ea4e3=>_0x5ea4e3[_0x345f('0xb')]);}get[_0x345f('0x19')](){const _0x4740c6=new Map();for(const _0x3ddc3a of Array['from'](this[_0x345f('0x2a')]))for(const [_0x2850f7,_0x24f955]of _0x3ddc3a())_0x4740c6[_0x345f('0x1f')](_0x2850f7,_0x24f955);return _0x4740c6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d96=['isFocused','includes','bottom','plugins','from','detach','_forceRefresh','_setSelectedAnnotations','remove','clear','pluginName','fromRect','top','editing','stopListening','length','inlineannotations-not-allowed-with-context','_manuallyClosed','hasActive','set','add','afterInit','getByView','document','Esc','every','push','_closeAnnotation','getOrderedSelectedAnnotations','view','keystrokes','target','focus','get','change:visibleView','showStack','switchTo','_balloon','right','_addedAnnotations','destroy','isActive','setActiveAnnotation','isAttached','_removeAnnotationFromBalloon','editor','editableElement','addObserver','change:isFocused','change:height','activeAnnotation','getBoundingClientRect','hasView','attach','blur','annotations','focusTracker','delete','map','context','left','listenTo','targetRect','updatePosition','update','_addAnnotationToBalloon','find','collapse','_selectedAnnotations','has','getFirstRange','selection','inline','mousedown','width','visibleView'];(function(_0x296048,_0x2d9619){const _0x32011e=function(_0x51d54a){while(--_0x51d54a){_0x296048['push'](_0x296048['shift']());}};_0x32011e(++_0x2d9619);}(_0x2d96,0x111));const _0x3201=function(_0x296048,_0x2d9619){_0x296048=_0x296048-0x0;let _0x32011e=_0x2d96[_0x296048];return _0x32011e;};import{Plugin as _0x394cd1}from'ckeditor5/src/core';import _0x3b01a2 from'./annotationsuis';import _0x479de6 from'./editorannotations';import{ContextualBalloon as _0x5e56a8}from'ckeditor5/src/ui';import{MouseObserver as _0x4698d0}from'ckeditor5/src/engine';import{CKEditorError as _0x54d7de,Rect as _0x10eb49}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x394cd1{static get['requires'](){return[_0x479de6,_0x5e56a8,_0x3b01a2];}static get[_0x3201('0x29')](){return'InlineAnnotations';}constructor(_0x44a542){super(_0x44a542),_0x44a542['editing'][_0x3201('0x3c')][_0x3201('0x2')](_0x4698d0),this['isAttached']=!0x1,this[_0x3201('0x32')](_0x3201('0x5'),null),this[_0x3201('0xa')]=null,this[_0x3201('0x30')]=new Set(),this[_0x3201('0x44')]=_0x44a542[_0x3201('0x22')][_0x3201('0x40')](_0x5e56a8),this[_0x3201('0x46')]=new Set(),this['_selectedAnnotations']=[],this[_0x3201('0x25')]=!0x1;}['init'](){const _0x3f0927=this[_0x3201('0x0')][_0x3201('0x22')][_0x3201('0x40')](_0x3b01a2);_0x3f0927['context']===this[_0x3201('0x0')]&&(_0x3f0927['register']('inline',this),this['editor'][_0x3201('0x3d')][_0x3201('0x32')](_0x3201('0x37'),(_0x517c18,_0x432928)=>{const _0x6c0220=this[_0x3201('0x44')];if(this[_0x3201('0x4a')]&&_0x6c0220[_0x3201('0x1e')]){const _0x4328ce=this[_0x3201('0xa')][_0x3201('0x35')](_0x6c0220[_0x3201('0x1e')]);_0x4328ce&&this[_0x3201('0x3a')](_0x4328ce),_0x432928();}}));}[_0x3201('0x34')](){const _0x1ea787=this[_0x3201('0x0')][_0x3201('0x22')][_0x3201('0x40')](_0x3b01a2);_0x1ea787[_0x3201('0xe')]===this[_0x3201('0x0')]&&(_0x1ea787[_0x3201('0x31')]()||_0x1ea787[_0x3201('0x43')](_0x3201('0x1b')));}[_0x3201('0x49')](_0x3fb47b){_0x3fb47b!==this[_0x3201('0x5')]&&(this['activeAnnotation']&&(this[_0x3201('0x5')][_0x3201('0x48')]=!0x1),_0x3fb47b&&this[_0x3201('0x0')]['ui'][_0x3201('0xb')][_0x3201('0x1f')]&&(this[_0x3201('0xa')][_0x3201('0x18')](_0x3fb47b)&&this[_0x3201('0x14')](_0x3fb47b,!0x0),_0x3fb47b[_0x3201('0x48')]=!0x0),_0x3fb47b||this['_setSelectedAnnotations']([]),this[_0x3201('0x5')]=_0x3fb47b);}[_0x3201('0x8')](_0x433c93){this[_0x3201('0xa')]=_0x433c93;const _0x5d73ff=this['editor'][_0x3201('0x22')]['get'](_0x3b01a2),_0x21e65f=this[_0x3201('0x44')];if(this[_0x3201('0x4a')])throw new _0x54d7de('inlineannotations-attach-already-attached',this);if(_0x5d73ff[_0x3201('0xe')]!==this[_0x3201('0x0')])throw new _0x54d7de(_0x3201('0x2f'),this);const _0x18a621=this[_0x3201('0x0')][_0x3201('0x22')][_0x3201('0x40')](_0x479de6);this[_0x3201('0x10')](_0x18a621,'refresh',()=>{const _0x54285e=_0x18a621[_0x3201('0x3b')]({'annotations':this[_0x3201('0xa')],'activeAnnotation':this['activeAnnotation']});var _0x501146,_0x219b14;!this[_0x3201('0x25')]&&(_0x501146=_0x54285e,_0x219b14=this[_0x3201('0x17')],_0x501146[_0x3201('0x2e')]===_0x219b14[_0x3201('0x2e')]&&_0x501146[_0x3201('0x38')](_0x515ccb=>_0x219b14[_0x3201('0x20')](_0x515ccb)))||(this[_0x3201('0x25')]=!0x1,this[_0x3201('0x26')](_0x54285e),this[_0x3201('0x49')](_0x54285e[0x0]||null));}),this[_0x3201('0x10')](_0x18a621,_0x3201('0x9'),(_0x1ab4c8,{isAnnotationTracked:_0x1e6a7d})=>{this['activeAnnotation']&&_0x1e6a7d(this['activeAnnotation'])&&(this[_0x3201('0x26')]([]),this[_0x3201('0x49')](null));}),this[_0x3201('0x10')](this[_0x3201('0x0')]['ui'][_0x3201('0xb')],_0x3201('0x3'),(_0x389996,_0x338a40,_0x19ec67)=>{_0x19ec67||this[_0x3201('0x49')](null);}),this[_0x3201('0x10')](_0x433c93,_0x3201('0x27'),(_0x13743e,_0x23473f)=>{this[_0x3201('0x4b')](_0x23473f),_0x23473f===this[_0x3201('0x5')]&&this[_0x3201('0x49')](null);}),this[_0x3201('0x10')](_0x21e65f,_0x3201('0x41'),(_0x5773c2,_0x34ecc3,_0x23bb0b,_0x46351d)=>{_0x46351d&&this[_0x3201('0x2d')](_0x46351d);const _0x16010e=_0x433c93[_0x3201('0x35')](_0x23bb0b);_0x23bb0b&&_0x16010e&&(this['listenTo'](_0x23bb0b,_0x3201('0x4'),()=>{_0x21e65f[_0x3201('0x12')]();}),this[_0x3201('0x10')](_0x23bb0b,_0x3201('0x37'),()=>{this['_closeAnnotation'](_0x16010e),this[_0x3201('0x0')]['editing'][_0x3201('0x3c')][_0x3201('0x3f')]();}),this['activeAnnotation']!==_0x16010e&&this['setActiveAnnotation'](_0x16010e));}),this['listenTo'](this[_0x3201('0x0')]['ui'],_0x3201('0x13'),()=>{_0x21e65f[_0x3201('0x1e')]&&(_0x433c93[_0x3201('0x35')](_0x21e65f[_0x3201('0x1e')])&&_0x21e65f[_0x3201('0x12')]());}),this[_0x3201('0x10')](this[_0x3201('0x0')][_0x3201('0x2c')][_0x3201('0x3c')][_0x3201('0x36')],_0x3201('0x1c'),()=>{this[_0x3201('0x25')]=!0x0,this[_0x3201('0x30')][_0x3201('0x28')]();}),this['editor'][_0x3201('0x2c')][_0x3201('0x3c')][_0x3201('0x36')]['selection'][_0x3201('0x1')]&&this[_0x3201('0x0')][_0x3201('0x2c')][_0x3201('0x3c')][_0x3201('0x3f')](),this[_0x3201('0x4a')]=!0x0;}[_0x3201('0x24')](){if(!this[_0x3201('0x4a')])throw new _0x54d7de('inlineannotations-detach-not-attached',this);this[_0x3201('0x49')](null);for(const _0x4ba597 of this[_0x3201('0x46')])this[_0x3201('0x4b')](_0x4ba597);this[_0x3201('0x2d')](),this['isAttached']=!0x1,this[_0x3201('0xa')]=null;}[_0x3201('0x47')](){this[_0x3201('0x4a')]&&this[_0x3201('0x24')]();}[_0x3201('0x26')](_0xfdab94){for(const _0x322e8a of this[_0x3201('0x17')])_0xfdab94[_0x3201('0x20')](_0x322e8a)||this[_0x3201('0x30')][_0x3201('0xc')](_0x322e8a);for(const _0x7a9093 of this[_0x3201('0xa')])_0xfdab94[_0x3201('0x20')](_0x7a9093)||this['_removeAnnotationFromBalloon'](_0x7a9093);if(this['editor']['ui'][_0x3201('0xb')][_0x3201('0x1f')])for(const _0x180cee of _0xfdab94)this[_0x3201('0x14')](_0x180cee);this[_0x3201('0x17')]=_0xfdab94;}[_0x3201('0x14')](_0x3c77af,_0x23667d=!0x1){this[_0x3201('0x30')][_0x3201('0x18')](_0x3c77af)||(this[_0x3201('0x46')][_0x3201('0x18')](_0x3c77af)||this[_0x3201('0x44')][_0x3201('0x7')](_0x3c77af[_0x3201('0x3c')])||(this['_addedAnnotations'][_0x3201('0x33')](_0x3c77af),this['_balloon'][_0x3201('0x33')]({'stackId':_0x3c77af[_0x3201('0x3c')]['id'],'view':_0x3c77af[_0x3201('0x3c')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3c77af)}})),_0x23667d&&this[_0x3201('0x44')][_0x3201('0x42')](_0x3c77af[_0x3201('0x3c')]['id']));}['_getBalloonTargetForAnnotation'](_0x5965fc){const _0x4f214f=_0x5965fc[_0x3201('0x3e')],_0x2387ca=this[_0x3201('0x0')][_0x3201('0x2c')]['view'],_0x359026=_0x2387ca[_0x3201('0x36')][_0x3201('0x1a')][_0x3201('0x19')](),_0x573f69=_0x2387ca['domConverter']['viewRangeToDom'](_0x359026);if(_0x573f69[_0x3201('0x16')](!0x0),_0x4f214f){if(_0x4f214f instanceof _0x10eb49)return _0x4f214f;let _0x2f1c66=[];for(const _0x2d46dc of _0x4f214f)_0x2f1c66['push'](...(_0x559d59=_0x2d46dc['getClientRects'](),Array[_0x3201('0x23')](_0x559d59)[_0x3201('0xd')](DOMRect[_0x3201('0x2a')])));_0x2f1c66=function(_0x17a82f){const _0x46a5f4=[];let _0x58e408=_0x17a82f[0x0];for(let _0x4966c=0x1;_0x4966c<_0x17a82f[_0x3201('0x2e')];_0x4966c++)F(_0x58e408,_0x17a82f[_0x4966c])?_0x58e408[_0x3201('0x1d')]+=_0x17a82f[_0x4966c][_0x3201('0x1d')]:(_0x46a5f4['push'](_0x58e408),_0x58e408=_0x17a82f[_0x4966c]);return _0x46a5f4[_0x3201('0x39')](_0x58e408),_0x46a5f4;}(_0x2f1c66);const _0x4b6b55=_0x573f69[_0x3201('0x6')]();return _0x2f1c66[_0x3201('0x15')](_0x36539f=>_0x36539f[_0x3201('0x2b')]<=_0x4b6b55[_0x3201('0x2b')]&&_0x36539f[_0x3201('0x21')]>=_0x4b6b55[_0x3201('0x21')]&&_0x36539f['left']<=_0x4b6b55[_0x3201('0xf')]&&_0x36539f[_0x3201('0x45')]>=_0x4b6b55[_0x3201('0x45')])||_0x2f1c66[0x0];}var _0x559d59;return _0x5965fc[_0x3201('0x11')]||_0x573f69;}[_0x3201('0x4b')](_0x5a23d9){this[_0x3201('0x46')][_0x3201('0x18')](_0x5a23d9)&&this[_0x3201('0x44')][_0x3201('0x7')](_0x5a23d9[_0x3201('0x3c')])&&(this[_0x3201('0x46')][_0x3201('0xc')](_0x5a23d9),this[_0x3201('0x44')][_0x3201('0x27')](_0x5a23d9[_0x3201('0x3c')]));}[_0x3201('0x3a')](_0x5a90d1){this[_0x3201('0x30')][_0x3201('0x33')](_0x5a90d1),this['_removeAnnotationFromBalloon'](_0x5a90d1);}}function F(_0x229ac4,_0xfee924){return _0x229ac4[_0x3201('0x2b')]===_0xfee924[_0x3201('0x2b')]&&_0x229ac4[_0x3201('0x21')]===_0xfee924[_0x3201('0x21')]&&_0x229ac4[_0x3201('0x45')]===_0xfee924['left'];}
23
+ const _0x171d=['hasView','focusTracker','collapse','domConverter','annotations','_removeAnnotationFromBalloon','_balloon','change:isFocused','push','activeAnnotation','inlineannotations-not-allowed-with-context','_forceRefresh','_addAnnotationToBalloon','blur','register','updatePosition','focus','update','fromRect','switchTo','keystrokes','destroy','listenTo','isFocused','width','map','left','top','includes','clear','getClientRects','stopListening','getByView','selection','set','hasActive','_setSelectedAnnotations','afterInit','has','viewRangeToDom','visibleView','addObserver','document','refresh','editing','inline','pluginName','editor','init','_closeAnnotation','right','delete','inlineannotations-attach-already-attached','_getBalloonTargetForAnnotation','view','from','editableElement','context','length','_addedAnnotations','add','detach','remove','isAttached','getOrderedSelectedAnnotations','setActiveAnnotation','requires','getFirstRange','get','_selectedAnnotations','Esc','targetRect','_manuallyClosed','plugins','bottom'];(function(_0x273781,_0x171dc5){const _0x5b0fbc=function(_0x176ad3){while(--_0x176ad3){_0x273781['push'](_0x273781['shift']());}};_0x5b0fbc(++_0x171dc5);}(_0x171d,0x108));const _0x5b0f=function(_0x273781,_0x171dc5){_0x273781=_0x273781-0x0;let _0x5b0fbc=_0x171d[_0x273781];return _0x5b0fbc;};import{Plugin as _0x2a21b0}from'ckeditor5/src/core';import _0x506609 from'./annotationsuis';import _0x15b0f5 from'./editorannotations';import{ContextualBalloon as _0xe9219}from'ckeditor5/src/ui';import{MouseObserver as _0x15ca21}from'ckeditor5/src/engine';import{CKEditorError as _0x1ebf5c,Rect as _0x2bb842}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x2a21b0{static get[_0x5b0f('0x1b')](){return[_0x15b0f5,_0xe9219,_0x506609];}static get[_0x5b0f('0x7')](){return'InlineAnnotations';}constructor(_0x166712){super(_0x166712),_0x166712[_0x5b0f('0x5')][_0x5b0f('0xf')][_0x5b0f('0x2')](_0x15ca21),this['isAttached']=!0x1,this[_0x5b0f('0x46')](_0x5b0f('0x2d'),null),this['annotations']=null,this[_0x5b0f('0x21')]=new Set(),this[_0x5b0f('0x2a')]=_0x166712[_0x5b0f('0x22')][_0x5b0f('0x1d')](_0xe9219),this[_0x5b0f('0x14')]=new Set(),this[_0x5b0f('0x1e')]=[],this[_0x5b0f('0x2f')]=!0x1;}[_0x5b0f('0x9')](){const _0x8afe8e=this['editor'][_0x5b0f('0x22')]['get'](_0x506609);_0x8afe8e[_0x5b0f('0x12')]===this[_0x5b0f('0x8')]&&(_0x8afe8e[_0x5b0f('0x32')](_0x5b0f('0x6'),this),this[_0x5b0f('0x8')][_0x5b0f('0x38')][_0x5b0f('0x46')](_0x5b0f('0x1f'),(_0x44eca4,_0x598aef)=>{const _0x393252=this['_balloon'];if(this['isAttached']&&_0x393252[_0x5b0f('0x1')]){const _0x9bf357=this[_0x5b0f('0x28')][_0x5b0f('0x44')](_0x393252[_0x5b0f('0x1')]);_0x9bf357&&this['_closeAnnotation'](_0x9bf357),_0x598aef();}}));}[_0x5b0f('0x49')](){const _0x28f9a8=this[_0x5b0f('0x8')][_0x5b0f('0x22')]['get'](_0x506609);_0x28f9a8[_0x5b0f('0x12')]===this['editor']&&(_0x28f9a8[_0x5b0f('0x47')]()||_0x28f9a8[_0x5b0f('0x37')](_0x5b0f('0x6')));}['setActiveAnnotation'](_0x2d8212){_0x2d8212!==this[_0x5b0f('0x2d')]&&(this[_0x5b0f('0x2d')]&&(this['activeAnnotation']['isActive']=!0x1),_0x2d8212&&this[_0x5b0f('0x8')]['ui'][_0x5b0f('0x25')][_0x5b0f('0x3b')]&&(this['annotations'][_0x5b0f('0x4a')](_0x2d8212)&&this[_0x5b0f('0x30')](_0x2d8212,!0x0),_0x2d8212['isActive']=!0x0),_0x2d8212||this[_0x5b0f('0x48')]([]),this[_0x5b0f('0x2d')]=_0x2d8212);}['attach'](_0x19b982){this['annotations']=_0x19b982;const _0x6f4150=this[_0x5b0f('0x8')][_0x5b0f('0x22')][_0x5b0f('0x1d')](_0x506609),_0x17cff8=this[_0x5b0f('0x2a')];if(this['isAttached'])throw new _0x1ebf5c(_0x5b0f('0xd'),this);if(_0x6f4150[_0x5b0f('0x12')]!==this[_0x5b0f('0x8')])throw new _0x1ebf5c(_0x5b0f('0x2e'),this);const _0x320368=this[_0x5b0f('0x8')][_0x5b0f('0x22')][_0x5b0f('0x1d')](_0x15b0f5);this[_0x5b0f('0x3a')](_0x320368,_0x5b0f('0x4'),()=>{const _0x5afcc0=_0x320368[_0x5b0f('0x19')]({'annotations':this[_0x5b0f('0x28')],'activeAnnotation':this['activeAnnotation']});var _0x3bc030,_0x59a78c;!this[_0x5b0f('0x2f')]&&(_0x3bc030=_0x5afcc0,_0x59a78c=this[_0x5b0f('0x1e')],_0x3bc030[_0x5b0f('0x13')]===_0x59a78c[_0x5b0f('0x13')]&&_0x3bc030['every'](_0x4930d7=>_0x59a78c[_0x5b0f('0x40')](_0x4930d7)))||(this[_0x5b0f('0x2f')]=!0x1,this['_setSelectedAnnotations'](_0x5afcc0),this[_0x5b0f('0x1a')](_0x5afcc0[0x0]||null));}),this[_0x5b0f('0x3a')](_0x320368,_0x5b0f('0x31'),(_0x25ee74,{isAnnotationTracked:_0x22ee03})=>{this[_0x5b0f('0x2d')]&&_0x22ee03(this[_0x5b0f('0x2d')])&&(this['_setSelectedAnnotations']([]),this[_0x5b0f('0x1a')](null));}),this[_0x5b0f('0x3a')](this[_0x5b0f('0x8')]['ui'][_0x5b0f('0x25')],_0x5b0f('0x2b'),(_0x3aeae6,_0x476ac8,_0x4f5158)=>{_0x4f5158||this['setActiveAnnotation'](null);}),this[_0x5b0f('0x3a')](_0x19b982,_0x5b0f('0x17'),(_0xc462a4,_0x3f7e14)=>{this[_0x5b0f('0x29')](_0x3f7e14),_0x3f7e14===this[_0x5b0f('0x2d')]&&this[_0x5b0f('0x1a')](null);}),this[_0x5b0f('0x3a')](_0x17cff8,'change:visibleView',(_0x865fcd,_0x256638,_0x484ff3,_0x532a29)=>{_0x532a29&&this[_0x5b0f('0x43')](_0x532a29);const _0x448749=_0x19b982[_0x5b0f('0x44')](_0x484ff3);_0x484ff3&&_0x448749&&(this[_0x5b0f('0x3a')](_0x484ff3,'change:height',()=>{_0x17cff8[_0x5b0f('0x33')]();}),this[_0x5b0f('0x3a')](_0x484ff3,_0x5b0f('0x1f'),()=>{this['_closeAnnotation'](_0x448749),this['editor'][_0x5b0f('0x5')][_0x5b0f('0xf')][_0x5b0f('0x34')]();}),this[_0x5b0f('0x2d')]!==_0x448749&&this[_0x5b0f('0x1a')](_0x448749));}),this[_0x5b0f('0x3a')](this[_0x5b0f('0x8')]['ui'],_0x5b0f('0x35'),()=>{_0x17cff8[_0x5b0f('0x1')]&&(_0x19b982[_0x5b0f('0x44')](_0x17cff8['visibleView'])&&_0x17cff8[_0x5b0f('0x33')]());}),this[_0x5b0f('0x3a')](this[_0x5b0f('0x8')]['editing'][_0x5b0f('0xf')][_0x5b0f('0x3')],'mousedown',()=>{this[_0x5b0f('0x2f')]=!0x0,this['_manuallyClosed'][_0x5b0f('0x41')]();}),this['editor'][_0x5b0f('0x5')][_0x5b0f('0xf')][_0x5b0f('0x3')][_0x5b0f('0x45')][_0x5b0f('0x11')]&&this[_0x5b0f('0x8')][_0x5b0f('0x5')][_0x5b0f('0xf')][_0x5b0f('0x34')](),this[_0x5b0f('0x18')]=!0x0;}['detach'](){if(!this[_0x5b0f('0x18')])throw new _0x1ebf5c('inlineannotations-detach-not-attached',this);this[_0x5b0f('0x1a')](null);for(const _0x990a1c of this[_0x5b0f('0x14')])this['_removeAnnotationFromBalloon'](_0x990a1c);this[_0x5b0f('0x43')](),this[_0x5b0f('0x18')]=!0x1,this[_0x5b0f('0x28')]=null;}[_0x5b0f('0x39')](){this[_0x5b0f('0x18')]&&this[_0x5b0f('0x16')]();}[_0x5b0f('0x48')](_0xaac4f4){for(const _0x174f68 of this[_0x5b0f('0x1e')])_0xaac4f4['includes'](_0x174f68)||this[_0x5b0f('0x21')][_0x5b0f('0xc')](_0x174f68);for(const _0x20c541 of this[_0x5b0f('0x28')])_0xaac4f4[_0x5b0f('0x40')](_0x20c541)||this[_0x5b0f('0x29')](_0x20c541);if(this[_0x5b0f('0x8')]['ui'][_0x5b0f('0x25')][_0x5b0f('0x3b')])for(const _0x138fc4 of _0xaac4f4)this[_0x5b0f('0x30')](_0x138fc4);this[_0x5b0f('0x1e')]=_0xaac4f4;}[_0x5b0f('0x30')](_0x19c8d1,_0xbf7abd=!0x1){this['_manuallyClosed'][_0x5b0f('0x4a')](_0x19c8d1)||(this[_0x5b0f('0x14')][_0x5b0f('0x4a')](_0x19c8d1)||this[_0x5b0f('0x2a')]['hasView'](_0x19c8d1[_0x5b0f('0xf')])||(this['_addedAnnotations'][_0x5b0f('0x15')](_0x19c8d1),this[_0x5b0f('0x2a')][_0x5b0f('0x15')]({'stackId':_0x19c8d1[_0x5b0f('0xf')]['id'],'view':_0x19c8d1[_0x5b0f('0xf')],'position':{'target':()=>this[_0x5b0f('0xe')](_0x19c8d1)}})),_0xbf7abd&&this['_balloon']['showStack'](_0x19c8d1[_0x5b0f('0xf')]['id']));}[_0x5b0f('0xe')](_0x30c455){const _0x34b11a=_0x30c455['target'],_0x492ce7=this[_0x5b0f('0x8')]['editing'][_0x5b0f('0xf')],_0x1581fe=_0x492ce7[_0x5b0f('0x3')][_0x5b0f('0x45')][_0x5b0f('0x1c')](),_0x5641b4=_0x492ce7[_0x5b0f('0x27')][_0x5b0f('0x0')](_0x1581fe);if(_0x5641b4[_0x5b0f('0x26')](!0x0),_0x34b11a){if(_0x34b11a instanceof _0x2bb842)return _0x34b11a;let _0x4f1eca=[];for(const _0x2e6c24 of _0x34b11a)_0x4f1eca['push'](...(_0x70fd4d=_0x2e6c24[_0x5b0f('0x42')](),Array[_0x5b0f('0x10')](_0x70fd4d)[_0x5b0f('0x3d')](DOMRect[_0x5b0f('0x36')])));_0x4f1eca=function(_0x3049fc){const _0x408cf5=[];let _0x45cdb3=_0x3049fc[0x0];for(let _0x14ab8f=0x1;_0x14ab8f<_0x3049fc[_0x5b0f('0x13')];_0x14ab8f++)F(_0x45cdb3,_0x3049fc[_0x14ab8f])?_0x45cdb3['width']+=_0x3049fc[_0x14ab8f][_0x5b0f('0x3c')]:(_0x408cf5[_0x5b0f('0x2c')](_0x45cdb3),_0x45cdb3=_0x3049fc[_0x14ab8f]);return _0x408cf5['push'](_0x45cdb3),_0x408cf5;}(_0x4f1eca);const _0x4368c3=_0x5641b4['getBoundingClientRect']();return _0x4f1eca['find'](_0x313a74=>_0x313a74['top']<=_0x4368c3[_0x5b0f('0x3f')]&&_0x313a74[_0x5b0f('0x23')]>=_0x4368c3['bottom']&&_0x313a74[_0x5b0f('0x3e')]<=_0x4368c3['left']&&_0x313a74[_0x5b0f('0xb')]>=_0x4368c3[_0x5b0f('0xb')])||_0x4f1eca[0x0];}var _0x70fd4d;return _0x30c455[_0x5b0f('0x20')]||_0x5641b4;}[_0x5b0f('0x29')](_0x1257a6){this[_0x5b0f('0x14')]['has'](_0x1257a6)&&this['_balloon'][_0x5b0f('0x24')](_0x1257a6['view'])&&(this['_addedAnnotations'][_0x5b0f('0xc')](_0x1257a6),this[_0x5b0f('0x2a')]['remove'](_0x1257a6[_0x5b0f('0xf')]));}[_0x5b0f('0xa')](_0x16fb4d){this[_0x5b0f('0x21')]['add'](_0x16fb4d),this[_0x5b0f('0x29')](_0x16fb4d);}}function F(_0x3abd2e,_0x4b66e2){return _0x3abd2e[_0x5b0f('0x3f')]===_0x4b66e2[_0x5b0f('0x3f')]&&_0x3abd2e[_0x5b0f('0x23')]===_0x4b66e2[_0x5b0f('0x23')]&&_0x3abd2e[_0x5b0f('0xb')]===_0x4b66e2['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x297b=['isAttached','bodyCollection','_integrateWithEditorAnnotations','_attachListeners','length','target','esc','pluginName','requires','type','narrowsidebar-attach-already-attached','from','annotationType','removeEventListener','NarrowSidebar','set:container','context','defaultPositions','blur','getSidebarItemView','hasDomSelection','isVisible','keyCode','add','_selectedAnnotations','getOrderedSelectedAnnotations','remove','rearrange','refreshPositioning','northArrowSouthWest','clear','southArrowNorthEast','content','getByView','delete','_hideBalloon','view','keydown','stop','editors','contains','_showBalloon','addAnnotation','annotations','setActiveAnnotation','_detachFromContainer','focus','_editorAnnotations','get','register','ck-sidebar--narrow','_setSelectedAnnotations','refresh','locale','includes','_annotations','EditorAnnotations','stopListening','create','listenTo','uiUpdate','_destroyEditorAnnotationsIntegration','preventClosingBalloon','detach','_updateBalloonPosition','southArrowNorthWest','_refreshPositioning','_detachListeners','init','southArrowNorth','element','attachToDom','first','isDirty','mousedown','low','activeAnnotation','execute','has','attach','destroy','pin','resize','plugins','balloonPanelView','_manuallyClosedAnnotationViews','Esc','_annotationToNarrowView','detachFromDom','northArrowSouthEast','high','_refreshPositioningDebounced','cancel','change:container','_domEmitter','set','unpin'];(function(_0x2bf93c,_0x297b41){const _0x11598d=function(_0x16fa33){while(--_0x16fa33){_0x2bf93c['push'](_0x2bf93c['shift']());}};_0x11598d(++_0x297b41);}(_0x297b,0x6f));const _0x1159=function(_0x2bf93c,_0x297b41){_0x2bf93c=_0x2bf93c-0x0;let _0x11598d=_0x297b[_0x2bf93c];return _0x11598d;};import{ContextPlugin as _0x2a1951,Context as _0x184cf1}from'ckeditor5/src/core';import _0x3c495a from'./annotationsuis';import _0x41979b from'./sidebar';import _0x492660 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x445565,BodyCollection as _0x56ff43}from'ckeditor5/src/ui';import{CKEditorError as _0x598556,DomEmitterMixin as _0x23a6a6,keyCodes as _0x2ed5ce,Collection as _0x52d27c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x474423}from'lodash-es';import _0x179a0f from'./editorannotations';export default class s extends _0x2a1951{static get[_0x1159('0x5b')](){return[_0x41979b,_0x3c495a];}static get[_0x1159('0x5a')](){return _0x1159('0x0');}constructor(_0x5d7c1d){super(_0x5d7c1d),this[_0x1159('0x53')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x1159('0x50')]=Object[_0x1159('0x2c')](_0x23a6a6),this[_0x1159('0x49')]=new Map(),this[_0x1159('0x51')](_0x1159('0x3e'),null),this[_0x1159('0x1d')]=null,this[_0x1159('0xa')]=[],this[_0x1159('0x21')]=new _0x52d27c(),this[_0x1159('0x4d')]=_0x474423(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x1159('0x36')](){this[_0x1159('0x2')]['plugins'][_0x1159('0x22')](_0x3c495a)[_0x1159('0x23')]('narrowSidebar',this),this[_0x1159('0x54')]=new _0x56ff43(this[_0x1159('0x2')][_0x1159('0x27')]),this[_0x1159('0x46')]=new _0x445565(this[_0x1159('0x2')][_0x1159('0x27')]),this[_0x1159('0x54')][_0x1159('0x39')](),this[_0x1159('0x54')][_0x1159('0x9')](this[_0x1159('0x46')]);}[_0x1159('0x41')](_0x34861a){this[_0x1159('0x1d')]=_0x34861a;const _0x2427cf=this[_0x1159('0x2')][_0x1159('0x45')]['get'](_0x41979b),_0x28c830=this['balloonPanelView'];if(_0x2427cf[_0x1159('0x29')]=_0x34861a,this[_0x1159('0x53')])throw new _0x598556(_0x1159('0x5d'),this);this[_0x1159('0x53')]=!0x0,this[_0x1159('0x2d')](_0x2427cf,_0x1159('0x1'),()=>{this[_0x1159('0x31')](),this[_0x1159('0x2d')](_0x2427cf,_0x1159('0x4f'),_0xb7bb78=>{_0xb7bb78['off'](),this[_0x1159('0x41')](_0x34861a);});}),_0x2427cf['_attachToContainer']({'viewClass':_0x1159('0x24'),'spaceBetweenItems':0x5});const _0x1db299=_0x1ee029=>{const _0x2191d6=new _0x492660(this[_0x1159('0x2')]['locale']);_0x2427cf[_0x1159('0x1c')](_0x1ee029,_0x2191d6),this[_0x1159('0x49')][_0x1159('0x51')](_0x1ee029,_0x2191d6),_0x2191d6['bind'](_0x1159('0x3b'),_0x1159('0x5f'),'number')['to'](_0x1ee029[_0x1159('0x16')],'isDirty',_0x1159('0x5c'),_0x1159('0x57')),_0x2191d6['on'](_0x1159('0x3f'),()=>{this[_0x1159('0x47')][_0x1159('0x10')](),_0x28c830[_0x1159('0x12')][_0x1159('0x3a')]!==_0x1ee029[_0x1159('0x16')]?(this[_0x1159('0x1b')](_0x1ee029),_0x1ee029[_0x1159('0x16')][_0x1159('0x38')][_0x1159('0x20')](),this[_0x1159('0x1e')](_0x1ee029)):this[_0x1159('0x1e')](null);});};for(const _0x2e6e7b of _0x34861a)_0x1db299(_0x2e6e7b);this[_0x1159('0x2d')](_0x34861a,_0x1159('0x9'),(_0xaa6ec5,_0x462ee5)=>{_0x1db299(_0x462ee5);}),this['listenTo'](_0x34861a,_0x1159('0xc'),(_0x36f45e,_0x408e83,_0x1d6181)=>{this['_annotationToNarrowView'][_0x1159('0x22')](_0x408e83)[_0x1159('0x42')](),this[_0x1159('0x49')][_0x1159('0x14')](_0x408e83),_0x2427cf[_0x1159('0xd')]({'removedAnnotation':_0x408e83,'previousAnnotation':_0x34861a[_0x1159('0x22')](_0x1d6181-0x1),'nextAnnotation':_0x34861a[_0x1159('0x22')](_0x1d6181+0x1)}),_0x408e83===this[_0x1159('0x3e')]&&this[_0x1159('0x1e')](null);},{'priority':_0x1159('0x3d')}),this['listenTo'](_0x34861a,_0x1159('0x20'),(_0x2bf11d,_0x42ca27)=>{this[_0x1159('0x1e')](_0x42ca27);}),this['listenTo'](_0x34861a,_0x1159('0x4'),()=>{this[_0x1159('0x1e')](null);}),this[_0x1159('0x50')]['listenTo'](document,_0x1159('0x17'),(_0x347e50,_0x3ca2e8)=>{_0x3ca2e8[_0x1159('0x8')]===_0x2ed5ce[_0x1159('0x59')]&&_0x28c830[_0x1159('0x7')]&&(this[_0x1159('0x47')][_0x1159('0x9')](_0x28c830['content'][_0x1159('0x3a')]),this['_hideBalloon'](),_0x3ca2e8['stopPropagation'](),_0x3ca2e8['preventDefault']());}),this['_domEmitter'][_0x1159('0x2d')](document,_0x1159('0x3c'),(_0x477cb5,_0x4142ed)=>{const _0x339c1c=_0x4142ed['target'];_0x28c830[_0x1159('0x7')]&&_0x28c830[_0x1159('0x38')][_0x1159('0x1a')](_0x339c1c)||_0x2427cf[_0x1159('0x16')][_0x1159('0x38')][_0x1159('0x1a')](_0x339c1c)||_0x477cb5[_0x1159('0x30')]||(this[_0x1159('0x47')]['clear'](),this['_hideBalloon'](),this[_0x1159('0x1e')](null));});const _0x407ab4=this[_0x1159('0x2')]instanceof _0x184cf1?this['context']['editors']:new _0x52d27c([this[_0x1159('0x2')]]);for(const _0x929a21 of _0x407ab4)this[_0x1159('0x55')](_0x929a21);this[_0x1159('0x2d')](_0x407ab4,_0x1159('0x9'),(_0x3341e9,_0x23a7a4)=>{this[_0x1159('0x2d')](_0x23a7a4,'ready',()=>{this[_0x1159('0x55')](_0x23a7a4);});}),this[_0x1159('0x2d')](_0x407ab4,'remove',(_0x113820,_0x4340cf)=>{_0x4340cf[_0x1159('0x45')][_0x1159('0x40')](_0x1159('0x2a'))&&this[_0x1159('0x2f')](_0x4340cf[_0x1159('0x45')][_0x1159('0x22')](_0x1159('0x2a')));}),window['addEventListener'](_0x1159('0x44'),this[_0x1159('0x4d')]),this[_0x1159('0x34')]();}[_0x1159('0x1e')](_0x1307f1){if(_0x1307f1===this['activeAnnotation'])return;const _0x482464=this[_0x1159('0x2')][_0x1159('0x45')][_0x1159('0x22')](_0x41979b);if(_0x482464['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1307f1,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1307f1)_0x482464[_0x1159('0x5')](_0x1307f1)?this['_showBalloon'](_0x1307f1):this['_hideBalloon']();else this[_0x1159('0x15')]();this[_0x1159('0x3e')]=_0x1307f1;}['detach'](){if(!this[_0x1159('0x53')])throw new _0x598556('narrowsidebar-detach-not-attached',this);this[_0x1159('0x1e')](null);const _0x448510=this[_0x1159('0x2')][_0x1159('0x45')][_0x1159('0x22')](_0x41979b);this[_0x1159('0x15')](),Array[_0x1159('0x5e')](this[_0x1159('0x49')]['values'](),_0x2afb92=>_0x2afb92['destroy']()),this[_0x1159('0x49')][_0x1159('0x10')](),_0x448510[_0x1159('0x1f')](this['annotations']),this[_0x1159('0x2b')](),this[_0x1159('0x50')][_0x1159('0x2b')](),this[_0x1159('0x2')]instanceof _0x184cf1&&this[_0x1159('0x2b')](this[_0x1159('0x2')][_0x1159('0x19')]);for(const _0x5c195d of Array['from'](this[_0x1159('0x21')]))this['_destroyEditorAnnotationsIntegration'](_0x5c195d);window[_0x1159('0x60')]('resize',this[_0x1159('0x4d')]),this[_0x1159('0x4d')][_0x1159('0x4e')](),this[_0x1159('0xa')]=[],this['isAttached']=!0x1,this[_0x1159('0x1d')]=null;}[_0x1159('0x42')](){this[_0x1159('0x53')]&&this[_0x1159('0x31')](),this[_0x1159('0x54')][_0x1159('0x4a')]();}[_0x1159('0x55')](_0x79f910){const _0x5c1d1f=_0x79f910[_0x1159('0x45')][_0x1159('0x22')](_0x179a0f),_0x86fa9d=this['context'][_0x1159('0x45')][_0x1159('0x22')](_0x41979b),_0x173f55=this[_0x1159('0x1d')],_0x5f1b33=this[_0x1159('0x46')],_0x1a6576=()=>{const _0x12d6fe=_0x5c1d1f[_0x1159('0xb')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0x1159('0x25')](_0x12d6fe),this[_0x1159('0x1e')](_0x12d6fe[0x0]||null);};this['listenTo'](_0x5c1d1f,_0x1159('0x26'),_0x1a6576),this[_0x1159('0x2d')](_0x5c1d1f,_0x1159('0x4'),(_0x572c4c,{isAnnotationTracked:_0x44fde4})=>{this[_0x1159('0x3e')]&&_0x44fde4(this[_0x1159('0x3e')])&&(this[_0x1159('0x25')]([]),this[_0x1159('0x1e')](null));}),this[_0x1159('0x2d')](_0x5c1d1f,_0x1159('0x2e'),()=>{this[_0x1159('0x4d')]();}),this[_0x1159('0x2d')](_0x173f55,_0x1159('0x4'),_0x5b5a06=>{_0x5c1d1f[_0x1159('0x6')]()&&_0x5b5a06[_0x1159('0x18')]();},{'priority':_0x1159('0x4c')}),this[_0x1159('0x2d')](this[_0x1159('0x50')],_0x1159('0x3c'),(_0x477627,_0x5f3a33)=>{const _0x4eebda=_0x5f3a33[_0x1159('0x58')];_0x5f1b33['isVisible']&&_0x5f1b33['element'][_0x1159('0x1a')](_0x4eebda)||_0x86fa9d[_0x1159('0x16')][_0x1159('0x38')][_0x1159('0x1a')](_0x4eebda)||this[_0x1159('0x3e')]&&_0x5c1d1f['hasDomSelection']()&&(_0x1a6576(),_0x477627[_0x1159('0x30')]=!0x0);},{'priority':_0x1159('0x4c')}),this['_editorAnnotations']['add'](_0x5c1d1f);}[_0x1159('0x2f')](_0x73fc15){_0x73fc15&&(this[_0x1159('0x2b')](_0x73fc15),this[_0x1159('0x21')]['remove'](_0x73fc15));}[_0x1159('0x25')](_0x116806){for(const _0x588739 of this['_selectedAnnotations'])_0x116806[_0x1159('0x28')](_0x588739)||this[_0x1159('0x47')][_0x1159('0x14')](_0x588739[_0x1159('0x16')]);this['_selectedAnnotations']=_0x116806;}[_0x1159('0x34')](){const _0x294b6f=this[_0x1159('0x46')];this[_0x1159('0x1d')][_0x1159('0xe')](),_0x294b6f['isVisible']&&this[_0x1159('0x32')]();}[_0x1159('0x1b')](_0x354f04){if(this[_0x1159('0x47')]['has'](_0x354f04['view']))return;const _0x5e8753=this[_0x1159('0x46')][_0x1159('0x12')][_0x1159('0x3a')];_0x5e8753!==_0x354f04[_0x1159('0x16')]?(_0x5e8753&&this[_0x1159('0x35')](_0x5e8753),this[_0x1159('0x56')](_0x354f04[_0x1159('0x16')]),this['balloonPanelView'][_0x1159('0x12')][_0x1159('0x10')](),this['balloonPanelView'][_0x1159('0x12')][_0x1159('0x9')](_0x354f04[_0x1159('0x16')]),this[_0x1159('0x32')]()):this['_updateBalloonPosition']();}[_0x1159('0x32')](){const _0x55ceff=this[_0x1159('0x46')][_0x1159('0x12')]['first'],_0x233b86=_0x55ceff&&this['annotations'][_0x1159('0x13')](_0x55ceff);if(!_0x233b86||!this[_0x1159('0x49')][_0x1159('0x40')](_0x233b86))return;const _0x280740=this[_0x1159('0x49')][_0x1159('0x22')](_0x233b86)[_0x1159('0x38')],_0x1d9be=function(){const _0x1d7aa0=_0x445565[_0x1159('0x3')];return[_0x1d7aa0[_0x1159('0x11')],_0x1d7aa0[_0x1159('0x4b')],_0x1d7aa0[_0x1159('0x37')],_0x1d7aa0['northArrowSouth'],_0x1d7aa0[_0x1159('0x33')],_0x1d7aa0[_0x1159('0xf')]];}();this[_0x1159('0x46')][_0x1159('0x43')]({'target':_0x280740,'positions':_0x1d9be});}[_0x1159('0x15')](){const _0x375987=this[_0x1159('0x46')],_0x59c1f1=_0x375987[_0x1159('0x12')]['first'];_0x59c1f1&&(this['_detachListeners'](_0x59c1f1),_0x375987[_0x1159('0x52')](),_0x375987[_0x1159('0x12')][_0x1159('0x10')]());}[_0x1159('0x56')](_0x1aa958){this['listenTo'](_0x1aa958,'change:height',()=>this[_0x1159('0x32')]()),this[_0x1159('0x2d')](_0x1aa958,_0x1159('0x48'),(_0x32fc38,_0x5b3825)=>{this['_manuallyClosedAnnotationViews'][_0x1159('0x9')](_0x1aa958),this[_0x1159('0x15')](),_0x5b3825();});}[_0x1159('0x35')](_0x2b7547){this[_0x1159('0x2b')](_0x2b7547);}}
23
+ const _0xf1a5=['isVisible','_attachListeners','removeEventListener','first','hasDomSelection','remove','type','number','pin','contains','bodyCollection','clear','focus','getSidebarItemView','_showBalloon','locale','narrowSidebar','_refreshPositioning','from','context','plugins','delete','NarrowSidebar','ck-sidebar--narrow','refresh','view','activeAnnotation','narrowsidebar-detach-not-attached','low','add','attach','element','mousedown','getOrderedSelectedAnnotations','defaultPositions','register','_domEmitter','init','pluginName','annotations','change:height','set','attachToDom','_destroyEditorAnnotationsIntegration','isAttached','detachFromDom','keyCode','bind','_integrateWithEditorAnnotations','balloonPanelView','values','_hideBalloon','uiUpdate','isDirty','includes','_refreshPositioningDebounced','execute','southArrowNorth','listenTo','set:container','blur','_selectedAnnotations','has','getByView','editors','high','EditorAnnotations','addEventListener','ready','_detachListeners','requires','_updateBalloonPosition','length','_manuallyClosedAnnotationViews','_annotationToNarrowView','stopListening','setActiveAnnotation','destroy','detach','northArrowSouthWest','stopPropagation','southArrowNorthWest','_editorAnnotations','get','content','preventClosingBalloon','stop','_setSelectedAnnotations','cancel','addAnnotation','_detachFromContainer'];(function(_0x4d6ab8,_0xf1a514){const _0x3346f2=function(_0x346c51){while(--_0x346c51){_0x4d6ab8['push'](_0x4d6ab8['shift']());}};_0x3346f2(++_0xf1a514);}(_0xf1a5,0x1a9));const _0x3346=function(_0x4d6ab8,_0xf1a514){_0x4d6ab8=_0x4d6ab8-0x0;let _0x3346f2=_0xf1a5[_0x4d6ab8];return _0x3346f2;};import{ContextPlugin as _0x51169e,Context as _0x5eb9f2}from'ckeditor5/src/core';import _0x3b4002 from'./annotationsuis';import _0x13221d from'./sidebar';import _0x468537 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5f4f46,BodyCollection as _0xaef4b7}from'ckeditor5/src/ui';import{CKEditorError as _0x5dea2b,DomEmitterMixin as _0x28608b,keyCodes as _0xa79bef,Collection as _0x320e86}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x561547}from'lodash-es';import _0x3a17d2 from'./editorannotations';export default class s extends _0x51169e{static get[_0x3346('0x9')](){return[_0x13221d,_0x3b4002];}static get[_0x3346('0x44')](){return _0x3346('0x34');}constructor(_0x447f7f){super(_0x447f7f),this[_0x3346('0x4a')]=!0x1,this[_0x3346('0xc')]=new Set(),this[_0x3346('0x42')]=Object['create'](_0x28608b),this[_0x3346('0xd')]=new Map(),this[_0x3346('0x47')]('activeAnnotation',null),this[_0x3346('0x45')]=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x320e86(),this[_0x3346('0x55')]=_0x561547(()=>{this[_0x3346('0x2f')]();},0xfa,{'leading':!0x1});}[_0x3346('0x43')](){this[_0x3346('0x31')][_0x3346('0x32')]['get'](_0x3b4002)[_0x3346('0x41')](_0x3346('0x2e'),this),this[_0x3346('0x28')]=new _0xaef4b7(this['context'][_0x3346('0x2d')]),this['balloonPanelView']=new _0x5f4f46(this[_0x3346('0x31')][_0x3346('0x2d')]),this[_0x3346('0x28')][_0x3346('0x48')](),this[_0x3346('0x28')][_0x3346('0x3b')](this['balloonPanelView']);}[_0x3346('0x3c')](_0x27cfcd){this[_0x3346('0x45')]=_0x27cfcd;const _0x11f09f=this[_0x3346('0x31')][_0x3346('0x32')][_0x3346('0x16')](_0x13221d),_0x5eb279=this[_0x3346('0x4f')];if(_0x11f09f['_annotations']=_0x27cfcd,this['isAttached'])throw new _0x5dea2b('narrowsidebar-attach-already-attached',this);this[_0x3346('0x4a')]=!0x0,this[_0x3346('0x58')](_0x11f09f,_0x3346('0x59'),()=>{this[_0x3346('0x11')](),this[_0x3346('0x58')](_0x11f09f,'change:container',_0x5a6ccb=>{_0x5a6ccb['off'](),this[_0x3346('0x3c')](_0x27cfcd);});}),_0x11f09f['_attachToContainer']({'viewClass':_0x3346('0x35'),'spaceBetweenItems':0x5});const _0x5ec1e7=_0x274204=>{const _0x599fb9=new _0x468537(this[_0x3346('0x31')][_0x3346('0x2d')]);_0x11f09f[_0x3346('0x1c')](_0x274204,_0x599fb9),this['_annotationToNarrowView']['set'](_0x274204,_0x599fb9),_0x599fb9[_0x3346('0x4d')](_0x3346('0x53'),'annotationType',_0x3346('0x25'))['to'](_0x274204[_0x3346('0x37')],_0x3346('0x53'),_0x3346('0x24'),_0x3346('0xb')),_0x599fb9['on'](_0x3346('0x56'),()=>{this[_0x3346('0xc')][_0x3346('0x29')](),_0x5eb279[_0x3346('0x17')]['first']!==_0x274204['view']?(this[_0x3346('0x2c')](_0x274204),_0x274204['view'][_0x3346('0x3d')][_0x3346('0x2a')](),this[_0x3346('0xf')](_0x274204)):this[_0x3346('0xf')](null);});};for(const _0x565ea7 of _0x27cfcd)_0x5ec1e7(_0x565ea7);this['listenTo'](_0x27cfcd,_0x3346('0x3b'),(_0x37ebeb,_0x3e1b39)=>{_0x5ec1e7(_0x3e1b39);}),this['listenTo'](_0x27cfcd,'remove',(_0x2b23b8,_0x53a475,_0x54a3e9)=>{this[_0x3346('0xd')][_0x3346('0x16')](_0x53a475)[_0x3346('0x10')](),this['_annotationToNarrowView'][_0x3346('0x33')](_0x53a475),_0x11f09f['rearrange']({'removedAnnotation':_0x53a475,'previousAnnotation':_0x27cfcd[_0x3346('0x16')](_0x54a3e9-0x1),'nextAnnotation':_0x27cfcd[_0x3346('0x16')](_0x54a3e9+0x1)}),_0x53a475===this['activeAnnotation']&&this[_0x3346('0xf')](null);},{'priority':_0x3346('0x3a')}),this[_0x3346('0x58')](_0x27cfcd,_0x3346('0x2a'),(_0x51a874,_0x94fb53)=>{this['setActiveAnnotation'](_0x94fb53);}),this[_0x3346('0x58')](_0x27cfcd,_0x3346('0x5a'),()=>{this[_0x3346('0xf')](null);}),this[_0x3346('0x42')][_0x3346('0x58')](document,'keydown',(_0x40a3cd,_0x1c31d5)=>{_0x1c31d5[_0x3346('0x4c')]===_0xa79bef['esc']&&_0x5eb279[_0x3346('0x1e')]&&(this[_0x3346('0xc')][_0x3346('0x3b')](_0x5eb279['content'][_0x3346('0x21')]),this[_0x3346('0x51')](),_0x1c31d5[_0x3346('0x13')](),_0x1c31d5['preventDefault']());}),this[_0x3346('0x42')]['listenTo'](document,'mousedown',(_0xea4234,_0xb75954)=>{const _0x158373=_0xb75954['target'];_0x5eb279[_0x3346('0x1e')]&&_0x5eb279[_0x3346('0x3d')][_0x3346('0x27')](_0x158373)||_0x11f09f[_0x3346('0x37')][_0x3346('0x3d')][_0x3346('0x27')](_0x158373)||_0xea4234[_0x3346('0x18')]||(this['_manuallyClosedAnnotationViews'][_0x3346('0x29')](),this[_0x3346('0x51')](),this['setActiveAnnotation'](null));});const _0x566047=this[_0x3346('0x31')]instanceof _0x5eb9f2?this[_0x3346('0x31')][_0x3346('0x3')]:new _0x320e86([this[_0x3346('0x31')]]);for(const _0x40c36b of _0x566047)this['_integrateWithEditorAnnotations'](_0x40c36b);this[_0x3346('0x58')](_0x566047,_0x3346('0x3b'),(_0x50a555,_0x5cc3f7)=>{this['listenTo'](_0x5cc3f7,_0x3346('0x7'),()=>{this[_0x3346('0x4e')](_0x5cc3f7);});}),this[_0x3346('0x58')](_0x566047,_0x3346('0x23'),(_0x34c4e3,_0x339e28)=>{_0x339e28[_0x3346('0x32')][_0x3346('0x1')]('EditorAnnotations')&&this[_0x3346('0x49')](_0x339e28[_0x3346('0x32')][_0x3346('0x16')](_0x3346('0x5')));}),window[_0x3346('0x6')]('resize',this[_0x3346('0x55')]),this[_0x3346('0x2f')]();}[_0x3346('0xf')](_0x58aaf3){if(_0x58aaf3===this[_0x3346('0x38')])return;const _0x362ecf=this[_0x3346('0x31')][_0x3346('0x32')][_0x3346('0x16')](_0x13221d);if(_0x362ecf[_0x3346('0x36')]({'blurredAnnotation':this[_0x3346('0x38')],'activatedAnnotation':_0x58aaf3,'disableAnimationOnActivatedAnnotation':!0x0}),_0x58aaf3)_0x362ecf[_0x3346('0x2b')](_0x58aaf3)?this[_0x3346('0x2c')](_0x58aaf3):this[_0x3346('0x51')]();else this[_0x3346('0x51')]();this[_0x3346('0x38')]=_0x58aaf3;}[_0x3346('0x11')](){if(!this[_0x3346('0x4a')])throw new _0x5dea2b(_0x3346('0x39'),this);this[_0x3346('0xf')](null);const _0x5219ec=this[_0x3346('0x31')]['plugins'][_0x3346('0x16')](_0x13221d);this[_0x3346('0x51')](),Array[_0x3346('0x30')](this[_0x3346('0xd')][_0x3346('0x50')](),_0x130021=>_0x130021[_0x3346('0x10')]()),this[_0x3346('0xd')][_0x3346('0x29')](),_0x5219ec[_0x3346('0x1d')](this[_0x3346('0x45')]),this['stopListening'](),this[_0x3346('0x42')][_0x3346('0xe')](),this[_0x3346('0x31')]instanceof _0x5eb9f2&&this[_0x3346('0xe')](this[_0x3346('0x31')]['editors']);for(const _0x19cdba of Array[_0x3346('0x30')](this[_0x3346('0x15')]))this['_destroyEditorAnnotationsIntegration'](_0x19cdba);window[_0x3346('0x20')]('resize',this[_0x3346('0x55')]),this[_0x3346('0x55')][_0x3346('0x1b')](),this[_0x3346('0x0')]=[],this[_0x3346('0x4a')]=!0x1,this['annotations']=null;}[_0x3346('0x10')](){this['isAttached']&&this[_0x3346('0x11')](),this[_0x3346('0x28')][_0x3346('0x4b')]();}[_0x3346('0x4e')](_0x3157c7){const _0x390853=_0x3157c7[_0x3346('0x32')][_0x3346('0x16')](_0x3a17d2),_0x3db0b7=this['context'][_0x3346('0x32')][_0x3346('0x16')](_0x13221d),_0x5a7f0a=this[_0x3346('0x45')],_0x577618=this[_0x3346('0x4f')],_0x41ee17=()=>{const _0x6e0a91=_0x390853[_0x3346('0x3f')]({'annotations':this[_0x3346('0x45')],'activeAnnotation':this[_0x3346('0x38')]});this[_0x3346('0x1a')](_0x6e0a91),this[_0x3346('0xf')](_0x6e0a91[0x0]||null);};this[_0x3346('0x58')](_0x390853,'refresh',_0x41ee17),this['listenTo'](_0x390853,_0x3346('0x5a'),(_0x17ff91,{isAnnotationTracked:_0x54f99b})=>{this['activeAnnotation']&&_0x54f99b(this[_0x3346('0x38')])&&(this[_0x3346('0x1a')]([]),this[_0x3346('0xf')](null));}),this['listenTo'](_0x390853,_0x3346('0x52'),()=>{this[_0x3346('0x55')]();}),this[_0x3346('0x58')](_0x5a7f0a,_0x3346('0x5a'),_0x1c031f=>{_0x390853[_0x3346('0x22')]()&&_0x1c031f[_0x3346('0x19')]();},{'priority':_0x3346('0x4')}),this[_0x3346('0x58')](this[_0x3346('0x42')],_0x3346('0x3e'),(_0x259217,_0xd435b7)=>{const _0xa6611e=_0xd435b7['target'];_0x577618[_0x3346('0x1e')]&&_0x577618[_0x3346('0x3d')][_0x3346('0x27')](_0xa6611e)||_0x3db0b7['view'][_0x3346('0x3d')][_0x3346('0x27')](_0xa6611e)||this[_0x3346('0x38')]&&_0x390853[_0x3346('0x22')]()&&(_0x41ee17(),_0x259217[_0x3346('0x18')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x3346('0x3b')](_0x390853);}[_0x3346('0x49')](_0x1afff0){_0x1afff0&&(this[_0x3346('0xe')](_0x1afff0),this[_0x3346('0x15')]['remove'](_0x1afff0));}[_0x3346('0x1a')](_0x2f8728){for(const _0x4df9e1 of this[_0x3346('0x0')])_0x2f8728[_0x3346('0x54')](_0x4df9e1)||this[_0x3346('0xc')][_0x3346('0x33')](_0x4df9e1['view']);this[_0x3346('0x0')]=_0x2f8728;}[_0x3346('0x2f')](){const _0x3c3ed3=this[_0x3346('0x4f')];this['annotations']['refreshPositioning'](),_0x3c3ed3['isVisible']&&this[_0x3346('0xa')]();}['_showBalloon'](_0x2d21e0){if(this['_manuallyClosedAnnotationViews'][_0x3346('0x1')](_0x2d21e0[_0x3346('0x37')]))return;const _0x4bbfba=this[_0x3346('0x4f')][_0x3346('0x17')]['first'];_0x4bbfba!==_0x2d21e0[_0x3346('0x37')]?(_0x4bbfba&&this[_0x3346('0x8')](_0x4bbfba),this[_0x3346('0x1f')](_0x2d21e0['view']),this[_0x3346('0x4f')][_0x3346('0x17')]['clear'](),this[_0x3346('0x4f')][_0x3346('0x17')]['add'](_0x2d21e0[_0x3346('0x37')]),this[_0x3346('0xa')]()):this[_0x3346('0xa')]();}['_updateBalloonPosition'](){const _0x2f1804=this['balloonPanelView'][_0x3346('0x17')][_0x3346('0x21')],_0x1e4b8a=_0x2f1804&&this[_0x3346('0x45')][_0x3346('0x2')](_0x2f1804);if(!_0x1e4b8a||!this[_0x3346('0xd')][_0x3346('0x1')](_0x1e4b8a))return;const _0x2a9cf4=this[_0x3346('0xd')][_0x3346('0x16')](_0x1e4b8a)[_0x3346('0x3d')],_0x44fa14=function(){const _0x2d6b82=_0x5f4f46[_0x3346('0x40')];return[_0x2d6b82['southArrowNorthEast'],_0x2d6b82['northArrowSouthEast'],_0x2d6b82[_0x3346('0x57')],_0x2d6b82['northArrowSouth'],_0x2d6b82[_0x3346('0x14')],_0x2d6b82[_0x3346('0x12')]];}();this[_0x3346('0x4f')][_0x3346('0x26')]({'target':_0x2a9cf4,'positions':_0x44fa14});}[_0x3346('0x51')](){const _0x55dfbc=this['balloonPanelView'],_0x14b797=_0x55dfbc[_0x3346('0x17')][_0x3346('0x21')];_0x14b797&&(this['_detachListeners'](_0x14b797),_0x55dfbc['unpin'](),_0x55dfbc[_0x3346('0x17')][_0x3346('0x29')]());}[_0x3346('0x1f')](_0x563ba9){this[_0x3346('0x58')](_0x563ba9,_0x3346('0x46'),()=>this['_updateBalloonPosition']()),this[_0x3346('0x58')](_0x563ba9,'Esc',(_0x5ac788,_0x33a122)=>{this['_manuallyClosedAnnotationViews'][_0x3346('0x3b')](_0x563ba9),this[_0x3346('0x51')](),_0x33a122();});}[_0x3346('0x8')](_0x5f16a2){this[_0x3346('0xe')](_0x5f16a2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23f9=['_getTargetTop','delete','_alignForTopChange','_alignAfterItem','_attachToContainer','appendChild','_targetTop','max','top','get','refresh','change:bottom','_getItemAfter','init','sidebar-setcontainer-invalid-element','_alignBeforeItem','content','destroy','getSidebarItemView','rearrange','unbind','_alignToTargetRect','minHeight','_lastItem','define','length','element','sidebar-attachtocontainer-missing-container','setContainer','bind','nodeType','isActive','view','listenTo','_activeAnnotation','_recalculate','sidebar.preventScrollOutOfView','_getMaxAvailableTop','remove','_updateLastItem','object','_destroySidebarItemView','change:targetRect','_spaceBetweenItems','_alignForBottomChange','Sidebar','_setItemTop','add','getIndex','context','set','container','change:_lastItem','addAnnotation','last','change:top','render','_detachFromContainer','updateHeight','_createSidebarView','_getItemBefore','stopListening','_sidebarItemViewToAnnotation','list','targetRect','_annotations','_annotationToSidebarItemView','target','_recalculateBuffer','bottom','locale','clear','isAnimationDisabled','config'];(function(_0x35e5b6,_0x23f9f7){const _0x102d30=function(_0x5cac3f){while(--_0x5cac3f){_0x35e5b6['push'](_0x35e5b6['shift']());}};_0x102d30(++_0x23f9f7);}(_0x23f9,0x146));const _0x102d=function(_0x35e5b6,_0x23f9f7){_0x35e5b6=_0x35e5b6-0x0;let _0x102d30=_0x23f9[_0x35e5b6];return _0x102d30;};import{ContextPlugin as _0x14445a}from'ckeditor5/src/core';import{Rect as _0x1b1f6f,CKEditorError as _0x5cf2db}from'ckeditor5/src/utils';import _0x240aa0 from'./view/sidebarview';import _0x5d4168 from'./view/sidebaritemview';export default class z extends _0x14445a{static get['pluginName'](){return _0x102d('0xf');}constructor(_0x5e0158){super(_0x5e0158),this[_0x102d('0x14')]('_lastItem',void 0x0),this[_0x102d('0x2')]=this[_0x102d('0x1d')](),this[_0x102d('0x14')]('container',null),this[_0x102d('0xd')]=0x19,this[_0x102d('0x20')]=new Map(),this[_0x102d('0x24')]=new Map(),this[_0x102d('0x13')][_0x102d('0x2b')][_0x102d('0x44')](_0x102d('0x6'),!0x1),this[_0x102d('0x23')]=null,this['_activeAnnotation']=null,this[_0x102d('0x26')]=[];}[_0x102d('0x39')](){const _0x139444=this[_0x102d('0x13')]['config']['get']('sidebar.container');_0x139444&&this[_0x102d('0x48')](_0x139444);}[_0x102d('0x48')](_0x34d6f4){if(!y(_0x34d6f4))throw new _0x5cf2db(_0x102d('0x3a'));this[_0x102d('0x15')]=_0x34d6f4;}[_0x102d('0x30')]({viewClass:_0x3dac17='',spaceBetweenItems:_0x26ccfc=0x19}={}){if(!y(this['container']))throw new _0x5cf2db(_0x102d('0x47'),this);this[_0x102d('0x15')][_0x102d('0x31')](this['view'][_0x102d('0x46')]),this[_0x102d('0x2')]['class']=_0x3dac17,this[_0x102d('0xd')]=_0x26ccfc;}[_0x102d('0x3f')]({removedAnnotation:_0x5e847d,previousAnnotation:_0x5e02b4,nextAnnotation:_0x55c417}){const _0xc117f=this['getSidebarItemView'](_0x5e847d);this['view'][_0x102d('0x21')][_0x102d('0x8')](_0xc117f),this[_0x102d('0xb')](_0x5e847d),_0x5e02b4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5e02b4)),_0x55c417&&this[_0x102d('0x41')](this['getSidebarItemView'](_0x55c417)),this['_updateLastItem']();}[_0x102d('0x36')]({blurredAnnotation:_0x41397e,activatedAnnotation:_0x56386a,disableAnimationOnActivatedAnnotation:_0x2d1666}){if(this[_0x102d('0x4')]=_0x56386a,_0x41397e){_0x41397e['isActive']=!0x1;const _0x5d0fe5=this[_0x102d('0x3e')](_0x41397e);_0x5d0fe5&&_0x2d1666&&(_0x5d0fe5[_0x102d('0x2a')]=!0x1);}if(_0x56386a){const _0x9b5666=this[_0x102d('0x3e')](_0x56386a);_0x9b5666&&(_0x56386a[_0x102d('0x1')]=!0x0,_0x2d1666&&(_0x9b5666['isAnimationDisabled']=!0x0,_0x9b5666[_0x102d('0x34')]+=0x1),this[_0x102d('0x41')](_0x9b5666));}}[_0x102d('0x1b')](_0x2b41e5){if(this['stopListening'](),this[_0x102d('0x2')][_0x102d('0x46')][_0x102d('0x8')](),_0x2b41e5)for(const _0x428825 of _0x2b41e5)this[_0x102d('0xb')](_0x428825);this[_0x102d('0x2')][_0x102d('0x21')][_0x102d('0x29')](),this[_0x102d('0x2')]['class']='',this['_lastItem']=null;}[_0x102d('0x17')](_0xb4d019,_0x4d73e2){_0x4d73e2||(_0x4d73e2=_0xb4d019[_0x102d('0x2')]);const _0x34f1c3=new _0x5d4168(this[_0x102d('0x13')][_0x102d('0x28')]);this[_0x102d('0x20')]['set'](_0x34f1c3,_0xb4d019),this[_0x102d('0x24')]['set'](_0xb4d019,_0x34f1c3),_0x34f1c3[_0x102d('0x3c')][_0x102d('0x11')](_0x4d73e2),this[_0x102d('0x3')](_0xb4d019[_0x102d('0x2')],_0x102d('0xc'),(_0xf01d3c,_0x17667e,_0x25b043)=>{const _0x3b8e9a=this[_0x102d('0x2c')](_0xb4d019,_0x25b043);_0x34f1c3[_0x102d('0x32')]!=_0x3b8e9a&&(_0x34f1c3[_0x102d('0x32')]=_0x3b8e9a,this[_0x102d('0x10')](_0x34f1c3,_0x3b8e9a));}),this[_0x102d('0x3')](_0x34f1c3,_0x102d('0x19'),()=>{this[_0x102d('0x5')](_0x34f1c3,_0x102d('0x34'));}),this[_0x102d('0x3')](_0x34f1c3,_0x102d('0x37'),()=>{this['_recalculate'](_0x34f1c3,'bottom');}),this['_alignToTargetRect'](_0x34f1c3);const _0x346eb5=this[_0x102d('0x1e')](_0x34f1c3);if(_0x346eb5)this[_0x102d('0x2f')](_0x346eb5,_0x34f1c3)||this[_0x102d('0x41')](_0x34f1c3);else this[_0x102d('0x41')](_0x34f1c3);return this[_0x102d('0x9')](),this[_0x102d('0x2')][_0x102d('0x21')][_0x102d('0x11')](_0x34f1c3),_0x34f1c3;}['_alignForTopChange'](_0x432592){if(!_0x432592[_0x102d('0x3c')][_0x102d('0x45')])return;const _0x33e410=this[_0x102d('0x1e')](_0x432592);if(!_0x33e410)return;const _0x304884=this[_0x102d('0x20')]['get'](_0x33e410),_0x275f7f=this[_0x102d('0x4')];_0x275f7f&&_0x275f7f===_0x304884?this['_alignAfterItem'](_0x33e410,_0x432592):this[_0x102d('0x3b')](_0x432592,_0x33e410);}[_0x102d('0xe')](_0x18c74a){if(!_0x18c74a[_0x102d('0x3c')][_0x102d('0x45')])return;const _0x2b1384=this[_0x102d('0x38')](_0x18c74a);if(!_0x2b1384)return;const _0x7f0c03=this[_0x102d('0x20')][_0x102d('0x35')](_0x2b1384),_0x1812ea=this[_0x102d('0x13')][_0x102d('0x2b')]['get'](_0x102d('0x6')),_0x534886=this[_0x102d('0x4')];_0x534886&&_0x534886===_0x7f0c03&&_0x1812ea?(this[_0x102d('0x3b')](_0x2b1384,_0x18c74a),this[_0x102d('0x2f')](_0x18c74a,_0x2b1384)):_0x534886&&_0x534886===_0x7f0c03?this['_alignBeforeItem'](_0x2b1384,_0x18c74a):this[_0x102d('0x2f')](_0x18c74a,_0x2b1384);}[_0x102d('0x5')](_0x3b6a7a,_0x3f34de){0x0===this[_0x102d('0x26')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5660aa,changedProp:_0x35b2d5}of this[_0x102d('0x26')])_0x102d('0x34')===_0x35b2d5?this[_0x102d('0x2e')](_0x5660aa):this[_0x102d('0xe')](_0x5660aa);this['_recalculateBuffer']=[];},0xa),this[_0x102d('0x26')]['push']({'sidebarItemView':_0x3b6a7a,'changedProp':_0x3f34de});}[_0x102d('0x3e')](_0x5446f4){return this['_annotationToSidebarItemView']['get'](_0x5446f4);}[_0x102d('0x3d')](){this[_0x102d('0x2')][_0x102d('0x3d')]();}[_0x102d('0xb')](_0x47b04b){const _0x5c33df=this[_0x102d('0x3e')](_0x47b04b);this[_0x102d('0x1f')](_0x5c33df),this[_0x102d('0x1f')](_0x47b04b[_0x102d('0x2')]),_0x5c33df[_0x102d('0x3d')](),this['_annotationToSidebarItemView']['delete'](_0x47b04b),this[_0x102d('0x20')][_0x102d('0x2d')](_0x5c33df);}['_createSidebarView'](){const _0x5be744=new _0x240aa0(this[_0x102d('0x13')][_0x102d('0x28')]);return _0x5be744[_0x102d('0x1a')](),this['on'](_0x102d('0x16'),(_0x12c3bf,_0x3aaaf0,_0x5d00bb,_0x458b45)=>{_0x458b45&&_0x5be744[_0x102d('0x40')]('minHeight'),_0x5d00bb?_0x5be744[_0x102d('0x49')]('minHeight')['to'](_0x5d00bb,'bottom'):_0x5be744[_0x102d('0x42')]=null;}),_0x5be744;}[_0x102d('0x9')](){var _0x229810;this[_0x102d('0x43')]=(null===(_0x229810=this[_0x102d('0x23')])||void 0x0===_0x229810?void 0x0:_0x229810[_0x102d('0x18')])?this['getSidebarItemView'](this['_annotations'][_0x102d('0x18')]):null;}[_0x102d('0x1e')](_0x2454e3){var _0x2407d2;const _0xb6aa0=this[_0x102d('0x20')]['get'](_0x2454e3),_0x221f50=_0xb6aa0&&(null===(_0x2407d2=this[_0x102d('0x23')])||void 0x0===_0x2407d2?void 0x0:_0x2407d2['get'](this[_0x102d('0x23')][_0x102d('0x12')](_0xb6aa0)-0x1));return _0x221f50&&this[_0x102d('0x3e')](_0x221f50)||null;}['_getItemAfter'](_0xd939e5){var _0x221341;const _0x305337=this[_0x102d('0x20')]['get'](_0xd939e5),_0x1c55d3=_0x305337&&(null===(_0x221341=this[_0x102d('0x23')])||void 0x0===_0x221341?void 0x0:_0x221341['get'](this[_0x102d('0x23')]['getIndex'](_0x305337)+0x1));return _0x1c55d3&&this[_0x102d('0x3e')](_0x1c55d3)||null;}['_alignBeforeItem'](_0x4be619,_0x2b89c2){_0x4be619['updateHeight']();const _0x314b75=H(_0x2b89c2[_0x102d('0x27')]+this[_0x102d('0xd')],_0x4be619[_0x102d('0x34')]);return!!_0x314b75&&(this[_0x102d('0x10')](_0x2b89c2,_0x2b89c2[_0x102d('0x34')]-_0x314b75),!0x0);}['_alignAfterItem'](_0x3f9fb9,_0x3de95e){_0x3f9fb9['updateHeight']();const _0x5438d0=H(_0x3f9fb9[_0x102d('0x27')]+this['_spaceBetweenItems'],_0x3de95e['top']);return!!_0x5438d0&&(this['_setItemTop'](_0x3de95e,_0x3de95e[_0x102d('0x34')]+_0x5438d0,!0x1),!0x0);}[_0x102d('0x41')](_0x567ca0){const _0x4346a6=this[_0x102d('0x20')][_0x102d('0x35')](_0x567ca0);if(!_0x4346a6||!_0x4346a6['target']||!_0x4346a6[_0x102d('0x22')])return;const _0x469431=this[_0x102d('0x2c')](_0x4346a6,_0x4346a6[_0x102d('0x22')]);this['_setItemTop'](_0x567ca0,_0x469431);}[_0x102d('0x2c')](_0x1416a8,_0xccdf3a){if(null===_0xccdf3a)return 0x0;if(_0x1416a8[_0x102d('0x25')]instanceof _0x1b1f6f)return _0xccdf3a[_0x102d('0x34')];{const _0x344bc1=new _0x1b1f6f(this[_0x102d('0x2')]['element'])[_0x102d('0x34')];return _0xccdf3a[_0x102d('0x34')]-_0x344bc1;}}[_0x102d('0x10')](_0xc5c6fb,_0xd3c72b,_0x4f0fbb=this[_0x102d('0x13')][_0x102d('0x2b')][_0x102d('0x35')]('sidebar.preventScrollOutOfView')){_0x4f0fbb&&(_0xd3c72b=Math[_0x102d('0x33')](_0xd3c72b,this[_0x102d('0x7')](_0xc5c6fb))),_0xc5c6fb['top']=_0xd3c72b;}[_0x102d('0x7')](_0x48fa40){let _0x109045=this[_0x102d('0x1e')](_0x48fa40),_0x2e3ece=0x0;for(;_0x109045;)_0x109045[_0x102d('0x1c')](),_0x2e3ece+=this[_0x102d('0xd')]+_0x109045['height'],_0x109045=this[_0x102d('0x1e')](_0x109045);return _0x2e3ece;}}function H(_0x3a08cf,_0x30f202){return Math[_0x102d('0x33')](_0x3a08cf-_0x30f202,0x0);}function y(_0x5e126d){return null!==_0x5e126d&&_0x102d('0xa')==typeof _0x5e126d&&0x1===_0x5e126d[_0x102d('0x0')];}
23
+ const _0xbd5d=['delete','_getTargetTop','stopListening','locale','isActive','_alignBeforeItem','_alignForBottomChange','last','content','getIndex','_alignToTargetRect','nodeType','clear','setContainer','unbind','_annotationToSidebarItemView','Sidebar','config','get','length','define','sidebar-setcontainer-invalid-element','remove','_setItemTop','change:bottom','change:targetRect','_recalculate','object','top','listenTo','_alignAfterItem','render','_spaceBetweenItems','_alignForTopChange','view','minHeight','pluginName','destroy','_createSidebarView','_getItemAfter','class','bottom','refresh','sidebar.preventScrollOutOfView','max','_targetTop','_annotations','_recalculateBuffer','_updateLastItem','_destroySidebarItemView','_detachFromContainer','context','getSidebarItemView','add','_getItemBefore','updateHeight','isAnimationDisabled','_sidebarItemViewToAnnotation','_lastItem','list','target','set','push','change:_lastItem','element','_attachToContainer','container','targetRect','_activeAnnotation'];(function(_0x4a9325,_0xbd5d8){const _0x14d88b=function(_0x54d536){while(--_0x54d536){_0x4a9325['push'](_0x4a9325['shift']());}};_0x14d88b(++_0xbd5d8);}(_0xbd5d,0x19d));const _0x14d8=function(_0x4a9325,_0xbd5d8){_0x4a9325=_0x4a9325-0x0;let _0x14d88b=_0xbd5d[_0x4a9325];return _0x14d88b;};import{ContextPlugin as _0xef7107}from'ckeditor5/src/core';import{Rect as _0x30d9b3,CKEditorError as _0xca2795}from'ckeditor5/src/utils';import _0x4a422e from'./view/sidebarview';import _0x1db480 from'./view/sidebaritemview';export default class z extends _0xef7107{static get[_0x14d8('0x25')](){return _0x14d8('0x11');}constructor(_0xe5be3d){super(_0xe5be3d),this[_0x14d8('0x3e')]('_lastItem',void 0x0),this['view']=this[_0x14d8('0x27')](),this[_0x14d8('0x3e')]('container',null),this[_0x14d8('0x21')]=0x19,this[_0x14d8('0x3a')]=new Map(),this[_0x14d8('0x10')]=new Map(),this['context'][_0x14d8('0x12')][_0x14d8('0x15')](_0x14d8('0x2c'),!0x1),this[_0x14d8('0x2f')]=null,this['_activeAnnotation']=null,this[_0x14d8('0x30')]=[];}['init'](){const _0x2fd00d=this[_0x14d8('0x34')][_0x14d8('0x12')][_0x14d8('0x13')]('sidebar.container');_0x2fd00d&&this[_0x14d8('0xe')](_0x2fd00d);}[_0x14d8('0xe')](_0x4d36dd){if(!y(_0x4d36dd))throw new _0xca2795(_0x14d8('0x16'));this[_0x14d8('0x43')]=_0x4d36dd;}[_0x14d8('0x42')]({viewClass:_0x447006='',spaceBetweenItems:_0x2ba89e=0x19}={}){if(!y(this[_0x14d8('0x43')]))throw new _0xca2795('sidebar-attachtocontainer-missing-container',this);this[_0x14d8('0x43')]['appendChild'](this[_0x14d8('0x23')][_0x14d8('0x41')]),this[_0x14d8('0x23')]['class']=_0x447006,this[_0x14d8('0x21')]=_0x2ba89e;}['rearrange']({removedAnnotation:_0x412676,previousAnnotation:_0x50e618,nextAnnotation:_0x1638b6}){const _0x34a101=this[_0x14d8('0x35')](_0x412676);this[_0x14d8('0x23')]['list'][_0x14d8('0x17')](_0x34a101),this[_0x14d8('0x32')](_0x412676),_0x50e618&&this[_0x14d8('0xb')](this[_0x14d8('0x35')](_0x50e618)),_0x1638b6&&this[_0x14d8('0xb')](this[_0x14d8('0x35')](_0x1638b6)),this[_0x14d8('0x31')]();}[_0x14d8('0x2b')]({blurredAnnotation:_0x570d68,activatedAnnotation:_0x43a822,disableAnimationOnActivatedAnnotation:_0x59a75c}){if(this[_0x14d8('0x0')]=_0x43a822,_0x570d68){_0x570d68['isActive']=!0x1;const _0x190622=this['getSidebarItemView'](_0x570d68);_0x190622&&_0x59a75c&&(_0x190622['isAnimationDisabled']=!0x1);}if(_0x43a822){const _0x576e3c=this[_0x14d8('0x35')](_0x43a822);_0x576e3c&&(_0x43a822[_0x14d8('0x5')]=!0x0,_0x59a75c&&(_0x576e3c[_0x14d8('0x39')]=!0x0,_0x576e3c[_0x14d8('0x1d')]+=0x1),this['_alignToTargetRect'](_0x576e3c));}}[_0x14d8('0x33')](_0x3f9a16){if(this['stopListening'](),this['view'][_0x14d8('0x41')][_0x14d8('0x17')](),_0x3f9a16)for(const _0x15cc7a of _0x3f9a16)this[_0x14d8('0x32')](_0x15cc7a);this['view']['list'][_0x14d8('0xd')](),this[_0x14d8('0x23')][_0x14d8('0x29')]='',this[_0x14d8('0x3b')]=null;}['addAnnotation'](_0x56a015,_0xf4e334){_0xf4e334||(_0xf4e334=_0x56a015[_0x14d8('0x23')]);const _0x459661=new _0x1db480(this[_0x14d8('0x34')]['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x459661,_0x56a015),this[_0x14d8('0x10')][_0x14d8('0x3e')](_0x56a015,_0x459661),_0x459661['content']['add'](_0xf4e334),this[_0x14d8('0x1e')](_0x56a015['view'],_0x14d8('0x1a'),(_0x8364bd,_0x4f6e0d,_0x10eb5b)=>{const _0x45b755=this[_0x14d8('0x2')](_0x56a015,_0x10eb5b);_0x459661[_0x14d8('0x2e')]!=_0x45b755&&(_0x459661[_0x14d8('0x2e')]=_0x45b755,this[_0x14d8('0x18')](_0x459661,_0x45b755));}),this[_0x14d8('0x1e')](_0x459661,'change:top',()=>{this[_0x14d8('0x1b')](_0x459661,_0x14d8('0x1d'));}),this[_0x14d8('0x1e')](_0x459661,_0x14d8('0x19'),()=>{this[_0x14d8('0x1b')](_0x459661,_0x14d8('0x2a'));}),this[_0x14d8('0xb')](_0x459661);const _0x447642=this[_0x14d8('0x37')](_0x459661);if(_0x447642)this[_0x14d8('0x1f')](_0x447642,_0x459661)||this['_alignToTargetRect'](_0x459661);else this[_0x14d8('0xb')](_0x459661);return this[_0x14d8('0x31')](),this[_0x14d8('0x23')][_0x14d8('0x3c')][_0x14d8('0x36')](_0x459661),_0x459661;}[_0x14d8('0x22')](_0x1877d5){if(!_0x1877d5[_0x14d8('0x9')][_0x14d8('0x14')])return;const _0x574c75=this[_0x14d8('0x37')](_0x1877d5);if(!_0x574c75)return;const _0xcb8a97=this[_0x14d8('0x3a')][_0x14d8('0x13')](_0x574c75),_0x12e153=this['_activeAnnotation'];_0x12e153&&_0x12e153===_0xcb8a97?this[_0x14d8('0x1f')](_0x574c75,_0x1877d5):this[_0x14d8('0x6')](_0x1877d5,_0x574c75);}[_0x14d8('0x7')](_0x2c500b){if(!_0x2c500b['content'][_0x14d8('0x14')])return;const _0x1f5de9=this[_0x14d8('0x28')](_0x2c500b);if(!_0x1f5de9)return;const _0x3a5455=this['_sidebarItemViewToAnnotation'][_0x14d8('0x13')](_0x1f5de9),_0x14724d=this[_0x14d8('0x34')][_0x14d8('0x12')][_0x14d8('0x13')](_0x14d8('0x2c')),_0x439104=this[_0x14d8('0x0')];_0x439104&&_0x439104===_0x3a5455&&_0x14724d?(this['_alignBeforeItem'](_0x1f5de9,_0x2c500b),this[_0x14d8('0x1f')](_0x2c500b,_0x1f5de9)):_0x439104&&_0x439104===_0x3a5455?this[_0x14d8('0x6')](_0x1f5de9,_0x2c500b):this[_0x14d8('0x1f')](_0x2c500b,_0x1f5de9);}[_0x14d8('0x1b')](_0x5c4fdb,_0x2a5b03){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5b8a14,changedProp:_0x1dfcf1}of this[_0x14d8('0x30')])_0x14d8('0x1d')===_0x1dfcf1?this[_0x14d8('0x22')](_0x5b8a14):this[_0x14d8('0x7')](_0x5b8a14);this[_0x14d8('0x30')]=[];},0xa),this['_recalculateBuffer'][_0x14d8('0x3f')]({'sidebarItemView':_0x5c4fdb,'changedProp':_0x2a5b03});}['getSidebarItemView'](_0x580f38){return this[_0x14d8('0x10')][_0x14d8('0x13')](_0x580f38);}[_0x14d8('0x26')](){this['view'][_0x14d8('0x26')]();}[_0x14d8('0x32')](_0x385b81){const _0x4048e6=this[_0x14d8('0x35')](_0x385b81);this[_0x14d8('0x3')](_0x4048e6),this[_0x14d8('0x3')](_0x385b81[_0x14d8('0x23')]),_0x4048e6['destroy'](),this['_annotationToSidebarItemView'][_0x14d8('0x1')](_0x385b81),this[_0x14d8('0x3a')][_0x14d8('0x1')](_0x4048e6);}[_0x14d8('0x27')](){const _0x201b3c=new _0x4a422e(this[_0x14d8('0x34')][_0x14d8('0x4')]);return _0x201b3c[_0x14d8('0x20')](),this['on'](_0x14d8('0x40'),(_0x34b593,_0x1a6445,_0x98b80e,_0x29a2e2)=>{_0x29a2e2&&_0x201b3c[_0x14d8('0xf')](_0x14d8('0x24')),_0x98b80e?_0x201b3c['bind']('minHeight')['to'](_0x98b80e,_0x14d8('0x2a')):_0x201b3c[_0x14d8('0x24')]=null;}),_0x201b3c;}[_0x14d8('0x31')](){var _0x516dec;this['_lastItem']=(null===(_0x516dec=this['_annotations'])||void 0x0===_0x516dec?void 0x0:_0x516dec['last'])?this['getSidebarItemView'](this[_0x14d8('0x2f')][_0x14d8('0x8')]):null;}[_0x14d8('0x37')](_0x806b7c){var _0x19db0d;const _0x197a15=this['_sidebarItemViewToAnnotation'][_0x14d8('0x13')](_0x806b7c),_0x582f31=_0x197a15&&(null===(_0x19db0d=this[_0x14d8('0x2f')])||void 0x0===_0x19db0d?void 0x0:_0x19db0d[_0x14d8('0x13')](this[_0x14d8('0x2f')]['getIndex'](_0x197a15)-0x1));return _0x582f31&&this[_0x14d8('0x35')](_0x582f31)||null;}[_0x14d8('0x28')](_0x30d1bf){var _0x13b31e;const _0xca86d1=this[_0x14d8('0x3a')][_0x14d8('0x13')](_0x30d1bf),_0x5799d1=_0xca86d1&&(null===(_0x13b31e=this[_0x14d8('0x2f')])||void 0x0===_0x13b31e?void 0x0:_0x13b31e['get'](this[_0x14d8('0x2f')][_0x14d8('0xa')](_0xca86d1)+0x1));return _0x5799d1&&this[_0x14d8('0x35')](_0x5799d1)||null;}[_0x14d8('0x6')](_0x3ae9fc,_0x545cbf){_0x3ae9fc[_0x14d8('0x38')]();const _0x5c83b3=H(_0x545cbf[_0x14d8('0x2a')]+this[_0x14d8('0x21')],_0x3ae9fc[_0x14d8('0x1d')]);return!!_0x5c83b3&&(this[_0x14d8('0x18')](_0x545cbf,_0x545cbf[_0x14d8('0x1d')]-_0x5c83b3),!0x0);}[_0x14d8('0x1f')](_0x2814bf,_0x1320be){_0x2814bf[_0x14d8('0x38')]();const _0x2a4515=H(_0x2814bf[_0x14d8('0x2a')]+this[_0x14d8('0x21')],_0x1320be[_0x14d8('0x1d')]);return!!_0x2a4515&&(this[_0x14d8('0x18')](_0x1320be,_0x1320be['top']+_0x2a4515,!0x1),!0x0);}[_0x14d8('0xb')](_0x409e24){const _0xe35952=this[_0x14d8('0x3a')][_0x14d8('0x13')](_0x409e24);if(!_0xe35952||!_0xe35952[_0x14d8('0x3d')]||!_0xe35952[_0x14d8('0x44')])return;const _0x4cb9f5=this[_0x14d8('0x2')](_0xe35952,_0xe35952[_0x14d8('0x44')]);this[_0x14d8('0x18')](_0x409e24,_0x4cb9f5);}[_0x14d8('0x2')](_0x15c49a,_0x3d7278){if(null===_0x3d7278)return 0x0;if(_0x15c49a['target']instanceof _0x30d9b3)return _0x3d7278[_0x14d8('0x1d')];{const _0xa8f39=new _0x30d9b3(this[_0x14d8('0x23')][_0x14d8('0x41')])['top'];return _0x3d7278[_0x14d8('0x1d')]-_0xa8f39;}}[_0x14d8('0x18')](_0x2e695d,_0x18f6b7,_0x198954=this[_0x14d8('0x34')][_0x14d8('0x12')]['get'](_0x14d8('0x2c'))){_0x198954&&(_0x18f6b7=Math[_0x14d8('0x2d')](_0x18f6b7,this['_getMaxAvailableTop'](_0x2e695d))),_0x2e695d[_0x14d8('0x1d')]=_0x18f6b7;}['_getMaxAvailableTop'](_0x15bb19){let _0x5145c9=this[_0x14d8('0x37')](_0x15bb19),_0x41aff7=0x0;for(;_0x5145c9;)_0x5145c9[_0x14d8('0x38')](),_0x41aff7+=this['_spaceBetweenItems']+_0x5145c9['height'],_0x5145c9=this[_0x14d8('0x37')](_0x5145c9);return _0x41aff7;}}function H(_0x658b14,_0x57338f){return Math['max'](_0x658b14-_0x57338f,0x0);}function y(_0x604390){return null!==_0x604390&&_0x14d8('0x1c')==typeof _0x604390&&0x1===_0x604390[_0x14d8('0xc')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2df1=['counterView','bind','span','set','add','ck-annotation-counter__badge--edit-mode','_badge','setTemplate','...','number','toString','isDirty','ck-annotation-counter__badge','annotationType','children'];(function(_0x4a37ae,_0x2df1bf){const _0x460c37=function(_0x56cf1f){while(--_0x56cf1f){_0x4a37ae['push'](_0x4a37ae['shift']());}};_0x460c37(++_0x2df1bf);}(_0x2df1,0x19c));const _0x460c=function(_0x4a37ae,_0x2df1bf){_0x4a37ae=_0x4a37ae-0x0;let _0x460c37=_0x2df1[_0x4a37ae];return _0x460c37;};import{ButtonView as _0x244a67,View as _0x3f56f5}from'ckeditor5/src/ui';import _0x1307b2 from'../../../theme/icons/add-comment.svg';export default class D extends _0x244a67{constructor(_0x24ea56){super(_0x24ea56);const _0x4a7e63=this['bindTemplate'];this[_0x460c('0xb')](_0x460c('0x4'),!0x1),this['set'](_0x460c('0x2'),0x0),this[_0x460c('0x9')](_0x460c('0xe'))['to'](this,_0x460c('0x4'),this,_0x460c('0x2'),(_0x1c72eb,_0x313e73)=>_0x1c72eb?_0x460c('0x1'):_0x313e73[_0x460c('0x3')]()),this['set'](_0x460c('0x6'),''),this['icon']=_0x1307b2,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x460c('0x8')]=new _0x3f56f5(),this['counterView'][_0x460c('0x0')]({'tag':_0x460c('0xa'),'attributes':{'class':[_0x460c('0x5'),_0x4a7e63['to']('annotationType',_0x2a95eb=>'ck-annotation-counter__badge--'+_0x2a95eb),_0x4a7e63['if'](_0x460c('0x4'),_0x460c('0xd'))]},'children':[{'text':_0x4a7e63['to'](_0x460c('0xe'))}]}),this[_0x460c('0x7')][_0x460c('0xc')](this['counterView']);}}
23
+ const _0x5f4c=['toString','counterView','span','icon','isDirty','_badge','ck-annotation-counter__badge','set','ck-annotation-counter__badge--','bindTemplate','add','ck-annotation-counter__badge--edit-mode','setTemplate','annotationType','extendTemplate'];(function(_0x23877a,_0x5f4c58){const _0x5641c8=function(_0x56b465){while(--_0x56b465){_0x23877a['push'](_0x23877a['shift']());}};_0x5641c8(++_0x5f4c58);}(_0x5f4c,0xf9));const _0x5641=function(_0x23877a,_0x5f4c58){_0x23877a=_0x23877a-0x0;let _0x5641c8=_0x5f4c[_0x23877a];return _0x5641c8;};import{ButtonView as _0x11b5a2,View as _0x3668e7}from'ckeditor5/src/ui';import _0x110ac7 from'../../../theme/icons/add-comment.svg';export default class D extends _0x11b5a2{constructor(_0x13e2d5){super(_0x13e2d5);const _0x5a024f=this[_0x5641('0x0')];this[_0x5641('0xd')](_0x5641('0xa'),!0x1),this['set']('number',0x0),this['bind'](_0x5641('0xb'))['to'](this,'isDirty',this,'number',(_0x7c034,_0x48f9e8)=>_0x7c034?'...':_0x48f9e8[_0x5641('0x6')]()),this[_0x5641('0xd')](_0x5641('0x4'),''),this[_0x5641('0x9')]=_0x110ac7,this[_0x5641('0x5')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x5641('0x7')]=new _0x3668e7(),this[_0x5641('0x7')][_0x5641('0x3')]({'tag':_0x5641('0x8'),'attributes':{'class':[_0x5641('0xc'),_0x5a024f['to'](_0x5641('0x4'),_0x412d3c=>_0x5641('0xe')+_0x412d3c),_0x5a024f['if'](_0x5641('0xa'),_0x5641('0x2'))]},'children':[{'text':_0x5a024f['to'](_0x5641('0xb'))}]}),this['children'][_0x5641('0x1')](this['counterView']);}}