@ckeditor/ckeditor5-footnotes 48.0.0-alpha.1 → 48.0.0-alpha.3

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 _0x13292b,Command as _0x5cb100}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x7e70db,isWidget as _0x54400b,toWidgetEditable as _0x8c574b,WidgetToolbarRepository as _0x8e24ec}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x285602,logWarning as _0x2d70dc,FocusTracker as _0x288be0,KeystrokeHandler as _0x303a8c,global as _0x3a9347}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x365487,ClickObserver as _0x316cfa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x220551}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x319956,ButtonView as _0x3f091b,View as _0x927eb1,ViewCollection as _0x1b5100,FocusCycler as _0x17078f,addKeyboardHandlingForGrid as _0x51698d,CollapsibleView as _0x4b46e7,LabeledFieldView as _0x43e67a,createLabeledInputNumber as _0x1d366c,ContextualBalloon as _0x48617e,BalloonPanelView as _0x329845,createDropdown as _0x1bfa78}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x34315e,IconListStyleDecimal as _0x37b01d,IconListStyleDecimalLeadingZero as _0x5659e1,IconListStyleLowerRoman as _0x2772c8,IconListStyleUpperRoman as _0x44fee5,IconListStyleLowerLatin as _0x3f7928,IconListStyleUpperLatin as _0x154fca,IconListStyleArabicIndic as _0x202b24}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2cb8d8,_0x29c16a){this['_model']=_0x2cb8d8,this['_elementName']=_0x29c16a['elementName'],this['_getElementKey']=_0x29c16a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5a65a4){const _0x2dadb8=new Set(),_0x1e8061=new Map();for(const _0x4d3c0c of _0x5a65a4){if('insert'===_0x4d3c0c['type']&&'$text'!==_0x4d3c0c['name']&&_0x4d3c0c['position']['nodeAfter']){const _0x1cf67c=this['_model']['createRangeOn'](_0x4d3c0c['position']['nodeAfter']);for(const _0x2c1bdf of _0x1cf67c['getItems']()){if(!_0x2c1bdf['is']('element',this['_elementName']))continue;const _0x34ada8=this['_getElementKey'](_0x2c1bdf);_0x1e8061['has'](_0x34ada8)||_0x1e8061['set'](_0x34ada8,[]),_0x1e8061['get'](_0x34ada8)['push'](_0x2c1bdf);}}if('remove'===_0x4d3c0c['type']&&_0x4d3c0c['name']===this['_elementName']){const _0x7ef05a=this['_getElementKey']({'getAttribute':_0x58b51c=>_0x4d3c0c['attributes']['get'](_0x58b51c)});_0x2dadb8['add'](_0x7ef05a);}}for(const [_0x50c19e,_0x14feda]of this['_trackedElements'])'$graveyard'===_0x14feda['root']['rootName']&&_0x2dadb8['add'](_0x50c19e);for(const _0x32cf3d of _0x2dadb8)this['_trackedElements']['delete'](_0x32cf3d);for(const [_0x4cf8d7,_0x1400d6]of _0x1e8061)this['_trackedElements']['set'](_0x4cf8d7,_0x1400d6[_0x1400d6['length']-0x1]);const _0x5e5eae=new Set();for(const [_0x2f6aff,_0x1fc400]of _0x1e8061)_0x2dadb8['has'](_0x2f6aff)&&(_0x5e5eae['add'](_0x1fc400[0x0]),_0x1fc400['length']>0x1?_0x1e8061['set'](_0x2f6aff,_0x1fc400['slice'](0x1)):_0x1e8061['delete'](_0x2f6aff),_0x2dadb8['delete'](_0x2f6aff));return{'removed':Array['from'](_0x2dadb8),'inserted':Array['from'](_0x1e8061['values']())['flat'](),'moved':Array['from'](_0x5e5eae)};}}class K extends _0x13292b{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54f1bd){super(_0x54f1bd),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4d37eb=>_0x4d37eb['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x363ed3=>_0x363ed3['getAttribute']('footnoteId')});}['init'](){const {editor:_0x481177}=this,{model:_0x32cba4,data:_0x5006ec}=_0x481177;_0x32cba4['document']['registerPostFixer'](_0x595891=>{const _0x518352=_0x32cba4['document']['differ']['getChanges']();let _0x1b9864=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x595891,_0x518352)&&(_0x1b9864=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x595891,_0x518352)&&(_0x1b9864=!0x0),this['_handleFootnoteReferencesChanges'](_0x595891,_0x518352)&&(_0x1b9864=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x595891)&&(_0x1b9864=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x595891)&&(_0x1b9864=!0x0),this['_sortFootnoteDefinitions'](_0x595891)&&(_0x1b9864=!0x0),_0x1b9864;}),this['listenTo'](_0x32cba4['document'],'change:data',()=>{_0x32cba4['enqueueChange']({'isUndoable':!0x1},_0x4779fd=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x4779fd);});},{'priority':'low'}),this['listenTo'](_0x5006ec,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4b7807){return this['_footnotes']['find'](_0x2991d1=>_0x2991d1['id']===_0x4b7807)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x26fa2a){this['_footnoteFormatter']=_0x26fa2a;}['_updateFootnotesCounters'](_0x47d7c4,_0x2136d2=0x0){let _0xf5da=!0x1;for(let _0x113eb3=_0x2136d2;_0x113eb3<this['_footnotes']['length'];_0x113eb3++)this['_updateFootnoteRefCounter'](_0x47d7c4,_0x113eb3)&&(_0xf5da=!0x0);return _0xf5da;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2124f4,_0x48cff4){const _0x215d22=_0x2124f4['createElement']('footnotesDefinitions',{});return _0x2124f4['append'](_0x215d22,_0x48cff4),this['_footnotesDefinitions']=_0x215d22,_0x215d22;}['_ensureFootnotesDefinitionsContainerExists'](_0x239bd4){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x304cf7=this['_footnotes'][0x0]['reference']['root'],_0x34eb1a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x239bd4,_0x304cf7);for(const _0x2faaac of this['_footnotes'])_0x2faaac['definition']['parent']||_0x239bd4['insert'](_0x2faaac['definition'],_0x34eb1a,'end');this['_updateFootnotesCounters'](_0x239bd4);}['_handleFootnotesDefinitionsObjectChanges'](_0xa58835,_0x11ea9f){let _0x2d2b27=!0x1;const {inserted:_0x1107f7,removed:_0x36affe,moved:_0x286f95}=this['_footnoteDefsContainerTracker']['getChanges'](_0x11ea9f);if(_0x286f95['length']&&(this['_footnotesDefinitions']=_0x286f95[0x0]),_0x1107f7['length']){if(_0x1107f7['length']>0x1||this['_footnotesDefinitions']&&_0x1107f7['some'](_0x174f02=>_0x174f02!==this['_footnotesDefinitions'])){const _0x44dba6=_0xa58835['createElement']('footnotesDefinitions',{}),_0x261ed3=[];this['_footnotesDefinitions']&&_0x261ed3['push'](this['_footnotesDefinitions']),_0x261ed3['push'](..._0x1107f7),_0xa58835['insert'](_0x44dba6,_0x261ed3[0x0],'before');for(const _0x1e1936 of _0x261ed3)_0xa58835['move'](_0xa58835['createRangeIn'](_0x1e1936),_0xa58835['createPositionAt'](_0x44dba6,'end')),_0xa58835['remove'](_0x1e1936);this['_footnotesDefinitions']=_0x44dba6,this['_updateFootnotesCounters'](_0xa58835),_0x2d2b27=!0x0;}else this['_footnotesDefinitions']=_0x1107f7[0x0];}if(_0x36affe['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x401061 of this['_footnotes'])_0xa58835['remove'](_0x401061['reference']),_0x2d2b27=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2d2b27;}['_handleFootnoteDefinitionsChanges'](_0x513017,_0x134842){let _0x485534=!0x1;const _0x3c0abe=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x43de98,moved:_0x33995b}=this['_footnoteDefsTracker']['getChanges'](_0x134842);for(const _0x3ec270 of[..._0x33995b,..._0x43de98]){const _0x100f49=_0x3ec270['getAttribute']('footnoteId'),_0x2bf760=this['getFootnote'](_0x100f49);_0x2bf760&&(_0x2bf760['definition']=_0x3ec270),j(_0x513017,_0x3c0abe,_0x3ec270)&&(_0x485534=!0x0);}return _0x485534;}['_handleFootnoteReferencesChanges'](_0x22d909,_0x30412d){let _0x4a1424=!0x1;const {removed:_0x3b9001,inserted:_0xdf878c,moved:_0x71a47e}=this['_footnoteRefsTracker']['getChanges'](_0x30412d);for(const _0x16ccec of _0x3b9001)this['_handleRemoveFootnoteReferenceById'](_0x22d909,_0x16ccec)&&(_0x4a1424=!0x0);for(const _0x360a87 of _0xdf878c)this['_handleInsertedFootnoteReference'](_0x22d909,_0x360a87)&&(_0x4a1424=!0x0);for(const _0x2e8afb of _0x71a47e)this['_handleMovedFootnoteReference'](_0x22d909,_0x2e8afb)&&(_0x4a1424=!0x0);return _0x4a1424;}['_handleFootnotesDefinitionsObjectSync'](_0x64942f){if(!this['_footnotesDefinitions'])return!0x1;let _0x462b70=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1907af=[];for(const _0x52a0e0 of this['_footnotesDefinitions']['getChildren']()){const _0x571943=_0x52a0e0['getAttribute']('footnoteId');this['getFootnote'](_0x571943)||(_0x1907af['unshift'](_0x52a0e0),_0x462b70=!0x0);}for(const _0x5ced7e of _0x1907af)_0x64942f['remove'](_0x5ced7e);}const _0x7b2c97=new Set(),_0x1619e7=[];for(const _0x41c774 of this['_footnotesDefinitions']['getChildren']()){const _0x31a14b=_0x41c774['getAttribute']('footnoteId');_0x7b2c97['has'](_0x31a14b)?(_0x1619e7['unshift'](_0x41c774),_0x462b70=!0x0):_0x7b2c97['add'](_0x31a14b);}for(const _0x4ff1e4 of _0x1619e7)_0x64942f['remove'](_0x4ff1e4);return this['_footnotesDefinitions']['childCount']||(_0x64942f['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x462b70=!0x0),_0x462b70;}['_handleInsertedFootnoteReference'](_0x5e3094,_0x143d25){if(this['_footnotes']['find'](_0x577e2f=>_0x577e2f['reference']===_0x143d25))return!0x1;let _0x10c9a9=!0x1;const _0x47253c=_0x143d25['getAttribute']('footnoteId'),_0x50f2c8=this['_footnotes']['findIndex'](_0x185132=>_0x185132['id']===_0x47253c);-0x1!==_0x50f2c8&&(_0x5e3094['remove'](this['_footnotes'][_0x50f2c8]['reference']),this['_footnotes']['splice'](_0x50f2c8,0x1),_0x10c9a9=!0x0);let _0xe8d68=this['_footnotesDefinitions']?function(_0x610b26,_0x12681e){for(const _0x470036 of _0x610b26['getChildren']())if(_0x470036['getAttribute']('footnoteId')===_0x12681e)return _0x470036;return null;}(this['_footnotesDefinitions'],_0x47253c):null;_0xe8d68||(_0xe8d68=_0x5e3094['createElement']('footnoteDefinition',{'footnoteId':_0x47253c}),this['_footnotesDefinitions']&&(_0x5e3094['insert'](_0xe8d68,this['_footnotesDefinitions'],'end'),_0x10c9a9=!0x0));const _0x5af679={'id':_0x47253c,'reference':_0x143d25,'definition':_0xe8d68},_0x301e01=T(this['editor']['model'],this['_footnotes'],_0x143d25);this['_footnotes']['splice'](_0x301e01,0x0,_0x5af679);let _0x4c25e5=_0x301e01;return-0x1!==_0x50f2c8&&(_0x4c25e5=Math['min'](_0x301e01,_0x50f2c8)),this['_updateFootnotesCounters'](_0x5e3094,_0x4c25e5)&&(_0x10c9a9=!0x0),_0x10c9a9;}['_handleRemoveFootnoteReferenceById'](_0x21ce59,_0x5a48ba){const _0x1b8e01=this['_footnotes']['findIndex'](_0x685a7a=>_0x685a7a['id']===_0x5a48ba);if(-0x1===_0x1b8e01)return!0x1;let _0xe34db4=!0x1;const _0x12c022=this['_footnotes'][_0x1b8e01];return'$graveyard'!==_0x12c022['definition']['root']['rootName']&&(_0x21ce59['remove'](_0x12c022['definition']),_0xe34db4=!0x0),this['_footnotes']['splice'](_0x1b8e01,0x1),this['_updateFootnotesCounters'](_0x21ce59,_0x1b8e01)&&(_0xe34db4=!0x0),_0xe34db4;}['_handleMovedFootnoteReference'](_0x1159a9,_0x148c54){const _0x2abd75=_0x148c54['getAttribute']('footnoteId'),_0x2289fe=this['_footnotes']['findIndex'](_0x194ecb=>_0x194ecb['id']===_0x2abd75),_0x8a9b43=this['_footnotes'][_0x2289fe];let _0x2e2bb7=!0x1;_0x8a9b43['reference']=_0x148c54,this['_footnotes']['splice'](_0x2289fe,0x1);const _0x575445=T(this['editor']['model'],this['_footnotes'],_0x148c54);return this['_footnotes']['splice'](_0x575445,0x0,_0x8a9b43),this['_updateFootnotesCounters'](_0x1159a9,Math['min'](_0x2289fe,_0x575445))&&(_0x2e2bb7=!0x0),_0x2e2bb7;}['_updateFootnoteRefCounter'](_0x2e9469,_0x990a68){if(!this['_footnotesDefinitions'])return!0x1;const _0x530001=this['_footnotes'][_0x990a68];let _0x255bb2;return _0x255bb2=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x530001,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x990a68+0x1}):String(_0x990a68+0x1),_0x530001['reference']['getAttribute']('footnoteCounter')!=_0x255bb2&&(_0x2e9469['setAttribute']('footnoteCounter',_0x255bb2,_0x530001['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4a97a3){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x100313,_0x43aabb){if(_0x100313['length']!==_0x43aabb['length'])return!0x1;for(let _0x2a371d=0x0;_0x2a371d<_0x100313['length'];_0x2a371d++)if(_0x100313[_0x2a371d]!==_0x43aabb[_0x2a371d])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x24698a=>_0x24698a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5c9637=>_0x5c9637['getAttribute']('footnoteId'))))return!0x1;let _0x577280=!0x1;for(let _0xd25fdb=0x0;_0xd25fdb<this['_footnotes']['length'];_0xd25fdb++){const _0x56e5d3=this['_footnotes'][_0xd25fdb],_0x2da2fd=_0x4a97a3['createPositionBefore'](_0x56e5d3['definition']),_0x16898e=_0x4a97a3['createPositionAt'](this['_footnotesDefinitions'],_0xd25fdb);_0x2da2fd['isEqual'](_0x16898e)||(_0x4a97a3['move'](_0x4a97a3['createRangeOn'](_0x56e5d3['definition']),_0x16898e),_0x577280=!0x0);}return _0x577280;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3afa3e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1ece84}=this['editor'];let _0x59f0d7=!0x1;for(let _0x266e3b=0x0;_0x266e3b<this['_footnotes']['length']-0x1;_0x266e3b++){const _0x376ad4=this['_footnotes'][_0x266e3b],_0x334336=this['_footnotes'][_0x266e3b+0x1],_0x4115c4=_0x1ece84['createPositionBefore'](_0x376ad4['reference']),_0x4e24aa=_0x1ece84['createPositionBefore'](_0x334336['reference']);'after'===_0x4115c4['compareWith'](_0x4e24aa)&&(this['_handleMovedFootnoteReference'](_0x3afa3e,_0x376ad4['reference']),_0x266e3b=-0x1,_0x59f0d7=!0x0);}return _0x59f0d7;}}function j(_0x14ce8c,_0x1e13e6,_0x12b2e8){if(_0x12b2e8['childCount'])return!0x1;const _0x18cbcb=_0x1e13e6?'paragraph':'footnoteInlineContent';return _0x14ce8c['insert'](_0x14ce8c['createElement'](_0x18cbcb),_0x12b2e8),!0x0;}function T(_0x3d35dd,_0x35d564,_0x3e8675){if(0x0===_0x35d564['length'])return 0x0;const _0x30fd00=_0x3d35dd['createPositionBefore'](_0x3e8675);for(let _0x4ef19f=0x0;_0x4ef19f<_0x35d564['length'];_0x4ef19f++){const _0x4e443c=_0x35d564[_0x4ef19f],_0x103b1e=_0x3d35dd['createPositionBefore'](_0x4e443c['reference']);if('before'===_0x30fd00['compareWith'](_0x103b1e))return _0x4ef19f;}const _0x48d488=_0x3e8675['root'];let _0x4c15af=-0x1;for(let _0x255e48=_0x35d564['length']-0x1;_0x255e48>=0x0;_0x255e48--)if(_0x35d564[_0x255e48]['reference']['root']===_0x48d488){_0x4c15af=_0x255e48;break;}if(-0x1!==_0x4c15af)return _0x4c15af+0x1;const _0x543fa0=_0x3d35dd['document']['getRootNames'](),_0x2bdd49=_0x543fa0['indexOf'](_0x48d488['rootName']),_0x3a05e2=_0x543fa0[_0x2bdd49+0x1];if(_0x3a05e2){for(let _0x460f2c=0x0;_0x460f2c<_0x35d564['length'];_0x460f2c++)if(_0x35d564[_0x460f2c]['reference']['root']['rootName']===_0x3a05e2)return _0x460f2c;}return _0x35d564['length'];}class V extends _0x5cb100{['refresh'](){const _0x3d053e=this['editor']['model']['document']['selection'],_0x25dd51=this['_getPositionToInsertFootnote'](_0x3d053e);this['isEnabled']=!!_0x25dd51;}['execute'](_0x31761c){const {editor:_0x29f848}=this,{model:_0x2cce1b}=_0x29f848,{selection:_0x69d6be}=_0x2cce1b['document'],_0xabb1f3=this['_getPositionToInsertFootnote'](_0x69d6be);if(!_0xabb1f3)return;const _0x14a904=_0x29f848['plugins']['get']('FootnotesEditing'),_0x572fae=_0x31761c?.['footnoteId']??_0x285602();!function(_0x574b79){return'string'==typeof _0x574b79&&_0x574b79['length']>0x0&&!/\s/['test'](_0x574b79)&&!/^\d/['test'](_0x574b79);}(_0x572fae)?_0x2d70dc('insert-footnote-command-executed-with-invalid-id'):(_0x2cce1b['change'](_0x3e4d42=>{const _0x15984e=_0x3e4d42['createElement']('footnoteRef',{'footnoteId':_0x572fae});_0x2cce1b['insertObject'](_0x15984e,_0xabb1f3,null);}),_0x14a904['_moveSelectionToFootnoteDefinition'](_0x572fae));}['_getPositionToInsertFootnote'](_0x31edb7){const {model:_0x449fdf}=this['editor'],{schema:_0x218b20}=_0x449fdf,_0x4860e2=_0x31edb7['getFirstRange']();for(const _0x5d1b1c of _0x4860e2['getItems']())if(_0x218b20['isBlock'](_0x5d1b1c)||_0x218b20['isObject'](_0x5d1b1c))return null;const _0x234cf4=_0x4860e2['end'];return _0x218b20['checkChild'](_0x234cf4,'footnoteRef')?_0x234cf4:null;}}class $ extends _0x13292b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x929399}=this;_0x929399['config']['define']('footnotes.multiBlock',!0x0),_0x929399['commands']['add']('insertFootnote',new V(_0x929399)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x305bdd){const _0x4db241=_0x512136([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]),_0x16979d=0x47a28506,_0x2a214e=0x47a501e6^_0x16979d,_0x3fc3d8=window[_0x512136([0x44,0x61,0x74,0x65])][_0x512136([0x6e,0x6f,0x77])](),_0x39a58f=_0x305bdd[_0x512136([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52b33a=new window[(_0x512136([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1beea7=>{_0x39a58f[_0x512136([0x6f,0x6e,0x63,0x65])](_0x512136([0x72,0x65,0x61,0x64,0x79]),_0x1beea7);}),_0x5c418a={[_0x512136([0x6b,0x74,0x79])]:_0x512136([0x45,0x43]),[_0x512136([0x75,0x73,0x65])]:_0x512136([0x73,0x69,0x67]),[_0x512136([0x63,0x72,0x76])]:_0x512136([0x50,0x2d,0x32,0x35,0x36]),[_0x512136([0x78])]:_0x512136([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]),[_0x512136([0x79])]:_0x512136([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]),[_0x512136([0x61,0x6c,0x67])]:_0x512136([0x45,0x53,0x32,0x35,0x36])},_0x13d9f8=_0x39a58f[_0x512136([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x512136([0x67,0x65,0x74])](_0x512136([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33366d(){let _0x1454dc,_0x4aee3b=null,_0x3db951=null;try{if(_0x13d9f8==_0x512136([0x47,0x50,0x4c]))return _0x512136([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1454dc=_0x13b7a6(),!_0x1454dc)return _0x512136([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1454dc[_0x512136([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3db951=_0x4c35aa(_0x1454dc[_0x512136([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1454dc[_0x512136([0x6a,0x74,0x69])])),await _0x499e0f()?_0x505646()?_0x196d55()?_0x512136([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a8bc6()?(_0x1454dc[_0x512136([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x512136([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4aee3b=_0x2da22e(_0x512136([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17788c()):_0x512136([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x512136([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x512136([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x512136([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x196d55(){const _0x285022=[_0x512136([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x512136([0x74,0x72,0x69,0x61,0x6c])][_0x512136([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1454dc[_0x512136([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fc3d8/0x3e8:0xe10*_0x2a214e;return _0x1454dc[_0x512136([0x65,0x78,0x70])]<_0x285022;}function _0x505646(){const _0x7e1dee=_0x1454dc[_0x512136([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7e1dee&&(!!_0x7e1dee[_0x512136([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512136([0x2a]))||!!_0x7e1dee[_0x512136([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512136([0x46,0x4f,0x4f])));}function _0x1a8bc6(){const _0x265c42=_0x1454dc[_0x512136([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x265c42||0x0==_0x265c42[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ca250}=new URL(window[_0x512136([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x265c42[_0x512136([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ca250))return!0x0;const _0x3288cf=_0x2ca250[_0x512136([0x73,0x70,0x6c,0x69,0x74])](_0x512136([0x2e]));return _0x265c42[_0x512136([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xab8596=>_0xab8596[_0x512136([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512136([0x2a])))[_0x512136([0x6d,0x61,0x70])](_0x15be5d=>_0x15be5d[_0x512136([0x73,0x70,0x6c,0x69,0x74])](_0x512136([0x2e])))[_0x512136([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x563d6a=>_0x563d6a[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3288cf[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x512136([0x6d,0x61,0x70])](_0x186357=>Array(_0x3288cf[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x186357[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x512136([0x66,0x69,0x6c,0x6c])](_0x186357[0x0]===_0x512136([0x2a])?_0x512136([0x2a]):'')[_0x512136([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x186357))[_0x512136([0x73,0x6f,0x6d,0x65])](_0x12ec4b=>_0x3288cf[_0x512136([0x65,0x76,0x65,0x72,0x79])]((_0x15c3c5,_0x360cc8)=>_0x12ec4b[_0x360cc8]===_0x15c3c5||_0x12ec4b[_0x360cc8]===_0x512136([0x2a])));}function _0x17788c(){return _0x4aee3b&&_0x3db951?new window[(_0x512136([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd5ec,_0x5355ed)=>{_0x4aee3b[_0x512136([0x74,0x68,0x65,0x6e])](_0x2cd5ec,_0x5355ed),_0x3db951[_0x512136([0x74,0x68,0x65,0x6e])](_0x4fd139=>{_0x4fd139!=_0x512136([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd5ec(_0x4fd139);},_0x5355ed);}):_0x4aee3b||_0x3db951||_0x512136([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c35aa(_0x332975,_0x2f7442){return new window[(_0x512136([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5276b3=>{if(_0x3ff4dc())return _0x5276b3(_0x512136([0x56,0x61,0x6c,0x69,0x64]));_0x1c701d(),_0x39a58f[_0x512136([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x512136([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c5377=!0x1;const _0x236b1f=_0x285602();function _0x130073(_0x1cc9d1){return!!_0x1cc9d1&&(typeof _0x1cc9d1===_0x512136([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cc9d1===_0x512136([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cc9d1[_0x512136([0x74,0x68,0x65,0x6e])]===_0x512136([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cc9d1[_0x512136([0x63,0x61,0x74,0x63,0x68])]===_0x512136([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xebfcbe(_0x1de71c){_0x1a1938(_0x1de71c)[_0x512136([0x74,0x68,0x65,0x6e])](_0x10dbb0=>{if(!_0x10dbb0||_0x10dbb0[_0x512136([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x512136([0x6f,0x6b]))return _0x512136([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e2db9(_0x583226(_0x236b1f+_0x2f7442))!=_0x10dbb0[_0x512136([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x512136([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x512136([0x56,0x61,0x6c,0x69,0x64]);})[_0x512136([0x74,0x68,0x65,0x6e])](_0x2bfde1=>(_0x4de909(),_0x2bfde1),()=>{const _0x48a233=_0x1deb97();return null==_0x48a233?(_0x4de909(),_0x512136([0x56,0x61,0x6c,0x69,0x64])):_0x512136(_0x3fc3d8-_0x48a233>(0x63ae0106^_0x16979d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x512136([0x74,0x68,0x65,0x6e])](_0x5276b3)[_0x512136([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5276b3(_0x512136([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c61b0=0x47946b86^_0x16979d;function _0x4de909(){const _0x414d06=_0x512136([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e2db9(_0x583226(_0x332975)),_0x4f0f21=_0xcc4fc0(_0x3e2db9(window[_0x512136([0x4d,0x61,0x74,0x68])][_0x512136([0x63,0x65,0x69,0x6c])](_0x3fc3d8/_0x1c61b0)));window[_0x512136([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x512136([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x414d06,_0x4f0f21);}function _0x1deb97(){const _0x1c8cc8=_0x512136([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e2db9(_0x583226(_0x332975)),_0xf8ff17=window[_0x512136([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x512136([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c8cc8);return _0xf8ff17?window[_0x512136([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcc4fc0(_0xf8ff17),0x10)*_0x1c61b0:null;}function _0x1a1938(_0x2b9e93){return new window[(_0x512136([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53afb1,_0x4997ae)=>{_0x2b9e93[_0x512136([0x74,0x68,0x65,0x6e])](_0x53afb1,_0x4997ae),window[_0x512136([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4997ae,0x47a351c6^_0x16979d);});}}_0x39a58f[_0x512136([0x6f,0x6e])](_0x512136([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48f47f,_0x4ae2fd)=>{if(_0x4ae2fd[0x0]!=_0x332975)return _0x5276b3(_0x512136([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ae2fd[0x1]={..._0x4ae2fd[0x1],[_0x512136([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x236b1f};},{[_0x512136([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x512136([0x68,0x69,0x67,0x68])}),_0x39a58f[_0x512136([0x6f,0x6e])](_0x512136([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f8645=>{_0x130073(_0x1f8645[_0x512136([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c5377=!0x0,_0xebfcbe(_0x1f8645[_0x512136([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x512136([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x512136([0x6c,0x6f,0x77])}),_0x52b33a[_0x512136([0x74,0x68,0x65,0x6e])](()=>{_0x4c5377||_0x5276b3(_0x512136([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ff4dc(){return _0x39a58f[_0x512136([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x512136([0x76,0x69,0x65,0x77])][_0x512136([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x512136([0x61,0x75,0x74,0x6f]);}function _0x1c701d(){_0x39a58f[_0x512136([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x512136([0x76,0x69,0x65,0x77])][_0x512136([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x512136([0x61,0x75,0x74,0x6f]);}}function _0x2da22e(_0x51c0f9){const _0x813a36=[new window[(_0x512136([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c1ff7=>setTimeout(_0x2c1ff7,0x47abbbca^_0x16979d)),_0x52b33a[_0x512136([0x74,0x68,0x65,0x6e])](()=>new window[(_0x512136([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x336973=>{let _0x1476a6=0x0;_0x39a58f[_0x512136([0x6d,0x6f,0x64,0x65,0x6c])][_0x512136([0x6f,0x6e])](_0x512136([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27dde6,_0x247078)=>{_0x247078[0x0][_0x512136([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1476a6++,_0x1476a6==(0x47a280ee^_0x16979d)&&(_0x336973(),_0x27dde6[_0x512136([0x6f,0x66,0x66])]());});}))];return window[_0x512136([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x512136([0x72,0x61,0x63,0x65])](_0x813a36)[_0x512136([0x74,0x68,0x65,0x6e])](()=>_0x51c0f9);}async function _0x25eba4(){await _0x52b33a,_0x39a58f[_0x512136([0x6d,0x6f,0x64,0x65,0x6c])][_0x512136([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21a952,_0x39a58f[_0x512136([0x6d,0x6f,0x64,0x65,0x6c])][_0x512136([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21a952,_0x39a58f[_0x512136([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x512136([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2108fc(_0x86ab53){const _0x390d21=_0x59a504();_0x39a58f[_0x390d21]=_0x512136([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x86ab53,_0x86ab53!=_0x512136([0x56,0x61,0x6c,0x69,0x64])&&_0x25eba4();}function _0x59a504(){const _0x2971cb=window[_0x512136([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x512136([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x512136([0x6e,0x6f,0x77])]())[_0x512136([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x512136([0x2e]),'');let _0x3c3286=_0x512136([0x75]);for(let _0x2de268=0x0;_0x2de268<_0x2971cb[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2de268+=0x2){let _0x4a56d6=window[_0x512136([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2971cb[_0x512136([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2de268,_0x2de268+0x2));_0x4a56d6>=_0x4db241[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a56d6-=_0x4db241[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c3286+=_0x4db241[_0x4a56d6];}return _0x3c3286;}function _0x13b7a6(){const _0x4df926=_0x13d9f8[_0x512136([0x73,0x70,0x6c,0x69,0x74])](_0x512136([0x2e]));if(0x3!=_0x4df926[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25052d(_0x4df926[0x1]);function _0x25052d(_0x2ac96c){const _0x40fae2=_0x16e8dd(_0x2ac96c);return _0x40fae2&&_0x7987f3()?_0x40fae2:null;function _0x7987f3(){const _0x8db925=_0x40fae2[_0x512136([0x6a,0x74,0x69])],_0x3fda03=window[_0x512136([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8db925[_0x512136([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8db925[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bc68c={..._0x40fae2,[_0x512136([0x6a,0x74,0x69])]:_0x8db925[_0x512136([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8db925[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bc68c[_0x512136([0x76,0x63])],_0x583226(_0x5bc68c)==_0x3fda03;}}}async function _0x499e0f(){let _0x76854=!0x0;try{const _0x555da3=_0x13d9f8[_0x512136([0x73,0x70,0x6c,0x69,0x74])](_0x512136([0x2e])),[_0xbb1f9f,_0x13262c,_0x1de8e5]=_0x555da3;return _0x8fc1d(_0xbb1f9f),await _0x2847f3(_0xbb1f9f,_0x13262c,_0x1de8e5),_0x76854;}catch{return!0x1;}function _0x8fc1d(_0x4054f4){const _0x312689=_0x16e8dd(_0x4054f4);_0x312689&&_0x312689[_0x512136([0x61,0x6c,0x67])]==_0x512136([0x45,0x53,0x32,0x35,0x36])||(_0x76854=!0x1);}async function _0x2847f3(_0x22f16e,_0x4aa1a9,_0x5bd24f){const _0x17bfab=window[_0x512136([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x512136([0x66,0x72,0x6f,0x6d])](_0x298517(_0x5bd24f),_0x356269=>_0x356269[_0x512136([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40aff1=new window[(_0x512136([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x512136([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22f16e+_0x512136([0x2e])+_0x4aa1a9),_0x347fc6=window[_0x512136([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x512136([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x347fc6)return;const _0x9098d5=await _0x347fc6[_0x512136([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x512136([0x6a,0x77,0x6b]),_0x5c418a,{[_0x512136([0x6e,0x61,0x6d,0x65])]:_0x512136([0x45,0x43,0x44,0x53,0x41]),[_0x512136([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x512136([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x512136([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x347fc6[_0x512136([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x512136([0x6e,0x61,0x6d,0x65])]:_0x512136([0x45,0x43,0x44,0x53,0x41]),[_0x512136([0x68,0x61,0x73,0x68])]:{[_0x512136([0x6e,0x61,0x6d,0x65])]:_0x512136([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9098d5,_0x17bfab,_0x40aff1)||(_0x76854=!0x1);}}function _0x16e8dd(_0x105826){return _0x105826[_0x512136([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x512136([0x65,0x79]))?JSON[_0x512136([0x70,0x61,0x72,0x73,0x65])](_0x298517(_0x105826)):null;}function _0x298517(_0x44c11c){return window[_0x512136([0x61,0x74,0x6f,0x62])](_0x44c11c[_0x512136([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x512136([0x2b]))[_0x512136([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x512136([0x2f])));}function _0x583226(_0x2d72d6){let _0x547a49=0x1505;function _0x32bbfd(_0x3a937d){for(let _0x577b3a=0x0;_0x577b3a<_0x3a937d[_0x512136([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x577b3a++){const _0x389a78=_0x3a937d[_0x512136([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x577b3a);_0x547a49=(_0x547a49<<0x5)+_0x547a49+_0x389a78,_0x547a49&=_0x547a49;}}function _0x4e599f(_0x397cb9){Array[_0x512136([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x397cb9)?_0x397cb9[_0x512136([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e599f):_0x397cb9&&typeof _0x397cb9==_0x512136([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x512136([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x397cb9)[_0x512136([0x73,0x6f,0x72,0x74])]()[_0x512136([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6815c1,_0x3c759a])=>{_0x32bbfd(_0x6815c1),_0x4e599f(_0x3c759a);}):_0x32bbfd(window[_0x512136([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x397cb9));}return _0x4e599f(_0x2d72d6),_0x547a49>>>0x0;}function _0x3e2db9(_0x53d7cd){return _0x53d7cd[_0x512136([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x512136([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x512136([0x30]));}function _0xcc4fc0(_0xa9f61d){return _0xa9f61d[_0x512136([0x73,0x70,0x6c,0x69,0x74])]('')[_0x512136([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x512136([0x6a,0x6f,0x69,0x6e])]('');}function _0x21a952(){}function _0x512136(_0x3617b9){return _0x3617b9['map'](_0x55563f=>String['fromCharCode'](_0x55563f))['join']('');}_0x2108fc(await _0x33366d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b9fbb){const {plugins:_0x3bd9d1,editing:_0x117d56,model:_0x1a69f6}=this['editor'],_0xaa3266=_0x3bd9d1['get'](K)['getFootnote'](_0x4b9fbb);return!!_0xaa3266&&(_0x1a69f6['change'](_0xd22c44=>{_0xd22c44['setSelection'](_0xd22c44['createPositionAt'](_0xaa3266['definition'],'end'));}),_0x117d56['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3b9a32){const {plugins:_0x3a53cd,editing:_0x548b08,model:_0x24f2e9}=this['editor'],_0x345ca7=_0x3a53cd['get'](K)['getFootnote'](_0x3b9a32);return!!_0x345ca7&&(_0x24f2e9['change'](_0x5855ed=>{_0x5855ed['setSelection'](_0x345ca7['reference'],'on');}),_0x548b08['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xc655aa}=this['editor']['model'],_0x2cd75c=this['editor']['config']['get']('footnotes.multiBlock');_0xc655aa['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xc655aa['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xc655aa['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2cd75c?_0xc655aa['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xc655aa['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xc655aa['addChildCheck'](_0x1fea41=>{for(const _0x2327f4 of _0x1fea41)if('footnoteDefinition'===_0x2327f4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x526fe3}=this,{conversion:_0x851169,editing:_0x4f2cdb}=_0x526fe3,{t:t}=_0x526fe3['locale'];_0x851169['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5773d2,{writer:_0x418d16,consumable:_0x5a84c4})=>{const _0x321038=_0x5773d2['getChild'](0x0);if(!_0x321038||!_0x321038['is']('element','a'))return null;const _0x3f6ee9=_0x321038['getAttribute']('href')||'';if(!_0x3f6ee9['startsWith']('#'))return null;const _0x1e1e7a=_0x3f6ee9['replace'](/^#/,'');if(!_0x1e1e7a)return null;_0x5a84c4['consume'](_0x321038,{'name':!0x0,'attributes':['href']});for(const {item:_0x4898ff}of _0x4f2cdb['view']['createRangeIn'](_0x321038))_0x4898ff['is']('$textProxy')?_0x5a84c4['consume'](_0x4898ff['textNode'],{'name':!0x0}):_0x4898ff['is']('element')&&_0x5a84c4['consume'](_0x4898ff,{'name':!0x0});return _0x418d16['createElement']('footnoteRef',{'footnoteId':_0x1e1e7a});}}),_0x851169['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x518b06,{writer:_0x2c95e5})=>z(_0x518b06,_0x2c95e5)}),_0x851169['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2fee2a,{writer:_0x33e173})=>{const _0x48be14=_0x2fee2a['getAttribute']('footnoteCounter');return _0x7e70db(z(_0x2fee2a,_0x33e173),_0x33e173,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x48be14)});}});}['_defineDefinitionsConverters'](){const {editor:_0x26d8c3}=this,{t:t}=_0x26d8c3['locale'],{conversion:_0x8c59cc}=_0x26d8c3;_0x8c59cc['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x8c59cc['for']('upcast')['add'](_0x2325b3=>{_0x2325b3['on']('element:ol',(_0x50f78c,_0x59ce67,_0x2df44b)=>{const _0x2828a4=_0x59ce67['viewItem'];if(!_0x2828a4['hasClass']('footnotes-list')||!_0x59ce67['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2df44b['consumable']['consume'](_0x2828a4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5d4300,modelCursor:_0x11d255}=_0x2df44b['convertChildren'](_0x59ce67['viewItem'],_0x59ce67['modelCursor']);_0x59ce67['modelRange']=_0x5d4300,_0x59ce67['modelCursor']=_0x11d255;}),_0x2325b3['on']('element:hr',(_0x51afd8,_0x1ce61c,_0x2d33b6)=>{const _0x8d9f24=_0x1ce61c['viewItem'];_0x8d9f24['hasClass']('footnotes-divider')&&_0x1ce61c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2d33b6['consumable']['consume'](_0x8d9f24,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x8c59cc['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5b7a01,{writer:_0x13749d})=>H(_0x13749d)}),_0x8c59cc['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x392833,{writer:_0x2a0fd2})=>{const _0x323d70=H(_0x2a0fd2,{'data-footnotes-list-label':t('Footnotes')}),_0xabee7=_0x7e70db(_0x323d70,_0x2a0fd2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2a0fd2['setCustomProperty']('footnotesDefinitions',!0x0,_0xabee7),_0xabee7;}});}['_defineDefinitionConverters'](){const {editor:_0x2d0a53}=this,{conversion:_0x10dbab,locale:_0x2dc9bc}=_0x2d0a53,_0x1850c0=_0x2d0a53['config']['get']('footnotes.multiBlock');_0x10dbab['for']('upcast')['add'](_0x3decd8=>{_0x3decd8['on']('element:li',(_0x3a8e9f,_0x14135a,_0x548b1a)=>{const _0x3045e9=_0x14135a['viewItem'];if(!_0x3045e9['hasClass']('footnote-definition')||!_0x3045e9['getAttribute']('id'))return;const _0x4ab1dd=_0x3045e9['parent'];if(!_0x4ab1dd['is']('element','ol')||!_0x4ab1dd['hasClass']('footnotes-list'))return;if(!_0x548b1a['consumable']['test'](_0x3045e9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x40d737=_0x548b1a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3045e9['getAttribute']('id')});if(!_0x548b1a['safeInsert'](_0x40d737,_0x14135a['modelCursor']))return;_0x548b1a['consumable']['consume'](_0x3045e9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xe6b161=Array['from'](_0x3045e9['getChildren']())['find'](_0x245a57=>_0x245a57['is']('element')&&_0x245a57['hasClass']('footnote-content'));for(const _0x972a80 of _0x3045e9['getChildren']())_0x972a80['is']('element')&&(_0x548b1a['consumable']['consume'](_0x972a80,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x548b1a['consumable']['consume'](_0x972a80,{'name':!0x0,'classes':'footnote-content'}));if(_0xe6b161){if(_0x1850c0)_0x548b1a['convertChildren'](_0xe6b161,_0x40d737);else{const _0x285b7f=_0x548b1a['writer']['createElement']('footnoteInlineContent');_0x548b1a['writer']['insert'](_0x285b7f,_0x40d737),_0x548b1a['convertChildren'](_0xe6b161,_0x285b7f);}}_0x548b1a['updateConversionResult'](_0x40d737,_0x14135a);});}),_0x10dbab['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x521c9f,{writer:_0x4ea25c})=>X(_0x521c9f,_0x4ea25c,_0x2dc9bc,{'dataPipeline':!0x0})}),_0x10dbab['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x267aa8,{writer:_0x4753b3})=>X(_0x267aa8,_0x4753b3,_0x2dc9bc)});}['_defineBogusParagraphConverters'](){const {editor:_0x6ace31}=this,{conversion:_0x335dea}=_0x6ace31;_0x6ace31['config']['get']('footnotes.multiBlock')?(_0x335dea['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x335dea['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x6ace31['model']['document'],'change:data',()=>{!function(_0x4058fd,_0x4d57f1){const _0x3d5b9d=_0x4058fd['document']['differ'],_0x5c218b=new Set();for(const _0x2176ba of _0x3d5b9d['getChanges']()){const _0x552944='attribute'==_0x2176ba['type']?_0x2176ba['range']['start']['parent']:_0x2176ba['position']['parent'];_0x552944['is']('element','footnoteDefinition')&&_0x5c218b['add'](_0x552944);}for(const _0x285ded of _0x5c218b['values']()){const _0x505b4d=Array['from'](_0x285ded['getChildren']())['filter'](_0x72b5b9=>U(_0x72b5b9,_0x4d57f1['mapper']));for(const _0x215975 of _0x505b4d)_0x4d57f1['reconvertItem'](_0x215975);}}(_0x6ace31['model'],_0x6ace31['editing']);})):(_0x335dea['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x335dea['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3a60a9,{writer:_0x320463})=>{const _0x1f8717=_0x320463['createContainerElement']('span');return _0x320463['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1f8717),_0x1f8717;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2c8d82}=this,{editing:_0xcd51af,t:t}=_0x2c8d82,_0x4fa664=_0x2c8d82['model']['document']['selection'];_0x2c8d82['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2c8d82['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xcd51af['view']['document'],'enter',(_0x165411,_0x52b5aa)=>{const _0x794877=function(_0x56c275){const _0x48de43=_0x56c275['getSelectedElement']();if(_0x48de43?.['is']('element','footnoteRef'))return _0x48de43;return null;}(_0x4fa664);if(_0x794877){const _0x1e233e=_0x794877['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1e233e),_0x52b5aa['preventDefault'](),_0x165411['stop']();}},{'context':_0x54400b});}['_defineClickHandlers'](){const {editor:_0x4304ce}=this,{editing:_0x275332}=_0x4304ce;_0x4304ce['editing']['view']['addObserver'](_0x365487),_0x4304ce['editing']['view']['addObserver'](_0x316cfa);let _0x27788b=!0x1;this['listenTo'](_0x275332['view']['document'],'pointerdown',(_0x129c86,_0x14f494)=>{const {target:_0x531ec9}=_0x14f494,_0x5a6dfc=_0x275332['view']['document']['selection'];_0x27788b=!!(_0x531ec9?.['is']('element','a')&&_0x531ec9['parent']?.['is']('element','sup')&&_0x531ec9['parent']['hasClass']('footnote'))&&_0x5a6dfc['getSelectedElement']()===_0x531ec9['parent'];},{'priority':'high'}),this['listenTo'](_0x275332['view']['document'],'click',(_0x2cbca0,_0x51b170)=>{const {target:_0x164dd0}=_0x51b170;if(!_0x164dd0?.['is']('element','a'))return;if(_0x164dd0['parent']?.['is']('element','sup')&&_0x164dd0['parent']['hasClass']('footnote')&&!_0x27788b)return void _0x51b170['preventDefault']();let _0x59d082=_0x164dd0['getAttribute']('href');if(!_0x59d082?.['startsWith']('#'))return;_0x59d082=_0x59d082['slice'](0x1);let _0x5ebfea=!0x1;(_0x59d082['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x59d082['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x59d082))&&(_0x5ebfea=!0x0),_0x5ebfea&&(_0x51b170['preventDefault'](),_0x2cbca0['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x4de152}={}){return(_0x298dc6,{writer:_0x18849a})=>{if(!M(_0x298dc6))return null;if(!_0x4de152)return _0x18849a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x9f4585=_0x18849a['createContainerElement']('p');return _0x18849a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x9f4585),_0x9f4585;};}function M(_0x1dde51){const {parent:_0x2581f6}=_0x1dde51;if(!_0x2581f6?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2581f6['childCount'])return!0x1;for(const _0x45f34a of _0x1dde51['getAttributeKeys']())if(!_0x45f34a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x45f34a)return!0x1;return!0x0;}function U(_0x4b5a11,_0x3fa1a3){if(!_0x4b5a11['is']('element','paragraph'))return!0x1;const _0x7a138a=_0x3fa1a3['toViewElement'](_0x4b5a11);return!!_0x7a138a&&M(_0x4b5a11)!==_0x7a138a['is']('element','span');}function q(_0x102860){return _0x54400b(_0x102860)&&_0x102860['is']('containerElement')&&!!_0x102860['getCustomProperty']('footnotesDefinitions');}function H(_0x1c1416,_0xc8a032={}){const _0x551f36=_0x1c1416['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x7a4d6e=_0x1c1416['createContainerElement']('ol',{'class':'footnotes-list'},_0x1c1416['createSlot']());return _0x1c1416['createContainerElement']('div',{'class':'footnotes',..._0xc8a032},[_0x551f36,_0x7a4d6e]);}function z(_0x500a7f,_0x3b29ff){const _0x1388e7=_0x500a7f['getAttribute']('footnoteId'),_0x267d6b=_0x500a7f['getAttribute']('footnoteCounter'),_0xd04c3=_0x3b29ff['createUIElement']('a',{'href':'#'+_0x1388e7},function(_0x46c0b0){const _0xd9dd7b=this['toDomElement'](_0x46c0b0);return _0xd9dd7b['textContent']=_0x267d6b,_0xd9dd7b;}),_0x2e8de7=_0x3b29ff['createContainerElement']('sup',{'id':'ref-'+_0x1388e7,'class':'footnote'},[_0xd04c3]);return _0x2e8de7['getFillerOffset']=()=>null,_0x2e8de7;}function X(_0x1eeffa,_0x499361,_0x49ee38,{dataPipeline:_0x3cb8ea}={}){const {t:t}=_0x49ee38,_0x4ca96c=_0x1eeffa['getAttribute']('footnoteId'),_0x35c95f=_0x499361['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4ca96c},function(_0x3dd1b0){const _0x2ecb82=this['toDomElement'](_0x3dd1b0);return _0x2ecb82['innerText']='^',_0x2ecb82;}),_0x2826f6=_0x3cb8ea?_0x499361['createContainerElement']('div',{'class':'footnote-content'}):_0x8c574b(_0x499361['createEditableElement']('div',{'class':'footnote-content'}),_0x499361,{'label':t('Footnote\x20content.')});return _0x499361['insert'](_0x499361['createPositionAt'](_0x2826f6,0x0),_0x499361['createSlot']()),_0x499361['createContainerElement']('li',{'class':'footnote-definition','id':_0x4ca96c},[_0x35c95f,_0x2826f6]);}class J extends _0x13292b{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x220551];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4002fa}=this,{plugins:_0x52a9df,model:_0x31d764}=_0x4002fa,_0x435760=_0x52a9df['get'](_0x220551),_0x59deb9=_0x52a9df['get'](K);this['listenTo'](_0x435760,'outputTransformation',(_0x3acdc1,_0x30f18e)=>{const _0x5ccd4a=Q(_0x31d764['createRangeIn'](_0x30f18e['content']));if(!_0x5ccd4a['length'])return;const _0x4ae302=_0x59deb9['getFootnotes'](),_0xc54092=_0x5ccd4a['reduce']((_0x37ee03,_0xdf8829)=>{const _0x8fc000=_0x4ae302['find'](_0x2b3345=>_0x2b3345['id']===_0xdf8829);if(_0x8fc000){const _0x4d3f07=_0x4002fa['data']['toView'](_0x8fc000['definition'],{'isClipboardPipeline':!0x0}),_0x52199f=_0x4002fa['data']['htmlProcessor']['toData'](_0x4d3f07);_0x37ee03[_0x8fc000['id']]=_0x52199f;}return _0x37ee03;},Object['create'](null));_0x30f18e['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xc54092));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x46ee5b}=this,{model:_0x1ade52,plugins:_0x4cf09d}=_0x46ee5b,{view:_0x36b284}=_0x46ee5b['editing'],_0x343360=_0x4cf09d['get'](_0x220551),_0x29acbc=_0x4cf09d['get'](K),_0x3e41cc=_0x46ee5b['config']['get']('footnotes.multiBlock');let _0x5ab848=null;this['listenTo'](_0x36b284['document'],'clipboardInput',(_0x2bbf7e,_0x39366e)=>{const _0x1cc88a=_0x39366e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5ab848=_0x1cc88a?JSON['parse'](_0x1cc88a):null;}),this['listenTo'](_0x343360,'contentInsertion',(_0x14e20b,_0x4ee9d2)=>{const _0x2e61cd=_0x4ee9d2['sourceEditorId']===this['editor']['id'];_0x2e61cd&&'drop'===_0x4ee9d2['method']||_0x1ade52['change'](_0x525be7=>{let _0x2f32a0=_0x29acbc['getFootnotesDefinitionsObjectElement']();const _0x4be108=!!_0x2f32a0&&Array['from'](_0x1ade52['document']['selection']['getSelectedBlocks']())['includes'](_0x2f32a0);if(!_0x5ab848&&function(_0x1223ee){for(const {item:_0x7baeb1}of _0x1223ee)if(_0x7baeb1['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x1ade52['createRangeIn'](_0x4ee9d2['content']))&&(_0x5ab848=function(_0x4843e3,_0x1161ad){const _0x28bbe1=G(_0x4843e3,_0x1161ad);if(!_0x28bbe1)return null;const _0x4fe763=Object['create'](null);for(const _0x3c76bd of _0x28bbe1['getChildren']())_0x3c76bd['is']('element','footnoteDefinition')&&_0x3c76bd['hasAttribute']('footnoteId')&&(_0x4fe763[_0x3c76bd['getAttribute']('footnoteId')]=_0x4843e3['cloneElement'](_0x3c76bd,!0x0));return Object['keys'](_0x4fe763)['length']?_0x4fe763:null;}(_0x525be7,_0x4ee9d2['content'])),(_0x2f32a0&&!_0x4be108||!_0x2f32a0&&!_0x5ab848)&&function(_0x36f945,_0x23489a){const _0x21d5f6=[];for(const {item:_0x270927}of _0x36f945['createRangeIn'](_0x23489a))_0x270927['is']('element','footnotesDefinitions')&&_0x21d5f6['push'](_0x270927);for(const _0x200b6f of _0x21d5f6)_0x36f945['remove'](_0x200b6f);}(_0x525be7,_0x4ee9d2['content']),!_0x5ab848)return;const {selection:_0x112c6c}=_0x1ade52['document'],_0x5253f7=_0x112c6c['getFirstRange']()['root'];_0x2f32a0&&!_0x4be108||(_0x2f32a0=G(_0x525be7,_0x4ee9d2['content']),_0x2f32a0||=_0x29acbc['_insertEmptyFootnotesDefinitionsContainer'](_0x525be7,_0x5253f7));const _0xc68d6b=Array['from'](_0x112c6c['getRanges']())['flatMap'](Q),_0x36cf4b=function(_0x4da81d,_0x1c6566,_0x2ec0de){const _0x1186a9=Object['create'](null);for(const {item:_0x9e9c6a}of _0x4da81d['createRangeIn'](_0x1c6566))if(_0x9e9c6a['is']('element','footnoteRef')){const _0x17e238=_0x9e9c6a['getAttribute']('footnoteId');if(!_0x2ec0de(_0x17e238))continue;_0x1186a9[_0x17e238]||(_0x1186a9[_0x17e238]=_0x285602()),_0x4da81d['setAttribute']('footnoteId',_0x1186a9[_0x17e238],_0x9e9c6a);}return _0x1186a9;}(_0x525be7,_0x4ee9d2['content'],_0x182af8=>{if(!_0x2e61cd)return!0x0;return!!_0x29acbc['getFootnote'](_0x182af8)&&!_0xc68d6b['includes'](_0x182af8);});for(const [_0x4354dd,_0x23c60f]of Object['entries'](_0x5ab848)){const _0x201be5=_0x36cf4b[_0x4354dd]||_0x4354dd;let _0x37322e;if('string'!=typeof _0x23c60f)_0x37322e=_0x23c60f,_0x201be5!==_0x4354dd&&_0x525be7['setAttribute']('footnoteId',_0x201be5,_0x37322e);else{_0x37322e=_0x525be7['createElement']('footnoteDefinition',{'footnoteId':_0x201be5});const _0x39c37b=_0x46ee5b['data']['htmlProcessor']['toView'](_0x23c60f);let _0x34749b;if(_0x3e41cc)_0x34749b=_0x46ee5b['data']['toModel'](_0x39c37b,_0x37322e);else{_0x34749b=_0x525be7['createElement']('footnoteInlineContent');const _0xa862a=_0x46ee5b['data']['toModel'](_0x39c37b,_0x34749b);_0x525be7['insert'](_0xa862a,_0x34749b);}_0x525be7['append'](_0x34749b,_0x37322e);}_0x525be7['insert'](_0x37322e,_0x2f32a0,'end');}_0x5ab848=null;});});}}function G(_0x473712,_0x3c1f33){for(const {item:_0x52fabd}of _0x473712['createRangeIn'](_0x3c1f33))if(_0x52fabd['is']('element','footnotesDefinitions'))return _0x52fabd;return null;}function Q(_0x43e732){const _0x2e430f=new Set();for(const {item:_0x3b222b}of _0x43e732)_0x3b222b['is']('element','footnoteRef')&&_0x2e430f['add'](_0x3b222b['getAttribute']('footnoteId'));return Array['from'](_0x2e430f);}class W extends _0x13292b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1e0534}=this,{componentFactory:_0x412073}=_0x1e0534['ui'];_0x412073['add']('insertFootnote',Y(_0x1e0534,_0x3f091b)),_0x412073['add']('menuBar:insertFootnote',Y(_0x1e0534,_0x319956)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e27c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17b897;for(const _0x5c89c8 in _0x1e27c0){const _0x5384be=_0x5c89c8,_0x316a94=_0x1e27c0[_0x5384be];if('footnotesLicenseKeyValid'==_0x316a94||'footnotesLicenseKeyInvalid'==_0x316a94||'footnotesLicenseKeyExpired'==_0x316a94||'footnotesLicenseKeyDomainLimit'==_0x316a94||'footnotesLicenseKeyNotAllowed'==_0x316a94||'footnotesLicenseKeyEvaluationLimit'==_0x316a94||'footnotesLicenseKeyUsageLimit'==_0x316a94){delete _0x1e27c0[_0x5384be],_0x17b897=_0x316a94,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x17b897&&_0x1e27c0['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x17b897&&_0x1e27c0['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x17b897&&_0x1e27c0['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x17b897&&_0x1e27c0['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x17b897&&_0x1e27c0['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x17b897&&_0x1e27c0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x36a7e4,_0x21dad9){const _0x43a2cc=_0x36a7e4['commands']['get']('insertFootnote');return _0x41499f=>{const {t:t}=_0x41499f,_0x470169=new _0x21dad9(_0x41499f),_0x5c7e73=_0x470169 instanceof _0x319956;return _0x470169['bind']('isEnabled')['to'](_0x43a2cc,'isEnabled'),_0x470169['set']({'label':t(_0x5c7e73?'Footnote':'Insert\x20footnote'),'icon':_0x34315e,'tooltip':!0x0}),_0x470169['on']('execute',()=>{_0x43a2cc['execute'](),_0x36a7e4['editing']['view']['focus']();}),_0x470169;};}class Z extends _0x13292b{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 _0x5cb100{['refresh'](){const {editor:_0x2b68ba}=this,_0x17c225=_0x2b68ba['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x17c225,this['value']=_0x17c225?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2e92d0}){const {editor:_0x545f9e}=this,_0x5b74d1=_0x545f9e['plugins']['get'](K),_0x2f3969=_0x5b74d1['getFootnotesDefinitionsObjectElement']();_0x2f3969&&ot['includes'](_0x2e92d0)&&_0x545f9e['model']['change'](_0xae454d=>{_0xae454d['setAttribute']('footnotesListStyle',_0x2e92d0,_0x2f3969),_0x5b74d1['_updateFootnotesCounters'](_0xae454d);});}}class it extends _0x5cb100{['refresh'](){const {editor:_0x135fe0}=this,_0x5910f3=_0x135fe0['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5910f3,this['value']=_0x5910f3?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x38a15d}){const {editor:_0x417fdd}=this,_0xda7ee5=_0x417fdd['plugins']['get'](K),_0x5bd717=_0xda7ee5['getFootnotesDefinitionsObjectElement']();_0x5bd717&&Number['isInteger'](_0x38a15d)&&_0x417fdd['model']['change'](_0x40ded7=>{_0x40ded7['setAttribute']('footnotesListStart',_0x38a15d,_0x5bd717),_0xda7ee5['_updateFootnotesCounters'](_0x40ded7);});}}function st(_0x44bc2b,_0x10ceba){let _0x8cb34='',_0x3bcd80=_0x44bc2b;for(;_0x3bcd80>0x0;){const _0x29d12f=(_0x3bcd80-0x1)%0x1a;_0x8cb34=String['fromCharCode'](0x61+_0x29d12f)+_0x8cb34,_0x3bcd80=Math['floor']((_0x3bcd80-0x1)/0x1a);}return _0x10ceba?_0x8cb34['toUpperCase']():_0x8cb34;}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(_0x24c1a2,_0x156519){let _0x5dd9bb='',_0x3297e5=_0x24c1a2;for(const {value:_0x17ae29,numeral:_0x50c590}of rt)for(;_0x3297e5>=_0x17ae29;)_0x5dd9bb+=_0x50c590,_0x3297e5-=_0x17ae29;return _0x156519?_0x5dd9bb:_0x5dd9bb['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x13292b{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d8ac0}=this;_0x2d8ac0['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2d8ac0['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2d8ac0['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x2d8ac0['commands']['add']('footnotesStyle',new nt(_0x2d8ac0)),_0x2d8ac0['commands']['add']('footnotesStart',new it(_0x2d8ac0)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2e3d63}=this,{schema:_0x26879e}=_0x2e3d63['model'];_0x26879e['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1e2a98}=this,{conversion:_0x532b63,model:_0x159813}=_0x1e2a98,{schema:_0x34a5c4}=_0x159813;_0x532b63['for']('upcast')['add'](_0x45f372=>{_0x45f372['on']('element:ol',(_0x1b07b6,_0x12c177,_0x23cee9)=>{const _0x284898=_0x12c177['viewItem'],_0x3f0d0a=_0x12c177['modelCursor']?.['parent'];_0x284898['hasClass']('footnotes-list')&&_0x3f0d0a?.['is']('element','footnotesDefinitions')&&(function(_0xd81d83,_0x387018,_0x3b5ac8,_0x16d970){if(!_0x16d970['checkAttribute'](_0x387018,'footnotesListStart'))return;let _0x1cef4a=0x1;const _0x3adaab=_0x3b5ac8['consumable']['consume'](_0xd81d83,{'attributes':'start'});if(_0x3adaab){const _0x23dc66=Number['parseInt'](_0xd81d83['getAttribute']('start'),0xa);Number['isNaN'](_0x23dc66)||(_0x1cef4a=_0x23dc66);}!_0x3adaab&&_0x387018['hasAttribute']('footnotesListStart')||_0x3b5ac8['writer']['setAttribute']('footnotesListStart',_0x1cef4a,_0x387018);}(_0x284898,_0x3f0d0a,_0x23cee9,_0x34a5c4),function(_0x13ef4c,_0x2b5b69,_0x1ca16f,_0x1c5520){if(!_0x1c5520['checkAttribute'](_0x2b5b69,'footnotesListStyle'))return;let _0x1581c8='decimal',_0x1eca5d=!0x1;if(_0x1ca16f['consumable']['consume'](_0x13ef4c,{'attributes':'type'})){const _0x574db8={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x13ef4c['getAttribute']('type')];_0x574db8&&(_0x1581c8=_0x574db8),_0x1eca5d=!0x0;}if(_0x1ca16f['consumable']['consume'](_0x13ef4c,{'styles':'list-style-type'})){const _0x448936=ct(_0x13ef4c['getStyle']('list-style-type'));_0x448936&&(_0x1581c8=_0x448936),_0x1eca5d=!0x0;}!_0x1eca5d&&_0x2b5b69['hasAttribute']('footnotesListStyle')||_0x1ca16f['writer']['setAttribute']('footnotesListStyle',_0x1581c8,_0x2b5b69);}(_0x284898,_0x3f0d0a,_0x23cee9,_0x34a5c4));});}),_0x532b63['for']('downcast')['add'](_0x4e3864=>{_0x4e3864['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x283dbb,_0x465641,_0x3c4ba1)=>{if(!_0x3c4ba1['consumable']['consume'](_0x465641['item'],_0x283dbb['name']))return;const _0xfb4241=ut(_0x465641['item'],_0x3c4ba1['mapper']),{attributeNewValue:_0x1041c2}=_0x465641;null==_0x1041c2||0x1===_0x1041c2?_0x3c4ba1['writer']['removeAttribute']('start',_0xfb4241):_0x3c4ba1['writer']['setAttribute']('start',String(_0x1041c2),_0xfb4241);}),_0x4e3864['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x513564,_0x1e496a,_0x4a964b)=>{if(!_0x4a964b['consumable']['consume'](_0x1e496a['item'],_0x513564['name']))return;const _0x325013=ut(_0x1e496a['item'],_0x4a964b['mapper']),{attributeNewValue:_0x468c43}=_0x1e496a;_0x468c43&&'decimal'!==_0x468c43?_0x4a964b['writer']['setStyle']('list-style-type',_0x468c43,_0x325013):_0x4a964b['writer']['removeStyle']('list-style-type',_0x325013);});});}['_definePostfixer'](){const {editor:_0x515e47}=this,{model:_0x23e635}=_0x515e47,_0x1e3811=_0x515e47['plugins']['get'](K),_0x56a99f=this['_getDefaultListStyle'](),_0x325563=this['_getDefaultStartIndex']();_0x23e635['document']['registerPostFixer'](_0x3384b6=>{const _0x169d1e=_0x23e635['document']['differ']['getChanges']();let _0x520b5c=!0x1;for(const _0x4e10a7 of _0x169d1e){if('insert'!==_0x4e10a7['type']||'$text'===_0x4e10a7['name'])continue;const _0x4d80f5=_0x23e635['createRangeOn'](_0x4e10a7['position']['nodeAfter']);for(const _0x36cdef of _0x4d80f5['getItems']())_0x36cdef['is']('element','footnotesDefinitions')&&(!_0x36cdef['hasAttribute']('footnotesListStart')&&_0x23e635['schema']['checkAttribute'](_0x36cdef,'footnotesListStart')&&(_0x3384b6['setAttribute']('footnotesListStart',_0x325563,_0x36cdef),_0x520b5c=!0x0),!_0x36cdef['hasAttribute']('footnotesListStyle')&&_0x23e635['schema']['checkAttribute'](_0x36cdef,'footnotesListStyle')&&(_0x3384b6['setAttribute']('footnotesListStyle',_0x56a99f,_0x36cdef),_0x520b5c=!0x0));}return _0x520b5c&&_0x1e3811['_updateFootnotesCounters'](_0x3384b6),_0x520b5c;});}['_defineFormatter'](){const {editor:_0xce92ea}=this;_0xce92ea['plugins']['get'](K)['setFootnoteFormatter'](_0x12eae4=>this['_formatFootnoteListValue'](_0x12eae4));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xfae31,value:_0x512d9c,digits:_0x32f779}){const _0x69bf9f=_0xfae31['getAttribute']('footnotesListStyle'),_0x282402=_0xfae31['getAttribute']('footnotesListStart'),_0x458f1c=Math['floor'](_0x512d9c)+(_0x282402??0x1)-0x1;switch(_0x69bf9f){case'decimal-leading-zero':return function(_0x14839f,_0x3e75a5){return String(_0x14839f)['padStart'](_0x3e75a5,'0');}(_0x458f1c,Math['max'](0x2,_0x32f779));case'lower-alpha':case'lower-latin':return st(_0x458f1c,!0x1);case'upper-alpha':case'upper-latin':return st(_0x458f1c,!0x0);case'lower-roman':return lt(_0x458f1c,!0x1);case'upper-roman':return lt(_0x458f1c,!0x0);case'arabic-indic':return String(_0x458f1c)['replace'](/\d/g,_0x233370=>ft[Number(_0x233370)]);default:return String(_0x458f1c);}}}function ct(_0x448a1e){if('string'==typeof _0x448a1e){const _0x29dd8c=et[_0x448a1e];if(_0x29dd8c)return _0x29dd8c;if(ot['includes'](_0x448a1e))return _0x448a1e;}return null;}function ut(_0x353de2,_0x5d3d90){const _0x85360f=_0x5d3d90['toViewElement'](_0x353de2);return Array['from'](_0x85360f['getChildren']())['find'](_0x3fb434=>_0x3fb434['is']('element','ol')&&_0x3fb434['hasClass']('footnotes-list'));}class dt extends _0x927eb1{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x288be0();['keystrokes']=new _0x303a8c();['focusables']=new _0x1b5100();['focusCycler'];constructor(_0x544fee,{styleButtonViews:_0x97fe54,styleGridAriaLabel:_0x1918c0}){super(_0x544fee),(this['focusCycler']=new _0x17078f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x97fe54,_0x1918c0),[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 _0x37a74f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x37a74f['element']);_0x51698d({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x3a9347['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 _0x38e2db=_0xa6830c=>_0xa6830c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x38e2db),this['keystrokes']['set']('arrowleft',_0x38e2db),this['keystrokes']['set']('arrowup',_0x38e2db),this['keystrokes']['set']('arrowdown',_0x38e2db);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2e69e8,_0x44a5be){const _0x52a9dd=new _0x927eb1(this['locale']);return _0x52a9dd['children']=_0x52a9dd['createCollection'](),_0x52a9dd['children']['addMany'](_0x2e69e8),_0x52a9dd['setTemplate']({'tag':'div','attributes':{'aria-label':_0x44a5be,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x52a9dd['children']}),_0x52a9dd['children']['delegate']('execute')['to'](this),_0x52a9dd['focus']=function(){for(const _0x50e0d1 of this['children'])if(_0x50e0d1 instanceof _0x3f091b&&_0x50e0d1['isOn'])return void _0x50e0d1['focus']();this['children']['first']['focus']();},_0x52a9dd['focusTracker']=new _0x288be0(),_0x52a9dd['keystrokes']=new _0x303a8c(),_0x52a9dd['render'](),_0x52a9dd['keystrokes']['listenTo'](_0x52a9dd['element']),this['children']['add'](_0x52a9dd),_0x52a9dd;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5449af=this['_createStartIndexPropertyView'](),_0x52fc63=[_0x5449af],_0x3ed200=new _0x4b46e7(this['locale'],_0x52fc63);return _0x3ed200['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3ed200['buttonView']['bind']('isEnabled')['toMany'](_0x52fc63,'isEnabled',(..._0x13fd32)=>_0x13fd32['some'](_0x46d004=>_0x46d004)),_0x3ed200['buttonView']['on']('change:isEnabled',(_0xcc56e,_0x3cb149,_0xdf656c)=>{_0xdf656c||(_0x3ed200['isCollapsed']=!0x0);}),this['children']['add'](_0x3ed200),[_0x5449af,_0x3ed200];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x42ce47=new _0x43e67a(this['locale'],_0x1d366c);return _0x42ce47['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x42ce47['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x42ce47['fieldView']['on']('input',()=>{const _0x351ad1=_0x42ce47['fieldView']['element'],_0x2e4faf=_0x351ad1['valueAsNumber'];Number['isNaN'](_0x2e4faf)?_0x42ce47['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x351ad1['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2e4faf}):_0x42ce47['errorText']=t(_0x2e4faf<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x42ce47;}}class ht extends _0x13292b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x48617e,_0x8e24ec];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4d5214}=this,{componentFactory:_0x114387}=_0x4d5214['ui'];_0x4d5214['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x114387['add']('footnotesStyle',function(_0x3b45f0){return _0x376739=>{const {t:t}=_0x376739,_0x4e1285=_0x3b45f0['commands']['get']('footnotesStyle'),_0x4c0549=_0x1bfa78(_0x376739),{buttonView:_0x1c7660}=_0x4c0549;return _0x4c0549['class']='ck-footnotes-styles-dropdown',_0x4c0549['bind']('isEnabled')['to'](_0x4e1285,'isEnabled'),_0x1c7660['set']({'label':t('Footnotes\x20style'),'icon':_0x34315e,'tooltip':!0x0}),_0x4c0549['once']('change:isOpen',()=>{const _0xffe3a=function({editor:_0x255c5e,dropdownView:_0x307f9b}){const {t:t}=_0x255c5e['locale'],_0x4e1764=t('Footnotes\x20definitions\x20styles'),_0x2a6647=function(_0x22e0f4){const {t:t}=_0x22e0f4['locale'],_0x48b10f=_0x22e0f4['config']['get']('footnotes.footnotesProperties.listStyles'),_0x197afc=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x37b01d},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x5659e1},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x2772c8},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x44fee5},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x3f7928},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x154fca},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x202b24}];return _0x48b10f['map'](_0x34e9aa=>{const _0x48ad56=ct(_0x34e9aa),_0x4a7960=_0x197afc['find'](_0xca8e84=>_0xca8e84['style']===_0x48ad56);return function(_0x5683b3,_0x19b456){const {locale:_0x3d7353}=_0x5683b3,{label:_0xf1ee13,icon:_0xe4f865,tooltip:_0x2ab417,style:_0x4bdd9b}=_0x19b456,_0x19b1ec=_0x5683b3['commands']['get']('footnotesStyle'),_0x3d6c4f=new _0x3f091b(_0x3d7353);return _0x3d6c4f['set']({'label':_0xf1ee13,'icon':_0xe4f865,'tooltip':_0x2ab417}),_0x3d6c4f['bind']('isOn')['to'](_0x19b1ec,'value',_0x99c447=>_0x99c447===_0x4bdd9b),_0x3d6c4f['bind']('isEnabled')['to'](_0x19b1ec,'isEnabled'),_0x3d6c4f['on']('execute',()=>{_0x5683b3['execute']('footnotesStyle',{'value':_0x4bdd9b}),_0x5683b3['editing']['view']['focus']();}),_0x3d6c4f;}(_0x22e0f4,_0x4a7960);});}(_0x255c5e),_0x18be68=new dt(_0x255c5e['locale'],{'styleGridAriaLabel':_0x4e1764,'styleButtonViews':_0x2a6647}),_0x8c1ef3=_0x255c5e['commands']['get']('footnotesStart');return _0x18be68['startIndexFieldView']['bind']('isEnabled')['to'](_0x8c1ef3),_0x18be68['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x8c1ef3),_0x18be68['on']('footnotesListStart',(_0x1df6e8,_0x6d81ed)=>{_0x255c5e['execute']('footnotesStart',{'value':_0x6d81ed['startIndex']});}),_0x18be68['delegate']('execute')['to'](_0x307f9b),_0x18be68;}({'editor':_0x3b45f0,'dropdownView':_0x4c0549});_0x4c0549['panelView']['children']['add'](_0xffe3a);}),_0x4c0549;};}(_0x4d5214));}['afterInit'](){const {editor:_0x61be48}=this,{t:t}=_0x61be48['locale'],_0x3f17b7=_0x61be48['plugins']['get'](_0x8e24ec),{defaultPositions:_0x451604}=_0x329845;_0x3f17b7['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x61be48['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x403763=>{let _0xa005f7=_0x403763['getFirstPosition']()?.['parent'];return _0xa005f7?.['is']('$text')&&(_0xa005f7=_0xa005f7['parent']),_0xa005f7?.['is']('element')?_0xa005f7['findAncestor'](q):null;},'positions':[_0x451604['southArrowNorth'],_0x451604['southArrowNorthMiddleWest'],_0x451604['southArrowNorthMiddleEast'],_0x451604['southArrowNorthWest'],_0x451604['southArrowNorthEast'],_0x451604['northArrowSouth'],_0x451604['northArrowSouthMiddleWest'],_0x451604['northArrowSouthMiddleEast'],_0x451604['northArrowSouthWest'],_0x451604['northArrowSouthEast'],_0x451604['viewportStickyNorth']]});}}class mt extends _0x13292b{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 _0xca4277,Command as _0x238c5c}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4606c9,isWidget as _0x22860c,toWidgetEditable as _0x3d3e1d,WidgetToolbarRepository as _0x5ae0b7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x514d95,logWarning as _0x35e9f4,FocusTracker as _0x569d46,KeystrokeHandler as _0xcb1c00,global as _0x1b9e6c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5a76ed,ClickObserver as _0x281a55}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2f720e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4feee6,ButtonView as _0x4aa0c3,View as _0x1774ea,ViewCollection as _0x5842bc,FocusCycler as _0x3e6916,addKeyboardHandlingForGrid as _0x44da04,CollapsibleView as _0x204605,LabeledFieldView as _0x4c66cf,createLabeledInputNumber as _0x5bdaff,ContextualBalloon as _0x1d5ca5,BalloonPanelView as _0x43476f,createDropdown as _0x299e86}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x57e4d5,IconListStyleDecimal as _0x412a6d,IconListStyleDecimalLeadingZero as _0x15dd7d,IconListStyleLowerRoman as _0x301a2d,IconListStyleUpperRoman as _0x147260,IconListStyleLowerLatin as _0x22f87b,IconListStyleUpperLatin as _0x65f1cf,IconListStyleArabicIndic as _0x2469ae}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5a5069,_0x303da1){this['_model']=_0x5a5069,this['_elementName']=_0x303da1['elementName'],this['_getElementKey']=_0x303da1['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1a3418){const _0x20528f=new Set(),_0x27144d=new Map();for(const _0x329636 of _0x1a3418){if('insert'===_0x329636['type']&&'$text'!==_0x329636['name']&&_0x329636['position']['nodeAfter']){const _0x52ded3=this['_model']['createRangeOn'](_0x329636['position']['nodeAfter']);for(const _0x96ab2e of _0x52ded3['getItems']()){if(!_0x96ab2e['is']('element',this['_elementName']))continue;const _0x42ce68=this['_getElementKey'](_0x96ab2e);_0x27144d['has'](_0x42ce68)||_0x27144d['set'](_0x42ce68,[]),_0x27144d['get'](_0x42ce68)['push'](_0x96ab2e);}}if('remove'===_0x329636['type']&&_0x329636['name']===this['_elementName']){const _0x2c15cb=this['_getElementKey']({'getAttribute':_0x1201cf=>_0x329636['attributes']['get'](_0x1201cf)});_0x20528f['add'](_0x2c15cb);}}for(const [_0xca36a5,_0x109acc]of this['_trackedElements'])'$graveyard'===_0x109acc['root']['rootName']&&_0x20528f['add'](_0xca36a5);for(const _0xac560a of _0x20528f)this['_trackedElements']['delete'](_0xac560a);for(const [_0xc7116f,_0x37d277]of _0x27144d)this['_trackedElements']['set'](_0xc7116f,_0x37d277[_0x37d277['length']-0x1]);const _0x20ccea=new Set();for(const [_0x27d2a4,_0x16c45e]of _0x27144d)_0x20528f['has'](_0x27d2a4)&&(_0x20ccea['add'](_0x16c45e[0x0]),_0x16c45e['length']>0x1?_0x27144d['set'](_0x27d2a4,_0x16c45e['slice'](0x1)):_0x27144d['delete'](_0x27d2a4),_0x20528f['delete'](_0x27d2a4));return{'removed':Array['from'](_0x20528f),'inserted':Array['from'](_0x27144d['values']())['flat'](),'moved':Array['from'](_0x20ccea)};}}class K extends _0xca4277{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31a465){super(_0x31a465),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x450162=>_0x450162['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4bbf2c=>_0x4bbf2c['getAttribute']('footnoteId')});}['init'](){const {editor:_0x37c3b8}=this,{model:_0x31e807,data:_0x8153b8}=_0x37c3b8;_0x31e807['document']['registerPostFixer'](_0xd01961=>{const _0x8d3564=_0x31e807['document']['differ']['getChanges']();let _0x79e6f6=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xd01961,_0x8d3564)&&(_0x79e6f6=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xd01961,_0x8d3564)&&(_0x79e6f6=!0x0),this['_handleFootnoteReferencesChanges'](_0xd01961,_0x8d3564)&&(_0x79e6f6=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xd01961)&&(_0x79e6f6=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xd01961)&&(_0x79e6f6=!0x0),this['_sortFootnoteDefinitions'](_0xd01961)&&(_0x79e6f6=!0x0),_0x79e6f6;}),this['listenTo'](_0x31e807['document'],'change:data',()=>{_0x31e807['enqueueChange']({'isUndoable':!0x1},_0x3e1324=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x3e1324);});},{'priority':'low'}),this['listenTo'](_0x8153b8,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x409da2){return this['_footnotes']['find'](_0x4547fd=>_0x4547fd['id']===_0x409da2)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0xd82c43){this['_footnoteFormatter']=_0xd82c43;}['_updateFootnotesCounters'](_0x4902c0,_0x58c0ba=0x0){let _0x4bd681=!0x1;for(let _0x2f03a5=_0x58c0ba;_0x2f03a5<this['_footnotes']['length'];_0x2f03a5++)this['_updateFootnoteRefCounter'](_0x4902c0,_0x2f03a5)&&(_0x4bd681=!0x0);return _0x4bd681;}['_insertEmptyFootnotesDefinitionsContainer'](_0x435cd2,_0xf29b3e){const _0x53d0d2=_0x435cd2['createElement']('footnotesDefinitions',{});return _0x435cd2['append'](_0x53d0d2,_0xf29b3e),this['_footnotesDefinitions']=_0x53d0d2,_0x53d0d2;}['_ensureFootnotesDefinitionsContainerExists'](_0x310f22){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x54e1a9=this['_footnotes'][0x0]['reference']['root'],_0x525da8=this['_insertEmptyFootnotesDefinitionsContainer'](_0x310f22,_0x54e1a9);for(const _0x29fd9f of this['_footnotes'])_0x29fd9f['definition']['parent']||_0x310f22['insert'](_0x29fd9f['definition'],_0x525da8,'end');this['_updateFootnotesCounters'](_0x310f22);}['_handleFootnotesDefinitionsObjectChanges'](_0x20ffdc,_0x3f57e3){let _0x53b493=!0x1;const {inserted:_0x3274ee,removed:_0x46fbbe,moved:_0x477493}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3f57e3);if(_0x477493['length']&&(this['_footnotesDefinitions']=_0x477493[0x0]),_0x3274ee['length']){if(_0x3274ee['length']>0x1||this['_footnotesDefinitions']&&_0x3274ee['some'](_0x28e868=>_0x28e868!==this['_footnotesDefinitions'])){const _0x5e59a5=_0x20ffdc['createElement']('footnotesDefinitions',{}),_0x197828=[];this['_footnotesDefinitions']&&_0x197828['push'](this['_footnotesDefinitions']),_0x197828['push'](..._0x3274ee),_0x20ffdc['insert'](_0x5e59a5,_0x197828[0x0],'before');for(const _0x92bad of _0x197828)_0x20ffdc['move'](_0x20ffdc['createRangeIn'](_0x92bad),_0x20ffdc['createPositionAt'](_0x5e59a5,'end')),_0x20ffdc['remove'](_0x92bad);this['_footnotesDefinitions']=_0x5e59a5,this['_updateFootnotesCounters'](_0x20ffdc),_0x53b493=!0x0;}else this['_footnotesDefinitions']=_0x3274ee[0x0];}if(_0x46fbbe['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3fc771 of this['_footnotes'])_0x20ffdc['remove'](_0x3fc771['reference']),_0x53b493=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x53b493;}['_handleFootnoteDefinitionsChanges'](_0x35ec41,_0x1488b2){let _0x191faf=!0x1;const _0x2c4f2b=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xb24855,moved:_0x34bb82}=this['_footnoteDefsTracker']['getChanges'](_0x1488b2);for(const _0x5c73f4 of[..._0x34bb82,..._0xb24855]){const _0x1f1811=_0x5c73f4['getAttribute']('footnoteId'),_0x38c278=this['getFootnote'](_0x1f1811);_0x38c278&&(_0x38c278['definition']=_0x5c73f4),j(_0x35ec41,_0x2c4f2b,_0x5c73f4)&&(_0x191faf=!0x0);}return _0x191faf;}['_handleFootnoteReferencesChanges'](_0x4264d9,_0x3b627b){let _0x159fed=!0x1;const {removed:_0xa0f23c,inserted:_0x297b59,moved:_0x193b10}=this['_footnoteRefsTracker']['getChanges'](_0x3b627b);for(const _0x23c1af of _0xa0f23c)this['_handleRemoveFootnoteReferenceById'](_0x4264d9,_0x23c1af)&&(_0x159fed=!0x0);for(const _0x3d602e of _0x297b59)this['_handleInsertedFootnoteReference'](_0x4264d9,_0x3d602e)&&(_0x159fed=!0x0);for(const _0x40cc8d of _0x193b10)this['_handleMovedFootnoteReference'](_0x4264d9,_0x40cc8d)&&(_0x159fed=!0x0);return _0x159fed;}['_handleFootnotesDefinitionsObjectSync'](_0x5d9cf0){if(!this['_footnotesDefinitions'])return!0x1;let _0x3b7eed=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x11c4dd=[];for(const _0x24d3ed of this['_footnotesDefinitions']['getChildren']()){const _0x2004de=_0x24d3ed['getAttribute']('footnoteId');this['getFootnote'](_0x2004de)||(_0x11c4dd['unshift'](_0x24d3ed),_0x3b7eed=!0x0);}for(const _0x2dcc5d of _0x11c4dd)_0x5d9cf0['remove'](_0x2dcc5d);}const _0x52fbec=new Set(),_0x1f2e27=[];for(const _0x2e5721 of this['_footnotesDefinitions']['getChildren']()){const _0x42999e=_0x2e5721['getAttribute']('footnoteId');_0x52fbec['has'](_0x42999e)?(_0x1f2e27['unshift'](_0x2e5721),_0x3b7eed=!0x0):_0x52fbec['add'](_0x42999e);}for(const _0x1fec80 of _0x1f2e27)_0x5d9cf0['remove'](_0x1fec80);return this['_footnotesDefinitions']['childCount']||(_0x5d9cf0['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3b7eed=!0x0),_0x3b7eed;}['_handleInsertedFootnoteReference'](_0x124c1a,_0x75e6c8){if(this['_footnotes']['find'](_0x1e089f=>_0x1e089f['reference']===_0x75e6c8))return!0x1;let _0x56f113=!0x1;const _0x274700=_0x75e6c8['getAttribute']('footnoteId'),_0x34cc7b=this['_footnotes']['findIndex'](_0x8da11=>_0x8da11['id']===_0x274700);-0x1!==_0x34cc7b&&(_0x124c1a['remove'](this['_footnotes'][_0x34cc7b]['reference']),this['_footnotes']['splice'](_0x34cc7b,0x1),_0x56f113=!0x0);let _0x8cb55e=this['_footnotesDefinitions']?function(_0x44e9c,_0x1ebbf2){for(const _0x12ea2c of _0x44e9c['getChildren']())if(_0x12ea2c['getAttribute']('footnoteId')===_0x1ebbf2)return _0x12ea2c;return null;}(this['_footnotesDefinitions'],_0x274700):null;_0x8cb55e||(_0x8cb55e=_0x124c1a['createElement']('footnoteDefinition',{'footnoteId':_0x274700}),this['_footnotesDefinitions']&&(_0x124c1a['insert'](_0x8cb55e,this['_footnotesDefinitions'],'end'),_0x56f113=!0x0));const _0xb5b959={'id':_0x274700,'reference':_0x75e6c8,'definition':_0x8cb55e},_0x211202=T(this['editor']['model'],this['_footnotes'],_0x75e6c8);this['_footnotes']['splice'](_0x211202,0x0,_0xb5b959);let _0x52e1fc=_0x211202;return-0x1!==_0x34cc7b&&(_0x52e1fc=Math['min'](_0x211202,_0x34cc7b)),this['_updateFootnotesCounters'](_0x124c1a,_0x52e1fc)&&(_0x56f113=!0x0),_0x56f113;}['_handleRemoveFootnoteReferenceById'](_0x236140,_0x173fc9){const _0x55e87c=this['_footnotes']['findIndex'](_0x2120b3=>_0x2120b3['id']===_0x173fc9);if(-0x1===_0x55e87c)return!0x1;let _0x283306=!0x1;const _0x3f8016=this['_footnotes'][_0x55e87c];return'$graveyard'!==_0x3f8016['definition']['root']['rootName']&&(_0x236140['remove'](_0x3f8016['definition']),_0x283306=!0x0),this['_footnotes']['splice'](_0x55e87c,0x1),this['_updateFootnotesCounters'](_0x236140,_0x55e87c)&&(_0x283306=!0x0),_0x283306;}['_handleMovedFootnoteReference'](_0x32b171,_0x258178){const _0x468003=_0x258178['getAttribute']('footnoteId'),_0xa98cc3=this['_footnotes']['findIndex'](_0x91f67d=>_0x91f67d['id']===_0x468003),_0x5f1f27=this['_footnotes'][_0xa98cc3];let _0x42b579=!0x1;_0x5f1f27['reference']=_0x258178,this['_footnotes']['splice'](_0xa98cc3,0x1);const _0x2061a8=T(this['editor']['model'],this['_footnotes'],_0x258178);return this['_footnotes']['splice'](_0x2061a8,0x0,_0x5f1f27),this['_updateFootnotesCounters'](_0x32b171,Math['min'](_0xa98cc3,_0x2061a8))&&(_0x42b579=!0x0),_0x42b579;}['_updateFootnoteRefCounter'](_0x36c656,_0x10e3b2){if(!this['_footnotesDefinitions'])return!0x1;const _0x14294f=this['_footnotes'][_0x10e3b2];let _0x57cff1;return _0x57cff1=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x14294f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x10e3b2+0x1}):String(_0x10e3b2+0x1),_0x14294f['reference']['getAttribute']('footnoteCounter')!=_0x57cff1&&(_0x36c656['setAttribute']('footnoteCounter',_0x57cff1,_0x14294f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2c60b9){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x47527c,_0x438018){if(_0x47527c['length']!==_0x438018['length'])return!0x1;for(let _0x564890=0x0;_0x564890<_0x47527c['length'];_0x564890++)if(_0x47527c[_0x564890]!==_0x438018[_0x564890])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2777eb=>_0x2777eb['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x4d34b8=>_0x4d34b8['getAttribute']('footnoteId'))))return!0x1;let _0x53f9c9=!0x1;for(let _0x308717=0x0;_0x308717<this['_footnotes']['length'];_0x308717++){const _0x270a04=this['_footnotes'][_0x308717],_0x3c62cd=_0x2c60b9['createPositionBefore'](_0x270a04['definition']),_0xc9a31c=_0x2c60b9['createPositionAt'](this['_footnotesDefinitions'],_0x308717);_0x3c62cd['isEqual'](_0xc9a31c)||(_0x2c60b9['move'](_0x2c60b9['createRangeOn'](_0x270a04['definition']),_0xc9a31c),_0x53f9c9=!0x0);}return _0x53f9c9;}['_ensureFootnotesReferencesHaveProperOrder'](_0x46f802){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5b6450}=this['editor'];let _0x5741a4=!0x1;for(let _0x1cf0f5=0x0;_0x1cf0f5<this['_footnotes']['length']-0x1;_0x1cf0f5++){const _0x3864f0=this['_footnotes'][_0x1cf0f5],_0xdda4=this['_footnotes'][_0x1cf0f5+0x1],_0x5a0328=_0x5b6450['createPositionBefore'](_0x3864f0['reference']),_0x5b5487=_0x5b6450['createPositionBefore'](_0xdda4['reference']);'after'===_0x5a0328['compareWith'](_0x5b5487)&&(this['_handleMovedFootnoteReference'](_0x46f802,_0x3864f0['reference']),_0x1cf0f5=-0x1,_0x5741a4=!0x0);}return _0x5741a4;}}function j(_0x54878f,_0x250662,_0x5668ea){if(_0x5668ea['childCount'])return!0x1;const _0x21ec42=_0x250662?'paragraph':'footnoteInlineContent';return _0x54878f['insert'](_0x54878f['createElement'](_0x21ec42),_0x5668ea),!0x0;}function T(_0x35e89b,_0x3b9a6f,_0x1c3f79){if(0x0===_0x3b9a6f['length'])return 0x0;const _0x34720e=_0x35e89b['createPositionBefore'](_0x1c3f79);for(let _0x5325ea=0x0;_0x5325ea<_0x3b9a6f['length'];_0x5325ea++){const _0x4b77f1=_0x3b9a6f[_0x5325ea],_0xfc7e31=_0x35e89b['createPositionBefore'](_0x4b77f1['reference']);if('before'===_0x34720e['compareWith'](_0xfc7e31))return _0x5325ea;}const _0x457491=_0x1c3f79['root'];let _0x4400e6=-0x1;for(let _0x41297d=_0x3b9a6f['length']-0x1;_0x41297d>=0x0;_0x41297d--)if(_0x3b9a6f[_0x41297d]['reference']['root']===_0x457491){_0x4400e6=_0x41297d;break;}if(-0x1!==_0x4400e6)return _0x4400e6+0x1;const _0x37fa19=_0x35e89b['document']['getRootNames'](),_0x52c796=_0x37fa19['indexOf'](_0x457491['rootName']),_0x1a9895=_0x37fa19[_0x52c796+0x1];if(_0x1a9895){for(let _0x601c76=0x0;_0x601c76<_0x3b9a6f['length'];_0x601c76++)if(_0x3b9a6f[_0x601c76]['reference']['root']['rootName']===_0x1a9895)return _0x601c76;}return _0x3b9a6f['length'];}class V extends _0x238c5c{['refresh'](){const _0x34d7aa=this['editor']['model']['document']['selection'],_0x51ee21=this['_getPositionToInsertFootnote'](_0x34d7aa);this['isEnabled']=!!_0x51ee21;}['execute'](_0x49607b){const {editor:_0x14e1a3}=this,{model:_0x11244b}=_0x14e1a3,{selection:_0x248e21}=_0x11244b['document'],_0x3817db=this['_getPositionToInsertFootnote'](_0x248e21);if(!_0x3817db)return;const _0x480b03=_0x14e1a3['plugins']['get']('FootnotesEditing'),_0x383ef8=_0x49607b?.['footnoteId']??_0x514d95();!function(_0x13ad38){return'string'==typeof _0x13ad38&&_0x13ad38['length']>0x0&&!/\s/['test'](_0x13ad38)&&!/^\d/['test'](_0x13ad38);}(_0x383ef8)?_0x35e9f4('insert-footnote-command-executed-with-invalid-id'):(_0x11244b['change'](_0x21eda6=>{const _0x3eec46=_0x21eda6['createElement']('footnoteRef',{'footnoteId':_0x383ef8});_0x11244b['insertObject'](_0x3eec46,_0x3817db,null);}),_0x480b03['_moveSelectionToFootnoteDefinition'](_0x383ef8));}['_getPositionToInsertFootnote'](_0x1ffb3b){const {model:_0x1460f4}=this['editor'],{schema:_0x56ac74}=_0x1460f4,_0x4e2f0a=_0x1ffb3b['getFirstRange']();for(const _0x15cd7c of _0x4e2f0a['getItems']())if(_0x56ac74['isBlock'](_0x15cd7c)||_0x56ac74['isObject'](_0x15cd7c))return null;const _0x4c60e8=_0x4e2f0a['end'];return _0x56ac74['checkChild'](_0x4c60e8,'footnoteRef')?_0x4c60e8:null;}}class $ extends _0xca4277{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x6b6dcd}=this;_0x6b6dcd['config']['define']('footnotes.multiBlock',!0x0),_0x6b6dcd['commands']['add']('insertFootnote',new V(_0x6b6dcd)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x201dd7){const _0x40df1d=_0x32b01f([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]),_0x49f61a=0x47a28506,_0x5638ed=0x47a50016^_0x49f61a,_0x3cd99f=window[_0x32b01f([0x44,0x61,0x74,0x65])][_0x32b01f([0x6e,0x6f,0x77])](),_0x24c7f3=_0x201dd7[_0x32b01f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b1091=new window[(_0x32b01f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e283f=>{_0x24c7f3[_0x32b01f([0x6f,0x6e,0x63,0x65])](_0x32b01f([0x72,0x65,0x61,0x64,0x79]),_0x1e283f);}),_0x2e0b71={[_0x32b01f([0x6b,0x74,0x79])]:_0x32b01f([0x45,0x43]),[_0x32b01f([0x75,0x73,0x65])]:_0x32b01f([0x73,0x69,0x67]),[_0x32b01f([0x63,0x72,0x76])]:_0x32b01f([0x50,0x2d,0x32,0x35,0x36]),[_0x32b01f([0x78])]:_0x32b01f([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]),[_0x32b01f([0x79])]:_0x32b01f([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]),[_0x32b01f([0x61,0x6c,0x67])]:_0x32b01f([0x45,0x53,0x32,0x35,0x36])},_0x37b79d=_0x24c7f3[_0x32b01f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32b01f([0x67,0x65,0x74])](_0x32b01f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23a925(){let _0xb74192,_0x5b575d=null,_0x32b2a5=null;try{if(_0x37b79d==_0x32b01f([0x47,0x50,0x4c]))return _0x32b01f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb74192=_0x3db566(),!_0xb74192)return _0x32b01f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb74192[_0x32b01f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32b2a5=_0x1b1735(_0xb74192[_0x32b01f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb74192[_0x32b01f([0x6a,0x74,0x69])])),await _0x26c3d0()?_0xd90508()?_0xced77e()?_0x32b01f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x452f26()?(_0xb74192[_0x32b01f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32b01f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b575d=_0x41b57e(_0x32b01f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b89d0()):_0x32b01f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32b01f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32b01f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32b01f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xced77e(){const _0x393b9b=[_0x32b01f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32b01f([0x74,0x72,0x69,0x61,0x6c])][_0x32b01f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb74192[_0x32b01f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cd99f/0x3e8:0xe10*_0x5638ed;return _0xb74192[_0x32b01f([0x65,0x78,0x70])]<_0x393b9b;}function _0xd90508(){const _0x5d2826=_0xb74192[_0x32b01f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d2826&&(!!_0x5d2826[_0x32b01f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32b01f([0x2a]))||!!_0x5d2826[_0x32b01f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32b01f([0x46,0x4f,0x4f])));}function _0x452f26(){const _0x200a4f=_0xb74192[_0x32b01f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x200a4f||0x0==_0x200a4f[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50babc}=new URL(window[_0x32b01f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x200a4f[_0x32b01f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50babc))return!0x0;const _0x40a6e7=_0x50babc[_0x32b01f([0x73,0x70,0x6c,0x69,0x74])](_0x32b01f([0x2e]));return _0x200a4f[_0x32b01f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59a69c=>_0x59a69c[_0x32b01f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32b01f([0x2a])))[_0x32b01f([0x6d,0x61,0x70])](_0x499d78=>_0x499d78[_0x32b01f([0x73,0x70,0x6c,0x69,0x74])](_0x32b01f([0x2e])))[_0x32b01f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb11299=>_0xb11299[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40a6e7[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32b01f([0x6d,0x61,0x70])](_0x50006f=>Array(_0x40a6e7[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50006f[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32b01f([0x66,0x69,0x6c,0x6c])](_0x50006f[0x0]===_0x32b01f([0x2a])?_0x32b01f([0x2a]):'')[_0x32b01f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50006f))[_0x32b01f([0x73,0x6f,0x6d,0x65])](_0x3c0ee4=>_0x40a6e7[_0x32b01f([0x65,0x76,0x65,0x72,0x79])]((_0x57fd72,_0x56148f)=>_0x3c0ee4[_0x56148f]===_0x57fd72||_0x3c0ee4[_0x56148f]===_0x32b01f([0x2a])));}function _0x1b89d0(){return _0x5b575d&&_0x32b2a5?new window[(_0x32b01f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f73bf,_0x3c3f77)=>{_0x5b575d[_0x32b01f([0x74,0x68,0x65,0x6e])](_0x4f73bf,_0x3c3f77),_0x32b2a5[_0x32b01f([0x74,0x68,0x65,0x6e])](_0x3d0b54=>{_0x3d0b54!=_0x32b01f([0x56,0x61,0x6c,0x69,0x64])&&_0x4f73bf(_0x3d0b54);},_0x3c3f77);}):_0x5b575d||_0x32b2a5||_0x32b01f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b1735(_0x2e6b9f,_0x19f4ca){return new window[(_0x32b01f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365125=>{if(_0x3e87cf())return _0x365125(_0x32b01f([0x56,0x61,0x6c,0x69,0x64]));_0x5d78de(),_0x24c7f3[_0x32b01f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32b01f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dec3c=!0x1;const _0x16ee0b=_0x514d95();function _0x7663c0(_0x4e8c9a){return!!_0x4e8c9a&&(typeof _0x4e8c9a===_0x32b01f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e8c9a===_0x32b01f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e8c9a[_0x32b01f([0x74,0x68,0x65,0x6e])]===_0x32b01f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e8c9a[_0x32b01f([0x63,0x61,0x74,0x63,0x68])]===_0x32b01f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55fc27(_0xd374c1){_0x3e7fb6(_0xd374c1)[_0x32b01f([0x74,0x68,0x65,0x6e])](_0x8c9ac9=>{if(!_0x8c9ac9||_0x8c9ac9[_0x32b01f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32b01f([0x6f,0x6b]))return _0x32b01f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46fc6b(_0x437efc(_0x16ee0b+_0x19f4ca))!=_0x8c9ac9[_0x32b01f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32b01f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32b01f([0x56,0x61,0x6c,0x69,0x64]);})[_0x32b01f([0x74,0x68,0x65,0x6e])](_0x3df802=>(_0x51ee61(),_0x3df802),()=>{const _0x366098=_0x4e95f0();return null==_0x366098?(_0x51ee61(),_0x32b01f([0x56,0x61,0x6c,0x69,0x64])):_0x32b01f(_0x3cd99f-_0x366098>(0x63ae0106^_0x49f61a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32b01f([0x74,0x68,0x65,0x6e])](_0x365125)[_0x32b01f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x365125(_0x32b01f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5cf342=0x47946b86^_0x49f61a;function _0x51ee61(){const _0xf28bb5=_0x32b01f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46fc6b(_0x437efc(_0x2e6b9f)),_0x289572=_0x593368(_0x46fc6b(window[_0x32b01f([0x4d,0x61,0x74,0x68])][_0x32b01f([0x63,0x65,0x69,0x6c])](_0x3cd99f/_0x5cf342)));window[_0x32b01f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32b01f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf28bb5,_0x289572);}function _0x4e95f0(){const _0x52ef31=_0x32b01f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46fc6b(_0x437efc(_0x2e6b9f)),_0x1dd237=window[_0x32b01f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32b01f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52ef31);return _0x1dd237?window[_0x32b01f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x593368(_0x1dd237),0x10)*_0x5cf342:null;}function _0x3e7fb6(_0x118345){return new window[(_0x32b01f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a714d,_0xbe96fa)=>{_0x118345[_0x32b01f([0x74,0x68,0x65,0x6e])](_0x3a714d,_0xbe96fa),window[_0x32b01f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbe96fa,0x47a351c6^_0x49f61a);});}}_0x24c7f3[_0x32b01f([0x6f,0x6e])](_0x32b01f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6b6900,_0x40f4f8)=>{if(_0x40f4f8[0x0]!=_0x2e6b9f)return _0x365125(_0x32b01f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40f4f8[0x1]={..._0x40f4f8[0x1],[_0x32b01f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16ee0b};},{[_0x32b01f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32b01f([0x68,0x69,0x67,0x68])}),_0x24c7f3[_0x32b01f([0x6f,0x6e])](_0x32b01f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x262017=>{_0x7663c0(_0x262017[_0x32b01f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dec3c=!0x0,_0x55fc27(_0x262017[_0x32b01f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32b01f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32b01f([0x6c,0x6f,0x77])}),_0x3b1091[_0x32b01f([0x74,0x68,0x65,0x6e])](()=>{_0x4dec3c||_0x365125(_0x32b01f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e87cf(){return _0x24c7f3[_0x32b01f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32b01f([0x76,0x69,0x65,0x77])][_0x32b01f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32b01f([0x61,0x75,0x74,0x6f]);}function _0x5d78de(){_0x24c7f3[_0x32b01f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32b01f([0x76,0x69,0x65,0x77])][_0x32b01f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32b01f([0x61,0x75,0x74,0x6f]);}}function _0x41b57e(_0x2a85e6){const _0x4c10fe=[new window[(_0x32b01f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a72b0=>setTimeout(_0x5a72b0,0x47abbbca^_0x49f61a)),_0x3b1091[_0x32b01f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32b01f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cff6a=>{let _0x18f720=0x0;_0x24c7f3[_0x32b01f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32b01f([0x6f,0x6e])](_0x32b01f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f7ac9,_0xda578f)=>{_0xda578f[0x0][_0x32b01f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18f720++,_0x18f720==(0x47a280ee^_0x49f61a)&&(_0x4cff6a(),_0x2f7ac9[_0x32b01f([0x6f,0x66,0x66])]());});}))];return window[_0x32b01f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32b01f([0x72,0x61,0x63,0x65])](_0x4c10fe)[_0x32b01f([0x74,0x68,0x65,0x6e])](()=>_0x2a85e6);}async function _0x213d27(){await _0x3b1091,_0x24c7f3[_0x32b01f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32b01f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15e557,_0x24c7f3[_0x32b01f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32b01f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15e557,_0x24c7f3[_0x32b01f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32b01f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa31a19(_0xf590f6){const _0x2a0c2f=_0x329edc();_0x24c7f3[_0x2a0c2f]=_0x32b01f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf590f6,_0xf590f6!=_0x32b01f([0x56,0x61,0x6c,0x69,0x64])&&_0x213d27();}function _0x329edc(){const _0x38c947=window[_0x32b01f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32b01f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32b01f([0x6e,0x6f,0x77])]())[_0x32b01f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32b01f([0x2e]),'');let _0x4b3118=_0x32b01f([0x75]);for(let _0x1fcda4=0x0;_0x1fcda4<_0x38c947[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fcda4+=0x2){let _0x4fec41=window[_0x32b01f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38c947[_0x32b01f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fcda4,_0x1fcda4+0x2));_0x4fec41>=_0x40df1d[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4fec41-=_0x40df1d[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3118+=_0x40df1d[_0x4fec41];}return _0x4b3118;}function _0x3db566(){const _0x7aeff4=_0x37b79d[_0x32b01f([0x73,0x70,0x6c,0x69,0x74])](_0x32b01f([0x2e]));if(0x3!=_0x7aeff4[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d0196(_0x7aeff4[0x1]);function _0x2d0196(_0xecf736){const _0x14887c=_0x4ff929(_0xecf736);return _0x14887c&&_0x24535f()?_0x14887c:null;function _0x24535f(){const _0x15ee27=_0x14887c[_0x32b01f([0x6a,0x74,0x69])],_0x490231=window[_0x32b01f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15ee27[_0x32b01f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15ee27[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x434766={..._0x14887c,[_0x32b01f([0x6a,0x74,0x69])]:_0x15ee27[_0x32b01f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15ee27[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x434766[_0x32b01f([0x76,0x63])],_0x437efc(_0x434766)==_0x490231;}}}async function _0x26c3d0(){let _0x1bfee9=!0x0;try{const _0x3e1930=_0x37b79d[_0x32b01f([0x73,0x70,0x6c,0x69,0x74])](_0x32b01f([0x2e])),[_0x1e5b85,_0x5ad027,_0x3442eb]=_0x3e1930;return _0x4dede7(_0x1e5b85),await _0x145dcf(_0x1e5b85,_0x5ad027,_0x3442eb),_0x1bfee9;}catch{return!0x1;}function _0x4dede7(_0x2f2c1a){const _0x326883=_0x4ff929(_0x2f2c1a);_0x326883&&_0x326883[_0x32b01f([0x61,0x6c,0x67])]==_0x32b01f([0x45,0x53,0x32,0x35,0x36])||(_0x1bfee9=!0x1);}async function _0x145dcf(_0x556ef8,_0x3729ef,_0x2809f9){const _0x10fd8e=window[_0x32b01f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32b01f([0x66,0x72,0x6f,0x6d])](_0x49cf3e(_0x2809f9),_0x2ebffd=>_0x2ebffd[_0x32b01f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56b48c=new window[(_0x32b01f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32b01f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x556ef8+_0x32b01f([0x2e])+_0x3729ef),_0x4944ae=window[_0x32b01f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32b01f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4944ae)return;const _0xff3f36=await _0x4944ae[_0x32b01f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32b01f([0x6a,0x77,0x6b]),_0x2e0b71,{[_0x32b01f([0x6e,0x61,0x6d,0x65])]:_0x32b01f([0x45,0x43,0x44,0x53,0x41]),[_0x32b01f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32b01f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32b01f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4944ae[_0x32b01f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32b01f([0x6e,0x61,0x6d,0x65])]:_0x32b01f([0x45,0x43,0x44,0x53,0x41]),[_0x32b01f([0x68,0x61,0x73,0x68])]:{[_0x32b01f([0x6e,0x61,0x6d,0x65])]:_0x32b01f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xff3f36,_0x10fd8e,_0x56b48c)||(_0x1bfee9=!0x1);}}function _0x4ff929(_0x113976){return _0x113976[_0x32b01f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32b01f([0x65,0x79]))?JSON[_0x32b01f([0x70,0x61,0x72,0x73,0x65])](_0x49cf3e(_0x113976)):null;}function _0x49cf3e(_0xf44853){return window[_0x32b01f([0x61,0x74,0x6f,0x62])](_0xf44853[_0x32b01f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32b01f([0x2b]))[_0x32b01f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32b01f([0x2f])));}function _0x437efc(_0x5c083e){let _0x328197=0x1505;function _0x458af0(_0x9871e2){for(let _0x1e7122=0x0;_0x1e7122<_0x9871e2[_0x32b01f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e7122++){const _0xdc0d8e=_0x9871e2[_0x32b01f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e7122);_0x328197=(_0x328197<<0x5)+_0x328197+_0xdc0d8e,_0x328197&=_0x328197;}}function _0x58fb4c(_0x2aca7c){Array[_0x32b01f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2aca7c)?_0x2aca7c[_0x32b01f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58fb4c):_0x2aca7c&&typeof _0x2aca7c==_0x32b01f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32b01f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2aca7c)[_0x32b01f([0x73,0x6f,0x72,0x74])]()[_0x32b01f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51c6db,_0x24f860])=>{_0x458af0(_0x51c6db),_0x58fb4c(_0x24f860);}):_0x458af0(window[_0x32b01f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2aca7c));}return _0x58fb4c(_0x5c083e),_0x328197>>>0x0;}function _0x46fc6b(_0x29d5ff){return _0x29d5ff[_0x32b01f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32b01f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32b01f([0x30]));}function _0x593368(_0x5ad51c){return _0x5ad51c[_0x32b01f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32b01f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32b01f([0x6a,0x6f,0x69,0x6e])]('');}function _0x15e557(){}function _0x32b01f(_0x4b8537){return _0x4b8537['map'](_0x40e052=>String['fromCharCode'](_0x40e052))['join']('');}_0xa31a19(await _0x23a925());}(this);}['_moveSelectionToFootnoteDefinition'](_0x35112a){const {plugins:_0x4e26db,editing:_0x13132e,model:_0x1913c1}=this['editor'],_0x2d3b04=_0x4e26db['get'](K)['getFootnote'](_0x35112a);return!!_0x2d3b04&&(_0x1913c1['change'](_0x90d96=>{_0x90d96['setSelection'](_0x90d96['createPositionAt'](_0x2d3b04['definition'],'end'));}),_0x13132e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x547094){const {plugins:_0x39e826,editing:_0x3a6028,model:_0x48161b}=this['editor'],_0x38ab9c=_0x39e826['get'](K)['getFootnote'](_0x547094);return!!_0x38ab9c&&(_0x48161b['change'](_0x345e71=>{_0x345e71['setSelection'](_0x38ab9c['reference'],'on');}),_0x3a6028['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x576592}=this['editor']['model'],_0x1c1ac5=this['editor']['config']['get']('footnotes.multiBlock');_0x576592['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x576592['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x576592['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1c1ac5?_0x576592['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x576592['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x576592['addChildCheck'](_0x4e9cae=>{for(const _0x4d3093 of _0x4e9cae)if('footnoteDefinition'===_0x4d3093['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2bb4aa}=this,{conversion:_0x595f55,editing:_0x4f19e0}=_0x2bb4aa,{t:t}=_0x2bb4aa['locale'];_0x595f55['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x166ca4,{writer:_0x6a415,consumable:_0x225639})=>{const _0x3db7ee=_0x166ca4['getChild'](0x0);if(!_0x3db7ee||!_0x3db7ee['is']('element','a'))return null;const _0xea86b9=_0x3db7ee['getAttribute']('href')||'';if(!_0xea86b9['startsWith']('#'))return null;const _0x55feef=_0xea86b9['replace'](/^#/,'');if(!_0x55feef)return null;_0x225639['consume'](_0x3db7ee,{'name':!0x0,'attributes':['href']});for(const {item:_0x31ac18}of _0x4f19e0['view']['createRangeIn'](_0x3db7ee))_0x31ac18['is']('$textProxy')?_0x225639['consume'](_0x31ac18['textNode'],{'name':!0x0}):_0x31ac18['is']('element')&&_0x225639['consume'](_0x31ac18,{'name':!0x0});return _0x6a415['createElement']('footnoteRef',{'footnoteId':_0x55feef});}}),_0x595f55['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3faeca,{writer:_0x9168b1})=>z(_0x3faeca,_0x9168b1)}),_0x595f55['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x13994b,{writer:_0x1055f5})=>{const _0x33b7d7=_0x13994b['getAttribute']('footnoteCounter');return _0x4606c9(z(_0x13994b,_0x1055f5),_0x1055f5,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x33b7d7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4312a3}=this,{t:t}=_0x4312a3['locale'],{conversion:_0x8f8ca0}=_0x4312a3;_0x8f8ca0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x8f8ca0['for']('upcast')['add'](_0x497a23=>{_0x497a23['on']('element:ol',(_0x476604,_0x5175c2,_0x49c5ff)=>{const _0x2c3a12=_0x5175c2['viewItem'];if(!_0x2c3a12['hasClass']('footnotes-list')||!_0x5175c2['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x49c5ff['consumable']['consume'](_0x2c3a12,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4e4cf4,modelCursor:_0x16d547}=_0x49c5ff['convertChildren'](_0x5175c2['viewItem'],_0x5175c2['modelCursor']);_0x5175c2['modelRange']=_0x4e4cf4,_0x5175c2['modelCursor']=_0x16d547;}),_0x497a23['on']('element:hr',(_0x1c2691,_0x381704,_0x2e9bad)=>{const _0x41b23f=_0x381704['viewItem'];_0x41b23f['hasClass']('footnotes-divider')&&_0x381704['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2e9bad['consumable']['consume'](_0x41b23f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x8f8ca0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xd982cb,{writer:_0x26128c})=>H(_0x26128c)}),_0x8f8ca0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x111323,{writer:_0x2fde9a})=>{const _0x2f054a=H(_0x2fde9a,{'data-footnotes-list-label':t('Footnotes')}),_0x2a82e9=_0x4606c9(_0x2f054a,_0x2fde9a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2fde9a['setCustomProperty']('footnotesDefinitions',!0x0,_0x2a82e9),_0x2a82e9;}});}['_defineDefinitionConverters'](){const {editor:_0x1eb9c5}=this,{conversion:_0x448577,locale:_0x36bbea}=_0x1eb9c5,_0x1155b7=_0x1eb9c5['config']['get']('footnotes.multiBlock');_0x448577['for']('upcast')['add'](_0x45f8d4=>{_0x45f8d4['on']('element:li',(_0x1b92fc,_0x3eae09,_0x408016)=>{const _0x16bbae=_0x3eae09['viewItem'];if(!_0x16bbae['hasClass']('footnote-definition')||!_0x16bbae['getAttribute']('id'))return;const _0x2e91e1=_0x16bbae['parent'];if(!_0x2e91e1['is']('element','ol')||!_0x2e91e1['hasClass']('footnotes-list'))return;if(!_0x408016['consumable']['test'](_0x16bbae,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1714d3=_0x408016['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x16bbae['getAttribute']('id')});if(!_0x408016['safeInsert'](_0x1714d3,_0x3eae09['modelCursor']))return;_0x408016['consumable']['consume'](_0x16bbae,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xc263cf=Array['from'](_0x16bbae['getChildren']())['find'](_0x443244=>_0x443244['is']('element')&&_0x443244['hasClass']('footnote-content'));for(const _0x37b213 of _0x16bbae['getChildren']())_0x37b213['is']('element')&&(_0x408016['consumable']['consume'](_0x37b213,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x408016['consumable']['consume'](_0x37b213,{'name':!0x0,'classes':'footnote-content'}));if(_0xc263cf){if(_0x1155b7)_0x408016['convertChildren'](_0xc263cf,_0x1714d3);else{const _0x201105=_0x408016['writer']['createElement']('footnoteInlineContent');_0x408016['writer']['insert'](_0x201105,_0x1714d3),_0x408016['convertChildren'](_0xc263cf,_0x201105);}}_0x408016['updateConversionResult'](_0x1714d3,_0x3eae09);});}),_0x448577['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2a6321,{writer:_0x4497bf})=>X(_0x2a6321,_0x4497bf,_0x36bbea,{'dataPipeline':!0x0})}),_0x448577['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x49e7cb,{writer:_0x2f8d40})=>X(_0x49e7cb,_0x2f8d40,_0x36bbea)});}['_defineBogusParagraphConverters'](){const {editor:_0x22a93c}=this,{conversion:_0x1ff251}=_0x22a93c;_0x22a93c['config']['get']('footnotes.multiBlock')?(_0x1ff251['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x1ff251['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x22a93c['model']['document'],'change:data',()=>{!function(_0x3c3c6b,_0x39111a){const _0xc7d1b2=_0x3c3c6b['document']['differ'],_0x155093=new Set();for(const _0x32adcb of _0xc7d1b2['getChanges']()){const _0x20fb5e='attribute'==_0x32adcb['type']?_0x32adcb['range']['start']['parent']:_0x32adcb['position']['parent'];_0x20fb5e['is']('element','footnoteDefinition')&&_0x155093['add'](_0x20fb5e);}for(const _0x2d1291 of _0x155093['values']()){const _0x2139dd=Array['from'](_0x2d1291['getChildren']())['filter'](_0x5ec715=>U(_0x5ec715,_0x39111a['mapper']));for(const _0x18e2d3 of _0x2139dd)_0x39111a['reconvertItem'](_0x18e2d3);}}(_0x22a93c['model'],_0x22a93c['editing']);})):(_0x1ff251['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x1ff251['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xf9e12b,{writer:_0x55a417})=>{const _0x306ac0=_0x55a417['createContainerElement']('span');return _0x55a417['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x306ac0),_0x306ac0;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2ffc59}=this,{editing:_0x461936,t:t}=_0x2ffc59,_0x5e8445=_0x2ffc59['model']['document']['selection'];_0x2ffc59['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2ffc59['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x461936['view']['document'],'enter',(_0x3ad13f,_0x162af2)=>{const _0x161fbd=function(_0x462a53){const _0xb5e733=_0x462a53['getSelectedElement']();if(_0xb5e733?.['is']('element','footnoteRef'))return _0xb5e733;return null;}(_0x5e8445);if(_0x161fbd){const _0x4254de=_0x161fbd['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4254de),_0x162af2['preventDefault'](),_0x3ad13f['stop']();}},{'context':_0x22860c});}['_defineClickHandlers'](){const {editor:_0x2ec9a3}=this,{editing:_0x44e0bd}=_0x2ec9a3;_0x2ec9a3['editing']['view']['addObserver'](_0x5a76ed),_0x2ec9a3['editing']['view']['addObserver'](_0x281a55);let _0x248e77=!0x1;this['listenTo'](_0x44e0bd['view']['document'],'pointerdown',(_0x38f6d0,_0x79dbef)=>{const {target:_0xe684e0}=_0x79dbef,_0x1c898e=_0x44e0bd['view']['document']['selection'];_0x248e77=!!(_0xe684e0?.['is']('element','a')&&_0xe684e0['parent']?.['is']('element','sup')&&_0xe684e0['parent']['hasClass']('footnote'))&&_0x1c898e['getSelectedElement']()===_0xe684e0['parent'];},{'priority':'high'}),this['listenTo'](_0x44e0bd['view']['document'],'click',(_0x162e42,_0x41023)=>{const {target:_0x5c6312}=_0x41023;if(!_0x5c6312?.['is']('element','a'))return;if(_0x5c6312['parent']?.['is']('element','sup')&&_0x5c6312['parent']['hasClass']('footnote')&&!_0x248e77)return void _0x41023['preventDefault']();let _0x348a2f=_0x5c6312['getAttribute']('href');if(!_0x348a2f?.['startsWith']('#'))return;_0x348a2f=_0x348a2f['slice'](0x1);let _0x494771=!0x1;(_0x348a2f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x348a2f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x348a2f))&&(_0x494771=!0x0),_0x494771&&(_0x41023['preventDefault'](),_0x162e42['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x53475e}={}){return(_0x133eb2,{writer:_0x1f7ff6})=>{if(!M(_0x133eb2))return null;if(!_0x53475e)return _0x1f7ff6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x149310=_0x1f7ff6['createContainerElement']('p');return _0x1f7ff6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x149310),_0x149310;};}function M(_0x13b908){const {parent:_0x1a7eb4}=_0x13b908;if(!_0x1a7eb4?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1a7eb4['childCount'])return!0x1;for(const _0x5572d6 of _0x13b908['getAttributeKeys']())if(!_0x5572d6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5572d6)return!0x1;return!0x0;}function U(_0x536f95,_0x40a5ef){if(!_0x536f95['is']('element','paragraph'))return!0x1;const _0x489273=_0x40a5ef['toViewElement'](_0x536f95);return!!_0x489273&&M(_0x536f95)!==_0x489273['is']('element','span');}function q(_0x3b1a21){return _0x22860c(_0x3b1a21)&&_0x3b1a21['is']('containerElement')&&!!_0x3b1a21['getCustomProperty']('footnotesDefinitions');}function H(_0x35d03d,_0x5e2757={}){const _0x227346=_0x35d03d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x24ede3=_0x35d03d['createContainerElement']('ol',{'class':'footnotes-list'},_0x35d03d['createSlot']());return _0x35d03d['createContainerElement']('div',{'class':'footnotes',..._0x5e2757},[_0x227346,_0x24ede3]);}function z(_0x27001f,_0x58179e){const _0x4b27af=_0x27001f['getAttribute']('footnoteId'),_0x367b95=_0x27001f['getAttribute']('footnoteCounter'),_0x5377cd=_0x58179e['createUIElement']('a',{'href':'#'+_0x4b27af},function(_0x129fd3){const _0x220d04=this['toDomElement'](_0x129fd3);return _0x220d04['textContent']=_0x367b95,_0x220d04;}),_0x461c36=_0x58179e['createContainerElement']('sup',{'id':'ref-'+_0x4b27af,'class':'footnote'},[_0x5377cd]);return _0x461c36['getFillerOffset']=()=>null,_0x461c36;}function X(_0x1b995b,_0xa684ab,_0x27a810,{dataPipeline:_0x313735}={}){const {t:t}=_0x27a810,_0x884b08=_0x1b995b['getAttribute']('footnoteId'),_0x557bd1=_0xa684ab['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x884b08},function(_0x5a40cb){const _0x867d17=this['toDomElement'](_0x5a40cb);return _0x867d17['innerText']='^',_0x867d17;}),_0x47e054=_0x313735?_0xa684ab['createContainerElement']('div',{'class':'footnote-content'}):_0x3d3e1d(_0xa684ab['createEditableElement']('div',{'class':'footnote-content'}),_0xa684ab,{'label':t('Footnote\x20content.')});return _0xa684ab['insert'](_0xa684ab['createPositionAt'](_0x47e054,0x0),_0xa684ab['createSlot']()),_0xa684ab['createContainerElement']('li',{'class':'footnote-definition','id':_0x884b08},[_0x557bd1,_0x47e054]);}class J extends _0xca4277{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x2f720e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x157d3f}=this,{plugins:_0x1cd537,model:_0x51c780}=_0x157d3f,_0x5167d2=_0x1cd537['get'](_0x2f720e),_0x31c347=_0x1cd537['get'](K);this['listenTo'](_0x5167d2,'outputTransformation',(_0x182bcd,_0x2c8666)=>{const _0xf29279=Q(_0x51c780['createRangeIn'](_0x2c8666['content']));if(!_0xf29279['length'])return;const _0x5bf194=_0x31c347['getFootnotes'](),_0x4ede2c=_0xf29279['reduce']((_0x513c59,_0x3819f9)=>{const _0x37ff25=_0x5bf194['find'](_0x21b6be=>_0x21b6be['id']===_0x3819f9);if(_0x37ff25){const _0xd2ff27=_0x157d3f['data']['toView'](_0x37ff25['definition'],{'isClipboardPipeline':!0x0}),_0x1617f5=_0x157d3f['data']['htmlProcessor']['toData'](_0xd2ff27);_0x513c59[_0x37ff25['id']]=_0x1617f5;}return _0x513c59;},Object['create'](null));_0x2c8666['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4ede2c));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x517117}=this,{model:_0x5b9cd3,plugins:_0x29362b}=_0x517117,{view:_0x55fcfd}=_0x517117['editing'],_0x3790c9=_0x29362b['get'](_0x2f720e),_0x38e4cc=_0x29362b['get'](K),_0x849aac=_0x517117['config']['get']('footnotes.multiBlock');let _0x48488e=null;this['listenTo'](_0x55fcfd['document'],'clipboardInput',(_0x52727e,_0x506383)=>{const _0x438e07=_0x506383['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x48488e=_0x438e07?JSON['parse'](_0x438e07):null;}),this['listenTo'](_0x3790c9,'contentInsertion',(_0xc617af,_0x436d2f)=>{const _0x48607e=_0x436d2f['sourceEditorId']===this['editor']['id'];_0x48607e&&'drop'===_0x436d2f['method']||_0x5b9cd3['change'](_0x5c7139=>{let _0x460b58=_0x38e4cc['getFootnotesDefinitionsObjectElement']();const _0xf79027=!!_0x460b58&&Array['from'](_0x5b9cd3['document']['selection']['getSelectedBlocks']())['includes'](_0x460b58);if(!_0x48488e&&function(_0x1fdf2f){for(const {item:_0x2dc39f}of _0x1fdf2f)if(_0x2dc39f['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x5b9cd3['createRangeIn'](_0x436d2f['content']))&&(_0x48488e=function(_0x47b601,_0x2b1d19){const _0xfbd37e=G(_0x47b601,_0x2b1d19);if(!_0xfbd37e)return null;const _0x27858b=Object['create'](null);for(const _0x62025c of _0xfbd37e['getChildren']())_0x62025c['is']('element','footnoteDefinition')&&_0x62025c['hasAttribute']('footnoteId')&&(_0x27858b[_0x62025c['getAttribute']('footnoteId')]=_0x47b601['cloneElement'](_0x62025c,!0x0));return Object['keys'](_0x27858b)['length']?_0x27858b:null;}(_0x5c7139,_0x436d2f['content'])),(_0x460b58&&!_0xf79027||!_0x460b58&&!_0x48488e)&&function(_0x1aba4e,_0x289a7e){const _0x2d2675=[];for(const {item:_0x305656}of _0x1aba4e['createRangeIn'](_0x289a7e))_0x305656['is']('element','footnotesDefinitions')&&_0x2d2675['push'](_0x305656);for(const _0x51de96 of _0x2d2675)_0x1aba4e['remove'](_0x51de96);}(_0x5c7139,_0x436d2f['content']),!_0x48488e)return;const {selection:_0x39ee39}=_0x5b9cd3['document'],_0x521832=_0x39ee39['getFirstRange']()['root'];_0x460b58&&!_0xf79027||(_0x460b58=G(_0x5c7139,_0x436d2f['content']),_0x460b58||=_0x38e4cc['_insertEmptyFootnotesDefinitionsContainer'](_0x5c7139,_0x521832));const _0x18f669=Array['from'](_0x39ee39['getRanges']())['flatMap'](Q),_0x559f31=function(_0x595740,_0x28fb92,_0x4b2de0){const _0x257a22=Object['create'](null);for(const {item:_0x4bdc2e}of _0x595740['createRangeIn'](_0x28fb92))if(_0x4bdc2e['is']('element','footnoteRef')){const _0x395184=_0x4bdc2e['getAttribute']('footnoteId');if(!_0x4b2de0(_0x395184))continue;_0x257a22[_0x395184]||(_0x257a22[_0x395184]=_0x514d95()),_0x595740['setAttribute']('footnoteId',_0x257a22[_0x395184],_0x4bdc2e);}return _0x257a22;}(_0x5c7139,_0x436d2f['content'],_0x48768c=>{if(!_0x48607e)return!0x0;return!!_0x38e4cc['getFootnote'](_0x48768c)&&!_0x18f669['includes'](_0x48768c);});for(const [_0x176da0,_0x235edc]of Object['entries'](_0x48488e)){const _0x2ef44f=_0x559f31[_0x176da0]||_0x176da0;let _0x3281d9;if('string'!=typeof _0x235edc)_0x3281d9=_0x235edc,_0x2ef44f!==_0x176da0&&_0x5c7139['setAttribute']('footnoteId',_0x2ef44f,_0x3281d9);else{_0x3281d9=_0x5c7139['createElement']('footnoteDefinition',{'footnoteId':_0x2ef44f});const _0x38a943=_0x517117['data']['htmlProcessor']['toView'](_0x235edc);let _0x1399a2;if(_0x849aac)_0x1399a2=_0x517117['data']['toModel'](_0x38a943,_0x3281d9);else{_0x1399a2=_0x5c7139['createElement']('footnoteInlineContent');const _0xa00a1b=_0x517117['data']['toModel'](_0x38a943,_0x1399a2);_0x5c7139['insert'](_0xa00a1b,_0x1399a2);}_0x5c7139['append'](_0x1399a2,_0x3281d9);}_0x5c7139['insert'](_0x3281d9,_0x460b58,'end');}_0x48488e=null;});});}}function G(_0x98344,_0x2af715){for(const {item:_0x3cd6f3}of _0x98344['createRangeIn'](_0x2af715))if(_0x3cd6f3['is']('element','footnotesDefinitions'))return _0x3cd6f3;return null;}function Q(_0x3309d4){const _0x58414c=new Set();for(const {item:_0x1628d2}of _0x3309d4)_0x1628d2['is']('element','footnoteRef')&&_0x58414c['add'](_0x1628d2['getAttribute']('footnoteId'));return Array['from'](_0x58414c);}class W extends _0xca4277{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b628b}=this,{componentFactory:_0x382683}=_0x2b628b['ui'];_0x382683['add']('insertFootnote',Y(_0x2b628b,_0x4aa0c3)),_0x382683['add']('menuBar:insertFootnote',Y(_0x2b628b,_0x4feee6)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5af072=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x81742a;for(const _0x140faf in _0x5af072){const _0x11b88e=_0x140faf,_0x1c7ce3=_0x5af072[_0x11b88e];if('footnotesLicenseKeyValid'==_0x1c7ce3||'footnotesLicenseKeyInvalid'==_0x1c7ce3||'footnotesLicenseKeyExpired'==_0x1c7ce3||'footnotesLicenseKeyDomainLimit'==_0x1c7ce3||'footnotesLicenseKeyNotAllowed'==_0x1c7ce3||'footnotesLicenseKeyEvaluationLimit'==_0x1c7ce3||'footnotesLicenseKeyUsageLimit'==_0x1c7ce3){delete _0x5af072[_0x11b88e],_0x81742a=_0x1c7ce3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x81742a&&_0x5af072['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x81742a&&_0x5af072['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x81742a&&_0x5af072['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x81742a&&_0x5af072['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x81742a&&_0x5af072['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x81742a&&_0x5af072['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x52c6e5,_0x390e76){const _0x5444ce=_0x52c6e5['commands']['get']('insertFootnote');return _0x1ad3a2=>{const {t:t}=_0x1ad3a2,_0x3f7aa8=new _0x390e76(_0x1ad3a2),_0x405f46=_0x3f7aa8 instanceof _0x4feee6;return _0x3f7aa8['bind']('isEnabled')['to'](_0x5444ce,'isEnabled'),_0x3f7aa8['set']({'label':t(_0x405f46?'Footnote':'Insert\x20footnote'),'icon':_0x57e4d5,'tooltip':!0x0}),_0x3f7aa8['on']('execute',()=>{_0x5444ce['execute'](),_0x52c6e5['editing']['view']['focus']();}),_0x3f7aa8;};}class Z extends _0xca4277{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 _0x238c5c{['refresh'](){const {editor:_0x64bb}=this,_0x5253e5=_0x64bb['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5253e5,this['value']=_0x5253e5?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x23eef5}){const {editor:_0xe5a9a4}=this,_0x36657f=_0xe5a9a4['plugins']['get'](K),_0x1fc277=_0x36657f['getFootnotesDefinitionsObjectElement']();_0x1fc277&&ot['includes'](_0x23eef5)&&_0xe5a9a4['model']['change'](_0x3327eb=>{_0x3327eb['setAttribute']('footnotesListStyle',_0x23eef5,_0x1fc277),_0x36657f['_updateFootnotesCounters'](_0x3327eb);});}}class it extends _0x238c5c{['refresh'](){const {editor:_0x33784}=this,_0x1ee7bf=_0x33784['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1ee7bf,this['value']=_0x1ee7bf?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x56a9a2}){const {editor:_0x25c66e}=this,_0x5b9d79=_0x25c66e['plugins']['get'](K),_0x5dd036=_0x5b9d79['getFootnotesDefinitionsObjectElement']();_0x5dd036&&Number['isInteger'](_0x56a9a2)&&_0x25c66e['model']['change'](_0x1e5cbd=>{_0x1e5cbd['setAttribute']('footnotesListStart',_0x56a9a2,_0x5dd036),_0x5b9d79['_updateFootnotesCounters'](_0x1e5cbd);});}}function st(_0x2973aa,_0x51bfd7){let _0x163e40='',_0x1ebdbb=_0x2973aa;for(;_0x1ebdbb>0x0;){const _0xecb34f=(_0x1ebdbb-0x1)%0x1a;_0x163e40=String['fromCharCode'](0x61+_0xecb34f)+_0x163e40,_0x1ebdbb=Math['floor']((_0x1ebdbb-0x1)/0x1a);}return _0x51bfd7?_0x163e40['toUpperCase']():_0x163e40;}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(_0x5dc097,_0xe68479){let _0x1c48ef='',_0x248b8d=_0x5dc097;for(const {value:_0x52f23a,numeral:_0x1664a6}of rt)for(;_0x248b8d>=_0x52f23a;)_0x1c48ef+=_0x1664a6,_0x248b8d-=_0x52f23a;return _0xe68479?_0x1c48ef:_0x1c48ef['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0xca4277{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9f66f1}=this;_0x9f66f1['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x9f66f1['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x9f66f1['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x9f66f1['commands']['add']('footnotesStyle',new nt(_0x9f66f1)),_0x9f66f1['commands']['add']('footnotesStart',new it(_0x9f66f1)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x305c28}=this,{schema:_0x40a34c}=_0x305c28['model'];_0x40a34c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x22a0bf}=this,{conversion:_0xae4141,model:_0x4f44c4}=_0x22a0bf,{schema:_0x15b1d6}=_0x4f44c4;_0xae4141['for']('upcast')['add'](_0xcff679=>{_0xcff679['on']('element:ol',(_0x2d0373,_0x1345ad,_0x23af9d)=>{const _0x5d2e82=_0x1345ad['viewItem'],_0x419d31=_0x1345ad['modelCursor']?.['parent'];_0x5d2e82['hasClass']('footnotes-list')&&_0x419d31?.['is']('element','footnotesDefinitions')&&(function(_0x5139ca,_0x10f3e0,_0x11a90e,_0x393962){if(!_0x393962['checkAttribute'](_0x10f3e0,'footnotesListStart'))return;let _0x357477=0x1;const _0x5506d1=_0x11a90e['consumable']['consume'](_0x5139ca,{'attributes':'start'});if(_0x5506d1){const _0x412450=Number['parseInt'](_0x5139ca['getAttribute']('start'),0xa);Number['isNaN'](_0x412450)||(_0x357477=_0x412450);}!_0x5506d1&&_0x10f3e0['hasAttribute']('footnotesListStart')||_0x11a90e['writer']['setAttribute']('footnotesListStart',_0x357477,_0x10f3e0);}(_0x5d2e82,_0x419d31,_0x23af9d,_0x15b1d6),function(_0x5bef66,_0x48c344,_0x5773f0,_0x14238d){if(!_0x14238d['checkAttribute'](_0x48c344,'footnotesListStyle'))return;let _0x2717f7='decimal',_0x54ff34=!0x1;if(_0x5773f0['consumable']['consume'](_0x5bef66,{'attributes':'type'})){const _0x27ae50={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x5bef66['getAttribute']('type')];_0x27ae50&&(_0x2717f7=_0x27ae50),_0x54ff34=!0x0;}if(_0x5773f0['consumable']['consume'](_0x5bef66,{'styles':'list-style-type'})){const _0xdf93a6=ct(_0x5bef66['getStyle']('list-style-type'));_0xdf93a6&&(_0x2717f7=_0xdf93a6),_0x54ff34=!0x0;}!_0x54ff34&&_0x48c344['hasAttribute']('footnotesListStyle')||_0x5773f0['writer']['setAttribute']('footnotesListStyle',_0x2717f7,_0x48c344);}(_0x5d2e82,_0x419d31,_0x23af9d,_0x15b1d6));});}),_0xae4141['for']('downcast')['add'](_0x422b1b=>{_0x422b1b['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5f35db,_0x4f7f6c,_0x131100)=>{if(!_0x131100['consumable']['consume'](_0x4f7f6c['item'],_0x5f35db['name']))return;const _0xac0706=ut(_0x4f7f6c['item'],_0x131100['mapper']),{attributeNewValue:_0x3e7c1e}=_0x4f7f6c;null==_0x3e7c1e||0x1===_0x3e7c1e?_0x131100['writer']['removeAttribute']('start',_0xac0706):_0x131100['writer']['setAttribute']('start',String(_0x3e7c1e),_0xac0706);}),_0x422b1b['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1cbe24,_0x292739,_0x1f3868)=>{if(!_0x1f3868['consumable']['consume'](_0x292739['item'],_0x1cbe24['name']))return;const _0x1bbb88=ut(_0x292739['item'],_0x1f3868['mapper']),{attributeNewValue:_0x617bdc}=_0x292739;_0x617bdc&&'decimal'!==_0x617bdc?_0x1f3868['writer']['setStyle']('list-style-type',_0x617bdc,_0x1bbb88):_0x1f3868['writer']['removeStyle']('list-style-type',_0x1bbb88);});});}['_definePostfixer'](){const {editor:_0x1ed265}=this,{model:_0x4c2934}=_0x1ed265,_0x1d7f47=_0x1ed265['plugins']['get'](K),_0x59c79d=this['_getDefaultListStyle'](),_0x203d7d=this['_getDefaultStartIndex']();_0x4c2934['document']['registerPostFixer'](_0x3eb952=>{const _0x18ba5d=_0x4c2934['document']['differ']['getChanges']();let _0x30d7b2=!0x1;for(const _0x15f338 of _0x18ba5d){if('insert'!==_0x15f338['type']||'$text'===_0x15f338['name'])continue;const _0x65b505=_0x4c2934['createRangeOn'](_0x15f338['position']['nodeAfter']);for(const _0x36fd28 of _0x65b505['getItems']())_0x36fd28['is']('element','footnotesDefinitions')&&(!_0x36fd28['hasAttribute']('footnotesListStart')&&_0x4c2934['schema']['checkAttribute'](_0x36fd28,'footnotesListStart')&&(_0x3eb952['setAttribute']('footnotesListStart',_0x203d7d,_0x36fd28),_0x30d7b2=!0x0),!_0x36fd28['hasAttribute']('footnotesListStyle')&&_0x4c2934['schema']['checkAttribute'](_0x36fd28,'footnotesListStyle')&&(_0x3eb952['setAttribute']('footnotesListStyle',_0x59c79d,_0x36fd28),_0x30d7b2=!0x0));}return _0x30d7b2&&_0x1d7f47['_updateFootnotesCounters'](_0x3eb952),_0x30d7b2;});}['_defineFormatter'](){const {editor:_0x3ca3f8}=this;_0x3ca3f8['plugins']['get'](K)['setFootnoteFormatter'](_0x1ec764=>this['_formatFootnoteListValue'](_0x1ec764));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x333624,value:_0x5ea594,digits:_0x20d3bd}){const _0x142242=_0x333624['getAttribute']('footnotesListStyle'),_0x3e7e8f=_0x333624['getAttribute']('footnotesListStart'),_0x180f52=Math['floor'](_0x5ea594)+(_0x3e7e8f??0x1)-0x1;switch(_0x142242){case'decimal-leading-zero':return function(_0x342876,_0x55c243){return String(_0x342876)['padStart'](_0x55c243,'0');}(_0x180f52,Math['max'](0x2,_0x20d3bd));case'lower-alpha':case'lower-latin':return st(_0x180f52,!0x1);case'upper-alpha':case'upper-latin':return st(_0x180f52,!0x0);case'lower-roman':return lt(_0x180f52,!0x1);case'upper-roman':return lt(_0x180f52,!0x0);case'arabic-indic':return String(_0x180f52)['replace'](/\d/g,_0x37a582=>ft[Number(_0x37a582)]);default:return String(_0x180f52);}}}function ct(_0x3c935f){if('string'==typeof _0x3c935f){const _0x1b3e0a=et[_0x3c935f];if(_0x1b3e0a)return _0x1b3e0a;if(ot['includes'](_0x3c935f))return _0x3c935f;}return null;}function ut(_0x331864,_0x4d6199){const _0x47e6f4=_0x4d6199['toViewElement'](_0x331864);return Array['from'](_0x47e6f4['getChildren']())['find'](_0x548bb2=>_0x548bb2['is']('element','ol')&&_0x548bb2['hasClass']('footnotes-list'));}class dt extends _0x1774ea{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x569d46();['keystrokes']=new _0xcb1c00();['focusables']=new _0x5842bc();['focusCycler'];constructor(_0x56688e,{styleButtonViews:_0x1d1997,styleGridAriaLabel:_0x15c6b6}){super(_0x56688e),(this['focusCycler']=new _0x3e6916({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1d1997,_0x15c6b6),[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 _0x5ca72f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5ca72f['element']);_0x44da04({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x1b9e6c['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 _0x2a0605=_0x5802e5=>_0x5802e5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2a0605),this['keystrokes']['set']('arrowleft',_0x2a0605),this['keystrokes']['set']('arrowup',_0x2a0605),this['keystrokes']['set']('arrowdown',_0x2a0605);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x315b5f,_0x27c153){const _0xdb0eb4=new _0x1774ea(this['locale']);return _0xdb0eb4['children']=_0xdb0eb4['createCollection'](),_0xdb0eb4['children']['addMany'](_0x315b5f),_0xdb0eb4['setTemplate']({'tag':'div','attributes':{'aria-label':_0x27c153,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xdb0eb4['children']}),_0xdb0eb4['children']['delegate']('execute')['to'](this),_0xdb0eb4['focus']=function(){for(const _0x49505b of this['children'])if(_0x49505b instanceof _0x4aa0c3&&_0x49505b['isOn'])return void _0x49505b['focus']();this['children']['first']['focus']();},_0xdb0eb4['focusTracker']=new _0x569d46(),_0xdb0eb4['keystrokes']=new _0xcb1c00(),_0xdb0eb4['render'](),_0xdb0eb4['keystrokes']['listenTo'](_0xdb0eb4['element']),this['children']['add'](_0xdb0eb4),_0xdb0eb4;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5b22cb=this['_createStartIndexPropertyView'](),_0x104d31=[_0x5b22cb],_0x33fb51=new _0x204605(this['locale'],_0x104d31);return _0x33fb51['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x33fb51['buttonView']['bind']('isEnabled')['toMany'](_0x104d31,'isEnabled',(..._0x132176)=>_0x132176['some'](_0x39c5b6=>_0x39c5b6)),_0x33fb51['buttonView']['on']('change:isEnabled',(_0x44ed82,_0x4450f3,_0x3d4a8b)=>{_0x3d4a8b||(_0x33fb51['isCollapsed']=!0x0);}),this['children']['add'](_0x33fb51),[_0x5b22cb,_0x33fb51];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3f20b0=new _0x4c66cf(this['locale'],_0x5bdaff);return _0x3f20b0['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3f20b0['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3f20b0['fieldView']['on']('input',()=>{const _0x482c28=_0x3f20b0['fieldView']['element'],_0x56eba3=_0x482c28['valueAsNumber'];Number['isNaN'](_0x56eba3)?_0x3f20b0['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x482c28['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x56eba3}):_0x3f20b0['errorText']=t(_0x56eba3<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3f20b0;}}class ht extends _0xca4277{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1d5ca5,_0x5ae0b7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xce2f94}=this,{componentFactory:_0x2be98e}=_0xce2f94['ui'];_0xce2f94['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2be98e['add']('footnotesStyle',function(_0x4cf826){return _0x59f5ec=>{const {t:t}=_0x59f5ec,_0x5083d8=_0x4cf826['commands']['get']('footnotesStyle'),_0x45ac64=_0x299e86(_0x59f5ec),{buttonView:_0xd644a8}=_0x45ac64;return _0x45ac64['class']='ck-footnotes-styles-dropdown',_0x45ac64['bind']('isEnabled')['to'](_0x5083d8,'isEnabled'),_0xd644a8['set']({'label':t('Footnotes\x20style'),'icon':_0x57e4d5,'tooltip':!0x0}),_0x45ac64['once']('change:isOpen',()=>{const _0xe34991=function({editor:_0x19a992,dropdownView:_0x2aeac6}){const {t:t}=_0x19a992['locale'],_0x4b2852=t('Footnotes\x20definitions\x20styles'),_0x4f6ea7=function(_0x117e27){const {t:t}=_0x117e27['locale'],_0x34ea41=_0x117e27['config']['get']('footnotes.footnotesProperties.listStyles'),_0x275b92=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x412a6d},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x15dd7d},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x301a2d},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x147260},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x22f87b},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x65f1cf},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x2469ae}];return _0x34ea41['map'](_0xbc40be=>{const _0x38fc64=ct(_0xbc40be),_0x3812fa=_0x275b92['find'](_0x268495=>_0x268495['style']===_0x38fc64);return function(_0x401ca2,_0x11f217){const {locale:_0x2647d6}=_0x401ca2,{label:_0x3ac339,icon:_0x5c42dd,tooltip:_0x48000f,style:_0x4aeb03}=_0x11f217,_0x31398f=_0x401ca2['commands']['get']('footnotesStyle'),_0x17d4f6=new _0x4aa0c3(_0x2647d6);return _0x17d4f6['set']({'label':_0x3ac339,'icon':_0x5c42dd,'tooltip':_0x48000f}),_0x17d4f6['bind']('isOn')['to'](_0x31398f,'value',_0x1bf107=>_0x1bf107===_0x4aeb03),_0x17d4f6['bind']('isEnabled')['to'](_0x31398f,'isEnabled'),_0x17d4f6['on']('execute',()=>{_0x401ca2['execute']('footnotesStyle',{'value':_0x4aeb03}),_0x401ca2['editing']['view']['focus']();}),_0x17d4f6;}(_0x117e27,_0x3812fa);});}(_0x19a992),_0x40b31d=new dt(_0x19a992['locale'],{'styleGridAriaLabel':_0x4b2852,'styleButtonViews':_0x4f6ea7}),_0x42e5a9=_0x19a992['commands']['get']('footnotesStart');return _0x40b31d['startIndexFieldView']['bind']('isEnabled')['to'](_0x42e5a9),_0x40b31d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x42e5a9),_0x40b31d['on']('footnotesListStart',(_0x2c772e,_0x56f115)=>{_0x19a992['execute']('footnotesStart',{'value':_0x56f115['startIndex']});}),_0x40b31d['delegate']('execute')['to'](_0x2aeac6),_0x40b31d;}({'editor':_0x4cf826,'dropdownView':_0x45ac64});_0x45ac64['panelView']['children']['add'](_0xe34991);}),_0x45ac64;};}(_0xce2f94));}['afterInit'](){const {editor:_0xeeffde}=this,{t:t}=_0xeeffde['locale'],_0x31d395=_0xeeffde['plugins']['get'](_0x5ae0b7),{defaultPositions:_0x19515f}=_0x43476f;_0x31d395['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xeeffde['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x92b61a=>{let _0x375681=_0x92b61a['getFirstPosition']()?.['parent'];return _0x375681?.['is']('$text')&&(_0x375681=_0x375681['parent']),_0x375681?.['is']('element')?_0x375681['findAncestor'](q):null;},'positions':[_0x19515f['southArrowNorth'],_0x19515f['southArrowNorthMiddleWest'],_0x19515f['southArrowNorthMiddleEast'],_0x19515f['southArrowNorthWest'],_0x19515f['southArrowNorthEast'],_0x19515f['northArrowSouth'],_0x19515f['northArrowSouthMiddleWest'],_0x19515f['northArrowSouthMiddleEast'],_0x19515f['northArrowSouthWest'],_0x19515f['northArrowSouthEast'],_0x19515f['viewportStickyNorth']]});}}class mt extends _0xca4277{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.0.0-alpha.1",
3
+ "version": "48.0.0-alpha.3",
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.0.0-alpha.1",
36
- "@ckeditor/ckeditor5-core": "48.0.0-alpha.1",
37
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.1",
38
- "@ckeditor/ckeditor5-enter": "48.0.0-alpha.1",
39
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.1",
40
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.1",
41
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.1",
42
- "@ckeditor/ckeditor5-widget": "48.0.0-alpha.1"
35
+ "@ckeditor/ckeditor5-clipboard": "48.0.0-alpha.3",
36
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.3",
37
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.3",
38
+ "@ckeditor/ckeditor5-enter": "48.0.0-alpha.3",
39
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.3",
40
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.3",
41
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.3",
42
+ "@ckeditor/ckeditor5-widget": "48.0.0-alpha.3"
43
43
  },
44
44
  "files": [
45
45
  "dist",