@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251020.0 → 0.0.0-nightly-20251021.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3b1d24,Command as _0x5ec066}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1d66b3,isWidget as _0x1113c0,toWidgetEditable as _0x8c9828,WidgetToolbarRepository as _0x444b8c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x6b1447,logWarning as _0x10f02e,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3cc568,ClickObserver as _0x33e78b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x17c25a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x129572,ButtonView as _0x5e1e56,View as _0x580895,ViewCollection as _0x478af2,FocusCycler as _0x41b0ac,addKeyboardHandlingForGrid as _0xb34a6c,CollapsibleView as _0x39e2d5,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x329863,BalloonPanelView as _0x4b9f6e,createDropdown as _0x3cb9af}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1db063,IconListStyleDecimal as _0x582374,IconListStyleDecimalLeadingZero as _0x438342,IconListStyleLowerRoman as _0x457797,IconListStyleUpperRoman as _0x2a3e63,IconListStyleLowerLatin as _0x54eae9,IconListStyleUpperLatin as _0x1d593e}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2a039c,_0x1e290f){this['_model']=_0x2a039c,this['_elementName']=_0x1e290f['elementName'],this['_getElementKey']=_0x1e290f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5a4fb0){const _0x1ef1c8=new Set(),_0x1cc73b=new Map();for(const _0x112b81 of _0x5a4fb0){if('insert'===_0x112b81['type']&&'$text'!==_0x112b81['name']&&_0x112b81['position']['nodeAfter']){const _0x27ffe7=this['_model']['createRangeOn'](_0x112b81['position']['nodeAfter']);for(const _0x21b537 of _0x27ffe7['getItems']()){if(!_0x21b537['is']('element',this['_elementName']))continue;const _0xc765c8=this['_getElementKey'](_0x21b537);_0x1cc73b['has'](_0xc765c8)||_0x1cc73b['set'](_0xc765c8,[]),_0x1cc73b['get'](_0xc765c8)['push'](_0x21b537);}}if('remove'===_0x112b81['type']&&_0x112b81['name']===this['_elementName']){const _0x1e4e09=this['_getElementKey']({'getAttribute':_0x541a6c=>_0x112b81['attributes']['get'](_0x541a6c)});_0x1ef1c8['add'](_0x1e4e09);}}for(const [_0x164be2,_0xd359cd]of this['_trackedElements'])'$graveyard'===_0xd359cd['root']['rootName']&&_0x1ef1c8['add'](_0x164be2);for(const _0x51e1d1 of _0x1ef1c8)this['_trackedElements']['delete'](_0x51e1d1);for(const [_0x1d0516,_0x4355be]of _0x1cc73b)this['_trackedElements']['set'](_0x1d0516,_0x4355be[_0x4355be['length']-0x1]);const _0x5be70e=new Set();for(const [_0x58db2e,_0x191947]of _0x1cc73b)_0x1ef1c8['has'](_0x58db2e)&&(_0x5be70e['add'](_0x191947[0x0]),_0x191947['length']>0x1?_0x1cc73b['set'](_0x58db2e,_0x191947['slice'](0x1)):_0x1cc73b['delete'](_0x58db2e),_0x1ef1c8['delete'](_0x58db2e));return{'removed':Array['from'](_0x1ef1c8),'inserted':Array['from'](_0x1cc73b['values']())['flat'](),'moved':Array['from'](_0x5be70e)};}}class c extends _0x3b1d24{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a1708){super(_0x2a1708),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3f915f=>_0x3f915f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2888c4=>_0x2888c4['getAttribute']('footnoteId')});}['init'](){const {editor:_0x2e9679}=this,{model:_0x152cce,data:_0xc95d32}=_0x2e9679;_0x152cce['document']['registerPostFixer'](_0x138677=>{const _0xf077c0=_0x152cce['document']['differ']['getChanges']();let _0x1b4c27=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x138677,_0xf077c0)&&(_0x1b4c27=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x138677,_0xf077c0)&&(_0x1b4c27=!0x0),this['_handleFootnoteReferencesChanges'](_0x138677,_0xf077c0)&&(_0x1b4c27=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x138677)&&(_0x1b4c27=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x138677)&&(_0x1b4c27=!0x0),this['_sortFootnoteDefinitions'](_0x138677)&&(_0x1b4c27=!0x0),_0x1b4c27;}),this['listenTo'](_0x152cce['document'],'change:data',()=>{_0x152cce['enqueueChange']({'isUndoable':!0x1},_0x7d808b=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x7d808b);});},{'priority':'low'}),this['listenTo'](_0xc95d32,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3b31b0){return this['_footnotes']['find'](_0x864c1d=>_0x864c1d['id']===_0x3b31b0)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x28c9bd){this['_footnoteFormatter']=_0x28c9bd;}['_updateFootnotesCounters'](_0x2bac0b,_0x596cd3=0x0){let _0x449513=!0x1;for(let _0x48ee98=_0x596cd3;_0x48ee98<this['_footnotes']['length'];_0x48ee98++)this['_updateFootnoteRefCounter'](_0x2bac0b,_0x48ee98)&&(_0x449513=!0x0);return _0x449513;}['_insertEmptyFootnotesDefinitionsContainer'](_0xbb21af,_0x359087){const _0x1d6716=_0xbb21af['createElement']('footnotesDefinitions',{});return _0xbb21af['append'](_0x1d6716,_0x359087),this['_footnotesDefinitions']=_0x1d6716,_0x1d6716;}['_ensureFootnotesDefinitionsContainerExists'](_0x5af931){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x3887f0=this['_footnotes'][0x0]['reference']['root'],_0x46ab73=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5af931,_0x3887f0);for(const _0x4bacb9 of this['_footnotes'])_0x4bacb9['definition']['parent']||_0x5af931['insert'](_0x4bacb9['definition'],_0x46ab73,'end');this['_updateFootnotesCounters'](_0x5af931);}['_handleFootnotesDefinitionsObjectChanges'](_0x1c6448,_0x571e7f){let _0x3c3415=!0x1;const {inserted:_0x421ae6,removed:_0x4ec099,moved:_0x30ce54}=this['_footnoteDefsContainerTracker']['getChanges'](_0x571e7f);if(_0x30ce54['length']&&(this['_footnotesDefinitions']=_0x30ce54[0x0]),_0x421ae6['length']){if(_0x421ae6['length']>0x1||this['_footnotesDefinitions']&&_0x421ae6['some'](_0x463918=>_0x463918!==this['_footnotesDefinitions'])){const _0x1ce2ed=_0x1c6448['createElement']('footnotesDefinitions',{}),_0x29efc7=[];this['_footnotesDefinitions']&&_0x29efc7['push'](this['_footnotesDefinitions']),_0x29efc7['push'](..._0x421ae6),_0x1c6448['insert'](_0x1ce2ed,_0x29efc7[0x0],'before');for(const _0x59661a of _0x29efc7)_0x1c6448['move'](_0x1c6448['createRangeIn'](_0x59661a),_0x1c6448['createPositionAt'](_0x1ce2ed,'end')),_0x1c6448['remove'](_0x59661a);this['_footnotesDefinitions']=_0x1ce2ed,this['_updateFootnotesCounters'](_0x1c6448),_0x3c3415=!0x0;}else this['_footnotesDefinitions']=_0x421ae6[0x0];}if(_0x4ec099['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1eb752 of this['_footnotes'])_0x1c6448['remove'](_0x1eb752['reference']),_0x3c3415=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x3c3415;}['_handleFootnoteDefinitionsChanges'](_0x2e3a13,_0x53f399){let _0x5225f8=!0x1;const _0xc0f73c=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x374713,moved:_0x640c8a}=this['_footnoteDefsTracker']['getChanges'](_0x53f399);for(const _0x3a9d25 of[..._0x640c8a,..._0x374713]){const _0x221495=_0x3a9d25['getAttribute']('footnoteId'),_0x33514e=this['getFootnote'](_0x221495);_0x33514e&&(_0x33514e['definition']=_0x3a9d25),_(_0x2e3a13,_0xc0f73c,_0x3a9d25)&&(_0x5225f8=!0x0);}return _0x5225f8;}['_handleFootnoteReferencesChanges'](_0x54f91b,_0x7fd158){let _0x3f16c5=!0x1;const {removed:_0x159ea3,inserted:_0x417b92,moved:_0x2855d1}=this['_footnoteRefsTracker']['getChanges'](_0x7fd158);for(const _0x141334 of _0x159ea3)this['_handleRemoveFootnoteReferenceById'](_0x54f91b,_0x141334)&&(_0x3f16c5=!0x0);for(const _0x1d8148 of _0x417b92)this['_handleInsertedFootnoteReference'](_0x54f91b,_0x1d8148)&&(_0x3f16c5=!0x0);for(const _0x32c329 of _0x2855d1)this['_handleMovedFootnoteReference'](_0x54f91b,_0x32c329)&&(_0x3f16c5=!0x0);return _0x3f16c5;}['_handleFootnotesDefinitionsObjectSync'](_0x413f1d){if(!this['_footnotesDefinitions'])return!0x1;let _0x2d5d10=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4c3b58=[];for(const _0x229b67 of this['_footnotesDefinitions']['getChildren']()){const _0x33257f=_0x229b67['getAttribute']('footnoteId');this['getFootnote'](_0x33257f)||(_0x4c3b58['unshift'](_0x229b67),_0x2d5d10=!0x0);}for(const _0x4ca9dd of _0x4c3b58)_0x413f1d['remove'](_0x4ca9dd);}const _0x48e159=new Set(),_0x3457ca=[];for(const _0x412483 of this['_footnotesDefinitions']['getChildren']()){const _0x585f1a=_0x412483['getAttribute']('footnoteId');_0x48e159['has'](_0x585f1a)?(_0x3457ca['unshift'](_0x412483),_0x2d5d10=!0x0):_0x48e159['add'](_0x585f1a);}for(const _0x218ace of _0x3457ca)_0x413f1d['remove'](_0x218ace);return this['_footnotesDefinitions']['childCount']||(_0x413f1d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2d5d10=!0x0),_0x2d5d10;}['_handleInsertedFootnoteReference'](_0x3541e6,_0x4acb5e){if(this['_footnotes']['find'](_0x3c9909=>_0x3c9909['reference']===_0x4acb5e))return!0x1;let _0x2557b8=!0x1;const _0x581a44=_0x4acb5e['getAttribute']('footnoteId'),_0x1aed62=this['getFootnote'](_0x581a44);_0x1aed62&&(_0x3541e6['remove'](_0x1aed62['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x3ea496=>_0x3ea496['id']!==_0x581a44),_0x2557b8=!0x0);let _0x491a35=this['_footnotesDefinitions']?function(_0xbf2ca3,_0xf3520a){for(const _0x573980 of _0xbf2ca3['getChildren']())if(_0x573980['getAttribute']('footnoteId')===_0xf3520a)return _0x573980;return null;}(this['_footnotesDefinitions'],_0x581a44):null;_0x491a35||(_0x491a35=_0x3541e6['createElement']('footnoteDefinition',{'footnoteId':_0x581a44}),this['_footnotesDefinitions']&&(_0x3541e6['insert'](_0x491a35,this['_footnotesDefinitions'],'end'),_0x2557b8=!0x0));const _0x4b8ab4={'id':_0x581a44,'reference':_0x4acb5e,'definition':_0x491a35},_0x55f27e=I(this['editor']['model'],this['_footnotes'],_0x4acb5e);return this['_footnotes']['splice'](_0x55f27e,0x0,_0x4b8ab4),this['_updateFootnotesCounters'](_0x3541e6,_0x55f27e)&&(_0x2557b8=!0x0),_0x2557b8;}['_handleRemoveFootnoteReferenceById'](_0x4ee149,_0x356ae3){const _0x5f5b71=this['_footnotes']['findIndex'](_0x138ca6=>_0x138ca6['id']===_0x356ae3);if(-0x1===_0x5f5b71)return!0x1;let _0x39c1c8=!0x1;const _0x48e32c=this['_footnotes'][_0x5f5b71];return'$graveyard'!==_0x48e32c['definition']['root']['rootName']&&(_0x4ee149['remove'](_0x48e32c['definition']),_0x39c1c8=!0x0),this['_footnotes']['splice'](_0x5f5b71,0x1),this['_updateFootnotesCounters'](_0x4ee149,_0x5f5b71)&&(_0x39c1c8=!0x0),_0x39c1c8;}['_handleMovedFootnoteReference'](_0x4091f1,_0x4d23b3){const _0x221067=_0x4d23b3['getAttribute']('footnoteId'),_0x995e2=this['_footnotes']['findIndex'](_0x33c77e=>_0x33c77e['id']===_0x221067),_0x104399=this['_footnotes'][_0x995e2];let _0x15fd8e=!0x1;_0x104399['reference']=_0x4d23b3,this['_footnotes']['splice'](_0x995e2,0x1);const _0x263b49=I(this['editor']['model'],this['_footnotes'],_0x4d23b3);return this['_footnotes']['splice'](_0x263b49,0x0,_0x104399),this['_updateFootnotesCounters'](_0x4091f1,Math['min'](_0x995e2,_0x263b49))&&(_0x15fd8e=!0x0),_0x15fd8e;}['_updateFootnoteRefCounter'](_0x2243e2,_0x351934){if(!this['_footnotesDefinitions'])return!0x1;const _0x4d43d6=this['_footnotes'][_0x351934];let _0x223e0;return _0x223e0=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x4d43d6,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x351934+0x1}):String(_0x351934+0x1),_0x4d43d6['reference']['getAttribute']('footnoteCounter')!=_0x223e0&&(_0x2243e2['setAttribute']('footnoteCounter',_0x223e0,_0x4d43d6['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2bea26){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3e2c56,_0x2ced7c){if(_0x3e2c56['length']!==_0x2ced7c['length'])return!0x1;for(let _0x3da06e=0x0;_0x3da06e<_0x3e2c56['length'];_0x3da06e++)if(_0x3e2c56[_0x3da06e]!==_0x2ced7c[_0x3da06e])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x12efbd=>_0x12efbd['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x18cd05=>_0x18cd05['getAttribute']('footnoteId'))))return!0x1;let _0x22e791=!0x1;for(let _0xf53270=0x0;_0xf53270<this['_footnotes']['length'];_0xf53270++){const _0x363c82=this['_footnotes'][_0xf53270],_0xcfa40c=_0x2bea26['createPositionBefore'](_0x363c82['definition']),_0x4b77b9=_0x2bea26['createPositionAt'](this['_footnotesDefinitions'],_0xf53270);_0xcfa40c['isEqual'](_0x4b77b9)||(_0x2bea26['move'](_0x2bea26['createRangeOn'](_0x363c82['definition']),_0x4b77b9),_0x22e791=!0x0);}return _0x22e791;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5ec881){if(!this['_footnotes']['length'])return!0x1;const {model:_0x43a09f}=this['editor'];let _0x5c9ff5=!0x1;for(let _0x4f03bc=0x0;_0x4f03bc<this['_footnotes']['length']-0x1;_0x4f03bc++){const _0x539902=this['_footnotes'][_0x4f03bc],_0x513f75=this['_footnotes'][_0x4f03bc+0x1],_0x51c3c4=_0x43a09f['createPositionBefore'](_0x539902['reference']),_0x1f81ea=_0x43a09f['createPositionBefore'](_0x513f75['reference']);'after'===_0x51c3c4['compareWith'](_0x1f81ea)&&(this['_handleMovedFootnoteReference'](_0x5ec881,_0x539902['reference']),_0x4f03bc=-0x1,_0x5c9ff5=!0x0);}return _0x5c9ff5;}}function _(_0xf6f987,_0x3bd8cc,_0x1550cc){if(_0x1550cc['childCount'])return!0x1;const _0x5777b8=_0x3bd8cc?'paragraph':'footnoteInlineContent';return _0xf6f987['insert'](_0xf6f987['createElement'](_0x5777b8),_0x1550cc),!0x0;}function I(_0x3f88ea,_0x158f0e,_0x463119){if(0x0===_0x158f0e['length'])return 0x0;const _0x3f88af=_0x3f88ea['createPositionBefore'](_0x463119);for(let _0x313c8b=0x0;_0x313c8b<_0x158f0e['length'];_0x313c8b++){const _0x57c6de=_0x158f0e[_0x313c8b],_0x398c01=_0x3f88ea['createPositionBefore'](_0x57c6de['reference']);if('before'===_0x3f88af['compareWith'](_0x398c01))return _0x313c8b;}const _0x96a3e3=_0x463119['root'];let _0x410a5a=-0x1;for(let _0x23f129=_0x158f0e['length']-0x1;_0x23f129>=0x0;_0x23f129--)if(_0x158f0e[_0x23f129]['reference']['root']===_0x96a3e3){_0x410a5a=_0x23f129;break;}if(-0x1!==_0x410a5a)return _0x410a5a+0x1;const _0x55d60b=_0x3f88ea['document']['getRootNames'](),_0x41e30f=_0x55d60b['indexOf'](_0x96a3e3['rootName']),_0x2df8d3=_0x55d60b[_0x41e30f+0x1];if(_0x2df8d3){for(let _0x20d27f=0x0;_0x20d27f<_0x158f0e['length'];_0x20d27f++)if(_0x158f0e[_0x20d27f]['reference']['root']['rootName']===_0x2df8d3)return _0x20d27f;}return _0x158f0e['length'];}class w extends _0x5ec066{['refresh'](){const _0x59ac9d=this['editor']['model']['document']['selection'],_0xae4ec6=this['_getPositionToInsertFootnote'](_0x59ac9d);this['isEnabled']=!!_0xae4ec6;}['execute'](_0x450180){const {editor:_0x25ced2}=this,{model:_0x12e376}=_0x25ced2,{selection:_0x2a9167}=_0x12e376['document'],_0x532298=this['_getPositionToInsertFootnote'](_0x2a9167);if(!_0x532298)return;const _0x4d56f9=_0x25ced2['plugins']['get']('FootnotesEditing'),_0x328c63=_0x450180?.['footnoteId']??_0x6b1447();!function(_0x4d1ee6){return'string'==typeof _0x4d1ee6&&_0x4d1ee6['length']>0x0&&!/\s/['test'](_0x4d1ee6)&&!/^\d/['test'](_0x4d1ee6);}(_0x328c63)?_0x10f02e('insert-footnote-command-executed-with-invalid-id'):(_0x12e376['change'](_0x4a398a=>{const _0x339264=_0x4a398a['createElement']('footnoteRef',{'footnoteId':_0x328c63});_0x12e376['insertObject'](_0x339264,_0x532298,null);}),_0x4d56f9['_moveSelectionToFootnoteDefinition'](_0x328c63));}['_getPositionToInsertFootnote'](_0x2f40e1){const {model:_0x8aeb62}=this['editor'],{schema:_0x1c2d2a}=_0x8aeb62,_0x40a171=_0x2f40e1['getFirstRange']();for(const _0x521e76 of _0x40a171['getItems']())if(_0x1c2d2a['isBlock'](_0x521e76)||_0x1c2d2a['isObject'](_0x521e76))return null;const _0x2143fe=_0x40a171['end'];return _0x1c2d2a['checkChild'](_0x2143fe,'footnoteRef')?_0x2143fe:null;}}class r extends _0x3b1d24{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8046b5}=this;_0x8046b5['config']['define']('footnotes.multiBlock',!0x0),_0x8046b5['commands']['add']('insertFootnote',new w(_0x8046b5)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x258afb){const _0x19043c=_0x141011([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]),_0x53cc88=0x47a28506,_0x419a81=0x47a5f3be^_0x53cc88,_0x4a0c00=window[_0x141011([0x44,0x61,0x74,0x65])][_0x141011([0x6e,0x6f,0x77])](),_0x288a62=_0x258afb[_0x141011([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x580a94=new window[(_0x141011([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ebe2=>{_0x288a62[_0x141011([0x6f,0x6e,0x63,0x65])](_0x141011([0x72,0x65,0x61,0x64,0x79]),_0x44ebe2);}),_0xddd535={[_0x141011([0x6b,0x74,0x79])]:_0x141011([0x45,0x43]),[_0x141011([0x75,0x73,0x65])]:_0x141011([0x73,0x69,0x67]),[_0x141011([0x63,0x72,0x76])]:_0x141011([0x50,0x2d,0x32,0x35,0x36]),[_0x141011([0x78])]:_0x141011([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]),[_0x141011([0x79])]:_0x141011([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]),[_0x141011([0x61,0x6c,0x67])]:_0x141011([0x45,0x53,0x32,0x35,0x36])},_0x4fb84a=_0x288a62[_0x141011([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x141011([0x67,0x65,0x74])](_0x141011([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5766db(){let _0x16c75e,_0x226893=null,_0x521698=null;try{if(_0x4fb84a==_0x141011([0x47,0x50,0x4c]))return _0x141011([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16c75e=_0x2013e4(),!_0x16c75e)return _0x141011([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16c75e[_0x141011([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x521698=_0x2f01c8(_0x16c75e[_0x141011([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16c75e[_0x141011([0x6a,0x74,0x69])])),await _0x26b125()?_0x3eadd0()?_0x1a6c89()?_0x141011([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31da5d()?(_0x16c75e[_0x141011([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x141011([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x226893=_0x1a8958(_0x141011([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16c75e[_0x141011([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x141011([0x74,0x72,0x69,0x61,0x6c])&&(_0x226893=_0x1a8958(_0x141011([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36dbe8()):_0x141011([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x141011([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x141011([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x141011([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a6c89(){const _0x154249=[_0x141011([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x141011([0x74,0x72,0x69,0x61,0x6c])][_0x141011([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16c75e[_0x141011([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a0c00/0x3e8:0xe10*_0x419a81;return _0x16c75e[_0x141011([0x65,0x78,0x70])]<_0x154249;}function _0x3eadd0(){const _0x285ba2=_0x16c75e[_0x141011([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x285ba2&&(!!_0x285ba2[_0x141011([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x141011([0x2a]))||!!_0x285ba2[_0x141011([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x141011([0x46,0x4f,0x4f])));}function _0x31da5d(){const _0x3a042b=_0x16c75e[_0x141011([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a042b||0x0==_0x3a042b[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b938a}=new URL(window[_0x141011([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a042b[_0x141011([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b938a))return!0x0;const _0x4c26a5=_0x1b938a[_0x141011([0x73,0x70,0x6c,0x69,0x74])](_0x141011([0x2e]));return _0x3a042b[_0x141011([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36180b=>_0x36180b[_0x141011([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x141011([0x2a])))[_0x141011([0x6d,0x61,0x70])](_0x519575=>_0x519575[_0x141011([0x73,0x70,0x6c,0x69,0x74])](_0x141011([0x2e])))[_0x141011([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29e7cc=>_0x29e7cc[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c26a5[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x141011([0x6d,0x61,0x70])](_0x22d427=>Array(_0x4c26a5[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22d427[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x141011([0x66,0x69,0x6c,0x6c])](_0x22d427[0x0]===_0x141011([0x2a])?_0x141011([0x2a]):'')[_0x141011([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22d427))[_0x141011([0x73,0x6f,0x6d,0x65])](_0x485252=>_0x4c26a5[_0x141011([0x65,0x76,0x65,0x72,0x79])]((_0x17853b,_0x5a1b9a)=>_0x485252[_0x5a1b9a]===_0x17853b||_0x485252[_0x5a1b9a]===_0x141011([0x2a])));}function _0x36dbe8(){return _0x226893&&_0x521698?new window[(_0x141011([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5428bc,_0x173d07)=>{_0x226893[_0x141011([0x74,0x68,0x65,0x6e])](_0x5428bc,_0x173d07),_0x521698[_0x141011([0x74,0x68,0x65,0x6e])](_0x221496=>{_0x221496!=_0x141011([0x56,0x61,0x6c,0x69,0x64])&&_0x5428bc(_0x221496);},_0x173d07);}):_0x226893||_0x521698||_0x141011([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f01c8(_0x22ce1f,_0x3e0d03){return new window[(_0x141011([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58cf35=>{if(_0x5d3907())return _0x58cf35(_0x141011([0x56,0x61,0x6c,0x69,0x64]));_0x45b891(),_0x288a62[_0x141011([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x141011([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbe3060=!0x1;const _0x3dc497=_0x6b1447();function _0x114351(_0x1f49a4){return!!_0x1f49a4&&(typeof _0x1f49a4===_0x141011([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f49a4===_0x141011([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f49a4[_0x141011([0x74,0x68,0x65,0x6e])]===_0x141011([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f49a4[_0x141011([0x63,0x61,0x74,0x63,0x68])]===_0x141011([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32a226(_0x393602){_0x1279bb(_0x393602)[_0x141011([0x74,0x68,0x65,0x6e])](_0x104ccf=>{if(!_0x104ccf||_0x104ccf[_0x141011([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x141011([0x6f,0x6b]))return _0x141011([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x294247(_0x22651a(_0x3dc497+_0x3e0d03))!=_0x104ccf[_0x141011([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x141011([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x141011([0x56,0x61,0x6c,0x69,0x64]);})[_0x141011([0x74,0x68,0x65,0x6e])](_0x1a28fc=>(_0x9741cc(),_0x1a28fc),()=>{const _0x3123b7=_0x1324be();return null==_0x3123b7?(_0x9741cc(),_0x141011([0x56,0x61,0x6c,0x69,0x64])):_0x141011(_0x4a0c00-_0x3123b7>(0x63ae0106^_0x53cc88)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x141011([0x74,0x68,0x65,0x6e])](_0x58cf35)[_0x141011([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58cf35(_0x141011([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5bb356=0x47946b86^_0x53cc88;function _0x9741cc(){const _0xd2de81=_0x141011([0x6c,0x6c,0x63,0x74,0x2d])+_0x294247(_0x22651a(_0x22ce1f)),_0x176805=_0x26bccf(_0x294247(window[_0x141011([0x4d,0x61,0x74,0x68])][_0x141011([0x63,0x65,0x69,0x6c])](_0x4a0c00/_0x5bb356)));window[_0x141011([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x141011([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd2de81,_0x176805);}function _0x1324be(){const _0x2038c9=_0x141011([0x6c,0x6c,0x63,0x74,0x2d])+_0x294247(_0x22651a(_0x22ce1f)),_0x5d3e8f=window[_0x141011([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x141011([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2038c9);return _0x5d3e8f?window[_0x141011([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26bccf(_0x5d3e8f),0x10)*_0x5bb356:null;}function _0x1279bb(_0xa55c27){return new window[(_0x141011([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a69b7,_0x3f240e)=>{_0xa55c27[_0x141011([0x74,0x68,0x65,0x6e])](_0x1a69b7,_0x3f240e),window[_0x141011([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f240e,0x47a351c6^_0x53cc88);});}}_0x288a62[_0x141011([0x6f,0x6e])](_0x141011([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2201a8,_0x7dabae)=>{if(_0x7dabae[0x0]!=_0x22ce1f)return _0x58cf35(_0x141011([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7dabae[0x1]={..._0x7dabae[0x1],[_0x141011([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dc497};},{[_0x141011([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x141011([0x68,0x69,0x67,0x68])}),_0x288a62[_0x141011([0x6f,0x6e])](_0x141011([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2601e1=>{_0x114351(_0x2601e1[_0x141011([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbe3060=!0x0,_0x32a226(_0x2601e1[_0x141011([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x141011([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x141011([0x6c,0x6f,0x77])}),_0x580a94[_0x141011([0x74,0x68,0x65,0x6e])](()=>{_0xbe3060||_0x58cf35(_0x141011([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d3907(){return _0x288a62[_0x141011([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x141011([0x76,0x69,0x65,0x77])][_0x141011([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x141011([0x61,0x75,0x74,0x6f]);}function _0x45b891(){_0x288a62[_0x141011([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x141011([0x76,0x69,0x65,0x77])][_0x141011([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x141011([0x61,0x75,0x74,0x6f]);}}function _0x1a8958(_0x15435c){const _0x2fdff8=[new window[(_0x141011([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d2b1=>setTimeout(_0x54d2b1,0x47abbbca^_0x53cc88)),_0x580a94[_0x141011([0x74,0x68,0x65,0x6e])](()=>new window[(_0x141011([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c75cb=>{let _0x5df31b=0x0;_0x288a62[_0x141011([0x6d,0x6f,0x64,0x65,0x6c])][_0x141011([0x6f,0x6e])](_0x141011([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x388cb3,_0x48636b)=>{_0x48636b[0x0][_0x141011([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5df31b++,_0x5df31b==(0x47a284fe^_0x53cc88)&&(_0x2c75cb(),_0x388cb3[_0x141011([0x6f,0x66,0x66])]());});}))];return window[_0x141011([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x141011([0x72,0x61,0x63,0x65])](_0x2fdff8)[_0x141011([0x74,0x68,0x65,0x6e])](()=>_0x15435c);}async function _0x4dded8(){await _0x580a94,_0x288a62[_0x141011([0x6d,0x6f,0x64,0x65,0x6c])][_0x141011([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27274b,_0x288a62[_0x141011([0x6d,0x6f,0x64,0x65,0x6c])][_0x141011([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27274b,_0x288a62[_0x141011([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x141011([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26d597(_0x4b2da3){const _0x4061b3=_0x547736();_0x288a62[_0x4061b3]=_0x141011([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b2da3,_0x4b2da3!=_0x141011([0x56,0x61,0x6c,0x69,0x64])&&_0x4dded8();}function _0x547736(){const _0x4ccb42=window[_0x141011([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x141011([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x141011([0x6e,0x6f,0x77])]())[_0x141011([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x141011([0x2e]),'');let _0x3ac2e9=_0x141011([0x75]);for(let _0x2f351a=0x0;_0x2f351a<_0x4ccb42[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f351a+=0x2){let _0x4670a3=window[_0x141011([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ccb42[_0x141011([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f351a,_0x2f351a+0x2));_0x4670a3>=_0x19043c[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4670a3-=_0x19043c[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ac2e9+=_0x19043c[_0x4670a3];}return _0x3ac2e9;}function _0x2013e4(){const _0xc60926=_0x4fb84a[_0x141011([0x73,0x70,0x6c,0x69,0x74])](_0x141011([0x2e]));if(0x3!=_0xc60926[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54bcb3(_0xc60926[0x1]);function _0x54bcb3(_0x5b7ae2){const _0xd623aa=_0x46936b(_0x5b7ae2);return _0xd623aa&&_0x45c19d()?_0xd623aa:null;function _0x45c19d(){const _0x13027b=_0xd623aa[_0x141011([0x6a,0x74,0x69])],_0x267cd8=window[_0x141011([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13027b[_0x141011([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13027b[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8b2795={..._0xd623aa,[_0x141011([0x6a,0x74,0x69])]:_0x13027b[_0x141011([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13027b[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8b2795[_0x141011([0x76,0x63])],_0x22651a(_0x8b2795)==_0x267cd8;}}}async function _0x26b125(){let _0x41b73c=!0x0;try{const _0x56aa1e=_0x4fb84a[_0x141011([0x73,0x70,0x6c,0x69,0x74])](_0x141011([0x2e])),[_0x5074d2,_0x27a946,_0x8068bf]=_0x56aa1e;return _0x315cb5(_0x5074d2),await _0x541740(_0x5074d2,_0x27a946,_0x8068bf),_0x41b73c;}catch{return!0x1;}function _0x315cb5(_0xbef381){const _0x532958=_0x46936b(_0xbef381);_0x532958&&_0x532958[_0x141011([0x61,0x6c,0x67])]==_0x141011([0x45,0x53,0x32,0x35,0x36])||(_0x41b73c=!0x1);}async function _0x541740(_0x2ba222,_0x27bf04,_0x40ce26){const _0x2a665a=window[_0x141011([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x141011([0x66,0x72,0x6f,0x6d])](_0x5ce628(_0x40ce26),_0x11ade6=>_0x11ade6[_0x141011([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x345449=new window[(_0x141011([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x141011([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ba222+_0x141011([0x2e])+_0x27bf04),_0x2bafa2=window[_0x141011([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x141011([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2bafa2)return;const _0xbbbda=await _0x2bafa2[_0x141011([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x141011([0x6a,0x77,0x6b]),_0xddd535,{[_0x141011([0x6e,0x61,0x6d,0x65])]:_0x141011([0x45,0x43,0x44,0x53,0x41]),[_0x141011([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x141011([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x141011([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2bafa2[_0x141011([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x141011([0x6e,0x61,0x6d,0x65])]:_0x141011([0x45,0x43,0x44,0x53,0x41]),[_0x141011([0x68,0x61,0x73,0x68])]:{[_0x141011([0x6e,0x61,0x6d,0x65])]:_0x141011([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbbbda,_0x2a665a,_0x345449)||(_0x41b73c=!0x1);}}function _0x46936b(_0x26038d){return _0x26038d[_0x141011([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x141011([0x65,0x79]))?JSON[_0x141011([0x70,0x61,0x72,0x73,0x65])](_0x5ce628(_0x26038d)):null;}function _0x5ce628(_0x21918c){return window[_0x141011([0x61,0x74,0x6f,0x62])](_0x21918c[_0x141011([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x141011([0x2b]))[_0x141011([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x141011([0x2f])));}function _0x22651a(_0x9c2c41){let _0x502427=0x1505;function _0x6633e1(_0x3519f5){for(let _0x38ba1c=0x0;_0x38ba1c<_0x3519f5[_0x141011([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38ba1c++){const _0x1a6101=_0x3519f5[_0x141011([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38ba1c);_0x502427=(_0x502427<<0x5)+_0x502427+_0x1a6101,_0x502427&=_0x502427;}}function _0x36233b(_0x5ad77e){Array[_0x141011([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ad77e)?_0x5ad77e[_0x141011([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36233b):_0x5ad77e&&typeof _0x5ad77e==_0x141011([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x141011([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ad77e)[_0x141011([0x73,0x6f,0x72,0x74])]()[_0x141011([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28cdc5,_0x2bc95e])=>{_0x6633e1(_0x28cdc5),_0x36233b(_0x2bc95e);}):_0x6633e1(window[_0x141011([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ad77e));}return _0x36233b(_0x9c2c41),_0x502427>>>0x0;}function _0x294247(_0x51a27b){return _0x51a27b[_0x141011([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x141011([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x141011([0x30]));}function _0x26bccf(_0x5375bb){return _0x5375bb[_0x141011([0x73,0x70,0x6c,0x69,0x74])]('')[_0x141011([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x141011([0x6a,0x6f,0x69,0x6e])]('');}function _0x27274b(){}function _0x141011(_0x3c21d7){return _0x3c21d7['map'](_0x14fa97=>String['fromCharCode'](_0x14fa97))['join']('');}_0x26d597(await _0x5766db());}(this);}['_moveSelectionToFootnoteDefinition'](_0x33ea6e){const {plugins:_0x8e669a,editing:_0x5d5f24,model:_0x5cacd8}=this['editor'],_0x2a7d00=_0x8e669a['get'](c)['getFootnote'](_0x33ea6e);return!!_0x2a7d00&&(_0x5cacd8['change'](_0x5cfc21=>{_0x5cfc21['setSelection'](_0x5cfc21['createPositionAt'](_0x2a7d00['definition'],'end'));}),_0x5d5f24['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4280a6){const {plugins:_0x56a91b,editing:_0x1969ca,model:_0x46f38c}=this['editor'],_0x3c5468=_0x56a91b['get'](c)['getFootnote'](_0x4280a6);return!!_0x3c5468&&(_0x46f38c['change'](_0x5ce831=>{_0x5ce831['setSelection'](_0x3c5468['reference'],'on');}),_0x1969ca['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x333016}=this['editor']['model'],_0x507262=this['editor']['config']['get']('footnotes.multiBlock');_0x333016['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x333016['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x333016['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x507262?_0x333016['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x333016['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x333016['addChildCheck'](_0x561141=>{for(const _0x378f15 of _0x561141)if('footnoteDefinition'===_0x378f15['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3bc842}=this,{conversion:_0x119e57,editing:_0xbd428f}=_0x3bc842,{t:t}=_0x3bc842['locale'];_0x119e57['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1c2b3a,{writer:_0x543653,consumable:_0x32f4cb})=>{const _0x1b603f=_0x1c2b3a['getChild'](0x0);if(!_0x1b603f||!_0x1b603f['is']('element','a'))return null;const _0x2cf122=_0x1b603f['getAttribute']('href')||'';if(!_0x2cf122['startsWith']('#'))return null;const _0x44ee78=_0x2cf122['replace'](/^#/,'');if(!_0x44ee78)return null;_0x32f4cb['consume'](_0x1b603f,{'name':!0x0,'attributes':['href']});for(const {item:_0x5d3f7c}of _0xbd428f['view']['createRangeIn'](_0x1b603f))_0x5d3f7c['is']('$textProxy')?_0x32f4cb['consume'](_0x5d3f7c['textNode'],{'name':!0x0}):_0x5d3f7c['is']('element')&&_0x32f4cb['consume'](_0x5d3f7c,{'name':!0x0});return _0x543653['createElement']('footnoteRef',{'footnoteId':_0x44ee78});}}),_0x119e57['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x35cd71,{writer:_0xf2a617})=>g(_0x35cd71,_0xf2a617)}),_0x119e57['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e094f,{writer:_0xc6a8ef})=>{const _0x4123f9=_0x3e094f['getAttribute']('footnoteCounter');return _0x1d66b3(g(_0x3e094f,_0xc6a8ef),_0xc6a8ef,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4123f9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4ceae3}=this,{t:t}=_0x4ceae3['locale'],{conversion:_0x2cff0b}=_0x4ceae3;_0x2cff0b['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x2cff0b['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x2cff0b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2f0554,{writer:_0x270242})=>{const _0x2cdb90=_0x270242['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x270242['createContainerElement']('ol',{'class':'footnotes'},_0x270242['createSlot']())),_0x20f912=_0x1d66b3(_0x2cdb90,_0x270242,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x270242['setCustomProperty']('footnotesDefinitions',!0x0,_0x20f912),_0x20f912;}});}['_defineDefinitionConverters'](){const {editor:_0x202e51}=this,{conversion:_0x18bbe2,locale:_0x4dfa7b}=_0x202e51,_0x3676fb=_0x202e51['config']['get']('footnotes.multiBlock');_0x18bbe2['for']('upcast')['add'](_0xd2221b=>{_0xd2221b['on']('element:li',(_0x3f2ce0,_0x4110ae,_0x226d02)=>{const _0x9bacf0=_0x4110ae['viewItem'];if(!_0x9bacf0['hasClass']('footnote-definition')||!_0x9bacf0['getAttribute']('id'))return;const _0x525c1f=_0x9bacf0['parent'];if(!_0x525c1f['is']('element','ol')||!_0x525c1f['hasClass']('footnotes'))return;if(!_0x226d02['consumable']['test'](_0x9bacf0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x197891=_0x226d02['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x9bacf0['getAttribute']('id')});if(!_0x226d02['safeInsert'](_0x197891,_0x4110ae['modelCursor']))return;_0x226d02['consumable']['consume'](_0x9bacf0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2ab64b=Array['from'](_0x9bacf0['getChildren']())['find'](_0x2355b9=>_0x2355b9['is']('element')&&_0x2355b9['hasClass']('footnote-content'));for(const _0x46491a of _0x9bacf0['getChildren']())_0x46491a['is']('element')&&(_0x226d02['consumable']['consume'](_0x46491a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x226d02['consumable']['consume'](_0x46491a,{'name':!0x0,'classes':'footnote-content'}));if(_0x2ab64b){if(_0x3676fb)_0x226d02['convertChildren'](_0x2ab64b,_0x197891);else{const _0x27c3e8=_0x226d02['writer']['createElement']('footnoteInlineContent');_0x226d02['writer']['insert'](_0x27c3e8,_0x197891),_0x226d02['convertChildren'](_0x2ab64b,_0x27c3e8);}}_0x226d02['updateConversionResult'](_0x197891,_0x4110ae);});}),_0x18bbe2['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x6435fa,{writer:_0x1316f7})=>D(_0x6435fa,_0x1316f7,_0x4dfa7b,{'dataPipeline':!0x0})}),_0x18bbe2['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1b12bc,{writer:_0x4eb3cf})=>D(_0x1b12bc,_0x4eb3cf,_0x4dfa7b)});}['_defineBogusParagraphConverters'](){const {editor:_0x17338b}=this,{conversion:_0xbf0f3d}=_0x17338b;_0x17338b['config']['get']('footnotes.multiBlock')?(_0xbf0f3d['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0xbf0f3d['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x17338b['model']['document'],'change:data',()=>{!function(_0x3282db,_0x49a78a){const _0x237f81=_0x3282db['document']['differ'],_0x4fa7cc=new Set();for(const _0x1de33d of _0x237f81['getChanges']()){const _0x2f9517='attribute'==_0x1de33d['type']?_0x1de33d['range']['start']['parent']:_0x1de33d['position']['parent'];_0x2f9517['is']('element','footnoteDefinition')&&_0x4fa7cc['add'](_0x2f9517);}for(const _0x3301a2 of _0x4fa7cc['values']()){const _0x167a46=Array['from'](_0x3301a2['getChildren']())['filter'](_0x5de2a1=>p(_0x5de2a1,_0x49a78a['mapper']));for(const _0x195558 of _0x167a46)_0x49a78a['reconvertItem'](_0x195558);}}(_0x17338b['model'],_0x17338b['editing']);})):(_0xbf0f3d['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0xbf0f3d['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x13c3ea,{writer:_0x5e5329})=>{const _0x37bf1e=_0x5e5329['createContainerElement']('span');return _0x5e5329['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x37bf1e),_0x37bf1e;}}));}['_defineKeyboardHandlers'](){const {editor:_0x43332e}=this,{editing:_0x545c46,t:t}=_0x43332e,_0x40d986=_0x43332e['model']['document']['selection'];_0x43332e['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x43332e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x545c46['view']['document'],'enter',(_0x22ac27,_0x1f076f)=>{const _0x56d7a9=function(_0x56342e){const _0xbb7f21=_0x56342e['getSelectedElement']();if(_0xbb7f21?.['is']('element','footnoteRef'))return _0xbb7f21;return null;}(_0x40d986);if(_0x56d7a9){const _0x5a6cce=_0x56d7a9['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5a6cce),_0x1f076f['preventDefault'](),_0x22ac27['stop']();}},{'context':_0x1113c0});}['_defineClickHandlers'](){const {editor:_0x23008d}=this,{editing:_0x311de7}=_0x23008d;_0x23008d['editing']['view']['addObserver'](_0x3cc568),_0x23008d['editing']['view']['addObserver'](_0x33e78b);let _0x4a4684=!0x1;this['listenTo'](_0x311de7['view']['document'],'pointerdown',(_0x369921,_0x12392b)=>{const {target:_0x5e1153}=_0x12392b,_0x2d9bd2=_0x311de7['view']['document']['selection'];_0x4a4684=!(!_0x5e1153['is']('element','sup')||!_0x5e1153['hasClass']('footnote'))&&_0x2d9bd2['getSelectedElement']()===_0x5e1153;},{'priority':'high'}),this['listenTo'](_0x311de7['view']['document'],'click',(_0x4af857,_0x4c9662)=>{const {target:_0x191101}=_0x4c9662,_0x5a6ff4=_0x191101['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x5a6ff4['slice'](0x1)),_0x4af857['stop'](),_0x4c9662['preventDefault']();},{'priority':'high','context':_0x6c14=>_0x6c14['is']('element','sup')&&_0x6c14['hasClass']('footnote')&&_0x4a4684}),this['listenTo'](_0x311de7['view']['document'],'click',(_0x189b63,_0x5cc6a2)=>{const {target:_0x3a38be}=_0x5cc6a2;if(!_0x3a38be['is']('element','a'))return;let _0x472940=_0x3a38be['getAttribute']('href');if(!_0x472940?.['startsWith']('#'))return;_0x472940=_0x472940['slice'](0x1);let _0x526e2b=!0x1;(_0x472940['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x472940['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x472940))&&(_0x526e2b=!0x0),_0x526e2b&&(_0x5cc6a2['preventDefault'](),_0x189b63['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x490f19}={}){return(_0x5d78b3,{writer:_0x136b58})=>{if(!h(_0x5d78b3))return null;if(!_0x490f19)return _0x136b58['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x403a6a=_0x136b58['createContainerElement']('p');return _0x136b58['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x403a6a),_0x403a6a;};}function h(_0x591833){const {parent:_0x5f02fe}=_0x591833;if(!_0x5f02fe?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5f02fe['childCount'])return!0x1;for(const _0x2d3d72 of _0x591833['getAttributeKeys']())if(!_0x2d3d72['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2d3d72)return!0x1;return!0x0;}function p(_0x342a5e,_0x3b89b7){if(!_0x342a5e['is']('element','paragraph'))return!0x1;const _0xe4026b=_0x3b89b7['toViewElement'](_0x342a5e);return!!_0xe4026b&&h(_0x342a5e)!==_0xe4026b['is']('element','span');}function $(_0x2011c5){return _0x1113c0(_0x2011c5)&&_0x2011c5['is']('containerElement')&&!!_0x2011c5['getCustomProperty']('footnotesDefinitions');}function g(_0x35883b,_0x18b1e0){const _0x41443=_0x35883b['getAttribute']('footnoteId'),_0x3109e5=_0x35883b['getAttribute']('footnoteCounter'),_0x15b32e=_0x18b1e0['createUIElement']('a',{'id':'ref-'+_0x41443,'href':'#'+_0x41443},function(_0x430a55){const _0x33abad=this['toDomElement'](_0x430a55);return _0x33abad['textContent']=_0x3109e5,_0x33abad;}),_0x1d241e=_0x18b1e0['createContainerElement']('sup',{'class':'footnote'},[_0x15b32e]);return _0x1d241e['getFillerOffset']=()=>null,_0x1d241e;}function D(_0x57fa81,_0x504254,_0x4d4bc1,{dataPipeline:_0x4a6002}={}){const {t:t}=_0x4d4bc1,_0x38ae6b=_0x57fa81['getAttribute']('footnoteId'),_0x13d7f3=_0x504254['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x38ae6b},function(_0x1f9a8c){const _0x5adaad=this['toDomElement'](_0x1f9a8c);return _0x5adaad['innerText']='^',_0x5adaad;}),_0x23904c=_0x4a6002?_0x504254['createContainerElement']('div',{'class':'footnote-content'}):_0x8c9828(_0x504254['createEditableElement']('div',{'class':'footnote-content'}),_0x504254,{'label':t('Footnote\x20content.')});return _0x504254['insert'](_0x504254['createPositionAt'](_0x23904c,0x0),_0x504254['createSlot']()),_0x504254['createContainerElement']('li',{'class':'footnote-definition','id':_0x38ae6b},[_0x13d7f3,_0x23904c]);}class e extends _0x3b1d24{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x17c25a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x18a8ad}=this,{plugins:_0x5203f9,model:_0x3a7f7c}=_0x18a8ad,_0x2bf9c3=_0x5203f9['get'](_0x17c25a),_0x49b375=_0x5203f9['get'](c);this['listenTo'](_0x2bf9c3,'outputTransformation',(_0x46f570,_0x5c32d9)=>{const _0x45b361=function(_0x23bf88,_0x4521ee){const _0x9ccbe7=new Set();for(const {item:_0x349062}of _0x23bf88['createRangeIn'](_0x4521ee))_0x349062['is']('element','footnoteRef')&&_0x9ccbe7['add'](_0x349062['getAttribute']('footnoteId'));return Array['from'](_0x9ccbe7);}(_0x3a7f7c,_0x5c32d9['content']);if(!_0x45b361['length'])return;const _0xc6b74a=_0x49b375['getFootnotes'](),_0x59552d=_0x45b361['reduce']((_0x4bdbd8,_0x2be6d0)=>{const _0x331529=_0xc6b74a['find'](_0xae2dd0=>_0xae2dd0['id']===_0x2be6d0);if(_0x331529){const _0x28e6f8=_0x18a8ad['data']['toView'](_0x331529['definition'],{'isClipboardPipeline':!0x0}),_0x1ea02f=_0x18a8ad['data']['htmlProcessor']['toData'](_0x28e6f8);_0x4bdbd8[_0x331529['id']]=_0x1ea02f;}return _0x4bdbd8;},Object['create'](null));_0x5c32d9['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x59552d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0xe973ae}=this,{model:_0x24c51b,plugins:_0x4ec452}=_0xe973ae,{view:_0x42ddc9}=_0xe973ae['editing'],_0x4e2647=_0x4ec452['get'](_0x17c25a),_0x1482d6=_0x4ec452['get'](c);let _0x324a01=null;this['listenTo'](_0x42ddc9['document'],'clipboardInput',(_0x12f0a4,_0x57677b)=>{const _0x2af544=_0x57677b['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x324a01=_0x2af544?JSON['parse'](_0x2af544):null;}),this['listenTo'](_0x4e2647,'contentInsertion',(_0x1d7156,_0x1ceead)=>{if(!_0x324a01)return;const _0x1bfa01=_0x1ceead['sourceEditorId']===this['editor']['id'];_0x1bfa01&&'drop'===_0x1ceead['method']||_0x24c51b['change'](_0x5cb514=>{!function(_0x1e7926,_0x53bc7b){const _0x353301=[];for(const {item:_0x46d4af}of _0x1e7926['createRangeIn'](_0x53bc7b))_0x46d4af['is']('element','footnotesDefinitions')&&_0x353301['push'](_0x46d4af);for(const _0x3512cd of _0x353301)_0x1e7926['remove'](_0x3512cd);}(_0x5cb514,_0x1ceead['content']);let _0xa1b664=_0x1482d6['getFootnotesDefinitionsObjectElement']();if(!_0xa1b664){const _0x1c82ba=_0x24c51b['document']['selection']['getFirstRange']()['root'];_0xa1b664=_0x1482d6['_insertEmptyFootnotesDefinitionsContainer'](_0x5cb514,_0x1c82ba);}const _0x1861ee=function(_0x1aa087,_0x2e919f,_0x291937){const _0x2ba7e9=Object['create'](null);for(const {item:_0x284abb}of _0x1aa087['createRangeIn'](_0x2e919f))if(_0x284abb['is']('element','footnoteRef')){const _0x1e645f=_0x284abb['getAttribute']('footnoteId');if(!_0x291937(_0x1e645f))continue;_0x2ba7e9[_0x1e645f]||(_0x2ba7e9[_0x1e645f]=_0x6b1447()),_0x1aa087['setAttribute']('footnoteId',_0x2ba7e9[_0x1e645f],_0x284abb);}return _0x2ba7e9;}(_0x5cb514,_0x1ceead['content'],_0x508ef7=>!_0x1bfa01||null!==_0x1482d6['getFootnote'](_0x508ef7));for(const [_0x37ad27,_0x23b917]of Object['entries'](_0x324a01)){const _0x205659=_0x1861ee[_0x37ad27]||_0x37ad27,_0x568d52=_0x5cb514['createElement']('footnoteDefinition',{'footnoteId':_0x205659}),_0x4f9ad6=_0xe973ae['data']['htmlProcessor']['toView'](_0x23b917),_0x56b054=_0xe973ae['data']['toModel'](_0x4f9ad6,_0x568d52);_0x5cb514['append'](_0x56b054,_0x568d52),_0x5cb514['insert'](_0x568d52,_0xa1b664,'end');}_0x324a01=null;});});}}class i extends _0x3b1d24{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3269ee}=this,{componentFactory:_0x3b0d1f}=_0x3269ee['ui'];_0x3b0d1f['add']('insertFootnote',v(_0x3269ee,_0x5e1e56)),_0x3b0d1f['add']('menuBar:insertFootnote',v(_0x3269ee,_0x129572)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x250031=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53e515;for(const _0x50c2c7 in _0x250031){const _0x5c0b95=_0x50c2c7,_0x123b36=_0x250031[_0x5c0b95];if('footnotesLicenseKeyValid'==_0x123b36||'footnotesLicenseKeyInvalid'==_0x123b36||'footnotesLicenseKeyExpired'==_0x123b36||'footnotesLicenseKeyDomainLimit'==_0x123b36||'footnotesLicenseKeyNotAllowed'==_0x123b36||'footnotesLicenseKeyEvaluationLimit'==_0x123b36||'footnotesLicenseKeyTrialLimit'==_0x123b36||'footnotesLicenseKeyUsageLimit'==_0x123b36){delete _0x250031[_0x5c0b95],_0x53e515=_0x123b36,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x53e515&&_0x250031['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x53e515&&_0x250031['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x53e515&&_0x250031['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x53e515&&_0x250031['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x53e515&&_0x250031['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x53e515&&_0x250031['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x53e515&&_0x250031['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x5fd6ba,_0xe42e10){const _0x32ca4c=_0x5fd6ba['commands']['get']('insertFootnote');return _0x318b05=>{const {t:t}=_0x318b05,_0xbe739a=new _0xe42e10(_0x318b05),_0x1bf6a4=_0xbe739a instanceof _0x129572;return _0xbe739a['bind']('isEnabled')['to'](_0x32ca4c,'isEnabled'),_0xbe739a['set']({'label':t(_0x1bf6a4?'Footnote':'Insert\x20footnote'),'icon':_0x1db063,'tooltip':!0x0}),_0xbe739a['on']('execute',()=>{_0x32ca4c['execute'](),_0x5fd6ba['editing']['view']['focus']();}),_0xbe739a;};}class nt extends _0x3b1d24{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const H=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5ec066{['refresh'](){const {editor:_0x52ad1f}=this,_0x4a6afc=_0x52ad1f['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4a6afc,this['value']=_0x4a6afc?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xfb491c}){const {editor:_0xa0f304}=this,_0x13cf50=_0xa0f304['plugins']['get'](c),_0x12efa3=_0x13cf50['getFootnotesDefinitionsObjectElement']();_0x12efa3&&H['includes'](_0xfb491c)&&_0xa0f304['model']['change'](_0x41aedc=>{_0x41aedc['setAttribute']('footnotesListStyle',_0xfb491c,_0x12efa3),_0x13cf50['_updateFootnotesCounters'](_0x41aedc);});}}class b extends _0x5ec066{['refresh'](){const {editor:_0x26bed2}=this,_0x4e0ce6=_0x26bed2['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4e0ce6,this['value']=_0x4e0ce6?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2a66c0}){const {editor:_0x43f27e}=this,_0x48dde8=_0x43f27e['plugins']['get'](c),_0x49f0e6=_0x48dde8['getFootnotesDefinitionsObjectElement']();_0x49f0e6&&Number['isInteger'](_0x2a66c0)&&_0x43f27e['model']['change'](_0x2295e7=>{_0x2295e7['setAttribute']('footnotesListStart',_0x2a66c0,_0x49f0e6),_0x48dde8['_updateFootnotesCounters'](_0x2295e7);});}}class P extends _0x3b1d24{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x79d91b}=this;_0x79d91b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x79d91b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x79d91b['commands']['add']('footnotesStyle',new S(_0x79d91b)),_0x79d91b['commands']['add']('footnotesStart',new b(_0x79d91b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5a3117}=this,{schema:_0x577f1f}=_0x5a3117['model'];_0x577f1f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x121a3d}=this,{conversion:_0x22e81,model:_0x23437f}=_0x121a3d,{schema:_0x565902}=_0x23437f;_0x22e81['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x108243=>_0x108243['getStyle']('list-style-type')}}),_0x22e81['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x434620=>{const _0x210242=_0x434620['getAttribute']('start'),_0x253b27=Number['parseInt'](_0x210242,0xa);return Number['isNaN'](_0x253b27)?null:_0x253b27;}}}),_0x22e81['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0xcfa84a=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xcfa84a['getAttribute']('type')])}}),_0x22e81['for']('upcast')['add'](_0x5c69a1=>{_0x5c69a1['on']('element:ol',(_0x55eb9,_0x217379,_0x3dd3f1)=>{const _0x5740c6=_0x217379['modelRange']?.['start']['nodeAfter'];_0x5740c6?.['is']('element','footnotesDefinitions')&&(!_0x5740c6['hasAttribute']('footnotesListStyle')&&_0x565902['checkAttribute'](_0x5740c6,'footnotesListStyle')&&_0x3dd3f1['writer']['setAttribute']('footnotesListStyle','decimal',_0x5740c6),!_0x5740c6['hasAttribute']('footnotesListStart')&&_0x565902['checkAttribute'](_0x5740c6,'footnotesListStart')&&_0x3dd3f1['writer']['setAttribute']('footnotesListStart',0x1,_0x5740c6));},{'priority':'low'});}),_0x22e81['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x6a8854=>0x1===_0x6a8854?null:{'key':'start','value':String(_0x6a8854)}}),_0x22e81['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x529be2=>'decimal'===_0x529be2?null:{'key':'style','value':{'list-style-type':_0x529be2}}}),_0x22e81['for']('editingDowncast')['add'](_0xd37a1a=>{_0xd37a1a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x7606d1,_0x5f4d15,_0xaa98f6)=>{if(!_0xaa98f6['consumable']['consume'](_0x5f4d15['item'],_0x7606d1['name']))return;const _0x54d29e=C(_0x5f4d15['item'],_0xaa98f6['mapper']);null===_0x5f4d15['attributeNewValue']||void 0x0===_0x5f4d15['attributeNewValue']||0x1===_0x5f4d15['attributeNewValue']?_0xaa98f6['writer']['removeAttribute']('start',_0x54d29e):_0xaa98f6['writer']['setAttribute']('start',String(_0x5f4d15['attributeNewValue']),_0x54d29e);}),_0xd37a1a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3c9c60,_0x2c5377,_0x2a3b3c)=>{if(!_0x2a3b3c['consumable']['consume'](_0x2c5377['item'],_0x3c9c60['name']))return;const _0x2ac6ba=C(_0x2c5377['item'],_0x2a3b3c['mapper']);_0x2c5377['attributeNewValue']&&'decimal'!==_0x2c5377['attributeNewValue']?_0x2a3b3c['writer']['setStyle']('list-style-type',_0x2c5377['attributeNewValue'],_0x2ac6ba):_0x2a3b3c['writer']['removeStyle']('list-style-type',_0x2ac6ba);});});}['_definePostfixer'](){const {editor:_0x39e0d8}=this,{model:_0x49a295}=_0x39e0d8,_0x3825aa=_0x39e0d8['plugins']['get'](c),_0x5c5469=this['_getDefaultListStyle'](),_0xb41c84=this['_getDefaultStartIndex']();_0x49a295['document']['registerPostFixer'](_0x429885=>{const _0x2411f5=_0x49a295['document']['differ']['getChanges']();let _0x14b231=!0x1;for(const _0x337977 of _0x2411f5){if('insert'!==_0x337977['type']||'$text'===_0x337977['name'])continue;const _0x1a0dfb=_0x49a295['createRangeOn'](_0x337977['position']['nodeAfter']);for(const _0x126ca4 of _0x1a0dfb['getItems']())_0x126ca4['is']('element','footnotesDefinitions')&&(_0x126ca4['hasAttribute']('footnotesListStart')||(_0x429885['setAttribute']('footnotesListStart',_0xb41c84,_0x126ca4),_0x14b231=!0x0),_0x126ca4['hasAttribute']('footnotesListStyle')||(_0x429885['setAttribute']('footnotesListStyle',_0x5c5469,_0x126ca4),_0x14b231=!0x0));}return _0x14b231&&_0x3825aa['_updateFootnotesCounters'](_0x429885),_0x14b231;});}['_defineFormatter'](){const {editor:_0x1a5409}=this;_0x1a5409['plugins']['get'](c)['setFootnoteFormatter'](_0x1bdda7=>this['_formatFootnoteListValue'](_0x1bdda7));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x324d15,value:_0x3ff46e,digits:_0x2f8cdf}){const _0xda0130=_0x324d15['getAttribute']('footnotesListStyle'),_0x12909b=_0x324d15['getAttribute']('footnotesListStart'),_0x78b5b3=Math['floor'](_0x3ff46e)+(_0x12909b-0x1);switch(_0xda0130){case'decimal':default:return String(_0x78b5b3);case'decimal-leading-zero':return function(_0x470f33,_0x1dd500){return String(_0x470f33)['padStart'](_0x1dd500,'0');}(_0x78b5b3,Math['max'](0x2,_0x2f8cdf));case'lower-alpha':case'lower-latin':return M(_0x78b5b3,!0x1);case'upper-alpha':case'upper-latin':return M(_0x78b5b3,!0x0);case'lower-roman':return A(_0x78b5b3,!0x1);case'upper-roman':return A(_0x78b5b3,!0x0);}}}function C(_0x4cff85,_0x4b36ca){const _0x34640f=_0x4b36ca['toViewElement'](_0x4cff85);return Array['from'](_0x34640f['getChildren']())['find'](_0x140c75=>_0x140c75['is']('element','ol'));}function M(_0x532586,_0xa8dede){let _0x171e42='',_0xa3d31d=_0x532586;for(;_0xa3d31d>0x0;){const _0x31f04e=(_0xa3d31d-0x1)%0x1a;_0x171e42=String['fromCharCode'](0x61+_0x31f04e)+_0x171e42,_0xa3d31d=Math['floor']((_0xa3d31d-0x1)/0x1a);}return _0xa8dede?_0x171e42['toUpperCase']():_0x171e42;}const X=[{'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 A(_0x19af5a,_0x22a864){let _0x3a2a59='',_0x37b101=_0x19af5a;for(const {value:_0x3f90e4,numeral:_0x14a52b}of X)for(;_0x37b101>=_0x3f90e4;)_0x3a2a59+=_0x14a52b,_0x37b101-=_0x3f90e4;return _0x22a864?_0x3a2a59:_0x3a2a59['toLowerCase']();}class R extends _0x580895{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x478af2();['focusCycler'];constructor(_0x5cdb60,{styleButtonViews:_0x4c7c33,styleGridAriaLabel:_0x2e7118}){super(_0x5cdb60),(this['focusCycler']=new _0x41b0ac({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4c7c33,_0x2e7118),[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 _0x14e13b of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x14e13b['element']);_0xb34a6c({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x7e610f=_0xa3c101=>_0xa3c101['stopPropagation']();this['keystrokes']['set']('arrowright',_0x7e610f),this['keystrokes']['set']('arrowleft',_0x7e610f),this['keystrokes']['set']('arrowup',_0x7e610f),this['keystrokes']['set']('arrowdown',_0x7e610f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4bb8d4,_0xd4f4f){const _0x506426=new _0x580895(this['locale']);return _0x506426['children']=_0x506426['createCollection'](),_0x506426['children']['addMany'](_0x4bb8d4),_0x506426['setTemplate']({'tag':'div','attributes':{'aria-label':_0xd4f4f,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x506426['children']}),_0x506426['children']['delegate']('execute')['to'](this),_0x506426['focus']=function(){for(const _0x4cc7bc of this['children'])if(_0x4cc7bc instanceof _0x5e1e56&&_0x4cc7bc['isOn'])return void _0x4cc7bc['focus']();this['children']['first']['focus']();},_0x506426['focusTracker']=new it(),_0x506426['keystrokes']=new et(),_0x506426['render'](),_0x506426['keystrokes']['listenTo'](_0x506426['element']),this['children']['add'](_0x506426),_0x506426;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5120f2=this['_createStartIndexPropertyView'](),_0x4b0f2c=[_0x5120f2],_0x3ed56a=new _0x39e2d5(this['locale'],_0x4b0f2c);return _0x3ed56a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3ed56a['buttonView']['bind']('isEnabled')['toMany'](_0x4b0f2c,'isEnabled',(..._0x149cd4)=>_0x149cd4['some'](_0x567a8c=>_0x567a8c)),_0x3ed56a['buttonView']['on']('change:isEnabled',(_0x1d074d,_0x52a744,_0x35f3af)=>{_0x35f3af||(_0x3ed56a['isCollapsed']=!0x0);}),this['children']['add'](_0x3ed56a),[_0x5120f2,_0x3ed56a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x39c093=new tt(this['locale'],st);return _0x39c093['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x39c093['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x39c093['fieldView']['on']('input',()=>{const _0x103149=_0x39c093['fieldView']['element'],_0x5c8799=_0x103149['valueAsNumber'];Number['isNaN'](_0x5c8799)?_0x39c093['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x103149['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5c8799}):_0x39c093['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x39c093;}}class j extends _0x3b1d24{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x329863,_0x444b8c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ee719}=this,{componentFactory:_0x51d771}=_0x4ee719['ui'];_0x4ee719['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x51d771['add']('footnotesStyle',function(_0x1fd623){return _0x6ab311=>{const {t:t}=_0x6ab311,_0x48af51=_0x1fd623['commands']['get']('footnotesStyle'),_0x5a0eff=_0x3cb9af(_0x6ab311),{buttonView:_0x52b6c8}=_0x5a0eff;return _0x5a0eff['class']='ck-footnotes-styles-dropdown',_0x5a0eff['bind']('isEnabled')['to'](_0x48af51,'isEnabled'),_0x52b6c8['set']({'label':t('Footnotes\x20style'),'icon':_0x1db063,'tooltip':!0x0}),_0x5a0eff['once']('change:isOpen',()=>{const _0x13f2bc=function({editor:_0x3dda48,dropdownView:_0x2de6cb}){const {t:t}=_0x3dda48['locale'],_0x300715=t('Footnotes\x20definitions\x20styles'),_0x227257=function(_0x58c84c){const t=_0x58c84c['locale']['t'],_0x141ce4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x582374},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x438342},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x457797},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2a3e63},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x54eae9},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1d593e}];return _0x141ce4['map'](function(_0x253913){const _0x4e1a21=_0x253913['locale'];return({label:_0x1f1880,icon:_0x18120b,tooltip:_0x94fa80,style:_0x2dfc59})=>{const _0x348a4e=_0x253913['commands']['get']('footnotesStyle'),_0x3336bf=new _0x5e1e56(_0x4e1a21);return _0x3336bf['set']({'label':_0x1f1880,'icon':_0x18120b,'tooltip':_0x94fa80}),_0x3336bf['bind']('isOn')['to'](_0x348a4e,'value',_0xe244b8=>_0xe244b8===_0x2dfc59),_0x3336bf['bind']('isEnabled')['to'](_0x348a4e,'isEnabled'),_0x3336bf['on']('execute',()=>{_0x253913['execute']('footnotesStyle',{'value':_0x2dfc59}),_0x253913['editing']['view']['focus']();}),_0x3336bf;};}(_0x58c84c));}(_0x3dda48),_0x3d7592=new R(_0x3dda48['locale'],{'styleGridAriaLabel':_0x300715,'styleButtonViews':_0x227257});return _0x3d7592['delegate']('execute')['to'](_0x2de6cb),_0x3d7592['on']('footnotesListStart',(_0x378fb6,_0x45f401)=>{_0x3dda48['execute']('footnotesStart',{'value':_0x45f401['startIndex']});}),_0x3d7592;}({'editor':_0x1fd623,'dropdownView':_0x5a0eff});_0x5a0eff['panelView']['children']['add'](_0x13f2bc);}),_0x5a0eff;};}(_0x4ee719));}['afterInit'](){const {editor:_0x33b85a}=this,{t:t}=_0x33b85a['locale'],_0x67517a=_0x33b85a['plugins']['get'](_0x444b8c),{defaultPositions:_0x469132}=_0x4b9f6e;_0x67517a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x33b85a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x92041f=>{let _0x4714dd=_0x92041f['getFirstPosition']()?.['parent'];return _0x4714dd?.['is']('$text')&&(_0x4714dd=_0x4714dd['parent']),_0x4714dd?.['is']('element')?_0x4714dd['findAncestor']($):null;},'positions':[_0x469132['southArrowNorth'],_0x469132['southArrowNorthMiddleWest'],_0x469132['southArrowNorthMiddleEast'],_0x469132['southArrowNorthWest'],_0x469132['southArrowNorthEast'],_0x469132['northArrowSouth'],_0x469132['northArrowSouthMiddleWest'],_0x469132['northArrowSouthMiddleEast'],_0x469132['northArrowSouthWest'],_0x469132['northArrowSouthEast'],_0x469132['viewportStickyNorth']]});}}class rt extends _0x3b1d24{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,rt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x353bc1,Command as _0xbc1792}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x27fb12,isWidget as _0x297061,toWidgetEditable as _0xcb8e3f,WidgetToolbarRepository as _0x2011e2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3cd315,logWarning as _0x104c04,FocusTracker as it,KeystrokeHandler as et,global as ot}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3409bd,ClickObserver as _0x200c3a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4d595d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x182982,ButtonView as _0x24a7e2,View as _0x1e7bd5,ViewCollection as _0xecfddf,FocusCycler as _0x598d36,addKeyboardHandlingForGrid as _0x4091cc,CollapsibleView as _0x4aac7f,LabeledFieldView as tt,createLabeledInputNumber as st,ContextualBalloon as _0x572487,BalloonPanelView as _0x5a3874,createDropdown as _0x44916a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3ca3de,IconListStyleDecimal as _0x1c2a82,IconListStyleDecimalLeadingZero as _0x3696d2,IconListStyleLowerRoman as _0xb4ffe8,IconListStyleUpperRoman as _0xe48280,IconListStyleLowerLatin as _0x37c439,IconListStyleUpperLatin as _0xd636a4}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x58c97a,_0x528340){this['_model']=_0x58c97a,this['_elementName']=_0x528340['elementName'],this['_getElementKey']=_0x528340['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x19106c){const _0x533102=new Set(),_0x52b30d=new Map();for(const _0x514934 of _0x19106c){if('insert'===_0x514934['type']&&'$text'!==_0x514934['name']&&_0x514934['position']['nodeAfter']){const _0x46f339=this['_model']['createRangeOn'](_0x514934['position']['nodeAfter']);for(const _0x115219 of _0x46f339['getItems']()){if(!_0x115219['is']('element',this['_elementName']))continue;const _0x5a2e7f=this['_getElementKey'](_0x115219);_0x52b30d['has'](_0x5a2e7f)||_0x52b30d['set'](_0x5a2e7f,[]),_0x52b30d['get'](_0x5a2e7f)['push'](_0x115219);}}if('remove'===_0x514934['type']&&_0x514934['name']===this['_elementName']){const _0x1895da=this['_getElementKey']({'getAttribute':_0x2bea89=>_0x514934['attributes']['get'](_0x2bea89)});_0x533102['add'](_0x1895da);}}for(const [_0xfdb207,_0x54da80]of this['_trackedElements'])'$graveyard'===_0x54da80['root']['rootName']&&_0x533102['add'](_0xfdb207);for(const _0x139d70 of _0x533102)this['_trackedElements']['delete'](_0x139d70);for(const [_0x58c2c5,_0x19952b]of _0x52b30d)this['_trackedElements']['set'](_0x58c2c5,_0x19952b[_0x19952b['length']-0x1]);const _0xd783b9=new Set();for(const [_0x188ba3,_0x24365e]of _0x52b30d)_0x533102['has'](_0x188ba3)&&(_0xd783b9['add'](_0x24365e[0x0]),_0x24365e['length']>0x1?_0x52b30d['set'](_0x188ba3,_0x24365e['slice'](0x1)):_0x52b30d['delete'](_0x188ba3),_0x533102['delete'](_0x188ba3));return{'removed':Array['from'](_0x533102),'inserted':Array['from'](_0x52b30d['values']())['flat'](),'moved':Array['from'](_0xd783b9)};}}class c extends _0x353bc1{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5be4ef){super(_0x5be4ef),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0xbd5d4f=>_0xbd5d4f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3a1f90=>_0x3a1f90['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1316cf}=this,{model:_0x4d4c91,data:_0x44f1d4}=_0x1316cf;_0x4d4c91['document']['registerPostFixer'](_0xb7ccb1=>{const _0x5202e8=_0x4d4c91['document']['differ']['getChanges']();let _0x5c9038=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xb7ccb1,_0x5202e8)&&(_0x5c9038=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xb7ccb1,_0x5202e8)&&(_0x5c9038=!0x0),this['_handleFootnoteReferencesChanges'](_0xb7ccb1,_0x5202e8)&&(_0x5c9038=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xb7ccb1)&&(_0x5c9038=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xb7ccb1)&&(_0x5c9038=!0x0),this['_sortFootnoteDefinitions'](_0xb7ccb1)&&(_0x5c9038=!0x0),_0x5c9038;}),this['listenTo'](_0x4d4c91['document'],'change:data',()=>{_0x4d4c91['enqueueChange']({'isUndoable':!0x1},_0xe51f1b=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xe51f1b);});},{'priority':'low'}),this['listenTo'](_0x44f1d4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2403c1){return this['_footnotes']['find'](_0x1a1dcb=>_0x1a1dcb['id']===_0x2403c1)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x46ca7b){this['_footnoteFormatter']=_0x46ca7b;}['_updateFootnotesCounters'](_0x273abc,_0x3dab63=0x0){let _0x5e8e67=!0x1;for(let _0x145be1=_0x3dab63;_0x145be1<this['_footnotes']['length'];_0x145be1++)this['_updateFootnoteRefCounter'](_0x273abc,_0x145be1)&&(_0x5e8e67=!0x0);return _0x5e8e67;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1e1a31,_0x298806){const _0x23f26b=_0x1e1a31['createElement']('footnotesDefinitions',{});return _0x1e1a31['append'](_0x23f26b,_0x298806),this['_footnotesDefinitions']=_0x23f26b,_0x23f26b;}['_ensureFootnotesDefinitionsContainerExists'](_0x41ecc2){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x170ded=this['_footnotes'][0x0]['reference']['root'],_0x1c8068=this['_insertEmptyFootnotesDefinitionsContainer'](_0x41ecc2,_0x170ded);for(const _0x2c4317 of this['_footnotes'])_0x2c4317['definition']['parent']||_0x41ecc2['insert'](_0x2c4317['definition'],_0x1c8068,'end');this['_updateFootnotesCounters'](_0x41ecc2);}['_handleFootnotesDefinitionsObjectChanges'](_0x38041d,_0x4b3264){let _0x4cf615=!0x1;const {inserted:_0x1aec18,removed:_0x3f671e,moved:_0x19daef}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4b3264);if(_0x19daef['length']&&(this['_footnotesDefinitions']=_0x19daef[0x0]),_0x1aec18['length']){if(_0x1aec18['length']>0x1||this['_footnotesDefinitions']&&_0x1aec18['some'](_0x25493a=>_0x25493a!==this['_footnotesDefinitions'])){const _0x2a5958=_0x38041d['createElement']('footnotesDefinitions',{}),_0x2518c5=[];this['_footnotesDefinitions']&&_0x2518c5['push'](this['_footnotesDefinitions']),_0x2518c5['push'](..._0x1aec18),_0x38041d['insert'](_0x2a5958,_0x2518c5[0x0],'before');for(const _0x46db30 of _0x2518c5)_0x38041d['move'](_0x38041d['createRangeIn'](_0x46db30),_0x38041d['createPositionAt'](_0x2a5958,'end')),_0x38041d['remove'](_0x46db30);this['_footnotesDefinitions']=_0x2a5958,this['_updateFootnotesCounters'](_0x38041d),_0x4cf615=!0x0;}else this['_footnotesDefinitions']=_0x1aec18[0x0];}if(_0x3f671e['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x23d3ee of this['_footnotes'])_0x38041d['remove'](_0x23d3ee['reference']),_0x4cf615=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4cf615;}['_handleFootnoteDefinitionsChanges'](_0x3f803c,_0x292921){let _0x296abd=!0x1;const _0x56db56=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x559308,moved:_0x17ba96}=this['_footnoteDefsTracker']['getChanges'](_0x292921);for(const _0xd69e8 of[..._0x17ba96,..._0x559308]){const _0x246121=_0xd69e8['getAttribute']('footnoteId'),_0x2e1f84=this['getFootnote'](_0x246121);_0x2e1f84&&(_0x2e1f84['definition']=_0xd69e8),_(_0x3f803c,_0x56db56,_0xd69e8)&&(_0x296abd=!0x0);}return _0x296abd;}['_handleFootnoteReferencesChanges'](_0x3925ec,_0x38ce28){let _0x341f4f=!0x1;const {removed:_0xecfc33,inserted:_0x12badf,moved:_0xa421b7}=this['_footnoteRefsTracker']['getChanges'](_0x38ce28);for(const _0x465185 of _0xecfc33)this['_handleRemoveFootnoteReferenceById'](_0x3925ec,_0x465185)&&(_0x341f4f=!0x0);for(const _0x1d4384 of _0x12badf)this['_handleInsertedFootnoteReference'](_0x3925ec,_0x1d4384)&&(_0x341f4f=!0x0);for(const _0x2bb2d1 of _0xa421b7)this['_handleMovedFootnoteReference'](_0x3925ec,_0x2bb2d1)&&(_0x341f4f=!0x0);return _0x341f4f;}['_handleFootnotesDefinitionsObjectSync'](_0xc7ad8){if(!this['_footnotesDefinitions'])return!0x1;let _0x15382c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x15f344=[];for(const _0x5a51b8 of this['_footnotesDefinitions']['getChildren']()){const _0x424bc7=_0x5a51b8['getAttribute']('footnoteId');this['getFootnote'](_0x424bc7)||(_0x15f344['unshift'](_0x5a51b8),_0x15382c=!0x0);}for(const _0x598757 of _0x15f344)_0xc7ad8['remove'](_0x598757);}const _0x19f179=new Set(),_0x256fd5=[];for(const _0x485efa of this['_footnotesDefinitions']['getChildren']()){const _0x51dffa=_0x485efa['getAttribute']('footnoteId');_0x19f179['has'](_0x51dffa)?(_0x256fd5['unshift'](_0x485efa),_0x15382c=!0x0):_0x19f179['add'](_0x51dffa);}for(const _0x47ecc1 of _0x256fd5)_0xc7ad8['remove'](_0x47ecc1);return this['_footnotesDefinitions']['childCount']||(_0xc7ad8['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x15382c=!0x0),_0x15382c;}['_handleInsertedFootnoteReference'](_0x4d61f8,_0x115bd0){if(this['_footnotes']['find'](_0x53bccb=>_0x53bccb['reference']===_0x115bd0))return!0x1;let _0x52d441=!0x1;const _0x3e03d3=_0x115bd0['getAttribute']('footnoteId'),_0x5c3a40=this['getFootnote'](_0x3e03d3);_0x5c3a40&&(_0x4d61f8['remove'](_0x5c3a40['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x2dc835=>_0x2dc835['id']!==_0x3e03d3),_0x52d441=!0x0);let _0x291576=this['_footnotesDefinitions']?function(_0x99553,_0x976e74){for(const _0x267eb3 of _0x99553['getChildren']())if(_0x267eb3['getAttribute']('footnoteId')===_0x976e74)return _0x267eb3;return null;}(this['_footnotesDefinitions'],_0x3e03d3):null;_0x291576||(_0x291576=_0x4d61f8['createElement']('footnoteDefinition',{'footnoteId':_0x3e03d3}),this['_footnotesDefinitions']&&(_0x4d61f8['insert'](_0x291576,this['_footnotesDefinitions'],'end'),_0x52d441=!0x0));const _0x1243ae={'id':_0x3e03d3,'reference':_0x115bd0,'definition':_0x291576},_0x22ed0b=I(this['editor']['model'],this['_footnotes'],_0x115bd0);return this['_footnotes']['splice'](_0x22ed0b,0x0,_0x1243ae),this['_updateFootnotesCounters'](_0x4d61f8,_0x22ed0b)&&(_0x52d441=!0x0),_0x52d441;}['_handleRemoveFootnoteReferenceById'](_0x42baff,_0xa9fd36){const _0x48aed7=this['_footnotes']['findIndex'](_0x1d2dfe=>_0x1d2dfe['id']===_0xa9fd36);if(-0x1===_0x48aed7)return!0x1;let _0x5dd3c1=!0x1;const _0x162401=this['_footnotes'][_0x48aed7];return'$graveyard'!==_0x162401['definition']['root']['rootName']&&(_0x42baff['remove'](_0x162401['definition']),_0x5dd3c1=!0x0),this['_footnotes']['splice'](_0x48aed7,0x1),this['_updateFootnotesCounters'](_0x42baff,_0x48aed7)&&(_0x5dd3c1=!0x0),_0x5dd3c1;}['_handleMovedFootnoteReference'](_0xc311fc,_0x790566){const _0x62995a=_0x790566['getAttribute']('footnoteId'),_0x40afb3=this['_footnotes']['findIndex'](_0x346fb3=>_0x346fb3['id']===_0x62995a),_0xf76138=this['_footnotes'][_0x40afb3];let _0x3c9876=!0x1;_0xf76138['reference']=_0x790566,this['_footnotes']['splice'](_0x40afb3,0x1);const _0x298b77=I(this['editor']['model'],this['_footnotes'],_0x790566);return this['_footnotes']['splice'](_0x298b77,0x0,_0xf76138),this['_updateFootnotesCounters'](_0xc311fc,Math['min'](_0x40afb3,_0x298b77))&&(_0x3c9876=!0x0),_0x3c9876;}['_updateFootnoteRefCounter'](_0x9381a2,_0x29e431){if(!this['_footnotesDefinitions'])return!0x1;const _0x9bef06=this['_footnotes'][_0x29e431];let _0x3cb04a;return _0x3cb04a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x9bef06,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x29e431+0x1}):String(_0x29e431+0x1),_0x9bef06['reference']['getAttribute']('footnoteCounter')!=_0x3cb04a&&(_0x9381a2['setAttribute']('footnoteCounter',_0x3cb04a,_0x9bef06['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x19bc66){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x59ca83,_0x19c930){if(_0x59ca83['length']!==_0x19c930['length'])return!0x1;for(let _0x339270=0x0;_0x339270<_0x59ca83['length'];_0x339270++)if(_0x59ca83[_0x339270]!==_0x19c930[_0x339270])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x6a4de0=>_0x6a4de0['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0xc85163=>_0xc85163['getAttribute']('footnoteId'))))return!0x1;let _0x5ae6bc=!0x1;for(let _0x582a51=0x0;_0x582a51<this['_footnotes']['length'];_0x582a51++){const _0x293528=this['_footnotes'][_0x582a51],_0x3cdfa7=_0x19bc66['createPositionBefore'](_0x293528['definition']),_0x56a29c=_0x19bc66['createPositionAt'](this['_footnotesDefinitions'],_0x582a51);_0x3cdfa7['isEqual'](_0x56a29c)||(_0x19bc66['move'](_0x19bc66['createRangeOn'](_0x293528['definition']),_0x56a29c),_0x5ae6bc=!0x0);}return _0x5ae6bc;}['_ensureFootnotesReferencesHaveProperOrder'](_0x44e635){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2dd661}=this['editor'];let _0x266fed=!0x1;for(let _0x3964c0=0x0;_0x3964c0<this['_footnotes']['length']-0x1;_0x3964c0++){const _0x260572=this['_footnotes'][_0x3964c0],_0x471703=this['_footnotes'][_0x3964c0+0x1],_0x45869f=_0x2dd661['createPositionBefore'](_0x260572['reference']),_0xce18fb=_0x2dd661['createPositionBefore'](_0x471703['reference']);'after'===_0x45869f['compareWith'](_0xce18fb)&&(this['_handleMovedFootnoteReference'](_0x44e635,_0x260572['reference']),_0x3964c0=-0x1,_0x266fed=!0x0);}return _0x266fed;}}function _(_0x3e9f3f,_0x528ab9,_0x4e1281){if(_0x4e1281['childCount'])return!0x1;const _0x5dc82d=_0x528ab9?'paragraph':'footnoteInlineContent';return _0x3e9f3f['insert'](_0x3e9f3f['createElement'](_0x5dc82d),_0x4e1281),!0x0;}function I(_0x8d1963,_0x11e1ca,_0x23934c){if(0x0===_0x11e1ca['length'])return 0x0;const _0x3348ea=_0x8d1963['createPositionBefore'](_0x23934c);for(let _0x61ba11=0x0;_0x61ba11<_0x11e1ca['length'];_0x61ba11++){const _0x3a4fe3=_0x11e1ca[_0x61ba11],_0x5ca986=_0x8d1963['createPositionBefore'](_0x3a4fe3['reference']);if('before'===_0x3348ea['compareWith'](_0x5ca986))return _0x61ba11;}const _0x58e664=_0x23934c['root'];let _0x5535ef=-0x1;for(let _0x1d9c6b=_0x11e1ca['length']-0x1;_0x1d9c6b>=0x0;_0x1d9c6b--)if(_0x11e1ca[_0x1d9c6b]['reference']['root']===_0x58e664){_0x5535ef=_0x1d9c6b;break;}if(-0x1!==_0x5535ef)return _0x5535ef+0x1;const _0x13a27c=_0x8d1963['document']['getRootNames'](),_0x533619=_0x13a27c['indexOf'](_0x58e664['rootName']),_0x270e4d=_0x13a27c[_0x533619+0x1];if(_0x270e4d){for(let _0x7b6139=0x0;_0x7b6139<_0x11e1ca['length'];_0x7b6139++)if(_0x11e1ca[_0x7b6139]['reference']['root']['rootName']===_0x270e4d)return _0x7b6139;}return _0x11e1ca['length'];}class w extends _0xbc1792{['refresh'](){const _0x273b53=this['editor']['model']['document']['selection'],_0x3d0cfa=this['_getPositionToInsertFootnote'](_0x273b53);this['isEnabled']=!!_0x3d0cfa;}['execute'](_0x17bcdf){const {editor:_0x2508e7}=this,{model:_0x5e8cfa}=_0x2508e7,{selection:_0x9abaff}=_0x5e8cfa['document'],_0xb8c60d=this['_getPositionToInsertFootnote'](_0x9abaff);if(!_0xb8c60d)return;const _0x342c15=_0x2508e7['plugins']['get']('FootnotesEditing'),_0x31566e=_0x17bcdf?.['footnoteId']??_0x3cd315();!function(_0x333b78){return'string'==typeof _0x333b78&&_0x333b78['length']>0x0&&!/\s/['test'](_0x333b78)&&!/^\d/['test'](_0x333b78);}(_0x31566e)?_0x104c04('insert-footnote-command-executed-with-invalid-id'):(_0x5e8cfa['change'](_0x241e55=>{const _0x1d63f2=_0x241e55['createElement']('footnoteRef',{'footnoteId':_0x31566e});_0x5e8cfa['insertObject'](_0x1d63f2,_0xb8c60d,null);}),_0x342c15['_moveSelectionToFootnoteDefinition'](_0x31566e));}['_getPositionToInsertFootnote'](_0x437906){const {model:_0x39d042}=this['editor'],{schema:_0xfc5a78}=_0x39d042,_0x5543e7=_0x437906['getFirstRange']();for(const _0x43580c of _0x5543e7['getItems']())if(_0xfc5a78['isBlock'](_0x43580c)||_0xfc5a78['isObject'](_0x43580c))return null;const _0x42dda2=_0x5543e7['end'];return _0xfc5a78['checkChild'](_0x42dda2,'footnoteRef')?_0x42dda2:null;}}class r extends _0x353bc1{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x966a82}=this;_0x966a82['config']['define']('footnotes.multiBlock',!0x0),_0x966a82['commands']['add']('insertFootnote',new w(_0x966a82)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x114cd3){const _0x52f600=_0x5a5883([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]),_0x19e778=0x47a28506,_0x13787a=0x47a5f3d6^_0x19e778,_0x26ae8f=window[_0x5a5883([0x44,0x61,0x74,0x65])][_0x5a5883([0x6e,0x6f,0x77])](),_0x10523e=_0x114cd3[_0x5a5883([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fdf77=new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x273630=>{_0x10523e[_0x5a5883([0x6f,0x6e,0x63,0x65])](_0x5a5883([0x72,0x65,0x61,0x64,0x79]),_0x273630);}),_0x20a377={[_0x5a5883([0x6b,0x74,0x79])]:_0x5a5883([0x45,0x43]),[_0x5a5883([0x75,0x73,0x65])]:_0x5a5883([0x73,0x69,0x67]),[_0x5a5883([0x63,0x72,0x76])]:_0x5a5883([0x50,0x2d,0x32,0x35,0x36]),[_0x5a5883([0x78])]:_0x5a5883([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]),[_0x5a5883([0x79])]:_0x5a5883([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]),[_0x5a5883([0x61,0x6c,0x67])]:_0x5a5883([0x45,0x53,0x32,0x35,0x36])},_0x561901=_0x10523e[_0x5a5883([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a5883([0x67,0x65,0x74])](_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5542e8(){let _0x1b3231,_0x282f47=null,_0x11a801=null;try{if(_0x561901==_0x5a5883([0x47,0x50,0x4c]))return _0x5a5883([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b3231=_0x327c44(),!_0x1b3231)return _0x5a5883([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b3231[_0x5a5883([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11a801=_0x2c09a1(_0x1b3231[_0x5a5883([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b3231[_0x5a5883([0x6a,0x74,0x69])])),await _0x5284a4()?_0x83dbe5()?_0x43c961()?_0x5a5883([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a6af2()?(_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a5883([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x282f47=_0xe8497b(_0x5a5883([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a5883([0x74,0x72,0x69,0x61,0x6c])&&(_0x282f47=_0xe8497b(_0x5a5883([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x224190()):_0x5a5883([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5883([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a5883([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a5883([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43c961(){const _0x4f16a5=[_0x5a5883([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a5883([0x74,0x72,0x69,0x61,0x6c])][_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26ae8f/0x3e8:0xe10*_0x13787a;return _0x1b3231[_0x5a5883([0x65,0x78,0x70])]<_0x4f16a5;}function _0x83dbe5(){const _0x673267=_0x1b3231[_0x5a5883([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x673267&&(!!_0x673267[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5883([0x2a]))||!!_0x673267[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5883([0x46,0x4f,0x4f])));}function _0x3a6af2(){const _0x127175=_0x1b3231[_0x5a5883([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x127175||0x0==_0x127175[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4dd103}=new URL(window[_0x5a5883([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x127175[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dd103))return!0x0;const _0x83303f=_0x4dd103[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e]));return _0x127175[_0x5a5883([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13b3e2=>_0x13b3e2[_0x5a5883([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5883([0x2a])))[_0x5a5883([0x6d,0x61,0x70])](_0x4040e8=>_0x4040e8[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e])))[_0x5a5883([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25bea4=>_0x25bea4[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x83303f[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5883([0x6d,0x61,0x70])](_0x50c94=>Array(_0x83303f[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50c94[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5883([0x66,0x69,0x6c,0x6c])](_0x50c94[0x0]===_0x5a5883([0x2a])?_0x5a5883([0x2a]):'')[_0x5a5883([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50c94))[_0x5a5883([0x73,0x6f,0x6d,0x65])](_0xc5cf34=>_0x83303f[_0x5a5883([0x65,0x76,0x65,0x72,0x79])]((_0x591c7b,_0x37667b)=>_0xc5cf34[_0x37667b]===_0x591c7b||_0xc5cf34[_0x37667b]===_0x5a5883([0x2a])));}function _0x224190(){return _0x282f47&&_0x11a801?new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42ff7c,_0x1fac7a)=>{_0x282f47[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x42ff7c,_0x1fac7a),_0x11a801[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x1d7973=>{_0x1d7973!=_0x5a5883([0x56,0x61,0x6c,0x69,0x64])&&_0x42ff7c(_0x1d7973);},_0x1fac7a);}):_0x282f47||_0x11a801||_0x5a5883([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c09a1(_0x2a75fc,_0x45e086){return new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2761af=>{if(_0x280724())return _0x2761af(_0x5a5883([0x56,0x61,0x6c,0x69,0x64]));_0x5878d2(),_0x10523e[_0x5a5883([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a5883([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x220a80=!0x1;const _0x216db5=_0x3cd315();function _0x116fef(_0x32f437){return!!_0x32f437&&(typeof _0x32f437===_0x5a5883([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32f437===_0x5a5883([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32f437[_0x5a5883([0x74,0x68,0x65,0x6e])]===_0x5a5883([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32f437[_0x5a5883([0x63,0x61,0x74,0x63,0x68])]===_0x5a5883([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e88a2(_0x1cd5c1){_0x3256b9(_0x1cd5c1)[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x4d5cad=>{if(!_0x4d5cad||_0x4d5cad[_0x5a5883([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a5883([0x6f,0x6b]))return _0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xce4c29(_0x327609(_0x216db5+_0x45e086))!=_0x4d5cad[_0x5a5883([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5883([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x42a8a7=>(_0x1c7a88(),_0x42a8a7),()=>{const _0x56ecef=_0x3c4ff4();return null==_0x56ecef?(_0x1c7a88(),_0x5a5883([0x56,0x61,0x6c,0x69,0x64])):_0x5a5883(_0x26ae8f-_0x56ecef>(0x63ae0106^_0x19e778)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x2761af)[_0x5a5883([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2761af(_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e8f72=0x47946b86^_0x19e778;function _0x1c7a88(){const _0x31e95e=_0x5a5883([0x6c,0x6c,0x63,0x74,0x2d])+_0xce4c29(_0x327609(_0x2a75fc)),_0x47ad08=_0x3da4b0(_0xce4c29(window[_0x5a5883([0x4d,0x61,0x74,0x68])][_0x5a5883([0x63,0x65,0x69,0x6c])](_0x26ae8f/_0x4e8f72)));window[_0x5a5883([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5883([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31e95e,_0x47ad08);}function _0x3c4ff4(){const _0xe65237=_0x5a5883([0x6c,0x6c,0x63,0x74,0x2d])+_0xce4c29(_0x327609(_0x2a75fc)),_0x57daec=window[_0x5a5883([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5883([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe65237);return _0x57daec?window[_0x5a5883([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3da4b0(_0x57daec),0x10)*_0x4e8f72:null;}function _0x3256b9(_0x9b5805){return new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3937a7,_0x39fbd5)=>{_0x9b5805[_0x5a5883([0x74,0x68,0x65,0x6e])](_0x3937a7,_0x39fbd5),window[_0x5a5883([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39fbd5,0x47a351c6^_0x19e778);});}}_0x10523e[_0x5a5883([0x6f,0x6e])](_0x5a5883([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5695f1,_0x54e9dc)=>{if(_0x54e9dc[0x0]!=_0x2a75fc)return _0x2761af(_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54e9dc[0x1]={..._0x54e9dc[0x1],[_0x5a5883([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x216db5};},{[_0x5a5883([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5883([0x68,0x69,0x67,0x68])}),_0x10523e[_0x5a5883([0x6f,0x6e])](_0x5a5883([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57430f=>{_0x116fef(_0x57430f[_0x5a5883([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x220a80=!0x0,_0x3e88a2(_0x57430f[_0x5a5883([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a5883([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5883([0x6c,0x6f,0x77])}),_0x3fdf77[_0x5a5883([0x74,0x68,0x65,0x6e])](()=>{_0x220a80||_0x2761af(_0x5a5883([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x280724(){return _0x10523e[_0x5a5883([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5883([0x76,0x69,0x65,0x77])][_0x5a5883([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a5883([0x61,0x75,0x74,0x6f]);}function _0x5878d2(){_0x10523e[_0x5a5883([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5883([0x76,0x69,0x65,0x77])][_0x5a5883([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a5883([0x61,0x75,0x74,0x6f]);}}function _0xe8497b(_0x5b9de7){const _0x2dad9e=[new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x425573=>setTimeout(_0x425573,0x47abbbca^_0x19e778)),_0x3fdf77[_0x5a5883([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x124978=>{let _0x3da80d=0x0;_0x10523e[_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5883([0x6f,0x6e])](_0x5a5883([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4be984,_0x25d476)=>{_0x25d476[0x0][_0x5a5883([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3da80d++,_0x3da80d==(0x47a284fe^_0x19e778)&&(_0x124978(),_0x4be984[_0x5a5883([0x6f,0x66,0x66])]());});}))];return window[_0x5a5883([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a5883([0x72,0x61,0x63,0x65])](_0x2dad9e)[_0x5a5883([0x74,0x68,0x65,0x6e])](()=>_0x5b9de7);}async function _0x4d2d85(){await _0x3fdf77,_0x10523e[_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5883([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3426ae,_0x10523e[_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5883([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3426ae,_0x10523e[_0x5a5883([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a5883([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dcb2c(_0x432ff9){const _0x5bf225=_0x26b664();_0x10523e[_0x5bf225]=_0x5a5883([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x432ff9,_0x432ff9!=_0x5a5883([0x56,0x61,0x6c,0x69,0x64])&&_0x4d2d85();}function _0x26b664(){const _0x2c0456=window[_0x5a5883([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a5883([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a5883([0x6e,0x6f,0x77])]())[_0x5a5883([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a5883([0x2e]),'');let _0xc8e36b=_0x5a5883([0x75]);for(let _0x35e695=0x0;_0x35e695<_0x2c0456[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35e695+=0x2){let _0x12d1cb=window[_0x5a5883([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c0456[_0x5a5883([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35e695,_0x35e695+0x2));_0x12d1cb>=_0x52f600[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12d1cb-=_0x52f600[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc8e36b+=_0x52f600[_0x12d1cb];}return _0xc8e36b;}function _0x327c44(){const _0x5e5a97=_0x561901[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e]));if(0x3!=_0x5e5a97[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x573ebf(_0x5e5a97[0x1]);function _0x573ebf(_0x49db0d){const _0x52cb4f=_0xd0fd33(_0x49db0d);return _0x52cb4f&&_0x3b0437()?_0x52cb4f:null;function _0x3b0437(){const _0xf64504=_0x52cb4f[_0x5a5883([0x6a,0x74,0x69])],_0x1ffcd2=window[_0x5a5883([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf64504[_0x5a5883([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf64504[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24260a={..._0x52cb4f,[_0x5a5883([0x6a,0x74,0x69])]:_0xf64504[_0x5a5883([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf64504[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24260a[_0x5a5883([0x76,0x63])],_0x327609(_0x24260a)==_0x1ffcd2;}}}async function _0x5284a4(){let _0x3b8d66=!0x0;try{const _0x5378e5=_0x561901[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])](_0x5a5883([0x2e])),[_0xeadcfa,_0x7132cf,_0x1ab3a1]=_0x5378e5;return _0x4bada5(_0xeadcfa),await _0x15460a(_0xeadcfa,_0x7132cf,_0x1ab3a1),_0x3b8d66;}catch{return!0x1;}function _0x4bada5(_0x3296c2){const _0x568c5d=_0xd0fd33(_0x3296c2);_0x568c5d&&_0x568c5d[_0x5a5883([0x61,0x6c,0x67])]==_0x5a5883([0x45,0x53,0x32,0x35,0x36])||(_0x3b8d66=!0x1);}async function _0x15460a(_0x5c1d8a,_0x174c22,_0xcfd424){const _0x1a9bb5=window[_0x5a5883([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a5883([0x66,0x72,0x6f,0x6d])](_0x2c3e2c(_0xcfd424),_0x16bbb1=>_0x16bbb1[_0x5a5883([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2471cb=new window[(_0x5a5883([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a5883([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c1d8a+_0x5a5883([0x2e])+_0x174c22),_0x3c1f2b=window[_0x5a5883([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a5883([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c1f2b)return;const _0x481052=await _0x3c1f2b[_0x5a5883([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a5883([0x6a,0x77,0x6b]),_0x20a377,{[_0x5a5883([0x6e,0x61,0x6d,0x65])]:_0x5a5883([0x45,0x43,0x44,0x53,0x41]),[_0x5a5883([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a5883([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a5883([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c1f2b[_0x5a5883([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a5883([0x6e,0x61,0x6d,0x65])]:_0x5a5883([0x45,0x43,0x44,0x53,0x41]),[_0x5a5883([0x68,0x61,0x73,0x68])]:{[_0x5a5883([0x6e,0x61,0x6d,0x65])]:_0x5a5883([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x481052,_0x1a9bb5,_0x2471cb)||(_0x3b8d66=!0x1);}}function _0xd0fd33(_0x39e544){return _0x39e544[_0x5a5883([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a5883([0x65,0x79]))?JSON[_0x5a5883([0x70,0x61,0x72,0x73,0x65])](_0x2c3e2c(_0x39e544)):null;}function _0x2c3e2c(_0x5681a7){return window[_0x5a5883([0x61,0x74,0x6f,0x62])](_0x5681a7[_0x5a5883([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a5883([0x2b]))[_0x5a5883([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a5883([0x2f])));}function _0x327609(_0x427343){let _0x270bd1=0x1505;function _0x4f7379(_0x19a28c){for(let _0x138e3a=0x0;_0x138e3a<_0x19a28c[_0x5a5883([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x138e3a++){const _0x32a25e=_0x19a28c[_0x5a5883([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x138e3a);_0x270bd1=(_0x270bd1<<0x5)+_0x270bd1+_0x32a25e,_0x270bd1&=_0x270bd1;}}function _0x2ae505(_0x3e3611){Array[_0x5a5883([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e3611)?_0x3e3611[_0x5a5883([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ae505):_0x3e3611&&typeof _0x3e3611==_0x5a5883([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a5883([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e3611)[_0x5a5883([0x73,0x6f,0x72,0x74])]()[_0x5a5883([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xcc2d06,_0x182662])=>{_0x4f7379(_0xcc2d06),_0x2ae505(_0x182662);}):_0x4f7379(window[_0x5a5883([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e3611));}return _0x2ae505(_0x427343),_0x270bd1>>>0x0;}function _0xce4c29(_0x58903){return _0x58903[_0x5a5883([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a5883([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a5883([0x30]));}function _0x3da4b0(_0x2c9bf9){return _0x2c9bf9[_0x5a5883([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a5883([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a5883([0x6a,0x6f,0x69,0x6e])]('');}function _0x3426ae(){}function _0x5a5883(_0x2309f4){return _0x2309f4['map'](_0x37a33c=>String['fromCharCode'](_0x37a33c))['join']('');}_0x1dcb2c(await _0x5542e8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b16f6){const {plugins:_0x4b5209,editing:_0x1ec703,model:_0x2eedf1}=this['editor'],_0x426cbb=_0x4b5209['get'](c)['getFootnote'](_0x4b16f6);return!!_0x426cbb&&(_0x2eedf1['change'](_0x4fca3f=>{_0x4fca3f['setSelection'](_0x4fca3f['createPositionAt'](_0x426cbb['definition'],'end'));}),_0x1ec703['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1ffb56){const {plugins:_0x4707c9,editing:_0x2830c2,model:_0x312ec4}=this['editor'],_0x781934=_0x4707c9['get'](c)['getFootnote'](_0x1ffb56);return!!_0x781934&&(_0x312ec4['change'](_0x3b1e87=>{_0x3b1e87['setSelection'](_0x781934['reference'],'on');}),_0x2830c2['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4a3691}=this['editor']['model'],_0x2223ae=this['editor']['config']['get']('footnotes.multiBlock');_0x4a3691['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4a3691['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4a3691['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2223ae?_0x4a3691['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4a3691['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4a3691['addChildCheck'](_0x1b9936=>{for(const _0x1b3b8d of _0x1b9936)if('footnoteDefinition'===_0x1b3b8d['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xce83d0}=this,{conversion:_0x3ad223,editing:_0x57af02}=_0xce83d0,{t:t}=_0xce83d0['locale'];_0x3ad223['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4f25b4,{writer:_0x2553e9,consumable:_0x50f183})=>{const _0x49a2c9=_0x4f25b4['getChild'](0x0);if(!_0x49a2c9||!_0x49a2c9['is']('element','a'))return null;const _0x410692=_0x49a2c9['getAttribute']('href')||'';if(!_0x410692['startsWith']('#'))return null;const _0x4bd7ca=_0x410692['replace'](/^#/,'');if(!_0x4bd7ca)return null;_0x50f183['consume'](_0x49a2c9,{'name':!0x0,'attributes':['href']});for(const {item:_0x315095}of _0x57af02['view']['createRangeIn'](_0x49a2c9))_0x315095['is']('$textProxy')?_0x50f183['consume'](_0x315095['textNode'],{'name':!0x0}):_0x315095['is']('element')&&_0x50f183['consume'](_0x315095,{'name':!0x0});return _0x2553e9['createElement']('footnoteRef',{'footnoteId':_0x4bd7ca});}}),_0x3ad223['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xb1cbf9,{writer:_0x2b778d})=>g(_0xb1cbf9,_0x2b778d)}),_0x3ad223['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x53366f,{writer:_0x3e6dde})=>{const _0x48b26b=_0x53366f['getAttribute']('footnoteCounter');return _0x27fb12(g(_0x53366f,_0x3e6dde),_0x3e6dde,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x48b26b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5be68d}=this,{t:t}=_0x5be68d['locale'],{conversion:_0x3a6e58}=_0x5be68d;_0x3a6e58['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x3a6e58['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x3a6e58['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x278d5b,{writer:_0x3b63eb})=>{const _0x173fd8=_0x3b63eb['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x3b63eb['createContainerElement']('ol',{'class':'footnotes'},_0x3b63eb['createSlot']())),_0x1485a7=_0x27fb12(_0x173fd8,_0x3b63eb,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3b63eb['setCustomProperty']('footnotesDefinitions',!0x0,_0x1485a7),_0x1485a7;}});}['_defineDefinitionConverters'](){const {editor:_0xb005b}=this,{conversion:_0x4ff7d7,locale:_0x361af4}=_0xb005b,_0x4c185f=_0xb005b['config']['get']('footnotes.multiBlock');_0x4ff7d7['for']('upcast')['add'](_0x308693=>{_0x308693['on']('element:li',(_0x231bb3,_0x48a923,_0x2910ad)=>{const _0x3491f3=_0x48a923['viewItem'];if(!_0x3491f3['hasClass']('footnote-definition')||!_0x3491f3['getAttribute']('id'))return;const _0x693782=_0x3491f3['parent'];if(!_0x693782['is']('element','ol')||!_0x693782['hasClass']('footnotes'))return;if(!_0x2910ad['consumable']['test'](_0x3491f3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x256672=_0x2910ad['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3491f3['getAttribute']('id')});if(!_0x2910ad['safeInsert'](_0x256672,_0x48a923['modelCursor']))return;_0x2910ad['consumable']['consume'](_0x3491f3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x50e669=Array['from'](_0x3491f3['getChildren']())['find'](_0x2cb23=>_0x2cb23['is']('element')&&_0x2cb23['hasClass']('footnote-content'));for(const _0x5c7a3b of _0x3491f3['getChildren']())_0x5c7a3b['is']('element')&&(_0x2910ad['consumable']['consume'](_0x5c7a3b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2910ad['consumable']['consume'](_0x5c7a3b,{'name':!0x0,'classes':'footnote-content'}));if(_0x50e669){if(_0x4c185f)_0x2910ad['convertChildren'](_0x50e669,_0x256672);else{const _0x2d8a48=_0x2910ad['writer']['createElement']('footnoteInlineContent');_0x2910ad['writer']['insert'](_0x2d8a48,_0x256672),_0x2910ad['convertChildren'](_0x50e669,_0x2d8a48);}}_0x2910ad['updateConversionResult'](_0x256672,_0x48a923);});}),_0x4ff7d7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x38cfff,{writer:_0x52a960})=>D(_0x38cfff,_0x52a960,_0x361af4,{'dataPipeline':!0x0})}),_0x4ff7d7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1512e3,{writer:_0xd0d9ed})=>D(_0x1512e3,_0xd0d9ed,_0x361af4)});}['_defineBogusParagraphConverters'](){const {editor:_0x343ba3}=this,{conversion:_0x46c369}=_0x343ba3;_0x343ba3['config']['get']('footnotes.multiBlock')?(_0x46c369['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x46c369['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x343ba3['model']['document'],'change:data',()=>{!function(_0x198bed,_0xb11fc){const _0x41b154=_0x198bed['document']['differ'],_0x33687f=new Set();for(const _0x4fb0ce of _0x41b154['getChanges']()){const _0x1eb2d1='attribute'==_0x4fb0ce['type']?_0x4fb0ce['range']['start']['parent']:_0x4fb0ce['position']['parent'];_0x1eb2d1['is']('element','footnoteDefinition')&&_0x33687f['add'](_0x1eb2d1);}for(const _0x33d5cc of _0x33687f['values']()){const _0x55d7f1=Array['from'](_0x33d5cc['getChildren']())['filter'](_0x4ae1d7=>p(_0x4ae1d7,_0xb11fc['mapper']));for(const _0x4ff78d of _0x55d7f1)_0xb11fc['reconvertItem'](_0x4ff78d);}}(_0x343ba3['model'],_0x343ba3['editing']);})):(_0x46c369['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x46c369['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x373080,{writer:_0x2d45a9})=>{const _0x10cd97=_0x2d45a9['createContainerElement']('span');return _0x2d45a9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x10cd97),_0x10cd97;}}));}['_defineKeyboardHandlers'](){const {editor:_0x323a1c}=this,{editing:_0x1d944f,t:t}=_0x323a1c,_0x2f84dd=_0x323a1c['model']['document']['selection'];_0x323a1c['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x323a1c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x1d944f['view']['document'],'enter',(_0x248b20,_0x5dffbb)=>{const _0x1057b8=function(_0x23ec5e){const _0x58d7bf=_0x23ec5e['getSelectedElement']();if(_0x58d7bf?.['is']('element','footnoteRef'))return _0x58d7bf;return null;}(_0x2f84dd);if(_0x1057b8){const _0x24ea1b=_0x1057b8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x24ea1b),_0x5dffbb['preventDefault'](),_0x248b20['stop']();}},{'context':_0x297061});}['_defineClickHandlers'](){const {editor:_0x29e06b}=this,{editing:_0x25d668}=_0x29e06b;_0x29e06b['editing']['view']['addObserver'](_0x3409bd),_0x29e06b['editing']['view']['addObserver'](_0x200c3a);let _0xb4a3dd=!0x1;this['listenTo'](_0x25d668['view']['document'],'pointerdown',(_0x1c58f9,_0x397aea)=>{const {target:_0x31fbe9}=_0x397aea,_0x1250de=_0x25d668['view']['document']['selection'];_0xb4a3dd=!(!_0x31fbe9['is']('element','sup')||!_0x31fbe9['hasClass']('footnote'))&&_0x1250de['getSelectedElement']()===_0x31fbe9;},{'priority':'high'}),this['listenTo'](_0x25d668['view']['document'],'click',(_0x4ad871,_0x16e3f6)=>{const {target:_0x32b161}=_0x16e3f6,_0x2f2b21=_0x32b161['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2f2b21['slice'](0x1)),_0x4ad871['stop'](),_0x16e3f6['preventDefault']();},{'priority':'high','context':_0x5c1d89=>_0x5c1d89['is']('element','sup')&&_0x5c1d89['hasClass']('footnote')&&_0xb4a3dd}),this['listenTo'](_0x25d668['view']['document'],'click',(_0xc9e4c3,_0x4dfcaf)=>{const {target:_0x566fdc}=_0x4dfcaf;if(!_0x566fdc['is']('element','a'))return;let _0x568b26=_0x566fdc['getAttribute']('href');if(!_0x568b26?.['startsWith']('#'))return;_0x568b26=_0x568b26['slice'](0x1);let _0x4a14e1=!0x1;(_0x568b26['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x568b26['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x568b26))&&(_0x4a14e1=!0x0),_0x4a14e1&&(_0x4dfcaf['preventDefault'](),_0xc9e4c3['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x4cc0d5}={}){return(_0x693d07,{writer:_0x13d82a})=>{if(!h(_0x693d07))return null;if(!_0x4cc0d5)return _0x13d82a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x40136c=_0x13d82a['createContainerElement']('p');return _0x13d82a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x40136c),_0x40136c;};}function h(_0x49c9ea){const {parent:_0x4f3b99}=_0x49c9ea;if(!_0x4f3b99?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f3b99['childCount'])return!0x1;for(const _0x16ef45 of _0x49c9ea['getAttributeKeys']())if(!_0x16ef45['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x16ef45)return!0x1;return!0x0;}function p(_0x1e25dd,_0x5064af){if(!_0x1e25dd['is']('element','paragraph'))return!0x1;const _0x1676ad=_0x5064af['toViewElement'](_0x1e25dd);return!!_0x1676ad&&h(_0x1e25dd)!==_0x1676ad['is']('element','span');}function R(_0x2c8f8a){return _0x297061(_0x2c8f8a)&&_0x2c8f8a['is']('containerElement')&&!!_0x2c8f8a['getCustomProperty']('footnotesDefinitions');}function g(_0x489b74,_0x1348f4){const _0x446a58=_0x489b74['getAttribute']('footnoteId'),_0x22c2bc=_0x489b74['getAttribute']('footnoteCounter'),_0x4f699b=_0x1348f4['createUIElement']('a',{'id':'ref-'+_0x446a58,'href':'#'+_0x446a58},function(_0x2d7a0e){const _0x1eaab6=this['toDomElement'](_0x2d7a0e);return _0x1eaab6['textContent']=_0x22c2bc,_0x1eaab6;}),_0x20fb94=_0x1348f4['createContainerElement']('sup',{'class':'footnote'},[_0x4f699b]);return _0x20fb94['getFillerOffset']=()=>null,_0x20fb94;}function D(_0x587cdd,_0x166371,_0x84d8ad,{dataPipeline:_0x49c247}={}){const {t:t}=_0x84d8ad,_0x549e43=_0x587cdd['getAttribute']('footnoteId'),_0x39fd2d=_0x166371['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x549e43},function(_0x502fca){const _0x3d38d0=this['toDomElement'](_0x502fca);return _0x3d38d0['innerText']='^',_0x3d38d0;}),_0x21109c=_0x49c247?_0x166371['createContainerElement']('div',{'class':'footnote-content'}):_0xcb8e3f(_0x166371['createEditableElement']('div',{'class':'footnote-content'}),_0x166371,{'label':t('Footnote\x20content.')});return _0x166371['insert'](_0x166371['createPositionAt'](_0x21109c,0x0),_0x166371['createSlot']()),_0x166371['createContainerElement']('li',{'class':'footnote-definition','id':_0x549e43},[_0x39fd2d,_0x21109c]);}class e extends _0x353bc1{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4d595d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x193ab8}=this,{plugins:_0x5a90ea,model:_0x4d6b78}=_0x193ab8,_0xf50509=_0x5a90ea['get'](_0x4d595d),_0x2f8764=_0x5a90ea['get'](c);this['listenTo'](_0xf50509,'outputTransformation',(_0x16d4c4,_0x3e077e)=>{const _0x382b0b=function(_0x26f689,_0x442a89){const _0x26481d=new Set();for(const {item:_0x30fd30}of _0x26f689['createRangeIn'](_0x442a89))_0x30fd30['is']('element','footnoteRef')&&_0x26481d['add'](_0x30fd30['getAttribute']('footnoteId'));return Array['from'](_0x26481d);}(_0x4d6b78,_0x3e077e['content']);if(!_0x382b0b['length'])return;const _0x5218bf=_0x2f8764['getFootnotes'](),_0x393b70=_0x382b0b['reduce']((_0x1207f4,_0x14a403)=>{const _0x26332b=_0x5218bf['find'](_0x5186b7=>_0x5186b7['id']===_0x14a403);if(_0x26332b){const _0x427f87=_0x193ab8['data']['toView'](_0x26332b['definition'],{'isClipboardPipeline':!0x0}),_0x34d082=_0x193ab8['data']['htmlProcessor']['toData'](_0x427f87);_0x1207f4[_0x26332b['id']]=_0x34d082;}return _0x1207f4;},Object['create'](null));_0x3e077e['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x393b70));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x52386f}=this,{model:_0x43942e,plugins:_0x20acb7}=_0x52386f,{view:_0x3df4fc}=_0x52386f['editing'],_0x42c2ce=_0x20acb7['get'](_0x4d595d),_0x3c58cb=_0x20acb7['get'](c);let _0x2d94fd=null;this['listenTo'](_0x3df4fc['document'],'clipboardInput',(_0xa166d1,_0x85b0a5)=>{const _0xfbb927=_0x85b0a5['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2d94fd=_0xfbb927?JSON['parse'](_0xfbb927):null;}),this['listenTo'](_0x42c2ce,'contentInsertion',(_0x2bc279,_0x1b8691)=>{if(!_0x2d94fd)return;const _0x214523=_0x1b8691['sourceEditorId']===this['editor']['id'];_0x214523&&'drop'===_0x1b8691['method']||_0x43942e['change'](_0xdce5ac=>{!function(_0xcd9866,_0x19e21a){const _0x32d530=[];for(const {item:_0x144e0d}of _0xcd9866['createRangeIn'](_0x19e21a))_0x144e0d['is']('element','footnotesDefinitions')&&_0x32d530['push'](_0x144e0d);for(const _0x3aee3b of _0x32d530)_0xcd9866['remove'](_0x3aee3b);}(_0xdce5ac,_0x1b8691['content']);let _0x4edb03=_0x3c58cb['getFootnotesDefinitionsObjectElement']();if(!_0x4edb03){const _0x431cba=_0x43942e['document']['selection']['getFirstRange']()['root'];_0x4edb03=_0x3c58cb['_insertEmptyFootnotesDefinitionsContainer'](_0xdce5ac,_0x431cba);}const _0x56f6d0=function(_0x547245,_0x249566,_0xe19a3f){const _0x3e6896=Object['create'](null);for(const {item:_0x19e056}of _0x547245['createRangeIn'](_0x249566))if(_0x19e056['is']('element','footnoteRef')){const _0xcccd0b=_0x19e056['getAttribute']('footnoteId');if(!_0xe19a3f(_0xcccd0b))continue;_0x3e6896[_0xcccd0b]||(_0x3e6896[_0xcccd0b]=_0x3cd315()),_0x547245['setAttribute']('footnoteId',_0x3e6896[_0xcccd0b],_0x19e056);}return _0x3e6896;}(_0xdce5ac,_0x1b8691['content'],_0x456452=>!_0x214523||null!==_0x3c58cb['getFootnote'](_0x456452));for(const [_0x16f111,_0x1c0e47]of Object['entries'](_0x2d94fd)){const _0x4e2ca7=_0x56f6d0[_0x16f111]||_0x16f111,_0x4a54f1=_0xdce5ac['createElement']('footnoteDefinition',{'footnoteId':_0x4e2ca7}),_0x2fbcaf=_0x52386f['data']['htmlProcessor']['toView'](_0x1c0e47),_0x26c313=_0x52386f['data']['toModel'](_0x2fbcaf,_0x4a54f1);_0xdce5ac['append'](_0x26c313,_0x4a54f1),_0xdce5ac['insert'](_0x4a54f1,_0x4edb03,'end');}_0x2d94fd=null;});});}}class i extends _0x353bc1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f37fe}=this,{componentFactory:_0x1890b3}=_0x4f37fe['ui'];_0x1890b3['add']('insertFootnote',v(_0x4f37fe,_0x24a7e2)),_0x1890b3['add']('menuBar:insertFootnote',v(_0x4f37fe,_0x182982)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d2f29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46c59f;for(const _0x586b57 in _0x2d2f29){const _0x48adf9=_0x586b57,_0x2c1390=_0x2d2f29[_0x48adf9];if('footnotesLicenseKeyValid'==_0x2c1390||'footnotesLicenseKeyInvalid'==_0x2c1390||'footnotesLicenseKeyExpired'==_0x2c1390||'footnotesLicenseKeyDomainLimit'==_0x2c1390||'footnotesLicenseKeyNotAllowed'==_0x2c1390||'footnotesLicenseKeyEvaluationLimit'==_0x2c1390||'footnotesLicenseKeyTrialLimit'==_0x2c1390||'footnotesLicenseKeyUsageLimit'==_0x2c1390){delete _0x2d2f29[_0x48adf9],_0x46c59f=_0x2c1390,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x46c59f&&_0x2d2f29['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x46c59f&&_0x2d2f29['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x46c59f&&_0x2d2f29['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x46c59f&&_0x2d2f29['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x2305cc,_0x3bb9ce){const _0x101200=_0x2305cc['commands']['get']('insertFootnote');return _0x35bdb0=>{const {t:t}=_0x35bdb0,_0x4c3c25=new _0x3bb9ce(_0x35bdb0),_0x574df2=_0x4c3c25 instanceof _0x182982;return _0x4c3c25['bind']('isEnabled')['to'](_0x101200,'isEnabled'),_0x4c3c25['set']({'label':t(_0x574df2?'Footnote':'Insert\x20footnote'),'icon':_0x3ca3de,'tooltip':!0x0}),_0x4c3c25['on']('execute',()=>{_0x101200['execute'](),_0x2305cc['editing']['view']['focus']();}),_0x4c3c25;};}class nt extends _0x353bc1{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0xbc1792{['refresh'](){const {editor:_0x11d7ee}=this,_0x5ca08c=_0x11d7ee['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5ca08c,this['value']=_0x5ca08c?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x520172}){const {editor:_0x5f429c}=this,_0x2f3998=_0x5f429c['plugins']['get'](c),_0x3fcba2=_0x2f3998['getFootnotesDefinitionsObjectElement']();_0x3fcba2&&Q['includes'](_0x520172)&&_0x5f429c['model']['change'](_0x231df7=>{_0x231df7['setAttribute']('footnotesListStyle',_0x520172,_0x3fcba2),_0x2f3998['_updateFootnotesCounters'](_0x231df7);});}}class k extends _0xbc1792{['refresh'](){const {editor:_0x223e28}=this,_0x419b9b=_0x223e28['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x419b9b,this['value']=_0x419b9b?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2ec292}){const {editor:_0x238832}=this,_0x585eb1=_0x238832['plugins']['get'](c),_0x3bf84b=_0x585eb1['getFootnotesDefinitionsObjectElement']();_0x3bf84b&&Number['isInteger'](_0x2ec292)&&_0x238832['model']['change'](_0x4b301c=>{_0x4b301c['setAttribute']('footnotesListStart',_0x2ec292,_0x3bf84b),_0x585eb1['_updateFootnotesCounters'](_0x4b301c);});}}class P extends _0x353bc1{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c0e45}=this;_0x4c0e45['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4c0e45['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4c0e45['commands']['add']('footnotesStyle',new S(_0x4c0e45)),_0x4c0e45['commands']['add']('footnotesStart',new k(_0x4c0e45)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1c9983}=this,{schema:_0x55ab84}=_0x1c9983['model'];_0x55ab84['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5e9aca}=this,{conversion:_0x58f5f6,model:_0x2e6732}=_0x5e9aca,{schema:_0x9dbb58}=_0x2e6732;_0x58f5f6['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x2ac9f6=>_0x2ac9f6['getStyle']('list-style-type')}}),_0x58f5f6['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':'footnotesListStart','value':_0x1193b8=>{const _0x1b5723=_0x1193b8['getAttribute']('start'),_0x423099=Number['parseInt'](_0x1b5723,0xa);return Number['isNaN'](_0x423099)?null:_0x423099;}}}),_0x58f5f6['for']('upcast')['attributeToAttribute']({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':'footnotesListStyle','value':_0x58bec9=>({0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x58bec9['getAttribute']('type')])}}),_0x58f5f6['for']('upcast')['add'](_0x1de4b5=>{_0x1de4b5['on']('element:ol',(_0x423ad4,_0x25c3ab,_0x433c36)=>{const _0x426fb3=_0x25c3ab['modelRange']?.['start']['nodeAfter'];_0x426fb3?.['is']('element','footnotesDefinitions')&&(!_0x426fb3['hasAttribute']('footnotesListStyle')&&_0x9dbb58['checkAttribute'](_0x426fb3,'footnotesListStyle')&&_0x433c36['writer']['setAttribute']('footnotesListStyle','decimal',_0x426fb3),!_0x426fb3['hasAttribute']('footnotesListStart')&&_0x9dbb58['checkAttribute'](_0x426fb3,'footnotesListStart')&&_0x433c36['writer']['setAttribute']('footnotesListStart',0x1,_0x426fb3));},{'priority':'low'});}),_0x58f5f6['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStart'},'view':_0x4a60ba=>0x1===_0x4a60ba?null:{'key':'start','value':String(_0x4a60ba)}}),_0x58f5f6['for']('dataDowncast')['attributeToAttribute']({'model':{'name':'footnotesDefinitions','key':'footnotesListStyle'},'view':_0x56e906=>'decimal'===_0x56e906?null:{'key':'style','value':{'list-style-type':_0x56e906}}}),_0x58f5f6['for']('editingDowncast')['add'](_0x17a000=>{_0x17a000['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x18f222,_0x1dbf92,_0x503a3b)=>{if(!_0x503a3b['consumable']['consume'](_0x1dbf92['item'],_0x18f222['name']))return;const _0x487a75=b(_0x1dbf92['item'],_0x503a3b['mapper']);null===_0x1dbf92['attributeNewValue']||void 0x0===_0x1dbf92['attributeNewValue']||0x1===_0x1dbf92['attributeNewValue']?_0x503a3b['writer']['removeAttribute']('start',_0x487a75):_0x503a3b['writer']['setAttribute']('start',String(_0x1dbf92['attributeNewValue']),_0x487a75);}),_0x17a000['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x322c1d,_0x42e638,_0x43fb97)=>{if(!_0x43fb97['consumable']['consume'](_0x42e638['item'],_0x322c1d['name']))return;const _0x5c7704=b(_0x42e638['item'],_0x43fb97['mapper']);_0x42e638['attributeNewValue']&&'decimal'!==_0x42e638['attributeNewValue']?_0x43fb97['writer']['setStyle']('list-style-type',_0x42e638['attributeNewValue'],_0x5c7704):_0x43fb97['writer']['removeStyle']('list-style-type',_0x5c7704);});});}['_definePostfixer'](){const {editor:_0x3c15cb}=this,{model:_0x2d45e3}=_0x3c15cb,_0x558bd2=_0x3c15cb['plugins']['get'](c),_0x3d29ae=this['_getDefaultListStyle'](),_0xe83fc1=this['_getDefaultStartIndex']();_0x2d45e3['document']['registerPostFixer'](_0x549777=>{const _0x5acf7c=_0x2d45e3['document']['differ']['getChanges']();let _0x3401d5=!0x1;for(const _0x15426f of _0x5acf7c){if('insert'!==_0x15426f['type']||'$text'===_0x15426f['name'])continue;const _0x16932e=_0x2d45e3['createRangeOn'](_0x15426f['position']['nodeAfter']);for(const _0x2d105e of _0x16932e['getItems']())_0x2d105e['is']('element','footnotesDefinitions')&&(_0x2d105e['hasAttribute']('footnotesListStart')||(_0x549777['setAttribute']('footnotesListStart',_0xe83fc1,_0x2d105e),_0x3401d5=!0x0),_0x2d105e['hasAttribute']('footnotesListStyle')||(_0x549777['setAttribute']('footnotesListStyle',_0x3d29ae,_0x2d105e),_0x3401d5=!0x0));}return _0x3401d5&&_0x558bd2['_updateFootnotesCounters'](_0x549777),_0x3401d5;});}['_defineFormatter'](){const {editor:_0x45c386}=this;_0x45c386['plugins']['get'](c)['setFootnoteFormatter'](_0x341c6b=>this['_formatFootnoteListValue'](_0x341c6b));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x452e9,value:_0x1473ec,digits:_0x49e708}){const _0xce36fd=_0x452e9['getAttribute']('footnotesListStyle'),_0x20363f=_0x452e9['getAttribute']('footnotesListStart'),_0x1e2c98=Math['floor'](_0x1473ec)+(_0x20363f-0x1);switch(_0xce36fd){case'decimal':default:return String(_0x1e2c98);case'decimal-leading-zero':return function(_0x22cdc9,_0x48ba42){return String(_0x22cdc9)['padStart'](_0x48ba42,'0');}(_0x1e2c98,Math['max'](0x2,_0x49e708));case'lower-alpha':case'lower-latin':return x(_0x1e2c98,!0x1);case'upper-alpha':case'upper-latin':return x(_0x1e2c98,!0x0);case'lower-roman':return M(_0x1e2c98,!0x1);case'upper-roman':return M(_0x1e2c98,!0x0);}}}function b(_0xc6b85f,_0x1dc77b){const _0x373e81=_0x1dc77b['toViewElement'](_0xc6b85f);return Array['from'](_0x373e81['getChildren']())['find'](_0xdd3f28=>_0xdd3f28['is']('element','ol'));}function x(_0x49ce90,_0x429506){let _0x3b02c4='',_0x3e0605=_0x49ce90;for(;_0x3e0605>0x0;){const _0x25ed1f=(_0x3e0605-0x1)%0x1a;_0x3b02c4=String['fromCharCode'](0x61+_0x25ed1f)+_0x3b02c4,_0x3e0605=Math['floor']((_0x3e0605-0x1)/0x1a);}return _0x429506?_0x3b02c4['toUpperCase']():_0x3b02c4;}const C=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function M(_0x202451,_0x4e083f){let _0x49a3ba='',_0xb913ba=_0x202451;for(const {value:_0x4ef7b2,numeral:_0x1bd0f2}of C)for(;_0xb913ba>=_0x4ef7b2;)_0x49a3ba+=_0x1bd0f2,_0xb913ba-=_0x4ef7b2;return _0x4e083f?_0x49a3ba:_0x49a3ba['toLowerCase']();}class G extends _0x1e7bd5{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0xecfddf();['focusCycler'];constructor(_0x3d8ff3,{styleButtonViews:_0x28a61a,styleGridAriaLabel:_0x4a6b98}){super(_0x3d8ff3),(this['focusCycler']=new _0x598d36({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x28a61a,_0x4a6b98),[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 _0x58c545 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x58c545['element']);_0x4091cc({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3d0d0b=_0x5cf050=>_0x5cf050['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3d0d0b),this['keystrokes']['set']('arrowleft',_0x3d0d0b),this['keystrokes']['set']('arrowup',_0x3d0d0b),this['keystrokes']['set']('arrowdown',_0x3d0d0b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x415471,_0xda39de){const _0x343b4f=new _0x1e7bd5(this['locale']);return _0x343b4f['children']=_0x343b4f['createCollection'](),_0x343b4f['children']['addMany'](_0x415471),_0x343b4f['setTemplate']({'tag':'div','attributes':{'aria-label':_0xda39de,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x343b4f['children']}),_0x343b4f['children']['delegate']('execute')['to'](this),_0x343b4f['focus']=function(){for(const _0x3c938c of this['children'])if(_0x3c938c instanceof _0x24a7e2&&_0x3c938c['isOn'])return void _0x3c938c['focus']();this['children']['first']['focus']();},_0x343b4f['focusTracker']=new it(),_0x343b4f['keystrokes']=new et(),_0x343b4f['render'](),_0x343b4f['keystrokes']['listenTo'](_0x343b4f['element']),this['children']['add'](_0x343b4f),_0x343b4f;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x405eba=this['_createStartIndexPropertyView'](),_0x4d0593=[_0x405eba],_0x93a1d1=new _0x4aac7f(this['locale'],_0x4d0593);return _0x93a1d1['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x93a1d1['buttonView']['bind']('isEnabled')['toMany'](_0x4d0593,'isEnabled',(..._0x30cb5b)=>_0x30cb5b['some'](_0x675aa5=>_0x675aa5)),_0x93a1d1['buttonView']['on']('change:isEnabled',(_0x4ae671,_0x1b40f2,_0x1a8bcd)=>{_0x1a8bcd||(_0x93a1d1['isCollapsed']=!0x0);}),this['children']['add'](_0x93a1d1),[_0x405eba,_0x93a1d1];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4b7f5a=new tt(this['locale'],st);return _0x4b7f5a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4b7f5a['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4b7f5a['fieldView']['on']('input',()=>{const _0x4c248c=_0x4b7f5a['fieldView']['element'],_0xa6c919=_0x4c248c['valueAsNumber'];Number['isNaN'](_0xa6c919)?_0x4b7f5a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4c248c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xa6c919}):_0x4b7f5a['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x4b7f5a;}}class j extends _0x353bc1{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x572487,_0x2011e2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3538c7}=this,{componentFactory:_0x27cbd1}=_0x3538c7['ui'];_0x3538c7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x27cbd1['add']('footnotesStyle',function(_0x14f24b){return _0x1b0f4e=>{const {t:t}=_0x1b0f4e,_0x14dc22=_0x14f24b['commands']['get']('footnotesStyle'),_0x1a7658=_0x44916a(_0x1b0f4e),{buttonView:_0x11274b}=_0x1a7658;return _0x1a7658['class']='ck-footnotes-styles-dropdown',_0x1a7658['bind']('isEnabled')['to'](_0x14dc22,'isEnabled'),_0x11274b['set']({'label':t('Footnotes\x20style'),'icon':_0x3ca3de,'tooltip':!0x0}),_0x1a7658['once']('change:isOpen',()=>{const _0x34fc26=function({editor:_0x3ce753,dropdownView:_0x2350f0}){const {t:t}=_0x3ce753['locale'],_0x9801e4=t('Footnotes\x20definitions\x20styles'),_0x3b00f0=function(_0x11be5e){const t=_0x11be5e['locale']['t'],_0x49b9a2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1c2a82},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3696d2},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xb4ffe8},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xe48280},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x37c439},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xd636a4}];return _0x49b9a2['map'](function(_0x2f1423){const _0x37a2a5=_0x2f1423['locale'];return({label:_0x536f75,icon:_0x58ac33,tooltip:_0x500eb,style:_0x2f8fa5})=>{const _0x236233=_0x2f1423['commands']['get']('footnotesStyle'),_0x30bb6f=new _0x24a7e2(_0x37a2a5);return _0x30bb6f['set']({'label':_0x536f75,'icon':_0x58ac33,'tooltip':_0x500eb}),_0x30bb6f['bind']('isOn')['to'](_0x236233,'value',_0x2ddd01=>_0x2ddd01===_0x2f8fa5),_0x30bb6f['bind']('isEnabled')['to'](_0x236233,'isEnabled'),_0x30bb6f['on']('execute',()=>{_0x2f1423['execute']('footnotesStyle',{'value':_0x2f8fa5}),_0x2f1423['editing']['view']['focus']();}),_0x30bb6f;};}(_0x11be5e));}(_0x3ce753),_0x20ec4f=new G(_0x3ce753['locale'],{'styleGridAriaLabel':_0x9801e4,'styleButtonViews':_0x3b00f0});return _0x20ec4f['delegate']('execute')['to'](_0x2350f0),_0x20ec4f['on']('footnotesListStart',(_0x4d3c1c,_0x3763f8)=>{_0x3ce753['execute']('footnotesStart',{'value':_0x3763f8['startIndex']});}),_0x20ec4f;}({'editor':_0x14f24b,'dropdownView':_0x1a7658});_0x1a7658['panelView']['children']['add'](_0x34fc26);}),_0x1a7658;};}(_0x3538c7));}['afterInit'](){const {editor:_0x5e48d8}=this,{t:t}=_0x5e48d8['locale'],_0x4953f6=_0x5e48d8['plugins']['get'](_0x2011e2),{defaultPositions:_0x208b69}=_0x5a3874;_0x4953f6['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5e48d8['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xfef413=>{let _0x23074a=_0xfef413['getFirstPosition']()?.['parent'];return _0x23074a?.['is']('$text')&&(_0x23074a=_0x23074a['parent']),_0x23074a?.['is']('element')?_0x23074a['findAncestor'](R):null;},'positions':[_0x208b69['southArrowNorth'],_0x208b69['southArrowNorthMiddleWest'],_0x208b69['southArrowNorthMiddleEast'],_0x208b69['southArrowNorthWest'],_0x208b69['southArrowNorthEast'],_0x208b69['northArrowSouth'],_0x208b69['northArrowSouthMiddleWest'],_0x208b69['northArrowSouthMiddleEast'],_0x208b69['northArrowSouthWest'],_0x208b69['northArrowSouthEast'],_0x208b69['viewportStickyNorth']]});}}class rt extends _0x353bc1{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,rt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,k as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251021.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251021.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251021.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251021.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251021.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251021.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251021.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251021.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251021.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x483b(){const _0x5c8379=['1426982fyEbrV','plugins','length','insertObject','editor','getFirstRange','model','footnoteRef','FootnotesEditing','isObject','6775WazQie','refresh','change','selection','execute','43637FnVurt','53712NfqAeJ','4160307qoyNrx','isEnabled','document','1009404aSjCaY','test','string','1576ZqFAeA','1SZpEeP','insert-footnote-command-executed-with-invalid-id','6564ReQTrS','footnoteId','_getPositionToInsertFootnote','checkChild','getItems','49777MyRkoh','createElement','end','get','5868XeUZRp','160iPdfjX','isBlock','_moveSelectionToFootnoteDefinition'];_0x483b=function(){return _0x5c8379;};return _0x483b();}function _0x2375(_0x329aa2,_0x38619b){const _0x483ba9=_0x483b();return _0x2375=function(_0x23755b,_0x2b8919){_0x23755b=_0x23755b-0x1d2;let _0x25b607=_0x483ba9[_0x23755b];return _0x25b607;},_0x2375(_0x329aa2,_0x38619b);}const _0x559906=_0x2375;(function(_0x28fb61,_0x2eb5fa){const _0x15b135=_0x2375,_0x2371ca=_0x28fb61();while(!![]){try{const _0x1cbdaf=parseInt(_0x15b135(0x1f7))/0x1*(-parseInt(_0x15b135(0x1df))/0x2)+parseInt(_0x15b135(0x1f0))/0x3+-parseInt(_0x15b135(0x1f3))/0x4+parseInt(_0x15b135(0x1e9))/0x5*(parseInt(_0x15b135(0x1db))/0x6)+-parseInt(_0x15b135(0x1d7))/0x7*(-parseInt(_0x15b135(0x1f6))/0x8)+-parseInt(_0x15b135(0x1ef))/0x9*(parseInt(_0x15b135(0x1dc))/0xa)+parseInt(_0x15b135(0x1ee))/0xb*(-parseInt(_0x15b135(0x1d2))/0xc);if(_0x1cbdaf===_0x2eb5fa)break;else _0x2371ca['push'](_0x2371ca['shift']());}catch(_0x470a38){_0x2371ca['push'](_0x2371ca['shift']());}}}(_0x483b,0xd738b));import{logWarning as _0x201b51,uid as _0x59a10f}from'ckeditor5/src/utils.js';import{Command as _0x5ae832}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x5ae832{[_0x559906(0x1ea)](){const _0x4b48b1=_0x559906,_0x3b5e1a=this[_0x4b48b1(0x1e3)][_0x4b48b1(0x1e5)][_0x4b48b1(0x1f2)][_0x4b48b1(0x1ec)],_0x35102e=this[_0x4b48b1(0x1d4)](_0x3b5e1a);this[_0x4b48b1(0x1f1)]=!!_0x35102e;}[_0x559906(0x1ed)](_0x20e83e){const _0x31e2b8=_0x559906,{editor:_0x36a2e3}=this,{model:_0x6ab74e}=_0x36a2e3,{selection:_0x13b401}=_0x6ab74e[_0x31e2b8(0x1f2)],_0x4b4107=this[_0x31e2b8(0x1d4)](_0x13b401);if(!_0x4b4107)return;const _0xf47f51=_0x36a2e3[_0x31e2b8(0x1e0)][_0x31e2b8(0x1da)](_0x31e2b8(0x1e7)),_0x2ef130=_0x20e83e?.[_0x31e2b8(0x1d3)]??_0x59a10f();!function(_0x403683){const _0x9d9e61=_0x31e2b8;return _0x9d9e61(0x1f5)==typeof _0x403683&&_0x403683[_0x9d9e61(0x1e1)]>0x0&&!/\s/[_0x9d9e61(0x1f4)](_0x403683)&&!/^\d/[_0x9d9e61(0x1f4)](_0x403683);}(_0x2ef130)?_0x201b51(_0x31e2b8(0x1f8)):(_0x6ab74e[_0x31e2b8(0x1eb)](_0x1bd6ce=>{const _0x570874=_0x31e2b8,_0x19b9fe=_0x1bd6ce[_0x570874(0x1d8)](_0x570874(0x1e6),{'footnoteId':_0x2ef130});_0x6ab74e[_0x570874(0x1e2)](_0x19b9fe,_0x4b4107,null);}),_0xf47f51[_0x31e2b8(0x1de)](_0x2ef130));}[_0x559906(0x1d4)](_0x51d087){const _0x4ad36a=_0x559906,{model:_0x40fc8e}=this[_0x4ad36a(0x1e3)],{schema:_0x86e9fd}=_0x40fc8e,_0xe0d037=_0x51d087[_0x4ad36a(0x1e4)]();for(const _0x5b5572 of _0xe0d037[_0x4ad36a(0x1d6)]())if(_0x86e9fd[_0x4ad36a(0x1dd)](_0x5b5572)||_0x86e9fd[_0x4ad36a(0x1e8)](_0x5b5572))return null;const _0x2f7694=_0xe0d037[_0x4ad36a(0x1d9)];return _0x86e9fd[_0x4ad36a(0x1d5)](_0x2f7694,_0x4ad36a(0x1e6))?_0x2f7694:null;}}
|