@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251104.0 → 0.0.0-nightly-20251106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +2 -1
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/dist/index-content.css +0 -12
- package/dist/index.css +6 -12
- package/dist/index.js +1 -1
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +23 -0
- package/dist/translations/ast.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +23 -0
- package/dist/translations/en-gb.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +23 -0
- package/dist/translations/eo.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +23 -0
- package/dist/translations/eu.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +23 -0
- package/dist/translations/gu.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +23 -0
- package/dist/translations/hy.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +23 -0
- package/dist/translations/kk.umd.js +23 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +23 -0
- package/dist/translations/km.umd.js +23 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +23 -0
- package/dist/translations/kn.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +23 -0
- package/dist/translations/ku.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +23 -0
- package/dist/translations/nb.umd.js +23 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +23 -0
- package/dist/translations/ne.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +23 -0
- package/dist/translations/oc.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +23 -0
- package/dist/translations/si.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +23 -0
- package/dist/translations/sl.umd.js +23 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +23 -0
- package/dist/translations/sq.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/lang/translations/af.po +112 -0
- package/lang/translations/ar.po +112 -0
- package/lang/translations/ast.po +112 -0
- package/lang/translations/az.po +112 -0
- package/lang/translations/be.po +112 -0
- package/lang/translations/bg.po +112 -0
- package/lang/translations/bn.po +112 -0
- package/lang/translations/bs.po +112 -0
- package/lang/translations/ca.po +112 -0
- package/lang/translations/cs.po +112 -0
- package/lang/translations/da.po +112 -0
- package/lang/translations/de-ch.po +112 -0
- package/lang/translations/de.po +112 -0
- package/lang/translations/el.po +112 -0
- package/lang/translations/en-au.po +112 -0
- package/lang/translations/en-gb.po +112 -0
- package/lang/translations/en.po +112 -0
- package/lang/translations/eo.po +112 -0
- package/lang/translations/es-co.po +112 -0
- package/lang/translations/es.po +112 -0
- package/lang/translations/et.po +112 -0
- package/lang/translations/eu.po +112 -0
- package/lang/translations/fa.po +112 -0
- package/lang/translations/fi.po +112 -0
- package/lang/translations/fr.po +112 -0
- package/lang/translations/gl.po +112 -0
- package/lang/translations/gu.po +112 -0
- package/lang/translations/he.po +112 -0
- package/lang/translations/hi.po +112 -0
- package/lang/translations/hr.po +112 -0
- package/lang/translations/hu.po +112 -0
- package/lang/translations/hy.po +112 -0
- package/lang/translations/id.po +112 -0
- package/lang/translations/it.po +112 -0
- package/lang/translations/ja.po +112 -0
- package/lang/translations/jv.po +112 -0
- package/lang/translations/kk.po +112 -0
- package/lang/translations/km.po +112 -0
- package/lang/translations/kn.po +112 -0
- package/lang/translations/ko.po +112 -0
- package/lang/translations/ku.po +112 -0
- package/lang/translations/lt.po +112 -0
- package/lang/translations/lv.po +112 -0
- package/lang/translations/ms.po +112 -0
- package/lang/translations/nb.po +112 -0
- package/lang/translations/ne.po +112 -0
- package/lang/translations/nl.po +112 -0
- package/lang/translations/no.po +112 -0
- package/lang/translations/oc.po +112 -0
- package/lang/translations/pl.po +112 -0
- package/lang/translations/pt-br.po +112 -0
- package/lang/translations/pt.po +112 -0
- package/lang/translations/ro.po +112 -0
- package/lang/translations/ru.po +112 -0
- package/lang/translations/si.po +112 -0
- package/lang/translations/sk.po +112 -0
- package/lang/translations/sl.po +112 -0
- package/lang/translations/sq.po +112 -0
- package/lang/translations/sr-latn.po +112 -0
- package/lang/translations/sr.po +112 -0
- package/lang/translations/sv.po +112 -0
- package/lang/translations/th.po +112 -0
- package/lang/translations/ti.po +112 -0
- package/lang/translations/tk.po +112 -0
- package/lang/translations/tr.po +112 -0
- package/lang/translations/tt.po +112 -0
- package/lang/translations/ug.po +112 -0
- package/lang/translations/uk.po +112 -0
- package/lang/translations/ur.po +112 -0
- package/lang/translations/uz.po +112 -0
- package/lang/translations/vi.po +112 -0
- package/lang/translations/zh-cn.po +112 -0
- package/lang/translations/zh.po +112 -0
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
- package/theme/footnotes.css +6 -16
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x43bd3c,Command as _0x8bee50}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3aad28,isWidget as _0x14c998,toWidgetEditable as _0x517596,WidgetToolbarRepository as _0x394505}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3d20cc,logWarning as _0x2c2de2,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2376c6,ClickObserver as _0x3b95a1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x13dd51}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3d72d1,ButtonView as _0xede7c4,View as _0x54f983,ViewCollection as _0x470575,FocusCycler as _0x2749b3,addKeyboardHandlingForGrid as _0x3f496a,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x86afc8,BalloonPanelView as _0x22995d,createDropdown as _0x370afd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4f816e,IconListStyleDecimal as _0x14a3ea,IconListStyleDecimalLeadingZero as _0x55064c,IconListStyleLowerRoman as _0x164851,IconListStyleUpperRoman as _0x1d15e8,IconListStyleLowerLatin as _0x2911c6,IconListStyleUpperLatin as _0x5b7a8f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x408ad6,_0x93401c){this['_model']=_0x408ad6,this['_elementName']=_0x93401c['elementName'],this['_getElementKey']=_0x93401c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x34a1e1){const _0x33b3a8=new Set(),_0x2385cb=new Map();for(const _0x426cf4 of _0x34a1e1){if('insert'===_0x426cf4['type']&&'$text'!==_0x426cf4['name']&&_0x426cf4['position']['nodeAfter']){const _0xd61f99=this['_model']['createRangeOn'](_0x426cf4['position']['nodeAfter']);for(const _0xc60b2e of _0xd61f99['getItems']()){if(!_0xc60b2e['is']('element',this['_elementName']))continue;const _0x4c34cd=this['_getElementKey'](_0xc60b2e);_0x2385cb['has'](_0x4c34cd)||_0x2385cb['set'](_0x4c34cd,[]),_0x2385cb['get'](_0x4c34cd)['push'](_0xc60b2e);}}if('remove'===_0x426cf4['type']&&_0x426cf4['name']===this['_elementName']){const _0xac5458=this['_getElementKey']({'getAttribute':_0x29ad=>_0x426cf4['attributes']['get'](_0x29ad)});_0x33b3a8['add'](_0xac5458);}}for(const [_0xba78fd,_0x9700f8]of this['_trackedElements'])'$graveyard'===_0x9700f8['root']['rootName']&&_0x33b3a8['add'](_0xba78fd);for(const _0x1736f6 of _0x33b3a8)this['_trackedElements']['delete'](_0x1736f6);for(const [_0x28b227,_0x5b0b31]of _0x2385cb)this['_trackedElements']['set'](_0x28b227,_0x5b0b31[_0x5b0b31['length']-0x1]);const _0x37b5cc=new Set();for(const [_0x5f18e1,_0x5cdfad]of _0x2385cb)_0x33b3a8['has'](_0x5f18e1)&&(_0x37b5cc['add'](_0x5cdfad[0x0]),_0x5cdfad['length']>0x1?_0x2385cb['set'](_0x5f18e1,_0x5cdfad['slice'](0x1)):_0x2385cb['delete'](_0x5f18e1),_0x33b3a8['delete'](_0x5f18e1));return{'removed':Array['from'](_0x33b3a8),'inserted':Array['from'](_0x2385cb['values']())['flat'](),'moved':Array['from'](_0x37b5cc)};}}class c extends _0x43bd3c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8c78){super(_0x5b8c78),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x13d0b4=>_0x13d0b4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3a79f0=>_0x3a79f0['getAttribute']('footnoteId')});}['init'](){const {editor:_0x581c4a}=this,{model:_0x2eb207,data:_0x55289d}=_0x581c4a;_0x2eb207['document']['registerPostFixer'](_0x990669=>{const _0x12fa9f=_0x2eb207['document']['differ']['getChanges']();let _0x1f1d9e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_handleFootnoteReferencesChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x990669)&&(_0x1f1d9e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x990669)&&(_0x1f1d9e=!0x0),this['_sortFootnoteDefinitions'](_0x990669)&&(_0x1f1d9e=!0x0),_0x1f1d9e;}),this['listenTo'](_0x2eb207['document'],'change:data',()=>{_0x2eb207['enqueueChange']({'isUndoable':!0x1},_0x45f774=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x45f774);});},{'priority':'low'}),this['listenTo'](_0x55289d,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3fcaca){return this['_footnotes']['find'](_0x1b67ec=>_0x1b67ec['id']===_0x3fcaca)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x171e3e){this['_footnoteFormatter']=_0x171e3e;}['_updateFootnotesCounters'](_0x491021,_0x4ad6dc=0x0){let _0x3cf39d=!0x1;for(let _0xe1bca7=_0x4ad6dc;_0xe1bca7<this['_footnotes']['length'];_0xe1bca7++)this['_updateFootnoteRefCounter'](_0x491021,_0xe1bca7)&&(_0x3cf39d=!0x0);return _0x3cf39d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5f1f42,_0x56deb3){const _0xf7ade=_0x5f1f42['createElement']('footnotesDefinitions',{});return _0x5f1f42['append'](_0xf7ade,_0x56deb3),this['_footnotesDefinitions']=_0xf7ade,_0xf7ade;}['_ensureFootnotesDefinitionsContainerExists'](_0x250bae){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x679a0c=this['_footnotes'][0x0]['reference']['root'],_0x2924b0=this['_insertEmptyFootnotesDefinitionsContainer'](_0x250bae,_0x679a0c);for(const _0x1d14e1 of this['_footnotes'])_0x1d14e1['definition']['parent']||_0x250bae['insert'](_0x1d14e1['definition'],_0x2924b0,'end');this['_updateFootnotesCounters'](_0x250bae);}['_handleFootnotesDefinitionsObjectChanges'](_0x10156b,_0x9cef2f){let _0x271580=!0x1;const {inserted:_0x4c4590,removed:_0x2df6d0,moved:_0x2c663d}=this['_footnoteDefsContainerTracker']['getChanges'](_0x9cef2f);if(_0x2c663d['length']&&(this['_footnotesDefinitions']=_0x2c663d[0x0]),_0x4c4590['length']){if(_0x4c4590['length']>0x1||this['_footnotesDefinitions']&&_0x4c4590['some'](_0x448d5a=>_0x448d5a!==this['_footnotesDefinitions'])){const _0x11884b=_0x10156b['createElement']('footnotesDefinitions',{}),_0x52cb0a=[];this['_footnotesDefinitions']&&_0x52cb0a['push'](this['_footnotesDefinitions']),_0x52cb0a['push'](..._0x4c4590),_0x10156b['insert'](_0x11884b,_0x52cb0a[0x0],'before');for(const _0xd5b83d of _0x52cb0a)_0x10156b['move'](_0x10156b['createRangeIn'](_0xd5b83d),_0x10156b['createPositionAt'](_0x11884b,'end')),_0x10156b['remove'](_0xd5b83d);this['_footnotesDefinitions']=_0x11884b,this['_updateFootnotesCounters'](_0x10156b),_0x271580=!0x0;}else this['_footnotesDefinitions']=_0x4c4590[0x0];}if(_0x2df6d0['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4d8cc0 of this['_footnotes'])_0x10156b['remove'](_0x4d8cc0['reference']),_0x271580=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x271580;}['_handleFootnoteDefinitionsChanges'](_0x37fc53,_0x1bad45){let _0x46be9f=!0x1;const _0x43c1d2=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5bd7b5,moved:_0x3f9027}=this['_footnoteDefsTracker']['getChanges'](_0x1bad45);for(const _0x41a928 of[..._0x3f9027,..._0x5bd7b5]){const _0x104879=_0x41a928['getAttribute']('footnoteId'),_0x3b3aea=this['getFootnote'](_0x104879);_0x3b3aea&&(_0x3b3aea['definition']=_0x41a928),_(_0x37fc53,_0x43c1d2,_0x41a928)&&(_0x46be9f=!0x0);}return _0x46be9f;}['_handleFootnoteReferencesChanges'](_0x20dfec,_0x1f37dd){let _0x2f8aea=!0x1;const {removed:_0x592da5,inserted:_0x1c4810,moved:_0x19cb35}=this['_footnoteRefsTracker']['getChanges'](_0x1f37dd);for(const _0x7c5f2e of _0x592da5)this['_handleRemoveFootnoteReferenceById'](_0x20dfec,_0x7c5f2e)&&(_0x2f8aea=!0x0);for(const _0x393e6b of _0x1c4810)this['_handleInsertedFootnoteReference'](_0x20dfec,_0x393e6b)&&(_0x2f8aea=!0x0);for(const _0x3aebad of _0x19cb35)this['_handleMovedFootnoteReference'](_0x20dfec,_0x3aebad)&&(_0x2f8aea=!0x0);return _0x2f8aea;}['_handleFootnotesDefinitionsObjectSync'](_0x341dd7){if(!this['_footnotesDefinitions'])return!0x1;let _0x158d7c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4b16de=[];for(const _0x33c5ff of this['_footnotesDefinitions']['getChildren']()){const _0x17ac37=_0x33c5ff['getAttribute']('footnoteId');this['getFootnote'](_0x17ac37)||(_0x4b16de['unshift'](_0x33c5ff),_0x158d7c=!0x0);}for(const _0x10772c of _0x4b16de)_0x341dd7['remove'](_0x10772c);}const _0xd39590=new Set(),_0x1b62c5=[];for(const _0xf71cad of this['_footnotesDefinitions']['getChildren']()){const _0x4d54ee=_0xf71cad['getAttribute']('footnoteId');_0xd39590['has'](_0x4d54ee)?(_0x1b62c5['unshift'](_0xf71cad),_0x158d7c=!0x0):_0xd39590['add'](_0x4d54ee);}for(const _0x57246f of _0x1b62c5)_0x341dd7['remove'](_0x57246f);return this['_footnotesDefinitions']['childCount']||(_0x341dd7['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x158d7c=!0x0),_0x158d7c;}['_handleInsertedFootnoteReference'](_0x2460a7,_0x31a186){if(this['_footnotes']['find'](_0x5d468a=>_0x5d468a['reference']===_0x31a186))return!0x1;let _0x43fbbc=!0x1;const _0x398e13=_0x31a186['getAttribute']('footnoteId'),_0x3d5a48=this['_footnotes']['findIndex'](_0x493053=>_0x493053['id']===_0x398e13);-0x1!==_0x3d5a48&&(_0x2460a7['remove'](this['_footnotes'][_0x3d5a48]['reference']),this['_footnotes']['splice'](_0x3d5a48,0x1),_0x43fbbc=!0x0);let _0x2ed01e=this['_footnotesDefinitions']?function(_0x19f27c,_0x5e58ab){for(const _0x2b920c of _0x19f27c['getChildren']())if(_0x2b920c['getAttribute']('footnoteId')===_0x5e58ab)return _0x2b920c;return null;}(this['_footnotesDefinitions'],_0x398e13):null;_0x2ed01e||(_0x2ed01e=_0x2460a7['createElement']('footnoteDefinition',{'footnoteId':_0x398e13}),this['_footnotesDefinitions']&&(_0x2460a7['insert'](_0x2ed01e,this['_footnotesDefinitions'],'end'),_0x43fbbc=!0x0));const _0x37068f={'id':_0x398e13,'reference':_0x31a186,'definition':_0x2ed01e},_0x110c3b=I(this['editor']['model'],this['_footnotes'],_0x31a186);this['_footnotes']['splice'](_0x110c3b,0x0,_0x37068f);let _0x41b7fc=_0x110c3b;return-0x1!==_0x3d5a48&&(_0x41b7fc=Math['min'](_0x110c3b,_0x3d5a48)),this['_updateFootnotesCounters'](_0x2460a7,_0x41b7fc)&&(_0x43fbbc=!0x0),_0x43fbbc;}['_handleRemoveFootnoteReferenceById'](_0x12623,_0x124568){const _0x36ec6f=this['_footnotes']['findIndex'](_0x1d11a6=>_0x1d11a6['id']===_0x124568);if(-0x1===_0x36ec6f)return!0x1;let _0x4c005f=!0x1;const _0x3a34ab=this['_footnotes'][_0x36ec6f];return'$graveyard'!==_0x3a34ab['definition']['root']['rootName']&&(_0x12623['remove'](_0x3a34ab['definition']),_0x4c005f=!0x0),this['_footnotes']['splice'](_0x36ec6f,0x1),this['_updateFootnotesCounters'](_0x12623,_0x36ec6f)&&(_0x4c005f=!0x0),_0x4c005f;}['_handleMovedFootnoteReference'](_0x2b7782,_0x1b68e2){const _0x1f18b8=_0x1b68e2['getAttribute']('footnoteId'),_0x2e2828=this['_footnotes']['findIndex'](_0x21c078=>_0x21c078['id']===_0x1f18b8),_0x59ca68=this['_footnotes'][_0x2e2828];let _0xea281b=!0x1;_0x59ca68['reference']=_0x1b68e2,this['_footnotes']['splice'](_0x2e2828,0x1);const _0x1b12e8=I(this['editor']['model'],this['_footnotes'],_0x1b68e2);return this['_footnotes']['splice'](_0x1b12e8,0x0,_0x59ca68),this['_updateFootnotesCounters'](_0x2b7782,Math['min'](_0x2e2828,_0x1b12e8))&&(_0xea281b=!0x0),_0xea281b;}['_updateFootnoteRefCounter'](_0x347b2f,_0xc0009d){if(!this['_footnotesDefinitions'])return!0x1;const _0x5d0d18=this['_footnotes'][_0xc0009d];let _0x34a988;return _0x34a988=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5d0d18,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xc0009d+0x1}):String(_0xc0009d+0x1),_0x5d0d18['reference']['getAttribute']('footnoteCounter')!=_0x34a988&&(_0x347b2f['setAttribute']('footnoteCounter',_0x34a988,_0x5d0d18['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4fa982){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x51b67f,_0x39b631){if(_0x51b67f['length']!==_0x39b631['length'])return!0x1;for(let _0x391d28=0x0;_0x391d28<_0x51b67f['length'];_0x391d28++)if(_0x51b67f[_0x391d28]!==_0x39b631[_0x391d28])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x529a71=>_0x529a71['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x26c85d=>_0x26c85d['getAttribute']('footnoteId'))))return!0x1;let _0x55b1c5=!0x1;for(let _0x131bb9=0x0;_0x131bb9<this['_footnotes']['length'];_0x131bb9++){const _0x4378ab=this['_footnotes'][_0x131bb9],_0x1f4cff=_0x4fa982['createPositionBefore'](_0x4378ab['definition']),_0x3ee755=_0x4fa982['createPositionAt'](this['_footnotesDefinitions'],_0x131bb9);_0x1f4cff['isEqual'](_0x3ee755)||(_0x4fa982['move'](_0x4fa982['createRangeOn'](_0x4378ab['definition']),_0x3ee755),_0x55b1c5=!0x0);}return _0x55b1c5;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4e5abf){if(!this['_footnotes']['length'])return!0x1;const {model:_0x570a39}=this['editor'];let _0x47eba5=!0x1;for(let _0x1ea3b9=0x0;_0x1ea3b9<this['_footnotes']['length']-0x1;_0x1ea3b9++){const _0x4c03ff=this['_footnotes'][_0x1ea3b9],_0x10892f=this['_footnotes'][_0x1ea3b9+0x1],_0x5f2840=_0x570a39['createPositionBefore'](_0x4c03ff['reference']),_0x58f42c=_0x570a39['createPositionBefore'](_0x10892f['reference']);'after'===_0x5f2840['compareWith'](_0x58f42c)&&(this['_handleMovedFootnoteReference'](_0x4e5abf,_0x4c03ff['reference']),_0x1ea3b9=-0x1,_0x47eba5=!0x0);}return _0x47eba5;}}function _(_0x556e17,_0xe9b61c,_0x1c3bf9){if(_0x1c3bf9['childCount'])return!0x1;const _0x579b7a=_0xe9b61c?'paragraph':'footnoteInlineContent';return _0x556e17['insert'](_0x556e17['createElement'](_0x579b7a),_0x1c3bf9),!0x0;}function I(_0x22ba3c,_0x246ab3,_0x3155e5){if(0x0===_0x246ab3['length'])return 0x0;const _0x1b0354=_0x22ba3c['createPositionBefore'](_0x3155e5);for(let _0x185638=0x0;_0x185638<_0x246ab3['length'];_0x185638++){const _0x3246d9=_0x246ab3[_0x185638],_0x25fb7b=_0x22ba3c['createPositionBefore'](_0x3246d9['reference']);if('before'===_0x1b0354['compareWith'](_0x25fb7b))return _0x185638;}const _0x2f4dcd=_0x3155e5['root'];let _0x5b1ccb=-0x1;for(let _0x51a48e=_0x246ab3['length']-0x1;_0x51a48e>=0x0;_0x51a48e--)if(_0x246ab3[_0x51a48e]['reference']['root']===_0x2f4dcd){_0x5b1ccb=_0x51a48e;break;}if(-0x1!==_0x5b1ccb)return _0x5b1ccb+0x1;const _0x258a37=_0x22ba3c['document']['getRootNames'](),_0x226ef8=_0x258a37['indexOf'](_0x2f4dcd['rootName']),_0x138073=_0x258a37[_0x226ef8+0x1];if(_0x138073){for(let _0x4ec6d5=0x0;_0x4ec6d5<_0x246ab3['length'];_0x4ec6d5++)if(_0x246ab3[_0x4ec6d5]['reference']['root']['rootName']===_0x138073)return _0x4ec6d5;}return _0x246ab3['length'];}class w extends _0x8bee50{['refresh'](){const _0x3fd821=this['editor']['model']['document']['selection'],_0x40660a=this['_getPositionToInsertFootnote'](_0x3fd821);this['isEnabled']=!!_0x40660a;}['execute'](_0xef721c){const {editor:_0x29492a}=this,{model:_0x4552d5}=_0x29492a,{selection:_0x447159}=_0x4552d5['document'],_0x332d23=this['_getPositionToInsertFootnote'](_0x447159);if(!_0x332d23)return;const _0x50231a=_0x29492a['plugins']['get']('FootnotesEditing'),_0x1aaefc=_0xef721c?.['footnoteId']??_0x3d20cc();!function(_0x3d8cfc){return'string'==typeof _0x3d8cfc&&_0x3d8cfc['length']>0x0&&!/\s/['test'](_0x3d8cfc)&&!/^\d/['test'](_0x3d8cfc);}(_0x1aaefc)?_0x2c2de2('insert-footnote-command-executed-with-invalid-id'):(_0x4552d5['change'](_0x358db3=>{const _0x1f3f6d=_0x358db3['createElement']('footnoteRef',{'footnoteId':_0x1aaefc});_0x4552d5['insertObject'](_0x1f3f6d,_0x332d23,null);}),_0x50231a['_moveSelectionToFootnoteDefinition'](_0x1aaefc));}['_getPositionToInsertFootnote'](_0x5893c9){const {model:_0x456dcd}=this['editor'],{schema:_0x1bb281}=_0x456dcd,_0x1482e9=_0x5893c9['getFirstRange']();for(const _0x3be079 of _0x1482e9['getItems']())if(_0x1bb281['isBlock'](_0x3be079)||_0x1bb281['isObject'](_0x3be079))return null;const _0x2773a4=_0x1482e9['end'];return _0x1bb281['checkChild'](_0x2773a4,'footnoteRef')?_0x2773a4:null;}}class r extends _0x43bd3c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31ee0c}=this;_0x31ee0c['config']['define']('footnotes.multiBlock',!0x0),_0x31ee0c['commands']['add']('insertFootnote',new w(_0x31ee0c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x39de55){const _0x47d690=_0xec59f5([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]),_0x2d727b=0x47a28506,_0xdfc02d=0x47a5fd26^_0x2d727b,_0x2b8ced=window[_0xec59f5([0x44,0x61,0x74,0x65])][_0xec59f5([0x6e,0x6f,0x77])](),_0x35800f=_0x39de55[_0xec59f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0f31=new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416fa8=>{_0x35800f[_0xec59f5([0x6f,0x6e,0x63,0x65])](_0xec59f5([0x72,0x65,0x61,0x64,0x79]),_0x416fa8);}),_0x561778={[_0xec59f5([0x6b,0x74,0x79])]:_0xec59f5([0x45,0x43]),[_0xec59f5([0x75,0x73,0x65])]:_0xec59f5([0x73,0x69,0x67]),[_0xec59f5([0x63,0x72,0x76])]:_0xec59f5([0x50,0x2d,0x32,0x35,0x36]),[_0xec59f5([0x78])]:_0xec59f5([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]),[_0xec59f5([0x79])]:_0xec59f5([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]),[_0xec59f5([0x61,0x6c,0x67])]:_0xec59f5([0x45,0x53,0x32,0x35,0x36])},_0x4ef5e8=_0x35800f[_0xec59f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xec59f5([0x67,0x65,0x74])](_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c94ce(){let _0x2b3708,_0x38255f=null,_0x37bb2=null;try{if(_0x4ef5e8==_0xec59f5([0x47,0x50,0x4c]))return _0xec59f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b3708=_0x399dd7(),!_0x2b3708)return _0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b3708[_0xec59f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37bb2=_0x52cd4b(_0x2b3708[_0xec59f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b3708[_0xec59f5([0x6a,0x74,0x69])])),await _0x16beab()?_0x120700()?_0x1db673()?_0xec59f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e9155()?(_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec59f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38255f=_0x4b6bf0(_0xec59f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec59f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x38255f=_0x4b6bf0(_0xec59f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c3106()):_0xec59f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xec59f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1db673(){const _0x651554=[_0xec59f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xec59f5([0x74,0x72,0x69,0x61,0x6c])][_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b8ced/0x3e8:0xe10*_0xdfc02d;return _0x2b3708[_0xec59f5([0x65,0x78,0x70])]<_0x651554;}function _0x120700(){const _0x4ab717=_0x2b3708[_0xec59f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4ab717&&(!!_0x4ab717[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x2a]))||!!_0x4ab717[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x46,0x4f,0x4f])));}function _0x4e9155(){const _0x250450=_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x250450||0x0==_0x250450[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49c216}=new URL(window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x250450[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c216))return!0x0;const _0x5d73cb=_0x49c216[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e]));return _0x250450[_0xec59f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40a4ef=>_0x40a4ef[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x2a])))[_0xec59f5([0x6d,0x61,0x70])](_0x55ce9c=>_0x55ce9c[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e])))[_0xec59f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1782b4=>_0x1782b4[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d73cb[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec59f5([0x6d,0x61,0x70])](_0x977ed=>Array(_0x5d73cb[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x977ed[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec59f5([0x66,0x69,0x6c,0x6c])](_0x977ed[0x0]===_0xec59f5([0x2a])?_0xec59f5([0x2a]):'')[_0xec59f5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x977ed))[_0xec59f5([0x73,0x6f,0x6d,0x65])](_0x2d0eb0=>_0x5d73cb[_0xec59f5([0x65,0x76,0x65,0x72,0x79])]((_0x1792a1,_0x88cc6a)=>_0x2d0eb0[_0x88cc6a]===_0x1792a1||_0x2d0eb0[_0x88cc6a]===_0xec59f5([0x2a])));}function _0x1c3106(){return _0x38255f&&_0x37bb2?new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x467ac2,_0x1397fb)=>{_0x38255f[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x467ac2,_0x1397fb),_0x37bb2[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x1ae25a=>{_0x1ae25a!=_0xec59f5([0x56,0x61,0x6c,0x69,0x64])&&_0x467ac2(_0x1ae25a);},_0x1397fb);}):_0x38255f||_0x37bb2||_0xec59f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52cd4b(_0x7e6ae3,_0x296d56){return new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2097df=>{if(_0x452cac())return _0x2097df(_0xec59f5([0x56,0x61,0x6c,0x69,0x64]));_0x107e99(),_0x35800f[_0xec59f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x243287=!0x1;const _0x35df47=_0x3d20cc();function _0x18b578(_0x2a5c41){return!!_0x2a5c41&&(typeof _0x2a5c41===_0xec59f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a5c41===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a5c41[_0xec59f5([0x74,0x68,0x65,0x6e])]===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a5c41[_0xec59f5([0x63,0x61,0x74,0x63,0x68])]===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x340afc(_0xf1bdce){_0xc44cc7(_0xf1bdce)[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x2017e4=>{if(!_0x2017e4||_0x2017e4[_0xec59f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xec59f5([0x6f,0x6b]))return _0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b37eb(_0x3089ae(_0x35df47+_0x296d56))!=_0x2017e4[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xec59f5([0x56,0x61,0x6c,0x69,0x64]);})[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x4d2744=>(_0x250ba6(),_0x4d2744),()=>{const _0x4aba16=_0x2b00b8();return null==_0x4aba16?(_0x250ba6(),_0xec59f5([0x56,0x61,0x6c,0x69,0x64])):_0xec59f5(_0x2b8ced-_0x4aba16>(0x63ae0106^_0x2d727b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x2097df)[_0xec59f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x487084=0x47946b86^_0x2d727b;function _0x250ba6(){const _0x14e0b2=_0xec59f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b37eb(_0x3089ae(_0x7e6ae3)),_0x406b64=_0x1400aa(_0x1b37eb(window[_0xec59f5([0x4d,0x61,0x74,0x68])][_0xec59f5([0x63,0x65,0x69,0x6c])](_0x2b8ced/_0x487084)));window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec59f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14e0b2,_0x406b64);}function _0x2b00b8(){const _0x270d5e=_0xec59f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b37eb(_0x3089ae(_0x7e6ae3)),_0x348bfa=window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec59f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270d5e);return _0x348bfa?window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1400aa(_0x348bfa),0x10)*_0x487084:null;}function _0xc44cc7(_0x421e54){return new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e4613,_0x29b5ab)=>{_0x421e54[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x5e4613,_0x29b5ab),window[_0xec59f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29b5ab,0x47a351c6^_0x2d727b);});}}_0x35800f[_0xec59f5([0x6f,0x6e])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb7ca6e,_0x5f543e)=>{if(_0x5f543e[0x0]!=_0x7e6ae3)return _0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f543e[0x1]={..._0x5f543e[0x1],[_0xec59f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35df47};},{[_0xec59f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec59f5([0x68,0x69,0x67,0x68])}),_0x35800f[_0xec59f5([0x6f,0x6e])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34c319=>{_0x18b578(_0x34c319[_0xec59f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x243287=!0x0,_0x340afc(_0x34c319[_0xec59f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xec59f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec59f5([0x6c,0x6f,0x77])}),_0x4b0f31[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>{_0x243287||_0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x452cac(){return _0x35800f[_0xec59f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec59f5([0x76,0x69,0x65,0x77])][_0xec59f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xec59f5([0x61,0x75,0x74,0x6f]);}function _0x107e99(){_0x35800f[_0xec59f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec59f5([0x76,0x69,0x65,0x77])][_0xec59f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xec59f5([0x61,0x75,0x74,0x6f]);}}function _0x4b6bf0(_0x211118){const _0x59404c=[new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x576e28=>setTimeout(_0x576e28,0x47abbbca^_0x2d727b)),_0x4b0f31[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d3a39=>{let _0x19c7ab=0x0;_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x6f,0x6e])](_0xec59f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34f078,_0x5b6570)=>{_0x5b6570[0x0][_0xec59f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19c7ab++,_0x19c7ab==(0x47a284fe^_0x2d727b)&&(_0x2d3a39(),_0x34f078[_0xec59f5([0x6f,0x66,0x66])]());});}))];return window[_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xec59f5([0x72,0x61,0x63,0x65])](_0x59404c)[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>_0x211118);}async function _0x1084bd(){await _0x4b0f31,_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22ef0d,_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22ef0d,_0x35800f[_0xec59f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2dce7(_0x3b9e8c){const _0x3b9828=_0x30adb8();_0x35800f[_0x3b9828]=_0xec59f5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b9e8c,_0x3b9e8c!=_0xec59f5([0x56,0x61,0x6c,0x69,0x64])&&_0x1084bd();}function _0x30adb8(){const _0x443a2f=window[_0xec59f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xec59f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xec59f5([0x6e,0x6f,0x77])]())[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xec59f5([0x2e]),'');let _0x30a99b=_0xec59f5([0x75]);for(let _0x1b6555=0x0;_0x1b6555<_0x443a2f[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b6555+=0x2){let _0x1f156e=window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443a2f[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b6555,_0x1b6555+0x2));_0x1f156e>=_0x47d690[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f156e-=_0x47d690[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30a99b+=_0x47d690[_0x1f156e];}return _0x30a99b;}function _0x399dd7(){const _0x1cf61c=_0x4ef5e8[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e]));if(0x3!=_0x1cf61c[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27933a(_0x1cf61c[0x1]);function _0x27933a(_0x498dfc){const _0x384c66=_0x50b05a(_0x498dfc);return _0x384c66&&_0x2b5abf()?_0x384c66:null;function _0x2b5abf(){const _0x15d7dd=_0x384c66[_0xec59f5([0x6a,0x74,0x69])],_0x121094=window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d7dd[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15d7dd[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45b6cf={..._0x384c66,[_0xec59f5([0x6a,0x74,0x69])]:_0x15d7dd[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15d7dd[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45b6cf[_0xec59f5([0x76,0x63])],_0x3089ae(_0x45b6cf)==_0x121094;}}}async function _0x16beab(){let _0x33343a=!0x0;try{const _0x3892e4=_0x4ef5e8[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e])),[_0x2ab739,_0x1ad6c1,_0x2d0c7f]=_0x3892e4;return _0x227d22(_0x2ab739),await _0x51d9c6(_0x2ab739,_0x1ad6c1,_0x2d0c7f),_0x33343a;}catch{return!0x1;}function _0x227d22(_0x5cd11d){const _0x3ebb39=_0x50b05a(_0x5cd11d);_0x3ebb39&&_0x3ebb39[_0xec59f5([0x61,0x6c,0x67])]==_0xec59f5([0x45,0x53,0x32,0x35,0x36])||(_0x33343a=!0x1);}async function _0x51d9c6(_0x2ee4c2,_0x5d67be,_0x5600e0){const _0x590903=window[_0xec59f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xec59f5([0x66,0x72,0x6f,0x6d])](_0x52a86c(_0x5600e0),_0x23a1f8=>_0x23a1f8[_0xec59f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2029bf=new window[(_0xec59f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xec59f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ee4c2+_0xec59f5([0x2e])+_0x5d67be),_0x10df0e=window[_0xec59f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xec59f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10df0e)return;const _0xf53d08=await _0x10df0e[_0xec59f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xec59f5([0x6a,0x77,0x6b]),_0x561778,{[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x45,0x43,0x44,0x53,0x41]),[_0xec59f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xec59f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10df0e[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x45,0x43,0x44,0x53,0x41]),[_0xec59f5([0x68,0x61,0x73,0x68])]:{[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf53d08,_0x590903,_0x2029bf)||(_0x33343a=!0x1);}}function _0x50b05a(_0x4c55cf){return _0x4c55cf[_0xec59f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xec59f5([0x65,0x79]))?JSON[_0xec59f5([0x70,0x61,0x72,0x73,0x65])](_0x52a86c(_0x4c55cf)):null;}function _0x52a86c(_0x6c8de){return window[_0xec59f5([0x61,0x74,0x6f,0x62])](_0x6c8de[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xec59f5([0x2b]))[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xec59f5([0x2f])));}function _0x3089ae(_0x20e012){let _0x35cbcf=0x1505;function _0xc283e9(_0x4cf12d){for(let _0x25f9ed=0x0;_0x25f9ed<_0x4cf12d[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25f9ed++){const _0x210cac=_0x4cf12d[_0xec59f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25f9ed);_0x35cbcf=(_0x35cbcf<<0x5)+_0x35cbcf+_0x210cac,_0x35cbcf&=_0x35cbcf;}}function _0x5c9cb0(_0xb34003){Array[_0xec59f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb34003)?_0xb34003[_0xec59f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c9cb0):_0xb34003&&typeof _0xb34003==_0xec59f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xec59f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb34003)[_0xec59f5([0x73,0x6f,0x72,0x74])]()[_0xec59f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1588b6,_0x4fbb2c])=>{_0xc283e9(_0x1588b6),_0x5c9cb0(_0x4fbb2c);}):_0xc283e9(window[_0xec59f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb34003));}return _0x5c9cb0(_0x20e012),_0x35cbcf>>>0x0;}function _0x1b37eb(_0x19b803){return _0x19b803[_0xec59f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xec59f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xec59f5([0x30]));}function _0x1400aa(_0x26f1ff){return _0x26f1ff[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0xec59f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xec59f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x22ef0d(){}function _0xec59f5(_0x31b966){return _0x31b966['map'](_0x26440b=>String['fromCharCode'](_0x26440b))['join']('');}_0x2dce7(await _0x1c94ce());}(this);}['_moveSelectionToFootnoteDefinition'](_0x601316){const {plugins:_0x5a9b25,editing:_0x31a3ea,model:_0x3cf221}=this['editor'],_0x3fba5b=_0x5a9b25['get'](c)['getFootnote'](_0x601316);return!!_0x3fba5b&&(_0x3cf221['change'](_0x5a1aba=>{_0x5a1aba['setSelection'](_0x5a1aba['createPositionAt'](_0x3fba5b['definition'],'end'));}),_0x31a3ea['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4335a8){const {plugins:_0x38b01e,editing:_0x1c9f90,model:_0x514c0c}=this['editor'],_0x404026=_0x38b01e['get'](c)['getFootnote'](_0x4335a8);return!!_0x404026&&(_0x514c0c['change'](_0x251d42=>{_0x251d42['setSelection'](_0x404026['reference'],'on');}),_0x1c9f90['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x247f21}=this['editor']['model'],_0x47fb18=this['editor']['config']['get']('footnotes.multiBlock');_0x247f21['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x247f21['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x247f21['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x47fb18?_0x247f21['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x247f21['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x247f21['addChildCheck'](_0xd9ba2c=>{for(const _0x545813 of _0xd9ba2c)if('footnoteDefinition'===_0x545813['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x39b2fa}=this,{conversion:_0x4c6143,editing:_0x293033}=_0x39b2fa,{t:t}=_0x39b2fa['locale'];_0x4c6143['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2f5b59,{writer:_0x26d232,consumable:_0x4d25f6})=>{const _0x3361a4=_0x2f5b59['getChild'](0x0);if(!_0x3361a4||!_0x3361a4['is']('element','a'))return null;const _0x59abb9=_0x3361a4['getAttribute']('href')||'';if(!_0x59abb9['startsWith']('#'))return null;const _0x40e707=_0x59abb9['replace'](/^#/,'');if(!_0x40e707)return null;_0x4d25f6['consume'](_0x3361a4,{'name':!0x0,'attributes':['href']});for(const {item:_0x5d75bd}of _0x293033['view']['createRangeIn'](_0x3361a4))_0x5d75bd['is']('$textProxy')?_0x4d25f6['consume'](_0x5d75bd['textNode'],{'name':!0x0}):_0x5d75bd['is']('element')&&_0x4d25f6['consume'](_0x5d75bd,{'name':!0x0});return _0x26d232['createElement']('footnoteRef',{'footnoteId':_0x40e707});}}),_0x4c6143['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e0b81,{writer:_0x236679})=>D(_0x3e0b81,_0x236679)}),_0x4c6143['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2de435,{writer:_0x26ba19})=>{const _0x52894a=_0x2de435['getAttribute']('footnoteCounter');return _0x3aad28(D(_0x2de435,_0x26ba19),_0x26ba19,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x52894a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3de329}=this,{t:t}=_0x3de329['locale'],{conversion:_0x56370a}=_0x3de329;_0x56370a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x56370a['for']('upcast')['add'](_0x9bb43e=>{_0x9bb43e['on']('element:ol',(_0x240b78,_0xcb8c6f,_0x22b5c8)=>{const _0x547e07=_0xcb8c6f['viewItem'];if(!_0x547e07['hasClass']('footnotes-list')||!_0xcb8c6f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x22b5c8['consumable']['consume'](_0x547e07,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x51b4d3,modelCursor:_0x5f1ed0}=_0x22b5c8['convertChildren'](_0xcb8c6f['viewItem'],_0xcb8c6f['modelCursor']);_0xcb8c6f['modelRange']=_0x51b4d3,_0xcb8c6f['modelCursor']=_0x5f1ed0;}),_0x9bb43e['on']('element:hr',(_0x1730ea,_0x40ee46,_0x3fbdf5)=>{const _0x525a91=_0x40ee46['viewItem'];_0x525a91['hasClass']('footnotes-divider')&&_0x40ee46['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3fbdf5['consumable']['consume'](_0x525a91,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x56370a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3a8240,{writer:_0x1b8fdf})=>g(_0x1b8fdf)}),_0x56370a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x342777,{writer:_0x304edf})=>{const _0x203d79=g(_0x304edf,{'data-footnotes-list-label':t('Footnotes')}),_0x55d033=_0x3aad28(_0x203d79,_0x304edf,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x304edf['setCustomProperty']('footnotesDefinitions',!0x0,_0x55d033),_0x55d033;}});}['_defineDefinitionConverters'](){const {editor:_0x24f048}=this,{conversion:_0x388b86,locale:_0x39823f}=_0x24f048,_0x30b27a=_0x24f048['config']['get']('footnotes.multiBlock');_0x388b86['for']('upcast')['add'](_0x58da91=>{_0x58da91['on']('element:li',(_0x4427a6,_0x583602,_0x2d8763)=>{const _0x57fe1f=_0x583602['viewItem'];if(!_0x57fe1f['hasClass']('footnote-definition')||!_0x57fe1f['getAttribute']('id'))return;const _0x380c4b=_0x57fe1f['parent'];if(!_0x380c4b['is']('element','ol')||!_0x380c4b['hasClass']('footnotes-list'))return;if(!_0x2d8763['consumable']['test'](_0x57fe1f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1bdb63=_0x2d8763['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x57fe1f['getAttribute']('id')});if(!_0x2d8763['safeInsert'](_0x1bdb63,_0x583602['modelCursor']))return;_0x2d8763['consumable']['consume'](_0x57fe1f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1eec4f=Array['from'](_0x57fe1f['getChildren']())['find'](_0x2457f8=>_0x2457f8['is']('element')&&_0x2457f8['hasClass']('footnote-content'));for(const _0x416644 of _0x57fe1f['getChildren']())_0x416644['is']('element')&&(_0x2d8763['consumable']['consume'](_0x416644,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2d8763['consumable']['consume'](_0x416644,{'name':!0x0,'classes':'footnote-content'}));if(_0x1eec4f){if(_0x30b27a)_0x2d8763['convertChildren'](_0x1eec4f,_0x1bdb63);else{const _0x2a6870=_0x2d8763['writer']['createElement']('footnoteInlineContent');_0x2d8763['writer']['insert'](_0x2a6870,_0x1bdb63),_0x2d8763['convertChildren'](_0x1eec4f,_0x2a6870);}}_0x2d8763['updateConversionResult'](_0x1bdb63,_0x583602);});}),_0x388b86['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5ccf3c,{writer:_0x26b340})=>v(_0x5ccf3c,_0x26b340,_0x39823f,{'dataPipeline':!0x0})}),_0x388b86['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3329ff,{writer:_0x3b24f4})=>v(_0x3329ff,_0x3b24f4,_0x39823f)});}['_defineBogusParagraphConverters'](){const {editor:_0x43f6e8}=this,{conversion:_0x4df0b7}=_0x43f6e8;_0x43f6e8['config']['get']('footnotes.multiBlock')?(_0x4df0b7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4df0b7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x43f6e8['model']['document'],'change:data',()=>{!function(_0x198679,_0x3b69a9){const _0x2b54f4=_0x198679['document']['differ'],_0x1b5072=new Set();for(const _0x1424e9 of _0x2b54f4['getChanges']()){const _0x2ca2da='attribute'==_0x1424e9['type']?_0x1424e9['range']['start']['parent']:_0x1424e9['position']['parent'];_0x2ca2da['is']('element','footnoteDefinition')&&_0x1b5072['add'](_0x2ca2da);}for(const _0x1ad412 of _0x1b5072['values']()){const _0x15a5ea=Array['from'](_0x1ad412['getChildren']())['filter'](_0x4cc864=>p(_0x4cc864,_0x3b69a9['mapper']));for(const _0x9e2a46 of _0x15a5ea)_0x3b69a9['reconvertItem'](_0x9e2a46);}}(_0x43f6e8['model'],_0x43f6e8['editing']);})):(_0x4df0b7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4df0b7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x794793,{writer:_0x2950d3})=>{const _0x35ee23=_0x2950d3['createContainerElement']('span');return _0x2950d3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35ee23),_0x35ee23;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3247b2}=this,{editing:_0x26d928,t:t}=_0x3247b2,_0xde0b68=_0x3247b2['model']['document']['selection'];_0x3247b2['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x3247b2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x26d928['view']['document'],'enter',(_0x435c97,_0x5cc0b7)=>{const _0x5d21b7=function(_0x4af3c9){const _0x418cc7=_0x4af3c9['getSelectedElement']();if(_0x418cc7?.['is']('element','footnoteRef'))return _0x418cc7;return null;}(_0xde0b68);if(_0x5d21b7){const _0x200549=_0x5d21b7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x200549),_0x5cc0b7['preventDefault'](),_0x435c97['stop']();}},{'context':_0x14c998});}['_defineClickHandlers'](){const {editor:_0x5c10b1}=this,{editing:_0x3535a0}=_0x5c10b1;_0x5c10b1['editing']['view']['addObserver'](_0x2376c6),_0x5c10b1['editing']['view']['addObserver'](_0x3b95a1);let _0x30d8da=!0x1;this['listenTo'](_0x3535a0['view']['document'],'pointerdown',(_0x1ce1e0,_0x1fa07c)=>{const {target:_0x48145d}=_0x1fa07c,_0x4c4648=_0x3535a0['view']['document']['selection'];_0x30d8da=!!(_0x48145d['is']('element','a')&&_0x48145d['parent']?.['is']('element','sup')&&_0x48145d['parent']['hasClass']('footnote'))&&_0x4c4648['getSelectedElement']()===_0x48145d['parent'];},{'priority':'high'}),this['listenTo'](_0x3535a0['view']['document'],'click',(_0x33dd4e,_0xcaf0a9)=>{const {target:_0x4b0d33}=_0xcaf0a9;if(!_0x4b0d33['is']('element','a'))return;if(_0x4b0d33['parent']?.['is']('element','sup')&&_0x4b0d33['parent']['hasClass']('footnote')&&!_0x30d8da)return void _0xcaf0a9['preventDefault']();let _0x1709ab=_0x4b0d33['getAttribute']('href');if(!_0x1709ab?.['startsWith']('#'))return;_0x1709ab=_0x1709ab['slice'](0x1);let _0x5c1966=!0x1;(_0x1709ab['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1709ab['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1709ab))&&(_0x5c1966=!0x0),_0x5c1966&&(_0xcaf0a9['preventDefault'](),_0x33dd4e['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x3b1b95}={}){return(_0x3f009a,{writer:_0x46a0c2})=>{if(!h(_0x3f009a))return null;if(!_0x3b1b95)return _0x46a0c2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3b0fa4=_0x46a0c2['createContainerElement']('p');return _0x46a0c2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3b0fa4),_0x3b0fa4;};}function h(_0x30f9f1){const {parent:_0x3bfe04}=_0x30f9f1;if(!_0x3bfe04?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3bfe04['childCount'])return!0x1;for(const _0x4a1967 of _0x30f9f1['getAttributeKeys']())if(!_0x4a1967['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4a1967)return!0x1;return!0x0;}function p(_0x557090,_0x294c9c){if(!_0x557090['is']('element','paragraph'))return!0x1;const _0x5cd022=_0x294c9c['toViewElement'](_0x557090);return!!_0x5cd022&&h(_0x557090)!==_0x5cd022['is']('element','span');}function J(_0x14dfde){return _0x14c998(_0x14dfde)&&_0x14dfde['is']('containerElement')&&!!_0x14dfde['getCustomProperty']('footnotesDefinitions');}function g(_0x397857,_0x4ba33d={}){const _0x424d3b=_0x397857['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x48b04f=_0x397857['createContainerElement']('ol',{'class':'footnotes-list'},_0x397857['createSlot']());return _0x397857['createContainerElement']('div',{'class':'footnotes',..._0x4ba33d},[_0x424d3b,_0x48b04f]);}function D(_0x1919fa,_0x1313d7){const _0x22c1bb=_0x1919fa['getAttribute']('footnoteId'),_0x176e4b=_0x1919fa['getAttribute']('footnoteCounter'),_0x51d6e4=_0x1313d7['createUIElement']('a',{'href':'#'+_0x22c1bb},function(_0xd8b76c){const _0x4eb693=this['toDomElement'](_0xd8b76c);return _0x4eb693['textContent']=_0x176e4b,_0x4eb693;}),_0x1e0d8e=_0x1313d7['createContainerElement']('sup',{'id':'ref-'+_0x22c1bb,'class':'footnote'},[_0x51d6e4]);return _0x1e0d8e['getFillerOffset']=()=>null,_0x1e0d8e;}function v(_0x3e53a2,_0x5a1b91,_0x463675,{dataPipeline:_0x51a96f}={}){const {t:t}=_0x463675,_0x385f71=_0x3e53a2['getAttribute']('footnoteId'),_0x3fc164=_0x5a1b91['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x385f71},function(_0x20f4f9){const _0x4e8f57=this['toDomElement'](_0x20f4f9);return _0x4e8f57['innerText']='^',_0x4e8f57;}),_0xc82c52=_0x51a96f?_0x5a1b91['createContainerElement']('div',{'class':'footnote-content'}):_0x517596(_0x5a1b91['createEditableElement']('div',{'class':'footnote-content'}),_0x5a1b91,{'label':t('Footnote\x20content.')});return _0x5a1b91['insert'](_0x5a1b91['createPositionAt'](_0xc82c52,0x0),_0x5a1b91['createSlot']()),_0x5a1b91['createContainerElement']('li',{'class':'footnote-definition','id':_0x385f71},[_0x3fc164,_0xc82c52]);}class e extends _0x43bd3c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x13dd51];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5c77fc}=this,{plugins:_0x4c96be,model:_0x4f4b77}=_0x5c77fc,_0xeb88a2=_0x4c96be['get'](_0x13dd51),_0x59dbc5=_0x4c96be['get'](c);this['listenTo'](_0xeb88a2,'outputTransformation',(_0x2fec4a,_0x2a0998)=>{const _0x333530=function(_0x25741b,_0x3e5830){const _0x5836ef=new Set();for(const {item:_0x18938d}of _0x25741b['createRangeIn'](_0x3e5830))_0x18938d['is']('element','footnoteRef')&&_0x5836ef['add'](_0x18938d['getAttribute']('footnoteId'));return Array['from'](_0x5836ef);}(_0x4f4b77,_0x2a0998['content']);if(!_0x333530['length'])return;const _0x2e6753=_0x59dbc5['getFootnotes'](),_0x4a145a=_0x333530['reduce']((_0xe43faf,_0x385d68)=>{const _0x59bcb6=_0x2e6753['find'](_0x516e7b=>_0x516e7b['id']===_0x385d68);if(_0x59bcb6){const _0x7b5261=_0x5c77fc['data']['toView'](_0x59bcb6['definition'],{'isClipboardPipeline':!0x0}),_0x5c813d=_0x5c77fc['data']['htmlProcessor']['toData'](_0x7b5261);_0xe43faf[_0x59bcb6['id']]=_0x5c813d;}return _0xe43faf;},Object['create'](null));_0x2a0998['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4a145a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x326de6}=this,{model:_0x22a52e,plugins:_0x4bc584}=_0x326de6,{view:_0x24821e}=_0x326de6['editing'],_0x2e77a1=_0x4bc584['get'](_0x13dd51),_0x1974eb=_0x4bc584['get'](c);let _0x5c90c6=null;this['listenTo'](_0x24821e['document'],'clipboardInput',(_0x2fd624,_0x344b0a)=>{const _0x595624=_0x344b0a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5c90c6=_0x595624?JSON['parse'](_0x595624):null;}),this['listenTo'](_0x2e77a1,'contentInsertion',(_0x4efe03,_0x484a99)=>{if(!_0x5c90c6)return;const _0x2e26a5=_0x484a99['sourceEditorId']===this['editor']['id'];_0x2e26a5&&'drop'===_0x484a99['method']||_0x22a52e['change'](_0x3c44c3=>{!function(_0xdbafe7,_0x1090e8){const _0xc90d8e=[];for(const {item:_0x2415fe}of _0xdbafe7['createRangeIn'](_0x1090e8))_0x2415fe['is']('element','footnotesDefinitions')&&_0xc90d8e['push'](_0x2415fe);for(const _0x1a11db of _0xc90d8e)_0xdbafe7['remove'](_0x1a11db);}(_0x3c44c3,_0x484a99['content']);let _0x495103=_0x1974eb['getFootnotesDefinitionsObjectElement']();if(!_0x495103){const _0x1e24d1=_0x22a52e['document']['selection']['getFirstRange']()['root'];_0x495103=_0x1974eb['_insertEmptyFootnotesDefinitionsContainer'](_0x3c44c3,_0x1e24d1);}const _0x36fbfd=function(_0x1d46d1,_0xfaf505,_0x4e1fd0){const _0x19d22c=Object['create'](null);for(const {item:_0x4e76bd}of _0x1d46d1['createRangeIn'](_0xfaf505))if(_0x4e76bd['is']('element','footnoteRef')){const _0x215cf7=_0x4e76bd['getAttribute']('footnoteId');if(!_0x4e1fd0(_0x215cf7))continue;_0x19d22c[_0x215cf7]||(_0x19d22c[_0x215cf7]=_0x3d20cc()),_0x1d46d1['setAttribute']('footnoteId',_0x19d22c[_0x215cf7],_0x4e76bd);}return _0x19d22c;}(_0x3c44c3,_0x484a99['content'],_0x4268cd=>!_0x2e26a5||null!==_0x1974eb['getFootnote'](_0x4268cd));for(const [_0x32338c,_0x6b56e7]of Object['entries'](_0x5c90c6)){const _0x46aa3f=_0x36fbfd[_0x32338c]||_0x32338c,_0x1785ba=_0x3c44c3['createElement']('footnoteDefinition',{'footnoteId':_0x46aa3f}),_0x3a3e14=_0x326de6['data']['htmlProcessor']['toView'](_0x6b56e7),_0x3c3dc1=_0x326de6['data']['toModel'](_0x3a3e14,_0x1785ba);_0x3c44c3['append'](_0x3c3dc1,_0x1785ba),_0x3c44c3['insert'](_0x1785ba,_0x495103,'end');}_0x5c90c6=null;});});}}class i extends _0x43bd3c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1cc409}=this,{componentFactory:_0x5b6bbb}=_0x1cc409['ui'];_0x5b6bbb['add']('insertFootnote',x(_0x1cc409,_0xede7c4)),_0x5b6bbb['add']('menuBar:insertFootnote',x(_0x1cc409,_0x3d72d1)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x540c9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2aae18;for(const _0x3b2500 in _0x540c9d){const _0xc7fd5a=_0x3b2500,_0x32582e=_0x540c9d[_0xc7fd5a];if('footnotesLicenseKeyValid'==_0x32582e||'footnotesLicenseKeyInvalid'==_0x32582e||'footnotesLicenseKeyExpired'==_0x32582e||'footnotesLicenseKeyDomainLimit'==_0x32582e||'footnotesLicenseKeyNotAllowed'==_0x32582e||'footnotesLicenseKeyEvaluationLimit'==_0x32582e||'footnotesLicenseKeyTrialLimit'==_0x32582e||'footnotesLicenseKeyUsageLimit'==_0x32582e){delete _0x540c9d[_0xc7fd5a],_0x2aae18=_0x32582e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2aae18&&_0x540c9d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2aae18&&_0x540c9d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2aae18&&_0x540c9d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x38258b,_0x46c1cd){const _0x28c0c8=_0x38258b['commands']['get']('insertFootnote');return _0x5706c1=>{const {t:t}=_0x5706c1,_0x41c117=new _0x46c1cd(_0x5706c1),_0x22be4a=_0x41c117 instanceof _0x3d72d1;return _0x41c117['bind']('isEnabled')['to'](_0x28c0c8,'isEnabled'),_0x41c117['set']({'label':t(_0x22be4a?'Footnote':'Insert\x20footnote'),'icon':_0x4f816e,'tooltip':!0x0}),_0x41c117['on']('execute',()=>{_0x28c0c8['execute'](),_0x38258b['editing']['view']['focus']();}),_0x41c117;};}class nt extends _0x43bd3c{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x8bee50{['refresh'](){const {editor:_0x38acaa}=this,_0x7bf323=_0x38acaa['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x7bf323,this['value']=_0x7bf323?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x119a6c}){const {editor:_0x230ec9}=this,_0x3ab9ae=_0x230ec9['plugins']['get'](c),_0x270df3=_0x3ab9ae['getFootnotesDefinitionsObjectElement']();_0x270df3&&Q['includes'](_0x119a6c)&&_0x230ec9['model']['change'](_0x3b31ea=>{_0x3b31ea['setAttribute']('footnotesListStyle',_0x119a6c,_0x270df3),_0x3ab9ae['_updateFootnotesCounters'](_0x3b31ea);});}}class b extends _0x8bee50{['refresh'](){const {editor:_0x131eed}=this,_0x2efd37=_0x131eed['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2efd37,this['value']=_0x2efd37?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x34934b}){const {editor:_0x294e39}=this,_0xf1f01c=_0x294e39['plugins']['get'](c),_0x7512b3=_0xf1f01c['getFootnotesDefinitionsObjectElement']();_0x7512b3&&Number['isInteger'](_0x34934b)&&_0x294e39['model']['change'](_0x147c42=>{_0x147c42['setAttribute']('footnotesListStart',_0x34934b,_0x7512b3),_0xf1f01c['_updateFootnotesCounters'](_0x147c42);});}}class P extends _0x43bd3c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bcc80}=this;_0x5bcc80['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5bcc80['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5bcc80['commands']['add']('footnotesStyle',new S(_0x5bcc80)),_0x5bcc80['commands']['add']('footnotesStart',new b(_0x5bcc80)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a0642}=this,{schema:_0x43fde8}=_0x4a0642['model'];_0x43fde8['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x48859f}=this,{conversion:_0x3c66ac,model:_0x33ec03}=_0x48859f,{schema:_0x5e1cef}=_0x33ec03;_0x3c66ac['for']('upcast')['add'](_0x4fb1d3=>{_0x4fb1d3['on']('element:ol',(_0x15ba0,_0x585473,_0x3f2fdc)=>{const _0x11d679=_0x585473['viewItem'],_0x557ce4=_0x585473['modelCursor']?.['parent'];_0x11d679['hasClass']('footnotes-list')&&_0x557ce4?.['is']('element','footnotesDefinitions')&&(function(_0x58e61c,_0x125151,_0x33fa73,_0x10f10b){if(!_0x10f10b['checkAttribute'](_0x125151,'footnotesListStart'))return;let _0x10601c=0x1;const _0x284778=_0x33fa73['consumable']['consume'](_0x58e61c,{'attributes':'start'});if(_0x284778){const _0x1f65ba=Number['parseInt'](_0x58e61c['getAttribute']('start'),0xa);Number['isNaN'](_0x1f65ba)||(_0x10601c=_0x1f65ba);}!_0x284778&&_0x125151['hasAttribute']('footnotesListStart')||_0x33fa73['writer']['setAttribute']('footnotesListStart',_0x10601c,_0x125151);}(_0x11d679,_0x557ce4,_0x3f2fdc,_0x5e1cef),function(_0x25dbef,_0xcd982,_0x9a17fb,_0x5168ac){if(!_0x5168ac['checkAttribute'](_0xcd982,'footnotesListStyle'))return;let _0xa9f386='decimal',_0x40f7e7=!0x1;if(_0x9a17fb['consumable']['consume'](_0x25dbef,{'attributes':'type'})){const _0x44455e={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x25dbef['getAttribute']('type')];_0x44455e&&(_0xa9f386=_0x44455e),_0x40f7e7=!0x0;}_0x9a17fb['consumable']['consume'](_0x25dbef,{'styles':'list-style-type'})&&(_0xa9f386=_0x25dbef['getStyle']('list-style-type'),_0x40f7e7=!0x0),!_0x40f7e7&&_0xcd982['hasAttribute']('footnotesListStyle')||_0x9a17fb['writer']['setAttribute']('footnotesListStyle',_0xa9f386,_0xcd982);}(_0x11d679,_0x557ce4,_0x3f2fdc,_0x5e1cef));});}),_0x3c66ac['for']('downcast')['add'](_0x2a5345=>{_0x2a5345['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x11d1eb,_0x4f820f,_0x2950a1)=>{if(!_0x2950a1['consumable']['consume'](_0x4f820f['item'],_0x11d1eb['name']))return;const _0x29353d=C(_0x4f820f['item'],_0x2950a1['mapper']),{attributeNewValue:_0xee6a9c}=_0x4f820f;null==_0xee6a9c||0x1===_0xee6a9c?_0x2950a1['writer']['removeAttribute']('start',_0x29353d):_0x2950a1['writer']['setAttribute']('start',String(_0xee6a9c),_0x29353d);}),_0x2a5345['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x48534e,_0x338b10,_0x50c5ec)=>{if(!_0x50c5ec['consumable']['consume'](_0x338b10['item'],_0x48534e['name']))return;const _0x122463=C(_0x338b10['item'],_0x50c5ec['mapper']),{attributeNewValue:_0xf8a08d}=_0x338b10;_0xf8a08d&&'decimal'!==_0xf8a08d?_0x50c5ec['writer']['setStyle']('list-style-type',_0xf8a08d,_0x122463):_0x50c5ec['writer']['removeStyle']('list-style-type',_0x122463);});});}['_definePostfixer'](){const {editor:_0x585927}=this,{model:_0x36f217}=_0x585927,_0x1b1895=_0x585927['plugins']['get'](c),_0x5464ff=this['_getDefaultListStyle'](),_0x4b9e79=this['_getDefaultStartIndex']();_0x36f217['document']['registerPostFixer'](_0xc410d8=>{const _0x4e40c6=_0x36f217['document']['differ']['getChanges']();let _0x26e297=!0x1;for(const _0x57793f of _0x4e40c6){if('insert'!==_0x57793f['type']||'$text'===_0x57793f['name'])continue;const _0x3ae1b0=_0x36f217['createRangeOn'](_0x57793f['position']['nodeAfter']);for(const _0x550f40 of _0x3ae1b0['getItems']())_0x550f40['is']('element','footnotesDefinitions')&&(!_0x550f40['hasAttribute']('footnotesListStart')&&_0x36f217['schema']['checkAttribute'](_0x550f40,'footnotesListStart')&&(_0xc410d8['setAttribute']('footnotesListStart',_0x4b9e79,_0x550f40),_0x26e297=!0x0),!_0x550f40['hasAttribute']('footnotesListStyle')&&_0x36f217['schema']['checkAttribute'](_0x550f40,'footnotesListStyle')&&(_0xc410d8['setAttribute']('footnotesListStyle',_0x5464ff,_0x550f40),_0x26e297=!0x0));}return _0x26e297&&_0x1b1895['_updateFootnotesCounters'](_0xc410d8),_0x26e297;});}['_defineFormatter'](){const {editor:_0xf2c03a}=this;_0xf2c03a['plugins']['get'](c)['setFootnoteFormatter'](_0x315440=>this['_formatFootnoteListValue'](_0x315440));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x448bee,value:_0x380465,digits:_0x427e58}){const _0x3212b4=_0x448bee['getAttribute']('footnotesListStyle'),_0x204daa=_0x448bee['getAttribute']('footnotesListStart'),_0x27807b=Math['floor'](_0x380465)+(_0x204daa??0x1)-0x1;switch(_0x3212b4){case'decimal-leading-zero':return function(_0x5c67a5,_0x2c7367){return String(_0x5c67a5)['padStart'](_0x2c7367,'0');}(_0x27807b,Math['max'](0x2,_0x427e58));case'lower-alpha':case'lower-latin':return M(_0x27807b,!0x1);case'upper-alpha':case'upper-latin':return M(_0x27807b,!0x0);case'lower-roman':return V(_0x27807b,!0x1);case'upper-roman':return V(_0x27807b,!0x0);default:return String(_0x27807b);}}}function C(_0x48874b,_0x31f17d){const _0x5c9a9b=_0x31f17d['toViewElement'](_0x48874b);return Array['from'](_0x5c9a9b['getChildren']())['find'](_0x8d2b8d=>_0x8d2b8d['is']('element','ol')&&_0x8d2b8d['hasClass']('footnotes-list'));}function M(_0x467167,_0x3add47){let _0x49c68a='',_0x8c7f11=_0x467167;for(;_0x8c7f11>0x0;){const _0x4bea37=(_0x8c7f11-0x1)%0x1a;_0x49c68a=String['fromCharCode'](0x61+_0x4bea37)+_0x49c68a,_0x8c7f11=Math['floor']((_0x8c7f11-0x1)/0x1a);}return _0x3add47?_0x49c68a['toUpperCase']():_0x49c68a;}const N=[{'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 V(_0x3cbaf0,_0x8cb4c8){let _0x30fc08='',_0xb869dd=_0x3cbaf0;for(const {value:_0x450c3d,numeral:_0x564b82}of N)for(;_0xb869dd>=_0x450c3d;)_0x30fc08+=_0x564b82,_0xb869dd-=_0x450c3d;return _0x8cb4c8?_0x30fc08:_0x30fc08['toLowerCase']();}class H extends _0x54f983{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x470575();['focusCycler'];constructor(_0x30e214,{styleButtonViews:_0x3f2737,styleGridAriaLabel:_0x117635}){super(_0x30e214),(this['focusCycler']=new _0x2749b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3f2737,_0x117635),[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 _0x348eb0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x348eb0['element']);_0x3f496a({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x25d70e=_0x4aeb29=>_0x4aeb29['stopPropagation']();this['keystrokes']['set']('arrowright',_0x25d70e),this['keystrokes']['set']('arrowleft',_0x25d70e),this['keystrokes']['set']('arrowup',_0x25d70e),this['keystrokes']['set']('arrowdown',_0x25d70e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a0e52,_0x49b3e5){const _0x301aa7=new _0x54f983(this['locale']);return _0x301aa7['children']=_0x301aa7['createCollection'](),_0x301aa7['children']['addMany'](_0x5a0e52),_0x301aa7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x49b3e5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x301aa7['children']}),_0x301aa7['children']['delegate']('execute')['to'](this),_0x301aa7['focus']=function(){for(const _0x3a60c1 of this['children'])if(_0x3a60c1 instanceof _0xede7c4&&_0x3a60c1['isOn'])return void _0x3a60c1['focus']();this['children']['first']['focus']();},_0x301aa7['focusTracker']=new et(),_0x301aa7['keystrokes']=new ot(),_0x301aa7['render'](),_0x301aa7['keystrokes']['listenTo'](_0x301aa7['element']),this['children']['add'](_0x301aa7),_0x301aa7;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4e8f69=this['_createStartIndexPropertyView'](),_0xc7ec4c=[_0x4e8f69],_0xc0ced4=new tt(this['locale'],_0xc7ec4c);return _0xc0ced4['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xc0ced4['buttonView']['bind']('isEnabled')['toMany'](_0xc7ec4c,'isEnabled',(..._0x1c9e3f)=>_0x1c9e3f['some'](_0x534ee3=>_0x534ee3)),_0xc0ced4['buttonView']['on']('change:isEnabled',(_0x917ab2,_0x17cc99,_0x28ff37)=>{_0x28ff37||(_0xc0ced4['isCollapsed']=!0x0);}),this['children']['add'](_0xc0ced4),[_0x4e8f69,_0xc0ced4];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2678cf=new st(this['locale'],it);return _0x2678cf['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2678cf['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2678cf['fieldView']['on']('input',()=>{const _0x59dd45=_0x2678cf['fieldView']['element'],_0x15137b=_0x59dd45['valueAsNumber'];Number['isNaN'](_0x15137b)?_0x2678cf['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x59dd45['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x15137b}):_0x2678cf['errorText']=t(_0x15137b<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2678cf;}}class j extends _0x43bd3c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x86afc8,_0x394505];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcc90a2}=this,{componentFactory:_0x5549e0}=_0xcc90a2['ui'];_0xcc90a2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5549e0['add']('footnotesStyle',function(_0x205441){return _0x30318a=>{const {t:t}=_0x30318a,_0x2f3f0d=_0x205441['commands']['get']('footnotesStyle'),_0x3d6218=_0x370afd(_0x30318a),{buttonView:_0x1c0572}=_0x3d6218;return _0x3d6218['class']='ck-footnotes-styles-dropdown',_0x3d6218['bind']('isEnabled')['to'](_0x2f3f0d,'isEnabled'),_0x1c0572['set']({'label':t('Footnotes\x20style'),'icon':_0x4f816e,'tooltip':!0x0}),_0x3d6218['once']('change:isOpen',()=>{const _0x2049c0=function({editor:_0x38f27a,dropdownView:_0x1a8067}){const {t:t}=_0x38f27a['locale'],_0x193173=t('Footnotes\x20definitions\x20styles'),_0x53adb1=function(_0x12b5a6){const t=_0x12b5a6['locale']['t'],_0x395903=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x14a3ea},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x55064c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x164851},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1d15e8},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2911c6},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5b7a8f}];return _0x395903['map'](function(_0x572ab7){const _0x2bb9dd=_0x572ab7['locale'];return({label:_0x1a57ab,icon:_0x320c0d,tooltip:_0x408cff,style:_0x503319})=>{const _0x57ebdf=_0x572ab7['commands']['get']('footnotesStyle'),_0x4e50c3=new _0xede7c4(_0x2bb9dd);return _0x4e50c3['set']({'label':_0x1a57ab,'icon':_0x320c0d,'tooltip':_0x408cff}),_0x4e50c3['bind']('isOn')['to'](_0x57ebdf,'value',_0x3391ef=>_0x3391ef===_0x503319),_0x4e50c3['bind']('isEnabled')['to'](_0x57ebdf,'isEnabled'),_0x4e50c3['on']('execute',()=>{_0x572ab7['execute']('footnotesStyle',{'value':_0x503319}),_0x572ab7['editing']['view']['focus']();}),_0x4e50c3;};}(_0x12b5a6));}(_0x38f27a),_0x5e97dc=new H(_0x38f27a['locale'],{'styleGridAriaLabel':_0x193173,'styleButtonViews':_0x53adb1});return _0x5e97dc['delegate']('execute')['to'](_0x1a8067),_0x5e97dc['on']('footnotesListStart',(_0x40a94c,_0x136e3c)=>{_0x38f27a['execute']('footnotesStart',{'value':_0x136e3c['startIndex']});}),_0x5e97dc;}({'editor':_0x205441,'dropdownView':_0x3d6218});_0x3d6218['panelView']['children']['add'](_0x2049c0);}),_0x3d6218;};}(_0xcc90a2));}['afterInit'](){const {editor:_0x37ff4c}=this,{t:t}=_0x37ff4c['locale'],_0x2b936f=_0x37ff4c['plugins']['get'](_0x394505),{defaultPositions:_0x57bae0}=_0x22995d;_0x2b936f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x37ff4c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xa9108e=>{let _0x167756=_0xa9108e['getFirstPosition']()?.['parent'];return _0x167756?.['is']('$text')&&(_0x167756=_0x167756['parent']),_0x167756?.['is']('element')?_0x167756['findAncestor'](J):null;},'positions':[_0x57bae0['southArrowNorth'],_0x57bae0['southArrowNorthMiddleWest'],_0x57bae0['southArrowNorthMiddleEast'],_0x57bae0['southArrowNorthWest'],_0x57bae0['southArrowNorthEast'],_0x57bae0['northArrowSouth'],_0x57bae0['northArrowSouthMiddleWest'],_0x57bae0['northArrowSouthMiddleEast'],_0x57bae0['northArrowSouthWest'],_0x57bae0['northArrowSouthEast'],_0x57bae0['viewportStickyNorth']]});}}class lt extends _0x43bd3c{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x4a11c5,Command as _0x2c4831}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5d6880,isWidget as _0x563f53,toWidgetEditable as _0xd82813,WidgetToolbarRepository as _0x18f58a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x367e6b,logWarning as _0x1cb0d5,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x199d53,ClickObserver as _0x385ec2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1280b1}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0xe0583,ButtonView as _0x280d11,View as _0x3b8de5,ViewCollection as _0x456963,FocusCycler as _0x39db04,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x5bfdfe,BalloonPanelView as _0x5ced2c,createDropdown as _0x5df20b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x40c037,IconListStyleDecimal as _0x59e9f0,IconListStyleDecimalLeadingZero as _0x5dc99d,IconListStyleLowerRoman as _0x23e552,IconListStyleUpperRoman as _0x2b68c3,IconListStyleLowerLatin as _0x192eaf,IconListStyleUpperLatin as _0x36398b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x15f88c,_0x271588){this['_model']=_0x15f88c,this['_elementName']=_0x271588['elementName'],this['_getElementKey']=_0x271588['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2fdd9c){const _0x46a71b=new Set(),_0x275956=new Map();for(const _0x1e8072 of _0x2fdd9c){if('insert'===_0x1e8072['type']&&'$text'!==_0x1e8072['name']&&_0x1e8072['position']['nodeAfter']){const _0x2c99fb=this['_model']['createRangeOn'](_0x1e8072['position']['nodeAfter']);for(const _0x3a0f4f of _0x2c99fb['getItems']()){if(!_0x3a0f4f['is']('element',this['_elementName']))continue;const _0x2dcf53=this['_getElementKey'](_0x3a0f4f);_0x275956['has'](_0x2dcf53)||_0x275956['set'](_0x2dcf53,[]),_0x275956['get'](_0x2dcf53)['push'](_0x3a0f4f);}}if('remove'===_0x1e8072['type']&&_0x1e8072['name']===this['_elementName']){const _0x243ad3=this['_getElementKey']({'getAttribute':_0x44d340=>_0x1e8072['attributes']['get'](_0x44d340)});_0x46a71b['add'](_0x243ad3);}}for(const [_0x4a0f1b,_0x5521ec]of this['_trackedElements'])'$graveyard'===_0x5521ec['root']['rootName']&&_0x46a71b['add'](_0x4a0f1b);for(const _0x43f035 of _0x46a71b)this['_trackedElements']['delete'](_0x43f035);for(const [_0x198f32,_0x36311f]of _0x275956)this['_trackedElements']['set'](_0x198f32,_0x36311f[_0x36311f['length']-0x1]);const _0x155910=new Set();for(const [_0x37c11c,_0xa8d21e]of _0x275956)_0x46a71b['has'](_0x37c11c)&&(_0x155910['add'](_0xa8d21e[0x0]),_0xa8d21e['length']>0x1?_0x275956['set'](_0x37c11c,_0xa8d21e['slice'](0x1)):_0x275956['delete'](_0x37c11c),_0x46a71b['delete'](_0x37c11c));return{'removed':Array['from'](_0x46a71b),'inserted':Array['from'](_0x275956['values']())['flat'](),'moved':Array['from'](_0x155910)};}}class c extends _0x4a11c5{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c2935){super(_0x4c2935),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4fc282=>_0x4fc282['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x140ddd=>_0x140ddd['getAttribute']('footnoteId')});}['init'](){const {editor:_0x19f420}=this,{model:_0x43ad0b,data:_0x426d08}=_0x19f420;_0x43ad0b['document']['registerPostFixer'](_0x4d38ed=>{const _0x4708ff=_0x43ad0b['document']['differ']['getChanges']();let _0x5ba5bc=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4d38ed,_0x4708ff)&&(_0x5ba5bc=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4d38ed,_0x4708ff)&&(_0x5ba5bc=!0x0),this['_handleFootnoteReferencesChanges'](_0x4d38ed,_0x4708ff)&&(_0x5ba5bc=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4d38ed)&&(_0x5ba5bc=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4d38ed)&&(_0x5ba5bc=!0x0),this['_sortFootnoteDefinitions'](_0x4d38ed)&&(_0x5ba5bc=!0x0),_0x5ba5bc;}),this['listenTo'](_0x43ad0b['document'],'change:data',()=>{_0x43ad0b['enqueueChange']({'isUndoable':!0x1},_0x457d6a=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x457d6a);});},{'priority':'low'}),this['listenTo'](_0x426d08,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1ab64c){return this['_footnotes']['find'](_0xf81b91=>_0xf81b91['id']===_0x1ab64c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x16f372){this['_footnoteFormatter']=_0x16f372;}['_updateFootnotesCounters'](_0x5741c3,_0x1e3407=0x0){let _0x581175=!0x1;for(let _0x11a8e8=_0x1e3407;_0x11a8e8<this['_footnotes']['length'];_0x11a8e8++)this['_updateFootnoteRefCounter'](_0x5741c3,_0x11a8e8)&&(_0x581175=!0x0);return _0x581175;}['_insertEmptyFootnotesDefinitionsContainer'](_0x322dc8,_0x372cde){const _0x240e48=_0x322dc8['createElement']('footnotesDefinitions',{});return _0x322dc8['append'](_0x240e48,_0x372cde),this['_footnotesDefinitions']=_0x240e48,_0x240e48;}['_ensureFootnotesDefinitionsContainerExists'](_0x1b2054){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5af68e=this['_footnotes'][0x0]['reference']['root'],_0x474835=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1b2054,_0x5af68e);for(const _0x1ba7c3 of this['_footnotes'])_0x1ba7c3['definition']['parent']||_0x1b2054['insert'](_0x1ba7c3['definition'],_0x474835,'end');this['_updateFootnotesCounters'](_0x1b2054);}['_handleFootnotesDefinitionsObjectChanges'](_0x4d62a7,_0x20989c){let _0x382e26=!0x1;const {inserted:_0x2ffdaa,removed:_0x553194,moved:_0x34c46e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x20989c);if(_0x34c46e['length']&&(this['_footnotesDefinitions']=_0x34c46e[0x0]),_0x2ffdaa['length']){if(_0x2ffdaa['length']>0x1||this['_footnotesDefinitions']&&_0x2ffdaa['some'](_0x467e09=>_0x467e09!==this['_footnotesDefinitions'])){const _0x8ba7e5=_0x4d62a7['createElement']('footnotesDefinitions',{}),_0x26e3ca=[];this['_footnotesDefinitions']&&_0x26e3ca['push'](this['_footnotesDefinitions']),_0x26e3ca['push'](..._0x2ffdaa),_0x4d62a7['insert'](_0x8ba7e5,_0x26e3ca[0x0],'before');for(const _0x214645 of _0x26e3ca)_0x4d62a7['move'](_0x4d62a7['createRangeIn'](_0x214645),_0x4d62a7['createPositionAt'](_0x8ba7e5,'end')),_0x4d62a7['remove'](_0x214645);this['_footnotesDefinitions']=_0x8ba7e5,this['_updateFootnotesCounters'](_0x4d62a7),_0x382e26=!0x0;}else this['_footnotesDefinitions']=_0x2ffdaa[0x0];}if(_0x553194['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x152419 of this['_footnotes'])_0x4d62a7['remove'](_0x152419['reference']),_0x382e26=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x382e26;}['_handleFootnoteDefinitionsChanges'](_0x2a9fae,_0x2f46bb){let _0x41ce27=!0x1;const _0x558d3b=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x303a66,moved:_0x66a306}=this['_footnoteDefsTracker']['getChanges'](_0x2f46bb);for(const _0x334f40 of[..._0x66a306,..._0x303a66]){const _0x18359d=_0x334f40['getAttribute']('footnoteId'),_0x4aadbc=this['getFootnote'](_0x18359d);_0x4aadbc&&(_0x4aadbc['definition']=_0x334f40),_(_0x2a9fae,_0x558d3b,_0x334f40)&&(_0x41ce27=!0x0);}return _0x41ce27;}['_handleFootnoteReferencesChanges'](_0x49b0f9,_0x5dc0c7){let _0x2a3699=!0x1;const {removed:_0x153000,inserted:_0x5163fd,moved:_0x10c464}=this['_footnoteRefsTracker']['getChanges'](_0x5dc0c7);for(const _0x5ac964 of _0x153000)this['_handleRemoveFootnoteReferenceById'](_0x49b0f9,_0x5ac964)&&(_0x2a3699=!0x0);for(const _0x45ecbf of _0x5163fd)this['_handleInsertedFootnoteReference'](_0x49b0f9,_0x45ecbf)&&(_0x2a3699=!0x0);for(const _0x132b76 of _0x10c464)this['_handleMovedFootnoteReference'](_0x49b0f9,_0x132b76)&&(_0x2a3699=!0x0);return _0x2a3699;}['_handleFootnotesDefinitionsObjectSync'](_0x22cb2c){if(!this['_footnotesDefinitions'])return!0x1;let _0x135aac=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1a9c52=[];for(const _0x242d2d of this['_footnotesDefinitions']['getChildren']()){const _0x23fe26=_0x242d2d['getAttribute']('footnoteId');this['getFootnote'](_0x23fe26)||(_0x1a9c52['unshift'](_0x242d2d),_0x135aac=!0x0);}for(const _0x47e625 of _0x1a9c52)_0x22cb2c['remove'](_0x47e625);}const _0x471921=new Set(),_0x495042=[];for(const _0x3a09a0 of this['_footnotesDefinitions']['getChildren']()){const _0x8c144f=_0x3a09a0['getAttribute']('footnoteId');_0x471921['has'](_0x8c144f)?(_0x495042['unshift'](_0x3a09a0),_0x135aac=!0x0):_0x471921['add'](_0x8c144f);}for(const _0x225927 of _0x495042)_0x22cb2c['remove'](_0x225927);return this['_footnotesDefinitions']['childCount']||(_0x22cb2c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x135aac=!0x0),_0x135aac;}['_handleInsertedFootnoteReference'](_0xd844de,_0x3c7109){if(this['_footnotes']['find'](_0x2bc88d=>_0x2bc88d['reference']===_0x3c7109))return!0x1;let _0x44ee8f=!0x1;const _0x817a9d=_0x3c7109['getAttribute']('footnoteId'),_0x5836fd=this['_footnotes']['findIndex'](_0x5337a3=>_0x5337a3['id']===_0x817a9d);-0x1!==_0x5836fd&&(_0xd844de['remove'](this['_footnotes'][_0x5836fd]['reference']),this['_footnotes']['splice'](_0x5836fd,0x1),_0x44ee8f=!0x0);let _0x4342b5=this['_footnotesDefinitions']?function(_0x5448dd,_0x197040){for(const _0x519aae of _0x5448dd['getChildren']())if(_0x519aae['getAttribute']('footnoteId')===_0x197040)return _0x519aae;return null;}(this['_footnotesDefinitions'],_0x817a9d):null;_0x4342b5||(_0x4342b5=_0xd844de['createElement']('footnoteDefinition',{'footnoteId':_0x817a9d}),this['_footnotesDefinitions']&&(_0xd844de['insert'](_0x4342b5,this['_footnotesDefinitions'],'end'),_0x44ee8f=!0x0));const _0x41c355={'id':_0x817a9d,'reference':_0x3c7109,'definition':_0x4342b5},_0x5aa22f=I(this['editor']['model'],this['_footnotes'],_0x3c7109);this['_footnotes']['splice'](_0x5aa22f,0x0,_0x41c355);let _0x44ae77=_0x5aa22f;return-0x1!==_0x5836fd&&(_0x44ae77=Math['min'](_0x5aa22f,_0x5836fd)),this['_updateFootnotesCounters'](_0xd844de,_0x44ae77)&&(_0x44ee8f=!0x0),_0x44ee8f;}['_handleRemoveFootnoteReferenceById'](_0x189f59,_0x2d83b5){const _0x21c7d9=this['_footnotes']['findIndex'](_0x315d36=>_0x315d36['id']===_0x2d83b5);if(-0x1===_0x21c7d9)return!0x1;let _0x5d8b1e=!0x1;const _0x5040d6=this['_footnotes'][_0x21c7d9];return'$graveyard'!==_0x5040d6['definition']['root']['rootName']&&(_0x189f59['remove'](_0x5040d6['definition']),_0x5d8b1e=!0x0),this['_footnotes']['splice'](_0x21c7d9,0x1),this['_updateFootnotesCounters'](_0x189f59,_0x21c7d9)&&(_0x5d8b1e=!0x0),_0x5d8b1e;}['_handleMovedFootnoteReference'](_0x1f4ec7,_0x555a63){const _0x3aa0d2=_0x555a63['getAttribute']('footnoteId'),_0x6170d2=this['_footnotes']['findIndex'](_0x206f86=>_0x206f86['id']===_0x3aa0d2),_0x5d82bb=this['_footnotes'][_0x6170d2];let _0x433120=!0x1;_0x5d82bb['reference']=_0x555a63,this['_footnotes']['splice'](_0x6170d2,0x1);const _0x1db995=I(this['editor']['model'],this['_footnotes'],_0x555a63);return this['_footnotes']['splice'](_0x1db995,0x0,_0x5d82bb),this['_updateFootnotesCounters'](_0x1f4ec7,Math['min'](_0x6170d2,_0x1db995))&&(_0x433120=!0x0),_0x433120;}['_updateFootnoteRefCounter'](_0x11aa8d,_0x137f09){if(!this['_footnotesDefinitions'])return!0x1;const _0x431502=this['_footnotes'][_0x137f09];let _0x3be57a;return _0x3be57a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x431502,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x137f09+0x1}):String(_0x137f09+0x1),_0x431502['reference']['getAttribute']('footnoteCounter')!=_0x3be57a&&(_0x11aa8d['setAttribute']('footnoteCounter',_0x3be57a,_0x431502['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5eb965){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x320fa6,_0x514717){if(_0x320fa6['length']!==_0x514717['length'])return!0x1;for(let _0x246985=0x0;_0x246985<_0x320fa6['length'];_0x246985++)if(_0x320fa6[_0x246985]!==_0x514717[_0x246985])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5d8d48=>_0x5d8d48['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x506832=>_0x506832['getAttribute']('footnoteId'))))return!0x1;let _0x30aa86=!0x1;for(let _0x522363=0x0;_0x522363<this['_footnotes']['length'];_0x522363++){const _0x38eef7=this['_footnotes'][_0x522363],_0x154e51=_0x5eb965['createPositionBefore'](_0x38eef7['definition']),_0x15f41d=_0x5eb965['createPositionAt'](this['_footnotesDefinitions'],_0x522363);_0x154e51['isEqual'](_0x15f41d)||(_0x5eb965['move'](_0x5eb965['createRangeOn'](_0x38eef7['definition']),_0x15f41d),_0x30aa86=!0x0);}return _0x30aa86;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2ef024){if(!this['_footnotes']['length'])return!0x1;const {model:_0x24b310}=this['editor'];let _0x1df68a=!0x1;for(let _0x48afb1=0x0;_0x48afb1<this['_footnotes']['length']-0x1;_0x48afb1++){const _0xd08957=this['_footnotes'][_0x48afb1],_0x2f09b2=this['_footnotes'][_0x48afb1+0x1],_0x55935e=_0x24b310['createPositionBefore'](_0xd08957['reference']),_0x125100=_0x24b310['createPositionBefore'](_0x2f09b2['reference']);'after'===_0x55935e['compareWith'](_0x125100)&&(this['_handleMovedFootnoteReference'](_0x2ef024,_0xd08957['reference']),_0x48afb1=-0x1,_0x1df68a=!0x0);}return _0x1df68a;}}function _(_0x23a990,_0x2dae99,_0x323dc1){if(_0x323dc1['childCount'])return!0x1;const _0x5be1a9=_0x2dae99?'paragraph':'footnoteInlineContent';return _0x23a990['insert'](_0x23a990['createElement'](_0x5be1a9),_0x323dc1),!0x0;}function I(_0x53b096,_0x1055cf,_0x1d3a8d){if(0x0===_0x1055cf['length'])return 0x0;const _0x37c913=_0x53b096['createPositionBefore'](_0x1d3a8d);for(let _0x58cb8f=0x0;_0x58cb8f<_0x1055cf['length'];_0x58cb8f++){const _0x452496=_0x1055cf[_0x58cb8f],_0x226af0=_0x53b096['createPositionBefore'](_0x452496['reference']);if('before'===_0x37c913['compareWith'](_0x226af0))return _0x58cb8f;}const _0x4d4f10=_0x1d3a8d['root'];let _0x53f3a1=-0x1;for(let _0x1c09be=_0x1055cf['length']-0x1;_0x1c09be>=0x0;_0x1c09be--)if(_0x1055cf[_0x1c09be]['reference']['root']===_0x4d4f10){_0x53f3a1=_0x1c09be;break;}if(-0x1!==_0x53f3a1)return _0x53f3a1+0x1;const _0x596d48=_0x53b096['document']['getRootNames'](),_0x499c12=_0x596d48['indexOf'](_0x4d4f10['rootName']),_0x68dab1=_0x596d48[_0x499c12+0x1];if(_0x68dab1){for(let _0x380a4b=0x0;_0x380a4b<_0x1055cf['length'];_0x380a4b++)if(_0x1055cf[_0x380a4b]['reference']['root']['rootName']===_0x68dab1)return _0x380a4b;}return _0x1055cf['length'];}class m extends _0x2c4831{['refresh'](){const _0x280ee8=this['editor']['model']['document']['selection'],_0x16347b=this['_getPositionToInsertFootnote'](_0x280ee8);this['isEnabled']=!!_0x16347b;}['execute'](_0x45a9a0){const {editor:_0x1c1f4c}=this,{model:_0x821ba3}=_0x1c1f4c,{selection:_0x29495f}=_0x821ba3['document'],_0x5f990d=this['_getPositionToInsertFootnote'](_0x29495f);if(!_0x5f990d)return;const _0x51292b=_0x1c1f4c['plugins']['get']('FootnotesEditing'),_0x3aec22=_0x45a9a0?.['footnoteId']??_0x367e6b();!function(_0x1d4ba1){return'string'==typeof _0x1d4ba1&&_0x1d4ba1['length']>0x0&&!/\s/['test'](_0x1d4ba1)&&!/^\d/['test'](_0x1d4ba1);}(_0x3aec22)?_0x1cb0d5('insert-footnote-command-executed-with-invalid-id'):(_0x821ba3['change'](_0x43eb4b=>{const _0x16fd23=_0x43eb4b['createElement']('footnoteRef',{'footnoteId':_0x3aec22});_0x821ba3['insertObject'](_0x16fd23,_0x5f990d,null);}),_0x51292b['_moveSelectionToFootnoteDefinition'](_0x3aec22));}['_getPositionToInsertFootnote'](_0x31de79){const {model:_0x53bc43}=this['editor'],{schema:_0x34d7c2}=_0x53bc43,_0x50788a=_0x31de79['getFirstRange']();for(const _0xdc85e1 of _0x50788a['getItems']())if(_0x34d7c2['isBlock'](_0xdc85e1)||_0x34d7c2['isObject'](_0xdc85e1))return null;const _0x2af58f=_0x50788a['end'];return _0x34d7c2['checkChild'](_0x2af58f,'footnoteRef')?_0x2af58f:null;}}class r extends _0x4a11c5{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x288bc1}=this;_0x288bc1['config']['define']('footnotes.multiBlock',!0x0),_0x288bc1['commands']['add']('insertFootnote',new m(_0x288bc1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x52a4e8){const _0x12c55e=_0x1ade55([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]),_0x28235e=0x47a28506,_0x5a0115=0x47a5fd56^_0x28235e,_0x469a71=window[_0x1ade55([0x44,0x61,0x74,0x65])][_0x1ade55([0x6e,0x6f,0x77])](),_0x53017c=_0x52a4e8[_0x1ade55([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a5582=new window[(_0x1ade55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45db90=>{_0x53017c[_0x1ade55([0x6f,0x6e,0x63,0x65])](_0x1ade55([0x72,0x65,0x61,0x64,0x79]),_0x45db90);}),_0x32fd0b={[_0x1ade55([0x6b,0x74,0x79])]:_0x1ade55([0x45,0x43]),[_0x1ade55([0x75,0x73,0x65])]:_0x1ade55([0x73,0x69,0x67]),[_0x1ade55([0x63,0x72,0x76])]:_0x1ade55([0x50,0x2d,0x32,0x35,0x36]),[_0x1ade55([0x78])]:_0x1ade55([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]),[_0x1ade55([0x79])]:_0x1ade55([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]),[_0x1ade55([0x61,0x6c,0x67])]:_0x1ade55([0x45,0x53,0x32,0x35,0x36])},_0x4d8a36=_0x53017c[_0x1ade55([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ade55([0x67,0x65,0x74])](_0x1ade55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x494c58(){let _0x4c367e,_0x3c2caf=null,_0x58b2ab=null;try{if(_0x4d8a36==_0x1ade55([0x47,0x50,0x4c]))return _0x1ade55([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c367e=_0x9fd1e0(),!_0x4c367e)return _0x1ade55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c367e[_0x1ade55([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58b2ab=_0x2fb262(_0x4c367e[_0x1ade55([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c367e[_0x1ade55([0x6a,0x74,0x69])])),await _0x3237a4()?_0x5e503a()?_0x224877()?_0x1ade55([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x30c92b()?(_0x4c367e[_0x1ade55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ade55([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c2caf=_0x7e7de7(_0x1ade55([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c367e[_0x1ade55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ade55([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c2caf=_0x7e7de7(_0x1ade55([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2972d8()):_0x1ade55([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ade55([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ade55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ade55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x224877(){const _0x16d77a=[_0x1ade55([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ade55([0x74,0x72,0x69,0x61,0x6c])][_0x1ade55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c367e[_0x1ade55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x469a71/0x3e8:0xe10*_0x5a0115;return _0x4c367e[_0x1ade55([0x65,0x78,0x70])]<_0x16d77a;}function _0x5e503a(){const _0xc34009=_0x4c367e[_0x1ade55([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc34009&&(!!_0xc34009[_0x1ade55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ade55([0x2a]))||!!_0xc34009[_0x1ade55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ade55([0x46,0x4f,0x4f])));}function _0x30c92b(){const _0xe5426e=_0x4c367e[_0x1ade55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe5426e||0x0==_0xe5426e[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cb191}=new URL(window[_0x1ade55([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe5426e[_0x1ade55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cb191))return!0x0;const _0x2ae4ba=_0x5cb191[_0x1ade55([0x73,0x70,0x6c,0x69,0x74])](_0x1ade55([0x2e]));return _0xe5426e[_0x1ade55([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32e6cb=>_0x32e6cb[_0x1ade55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ade55([0x2a])))[_0x1ade55([0x6d,0x61,0x70])](_0x4f4a55=>_0x4f4a55[_0x1ade55([0x73,0x70,0x6c,0x69,0x74])](_0x1ade55([0x2e])))[_0x1ade55([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb87068=>_0xb87068[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ae4ba[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ade55([0x6d,0x61,0x70])](_0x9b462a=>Array(_0x2ae4ba[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9b462a[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ade55([0x66,0x69,0x6c,0x6c])](_0x9b462a[0x0]===_0x1ade55([0x2a])?_0x1ade55([0x2a]):'')[_0x1ade55([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9b462a))[_0x1ade55([0x73,0x6f,0x6d,0x65])](_0x538813=>_0x2ae4ba[_0x1ade55([0x65,0x76,0x65,0x72,0x79])]((_0x494294,_0x5f5182)=>_0x538813[_0x5f5182]===_0x494294||_0x538813[_0x5f5182]===_0x1ade55([0x2a])));}function _0x2972d8(){return _0x3c2caf&&_0x58b2ab?new window[(_0x1ade55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d574f,_0x4114fa)=>{_0x3c2caf[_0x1ade55([0x74,0x68,0x65,0x6e])](_0x1d574f,_0x4114fa),_0x58b2ab[_0x1ade55([0x74,0x68,0x65,0x6e])](_0x567fc0=>{_0x567fc0!=_0x1ade55([0x56,0x61,0x6c,0x69,0x64])&&_0x1d574f(_0x567fc0);},_0x4114fa);}):_0x3c2caf||_0x58b2ab||_0x1ade55([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fb262(_0x11b67c,_0x5c7755){return new window[(_0x1ade55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f617d=>{if(_0xe22929())return _0x1f617d(_0x1ade55([0x56,0x61,0x6c,0x69,0x64]));_0x11ffa3(),_0x53017c[_0x1ade55([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ade55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1809da=!0x1;const _0x3f5679=_0x367e6b();function _0x54d046(_0x367b93){return!!_0x367b93&&(typeof _0x367b93===_0x1ade55([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x367b93===_0x1ade55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x367b93[_0x1ade55([0x74,0x68,0x65,0x6e])]===_0x1ade55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x367b93[_0x1ade55([0x63,0x61,0x74,0x63,0x68])]===_0x1ade55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d2fe8(_0x341646){_0x5a6897(_0x341646)[_0x1ade55([0x74,0x68,0x65,0x6e])](_0x2f3537=>{if(!_0x2f3537||_0x2f3537[_0x1ade55([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ade55([0x6f,0x6b]))return _0x1ade55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x274071(_0x2da6f2(_0x3f5679+_0x5c7755))!=_0x2f3537[_0x1ade55([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ade55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ade55([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ade55([0x74,0x68,0x65,0x6e])](_0x11f250=>(_0x113ba3(),_0x11f250),()=>{const _0x3fa349=_0xb3564d();return null==_0x3fa349?(_0x113ba3(),_0x1ade55([0x56,0x61,0x6c,0x69,0x64])):_0x1ade55(_0x469a71-_0x3fa349>(0x63ae0106^_0x28235e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ade55([0x74,0x68,0x65,0x6e])](_0x1f617d)[_0x1ade55([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f617d(_0x1ade55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19bbb7=0x47946b86^_0x28235e;function _0x113ba3(){const _0x22a26e=_0x1ade55([0x6c,0x6c,0x63,0x74,0x2d])+_0x274071(_0x2da6f2(_0x11b67c)),_0x24aab4=_0x2f9e6e(_0x274071(window[_0x1ade55([0x4d,0x61,0x74,0x68])][_0x1ade55([0x63,0x65,0x69,0x6c])](_0x469a71/_0x19bbb7)));window[_0x1ade55([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ade55([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22a26e,_0x24aab4);}function _0xb3564d(){const _0x401742=_0x1ade55([0x6c,0x6c,0x63,0x74,0x2d])+_0x274071(_0x2da6f2(_0x11b67c)),_0x2e249b=window[_0x1ade55([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ade55([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401742);return _0x2e249b?window[_0x1ade55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f9e6e(_0x2e249b),0x10)*_0x19bbb7:null;}function _0x5a6897(_0x2b1487){return new window[(_0x1ade55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x370eac,_0x4a3633)=>{_0x2b1487[_0x1ade55([0x74,0x68,0x65,0x6e])](_0x370eac,_0x4a3633),window[_0x1ade55([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a3633,0x47a351c6^_0x28235e);});}}_0x53017c[_0x1ade55([0x6f,0x6e])](_0x1ade55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bc29a,_0x1b5282)=>{if(_0x1b5282[0x0]!=_0x11b67c)return _0x1f617d(_0x1ade55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b5282[0x1]={..._0x1b5282[0x1],[_0x1ade55([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f5679};},{[_0x1ade55([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ade55([0x68,0x69,0x67,0x68])}),_0x53017c[_0x1ade55([0x6f,0x6e])](_0x1ade55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f98c4=>{_0x54d046(_0x2f98c4[_0x1ade55([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1809da=!0x0,_0x5d2fe8(_0x2f98c4[_0x1ade55([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ade55([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ade55([0x6c,0x6f,0x77])}),_0x1a5582[_0x1ade55([0x74,0x68,0x65,0x6e])](()=>{_0x1809da||_0x1f617d(_0x1ade55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe22929(){return _0x53017c[_0x1ade55([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ade55([0x76,0x69,0x65,0x77])][_0x1ade55([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ade55([0x61,0x75,0x74,0x6f]);}function _0x11ffa3(){_0x53017c[_0x1ade55([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ade55([0x76,0x69,0x65,0x77])][_0x1ade55([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ade55([0x61,0x75,0x74,0x6f]);}}function _0x7e7de7(_0xa45eae){const _0x1e7634=[new window[(_0x1ade55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebf34=>setTimeout(_0x2ebf34,0x47abbbca^_0x28235e)),_0x1a5582[_0x1ade55([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ade55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dfae0=>{let _0x38746f=0x0;_0x53017c[_0x1ade55([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ade55([0x6f,0x6e])](_0x1ade55([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16140e,_0x885c31)=>{_0x885c31[0x0][_0x1ade55([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38746f++,_0x38746f==(0x47a284fe^_0x28235e)&&(_0x5dfae0(),_0x16140e[_0x1ade55([0x6f,0x66,0x66])]());});}))];return window[_0x1ade55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ade55([0x72,0x61,0x63,0x65])](_0x1e7634)[_0x1ade55([0x74,0x68,0x65,0x6e])](()=>_0xa45eae);}async function _0x4d8dd2(){await _0x1a5582,_0x53017c[_0x1ade55([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ade55([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x253cb8,_0x53017c[_0x1ade55([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ade55([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x253cb8,_0x53017c[_0x1ade55([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ade55([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5838a7(_0x46d7df){const _0xacf080=_0x511362();_0x53017c[_0xacf080]=_0x1ade55([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46d7df,_0x46d7df!=_0x1ade55([0x56,0x61,0x6c,0x69,0x64])&&_0x4d8dd2();}function _0x511362(){const _0x35df33=window[_0x1ade55([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ade55([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ade55([0x6e,0x6f,0x77])]())[_0x1ade55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ade55([0x2e]),'');let _0x5dfb98=_0x1ade55([0x75]);for(let _0x5c8c81=0x0;_0x5c8c81<_0x35df33[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c8c81+=0x2){let _0x2435cb=window[_0x1ade55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35df33[_0x1ade55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c8c81,_0x5c8c81+0x2));_0x2435cb>=_0x12c55e[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2435cb-=_0x12c55e[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5dfb98+=_0x12c55e[_0x2435cb];}return _0x5dfb98;}function _0x9fd1e0(){const _0x40e814=_0x4d8a36[_0x1ade55([0x73,0x70,0x6c,0x69,0x74])](_0x1ade55([0x2e]));if(0x3!=_0x40e814[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x17d2e3(_0x40e814[0x1]);function _0x17d2e3(_0x74811a){const _0x2ddfbd=_0x31ce74(_0x74811a);return _0x2ddfbd&&_0x2c57ca()?_0x2ddfbd:null;function _0x2c57ca(){const _0x267bc3=_0x2ddfbd[_0x1ade55([0x6a,0x74,0x69])],_0x147eec=window[_0x1ade55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x267bc3[_0x1ade55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x267bc3[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57a218={..._0x2ddfbd,[_0x1ade55([0x6a,0x74,0x69])]:_0x267bc3[_0x1ade55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x267bc3[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57a218[_0x1ade55([0x76,0x63])],_0x2da6f2(_0x57a218)==_0x147eec;}}}async function _0x3237a4(){let _0xe3dbf4=!0x0;try{const _0x5caab5=_0x4d8a36[_0x1ade55([0x73,0x70,0x6c,0x69,0x74])](_0x1ade55([0x2e])),[_0x222fdd,_0x1e9127,_0x59994a]=_0x5caab5;return _0x316702(_0x222fdd),await _0x1289ff(_0x222fdd,_0x1e9127,_0x59994a),_0xe3dbf4;}catch{return!0x1;}function _0x316702(_0x192b8b){const _0x1a20a8=_0x31ce74(_0x192b8b);_0x1a20a8&&_0x1a20a8[_0x1ade55([0x61,0x6c,0x67])]==_0x1ade55([0x45,0x53,0x32,0x35,0x36])||(_0xe3dbf4=!0x1);}async function _0x1289ff(_0x5be2c2,_0x461c18,_0x1adada){const _0x25cecc=window[_0x1ade55([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ade55([0x66,0x72,0x6f,0x6d])](_0x3806f6(_0x1adada),_0x26c426=>_0x26c426[_0x1ade55([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47c088=new window[(_0x1ade55([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ade55([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5be2c2+_0x1ade55([0x2e])+_0x461c18),_0x547d4f=window[_0x1ade55([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ade55([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x547d4f)return;const _0x1b1359=await _0x547d4f[_0x1ade55([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ade55([0x6a,0x77,0x6b]),_0x32fd0b,{[_0x1ade55([0x6e,0x61,0x6d,0x65])]:_0x1ade55([0x45,0x43,0x44,0x53,0x41]),[_0x1ade55([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ade55([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ade55([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x547d4f[_0x1ade55([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ade55([0x6e,0x61,0x6d,0x65])]:_0x1ade55([0x45,0x43,0x44,0x53,0x41]),[_0x1ade55([0x68,0x61,0x73,0x68])]:{[_0x1ade55([0x6e,0x61,0x6d,0x65])]:_0x1ade55([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b1359,_0x25cecc,_0x47c088)||(_0xe3dbf4=!0x1);}}function _0x31ce74(_0xf100e0){return _0xf100e0[_0x1ade55([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ade55([0x65,0x79]))?JSON[_0x1ade55([0x70,0x61,0x72,0x73,0x65])](_0x3806f6(_0xf100e0)):null;}function _0x3806f6(_0x2f14ec){return window[_0x1ade55([0x61,0x74,0x6f,0x62])](_0x2f14ec[_0x1ade55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ade55([0x2b]))[_0x1ade55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ade55([0x2f])));}function _0x2da6f2(_0x550fa7){let _0x518e31=0x1505;function _0x3fbf7d(_0xce5679){for(let _0x513e7a=0x0;_0x513e7a<_0xce5679[_0x1ade55([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x513e7a++){const _0x3294f9=_0xce5679[_0x1ade55([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x513e7a);_0x518e31=(_0x518e31<<0x5)+_0x518e31+_0x3294f9,_0x518e31&=_0x518e31;}}function _0x16fcc7(_0x4e7713){Array[_0x1ade55([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e7713)?_0x4e7713[_0x1ade55([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16fcc7):_0x4e7713&&typeof _0x4e7713==_0x1ade55([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ade55([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e7713)[_0x1ade55([0x73,0x6f,0x72,0x74])]()[_0x1ade55([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e7370,_0x4dc5e1])=>{_0x3fbf7d(_0x4e7370),_0x16fcc7(_0x4dc5e1);}):_0x3fbf7d(window[_0x1ade55([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e7713));}return _0x16fcc7(_0x550fa7),_0x518e31>>>0x0;}function _0x274071(_0x129bf1){return _0x129bf1[_0x1ade55([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ade55([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ade55([0x30]));}function _0x2f9e6e(_0x1ea03b){return _0x1ea03b[_0x1ade55([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ade55([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ade55([0x6a,0x6f,0x69,0x6e])]('');}function _0x253cb8(){}function _0x1ade55(_0xab3f7b){return _0xab3f7b['map'](_0xebf9a2=>String['fromCharCode'](_0xebf9a2))['join']('');}_0x5838a7(await _0x494c58());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1d6fc3){const {plugins:_0x2c7f16,editing:_0x2e4cf2,model:_0x55e14d}=this['editor'],_0x17258e=_0x2c7f16['get'](c)['getFootnote'](_0x1d6fc3);return!!_0x17258e&&(_0x55e14d['change'](_0x6f93f7=>{_0x6f93f7['setSelection'](_0x6f93f7['createPositionAt'](_0x17258e['definition'],'end'));}),_0x2e4cf2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x25f5ad){const {plugins:_0x2e45fc,editing:_0x25fbfa,model:_0x2be51b}=this['editor'],_0x42a7a8=_0x2e45fc['get'](c)['getFootnote'](_0x25f5ad);return!!_0x42a7a8&&(_0x2be51b['change'](_0x2fcb2d=>{_0x2fcb2d['setSelection'](_0x42a7a8['reference'],'on');}),_0x25fbfa['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x52ac7c}=this['editor']['model'],_0x11d4f8=this['editor']['config']['get']('footnotes.multiBlock');_0x52ac7c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x52ac7c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x52ac7c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x11d4f8?_0x52ac7c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x52ac7c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x52ac7c['addChildCheck'](_0x5930b6=>{for(const _0x23d4b8 of _0x5930b6)if('footnoteDefinition'===_0x23d4b8['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x340245}=this,{conversion:_0x3c3c2f,editing:_0x1a5233}=_0x340245,{t:t}=_0x340245['locale'];_0x3c3c2f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5e0a43,{writer:_0xc7efbd,consumable:_0x337b1f})=>{const _0x472f7c=_0x5e0a43['getChild'](0x0);if(!_0x472f7c||!_0x472f7c['is']('element','a'))return null;const _0x4540e5=_0x472f7c['getAttribute']('href')||'';if(!_0x4540e5['startsWith']('#'))return null;const _0x497266=_0x4540e5['replace'](/^#/,'');if(!_0x497266)return null;_0x337b1f['consume'](_0x472f7c,{'name':!0x0,'attributes':['href']});for(const {item:_0x43797f}of _0x1a5233['view']['createRangeIn'](_0x472f7c))_0x43797f['is']('$textProxy')?_0x337b1f['consume'](_0x43797f['textNode'],{'name':!0x0}):_0x43797f['is']('element')&&_0x337b1f['consume'](_0x43797f,{'name':!0x0});return _0xc7efbd['createElement']('footnoteRef',{'footnoteId':_0x497266});}}),_0x3c3c2f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x57b89e,{writer:_0x10688e})=>D(_0x57b89e,_0x10688e)}),_0x3c3c2f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x287002,{writer:_0x424812})=>{const _0x5940c7=_0x287002['getAttribute']('footnoteCounter');return _0x5d6880(D(_0x287002,_0x424812),_0x424812,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5940c7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3e7cc8}=this,{t:t}=_0x3e7cc8['locale'],{conversion:_0x5d9e81}=_0x3e7cc8;_0x5d9e81['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5d9e81['for']('upcast')['add'](_0x5d8dc7=>{_0x5d8dc7['on']('element:ol',(_0x46f4f1,_0x3250c2,_0x52090d)=>{const _0x1ff030=_0x3250c2['viewItem'];if(!_0x1ff030['hasClass']('footnotes-list')||!_0x3250c2['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x52090d['consumable']['consume'](_0x1ff030,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xf942b0,modelCursor:_0x1744fc}=_0x52090d['convertChildren'](_0x3250c2['viewItem'],_0x3250c2['modelCursor']);_0x3250c2['modelRange']=_0xf942b0,_0x3250c2['modelCursor']=_0x1744fc;}),_0x5d8dc7['on']('element:hr',(_0x234169,_0x4c1196,_0x26c0a2)=>{const _0x14ce02=_0x4c1196['viewItem'];_0x14ce02['hasClass']('footnotes-divider')&&_0x4c1196['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x26c0a2['consumable']['consume'](_0x14ce02,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5d9e81['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3ac36c,{writer:_0x12812c})=>v(_0x12812c)}),_0x5d9e81['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ca418,{writer:_0x209e4f})=>{const _0x10f4e9=v(_0x209e4f,{'data-footnotes-list-label':t('Footnotes')}),_0x4ecb8d=_0x5d6880(_0x10f4e9,_0x209e4f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x209e4f['setCustomProperty']('footnotesDefinitions',!0x0,_0x4ecb8d),_0x4ecb8d;}});}['_defineDefinitionConverters'](){const {editor:_0x482ae0}=this,{conversion:_0x481b80,locale:_0x2cda54}=_0x482ae0,_0x4a2ce6=_0x482ae0['config']['get']('footnotes.multiBlock');_0x481b80['for']('upcast')['add'](_0x48ed83=>{_0x48ed83['on']('element:li',(_0x1aa382,_0x2c0ba0,_0x5acf83)=>{const _0x2daee2=_0x2c0ba0['viewItem'];if(!_0x2daee2['hasClass']('footnote-definition')||!_0x2daee2['getAttribute']('id'))return;const _0x2236b4=_0x2daee2['parent'];if(!_0x2236b4['is']('element','ol')||!_0x2236b4['hasClass']('footnotes-list'))return;if(!_0x5acf83['consumable']['test'](_0x2daee2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x344989=_0x5acf83['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2daee2['getAttribute']('id')});if(!_0x5acf83['safeInsert'](_0x344989,_0x2c0ba0['modelCursor']))return;_0x5acf83['consumable']['consume'](_0x2daee2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x27fe91=Array['from'](_0x2daee2['getChildren']())['find'](_0x51c6ef=>_0x51c6ef['is']('element')&&_0x51c6ef['hasClass']('footnote-content'));for(const _0x418a88 of _0x2daee2['getChildren']())_0x418a88['is']('element')&&(_0x5acf83['consumable']['consume'](_0x418a88,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5acf83['consumable']['consume'](_0x418a88,{'name':!0x0,'classes':'footnote-content'}));if(_0x27fe91){if(_0x4a2ce6)_0x5acf83['convertChildren'](_0x27fe91,_0x344989);else{const _0x4005a0=_0x5acf83['writer']['createElement']('footnoteInlineContent');_0x5acf83['writer']['insert'](_0x4005a0,_0x344989),_0x5acf83['convertChildren'](_0x27fe91,_0x4005a0);}}_0x5acf83['updateConversionResult'](_0x344989,_0x2c0ba0);});}),_0x481b80['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2795c0,{writer:_0x1662ee})=>b(_0x2795c0,_0x1662ee,_0x2cda54,{'dataPipeline':!0x0})}),_0x481b80['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x18b285,{writer:_0x337d4f})=>b(_0x18b285,_0x337d4f,_0x2cda54)});}['_defineBogusParagraphConverters'](){const {editor:_0x1d80b7}=this,{conversion:_0x2bc745}=_0x1d80b7;_0x1d80b7['config']['get']('footnotes.multiBlock')?(_0x2bc745['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2bc745['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1d80b7['model']['document'],'change:data',()=>{!function(_0x58626b,_0xd03888){const _0x25eb48=_0x58626b['document']['differ'],_0x5a05c1=new Set();for(const _0x5dc955 of _0x25eb48['getChanges']()){const _0x20a57d='attribute'==_0x5dc955['type']?_0x5dc955['range']['start']['parent']:_0x5dc955['position']['parent'];_0x20a57d['is']('element','footnoteDefinition')&&_0x5a05c1['add'](_0x20a57d);}for(const _0x312b27 of _0x5a05c1['values']()){const _0x2a0f18=Array['from'](_0x312b27['getChildren']())['filter'](_0x633f83=>g(_0x633f83,_0xd03888['mapper']));for(const _0x18db72 of _0x2a0f18)_0xd03888['reconvertItem'](_0x18db72);}}(_0x1d80b7['model'],_0x1d80b7['editing']);})):(_0x2bc745['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2bc745['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x9fe610,{writer:_0x1ed165})=>{const _0x4ff3d0=_0x1ed165['createContainerElement']('span');return _0x1ed165['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4ff3d0),_0x4ff3d0;}}));}['_defineKeyboardHandlers'](){const {editor:_0x247ad1}=this,{editing:_0x25115e,t:t}=_0x247ad1,_0x3cddd2=_0x247ad1['model']['document']['selection'];_0x247ad1['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x247ad1['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x25115e['view']['document'],'enter',(_0x12e1ce,_0x43fcbc)=>{const _0x4b7d7a=function(_0x4c13ee){const _0x109c4a=_0x4c13ee['getSelectedElement']();if(_0x109c4a?.['is']('element','footnoteRef'))return _0x109c4a;return null;}(_0x3cddd2);if(_0x4b7d7a){const _0x393ef1=_0x4b7d7a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x393ef1),_0x43fcbc['preventDefault'](),_0x12e1ce['stop']();}},{'context':_0x563f53});}['_defineClickHandlers'](){const {editor:_0x5309ae}=this,{editing:_0x8deac9}=_0x5309ae;_0x5309ae['editing']['view']['addObserver'](_0x199d53),_0x5309ae['editing']['view']['addObserver'](_0x385ec2);let _0x1aeedd=!0x1;this['listenTo'](_0x8deac9['view']['document'],'pointerdown',(_0x1df7ca,_0x209f69)=>{const {target:_0x5389b1}=_0x209f69,_0x53a5d7=_0x8deac9['view']['document']['selection'];_0x1aeedd=!!(_0x5389b1?.['is']('element','a')&&_0x5389b1['parent']?.['is']('element','sup')&&_0x5389b1['parent']['hasClass']('footnote'))&&_0x53a5d7['getSelectedElement']()===_0x5389b1['parent'];},{'priority':'high'}),this['listenTo'](_0x8deac9['view']['document'],'click',(_0x38cdd0,_0x1a8d40)=>{const {target:_0x247f14}=_0x1a8d40;if(!_0x247f14?.['is']('element','a'))return;if(_0x247f14['parent']?.['is']('element','sup')&&_0x247f14['parent']['hasClass']('footnote')&&!_0x1aeedd)return void _0x1a8d40['preventDefault']();let _0x4b8cec=_0x247f14['getAttribute']('href');if(!_0x4b8cec?.['startsWith']('#'))return;_0x4b8cec=_0x4b8cec['slice'](0x1);let _0xdfa6a3=!0x1;(_0x4b8cec['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4b8cec['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4b8cec))&&(_0xdfa6a3=!0x0),_0xdfa6a3&&(_0x1a8d40['preventDefault'](),_0x38cdd0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x403031}={}){return(_0x228f95,{writer:_0x13bca4})=>{if(!p(_0x228f95))return null;if(!_0x403031)return _0x13bca4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x169819=_0x13bca4['createContainerElement']('p');return _0x13bca4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x169819),_0x169819;};}function p(_0xa466a){const {parent:_0x488d28}=_0xa466a;if(!_0x488d28?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x488d28['childCount'])return!0x1;for(const _0x2ce91b of _0xa466a['getAttributeKeys']())if(!_0x2ce91b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2ce91b)return!0x1;return!0x0;}function g(_0x2f0054,_0x35e515){if(!_0x2f0054['is']('element','paragraph'))return!0x1;const _0x34c08b=_0x35e515['toViewElement'](_0x2f0054);return!!_0x34c08b&&p(_0x2f0054)!==_0x34c08b['is']('element','span');}function J(_0x38ada7){return _0x563f53(_0x38ada7)&&_0x38ada7['is']('containerElement')&&!!_0x38ada7['getCustomProperty']('footnotesDefinitions');}function v(_0x5b56b9,_0x5baa29={}){const _0x4abc0f=_0x5b56b9['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4280c5=_0x5b56b9['createContainerElement']('ol',{'class':'footnotes-list'},_0x5b56b9['createSlot']());return _0x5b56b9['createContainerElement']('div',{'class':'footnotes',..._0x5baa29},[_0x4abc0f,_0x4280c5]);}function D(_0xe6c3f7,_0x4e6263){const _0x1f5354=_0xe6c3f7['getAttribute']('footnoteId'),_0x5cd9b4=_0xe6c3f7['getAttribute']('footnoteCounter'),_0x512260=_0x4e6263['createUIElement']('a',{'href':'#'+_0x1f5354},function(_0x341a41){const _0x2fe484=this['toDomElement'](_0x341a41);return _0x2fe484['textContent']=_0x5cd9b4,_0x2fe484;}),_0x11c159=_0x4e6263['createContainerElement']('sup',{'id':'ref-'+_0x1f5354,'class':'footnote'},[_0x512260]);return _0x11c159['getFillerOffset']=()=>null,_0x11c159;}function b(_0x1106d4,_0xf863bf,_0x2ca1cd,{dataPipeline:_0x759fc}={}){const {t:t}=_0x2ca1cd,_0x41925a=_0x1106d4['getAttribute']('footnoteId'),_0x37817e=_0xf863bf['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x41925a},function(_0x4ae32b){const _0x50f8a6=this['toDomElement'](_0x4ae32b);return _0x50f8a6['innerText']='^',_0x50f8a6;}),_0x4200a4=_0x759fc?_0xf863bf['createContainerElement']('div',{'class':'footnote-content'}):_0xd82813(_0xf863bf['createEditableElement']('div',{'class':'footnote-content'}),_0xf863bf,{'label':t('Footnote\x20content.')});return _0xf863bf['insert'](_0xf863bf['createPositionAt'](_0x4200a4,0x0),_0xf863bf['createSlot']()),_0xf863bf['createContainerElement']('li',{'class':'footnote-definition','id':_0x41925a},[_0x37817e,_0x4200a4]);}class e extends _0x4a11c5{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1280b1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x431063}=this,{plugins:_0xa9542f,model:_0x3f2b82}=_0x431063,_0x2da8ea=_0xa9542f['get'](_0x1280b1),_0x18154e=_0xa9542f['get'](c);this['listenTo'](_0x2da8ea,'outputTransformation',(_0x5bdb64,_0x36edbf)=>{const _0x22172f=f(_0x3f2b82['createRangeIn'](_0x36edbf['content']));if(!_0x22172f['length'])return;const _0x1a71aa=_0x18154e['getFootnotes'](),_0x224661=_0x22172f['reduce']((_0x1f7adc,_0xce53f5)=>{const _0x20e7ff=_0x1a71aa['find'](_0x2c425b=>_0x2c425b['id']===_0xce53f5);if(_0x20e7ff){const _0x563b53=_0x431063['data']['toView'](_0x20e7ff['definition'],{'isClipboardPipeline':!0x0}),_0x408c96=_0x431063['data']['htmlProcessor']['toData'](_0x563b53);_0x1f7adc[_0x20e7ff['id']]=_0x408c96;}return _0x1f7adc;},Object['create'](null));_0x36edbf['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x224661));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1a6ba4}=this,{model:_0x52b639,plugins:_0x2aeec3}=_0x1a6ba4,{view:_0x4c816e}=_0x1a6ba4['editing'],_0x1e7185=_0x2aeec3['get'](_0x1280b1),_0xe7d2f3=_0x2aeec3['get'](c);let _0x10b3b4=null;this['listenTo'](_0x4c816e['document'],'clipboardInput',(_0x4a9c6b,_0x4b4678)=>{const _0x5f0f49=_0x4b4678['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x10b3b4=_0x5f0f49?JSON['parse'](_0x5f0f49):null;}),this['listenTo'](_0x1e7185,'contentInsertion',(_0xa73bbe,_0x713dae)=>{const _0x57d6b7=_0x713dae['sourceEditorId']===this['editor']['id'];_0x57d6b7&&'drop'===_0x713dae['method']||_0x52b639['change'](_0xd2c42e=>{let _0x4d4083=_0xe7d2f3['getFootnotesDefinitionsObjectElement']();const _0x2580ff=!!_0x4d4083&&Array['from'](_0x52b639['document']['selection']['getSelectedBlocks']())['includes'](_0x4d4083);if((_0x4d4083&&!_0x2580ff||!_0x4d4083&&!_0x10b3b4)&&function(_0x1008c8,_0x403955){const _0x51d383=[];for(const {item:_0x37f739}of _0x1008c8['createRangeIn'](_0x403955))_0x37f739['is']('element','footnotesDefinitions')&&_0x51d383['push'](_0x37f739);for(const _0x40f3c1 of _0x51d383)_0x1008c8['remove'](_0x40f3c1);}(_0xd2c42e,_0x713dae['content']),!_0x10b3b4)return;const {selection:_0x450f1d}=_0x52b639['document'],_0x42c001=_0x450f1d['getFirstRange']()['root'];_0x4d4083&&!_0x2580ff||(_0x4d4083=function(_0x163687,_0x101c2d){for(const {item:_0x353524}of _0x163687['createRangeIn'](_0x101c2d))if(_0x353524['is']('element','footnotesDefinitions'))return _0x353524;return null;}(_0xd2c42e,_0x713dae['content']),_0x4d4083||=_0xe7d2f3['_insertEmptyFootnotesDefinitionsContainer'](_0xd2c42e,_0x42c001));const _0x2ba209=Array['from'](_0x450f1d['getRanges']())['flatMap'](f),_0x1101e1=function(_0x2f7000,_0x506837,_0x1e17b3){const _0x349e0a=Object['create'](null);for(const {item:_0x1c18c3}of _0x2f7000['createRangeIn'](_0x506837))if(_0x1c18c3['is']('element','footnoteRef')){const _0x159847=_0x1c18c3['getAttribute']('footnoteId');if(!_0x1e17b3(_0x159847))continue;_0x349e0a[_0x159847]||(_0x349e0a[_0x159847]=_0x367e6b()),_0x2f7000['setAttribute']('footnoteId',_0x349e0a[_0x159847],_0x1c18c3);}return _0x349e0a;}(_0xd2c42e,_0x713dae['content'],_0x391b28=>{if(!_0x57d6b7)return!0x0;return!!_0xe7d2f3['getFootnote'](_0x391b28)&&!_0x2ba209['includes'](_0x391b28);});for(const [_0x291bd1,_0x29bb31]of Object['entries'](_0x10b3b4)){const _0x15c1e6=_0x1101e1[_0x291bd1]||_0x291bd1,_0xb2144b=_0xd2c42e['createElement']('footnoteDefinition',{'footnoteId':_0x15c1e6}),_0x4bd50a=_0x1a6ba4['data']['htmlProcessor']['toView'](_0x29bb31),_0x3dac37=_0x1a6ba4['data']['toModel'](_0x4bd50a,_0xb2144b);_0xd2c42e['append'](_0x3dac37,_0xb2144b),_0xd2c42e['insert'](_0xb2144b,_0x4d4083,'end');}_0x10b3b4=null;});});}}function f(_0x30339a){const _0x1cdb05=new Set();for(const {item:_0x38074a}of _0x30339a)_0x38074a['is']('element','footnoteRef')&&_0x1cdb05['add'](_0x38074a['getAttribute']('footnoteId'));return Array['from'](_0x1cdb05);}class i extends _0x4a11c5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x177d9a}=this,{componentFactory:_0x2b676f}=_0x177d9a['ui'];_0x2b676f['add']('insertFootnote',x(_0x177d9a,_0x280d11)),_0x2b676f['add']('menuBar:insertFootnote',x(_0x177d9a,_0xe0583)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26e402=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x583f2f;for(const _0x18317a in _0x26e402){const _0x1c6296=_0x18317a,_0x4f7c6a=_0x26e402[_0x1c6296];if('footnotesLicenseKeyValid'==_0x4f7c6a||'footnotesLicenseKeyInvalid'==_0x4f7c6a||'footnotesLicenseKeyExpired'==_0x4f7c6a||'footnotesLicenseKeyDomainLimit'==_0x4f7c6a||'footnotesLicenseKeyNotAllowed'==_0x4f7c6a||'footnotesLicenseKeyEvaluationLimit'==_0x4f7c6a||'footnotesLicenseKeyTrialLimit'==_0x4f7c6a||'footnotesLicenseKeyUsageLimit'==_0x4f7c6a){delete _0x26e402[_0x1c6296],_0x583f2f=_0x4f7c6a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x583f2f&&_0x26e402['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x583f2f&&_0x26e402['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x583f2f&&_0x26e402['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x583f2f&&_0x26e402['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x583f2f&&_0x26e402['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x583f2f&&_0x26e402['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x583f2f&&_0x26e402['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x5a989c,_0x1448fd){const _0x46c3dd=_0x5a989c['commands']['get']('insertFootnote');return _0x12c3f2=>{const {t:t}=_0x12c3f2,_0x187b9a=new _0x1448fd(_0x12c3f2),_0x43abc1=_0x187b9a instanceof _0xe0583;return _0x187b9a['bind']('isEnabled')['to'](_0x46c3dd,'isEnabled'),_0x187b9a['set']({'label':t(_0x43abc1?'Footnote':'Insert\x20footnote'),'icon':_0x40c037,'tooltip':!0x0}),_0x187b9a['on']('execute',()=>{_0x46c3dd['execute'](),_0x5a989c['editing']['view']['focus']();}),_0x187b9a;};}class lt extends _0x4a11c5{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x2c4831{['refresh'](){const {editor:_0x44c2c9}=this,_0xd34234=_0x44c2c9['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xd34234,this['value']=_0xd34234?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x408226}){const {editor:_0x111901}=this,_0x33b60a=_0x111901['plugins']['get'](c),_0xfda251=_0x33b60a['getFootnotesDefinitionsObjectElement']();_0xfda251&&Q['includes'](_0x408226)&&_0x111901['model']['change'](_0x516e94=>{_0x516e94['setAttribute']('footnotesListStyle',_0x408226,_0xfda251),_0x33b60a['_updateFootnotesCounters'](_0x516e94);});}}class C extends _0x2c4831{['refresh'](){const {editor:_0x35d703}=this,_0x2b28ae=_0x35d703['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2b28ae,this['value']=_0x2b28ae?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3e50cd}){const {editor:_0x4af40f}=this,_0x467fb9=_0x4af40f['plugins']['get'](c),_0x35e18b=_0x467fb9['getFootnotesDefinitionsObjectElement']();_0x35e18b&&Number['isInteger'](_0x3e50cd)&&_0x4af40f['model']['change'](_0x2f692=>{_0x2f692['setAttribute']('footnotesListStart',_0x3e50cd,_0x35e18b),_0x467fb9['_updateFootnotesCounters'](_0x2f692);});}}class P extends _0x4a11c5{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24dcb9}=this;_0x24dcb9['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x24dcb9['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x24dcb9['commands']['add']('footnotesStyle',new S(_0x24dcb9)),_0x24dcb9['commands']['add']('footnotesStart',new C(_0x24dcb9)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x41fae1}=this,{schema:_0x43d70c}=_0x41fae1['model'];_0x43d70c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x33aea8}=this,{conversion:_0x3c622e,model:_0x1603e8}=_0x33aea8,{schema:_0x522894}=_0x1603e8;_0x3c622e['for']('upcast')['add'](_0x239f90=>{_0x239f90['on']('element:ol',(_0x3fcfa8,_0x12f4c6,_0x5a0cea)=>{const _0xffc2e5=_0x12f4c6['viewItem'],_0x209ae8=_0x12f4c6['modelCursor']?.['parent'];_0xffc2e5['hasClass']('footnotes-list')&&_0x209ae8?.['is']('element','footnotesDefinitions')&&(function(_0x217d2f,_0x59af77,_0x4198c8,_0x1402e1){if(!_0x1402e1['checkAttribute'](_0x59af77,'footnotesListStart'))return;let _0x49bb43=0x1;const _0x303148=_0x4198c8['consumable']['consume'](_0x217d2f,{'attributes':'start'});if(_0x303148){const _0x4599e9=Number['parseInt'](_0x217d2f['getAttribute']('start'),0xa);Number['isNaN'](_0x4599e9)||(_0x49bb43=_0x4599e9);}!_0x303148&&_0x59af77['hasAttribute']('footnotesListStart')||_0x4198c8['writer']['setAttribute']('footnotesListStart',_0x49bb43,_0x59af77);}(_0xffc2e5,_0x209ae8,_0x5a0cea,_0x522894),function(_0x45e103,_0x1bd77e,_0x3fc6ee,_0x1f2c11){if(!_0x1f2c11['checkAttribute'](_0x1bd77e,'footnotesListStyle'))return;let _0x4d24bc='decimal',_0x3a87b0=!0x1;if(_0x3fc6ee['consumable']['consume'](_0x45e103,{'attributes':'type'})){const _0x319bbd={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x45e103['getAttribute']('type')];_0x319bbd&&(_0x4d24bc=_0x319bbd),_0x3a87b0=!0x0;}_0x3fc6ee['consumable']['consume'](_0x45e103,{'styles':'list-style-type'})&&(_0x4d24bc=_0x45e103['getStyle']('list-style-type'),_0x3a87b0=!0x0),!_0x3a87b0&&_0x1bd77e['hasAttribute']('footnotesListStyle')||_0x3fc6ee['writer']['setAttribute']('footnotesListStyle',_0x4d24bc,_0x1bd77e);}(_0xffc2e5,_0x209ae8,_0x5a0cea,_0x522894));});}),_0x3c622e['for']('downcast')['add'](_0x59f370=>{_0x59f370['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x574cc2,_0x284646,_0x250ba0)=>{if(!_0x250ba0['consumable']['consume'](_0x284646['item'],_0x574cc2['name']))return;const _0x1be4a9=M(_0x284646['item'],_0x250ba0['mapper']),{attributeNewValue:_0x21414d}=_0x284646;null==_0x21414d||0x1===_0x21414d?_0x250ba0['writer']['removeAttribute']('start',_0x1be4a9):_0x250ba0['writer']['setAttribute']('start',String(_0x21414d),_0x1be4a9);}),_0x59f370['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x5be939,_0x5700df,_0x17f424)=>{if(!_0x17f424['consumable']['consume'](_0x5700df['item'],_0x5be939['name']))return;const _0x2d7a8f=M(_0x5700df['item'],_0x17f424['mapper']),{attributeNewValue:_0x12593c}=_0x5700df;_0x12593c&&'decimal'!==_0x12593c?_0x17f424['writer']['setStyle']('list-style-type',_0x12593c,_0x2d7a8f):_0x17f424['writer']['removeStyle']('list-style-type',_0x2d7a8f);});});}['_definePostfixer'](){const {editor:_0x22f3f7}=this,{model:_0x5bc578}=_0x22f3f7,_0x4279c8=_0x22f3f7['plugins']['get'](c),_0x3a704f=this['_getDefaultListStyle'](),_0x5a74fc=this['_getDefaultStartIndex']();_0x5bc578['document']['registerPostFixer'](_0x3ab9e7=>{const _0x59cb44=_0x5bc578['document']['differ']['getChanges']();let _0x4d7c7f=!0x1;for(const _0x49cd04 of _0x59cb44){if('insert'!==_0x49cd04['type']||'$text'===_0x49cd04['name'])continue;const _0x3f8b25=_0x5bc578['createRangeOn'](_0x49cd04['position']['nodeAfter']);for(const _0x4a3a66 of _0x3f8b25['getItems']())_0x4a3a66['is']('element','footnotesDefinitions')&&(!_0x4a3a66['hasAttribute']('footnotesListStart')&&_0x5bc578['schema']['checkAttribute'](_0x4a3a66,'footnotesListStart')&&(_0x3ab9e7['setAttribute']('footnotesListStart',_0x5a74fc,_0x4a3a66),_0x4d7c7f=!0x0),!_0x4a3a66['hasAttribute']('footnotesListStyle')&&_0x5bc578['schema']['checkAttribute'](_0x4a3a66,'footnotesListStyle')&&(_0x3ab9e7['setAttribute']('footnotesListStyle',_0x3a704f,_0x4a3a66),_0x4d7c7f=!0x0));}return _0x4d7c7f&&_0x4279c8['_updateFootnotesCounters'](_0x3ab9e7),_0x4d7c7f;});}['_defineFormatter'](){const {editor:_0x25f70c}=this;_0x25f70c['plugins']['get'](c)['setFootnoteFormatter'](_0x3fd2e6=>this['_formatFootnoteListValue'](_0x3fd2e6));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x33b6c2,value:_0x1072d4,digits:_0x4e6e88}){const _0x46b27c=_0x33b6c2['getAttribute']('footnotesListStyle'),_0x18c079=_0x33b6c2['getAttribute']('footnotesListStart'),_0x50ba9b=Math['floor'](_0x1072d4)+(_0x18c079??0x1)-0x1;switch(_0x46b27c){case'decimal-leading-zero':return function(_0x14ff8e,_0x5efd3d){return String(_0x14ff8e)['padStart'](_0x5efd3d,'0');}(_0x50ba9b,Math['max'](0x2,_0x4e6e88));case'lower-alpha':case'lower-latin':return N(_0x50ba9b,!0x1);case'upper-alpha':case'upper-latin':return N(_0x50ba9b,!0x0);case'lower-roman':return X(_0x50ba9b,!0x1);case'upper-roman':return X(_0x50ba9b,!0x0);default:return String(_0x50ba9b);}}}function M(_0x219242,_0x5091dc){const _0x5a7c41=_0x5091dc['toViewElement'](_0x219242);return Array['from'](_0x5a7c41['getChildren']())['find'](_0x579f5d=>_0x579f5d['is']('element','ol')&&_0x579f5d['hasClass']('footnotes-list'));}function N(_0x16c52f,_0x1286bf){let _0x26b31d='',_0x5593eb=_0x16c52f;for(;_0x5593eb>0x0;){const _0x11bd58=(_0x5593eb-0x1)%0x1a;_0x26b31d=String['fromCharCode'](0x61+_0x11bd58)+_0x26b31d,_0x5593eb=Math['floor']((_0x5593eb-0x1)/0x1a);}return _0x1286bf?_0x26b31d['toUpperCase']():_0x26b31d;}const V=[{'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 X(_0x2ffe66,_0x5ae17b){let _0x422f4d='',_0x1fc28b=_0x2ffe66;for(const {value:_0x14af5f,numeral:_0x221b01}of V)for(;_0x1fc28b>=_0x14af5f;)_0x422f4d+=_0x221b01,_0x1fc28b-=_0x14af5f;return _0x5ae17b?_0x422f4d:_0x422f4d['toLowerCase']();}class H extends _0x3b8de5{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x456963();['focusCycler'];constructor(_0x4849ad,{styleButtonViews:_0x5e04cf,styleGridAriaLabel:_0x551fc4}){super(_0x4849ad),(this['focusCycler']=new _0x39db04({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5e04cf,_0x551fc4),[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 _0x1d246f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1d246f['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['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 _0x29885d=_0x271fc3=>_0x271fc3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x29885d),this['keystrokes']['set']('arrowleft',_0x29885d),this['keystrokes']['set']('arrowup',_0x29885d),this['keystrokes']['set']('arrowdown',_0x29885d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2fee1f,_0x152656){const _0x3706b0=new _0x3b8de5(this['locale']);return _0x3706b0['children']=_0x3706b0['createCollection'](),_0x3706b0['children']['addMany'](_0x2fee1f),_0x3706b0['setTemplate']({'tag':'div','attributes':{'aria-label':_0x152656,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3706b0['children']}),_0x3706b0['children']['delegate']('execute')['to'](this),_0x3706b0['focus']=function(){for(const _0x1cfa32 of this['children'])if(_0x1cfa32 instanceof _0x280d11&&_0x1cfa32['isOn'])return void _0x1cfa32['focus']();this['children']['first']['focus']();},_0x3706b0['focusTracker']=new ot(),_0x3706b0['keystrokes']=new rt(),_0x3706b0['render'](),_0x3706b0['keystrokes']['listenTo'](_0x3706b0['element']),this['children']['add'](_0x3706b0),_0x3706b0;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1f3974=this['_createStartIndexPropertyView'](),_0x4d16a5=[_0x1f3974],_0x1e1d3b=new st(this['locale'],_0x4d16a5);return _0x1e1d3b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1e1d3b['buttonView']['bind']('isEnabled')['toMany'](_0x4d16a5,'isEnabled',(..._0x5eb3bf)=>_0x5eb3bf['some'](_0x1ebf23=>_0x1ebf23)),_0x1e1d3b['buttonView']['on']('change:isEnabled',(_0x1e2954,_0x146404,_0x37ceaf)=>{_0x37ceaf||(_0x1e1d3b['isCollapsed']=!0x0);}),this['children']['add'](_0x1e1d3b),[_0x1f3974,_0x1e1d3b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x395175=new it(this['locale'],et);return _0x395175['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x395175['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x395175['fieldView']['on']('input',()=>{const _0x5280a5=_0x395175['fieldView']['element'],_0x491fa1=_0x5280a5['valueAsNumber'];Number['isNaN'](_0x491fa1)?_0x395175['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5280a5['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x491fa1}):_0x395175['errorText']=t(_0x491fa1<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x395175;}}class j extends _0x4a11c5{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5bfdfe,_0x18f58a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39e410}=this,{componentFactory:_0x1963af}=_0x39e410['ui'];_0x39e410['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1963af['add']('footnotesStyle',function(_0x13f607){return _0x553eee=>{const {t:t}=_0x553eee,_0x4d6717=_0x13f607['commands']['get']('footnotesStyle'),_0x3b430b=_0x5df20b(_0x553eee),{buttonView:_0x18f3e9}=_0x3b430b;return _0x3b430b['class']='ck-footnotes-styles-dropdown',_0x3b430b['bind']('isEnabled')['to'](_0x4d6717,'isEnabled'),_0x18f3e9['set']({'label':t('Footnotes\x20style'),'icon':_0x40c037,'tooltip':!0x0}),_0x3b430b['once']('change:isOpen',()=>{const _0x2a5628=function({editor:_0x52ea10,dropdownView:_0x215a1c}){const {t:t}=_0x52ea10['locale'],_0x1a4d9c=t('Footnotes\x20definitions\x20styles'),_0x3dc108=function(_0x2db493){const t=_0x2db493['locale']['t'],_0x174144=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x59e9f0},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5dc99d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x23e552},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2b68c3},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x192eaf},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x36398b}];return _0x174144['map'](function(_0x110a9e){const _0x38bf23=_0x110a9e['locale'];return({label:_0x24b4c4,icon:_0x513563,tooltip:_0x279f9f,style:_0x264548})=>{const _0x543867=_0x110a9e['commands']['get']('footnotesStyle'),_0x408582=new _0x280d11(_0x38bf23);return _0x408582['set']({'label':_0x24b4c4,'icon':_0x513563,'tooltip':_0x279f9f}),_0x408582['bind']('isOn')['to'](_0x543867,'value',_0x3b2ce8=>_0x3b2ce8===_0x264548),_0x408582['bind']('isEnabled')['to'](_0x543867,'isEnabled'),_0x408582['on']('execute',()=>{_0x110a9e['execute']('footnotesStyle',{'value':_0x264548}),_0x110a9e['editing']['view']['focus']();}),_0x408582;};}(_0x2db493));}(_0x52ea10),_0x4c8fd5=new H(_0x52ea10['locale'],{'styleGridAriaLabel':_0x1a4d9c,'styleButtonViews':_0x3dc108});return _0x4c8fd5['delegate']('execute')['to'](_0x215a1c),_0x4c8fd5['on']('footnotesListStart',(_0x12fd5a,_0x6ee6d6)=>{_0x52ea10['execute']('footnotesStart',{'value':_0x6ee6d6['startIndex']});}),_0x4c8fd5;}({'editor':_0x13f607,'dropdownView':_0x3b430b});_0x3b430b['panelView']['children']['add'](_0x2a5628);}),_0x3b430b;};}(_0x39e410));}['afterInit'](){const {editor:_0x34208c}=this,{t:t}=_0x34208c['locale'],_0x54dead=_0x34208c['plugins']['get'](_0x18f58a),{defaultPositions:_0x16cae6}=_0x5ced2c;_0x54dead['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x34208c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2e8429=>{let _0x1ce99b=_0x2e8429['getFirstPosition']()?.['parent'];return _0x1ce99b?.['is']('$text')&&(_0x1ce99b=_0x1ce99b['parent']),_0x1ce99b?.['is']('element')?_0x1ce99b['findAncestor'](J):null;},'positions':[_0x16cae6['southArrowNorth'],_0x16cae6['southArrowNorthMiddleWest'],_0x16cae6['southArrowNorthMiddleEast'],_0x16cae6['southArrowNorthWest'],_0x16cae6['southArrowNorthEast'],_0x16cae6['northArrowSouth'],_0x16cae6['northArrowSouthMiddleWest'],_0x16cae6['northArrowSouthMiddleEast'],_0x16cae6['northArrowSouthWest'],_0x16cae6['northArrowSouthEast'],_0x16cae6['viewportStickyNorth']]});}}class ft extends _0x4a11c5{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
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':'','Lower–roman\x20footnotes':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\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':''},'getPluralForm':_0x312d2c=>0x1!=_0x312d2c}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x18308f=>{const {af:{dictionary:_0x3963e4,getPluralForm:_0x331866}}={'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':'','Lower–roman\x20footnotes':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\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':''},'getPluralForm':_0x5ef833=>0x1!=_0x5ef833}};_0x18308f['af']||={'dictionary':{},'getPluralForm':null},_0x18308f['af']['dictionary']=Object['assign'](_0x18308f['af']['dictionary'],_0x3963e4),_0x18308f['af']['getPluralForm']=_0x331866;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
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البادئ','Lower–roman\x20footnotes':'الحواشي\x20السفلية\x20الرومانية','Upper-roman\x20footnotes':'الحواشي\x20العلوية\x20الرومانية','Lower-latin\x20footnotes':'الحواشي\x20السفلية\x20اللاتينية','Upper-latin\x20footnotes':'الحواشي\x20العلوية\x20اللاتينية','Toggle\x20the\x20lower–roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20الرومانية','Toggle\x20the\x20upper–roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20العلوية\x20الرومانية','Toggle\x20the\x20lower–latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20اللاتينية','Toggle\x20the\x20upper–latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20العلوية\x20اللاتينية'},'getPluralForm':_0x45b2a1=>0x0==_0x45b2a1?0x0:0x1==_0x45b2a1?0x1:0x2==_0x45b2a1?0x2:_0x45b2a1%0x64>=0x3&&_0x45b2a1%0x64<=0xa?0x3:_0x45b2a1%0x64>=0xb?0x4:0x5}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x3e0b6e=>{const {ar:{dictionary:_0x5aa40b,getPluralForm:_0x48506f}}={'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البادئ','Lower–roman\x20footnotes':'الحواشي\x20السفلية\x20الرومانية','Upper-roman\x20footnotes':'الحواشي\x20العلوية\x20الرومانية','Lower-latin\x20footnotes':'الحواشي\x20السفلية\x20اللاتينية','Upper-latin\x20footnotes':'الحواشي\x20العلوية\x20اللاتينية','Toggle\x20the\x20lower–roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20الرومانية','Toggle\x20the\x20upper–roman\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20العلوية\x20الرومانية','Toggle\x20the\x20lower–latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20السفلية\x20اللاتينية','Toggle\x20the\x20upper–latin\x20footnotes\x20style':'تبديل\x20نمط\x20الحواشي\x20العلوية\x20اللاتينية'},'getPluralForm':_0x34fe32=>0x0==_0x34fe32?0x0:0x1==_0x34fe32?0x1:0x2==_0x34fe32?0x2:_0x34fe32%0x64>=0x3&&_0x34fe32%0x64<=0xa?0x3:_0x34fe32%0x64>=0xb?0x4:0x5}};_0x3e0b6e['ar']||={'dictionary':{},'getPluralForm':null},_0x3e0b6e['ar']['dictionary']=Object['assign'](_0x3e0b6e['ar']['dictionary'],_0x5aa40b),_0x3e0b6e['ar']['getPluralForm']=_0x48506f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'ast':{'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':'','Lower–roman\x20footnotes':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\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':''},'getPluralForm':_0x711635=>0x1!=_0x711635}};
|