@ckeditor/ckeditor5-comments 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20230710.1",
3
+ "version": "0.0.0-nightly-20230712.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20230710.1",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230710.1",
46
+ "ckeditor5": "0.0.0-nightly-20230712.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230712.0",
48
48
  "lodash-es": "^4.17.11"
49
49
  },
50
50
  "engines": {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39e8=['filter','isArray','remove','set','isActive','_target','isVisible','_assertCorrectTarget','_getNormalizedTarget','target','add','focusableElements','nodeType','targetRect','updateTargetRect','_type','clear','mainView','function','destroy','render','getClientRects','_id','length','offsetParent','item','focusTracker','view','stopListening','type'];(function(_0x5b8548,_0x39e8d4){const _0x80b109=function(_0x84b87d){while(--_0x84b87d){_0x5b8548['push'](_0x5b8548['shift']());}};_0x80b109(++_0x39e8d4);}(_0x39e8,0x1e4));const _0x80b1=function(_0x5b8548,_0x39e8d4){_0x5b8548=_0x5b8548-0x0;let _0x80b109=_0x39e8[_0x5b8548];return _0x80b109;};import{CKEditorError as _0x369f35,Rect as _0x4e62f2,Collection as _0x301461,ObservableMixin as _0x1209de}from'ckeditor5/src/utils';export default class d extends _0x1209de(){constructor({view:_0x55039a,target:_0x5414b3,type:_0x175bef,isVisible:_0x54ec6e=!0x0}){super(),this['view']=_0x55039a,this[_0x80b1('0x17')]['element']||this[_0x80b1('0x17')][_0x80b1('0x10')](),this['_type']=_0x175bef,this['_target']=_0x5414b3,d[_0x80b1('0x3')](this[_0x80b1('0x4')]()),this[_0x80b1('0x7')]=new _0x301461([this[_0x80b1('0x17')]['element']],{'idProperty':_0x80b1('0x12')}),this[_0x80b1('0x7')]['on'](_0x80b1('0x6'),(_0xa73abe,_0x4f8622)=>{this[_0x80b1('0x17')]['focusTracker'][_0x80b1('0x6')](_0x4f8622);}),this['focusableElements']['on'](_0x80b1('0x1c'),(_0x53f2b1,_0x5e91b1)=>{this[_0x80b1('0x17')][_0x80b1('0x16')][_0x80b1('0x1c')](_0x5e91b1);}),this[_0x80b1('0x1d')](_0x80b1('0x2'),_0x54ec6e);}get[_0x80b1('0x19')](){return _0x80b1('0xe')==typeof this[_0x80b1('0xb')]?this[_0x80b1('0xb')]():this[_0x80b1('0xb')];}get['innerView'](){return this[_0x80b1('0x17')]['mainView'];}get[_0x80b1('0x5')](){const _0x4d81ba=this[_0x80b1('0x4')]();return d['_assertCorrectTarget'](_0x4d81ba),_0x4d81ba;}get['targetRect'](){const _0x2d1853=this[_0x80b1('0x5')];if(null===_0x2d1853)return null;if(_0x2d1853 instanceof _0x4e62f2)return _0x2d1853;const _0x5c4136=_0x2d1853[_0x80b1('0x1a')](_0x56c3d5=>function(_0x596fe0){const _0x192560=_0x596fe0[_0x80b1('0x14')];if(_0x192560)return!0x0;const _0x5680b2=_0x596fe0[_0x80b1('0x11')]()[_0x80b1('0x15')](0x0);return!!_0x5680b2;}(_0x56c3d5));return 0x0===_0x5c4136[_0x80b1('0x13')]?null:new _0x4e62f2(_0x5c4136[0x0][_0x80b1('0x11')]()[_0x80b1('0x15')](0x0));}get['isActive'](){return this[_0x80b1('0x17')]['isActive'];}set[_0x80b1('0x0')](_0x200e00){this[_0x80b1('0x17')][_0x80b1('0x0')]=_0x200e00,this[_0x80b1('0x17')][_0x80b1('0xd')][_0x80b1('0x0')]=_0x200e00;}[_0x80b1('0xa')](){this[_0x80b1('0x17')][_0x80b1('0x9')]=this[_0x80b1('0x9')];}[_0x80b1('0xf')](){this['focusableElements']['stopListening'](),this[_0x80b1('0x7')][_0x80b1('0xc')](),this[_0x80b1('0x18')]();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static[_0x80b1('0x3')](_0x4bb03d){if(!(null===_0x4bb03d||_0x4bb03d instanceof _0x4e62f2||Array[_0x80b1('0x1b')](_0x4bb03d)&&_0x4bb03d['every'](_0x55ccfc=>y(_0x55ccfc))))throw new _0x369f35('annotation-invalid-target',null,{'target':_0x4bb03d});}[_0x80b1('0x4')](){const _0x154b8c=_0x80b1('0xe')==typeof this[_0x80b1('0x1')]?this[_0x80b1('0x1')]():this[_0x80b1('0x1')];return y(_0x154b8c)?[_0x154b8c]:_0x154b8c;}}function y(_0x13adfb){return null!==_0x13adfb&&'object'==typeof _0x13adfb&&_0x80b1('0x8')in _0x13adfb&&0x1===_0x13adfb['nodeType'];}
23
+ const _0x382b=['render','isVisible','stopListening','_assertCorrectTarget','remove','clear','target','updateTargetRect','every','isActive','length','_id','focusTracker','offsetParent','element','nodeType','focusableElements','mainView','_getNormalizedTarget','targetRect','refreshVisibility','_type','destroy','item','filter','type','view','getClientRects','set','add','_target','function'];(function(_0x5a0c1c,_0x382b99){const _0x14f98c=function(_0xb4d623){while(--_0xb4d623){_0x5a0c1c['push'](_0x5a0c1c['shift']());}};_0x14f98c(++_0x382b99);}(_0x382b,0x1de));const _0x14f9=function(_0x5a0c1c,_0x382b99){_0x5a0c1c=_0x5a0c1c-0x0;let _0x14f98c=_0x382b[_0x5a0c1c];return _0x14f98c;};import{CKEditorError as _0x506f6c,Rect as _0xd83a77,Collection as _0x1736f7,ObservableMixin as _0x1d62d9}from'ckeditor5/src/utils';export default class d extends _0x1d62d9(){constructor({view:_0x181457,target:_0x4dea7c,type:_0x14f1e2,isVisible:_0x5ab970=!0x0}){super(),this['view']=_0x181457,this[_0x14f9('0x1c')]['element']||this[_0x14f9('0x1c')][_0x14f9('0x2')](),this['_type']=_0x14f1e2,this['_target']=_0x4dea7c,d[_0x14f9('0x5')](this[_0x14f9('0x14')]()),this[_0x14f9('0x12')]=new _0x1736f7([this[_0x14f9('0x1c')][_0x14f9('0x10')]],{'idProperty':_0x14f9('0xd')}),this[_0x14f9('0x12')]['on'](_0x14f9('0x1f'),(_0x5b6350,_0x2dc663)=>{this[_0x14f9('0x1c')][_0x14f9('0xe')][_0x14f9('0x1f')](_0x2dc663);}),this[_0x14f9('0x12')]['on'](_0x14f9('0x6'),(_0x422d33,_0x2e6a56)=>{this['view']['focusTracker'][_0x14f9('0x6')](_0x2e6a56);}),this[_0x14f9('0x1e')](_0x14f9('0x3'),_0x5ab970);}get[_0x14f9('0x1b')](){return _0x14f9('0x1')==typeof this[_0x14f9('0x17')]?this[_0x14f9('0x17')]():this[_0x14f9('0x17')];}get['innerView'](){return this[_0x14f9('0x1c')]['mainView'];}get[_0x14f9('0x8')](){const _0x32c84c=this['_getNormalizedTarget']();return d[_0x14f9('0x5')](_0x32c84c),_0x32c84c;}get[_0x14f9('0x15')](){const _0x53dcd0=this[_0x14f9('0x8')];if(null===_0x53dcd0)return null;if(_0x53dcd0 instanceof _0xd83a77)return _0x53dcd0;const _0x265d55=_0x53dcd0[_0x14f9('0x1a')](_0x11fb5d=>function(_0x2a1b1d){const _0x393dce=_0x2a1b1d[_0x14f9('0xf')];if(_0x393dce)return!0x0;const _0x1d3226=_0x2a1b1d[_0x14f9('0x1d')]()[_0x14f9('0x19')](0x0);return!!_0x1d3226;}(_0x11fb5d));return 0x0===_0x265d55[_0x14f9('0xc')]?null:new _0xd83a77(_0x265d55[0x0]['getClientRects']()[_0x14f9('0x19')](0x0));}get[_0x14f9('0xb')](){return this[_0x14f9('0x1c')]['isActive'];}set[_0x14f9('0xb')](_0x12bb90){this['view'][_0x14f9('0xb')]=_0x12bb90,this[_0x14f9('0x1c')][_0x14f9('0x13')][_0x14f9('0xb')]=_0x12bb90;}[_0x14f9('0x9')](){this[_0x14f9('0x1c')][_0x14f9('0x15')]=this['targetRect'];}[_0x14f9('0x18')](){this[_0x14f9('0x12')][_0x14f9('0x4')](),this[_0x14f9('0x12')][_0x14f9('0x7')](),this[_0x14f9('0x4')]();}[_0x14f9('0x16')](){this[_0x14f9('0x3')]=!!this[_0x14f9('0x15')];}static['_assertCorrectTarget'](_0x68a9e){if(!(null===_0x68a9e||_0x68a9e instanceof _0xd83a77||Array['isArray'](_0x68a9e)&&_0x68a9e[_0x14f9('0xa')](_0xee4dcc=>y(_0xee4dcc))))throw new _0x506f6c('annotation-invalid-target',null,{'target':_0x68a9e});}['_getNormalizedTarget'](){const _0x57639f=_0x14f9('0x1')==typeof this[_0x14f9('0x0')]?this['_target']():this[_0x14f9('0x0')];return y(_0x57639f)?[_0x57639f]:_0x57639f;}}function y(_0x50f922){return null!==_0x50f922&&'object'==typeof _0x50f922&&_0x14f9('0x11')in _0x50f922&&0x1===_0x50f922['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c55=['isFocused','annotationcollection-not-existing-item','change:isFocused','top','add','_innerViewToAnnotation','from','remove','_getOrderInContent','_viewToAnnotation','focusableElements','blur','targetRect','stopListening','left','_sort','destroy','length','getByInnerView','focus','listenTo','clear','view','fire','_focusTracker','set','has','innerView','delete','updateTargetRect','get'];(function(_0xfd9d1c,_0x2c557d){const _0x415dcc=function(_0x442256){while(--_0x442256){_0xfd9d1c['push'](_0xfd9d1c['shift']());}};_0x415dcc(++_0x2c557d);}(_0x2c55,0xa6));const _0x415d=function(_0xfd9d1c,_0x2c557d){_0xfd9d1c=_0xfd9d1c-0x0;let _0x415dcc=_0x2c55[_0xfd9d1c];return _0x415dcc;};import{CKEditorError as _0x4aa8ed,Collection as _0xece3a4,FocusTracker as _0x2db2da}from'ckeditor5/src/utils';export default class x extends _0xece3a4{constructor(_0x146605=[]){super(),this[_0x415d('0x19')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x415d('0xd')]=new _0x2db2da(),this[_0x415d('0xd')]['on'](_0x415d('0x16'),(_0x2295e5,_0x2a62fd,_0x7c312a)=>{_0x7c312a||this[_0x415d('0xc')](_0x415d('0x0'));});for(const _0x10b642 of _0x146605)this[_0x415d('0x18')](_0x10b642);}get[_0x415d('0x14')](){return this[_0x415d('0xd')][_0x415d('0x14')];}[_0x415d('0x18')](_0x4ce674){if(this[_0x415d('0xf')](_0x4ce674))throw new _0x4aa8ed('annotationcollection-duplicated-item',null);this[_0x415d('0x19')][_0x415d('0xe')](_0x4ce674['innerView'],_0x4ce674),this['_viewToAnnotation'][_0x415d('0xe')](_0x4ce674['view'],_0x4ce674);for(const _0x217fc1 of _0x4ce674[_0x415d('0x1e')])this[_0x415d('0xd')][_0x415d('0x18')](_0x217fc1);this[_0x415d('0x9')](_0x4ce674['focusableElements'],'add',(_0x499e66,_0x20b697)=>{this[_0x415d('0xd')]['add'](_0x20b697);}),this[_0x415d('0x9')](_0x4ce674[_0x415d('0x1e')],_0x415d('0x1b'),(_0xbd920e,_0xf385f9)=>{this[_0x415d('0xd')][_0x415d('0x1b')](_0xf385f9);}),this[_0x415d('0x9')](_0x4ce674[_0x415d('0xb')]['focusTracker'],_0x415d('0x16'),(_0x265b2d,_0x2c7eb0,_0x3f5b31)=>{_0x3f5b31&&this[_0x415d('0xc')](_0x415d('0x8'),_0x4ce674);}),_0x4ce674[_0x415d('0x12')]();const _0x2f93a9=this[_0x415d('0x1c')](_0x4ce674[_0x415d('0xb')][_0x415d('0x1')]);return super[_0x415d('0x18')](_0x4ce674,_0x2f93a9);}[_0x415d('0x1b')](_0x222864){if(!this['has'](_0x222864))throw new _0x4aa8ed(_0x415d('0x15'),null);this[_0x415d('0x2')](_0x222864[_0x415d('0xb')]['focusTracker']),this[_0x415d('0x2')](_0x222864[_0x415d('0x1e')]);for(const _0x139feb of _0x222864['focusableElements'])this[_0x415d('0xd')][_0x415d('0x1b')](_0x139feb);return this[_0x415d('0x1d')][_0x415d('0x11')](_0x222864[_0x415d('0xb')]),this['_innerViewToAnnotation']['delete'](_0x222864[_0x415d('0x10')]),super[_0x415d('0x1b')](_0x222864);}[_0x415d('0x7')](_0x148c87){return this['_innerViewToAnnotation'][_0x415d('0x13')](_0x148c87);}['getByView'](_0x1516e0){return this['_viewToAnnotation']['get'](_0x1516e0);}['destroy'](){super[_0x415d('0xa')](),this[_0x415d('0x2')](),this[_0x415d('0x19')]['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker'][_0x415d('0x5')]();}['refreshPositioning'](){for(const _0x58e47c of this)_0x58e47c['updateTargetRect']();this[_0x415d('0x4')]();}[_0x415d('0x4')](){const _0x20aa0=Array[_0x415d('0x1a')](this)['sort']((_0x2067b5,_0x3ced29)=>v(_0x2067b5[_0x415d('0xb')][_0x415d('0x1')],_0x3ced29[_0x415d('0xb')][_0x415d('0x1')]));for(let _0x33a8f3=_0x20aa0[_0x415d('0x6')]-0x1;_0x33a8f3>0x0;_0x33a8f3--){const _0x245a52=_0x20aa0[_0x33a8f3];_0x33a8f3!==this['getIndex'](_0x245a52)&&(this[_0x415d('0x1b')](_0x245a52),this[_0x415d('0x18')](_0x245a52));}}[_0x415d('0x1c')](_0x5c1876){let _0x21f4b8=0x0;if(!_0x5c1876)return this[_0x415d('0x6')];for(const _0x53b4d5 of this){const _0x5cd298=_0x53b4d5[_0x415d('0xb')][_0x415d('0x1')];if(_0x5cd298){if(v(_0x5c1876,_0x5cd298)<0x0)return _0x21f4b8;_0x21f4b8++;}}return _0x21f4b8;}}export function bindAnnotationCollections({source:_0x3336ed,target:_0x1108ff,filter:_0x27928c}){for(const _0xf7692e of _0x3336ed)_0x27928c(_0xf7692e)&&_0x1108ff[_0x415d('0x18')](_0xf7692e);_0x1108ff[_0x415d('0x9')](_0x3336ed,_0x415d('0x18'),(_0x1a4878,_0x7a7a3c)=>{_0x27928c(_0x7a7a3c)&&_0x1108ff[_0x415d('0x18')](_0x7a7a3c);}),_0x1108ff[_0x415d('0x9')](_0x3336ed,_0x415d('0x1b'),(_0x24ac4d,_0x20fc8e)=>{_0x1108ff[_0x415d('0xf')](_0x20fc8e)&&_0x1108ff[_0x415d('0x1b')](_0x20fc8e);});}function v(_0x1cd751,_0x5661cf){if(null===_0x1cd751&&null===_0x5661cf)return 0x0;if(null===_0x1cd751)return-0x1;if(null===_0x5661cf)return 0x1;const _0x54932f=_0x1cd751[_0x415d('0x17')]-_0x5661cf[_0x415d('0x17')];return 0x0==_0x54932f?_0x1cd751['left']-_0x5661cf[_0x415d('0x3')]:_0x54932f;}
23
+ const _0x53e5=['length','innerView','getByView','view','annotationcollection-not-existing-item','getIndex','get','add','delete','refreshPositioning','has','blur','change:isFocused','targetRect','_getOrderInContent','left','stopListening','focusTracker','listenTo','clear','updateTargetRect','_innerViewToAnnotation','remove','annotationcollection-duplicated-item','focusableElements','focus','set','_viewToAnnotation','_focusTracker','fire','sort','destroy','top','_sort'];(function(_0x2bcdbd,_0x53e56d){const _0x314b96=function(_0x484ed9){while(--_0x484ed9){_0x2bcdbd['push'](_0x2bcdbd['shift']());}};_0x314b96(++_0x53e56d);}(_0x53e5,0x11c));const _0x314b=function(_0x2bcdbd,_0x53e56d){_0x2bcdbd=_0x2bcdbd-0x0;let _0x314b96=_0x53e5[_0x2bcdbd];return _0x314b96;};import{CKEditorError as _0x23783a,Collection as _0x2fc349,FocusTracker as _0x392366}from'ckeditor5/src/utils';export default class x extends _0x2fc349{constructor(_0x29eaf7=[]){super(),this[_0x314b('0x9')]=new Map(),this[_0x314b('0xf')]=new Map(),this['_focusTracker']=new _0x392366(),this[_0x314b('0x10')]['on'](_0x314b('0x0'),(_0x979825,_0x52485f,_0x52c744)=>{_0x52c744||this[_0x314b('0x11')](_0x314b('0x21'));});for(const _0x466acc of _0x29eaf7)this[_0x314b('0x1d')](_0x466acc);}get['isFocused'](){return this['_focusTracker']['isFocused'];}[_0x314b('0x1d')](_0x286d25){if(this[_0x314b('0x20')](_0x286d25))throw new _0x23783a(_0x314b('0xb'),null);this[_0x314b('0x9')][_0x314b('0xe')](_0x286d25[_0x314b('0x17')],_0x286d25),this[_0x314b('0xf')][_0x314b('0xe')](_0x286d25['view'],_0x286d25);for(const _0x1f010f of _0x286d25[_0x314b('0xc')])this[_0x314b('0x10')][_0x314b('0x1d')](_0x1f010f);this[_0x314b('0x6')](_0x286d25[_0x314b('0xc')],_0x314b('0x1d'),(_0x346515,_0x44e785)=>{this[_0x314b('0x10')][_0x314b('0x1d')](_0x44e785);}),this['listenTo'](_0x286d25[_0x314b('0xc')],'remove',(_0x116deb,_0x2b58d6)=>{this[_0x314b('0x10')][_0x314b('0xa')](_0x2b58d6);}),this[_0x314b('0x6')](_0x286d25[_0x314b('0x19')][_0x314b('0x5')],_0x314b('0x0'),(_0x579211,_0x2f08ef,_0x58afb0)=>{_0x58afb0&&this[_0x314b('0x11')](_0x314b('0xd'),_0x286d25);}),_0x286d25[_0x314b('0x8')]();const _0x3afa47=this[_0x314b('0x2')](_0x286d25[_0x314b('0x19')]['targetRect']);return super[_0x314b('0x1d')](_0x286d25,_0x3afa47);}['remove'](_0x107991){if(!this['has'](_0x107991))throw new _0x23783a(_0x314b('0x1a'),null);this[_0x314b('0x4')](_0x107991[_0x314b('0x19')][_0x314b('0x5')]),this[_0x314b('0x4')](_0x107991[_0x314b('0xc')]);for(const _0x40bd30 of _0x107991[_0x314b('0xc')])this[_0x314b('0x10')][_0x314b('0xa')](_0x40bd30);return this['_viewToAnnotation']['delete'](_0x107991[_0x314b('0x19')]),this['_innerViewToAnnotation'][_0x314b('0x1e')](_0x107991['innerView']),super[_0x314b('0xa')](_0x107991);}['getByInnerView'](_0x52d236){return this['_innerViewToAnnotation']['get'](_0x52d236);}[_0x314b('0x18')](_0x52bd64){return this[_0x314b('0xf')][_0x314b('0x1c')](_0x52bd64);}[_0x314b('0x13')](){super[_0x314b('0x7')](),this[_0x314b('0x4')](),this[_0x314b('0x9')][_0x314b('0x7')](),this[_0x314b('0xf')][_0x314b('0x7')](),this[_0x314b('0x10')][_0x314b('0x13')]();}[_0x314b('0x1f')](){for(const _0x339d83 of this)_0x339d83[_0x314b('0x8')]();this[_0x314b('0x15')]();}[_0x314b('0x15')](){const _0x5a3027=Array['from'](this)[_0x314b('0x12')]((_0x1f9731,_0x3c8325)=>v(_0x1f9731['view'][_0x314b('0x1')],_0x3c8325['view'][_0x314b('0x1')]));for(let _0x247380=_0x5a3027[_0x314b('0x16')]-0x1;_0x247380>0x0;_0x247380--){const _0x172e88=_0x5a3027[_0x247380];_0x247380!==this[_0x314b('0x1b')](_0x172e88)&&(this[_0x314b('0xa')](_0x172e88),this[_0x314b('0x1d')](_0x172e88));}}['_getOrderInContent'](_0x544286){let _0x484a84=0x0;if(!_0x544286)return this[_0x314b('0x16')];for(const _0x3962c4 of this){const _0x3a213b=_0x3962c4['view'][_0x314b('0x1')];if(_0x3a213b){if(v(_0x544286,_0x3a213b)<0x0)return _0x484a84;_0x484a84++;}}return _0x484a84;}}export function bindAnnotationCollections({source:_0x5686f8,target:_0x3e0554,filter:_0x4134a3}){for(const _0x398b64 of _0x5686f8)_0x4134a3(_0x398b64)&&_0x3e0554[_0x314b('0x1d')](_0x398b64);_0x3e0554[_0x314b('0x6')](_0x5686f8,_0x314b('0x1d'),(_0x2e981b,_0x3f6169)=>{_0x4134a3(_0x3f6169)&&_0x3e0554['add'](_0x3f6169);}),_0x3e0554[_0x314b('0x6')](_0x5686f8,_0x314b('0xa'),(_0x4a4946,_0x3f3d8a)=>{_0x3e0554[_0x314b('0x20')](_0x3f3d8a)&&_0x3e0554[_0x314b('0xa')](_0x3f3d8a);});}function v(_0x274fa3,_0x5e3834){if(null===_0x274fa3&&null===_0x5e3834)return 0x0;if(null===_0x274fa3)return-0x1;if(null===_0x5e3834)return 0x1;const _0x4b9ada=_0x274fa3[_0x314b('0x14')]-_0x5e3834[_0x314b('0x14')];return 0x0==_0x4b9ada?_0x274fa3[_0x314b('0x3')]-_0x5e3834['left']:_0x4b9ada;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dae=['activeAnnotations','_bindAnnotationsToVisibleAnnotations','remove','delete','isVisible','_visibleAnnotations','refreshPositioning','getByInnerView','createAnnotationView','source','activate','fire','createAnnotation','add','collection','pluginName','_activateAnnotation','has','refreshVisibility','_addActiveAnnotation','change:isVisible','destroy','stopListening','deactivateAll','listenTo','element','view'];(function(_0x4bafb9,_0x4daec6){const _0x23aa57=function(_0x4fb17f){while(--_0x4fb17f){_0x4bafb9['push'](_0x4bafb9['shift']());}};_0x23aa57(++_0x4daec6);}(_0x4dae,0x1a2));const _0x23aa=function(_0x4bafb9,_0x4daec6){_0x4bafb9=_0x4bafb9-0x0;let _0x23aa57=_0x4dae[_0x4bafb9];return _0x23aa57;};import{ContextPlugin as _0x6d170}from'ckeditor5/src/core';import _0x19ac6d from'./annotation';import _0x4b234b from'./annotationcollection';import _0x5e7e52 from'./view/annotationview';export default class b extends _0x6d170{static get[_0x23aa('0x2')](){return'Annotations';}constructor(_0x512c0e){super(_0x512c0e),this['collection']=new _0x4b234b(),this[_0x23aa('0x13')]=new _0x4b234b(),this['set'](_0x23aa('0xe'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x23aa('0x0')](_0x523b59){this[_0x23aa('0x1')][_0x23aa('0x0')](_0x523b59);}[_0x23aa('0x10')](_0x2b3eca){this[_0x23aa('0x1')][_0x23aa('0x10')](_0x2b3eca),_0x2b3eca[_0x23aa('0x8')]();}[_0x23aa('0x5')](){for(const _0x345b53 of this['collection'])_0x345b53[_0x23aa('0x5')]();}[_0x23aa('0x14')](){this[_0x23aa('0x13')][_0x23aa('0x14')]();}[_0x23aa('0x15')](_0x1331df){return this[_0x23aa('0x1')][_0x23aa('0x15')](_0x1331df);}[_0x23aa('0xa')](){this[_0x23aa('0x19')]('_deactivateAllAnnotations');}[_0x23aa('0x8')](){for(const _0x2f7184 of this[_0x23aa('0x1')])_0x2f7184[_0x23aa('0x8')]();this[_0x23aa('0x13')]['destroy'](),this[_0x23aa('0x1')][_0x23aa('0x8')](),super['destroy']();}[_0x23aa('0x18')](_0x32f68f){this[_0x23aa('0x19')](_0x23aa('0x3'),_0x32f68f);}[_0x23aa('0x1a')](_0x585ac7){return new _0x19ac6d(_0x585ac7);}[_0x23aa('0x16')](_0x3834ad,_0x36166f){return new _0x5e7e52(_0x3834ad,_0x36166f);}[_0x23aa('0x6')](_0x8c4296){const _0x5911e3=new Set(this[_0x23aa('0xe')]);_0x5911e3[_0x23aa('0x0')](_0x8c4296),this[_0x23aa('0xe')]=_0x5911e3;}['_removeActiveAnnotation'](_0x51b977){const _0xb11d85=new Set(this['activeAnnotations']);_0xb11d85[_0x23aa('0x11')](_0x51b977),this[_0x23aa('0xe')]=_0xb11d85;}[_0x23aa('0xf')](){const _0x112355=this[_0x23aa('0x1')],_0x4b7e43=this[_0x23aa('0x13')];function _0x2cf500(_0xb7a691){const _0x50acbc=_0xb7a691[_0x23aa('0x17')];_0x50acbc[_0x23aa('0x12')]&&!_0x4b7e43[_0x23aa('0x4')](_0x50acbc)?_0x4b7e43[_0x23aa('0x0')](_0x50acbc):!_0x50acbc[_0x23aa('0x12')]&&_0x4b7e43[_0x23aa('0x4')](_0x50acbc)&&_0x4b7e43[_0x23aa('0x10')](_0x50acbc),_0x50acbc[_0x23aa('0xd')]['focusTracker']['remove'](_0x50acbc[_0x23aa('0xd')][_0x23aa('0xc')]),_0x50acbc[_0x23aa('0xd')]['focusTracker'][_0x23aa('0x0')](_0x50acbc[_0x23aa('0xd')][_0x23aa('0xc')]);}this['listenTo'](_0x112355,_0x23aa('0x0'),(_0x50c5a3,_0x17704f)=>{_0x17704f[_0x23aa('0x12')]&&_0x4b7e43[_0x23aa('0x0')](_0x17704f),this[_0x23aa('0xb')](_0x17704f,'change:isVisible',_0x2cf500);}),this[_0x23aa('0xb')](_0x112355,'remove',(_0xc579d7,_0x2cb23e)=>{_0x4b7e43[_0x23aa('0x4')](_0x2cb23e)&&_0x4b7e43[_0x23aa('0x10')](_0x2cb23e),this[_0x23aa('0x9')](_0x2cb23e,_0x23aa('0x7'),_0x2cf500);});}}
23
+ const _0x2807=['stopListening','Annotations','getByInnerView','isVisible','_visibleAnnotations','refreshPositioning','createAnnotation','refreshVisibility','activate','delete','collection','_removeActiveAnnotation','remove','change:isVisible','listenTo','fire','_deactivateAllAnnotations','source','focusTracker','view','set','activeAnnotations','_bindAnnotationsToVisibleAnnotations','element','_addActiveAnnotation','destroy','deactivateAll','has','add'];(function(_0x2f1acd,_0x2807a8){const _0x12d9e3=function(_0x5958d0){while(--_0x5958d0){_0x2f1acd['push'](_0x2f1acd['shift']());}};_0x12d9e3(++_0x2807a8);}(_0x2807,0x12a));const _0x12d9=function(_0x2f1acd,_0x2807a8){_0x2f1acd=_0x2f1acd-0x0;let _0x12d9e3=_0x2807[_0x2f1acd];return _0x12d9e3;};import{ContextPlugin as _0x5b57e6}from'ckeditor5/src/core';import _0x159d28 from'./annotation';import _0x4e0075 from'./annotationcollection';import _0x4245fe from'./view/annotationview';export default class b extends _0x5b57e6{static get['pluginName'](){return _0x12d9('0x16');}constructor(_0x22d602){super(_0x22d602),this['collection']=new _0x4e0075(),this[_0x12d9('0x19')]=new _0x4e0075(),this[_0x12d9('0xc')]('activeAnnotations',new Set()),this[_0x12d9('0xe')]();}[_0x12d9('0x14')](_0x5badc4){this['collection']['add'](_0x5badc4);}[_0x12d9('0x4')](_0x596665){this['collection'][_0x12d9('0x4')](_0x596665),_0x596665['destroy']();}[_0x12d9('0x1c')](){for(const _0x4f9266 of this[_0x12d9('0x2')])_0x4f9266[_0x12d9('0x1c')]();}[_0x12d9('0x1a')](){this[_0x12d9('0x19')][_0x12d9('0x1a')]();}[_0x12d9('0x17')](_0xde7bc3){return this[_0x12d9('0x2')]['getByInnerView'](_0xde7bc3);}[_0x12d9('0x12')](){this[_0x12d9('0x7')](_0x12d9('0x8'));}[_0x12d9('0x11')](){for(const _0x40eb11 of this['collection'])_0x40eb11[_0x12d9('0x11')]();this['_visibleAnnotations'][_0x12d9('0x11')](),this[_0x12d9('0x2')][_0x12d9('0x11')](),super['destroy']();}[_0x12d9('0x0')](_0x3ff531){this[_0x12d9('0x7')]('_activateAnnotation',_0x3ff531);}[_0x12d9('0x1b')](_0x5b971c){return new _0x159d28(_0x5b971c);}['createAnnotationView'](_0x18598b,_0x2ea31d){return new _0x4245fe(_0x18598b,_0x2ea31d);}[_0x12d9('0x10')](_0x271fb1){const _0x40537d=new Set(this[_0x12d9('0xd')]);_0x40537d[_0x12d9('0x14')](_0x271fb1),this['activeAnnotations']=_0x40537d;}[_0x12d9('0x3')](_0x362cdb){const _0x57c789=new Set(this[_0x12d9('0xd')]);_0x57c789[_0x12d9('0x1')](_0x362cdb),this[_0x12d9('0xd')]=_0x57c789;}[_0x12d9('0xe')](){const _0x19a934=this[_0x12d9('0x2')],_0x1d4fc4=this[_0x12d9('0x19')];function _0x39e25a(_0xfb80de){const _0x548934=_0xfb80de[_0x12d9('0x9')];_0x548934[_0x12d9('0x18')]&&!_0x1d4fc4[_0x12d9('0x13')](_0x548934)?_0x1d4fc4['add'](_0x548934):!_0x548934[_0x12d9('0x18')]&&_0x1d4fc4[_0x12d9('0x13')](_0x548934)&&_0x1d4fc4['remove'](_0x548934),_0x548934[_0x12d9('0xb')][_0x12d9('0xa')]['remove'](_0x548934['view']['element']),_0x548934[_0x12d9('0xb')][_0x12d9('0xa')]['add'](_0x548934[_0x12d9('0xb')][_0x12d9('0xf')]);}this[_0x12d9('0x6')](_0x19a934,_0x12d9('0x14'),(_0x5b1975,_0x33877e)=>{_0x33877e[_0x12d9('0x18')]&&_0x1d4fc4['add'](_0x33877e),this[_0x12d9('0x6')](_0x33877e,_0x12d9('0x5'),_0x39e25a);}),this[_0x12d9('0x6')](_0x19a934,_0x12d9('0x4'),(_0x3c8d8b,_0x5e5441)=>{_0x1d4fc4[_0x12d9('0x13')](_0x5e5441)&&_0x1d4fc4[_0x12d9('0x4')](_0x5e5441),this[_0x12d9('0x15')](_0x5e5441,_0x12d9('0x5'),_0x39e25a);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20e1=['annotationsuis-register-invalid-interface','_uisData','_assertAnnotationDoesNotBelongToMultipleUIs','type','activeUIs','setActiveAnnotation','_removeActiveAnnotation','activate','deactivateAll','listenTo','pluginName','push','annotationsuis-missing-ui','from','init','find','attach','_uis','context','get','hasActive','_addActiveAnnotation','has','set','AnnotationsUIs','length','size','switchTo','annotationsuis-annotation-mismatch','collection','requires','function','add','destroy','filter','plugins','detach','deactivate','stopListening','_visibleAnnotations','isActive','register','delete','change:activeAnnotation'];(function(_0x287896,_0x20e17a){const _0x2914d4=function(_0x5d8a41){while(--_0x5d8a41){_0x287896['push'](_0x287896['shift']());}};_0x2914d4(++_0x20e17a);}(_0x20e1,0x10e));const _0x2914=function(_0x287896,_0x20e17a){_0x287896=_0x287896-0x0;let _0x2914d4=_0x20e1[_0x287896];return _0x2914d4;};import{ContextPlugin as _0xc1495c}from'ckeditor5/src/core';import{CKEditorError as _0x18d81d}from'ckeditor5/src/utils';import _0x59bbb3,{bindAnnotationCollections as _0x110880}from'./annotationcollection';import _0x128271 from'./annotations';export default class M extends _0xc1495c{static get[_0x2914('0x18')](){return[_0x128271];}static get[_0x2914('0x4')](){return _0x2914('0x12');}constructor(_0x7f2e20){super(_0x7f2e20),this[_0x2914('0x2a')]=new Set(),this[_0x2914('0xb')]=new Map(),this['_uisData']=new Map();}[_0x2914('0x8')](){const _0x612098=this[_0x2914('0xc')][_0x2914('0x1d')]['get'](_0x128271);this[_0x2914('0x3')](_0x612098,'_activateAnnotation',(_0x354e94,_0x596872)=>{for(const _0x447ecb of this[_0x2914('0x2a')]){const _0x4a8966=this[_0x2914('0xb')][_0x2914('0xd')](_0x447ecb);(0x0,this[_0x2914('0x27')]['get'](_0x447ecb)['filter'])(_0x596872)&&_0x4a8966[_0x2914('0x2b')](_0x596872);}}),this[_0x2914('0x3')](_0x612098,'_deactivateAllAnnotations',()=>{for(const _0x5ed349 of this[_0x2914('0x2a')]){this[_0x2914('0xb')][_0x2914('0xd')](_0x5ed349)[_0x2914('0x2b')](null);}}),this[_0x2914('0x3')](_0x612098[_0x2914('0x21')],_0x2914('0x1a'),(_0x4138b0,_0x306dd0)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x306dd0);});}[_0x2914('0xe')](){return this['activeUIs'][_0x2914('0x14')]>0x0;}[_0x2914('0x22')](_0x3dc170){return this['activeUIs'][_0x2914('0x10')](_0x3dc170);}['activate'](_0x5402fb,_0x1437ed=()=>!0x0){const _0x5b08c9=this[_0x2914('0xc')][_0x2914('0x1d')][_0x2914('0xd')](_0x128271);if(!this[_0x2914('0xb')][_0x2914('0x10')](_0x5402fb))throw new _0x18d81d('annotationsuis-missing-ui',this,{'uiName':_0x5402fb});this[_0x2914('0x22')](_0x5402fb)&&this[_0x2914('0x1f')](_0x5402fb),this[_0x2914('0x2a')][_0x2914('0x1a')](_0x5402fb);const _0x49db57=new _0x59bbb3(),_0x45676d=_0x5b08c9[_0x2914('0x21')];_0x110880({'source':_0x45676d,'target':_0x49db57,'filter':_0x1437ed}),this[_0x2914('0x27')][_0x2914('0x11')](_0x5402fb,{'collection':_0x49db57,'filter':_0x1437ed});const _0x119ab1=this[_0x2914('0xb')][_0x2914('0xd')](_0x5402fb);_0x119ab1[_0x2914('0xa')](_0x49db57),this['listenTo'](_0x119ab1,_0x2914('0x25'),(_0x3a7ab7,_0x44a530,_0x428cd6,_0x493695)=>{_0x493695&&_0x5b08c9[_0x2914('0x0')](_0x493695),_0x428cd6&&_0x5b08c9[_0x2914('0xf')](_0x428cd6);});}[_0x2914('0x1f')](_0x33afa6){if(this[_0x2914('0x2a')]['delete'](_0x33afa6),!this['_uis']['has'](_0x33afa6))throw new _0x18d81d(_0x2914('0x6'),this,{'uiName':_0x33afa6});const _0x3d50cb=this[_0x2914('0xb')][_0x2914('0xd')](_0x33afa6);_0x3d50cb[_0x2914('0x1e')](),this[_0x2914('0x20')](_0x3d50cb),this['_uisData'][_0x2914('0xd')](_0x33afa6)['collection'][_0x2914('0x1b')](),this[_0x2914('0x27')][_0x2914('0x24')](_0x33afa6);}[_0x2914('0x15')](_0x5a47b5){if(!this[_0x2914('0xb')][_0x2914('0x10')](_0x5a47b5))throw new _0x18d81d(_0x2914('0x6'),this,{'uiName':_0x5a47b5});const _0x36dfc6=this[_0x2914('0xc')][_0x2914('0x1d')][_0x2914('0xd')](_0x128271),_0x3ffd6f=Array[_0x2914('0x7')](_0x36dfc6['activeAnnotations'])[0x0]||null;this[_0x2914('0x2')](),this[_0x2914('0x1')](_0x5a47b5);const _0x3c7d40=this['_uis'][_0x2914('0xd')](_0x5a47b5);_0x3c7d40[_0x2914('0x2b')](_0x3ffd6f),_0x3c7d40['_setSelectedAnnotations']&&_0x3ffd6f&&_0x3c7d40['_setSelectedAnnotations']([_0x3ffd6f]);}[_0x2914('0x2')](){for(const _0x3c8fa3 of this[_0x2914('0x2a')])this[_0x2914('0x1f')](_0x3c8fa3);}[_0x2914('0x23')](_0x282c3d,_0x23c9ee){if(this[_0x2914('0xb')][_0x2914('0x10')](_0x282c3d))throw new _0x18d81d('annotationsuis-register-already-registered');if(_0x2914('0x19')!=typeof _0x23c9ee[_0x2914('0xa')]||'function'!=typeof _0x23c9ee[_0x2914('0x1e')]||_0x2914('0x19')!=typeof _0x23c9ee[_0x2914('0x2b')])throw new _0x18d81d(_0x2914('0x26'),null);this[_0x2914('0xb')][_0x2914('0x11')](_0x282c3d,_0x23c9ee);}['refilterAnnotations'](){const _0x2da79d=this[_0x2914('0xc')][_0x2914('0x1d')][_0x2914('0xd')](_0x128271)[_0x2914('0x17')],_0x591258=new Map(),_0x5732a9=Array[_0x2914('0x7')](this['activeUIs']);for(const _0x2c46bd of this[_0x2914('0x2a')]){const _0x2c5d11=this[_0x2914('0x27')][_0x2914('0xd')](_0x2c46bd)[_0x2914('0x17')];for(const _0x1a6930 of _0x2c5d11)_0x591258['set'](_0x1a6930,_0x2c46bd);}for(const _0x5b931a of _0x2da79d){const _0x3c493c=_0x591258[_0x2914('0xd')](_0x5b931a);this[_0x2914('0x28')](_0x5b931a);const _0x5a564d=_0x5732a9[_0x2914('0x9')](_0x11204b=>this[_0x2914('0x27')][_0x2914('0xd')](_0x11204b)[_0x2914('0x1c')](_0x5b931a));_0x3c493c!==_0x5a564d&&(_0x3c493c&&this[_0x2914('0x27')]['get'](_0x3c493c)['collection']['remove'](_0x5b931a),_0x5a564d&&this[_0x2914('0x27')]['get'](_0x5a564d)[_0x2914('0x17')][_0x2914('0x1a')](_0x5b931a));}}[_0x2914('0x1b')](){this[_0x2914('0x2')](),super['destroy']();}[_0x2914('0x28')](_0x5b89ca){const _0x46ac2a=[];for(const _0x248423 of this[_0x2914('0x2a')]){(0x0,this[_0x2914('0x27')][_0x2914('0xd')](_0x248423)[_0x2914('0x1c')])(_0x5b89ca)&&_0x46ac2a[_0x2914('0x5')](_0x248423);}if(_0x46ac2a[_0x2914('0x13')]>0x1)throw new _0x18d81d(_0x2914('0x16'),null,{'matchedUIs':_0x46ac2a,'annotationType':_0x5b89ca[_0x2914('0x29')]});}}
23
+ const _0x11bf=['size','attach','refilterAnnotations','destroy','hasActive','annotationsuis-register-already-registered','function','_uis','_visibleAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','change:activeAnnotation','annotationsuis-annotation-mismatch','has','_addActiveAnnotation','deactivateAll','setActiveAnnotation','deactivate','detach','annotationsuis-register-invalid-interface','activeAnnotations','pluginName','type','isActive','_deactivateAllAnnotations','_setSelectedAnnotations','activeUIs','register','filter','_activateAnnotation','listenTo','_uisData','context','get','plugins','from','collection','delete','activate','AnnotationsUIs','set','annotationsuis-missing-ui','add','remove','_removeActiveAnnotation'];(function(_0x49c5f3,_0x11bf32){const _0x52144e=function(_0x379d30){while(--_0x379d30){_0x49c5f3['push'](_0x49c5f3['shift']());}};_0x52144e(++_0x11bf32);}(_0x11bf,0x19a));const _0x5214=function(_0x49c5f3,_0x11bf32){_0x49c5f3=_0x49c5f3-0x0;let _0x52144e=_0x11bf[_0x49c5f3];return _0x52144e;};import{ContextPlugin as _0x5e8a56}from'ckeditor5/src/core';import{CKEditorError as _0x5ebc6c}from'ckeditor5/src/utils';import _0x3d2dde,{bindAnnotationCollections as _0x51918a}from'./annotationcollection';import _0x3afce5 from'./annotations';export default class M extends _0x5e8a56{static get['requires'](){return[_0x3afce5];}static get[_0x5214('0x6')](){return _0x5214('0x18');}constructor(_0x11d048){super(_0x11d048),this['activeUIs']=new Set(),this[_0x5214('0x25')]=new Map(),this[_0x5214('0x10')]=new Map();}['init'](){const _0x7feb48=this[_0x5214('0x11')][_0x5214('0x13')][_0x5214('0x12')](_0x3afce5);this['listenTo'](_0x7feb48,_0x5214('0xe'),(_0x29b369,_0x8e8f92)=>{for(const _0x12a623 of this[_0x5214('0xb')]){const _0x3875df=this[_0x5214('0x25')]['get'](_0x12a623);(0x0,this[_0x5214('0x10')][_0x5214('0x12')](_0x12a623)[_0x5214('0xd')])(_0x8e8f92)&&_0x3875df[_0x5214('0x1')](_0x8e8f92);}}),this['listenTo'](_0x7feb48,_0x5214('0x9'),()=>{for(const _0x294ab2 of this[_0x5214('0xb')]){this[_0x5214('0x25')][_0x5214('0x12')](_0x294ab2)[_0x5214('0x1')](null);}}),this[_0x5214('0xf')](_0x7feb48[_0x5214('0x26')],'add',(_0x35436d,_0x4fef0c)=>{this[_0x5214('0x27')](_0x4fef0c);});}[_0x5214('0x22')](){return this[_0x5214('0xb')][_0x5214('0x1e')]>0x0;}[_0x5214('0x8')](_0x7dbdf4){return this[_0x5214('0xb')][_0x5214('0x2a')](_0x7dbdf4);}['activate'](_0x5b4f57,_0x49a2a0=()=>!0x0){const _0x3d1999=this['context'][_0x5214('0x13')][_0x5214('0x12')](_0x3afce5);if(!this[_0x5214('0x25')]['has'](_0x5b4f57))throw new _0x5ebc6c('annotationsuis-missing-ui',this,{'uiName':_0x5b4f57});this[_0x5214('0x8')](_0x5b4f57)&&this['deactivate'](_0x5b4f57),this['activeUIs']['add'](_0x5b4f57);const _0x4cba06=new _0x3d2dde(),_0x53504b=_0x3d1999[_0x5214('0x26')];_0x51918a({'source':_0x53504b,'target':_0x4cba06,'filter':_0x49a2a0}),this[_0x5214('0x10')][_0x5214('0x19')](_0x5b4f57,{'collection':_0x4cba06,'filter':_0x49a2a0});const _0x261b53=this[_0x5214('0x25')][_0x5214('0x12')](_0x5b4f57);_0x261b53[_0x5214('0x1f')](_0x4cba06),this['listenTo'](_0x261b53,_0x5214('0x28'),(_0x1e1a70,_0x1e4ad0,_0x12f647,_0x2cd31d)=>{_0x2cd31d&&_0x3d1999[_0x5214('0x1d')](_0x2cd31d),_0x12f647&&_0x3d1999[_0x5214('0x2b')](_0x12f647);});}[_0x5214('0x2')](_0x5c7018){if(this[_0x5214('0xb')][_0x5214('0x16')](_0x5c7018),!this[_0x5214('0x25')][_0x5214('0x2a')](_0x5c7018))throw new _0x5ebc6c(_0x5214('0x1a'),this,{'uiName':_0x5c7018});const _0x23703e=this[_0x5214('0x25')][_0x5214('0x12')](_0x5c7018);_0x23703e[_0x5214('0x3')](),this['stopListening'](_0x23703e),this['_uisData'][_0x5214('0x12')](_0x5c7018)['collection'][_0x5214('0x21')](),this[_0x5214('0x10')][_0x5214('0x16')](_0x5c7018);}['switchTo'](_0x15a166){if(!this[_0x5214('0x25')][_0x5214('0x2a')](_0x15a166))throw new _0x5ebc6c(_0x5214('0x1a'),this,{'uiName':_0x15a166});const _0x155627=this['context'][_0x5214('0x13')][_0x5214('0x12')](_0x3afce5),_0x2a1d6c=Array[_0x5214('0x14')](_0x155627[_0x5214('0x5')])[0x0]||null;this[_0x5214('0x0')](),this[_0x5214('0x17')](_0x15a166);const _0x11b53a=this[_0x5214('0x25')][_0x5214('0x12')](_0x15a166);_0x11b53a[_0x5214('0x1')](_0x2a1d6c),_0x11b53a[_0x5214('0xa')]&&_0x2a1d6c&&_0x11b53a[_0x5214('0xa')]([_0x2a1d6c]);}[_0x5214('0x0')](){for(const _0x4b3cd4 of this['activeUIs'])this['deactivate'](_0x4b3cd4);}[_0x5214('0xc')](_0x5d379c,_0x1ca70a){if(this[_0x5214('0x25')][_0x5214('0x2a')](_0x5d379c))throw new _0x5ebc6c(_0x5214('0x23'));if(_0x5214('0x24')!=typeof _0x1ca70a[_0x5214('0x1f')]||'function'!=typeof _0x1ca70a[_0x5214('0x3')]||_0x5214('0x24')!=typeof _0x1ca70a[_0x5214('0x1')])throw new _0x5ebc6c(_0x5214('0x4'),null);this[_0x5214('0x25')][_0x5214('0x19')](_0x5d379c,_0x1ca70a);}[_0x5214('0x20')](){const _0x4dcafe=this['context'][_0x5214('0x13')]['get'](_0x3afce5)[_0x5214('0x15')],_0x2d9f1e=new Map(),_0x264052=Array['from'](this['activeUIs']);for(const _0x2caf15 of this[_0x5214('0xb')]){const _0x3b397c=this['_uisData']['get'](_0x2caf15)[_0x5214('0x15')];for(const _0x1950a2 of _0x3b397c)_0x2d9f1e[_0x5214('0x19')](_0x1950a2,_0x2caf15);}for(const _0x32b722 of _0x4dcafe){const _0xbb1722=_0x2d9f1e[_0x5214('0x12')](_0x32b722);this[_0x5214('0x27')](_0x32b722);const _0xcf65d6=_0x264052['find'](_0x58bae0=>this['_uisData']['get'](_0x58bae0)[_0x5214('0xd')](_0x32b722));_0xbb1722!==_0xcf65d6&&(_0xbb1722&&this[_0x5214('0x10')][_0x5214('0x12')](_0xbb1722)['collection'][_0x5214('0x1c')](_0x32b722),_0xcf65d6&&this[_0x5214('0x10')]['get'](_0xcf65d6)['collection'][_0x5214('0x1b')](_0x32b722));}}[_0x5214('0x21')](){this[_0x5214('0x0')](),super[_0x5214('0x21')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x57da57){const _0x11940=[];for(const _0x5b3a53 of this['activeUIs']){(0x0,this['_uisData'][_0x5214('0x12')](_0x5b3a53)[_0x5214('0xd')])(_0x57da57)&&_0x11940['push'](_0x5b3a53);}if(_0x11940['length']>0x1)throw new _0x5ebc6c(_0x5214('0x29'),null,{'matchedUIs':_0x11940,'annotationType':_0x57da57[_0x5214('0x7')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4211=['editor','update','fire','getByInnerView','blur','uiUpdate','get','function','refresh','_editorAnnotationsData','range','remove','containsRange','cancel','plugins','_editorAnnotations','element','has','innerView','directChange','document','editorannotations-invalid-source-callback','view','annotation','focusTracker','init','pluginName','change:range','push','set','getRanges','EditorAnnotations','_dataCollectors','getOrderedSelectedAnnotations','delete','requires','isReadOnly','addSourceCollector','model','sort','add','editing','map','selection','from','listenTo','hasDomSelection','refreshSelectedViews','registerAnnotation'];(function(_0xd3421d,_0x421183){const _0x179401=function(_0x5ed9f5){while(--_0x5ed9f5){_0xd3421d['push'](_0xd3421d['shift']());}};_0x179401(++_0x421183);}(_0x4211,0x9b));const _0x1794=function(_0xd3421d,_0x421183){_0xd3421d=_0xd3421d-0x0;let _0x179401=_0x4211[_0xd3421d];return _0x179401;};import{Plugin as _0xc7a243}from'ckeditor5/src/core';import{CKEditorError as _0x3ffb80}from'ckeditor5/src/utils';import{debounce as _0x251d90}from'lodash-es';import _0x58558f from'./annotations';export default class k extends _0xc7a243{static get[_0x1794('0x1b')](){return[_0x58558f];}static get[_0x1794('0x12')](){return _0x1794('0x17');}constructor(_0x59be8e){super(_0x59be8e),this['_dataCollectors']=new Set(),this[_0x1794('0x7')]=new Set();}[_0x1794('0x11')](){const _0x40d91e=this[_0x1794('0x29')],_0xfe618f=_0x40d91e[_0x1794('0x1e')]['document'][_0x1794('0x23')],_0x35e513=_0x251d90(()=>this[_0x1794('0x27')](),0xa);_0xfe618f['on'](_0x1794('0x13'),(_0x28faed,_0x2a2e25)=>{_0x2a2e25[_0x1794('0xb')]&&(_0x35e513[_0x1794('0x5')](),this[_0x1794('0x27')]());}),this[_0x1794('0x25')](_0x40d91e['editing']['view'][_0x1794('0xc')],'change:isFocused',(_0x358523,_0x4568c7,_0xeb39df)=>{_0xeb39df&&_0x35e513();}),this[_0x1794('0x25')](_0x40d91e['ui'][_0x1794('0x10')],'change:isFocused',(_0x52df8e,_0x5e5037,_0x34b364)=>{_0x34b364||_0x40d91e[_0x1794('0x1c')]||this[_0x1794('0x2b')](_0x1794('0x2d'),{'isAnnotationTracked':_0xe2c19b=>this['_editorAnnotationsData'][_0x1794('0x9')](_0xe2c19b[_0x1794('0xa')])});}),this[_0x1794('0x25')](this[_0x1794('0x29')]['ui'],_0x1794('0x2a'),()=>this[_0x1794('0x2b')](_0x1794('0x2e')));}[_0x1794('0x28')](_0x1cd504){if(this[_0x1794('0x7')]['has'](_0x1cd504['view']))return;this[_0x1794('0x7')][_0x1794('0x20')](_0x1cd504['view']),this[_0x1794('0x29')]['ui'][_0x1794('0x10')][_0x1794('0x20')](_0x1cd504[_0x1794('0xe')][_0x1794('0x8')]);const _0x52cf28=this[_0x1794('0x29')][_0x1794('0x6')][_0x1794('0x2f')](_0x58558f);this['listenTo'](_0x52cf28['collection'],'remove',(_0x5728d5,_0x5ee4da)=>{this[_0x1794('0x29')]['ui']['focusTracker'][_0x1794('0x3')](_0x5ee4da[_0x1794('0xe')][_0x1794('0x8')]),this[_0x1794('0x7')][_0x1794('0x1a')](_0x5ee4da[_0x1794('0xe')]);});}['hasDomSelection'](){return this[_0x1794('0x29')][_0x1794('0x21')][_0x1794('0xe')][_0x1794('0x26')];}[_0x1794('0x1d')](_0x55a476){if(_0x1794('0x30')!=typeof _0x55a476)throw new _0x3ffb80(_0x1794('0xd'));this[_0x1794('0x18')][_0x1794('0x20')](_0x55a476);}[_0x1794('0x27')](){this['fire'](_0x1794('0x0'));}[_0x1794('0x19')]({activeAnnotation:_0x421c2c,annotations:_0x540fed}){const _0x339fab=[],_0xa51ec=this['editor'][_0x1794('0x1e')][_0x1794('0xc')][_0x1794('0x23')],_0x2ebd5f=Array[_0x1794('0x24')](_0xa51ec[_0x1794('0x16')]());for(const [_0x535842,_0x4a7dd7]of this[_0x1794('0x1')]){const _0x5d445f=_0x3c7ebf(_0x4a7dd7),_0x246015=_0x540fed[_0x1794('0x2c')](_0x535842);_0x5d445f&&_0x246015&&_0x339fab[_0x1794('0x14')]({'annotation':_0x246015,'range':_0x5d445f});}function _0x3c7ebf(_0x13d733){for(const _0x186942 of _0x13d733)for(const _0x8d661 of _0x2ebd5f)if(_0x186942[_0x1794('0x4')](_0x8d661,!_0xa51ec['isCollapsed']))return _0x186942;return null;}return _0x339fab[_0x1794('0x1f')]((_0x3b019d,_0x32bdcc)=>{const _0x5b157e=_0x3b019d[_0x1794('0x2')],_0x2fa83e=_0x32bdcc[_0x1794('0x2')];if(!_0x5b157e['isEqual'](_0x2fa83e)){if(_0x5b157e[_0x1794('0x4')](_0x2fa83e,!0x0))return 0x1;if(_0x2fa83e[_0x1794('0x4')](_0x5b157e,!0x0))return-0x1;}return _0x3b019d[_0x1794('0xf')]==_0x421c2c?-0x1:_0x32bdcc[_0x1794('0xf')]==_0x421c2c?0x1:0x0;})[_0x1794('0x22')](_0x2ba7cf=>_0x2ba7cf[_0x1794('0xf')]);}get['_editorAnnotationsData'](){const _0x35ad97=new Map();for(const _0x73411 of Array[_0x1794('0x24')](this[_0x1794('0x18')]))for(const [_0x573395,_0x26ec7e]of _0x73411())_0x35ad97[_0x1794('0x15')](_0x573395,_0x26ec7e);return _0x35ad97;}}
23
+ const _0x382c=['get','_dataCollectors','annotation','_editorAnnotationsData','listenTo','isCollapsed','editorannotations-invalid-source-callback','addSourceCollector','add','cancel','element','getRanges','fire','change:isFocused','delete','document','containsRange','sort','hasDomSelection','view','_editorAnnotations','registerAnnotation','from','editor','getByInnerView','remove','EditorAnnotations','editing','directChange','init','getOrderedSelectedAnnotations','innerView','plugins','focusTracker','map','push','requires','change:range','set','selection','uiUpdate','has','refreshSelectedViews','range','model'];(function(_0x219610,_0x382c8d){const _0x30a3f7=function(_0x13158f){while(--_0x13158f){_0x219610['push'](_0x219610['shift']());}};_0x30a3f7(++_0x382c8d);}(_0x382c,0xf1));const _0x30a3=function(_0x219610,_0x382c8d){_0x219610=_0x219610-0x0;let _0x30a3f7=_0x382c[_0x219610];return _0x30a3f7;};import{Plugin as _0x3204a7}from'ckeditor5/src/core';import{CKEditorError as _0x4abc9d}from'ckeditor5/src/utils';import{debounce as _0xfabe3b}from'lodash-es';import _0x9bd2dd from'./annotations';export default class k extends _0x3204a7{static get[_0x30a3('0x14')](){return[_0x9bd2dd];}static get['pluginName'](){return _0x30a3('0xa');}constructor(_0x302f34){super(_0x302f34),this[_0x30a3('0x1e')]=new Set(),this[_0x30a3('0x4')]=new Set();}[_0x30a3('0xd')](){const _0x444264=this[_0x30a3('0x7')],_0x390498=_0x444264[_0x30a3('0x1c')][_0x30a3('0x2c')]['selection'],_0xcd7077=_0xfabe3b(()=>this[_0x30a3('0x1a')](),0xa);_0x390498['on'](_0x30a3('0x15'),(_0x5852e8,_0x434a92)=>{_0x434a92[_0x30a3('0xc')]&&(_0xcd7077[_0x30a3('0x26')](),this[_0x30a3('0x1a')]());}),this[_0x30a3('0x21')](_0x444264[_0x30a3('0xb')]['view'][_0x30a3('0x2c')],'change:isFocused',(_0x36104e,_0x3e85c5,_0x449329)=>{_0x449329&&_0xcd7077();}),this[_0x30a3('0x21')](_0x444264['ui'][_0x30a3('0x11')],_0x30a3('0x2a'),(_0x5afccc,_0x14abed,_0x860e85)=>{_0x860e85||_0x444264['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3bb015=>this['_editorAnnotationsData']['has'](_0x3bb015[_0x30a3('0xf')])});}),this[_0x30a3('0x21')](this[_0x30a3('0x7')]['ui'],'update',()=>this[_0x30a3('0x29')](_0x30a3('0x18')));}[_0x30a3('0x5')](_0x215357){if(this[_0x30a3('0x4')][_0x30a3('0x19')](_0x215357['view']))return;this[_0x30a3('0x4')][_0x30a3('0x25')](_0x215357[_0x30a3('0x3')]),this[_0x30a3('0x7')]['ui'][_0x30a3('0x11')][_0x30a3('0x25')](_0x215357[_0x30a3('0x3')][_0x30a3('0x27')]);const _0x2d51a2=this['editor'][_0x30a3('0x10')][_0x30a3('0x1d')](_0x9bd2dd);this[_0x30a3('0x21')](_0x2d51a2['collection'],'remove',(_0x390974,_0x56adcb)=>{this[_0x30a3('0x7')]['ui'][_0x30a3('0x11')][_0x30a3('0x9')](_0x56adcb[_0x30a3('0x3')][_0x30a3('0x27')]),this[_0x30a3('0x4')][_0x30a3('0x2b')](_0x56adcb['view']);});}[_0x30a3('0x2')](){return this[_0x30a3('0x7')][_0x30a3('0xb')][_0x30a3('0x3')][_0x30a3('0x2')];}[_0x30a3('0x24')](_0x52a226){if('function'!=typeof _0x52a226)throw new _0x4abc9d(_0x30a3('0x23'));this[_0x30a3('0x1e')][_0x30a3('0x25')](_0x52a226);}['refreshSelectedViews'](){this[_0x30a3('0x29')]('refresh');}[_0x30a3('0xe')]({activeAnnotation:_0x2888f3,annotations:_0x3a93de}){const _0x218128=[],_0x12a826=this['editor']['model']['document'][_0x30a3('0x17')],_0xd88341=Array[_0x30a3('0x6')](_0x12a826[_0x30a3('0x28')]());for(const [_0x5d1ad6,_0x203e6e]of this[_0x30a3('0x20')]){const _0x30a773=_0x5ca06c(_0x203e6e),_0x23f63e=_0x3a93de[_0x30a3('0x8')](_0x5d1ad6);_0x30a773&&_0x23f63e&&_0x218128[_0x30a3('0x13')]({'annotation':_0x23f63e,'range':_0x30a773});}function _0x5ca06c(_0x2f1a5e){for(const _0x3e726e of _0x2f1a5e)for(const _0x570d47 of _0xd88341)if(_0x3e726e[_0x30a3('0x0')](_0x570d47,!_0x12a826[_0x30a3('0x22')]))return _0x3e726e;return null;}return _0x218128[_0x30a3('0x1')]((_0x5c829c,_0x2fb486)=>{const _0x4f0b20=_0x5c829c['range'],_0x180160=_0x2fb486[_0x30a3('0x1b')];if(!_0x4f0b20['isEqual'](_0x180160)){if(_0x4f0b20['containsRange'](_0x180160,!0x0))return 0x1;if(_0x180160['containsRange'](_0x4f0b20,!0x0))return-0x1;}return _0x5c829c['annotation']==_0x2888f3?-0x1:_0x2fb486[_0x30a3('0x1f')]==_0x2888f3?0x1:0x0;})[_0x30a3('0x12')](_0x46d5d8=>_0x46d5d8[_0x30a3('0x1f')]);}get[_0x30a3('0x20')](){const _0x38f100=new Map();for(const _0x36c0cc of Array[_0x30a3('0x6')](this[_0x30a3('0x1e')]))for(const [_0xe751b4,_0x3b03f3]of _0x36c0cc())_0x38f100[_0x30a3('0x16')](_0xe751b4,_0x3b03f3);return _0x38f100;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x109e=['focus','updatePosition','init','push','change:isFocused','focusTracker','view','fromRect','top','bottom','editableElement','change:visibleView','keystrokes','isAttached','showStack','isActive','_balloon','_selectedAnnotations','collapse','_removeAnnotationFromBalloon','getBoundingClientRect','target','plugins','_setSelectedAnnotations','editing','setActiveAnnotation','pluginName','remove','width','visibleView','getByView','change:height','clear','switchTo','hasView','activeAnnotation','register','update','viewRangeToDom','_addedAnnotations','right','refresh','inlineannotations-not-allowed-with-context','_forceRefresh','delete','left','listenTo','stopListening','getFirstRange','context','includes','editor','selection','_closeAnnotation','detach','map','get','afterInit','addObserver','getOrderedSelectedAnnotations','add','_manuallyClosed','requires','annotations','set','attach','targetRect','InlineAnnotations','_getBalloonTargetForAnnotation','has','getClientRects','inline','Esc','document','inlineannotations-detach-not-attached','length','blur','inlineannotations-attach-already-attached','isFocused'];(function(_0x5b50dd,_0x109e62){const _0xb7baf6=function(_0x279998){while(--_0x279998){_0x5b50dd['push'](_0x5b50dd['shift']());}};_0xb7baf6(++_0x109e62);}(_0x109e,0x1e3));const _0xb7ba=function(_0x5b50dd,_0x109e62){_0x5b50dd=_0x5b50dd-0x0;let _0xb7baf6=_0x109e[_0x5b50dd];return _0xb7baf6;};import{Plugin as _0x225a90}from'ckeditor5/src/core';import _0x486ecf from'./annotationsuis';import _0x4db12a from'./editorannotations';import{ContextualBalloon as _0x52a97f}from'ckeditor5/src/ui';import{MouseObserver as _0x56e0fb}from'ckeditor5/src/engine';import{CKEditorError as _0x16c166,Rect as _0xb27067}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x225a90{static get[_0xb7ba('0x35')](){return[_0x4db12a,_0x52a97f,_0x486ecf];}static get[_0xb7ba('0x11')](){return _0xb7ba('0x3a');}constructor(_0x467ac6){super(_0x467ac6),_0x467ac6['editing'][_0xb7ba('0x4c')][_0xb7ba('0x31')](_0x56e0fb),this[_0xb7ba('0x4')]=!0x1,this[_0xb7ba('0x37')](_0xb7ba('0x1a'),null),this[_0xb7ba('0x36')]=null,this[_0xb7ba('0x34')]=new Set(),this[_0xb7ba('0x7')]=_0x467ac6[_0xb7ba('0xd')][_0xb7ba('0x2f')](_0x52a97f),this[_0xb7ba('0x1e')]=new Set(),this[_0xb7ba('0x8')]=[],this[_0xb7ba('0x22')]=!0x1;}[_0xb7ba('0x48')](){const _0x1d130e=this[_0xb7ba('0x2a')][_0xb7ba('0xd')][_0xb7ba('0x2f')](_0x486ecf);_0x1d130e[_0xb7ba('0x28')]===this['editor']&&(_0x1d130e[_0xb7ba('0x1b')](_0xb7ba('0x3e'),this),this[_0xb7ba('0x2a')][_0xb7ba('0x3')][_0xb7ba('0x37')](_0xb7ba('0x3f'),(_0x237ea1,_0x4d4380)=>{const _0x279931=this[_0xb7ba('0x7')];if(this[_0xb7ba('0x4')]&&_0x279931['visibleView']){const _0x22da1e=this[_0xb7ba('0x36')][_0xb7ba('0x15')](_0x279931[_0xb7ba('0x14')]);_0x22da1e&&this[_0xb7ba('0x2c')](_0x22da1e),_0x4d4380();}}));}[_0xb7ba('0x30')](){const _0x283884=this[_0xb7ba('0x2a')]['plugins']['get'](_0x486ecf);_0x283884['context']===this[_0xb7ba('0x2a')]&&(_0x283884['hasActive']()||_0x283884[_0xb7ba('0x18')](_0xb7ba('0x3e')));}['setActiveAnnotation'](_0x12add4){_0x12add4!==this[_0xb7ba('0x1a')]&&(this[_0xb7ba('0x1a')]&&(this[_0xb7ba('0x1a')][_0xb7ba('0x6')]=!0x1),_0x12add4&&this[_0xb7ba('0x2a')]['ui'][_0xb7ba('0x4b')][_0xb7ba('0x45')]&&(this[_0xb7ba('0x36')][_0xb7ba('0x3c')](_0x12add4)&&this['_addAnnotationToBalloon'](_0x12add4,!0x0),_0x12add4[_0xb7ba('0x6')]=!0x0),_0x12add4||this[_0xb7ba('0xe')]([]),this['activeAnnotation']=_0x12add4);}[_0xb7ba('0x38')](_0x4fd301){this['annotations']=_0x4fd301;const _0x2b8115=this[_0xb7ba('0x2a')][_0xb7ba('0xd')][_0xb7ba('0x2f')](_0x486ecf),_0x5d538b=this[_0xb7ba('0x7')];if(this[_0xb7ba('0x4')])throw new _0x16c166(_0xb7ba('0x44'),this);if(_0x2b8115[_0xb7ba('0x28')]!==this[_0xb7ba('0x2a')])throw new _0x16c166(_0xb7ba('0x21'),this);const _0x4b9b15=this[_0xb7ba('0x2a')]['plugins'][_0xb7ba('0x2f')](_0x4db12a);this['listenTo'](_0x4b9b15,_0xb7ba('0x20'),()=>{const _0x11d24a=_0x4b9b15[_0xb7ba('0x32')]({'annotations':this['annotations'],'activeAnnotation':this[_0xb7ba('0x1a')]});var _0x20d4e7,_0x4e402a;!this[_0xb7ba('0x22')]&&(_0x20d4e7=_0x11d24a,_0x4e402a=this[_0xb7ba('0x8')],_0x20d4e7[_0xb7ba('0x42')]===_0x4e402a[_0xb7ba('0x42')]&&_0x20d4e7['every'](_0x55741c=>_0x4e402a[_0xb7ba('0x29')](_0x55741c)))||(this[_0xb7ba('0x22')]=!0x1,this['_setSelectedAnnotations'](_0x11d24a),this[_0xb7ba('0x10')](_0x11d24a[0x0]||null));}),this['listenTo'](_0x4b9b15,_0xb7ba('0x43'),(_0x5e7b48,{isAnnotationTracked:_0x50afe6})=>{this[_0xb7ba('0x1a')]&&_0x50afe6(this[_0xb7ba('0x1a')])&&(this['_setSelectedAnnotations']([]),this[_0xb7ba('0x10')](null));}),this[_0xb7ba('0x25')](this[_0xb7ba('0x2a')]['ui'][_0xb7ba('0x4b')],_0xb7ba('0x4a'),(_0x465fd9,_0xd30b7a,_0x578c63)=>{_0x578c63||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4fd301,_0xb7ba('0x12'),(_0x1fbaee,_0x3a0330)=>{this[_0xb7ba('0xa')](_0x3a0330),_0x3a0330===this['activeAnnotation']&&this[_0xb7ba('0x10')](null);}),this[_0xb7ba('0x25')](_0x5d538b,_0xb7ba('0x2'),(_0x18bc39,_0x3bbf9f,_0x1a692a,_0x2292fd)=>{_0x2292fd&&this[_0xb7ba('0x26')](_0x2292fd);const _0x1c4711=_0x4fd301[_0xb7ba('0x15')](_0x1a692a);_0x1a692a&&_0x1c4711&&(this[_0xb7ba('0x25')](_0x1a692a,_0xb7ba('0x16'),()=>{_0x5d538b[_0xb7ba('0x47')]();}),this[_0xb7ba('0x25')](_0x1a692a,_0xb7ba('0x3f'),()=>{this['_closeAnnotation'](_0x1c4711),this[_0xb7ba('0x2a')][_0xb7ba('0xf')][_0xb7ba('0x4c')][_0xb7ba('0x46')]();}),this[_0xb7ba('0x1a')]!==_0x1c4711&&this[_0xb7ba('0x10')](_0x1c4711));}),this[_0xb7ba('0x25')](this[_0xb7ba('0x2a')]['ui'],_0xb7ba('0x1c'),()=>{_0x5d538b[_0xb7ba('0x14')]&&(_0x4fd301[_0xb7ba('0x15')](_0x5d538b[_0xb7ba('0x14')])&&_0x5d538b[_0xb7ba('0x47')]());}),this['listenTo'](this[_0xb7ba('0x2a')][_0xb7ba('0xf')][_0xb7ba('0x4c')]['document'],'mousedown',()=>{this[_0xb7ba('0x22')]=!0x0,this[_0xb7ba('0x34')][_0xb7ba('0x17')]();}),this['editor'][_0xb7ba('0xf')]['view'][_0xb7ba('0x40')][_0xb7ba('0x2b')][_0xb7ba('0x1')]&&this[_0xb7ba('0x2a')][_0xb7ba('0xf')][_0xb7ba('0x4c')][_0xb7ba('0x46')](),this['isAttached']=!0x0;}[_0xb7ba('0x2d')](){if(!this[_0xb7ba('0x4')])throw new _0x16c166(_0xb7ba('0x41'),this);this[_0xb7ba('0x10')](null);for(const _0x82f1a2 of this['_addedAnnotations'])this[_0xb7ba('0xa')](_0x82f1a2);this[_0xb7ba('0x26')](),this[_0xb7ba('0x4')]=!0x1,this['annotations']=null;}['destroy'](){this[_0xb7ba('0x4')]&&this[_0xb7ba('0x2d')]();}[_0xb7ba('0xe')](_0x15a0ca){for(const _0x4533e1 of this[_0xb7ba('0x8')])_0x15a0ca['includes'](_0x4533e1)||this[_0xb7ba('0x34')][_0xb7ba('0x23')](_0x4533e1);for(const _0x37f64d of this[_0xb7ba('0x36')])_0x15a0ca[_0xb7ba('0x29')](_0x37f64d)||this['_removeAnnotationFromBalloon'](_0x37f64d);if(this[_0xb7ba('0x2a')]['ui']['focusTracker'][_0xb7ba('0x45')])for(const _0x433594 of _0x15a0ca)this['_addAnnotationToBalloon'](_0x433594);this['_selectedAnnotations']=_0x15a0ca;}['_addAnnotationToBalloon'](_0x342197,_0x73d5b4=!0x1){this[_0xb7ba('0x34')]['has'](_0x342197)||(this[_0xb7ba('0x1e')]['has'](_0x342197)||this['_balloon'][_0xb7ba('0x19')](_0x342197[_0xb7ba('0x4c')])||(this[_0xb7ba('0x1e')][_0xb7ba('0x33')](_0x342197),this[_0xb7ba('0x7')]['add']({'stackId':_0x342197['view']['id'],'view':_0x342197['view'],'position':{'target':()=>this[_0xb7ba('0x3b')](_0x342197)}})),_0x73d5b4&&this[_0xb7ba('0x7')][_0xb7ba('0x5')](_0x342197[_0xb7ba('0x4c')]['id']));}[_0xb7ba('0x3b')](_0x2dab45){const _0x6716d8=_0x2dab45[_0xb7ba('0xc')],_0x2d2ab4=this[_0xb7ba('0x2a')]['editing'][_0xb7ba('0x4c')],_0x583316=_0x2d2ab4['document'][_0xb7ba('0x2b')][_0xb7ba('0x27')](),_0x17f306=_0x2d2ab4['domConverter'][_0xb7ba('0x1d')](_0x583316);if(_0x17f306[_0xb7ba('0x9')](!0x0),_0x6716d8){if(_0x6716d8 instanceof _0xb27067)return _0x6716d8;let _0xad49ae=[];for(const _0x25ead0 of _0x6716d8)_0xad49ae[_0xb7ba('0x49')](...(_0x2867ba=_0x25ead0[_0xb7ba('0x3d')](),Array['from'](_0x2867ba)[_0xb7ba('0x2e')](DOMRect[_0xb7ba('0x4d')])));_0xad49ae=function(_0x1351cf){const _0x226251=[];let _0x43432c=_0x1351cf[0x0];for(let _0x5d0ece=0x1;_0x5d0ece<_0x1351cf['length'];_0x5d0ece++)F(_0x43432c,_0x1351cf[_0x5d0ece])?_0x43432c[_0xb7ba('0x13')]+=_0x1351cf[_0x5d0ece][_0xb7ba('0x13')]:(_0x226251[_0xb7ba('0x49')](_0x43432c),_0x43432c=_0x1351cf[_0x5d0ece]);return _0x226251[_0xb7ba('0x49')](_0x43432c),_0x226251;}(_0xad49ae);const _0x2eba60=_0x17f306[_0xb7ba('0xb')]();return _0xad49ae['find'](_0x3c13fb=>_0x3c13fb[_0xb7ba('0x4e')]<=_0x2eba60[_0xb7ba('0x4e')]&&_0x3c13fb[_0xb7ba('0x0')]>=_0x2eba60['bottom']&&_0x3c13fb['left']<=_0x2eba60[_0xb7ba('0x24')]&&_0x3c13fb['right']>=_0x2eba60[_0xb7ba('0x1f')])||_0xad49ae[0x0];}var _0x2867ba;return _0x2dab45[_0xb7ba('0x39')]||_0x17f306;}['_removeAnnotationFromBalloon'](_0x445f65){this[_0xb7ba('0x1e')]['has'](_0x445f65)&&this[_0xb7ba('0x7')][_0xb7ba('0x19')](_0x445f65['view'])&&(this[_0xb7ba('0x1e')]['delete'](_0x445f65),this[_0xb7ba('0x7')][_0xb7ba('0x12')](_0x445f65[_0xb7ba('0x4c')]));}[_0xb7ba('0x2c')](_0x505cc3){this[_0xb7ba('0x34')][_0xb7ba('0x33')](_0x505cc3),this[_0xb7ba('0xa')](_0x505cc3);}}function F(_0x4bcbc6,_0x232e40){return _0x4bcbc6[_0xb7ba('0x4e')]===_0x232e40[_0xb7ba('0x4e')]&&_0x4bcbc6['bottom']===_0x232e40['bottom']&&_0x4bcbc6[_0xb7ba('0x1f')]===_0x232e40[_0xb7ba('0x24')];}
23
+ const _0x403c=['set','inlineannotations-detach-not-attached','delete','addObserver','setActiveAnnotation','_selectedAnnotations','add','view','context','getClientRects','targetRect','isFocused','afterInit','_closeAnnotation','refresh','requires','domConverter','_balloon','getByView','left','bottom','getBoundingClientRect','plugins','hasView','collapse','activeAnnotation','target','inlineannotations-attach-already-attached','editing','_manuallyClosed','find','change:height','switchTo','stopListening','focusTracker','keystrokes','right','updatePosition','_addedAnnotations','annotations','isAttached','_getBalloonTargetForAnnotation','inline','update','change:visibleView','document','destroy','viewRangeToDom','focus','_setSelectedAnnotations','includes','top','fromRect','_forceRefresh','register','selection','has','width','remove','_removeAnnotationFromBalloon','get','editor','every','isActive','blur','push','visibleView','attach','getOrderedSelectedAnnotations','Esc','_addAnnotationToBalloon','length','listenTo','map'];(function(_0x3d6ce7,_0x403c5b){const _0x2edf09=function(_0x3f5610){while(--_0x3f5610){_0x3d6ce7['push'](_0x3d6ce7['shift']());}};_0x2edf09(++_0x403c5b);}(_0x403c,0x166));const _0x2edf=function(_0x3d6ce7,_0x403c5b){_0x3d6ce7=_0x3d6ce7-0x0;let _0x2edf09=_0x403c[_0x3d6ce7];return _0x2edf09;};import{Plugin as _0x4e724e}from'ckeditor5/src/core';import _0x153a12 from'./annotationsuis';import _0x3b30c6 from'./editorannotations';import{ContextualBalloon as _0x4e3015}from'ckeditor5/src/ui';import{MouseObserver as _0x211659}from'ckeditor5/src/engine';import{CKEditorError as _0x262398,Rect as _0x453b06}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x4e724e{static get[_0x2edf('0x1b')](){return[_0x3b30c6,_0x4e3015,_0x153a12];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x246301){super(_0x246301),_0x246301[_0x2edf('0x28')]['view'][_0x2edf('0xf')](_0x211659),this[_0x2edf('0x34')]=!0x1,this[_0x2edf('0xc')]('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x246301['plugins'][_0x2edf('0x48')](_0x4e3015),this[_0x2edf('0x32')]=new Set(),this['_selectedAnnotations']=[],this[_0x2edf('0x41')]=!0x1;}['init'](){const _0x85ced1=this[_0x2edf('0x49')]['plugins'][_0x2edf('0x48')](_0x153a12);_0x85ced1[_0x2edf('0x14')]===this[_0x2edf('0x49')]&&(_0x85ced1[_0x2edf('0x42')]('inline',this),this['editor'][_0x2edf('0x2f')]['set'](_0x2edf('0x7'),(_0x4bf277,_0x3e7e8a)=>{const _0x3ad1f2=this[_0x2edf('0x1d')];if(this['isAttached']&&_0x3ad1f2[_0x2edf('0x4')]){const _0x4676be=this[_0x2edf('0x33')][_0x2edf('0x1e')](_0x3ad1f2[_0x2edf('0x4')]);_0x4676be&&this[_0x2edf('0x19')](_0x4676be),_0x3e7e8a();}}));}[_0x2edf('0x18')](){const _0x3a708e=this[_0x2edf('0x49')][_0x2edf('0x22')][_0x2edf('0x48')](_0x153a12);_0x3a708e[_0x2edf('0x14')]===this[_0x2edf('0x49')]&&(_0x3a708e['hasActive']()||_0x3a708e[_0x2edf('0x2c')](_0x2edf('0x36')));}[_0x2edf('0x10')](_0x4c0926){_0x4c0926!==this[_0x2edf('0x25')]&&(this[_0x2edf('0x25')]&&(this[_0x2edf('0x25')][_0x2edf('0x1')]=!0x1),_0x4c0926&&this[_0x2edf('0x49')]['ui'][_0x2edf('0x2e')]['isFocused']&&(this['annotations'][_0x2edf('0x44')](_0x4c0926)&&this[_0x2edf('0x8')](_0x4c0926,!0x0),_0x4c0926[_0x2edf('0x1')]=!0x0),_0x4c0926||this[_0x2edf('0x3d')]([]),this[_0x2edf('0x25')]=_0x4c0926);}[_0x2edf('0x5')](_0x315ffe){this[_0x2edf('0x33')]=_0x315ffe;const _0x5bc353=this['editor'][_0x2edf('0x22')]['get'](_0x153a12),_0xef47be=this['_balloon'];if(this[_0x2edf('0x34')])throw new _0x262398(_0x2edf('0x27'),this);if(_0x5bc353[_0x2edf('0x14')]!==this[_0x2edf('0x49')])throw new _0x262398('inlineannotations-not-allowed-with-context',this);const _0x496589=this[_0x2edf('0x49')][_0x2edf('0x22')]['get'](_0x3b30c6);this[_0x2edf('0xa')](_0x496589,_0x2edf('0x1a'),()=>{const _0x3c06f2=_0x496589[_0x2edf('0x6')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5f31ff,_0xac4391;!this[_0x2edf('0x41')]&&(_0x5f31ff=_0x3c06f2,_0xac4391=this[_0x2edf('0x11')],_0x5f31ff['length']===_0xac4391[_0x2edf('0x9')]&&_0x5f31ff[_0x2edf('0x0')](_0x4a4d2c=>_0xac4391[_0x2edf('0x3e')](_0x4a4d2c)))||(this['_forceRefresh']=!0x1,this[_0x2edf('0x3d')](_0x3c06f2),this['setActiveAnnotation'](_0x3c06f2[0x0]||null));}),this['listenTo'](_0x496589,_0x2edf('0x2'),(_0x12bb13,{isAnnotationTracked:_0x5f2656})=>{this['activeAnnotation']&&_0x5f2656(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x2edf('0x10')](null));}),this['listenTo'](this['editor']['ui'][_0x2edf('0x2e')],'change:isFocused',(_0x242402,_0x3d1a9e,_0x5d1b8d)=>{_0x5d1b8d||this[_0x2edf('0x10')](null);}),this[_0x2edf('0xa')](_0x315ffe,_0x2edf('0x46'),(_0x5bbf8a,_0x324847)=>{this[_0x2edf('0x47')](_0x324847),_0x324847===this['activeAnnotation']&&this[_0x2edf('0x10')](null);}),this[_0x2edf('0xa')](_0xef47be,_0x2edf('0x38'),(_0x49d9cc,_0x93866c,_0x4f9a8c,_0x5309e7)=>{_0x5309e7&&this[_0x2edf('0x2d')](_0x5309e7);const _0x5e5bbb=_0x315ffe[_0x2edf('0x1e')](_0x4f9a8c);_0x4f9a8c&&_0x5e5bbb&&(this[_0x2edf('0xa')](_0x4f9a8c,_0x2edf('0x2b'),()=>{_0xef47be[_0x2edf('0x31')]();}),this[_0x2edf('0xa')](_0x4f9a8c,'Esc',()=>{this['_closeAnnotation'](_0x5e5bbb),this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')][_0x2edf('0x3c')]();}),this[_0x2edf('0x25')]!==_0x5e5bbb&&this['setActiveAnnotation'](_0x5e5bbb));}),this[_0x2edf('0xa')](this[_0x2edf('0x49')]['ui'],_0x2edf('0x37'),()=>{_0xef47be['visibleView']&&(_0x315ffe[_0x2edf('0x1e')](_0xef47be[_0x2edf('0x4')])&&_0xef47be[_0x2edf('0x31')]());}),this['listenTo'](this['editor']['editing'][_0x2edf('0x13')][_0x2edf('0x39')],'mousedown',()=>{this[_0x2edf('0x41')]=!0x0,this[_0x2edf('0x29')]['clear']();}),this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')][_0x2edf('0x39')][_0x2edf('0x43')]['editableElement']&&this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')][_0x2edf('0x3c')](),this[_0x2edf('0x34')]=!0x0;}['detach'](){if(!this[_0x2edf('0x34')])throw new _0x262398(_0x2edf('0xd'),this);this[_0x2edf('0x10')](null);for(const _0x4e2068 of this[_0x2edf('0x32')])this['_removeAnnotationFromBalloon'](_0x4e2068);this[_0x2edf('0x2d')](),this['isAttached']=!0x1,this[_0x2edf('0x33')]=null;}[_0x2edf('0x3a')](){this[_0x2edf('0x34')]&&this['detach']();}[_0x2edf('0x3d')](_0x228172){for(const _0x5c98ea of this[_0x2edf('0x11')])_0x228172[_0x2edf('0x3e')](_0x5c98ea)||this['_manuallyClosed'][_0x2edf('0xe')](_0x5c98ea);for(const _0x409b25 of this[_0x2edf('0x33')])_0x228172['includes'](_0x409b25)||this[_0x2edf('0x47')](_0x409b25);if(this[_0x2edf('0x49')]['ui'][_0x2edf('0x2e')][_0x2edf('0x17')])for(const _0x921202 of _0x228172)this[_0x2edf('0x8')](_0x921202);this[_0x2edf('0x11')]=_0x228172;}[_0x2edf('0x8')](_0x16416d,_0x2ac9d7=!0x1){this[_0x2edf('0x29')][_0x2edf('0x44')](_0x16416d)||(this['_addedAnnotations'][_0x2edf('0x44')](_0x16416d)||this[_0x2edf('0x1d')][_0x2edf('0x23')](_0x16416d['view'])||(this['_addedAnnotations'][_0x2edf('0x12')](_0x16416d),this[_0x2edf('0x1d')][_0x2edf('0x12')]({'stackId':_0x16416d[_0x2edf('0x13')]['id'],'view':_0x16416d[_0x2edf('0x13')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x16416d)}})),_0x2ac9d7&&this[_0x2edf('0x1d')]['showStack'](_0x16416d[_0x2edf('0x13')]['id']));}[_0x2edf('0x35')](_0x74f163){const _0x346d56=_0x74f163[_0x2edf('0x26')],_0x14a59f=this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')],_0x294ee0=_0x14a59f['document'][_0x2edf('0x43')]['getFirstRange'](),_0x3222dc=_0x14a59f[_0x2edf('0x1c')][_0x2edf('0x3b')](_0x294ee0);if(_0x3222dc[_0x2edf('0x24')](!0x0),_0x346d56){if(_0x346d56 instanceof _0x453b06)return _0x346d56;let _0x146149=[];for(const _0x48a486 of _0x346d56)_0x146149['push'](...(_0x2f533d=_0x48a486[_0x2edf('0x15')](),Array['from'](_0x2f533d)[_0x2edf('0xb')](DOMRect[_0x2edf('0x40')])));_0x146149=function(_0x361d15){const _0x3caa8b=[];let _0x2499ad=_0x361d15[0x0];for(let _0x165077=0x1;_0x165077<_0x361d15[_0x2edf('0x9')];_0x165077++)F(_0x2499ad,_0x361d15[_0x165077])?_0x2499ad[_0x2edf('0x45')]+=_0x361d15[_0x165077]['width']:(_0x3caa8b[_0x2edf('0x3')](_0x2499ad),_0x2499ad=_0x361d15[_0x165077]);return _0x3caa8b[_0x2edf('0x3')](_0x2499ad),_0x3caa8b;}(_0x146149);const _0x161354=_0x3222dc[_0x2edf('0x21')]();return _0x146149[_0x2edf('0x2a')](_0x2e4b8f=>_0x2e4b8f['top']<=_0x161354[_0x2edf('0x3f')]&&_0x2e4b8f[_0x2edf('0x20')]>=_0x161354['bottom']&&_0x2e4b8f[_0x2edf('0x1f')]<=_0x161354[_0x2edf('0x1f')]&&_0x2e4b8f[_0x2edf('0x30')]>=_0x161354[_0x2edf('0x30')])||_0x146149[0x0];}var _0x2f533d;return _0x74f163[_0x2edf('0x16')]||_0x3222dc;}['_removeAnnotationFromBalloon'](_0x4d3447){this[_0x2edf('0x32')]['has'](_0x4d3447)&&this['_balloon'][_0x2edf('0x23')](_0x4d3447[_0x2edf('0x13')])&&(this[_0x2edf('0x32')][_0x2edf('0xe')](_0x4d3447),this[_0x2edf('0x1d')][_0x2edf('0x46')](_0x4d3447[_0x2edf('0x13')]));}[_0x2edf('0x19')](_0x3e9c24){this[_0x2edf('0x29')][_0x2edf('0x12')](_0x3e9c24),this['_removeAnnotationFromBalloon'](_0x3e9c24);}}function F(_0x39a9b0,_0x370044){return _0x39a9b0[_0x2edf('0x3f')]===_0x370044['top']&&_0x39a9b0[_0x2edf('0x20')]===_0x370044[_0x2edf('0x20')]&&_0x39a9b0['right']===_0x370044[_0x2edf('0x1f')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f5b=['remove','hasDomSelection','_annotationToNarrowView','element','_integrateWithEditorAnnotations','southArrowNorthEast','delete','has','EditorAnnotations','activeAnnotation','esc','get','isDirty','off','set','attach','detachFromDom','northArrowSouth','length','pluginName','_refreshPositioning','_destroyEditorAnnotationsIntegration','editors','init','southArrowNorthWest','_setSelectedAnnotations','_detachListeners','first','NarrowSidebar','defaultPositions','change:container','bodyCollection','focus','type','ck-sidebar--narrow','_hideBalloon','context','blur','narrowsidebar-attach-already-attached','getSidebarItemView','requires','refresh','values','northArrowSouthWest','destroy','pin','refreshPositioning','balloonPanelView','_editorAnnotations','mousedown','_showBalloon','contains','low','isVisible','locale','focusableElements','register','execute','stopListening','resize','from','add','content','view','number','setActiveAnnotation','find','preventClosingBalloon','isAttached','_domEmitter','target','_manuallyClosedAnnotationViews','uiUpdate','narrowSidebar','set:container','_detachFromContainer','narrowsidebar-detach-not-attached','_attachListeners','_refreshPositioningDebounced','clear','create','southArrowNorth','_selectedAnnotations','detach','keydown','annotationType','bind','getByView','stopPropagation','annotations','listenTo','plugins','cancel'];(function(_0xd0efd0,_0x5f5bb0){const _0xc73814=function(_0x1e2b42){while(--_0x1e2b42){_0xd0efd0['push'](_0xd0efd0['shift']());}};_0xc73814(++_0x5f5bb0);}(_0x5f5b,0x9a));const _0xc738=function(_0xd0efd0,_0x5f5bb0){_0xd0efd0=_0xd0efd0-0x0;let _0xc73814=_0x5f5b[_0xd0efd0];return _0xc73814;};import{ContextPlugin as _0x38cd2c,Context as _0x48535f}from'ckeditor5/src/core';import _0x1aeeff from'./annotationsuis';import _0x3b70c9 from'./sidebar';import _0x2d1ad3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5859a2,BodyCollection as _0xab949c}from'ckeditor5/src/ui';import{CKEditorError as _0x2d3f6e,DomEmitterMixin as _0x3db1db,keyCodes as _0x40330e,Collection as _0x44255a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1c266e}from'lodash-es';import _0x114b3a from'./editorannotations';export default class s extends _0x38cd2c{static get[_0xc738('0x48')](){return[_0x3b70c9,_0x1aeeff];}static get[_0xc738('0x33')](){return _0xc738('0x3c');}constructor(_0x15b948){super(_0x15b948),this[_0xc738('0x7')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xc738('0x8')]=Object[_0xc738('0x13')](_0x3db1db),this[_0xc738('0x22')]=new Map(),this[_0xc738('0x2e')]('activeAnnotation',null),this[_0xc738('0x1c')]=null,this[_0xc738('0x15')]=[],this[_0xc738('0x50')]=new _0x44255a(),this[_0xc738('0x11')]=_0x1c266e(()=>{this[_0xc738('0x34')]();},0xfa,{'leading':!0x1});}[_0xc738('0x37')](){this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x1aeeff)[_0xc738('0x58')](_0xc738('0xc'),this),this[_0xc738('0x3f')]=new _0xab949c(this[_0xc738('0x44')][_0xc738('0x56')]),this[_0xc738('0x4f')]=new _0x5859a2(this[_0xc738('0x44')][_0xc738('0x56')]),this['bodyCollection']['attachToDom'](),this[_0xc738('0x3f')][_0xc738('0x0')](this[_0xc738('0x4f')]);}[_0xc738('0x2f')](_0x40c871){this[_0xc738('0x1c')]=_0x40c871;const _0x3af15b=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9),_0x4543ae=this[_0xc738('0x4f')];if(_0x3af15b['_annotations']=_0x40c871,this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0x46'),this);this[_0xc738('0x7')]=!0x0,this['listenTo'](_0x3af15b,_0xc738('0xd'),()=>{this[_0xc738('0x16')](),this['listenTo'](_0x3af15b,_0xc738('0x3e'),_0x30c800=>{_0x30c800[_0xc738('0x2d')](),this[_0xc738('0x2f')](_0x40c871);});}),_0x3af15b['_attachToContainer']({'viewClass':_0xc738('0x42'),'spaceBetweenItems':0x5});const _0x426afa=_0x17437f=>{const _0x2fa37b=new _0x2d1ad3(this['context'][_0xc738('0x56')]);_0x3af15b['addAnnotation'](_0x17437f,_0x2fa37b),this['_annotationToNarrowView']['set'](_0x17437f,_0x2fa37b),_0x2fa37b[_0xc738('0x19')](_0xc738('0x2c'),_0xc738('0x18'),_0xc738('0x3'))['to'](_0x17437f[_0xc738('0x2')],_0xc738('0x2c'),_0xc738('0x41'),_0xc738('0x32')),_0x2fa37b['on'](_0xc738('0x59'),()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4543ae[_0xc738('0x1')][_0xc738('0x3b')]!==_0x17437f[_0xc738('0x2')]?(this[_0xc738('0x52')](_0x17437f),_0x17437f[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x40')](),this[_0xc738('0x4')](_0x17437f)):this[_0xc738('0x4')](null);});};for(const _0x5c147a of _0x40c871)_0x426afa(_0x5c147a);this[_0xc738('0x1d')](_0x40c871,'add',(_0x3c5492,_0x3ce3b2)=>{_0x426afa(_0x3ce3b2);}),this['listenTo'](_0x40c871,'remove',(_0x50ec5c,_0x131cb9,_0x348770)=>{this[_0xc738('0x22')][_0xc738('0x2b')](_0x131cb9)[_0xc738('0x4c')](),this[_0xc738('0x22')][_0xc738('0x26')](_0x131cb9),_0x3af15b['rearrange']({'removedAnnotation':_0x131cb9,'previousAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770-0x1),'nextAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770+0x1)}),_0x131cb9===this['activeAnnotation']&&this[_0xc738('0x4')](null);},{'priority':_0xc738('0x54')}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x40'),(_0x3bbf29,_0x2757de)=>{this[_0xc738('0x4')](_0x2757de);}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x45'),()=>{this[_0xc738('0x4')](null);}),this[_0xc738('0x8')]['listenTo'](document,_0xc738('0x17'),(_0x4258f4,_0x4d0ce0)=>{_0x4d0ce0['keyCode']===_0x40330e[_0xc738('0x2a')]&&_0x4543ae['isVisible']&&(this[_0xc738('0xa')]['add'](_0x4543ae[_0xc738('0x1')]['first']),this[_0xc738('0x43')](),_0x4d0ce0[_0xc738('0x1b')](),_0x4d0ce0['preventDefault']());}),this[_0xc738('0x8')][_0xc738('0x1d')](document,_0xc738('0x51'),(_0x56cd81,_0x1b9964)=>{const _0x48fc41=_0x1b9964[_0xc738('0x9')];_0x4543ae[_0xc738('0x55')]&&_0x4543ae[_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x3af15b[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x56cd81[_0xc738('0x6')]||this[_0xc738('0x29')]&&this[_0xc738('0x29')][_0xc738('0x57')][_0xc738('0x5')](_0x32fed8=>_0x32fed8['contains'](_0x48fc41))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0xc738('0x43')](),this[_0xc738('0x4')](null));});const _0x124ab3=this[_0xc738('0x44')]instanceof _0x48535f?this[_0xc738('0x44')][_0xc738('0x36')]:new _0x44255a([this['context']]);for(const _0x669483 of _0x124ab3)this[_0xc738('0x24')](_0x669483);this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x0'),(_0x1d2e2e,_0x9b7977)=>{this['listenTo'](_0x9b7977,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x9b7977);});}),this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x20'),(_0x1ffc21,_0x20895f)=>{_0x20895f['plugins']['has'](_0xc738('0x28'))&&this[_0xc738('0x35')](_0x20895f[_0xc738('0x1e')][_0xc738('0x2b')](_0xc738('0x28')));}),window['addEventListener'](_0xc738('0x5b'),this[_0xc738('0x11')]),this[_0xc738('0x34')]();}[_0xc738('0x4')](_0x4a00cd){if(_0x4a00cd===this[_0xc738('0x29')])return;const _0x30cd93=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9);if(_0x30cd93[_0xc738('0x49')]({'blurredAnnotation':this[_0xc738('0x29')],'activatedAnnotation':_0x4a00cd,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4a00cd)_0x30cd93[_0xc738('0x47')](_0x4a00cd)?this[_0xc738('0x52')](_0x4a00cd):this[_0xc738('0x43')]();else this[_0xc738('0x43')]();this[_0xc738('0x29')]=_0x4a00cd;}[_0xc738('0x16')](){if(!this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0xf'),this);this[_0xc738('0x4')](null);const _0xbc79ad=this['context'][_0xc738('0x1e')]['get'](_0x3b70c9);this[_0xc738('0x43')](),Array['from'](this[_0xc738('0x22')][_0xc738('0x4a')](),_0x94cd13=>_0x94cd13[_0xc738('0x4c')]()),this[_0xc738('0x22')][_0xc738('0x12')](),_0xbc79ad[_0xc738('0xe')](this[_0xc738('0x1c')]),this[_0xc738('0x5a')](),this[_0xc738('0x8')][_0xc738('0x5a')](),this[_0xc738('0x44')]instanceof _0x48535f&&this[_0xc738('0x5a')](this[_0xc738('0x44')][_0xc738('0x36')]);for(const _0x140ae2 of Array[_0xc738('0x5c')](this[_0xc738('0x50')]))this[_0xc738('0x35')](_0x140ae2);window['removeEventListener'](_0xc738('0x5b'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0xc738('0x1f')](),this[_0xc738('0x15')]=[],this[_0xc738('0x7')]=!0x1,this[_0xc738('0x1c')]=null;}[_0xc738('0x4c')](){this[_0xc738('0x7')]&&this[_0xc738('0x16')](),this[_0xc738('0x3f')][_0xc738('0x30')]();}[_0xc738('0x24')](_0x181849){const _0x39ff10=_0x181849[_0xc738('0x1e')]['get'](_0x114b3a),_0x11c1bb=this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x3b70c9),_0xd29d6=this[_0xc738('0x1c')],_0x322aa6=this[_0xc738('0x4f')],_0x1e34ea=()=>{const _0xbf8f29=_0x39ff10['getOrderedSelectedAnnotations']({'annotations':this[_0xc738('0x1c')],'activeAnnotation':this[_0xc738('0x29')]});this[_0xc738('0x39')](_0xbf8f29),this['setActiveAnnotation'](_0xbf8f29[0x0]||null);};this['listenTo'](_0x39ff10,_0xc738('0x49'),_0x1e34ea),this[_0xc738('0x1d')](_0x39ff10,_0xc738('0x45'),(_0x13cc63,{isAnnotationTracked:_0x4df64a})=>{this['activeAnnotation']&&_0x4df64a(this[_0xc738('0x29')])&&(this[_0xc738('0x39')]([]),this[_0xc738('0x4')](null));}),this['listenTo'](_0x39ff10,_0xc738('0xb'),()=>{this[_0xc738('0x11')]();}),this[_0xc738('0x1d')](_0xd29d6,_0xc738('0x45'),_0xcf5d73=>{_0x39ff10[_0xc738('0x21')]()&&_0xcf5d73['stop']();},{'priority':'high'}),this['listenTo'](this[_0xc738('0x8')],'mousedown',(_0x24a7e4,_0x1ccb2f)=>{const _0x396a0a=_0x1ccb2f[_0xc738('0x9')];_0x322aa6[_0xc738('0x55')]&&_0x322aa6[_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||_0x11c1bb['view'][_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||this[_0xc738('0x29')]&&_0x39ff10['hasDomSelection']()&&(_0x1e34ea(),_0x24a7e4[_0xc738('0x6')]=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x39ff10);}[_0xc738('0x35')](_0x581bb2){_0x581bb2&&(this[_0xc738('0x5a')](_0x581bb2),this['_editorAnnotations'][_0xc738('0x20')](_0x581bb2));}[_0xc738('0x39')](_0xb40a40){for(const _0x2d2b8a of this[_0xc738('0x15')])_0xb40a40['includes'](_0x2d2b8a)||this[_0xc738('0xa')][_0xc738('0x26')](_0x2d2b8a['view']);this[_0xc738('0x15')]=_0xb40a40;}[_0xc738('0x34')](){const _0x18d01c=this[_0xc738('0x4f')];this[_0xc738('0x1c')][_0xc738('0x4e')](),_0x18d01c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x252253){if(this[_0xc738('0xa')][_0xc738('0x27')](_0x252253['view']))return;const _0x2a4765=this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x3b')];_0x2a4765!==_0x252253[_0xc738('0x2')]?(_0x2a4765&&this[_0xc738('0x3a')](_0x2a4765),this['_attachListeners'](_0x252253['view']),this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x12')](),this[_0xc738('0x4f')]['content'][_0xc738('0x0')](_0x252253[_0xc738('0x2')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x212f9a=this['balloonPanelView'][_0xc738('0x1')][_0xc738('0x3b')],_0x2d7d92=_0x212f9a&&this[_0xc738('0x1c')][_0xc738('0x1a')](_0x212f9a);if(!_0x2d7d92||!this[_0xc738('0x22')][_0xc738('0x27')](_0x2d7d92))return;const _0x2aaea9=this[_0xc738('0x22')][_0xc738('0x2b')](_0x2d7d92)[_0xc738('0x23')],_0x45c7ca=function(){const _0x1b2546=_0x5859a2[_0xc738('0x3d')];return[_0x1b2546[_0xc738('0x25')],_0x1b2546['northArrowSouthEast'],_0x1b2546[_0xc738('0x14')],_0x1b2546[_0xc738('0x31')],_0x1b2546[_0xc738('0x38')],_0x1b2546[_0xc738('0x4b')]];}();this['balloonPanelView'][_0xc738('0x4d')]({'target':_0x2aaea9,'positions':_0x45c7ca});}[_0xc738('0x43')](){const _0x11e906=this[_0xc738('0x4f')],_0x1d3484=_0x11e906['content'][_0xc738('0x3b')];_0x1d3484&&(this['_detachListeners'](_0x1d3484),_0x11e906['unpin'](),_0x11e906[_0xc738('0x1')]['clear']());}[_0xc738('0x10')](_0x281a29){this[_0xc738('0x1d')](_0x281a29,'change:height',()=>this['_updateBalloonPosition']()),this[_0xc738('0x1d')](_0x281a29,'Esc',(_0x5e8be9,_0xe87ba0)=>{this[_0xc738('0xa')]['add'](_0x281a29),this[_0xc738('0x43')](),_0xe87ba0();});}['_detachListeners'](_0x4725d3){this[_0xc738('0x5a')](_0x4725d3);}}
23
+ const _0x1341=['southArrowNorthEast','annotations','requires','ck-sidebar--narrow','view','getOrderedSelectedAnnotations','addAnnotation','type','pin','set','_editorAnnotations','Esc','contains','refresh','change:height','stopPropagation','northArrowSouth','balloonPanelView','delete','execute','NarrowSidebar','stop','isDirty','low','esc','narrowSidebar','add','change:container','hasDomSelection','_detachListeners','narrowsidebar-attach-already-attached','_refreshPositioningDebounced','locale','_updateBalloonPosition','get','plugins','northArrowSouthWest','target','content','find','from','first','blur','bind','listenTo','resize','southArrowNorthWest','southArrowNorth','high','ready','includes','attachToDom','stopListening','_showBalloon','attach','rearrange','clear','northArrowSouthEast','_annotationToNarrowView','EditorAnnotations','isVisible','has','isAttached','number','remove','preventClosingBalloon','_integrateWithEditorAnnotations','mousedown','element','unpin','context','keydown','_destroyEditorAnnotationsIntegration','defaultPositions','removeEventListener','_hideBalloon','_refreshPositioning','bodyCollection','detachFromDom','create','focusableElements','off','_selectedAnnotations','focus','_domEmitter','destroy','detach','narrowsidebar-detach-not-attached','editors','_detachFromContainer','getSidebarItemView','_annotations','activeAnnotation','setActiveAnnotation','annotationType','_setSelectedAnnotations','cancel','_manuallyClosedAnnotationViews','_attachListeners'];(function(_0x386734,_0x1341a5){const _0x2b009f=function(_0x5b998e){while(--_0x5b998e){_0x386734['push'](_0x386734['shift']());}};_0x2b009f(++_0x1341a5);}(_0x1341,0x151));const _0x2b00=function(_0x386734,_0x1341a5){_0x386734=_0x386734-0x0;let _0x2b009f=_0x1341[_0x386734];return _0x2b009f;};import{ContextPlugin as _0x2607bc,Context as _0x4e3b65}from'ckeditor5/src/core';import _0x3b462b from'./annotationsuis';import _0x1d3700 from'./sidebar';import _0x1ba2e9 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x36c06f,BodyCollection as _0x4e972a}from'ckeditor5/src/ui';import{CKEditorError as _0x4ac6c7,DomEmitterMixin as _0x1463ea,keyCodes as _0x33c58d,Collection as _0x38aa26}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0xd5308e}from'lodash-es';import _0x3fca26 from'./editorannotations';export default class s extends _0x2607bc{static get[_0x2b00('0x3d')](){return[_0x1d3700,_0x3b462b];}static get['pluginName'](){return _0x2b00('0x4f');}constructor(_0x2d3217){super(_0x2d3217),this[_0x2b00('0x16')]=!0x1,this[_0x2b00('0x39')]=new Set(),this[_0x2b00('0x2c')]=Object[_0x2b00('0x27')](_0x1463ea),this['_annotationToNarrowView']=new Map(),this[_0x2b00('0x44')](_0x2b00('0x34'),null),this[_0x2b00('0x3c')]=null,this[_0x2b00('0x2a')]=[],this['_editorAnnotations']=new _0x38aa26(),this['_refreshPositioningDebounced']=_0xd5308e(()=>{this[_0x2b00('0x24')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x2b00('0x1e')][_0x2b00('0x5e')][_0x2b00('0x5d')](_0x3b462b)['register'](_0x2b00('0x54'),this),this[_0x2b00('0x25')]=new _0x4e972a(this['context'][_0x2b00('0x5b')]),this[_0x2b00('0x4c')]=new _0x36c06f(this[_0x2b00('0x1e')][_0x2b00('0x5b')]),this[_0x2b00('0x25')][_0x2b00('0xb')](),this[_0x2b00('0x25')]['add'](this[_0x2b00('0x4c')]);}[_0x2b00('0xe')](_0x391f3d){this['annotations']=_0x391f3d;const _0x36c6d1=this[_0x2b00('0x1e')][_0x2b00('0x5e')][_0x2b00('0x5d')](_0x1d3700),_0x57d56f=this[_0x2b00('0x4c')];if(_0x36c6d1[_0x2b00('0x33')]=_0x391f3d,this[_0x2b00('0x16')])throw new _0x4ac6c7(_0x2b00('0x59'),this);this['isAttached']=!0x0,this[_0x2b00('0x4')](_0x36c6d1,'set:container',()=>{this[_0x2b00('0x2e')](),this['listenTo'](_0x36c6d1,_0x2b00('0x56'),_0x591556=>{_0x591556[_0x2b00('0x29')](),this['attach'](_0x391f3d);});}),_0x36c6d1['_attachToContainer']({'viewClass':_0x2b00('0x3e'),'spaceBetweenItems':0x5});const _0x5e6d2b=_0x514cda=>{const _0x4f6e92=new _0x1ba2e9(this[_0x2b00('0x1e')]['locale']);_0x36c6d1[_0x2b00('0x41')](_0x514cda,_0x4f6e92),this[_0x2b00('0x12')][_0x2b00('0x44')](_0x514cda,_0x4f6e92),_0x4f6e92[_0x2b00('0x3')](_0x2b00('0x51'),_0x2b00('0x36'),_0x2b00('0x17'))['to'](_0x514cda[_0x2b00('0x3f')],'isDirty',_0x2b00('0x42'),'length'),_0x4f6e92['on'](_0x2b00('0x4e'),()=>{this['_manuallyClosedAnnotationViews'][_0x2b00('0x10')](),_0x57d56f[_0x2b00('0x61')]['first']!==_0x514cda[_0x2b00('0x3f')]?(this[_0x2b00('0xd')](_0x514cda),_0x514cda[_0x2b00('0x3f')][_0x2b00('0x1c')][_0x2b00('0x2b')](),this[_0x2b00('0x35')](_0x514cda)):this[_0x2b00('0x35')](null);});};for(const _0x1f080f of _0x391f3d)_0x5e6d2b(_0x1f080f);this[_0x2b00('0x4')](_0x391f3d,_0x2b00('0x55'),(_0x79b818,_0x5bd524)=>{_0x5e6d2b(_0x5bd524);}),this['listenTo'](_0x391f3d,_0x2b00('0x18'),(_0x52d696,_0x39dbf5,_0x3dbe44)=>{this[_0x2b00('0x12')]['get'](_0x39dbf5)[_0x2b00('0x2d')](),this[_0x2b00('0x12')]['delete'](_0x39dbf5),_0x36c6d1[_0x2b00('0xf')]({'removedAnnotation':_0x39dbf5,'previousAnnotation':_0x391f3d['get'](_0x3dbe44-0x1),'nextAnnotation':_0x391f3d[_0x2b00('0x5d')](_0x3dbe44+0x1)}),_0x39dbf5===this[_0x2b00('0x34')]&&this[_0x2b00('0x35')](null);},{'priority':_0x2b00('0x52')}),this[_0x2b00('0x4')](_0x391f3d,_0x2b00('0x2b'),(_0x22a41d,_0x4bc5d0)=>{this[_0x2b00('0x35')](_0x4bc5d0);}),this['listenTo'](_0x391f3d,_0x2b00('0x2'),()=>{this[_0x2b00('0x35')](null);}),this['_domEmitter'][_0x2b00('0x4')](document,_0x2b00('0x1f'),(_0x2aba96,_0x36d94c)=>{_0x36d94c['keyCode']===_0x33c58d[_0x2b00('0x53')]&&_0x57d56f['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x57d56f[_0x2b00('0x61')][_0x2b00('0x1')]),this[_0x2b00('0x23')](),_0x36d94c[_0x2b00('0x4a')](),_0x36d94c['preventDefault']());}),this[_0x2b00('0x2c')][_0x2b00('0x4')](document,'mousedown',(_0x52074e,_0x54ceb6)=>{const _0x29e4bf=_0x54ceb6['target'];_0x57d56f['isVisible']&&_0x57d56f[_0x2b00('0x1c')][_0x2b00('0x47')](_0x29e4bf)||_0x36c6d1[_0x2b00('0x3f')][_0x2b00('0x1c')][_0x2b00('0x47')](_0x29e4bf)||_0x52074e[_0x2b00('0x19')]||this['activeAnnotation']&&this['activeAnnotation'][_0x2b00('0x28')][_0x2b00('0x62')](_0xc6e354=>_0xc6e354[_0x2b00('0x47')](_0x29e4bf))||(this[_0x2b00('0x39')][_0x2b00('0x10')](),this['_hideBalloon'](),this[_0x2b00('0x35')](null));});const _0x44a0e4=this['context']instanceof _0x4e3b65?this[_0x2b00('0x1e')][_0x2b00('0x30')]:new _0x38aa26([this[_0x2b00('0x1e')]]);for(const _0x2dfdda of _0x44a0e4)this[_0x2b00('0x1a')](_0x2dfdda);this[_0x2b00('0x4')](_0x44a0e4,'add',(_0x2ecac9,_0x1a7215)=>{this[_0x2b00('0x4')](_0x1a7215,_0x2b00('0x9'),()=>{this[_0x2b00('0x1a')](_0x1a7215);});}),this[_0x2b00('0x4')](_0x44a0e4,_0x2b00('0x18'),(_0x402cb7,_0xf29a8c)=>{_0xf29a8c[_0x2b00('0x5e')][_0x2b00('0x15')](_0x2b00('0x13'))&&this[_0x2b00('0x20')](_0xf29a8c[_0x2b00('0x5e')][_0x2b00('0x5d')](_0x2b00('0x13')));}),window['addEventListener'](_0x2b00('0x5'),this[_0x2b00('0x5a')]),this[_0x2b00('0x24')]();}[_0x2b00('0x35')](_0x252b50){if(_0x252b50===this[_0x2b00('0x34')])return;const _0x4abbc2=this[_0x2b00('0x1e')][_0x2b00('0x5e')][_0x2b00('0x5d')](_0x1d3700);if(_0x4abbc2[_0x2b00('0x48')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x252b50,'disableAnimationOnActivatedAnnotation':!0x0}),_0x252b50)_0x4abbc2[_0x2b00('0x32')](_0x252b50)?this[_0x2b00('0xd')](_0x252b50):this[_0x2b00('0x23')]();else this[_0x2b00('0x23')]();this[_0x2b00('0x34')]=_0x252b50;}[_0x2b00('0x2e')](){if(!this[_0x2b00('0x16')])throw new _0x4ac6c7(_0x2b00('0x2f'),this);this[_0x2b00('0x35')](null);const _0x555a1a=this[_0x2b00('0x1e')]['plugins'][_0x2b00('0x5d')](_0x1d3700);this[_0x2b00('0x23')](),Array[_0x2b00('0x0')](this[_0x2b00('0x12')]['values'](),_0x4d2d81=>_0x4d2d81[_0x2b00('0x2d')]()),this['_annotationToNarrowView'][_0x2b00('0x10')](),_0x555a1a[_0x2b00('0x31')](this['annotations']),this[_0x2b00('0xc')](),this[_0x2b00('0x2c')][_0x2b00('0xc')](),this[_0x2b00('0x1e')]instanceof _0x4e3b65&&this[_0x2b00('0xc')](this['context'][_0x2b00('0x30')]);for(const _0x53a8e1 of Array[_0x2b00('0x0')](this[_0x2b00('0x45')]))this['_destroyEditorAnnotationsIntegration'](_0x53a8e1);window[_0x2b00('0x22')]('resize',this['_refreshPositioningDebounced']),this[_0x2b00('0x5a')][_0x2b00('0x38')](),this[_0x2b00('0x2a')]=[],this[_0x2b00('0x16')]=!0x1,this['annotations']=null;}[_0x2b00('0x2d')](){this[_0x2b00('0x16')]&&this[_0x2b00('0x2e')](),this[_0x2b00('0x25')][_0x2b00('0x26')]();}[_0x2b00('0x1a')](_0x292d53){const _0x2f4013=_0x292d53[_0x2b00('0x5e')][_0x2b00('0x5d')](_0x3fca26),_0x2c7ca7=this[_0x2b00('0x1e')]['plugins']['get'](_0x1d3700),_0x747cd1=this[_0x2b00('0x3c')],_0x47898e=this[_0x2b00('0x4c')],_0xb86204=()=>{const _0x19747b=_0x2f4013[_0x2b00('0x40')]({'annotations':this[_0x2b00('0x3c')],'activeAnnotation':this[_0x2b00('0x34')]});this[_0x2b00('0x37')](_0x19747b),this[_0x2b00('0x35')](_0x19747b[0x0]||null);};this[_0x2b00('0x4')](_0x2f4013,_0x2b00('0x48'),_0xb86204),this[_0x2b00('0x4')](_0x2f4013,_0x2b00('0x2'),(_0x1a6149,{isAnnotationTracked:_0x1566bc})=>{this[_0x2b00('0x34')]&&_0x1566bc(this[_0x2b00('0x34')])&&(this[_0x2b00('0x37')]([]),this[_0x2b00('0x35')](null));}),this[_0x2b00('0x4')](_0x2f4013,'uiUpdate',()=>{this[_0x2b00('0x5a')]();}),this[_0x2b00('0x4')](_0x747cd1,_0x2b00('0x2'),_0x20e507=>{_0x2f4013['hasDomSelection']()&&_0x20e507[_0x2b00('0x50')]();},{'priority':_0x2b00('0x8')}),this[_0x2b00('0x4')](this['_domEmitter'],_0x2b00('0x1b'),(_0xe32dfd,_0x2ca0b6)=>{const _0x405509=_0x2ca0b6[_0x2b00('0x60')];_0x47898e[_0x2b00('0x14')]&&_0x47898e['element'][_0x2b00('0x47')](_0x405509)||_0x2c7ca7[_0x2b00('0x3f')]['element'][_0x2b00('0x47')](_0x405509)||this['activeAnnotation']&&_0x2f4013[_0x2b00('0x57')]()&&(_0xb86204(),_0xe32dfd['preventClosingBalloon']=!0x0);},{'priority':_0x2b00('0x8')}),this[_0x2b00('0x45')][_0x2b00('0x55')](_0x2f4013);}[_0x2b00('0x20')](_0x72a7e8){_0x72a7e8&&(this[_0x2b00('0xc')](_0x72a7e8),this[_0x2b00('0x45')]['remove'](_0x72a7e8));}[_0x2b00('0x37')](_0x2ad7c3){for(const _0x3f72aa of this[_0x2b00('0x2a')])_0x2ad7c3[_0x2b00('0xa')](_0x3f72aa)||this[_0x2b00('0x39')][_0x2b00('0x4d')](_0x3f72aa['view']);this['_selectedAnnotations']=_0x2ad7c3;}[_0x2b00('0x24')](){const _0x569047=this['balloonPanelView'];this[_0x2b00('0x3c')]['refreshPositioning'](),_0x569047[_0x2b00('0x14')]&&this['_updateBalloonPosition']();}[_0x2b00('0xd')](_0x5e9264){if(this[_0x2b00('0x39')][_0x2b00('0x15')](_0x5e9264['view']))return;const _0x49ae4a=this['balloonPanelView'][_0x2b00('0x61')][_0x2b00('0x1')];_0x49ae4a!==_0x5e9264['view']?(_0x49ae4a&&this['_detachListeners'](_0x49ae4a),this[_0x2b00('0x3a')](_0x5e9264['view']),this['balloonPanelView'][_0x2b00('0x61')][_0x2b00('0x10')](),this[_0x2b00('0x4c')][_0x2b00('0x61')][_0x2b00('0x55')](_0x5e9264['view']),this[_0x2b00('0x5c')]()):this[_0x2b00('0x5c')]();}[_0x2b00('0x5c')](){const _0x14c04c=this[_0x2b00('0x4c')]['content']['first'],_0x127cea=_0x14c04c&&this['annotations']['getByView'](_0x14c04c);if(!_0x127cea||!this['_annotationToNarrowView'][_0x2b00('0x15')](_0x127cea))return;const _0x2bee7d=this['_annotationToNarrowView'][_0x2b00('0x5d')](_0x127cea)[_0x2b00('0x1c')],_0x398a24=function(){const _0x5a6d5a=_0x36c06f[_0x2b00('0x21')];return[_0x5a6d5a[_0x2b00('0x3b')],_0x5a6d5a[_0x2b00('0x11')],_0x5a6d5a[_0x2b00('0x7')],_0x5a6d5a[_0x2b00('0x4b')],_0x5a6d5a[_0x2b00('0x6')],_0x5a6d5a[_0x2b00('0x5f')]];}();this[_0x2b00('0x4c')][_0x2b00('0x43')]({'target':_0x2bee7d,'positions':_0x398a24});}[_0x2b00('0x23')](){const _0x3ce283=this[_0x2b00('0x4c')],_0x4e8c5c=_0x3ce283[_0x2b00('0x61')]['first'];_0x4e8c5c&&(this[_0x2b00('0x58')](_0x4e8c5c),_0x3ce283[_0x2b00('0x1d')](),_0x3ce283[_0x2b00('0x61')][_0x2b00('0x10')]());}[_0x2b00('0x3a')](_0x7d0455){this['listenTo'](_0x7d0455,_0x2b00('0x49'),()=>this[_0x2b00('0x5c')]()),this[_0x2b00('0x4')](_0x7d0455,_0x2b00('0x46'),(_0x550a23,_0x4dc5f6)=>{this[_0x2b00('0x39')]['add'](_0x7d0455),this['_hideBalloon'](),_0x4dc5f6();});}['_detachListeners'](_0x5a87df){this[_0x2b00('0xc')](_0x5a87df);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c84=['set','pluginName','length','listenTo','element','stopListening','list','_annotationToSidebarItemView','change:_lastItem','_recalculateBuffer','bottom','last','Sidebar','change:top','object','_sidebarItemViewToAnnotation','nodeType','context','clear','addAnnotation','_alignBeforeItem','remove','sidebar.container','container','_spaceBetweenItems','config','_alignToTargetRect','setContainer','refresh','add','_getTargetTop','_setItemTop','content','init','_attachToContainer','change:targetRect','unbind','top','delete','get','rearrange','bind','_destroySidebarItemView','sidebar.preventScrollOutOfView','getIndex','render','view','sidebar-attachtocontainer-missing-container','_activeAnnotation','_getMaxAvailableTop','isAnimationDisabled','_getItemBefore','updateHeight','minHeight','_targetTop','_updateLastItem','_annotations','targetRect','push','_alignForTopChange','target','_alignForBottomChange','max','_getItemAfter','_lastItem','_detachFromContainer','_recalculate','destroy','_createSidebarView','change:bottom','isActive','getSidebarItemView','_alignAfterItem'];(function(_0x96bae2,_0x5c84cd){const _0x46f340=function(_0x5d6f06){while(--_0x5d6f06){_0x96bae2['push'](_0x96bae2['shift']());}};_0x46f340(++_0x5c84cd);}(_0x5c84,0x8b));const _0x46f3=function(_0x96bae2,_0x5c84cd){_0x96bae2=_0x96bae2-0x0;let _0x46f340=_0x5c84[_0x96bae2];return _0x46f340;};import{ContextPlugin as _0x2b6b7a}from'ckeditor5/src/core';import{Rect as _0xac42cb,CKEditorError as _0x12cd43}from'ckeditor5/src/utils';import _0x4a0fd1 from'./view/sidebarview';import _0xb3a705 from'./view/sidebaritemview';export default class z extends _0x2b6b7a{static get[_0x46f3('0x8')](){return _0x46f3('0x13');}constructor(_0x95b9fa){super(_0x95b9fa),this['set'](_0x46f3('0x47'),void 0x0),this[_0x46f3('0x35')]=this['_createSidebarView'](),this[_0x46f3('0x7')](_0x46f3('0x1e'),null),this[_0x46f3('0x1f')]=0x19,this[_0x46f3('0x16')]=new Map(),this[_0x46f3('0xe')]=new Map(),this['context']['config']['define'](_0x46f3('0x32'),!0x1),this[_0x46f3('0x3f')]=null,this[_0x46f3('0x37')]=null,this['_recalculateBuffer']=[];}[_0x46f3('0x28')](){const _0x14eebc=this[_0x46f3('0x18')][_0x46f3('0x20')]['get'](_0x46f3('0x1d'));_0x14eebc&&this[_0x46f3('0x22')](_0x14eebc);}[_0x46f3('0x22')](_0xaee4f7){if(!y(_0xaee4f7))throw new _0x12cd43('sidebar-setcontainer-invalid-element');this[_0x46f3('0x1e')]=_0xaee4f7;}[_0x46f3('0x29')]({viewClass:_0x4f69cf='',spaceBetweenItems:_0x1381b9=0x19}={}){if(!y(this[_0x46f3('0x1e')]))throw new _0x12cd43(_0x46f3('0x36'),this);this[_0x46f3('0x1e')]['appendChild'](this[_0x46f3('0x35')]['element']),this[_0x46f3('0x35')]['class']=_0x4f69cf,this[_0x46f3('0x1f')]=_0x1381b9;}[_0x46f3('0x2f')]({removedAnnotation:_0x31a084,previousAnnotation:_0x48d844,nextAnnotation:_0x4cc780}){const _0x1dc7fa=this[_0x46f3('0x5')](_0x31a084);this[_0x46f3('0x35')][_0x46f3('0xd')][_0x46f3('0x1c')](_0x1dc7fa),this[_0x46f3('0x31')](_0x31a084),_0x48d844&&this['_alignToTargetRect'](this[_0x46f3('0x5')](_0x48d844)),_0x4cc780&&this[_0x46f3('0x21')](this[_0x46f3('0x5')](_0x4cc780)),this[_0x46f3('0x3e')]();}[_0x46f3('0x23')]({blurredAnnotation:_0x4049f3,activatedAnnotation:_0x5376aa,disableAnimationOnActivatedAnnotation:_0x33e96b}){if(this['_activeAnnotation']=_0x5376aa,_0x4049f3){_0x4049f3[_0x46f3('0x4')]=!0x1;const _0x54d338=this[_0x46f3('0x5')](_0x4049f3);_0x54d338&&_0x33e96b&&(_0x54d338[_0x46f3('0x39')]=!0x1);}if(_0x5376aa){const _0x157b3b=this[_0x46f3('0x5')](_0x5376aa);_0x157b3b&&(_0x5376aa[_0x46f3('0x4')]=!0x0,_0x33e96b&&(_0x157b3b[_0x46f3('0x39')]=!0x0,_0x157b3b[_0x46f3('0x2c')]+=0x1),this['_alignToTargetRect'](_0x157b3b));}}[_0x46f3('0x48')](_0x32f979){if(this['view'][_0x46f3('0xb')]['remove'](),_0x32f979)for(const _0x21343b of _0x32f979)this[_0x46f3('0x31')](_0x21343b);this[_0x46f3('0x35')][_0x46f3('0xd')][_0x46f3('0x19')](),this[_0x46f3('0x35')]['class']='',this[_0x46f3('0x47')]=null;}[_0x46f3('0x1a')](_0x3e6610,_0x47017a){_0x47017a||(_0x47017a=_0x3e6610[_0x46f3('0x35')]);const _0x18863d=new _0xb3a705(this['context']['locale']);this[_0x46f3('0x16')][_0x46f3('0x7')](_0x18863d,_0x3e6610),this['_annotationToSidebarItemView'][_0x46f3('0x7')](_0x3e6610,_0x18863d),_0x18863d['content'][_0x46f3('0x24')](_0x47017a),this['listenTo'](_0x3e6610[_0x46f3('0x35')],_0x46f3('0x2a'),(_0x5b1d21,_0x16fca9,_0x10a105)=>{const _0x224376=this[_0x46f3('0x25')](_0x3e6610,_0x10a105);_0x18863d[_0x46f3('0x3d')]!=_0x224376&&(_0x18863d[_0x46f3('0x3d')]=_0x224376,this[_0x46f3('0x26')](_0x18863d,_0x224376));}),this[_0x46f3('0xa')](_0x18863d,_0x46f3('0x14'),()=>{this[_0x46f3('0x0')](_0x18863d,'top');}),this['listenTo'](_0x18863d,_0x46f3('0x3'),()=>{this[_0x46f3('0x0')](_0x18863d,_0x46f3('0x11'));}),this[_0x46f3('0x21')](_0x18863d);const _0x1365dd=this[_0x46f3('0x3a')](_0x18863d);if(_0x1365dd)this['_alignAfterItem'](_0x1365dd,_0x18863d)||this[_0x46f3('0x21')](_0x18863d);else this[_0x46f3('0x21')](_0x18863d);return this[_0x46f3('0x3e')](),this['view'][_0x46f3('0xd')][_0x46f3('0x24')](_0x18863d),_0x18863d;}[_0x46f3('0x42')](_0x5149f8){if(!_0x5149f8[_0x46f3('0x27')][_0x46f3('0x9')])return;const _0x4db7fe=this[_0x46f3('0x3a')](_0x5149f8);if(!_0x4db7fe)return;const _0x444b2e=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x4db7fe),_0x508c5f=this[_0x46f3('0x37')];_0x508c5f&&_0x508c5f===_0x444b2e?this[_0x46f3('0x6')](_0x4db7fe,_0x5149f8):this['_alignBeforeItem'](_0x5149f8,_0x4db7fe);}[_0x46f3('0x44')](_0xf29491){if(!_0xf29491[_0x46f3('0x27')]['length'])return;const _0x845df2=this['_getItemAfter'](_0xf29491);if(!_0x845df2)return;const _0x249330=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x845df2),_0x54466f=this[_0x46f3('0x18')][_0x46f3('0x20')][_0x46f3('0x2e')](_0x46f3('0x32')),_0x42964c=this['_activeAnnotation'];_0x42964c&&_0x42964c===_0x249330&&_0x54466f?(this[_0x46f3('0x1b')](_0x845df2,_0xf29491),this['_alignAfterItem'](_0xf29491,_0x845df2)):_0x42964c&&_0x42964c===_0x249330?this['_alignBeforeItem'](_0x845df2,_0xf29491):this[_0x46f3('0x6')](_0xf29491,_0x845df2);}[_0x46f3('0x0')](_0x450384,_0x4dc428){0x0===this[_0x46f3('0x10')][_0x46f3('0x9')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5ea346,changedProp:_0x2e7782}of this['_recalculateBuffer'])'top'===_0x2e7782?this[_0x46f3('0x42')](_0x5ea346):this['_alignForBottomChange'](_0x5ea346);this[_0x46f3('0x10')]=[];},0xa),this[_0x46f3('0x10')][_0x46f3('0x41')]({'sidebarItemView':_0x450384,'changedProp':_0x4dc428});}[_0x46f3('0x5')](_0xd042c4){return this['_annotationToSidebarItemView'][_0x46f3('0x2e')](_0xd042c4);}[_0x46f3('0x1')](){this['stopListening'](),this[_0x46f3('0x35')][_0x46f3('0x1')]();}[_0x46f3('0x31')](_0x2b95ff){const _0x39e7b3=this[_0x46f3('0x5')](_0x2b95ff);this[_0x46f3('0xc')](_0x39e7b3),this[_0x46f3('0xc')](_0x2b95ff['view']),_0x39e7b3[_0x46f3('0x1')](),this[_0x46f3('0xe')][_0x46f3('0x2d')](_0x2b95ff),this[_0x46f3('0x16')][_0x46f3('0x2d')](_0x39e7b3);}[_0x46f3('0x2')](){const _0x42fae5=new _0x4a0fd1(this[_0x46f3('0x18')]['locale']);return _0x42fae5[_0x46f3('0x34')](),this['on'](_0x46f3('0xf'),(_0x130b74,_0x3531a7,_0x143214,_0x30c9d6)=>{_0x30c9d6&&_0x42fae5[_0x46f3('0x2b')](_0x46f3('0x3c')),_0x143214?_0x42fae5[_0x46f3('0x30')](_0x46f3('0x3c'))['to'](_0x143214,_0x46f3('0x11')):_0x42fae5[_0x46f3('0x3c')]=null;}),_0x42fae5;}[_0x46f3('0x3e')](){var _0x31d08a;this['_lastItem']=(null===(_0x31d08a=this[_0x46f3('0x3f')])||void 0x0===_0x31d08a?void 0x0:_0x31d08a[_0x46f3('0x12')])?this['getSidebarItemView'](this['_annotations']['last']):null;}[_0x46f3('0x3a')](_0x485352){var _0x176e92;const _0x4ceb7b=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x485352),_0x2b1e0e=_0x4ceb7b&&(null===(_0x176e92=this[_0x46f3('0x3f')])||void 0x0===_0x176e92?void 0x0:_0x176e92[_0x46f3('0x2e')](this[_0x46f3('0x3f')]['getIndex'](_0x4ceb7b)-0x1));return _0x2b1e0e&&this[_0x46f3('0x5')](_0x2b1e0e)||null;}[_0x46f3('0x46')](_0x45be03){var _0x3e7681;const _0x1ef5b8=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x45be03),_0x3525ed=_0x1ef5b8&&(null===(_0x3e7681=this['_annotations'])||void 0x0===_0x3e7681?void 0x0:_0x3e7681['get'](this[_0x46f3('0x3f')][_0x46f3('0x33')](_0x1ef5b8)+0x1));return _0x3525ed&&this['getSidebarItemView'](_0x3525ed)||null;}[_0x46f3('0x1b')](_0x2126cd,_0x58c016){_0x2126cd[_0x46f3('0x3b')]();const _0x49b94d=H(_0x58c016[_0x46f3('0x11')]+this['_spaceBetweenItems'],_0x2126cd[_0x46f3('0x2c')]);return!!_0x49b94d&&(this[_0x46f3('0x26')](_0x58c016,_0x58c016[_0x46f3('0x2c')]-_0x49b94d),!0x0);}['_alignAfterItem'](_0x895919,_0x781107){_0x895919[_0x46f3('0x3b')]();const _0x19686b=H(_0x895919[_0x46f3('0x11')]+this['_spaceBetweenItems'],_0x781107['top']);return!!_0x19686b&&(this[_0x46f3('0x26')](_0x781107,_0x781107[_0x46f3('0x2c')]+_0x19686b,!0x1),!0x0);}[_0x46f3('0x21')](_0x234a64){const _0x4ddffd=this[_0x46f3('0x16')]['get'](_0x234a64);if(!_0x4ddffd||!_0x4ddffd[_0x46f3('0x43')]||!_0x4ddffd[_0x46f3('0x40')])return;const _0x196042=this[_0x46f3('0x25')](_0x4ddffd,_0x4ddffd[_0x46f3('0x40')]);this[_0x46f3('0x26')](_0x234a64,_0x196042);}['_getTargetTop'](_0x3dd8e3,_0x1c35d6){if(null===_0x1c35d6)return 0x0;if(_0x3dd8e3[_0x46f3('0x43')]instanceof _0xac42cb)return _0x1c35d6[_0x46f3('0x2c')];{const _0x29ae1b=new _0xac42cb(this['view'][_0x46f3('0xb')])['top'];return _0x1c35d6[_0x46f3('0x2c')]-_0x29ae1b;}}[_0x46f3('0x26')](_0x3ecd0f,_0x337219,_0x53801a=this[_0x46f3('0x18')]['config'][_0x46f3('0x2e')](_0x46f3('0x32'))){_0x53801a&&(_0x337219=Math[_0x46f3('0x45')](_0x337219,this[_0x46f3('0x38')](_0x3ecd0f))),_0x3ecd0f[_0x46f3('0x2c')]=_0x337219;}['_getMaxAvailableTop'](_0x4c37ac){let _0x25ad42=this[_0x46f3('0x3a')](_0x4c37ac),_0x2a2110=0x0;for(;_0x25ad42;)_0x25ad42['updateHeight'](),_0x2a2110+=this[_0x46f3('0x1f')]+_0x25ad42['height'],_0x25ad42=this[_0x46f3('0x3a')](_0x25ad42);return _0x2a2110;}}function H(_0x340ad3,_0x48c5ae){return Math['max'](_0x340ad3-_0x48c5ae,0x0);}function y(_0x4d5230){return null!==_0x4d5230&&_0x46f3('0x15')==typeof _0x4d5230&&0x1===_0x4d5230[_0x46f3('0x17')];}
23
+ const _0x46c1=['sidebar.preventScrollOutOfView','_recalculateBuffer','clear','addAnnotation','_lastItem','get','rearrange','define','_setItemTop','unbind','refresh','config','_alignBeforeItem','_getMaxAvailableTop','context','_getItemAfter','_alignForBottomChange','_getTargetTop','_recalculate','_createSidebarView','bottom','_annotationToSidebarItemView','_targetTop','isActive','_updateLastItem','_detachFromContainer','targetRect','content','setContainer','init','Sidebar','list','change:targetRect','isAnimationDisabled','_destroySidebarItemView','getIndex','set','push','length','delete','destroy','listenTo','height','class','render','container','_activeAnnotation','minHeight','_alignAfterItem','change:bottom','remove','object','_alignToTargetRect','sidebar.container','nodeType','_alignForTopChange','view','change:_lastItem','stopListening','add','sidebar-setcontainer-invalid-element','_getItemBefore','last','_spaceBetweenItems','updateHeight','top','getSidebarItemView','pluginName','_sidebarItemViewToAnnotation','appendChild','_annotations'];(function(_0x1eded0,_0x46c109){const _0x50519e=function(_0x228194){while(--_0x228194){_0x1eded0['push'](_0x1eded0['shift']());}};_0x50519e(++_0x46c109);}(_0x46c1,0xe5));const _0x5051=function(_0x1eded0,_0x46c109){_0x1eded0=_0x1eded0-0x0;let _0x50519e=_0x46c1[_0x1eded0];return _0x50519e;};import{ContextPlugin as _0x4a77ec}from'ckeditor5/src/core';import{Rect as _0x11f21b,CKEditorError as _0x485d18}from'ckeditor5/src/utils';import _0x59c62b from'./view/sidebarview';import _0x3f676e from'./view/sidebaritemview';export default class z extends _0x4a77ec{static get[_0x5051('0x33')](){return _0x5051('0xe');}constructor(_0x2159a1){super(_0x2159a1),this[_0x5051('0x14')](_0x5051('0x3b'),void 0x0),this[_0x5051('0x28')]=this['_createSidebarView'](),this[_0x5051('0x14')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x5051('0x34')]=new Map(),this[_0x5051('0x5')]=new Map(),this[_0x5051('0x45')][_0x5051('0x42')][_0x5051('0x3e')](_0x5051('0x37'),!0x1),this[_0x5051('0x36')]=null,this[_0x5051('0x1e')]=null,this['_recalculateBuffer']=[];}[_0x5051('0xd')](){const _0x74fad5=this[_0x5051('0x45')][_0x5051('0x42')][_0x5051('0x3c')](_0x5051('0x25'));_0x74fad5&&this[_0x5051('0xc')](_0x74fad5);}['setContainer'](_0x279188){if(!y(_0x279188))throw new _0x485d18(_0x5051('0x2c'));this[_0x5051('0x1d')]=_0x279188;}['_attachToContainer']({viewClass:_0x532b8e='',spaceBetweenItems:_0x19ee25=0x19}={}){if(!y(this[_0x5051('0x1d')]))throw new _0x485d18('sidebar-attachtocontainer-missing-container',this);this[_0x5051('0x1d')][_0x5051('0x35')](this['view']['element']),this[_0x5051('0x28')]['class']=_0x532b8e,this[_0x5051('0x2f')]=_0x19ee25;}[_0x5051('0x3d')]({removedAnnotation:_0x416a27,previousAnnotation:_0x1ca5d6,nextAnnotation:_0x337385}){const _0xdfb0f0=this[_0x5051('0x32')](_0x416a27);this[_0x5051('0x28')][_0x5051('0xf')][_0x5051('0x22')](_0xdfb0f0),this[_0x5051('0x12')](_0x416a27),_0x1ca5d6&&this[_0x5051('0x24')](this['getSidebarItemView'](_0x1ca5d6)),_0x337385&&this[_0x5051('0x24')](this[_0x5051('0x32')](_0x337385)),this['_updateLastItem']();}[_0x5051('0x41')]({blurredAnnotation:_0xeab6fd,activatedAnnotation:_0x20eacc,disableAnimationOnActivatedAnnotation:_0x5035bb}){if(this[_0x5051('0x1e')]=_0x20eacc,_0xeab6fd){_0xeab6fd[_0x5051('0x7')]=!0x1;const _0xfd9c99=this[_0x5051('0x32')](_0xeab6fd);_0xfd9c99&&_0x5035bb&&(_0xfd9c99[_0x5051('0x11')]=!0x1);}if(_0x20eacc){const _0xa519b=this[_0x5051('0x32')](_0x20eacc);_0xa519b&&(_0x20eacc['isActive']=!0x0,_0x5035bb&&(_0xa519b[_0x5051('0x11')]=!0x0,_0xa519b[_0x5051('0x31')]+=0x1),this[_0x5051('0x24')](_0xa519b));}}[_0x5051('0x9')](_0x5de04e){if(this[_0x5051('0x28')]['element'][_0x5051('0x22')](),_0x5de04e)for(const _0x232340 of _0x5de04e)this[_0x5051('0x12')](_0x232340);this['view'][_0x5051('0xf')][_0x5051('0x39')](),this['view'][_0x5051('0x1b')]='',this[_0x5051('0x3b')]=null;}[_0x5051('0x3a')](_0x263450,_0x14f73c){_0x14f73c||(_0x14f73c=_0x263450[_0x5051('0x28')]);const _0x1a35cc=new _0x3f676e(this[_0x5051('0x45')]['locale']);this[_0x5051('0x34')]['set'](_0x1a35cc,_0x263450),this[_0x5051('0x5')][_0x5051('0x14')](_0x263450,_0x1a35cc),_0x1a35cc[_0x5051('0xb')][_0x5051('0x2b')](_0x14f73c),this[_0x5051('0x19')](_0x263450['view'],_0x5051('0x10'),(_0x16ab83,_0x2b18f5,_0x2af1ad)=>{const _0x48d216=this[_0x5051('0x1')](_0x263450,_0x2af1ad);_0x1a35cc['_targetTop']!=_0x48d216&&(_0x1a35cc[_0x5051('0x6')]=_0x48d216,this[_0x5051('0x3f')](_0x1a35cc,_0x48d216));}),this['listenTo'](_0x1a35cc,'change:top',()=>{this[_0x5051('0x2')](_0x1a35cc,_0x5051('0x31'));}),this[_0x5051('0x19')](_0x1a35cc,_0x5051('0x21'),()=>{this[_0x5051('0x2')](_0x1a35cc,_0x5051('0x4'));}),this['_alignToTargetRect'](_0x1a35cc);const _0x30e8fc=this[_0x5051('0x2d')](_0x1a35cc);if(_0x30e8fc)this['_alignAfterItem'](_0x30e8fc,_0x1a35cc)||this[_0x5051('0x24')](_0x1a35cc);else this[_0x5051('0x24')](_0x1a35cc);return this[_0x5051('0x8')](),this[_0x5051('0x28')][_0x5051('0xf')][_0x5051('0x2b')](_0x1a35cc),_0x1a35cc;}['_alignForTopChange'](_0x42fdb9){if(!_0x42fdb9[_0x5051('0xb')][_0x5051('0x16')])return;const _0x380cfe=this[_0x5051('0x2d')](_0x42fdb9);if(!_0x380cfe)return;const _0x1dc7ef=this['_sidebarItemViewToAnnotation'][_0x5051('0x3c')](_0x380cfe),_0xec1db5=this[_0x5051('0x1e')];_0xec1db5&&_0xec1db5===_0x1dc7ef?this[_0x5051('0x20')](_0x380cfe,_0x42fdb9):this[_0x5051('0x43')](_0x42fdb9,_0x380cfe);}[_0x5051('0x0')](_0x1c8f6f){if(!_0x1c8f6f[_0x5051('0xb')][_0x5051('0x16')])return;const _0x3c9def=this[_0x5051('0x46')](_0x1c8f6f);if(!_0x3c9def)return;const _0x10f6c8=this[_0x5051('0x34')][_0x5051('0x3c')](_0x3c9def),_0x2a677f=this[_0x5051('0x45')][_0x5051('0x42')][_0x5051('0x3c')]('sidebar.preventScrollOutOfView'),_0x8c0fdc=this[_0x5051('0x1e')];_0x8c0fdc&&_0x8c0fdc===_0x10f6c8&&_0x2a677f?(this[_0x5051('0x43')](_0x3c9def,_0x1c8f6f),this[_0x5051('0x20')](_0x1c8f6f,_0x3c9def)):_0x8c0fdc&&_0x8c0fdc===_0x10f6c8?this['_alignBeforeItem'](_0x3c9def,_0x1c8f6f):this[_0x5051('0x20')](_0x1c8f6f,_0x3c9def);}['_recalculate'](_0x50c9d6,_0x44255f){0x0===this[_0x5051('0x38')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1400fb,changedProp:_0x4c2227}of this[_0x5051('0x38')])_0x5051('0x31')===_0x4c2227?this[_0x5051('0x27')](_0x1400fb):this[_0x5051('0x0')](_0x1400fb);this['_recalculateBuffer']=[];},0xa),this[_0x5051('0x38')][_0x5051('0x15')]({'sidebarItemView':_0x50c9d6,'changedProp':_0x44255f});}[_0x5051('0x32')](_0x4dd154){return this['_annotationToSidebarItemView']['get'](_0x4dd154);}[_0x5051('0x18')](){this[_0x5051('0x2a')](),this[_0x5051('0x28')][_0x5051('0x18')]();}[_0x5051('0x12')](_0x4670e6){const _0x1051cf=this[_0x5051('0x32')](_0x4670e6);this[_0x5051('0x2a')](_0x1051cf),this[_0x5051('0x2a')](_0x4670e6[_0x5051('0x28')]),_0x1051cf['destroy'](),this['_annotationToSidebarItemView'][_0x5051('0x17')](_0x4670e6),this['_sidebarItemViewToAnnotation'][_0x5051('0x17')](_0x1051cf);}[_0x5051('0x3')](){const _0x4a843a=new _0x59c62b(this[_0x5051('0x45')]['locale']);return _0x4a843a[_0x5051('0x1c')](),this['on'](_0x5051('0x29'),(_0x380d9e,_0x557309,_0x32ecdc,_0x1d3c6e)=>{_0x1d3c6e&&_0x4a843a[_0x5051('0x40')](_0x5051('0x1f')),_0x32ecdc?_0x4a843a['bind'](_0x5051('0x1f'))['to'](_0x32ecdc,_0x5051('0x4')):_0x4a843a[_0x5051('0x1f')]=null;}),_0x4a843a;}['_updateLastItem'](){var _0x3820c4;this[_0x5051('0x3b')]=(null===(_0x3820c4=this[_0x5051('0x36')])||void 0x0===_0x3820c4?void 0x0:_0x3820c4[_0x5051('0x2e')])?this[_0x5051('0x32')](this[_0x5051('0x36')]['last']):null;}[_0x5051('0x2d')](_0x1f636a){var _0x3bacd0;const _0x51be73=this[_0x5051('0x34')][_0x5051('0x3c')](_0x1f636a),_0x19472b=_0x51be73&&(null===(_0x3bacd0=this[_0x5051('0x36')])||void 0x0===_0x3bacd0?void 0x0:_0x3bacd0[_0x5051('0x3c')](this['_annotations'][_0x5051('0x13')](_0x51be73)-0x1));return _0x19472b&&this[_0x5051('0x32')](_0x19472b)||null;}[_0x5051('0x46')](_0x15dd62){var _0x5cdc7c;const _0x368269=this[_0x5051('0x34')][_0x5051('0x3c')](_0x15dd62),_0x2e27ed=_0x368269&&(null===(_0x5cdc7c=this[_0x5051('0x36')])||void 0x0===_0x5cdc7c?void 0x0:_0x5cdc7c[_0x5051('0x3c')](this[_0x5051('0x36')][_0x5051('0x13')](_0x368269)+0x1));return _0x2e27ed&&this['getSidebarItemView'](_0x2e27ed)||null;}[_0x5051('0x43')](_0x290ac5,_0x143b37){_0x290ac5[_0x5051('0x30')]();const _0x569b75=H(_0x143b37['bottom']+this[_0x5051('0x2f')],_0x290ac5['top']);return!!_0x569b75&&(this[_0x5051('0x3f')](_0x143b37,_0x143b37[_0x5051('0x31')]-_0x569b75),!0x0);}[_0x5051('0x20')](_0x5aa93e,_0x4a3c13){_0x5aa93e[_0x5051('0x30')]();const _0x1bb4ba=H(_0x5aa93e[_0x5051('0x4')]+this[_0x5051('0x2f')],_0x4a3c13['top']);return!!_0x1bb4ba&&(this['_setItemTop'](_0x4a3c13,_0x4a3c13[_0x5051('0x31')]+_0x1bb4ba,!0x1),!0x0);}['_alignToTargetRect'](_0x24ca77){const _0x9d731c=this['_sidebarItemViewToAnnotation'][_0x5051('0x3c')](_0x24ca77);if(!_0x9d731c||!_0x9d731c['target']||!_0x9d731c[_0x5051('0xa')])return;const _0x31c185=this[_0x5051('0x1')](_0x9d731c,_0x9d731c['targetRect']);this[_0x5051('0x3f')](_0x24ca77,_0x31c185);}[_0x5051('0x1')](_0x59742c,_0x582a10){if(null===_0x582a10)return 0x0;if(_0x59742c['target']instanceof _0x11f21b)return _0x582a10[_0x5051('0x31')];{const _0x29ccda=new _0x11f21b(this[_0x5051('0x28')]['element'])[_0x5051('0x31')];return _0x582a10['top']-_0x29ccda;}}[_0x5051('0x3f')](_0x1e8375,_0x10b0ae,_0x442127=this[_0x5051('0x45')]['config'][_0x5051('0x3c')](_0x5051('0x37'))){_0x442127&&(_0x10b0ae=Math['max'](_0x10b0ae,this[_0x5051('0x44')](_0x1e8375))),_0x1e8375[_0x5051('0x31')]=_0x10b0ae;}[_0x5051('0x44')](_0x5e869a){let _0x3e94ec=this[_0x5051('0x2d')](_0x5e869a),_0x260337=0x0;for(;_0x3e94ec;)_0x3e94ec[_0x5051('0x30')](),_0x260337+=this['_spaceBetweenItems']+_0x3e94ec[_0x5051('0x1a')],_0x3e94ec=this[_0x5051('0x2d')](_0x3e94ec);return _0x260337;}}function H(_0x376bc8,_0x3892a6){return Math['max'](_0x376bc8-_0x3892a6,0x0);}function y(_0x230d72){return null!==_0x230d72&&_0x5051('0x23')==typeof _0x230d72&&0x1===_0x230d72[_0x5051('0x26')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2db3=['set','bind','counterView','ck-annotation-counter__badge--','ck-annotation-counter__badge--edit-mode','ck-annotation-counter','toString','setTemplate','icon','annotationType','children','isDirty','_badge','add','bindTemplate'];(function(_0x2c8fc1,_0x2db318){const _0x3143b6=function(_0x2125d1){while(--_0x2125d1){_0x2c8fc1['push'](_0x2c8fc1['shift']());}};_0x3143b6(++_0x2db318);}(_0x2db3,0x11f));const _0x3143=function(_0x2c8fc1,_0x2db318){_0x2c8fc1=_0x2c8fc1-0x0;let _0x3143b6=_0x2db3[_0x2c8fc1];return _0x3143b6;};import{ButtonView as _0x2bf98b,View as _0x4b121f}from'ckeditor5/src/ui';import _0x3fa7ec from'../../../theme/icons/add-comment.svg';export default class D extends _0x2bf98b{constructor(_0x2cf54d){super(_0x2cf54d);const _0x36bfac=this[_0x3143('0xc')];this[_0x3143('0xd')]('isDirty',!0x1),this[_0x3143('0xd')]('number',0x0),this[_0x3143('0xe')](_0x3143('0xa'))['to'](this,'isDirty',this,'number',(_0x367680,_0x457b42)=>_0x367680?'...':_0x457b42[_0x3143('0x4')]()),this[_0x3143('0xd')]('annotationType',''),this[_0x3143('0x6')]=_0x3fa7ec,this['extendTemplate']({'attributes':{'class':[_0x3143('0x3')]}}),this[_0x3143('0x0')]=new _0x4b121f(),this['counterView'][_0x3143('0x5')]({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x36bfac['to'](_0x3143('0x7'),_0x125691=>_0x3143('0x1')+_0x125691),_0x36bfac['if'](_0x3143('0x9'),_0x3143('0x2'))]},'children':[{'text':_0x36bfac['to']('_badge')}]}),this[_0x3143('0x8')][_0x3143('0xb')](this['counterView']);}}
23
+ const _0x3790=['bind','ck-annotation-counter__badge--edit-mode','...','ck-annotation-counter','number','span','annotationType','isDirty','_badge','bindTemplate','set','setTemplate','counterView','ck-annotation-counter__badge--'];(function(_0x5896d3,_0x379045){const _0x2d9e96=function(_0xee8769){while(--_0xee8769){_0x5896d3['push'](_0x5896d3['shift']());}};_0x2d9e96(++_0x379045);}(_0x3790,0x1d8));const _0x2d9e=function(_0x5896d3,_0x379045){_0x5896d3=_0x5896d3-0x0;let _0x2d9e96=_0x3790[_0x5896d3];return _0x2d9e96;};import{ButtonView as _0x12084c,View as _0x570c32}from'ckeditor5/src/ui';import _0x1583a7 from'../../../theme/icons/add-comment.svg';export default class D extends _0x12084c{constructor(_0x104763){super(_0x104763);const _0x3f56c4=this[_0x2d9e('0xd')];this[_0x2d9e('0x0')](_0x2d9e('0xb'),!0x1),this[_0x2d9e('0x0')](_0x2d9e('0x8'),0x0),this[_0x2d9e('0x4')](_0x2d9e('0xc'))['to'](this,_0x2d9e('0xb'),this,_0x2d9e('0x8'),(_0x4768c0,_0x86c126)=>_0x4768c0?_0x2d9e('0x6'):_0x86c126['toString']()),this[_0x2d9e('0x0')](_0x2d9e('0xa'),''),this['icon']=_0x1583a7,this['extendTemplate']({'attributes':{'class':[_0x2d9e('0x7')]}}),this[_0x2d9e('0x2')]=new _0x570c32(),this[_0x2d9e('0x2')][_0x2d9e('0x1')]({'tag':_0x2d9e('0x9'),'attributes':{'class':['ck-annotation-counter__badge',_0x3f56c4['to'](_0x2d9e('0xa'),_0x1075b5=>_0x2d9e('0x3')+_0x1075b5),_0x3f56c4['if'](_0x2d9e('0xb'),_0x2d9e('0x5'))]},'children':[{'text':_0x3f56c4['to'](_0x2d9e('0xc'))}]}),this['children']['add'](this[_0x2d9e('0x2')]);}}