@ckeditor/ckeditor5-footnotes 47.7.0-alpha.3 → 47.7.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x2d77f6}from'ckeditor5/src/core.js';import{isWidget as _0x474105,toWidget as _0x4419f7,toWidgetEditable as _0x2428b4}from'ckeditor5/src/widget.js';import{uid as _0x229df6}from'ckeditor5/src/utils.js';import{PointerObserver as _0x34156a,ClickObserver as _0x3bcdbf}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x681316}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x3972cc}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2d77f6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x681316];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e7c8b}=this;_0x4e7c8b['config']['define']('footnotes.multiBlock',!0x0),_0x4e7c8b['commands']['add']('insertFootnote',new _0x3972cc(_0x4e7c8b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x28756c){const _0x53e2f1=_0x77e295([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]),_0x231d08=0x47a28506,_0x167f1b=0x47a5023e^_0x231d08,_0x3cfd92=window[_0x77e295([0x44,0x61,0x74,0x65])][_0x77e295([0x6e,0x6f,0x77])](),_0x547084=_0x28756c[_0x77e295([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b2409=new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32628b=>{_0x547084[_0x77e295([0x6f,0x6e,0x63,0x65])](_0x77e295([0x72,0x65,0x61,0x64,0x79]),_0x32628b);}),_0x215e2f={[_0x77e295([0x6b,0x74,0x79])]:_0x77e295([0x45,0x43]),[_0x77e295([0x75,0x73,0x65])]:_0x77e295([0x73,0x69,0x67]),[_0x77e295([0x63,0x72,0x76])]:_0x77e295([0x50,0x2d,0x32,0x35,0x36]),[_0x77e295([0x78])]:_0x77e295([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]),[_0x77e295([0x79])]:_0x77e295([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]),[_0x77e295([0x61,0x6c,0x67])]:_0x77e295([0x45,0x53,0x32,0x35,0x36])},_0x1ab176=_0x547084[_0x77e295([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x77e295([0x67,0x65,0x74])](_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5dc58b(){let _0x9645ff,_0x2bbb25=null,_0x112343=null;try{if(_0x1ab176==_0x77e295([0x47,0x50,0x4c]))return _0x77e295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9645ff=_0x39041a(),!_0x9645ff)return _0x77e295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9645ff[_0x77e295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x112343=_0x46ba99(_0x9645ff[_0x77e295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9645ff[_0x77e295([0x6a,0x74,0x69])])),await _0x5d3d9f()?_0x5a8636()?_0x3ace42()?_0x77e295([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x747d2d()?(_0x9645ff[_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x77e295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2bbb25=_0x12ef97(_0x77e295([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x416400()):_0x77e295([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x77e295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x77e295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x77e295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ace42(){const _0x39c50f=[_0x77e295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x77e295([0x74,0x72,0x69,0x61,0x6c])][_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9645ff[_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cfd92/0x3e8:0xe10*_0x167f1b;return _0x9645ff[_0x77e295([0x65,0x78,0x70])]<_0x39c50f;}function _0x5a8636(){const _0x3a6295=_0x9645ff[_0x77e295([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a6295&&(!!_0x3a6295[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77e295([0x2a]))||!!_0x3a6295[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77e295([0x46,0x4f,0x4f])));}function _0x747d2d(){const _0x26b511=_0x9645ff[_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26b511||0x0==_0x26b511[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40d5cb}=new URL(window[_0x77e295([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26b511[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40d5cb))return!0x0;const _0x512314=_0x40d5cb[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e]));return _0x26b511[_0x77e295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41e60e=>_0x41e60e[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77e295([0x2a])))[_0x77e295([0x6d,0x61,0x70])](_0x2a5922=>_0x2a5922[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e])))[_0x77e295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f7a66=>_0x3f7a66[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x512314[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x77e295([0x6d,0x61,0x70])](_0x4ce6e4=>Array(_0x512314[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ce6e4[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x77e295([0x66,0x69,0x6c,0x6c])](_0x4ce6e4[0x0]===_0x77e295([0x2a])?_0x77e295([0x2a]):'')[_0x77e295([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ce6e4))[_0x77e295([0x73,0x6f,0x6d,0x65])](_0x5e91bd=>_0x512314[_0x77e295([0x65,0x76,0x65,0x72,0x79])]((_0x36a8c3,_0x10eda8)=>_0x5e91bd[_0x10eda8]===_0x36a8c3||_0x5e91bd[_0x10eda8]===_0x77e295([0x2a])));}function _0x416400(){return _0x2bbb25&&_0x112343?new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f02eb,_0x50c1f7)=>{_0x2bbb25[_0x77e295([0x74,0x68,0x65,0x6e])](_0x5f02eb,_0x50c1f7),_0x112343[_0x77e295([0x74,0x68,0x65,0x6e])](_0x759629=>{_0x759629!=_0x77e295([0x56,0x61,0x6c,0x69,0x64])&&_0x5f02eb(_0x759629);},_0x50c1f7);}):_0x2bbb25||_0x112343||_0x77e295([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46ba99(_0x375e05,_0x8dbe27){return new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f4f4=>{if(_0x2d73f0())return _0x41f4f4(_0x77e295([0x56,0x61,0x6c,0x69,0x64]));_0x36acc6(),_0x547084[_0x77e295([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x77e295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51f224=!0x1;const _0x5a629b=_0x229df6();function _0x1964bb(_0x3ac248){return!!_0x3ac248&&(typeof _0x3ac248===_0x77e295([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ac248===_0x77e295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ac248[_0x77e295([0x74,0x68,0x65,0x6e])]===_0x77e295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ac248[_0x77e295([0x63,0x61,0x74,0x63,0x68])]===_0x77e295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2814bf(_0x4dbaa4){_0x5baa97(_0x4dbaa4)[_0x77e295([0x74,0x68,0x65,0x6e])](_0x37d285=>{if(!_0x37d285||_0x37d285[_0x77e295([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x77e295([0x6f,0x6b]))return _0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x239f40(_0x15f186(_0x5a629b+_0x8dbe27))!=_0x37d285[_0x77e295([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x77e295([0x56,0x61,0x6c,0x69,0x64]);})[_0x77e295([0x74,0x68,0x65,0x6e])](_0x479275=>(_0x4c525f(),_0x479275),()=>{const _0x1faf69=_0x21186b();return null==_0x1faf69?(_0x4c525f(),_0x77e295([0x56,0x61,0x6c,0x69,0x64])):_0x77e295(_0x3cfd92-_0x1faf69>(0x63ae0106^_0x231d08)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x77e295([0x74,0x68,0x65,0x6e])](_0x41f4f4)[_0x77e295([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41f4f4(_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2326f2=0x47946b86^_0x231d08;function _0x4c525f(){const _0x1db6de=_0x77e295([0x6c,0x6c,0x63,0x74,0x2d])+_0x239f40(_0x15f186(_0x375e05)),_0x5828d1=_0x3f0044(_0x239f40(window[_0x77e295([0x4d,0x61,0x74,0x68])][_0x77e295([0x63,0x65,0x69,0x6c])](_0x3cfd92/_0x2326f2)));window[_0x77e295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x77e295([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1db6de,_0x5828d1);}function _0x21186b(){const _0x3c9f99=_0x77e295([0x6c,0x6c,0x63,0x74,0x2d])+_0x239f40(_0x15f186(_0x375e05)),_0x249a2b=window[_0x77e295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x77e295([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c9f99);return _0x249a2b?window[_0x77e295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f0044(_0x249a2b),0x10)*_0x2326f2:null;}function _0x5baa97(_0x461895){return new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x308ba1,_0x5605ed)=>{_0x461895[_0x77e295([0x74,0x68,0x65,0x6e])](_0x308ba1,_0x5605ed),window[_0x77e295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5605ed,0x47a351c6^_0x231d08);});}}_0x547084[_0x77e295([0x6f,0x6e])](_0x77e295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x578143,_0x3e0aac)=>{if(_0x3e0aac[0x0]!=_0x375e05)return _0x41f4f4(_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e0aac[0x1]={..._0x3e0aac[0x1],[_0x77e295([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a629b};},{[_0x77e295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x77e295([0x68,0x69,0x67,0x68])}),_0x547084[_0x77e295([0x6f,0x6e])](_0x77e295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37309f=>{_0x1964bb(_0x37309f[_0x77e295([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51f224=!0x0,_0x2814bf(_0x37309f[_0x77e295([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x77e295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x77e295([0x6c,0x6f,0x77])}),_0x2b2409[_0x77e295([0x74,0x68,0x65,0x6e])](()=>{_0x51f224||_0x41f4f4(_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d73f0(){return _0x547084[_0x77e295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x77e295([0x76,0x69,0x65,0x77])][_0x77e295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x77e295([0x61,0x75,0x74,0x6f]);}function _0x36acc6(){_0x547084[_0x77e295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x77e295([0x76,0x69,0x65,0x77])][_0x77e295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x77e295([0x61,0x75,0x74,0x6f]);}}function _0x12ef97(_0x4c825c){const _0x1ac74a=[new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170e5f=>setTimeout(_0x170e5f,0x47abbbca^_0x231d08)),_0x2b2409[_0x77e295([0x74,0x68,0x65,0x6e])](()=>new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3330b5=>{let _0x5847aa=0x0;_0x547084[_0x77e295([0x6d,0x6f,0x64,0x65,0x6c])][_0x77e295([0x6f,0x6e])](_0x77e295([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3986e4,_0x237f14)=>{_0x237f14[0x0][_0x77e295([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5847aa++,_0x5847aa==(0x47a280ee^_0x231d08)&&(_0x3330b5(),_0x3986e4[_0x77e295([0x6f,0x66,0x66])]());});}))];return window[_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x77e295([0x72,0x61,0x63,0x65])](_0x1ac74a)[_0x77e295([0x74,0x68,0x65,0x6e])](()=>_0x4c825c);}async function _0x17f997(){await _0x2b2409,_0x547084[_0x77e295([0x6d,0x6f,0x64,0x65,0x6c])][_0x77e295([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18c8aa,_0x547084[_0x77e295([0x6d,0x6f,0x64,0x65,0x6c])][_0x77e295([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18c8aa,_0x547084[_0x77e295([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x77e295([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x465ef3(_0x28f50b){const _0x37448b=_0x22ec98();_0x547084[_0x37448b]=_0x77e295([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28f50b,_0x28f50b!=_0x77e295([0x56,0x61,0x6c,0x69,0x64])&&_0x17f997();}function _0x22ec98(){const _0x3e85c7=window[_0x77e295([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x77e295([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x77e295([0x6e,0x6f,0x77])]())[_0x77e295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x77e295([0x2e]),'');let _0x557a03=_0x77e295([0x75]);for(let _0x2864b5=0x0;_0x2864b5<_0x3e85c7[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2864b5+=0x2){let _0x156b88=window[_0x77e295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e85c7[_0x77e295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2864b5,_0x2864b5+0x2));_0x156b88>=_0x53e2f1[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x156b88-=_0x53e2f1[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x557a03+=_0x53e2f1[_0x156b88];}return _0x557a03;}function _0x39041a(){const _0x194093=_0x1ab176[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e]));if(0x3!=_0x194093[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35950f(_0x194093[0x1]);function _0x35950f(_0x40557a){const _0x28e08a=_0x4a723b(_0x40557a);return _0x28e08a&&_0xc601f()?_0x28e08a:null;function _0xc601f(){const _0x106922=_0x28e08a[_0x77e295([0x6a,0x74,0x69])],_0xda8bb8=window[_0x77e295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x106922[_0x77e295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x106922[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c31a2={..._0x28e08a,[_0x77e295([0x6a,0x74,0x69])]:_0x106922[_0x77e295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x106922[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c31a2[_0x77e295([0x76,0x63])],_0x15f186(_0x2c31a2)==_0xda8bb8;}}}async function _0x5d3d9f(){let _0x285d9d=!0x0;try{const _0x55aa7e=_0x1ab176[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e])),[_0x384e43,_0x5d8944,_0x2c5805]=_0x55aa7e;return _0x392c62(_0x384e43),await _0x5c3e89(_0x384e43,_0x5d8944,_0x2c5805),_0x285d9d;}catch{return!0x1;}function _0x392c62(_0xcd2b73){const _0x4b11d7=_0x4a723b(_0xcd2b73);_0x4b11d7&&_0x4b11d7[_0x77e295([0x61,0x6c,0x67])]==_0x77e295([0x45,0x53,0x32,0x35,0x36])||(_0x285d9d=!0x1);}async function _0x5c3e89(_0x3ef2a1,_0x2872b1,_0xae3b8b){const _0x483753=window[_0x77e295([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x77e295([0x66,0x72,0x6f,0x6d])](_0x1385bb(_0xae3b8b),_0x429ba3=>_0x429ba3[_0x77e295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2485d7=new window[(_0x77e295([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x77e295([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ef2a1+_0x77e295([0x2e])+_0x2872b1),_0x3b8e0e=window[_0x77e295([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x77e295([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b8e0e)return;const _0x424572=await _0x3b8e0e[_0x77e295([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x77e295([0x6a,0x77,0x6b]),_0x215e2f,{[_0x77e295([0x6e,0x61,0x6d,0x65])]:_0x77e295([0x45,0x43,0x44,0x53,0x41]),[_0x77e295([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x77e295([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x77e295([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b8e0e[_0x77e295([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x77e295([0x6e,0x61,0x6d,0x65])]:_0x77e295([0x45,0x43,0x44,0x53,0x41]),[_0x77e295([0x68,0x61,0x73,0x68])]:{[_0x77e295([0x6e,0x61,0x6d,0x65])]:_0x77e295([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x424572,_0x483753,_0x2485d7)||(_0x285d9d=!0x1);}}function _0x4a723b(_0x35e9d6){return _0x35e9d6[_0x77e295([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x77e295([0x65,0x79]))?JSON[_0x77e295([0x70,0x61,0x72,0x73,0x65])](_0x1385bb(_0x35e9d6)):null;}function _0x1385bb(_0x182882){return window[_0x77e295([0x61,0x74,0x6f,0x62])](_0x182882[_0x77e295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x77e295([0x2b]))[_0x77e295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x77e295([0x2f])));}function _0x15f186(_0x1fdad8){let _0x50cc4c=0x1505;function _0x447290(_0x1c880a){for(let _0x362407=0x0;_0x362407<_0x1c880a[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x362407++){const _0x553219=_0x1c880a[_0x77e295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x362407);_0x50cc4c=(_0x50cc4c<<0x5)+_0x50cc4c+_0x553219,_0x50cc4c&=_0x50cc4c;}}function _0x128dff(_0x2074f1){Array[_0x77e295([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2074f1)?_0x2074f1[_0x77e295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x128dff):_0x2074f1&&typeof _0x2074f1==_0x77e295([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x77e295([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2074f1)[_0x77e295([0x73,0x6f,0x72,0x74])]()[_0x77e295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cdbbe,_0x395d82])=>{_0x447290(_0x1cdbbe),_0x128dff(_0x395d82);}):_0x447290(window[_0x77e295([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2074f1));}return _0x128dff(_0x1fdad8),_0x50cc4c>>>0x0;}function _0x239f40(_0x3ce374){return _0x3ce374[_0x77e295([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x77e295([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x77e295([0x30]));}function _0x3f0044(_0x3bd61b){return _0x3bd61b[_0x77e295([0x73,0x70,0x6c,0x69,0x74])]('')[_0x77e295([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x77e295([0x6a,0x6f,0x69,0x6e])]('');}function _0x18c8aa(){}function _0x77e295(_0x2b6fa8){return _0x2b6fa8['map'](_0x489945=>String['fromCharCode'](_0x489945))['join']('');}_0x465ef3(await _0x5dc58b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x56f52b){const {plugins:_0x30f6c3,editing:_0x272530,model:_0x172252}=this['editor'],_0x13ec9b=_0x30f6c3['get'](_0x681316)['getFootnote'](_0x56f52b);return!!_0x13ec9b&&(_0x172252['change'](_0x1866a8=>{_0x1866a8['setSelection'](_0x1866a8['createPositionAt'](_0x13ec9b['definition'],'end'));}),_0x272530['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x94d861){const {plugins:_0x27c965,editing:_0x54e81e,model:_0x94d924}=this['editor'],_0x38fb78=_0x27c965['get'](_0x681316)['getFootnote'](_0x94d861);return!!_0x38fb78&&(_0x94d924['change'](_0x4df97d=>{_0x4df97d['setSelection'](_0x38fb78['reference'],'on');}),_0x54e81e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x503985}=this['editor']['model'],_0x4d9cd1=this['editor']['config']['get']('footnotes.multiBlock');_0x503985['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x503985['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x503985['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4d9cd1?_0x503985['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x503985['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x503985['addChildCheck'](_0x550d70=>{for(const _0x4f0773 of _0x550d70)if('footnoteDefinition'===_0x4f0773['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x23c9e9}=this,{conversion:_0x5f4783,editing:_0x30f354}=_0x23c9e9,{t:t}=_0x23c9e9['locale'];_0x5f4783['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xd50e68,{writer:_0x3204fd,consumable:_0x506351})=>{const _0x39a583=_0xd50e68['getChild'](0x0);if(!_0x39a583||!_0x39a583['is']('element','a'))return null;const _0x48f000=_0x39a583['getAttribute']('href')||'';if(!_0x48f000['startsWith']('#'))return null;const _0xce4f04=_0x48f000['replace'](/^#/,'');if(!_0xce4f04)return null;_0x506351['consume'](_0x39a583,{'name':!0x0,'attributes':['href']});for(const {item:_0x1cb66a}of _0x30f354['view']['createRangeIn'](_0x39a583))_0x1cb66a['is']('$textProxy')?_0x506351['consume'](_0x1cb66a['textNode'],{'name':!0x0}):_0x1cb66a['is']('element')&&_0x506351['consume'](_0x1cb66a,{'name':!0x0});return _0x3204fd['createElement']('footnoteRef',{'footnoteId':_0xce4f04});}}),_0x5f4783['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xcd7160,{writer:_0x21921c})=>b(_0xcd7160,_0x21921c)}),_0x5f4783['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x25b4e8,{writer:_0x3aa49e})=>{const _0x2544dd=_0x25b4e8['getAttribute']('footnoteCounter');return _0x4419f7(b(_0x25b4e8,_0x3aa49e),_0x3aa49e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2544dd)});}});}['_defineDefinitionsConverters'](){const {editor:_0x527678}=this,{t:t}=_0x527678['locale'],{conversion:_0x9c44db}=_0x527678;_0x9c44db['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x9c44db['for']('upcast')['add'](_0x51be60=>{_0x51be60['on']('element:ol',(_0x318f8e,_0x52e217,_0x3f933f)=>{const _0x5f7e2c=_0x52e217['viewItem'];if(!_0x5f7e2c['hasClass']('footnotes-list')||!_0x52e217['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3f933f['consumable']['consume'](_0x5f7e2c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xb9bf99,modelCursor:_0x322fe8}=_0x3f933f['convertChildren'](_0x52e217['viewItem'],_0x52e217['modelCursor']);_0x52e217['modelRange']=_0xb9bf99,_0x52e217['modelCursor']=_0x322fe8;}),_0x51be60['on']('element:hr',(_0x4a235c,_0x3324dd,_0x2826d4)=>{const _0x1f7ca0=_0x3324dd['viewItem'];_0x1f7ca0['hasClass']('footnotes-divider')&&_0x3324dd['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2826d4['consumable']['consume'](_0x1f7ca0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x9c44db['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x50658d,{writer:_0x420367})=>D(_0x420367)}),_0x9c44db['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e1938,{writer:_0x5b8e8f})=>{const _0x545f8c=D(_0x5b8e8f,{'data-footnotes-list-label':t('Footnotes')}),_0xd79f01=_0x4419f7(_0x545f8c,_0x5b8e8f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5b8e8f['setCustomProperty']('footnotesDefinitions',!0x0,_0xd79f01),_0xd79f01;}});}['_defineDefinitionConverters'](){const {editor:_0x4de1f6}=this,{conversion:_0x5b3b17,locale:_0x3a93f7}=_0x4de1f6,_0x49fdcb=_0x4de1f6['config']['get']('footnotes.multiBlock');_0x5b3b17['for']('upcast')['add'](_0x2cccbc=>{_0x2cccbc['on']('element:li',(_0x57fde6,_0x3af2e0,_0x2ccf17)=>{const _0x3e1250=_0x3af2e0['viewItem'];if(!_0x3e1250['hasClass']('footnote-definition')||!_0x3e1250['getAttribute']('id'))return;const _0x1d0677=_0x3e1250['parent'];if(!_0x1d0677['is']('element','ol')||!_0x1d0677['hasClass']('footnotes-list'))return;if(!_0x2ccf17['consumable']['test'](_0x3e1250,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4e821d=_0x2ccf17['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3e1250['getAttribute']('id')});if(!_0x2ccf17['safeInsert'](_0x4e821d,_0x3af2e0['modelCursor']))return;_0x2ccf17['consumable']['consume'](_0x3e1250,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1759e4=Array['from'](_0x3e1250['getChildren']())['find'](_0x3baea1=>_0x3baea1['is']('element')&&_0x3baea1['hasClass']('footnote-content'));for(const _0xfe55aa of _0x3e1250['getChildren']())_0xfe55aa['is']('element')&&(_0x2ccf17['consumable']['consume'](_0xfe55aa,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ccf17['consumable']['consume'](_0xfe55aa,{'name':!0x0,'classes':'footnote-content'}));if(_0x1759e4){if(_0x49fdcb)_0x2ccf17['convertChildren'](_0x1759e4,_0x4e821d);else{const _0x5ca694=_0x2ccf17['writer']['createElement']('footnoteInlineContent');_0x2ccf17['writer']['insert'](_0x5ca694,_0x4e821d),_0x2ccf17['convertChildren'](_0x1759e4,_0x5ca694);}}_0x2ccf17['updateConversionResult'](_0x4e821d,_0x3af2e0);});}),_0x5b3b17['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x531780,{writer:_0x481471})=>y(_0x531780,_0x481471,_0x3a93f7,{'dataPipeline':!0x0})}),_0x5b3b17['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x142dbb,{writer:_0x2ecaed})=>y(_0x142dbb,_0x2ecaed,_0x3a93f7)});}['_defineBogusParagraphConverters'](){const {editor:_0x3b8f0a}=this,{conversion:_0x82427}=_0x3b8f0a;_0x3b8f0a['config']['get']('footnotes.multiBlock')?(_0x82427['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x82427['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3b8f0a['model']['document'],'change:data',()=>{!function(_0x20482e,_0x1ee3a0){const _0x4bd792=_0x20482e['document']['differ'],_0x488fec=new Set();for(const _0x36510b of _0x4bd792['getChanges']()){const _0x5096d5='attribute'==_0x36510b['type']?_0x36510b['range']['start']['parent']:_0x36510b['position']['parent'];_0x5096d5['is']('element','footnoteDefinition')&&_0x488fec['add'](_0x5096d5);}for(const _0x444e2c of _0x488fec['values']()){const _0x4f3304=Array['from'](_0x444e2c['getChildren']())['filter'](_0x56e97a=>v(_0x56e97a,_0x1ee3a0['mapper']));for(const _0x16bf02 of _0x4f3304)_0x1ee3a0['reconvertItem'](_0x16bf02);}}(_0x3b8f0a['model'],_0x3b8f0a['editing']);})):(_0x82427['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x82427['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x218a6a,{writer:_0x2f0eca})=>{const _0xcb6f6d=_0x2f0eca['createContainerElement']('span');return _0x2f0eca['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xcb6f6d),_0xcb6f6d;}}));}['_defineKeyboardHandlers'](){const {editor:_0x523fc4}=this,{editing:_0x5cd15f,t:t}=_0x523fc4,_0x30b25c=_0x523fc4['model']['document']['selection'];_0x523fc4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x523fc4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5cd15f['view']['document'],'enter',(_0x19e9ed,_0x7e4c8e)=>{const _0x4dc7b9=function(_0x26656d){const _0x33096a=_0x26656d['getSelectedElement']();if(_0x33096a?.['is']('element','footnoteRef'))return _0x33096a;return null;}(_0x30b25c);if(_0x4dc7b9){const _0x570974=_0x4dc7b9['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x570974),_0x7e4c8e['preventDefault'](),_0x19e9ed['stop']();}},{'context':_0x474105});}['_defineClickHandlers'](){const {editor:_0x199fde}=this,{editing:_0xf12f3f}=_0x199fde;_0x199fde['editing']['view']['addObserver'](_0x34156a),_0x199fde['editing']['view']['addObserver'](_0x3bcdbf);let _0x8ff6a6=!0x1;this['listenTo'](_0xf12f3f['view']['document'],'pointerdown',(_0x5954cd,_0x77adce)=>{const {target:_0x2f717f}=_0x77adce,_0x492eb1=_0xf12f3f['view']['document']['selection'];_0x8ff6a6=!!(_0x2f717f?.['is']('element','a')&&_0x2f717f['parent']?.['is']('element','sup')&&_0x2f717f['parent']['hasClass']('footnote'))&&_0x492eb1['getSelectedElement']()===_0x2f717f['parent'];},{'priority':'high'}),this['listenTo'](_0xf12f3f['view']['document'],'click',(_0x31ba53,_0x3c9c1a)=>{const {target:_0x54209d}=_0x3c9c1a;if(!_0x54209d?.['is']('element','a'))return;if(_0x54209d['parent']?.['is']('element','sup')&&_0x54209d['parent']['hasClass']('footnote')&&!_0x8ff6a6)return void _0x3c9c1a['preventDefault']();let _0x512f6d=_0x54209d['getAttribute']('href');if(!_0x512f6d?.['startsWith']('#'))return;_0x512f6d=_0x512f6d['slice'](0x1);let _0x1a0afa=!0x1;(_0x512f6d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x512f6d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x512f6d))&&(_0x1a0afa=!0x0),_0x1a0afa&&(_0x3c9c1a['preventDefault'](),_0x31ba53['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xbc234f}={}){return(_0x514922,{writer:_0x26790c})=>{if(!g(_0x514922))return null;if(!_0xbc234f)return _0x26790c['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5cf26d=_0x26790c['createContainerElement']('p');return _0x26790c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5cf26d),_0x5cf26d;};}function g(_0x564cd2){const {parent:_0x573879}=_0x564cd2;if(!_0x573879?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x573879['childCount'])return!0x1;for(const _0x5780ea of _0x564cd2['getAttributeKeys']())if(!_0x5780ea['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5780ea)return!0x1;return!0x0;}function v(_0x212253,_0x129feb){if(!_0x212253['is']('element','paragraph'))return!0x1;const _0x6544b1=_0x129feb['toViewElement'](_0x212253);return!!_0x6544b1&&g(_0x212253)!==_0x6544b1['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x131d94){return _0x474105(_0x131d94)&&_0x131d94['is']('containerElement')&&!!_0x131d94['getCustomProperty']('footnotesDefinitions');}function D(_0x2adf93,_0x19d5c7={}){const _0x5a3873=_0x2adf93['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x192eb5=_0x2adf93['createContainerElement']('ol',{'class':'footnotes-list'},_0x2adf93['createSlot']());return _0x2adf93['createContainerElement']('div',{'class':'footnotes',..._0x19d5c7},[_0x5a3873,_0x192eb5]);}function b(_0x3275c6,_0x3f61cb){const _0x39505b=_0x3275c6['getAttribute']('footnoteId'),_0x35fe2e=_0x3275c6['getAttribute']('footnoteCounter'),_0x2ab5a0=_0x3f61cb['createUIElement']('a',{'href':'#'+_0x39505b},function(_0x3d3414){const _0x5d944a=this['toDomElement'](_0x3d3414);return _0x5d944a['textContent']=_0x35fe2e,_0x5d944a;}),_0x3c07e6=_0x3f61cb['createContainerElement']('sup',{'id':'ref-'+_0x39505b,'class':'footnote'},[_0x2ab5a0]);return _0x3c07e6['getFillerOffset']=()=>null,_0x3c07e6;}function y(_0x3ecb76,_0x38b1f8,_0x36b77c,{dataPipeline:_0x292620}={}){const {t:t}=_0x36b77c,_0x456f49=_0x3ecb76['getAttribute']('footnoteId'),_0x201d3a=_0x38b1f8['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x456f49},function(_0x55243f){const _0x580b65=this['toDomElement'](_0x55243f);return _0x580b65['innerText']='^',_0x580b65;}),_0x29e502=_0x292620?_0x38b1f8['createContainerElement']('div',{'class':'footnote-content'}):_0x2428b4(_0x38b1f8['createEditableElement']('div',{'class':'footnote-content'}),_0x38b1f8,{'label':t('Footnote\x20content.')});return _0x38b1f8['insert'](_0x38b1f8['createPositionAt'](_0x29e502,0x0),_0x38b1f8['createSlot']()),_0x38b1f8['createContainerElement']('li',{'class':'footnote-definition','id':_0x456f49},[_0x201d3a,_0x29e502]);}
|
|
23
|
+
import{Plugin as _0x3ffc0e}from'ckeditor5/src/core.js';import{isWidget as _0x112891,toWidget as _0x4714d5,toWidgetEditable as _0x46f47d}from'ckeditor5/src/widget.js';import{uid as _0x341d3a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x28fdce,ClickObserver as _0x1bac55}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x55c7e6}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2c16be}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3ffc0e{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x55c7e6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd8a72b}=this;_0xd8a72b['config']['define']('footnotes.multiBlock',!0x0),_0xd8a72b['commands']['add']('insertFootnote',new _0x2c16be(_0xd8a72b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1d7605){const _0x12f6c3=_0x4872e5([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]),_0x21e381=0x47a28506,_0x382a1c=0x47a50256^_0x21e381,_0xb635ba=window[_0x4872e5([0x44,0x61,0x74,0x65])][_0x4872e5([0x6e,0x6f,0x77])](),_0x144fca=_0x1d7605[_0x4872e5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4eb92c=new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x482a27=>{_0x144fca[_0x4872e5([0x6f,0x6e,0x63,0x65])](_0x4872e5([0x72,0x65,0x61,0x64,0x79]),_0x482a27);}),_0xb16b62={[_0x4872e5([0x6b,0x74,0x79])]:_0x4872e5([0x45,0x43]),[_0x4872e5([0x75,0x73,0x65])]:_0x4872e5([0x73,0x69,0x67]),[_0x4872e5([0x63,0x72,0x76])]:_0x4872e5([0x50,0x2d,0x32,0x35,0x36]),[_0x4872e5([0x78])]:_0x4872e5([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]),[_0x4872e5([0x79])]:_0x4872e5([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]),[_0x4872e5([0x61,0x6c,0x67])]:_0x4872e5([0x45,0x53,0x32,0x35,0x36])},_0x319b59=_0x144fca[_0x4872e5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4872e5([0x67,0x65,0x74])](_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa00ce2(){let _0x2abc94,_0x359fa2=null,_0x5beb2e=null;try{if(_0x319b59==_0x4872e5([0x47,0x50,0x4c]))return _0x4872e5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2abc94=_0x50ccac(),!_0x2abc94)return _0x4872e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2abc94[_0x4872e5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5beb2e=_0x1cf17f(_0x2abc94[_0x4872e5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2abc94[_0x4872e5([0x6a,0x74,0x69])])),await _0x278327()?_0x13a138()?_0x4aac1f()?_0x4872e5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47171f()?(_0x2abc94[_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4872e5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x359fa2=_0x4200c8(_0x4872e5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x274ef8()):_0x4872e5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4872e5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4872e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4872e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aac1f(){const _0x2f65c1=[_0x4872e5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4872e5([0x74,0x72,0x69,0x61,0x6c])][_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2abc94[_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb635ba/0x3e8:0xe10*_0x382a1c;return _0x2abc94[_0x4872e5([0x65,0x78,0x70])]<_0x2f65c1;}function _0x13a138(){const _0x34c275=_0x2abc94[_0x4872e5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34c275&&(!!_0x34c275[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4872e5([0x2a]))||!!_0x34c275[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4872e5([0x46,0x4f,0x4f])));}function _0x47171f(){const _0x5eb2de=_0x2abc94[_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5eb2de||0x0==_0x5eb2de[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa19094}=new URL(window[_0x4872e5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5eb2de[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa19094))return!0x0;const _0x55d773=_0xa19094[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e]));return _0x5eb2de[_0x4872e5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b62a7=>_0x4b62a7[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4872e5([0x2a])))[_0x4872e5([0x6d,0x61,0x70])](_0x20dc67=>_0x20dc67[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e])))[_0x4872e5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2607fc=>_0x2607fc[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x55d773[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4872e5([0x6d,0x61,0x70])](_0x3a4137=>Array(_0x55d773[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a4137[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4872e5([0x66,0x69,0x6c,0x6c])](_0x3a4137[0x0]===_0x4872e5([0x2a])?_0x4872e5([0x2a]):'')[_0x4872e5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a4137))[_0x4872e5([0x73,0x6f,0x6d,0x65])](_0x2976b6=>_0x55d773[_0x4872e5([0x65,0x76,0x65,0x72,0x79])]((_0x532e0e,_0x5f0ab9)=>_0x2976b6[_0x5f0ab9]===_0x532e0e||_0x2976b6[_0x5f0ab9]===_0x4872e5([0x2a])));}function _0x274ef8(){return _0x359fa2&&_0x5beb2e?new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46e559,_0x2d921e)=>{_0x359fa2[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x46e559,_0x2d921e),_0x5beb2e[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x2bae9c=>{_0x2bae9c!=_0x4872e5([0x56,0x61,0x6c,0x69,0x64])&&_0x46e559(_0x2bae9c);},_0x2d921e);}):_0x359fa2||_0x5beb2e||_0x4872e5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cf17f(_0x425fb6,_0x47e9e2){return new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2968db=>{if(_0x1a0460())return _0x2968db(_0x4872e5([0x56,0x61,0x6c,0x69,0x64]));_0x4b6b95(),_0x144fca[_0x4872e5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4872e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52b690=!0x1;const _0x2d5767=_0x341d3a();function _0xbeda9a(_0x509d1e){return!!_0x509d1e&&(typeof _0x509d1e===_0x4872e5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x509d1e===_0x4872e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x509d1e[_0x4872e5([0x74,0x68,0x65,0x6e])]===_0x4872e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x509d1e[_0x4872e5([0x63,0x61,0x74,0x63,0x68])]===_0x4872e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30c058(_0x959aba){_0x23733a(_0x959aba)[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x119a68=>{if(!_0x119a68||_0x119a68[_0x4872e5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4872e5([0x6f,0x6b]))return _0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34ebc7(_0x4abb84(_0x2d5767+_0x47e9e2))!=_0x119a68[_0x4872e5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4872e5([0x56,0x61,0x6c,0x69,0x64]);})[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x5633ad=>(_0x6fb770(),_0x5633ad),()=>{const _0x436494=_0x39e891();return null==_0x436494?(_0x6fb770(),_0x4872e5([0x56,0x61,0x6c,0x69,0x64])):_0x4872e5(_0xb635ba-_0x436494>(0x63ae0106^_0x21e381)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x2968db)[_0x4872e5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2968db(_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5222e5=0x47946b86^_0x21e381;function _0x6fb770(){const _0x325c06=_0x4872e5([0x6c,0x6c,0x63,0x74,0x2d])+_0x34ebc7(_0x4abb84(_0x425fb6)),_0x472154=_0x4818b6(_0x34ebc7(window[_0x4872e5([0x4d,0x61,0x74,0x68])][_0x4872e5([0x63,0x65,0x69,0x6c])](_0xb635ba/_0x5222e5)));window[_0x4872e5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4872e5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325c06,_0x472154);}function _0x39e891(){const _0x5803ac=_0x4872e5([0x6c,0x6c,0x63,0x74,0x2d])+_0x34ebc7(_0x4abb84(_0x425fb6)),_0xe48b96=window[_0x4872e5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4872e5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5803ac);return _0xe48b96?window[_0x4872e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4818b6(_0xe48b96),0x10)*_0x5222e5:null;}function _0x23733a(_0x39ac7e){return new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443710,_0x3d3c46)=>{_0x39ac7e[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x443710,_0x3d3c46),window[_0x4872e5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d3c46,0x47a351c6^_0x21e381);});}}_0x144fca[_0x4872e5([0x6f,0x6e])](_0x4872e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42c2ea,_0x4ddf55)=>{if(_0x4ddf55[0x0]!=_0x425fb6)return _0x2968db(_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ddf55[0x1]={..._0x4ddf55[0x1],[_0x4872e5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d5767};},{[_0x4872e5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4872e5([0x68,0x69,0x67,0x68])}),_0x144fca[_0x4872e5([0x6f,0x6e])](_0x4872e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x585886=>{_0xbeda9a(_0x585886[_0x4872e5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52b690=!0x0,_0x30c058(_0x585886[_0x4872e5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4872e5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4872e5([0x6c,0x6f,0x77])}),_0x4eb92c[_0x4872e5([0x74,0x68,0x65,0x6e])](()=>{_0x52b690||_0x2968db(_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a0460(){return _0x144fca[_0x4872e5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4872e5([0x76,0x69,0x65,0x77])][_0x4872e5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4872e5([0x61,0x75,0x74,0x6f]);}function _0x4b6b95(){_0x144fca[_0x4872e5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4872e5([0x76,0x69,0x65,0x77])][_0x4872e5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4872e5([0x61,0x75,0x74,0x6f]);}}function _0x4200c8(_0x3e4c5a){const _0xa494e4=[new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30077f=>setTimeout(_0x30077f,0x47abbbca^_0x21e381)),_0x4eb92c[_0x4872e5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd7e1=>{let _0x380266=0x0;_0x144fca[_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4872e5([0x6f,0x6e])](_0x4872e5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5db48d,_0x3d22f6)=>{_0x3d22f6[0x0][_0x4872e5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x380266++,_0x380266==(0x47a280ee^_0x21e381)&&(_0x2cd7e1(),_0x5db48d[_0x4872e5([0x6f,0x66,0x66])]());});}))];return window[_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4872e5([0x72,0x61,0x63,0x65])](_0xa494e4)[_0x4872e5([0x74,0x68,0x65,0x6e])](()=>_0x3e4c5a);}async function _0x5ee6c7(){await _0x4eb92c,_0x144fca[_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4872e5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xdb9274,_0x144fca[_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4872e5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xdb9274,_0x144fca[_0x4872e5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26f038(_0x521196){const _0x5844ac=_0x3e9c66();_0x144fca[_0x5844ac]=_0x4872e5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x521196,_0x521196!=_0x4872e5([0x56,0x61,0x6c,0x69,0x64])&&_0x5ee6c7();}function _0x3e9c66(){const _0x2d0689=window[_0x4872e5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4872e5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4872e5([0x6e,0x6f,0x77])]())[_0x4872e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4872e5([0x2e]),'');let _0x4b9257=_0x4872e5([0x75]);for(let _0x1dc538=0x0;_0x1dc538<_0x2d0689[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dc538+=0x2){let _0x39a813=window[_0x4872e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d0689[_0x4872e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1dc538,_0x1dc538+0x2));_0x39a813>=_0x12f6c3[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39a813-=_0x12f6c3[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b9257+=_0x12f6c3[_0x39a813];}return _0x4b9257;}function _0x50ccac(){const _0x3a6e35=_0x319b59[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e]));if(0x3!=_0x3a6e35[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40216f(_0x3a6e35[0x1]);function _0x40216f(_0x3171f4){const _0x588fa3=_0x26f7c1(_0x3171f4);return _0x588fa3&&_0x36071d()?_0x588fa3:null;function _0x36071d(){const _0x63d302=_0x588fa3[_0x4872e5([0x6a,0x74,0x69])],_0x49787f=window[_0x4872e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x63d302[_0x4872e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x63d302[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3afdc4={..._0x588fa3,[_0x4872e5([0x6a,0x74,0x69])]:_0x63d302[_0x4872e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x63d302[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3afdc4[_0x4872e5([0x76,0x63])],_0x4abb84(_0x3afdc4)==_0x49787f;}}}async function _0x278327(){let _0x1efe0f=!0x0;try{const _0x2cbe59=_0x319b59[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e])),[_0x40bdd1,_0x35a60f,_0x195781]=_0x2cbe59;return _0x144eca(_0x40bdd1),await _0x2bdc8b(_0x40bdd1,_0x35a60f,_0x195781),_0x1efe0f;}catch{return!0x1;}function _0x144eca(_0x5470ae){const _0x147473=_0x26f7c1(_0x5470ae);_0x147473&&_0x147473[_0x4872e5([0x61,0x6c,0x67])]==_0x4872e5([0x45,0x53,0x32,0x35,0x36])||(_0x1efe0f=!0x1);}async function _0x2bdc8b(_0xa005cf,_0x5e0710,_0x57e562){const _0x36f4ab=window[_0x4872e5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4872e5([0x66,0x72,0x6f,0x6d])](_0x3705d7(_0x57e562),_0x1d0b1f=>_0x1d0b1f[_0x4872e5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bb4b4=new window[(_0x4872e5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4872e5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa005cf+_0x4872e5([0x2e])+_0x5e0710),_0x5d1bd1=window[_0x4872e5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4872e5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d1bd1)return;const _0x354ca2=await _0x5d1bd1[_0x4872e5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4872e5([0x6a,0x77,0x6b]),_0xb16b62,{[_0x4872e5([0x6e,0x61,0x6d,0x65])]:_0x4872e5([0x45,0x43,0x44,0x53,0x41]),[_0x4872e5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4872e5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4872e5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d1bd1[_0x4872e5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4872e5([0x6e,0x61,0x6d,0x65])]:_0x4872e5([0x45,0x43,0x44,0x53,0x41]),[_0x4872e5([0x68,0x61,0x73,0x68])]:{[_0x4872e5([0x6e,0x61,0x6d,0x65])]:_0x4872e5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x354ca2,_0x36f4ab,_0x3bb4b4)||(_0x1efe0f=!0x1);}}function _0x26f7c1(_0x3922c8){return _0x3922c8[_0x4872e5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4872e5([0x65,0x79]))?JSON[_0x4872e5([0x70,0x61,0x72,0x73,0x65])](_0x3705d7(_0x3922c8)):null;}function _0x3705d7(_0x6d1fdc){return window[_0x4872e5([0x61,0x74,0x6f,0x62])](_0x6d1fdc[_0x4872e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4872e5([0x2b]))[_0x4872e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4872e5([0x2f])));}function _0x4abb84(_0x9a7198){let _0x5ef588=0x1505;function _0x3de934(_0x27e450){for(let _0x583e9e=0x0;_0x583e9e<_0x27e450[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x583e9e++){const _0x128d2d=_0x27e450[_0x4872e5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x583e9e);_0x5ef588=(_0x5ef588<<0x5)+_0x5ef588+_0x128d2d,_0x5ef588&=_0x5ef588;}}function _0x2a1de8(_0x1c0569){Array[_0x4872e5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c0569)?_0x1c0569[_0x4872e5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a1de8):_0x1c0569&&typeof _0x1c0569==_0x4872e5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4872e5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c0569)[_0x4872e5([0x73,0x6f,0x72,0x74])]()[_0x4872e5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c5f95,_0x16bec4])=>{_0x3de934(_0x5c5f95),_0x2a1de8(_0x16bec4);}):_0x3de934(window[_0x4872e5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c0569));}return _0x2a1de8(_0x9a7198),_0x5ef588>>>0x0;}function _0x34ebc7(_0x576e55){return _0x576e55[_0x4872e5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4872e5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4872e5([0x30]));}function _0x4818b6(_0xfa8fd4){return _0xfa8fd4[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4872e5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4872e5([0x6a,0x6f,0x69,0x6e])]('');}function _0xdb9274(){}function _0x4872e5(_0x1ae4b0){return _0x1ae4b0['map'](_0x4d576d=>String['fromCharCode'](_0x4d576d))['join']('');}_0x26f038(await _0xa00ce2());}(this);}['_moveSelectionToFootnoteDefinition'](_0x87ec38){const {plugins:_0x4fa518,editing:_0x5b4502,model:_0x2d7fb2}=this['editor'],_0x393f91=_0x4fa518['get'](_0x55c7e6)['getFootnote'](_0x87ec38);return!!_0x393f91&&(_0x2d7fb2['change'](_0x172ac3=>{_0x172ac3['setSelection'](_0x172ac3['createPositionAt'](_0x393f91['definition'],'end'));}),_0x5b4502['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3b01a6){const {plugins:_0xd0a470,editing:_0x4d8251,model:_0x299ffd}=this['editor'],_0x1c7c08=_0xd0a470['get'](_0x55c7e6)['getFootnote'](_0x3b01a6);return!!_0x1c7c08&&(_0x299ffd['change'](_0x397685=>{_0x397685['setSelection'](_0x1c7c08['reference'],'on');}),_0x4d8251['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1e1ba3}=this['editor']['model'],_0x3b59a8=this['editor']['config']['get']('footnotes.multiBlock');_0x1e1ba3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1e1ba3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1e1ba3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3b59a8?_0x1e1ba3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1e1ba3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1e1ba3['addChildCheck'](_0x4cc873=>{for(const _0x14ad57 of _0x4cc873)if('footnoteDefinition'===_0x14ad57['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x26d2aa}=this,{conversion:_0x52848f,editing:_0x212622}=_0x26d2aa,{t:t}=_0x26d2aa['locale'];_0x52848f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3766b1,{writer:_0x430dd3,consumable:_0x31c43d})=>{const _0x2f655b=_0x3766b1['getChild'](0x0);if(!_0x2f655b||!_0x2f655b['is']('element','a'))return null;const _0x54de87=_0x2f655b['getAttribute']('href')||'';if(!_0x54de87['startsWith']('#'))return null;const _0x214f86=_0x54de87['replace'](/^#/,'');if(!_0x214f86)return null;_0x31c43d['consume'](_0x2f655b,{'name':!0x0,'attributes':['href']});for(const {item:_0x4ebd3e}of _0x212622['view']['createRangeIn'](_0x2f655b))_0x4ebd3e['is']('$textProxy')?_0x31c43d['consume'](_0x4ebd3e['textNode'],{'name':!0x0}):_0x4ebd3e['is']('element')&&_0x31c43d['consume'](_0x4ebd3e,{'name':!0x0});return _0x430dd3['createElement']('footnoteRef',{'footnoteId':_0x214f86});}}),_0x52848f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5c71a6,{writer:_0x49b18d})=>b(_0x5c71a6,_0x49b18d)}),_0x52848f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5134bc,{writer:_0x3f7b73})=>{const _0x16ff83=_0x5134bc['getAttribute']('footnoteCounter');return _0x4714d5(b(_0x5134bc,_0x3f7b73),_0x3f7b73,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x16ff83)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1b81ab}=this,{t:t}=_0x1b81ab['locale'],{conversion:_0xeec260}=_0x1b81ab;_0xeec260['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xeec260['for']('upcast')['add'](_0x4ece0a=>{_0x4ece0a['on']('element:ol',(_0x5a5d06,_0x45e789,_0x2857af)=>{const _0x37726c=_0x45e789['viewItem'];if(!_0x37726c['hasClass']('footnotes-list')||!_0x45e789['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2857af['consumable']['consume'](_0x37726c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xb2cfa0,modelCursor:_0x11332e}=_0x2857af['convertChildren'](_0x45e789['viewItem'],_0x45e789['modelCursor']);_0x45e789['modelRange']=_0xb2cfa0,_0x45e789['modelCursor']=_0x11332e;}),_0x4ece0a['on']('element:hr',(_0x16aad8,_0xe3ba47,_0xe51ec4)=>{const _0x47ab52=_0xe3ba47['viewItem'];_0x47ab52['hasClass']('footnotes-divider')&&_0xe3ba47['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xe51ec4['consumable']['consume'](_0x47ab52,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xeec260['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x498425,{writer:_0x1c1d6f})=>D(_0x1c1d6f)}),_0xeec260['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ceafa,{writer:_0x2e039b})=>{const _0x5f4db9=D(_0x2e039b,{'data-footnotes-list-label':t('Footnotes')}),_0x3f23bb=_0x4714d5(_0x5f4db9,_0x2e039b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2e039b['setCustomProperty']('footnotesDefinitions',!0x0,_0x3f23bb),_0x3f23bb;}});}['_defineDefinitionConverters'](){const {editor:_0x52b2f8}=this,{conversion:_0x3c7677,locale:_0x88f0eb}=_0x52b2f8,_0x3fc7ce=_0x52b2f8['config']['get']('footnotes.multiBlock');_0x3c7677['for']('upcast')['add'](_0x5c718e=>{_0x5c718e['on']('element:li',(_0x881aae,_0x4fab3a,_0x10ba58)=>{const _0x380f8e=_0x4fab3a['viewItem'];if(!_0x380f8e['hasClass']('footnote-definition')||!_0x380f8e['getAttribute']('id'))return;const _0x4a2a5c=_0x380f8e['parent'];if(!_0x4a2a5c['is']('element','ol')||!_0x4a2a5c['hasClass']('footnotes-list'))return;if(!_0x10ba58['consumable']['test'](_0x380f8e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x46261a=_0x10ba58['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x380f8e['getAttribute']('id')});if(!_0x10ba58['safeInsert'](_0x46261a,_0x4fab3a['modelCursor']))return;_0x10ba58['consumable']['consume'](_0x380f8e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2f7cd2=Array['from'](_0x380f8e['getChildren']())['find'](_0x995016=>_0x995016['is']('element')&&_0x995016['hasClass']('footnote-content'));for(const _0x550594 of _0x380f8e['getChildren']())_0x550594['is']('element')&&(_0x10ba58['consumable']['consume'](_0x550594,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x10ba58['consumable']['consume'](_0x550594,{'name':!0x0,'classes':'footnote-content'}));if(_0x2f7cd2){if(_0x3fc7ce)_0x10ba58['convertChildren'](_0x2f7cd2,_0x46261a);else{const _0x572c77=_0x10ba58['writer']['createElement']('footnoteInlineContent');_0x10ba58['writer']['insert'](_0x572c77,_0x46261a),_0x10ba58['convertChildren'](_0x2f7cd2,_0x572c77);}}_0x10ba58['updateConversionResult'](_0x46261a,_0x4fab3a);});}),_0x3c7677['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1fc19d,{writer:_0x2c97d8})=>y(_0x1fc19d,_0x2c97d8,_0x88f0eb,{'dataPipeline':!0x0})}),_0x3c7677['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4dc6c0,{writer:_0xf7c02})=>y(_0x4dc6c0,_0xf7c02,_0x88f0eb)});}['_defineBogusParagraphConverters'](){const {editor:_0x44f894}=this,{conversion:_0x3ae317}=_0x44f894;_0x44f894['config']['get']('footnotes.multiBlock')?(_0x3ae317['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3ae317['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x44f894['model']['document'],'change:data',()=>{!function(_0xaf7172,_0x439b41){const _0x13946a=_0xaf7172['document']['differ'],_0x2f3aff=new Set();for(const _0x2e6d31 of _0x13946a['getChanges']()){const _0x198f9e='attribute'==_0x2e6d31['type']?_0x2e6d31['range']['start']['parent']:_0x2e6d31['position']['parent'];_0x198f9e['is']('element','footnoteDefinition')&&_0x2f3aff['add'](_0x198f9e);}for(const _0xa7543d of _0x2f3aff['values']()){const _0x5edc2a=Array['from'](_0xa7543d['getChildren']())['filter'](_0x36c683=>v(_0x36c683,_0x439b41['mapper']));for(const _0x1fda24 of _0x5edc2a)_0x439b41['reconvertItem'](_0x1fda24);}}(_0x44f894['model'],_0x44f894['editing']);})):(_0x3ae317['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3ae317['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5f52ca,{writer:_0x340df6})=>{const _0x27df06=_0x340df6['createContainerElement']('span');return _0x340df6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27df06),_0x27df06;}}));}['_defineKeyboardHandlers'](){const {editor:_0x8ed6a3}=this,{editing:_0x38f3fd,t:t}=_0x8ed6a3,_0x127ff4=_0x8ed6a3['model']['document']['selection'];_0x8ed6a3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x8ed6a3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x38f3fd['view']['document'],'enter',(_0x357acc,_0x23929d)=>{const _0x1b66b8=function(_0x50cfaf){const _0x4f5c03=_0x50cfaf['getSelectedElement']();if(_0x4f5c03?.['is']('element','footnoteRef'))return _0x4f5c03;return null;}(_0x127ff4);if(_0x1b66b8){const _0x14aaec=_0x1b66b8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x14aaec),_0x23929d['preventDefault'](),_0x357acc['stop']();}},{'context':_0x112891});}['_defineClickHandlers'](){const {editor:_0x201fcf}=this,{editing:_0x384e73}=_0x201fcf;_0x201fcf['editing']['view']['addObserver'](_0x28fdce),_0x201fcf['editing']['view']['addObserver'](_0x1bac55);let _0x3aadb7=!0x1;this['listenTo'](_0x384e73['view']['document'],'pointerdown',(_0x316792,_0x3eac37)=>{const {target:_0x51a077}=_0x3eac37,_0x3ef54b=_0x384e73['view']['document']['selection'];_0x3aadb7=!!(_0x51a077?.['is']('element','a')&&_0x51a077['parent']?.['is']('element','sup')&&_0x51a077['parent']['hasClass']('footnote'))&&_0x3ef54b['getSelectedElement']()===_0x51a077['parent'];},{'priority':'high'}),this['listenTo'](_0x384e73['view']['document'],'click',(_0x2560fe,_0x42bb40)=>{const {target:_0x1cc000}=_0x42bb40;if(!_0x1cc000?.['is']('element','a'))return;if(_0x1cc000['parent']?.['is']('element','sup')&&_0x1cc000['parent']['hasClass']('footnote')&&!_0x3aadb7)return void _0x42bb40['preventDefault']();let _0x23b5f0=_0x1cc000['getAttribute']('href');if(!_0x23b5f0?.['startsWith']('#'))return;_0x23b5f0=_0x23b5f0['slice'](0x1);let _0x14d816=!0x1;(_0x23b5f0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x23b5f0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x23b5f0))&&(_0x14d816=!0x0),_0x14d816&&(_0x42bb40['preventDefault'](),_0x2560fe['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1a411c}={}){return(_0x16aaee,{writer:_0x3173d4})=>{if(!g(_0x16aaee))return null;if(!_0x1a411c)return _0x3173d4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x34566c=_0x3173d4['createContainerElement']('p');return _0x3173d4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x34566c),_0x34566c;};}function g(_0x379f9c){const {parent:_0x20b79b}=_0x379f9c;if(!_0x20b79b?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x20b79b['childCount'])return!0x1;for(const _0x23cc4f of _0x379f9c['getAttributeKeys']())if(!_0x23cc4f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x23cc4f)return!0x1;return!0x0;}function v(_0x157007,_0x437f94){if(!_0x157007['is']('element','paragraph'))return!0x1;const _0x347533=_0x437f94['toViewElement'](_0x157007);return!!_0x347533&&g(_0x157007)!==_0x347533['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x230330){return _0x112891(_0x230330)&&_0x230330['is']('containerElement')&&!!_0x230330['getCustomProperty']('footnotesDefinitions');}function D(_0x20921a,_0x3d49c4={}){const _0x3c8c2a=_0x20921a['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x31646d=_0x20921a['createContainerElement']('ol',{'class':'footnotes-list'},_0x20921a['createSlot']());return _0x20921a['createContainerElement']('div',{'class':'footnotes',..._0x3d49c4},[_0x3c8c2a,_0x31646d]);}function b(_0xc63f02,_0xcd5454){const _0x21b9ba=_0xc63f02['getAttribute']('footnoteId'),_0x264ddc=_0xc63f02['getAttribute']('footnoteCounter'),_0x2f1d8d=_0xcd5454['createUIElement']('a',{'href':'#'+_0x21b9ba},function(_0x63e3b6){const _0x209648=this['toDomElement'](_0x63e3b6);return _0x209648['textContent']=_0x264ddc,_0x209648;}),_0xb16a6=_0xcd5454['createContainerElement']('sup',{'id':'ref-'+_0x21b9ba,'class':'footnote'},[_0x2f1d8d]);return _0xb16a6['getFillerOffset']=()=>null,_0xb16a6;}function y(_0x1f03f5,_0x18f805,_0x59fcd5,{dataPipeline:_0x331a99}={}){const {t:t}=_0x59fcd5,_0xc89ce3=_0x1f03f5['getAttribute']('footnoteId'),_0x485fc9=_0x18f805['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xc89ce3},function(_0x49b320){const _0x51c9a=this['toDomElement'](_0x49b320);return _0x51c9a['innerText']='^',_0x51c9a;}),_0x48a07d=_0x331a99?_0x18f805['createContainerElement']('div',{'class':'footnote-content'}):_0x46f47d(_0x18f805['createEditableElement']('div',{'class':'footnote-content'}),_0x18f805,{'label':t('Footnote\x20content.')});return _0x18f805['insert'](_0x18f805['createPositionAt'](_0x48a07d,0x0),_0x18f805['createSlot']()),_0x18f805['createContainerElement']('li',{'class':'footnote-definition','id':_0xc89ce3},[_0x485fc9,_0x48a07d]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a4592=_0x39a1;(function(_0xea941e,_0xec73ea){const _0x46ecfd=_0x39a1,_0x327de2=_0xea941e();while(!![]){try{const _0x3eb239=-parseInt(_0x46ecfd(0x151))/0x1+-parseInt(_0x46ecfd(0x144))/0x2+-parseInt(_0x46ecfd(0x14a))/0x3*(-parseInt(_0x46ecfd(0x13e))/0x4)+parseInt(_0x46ecfd(0x14b))/0x5*(-parseInt(_0x46ecfd(0x14f))/0x6)+parseInt(_0x46ecfd(0x14d))/0x7*(-parseInt(_0x46ecfd(0x149))/0x8)+parseInt(_0x46ecfd(0x140))/0x9+parseInt(_0x46ecfd(0x13c))/0xa;if(_0x3eb239===_0xec73ea)break;else _0x327de2['push'](_0x327de2['shift']());}catch(_0x5888e2){_0x327de2['push'](_0x327de2['shift']());}}}(_0x5912,0x564be));function _0x39a1(_0x2d4cef,_0x591653){const _0x591263=_0x5912();return _0x39a1=function(_0x39a133,_0x3d63d5){_0x39a133=_0x39a133-0x13b;let _0x94d91a=_0x591263[_0x39a133];return _0x94d91a;},_0x39a1(_0x2d4cef,_0x591653);}import{Command as _0x2a8d6e}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x2bd785}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x2a8d6e{[_0x3a4592(0x143)](){const _0x109a8b=_0x3a4592,{editor:_0x57b7c3}=this,_0x184a10=_0x57b7c3[_0x109a8b(0x14e)][_0x109a8b(0x13f)](_0x2bd785)[_0x109a8b(0x14c)]();this[_0x109a8b(0x145)]=!!_0x184a10,this[_0x109a8b(0x13d)]=_0x184a10?.[_0x109a8b(0x146)](_0x109a8b(0x13b))??null;}[_0x3a4592(0x141)]({value:_0x314d89}){const _0x48c4b4=_0x3a4592,{editor:_0x4f5a44}=this,_0x4a9a27=_0x4f5a44[_0x48c4b4(0x14e)][_0x48c4b4(0x13f)](_0x2bd785),_0x407d0e=_0x4a9a27[_0x48c4b4(0x14c)]();_0x407d0e&&Number[_0x48c4b4(0x142)](_0x314d89)&&_0x4f5a44[_0x48c4b4(0x150)][_0x48c4b4(0x152)](_0x1fdc4a=>{const _0x523eab=_0x48c4b4;_0x1fdc4a[_0x523eab(0x148)](_0x523eab(0x13b),_0x314d89,_0x407d0e),_0x4a9a27[_0x523eab(0x147)](_0x1fdc4a);});}}function _0x5912(){const _0x3d44af=['footnotesListStart','18740470iPAcJn','value','164WvKPNK','get','1019799nVvTTq','execute','isInteger','refresh','909006oIdubG','isEnabled','getAttribute','_updateFootnotesCounters','setAttribute','136ppaKux','10497rPGxKu','5iwWssx','getFootnotesDefinitionsObjectElement','261191apHsEs','plugins','70302PEbaLI','model','676806zPJjKp','change'];_0x5912=function(){return _0x3d44af;};return _0x5912();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd1e869=_0x2eca;(function(_0x4304b5,_0x5acedf){const _0x3870d0=_0x2eca,_0x92571d=_0x4304b5();while(!![]){try{const _0x26cd9a=parseInt(_0x3870d0(0xe0))/0x1*(parseInt(_0x3870d0(0xf5))/0x2)+-parseInt(_0x3870d0(0xed))/0x3*(parseInt(_0x3870d0(0xf0))/0x4)+-parseInt(_0x3870d0(0xea))/0x5*(parseInt(_0x3870d0(0xe5))/0x6)+-parseInt(_0x3870d0(0xf7))/0x7*(parseInt(_0x3870d0(0xec))/0x8)+-parseInt(_0x3870d0(0xe9))/0x9*(parseInt(_0x3870d0(0xef))/0xa)+parseInt(_0x3870d0(0xee))/0xb*(parseInt(_0x3870d0(0xe3))/0xc)+parseInt(_0x3870d0(0xf6))/0xd;if(_0x26cd9a===_0x5acedf)break;else _0x92571d['push'](_0x92571d['shift']());}catch(_0x2dbce3){_0x92571d['push'](_0x92571d['shift']());}}}(_0x53aa,0xbcb3d));function _0x53aa(){const _0x240c34=['plugins','refresh','2Elsgrp','setAttribute','value','960krINHD','change','258WZIZYm','get','footnotesListStyle','isEnabled','27QiJYCt','143170URcHJq','model','7384JeMQap','267jIqgWN','171039nrmQrI','3071080FaEnLW','56756JdPKJN','includes','getFootnotesDefinitionsObjectElement','execute','getAttribute','974098cvOavQ','38225031eFlKcb','7357vofZDH','_updateFootnotesCounters'];_0x53aa=function(){return _0x240c34;};return _0x53aa();}import{Command as _0x43895d}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x3437ae}from'../footnotespropertiesconfig.js';function _0x2eca(_0x4a7e81,_0x32e84b){const _0x53aa5e=_0x53aa();return _0x2eca=function(_0x2eca9a,_0x48eff1){_0x2eca9a=_0x2eca9a-0xde;let _0x237f00=_0x53aa5e[_0x2eca9a];return _0x237f00;},_0x2eca(_0x4a7e81,_0x32e84b);}import{FootnotesTracker as _0x67cd9}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x43895d{[_0xd1e869(0xdf)](){const _0x5b1bc3=_0xd1e869,{editor:_0x3e3e70}=this,_0x3c794a=_0x3e3e70[_0x5b1bc3(0xde)][_0x5b1bc3(0xe6)](_0x67cd9)[_0x5b1bc3(0xf2)]();this[_0x5b1bc3(0xe8)]=!!_0x3c794a,this[_0x5b1bc3(0xe2)]=_0x3c794a?.[_0x5b1bc3(0xf4)](_0x5b1bc3(0xe7))??null;}[_0xd1e869(0xf3)]({value:_0x3c7fa3}){const _0x526f79=_0xd1e869,{editor:_0xe44b4f}=this,_0x5d266d=_0xe44b4f[_0x526f79(0xde)][_0x526f79(0xe6)](_0x67cd9),_0x5f3cc2=_0x5d266d[_0x526f79(0xf2)]();_0x5f3cc2&&_0x3437ae[_0x526f79(0xf1)](_0x3c7fa3)&&_0xe44b4f[_0x526f79(0xeb)][_0x526f79(0xe4)](_0xd98531=>{const _0x461150=_0x526f79;_0xd98531[_0x461150(0xe1)](_0x461150(0xe7),_0x3c7fa3,_0x5f3cc2),_0x5d266d[_0x461150(0xf8)](_0xd98531);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x157462=_0x54a4;(function(_0x51419c,_0x438790){const _0x59dd2f=_0x54a4,_0x32e5b7=_0x51419c();while(!![]){try{const _0x4f5654=-parseInt(_0x59dd2f(0x1ac))/0x1+parseInt(_0x59dd2f(0x1a8))/0x2+-parseInt(_0x59dd2f(0x1a4))/0x3*(-parseInt(_0x59dd2f(0x1a9))/0x4)+-parseInt(_0x59dd2f(0x1a6))/0x5*(-parseInt(_0x59dd2f(0x19e))/0x6)+-parseInt(_0x59dd2f(0x1a1))/0x7+-parseInt(_0x59dd2f(0x1a2))/0x8*(-parseInt(_0x59dd2f(0x1ae))/0x9)+-parseInt(_0x59dd2f(0x1aa))/0xa;if(_0x4f5654===_0x438790)break;else _0x32e5b7['push'](_0x32e5b7['shift']());}catch(_0xee11cc){_0x32e5b7['push'](_0x32e5b7['shift']());}}}(_0xd1eb,0x6a44a));function _0x54a4(_0x2c2143,_0x2695dc){const _0xd1ebc7=_0xd1eb();return _0x54a4=function(_0x54a4bf,_0x20dc3d){_0x54a4bf=_0x54a4bf-0x19d;let _0x537e7d=_0xd1ebc7[_0x54a4bf];return _0x537e7d;},_0x54a4(_0x2c2143,_0x2695dc);}function _0xd1eb(){const _0x9eb7b7=['5821361DhtaaQ','128dxLlTc','decimal-leading-zero','57HviaAH','upper-roman','3741380VJkDGk','lower-latin','1438514ozIZSz','15604GbYJSF','3197330wCQZQh','upper-alpha','87150UVbDUK','decimal','74322kWQQkY','lower-roman','6VwaTYA','lower-alpha','upper-latin'];_0xd1eb=function(){return _0x9eb7b7;};return _0xd1eb();}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x157462(0x1ad),_0x157462(0x1a3),_0x157462(0x1a7),_0x157462(0x1a0),_0x157462(0x19f),_0x157462(0x1ab),_0x157462(0x19d),_0x157462(0x1a5)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x284e75=_0x5b73;(function(_0x5ebed4,_0x36c5b3){const _0x4f1298=_0x5b73,_0x4b739d=_0x5ebed4();while(!![]){try{const _0x5f5a73=-parseInt(_0x4f1298(0xaa))/0x1+parseInt(_0x4f1298(0xa7))/0x2*(-parseInt(_0x4f1298(0xd7))/0x3)+parseInt(_0x4f1298(0xdf))/0x4+parseInt(_0x4f1298(0xa3))/0x5*(parseInt(_0x4f1298(0xdc))/0x6)+parseInt(_0x4f1298(0xc4))/0x7*(parseInt(_0x4f1298(0xa5))/0x8)+parseInt(_0x4f1298(0x96))/0x9+parseInt(_0x4f1298(0x85))/0xa*(-parseInt(_0x4f1298(0xae))/0xb);if(_0x5f5a73===_0x36c5b3)break;else _0x4b739d['push'](_0x4b739d['shift']());}catch(_0x2105a3){_0x4b739d['push'](_0x4b739d['shift']());}}}(_0x2b5a,0xeb761));import{Plugin as _0x493ba8}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x11eb53}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x258f75}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x4dbe23}from'../footnotestracker.js';import{FootnotesEditing as _0x3284ad}from'../footnotesediting.js';function _0x2b5a(){const _0x4bc5e8=['schema','max','_getDefaultStartIndex','lower-alpha','9060858PSMWqu','insert','footnotesListStyle','type','consume','removeAttribute','decimal','from','consumable','_updateFootnotesCounters','attribute:footnotesListStart:footnotesDefinitions','element','isNaN','4765aDKQSu','for','645272zMOLWq','upcast','517130VYYswS','position','_formatFootnoteListValue','1208231vKxnOo','hasAttribute','removeStyle','isOfficialPlugin','2365FqtYXv','hasClass','getChanges','name','footnotes-list','upper-latin','toUpperCase','_definePostfixer','editor','getItems','pluginName','_defineFormatter','setAttribute','parent','attribute:footnotesListStyle:footnotesDefinitions','footnotesListStart','getChildren','registerPostFixer','setFootnoteFormatter','item','footnotesStyle','find','154imSfJY','mapper','differ','$text','toLowerCase','downcast','isPremiumPlugin','lower-latin','footnotesDefinitions','modelCursor','viewItem','padStart','decimal-leading-zero','list-style-type','_getDefaultListStyle','getStyle','footnotes.footnotesProperties.defaultStartIndex','writer','define','18aaPPDj','add','get','plugins','_defineConverters','5286VBHAlV','init','fromCharCode','3528648RWxCub','nodeAfter','commands','footnotes.footnotesProperties.defaultListStyle','config','checkAttribute','parseInt','start','toViewElement','_defineSchema','upper-alpha','document','36230KpNHhD','upper-roman','getAttribute','createRangeOn','lower-roman','extend','requires','FootnotesPropertiesEditing','model','setStyle','footnotesStart','floor','element:ol'];_0x2b5a=function(){return _0x4bc5e8;};return _0x2b5a();}export class FootnotesPropertiesEditing extends _0x493ba8{static get[_0x284e75(0xb8)](){const _0x1450e8=_0x284e75;return _0x1450e8(0x8c);}static get[_0x284e75(0x8b)](){return[_0x3284ad,_0x4dbe23];}static get[_0x284e75(0xad)](){return!0x0;}static get[_0x284e75(0xca)](){return!0x0;}[_0x284e75(0xdd)](){const _0x20af76=_0x284e75,{editor:_0x2a6a9e}=this;_0x2a6a9e[_0x20af76(0xe3)][_0x20af76(0xd6)](_0x20af76(0xe2),_0x20af76(0x9c)),_0x2a6a9e[_0x20af76(0xe3)][_0x20af76(0xd6)](_0x20af76(0xd4),0x1),_0x2a6a9e[_0x20af76(0xe1)][_0x20af76(0xd8)](_0x20af76(0xc2),new _0x11eb53(_0x2a6a9e)),_0x2a6a9e[_0x20af76(0xe1)][_0x20af76(0xd8)](_0x20af76(0x8f),new _0x258f75(_0x2a6a9e)),this[_0x20af76(0x82)](),this[_0x20af76(0xdb)](),this[_0x20af76(0xb9)](),this[_0x20af76(0xb5)]();}[_0x284e75(0x82)](){const _0x3952eb=_0x284e75,{editor:_0x1aab82}=this,{schema:_0x4ded27}=_0x1aab82[_0x3952eb(0x8d)];_0x4ded27[_0x3952eb(0x8a)](_0x3952eb(0xcc),{'allowAttributes':[_0x3952eb(0x98),_0x3952eb(0xbd)]});}[_0x284e75(0xdb)](){const _0x491ef6=_0x284e75,{editor:_0x318888}=this,{conversion:_0x35e3d1,model:_0x8a32dd}=_0x318888,{schema:_0x35a4ff}=_0x8a32dd;_0x35e3d1[_0x491ef6(0xa4)](_0x491ef6(0xa6))[_0x491ef6(0xd8)](_0x2d4e02=>{const _0x34ad1c=_0x491ef6;_0x2d4e02['on'](_0x34ad1c(0x91),(_0x8594ff,_0x48cc2b,_0x4496c9)=>{const _0x1aeb2e=_0x34ad1c,_0x10c169=_0x48cc2b[_0x1aeb2e(0xce)],_0x4460db=_0x48cc2b[_0x1aeb2e(0xcd)]?.[_0x1aeb2e(0xbb)];_0x10c169[_0x1aeb2e(0xaf)](_0x1aeb2e(0xb2))&&_0x4460db?.['is'](_0x1aeb2e(0xa1),_0x1aeb2e(0xcc))&&(function(_0xaf9fc0,_0x16c1cc,_0x4a7142,_0x4da5f6){const _0x5ef3a6=_0x1aeb2e;if(!_0x4da5f6[_0x5ef3a6(0xe4)](_0x16c1cc,_0x5ef3a6(0xbd)))return;let _0x171e99=0x1;const _0x4e2153=_0x4a7142[_0x5ef3a6(0x9e)][_0x5ef3a6(0x9a)](_0xaf9fc0,{'attributes':_0x5ef3a6(0x80)});if(_0x4e2153){const _0x2590a6=Number[_0x5ef3a6(0xe5)](_0xaf9fc0[_0x5ef3a6(0x87)](_0x5ef3a6(0x80)),0xa);Number[_0x5ef3a6(0xa2)](_0x2590a6)||(_0x171e99=_0x2590a6);}!_0x4e2153&&_0x16c1cc[_0x5ef3a6(0xab)](_0x5ef3a6(0xbd))||_0x4a7142[_0x5ef3a6(0xd5)][_0x5ef3a6(0xba)](_0x5ef3a6(0xbd),_0x171e99,_0x16c1cc);}(_0x10c169,_0x4460db,_0x4496c9,_0x35a4ff),function(_0x18f494,_0x337220,_0x491dc6,_0x25fb4b){const _0x39d6b8=_0x1aeb2e;if(!_0x25fb4b[_0x39d6b8(0xe4)](_0x337220,_0x39d6b8(0x98)))return;let _0x173a74=_0x39d6b8(0x9c),_0xc196ca=!0x1;if(_0x491dc6[_0x39d6b8(0x9e)][_0x39d6b8(0x9a)](_0x18f494,{'attributes':_0x39d6b8(0x99)})){const _0x312720={0x1:_0x39d6b8(0x9c),'a':_0x39d6b8(0x95),'A':_0x39d6b8(0x83),'i':_0x39d6b8(0x89),'I':_0x39d6b8(0x86)}[_0x18f494[_0x39d6b8(0x87)](_0x39d6b8(0x99))];_0x312720&&(_0x173a74=_0x312720),_0xc196ca=!0x0;}_0x491dc6[_0x39d6b8(0x9e)][_0x39d6b8(0x9a)](_0x18f494,{'styles':_0x39d6b8(0xd1)})&&(_0x173a74=function(_0x4cd319){const _0x20daa7=_0x39d6b8;switch(_0x4cd319){case _0x20daa7(0x95):return _0x20daa7(0xcb);case _0x20daa7(0x83):return _0x20daa7(0xb3);default:return _0x4cd319;}}(_0x18f494[_0x39d6b8(0xd3)](_0x39d6b8(0xd1))),_0xc196ca=!0x0),!_0xc196ca&&_0x337220[_0x39d6b8(0xab)](_0x39d6b8(0x98))||_0x491dc6[_0x39d6b8(0xd5)][_0x39d6b8(0xba)](_0x39d6b8(0x98),_0x173a74,_0x337220);}(_0x10c169,_0x4460db,_0x4496c9,_0x35a4ff));});}),_0x35e3d1[_0x491ef6(0xa4)](_0x491ef6(0xc9))[_0x491ef6(0xd8)](_0x3bf4af=>{const _0xe2bf71=_0x491ef6;_0x3bf4af['on'](_0xe2bf71(0xa0),(_0x1a9d1e,_0x18e345,_0x544bad)=>{const _0x1c56b1=_0xe2bf71;if(!_0x544bad[_0x1c56b1(0x9e)][_0x1c56b1(0x9a)](_0x18e345[_0x1c56b1(0xc1)],_0x1a9d1e[_0x1c56b1(0xb1)]))return;const _0x2724ea=M(_0x18e345[_0x1c56b1(0xc1)],_0x544bad[_0x1c56b1(0xc5)]),{attributeNewValue:_0x489e79}=_0x18e345;null==_0x489e79||0x1===_0x489e79?_0x544bad[_0x1c56b1(0xd5)][_0x1c56b1(0x9b)](_0x1c56b1(0x80),_0x2724ea):_0x544bad[_0x1c56b1(0xd5)][_0x1c56b1(0xba)](_0x1c56b1(0x80),String(_0x489e79),_0x2724ea);}),_0x3bf4af['on'](_0xe2bf71(0xbc),(_0x579c69,_0x35acf7,_0x1f9045)=>{const _0x2da53f=_0xe2bf71;if(!_0x1f9045[_0x2da53f(0x9e)][_0x2da53f(0x9a)](_0x35acf7[_0x2da53f(0xc1)],_0x579c69[_0x2da53f(0xb1)]))return;const _0x4ac2b0=M(_0x35acf7[_0x2da53f(0xc1)],_0x1f9045[_0x2da53f(0xc5)]),{attributeNewValue:_0x31cb98}=_0x35acf7;_0x31cb98&&_0x2da53f(0x9c)!==_0x31cb98?_0x1f9045[_0x2da53f(0xd5)][_0x2da53f(0x8e)](_0x2da53f(0xd1),_0x31cb98,_0x4ac2b0):_0x1f9045[_0x2da53f(0xd5)][_0x2da53f(0xac)](_0x2da53f(0xd1),_0x4ac2b0);});});}[_0x284e75(0xb5)](){const _0x27b085=_0x284e75,{editor:_0x47e457}=this,{model:_0x40432e}=_0x47e457,_0x46e1c7=_0x47e457[_0x27b085(0xda)][_0x27b085(0xd9)](_0x4dbe23),_0x593027=this[_0x27b085(0xd2)](),_0x4cf3e6=this[_0x27b085(0x94)]();_0x40432e[_0x27b085(0x84)][_0x27b085(0xbf)](_0x4ae72d=>{const _0x599fee=_0x27b085,_0x128927=_0x40432e[_0x599fee(0x84)][_0x599fee(0xc6)][_0x599fee(0xb0)]();let _0x10b18e=!0x1;for(const _0xc3552a of _0x128927){if(_0x599fee(0x97)!==_0xc3552a[_0x599fee(0x99)]||_0x599fee(0xc7)===_0xc3552a[_0x599fee(0xb1)])continue;const _0x5cf67f=_0x40432e[_0x599fee(0x88)](_0xc3552a[_0x599fee(0xa8)][_0x599fee(0xe0)]);for(const _0x3cf7eb of _0x5cf67f[_0x599fee(0xb7)]())_0x3cf7eb['is'](_0x599fee(0xa1),_0x599fee(0xcc))&&(!_0x3cf7eb[_0x599fee(0xab)](_0x599fee(0xbd))&&_0x40432e[_0x599fee(0x92)][_0x599fee(0xe4)](_0x3cf7eb,_0x599fee(0xbd))&&(_0x4ae72d[_0x599fee(0xba)](_0x599fee(0xbd),_0x4cf3e6,_0x3cf7eb),_0x10b18e=!0x0),!_0x3cf7eb[_0x599fee(0xab)](_0x599fee(0x98))&&_0x40432e[_0x599fee(0x92)][_0x599fee(0xe4)](_0x3cf7eb,_0x599fee(0x98))&&(_0x4ae72d[_0x599fee(0xba)](_0x599fee(0x98),_0x593027,_0x3cf7eb),_0x10b18e=!0x0));}return _0x10b18e&&_0x46e1c7[_0x599fee(0x9f)](_0x4ae72d),_0x10b18e;});}[_0x284e75(0xb9)](){const _0x5e9daf=_0x284e75,{editor:_0x539ae5}=this;_0x539ae5[_0x5e9daf(0xda)][_0x5e9daf(0xd9)](_0x4dbe23)[_0x5e9daf(0xc0)](_0x2aa4e4=>this[_0x5e9daf(0xa9)](_0x2aa4e4));}[_0x284e75(0xd2)](){const _0x35bfd1=_0x284e75;return this[_0x35bfd1(0xb6)][_0x35bfd1(0xe3)][_0x35bfd1(0xd9)](_0x35bfd1(0xe2));}[_0x284e75(0x94)](){const _0x814b3e=_0x284e75;return this[_0x814b3e(0xb6)][_0x814b3e(0xe3)][_0x814b3e(0xd9)](_0x814b3e(0xd4));}[_0x284e75(0xa9)]({container:_0x39f3fc,value:_0x44ed35,digits:_0x57bc08}){const _0x463615=_0x284e75,_0x530168=_0x39f3fc[_0x463615(0x87)](_0x463615(0x98)),_0x11ebb4=_0x39f3fc[_0x463615(0x87)](_0x463615(0xbd)),_0x516033=Math[_0x463615(0x90)](_0x44ed35)+(_0x11ebb4??0x1)-0x1;switch(_0x530168){case _0x463615(0xd0):return function(_0x428449,_0xc2ddef){const _0x186fb2=_0x463615;return String(_0x428449)[_0x186fb2(0xcf)](_0xc2ddef,'0');}(_0x516033,Math[_0x463615(0x93)](0x2,_0x57bc08));case _0x463615(0x95):case _0x463615(0xcb):return N(_0x516033,!0x1);case _0x463615(0x83):case _0x463615(0xb3):return N(_0x516033,!0x0);case _0x463615(0x89):return X(_0x516033,!0x1);case _0x463615(0x86):return X(_0x516033,!0x0);default:return String(_0x516033);}}}function M(_0x29d08e,_0x4b192e){const _0x333e9e=_0x284e75,_0x1c5908=_0x4b192e[_0x333e9e(0x81)](_0x29d08e);return Array[_0x333e9e(0x9d)](_0x1c5908[_0x333e9e(0xbe)]())[_0x333e9e(0xc3)](_0xc3b4fb=>_0xc3b4fb['is'](_0x333e9e(0xa1),'ol')&&_0xc3b4fb[_0x333e9e(0xaf)](_0x333e9e(0xb2)));}function N(_0x35f8f2,_0x5e04f7){const _0x4820f9=_0x284e75;let _0x344d16='',_0x54d385=_0x35f8f2;for(;_0x54d385>0x0;){const _0x5b3c5e=(_0x54d385-0x1)%0x1a;_0x344d16=String[_0x4820f9(0xde)](0x61+_0x5b3c5e)+_0x344d16,_0x54d385=Math[_0x4820f9(0x90)]((_0x54d385-0x1)/0x1a);}return _0x5e04f7?_0x344d16[_0x4820f9(0xb4)]():_0x344d16;}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 _0x5b73(_0xc08785,_0x16194f){const _0x2b5a1f=_0x2b5a();return _0x5b73=function(_0x5b73a4,_0xbd85ce){_0x5b73a4=_0x5b73a4-0x80;let _0x401092=_0x2b5a1f[_0x5b73a4];return _0x401092;},_0x5b73(_0xc08785,_0x16194f);}function X(_0x7dfecc,_0x46cee6){const _0x27ca4f=_0x284e75;let _0x42a592='',_0x27bd51=_0x7dfecc;for(const {value:_0x2375b8,numeral:_0x246479}of V)for(;_0x27bd51>=_0x2375b8;)_0x42a592+=_0x246479,_0x27bd51-=_0x2375b8;return _0x46cee6?_0x42a592:_0x42a592[_0x27ca4f(0xc8)]();}
|
|
23
|
+
const _0x2f98d0=_0x339b;(function(_0x518562,_0x44ab8a){const _0x17fd53=_0x339b,_0xd96879=_0x518562();while(!![]){try{const _0x144197=parseInt(_0x17fd53(0xca))/0x1+parseInt(_0x17fd53(0xef))/0x2+parseInt(_0x17fd53(0xbc))/0x3+-parseInt(_0x17fd53(0xf8))/0x4+-parseInt(_0x17fd53(0xf0))/0x5*(-parseInt(_0x17fd53(0xb6))/0x6)+parseInt(_0x17fd53(0xa2))/0x7*(-parseInt(_0x17fd53(0xd6))/0x8)+-parseInt(_0x17fd53(0xf6))/0x9;if(_0x144197===_0x44ab8a)break;else _0xd96879['push'](_0xd96879['shift']());}catch(_0x10016f){_0xd96879['push'](_0xd96879['shift']());}}}(_0x3a3f,0x74abc));import{Plugin as _0x1fa414}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x3b1e7e}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x2698c3}from'./commands/footnotesstartcommand.js';function _0x3a3f(){const _0x4b6a8c=['init','position','footnotes.footnotesProperties.defaultStartIndex','hasClass','toUpperCase','start','upcast','hasAttribute','footnotesListStyle','upper-alpha','isPremiumPlugin','_formatFootnoteListValue','mapper','attribute:footnotesListStyle:footnotesDefinitions','4866JZJHZF','getChanges','item','element:ol','removeAttribute','isOfficialPlugin','2579739fYjLVc','commands','differ','find','viewItem','lower-latin','schema','consumable','_getDefaultListStyle','for','_defineConverters','removeStyle','getAttribute','extend','74658nxXksC','model','_definePostfixer','footnotesStart','getChildren','type','setAttribute','pluginName','config','getItems','modelCursor','plugins','18328DJuATC','lower-alpha','upper-latin','parent','max','document','createRangeOn','checkAttribute','footnotesDefinitions','registerPostFixer','$text','_getDefaultStartIndex','toViewElement','decimal-leading-zero','isNaN','lower-roman','padStart','_defineFormatter','name','list-style-type','requires','upper-roman','footnotesStyle','setStyle','parseInt','1072998FbxrDf','5430tNRnQL','get','from','fromCharCode','_updateFootnotesCounters','floor','11258253JGaXvp','getStyle','8616RdAzBL','footnotes.footnotesProperties.defaultListStyle','FootnotesPropertiesEditing','consume','footnotes-list','attribute:footnotesListStart:footnotesDefinitions','add','writer','setFootnoteFormatter','nodeAfter','downcast','_defineSchema','footnotesListStart','element','1897IWmCdl','editor','insert','define','toLowerCase','decimal'];_0x3a3f=function(){return _0x4b6a8c;};return _0x3a3f();}import{FootnotesTracker as _0x38293e}from'../footnotestracker.js';import{FootnotesEditing as _0x4f2cb1}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x1fa414{static get[_0x2f98d0(0xd1)](){const _0xbb8156=_0x2f98d0;return _0xbb8156(0xfa);}static get[_0x2f98d0(0xea)](){return[_0x4f2cb1,_0x38293e];}static get[_0x2f98d0(0xbb)](){return!0x0;}static get[_0x2f98d0(0xb2)](){return!0x0;}[_0x2f98d0(0xa8)](){const _0x5df729=_0x2f98d0,{editor:_0x2f12f7}=this;_0x2f12f7[_0x5df729(0xd2)][_0x5df729(0xa5)](_0x5df729(0xf9),_0x5df729(0xa7)),_0x2f12f7[_0x5df729(0xd2)][_0x5df729(0xa5)](_0x5df729(0xaa),0x1),_0x2f12f7[_0x5df729(0xbd)][_0x5df729(0xfe)](_0x5df729(0xec),new _0x3b1e7e(_0x2f12f7)),_0x2f12f7[_0x5df729(0xbd)][_0x5df729(0xfe)](_0x5df729(0xcd),new _0x2698c3(_0x2f12f7)),this[_0x5df729(0x9f)](),this[_0x5df729(0xc6)](),this[_0x5df729(0xe7)](),this[_0x5df729(0xcc)]();}[_0x2f98d0(0x9f)](){const _0x4b457f=_0x2f98d0,{editor:_0x2872bd}=this,{schema:_0x132d64}=_0x2872bd[_0x4b457f(0xcb)];_0x132d64[_0x4b457f(0xc9)](_0x4b457f(0xde),{'allowAttributes':[_0x4b457f(0xb0),_0x4b457f(0xa0)]});}[_0x2f98d0(0xc6)](){const _0x322b2a=_0x2f98d0,{editor:_0x290581}=this,{conversion:_0x300fbe,model:_0x540ef1}=_0x290581,{schema:_0x507a16}=_0x540ef1;_0x300fbe[_0x322b2a(0xc5)](_0x322b2a(0xae))[_0x322b2a(0xfe)](_0x54c24d=>{const _0x12aa65=_0x322b2a;_0x54c24d['on'](_0x12aa65(0xb9),(_0xdf4420,_0x3e50f9,_0x38c491)=>{const _0xd571b5=_0x12aa65,_0x4ab9d6=_0x3e50f9[_0xd571b5(0xc0)],_0x778004=_0x3e50f9[_0xd571b5(0xd4)]?.[_0xd571b5(0xd9)];_0x4ab9d6[_0xd571b5(0xab)](_0xd571b5(0xfc))&&_0x778004?.['is'](_0xd571b5(0xa1),_0xd571b5(0xde))&&(function(_0x2823e2,_0x4d9535,_0x21adca,_0x480a6c){const _0x4b4953=_0xd571b5;if(!_0x480a6c[_0x4b4953(0xdd)](_0x4d9535,_0x4b4953(0xa0)))return;let _0x2d43f2=0x1;const _0x2a3cbd=_0x21adca[_0x4b4953(0xc3)][_0x4b4953(0xfb)](_0x2823e2,{'attributes':_0x4b4953(0xad)});if(_0x2a3cbd){const _0x53a9ea=Number[_0x4b4953(0xee)](_0x2823e2[_0x4b4953(0xc8)](_0x4b4953(0xad)),0xa);Number[_0x4b4953(0xe4)](_0x53a9ea)||(_0x2d43f2=_0x53a9ea);}!_0x2a3cbd&&_0x4d9535[_0x4b4953(0xaf)](_0x4b4953(0xa0))||_0x21adca[_0x4b4953(0xff)][_0x4b4953(0xd0)](_0x4b4953(0xa0),_0x2d43f2,_0x4d9535);}(_0x4ab9d6,_0x778004,_0x38c491,_0x507a16),function(_0x1702d6,_0x37114d,_0x46aaa0,_0x24e686){const _0x3c620c=_0xd571b5;if(!_0x24e686[_0x3c620c(0xdd)](_0x37114d,_0x3c620c(0xb0)))return;let _0x2c0462=_0x3c620c(0xa7),_0x46f2f2=!0x1;if(_0x46aaa0[_0x3c620c(0xc3)][_0x3c620c(0xfb)](_0x1702d6,{'attributes':_0x3c620c(0xcf)})){const _0x5053a9={0x1:_0x3c620c(0xa7),'a':_0x3c620c(0xd7),'A':_0x3c620c(0xb1),'i':_0x3c620c(0xe5),'I':_0x3c620c(0xeb)}[_0x1702d6[_0x3c620c(0xc8)](_0x3c620c(0xcf))];_0x5053a9&&(_0x2c0462=_0x5053a9),_0x46f2f2=!0x0;}_0x46aaa0[_0x3c620c(0xc3)][_0x3c620c(0xfb)](_0x1702d6,{'styles':_0x3c620c(0xe9)})&&(_0x2c0462=function(_0x5c1498){const _0x2f4f8d=_0x3c620c;switch(_0x5c1498){case _0x2f4f8d(0xd7):return _0x2f4f8d(0xc1);case _0x2f4f8d(0xb1):return _0x2f4f8d(0xd8);default:return _0x5c1498;}}(_0x1702d6[_0x3c620c(0xf7)](_0x3c620c(0xe9))),_0x46f2f2=!0x0),!_0x46f2f2&&_0x37114d[_0x3c620c(0xaf)](_0x3c620c(0xb0))||_0x46aaa0[_0x3c620c(0xff)][_0x3c620c(0xd0)](_0x3c620c(0xb0),_0x2c0462,_0x37114d);}(_0x4ab9d6,_0x778004,_0x38c491,_0x507a16));});}),_0x300fbe[_0x322b2a(0xc5)](_0x322b2a(0x102))[_0x322b2a(0xfe)](_0x3df283=>{const _0x4d2c62=_0x322b2a;_0x3df283['on'](_0x4d2c62(0xfd),(_0x41d492,_0x478ace,_0x54e6f6)=>{const _0x5b107a=_0x4d2c62;if(!_0x54e6f6[_0x5b107a(0xc3)][_0x5b107a(0xfb)](_0x478ace[_0x5b107a(0xb8)],_0x41d492[_0x5b107a(0xe8)]))return;const _0x99716a=M(_0x478ace[_0x5b107a(0xb8)],_0x54e6f6[_0x5b107a(0xb4)]),{attributeNewValue:_0x3981a4}=_0x478ace;null==_0x3981a4||0x1===_0x3981a4?_0x54e6f6[_0x5b107a(0xff)][_0x5b107a(0xba)](_0x5b107a(0xad),_0x99716a):_0x54e6f6[_0x5b107a(0xff)][_0x5b107a(0xd0)](_0x5b107a(0xad),String(_0x3981a4),_0x99716a);}),_0x3df283['on'](_0x4d2c62(0xb5),(_0x2b38b6,_0x292dbe,_0x5b8ecd)=>{const _0x5c122a=_0x4d2c62;if(!_0x5b8ecd[_0x5c122a(0xc3)][_0x5c122a(0xfb)](_0x292dbe[_0x5c122a(0xb8)],_0x2b38b6[_0x5c122a(0xe8)]))return;const _0x1fb43c=M(_0x292dbe[_0x5c122a(0xb8)],_0x5b8ecd[_0x5c122a(0xb4)]),{attributeNewValue:_0x4c7551}=_0x292dbe;_0x4c7551&&_0x5c122a(0xa7)!==_0x4c7551?_0x5b8ecd[_0x5c122a(0xff)][_0x5c122a(0xed)](_0x5c122a(0xe9),_0x4c7551,_0x1fb43c):_0x5b8ecd[_0x5c122a(0xff)][_0x5c122a(0xc7)](_0x5c122a(0xe9),_0x1fb43c);});});}[_0x2f98d0(0xcc)](){const _0x403d44=_0x2f98d0,{editor:_0x12b0d8}=this,{model:_0x2e4532}=_0x12b0d8,_0x4cf921=_0x12b0d8[_0x403d44(0xd5)][_0x403d44(0xf1)](_0x38293e),_0x1277ae=this[_0x403d44(0xc4)](),_0x52f15d=this[_0x403d44(0xe1)]();_0x2e4532[_0x403d44(0xdb)][_0x403d44(0xdf)](_0x123289=>{const _0x1b50d8=_0x403d44,_0x2d3f40=_0x2e4532[_0x1b50d8(0xdb)][_0x1b50d8(0xbe)][_0x1b50d8(0xb7)]();let _0x3f48e0=!0x1;for(const _0x20c55c of _0x2d3f40){if(_0x1b50d8(0xa4)!==_0x20c55c[_0x1b50d8(0xcf)]||_0x1b50d8(0xe0)===_0x20c55c[_0x1b50d8(0xe8)])continue;const _0x536356=_0x2e4532[_0x1b50d8(0xdc)](_0x20c55c[_0x1b50d8(0xa9)][_0x1b50d8(0x101)]);for(const _0x52904f of _0x536356[_0x1b50d8(0xd3)]())_0x52904f['is'](_0x1b50d8(0xa1),_0x1b50d8(0xde))&&(!_0x52904f[_0x1b50d8(0xaf)](_0x1b50d8(0xa0))&&_0x2e4532[_0x1b50d8(0xc2)][_0x1b50d8(0xdd)](_0x52904f,_0x1b50d8(0xa0))&&(_0x123289[_0x1b50d8(0xd0)](_0x1b50d8(0xa0),_0x52f15d,_0x52904f),_0x3f48e0=!0x0),!_0x52904f[_0x1b50d8(0xaf)](_0x1b50d8(0xb0))&&_0x2e4532[_0x1b50d8(0xc2)][_0x1b50d8(0xdd)](_0x52904f,_0x1b50d8(0xb0))&&(_0x123289[_0x1b50d8(0xd0)](_0x1b50d8(0xb0),_0x1277ae,_0x52904f),_0x3f48e0=!0x0));}return _0x3f48e0&&_0x4cf921[_0x1b50d8(0xf4)](_0x123289),_0x3f48e0;});}[_0x2f98d0(0xe7)](){const _0x55d6cd=_0x2f98d0,{editor:_0x3ca8fb}=this;_0x3ca8fb[_0x55d6cd(0xd5)][_0x55d6cd(0xf1)](_0x38293e)[_0x55d6cd(0x100)](_0x4063a7=>this[_0x55d6cd(0xb3)](_0x4063a7));}[_0x2f98d0(0xc4)](){const _0x19a1a4=_0x2f98d0;return this[_0x19a1a4(0xa3)][_0x19a1a4(0xd2)][_0x19a1a4(0xf1)](_0x19a1a4(0xf9));}[_0x2f98d0(0xe1)](){const _0xcc92ab=_0x2f98d0;return this[_0xcc92ab(0xa3)][_0xcc92ab(0xd2)][_0xcc92ab(0xf1)](_0xcc92ab(0xaa));}[_0x2f98d0(0xb3)]({container:_0x19a003,value:_0x3e5691,digits:_0x186028}){const _0x3e813b=_0x2f98d0,_0x5d9fb0=_0x19a003[_0x3e813b(0xc8)](_0x3e813b(0xb0)),_0x261f00=_0x19a003[_0x3e813b(0xc8)](_0x3e813b(0xa0)),_0x3cb930=Math[_0x3e813b(0xf5)](_0x3e5691)+(_0x261f00??0x1)-0x1;switch(_0x5d9fb0){case _0x3e813b(0xe3):return function(_0x2fce16,_0x514fb3){const _0x4ee442=_0x3e813b;return String(_0x2fce16)[_0x4ee442(0xe6)](_0x514fb3,'0');}(_0x3cb930,Math[_0x3e813b(0xda)](0x2,_0x186028));case _0x3e813b(0xd7):case _0x3e813b(0xc1):return N(_0x3cb930,!0x1);case _0x3e813b(0xb1):case _0x3e813b(0xd8):return N(_0x3cb930,!0x0);case _0x3e813b(0xe5):return X(_0x3cb930,!0x1);case _0x3e813b(0xeb):return X(_0x3cb930,!0x0);default:return String(_0x3cb930);}}}function _0x339b(_0x3b5053,_0xd3f3a0){const _0x3a3f90=_0x3a3f();return _0x339b=function(_0x339bf8,_0x5f3cfe){_0x339bf8=_0x339bf8-0x9f;let _0x531fbe=_0x3a3f90[_0x339bf8];return _0x531fbe;},_0x339b(_0x3b5053,_0xd3f3a0);}function M(_0x5f1996,_0x17ef30){const _0x44b854=_0x2f98d0,_0x3b311c=_0x17ef30[_0x44b854(0xe2)](_0x5f1996);return Array[_0x44b854(0xf2)](_0x3b311c[_0x44b854(0xce)]())[_0x44b854(0xbf)](_0x2798cf=>_0x2798cf['is'](_0x44b854(0xa1),'ol')&&_0x2798cf[_0x44b854(0xab)](_0x44b854(0xfc)));}function N(_0x5db4c4,_0x3e52e5){const _0x5384c8=_0x2f98d0;let _0x3904ff='',_0x41372f=_0x5db4c4;for(;_0x41372f>0x0;){const _0x297306=(_0x41372f-0x1)%0x1a;_0x3904ff=String[_0x5384c8(0xf3)](0x61+_0x297306)+_0x3904ff,_0x41372f=Math[_0x5384c8(0xf5)]((_0x41372f-0x1)/0x1a);}return _0x3e52e5?_0x3904ff[_0x5384c8(0xac)]():_0x3904ff;}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(_0x3a7fdb,_0x1d1629){const _0x437214=_0x2f98d0;let _0x4d6500='',_0x37d217=_0x3a7fdb;for(const {value:_0x46cd9b,numeral:_0xdd4b33}of V)for(;_0x37d217>=_0x46cd9b;)_0x4d6500+=_0xdd4b33,_0x37d217-=_0x46cd9b;return _0x1d1629?_0x4d6500:_0x4d6500[_0x437214(0xa6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x37d35d,ButtonView as _0x5f12ee,ContextualBalloon as _0x517019,createDropdown as _0x33bc9c}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x26862a}from'ckeditor5/src/widget.js';import{Plugin as _0x258e3d}from'ckeditor5/src/core.js';import{IconFootnote as _0x2723d2,IconListStyleDecimal as _0x50fdcc,IconListStyleDecimalLeadingZero as _0x3b9fc3,IconListStyleLowerLatin as _0x779664,IconListStyleLowerRoman as _0x32bed5,IconListStyleUpperLatin as _0x14f994,IconListStyleUpperRoman as _0x4e4f87}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x149659}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x5b3b78}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x258e3d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x517019,_0x26862a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x57b353}=this,{componentFactory:_0x409971}=_0x57b353['ui'];_0x57b353['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x409971['add']('footnotesStyle',function(_0x1d8e9b){return _0x210cd7=>{const {t:t}=_0x210cd7,_0x1217c2=_0x1d8e9b['commands']['get']('footnotesStyle'),_0x10f324=_0x33bc9c(_0x210cd7),{buttonView:_0x9373ae}=_0x10f324;return _0x10f324['class']='ck-footnotes-styles-dropdown',_0x10f324['bind']('isEnabled')['to'](_0x1217c2,'isEnabled'),_0x9373ae['set']({'label':t('Footnotes\x20style'),'icon':_0x2723d2,'tooltip':!0x0}),_0x10f324['once']('change:isOpen',()=>{const _0x4a93d9=function({editor:_0x1f6b13,dropdownView:_0x5b49c4}){const {t:t}=_0x1f6b13['locale'],_0x5855ad=t('Footnotes\x20definitions\x20styles'),_0x3c154e=function(_0x5f51d1){const t=_0x5f51d1['locale']['t'],_0x2180bf=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x50fdcc},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3b9fc3},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x32bed5},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x4e4f87},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x779664},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x14f994}];return _0x2180bf['map'](function(_0x53f4ad){const _0xe93f25=_0x53f4ad['locale'];return({label:_0x5443f5,icon:_0x313147,tooltip:_0x1dd7ea,style:_0x4ec127})=>{const _0x1044e1=_0x53f4ad['commands']['get']('footnotesStyle'),_0x564151=new _0x5f12ee(_0xe93f25);return _0x564151['set']({'label':_0x5443f5,'icon':_0x313147,'tooltip':_0x1dd7ea}),_0x564151['bind']('isOn')['to'](_0x1044e1,'value',_0x8b03a9=>_0x8b03a9===_0x4ec127),_0x564151['bind']('isEnabled')['to'](_0x1044e1,'isEnabled'),_0x564151['on']('execute',()=>{_0x53f4ad['execute']('footnotesStyle',{'value':_0x4ec127}),_0x53f4ad['editing']['view']['focus']();}),_0x564151;};}(_0x5f51d1));}(_0x1f6b13),_0x1a6a99=new _0x149659(_0x1f6b13['locale'],{'styleGridAriaLabel':_0x5855ad,'styleButtonViews':_0x3c154e}),_0x47c0e2=_0x1f6b13['commands']['get']('footnotesStart');return _0x1a6a99['startIndexFieldView']['bind']('isEnabled')['to'](_0x47c0e2),_0x1a6a99['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x47c0e2),_0x1a6a99['on']('footnotesListStart',(_0x1728c8,_0x5b7140)=>{_0x1f6b13['execute']('footnotesStart',{'value':_0x5b7140['startIndex']});}),_0x1a6a99['delegate']('execute')['to'](_0x5b49c4),_0x1a6a99;}({'editor':_0x1d8e9b,'dropdownView':_0x10f324});_0x10f324['panelView']['children']['add'](_0x4a93d9);}),_0x10f324;};}(_0x57b353));}['afterInit'](){const {editor:_0x1166dd}=this,{t:t}=_0x1166dd['locale'],_0x55f394=_0x1166dd['plugins']['get'](_0x26862a),{defaultPositions:_0x13553b}=_0x37d35d;_0x55f394['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1166dd['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x41ede2=>{let _0x306fb4=_0x41ede2['getFirstPosition']()?.['parent'];return _0x306fb4?.['is']('$text')&&(_0x306fb4=_0x306fb4['parent']),_0x306fb4?.['is']('element')?_0x306fb4['findAncestor'](_0x5b3b78):null;},'positions':[_0x13553b['southArrowNorth'],_0x13553b['southArrowNorthMiddleWest'],_0x13553b['southArrowNorthMiddleEast'],_0x13553b['southArrowNorthWest'],_0x13553b['southArrowNorthEast'],_0x13553b['northArrowSouth'],_0x13553b['northArrowSouthMiddleWest'],_0x13553b['northArrowSouthMiddleEast'],_0x13553b['northArrowSouthWest'],_0x13553b['northArrowSouthEast'],_0x13553b['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x6eea8f,View as _0x4d5fca,ViewCollection as _0x18f29d,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 _0x4d5fca{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x18f29d();['focusCycler'];constructor(_0x5a7aaa,{styleButtonViews:_0x1d17b2,styleGridAriaLabel:_0x174183}){super(_0x5a7aaa),(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'](_0x1d17b2,_0x174183),[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 _0x308c51 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x308c51['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 _0x2fab7a=_0x40f804=>_0x40f804['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2fab7a),this['keystrokes']['set']('arrowleft',_0x2fab7a),this['keystrokes']['set']('arrowup',_0x2fab7a),this['keystrokes']['set']('arrowdown',_0x2fab7a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x374933,_0x56eb9e){const _0x381d87=new _0x4d5fca(this['locale']);return _0x381d87['children']=_0x381d87['createCollection'](),_0x381d87['children']['addMany'](_0x374933),_0x381d87['setTemplate']({'tag':'div','attributes':{'aria-label':_0x56eb9e,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x381d87['children']}),_0x381d87['children']['delegate']('execute')['to'](this),_0x381d87['focus']=function(){for(const _0x481c5c of this['children'])if(_0x481c5c instanceof _0x6eea8f&&_0x481c5c['isOn'])return void _0x481c5c['focus']();this['children']['first']['focus']();},_0x381d87['focusTracker']=new rt(),_0x381d87['keystrokes']=new nt(),_0x381d87['render'](),_0x381d87['keystrokes']['listenTo'](_0x381d87['element']),this['children']['add'](_0x381d87),_0x381d87;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5173e4=this['_createStartIndexPropertyView'](),_0xc9a084=[_0x5173e4],_0x23fd87=new it(this['locale'],_0xc9a084);return _0x23fd87['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x23fd87['buttonView']['bind']('isEnabled')['toMany'](_0xc9a084,'isEnabled',(..._0x5f3786)=>_0x5f3786['some'](_0x81f5b0=>_0x81f5b0)),_0x23fd87['buttonView']['on']('change:isEnabled',(_0xad0652,_0x556421,_0xf6565f)=>{_0xf6565f||(_0x23fd87['isCollapsed']=!0x0);}),this['children']['add'](_0x23fd87),[_0x5173e4,_0x23fd87];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4ae51c=new et(this['locale'],ot);return _0x4ae51c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4ae51c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4ae51c['fieldView']['on']('input',()=>{const _0x270ef0=_0x4ae51c['fieldView']['element'],_0x250be2=_0x270ef0['valueAsNumber'];Number['isNaN'](_0x250be2)?_0x4ae51c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x270ef0['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x250be2}):_0x4ae51c['errorText']=t(_0x250be2<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4ae51c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x543090=_0x280b;(function(_0x5bbcaf,_0x573617){var _0x26a6b1=_0x280b,_0x229580=_0x5bbcaf();while(!![]){try{var _0x481335=-parseInt(_0x26a6b1(0x1aa))/0x1+-parseInt(_0x26a6b1(0x1a7))/0x2+parseInt(_0x26a6b1(0x1ab))/0x3*(parseInt(_0x26a6b1(0x1a8))/0x4)+parseInt(_0x26a6b1(0x1a9))/0x5+-parseInt(_0x26a6b1(0x1b0))/0x6+-parseInt(_0x26a6b1(0x1ae))/0x7*(-parseInt(_0x26a6b1(0x1b4))/0x8)+parseInt(_0x26a6b1(0x1b1))/0x9;if(_0x481335===_0x573617)break;else _0x229580['push'](_0x229580['shift']());}catch(_0x371010){_0x229580['push'](_0x229580['shift']());}}}(_0x761e,0x32507));function _0x761e(){var _0x28c44b=['4299DqwErp','isOfficialPlugin','isPremiumPlugin','13762LFXvoI','pluginName','2070306rPVBDI','1229625LureIh','requires','FootnotesProperties','1656dcYxwR','562210jrGLec','908upunxk','285675EDCtKO','93770sfFUNq'];_0x761e=function(){return _0x28c44b;};return _0x761e();}import{Plugin as _0x22891a}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x9376c4}from'./footnotesproperties/footnotespropertiesediting.js';function _0x280b(_0x493109,_0x2be0f0){var _0x761ec=_0x761e();return _0x280b=function(_0x280bd5,_0x43b07a){_0x280bd5=_0x280bd5-0x1a7;var _0x27611a=_0x761ec[_0x280bd5];return _0x27611a;},_0x280b(_0x493109,_0x2be0f0);}import{FootnotesPropertiesUI as _0x13fa58}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x22891a{static get[_0x543090(0x1af)](){var _0x5d2b2d=_0x543090;return _0x5d2b2d(0x1b3);}static get[_0x543090(0x1b2)](){return[_0x9376c4,_0x13fa58];}static get[_0x543090(0x1ac)](){return!0x0;}static get[_0x543090(0x1ad)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x353fe3=_0x9abd;(function(_0x483116,_0x34fb9a){const _0x2ec123=_0x9abd,_0x9b8534=_0x483116();while(!![]){try{const _0x4a6bf8=parseInt(_0x2ec123(0x110))/0x1*(-parseInt(_0x2ec123(0x144))/0x2)+-parseInt(_0x2ec123(0x12d))/0x3+-parseInt(_0x2ec123(0xee))/0x4*(parseInt(_0x2ec123(0x139))/0x5)+-parseInt(_0x2ec123(0x131))/0x6*(-parseInt(_0x2ec123(0x12c))/0x7)+parseInt(_0x2ec123(0x10b))/0x8*(parseInt(_0x2ec123(0x141))/0x9)+-parseInt(_0x2ec123(0x12f))/0xa+parseInt(_0x2ec123(0x130))/0xb*(parseInt(_0x2ec123(0x123))/0xc);if(_0x4a6bf8===_0x34fb9a)break;else _0x9b8534['push'](_0x9b8534['shift']());}catch(_0x378390){_0x9b8534['push'](_0x9b8534['shift']());}}}(_0x5595,0xc4e42));import{Plugin as _0x41baae}from'ckeditor5/src/core.js';function _0x9abd(_0x1c7bbd,_0x58f5f1){const _0x55950f=_0x5595();return _0x9abd=function(_0x9abda7,_0x1f16e8){_0x9abda7=_0x9abda7-0xed;let _0x535449=_0x55950f[_0x9abda7];return _0x535449;},_0x9abd(_0x1c7bbd,_0x58f5f1);}import{ModelElementTracker as _0x1b5d40}from'./modelelementtracker.js';function _0x5595(){const _0x3860c2=['$graveyard','12YjbISV','_handleInsertedFootnoteReference','createPositionBefore','_sortFootnoteDefinitions','length','childCount','listenTo','document','_footnoteFormatter','footnotesDefinitions','differ','_handleFootnotesDefinitionsObjectSync','createElement','_handleFootnotesDefinitionsObjectChanges','registerPostFixer','map','getRootNames','createRangeIn','_footnotes','createRangeOn','parent','isPremiumPlugin','isOfficialPlugin','splice','footnoteId','push','_handleMovedFootnoteReference','editor','get','280dQrmKc','some','footnoteCounter','config','footnoteInlineContent','1137494JMMTLl','getAttribute','getChanges','change:data','_updateFootnoteRefCounter','_updateFootnotesCounters','paragraph','_footnoteDefsTracker','setFootnoteFormatter','pluginName','definition','remove','_ensureFootnotesDefinitionsContainerExists','unshift','root','find','add','isEqual','createPositionAt','27396JGHtGP','has','low','reference','set','getFootnotesFormatter','_insertEmptyFootnotesDefinitionsContainer','reset','_footnoteDefsContainerTracker','28lOtgIs','4650162bGNpzT','findIndex','12692240ocfeBq','25190lcdmWE','317004GGiyan','setAttribute','_handleFootnoteReferencesChanges','model','compareWith','_handleFootnoteDefinitionsChanges','move','getFootnotesDefinitionsObjectElement','1910655HQynFS','_ensureFootnotesReferencesHaveProperOrder','footnotes.multiBlock','getFootnotes','getFootnote','_footnoteRefsTracker','singleton','after','120915QsPZXA','from','indexOf','2FqyKbN','before','append','_handleRemoveFootnoteReferenceById','_footnotesDefinitions','FootnotesTracker','getChildren','min','init','end','rootName','insert','high','enqueueChange','footnoteDefinition','footnoteRef'];_0x5595=function(){return _0x3860c2;};return _0x5595();}export class FootnotesTracker extends _0x41baae{[_0x353fe3(0x100)]=[];[_0x353fe3(0x148)]=null;[_0x353fe3(0xf6)]=null;[_0x353fe3(0x12b)];[_0x353fe3(0x13e)];[_0x353fe3(0x117)];static get[_0x353fe3(0x119)](){const _0x33a097=_0x353fe3;return _0x33a097(0x149);}static get[_0x353fe3(0x104)](){return!0x0;}static get[_0x353fe3(0x103)](){return!0x0;}constructor(_0x59887b){const _0x30ac3d=_0x353fe3;super(_0x59887b),this[_0x30ac3d(0x12b)]=new _0x1b5d40(this[_0x30ac3d(0x109)][_0x30ac3d(0x134)],{'elementName':_0x30ac3d(0xf7),'getElementKey':()=>_0x30ac3d(0x13f)}),this[_0x30ac3d(0x13e)]=new _0x1b5d40(this[_0x30ac3d(0x109)][_0x30ac3d(0x134)],{'elementName':_0x30ac3d(0x153),'getElementKey':_0x2b4bdc=>_0x2b4bdc[_0x30ac3d(0x111)](_0x30ac3d(0x106))}),this[_0x30ac3d(0x117)]=new _0x1b5d40(this[_0x30ac3d(0x109)][_0x30ac3d(0x134)],{'elementName':_0x30ac3d(0x152),'getElementKey':_0x558f5e=>_0x558f5e[_0x30ac3d(0x111)](_0x30ac3d(0x106))});}[_0x353fe3(0x14c)](){const _0x391d99=_0x353fe3,{editor:_0x3eea1c}=this,{model:_0x4a31e3,data:_0x5d5605}=_0x3eea1c;_0x4a31e3[_0x391d99(0xf5)][_0x391d99(0xfc)](_0x589823=>{const _0xf39372=_0x391d99,_0x58abe6=_0x4a31e3[_0xf39372(0xf5)][_0xf39372(0xf8)][_0xf39372(0x112)]();let _0x32416e=!0x1;return this[_0xf39372(0xfb)](_0x589823,_0x58abe6)&&(_0x32416e=!0x0),this[_0xf39372(0x136)](_0x589823,_0x58abe6)&&(_0x32416e=!0x0),this[_0xf39372(0x133)](_0x589823,_0x58abe6)&&(_0x32416e=!0x0),this[_0xf39372(0x13a)](_0x589823)&&(_0x32416e=!0x0),this[_0xf39372(0xf9)](_0x589823)&&(_0x32416e=!0x0),this[_0xf39372(0xf1)](_0x589823)&&(_0x32416e=!0x0),_0x32416e;}),this[_0x391d99(0xf4)](_0x4a31e3[_0x391d99(0xf5)],_0x391d99(0x113),()=>{const _0x714b79=_0x391d99;_0x4a31e3[_0x714b79(0x151)]({'isUndoable':!0x1},_0x30737f=>{const _0x317209=_0x714b79;this[_0x317209(0x11c)](_0x30737f);});},{'priority':_0x391d99(0x125)}),this[_0x391d99(0xf4)](_0x5d5605,_0x391d99(0x127),()=>{const _0x4ddc33=_0x391d99;this[_0x4ddc33(0x100)]=[],this[_0x4ddc33(0x12b)][_0x4ddc33(0x12a)](),this[_0x4ddc33(0x13e)][_0x4ddc33(0x12a)](),this[_0x4ddc33(0x117)][_0x4ddc33(0x12a)]();},{'priority':_0x391d99(0x150)});}[_0x353fe3(0x138)](){const _0x39c2be=_0x353fe3;return this[_0x39c2be(0x148)];}[_0x353fe3(0x13d)](_0x2cb3c0){const _0x37f1b2=_0x353fe3;return this[_0x37f1b2(0x100)][_0x37f1b2(0x11f)](_0x3dcab9=>_0x3dcab9['id']===_0x2cb3c0)||null;}[_0x353fe3(0x13c)](){const _0xe55ae0=_0x353fe3;return Array[_0xe55ae0(0x142)](this[_0xe55ae0(0x100)]);}[_0x353fe3(0x128)](){const _0x1161d5=_0x353fe3;return this[_0x1161d5(0xf6)];}[_0x353fe3(0x118)](_0x3c743a){const _0x5d2255=_0x353fe3;this[_0x5d2255(0xf6)]=_0x3c743a;}[_0x353fe3(0x115)](_0x591962,_0x4b69f4=0x0){const _0x40f585=_0x353fe3;let _0x14e0dc=!0x1;for(let _0x1d872c=_0x4b69f4;_0x1d872c<this[_0x40f585(0x100)][_0x40f585(0xf2)];_0x1d872c++)this[_0x40f585(0x114)](_0x591962,_0x1d872c)&&(_0x14e0dc=!0x0);return _0x14e0dc;}[_0x353fe3(0x129)](_0x275d4b,_0x4a31c8){const _0x195fec=_0x353fe3,_0x50b9e5=_0x275d4b[_0x195fec(0xfa)](_0x195fec(0xf7),{});return _0x275d4b[_0x195fec(0x146)](_0x50b9e5,_0x4a31c8),this[_0x195fec(0x148)]=_0x50b9e5,_0x50b9e5;}[_0x353fe3(0x11c)](_0x191138){const _0x229509=_0x353fe3;if(!this[_0x229509(0x100)][_0x229509(0xf2)]||this[_0x229509(0x148)])return;const _0x572653=this[_0x229509(0x100)][0x0][_0x229509(0x126)][_0x229509(0x11e)],_0x93e864=this[_0x229509(0x129)](_0x191138,_0x572653);for(const _0x4d17d1 of this[_0x229509(0x100)])_0x4d17d1[_0x229509(0x11a)][_0x229509(0x102)]||_0x191138[_0x229509(0x14f)](_0x4d17d1[_0x229509(0x11a)],_0x93e864,_0x229509(0x14d));this[_0x229509(0x115)](_0x191138);}[_0x353fe3(0xfb)](_0x2e857c,_0x2d1fb1){const _0x18063c=_0x353fe3;let _0x32af06=!0x1;const {inserted:_0x5cab46,removed:_0x454b9f,moved:_0x427999}=this[_0x18063c(0x12b)][_0x18063c(0x112)](_0x2d1fb1);if(_0x427999[_0x18063c(0xf2)]&&(this[_0x18063c(0x148)]=_0x427999[0x0]),_0x5cab46[_0x18063c(0xf2)]){if(_0x5cab46[_0x18063c(0xf2)]>0x1||this[_0x18063c(0x148)]&&_0x5cab46[_0x18063c(0x10c)](_0x3aee62=>_0x3aee62!==this[_0x18063c(0x148)])){const _0x235709=_0x2e857c[_0x18063c(0xfa)](_0x18063c(0xf7),{}),_0x25e65c=[];this[_0x18063c(0x148)]&&_0x25e65c[_0x18063c(0x107)](this[_0x18063c(0x148)]),_0x25e65c[_0x18063c(0x107)](..._0x5cab46),_0x2e857c[_0x18063c(0x14f)](_0x235709,_0x25e65c[0x0],_0x18063c(0x145));for(const _0x1c6b47 of _0x25e65c)_0x2e857c[_0x18063c(0x137)](_0x2e857c[_0x18063c(0xff)](_0x1c6b47),_0x2e857c[_0x18063c(0x122)](_0x235709,_0x18063c(0x14d))),_0x2e857c[_0x18063c(0x11b)](_0x1c6b47);this[_0x18063c(0x148)]=_0x235709,this[_0x18063c(0x115)](_0x2e857c),_0x32af06=!0x0;}else this[_0x18063c(0x148)]=_0x5cab46[0x0];}if(_0x454b9f[_0x18063c(0xf2)]&&_0x18063c(0xed)===this[_0x18063c(0x148)]?.[_0x18063c(0x11e)][_0x18063c(0x14e)]){for(const _0x2e208c of this[_0x18063c(0x100)])_0x2e857c[_0x18063c(0x11b)](_0x2e208c[_0x18063c(0x126)]),_0x32af06=!0x0;this[_0x18063c(0x100)]=[],this[_0x18063c(0x148)]=null;}return _0x32af06;}[_0x353fe3(0x136)](_0x6faa0,_0x5b04ce){const _0x7b261c=_0x353fe3;let _0x244836=!0x1;const _0x102ec5=this[_0x7b261c(0x109)][_0x7b261c(0x10e)][_0x7b261c(0x10a)](_0x7b261c(0x13b)),{inserted:_0x8b2274,moved:_0x25279e}=this[_0x7b261c(0x117)][_0x7b261c(0x112)](_0x5b04ce);for(const _0xa2d7d0 of[..._0x25279e,..._0x8b2274]){const _0x5e6efb=_0xa2d7d0[_0x7b261c(0x111)](_0x7b261c(0x106)),_0x5c8071=this[_0x7b261c(0x13d)](_0x5e6efb);_0x5c8071&&(_0x5c8071[_0x7b261c(0x11a)]=_0xa2d7d0),_(_0x6faa0,_0x102ec5,_0xa2d7d0)&&(_0x244836=!0x0);}return _0x244836;}[_0x353fe3(0x133)](_0x1b0749,_0xc4652){const _0x138755=_0x353fe3;let _0x57720e=!0x1;const {removed:_0x60f7ba,inserted:_0x2735a8,moved:_0x3c65b4}=this[_0x138755(0x13e)][_0x138755(0x112)](_0xc4652);for(const _0x508162 of _0x60f7ba)this[_0x138755(0x147)](_0x1b0749,_0x508162)&&(_0x57720e=!0x0);for(const _0x3c5b1f of _0x2735a8)this[_0x138755(0xef)](_0x1b0749,_0x3c5b1f)&&(_0x57720e=!0x0);for(const _0x5e6842 of _0x3c65b4)this[_0x138755(0x108)](_0x1b0749,_0x5e6842)&&(_0x57720e=!0x0);return _0x57720e;}[_0x353fe3(0xf9)](_0x8e23fb){const _0x2c42af=_0x353fe3;if(!this[_0x2c42af(0x148)])return!0x1;let _0x4b3ec2=!0x1;if(this[_0x2c42af(0x148)][_0x2c42af(0xf3)]!==this[_0x2c42af(0x100)][_0x2c42af(0xf2)]){const _0x54bfa9=[];for(const _0x5b7c57 of this[_0x2c42af(0x148)][_0x2c42af(0x14a)]()){const _0x5d3be8=_0x5b7c57[_0x2c42af(0x111)](_0x2c42af(0x106));this[_0x2c42af(0x13d)](_0x5d3be8)||(_0x54bfa9[_0x2c42af(0x11d)](_0x5b7c57),_0x4b3ec2=!0x0);}for(const _0x210cae of _0x54bfa9)_0x8e23fb[_0x2c42af(0x11b)](_0x210cae);}const _0x1ad562=new Set(),_0x364d2a=[];for(const _0x59210f of this[_0x2c42af(0x148)][_0x2c42af(0x14a)]()){const _0x39aa31=_0x59210f[_0x2c42af(0x111)](_0x2c42af(0x106));_0x1ad562[_0x2c42af(0x124)](_0x39aa31)?(_0x364d2a[_0x2c42af(0x11d)](_0x59210f),_0x4b3ec2=!0x0):_0x1ad562[_0x2c42af(0x120)](_0x39aa31);}for(const _0xd2287c of _0x364d2a)_0x8e23fb[_0x2c42af(0x11b)](_0xd2287c);return this[_0x2c42af(0x148)][_0x2c42af(0xf3)]||(_0x8e23fb[_0x2c42af(0x11b)](this[_0x2c42af(0x148)]),this[_0x2c42af(0x148)]=null,_0x4b3ec2=!0x0),_0x4b3ec2;}[_0x353fe3(0xef)](_0x20293f,_0x143edd){const _0x2064c6=_0x353fe3;if(this[_0x2064c6(0x100)][_0x2064c6(0x11f)](_0x3d11b7=>_0x3d11b7[_0x2064c6(0x126)]===_0x143edd))return!0x1;let _0x5098ab=!0x1;const _0x35b5e0=_0x143edd[_0x2064c6(0x111)](_0x2064c6(0x106)),_0x293560=this[_0x2064c6(0x100)][_0x2064c6(0x12e)](_0x242a79=>_0x242a79['id']===_0x35b5e0);-0x1!==_0x293560&&(_0x20293f[_0x2064c6(0x11b)](this[_0x2064c6(0x100)][_0x293560][_0x2064c6(0x126)]),this[_0x2064c6(0x100)][_0x2064c6(0x105)](_0x293560,0x1),_0x5098ab=!0x0);let _0x5cf4ea=this[_0x2064c6(0x148)]?function(_0x474b08,_0x4387ee){const _0xca79cb=_0x2064c6;for(const _0x35daeb of _0x474b08[_0xca79cb(0x14a)]())if(_0x35daeb[_0xca79cb(0x111)](_0xca79cb(0x106))===_0x4387ee)return _0x35daeb;return null;}(this[_0x2064c6(0x148)],_0x35b5e0):null;_0x5cf4ea||(_0x5cf4ea=_0x20293f[_0x2064c6(0xfa)](_0x2064c6(0x152),{'footnoteId':_0x35b5e0}),this[_0x2064c6(0x148)]&&(_0x20293f[_0x2064c6(0x14f)](_0x5cf4ea,this[_0x2064c6(0x148)],_0x2064c6(0x14d)),_0x5098ab=!0x0));const _0x409be6={'id':_0x35b5e0,'reference':_0x143edd,'definition':_0x5cf4ea},_0x3e3b69=I(this[_0x2064c6(0x109)][_0x2064c6(0x134)],this[_0x2064c6(0x100)],_0x143edd);this[_0x2064c6(0x100)][_0x2064c6(0x105)](_0x3e3b69,0x0,_0x409be6);let _0x3f611c=_0x3e3b69;return-0x1!==_0x293560&&(_0x3f611c=Math[_0x2064c6(0x14b)](_0x3e3b69,_0x293560)),this[_0x2064c6(0x115)](_0x20293f,_0x3f611c)&&(_0x5098ab=!0x0),_0x5098ab;}[_0x353fe3(0x147)](_0x34e940,_0x513368){const _0x4a622e=_0x353fe3,_0x88cad7=this[_0x4a622e(0x100)][_0x4a622e(0x12e)](_0x607403=>_0x607403['id']===_0x513368);if(-0x1===_0x88cad7)return!0x1;let _0x4ad18b=!0x1;const _0x581672=this[_0x4a622e(0x100)][_0x88cad7];return _0x4a622e(0xed)!==_0x581672[_0x4a622e(0x11a)][_0x4a622e(0x11e)][_0x4a622e(0x14e)]&&(_0x34e940[_0x4a622e(0x11b)](_0x581672[_0x4a622e(0x11a)]),_0x4ad18b=!0x0),this[_0x4a622e(0x100)][_0x4a622e(0x105)](_0x88cad7,0x1),this[_0x4a622e(0x115)](_0x34e940,_0x88cad7)&&(_0x4ad18b=!0x0),_0x4ad18b;}[_0x353fe3(0x108)](_0x44b4b0,_0x56af59){const _0x1a6ee2=_0x353fe3,_0xa60e47=_0x56af59[_0x1a6ee2(0x111)](_0x1a6ee2(0x106)),_0x3fbef2=this[_0x1a6ee2(0x100)][_0x1a6ee2(0x12e)](_0x461a9e=>_0x461a9e['id']===_0xa60e47),_0x296545=this[_0x1a6ee2(0x100)][_0x3fbef2];let _0x5218d3=!0x1;_0x296545[_0x1a6ee2(0x126)]=_0x56af59,this[_0x1a6ee2(0x100)][_0x1a6ee2(0x105)](_0x3fbef2,0x1);const _0x51d157=I(this[_0x1a6ee2(0x109)][_0x1a6ee2(0x134)],this[_0x1a6ee2(0x100)],_0x56af59);return this[_0x1a6ee2(0x100)][_0x1a6ee2(0x105)](_0x51d157,0x0,_0x296545),this[_0x1a6ee2(0x115)](_0x44b4b0,Math[_0x1a6ee2(0x14b)](_0x3fbef2,_0x51d157))&&(_0x5218d3=!0x0),_0x5218d3;}[_0x353fe3(0x114)](_0x3dcd48,_0x594cbc){const _0x174eb3=_0x353fe3;if(!this[_0x174eb3(0x148)])return!0x1;const _0x1959ba=this[_0x174eb3(0x100)][_0x594cbc];let _0x551d2f;return _0x551d2f=this[_0x174eb3(0xf6)]?this[_0x174eb3(0xf6)]({'footnote':_0x1959ba,'container':this[_0x174eb3(0x148)],'digits':String(this[_0x174eb3(0x100)][_0x174eb3(0xf2)])[_0x174eb3(0xf2)],'value':_0x594cbc+0x1}):String(_0x594cbc+0x1),_0x1959ba[_0x174eb3(0x126)][_0x174eb3(0x111)](_0x174eb3(0x10d))!=_0x551d2f&&(_0x3dcd48[_0x174eb3(0x132)](_0x174eb3(0x10d),_0x551d2f,_0x1959ba[_0x174eb3(0x126)]),!0x0);}[_0x353fe3(0xf1)](_0x17de83){const _0x1d8661=_0x353fe3;if(!this[_0x1d8661(0x148)]||this[_0x1d8661(0x100)][_0x1d8661(0xf2)]<0x2)return!0x1;if(function(_0x4d1704,_0x36221a){const _0x1db06d=_0x1d8661;if(_0x4d1704[_0x1db06d(0xf2)]!==_0x36221a[_0x1db06d(0xf2)])return!0x1;for(let _0x4bbc80=0x0;_0x4bbc80<_0x4d1704[_0x1db06d(0xf2)];_0x4bbc80++)if(_0x4d1704[_0x4bbc80]!==_0x36221a[_0x4bbc80])return!0x1;return!0x0;}(this[_0x1d8661(0x100)][_0x1d8661(0xfd)](_0x1ff788=>_0x1ff788['id']),Array[_0x1d8661(0x142)](this[_0x1d8661(0x148)][_0x1d8661(0x14a)]())[_0x1d8661(0xfd)](_0x50a129=>_0x50a129[_0x1d8661(0x111)](_0x1d8661(0x106)))))return!0x1;let _0x535107=!0x1;for(let _0x2f5534=0x0;_0x2f5534<this[_0x1d8661(0x100)][_0x1d8661(0xf2)];_0x2f5534++){const _0x404837=this[_0x1d8661(0x100)][_0x2f5534],_0x56b1ee=_0x17de83[_0x1d8661(0xf0)](_0x404837[_0x1d8661(0x11a)]),_0x1d27fc=_0x17de83[_0x1d8661(0x122)](this[_0x1d8661(0x148)],_0x2f5534);_0x56b1ee[_0x1d8661(0x121)](_0x1d27fc)||(_0x17de83[_0x1d8661(0x137)](_0x17de83[_0x1d8661(0x101)](_0x404837[_0x1d8661(0x11a)]),_0x1d27fc),_0x535107=!0x0);}return _0x535107;}[_0x353fe3(0x13a)](_0x31e6b6){const _0x1ddd82=_0x353fe3;if(!this[_0x1ddd82(0x100)][_0x1ddd82(0xf2)])return!0x1;const {model:_0x471d22}=this[_0x1ddd82(0x109)];let _0x27f570=!0x1;for(let _0x512968=0x0;_0x512968<this[_0x1ddd82(0x100)][_0x1ddd82(0xf2)]-0x1;_0x512968++){const _0x4bb589=this[_0x1ddd82(0x100)][_0x512968],_0x1024aa=this[_0x1ddd82(0x100)][_0x512968+0x1],_0x4f01da=_0x471d22[_0x1ddd82(0xf0)](_0x4bb589[_0x1ddd82(0x126)]),_0x19ebd6=_0x471d22[_0x1ddd82(0xf0)](_0x1024aa[_0x1ddd82(0x126)]);_0x1ddd82(0x140)===_0x4f01da[_0x1ddd82(0x135)](_0x19ebd6)&&(this[_0x1ddd82(0x108)](_0x31e6b6,_0x4bb589[_0x1ddd82(0x126)]),_0x512968=-0x1,_0x27f570=!0x0);}return _0x27f570;}}function _(_0x5c8e16,_0x5e0c64,_0x587ff6){const _0x3c3d51=_0x353fe3;if(_0x587ff6[_0x3c3d51(0xf3)])return!0x1;const _0x2e5dd0=_0x5e0c64?_0x3c3d51(0x116):_0x3c3d51(0x10f);return _0x5c8e16[_0x3c3d51(0x14f)](_0x5c8e16[_0x3c3d51(0xfa)](_0x2e5dd0),_0x587ff6),!0x0;}function I(_0x31313e,_0x1e6ab8,_0x22e772){const _0x352d78=_0x353fe3;if(0x0===_0x1e6ab8[_0x352d78(0xf2)])return 0x0;const _0x5cf4cc=_0x31313e[_0x352d78(0xf0)](_0x22e772);for(let _0x28356e=0x0;_0x28356e<_0x1e6ab8[_0x352d78(0xf2)];_0x28356e++){const _0x33169a=_0x1e6ab8[_0x28356e],_0x21312f=_0x31313e[_0x352d78(0xf0)](_0x33169a[_0x352d78(0x126)]);if(_0x352d78(0x145)===_0x5cf4cc[_0x352d78(0x135)](_0x21312f))return _0x28356e;}const _0x1cda13=_0x22e772[_0x352d78(0x11e)];let _0x9fd6ea=-0x1;for(let _0x43fe12=_0x1e6ab8[_0x352d78(0xf2)]-0x1;_0x43fe12>=0x0;_0x43fe12--)if(_0x1e6ab8[_0x43fe12][_0x352d78(0x126)][_0x352d78(0x11e)]===_0x1cda13){_0x9fd6ea=_0x43fe12;break;}if(-0x1!==_0x9fd6ea)return _0x9fd6ea+0x1;const _0x14fb64=_0x31313e[_0x352d78(0xf5)][_0x352d78(0xfe)](),_0x2857fa=_0x14fb64[_0x352d78(0x143)](_0x1cda13[_0x352d78(0x14e)]),_0x403234=_0x14fb64[_0x2857fa+0x1];if(_0x403234){for(let _0x17ced4=0x0;_0x17ced4<_0x1e6ab8[_0x352d78(0xf2)];_0x17ced4++)if(_0x1e6ab8[_0x17ced4][_0x352d78(0x126)][_0x352d78(0x11e)][_0x352d78(0x14e)]===_0x403234)return _0x17ced4;}return _0x1e6ab8[_0x352d78(0xf2)];}
|
|
23
|
+
const _0x5d23cb=_0x4670;(function(_0x5d42e9,_0x2e4de9){const _0x5e79ed=_0x4670,_0x393c95=_0x5d42e9();while(!![]){try{const _0x10fc77=parseInt(_0x5e79ed(0x201))/0x1+-parseInt(_0x5e79ed(0x1fe))/0x2*(parseInt(_0x5e79ed(0x1ed))/0x3)+-parseInt(_0x5e79ed(0x203))/0x4*(parseInt(_0x5e79ed(0x1e2))/0x5)+-parseInt(_0x5e79ed(0x216))/0x6*(parseInt(_0x5e79ed(0x1e4))/0x7)+-parseInt(_0x5e79ed(0x218))/0x8*(parseInt(_0x5e79ed(0x20a))/0x9)+-parseInt(_0x5e79ed(0x20e))/0xa*(-parseInt(_0x5e79ed(0x1d6))/0xb)+-parseInt(_0x5e79ed(0x1dd))/0xc*(-parseInt(_0x5e79ed(0x1d9))/0xd);if(_0x10fc77===_0x2e4de9)break;else _0x393c95['push'](_0x393c95['shift']());}catch(_0x2ee144){_0x393c95['push'](_0x393c95['shift']());}}}(_0x15c1,0xdda1a));import{Plugin as _0x1aec17}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x257f99}from'./modelelementtracker.js';export class FootnotesTracker extends _0x1aec17{[_0x5d23cb(0x205)]=[];[_0x5d23cb(0x21e)]=null;[_0x5d23cb(0x1d2)]=null;[_0x5d23cb(0x210)];[_0x5d23cb(0x22a)];[_0x5d23cb(0x1f6)];static get[_0x5d23cb(0x1db)](){const _0x13050b=_0x5d23cb;return _0x13050b(0x224);}static get[_0x5d23cb(0x1ce)](){return!0x0;}static get[_0x5d23cb(0x220)](){return!0x0;}constructor(_0xf75a02){const _0x101447=_0x5d23cb;super(_0xf75a02),this[_0x101447(0x210)]=new _0x257f99(this[_0x101447(0x207)][_0x101447(0x1d7)],{'elementName':_0x101447(0x1c9),'getElementKey':()=>_0x101447(0x1f3)}),this[_0x101447(0x22a)]=new _0x257f99(this[_0x101447(0x207)][_0x101447(0x1d7)],{'elementName':_0x101447(0x1e1),'getElementKey':_0x30be47=>_0x30be47[_0x101447(0x1c6)](_0x101447(0x1c8))}),this[_0x101447(0x1f6)]=new _0x257f99(this[_0x101447(0x207)][_0x101447(0x1d7)],{'elementName':_0x101447(0x214),'getElementKey':_0x2ba78e=>_0x2ba78e[_0x101447(0x1c6)](_0x101447(0x1c8))});}[_0x5d23cb(0x21a)](){const _0x59e5f4=_0x5d23cb,{editor:_0x22f818}=this,{model:_0x3e6a2e,data:_0x57cde1}=_0x22f818;_0x3e6a2e[_0x59e5f4(0x21d)][_0x59e5f4(0x1f8)](_0x23d194=>{const _0x3f0521=_0x59e5f4,_0x193086=_0x3e6a2e[_0x3f0521(0x21d)][_0x3f0521(0x209)][_0x3f0521(0x21b)]();let _0x2ff260=!0x1;return this[_0x3f0521(0x22d)](_0x23d194,_0x193086)&&(_0x2ff260=!0x0),this[_0x3f0521(0x21f)](_0x23d194,_0x193086)&&(_0x2ff260=!0x0),this[_0x3f0521(0x219)](_0x23d194,_0x193086)&&(_0x2ff260=!0x0),this[_0x3f0521(0x1f2)](_0x23d194)&&(_0x2ff260=!0x0),this[_0x3f0521(0x1d3)](_0x23d194)&&(_0x2ff260=!0x0),this[_0x3f0521(0x221)](_0x23d194)&&(_0x2ff260=!0x0),_0x2ff260;}),this[_0x59e5f4(0x1de)](_0x3e6a2e[_0x59e5f4(0x21d)],_0x59e5f4(0x222),()=>{const _0x5cb966=_0x59e5f4;_0x3e6a2e[_0x5cb966(0x1e3)]({'isUndoable':!0x1},_0xf4794e=>{const _0x23f167=_0x5cb966;this[_0x23f167(0x1fa)](_0xf4794e);});},{'priority':_0x59e5f4(0x1d5)}),this[_0x59e5f4(0x1de)](_0x57cde1,_0x59e5f4(0x20d),()=>{const _0x41f756=_0x59e5f4;this[_0x41f756(0x205)]=[],this[_0x41f756(0x210)][_0x41f756(0x1e6)](),this[_0x41f756(0x22a)][_0x41f756(0x1e6)](),this[_0x41f756(0x1f6)][_0x41f756(0x1e6)]();},{'priority':_0x59e5f4(0x21c)});}[_0x5d23cb(0x217)](){const _0x4e48fd=_0x5d23cb;return this[_0x4e48fd(0x21e)];}[_0x5d23cb(0x225)](_0x4bf505){const _0x51a4eb=_0x5d23cb;return this[_0x51a4eb(0x205)][_0x51a4eb(0x1e7)](_0x1bcd20=>_0x1bcd20['id']===_0x4bf505)||null;}[_0x5d23cb(0x1ee)](){const _0x4d241b=_0x5d23cb;return Array[_0x4d241b(0x1fc)](this[_0x4d241b(0x205)]);}[_0x5d23cb(0x1f5)](){const _0x462f6c=_0x5d23cb;return this[_0x462f6c(0x1d2)];}[_0x5d23cb(0x229)](_0x41dcff){const _0x3d81d4=_0x5d23cb;this[_0x3d81d4(0x1d2)]=_0x41dcff;}[_0x5d23cb(0x1cf)](_0x3ef0f4,_0x1a1ff8=0x0){const _0x25a972=_0x5d23cb;let _0x182b3c=!0x1;for(let _0x176557=_0x1a1ff8;_0x176557<this[_0x25a972(0x205)][_0x25a972(0x1d1)];_0x176557++)this[_0x25a972(0x1d0)](_0x3ef0f4,_0x176557)&&(_0x182b3c=!0x0);return _0x182b3c;}[_0x5d23cb(0x213)](_0x5b3e38,_0x25287d){const _0x3b7583=_0x5d23cb,_0x3c0dfe=_0x5b3e38[_0x3b7583(0x212)](_0x3b7583(0x1c9),{});return _0x5b3e38[_0x3b7583(0x200)](_0x3c0dfe,_0x25287d),this[_0x3b7583(0x21e)]=_0x3c0dfe,_0x3c0dfe;}[_0x5d23cb(0x1fa)](_0xda96a5){const _0x536a82=_0x5d23cb;if(!this[_0x536a82(0x205)][_0x536a82(0x1d1)]||this[_0x536a82(0x21e)])return;const _0x469e0f=this[_0x536a82(0x205)][0x0][_0x536a82(0x1ca)][_0x536a82(0x1f4)],_0x345afa=this[_0x536a82(0x213)](_0xda96a5,_0x469e0f);for(const _0x332d2b of this[_0x536a82(0x205)])_0x332d2b[_0x536a82(0x1fb)][_0x536a82(0x1ff)]||_0xda96a5[_0x536a82(0x1cd)](_0x332d2b[_0x536a82(0x1fb)],_0x345afa,_0x536a82(0x1df));this[_0x536a82(0x1cf)](_0xda96a5);}[_0x5d23cb(0x22d)](_0x23be1d,_0x59d7bb){const _0x1c4189=_0x5d23cb;let _0x24412e=!0x1;const {inserted:_0x2ed23f,removed:_0x3bd9b5,moved:_0x5754d1}=this[_0x1c4189(0x210)][_0x1c4189(0x21b)](_0x59d7bb);if(_0x5754d1[_0x1c4189(0x1d1)]&&(this[_0x1c4189(0x21e)]=_0x5754d1[0x0]),_0x2ed23f[_0x1c4189(0x1d1)]){if(_0x2ed23f[_0x1c4189(0x1d1)]>0x1||this[_0x1c4189(0x21e)]&&_0x2ed23f[_0x1c4189(0x226)](_0xec7f55=>_0xec7f55!==this[_0x1c4189(0x21e)])){const _0x157c4f=_0x23be1d[_0x1c4189(0x212)](_0x1c4189(0x1c9),{}),_0x15afc8=[];this[_0x1c4189(0x21e)]&&_0x15afc8[_0x1c4189(0x1f0)](this[_0x1c4189(0x21e)]),_0x15afc8[_0x1c4189(0x1f0)](..._0x2ed23f),_0x23be1d[_0x1c4189(0x1cd)](_0x157c4f,_0x15afc8[0x0],_0x1c4189(0x1cc));for(const _0x231905 of _0x15afc8)_0x23be1d[_0x1c4189(0x1e8)](_0x23be1d[_0x1c4189(0x20c)](_0x231905),_0x23be1d[_0x1c4189(0x227)](_0x157c4f,_0x1c4189(0x1df))),_0x23be1d[_0x1c4189(0x1ea)](_0x231905);this[_0x1c4189(0x21e)]=_0x157c4f,this[_0x1c4189(0x1cf)](_0x23be1d),_0x24412e=!0x0;}else this[_0x1c4189(0x21e)]=_0x2ed23f[0x0];}if(_0x3bd9b5[_0x1c4189(0x1d1)]&&_0x1c4189(0x1f1)===this[_0x1c4189(0x21e)]?.[_0x1c4189(0x1f4)][_0x1c4189(0x215)]){for(const _0x1ec50c of this[_0x1c4189(0x205)])_0x23be1d[_0x1c4189(0x1ea)](_0x1ec50c[_0x1c4189(0x1ca)]),_0x24412e=!0x0;this[_0x1c4189(0x205)]=[],this[_0x1c4189(0x21e)]=null;}return _0x24412e;}[_0x5d23cb(0x21f)](_0x56ab54,_0x14733e){const _0x319bb0=_0x5d23cb;let _0x5e91ba=!0x1;const _0x19877f=this[_0x319bb0(0x207)][_0x319bb0(0x211)][_0x319bb0(0x22b)](_0x319bb0(0x206)),{inserted:_0x2c2567,moved:_0x3bece0}=this[_0x319bb0(0x1f6)][_0x319bb0(0x21b)](_0x14733e);for(const _0x618aec of[..._0x3bece0,..._0x2c2567]){const _0x43e955=_0x618aec[_0x319bb0(0x1c6)](_0x319bb0(0x1c8)),_0x3c4239=this[_0x319bb0(0x225)](_0x43e955);_0x3c4239&&(_0x3c4239[_0x319bb0(0x1fb)]=_0x618aec),_(_0x56ab54,_0x19877f,_0x618aec)&&(_0x5e91ba=!0x0);}return _0x5e91ba;}[_0x5d23cb(0x219)](_0x3d6bb3,_0x16d880){const _0x4d9dee=_0x5d23cb;let _0x3c2541=!0x1;const {removed:_0x44ccdd,inserted:_0x45560a,moved:_0xcf7ded}=this[_0x4d9dee(0x22a)][_0x4d9dee(0x21b)](_0x16d880);for(const _0x5a6810 of _0x44ccdd)this[_0x4d9dee(0x1e5)](_0x3d6bb3,_0x5a6810)&&(_0x3c2541=!0x0);for(const _0xf16f15 of _0x45560a)this[_0x4d9dee(0x1f9)](_0x3d6bb3,_0xf16f15)&&(_0x3c2541=!0x0);for(const _0x5f2f13 of _0xcf7ded)this[_0x4d9dee(0x1e9)](_0x3d6bb3,_0x5f2f13)&&(_0x3c2541=!0x0);return _0x3c2541;}[_0x5d23cb(0x1d3)](_0x9e85b){const _0x46030c=_0x5d23cb;if(!this[_0x46030c(0x21e)])return!0x1;let _0x282b97=!0x1;if(this[_0x46030c(0x21e)][_0x46030c(0x20f)]!==this[_0x46030c(0x205)][_0x46030c(0x1d1)]){const _0x589a1f=[];for(const _0x3c5404 of this[_0x46030c(0x21e)][_0x46030c(0x1eb)]()){const _0x2be76e=_0x3c5404[_0x46030c(0x1c6)](_0x46030c(0x1c8));this[_0x46030c(0x225)](_0x2be76e)||(_0x589a1f[_0x46030c(0x1d8)](_0x3c5404),_0x282b97=!0x0);}for(const _0x95b25a of _0x589a1f)_0x9e85b[_0x46030c(0x1ea)](_0x95b25a);}const _0x189b2b=new Set(),_0x1d2bcf=[];for(const _0x22e711 of this[_0x46030c(0x21e)][_0x46030c(0x1eb)]()){const _0x3807f1=_0x22e711[_0x46030c(0x1c6)](_0x46030c(0x1c8));_0x189b2b[_0x46030c(0x1ec)](_0x3807f1)?(_0x1d2bcf[_0x46030c(0x1d8)](_0x22e711),_0x282b97=!0x0):_0x189b2b[_0x46030c(0x22c)](_0x3807f1);}for(const _0x47686e of _0x1d2bcf)_0x9e85b[_0x46030c(0x1ea)](_0x47686e);return this[_0x46030c(0x21e)][_0x46030c(0x20f)]||(_0x9e85b[_0x46030c(0x1ea)](this[_0x46030c(0x21e)]),this[_0x46030c(0x21e)]=null,_0x282b97=!0x0),_0x282b97;}[_0x5d23cb(0x1f9)](_0x1f693d,_0x57bbd8){const _0x55994b=_0x5d23cb;if(this[_0x55994b(0x205)][_0x55994b(0x1e7)](_0x556611=>_0x556611[_0x55994b(0x1ca)]===_0x57bbd8))return!0x1;let _0x2ca9ac=!0x1;const _0xd81ad6=_0x57bbd8[_0x55994b(0x1c6)](_0x55994b(0x1c8)),_0x464167=this[_0x55994b(0x205)][_0x55994b(0x202)](_0x4d554a=>_0x4d554a['id']===_0xd81ad6);-0x1!==_0x464167&&(_0x1f693d[_0x55994b(0x1ea)](this[_0x55994b(0x205)][_0x464167][_0x55994b(0x1ca)]),this[_0x55994b(0x205)][_0x55994b(0x20b)](_0x464167,0x1),_0x2ca9ac=!0x0);let _0x3dfc17=this[_0x55994b(0x21e)]?function(_0x5c1279,_0x509182){const _0x147f85=_0x55994b;for(const _0x40b8d8 of _0x5c1279[_0x147f85(0x1eb)]())if(_0x40b8d8[_0x147f85(0x1c6)](_0x147f85(0x1c8))===_0x509182)return _0x40b8d8;return null;}(this[_0x55994b(0x21e)],_0xd81ad6):null;_0x3dfc17||(_0x3dfc17=_0x1f693d[_0x55994b(0x212)](_0x55994b(0x214),{'footnoteId':_0xd81ad6}),this[_0x55994b(0x21e)]&&(_0x1f693d[_0x55994b(0x1cd)](_0x3dfc17,this[_0x55994b(0x21e)],_0x55994b(0x1df)),_0x2ca9ac=!0x0));const _0x50a092={'id':_0xd81ad6,'reference':_0x57bbd8,'definition':_0x3dfc17},_0x2cea1a=I(this[_0x55994b(0x207)][_0x55994b(0x1d7)],this[_0x55994b(0x205)],_0x57bbd8);this[_0x55994b(0x205)][_0x55994b(0x20b)](_0x2cea1a,0x0,_0x50a092);let _0x2d21a6=_0x2cea1a;return-0x1!==_0x464167&&(_0x2d21a6=Math[_0x55994b(0x228)](_0x2cea1a,_0x464167)),this[_0x55994b(0x1cf)](_0x1f693d,_0x2d21a6)&&(_0x2ca9ac=!0x0),_0x2ca9ac;}[_0x5d23cb(0x1e5)](_0x421c20,_0x5f3816){const _0x30b0d8=_0x5d23cb,_0x42b098=this[_0x30b0d8(0x205)][_0x30b0d8(0x202)](_0x416f3b=>_0x416f3b['id']===_0x5f3816);if(-0x1===_0x42b098)return!0x1;let _0xe0ddd6=!0x1;const _0x216317=this[_0x30b0d8(0x205)][_0x42b098];return _0x30b0d8(0x1f1)!==_0x216317[_0x30b0d8(0x1fb)][_0x30b0d8(0x1f4)][_0x30b0d8(0x215)]&&(_0x421c20[_0x30b0d8(0x1ea)](_0x216317[_0x30b0d8(0x1fb)]),_0xe0ddd6=!0x0),this[_0x30b0d8(0x205)][_0x30b0d8(0x20b)](_0x42b098,0x1),this[_0x30b0d8(0x1cf)](_0x421c20,_0x42b098)&&(_0xe0ddd6=!0x0),_0xe0ddd6;}[_0x5d23cb(0x1e9)](_0x57c373,_0x30b65d){const _0x36322a=_0x5d23cb,_0x388715=_0x30b65d[_0x36322a(0x1c6)](_0x36322a(0x1c8)),_0x1c4e6d=this[_0x36322a(0x205)][_0x36322a(0x202)](_0x56f2aa=>_0x56f2aa['id']===_0x388715),_0x558427=this[_0x36322a(0x205)][_0x1c4e6d];let _0x33ef49=!0x1;_0x558427[_0x36322a(0x1ca)]=_0x30b65d,this[_0x36322a(0x205)][_0x36322a(0x20b)](_0x1c4e6d,0x1);const _0x252220=I(this[_0x36322a(0x207)][_0x36322a(0x1d7)],this[_0x36322a(0x205)],_0x30b65d);return this[_0x36322a(0x205)][_0x36322a(0x20b)](_0x252220,0x0,_0x558427),this[_0x36322a(0x1cf)](_0x57c373,Math[_0x36322a(0x228)](_0x1c4e6d,_0x252220))&&(_0x33ef49=!0x0),_0x33ef49;}[_0x5d23cb(0x1d0)](_0x140705,_0x875e25){const _0x586055=_0x5d23cb;if(!this[_0x586055(0x21e)])return!0x1;const _0x199288=this[_0x586055(0x205)][_0x875e25];let _0x542f3e;return _0x542f3e=this[_0x586055(0x1d2)]?this[_0x586055(0x1d2)]({'footnote':_0x199288,'container':this[_0x586055(0x21e)],'digits':String(this[_0x586055(0x205)][_0x586055(0x1d1)])[_0x586055(0x1d1)],'value':_0x875e25+0x1}):String(_0x875e25+0x1),_0x199288[_0x586055(0x1ca)][_0x586055(0x1c6)](_0x586055(0x1d4))!=_0x542f3e&&(_0x140705[_0x586055(0x1dc)](_0x586055(0x1d4),_0x542f3e,_0x199288[_0x586055(0x1ca)]),!0x0);}[_0x5d23cb(0x221)](_0x29baca){const _0x4b3318=_0x5d23cb;if(!this[_0x4b3318(0x21e)]||this[_0x4b3318(0x205)][_0x4b3318(0x1d1)]<0x2)return!0x1;if(function(_0xed515a,_0x37e76e){const _0x344c48=_0x4b3318;if(_0xed515a[_0x344c48(0x1d1)]!==_0x37e76e[_0x344c48(0x1d1)])return!0x1;for(let _0x4ed7cc=0x0;_0x4ed7cc<_0xed515a[_0x344c48(0x1d1)];_0x4ed7cc++)if(_0xed515a[_0x4ed7cc]!==_0x37e76e[_0x4ed7cc])return!0x1;return!0x0;}(this[_0x4b3318(0x205)][_0x4b3318(0x1e0)](_0x20e3f5=>_0x20e3f5['id']),Array[_0x4b3318(0x1fc)](this[_0x4b3318(0x21e)][_0x4b3318(0x1eb)]())[_0x4b3318(0x1e0)](_0x2a5ea2=>_0x2a5ea2[_0x4b3318(0x1c6)](_0x4b3318(0x1c8)))))return!0x1;let _0x55fec1=!0x1;for(let _0x74a941=0x0;_0x74a941<this[_0x4b3318(0x205)][_0x4b3318(0x1d1)];_0x74a941++){const _0x12d9e7=this[_0x4b3318(0x205)][_0x74a941],_0x26d3b7=_0x29baca[_0x4b3318(0x1f7)](_0x12d9e7[_0x4b3318(0x1fb)]),_0xa5fff6=_0x29baca[_0x4b3318(0x227)](this[_0x4b3318(0x21e)],_0x74a941);_0x26d3b7[_0x4b3318(0x1c7)](_0xa5fff6)||(_0x29baca[_0x4b3318(0x1e8)](_0x29baca[_0x4b3318(0x1cb)](_0x12d9e7[_0x4b3318(0x1fb)]),_0xa5fff6),_0x55fec1=!0x0);}return _0x55fec1;}[_0x5d23cb(0x1f2)](_0x46b20d){const _0x55b1ef=_0x5d23cb;if(!this[_0x55b1ef(0x205)][_0x55b1ef(0x1d1)])return!0x1;const {model:_0x587d88}=this[_0x55b1ef(0x207)];let _0x59cb99=!0x1;for(let _0x3d078d=0x0;_0x3d078d<this[_0x55b1ef(0x205)][_0x55b1ef(0x1d1)]-0x1;_0x3d078d++){const _0x690325=this[_0x55b1ef(0x205)][_0x3d078d],_0x526de0=this[_0x55b1ef(0x205)][_0x3d078d+0x1],_0x534a17=_0x587d88[_0x55b1ef(0x1f7)](_0x690325[_0x55b1ef(0x1ca)]),_0x1b3224=_0x587d88[_0x55b1ef(0x1f7)](_0x526de0[_0x55b1ef(0x1ca)]);_0x55b1ef(0x208)===_0x534a17[_0x55b1ef(0x1ef)](_0x1b3224)&&(this[_0x55b1ef(0x1e9)](_0x46b20d,_0x690325[_0x55b1ef(0x1ca)]),_0x3d078d=-0x1,_0x59cb99=!0x0);}return _0x59cb99;}}function _0x4670(_0x59ec75,_0x360678){const _0x15c156=_0x15c1();return _0x4670=function(_0x4670ac,_0x233bdc){_0x4670ac=_0x4670ac-0x1c6;let _0x4624e9=_0x15c156[_0x4670ac];return _0x4624e9;},_0x4670(_0x59ec75,_0x360678);}function _(_0x1781e9,_0x372ec6,_0x36c53d){const _0x4e97da=_0x5d23cb;if(_0x36c53d[_0x4e97da(0x20f)])return!0x1;const _0x5ddb6d=_0x372ec6?_0x4e97da(0x204):_0x4e97da(0x1da);return _0x1781e9[_0x4e97da(0x1cd)](_0x1781e9[_0x4e97da(0x212)](_0x5ddb6d),_0x36c53d),!0x0;}function _0x15c1(){const _0xffbf34=['compareWith','push','$graveyard','_ensureFootnotesReferencesHaveProperOrder','singleton','root','getFootnotesFormatter','_footnoteDefsTracker','createPositionBefore','registerPostFixer','_handleInsertedFootnoteReference','_ensureFootnotesDefinitionsContainerExists','definition','from','getRootNames','276418SlDkFA','parent','append','601781GeZMzM','findIndex','2748WsQCOB','paragraph','_footnotes','footnotes.multiBlock','editor','after','differ','27nxPTSg','splice','createRangeIn','set','11210LBGeqc','childCount','_footnoteDefsContainerTracker','config','createElement','_insertEmptyFootnotesDefinitionsContainer','footnoteDefinition','rootName','8243106WAfLFX','getFootnotesDefinitionsObjectElement','350056UXGprj','_handleFootnoteReferencesChanges','init','getChanges','high','document','_footnotesDefinitions','_handleFootnoteDefinitionsChanges','isPremiumPlugin','_sortFootnoteDefinitions','change:data','indexOf','FootnotesTracker','getFootnote','some','createPositionAt','min','setFootnoteFormatter','_footnoteRefsTracker','get','add','_handleFootnotesDefinitionsObjectChanges','getAttribute','isEqual','footnoteId','footnotesDefinitions','reference','createRangeOn','before','insert','isOfficialPlugin','_updateFootnotesCounters','_updateFootnoteRefCounter','length','_footnoteFormatter','_handleFootnotesDefinitionsObjectSync','footnoteCounter','low','7084zVBrbK','model','unshift','51011909IOOnOP','footnoteInlineContent','pluginName','setAttribute','12kArPLm','listenTo','end','map','footnoteRef','7555IIGchy','enqueueChange','7LYSShI','_handleRemoveFootnoteReferenceById','reset','find','move','_handleMovedFootnoteReference','remove','getChildren','has','39vsJXwg','getFootnotes'];_0x15c1=function(){return _0xffbf34;};return _0x15c1();}function I(_0x27d8a8,_0x4ff169,_0x4edefd){const _0x1872f4=_0x5d23cb;if(0x0===_0x4ff169[_0x1872f4(0x1d1)])return 0x0;const _0x3ccb24=_0x27d8a8[_0x1872f4(0x1f7)](_0x4edefd);for(let _0x134ed6=0x0;_0x134ed6<_0x4ff169[_0x1872f4(0x1d1)];_0x134ed6++){const _0x3539c5=_0x4ff169[_0x134ed6],_0x2705a5=_0x27d8a8[_0x1872f4(0x1f7)](_0x3539c5[_0x1872f4(0x1ca)]);if(_0x1872f4(0x1cc)===_0x3ccb24[_0x1872f4(0x1ef)](_0x2705a5))return _0x134ed6;}const _0xf2fa30=_0x4edefd[_0x1872f4(0x1f4)];let _0x1eeb3f=-0x1;for(let _0x1bdf7f=_0x4ff169[_0x1872f4(0x1d1)]-0x1;_0x1bdf7f>=0x0;_0x1bdf7f--)if(_0x4ff169[_0x1bdf7f][_0x1872f4(0x1ca)][_0x1872f4(0x1f4)]===_0xf2fa30){_0x1eeb3f=_0x1bdf7f;break;}if(-0x1!==_0x1eeb3f)return _0x1eeb3f+0x1;const _0x450276=_0x27d8a8[_0x1872f4(0x21d)][_0x1872f4(0x1fd)](),_0x770c7=_0x450276[_0x1872f4(0x223)](_0xf2fa30[_0x1872f4(0x215)]),_0x2f83a4=_0x450276[_0x770c7+0x1];if(_0x2f83a4){for(let _0x466ca1=0x0;_0x466ca1<_0x4ff169[_0x1872f4(0x1d1)];_0x466ca1++)if(_0x4ff169[_0x466ca1][_0x1872f4(0x1ca)][_0x1872f4(0x1f4)][_0x1872f4(0x215)]===_0x2f83a4)return _0x466ca1;}return _0x4ff169[_0x1872f4(0x1d1)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x251a09,MenuBarMenuListItemButtonView as _0x11bb31}from'ckeditor5/src/ui.js';import{Plugin as _0x1e2c7a}from'ckeditor5/src/core.js';import{IconFootnote as _0x16f8db}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x1e2c7a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd0e573}=this,{componentFactory:_0x5e3b45}=_0xd0e573['ui'];_0x5e3b45['add']('insertFootnote',E(_0xd0e573,_0x251a09)),_0x5e3b45['add']('menuBar:insertFootnote',E(_0xd0e573,_0x11bb31)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16aa46=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x230b15;for(const _0x370e7e in _0x16aa46){const _0x19584b=_0x370e7e,_0x2ed0c8=_0x16aa46[_0x19584b];if('footnotesLicenseKeyValid'==_0x2ed0c8||'footnotesLicenseKeyInvalid'==_0x2ed0c8||'footnotesLicenseKeyExpired'==_0x2ed0c8||'footnotesLicenseKeyDomainLimit'==_0x2ed0c8||'footnotesLicenseKeyNotAllowed'==_0x2ed0c8||'footnotesLicenseKeyEvaluationLimit'==_0x2ed0c8||'footnotesLicenseKeyUsageLimit'==_0x2ed0c8){delete _0x16aa46[_0x19584b],_0x230b15=_0x2ed0c8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x230b15&&_0x16aa46['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x230b15&&_0x16aa46['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x230b15&&_0x16aa46['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x230b15&&_0x16aa46['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x230b15&&_0x16aa46['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x230b15&&_0x16aa46['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x30e68a,_0x2d612f){const _0x3a6687=_0x30e68a['commands']['get']('insertFootnote');return _0x4c3cc2=>{const {t:t}=_0x4c3cc2,_0x456ddd=new _0x2d612f(_0x4c3cc2),_0x3f7eb5=_0x456ddd instanceof _0x11bb31;return _0x456ddd['bind']('isEnabled')['to'](_0x3a6687,'isEnabled'),_0x456ddd['set']({'label':t(_0x3f7eb5?'Footnote':'Insert\x20footnote'),'icon':_0x16f8db,'tooltip':!0x0}),_0x456ddd['on']('execute',()=>{_0x3a6687['execute'](),_0x30e68a['editing']['view']['focus']();}),_0x456ddd;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2288(_0x1ba7a9,_0x49fafb){var _0x295777=_0x2957();return _0x2288=function(_0x228899,_0x478f94){_0x228899=_0x228899-0x1d3;var _0x256457=_0x295777[_0x228899];return _0x256457;},_0x2288(_0x1ba7a9,_0x49fafb);}(function(_0x383453,_0x1eb227){var _0x2c6f11=_0x2288,_0x23cb28=_0x383453();while(!![]){try{var _0x4fbae4=parseInt(_0x2c6f11(0x1d5))/0x1+-parseInt(_0x2c6f11(0x1d4))/0x2+-parseInt(_0x2c6f11(0x1da))/0x3*(-parseInt(_0x2c6f11(0x1db))/0x4)+parseInt(_0x2c6f11(0x1d3))/0x5+-parseInt(_0x2c6f11(0x1d8))/0x6+parseInt(_0x2c6f11(0x1d7))/0x7+parseInt(_0x2c6f11(0x1d9))/0x8*(-parseInt(_0x2c6f11(0x1d6))/0x9);if(_0x4fbae4===_0x1eb227)break;else _0x23cb28['push'](_0x23cb28['shift']());}catch(_0x2ae3c3){_0x23cb28['push'](_0x23cb28['shift']());}}}(_0x2957,0xadb45));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';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';function _0x2957(){var _0xaa8ed2=['486885HzqzZO','20sblgTa','5507370dmmmOH','630406ZcONcz','393281IEqJky','523728KRPpgH','2995664KrXmjc','2214420WpVsPa','184qcStoq'];_0x2957=function(){return _0xaa8ed2;};return _0x2957();}export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2b5d(){const _0x51f505=['getChanges','11270286irrdhJ','_getElementKey','_trackedElements','getItems','2307584yuOkNF','set','from','rootName','115hvLzbI','attributes','elementName','$graveyard','position','91356QoUdKO','name','type','get','$text','_model','reset','_elementName','insert','1329Xcktrs','length','values','createRangeOn','1906RNwltz','slice','2840306ELmPSb','remove','clear','589329YJIpjt','nodeAfter','push','root','3375884arEeYi','element','flat','add','delete','getElementKey','has'];_0x2b5d=function(){return _0x51f505;};return _0x2b5d();}const _0x142165=_0x374c;function _0x374c(_0x4534e8,_0x22f662){const _0x2b5d64=_0x2b5d();return _0x374c=function(_0x374c7e,_0x28b28d){_0x374c7e=_0x374c7e-0x65;let _0x5606d1=_0x2b5d64[_0x374c7e];return _0x5606d1;},_0x374c(_0x4534e8,_0x22f662);}(function(_0x1c9219,_0x1f9fd0){const _0x2ab6cc=_0x374c,_0x58152e=_0x1c9219();while(!![]){try{const _0x26850a=-parseInt(_0x2ab6cc(0x7a))/0x1+-parseInt(_0x2ab6cc(0x75))/0x2*(-parseInt(_0x2ab6cc(0x71))/0x3)+parseInt(_0x2ab6cc(0x7e))/0x4+-parseInt(_0x2ab6cc(0x8e))/0x5*(-parseInt(_0x2ab6cc(0x68))/0x6)+parseInt(_0x2ab6cc(0x77))/0x7+parseInt(_0x2ab6cc(0x8a))/0x8+-parseInt(_0x2ab6cc(0x86))/0x9;if(_0x26850a===_0x1f9fd0)break;else _0x58152e['push'](_0x58152e['shift']());}catch(_0x1c6973){_0x58152e['push'](_0x58152e['shift']());}}}(_0x2b5d,0x727eb));export class ModelElementTracker{[_0x142165(0x6d)];[_0x142165(0x6f)];[_0x142165(0x87)];[_0x142165(0x88)]=new Map();constructor(_0x32ca3c,_0x347b6c){const _0x160f21=_0x142165;this[_0x160f21(0x6d)]=_0x32ca3c,this[_0x160f21(0x6f)]=_0x347b6c[_0x160f21(0x65)],this[_0x160f21(0x87)]=_0x347b6c[_0x160f21(0x83)];}[_0x142165(0x6e)](){const _0x29a4cb=_0x142165;this[_0x29a4cb(0x88)][_0x29a4cb(0x79)]();}[_0x142165(0x85)](_0x466572){const _0x5177d9=_0x142165,_0x3151bc=new Set(),_0x53920c=new Map();for(const _0x406056 of _0x466572){if(_0x5177d9(0x70)===_0x406056[_0x5177d9(0x6a)]&&_0x5177d9(0x6c)!==_0x406056[_0x5177d9(0x69)]&&_0x406056[_0x5177d9(0x67)][_0x5177d9(0x7b)]){const _0x220435=this[_0x5177d9(0x6d)][_0x5177d9(0x74)](_0x406056[_0x5177d9(0x67)][_0x5177d9(0x7b)]);for(const _0x4340c9 of _0x220435[_0x5177d9(0x89)]()){if(!_0x4340c9['is'](_0x5177d9(0x7f),this[_0x5177d9(0x6f)]))continue;const _0xe62e84=this[_0x5177d9(0x87)](_0x4340c9);_0x53920c[_0x5177d9(0x84)](_0xe62e84)||_0x53920c[_0x5177d9(0x8b)](_0xe62e84,[]),_0x53920c[_0x5177d9(0x6b)](_0xe62e84)[_0x5177d9(0x7c)](_0x4340c9);}}if(_0x5177d9(0x78)===_0x406056[_0x5177d9(0x6a)]&&_0x406056[_0x5177d9(0x69)]===this[_0x5177d9(0x6f)]){const _0x4e0659=this[_0x5177d9(0x87)]({'getAttribute':_0x4e795b=>_0x406056[_0x5177d9(0x8f)][_0x5177d9(0x6b)](_0x4e795b)});_0x3151bc[_0x5177d9(0x81)](_0x4e0659);}}for(const [_0x42318e,_0x5d6da5]of this[_0x5177d9(0x88)])_0x5177d9(0x66)===_0x5d6da5[_0x5177d9(0x7d)][_0x5177d9(0x8d)]&&_0x3151bc[_0x5177d9(0x81)](_0x42318e);for(const _0x3faf54 of _0x3151bc)this[_0x5177d9(0x88)][_0x5177d9(0x82)](_0x3faf54);for(const [_0x41e4e7,_0x33ac48]of _0x53920c)this[_0x5177d9(0x88)][_0x5177d9(0x8b)](_0x41e4e7,_0x33ac48[_0x33ac48[_0x5177d9(0x72)]-0x1]);const _0x52ae2c=new Set();for(const [_0x3c4231,_0x3296f9]of _0x53920c)_0x3151bc[_0x5177d9(0x84)](_0x3c4231)&&(_0x52ae2c[_0x5177d9(0x81)](_0x3296f9[0x0]),_0x3296f9[_0x5177d9(0x72)]>0x1?_0x53920c[_0x5177d9(0x8b)](_0x3c4231,_0x3296f9[_0x5177d9(0x76)](0x1)):_0x53920c[_0x5177d9(0x82)](_0x3c4231),_0x3151bc[_0x5177d9(0x82)](_0x3c4231));return{'removed':Array[_0x5177d9(0x8c)](_0x3151bc),'inserted':Array[_0x5177d9(0x8c)](_0x53920c[_0x5177d9(0x73)]())[_0x5177d9(0x80)](),'moved':Array[_0x5177d9(0x8c)](_0x52ae2c)};}}
|