@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251015.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 (47) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +18 -0
  3. package/README.md +45 -0
  4. package/build/footnotes.js +4 -0
  5. package/ckeditor5-metadata.json +65 -0
  6. package/dist/index-content.css +73 -0
  7. package/dist/index-editor.css +81 -0
  8. package/dist/index.css +184 -0
  9. package/dist/index.js +23 -0
  10. package/lang/contexts.json +26 -0
  11. package/package.json +73 -0
  12. package/src/augmentation.d.ts +34 -0
  13. package/src/augmentation.js +23 -0
  14. package/src/commands/insertfootnotecommand.d.ts +20 -0
  15. package/src/commands/insertfootnotecommand.js +23 -0
  16. package/src/footnotes.d.ts +33 -0
  17. package/src/footnotes.js +23 -0
  18. package/src/footnotesclipboard.d.ts +38 -0
  19. package/src/footnotesclipboard.js +23 -0
  20. package/src/footnotesconfig.d.ts +30 -0
  21. package/src/footnotesconfig.js +23 -0
  22. package/src/footnotesediting.d.ts +47 -0
  23. package/src/footnotesediting.js +23 -0
  24. package/src/footnotesproperties/commands/footnotesstartcommand.d.ts +28 -0
  25. package/src/footnotesproperties/commands/footnotesstartcommand.js +23 -0
  26. package/src/footnotesproperties/commands/footnotesstylecommand.d.ts +29 -0
  27. package/src/footnotesproperties/commands/footnotesstylecommand.js +23 -0
  28. package/src/footnotesproperties/footnotespropertiesconfig.d.ts +53 -0
  29. package/src/footnotesproperties/footnotespropertiesconfig.js +23 -0
  30. package/src/footnotesproperties/footnotespropertiesediting.d.ts +36 -0
  31. package/src/footnotesproperties/footnotespropertiesediting.js +23 -0
  32. package/src/footnotesproperties/footnotespropertiesui.d.ts +41 -0
  33. package/src/footnotesproperties/footnotespropertiesui.js +23 -0
  34. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +15 -0
  35. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +23 -0
  36. package/src/footnotesproperties.d.ts +32 -0
  37. package/src/footnotesproperties.js +23 -0
  38. package/src/footnotestracker.d.ts +102 -0
  39. package/src/footnotestracker.js +23 -0
  40. package/src/footnotesui.d.ts +31 -0
  41. package/src/footnotesui.js +23 -0
  42. package/src/index.d.ts +21 -0
  43. package/src/index.js +23 -0
  44. package/src/modelelementtracker.d.ts +56 -0
  45. package/src/modelelementtracker.js +23 -0
  46. package/theme/footnotes.css +149 -0
  47. package/theme/footnotesproperties.css +54 -0
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Plugin as _0x26c9a0,Command as _0x347a2d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x54216a,isWidget as _0x29c28c,toWidgetEditable as _0x39d06a,WidgetToolbarRepository as _0x3a860b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x436233,logWarning as _0x209fcd,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x4db70f,ClickObserver as _0x48f252}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1f9188}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5c4404,ButtonView as _0x1754d9,View as _0x43d7d2,ViewCollection as _0x48138c,FocusCycler as _0x267703,addKeyboardHandlingForGrid as _0x4b9dd9,CollapsibleView as _0x4e2e3f,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x14c07c,BalloonPanelView as _0x529790,createDropdown as _0x302f07}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x467977,IconListStyleDecimal as _0x2f66ec,IconListStyleDecimalLeadingZero as _0x3cc5b8,IconListStyleLowerRoman as _0x5224f5,IconListStyleUpperRoman as _0x5e9320,IconListStyleLowerLatin as _0x13afa9,IconListStyleUpperLatin as _0x52a299}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5d5e0d,_0x49951a){this['_model']=_0x5d5e0d,this['_elementName']=_0x49951a['elementName'],this['_getElementKey']=_0x49951a['getElementKey'];}['getChanges'](_0x5a4b2e){const _0x32ed94=new Set(),_0x295222=new Map();for(const _0x275fa9 of _0x5a4b2e){if('insert'===_0x275fa9['type']&&'$text'!==_0x275fa9['name']&&_0x275fa9['position']['nodeAfter']){const _0x3addc3=this['_model']['createRangeOn'](_0x275fa9['position']['nodeAfter']);for(const _0x9de70c of _0x3addc3['getItems']()){if(!_0x9de70c['is']('element',this['_elementName']))continue;const _0x45d523=this['_getElementKey'](_0x9de70c);_0x295222['has'](_0x45d523)||_0x295222['set'](_0x45d523,[]),_0x295222['get'](_0x45d523)['push'](_0x9de70c);}}if('remove'===_0x275fa9['type']&&_0x275fa9['name']===this['_elementName']){const _0x1e00b1=this['_getElementKey']({'getAttribute':_0x55e26c=>_0x275fa9['attributes']['get'](_0x55e26c)});_0x32ed94['add'](_0x1e00b1);}}for(const [_0x3d5f75,_0x59d0a9]of this['_trackedElements'])'$graveyard'===_0x59d0a9['root']['rootName']&&_0x32ed94['add'](_0x3d5f75);for(const _0x25d2fe of _0x32ed94)this['_trackedElements']['delete'](_0x25d2fe);for(const [_0x3d4242,_0x2857db]of _0x295222)this['_trackedElements']['set'](_0x3d4242,_0x2857db[_0x2857db['length']-0x1]);const _0x3c21a3=new Set();for(const [_0x4cf572,_0x4587a7]of _0x295222)_0x32ed94['has'](_0x4cf572)&&(_0x3c21a3['add'](_0x4587a7[0x0]),_0x4587a7['length']>0x1?_0x295222['set'](_0x4cf572,_0x4587a7['slice'](0x1)):_0x295222['delete'](_0x4cf572),_0x32ed94['delete'](_0x4cf572));return{'removed':Array['from'](_0x32ed94),'inserted':Array['from'](_0x295222['values']())['flat'](),'moved':Array['from'](_0x3c21a3)};}}class c extends _0x26c9a0{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33447b){super(_0x33447b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x177cd2=>_0x177cd2['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1d4abc=>_0x1d4abc['getAttribute']('footnoteId')});}['init'](){const {editor:_0x130fad}=this,{model:_0x2d3562}=_0x130fad;_0x2d3562['document']['registerPostFixer'](_0x144fbb=>{const _0x3c306a=_0x2d3562['document']['differ']['getChanges']();let _0x563792=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x144fbb,_0x3c306a)&&(_0x563792=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x144fbb,_0x3c306a)&&(_0x563792=!0x0),this['_handleFootnoteReferencesChanges'](_0x144fbb,_0x3c306a)&&(_0x563792=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x144fbb)&&(_0x563792=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x144fbb)&&(_0x563792=!0x0),this['_sortFootnoteDefinitions'](_0x144fbb)&&(_0x563792=!0x0),_0x563792;}),this['listenTo'](_0x2d3562['document'],'change:data',()=>{_0x2d3562['enqueueChange']({'isUndoable':!0x1},_0x2fbacd=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2fbacd);});},{'priority':'low'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3aac5d){return this['_footnotes']['find'](_0x5245d4=>_0x5245d4['id']===_0x3aac5d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x23f824){this['_footnoteFormatter']=_0x23f824;}['_updateFootnotesCounters'](_0x1904e5,_0x558375=0x0){let _0xa6aad5=!0x1;for(let _0x907541=_0x558375;_0x907541<this['_footnotes']['length'];_0x907541++)this['_updateFootnoteRefCounter'](_0x1904e5,_0x907541)&&(_0xa6aad5=!0x0);return _0xa6aad5;}['_insertEmptyFootnotesDefinitionsContainer'](_0x588c5d,_0x45b1ca){const _0x39df1b=_0x588c5d['createElement']('footnotesDefinitions',{});return _0x588c5d['append'](_0x39df1b,_0x45b1ca),this['_footnotesDefinitions']=_0x39df1b,_0x39df1b;}['_ensureFootnotesDefinitionsContainerExists'](_0x252fcf){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x74afc8=this['_footnotes'][0x0]['reference']['root'],_0x379afd=this['_insertEmptyFootnotesDefinitionsContainer'](_0x252fcf,_0x74afc8);for(const _0x2f739a of this['_footnotes'])_0x2f739a['definition']['parent']||_0x252fcf['insert'](_0x2f739a['definition'],_0x379afd,'end');this['_updateFootnotesCounters'](_0x252fcf);}['_handleFootnotesDefinitionsObjectChanges'](_0x4376a7,_0x4c2a31){let _0x5db472=!0x1;const {inserted:_0x5463cf,removed:_0x6fcee7,moved:_0x3075da}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4c2a31);if(_0x3075da['length']&&(this['_footnotesDefinitions']=_0x3075da[0x0]),_0x5463cf['length']){if(_0x5463cf['length']>0x1||this['_footnotesDefinitions']&&_0x5463cf['some'](_0x2e333c=>_0x2e333c!==this['_footnotesDefinitions'])){const _0x32debc=_0x4376a7['createElement']('footnotesDefinitions',{}),_0x325607=[];this['_footnotesDefinitions']&&_0x325607['push'](this['_footnotesDefinitions']),_0x325607['push'](..._0x5463cf),_0x4376a7['insert'](_0x32debc,_0x325607[0x0],'before');for(const _0x3b96a2 of _0x325607)_0x4376a7['move'](_0x4376a7['createRangeIn'](_0x3b96a2),_0x4376a7['createPositionAt'](_0x32debc,'end')),_0x4376a7['remove'](_0x3b96a2);this['_footnotesDefinitions']=_0x32debc,this['_updateFootnotesCounters'](_0x4376a7),_0x5db472=!0x0;}else this['_footnotesDefinitions']=_0x5463cf[0x0];}if(_0x6fcee7['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1aaa02 of this['_footnotes'])_0x4376a7['remove'](_0x1aaa02['reference']),_0x5db472=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5db472;}['_handleFootnoteDefinitionsChanges'](_0x40380e,_0x34bad9){let _0x560d8e=!0x1;const _0x637c4f=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4b911c,moved:_0x5f3321}=this['_footnoteDefsTracker']['getChanges'](_0x34bad9);for(const _0x216439 of[..._0x5f3321,..._0x4b911c]){const _0x2af85d=_0x216439['getAttribute']('footnoteId'),_0x46feb9=this['getFootnote'](_0x2af85d);_0x46feb9&&(_0x46feb9['definition']=_0x216439),_(_0x40380e,_0x637c4f,_0x216439)&&(_0x560d8e=!0x0);}return _0x560d8e;}['_handleFootnoteReferencesChanges'](_0x46ca14,_0x4909a1){let _0x15749b=!0x1;const {removed:_0x42f8e5,inserted:_0x4580a9,moved:_0x1a3e30}=this['_footnoteRefsTracker']['getChanges'](_0x4909a1);for(const _0x475a31 of _0x42f8e5)this['_handleRemoveFootnoteReferenceById'](_0x46ca14,_0x475a31)&&(_0x15749b=!0x0);for(const _0x41b452 of _0x4580a9)this['_handleInsertedFootnoteReference'](_0x46ca14,_0x41b452)&&(_0x15749b=!0x0);for(const _0x24c9a4 of _0x1a3e30)this['_handleMovedFootnoteReference'](_0x46ca14,_0x24c9a4)&&(_0x15749b=!0x0);return _0x15749b;}['_handleFootnotesDefinitionsObjectSync'](_0x2b8e88){if(!this['_footnotesDefinitions'])return!0x1;let _0x1225d1=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x381504=[];for(const _0xf71b04 of this['_footnotesDefinitions']['getChildren']()){const _0x163f1b=_0xf71b04['getAttribute']('footnoteId');this['getFootnote'](_0x163f1b)||(_0x381504['unshift'](_0xf71b04),_0x1225d1=!0x0);}for(const _0x4f0f83 of _0x381504)_0x2b8e88['remove'](_0x4f0f83);}const _0x34b954=new Set(),_0x3edf4e=[];for(const _0x1e2de3 of this['_footnotesDefinitions']['getChildren']()){const _0x56b53e=_0x1e2de3['getAttribute']('footnoteId');_0x34b954['has'](_0x56b53e)?(_0x3edf4e['unshift'](_0x1e2de3),_0x1225d1=!0x0):_0x34b954['add'](_0x56b53e);}for(const _0x59f321 of _0x3edf4e)_0x2b8e88['remove'](_0x59f321);return this['_footnotesDefinitions']['childCount']||(_0x2b8e88['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1225d1=!0x0),_0x1225d1;}['_handleInsertedFootnoteReference'](_0x20d645,_0x3f68aa){if(this['_footnotes']['find'](_0x533c16=>_0x533c16['reference']===_0x3f68aa))return!0x1;let _0x18ccf3=!0x1;const _0x4c2ce6=_0x3f68aa['getAttribute']('footnoteId'),_0xf2f231=this['getFootnote'](_0x4c2ce6);_0xf2f231&&(_0x20d645['remove'](_0xf2f231['reference']),this['_footnotes']=this['_footnotes']['filter'](_0xb896dd=>_0xb896dd['id']!==_0x4c2ce6),_0x18ccf3=!0x0);let _0x2d167d=this['_footnotesDefinitions']?function(_0x55d845,_0x2776a0){for(const _0x4b00b3 of _0x55d845['getChildren']())if(_0x4b00b3['getAttribute']('footnoteId')===_0x2776a0)return _0x4b00b3;return null;}(this['_footnotesDefinitions'],_0x4c2ce6):null;_0x2d167d||(_0x2d167d=_0x20d645['createElement']('footnoteDefinition',{'footnoteId':_0x4c2ce6}),this['_footnotesDefinitions']&&(_0x20d645['insert'](_0x2d167d,this['_footnotesDefinitions'],'end'),_0x18ccf3=!0x0));const _0x163bdd={'id':_0x4c2ce6,'reference':_0x3f68aa,'definition':_0x2d167d},_0x282c1d=I(this['editor']['model'],this['_footnotes'],_0x3f68aa);return this['_footnotes']['splice'](_0x282c1d,0x0,_0x163bdd),this['_updateFootnotesCounters'](_0x20d645,_0x282c1d)&&(_0x18ccf3=!0x0),_0x18ccf3;}['_handleRemoveFootnoteReferenceById'](_0x53691e,_0x215303){const _0x2b10fd=this['_footnotes']['findIndex'](_0x1c1b39=>_0x1c1b39['id']===_0x215303);if(-0x1===_0x2b10fd)return!0x1;let _0x1b5e18=!0x1;const _0x265829=this['_footnotes'][_0x2b10fd];return'$graveyard'!==_0x265829['definition']['root']['rootName']&&(_0x53691e['remove'](_0x265829['definition']),_0x1b5e18=!0x0),this['_footnotes']['splice'](_0x2b10fd,0x1),this['_updateFootnotesCounters'](_0x53691e,_0x2b10fd)&&(_0x1b5e18=!0x0),_0x1b5e18;}['_handleMovedFootnoteReference'](_0x478684,_0x3665b8){const _0x6f04c3=_0x3665b8['getAttribute']('footnoteId'),_0x353c62=this['_footnotes']['findIndex'](_0x5b7486=>_0x5b7486['id']===_0x6f04c3),_0x5acfb4=this['_footnotes'][_0x353c62];let _0x4ac734=!0x1;_0x5acfb4['reference']=_0x3665b8,this['_footnotes']['splice'](_0x353c62,0x1);const _0x27c315=I(this['editor']['model'],this['_footnotes'],_0x3665b8);return this['_footnotes']['splice'](_0x27c315,0x0,_0x5acfb4),this['_updateFootnotesCounters'](_0x478684,Math['min'](_0x353c62,_0x27c315))&&(_0x4ac734=!0x0),_0x4ac734;}['_updateFootnoteRefCounter'](_0x6fd4f3,_0x52a2ce){if(!this['_footnotesDefinitions'])return!0x1;const _0x1e9ffa=this['_footnotes'][_0x52a2ce];let _0x1664da;return _0x1664da=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1e9ffa,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x52a2ce+0x1}):String(_0x52a2ce+0x1),_0x1e9ffa['reference']['getAttribute']('footnoteCounter')!=_0x1664da&&(_0x6fd4f3['setAttribute']('footnoteCounter',_0x1664da,_0x1e9ffa['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3d62d7){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x400df8,_0xe440af){if(_0x400df8['length']!==_0xe440af['length'])return!0x1;for(let _0x1b75af=0x0;_0x1b75af<_0x400df8['length'];_0x1b75af++)if(_0x400df8[_0x1b75af]!==_0xe440af[_0x1b75af])return!0x1;return!0x0;}(this['_footnotes']['map'](_0xaf0560=>_0xaf0560['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x2df6db=>_0x2df6db['getAttribute']('footnoteId'))))return!0x1;let _0x5f6e61=!0x1;for(let _0x52ec20=0x0;_0x52ec20<this['_footnotes']['length'];_0x52ec20++){const _0x2de4af=this['_footnotes'][_0x52ec20],_0xac1597=_0x3d62d7['createPositionBefore'](_0x2de4af['definition']),_0x51032a=_0x3d62d7['createPositionAt'](this['_footnotesDefinitions'],_0x52ec20);_0xac1597['isEqual'](_0x51032a)||(_0x3d62d7['move'](_0x3d62d7['createRangeOn'](_0x2de4af['definition']),_0x51032a),_0x5f6e61=!0x0);}return _0x5f6e61;}['_ensureFootnotesReferencesHaveProperOrder'](_0x474227){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2c7b47}=this['editor'];let _0xdc456b=!0x1;for(let _0x1a6361=0x0;_0x1a6361<this['_footnotes']['length']-0x1;_0x1a6361++){const _0x49eb64=this['_footnotes'][_0x1a6361],_0x14cb87=this['_footnotes'][_0x1a6361+0x1],_0x245408=_0x2c7b47['createPositionBefore'](_0x49eb64['reference']),_0x45c378=_0x2c7b47['createPositionBefore'](_0x14cb87['reference']);'after'===_0x245408['compareWith'](_0x45c378)&&(this['_handleMovedFootnoteReference'](_0x474227,_0x49eb64['reference']),_0x1a6361=-0x1,_0xdc456b=!0x0);}return _0xdc456b;}}function _(_0xf581ec,_0x5ec4c1,_0x8254f3){if(_0x8254f3['childCount'])return!0x1;const _0x41c8ff=_0x5ec4c1?'paragraph':'footnoteInlineContent';return _0xf581ec['insert'](_0xf581ec['createElement'](_0x41c8ff),_0x8254f3),!0x0;}function I(_0x3d8a6c,_0x3ecf61,_0x56ae37){if(0x0===_0x3ecf61['length'])return 0x0;const _0x3c7006=_0x3d8a6c['createPositionBefore'](_0x56ae37);for(let _0x588174=0x0;_0x588174<_0x3ecf61['length'];_0x588174++){const _0x3d8941=_0x3ecf61[_0x588174],_0x1ace15=_0x3d8a6c['createPositionBefore'](_0x3d8941['reference']);if('before'===_0x3c7006['compareWith'](_0x1ace15))return _0x588174;}const _0x206865=_0x56ae37['root'];let _0x4b6c2a=-0x1;for(let _0xef3004=_0x3ecf61['length']-0x1;_0xef3004>=0x0;_0xef3004--)if(_0x3ecf61[_0xef3004]['reference']['root']===_0x206865){_0x4b6c2a=_0xef3004;break;}if(-0x1!==_0x4b6c2a)return _0x4b6c2a+0x1;const _0x3cb525=_0x3d8a6c['document']['getRootNames'](),_0x4beb8b=_0x3cb525['indexOf'](_0x206865['rootName']),_0x4d6521=_0x3cb525[_0x4beb8b+0x1];if(_0x4d6521){for(let _0x2aeb4b=0x0;_0x2aeb4b<_0x3ecf61['length'];_0x2aeb4b++)if(_0x3ecf61[_0x2aeb4b]['reference']['root']['rootName']===_0x4d6521)return _0x2aeb4b;}return _0x3ecf61['length'];}class w extends _0x347a2d{['refresh'](){const _0x4a50c3=this['editor']['model']['document']['selection'],_0x5520c7=this['_getPositionToInsertFootnote'](_0x4a50c3);this['isEnabled']=!!_0x5520c7;}['execute'](_0x4f196c){const {editor:_0x36fe47}=this,{model:_0x561d86}=_0x36fe47,{selection:_0x4cda6e}=_0x561d86['document'],_0x42edb0=this['_getPositionToInsertFootnote'](_0x4cda6e);if(!_0x42edb0)return;const _0x1f4117=_0x36fe47['plugins']['get']('FootnotesEditing'),_0x54db4b=_0x4f196c?.['footnoteId']??_0x436233();!function(_0x3155c9){return'string'==typeof _0x3155c9&&_0x3155c9['length']>0x0&&!/\s/['test'](_0x3155c9)&&!/^\d/['test'](_0x3155c9);}(_0x54db4b)?_0x209fcd('insert-footnote-command-executed-with-invalid-id'):(_0x561d86['change'](_0x520909=>{const _0x3f016a=_0x520909['createElement']('footnoteRef',{'footnoteId':_0x54db4b});_0x561d86['insertObject'](_0x3f016a,_0x42edb0,null);}),_0x1f4117['_moveSelectionToFootnoteDefinition'](_0x54db4b));}['_getPositionToInsertFootnote'](_0x41615d){const {model:_0x285147}=this['editor'],{schema:_0x392eb7}=_0x285147,_0x3030f0=_0x41615d['getFirstRange']();for(const _0x50b955 of _0x3030f0['getItems']())if(_0x392eb7['isBlock'](_0x50b955)||_0x392eb7['isObject'](_0x50b955))return null;const _0x5216cb=_0x3030f0['end'];return _0x392eb7['checkChild'](_0x5216cb,'footnoteRef')?_0x5216cb:null;}}class r extends _0x26c9a0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5ce20f}=this;_0x5ce20f['config']['define']('footnotes.multiBlock',!0x0),_0x5ce20f['commands']['add']('insertFootnote',new w(_0x5ce20f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3bd3a9){const _0x471c0b=_0x1676f1([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x794dab=0x47a28506,_0x1f73b3=0x47a5f346^_0x794dab,_0x42b76c=window[_0x1676f1([0x44,0x61,0x74,0x65])][_0x1676f1([0x6e,0x6f,0x77])](),_0x57ed35=_0x3bd3a9[_0x1676f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe2dc00=new window[(_0x1676f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12c7e3=>{_0x57ed35[_0x1676f1([0x6f,0x6e,0x63,0x65])](_0x1676f1([0x72,0x65,0x61,0x64,0x79]),_0x12c7e3);}),_0x2a7b5a={[_0x1676f1([0x6b,0x74,0x79])]:_0x1676f1([0x45,0x43]),[_0x1676f1([0x75,0x73,0x65])]:_0x1676f1([0x73,0x69,0x67]),[_0x1676f1([0x63,0x72,0x76])]:_0x1676f1([0x50,0x2d,0x32,0x35,0x36]),[_0x1676f1([0x78])]:_0x1676f1([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1676f1([0x79])]:_0x1676f1([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1676f1([0x61,0x6c,0x67])]:_0x1676f1([0x45,0x53,0x32,0x35,0x36])},_0x5ea678=_0x57ed35[_0x1676f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1676f1([0x67,0x65,0x74])](_0x1676f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xabe848(){let _0x2e0fa0,_0x3670fe=null,_0x4d9206=null;try{if(_0x5ea678==_0x1676f1([0x47,0x50,0x4c]))return _0x1676f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e0fa0=_0x505cf5(),!_0x2e0fa0)return _0x1676f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e0fa0[_0x1676f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d9206=_0x3175b7(_0x2e0fa0[_0x1676f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e0fa0[_0x1676f1([0x6a,0x74,0x69])])),await _0x1a68a8()?_0x36c56d()?_0x3b3326()?_0x1676f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d247d()?(_0x2e0fa0[_0x1676f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1676f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3670fe=_0x311082(_0x1676f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e0fa0[_0x1676f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1676f1([0x74,0x72,0x69,0x61,0x6c])&&(_0x3670fe=_0x311082(_0x1676f1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3284dd()):_0x1676f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1676f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1676f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1676f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b3326(){const _0x135ec0=[_0x1676f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1676f1([0x74,0x72,0x69,0x61,0x6c])][_0x1676f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e0fa0[_0x1676f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42b76c/0x3e8:0xe10*_0x1f73b3;return _0x2e0fa0[_0x1676f1([0x65,0x78,0x70])]<_0x135ec0;}function _0x36c56d(){const _0x2652f1=_0x2e0fa0[_0x1676f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2652f1&&(!!_0x2652f1[_0x1676f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1676f1([0x2a]))||!!_0x2652f1[_0x1676f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1676f1([0x46,0x4f,0x4f])));}function _0x1d247d(){const _0x166aff=_0x2e0fa0[_0x1676f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x166aff||0x0==_0x166aff[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x181df9}=new URL(window[_0x1676f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x166aff[_0x1676f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x181df9))return!0x0;const _0x40d3b4=_0x181df9[_0x1676f1([0x73,0x70,0x6c,0x69,0x74])](_0x1676f1([0x2e]));return _0x166aff[_0x1676f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48138f=>_0x48138f[_0x1676f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1676f1([0x2a])))[_0x1676f1([0x6d,0x61,0x70])](_0x112784=>_0x112784[_0x1676f1([0x73,0x70,0x6c,0x69,0x74])](_0x1676f1([0x2e])))[_0x1676f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x230465=>_0x230465[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40d3b4[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1676f1([0x6d,0x61,0x70])](_0x2567c7=>Array(_0x40d3b4[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2567c7[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1676f1([0x66,0x69,0x6c,0x6c])](_0x2567c7[0x0]===_0x1676f1([0x2a])?_0x1676f1([0x2a]):'')[_0x1676f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2567c7))[_0x1676f1([0x73,0x6f,0x6d,0x65])](_0x468474=>_0x40d3b4[_0x1676f1([0x65,0x76,0x65,0x72,0x79])]((_0x54d8e8,_0xe10068)=>_0x468474[_0xe10068]===_0x54d8e8||_0x468474[_0xe10068]===_0x1676f1([0x2a])));}function _0x3284dd(){return _0x3670fe&&_0x4d9206?new window[(_0x1676f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ab4f1,_0x1403f2)=>{_0x3670fe[_0x1676f1([0x74,0x68,0x65,0x6e])](_0x5ab4f1,_0x1403f2),_0x4d9206[_0x1676f1([0x74,0x68,0x65,0x6e])](_0x4c32b7=>{_0x4c32b7!=_0x1676f1([0x56,0x61,0x6c,0x69,0x64])&&_0x5ab4f1(_0x4c32b7);},_0x1403f2);}):_0x3670fe||_0x4d9206||_0x1676f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3175b7(_0x23099d,_0x139635){return new window[(_0x1676f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ce259=>{if(_0x1d630c())return _0x4ce259(_0x1676f1([0x56,0x61,0x6c,0x69,0x64]));_0x3fecf2(),_0x57ed35[_0x1676f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1676f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2120e0=!0x1;const _0x1c66ee=_0x436233();function _0x275f07(_0x342b78){return!!_0x342b78&&(typeof _0x342b78===_0x1676f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x342b78===_0x1676f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x342b78[_0x1676f1([0x74,0x68,0x65,0x6e])]===_0x1676f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x342b78[_0x1676f1([0x63,0x61,0x74,0x63,0x68])]===_0x1676f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4997db(_0x2ca2c3){_0x5e6d67(_0x2ca2c3)[_0x1676f1([0x74,0x68,0x65,0x6e])](_0x48e989=>{if(!_0x48e989||_0x48e989[_0x1676f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1676f1([0x6f,0x6b]))return _0x1676f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13ce0d(_0x5aec24(_0x1c66ee+_0x139635))!=_0x48e989[_0x1676f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1676f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1676f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x1676f1([0x74,0x68,0x65,0x6e])](_0x27126c=>(_0x1adf2f(),_0x27126c),()=>{const _0x216150=_0x53b80f();return null==_0x216150?(_0x1adf2f(),_0x1676f1([0x56,0x61,0x6c,0x69,0x64])):_0x1676f1(_0x42b76c-_0x216150>(0x63ae0106^_0x794dab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1676f1([0x74,0x68,0x65,0x6e])](_0x4ce259)[_0x1676f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ce259(_0x1676f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49d481=0x47946b86^_0x794dab;function _0x1adf2f(){const _0x3a7278=_0x1676f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x13ce0d(_0x5aec24(_0x23099d)),_0x16227e=_0x56e9ec(_0x13ce0d(window[_0x1676f1([0x4d,0x61,0x74,0x68])][_0x1676f1([0x63,0x65,0x69,0x6c])](_0x42b76c/_0x49d481)));window[_0x1676f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1676f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a7278,_0x16227e);}function _0x53b80f(){const _0x1639bf=_0x1676f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x13ce0d(_0x5aec24(_0x23099d)),_0x40c4f3=window[_0x1676f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1676f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1639bf);return _0x40c4f3?window[_0x1676f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56e9ec(_0x40c4f3),0x10)*_0x49d481:null;}function _0x5e6d67(_0x1c0a52){return new window[(_0x1676f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31e2f6,_0x81a2fc)=>{_0x1c0a52[_0x1676f1([0x74,0x68,0x65,0x6e])](_0x31e2f6,_0x81a2fc),window[_0x1676f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x81a2fc,0x47a351c6^_0x794dab);});}}_0x57ed35[_0x1676f1([0x6f,0x6e])](_0x1676f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x569820,_0x511979)=>{if(_0x511979[0x0]!=_0x23099d)return _0x4ce259(_0x1676f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x511979[0x1]={..._0x511979[0x1],[_0x1676f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c66ee};},{[_0x1676f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1676f1([0x68,0x69,0x67,0x68])}),_0x57ed35[_0x1676f1([0x6f,0x6e])](_0x1676f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x510545=>{_0x275f07(_0x510545[_0x1676f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2120e0=!0x0,_0x4997db(_0x510545[_0x1676f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1676f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1676f1([0x6c,0x6f,0x77])}),_0xe2dc00[_0x1676f1([0x74,0x68,0x65,0x6e])](()=>{_0x2120e0||_0x4ce259(_0x1676f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d630c(){return _0x57ed35[_0x1676f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1676f1([0x76,0x69,0x65,0x77])][_0x1676f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1676f1([0x61,0x75,0x74,0x6f]);}function _0x3fecf2(){_0x57ed35[_0x1676f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1676f1([0x76,0x69,0x65,0x77])][_0x1676f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1676f1([0x61,0x75,0x74,0x6f]);}}function _0x311082(_0x3d2e32){const _0x2a73dc=[new window[(_0x1676f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb4b9af=>setTimeout(_0xb4b9af,0x47abbbca^_0x794dab)),_0xe2dc00[_0x1676f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1676f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ae02e=>{let _0x4e39a4=0x0;_0x57ed35[_0x1676f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1676f1([0x6f,0x6e])](_0x1676f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59fb7f,_0xa008da)=>{_0xa008da[0x0][_0x1676f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e39a4++,_0x4e39a4==(0x47a284fe^_0x794dab)&&(_0x5ae02e(),_0x59fb7f[_0x1676f1([0x6f,0x66,0x66])]());});}))];return window[_0x1676f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1676f1([0x72,0x61,0x63,0x65])](_0x2a73dc)[_0x1676f1([0x74,0x68,0x65,0x6e])](()=>_0x3d2e32);}async function _0x4cfc57(){await _0xe2dc00,_0x57ed35[_0x1676f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1676f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8157,_0x57ed35[_0x1676f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1676f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8157,_0x57ed35[_0x1676f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1676f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x387893(_0x2ced69){const _0x3427be=_0x259f24();_0x57ed35[_0x3427be]=_0x1676f1([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ced69,_0x2ced69!=_0x1676f1([0x56,0x61,0x6c,0x69,0x64])&&_0x4cfc57();}function _0x259f24(){const _0x386a60=window[_0x1676f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1676f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1676f1([0x6e,0x6f,0x77])]())[_0x1676f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1676f1([0x2e]),'');let _0x4b3a62=_0x1676f1([0x75]);for(let _0x3b7c99=0x0;_0x3b7c99<_0x386a60[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b7c99+=0x2){let _0x4fcc59=window[_0x1676f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x386a60[_0x1676f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b7c99,_0x3b7c99+0x2));_0x4fcc59>=_0x471c0b[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4fcc59-=_0x471c0b[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3a62+=_0x471c0b[_0x4fcc59];}return _0x4b3a62;}function _0x505cf5(){const _0x39a545=_0x5ea678[_0x1676f1([0x73,0x70,0x6c,0x69,0x74])](_0x1676f1([0x2e]));if(0x3!=_0x39a545[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x275958(_0x39a545[0x1]);function _0x275958(_0x4335ca){const _0x1d507f=_0x2948d3(_0x4335ca);return _0x1d507f&&_0x470844()?_0x1d507f:null;function _0x470844(){const _0x3a7fe5=_0x1d507f[_0x1676f1([0x6a,0x74,0x69])],_0x3adf87=window[_0x1676f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a7fe5[_0x1676f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a7fe5[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x226dc9={..._0x1d507f,[_0x1676f1([0x6a,0x74,0x69])]:_0x3a7fe5[_0x1676f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a7fe5[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x226dc9[_0x1676f1([0x76,0x63])],_0x5aec24(_0x226dc9)==_0x3adf87;}}}async function _0x1a68a8(){let _0x540452=!0x0;try{const _0x191ccc=_0x5ea678[_0x1676f1([0x73,0x70,0x6c,0x69,0x74])](_0x1676f1([0x2e])),[_0x2f2396,_0x36b29c,_0xcdebce]=_0x191ccc;return _0x20c65f(_0x2f2396),await _0x307da7(_0x2f2396,_0x36b29c,_0xcdebce),_0x540452;}catch{return!0x1;}function _0x20c65f(_0x2abb6c){const _0x33cf1d=_0x2948d3(_0x2abb6c);_0x33cf1d&&_0x33cf1d[_0x1676f1([0x61,0x6c,0x67])]==_0x1676f1([0x45,0x53,0x32,0x35,0x36])||(_0x540452=!0x1);}async function _0x307da7(_0x1e0fc0,_0xcde4a1,_0x27b90f){const _0x45be84=window[_0x1676f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1676f1([0x66,0x72,0x6f,0x6d])](_0x170057(_0x27b90f),_0x6bccf6=>_0x6bccf6[_0x1676f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b422d=new window[(_0x1676f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1676f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e0fc0+_0x1676f1([0x2e])+_0xcde4a1),_0x16f79a=window[_0x1676f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1676f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16f79a)return;const _0xe8388e=await _0x16f79a[_0x1676f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1676f1([0x6a,0x77,0x6b]),_0x2a7b5a,{[_0x1676f1([0x6e,0x61,0x6d,0x65])]:_0x1676f1([0x45,0x43,0x44,0x53,0x41]),[_0x1676f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1676f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1676f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16f79a[_0x1676f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1676f1([0x6e,0x61,0x6d,0x65])]:_0x1676f1([0x45,0x43,0x44,0x53,0x41]),[_0x1676f1([0x68,0x61,0x73,0x68])]:{[_0x1676f1([0x6e,0x61,0x6d,0x65])]:_0x1676f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe8388e,_0x45be84,_0x2b422d)||(_0x540452=!0x1);}}function _0x2948d3(_0xa11a2f){return _0xa11a2f[_0x1676f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1676f1([0x65,0x79]))?JSON[_0x1676f1([0x70,0x61,0x72,0x73,0x65])](_0x170057(_0xa11a2f)):null;}function _0x170057(_0x9c91fa){return window[_0x1676f1([0x61,0x74,0x6f,0x62])](_0x9c91fa[_0x1676f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1676f1([0x2b]))[_0x1676f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1676f1([0x2f])));}function _0x5aec24(_0x36cb68){let _0x55474c=0x1505;function _0xbca3d6(_0x1e6a4e){for(let _0x5cc1d1=0x0;_0x5cc1d1<_0x1e6a4e[_0x1676f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cc1d1++){const _0x15ade5=_0x1e6a4e[_0x1676f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cc1d1);_0x55474c=(_0x55474c<<0x5)+_0x55474c+_0x15ade5,_0x55474c&=_0x55474c;}}function _0x294373(_0x460409){Array[_0x1676f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x460409)?_0x460409[_0x1676f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294373):_0x460409&&typeof _0x460409==_0x1676f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1676f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x460409)[_0x1676f1([0x73,0x6f,0x72,0x74])]()[_0x1676f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3aedae,_0x1b7313])=>{_0xbca3d6(_0x3aedae),_0x294373(_0x1b7313);}):_0xbca3d6(window[_0x1676f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x460409));}return _0x294373(_0x36cb68),_0x55474c>>>0x0;}function _0x13ce0d(_0x14ce67){return _0x14ce67[_0x1676f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1676f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1676f1([0x30]));}function _0x56e9ec(_0x5f1776){return _0x5f1776[_0x1676f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1676f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1676f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e8157(){}function _0x1676f1(_0x5e1e64){return _0x5e1e64['map'](_0x4ddcb7=>String['fromCharCode'](_0x4ddcb7))['join']('');}_0x387893(await _0xabe848());}(this);}['_moveSelectionToFootnoteDefinition'](_0x45bec5){const {plugins:_0x4b059b,editing:_0x507c25,model:_0x69a154}=this['editor'],_0x2cbad8=_0x4b059b['get'](c)['getFootnote'](_0x45bec5);return!!_0x2cbad8&&(_0x69a154['change'](_0x12ca06=>{_0x12ca06['setSelection'](_0x12ca06['createPositionAt'](_0x2cbad8['definition'],'end'));}),_0x507c25['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x32a176){const {plugins:_0xf88d9f,editing:_0x54824e,model:_0x297b68}=this['editor'],_0x1552bf=_0xf88d9f['get'](c)['getFootnote'](_0x32a176);return!!_0x1552bf&&(_0x297b68['change'](_0x2efc6f=>{_0x2efc6f['setSelection'](_0x1552bf['reference'],'on');}),_0x54824e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4f859f}=this['editor']['model'],_0x30b993=this['editor']['config']['get']('footnotes.multiBlock');_0x4f859f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4f859f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4f859f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x30b993?_0x4f859f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4f859f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4f859f['addChildCheck'](_0x27eea0=>{for(const _0x235224 of _0x27eea0)if('footnoteDefinition'===_0x235224['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4320e6}=this,{conversion:_0x12c070,editing:_0x371533}=_0x4320e6,{t:t}=_0x4320e6['locale'];_0x12c070['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x190df3,{writer:_0x148f70,consumable:_0x2c5928})=>{const _0x3b5b44=_0x190df3['getChild'](0x0);if(!_0x3b5b44||!_0x3b5b44['is']('element','a'))return null;const _0x3ae6fe=_0x3b5b44['getAttribute']('href')||'';if(!_0x3ae6fe['startsWith']('#'))return null;const _0x1af3d1=_0x3ae6fe['replace'](/^#/,'');if(!_0x1af3d1)return null;_0x2c5928['consume'](_0x3b5b44,{'name':!0x0,'attributes':['href']});for(const {item:_0x1e49d2}of _0x371533['view']['createRangeIn'](_0x3b5b44))_0x1e49d2['is']('$textProxy')?_0x2c5928['consume'](_0x1e49d2['textNode'],{'name':!0x0}):_0x1e49d2['is']('element')&&_0x2c5928['consume'](_0x1e49d2,{'name':!0x0});return _0x148f70['createElement']('footnoteRef',{'footnoteId':_0x1af3d1});}}),_0x12c070['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x169fe1,{writer:_0x1bd49a})=>g(_0x169fe1,_0x1bd49a)}),_0x12c070['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2d7739,{writer:_0x4ce831})=>{const _0xf13465=_0x2d7739['getAttribute']('footnoteCounter');return _0x54216a(g(_0x2d7739,_0x4ce831),_0x4ce831,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xf13465)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2c60c8}=this,{t:t}=_0x2c60c8['locale'],{conversion:_0x5e873e}=_0x2c60c8;_0x5e873e['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x5e873e['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x5e873e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e86b1,{writer:_0x57f83e})=>{const _0x28c5f9=_0x57f83e['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x57f83e['createContainerElement']('ol',{'class':'footnotes'},_0x57f83e['createSlot']())),_0x345941=_0x54216a(_0x28c5f9,_0x57f83e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x57f83e['setCustomProperty']('footnotesDefinitions',!0x0,_0x345941),_0x345941;}});}['_defineDefinitionConverters'](){const {editor:_0x3e9308}=this,{conversion:_0x158bb6,locale:_0x5d7e2c}=_0x3e9308,_0x5254cf=_0x3e9308['config']['get']('footnotes.multiBlock');_0x158bb6['for']('upcast')['add'](_0x4f8262=>{_0x4f8262['on']('element:li',(_0x4be292,_0x5cd1e2,_0xb7dc0)=>{const _0x2302e8=_0x5cd1e2['viewItem'];if(!_0x2302e8['hasClass']('footnote-definition')||!_0x2302e8['getAttribute']('id'))return;const _0x2e3ab5=_0x2302e8['parent'];if(!_0x2e3ab5['is']('element','ol')||!_0x2e3ab5['hasClass']('footnotes'))return;if(!_0xb7dc0['consumable']['test'](_0x2302e8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2417bb=_0xb7dc0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2302e8['getAttribute']('id')});if(!_0xb7dc0['safeInsert'](_0x2417bb,_0x5cd1e2['modelCursor']))return;_0xb7dc0['consumable']['consume'](_0x2302e8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5b74db=Array['from'](_0x2302e8['getChildren']())['find'](_0x33ae9f=>_0x33ae9f['is']('element')&&_0x33ae9f['hasClass']('footnote-content'));for(const _0x380b18 of _0x2302e8['getChildren']())_0x380b18['is']('element')&&(_0xb7dc0['consumable']['consume'](_0x380b18,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xb7dc0['consumable']['consume'](_0x380b18,{'name':!0x0,'classes':'footnote-content'}));if(_0x5b74db){if(_0x5254cf)_0xb7dc0['convertChildren'](_0x5b74db,_0x2417bb);else{const _0xec51b8=_0xb7dc0['writer']['createElement']('footnoteInlineContent');_0xb7dc0['writer']['insert'](_0xec51b8,_0x2417bb),_0xb7dc0['convertChildren'](_0x5b74db,_0xec51b8);}}_0xb7dc0['updateConversionResult'](_0x2417bb,_0x5cd1e2);});}),_0x158bb6['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x491916,{writer:_0x26734d})=>D(_0x491916,_0x26734d,_0x5d7e2c,{'dataPipeline':!0x0})}),_0x158bb6['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4aec1e,{writer:_0x13fbc4})=>D(_0x4aec1e,_0x13fbc4,_0x5d7e2c)});}['_defineBogusParagraphConverters'](){const {editor:_0x32d9ef}=this,{conversion:_0x4d3f0a}=_0x32d9ef;_0x32d9ef['config']['get']('footnotes.multiBlock')?(_0x4d3f0a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4d3f0a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x32d9ef['model']['document'],'change:data',()=>{!function(_0x4db800,_0x4056e1){const _0xcd45a=_0x4db800['document']['differ'],_0x359d92=new Set();for(const _0x122c46 of _0xcd45a['getChanges']()){const _0x45873f='attribute'==_0x122c46['type']?_0x122c46['range']['start']['parent']:_0x122c46['position']['parent'];_0x45873f['is']('element','footnoteDefinition')&&_0x359d92['add'](_0x45873f);}for(const _0x55a330 of _0x359d92['values']()){const _0x1703ff=Array['from'](_0x55a330['getChildren']())['filter'](_0x51d6d2=>p(_0x51d6d2,_0x4056e1['mapper']));for(const _0x466021 of _0x1703ff)_0x4056e1['reconvertItem'](_0x466021);}}(_0x32d9ef['model'],_0x32d9ef['editing']);})):(_0x4d3f0a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4d3f0a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x22262e,{writer:_0x4e05c0})=>{const _0x6b4e01=_0x4e05c0['createContainerElement']('span');return _0x4e05c0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x6b4e01),_0x6b4e01;}}));}['_defineKeyboardHandlers'](){const {editor:_0x518344}=this,{editing:_0x1c51e6,t:t}=_0x518344,_0x13688c=_0x518344['model']['document']['selection'];_0x518344['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x518344['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x1c51e6['view']['document'],'enter',(_0x2372e7,_0xeee63b)=>{const _0x4d6a01=function(_0x487d99){const _0x2edca9=_0x487d99['getSelectedElement']();if(_0x2edca9?.['is']('element','footnoteRef'))return _0x2edca9;return null;}(_0x13688c);if(_0x4d6a01){const _0x293c8d=_0x4d6a01['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x293c8d),_0xeee63b['preventDefault'](),_0x2372e7['stop']();}},{'context':_0x29c28c});}['_defineClickHandlers'](){const {editor:_0xa85d0e}=this,{editing:_0x426919}=_0xa85d0e;_0xa85d0e['editing']['view']['addObserver'](_0x4db70f),_0xa85d0e['editing']['view']['addObserver'](_0x48f252);let _0x533c48=!0x1;this['listenTo'](_0x426919['view']['document'],'pointerdown',(_0x3c4eaf,_0x248114)=>{const {target:_0x4f83bb}=_0x248114,_0x1cbef3=_0x426919['view']['document']['selection'];_0x533c48=!(!_0x4f83bb['is']('element','sup')||!_0x4f83bb['hasClass']('footnote'))&&_0x1cbef3['getSelectedElement']()===_0x4f83bb;},{'priority':'high'}),this['listenTo'](_0x426919['view']['document'],'click',(_0x39d6a9,_0x329fcb)=>{const {target:_0x2c5d3c}=_0x329fcb,_0x597130=_0x2c5d3c['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x597130['slice'](0x1)),_0x39d6a9['stop'](),_0x329fcb['preventDefault']();},{'priority':'high','context':_0x434d3e=>_0x434d3e['is']('element','sup')&&_0x434d3e['hasClass']('footnote')&&_0x533c48}),this['listenTo'](_0x426919['view']['document'],'click',(_0x1e04ba,_0x581f8d)=>{const {target:_0x5ca5c1}=_0x581f8d;if(!_0x5ca5c1['is']('element','a'))return;let _0x4b5f8f=_0x5ca5c1['getAttribute']('href');if(!_0x4b5f8f?.['startsWith']('#'))return;_0x4b5f8f=_0x4b5f8f['slice'](0x1);let _0x372001=!0x1;(_0x4b5f8f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4b5f8f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4b5f8f))&&(_0x372001=!0x0),_0x372001&&(_0x581f8d['preventDefault'](),_0x1e04ba['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x2e0baf}={}){return(_0x486d3a,{writer:_0x145ced})=>{if(!h(_0x486d3a))return null;if(!_0x2e0baf)return _0x145ced['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1f15dd=_0x145ced['createContainerElement']('p');return _0x145ced['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1f15dd),_0x1f15dd;};}function h(_0x3b36f7){const {parent:_0x49c48c}=_0x3b36f7;if(!_0x49c48c?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x49c48c['childCount'])return!0x1;for(const _0x254796 of _0x3b36f7['getAttributeKeys']())if(!_0x254796['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x254796)return!0x1;return!0x0;}function p(_0x39fddd,_0x48505a){if(!_0x39fddd['is']('element','paragraph'))return!0x1;const _0x4df0b4=_0x48505a['toViewElement'](_0x39fddd);return!!_0x4df0b4&&h(_0x39fddd)!==_0x4df0b4['is']('element','span');}function R(_0x41fda5){return _0x29c28c(_0x41fda5)&&_0x41fda5['is']('containerElement')&&!!_0x41fda5['getCustomProperty']('footnotesDefinitions');}function g(_0x57f427,_0x33d1fd){const _0x59a350=_0x57f427['getAttribute']('footnoteId'),_0x12494c=_0x57f427['getAttribute']('footnoteCounter'),_0x448221=_0x33d1fd['createUIElement']('a',{'id':'ref-'+_0x59a350,'href':'#'+_0x59a350},function(_0x2ec64e){const _0x3f4726=this['toDomElement'](_0x2ec64e);return _0x3f4726['textContent']=_0x12494c,_0x3f4726;}),_0x3d1e77=_0x33d1fd['createContainerElement']('sup',{'class':'footnote'},[_0x448221]);return _0x3d1e77['getFillerOffset']=()=>null,_0x3d1e77;}function D(_0x125f54,_0x17d9f4,_0x46cc91,{dataPipeline:_0x24cdf2}={}){const {t:t}=_0x46cc91,_0x60cbcc=_0x125f54['getAttribute']('footnoteId'),_0x39a045=_0x17d9f4['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x60cbcc},function(_0x4c86eb){const _0x3de97a=this['toDomElement'](_0x4c86eb);return _0x3de97a['innerText']='^',_0x3de97a;}),_0x556382=_0x24cdf2?_0x17d9f4['createContainerElement']('div',{'class':'footnote-content'}):_0x39d06a(_0x17d9f4['createEditableElement']('div',{'class':'footnote-content'}),_0x17d9f4,{'label':t('Footnote\x20content.')});return _0x17d9f4['insert'](_0x17d9f4['createPositionAt'](_0x556382,0x0),_0x17d9f4['createSlot']()),_0x17d9f4['createContainerElement']('li',{'class':'footnote-definition','id':_0x60cbcc},[_0x39a045,_0x556382]);}class e extends _0x26c9a0{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1f9188];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x129e5f}=this,{plugins:_0x382091,model:_0x1dc322}=_0x129e5f,_0x11835c=_0x382091['get'](_0x1f9188),_0x2a93c0=_0x382091['get'](c);this['listenTo'](_0x11835c,'outputTransformation',(_0x1c7a68,_0x6a55ca)=>{const _0x357920=function(_0x2513a1,_0x1810cd){const _0x3c5f31=new Set();for(const {item:_0xc8de81}of _0x2513a1['createRangeIn'](_0x1810cd))_0xc8de81['is']('element','footnoteRef')&&_0x3c5f31['add'](_0xc8de81['getAttribute']('footnoteId'));return Array['from'](_0x3c5f31);}(_0x1dc322,_0x6a55ca['content']);if(!_0x357920['length'])return;const _0x5c3966=_0x2a93c0['getFootnotes'](),_0x160664=_0x357920['reduce']((_0x566eae,_0x2ba2a4)=>{const _0x540104=_0x5c3966['find'](_0x5d109a=>_0x5d109a['id']===_0x2ba2a4);if(_0x540104){const _0x4cbec7=_0x129e5f['data']['toView'](_0x540104['definition'],{'isClipboardPipeline':!0x0}),_0x39dc6d=_0x129e5f['data']['htmlProcessor']['toData'](_0x4cbec7);_0x566eae[_0x540104['id']]=_0x39dc6d;}return _0x566eae;},Object['create'](null));_0x6a55ca['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x160664));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0xd6b269}=this,{model:_0x347d50,plugins:_0x2e4cc5}=_0xd6b269,{view:_0x56bcb3}=_0xd6b269['editing'],_0x5cc608=_0x2e4cc5['get'](_0x1f9188),_0x3d4beb=_0x2e4cc5['get'](c);let _0x238602=null;this['listenTo'](_0x56bcb3['document'],'clipboardInput',(_0x2baa12,_0x414bf8)=>{const _0x86ce2d=_0x414bf8['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x238602=_0x86ce2d?JSON['parse'](_0x86ce2d):null;}),this['listenTo'](_0x5cc608,'contentInsertion',(_0x1a8020,_0x11e2c3)=>{if(!_0x238602)return;const _0x5a7976=_0x11e2c3['sourceEditorId']===this['editor']['id'];_0x5a7976&&'drop'===_0x11e2c3['method']||_0x347d50['change'](_0x4db44f=>{!function(_0x3c7b28,_0x4de3d9){const _0x9058c=[];for(const {item:_0xe3147}of _0x3c7b28['createRangeIn'](_0x4de3d9))_0xe3147['is']('element','footnotesDefinitions')&&_0x9058c['push'](_0xe3147);for(const _0x304661 of _0x9058c)_0x3c7b28['remove'](_0x304661);}(_0x4db44f,_0x11e2c3['content']);let _0x316232=_0x3d4beb['getFootnotesDefinitionsObjectElement']();if(!_0x316232){const _0x27d88f=_0x347d50['document']['selection']['getFirstRange']()['root'];_0x316232=_0x3d4beb['_insertEmptyFootnotesDefinitionsContainer'](_0x4db44f,_0x27d88f);}const _0x46546a=function(_0x29eb3b,_0x41cb6e,_0x2b072e){const _0x306b2a=Object['create'](null);for(const {item:_0x596ee0}of _0x29eb3b['createRangeIn'](_0x41cb6e))if(_0x596ee0['is']('element','footnoteRef')){const _0xf17b81=_0x596ee0['getAttribute']('footnoteId');if(!_0x2b072e(_0xf17b81))continue;_0x306b2a[_0xf17b81]||(_0x306b2a[_0xf17b81]=_0x436233()),_0x29eb3b['setAttribute']('footnoteId',_0x306b2a[_0xf17b81],_0x596ee0);}return _0x306b2a;}(_0x4db44f,_0x11e2c3['content'],_0x433fd4=>!_0x5a7976||null!==_0x3d4beb['getFootnote'](_0x433fd4));for(const [_0x376d7a,_0x157609]of Object['entries'](_0x238602)){const _0x1181d6=_0x46546a[_0x376d7a]||_0x376d7a,_0x2e2151=_0x4db44f['createElement']('footnoteDefinition',{'footnoteId':_0x1181d6}),_0x3a76a1=_0xd6b269['data']['htmlProcessor']['toView'](_0x157609),_0x12dbd8=_0xd6b269['data']['toModel'](_0x3a76a1,_0x2e2151);_0x4db44f['append'](_0x12dbd8,_0x2e2151),_0x4db44f['insert'](_0x2e2151,_0x316232,'end');}_0x238602=null;});});}}class i extends _0x26c9a0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1af703}=this,{componentFactory:_0x54dd27}=_0x1af703['ui'];_0x54dd27['add']('insertFootnote',v(_0x1af703,_0x1754d9)),_0x54dd27['add']('menuBar:insertFootnote',v(_0x1af703,_0x5c4404)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47d207=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a3adf;for(const _0x4d01a9 in _0x47d207){const _0x385471=_0x4d01a9,_0x1c92e7=_0x47d207[_0x385471];if('footnotesLicenseKeyValid'==_0x1c92e7||'footnotesLicenseKeyInvalid'==_0x1c92e7||'footnotesLicenseKeyExpired'==_0x1c92e7||'footnotesLicenseKeyDomainLimit'==_0x1c92e7||'footnotesLicenseKeyNotAllowed'==_0x1c92e7||'footnotesLicenseKeyEvaluationLimit'==_0x1c92e7||'footnotesLicenseKeyTrialLimit'==_0x1c92e7||'footnotesLicenseKeyUsageLimit'==_0x1c92e7){delete _0x47d207[_0x385471],_0x5a3adf=_0x1c92e7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5a3adf&&_0x47d207['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5a3adf&&_0x47d207['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5a3adf&&_0x47d207['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5a3adf&&_0x47d207['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5a3adf&&_0x47d207['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5a3adf&&_0x47d207['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5a3adf&&_0x47d207['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x2322a0,_0x3d48b0){const _0x101dfd=_0x2322a0['commands']['get']('insertFootnote');return _0x258133=>{const {t:t}=_0x258133,_0x290b35=new _0x3d48b0(_0x258133),_0x1b755a=_0x290b35 instanceof _0x5c4404;return _0x290b35['bind']('isEnabled')['to'](_0x101dfd,'isEnabled'),_0x290b35['set']({'label':t(_0x1b755a?'Footnote':'Insert\x20footnote'),'icon':_0x467977,'tooltip':!0x0}),_0x290b35['on']('execute',()=>{_0x101dfd['execute'](),_0x2322a0['editing']['view']['focus']();}),_0x290b35;};}class nt extends _0x26c9a0{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x347a2d{['refresh'](){const {editor:_0x4a18d5}=this,_0x13066e=_0x4a18d5['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13066e,this['value']=_0x13066e?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x152fd7}){const {editor:_0x23688a}=this,_0x1a2612=_0x23688a['plugins']['get'](c),_0x137d6c=_0x1a2612['getFootnotesDefinitionsObjectElement']();_0x137d6c&&Q['includes'](_0x152fd7)&&_0x23688a['model']['change'](_0x4a60ab=>{_0x4a60ab['setAttribute']('footnotesListStyle',_0x152fd7,_0x137d6c),_0x1a2612['_updateFootnotesCounters'](_0x4a60ab);});}}class k extends _0x347a2d{['refresh'](){const {editor:_0x984f49}=this,_0x281521=_0x984f49['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x281521,this['value']=_0x281521?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x331277}){const {editor:_0x41d8e0}=this,_0x61f55a=_0x41d8e0['plugins']['get'](c),_0x99b17e=_0x61f55a['getFootnotesDefinitionsObjectElement']();_0x99b17e&&Number['isInteger'](_0x331277)&&_0x41d8e0['model']['change'](_0x5f122e=>{_0x5f122e['setAttribute']('footnotesListStart',_0x331277,_0x99b17e),_0x61f55a['_updateFootnotesCounters'](_0x5f122e);});}}class P extends _0x26c9a0{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e2ac8}=this;_0x3e2ac8['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x3e2ac8['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x3e2ac8['commands']['add']('footnotesStyle',new S(_0x3e2ac8)),_0x3e2ac8['commands']['add']('footnotesStart',new k(_0x3e2ac8)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2bd8ad}=this,{schema:_0x1bed19}=_0x2bd8ad['model'];_0x1bed19['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x34c0ae}=this,{conversion:_0x3a827d,model:_0x5f563e}=_0x34c0ae,{schema:_0x1bb2ae}=_0x5f563e;_0x3a827d['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x5b6b4c=>_0x5b6b4c['getStyle']('list-style-type')}}),_0x3a827d['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x3fb076=>{const _0x4fa474=_0x3fb076['getAttribute']('start'),_0x515376=Number['parseInt'](_0x4fa474,0xa);return Number['isNaN'](_0x515376)?null:_0x515376;}}}),_0x3a827d['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x5c9abf=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5c9abf['getAttribute']('type')])}}),_0x3a827d['for']('upcast')['add'](_0x341091=>{_0x341091['on']('element:ol',(_0x4b2c03,_0x5a901a,_0x5b7e28)=>{const _0x3e064b=_0x5a901a['modelRange']?.['start']['nodeAfter'];_0x3e064b?.['is']('element','footnotesDefinitions')&&(!_0x3e064b['hasAttribute']('footnotesListStyle')&&_0x1bb2ae['checkAttribute'](_0x3e064b,'footnotesListStyle')&&_0x5b7e28['writer']['setAttribute']('footnotesListStyle','decimal',_0x3e064b),!_0x3e064b['hasAttribute']('footnotesListStart')&&_0x1bb2ae['checkAttribute'](_0x3e064b,'footnotesListStart')&&_0x5b7e28['writer']['setAttribute']('footnotesListStart',0x1,_0x3e064b));},{'priority':'low'});}),_0x3a827d['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x6e7dea=>0x1===_0x6e7dea?null:{'key':'start','value':String(_0x6e7dea)}}),_0x3a827d['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x27a249=>'decimal'===_0x27a249?null:{'key':'style','value':{'list-style-type':_0x27a249}}}),_0x3a827d['for']('editingDowncast')['add'](_0x2582bc=>{_0x2582bc['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1a23bd,_0x354788,_0x50d5ec)=>{if(!_0x50d5ec['consumable']['consume'](_0x354788['item'],_0x1a23bd['name']))return;const _0x198fd5=b(_0x354788['item'],_0x50d5ec['mapper']);null===_0x354788['attributeNewValue']||void 0x0===_0x354788['attributeNewValue']||0x1===_0x354788['attributeNewValue']?_0x50d5ec['writer']['removeAttribute']('start',_0x198fd5):_0x50d5ec['writer']['setAttribute']('start',String(_0x354788['attributeNewValue']),_0x198fd5);}),_0x2582bc['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x58aed6,_0x4544a8,_0x16e7f8)=>{if(!_0x16e7f8['consumable']['consume'](_0x4544a8['item'],_0x58aed6['name']))return;const _0xd784dc=b(_0x4544a8['item'],_0x16e7f8['mapper']);_0x4544a8['attributeNewValue']&&'decimal'!==_0x4544a8['attributeNewValue']?_0x16e7f8['writer']['setStyle']('list-style-type',_0x4544a8['attributeNewValue'],_0xd784dc):_0x16e7f8['writer']['removeStyle']('list-style-type',_0xd784dc);});});}['_definePostfixer'](){const {editor:_0x10345d}=this,{model:_0x37acfc}=_0x10345d,_0x245e8e=_0x10345d['plugins']['get'](c),_0x43fc65=this['_getDefaultListStyle'](),_0x3f6040=this['_getDefaultStartIndex']();_0x37acfc['document']['registerPostFixer'](_0x257cc1=>{const _0x26d71f=_0x37acfc['document']['differ']['getChanges']();let _0x5c73fa=!0x1;for(const _0x4728b5 of _0x26d71f){if('insert'!==_0x4728b5['type']||'$text'===_0x4728b5['name'])continue;const _0x22414e=_0x37acfc['createRangeOn'](_0x4728b5['position']['nodeAfter']);for(const _0x50dedd of _0x22414e['getItems']())_0x50dedd['is']('element','footnotesDefinitions')&&(_0x50dedd['hasAttribute']('footnotesListStart')||(_0x257cc1['setAttribute']('footnotesListStart',_0x3f6040,_0x50dedd),_0x5c73fa=!0x0),_0x50dedd['hasAttribute']('footnotesListStyle')||(_0x257cc1['setAttribute']('footnotesListStyle',_0x43fc65,_0x50dedd),_0x5c73fa=!0x0));}return _0x5c73fa&&_0x245e8e['_updateFootnotesCounters'](_0x257cc1),_0x5c73fa;});}['_defineFormatter'](){const {editor:_0x2a3646}=this;_0x2a3646['plugins']['get'](c)['setFootnoteFormatter'](_0x2d79ed=>this['_formatFootnoteListValue'](_0x2d79ed));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x46ed04,value:_0x20ab36,digits:_0x32388e}){const _0x365e57=_0x46ed04['getAttribute']('footnotesListStyle'),_0x5067a8=_0x46ed04['getAttribute']('footnotesListStart'),_0x123b15=Math['floor'](_0x20ab36)+(_0x5067a8-0x1);switch(_0x365e57){case'decimal':default:return String(_0x123b15);case'decimal-leading-zero':return function(_0x2201ce,_0x56e76b){return String(_0x2201ce)['padStart'](_0x56e76b,'0');}(_0x123b15,Math['max'](0x2,_0x32388e));case'lower-alpha':case'lower-latin':return x(_0x123b15,!0x1);case'upper-alpha':case'upper-latin':return x(_0x123b15,!0x0);case'lower-roman':return M(_0x123b15,!0x1);case'upper-roman':return M(_0x123b15,!0x0);}}}function b(_0x1b7bdd,_0x4ae627){const _0x467347=_0x4ae627['toViewElement'](_0x1b7bdd);return Array['from'](_0x467347['getChildren']())['find'](_0x3b17e8=>_0x3b17e8['is']('element','ol'));}function x(_0x2c276c,_0x5995e0){let _0xa7fe12='',_0x4b1b8c=_0x2c276c;for(;_0x4b1b8c>0x0;){const _0x2a1b62=(_0x4b1b8c-0x1)%0x1a;_0xa7fe12=String['fromCharCode'](0x61+_0x2a1b62)+_0xa7fe12,_0x4b1b8c=Math['floor']((_0x4b1b8c-0x1)/0x1a);}return _0x5995e0?_0xa7fe12['toUpperCase']():_0xa7fe12;}const C=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function M(_0x550e76,_0xf68cf2){let _0x392cb8='',_0x1a77c3=_0x550e76;for(const {value:_0x10d200,numeral:_0x1e0210}of C)for(;_0x1a77c3>=_0x10d200;)_0x392cb8+=_0x1e0210,_0x1a77c3-=_0x10d200;return _0xf68cf2?_0x392cb8:_0x392cb8['toLowerCase']();}class G extends _0x43d7d2{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x48138c();['focusCycler'];constructor(_0x1fcabd,{styleButtonViews:_0x3153af,styleGridAriaLabel:_0x33b146}){super(_0x1fcabd),(this['focusCycler']=new _0x267703({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3153af,_0x33b146),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x12b4f6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x12b4f6['element']);_0x4b9dd9({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x365b82=_0x486537=>_0x486537['stopPropagation']();this['keystrokes']['set']('arrowright',_0x365b82),this['keystrokes']['set']('arrowleft',_0x365b82),this['keystrokes']['set']('arrowup',_0x365b82),this['keystrokes']['set']('arrowdown',_0x365b82);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x96277d,_0x3716fd){const _0x3afdc9=new _0x43d7d2(this['locale']);return _0x3afdc9['children']=_0x3afdc9['createCollection'](),_0x3afdc9['children']['addMany'](_0x96277d),_0x3afdc9['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3716fd,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3afdc9['children']}),_0x3afdc9['children']['delegate']('execute')['to'](this),_0x3afdc9['focus']=function(){for(const _0x53cef7 of this['children'])if(_0x53cef7 instanceof _0x1754d9&&_0x53cef7['isOn'])return void _0x53cef7['focus']();this['children']['first']['focus']();},_0x3afdc9['focusTracker']=new it(),_0x3afdc9['keystrokes']=new et(),_0x3afdc9['render'](),_0x3afdc9['keystrokes']['listenTo'](_0x3afdc9['element']),this['children']['add'](_0x3afdc9),_0x3afdc9;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1e5647=this['_createStartIndexPropertyView'](),_0x31bc70=[_0x1e5647],_0x1bd883=new _0x4e2e3f(this['locale'],_0x31bc70);return _0x1bd883['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1bd883['buttonView']['bind']('isEnabled')['toMany'](_0x31bc70,'isEnabled',(..._0xba8bb2)=>_0xba8bb2['some'](_0x563dcc=>_0x563dcc)),_0x1bd883['buttonView']['on']('change:isEnabled',(_0x13a7b1,_0x40c522,_0x2ecf82)=>{_0x2ecf82||(_0x1bd883['isCollapsed']=!0x0);}),this['children']['add'](_0x1bd883),[_0x1e5647,_0x1bd883];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1da22b=new tt(this['locale'],st);return _0x1da22b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1da22b['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1da22b['fieldView']['on']('input',()=>{const _0x56a7e8=_0x1da22b['fieldView']['element'],_0x435d26=_0x56a7e8['valueAsNumber'];Number['isNaN'](_0x435d26)?_0x1da22b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x56a7e8['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x435d26}):_0x1da22b['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x1da22b;}}class j extends _0x26c9a0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x14c07c,_0x3a860b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb99262}=this,{componentFactory:_0x236a45}=_0xb99262['ui'];_0xb99262['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x236a45['add']('footnotesStyle',function(_0x48664f){return _0x168143=>{const {t:t}=_0x168143,_0x44f050=_0x48664f['commands']['get']('footnotesStyle'),_0x152826=_0x302f07(_0x168143),{buttonView:_0x4191b5}=_0x152826;return _0x152826['class']='ck-footnotes-styles-dropdown',_0x152826['bind']('isEnabled')['to'](_0x44f050,'isEnabled'),_0x4191b5['set']({'label':t('Footnotes\x20style'),'icon':_0x467977,'tooltip':!0x0}),_0x152826['once']('change:isOpen',()=>{const _0x3cf8af=function({editor:_0x34757e,dropdownView:_0x387f50}){const {t:t}=_0x34757e['locale'],_0x4376f6=t('Footnotes\x20definitions\x20styles'),_0x49b2b8=function(_0x101b30){const t=_0x101b30['locale']['t'],_0x16d40b=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2f66ec},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3cc5b8},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5224f5},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5e9320},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x13afa9},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x52a299}];return _0x16d40b['map'](function(_0x44aa6c){const _0x4066dd=_0x44aa6c['locale'];return({label:_0x35b153,icon:_0x4b6c65,tooltip:_0xfe147,style:_0x2129f6})=>{const _0x13abb2=_0x44aa6c['commands']['get']('footnotesStyle'),_0x467e64=new _0x1754d9(_0x4066dd);return _0x467e64['set']({'label':_0x35b153,'icon':_0x4b6c65,'tooltip':_0xfe147}),_0x467e64['bind']('isOn')['to'](_0x13abb2,'value',_0x112ad7=>_0x112ad7===_0x2129f6),_0x467e64['bind']('isEnabled')['to'](_0x13abb2,'isEnabled'),_0x467e64['on']('execute',()=>{_0x44aa6c['execute']('footnotesStyle',{'value':_0x2129f6}),_0x44aa6c['editing']['view']['focus']();}),_0x467e64;};}(_0x101b30));}(_0x34757e),_0x3b3f11=new G(_0x34757e['locale'],{'styleGridAriaLabel':_0x4376f6,'styleButtonViews':_0x49b2b8});return _0x3b3f11['delegate']('execute')['to'](_0x387f50),_0x3b3f11['on']('footnotesListStart',(_0x217f64,_0x25e367)=>{_0x34757e['execute']('footnotesStart',{'value':_0x25e367['startIndex']});}),_0x3b3f11;}({'editor':_0x48664f,'dropdownView':_0x152826});_0x152826['panelView']['children']['add'](_0x3cf8af);}),_0x152826;};}(_0xb99262));}['afterInit'](){const {editor:_0x203e9e}=this,{t:t}=_0x203e9e['locale'],_0x66f10b=_0x203e9e['plugins']['get'](_0x3a860b),{defaultPositions:_0xa4b585}=_0x529790;_0x66f10b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x203e9e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x39fa33=>{let _0x29cb26=_0x39fa33['getFirstPosition']()?.['parent'];return _0x29cb26?.['is']('$text')&&(_0x29cb26=_0x29cb26['parent']),_0x29cb26?.['is']('element')?_0x29cb26['findAncestor'](R):null;},'positions':[_0xa4b585['southArrowNorth'],_0xa4b585['southArrowNorthMiddleWest'],_0xa4b585['southArrowNorthMiddleEast'],_0xa4b585['southArrowNorthWest'],_0xa4b585['southArrowNorthEast'],_0xa4b585['northArrowSouth'],_0xa4b585['northArrowSouthMiddleWest'],_0xa4b585['northArrowSouthMiddleEast'],_0xa4b585['northArrowSouthWest'],_0xa4b585['northArrowSouthEast'],_0xa4b585['viewportStickyNorth']]});}}class rt extends _0x26c9a0{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,rt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,k as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
@@ -0,0 +1,26 @@
1
+ {
2
+ "Footnote": "The label of the footnote toolbar button and title of menu bar button.",
3
+ "Footnotes": "The label of the footnotes toolbar button, title of menu bar button and widget.",
4
+ "Footnotes properties": "The label of the footnotes properties button placed in the footnotes definitions toolbar.",
5
+ "Footnotes start at": "The label of the footnotes start index input field in the footnotes properties.",
6
+ "Invalid footnotes start index value.": "The error text of the footnotes start index input field in the footnotes properties.",
7
+ "Footnotes start index must be greater than 0.": "The error text of the footnotes start index input field in the footnotes properties.",
8
+ "Footnote %0. Press ENTER to jump to footnote definition.": "The label of the footnote reference widget.",
9
+ "Footnote content.": "The label of the footnote content widget.",
10
+ "Footnotes definitions styles": "The label of the footnotes definitions styles in dropdown.",
11
+ "Footnotes definitions toolbar": "The label of the footnotes definitions toolbar.",
12
+ "Insert footnote": "The label of the insert footnote button and accessibility dialog.",
13
+ "Footnotes style": "The label of the footnotes style button placed in the footnotes definitions toolbar.",
14
+ "Toggle the decimal footnotes style": "The label of the toggle button for decimal footnotes style.",
15
+ "Decimal footnotes": "The tooltip for the decimal footnotes style button.",
16
+ "Toggle the decimal with leading zero footnotes style": "The label of the toggle button for decimal with leading zero footnotes style.",
17
+ "Decimal footnotes with leading zero": "The tooltip for the decimal with leading zero footnotes style button.",
18
+ "Lower–roman footnotes": "The tooltip for the lower-roman footnotes style button.",
19
+ "Upper-roman footnotes": "The tooltip for the upper-roman footnotes style button.",
20
+ "Lower-latin footnotes": "The tooltip for the lower-latin footnotes style button.",
21
+ "Upper-latin footnotes": "The tooltip for the upper-latin footnotes style button.",
22
+ "Toggle the lower–roman footnotes style": "The label of the toggle button for lower-roman footnotes style.",
23
+ "Toggle the upper–roman footnotes style": "The label of the toggle button for upper-roman footnotes style.",
24
+ "Toggle the lower–latin footnotes style": "The label of the toggle button for lower-latin footnotes style.",
25
+ "Toggle the upper–latin footnotes style": "The label of the toggle button for upper-latin footnotes style."
26
+ }
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@ckeditor/ckeditor5-footnotes",
3
+ "version": "0.0.0-nightly-20251015.0",
4
+ "description": "The footnotes feature for CKEditor 5.",
5
+ "keywords": [
6
+ "ckeditor",
7
+ "ckeditor5",
8
+ "ckeditor 5",
9
+ "ckeditor5-feature",
10
+ "ckeditor5-plugin",
11
+ "WYSIWYG",
12
+ "WYSIWYM",
13
+ "text",
14
+ "rich-text",
15
+ "richtext",
16
+ "ckeditor",
17
+ "editor",
18
+ "editing",
19
+ "html",
20
+ "contentEditable",
21
+ "footnotes"
22
+ ],
23
+ "type": "module",
24
+ "main": "src/index.js",
25
+ "dependencies": {
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251015.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251015.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251015.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251015.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251015.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251015.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251015.0",
33
+ "ckeditor5": "0.0.0-nightly-20251015.0"
34
+ },
35
+ "license": "SEE LICENSE IN LICENSE.md",
36
+ "author": "CKSource (http://cksource.com/)",
37
+ "homepage": "https://ckeditor.com/ckeditor-5",
38
+ "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
39
+ "files": [
40
+ "dist",
41
+ "lang",
42
+ "src/**/*.js",
43
+ "src/**/*.d.ts",
44
+ "theme",
45
+ "build",
46
+ "ckeditor5-metadata.json",
47
+ "CHANGELOG.md"
48
+ ],
49
+ "types": "src/index.d.ts",
50
+ "exports": {
51
+ ".": {
52
+ "types": "./src/index.d.ts",
53
+ "import": "./src/index.js",
54
+ "default": "./src/index.js"
55
+ },
56
+ "./dist/*": {
57
+ "types": "./src/index.d.ts",
58
+ "import": "./dist/*",
59
+ "default": "./dist/*"
60
+ },
61
+ "./src/*": {
62
+ "types": "./src/*.d.ts",
63
+ "import": "./src/*",
64
+ "default": "./src/*"
65
+ },
66
+ "./build/*": "./build/*",
67
+ "./lang/*": "./lang/*",
68
+ "./theme/*": "./theme/*",
69
+ "./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
70
+ "./package.json": "./package.json"
71
+ },
72
+ "obfuscated": true
73
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { Footnotes } from './footnotes.js';
6
+ import type { FootnotesEditing } from './footnotesediting.js';
7
+ import type { FootnotesUI } from './footnotesui.js';
8
+ import type { InsertFootnoteCommand } from './commands/insertfootnotecommand.js';
9
+ import type { FootnotesConfig } from './footnotesconfig.js';
10
+ import type { FootnotesTracker } from './footnotestracker.js';
11
+ import type { FootnotesPropertiesEditing } from './footnotesproperties/footnotespropertiesediting.js';
12
+ import type { FootnotesStyleCommand } from './footnotesproperties/commands/footnotesstylecommand.js';
13
+ import type { FootnotesStartCommand } from './footnotesproperties/commands/footnotesstartcommand.js';
14
+ import type { FootnotesPropertiesUI } from './footnotesproperties/footnotespropertiesui.js';
15
+ import type { FootnotesProperties } from './footnotesproperties.js';
16
+ declare module '@ckeditor/ckeditor5-core' {
17
+ interface PluginsMap {
18
+ [Footnotes.pluginName]: Footnotes;
19
+ [FootnotesEditing.pluginName]: FootnotesEditing;
20
+ [FootnotesUI.pluginName]: FootnotesUI;
21
+ [FootnotesTracker.pluginName]: FootnotesTracker;
22
+ [FootnotesPropertiesEditing.pluginName]: FootnotesPropertiesEditing;
23
+ [FootnotesPropertiesUI.pluginName]: FootnotesPropertiesUI;
24
+ [FootnotesProperties.pluginName]: FootnotesProperties;
25
+ }
26
+ interface CommandsMap {
27
+ insertFootnote: InsertFootnoteCommand;
28
+ footnotesStyle: FootnotesStyleCommand;
29
+ footnotesStart: FootnotesStartCommand;
30
+ }
31
+ interface EditorConfig {
32
+ footnotes?: FootnotesConfig;
33
+ }
34
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export{};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ /**
7
+ * The insert footnote command.
8
+ */
9
+ export declare class InsertFootnoteCommand extends Command {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ refresh(): void;
14
+ /**
15
+ * @inheritdoc
16
+ */
17
+ execute(options?: {
18
+ footnoteId: string;
19
+ }): void;
20
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x2951(){const _0x576a41=['model','createElement','55041btEnnr','1466541gKChQA','refresh','execute','footnoteRef','checkChild','document','selection','test','end','getItems','4735608EcxyJx','editor','isEnabled','insertObject','isBlock','_moveSelectionToFootnoteDefinition','insert-footnote-command-executed-with-invalid-id','1005450VtTVqu','10750626IIsWuj','FootnotesEditing','18hkhLbh','getFirstRange','11844fYdBBP','3544FVAZqE','27881990iocZwy','string','get','length','footnoteId','isObject','38xvyTTV','_getPositionToInsertFootnote','plugins','change'];_0x2951=function(){return _0x576a41;};return _0x2951();}const _0x35262e=_0xdff6;function _0xdff6(_0x313ee5,_0x284d24){const _0x295170=_0x2951();return _0xdff6=function(_0xdff607,_0x330460){_0xdff607=_0xdff607-0x183;let _0x533322=_0x295170[_0xdff607];return _0x533322;},_0xdff6(_0x313ee5,_0x284d24);}(function(_0x31ca95,_0x32b986){const _0x433c09=_0xdff6,_0x410418=_0x31ca95();while(!![]){try{const _0x16a30d=parseInt(_0x433c09(0x1a5))/0x1*(parseInt(_0x433c09(0x19f))/0x2)+parseInt(_0x433c09(0x1a6))/0x3+parseInt(_0x433c09(0x18b))/0x4+parseInt(_0x433c09(0x192))/0x5*(parseInt(_0x433c09(0x195))/0x6)+parseInt(_0x433c09(0x197))/0x7*(-parseInt(_0x433c09(0x198))/0x8)+parseInt(_0x433c09(0x193))/0x9+-parseInt(_0x433c09(0x199))/0xa;if(_0x16a30d===_0x32b986)break;else _0x410418['push'](_0x410418['shift']());}catch(_0x5b3433){_0x410418['push'](_0x410418['shift']());}}}(_0x2951,0xeee7d));import{logWarning as _0x5ae382,uid as _0x483ee6}from'ckeditor5/src/utils.js';import{Command as _0x1bb985}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x1bb985{[_0x35262e(0x1a7)](){const _0x1e0c24=_0x35262e,_0x3632ed=this[_0x1e0c24(0x18c)][_0x1e0c24(0x1a3)][_0x1e0c24(0x186)][_0x1e0c24(0x187)],_0x48b8ce=this[_0x1e0c24(0x1a0)](_0x3632ed);this[_0x1e0c24(0x18d)]=!!_0x48b8ce;}[_0x35262e(0x183)](_0x137751){const _0x314ad5=_0x35262e,{editor:_0xd25658}=this,{model:_0x54cb47}=_0xd25658,{selection:_0xc907f1}=_0x54cb47[_0x314ad5(0x186)],_0x2f9f2b=this[_0x314ad5(0x1a0)](_0xc907f1);if(!_0x2f9f2b)return;const _0x45d3da=_0xd25658[_0x314ad5(0x1a1)][_0x314ad5(0x19b)](_0x314ad5(0x194)),_0x227c64=_0x137751?.[_0x314ad5(0x19d)]??_0x483ee6();!function(_0x3c2778){const _0x14c267=_0x314ad5;return _0x14c267(0x19a)==typeof _0x3c2778&&_0x3c2778[_0x14c267(0x19c)]>0x0&&!/\s/[_0x14c267(0x188)](_0x3c2778)&&!/^\d/[_0x14c267(0x188)](_0x3c2778);}(_0x227c64)?_0x5ae382(_0x314ad5(0x191)):(_0x54cb47[_0x314ad5(0x1a2)](_0x68d4f8=>{const _0x1eac00=_0x314ad5,_0x37d7c5=_0x68d4f8[_0x1eac00(0x1a4)](_0x1eac00(0x184),{'footnoteId':_0x227c64});_0x54cb47[_0x1eac00(0x18e)](_0x37d7c5,_0x2f9f2b,null);}),_0x45d3da[_0x314ad5(0x190)](_0x227c64));}[_0x35262e(0x1a0)](_0x42a2e3){const _0x508bd8=_0x35262e,{model:_0x52d98f}=this[_0x508bd8(0x18c)],{schema:_0x3e6851}=_0x52d98f,_0xacf4c0=_0x42a2e3[_0x508bd8(0x196)]();for(const _0x35d265 of _0xacf4c0[_0x508bd8(0x18a)]())if(_0x3e6851[_0x508bd8(0x18f)](_0x35d265)||_0x3e6851[_0x508bd8(0x19e)](_0x35d265))return null;const _0x3a177d=_0xacf4c0[_0x508bd8(0x189)];return _0x3e6851[_0x508bd8(0x185)](_0x3a177d,_0x508bd8(0x184))?_0x3a177d:null;}}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module footnotes/footnotes
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { FootnotesEditing } from './footnotesediting.js';
11
+ import { FootnotesClipboard } from './footnotesclipboard.js';
12
+ import { FootnotesUI } from './footnotesui.js';
13
+ /**
14
+ * The footnotes plugin.
15
+ */
16
+ export declare class Footnotes extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "Footnotes";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof FootnotesEditing, typeof FootnotesClipboard, typeof FootnotesUI];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get isOfficialPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static get isPremiumPlugin(): true;
33
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ var _0x354d4e=_0x554d;function _0x24ec(){var _0x5d4654=['1202088zKRRcO','1697129tieJEk','3650160shcTTM','216iTEkcs','161818gaRPrg','428272YYXrYZ','pluginName','isPremiumPlugin','525138kenIso','Footnotes','requires','isOfficialPlugin','2528005aMjUYf','7yrYiCJ'];_0x24ec=function(){return _0x5d4654;};return _0x24ec();}function _0x554d(_0x163cea,_0xe19a70){var _0x24ec87=_0x24ec();return _0x554d=function(_0x554d8a,_0x1a59ea){_0x554d8a=_0x554d8a-0x120;var _0x2346ab=_0x24ec87[_0x554d8a];return _0x2346ab;},_0x554d(_0x163cea,_0xe19a70);}(function(_0x4b6edc,_0x2444aa){var _0x1b7822=_0x554d,_0x12d886=_0x4b6edc();while(!![]){try{var _0x36b392=parseInt(_0x1b7822(0x129))/0x1*(parseInt(_0x1b7822(0x120))/0x2)+parseInt(_0x1b7822(0x124))/0x3+-parseInt(_0x1b7822(0x12c))/0x4+-parseInt(_0x1b7822(0x128))/0x5+-parseInt(_0x1b7822(0x12a))/0x6+parseInt(_0x1b7822(0x12b))/0x7+parseInt(_0x1b7822(0x121))/0x8*(parseInt(_0x1b7822(0x12d))/0x9);if(_0x36b392===_0x2444aa)break;else _0x12d886['push'](_0x12d886['shift']());}catch(_0x3ce049){_0x12d886['push'](_0x12d886['shift']());}}}(_0x24ec,0x9ebc7));import{Plugin as _0x2e7614}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x2b7ac6}from'./footnotesediting.js';import{FootnotesClipboard as _0x11f7a0}from'./footnotesclipboard.js';import{FootnotesUI as _0x3b2b41}from'./footnotesui.js';export class Footnotes extends _0x2e7614{static get[_0x354d4e(0x122)](){var _0x3b255f=_0x354d4e;return _0x3b255f(0x125);}static get[_0x354d4e(0x126)](){return[_0x2b7ac6,_0x11f7a0,_0x3b2b41];}static get[_0x354d4e(0x127)](){return!0x0;}static get[_0x354d4e(0x123)](){return!0x0;}}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module footnotes/footnotesclipboard
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
10
+ import { FootnotesEditing } from './footnotesediting.js';
11
+ /**
12
+ * The footnotes clipboard integration plugin.
13
+ *
14
+ * Handles copy/paste operations for footnotes to preserve footnote mappings
15
+ * during clipboard operations.
16
+ */
17
+ export declare class FootnotesClipboard extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "FootnotesClipboard";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): readonly [typeof FootnotesEditing, typeof ClipboardPipeline];
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static get isPremiumPlugin(): true;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init(): void;
38
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x4d8a15=_0xccef;function _0xccef(_0x516748,_0x1eb836){const _0x1db9bb=_0x1db9();return _0xccef=function(_0xccefc8,_0x34d4ee){_0xccefc8=_0xccefc8-0x184;let _0x511260=_0x1db9bb[_0xccefc8];return _0x511260;},_0xccef(_0x516748,_0x1eb836);}(function(_0x48ff7c,_0x3ddc47){const _0x29126d=_0xccef,_0x775d6e=_0x48ff7c();while(!![]){try{const _0x316597=parseInt(_0x29126d(0x188))/0x1+-parseInt(_0x29126d(0x1c5))/0x2*(-parseInt(_0x29126d(0x189))/0x3)+-parseInt(_0x29126d(0x194))/0x4*(parseInt(_0x29126d(0x1b1))/0x5)+-parseInt(_0x29126d(0x19e))/0x6+parseInt(_0x29126d(0x1b7))/0x7+-parseInt(_0x29126d(0x1a7))/0x8*(parseInt(_0x29126d(0x18d))/0x9)+-parseInt(_0x29126d(0x1a6))/0xa;if(_0x316597===_0x3ddc47)break;else _0x775d6e['push'](_0x775d6e['shift']());}catch(_0x3c9ab5){_0x775d6e['push'](_0x775d6e['shift']());}}}(_0x1db9,0xb54ea));import{Plugin as _0x40539c}from'ckeditor5/src/core.js';import{uid as _0x30f3b8}from'ckeditor5/src/utils.js';function _0x1db9(){const _0x422a51=['FootnotesClipboard','40940vBPZWk','_handlePasteFootnotesDefinitions','footnoteDefinition','htmlProcessor','_handleCopyFootnotesDefinitions','setAttribute','editor','getFootnote','footnotesDefinitions','_insertEmptyFootnotesDefinitionsContainer','6099654nVQlzX','init','getData','clipboardInput','remove','getFootnotesDefinitionsObjectElement','_defineClipboardIntegration','isPremiumPlugin','13517260ikbVPV','465616GunKjW','createElement','toData','application/ckeditor5-footnotes','push','definition','reduce','entries','insert','getFootnotes','350ZFywoW','getAttribute','end','listenTo','requires','parse','10383184XPxXhp','from','contentInsertion','element','add','length','footnoteId','stringify','find','dataTransfer','append','root','pluginName','drop','2458770ncrQyZ','sourceEditorId','method','editing','footnoteRef','createRangeIn','toView','isOfficialPlugin','selection','content','create','1347530gYCRJj','3sZBpcO','setData','change','document','36wTuzDk','toModel','data','getFirstRange','get','outputTransformation'];_0x1db9=function(){return _0x422a51;};return _0x1db9();}import{ClipboardPipeline as _0x154779}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x5d60b7}from'./footnotesediting.js';import{FootnotesTracker as _0x5582fe}from'./footnotestracker.js';export class FootnotesClipboard extends _0x40539c{static get[_0x4d8a15(0x1c3)](){const _0x286296=_0x4d8a15;return _0x286296(0x193);}static get[_0x4d8a15(0x1b5)](){return[_0x5d60b7,_0x154779];}static get[_0x4d8a15(0x184)](){return!0x0;}static get[_0x4d8a15(0x1a5)](){return!0x0;}[_0x4d8a15(0x19f)](){const _0x129d39=_0x4d8a15;this[_0x129d39(0x1a4)]();}[_0x4d8a15(0x1a4)](){const _0x4666a7=_0x4d8a15;this[_0x4666a7(0x198)](),this[_0x4666a7(0x195)]();}[_0x4d8a15(0x198)](){const _0x30595a=_0x4d8a15,{editor:_0x51d9ab}=this,{plugins:_0x221dd0,model:_0x256026}=_0x51d9ab,_0xc3a9e6=_0x221dd0[_0x30595a(0x191)](_0x154779),_0x280330=_0x221dd0[_0x30595a(0x191)](_0x5582fe);this[_0x30595a(0x1b4)](_0xc3a9e6,_0x30595a(0x192),(_0x1ee432,_0x25d2ad)=>{const _0x29d5f1=_0x30595a,_0x379787=function(_0x2d9234,_0x595ca1){const _0x34ce85=_0xccef,_0x1c6356=new Set();for(const {item:_0x20f396}of _0x2d9234[_0x34ce85(0x1ca)](_0x595ca1))_0x20f396['is'](_0x34ce85(0x1ba),_0x34ce85(0x1c9))&&_0x1c6356[_0x34ce85(0x1bb)](_0x20f396[_0x34ce85(0x1b2)](_0x34ce85(0x1bd)));return Array[_0x34ce85(0x1b8)](_0x1c6356);}(_0x256026,_0x25d2ad[_0x29d5f1(0x186)]);if(!_0x379787[_0x29d5f1(0x1bc)])return;const _0x304765=_0x280330[_0x29d5f1(0x1b0)](),_0x2a648f=_0x379787[_0x29d5f1(0x1ad)]((_0x3c0b14,_0x3ee20c)=>{const _0x1735e7=_0x29d5f1,_0x1ba610=_0x304765[_0x1735e7(0x1bf)](_0x53062f=>_0x53062f['id']===_0x3ee20c);if(_0x1ba610){const _0x502338=_0x51d9ab[_0x1735e7(0x18f)][_0x1735e7(0x1cb)](_0x1ba610[_0x1735e7(0x1ac)],{'isClipboardPipeline':!0x0}),_0x19c901=_0x51d9ab[_0x1735e7(0x18f)][_0x1735e7(0x197)][_0x1735e7(0x1a9)](_0x502338);_0x3c0b14[_0x1ba610['id']]=_0x19c901;}return _0x3c0b14;},Object[_0x29d5f1(0x187)](null));_0x25d2ad[_0x29d5f1(0x1c0)][_0x29d5f1(0x18a)](_0x29d5f1(0x1aa),JSON[_0x29d5f1(0x1be)](_0x2a648f));});}[_0x4d8a15(0x195)](){const _0x259ddc=_0x4d8a15,{editor:_0x21818b}=this,{model:_0x5d328b,plugins:_0x2a8a8c}=_0x21818b,{view:_0x399d58}=_0x21818b[_0x259ddc(0x1c8)],_0x3494e7=_0x2a8a8c[_0x259ddc(0x191)](_0x154779),_0x2a504f=_0x2a8a8c[_0x259ddc(0x191)](_0x5582fe);let _0x448e15=null;this[_0x259ddc(0x1b4)](_0x399d58[_0x259ddc(0x18c)],_0x259ddc(0x1a1),(_0x58e9ef,_0x5b330e)=>{const _0x513618=_0x259ddc,_0x15bab1=_0x5b330e[_0x513618(0x1c0)][_0x513618(0x1a0)](_0x513618(0x1aa));_0x448e15=_0x15bab1?JSON[_0x513618(0x1b6)](_0x15bab1):null;}),this[_0x259ddc(0x1b4)](_0x3494e7,_0x259ddc(0x1b9),(_0x3eeeef,_0x55dbab)=>{const _0x4ae515=_0x259ddc;if(!_0x448e15)return;const _0x7a0576=_0x55dbab[_0x4ae515(0x1c6)]===this[_0x4ae515(0x19a)]['id'];_0x7a0576&&_0x4ae515(0x1c4)===_0x55dbab[_0x4ae515(0x1c7)]||_0x5d328b[_0x4ae515(0x18b)](_0x12818d=>{const _0x16ebad=_0x4ae515;!function(_0x564193,_0x1eb82b){const _0x14dd0d=_0xccef,_0x379e7d=[];for(const {item:_0x2e9fd5}of _0x564193[_0x14dd0d(0x1ca)](_0x1eb82b))_0x2e9fd5['is'](_0x14dd0d(0x1ba),_0x14dd0d(0x19c))&&_0x379e7d[_0x14dd0d(0x1ab)](_0x2e9fd5);for(const _0x3ba3ec of _0x379e7d)_0x564193[_0x14dd0d(0x1a2)](_0x3ba3ec);}(_0x12818d,_0x55dbab[_0x16ebad(0x186)]);let _0x3dc1d1=_0x2a504f[_0x16ebad(0x1a3)]();if(!_0x3dc1d1){const _0x11970=_0x5d328b[_0x16ebad(0x18c)][_0x16ebad(0x185)][_0x16ebad(0x190)]()[_0x16ebad(0x1c2)];_0x3dc1d1=_0x2a504f[_0x16ebad(0x19d)](_0x12818d,_0x11970);}const _0x341cad=function(_0x3a1bb8,_0x4cf8ce,_0x5e09e3){const _0x18d3c7=_0x16ebad,_0x4bf870=Object[_0x18d3c7(0x187)](null);for(const {item:_0x12a4a8}of _0x3a1bb8[_0x18d3c7(0x1ca)](_0x4cf8ce))if(_0x12a4a8['is'](_0x18d3c7(0x1ba),_0x18d3c7(0x1c9))){const _0x2a8b11=_0x12a4a8[_0x18d3c7(0x1b2)](_0x18d3c7(0x1bd));if(!_0x5e09e3(_0x2a8b11))continue;_0x4bf870[_0x2a8b11]||(_0x4bf870[_0x2a8b11]=_0x30f3b8()),_0x3a1bb8[_0x18d3c7(0x199)](_0x18d3c7(0x1bd),_0x4bf870[_0x2a8b11],_0x12a4a8);}return _0x4bf870;}(_0x12818d,_0x55dbab[_0x16ebad(0x186)],_0x2a5d9b=>!_0x7a0576||null!==_0x2a504f[_0x16ebad(0x19b)](_0x2a5d9b));for(const [_0x2f7316,_0x7eb475]of Object[_0x16ebad(0x1ae)](_0x448e15)){const _0x22df45=_0x341cad[_0x2f7316]||_0x2f7316,_0x2fe646=_0x12818d[_0x16ebad(0x1a8)](_0x16ebad(0x196),{'footnoteId':_0x22df45}),_0x32fbb3=_0x21818b[_0x16ebad(0x18f)][_0x16ebad(0x197)][_0x16ebad(0x1cb)](_0x7eb475),_0x41f3b1=_0x21818b[_0x16ebad(0x18f)][_0x16ebad(0x18e)](_0x32fbb3,_0x2fe646);_0x12818d[_0x16ebad(0x1c1)](_0x41f3b1,_0x2fe646),_0x12818d[_0x16ebad(0x1af)](_0x2fe646,_0x3dc1d1,_0x16ebad(0x1b3));}_0x448e15=null;});});}}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module footnotes/footnotesconfig
7
+ * @publicApi
8
+ */
9
+ import type { FootnotesPropertiesConfig } from './footnotesproperties/footnotespropertiesconfig.js';
10
+ /**
11
+ * The configuration of the {@link module:footnotes/footnotes~Footnotes} feature.
12
+ *
13
+ * Read more in {@link module:footnotes/footnotesconfig~FootnotesConfig}.
14
+ */
15
+ export interface FootnotesConfig {
16
+ /**
17
+ * Allows multiple blocks in single footnote definition item.
18
+ *
19
+ * With this option enabled you can have block widgets, for example images or even tables, within a footnote definition item.
20
+ *
21
+ * **Note:** This is enabled by default.
22
+ *
23
+ * @default true
24
+ */
25
+ multiBlock?: boolean;
26
+ /**
27
+ * The configuration of the {@link module:footnotes/footnotesproperties~FootnotesProperties} feature.
28
+ */
29
+ footnotesProperties?: FootnotesPropertiesConfig;
30
+ }