@ckeditor/ckeditor5-footnotes 48.1.0-alpha.3 → 48.1.0-alpha.5

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 (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xb40c9f,Command as _0x29af0f}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x25c6f2,isWidget as _0x4ce81c,toWidgetEditable as _0x2f2daa,WidgetToolbarRepository as _0x37f3a7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x56b912,logWarning as _0x2b65da,FocusTracker as _0x4f7bf7,KeystrokeHandler as _0x2eb982,global as _0x1a00c4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x47ba15,ClickObserver as _0x333465}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x13baac}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5e78c6,ButtonView as _0x3b005a,View as _0x4cc1a8,ViewCollection as _0x459819,FocusCycler as _0x24f630,addKeyboardHandlingForGrid as _0x403cc2,CollapsibleView as _0x1a4c71,LabeledFieldView as _0xeb427d,createLabeledInputNumber as _0x24d296,ContextualBalloon as _0x5b3143,BalloonPanelView as _0x10af63,createDropdown as _0x25876d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xd8d8f1,IconListStyleDecimal as _0xbf579e,IconListStyleDecimalLeadingZero as _0x479bfb,IconListStyleLowerRoman as _0x14f5bf,IconListStyleUpperRoman as _0x4dee27,IconListStyleLowerLatin as _0x36c927,IconListStyleUpperLatin as _0x2c99fb,IconListStyleArabicIndic as _0x24fb30}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5f5105,_0x4e6cee){this['_model']=_0x5f5105,this['_elementName']=_0x4e6cee['elementName'],this['_getElementKey']=_0x4e6cee['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x38be81){const _0x102584=new Set(),_0xf2a5b3=new Map();for(const _0x1adfe8 of _0x38be81){if('insert'===_0x1adfe8['type']&&'$text'!==_0x1adfe8['name']&&_0x1adfe8['position']['nodeAfter']){const _0x595066=this['_model']['createRangeOn'](_0x1adfe8['position']['nodeAfter']);for(const _0x46ff9c of _0x595066['getItems']()){if(!_0x46ff9c['is']('element',this['_elementName']))continue;const _0x18f2f3=this['_getElementKey'](_0x46ff9c);_0xf2a5b3['has'](_0x18f2f3)||_0xf2a5b3['set'](_0x18f2f3,[]),_0xf2a5b3['get'](_0x18f2f3)['push'](_0x46ff9c);}}if('remove'===_0x1adfe8['type']&&_0x1adfe8['name']===this['_elementName']){const _0x56e9e0=this['_getElementKey']({'getAttribute':_0x3c25d0=>_0x1adfe8['attributes']['get'](_0x3c25d0)});_0x102584['add'](_0x56e9e0);}}for(const [_0x1c4bb5,_0x6b0864]of this['_trackedElements'])'$graveyard'===_0x6b0864['root']['rootName']&&_0x102584['add'](_0x1c4bb5);for(const _0x3705e5 of _0x102584)this['_trackedElements']['delete'](_0x3705e5);for(const [_0x4ec412,_0x284e56]of _0xf2a5b3)this['_trackedElements']['set'](_0x4ec412,_0x284e56[_0x284e56['length']-0x1]);const _0x55a886=new Set();for(const [_0x2377a0,_0x2b4ac5]of _0xf2a5b3)_0x102584['has'](_0x2377a0)&&(_0x55a886['add'](_0x2b4ac5[0x0]),_0x2b4ac5['length']>0x1?_0xf2a5b3['set'](_0x2377a0,_0x2b4ac5['slice'](0x1)):_0xf2a5b3['delete'](_0x2377a0),_0x102584['delete'](_0x2377a0));return{'removed':Array['from'](_0x102584),'inserted':Array['from'](_0xf2a5b3['values']())['flat'](),'moved':Array['from'](_0x55a886)};}}class K extends _0xb40c9f{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x390504){super(_0x390504),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3d3669=>_0x3d3669['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2ea07d=>_0x2ea07d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x41c28e}=this,{model:_0x7578f2,data:_0x5ecd86}=_0x41c28e;_0x7578f2['document']['registerPostFixer'](_0x18a138=>{const _0xcf3b89=_0x7578f2['document']['differ']['getChanges']();let _0x9a605f=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x18a138,_0xcf3b89)&&(_0x9a605f=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x18a138,_0xcf3b89)&&(_0x9a605f=!0x0),this['_handleFootnoteReferencesChanges'](_0x18a138,_0xcf3b89)&&(_0x9a605f=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x18a138)&&(_0x9a605f=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x18a138)&&(_0x9a605f=!0x0),this['_sortFootnoteDefinitions'](_0x18a138)&&(_0x9a605f=!0x0),_0x9a605f;}),this['listenTo'](_0x7578f2['document'],'change:data',()=>{_0x7578f2['enqueueChange']({'isUndoable':!0x1},_0x59d18b=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x59d18b);});},{'priority':'low'}),this['listenTo'](_0x5ecd86,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xc7a575){return this['_footnotes']['find'](_0x5d756f=>_0x5d756f['id']===_0xc7a575)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3b047d){this['_footnoteFormatter']=_0x3b047d;}['_updateFootnotesCounters'](_0x3ef4ad,_0x335a14=0x0){let _0x1523ac=!0x1;for(let _0x3c4d41=_0x335a14;_0x3c4d41<this['_footnotes']['length'];_0x3c4d41++)this['_updateFootnoteRefCounter'](_0x3ef4ad,_0x3c4d41)&&(_0x1523ac=!0x0);return _0x1523ac;}['_insertEmptyFootnotesDefinitionsContainer'](_0x51148b,_0x7f4763){const _0x358f08=_0x51148b['createElement']('footnotesDefinitions',{});return _0x51148b['append'](_0x358f08,_0x7f4763),this['_footnotesDefinitions']=_0x358f08,_0x358f08;}['_ensureFootnotesDefinitionsContainerExists'](_0x3bbdab){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2cc23f=this['_footnotes'][0x0]['reference']['root'],_0x3c7b17=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3bbdab,_0x2cc23f);for(const _0x14a4d3 of this['_footnotes'])_0x14a4d3['definition']['parent']||_0x3bbdab['insert'](_0x14a4d3['definition'],_0x3c7b17,'end');this['_updateFootnotesCounters'](_0x3bbdab);}['_handleFootnotesDefinitionsObjectChanges'](_0x297f91,_0x4a0e6d){let _0xe8f7bf=!0x1;const {inserted:_0x1cbb84,removed:_0xc87bd8,moved:_0x7f46f8}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4a0e6d);if(_0x7f46f8['length']&&(this['_footnotesDefinitions']=_0x7f46f8[0x0]),_0x1cbb84['length']){if(_0x1cbb84['length']>0x1||this['_footnotesDefinitions']&&_0x1cbb84['some'](_0x32673d=>_0x32673d!==this['_footnotesDefinitions'])){const _0x3bd733=_0x297f91['createElement']('footnotesDefinitions',{}),_0x435f08=[];this['_footnotesDefinitions']&&_0x435f08['push'](this['_footnotesDefinitions']),_0x435f08['push'](..._0x1cbb84),_0x297f91['insert'](_0x3bd733,_0x435f08[0x0],'before');for(const _0x415094 of _0x435f08)_0x297f91['move'](_0x297f91['createRangeIn'](_0x415094),_0x297f91['createPositionAt'](_0x3bd733,'end')),_0x297f91['remove'](_0x415094);this['_footnotesDefinitions']=_0x3bd733,this['_updateFootnotesCounters'](_0x297f91),_0xe8f7bf=!0x0;}else this['_footnotesDefinitions']=_0x1cbb84[0x0];}if(_0xc87bd8['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x39c8ef of this['_footnotes'])_0x297f91['remove'](_0x39c8ef['reference']),_0xe8f7bf=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xe8f7bf;}['_handleFootnoteDefinitionsChanges'](_0x412652,_0xea580c){let _0x51e388=!0x1;const _0x62e0f0=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xeb3db3,moved:_0xb15f98}=this['_footnoteDefsTracker']['getChanges'](_0xea580c);for(const _0x36a339 of[..._0xb15f98,..._0xeb3db3]){const _0xccc50b=_0x36a339['getAttribute']('footnoteId'),_0x253b1a=this['getFootnote'](_0xccc50b);_0x253b1a&&(_0x253b1a['definition']=_0x36a339),j(_0x412652,_0x62e0f0,_0x36a339)&&(_0x51e388=!0x0);}return _0x51e388;}['_handleFootnoteReferencesChanges'](_0x5a6c62,_0x4fc075){let _0x33b08e=!0x1;const {removed:_0x655731,inserted:_0x27b825,moved:_0x3ad52f}=this['_footnoteRefsTracker']['getChanges'](_0x4fc075);for(const _0x16d63b of _0x655731)this['_handleRemoveFootnoteReferenceById'](_0x5a6c62,_0x16d63b)&&(_0x33b08e=!0x0);for(const _0x4bc293 of _0x27b825)this['_handleInsertedFootnoteReference'](_0x5a6c62,_0x4bc293)&&(_0x33b08e=!0x0);for(const _0x59f1cf of _0x3ad52f)this['_handleMovedFootnoteReference'](_0x5a6c62,_0x59f1cf)&&(_0x33b08e=!0x0);return _0x33b08e;}['_handleFootnotesDefinitionsObjectSync'](_0x52860c){if(!this['_footnotesDefinitions'])return!0x1;let _0x2ac3a5=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3ce31d=[];for(const _0x19ab22 of this['_footnotesDefinitions']['getChildren']()){const _0x3899ce=_0x19ab22['getAttribute']('footnoteId');this['getFootnote'](_0x3899ce)||(_0x3ce31d['unshift'](_0x19ab22),_0x2ac3a5=!0x0);}for(const _0x1e73e8 of _0x3ce31d)_0x52860c['remove'](_0x1e73e8);}const _0x517242=new Set(),_0x1b0f09=[];for(const _0x35ece1 of this['_footnotesDefinitions']['getChildren']()){const _0x1f8a15=_0x35ece1['getAttribute']('footnoteId');_0x517242['has'](_0x1f8a15)?(_0x1b0f09['unshift'](_0x35ece1),_0x2ac3a5=!0x0):_0x517242['add'](_0x1f8a15);}for(const _0x3d21aa of _0x1b0f09)_0x52860c['remove'](_0x3d21aa);return this['_footnotesDefinitions']['childCount']||(_0x52860c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2ac3a5=!0x0),_0x2ac3a5;}['_handleInsertedFootnoteReference'](_0x1a9391,_0x2a3e6f){if(this['_footnotes']['find'](_0xd93894=>_0xd93894['reference']===_0x2a3e6f))return!0x1;let _0x5e1021=!0x1;const _0x1b7a0f=_0x2a3e6f['getAttribute']('footnoteId'),_0x1b40e1=this['_footnotes']['findIndex'](_0x19cba0=>_0x19cba0['id']===_0x1b7a0f);-0x1!==_0x1b40e1&&(_0x1a9391['remove'](this['_footnotes'][_0x1b40e1]['reference']),this['_footnotes']['splice'](_0x1b40e1,0x1),_0x5e1021=!0x0);let _0xc853b8=this['_footnotesDefinitions']?function(_0x1e88e9,_0x13aee1){for(const _0x3747ba of _0x1e88e9['getChildren']())if(_0x3747ba['getAttribute']('footnoteId')===_0x13aee1)return _0x3747ba;return null;}(this['_footnotesDefinitions'],_0x1b7a0f):null;_0xc853b8||(_0xc853b8=_0x1a9391['createElement']('footnoteDefinition',{'footnoteId':_0x1b7a0f}),this['_footnotesDefinitions']&&(_0x1a9391['insert'](_0xc853b8,this['_footnotesDefinitions'],'end'),_0x5e1021=!0x0));const _0x44fc80={'id':_0x1b7a0f,'reference':_0x2a3e6f,'definition':_0xc853b8},_0xdc2187=T(this['editor']['model'],this['_footnotes'],_0x2a3e6f);this['_footnotes']['splice'](_0xdc2187,0x0,_0x44fc80);let _0x4d9736=_0xdc2187;return-0x1!==_0x1b40e1&&(_0x4d9736=Math['min'](_0xdc2187,_0x1b40e1)),this['_updateFootnotesCounters'](_0x1a9391,_0x4d9736)&&(_0x5e1021=!0x0),_0x5e1021;}['_handleRemoveFootnoteReferenceById'](_0x277e0b,_0x54563f){const _0x16c8e4=this['_footnotes']['findIndex'](_0x1fc74b=>_0x1fc74b['id']===_0x54563f);if(-0x1===_0x16c8e4)return!0x1;let _0x4f6d62=!0x1;const _0x33f3d4=this['_footnotes'][_0x16c8e4];return'$graveyard'!==_0x33f3d4['definition']['root']['rootName']&&(_0x277e0b['remove'](_0x33f3d4['definition']),_0x4f6d62=!0x0),this['_footnotes']['splice'](_0x16c8e4,0x1),this['_updateFootnotesCounters'](_0x277e0b,_0x16c8e4)&&(_0x4f6d62=!0x0),_0x4f6d62;}['_handleMovedFootnoteReference'](_0x1f40f5,_0x151e3c){const _0x356e2f=_0x151e3c['getAttribute']('footnoteId'),_0x33efa3=this['_footnotes']['findIndex'](_0x27ad22=>_0x27ad22['id']===_0x356e2f),_0xa056d5=this['_footnotes'][_0x33efa3];let _0x591690=!0x1;_0xa056d5['reference']=_0x151e3c,this['_footnotes']['splice'](_0x33efa3,0x1);const _0x2dea95=T(this['editor']['model'],this['_footnotes'],_0x151e3c);return this['_footnotes']['splice'](_0x2dea95,0x0,_0xa056d5),this['_updateFootnotesCounters'](_0x1f40f5,Math['min'](_0x33efa3,_0x2dea95))&&(_0x591690=!0x0),_0x591690;}['_updateFootnoteRefCounter'](_0x17f5db,_0xe23683){if(!this['_footnotesDefinitions'])return!0x1;const _0xefed38=this['_footnotes'][_0xe23683];let _0x44b1a8;return _0x44b1a8=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xefed38,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xe23683+0x1}):String(_0xe23683+0x1),_0xefed38['reference']['getAttribute']('footnoteCounter')!=_0x44b1a8&&(_0x17f5db['setAttribute']('footnoteCounter',_0x44b1a8,_0xefed38['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x315947){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5143c0,_0x35052e){if(_0x5143c0['length']!==_0x35052e['length'])return!0x1;for(let _0x38d52b=0x0;_0x38d52b<_0x5143c0['length'];_0x38d52b++)if(_0x5143c0[_0x38d52b]!==_0x35052e[_0x38d52b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1d1592=>_0x1d1592['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x4acfd2=>_0x4acfd2['getAttribute']('footnoteId'))))return!0x1;let _0x9676af=!0x1;for(let _0x4d180f=0x0;_0x4d180f<this['_footnotes']['length'];_0x4d180f++){const _0x157bc4=this['_footnotes'][_0x4d180f],_0x4547e9=_0x315947['createPositionBefore'](_0x157bc4['definition']),_0x5a71c2=_0x315947['createPositionAt'](this['_footnotesDefinitions'],_0x4d180f);_0x4547e9['isEqual'](_0x5a71c2)||(_0x315947['move'](_0x315947['createRangeOn'](_0x157bc4['definition']),_0x5a71c2),_0x9676af=!0x0);}return _0x9676af;}['_ensureFootnotesReferencesHaveProperOrder'](_0x282a5a){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4a2e7b}=this['editor'];let _0x3dea25=!0x1;for(let _0x45b428=0x0;_0x45b428<this['_footnotes']['length']-0x1;_0x45b428++){const _0x59b4b2=this['_footnotes'][_0x45b428],_0x52f43b=this['_footnotes'][_0x45b428+0x1],_0x1debad=_0x4a2e7b['createPositionBefore'](_0x59b4b2['reference']),_0x49ea4b=_0x4a2e7b['createPositionBefore'](_0x52f43b['reference']);'after'===_0x1debad['compareWith'](_0x49ea4b)&&(this['_handleMovedFootnoteReference'](_0x282a5a,_0x59b4b2['reference']),_0x45b428=-0x1,_0x3dea25=!0x0);}return _0x3dea25;}}function j(_0x4e9f2a,_0x322976,_0x85121f){if(_0x85121f['childCount'])return!0x1;const _0x46947f=_0x322976?'paragraph':'footnoteInlineContent';return _0x4e9f2a['insert'](_0x4e9f2a['createElement'](_0x46947f),_0x85121f),!0x0;}function T(_0x55ed8f,_0x32cafb,_0x3db022){if(0x0===_0x32cafb['length'])return 0x0;const _0x2bf552=_0x55ed8f['createPositionBefore'](_0x3db022);for(let _0x414cf6=0x0;_0x414cf6<_0x32cafb['length'];_0x414cf6++){const _0x47d99a=_0x32cafb[_0x414cf6],_0x7c6d62=_0x55ed8f['createPositionBefore'](_0x47d99a['reference']);if('before'===_0x2bf552['compareWith'](_0x7c6d62))return _0x414cf6;}const _0x17761c=_0x3db022['root'];let _0x40d6f3=-0x1;for(let _0x3eb6f9=_0x32cafb['length']-0x1;_0x3eb6f9>=0x0;_0x3eb6f9--)if(_0x32cafb[_0x3eb6f9]['reference']['root']===_0x17761c){_0x40d6f3=_0x3eb6f9;break;}if(-0x1!==_0x40d6f3)return _0x40d6f3+0x1;const _0x390527=_0x55ed8f['document']['getRootNames'](),_0x4bac20=_0x390527['indexOf'](_0x17761c['rootName']),_0x3ed391=_0x390527[_0x4bac20+0x1];if(_0x3ed391){for(let _0x37d6f1=0x0;_0x37d6f1<_0x32cafb['length'];_0x37d6f1++)if(_0x32cafb[_0x37d6f1]['reference']['root']['rootName']===_0x3ed391)return _0x37d6f1;}return _0x32cafb['length'];}class V extends _0x29af0f{['refresh'](){const _0x3623f9=this['editor']['model']['document']['selection'],_0x399ddf=this['_getPositionToInsertFootnote'](_0x3623f9);this['isEnabled']=!!_0x399ddf;}['execute'](_0x1950c2){const {editor:_0x161e31}=this,{model:_0x331497}=_0x161e31,{selection:_0x1af6d4}=_0x331497['document'],_0x387653=this['_getPositionToInsertFootnote'](_0x1af6d4);if(!_0x387653)return;const _0x1e4a5c=_0x161e31['plugins']['get']('FootnotesEditing'),_0x249da1=_0x1950c2?.['footnoteId']??_0x56b912();!function(_0x4507d2){return'string'==typeof _0x4507d2&&_0x4507d2['length']>0x0&&!/\s/['test'](_0x4507d2)&&!/^\d/['test'](_0x4507d2);}(_0x249da1)?_0x2b65da('insert-footnote-command-executed-with-invalid-id'):(_0x331497['change'](_0xab4aa9=>{const _0x3dd296=_0xab4aa9['createElement']('footnoteRef',{'footnoteId':_0x249da1});_0x331497['insertObject'](_0x3dd296,_0x387653,null);}),_0x1e4a5c['_moveSelectionToFootnoteDefinition'](_0x249da1));}['_getPositionToInsertFootnote'](_0x2f25f8){const {model:_0x3e71e2}=this['editor'],{schema:_0x537385}=_0x3e71e2,_0x164024=_0x2f25f8['getFirstRange']();for(const _0x18e2f5 of _0x164024['getItems']())if(_0x537385['isBlock'](_0x18e2f5)||_0x537385['isObject'](_0x18e2f5))return null;const _0x166ee8=_0x164024['end'];return _0x537385['checkChild'](_0x166ee8,'footnoteRef')?_0x166ee8:null;}}class $ extends _0xb40c9f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5db5e2}=this;_0x5db5e2['config']['define']('footnotes.multiBlock',!0x0),_0x5db5e2['commands']['add']('insertFootnote',new V(_0x5db5e2)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1bfd29){const _0x3df96c=_0x5d91c2([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]),_0x3ae35f=0x47a28506,_0x4b1602=0x47a50c96^_0x3ae35f,_0x44e689=window[_0x5d91c2([0x44,0x61,0x74,0x65])][_0x5d91c2([0x6e,0x6f,0x77])](),_0x47b3e0=_0x1bfd29[_0x5d91c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c56df=new window[(_0x5d91c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a2188=>{_0x47b3e0[_0x5d91c2([0x6f,0x6e,0x63,0x65])](_0x5d91c2([0x72,0x65,0x61,0x64,0x79]),_0x2a2188);}),_0x45da05={[_0x5d91c2([0x6b,0x74,0x79])]:_0x5d91c2([0x45,0x43]),[_0x5d91c2([0x75,0x73,0x65])]:_0x5d91c2([0x73,0x69,0x67]),[_0x5d91c2([0x63,0x72,0x76])]:_0x5d91c2([0x50,0x2d,0x32,0x35,0x36]),[_0x5d91c2([0x78])]:_0x5d91c2([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]),[_0x5d91c2([0x79])]:_0x5d91c2([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]),[_0x5d91c2([0x61,0x6c,0x67])]:_0x5d91c2([0x45,0x53,0x32,0x35,0x36])},_0x2e2c83=_0x47b3e0[_0x5d91c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d91c2([0x67,0x65,0x74])](_0x5d91c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x582004(){let _0x4b16c8,_0x5b2f5c=null,_0xee7a3f=null;try{if(_0x2e2c83==_0x5d91c2([0x47,0x50,0x4c]))return _0x5d91c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b16c8=_0x49ffd0(),!_0x4b16c8)return _0x5d91c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b16c8[_0x5d91c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xee7a3f=_0x49020e(_0x4b16c8[_0x5d91c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b16c8[_0x5d91c2([0x6a,0x74,0x69])])),await _0x1ea0f0()?_0x1b93c4()?_0x279dca()?_0x5d91c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3330f1()?(_0x4b16c8[_0x5d91c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d91c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b2f5c=_0x588008(_0x5d91c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x445a49()):_0x5d91c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d91c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d91c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d91c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x279dca(){const _0x5546bc=[_0x5d91c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d91c2([0x74,0x72,0x69,0x61,0x6c])][_0x5d91c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b16c8[_0x5d91c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44e689/0x3e8:0xe10*_0x4b1602;return _0x4b16c8[_0x5d91c2([0x65,0x78,0x70])]<_0x5546bc;}function _0x1b93c4(){const _0x6ffdc3=_0x4b16c8[_0x5d91c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x6ffdc3&&(!!_0x6ffdc3[_0x5d91c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d91c2([0x2a]))||!!_0x6ffdc3[_0x5d91c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d91c2([0x46,0x4f,0x4f])));}function _0x3330f1(){const _0x1a61d4=_0x4b16c8[_0x5d91c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a61d4||0x0==_0x1a61d4[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5353a9}=new URL(window[_0x5d91c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a61d4[_0x5d91c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5353a9))return!0x0;const _0x1c85ce=_0x5353a9[_0x5d91c2([0x73,0x70,0x6c,0x69,0x74])](_0x5d91c2([0x2e]));return _0x1a61d4[_0x5d91c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xac3dd3=>_0xac3dd3[_0x5d91c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d91c2([0x2a])))[_0x5d91c2([0x6d,0x61,0x70])](_0x111809=>_0x111809[_0x5d91c2([0x73,0x70,0x6c,0x69,0x74])](_0x5d91c2([0x2e])))[_0x5d91c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5457f9=>_0x5457f9[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c85ce[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d91c2([0x6d,0x61,0x70])](_0x7340a0=>Array(_0x1c85ce[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x7340a0[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d91c2([0x66,0x69,0x6c,0x6c])](_0x7340a0[0x0]===_0x5d91c2([0x2a])?_0x5d91c2([0x2a]):'')[_0x5d91c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x7340a0))[_0x5d91c2([0x73,0x6f,0x6d,0x65])](_0x3dacaf=>_0x1c85ce[_0x5d91c2([0x65,0x76,0x65,0x72,0x79])]((_0x1f7b94,_0x3e5eff)=>_0x3dacaf[_0x3e5eff]===_0x1f7b94||_0x3dacaf[_0x3e5eff]===_0x5d91c2([0x2a])));}function _0x445a49(){return _0x5b2f5c&&_0xee7a3f?new window[(_0x5d91c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x291446,_0x437fd6)=>{_0x5b2f5c[_0x5d91c2([0x74,0x68,0x65,0x6e])](_0x291446,_0x437fd6),_0xee7a3f[_0x5d91c2([0x74,0x68,0x65,0x6e])](_0x310db3=>{_0x310db3!=_0x5d91c2([0x56,0x61,0x6c,0x69,0x64])&&_0x291446(_0x310db3);},_0x437fd6);}):_0x5b2f5c||_0xee7a3f||_0x5d91c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49020e(_0x2a5d09,_0x6d023e){return new window[(_0x5d91c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d940b=>{if(_0x4e5d44())return _0x4d940b(_0x5d91c2([0x56,0x61,0x6c,0x69,0x64]));_0x781615(),_0x47b3e0[_0x5d91c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d91c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ccea2=!0x1;const _0x1e6790=_0x56b912();function _0x183857(_0x38d4c6){return!!_0x38d4c6&&(typeof _0x38d4c6===_0x5d91c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38d4c6===_0x5d91c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38d4c6[_0x5d91c2([0x74,0x68,0x65,0x6e])]===_0x5d91c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38d4c6[_0x5d91c2([0x63,0x61,0x74,0x63,0x68])]===_0x5d91c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d3f3a(_0x50bfd9){_0x321a49(_0x50bfd9)[_0x5d91c2([0x74,0x68,0x65,0x6e])](_0x332d12=>{if(!_0x332d12||_0x332d12[_0x5d91c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d91c2([0x6f,0x6b]))return _0x5d91c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xeb9294(_0x56df2e(_0x1e6790+_0x6d023e))!=_0x332d12[_0x5d91c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d91c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d91c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d91c2([0x74,0x68,0x65,0x6e])](_0x1d5015=>(_0x8b0846(),_0x1d5015),()=>{const _0x2d7ed7=_0x13fc34();return null==_0x2d7ed7?(_0x8b0846(),_0x5d91c2([0x56,0x61,0x6c,0x69,0x64])):_0x5d91c2(_0x44e689-_0x2d7ed7>(0x63ae0106^_0x3ae35f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d91c2([0x74,0x68,0x65,0x6e])](_0x4d940b)[_0x5d91c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d940b(_0x5d91c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d4616=0x47946b86^_0x3ae35f;function _0x8b0846(){const _0x4a9cff=_0x5d91c2([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb9294(_0x56df2e(_0x2a5d09)),_0x1a22df=_0x2bcd86(_0xeb9294(window[_0x5d91c2([0x4d,0x61,0x74,0x68])][_0x5d91c2([0x63,0x65,0x69,0x6c])](_0x44e689/_0x2d4616)));window[_0x5d91c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d91c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a9cff,_0x1a22df);}function _0x13fc34(){const _0x484829=_0x5d91c2([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb9294(_0x56df2e(_0x2a5d09)),_0x4d4479=window[_0x5d91c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d91c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x484829);return _0x4d4479?window[_0x5d91c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bcd86(_0x4d4479),0x10)*_0x2d4616:null;}function _0x321a49(_0x1fbbba){return new window[(_0x5d91c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15d201,_0x2f1c2a)=>{_0x1fbbba[_0x5d91c2([0x74,0x68,0x65,0x6e])](_0x15d201,_0x2f1c2a),window[_0x5d91c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f1c2a,0x47a351c6^_0x3ae35f);});}}_0x47b3e0[_0x5d91c2([0x6f,0x6e])](_0x5d91c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1dbf62,_0x3b8d33)=>{if(_0x3b8d33[0x0]!=_0x2a5d09)return _0x4d940b(_0x5d91c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b8d33[0x1]={..._0x3b8d33[0x1],[_0x5d91c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e6790};},{[_0x5d91c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d91c2([0x68,0x69,0x67,0x68])}),_0x47b3e0[_0x5d91c2([0x6f,0x6e])](_0x5d91c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2511e9=>{_0x183857(_0x2511e9[_0x5d91c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ccea2=!0x0,_0x2d3f3a(_0x2511e9[_0x5d91c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d91c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d91c2([0x6c,0x6f,0x77])}),_0x1c56df[_0x5d91c2([0x74,0x68,0x65,0x6e])](()=>{_0x2ccea2||_0x4d940b(_0x5d91c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e5d44(){return _0x47b3e0[_0x5d91c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d91c2([0x76,0x69,0x65,0x77])][_0x5d91c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d91c2([0x61,0x75,0x74,0x6f]);}function _0x781615(){_0x47b3e0[_0x5d91c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d91c2([0x76,0x69,0x65,0x77])][_0x5d91c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d91c2([0x61,0x75,0x74,0x6f]);}}function _0x588008(_0x1e3810){const _0x15d1ba=[new window[(_0x5d91c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51cc57=>setTimeout(_0x51cc57,0x47abbbca^_0x3ae35f)),_0x1c56df[_0x5d91c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d91c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc45cd9=>{let _0x753b04=0x0;_0x47b3e0[_0x5d91c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d91c2([0x6f,0x6e])](_0x5d91c2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a0cfb,_0x167d67)=>{_0x167d67[0x0][_0x5d91c2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x753b04++,_0x753b04==(0x47a280ee^_0x3ae35f)&&(_0xc45cd9(),_0x2a0cfb[_0x5d91c2([0x6f,0x66,0x66])]());});}))];return window[_0x5d91c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d91c2([0x72,0x61,0x63,0x65])](_0x15d1ba)[_0x5d91c2([0x74,0x68,0x65,0x6e])](()=>_0x1e3810);}async function _0x239389(){await _0x1c56df,_0x47b3e0[_0x5d91c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d91c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x522b7e,_0x47b3e0[_0x5d91c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d91c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x522b7e,_0x47b3e0[_0x5d91c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d91c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45fb11(_0x4c0f2c){const _0x3ba249=_0x489bb6();_0x47b3e0[_0x3ba249]=_0x5d91c2([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c0f2c,_0x4c0f2c!=_0x5d91c2([0x56,0x61,0x6c,0x69,0x64])&&_0x239389();}function _0x489bb6(){const _0x4db637=window[_0x5d91c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d91c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d91c2([0x6e,0x6f,0x77])]())[_0x5d91c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d91c2([0x2e]),'');let _0x492f41=_0x5d91c2([0x75]);for(let _0x44aa1f=0x0;_0x44aa1f<_0x4db637[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44aa1f+=0x2){let _0x1430e=window[_0x5d91c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4db637[_0x5d91c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44aa1f,_0x44aa1f+0x2));_0x1430e>=_0x3df96c[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1430e-=_0x3df96c[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x492f41+=_0x3df96c[_0x1430e];}return _0x492f41;}function _0x49ffd0(){const _0x4413f7=_0x2e2c83[_0x5d91c2([0x73,0x70,0x6c,0x69,0x74])](_0x5d91c2([0x2e]));if(0x3!=_0x4413f7[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57e71f(_0x4413f7[0x1]);function _0x57e71f(_0x1c1fab){const _0x2d3a04=_0x117a6(_0x1c1fab);return _0x2d3a04&&_0x5996f7()?_0x2d3a04:null;function _0x5996f7(){const _0xb8c832=_0x2d3a04[_0x5d91c2([0x6a,0x74,0x69])],_0x15d339=window[_0x5d91c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb8c832[_0x5d91c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb8c832[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x86e420={..._0x2d3a04,[_0x5d91c2([0x6a,0x74,0x69])]:_0xb8c832[_0x5d91c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb8c832[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x86e420[_0x5d91c2([0x76,0x63])],_0x56df2e(_0x86e420)==_0x15d339;}}}async function _0x1ea0f0(){let _0x383d02=!0x0;try{const _0xd28499=_0x2e2c83[_0x5d91c2([0x73,0x70,0x6c,0x69,0x74])](_0x5d91c2([0x2e])),[_0x5e053b,_0xf2efe1,_0x410164]=_0xd28499;return _0x33a486(_0x5e053b),await _0x188d83(_0x5e053b,_0xf2efe1,_0x410164),_0x383d02;}catch{return!0x1;}function _0x33a486(_0x432c04){const _0x4f6275=_0x117a6(_0x432c04);_0x4f6275&&_0x4f6275[_0x5d91c2([0x61,0x6c,0x67])]==_0x5d91c2([0x45,0x53,0x32,0x35,0x36])||(_0x383d02=!0x1);}async function _0x188d83(_0x383c75,_0x47426d,_0x1ad228){const _0x51c22f=window[_0x5d91c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d91c2([0x66,0x72,0x6f,0x6d])](_0x57bf39(_0x1ad228),_0xe59c2d=>_0xe59c2d[_0x5d91c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a481f=new window[(_0x5d91c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d91c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x383c75+_0x5d91c2([0x2e])+_0x47426d),_0x49bf72=window[_0x5d91c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d91c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49bf72)return;const _0x1c69bd=await _0x49bf72[_0x5d91c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d91c2([0x6a,0x77,0x6b]),_0x45da05,{[_0x5d91c2([0x6e,0x61,0x6d,0x65])]:_0x5d91c2([0x45,0x43,0x44,0x53,0x41]),[_0x5d91c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d91c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d91c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49bf72[_0x5d91c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d91c2([0x6e,0x61,0x6d,0x65])]:_0x5d91c2([0x45,0x43,0x44,0x53,0x41]),[_0x5d91c2([0x68,0x61,0x73,0x68])]:{[_0x5d91c2([0x6e,0x61,0x6d,0x65])]:_0x5d91c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c69bd,_0x51c22f,_0x5a481f)||(_0x383d02=!0x1);}}function _0x117a6(_0x588bd3){return _0x588bd3[_0x5d91c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d91c2([0x65,0x79]))?JSON[_0x5d91c2([0x70,0x61,0x72,0x73,0x65])](_0x57bf39(_0x588bd3)):null;}function _0x57bf39(_0x1818f5){return window[_0x5d91c2([0x61,0x74,0x6f,0x62])](_0x1818f5[_0x5d91c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d91c2([0x2b]))[_0x5d91c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d91c2([0x2f])));}function _0x56df2e(_0x5a02ff){let _0x9f93b2=0x1505;function _0x459579(_0x5e337f){for(let _0x19f813=0x0;_0x19f813<_0x5e337f[_0x5d91c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19f813++){const _0x48a66e=_0x5e337f[_0x5d91c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19f813);_0x9f93b2=(_0x9f93b2<<0x5)+_0x9f93b2+_0x48a66e,_0x9f93b2&=_0x9f93b2;}}function _0x111ba6(_0x593550){Array[_0x5d91c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x593550)?_0x593550[_0x5d91c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x111ba6):_0x593550&&typeof _0x593550==_0x5d91c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d91c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x593550)[_0x5d91c2([0x73,0x6f,0x72,0x74])]()[_0x5d91c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x527a0d,_0x3b6028])=>{_0x459579(_0x527a0d),_0x111ba6(_0x3b6028);}):_0x459579(window[_0x5d91c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x593550));}return _0x111ba6(_0x5a02ff),_0x9f93b2>>>0x0;}function _0xeb9294(_0x1f6914){return _0x1f6914[_0x5d91c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d91c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d91c2([0x30]));}function _0x2bcd86(_0x21a6eb){return _0x21a6eb[_0x5d91c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d91c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d91c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x522b7e(){}function _0x5d91c2(_0x515979){return _0x515979['map'](_0xfecff1=>String['fromCharCode'](_0xfecff1))['join']('');}_0x45fb11(await _0x582004());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5cd538){const {plugins:_0x180ee3,editing:_0x35cbe2,model:_0x2bc965}=this['editor'],_0x32e2cf=_0x180ee3['get'](K)['getFootnote'](_0x5cd538);return!!_0x32e2cf&&(_0x2bc965['change'](_0x4008da=>{_0x4008da['setSelection'](_0x4008da['createPositionAt'](_0x32e2cf['definition'],'end'));}),_0x35cbe2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xc22073){const {plugins:_0x441eee,editing:_0x5a5c79,model:_0x56b566}=this['editor'],_0x157ef2=_0x441eee['get'](K)['getFootnote'](_0xc22073);return!!_0x157ef2&&(_0x56b566['change'](_0x24e4c8=>{_0x24e4c8['setSelection'](_0x157ef2['reference'],'on');}),_0x5a5c79['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5859f6}=this['editor']['model'],_0xee6596=this['editor']['config']['get']('footnotes.multiBlock');_0x5859f6['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5859f6['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5859f6['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xee6596?_0x5859f6['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5859f6['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5859f6['addChildCheck'](_0x14c8c7=>{for(const _0x230a21 of _0x14c8c7)if('footnoteDefinition'===_0x230a21['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2f9936}=this,{conversion:_0x357c30,editing:_0x398a36}=_0x2f9936,{t:t}=_0x2f9936['locale'];_0x357c30['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x350786,{writer:_0x3ab679,consumable:_0x4db558})=>{const _0x392a34=_0x350786['getChild'](0x0);if(!_0x392a34||!_0x392a34['is']('element','a'))return null;const _0xbfe7c0=_0x392a34['getAttribute']('href')||'';if(!_0xbfe7c0['startsWith']('#'))return null;const _0x19787b=_0xbfe7c0['replace'](/^#/,'');if(!_0x19787b)return null;_0x4db558['consume'](_0x392a34,{'name':!0x0,'attributes':['href']});for(const {item:_0x7d1a3e}of _0x398a36['view']['createRangeIn'](_0x392a34))_0x7d1a3e['is']('$textProxy')?_0x4db558['consume'](_0x7d1a3e['textNode'],{'name':!0x0}):_0x7d1a3e['is']('element')&&_0x4db558['consume'](_0x7d1a3e,{'name':!0x0});return _0x3ab679['createElement']('footnoteRef',{'footnoteId':_0x19787b});}}),_0x357c30['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b1e4d,{writer:_0x5322a1})=>z(_0x4b1e4d,_0x5322a1)}),_0x357c30['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1768ec,{writer:_0x52c2ee})=>{const _0xaa7505=_0x1768ec['getAttribute']('footnoteCounter');return _0x25c6f2(z(_0x1768ec,_0x52c2ee),_0x52c2ee,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xaa7505)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1cf965}=this,{t:t}=_0x1cf965['locale'],{conversion:_0x7d3f0f}=_0x1cf965;_0x7d3f0f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x7d3f0f['for']('upcast')['add'](_0x345817=>{_0x345817['on']('element:ol',(_0x305899,_0x2f73a8,_0x344e36)=>{const _0x8314b9=_0x2f73a8['viewItem'];if(!_0x8314b9['hasClass']('footnotes-list')||!_0x2f73a8['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x344e36['consumable']['consume'](_0x8314b9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x510c02,modelCursor:_0x50159a}=_0x344e36['convertChildren'](_0x2f73a8['viewItem'],_0x2f73a8['modelCursor']);_0x2f73a8['modelRange']=_0x510c02,_0x2f73a8['modelCursor']=_0x50159a;}),_0x345817['on']('element:hr',(_0x2320d0,_0x2b1182,_0x2648d9)=>{const _0x509352=_0x2b1182['viewItem'];_0x509352['hasClass']('footnotes-divider')&&_0x2b1182['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2648d9['consumable']['consume'](_0x509352,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x7d3f0f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x9a19dc,{writer:_0x36d5f2})=>H(_0x36d5f2)}),_0x7d3f0f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4685a2,{writer:_0x2bbd9b})=>{const _0xeb7d4c=H(_0x2bbd9b,{'data-footnotes-list-label':t('Footnotes')}),_0x2ead0f=_0x25c6f2(_0xeb7d4c,_0x2bbd9b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2bbd9b['setCustomProperty']('footnotesDefinitions',!0x0,_0x2ead0f),_0x2ead0f;}});}['_defineDefinitionConverters'](){const {editor:_0x56782c}=this,{conversion:_0x3e87d6,locale:_0x4b1bfa}=_0x56782c,_0x4e38ad=_0x56782c['config']['get']('footnotes.multiBlock');_0x3e87d6['for']('upcast')['add'](_0x32f8c3=>{_0x32f8c3['on']('element:li',(_0x5a6b8d,_0x530300,_0x1086e0)=>{const _0x2e0936=_0x530300['viewItem'];if(!_0x2e0936['hasClass']('footnote-definition')||!_0x2e0936['getAttribute']('id'))return;const _0x12a996=_0x2e0936['parent'];if(!_0x12a996['is']('element','ol')||!_0x12a996['hasClass']('footnotes-list'))return;if(!_0x1086e0['consumable']['test'](_0x2e0936,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x412425=_0x1086e0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2e0936['getAttribute']('id')});if(!_0x1086e0['safeInsert'](_0x412425,_0x530300['modelCursor']))return;_0x1086e0['consumable']['consume'](_0x2e0936,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x45bdab=Array['from'](_0x2e0936['getChildren']())['find'](_0x3be864=>_0x3be864['is']('element')&&_0x3be864['hasClass']('footnote-content'));for(const _0x62e530 of _0x2e0936['getChildren']())_0x62e530['is']('element')&&(_0x1086e0['consumable']['consume'](_0x62e530,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1086e0['consumable']['consume'](_0x62e530,{'name':!0x0,'classes':'footnote-content'}));if(_0x45bdab){if(_0x4e38ad)_0x1086e0['convertChildren'](_0x45bdab,_0x412425);else{const _0xdb49da=_0x1086e0['writer']['createElement']('footnoteInlineContent');_0x1086e0['writer']['insert'](_0xdb49da,_0x412425),_0x1086e0['convertChildren'](_0x45bdab,_0xdb49da);}}_0x1086e0['updateConversionResult'](_0x412425,_0x530300);});}),_0x3e87d6['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1e4af9,{writer:_0x4eeb69})=>X(_0x1e4af9,_0x4eeb69,_0x4b1bfa,{'dataPipeline':!0x0})}),_0x3e87d6['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x54d6b7,{writer:_0x3cb092})=>X(_0x54d6b7,_0x3cb092,_0x4b1bfa)});}['_defineBogusParagraphConverters'](){const {editor:_0xfc2697}=this,{conversion:_0x296513}=_0xfc2697;_0xfc2697['config']['get']('footnotes.multiBlock')?(_0x296513['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x296513['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xfc2697['model']['document'],'change:data',()=>{!function(_0x197b8c,_0x1d7bc4){const _0x37b5c4=_0x197b8c['document']['differ'],_0x2d76eb=new Set();for(const _0x36a8ea of _0x37b5c4['getChanges']()){const _0x13b730='attribute'==_0x36a8ea['type']?_0x36a8ea['range']['start']['parent']:_0x36a8ea['position']['parent'];_0x13b730['is']('element','footnoteDefinition')&&_0x2d76eb['add'](_0x13b730);}for(const _0x2448be of _0x2d76eb['values']()){const _0x58dfc7=Array['from'](_0x2448be['getChildren']())['filter'](_0x493a78=>U(_0x493a78,_0x1d7bc4['mapper']));for(const _0x336b8d of _0x58dfc7)_0x1d7bc4['reconvertItem'](_0x336b8d);}}(_0xfc2697['model'],_0xfc2697['editing']);})):(_0x296513['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x296513['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x56eafe,{writer:_0x366645})=>{const _0x2ab648=_0x366645['createContainerElement']('span');return _0x366645['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2ab648),_0x2ab648;}}));}['_defineKeyboardHandlers'](){const {editor:_0x43e36c}=this,{editing:_0x50fc81,t:t}=_0x43e36c,_0x2960fb=_0x43e36c['model']['document']['selection'];_0x43e36c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x43e36c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x50fc81['view']['document'],'enter',(_0xde1e4f,_0x2daa9c)=>{const _0x3fd48f=function(_0x52f0db){const _0x90e441=_0x52f0db['getSelectedElement']();if(_0x90e441?.['is']('element','footnoteRef'))return _0x90e441;return null;}(_0x2960fb);if(_0x3fd48f){const _0x578606=_0x3fd48f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x578606),_0x2daa9c['preventDefault'](),_0xde1e4f['stop']();}},{'context':_0x4ce81c});}['_defineClickHandlers'](){const {editor:_0x1813b3}=this,{editing:_0x51359f}=_0x1813b3;_0x1813b3['editing']['view']['addObserver'](_0x47ba15),_0x1813b3['editing']['view']['addObserver'](_0x333465);let _0x962101=!0x1;this['listenTo'](_0x51359f['view']['document'],'pointerdown',(_0x2a9400,_0x49c22d)=>{const {target:_0x186ebf}=_0x49c22d,_0x276553=_0x51359f['view']['document']['selection'];_0x962101=!!(_0x186ebf?.['is']('element','a')&&_0x186ebf['parent']?.['is']('element','sup')&&_0x186ebf['parent']['hasClass']('footnote'))&&_0x276553['getSelectedElement']()===_0x186ebf['parent'];},{'priority':'high'}),this['listenTo'](_0x51359f['view']['document'],'click',(_0x1616c6,_0x4f9533)=>{const {target:_0x22e983}=_0x4f9533;if(!_0x22e983?.['is']('element','a'))return;if(_0x22e983['parent']?.['is']('element','sup')&&_0x22e983['parent']['hasClass']('footnote')&&!_0x962101)return void _0x4f9533['preventDefault']();let _0x86870f=_0x22e983['getAttribute']('href');if(!_0x86870f?.['startsWith']('#'))return;_0x86870f=_0x86870f['slice'](0x1);let _0xa84018=!0x1;(_0x86870f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x86870f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x86870f))&&(_0xa84018=!0x0),_0xa84018&&(_0x4f9533['preventDefault'](),_0x1616c6['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x214f22}={}){return(_0x4309a0,{writer:_0x3aca20})=>{if(!M(_0x4309a0))return null;if(!_0x214f22)return _0x3aca20['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x536c21=_0x3aca20['createContainerElement']('p');return _0x3aca20['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x536c21),_0x536c21;};}function M(_0x7c828d){const {parent:_0x54821f}=_0x7c828d;if(!_0x54821f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x54821f['childCount'])return!0x1;for(const _0x3b3375 of _0x7c828d['getAttributeKeys']())if(!_0x3b3375['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3b3375)return!0x1;return!0x0;}function U(_0x75ee40,_0x24f705){if(!_0x75ee40['is']('element','paragraph'))return!0x1;const _0x4d49fb=_0x24f705['toViewElement'](_0x75ee40);return!!_0x4d49fb&&M(_0x75ee40)!==_0x4d49fb['is']('element','span');}function q(_0x5b48db){return _0x4ce81c(_0x5b48db)&&_0x5b48db['is']('containerElement')&&!!_0x5b48db['getCustomProperty']('footnotesDefinitions');}function H(_0x5ebff9,_0x48d614={}){const _0x8e3b1d=_0x5ebff9['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5c638c=_0x5ebff9['createContainerElement']('ol',{'class':'footnotes-list'},_0x5ebff9['createSlot']());return _0x5ebff9['createContainerElement']('div',{'class':'footnotes',..._0x48d614},[_0x8e3b1d,_0x5c638c]);}function z(_0x570d26,_0x193dbf){const _0x279584=_0x570d26['getAttribute']('footnoteId'),_0x53c892=_0x570d26['getAttribute']('footnoteCounter'),_0x3ab1ce=_0x193dbf['createUIElement']('a',{'href':'#'+_0x279584},function(_0x341e7b){const _0x20de39=this['toDomElement'](_0x341e7b);return _0x20de39['textContent']=_0x53c892,_0x20de39;}),_0x1454b7=_0x193dbf['createContainerElement']('sup',{'id':'ref-'+_0x279584,'class':'footnote'},[_0x3ab1ce]);return _0x1454b7['getFillerOffset']=()=>null,_0x1454b7;}function X(_0x5508e9,_0x4bace3,_0x37acf7,{dataPipeline:_0x41eeaf}={}){const {t:t}=_0x37acf7,_0x5e84c7=_0x5508e9['getAttribute']('footnoteId'),_0x4e60dc=_0x4bace3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5e84c7},function(_0x5864c5){const _0x311b43=this['toDomElement'](_0x5864c5);return _0x311b43['innerText']='^',_0x311b43;}),_0x40041c=_0x41eeaf?_0x4bace3['createContainerElement']('div',{'class':'footnote-content'}):_0x2f2daa(_0x4bace3['createEditableElement']('div',{'class':'footnote-content'}),_0x4bace3,{'label':t('Footnote\x20content.')});return _0x4bace3['insert'](_0x4bace3['createPositionAt'](_0x40041c,0x0),_0x4bace3['createSlot']()),_0x4bace3['createContainerElement']('li',{'class':'footnote-definition','id':_0x5e84c7},[_0x4e60dc,_0x40041c]);}class J extends _0xb40c9f{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x13baac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x10dc32}=this,{plugins:_0x4fa7aa,model:_0x151beb}=_0x10dc32,_0x2683c3=_0x4fa7aa['get'](_0x13baac),_0xc6e02f=_0x4fa7aa['get'](K);this['listenTo'](_0x2683c3,'outputTransformation',(_0x240685,_0x31f03d)=>{const _0x401a7e=Q(_0x151beb['createRangeIn'](_0x31f03d['content']));if(!_0x401a7e['length'])return;const _0x2e0195=_0xc6e02f['getFootnotes'](),_0x3cfc6a=_0x401a7e['reduce']((_0x1396bc,_0x117400)=>{const _0x293730=_0x2e0195['find'](_0x2a0ee3=>_0x2a0ee3['id']===_0x117400);if(_0x293730){const _0x18f394=_0x10dc32['data']['toView'](_0x293730['definition'],{'isClipboardPipeline':!0x0}),_0x4d2d8f=_0x10dc32['data']['htmlProcessor']['toData'](_0x18f394);_0x1396bc[_0x293730['id']]=_0x4d2d8f;}return _0x1396bc;},Object['create'](null));_0x31f03d['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3cfc6a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2a70c8}=this,{model:_0x29afd3,plugins:_0x1612dd}=_0x2a70c8,{view:_0x29779e}=_0x2a70c8['editing'],_0x189479=_0x1612dd['get'](_0x13baac),_0x3b1a50=_0x1612dd['get'](K),_0x595a2f=_0x2a70c8['config']['get']('footnotes.multiBlock');let _0x48b39f=null;this['listenTo'](_0x29779e['document'],'clipboardInput',(_0x4e20de,_0x33c6e3)=>{const _0x39d70a=_0x33c6e3['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x48b39f=_0x39d70a?JSON['parse'](_0x39d70a):null;}),this['listenTo'](_0x189479,'contentInsertion',(_0x461958,_0x1f5f11)=>{const _0xd9b7d3=_0x1f5f11['sourceEditorId']===this['editor']['id'];_0xd9b7d3&&'drop'===_0x1f5f11['method']||_0x29afd3['change'](_0x1a028e=>{let _0x40247a=_0x3b1a50['getFootnotesDefinitionsObjectElement']();const _0x42034e=!!_0x40247a&&Array['from'](_0x29afd3['document']['selection']['getSelectedBlocks']())['includes'](_0x40247a);if(!_0x48b39f&&function(_0x17d452){for(const {item:_0x24138b}of _0x17d452)if(_0x24138b['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x29afd3['createRangeIn'](_0x1f5f11['content']))&&(_0x48b39f=function(_0x31de65,_0x35db1f){const _0x131fe6=G(_0x31de65,_0x35db1f);if(!_0x131fe6)return null;const _0x11119c=Object['create'](null);for(const _0x13ca06 of _0x131fe6['getChildren']())_0x13ca06['is']('element','footnoteDefinition')&&_0x13ca06['hasAttribute']('footnoteId')&&(_0x11119c[_0x13ca06['getAttribute']('footnoteId')]=_0x31de65['cloneElement'](_0x13ca06,!0x0));return Object['keys'](_0x11119c)['length']?_0x11119c:null;}(_0x1a028e,_0x1f5f11['content'])),(_0x40247a&&!_0x42034e||!_0x40247a&&!_0x48b39f)&&function(_0x5d3ec0,_0x378649){const _0x22b4fc=[];for(const {item:_0x2cb5dc}of _0x5d3ec0['createRangeIn'](_0x378649))_0x2cb5dc['is']('element','footnotesDefinitions')&&_0x22b4fc['push'](_0x2cb5dc);for(const _0x83e0d of _0x22b4fc)_0x5d3ec0['remove'](_0x83e0d);}(_0x1a028e,_0x1f5f11['content']),!_0x48b39f)return;const {selection:_0x2f4abf}=_0x29afd3['document'],_0x43081d=_0x2f4abf['getFirstRange']()['root'];_0x40247a&&!_0x42034e||(_0x40247a=G(_0x1a028e,_0x1f5f11['content']),_0x40247a||=_0x3b1a50['_insertEmptyFootnotesDefinitionsContainer'](_0x1a028e,_0x43081d));const _0x3dd7b5=Array['from'](_0x2f4abf['getRanges']())['flatMap'](Q),_0x41e59f=function(_0x1ef2d3,_0x28fd1b,_0xe43e8c){const _0x4ddd16=Object['create'](null);for(const {item:_0x3b374d}of _0x1ef2d3['createRangeIn'](_0x28fd1b))if(_0x3b374d['is']('element','footnoteRef')){const _0xe41225=_0x3b374d['getAttribute']('footnoteId');if(!_0xe43e8c(_0xe41225))continue;_0x4ddd16[_0xe41225]||(_0x4ddd16[_0xe41225]=_0x56b912()),_0x1ef2d3['setAttribute']('footnoteId',_0x4ddd16[_0xe41225],_0x3b374d);}return _0x4ddd16;}(_0x1a028e,_0x1f5f11['content'],_0x46cd65=>{if(!_0xd9b7d3)return!0x0;return!!_0x3b1a50['getFootnote'](_0x46cd65)&&!_0x3dd7b5['includes'](_0x46cd65);});for(const [_0x17ea11,_0x1d3560]of Object['entries'](_0x48b39f)){const _0x141134=_0x41e59f[_0x17ea11]||_0x17ea11;let _0x10c9bf;if('string'!=typeof _0x1d3560)_0x10c9bf=_0x1d3560,_0x141134!==_0x17ea11&&_0x1a028e['setAttribute']('footnoteId',_0x141134,_0x10c9bf);else{_0x10c9bf=_0x1a028e['createElement']('footnoteDefinition',{'footnoteId':_0x141134});const _0x161d5a=_0x2a70c8['data']['htmlProcessor']['toView'](_0x1d3560);let _0x264308;if(_0x595a2f)_0x264308=_0x2a70c8['data']['toModel'](_0x161d5a,_0x10c9bf);else{_0x264308=_0x1a028e['createElement']('footnoteInlineContent');const _0xee88f8=_0x2a70c8['data']['toModel'](_0x161d5a,_0x264308);_0x1a028e['insert'](_0xee88f8,_0x264308);}_0x1a028e['append'](_0x264308,_0x10c9bf);}_0x1a028e['insert'](_0x10c9bf,_0x40247a,'end');}_0x48b39f=null;});});}}function G(_0x219ae7,_0x2c9267){for(const {item:_0x573e32}of _0x219ae7['createRangeIn'](_0x2c9267))if(_0x573e32['is']('element','footnotesDefinitions'))return _0x573e32;return null;}function Q(_0x11dc1d){const _0x3cde79=new Set();for(const {item:_0x2b2b24}of _0x11dc1d)_0x2b2b24['is']('element','footnoteRef')&&_0x3cde79['add'](_0x2b2b24['getAttribute']('footnoteId'));return Array['from'](_0x3cde79);}class W extends _0xb40c9f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb66ce8}=this,{componentFactory:_0x5ece45}=_0xb66ce8['ui'];_0x5ece45['add']('insertFootnote',Y(_0xb66ce8,_0x3b005a)),_0x5ece45['add']('menuBar:insertFootnote',Y(_0xb66ce8,_0x5e78c6)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x590278=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xec0d8e;for(const _0x25613e in _0x590278){const _0xdeb93d=_0x25613e,_0x2ab107=_0x590278[_0xdeb93d];if('footnotesLicenseKeyValid'==_0x2ab107||'footnotesLicenseKeyInvalid'==_0x2ab107||'footnotesLicenseKeyExpired'==_0x2ab107||'footnotesLicenseKeyDomainLimit'==_0x2ab107||'footnotesLicenseKeyNotAllowed'==_0x2ab107||'footnotesLicenseKeyEvaluationLimit'==_0x2ab107||'footnotesLicenseKeyUsageLimit'==_0x2ab107){delete _0x590278[_0xdeb93d],_0xec0d8e=_0x2ab107,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xec0d8e&&_0x590278['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xec0d8e&&_0x590278['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xec0d8e&&_0x590278['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xec0d8e&&_0x590278['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xec0d8e&&_0x590278['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xec0d8e&&_0x590278['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x4dc636,_0x2b682e){const _0x3d178f=_0x4dc636['commands']['get']('insertFootnote');return _0x3699b6=>{const {t:t}=_0x3699b6,_0x27af30=new _0x2b682e(_0x3699b6),_0x33dd5f=_0x27af30 instanceof _0x5e78c6;return _0x27af30['bind']('isEnabled')['to'](_0x3d178f,'isEnabled'),_0x27af30['set']({'label':t(_0x33dd5f?'Footnote':'Insert\x20footnote'),'icon':_0xd8d8f1,'tooltip':!0x0}),_0x27af30['on']('execute',()=>{_0x3d178f['execute'](),_0x4dc636['editing']['view']['focus']();}),_0x27af30;};}class Z extends _0xb40c9f{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0x29af0f{['refresh'](){const {editor:_0x420ddb}=this,_0x20fd58=_0x420ddb['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x20fd58,this['value']=_0x20fd58?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3e6a48}){const {editor:_0x43e575}=this,_0xf0b43c=_0x43e575['plugins']['get'](K),_0x99d65=_0xf0b43c['getFootnotesDefinitionsObjectElement']();_0x99d65&&ot['includes'](_0x3e6a48)&&_0x43e575['model']['change'](_0x2376e2=>{_0x2376e2['setAttribute']('footnotesListStyle',_0x3e6a48,_0x99d65),_0xf0b43c['_updateFootnotesCounters'](_0x2376e2);});}}class it extends _0x29af0f{['refresh'](){const {editor:_0x5c89ec}=this,_0x4e908b=_0x5c89ec['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4e908b,this['value']=_0x4e908b?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3c9eb4}){const {editor:_0x405983}=this,_0x2f322a=_0x405983['plugins']['get'](K),_0x3b3705=_0x2f322a['getFootnotesDefinitionsObjectElement']();_0x3b3705&&Number['isInteger'](_0x3c9eb4)&&_0x405983['model']['change'](_0x5426b6=>{_0x5426b6['setAttribute']('footnotesListStart',_0x3c9eb4,_0x3b3705),_0x2f322a['_updateFootnotesCounters'](_0x5426b6);});}}function st(_0x5ac1c8,_0x3141b9){let _0xcdedfb='',_0x48f225=_0x5ac1c8;for(;_0x48f225>0x0;){const _0x38d50b=(_0x48f225-0x1)%0x1a;_0xcdedfb=String['fromCharCode'](0x61+_0x38d50b)+_0xcdedfb,_0x48f225=Math['floor']((_0x48f225-0x1)/0x1a);}return _0x3141b9?_0xcdedfb['toUpperCase']():_0xcdedfb;}const rt=[{'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 lt(_0x1214c8,_0x53d729){let _0x56e06f='',_0x20732d=_0x1214c8;for(const {value:_0x1f9ef3,numeral:_0x41a6c1}of rt)for(;_0x20732d>=_0x1f9ef3;)_0x56e06f+=_0x41a6c1,_0x20732d-=_0x1f9ef3;return _0x53d729?_0x56e06f:_0x56e06f['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0xb40c9f{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5ab721}=this;_0x5ab721['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5ab721['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5ab721['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x5ab721['commands']['add']('footnotesStyle',new nt(_0x5ab721)),_0x5ab721['commands']['add']('footnotesStart',new it(_0x5ab721)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1d1617}=this,{schema:_0x2ef1f6}=_0x1d1617['model'];_0x2ef1f6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x369093}=this,{conversion:_0x5a06bf,model:_0xdcb0c5}=_0x369093,{schema:_0x1b52ab}=_0xdcb0c5;_0x5a06bf['for']('upcast')['add'](_0x3159ad=>{_0x3159ad['on']('element:ol',(_0x20e029,_0x2b8850,_0x1e2bea)=>{const _0x48b8af=_0x2b8850['viewItem'],_0x36b186=_0x2b8850['modelCursor']?.['parent'];_0x48b8af['hasClass']('footnotes-list')&&_0x36b186?.['is']('element','footnotesDefinitions')&&(function(_0x1f8f4b,_0x494cc7,_0x39af2f,_0x537c55){if(!_0x537c55['checkAttribute'](_0x494cc7,'footnotesListStart'))return;let _0x25ec47=0x1;const _0x36c7bc=_0x39af2f['consumable']['consume'](_0x1f8f4b,{'attributes':'start'});if(_0x36c7bc){const _0x54595f=Number['parseInt'](_0x1f8f4b['getAttribute']('start'),0xa);Number['isNaN'](_0x54595f)||(_0x25ec47=_0x54595f);}!_0x36c7bc&&_0x494cc7['hasAttribute']('footnotesListStart')||_0x39af2f['writer']['setAttribute']('footnotesListStart',_0x25ec47,_0x494cc7);}(_0x48b8af,_0x36b186,_0x1e2bea,_0x1b52ab),function(_0x50faa1,_0x3680eb,_0x1b7d11,_0x41f709){if(!_0x41f709['checkAttribute'](_0x3680eb,'footnotesListStyle'))return;let _0x113f7b='decimal',_0x59d438=!0x1;if(_0x1b7d11['consumable']['consume'](_0x50faa1,{'attributes':'type'})){const _0x11238f={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x50faa1['getAttribute']('type')];_0x11238f&&(_0x113f7b=_0x11238f),_0x59d438=!0x0;}if(_0x1b7d11['consumable']['consume'](_0x50faa1,{'styles':'list-style-type'})){const _0x336111=ct(_0x50faa1['getStyle']('list-style-type'));_0x336111&&(_0x113f7b=_0x336111),_0x59d438=!0x0;}!_0x59d438&&_0x3680eb['hasAttribute']('footnotesListStyle')||_0x1b7d11['writer']['setAttribute']('footnotesListStyle',_0x113f7b,_0x3680eb);}(_0x48b8af,_0x36b186,_0x1e2bea,_0x1b52ab));});}),_0x5a06bf['for']('downcast')['add'](_0x4b21aa=>{_0x4b21aa['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1fd44f,_0x3ce50b,_0x34a5f4)=>{if(!_0x34a5f4['consumable']['consume'](_0x3ce50b['item'],_0x1fd44f['name']))return;const _0x2dada5=ut(_0x3ce50b['item'],_0x34a5f4['mapper']),{attributeNewValue:_0xf1b48f}=_0x3ce50b;null==_0xf1b48f||0x1===_0xf1b48f?_0x34a5f4['writer']['removeAttribute']('start',_0x2dada5):_0x34a5f4['writer']['setAttribute']('start',String(_0xf1b48f),_0x2dada5);}),_0x4b21aa['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x227766,_0x4829c3,_0x288106)=>{if(!_0x288106['consumable']['consume'](_0x4829c3['item'],_0x227766['name']))return;const _0x39542c=ut(_0x4829c3['item'],_0x288106['mapper']),{attributeNewValue:_0x275a36}=_0x4829c3;_0x275a36&&'decimal'!==_0x275a36?_0x288106['writer']['setStyle']('list-style-type',_0x275a36,_0x39542c):_0x288106['writer']['removeStyle']('list-style-type',_0x39542c);});});}['_definePostfixer'](){const {editor:_0x310e28}=this,{model:_0x25c3cd}=_0x310e28,_0x3a008a=_0x310e28['plugins']['get'](K),_0x502523=this['_getDefaultListStyle'](),_0x73ba7a=this['_getDefaultStartIndex']();_0x25c3cd['document']['registerPostFixer'](_0x54d84d=>{const _0xf59c8c=_0x25c3cd['document']['differ']['getChanges']();let _0x161f81=!0x1;for(const _0x5cb28f of _0xf59c8c){if('insert'!==_0x5cb28f['type']||'$text'===_0x5cb28f['name'])continue;const _0x49f9c6=_0x25c3cd['createRangeOn'](_0x5cb28f['position']['nodeAfter']);for(const _0x43f928 of _0x49f9c6['getItems']())_0x43f928['is']('element','footnotesDefinitions')&&(!_0x43f928['hasAttribute']('footnotesListStart')&&_0x25c3cd['schema']['checkAttribute'](_0x43f928,'footnotesListStart')&&(_0x54d84d['setAttribute']('footnotesListStart',_0x73ba7a,_0x43f928),_0x161f81=!0x0),!_0x43f928['hasAttribute']('footnotesListStyle')&&_0x25c3cd['schema']['checkAttribute'](_0x43f928,'footnotesListStyle')&&(_0x54d84d['setAttribute']('footnotesListStyle',_0x502523,_0x43f928),_0x161f81=!0x0));}return _0x161f81&&_0x3a008a['_updateFootnotesCounters'](_0x54d84d),_0x161f81;});}['_defineFormatter'](){const {editor:_0x51db95}=this;_0x51db95['plugins']['get'](K)['setFootnoteFormatter'](_0x4d0e5f=>this['_formatFootnoteListValue'](_0x4d0e5f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1b1253,value:_0x404578,digits:_0x2f8e93}){const _0xa8705f=_0x1b1253['getAttribute']('footnotesListStyle'),_0x4960c5=_0x1b1253['getAttribute']('footnotesListStart'),_0x35ad0f=Math['floor'](_0x404578)+(_0x4960c5??0x1)-0x1;switch(_0xa8705f){case'decimal-leading-zero':return function(_0x2ae09e,_0x2f604e){return String(_0x2ae09e)['padStart'](_0x2f604e,'0');}(_0x35ad0f,Math['max'](0x2,_0x2f8e93));case'lower-alpha':case'lower-latin':return st(_0x35ad0f,!0x1);case'upper-alpha':case'upper-latin':return st(_0x35ad0f,!0x0);case'lower-roman':return lt(_0x35ad0f,!0x1);case'upper-roman':return lt(_0x35ad0f,!0x0);case'arabic-indic':return String(_0x35ad0f)['replace'](/\d/g,_0x3a0850=>ft[Number(_0x3a0850)]);default:return String(_0x35ad0f);}}}function ct(_0x55b995){if('string'==typeof _0x55b995){const _0x50d9f0=et[_0x55b995];if(_0x50d9f0)return _0x50d9f0;if(ot['includes'](_0x55b995))return _0x55b995;}return null;}function ut(_0x413719,_0x47de27){const _0x1bb59e=_0x47de27['toViewElement'](_0x413719);return Array['from'](_0x1bb59e['getChildren']())['find'](_0x15b0a6=>_0x15b0a6['is']('element','ol')&&_0x15b0a6['hasClass']('footnotes-list'));}class dt extends _0x4cc1a8{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x4f7bf7();['keystrokes']=new _0x2eb982();['focusables']=new _0x459819();['focusCycler'];constructor(_0x30c574,{styleButtonViews:_0x3ccfa9,styleGridAriaLabel:_0x2f3c36}){super(_0x30c574),(this['focusCycler']=new _0x24f630({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3ccfa9,_0x2f3c36),[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 _0xaf721c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0xaf721c['element']);_0x403cc2({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x1a00c4['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 _0x205573=_0x26deeb=>_0x26deeb['stopPropagation']();this['keystrokes']['set']('arrowright',_0x205573),this['keystrokes']['set']('arrowleft',_0x205573),this['keystrokes']['set']('arrowup',_0x205573),this['keystrokes']['set']('arrowdown',_0x205573);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a57d3,_0x438423){const _0x19e498=new _0x4cc1a8(this['locale']);return _0x19e498['children']=_0x19e498['createCollection'](),_0x19e498['children']['addMany'](_0x5a57d3),_0x19e498['setTemplate']({'tag':'div','attributes':{'aria-label':_0x438423,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x19e498['children']}),_0x19e498['children']['delegate']('execute')['to'](this),_0x19e498['focus']=function(){for(const _0x5033c of this['children'])if(_0x5033c instanceof _0x3b005a&&_0x5033c['isOn'])return void _0x5033c['focus']();this['children']['first']['focus']();},_0x19e498['focusTracker']=new _0x4f7bf7(),_0x19e498['keystrokes']=new _0x2eb982(),_0x19e498['render'](),_0x19e498['keystrokes']['listenTo'](_0x19e498['element']),this['children']['add'](_0x19e498),_0x19e498;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x397d5f=this['_createStartIndexPropertyView'](),_0x11bea4=[_0x397d5f],_0x486dbc=new _0x1a4c71(this['locale'],_0x11bea4);return _0x486dbc['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x486dbc['buttonView']['bind']('isEnabled')['toMany'](_0x11bea4,'isEnabled',(..._0x39f1ed)=>_0x39f1ed['some'](_0x2fa45d=>_0x2fa45d)),_0x486dbc['buttonView']['on']('change:isEnabled',(_0x558bfb,_0x100424,_0x18a8fe)=>{_0x18a8fe||(_0x486dbc['isCollapsed']=!0x0);}),this['children']['add'](_0x486dbc),[_0x397d5f,_0x486dbc];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x40434c=new _0xeb427d(this['locale'],_0x24d296);return _0x40434c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x40434c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x40434c['fieldView']['on']('input',()=>{const _0x30cb7a=_0x40434c['fieldView']['element'],_0x30821a=_0x30cb7a['valueAsNumber'];Number['isNaN'](_0x30821a)?_0x40434c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x30cb7a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x30821a}):_0x40434c['errorText']=t(_0x30821a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x40434c;}}class ht extends _0xb40c9f{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5b3143,_0x37f3a7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1d9ea1}=this,{componentFactory:_0x63b7c9}=_0x1d9ea1['ui'];_0x1d9ea1['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x63b7c9['add']('footnotesStyle',function(_0x70fe9a){return _0x4188e1=>{const {t:t}=_0x4188e1,_0x289894=_0x70fe9a['commands']['get']('footnotesStyle'),_0x2d65f5=_0x25876d(_0x4188e1),{buttonView:_0x449469}=_0x2d65f5;return _0x2d65f5['class']='ck-footnotes-styles-dropdown',_0x2d65f5['bind']('isEnabled')['to'](_0x289894,'isEnabled'),_0x449469['set']({'label':t('Footnotes\x20style'),'icon':_0xd8d8f1,'tooltip':!0x0}),_0x2d65f5['once']('change:isOpen',()=>{const _0x49ac92=function({editor:_0x1cb070,dropdownView:_0xe93b15}){const {t:t}=_0x1cb070['locale'],_0x34a70c=t('Footnotes\x20definitions\x20styles'),_0x36afd7=function(_0x5a391b){const {t:t}=_0x5a391b['locale'],_0x45796=_0x5a391b['config']['get']('footnotes.footnotesProperties.listStyles'),_0xff822b=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0xbf579e},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x479bfb},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x14f5bf},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x4dee27},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x36c927},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x2c99fb},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x24fb30}];return _0x45796['map'](_0x5ae463=>{const _0x7c21d7=ct(_0x5ae463),_0x594a32=_0xff822b['find'](_0x5c1241=>_0x5c1241['style']===_0x7c21d7);return function(_0x272c2e,_0x36c521){const {locale:_0x3b1a5b}=_0x272c2e,{label:_0x2b2245,icon:_0x4b7dc9,tooltip:_0x11c8ff,style:_0x21789a}=_0x36c521,_0x3b6ad7=_0x272c2e['commands']['get']('footnotesStyle'),_0x5a9e3d=new _0x3b005a(_0x3b1a5b);return _0x5a9e3d['set']({'label':_0x2b2245,'icon':_0x4b7dc9,'tooltip':_0x11c8ff}),_0x5a9e3d['bind']('isOn')['to'](_0x3b6ad7,'value',_0x210405=>_0x210405===_0x21789a),_0x5a9e3d['bind']('isEnabled')['to'](_0x3b6ad7,'isEnabled'),_0x5a9e3d['on']('execute',()=>{_0x272c2e['execute']('footnotesStyle',{'value':_0x21789a}),_0x272c2e['editing']['view']['focus']();}),_0x5a9e3d;}(_0x5a391b,_0x594a32);});}(_0x1cb070),_0x35570f=new dt(_0x1cb070['locale'],{'styleGridAriaLabel':_0x34a70c,'styleButtonViews':_0x36afd7}),_0xffffff=_0x1cb070['commands']['get']('footnotesStart');return _0x35570f['startIndexFieldView']['bind']('isEnabled')['to'](_0xffffff),_0x35570f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xffffff),_0x35570f['on']('footnotesListStart',(_0x347fbb,_0x1d1be5)=>{_0x1cb070['execute']('footnotesStart',{'value':_0x1d1be5['startIndex']});}),_0x35570f['delegate']('execute')['to'](_0xe93b15),_0x35570f;}({'editor':_0x70fe9a,'dropdownView':_0x2d65f5});_0x2d65f5['panelView']['children']['add'](_0x49ac92);}),_0x2d65f5;};}(_0x1d9ea1));}['afterInit'](){const {editor:_0x43f60a}=this,{t:t}=_0x43f60a['locale'],_0xf2c17e=_0x43f60a['plugins']['get'](_0x37f3a7),{defaultPositions:_0x30bd59}=_0x10af63;_0xf2c17e['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x43f60a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc3c185=>{let _0x391caf=_0xc3c185['getFirstPosition']()?.['parent'];return _0x391caf?.['is']('$text')&&(_0x391caf=_0x391caf['parent']),_0x391caf?.['is']('element')?_0x391caf['findAncestor'](q):null;},'positions':[_0x30bd59['southArrowNorth'],_0x30bd59['southArrowNorthMiddleWest'],_0x30bd59['southArrowNorthMiddleEast'],_0x30bd59['southArrowNorthWest'],_0x30bd59['southArrowNorthEast'],_0x30bd59['northArrowSouth'],_0x30bd59['northArrowSouthMiddleWest'],_0x30bd59['northArrowSouthMiddleEast'],_0x30bd59['northArrowSouthWest'],_0x30bd59['northArrowSouthEast'],_0x30bd59['viewportStickyNorth']]});}}class mt extends _0xb40c9f{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
23
+ import{Plugin as _0x5cfb3d,Command as _0x21c5d1}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2e193e,isWidget as _0x5df730,toWidgetEditable as _0x3d3309,WidgetToolbarRepository as _0x47cf7f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3c3a12,logWarning as _0x26fd17,FocusTracker as _0x4fc2a7,KeystrokeHandler as _0x17cf75,global as _0x56deab}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x418968,ClickObserver as _0x1a169e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2d4c41}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4453c5,ButtonView as _0x3dc254,View as _0x325213,ViewCollection as _0x3b6b0c,FocusCycler as _0xe04fd5,addKeyboardHandlingForGrid as _0x4ef8a,CollapsibleView as _0x17e2e1,LabeledFieldView as _0x37d3fc,createLabeledInputNumber as _0x326cca,ContextualBalloon as _0x42c45b,BalloonPanelView as _0x272e06,createDropdown as _0xedf58b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2968f4,IconListStyleDecimal as _0xcf9b40,IconListStyleDecimalLeadingZero as _0x1ed7cb,IconListStyleLowerRoman as _0x10910d,IconListStyleUpperRoman as _0x56bbdb,IconListStyleLowerLatin as _0x1c230,IconListStyleUpperLatin as _0x285424,IconListStyleArabicIndic as _0xf9e9b6}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x491954,_0x244afa){this['_model']=_0x491954,this['_elementName']=_0x244afa['elementName'],this['_getElementKey']=_0x244afa['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x58f571){const _0x396460=new Set(),_0x2dfcaa=new Map();for(const _0x13f0c4 of _0x58f571){if('insert'===_0x13f0c4['type']&&'$text'!==_0x13f0c4['name']&&_0x13f0c4['position']['nodeAfter']){const _0x9c3334=this['_model']['createRangeOn'](_0x13f0c4['position']['nodeAfter']);for(const _0x59ff8b of _0x9c3334['getItems']()){if(!_0x59ff8b['is']('element',this['_elementName']))continue;const _0x4d130c=this['_getElementKey'](_0x59ff8b);_0x2dfcaa['has'](_0x4d130c)||_0x2dfcaa['set'](_0x4d130c,[]),_0x2dfcaa['get'](_0x4d130c)['push'](_0x59ff8b);}}if('remove'===_0x13f0c4['type']&&_0x13f0c4['name']===this['_elementName']){const _0x2ceef1=this['_getElementKey']({'getAttribute':_0x1e6181=>_0x13f0c4['attributes']['get'](_0x1e6181)});_0x396460['add'](_0x2ceef1);}}for(const [_0x11e8a7,_0x592114]of this['_trackedElements'])'$graveyard'===_0x592114['root']['rootName']&&_0x396460['add'](_0x11e8a7);for(const _0xfd358c of _0x396460)this['_trackedElements']['delete'](_0xfd358c);for(const [_0x16c592,_0x472cd9]of _0x2dfcaa)this['_trackedElements']['set'](_0x16c592,_0x472cd9[_0x472cd9['length']-0x1]);const _0x20fa34=new Set();for(const [_0x1c7129,_0x21b303]of _0x2dfcaa)_0x396460['has'](_0x1c7129)&&(_0x20fa34['add'](_0x21b303[0x0]),_0x21b303['length']>0x1?_0x2dfcaa['set'](_0x1c7129,_0x21b303['slice'](0x1)):_0x2dfcaa['delete'](_0x1c7129),_0x396460['delete'](_0x1c7129));return{'removed':Array['from'](_0x396460),'inserted':Array['from'](_0x2dfcaa['values']())['flat'](),'moved':Array['from'](_0x20fa34)};}}class K extends _0x5cfb3d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x933284){super(_0x933284),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x111916=>_0x111916['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1b4b08=>_0x1b4b08['getAttribute']('footnoteId')});}['init'](){const {editor:_0x15bf37}=this,{model:_0x56bb50,data:_0x16b00e}=_0x15bf37;_0x56bb50['document']['registerPostFixer'](_0x33030a=>{const _0x1b3d0d=_0x56bb50['document']['differ']['getChanges']();let _0x47860c=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x33030a,_0x1b3d0d)&&(_0x47860c=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x33030a,_0x1b3d0d)&&(_0x47860c=!0x0),this['_handleFootnoteReferencesChanges'](_0x33030a,_0x1b3d0d)&&(_0x47860c=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x33030a)&&(_0x47860c=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x33030a)&&(_0x47860c=!0x0),this['_sortFootnoteDefinitions'](_0x33030a)&&(_0x47860c=!0x0),_0x47860c;}),this['listenTo'](_0x56bb50['document'],'change:data',()=>{_0x56bb50['enqueueChange']({'isUndoable':!0x1},_0x413969=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x413969);});},{'priority':'low'}),this['listenTo'](_0x16b00e,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x194e00){return this['_footnotes']['find'](_0x573aa4=>_0x573aa4['id']===_0x194e00)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5ade32){this['_footnoteFormatter']=_0x5ade32;}['_updateFootnotesCounters'](_0xbe7d6d,_0x22d6f3=0x0){let _0x16eaa0=!0x1;for(let _0x3b3fa5=_0x22d6f3;_0x3b3fa5<this['_footnotes']['length'];_0x3b3fa5++)this['_updateFootnoteRefCounter'](_0xbe7d6d,_0x3b3fa5)&&(_0x16eaa0=!0x0);return _0x16eaa0;}['_insertEmptyFootnotesDefinitionsContainer'](_0x494146,_0x212eef){const _0x7bf4cf=_0x494146['createElement']('footnotesDefinitions',{});return _0x494146['append'](_0x7bf4cf,_0x212eef),this['_footnotesDefinitions']=_0x7bf4cf,_0x7bf4cf;}['_ensureFootnotesDefinitionsContainerExists'](_0x4a7094){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x468343=this['_footnotes'][0x0]['reference']['root'],_0x1e08ee=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4a7094,_0x468343);for(const _0x4f6a72 of this['_footnotes'])_0x4f6a72['definition']['parent']||_0x4a7094['insert'](_0x4f6a72['definition'],_0x1e08ee,'end');this['_updateFootnotesCounters'](_0x4a7094);}['_handleFootnotesDefinitionsObjectChanges'](_0x4c3b65,_0x1231e2){let _0x2daf5a=!0x1;const {inserted:_0x25d0fb,removed:_0x3f2522,moved:_0x42368e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1231e2);if(_0x42368e['length']&&(this['_footnotesDefinitions']=_0x42368e[0x0]),_0x25d0fb['length']){if(_0x25d0fb['length']>0x1||this['_footnotesDefinitions']&&_0x25d0fb['some'](_0xd44dc7=>_0xd44dc7!==this['_footnotesDefinitions'])){const _0x46c21d=_0x4c3b65['createElement']('footnotesDefinitions',{}),_0x1745e1=[];this['_footnotesDefinitions']&&_0x1745e1['push'](this['_footnotesDefinitions']),_0x1745e1['push'](..._0x25d0fb),_0x4c3b65['insert'](_0x46c21d,_0x1745e1[0x0],'before');for(const _0x3b2e22 of _0x1745e1)_0x4c3b65['move'](_0x4c3b65['createRangeIn'](_0x3b2e22),_0x4c3b65['createPositionAt'](_0x46c21d,'end')),_0x4c3b65['remove'](_0x3b2e22);this['_footnotesDefinitions']=_0x46c21d,this['_updateFootnotesCounters'](_0x4c3b65),_0x2daf5a=!0x0;}else this['_footnotesDefinitions']=_0x25d0fb[0x0];}if(_0x3f2522['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x530a3b of this['_footnotes'])_0x4c3b65['remove'](_0x530a3b['reference']),_0x2daf5a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2daf5a;}['_handleFootnoteDefinitionsChanges'](_0x2e78de,_0x4992a4){let _0x424177=!0x1;const _0x498d22=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3e44ff,moved:_0x3fbb9e}=this['_footnoteDefsTracker']['getChanges'](_0x4992a4);for(const _0x585fa8 of[..._0x3fbb9e,..._0x3e44ff]){const _0x4b97b4=_0x585fa8['getAttribute']('footnoteId'),_0x94f389=this['getFootnote'](_0x4b97b4);_0x94f389&&(_0x94f389['definition']=_0x585fa8),j(_0x2e78de,_0x498d22,_0x585fa8)&&(_0x424177=!0x0);}return _0x424177;}['_handleFootnoteReferencesChanges'](_0x4f1055,_0x434263){let _0x315f3d=!0x1;const {removed:_0x28f3a4,inserted:_0x47e85a,moved:_0x6823}=this['_footnoteRefsTracker']['getChanges'](_0x434263);for(const _0x5b1db8 of _0x28f3a4)this['_handleRemoveFootnoteReferenceById'](_0x4f1055,_0x5b1db8)&&(_0x315f3d=!0x0);for(const _0x4ad3f2 of _0x47e85a)this['_handleInsertedFootnoteReference'](_0x4f1055,_0x4ad3f2)&&(_0x315f3d=!0x0);for(const _0x4b05d0 of _0x6823)this['_handleMovedFootnoteReference'](_0x4f1055,_0x4b05d0)&&(_0x315f3d=!0x0);return _0x315f3d;}['_handleFootnotesDefinitionsObjectSync'](_0xe8a4c9){if(!this['_footnotesDefinitions'])return!0x1;let _0x4c272b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2a3d6b=[];for(const _0x5c9437 of this['_footnotesDefinitions']['getChildren']()){const _0x1ee5cc=_0x5c9437['getAttribute']('footnoteId');this['getFootnote'](_0x1ee5cc)||(_0x2a3d6b['unshift'](_0x5c9437),_0x4c272b=!0x0);}for(const _0x2fb2ce of _0x2a3d6b)_0xe8a4c9['remove'](_0x2fb2ce);}const _0x4b0d6b=new Set(),_0x380639=[];for(const _0x29d069 of this['_footnotesDefinitions']['getChildren']()){const _0x24723d=_0x29d069['getAttribute']('footnoteId');_0x4b0d6b['has'](_0x24723d)?(_0x380639['unshift'](_0x29d069),_0x4c272b=!0x0):_0x4b0d6b['add'](_0x24723d);}for(const _0x4f0fcc of _0x380639)_0xe8a4c9['remove'](_0x4f0fcc);return this['_footnotesDefinitions']['childCount']||(_0xe8a4c9['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4c272b=!0x0),_0x4c272b;}['_handleInsertedFootnoteReference'](_0x419e6c,_0x4c7573){if(this['_footnotes']['find'](_0x4a39e8=>_0x4a39e8['reference']===_0x4c7573))return!0x1;let _0x17e4f8=!0x1;const _0x18f100=_0x4c7573['getAttribute']('footnoteId'),_0x4904d0=this['_footnotes']['findIndex'](_0x160da5=>_0x160da5['id']===_0x18f100);-0x1!==_0x4904d0&&(_0x419e6c['remove'](this['_footnotes'][_0x4904d0]['reference']),this['_footnotes']['splice'](_0x4904d0,0x1),_0x17e4f8=!0x0);let _0x232edd=this['_footnotesDefinitions']?function(_0x36cda7,_0x23ce53){for(const _0x73d316 of _0x36cda7['getChildren']())if(_0x73d316['getAttribute']('footnoteId')===_0x23ce53)return _0x73d316;return null;}(this['_footnotesDefinitions'],_0x18f100):null;_0x232edd||(_0x232edd=_0x419e6c['createElement']('footnoteDefinition',{'footnoteId':_0x18f100}),this['_footnotesDefinitions']&&(_0x419e6c['insert'](_0x232edd,this['_footnotesDefinitions'],'end'),_0x17e4f8=!0x0));const _0x16bbd3={'id':_0x18f100,'reference':_0x4c7573,'definition':_0x232edd},_0x387213=T(this['editor']['model'],this['_footnotes'],_0x4c7573);this['_footnotes']['splice'](_0x387213,0x0,_0x16bbd3);let _0x533d38=_0x387213;return-0x1!==_0x4904d0&&(_0x533d38=Math['min'](_0x387213,_0x4904d0)),this['_updateFootnotesCounters'](_0x419e6c,_0x533d38)&&(_0x17e4f8=!0x0),_0x17e4f8;}['_handleRemoveFootnoteReferenceById'](_0x1a9a69,_0x450684){const _0x23255d=this['_footnotes']['findIndex'](_0x2ec79b=>_0x2ec79b['id']===_0x450684);if(-0x1===_0x23255d)return!0x1;let _0x1aee84=!0x1;const _0x35c13c=this['_footnotes'][_0x23255d];return'$graveyard'!==_0x35c13c['definition']['root']['rootName']&&(_0x1a9a69['remove'](_0x35c13c['definition']),_0x1aee84=!0x0),this['_footnotes']['splice'](_0x23255d,0x1),this['_updateFootnotesCounters'](_0x1a9a69,_0x23255d)&&(_0x1aee84=!0x0),_0x1aee84;}['_handleMovedFootnoteReference'](_0x277d77,_0x481f8e){const _0x4f47dc=_0x481f8e['getAttribute']('footnoteId'),_0x26b80d=this['_footnotes']['findIndex'](_0x11d05b=>_0x11d05b['id']===_0x4f47dc),_0xfeb511=this['_footnotes'][_0x26b80d];let _0x40e804=!0x1;_0xfeb511['reference']=_0x481f8e,this['_footnotes']['splice'](_0x26b80d,0x1);const _0x1b2ed5=T(this['editor']['model'],this['_footnotes'],_0x481f8e);return this['_footnotes']['splice'](_0x1b2ed5,0x0,_0xfeb511),this['_updateFootnotesCounters'](_0x277d77,Math['min'](_0x26b80d,_0x1b2ed5))&&(_0x40e804=!0x0),_0x40e804;}['_updateFootnoteRefCounter'](_0x7ca20c,_0x1b26a2){if(!this['_footnotesDefinitions'])return!0x1;const _0x1eb578=this['_footnotes'][_0x1b26a2];let _0xa08306;return _0xa08306=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1eb578,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1b26a2+0x1}):String(_0x1b26a2+0x1),_0x1eb578['reference']['getAttribute']('footnoteCounter')!=_0xa08306&&(_0x7ca20c['setAttribute']('footnoteCounter',_0xa08306,_0x1eb578['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x11bb8d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2ddb60,_0x4bbbed){if(_0x2ddb60['length']!==_0x4bbbed['length'])return!0x1;for(let _0x1b8fec=0x0;_0x1b8fec<_0x2ddb60['length'];_0x1b8fec++)if(_0x2ddb60[_0x1b8fec]!==_0x4bbbed[_0x1b8fec])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5bbf49=>_0x5bbf49['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5866af=>_0x5866af['getAttribute']('footnoteId'))))return!0x1;let _0x5f6b50=!0x1;for(let _0x2eee98=0x0;_0x2eee98<this['_footnotes']['length'];_0x2eee98++){const _0x14d83c=this['_footnotes'][_0x2eee98],_0x57def1=_0x11bb8d['createPositionBefore'](_0x14d83c['definition']),_0x49379c=_0x11bb8d['createPositionAt'](this['_footnotesDefinitions'],_0x2eee98);_0x57def1['isEqual'](_0x49379c)||(_0x11bb8d['move'](_0x11bb8d['createRangeOn'](_0x14d83c['definition']),_0x49379c),_0x5f6b50=!0x0);}return _0x5f6b50;}['_ensureFootnotesReferencesHaveProperOrder'](_0x367c08){if(!this['_footnotes']['length'])return!0x1;const {model:_0xccc5cf}=this['editor'];let _0x454386=!0x1;for(let _0x903a47=0x0;_0x903a47<this['_footnotes']['length']-0x1;_0x903a47++){const _0x31e3e2=this['_footnotes'][_0x903a47],_0x14a0ad=this['_footnotes'][_0x903a47+0x1],_0x2e7b49=_0xccc5cf['createPositionBefore'](_0x31e3e2['reference']),_0x5de2fb=_0xccc5cf['createPositionBefore'](_0x14a0ad['reference']);'after'===_0x2e7b49['compareWith'](_0x5de2fb)&&(this['_handleMovedFootnoteReference'](_0x367c08,_0x31e3e2['reference']),_0x903a47=-0x1,_0x454386=!0x0);}return _0x454386;}}function j(_0x5e90b6,_0x433165,_0x10af1b){if(_0x10af1b['childCount'])return!0x1;const _0xc219a1=_0x433165?'paragraph':'footnoteInlineContent';return _0x5e90b6['insert'](_0x5e90b6['createElement'](_0xc219a1),_0x10af1b),!0x0;}function T(_0x823e5a,_0x476478,_0x4fa14d){if(0x0===_0x476478['length'])return 0x0;const _0x53af1c=_0x823e5a['createPositionBefore'](_0x4fa14d);for(let _0xa4b580=0x0;_0xa4b580<_0x476478['length'];_0xa4b580++){const _0x814930=_0x476478[_0xa4b580],_0x1811ff=_0x823e5a['createPositionBefore'](_0x814930['reference']);if('before'===_0x53af1c['compareWith'](_0x1811ff))return _0xa4b580;}const _0x56c899=_0x4fa14d['root'];let _0x530df5=-0x1;for(let _0x5a8d9c=_0x476478['length']-0x1;_0x5a8d9c>=0x0;_0x5a8d9c--)if(_0x476478[_0x5a8d9c]['reference']['root']===_0x56c899){_0x530df5=_0x5a8d9c;break;}if(-0x1!==_0x530df5)return _0x530df5+0x1;const _0x5e4f83=_0x823e5a['document']['getRootNames'](),_0x185346=_0x5e4f83['indexOf'](_0x56c899['rootName']),_0x576618=_0x5e4f83[_0x185346+0x1];if(_0x576618){for(let _0x44c454=0x0;_0x44c454<_0x476478['length'];_0x44c454++)if(_0x476478[_0x44c454]['reference']['root']['rootName']===_0x576618)return _0x44c454;}return _0x476478['length'];}class V extends _0x21c5d1{['refresh'](){const _0x20dffd=this['editor']['model']['document']['selection'],_0x3c1636=this['_getPositionToInsertFootnote'](_0x20dffd);this['isEnabled']=!!_0x3c1636;}['execute'](_0x4cad3f){const {editor:_0x18732c}=this,{model:_0x3f4ff9}=_0x18732c,{selection:_0x3e9642}=_0x3f4ff9['document'],_0x59a48d=this['_getPositionToInsertFootnote'](_0x3e9642);if(!_0x59a48d)return;const _0x28bdc0=_0x18732c['plugins']['get']('FootnotesEditing'),_0x248704=_0x4cad3f?.['footnoteId']??_0x3c3a12();!function(_0x32f96b){return'string'==typeof _0x32f96b&&_0x32f96b['length']>0x0&&!/\s/['test'](_0x32f96b)&&!/^\d/['test'](_0x32f96b);}(_0x248704)?_0x26fd17('insert-footnote-command-executed-with-invalid-id'):(_0x3f4ff9['change'](_0x2cd205=>{const _0x38a019=_0x2cd205['createElement']('footnoteRef',{'footnoteId':_0x248704});_0x3f4ff9['insertObject'](_0x38a019,_0x59a48d,null);}),_0x28bdc0['_moveSelectionToFootnoteDefinition'](_0x248704));}['_getPositionToInsertFootnote'](_0x51b0f1){const {model:_0x5e4b51}=this['editor'],{schema:_0x12cf49}=_0x5e4b51,_0x3fb668=_0x51b0f1['getFirstRange']();for(const _0xf6954 of _0x3fb668['getItems']())if(_0x12cf49['isBlock'](_0xf6954)||_0x12cf49['isObject'](_0xf6954))return null;const _0x4acc0e=_0x3fb668['end'];return _0x12cf49['checkChild'](_0x4acc0e,'footnoteRef')?_0x4acc0e:null;}}class $ extends _0x5cfb3d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5621d9}=this;_0x5621d9['config']['define']('footnotes.multiBlock',!0x0),_0x5621d9['commands']['add']('insertFootnote',new V(_0x5621d9)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x251dd9){const _0x3556d8=_0x28cac0([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]),_0x42cfb5=0x47a28506,_0x388217=0x47a50cc6^_0x42cfb5,_0x2f423c=window[_0x28cac0([0x44,0x61,0x74,0x65])][_0x28cac0([0x6e,0x6f,0x77])](),_0x4b31a0=_0x251dd9[_0x28cac0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cb857=new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f3a4=>{_0x4b31a0[_0x28cac0([0x6f,0x6e,0x63,0x65])](_0x28cac0([0x72,0x65,0x61,0x64,0x79]),_0x20f3a4);}),_0x76710f={[_0x28cac0([0x6b,0x74,0x79])]:_0x28cac0([0x45,0x43]),[_0x28cac0([0x75,0x73,0x65])]:_0x28cac0([0x73,0x69,0x67]),[_0x28cac0([0x63,0x72,0x76])]:_0x28cac0([0x50,0x2d,0x32,0x35,0x36]),[_0x28cac0([0x78])]:_0x28cac0([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]),[_0x28cac0([0x79])]:_0x28cac0([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]),[_0x28cac0([0x61,0x6c,0x67])]:_0x28cac0([0x45,0x53,0x32,0x35,0x36])},_0x33cace=_0x4b31a0[_0x28cac0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28cac0([0x67,0x65,0x74])](_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59d2a6(){let _0x2323c5,_0x156973=null,_0x3181a4=null;try{if(_0x33cace==_0x28cac0([0x47,0x50,0x4c]))return _0x28cac0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2323c5=_0x4abc63(),!_0x2323c5)return _0x28cac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2323c5[_0x28cac0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3181a4=_0x3ef616(_0x2323c5[_0x28cac0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2323c5[_0x28cac0([0x6a,0x74,0x69])])),await _0x5c5cee()?_0x285848()?_0x523c5d()?_0x28cac0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1616f6()?(_0x2323c5[_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28cac0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x156973=_0x5c461e(_0x28cac0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49bbbd()):_0x28cac0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28cac0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28cac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28cac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x523c5d(){const _0x3c0031=[_0x28cac0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28cac0([0x74,0x72,0x69,0x61,0x6c])][_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2323c5[_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f423c/0x3e8:0xe10*_0x388217;return _0x2323c5[_0x28cac0([0x65,0x78,0x70])]<_0x3c0031;}function _0x285848(){const _0x1bbe27=_0x2323c5[_0x28cac0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1bbe27&&(!!_0x1bbe27[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28cac0([0x2a]))||!!_0x1bbe27[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28cac0([0x46,0x4f,0x4f])));}function _0x1616f6(){const _0x549d66=_0x2323c5[_0x28cac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x549d66||0x0==_0x549d66[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4eea5b}=new URL(window[_0x28cac0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x549d66[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea5b))return!0x0;const _0x4f1ab6=_0x4eea5b[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e]));return _0x549d66[_0x28cac0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41ffe1=>_0x41ffe1[_0x28cac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28cac0([0x2a])))[_0x28cac0([0x6d,0x61,0x70])](_0xa34c7=>_0xa34c7[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e])))[_0x28cac0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x220093=>_0x220093[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f1ab6[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28cac0([0x6d,0x61,0x70])](_0x4edde0=>Array(_0x4f1ab6[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4edde0[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28cac0([0x66,0x69,0x6c,0x6c])](_0x4edde0[0x0]===_0x28cac0([0x2a])?_0x28cac0([0x2a]):'')[_0x28cac0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4edde0))[_0x28cac0([0x73,0x6f,0x6d,0x65])](_0x221455=>_0x4f1ab6[_0x28cac0([0x65,0x76,0x65,0x72,0x79])]((_0x470bd6,_0x2aa8a7)=>_0x221455[_0x2aa8a7]===_0x470bd6||_0x221455[_0x2aa8a7]===_0x28cac0([0x2a])));}function _0x49bbbd(){return _0x156973&&_0x3181a4?new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfec61b,_0xb0bf0d)=>{_0x156973[_0x28cac0([0x74,0x68,0x65,0x6e])](_0xfec61b,_0xb0bf0d),_0x3181a4[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x5bf823=>{_0x5bf823!=_0x28cac0([0x56,0x61,0x6c,0x69,0x64])&&_0xfec61b(_0x5bf823);},_0xb0bf0d);}):_0x156973||_0x3181a4||_0x28cac0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ef616(_0x1d5412,_0x43eb0c){return new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3952b5=>{if(_0xfb8b98())return _0x3952b5(_0x28cac0([0x56,0x61,0x6c,0x69,0x64]));_0xd4c43a(),_0x4b31a0[_0x28cac0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28cac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14eb5d=!0x1;const _0x3881b1=_0x3c3a12();function _0x46aac8(_0x30d63c){return!!_0x30d63c&&(typeof _0x30d63c===_0x28cac0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30d63c===_0x28cac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30d63c[_0x28cac0([0x74,0x68,0x65,0x6e])]===_0x28cac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30d63c[_0x28cac0([0x63,0x61,0x74,0x63,0x68])]===_0x28cac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x425220(_0x559d9f){_0x274877(_0x559d9f)[_0x28cac0([0x74,0x68,0x65,0x6e])](_0xf21f0=>{if(!_0xf21f0||_0xf21f0[_0x28cac0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28cac0([0x6f,0x6b]))return _0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ced79(_0x23d3db(_0x3881b1+_0x43eb0c))!=_0xf21f0[_0x28cac0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28cac0([0x56,0x61,0x6c,0x69,0x64]);})[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x78f39=>(_0x817ec5(),_0x78f39),()=>{const _0x65d71c=_0x3aa3dd();return null==_0x65d71c?(_0x817ec5(),_0x28cac0([0x56,0x61,0x6c,0x69,0x64])):_0x28cac0(_0x2f423c-_0x65d71c>(0x63ae0106^_0x42cfb5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x3952b5)[_0x28cac0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3952b5(_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x336657=0x47946b86^_0x42cfb5;function _0x817ec5(){const _0x4eb95e=_0x28cac0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ced79(_0x23d3db(_0x1d5412)),_0x4bc523=_0x10b2f3(_0x3ced79(window[_0x28cac0([0x4d,0x61,0x74,0x68])][_0x28cac0([0x63,0x65,0x69,0x6c])](_0x2f423c/_0x336657)));window[_0x28cac0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28cac0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eb95e,_0x4bc523);}function _0x3aa3dd(){const _0x4e905e=_0x28cac0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ced79(_0x23d3db(_0x1d5412)),_0x27c3bb=window[_0x28cac0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28cac0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e905e);return _0x27c3bb?window[_0x28cac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10b2f3(_0x27c3bb),0x10)*_0x336657:null;}function _0x274877(_0x74ffa){return new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c8758,_0x23dea2)=>{_0x74ffa[_0x28cac0([0x74,0x68,0x65,0x6e])](_0x4c8758,_0x23dea2),window[_0x28cac0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23dea2,0x47a351c6^_0x42cfb5);});}}_0x4b31a0[_0x28cac0([0x6f,0x6e])](_0x28cac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4945ad,_0x27d745)=>{if(_0x27d745[0x0]!=_0x1d5412)return _0x3952b5(_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27d745[0x1]={..._0x27d745[0x1],[_0x28cac0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3881b1};},{[_0x28cac0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28cac0([0x68,0x69,0x67,0x68])}),_0x4b31a0[_0x28cac0([0x6f,0x6e])](_0x28cac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xeb0774=>{_0x46aac8(_0xeb0774[_0x28cac0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14eb5d=!0x0,_0x425220(_0xeb0774[_0x28cac0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28cac0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28cac0([0x6c,0x6f,0x77])}),_0x4cb857[_0x28cac0([0x74,0x68,0x65,0x6e])](()=>{_0x14eb5d||_0x3952b5(_0x28cac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfb8b98(){return _0x4b31a0[_0x28cac0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28cac0([0x76,0x69,0x65,0x77])][_0x28cac0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28cac0([0x61,0x75,0x74,0x6f]);}function _0xd4c43a(){_0x4b31a0[_0x28cac0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28cac0([0x76,0x69,0x65,0x77])][_0x28cac0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28cac0([0x61,0x75,0x74,0x6f]);}}function _0x5c461e(_0x4878c4){const _0x56671f=[new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329e99=>setTimeout(_0x329e99,0x47abbbca^_0x42cfb5)),_0x4cb857[_0x28cac0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba00b=>{let _0x16c4e7=0x0;_0x4b31a0[_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x28cac0([0x6f,0x6e])](_0x28cac0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x276d6e,_0x1a1e94)=>{_0x1a1e94[0x0][_0x28cac0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16c4e7++,_0x16c4e7==(0x47a280ee^_0x42cfb5)&&(_0x4ba00b(),_0x276d6e[_0x28cac0([0x6f,0x66,0x66])]());});}))];return window[_0x28cac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28cac0([0x72,0x61,0x63,0x65])](_0x56671f)[_0x28cac0([0x74,0x68,0x65,0x6e])](()=>_0x4878c4);}async function _0x4ebd90(){await _0x4cb857,_0x4b31a0[_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x28cac0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4797d7,_0x4b31a0[_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x28cac0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4797d7,_0x4b31a0[_0x28cac0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28cac0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e2ff2(_0x359112){const _0x5bd7f5=_0x25fbb3();_0x4b31a0[_0x5bd7f5]=_0x28cac0([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x359112,_0x359112!=_0x28cac0([0x56,0x61,0x6c,0x69,0x64])&&_0x4ebd90();}function _0x25fbb3(){const _0x3e253e=window[_0x28cac0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28cac0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28cac0([0x6e,0x6f,0x77])]())[_0x28cac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28cac0([0x2e]),'');let _0x1776e4=_0x28cac0([0x75]);for(let _0x5a83d8=0x0;_0x5a83d8<_0x3e253e[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a83d8+=0x2){let _0x2fa6ae=window[_0x28cac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e253e[_0x28cac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a83d8,_0x5a83d8+0x2));_0x2fa6ae>=_0x3556d8[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fa6ae-=_0x3556d8[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1776e4+=_0x3556d8[_0x2fa6ae];}return _0x1776e4;}function _0x4abc63(){const _0x5d7ce8=_0x33cace[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e]));if(0x3!=_0x5d7ce8[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cc223(_0x5d7ce8[0x1]);function _0x5cc223(_0x49d7c4){const _0x9c0f78=_0x91d84f(_0x49d7c4);return _0x9c0f78&&_0x34e430()?_0x9c0f78:null;function _0x34e430(){const _0x56bdac=_0x9c0f78[_0x28cac0([0x6a,0x74,0x69])],_0x305856=window[_0x28cac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56bdac[_0x28cac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56bdac[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x248c75={..._0x9c0f78,[_0x28cac0([0x6a,0x74,0x69])]:_0x56bdac[_0x28cac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56bdac[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x248c75[_0x28cac0([0x76,0x63])],_0x23d3db(_0x248c75)==_0x305856;}}}async function _0x5c5cee(){let _0x51e57f=!0x0;try{const _0x4fccf7=_0x33cace[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])](_0x28cac0([0x2e])),[_0x5a116d,_0x5523f2,_0x3cdcc9]=_0x4fccf7;return _0x509c12(_0x5a116d),await _0xa9a16a(_0x5a116d,_0x5523f2,_0x3cdcc9),_0x51e57f;}catch{return!0x1;}function _0x509c12(_0x37086f){const _0x1e2884=_0x91d84f(_0x37086f);_0x1e2884&&_0x1e2884[_0x28cac0([0x61,0x6c,0x67])]==_0x28cac0([0x45,0x53,0x32,0x35,0x36])||(_0x51e57f=!0x1);}async function _0xa9a16a(_0x165a34,_0x24172b,_0x4a078d){const _0x10b50a=window[_0x28cac0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28cac0([0x66,0x72,0x6f,0x6d])](_0x2def98(_0x4a078d),_0x3268d7=>_0x3268d7[_0x28cac0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50770d=new window[(_0x28cac0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28cac0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x165a34+_0x28cac0([0x2e])+_0x24172b),_0x246c96=window[_0x28cac0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28cac0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x246c96)return;const _0x513212=await _0x246c96[_0x28cac0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28cac0([0x6a,0x77,0x6b]),_0x76710f,{[_0x28cac0([0x6e,0x61,0x6d,0x65])]:_0x28cac0([0x45,0x43,0x44,0x53,0x41]),[_0x28cac0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28cac0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28cac0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x246c96[_0x28cac0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28cac0([0x6e,0x61,0x6d,0x65])]:_0x28cac0([0x45,0x43,0x44,0x53,0x41]),[_0x28cac0([0x68,0x61,0x73,0x68])]:{[_0x28cac0([0x6e,0x61,0x6d,0x65])]:_0x28cac0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x513212,_0x10b50a,_0x50770d)||(_0x51e57f=!0x1);}}function _0x91d84f(_0x4784cb){return _0x4784cb[_0x28cac0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28cac0([0x65,0x79]))?JSON[_0x28cac0([0x70,0x61,0x72,0x73,0x65])](_0x2def98(_0x4784cb)):null;}function _0x2def98(_0x37d1be){return window[_0x28cac0([0x61,0x74,0x6f,0x62])](_0x37d1be[_0x28cac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28cac0([0x2b]))[_0x28cac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28cac0([0x2f])));}function _0x23d3db(_0x3054d7){let _0x99b923=0x1505;function _0x286411(_0x816397){for(let _0xff7266=0x0;_0xff7266<_0x816397[_0x28cac0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xff7266++){const _0x5590d9=_0x816397[_0x28cac0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xff7266);_0x99b923=(_0x99b923<<0x5)+_0x99b923+_0x5590d9,_0x99b923&=_0x99b923;}}function _0x35e14e(_0x1a7902){Array[_0x28cac0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a7902)?_0x1a7902[_0x28cac0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35e14e):_0x1a7902&&typeof _0x1a7902==_0x28cac0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28cac0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a7902)[_0x28cac0([0x73,0x6f,0x72,0x74])]()[_0x28cac0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cf043,_0x774278])=>{_0x286411(_0x5cf043),_0x35e14e(_0x774278);}):_0x286411(window[_0x28cac0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a7902));}return _0x35e14e(_0x3054d7),_0x99b923>>>0x0;}function _0x3ced79(_0xe18dae){return _0xe18dae[_0x28cac0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28cac0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28cac0([0x30]));}function _0x10b2f3(_0x16f300){return _0x16f300[_0x28cac0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28cac0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28cac0([0x6a,0x6f,0x69,0x6e])]('');}function _0x4797d7(){}function _0x28cac0(_0xce03a4){return _0xce03a4['map'](_0x52583d=>String['fromCharCode'](_0x52583d))['join']('');}_0x4e2ff2(await _0x59d2a6());}(this);}['_moveSelectionToFootnoteDefinition'](_0x389e78){const {plugins:_0x4316be,editing:_0x34dac0,model:_0x2d7e43}=this['editor'],_0x747dd3=_0x4316be['get'](K)['getFootnote'](_0x389e78);return!!_0x747dd3&&(_0x2d7e43['change'](_0xdd0195=>{_0xdd0195['setSelection'](_0xdd0195['createPositionAt'](_0x747dd3['definition'],'end'));}),_0x34dac0['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x21dd70){const {plugins:_0x1ff131,editing:_0x13795e,model:_0xa535aa}=this['editor'],_0x8cf71b=_0x1ff131['get'](K)['getFootnote'](_0x21dd70);return!!_0x8cf71b&&(_0xa535aa['change'](_0x219b02=>{_0x219b02['setSelection'](_0x8cf71b['reference'],'on');}),_0x13795e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5f3886}=this['editor']['model'],_0x427b87=this['editor']['config']['get']('footnotes.multiBlock');_0x5f3886['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5f3886['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5f3886['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x427b87?_0x5f3886['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5f3886['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5f3886['addChildCheck'](_0x1109b9=>{for(const _0x56fab4 of _0x1109b9)if('footnoteDefinition'===_0x56fab4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1c4df0}=this,{conversion:_0x4bb353,editing:_0xbf408}=_0x1c4df0,{t:t}=_0x1c4df0['locale'];_0x4bb353['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xceafc8,{writer:_0x1cab28,consumable:_0x47daa4})=>{const _0x4426fa=_0xceafc8['getChild'](0x0);if(!_0x4426fa||!_0x4426fa['is']('element','a'))return null;const _0x89d1f2=_0x4426fa['getAttribute']('href')||'';if(!_0x89d1f2['startsWith']('#'))return null;const _0x119131=_0x89d1f2['replace'](/^#/,'');if(!_0x119131)return null;_0x47daa4['consume'](_0x4426fa,{'name':!0x0,'attributes':['href']});for(const {item:_0x248842}of _0xbf408['view']['createRangeIn'](_0x4426fa))_0x248842['is']('$textProxy')?_0x47daa4['consume'](_0x248842['textNode'],{'name':!0x0}):_0x248842['is']('element')&&_0x47daa4['consume'](_0x248842,{'name':!0x0});return _0x1cab28['createElement']('footnoteRef',{'footnoteId':_0x119131});}}),_0x4bb353['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x46e8b,{writer:_0x38968a})=>z(_0x46e8b,_0x38968a)}),_0x4bb353['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x161684,{writer:_0xb5fe34})=>{const _0x363f47=_0x161684['getAttribute']('footnoteCounter');return _0x2e193e(z(_0x161684,_0xb5fe34),_0xb5fe34,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x363f47)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2b0a70}=this,{t:t}=_0x2b0a70['locale'],{conversion:_0x327289}=_0x2b0a70;_0x327289['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x327289['for']('upcast')['add'](_0xd6888a=>{_0xd6888a['on']('element:ol',(_0x379e8a,_0x50a6b8,_0x4cf1b1)=>{const _0x29a283=_0x50a6b8['viewItem'];if(!_0x29a283['hasClass']('footnotes-list')||!_0x50a6b8['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4cf1b1['consumable']['consume'](_0x29a283,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x258352,modelCursor:_0x5696e1}=_0x4cf1b1['convertChildren'](_0x50a6b8['viewItem'],_0x50a6b8['modelCursor']);_0x50a6b8['modelRange']=_0x258352,_0x50a6b8['modelCursor']=_0x5696e1;}),_0xd6888a['on']('element:hr',(_0x158152,_0x582051,_0x3a04d6)=>{const _0x21c9b3=_0x582051['viewItem'];_0x21c9b3['hasClass']('footnotes-divider')&&_0x582051['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3a04d6['consumable']['consume'](_0x21c9b3,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x327289['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22f1ac,{writer:_0x1eed2b})=>H(_0x1eed2b)}),_0x327289['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x800ef7,{writer:_0x2c9999})=>{const _0x7c0018=H(_0x2c9999,{'data-footnotes-list-label':t('Footnotes')}),_0x36927e=_0x2e193e(_0x7c0018,_0x2c9999,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2c9999['setCustomProperty']('footnotesDefinitions',!0x0,_0x36927e),_0x36927e;}});}['_defineDefinitionConverters'](){const {editor:_0x1a915f}=this,{conversion:_0x5a3ff5,locale:_0x1789a0}=_0x1a915f,_0xe58e4=_0x1a915f['config']['get']('footnotes.multiBlock');_0x5a3ff5['for']('upcast')['add'](_0xa3d5af=>{_0xa3d5af['on']('element:li',(_0x2aa791,_0x52e328,_0x24bdd9)=>{const _0xfd2a34=_0x52e328['viewItem'];if(!_0xfd2a34['hasClass']('footnote-definition')||!_0xfd2a34['getAttribute']('id'))return;const _0x2a9fb7=_0xfd2a34['parent'];if(!_0x2a9fb7['is']('element','ol')||!_0x2a9fb7['hasClass']('footnotes-list'))return;if(!_0x24bdd9['consumable']['test'](_0xfd2a34,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2d4212=_0x24bdd9['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xfd2a34['getAttribute']('id')});if(!_0x24bdd9['safeInsert'](_0x2d4212,_0x52e328['modelCursor']))return;_0x24bdd9['consumable']['consume'](_0xfd2a34,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4396e8=Array['from'](_0xfd2a34['getChildren']())['find'](_0x5c664e=>_0x5c664e['is']('element')&&_0x5c664e['hasClass']('footnote-content'));for(const _0x382199 of _0xfd2a34['getChildren']())_0x382199['is']('element')&&(_0x24bdd9['consumable']['consume'](_0x382199,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x24bdd9['consumable']['consume'](_0x382199,{'name':!0x0,'classes':'footnote-content'}));if(_0x4396e8){if(_0xe58e4)_0x24bdd9['convertChildren'](_0x4396e8,_0x2d4212);else{const _0x33f6a2=_0x24bdd9['writer']['createElement']('footnoteInlineContent');_0x24bdd9['writer']['insert'](_0x33f6a2,_0x2d4212),_0x24bdd9['convertChildren'](_0x4396e8,_0x33f6a2);}}_0x24bdd9['updateConversionResult'](_0x2d4212,_0x52e328);});}),_0x5a3ff5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2e1578,{writer:_0x2657c4})=>X(_0x2e1578,_0x2657c4,_0x1789a0,{'dataPipeline':!0x0})}),_0x5a3ff5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xa30990,{writer:_0x14f0fd})=>X(_0xa30990,_0x14f0fd,_0x1789a0)});}['_defineBogusParagraphConverters'](){const {editor:_0x38484e}=this,{conversion:_0x720431}=_0x38484e;_0x38484e['config']['get']('footnotes.multiBlock')?(_0x720431['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x720431['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x38484e['model']['document'],'change:data',()=>{!function(_0x50af36,_0x37cfc0){const _0x2daa3f=_0x50af36['document']['differ'],_0x3d5213=new Set();for(const _0x19f9cc of _0x2daa3f['getChanges']()){const _0x47c96b='attribute'==_0x19f9cc['type']?_0x19f9cc['range']['start']['parent']:_0x19f9cc['position']['parent'];_0x47c96b['is']('element','footnoteDefinition')&&_0x3d5213['add'](_0x47c96b);}for(const _0x343e09 of _0x3d5213['values']()){const _0x19da3b=Array['from'](_0x343e09['getChildren']())['filter'](_0x227808=>U(_0x227808,_0x37cfc0['mapper']));for(const _0x20dcef of _0x19da3b)_0x37cfc0['reconvertItem'](_0x20dcef);}}(_0x38484e['model'],_0x38484e['editing']);})):(_0x720431['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x720431['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x365038,{writer:_0x2fd729})=>{const _0x156257=_0x2fd729['createContainerElement']('span');return _0x2fd729['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x156257),_0x156257;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5eb4be}=this,{editing:_0x569783,t:t}=_0x5eb4be,_0x4d01b1=_0x5eb4be['model']['document']['selection'];_0x5eb4be['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5eb4be['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x569783['view']['document'],'enter',(_0x123277,_0x5aa6f4)=>{const _0xc634ff=function(_0x40aca3){const _0x893bfb=_0x40aca3['getSelectedElement']();if(_0x893bfb?.['is']('element','footnoteRef'))return _0x893bfb;return null;}(_0x4d01b1);if(_0xc634ff){const _0x198e55=_0xc634ff['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x198e55),_0x5aa6f4['preventDefault'](),_0x123277['stop']();}},{'context':_0x5df730});}['_defineClickHandlers'](){const {editor:_0x2c8683}=this,{editing:_0x4aae4f}=_0x2c8683;_0x2c8683['editing']['view']['addObserver'](_0x418968),_0x2c8683['editing']['view']['addObserver'](_0x1a169e);let _0x3eaaec=!0x1;this['listenTo'](_0x4aae4f['view']['document'],'pointerdown',(_0x9d2f1a,_0x322f91)=>{const {target:_0x1c3ae8}=_0x322f91,_0x1267a0=_0x4aae4f['view']['document']['selection'];_0x3eaaec=!!(_0x1c3ae8?.['is']('element','a')&&_0x1c3ae8['parent']?.['is']('element','sup')&&_0x1c3ae8['parent']['hasClass']('footnote'))&&_0x1267a0['getSelectedElement']()===_0x1c3ae8['parent'];},{'priority':'high'}),this['listenTo'](_0x4aae4f['view']['document'],'click',(_0x14db74,_0x364878)=>{const {target:_0x440d79}=_0x364878;if(!_0x440d79?.['is']('element','a'))return;if(_0x440d79['parent']?.['is']('element','sup')&&_0x440d79['parent']['hasClass']('footnote')&&!_0x3eaaec)return void _0x364878['preventDefault']();let _0x4ea585=_0x440d79['getAttribute']('href');if(!_0x4ea585?.['startsWith']('#'))return;_0x4ea585=_0x4ea585['slice'](0x1);let _0x4c24e4=!0x1;(_0x4ea585['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4ea585['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4ea585))&&(_0x4c24e4=!0x0),_0x4c24e4&&(_0x364878['preventDefault'](),_0x14db74['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x1d3701}={}){return(_0x4d9275,{writer:_0x5c7ac7})=>{if(!M(_0x4d9275))return null;if(!_0x1d3701)return _0x5c7ac7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x57310d=_0x5c7ac7['createContainerElement']('p');return _0x5c7ac7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x57310d),_0x57310d;};}function M(_0x4c58df){const {parent:_0x3b3996}=_0x4c58df;if(!_0x3b3996?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3b3996['childCount'])return!0x1;for(const _0xc7fbf0 of _0x4c58df['getAttributeKeys']())if(!_0xc7fbf0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xc7fbf0)return!0x1;return!0x0;}function U(_0x1f8cf6,_0x1109ec){if(!_0x1f8cf6['is']('element','paragraph'))return!0x1;const _0x1f4fed=_0x1109ec['toViewElement'](_0x1f8cf6);return!!_0x1f4fed&&M(_0x1f8cf6)!==_0x1f4fed['is']('element','span');}function q(_0x4b295b){return _0x5df730(_0x4b295b)&&_0x4b295b['is']('containerElement')&&!!_0x4b295b['getCustomProperty']('footnotesDefinitions');}function H(_0x4e61a1,_0x3299e7={}){const _0x1b66ec=_0x4e61a1['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x161d3c=_0x4e61a1['createContainerElement']('ol',{'class':'footnotes-list'},_0x4e61a1['createSlot']());return _0x4e61a1['createContainerElement']('div',{'class':'footnotes',..._0x3299e7},[_0x1b66ec,_0x161d3c]);}function z(_0x27307d,_0x2c8bbe){const _0x2d4c9a=_0x27307d['getAttribute']('footnoteId'),_0x11d8cf=_0x27307d['getAttribute']('footnoteCounter'),_0xf8fc65=_0x2c8bbe['createUIElement']('a',{'href':'#'+_0x2d4c9a},function(_0x2a998c){const _0x52629d=this['toDomElement'](_0x2a998c);return _0x52629d['textContent']=_0x11d8cf,_0x52629d;}),_0x38e7ab=_0x2c8bbe['createContainerElement']('sup',{'id':'ref-'+_0x2d4c9a,'class':'footnote'},[_0xf8fc65]);return _0x38e7ab['getFillerOffset']=()=>null,_0x38e7ab;}function X(_0x46cccb,_0x14e634,_0x103023,{dataPipeline:_0x253c9b}={}){const {t:t}=_0x103023,_0x5bc410=_0x46cccb['getAttribute']('footnoteId'),_0x2a7041=_0x14e634['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5bc410},function(_0x2bba57){const _0x59370d=this['toDomElement'](_0x2bba57);return _0x59370d['innerText']='^',_0x59370d;}),_0x52d00a=_0x253c9b?_0x14e634['createContainerElement']('div',{'class':'footnote-content'}):_0x3d3309(_0x14e634['createEditableElement']('div',{'class':'footnote-content'}),_0x14e634,{'label':t('Footnote\x20content.')});return _0x14e634['insert'](_0x14e634['createPositionAt'](_0x52d00a,0x0),_0x14e634['createSlot']()),_0x14e634['createContainerElement']('li',{'class':'footnote-definition','id':_0x5bc410},[_0x2a7041,_0x52d00a]);}class J extends _0x5cfb3d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x2d4c41];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2dbf15}=this,{plugins:_0x4d9687,model:_0x5dcc50}=_0x2dbf15,_0x164c67=_0x4d9687['get'](_0x2d4c41),_0x2e7910=_0x4d9687['get'](K);this['listenTo'](_0x164c67,'outputTransformation',(_0x849405,_0x421a67)=>{const _0x183c08=Q(_0x5dcc50['createRangeIn'](_0x421a67['content']));if(!_0x183c08['length'])return;const _0x3b44ee=_0x2e7910['getFootnotes'](),_0x568203=_0x183c08['reduce']((_0x32ed7b,_0x3c7ea6)=>{const _0x50ef8e=_0x3b44ee['find'](_0x3b456b=>_0x3b456b['id']===_0x3c7ea6);if(_0x50ef8e){const _0x236a67=_0x2dbf15['data']['toView'](_0x50ef8e['definition'],{'isClipboardPipeline':!0x0}),_0x4c7955=_0x2dbf15['data']['htmlProcessor']['toData'](_0x236a67);_0x32ed7b[_0x50ef8e['id']]=_0x4c7955;}return _0x32ed7b;},Object['create'](null));_0x421a67['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x568203));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x390d46}=this,{model:_0x4d01b6,plugins:_0x3fecfd}=_0x390d46,{view:_0x488dc2}=_0x390d46['editing'],_0x1ecb7b=_0x3fecfd['get'](_0x2d4c41),_0x3e7d77=_0x3fecfd['get'](K),_0x15a36a=_0x390d46['config']['get']('footnotes.multiBlock');let _0x5a9913=null;this['listenTo'](_0x488dc2['document'],'clipboardInput',(_0x3d95e2,_0x2b3f3e)=>{const _0xa8c0eb=_0x2b3f3e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5a9913=_0xa8c0eb?JSON['parse'](_0xa8c0eb):null;}),this['listenTo'](_0x1ecb7b,'contentInsertion',(_0x2d387e,_0x3e5ef7)=>{const _0x75c5bb=_0x3e5ef7['sourceEditorId']===this['editor']['id'];_0x75c5bb&&'drop'===_0x3e5ef7['method']||_0x4d01b6['change'](_0x15bec3=>{let _0x3ba8a9=_0x3e7d77['getFootnotesDefinitionsObjectElement']();const _0x452cad=!!_0x3ba8a9&&Array['from'](_0x4d01b6['document']['selection']['getSelectedBlocks']())['includes'](_0x3ba8a9);if(!_0x5a9913&&function(_0x4397bd){for(const {item:_0x38148d}of _0x4397bd)if(_0x38148d['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4d01b6['createRangeIn'](_0x3e5ef7['content']))&&(_0x5a9913=function(_0x307ab0,_0x2fdc91){const _0x4b7730=G(_0x307ab0,_0x2fdc91);if(!_0x4b7730)return null;const _0x20dfd0=Object['create'](null);for(const _0x501e70 of _0x4b7730['getChildren']())_0x501e70['is']('element','footnoteDefinition')&&_0x501e70['hasAttribute']('footnoteId')&&(_0x20dfd0[_0x501e70['getAttribute']('footnoteId')]=_0x307ab0['cloneElement'](_0x501e70,!0x0));return Object['keys'](_0x20dfd0)['length']?_0x20dfd0:null;}(_0x15bec3,_0x3e5ef7['content'])),(_0x3ba8a9&&!_0x452cad||!_0x3ba8a9&&!_0x5a9913)&&function(_0x34dd50,_0x14c2e1){const _0x341f0a=[];for(const {item:_0xeb3e85}of _0x34dd50['createRangeIn'](_0x14c2e1))_0xeb3e85['is']('element','footnotesDefinitions')&&_0x341f0a['push'](_0xeb3e85);for(const _0x43616e of _0x341f0a)_0x34dd50['remove'](_0x43616e);}(_0x15bec3,_0x3e5ef7['content']),!_0x5a9913)return;const {selection:_0x511fc6}=_0x4d01b6['document'],_0x120791=_0x511fc6['getFirstRange']()['root'];_0x3ba8a9&&!_0x452cad||(_0x3ba8a9=G(_0x15bec3,_0x3e5ef7['content']),_0x3ba8a9||=_0x3e7d77['_insertEmptyFootnotesDefinitionsContainer'](_0x15bec3,_0x120791));const _0x54f6a9=Array['from'](_0x511fc6['getRanges']())['flatMap'](Q),_0x51db88=function(_0x52335e,_0x15e6af,_0x3835f1){const _0x1cccd6=Object['create'](null);for(const {item:_0x3e0dc0}of _0x52335e['createRangeIn'](_0x15e6af))if(_0x3e0dc0['is']('element','footnoteRef')){const _0x67fe14=_0x3e0dc0['getAttribute']('footnoteId');if(!_0x3835f1(_0x67fe14))continue;_0x1cccd6[_0x67fe14]||(_0x1cccd6[_0x67fe14]=_0x3c3a12()),_0x52335e['setAttribute']('footnoteId',_0x1cccd6[_0x67fe14],_0x3e0dc0);}return _0x1cccd6;}(_0x15bec3,_0x3e5ef7['content'],_0x28ceed=>{if(!_0x75c5bb)return!0x0;return!!_0x3e7d77['getFootnote'](_0x28ceed)&&!_0x54f6a9['includes'](_0x28ceed);});for(const [_0x3e2ecf,_0xca2598]of Object['entries'](_0x5a9913)){const _0x122399=_0x51db88[_0x3e2ecf]||_0x3e2ecf;let _0x3f555;if('string'!=typeof _0xca2598)_0x3f555=_0xca2598,_0x122399!==_0x3e2ecf&&_0x15bec3['setAttribute']('footnoteId',_0x122399,_0x3f555);else{_0x3f555=_0x15bec3['createElement']('footnoteDefinition',{'footnoteId':_0x122399});const _0x51a92b=_0x390d46['data']['htmlProcessor']['toView'](_0xca2598);let _0x21a26e;if(_0x15a36a)_0x21a26e=_0x390d46['data']['toModel'](_0x51a92b,_0x3f555);else{_0x21a26e=_0x15bec3['createElement']('footnoteInlineContent');const _0x5361e0=_0x390d46['data']['toModel'](_0x51a92b,_0x21a26e);_0x15bec3['insert'](_0x5361e0,_0x21a26e);}_0x15bec3['append'](_0x21a26e,_0x3f555);}_0x15bec3['insert'](_0x3f555,_0x3ba8a9,'end');}_0x5a9913=null;});});}}function G(_0x596016,_0x4d2165){for(const {item:_0x5b92eb}of _0x596016['createRangeIn'](_0x4d2165))if(_0x5b92eb['is']('element','footnotesDefinitions'))return _0x5b92eb;return null;}function Q(_0x2a9d7f){const _0x41106f=new Set();for(const {item:_0x2d79af}of _0x2a9d7f)_0x2d79af['is']('element','footnoteRef')&&_0x41106f['add'](_0x2d79af['getAttribute']('footnoteId'));return Array['from'](_0x41106f);}class W extends _0x5cfb3d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x57e6d6}=this,{componentFactory:_0x105387}=_0x57e6d6['ui'];_0x105387['add']('insertFootnote',Y(_0x57e6d6,_0x3dc254)),_0x105387['add']('menuBar:insertFootnote',Y(_0x57e6d6,_0x4453c5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x12bc18=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53718a;for(const _0x4aa4ee in _0x12bc18){const _0x5aa789=_0x4aa4ee,_0x1c3ad5=_0x12bc18[_0x5aa789];if('footnotesLicenseKeyValid'==_0x1c3ad5||'footnotesLicenseKeyInvalid'==_0x1c3ad5||'footnotesLicenseKeyExpired'==_0x1c3ad5||'footnotesLicenseKeyDomainLimit'==_0x1c3ad5||'footnotesLicenseKeyNotAllowed'==_0x1c3ad5||'footnotesLicenseKeyEvaluationLimit'==_0x1c3ad5||'footnotesLicenseKeyUsageLimit'==_0x1c3ad5){delete _0x12bc18[_0x5aa789],_0x53718a=_0x1c3ad5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x53718a&&_0x12bc18['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x53718a&&_0x12bc18['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x53718a&&_0x12bc18['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x53718a&&_0x12bc18['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x53718a&&_0x12bc18['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x53718a&&_0x12bc18['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x1b712d,_0x22b713){const _0x27f8b5=_0x1b712d['commands']['get']('insertFootnote');return _0x8ed6fd=>{const {t:t}=_0x8ed6fd,_0x45e21f=new _0x22b713(_0x8ed6fd),_0x29ce73=_0x45e21f instanceof _0x4453c5;return _0x45e21f['bind']('isEnabled')['to'](_0x27f8b5,'isEnabled'),_0x45e21f['set']({'label':t(_0x29ce73?'Footnote':'Insert\x20footnote'),'icon':_0x2968f4,'tooltip':!0x0}),_0x45e21f['on']('execute',()=>{_0x27f8b5['execute'](),_0x1b712d['editing']['view']['focus']();}),_0x45e21f;};}class Z extends _0x5cfb3d{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[$,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];class nt extends _0x21c5d1{['refresh'](){const {editor:_0x457626}=this,_0x3d6fe4=_0x457626['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d6fe4,this['value']=_0x3d6fe4?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x39f555}){const {editor:_0x58aead}=this,_0x5688eb=_0x58aead['plugins']['get'](K),_0x379a2f=_0x5688eb['getFootnotesDefinitionsObjectElement']();_0x379a2f&&ot['includes'](_0x39f555)&&_0x58aead['model']['change'](_0x4a89ae=>{_0x4a89ae['setAttribute']('footnotesListStyle',_0x39f555,_0x379a2f),_0x5688eb['_updateFootnotesCounters'](_0x4a89ae);});}}class it extends _0x21c5d1{['refresh'](){const {editor:_0x35c1b9}=this,_0x3235cd=_0x35c1b9['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3235cd,this['value']=_0x3235cd?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4a6623}){const {editor:_0x514356}=this,_0x81aeb7=_0x514356['plugins']['get'](K),_0x28939f=_0x81aeb7['getFootnotesDefinitionsObjectElement']();_0x28939f&&Number['isInteger'](_0x4a6623)&&_0x514356['model']['change'](_0x47e8c9=>{_0x47e8c9['setAttribute']('footnotesListStart',_0x4a6623,_0x28939f),_0x81aeb7['_updateFootnotesCounters'](_0x47e8c9);});}}function st(_0x3911de,_0x42353c){let _0x35c62f='',_0x564c0b=_0x3911de;for(;_0x564c0b>0x0;){const _0x1a8731=(_0x564c0b-0x1)%0x1a;_0x35c62f=String['fromCharCode'](0x61+_0x1a8731)+_0x35c62f,_0x564c0b=Math['floor']((_0x564c0b-0x1)/0x1a);}return _0x42353c?_0x35c62f['toUpperCase']():_0x35c62f;}const rt=[{'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 lt(_0x4c4142,_0x41b091){let _0x277896='',_0x4ad47e=_0x4c4142;for(const {value:_0x294b8a,numeral:_0x5abbc3}of rt)for(;_0x4ad47e>=_0x294b8a;)_0x277896+=_0x5abbc3,_0x4ad47e-=_0x294b8a;return _0x41b091?_0x277896:_0x277896['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x5cfb3d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x412755}=this;_0x412755['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x412755['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x412755['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x412755['commands']['add']('footnotesStyle',new nt(_0x412755)),_0x412755['commands']['add']('footnotesStart',new it(_0x412755)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3c0ebc}=this,{schema:_0x2fae4c}=_0x3c0ebc['model'];_0x2fae4c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x56a018}=this,{conversion:_0x546f00,model:_0x4d3dc3}=_0x56a018,{schema:_0x36170d}=_0x4d3dc3;_0x546f00['for']('upcast')['add'](_0x433dad=>{_0x433dad['on']('element:ol',(_0x4074ee,_0x26ac73,_0x387f86)=>{const _0x125be5=_0x26ac73['viewItem'],_0xbdfc63=_0x26ac73['modelCursor']?.['parent'];_0x125be5['hasClass']('footnotes-list')&&_0xbdfc63?.['is']('element','footnotesDefinitions')&&(function(_0x3d56b7,_0x464305,_0x4a20fb,_0x5999cb){if(!_0x5999cb['checkAttribute'](_0x464305,'footnotesListStart'))return;let _0x2d6d85=0x1;const _0x3cf543=_0x4a20fb['consumable']['consume'](_0x3d56b7,{'attributes':'start'});if(_0x3cf543){const _0x56856=Number['parseInt'](_0x3d56b7['getAttribute']('start'),0xa);Number['isNaN'](_0x56856)||(_0x2d6d85=_0x56856);}!_0x3cf543&&_0x464305['hasAttribute']('footnotesListStart')||_0x4a20fb['writer']['setAttribute']('footnotesListStart',_0x2d6d85,_0x464305);}(_0x125be5,_0xbdfc63,_0x387f86,_0x36170d),function(_0x140471,_0x4e2032,_0x49dd07,_0x1e6cea){if(!_0x1e6cea['checkAttribute'](_0x4e2032,'footnotesListStyle'))return;let _0xf2a91e='decimal',_0x2366c3=!0x1;if(_0x49dd07['consumable']['consume'](_0x140471,{'attributes':'type'})){const _0x529fb3={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x140471['getAttribute']('type')];_0x529fb3&&(_0xf2a91e=_0x529fb3),_0x2366c3=!0x0;}if(_0x49dd07['consumable']['consume'](_0x140471,{'styles':'list-style-type'})){const _0x3e060d=ct(_0x140471['getStyle']('list-style-type'));_0x3e060d&&(_0xf2a91e=_0x3e060d),_0x2366c3=!0x0;}!_0x2366c3&&_0x4e2032['hasAttribute']('footnotesListStyle')||_0x49dd07['writer']['setAttribute']('footnotesListStyle',_0xf2a91e,_0x4e2032);}(_0x125be5,_0xbdfc63,_0x387f86,_0x36170d));});}),_0x546f00['for']('downcast')['add'](_0x284a80=>{_0x284a80['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5c988a,_0xa43433,_0x3b8f74)=>{if(!_0x3b8f74['consumable']['consume'](_0xa43433['item'],_0x5c988a['name']))return;const _0x4f0c45=ut(_0xa43433['item'],_0x3b8f74['mapper']),{attributeNewValue:_0x5d9965}=_0xa43433;null==_0x5d9965||0x1===_0x5d9965?_0x3b8f74['writer']['removeAttribute']('start',_0x4f0c45):_0x3b8f74['writer']['setAttribute']('start',String(_0x5d9965),_0x4f0c45);}),_0x284a80['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1731bc,_0x1ba393,_0x295b99)=>{if(!_0x295b99['consumable']['consume'](_0x1ba393['item'],_0x1731bc['name']))return;const _0x227e10=ut(_0x1ba393['item'],_0x295b99['mapper']),{attributeNewValue:_0x3cee3a}=_0x1ba393;_0x3cee3a&&'decimal'!==_0x3cee3a?_0x295b99['writer']['setStyle']('list-style-type',_0x3cee3a,_0x227e10):_0x295b99['writer']['removeStyle']('list-style-type',_0x227e10);});});}['_definePostfixer'](){const {editor:_0x1ddf70}=this,{model:_0x22b573}=_0x1ddf70,_0x5b2abf=_0x1ddf70['plugins']['get'](K),_0xb7acd6=this['_getDefaultListStyle'](),_0x3c9637=this['_getDefaultStartIndex']();_0x22b573['document']['registerPostFixer'](_0x355a9d=>{const _0x8f7121=_0x22b573['document']['differ']['getChanges']();let _0x28d235=!0x1;for(const _0x22fb05 of _0x8f7121){if('insert'!==_0x22fb05['type']||'$text'===_0x22fb05['name'])continue;const _0x4a8fc2=_0x22b573['createRangeOn'](_0x22fb05['position']['nodeAfter']);for(const _0x25739a of _0x4a8fc2['getItems']())_0x25739a['is']('element','footnotesDefinitions')&&(!_0x25739a['hasAttribute']('footnotesListStart')&&_0x22b573['schema']['checkAttribute'](_0x25739a,'footnotesListStart')&&(_0x355a9d['setAttribute']('footnotesListStart',_0x3c9637,_0x25739a),_0x28d235=!0x0),!_0x25739a['hasAttribute']('footnotesListStyle')&&_0x22b573['schema']['checkAttribute'](_0x25739a,'footnotesListStyle')&&(_0x355a9d['setAttribute']('footnotesListStyle',_0xb7acd6,_0x25739a),_0x28d235=!0x0));}return _0x28d235&&_0x5b2abf['_updateFootnotesCounters'](_0x355a9d),_0x28d235;});}['_defineFormatter'](){const {editor:_0x4e84e7}=this;_0x4e84e7['plugins']['get'](K)['setFootnoteFormatter'](_0x273b30=>this['_formatFootnoteListValue'](_0x273b30));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2b884b,value:_0x241165,digits:_0x1fce48}){const _0x3520b8=_0x2b884b['getAttribute']('footnotesListStyle'),_0x4aa193=_0x2b884b['getAttribute']('footnotesListStart'),_0x41a356=Math['floor'](_0x241165)+(_0x4aa193??0x1)-0x1;switch(_0x3520b8){case'decimal-leading-zero':return function(_0x287d08,_0x1a87d5){return String(_0x287d08)['padStart'](_0x1a87d5,'0');}(_0x41a356,Math['max'](0x2,_0x1fce48));case'lower-alpha':case'lower-latin':return st(_0x41a356,!0x1);case'upper-alpha':case'upper-latin':return st(_0x41a356,!0x0);case'lower-roman':return lt(_0x41a356,!0x1);case'upper-roman':return lt(_0x41a356,!0x0);case'arabic-indic':return String(_0x41a356)['replace'](/\d/g,_0x174bea=>ft[Number(_0x174bea)]);default:return String(_0x41a356);}}}function ct(_0x3388c2){if('string'==typeof _0x3388c2){const _0x35d651=et[_0x3388c2];if(_0x35d651)return _0x35d651;if(ot['includes'](_0x3388c2))return _0x3388c2;}return null;}function ut(_0x26cd46,_0x512cf7){const _0x63146d=_0x512cf7['toViewElement'](_0x26cd46);return Array['from'](_0x63146d['getChildren']())['find'](_0x1c571f=>_0x1c571f['is']('element','ol')&&_0x1c571f['hasClass']('footnotes-list'));}class dt extends _0x325213{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x4fc2a7();['keystrokes']=new _0x17cf75();['focusables']=new _0x3b6b0c();['focusCycler'];constructor(_0x2f88cd,{styleButtonViews:_0x4b82f6,styleGridAriaLabel:_0x1d0272}){super(_0x2f88cd),(this['focusCycler']=new _0xe04fd5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4b82f6,_0x1d0272),[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 _0x3fe2b7 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3fe2b7['element']);_0x4ef8a({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x56deab['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 _0x5b9f88=_0x161815=>_0x161815['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b9f88),this['keystrokes']['set']('arrowleft',_0x5b9f88),this['keystrokes']['set']('arrowup',_0x5b9f88),this['keystrokes']['set']('arrowdown',_0x5b9f88);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x13810d,_0x397dca){const _0x74021e=new _0x325213(this['locale']);return _0x74021e['children']=_0x74021e['createCollection'](),_0x74021e['children']['addMany'](_0x13810d),_0x74021e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x397dca,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x74021e['children']}),_0x74021e['children']['delegate']('execute')['to'](this),_0x74021e['focus']=function(){for(const _0x20419e of this['children'])if(_0x20419e instanceof _0x3dc254&&_0x20419e['isOn'])return void _0x20419e['focus']();this['children']['first']['focus']();},_0x74021e['focusTracker']=new _0x4fc2a7(),_0x74021e['keystrokes']=new _0x17cf75(),_0x74021e['render'](),_0x74021e['keystrokes']['listenTo'](_0x74021e['element']),this['children']['add'](_0x74021e),_0x74021e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5747cd=this['_createStartIndexPropertyView'](),_0x43640c=[_0x5747cd],_0xc26d8f=new _0x17e2e1(this['locale'],_0x43640c);return _0xc26d8f['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xc26d8f['buttonView']['bind']('isEnabled')['toMany'](_0x43640c,'isEnabled',(..._0x13170d)=>_0x13170d['some'](_0x439d9d=>_0x439d9d)),_0xc26d8f['buttonView']['on']('change:isEnabled',(_0xbf43ff,_0x2feaf0,_0x80ca85)=>{_0x80ca85||(_0xc26d8f['isCollapsed']=!0x0);}),this['children']['add'](_0xc26d8f),[_0x5747cd,_0xc26d8f];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x180ed2=new _0x37d3fc(this['locale'],_0x326cca);return _0x180ed2['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x180ed2['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x180ed2['fieldView']['on']('input',()=>{const _0x1851dc=_0x180ed2['fieldView']['element'],_0x5aa482=_0x1851dc['valueAsNumber'];Number['isNaN'](_0x5aa482)?_0x180ed2['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1851dc['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5aa482}):_0x180ed2['errorText']=t(_0x5aa482<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x180ed2;}}class ht extends _0x5cfb3d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x42c45b,_0x47cf7f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb3f81b}=this,{componentFactory:_0xd57d56}=_0xb3f81b['ui'];_0xb3f81b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xd57d56['add']('footnotesStyle',function(_0x5ea1fb){return _0x4fe5fc=>{const {t:t}=_0x4fe5fc,_0x2ed5ec=_0x5ea1fb['commands']['get']('footnotesStyle'),_0x59333d=_0xedf58b(_0x4fe5fc),{buttonView:_0x19e424}=_0x59333d;return _0x59333d['class']='ck-footnotes-styles-dropdown',_0x59333d['bind']('isEnabled')['to'](_0x2ed5ec,'isEnabled'),_0x19e424['set']({'label':t('Footnotes\x20style'),'icon':_0x2968f4,'tooltip':!0x0}),_0x59333d['once']('change:isOpen',()=>{const _0x1d66eb=function({editor:_0x48e470,dropdownView:_0xe4c484}){const {t:t}=_0x48e470['locale'],_0x5a0f05=t('Footnotes\x20definitions\x20styles'),_0x5f52a7=function(_0x48eb6e){const {t:t}=_0x48eb6e['locale'],_0x368d7a=_0x48eb6e['config']['get']('footnotes.footnotesProperties.listStyles'),_0x2af4b9=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0xcf9b40},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x1ed7cb},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x10910d},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x56bbdb},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x1c230},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x285424},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0xf9e9b6}];return _0x368d7a['map'](_0x30c84d=>{const _0x3ef1ca=ct(_0x30c84d),_0x331f6e=_0x2af4b9['find'](_0x1fa1c3=>_0x1fa1c3['style']===_0x3ef1ca);return function(_0x1a6646,_0x22f139){const {locale:_0x15ee5e}=_0x1a6646,{label:_0x1908ca,icon:_0x28f97f,tooltip:_0x360faf,style:_0x1fbac4}=_0x22f139,_0x244abc=_0x1a6646['commands']['get']('footnotesStyle'),_0x2f1195=new _0x3dc254(_0x15ee5e);return _0x2f1195['set']({'label':_0x1908ca,'icon':_0x28f97f,'tooltip':_0x360faf}),_0x2f1195['bind']('isOn')['to'](_0x244abc,'value',_0x231bc5=>_0x231bc5===_0x1fbac4),_0x2f1195['bind']('isEnabled')['to'](_0x244abc,'isEnabled'),_0x2f1195['on']('execute',()=>{_0x1a6646['execute']('footnotesStyle',{'value':_0x1fbac4}),_0x1a6646['editing']['view']['focus']();}),_0x2f1195;}(_0x48eb6e,_0x331f6e);});}(_0x48e470),_0x2d153c=new dt(_0x48e470['locale'],{'styleGridAriaLabel':_0x5a0f05,'styleButtonViews':_0x5f52a7}),_0x52e2f0=_0x48e470['commands']['get']('footnotesStart');return _0x2d153c['startIndexFieldView']['bind']('isEnabled')['to'](_0x52e2f0),_0x2d153c['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x52e2f0),_0x2d153c['on']('footnotesListStart',(_0x13218c,_0x5afcb0)=>{_0x48e470['execute']('footnotesStart',{'value':_0x5afcb0['startIndex']});}),_0x2d153c['delegate']('execute')['to'](_0xe4c484),_0x2d153c;}({'editor':_0x5ea1fb,'dropdownView':_0x59333d});_0x59333d['panelView']['children']['add'](_0x1d66eb);}),_0x59333d;};}(_0xb3f81b));}['afterInit'](){const {editor:_0x19d8f6}=this,{t:t}=_0x19d8f6['locale'],_0xcabbe=_0x19d8f6['plugins']['get'](_0x47cf7f),{defaultPositions:_0xc5583}=_0x272e06;_0xcabbe['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x19d8f6['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5a0b0c=>{let _0x4979e3=_0x5a0b0c['getFirstPosition']()?.['parent'];return _0x4979e3?.['is']('$text')&&(_0x4979e3=_0x4979e3['parent']),_0x4979e3?.['is']('element')?_0x4979e3['findAncestor'](q):null;},'positions':[_0xc5583['southArrowNorth'],_0xc5583['southArrowNorthMiddleWest'],_0xc5583['southArrowNorthMiddleEast'],_0xc5583['southArrowNorthWest'],_0xc5583['southArrowNorthEast'],_0xc5583['northArrowSouth'],_0xc5583['northArrowSouthMiddleWest'],_0xc5583['northArrowSouthMiddleEast'],_0xc5583['northArrowSouthWest'],_0xc5583['northArrowSouthEast'],_0xc5583['viewportStickyNorth']]});}}class mt extends _0x5cfb3d{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[at,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Z as Footnotes,J as FootnotesClipboard,$ as FootnotesEditing,mt as FootnotesProperties,at as FootnotesPropertiesEditing,ht as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,K as FootnotesTracker,W as FootnotesUI,V as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "48.1.0-alpha.3",
3
+ "version": "48.1.0-alpha.5",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,14 +32,14 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.3",
36
- "@ckeditor/ckeditor5-core": "48.1.0-alpha.3",
37
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.3",
38
- "@ckeditor/ckeditor5-enter": "48.1.0-alpha.3",
39
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.3",
40
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.3",
41
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.3",
42
- "@ckeditor/ckeditor5-widget": "48.1.0-alpha.3"
35
+ "@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.5",
36
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
37
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
38
+ "@ckeditor/ckeditor5-enter": "48.1.0-alpha.5",
39
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
40
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
41
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5",
42
+ "@ckeditor/ckeditor5-widget": "48.1.0-alpha.5"
43
43
  },
44
44
  "files": [
45
45
  "dist",