@ckeditor/ckeditor5-footnotes 48.2.0 → 48.3.0-alpha.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/dist/augmentation.d.ts +32 -32
- package/dist/commands/insertfootnotecommand.d.ts +16 -16
- package/dist/footnotes.d.ts +28 -28
- package/dist/footnotesclipboard.d.ts +33 -33
- package/dist/footnotesconfig.d.ts +25 -25
- package/dist/footnotesediting.d.ts +40 -40
- package/dist/footnotesproperties/commands/footnotesstartcommand.d.ts +23 -23
- package/dist/footnotesproperties/commands/footnotesstylecommand.d.ts +24 -24
- package/dist/footnotesproperties/footnotespropertiesconfig.d.ts +65 -65
- package/dist/footnotesproperties/footnotespropertiesediting.d.ts +37 -37
- package/dist/footnotesproperties/footnotespropertiesformatters.d.ts +18 -24
- package/dist/footnotesproperties/footnotespropertiesui.d.ts +36 -36
- package/dist/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +11 -11
- package/dist/footnotesproperties.d.ts +27 -27
- package/dist/footnotestracker.d.ts +89 -89
- package/dist/footnotesui.d.ts +27 -27
- package/dist/index.d.ts +19 -19
- package/dist/index.js +1 -1
- package/dist/modelelementtracker.d.ts +48 -48
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x35c719,Command as _0x4aacd1}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x18dc3b,isWidget as _0x23efd1,toWidgetEditable as _0x52a99b,WidgetToolbarRepository as _0x5e0ac7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x7bfd0e,logWarning as _0x5b9186,FocusTracker as _0xc7e485,KeystrokeHandler as _0x445156,global as _0x46ee0c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x44cdf1,ClickObserver as _0x3b03d4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x10d001}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x350b51,ButtonView as _0x2dd631,View as _0x4bd860,ViewCollection as _0x533350,FocusCycler as _0x36ff63,addKeyboardHandlingForGrid as _0x20d128,CollapsibleView as _0x5a3665,LabeledFieldView as _0x3eefa9,createLabeledInputNumber as _0x402009,ContextualBalloon as _0x150afc,BalloonPanelView as _0x374789,createDropdown as _0x512fb9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1cb9fe,IconListStyleDecimal as _0x129017,IconListStyleDecimalLeadingZero as _0x5b5608,IconListStyleLowerRoman as _0x50d899,IconListStyleUpperRoman as _0x36dc66,IconListStyleLowerLatin as _0x2dcab8,IconListStyleUpperLatin as _0x225369,IconListStyleArabicIndic as _0x56f5e7}from'@ckeditor/ckeditor5-icons/dist/index.js';class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x580862,_0x1bc373){this['_model']=_0x580862,this['_elementName']=_0x1bc373['elementName'],this['_getElementKey']=_0x1bc373['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x31e902){const _0x41f6af=new Set(),_0x4978a6=new Map();for(const _0x3bb398 of _0x31e902){if('insert'===_0x3bb398['type']&&'$text'!==_0x3bb398['name']&&_0x3bb398['position']['nodeAfter']){const _0x5489b4=this['_model']['createRangeOn'](_0x3bb398['position']['nodeAfter']);for(const _0x3990a0 of _0x5489b4['getItems']()){if(!_0x3990a0['is']('element',this['_elementName']))continue;const _0x461e4f=this['_getElementKey'](_0x3990a0);_0x4978a6['has'](_0x461e4f)||_0x4978a6['set'](_0x461e4f,[]),_0x4978a6['get'](_0x461e4f)['push'](_0x3990a0);}}if('remove'===_0x3bb398['type']&&_0x3bb398['name']===this['_elementName']){const _0x38afa9=this['_getElementKey']({'getAttribute':_0x294883=>_0x3bb398['attributes']['get'](_0x294883)});_0x41f6af['add'](_0x38afa9);}}for(const [_0x46ff0a,_0x507316]of this['_trackedElements'])'$graveyard'===_0x507316['root']['rootName']&&_0x41f6af['add'](_0x46ff0a);for(const _0x15a65f of _0x41f6af)this['_trackedElements']['delete'](_0x15a65f);for(const [_0x54d12a,_0x47f479]of _0x4978a6)this['_trackedElements']['set'](_0x54d12a,_0x47f479[_0x47f479['length']-0x1]);const _0x18647d=new Set();for(const [_0x2a5c82,_0x2cb5a5]of _0x4978a6)_0x41f6af['has'](_0x2a5c82)&&(_0x18647d['add'](_0x2cb5a5[0x0]),_0x2cb5a5['length']>0x1?_0x4978a6['set'](_0x2a5c82,_0x2cb5a5['slice'](0x1)):_0x4978a6['delete'](_0x2a5c82),_0x41f6af['delete'](_0x2a5c82));return{'removed':Array['from'](_0x41f6af),'inserted':Array['from'](_0x4978a6['values']())['flat'](),'moved':Array['from'](_0x18647d)};}}class FootnotesTracker extends _0x35c719{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x134b99){super(_0x134b99),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5bfcea=>_0x5bfcea['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x494aa5=>_0x494aa5['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4a9e2f}=this,{model:_0x1c49a8,data:_0x21d000}=_0x4a9e2f;_0x1c49a8['document']['registerPostFixer'](_0x994721=>{const _0x72c3e5=_0x1c49a8['document']['differ']['getChanges']();let _0xfe0a1a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x994721,_0x72c3e5)&&(_0xfe0a1a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x994721,_0x72c3e5)&&(_0xfe0a1a=!0x0),this['_handleFootnoteReferencesChanges'](_0x994721,_0x72c3e5)&&(_0xfe0a1a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x994721)&&(_0xfe0a1a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x994721)&&(_0xfe0a1a=!0x0),this['_sortFootnoteDefinitions'](_0x994721)&&(_0xfe0a1a=!0x0),_0xfe0a1a;}),this['listenTo'](_0x1c49a8['document'],'change:data',()=>{_0x1c49a8['enqueueChange']({'isUndoable':!0x1},_0x476a23=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x476a23);});},{'priority':'low'}),this['listenTo'](_0x21d000,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x422971){return this['_footnotes']['find'](_0x564814=>_0x564814['id']===_0x422971)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x382176){this['_footnoteFormatter']=_0x382176;}['_updateFootnotesCounters'](_0x1efc60,_0x247e31=0x0){let _0x457f6b=!0x1;for(let _0x28f46c=_0x247e31;_0x28f46c<this['_footnotes']['length'];_0x28f46c++)this['_updateFootnoteRefCounter'](_0x1efc60,_0x28f46c)&&(_0x457f6b=!0x0);return _0x457f6b;}['_insertEmptyFootnotesDefinitionsContainer'](_0x41d3f0,_0x2641a3){const _0x5d921c=_0x41d3f0['createElement']('footnotesDefinitions',{});return _0x41d3f0['append'](_0x5d921c,_0x2641a3),this['_footnotesDefinitions']=_0x5d921c,_0x5d921c;}['_ensureFootnotesDefinitionsContainerExists'](_0xd6f311){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5ce9a6=this['_footnotes'][0x0]['reference']['root'],_0x149e69=this['_insertEmptyFootnotesDefinitionsContainer'](_0xd6f311,_0x5ce9a6);for(const _0x2e660f of this['_footnotes'])_0x2e660f['definition']['parent']||_0xd6f311['insert'](_0x2e660f['definition'],_0x149e69,'end');this['_updateFootnotesCounters'](_0xd6f311);}['_handleFootnotesDefinitionsObjectChanges'](_0x67e47f,_0x30e0e1){let _0x5538a0=!0x1;const {inserted:_0x1f66a7,removed:_0x4d8f04,moved:_0x39b376}=this['_footnoteDefsContainerTracker']['getChanges'](_0x30e0e1);if(_0x39b376['length']&&(this['_footnotesDefinitions']=_0x39b376[0x0]),_0x1f66a7['length']){if(_0x1f66a7['length']>0x1||this['_footnotesDefinitions']&&_0x1f66a7['some'](_0x254204=>_0x254204!==this['_footnotesDefinitions'])){const _0x73023e=_0x67e47f['createElement']('footnotesDefinitions',{}),_0x1dd391=[];this['_footnotesDefinitions']&&_0x1dd391['push'](this['_footnotesDefinitions']),_0x1dd391['push'](..._0x1f66a7),_0x67e47f['insert'](_0x73023e,_0x1dd391[0x0],'before');for(const _0x135bdf of _0x1dd391)_0x67e47f['move'](_0x67e47f['createRangeIn'](_0x135bdf),_0x67e47f['createPositionAt'](_0x73023e,'end')),_0x67e47f['remove'](_0x135bdf);this['_footnotesDefinitions']=_0x73023e,this['_updateFootnotesCounters'](_0x67e47f),_0x5538a0=!0x0;}else this['_footnotesDefinitions']=_0x1f66a7[0x0];}if(_0x4d8f04['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2877be of this['_footnotes'])_0x67e47f['remove'](_0x2877be['reference']),_0x5538a0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5538a0;}['_handleFootnoteDefinitionsChanges'](_0x4b2fd7,_0x1c5c52){let _0x26a59b=!0x1;const _0x3c97e4=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x43ef61,moved:_0x794e6c}=this['_footnoteDefsTracker']['getChanges'](_0x1c5c52);for(const _0x382af1 of[..._0x794e6c,..._0x43ef61]){const _0x51d4e3=_0x382af1['getAttribute']('footnoteId'),_0x13e09a=this['getFootnote'](_0x51d4e3);_0x13e09a&&(_0x13e09a['definition']=_0x382af1),N(_0x4b2fd7,_0x3c97e4,_0x382af1)&&(_0x26a59b=!0x0);}return _0x26a59b;}['_handleFootnoteReferencesChanges'](_0x175b83,_0x20054c){let _0x3714a8=!0x1;const {removed:_0x69f896,inserted:_0x20b58a,moved:_0x2adce7}=this['_footnoteRefsTracker']['getChanges'](_0x20054c);for(const _0x3dec34 of _0x69f896)this['_handleRemoveFootnoteReferenceById'](_0x175b83,_0x3dec34)&&(_0x3714a8=!0x0);for(const _0x45cb92 of _0x20b58a)this['_handleInsertedFootnoteReference'](_0x175b83,_0x45cb92)&&(_0x3714a8=!0x0);for(const _0x4eb57f of _0x2adce7)this['_handleMovedFootnoteReference'](_0x175b83,_0x4eb57f)&&(_0x3714a8=!0x0);return _0x3714a8;}['_handleFootnotesDefinitionsObjectSync'](_0x409f95){if(!this['_footnotesDefinitions'])return!0x1;let _0x2f19d9=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2304ec=[];for(const _0x3660e5 of this['_footnotesDefinitions']['getChildren']()){const _0x4b5213=_0x3660e5['getAttribute']('footnoteId');this['getFootnote'](_0x4b5213)||(_0x2304ec['unshift'](_0x3660e5),_0x2f19d9=!0x0);}for(const _0x5350a3 of _0x2304ec)_0x409f95['remove'](_0x5350a3);}const _0x39f475=new Set(),_0x3e7fa2=[];for(const _0x80bb21 of this['_footnotesDefinitions']['getChildren']()){const _0x48b59a=_0x80bb21['getAttribute']('footnoteId');_0x39f475['has'](_0x48b59a)?(_0x3e7fa2['unshift'](_0x80bb21),_0x2f19d9=!0x0):_0x39f475['add'](_0x48b59a);}for(const _0x416db8 of _0x3e7fa2)_0x409f95['remove'](_0x416db8);return this['_footnotesDefinitions']['childCount']||(_0x409f95['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2f19d9=!0x0),_0x2f19d9;}['_handleInsertedFootnoteReference'](_0x35f3f9,_0x433708){if(this['_footnotes']['find'](_0x4034c9=>_0x4034c9['reference']===_0x433708))return!0x1;let _0x2ac881=!0x1;const _0x3bdca0=_0x433708['getAttribute']('footnoteId'),_0x1a78ad=this['_footnotes']['findIndex'](_0x37a5f5=>_0x37a5f5['id']===_0x3bdca0);-0x1!==_0x1a78ad&&(_0x35f3f9['remove'](this['_footnotes'][_0x1a78ad]['reference']),this['_footnotes']['splice'](_0x1a78ad,0x1),_0x2ac881=!0x0);let _0x58904d=this['_footnotesDefinitions']?function(_0x4cf3a0,_0x5b3f16){for(const _0x5292c3 of _0x4cf3a0['getChildren']())if(_0x5292c3['getAttribute']('footnoteId')===_0x5b3f16)return _0x5292c3;return null;}(this['_footnotesDefinitions'],_0x3bdca0):null;_0x58904d||(_0x58904d=_0x35f3f9['createElement']('footnoteDefinition',{'footnoteId':_0x3bdca0}),this['_footnotesDefinitions']&&(_0x35f3f9['insert'](_0x58904d,this['_footnotesDefinitions'],'end'),_0x2ac881=!0x0));const _0x1c0b2e={'id':_0x3bdca0,'reference':_0x433708,'definition':_0x58904d},_0x4bbc76=R(this['editor']['model'],this['_footnotes'],_0x433708);this['_footnotes']['splice'](_0x4bbc76,0x0,_0x1c0b2e);let _0x579b9f=_0x4bbc76;return-0x1!==_0x1a78ad&&(_0x579b9f=Math['min'](_0x4bbc76,_0x1a78ad)),this['_updateFootnotesCounters'](_0x35f3f9,_0x579b9f)&&(_0x2ac881=!0x0),_0x2ac881;}['_handleRemoveFootnoteReferenceById'](_0x2f9140,_0x41184c){const _0x5da009=this['_footnotes']['findIndex'](_0x32932a=>_0x32932a['id']===_0x41184c);if(-0x1===_0x5da009)return!0x1;let _0x2b56c9=!0x1;const _0x42eeca=this['_footnotes'][_0x5da009];return'$graveyard'!==_0x42eeca['definition']['root']['rootName']&&(_0x2f9140['remove'](_0x42eeca['definition']),_0x2b56c9=!0x0),this['_footnotes']['splice'](_0x5da009,0x1),this['_updateFootnotesCounters'](_0x2f9140,_0x5da009)&&(_0x2b56c9=!0x0),_0x2b56c9;}['_handleMovedFootnoteReference'](_0x26fb62,_0x2312b9){const _0x3a1544=_0x2312b9['getAttribute']('footnoteId'),_0x693830=this['_footnotes']['findIndex'](_0x48a94d=>_0x48a94d['id']===_0x3a1544),_0x3dfc9e=this['_footnotes'][_0x693830];let _0x216bcd=!0x1;_0x3dfc9e['reference']=_0x2312b9,this['_footnotes']['splice'](_0x693830,0x1);const _0x24e528=R(this['editor']['model'],this['_footnotes'],_0x2312b9);return this['_footnotes']['splice'](_0x24e528,0x0,_0x3dfc9e),this['_updateFootnotesCounters'](_0x26fb62,Math['min'](_0x693830,_0x24e528))&&(_0x216bcd=!0x0),_0x216bcd;}['_updateFootnoteRefCounter'](_0x216a71,_0x37a16c){if(!this['_footnotesDefinitions'])return!0x1;const _0x50c689=this['_footnotes'][_0x37a16c];let _0x378745;return _0x378745=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x50c689,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x37a16c+0x1}):String(_0x37a16c+0x1),_0x50c689['reference']['getAttribute']('footnoteCounter')!=_0x378745&&(_0x216a71['setAttribute']('footnoteCounter',_0x378745,_0x50c689['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x410039){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3eaf33,_0x26a35b){if(_0x3eaf33['length']!==_0x26a35b['length'])return!0x1;for(let _0x2df39b=0x0;_0x2df39b<_0x3eaf33['length'];_0x2df39b++)if(_0x3eaf33[_0x2df39b]!==_0x26a35b[_0x2df39b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x9a9b79=>_0x9a9b79['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x232ede=>_0x232ede['getAttribute']('footnoteId'))))return!0x1;let _0x310879=!0x1;for(let _0x5979e5=0x0;_0x5979e5<this['_footnotes']['length'];_0x5979e5++){const _0x496891=this['_footnotes'][_0x5979e5],_0x3f8336=_0x410039['createPositionBefore'](_0x496891['definition']),_0x142b4c=_0x410039['createPositionAt'](this['_footnotesDefinitions'],_0x5979e5);_0x3f8336['isEqual'](_0x142b4c)||(_0x410039['move'](_0x410039['createRangeOn'](_0x496891['definition']),_0x142b4c),_0x310879=!0x0);}return _0x310879;}['_ensureFootnotesReferencesHaveProperOrder'](_0x435fb2){if(!this['_footnotes']['length'])return!0x1;const {model:_0x134d43}=this['editor'];let _0x3c3e06=!0x1;for(let _0x19dd6d=0x0;_0x19dd6d<this['_footnotes']['length']-0x1;_0x19dd6d++){const _0x5063ce=this['_footnotes'][_0x19dd6d],_0x7d1203=this['_footnotes'][_0x19dd6d+0x1],_0x166c74=_0x134d43['createPositionBefore'](_0x5063ce['reference']),_0x175121=_0x134d43['createPositionBefore'](_0x7d1203['reference']);'after'===_0x166c74['compareWith'](_0x175121)&&(this['_handleMovedFootnoteReference'](_0x435fb2,_0x5063ce['reference']),_0x19dd6d=-0x1,_0x3c3e06=!0x0);}return _0x3c3e06;}}function N(_0x439244,_0x2fb14f,_0x2a77a0){if(_0x2a77a0['childCount'])return!0x1;const _0x2407e7=_0x2fb14f?'paragraph':'footnoteInlineContent';return _0x439244['insert'](_0x439244['createElement'](_0x2407e7),_0x2a77a0),!0x0;}function R(_0x554945,_0x532151,_0x5244a2){if(0x0===_0x532151['length'])return 0x0;const _0x2efe92=_0x554945['createPositionBefore'](_0x5244a2);for(let _0x1a5908=0x0;_0x1a5908<_0x532151['length'];_0x1a5908++){const _0x179c79=_0x532151[_0x1a5908],_0x24203a=_0x554945['createPositionBefore'](_0x179c79['reference']);if('before'===_0x2efe92['compareWith'](_0x24203a))return _0x1a5908;}const _0x4cf00e=_0x5244a2['root'];let _0x1066fd=-0x1;for(let _0x21ff38=_0x532151['length']-0x1;_0x21ff38>=0x0;_0x21ff38--)if(_0x532151[_0x21ff38]['reference']['root']===_0x4cf00e){_0x1066fd=_0x21ff38;break;}if(-0x1!==_0x1066fd)return _0x1066fd+0x1;const _0x4f4334=_0x554945['document']['getRootNames'](),_0x5771f7=_0x4f4334['indexOf'](_0x4cf00e['rootName']),_0x429d0a=_0x4f4334[_0x5771f7+0x1];if(_0x429d0a){for(let _0x42b38b=0x0;_0x42b38b<_0x532151['length'];_0x42b38b++)if(_0x532151[_0x42b38b]['reference']['root']['rootName']===_0x429d0a)return _0x42b38b;}return _0x532151['length'];}class InsertFootnoteCommand extends _0x4aacd1{['refresh'](){const _0x24e765=this['editor']['model']['document']['selection'],_0x50021f=this['_getPositionToInsertFootnote'](_0x24e765);this['isEnabled']=!!_0x50021f;}['execute'](_0x19ca8a){const {editor:_0x5eb24b}=this,{model:_0x4ada43}=_0x5eb24b,{selection:_0x4e6ffd}=_0x4ada43['document'],_0xded980=this['_getPositionToInsertFootnote'](_0x4e6ffd);if(!_0xded980)return;const _0x21a19a=_0x5eb24b['plugins']['get']('FootnotesEditing'),_0x298847=_0x19ca8a?.['footnoteId']??_0x7bfd0e();!function(_0x351c8b){return'string'==typeof _0x351c8b&&_0x351c8b['length']>0x0&&!/\s/['test'](_0x351c8b)&&!/^\d/['test'](_0x351c8b);}(_0x298847)?_0x5b9186('insert-footnote-command-executed-with-invalid-id'):(_0x4ada43['change'](_0x31ae0d=>{const _0x2a9343=_0x31ae0d['createElement']('footnoteRef',{'footnoteId':_0x298847});_0x4ada43['insertObject'](_0x2a9343,_0xded980,null);}),_0x21a19a['_moveSelectionToFootnoteDefinition'](_0x298847));}['_getPositionToInsertFootnote'](_0x11d9d5){const {model:_0x2135ef}=this['editor'],{schema:_0x470013}=_0x2135ef,_0x11a917=_0x11d9d5['getFirstRange']();for(const _0x596b20 of _0x11a917['getItems']())if(_0x470013['isBlock'](_0x596b20)||_0x470013['isObject'](_0x596b20))return null;const _0x5a9e03=_0x11a917['end'];return _0x470013['checkChild'](_0x5a9e03,'footnoteRef')?_0x5a9e03:null;}}class FootnotesEditing extends _0x35c719{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x381507}=this;_0x381507['config']['define']('footnotes.multiBlock',!0x0),_0x381507['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x381507)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2e25d1){const _0x37fafc=_0xe6e471([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]),_0x4cbea6=0x47a28506,_0x4cb379=0x47a50ed6^_0x4cbea6,_0x34e362=window[_0xe6e471([0x44,0x61,0x74,0x65])][_0xe6e471([0x6e,0x6f,0x77])](),_0x4500a0=_0x2e25d1[_0xe6e471([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1feb93=new window[(_0xe6e471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2af240=>{_0x4500a0[_0xe6e471([0x6f,0x6e,0x63,0x65])](_0xe6e471([0x72,0x65,0x61,0x64,0x79]),_0x2af240);}),_0x43c9a2={[_0xe6e471([0x6b,0x74,0x79])]:_0xe6e471([0x45,0x43]),[_0xe6e471([0x75,0x73,0x65])]:_0xe6e471([0x73,0x69,0x67]),[_0xe6e471([0x63,0x72,0x76])]:_0xe6e471([0x50,0x2d,0x32,0x35,0x36]),[_0xe6e471([0x78])]:_0xe6e471([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]),[_0xe6e471([0x79])]:_0xe6e471([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]),[_0xe6e471([0x61,0x6c,0x67])]:_0xe6e471([0x45,0x53,0x32,0x35,0x36])},_0x3aa92d=_0x4500a0[_0xe6e471([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe6e471([0x67,0x65,0x74])](_0xe6e471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5fa4ed(){let _0x5674d8,_0x3ca45b=null,_0x45e409=null;try{if(_0x3aa92d==_0xe6e471([0x47,0x50,0x4c]))return _0xe6e471([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5674d8=_0x550de6(),!_0x5674d8)return _0xe6e471([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5674d8[_0xe6e471([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45e409=_0x4e10db(_0x5674d8[_0xe6e471([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5674d8[_0xe6e471([0x6a,0x74,0x69])])),await _0x5db0f4()?_0x59ec63()?_0x251301()?_0xe6e471([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2470e6()?(_0x5674d8[_0xe6e471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe6e471([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ca45b=_0xf6fcfb(_0xe6e471([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cbc87()):_0xe6e471([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe6e471([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe6e471([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe6e471([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x251301(){const _0x10dd07=[_0xe6e471([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe6e471([0x74,0x72,0x69,0x61,0x6c])][_0xe6e471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5674d8[_0xe6e471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34e362/0x3e8:0xe10*_0x4cb379;return _0x5674d8[_0xe6e471([0x65,0x78,0x70])]<_0x10dd07;}function _0x59ec63(){const _0x4292cf=_0x5674d8[_0xe6e471([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4292cf&&(!!_0x4292cf[_0xe6e471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe6e471([0x2a]))||!!_0x4292cf[_0xe6e471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe6e471([0x46,0x4f,0x4f])));}function _0x2470e6(){const _0x14c30c=_0x5674d8[_0xe6e471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14c30c||0x0==_0x14c30c[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x300145}=new URL(window[_0xe6e471([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14c30c[_0xe6e471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x300145))return!0x0;const _0x475a6c=_0x300145[_0xe6e471([0x73,0x70,0x6c,0x69,0x74])](_0xe6e471([0x2e]));return _0x14c30c[_0xe6e471([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a6072=>_0x2a6072[_0xe6e471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe6e471([0x2a])))[_0xe6e471([0x6d,0x61,0x70])](_0x2beba5=>_0x2beba5[_0xe6e471([0x73,0x70,0x6c,0x69,0x74])](_0xe6e471([0x2e])))[_0xe6e471([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58f8d6=>_0x58f8d6[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x475a6c[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe6e471([0x6d,0x61,0x70])](_0x1e8cb1=>Array(_0x475a6c[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e8cb1[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe6e471([0x66,0x69,0x6c,0x6c])](_0x1e8cb1[0x0]===_0xe6e471([0x2a])?_0xe6e471([0x2a]):'')[_0xe6e471([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e8cb1))[_0xe6e471([0x73,0x6f,0x6d,0x65])](_0x420d52=>_0x475a6c[_0xe6e471([0x65,0x76,0x65,0x72,0x79])]((_0x5ecff6,_0x468e85)=>_0x420d52[_0x468e85]===_0x5ecff6||_0x420d52[_0x468e85]===_0xe6e471([0x2a])));}function _0x2cbc87(){return _0x3ca45b&&_0x45e409?new window[(_0xe6e471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59085b,_0x12386b)=>{_0x3ca45b[_0xe6e471([0x74,0x68,0x65,0x6e])](_0x59085b,_0x12386b),_0x45e409[_0xe6e471([0x74,0x68,0x65,0x6e])](_0x452c21=>{_0x452c21!=_0xe6e471([0x56,0x61,0x6c,0x69,0x64])&&_0x59085b(_0x452c21);},_0x12386b);}):_0x3ca45b||_0x45e409||_0xe6e471([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e10db(_0x4fcf30,_0xd2cb71){return new window[(_0xe6e471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49dc38=>{if(_0x5dd5bf())return _0x49dc38(_0xe6e471([0x56,0x61,0x6c,0x69,0x64]));_0x5123b5(),_0x4500a0[_0xe6e471([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe6e471([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22b124=!0x1;const _0x31865f=_0x7bfd0e();function _0x4616bf(_0x97031a){return!!_0x97031a&&(typeof _0x97031a===_0xe6e471([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x97031a===_0xe6e471([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x97031a[_0xe6e471([0x74,0x68,0x65,0x6e])]===_0xe6e471([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x97031a[_0xe6e471([0x63,0x61,0x74,0x63,0x68])]===_0xe6e471([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d233c(_0x408d89){_0x31ff02(_0x408d89)[_0xe6e471([0x74,0x68,0x65,0x6e])](_0xa85f0a=>{if(!_0xa85f0a||_0xa85f0a[_0xe6e471([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe6e471([0x6f,0x6b]))return _0xe6e471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10047a(_0x4afaaf(_0x31865f+_0xd2cb71))!=_0xa85f0a[_0xe6e471([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe6e471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe6e471([0x56,0x61,0x6c,0x69,0x64]);})[_0xe6e471([0x74,0x68,0x65,0x6e])](_0x233657=>(_0x57d4fa(),_0x233657),()=>{const _0x46b291=_0x5f24db();return null==_0x46b291?(_0x57d4fa(),_0xe6e471([0x56,0x61,0x6c,0x69,0x64])):_0xe6e471(_0x34e362-_0x46b291>(0x63ae0106^_0x4cbea6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe6e471([0x74,0x68,0x65,0x6e])](_0x49dc38)[_0xe6e471([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49dc38(_0xe6e471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46cc9d=0x47946b86^_0x4cbea6;function _0x57d4fa(){const _0x35b59f=_0xe6e471([0x6c,0x6c,0x63,0x74,0x2d])+_0x10047a(_0x4afaaf(_0x4fcf30)),_0x45125d=_0x420110(_0x10047a(window[_0xe6e471([0x4d,0x61,0x74,0x68])][_0xe6e471([0x63,0x65,0x69,0x6c])](_0x34e362/_0x46cc9d)));window[_0xe6e471([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe6e471([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35b59f,_0x45125d);}function _0x5f24db(){const _0x4795c1=_0xe6e471([0x6c,0x6c,0x63,0x74,0x2d])+_0x10047a(_0x4afaaf(_0x4fcf30)),_0xb7475=window[_0xe6e471([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe6e471([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4795c1);return _0xb7475?window[_0xe6e471([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x420110(_0xb7475),0x10)*_0x46cc9d:null;}function _0x31ff02(_0x77cc57){return new window[(_0xe6e471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50cbd8,_0x4cf322)=>{_0x77cc57[_0xe6e471([0x74,0x68,0x65,0x6e])](_0x50cbd8,_0x4cf322),window[_0xe6e471([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cf322,0x47a351c6^_0x4cbea6);});}}_0x4500a0[_0xe6e471([0x6f,0x6e])](_0xe6e471([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x75c440,_0x543fb2)=>{if(_0x543fb2[0x0]!=_0x4fcf30)return _0x49dc38(_0xe6e471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x543fb2[0x1]={..._0x543fb2[0x1],[_0xe6e471([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31865f};},{[_0xe6e471([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe6e471([0x68,0x69,0x67,0x68])}),_0x4500a0[_0xe6e471([0x6f,0x6e])](_0xe6e471([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32969a=>{_0x4616bf(_0x32969a[_0xe6e471([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22b124=!0x0,_0x4d233c(_0x32969a[_0xe6e471([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe6e471([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe6e471([0x6c,0x6f,0x77])}),_0x1feb93[_0xe6e471([0x74,0x68,0x65,0x6e])](()=>{_0x22b124||_0x49dc38(_0xe6e471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5dd5bf(){return _0x4500a0[_0xe6e471([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe6e471([0x76,0x69,0x65,0x77])][_0xe6e471([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe6e471([0x61,0x75,0x74,0x6f]);}function _0x5123b5(){_0x4500a0[_0xe6e471([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe6e471([0x76,0x69,0x65,0x77])][_0xe6e471([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe6e471([0x61,0x75,0x74,0x6f]);}}function _0xf6fcfb(_0x347f95){const _0x2e458d=[new window[(_0xe6e471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ae66f=>setTimeout(_0x2ae66f,0x47abbbca^_0x4cbea6)),_0x1feb93[_0xe6e471([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe6e471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f0ad7=>{let _0x4c85a5=0x0;_0x4500a0[_0xe6e471([0x6d,0x6f,0x64,0x65,0x6c])][_0xe6e471([0x6f,0x6e])](_0xe6e471([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36c2a1,_0x4f23cd)=>{_0x4f23cd[0x0][_0xe6e471([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c85a5++,_0x4c85a5==(0x47a280ee^_0x4cbea6)&&(_0x6f0ad7(),_0x36c2a1[_0xe6e471([0x6f,0x66,0x66])]());});}))];return window[_0xe6e471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe6e471([0x72,0x61,0x63,0x65])](_0x2e458d)[_0xe6e471([0x74,0x68,0x65,0x6e])](()=>_0x347f95);}async function _0x2a7b67(){await _0x1feb93,_0x4500a0[_0xe6e471([0x6d,0x6f,0x64,0x65,0x6c])][_0xe6e471([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xab1173,_0x4500a0[_0xe6e471([0x6d,0x6f,0x64,0x65,0x6c])][_0xe6e471([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xab1173,_0x4500a0[_0xe6e471([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe6e471([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x380095(_0x3e0900){const _0x19d680=_0x6b9b51();_0x4500a0[_0x19d680]=_0xe6e471([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e0900,_0x3e0900!=_0xe6e471([0x56,0x61,0x6c,0x69,0x64])&&_0x2a7b67();}function _0x6b9b51(){const _0x56cdf5=window[_0xe6e471([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe6e471([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe6e471([0x6e,0x6f,0x77])]())[_0xe6e471([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe6e471([0x2e]),'');let _0x115415=_0xe6e471([0x75]);for(let _0x2a835f=0x0;_0x2a835f<_0x56cdf5[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a835f+=0x2){let _0x5cf47e=window[_0xe6e471([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cdf5[_0xe6e471([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a835f,_0x2a835f+0x2));_0x5cf47e>=_0x37fafc[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cf47e-=_0x37fafc[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x115415+=_0x37fafc[_0x5cf47e];}return _0x115415;}function _0x550de6(){const _0x4f6c8c=_0x3aa92d[_0xe6e471([0x73,0x70,0x6c,0x69,0x74])](_0xe6e471([0x2e]));if(0x3!=_0x4f6c8c[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4535ed(_0x4f6c8c[0x1]);function _0x4535ed(_0x5c1b7b){const _0x35fa34=_0x21523c(_0x5c1b7b);return _0x35fa34&&_0x42856e()?_0x35fa34:null;function _0x42856e(){const _0x4a844c=_0x35fa34[_0xe6e471([0x6a,0x74,0x69])],_0x3b7a67=window[_0xe6e471([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a844c[_0xe6e471([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a844c[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e35a2={..._0x35fa34,[_0xe6e471([0x6a,0x74,0x69])]:_0x4a844c[_0xe6e471([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a844c[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e35a2[_0xe6e471([0x76,0x63])],_0x4afaaf(_0x2e35a2)==_0x3b7a67;}}}async function _0x5db0f4(){let _0x5117b0=!0x0;try{const _0x55f3dd=_0x3aa92d[_0xe6e471([0x73,0x70,0x6c,0x69,0x74])](_0xe6e471([0x2e])),[_0x36d7f3,_0x4b1a5b,_0x240f9f]=_0x55f3dd;return _0x3889a1(_0x36d7f3),await _0xcfe782(_0x36d7f3,_0x4b1a5b,_0x240f9f),_0x5117b0;}catch{return!0x1;}function _0x3889a1(_0x1ef9cd){const _0x1a4011=_0x21523c(_0x1ef9cd);_0x1a4011&&_0x1a4011[_0xe6e471([0x61,0x6c,0x67])]==_0xe6e471([0x45,0x53,0x32,0x35,0x36])||(_0x5117b0=!0x1);}async function _0xcfe782(_0x435532,_0x4c6bf5,_0x47855f){const _0x39fefd=window[_0xe6e471([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe6e471([0x66,0x72,0x6f,0x6d])](_0x52e115(_0x47855f),_0x4f5f65=>_0x4f5f65[_0xe6e471([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xed1846=new window[(_0xe6e471([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe6e471([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x435532+_0xe6e471([0x2e])+_0x4c6bf5),_0x103ff4=window[_0xe6e471([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe6e471([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x103ff4)return;const _0x2f8baa=await _0x103ff4[_0xe6e471([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe6e471([0x6a,0x77,0x6b]),_0x43c9a2,{[_0xe6e471([0x6e,0x61,0x6d,0x65])]:_0xe6e471([0x45,0x43,0x44,0x53,0x41]),[_0xe6e471([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe6e471([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe6e471([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x103ff4[_0xe6e471([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe6e471([0x6e,0x61,0x6d,0x65])]:_0xe6e471([0x45,0x43,0x44,0x53,0x41]),[_0xe6e471([0x68,0x61,0x73,0x68])]:{[_0xe6e471([0x6e,0x61,0x6d,0x65])]:_0xe6e471([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f8baa,_0x39fefd,_0xed1846)||(_0x5117b0=!0x1);}}function _0x21523c(_0x4333e9){return _0x4333e9[_0xe6e471([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe6e471([0x65,0x79]))?JSON[_0xe6e471([0x70,0x61,0x72,0x73,0x65])](_0x52e115(_0x4333e9)):null;}function _0x52e115(_0x18febf){return window[_0xe6e471([0x61,0x74,0x6f,0x62])](_0x18febf[_0xe6e471([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe6e471([0x2b]))[_0xe6e471([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe6e471([0x2f])));}function _0x4afaaf(_0x259967){let _0x51e2df=0x1505;function _0x54f548(_0x5e8484){for(let _0x49f469=0x0;_0x49f469<_0x5e8484[_0xe6e471([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49f469++){const _0x205a80=_0x5e8484[_0xe6e471([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49f469);_0x51e2df=(_0x51e2df<<0x5)+_0x51e2df+_0x205a80,_0x51e2df&=_0x51e2df;}}function _0x377471(_0x5b188b){Array[_0xe6e471([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b188b)?_0x5b188b[_0xe6e471([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x377471):_0x5b188b&&typeof _0x5b188b==_0xe6e471([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe6e471([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b188b)[_0xe6e471([0x73,0x6f,0x72,0x74])]()[_0xe6e471([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3683f9,_0x3c9d82])=>{_0x54f548(_0x3683f9),_0x377471(_0x3c9d82);}):_0x54f548(window[_0xe6e471([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b188b));}return _0x377471(_0x259967),_0x51e2df>>>0x0;}function _0x10047a(_0xeb51e7){return _0xeb51e7[_0xe6e471([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe6e471([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe6e471([0x30]));}function _0x420110(_0x2b1844){return _0x2b1844[_0xe6e471([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe6e471([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe6e471([0x6a,0x6f,0x69,0x6e])]('');}function _0xab1173(){}function _0xe6e471(_0xf40b62){return _0xf40b62['map'](_0x5b96cd=>String['fromCharCode'](_0x5b96cd))['join']('');}_0x380095(await _0x5fa4ed());}(this);}['_moveSelectionToFootnoteDefinition'](_0x54c011){const {plugins:_0x4806a5,editing:_0x5f2c9b,model:_0xf123e5}=this['editor'],_0x4361be=_0x4806a5['get'](FootnotesTracker)['getFootnote'](_0x54c011);return!!_0x4361be&&(_0xf123e5['change'](_0x1a7891=>{_0x1a7891['setSelection'](_0x1a7891['createPositionAt'](_0x4361be['definition'],'end'));}),_0x5f2c9b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x199e11){const {plugins:_0x48c87f,editing:_0x15a529,model:_0x4ea39a}=this['editor'],_0x4ee222=_0x48c87f['get'](FootnotesTracker)['getFootnote'](_0x199e11);return!!_0x4ee222&&(_0x4ea39a['change'](_0x585708=>{_0x585708['setSelection'](_0x4ee222['reference'],'on');}),_0x15a529['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5ac872}=this['editor']['model'],_0x36f5e0=this['editor']['config']['get']('footnotes.multiBlock');_0x5ac872['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5ac872['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5ac872['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x36f5e0?_0x5ac872['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5ac872['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5ac872['addChildCheck'](_0xd580e7=>{for(const _0x1eb33e of _0xd580e7)if('footnoteDefinition'===_0x1eb33e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1474b0}=this,{conversion:_0x73e498,editing:_0x2f8176}=_0x1474b0,{t:t}=_0x1474b0['locale'];_0x73e498['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x377a0c,{writer:_0x4f64ab,consumable:_0x5d47e7})=>{const _0x5a28f3=_0x377a0c['getChild'](0x0);if(!_0x5a28f3||!_0x5a28f3['is']('element','a'))return null;const _0x4cf106=_0x5a28f3['getAttribute']('href')||'';if(!_0x4cf106['startsWith']('#'))return null;const _0xdcd9d1=_0x4cf106['replace'](/^#/,'');if(!_0xdcd9d1)return null;_0x5d47e7['consume'](_0x5a28f3,{'name':!0x0,'attributes':['href']});for(const {item:_0x5648a1}of _0x2f8176['view']['createRangeIn'](_0x5a28f3))_0x5648a1['is']('$textProxy')?_0x5d47e7['consume'](_0x5648a1['textNode'],{'name':!0x0}):_0x5648a1['is']('element')&&_0x5d47e7['consume'](_0x5648a1,{'name':!0x0});return _0x4f64ab['createElement']('footnoteRef',{'footnoteId':_0xdcd9d1});}}),_0x73e498['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3288e6,{writer:_0xe94363})=>U(_0x3288e6,_0xe94363)}),_0x73e498['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x33d0d8,{writer:_0x579b19})=>{const _0x16c745=_0x33d0d8['getAttribute']('footnoteCounter');return _0x18dc3b(U(_0x33d0d8,_0x579b19),_0x579b19,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x16c745)});}});}['_defineDefinitionsConverters'](){const {editor:_0x22ea66}=this,{t:t}=_0x22ea66['locale'],{conversion:_0x44f8e9}=_0x22ea66;_0x44f8e9['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x44f8e9['for']('upcast')['add'](_0x311341=>{_0x311341['on']('element:ol',(_0x658b54,_0x5552b7,_0x202e03)=>{const _0xb62866=_0x5552b7['viewItem'];if(!_0xb62866['hasClass']('footnotes-list')||!_0x5552b7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x202e03['consumable']['consume'](_0xb62866,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x563690,modelCursor:_0x254ac8}=_0x202e03['convertChildren'](_0x5552b7['viewItem'],_0x5552b7['modelCursor']);_0x5552b7['modelRange']=_0x563690,_0x5552b7['modelCursor']=_0x254ac8;}),_0x311341['on']('element:hr',(_0x9b3aa2,_0x4e2be8,_0x423817)=>{const _0x4dd68b=_0x4e2be8['viewItem'];_0x4dd68b['hasClass']('footnotes-divider')&&_0x4e2be8['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x423817['consumable']['consume'](_0x4dd68b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x44f8e9['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x143c81,{writer:_0x1c202a})=>$(_0x1c202a)}),_0x44f8e9['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5bd43c,{writer:_0x362e26})=>{const _0x58e5ba=$(_0x362e26,{'data-footnotes-list-label':t('Footnotes')}),_0x7b93f2=_0x18dc3b(_0x58e5ba,_0x362e26,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x362e26['setCustomProperty']('footnotesDefinitions',!0x0,_0x7b93f2),_0x7b93f2;}});}['_defineDefinitionConverters'](){const {editor:_0x53787d}=this,{conversion:_0x52343e,locale:_0x294c49}=_0x53787d,_0x17a75c=_0x53787d['config']['get']('footnotes.multiBlock');_0x52343e['for']('upcast')['add'](_0x2019f1=>{_0x2019f1['on']('element:li',(_0x50961e,_0x1690f6,_0x10493c)=>{const _0x1e14ed=_0x1690f6['viewItem'];if(!_0x1e14ed['hasClass']('footnote-definition')||!_0x1e14ed['getAttribute']('id'))return;const _0x23a970=_0x1e14ed['parent'];if(!_0x23a970['is']('element','ol')||!_0x23a970['hasClass']('footnotes-list'))return;if(!_0x10493c['consumable']['test'](_0x1e14ed,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4bcabc=_0x10493c['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1e14ed['getAttribute']('id')});if(!_0x10493c['safeInsert'](_0x4bcabc,_0x1690f6['modelCursor']))return;_0x10493c['consumable']['consume'](_0x1e14ed,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x329057=Array['from'](_0x1e14ed['getChildren']())['find'](_0x322a69=>_0x322a69['is']('element')&&_0x322a69['hasClass']('footnote-content'));for(const _0x57a745 of _0x1e14ed['getChildren']())_0x57a745['is']('element')&&(_0x10493c['consumable']['consume'](_0x57a745,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x10493c['consumable']['consume'](_0x57a745,{'name':!0x0,'classes':'footnote-content'}));if(_0x329057){if(_0x17a75c)_0x10493c['convertChildren'](_0x329057,_0x4bcabc);else{const _0x4f6827=_0x10493c['writer']['createElement']('footnoteInlineContent');_0x10493c['writer']['insert'](_0x4f6827,_0x4bcabc),_0x10493c['convertChildren'](_0x329057,_0x4f6827);}}_0x10493c['updateConversionResult'](_0x4bcabc,_0x1690f6);});}),_0x52343e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x21c8f6,{writer:_0x5b132c})=>B(_0x21c8f6,_0x5b132c,_0x294c49,{'dataPipeline':!0x0})}),_0x52343e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4eeb14,{writer:_0x3d3f32})=>B(_0x4eeb14,_0x3d3f32,_0x294c49)});}['_defineBogusParagraphConverters'](){const {editor:_0x5876a8}=this,{conversion:_0x1cdcce}=_0x5876a8;_0x5876a8['config']['get']('footnotes.multiBlock')?(_0x1cdcce['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':K(),'converterPriority':'high'}),_0x1cdcce['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':K({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5876a8['model']['document'],'change:data',()=>{!function(_0x2a1ec5,_0x27d348){const _0x257c57=_0x2a1ec5['document']['differ'],_0x260865=new Set();for(const _0x348455 of _0x257c57['getChanges']()){const _0x3ebc0b='attribute'==_0x348455['type']?_0x348455['range']['start']['parent']:_0x348455['position']['parent'];_0x3ebc0b['is']('element','footnoteDefinition')&&_0x260865['add'](_0x3ebc0b);}for(const _0x15d554 of _0x260865['values']()){const _0x5db342=Array['from'](_0x15d554['getChildren']())['filter'](_0x14f326=>V(_0x14f326,_0x27d348['mapper']));for(const _0x1247b3 of _0x5db342)_0x27d348['reconvertItem'](_0x1247b3);}}(_0x5876a8['model'],_0x5876a8['editing']);})):(_0x1cdcce['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':K()}),_0x1cdcce['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x51e47d,{writer:_0xd6cec6})=>{const _0x12cf7e=_0xd6cec6['createContainerElement']('span');return _0xd6cec6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x12cf7e),_0x12cf7e;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5d4aee}=this,{editing:_0x1bc522,t:t}=_0x5d4aee,_0x1c845b=_0x5d4aee['model']['document']['selection'];_0x5d4aee['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5d4aee['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1bc522['view']['document'],'enter',(_0x43c28b,_0x2f6268)=>{const _0x68eadc=function(_0x7d5365){const _0x4f90fe=_0x7d5365['getSelectedElement']();if(_0x4f90fe?.['is']('element','footnoteRef'))return _0x4f90fe;return null;}(_0x1c845b);if(_0x68eadc){const _0x1ef601=_0x68eadc['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1ef601),_0x2f6268['preventDefault'](),_0x43c28b['stop']();}},{'context':_0x23efd1});}['_defineClickHandlers'](){const {editor:_0x162e09}=this,{editing:_0x23e2dc}=_0x162e09;_0x162e09['editing']['view']['addObserver'](_0x44cdf1),_0x162e09['editing']['view']['addObserver'](_0x3b03d4);let _0xf5a380=!0x1;this['listenTo'](_0x23e2dc['view']['document'],'pointerdown',(_0x5402fd,_0x5ee75e)=>{const {target:_0x295244}=_0x5ee75e,_0x4ced77=_0x23e2dc['view']['document']['selection'];_0xf5a380=!!(_0x295244?.['is']('element','a')&&_0x295244['parent']?.['is']('element','sup')&&_0x295244['parent']['hasClass']('footnote'))&&_0x4ced77['getSelectedElement']()===_0x295244['parent'];},{'priority':'high'}),this['listenTo'](_0x23e2dc['view']['document'],'click',(_0x4428f4,_0x542ecf)=>{const {target:_0x586cc3}=_0x542ecf;if(!_0x586cc3?.['is']('element','a'))return;if(_0x586cc3['parent']?.['is']('element','sup')&&_0x586cc3['parent']['hasClass']('footnote')&&!_0xf5a380)return void _0x542ecf['preventDefault']();let _0x1873e7=_0x586cc3['getAttribute']('href');if(!_0x1873e7?.['startsWith']('#'))return;_0x1873e7=_0x1873e7['slice'](0x1);let _0x524098=!0x1;(_0x1873e7['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1873e7['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1873e7))&&(_0x524098=!0x0),_0x524098&&(_0x542ecf['preventDefault'](),_0x4428f4['stop']());},{'priority':'high','context':'$capture'});}}function K({dataPipeline:_0x26357e}={}){return(_0x1c2aeb,{writer:_0x9477f7})=>{if(!j(_0x1c2aeb))return null;if(!_0x26357e)return _0x9477f7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x162f97=_0x9477f7['createContainerElement']('p');return _0x9477f7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x162f97),_0x162f97;};}function j(_0x1d3d49){const {parent:_0x51d1b3}=_0x1d3d49;if(!_0x51d1b3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x51d1b3['childCount'])return!0x1;for(const _0x2146db of _0x1d3d49['getAttributeKeys']())if(!_0x2146db['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2146db)return!0x1;return!0x0;}function V(_0x480215,_0x12dbfb){if(!_0x480215['is']('element','paragraph'))return!0x1;const _0x2c884a=_0x12dbfb['toViewElement'](_0x480215);return!!_0x2c884a&&j(_0x480215)!==_0x2c884a['is']('element','span');}function M(_0x5fbeb7){return _0x23efd1(_0x5fbeb7)&&_0x5fbeb7['is']('containerElement')&&!!_0x5fbeb7['getCustomProperty']('footnotesDefinitions');}function $(_0x7488c7,_0x5550da={}){const _0x1448e2=_0x7488c7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x18d573=_0x7488c7['createContainerElement']('ol',{'class':'footnotes-list'},_0x7488c7['createSlot']());return _0x7488c7['createContainerElement']('div',{'class':'footnotes',..._0x5550da},[_0x1448e2,_0x18d573]);}function U(_0x44a435,_0x50d3ca){const _0x49aaae=_0x44a435['getAttribute']('footnoteId'),_0x5edd15=_0x44a435['getAttribute']('footnoteCounter'),_0x2bfb8c=_0x50d3ca['createUIElement']('a',{'href':'#'+_0x49aaae},function(_0x74ab3a){const _0x39dc26=this['toDomElement'](_0x74ab3a);return _0x39dc26['textContent']=_0x5edd15,_0x39dc26;}),_0x1a4a59=_0x50d3ca['createContainerElement']('sup',{'id':'ref-'+_0x49aaae,'class':'footnote'},[_0x2bfb8c]);return _0x1a4a59['getFillerOffset']=()=>null,_0x1a4a59;}function B(_0x3bf1eb,_0x31ee62,_0x9cda8d,{dataPipeline:_0x40a22b}={}){const {t:t}=_0x9cda8d,_0x2ef544=_0x3bf1eb['getAttribute']('footnoteId'),_0x353fa7=_0x31ee62['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2ef544},function(_0x58cf9e){const _0x58dbaa=this['toDomElement'](_0x58cf9e);return _0x58dbaa['innerText']='^',_0x58dbaa;}),_0x3a1c34=_0x40a22b?_0x31ee62['createContainerElement']('div',{'class':'footnote-content'}):_0x52a99b(_0x31ee62['createEditableElement']('div',{'class':'footnote-content'}),_0x31ee62,{'label':t('Footnote\x20content.')});return _0x31ee62['insert'](_0x31ee62['createPositionAt'](_0x3a1c34,0x0),_0x31ee62['createSlot']()),_0x31ee62['createContainerElement']('li',{'class':'footnote-definition','id':_0x2ef544},[_0x353fa7,_0x3a1c34]);}class FootnotesClipboard extends _0x35c719{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,_0x10d001];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3f2be3}=this,{plugins:_0x48b438,model:_0x2d5264}=_0x3f2be3,_0x3c7976=_0x48b438['get'](_0x10d001),_0x2906b6=_0x48b438['get'](FootnotesTracker);this['listenTo'](_0x3c7976,'outputTransformation',(_0x46bece,_0x2a93aa)=>{const _0x325bb7=H(_0x2d5264['createRangeIn'](_0x2a93aa['content']));if(!_0x325bb7['length'])return;const _0x29c691=_0x2906b6['getFootnotes'](),_0x177149=_0x325bb7['reduce']((_0x14901d,_0x1bf9b3)=>{const _0x17c528=_0x29c691['find'](_0x582933=>_0x582933['id']===_0x1bf9b3);if(_0x17c528){const _0x19f03b=_0x3f2be3['data']['toView'](_0x17c528['definition'],{'isClipboardPipeline':!0x0}),_0xe9311b=_0x3f2be3['data']['htmlProcessor']['toData'](_0x19f03b);_0x14901d[_0x17c528['id']]=_0xe9311b;}return _0x14901d;},Object['create'](null));_0x2a93aa['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x177149));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3cffe6}=this,{model:_0x58f2b5,plugins:_0x27bdae}=_0x3cffe6,{view:_0x24ec57}=_0x3cffe6['editing'],_0x490e00=_0x27bdae['get'](_0x10d001),_0x374506=_0x27bdae['get'](FootnotesTracker),_0x1bc7a6=_0x3cffe6['config']['get']('footnotes.multiBlock');let _0xca575c=null;this['listenTo'](_0x24ec57['document'],'clipboardInput',(_0x142537,_0x5d876e)=>{const _0x3153e2=_0x5d876e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xca575c=_0x3153e2?JSON['parse'](_0x3153e2):null;}),this['listenTo'](_0x490e00,'contentInsertion',(_0x414153,_0x5e0215)=>{const _0x4ad450=_0x5e0215['sourceEditorId']===this['editor']['id'];_0x4ad450&&'drop'===_0x5e0215['method']||_0x58f2b5['change'](_0x54baa4=>{let _0x6f619a=_0x374506['getFootnotesDefinitionsObjectElement']();const _0x401db7=!!_0x6f619a&&Array['from'](_0x58f2b5['document']['selection']['getSelectedBlocks']())['includes'](_0x6f619a);if(!_0xca575c&&function(_0x45a662){for(const {item:_0x402677}of _0x45a662)if(_0x402677['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x58f2b5['createRangeIn'](_0x5e0215['content']))&&(_0xca575c=function(_0x3983cc,_0x4be9d0){const _0x110410=q(_0x3983cc,_0x4be9d0);if(!_0x110410)return null;const _0x5ac3e6=Object['create'](null);for(const _0x558c22 of _0x110410['getChildren']())_0x558c22['is']('element','footnoteDefinition')&&_0x558c22['hasAttribute']('footnoteId')&&(_0x5ac3e6[_0x558c22['getAttribute']('footnoteId')]=_0x3983cc['cloneElement'](_0x558c22,!0x0));return Object['keys'](_0x5ac3e6)['length']?_0x5ac3e6:null;}(_0x54baa4,_0x5e0215['content'])),(_0x6f619a&&!_0x401db7||!_0x6f619a&&!_0xca575c)&&function(_0x2cbc1d,_0x18300e){const _0x1f6103=[];for(const {item:_0x3f6633}of _0x2cbc1d['createRangeIn'](_0x18300e))_0x3f6633['is']('element','footnotesDefinitions')&&_0x1f6103['push'](_0x3f6633);for(const _0x7c4606 of _0x1f6103)_0x2cbc1d['remove'](_0x7c4606);}(_0x54baa4,_0x5e0215['content']),!_0xca575c)return;const {selection:_0x54d8f6}=_0x58f2b5['document'],_0x5de552=_0x54d8f6['getFirstRange']()['root'];_0x6f619a&&!_0x401db7||(_0x6f619a=q(_0x54baa4,_0x5e0215['content']),_0x6f619a||=_0x374506['_insertEmptyFootnotesDefinitionsContainer'](_0x54baa4,_0x5de552));const _0x422a52=Array['from'](_0x54d8f6['getRanges']())['flatMap'](H),_0x10738b=function(_0x30655c,_0x4b24a7,_0x3ea66b){const _0x24f6c5=Object['create'](null);for(const {item:_0x2d22a5}of _0x30655c['createRangeIn'](_0x4b24a7))if(_0x2d22a5['is']('element','footnoteRef')){const _0x2a2ed0=_0x2d22a5['getAttribute']('footnoteId');if(!_0x3ea66b(_0x2a2ed0))continue;_0x24f6c5[_0x2a2ed0]||(_0x24f6c5[_0x2a2ed0]=_0x7bfd0e()),_0x30655c['setAttribute']('footnoteId',_0x24f6c5[_0x2a2ed0],_0x2d22a5);}return _0x24f6c5;}(_0x54baa4,_0x5e0215['content'],_0x307371=>{if(!_0x4ad450)return!0x0;return!!_0x374506['getFootnote'](_0x307371)&&!_0x422a52['includes'](_0x307371);});for(const [_0x37e07f,_0xce1152]of Object['entries'](_0xca575c)){const _0x5f0621=_0x10738b[_0x37e07f]||_0x37e07f;let _0x1466c9;if('string'!=typeof _0xce1152)_0x1466c9=_0xce1152,_0x5f0621!==_0x37e07f&&_0x54baa4['setAttribute']('footnoteId',_0x5f0621,_0x1466c9);else{_0x1466c9=_0x54baa4['createElement']('footnoteDefinition',{'footnoteId':_0x5f0621});const _0x562cdb=_0x3cffe6['data']['htmlProcessor']['toView'](_0xce1152);let _0x17343a;if(_0x1bc7a6)_0x17343a=_0x3cffe6['data']['toModel'](_0x562cdb,_0x1466c9);else{_0x17343a=_0x54baa4['createElement']('footnoteInlineContent');const _0x5131fd=_0x3cffe6['data']['toModel'](_0x562cdb,_0x17343a);_0x54baa4['insert'](_0x5131fd,_0x17343a);}_0x54baa4['append'](_0x17343a,_0x1466c9);}_0x54baa4['insert'](_0x1466c9,_0x6f619a,'end');}_0xca575c=null;});});}}function q(_0x5653a5,_0x4453ce){for(const {item:_0x467bf1}of _0x5653a5['createRangeIn'](_0x4453ce))if(_0x467bf1['is']('element','footnotesDefinitions'))return _0x467bf1;return null;}function H(_0x54514d){const _0xd0876d=new Set();for(const {item:_0x3ed914}of _0x54514d)_0x3ed914['is']('element','footnoteRef')&&_0xd0876d['add'](_0x3ed914['getAttribute']('footnoteId'));return Array['from'](_0xd0876d);}class FootnotesUI extends _0x35c719{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48a1c6}=this,{componentFactory:_0x256440}=_0x48a1c6['ui'];_0x256440['add']('insertFootnote',z(_0x48a1c6,_0x2dd631)),_0x256440['add']('menuBar:insertFootnote',z(_0x48a1c6,_0x350b51)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2326e3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3fd660;for(const _0xac26c in _0x2326e3){const _0x524909=_0xac26c,_0x24826e=_0x2326e3[_0x524909];if('footnotesLicenseKeyValid'==_0x24826e||'footnotesLicenseKeyInvalid'==_0x24826e||'footnotesLicenseKeyExpired'==_0x24826e||'footnotesLicenseKeyDomainLimit'==_0x24826e||'footnotesLicenseKeyNotAllowed'==_0x24826e||'footnotesLicenseKeyEvaluationLimit'==_0x24826e||'footnotesLicenseKeyUsageLimit'==_0x24826e){delete _0x2326e3[_0x524909],_0x3fd660=_0x24826e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3fd660&&_0x2326e3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3fd660&&_0x2326e3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3fd660&&_0x2326e3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3fd660&&_0x2326e3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3fd660&&_0x2326e3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x3fd660&&_0x2326e3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function z(_0x2d6541,_0x4c8b8d){const _0x201596=_0x2d6541['commands']['get']('insertFootnote');return _0x190403=>{const {t:t}=_0x190403,_0x202512=new _0x4c8b8d(_0x190403),_0x2d99a2=_0x202512 instanceof _0x350b51;return _0x202512['bind']('isEnabled')['to'](_0x201596,'isEnabled'),_0x202512['set']({'label':t(_0x2d99a2?'Footnote':'Insert\x20footnote'),'icon':_0x1cb9fe,'tooltip':!0x0}),_0x202512['on']('execute',()=>{_0x201596['execute'](),_0x2d6541['editing']['view']['focus']();}),_0x202512;};}class Footnotes extends _0x35c719{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const X=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],J=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),G=[...X,'arabic-indic','lower-alpha','upper-alpha'];class FootnotesStyleCommand extends _0x4aacd1{['refresh'](){const {editor:_0x1c2822}=this,_0x179fd0=_0x1c2822['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x179fd0,this['value']=_0x179fd0?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3d1dbe}){const {editor:_0x4d10ae}=this,_0x140a03=_0x4d10ae['plugins']['get'](FootnotesTracker),_0x18aa53=_0x140a03['getFootnotesDefinitionsObjectElement']();_0x18aa53&&G['includes'](_0x3d1dbe)&&_0x4d10ae['model']['change'](_0x1e9c5b=>{_0x1e9c5b['setAttribute']('footnotesListStyle',_0x3d1dbe,_0x18aa53),_0x140a03['_updateFootnotesCounters'](_0x1e9c5b);});}}class FootnotesStartCommand extends _0x4aacd1{['refresh'](){const {editor:_0x88ac09}=this,_0x4b6bf8=_0x88ac09['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b6bf8,this['value']=_0x4b6bf8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5bc2af}){const {editor:_0x18ebc1}=this,_0x776aa9=_0x18ebc1['plugins']['get'](FootnotesTracker),_0x47ae5c=_0x776aa9['getFootnotesDefinitionsObjectElement']();_0x47ae5c&&Number['isInteger'](_0x5bc2af)&&_0x18ebc1['model']['change'](_0x5395aa=>{_0x5395aa['setAttribute']('footnotesListStart',_0x5bc2af,_0x47ae5c),_0x776aa9['_updateFootnotesCounters'](_0x5395aa);});}}function Q(_0x3e1e7d,_0x2836b6){let _0x442643='',_0x46205c=_0x3e1e7d;for(;_0x46205c>0x0;){const _0x65f31b=(_0x46205c-0x1)%0x1a;_0x442643=String['fromCharCode'](0x61+_0x65f31b)+_0x442643,_0x46205c=Math['floor']((_0x46205c-0x1)/0x1a);}return _0x2836b6?_0x442643['toUpperCase']():_0x442643;}const W=[{'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 Y(_0x40229c,_0x1e6019){let _0x317cdd='',_0x4decce=_0x40229c;for(const {value:_0x526a5f,numeral:_0x53dee7}of W)for(;_0x4decce>=_0x526a5f;)_0x317cdd+=_0x53dee7,_0x4decce-=_0x526a5f;return _0x1e6019?_0x317cdd:_0x317cdd['toLowerCase']();}const Z=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];class FootnotesPropertiesEditing extends _0x35c719{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20476c}=this;_0x20476c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x20476c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x20476c['config']['define']('footnotes.footnotesProperties.listStyles',[...X]),_0x20476c['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x20476c)),_0x20476c['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x20476c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x47dfa3}=this,{schema:_0x42ca70}=_0x47dfa3['model'];_0x42ca70['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x589e95}=this,{conversion:_0x374cb6,model:_0x3c1223}=_0x589e95,{schema:_0x125865}=_0x3c1223;_0x374cb6['for']('upcast')['add'](_0x1ddcb4=>{_0x1ddcb4['on']('element:ol',(_0x6260f3,_0x2bca53,_0x52d71b)=>{const _0x49e1d8=_0x2bca53['viewItem'],_0x12c16a=_0x2bca53['modelCursor']?.['parent'];_0x49e1d8['hasClass']('footnotes-list')&&_0x12c16a?.['is']('element','footnotesDefinitions')&&(function(_0x5c54fd,_0x559285,_0x544273,_0x23e012){if(!_0x23e012['checkAttribute'](_0x559285,'footnotesListStart'))return;let _0x3aafe4=0x1;const _0x58c334=_0x544273['consumable']['consume'](_0x5c54fd,{'attributes':'start'});if(_0x58c334){const _0x50861c=Number['parseInt'](_0x5c54fd['getAttribute']('start'),0xa);Number['isNaN'](_0x50861c)||(_0x3aafe4=_0x50861c);}!_0x58c334&&_0x559285['hasAttribute']('footnotesListStart')||_0x544273['writer']['setAttribute']('footnotesListStart',_0x3aafe4,_0x559285);}(_0x49e1d8,_0x12c16a,_0x52d71b,_0x125865),function(_0x499eb4,_0x7d7ce,_0x4c94c9,_0x17dbbd){if(!_0x17dbbd['checkAttribute'](_0x7d7ce,'footnotesListStyle'))return;let _0x389220='decimal',_0x32c28f=!0x1;if(_0x4c94c9['consumable']['consume'](_0x499eb4,{'attributes':'type'})){const _0x11d363={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x499eb4['getAttribute']('type')];_0x11d363&&(_0x389220=_0x11d363),_0x32c28f=!0x0;}if(_0x4c94c9['consumable']['consume'](_0x499eb4,{'styles':'list-style-type'})){const _0x21341f=tt(_0x499eb4['getStyle']('list-style-type'));_0x21341f&&(_0x389220=_0x21341f),_0x32c28f=!0x0;}!_0x32c28f&&_0x7d7ce['hasAttribute']('footnotesListStyle')||_0x4c94c9['writer']['setAttribute']('footnotesListStyle',_0x389220,_0x7d7ce);}(_0x49e1d8,_0x12c16a,_0x52d71b,_0x125865));});}),_0x374cb6['for']('downcast')['add'](_0x37c4c5=>{_0x37c4c5['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x4f5405,_0x4995fb,_0x5318db)=>{if(!_0x5318db['consumable']['consume'](_0x4995fb['item'],_0x4f5405['name']))return;const _0x47f2ef=et(_0x4995fb['item'],_0x5318db['mapper']),{attributeNewValue:_0x2df2b5}=_0x4995fb;null==_0x2df2b5||0x1===_0x2df2b5?_0x5318db['writer']['removeAttribute']('start',_0x47f2ef):_0x5318db['writer']['setAttribute']('start',String(_0x2df2b5),_0x47f2ef);}),_0x37c4c5['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x22b3fd,_0x59c66e,_0x385be5)=>{if(!_0x385be5['consumable']['consume'](_0x59c66e['item'],_0x22b3fd['name']))return;const _0x5ab3eb=et(_0x59c66e['item'],_0x385be5['mapper']),{attributeNewValue:_0x3de8bd}=_0x59c66e;_0x3de8bd&&'decimal'!==_0x3de8bd?_0x385be5['writer']['setStyle']('list-style-type',_0x3de8bd,_0x5ab3eb):_0x385be5['writer']['removeStyle']('list-style-type',_0x5ab3eb);});});}['_definePostfixer'](){const {editor:_0x4423e8}=this,{model:_0x4f8ea3}=_0x4423e8,_0x371e46=_0x4423e8['plugins']['get'](FootnotesTracker),_0x366982=this['_getDefaultListStyle'](),_0x32cb86=this['_getDefaultStartIndex']();_0x4f8ea3['document']['registerPostFixer'](_0x15bd34=>{const _0x23539c=_0x4f8ea3['document']['differ']['getChanges']();let _0x58fb5a=!0x1;for(const _0xd36b8d of _0x23539c){if('insert'!==_0xd36b8d['type']||'$text'===_0xd36b8d['name'])continue;const _0x66ce69=_0x4f8ea3['createRangeOn'](_0xd36b8d['position']['nodeAfter']);for(const _0x3ba02e of _0x66ce69['getItems']())_0x3ba02e['is']('element','footnotesDefinitions')&&(!_0x3ba02e['hasAttribute']('footnotesListStart')&&_0x4f8ea3['schema']['checkAttribute'](_0x3ba02e,'footnotesListStart')&&(_0x15bd34['setAttribute']('footnotesListStart',_0x32cb86,_0x3ba02e),_0x58fb5a=!0x0),!_0x3ba02e['hasAttribute']('footnotesListStyle')&&_0x4f8ea3['schema']['checkAttribute'](_0x3ba02e,'footnotesListStyle')&&(_0x15bd34['setAttribute']('footnotesListStyle',_0x366982,_0x3ba02e),_0x58fb5a=!0x0));}return _0x58fb5a&&_0x371e46['_updateFootnotesCounters'](_0x15bd34),_0x58fb5a;});}['_defineFormatter'](){const {editor:_0x5ba727}=this;_0x5ba727['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x39efae=>this['_formatFootnoteListValue'](_0x39efae));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xc3a3a8,value:_0x2669f3,digits:_0x56e87d}){const _0x4a7019=_0xc3a3a8['getAttribute']('footnotesListStyle'),_0x277f5d=_0xc3a3a8['getAttribute']('footnotesListStart'),_0x4d5139=Math['floor'](_0x2669f3)+(_0x277f5d??0x1)-0x1;switch(_0x4a7019){case'decimal-leading-zero':return function(_0x306542,_0x331c3f){return String(_0x306542)['padStart'](_0x331c3f,'0');}(_0x4d5139,Math['max'](0x2,_0x56e87d));case'lower-alpha':case'lower-latin':return Q(_0x4d5139,!0x1);case'upper-alpha':case'upper-latin':return Q(_0x4d5139,!0x0);case'lower-roman':return Y(_0x4d5139,!0x1);case'upper-roman':return Y(_0x4d5139,!0x0);case'arabic-indic':return String(_0x4d5139)['replace'](/\d/g,_0x372fbf=>Z[Number(_0x372fbf)]);default:return String(_0x4d5139);}}}function tt(_0x133211){if('string'==typeof _0x133211){const _0x2f9e45=J[_0x133211];if(_0x2f9e45)return _0x2f9e45;if(G['includes'](_0x133211))return _0x133211;}return null;}function et(_0x181873,_0x22907a){const _0x14bc3e=_0x22907a['toViewElement'](_0x181873);return Array['from'](_0x14bc3e['getChildren']())['find'](_0x20a2c1=>_0x20a2c1['is']('element','ol')&&_0x20a2c1['hasClass']('footnotes-list'));}class FootnotesDefinitionsPropertiesView extends _0x4bd860{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0xc7e485();['keystrokes']=new _0x445156();['focusables']=new _0x533350();['focusCycler'];constructor(_0x326ca7,{styleButtonViews:_0x4202be,styleGridAriaLabel:_0x107733}){super(_0x326ca7),(this['focusCycler']=new _0x36ff63({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4202be,_0x107733),[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 _0x546a42 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x546a42['element']);_0x20d128({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x46ee0c['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 _0x56586c=_0x5c398a=>_0x5c398a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x56586c),this['keystrokes']['set']('arrowleft',_0x56586c),this['keystrokes']['set']('arrowup',_0x56586c),this['keystrokes']['set']('arrowdown',_0x56586c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x34f324,_0x25443e){const _0xd8c0c3=new _0x4bd860(this['locale']);return _0xd8c0c3['children']=_0xd8c0c3['createCollection'](),_0xd8c0c3['children']['addMany'](_0x34f324),_0xd8c0c3['setTemplate']({'tag':'div','attributes':{'aria-label':_0x25443e,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xd8c0c3['children']}),_0xd8c0c3['children']['delegate']('execute')['to'](this),_0xd8c0c3['focus']=function(){for(const _0x45fa6a of this['children'])if(_0x45fa6a instanceof _0x2dd631&&_0x45fa6a['isOn'])return void _0x45fa6a['focus']();this['children']['first']['focus']();},_0xd8c0c3['focusTracker']=new _0xc7e485(),_0xd8c0c3['keystrokes']=new _0x445156(),_0xd8c0c3['render'](),_0xd8c0c3['keystrokes']['listenTo'](_0xd8c0c3['element']),this['children']['add'](_0xd8c0c3),_0xd8c0c3;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0xd5a5c6=this['_createStartIndexPropertyView'](),_0x35ada1=[_0xd5a5c6],_0x4c1098=new _0x5a3665(this['locale'],_0x35ada1);return _0x4c1098['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4c1098['buttonView']['bind']('isEnabled')['toMany'](_0x35ada1,'isEnabled',(..._0x1af225)=>_0x1af225['some'](_0x1ec491=>_0x1ec491)),_0x4c1098['buttonView']['on']('change:isEnabled',(_0x1fffb7,_0x2859e2,_0x1936c0)=>{_0x1936c0||(_0x4c1098['isCollapsed']=!0x0);}),this['children']['add'](_0x4c1098),[_0xd5a5c6,_0x4c1098];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3b9e7a=new _0x3eefa9(this['locale'],_0x402009);return _0x3b9e7a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3b9e7a['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3b9e7a['fieldView']['on']('input',()=>{const _0x16584c=_0x3b9e7a['fieldView']['element'],_0xfafa7b=_0x16584c['valueAsNumber'];Number['isNaN'](_0xfafa7b)?_0x3b9e7a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x16584c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xfafa7b}):_0x3b9e7a['errorText']=t(_0xfafa7b<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3b9e7a;}}class FootnotesPropertiesUI extends _0x35c719{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x150afc,_0x5e0ac7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b057e}=this,{componentFactory:_0x359de4}=_0x2b057e['ui'];_0x2b057e['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x359de4['add']('footnotesStyle',function(_0x37711c){return _0x5ce312=>{const {t:t}=_0x5ce312,_0x3e58bf=_0x37711c['commands']['get']('footnotesStyle'),_0x2f8866=_0x512fb9(_0x5ce312),{buttonView:_0x3d8cbb}=_0x2f8866;return _0x2f8866['class']='ck-footnotes-styles-dropdown',_0x2f8866['bind']('isEnabled')['to'](_0x3e58bf,'isEnabled'),_0x3d8cbb['set']({'label':t('Footnotes\x20style'),'icon':_0x1cb9fe,'tooltip':!0x0}),_0x2f8866['once']('change:isOpen',()=>{const _0x7e8d63=function({editor:_0x23db3e,dropdownView:_0x29e9ff}){const {t:t}=_0x23db3e['locale'],_0x17fd23=t('Footnotes\x20definitions\x20styles'),_0x334c5c=function(_0x240fe9){const {t:t}=_0x240fe9['locale'],_0x4d4232=_0x240fe9['config']['get']('footnotes.footnotesProperties.listStyles'),_0x5e3a83=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x129017},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x5b5608},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x50d899},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x36dc66},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x2dcab8},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x225369},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x56f5e7}];return _0x4d4232['map'](_0x5b3238=>{const _0x45298a=tt(_0x5b3238),_0x21088d=_0x5e3a83['find'](_0x82c36c=>_0x82c36c['style']===_0x45298a);return function(_0x3fba6c,_0x1de0e1){const {locale:_0xad13ba}=_0x3fba6c,{label:_0x6f9edc,icon:_0x43bc41,tooltip:_0x461330,style:_0x4adf96}=_0x1de0e1,_0x561f2c=_0x3fba6c['commands']['get']('footnotesStyle'),_0x26f9e7=new _0x2dd631(_0xad13ba);return _0x26f9e7['set']({'label':_0x6f9edc,'icon':_0x43bc41,'tooltip':_0x461330}),_0x26f9e7['bind']('isOn')['to'](_0x561f2c,'value',_0x3c9605=>_0x3c9605===_0x4adf96),_0x26f9e7['bind']('isEnabled')['to'](_0x561f2c,'isEnabled'),_0x26f9e7['on']('execute',()=>{_0x3fba6c['execute']('footnotesStyle',{'value':_0x4adf96}),_0x3fba6c['editing']['view']['focus']();}),_0x26f9e7;}(_0x240fe9,_0x21088d);});}(_0x23db3e),_0x22f9f8=new FootnotesDefinitionsPropertiesView(_0x23db3e['locale'],{'styleGridAriaLabel':_0x17fd23,'styleButtonViews':_0x334c5c}),_0x34a0f1=_0x23db3e['commands']['get']('footnotesStart');return _0x22f9f8['startIndexFieldView']['bind']('isEnabled')['to'](_0x34a0f1),_0x22f9f8['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x34a0f1),_0x22f9f8['on']('footnotesListStart',(_0x4af233,_0x55b514)=>{_0x23db3e['execute']('footnotesStart',{'value':_0x55b514['startIndex']});}),_0x22f9f8['delegate']('execute')['to'](_0x29e9ff),_0x22f9f8;}({'editor':_0x37711c,'dropdownView':_0x2f8866});_0x2f8866['panelView']['children']['add'](_0x7e8d63);}),_0x2f8866;};}(_0x2b057e));}['afterInit'](){const {editor:_0x3a9d32}=this,{t:t}=_0x3a9d32['locale'],_0x4f8b9f=_0x3a9d32['plugins']['get'](_0x5e0ac7),{defaultPositions:_0x30c08a}=_0x374789;_0x4f8b9f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3a9d32['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x39ee6e=>{let _0x24469c=_0x39ee6e['getFirstPosition']()?.['parent'];return _0x24469c?.['is']('$text')&&(_0x24469c=_0x24469c['parent']),_0x24469c?.['is']('element')?_0x24469c['findAncestor'](M):null;},'positions':[_0x30c08a['southArrowNorth'],_0x30c08a['southArrowNorthMiddleWest'],_0x30c08a['southArrowNorthMiddleEast'],_0x30c08a['southArrowNorthWest'],_0x30c08a['southArrowNorthEast'],_0x30c08a['northArrowSouth'],_0x30c08a['northArrowSouthMiddleWest'],_0x30c08a['northArrowSouthMiddleEast'],_0x30c08a['northArrowSouthWest'],_0x30c08a['northArrowSouthEast'],_0x30c08a['viewportStickyNorth']]});}}class FootnotesProperties extends _0x35c719{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,InsertFootnoteCommand};
|
|
23
|
+
import{Command as _0x336c1a,Plugin as _0xf272d3}from'@ckeditor/ckeditor5-core';import{WidgetToolbarRepository as _0x3a7afb,isWidget as _0x3c40cc,toWidget as _0x35f407,toWidgetEditable as _0x1afe4e}from'@ckeditor/ckeditor5-widget';import{FocusTracker as _0xe59a53,KeystrokeHandler as _0x3919f6,global as _0x322ab6,logWarning as _0x3ddcb7,uid as _0x170b6f}from'@ckeditor/ckeditor5-utils';import{ClickObserver as _0x1a1383,PointerObserver as _0x2ae2c5}from'@ckeditor/ckeditor5-engine';import{ClipboardPipeline as _0x51b612}from'@ckeditor/ckeditor5-clipboard';import{BalloonPanelView as _0x3c1fb4,ButtonView as _0x582eb6,CollapsibleView as _0x42ba7d,ContextualBalloon as _0x2d30d1,FocusCycler as _0x3070ad,LabeledFieldView as _0x48401c,MenuBarMenuListItemButtonView as _0x3af553,View as _0x4af5ae,ViewCollection as _0xe8ec4e,addKeyboardHandlingForGrid as _0x27071f,createDropdown as _0x2e3085,createLabeledInputNumber as _0x22de95}from'@ckeditor/ckeditor5-ui';import{IconFootnote as _0x258258,IconListStyleArabicIndic as _0x510226,IconListStyleDecimal as _0x2865a9,IconListStyleDecimalLeadingZero as _0x2de3e4,IconListStyleLowerLatin as _0x3a1fa3,IconListStyleLowerRoman as _0x2c8f30,IconListStyleUpperLatin as _0x10f211,IconListStyleUpperRoman as _0x4bbe04}from'@ckeditor/ckeditor5-icons';var N=class{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3f8abe,_0x12db6a){this['_model']=_0x3f8abe,this['_elementName']=_0x12db6a['elementName'],this['_getElementKey']=_0x12db6a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5986b0){const _0x31fddf=new Set(),_0x499246=new Map();for(const _0x1a91c6 of _0x5986b0){if('insert'===_0x1a91c6['type']&&'$text'!==_0x1a91c6['name']&&_0x1a91c6['position']['nodeAfter']){const _0x328049=this['_model']['createRangeOn'](_0x1a91c6['position']['nodeAfter']);for(const _0x93628c of _0x328049['getItems']()){if(!_0x93628c['is']('element',this['_elementName']))continue;const _0x1914e6=this['_getElementKey'](_0x93628c);_0x499246['has'](_0x1914e6)||_0x499246['set'](_0x1914e6,[]),_0x499246['get'](_0x1914e6)['push'](_0x93628c);}}if('remove'===_0x1a91c6['type']&&_0x1a91c6['name']===this['_elementName']){const _0x4d555c=this['_getElementKey']({'getAttribute':_0x4c62c8=>_0x1a91c6['attributes']['get'](_0x4c62c8)});_0x31fddf['add'](_0x4d555c);}}for(const [_0x4e854f,_0x15e4e3]of this['_trackedElements'])'$graveyard'===_0x15e4e3['root']['rootName']&&_0x31fddf['add'](_0x4e854f);for(const _0x4cfddb of _0x31fddf)this['_trackedElements']['delete'](_0x4cfddb);for(const [_0x144e97,_0x45cebe]of _0x499246)this['_trackedElements']['set'](_0x144e97,_0x45cebe[_0x45cebe['length']-0x1]);const _0x35cef1=new Set();for(const [_0x36c5c0,_0x149d71]of _0x499246)_0x31fddf['has'](_0x36c5c0)&&(_0x35cef1['add'](_0x149d71[0x0]),_0x149d71['length']>0x1?_0x499246['set'](_0x36c5c0,_0x149d71['slice'](0x1)):_0x499246['delete'](_0x36c5c0),_0x31fddf['delete'](_0x36c5c0));return{'removed':Array['from'](_0x31fddf),'inserted':Array['from'](_0x499246['values']())['flat'](),'moved':Array['from'](_0x35cef1)};}},V=class extends _0xf272d3{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50a4f6){super(_0x50a4f6),this['_footnoteDefsContainerTracker']=new N(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new N(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x289b0b=>_0x289b0b['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new N(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1625f5=>_0x1625f5['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1191f9}=this,{model:_0x4bf081,data:_0x374918}=_0x1191f9;_0x4bf081['document']['registerPostFixer'](_0x5a9b09=>{const _0x1b5fa0=_0x4bf081['document']['differ']['getChanges']();let _0x3580a4=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5a9b09,_0x1b5fa0)&&(_0x3580a4=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5a9b09,_0x1b5fa0)&&(_0x3580a4=!0x0),this['_handleFootnoteReferencesChanges'](_0x5a9b09,_0x1b5fa0)&&(_0x3580a4=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5a9b09)&&(_0x3580a4=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5a9b09)&&(_0x3580a4=!0x0),this['_sortFootnoteDefinitions'](_0x5a9b09)&&(_0x3580a4=!0x0),_0x3580a4;}),this['listenTo'](_0x4bf081['document'],'change:data',()=>{_0x4bf081['enqueueChange']({'isUndoable':!0x1},_0x46e2c5=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x46e2c5);});},{'priority':'low'}),this['listenTo'](_0x374918,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1b9cf1){return this['_footnotes']['find'](_0x2e9b89=>_0x2e9b89['id']===_0x1b9cf1)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x554638){this['_footnoteFormatter']=_0x554638;}['_updateFootnotesCounters'](_0x4d78ce,_0x13a41e=0x0){let _0x1a3b4b=!0x1;for(let _0x4d952c=_0x13a41e;_0x4d952c<this['_footnotes']['length'];_0x4d952c++)this['_updateFootnoteRefCounter'](_0x4d78ce,_0x4d952c)&&(_0x1a3b4b=!0x0);return _0x1a3b4b;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1c225f,_0x5bb73d){const _0x23f928=_0x1c225f['createElement']('footnotesDefinitions',{});return _0x1c225f['append'](_0x23f928,_0x5bb73d),this['_footnotesDefinitions']=_0x23f928,_0x23f928;}['_ensureFootnotesDefinitionsContainerExists'](_0x46372d){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x50d101=this['_footnotes'][0x0]['reference']['root'],_0x8e8a08=this['_insertEmptyFootnotesDefinitionsContainer'](_0x46372d,_0x50d101);for(const _0x38a97b of this['_footnotes'])_0x38a97b['definition']['parent']||_0x46372d['insert'](_0x38a97b['definition'],_0x8e8a08,'end');this['_updateFootnotesCounters'](_0x46372d);}['_handleFootnotesDefinitionsObjectChanges'](_0x4e9c6f,_0x3d8d3b){let _0x4b0e0f=!0x1;const {inserted:_0x1aff41,removed:_0x5b703e,moved:_0x381618}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3d8d3b);if(_0x381618['length']&&(this['_footnotesDefinitions']=_0x381618[0x0]),_0x1aff41['length']){if(_0x1aff41['length']>0x1||this['_footnotesDefinitions']&&_0x1aff41['some'](_0x3b466f=>_0x3b466f!==this['_footnotesDefinitions'])){const _0x41b549=_0x4e9c6f['createElement']('footnotesDefinitions',{}),_0x23539a=[];this['_footnotesDefinitions']&&_0x23539a['push'](this['_footnotesDefinitions']),_0x23539a['push'](..._0x1aff41),_0x4e9c6f['insert'](_0x41b549,_0x23539a[0x0],'before');for(const _0xec3a3a of _0x23539a)_0x4e9c6f['move'](_0x4e9c6f['createRangeIn'](_0xec3a3a),_0x4e9c6f['createPositionAt'](_0x41b549,'end')),_0x4e9c6f['remove'](_0xec3a3a);this['_footnotesDefinitions']=_0x41b549,this['_updateFootnotesCounters'](_0x4e9c6f),_0x4b0e0f=!0x0;}else this['_footnotesDefinitions']=_0x1aff41[0x0];}if(_0x5b703e['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x40ad83 of this['_footnotes'])_0x4e9c6f['remove'](_0x40ad83['reference']),_0x4b0e0f=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4b0e0f;}['_handleFootnoteDefinitionsChanges'](_0x19bea0,_0x2f4134){let _0x39bdf7=!0x1;const _0x551b5c=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x485638,moved:_0x1ab55a}=this['_footnoteDefsTracker']['getChanges'](_0x2f4134);for(const _0x3609de of[..._0x1ab55a,..._0x485638]){const _0x1d631f=_0x3609de['getAttribute']('footnoteId'),_0x247ac9=this['getFootnote'](_0x1d631f);_0x247ac9&&(_0x247ac9['definition']=_0x3609de),K(_0x19bea0,_0x551b5c,_0x3609de)&&(_0x39bdf7=!0x0);}return _0x39bdf7;}['_handleFootnoteReferencesChanges'](_0x6ce7a3,_0x2699ef){let _0x1ec2f4=!0x1;const {removed:_0x4c1114,inserted:_0x32feda,moved:_0x175e07}=this['_footnoteRefsTracker']['getChanges'](_0x2699ef);for(const _0x353090 of _0x4c1114)this['_handleRemoveFootnoteReferenceById'](_0x6ce7a3,_0x353090)&&(_0x1ec2f4=!0x0);for(const _0x2bc4bc of _0x32feda)this['_handleInsertedFootnoteReference'](_0x6ce7a3,_0x2bc4bc)&&(_0x1ec2f4=!0x0);for(const _0x5b6128 of _0x175e07)this['_handleMovedFootnoteReference'](_0x6ce7a3,_0x5b6128)&&(_0x1ec2f4=!0x0);return _0x1ec2f4;}['_handleFootnotesDefinitionsObjectSync'](_0x1fb012){if(!this['_footnotesDefinitions'])return!0x1;let _0x2beb99=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3a8602=[];for(const _0x22de9f of this['_footnotesDefinitions']['getChildren']()){const _0xd916f1=_0x22de9f['getAttribute']('footnoteId');this['getFootnote'](_0xd916f1)||(_0x3a8602['unshift'](_0x22de9f),_0x2beb99=!0x0);}for(const _0x1f26df of _0x3a8602)_0x1fb012['remove'](_0x1f26df);}const _0x5dc35e=new Set(),_0x34a19a=[];for(const _0x3b6cbf of this['_footnotesDefinitions']['getChildren']()){const _0x307238=_0x3b6cbf['getAttribute']('footnoteId');_0x5dc35e['has'](_0x307238)?(_0x34a19a['unshift'](_0x3b6cbf),_0x2beb99=!0x0):_0x5dc35e['add'](_0x307238);}for(const _0x4e3226 of _0x34a19a)_0x1fb012['remove'](_0x4e3226);return this['_footnotesDefinitions']['childCount']||(_0x1fb012['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2beb99=!0x0),_0x2beb99;}['_handleInsertedFootnoteReference'](_0x2dd59d,_0x539d63){if(this['_footnotes']['find'](_0x492765=>_0x492765['reference']===_0x539d63))return!0x1;let _0x4ac792=!0x1;const _0xdc398f=_0x539d63['getAttribute']('footnoteId'),_0x384307=this['_footnotes']['findIndex'](_0x2ad633=>_0x2ad633['id']===_0xdc398f);-0x1!==_0x384307&&(_0x2dd59d['remove'](this['_footnotes'][_0x384307]['reference']),this['_footnotes']['splice'](_0x384307,0x1),_0x4ac792=!0x0);let _0x73bee2=this['_footnotesDefinitions']?function(_0x3f8b9e,_0x4b4921){for(const _0x16e0bc of _0x3f8b9e['getChildren']())if(_0x16e0bc['getAttribute']('footnoteId')===_0x4b4921)return _0x16e0bc;return null;}(this['_footnotesDefinitions'],_0xdc398f):null;_0x73bee2||(_0x73bee2=_0x2dd59d['createElement']('footnoteDefinition',{'footnoteId':_0xdc398f}),this['_footnotesDefinitions']&&(_0x2dd59d['insert'](_0x73bee2,this['_footnotesDefinitions'],'end'),_0x4ac792=!0x0));const _0x32d7da={'id':_0xdc398f,'reference':_0x539d63,'definition':_0x73bee2},_0x16d9da=T(this['editor']['model'],this['_footnotes'],_0x539d63);this['_footnotes']['splice'](_0x16d9da,0x0,_0x32d7da);let _0x5770b2=_0x16d9da;return-0x1!==_0x384307&&(_0x5770b2=Math['min'](_0x16d9da,_0x384307)),this['_updateFootnotesCounters'](_0x2dd59d,_0x5770b2)&&(_0x4ac792=!0x0),_0x4ac792;}['_handleRemoveFootnoteReferenceById'](_0x14b5cf,_0x38d005){const _0x50ca84=this['_footnotes']['findIndex'](_0x456c9e=>_0x456c9e['id']===_0x38d005);if(-0x1===_0x50ca84)return!0x1;let _0x120344=!0x1;const _0x28f81f=this['_footnotes'][_0x50ca84];return'$graveyard'!==_0x28f81f['definition']['root']['rootName']&&(_0x14b5cf['remove'](_0x28f81f['definition']),_0x120344=!0x0),this['_footnotes']['splice'](_0x50ca84,0x1),this['_updateFootnotesCounters'](_0x14b5cf,_0x50ca84)&&(_0x120344=!0x0),_0x120344;}['_handleMovedFootnoteReference'](_0x919d9f,_0x279872){const _0x2f5401=_0x279872['getAttribute']('footnoteId'),_0x285258=this['_footnotes']['findIndex'](_0x3b19f7=>_0x3b19f7['id']===_0x2f5401),_0x537e0d=this['_footnotes'][_0x285258];let _0x504c6e=!0x1;_0x537e0d['reference']=_0x279872,this['_footnotes']['splice'](_0x285258,0x1);const _0xef7f10=T(this['editor']['model'],this['_footnotes'],_0x279872);return this['_footnotes']['splice'](_0xef7f10,0x0,_0x537e0d),this['_updateFootnotesCounters'](_0x919d9f,Math['min'](_0x285258,_0xef7f10))&&(_0x504c6e=!0x0),_0x504c6e;}['_updateFootnoteRefCounter'](_0x5bfaf1,_0xc9d167){if(!this['_footnotesDefinitions'])return!0x1;const _0x2dc820=this['_footnotes'][_0xc9d167];let _0x51259d;return _0x51259d=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2dc820,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xc9d167+0x1}):String(_0xc9d167+0x1),_0x2dc820['reference']['getAttribute']('footnoteCounter')!=_0x51259d&&(_0x5bfaf1['setAttribute']('footnoteCounter',_0x51259d,_0x2dc820['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2c8720){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x320822,_0x47fdbd){if(_0x320822['length']!==_0x47fdbd['length'])return!0x1;for(let _0x279154=0x0;_0x279154<_0x320822['length'];_0x279154++)if(_0x320822[_0x279154]!==_0x47fdbd[_0x279154])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x46a6b2=>_0x46a6b2['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x18277e=>_0x18277e['getAttribute']('footnoteId'))))return!0x1;let _0x147931=!0x1;for(let _0x288275=0x0;_0x288275<this['_footnotes']['length'];_0x288275++){const _0x4f304b=this['_footnotes'][_0x288275],_0x2a6343=_0x2c8720['createPositionBefore'](_0x4f304b['definition']),_0x41aaf2=_0x2c8720['createPositionAt'](this['_footnotesDefinitions'],_0x288275);_0x2a6343['isEqual'](_0x41aaf2)||(_0x2c8720['move'](_0x2c8720['createRangeOn'](_0x4f304b['definition']),_0x41aaf2),_0x147931=!0x0);}return _0x147931;}['_ensureFootnotesReferencesHaveProperOrder'](_0x533ece){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1d7888}=this['editor'];let _0x455eee=!0x1;for(let _0xd13862=0x0;_0xd13862<this['_footnotes']['length']-0x1;_0xd13862++){const _0x487421=this['_footnotes'][_0xd13862],_0x490ec8=this['_footnotes'][_0xd13862+0x1],_0x339d49=_0x1d7888['createPositionBefore'](_0x487421['reference']),_0x2846b6=_0x1d7888['createPositionBefore'](_0x490ec8['reference']);'after'===_0x339d49['compareWith'](_0x2846b6)&&(this['_handleMovedFootnoteReference'](_0x533ece,_0x487421['reference']),_0xd13862=-0x1,_0x455eee=!0x0);}return _0x455eee;}};function K(_0x54d6b7,_0x1baf21,_0x9bf5cf){if(_0x9bf5cf['childCount'])return!0x1;const _0x11261a=_0x1baf21?'paragraph':'footnoteInlineContent';return _0x54d6b7['insert'](_0x54d6b7['createElement'](_0x11261a),_0x9bf5cf),!0x0;}function T(_0xfcaa4d,_0x1b5811,_0x530ccb){if(0x0===_0x1b5811['length'])return 0x0;const _0x413ed1=_0xfcaa4d['createPositionBefore'](_0x530ccb);for(let _0x10dc27=0x0;_0x10dc27<_0x1b5811['length'];_0x10dc27++){const _0x282d11=_0x1b5811[_0x10dc27],_0x5dade2=_0xfcaa4d['createPositionBefore'](_0x282d11['reference']);if('before'===_0x413ed1['compareWith'](_0x5dade2))return _0x10dc27;}const _0x5cd34b=_0x530ccb['root'];let _0x48d40b=-0x1;for(let _0x5ca681=_0x1b5811['length']-0x1;_0x5ca681>=0x0;_0x5ca681--)if(_0x1b5811[_0x5ca681]['reference']['root']===_0x5cd34b){_0x48d40b=_0x5ca681;break;}if(-0x1!==_0x48d40b)return _0x48d40b+0x1;const _0x2db5d0=_0xfcaa4d['document']['getRootNames'](),_0x175213=_0x2db5d0[_0x2db5d0['indexOf'](_0x5cd34b['rootName'])+0x1];if(_0x175213){for(let _0x5caf03=0x0;_0x5caf03<_0x1b5811['length'];_0x5caf03++)if(_0x1b5811[_0x5caf03]['reference']['root']['rootName']===_0x175213)return _0x5caf03;}return _0x1b5811['length'];}var j=class extends _0x336c1a{['refresh'](){const _0x7b4e25=this['editor']['model']['document']['selection'],_0x2c069b=this['_getPositionToInsertFootnote'](_0x7b4e25);this['isEnabled']=!!_0x2c069b;}['execute'](_0x5f22d9){const {editor:_0x5a0f32}=this,{model:_0x1d17a6}=_0x5a0f32,{selection:_0x2b6215}=_0x1d17a6['document'],_0x3aa362=this['_getPositionToInsertFootnote'](_0x2b6215);if(!_0x3aa362)return;const _0x42a4e0=_0x5a0f32['plugins']['get']('FootnotesEditing'),_0x1cee06=_0x5f22d9?.['footnoteId']??_0x170b6f();!function(_0x29eecb){return'string'==typeof _0x29eecb&&_0x29eecb['length']>0x0&&!/\s/['test'](_0x29eecb)&&!/^\d/['test'](_0x29eecb);}(_0x1cee06)?_0x3ddcb7('insert-footnote-command-executed-with-invalid-id'):(_0x1d17a6['change'](_0x46a6b4=>{const _0x4869c9=_0x46a6b4['createElement']('footnoteRef',{'footnoteId':_0x1cee06});_0x1d17a6['insertObject'](_0x4869c9,_0x3aa362,null);}),_0x42a4e0['_moveSelectionToFootnoteDefinition'](_0x1cee06));}['_getPositionToInsertFootnote'](_0x3e09f9){const {model:_0x75cbbe}=this['editor'],{schema:_0x501a50}=_0x75cbbe,_0x5f55a=_0x3e09f9['getFirstRange']();for(const _0x131160 of _0x5f55a['getItems']())if(_0x501a50['isBlock'](_0x131160)||_0x501a50['isObject'](_0x131160))return null;const _0x4ac267=_0x5f55a['end'];return _0x501a50['checkChild'](_0x4ac267,'footnoteRef')?_0x4ac267:null;}},U=class extends _0xf272d3{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[V];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b3b4e}=this;_0x4b3b4e['config']['define']('footnotes.multiBlock',!0x0),_0x4b3b4e['commands']['add']('insertFootnote',new j(_0x4b3b4e)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x959cc5){const _0x5a9e1a='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0x5c94a1=0x78de0,_0x11d2b1=window['Date']['now'](),_0x4587ea=_0x959cc5['editor'],_0x55d623=new window['Promise'](_0x402bb2=>{_0x4587ea['once']('ready',_0x402bb2);}),_0x4bc33d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1b323c=_0x4587ea['config']['get']('licenseKey');async function _0x12d98c(){let _0x239003,_0x34d4ac=null,_0x5e8a42=null;try{return'GPL'==_0x1b323c?'NotAllowed':(_0x239003=_0x35cb9c(),_0x239003?(_0x239003['usageEndpoint']&&(_0x5e8a42=_0x4232d1(_0x239003['usageEndpoint'],_0x239003['jti'])),await _0x54fbed()?_0x2167ac()?_0x2e5596()?'Expired':_0x51c17a()?('evaluation'==_0x239003['licenseType']&&(_0x34d4ac=_0x591f4c('EvaluationLimit')),await _0x3b6fba()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2e5596(){const _0x5cf6b0=['evaluation','trial']['includes'](_0x239003['licenseType'])?_0x11d2b1/0x3e8:0xe10*_0x5c94a1;return _0x239003['exp']<_0x5cf6b0;}function _0x2167ac(){const _0x36e5d3=_0x239003['features'];return!!_0x36e5d3&&(!!_0x36e5d3['includes']('*')||!!_0x36e5d3['includes']('FOO'));}function _0x51c17a(){const _0x3ff550=_0x239003['licensedHosts'];if(!_0x3ff550||0x0==_0x3ff550['length'])return!0x0;const {hostname:_0xaa2fe0}=new URL(window['location']['href']);if(_0x3ff550['includes'](_0xaa2fe0))return!0x0;const _0x2ff452=_0xaa2fe0['split']('.');return _0x3ff550['filter'](_0x1c0462=>_0x1c0462['includes']('*'))['map'](_0x5316e9=>_0x5316e9['split']('.'))['filter'](_0x50acdd=>_0x50acdd['length']<=_0x2ff452['length'])['map'](_0x19760e=>Array(_0x2ff452['length']-_0x19760e['length'])['fill']('*'===_0x19760e[0x0]?'*':'')['concat'](_0x19760e))['some'](_0xf970a1=>_0x2ff452['every']((_0x5900a5,_0xd30620)=>_0xf970a1[_0xd30620]===_0x5900a5||'*'===_0xf970a1[_0xd30620]));}function _0x3b6fba(){return _0x34d4ac&&_0x5e8a42?new window['Promise']((_0x146359,_0x4083dd)=>{_0x34d4ac['then'](_0x146359,_0x4083dd),_0x5e8a42['then'](_0x2c331a=>{'Valid'!=_0x2c331a&&_0x146359(_0x2c331a);},_0x4083dd);}):_0x34d4ac||_0x5e8a42||'Valid';}}function _0x4232d1(_0x3c579a,_0x4977e8){return new window['Promise'](_0x49f274=>{if(_0x306ed7())return _0x49f274('Valid');_0x7d41c0(),_0x4587ea['decorate']('_sendUsageRequest');let _0x2769de=!0x1;const _0x322375=_0x170b6f();function _0x4853f4(_0x56700c){return!!_0x56700c&&('object'==typeof _0x56700c||'function'==typeof _0x56700c)&&'function'==typeof _0x56700c['then']&&'function'==typeof _0x56700c['catch'];}function _0x4b7286(_0x3be593){_0x4f9b49(_0x3be593)['then'](_0x96c7be=>_0x96c7be&&'ok'==_0x96c7be['status']?_0x4a1e46(_0x5df5d5(_0x322375+_0x4977e8))!=_0x96c7be['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x38b6bd=>(_0x4399b0(),_0x38b6bd),()=>{const _0x442837=_0x46615c();return null==_0x442837?(_0x4399b0(),'Valid'):_0x11d2b1-_0x442837>0x240c8400?'UsageLimit':'Valid';})['then'](_0x49f274)['catch'](()=>{_0x49f274('UsageLimit');});const _0x31c52d=0x36ee80;function _0x4399b0(){const _0x49f877='llct-'+_0x4a1e46(_0x5df5d5(_0x3c579a)),_0x3b3de9=_0x177b45(_0x4a1e46(window['Math']['ceil'](_0x11d2b1/_0x31c52d)));window['localStorage']['setItem'](_0x49f877,_0x3b3de9);}function _0x46615c(){const _0x31552f='llct-'+_0x4a1e46(_0x5df5d5(_0x3c579a)),_0x362466=window['localStorage']['getItem'](_0x31552f);return _0x362466?window['parseInt'](_0x177b45(_0x362466),0x10)*_0x31c52d:null;}function _0x4f9b49(_0x4fad58){return new window['Promise']((_0x5d74a2,_0x2a35bd)=>{_0x4fad58['then'](_0x5d74a2,_0x2a35bd),window['setTimeout'](_0x2a35bd,0x1d4c0);});}}_0x4587ea['on']('_sendUsageRequest',(_0x4d2af8,_0x387d96)=>{if(_0x387d96[0x0]!=_0x3c579a)return _0x49f274('UsageLimit');_0x387d96[0x1]={..._0x387d96[0x1],'requestId':_0x322375};},{'priority':'high'}),_0x4587ea['on']('_sendUsageRequest',_0x39a358=>{_0x4853f4(_0x39a358['return'])&&(_0x2769de=!0x0,_0x4b7286(_0x39a358['return']));},{'priority':'low'}),_0x55d623['then'](()=>{_0x2769de||_0x49f274('UsageLimit');});});function _0x306ed7(){return'auto'==_0x4587ea['editing']['view']['_overlayModeHint'];}function _0x7d41c0(){_0x4587ea['editing']['view']['_overlayModeHint']='auto';}}function _0x591f4c(_0xa44ce2){const _0x30948f=[new window['Promise'](_0x49b480=>setTimeout(_0x49b480,0x93ecc)),_0x55d623['then'](()=>new window['Promise'](_0x1fdf1d=>{let _0x2eda1a=0x0;_0x4587ea['model']['on']('applyOperation',(_0x451080,_0x50ed29)=>{_0x50ed29[0x0]['isDocumentOperation']&&_0x2eda1a++,0x5e8==_0x2eda1a&&(_0x1fdf1d(),_0x451080['off']());});}))];return window['Promise']['race'](_0x30948f)['then'](()=>_0xa44ce2);}async function _0x54e59c(){await _0x55d623,_0x4587ea['model']['change']=_0x9c2afa,_0x4587ea['model']['enqueueChange']=_0x9c2afa,_0x4587ea['enableReadOnlyMode']('model');}function _0x63bbc6(_0x5f1c01){const _0x3bcdea=_0x4c1f36();_0x4587ea[_0x3bcdea]='footnotesLicenseKey'+_0x5f1c01,'Valid'!=_0x5f1c01&&_0x54e59c();}function _0x4c1f36(){const _0x1c8deb=window['String'](window['performance']['now']())['replace']('.','');let _0x20542e='u';for(let _0x50ec4f=0x0;_0x50ec4f<_0x1c8deb['length'];_0x50ec4f+=0x2){let _0x29e307=window['parseInt'](_0x1c8deb['substring'](_0x50ec4f,_0x50ec4f+0x2));_0x29e307>=0x3e&&(_0x29e307-=0x3e),_0x20542e+=_0x5a9e1a[_0x29e307];}return _0x20542e;}function _0x35cb9c(){const _0x19d412=_0x1b323c['split']('.');if(0x3!=_0x19d412['length'])return null;return _0x70ab91(_0x19d412[0x1]);function _0x70ab91(_0x51af66){const _0x1e111e=_0x3026f0(_0x51af66);return _0x1e111e&&_0x3c7cc2()?_0x1e111e:null;function _0x3c7cc2(){const _0x3c5ab6=_0x1e111e['jti'],_0x130272=window['parseInt'](_0x3c5ab6['substring'](_0x3c5ab6['length']-0x8),0x10),_0x2d20ec={..._0x1e111e,'jti':_0x3c5ab6['substring'](0x0,_0x3c5ab6['length']-0x8)};return delete _0x2d20ec['vc'],_0x5df5d5(_0x2d20ec)==_0x130272;}}}async function _0x54fbed(){let _0x3e9412=!0x0;try{const [_0x11e11d,_0x41b001,_0x6fae43]=_0x1b323c['split']('.');return _0x2fcb83(_0x11e11d),await _0x5369cd(_0x11e11d,_0x41b001,_0x6fae43),_0x3e9412;}catch{return!0x1;}function _0x2fcb83(_0x409b14){const _0x35a74e=_0x3026f0(_0x409b14);_0x35a74e&&'ES256'==_0x35a74e['alg']||(_0x3e9412=!0x1);}async function _0x5369cd(_0x4b3e54,_0x451167,_0x1ea397){const _0x5172b1=window['Uint8Array']['from'](_0x58995f(_0x1ea397),_0x4876bc=>_0x4876bc['charCodeAt'](0x0)),_0x2c5e2f=new window['TextEncoder']()['encode'](_0x4b3e54+'.'+_0x451167),_0x212363=window['crypto']['subtle'];if(!_0x212363)return;const _0x222909=await _0x212363['importKey']('jwk',_0x4bc33d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x212363['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x222909,_0x5172b1,_0x2c5e2f)||(_0x3e9412=!0x1);}}function _0x3026f0(_0x2cff1){return _0x2cff1['startsWith']('ey')?JSON['parse'](_0x58995f(_0x2cff1)):null;}function _0x58995f(_0x1efdae){return window['atob'](_0x1efdae['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5df5d5(_0x538912){let _0x17e4ad=0x1505;function _0x2b1c39(_0x35f06c){for(let _0x35190a=0x0;_0x35190a<_0x35f06c['length'];_0x35190a++){const _0x21fb4d=_0x35f06c['charCodeAt'](_0x35190a);_0x17e4ad=(_0x17e4ad<<0x5)+_0x17e4ad+_0x21fb4d,_0x17e4ad&=_0x17e4ad;}}function _0xe4f42e(_0x496eae){Array['isArray'](_0x496eae)?_0x496eae['forEach'](_0xe4f42e):_0x496eae&&'object'==typeof _0x496eae?Object['entries'](_0x496eae)['sort']()['forEach'](([_0x2298e9,_0x34554c])=>{_0x2b1c39(_0x2298e9),_0xe4f42e(_0x34554c);}):_0x2b1c39(window['String'](_0x496eae));}return _0xe4f42e(_0x538912),_0x17e4ad>>>0x0;}function _0x4a1e46(_0x2a22b3){return _0x2a22b3['toString'](0x10)['padStart'](0x8,'0');}function _0x177b45(_0x2ecfc5){return _0x2ecfc5['split']('')['reverse']()['join']('');}function _0x9c2afa(){}_0x63bbc6(await _0x12d98c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5daeb5){const {plugins:_0x40ddaa,editing:_0x501e26,model:_0x52ed38}=this['editor'],_0x345d99=_0x40ddaa['get'](V)['getFootnote'](_0x5daeb5);return!!_0x345d99&&(_0x52ed38['change'](_0x8bf4d5=>{_0x8bf4d5['setSelection'](_0x8bf4d5['createPositionAt'](_0x345d99['definition'],'end'));}),_0x501e26['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x21d2a1){const {plugins:_0x2b336c,editing:_0x501be8,model:_0x4cf12f}=this['editor'],_0x4e06eb=_0x2b336c['get'](V)['getFootnote'](_0x21d2a1);return!!_0x4e06eb&&(_0x4cf12f['change'](_0x38392d=>{_0x38392d['setSelection'](_0x4e06eb['reference'],'on');}),_0x501be8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3176c5}=this['editor']['model'],_0x3ef026=this['editor']['config']['get']('footnotes.multiBlock');_0x3176c5['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3176c5['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3176c5['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3ef026?_0x3176c5['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3176c5['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3176c5['addChildCheck'](_0x1b8e9d=>{for(const _0x30b0a2 of _0x1b8e9d)if('footnoteDefinition'===_0x30b0a2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x246d3d}=this,{conversion:_0x519269,editing:_0x2a068d}=_0x246d3d,{t:t}=_0x246d3d['locale'];_0x519269['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4460e8,{writer:_0x40ff3f,consumable:_0x3e89aa})=>{const _0x3ecf75=_0x4460e8['getChild'](0x0);if(!_0x3ecf75||!_0x3ecf75['is']('element','a'))return null;const _0x2de9ff=_0x3ecf75['getAttribute']('href')||'';if(!_0x2de9ff['startsWith']('#'))return null;const _0xa0d08e=_0x2de9ff['replace'](/^#/,'');if(!_0xa0d08e)return null;_0x3e89aa['consume'](_0x3ecf75,{'name':!0x0,'attributes':['href']});for(const {item:_0x1da7c9}of _0x2a068d['view']['createRangeIn'](_0x3ecf75))_0x1da7c9['is']('$textProxy')?_0x3e89aa['consume'](_0x1da7c9['textNode'],{'name':!0x0}):_0x1da7c9['is']('element')&&_0x3e89aa['consume'](_0x1da7c9,{'name':!0x0});return _0x40ff3f['createElement']('footnoteRef',{'footnoteId':_0xa0d08e});}}),_0x519269['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4ba5f2,{writer:_0x5731d0})=>X(_0x4ba5f2,_0x5731d0)}),_0x519269['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3182e3,{writer:_0x4276ae})=>{const _0x4519e3=_0x3182e3['getAttribute']('footnoteCounter');return _0x35f407(X(_0x3182e3,_0x4276ae),_0x4276ae,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4519e3)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1d013f}=this,{t:t}=_0x1d013f['locale'],{conversion:_0x191fd2}=_0x1d013f;_0x191fd2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x191fd2['for']('upcast')['add'](_0x1b6938=>{_0x1b6938['on']('element:ol',(_0xb67c12,_0x613af,_0x2b4fed)=>{const _0x1839be=_0x613af['viewItem'];if(!_0x1839be['hasClass']('footnotes-list')||!_0x613af['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2b4fed['consumable']['consume'](_0x1839be,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x13b1d4,modelCursor:_0x1bb5f8}=_0x2b4fed['convertChildren'](_0x613af['viewItem'],_0x613af['modelCursor']);_0x613af['modelRange']=_0x13b1d4,_0x613af['modelCursor']=_0x1bb5f8;}),_0x1b6938['on']('element:hr',(_0x36d9f2,_0x1f1e36,_0x3719f2)=>{const _0x2851c4=_0x1f1e36['viewItem'];_0x2851c4['hasClass']('footnotes-divider')&&_0x1f1e36['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3719f2['consumable']['consume'](_0x2851c4,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x191fd2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1656ca,{writer:_0x1ace39})=>H(_0x1ace39)}),_0x191fd2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x432190,{writer:_0x37962e})=>{const _0x1d026a=_0x35f407(H(_0x37962e,{'data-footnotes-list-label':t('Footnotes')}),_0x37962e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x37962e['setCustomProperty']('footnotesDefinitions',!0x0,_0x1d026a),_0x1d026a;}});}['_defineDefinitionConverters'](){const {editor:_0x24ada6}=this,{conversion:_0x4ae655,locale:_0x4b552e}=_0x24ada6,_0x225f78=_0x24ada6['config']['get']('footnotes.multiBlock');_0x4ae655['for']('upcast')['add'](_0x5dc31f=>{_0x5dc31f['on']('element:li',(_0x3f4b5e,_0x390b15,_0x4dd192)=>{const _0x5451e1=_0x390b15['viewItem'];if(!_0x5451e1['hasClass']('footnote-definition')||!_0x5451e1['getAttribute']('id'))return;const _0x106c35=_0x5451e1['parent'];if(!_0x106c35['is']('element','ol')||!_0x106c35['hasClass']('footnotes-list'))return;if(!_0x4dd192['consumable']['test'](_0x5451e1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x537284=_0x4dd192['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5451e1['getAttribute']('id')});if(!_0x4dd192['safeInsert'](_0x537284,_0x390b15['modelCursor']))return;_0x4dd192['consumable']['consume'](_0x5451e1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1b0c1d=Array['from'](_0x5451e1['getChildren']())['find'](_0x4b67aa=>_0x4b67aa['is']('element')&&_0x4b67aa['hasClass']('footnote-content'));for(const _0x617bb6 of _0x5451e1['getChildren']())_0x617bb6['is']('element')&&(_0x4dd192['consumable']['consume'](_0x617bb6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4dd192['consumable']['consume'](_0x617bb6,{'name':!0x0,'classes':'footnote-content'}));if(_0x1b0c1d){if(_0x225f78)_0x4dd192['convertChildren'](_0x1b0c1d,_0x537284);else{const _0x3b76ce=_0x4dd192['writer']['createElement']('footnoteInlineContent');_0x4dd192['writer']['insert'](_0x3b76ce,_0x537284),_0x4dd192['convertChildren'](_0x1b0c1d,_0x3b76ce);}}_0x4dd192['updateConversionResult'](_0x537284,_0x390b15);});}),_0x4ae655['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x26562a,{writer:_0x94b008})=>z(_0x26562a,_0x94b008,_0x4b552e,{'dataPipeline':!0x0})}),_0x4ae655['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x58bcc5,{writer:_0x5016ad})=>z(_0x58bcc5,_0x5016ad,_0x4b552e)});}['_defineBogusParagraphConverters'](){const {editor:_0x426c85}=this,{conversion:_0x414f5d}=_0x426c85;_0x426c85['config']['get']('footnotes.multiBlock')?(_0x414f5d['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':$(),'converterPriority':'high'}),_0x414f5d['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':$({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x426c85['model']['document'],'change:data',()=>{!function(_0x3432aa,_0x1cb050){const _0x589804=_0x3432aa['document']['differ'],_0x343c2a=new Set();for(const _0x37e9af of _0x589804['getChanges']()){const _0x1498af='attribute'==_0x37e9af['type']?_0x37e9af['range']['start']['parent']:_0x37e9af['position']['parent'];_0x1498af['is']('element','footnoteDefinition')&&_0x343c2a['add'](_0x1498af);}for(const _0x486e6f of _0x343c2a['values']()){const _0x346e58=Array['from'](_0x486e6f['getChildren']())['filter'](_0x455eb5=>B(_0x455eb5,_0x1cb050['mapper']));for(const _0xab5be7 of _0x346e58)_0x1cb050['reconvertItem'](_0xab5be7);}}(_0x426c85['model'],_0x426c85['editing']);})):(_0x414f5d['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':$()}),_0x414f5d['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x29a9e4,{writer:_0x369ef2})=>{const _0x3ab0b0=_0x369ef2['createContainerElement']('span');return _0x369ef2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3ab0b0),_0x3ab0b0;}}));}['_defineKeyboardHandlers'](){const {editor:_0x33ff5b}=this,{editing:_0x40eb32,t:t}=_0x33ff5b,_0x578de8=_0x33ff5b['model']['document']['selection'];_0x33ff5b['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x33ff5b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x40eb32['view']['document'],'enter',(_0x59fad5,_0x32157b)=>{const _0x204ec8=function(_0xb030f){const _0x298e1d=_0xb030f['getSelectedElement']();return _0x298e1d?.['is']('element','footnoteRef')?_0x298e1d:null;}(_0x578de8);if(_0x204ec8){const _0x47c6f7=_0x204ec8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x47c6f7),_0x32157b['preventDefault'](),_0x59fad5['stop']();}},{'context':_0x3c40cc});}['_defineClickHandlers'](){const {editor:_0x3c4f62}=this,{editing:_0x5c9e51}=_0x3c4f62;_0x3c4f62['editing']['view']['addObserver'](_0x2ae2c5),_0x3c4f62['editing']['view']['addObserver'](_0x1a1383);let _0x6e2dab=!0x1;this['listenTo'](_0x5c9e51['view']['document'],'pointerdown',(_0x30def7,_0x2db405)=>{const {target:_0x160951}=_0x2db405,_0x1668ff=_0x5c9e51['view']['document']['selection'];_0x6e2dab=!!(_0x160951?.['is']('element','a')&&_0x160951['parent']?.['is']('element','sup')&&_0x160951['parent']['hasClass']('footnote'))&&_0x1668ff['getSelectedElement']()===_0x160951['parent'];},{'priority':'high'}),this['listenTo'](_0x5c9e51['view']['document'],'click',(_0x4f465c,_0x4d447f)=>{const {target:_0x1c32af}=_0x4d447f;if(!_0x1c32af?.['is']('element','a'))return;if(_0x1c32af['parent']?.['is']('element','sup')&&_0x1c32af['parent']['hasClass']('footnote')&&!_0x6e2dab)return void _0x4d447f['preventDefault']();let _0x232ac0=_0x1c32af['getAttribute']('href');if(!_0x232ac0?.['startsWith']('#'))return;_0x232ac0=_0x232ac0['slice'](0x1);let _0x2e59a5=!0x1;(_0x232ac0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x232ac0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x232ac0))&&(_0x2e59a5=!0x0),_0x2e59a5&&(_0x4d447f['preventDefault'](),_0x4f465c['stop']());},{'priority':'high','context':'$capture'});}};function $({dataPipeline:_0x50c1e3}={}){return(_0x1fb44e,{writer:_0x50a8da})=>{if(!M(_0x1fb44e))return null;if(!_0x50c1e3)return _0x50a8da['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5e6c3e=_0x50a8da['createContainerElement']('p');return _0x50a8da['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5e6c3e),_0x5e6c3e;};}function M(_0x29f230){const {parent:_0x1fd026}=_0x29f230;if(!_0x1fd026?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1fd026['childCount'])return!0x1;for(const _0x4dd246 of _0x29f230['getAttributeKeys']())if(!_0x4dd246['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4dd246)return!0x1;return!0x0;}function B(_0x2b90a0,_0x4a2cac){if(!_0x2b90a0['is']('element','paragraph'))return!0x1;const _0x2f3d58=_0x4a2cac['toViewElement'](_0x2b90a0);return!!_0x2f3d58&&M(_0x2b90a0)!==_0x2f3d58['is']('element','span');}function q(_0x1c7f65){return _0x3c40cc(_0x1c7f65)&&_0x1c7f65['is']('containerElement')&&!!_0x1c7f65['getCustomProperty']('footnotesDefinitions');}function H(_0x3d14de,_0x1c86f1={}){const _0x2630f9=_0x3d14de['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5b12f9=_0x3d14de['createContainerElement']('ol',{'class':'footnotes-list'},_0x3d14de['createSlot']());return _0x3d14de['createContainerElement']('div',{'class':'footnotes',..._0x1c86f1},[_0x2630f9,_0x5b12f9]);}function X(_0x1e32e4,_0xe81fcc){const _0x8285cc=_0x1e32e4['getAttribute']('footnoteId'),_0x11e894=_0x1e32e4['getAttribute']('footnoteCounter'),_0x8a3a5a=_0xe81fcc['createUIElement']('a',{'href':'#'+_0x8285cc},function(_0x576de2){const _0x1f71f4=this['toDomElement'](_0x576de2);return _0x1f71f4['textContent']=_0x11e894,_0x1f71f4;}),_0x743a=_0xe81fcc['createContainerElement']('sup',{'id':'ref-'+_0x8285cc,'class':'footnote'},[_0x8a3a5a]);return _0x743a['getFillerOffset']=()=>null,_0x743a;}function z(_0x42c5de,_0x4661bf,_0x8f059d,{dataPipeline:_0x5dcfa9}={}){const {t:t}=_0x8f059d,_0x22553e=_0x42c5de['getAttribute']('footnoteId'),_0xfb140b=_0x4661bf['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x22553e},function(_0x2e9839){const _0x274884=this['toDomElement'](_0x2e9839);return _0x274884['innerText']='^',_0x274884;}),_0xbd416e=_0x5dcfa9?_0x4661bf['createContainerElement']('div',{'class':'footnote-content'}):_0x1afe4e(_0x4661bf['createEditableElement']('div',{'class':'footnote-content'}),_0x4661bf,{'label':t('Footnote\x20content.')});return _0x4661bf['insert'](_0x4661bf['createPositionAt'](_0xbd416e,0x0),_0x4661bf['createSlot']()),_0x4661bf['createContainerElement']('li',{'class':'footnote-definition','id':_0x22553e},[_0xfb140b,_0xbd416e]);}var J=class extends _0xf272d3{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[U,_0x51b612];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x328663}=this,{plugins:_0x45e8de,model:_0x10cc23}=_0x328663,_0x1e8463=_0x45e8de['get'](_0x51b612),_0x1a3d4d=_0x45e8de['get'](V);this['listenTo'](_0x1e8463,'outputTransformation',(_0x25f909,_0xaf4500)=>{const _0x574043=G(_0x10cc23['createRangeIn'](_0xaf4500['content']));if(!_0x574043['length'])return;const _0x4d8ca4=_0x1a3d4d['getFootnotes'](),_0x5d622c=_0x574043['reduce']((_0x4807dc,_0x6f371a)=>{const _0x4bd70c=_0x4d8ca4['find'](_0x1a27ea=>_0x1a27ea['id']===_0x6f371a);if(_0x4bd70c){const _0x23b062=_0x328663['data']['toView'](_0x4bd70c['definition'],{'isClipboardPipeline':!0x0}),_0x5c04f9=_0x328663['data']['htmlProcessor']['toData'](_0x23b062);_0x4807dc[_0x4bd70c['id']]=_0x5c04f9;}return _0x4807dc;},Object['create'](null));_0xaf4500['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5d622c));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2b1aa1}=this,{model:_0x518eca,plugins:_0x442f0f}=_0x2b1aa1,{view:_0x71276e}=_0x2b1aa1['editing'],_0x4168a3=_0x442f0f['get'](_0x51b612),_0x1e4e3f=_0x442f0f['get'](V),_0x47ac4f=_0x2b1aa1['config']['get']('footnotes.multiBlock');let _0xa5a7c0=null;this['listenTo'](_0x71276e['document'],'clipboardInput',(_0x116132,_0x53259f)=>{const _0x5f303c=_0x53259f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xa5a7c0=_0x5f303c?JSON['parse'](_0x5f303c):null;}),this['listenTo'](_0x4168a3,'contentInsertion',(_0x5dcd4d,_0x56efb0)=>{const _0x44f43c=_0x56efb0['sourceEditorId']===this['editor']['id'];_0x44f43c&&'drop'===_0x56efb0['method']||_0x518eca['change'](_0x310fe=>{let _0x5c4043=_0x1e4e3f['getFootnotesDefinitionsObjectElement']();const _0x508cda=!!_0x5c4043&&Array['from'](_0x518eca['document']['selection']['getSelectedBlocks']())['includes'](_0x5c4043);if(!_0xa5a7c0&&function(_0x46d3f8){for(const {item:_0x3e0663}of _0x46d3f8)if(_0x3e0663['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x518eca['createRangeIn'](_0x56efb0['content']))&&(_0xa5a7c0=function(_0xc29bbf,_0x4b6fc1){const _0x462423=Q(_0xc29bbf,_0x4b6fc1);if(!_0x462423)return null;const _0x5d4b60=Object['create'](null);for(const _0x563e16 of _0x462423['getChildren']())_0x563e16['is']('element','footnoteDefinition')&&_0x563e16['hasAttribute']('footnoteId')&&(_0x5d4b60[_0x563e16['getAttribute']('footnoteId')]=_0xc29bbf['cloneElement'](_0x563e16,!0x0));return Object['keys'](_0x5d4b60)['length']?_0x5d4b60:null;}(_0x310fe,_0x56efb0['content'])),(_0x5c4043&&!_0x508cda||!_0x5c4043&&!_0xa5a7c0)&&function(_0x56098c,_0x2b1525){const _0x23f2bf=[];for(const {item:_0x3a96bf}of _0x56098c['createRangeIn'](_0x2b1525))_0x3a96bf['is']('element','footnotesDefinitions')&&_0x23f2bf['push'](_0x3a96bf);for(const _0x2b1d4e of _0x23f2bf)_0x56098c['remove'](_0x2b1d4e);}(_0x310fe,_0x56efb0['content']),!_0xa5a7c0)return;const {selection:_0x326b08}=_0x518eca['document'],_0x5d08ee=_0x326b08['getFirstRange']()['root'];_0x5c4043&&!_0x508cda||(_0x5c4043=Q(_0x310fe,_0x56efb0['content']),_0x5c4043||=_0x1e4e3f['_insertEmptyFootnotesDefinitionsContainer'](_0x310fe,_0x5d08ee));const _0xc5b41=Array['from'](_0x326b08['getRanges']())['flatMap'](G),_0x2aea41=function(_0x229a87,_0x312223,_0x1d32e5){const _0x54c115=Object['create'](null);for(const {item:_0x326929}of _0x229a87['createRangeIn'](_0x312223))if(_0x326929['is']('element','footnoteRef')){const _0x445292=_0x326929['getAttribute']('footnoteId');if(!_0x1d32e5(_0x445292))continue;_0x54c115[_0x445292]||(_0x54c115[_0x445292]=_0x170b6f()),_0x229a87['setAttribute']('footnoteId',_0x54c115[_0x445292],_0x326929);}return _0x54c115;}(_0x310fe,_0x56efb0['content'],_0xe3faf1=>!_0x44f43c||!!_0x1e4e3f['getFootnote'](_0xe3faf1)&&!_0xc5b41['includes'](_0xe3faf1));for(const [_0x3879e8,_0x5bc29e]of Object['entries'](_0xa5a7c0)){const _0x152887=_0x2aea41[_0x3879e8]||_0x3879e8;let _0x3da034;if('string'!=typeof _0x5bc29e)_0x3da034=_0x5bc29e,_0x152887!==_0x3879e8&&_0x310fe['setAttribute']('footnoteId',_0x152887,_0x3da034);else{_0x3da034=_0x310fe['createElement']('footnoteDefinition',{'footnoteId':_0x152887});const _0x5196ff=_0x2b1aa1['data']['htmlProcessor']['toView'](_0x5bc29e);let _0x59a118;if(_0x47ac4f)_0x59a118=_0x2b1aa1['data']['toModel'](_0x5196ff,_0x3da034);else{_0x59a118=_0x310fe['createElement']('footnoteInlineContent');const _0x1ef537=_0x2b1aa1['data']['toModel'](_0x5196ff,_0x59a118);_0x310fe['insert'](_0x1ef537,_0x59a118);}_0x310fe['append'](_0x59a118,_0x3da034);}_0x310fe['insert'](_0x3da034,_0x5c4043,'end');}_0xa5a7c0=null;});});}};function Q(_0x2e7b3b,_0x55c81b){for(const {item:_0x275fc2}of _0x2e7b3b['createRangeIn'](_0x55c81b))if(_0x275fc2['is']('element','footnotesDefinitions'))return _0x275fc2;return null;}function G(_0x202a35){const _0x5cb360=new Set();for(const {item:_0x344f30}of _0x202a35)_0x344f30['is']('element','footnoteRef')&&_0x5cb360['add'](_0x344f30['getAttribute']('footnoteId'));return Array['from'](_0x5cb360);}var W=class extends _0xf272d3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9674cd}=this,{componentFactory:_0x3944cf}=_0x9674cd['ui'];_0x3944cf['add']('insertFootnote',Y(_0x9674cd,_0x582eb6)),_0x3944cf['add']('menuBar:insertFootnote',Y(_0x9674cd,_0x3af553)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13cd76=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57c6cb;for(const _0x31af7e in _0x13cd76){const _0x30130f=_0x31af7e,_0x5ab449=_0x13cd76[_0x30130f];if('footnotesLicenseKeyValid'==_0x5ab449||'footnotesLicenseKeyInvalid'==_0x5ab449||'footnotesLicenseKeyExpired'==_0x5ab449||'footnotesLicenseKeyDomainLimit'==_0x5ab449||'footnotesLicenseKeyNotAllowed'==_0x5ab449||'footnotesLicenseKeyEvaluationLimit'==_0x5ab449||'footnotesLicenseKeyUsageLimit'==_0x5ab449){delete _0x13cd76[_0x30130f],_0x57c6cb=_0x5ab449,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x57c6cb&&_0x13cd76['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x57c6cb&&_0x13cd76['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x57c6cb&&_0x13cd76['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x57c6cb&&_0x13cd76['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x57c6cb&&_0x13cd76['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x57c6cb&&_0x13cd76['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Y(_0x5ee00f,_0x3e9a04){const _0x4afd8d=_0x5ee00f['commands']['get']('insertFootnote');return _0x305ee5=>{const {t:t}=_0x305ee5,_0x20651a=new _0x3e9a04(_0x305ee5),_0x31b384=_0x20651a instanceof _0x3af553;return _0x20651a['bind']('isEnabled')['to'](_0x4afd8d,'isEnabled'),_0x20651a['set']({'label':t(_0x31b384?'Footnote':'Insert\x20footnote'),'icon':_0x258258,'tooltip':!0x0}),_0x20651a['on']('execute',()=>{_0x4afd8d['execute'](),_0x5ee00f['editing']['view']['focus']();}),_0x20651a;};}var Z=class extends _0xf272d3{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[U,J,W];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const tt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],et=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),ot=[...tt,'arabic-indic','lower-alpha','upper-alpha'];var nt=class extends _0x336c1a{['refresh'](){const {editor:_0x5ee821}=this,_0x4b6508=_0x5ee821['plugins']['get'](V)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b6508,this['value']=_0x4b6508?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x62fec5}){const {editor:_0x35a760}=this,_0x3094fa=_0x35a760['plugins']['get'](V),_0x35cb0d=_0x3094fa['getFootnotesDefinitionsObjectElement']();_0x35cb0d&&ot['includes'](_0x62fec5)&&_0x35a760['model']['change'](_0x21e2a2=>{_0x21e2a2['setAttribute']('footnotesListStyle',_0x62fec5,_0x35cb0d),_0x3094fa['_updateFootnotesCounters'](_0x21e2a2);});}},it=class extends _0x336c1a{['refresh'](){const {editor:_0x2e0e33}=this,_0x111e84=_0x2e0e33['plugins']['get'](V)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x111e84,this['value']=_0x111e84?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1ec395}){const {editor:_0x2010a6}=this,_0x9c3837=_0x2010a6['plugins']['get'](V),_0x26f6b2=_0x9c3837['getFootnotesDefinitionsObjectElement']();_0x26f6b2&&Number['isInteger'](_0x1ec395)&&_0x2010a6['model']['change'](_0x1bf327=>{_0x1bf327['setAttribute']('footnotesListStart',_0x1ec395,_0x26f6b2),_0x9c3837['_updateFootnotesCounters'](_0x1bf327);});}};function st({style:_0x4d3028,digits:_0xa94b82,value:_0x11ca68}){const _0x5bf7f9=Math['floor'](_0x11ca68),_0x6a11c0=function(_0x589507){switch(_0x589507){case'lower-alpha':case'lower-latin':case'upper-alpha':case'upper-latin':return{'min':0x1,'max':0x1/0x0};case'lower-roman':case'upper-roman':return{'min':0x1,'max':0xf9f};default:return{'min':-0x1/0x0,'max':0x1/0x0};}}(_0x4d3028);switch((_0x5bf7f9>_0x6a11c0['max']||_0x5bf7f9<_0x6a11c0['min'])&&(_0x4d3028='decimal'),_0x4d3028){case'decimal-leading-zero':return function(_0x5660a3,_0x4d0543){return String(_0x5660a3)['padStart'](_0x4d0543,'0');}(_0x5bf7f9,Math['max'](0x2,_0xa94b82));case'lower-alpha':case'lower-latin':return rt(_0x5bf7f9,!0x1);case'upper-alpha':case'upper-latin':return rt(_0x5bf7f9,!0x0);case'lower-roman':return at(_0x5bf7f9,!0x1);case'upper-roman':return at(_0x5bf7f9,!0x0);case'arabic-indic':return String(_0x5bf7f9)['replace'](/\d/g,_0x40a37a=>ft[Number(_0x40a37a)]);default:return String(_0x5bf7f9);}}function rt(_0x5abcdf,_0x1e9a1d){let _0x178336='',_0x170fdd=_0x5abcdf;for(;_0x170fdd>0x0;){const _0x5d07d4=(_0x170fdd-0x1)%0x1a;_0x178336=String['fromCharCode'](0x61+_0x5d07d4)+_0x178336,_0x170fdd=Math['floor']((_0x170fdd-0x1)/0x1a);}return _0x1e9a1d?_0x178336['toUpperCase']():_0x178336;}const lt=[{'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 at(_0x318e6f,_0x30da79){let _0x526d3c='',_0x6f3e83=_0x318e6f;for(const {value:_0x814dea,numeral:_0x45f644}of lt)for(;_0x6f3e83>=_0x814dea;)_0x526d3c+=_0x45f644,_0x6f3e83-=_0x814dea;return _0x30da79?_0x526d3c:_0x526d3c['toLowerCase']();}const ft=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];var ct=class extends _0xf272d3{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[U,V];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a2dd3}=this;_0x1a2dd3['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1a2dd3['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1a2dd3['config']['define']('footnotes.footnotesProperties.listStyles',[...tt]),_0x1a2dd3['commands']['add']('footnotesStyle',new nt(_0x1a2dd3)),_0x1a2dd3['commands']['add']('footnotesStart',new it(_0x1a2dd3)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x6be781}=this,{schema:_0x3a214c}=_0x6be781['model'];_0x3a214c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4764ba}=this,{conversion:_0xbfc63f,model:_0x33b6b6}=_0x4764ba,{schema:_0x3017f9}=_0x33b6b6;_0xbfc63f['for']('upcast')['add'](_0x2ad9dd=>{_0x2ad9dd['on']('element:ol',(_0xa79be6,_0x3a8f1e,_0x12567b)=>{const _0x187b27=_0x3a8f1e['viewItem'],_0x4aa639=_0x3a8f1e['modelCursor']?.['parent'];_0x187b27['hasClass']('footnotes-list')&&_0x4aa639?.['is']('element','footnotesDefinitions')&&(function(_0x26bd2d,_0x56ad6d,_0x1c6a00,_0x290c27){if(!_0x290c27['checkAttribute'](_0x56ad6d,'footnotesListStart'))return;let _0xfb5faa=0x1;const _0x1ae801=_0x1c6a00['consumable']['consume'](_0x26bd2d,{'attributes':'start'});if(_0x1ae801){const _0x420a05=Number['parseInt'](_0x26bd2d['getAttribute']('start'),0xa);Number['isNaN'](_0x420a05)||(_0xfb5faa=_0x420a05);}!_0x1ae801&&_0x56ad6d['hasAttribute']('footnotesListStart')||_0x1c6a00['writer']['setAttribute']('footnotesListStart',_0xfb5faa,_0x56ad6d);}(_0x187b27,_0x4aa639,_0x12567b,_0x3017f9),function(_0x2db54a,_0x33608e,_0x1b6fae,_0x1d74e1){if(!_0x1d74e1['checkAttribute'](_0x33608e,'footnotesListStyle'))return;let _0x4c09a0='decimal',_0x26c08e=!0x1;if(_0x1b6fae['consumable']['consume'](_0x2db54a,{'attributes':'type'})){const _0x2796c0={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x2db54a['getAttribute']('type')];_0x2796c0&&(_0x4c09a0=_0x2796c0),_0x26c08e=!0x0;}if(_0x1b6fae['consumable']['consume'](_0x2db54a,{'styles':'list-style-type'})){const _0x10f84d=ut(_0x2db54a['getStyle']('list-style-type'));_0x10f84d&&(_0x4c09a0=_0x10f84d),_0x26c08e=!0x0;}!_0x26c08e&&_0x33608e['hasAttribute']('footnotesListStyle')||_0x1b6fae['writer']['setAttribute']('footnotesListStyle',_0x4c09a0,_0x33608e);}(_0x187b27,_0x4aa639,_0x12567b,_0x3017f9));});}),_0xbfc63f['for']('downcast')['add'](_0x3f9772=>{_0x3f9772['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5a0d31,_0x3cad28,_0x3b2e8a)=>{if(!_0x3b2e8a['consumable']['consume'](_0x3cad28['item'],_0x5a0d31['name']))return;const _0x30b4a8=dt(_0x3cad28['item'],_0x3b2e8a['mapper']),{attributeNewValue:_0x534b70}=_0x3cad28;null==_0x534b70||0x1===_0x534b70?_0x3b2e8a['writer']['removeAttribute']('start',_0x30b4a8):_0x3b2e8a['writer']['setAttribute']('start',String(_0x534b70),_0x30b4a8);}),_0x3f9772['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2ae4b6,_0x32675d,_0x265878)=>{if(!_0x265878['consumable']['consume'](_0x32675d['item'],_0x2ae4b6['name']))return;const _0xb8063=dt(_0x32675d['item'],_0x265878['mapper']),{attributeNewValue:_0x4de3f8}=_0x32675d;_0x4de3f8&&'decimal'!==_0x4de3f8?_0x265878['writer']['setStyle']('list-style-type',_0x4de3f8,_0xb8063):_0x265878['writer']['removeStyle']('list-style-type',_0xb8063);});});}['_definePostfixer'](){const {editor:_0x4fb317}=this,{model:_0x2ef7ac}=_0x4fb317,_0x489b3c=_0x4fb317['plugins']['get'](V),_0x52d2b4=this['_getDefaultListStyle'](),_0x315169=this['_getDefaultStartIndex']();_0x2ef7ac['document']['registerPostFixer'](_0x78e0a2=>{const _0x22338d=_0x2ef7ac['document']['differ']['getChanges']();let _0x17bf34=!0x1;for(const _0x10267d of _0x22338d){if('insert'!==_0x10267d['type']||'$text'===_0x10267d['name'])continue;const _0x2fb01a=_0x2ef7ac['createRangeOn'](_0x10267d['position']['nodeAfter']);for(const _0x452b4b of _0x2fb01a['getItems']())_0x452b4b['is']('element','footnotesDefinitions')&&(!_0x452b4b['hasAttribute']('footnotesListStart')&&_0x2ef7ac['schema']['checkAttribute'](_0x452b4b,'footnotesListStart')&&(_0x78e0a2['setAttribute']('footnotesListStart',_0x315169,_0x452b4b),_0x17bf34=!0x0),!_0x452b4b['hasAttribute']('footnotesListStyle')&&_0x2ef7ac['schema']['checkAttribute'](_0x452b4b,'footnotesListStyle')&&(_0x78e0a2['setAttribute']('footnotesListStyle',_0x52d2b4,_0x452b4b),_0x17bf34=!0x0));}return _0x17bf34&&_0x489b3c['_updateFootnotesCounters'](_0x78e0a2),_0x17bf34;});}['_defineFormatter'](){const {editor:_0x185386}=this;_0x185386['plugins']['get'](V)['setFootnoteFormatter'](_0x2fabd0=>this['_formatFootnoteListValue'](_0x2fabd0));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4b4fcd,value:_0x470b0d,digits:_0x1b4e7b}){const _0x1f691c=_0x4b4fcd['getAttribute']('footnotesListStyle');return st({'value':_0x470b0d+(_0x4b4fcd['getAttribute']('footnotesListStart')??0x1)-0x1,'style':_0x1f691c,'digits':_0x1b4e7b});}};function ut(_0x310e14){if('string'==typeof _0x310e14){const _0x45c4f5=et[_0x310e14];if(_0x45c4f5)return _0x45c4f5;if(ot['includes'](_0x310e14))return _0x310e14;}return null;}function dt(_0x2faff5,_0x2c2b39){const _0x29bf30=_0x2c2b39['toViewElement'](_0x2faff5);return Array['from'](_0x29bf30['getChildren']())['find'](_0x587678=>_0x587678['is']('element','ol')&&_0x587678['hasClass']('footnotes-list'));}var ht=class extends _0x4af5ae{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0xe59a53();['keystrokes']=new _0x3919f6();['focusables']=new _0xe8ec4e();['focusCycler'];constructor(_0x3aaba1,{styleButtonViews:_0x40155e,styleGridAriaLabel:_0x589d10}){super(_0x3aaba1),(this['focusCycler']=new _0x3070ad({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x40155e,_0x589d10),[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 _0x3d70ce of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3d70ce['element']);_0x27071f({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x322ab6['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 _0x1acaeb=_0x587f67=>_0x587f67['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1acaeb),this['keystrokes']['set']('arrowleft',_0x1acaeb),this['keystrokes']['set']('arrowup',_0x1acaeb),this['keystrokes']['set']('arrowdown',_0x1acaeb);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xaf3026,_0x453de6){const _0x33751a=new _0x4af5ae(this['locale']);return _0x33751a['children']=_0x33751a['createCollection'](),_0x33751a['children']['addMany'](_0xaf3026),_0x33751a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x453de6,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x33751a['children']}),_0x33751a['children']['delegate']('execute')['to'](this),_0x33751a['focus']=function(){for(const _0x3677fe of this['children'])if(_0x3677fe instanceof _0x582eb6&&_0x3677fe['isOn'])return void _0x3677fe['focus']();this['children']['first']['focus']();},_0x33751a['focusTracker']=new _0xe59a53(),_0x33751a['keystrokes']=new _0x3919f6(),_0x33751a['render'](),_0x33751a['keystrokes']['listenTo'](_0x33751a['element']),this['children']['add'](_0x33751a),_0x33751a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x213bf9=this['_createStartIndexPropertyView'](),_0x9ba00f=[_0x213bf9],_0x4160b8=new _0x42ba7d(this['locale'],_0x9ba00f);return _0x4160b8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4160b8['buttonView']['bind']('isEnabled')['toMany'](_0x9ba00f,'isEnabled',(..._0x47c573)=>_0x47c573['some'](_0x33ba2a=>_0x33ba2a)),_0x4160b8['buttonView']['on']('change:isEnabled',(_0x30a106,_0x3f374f,_0x1b2f67)=>{_0x1b2f67||(_0x4160b8['isCollapsed']=!0x0);}),this['children']['add'](_0x4160b8),[_0x213bf9,_0x4160b8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x189e43=new _0x48401c(this['locale'],_0x22de95);return _0x189e43['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x189e43['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x189e43['fieldView']['on']('input',()=>{const _0x260aa7=_0x189e43['fieldView']['element'],_0x1208c8=_0x260aa7['valueAsNumber'];Number['isNaN'](_0x1208c8)?_0x189e43['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x260aa7['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1208c8}):_0x189e43['errorText']=t(_0x1208c8<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x189e43;}},mt=class extends _0xf272d3{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2d30d1,_0x3a7afb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51ea51}=this,{componentFactory:_0x4cf67c}=_0x51ea51['ui'];_0x51ea51['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4cf67c['add']('footnotesStyle',function(_0x404ec6){return _0x27ae73=>{const {t:t}=_0x27ae73,_0x1abaeb=_0x404ec6['commands']['get']('footnotesStyle'),_0xbe90aa=_0x2e3085(_0x27ae73),{buttonView:_0x20f257}=_0xbe90aa;return _0xbe90aa['class']='ck-footnotes-styles-dropdown',_0xbe90aa['bind']('isEnabled')['to'](_0x1abaeb,'isEnabled'),_0x20f257['set']({'label':t('Footnotes\x20style'),'icon':_0x258258,'tooltip':!0x0}),_0xbe90aa['once']('change:isOpen',()=>{const _0x5df311=function({editor:_0x47bce7,dropdownView:_0x22298d}){const {t:t}=_0x47bce7['locale'],_0x101a18=t('Footnotes\x20definitions\x20styles'),_0x155fa1=function(_0x38a923){const {t:t}=_0x38a923['locale'],_0x3bb708=_0x38a923['config']['get']('footnotes.footnotesProperties.listStyles'),_0x552d7a=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':_0x2865a9},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':_0x2de3e4},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':_0x2c8f30},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':_0x4bbe04},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':_0x3a1fa3},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':_0x10f211},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_0x510226}];return _0x3bb708['map'](_0x882c65=>{const _0x4b3b2d=ut(_0x882c65);return function(_0x4a3e82,_0x250b0e){const {locale:_0x18e39e}=_0x4a3e82,{label:_0x182b50,icon:_0x43ba68,tooltip:_0x25226d,style:_0x214f50}=_0x250b0e,_0x99de81=_0x4a3e82['commands']['get']('footnotesStyle'),_0x2b6fd4=new _0x582eb6(_0x18e39e);return _0x2b6fd4['set']({'label':_0x182b50,'icon':_0x43ba68,'tooltip':_0x25226d}),_0x2b6fd4['bind']('isOn')['to'](_0x99de81,'value',_0x4ffbe3=>_0x4ffbe3===_0x214f50),_0x2b6fd4['bind']('isEnabled')['to'](_0x99de81,'isEnabled'),_0x2b6fd4['on']('execute',()=>{_0x4a3e82['execute']('footnotesStyle',{'value':_0x214f50}),_0x4a3e82['editing']['view']['focus']();}),_0x2b6fd4;}(_0x38a923,_0x552d7a['find'](_0x29a38c=>_0x29a38c['style']===_0x4b3b2d));});}(_0x47bce7),_0x561c3d=new ht(_0x47bce7['locale'],{'styleGridAriaLabel':_0x101a18,'styleButtonViews':_0x155fa1}),_0x578b7d=_0x47bce7['commands']['get']('footnotesStart');return _0x561c3d['startIndexFieldView']['bind']('isEnabled')['to'](_0x578b7d),_0x561c3d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x578b7d),_0x561c3d['on']('footnotesListStart',(_0x266168,_0x563aab)=>{_0x47bce7['execute']('footnotesStart',{'value':_0x563aab['startIndex']});}),_0x561c3d['delegate']('execute')['to'](_0x22298d),_0x561c3d;}({'editor':_0x404ec6,'dropdownView':_0xbe90aa});_0xbe90aa['panelView']['children']['add'](_0x5df311);}),_0xbe90aa;};}(_0x51ea51));}['afterInit'](){const {editor:_0x380c76}=this,{t:t}=_0x380c76['locale'],_0x5004cd=_0x380c76['plugins']['get'](_0x3a7afb),{defaultPositions:_0x435f40}=_0x3c1fb4;_0x5004cd['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x380c76['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x177c3f=>{let _0x4bba09=_0x177c3f['getFirstPosition']()?.['parent'];return _0x4bba09?.['is']('$text')&&(_0x4bba09=_0x4bba09['parent']),_0x4bba09?.['is']('element')?_0x4bba09['findAncestor'](q):null;},'positions':[_0x435f40['southArrowNorth'],_0x435f40['southArrowNorthMiddleWest'],_0x435f40['southArrowNorthMiddleEast'],_0x435f40['southArrowNorthWest'],_0x435f40['southArrowNorthEast'],_0x435f40['northArrowSouth'],_0x435f40['northArrowSouthMiddleWest'],_0x435f40['northArrowSouthMiddleEast'],_0x435f40['northArrowSouthWest'],_0x435f40['northArrowSouthEast'],_0x435f40['viewportStickyNorth']]});}},pt=class extends _0xf272d3{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[ct,mt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Z as Footnotes,J as FootnotesClipboard,U as FootnotesEditing,pt as FootnotesProperties,ct as FootnotesPropertiesEditing,mt as FootnotesPropertiesUI,it as FootnotesStartCommand,nt as FootnotesStyleCommand,V as FootnotesTracker,W as FootnotesUI,j as InsertFootnoteCommand};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import type { ModelElement, Model, DifferItem } from
|
|
6
|
+
* @module footnotes/modelelementtracker
|
|
7
|
+
*/
|
|
8
|
+
import type { ModelElement, Model, DifferItem } from "@ckeditor/ckeditor5-engine";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* Tracks changes of specific elements in document changes.
|
|
11
|
+
*/
|
|
12
12
|
export declare class ModelElementTracker {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @param model The editor model instance.
|
|
15
|
+
* @param config Configuration for tracking specific element type.
|
|
16
|
+
*/
|
|
17
|
+
constructor(model: Model, config: TrackElementChangesConfig);
|
|
18
|
+
/**
|
|
19
|
+
* Resets the tracker, clearing all tracked elements.
|
|
20
|
+
*/
|
|
21
|
+
reset(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Analyzes document changes and returns the set of changes for the tracked element type.
|
|
24
|
+
*
|
|
25
|
+
* @param documentChanges Array of document changes to analyze.
|
|
26
|
+
* @returns Object containing removed, inserted, and moved elements.
|
|
27
|
+
*/
|
|
28
|
+
getChanges(documentChanges: Array<DifferItem>): ElementChangesResult;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* Configuration for tracking element changes.
|
|
32
|
+
*/
|
|
33
33
|
type TrackElementChangesConfig = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Name of the element to track (e.g., 'footnoteRef', 'footnotesDefinitions').
|
|
36
|
+
*/
|
|
37
|
+
elementName: string;
|
|
38
|
+
/**
|
|
39
|
+
* Function to extract a unique key from the element for tracking purposes.
|
|
40
|
+
*/
|
|
41
|
+
getElementKey: (element: ModelElement) => string;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
* Result of tracking element changes.
|
|
45
|
+
*/
|
|
46
46
|
type ElementChangesResult = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Set of removed element keys.
|
|
49
|
+
*/
|
|
50
|
+
removed: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Map of inserted element keys to their elements.
|
|
53
|
+
*/
|
|
54
|
+
inserted: Array<ModelElement>;
|
|
55
|
+
/**
|
|
56
|
+
* Set of moved elements (removed + inserted).
|
|
57
|
+
*/
|
|
58
|
+
moved: Array<ModelElement>;
|
|
59
59
|
};
|
|
60
60
|
export {};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Footnote':'','Footnotes':'','Footnotes\x20properties':'','Footnotes\x20start\x20at':'','Invalid\x20footnotes\x20start\x20index\x20value.':'','Footnotes\x20start\x20index\x20is\x20too\x20large.':'','Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'','Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.':'','Footnote\x20content.':'','Footnotes\x20definitions\x20styles':'','Footnotes\x20definitions\x20toolbar':'','Insert\x20footnote':'','Footnotes\x20style':'','Toggle\x20the\x20decimal\x20footnotes\x20style':'','Decimal\x20footnotes':'','Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style':'','Decimal\x20footnotes\x20with\x20leading\x20zero':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\x20footnotes':'','Arabic-indic\x20footnotes':'','Lower-roman\x20footnotes':'','Toggle\x20the\x20lower-roman\x20footnotes\x20style':'','Toggle\x20the\x20upper-roman\x20footnotes\x20style':'','Toggle\x20the\x20lower-latin\x20footnotes\x20style':'','Toggle\x20the\x20upper-latin\x20footnotes\x20style':'','Toggle\x20the\x20arabic-indic\x20footnotes\x20style':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Footnote':'','Footnotes':'','Footnotes\x20properties':'','Footnotes\x20start\x20at':'','Invalid\x20footnotes\x20start\x20index\x20value.':'','Footnotes\x20start\x20index\x20is\x20too\x20large.':'','Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'','Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.':'','Footnote\x20content.':'','Footnotes\x20definitions\x20styles':'','Footnotes\x20definitions\x20toolbar':'','Insert\x20footnote':'','Footnotes\x20style':'','Toggle\x20the\x20decimal\x20footnotes\x20style':'','Decimal\x20footnotes':'','Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style':'','Decimal\x20footnotes\x20with\x20leading\x20zero':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\x20footnotes':'','Arabic-indic\x20footnotes':'','Lower-roman\x20footnotes':'','Toggle\x20the\x20lower-roman\x20footnotes\x20style':'','Toggle\x20the\x20upper-roman\x20footnotes\x20style':'','Toggle\x20the\x20lower-latin\x20footnotes\x20style':'','Toggle\x20the\x20upper-latin\x20footnotes\x20style':'','Toggle\x20the\x20arabic-indic\x20footnotes\x20style':''},'getPluralForm':_0xbe7a84=>0x1!=_0xbe7a84}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18cd17=>{const {af:{dictionary:_0x40cfea,getPluralForm:_0x169182}}={'af':{'dictionary':{'Footnote':'','Footnotes':'','Footnotes\x20properties':'','Footnotes\x20start\x20at':'','Invalid\x20footnotes\x20start\x20index\x20value.':'','Footnotes\x20start\x20index\x20is\x20too\x20large.':'','Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'','Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.':'','Footnote\x20content.':'','Footnotes\x20definitions\x20styles':'','Footnotes\x20definitions\x20toolbar':'','Insert\x20footnote':'','Footnotes\x20style':'','Toggle\x20the\x20decimal\x20footnotes\x20style':'','Decimal\x20footnotes':'','Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style':'','Decimal\x20footnotes\x20with\x20leading\x20zero':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\x20footnotes':'','Arabic-indic\x20footnotes':'','Lower-roman\x20footnotes':'','Toggle\x20the\x20lower-roman\x20footnotes\x20style':'','Toggle\x20the\x20upper-roman\x20footnotes\x20style':'','Toggle\x20the\x20lower-latin\x20footnotes\x20style':'','Toggle\x20the\x20upper-latin\x20footnotes\x20style':'','Toggle\x20the\x20arabic-indic\x20footnotes\x20style':''},'getPluralForm':_0x47f851=>0x1!=_0x47f851}};_0x18cd17['af']||={'dictionary':{},'getPluralForm':null},_0x18cd17['af']['dictionary']=Object['assign'](_0x18cd17['af']['dictionary'],_0x40cfea),_0x18cd17['af']['getPluralForm']=_0x169182;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Footnote':'حاشية\x20سفلية','Footnotes':'الحواشي\x20السفلية','Footnotes\x20properties':'خصائص\x20الحواشي\x20السفلية','Footnotes\x20start\x20at':'تبدأ\x20الحواشي\x20السفلية\x20من','Invalid\x20footnotes\x20start\x20index\x20value.':'قيمة\x20مؤشر\x20بداية\x20الحواشي\x20السفلية\x20غير\x20صحيحة.','Footnotes\x20start\x20index\x20is\x20too\x20large.':'مؤشر\x20بداية\x20الحواشي\x20السفلية\x20كبير\x20للغاية.','Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'يلزم\x20أن\x20يكون\x20مؤشر\x20بداية\x20الحواشي\x20السفلية\x20أكبر\x20من\x200.','Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.':'حاشية\x20سفلية\x20%0.\x20اضغط\x20على\x20مفتاح\x20الإدخال\x20(ENTER)\x20من\x20أجل\x20الانتقال\x20إلى\x20تعريف\x20الحاشية\x20السفلية.','Footnote\x20content.':'محتوى\x20الحاشية\x20السفلية.','Footnotes\x20definitions\x20styles':'أنماط\x20تعريفات\x20الحواشي\x20السفلية','Footnotes\x20definitions\x20toolbar':'شريط\x20أدوات\x20تعريفات\x20الحواشي\x20السفلية','Insert\x20footnote':'إدراج\x20حاشية\x20سفلية','Footnotes\x20style':'نمط\x20الحواشي\x20السفلية','Toggle\x20the\x20decimal\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20العشري','Decimal\x20footnotes':'الحواشي\x20السفلية\x20العشرية','Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style':'تبديل\x20العلامة\x20العشرية\x20بنمط\x20الحواشي\x20السفلية\x20بالصفر\x20البادئ','Decimal\x20footnotes\x20with\x20leading\x20zero':'حواشي\x20سفلية\x20عشرية\x20بالصفر\x20البادئ','Upper-roman\x20footnotes':'الحواشي\x20العلوية\x20الرومانية','Lower-latin\x20footnotes':'الحواشي\x20السفلية\x20اللاتينية','Upper-latin\x20footnotes':'الحواشي\x20العلوية\x20اللاتينية','Arabic-indic\x20footnotes':'حواشي\x20سفلية\x20بالأحرف\x20العربية\x20(الهندية)','Lower-roman\x20footnotes':'حواشي\x20سفلية\x20بالأحرف\x20الرومانية\x20الصغيرة','Toggle\x20the\x20lower-roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20الرومانية\x20الصغيرة','Toggle\x20the\x20upper-roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20الرومانية\x20الكبيرة','Toggle\x20the\x20lower-latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20اللاتينية\x20الصغيرة','Toggle\x20the\x20upper-latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20اللاتينية\x20الكبيرة','Toggle\x20the\x20arabic-indic\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20العربية\x20(الهندية)'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Footnote':'حاشية\x20سفلية','Footnotes':'الحواشي\x20السفلية','Footnotes\x20properties':'خصائص\x20الحواشي\x20السفلية','Footnotes\x20start\x20at':'تبدأ\x20الحواشي\x20السفلية\x20من','Invalid\x20footnotes\x20start\x20index\x20value.':'قيمة\x20مؤشر\x20بداية\x20الحواشي\x20السفلية\x20غير\x20صحيحة.','Footnotes\x20start\x20index\x20is\x20too\x20large.':'مؤشر\x20بداية\x20الحواشي\x20السفلية\x20كبير\x20للغاية.','Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'يلزم\x20أن\x20يكون\x20مؤشر\x20بداية\x20الحواشي\x20السفلية\x20أكبر\x20من\x200.','Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.':'حاشية\x20سفلية\x20%0.\x20اضغط\x20على\x20مفتاح\x20الإدخال\x20(ENTER)\x20من\x20أجل\x20الانتقال\x20إلى\x20تعريف\x20الحاشية\x20السفلية.','Footnote\x20content.':'محتوى\x20الحاشية\x20السفلية.','Footnotes\x20definitions\x20styles':'أنماط\x20تعريفات\x20الحواشي\x20السفلية','Footnotes\x20definitions\x20toolbar':'شريط\x20أدوات\x20تعريفات\x20الحواشي\x20السفلية','Insert\x20footnote':'إدراج\x20حاشية\x20سفلية','Footnotes\x20style':'نمط\x20الحواشي\x20السفلية','Toggle\x20the\x20decimal\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20العشري','Decimal\x20footnotes':'الحواشي\x20السفلية\x20العشرية','Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style':'تبديل\x20العلامة\x20العشرية\x20بنمط\x20الحواشي\x20السفلية\x20بالصفر\x20البادئ','Decimal\x20footnotes\x20with\x20leading\x20zero':'حواشي\x20سفلية\x20عشرية\x20بالصفر\x20البادئ','Upper-roman\x20footnotes':'الحواشي\x20العلوية\x20الرومانية','Lower-latin\x20footnotes':'الحواشي\x20السفلية\x20اللاتينية','Upper-latin\x20footnotes':'الحواشي\x20العلوية\x20اللاتينية','Arabic-indic\x20footnotes':'حواشي\x20سفلية\x20بالأحرف\x20العربية\x20(الهندية)','Lower-roman\x20footnotes':'حواشي\x20سفلية\x20بالأحرف\x20الرومانية\x20الصغيرة','Toggle\x20the\x20lower-roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20الرومانية\x20الصغيرة','Toggle\x20the\x20upper-roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20الرومانية\x20الكبيرة','Toggle\x20the\x20lower-latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20اللاتينية\x20الصغيرة','Toggle\x20the\x20upper-latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20اللاتينية\x20الكبيرة','Toggle\x20the\x20arabic-indic\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20بالأحرف\x20العربية\x20(الهندية)'},'getPluralForm':_0xb6deae=>0x0==_0xb6deae?0x0:0x1==_0xb6deae?0x1:0x2==_0xb6deae?0x2:_0xb6deae%0x64>=0x3&&_0xb6deae%0x64<=0xa?0x3:_0xb6deae%0x64>=0xb?0x4:0x5}};
|