@ckeditor/ckeditor5-footnotes 47.6.0-alpha.1 → 47.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/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/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x47565d}from'ckeditor5/src/core.js';import{isWidget as _0x410f66,toWidget as _0x204337,toWidgetEditable as _0x134163}from'ckeditor5/src/widget.js';import{uid as _0x5df650}from'ckeditor5/src/utils.js';import{PointerObserver as _0x5d00db,ClickObserver as _0x1d0585}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x57994d}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xb080f1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x47565d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x57994d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ce4d1}=this;_0x2ce4d1['config']['define']('footnotes.multiBlock',!0x0),_0x2ce4d1['commands']['add']('insertFootnote',new _0xb080f1(_0x2ce4d1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x13ce60){const _0x803675=_0x195a72([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]),_0x12fcf5=0x47a28506,_0x4d17ab=0x47a507d6^_0x12fcf5,_0x4b71aa=window[_0x195a72([0x44,0x61,0x74,0x65])][_0x195a72([0x6e,0x6f,0x77])](),_0x5ac854=_0x13ce60[_0x195a72([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c6c03=new window[(_0x195a72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38782e=>{_0x5ac854[_0x195a72([0x6f,0x6e,0x63,0x65])](_0x195a72([0x72,0x65,0x61,0x64,0x79]),_0x38782e);}),_0xe4fb23={[_0x195a72([0x6b,0x74,0x79])]:_0x195a72([0x45,0x43]),[_0x195a72([0x75,0x73,0x65])]:_0x195a72([0x73,0x69,0x67]),[_0x195a72([0x63,0x72,0x76])]:_0x195a72([0x50,0x2d,0x32,0x35,0x36]),[_0x195a72([0x78])]:_0x195a72([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]),[_0x195a72([0x79])]:_0x195a72([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]),[_0x195a72([0x61,0x6c,0x67])]:_0x195a72([0x45,0x53,0x32,0x35,0x36])},_0x1c5ea7=_0x5ac854[_0x195a72([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x195a72([0x67,0x65,0x74])](_0x195a72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d29f5(){let _0x51c9f5,_0x35cbdb=null,_0x8e923c=null;try{if(_0x1c5ea7==_0x195a72([0x47,0x50,0x4c]))return _0x195a72([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51c9f5=_0x29d1cb(),!_0x51c9f5)return _0x195a72([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51c9f5[_0x195a72([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8e923c=_0x3a81be(_0x51c9f5[_0x195a72([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51c9f5[_0x195a72([0x6a,0x74,0x69])])),await _0x233618()?_0x2fef2f()?_0x3f48eb()?_0x195a72([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40bd01()?(_0x51c9f5[_0x195a72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x195a72([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35cbdb=_0x350fe1(_0x195a72([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41219b()):_0x195a72([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x195a72([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x195a72([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x195a72([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f48eb(){const _0x417426=[_0x195a72([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x195a72([0x74,0x72,0x69,0x61,0x6c])][_0x195a72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c9f5[_0x195a72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b71aa/0x3e8:0xe10*_0x4d17ab;return _0x51c9f5[_0x195a72([0x65,0x78,0x70])]<_0x417426;}function _0x2fef2f(){const _0x42fc3a=_0x51c9f5[_0x195a72([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42fc3a&&(!!_0x42fc3a[_0x195a72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195a72([0x2a]))||!!_0x42fc3a[_0x195a72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195a72([0x46,0x4f,0x4f])));}function _0x40bd01(){const _0x116240=_0x51c9f5[_0x195a72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x116240||0x0==_0x116240[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x22cf5b}=new URL(window[_0x195a72([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x116240[_0x195a72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22cf5b))return!0x0;const _0x5470a9=_0x22cf5b[_0x195a72([0x73,0x70,0x6c,0x69,0x74])](_0x195a72([0x2e]));return _0x116240[_0x195a72([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3719ad=>_0x3719ad[_0x195a72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195a72([0x2a])))[_0x195a72([0x6d,0x61,0x70])](_0x270e94=>_0x270e94[_0x195a72([0x73,0x70,0x6c,0x69,0x74])](_0x195a72([0x2e])))[_0x195a72([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3234b8=>_0x3234b8[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5470a9[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x195a72([0x6d,0x61,0x70])](_0x30be76=>Array(_0x5470a9[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30be76[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x195a72([0x66,0x69,0x6c,0x6c])](_0x30be76[0x0]===_0x195a72([0x2a])?_0x195a72([0x2a]):'')[_0x195a72([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30be76))[_0x195a72([0x73,0x6f,0x6d,0x65])](_0x31abbc=>_0x5470a9[_0x195a72([0x65,0x76,0x65,0x72,0x79])]((_0x4923bc,_0x52d77f)=>_0x31abbc[_0x52d77f]===_0x4923bc||_0x31abbc[_0x52d77f]===_0x195a72([0x2a])));}function _0x41219b(){return _0x35cbdb&&_0x8e923c?new window[(_0x195a72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cf0bc,_0x1b374d)=>{_0x35cbdb[_0x195a72([0x74,0x68,0x65,0x6e])](_0x5cf0bc,_0x1b374d),_0x8e923c[_0x195a72([0x74,0x68,0x65,0x6e])](_0x58b321=>{_0x58b321!=_0x195a72([0x56,0x61,0x6c,0x69,0x64])&&_0x5cf0bc(_0x58b321);},_0x1b374d);}):_0x35cbdb||_0x8e923c||_0x195a72([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a81be(_0x1bc7c5,_0xc5cb01){return new window[(_0x195a72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20e1bb=>{if(_0x22ce9f())return _0x20e1bb(_0x195a72([0x56,0x61,0x6c,0x69,0x64]));_0x41057a(),_0x5ac854[_0x195a72([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x195a72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2dc11e=!0x1;const _0x4cff57=_0x5df650();function _0x5ea899(_0x22fd5d){return!!_0x22fd5d&&(typeof _0x22fd5d===_0x195a72([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22fd5d===_0x195a72([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22fd5d[_0x195a72([0x74,0x68,0x65,0x6e])]===_0x195a72([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22fd5d[_0x195a72([0x63,0x61,0x74,0x63,0x68])]===_0x195a72([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38f512(_0x480777){_0x4f7156(_0x480777)[_0x195a72([0x74,0x68,0x65,0x6e])](_0x5ab97d=>{if(!_0x5ab97d||_0x5ab97d[_0x195a72([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x195a72([0x6f,0x6b]))return _0x195a72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1de71c(_0x2c12cc(_0x4cff57+_0xc5cb01))!=_0x5ab97d[_0x195a72([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x195a72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x195a72([0x56,0x61,0x6c,0x69,0x64]);})[_0x195a72([0x74,0x68,0x65,0x6e])](_0x5afbdb=>(_0xa34a52(),_0x5afbdb),()=>{const _0x2d896d=_0x2c7323();return null==_0x2d896d?(_0xa34a52(),_0x195a72([0x56,0x61,0x6c,0x69,0x64])):_0x195a72(_0x4b71aa-_0x2d896d>(0x63ae0106^_0x12fcf5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x195a72([0x74,0x68,0x65,0x6e])](_0x20e1bb)[_0x195a72([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20e1bb(_0x195a72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a6671=0x47946b86^_0x12fcf5;function _0xa34a52(){const _0x3cf30b=_0x195a72([0x6c,0x6c,0x63,0x74,0x2d])+_0x1de71c(_0x2c12cc(_0x1bc7c5)),_0x55cdee=_0x3afcfc(_0x1de71c(window[_0x195a72([0x4d,0x61,0x74,0x68])][_0x195a72([0x63,0x65,0x69,0x6c])](_0x4b71aa/_0x4a6671)));window[_0x195a72([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x195a72([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cf30b,_0x55cdee);}function _0x2c7323(){const _0x19c09b=_0x195a72([0x6c,0x6c,0x63,0x74,0x2d])+_0x1de71c(_0x2c12cc(_0x1bc7c5)),_0x4ccb95=window[_0x195a72([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x195a72([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19c09b);return _0x4ccb95?window[_0x195a72([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3afcfc(_0x4ccb95),0x10)*_0x4a6671:null;}function _0x4f7156(_0x3e3cb6){return new window[(_0x195a72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3d2c,_0x1c2ac1)=>{_0x3e3cb6[_0x195a72([0x74,0x68,0x65,0x6e])](_0x2c3d2c,_0x1c2ac1),window[_0x195a72([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c2ac1,0x47a351c6^_0x12fcf5);});}}_0x5ac854[_0x195a72([0x6f,0x6e])](_0x195a72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ed135,_0x3a361c)=>{if(_0x3a361c[0x0]!=_0x1bc7c5)return _0x20e1bb(_0x195a72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a361c[0x1]={..._0x3a361c[0x1],[_0x195a72([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cff57};},{[_0x195a72([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x195a72([0x68,0x69,0x67,0x68])}),_0x5ac854[_0x195a72([0x6f,0x6e])](_0x195a72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x546f66=>{_0x5ea899(_0x546f66[_0x195a72([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2dc11e=!0x0,_0x38f512(_0x546f66[_0x195a72([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x195a72([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x195a72([0x6c,0x6f,0x77])}),_0x5c6c03[_0x195a72([0x74,0x68,0x65,0x6e])](()=>{_0x2dc11e||_0x20e1bb(_0x195a72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22ce9f(){return _0x5ac854[_0x195a72([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x195a72([0x76,0x69,0x65,0x77])][_0x195a72([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x195a72([0x61,0x75,0x74,0x6f]);}function _0x41057a(){_0x5ac854[_0x195a72([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x195a72([0x76,0x69,0x65,0x77])][_0x195a72([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x195a72([0x61,0x75,0x74,0x6f]);}}function _0x350fe1(_0x4a94ce){const _0x18a05b=[new window[(_0x195a72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9473=>setTimeout(_0x2e9473,0x47abbbca^_0x12fcf5)),_0x5c6c03[_0x195a72([0x74,0x68,0x65,0x6e])](()=>new window[(_0x195a72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x168432=>{let _0x4c336f=0x0;_0x5ac854[_0x195a72([0x6d,0x6f,0x64,0x65,0x6c])][_0x195a72([0x6f,0x6e])](_0x195a72([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x179912,_0x1e4f4e)=>{_0x1e4f4e[0x0][_0x195a72([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c336f++,_0x4c336f==(0x47a280ee^_0x12fcf5)&&(_0x168432(),_0x179912[_0x195a72([0x6f,0x66,0x66])]());});}))];return window[_0x195a72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x195a72([0x72,0x61,0x63,0x65])](_0x18a05b)[_0x195a72([0x74,0x68,0x65,0x6e])](()=>_0x4a94ce);}async function _0x1f1e77(){await _0x5c6c03,_0x5ac854[_0x195a72([0x6d,0x6f,0x64,0x65,0x6c])][_0x195a72([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47fbb7,_0x5ac854[_0x195a72([0x6d,0x6f,0x64,0x65,0x6c])][_0x195a72([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47fbb7,_0x5ac854[_0x195a72([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x195a72([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41a150(_0x46b5e5){const _0x1baba2=_0x4ff160();_0x5ac854[_0x1baba2]=_0x195a72([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46b5e5,_0x46b5e5!=_0x195a72([0x56,0x61,0x6c,0x69,0x64])&&_0x1f1e77();}function _0x4ff160(){const _0x30080a=window[_0x195a72([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x195a72([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x195a72([0x6e,0x6f,0x77])]())[_0x195a72([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x195a72([0x2e]),'');let _0x591777=_0x195a72([0x75]);for(let _0x5c5061=0x0;_0x5c5061<_0x30080a[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c5061+=0x2){let _0x225c2f=window[_0x195a72([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30080a[_0x195a72([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c5061,_0x5c5061+0x2));_0x225c2f>=_0x803675[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x225c2f-=_0x803675[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x591777+=_0x803675[_0x225c2f];}return _0x591777;}function _0x29d1cb(){const _0x57f2c7=_0x1c5ea7[_0x195a72([0x73,0x70,0x6c,0x69,0x74])](_0x195a72([0x2e]));if(0x3!=_0x57f2c7[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f6bd5(_0x57f2c7[0x1]);function _0x2f6bd5(_0x4c5025){const _0x3384eb=_0x4e4173(_0x4c5025);return _0x3384eb&&_0x1a88b2()?_0x3384eb:null;function _0x1a88b2(){const _0x13a0a7=_0x3384eb[_0x195a72([0x6a,0x74,0x69])],_0x533874=window[_0x195a72([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13a0a7[_0x195a72([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13a0a7[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d578f={..._0x3384eb,[_0x195a72([0x6a,0x74,0x69])]:_0x13a0a7[_0x195a72([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13a0a7[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d578f[_0x195a72([0x76,0x63])],_0x2c12cc(_0x1d578f)==_0x533874;}}}async function _0x233618(){let _0x163a08=!0x0;try{const _0x2b0bee=_0x1c5ea7[_0x195a72([0x73,0x70,0x6c,0x69,0x74])](_0x195a72([0x2e])),[_0x4d47dd,_0x5401cc,_0x55bf45]=_0x2b0bee;return _0x471c89(_0x4d47dd),await _0x34d878(_0x4d47dd,_0x5401cc,_0x55bf45),_0x163a08;}catch{return!0x1;}function _0x471c89(_0x1a2fbe){const _0xfc4ee9=_0x4e4173(_0x1a2fbe);_0xfc4ee9&&_0xfc4ee9[_0x195a72([0x61,0x6c,0x67])]==_0x195a72([0x45,0x53,0x32,0x35,0x36])||(_0x163a08=!0x1);}async function _0x34d878(_0x1b376b,_0x3a8a83,_0x187cd6){const _0x501c31=window[_0x195a72([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x195a72([0x66,0x72,0x6f,0x6d])](_0x39797a(_0x187cd6),_0x40a653=>_0x40a653[_0x195a72([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x294b0b=new window[(_0x195a72([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x195a72([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b376b+_0x195a72([0x2e])+_0x3a8a83),_0x377923=window[_0x195a72([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x195a72([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x377923)return;const _0x1a4794=await _0x377923[_0x195a72([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x195a72([0x6a,0x77,0x6b]),_0xe4fb23,{[_0x195a72([0x6e,0x61,0x6d,0x65])]:_0x195a72([0x45,0x43,0x44,0x53,0x41]),[_0x195a72([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x195a72([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x195a72([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x377923[_0x195a72([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x195a72([0x6e,0x61,0x6d,0x65])]:_0x195a72([0x45,0x43,0x44,0x53,0x41]),[_0x195a72([0x68,0x61,0x73,0x68])]:{[_0x195a72([0x6e,0x61,0x6d,0x65])]:_0x195a72([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a4794,_0x501c31,_0x294b0b)||(_0x163a08=!0x1);}}function _0x4e4173(_0x5b57b8){return _0x5b57b8[_0x195a72([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x195a72([0x65,0x79]))?JSON[_0x195a72([0x70,0x61,0x72,0x73,0x65])](_0x39797a(_0x5b57b8)):null;}function _0x39797a(_0x495d78){return window[_0x195a72([0x61,0x74,0x6f,0x62])](_0x495d78[_0x195a72([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x195a72([0x2b]))[_0x195a72([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x195a72([0x2f])));}function _0x2c12cc(_0xf62dce){let _0x3443b2=0x1505;function _0x46ecbe(_0x40a214){for(let _0x737d50=0x0;_0x737d50<_0x40a214[_0x195a72([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x737d50++){const _0x41dd31=_0x40a214[_0x195a72([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x737d50);_0x3443b2=(_0x3443b2<<0x5)+_0x3443b2+_0x41dd31,_0x3443b2&=_0x3443b2;}}function _0x265701(_0x1d9ac2){Array[_0x195a72([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d9ac2)?_0x1d9ac2[_0x195a72([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x265701):_0x1d9ac2&&typeof _0x1d9ac2==_0x195a72([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x195a72([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d9ac2)[_0x195a72([0x73,0x6f,0x72,0x74])]()[_0x195a72([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1555e5,_0x331357])=>{_0x46ecbe(_0x1555e5),_0x265701(_0x331357);}):_0x46ecbe(window[_0x195a72([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d9ac2));}return _0x265701(_0xf62dce),_0x3443b2>>>0x0;}function _0x1de71c(_0x171b3a){return _0x171b3a[_0x195a72([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x195a72([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x195a72([0x30]));}function _0x3afcfc(_0x9bbf4f){return _0x9bbf4f[_0x195a72([0x73,0x70,0x6c,0x69,0x74])]('')[_0x195a72([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x195a72([0x6a,0x6f,0x69,0x6e])]('');}function _0x47fbb7(){}function _0x195a72(_0x42015f){return _0x42015f['map'](_0x591b7a=>String['fromCharCode'](_0x591b7a))['join']('');}_0x41a150(await _0x4d29f5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x6b23f3){const {plugins:_0x1ab6bb,editing:_0x2c1ec,model:_0x13bbe5}=this['editor'],_0x5f3f51=_0x1ab6bb['get'](_0x57994d)['getFootnote'](_0x6b23f3);return!!_0x5f3f51&&(_0x13bbe5['change'](_0x376edd=>{_0x376edd['setSelection'](_0x376edd['createPositionAt'](_0x5f3f51['definition'],'end'));}),_0x2c1ec['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xfe640f){const {plugins:_0x49d920,editing:_0x3d7343,model:_0xaf5e23}=this['editor'],_0x4bdba5=_0x49d920['get'](_0x57994d)['getFootnote'](_0xfe640f);return!!_0x4bdba5&&(_0xaf5e23['change'](_0x5cc251=>{_0x5cc251['setSelection'](_0x4bdba5['reference'],'on');}),_0x3d7343['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4ef0d3}=this['editor']['model'],_0x33022e=this['editor']['config']['get']('footnotes.multiBlock');_0x4ef0d3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4ef0d3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4ef0d3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x33022e?_0x4ef0d3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4ef0d3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4ef0d3['addChildCheck'](_0x4dbe57=>{for(const _0x1b42bc of _0x4dbe57)if('footnoteDefinition'===_0x1b42bc['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x273d9c}=this,{conversion:_0x1d906b,editing:_0x6df265}=_0x273d9c,{t:t}=_0x273d9c['locale'];_0x1d906b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x441545,{writer:_0x197748,consumable:_0x4fb994})=>{const _0x3ad60d=_0x441545['getChild'](0x0);if(!_0x3ad60d||!_0x3ad60d['is']('element','a'))return null;const _0x523962=_0x3ad60d['getAttribute']('href')||'';if(!_0x523962['startsWith']('#'))return null;const _0x48096f=_0x523962['replace'](/^#/,'');if(!_0x48096f)return null;_0x4fb994['consume'](_0x3ad60d,{'name':!0x0,'attributes':['href']});for(const {item:_0x5a8a37}of _0x6df265['view']['createRangeIn'](_0x3ad60d))_0x5a8a37['is']('$textProxy')?_0x4fb994['consume'](_0x5a8a37['textNode'],{'name':!0x0}):_0x5a8a37['is']('element')&&_0x4fb994['consume'](_0x5a8a37,{'name':!0x0});return _0x197748['createElement']('footnoteRef',{'footnoteId':_0x48096f});}}),_0x1d906b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x50308c,{writer:_0x38b045})=>b(_0x50308c,_0x38b045)}),_0x1d906b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5c6313,{writer:_0x9c5451})=>{const _0x19d1dd=_0x5c6313['getAttribute']('footnoteCounter');return _0x204337(b(_0x5c6313,_0x9c5451),_0x9c5451,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x19d1dd)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1a142f}=this,{t:t}=_0x1a142f['locale'],{conversion:_0x5e98ff}=_0x1a142f;_0x5e98ff['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5e98ff['for']('upcast')['add'](_0x3a1edd=>{_0x3a1edd['on']('element:ol',(_0x162340,_0xfce473,_0x2ae48d)=>{const _0x2a65a7=_0xfce473['viewItem'];if(!_0x2a65a7['hasClass']('footnotes-list')||!_0xfce473['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2ae48d['consumable']['consume'](_0x2a65a7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x48893d,modelCursor:_0x113a15}=_0x2ae48d['convertChildren'](_0xfce473['viewItem'],_0xfce473['modelCursor']);_0xfce473['modelRange']=_0x48893d,_0xfce473['modelCursor']=_0x113a15;}),_0x3a1edd['on']('element:hr',(_0x36da79,_0x2e57a4,_0x4e90fe)=>{const _0x505a4c=_0x2e57a4['viewItem'];_0x505a4c['hasClass']('footnotes-divider')&&_0x2e57a4['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4e90fe['consumable']['consume'](_0x505a4c,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5e98ff['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x9b747d,{writer:_0x37a1d0})=>D(_0x37a1d0)}),_0x5e98ff['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x28fedd,{writer:_0x2b30e9})=>{const _0x21820f=D(_0x2b30e9,{'data-footnotes-list-label':t('Footnotes')}),_0x12f550=_0x204337(_0x21820f,_0x2b30e9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2b30e9['setCustomProperty']('footnotesDefinitions',!0x0,_0x12f550),_0x12f550;}});}['_defineDefinitionConverters'](){const {editor:_0x15bca3}=this,{conversion:_0x13c208,locale:_0x341592}=_0x15bca3,_0x8e02ea=_0x15bca3['config']['get']('footnotes.multiBlock');_0x13c208['for']('upcast')['add'](_0xba6272=>{_0xba6272['on']('element:li',(_0x4a651e,_0x39eb92,_0x4dc33c)=>{const _0x14b1c3=_0x39eb92['viewItem'];if(!_0x14b1c3['hasClass']('footnote-definition')||!_0x14b1c3['getAttribute']('id'))return;const _0xd43f9a=_0x14b1c3['parent'];if(!_0xd43f9a['is']('element','ol')||!_0xd43f9a['hasClass']('footnotes-list'))return;if(!_0x4dc33c['consumable']['test'](_0x14b1c3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x31ffdb=_0x4dc33c['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x14b1c3['getAttribute']('id')});if(!_0x4dc33c['safeInsert'](_0x31ffdb,_0x39eb92['modelCursor']))return;_0x4dc33c['consumable']['consume'](_0x14b1c3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x39b5d3=Array['from'](_0x14b1c3['getChildren']())['find'](_0x209e05=>_0x209e05['is']('element')&&_0x209e05['hasClass']('footnote-content'));for(const _0x44377a of _0x14b1c3['getChildren']())_0x44377a['is']('element')&&(_0x4dc33c['consumable']['consume'](_0x44377a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4dc33c['consumable']['consume'](_0x44377a,{'name':!0x0,'classes':'footnote-content'}));if(_0x39b5d3){if(_0x8e02ea)_0x4dc33c['convertChildren'](_0x39b5d3,_0x31ffdb);else{const _0x51ddd4=_0x4dc33c['writer']['createElement']('footnoteInlineContent');_0x4dc33c['writer']['insert'](_0x51ddd4,_0x31ffdb),_0x4dc33c['convertChildren'](_0x39b5d3,_0x51ddd4);}}_0x4dc33c['updateConversionResult'](_0x31ffdb,_0x39eb92);});}),_0x13c208['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1fa688,{writer:_0x3ba088})=>y(_0x1fa688,_0x3ba088,_0x341592,{'dataPipeline':!0x0})}),_0x13c208['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5afb68,{writer:_0x1b9c9c})=>y(_0x5afb68,_0x1b9c9c,_0x341592)});}['_defineBogusParagraphConverters'](){const {editor:_0xd1bf4d}=this,{conversion:_0x2633fe}=_0xd1bf4d;_0xd1bf4d['config']['get']('footnotes.multiBlock')?(_0x2633fe['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x2633fe['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xd1bf4d['model']['document'],'change:data',()=>{!function(_0x2a0450,_0x37f6e6){const _0x327d95=_0x2a0450['document']['differ'],_0x4e8a85=new Set();for(const _0x5c58a3 of _0x327d95['getChanges']()){const _0x1cd6a1='attribute'==_0x5c58a3['type']?_0x5c58a3['range']['start']['parent']:_0x5c58a3['position']['parent'];_0x1cd6a1['is']('element','footnoteDefinition')&&_0x4e8a85['add'](_0x1cd6a1);}for(const _0x2087a8 of _0x4e8a85['values']()){const _0x4b80da=Array['from'](_0x2087a8['getChildren']())['filter'](_0x47882b=>v(_0x47882b,_0x37f6e6['mapper']));for(const _0x323f7b of _0x4b80da)_0x37f6e6['reconvertItem'](_0x323f7b);}}(_0xd1bf4d['model'],_0xd1bf4d['editing']);})):(_0x2633fe['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x2633fe['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x10b68c,{writer:_0x1abfa2})=>{const _0x4c091d=_0x1abfa2['createContainerElement']('span');return _0x1abfa2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c091d),_0x4c091d;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1bda46}=this,{editing:_0x33123c,t:t}=_0x1bda46,_0x383094=_0x1bda46['model']['document']['selection'];_0x1bda46['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1bda46['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x33123c['view']['document'],'enter',(_0x21e209,_0x520d02)=>{const _0x37333b=function(_0x576022){const _0x342ed9=_0x576022['getSelectedElement']();if(_0x342ed9?.['is']('element','footnoteRef'))return _0x342ed9;return null;}(_0x383094);if(_0x37333b){const _0x4c6fe0=_0x37333b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4c6fe0),_0x520d02['preventDefault'](),_0x21e209['stop']();}},{'context':_0x410f66});}['_defineClickHandlers'](){const {editor:_0x485d01}=this,{editing:_0x481d56}=_0x485d01;_0x485d01['editing']['view']['addObserver'](_0x5d00db),_0x485d01['editing']['view']['addObserver'](_0x1d0585);let _0x2e8140=!0x1;this['listenTo'](_0x481d56['view']['document'],'pointerdown',(_0x16d3a3,_0x5626ed)=>{const {target:_0x319176}=_0x5626ed,_0x4b0e77=_0x481d56['view']['document']['selection'];_0x2e8140=!!(_0x319176?.['is']('element','a')&&_0x319176['parent']?.['is']('element','sup')&&_0x319176['parent']['hasClass']('footnote'))&&_0x4b0e77['getSelectedElement']()===_0x319176['parent'];},{'priority':'high'}),this['listenTo'](_0x481d56['view']['document'],'click',(_0x49078d,_0x129361)=>{const {target:_0x2c4141}=_0x129361;if(!_0x2c4141?.['is']('element','a'))return;if(_0x2c4141['parent']?.['is']('element','sup')&&_0x2c4141['parent']['hasClass']('footnote')&&!_0x2e8140)return void _0x129361['preventDefault']();let _0x5dd631=_0x2c4141['getAttribute']('href');if(!_0x5dd631?.['startsWith']('#'))return;_0x5dd631=_0x5dd631['slice'](0x1);let _0x12ccc0=!0x1;(_0x5dd631['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5dd631['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5dd631))&&(_0x12ccc0=!0x0),_0x12ccc0&&(_0x129361['preventDefault'](),_0x49078d['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1e87f8}={}){return(_0x42d356,{writer:_0x261688})=>{if(!g(_0x42d356))return null;if(!_0x1e87f8)return _0x261688['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x34639f=_0x261688['createContainerElement']('p');return _0x261688['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x34639f),_0x34639f;};}function g(_0x196e3c){const {parent:_0x35c7f3}=_0x196e3c;if(!_0x35c7f3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x35c7f3['childCount'])return!0x1;for(const _0x118736 of _0x196e3c['getAttributeKeys']())if(!_0x118736['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x118736)return!0x1;return!0x0;}function v(_0xc435,_0x436d9b){if(!_0xc435['is']('element','paragraph'))return!0x1;const _0x2778ed=_0x436d9b['toViewElement'](_0xc435);return!!_0x2778ed&&g(_0xc435)!==_0x2778ed['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x34517a){return _0x410f66(_0x34517a)&&_0x34517a['is']('containerElement')&&!!_0x34517a['getCustomProperty']('footnotesDefinitions');}function D(_0x1a765e,_0x544502={}){const _0x42c31f=_0x1a765e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x29fd2d=_0x1a765e['createContainerElement']('ol',{'class':'footnotes-list'},_0x1a765e['createSlot']());return _0x1a765e['createContainerElement']('div',{'class':'footnotes',..._0x544502},[_0x42c31f,_0x29fd2d]);}function b(_0x417ddd,_0x39fc6b){const _0x191e85=_0x417ddd['getAttribute']('footnoteId'),_0x31adb4=_0x417ddd['getAttribute']('footnoteCounter'),_0x152397=_0x39fc6b['createUIElement']('a',{'href':'#'+_0x191e85},function(_0xe1db4a){const _0x3e1ee0=this['toDomElement'](_0xe1db4a);return _0x3e1ee0['textContent']=_0x31adb4,_0x3e1ee0;}),_0x48f35d=_0x39fc6b['createContainerElement']('sup',{'id':'ref-'+_0x191e85,'class':'footnote'},[_0x152397]);return _0x48f35d['getFillerOffset']=()=>null,_0x48f35d;}function y(_0x244454,_0x366de3,_0x3c4ae9,{dataPipeline:_0x5babfe}={}){const {t:t}=_0x3c4ae9,_0x39a6f3=_0x244454['getAttribute']('footnoteId'),_0x3cd54e=_0x366de3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x39a6f3},function(_0x379262){const _0x3adfab=this['toDomElement'](_0x379262);return _0x3adfab['innerText']='^',_0x3adfab;}),_0x493bc7=_0x5babfe?_0x366de3['createContainerElement']('div',{'class':'footnote-content'}):_0x134163(_0x366de3['createEditableElement']('div',{'class':'footnote-content'}),_0x366de3,{'label':t('Footnote\x20content.')});return _0x366de3['insert'](_0x366de3['createPositionAt'](_0x493bc7,0x0),_0x366de3['createSlot']()),_0x366de3['createContainerElement']('li',{'class':'footnote-definition','id':_0x39a6f3},[_0x3cd54e,_0x493bc7]);}
|
|
23
|
+
import{Plugin as _0x20e561}from'ckeditor5/src/core.js';import{isWidget as _0x1c1e36,toWidget as _0x134d53,toWidgetEditable as _0x22a01d}from'ckeditor5/src/widget.js';import{uid as _0x2000a5}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1b83e2,ClickObserver as _0x569444}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3d728b}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4754af}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x20e561{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3d728b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1975cf}=this;_0x1975cf['config']['define']('footnotes.multiBlock',!0x0),_0x1975cf['commands']['add']('insertFootnote',new _0x4754af(_0x1975cf)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x187431){const _0x471556=_0x48d4a7([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]),_0x542b41=0x47a28506,_0x1d6de4=0x47a507ee^_0x542b41,_0x4eec05=window[_0x48d4a7([0x44,0x61,0x74,0x65])][_0x48d4a7([0x6e,0x6f,0x77])](),_0x16b4cf=_0x187431[_0x48d4a7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33bbba=new window[(_0x48d4a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f577c=>{_0x16b4cf[_0x48d4a7([0x6f,0x6e,0x63,0x65])](_0x48d4a7([0x72,0x65,0x61,0x64,0x79]),_0x2f577c);}),_0x4ca3ab={[_0x48d4a7([0x6b,0x74,0x79])]:_0x48d4a7([0x45,0x43]),[_0x48d4a7([0x75,0x73,0x65])]:_0x48d4a7([0x73,0x69,0x67]),[_0x48d4a7([0x63,0x72,0x76])]:_0x48d4a7([0x50,0x2d,0x32,0x35,0x36]),[_0x48d4a7([0x78])]:_0x48d4a7([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]),[_0x48d4a7([0x79])]:_0x48d4a7([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]),[_0x48d4a7([0x61,0x6c,0x67])]:_0x48d4a7([0x45,0x53,0x32,0x35,0x36])},_0x356359=_0x16b4cf[_0x48d4a7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48d4a7([0x67,0x65,0x74])](_0x48d4a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x267b78(){let _0x53cb82,_0x278af8=null,_0x5946d8=null;try{if(_0x356359==_0x48d4a7([0x47,0x50,0x4c]))return _0x48d4a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53cb82=_0x15ce5c(),!_0x53cb82)return _0x48d4a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53cb82[_0x48d4a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5946d8=_0x17c5d7(_0x53cb82[_0x48d4a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53cb82[_0x48d4a7([0x6a,0x74,0x69])])),await _0x4a6e71()?_0x45d359()?_0x4d2a24()?_0x48d4a7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36ea2b()?(_0x53cb82[_0x48d4a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48d4a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x278af8=_0x516696(_0x48d4a7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x987220()):_0x48d4a7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48d4a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48d4a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48d4a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d2a24(){const _0x5728ff=[_0x48d4a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48d4a7([0x74,0x72,0x69,0x61,0x6c])][_0x48d4a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53cb82[_0x48d4a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4eec05/0x3e8:0xe10*_0x1d6de4;return _0x53cb82[_0x48d4a7([0x65,0x78,0x70])]<_0x5728ff;}function _0x45d359(){const _0x2a12c9=_0x53cb82[_0x48d4a7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a12c9&&(!!_0x2a12c9[_0x48d4a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d4a7([0x2a]))||!!_0x2a12c9[_0x48d4a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d4a7([0x46,0x4f,0x4f])));}function _0x36ea2b(){const _0x3ff02c=_0x53cb82[_0x48d4a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ff02c||0x0==_0x3ff02c[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27f7e1}=new URL(window[_0x48d4a7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ff02c[_0x48d4a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f7e1))return!0x0;const _0x296fc0=_0x27f7e1[_0x48d4a7([0x73,0x70,0x6c,0x69,0x74])](_0x48d4a7([0x2e]));return _0x3ff02c[_0x48d4a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d0635=>_0x5d0635[_0x48d4a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d4a7([0x2a])))[_0x48d4a7([0x6d,0x61,0x70])](_0x528bd6=>_0x528bd6[_0x48d4a7([0x73,0x70,0x6c,0x69,0x74])](_0x48d4a7([0x2e])))[_0x48d4a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f0cc8=>_0x5f0cc8[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x296fc0[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d4a7([0x6d,0x61,0x70])](_0x4a6e00=>Array(_0x296fc0[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4a6e00[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d4a7([0x66,0x69,0x6c,0x6c])](_0x4a6e00[0x0]===_0x48d4a7([0x2a])?_0x48d4a7([0x2a]):'')[_0x48d4a7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4a6e00))[_0x48d4a7([0x73,0x6f,0x6d,0x65])](_0x5df4cf=>_0x296fc0[_0x48d4a7([0x65,0x76,0x65,0x72,0x79])]((_0x122146,_0xc62ebf)=>_0x5df4cf[_0xc62ebf]===_0x122146||_0x5df4cf[_0xc62ebf]===_0x48d4a7([0x2a])));}function _0x987220(){return _0x278af8&&_0x5946d8?new window[(_0x48d4a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x598ceb,_0x3686a1)=>{_0x278af8[_0x48d4a7([0x74,0x68,0x65,0x6e])](_0x598ceb,_0x3686a1),_0x5946d8[_0x48d4a7([0x74,0x68,0x65,0x6e])](_0x428774=>{_0x428774!=_0x48d4a7([0x56,0x61,0x6c,0x69,0x64])&&_0x598ceb(_0x428774);},_0x3686a1);}):_0x278af8||_0x5946d8||_0x48d4a7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17c5d7(_0xa1f5c3,_0x248ed6){return new window[(_0x48d4a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2297cf=>{if(_0x267288())return _0x2297cf(_0x48d4a7([0x56,0x61,0x6c,0x69,0x64]));_0x77e023(),_0x16b4cf[_0x48d4a7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48d4a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ce3c8=!0x1;const _0x5eb734=_0x2000a5();function _0x451d25(_0x5dfa58){return!!_0x5dfa58&&(typeof _0x5dfa58===_0x48d4a7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5dfa58===_0x48d4a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5dfa58[_0x48d4a7([0x74,0x68,0x65,0x6e])]===_0x48d4a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5dfa58[_0x48d4a7([0x63,0x61,0x74,0x63,0x68])]===_0x48d4a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54c8f7(_0x5c5f96){_0x1fee48(_0x5c5f96)[_0x48d4a7([0x74,0x68,0x65,0x6e])](_0x463bae=>{if(!_0x463bae||_0x463bae[_0x48d4a7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48d4a7([0x6f,0x6b]))return _0x48d4a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e9aaa(_0x5ba031(_0x5eb734+_0x248ed6))!=_0x463bae[_0x48d4a7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48d4a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48d4a7([0x56,0x61,0x6c,0x69,0x64]);})[_0x48d4a7([0x74,0x68,0x65,0x6e])](_0x3dbc91=>(_0x5df7c0(),_0x3dbc91),()=>{const _0x94eee=_0x384a5d();return null==_0x94eee?(_0x5df7c0(),_0x48d4a7([0x56,0x61,0x6c,0x69,0x64])):_0x48d4a7(_0x4eec05-_0x94eee>(0x63ae0106^_0x542b41)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48d4a7([0x74,0x68,0x65,0x6e])](_0x2297cf)[_0x48d4a7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2297cf(_0x48d4a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2de0b4=0x47946b86^_0x542b41;function _0x5df7c0(){const _0x5c0fe5=_0x48d4a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e9aaa(_0x5ba031(_0xa1f5c3)),_0x3aa641=_0x518dbc(_0x5e9aaa(window[_0x48d4a7([0x4d,0x61,0x74,0x68])][_0x48d4a7([0x63,0x65,0x69,0x6c])](_0x4eec05/_0x2de0b4)));window[_0x48d4a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d4a7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c0fe5,_0x3aa641);}function _0x384a5d(){const _0x12657b=_0x48d4a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e9aaa(_0x5ba031(_0xa1f5c3)),_0x3525fb=window[_0x48d4a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d4a7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12657b);return _0x3525fb?window[_0x48d4a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x518dbc(_0x3525fb),0x10)*_0x2de0b4:null;}function _0x1fee48(_0x4c1907){return new window[(_0x48d4a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53a928,_0x1d6de5)=>{_0x4c1907[_0x48d4a7([0x74,0x68,0x65,0x6e])](_0x53a928,_0x1d6de5),window[_0x48d4a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d6de5,0x47a351c6^_0x542b41);});}}_0x16b4cf[_0x48d4a7([0x6f,0x6e])](_0x48d4a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x928e29,_0x2d4ebe)=>{if(_0x2d4ebe[0x0]!=_0xa1f5c3)return _0x2297cf(_0x48d4a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d4ebe[0x1]={..._0x2d4ebe[0x1],[_0x48d4a7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5eb734};},{[_0x48d4a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d4a7([0x68,0x69,0x67,0x68])}),_0x16b4cf[_0x48d4a7([0x6f,0x6e])](_0x48d4a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x147454=>{_0x451d25(_0x147454[_0x48d4a7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ce3c8=!0x0,_0x54c8f7(_0x147454[_0x48d4a7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48d4a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d4a7([0x6c,0x6f,0x77])}),_0x33bbba[_0x48d4a7([0x74,0x68,0x65,0x6e])](()=>{_0x1ce3c8||_0x2297cf(_0x48d4a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x267288(){return _0x16b4cf[_0x48d4a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d4a7([0x76,0x69,0x65,0x77])][_0x48d4a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48d4a7([0x61,0x75,0x74,0x6f]);}function _0x77e023(){_0x16b4cf[_0x48d4a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d4a7([0x76,0x69,0x65,0x77])][_0x48d4a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48d4a7([0x61,0x75,0x74,0x6f]);}}function _0x516696(_0x2712b5){const _0x452f4c=[new window[(_0x48d4a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54a70e=>setTimeout(_0x54a70e,0x47abbbca^_0x542b41)),_0x33bbba[_0x48d4a7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48d4a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bcc4f=>{let _0x849f13=0x0;_0x16b4cf[_0x48d4a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d4a7([0x6f,0x6e])](_0x48d4a7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b24bf,_0x31d081)=>{_0x31d081[0x0][_0x48d4a7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x849f13++,_0x849f13==(0x47a280ee^_0x542b41)&&(_0x5bcc4f(),_0x1b24bf[_0x48d4a7([0x6f,0x66,0x66])]());});}))];return window[_0x48d4a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48d4a7([0x72,0x61,0x63,0x65])](_0x452f4c)[_0x48d4a7([0x74,0x68,0x65,0x6e])](()=>_0x2712b5);}async function _0x17d423(){await _0x33bbba,_0x16b4cf[_0x48d4a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d4a7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9ebf06,_0x16b4cf[_0x48d4a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d4a7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9ebf06,_0x16b4cf[_0x48d4a7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48d4a7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x161f48(_0x234faa){const _0x2f86a8=_0x243acc();_0x16b4cf[_0x2f86a8]=_0x48d4a7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x234faa,_0x234faa!=_0x48d4a7([0x56,0x61,0x6c,0x69,0x64])&&_0x17d423();}function _0x243acc(){const _0x1960dd=window[_0x48d4a7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48d4a7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48d4a7([0x6e,0x6f,0x77])]())[_0x48d4a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48d4a7([0x2e]),'');let _0x23230f=_0x48d4a7([0x75]);for(let _0x4bddbd=0x0;_0x4bddbd<_0x1960dd[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bddbd+=0x2){let _0x277106=window[_0x48d4a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1960dd[_0x48d4a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bddbd,_0x4bddbd+0x2));_0x277106>=_0x471556[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x277106-=_0x471556[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23230f+=_0x471556[_0x277106];}return _0x23230f;}function _0x15ce5c(){const _0x1f952d=_0x356359[_0x48d4a7([0x73,0x70,0x6c,0x69,0x74])](_0x48d4a7([0x2e]));if(0x3!=_0x1f952d[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x568587(_0x1f952d[0x1]);function _0x568587(_0x274d2c){const _0x18726e=_0x4b88fb(_0x274d2c);return _0x18726e&&_0x306211()?_0x18726e:null;function _0x306211(){const _0x59d13d=_0x18726e[_0x48d4a7([0x6a,0x74,0x69])],_0x1bf36e=window[_0x48d4a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59d13d[_0x48d4a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59d13d[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf7f560={..._0x18726e,[_0x48d4a7([0x6a,0x74,0x69])]:_0x59d13d[_0x48d4a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59d13d[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf7f560[_0x48d4a7([0x76,0x63])],_0x5ba031(_0xf7f560)==_0x1bf36e;}}}async function _0x4a6e71(){let _0x34d421=!0x0;try{const _0x303004=_0x356359[_0x48d4a7([0x73,0x70,0x6c,0x69,0x74])](_0x48d4a7([0x2e])),[_0x412363,_0x34c3b7,_0x1bf046]=_0x303004;return _0x12c90c(_0x412363),await _0x48fb5f(_0x412363,_0x34c3b7,_0x1bf046),_0x34d421;}catch{return!0x1;}function _0x12c90c(_0x3a4fe5){const _0x45490c=_0x4b88fb(_0x3a4fe5);_0x45490c&&_0x45490c[_0x48d4a7([0x61,0x6c,0x67])]==_0x48d4a7([0x45,0x53,0x32,0x35,0x36])||(_0x34d421=!0x1);}async function _0x48fb5f(_0x277e3f,_0x4c2f10,_0x10517e){const _0xd31c7f=window[_0x48d4a7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48d4a7([0x66,0x72,0x6f,0x6d])](_0x116680(_0x10517e),_0x18fee2=>_0x18fee2[_0x48d4a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x333949=new window[(_0x48d4a7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48d4a7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x277e3f+_0x48d4a7([0x2e])+_0x4c2f10),_0x193570=window[_0x48d4a7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48d4a7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x193570)return;const _0x4efb80=await _0x193570[_0x48d4a7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48d4a7([0x6a,0x77,0x6b]),_0x4ca3ab,{[_0x48d4a7([0x6e,0x61,0x6d,0x65])]:_0x48d4a7([0x45,0x43,0x44,0x53,0x41]),[_0x48d4a7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48d4a7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48d4a7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x193570[_0x48d4a7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48d4a7([0x6e,0x61,0x6d,0x65])]:_0x48d4a7([0x45,0x43,0x44,0x53,0x41]),[_0x48d4a7([0x68,0x61,0x73,0x68])]:{[_0x48d4a7([0x6e,0x61,0x6d,0x65])]:_0x48d4a7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4efb80,_0xd31c7f,_0x333949)||(_0x34d421=!0x1);}}function _0x4b88fb(_0x1031c7){return _0x1031c7[_0x48d4a7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48d4a7([0x65,0x79]))?JSON[_0x48d4a7([0x70,0x61,0x72,0x73,0x65])](_0x116680(_0x1031c7)):null;}function _0x116680(_0x27f174){return window[_0x48d4a7([0x61,0x74,0x6f,0x62])](_0x27f174[_0x48d4a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48d4a7([0x2b]))[_0x48d4a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48d4a7([0x2f])));}function _0x5ba031(_0x32683f){let _0x2b0cde=0x1505;function _0x5b8a61(_0x54346e){for(let _0x1c8d22=0x0;_0x1c8d22<_0x54346e[_0x48d4a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c8d22++){const _0x6b6957=_0x54346e[_0x48d4a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c8d22);_0x2b0cde=(_0x2b0cde<<0x5)+_0x2b0cde+_0x6b6957,_0x2b0cde&=_0x2b0cde;}}function _0x5df678(_0x4ecef9){Array[_0x48d4a7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ecef9)?_0x4ecef9[_0x48d4a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5df678):_0x4ecef9&&typeof _0x4ecef9==_0x48d4a7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48d4a7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ecef9)[_0x48d4a7([0x73,0x6f,0x72,0x74])]()[_0x48d4a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20df8c,_0x118faf])=>{_0x5b8a61(_0x20df8c),_0x5df678(_0x118faf);}):_0x5b8a61(window[_0x48d4a7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ecef9));}return _0x5df678(_0x32683f),_0x2b0cde>>>0x0;}function _0x5e9aaa(_0x49b086){return _0x49b086[_0x48d4a7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48d4a7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48d4a7([0x30]));}function _0x518dbc(_0x39245b){return _0x39245b[_0x48d4a7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48d4a7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48d4a7([0x6a,0x6f,0x69,0x6e])]('');}function _0x9ebf06(){}function _0x48d4a7(_0x2a2d23){return _0x2a2d23['map'](_0x53e687=>String['fromCharCode'](_0x53e687))['join']('');}_0x161f48(await _0x267b78());}(this);}['_moveSelectionToFootnoteDefinition'](_0x26b7c6){const {plugins:_0xf62a40,editing:_0x3c5a8a,model:_0x4fef13}=this['editor'],_0x3bfb1f=_0xf62a40['get'](_0x3d728b)['getFootnote'](_0x26b7c6);return!!_0x3bfb1f&&(_0x4fef13['change'](_0x496b6e=>{_0x496b6e['setSelection'](_0x496b6e['createPositionAt'](_0x3bfb1f['definition'],'end'));}),_0x3c5a8a['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x54107a){const {plugins:_0x1b3c04,editing:_0x34cdf8,model:_0x3ce145}=this['editor'],_0x54f0ed=_0x1b3c04['get'](_0x3d728b)['getFootnote'](_0x54107a);return!!_0x54f0ed&&(_0x3ce145['change'](_0x5828d0=>{_0x5828d0['setSelection'](_0x54f0ed['reference'],'on');}),_0x34cdf8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x193324}=this['editor']['model'],_0x222e21=this['editor']['config']['get']('footnotes.multiBlock');_0x193324['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x193324['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x193324['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x222e21?_0x193324['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x193324['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x193324['addChildCheck'](_0xb6257b=>{for(const _0x198e95 of _0xb6257b)if('footnoteDefinition'===_0x198e95['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1f7152}=this,{conversion:_0x3065f0,editing:_0x4a6b49}=_0x1f7152,{t:t}=_0x1f7152['locale'];_0x3065f0['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x55f0c7,{writer:_0x1c1b55,consumable:_0x4d4b49})=>{const _0x182cac=_0x55f0c7['getChild'](0x0);if(!_0x182cac||!_0x182cac['is']('element','a'))return null;const _0x53e1c8=_0x182cac['getAttribute']('href')||'';if(!_0x53e1c8['startsWith']('#'))return null;const _0x834c9e=_0x53e1c8['replace'](/^#/,'');if(!_0x834c9e)return null;_0x4d4b49['consume'](_0x182cac,{'name':!0x0,'attributes':['href']});for(const {item:_0x24aee0}of _0x4a6b49['view']['createRangeIn'](_0x182cac))_0x24aee0['is']('$textProxy')?_0x4d4b49['consume'](_0x24aee0['textNode'],{'name':!0x0}):_0x24aee0['is']('element')&&_0x4d4b49['consume'](_0x24aee0,{'name':!0x0});return _0x1c1b55['createElement']('footnoteRef',{'footnoteId':_0x834c9e});}}),_0x3065f0['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x497d93,{writer:_0x2b3e82})=>b(_0x497d93,_0x2b3e82)}),_0x3065f0['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4dd5de,{writer:_0x471ed2})=>{const _0x1aaab8=_0x4dd5de['getAttribute']('footnoteCounter');return _0x134d53(b(_0x4dd5de,_0x471ed2),_0x471ed2,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1aaab8)});}});}['_defineDefinitionsConverters'](){const {editor:_0x25a0c3}=this,{t:t}=_0x25a0c3['locale'],{conversion:_0x1a7714}=_0x25a0c3;_0x1a7714['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1a7714['for']('upcast')['add'](_0x12a893=>{_0x12a893['on']('element:ol',(_0x560d1b,_0x4b18de,_0x4e987d)=>{const _0x5b5195=_0x4b18de['viewItem'];if(!_0x5b5195['hasClass']('footnotes-list')||!_0x4b18de['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4e987d['consumable']['consume'](_0x5b5195,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2e9653,modelCursor:_0x30de14}=_0x4e987d['convertChildren'](_0x4b18de['viewItem'],_0x4b18de['modelCursor']);_0x4b18de['modelRange']=_0x2e9653,_0x4b18de['modelCursor']=_0x30de14;}),_0x12a893['on']('element:hr',(_0x2258d8,_0x697b77,_0x3305c9)=>{const _0x4eebf3=_0x697b77['viewItem'];_0x4eebf3['hasClass']('footnotes-divider')&&_0x697b77['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3305c9['consumable']['consume'](_0x4eebf3,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1a7714['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2eae02,{writer:_0x6d0cc2})=>D(_0x6d0cc2)}),_0x1a7714['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x336c81,{writer:_0x4b0162})=>{const _0x4d34d1=D(_0x4b0162,{'data-footnotes-list-label':t('Footnotes')}),_0x23c3ee=_0x134d53(_0x4d34d1,_0x4b0162,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4b0162['setCustomProperty']('footnotesDefinitions',!0x0,_0x23c3ee),_0x23c3ee;}});}['_defineDefinitionConverters'](){const {editor:_0xc4ff51}=this,{conversion:_0x1aeb15,locale:_0x19f347}=_0xc4ff51,_0x434f95=_0xc4ff51['config']['get']('footnotes.multiBlock');_0x1aeb15['for']('upcast')['add'](_0x23f074=>{_0x23f074['on']('element:li',(_0x5bccbe,_0x1e732c,_0x1cfeb5)=>{const _0x5f0721=_0x1e732c['viewItem'];if(!_0x5f0721['hasClass']('footnote-definition')||!_0x5f0721['getAttribute']('id'))return;const _0x21d268=_0x5f0721['parent'];if(!_0x21d268['is']('element','ol')||!_0x21d268['hasClass']('footnotes-list'))return;if(!_0x1cfeb5['consumable']['test'](_0x5f0721,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x14d21f=_0x1cfeb5['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5f0721['getAttribute']('id')});if(!_0x1cfeb5['safeInsert'](_0x14d21f,_0x1e732c['modelCursor']))return;_0x1cfeb5['consumable']['consume'](_0x5f0721,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xe3ffcb=Array['from'](_0x5f0721['getChildren']())['find'](_0x2a5231=>_0x2a5231['is']('element')&&_0x2a5231['hasClass']('footnote-content'));for(const _0x249af4 of _0x5f0721['getChildren']())_0x249af4['is']('element')&&(_0x1cfeb5['consumable']['consume'](_0x249af4,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1cfeb5['consumable']['consume'](_0x249af4,{'name':!0x0,'classes':'footnote-content'}));if(_0xe3ffcb){if(_0x434f95)_0x1cfeb5['convertChildren'](_0xe3ffcb,_0x14d21f);else{const _0xedeb92=_0x1cfeb5['writer']['createElement']('footnoteInlineContent');_0x1cfeb5['writer']['insert'](_0xedeb92,_0x14d21f),_0x1cfeb5['convertChildren'](_0xe3ffcb,_0xedeb92);}}_0x1cfeb5['updateConversionResult'](_0x14d21f,_0x1e732c);});}),_0x1aeb15['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3e720d,{writer:_0x2f5cbb})=>y(_0x3e720d,_0x2f5cbb,_0x19f347,{'dataPipeline':!0x0})}),_0x1aeb15['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xf6f4ff,{writer:_0x21e82d})=>y(_0xf6f4ff,_0x21e82d,_0x19f347)});}['_defineBogusParagraphConverters'](){const {editor:_0x815f5}=this,{conversion:_0x3ff68e}=_0x815f5;_0x815f5['config']['get']('footnotes.multiBlock')?(_0x3ff68e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3ff68e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x815f5['model']['document'],'change:data',()=>{!function(_0xa5f16f,_0x30ba19){const _0x538bd7=_0xa5f16f['document']['differ'],_0x186f65=new Set();for(const _0x1ef69b of _0x538bd7['getChanges']()){const _0x110513='attribute'==_0x1ef69b['type']?_0x1ef69b['range']['start']['parent']:_0x1ef69b['position']['parent'];_0x110513['is']('element','footnoteDefinition')&&_0x186f65['add'](_0x110513);}for(const _0xa6f572 of _0x186f65['values']()){const _0x4f235c=Array['from'](_0xa6f572['getChildren']())['filter'](_0x171e7a=>v(_0x171e7a,_0x30ba19['mapper']));for(const _0xd5931f of _0x4f235c)_0x30ba19['reconvertItem'](_0xd5931f);}}(_0x815f5['model'],_0x815f5['editing']);})):(_0x3ff68e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3ff68e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x7e9efe,{writer:_0x464086})=>{const _0x172772=_0x464086['createContainerElement']('span');return _0x464086['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x172772),_0x172772;}}));}['_defineKeyboardHandlers'](){const {editor:_0x45d57f}=this,{editing:_0x1f8c1c,t:t}=_0x45d57f,_0x44136d=_0x45d57f['model']['document']['selection'];_0x45d57f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x45d57f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1f8c1c['view']['document'],'enter',(_0x512681,_0x50db4f)=>{const _0x46fc36=function(_0x5f5b47){const _0x198158=_0x5f5b47['getSelectedElement']();if(_0x198158?.['is']('element','footnoteRef'))return _0x198158;return null;}(_0x44136d);if(_0x46fc36){const _0x3b5f0e=_0x46fc36['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3b5f0e),_0x50db4f['preventDefault'](),_0x512681['stop']();}},{'context':_0x1c1e36});}['_defineClickHandlers'](){const {editor:_0x343fea}=this,{editing:_0x10bc2b}=_0x343fea;_0x343fea['editing']['view']['addObserver'](_0x1b83e2),_0x343fea['editing']['view']['addObserver'](_0x569444);let _0x5d5b4c=!0x1;this['listenTo'](_0x10bc2b['view']['document'],'pointerdown',(_0x496995,_0x7ed97c)=>{const {target:_0x522622}=_0x7ed97c,_0x421db5=_0x10bc2b['view']['document']['selection'];_0x5d5b4c=!!(_0x522622?.['is']('element','a')&&_0x522622['parent']?.['is']('element','sup')&&_0x522622['parent']['hasClass']('footnote'))&&_0x421db5['getSelectedElement']()===_0x522622['parent'];},{'priority':'high'}),this['listenTo'](_0x10bc2b['view']['document'],'click',(_0x537949,_0x53bacd)=>{const {target:_0x36d0d5}=_0x53bacd;if(!_0x36d0d5?.['is']('element','a'))return;if(_0x36d0d5['parent']?.['is']('element','sup')&&_0x36d0d5['parent']['hasClass']('footnote')&&!_0x5d5b4c)return void _0x53bacd['preventDefault']();let _0x3a1422=_0x36d0d5['getAttribute']('href');if(!_0x3a1422?.['startsWith']('#'))return;_0x3a1422=_0x3a1422['slice'](0x1);let _0x3328f4=!0x1;(_0x3a1422['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3a1422['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3a1422))&&(_0x3328f4=!0x0),_0x3328f4&&(_0x53bacd['preventDefault'](),_0x537949['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2e4756}={}){return(_0x5a598d,{writer:_0x87e11d})=>{if(!g(_0x5a598d))return null;if(!_0x2e4756)return _0x87e11d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x405b78=_0x87e11d['createContainerElement']('p');return _0x87e11d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x405b78),_0x405b78;};}function g(_0x8539b0){const {parent:_0x20dde4}=_0x8539b0;if(!_0x20dde4?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x20dde4['childCount'])return!0x1;for(const _0x3d5fad of _0x8539b0['getAttributeKeys']())if(!_0x3d5fad['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3d5fad)return!0x1;return!0x0;}function v(_0x2d9c94,_0x1ae9f1){if(!_0x2d9c94['is']('element','paragraph'))return!0x1;const _0x4d477c=_0x1ae9f1['toViewElement'](_0x2d9c94);return!!_0x4d477c&&g(_0x2d9c94)!==_0x4d477c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0xda5229){return _0x1c1e36(_0xda5229)&&_0xda5229['is']('containerElement')&&!!_0xda5229['getCustomProperty']('footnotesDefinitions');}function D(_0x313be9,_0x32aa3d={}){const _0x51e575=_0x313be9['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4e75df=_0x313be9['createContainerElement']('ol',{'class':'footnotes-list'},_0x313be9['createSlot']());return _0x313be9['createContainerElement']('div',{'class':'footnotes',..._0x32aa3d},[_0x51e575,_0x4e75df]);}function b(_0x6810e5,_0x375a3a){const _0x45abd2=_0x6810e5['getAttribute']('footnoteId'),_0xe3c04e=_0x6810e5['getAttribute']('footnoteCounter'),_0x1986a5=_0x375a3a['createUIElement']('a',{'href':'#'+_0x45abd2},function(_0x25d6af){const _0x1fd4c0=this['toDomElement'](_0x25d6af);return _0x1fd4c0['textContent']=_0xe3c04e,_0x1fd4c0;}),_0x28e6db=_0x375a3a['createContainerElement']('sup',{'id':'ref-'+_0x45abd2,'class':'footnote'},[_0x1986a5]);return _0x28e6db['getFillerOffset']=()=>null,_0x28e6db;}function y(_0x23f7d6,_0x30d144,_0x5bbf5e,{dataPipeline:_0x4999ff}={}){const {t:t}=_0x5bbf5e,_0x3c3c2e=_0x23f7d6['getAttribute']('footnoteId'),_0x543c01=_0x30d144['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3c3c2e},function(_0xd9aa8){const _0x31d278=this['toDomElement'](_0xd9aa8);return _0x31d278['innerText']='^',_0x31d278;}),_0x4f9133=_0x4999ff?_0x30d144['createContainerElement']('div',{'class':'footnote-content'}):_0x22a01d(_0x30d144['createEditableElement']('div',{'class':'footnote-content'}),_0x30d144,{'label':t('Footnote\x20content.')});return _0x30d144['insert'](_0x30d144['createPositionAt'](_0x4f9133,0x0),_0x30d144['createSlot']()),_0x30d144['createContainerElement']('li',{'class':'footnote-definition','id':_0x3c3c2e},[_0x543c01,_0x4f9133]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4743(_0x1a3fb6,_0x1dfade){const _0x2838e6=_0x2838();return _0x4743=function(_0x4743bb,_0x36694b){_0x4743bb=_0x4743bb-0x8b;let _0xa1cfcc=_0x2838e6[_0x4743bb];return _0xa1cfcc;},_0x4743(_0x1a3fb6,_0x1dfade);}const _0x5e866a=_0x4743;(function(_0x17b44e,_0x14ba1c){const _0x32aa90=_0x4743,_0x3ffb1d=_0x17b44e();while(!![]){try{const _0x599606=parseInt(_0x32aa90(0x8d))/0x1*(-parseInt(_0x32aa90(0x96))/0x2)+-parseInt(_0x32aa90(0x91))/0x3*(parseInt(_0x32aa90(0x95))/0x4)+-parseInt(_0x32aa90(0x9b))/0x5*(-parseInt(_0x32aa90(0x98))/0x6)+-parseInt(_0x32aa90(0xa0))/0x7+-parseInt(_0x32aa90(0x9c))/0x8*(parseInt(_0x32aa90(0x9d))/0x9)+parseInt(_0x32aa90(0x90))/0xa*(-parseInt(_0x32aa90(0x9a))/0xb)+parseInt(_0x32aa90(0xa1))/0xc;if(_0x599606===_0x14ba1c)break;else _0x3ffb1d['push'](_0x3ffb1d['shift']());}catch(_0x6d95f6){_0x3ffb1d['push'](_0x3ffb1d['shift']());}}}(_0x2838,0xd53f7));import{Command as _0x4cde3b}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x4e7d36}from'../../footnotestracker.js';function _0x2838(){const _0x32089b=['201984dygQog','isEnabled','6930vRRPtO','15dlpGfq','1632fezxok','25587CuXENY','refresh','isInteger','2505832unBSrS','34735404utilOZ','get','model','change','setAttribute','getAttribute','558730QPKkEa','plugins','execute','3940PodSeG','48rVUnaa','value','footnotesListStart','_updateFootnotesCounters','94312XYQCkY','2gUdmhh','getFootnotesDefinitionsObjectElement'];_0x2838=function(){return _0x32089b;};return _0x2838();}export class FootnotesStartCommand extends _0x4cde3b{[_0x5e866a(0x9e)](){const _0x4672d9=_0x5e866a,{editor:_0x5ac3e1}=this,_0x3cfa03=_0x5ac3e1[_0x4672d9(0x8e)][_0x4672d9(0xa2)](_0x4e7d36)[_0x4672d9(0x97)]();this[_0x4672d9(0x99)]=!!_0x3cfa03,this[_0x4672d9(0x92)]=_0x3cfa03?.[_0x4672d9(0x8c)](_0x4672d9(0x93))??null;}[_0x5e866a(0x8f)]({value:_0x2925b6}){const _0x1c0b9f=_0x5e866a,{editor:_0x4b8f63}=this,_0x124792=_0x4b8f63[_0x1c0b9f(0x8e)][_0x1c0b9f(0xa2)](_0x4e7d36),_0x3ac7af=_0x124792[_0x1c0b9f(0x97)]();_0x3ac7af&&Number[_0x1c0b9f(0x9f)](_0x2925b6)&&_0x4b8f63[_0x1c0b9f(0xa3)][_0x1c0b9f(0xa4)](_0x32ecd5=>{const _0x3cdbd2=_0x1c0b9f;_0x32ecd5[_0x3cdbd2(0x8b)](_0x3cdbd2(0x93),_0x2925b6,_0x3ac7af),_0x124792[_0x3cdbd2(0x94)](_0x32ecd5);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfc09ec=_0x43d7;(function(_0x20ba91,_0x14a213){const _0x6c1bba=_0x43d7,_0x3ce3cb=_0x20ba91();while(!![]){try{const _0x292b95=-parseInt(_0x6c1bba(0x1d8))/0x1+parseInt(_0x6c1bba(0x1dd))/0x2+-parseInt(_0x6c1bba(0x1d4))/0x3*(parseInt(_0x6c1bba(0x1da))/0x4)+parseInt(_0x6c1bba(0x1ce))/0x5*(parseInt(_0x6c1bba(0x1d9))/0x6)+-parseInt(_0x6c1bba(0x1cb))/0x7+parseInt(_0x6c1bba(0x1de))/0x8*(-parseInt(_0x6c1bba(0x1d1))/0x9)+parseInt(_0x6c1bba(0x1c9))/0xa;if(_0x292b95===_0x14a213)break;else _0x3ce3cb['push'](_0x3ce3cb['shift']());}catch(_0x4d1416){_0x3ce3cb['push'](_0x3ce3cb['shift']());}}}(_0xd54b,0x909d6));import{Command as _0x4827e1}from'ckeditor5/src/core.js';function _0xd54b(){const _0x22f26a=['4026500wOtSBt','_updateFootnotesCounters','1684900uqQcly','includes','refresh','3275QHjZJw','execute','model','289944hIJbsF','setAttribute','plugins','2701476ASIdvT','getAttribute','getFootnotesDefinitionsObjectElement','value','39223wVXpKo','5610oUaLuc','4DxZeIH','change','isEnabled','2159684FEHdfn','80zotlPU','footnotesListStyle','get'];_0xd54b=function(){return _0x22f26a;};return _0xd54b();}import{FOOTNOTES_DEFINITIONS_STYLES as _0x5e53a1}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x4c5f3d}from'../../footnotestracker.js';function _0x43d7(_0x26e74c,_0x533f47){const _0xd54b11=_0xd54b();return _0x43d7=function(_0x43d791,_0x9818d5){_0x43d791=_0x43d791-0x1c9;let _0x7dc868=_0xd54b11[_0x43d791];return _0x7dc868;},_0x43d7(_0x26e74c,_0x533f47);}export class FootnotesStyleCommand extends _0x4827e1{[_0xfc09ec(0x1cd)](){const _0x258e30=_0xfc09ec,{editor:_0x2ef3ac}=this,_0x486b6e=_0x2ef3ac[_0x258e30(0x1d3)][_0x258e30(0x1e0)](_0x4c5f3d)[_0x258e30(0x1d6)]();this[_0x258e30(0x1dc)]=!!_0x486b6e,this[_0x258e30(0x1d7)]=_0x486b6e?.[_0x258e30(0x1d5)](_0x258e30(0x1df))??null;}[_0xfc09ec(0x1cf)]({value:_0x22dc7f}){const _0x5ed9e5=_0xfc09ec,{editor:_0x435f41}=this,_0x85127=_0x435f41[_0x5ed9e5(0x1d3)][_0x5ed9e5(0x1e0)](_0x4c5f3d),_0x3602a=_0x85127[_0x5ed9e5(0x1d6)]();_0x3602a&&_0x5e53a1[_0x5ed9e5(0x1cc)](_0x22dc7f)&&_0x435f41[_0x5ed9e5(0x1d0)][_0x5ed9e5(0x1db)](_0x273e04=>{const _0x3601dc=_0x5ed9e5;_0x273e04[_0x3601dc(0x1d2)](_0x3601dc(0x1df),_0x22dc7f,_0x3602a),_0x85127[_0x3601dc(0x1ca)](_0x273e04);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49dfbe=_0x25d4;function _0x25d4(_0x2ad5ce,_0x2d4d19){const _0x4704cc=_0x4704();return _0x25d4=function(_0x25d41f,_0xea6ba9){_0x25d41f=_0x25d41f-0x192;let _0xcbafe5=_0x4704cc[_0x25d41f];return _0xcbafe5;},_0x25d4(_0x2ad5ce,_0x2d4d19);}(function(_0x3abcb4,_0x4438a0){const _0x11534f=_0x25d4,_0x2ca5de=_0x3abcb4();while(!![]){try{const _0x4b3e71=-parseInt(_0x11534f(0x198))/0x1*(parseInt(_0x11534f(0x19b))/0x2)+parseInt(_0x11534f(0x199))/0x3*(-parseInt(_0x11534f(0x196))/0x4)+-parseInt(_0x11534f(0x1a4))/0x5*(parseInt(_0x11534f(0x1a1))/0x6)+parseInt(_0x11534f(0x19f))/0x7+-parseInt(_0x11534f(0x19c))/0x8*(-parseInt(_0x11534f(0x19d))/0x9)+-parseInt(_0x11534f(0x1a0))/0xa+parseInt(_0x11534f(0x192))/0xb;if(_0x4b3e71===_0x4438a0)break;else _0x2ca5de['push'](_0x2ca5de['shift']());}catch(_0x4f42b8){_0x2ca5de['push'](_0x2ca5de['shift']());}}}(_0x4704,0xaefa5));function _0x4704(){const _0x3d1c0=['upper-latin','5WEykTQ','19220311jqDfbG','lower-latin','decimal-leading-zero','decimal','218628MdlmVr','upper-roman','444nGShfJ','6RvczxR','upper-alpha','2374WoHDUK','1360912nEyEQW','63avifiY','lower-roman','871283HQGAXV','9630880VNOqiD','4478574FYnTlM','lower-alpha'];_0x4704=function(){return _0x3d1c0;};return _0x4704();}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x49dfbe(0x195),_0x49dfbe(0x194),_0x49dfbe(0x193),_0x49dfbe(0x1a3),_0x49dfbe(0x1a2),_0x49dfbe(0x19a),_0x49dfbe(0x19e),_0x49dfbe(0x197)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x150f(_0x28316f,_0xc79deb){const _0x2ec080=_0x2ec0();return _0x150f=function(_0x150f8b,_0x4c3508){_0x150f8b=_0x150f8b-0x14e;let _0x338939=_0x2ec080[_0x150f8b];return _0x338939;},_0x150f(_0x28316f,_0xc79deb);}const _0x276583=_0x150f;(function(_0x25f5f1,_0x8bea32){const _0x3dea88=_0x150f,_0x409ecc=_0x25f5f1();while(!![]){try{const _0x43e873=-parseInt(_0x3dea88(0x16c))/0x1+parseInt(_0x3dea88(0x157))/0x2+parseInt(_0x3dea88(0x189))/0x3*(-parseInt(_0x3dea88(0x1ad))/0x4)+-parseInt(_0x3dea88(0x195))/0x5+-parseInt(_0x3dea88(0x17e))/0x6*(parseInt(_0x3dea88(0x166))/0x7)+parseInt(_0x3dea88(0x187))/0x8+parseInt(_0x3dea88(0x17c))/0x9*(parseInt(_0x3dea88(0x178))/0xa);if(_0x43e873===_0x8bea32)break;else _0x409ecc['push'](_0x409ecc['shift']());}catch(_0x8ec8a){_0x409ecc['push'](_0x409ecc['shift']());}}}(_0x2ec0,0x4b421));import{Plugin as _0x221393}from'ckeditor5/src/core.js';function _0x2ec0(){const _0x6e08b9=['find','4878jULNXI','footnotesStyle','6jKDBib','consumable','writer','schema','model','removeAttribute','setStyle','name','downcast','2337712KXgnEw','footnotes-list','6paedOa','toLowerCase','_updateFootnotesCounters','differ','attribute:footnotesListStart:footnotesDefinitions','nodeAfter','setFootnoteFormatter','_formatFootnoteListValue','getChildren','isNaN','get','footnotesStart','1378500VvLODg','lower-latin','extend','from','isOfficialPlugin','decimal-leading-zero','parent','pluginName','lower-alpha','floor','insert','toViewElement','getItems','$text','editor','mapper','define','element','footnotes.footnotesProperties.defaultListStyle','_getDefaultListStyle','upper-latin','attribute:footnotesListStyle:footnotesDefinitions','_definePostfixer','hasClass','145568zcqyPx','config','upper-alpha','position','upcast','fromCharCode','requires','getChanges','getAttribute','FootnotesPropertiesEditing','_defineSchema','removeStyle','consume','footnotesDefinitions','lower-roman','955796JCybKJ','add','isPremiumPlugin','hasAttribute','type','item','registerPostFixer','parseInt','max','for','_defineConverters','viewItem','_getDefaultStartIndex','setAttribute','_defineFormatter','2364586mFVplF','padStart','plugins','createRangeOn','toUpperCase','element:ol','472585UDZNio','commands','upper-roman','checkAttribute','list-style-type','init','footnotesListStyle','getStyle','footnotesListStart','start','decimal','footnotes.footnotesProperties.defaultStartIndex','12860CYyCSi','document','modelCursor'];_0x2ec0=function(){return _0x6e08b9;};return _0x2ec0();}import{FootnotesStyleCommand as _0x5ed06e}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x26ea4b}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x528a77}from'../footnotestracker.js';import{FootnotesEditing as _0x32bd94}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x221393{static get[_0x276583(0x19c)](){const _0x582f61=_0x276583;return _0x582f61(0x151);}static get[_0x276583(0x14e)](){return[_0x32bd94,_0x528a77];}static get[_0x276583(0x199)](){return!0x0;}static get[_0x276583(0x159)](){return!0x0;}[_0x276583(0x171)](){const _0x453089=_0x276583,{editor:_0x43361d}=this;_0x43361d[_0x453089(0x1ae)][_0x453089(0x1a5)](_0x453089(0x1a7),_0x453089(0x176)),_0x43361d[_0x453089(0x1ae)][_0x453089(0x1a5)](_0x453089(0x177),0x1),_0x43361d[_0x453089(0x16d)][_0x453089(0x158)](_0x453089(0x17d),new _0x5ed06e(_0x43361d)),_0x43361d[_0x453089(0x16d)][_0x453089(0x158)](_0x453089(0x194),new _0x26ea4b(_0x43361d)),this[_0x453089(0x152)](),this[_0x453089(0x161)](),this[_0x453089(0x165)](),this[_0x453089(0x1ab)]();}[_0x276583(0x152)](){const _0x368a38=_0x276583,{editor:_0x15807c}=this,{schema:_0x2c319c}=_0x15807c[_0x368a38(0x182)];_0x2c319c[_0x368a38(0x197)](_0x368a38(0x155),{'allowAttributes':[_0x368a38(0x172),_0x368a38(0x174)]});}[_0x276583(0x161)](){const _0x1d019f=_0x276583,{editor:_0x33ff0e}=this,{conversion:_0x22ce5a,model:_0x27950f}=_0x33ff0e,{schema:_0x5dba07}=_0x27950f;_0x22ce5a[_0x1d019f(0x160)](_0x1d019f(0x1b1))[_0x1d019f(0x158)](_0x5691b4=>{const _0x47b7d1=_0x1d019f;_0x5691b4['on'](_0x47b7d1(0x16b),(_0x49e93e,_0x40b460,_0x83840b)=>{const _0x5bdd8c=_0x47b7d1,_0x103472=_0x40b460[_0x5bdd8c(0x162)],_0x251893=_0x40b460[_0x5bdd8c(0x17a)]?.[_0x5bdd8c(0x19b)];_0x103472[_0x5bdd8c(0x1ac)](_0x5bdd8c(0x188))&&_0x251893?.['is'](_0x5bdd8c(0x1a6),_0x5bdd8c(0x155))&&(function(_0x5025f5,_0x5b1d87,_0x3e40a5,_0x477c4a){const _0x1c8ef7=_0x5bdd8c;if(!_0x477c4a[_0x1c8ef7(0x16f)](_0x5b1d87,_0x1c8ef7(0x174)))return;let _0x447078=0x1;const _0x1f8787=_0x3e40a5[_0x1c8ef7(0x17f)][_0x1c8ef7(0x154)](_0x5025f5,{'attributes':_0x1c8ef7(0x175)});if(_0x1f8787){const _0x4dacda=Number[_0x1c8ef7(0x15e)](_0x5025f5[_0x1c8ef7(0x150)](_0x1c8ef7(0x175)),0xa);Number[_0x1c8ef7(0x192)](_0x4dacda)||(_0x447078=_0x4dacda);}!_0x1f8787&&_0x5b1d87[_0x1c8ef7(0x15a)](_0x1c8ef7(0x174))||_0x3e40a5[_0x1c8ef7(0x180)][_0x1c8ef7(0x164)](_0x1c8ef7(0x174),_0x447078,_0x5b1d87);}(_0x103472,_0x251893,_0x83840b,_0x5dba07),function(_0x66e00b,_0x3c1cc5,_0x209b28,_0x4eba94){const _0x560926=_0x5bdd8c;if(!_0x4eba94[_0x560926(0x16f)](_0x3c1cc5,_0x560926(0x172)))return;let _0x237249=_0x560926(0x176),_0x49a59f=!0x1;if(_0x209b28[_0x560926(0x17f)][_0x560926(0x154)](_0x66e00b,{'attributes':_0x560926(0x15b)})){const _0x1e4c22={0x1:_0x560926(0x176),'a':_0x560926(0x19d),'A':_0x560926(0x1af),'i':_0x560926(0x156),'I':_0x560926(0x16e)}[_0x66e00b[_0x560926(0x150)](_0x560926(0x15b))];_0x1e4c22&&(_0x237249=_0x1e4c22),_0x49a59f=!0x0;}_0x209b28[_0x560926(0x17f)][_0x560926(0x154)](_0x66e00b,{'styles':_0x560926(0x170)})&&(_0x237249=function(_0x5e20e1){const _0x4565d7=_0x560926;switch(_0x5e20e1){case _0x4565d7(0x19d):return _0x4565d7(0x196);case _0x4565d7(0x1af):return _0x4565d7(0x1a9);default:return _0x5e20e1;}}(_0x66e00b[_0x560926(0x173)](_0x560926(0x170))),_0x49a59f=!0x0),!_0x49a59f&&_0x3c1cc5[_0x560926(0x15a)](_0x560926(0x172))||_0x209b28[_0x560926(0x180)][_0x560926(0x164)](_0x560926(0x172),_0x237249,_0x3c1cc5);}(_0x103472,_0x251893,_0x83840b,_0x5dba07));});}),_0x22ce5a[_0x1d019f(0x160)](_0x1d019f(0x186))[_0x1d019f(0x158)](_0x3f7c7c=>{const _0x4622b5=_0x1d019f;_0x3f7c7c['on'](_0x4622b5(0x18d),(_0x51e130,_0x516562,_0x4c28e8)=>{const _0x57455d=_0x4622b5;if(!_0x4c28e8[_0x57455d(0x17f)][_0x57455d(0x154)](_0x516562[_0x57455d(0x15c)],_0x51e130[_0x57455d(0x185)]))return;const _0x41d156=M(_0x516562[_0x57455d(0x15c)],_0x4c28e8[_0x57455d(0x1a4)]),{attributeNewValue:_0x2d0d22}=_0x516562;null==_0x2d0d22||0x1===_0x2d0d22?_0x4c28e8[_0x57455d(0x180)][_0x57455d(0x183)](_0x57455d(0x175),_0x41d156):_0x4c28e8[_0x57455d(0x180)][_0x57455d(0x164)](_0x57455d(0x175),String(_0x2d0d22),_0x41d156);}),_0x3f7c7c['on'](_0x4622b5(0x1aa),(_0x15b744,_0x41e17a,_0x19df16)=>{const _0x5d9631=_0x4622b5;if(!_0x19df16[_0x5d9631(0x17f)][_0x5d9631(0x154)](_0x41e17a[_0x5d9631(0x15c)],_0x15b744[_0x5d9631(0x185)]))return;const _0x1d7230=M(_0x41e17a[_0x5d9631(0x15c)],_0x19df16[_0x5d9631(0x1a4)]),{attributeNewValue:_0x534825}=_0x41e17a;_0x534825&&_0x5d9631(0x176)!==_0x534825?_0x19df16[_0x5d9631(0x180)][_0x5d9631(0x184)](_0x5d9631(0x170),_0x534825,_0x1d7230):_0x19df16[_0x5d9631(0x180)][_0x5d9631(0x153)](_0x5d9631(0x170),_0x1d7230);});});}[_0x276583(0x1ab)](){const _0x314e65=_0x276583,{editor:_0x13deb8}=this,{model:_0x42e3c6}=_0x13deb8,_0x584498=_0x13deb8[_0x314e65(0x168)][_0x314e65(0x193)](_0x528a77),_0x1036eb=this[_0x314e65(0x1a8)](),_0x6aef2b=this[_0x314e65(0x163)]();_0x42e3c6[_0x314e65(0x179)][_0x314e65(0x15d)](_0x246d18=>{const _0x21b51a=_0x314e65,_0x46f998=_0x42e3c6[_0x21b51a(0x179)][_0x21b51a(0x18c)][_0x21b51a(0x14f)]();let _0x27679b=!0x1;for(const _0x1b4455 of _0x46f998){if(_0x21b51a(0x19f)!==_0x1b4455[_0x21b51a(0x15b)]||_0x21b51a(0x1a2)===_0x1b4455[_0x21b51a(0x185)])continue;const _0xc00bc0=_0x42e3c6[_0x21b51a(0x169)](_0x1b4455[_0x21b51a(0x1b0)][_0x21b51a(0x18e)]);for(const _0x575a4c of _0xc00bc0[_0x21b51a(0x1a1)]())_0x575a4c['is'](_0x21b51a(0x1a6),_0x21b51a(0x155))&&(!_0x575a4c[_0x21b51a(0x15a)](_0x21b51a(0x174))&&_0x42e3c6[_0x21b51a(0x181)][_0x21b51a(0x16f)](_0x575a4c,_0x21b51a(0x174))&&(_0x246d18[_0x21b51a(0x164)](_0x21b51a(0x174),_0x6aef2b,_0x575a4c),_0x27679b=!0x0),!_0x575a4c[_0x21b51a(0x15a)](_0x21b51a(0x172))&&_0x42e3c6[_0x21b51a(0x181)][_0x21b51a(0x16f)](_0x575a4c,_0x21b51a(0x172))&&(_0x246d18[_0x21b51a(0x164)](_0x21b51a(0x172),_0x1036eb,_0x575a4c),_0x27679b=!0x0));}return _0x27679b&&_0x584498[_0x21b51a(0x18b)](_0x246d18),_0x27679b;});}[_0x276583(0x165)](){const _0x386f9b=_0x276583,{editor:_0x2d8374}=this;_0x2d8374[_0x386f9b(0x168)][_0x386f9b(0x193)](_0x528a77)[_0x386f9b(0x18f)](_0x32ac0f=>this[_0x386f9b(0x190)](_0x32ac0f));}[_0x276583(0x1a8)](){const _0x2f693a=_0x276583;return this[_0x2f693a(0x1a3)][_0x2f693a(0x1ae)][_0x2f693a(0x193)](_0x2f693a(0x1a7));}[_0x276583(0x163)](){const _0x26ab47=_0x276583;return this[_0x26ab47(0x1a3)][_0x26ab47(0x1ae)][_0x26ab47(0x193)](_0x26ab47(0x177));}[_0x276583(0x190)]({container:_0x13871a,value:_0x1d677e,digits:_0x4fef6b}){const _0x26c409=_0x276583,_0x1ef458=_0x13871a[_0x26c409(0x150)](_0x26c409(0x172)),_0x2f239b=_0x13871a[_0x26c409(0x150)](_0x26c409(0x174)),_0x307284=Math[_0x26c409(0x19e)](_0x1d677e)+(_0x2f239b??0x1)-0x1;switch(_0x1ef458){case _0x26c409(0x19a):return function(_0x294b17,_0x2541e4){const _0xc63a69=_0x26c409;return String(_0x294b17)[_0xc63a69(0x167)](_0x2541e4,'0');}(_0x307284,Math[_0x26c409(0x15f)](0x2,_0x4fef6b));case _0x26c409(0x19d):case _0x26c409(0x196):return N(_0x307284,!0x1);case _0x26c409(0x1af):case _0x26c409(0x1a9):return N(_0x307284,!0x0);case _0x26c409(0x156):return X(_0x307284,!0x1);case _0x26c409(0x16e):return X(_0x307284,!0x0);default:return String(_0x307284);}}}function M(_0x1a5f40,_0x176a93){const _0x4d1d30=_0x276583,_0x52d390=_0x176a93[_0x4d1d30(0x1a0)](_0x1a5f40);return Array[_0x4d1d30(0x198)](_0x52d390[_0x4d1d30(0x191)]())[_0x4d1d30(0x17b)](_0x4763aa=>_0x4763aa['is'](_0x4d1d30(0x1a6),'ol')&&_0x4763aa[_0x4d1d30(0x1ac)](_0x4d1d30(0x188)));}function N(_0x5db746,_0x53d053){const _0x2e89fa=_0x276583;let _0x269604='',_0x3d6d4e=_0x5db746;for(;_0x3d6d4e>0x0;){const _0x126250=(_0x3d6d4e-0x1)%0x1a;_0x269604=String[_0x2e89fa(0x1b2)](0x61+_0x126250)+_0x269604,_0x3d6d4e=Math[_0x2e89fa(0x19e)]((_0x3d6d4e-0x1)/0x1a);}return _0x53d053?_0x269604[_0x2e89fa(0x16a)]():_0x269604;}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(_0x24f549,_0x33a147){const _0x3d734a=_0x276583;let _0x37808d='',_0x169d0a=_0x24f549;for(const {value:_0x487373,numeral:_0xd16967}of V)for(;_0x169d0a>=_0x487373;)_0x37808d+=_0xd16967,_0x169d0a-=_0x487373;return _0x33a147?_0x37808d:_0x37808d[_0x3d734a(0x18a)]();}
|
|
23
|
+
const _0x4b5e6b=_0x549e;function _0x549e(_0x30d93e,_0x267233){const _0x29a8c9=_0x29a8();return _0x549e=function(_0x549ef0,_0x2ec3d4){_0x549ef0=_0x549ef0-0x9b;let _0x1a1a92=_0x29a8c9[_0x549ef0];return _0x1a1a92;},_0x549e(_0x30d93e,_0x267233);}(function(_0xad44e8,_0x1e1f1e){const _0x3e9644=_0x549e,_0x154a10=_0xad44e8();while(!![]){try{const _0x15e49a=-parseInt(_0x3e9644(0xb8))/0x1*(parseInt(_0x3e9644(0xfe))/0x2)+-parseInt(_0x3e9644(0xb1))/0x3+-parseInt(_0x3e9644(0xa0))/0x4*(-parseInt(_0x3e9644(0xb7))/0x5)+parseInt(_0x3e9644(0xba))/0x6*(parseInt(_0x3e9644(0xf5))/0x7)+parseInt(_0x3e9644(0xdf))/0x8*(parseInt(_0x3e9644(0x9e))/0x9)+parseInt(_0x3e9644(0xab))/0xa*(parseInt(_0x3e9644(0xd2))/0xb)+-parseInt(_0x3e9644(0xd1))/0xc;if(_0x15e49a===_0x1e1f1e)break;else _0x154a10['push'](_0x154a10['shift']());}catch(_0x12b20e){_0x154a10['push'](_0x154a10['shift']());}}}(_0x29a8,0x80748));import{Plugin as _0x19c0ad}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x2792a5}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x398061}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x5d13cb}from'../footnotestracker.js';import{FootnotesEditing as _0x126d01}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x19c0ad{static get[_0x4b5e6b(0xfd)](){const _0x4e82d4=_0x4b5e6b;return _0x4e82d4(0xa2);}static get[_0x4b5e6b(0xf6)](){return[_0x126d01,_0x5d13cb];}static get[_0x4b5e6b(0xb5)](){return!0x0;}static get[_0x4b5e6b(0xf0)](){return!0x0;}[_0x4b5e6b(0xb2)](){const _0x490893=_0x4b5e6b,{editor:_0x5a3667}=this;_0x5a3667[_0x490893(0xff)][_0x490893(0xcb)](_0x490893(0xe9),_0x490893(0xbf)),_0x5a3667[_0x490893(0xff)][_0x490893(0xcb)](_0x490893(0xf7),0x1),_0x5a3667[_0x490893(0xe2)][_0x490893(0xe6)](_0x490893(0xb9),new _0x2792a5(_0x5a3667)),_0x5a3667[_0x490893(0xe2)][_0x490893(0xe6)](_0x490893(0xaf),new _0x398061(_0x5a3667)),this[_0x490893(0xc1)](),this[_0x490893(0xed)](),this[_0x490893(0xc7)](),this[_0x490893(0xc8)]();}[_0x4b5e6b(0xc1)](){const _0x167595=_0x4b5e6b,{editor:_0x172abd}=this,{schema:_0x1cacef}=_0x172abd[_0x167595(0xd8)];_0x1cacef[_0x167595(0xaa)](_0x167595(0xe3),{'allowAttributes':[_0x167595(0xac),_0x167595(0xa5)]});}[_0x4b5e6b(0xed)](){const _0x1715e3=_0x4b5e6b,{editor:_0x3c6d41}=this,{conversion:_0x1afdc4,model:_0x4cad2f}=_0x3c6d41,{schema:_0x310fd3}=_0x4cad2f;_0x1afdc4[_0x1715e3(0x9b)](_0x1715e3(0xe4))[_0x1715e3(0xe6)](_0x46627e=>{const _0xe46de5=_0x1715e3;_0x46627e['on'](_0xe46de5(0x9f),(_0x57317f,_0x334e1b,_0x19be87)=>{const _0x3709d3=_0xe46de5,_0x19902f=_0x334e1b[_0x3709d3(0xa7)],_0x186fa8=_0x334e1b[_0x3709d3(0xdc)]?.[_0x3709d3(0xf1)];_0x19902f[_0x3709d3(0xad)](_0x3709d3(0xd0))&&_0x186fa8?.['is'](_0x3709d3(0x101),_0x3709d3(0xe3))&&(function(_0x5b06d8,_0x1e7df6,_0xc7d94e,_0x2ab8c4){const _0x3254af=_0x3709d3;if(!_0x2ab8c4[_0x3254af(0x9d)](_0x1e7df6,_0x3254af(0xa5)))return;let _0x208737=0x1;const _0x2a9060=_0xc7d94e[_0x3254af(0xd7)][_0x3254af(0xae)](_0x5b06d8,{'attributes':_0x3254af(0xc9)});if(_0x2a9060){const _0x1f1194=Number[_0x3254af(0xa4)](_0x5b06d8[_0x3254af(0xbe)](_0x3254af(0xc9)),0xa);Number[_0x3254af(0xf3)](_0x1f1194)||(_0x208737=_0x1f1194);}!_0x2a9060&&_0x1e7df6[_0x3254af(0xc2)](_0x3254af(0xa5))||_0xc7d94e[_0x3254af(0xe5)][_0x3254af(0xcd)](_0x3254af(0xa5),_0x208737,_0x1e7df6);}(_0x19902f,_0x186fa8,_0x19be87,_0x310fd3),function(_0x4c42a6,_0x43b068,_0x53e0ae,_0x50df46){const _0x4b2d86=_0x3709d3;if(!_0x50df46[_0x4b2d86(0x9d)](_0x43b068,_0x4b2d86(0xac)))return;let _0x45e2f7=_0x4b2d86(0xbf),_0x15345b=!0x1;if(_0x53e0ae[_0x4b2d86(0xd7)][_0x4b2d86(0xae)](_0x4c42a6,{'attributes':_0x4b2d86(0xcc)})){const _0x28cf96={0x1:_0x4b2d86(0xbf),'a':_0x4b2d86(0xc3),'A':_0x4b2d86(0xe0),'i':_0x4b2d86(0xcf),'I':_0x4b2d86(0xbc)}[_0x4c42a6[_0x4b2d86(0xbe)](_0x4b2d86(0xcc))];_0x28cf96&&(_0x45e2f7=_0x28cf96),_0x15345b=!0x0;}_0x53e0ae[_0x4b2d86(0xd7)][_0x4b2d86(0xae)](_0x4c42a6,{'styles':_0x4b2d86(0xd6)})&&(_0x45e2f7=function(_0x10eda0){const _0x41b05a=_0x4b2d86;switch(_0x10eda0){case _0x41b05a(0xc3):return _0x41b05a(0xc5);case _0x41b05a(0xe0):return _0x41b05a(0xda);default:return _0x10eda0;}}(_0x4c42a6[_0x4b2d86(0x9c)](_0x4b2d86(0xd6))),_0x15345b=!0x0),!_0x15345b&&_0x43b068[_0x4b2d86(0xc2)](_0x4b2d86(0xac))||_0x53e0ae[_0x4b2d86(0xe5)][_0x4b2d86(0xcd)](_0x4b2d86(0xac),_0x45e2f7,_0x43b068);}(_0x19902f,_0x186fa8,_0x19be87,_0x310fd3));});}),_0x1afdc4[_0x1715e3(0x9b)](_0x1715e3(0xf4))[_0x1715e3(0xe6)](_0x584612=>{const _0x1fc318=_0x1715e3;_0x584612['on'](_0x1fc318(0xbd),(_0x30dfc7,_0x52c825,_0x1e4727)=>{const _0x556009=_0x1fc318;if(!_0x1e4727[_0x556009(0xd7)][_0x556009(0xae)](_0x52c825[_0x556009(0xc0)],_0x30dfc7[_0x556009(0xd4)]))return;const _0x4f358d=M(_0x52c825[_0x556009(0xc0)],_0x1e4727[_0x556009(0xc4)]),{attributeNewValue:_0x544426}=_0x52c825;null==_0x544426||0x1===_0x544426?_0x1e4727[_0x556009(0xe5)][_0x556009(0xf8)](_0x556009(0xc9),_0x4f358d):_0x1e4727[_0x556009(0xe5)][_0x556009(0xcd)](_0x556009(0xc9),String(_0x544426),_0x4f358d);}),_0x584612['on'](_0x1fc318(0xb6),(_0x375f2b,_0xe36b9f,_0x584756)=>{const _0x26171c=_0x1fc318;if(!_0x584756[_0x26171c(0xd7)][_0x26171c(0xae)](_0xe36b9f[_0x26171c(0xc0)],_0x375f2b[_0x26171c(0xd4)]))return;const _0x5cd54a=M(_0xe36b9f[_0x26171c(0xc0)],_0x584756[_0x26171c(0xc4)]),{attributeNewValue:_0xdea4aa}=_0xe36b9f;_0xdea4aa&&_0x26171c(0xbf)!==_0xdea4aa?_0x584756[_0x26171c(0xe5)][_0x26171c(0xa3)](_0x26171c(0xd6),_0xdea4aa,_0x5cd54a):_0x584756[_0x26171c(0xe5)][_0x26171c(0xea)](_0x26171c(0xd6),_0x5cd54a);});});}[_0x4b5e6b(0xc8)](){const _0x20b055=_0x4b5e6b,{editor:_0x4aaf65}=this,{model:_0x200bb5}=_0x4aaf65,_0x4f20ed=_0x4aaf65[_0x20b055(0xa9)][_0x20b055(0xd9)](_0x5d13cb),_0x2f0406=this[_0x20b055(0xdd)](),_0x161d70=this[_0x20b055(0xca)]();_0x200bb5[_0x20b055(0xb3)][_0x20b055(0xf2)](_0x1a6e55=>{const _0x4bfbd0=_0x20b055,_0x3311b2=_0x200bb5[_0x4bfbd0(0xb3)][_0x4bfbd0(0xbb)][_0x4bfbd0(0xfa)]();let _0x1b0889=!0x1;for(const _0xb15819 of _0x3311b2){if(_0x4bfbd0(0xe8)!==_0xb15819[_0x4bfbd0(0xcc)]||_0x4bfbd0(0xf9)===_0xb15819[_0x4bfbd0(0xd4)])continue;const _0x3a604c=_0x200bb5[_0x4bfbd0(0xb4)](_0xb15819[_0x4bfbd0(0xde)][_0x4bfbd0(0xc6)]);for(const _0x5f2f3e of _0x3a604c[_0x4bfbd0(0x100)]())_0x5f2f3e['is'](_0x4bfbd0(0x101),_0x4bfbd0(0xe3))&&(!_0x5f2f3e[_0x4bfbd0(0xc2)](_0x4bfbd0(0xa5))&&_0x200bb5[_0x4bfbd0(0xec)][_0x4bfbd0(0x9d)](_0x5f2f3e,_0x4bfbd0(0xa5))&&(_0x1a6e55[_0x4bfbd0(0xcd)](_0x4bfbd0(0xa5),_0x161d70,_0x5f2f3e),_0x1b0889=!0x0),!_0x5f2f3e[_0x4bfbd0(0xc2)](_0x4bfbd0(0xac))&&_0x200bb5[_0x4bfbd0(0xec)][_0x4bfbd0(0x9d)](_0x5f2f3e,_0x4bfbd0(0xac))&&(_0x1a6e55[_0x4bfbd0(0xcd)](_0x4bfbd0(0xac),_0x2f0406,_0x5f2f3e),_0x1b0889=!0x0));}return _0x1b0889&&_0x4f20ed[_0x4bfbd0(0xdb)](_0x1a6e55),_0x1b0889;});}[_0x4b5e6b(0xc7)](){const _0x56e5d1=_0x4b5e6b,{editor:_0x1eaeb3}=this;_0x1eaeb3[_0x56e5d1(0xa9)][_0x56e5d1(0xd9)](_0x5d13cb)[_0x56e5d1(0xfc)](_0x41cf62=>this[_0x56e5d1(0xef)](_0x41cf62));}[_0x4b5e6b(0xdd)](){const _0x27cf3d=_0x4b5e6b;return this[_0x27cf3d(0xa8)][_0x27cf3d(0xff)][_0x27cf3d(0xd9)](_0x27cf3d(0xe9));}[_0x4b5e6b(0xca)](){const _0x336f22=_0x4b5e6b;return this[_0x336f22(0xa8)][_0x336f22(0xff)][_0x336f22(0xd9)](_0x336f22(0xf7));}[_0x4b5e6b(0xef)]({container:_0x840403,value:_0x7faa83,digits:_0x25cff5}){const _0x21a7c4=_0x4b5e6b,_0x31774c=_0x840403[_0x21a7c4(0xbe)](_0x21a7c4(0xac)),_0x101f6b=_0x840403[_0x21a7c4(0xbe)](_0x21a7c4(0xa5)),_0x50b504=Math[_0x21a7c4(0xa6)](_0x7faa83)+(_0x101f6b??0x1)-0x1;switch(_0x31774c){case _0x21a7c4(0xce):return function(_0x2e737c,_0x16a192){const _0x4268b8=_0x21a7c4;return String(_0x2e737c)[_0x4268b8(0xe1)](_0x16a192,'0');}(_0x50b504,Math[_0x21a7c4(0xee)](0x2,_0x25cff5));case _0x21a7c4(0xc3):case _0x21a7c4(0xc5):return N(_0x50b504,!0x1);case _0x21a7c4(0xe0):case _0x21a7c4(0xda):return N(_0x50b504,!0x0);case _0x21a7c4(0xcf):return X(_0x50b504,!0x1);case _0x21a7c4(0xbc):return X(_0x50b504,!0x0);default:return String(_0x50b504);}}}function _0x29a8(){const _0x2b1f42=['getChildren','FootnotesPropertiesEditing','setStyle','parseInt','footnotesListStart','floor','viewItem','editor','plugins','extend','4380WQVzQf','footnotesListStyle','hasClass','consume','footnotesStart','find','1247718DzFVZi','init','document','createRangeOn','isOfficialPlugin','attribute:footnotesListStyle:footnotesDefinitions','4761895OCGXQe','2SJARQX','footnotesStyle','4362GfxrCS','differ','upper-roman','attribute:footnotesListStart:footnotesDefinitions','getAttribute','decimal','item','_defineSchema','hasAttribute','lower-alpha','mapper','lower-latin','nodeAfter','_defineFormatter','_definePostfixer','start','_getDefaultStartIndex','define','type','setAttribute','decimal-leading-zero','lower-roman','footnotes-list','11844984sRVGuC','19679OjYJRU','from','name','fromCharCode','list-style-type','consumable','model','get','upper-latin','_updateFootnotesCounters','modelCursor','_getDefaultListStyle','position','56usYNHL','upper-alpha','padStart','commands','footnotesDefinitions','upcast','writer','add','toLowerCase','insert','footnotes.footnotesProperties.defaultListStyle','removeStyle','toUpperCase','schema','_defineConverters','max','_formatFootnoteListValue','isPremiumPlugin','parent','registerPostFixer','isNaN','downcast','1141nCDuOt','requires','footnotes.footnotesProperties.defaultStartIndex','removeAttribute','$text','getChanges','toViewElement','setFootnoteFormatter','pluginName','941652uhApGW','config','getItems','element','for','getStyle','checkAttribute','1306710djBSmS','element:ol','4bQqdhf'];_0x29a8=function(){return _0x2b1f42;};return _0x29a8();}function M(_0x190fe0,_0x18ca0c){const _0x484d9e=_0x4b5e6b,_0x498c6e=_0x18ca0c[_0x484d9e(0xfb)](_0x190fe0);return Array[_0x484d9e(0xd3)](_0x498c6e[_0x484d9e(0xa1)]())[_0x484d9e(0xb0)](_0x546d11=>_0x546d11['is'](_0x484d9e(0x101),'ol')&&_0x546d11[_0x484d9e(0xad)](_0x484d9e(0xd0)));}function N(_0x47d2ba,_0x5c79be){const _0x54ed90=_0x4b5e6b;let _0x52f0f7='',_0x529d7a=_0x47d2ba;for(;_0x529d7a>0x0;){const _0x371c8b=(_0x529d7a-0x1)%0x1a;_0x52f0f7=String[_0x54ed90(0xd5)](0x61+_0x371c8b)+_0x52f0f7,_0x529d7a=Math[_0x54ed90(0xa6)]((_0x529d7a-0x1)/0x1a);}return _0x5c79be?_0x52f0f7[_0x54ed90(0xeb)]():_0x52f0f7;}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(_0x1dd3d5,_0x29e156){const _0x38ba37=_0x4b5e6b;let _0x11b8e1='',_0x1f4e77=_0x1dd3d5;for(const {value:_0x5d0474,numeral:_0x122943}of V)for(;_0x1f4e77>=_0x5d0474;)_0x11b8e1+=_0x122943,_0x1f4e77-=_0x5d0474;return _0x29e156?_0x11b8e1:_0x11b8e1[_0x38ba37(0xe7)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x3d21ee,ButtonView as _0x54c4ae,ContextualBalloon as _0x53ec12,createDropdown as _0x46a2e2}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x4f7ec0}from'ckeditor5/src/widget.js';import{Plugin as _0x1e80bd}from'ckeditor5/src/core.js';import{IconFootnote as _0x809145,IconListStyleDecimal as _0x1c1181,IconListStyleDecimalLeadingZero as _0x24bbce,IconListStyleLowerLatin as _0x413c57,IconListStyleLowerRoman as _0x4cbbd4,IconListStyleUpperLatin as _0x22bce9,IconListStyleUpperRoman as _0x320c93}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x46bad7}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x3055ae}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x1e80bd{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x53ec12,_0x4f7ec0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5673d1}=this,{componentFactory:_0x24ff1c}=_0x5673d1['ui'];_0x5673d1['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x24ff1c['add']('footnotesStyle',function(_0x3c6060){return _0x2439f2=>{const {t:t}=_0x2439f2,_0x18df4f=_0x3c6060['commands']['get']('footnotesStyle'),_0xaa4d48=_0x46a2e2(_0x2439f2),{buttonView:_0x5b9415}=_0xaa4d48;return _0xaa4d48['class']='ck-footnotes-styles-dropdown',_0xaa4d48['bind']('isEnabled')['to'](_0x18df4f,'isEnabled'),_0x5b9415['set']({'label':t('Footnotes\x20style'),'icon':_0x809145,'tooltip':!0x0}),_0xaa4d48['once']('change:isOpen',()=>{const _0x251cad=function({editor:_0x396804,dropdownView:_0x3119df}){const {t:t}=_0x396804['locale'],_0x255f76=t('Footnotes\x20definitions\x20styles'),_0x452b33=function(_0x501aed){const t=_0x501aed['locale']['t'],_0x1bbac9=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1c1181},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x24bbce},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4cbbd4},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x320c93},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x413c57},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x22bce9}];return _0x1bbac9['map'](function(_0x1d6511){const _0x591b93=_0x1d6511['locale'];return({label:_0x2717a4,icon:_0x4ffb5c,tooltip:_0x4bca3c,style:_0x4d405d})=>{const _0x3e57ca=_0x1d6511['commands']['get']('footnotesStyle'),_0x27f336=new _0x54c4ae(_0x591b93);return _0x27f336['set']({'label':_0x2717a4,'icon':_0x4ffb5c,'tooltip':_0x4bca3c}),_0x27f336['bind']('isOn')['to'](_0x3e57ca,'value',_0x572635=>_0x572635===_0x4d405d),_0x27f336['bind']('isEnabled')['to'](_0x3e57ca,'isEnabled'),_0x27f336['on']('execute',()=>{_0x1d6511['execute']('footnotesStyle',{'value':_0x4d405d}),_0x1d6511['editing']['view']['focus']();}),_0x27f336;};}(_0x501aed));}(_0x396804),_0x4761ed=new _0x46bad7(_0x396804['locale'],{'styleGridAriaLabel':_0x255f76,'styleButtonViews':_0x452b33}),_0x8955b2=_0x396804['commands']['get']('footnotesStart');return _0x4761ed['startIndexFieldView']['bind']('isEnabled')['to'](_0x8955b2),_0x4761ed['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x8955b2),_0x4761ed['on']('footnotesListStart',(_0x1c1a12,_0x3ff3bf)=>{_0x396804['execute']('footnotesStart',{'value':_0x3ff3bf['startIndex']});}),_0x4761ed['delegate']('execute')['to'](_0x3119df),_0x4761ed;}({'editor':_0x3c6060,'dropdownView':_0xaa4d48});_0xaa4d48['panelView']['children']['add'](_0x251cad);}),_0xaa4d48;};}(_0x5673d1));}['afterInit'](){const {editor:_0x24978e}=this,{t:t}=_0x24978e['locale'],_0x1f3a02=_0x24978e['plugins']['get'](_0x4f7ec0),{defaultPositions:_0x429703}=_0x3d21ee;_0x1f3a02['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x24978e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x28cf96=>{let _0x57b8ed=_0x28cf96['getFirstPosition']()?.['parent'];return _0x57b8ed?.['is']('$text')&&(_0x57b8ed=_0x57b8ed['parent']),_0x57b8ed?.['is']('element')?_0x57b8ed['findAncestor'](_0x3055ae):null;},'positions':[_0x429703['southArrowNorth'],_0x429703['southArrowNorthMiddleWest'],_0x429703['southArrowNorthMiddleEast'],_0x429703['southArrowNorthWest'],_0x429703['southArrowNorthEast'],_0x429703['northArrowSouth'],_0x429703['northArrowSouthMiddleWest'],_0x429703['northArrowSouthMiddleEast'],_0x429703['northArrowSouthWest'],_0x429703['northArrowSouthEast'],_0x429703['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x395a16,View as _0x433f92,ViewCollection as _0x2f1e0f,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x433f92{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x2f1e0f();['focusCycler'];constructor(_0x3fb6e3,{styleButtonViews:_0x47f487,styleGridAriaLabel:_0x238e5a}){super(_0x3fb6e3),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x47f487,_0x238e5a),[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 _0x12ad6b of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x12ad6b['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x8f788f=_0xb9f26c=>_0xb9f26c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x8f788f),this['keystrokes']['set']('arrowleft',_0x8f788f),this['keystrokes']['set']('arrowup',_0x8f788f),this['keystrokes']['set']('arrowdown',_0x8f788f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x736a2c,_0x297a78){const _0x2c3035=new _0x433f92(this['locale']);return _0x2c3035['children']=_0x2c3035['createCollection'](),_0x2c3035['children']['addMany'](_0x736a2c),_0x2c3035['setTemplate']({'tag':'div','attributes':{'aria-label':_0x297a78,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2c3035['children']}),_0x2c3035['children']['delegate']('execute')['to'](this),_0x2c3035['focus']=function(){for(const _0x4d0fef of this['children'])if(_0x4d0fef instanceof _0x395a16&&_0x4d0fef['isOn'])return void _0x4d0fef['focus']();this['children']['first']['focus']();},_0x2c3035['focusTracker']=new rt(),_0x2c3035['keystrokes']=new nt(),_0x2c3035['render'](),_0x2c3035['keystrokes']['listenTo'](_0x2c3035['element']),this['children']['add'](_0x2c3035),_0x2c3035;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3d63a3=this['_createStartIndexPropertyView'](),_0x4fac12=[_0x3d63a3],_0x32d55c=new it(this['locale'],_0x4fac12);return _0x32d55c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x32d55c['buttonView']['bind']('isEnabled')['toMany'](_0x4fac12,'isEnabled',(..._0x2f0747)=>_0x2f0747['some'](_0x599750=>_0x599750)),_0x32d55c['buttonView']['on']('change:isEnabled',(_0x3a6d3a,_0x1370b2,_0xe75054)=>{_0xe75054||(_0x32d55c['isCollapsed']=!0x0);}),this['children']['add'](_0x32d55c),[_0x3d63a3,_0x32d55c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3bedba=new et(this['locale'],ot);return _0x3bedba['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3bedba['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3bedba['fieldView']['on']('input',()=>{const _0x1f52a=_0x3bedba['fieldView']['element'],_0x45e79c=_0x1f52a['valueAsNumber'];Number['isNaN'](_0x45e79c)?_0x3bedba['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1f52a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x45e79c}):_0x3bedba['errorText']=t(_0x45e79c<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3bedba;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1b9a54=_0x371d;function _0x1c00(){var _0x332676=['24LTCozV','20766768BIQPJZ','40zZttcw','3435HkiQCY','11AJCIVT','167505IfIFyU','85681KxJBlw','isOfficialPlugin','88LSxVJW','1132268lIhnQa','326IhxOFr','FootnotesProperties','64988ssgBUV','isPremiumPlugin','2436201ttJiuC','pluginName','requires'];_0x1c00=function(){return _0x332676;};return _0x1c00();}(function(_0x190948,_0x1da377){var _0x319e6f=_0x371d,_0xb51f6e=_0x190948();while(!![]){try{var _0x48d3c3=parseInt(_0x319e6f(0x1a8))/0x1+parseInt(_0x319e6f(0x19b))/0x2*(parseInt(_0x319e6f(0x1a5))/0x3)+-parseInt(_0x319e6f(0x1ab))/0x4+-parseInt(_0x319e6f(0x1a7))/0x5*(parseInt(_0x319e6f(0x1a2))/0x6)+parseInt(_0x319e6f(0x19d))/0x7*(parseInt(_0x319e6f(0x1aa))/0x8)+-parseInt(_0x319e6f(0x19f))/0x9*(parseInt(_0x319e6f(0x1a4))/0xa)+parseInt(_0x319e6f(0x1a6))/0xb*(parseInt(_0x319e6f(0x1a3))/0xc);if(_0x48d3c3===_0x1da377)break;else _0xb51f6e['push'](_0xb51f6e['shift']());}catch(_0x13a129){_0xb51f6e['push'](_0xb51f6e['shift']());}}}(_0x1c00,0x93bf9));function _0x371d(_0x4d3a49,_0x4a1499){var _0x1c0069=_0x1c00();return _0x371d=function(_0x371d12,_0x12bd91){_0x371d12=_0x371d12-0x19b;var _0x31aec2=_0x1c0069[_0x371d12];return _0x31aec2;},_0x371d(_0x4d3a49,_0x4a1499);}import{Plugin as _0x1e7466}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x44e3c2}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0xd49282}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x1e7466{static get[_0x1b9a54(0x1a0)](){var _0x3b80cb=_0x1b9a54;return _0x3b80cb(0x19c);}static get[_0x1b9a54(0x1a1)](){return[_0x44e3c2,_0xd49282];}static get[_0x1b9a54(0x1a9)](){return!0x0;}static get[_0x1b9a54(0x19e)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x482b29=_0x4a01;(function(_0x4769c5,_0x2d81e1){const _0x290db2=_0x4a01,_0x262bdb=_0x4769c5();while(!![]){try{const _0xe85e91=-parseInt(_0x290db2(0x7e))/0x1*(-parseInt(_0x290db2(0xc4))/0x2)+-parseInt(_0x290db2(0xc7))/0x3*(parseInt(_0x290db2(0x81))/0x4)+-parseInt(_0x290db2(0xbc))/0x5*(-parseInt(_0x290db2(0xcd))/0x6)+parseInt(_0x290db2(0xe3))/0x7*(-parseInt(_0x290db2(0xbb))/0x8)+parseInt(_0x290db2(0xad))/0x9+-parseInt(_0x290db2(0xb4))/0xa+-parseInt(_0x290db2(0xc1))/0xb*(-parseInt(_0x290db2(0xbf))/0xc);if(_0xe85e91===_0x2d81e1)break;else _0x262bdb['push'](_0x262bdb['shift']());}catch(_0x14b24c){_0x262bdb['push'](_0x262bdb['shift']());}}}(_0x14fb,0x847af));import{Plugin as _0x2d4f10}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x15e515}from'./modelelementtracker.js';function _0x4a01(_0x4ae157,_0x5603c9){const _0x14fb27=_0x14fb();return _0x4a01=function(_0x4a01c2,_0x5913f0){_0x4a01c2=_0x4a01c2-0x7e;let _0x431cac=_0x14fb27[_0x4a01c2];return _0x431cac;},_0x4a01(_0x4ae157,_0x5603c9);}export class FootnotesTracker extends _0x2d4f10{[_0x482b29(0x99)]=[];[_0x482b29(0xa9)]=null;[_0x482b29(0xc6)]=null;[_0x482b29(0x95)];[_0x482b29(0xa0)];[_0x482b29(0xc0)];static get[_0x482b29(0xd0)](){const _0x3f2695=_0x482b29;return _0x3f2695(0x98);}static get[_0x482b29(0x82)](){return!0x0;}static get[_0x482b29(0xd3)](){return!0x0;}constructor(_0x372a73){const _0x285723=_0x482b29;super(_0x372a73),this[_0x285723(0x95)]=new _0x15e515(this[_0x285723(0xa6)][_0x285723(0x8d)],{'elementName':_0x285723(0x8e),'getElementKey':()=>_0x285723(0xcb)}),this[_0x285723(0xa0)]=new _0x15e515(this[_0x285723(0xa6)][_0x285723(0x8d)],{'elementName':_0x285723(0x9f),'getElementKey':_0x5e31f1=>_0x5e31f1[_0x285723(0xdb)](_0x285723(0xdf))}),this[_0x285723(0xc0)]=new _0x15e515(this[_0x285723(0xa6)][_0x285723(0x8d)],{'elementName':_0x285723(0xb8),'getElementKey':_0x23b8b0=>_0x23b8b0[_0x285723(0xdb)](_0x285723(0xdf))});}[_0x482b29(0x83)](){const _0xc2a880=_0x482b29,{editor:_0x5aa66c}=this,{model:_0x23545e,data:_0x5bfa07}=_0x5aa66c;_0x23545e[_0xc2a880(0xb9)][_0xc2a880(0x93)](_0x4c5c3a=>{const _0x112f6c=_0xc2a880,_0x1fff14=_0x23545e[_0x112f6c(0xb9)][_0x112f6c(0x8c)][_0x112f6c(0xd9)]();let _0x1f1dbd=!0x1;return this[_0x112f6c(0x97)](_0x4c5c3a,_0x1fff14)&&(_0x1f1dbd=!0x0),this[_0x112f6c(0xa3)](_0x4c5c3a,_0x1fff14)&&(_0x1f1dbd=!0x0),this[_0x112f6c(0xd2)](_0x4c5c3a,_0x1fff14)&&(_0x1f1dbd=!0x0),this[_0x112f6c(0xaa)](_0x4c5c3a)&&(_0x1f1dbd=!0x0),this[_0x112f6c(0xc3)](_0x4c5c3a)&&(_0x1f1dbd=!0x0),this[_0x112f6c(0xcc)](_0x4c5c3a)&&(_0x1f1dbd=!0x0),_0x1f1dbd;}),this[_0xc2a880(0x88)](_0x23545e[_0xc2a880(0xb9)],_0xc2a880(0x85),()=>{const _0x3460aa=_0xc2a880;_0x23545e[_0x3460aa(0x9b)]({'isUndoable':!0x1},_0xffc7d5=>{const _0x4d69da=_0x3460aa;this[_0x4d69da(0x9d)](_0xffc7d5);});},{'priority':_0xc2a880(0xc8)}),this[_0xc2a880(0x88)](_0x5bfa07,_0xc2a880(0xaf),()=>{const _0x5044bb=_0xc2a880;this[_0x5044bb(0x99)]=[],this[_0x5044bb(0x95)][_0x5044bb(0xb6)](),this[_0x5044bb(0xa0)][_0x5044bb(0xb6)](),this[_0x5044bb(0xc0)][_0x5044bb(0xb6)]();},{'priority':_0xc2a880(0x8b)});}[_0x482b29(0xba)](){const _0x4e3273=_0x482b29;return this[_0x4e3273(0xa9)];}[_0x482b29(0xa2)](_0x14edb9){const _0x33233a=_0x482b29;return this[_0x33233a(0x99)][_0x33233a(0xe2)](_0x49e3ee=>_0x49e3ee['id']===_0x14edb9)||null;}[_0x482b29(0xce)](){const _0x36316f=_0x482b29;return Array[_0x36316f(0x86)](this[_0x36316f(0x99)]);}[_0x482b29(0xe1)](){const _0x1fef77=_0x482b29;return this[_0x1fef77(0xc6)];}[_0x482b29(0xd4)](_0x564bc9){const _0x1bef83=_0x482b29;this[_0x1bef83(0xc6)]=_0x564bc9;}[_0x482b29(0xb0)](_0x3c29db,_0x594857=0x0){const _0x39ee41=_0x482b29;let _0x48e524=!0x1;for(let _0x5c2958=_0x594857;_0x5c2958<this[_0x39ee41(0x99)][_0x39ee41(0xdd)];_0x5c2958++)this[_0x39ee41(0xb2)](_0x3c29db,_0x5c2958)&&(_0x48e524=!0x0);return _0x48e524;}[_0x482b29(0xae)](_0x478b2b,_0x9c2580){const _0x20e473=_0x482b29,_0x1fa378=_0x478b2b[_0x20e473(0x91)](_0x20e473(0x8e),{});return _0x478b2b[_0x20e473(0xd6)](_0x1fa378,_0x9c2580),this[_0x20e473(0xa9)]=_0x1fa378,_0x1fa378;}[_0x482b29(0x9d)](_0x57cff6){const _0x752984=_0x482b29;if(!this[_0x752984(0x99)][_0x752984(0xdd)]||this[_0x752984(0xa9)])return;const _0x19d36e=this[_0x752984(0x99)][0x0][_0x752984(0x7f)][_0x752984(0xb5)],_0x3645bc=this[_0x752984(0xae)](_0x57cff6,_0x19d36e);for(const _0x829c4b of this[_0x752984(0x99)])_0x829c4b[_0x752984(0x94)][_0x752984(0xa4)]||_0x57cff6[_0x752984(0x8f)](_0x829c4b[_0x752984(0x94)],_0x3645bc,_0x752984(0xd8));this[_0x752984(0xb0)](_0x57cff6);}[_0x482b29(0x97)](_0x193f52,_0x3653b5){const _0x919f23=_0x482b29;let _0x38d0ad=!0x1;const {inserted:_0x3c457d,removed:_0x3a1cbb,moved:_0x5e1884}=this[_0x919f23(0x95)][_0x919f23(0xd9)](_0x3653b5);if(_0x5e1884[_0x919f23(0xdd)]&&(this[_0x919f23(0xa9)]=_0x5e1884[0x0]),_0x3c457d[_0x919f23(0xdd)]){if(_0x3c457d[_0x919f23(0xdd)]>0x1||this[_0x919f23(0xa9)]&&_0x3c457d[_0x919f23(0x96)](_0x33848b=>_0x33848b!==this[_0x919f23(0xa9)])){const _0x234a48=_0x193f52[_0x919f23(0x91)](_0x919f23(0x8e),{}),_0x775cde=[];this[_0x919f23(0xa9)]&&_0x775cde[_0x919f23(0xac)](this[_0x919f23(0xa9)]),_0x775cde[_0x919f23(0xac)](..._0x3c457d),_0x193f52[_0x919f23(0x8f)](_0x234a48,_0x775cde[0x0],_0x919f23(0x92));for(const _0x2ab926 of _0x775cde)_0x193f52[_0x919f23(0xcf)](_0x193f52[_0x919f23(0xd1)](_0x2ab926),_0x193f52[_0x919f23(0x87)](_0x234a48,_0x919f23(0xd8))),_0x193f52[_0x919f23(0xc2)](_0x2ab926);this[_0x919f23(0xa9)]=_0x234a48,this[_0x919f23(0xb0)](_0x193f52),_0x38d0ad=!0x0;}else this[_0x919f23(0xa9)]=_0x3c457d[0x0];}if(_0x3a1cbb[_0x919f23(0xdd)]&&_0x919f23(0xdc)===this[_0x919f23(0xa9)]?.[_0x919f23(0xb5)][_0x919f23(0xbd)]){for(const _0x23f164 of this[_0x919f23(0x99)])_0x193f52[_0x919f23(0xc2)](_0x23f164[_0x919f23(0x7f)]),_0x38d0ad=!0x0;this[_0x919f23(0x99)]=[],this[_0x919f23(0xa9)]=null;}return _0x38d0ad;}[_0x482b29(0xa3)](_0x30f436,_0x130826){const _0x37e6fa=_0x482b29;let _0x29ac31=!0x1;const _0x306d9b=this[_0x37e6fa(0xa6)][_0x37e6fa(0x89)][_0x37e6fa(0x8a)](_0x37e6fa(0xa8)),{inserted:_0x115ca5,moved:_0x955f8b}=this[_0x37e6fa(0xc0)][_0x37e6fa(0xd9)](_0x130826);for(const _0x2c7312 of[..._0x955f8b,..._0x115ca5]){const _0x409831=_0x2c7312[_0x37e6fa(0xdb)](_0x37e6fa(0xdf)),_0x4bbc3b=this[_0x37e6fa(0xa2)](_0x409831);_0x4bbc3b&&(_0x4bbc3b[_0x37e6fa(0x94)]=_0x2c7312),_(_0x30f436,_0x306d9b,_0x2c7312)&&(_0x29ac31=!0x0);}return _0x29ac31;}[_0x482b29(0xd2)](_0x4b5f9b,_0x2af047){const _0x3c12d6=_0x482b29;let _0x144d3b=!0x1;const {removed:_0x553d49,inserted:_0x1196be,moved:_0x439082}=this[_0x3c12d6(0xa0)][_0x3c12d6(0xd9)](_0x2af047);for(const _0x11a822 of _0x553d49)this[_0x3c12d6(0xa7)](_0x4b5f9b,_0x11a822)&&(_0x144d3b=!0x0);for(const _0x3674b3 of _0x1196be)this[_0x3c12d6(0xc9)](_0x4b5f9b,_0x3674b3)&&(_0x144d3b=!0x0);for(const _0x5d4fab of _0x439082)this[_0x3c12d6(0xa1)](_0x4b5f9b,_0x5d4fab)&&(_0x144d3b=!0x0);return _0x144d3b;}[_0x482b29(0xc3)](_0x30717d){const _0x231d3c=_0x482b29;if(!this[_0x231d3c(0xa9)])return!0x1;let _0xbd446f=!0x1;if(this[_0x231d3c(0xa9)][_0x231d3c(0xbe)]!==this[_0x231d3c(0x99)][_0x231d3c(0xdd)]){const _0x504883=[];for(const _0x1d4dc4 of this[_0x231d3c(0xa9)][_0x231d3c(0xb3)]()){const _0x377d1d=_0x1d4dc4[_0x231d3c(0xdb)](_0x231d3c(0xdf));this[_0x231d3c(0xa2)](_0x377d1d)||(_0x504883[_0x231d3c(0xe4)](_0x1d4dc4),_0xbd446f=!0x0);}for(const _0x50a68a of _0x504883)_0x30717d[_0x231d3c(0xc2)](_0x50a68a);}const _0x5d6446=new Set(),_0x30ed52=[];for(const _0x2a051a of this[_0x231d3c(0xa9)][_0x231d3c(0xb3)]()){const _0x180383=_0x2a051a[_0x231d3c(0xdb)](_0x231d3c(0xdf));_0x5d6446[_0x231d3c(0x9c)](_0x180383)?(_0x30ed52[_0x231d3c(0xe4)](_0x2a051a),_0xbd446f=!0x0):_0x5d6446[_0x231d3c(0x9a)](_0x180383);}for(const _0x5d40d5 of _0x30ed52)_0x30717d[_0x231d3c(0xc2)](_0x5d40d5);return this[_0x231d3c(0xa9)][_0x231d3c(0xbe)]||(_0x30717d[_0x231d3c(0xc2)](this[_0x231d3c(0xa9)]),this[_0x231d3c(0xa9)]=null,_0xbd446f=!0x0),_0xbd446f;}[_0x482b29(0xc9)](_0x34aa79,_0x61c62f){const _0x43f295=_0x482b29;if(this[_0x43f295(0x99)][_0x43f295(0xe2)](_0x381321=>_0x381321[_0x43f295(0x7f)]===_0x61c62f))return!0x1;let _0xd7c0a4=!0x1;const _0x2893f3=_0x61c62f[_0x43f295(0xdb)](_0x43f295(0xdf)),_0x4e6d5c=this[_0x43f295(0x99)][_0x43f295(0x84)](_0x1f65b4=>_0x1f65b4['id']===_0x2893f3);-0x1!==_0x4e6d5c&&(_0x34aa79[_0x43f295(0xc2)](this[_0x43f295(0x99)][_0x4e6d5c][_0x43f295(0x7f)]),this[_0x43f295(0x99)][_0x43f295(0xd5)](_0x4e6d5c,0x1),_0xd7c0a4=!0x0);let _0x225ab5=this[_0x43f295(0xa9)]?function(_0x5da84d,_0x351040){const _0x4624bb=_0x43f295;for(const _0x249a96 of _0x5da84d[_0x4624bb(0xb3)]())if(_0x249a96[_0x4624bb(0xdb)](_0x4624bb(0xdf))===_0x351040)return _0x249a96;return null;}(this[_0x43f295(0xa9)],_0x2893f3):null;_0x225ab5||(_0x225ab5=_0x34aa79[_0x43f295(0x91)](_0x43f295(0xb8),{'footnoteId':_0x2893f3}),this[_0x43f295(0xa9)]&&(_0x34aa79[_0x43f295(0x8f)](_0x225ab5,this[_0x43f295(0xa9)],_0x43f295(0xd8)),_0xd7c0a4=!0x0));const _0x4c30d0={'id':_0x2893f3,'reference':_0x61c62f,'definition':_0x225ab5},_0x564dda=I(this[_0x43f295(0xa6)][_0x43f295(0x8d)],this[_0x43f295(0x99)],_0x61c62f);this[_0x43f295(0x99)][_0x43f295(0xd5)](_0x564dda,0x0,_0x4c30d0);let _0x370be4=_0x564dda;return-0x1!==_0x4e6d5c&&(_0x370be4=Math[_0x43f295(0xda)](_0x564dda,_0x4e6d5c)),this[_0x43f295(0xb0)](_0x34aa79,_0x370be4)&&(_0xd7c0a4=!0x0),_0xd7c0a4;}[_0x482b29(0xa7)](_0x26509a,_0x21dde7){const _0x4ac046=_0x482b29,_0x4620d0=this[_0x4ac046(0x99)][_0x4ac046(0x84)](_0x49d86e=>_0x49d86e['id']===_0x21dde7);if(-0x1===_0x4620d0)return!0x1;let _0x4df11e=!0x1;const _0x29e0eb=this[_0x4ac046(0x99)][_0x4620d0];return _0x4ac046(0xdc)!==_0x29e0eb[_0x4ac046(0x94)][_0x4ac046(0xb5)][_0x4ac046(0xbd)]&&(_0x26509a[_0x4ac046(0xc2)](_0x29e0eb[_0x4ac046(0x94)]),_0x4df11e=!0x0),this[_0x4ac046(0x99)][_0x4ac046(0xd5)](_0x4620d0,0x1),this[_0x4ac046(0xb0)](_0x26509a,_0x4620d0)&&(_0x4df11e=!0x0),_0x4df11e;}[_0x482b29(0xa1)](_0x583317,_0x2d5770){const _0x539260=_0x482b29,_0x5086d5=_0x2d5770[_0x539260(0xdb)](_0x539260(0xdf)),_0x1cd99a=this[_0x539260(0x99)][_0x539260(0x84)](_0x306130=>_0x306130['id']===_0x5086d5),_0x1a7c57=this[_0x539260(0x99)][_0x1cd99a];let _0x4819a6=!0x1;_0x1a7c57[_0x539260(0x7f)]=_0x2d5770,this[_0x539260(0x99)][_0x539260(0xd5)](_0x1cd99a,0x1);const _0x12dca6=I(this[_0x539260(0xa6)][_0x539260(0x8d)],this[_0x539260(0x99)],_0x2d5770);return this[_0x539260(0x99)][_0x539260(0xd5)](_0x12dca6,0x0,_0x1a7c57),this[_0x539260(0xb0)](_0x583317,Math[_0x539260(0xda)](_0x1cd99a,_0x12dca6))&&(_0x4819a6=!0x0),_0x4819a6;}[_0x482b29(0xb2)](_0x37dec3,_0x32ecf8){const _0x5230d1=_0x482b29;if(!this[_0x5230d1(0xa9)])return!0x1;const _0x3262da=this[_0x5230d1(0x99)][_0x32ecf8];let _0x2be89a;return _0x2be89a=this[_0x5230d1(0xc6)]?this[_0x5230d1(0xc6)]({'footnote':_0x3262da,'container':this[_0x5230d1(0xa9)],'digits':String(this[_0x5230d1(0x99)][_0x5230d1(0xdd)])[_0x5230d1(0xdd)],'value':_0x32ecf8+0x1}):String(_0x32ecf8+0x1),_0x3262da[_0x5230d1(0x7f)][_0x5230d1(0xdb)](_0x5230d1(0xd7))!=_0x2be89a&&(_0x37dec3[_0x5230d1(0xb1)](_0x5230d1(0xd7),_0x2be89a,_0x3262da[_0x5230d1(0x7f)]),!0x0);}[_0x482b29(0xcc)](_0x1d3f75){const _0x502965=_0x482b29;if(!this[_0x502965(0xa9)]||this[_0x502965(0x99)][_0x502965(0xdd)]<0x2)return!0x1;if(function(_0x487951,_0x22c590){const _0x306d36=_0x502965;if(_0x487951[_0x306d36(0xdd)]!==_0x22c590[_0x306d36(0xdd)])return!0x1;for(let _0x4808d0=0x0;_0x4808d0<_0x487951[_0x306d36(0xdd)];_0x4808d0++)if(_0x487951[_0x4808d0]!==_0x22c590[_0x4808d0])return!0x1;return!0x0;}(this[_0x502965(0x99)][_0x502965(0xe0)](_0x3524fa=>_0x3524fa['id']),Array[_0x502965(0x86)](this[_0x502965(0xa9)][_0x502965(0xb3)]())[_0x502965(0xe0)](_0x3cfc4c=>_0x3cfc4c[_0x502965(0xdb)](_0x502965(0xdf)))))return!0x1;let _0x46c72b=!0x1;for(let _0x19d897=0x0;_0x19d897<this[_0x502965(0x99)][_0x502965(0xdd)];_0x19d897++){const _0x27005e=this[_0x502965(0x99)][_0x19d897],_0x1949f7=_0x1d3f75[_0x502965(0x90)](_0x27005e[_0x502965(0x94)]),_0x345a44=_0x1d3f75[_0x502965(0x87)](this[_0x502965(0xa9)],_0x19d897);_0x1949f7[_0x502965(0xde)](_0x345a44)||(_0x1d3f75[_0x502965(0xcf)](_0x1d3f75[_0x502965(0xca)](_0x27005e[_0x502965(0x94)]),_0x345a44),_0x46c72b=!0x0);}return _0x46c72b;}[_0x482b29(0xaa)](_0x4930c4){const _0x41dcbd=_0x482b29;if(!this[_0x41dcbd(0x99)][_0x41dcbd(0xdd)])return!0x1;const {model:_0x4a8772}=this[_0x41dcbd(0xa6)];let _0x56beea=!0x1;for(let _0x1e2857=0x0;_0x1e2857<this[_0x41dcbd(0x99)][_0x41dcbd(0xdd)]-0x1;_0x1e2857++){const _0x196a77=this[_0x41dcbd(0x99)][_0x1e2857],_0x5ef4ab=this[_0x41dcbd(0x99)][_0x1e2857+0x1],_0x3f878a=_0x4a8772[_0x41dcbd(0x90)](_0x196a77[_0x41dcbd(0x7f)]),_0x3c4eb8=_0x4a8772[_0x41dcbd(0x90)](_0x5ef4ab[_0x41dcbd(0x7f)]);_0x41dcbd(0xa5)===_0x3f878a[_0x41dcbd(0xc5)](_0x3c4eb8)&&(this[_0x41dcbd(0xa1)](_0x4930c4,_0x196a77[_0x41dcbd(0x7f)]),_0x1e2857=-0x1,_0x56beea=!0x0);}return _0x56beea;}}function _(_0xe59d10,_0x4f11ca,_0x2331c1){const _0x23e3fb=_0x482b29;if(_0x2331c1[_0x23e3fb(0xbe)])return!0x1;const _0x15fabc=_0x4f11ca?_0x23e3fb(0x9e):_0x23e3fb(0xb7);return _0xe59d10[_0x23e3fb(0x8f)](_0xe59d10[_0x23e3fb(0x91)](_0x15fabc),_0x2331c1),!0x0;}function _0x14fb(){const _0x1f9afb=['createRangeIn','_handleFootnoteReferencesChanges','isPremiumPlugin','setFootnoteFormatter','splice','append','footnoteCounter','end','getChanges','min','getAttribute','$graveyard','length','isEqual','footnoteId','map','getFootnotesFormatter','find','3759819TBQHGy','unshift','711TrEujE','reference','indexOf','1011848wFtVdk','isOfficialPlugin','init','findIndex','change:data','from','createPositionAt','listenTo','config','get','high','differ','model','footnotesDefinitions','insert','createPositionBefore','createElement','before','registerPostFixer','definition','_footnoteDefsContainerTracker','some','_handleFootnotesDefinitionsObjectChanges','FootnotesTracker','_footnotes','add','enqueueChange','has','_ensureFootnotesDefinitionsContainerExists','paragraph','footnoteRef','_footnoteRefsTracker','_handleMovedFootnoteReference','getFootnote','_handleFootnoteDefinitionsChanges','parent','after','editor','_handleRemoveFootnoteReferenceById','footnotes.multiBlock','_footnotesDefinitions','_ensureFootnotesReferencesHaveProperOrder','getRootNames','push','6102315iXRzAl','_insertEmptyFootnotesDefinitionsContainer','set','_updateFootnotesCounters','setAttribute','_updateFootnoteRefCounter','getChildren','10699180oFvtUQ','root','reset','footnoteInlineContent','footnoteDefinition','document','getFootnotesDefinitionsObjectElement','8kHsffQ','4955QxrCfG','rootName','childCount','708gMRqyl','_footnoteDefsTracker','190333xNAwfo','remove','_handleFootnotesDefinitionsObjectSync','146wKSGrh','compareWith','_footnoteFormatter','6MgUvqF','low','_handleInsertedFootnoteReference','createRangeOn','singleton','_sortFootnoteDefinitions','5478zVZKZm','getFootnotes','move','pluginName'];_0x14fb=function(){return _0x1f9afb;};return _0x14fb();}function I(_0x51b22e,_0x59c036,_0x188994){const _0x2cc7c5=_0x482b29;if(0x0===_0x59c036[_0x2cc7c5(0xdd)])return 0x0;const _0x29e879=_0x51b22e[_0x2cc7c5(0x90)](_0x188994);for(let _0x1ab575=0x0;_0x1ab575<_0x59c036[_0x2cc7c5(0xdd)];_0x1ab575++){const _0x582b91=_0x59c036[_0x1ab575],_0x4e09dd=_0x51b22e[_0x2cc7c5(0x90)](_0x582b91[_0x2cc7c5(0x7f)]);if(_0x2cc7c5(0x92)===_0x29e879[_0x2cc7c5(0xc5)](_0x4e09dd))return _0x1ab575;}const _0x58e857=_0x188994[_0x2cc7c5(0xb5)];let _0x35b11d=-0x1;for(let _0x40116b=_0x59c036[_0x2cc7c5(0xdd)]-0x1;_0x40116b>=0x0;_0x40116b--)if(_0x59c036[_0x40116b][_0x2cc7c5(0x7f)][_0x2cc7c5(0xb5)]===_0x58e857){_0x35b11d=_0x40116b;break;}if(-0x1!==_0x35b11d)return _0x35b11d+0x1;const _0x25c710=_0x51b22e[_0x2cc7c5(0xb9)][_0x2cc7c5(0xab)](),_0x34a287=_0x25c710[_0x2cc7c5(0x80)](_0x58e857[_0x2cc7c5(0xbd)]),_0x4fd740=_0x25c710[_0x34a287+0x1];if(_0x4fd740){for(let _0x307be3=0x0;_0x307be3<_0x59c036[_0x2cc7c5(0xdd)];_0x307be3++)if(_0x59c036[_0x307be3][_0x2cc7c5(0x7f)][_0x2cc7c5(0xb5)][_0x2cc7c5(0xbd)]===_0x4fd740)return _0x307be3;}return _0x59c036[_0x2cc7c5(0xdd)];}
|
|
23
|
+
const _0x5e58e6=_0x47e1;function _0x47e1(_0x2c12a0,_0x4c0774){const _0x57cf03=_0x57cf();return _0x47e1=function(_0x47e1ea,_0x3656be){_0x47e1ea=_0x47e1ea-0x110;let _0x52fff2=_0x57cf03[_0x47e1ea];return _0x52fff2;},_0x47e1(_0x2c12a0,_0x4c0774);}(function(_0x48d788,_0x5e9e65){const _0x2044e8=_0x47e1,_0x15e6c3=_0x48d788();while(!![]){try{const _0x5a17cb=-parseInt(_0x2044e8(0x158))/0x1*(parseInt(_0x2044e8(0x14d))/0x2)+parseInt(_0x2044e8(0x14b))/0x3*(-parseInt(_0x2044e8(0x123))/0x4)+parseInt(_0x2044e8(0x150))/0x5+parseInt(_0x2044e8(0x166))/0x6*(-parseInt(_0x2044e8(0x127))/0x7)+parseInt(_0x2044e8(0x12c))/0x8+-parseInt(_0x2044e8(0x125))/0x9*(parseInt(_0x2044e8(0x110))/0xa)+parseInt(_0x2044e8(0x15e))/0xb;if(_0x5a17cb===_0x5e9e65)break;else _0x15e6c3['push'](_0x15e6c3['shift']());}catch(_0x7fd47f){_0x15e6c3['push'](_0x15e6c3['shift']());}}}(_0x57cf,0xba245));import{Plugin as _0x184897}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x16e8e4}from'./modelelementtracker.js';export class FootnotesTracker extends _0x184897{[_0x5e58e6(0x13b)]=[];[_0x5e58e6(0x122)]=null;[_0x5e58e6(0x131)]=null;[_0x5e58e6(0x117)];[_0x5e58e6(0x11d)];[_0x5e58e6(0x151)];static get[_0x5e58e6(0x15f)](){const _0x1c0f8d=_0x5e58e6;return _0x1c0f8d(0x113);}static get[_0x5e58e6(0x145)](){return!0x0;}static get[_0x5e58e6(0x155)](){return!0x0;}constructor(_0x3e83c8){const _0x5e8cee=_0x5e58e6;super(_0x3e83c8),this[_0x5e8cee(0x117)]=new _0x16e8e4(this[_0x5e8cee(0x112)][_0x5e8cee(0x13d)],{'elementName':_0x5e8cee(0x14e),'getElementKey':()=>_0x5e8cee(0x13a)}),this[_0x5e8cee(0x11d)]=new _0x16e8e4(this[_0x5e8cee(0x112)][_0x5e8cee(0x13d)],{'elementName':_0x5e8cee(0x167),'getElementKey':_0x5dfc07=>_0x5dfc07[_0x5e8cee(0x129)](_0x5e8cee(0x14c))}),this[_0x5e8cee(0x151)]=new _0x16e8e4(this[_0x5e8cee(0x112)][_0x5e8cee(0x13d)],{'elementName':_0x5e8cee(0x119),'getElementKey':_0xb99503=>_0xb99503[_0x5e8cee(0x129)](_0x5e8cee(0x14c))});}[_0x5e58e6(0x149)](){const _0x509886=_0x5e58e6,{editor:_0x2ba7c3}=this,{model:_0x398f73,data:_0x127f01}=_0x2ba7c3;_0x398f73[_0x509886(0x170)][_0x509886(0x157)](_0x22c72e=>{const _0x328045=_0x509886,_0x5accba=_0x398f73[_0x328045(0x170)][_0x328045(0x15c)][_0x328045(0x140)]();let _0x554963=!0x1;return this[_0x328045(0x168)](_0x22c72e,_0x5accba)&&(_0x554963=!0x0),this[_0x328045(0x16f)](_0x22c72e,_0x5accba)&&(_0x554963=!0x0),this[_0x328045(0x15b)](_0x22c72e,_0x5accba)&&(_0x554963=!0x0),this[_0x328045(0x126)](_0x22c72e)&&(_0x554963=!0x0),this[_0x328045(0x13e)](_0x22c72e)&&(_0x554963=!0x0),this[_0x328045(0x172)](_0x22c72e)&&(_0x554963=!0x0),_0x554963;}),this[_0x509886(0x135)](_0x398f73[_0x509886(0x170)],_0x509886(0x14a),()=>{const _0x5c3cab=_0x509886;_0x398f73[_0x5c3cab(0x146)]({'isUndoable':!0x1},_0x2ae580=>{const _0x363545=_0x5c3cab;this[_0x363545(0x156)](_0x2ae580);});},{'priority':_0x509886(0x16e)}),this[_0x509886(0x135)](_0x127f01,_0x509886(0x171),()=>{const _0x23cefb=_0x509886;this[_0x23cefb(0x13b)]=[],this[_0x23cefb(0x117)][_0x23cefb(0x141)](),this[_0x23cefb(0x11d)][_0x23cefb(0x141)](),this[_0x23cefb(0x151)][_0x23cefb(0x141)]();},{'priority':_0x509886(0x115)});}[_0x5e58e6(0x12f)](){const _0x547dde=_0x5e58e6;return this[_0x547dde(0x122)];}[_0x5e58e6(0x11a)](_0x31c785){const _0x15f4c6=_0x5e58e6;return this[_0x15f4c6(0x13b)][_0x15f4c6(0x11e)](_0xb7eb9b=>_0xb7eb9b['id']===_0x31c785)||null;}[_0x5e58e6(0x153)](){const _0x130e2e=_0x5e58e6;return Array[_0x130e2e(0x121)](this[_0x130e2e(0x13b)]);}[_0x5e58e6(0x137)](){const _0x1df1e0=_0x5e58e6;return this[_0x1df1e0(0x131)];}[_0x5e58e6(0x169)](_0x590859){const _0x488b2e=_0x5e58e6;this[_0x488b2e(0x131)]=_0x590859;}[_0x5e58e6(0x12a)](_0x50ff31,_0x1c3572=0x0){const _0x7128f6=_0x5e58e6;let _0x2a1dd5=!0x1;for(let _0x5de8d7=_0x1c3572;_0x5de8d7<this[_0x7128f6(0x13b)][_0x7128f6(0x13f)];_0x5de8d7++)this[_0x7128f6(0x164)](_0x50ff31,_0x5de8d7)&&(_0x2a1dd5=!0x0);return _0x2a1dd5;}[_0x5e58e6(0x161)](_0x35c072,_0x16f595){const _0x4cb19e=_0x5e58e6,_0x881b93=_0x35c072[_0x4cb19e(0x11b)](_0x4cb19e(0x14e),{});return _0x35c072[_0x4cb19e(0x154)](_0x881b93,_0x16f595),this[_0x4cb19e(0x122)]=_0x881b93,_0x881b93;}[_0x5e58e6(0x156)](_0x4b1d5d){const _0x379aeb=_0x5e58e6;if(!this[_0x379aeb(0x13b)][_0x379aeb(0x13f)]||this[_0x379aeb(0x122)])return;const _0x302743=this[_0x379aeb(0x13b)][0x0][_0x379aeb(0x143)][_0x379aeb(0x13c)],_0x3df9d8=this[_0x379aeb(0x161)](_0x4b1d5d,_0x302743);for(const _0x2a0ef9 of this[_0x379aeb(0x13b)])_0x2a0ef9[_0x379aeb(0x144)][_0x379aeb(0x136)]||_0x4b1d5d[_0x379aeb(0x12e)](_0x2a0ef9[_0x379aeb(0x144)],_0x3df9d8,_0x379aeb(0x111));this[_0x379aeb(0x12a)](_0x4b1d5d);}[_0x5e58e6(0x168)](_0x2e4748,_0x22c3ab){const _0x21d314=_0x5e58e6;let _0xc197e6=!0x1;const {inserted:_0x45020c,removed:_0x12e350,moved:_0x23eeee}=this[_0x21d314(0x117)][_0x21d314(0x140)](_0x22c3ab);if(_0x23eeee[_0x21d314(0x13f)]&&(this[_0x21d314(0x122)]=_0x23eeee[0x0]),_0x45020c[_0x21d314(0x13f)]){if(_0x45020c[_0x21d314(0x13f)]>0x1||this[_0x21d314(0x122)]&&_0x45020c[_0x21d314(0x133)](_0xc7bdf5=>_0xc7bdf5!==this[_0x21d314(0x122)])){const _0x122123=_0x2e4748[_0x21d314(0x11b)](_0x21d314(0x14e),{}),_0x1a6d04=[];this[_0x21d314(0x122)]&&_0x1a6d04[_0x21d314(0x148)](this[_0x21d314(0x122)]),_0x1a6d04[_0x21d314(0x148)](..._0x45020c),_0x2e4748[_0x21d314(0x12e)](_0x122123,_0x1a6d04[0x0],_0x21d314(0x175));for(const _0x21fe74 of _0x1a6d04)_0x2e4748[_0x21d314(0x16d)](_0x2e4748[_0x21d314(0x130)](_0x21fe74),_0x2e4748[_0x21d314(0x147)](_0x122123,_0x21d314(0x111))),_0x2e4748[_0x21d314(0x120)](_0x21fe74);this[_0x21d314(0x122)]=_0x122123,this[_0x21d314(0x12a)](_0x2e4748),_0xc197e6=!0x0;}else this[_0x21d314(0x122)]=_0x45020c[0x0];}if(_0x12e350[_0x21d314(0x13f)]&&_0x21d314(0x134)===this[_0x21d314(0x122)]?.[_0x21d314(0x13c)][_0x21d314(0x128)]){for(const _0x1d91aa of this[_0x21d314(0x13b)])_0x2e4748[_0x21d314(0x120)](_0x1d91aa[_0x21d314(0x143)]),_0xc197e6=!0x0;this[_0x21d314(0x13b)]=[],this[_0x21d314(0x122)]=null;}return _0xc197e6;}[_0x5e58e6(0x16f)](_0x24a5da,_0x4b395d){const _0x3a8913=_0x5e58e6;let _0x47c784=!0x1;const _0x25f673=this[_0x3a8913(0x112)][_0x3a8913(0x162)][_0x3a8913(0x16b)](_0x3a8913(0x16c)),{inserted:_0x2435dd,moved:_0x513836}=this[_0x3a8913(0x151)][_0x3a8913(0x140)](_0x4b395d);for(const _0x264db3 of[..._0x513836,..._0x2435dd]){const _0x7d40fc=_0x264db3[_0x3a8913(0x129)](_0x3a8913(0x14c)),_0xbc8a7c=this[_0x3a8913(0x11a)](_0x7d40fc);_0xbc8a7c&&(_0xbc8a7c[_0x3a8913(0x144)]=_0x264db3),_(_0x24a5da,_0x25f673,_0x264db3)&&(_0x47c784=!0x0);}return _0x47c784;}[_0x5e58e6(0x15b)](_0xfe2c27,_0x54589b){const _0x8d06d9=_0x5e58e6;let _0x19533b=!0x1;const {removed:_0x3ed3a0,inserted:_0x41a0e9,moved:_0x4b968c}=this[_0x8d06d9(0x11d)][_0x8d06d9(0x140)](_0x54589b);for(const _0x5061ba of _0x3ed3a0)this[_0x8d06d9(0x118)](_0xfe2c27,_0x5061ba)&&(_0x19533b=!0x0);for(const _0x106aeb of _0x41a0e9)this[_0x8d06d9(0x116)](_0xfe2c27,_0x106aeb)&&(_0x19533b=!0x0);for(const _0x4255fd of _0x4b968c)this[_0x8d06d9(0x114)](_0xfe2c27,_0x4255fd)&&(_0x19533b=!0x0);return _0x19533b;}[_0x5e58e6(0x13e)](_0x3e3c0f){const _0x36b46b=_0x5e58e6;if(!this[_0x36b46b(0x122)])return!0x1;let _0x93f937=!0x1;if(this[_0x36b46b(0x122)][_0x36b46b(0x165)]!==this[_0x36b46b(0x13b)][_0x36b46b(0x13f)]){const _0x2177e2=[];for(const _0x1aef23 of this[_0x36b46b(0x122)][_0x36b46b(0x160)]()){const _0x37d38c=_0x1aef23[_0x36b46b(0x129)](_0x36b46b(0x14c));this[_0x36b46b(0x11a)](_0x37d38c)||(_0x2177e2[_0x36b46b(0x15d)](_0x1aef23),_0x93f937=!0x0);}for(const _0x5f4a20 of _0x2177e2)_0x3e3c0f[_0x36b46b(0x120)](_0x5f4a20);}const _0x4e98a8=new Set(),_0x5b4754=[];for(const _0x15369e of this[_0x36b46b(0x122)][_0x36b46b(0x160)]()){const _0x3a47b2=_0x15369e[_0x36b46b(0x129)](_0x36b46b(0x14c));_0x4e98a8[_0x36b46b(0x163)](_0x3a47b2)?(_0x5b4754[_0x36b46b(0x15d)](_0x15369e),_0x93f937=!0x0):_0x4e98a8[_0x36b46b(0x138)](_0x3a47b2);}for(const _0x4cc453 of _0x5b4754)_0x3e3c0f[_0x36b46b(0x120)](_0x4cc453);return this[_0x36b46b(0x122)][_0x36b46b(0x165)]||(_0x3e3c0f[_0x36b46b(0x120)](this[_0x36b46b(0x122)]),this[_0x36b46b(0x122)]=null,_0x93f937=!0x0),_0x93f937;}[_0x5e58e6(0x116)](_0x36b618,_0x6b4d3a){const _0x5e4b0d=_0x5e58e6;if(this[_0x5e4b0d(0x13b)][_0x5e4b0d(0x11e)](_0x70a253=>_0x70a253[_0x5e4b0d(0x143)]===_0x6b4d3a))return!0x1;let _0x40d7da=!0x1;const _0x2426a6=_0x6b4d3a[_0x5e4b0d(0x129)](_0x5e4b0d(0x14c)),_0x4ba3d5=this[_0x5e4b0d(0x13b)][_0x5e4b0d(0x174)](_0x584cdc=>_0x584cdc['id']===_0x2426a6);-0x1!==_0x4ba3d5&&(_0x36b618[_0x5e4b0d(0x120)](this[_0x5e4b0d(0x13b)][_0x4ba3d5][_0x5e4b0d(0x143)]),this[_0x5e4b0d(0x13b)][_0x5e4b0d(0x139)](_0x4ba3d5,0x1),_0x40d7da=!0x0);let _0x2e7220=this[_0x5e4b0d(0x122)]?function(_0x37c0ac,_0x216623){const _0x261314=_0x5e4b0d;for(const _0x3233aa of _0x37c0ac[_0x261314(0x160)]())if(_0x3233aa[_0x261314(0x129)](_0x261314(0x14c))===_0x216623)return _0x3233aa;return null;}(this[_0x5e4b0d(0x122)],_0x2426a6):null;_0x2e7220||(_0x2e7220=_0x36b618[_0x5e4b0d(0x11b)](_0x5e4b0d(0x119),{'footnoteId':_0x2426a6}),this[_0x5e4b0d(0x122)]&&(_0x36b618[_0x5e4b0d(0x12e)](_0x2e7220,this[_0x5e4b0d(0x122)],_0x5e4b0d(0x111)),_0x40d7da=!0x0));const _0x8028db={'id':_0x2426a6,'reference':_0x6b4d3a,'definition':_0x2e7220},_0x2baf7f=I(this[_0x5e4b0d(0x112)][_0x5e4b0d(0x13d)],this[_0x5e4b0d(0x13b)],_0x6b4d3a);this[_0x5e4b0d(0x13b)][_0x5e4b0d(0x139)](_0x2baf7f,0x0,_0x8028db);let _0x26daa8=_0x2baf7f;return-0x1!==_0x4ba3d5&&(_0x26daa8=Math[_0x5e4b0d(0x11f)](_0x2baf7f,_0x4ba3d5)),this[_0x5e4b0d(0x12a)](_0x36b618,_0x26daa8)&&(_0x40d7da=!0x0),_0x40d7da;}[_0x5e58e6(0x118)](_0x55fd35,_0x547441){const _0x214a6a=_0x5e58e6,_0x57a3a9=this[_0x214a6a(0x13b)][_0x214a6a(0x174)](_0x5943a2=>_0x5943a2['id']===_0x547441);if(-0x1===_0x57a3a9)return!0x1;let _0x10b77b=!0x1;const _0x127e46=this[_0x214a6a(0x13b)][_0x57a3a9];return _0x214a6a(0x134)!==_0x127e46[_0x214a6a(0x144)][_0x214a6a(0x13c)][_0x214a6a(0x128)]&&(_0x55fd35[_0x214a6a(0x120)](_0x127e46[_0x214a6a(0x144)]),_0x10b77b=!0x0),this[_0x214a6a(0x13b)][_0x214a6a(0x139)](_0x57a3a9,0x1),this[_0x214a6a(0x12a)](_0x55fd35,_0x57a3a9)&&(_0x10b77b=!0x0),_0x10b77b;}[_0x5e58e6(0x114)](_0x35f87f,_0x4462ea){const _0x4445c9=_0x5e58e6,_0x4b7f39=_0x4462ea[_0x4445c9(0x129)](_0x4445c9(0x14c)),_0x2b8560=this[_0x4445c9(0x13b)][_0x4445c9(0x174)](_0x3c3b4e=>_0x3c3b4e['id']===_0x4b7f39),_0x1882b5=this[_0x4445c9(0x13b)][_0x2b8560];let _0x4ec88f=!0x1;_0x1882b5[_0x4445c9(0x143)]=_0x4462ea,this[_0x4445c9(0x13b)][_0x4445c9(0x139)](_0x2b8560,0x1);const _0x1e2f69=I(this[_0x4445c9(0x112)][_0x4445c9(0x13d)],this[_0x4445c9(0x13b)],_0x4462ea);return this[_0x4445c9(0x13b)][_0x4445c9(0x139)](_0x1e2f69,0x0,_0x1882b5),this[_0x4445c9(0x12a)](_0x35f87f,Math[_0x4445c9(0x11f)](_0x2b8560,_0x1e2f69))&&(_0x4ec88f=!0x0),_0x4ec88f;}[_0x5e58e6(0x164)](_0x2f78aa,_0x196962){const _0x2e33ee=_0x5e58e6;if(!this[_0x2e33ee(0x122)])return!0x1;const _0x159529=this[_0x2e33ee(0x13b)][_0x196962];let _0x466089;return _0x466089=this[_0x2e33ee(0x131)]?this[_0x2e33ee(0x131)]({'footnote':_0x159529,'container':this[_0x2e33ee(0x122)],'digits':String(this[_0x2e33ee(0x13b)][_0x2e33ee(0x13f)])[_0x2e33ee(0x13f)],'value':_0x196962+0x1}):String(_0x196962+0x1),_0x159529[_0x2e33ee(0x143)][_0x2e33ee(0x129)](_0x2e33ee(0x124))!=_0x466089&&(_0x2f78aa[_0x2e33ee(0x142)](_0x2e33ee(0x124),_0x466089,_0x159529[_0x2e33ee(0x143)]),!0x0);}[_0x5e58e6(0x172)](_0x497e9f){const _0x3e60dc=_0x5e58e6;if(!this[_0x3e60dc(0x122)]||this[_0x3e60dc(0x13b)][_0x3e60dc(0x13f)]<0x2)return!0x1;if(function(_0x54029c,_0x47b29e){const _0xcf97cc=_0x3e60dc;if(_0x54029c[_0xcf97cc(0x13f)]!==_0x47b29e[_0xcf97cc(0x13f)])return!0x1;for(let _0x4c00fa=0x0;_0x4c00fa<_0x54029c[_0xcf97cc(0x13f)];_0x4c00fa++)if(_0x54029c[_0x4c00fa]!==_0x47b29e[_0x4c00fa])return!0x1;return!0x0;}(this[_0x3e60dc(0x13b)][_0x3e60dc(0x11c)](_0x485bb8=>_0x485bb8['id']),Array[_0x3e60dc(0x121)](this[_0x3e60dc(0x122)][_0x3e60dc(0x160)]())[_0x3e60dc(0x11c)](_0x30fc75=>_0x30fc75[_0x3e60dc(0x129)](_0x3e60dc(0x14c)))))return!0x1;let _0x3c4853=!0x1;for(let _0x2a13d1=0x0;_0x2a13d1<this[_0x3e60dc(0x13b)][_0x3e60dc(0x13f)];_0x2a13d1++){const _0x3dc95f=this[_0x3e60dc(0x13b)][_0x2a13d1],_0x16f013=_0x497e9f[_0x3e60dc(0x12b)](_0x3dc95f[_0x3e60dc(0x144)]),_0x4e865b=_0x497e9f[_0x3e60dc(0x147)](this[_0x3e60dc(0x122)],_0x2a13d1);_0x16f013[_0x3e60dc(0x12d)](_0x4e865b)||(_0x497e9f[_0x3e60dc(0x16d)](_0x497e9f[_0x3e60dc(0x159)](_0x3dc95f[_0x3e60dc(0x144)]),_0x4e865b),_0x3c4853=!0x0);}return _0x3c4853;}[_0x5e58e6(0x126)](_0x2fd87a){const _0x5782fe=_0x5e58e6;if(!this[_0x5782fe(0x13b)][_0x5782fe(0x13f)])return!0x1;const {model:_0x3df779}=this[_0x5782fe(0x112)];let _0x315c79=!0x1;for(let _0x28a02e=0x0;_0x28a02e<this[_0x5782fe(0x13b)][_0x5782fe(0x13f)]-0x1;_0x28a02e++){const _0x59476a=this[_0x5782fe(0x13b)][_0x28a02e],_0x4f6f26=this[_0x5782fe(0x13b)][_0x28a02e+0x1],_0x4b5564=_0x3df779[_0x5782fe(0x12b)](_0x59476a[_0x5782fe(0x143)]),_0x5c09e8=_0x3df779[_0x5782fe(0x12b)](_0x4f6f26[_0x5782fe(0x143)]);_0x5782fe(0x16a)===_0x4b5564[_0x5782fe(0x15a)](_0x5c09e8)&&(this[_0x5782fe(0x114)](_0x2fd87a,_0x59476a[_0x5782fe(0x143)]),_0x28a02e=-0x1,_0x315c79=!0x0);}return _0x315c79;}}function _(_0x452203,_0xbc9133,_0x2883a8){const _0x240877=_0x5e58e6;if(_0x2883a8[_0x240877(0x165)])return!0x1;const _0x5d73d8=_0xbc9133?_0x240877(0x173):_0x240877(0x152);return _0x452203[_0x240877(0x12e)](_0x452203[_0x240877(0x11b)](_0x5d73d8),_0x2883a8),!0x0;}function _0x57cf(){const _0x54f6cf=['after','get','footnotes.multiBlock','move','low','_handleFootnoteDefinitionsChanges','document','set','_sortFootnoteDefinitions','paragraph','findIndex','before','710300oUkQet','end','editor','FootnotesTracker','_handleMovedFootnoteReference','high','_handleInsertedFootnoteReference','_footnoteDefsContainerTracker','_handleRemoveFootnoteReferenceById','footnoteDefinition','getFootnote','createElement','map','_footnoteRefsTracker','find','min','remove','from','_footnotesDefinitions','534716XRnGXc','footnoteCounter','180fZuJYG','_ensureFootnotesReferencesHaveProperOrder','33523KPfeyW','rootName','getAttribute','_updateFootnotesCounters','createPositionBefore','9806952bIYVfV','isEqual','insert','getFootnotesDefinitionsObjectElement','createRangeIn','_footnoteFormatter','getRootNames','some','$graveyard','listenTo','parent','getFootnotesFormatter','add','splice','singleton','_footnotes','root','model','_handleFootnotesDefinitionsObjectSync','length','getChanges','reset','setAttribute','reference','definition','isOfficialPlugin','enqueueChange','createPositionAt','push','init','change:data','15lfQqZB','footnoteId','16XkmQUF','footnotesDefinitions','indexOf','5010520KhMXbd','_footnoteDefsTracker','footnoteInlineContent','getFootnotes','append','isPremiumPlugin','_ensureFootnotesDefinitionsContainerExists','registerPostFixer','125683OEfVqM','createRangeOn','compareWith','_handleFootnoteReferencesChanges','differ','unshift','27031620jywjJP','pluginName','getChildren','_insertEmptyFootnotesDefinitionsContainer','config','has','_updateFootnoteRefCounter','childCount','1038lpRffg','footnoteRef','_handleFootnotesDefinitionsObjectChanges','setFootnoteFormatter'];_0x57cf=function(){return _0x54f6cf;};return _0x57cf();}function I(_0x2739d0,_0x342502,_0x16aa72){const _0x189d4f=_0x5e58e6;if(0x0===_0x342502[_0x189d4f(0x13f)])return 0x0;const _0x161f5d=_0x2739d0[_0x189d4f(0x12b)](_0x16aa72);for(let _0x54d5ce=0x0;_0x54d5ce<_0x342502[_0x189d4f(0x13f)];_0x54d5ce++){const _0x57f9b6=_0x342502[_0x54d5ce],_0x38fc3e=_0x2739d0[_0x189d4f(0x12b)](_0x57f9b6[_0x189d4f(0x143)]);if(_0x189d4f(0x175)===_0x161f5d[_0x189d4f(0x15a)](_0x38fc3e))return _0x54d5ce;}const _0x8978aa=_0x16aa72[_0x189d4f(0x13c)];let _0x5d053c=-0x1;for(let _0x37ad13=_0x342502[_0x189d4f(0x13f)]-0x1;_0x37ad13>=0x0;_0x37ad13--)if(_0x342502[_0x37ad13][_0x189d4f(0x143)][_0x189d4f(0x13c)]===_0x8978aa){_0x5d053c=_0x37ad13;break;}if(-0x1!==_0x5d053c)return _0x5d053c+0x1;const _0x53efe0=_0x2739d0[_0x189d4f(0x170)][_0x189d4f(0x132)](),_0x2f9358=_0x53efe0[_0x189d4f(0x14f)](_0x8978aa[_0x189d4f(0x128)]),_0x490d31=_0x53efe0[_0x2f9358+0x1];if(_0x490d31){for(let _0x2733df=0x0;_0x2733df<_0x342502[_0x189d4f(0x13f)];_0x2733df++)if(_0x342502[_0x2733df][_0x189d4f(0x143)][_0x189d4f(0x13c)][_0x189d4f(0x128)]===_0x490d31)return _0x2733df;}return _0x342502[_0x189d4f(0x13f)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x202d6d,MenuBarMenuListItemButtonView as _0x4bbefa}from'ckeditor5/src/ui.js';import{Plugin as _0x4d2c17}from'ckeditor5/src/core.js';import{IconFootnote as _0x4b6dc8}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x4d2c17{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x518d3f}=this,{componentFactory:_0x450718}=_0x518d3f['ui'];_0x450718['add']('insertFootnote',E(_0x518d3f,_0x202d6d)),_0x450718['add']('menuBar:insertFootnote',E(_0x518d3f,_0x4bbefa)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3687ea=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a845f;for(const _0x169b25 in _0x3687ea){const _0x358e7f=_0x169b25,_0x45f13a=_0x3687ea[_0x358e7f];if('footnotesLicenseKeyValid'==_0x45f13a||'footnotesLicenseKeyInvalid'==_0x45f13a||'footnotesLicenseKeyExpired'==_0x45f13a||'footnotesLicenseKeyDomainLimit'==_0x45f13a||'footnotesLicenseKeyNotAllowed'==_0x45f13a||'footnotesLicenseKeyEvaluationLimit'==_0x45f13a||'footnotesLicenseKeyUsageLimit'==_0x45f13a){delete _0x3687ea[_0x358e7f],_0x4a845f=_0x45f13a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4a845f&&_0x3687ea['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4a845f&&_0x3687ea['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4a845f&&_0x3687ea['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4a845f&&_0x3687ea['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4a845f&&_0x3687ea['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x4a845f&&_0x3687ea['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0xcb017d,_0x202b47){const _0x4b6f69=_0xcb017d['commands']['get']('insertFootnote');return _0x251da6=>{const {t:t}=_0x251da6,_0xee3b4=new _0x202b47(_0x251da6),_0x5be9e8=_0xee3b4 instanceof _0x4bbefa;return _0xee3b4['bind']('isEnabled')['to'](_0x4b6f69,'isEnabled'),_0xee3b4['set']({'label':t(_0x5be9e8?'Footnote':'Insert\x20footnote'),'icon':_0x4b6dc8,'tooltip':!0x0}),_0xee3b4['on']('execute',()=>{_0x4b6f69['execute'](),_0xcb017d['editing']['view']['focus']();}),_0xee3b4;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xf5d3(){var _0x2ca078=['13922216gYIdRi','54511119wVmMwy','156830serHgw','9432792vASVLg','298235ELBNQt','9218985dEaBDS','1226620UMCNTZ','23FhXvAw','18MWwvaV'];_0xf5d3=function(){return _0x2ca078;};return _0xf5d3();}(function(_0x5cf5c8,_0x413b63){var _0x292cb5=_0x5141,_0x819ca9=_0x5cf5c8();while(!![]){try{var _0xa89144=-parseInt(_0x292cb5(0x1ae))/0x1*(parseInt(_0x292cb5(0x1a9))/0x2)+parseInt(_0x292cb5(0x1af))/0x3*(parseInt(_0x292cb5(0x1ad))/0x4)+-parseInt(_0x292cb5(0x1ac))/0x5+-parseInt(_0x292cb5(0x1aa))/0x6+parseInt(_0x292cb5(0x1ab))/0x7+-parseInt(_0x292cb5(0x1b0))/0x8+parseInt(_0x292cb5(0x1b1))/0x9;if(_0xa89144===_0x413b63)break;else _0x819ca9['push'](_0x819ca9['shift']());}catch(_0x22952b){_0x819ca9['push'](_0x819ca9['shift']());}}}(_0xf5d3,0xef277));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';function _0x5141(_0xa1aad0,_0x32305d){var _0xf5d3d7=_0xf5d3();return _0x5141=function(_0x51412f,_0x5de35d){_0x51412f=_0x51412f-0x1a9;var _0x5bcc46=_0xf5d3d7[_0x51412f];return _0x5bcc46;},_0x5141(_0xa1aad0,_0x32305d);}export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22cce2=_0x133a;function _0x46b1(){const _0x4d2d0c=['set','length','remove','createRangeOn','_getElementKey','223107GaDrLl','reset','has','slice','$graveyard','_elementName','10AHFZwK','type','7814024pKZjXt','element','delete','clear','root','21032721laCjoH','name','get','$text','add','_trackedElements','nodeAfter','getItems','1199884udkDri','from','attributes','16rLwqGj','7274424qPjRlz','push','position','getElementKey','1124210hLTFVs','20KWFjvx','elementName','flat','values','getChanges','rootName','_model','92581CYQKxk','insert'];_0x46b1=function(){return _0x4d2d0c;};return _0x46b1();}(function(_0x18cfc2,_0x490281){const _0x1025ce=_0x133a,_0x401148=_0x18cfc2();while(!![]){try{const _0x3e1c8f=parseInt(_0x1025ce(0x9d))/0x1*(parseInt(_0x1025ce(0xbc))/0x2)+parseInt(_0x1025ce(0xa4))/0x3*(-parseInt(_0x1025ce(0x96))/0x4)+parseInt(_0x1025ce(0x95))/0x5+parseInt(_0x1025ce(0xbd))/0x6+parseInt(_0x1025ce(0xb9))/0x7+parseInt(_0x1025ce(0xac))/0x8+-parseInt(_0x1025ce(0xb1))/0x9*(parseInt(_0x1025ce(0xaa))/0xa);if(_0x3e1c8f===_0x490281)break;else _0x401148['push'](_0x401148['shift']());}catch(_0x59810a){_0x401148['push'](_0x401148['shift']());}}}(_0x46b1,0x96b1d));function _0x133a(_0x1afafe,_0x27e2f5){const _0x46b151=_0x46b1();return _0x133a=function(_0x133a6e,_0x4e60b0){_0x133a6e=_0x133a6e-0x95;let _0x221878=_0x46b151[_0x133a6e];return _0x221878;},_0x133a(_0x1afafe,_0x27e2f5);}export class ModelElementTracker{[_0x22cce2(0x9c)];[_0x22cce2(0xa9)];[_0x22cce2(0xa3)];[_0x22cce2(0xb6)]=new Map();constructor(_0x4d1e0a,_0x435b61){const _0x405af2=_0x22cce2;this[_0x405af2(0x9c)]=_0x4d1e0a,this[_0x405af2(0xa9)]=_0x435b61[_0x405af2(0x97)],this[_0x405af2(0xa3)]=_0x435b61[_0x405af2(0xc0)];}[_0x22cce2(0xa5)](){const _0x5a91a7=_0x22cce2;this[_0x5a91a7(0xb6)][_0x5a91a7(0xaf)]();}[_0x22cce2(0x9a)](_0x3370ae){const _0xc367d9=_0x22cce2,_0x1f16bc=new Set(),_0x56118a=new Map();for(const _0x3c5d7e of _0x3370ae){if(_0xc367d9(0x9e)===_0x3c5d7e[_0xc367d9(0xab)]&&_0xc367d9(0xb4)!==_0x3c5d7e[_0xc367d9(0xb2)]&&_0x3c5d7e[_0xc367d9(0xbf)][_0xc367d9(0xb7)]){const _0x2ea995=this[_0xc367d9(0x9c)][_0xc367d9(0xa2)](_0x3c5d7e[_0xc367d9(0xbf)][_0xc367d9(0xb7)]);for(const _0x315007 of _0x2ea995[_0xc367d9(0xb8)]()){if(!_0x315007['is'](_0xc367d9(0xad),this[_0xc367d9(0xa9)]))continue;const _0x32397f=this[_0xc367d9(0xa3)](_0x315007);_0x56118a[_0xc367d9(0xa6)](_0x32397f)||_0x56118a[_0xc367d9(0x9f)](_0x32397f,[]),_0x56118a[_0xc367d9(0xb3)](_0x32397f)[_0xc367d9(0xbe)](_0x315007);}}if(_0xc367d9(0xa1)===_0x3c5d7e[_0xc367d9(0xab)]&&_0x3c5d7e[_0xc367d9(0xb2)]===this[_0xc367d9(0xa9)]){const _0x2d9d26=this[_0xc367d9(0xa3)]({'getAttribute':_0x2e034a=>_0x3c5d7e[_0xc367d9(0xbb)][_0xc367d9(0xb3)](_0x2e034a)});_0x1f16bc[_0xc367d9(0xb5)](_0x2d9d26);}}for(const [_0x33a970,_0x2723c6]of this[_0xc367d9(0xb6)])_0xc367d9(0xa8)===_0x2723c6[_0xc367d9(0xb0)][_0xc367d9(0x9b)]&&_0x1f16bc[_0xc367d9(0xb5)](_0x33a970);for(const _0x53e2b1 of _0x1f16bc)this[_0xc367d9(0xb6)][_0xc367d9(0xae)](_0x53e2b1);for(const [_0x3a7454,_0x5aeafd]of _0x56118a)this[_0xc367d9(0xb6)][_0xc367d9(0x9f)](_0x3a7454,_0x5aeafd[_0x5aeafd[_0xc367d9(0xa0)]-0x1]);const _0xf12944=new Set();for(const [_0x5343ab,_0x33bae2]of _0x56118a)_0x1f16bc[_0xc367d9(0xa6)](_0x5343ab)&&(_0xf12944[_0xc367d9(0xb5)](_0x33bae2[0x0]),_0x33bae2[_0xc367d9(0xa0)]>0x1?_0x56118a[_0xc367d9(0x9f)](_0x5343ab,_0x33bae2[_0xc367d9(0xa7)](0x1)):_0x56118a[_0xc367d9(0xae)](_0x5343ab),_0x1f16bc[_0xc367d9(0xae)](_0x5343ab));return{'removed':Array[_0xc367d9(0xba)](_0x1f16bc),'inserted':Array[_0xc367d9(0xba)](_0x56118a[_0xc367d9(0x99)]())[_0xc367d9(0x98)](),'moved':Array[_0xc367d9(0xba)](_0xf12944)};}}
|