@ckeditor/ckeditor5-footnotes 48.0.0-alpha.2 → 48.0.0-alpha.4
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.
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2cdd69,Command as _0x362a34}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5a9f28,isWidget as _0x27a868,toWidgetEditable as _0x19f027,WidgetToolbarRepository as _0x437073}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x6037a0,logWarning as _0x41f4d8,FocusTracker as _0x52f95c,KeystrokeHandler as _0x423d5e,global as _0x5f2c91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5b9b89,ClickObserver as _0xc5b3a4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x363560}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1f0e73,ButtonView as _0x1329f5,View as _0xf19cc5,ViewCollection as _0x58747d,FocusCycler as _0x44d75b,addKeyboardHandlingForGrid as _0x583ae8,CollapsibleView as _0x3af2f9,LabeledFieldView as _0x21475e,createLabeledInputNumber as _0x5cb59f,ContextualBalloon as _0xb42957,BalloonPanelView as _0x461340,createDropdown as _0x1726ac}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x23967d,IconListStyleDecimal as _0x38eabf,IconListStyleDecimalLeadingZero as _0x29bbde,IconListStyleLowerRoman as _0x524365,IconListStyleUpperRoman as _0x56bc00,IconListStyleLowerLatin as _0x13ed9d,IconListStyleUpperLatin as _0x48ccd3,IconListStyleArabicIndic as _0x32feae}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3c2f3c,_0x32f93d){this['_model']=_0x3c2f3c,this['_elementName']=_0x32f93d['elementName'],this['_getElementKey']=_0x32f93d['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x19ec4b){const _0x48da37=new Set(),_0x343aad=new Map();for(const _0x10c04d of _0x19ec4b){if('insert'===_0x10c04d['type']&&'$text'!==_0x10c04d['name']&&_0x10c04d['position']['nodeAfter']){const _0x6770b=this['_model']['createRangeOn'](_0x10c04d['position']['nodeAfter']);for(const _0x217f93 of _0x6770b['getItems']()){if(!_0x217f93['is']('element',this['_elementName']))continue;const _0x5c5604=this['_getElementKey'](_0x217f93);_0x343aad['has'](_0x5c5604)||_0x343aad['set'](_0x5c5604,[]),_0x343aad['get'](_0x5c5604)['push'](_0x217f93);}}if('remove'===_0x10c04d['type']&&_0x10c04d['name']===this['_elementName']){const _0x303fd1=this['_getElementKey']({'getAttribute':_0x1a5338=>_0x10c04d['attributes']['get'](_0x1a5338)});_0x48da37['add'](_0x303fd1);}}for(const [_0xd07616,_0x5e8abe]of this['_trackedElements'])'$graveyard'===_0x5e8abe['root']['rootName']&&_0x48da37['add'](_0xd07616);for(const _0x450646 of _0x48da37)this['_trackedElements']['delete'](_0x450646);for(const [_0x5548b1,_0x49b7ed]of _0x343aad)this['_trackedElements']['set'](_0x5548b1,_0x49b7ed[_0x49b7ed['length']-0x1]);const _0x38526b=new Set();for(const [_0x2604c8,_0xc5cb36]of _0x343aad)_0x48da37['has'](_0x2604c8)&&(_0x38526b['add'](_0xc5cb36[0x0]),_0xc5cb36['length']>0x1?_0x343aad['set'](_0x2604c8,_0xc5cb36['slice'](0x1)):_0x343aad['delete'](_0x2604c8),_0x48da37['delete'](_0x2604c8));return{'removed':Array['from'](_0x48da37),'inserted':Array['from'](_0x343aad['values']())['flat'](),'moved':Array['from'](_0x38526b)};}}class K extends _0x2cdd69{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b2518){super(_0x2b2518),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x44a202=>_0x44a202['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1375dd=>_0x1375dd['getAttribute']('footnoteId')});}['init'](){const {editor:_0x2ef878}=this,{model:_0x49559b,data:_0x33f68b}=_0x2ef878;_0x49559b['document']['registerPostFixer'](_0x5820ff=>{const _0x837774=_0x49559b['document']['differ']['getChanges']();let _0x38972a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5820ff,_0x837774)&&(_0x38972a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5820ff,_0x837774)&&(_0x38972a=!0x0),this['_handleFootnoteReferencesChanges'](_0x5820ff,_0x837774)&&(_0x38972a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5820ff)&&(_0x38972a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5820ff)&&(_0x38972a=!0x0),this['_sortFootnoteDefinitions'](_0x5820ff)&&(_0x38972a=!0x0),_0x38972a;}),this['listenTo'](_0x49559b['document'],'change:data',()=>{_0x49559b['enqueueChange']({'isUndoable':!0x1},_0x1fb13f=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1fb13f);});},{'priority':'low'}),this['listenTo'](_0x33f68b,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x185f24){return this['_footnotes']['find'](_0x4bd036=>_0x4bd036['id']===_0x185f24)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x385fb7){this['_footnoteFormatter']=_0x385fb7;}['_updateFootnotesCounters'](_0x3a8044,_0x17f34f=0x0){let _0x467567=!0x1;for(let _0x59779f=_0x17f34f;_0x59779f<this['_footnotes']['length'];_0x59779f++)this['_updateFootnoteRefCounter'](_0x3a8044,_0x59779f)&&(_0x467567=!0x0);return _0x467567;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1ec83d,_0xd9737b){const _0x4678e1=_0x1ec83d['createElement']('footnotesDefinitions',{});return _0x1ec83d['append'](_0x4678e1,_0xd9737b),this['_footnotesDefinitions']=_0x4678e1,_0x4678e1;}['_ensureFootnotesDefinitionsContainerExists'](_0x2634bd){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2f1d96=this['_footnotes'][0x0]['reference']['root'],_0x7eb0a4=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2634bd,_0x2f1d96);for(const _0x1d30ee of this['_footnotes'])_0x1d30ee['definition']['parent']||_0x2634bd['insert'](_0x1d30ee['definition'],_0x7eb0a4,'end');this['_updateFootnotesCounters'](_0x2634bd);}['_handleFootnotesDefinitionsObjectChanges'](_0x5143e6,_0x4efc15){let _0x7d4518=!0x1;const {inserted:_0x16628e,removed:_0x3160ea,moved:_0x2491d3}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4efc15);if(_0x2491d3['length']&&(this['_footnotesDefinitions']=_0x2491d3[0x0]),_0x16628e['length']){if(_0x16628e['length']>0x1||this['_footnotesDefinitions']&&_0x16628e['some'](_0x33230b=>_0x33230b!==this['_footnotesDefinitions'])){const _0x4a77bf=_0x5143e6['createElement']('footnotesDefinitions',{}),_0x5f24e1=[];this['_footnotesDefinitions']&&_0x5f24e1['push'](this['_footnotesDefinitions']),_0x5f24e1['push'](..._0x16628e),_0x5143e6['insert'](_0x4a77bf,_0x5f24e1[0x0],'before');for(const _0xece427 of _0x5f24e1)_0x5143e6['move'](_0x5143e6['createRangeIn'](_0xece427),_0x5143e6['createPositionAt'](_0x4a77bf,'end')),_0x5143e6['remove'](_0xece427);this['_footnotesDefinitions']=_0x4a77bf,this['_updateFootnotesCounters'](_0x5143e6),_0x7d4518=!0x0;}else this['_footnotesDefinitions']=_0x16628e[0x0];}if(_0x3160ea['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1ec01f of this['_footnotes'])_0x5143e6['remove'](_0x1ec01f['reference']),_0x7d4518=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x7d4518;}['_handleFootnoteDefinitionsChanges'](_0x30e738,_0x844d98){let _0x3d55a6=!0x1;const _0x5eaf0f=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1f0516,moved:_0x843397}=this['_footnoteDefsTracker']['getChanges'](_0x844d98);for(const _0x476bd6 of[..._0x843397,..._0x1f0516]){const _0x4d5268=_0x476bd6['getAttribute']('footnoteId'),_0x182cad=this['getFootnote'](_0x4d5268);_0x182cad&&(_0x182cad['definition']=_0x476bd6),j(_0x30e738,_0x5eaf0f,_0x476bd6)&&(_0x3d55a6=!0x0);}return _0x3d55a6;}['_handleFootnoteReferencesChanges'](_0x138cc7,_0x7171a9){let _0x20c702=!0x1;const {removed:_0x200a30,inserted:_0x488e13,moved:_0x50cc1d}=this['_footnoteRefsTracker']['getChanges'](_0x7171a9);for(const _0x386d78 of _0x200a30)this['_handleRemoveFootnoteReferenceById'](_0x138cc7,_0x386d78)&&(_0x20c702=!0x0);for(const _0x6daed3 of _0x488e13)this['_handleInsertedFootnoteReference'](_0x138cc7,_0x6daed3)&&(_0x20c702=!0x0);for(const _0xaac756 of _0x50cc1d)this['_handleMovedFootnoteReference'](_0x138cc7,_0xaac756)&&(_0x20c702=!0x0);return _0x20c702;}['_handleFootnotesDefinitionsObjectSync'](_0x528427){if(!this['_footnotesDefinitions'])return!0x1;let _0x2525b2=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x31f903=[];for(const _0x313da8 of this['_footnotesDefinitions']['getChildren']()){const _0x4a7197=_0x313da8['getAttribute']('footnoteId');this['getFootnote'](_0x4a7197)||(_0x31f903['unshift'](_0x313da8),_0x2525b2=!0x0);}for(const _0x364fd7 of _0x31f903)_0x528427['remove'](_0x364fd7);}const _0xcc0bea=new Set(),_0x5d776b=[];for(const _0x148a43 of this['_footnotesDefinitions']['getChildren']()){const _0x47aa18=_0x148a43['getAttribute']('footnoteId');_0xcc0bea['has'](_0x47aa18)?(_0x5d776b['unshift'](_0x148a43),_0x2525b2=!0x0):_0xcc0bea['add'](_0x47aa18);}for(const _0x2526ab of _0x5d776b)_0x528427['remove'](_0x2526ab);return this['_footnotesDefinitions']['childCount']||(_0x528427['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2525b2=!0x0),_0x2525b2;}['_handleInsertedFootnoteReference'](_0x366013,_0x12691d){if(this['_footnotes']['find'](_0x2667c3=>_0x2667c3['reference']===_0x12691d))return!0x1;let _0x31ff8a=!0x1;const _0x147310=_0x12691d['getAttribute']('footnoteId'),_0x29909e=this['_footnotes']['findIndex'](_0x5243c4=>_0x5243c4['id']===_0x147310);-0x1!==_0x29909e&&(_0x366013['remove'](this['_footnotes'][_0x29909e]['reference']),this['_footnotes']['splice'](_0x29909e,0x1),_0x31ff8a=!0x0);let _0x925e69=this['_footnotesDefinitions']?function(_0x57bcca,_0x4cc274){for(const _0x5d5e9e of _0x57bcca['getChildren']())if(_0x5d5e9e['getAttribute']('footnoteId')===_0x4cc274)return _0x5d5e9e;return null;}(this['_footnotesDefinitions'],_0x147310):null;_0x925e69||(_0x925e69=_0x366013['createElement']('footnoteDefinition',{'footnoteId':_0x147310}),this['_footnotesDefinitions']&&(_0x366013['insert'](_0x925e69,this['_footnotesDefinitions'],'end'),_0x31ff8a=!0x0));const _0xe40924={'id':_0x147310,'reference':_0x12691d,'definition':_0x925e69},_0x1a36df=T(this['editor']['model'],this['_footnotes'],_0x12691d);this['_footnotes']['splice'](_0x1a36df,0x0,_0xe40924);let _0x176dcd=_0x1a36df;return-0x1!==_0x29909e&&(_0x176dcd=Math['min'](_0x1a36df,_0x29909e)),this['_updateFootnotesCounters'](_0x366013,_0x176dcd)&&(_0x31ff8a=!0x0),_0x31ff8a;}['_handleRemoveFootnoteReferenceById'](_0x2942e3,_0x51cbaf){const _0x5478e8=this['_footnotes']['findIndex'](_0x4379ad=>_0x4379ad['id']===_0x51cbaf);if(-0x1===_0x5478e8)return!0x1;let _0x352a0=!0x1;const _0x28ca01=this['_footnotes'][_0x5478e8];return'$graveyard'!==_0x28ca01['definition']['root']['rootName']&&(_0x2942e3['remove'](_0x28ca01['definition']),_0x352a0=!0x0),this['_footnotes']['splice'](_0x5478e8,0x1),this['_updateFootnotesCounters'](_0x2942e3,_0x5478e8)&&(_0x352a0=!0x0),_0x352a0;}['_handleMovedFootnoteReference'](_0x36f21d,_0x2b372a){const _0x331396=_0x2b372a['getAttribute']('footnoteId'),_0x59dc34=this['_footnotes']['findIndex'](_0x129e27=>_0x129e27['id']===_0x331396),_0x11be84=this['_footnotes'][_0x59dc34];let _0x2f1727=!0x1;_0x11be84['reference']=_0x2b372a,this['_footnotes']['splice'](_0x59dc34,0x1);const _0x1edab0=T(this['editor']['model'],this['_footnotes'],_0x2b372a);return this['_footnotes']['splice'](_0x1edab0,0x0,_0x11be84),this['_updateFootnotesCounters'](_0x36f21d,Math['min'](_0x59dc34,_0x1edab0))&&(_0x2f1727=!0x0),_0x2f1727;}['_updateFootnoteRefCounter'](_0x11f8b6,_0x385a99){if(!this['_footnotesDefinitions'])return!0x1;const _0x2d607e=this['_footnotes'][_0x385a99];let _0x5ee19f;return _0x5ee19f=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2d607e,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x385a99+0x1}):String(_0x385a99+0x1),_0x2d607e['reference']['getAttribute']('footnoteCounter')!=_0x5ee19f&&(_0x11f8b6['setAttribute']('footnoteCounter',_0x5ee19f,_0x2d607e['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x58ed58){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x283c75,_0x2eb0d9){if(_0x283c75['length']!==_0x2eb0d9['length'])return!0x1;for(let _0x487250=0x0;_0x487250<_0x283c75['length'];_0x487250++)if(_0x283c75[_0x487250]!==_0x2eb0d9[_0x487250])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4aae47=>_0x4aae47['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x1dceb0=>_0x1dceb0['getAttribute']('footnoteId'))))return!0x1;let _0xa4b1d5=!0x1;for(let _0x3b4188=0x0;_0x3b4188<this['_footnotes']['length'];_0x3b4188++){const _0x44c79c=this['_footnotes'][_0x3b4188],_0x3f45b7=_0x58ed58['createPositionBefore'](_0x44c79c['definition']),_0x1252e4=_0x58ed58['createPositionAt'](this['_footnotesDefinitions'],_0x3b4188);_0x3f45b7['isEqual'](_0x1252e4)||(_0x58ed58['move'](_0x58ed58['createRangeOn'](_0x44c79c['definition']),_0x1252e4),_0xa4b1d5=!0x0);}return _0xa4b1d5;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5ee116){if(!this['_footnotes']['length'])return!0x1;const {model:_0x52ce28}=this['editor'];let _0x10286a=!0x1;for(let _0x455954=0x0;_0x455954<this['_footnotes']['length']-0x1;_0x455954++){const _0x3695aa=this['_footnotes'][_0x455954],_0x575b3b=this['_footnotes'][_0x455954+0x1],_0x6d0ca7=_0x52ce28['createPositionBefore'](_0x3695aa['reference']),_0x1fb264=_0x52ce28['createPositionBefore'](_0x575b3b['reference']);'after'===_0x6d0ca7['compareWith'](_0x1fb264)&&(this['_handleMovedFootnoteReference'](_0x5ee116,_0x3695aa['reference']),_0x455954=-0x1,_0x10286a=!0x0);}return _0x10286a;}}function j(_0x275148,_0x440e63,_0x379f29){if(_0x379f29['childCount'])return!0x1;const _0x3db0a1=_0x440e63?'paragraph':'footnoteInlineContent';return _0x275148['insert'](_0x275148['createElement'](_0x3db0a1),_0x379f29),!0x0;}function T(_0x222c8e,_0x3fd223,_0x5585cf){if(0x0===_0x3fd223['length'])return 0x0;const _0x1834d7=_0x222c8e['createPositionBefore'](_0x5585cf);for(let _0xb0a832=0x0;_0xb0a832<_0x3fd223['length'];_0xb0a832++){const _0xa6d1=_0x3fd223[_0xb0a832],_0x2203ce=_0x222c8e['createPositionBefore'](_0xa6d1['reference']);if('before'===_0x1834d7['compareWith'](_0x2203ce))return _0xb0a832;}const _0x985c9f=_0x5585cf['root'];let _0x208737=-0x1;for(let _0x3e6283=_0x3fd223['length']-0x1;_0x3e6283>=0x0;_0x3e6283--)if(_0x3fd223[_0x3e6283]['reference']['root']===_0x985c9f){_0x208737=_0x3e6283;break;}if(-0x1!==_0x208737)return _0x208737+0x1;const _0x5b0e27=_0x222c8e['document']['getRootNames'](),_0x4b15cb=_0x5b0e27['indexOf'](_0x985c9f['rootName']),_0x33848b=_0x5b0e27[_0x4b15cb+0x1];if(_0x33848b){for(let _0x38e4eb=0x0;_0x38e4eb<_0x3fd223['length'];_0x38e4eb++)if(_0x3fd223[_0x38e4eb]['reference']['root']['rootName']===_0x33848b)return _0x38e4eb;}return _0x3fd223['length'];}class V extends _0x362a34{['refresh'](){const _0x1930c9=this['editor']['model']['document']['selection'],_0x15a0a9=this['_getPositionToInsertFootnote'](_0x1930c9);this['isEnabled']=!!_0x15a0a9;}['execute'](_0x25583e){const {editor:_0x4ceff6}=this,{model:_0x400110}=_0x4ceff6,{selection:_0x50f3d3}=_0x400110['document'],_0x41733e=this['_getPositionToInsertFootnote'](_0x50f3d3);if(!_0x41733e)return;const _0x2227ea=_0x4ceff6['plugins']['get']('FootnotesEditing'),_0x31eb9e=_0x25583e?.['footnoteId']??_0x6037a0();!function(_0x1b9760){return'string'==typeof _0x1b9760&&_0x1b9760['length']>0x0&&!/\s/['test'](_0x1b9760)&&!/^\d/['test'](_0x1b9760);}(_0x31eb9e)?_0x41f4d8('insert-footnote-command-executed-with-invalid-id'):(_0x400110['change'](_0x21e94e=>{const _0x51d3c4=_0x21e94e['createElement']('footnoteRef',{'footnoteId':_0x31eb9e});_0x400110['insertObject'](_0x51d3c4,_0x41733e,null);}),_0x2227ea['_moveSelectionToFootnoteDefinition'](_0x31eb9e));}['_getPositionToInsertFootnote'](_0x4fcc95){const {model:_0x5e6148}=this['editor'],{schema:_0x2f28bb}=_0x5e6148,_0x54e2ac=_0x4fcc95['getFirstRange']();for(const _0x3651fa of _0x54e2ac['getItems']())if(_0x2f28bb['isBlock'](_0x3651fa)||_0x2f28bb['isObject'](_0x3651fa))return null;const _0x50ed1d=_0x54e2ac['end'];return _0x2f28bb['checkChild'](_0x50ed1d,'footnoteRef')?_0x50ed1d:null;}}class $ extends _0x2cdd69{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5060dd}=this;_0x5060dd['config']['define']('footnotes.multiBlock',!0x0),_0x5060dd['commands']['add']('insertFootnote',new V(_0x5060dd)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x430c7a){const _0x416313=_0x251732([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]),_0x39eaf9=0x47a28506,_0x5430e3=0x47a501fe^_0x39eaf9,_0x5ea638=window[_0x251732([0x44,0x61,0x74,0x65])][_0x251732([0x6e,0x6f,0x77])](),_0x2fa0bf=_0x430c7a[_0x251732([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x424460=new window[(_0x251732([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27ab0c=>{_0x2fa0bf[_0x251732([0x6f,0x6e,0x63,0x65])](_0x251732([0x72,0x65,0x61,0x64,0x79]),_0x27ab0c);}),_0x5b093c={[_0x251732([0x6b,0x74,0x79])]:_0x251732([0x45,0x43]),[_0x251732([0x75,0x73,0x65])]:_0x251732([0x73,0x69,0x67]),[_0x251732([0x63,0x72,0x76])]:_0x251732([0x50,0x2d,0x32,0x35,0x36]),[_0x251732([0x78])]:_0x251732([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]),[_0x251732([0x79])]:_0x251732([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]),[_0x251732([0x61,0x6c,0x67])]:_0x251732([0x45,0x53,0x32,0x35,0x36])},_0x4c7fcb=_0x2fa0bf[_0x251732([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x251732([0x67,0x65,0x74])](_0x251732([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c7d8(){let _0x306523,_0x31d05d=null,_0x4c1252=null;try{if(_0x4c7fcb==_0x251732([0x47,0x50,0x4c]))return _0x251732([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x306523=_0x464cd3(),!_0x306523)return _0x251732([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x306523[_0x251732([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c1252=_0xf26f9(_0x306523[_0x251732([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x306523[_0x251732([0x6a,0x74,0x69])])),await _0x45969e()?_0x28b20b()?_0x5261c6()?_0x251732([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37fb3f()?(_0x306523[_0x251732([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x251732([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31d05d=_0x2e0bb0(_0x251732([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58fe3b()):_0x251732([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x251732([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x251732([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x251732([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5261c6(){const _0x58518b=[_0x251732([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x251732([0x74,0x72,0x69,0x61,0x6c])][_0x251732([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x306523[_0x251732([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ea638/0x3e8:0xe10*_0x5430e3;return _0x306523[_0x251732([0x65,0x78,0x70])]<_0x58518b;}function _0x28b20b(){const _0x43dc10=_0x306523[_0x251732([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x43dc10&&(!!_0x43dc10[_0x251732([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x251732([0x2a]))||!!_0x43dc10[_0x251732([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x251732([0x46,0x4f,0x4f])));}function _0x37fb3f(){const _0x16b0cc=_0x306523[_0x251732([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16b0cc||0x0==_0x16b0cc[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ae4a7}=new URL(window[_0x251732([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16b0cc[_0x251732([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ae4a7))return!0x0;const _0x8a20d=_0x1ae4a7[_0x251732([0x73,0x70,0x6c,0x69,0x74])](_0x251732([0x2e]));return _0x16b0cc[_0x251732([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47ee86=>_0x47ee86[_0x251732([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x251732([0x2a])))[_0x251732([0x6d,0x61,0x70])](_0x30c871=>_0x30c871[_0x251732([0x73,0x70,0x6c,0x69,0x74])](_0x251732([0x2e])))[_0x251732([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a3ea1=>_0x1a3ea1[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8a20d[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x251732([0x6d,0x61,0x70])](_0x487b8e=>Array(_0x8a20d[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x487b8e[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x251732([0x66,0x69,0x6c,0x6c])](_0x487b8e[0x0]===_0x251732([0x2a])?_0x251732([0x2a]):'')[_0x251732([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x487b8e))[_0x251732([0x73,0x6f,0x6d,0x65])](_0x3ec065=>_0x8a20d[_0x251732([0x65,0x76,0x65,0x72,0x79])]((_0x1d71d8,_0x41fa55)=>_0x3ec065[_0x41fa55]===_0x1d71d8||_0x3ec065[_0x41fa55]===_0x251732([0x2a])));}function _0x58fe3b(){return _0x31d05d&&_0x4c1252?new window[(_0x251732([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1af9eb,_0x33ce9a)=>{_0x31d05d[_0x251732([0x74,0x68,0x65,0x6e])](_0x1af9eb,_0x33ce9a),_0x4c1252[_0x251732([0x74,0x68,0x65,0x6e])](_0x5d13fa=>{_0x5d13fa!=_0x251732([0x56,0x61,0x6c,0x69,0x64])&&_0x1af9eb(_0x5d13fa);},_0x33ce9a);}):_0x31d05d||_0x4c1252||_0x251732([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf26f9(_0x1a0535,_0x3156fb){return new window[(_0x251732([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x148c92=>{if(_0x3dee22())return _0x148c92(_0x251732([0x56,0x61,0x6c,0x69,0x64]));_0x17d478(),_0x2fa0bf[_0x251732([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x251732([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a2399=!0x1;const _0x7d37c3=_0x6037a0();function _0x2969b9(_0x20ecc0){return!!_0x20ecc0&&(typeof _0x20ecc0===_0x251732([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20ecc0===_0x251732([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20ecc0[_0x251732([0x74,0x68,0x65,0x6e])]===_0x251732([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20ecc0[_0x251732([0x63,0x61,0x74,0x63,0x68])]===_0x251732([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50340c(_0x5b71de){_0x1a8867(_0x5b71de)[_0x251732([0x74,0x68,0x65,0x6e])](_0x3b8e32=>{if(!_0x3b8e32||_0x3b8e32[_0x251732([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x251732([0x6f,0x6b]))return _0x251732([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e3151(_0x1e2c67(_0x7d37c3+_0x3156fb))!=_0x3b8e32[_0x251732([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x251732([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x251732([0x56,0x61,0x6c,0x69,0x64]);})[_0x251732([0x74,0x68,0x65,0x6e])](_0x5e3e53=>(_0x3741a4(),_0x5e3e53),()=>{const _0x3e2ee7=_0x242235();return null==_0x3e2ee7?(_0x3741a4(),_0x251732([0x56,0x61,0x6c,0x69,0x64])):_0x251732(_0x5ea638-_0x3e2ee7>(0x63ae0106^_0x39eaf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x251732([0x74,0x68,0x65,0x6e])](_0x148c92)[_0x251732([0x63,0x61,0x74,0x63,0x68])](()=>{_0x148c92(_0x251732([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ab1cc=0x47946b86^_0x39eaf9;function _0x3741a4(){const _0x1330cb=_0x251732([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e3151(_0x1e2c67(_0x1a0535)),_0x549e31=_0x3b14a4(_0x2e3151(window[_0x251732([0x4d,0x61,0x74,0x68])][_0x251732([0x63,0x65,0x69,0x6c])](_0x5ea638/_0x1ab1cc)));window[_0x251732([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x251732([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1330cb,_0x549e31);}function _0x242235(){const _0x1be667=_0x251732([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e3151(_0x1e2c67(_0x1a0535)),_0x151419=window[_0x251732([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x251732([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1be667);return _0x151419?window[_0x251732([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b14a4(_0x151419),0x10)*_0x1ab1cc:null;}function _0x1a8867(_0x4438d4){return new window[(_0x251732([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23dfd,_0x2527a9)=>{_0x4438d4[_0x251732([0x74,0x68,0x65,0x6e])](_0x23dfd,_0x2527a9),window[_0x251732([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2527a9,0x47a351c6^_0x39eaf9);});}}_0x2fa0bf[_0x251732([0x6f,0x6e])](_0x251732([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5023d0,_0x55bdc6)=>{if(_0x55bdc6[0x0]!=_0x1a0535)return _0x148c92(_0x251732([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55bdc6[0x1]={..._0x55bdc6[0x1],[_0x251732([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7d37c3};},{[_0x251732([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x251732([0x68,0x69,0x67,0x68])}),_0x2fa0bf[_0x251732([0x6f,0x6e])](_0x251732([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19246a=>{_0x2969b9(_0x19246a[_0x251732([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a2399=!0x0,_0x50340c(_0x19246a[_0x251732([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x251732([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x251732([0x6c,0x6f,0x77])}),_0x424460[_0x251732([0x74,0x68,0x65,0x6e])](()=>{_0x1a2399||_0x148c92(_0x251732([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3dee22(){return _0x2fa0bf[_0x251732([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x251732([0x76,0x69,0x65,0x77])][_0x251732([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x251732([0x61,0x75,0x74,0x6f]);}function _0x17d478(){_0x2fa0bf[_0x251732([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x251732([0x76,0x69,0x65,0x77])][_0x251732([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x251732([0x61,0x75,0x74,0x6f]);}}function _0x2e0bb0(_0x4aee14){const _0x4d5c49=[new window[(_0x251732([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42cf7b=>setTimeout(_0x42cf7b,0x47abbbca^_0x39eaf9)),_0x424460[_0x251732([0x74,0x68,0x65,0x6e])](()=>new window[(_0x251732([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd24b7b=>{let _0x3a2800=0x0;_0x2fa0bf[_0x251732([0x6d,0x6f,0x64,0x65,0x6c])][_0x251732([0x6f,0x6e])](_0x251732([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x514329,_0x32860a)=>{_0x32860a[0x0][_0x251732([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a2800++,_0x3a2800==(0x47a280ee^_0x39eaf9)&&(_0xd24b7b(),_0x514329[_0x251732([0x6f,0x66,0x66])]());});}))];return window[_0x251732([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x251732([0x72,0x61,0x63,0x65])](_0x4d5c49)[_0x251732([0x74,0x68,0x65,0x6e])](()=>_0x4aee14);}async function _0x31bf71(){await _0x424460,_0x2fa0bf[_0x251732([0x6d,0x6f,0x64,0x65,0x6c])][_0x251732([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b819b,_0x2fa0bf[_0x251732([0x6d,0x6f,0x64,0x65,0x6c])][_0x251732([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b819b,_0x2fa0bf[_0x251732([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x251732([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x393f2a(_0x21644d){const _0x446493=_0x395ea4();_0x2fa0bf[_0x446493]=_0x251732([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21644d,_0x21644d!=_0x251732([0x56,0x61,0x6c,0x69,0x64])&&_0x31bf71();}function _0x395ea4(){const _0x49f3eb=window[_0x251732([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x251732([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x251732([0x6e,0x6f,0x77])]())[_0x251732([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x251732([0x2e]),'');let _0x43f161=_0x251732([0x75]);for(let _0x27549f=0x0;_0x27549f<_0x49f3eb[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27549f+=0x2){let _0x4070a7=window[_0x251732([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f3eb[_0x251732([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27549f,_0x27549f+0x2));_0x4070a7>=_0x416313[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4070a7-=_0x416313[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43f161+=_0x416313[_0x4070a7];}return _0x43f161;}function _0x464cd3(){const _0x1c734d=_0x4c7fcb[_0x251732([0x73,0x70,0x6c,0x69,0x74])](_0x251732([0x2e]));if(0x3!=_0x1c734d[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b43b4(_0x1c734d[0x1]);function _0x5b43b4(_0x387104){const _0x48a09e=_0x79d00d(_0x387104);return _0x48a09e&&_0xd0b6aa()?_0x48a09e:null;function _0xd0b6aa(){const _0x12ffe7=_0x48a09e[_0x251732([0x6a,0x74,0x69])],_0x55d3f0=window[_0x251732([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12ffe7[_0x251732([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12ffe7[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46932f={..._0x48a09e,[_0x251732([0x6a,0x74,0x69])]:_0x12ffe7[_0x251732([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12ffe7[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46932f[_0x251732([0x76,0x63])],_0x1e2c67(_0x46932f)==_0x55d3f0;}}}async function _0x45969e(){let _0x74f3ad=!0x0;try{const _0x2a31e5=_0x4c7fcb[_0x251732([0x73,0x70,0x6c,0x69,0x74])](_0x251732([0x2e])),[_0xbc6c57,_0x3c47af,_0x506e6e]=_0x2a31e5;return _0xae163a(_0xbc6c57),await _0x4d3c2b(_0xbc6c57,_0x3c47af,_0x506e6e),_0x74f3ad;}catch{return!0x1;}function _0xae163a(_0x36d53b){const _0x3f1773=_0x79d00d(_0x36d53b);_0x3f1773&&_0x3f1773[_0x251732([0x61,0x6c,0x67])]==_0x251732([0x45,0x53,0x32,0x35,0x36])||(_0x74f3ad=!0x1);}async function _0x4d3c2b(_0x4b9f85,_0x156d9b,_0x459d7c){const _0x14b7c3=window[_0x251732([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x251732([0x66,0x72,0x6f,0x6d])](_0x3aee19(_0x459d7c),_0x35129f=>_0x35129f[_0x251732([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52a044=new window[(_0x251732([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x251732([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b9f85+_0x251732([0x2e])+_0x156d9b),_0x3df979=window[_0x251732([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x251732([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3df979)return;const _0x1cb603=await _0x3df979[_0x251732([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x251732([0x6a,0x77,0x6b]),_0x5b093c,{[_0x251732([0x6e,0x61,0x6d,0x65])]:_0x251732([0x45,0x43,0x44,0x53,0x41]),[_0x251732([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x251732([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x251732([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3df979[_0x251732([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x251732([0x6e,0x61,0x6d,0x65])]:_0x251732([0x45,0x43,0x44,0x53,0x41]),[_0x251732([0x68,0x61,0x73,0x68])]:{[_0x251732([0x6e,0x61,0x6d,0x65])]:_0x251732([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1cb603,_0x14b7c3,_0x52a044)||(_0x74f3ad=!0x1);}}function _0x79d00d(_0x2f9d80){return _0x2f9d80[_0x251732([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x251732([0x65,0x79]))?JSON[_0x251732([0x70,0x61,0x72,0x73,0x65])](_0x3aee19(_0x2f9d80)):null;}function _0x3aee19(_0x55b2b2){return window[_0x251732([0x61,0x74,0x6f,0x62])](_0x55b2b2[_0x251732([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x251732([0x2b]))[_0x251732([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x251732([0x2f])));}function _0x1e2c67(_0x239761){let _0x12886e=0x1505;function _0x4221e4(_0x174bb2){for(let _0xc26d53=0x0;_0xc26d53<_0x174bb2[_0x251732([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc26d53++){const _0x4b0580=_0x174bb2[_0x251732([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc26d53);_0x12886e=(_0x12886e<<0x5)+_0x12886e+_0x4b0580,_0x12886e&=_0x12886e;}}function _0x5d985c(_0xe11e16){Array[_0x251732([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe11e16)?_0xe11e16[_0x251732([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d985c):_0xe11e16&&typeof _0xe11e16==_0x251732([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x251732([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe11e16)[_0x251732([0x73,0x6f,0x72,0x74])]()[_0x251732([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b11ed,_0x10334b])=>{_0x4221e4(_0x4b11ed),_0x5d985c(_0x10334b);}):_0x4221e4(window[_0x251732([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe11e16));}return _0x5d985c(_0x239761),_0x12886e>>>0x0;}function _0x2e3151(_0x1b6467){return _0x1b6467[_0x251732([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x251732([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x251732([0x30]));}function _0x3b14a4(_0x43a284){return _0x43a284[_0x251732([0x73,0x70,0x6c,0x69,0x74])]('')[_0x251732([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x251732([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b819b(){}function _0x251732(_0x2d4488){return _0x2d4488['map'](_0xc7d9ba=>String['fromCharCode'](_0xc7d9ba))['join']('');}_0x393f2a(await _0x34c7d8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x155104){const {plugins:_0x35fd48,editing:_0x15969,model:_0x59eee3}=this['editor'],_0x4a872d=_0x35fd48['get'](K)['getFootnote'](_0x155104);return!!_0x4a872d&&(_0x59eee3['change'](_0x1c6d6d=>{_0x1c6d6d['setSelection'](_0x1c6d6d['createPositionAt'](_0x4a872d['definition'],'end'));}),_0x15969['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x23167a){const {plugins:_0x20ad1f,editing:_0xe4e165,model:_0x1ad87c}=this['editor'],_0x3c3651=_0x20ad1f['get'](K)['getFootnote'](_0x23167a);return!!_0x3c3651&&(_0x1ad87c['change'](_0x2a9399=>{_0x2a9399['setSelection'](_0x3c3651['reference'],'on');}),_0xe4e165['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x56cfba}=this['editor']['model'],_0x25c293=this['editor']['config']['get']('footnotes.multiBlock');_0x56cfba['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x56cfba['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x56cfba['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x25c293?_0x56cfba['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x56cfba['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x56cfba['addChildCheck'](_0x35805f=>{for(const _0x4bb401 of _0x35805f)if('footnoteDefinition'===_0x4bb401['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5e427f}=this,{conversion:_0x4a51d4,editing:_0xe0704d}=_0x5e427f,{t:t}=_0x5e427f['locale'];_0x4a51d4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x26a1ec,{writer:_0x55f5d9,consumable:_0x3af22f})=>{const _0x2eec03=_0x26a1ec['getChild'](0x0);if(!_0x2eec03||!_0x2eec03['is']('element','a'))return null;const _0x500cfe=_0x2eec03['getAttribute']('href')||'';if(!_0x500cfe['startsWith']('#'))return null;const _0x1ba779=_0x500cfe['replace'](/^#/,'');if(!_0x1ba779)return null;_0x3af22f['consume'](_0x2eec03,{'name':!0x0,'attributes':['href']});for(const {item:_0x535412}of _0xe0704d['view']['createRangeIn'](_0x2eec03))_0x535412['is']('$textProxy')?_0x3af22f['consume'](_0x535412['textNode'],{'name':!0x0}):_0x535412['is']('element')&&_0x3af22f['consume'](_0x535412,{'name':!0x0});return _0x55f5d9['createElement']('footnoteRef',{'footnoteId':_0x1ba779});}}),_0x4a51d4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1d2b88,{writer:_0x371fa7})=>z(_0x1d2b88,_0x371fa7)}),_0x4a51d4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x40d3bb,{writer:_0x276578})=>{const _0x8b3270=_0x40d3bb['getAttribute']('footnoteCounter');return _0x5a9f28(z(_0x40d3bb,_0x276578),_0x276578,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x8b3270)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3edf55}=this,{t:t}=_0x3edf55['locale'],{conversion:_0x534233}=_0x3edf55;_0x534233['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x534233['for']('upcast')['add'](_0x28d868=>{_0x28d868['on']('element:ol',(_0x4e4c34,_0x150c6f,_0x3cf8ca)=>{const _0x1fe03f=_0x150c6f['viewItem'];if(!_0x1fe03f['hasClass']('footnotes-list')||!_0x150c6f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3cf8ca['consumable']['consume'](_0x1fe03f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x365e13,modelCursor:_0x48cb18}=_0x3cf8ca['convertChildren'](_0x150c6f['viewItem'],_0x150c6f['modelCursor']);_0x150c6f['modelRange']=_0x365e13,_0x150c6f['modelCursor']=_0x48cb18;}),_0x28d868['on']('element:hr',(_0x5a215a,_0x2f4065,_0x348c6d)=>{const _0x250f02=_0x2f4065['viewItem'];_0x250f02['hasClass']('footnotes-divider')&&_0x2f4065['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x348c6d['consumable']['consume'](_0x250f02,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x534233['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xf55a14,{writer:_0x1b7e10})=>H(_0x1b7e10)}),_0x534233['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2bfbba,{writer:_0x423660})=>{const _0x38267b=H(_0x423660,{'data-footnotes-list-label':t('Footnotes')}),_0x45182a=_0x5a9f28(_0x38267b,_0x423660,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x423660['setCustomProperty']('footnotesDefinitions',!0x0,_0x45182a),_0x45182a;}});}['_defineDefinitionConverters'](){const {editor:_0x154552}=this,{conversion:_0x3dd05f,locale:_0x105809}=_0x154552,_0x15b8bb=_0x154552['config']['get']('footnotes.multiBlock');_0x3dd05f['for']('upcast')['add'](_0x3a4831=>{_0x3a4831['on']('element:li',(_0x5865fe,_0x284852,_0x332eab)=>{const _0x3bcb9e=_0x284852['viewItem'];if(!_0x3bcb9e['hasClass']('footnote-definition')||!_0x3bcb9e['getAttribute']('id'))return;const _0x18162c=_0x3bcb9e['parent'];if(!_0x18162c['is']('element','ol')||!_0x18162c['hasClass']('footnotes-list'))return;if(!_0x332eab['consumable']['test'](_0x3bcb9e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x588257=_0x332eab['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3bcb9e['getAttribute']('id')});if(!_0x332eab['safeInsert'](_0x588257,_0x284852['modelCursor']))return;_0x332eab['consumable']['consume'](_0x3bcb9e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x267fcf=Array['from'](_0x3bcb9e['getChildren']())['find'](_0x2af4c3=>_0x2af4c3['is']('element')&&_0x2af4c3['hasClass']('footnote-content'));for(const _0x3d0b92 of _0x3bcb9e['getChildren']())_0x3d0b92['is']('element')&&(_0x332eab['consumable']['consume'](_0x3d0b92,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x332eab['consumable']['consume'](_0x3d0b92,{'name':!0x0,'classes':'footnote-content'}));if(_0x267fcf){if(_0x15b8bb)_0x332eab['convertChildren'](_0x267fcf,_0x588257);else{const _0x581bae=_0x332eab['writer']['createElement']('footnoteInlineContent');_0x332eab['writer']['insert'](_0x581bae,_0x588257),_0x332eab['convertChildren'](_0x267fcf,_0x581bae);}}_0x332eab['updateConversionResult'](_0x588257,_0x284852);});}),_0x3dd05f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1de089,{writer:_0x5450d9})=>X(_0x1de089,_0x5450d9,_0x105809,{'dataPipeline':!0x0})}),_0x3dd05f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5a4901,{writer:_0x4779e0})=>X(_0x5a4901,_0x4779e0,_0x105809)});}['_defineBogusParagraphConverters'](){const {editor:_0x134d61}=this,{conversion:_0x281dfa}=_0x134d61;_0x134d61['config']['get']('footnotes.multiBlock')?(_0x281dfa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x281dfa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x134d61['model']['document'],'change:data',()=>{!function(_0x4dabb7,_0x3d29be){const _0x407cc7=_0x4dabb7['document']['differ'],_0x34970e=new Set();for(const _0x39cb67 of _0x407cc7['getChanges']()){const _0x4c96f9='attribute'==_0x39cb67['type']?_0x39cb67['range']['start']['parent']:_0x39cb67['position']['parent'];_0x4c96f9['is']('element','footnoteDefinition')&&_0x34970e['add'](_0x4c96f9);}for(const _0x4e26c1 of _0x34970e['values']()){const _0x5314c7=Array['from'](_0x4e26c1['getChildren']())['filter'](_0x4ad6a3=>U(_0x4ad6a3,_0x3d29be['mapper']));for(const _0x158ed7 of _0x5314c7)_0x3d29be['reconvertItem'](_0x158ed7);}}(_0x134d61['model'],_0x134d61['editing']);})):(_0x281dfa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x281dfa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x85c796,{writer:_0x524b2e})=>{const _0xe5d31e=_0x524b2e['createContainerElement']('span');return _0x524b2e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xe5d31e),_0xe5d31e;}}));}['_defineKeyboardHandlers'](){const {editor:_0x34eb06}=this,{editing:_0x16cf1e,t:t}=_0x34eb06,_0x2b43f2=_0x34eb06['model']['document']['selection'];_0x34eb06['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x34eb06['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x16cf1e['view']['document'],'enter',(_0x4df946,_0x2f6bc5)=>{const _0x73f0a9=function(_0x137735){const _0x35e113=_0x137735['getSelectedElement']();if(_0x35e113?.['is']('element','footnoteRef'))return _0x35e113;return null;}(_0x2b43f2);if(_0x73f0a9){const _0x18ca31=_0x73f0a9['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x18ca31),_0x2f6bc5['preventDefault'](),_0x4df946['stop']();}},{'context':_0x27a868});}['_defineClickHandlers'](){const {editor:_0x61a2a2}=this,{editing:_0x154e62}=_0x61a2a2;_0x61a2a2['editing']['view']['addObserver'](_0x5b9b89),_0x61a2a2['editing']['view']['addObserver'](_0xc5b3a4);let _0x3d9bcf=!0x1;this['listenTo'](_0x154e62['view']['document'],'pointerdown',(_0x419fbf,_0x314891)=>{const {target:_0xa81da9}=_0x314891,_0x578263=_0x154e62['view']['document']['selection'];_0x3d9bcf=!!(_0xa81da9?.['is']('element','a')&&_0xa81da9['parent']?.['is']('element','sup')&&_0xa81da9['parent']['hasClass']('footnote'))&&_0x578263['getSelectedElement']()===_0xa81da9['parent'];},{'priority':'high'}),this['listenTo'](_0x154e62['view']['document'],'click',(_0x373e5f,_0x14de4b)=>{const {target:_0x52ab3c}=_0x14de4b;if(!_0x52ab3c?.['is']('element','a'))return;if(_0x52ab3c['parent']?.['is']('element','sup')&&_0x52ab3c['parent']['hasClass']('footnote')&&!_0x3d9bcf)return void _0x14de4b['preventDefault']();let _0x5c9a70=_0x52ab3c['getAttribute']('href');if(!_0x5c9a70?.['startsWith']('#'))return;_0x5c9a70=_0x5c9a70['slice'](0x1);let _0x3cdd0f=!0x1;(_0x5c9a70['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5c9a70['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5c9a70))&&(_0x3cdd0f=!0x0),_0x3cdd0f&&(_0x14de4b['preventDefault'](),_0x373e5f['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x52a5aa}={}){return(_0xce28a1,{writer:_0x4da2b0})=>{if(!M(_0xce28a1))return null;if(!_0x52a5aa)return _0x4da2b0['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x290524=_0x4da2b0['createContainerElement']('p');return _0x4da2b0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x290524),_0x290524;};}function M(_0x32313d){const {parent:_0xe65894}=_0x32313d;if(!_0xe65894?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xe65894['childCount'])return!0x1;for(const _0x1fc2a1 of _0x32313d['getAttributeKeys']())if(!_0x1fc2a1['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1fc2a1)return!0x1;return!0x0;}function U(_0x414a6f,_0x33f7ab){if(!_0x414a6f['is']('element','paragraph'))return!0x1;const _0x4c5163=_0x33f7ab['toViewElement'](_0x414a6f);return!!_0x4c5163&&M(_0x414a6f)!==_0x4c5163['is']('element','span');}function q(_0x61476e){return _0x27a868(_0x61476e)&&_0x61476e['is']('containerElement')&&!!_0x61476e['getCustomProperty']('footnotesDefinitions');}function H(_0xf22799,_0x451d01={}){const _0x2c355e=_0xf22799['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x523b77=_0xf22799['createContainerElement']('ol',{'class':'footnotes-list'},_0xf22799['createSlot']());return _0xf22799['createContainerElement']('div',{'class':'footnotes',..._0x451d01},[_0x2c355e,_0x523b77]);}function z(_0x252e84,_0x23a0ef){const _0x48173d=_0x252e84['getAttribute']('footnoteId'),_0x31e0fe=_0x252e84['getAttribute']('footnoteCounter'),_0x3725eb=_0x23a0ef['createUIElement']('a',{'href':'#'+_0x48173d},function(_0x33d366){const _0x2a8697=this['toDomElement'](_0x33d366);return _0x2a8697['textContent']=_0x31e0fe,_0x2a8697;}),_0x2b6804=_0x23a0ef['createContainerElement']('sup',{'id':'ref-'+_0x48173d,'class':'footnote'},[_0x3725eb]);return _0x2b6804['getFillerOffset']=()=>null,_0x2b6804;}function X(_0x40af26,_0x178ff6,_0x429820,{dataPipeline:_0x46bd74}={}){const {t:t}=_0x429820,_0x525123=_0x40af26['getAttribute']('footnoteId'),_0x5b4907=_0x178ff6['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x525123},function(_0x196c19){const _0x136921=this['toDomElement'](_0x196c19);return _0x136921['innerText']='^',_0x136921;}),_0x3c830a=_0x46bd74?_0x178ff6['createContainerElement']('div',{'class':'footnote-content'}):_0x19f027(_0x178ff6['createEditableElement']('div',{'class':'footnote-content'}),_0x178ff6,{'label':t('Footnote\x20content.')});return _0x178ff6['insert'](_0x178ff6['createPositionAt'](_0x3c830a,0x0),_0x178ff6['createSlot']()),_0x178ff6['createContainerElement']('li',{'class':'footnote-definition','id':_0x525123},[_0x5b4907,_0x3c830a]);}class J extends _0x2cdd69{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x363560];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0xa46e}=this,{plugins:_0x44eedb,model:_0x3eba66}=_0xa46e,_0x529597=_0x44eedb['get'](_0x363560),_0x2a4d65=_0x44eedb['get'](K);this['listenTo'](_0x529597,'outputTransformation',(_0x46097,_0x38f7aa)=>{const _0x5d0f4c=Q(_0x3eba66['createRangeIn'](_0x38f7aa['content']));if(!_0x5d0f4c['length'])return;const _0x23e5db=_0x2a4d65['getFootnotes'](),_0x3a2e51=_0x5d0f4c['reduce']((_0x579615,_0x177345)=>{const _0x203f53=_0x23e5db['find'](_0x144d75=>_0x144d75['id']===_0x177345);if(_0x203f53){const _0x1fed53=_0xa46e['data']['toView'](_0x203f53['definition'],{'isClipboardPipeline':!0x0}),_0x535763=_0xa46e['data']['htmlProcessor']['toData'](_0x1fed53);_0x579615[_0x203f53['id']]=_0x535763;}return _0x579615;},Object['create'](null));_0x38f7aa['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3a2e51));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1ca998}=this,{model:_0x3ff17,plugins:_0x5d11ad}=_0x1ca998,{view:_0x50a411}=_0x1ca998['editing'],_0x19f29c=_0x5d11ad['get'](_0x363560),_0x5d95db=_0x5d11ad['get'](K),_0xf25403=_0x1ca998['config']['get']('footnotes.multiBlock');let _0x2d4c7a=null;this['listenTo'](_0x50a411['document'],'clipboardInput',(_0x48b6ae,_0x5c5b70)=>{const _0x7cea9=_0x5c5b70['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2d4c7a=_0x7cea9?JSON['parse'](_0x7cea9):null;}),this['listenTo'](_0x19f29c,'contentInsertion',(_0x4b2d1f,_0x457055)=>{const _0x17ecab=_0x457055['sourceEditorId']===this['editor']['id'];_0x17ecab&&'drop'===_0x457055['method']||_0x3ff17['change'](_0x59e85e=>{let _0xb67de5=_0x5d95db['getFootnotesDefinitionsObjectElement']();const _0x5504e1=!!_0xb67de5&&Array['from'](_0x3ff17['document']['selection']['getSelectedBlocks']())['includes'](_0xb67de5);if(!_0x2d4c7a&&function(_0x3072d9){for(const {item:_0x5577af}of _0x3072d9)if(_0x5577af['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x3ff17['createRangeIn'](_0x457055['content']))&&(_0x2d4c7a=function(_0x4a4a98,_0x28e76e){const _0x5d2ad6=G(_0x4a4a98,_0x28e76e);if(!_0x5d2ad6)return null;const _0x26c3cc=Object['create'](null);for(const _0x573f48 of _0x5d2ad6['getChildren']())_0x573f48['is']('element','footnoteDefinition')&&_0x573f48['hasAttribute']('footnoteId')&&(_0x26c3cc[_0x573f48['getAttribute']('footnoteId')]=_0x4a4a98['cloneElement'](_0x573f48,!0x0));return Object['keys'](_0x26c3cc)['length']?_0x26c3cc:null;}(_0x59e85e,_0x457055['content'])),(_0xb67de5&&!_0x5504e1||!_0xb67de5&&!_0x2d4c7a)&&function(_0x4b695d,_0x2e841d){const _0x59d597=[];for(const {item:_0x5de75b}of _0x4b695d['createRangeIn'](_0x2e841d))_0x5de75b['is']('element','footnotesDefinitions')&&_0x59d597['push'](_0x5de75b);for(const _0xc3ba4e of _0x59d597)_0x4b695d['remove'](_0xc3ba4e);}(_0x59e85e,_0x457055['content']),!_0x2d4c7a)return;const {selection:_0x252326}=_0x3ff17['document'],_0x49d5c9=_0x252326['getFirstRange']()['root'];_0xb67de5&&!_0x5504e1||(_0xb67de5=G(_0x59e85e,_0x457055['content']),_0xb67de5||=_0x5d95db['_insertEmptyFootnotesDefinitionsContainer'](_0x59e85e,_0x49d5c9));const _0x20055e=Array['from'](_0x252326['getRanges']())['flatMap'](Q),_0x82edd=function(_0x2e6aed,_0x131bb6,_0x4ad3e8){const _0x2860dc=Object['create'](null);for(const {item:_0x4d030f}of _0x2e6aed['createRangeIn'](_0x131bb6))if(_0x4d030f['is']('element','footnoteRef')){const _0xd11d22=_0x4d030f['getAttribute']('footnoteId');if(!_0x4ad3e8(_0xd11d22))continue;_0x2860dc[_0xd11d22]||(_0x2860dc[_0xd11d22]=_0x6037a0()),_0x2e6aed['setAttribute']('footnoteId',_0x2860dc[_0xd11d22],_0x4d030f);}return _0x2860dc;}(_0x59e85e,_0x457055['content'],_0x41326a=>{if(!_0x17ecab)return!0x0;return!!_0x5d95db['getFootnote'](_0x41326a)&&!_0x20055e['includes'](_0x41326a);});for(const [_0x51cefd,_0x262da0]of Object['entries'](_0x2d4c7a)){const _0x21db72=_0x82edd[_0x51cefd]||_0x51cefd;let _0xfd4104;if('string'!=typeof _0x262da0)_0xfd4104=_0x262da0,_0x21db72!==_0x51cefd&&_0x59e85e['setAttribute']('footnoteId',_0x21db72,_0xfd4104);else{_0xfd4104=_0x59e85e['createElement']('footnoteDefinition',{'footnoteId':_0x21db72});const _0x4890b6=_0x1ca998['data']['htmlProcessor']['toView'](_0x262da0);let _0xa2062e;if(_0xf25403)_0xa2062e=_0x1ca998['data']['toModel'](_0x4890b6,_0xfd4104);else{_0xa2062e=_0x59e85e['createElement']('footnoteInlineContent');const _0x54cf70=_0x1ca998['data']['toModel'](_0x4890b6,_0xa2062e);_0x59e85e['insert'](_0x54cf70,_0xa2062e);}_0x59e85e['append'](_0xa2062e,_0xfd4104);}_0x59e85e['insert'](_0xfd4104,_0xb67de5,'end');}_0x2d4c7a=null;});});}}function G(_0x5a15c4,_0xbaaffa){for(const {item:_0x27fb0c}of _0x5a15c4['createRangeIn'](_0xbaaffa))if(_0x27fb0c['is']('element','footnotesDefinitions'))return _0x27fb0c;return null;}function Q(_0x2ee665){const _0x19d385=new Set();for(const {item:_0x489333}of _0x2ee665)_0x489333['is']('element','footnoteRef')&&_0x19d385['add'](_0x489333['getAttribute']('footnoteId'));return Array['from'](_0x19d385);}class W extends _0x2cdd69{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b715f}=this,{componentFactory:_0x264b9f}=_0x2b715f['ui'];_0x264b9f['add']('insertFootnote',Y(_0x2b715f,_0x1329f5)),_0x264b9f['add']('menuBar:insertFootnote',Y(_0x2b715f,_0x1f0e73)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x496c3d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x277e24;for(const _0x328dec in _0x496c3d){const _0x23c3ab=_0x328dec,_0x2f4325=_0x496c3d[_0x23c3ab];if('footnotesLicenseKeyValid'==_0x2f4325||'footnotesLicenseKeyInvalid'==_0x2f4325||'footnotesLicenseKeyExpired'==_0x2f4325||'footnotesLicenseKeyDomainLimit'==_0x2f4325||'footnotesLicenseKeyNotAllowed'==_0x2f4325||'footnotesLicenseKeyEvaluationLimit'==_0x2f4325||'footnotesLicenseKeyUsageLimit'==_0x2f4325){delete _0x496c3d[_0x23c3ab],_0x277e24=_0x2f4325,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x277e24&&_0x496c3d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x277e24&&_0x496c3d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x277e24&&_0x496c3d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x277e24&&_0x496c3d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x277e24&&_0x496c3d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x277e24&&_0x496c3d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x2c5040,_0x56005f){const _0x56fd4e=_0x2c5040['commands']['get']('insertFootnote');return _0x1db5d2=>{const {t:t}=_0x1db5d2,_0x5a84ad=new _0x56005f(_0x1db5d2),_0x4c80aa=_0x5a84ad instanceof _0x1f0e73;return _0x5a84ad['bind']('isEnabled')['to'](_0x56fd4e,'isEnabled'),_0x5a84ad['set']({'label':t(_0x4c80aa?'Footnote':'Insert\x20footnote'),'icon':_0x23967d,'tooltip':!0x0}),_0x5a84ad['on']('execute',()=>{_0x56fd4e['execute'](),_0x2c5040['editing']['view']['focus']();}),_0x5a84ad;};}class Z extends _0x2cdd69{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 _0x362a34{['refresh'](){const {editor:_0x6451dd}=this,_0x42ac28=_0x6451dd['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x42ac28,this['value']=_0x42ac28?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x50f377}){const {editor:_0x1b37d1}=this,_0xa38ff7=_0x1b37d1['plugins']['get'](K),_0x3b62df=_0xa38ff7['getFootnotesDefinitionsObjectElement']();_0x3b62df&&ot['includes'](_0x50f377)&&_0x1b37d1['model']['change'](_0x12010e=>{_0x12010e['setAttribute']('footnotesListStyle',_0x50f377,_0x3b62df),_0xa38ff7['_updateFootnotesCounters'](_0x12010e);});}}class it extends _0x362a34{['refresh'](){const {editor:_0x26b61f}=this,_0x3aba9c=_0x26b61f['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3aba9c,this['value']=_0x3aba9c?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1ff6d0}){const {editor:_0x14ae9e}=this,_0xc48440=_0x14ae9e['plugins']['get'](K),_0x572317=_0xc48440['getFootnotesDefinitionsObjectElement']();_0x572317&&Number['isInteger'](_0x1ff6d0)&&_0x14ae9e['model']['change'](_0x5239c3=>{_0x5239c3['setAttribute']('footnotesListStart',_0x1ff6d0,_0x572317),_0xc48440['_updateFootnotesCounters'](_0x5239c3);});}}function st(_0x239ebc,_0x142556){let _0x35cc30='',_0x54dd5f=_0x239ebc;for(;_0x54dd5f>0x0;){const _0x15326a=(_0x54dd5f-0x1)%0x1a;_0x35cc30=String['fromCharCode'](0x61+_0x15326a)+_0x35cc30,_0x54dd5f=Math['floor']((_0x54dd5f-0x1)/0x1a);}return _0x142556?_0x35cc30['toUpperCase']():_0x35cc30;}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(_0x1bc04b,_0x29b04a){let _0xb41737='',_0x263045=_0x1bc04b;for(const {value:_0x293b6f,numeral:_0x98c4ac}of rt)for(;_0x263045>=_0x293b6f;)_0xb41737+=_0x98c4ac,_0x263045-=_0x293b6f;return _0x29b04a?_0xb41737:_0xb41737['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x2cdd69{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5075b7}=this;_0x5075b7['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5075b7['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5075b7['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x5075b7['commands']['add']('footnotesStyle',new nt(_0x5075b7)),_0x5075b7['commands']['add']('footnotesStart',new it(_0x5075b7)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a49c5}=this,{schema:_0x5a9523}=_0x4a49c5['model'];_0x5a9523['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x6b36b2}=this,{conversion:_0x2cafe2,model:_0x572ed6}=_0x6b36b2,{schema:_0x51018d}=_0x572ed6;_0x2cafe2['for']('upcast')['add'](_0x3b2063=>{_0x3b2063['on']('element:ol',(_0xc30cd8,_0x345017,_0x225318)=>{const _0x1b94c1=_0x345017['viewItem'],_0xe43dec=_0x345017['modelCursor']?.['parent'];_0x1b94c1['hasClass']('footnotes-list')&&_0xe43dec?.['is']('element','footnotesDefinitions')&&(function(_0x41fe92,_0x41b302,_0x58ed52,_0x36a40e){if(!_0x36a40e['checkAttribute'](_0x41b302,'footnotesListStart'))return;let _0x31f5e6=0x1;const _0x163b0e=_0x58ed52['consumable']['consume'](_0x41fe92,{'attributes':'start'});if(_0x163b0e){const _0x3c714b=Number['parseInt'](_0x41fe92['getAttribute']('start'),0xa);Number['isNaN'](_0x3c714b)||(_0x31f5e6=_0x3c714b);}!_0x163b0e&&_0x41b302['hasAttribute']('footnotesListStart')||_0x58ed52['writer']['setAttribute']('footnotesListStart',_0x31f5e6,_0x41b302);}(_0x1b94c1,_0xe43dec,_0x225318,_0x51018d),function(_0x3de46d,_0x5dddcf,_0x235e0b,_0x23089c){if(!_0x23089c['checkAttribute'](_0x5dddcf,'footnotesListStyle'))return;let _0x5b5356='decimal',_0x2d09c3=!0x1;if(_0x235e0b['consumable']['consume'](_0x3de46d,{'attributes':'type'})){const _0x3891c0={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x3de46d['getAttribute']('type')];_0x3891c0&&(_0x5b5356=_0x3891c0),_0x2d09c3=!0x0;}if(_0x235e0b['consumable']['consume'](_0x3de46d,{'styles':'list-style-type'})){const _0x151a53=ct(_0x3de46d['getStyle']('list-style-type'));_0x151a53&&(_0x5b5356=_0x151a53),_0x2d09c3=!0x0;}!_0x2d09c3&&_0x5dddcf['hasAttribute']('footnotesListStyle')||_0x235e0b['writer']['setAttribute']('footnotesListStyle',_0x5b5356,_0x5dddcf);}(_0x1b94c1,_0xe43dec,_0x225318,_0x51018d));});}),_0x2cafe2['for']('downcast')['add'](_0x2ffdbc=>{_0x2ffdbc['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x38c6de,_0x3e626f,_0xf6fbc5)=>{if(!_0xf6fbc5['consumable']['consume'](_0x3e626f['item'],_0x38c6de['name']))return;const _0x25b596=ut(_0x3e626f['item'],_0xf6fbc5['mapper']),{attributeNewValue:_0x936194}=_0x3e626f;null==_0x936194||0x1===_0x936194?_0xf6fbc5['writer']['removeAttribute']('start',_0x25b596):_0xf6fbc5['writer']['setAttribute']('start',String(_0x936194),_0x25b596);}),_0x2ffdbc['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x9a453d,_0x14b0b7,_0x501f01)=>{if(!_0x501f01['consumable']['consume'](_0x14b0b7['item'],_0x9a453d['name']))return;const _0xad58d2=ut(_0x14b0b7['item'],_0x501f01['mapper']),{attributeNewValue:_0x2bfcf6}=_0x14b0b7;_0x2bfcf6&&'decimal'!==_0x2bfcf6?_0x501f01['writer']['setStyle']('list-style-type',_0x2bfcf6,_0xad58d2):_0x501f01['writer']['removeStyle']('list-style-type',_0xad58d2);});});}['_definePostfixer'](){const {editor:_0x27ed46}=this,{model:_0x519dfe}=_0x27ed46,_0x885fc1=_0x27ed46['plugins']['get'](K),_0x1b1786=this['_getDefaultListStyle'](),_0x321b7e=this['_getDefaultStartIndex']();_0x519dfe['document']['registerPostFixer'](_0x38aa3f=>{const _0x1b145b=_0x519dfe['document']['differ']['getChanges']();let _0x44d134=!0x1;for(const _0x3e4e5a of _0x1b145b){if('insert'!==_0x3e4e5a['type']||'$text'===_0x3e4e5a['name'])continue;const _0x4ed7c4=_0x519dfe['createRangeOn'](_0x3e4e5a['position']['nodeAfter']);for(const _0x43f32 of _0x4ed7c4['getItems']())_0x43f32['is']('element','footnotesDefinitions')&&(!_0x43f32['hasAttribute']('footnotesListStart')&&_0x519dfe['schema']['checkAttribute'](_0x43f32,'footnotesListStart')&&(_0x38aa3f['setAttribute']('footnotesListStart',_0x321b7e,_0x43f32),_0x44d134=!0x0),!_0x43f32['hasAttribute']('footnotesListStyle')&&_0x519dfe['schema']['checkAttribute'](_0x43f32,'footnotesListStyle')&&(_0x38aa3f['setAttribute']('footnotesListStyle',_0x1b1786,_0x43f32),_0x44d134=!0x0));}return _0x44d134&&_0x885fc1['_updateFootnotesCounters'](_0x38aa3f),_0x44d134;});}['_defineFormatter'](){const {editor:_0x52ab84}=this;_0x52ab84['plugins']['get'](K)['setFootnoteFormatter'](_0x56d762=>this['_formatFootnoteListValue'](_0x56d762));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x373902,value:_0x6cd048,digits:_0x278d2e}){const _0x418069=_0x373902['getAttribute']('footnotesListStyle'),_0xcd1d4d=_0x373902['getAttribute']('footnotesListStart'),_0x2c42b5=Math['floor'](_0x6cd048)+(_0xcd1d4d??0x1)-0x1;switch(_0x418069){case'decimal-leading-zero':return function(_0x10f81a,_0x481724){return String(_0x10f81a)['padStart'](_0x481724,'0');}(_0x2c42b5,Math['max'](0x2,_0x278d2e));case'lower-alpha':case'lower-latin':return st(_0x2c42b5,!0x1);case'upper-alpha':case'upper-latin':return st(_0x2c42b5,!0x0);case'lower-roman':return lt(_0x2c42b5,!0x1);case'upper-roman':return lt(_0x2c42b5,!0x0);case'arabic-indic':return String(_0x2c42b5)['replace'](/\d/g,_0x59ec5f=>ft[Number(_0x59ec5f)]);default:return String(_0x2c42b5);}}}function ct(_0x16824c){if('string'==typeof _0x16824c){const _0x4e50cc=et[_0x16824c];if(_0x4e50cc)return _0x4e50cc;if(ot['includes'](_0x16824c))return _0x16824c;}return null;}function ut(_0x5455c7,_0x3c55c5){const _0xbd0ce=_0x3c55c5['toViewElement'](_0x5455c7);return Array['from'](_0xbd0ce['getChildren']())['find'](_0x1c1a28=>_0x1c1a28['is']('element','ol')&&_0x1c1a28['hasClass']('footnotes-list'));}class dt extends _0xf19cc5{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x52f95c();['keystrokes']=new _0x423d5e();['focusables']=new _0x58747d();['focusCycler'];constructor(_0x4e8c2b,{styleButtonViews:_0x3dbf9d,styleGridAriaLabel:_0x4d40cb}){super(_0x4e8c2b),(this['focusCycler']=new _0x44d75b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3dbf9d,_0x4d40cb),[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 _0x22073e of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x22073e['element']);_0x583ae8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x5f2c91['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 _0x26e049=_0x41a61a=>_0x41a61a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x26e049),this['keystrokes']['set']('arrowleft',_0x26e049),this['keystrokes']['set']('arrowup',_0x26e049),this['keystrokes']['set']('arrowdown',_0x26e049);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xada49b,_0x5664a1){const _0x55ea29=new _0xf19cc5(this['locale']);return _0x55ea29['children']=_0x55ea29['createCollection'](),_0x55ea29['children']['addMany'](_0xada49b),_0x55ea29['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5664a1,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x55ea29['children']}),_0x55ea29['children']['delegate']('execute')['to'](this),_0x55ea29['focus']=function(){for(const _0x21d2b9 of this['children'])if(_0x21d2b9 instanceof _0x1329f5&&_0x21d2b9['isOn'])return void _0x21d2b9['focus']();this['children']['first']['focus']();},_0x55ea29['focusTracker']=new _0x52f95c(),_0x55ea29['keystrokes']=new _0x423d5e(),_0x55ea29['render'](),_0x55ea29['keystrokes']['listenTo'](_0x55ea29['element']),this['children']['add'](_0x55ea29),_0x55ea29;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2f8fbf=this['_createStartIndexPropertyView'](),_0x47b0b8=[_0x2f8fbf],_0x5165c0=new _0x3af2f9(this['locale'],_0x47b0b8);return _0x5165c0['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5165c0['buttonView']['bind']('isEnabled')['toMany'](_0x47b0b8,'isEnabled',(..._0x40470d)=>_0x40470d['some'](_0x2aa693=>_0x2aa693)),_0x5165c0['buttonView']['on']('change:isEnabled',(_0x39afc5,_0x174b01,_0x4a7444)=>{_0x4a7444||(_0x5165c0['isCollapsed']=!0x0);}),this['children']['add'](_0x5165c0),[_0x2f8fbf,_0x5165c0];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4cbb93=new _0x21475e(this['locale'],_0x5cb59f);return _0x4cbb93['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4cbb93['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4cbb93['fieldView']['on']('input',()=>{const _0x55ad35=_0x4cbb93['fieldView']['element'],_0x24d1f5=_0x55ad35['valueAsNumber'];Number['isNaN'](_0x24d1f5)?_0x4cbb93['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x55ad35['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x24d1f5}):_0x4cbb93['errorText']=t(_0x24d1f5<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4cbb93;}}class ht extends _0x2cdd69{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xb42957,_0x437073];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x59a3f3}=this,{componentFactory:_0x1778dc}=_0x59a3f3['ui'];_0x59a3f3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1778dc['add']('footnotesStyle',function(_0x25d0bf){return _0x3c0dd5=>{const {t:t}=_0x3c0dd5,_0x200858=_0x25d0bf['commands']['get']('footnotesStyle'),_0x372936=_0x1726ac(_0x3c0dd5),{buttonView:_0x3b3b8f}=_0x372936;return _0x372936['class']='ck-footnotes-styles-dropdown',_0x372936['bind']('isEnabled')['to'](_0x200858,'isEnabled'),_0x3b3b8f['set']({'label':t('Footnotes\x20style'),'icon':_0x23967d,'tooltip':!0x0}),_0x372936['once']('change:isOpen',()=>{const _0x4924b8=function({editor:_0x160b3d,dropdownView:_0x22f484}){const {t:t}=_0x160b3d['locale'],_0x621596=t('Footnotes\x20definitions\x20styles'),_0x5009dd=function(_0x2114e1){const {t:t}=_0x2114e1['locale'],_0x1ccfbd=_0x2114e1['config']['get']('footnotes.footnotesProperties.listStyles'),_0x44e7ed=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x38eabf},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x29bbde},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x524365},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x56bc00},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x13ed9d},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x48ccd3},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x32feae}];return _0x1ccfbd['map'](_0x4bfaf2=>{const _0x427729=ct(_0x4bfaf2),_0x6915fa=_0x44e7ed['find'](_0x5aba1d=>_0x5aba1d['style']===_0x427729);return function(_0x3fe7f6,_0x595227){const {locale:_0xc0ac47}=_0x3fe7f6,{label:_0x44ca71,icon:_0x392ece,tooltip:_0x127175,style:_0x28d376}=_0x595227,_0x1128e7=_0x3fe7f6['commands']['get']('footnotesStyle'),_0x480be8=new _0x1329f5(_0xc0ac47);return _0x480be8['set']({'label':_0x44ca71,'icon':_0x392ece,'tooltip':_0x127175}),_0x480be8['bind']('isOn')['to'](_0x1128e7,'value',_0x63a6e3=>_0x63a6e3===_0x28d376),_0x480be8['bind']('isEnabled')['to'](_0x1128e7,'isEnabled'),_0x480be8['on']('execute',()=>{_0x3fe7f6['execute']('footnotesStyle',{'value':_0x28d376}),_0x3fe7f6['editing']['view']['focus']();}),_0x480be8;}(_0x2114e1,_0x6915fa);});}(_0x160b3d),_0x2d9ac0=new dt(_0x160b3d['locale'],{'styleGridAriaLabel':_0x621596,'styleButtonViews':_0x5009dd}),_0x3d1acd=_0x160b3d['commands']['get']('footnotesStart');return _0x2d9ac0['startIndexFieldView']['bind']('isEnabled')['to'](_0x3d1acd),_0x2d9ac0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3d1acd),_0x2d9ac0['on']('footnotesListStart',(_0x18f38c,_0x36592f)=>{_0x160b3d['execute']('footnotesStart',{'value':_0x36592f['startIndex']});}),_0x2d9ac0['delegate']('execute')['to'](_0x22f484),_0x2d9ac0;}({'editor':_0x25d0bf,'dropdownView':_0x372936});_0x372936['panelView']['children']['add'](_0x4924b8);}),_0x372936;};}(_0x59a3f3));}['afterInit'](){const {editor:_0x1053bb}=this,{t:t}=_0x1053bb['locale'],_0x193aa4=_0x1053bb['plugins']['get'](_0x437073),{defaultPositions:_0xafe654}=_0x461340;_0x193aa4['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1053bb['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5f24cd=>{let _0x1cec79=_0x5f24cd['getFirstPosition']()?.['parent'];return _0x1cec79?.['is']('$text')&&(_0x1cec79=_0x1cec79['parent']),_0x1cec79?.['is']('element')?_0x1cec79['findAncestor'](q):null;},'positions':[_0xafe654['southArrowNorth'],_0xafe654['southArrowNorthMiddleWest'],_0xafe654['southArrowNorthMiddleEast'],_0xafe654['southArrowNorthWest'],_0xafe654['southArrowNorthEast'],_0xafe654['northArrowSouth'],_0xafe654['northArrowSouthMiddleWest'],_0xafe654['northArrowSouthMiddleEast'],_0xafe654['northArrowSouthWest'],_0xafe654['northArrowSouthEast'],_0xafe654['viewportStickyNorth']]});}}class mt extends _0x2cdd69{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 _0x8bc47d,Command as _0x2ecdf5}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5618f5,isWidget as _0x2698e2,toWidgetEditable as _0x329aa6,WidgetToolbarRepository as _0x2e58dc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x24f2b5,logWarning as _0x2a0981,FocusTracker as _0xb307b8,KeystrokeHandler as _0x2e41a2,global as _0x30fc27}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x4d6499,ClickObserver as _0x4f66ef}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2aa6c6}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4e1c3e,ButtonView as _0x4d71ae,View as _0x5bcf97,ViewCollection as _0x217e0f,FocusCycler as _0x11a4bf,addKeyboardHandlingForGrid as _0xa476a5,CollapsibleView as _0x1b22a0,LabeledFieldView as _0x3270d7,createLabeledInputNumber as _0x7de0f,ContextualBalloon as _0x2dbb58,BalloonPanelView as _0x30a1b4,createDropdown as _0x1ef1d7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2e9740,IconListStyleDecimal as _0x5c9280,IconListStyleDecimalLeadingZero as _0x3ccbff,IconListStyleLowerRoman as _0x517153,IconListStyleUpperRoman as _0x56c656,IconListStyleLowerLatin as _0x3ac635,IconListStyleUpperLatin as _0x297597,IconListStyleArabicIndic as _0xa81f0f}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x442b7b,_0x447bae){this['_model']=_0x442b7b,this['_elementName']=_0x447bae['elementName'],this['_getElementKey']=_0x447bae['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x277c62){const _0x14b244=new Set(),_0x10da2c=new Map();for(const _0x7f795 of _0x277c62){if('insert'===_0x7f795['type']&&'$text'!==_0x7f795['name']&&_0x7f795['position']['nodeAfter']){const _0x37e015=this['_model']['createRangeOn'](_0x7f795['position']['nodeAfter']);for(const _0x4b0b76 of _0x37e015['getItems']()){if(!_0x4b0b76['is']('element',this['_elementName']))continue;const _0x143be7=this['_getElementKey'](_0x4b0b76);_0x10da2c['has'](_0x143be7)||_0x10da2c['set'](_0x143be7,[]),_0x10da2c['get'](_0x143be7)['push'](_0x4b0b76);}}if('remove'===_0x7f795['type']&&_0x7f795['name']===this['_elementName']){const _0x4ceb9f=this['_getElementKey']({'getAttribute':_0x467cc9=>_0x7f795['attributes']['get'](_0x467cc9)});_0x14b244['add'](_0x4ceb9f);}}for(const [_0x3952e3,_0x22a59f]of this['_trackedElements'])'$graveyard'===_0x22a59f['root']['rootName']&&_0x14b244['add'](_0x3952e3);for(const _0x51ec7c of _0x14b244)this['_trackedElements']['delete'](_0x51ec7c);for(const [_0xab74b3,_0x430451]of _0x10da2c)this['_trackedElements']['set'](_0xab74b3,_0x430451[_0x430451['length']-0x1]);const _0x2bb3f4=new Set();for(const [_0x4fad33,_0x40f593]of _0x10da2c)_0x14b244['has'](_0x4fad33)&&(_0x2bb3f4['add'](_0x40f593[0x0]),_0x40f593['length']>0x1?_0x10da2c['set'](_0x4fad33,_0x40f593['slice'](0x1)):_0x10da2c['delete'](_0x4fad33),_0x14b244['delete'](_0x4fad33));return{'removed':Array['from'](_0x14b244),'inserted':Array['from'](_0x10da2c['values']())['flat'](),'moved':Array['from'](_0x2bb3f4)};}}class K extends _0x8bc47d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x336fc0){super(_0x336fc0),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x167b17=>_0x167b17['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4d4e87=>_0x4d4e87['getAttribute']('footnoteId')});}['init'](){const {editor:_0x539d7a}=this,{model:_0x496479,data:_0x4dc281}=_0x539d7a;_0x496479['document']['registerPostFixer'](_0x17d15e=>{const _0x5cf00d=_0x496479['document']['differ']['getChanges']();let _0x2d7ee8=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x17d15e,_0x5cf00d)&&(_0x2d7ee8=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x17d15e,_0x5cf00d)&&(_0x2d7ee8=!0x0),this['_handleFootnoteReferencesChanges'](_0x17d15e,_0x5cf00d)&&(_0x2d7ee8=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x17d15e)&&(_0x2d7ee8=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x17d15e)&&(_0x2d7ee8=!0x0),this['_sortFootnoteDefinitions'](_0x17d15e)&&(_0x2d7ee8=!0x0),_0x2d7ee8;}),this['listenTo'](_0x496479['document'],'change:data',()=>{_0x496479['enqueueChange']({'isUndoable':!0x1},_0x299e99=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x299e99);});},{'priority':'low'}),this['listenTo'](_0x4dc281,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x101497){return this['_footnotes']['find'](_0x4408f3=>_0x4408f3['id']===_0x101497)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x414255){this['_footnoteFormatter']=_0x414255;}['_updateFootnotesCounters'](_0x246d1c,_0x1cfe4f=0x0){let _0x334f01=!0x1;for(let _0x33cfd3=_0x1cfe4f;_0x33cfd3<this['_footnotes']['length'];_0x33cfd3++)this['_updateFootnoteRefCounter'](_0x246d1c,_0x33cfd3)&&(_0x334f01=!0x0);return _0x334f01;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2111c4,_0x50633b){const _0x2cea3f=_0x2111c4['createElement']('footnotesDefinitions',{});return _0x2111c4['append'](_0x2cea3f,_0x50633b),this['_footnotesDefinitions']=_0x2cea3f,_0x2cea3f;}['_ensureFootnotesDefinitionsContainerExists'](_0xaa890d){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x27ea15=this['_footnotes'][0x0]['reference']['root'],_0x5c5934=this['_insertEmptyFootnotesDefinitionsContainer'](_0xaa890d,_0x27ea15);for(const _0x2b041d of this['_footnotes'])_0x2b041d['definition']['parent']||_0xaa890d['insert'](_0x2b041d['definition'],_0x5c5934,'end');this['_updateFootnotesCounters'](_0xaa890d);}['_handleFootnotesDefinitionsObjectChanges'](_0xb6234e,_0x17f56b){let _0x1366a7=!0x1;const {inserted:_0x5e0a8b,removed:_0x5e15bf,moved:_0x5d724e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x17f56b);if(_0x5d724e['length']&&(this['_footnotesDefinitions']=_0x5d724e[0x0]),_0x5e0a8b['length']){if(_0x5e0a8b['length']>0x1||this['_footnotesDefinitions']&&_0x5e0a8b['some'](_0x1aeef5=>_0x1aeef5!==this['_footnotesDefinitions'])){const _0x5e7855=_0xb6234e['createElement']('footnotesDefinitions',{}),_0xc85178=[];this['_footnotesDefinitions']&&_0xc85178['push'](this['_footnotesDefinitions']),_0xc85178['push'](..._0x5e0a8b),_0xb6234e['insert'](_0x5e7855,_0xc85178[0x0],'before');for(const _0x16ca0d of _0xc85178)_0xb6234e['move'](_0xb6234e['createRangeIn'](_0x16ca0d),_0xb6234e['createPositionAt'](_0x5e7855,'end')),_0xb6234e['remove'](_0x16ca0d);this['_footnotesDefinitions']=_0x5e7855,this['_updateFootnotesCounters'](_0xb6234e),_0x1366a7=!0x0;}else this['_footnotesDefinitions']=_0x5e0a8b[0x0];}if(_0x5e15bf['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1a489c of this['_footnotes'])_0xb6234e['remove'](_0x1a489c['reference']),_0x1366a7=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1366a7;}['_handleFootnoteDefinitionsChanges'](_0x4aab05,_0x555006){let _0x1f3f40=!0x1;const _0x4f2cd5=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x48d9f8,moved:_0x394e89}=this['_footnoteDefsTracker']['getChanges'](_0x555006);for(const _0x2deebb of[..._0x394e89,..._0x48d9f8]){const _0xd69d4e=_0x2deebb['getAttribute']('footnoteId'),_0x2bd8e9=this['getFootnote'](_0xd69d4e);_0x2bd8e9&&(_0x2bd8e9['definition']=_0x2deebb),j(_0x4aab05,_0x4f2cd5,_0x2deebb)&&(_0x1f3f40=!0x0);}return _0x1f3f40;}['_handleFootnoteReferencesChanges'](_0x28d71d,_0x32585){let _0x331a37=!0x1;const {removed:_0x18d461,inserted:_0xc59b9b,moved:_0x262d16}=this['_footnoteRefsTracker']['getChanges'](_0x32585);for(const _0x289898 of _0x18d461)this['_handleRemoveFootnoteReferenceById'](_0x28d71d,_0x289898)&&(_0x331a37=!0x0);for(const _0x393ab6 of _0xc59b9b)this['_handleInsertedFootnoteReference'](_0x28d71d,_0x393ab6)&&(_0x331a37=!0x0);for(const _0x5eb4d9 of _0x262d16)this['_handleMovedFootnoteReference'](_0x28d71d,_0x5eb4d9)&&(_0x331a37=!0x0);return _0x331a37;}['_handleFootnotesDefinitionsObjectSync'](_0x3a07c9){if(!this['_footnotesDefinitions'])return!0x1;let _0x58417f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x33bf94=[];for(const _0x126710 of this['_footnotesDefinitions']['getChildren']()){const _0x1385eb=_0x126710['getAttribute']('footnoteId');this['getFootnote'](_0x1385eb)||(_0x33bf94['unshift'](_0x126710),_0x58417f=!0x0);}for(const _0x3c3eb4 of _0x33bf94)_0x3a07c9['remove'](_0x3c3eb4);}const _0x25e34b=new Set(),_0x2c54eb=[];for(const _0x2dfa7c of this['_footnotesDefinitions']['getChildren']()){const _0x5d8f27=_0x2dfa7c['getAttribute']('footnoteId');_0x25e34b['has'](_0x5d8f27)?(_0x2c54eb['unshift'](_0x2dfa7c),_0x58417f=!0x0):_0x25e34b['add'](_0x5d8f27);}for(const _0x22ec59 of _0x2c54eb)_0x3a07c9['remove'](_0x22ec59);return this['_footnotesDefinitions']['childCount']||(_0x3a07c9['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x58417f=!0x0),_0x58417f;}['_handleInsertedFootnoteReference'](_0x3d906e,_0x23f62f){if(this['_footnotes']['find'](_0x30f7fe=>_0x30f7fe['reference']===_0x23f62f))return!0x1;let _0x1a99aa=!0x1;const _0x3d0b1b=_0x23f62f['getAttribute']('footnoteId'),_0x57f5d6=this['_footnotes']['findIndex'](_0x1fcd5d=>_0x1fcd5d['id']===_0x3d0b1b);-0x1!==_0x57f5d6&&(_0x3d906e['remove'](this['_footnotes'][_0x57f5d6]['reference']),this['_footnotes']['splice'](_0x57f5d6,0x1),_0x1a99aa=!0x0);let _0x528d43=this['_footnotesDefinitions']?function(_0x77baee,_0x4d0404){for(const _0x4fdb01 of _0x77baee['getChildren']())if(_0x4fdb01['getAttribute']('footnoteId')===_0x4d0404)return _0x4fdb01;return null;}(this['_footnotesDefinitions'],_0x3d0b1b):null;_0x528d43||(_0x528d43=_0x3d906e['createElement']('footnoteDefinition',{'footnoteId':_0x3d0b1b}),this['_footnotesDefinitions']&&(_0x3d906e['insert'](_0x528d43,this['_footnotesDefinitions'],'end'),_0x1a99aa=!0x0));const _0x3da1bb={'id':_0x3d0b1b,'reference':_0x23f62f,'definition':_0x528d43},_0x10173d=T(this['editor']['model'],this['_footnotes'],_0x23f62f);this['_footnotes']['splice'](_0x10173d,0x0,_0x3da1bb);let _0x3e58bc=_0x10173d;return-0x1!==_0x57f5d6&&(_0x3e58bc=Math['min'](_0x10173d,_0x57f5d6)),this['_updateFootnotesCounters'](_0x3d906e,_0x3e58bc)&&(_0x1a99aa=!0x0),_0x1a99aa;}['_handleRemoveFootnoteReferenceById'](_0x3ebf4f,_0x55b6bd){const _0x51ab9f=this['_footnotes']['findIndex'](_0x11929d=>_0x11929d['id']===_0x55b6bd);if(-0x1===_0x51ab9f)return!0x1;let _0x223b54=!0x1;const _0x4e18b8=this['_footnotes'][_0x51ab9f];return'$graveyard'!==_0x4e18b8['definition']['root']['rootName']&&(_0x3ebf4f['remove'](_0x4e18b8['definition']),_0x223b54=!0x0),this['_footnotes']['splice'](_0x51ab9f,0x1),this['_updateFootnotesCounters'](_0x3ebf4f,_0x51ab9f)&&(_0x223b54=!0x0),_0x223b54;}['_handleMovedFootnoteReference'](_0x42f86a,_0x56e28f){const _0x24c415=_0x56e28f['getAttribute']('footnoteId'),_0x4f4aea=this['_footnotes']['findIndex'](_0x2406f4=>_0x2406f4['id']===_0x24c415),_0x50a8ab=this['_footnotes'][_0x4f4aea];let _0x5cb084=!0x1;_0x50a8ab['reference']=_0x56e28f,this['_footnotes']['splice'](_0x4f4aea,0x1);const _0x341c71=T(this['editor']['model'],this['_footnotes'],_0x56e28f);return this['_footnotes']['splice'](_0x341c71,0x0,_0x50a8ab),this['_updateFootnotesCounters'](_0x42f86a,Math['min'](_0x4f4aea,_0x341c71))&&(_0x5cb084=!0x0),_0x5cb084;}['_updateFootnoteRefCounter'](_0x5ca7a9,_0x3ee76b){if(!this['_footnotesDefinitions'])return!0x1;const _0x3f3f8b=this['_footnotes'][_0x3ee76b];let _0x441b43;return _0x441b43=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3f3f8b,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3ee76b+0x1}):String(_0x3ee76b+0x1),_0x3f3f8b['reference']['getAttribute']('footnoteCounter')!=_0x441b43&&(_0x5ca7a9['setAttribute']('footnoteCounter',_0x441b43,_0x3f3f8b['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2af889){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x64716a,_0x53fb28){if(_0x64716a['length']!==_0x53fb28['length'])return!0x1;for(let _0x5af984=0x0;_0x5af984<_0x64716a['length'];_0x5af984++)if(_0x64716a[_0x5af984]!==_0x53fb28[_0x5af984])return!0x1;return!0x0;}(this['_footnotes']['map'](_0xaa261e=>_0xaa261e['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x21f279=>_0x21f279['getAttribute']('footnoteId'))))return!0x1;let _0xdff86e=!0x1;for(let _0x108a4a=0x0;_0x108a4a<this['_footnotes']['length'];_0x108a4a++){const _0x1840a1=this['_footnotes'][_0x108a4a],_0x1b3d15=_0x2af889['createPositionBefore'](_0x1840a1['definition']),_0x51bd75=_0x2af889['createPositionAt'](this['_footnotesDefinitions'],_0x108a4a);_0x1b3d15['isEqual'](_0x51bd75)||(_0x2af889['move'](_0x2af889['createRangeOn'](_0x1840a1['definition']),_0x51bd75),_0xdff86e=!0x0);}return _0xdff86e;}['_ensureFootnotesReferencesHaveProperOrder'](_0xd6719f){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4f3d2e}=this['editor'];let _0x26f4af=!0x1;for(let _0x3f0df1=0x0;_0x3f0df1<this['_footnotes']['length']-0x1;_0x3f0df1++){const _0x2343ea=this['_footnotes'][_0x3f0df1],_0x509063=this['_footnotes'][_0x3f0df1+0x1],_0x1e4f6e=_0x4f3d2e['createPositionBefore'](_0x2343ea['reference']),_0xaabaa4=_0x4f3d2e['createPositionBefore'](_0x509063['reference']);'after'===_0x1e4f6e['compareWith'](_0xaabaa4)&&(this['_handleMovedFootnoteReference'](_0xd6719f,_0x2343ea['reference']),_0x3f0df1=-0x1,_0x26f4af=!0x0);}return _0x26f4af;}}function j(_0x2cfc77,_0x18f349,_0x5a8d05){if(_0x5a8d05['childCount'])return!0x1;const _0x556d93=_0x18f349?'paragraph':'footnoteInlineContent';return _0x2cfc77['insert'](_0x2cfc77['createElement'](_0x556d93),_0x5a8d05),!0x0;}function T(_0x4d427e,_0x3f212f,_0x278e56){if(0x0===_0x3f212f['length'])return 0x0;const _0x30ffba=_0x4d427e['createPositionBefore'](_0x278e56);for(let _0x2cf2e0=0x0;_0x2cf2e0<_0x3f212f['length'];_0x2cf2e0++){const _0x3ed270=_0x3f212f[_0x2cf2e0],_0x3196ed=_0x4d427e['createPositionBefore'](_0x3ed270['reference']);if('before'===_0x30ffba['compareWith'](_0x3196ed))return _0x2cf2e0;}const _0x543b24=_0x278e56['root'];let _0x4aaab2=-0x1;for(let _0x39e668=_0x3f212f['length']-0x1;_0x39e668>=0x0;_0x39e668--)if(_0x3f212f[_0x39e668]['reference']['root']===_0x543b24){_0x4aaab2=_0x39e668;break;}if(-0x1!==_0x4aaab2)return _0x4aaab2+0x1;const _0xaac9f8=_0x4d427e['document']['getRootNames'](),_0x28735e=_0xaac9f8['indexOf'](_0x543b24['rootName']),_0x3e9930=_0xaac9f8[_0x28735e+0x1];if(_0x3e9930){for(let _0xa349bb=0x0;_0xa349bb<_0x3f212f['length'];_0xa349bb++)if(_0x3f212f[_0xa349bb]['reference']['root']['rootName']===_0x3e9930)return _0xa349bb;}return _0x3f212f['length'];}class V extends _0x2ecdf5{['refresh'](){const _0x29eb7a=this['editor']['model']['document']['selection'],_0x58e976=this['_getPositionToInsertFootnote'](_0x29eb7a);this['isEnabled']=!!_0x58e976;}['execute'](_0x2452f5){const {editor:_0x378f06}=this,{model:_0x416a14}=_0x378f06,{selection:_0x30b498}=_0x416a14['document'],_0x3d0f72=this['_getPositionToInsertFootnote'](_0x30b498);if(!_0x3d0f72)return;const _0x614d15=_0x378f06['plugins']['get']('FootnotesEditing'),_0x4fa7ad=_0x2452f5?.['footnoteId']??_0x24f2b5();!function(_0x21e574){return'string'==typeof _0x21e574&&_0x21e574['length']>0x0&&!/\s/['test'](_0x21e574)&&!/^\d/['test'](_0x21e574);}(_0x4fa7ad)?_0x2a0981('insert-footnote-command-executed-with-invalid-id'):(_0x416a14['change'](_0x2a08b7=>{const _0x599643=_0x2a08b7['createElement']('footnoteRef',{'footnoteId':_0x4fa7ad});_0x416a14['insertObject'](_0x599643,_0x3d0f72,null);}),_0x614d15['_moveSelectionToFootnoteDefinition'](_0x4fa7ad));}['_getPositionToInsertFootnote'](_0x4ecedc){const {model:_0x3724bf}=this['editor'],{schema:_0x15a84f}=_0x3724bf,_0x404f41=_0x4ecedc['getFirstRange']();for(const _0x13081c of _0x404f41['getItems']())if(_0x15a84f['isBlock'](_0x13081c)||_0x15a84f['isObject'](_0x13081c))return null;const _0x833c6=_0x404f41['end'];return _0x15a84f['checkChild'](_0x833c6,'footnoteRef')?_0x833c6:null;}}class $ extends _0x8bc47d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x495ab7}=this;_0x495ab7['config']['define']('footnotes.multiBlock',!0x0),_0x495ab7['commands']['add']('insertFootnote',new V(_0x495ab7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4f6bec){const _0x4145e9=_0x2de9de([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]),_0x119d8f=0x47a28506,_0x2432bf=0x47a5002e^_0x119d8f,_0x3f513e=window[_0x2de9de([0x44,0x61,0x74,0x65])][_0x2de9de([0x6e,0x6f,0x77])](),_0x1be261=_0x4f6bec[_0x2de9de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x519762=new window[(_0x2de9de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf8a79a=>{_0x1be261[_0x2de9de([0x6f,0x6e,0x63,0x65])](_0x2de9de([0x72,0x65,0x61,0x64,0x79]),_0xf8a79a);}),_0x58c3bb={[_0x2de9de([0x6b,0x74,0x79])]:_0x2de9de([0x45,0x43]),[_0x2de9de([0x75,0x73,0x65])]:_0x2de9de([0x73,0x69,0x67]),[_0x2de9de([0x63,0x72,0x76])]:_0x2de9de([0x50,0x2d,0x32,0x35,0x36]),[_0x2de9de([0x78])]:_0x2de9de([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]),[_0x2de9de([0x79])]:_0x2de9de([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]),[_0x2de9de([0x61,0x6c,0x67])]:_0x2de9de([0x45,0x53,0x32,0x35,0x36])},_0x5bd968=_0x1be261[_0x2de9de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2de9de([0x67,0x65,0x74])](_0x2de9de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x484205(){let _0x2806d0,_0x1b59f7=null,_0x54d9ad=null;try{if(_0x5bd968==_0x2de9de([0x47,0x50,0x4c]))return _0x2de9de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2806d0=_0x28f871(),!_0x2806d0)return _0x2de9de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2806d0[_0x2de9de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54d9ad=_0x48bad8(_0x2806d0[_0x2de9de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2806d0[_0x2de9de([0x6a,0x74,0x69])])),await _0x367e63()?_0x2f7303()?_0x193c87()?_0x2de9de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44ae55()?(_0x2806d0[_0x2de9de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2de9de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b59f7=_0x202ddb(_0x2de9de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x568524()):_0x2de9de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2de9de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2de9de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2de9de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x193c87(){const _0x3448b9=[_0x2de9de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2de9de([0x74,0x72,0x69,0x61,0x6c])][_0x2de9de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2806d0[_0x2de9de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f513e/0x3e8:0xe10*_0x2432bf;return _0x2806d0[_0x2de9de([0x65,0x78,0x70])]<_0x3448b9;}function _0x2f7303(){const _0x17b39d=_0x2806d0[_0x2de9de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17b39d&&(!!_0x17b39d[_0x2de9de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2de9de([0x2a]))||!!_0x17b39d[_0x2de9de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2de9de([0x46,0x4f,0x4f])));}function _0x44ae55(){const _0x9e94d7=_0x2806d0[_0x2de9de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9e94d7||0x0==_0x9e94d7[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x333dfe}=new URL(window[_0x2de9de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9e94d7[_0x2de9de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333dfe))return!0x0;const _0x16bbcc=_0x333dfe[_0x2de9de([0x73,0x70,0x6c,0x69,0x74])](_0x2de9de([0x2e]));return _0x9e94d7[_0x2de9de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f3fb8=>_0x5f3fb8[_0x2de9de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2de9de([0x2a])))[_0x2de9de([0x6d,0x61,0x70])](_0x3cdc79=>_0x3cdc79[_0x2de9de([0x73,0x70,0x6c,0x69,0x74])](_0x2de9de([0x2e])))[_0x2de9de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58a791=>_0x58a791[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16bbcc[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2de9de([0x6d,0x61,0x70])](_0x301b86=>Array(_0x16bbcc[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x301b86[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2de9de([0x66,0x69,0x6c,0x6c])](_0x301b86[0x0]===_0x2de9de([0x2a])?_0x2de9de([0x2a]):'')[_0x2de9de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x301b86))[_0x2de9de([0x73,0x6f,0x6d,0x65])](_0x2bb2c2=>_0x16bbcc[_0x2de9de([0x65,0x76,0x65,0x72,0x79])]((_0x523ff6,_0x57ac39)=>_0x2bb2c2[_0x57ac39]===_0x523ff6||_0x2bb2c2[_0x57ac39]===_0x2de9de([0x2a])));}function _0x568524(){return _0x1b59f7&&_0x54d9ad?new window[(_0x2de9de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28d086,_0x258e42)=>{_0x1b59f7[_0x2de9de([0x74,0x68,0x65,0x6e])](_0x28d086,_0x258e42),_0x54d9ad[_0x2de9de([0x74,0x68,0x65,0x6e])](_0xd35691=>{_0xd35691!=_0x2de9de([0x56,0x61,0x6c,0x69,0x64])&&_0x28d086(_0xd35691);},_0x258e42);}):_0x1b59f7||_0x54d9ad||_0x2de9de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48bad8(_0xd4dbbb,_0x3c1d23){return new window[(_0x2de9de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df7ce=>{if(_0x489157())return _0x3df7ce(_0x2de9de([0x56,0x61,0x6c,0x69,0x64]));_0x351d9b(),_0x1be261[_0x2de9de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2de9de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x840759=!0x1;const _0x3cf461=_0x24f2b5();function _0x5a14e6(_0xd1d494){return!!_0xd1d494&&(typeof _0xd1d494===_0x2de9de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd1d494===_0x2de9de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd1d494[_0x2de9de([0x74,0x68,0x65,0x6e])]===_0x2de9de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd1d494[_0x2de9de([0x63,0x61,0x74,0x63,0x68])]===_0x2de9de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x335294(_0x5c3c47){_0x2824df(_0x5c3c47)[_0x2de9de([0x74,0x68,0x65,0x6e])](_0x429194=>{if(!_0x429194||_0x429194[_0x2de9de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2de9de([0x6f,0x6b]))return _0x2de9de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x33dabb(_0x238f88(_0x3cf461+_0x3c1d23))!=_0x429194[_0x2de9de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2de9de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2de9de([0x56,0x61,0x6c,0x69,0x64]);})[_0x2de9de([0x74,0x68,0x65,0x6e])](_0x562442=>(_0x1b9c2b(),_0x562442),()=>{const _0x69f484=_0x380ce1();return null==_0x69f484?(_0x1b9c2b(),_0x2de9de([0x56,0x61,0x6c,0x69,0x64])):_0x2de9de(_0x3f513e-_0x69f484>(0x63ae0106^_0x119d8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2de9de([0x74,0x68,0x65,0x6e])](_0x3df7ce)[_0x2de9de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3df7ce(_0x2de9de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4972b5=0x47946b86^_0x119d8f;function _0x1b9c2b(){const _0x27b2a5=_0x2de9de([0x6c,0x6c,0x63,0x74,0x2d])+_0x33dabb(_0x238f88(_0xd4dbbb)),_0x49b3f5=_0x35039a(_0x33dabb(window[_0x2de9de([0x4d,0x61,0x74,0x68])][_0x2de9de([0x63,0x65,0x69,0x6c])](_0x3f513e/_0x4972b5)));window[_0x2de9de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2de9de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27b2a5,_0x49b3f5);}function _0x380ce1(){const _0x5808cf=_0x2de9de([0x6c,0x6c,0x63,0x74,0x2d])+_0x33dabb(_0x238f88(_0xd4dbbb)),_0x16797b=window[_0x2de9de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2de9de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5808cf);return _0x16797b?window[_0x2de9de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35039a(_0x16797b),0x10)*_0x4972b5:null;}function _0x2824df(_0x3d6021){return new window[(_0x2de9de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x279074,_0x2d0486)=>{_0x3d6021[_0x2de9de([0x74,0x68,0x65,0x6e])](_0x279074,_0x2d0486),window[_0x2de9de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d0486,0x47a351c6^_0x119d8f);});}}_0x1be261[_0x2de9de([0x6f,0x6e])](_0x2de9de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bc35c,_0x42996a)=>{if(_0x42996a[0x0]!=_0xd4dbbb)return _0x3df7ce(_0x2de9de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42996a[0x1]={..._0x42996a[0x1],[_0x2de9de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cf461};},{[_0x2de9de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2de9de([0x68,0x69,0x67,0x68])}),_0x1be261[_0x2de9de([0x6f,0x6e])](_0x2de9de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3660bd=>{_0x5a14e6(_0x3660bd[_0x2de9de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x840759=!0x0,_0x335294(_0x3660bd[_0x2de9de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2de9de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2de9de([0x6c,0x6f,0x77])}),_0x519762[_0x2de9de([0x74,0x68,0x65,0x6e])](()=>{_0x840759||_0x3df7ce(_0x2de9de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x489157(){return _0x1be261[_0x2de9de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2de9de([0x76,0x69,0x65,0x77])][_0x2de9de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2de9de([0x61,0x75,0x74,0x6f]);}function _0x351d9b(){_0x1be261[_0x2de9de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2de9de([0x76,0x69,0x65,0x77])][_0x2de9de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2de9de([0x61,0x75,0x74,0x6f]);}}function _0x202ddb(_0x135680){const _0x742568=[new window[(_0x2de9de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b97a3=>setTimeout(_0x1b97a3,0x47abbbca^_0x119d8f)),_0x519762[_0x2de9de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2de9de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38d1d4=>{let _0x32280b=0x0;_0x1be261[_0x2de9de([0x6d,0x6f,0x64,0x65,0x6c])][_0x2de9de([0x6f,0x6e])](_0x2de9de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ba3ae,_0x505eee)=>{_0x505eee[0x0][_0x2de9de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32280b++,_0x32280b==(0x47a280ee^_0x119d8f)&&(_0x38d1d4(),_0x3ba3ae[_0x2de9de([0x6f,0x66,0x66])]());});}))];return window[_0x2de9de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2de9de([0x72,0x61,0x63,0x65])](_0x742568)[_0x2de9de([0x74,0x68,0x65,0x6e])](()=>_0x135680);}async function _0x5dd5b4(){await _0x519762,_0x1be261[_0x2de9de([0x6d,0x6f,0x64,0x65,0x6c])][_0x2de9de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22bb94,_0x1be261[_0x2de9de([0x6d,0x6f,0x64,0x65,0x6c])][_0x2de9de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22bb94,_0x1be261[_0x2de9de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2de9de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4962d3(_0x3db457){const _0x543f16=_0x3b8e80();_0x1be261[_0x543f16]=_0x2de9de([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3db457,_0x3db457!=_0x2de9de([0x56,0x61,0x6c,0x69,0x64])&&_0x5dd5b4();}function _0x3b8e80(){const _0x2d14a9=window[_0x2de9de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2de9de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2de9de([0x6e,0x6f,0x77])]())[_0x2de9de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2de9de([0x2e]),'');let _0x127672=_0x2de9de([0x75]);for(let _0x56ecaa=0x0;_0x56ecaa<_0x2d14a9[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56ecaa+=0x2){let _0x1304a6=window[_0x2de9de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d14a9[_0x2de9de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56ecaa,_0x56ecaa+0x2));_0x1304a6>=_0x4145e9[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1304a6-=_0x4145e9[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x127672+=_0x4145e9[_0x1304a6];}return _0x127672;}function _0x28f871(){const _0x5c6ab8=_0x5bd968[_0x2de9de([0x73,0x70,0x6c,0x69,0x74])](_0x2de9de([0x2e]));if(0x3!=_0x5c6ab8[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12a7fb(_0x5c6ab8[0x1]);function _0x12a7fb(_0x4a3209){const _0x16edb0=_0x2cdf02(_0x4a3209);return _0x16edb0&&_0x36f24b()?_0x16edb0:null;function _0x36f24b(){const _0x23620d=_0x16edb0[_0x2de9de([0x6a,0x74,0x69])],_0x307b7b=window[_0x2de9de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23620d[_0x2de9de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23620d[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c2e8b={..._0x16edb0,[_0x2de9de([0x6a,0x74,0x69])]:_0x23620d[_0x2de9de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23620d[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c2e8b[_0x2de9de([0x76,0x63])],_0x238f88(_0x1c2e8b)==_0x307b7b;}}}async function _0x367e63(){let _0x27758d=!0x0;try{const _0x13d8cf=_0x5bd968[_0x2de9de([0x73,0x70,0x6c,0x69,0x74])](_0x2de9de([0x2e])),[_0x293651,_0x1ac2c6,_0x4b8af7]=_0x13d8cf;return _0x5ccd17(_0x293651),await _0x538e43(_0x293651,_0x1ac2c6,_0x4b8af7),_0x27758d;}catch{return!0x1;}function _0x5ccd17(_0x3d0f2e){const _0x1dd642=_0x2cdf02(_0x3d0f2e);_0x1dd642&&_0x1dd642[_0x2de9de([0x61,0x6c,0x67])]==_0x2de9de([0x45,0x53,0x32,0x35,0x36])||(_0x27758d=!0x1);}async function _0x538e43(_0x248fc3,_0x18c154,_0x2bd8bb){const _0x24065d=window[_0x2de9de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2de9de([0x66,0x72,0x6f,0x6d])](_0x32ea49(_0x2bd8bb),_0x1fcd2c=>_0x1fcd2c[_0x2de9de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40704a=new window[(_0x2de9de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2de9de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x248fc3+_0x2de9de([0x2e])+_0x18c154),_0xc783b=window[_0x2de9de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2de9de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc783b)return;const _0x427d16=await _0xc783b[_0x2de9de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2de9de([0x6a,0x77,0x6b]),_0x58c3bb,{[_0x2de9de([0x6e,0x61,0x6d,0x65])]:_0x2de9de([0x45,0x43,0x44,0x53,0x41]),[_0x2de9de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2de9de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2de9de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc783b[_0x2de9de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2de9de([0x6e,0x61,0x6d,0x65])]:_0x2de9de([0x45,0x43,0x44,0x53,0x41]),[_0x2de9de([0x68,0x61,0x73,0x68])]:{[_0x2de9de([0x6e,0x61,0x6d,0x65])]:_0x2de9de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x427d16,_0x24065d,_0x40704a)||(_0x27758d=!0x1);}}function _0x2cdf02(_0x2fdd34){return _0x2fdd34[_0x2de9de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2de9de([0x65,0x79]))?JSON[_0x2de9de([0x70,0x61,0x72,0x73,0x65])](_0x32ea49(_0x2fdd34)):null;}function _0x32ea49(_0xb78ced){return window[_0x2de9de([0x61,0x74,0x6f,0x62])](_0xb78ced[_0x2de9de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2de9de([0x2b]))[_0x2de9de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2de9de([0x2f])));}function _0x238f88(_0x485637){let _0x20d46a=0x1505;function _0xe522b9(_0x5eba08){for(let _0x4f82ee=0x0;_0x4f82ee<_0x5eba08[_0x2de9de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f82ee++){const _0xc7331b=_0x5eba08[_0x2de9de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f82ee);_0x20d46a=(_0x20d46a<<0x5)+_0x20d46a+_0xc7331b,_0x20d46a&=_0x20d46a;}}function _0x21ff75(_0x447aed){Array[_0x2de9de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x447aed)?_0x447aed[_0x2de9de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x21ff75):_0x447aed&&typeof _0x447aed==_0x2de9de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2de9de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x447aed)[_0x2de9de([0x73,0x6f,0x72,0x74])]()[_0x2de9de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44d499,_0x529400])=>{_0xe522b9(_0x44d499),_0x21ff75(_0x529400);}):_0xe522b9(window[_0x2de9de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x447aed));}return _0x21ff75(_0x485637),_0x20d46a>>>0x0;}function _0x33dabb(_0x469592){return _0x469592[_0x2de9de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2de9de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2de9de([0x30]));}function _0x35039a(_0x30a581){return _0x30a581[_0x2de9de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2de9de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2de9de([0x6a,0x6f,0x69,0x6e])]('');}function _0x22bb94(){}function _0x2de9de(_0x77d382){return _0x77d382['map'](_0x540a71=>String['fromCharCode'](_0x540a71))['join']('');}_0x4962d3(await _0x484205());}(this);}['_moveSelectionToFootnoteDefinition'](_0x192e5a){const {plugins:_0x399690,editing:_0x339ff6,model:_0x2727cb}=this['editor'],_0x32836c=_0x399690['get'](K)['getFootnote'](_0x192e5a);return!!_0x32836c&&(_0x2727cb['change'](_0x1b5d2c=>{_0x1b5d2c['setSelection'](_0x1b5d2c['createPositionAt'](_0x32836c['definition'],'end'));}),_0x339ff6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4d868e){const {plugins:_0x3c03fb,editing:_0x46fe2b,model:_0x4b19ed}=this['editor'],_0x1fc706=_0x3c03fb['get'](K)['getFootnote'](_0x4d868e);return!!_0x1fc706&&(_0x4b19ed['change'](_0x445dc1=>{_0x445dc1['setSelection'](_0x1fc706['reference'],'on');}),_0x46fe2b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x378dd3}=this['editor']['model'],_0x56ad81=this['editor']['config']['get']('footnotes.multiBlock');_0x378dd3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x378dd3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x378dd3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x56ad81?_0x378dd3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x378dd3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x378dd3['addChildCheck'](_0x1cfb02=>{for(const _0x5b1565 of _0x1cfb02)if('footnoteDefinition'===_0x5b1565['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3f8ed3}=this,{conversion:_0x2da9ae,editing:_0x205798}=_0x3f8ed3,{t:t}=_0x3f8ed3['locale'];_0x2da9ae['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x22f471,{writer:_0x2185b6,consumable:_0x3a9bcc})=>{const _0x5b3028=_0x22f471['getChild'](0x0);if(!_0x5b3028||!_0x5b3028['is']('element','a'))return null;const _0xdda901=_0x5b3028['getAttribute']('href')||'';if(!_0xdda901['startsWith']('#'))return null;const _0x211b2a=_0xdda901['replace'](/^#/,'');if(!_0x211b2a)return null;_0x3a9bcc['consume'](_0x5b3028,{'name':!0x0,'attributes':['href']});for(const {item:_0x4a466a}of _0x205798['view']['createRangeIn'](_0x5b3028))_0x4a466a['is']('$textProxy')?_0x3a9bcc['consume'](_0x4a466a['textNode'],{'name':!0x0}):_0x4a466a['is']('element')&&_0x3a9bcc['consume'](_0x4a466a,{'name':!0x0});return _0x2185b6['createElement']('footnoteRef',{'footnoteId':_0x211b2a});}}),_0x2da9ae['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2c5ada,{writer:_0x45a8d5})=>z(_0x2c5ada,_0x45a8d5)}),_0x2da9ae['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x362a17,{writer:_0x3e2905})=>{const _0x2aaffc=_0x362a17['getAttribute']('footnoteCounter');return _0x5618f5(z(_0x362a17,_0x3e2905),_0x3e2905,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2aaffc)});}});}['_defineDefinitionsConverters'](){const {editor:_0x923bd3}=this,{t:t}=_0x923bd3['locale'],{conversion:_0x4b7f10}=_0x923bd3;_0x4b7f10['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4b7f10['for']('upcast')['add'](_0x5bca44=>{_0x5bca44['on']('element:ol',(_0x4efbed,_0x5154c6,_0x2ad315)=>{const _0x433dea=_0x5154c6['viewItem'];if(!_0x433dea['hasClass']('footnotes-list')||!_0x5154c6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2ad315['consumable']['consume'](_0x433dea,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2e2cfb,modelCursor:_0x37339f}=_0x2ad315['convertChildren'](_0x5154c6['viewItem'],_0x5154c6['modelCursor']);_0x5154c6['modelRange']=_0x2e2cfb,_0x5154c6['modelCursor']=_0x37339f;}),_0x5bca44['on']('element:hr',(_0x2462bb,_0x9a3bc7,_0x333110)=>{const _0x321dc5=_0x9a3bc7['viewItem'];_0x321dc5['hasClass']('footnotes-divider')&&_0x9a3bc7['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x333110['consumable']['consume'](_0x321dc5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4b7f10['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5eb0de,{writer:_0x15bf1d})=>H(_0x15bf1d)}),_0x4b7f10['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x55493c,{writer:_0x320282})=>{const _0xe4238e=H(_0x320282,{'data-footnotes-list-label':t('Footnotes')}),_0x1137bf=_0x5618f5(_0xe4238e,_0x320282,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x320282['setCustomProperty']('footnotesDefinitions',!0x0,_0x1137bf),_0x1137bf;}});}['_defineDefinitionConverters'](){const {editor:_0x8a1077}=this,{conversion:_0x19e72f,locale:_0x1eeb8b}=_0x8a1077,_0xeb616a=_0x8a1077['config']['get']('footnotes.multiBlock');_0x19e72f['for']('upcast')['add'](_0x492118=>{_0x492118['on']('element:li',(_0x58ccfe,_0x2593d2,_0x201c3f)=>{const _0x2aac3f=_0x2593d2['viewItem'];if(!_0x2aac3f['hasClass']('footnote-definition')||!_0x2aac3f['getAttribute']('id'))return;const _0x3b0375=_0x2aac3f['parent'];if(!_0x3b0375['is']('element','ol')||!_0x3b0375['hasClass']('footnotes-list'))return;if(!_0x201c3f['consumable']['test'](_0x2aac3f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x120098=_0x201c3f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2aac3f['getAttribute']('id')});if(!_0x201c3f['safeInsert'](_0x120098,_0x2593d2['modelCursor']))return;_0x201c3f['consumable']['consume'](_0x2aac3f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x26e104=Array['from'](_0x2aac3f['getChildren']())['find'](_0x11d1a9=>_0x11d1a9['is']('element')&&_0x11d1a9['hasClass']('footnote-content'));for(const _0x14f429 of _0x2aac3f['getChildren']())_0x14f429['is']('element')&&(_0x201c3f['consumable']['consume'](_0x14f429,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x201c3f['consumable']['consume'](_0x14f429,{'name':!0x0,'classes':'footnote-content'}));if(_0x26e104){if(_0xeb616a)_0x201c3f['convertChildren'](_0x26e104,_0x120098);else{const _0x543763=_0x201c3f['writer']['createElement']('footnoteInlineContent');_0x201c3f['writer']['insert'](_0x543763,_0x120098),_0x201c3f['convertChildren'](_0x26e104,_0x543763);}}_0x201c3f['updateConversionResult'](_0x120098,_0x2593d2);});}),_0x19e72f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x248753,{writer:_0x4e8c7e})=>X(_0x248753,_0x4e8c7e,_0x1eeb8b,{'dataPipeline':!0x0})}),_0x19e72f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2d4fbd,{writer:_0x4261aa})=>X(_0x2d4fbd,_0x4261aa,_0x1eeb8b)});}['_defineBogusParagraphConverters'](){const {editor:_0x446c71}=this,{conversion:_0x20d769}=_0x446c71;_0x446c71['config']['get']('footnotes.multiBlock')?(_0x20d769['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':B(),'converterPriority':'high'}),_0x20d769['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':B({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x446c71['model']['document'],'change:data',()=>{!function(_0x14fb3c,_0x174df6){const _0x5db027=_0x14fb3c['document']['differ'],_0x131111=new Set();for(const _0x47bcef of _0x5db027['getChanges']()){const _0x436b77='attribute'==_0x47bcef['type']?_0x47bcef['range']['start']['parent']:_0x47bcef['position']['parent'];_0x436b77['is']('element','footnoteDefinition')&&_0x131111['add'](_0x436b77);}for(const _0x3f3ed8 of _0x131111['values']()){const _0x1d284b=Array['from'](_0x3f3ed8['getChildren']())['filter'](_0x278c53=>U(_0x278c53,_0x174df6['mapper']));for(const _0x2eda3b of _0x1d284b)_0x174df6['reconvertItem'](_0x2eda3b);}}(_0x446c71['model'],_0x446c71['editing']);})):(_0x20d769['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':B()}),_0x20d769['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x77297d,{writer:_0xa1cf05})=>{const _0x3778ca=_0xa1cf05['createContainerElement']('span');return _0xa1cf05['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3778ca),_0x3778ca;}}));}['_defineKeyboardHandlers'](){const {editor:_0x128e4e}=this,{editing:_0x174e7c,t:t}=_0x128e4e,_0xd864ff=_0x128e4e['model']['document']['selection'];_0x128e4e['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x128e4e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x174e7c['view']['document'],'enter',(_0x391c07,_0x19fdcb)=>{const _0x2ed3b2=function(_0x3c01f7){const _0x28d4a5=_0x3c01f7['getSelectedElement']();if(_0x28d4a5?.['is']('element','footnoteRef'))return _0x28d4a5;return null;}(_0xd864ff);if(_0x2ed3b2){const _0x4cb9ac=_0x2ed3b2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4cb9ac),_0x19fdcb['preventDefault'](),_0x391c07['stop']();}},{'context':_0x2698e2});}['_defineClickHandlers'](){const {editor:_0x1facf0}=this,{editing:_0x6bf420}=_0x1facf0;_0x1facf0['editing']['view']['addObserver'](_0x4d6499),_0x1facf0['editing']['view']['addObserver'](_0x4f66ef);let _0x790e3e=!0x1;this['listenTo'](_0x6bf420['view']['document'],'pointerdown',(_0x3a6d19,_0x54a471)=>{const {target:_0x5154ea}=_0x54a471,_0x339cf7=_0x6bf420['view']['document']['selection'];_0x790e3e=!!(_0x5154ea?.['is']('element','a')&&_0x5154ea['parent']?.['is']('element','sup')&&_0x5154ea['parent']['hasClass']('footnote'))&&_0x339cf7['getSelectedElement']()===_0x5154ea['parent'];},{'priority':'high'}),this['listenTo'](_0x6bf420['view']['document'],'click',(_0x4a4061,_0x41057c)=>{const {target:_0x47725f}=_0x41057c;if(!_0x47725f?.['is']('element','a'))return;if(_0x47725f['parent']?.['is']('element','sup')&&_0x47725f['parent']['hasClass']('footnote')&&!_0x790e3e)return void _0x41057c['preventDefault']();let _0x281e91=_0x47725f['getAttribute']('href');if(!_0x281e91?.['startsWith']('#'))return;_0x281e91=_0x281e91['slice'](0x1);let _0x4ebcfb=!0x1;(_0x281e91['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x281e91['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x281e91))&&(_0x4ebcfb=!0x0),_0x4ebcfb&&(_0x41057c['preventDefault'](),_0x4a4061['stop']());},{'priority':'high','context':'$capture'});}}function B({dataPipeline:_0x4f20c2}={}){return(_0x1aafa2,{writer:_0x5bc0f2})=>{if(!M(_0x1aafa2))return null;if(!_0x4f20c2)return _0x5bc0f2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x30f96c=_0x5bc0f2['createContainerElement']('p');return _0x5bc0f2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x30f96c),_0x30f96c;};}function M(_0x2ee759){const {parent:_0x218a81}=_0x2ee759;if(!_0x218a81?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x218a81['childCount'])return!0x1;for(const _0x195f13 of _0x2ee759['getAttributeKeys']())if(!_0x195f13['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x195f13)return!0x1;return!0x0;}function U(_0x734dd2,_0x32a695){if(!_0x734dd2['is']('element','paragraph'))return!0x1;const _0x4bfa04=_0x32a695['toViewElement'](_0x734dd2);return!!_0x4bfa04&&M(_0x734dd2)!==_0x4bfa04['is']('element','span');}function q(_0x4e9f35){return _0x2698e2(_0x4e9f35)&&_0x4e9f35['is']('containerElement')&&!!_0x4e9f35['getCustomProperty']('footnotesDefinitions');}function H(_0x58f616,_0x4fcde3={}){const _0x2f2668=_0x58f616['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x957360=_0x58f616['createContainerElement']('ol',{'class':'footnotes-list'},_0x58f616['createSlot']());return _0x58f616['createContainerElement']('div',{'class':'footnotes',..._0x4fcde3},[_0x2f2668,_0x957360]);}function z(_0x61f52f,_0x263c6b){const _0x35aead=_0x61f52f['getAttribute']('footnoteId'),_0x2d43bd=_0x61f52f['getAttribute']('footnoteCounter'),_0x180a95=_0x263c6b['createUIElement']('a',{'href':'#'+_0x35aead},function(_0x243a1e){const _0x40df67=this['toDomElement'](_0x243a1e);return _0x40df67['textContent']=_0x2d43bd,_0x40df67;}),_0x3ad921=_0x263c6b['createContainerElement']('sup',{'id':'ref-'+_0x35aead,'class':'footnote'},[_0x180a95]);return _0x3ad921['getFillerOffset']=()=>null,_0x3ad921;}function X(_0x3e0f6d,_0x5975db,_0x3e7e23,{dataPipeline:_0x591c45}={}){const {t:t}=_0x3e7e23,_0x40b1e8=_0x3e0f6d['getAttribute']('footnoteId'),_0x293719=_0x5975db['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x40b1e8},function(_0x2da84f){const _0x5c04b4=this['toDomElement'](_0x2da84f);return _0x5c04b4['innerText']='^',_0x5c04b4;}),_0x204dec=_0x591c45?_0x5975db['createContainerElement']('div',{'class':'footnote-content'}):_0x329aa6(_0x5975db['createEditableElement']('div',{'class':'footnote-content'}),_0x5975db,{'label':t('Footnote\x20content.')});return _0x5975db['insert'](_0x5975db['createPositionAt'](_0x204dec,0x0),_0x5975db['createSlot']()),_0x5975db['createContainerElement']('li',{'class':'footnote-definition','id':_0x40b1e8},[_0x293719,_0x204dec]);}class J extends _0x8bc47d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[$,_0x2aa6c6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x20bbd1}=this,{plugins:_0x4c456a,model:_0x505b66}=_0x20bbd1,_0x3302c6=_0x4c456a['get'](_0x2aa6c6),_0x58b275=_0x4c456a['get'](K);this['listenTo'](_0x3302c6,'outputTransformation',(_0x462f59,_0x1928d0)=>{const _0x1d2937=Q(_0x505b66['createRangeIn'](_0x1928d0['content']));if(!_0x1d2937['length'])return;const _0x2cb3ee=_0x58b275['getFootnotes'](),_0x20924e=_0x1d2937['reduce']((_0x4bf09e,_0x28f95a)=>{const _0x26f039=_0x2cb3ee['find'](_0x1dece7=>_0x1dece7['id']===_0x28f95a);if(_0x26f039){const _0x5c3d21=_0x20bbd1['data']['toView'](_0x26f039['definition'],{'isClipboardPipeline':!0x0}),_0x36895d=_0x20bbd1['data']['htmlProcessor']['toData'](_0x5c3d21);_0x4bf09e[_0x26f039['id']]=_0x36895d;}return _0x4bf09e;},Object['create'](null));_0x1928d0['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x20924e));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1c1560}=this,{model:_0x3b49de,plugins:_0x3f648a}=_0x1c1560,{view:_0x1176af}=_0x1c1560['editing'],_0xbc63f=_0x3f648a['get'](_0x2aa6c6),_0x509f58=_0x3f648a['get'](K),_0x89c7b7=_0x1c1560['config']['get']('footnotes.multiBlock');let _0x48538a=null;this['listenTo'](_0x1176af['document'],'clipboardInput',(_0x140570,_0x20332c)=>{const _0x58f5e8=_0x20332c['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x48538a=_0x58f5e8?JSON['parse'](_0x58f5e8):null;}),this['listenTo'](_0xbc63f,'contentInsertion',(_0x355e97,_0x435af1)=>{const _0x3c194a=_0x435af1['sourceEditorId']===this['editor']['id'];_0x3c194a&&'drop'===_0x435af1['method']||_0x3b49de['change'](_0x1ad7bd=>{let _0x4b2432=_0x509f58['getFootnotesDefinitionsObjectElement']();const _0x1f4f56=!!_0x4b2432&&Array['from'](_0x3b49de['document']['selection']['getSelectedBlocks']())['includes'](_0x4b2432);if(!_0x48538a&&function(_0x4942c1){for(const {item:_0x129dd5}of _0x4942c1)if(_0x129dd5['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x3b49de['createRangeIn'](_0x435af1['content']))&&(_0x48538a=function(_0x527748,_0x46af8c){const _0x14a00e=G(_0x527748,_0x46af8c);if(!_0x14a00e)return null;const _0x1db17c=Object['create'](null);for(const _0x3fecc9 of _0x14a00e['getChildren']())_0x3fecc9['is']('element','footnoteDefinition')&&_0x3fecc9['hasAttribute']('footnoteId')&&(_0x1db17c[_0x3fecc9['getAttribute']('footnoteId')]=_0x527748['cloneElement'](_0x3fecc9,!0x0));return Object['keys'](_0x1db17c)['length']?_0x1db17c:null;}(_0x1ad7bd,_0x435af1['content'])),(_0x4b2432&&!_0x1f4f56||!_0x4b2432&&!_0x48538a)&&function(_0x3c093a,_0x71945e){const _0x78e6f4=[];for(const {item:_0x414166}of _0x3c093a['createRangeIn'](_0x71945e))_0x414166['is']('element','footnotesDefinitions')&&_0x78e6f4['push'](_0x414166);for(const _0x300c71 of _0x78e6f4)_0x3c093a['remove'](_0x300c71);}(_0x1ad7bd,_0x435af1['content']),!_0x48538a)return;const {selection:_0x1fb19f}=_0x3b49de['document'],_0x142c9c=_0x1fb19f['getFirstRange']()['root'];_0x4b2432&&!_0x1f4f56||(_0x4b2432=G(_0x1ad7bd,_0x435af1['content']),_0x4b2432||=_0x509f58['_insertEmptyFootnotesDefinitionsContainer'](_0x1ad7bd,_0x142c9c));const _0x2bf148=Array['from'](_0x1fb19f['getRanges']())['flatMap'](Q),_0x287fba=function(_0x426601,_0x2d0bb9,_0x1d0a0d){const _0x4349db=Object['create'](null);for(const {item:_0x4abe70}of _0x426601['createRangeIn'](_0x2d0bb9))if(_0x4abe70['is']('element','footnoteRef')){const _0x884563=_0x4abe70['getAttribute']('footnoteId');if(!_0x1d0a0d(_0x884563))continue;_0x4349db[_0x884563]||(_0x4349db[_0x884563]=_0x24f2b5()),_0x426601['setAttribute']('footnoteId',_0x4349db[_0x884563],_0x4abe70);}return _0x4349db;}(_0x1ad7bd,_0x435af1['content'],_0x4b8fd5=>{if(!_0x3c194a)return!0x0;return!!_0x509f58['getFootnote'](_0x4b8fd5)&&!_0x2bf148['includes'](_0x4b8fd5);});for(const [_0x5f561f,_0x14f516]of Object['entries'](_0x48538a)){const _0x187968=_0x287fba[_0x5f561f]||_0x5f561f;let _0x460b6c;if('string'!=typeof _0x14f516)_0x460b6c=_0x14f516,_0x187968!==_0x5f561f&&_0x1ad7bd['setAttribute']('footnoteId',_0x187968,_0x460b6c);else{_0x460b6c=_0x1ad7bd['createElement']('footnoteDefinition',{'footnoteId':_0x187968});const _0x1fe4d9=_0x1c1560['data']['htmlProcessor']['toView'](_0x14f516);let _0x38ff8b;if(_0x89c7b7)_0x38ff8b=_0x1c1560['data']['toModel'](_0x1fe4d9,_0x460b6c);else{_0x38ff8b=_0x1ad7bd['createElement']('footnoteInlineContent');const _0x39c107=_0x1c1560['data']['toModel'](_0x1fe4d9,_0x38ff8b);_0x1ad7bd['insert'](_0x39c107,_0x38ff8b);}_0x1ad7bd['append'](_0x38ff8b,_0x460b6c);}_0x1ad7bd['insert'](_0x460b6c,_0x4b2432,'end');}_0x48538a=null;});});}}function G(_0x25bd6b,_0x4037af){for(const {item:_0x465ccb}of _0x25bd6b['createRangeIn'](_0x4037af))if(_0x465ccb['is']('element','footnotesDefinitions'))return _0x465ccb;return null;}function Q(_0x294207){const _0x14bde6=new Set();for(const {item:_0x14905b}of _0x294207)_0x14905b['is']('element','footnoteRef')&&_0x14bde6['add'](_0x14905b['getAttribute']('footnoteId'));return Array['from'](_0x14bde6);}class W extends _0x8bc47d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x27e723}=this,{componentFactory:_0x22b08e}=_0x27e723['ui'];_0x22b08e['add']('insertFootnote',Y(_0x27e723,_0x4d71ae)),_0x22b08e['add']('menuBar:insertFootnote',Y(_0x27e723,_0x4e1c3e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37eae4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b8a68;for(const _0x212f21 in _0x37eae4){const _0x22bddd=_0x212f21,_0x330c93=_0x37eae4[_0x22bddd];if('footnotesLicenseKeyValid'==_0x330c93||'footnotesLicenseKeyInvalid'==_0x330c93||'footnotesLicenseKeyExpired'==_0x330c93||'footnotesLicenseKeyDomainLimit'==_0x330c93||'footnotesLicenseKeyNotAllowed'==_0x330c93||'footnotesLicenseKeyEvaluationLimit'==_0x330c93||'footnotesLicenseKeyUsageLimit'==_0x330c93){delete _0x37eae4[_0x22bddd],_0x3b8a68=_0x330c93,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3b8a68&&_0x37eae4['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3b8a68&&_0x37eae4['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3b8a68&&_0x37eae4['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3b8a68&&_0x37eae4['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3b8a68&&_0x37eae4['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x3b8a68&&_0x37eae4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Y(_0x12bb12,_0x554fdc){const _0x566246=_0x12bb12['commands']['get']('insertFootnote');return _0x5b1d64=>{const {t:t}=_0x5b1d64,_0x32ba17=new _0x554fdc(_0x5b1d64),_0x579808=_0x32ba17 instanceof _0x4e1c3e;return _0x32ba17['bind']('isEnabled')['to'](_0x566246,'isEnabled'),_0x32ba17['set']({'label':t(_0x579808?'Footnote':'Insert\x20footnote'),'icon':_0x2e9740,'tooltip':!0x0}),_0x32ba17['on']('execute',()=>{_0x566246['execute'](),_0x12bb12['editing']['view']['focus']();}),_0x32ba17;};}class Z extends _0x8bc47d{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 _0x2ecdf5{['refresh'](){const {editor:_0x1a5606}=this,_0x2bd175=_0x1a5606['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2bd175,this['value']=_0x2bd175?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x102029}){const {editor:_0x59e83e}=this,_0x362337=_0x59e83e['plugins']['get'](K),_0x2d13a0=_0x362337['getFootnotesDefinitionsObjectElement']();_0x2d13a0&&ot['includes'](_0x102029)&&_0x59e83e['model']['change'](_0x518791=>{_0x518791['setAttribute']('footnotesListStyle',_0x102029,_0x2d13a0),_0x362337['_updateFootnotesCounters'](_0x518791);});}}class it extends _0x2ecdf5{['refresh'](){const {editor:_0x9a84c1}=this,_0x53ec52=_0x9a84c1['plugins']['get'](K)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x53ec52,this['value']=_0x53ec52?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0xd5f5ba}){const {editor:_0x1aeb0e}=this,_0x4a306b=_0x1aeb0e['plugins']['get'](K),_0xc16fab=_0x4a306b['getFootnotesDefinitionsObjectElement']();_0xc16fab&&Number['isInteger'](_0xd5f5ba)&&_0x1aeb0e['model']['change'](_0x4fa621=>{_0x4fa621['setAttribute']('footnotesListStart',_0xd5f5ba,_0xc16fab),_0x4a306b['_updateFootnotesCounters'](_0x4fa621);});}}function st(_0x21e15f,_0x1c460c){let _0x3be00='',_0x1dc5e8=_0x21e15f;for(;_0x1dc5e8>0x0;){const _0x1f671b=(_0x1dc5e8-0x1)%0x1a;_0x3be00=String['fromCharCode'](0x61+_0x1f671b)+_0x3be00,_0x1dc5e8=Math['floor']((_0x1dc5e8-0x1)/0x1a);}return _0x1c460c?_0x3be00['toUpperCase']():_0x3be00;}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(_0x434314,_0x13504c){let _0x3f0bf6='',_0x364ceb=_0x434314;for(const {value:_0x4e4014,numeral:_0x14c2f7}of rt)for(;_0x364ceb>=_0x4e4014;)_0x3f0bf6+=_0x14c2f7,_0x364ceb-=_0x4e4014;return _0x13504c?_0x3f0bf6:_0x3f0bf6['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class at extends _0x8bc47d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[$,K];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x56f0cc}=this;_0x56f0cc['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x56f0cc['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x56f0cc['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x56f0cc['commands']['add']('footnotesStyle',new nt(_0x56f0cc)),_0x56f0cc['commands']['add']('footnotesStart',new it(_0x56f0cc)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4d02b2}=this,{schema:_0x321cdd}=_0x4d02b2['model'];_0x321cdd['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1ca797}=this,{conversion:_0x55b695,model:_0x26fe51}=_0x1ca797,{schema:_0x39255f}=_0x26fe51;_0x55b695['for']('upcast')['add'](_0x9ac869=>{_0x9ac869['on']('element:ol',(_0xb57a5b,_0x37654e,_0x4c26dc)=>{const _0x37bfea=_0x37654e['viewItem'],_0x1dac9f=_0x37654e['modelCursor']?.['parent'];_0x37bfea['hasClass']('footnotes-list')&&_0x1dac9f?.['is']('element','footnotesDefinitions')&&(function(_0x56932e,_0x45ad50,_0x500de5,_0x332568){if(!_0x332568['checkAttribute'](_0x45ad50,'footnotesListStart'))return;let _0x39a702=0x1;const _0x1ba01a=_0x500de5['consumable']['consume'](_0x56932e,{'attributes':'start'});if(_0x1ba01a){const _0x53ac25=Number['parseInt'](_0x56932e['getAttribute']('start'),0xa);Number['isNaN'](_0x53ac25)||(_0x39a702=_0x53ac25);}!_0x1ba01a&&_0x45ad50['hasAttribute']('footnotesListStart')||_0x500de5['writer']['setAttribute']('footnotesListStart',_0x39a702,_0x45ad50);}(_0x37bfea,_0x1dac9f,_0x4c26dc,_0x39255f),function(_0x9ba7c4,_0x3e0715,_0x14383b,_0x4929cc){if(!_0x4929cc['checkAttribute'](_0x3e0715,'footnotesListStyle'))return;let _0x1c346c='decimal',_0x229428=!0x1;if(_0x14383b['consumable']['consume'](_0x9ba7c4,{'attributes':'type'})){const _0x46a3e4={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x9ba7c4['getAttribute']('type')];_0x46a3e4&&(_0x1c346c=_0x46a3e4),_0x229428=!0x0;}if(_0x14383b['consumable']['consume'](_0x9ba7c4,{'styles':'list-style-type'})){const _0x89cb54=ct(_0x9ba7c4['getStyle']('list-style-type'));_0x89cb54&&(_0x1c346c=_0x89cb54),_0x229428=!0x0;}!_0x229428&&_0x3e0715['hasAttribute']('footnotesListStyle')||_0x14383b['writer']['setAttribute']('footnotesListStyle',_0x1c346c,_0x3e0715);}(_0x37bfea,_0x1dac9f,_0x4c26dc,_0x39255f));});}),_0x55b695['for']('downcast')['add'](_0x12a06e=>{_0x12a06e['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x29e73e,_0x5969bb,_0x4d270d)=>{if(!_0x4d270d['consumable']['consume'](_0x5969bb['item'],_0x29e73e['name']))return;const _0x53bf77=ut(_0x5969bb['item'],_0x4d270d['mapper']),{attributeNewValue:_0x1c6640}=_0x5969bb;null==_0x1c6640||0x1===_0x1c6640?_0x4d270d['writer']['removeAttribute']('start',_0x53bf77):_0x4d270d['writer']['setAttribute']('start',String(_0x1c6640),_0x53bf77);}),_0x12a06e['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3a2d7b,_0x43f5e4,_0x267144)=>{if(!_0x267144['consumable']['consume'](_0x43f5e4['item'],_0x3a2d7b['name']))return;const _0x39d24b=ut(_0x43f5e4['item'],_0x267144['mapper']),{attributeNewValue:_0x42ebb2}=_0x43f5e4;_0x42ebb2&&'decimal'!==_0x42ebb2?_0x267144['writer']['setStyle']('list-style-type',_0x42ebb2,_0x39d24b):_0x267144['writer']['removeStyle']('list-style-type',_0x39d24b);});});}['_definePostfixer'](){const {editor:_0x175384}=this,{model:_0x2494ae}=_0x175384,_0x2cc118=_0x175384['plugins']['get'](K),_0x50667f=this['_getDefaultListStyle'](),_0x339ed5=this['_getDefaultStartIndex']();_0x2494ae['document']['registerPostFixer'](_0x393b5e=>{const _0x2a031a=_0x2494ae['document']['differ']['getChanges']();let _0x3062c1=!0x1;for(const _0x344af7 of _0x2a031a){if('insert'!==_0x344af7['type']||'$text'===_0x344af7['name'])continue;const _0x3af643=_0x2494ae['createRangeOn'](_0x344af7['position']['nodeAfter']);for(const _0x5f32b3 of _0x3af643['getItems']())_0x5f32b3['is']('element','footnotesDefinitions')&&(!_0x5f32b3['hasAttribute']('footnotesListStart')&&_0x2494ae['schema']['checkAttribute'](_0x5f32b3,'footnotesListStart')&&(_0x393b5e['setAttribute']('footnotesListStart',_0x339ed5,_0x5f32b3),_0x3062c1=!0x0),!_0x5f32b3['hasAttribute']('footnotesListStyle')&&_0x2494ae['schema']['checkAttribute'](_0x5f32b3,'footnotesListStyle')&&(_0x393b5e['setAttribute']('footnotesListStyle',_0x50667f,_0x5f32b3),_0x3062c1=!0x0));}return _0x3062c1&&_0x2cc118['_updateFootnotesCounters'](_0x393b5e),_0x3062c1;});}['_defineFormatter'](){const {editor:_0x1d3517}=this;_0x1d3517['plugins']['get'](K)['setFootnoteFormatter'](_0x7849a9=>this['_formatFootnoteListValue'](_0x7849a9));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x221ca1,value:_0x1e5781,digits:_0x59c9e4}){const _0x4fa135=_0x221ca1['getAttribute']('footnotesListStyle'),_0x21d0f1=_0x221ca1['getAttribute']('footnotesListStart'),_0x147650=Math['floor'](_0x1e5781)+(_0x21d0f1??0x1)-0x1;switch(_0x4fa135){case'decimal-leading-zero':return function(_0x10f256,_0x2d1048){return String(_0x10f256)['padStart'](_0x2d1048,'0');}(_0x147650,Math['max'](0x2,_0x59c9e4));case'lower-alpha':case'lower-latin':return st(_0x147650,!0x1);case'upper-alpha':case'upper-latin':return st(_0x147650,!0x0);case'lower-roman':return lt(_0x147650,!0x1);case'upper-roman':return lt(_0x147650,!0x0);case'arabic-indic':return String(_0x147650)['replace'](/\d/g,_0x39db8c=>ft[Number(_0x39db8c)]);default:return String(_0x147650);}}}function ct(_0x391acc){if('string'==typeof _0x391acc){const _0x5547b3=et[_0x391acc];if(_0x5547b3)return _0x5547b3;if(ot['includes'](_0x391acc))return _0x391acc;}return null;}function ut(_0x3bc356,_0x27877e){const _0x48b1ae=_0x27877e['toViewElement'](_0x3bc356);return Array['from'](_0x48b1ae['getChildren']())['find'](_0x5a78de=>_0x5a78de['is']('element','ol')&&_0x5a78de['hasClass']('footnotes-list'));}class dt extends _0x5bcf97{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0xb307b8();['keystrokes']=new _0x2e41a2();['focusables']=new _0x217e0f();['focusCycler'];constructor(_0x1499fa,{styleButtonViews:_0x5ba323,styleGridAriaLabel:_0x1b289f}){super(_0x1499fa),(this['focusCycler']=new _0x11a4bf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5ba323,_0x1b289f),[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 _0x3c1195 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3c1195['element']);_0xa476a5({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x30fc27['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 _0x18fe5e=_0x53e71f=>_0x53e71f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x18fe5e),this['keystrokes']['set']('arrowleft',_0x18fe5e),this['keystrokes']['set']('arrowup',_0x18fe5e),this['keystrokes']['set']('arrowdown',_0x18fe5e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x277af2,_0x562c31){const _0x377a4e=new _0x5bcf97(this['locale']);return _0x377a4e['children']=_0x377a4e['createCollection'](),_0x377a4e['children']['addMany'](_0x277af2),_0x377a4e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x562c31,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x377a4e['children']}),_0x377a4e['children']['delegate']('execute')['to'](this),_0x377a4e['focus']=function(){for(const _0x3663f3 of this['children'])if(_0x3663f3 instanceof _0x4d71ae&&_0x3663f3['isOn'])return void _0x3663f3['focus']();this['children']['first']['focus']();},_0x377a4e['focusTracker']=new _0xb307b8(),_0x377a4e['keystrokes']=new _0x2e41a2(),_0x377a4e['render'](),_0x377a4e['keystrokes']['listenTo'](_0x377a4e['element']),this['children']['add'](_0x377a4e),_0x377a4e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x12cda0=this['_createStartIndexPropertyView'](),_0x36873e=[_0x12cda0],_0x389e81=new _0x1b22a0(this['locale'],_0x36873e);return _0x389e81['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x389e81['buttonView']['bind']('isEnabled')['toMany'](_0x36873e,'isEnabled',(..._0x40fb42)=>_0x40fb42['some'](_0x5153d1=>_0x5153d1)),_0x389e81['buttonView']['on']('change:isEnabled',(_0x3508c5,_0xbe7af,_0x33440d)=>{_0x33440d||(_0x389e81['isCollapsed']=!0x0);}),this['children']['add'](_0x389e81),[_0x12cda0,_0x389e81];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xa76220=new _0x3270d7(this['locale'],_0x7de0f);return _0xa76220['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xa76220['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xa76220['fieldView']['on']('input',()=>{const _0x571aed=_0xa76220['fieldView']['element'],_0x31e9ee=_0x571aed['valueAsNumber'];Number['isNaN'](_0x31e9ee)?_0xa76220['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x571aed['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x31e9ee}):_0xa76220['errorText']=t(_0x31e9ee<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xa76220;}}class ht extends _0x8bc47d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2dbb58,_0x2e58dc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1599b6}=this,{componentFactory:_0x2d28d8}=_0x1599b6['ui'];_0x1599b6['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2d28d8['add']('footnotesStyle',function(_0x458ca7){return _0x5a339f=>{const {t:t}=_0x5a339f,_0x464ce2=_0x458ca7['commands']['get']('footnotesStyle'),_0x3a1b3c=_0x1ef1d7(_0x5a339f),{buttonView:_0x244a69}=_0x3a1b3c;return _0x3a1b3c['class']='ck-footnotes-styles-dropdown',_0x3a1b3c['bind']('isEnabled')['to'](_0x464ce2,'isEnabled'),_0x244a69['set']({'label':t('Footnotes\x20style'),'icon':_0x2e9740,'tooltip':!0x0}),_0x3a1b3c['once']('change:isOpen',()=>{const _0x27cb1c=function({editor:_0x41f470,dropdownView:_0x1b56c7}){const {t:t}=_0x41f470['locale'],_0x4fac32=t('Footnotes\x20definitions\x20styles'),_0x1fbdb3=function(_0x1e9279){const {t:t}=_0x1e9279['locale'],_0x44976a=_0x1e9279['config']['get']('footnotes.footnotesProperties.listStyles'),_0x30348e=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x5c9280},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x3ccbff},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x517153},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x56c656},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x3ac635},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x297597},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0xa81f0f}];return _0x44976a['map'](_0x54346c=>{const _0xf7c6d0=ct(_0x54346c),_0x2b8db2=_0x30348e['find'](_0x2a33c9=>_0x2a33c9['style']===_0xf7c6d0);return function(_0x47a9ab,_0x4a0e92){const {locale:_0x6e304a}=_0x47a9ab,{label:_0x5e992f,icon:_0x248578,tooltip:_0x1b38e2,style:_0x1e190a}=_0x4a0e92,_0x24332c=_0x47a9ab['commands']['get']('footnotesStyle'),_0x12ce17=new _0x4d71ae(_0x6e304a);return _0x12ce17['set']({'label':_0x5e992f,'icon':_0x248578,'tooltip':_0x1b38e2}),_0x12ce17['bind']('isOn')['to'](_0x24332c,'value',_0x56d4d3=>_0x56d4d3===_0x1e190a),_0x12ce17['bind']('isEnabled')['to'](_0x24332c,'isEnabled'),_0x12ce17['on']('execute',()=>{_0x47a9ab['execute']('footnotesStyle',{'value':_0x1e190a}),_0x47a9ab['editing']['view']['focus']();}),_0x12ce17;}(_0x1e9279,_0x2b8db2);});}(_0x41f470),_0x54b953=new dt(_0x41f470['locale'],{'styleGridAriaLabel':_0x4fac32,'styleButtonViews':_0x1fbdb3}),_0x334fbc=_0x41f470['commands']['get']('footnotesStart');return _0x54b953['startIndexFieldView']['bind']('isEnabled')['to'](_0x334fbc),_0x54b953['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x334fbc),_0x54b953['on']('footnotesListStart',(_0x13fc96,_0x5ef432)=>{_0x41f470['execute']('footnotesStart',{'value':_0x5ef432['startIndex']});}),_0x54b953['delegate']('execute')['to'](_0x1b56c7),_0x54b953;}({'editor':_0x458ca7,'dropdownView':_0x3a1b3c});_0x3a1b3c['panelView']['children']['add'](_0x27cb1c);}),_0x3a1b3c;};}(_0x1599b6));}['afterInit'](){const {editor:_0x38348a}=this,{t:t}=_0x38348a['locale'],_0x345ff4=_0x38348a['plugins']['get'](_0x2e58dc),{defaultPositions:_0x43be08}=_0x30a1b4;_0x345ff4['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x38348a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x45c1ac=>{let _0x8a96bd=_0x45c1ac['getFirstPosition']()?.['parent'];return _0x8a96bd?.['is']('$text')&&(_0x8a96bd=_0x8a96bd['parent']),_0x8a96bd?.['is']('element')?_0x8a96bd['findAncestor'](q):null;},'positions':[_0x43be08['southArrowNorth'],_0x43be08['southArrowNorthMiddleWest'],_0x43be08['southArrowNorthMiddleEast'],_0x43be08['southArrowNorthWest'],_0x43be08['southArrowNorthEast'],_0x43be08['northArrowSouth'],_0x43be08['northArrowSouthMiddleWest'],_0x43be08['northArrowSouthMiddleEast'],_0x43be08['northArrowSouthWest'],_0x43be08['northArrowSouthEast'],_0x43be08['viewportStickyNorth']]});}}class mt extends _0x8bc47d{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.
|
|
3
|
+
"version": "48.0.0-alpha.4",
|
|
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.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-enter": "48.0.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-widget": "48.0.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.0.0-alpha.4",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.4",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.4",
|
|
38
|
+
"@ckeditor/ckeditor5-enter": "48.0.0-alpha.4",
|
|
39
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.4",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.4",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.4",
|
|
42
|
+
"@ckeditor/ckeditor5-widget": "48.0.0-alpha.4"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist",
|