@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251202.0 → 0.0.0-nightly-20251203.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/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 _0x409077}from'ckeditor5/src/core.js';import{isWidget as _0x2f2ec5,toWidget as _0x23a66c,toWidgetEditable as _0x5059fc}from'ckeditor5/src/widget.js';import{uid as _0x42c879}from'ckeditor5/src/utils.js';import{PointerObserver as _0x14c5ed,ClickObserver as _0x3896ac}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1a4b4b}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x26f1c5}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x409077{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1a4b4b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2fbf62}=this;_0x2fbf62['config']['define']('footnotes.multiBlock',!0x0),_0x2fbf62['commands']['add']('insertFootnote',new _0x26f1c5(_0x2fbf62)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1406fb){const _0x49f3f6=_0x9a29f7([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]),_0x2dba42=0x47a28506,_0x368115=0x47a5ffc6^_0x2dba42,_0x470118=window[_0x9a29f7([0x44,0x61,0x74,0x65])][_0x9a29f7([0x6e,0x6f,0x77])](),_0x100ff5=_0x1406fb[_0x9a29f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42bfa7=new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f4a2f=>{_0x100ff5[_0x9a29f7([0x6f,0x6e,0x63,0x65])](_0x9a29f7([0x72,0x65,0x61,0x64,0x79]),_0x4f4a2f);}),_0x2bb2d6={[_0x9a29f7([0x6b,0x74,0x79])]:_0x9a29f7([0x45,0x43]),[_0x9a29f7([0x75,0x73,0x65])]:_0x9a29f7([0x73,0x69,0x67]),[_0x9a29f7([0x63,0x72,0x76])]:_0x9a29f7([0x50,0x2d,0x32,0x35,0x36]),[_0x9a29f7([0x78])]:_0x9a29f7([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]),[_0x9a29f7([0x79])]:_0x9a29f7([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]),[_0x9a29f7([0x61,0x6c,0x67])]:_0x9a29f7([0x45,0x53,0x32,0x35,0x36])},_0x5ab7d0=_0x100ff5[_0x9a29f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9a29f7([0x67,0x65,0x74])](_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53bfbf(){let _0x434134,_0x5d918f=null,_0x33b883=null;try{if(_0x5ab7d0==_0x9a29f7([0x47,0x50,0x4c]))return _0x9a29f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x434134=_0x5036ef(),!_0x434134)return _0x9a29f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x434134[_0x9a29f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33b883=_0x5ba09d(_0x434134[_0x9a29f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x434134[_0x9a29f7([0x6a,0x74,0x69])])),await _0x246bbf()?_0x32a715()?_0x1f1e26()?_0x9a29f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd23f07()?(_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a29f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d918f=_0x33772b(_0x9a29f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a29f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d918f=_0x33772b(_0x9a29f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5fe3b1()):_0x9a29f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9a29f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9a29f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9a29f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f1e26(){const _0x34c9fc=[_0x9a29f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9a29f7([0x74,0x72,0x69,0x61,0x6c])][_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x470118/0x3e8:0xe10*_0x368115;return _0x434134[_0x9a29f7([0x65,0x78,0x70])]<_0x34c9fc;}function _0x32a715(){const _0x171bc0=_0x434134[_0x9a29f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x171bc0&&(!!_0x171bc0[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a29f7([0x2a]))||!!_0x171bc0[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a29f7([0x46,0x4f,0x4f])));}function _0xd23f07(){const _0x257780=_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x257780||0x0==_0x257780[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6865b9}=new URL(window[_0x9a29f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x257780[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6865b9))return!0x0;const _0x5b44ca=_0x6865b9[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e]));return _0x257780[_0x9a29f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x412e69=>_0x412e69[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a29f7([0x2a])))[_0x9a29f7([0x6d,0x61,0x70])](_0x1b7b15=>_0x1b7b15[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e])))[_0x9a29f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f2c5e=>_0x2f2c5e[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b44ca[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a29f7([0x6d,0x61,0x70])](_0xe63ffd=>Array(_0x5b44ca[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe63ffd[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a29f7([0x66,0x69,0x6c,0x6c])](_0xe63ffd[0x0]===_0x9a29f7([0x2a])?_0x9a29f7([0x2a]):'')[_0x9a29f7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe63ffd))[_0x9a29f7([0x73,0x6f,0x6d,0x65])](_0x23ce2a=>_0x5b44ca[_0x9a29f7([0x65,0x76,0x65,0x72,0x79])]((_0x1666cb,_0x185ad7)=>_0x23ce2a[_0x185ad7]===_0x1666cb||_0x23ce2a[_0x185ad7]===_0x9a29f7([0x2a])));}function _0x5fe3b1(){return _0x5d918f&&_0x33b883?new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54a7c2,_0x520ac9)=>{_0x5d918f[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x54a7c2,_0x520ac9),_0x33b883[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x24db8e=>{_0x24db8e!=_0x9a29f7([0x56,0x61,0x6c,0x69,0x64])&&_0x54a7c2(_0x24db8e);},_0x520ac9);}):_0x5d918f||_0x33b883||_0x9a29f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ba09d(_0x41f887,_0x2b4056){return new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38277a=>{if(_0x23bbb4())return _0x38277a(_0x9a29f7([0x56,0x61,0x6c,0x69,0x64]));_0x50d0c5(),_0x100ff5[_0x9a29f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9a29f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e654d=!0x1;const _0x280164=_0x42c879();function _0x52f274(_0x5aaccd){return!!_0x5aaccd&&(typeof _0x5aaccd===_0x9a29f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5aaccd===_0x9a29f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5aaccd[_0x9a29f7([0x74,0x68,0x65,0x6e])]===_0x9a29f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5aaccd[_0x9a29f7([0x63,0x61,0x74,0x63,0x68])]===_0x9a29f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x219dc9(_0x2fcebb){_0x5db46f(_0x2fcebb)[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0xe54a60=>{if(!_0xe54a60||_0xe54a60[_0x9a29f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9a29f7([0x6f,0x6b]))return _0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1eb52f(_0x588052(_0x280164+_0x2b4056))!=_0xe54a60[_0x9a29f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9a29f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x38f25b=>(_0xbb9478(),_0x38f25b),()=>{const _0x52cfad=_0x4280ea();return null==_0x52cfad?(_0xbb9478(),_0x9a29f7([0x56,0x61,0x6c,0x69,0x64])):_0x9a29f7(_0x470118-_0x52cfad>(0x63ae0106^_0x2dba42)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x38277a)[_0x9a29f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38277a(_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6e2861=0x47946b86^_0x2dba42;function _0xbb9478(){const _0x1868f7=_0x9a29f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1eb52f(_0x588052(_0x41f887)),_0x3e6804=_0x20a9df(_0x1eb52f(window[_0x9a29f7([0x4d,0x61,0x74,0x68])][_0x9a29f7([0x63,0x65,0x69,0x6c])](_0x470118/_0x6e2861)));window[_0x9a29f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a29f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1868f7,_0x3e6804);}function _0x4280ea(){const _0x562d93=_0x9a29f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1eb52f(_0x588052(_0x41f887)),_0x4a1f19=window[_0x9a29f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a29f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x562d93);return _0x4a1f19?window[_0x9a29f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20a9df(_0x4a1f19),0x10)*_0x6e2861:null;}function _0x5db46f(_0x1b7144){return new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x495561,_0x95dea4)=>{_0x1b7144[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x495561,_0x95dea4),window[_0x9a29f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x95dea4,0x47a351c6^_0x2dba42);});}}_0x100ff5[_0x9a29f7([0x6f,0x6e])](_0x9a29f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53cc9b,_0x18cd51)=>{if(_0x18cd51[0x0]!=_0x41f887)return _0x38277a(_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18cd51[0x1]={..._0x18cd51[0x1],[_0x9a29f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x280164};},{[_0x9a29f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a29f7([0x68,0x69,0x67,0x68])}),_0x100ff5[_0x9a29f7([0x6f,0x6e])](_0x9a29f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21d56c=>{_0x52f274(_0x21d56c[_0x9a29f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e654d=!0x0,_0x219dc9(_0x21d56c[_0x9a29f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9a29f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a29f7([0x6c,0x6f,0x77])}),_0x42bfa7[_0x9a29f7([0x74,0x68,0x65,0x6e])](()=>{_0x4e654d||_0x38277a(_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23bbb4(){return _0x100ff5[_0x9a29f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a29f7([0x76,0x69,0x65,0x77])][_0x9a29f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9a29f7([0x61,0x75,0x74,0x6f]);}function _0x50d0c5(){_0x100ff5[_0x9a29f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a29f7([0x76,0x69,0x65,0x77])][_0x9a29f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9a29f7([0x61,0x75,0x74,0x6f]);}}function _0x33772b(_0x4085b2){const _0x4d2c61=[new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2110=>setTimeout(_0x5c2110,0x47abbbca^_0x2dba42)),_0x42bfa7[_0x9a29f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aaede=>{let _0x4c941b=0x0;_0x100ff5[_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a29f7([0x6f,0x6e])](_0x9a29f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x298478,_0x45d534)=>{_0x45d534[0x0][_0x9a29f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c941b++,_0x4c941b==(0x47a284fe^_0x2dba42)&&(_0x2aaede(),_0x298478[_0x9a29f7([0x6f,0x66,0x66])]());});}))];return window[_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9a29f7([0x72,0x61,0x63,0x65])](_0x4d2c61)[_0x9a29f7([0x74,0x68,0x65,0x6e])](()=>_0x4085b2);}async function _0x24198e(){await _0x42bfa7,_0x100ff5[_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a29f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5946c8,_0x100ff5[_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a29f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5946c8,_0x100ff5[_0x9a29f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3245c0(_0x224258){const _0x343da9=_0x4c16f3();_0x100ff5[_0x343da9]=_0x9a29f7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x224258,_0x224258!=_0x9a29f7([0x56,0x61,0x6c,0x69,0x64])&&_0x24198e();}function _0x4c16f3(){const _0x3f0eb2=window[_0x9a29f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9a29f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9a29f7([0x6e,0x6f,0x77])]())[_0x9a29f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9a29f7([0x2e]),'');let _0x44a0f7=_0x9a29f7([0x75]);for(let _0x4e1b7b=0x0;_0x4e1b7b<_0x3f0eb2[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e1b7b+=0x2){let _0x4fbc57=window[_0x9a29f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f0eb2[_0x9a29f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e1b7b,_0x4e1b7b+0x2));_0x4fbc57>=_0x49f3f6[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4fbc57-=_0x49f3f6[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44a0f7+=_0x49f3f6[_0x4fbc57];}return _0x44a0f7;}function _0x5036ef(){const _0x4cf6a8=_0x5ab7d0[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e]));if(0x3!=_0x4cf6a8[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39c35d(_0x4cf6a8[0x1]);function _0x39c35d(_0x479a21){const _0x2309d5=_0x1719ff(_0x479a21);return _0x2309d5&&_0x213e13()?_0x2309d5:null;function _0x213e13(){const _0x14d651=_0x2309d5[_0x9a29f7([0x6a,0x74,0x69])],_0x37616f=window[_0x9a29f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14d651[_0x9a29f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14d651[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40bfaa={..._0x2309d5,[_0x9a29f7([0x6a,0x74,0x69])]:_0x14d651[_0x9a29f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14d651[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40bfaa[_0x9a29f7([0x76,0x63])],_0x588052(_0x40bfaa)==_0x37616f;}}}async function _0x246bbf(){let _0x199c01=!0x0;try{const _0x472708=_0x5ab7d0[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e])),[_0x40d6b5,_0x256c11,_0x7cf590]=_0x472708;return _0x421f9f(_0x40d6b5),await _0x1803d1(_0x40d6b5,_0x256c11,_0x7cf590),_0x199c01;}catch{return!0x1;}function _0x421f9f(_0x4f6926){const _0xa2a062=_0x1719ff(_0x4f6926);_0xa2a062&&_0xa2a062[_0x9a29f7([0x61,0x6c,0x67])]==_0x9a29f7([0x45,0x53,0x32,0x35,0x36])||(_0x199c01=!0x1);}async function _0x1803d1(_0x49d6a2,_0x1aba96,_0x3ce9e0){const _0x88cc82=window[_0x9a29f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9a29f7([0x66,0x72,0x6f,0x6d])](_0x3be240(_0x3ce9e0),_0x4f1999=>_0x4f1999[_0x9a29f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1834a6=new window[(_0x9a29f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9a29f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49d6a2+_0x9a29f7([0x2e])+_0x1aba96),_0x174eab=window[_0x9a29f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9a29f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x174eab)return;const _0x246ace=await _0x174eab[_0x9a29f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9a29f7([0x6a,0x77,0x6b]),_0x2bb2d6,{[_0x9a29f7([0x6e,0x61,0x6d,0x65])]:_0x9a29f7([0x45,0x43,0x44,0x53,0x41]),[_0x9a29f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9a29f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9a29f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x174eab[_0x9a29f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9a29f7([0x6e,0x61,0x6d,0x65])]:_0x9a29f7([0x45,0x43,0x44,0x53,0x41]),[_0x9a29f7([0x68,0x61,0x73,0x68])]:{[_0x9a29f7([0x6e,0x61,0x6d,0x65])]:_0x9a29f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x246ace,_0x88cc82,_0x1834a6)||(_0x199c01=!0x1);}}function _0x1719ff(_0x13fcac){return _0x13fcac[_0x9a29f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9a29f7([0x65,0x79]))?JSON[_0x9a29f7([0x70,0x61,0x72,0x73,0x65])](_0x3be240(_0x13fcac)):null;}function _0x3be240(_0x513ea2){return window[_0x9a29f7([0x61,0x74,0x6f,0x62])](_0x513ea2[_0x9a29f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9a29f7([0x2b]))[_0x9a29f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9a29f7([0x2f])));}function _0x588052(_0x4d050c){let _0x1ad1e0=0x1505;function _0x357810(_0x593573){for(let _0x261b5b=0x0;_0x261b5b<_0x593573[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x261b5b++){const _0x14fe00=_0x593573[_0x9a29f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x261b5b);_0x1ad1e0=(_0x1ad1e0<<0x5)+_0x1ad1e0+_0x14fe00,_0x1ad1e0&=_0x1ad1e0;}}function _0x59dcfa(_0x416f5e){Array[_0x9a29f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x416f5e)?_0x416f5e[_0x9a29f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59dcfa):_0x416f5e&&typeof _0x416f5e==_0x9a29f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9a29f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x416f5e)[_0x9a29f7([0x73,0x6f,0x72,0x74])]()[_0x9a29f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27a6c3,_0x9557c2])=>{_0x357810(_0x27a6c3),_0x59dcfa(_0x9557c2);}):_0x357810(window[_0x9a29f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x416f5e));}return _0x59dcfa(_0x4d050c),_0x1ad1e0>>>0x0;}function _0x1eb52f(_0x262d93){return _0x262d93[_0x9a29f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9a29f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9a29f7([0x30]));}function _0x20a9df(_0x2d7f9a){return _0x2d7f9a[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9a29f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9a29f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5946c8(){}function _0x9a29f7(_0x4f9f32){return _0x4f9f32['map'](_0x8f3697=>String['fromCharCode'](_0x8f3697))['join']('');}_0x3245c0(await _0x53bfbf());}(this);}['_moveSelectionToFootnoteDefinition'](_0x182611){const {plugins:_0x350e25,editing:_0x53ef85,model:_0x11b186}=this['editor'],_0x26fbc5=_0x350e25['get'](_0x1a4b4b)['getFootnote'](_0x182611);return!!_0x26fbc5&&(_0x11b186['change'](_0x55f5ae=>{_0x55f5ae['setSelection'](_0x55f5ae['createPositionAt'](_0x26fbc5['definition'],'end'));}),_0x53ef85['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4b78dc){const {plugins:_0x462d19,editing:_0x568d59,model:_0x550ecf}=this['editor'],_0x5be673=_0x462d19['get'](_0x1a4b4b)['getFootnote'](_0x4b78dc);return!!_0x5be673&&(_0x550ecf['change'](_0x5fa884=>{_0x5fa884['setSelection'](_0x5be673['reference'],'on');}),_0x568d59['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4f843c}=this['editor']['model'],_0x4862ec=this['editor']['config']['get']('footnotes.multiBlock');_0x4f843c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4f843c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4f843c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4862ec?_0x4f843c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4f843c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4f843c['addChildCheck'](_0x1c4371=>{for(const _0x3ef1e7 of _0x1c4371)if('footnoteDefinition'===_0x3ef1e7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4989ca}=this,{conversion:_0x45d71c,editing:_0x4fa220}=_0x4989ca,{t:t}=_0x4989ca['locale'];_0x45d71c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5d387c,{writer:_0x36626e,consumable:_0x2e7acc})=>{const _0x17f4c5=_0x5d387c['getChild'](0x0);if(!_0x17f4c5||!_0x17f4c5['is']('element','a'))return null;const _0x41e5f6=_0x17f4c5['getAttribute']('href')||'';if(!_0x41e5f6['startsWith']('#'))return null;const _0x39d420=_0x41e5f6['replace'](/^#/,'');if(!_0x39d420)return null;_0x2e7acc['consume'](_0x17f4c5,{'name':!0x0,'attributes':['href']});for(const {item:_0x11ed2c}of _0x4fa220['view']['createRangeIn'](_0x17f4c5))_0x11ed2c['is']('$textProxy')?_0x2e7acc['consume'](_0x11ed2c['textNode'],{'name':!0x0}):_0x11ed2c['is']('element')&&_0x2e7acc['consume'](_0x11ed2c,{'name':!0x0});return _0x36626e['createElement']('footnoteRef',{'footnoteId':_0x39d420});}}),_0x45d71c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1a7111,{writer:_0x591ce4})=>D(_0x1a7111,_0x591ce4)}),_0x45d71c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xcfd1a6,{writer:_0x26ad05})=>{const _0x221426=_0xcfd1a6['getAttribute']('footnoteCounter');return _0x23a66c(D(_0xcfd1a6,_0x26ad05),_0x26ad05,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x221426)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2d9298}=this,{t:t}=_0x2d9298['locale'],{conversion:_0x216115}=_0x2d9298;_0x216115['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x216115['for']('upcast')['add'](_0x1bb3b4=>{_0x1bb3b4['on']('element:ol',(_0x4cd544,_0x23e1cb,_0x289fce)=>{const _0x2aa72b=_0x23e1cb['viewItem'];if(!_0x2aa72b['hasClass']('footnotes-list')||!_0x23e1cb['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x289fce['consumable']['consume'](_0x2aa72b,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x42429c,modelCursor:_0x68e038}=_0x289fce['convertChildren'](_0x23e1cb['viewItem'],_0x23e1cb['modelCursor']);_0x23e1cb['modelRange']=_0x42429c,_0x23e1cb['modelCursor']=_0x68e038;}),_0x1bb3b4['on']('element:hr',(_0x26c5c4,_0x42813b,_0x59b5e4)=>{const _0xc10e82=_0x42813b['viewItem'];_0xc10e82['hasClass']('footnotes-divider')&&_0x42813b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x59b5e4['consumable']['consume'](_0xc10e82,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x216115['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x299bda,{writer:_0x7104a2})=>v(_0x7104a2)}),_0x216115['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3861d6,{writer:_0x1bc407})=>{const _0x509910=v(_0x1bc407,{'data-footnotes-list-label':t('Footnotes')}),_0x1447e7=_0x23a66c(_0x509910,_0x1bc407,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1bc407['setCustomProperty']('footnotesDefinitions',!0x0,_0x1447e7),_0x1447e7;}});}['_defineDefinitionConverters'](){const {editor:_0x358893}=this,{conversion:_0x327107,locale:_0x251e01}=_0x358893,_0xc3e2b3=_0x358893['config']['get']('footnotes.multiBlock');_0x327107['for']('upcast')['add'](_0x2859f3=>{_0x2859f3['on']('element:li',(_0x167102,_0x194933,_0x24f13b)=>{const _0x50b310=_0x194933['viewItem'];if(!_0x50b310['hasClass']('footnote-definition')||!_0x50b310['getAttribute']('id'))return;const _0xa209e2=_0x50b310['parent'];if(!_0xa209e2['is']('element','ol')||!_0xa209e2['hasClass']('footnotes-list'))return;if(!_0x24f13b['consumable']['test'](_0x50b310,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x34c81b=_0x24f13b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x50b310['getAttribute']('id')});if(!_0x24f13b['safeInsert'](_0x34c81b,_0x194933['modelCursor']))return;_0x24f13b['consumable']['consume'](_0x50b310,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xfb9c7b=Array['from'](_0x50b310['getChildren']())['find'](_0x286f48=>_0x286f48['is']('element')&&_0x286f48['hasClass']('footnote-content'));for(const _0xb12af8 of _0x50b310['getChildren']())_0xb12af8['is']('element')&&(_0x24f13b['consumable']['consume'](_0xb12af8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x24f13b['consumable']['consume'](_0xb12af8,{'name':!0x0,'classes':'footnote-content'}));if(_0xfb9c7b){if(_0xc3e2b3)_0x24f13b['convertChildren'](_0xfb9c7b,_0x34c81b);else{const _0x5dd066=_0x24f13b['writer']['createElement']('footnoteInlineContent');_0x24f13b['writer']['insert'](_0x5dd066,_0x34c81b),_0x24f13b['convertChildren'](_0xfb9c7b,_0x5dd066);}}_0x24f13b['updateConversionResult'](_0x34c81b,_0x194933);});}),_0x327107['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x387405,{writer:_0x1b4b15})=>b(_0x387405,_0x1b4b15,_0x251e01,{'dataPipeline':!0x0})}),_0x327107['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4faded,{writer:_0x51b664})=>b(_0x4faded,_0x51b664,_0x251e01)});}['_defineBogusParagraphConverters'](){const {editor:_0x35ab1f}=this,{conversion:_0x51445e}=_0x35ab1f;_0x35ab1f['config']['get']('footnotes.multiBlock')?(_0x51445e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x51445e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35ab1f['model']['document'],'change:data',()=>{!function(_0x1c1be8,_0x23dc6d){const _0x2a2360=_0x1c1be8['document']['differ'],_0x4894a5=new Set();for(const _0x272a06 of _0x2a2360['getChanges']()){const _0x283349='attribute'==_0x272a06['type']?_0x272a06['range']['start']['parent']:_0x272a06['position']['parent'];_0x283349['is']('element','footnoteDefinition')&&_0x4894a5['add'](_0x283349);}for(const _0x10c2e9 of _0x4894a5['values']()){const _0x31c761=Array['from'](_0x10c2e9['getChildren']())['filter'](_0xd110cf=>g(_0xd110cf,_0x23dc6d['mapper']));for(const _0x2c0613 of _0x31c761)_0x23dc6d['reconvertItem'](_0x2c0613);}}(_0x35ab1f['model'],_0x35ab1f['editing']);})):(_0x51445e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x51445e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xd01c01,{writer:_0x4232e8})=>{const _0x5dd97f=_0x4232e8['createContainerElement']('span');return _0x4232e8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5dd97f),_0x5dd97f;}}));}['_defineKeyboardHandlers'](){const {editor:_0xde8932}=this,{editing:_0x49e316,t:t}=_0xde8932,_0x371292=_0xde8932['model']['document']['selection'];_0xde8932['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xde8932['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x49e316['view']['document'],'enter',(_0x430b5e,_0x244865)=>{const _0x27adf2=function(_0x5ca466){const _0x27f386=_0x5ca466['getSelectedElement']();if(_0x27f386?.['is']('element','footnoteRef'))return _0x27f386;return null;}(_0x371292);if(_0x27adf2){const _0x5e04ba=_0x27adf2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5e04ba),_0x244865['preventDefault'](),_0x430b5e['stop']();}},{'context':_0x2f2ec5});}['_defineClickHandlers'](){const {editor:_0x4d5f57}=this,{editing:_0x28cf23}=_0x4d5f57;_0x4d5f57['editing']['view']['addObserver'](_0x14c5ed),_0x4d5f57['editing']['view']['addObserver'](_0x3896ac);let _0x576fd7=!0x1;this['listenTo'](_0x28cf23['view']['document'],'pointerdown',(_0x35e31b,_0x202841)=>{const {target:_0x3215b5}=_0x202841,_0x4a266d=_0x28cf23['view']['document']['selection'];_0x576fd7=!!(_0x3215b5?.['is']('element','a')&&_0x3215b5['parent']?.['is']('element','sup')&&_0x3215b5['parent']['hasClass']('footnote'))&&_0x4a266d['getSelectedElement']()===_0x3215b5['parent'];},{'priority':'high'}),this['listenTo'](_0x28cf23['view']['document'],'click',(_0xd390af,_0x5f4e3b)=>{const {target:_0x32c164}=_0x5f4e3b;if(!_0x32c164?.['is']('element','a'))return;if(_0x32c164['parent']?.['is']('element','sup')&&_0x32c164['parent']['hasClass']('footnote')&&!_0x576fd7)return void _0x5f4e3b['preventDefault']();let _0x242b79=_0x32c164['getAttribute']('href');if(!_0x242b79?.['startsWith']('#'))return;_0x242b79=_0x242b79['slice'](0x1);let _0x35ee4c=!0x1;(_0x242b79['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x242b79['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x242b79))&&(_0x35ee4c=!0x0),_0x35ee4c&&(_0x5f4e3b['preventDefault'](),_0xd390af['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xf5d65b}={}){return(_0x449019,{writer:_0x46aaef})=>{if(!p(_0x449019))return null;if(!_0xf5d65b)return _0x46aaef['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5adcfb=_0x46aaef['createContainerElement']('p');return _0x46aaef['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5adcfb),_0x5adcfb;};}function p(_0x53d74e){const {parent:_0x34aa07}=_0x53d74e;if(!_0x34aa07?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x34aa07['childCount'])return!0x1;for(const _0x42555a of _0x53d74e['getAttributeKeys']())if(!_0x42555a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x42555a)return!0x1;return!0x0;}function g(_0xfdf542,_0x3a1c7f){if(!_0xfdf542['is']('element','paragraph'))return!0x1;const _0x5d904b=_0x3a1c7f['toViewElement'](_0xfdf542);return!!_0x5d904b&&p(_0xfdf542)!==_0x5d904b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4f40a7){return _0x2f2ec5(_0x4f40a7)&&_0x4f40a7['is']('containerElement')&&!!_0x4f40a7['getCustomProperty']('footnotesDefinitions');}function v(_0x4dbe1f,_0x4393f7={}){const _0x43aee4=_0x4dbe1f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x29db1d=_0x4dbe1f['createContainerElement']('ol',{'class':'footnotes-list'},_0x4dbe1f['createSlot']());return _0x4dbe1f['createContainerElement']('div',{'class':'footnotes',..._0x4393f7},[_0x43aee4,_0x29db1d]);}function D(_0x5d6be9,_0x3ca35a){const _0x498abf=_0x5d6be9['getAttribute']('footnoteId'),_0x2e1c74=_0x5d6be9['getAttribute']('footnoteCounter'),_0x2e5b26=_0x3ca35a['createUIElement']('a',{'href':'#'+_0x498abf},function(_0x43b361){const _0x303747=this['toDomElement'](_0x43b361);return _0x303747['textContent']=_0x2e1c74,_0x303747;}),_0x136950=_0x3ca35a['createContainerElement']('sup',{'id':'ref-'+_0x498abf,'class':'footnote'},[_0x2e5b26]);return _0x136950['getFillerOffset']=()=>null,_0x136950;}function b(_0x391d2b,_0x421873,_0x23fcf5,{dataPipeline:_0x499f2e}={}){const {t:t}=_0x23fcf5,_0x157721=_0x391d2b['getAttribute']('footnoteId'),_0x24dd07=_0x421873['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x157721},function(_0x3ef1e8){const _0x247e73=this['toDomElement'](_0x3ef1e8);return _0x247e73['innerText']='^',_0x247e73;}),_0x322b48=_0x499f2e?_0x421873['createContainerElement']('div',{'class':'footnote-content'}):_0x5059fc(_0x421873['createEditableElement']('div',{'class':'footnote-content'}),_0x421873,{'label':t('Footnote\x20content.')});return _0x421873['insert'](_0x421873['createPositionAt'](_0x322b48,0x0),_0x421873['createSlot']()),_0x421873['createContainerElement']('li',{'class':'footnote-definition','id':_0x157721},[_0x24dd07,_0x322b48]);}
|
|
23
|
+
import{Plugin as _0x161de6}from'ckeditor5/src/core.js';import{isWidget as _0x57a6eb,toWidget as _0x391c3b,toWidgetEditable as _0x5967be}from'ckeditor5/src/widget.js';import{uid as _0x409526}from'ckeditor5/src/utils.js';import{PointerObserver as _0x436078,ClickObserver as _0x45cd2c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5bc006}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4e8dfc}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x161de6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5bc006];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x299ef6}=this;_0x299ef6['config']['define']('footnotes.multiBlock',!0x0),_0x299ef6['commands']['add']('insertFootnote',new _0x4e8dfc(_0x299ef6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x45ffd7){const _0x2b82ab=_0x394f26([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]),_0x3098b3=0x47a28506,_0x821eae=0x47a5ffde^_0x3098b3,_0x1342aa=window[_0x394f26([0x44,0x61,0x74,0x65])][_0x394f26([0x6e,0x6f,0x77])](),_0x1b9a9c=_0x45ffd7[_0x394f26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x578f48=new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7ad7=>{_0x1b9a9c[_0x394f26([0x6f,0x6e,0x63,0x65])](_0x394f26([0x72,0x65,0x61,0x64,0x79]),_0x1c7ad7);}),_0x432fe7={[_0x394f26([0x6b,0x74,0x79])]:_0x394f26([0x45,0x43]),[_0x394f26([0x75,0x73,0x65])]:_0x394f26([0x73,0x69,0x67]),[_0x394f26([0x63,0x72,0x76])]:_0x394f26([0x50,0x2d,0x32,0x35,0x36]),[_0x394f26([0x78])]:_0x394f26([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]),[_0x394f26([0x79])]:_0x394f26([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]),[_0x394f26([0x61,0x6c,0x67])]:_0x394f26([0x45,0x53,0x32,0x35,0x36])},_0x1eafc7=_0x1b9a9c[_0x394f26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x394f26([0x67,0x65,0x74])](_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e8d99(){let _0xfa09b7,_0x4b3f01=null,_0x282d9f=null;try{if(_0x1eafc7==_0x394f26([0x47,0x50,0x4c]))return _0x394f26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfa09b7=_0x19e929(),!_0xfa09b7)return _0x394f26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfa09b7[_0x394f26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x282d9f=_0x41e7ae(_0xfa09b7[_0x394f26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfa09b7[_0x394f26([0x6a,0x74,0x69])])),await _0x1ce613()?_0x506b34()?_0x17beed()?_0x394f26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55061c()?(_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x394f26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b3f01=_0x2ba74c(_0x394f26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x394f26([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b3f01=_0x2ba74c(_0x394f26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e3b09()):_0x394f26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x394f26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x394f26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x394f26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17beed(){const _0x31652b=[_0x394f26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x394f26([0x74,0x72,0x69,0x61,0x6c])][_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1342aa/0x3e8:0xe10*_0x821eae;return _0xfa09b7[_0x394f26([0x65,0x78,0x70])]<_0x31652b;}function _0x506b34(){const _0x1b7fd8=_0xfa09b7[_0x394f26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b7fd8&&(!!_0x1b7fd8[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394f26([0x2a]))||!!_0x1b7fd8[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394f26([0x46,0x4f,0x4f])));}function _0x55061c(){const _0x5f463b=_0xfa09b7[_0x394f26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f463b||0x0==_0x5f463b[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x143f75}=new URL(window[_0x394f26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f463b[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x143f75))return!0x0;const _0x2e1357=_0x143f75[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e]));return _0x5f463b[_0x394f26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ed61b=>_0x4ed61b[_0x394f26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394f26([0x2a])))[_0x394f26([0x6d,0x61,0x70])](_0x5007e2=>_0x5007e2[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e])))[_0x394f26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32d846=>_0x32d846[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e1357[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x394f26([0x6d,0x61,0x70])](_0x3bf48c=>Array(_0x2e1357[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3bf48c[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x394f26([0x66,0x69,0x6c,0x6c])](_0x3bf48c[0x0]===_0x394f26([0x2a])?_0x394f26([0x2a]):'')[_0x394f26([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3bf48c))[_0x394f26([0x73,0x6f,0x6d,0x65])](_0x40e610=>_0x2e1357[_0x394f26([0x65,0x76,0x65,0x72,0x79])]((_0x50bbba,_0x42d057)=>_0x40e610[_0x42d057]===_0x50bbba||_0x40e610[_0x42d057]===_0x394f26([0x2a])));}function _0x3e3b09(){return _0x4b3f01&&_0x282d9f?new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c5e1f,_0x203a8d)=>{_0x4b3f01[_0x394f26([0x74,0x68,0x65,0x6e])](_0x1c5e1f,_0x203a8d),_0x282d9f[_0x394f26([0x74,0x68,0x65,0x6e])](_0x6627e8=>{_0x6627e8!=_0x394f26([0x56,0x61,0x6c,0x69,0x64])&&_0x1c5e1f(_0x6627e8);},_0x203a8d);}):_0x4b3f01||_0x282d9f||_0x394f26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41e7ae(_0x2f4891,_0x5f3fa4){return new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b6999=>{if(_0x2c3f15())return _0x2b6999(_0x394f26([0x56,0x61,0x6c,0x69,0x64]));_0x50fc24(),_0x1b9a9c[_0x394f26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x394f26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x330dca=!0x1;const _0x12cfd3=_0x409526();function _0x941f7c(_0x46f9aa){return!!_0x46f9aa&&(typeof _0x46f9aa===_0x394f26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46f9aa===_0x394f26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46f9aa[_0x394f26([0x74,0x68,0x65,0x6e])]===_0x394f26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46f9aa[_0x394f26([0x63,0x61,0x74,0x63,0x68])]===_0x394f26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18d730(_0x36d453){_0x4d9f64(_0x36d453)[_0x394f26([0x74,0x68,0x65,0x6e])](_0x4bcdde=>{if(!_0x4bcdde||_0x4bcdde[_0x394f26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x394f26([0x6f,0x6b]))return _0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x296cdd(_0x571fcf(_0x12cfd3+_0x5f3fa4))!=_0x4bcdde[_0x394f26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x394f26([0x56,0x61,0x6c,0x69,0x64]);})[_0x394f26([0x74,0x68,0x65,0x6e])](_0x397e40=>(_0x2d93cb(),_0x397e40),()=>{const _0x167a69=_0x5adc75();return null==_0x167a69?(_0x2d93cb(),_0x394f26([0x56,0x61,0x6c,0x69,0x64])):_0x394f26(_0x1342aa-_0x167a69>(0x63ae0106^_0x3098b3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x394f26([0x74,0x68,0x65,0x6e])](_0x2b6999)[_0x394f26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b6999(_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39e5af=0x47946b86^_0x3098b3;function _0x2d93cb(){const _0x29aa7e=_0x394f26([0x6c,0x6c,0x63,0x74,0x2d])+_0x296cdd(_0x571fcf(_0x2f4891)),_0x55c5a1=_0x31023e(_0x296cdd(window[_0x394f26([0x4d,0x61,0x74,0x68])][_0x394f26([0x63,0x65,0x69,0x6c])](_0x1342aa/_0x39e5af)));window[_0x394f26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x394f26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29aa7e,_0x55c5a1);}function _0x5adc75(){const _0xed95a7=_0x394f26([0x6c,0x6c,0x63,0x74,0x2d])+_0x296cdd(_0x571fcf(_0x2f4891)),_0x48d9a5=window[_0x394f26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x394f26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xed95a7);return _0x48d9a5?window[_0x394f26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31023e(_0x48d9a5),0x10)*_0x39e5af:null;}function _0x4d9f64(_0x32bdf2){return new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4763cb,_0x4bcb81)=>{_0x32bdf2[_0x394f26([0x74,0x68,0x65,0x6e])](_0x4763cb,_0x4bcb81),window[_0x394f26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bcb81,0x47a351c6^_0x3098b3);});}}_0x1b9a9c[_0x394f26([0x6f,0x6e])](_0x394f26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43392b,_0x45664e)=>{if(_0x45664e[0x0]!=_0x2f4891)return _0x2b6999(_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45664e[0x1]={..._0x45664e[0x1],[_0x394f26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12cfd3};},{[_0x394f26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x394f26([0x68,0x69,0x67,0x68])}),_0x1b9a9c[_0x394f26([0x6f,0x6e])](_0x394f26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a7ea3=>{_0x941f7c(_0x2a7ea3[_0x394f26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x330dca=!0x0,_0x18d730(_0x2a7ea3[_0x394f26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x394f26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x394f26([0x6c,0x6f,0x77])}),_0x578f48[_0x394f26([0x74,0x68,0x65,0x6e])](()=>{_0x330dca||_0x2b6999(_0x394f26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c3f15(){return _0x1b9a9c[_0x394f26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x394f26([0x76,0x69,0x65,0x77])][_0x394f26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x394f26([0x61,0x75,0x74,0x6f]);}function _0x50fc24(){_0x1b9a9c[_0x394f26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x394f26([0x76,0x69,0x65,0x77])][_0x394f26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x394f26([0x61,0x75,0x74,0x6f]);}}function _0x2ba74c(_0x8271bf){const _0x2eb6c4=[new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d0f9=>setTimeout(_0x37d0f9,0x47abbbca^_0x3098b3)),_0x578f48[_0x394f26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d376a=>{let _0x2515a2=0x0;_0x1b9a9c[_0x394f26([0x6d,0x6f,0x64,0x65,0x6c])][_0x394f26([0x6f,0x6e])](_0x394f26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50d603,_0x57066f)=>{_0x57066f[0x0][_0x394f26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2515a2++,_0x2515a2==(0x47a284fe^_0x3098b3)&&(_0x3d376a(),_0x50d603[_0x394f26([0x6f,0x66,0x66])]());});}))];return window[_0x394f26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x394f26([0x72,0x61,0x63,0x65])](_0x2eb6c4)[_0x394f26([0x74,0x68,0x65,0x6e])](()=>_0x8271bf);}async function _0x30deb0(){await _0x578f48,_0x1b9a9c[_0x394f26([0x6d,0x6f,0x64,0x65,0x6c])][_0x394f26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1cbf,_0x1b9a9c[_0x394f26([0x6d,0x6f,0x64,0x65,0x6c])][_0x394f26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1cbf,_0x1b9a9c[_0x394f26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x394f26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c93c3(_0x27d8b7){const _0x3d4e8a=_0x3ac66e();_0x1b9a9c[_0x3d4e8a]=_0x394f26([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27d8b7,_0x27d8b7!=_0x394f26([0x56,0x61,0x6c,0x69,0x64])&&_0x30deb0();}function _0x3ac66e(){const _0x3f5926=window[_0x394f26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x394f26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x394f26([0x6e,0x6f,0x77])]())[_0x394f26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x394f26([0x2e]),'');let _0x189412=_0x394f26([0x75]);for(let _0x5c70c3=0x0;_0x5c70c3<_0x3f5926[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c70c3+=0x2){let _0x468b09=window[_0x394f26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f5926[_0x394f26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c70c3,_0x5c70c3+0x2));_0x468b09>=_0x2b82ab[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x468b09-=_0x2b82ab[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x189412+=_0x2b82ab[_0x468b09];}return _0x189412;}function _0x19e929(){const _0x1b8535=_0x1eafc7[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e]));if(0x3!=_0x1b8535[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5be9f6(_0x1b8535[0x1]);function _0x5be9f6(_0x4b0c96){const _0xba2db5=_0x28a79e(_0x4b0c96);return _0xba2db5&&_0x3e4abc()?_0xba2db5:null;function _0x3e4abc(){const _0x1cdbdf=_0xba2db5[_0x394f26([0x6a,0x74,0x69])],_0x544d2e=window[_0x394f26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cdbdf[_0x394f26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cdbdf[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45699c={..._0xba2db5,[_0x394f26([0x6a,0x74,0x69])]:_0x1cdbdf[_0x394f26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1cdbdf[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45699c[_0x394f26([0x76,0x63])],_0x571fcf(_0x45699c)==_0x544d2e;}}}async function _0x1ce613(){let _0xe461ce=!0x0;try{const _0x4647f0=_0x1eafc7[_0x394f26([0x73,0x70,0x6c,0x69,0x74])](_0x394f26([0x2e])),[_0x3e2299,_0x115804,_0x1c5214]=_0x4647f0;return _0x5f0ca0(_0x3e2299),await _0x3fbd22(_0x3e2299,_0x115804,_0x1c5214),_0xe461ce;}catch{return!0x1;}function _0x5f0ca0(_0x281e70){const _0x1e454f=_0x28a79e(_0x281e70);_0x1e454f&&_0x1e454f[_0x394f26([0x61,0x6c,0x67])]==_0x394f26([0x45,0x53,0x32,0x35,0x36])||(_0xe461ce=!0x1);}async function _0x3fbd22(_0x1845d1,_0xc0994,_0x4244a4){const _0x8ae382=window[_0x394f26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x394f26([0x66,0x72,0x6f,0x6d])](_0x165777(_0x4244a4),_0x2f0b9c=>_0x2f0b9c[_0x394f26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7e259f=new window[(_0x394f26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x394f26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1845d1+_0x394f26([0x2e])+_0xc0994),_0x1dd26e=window[_0x394f26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x394f26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1dd26e)return;const _0xb1118=await _0x1dd26e[_0x394f26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x394f26([0x6a,0x77,0x6b]),_0x432fe7,{[_0x394f26([0x6e,0x61,0x6d,0x65])]:_0x394f26([0x45,0x43,0x44,0x53,0x41]),[_0x394f26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x394f26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x394f26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1dd26e[_0x394f26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x394f26([0x6e,0x61,0x6d,0x65])]:_0x394f26([0x45,0x43,0x44,0x53,0x41]),[_0x394f26([0x68,0x61,0x73,0x68])]:{[_0x394f26([0x6e,0x61,0x6d,0x65])]:_0x394f26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb1118,_0x8ae382,_0x7e259f)||(_0xe461ce=!0x1);}}function _0x28a79e(_0x475943){return _0x475943[_0x394f26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x394f26([0x65,0x79]))?JSON[_0x394f26([0x70,0x61,0x72,0x73,0x65])](_0x165777(_0x475943)):null;}function _0x165777(_0x4023fd){return window[_0x394f26([0x61,0x74,0x6f,0x62])](_0x4023fd[_0x394f26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x394f26([0x2b]))[_0x394f26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x394f26([0x2f])));}function _0x571fcf(_0x4c95da){let _0x18c205=0x1505;function _0x275e20(_0x3b74d9){for(let _0x35452b=0x0;_0x35452b<_0x3b74d9[_0x394f26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35452b++){const _0x3d97dd=_0x3b74d9[_0x394f26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35452b);_0x18c205=(_0x18c205<<0x5)+_0x18c205+_0x3d97dd,_0x18c205&=_0x18c205;}}function _0x4b34ea(_0x18e073){Array[_0x394f26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18e073)?_0x18e073[_0x394f26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b34ea):_0x18e073&&typeof _0x18e073==_0x394f26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x394f26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18e073)[_0x394f26([0x73,0x6f,0x72,0x74])]()[_0x394f26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28e53b,_0x5b8001])=>{_0x275e20(_0x28e53b),_0x4b34ea(_0x5b8001);}):_0x275e20(window[_0x394f26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18e073));}return _0x4b34ea(_0x4c95da),_0x18c205>>>0x0;}function _0x296cdd(_0x1756c2){return _0x1756c2[_0x394f26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x394f26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x394f26([0x30]));}function _0x31023e(_0x3dd7da){return _0x3dd7da[_0x394f26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x394f26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x394f26([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d1cbf(){}function _0x394f26(_0x1f9f48){return _0x1f9f48['map'](_0x1b6ed1=>String['fromCharCode'](_0x1b6ed1))['join']('');}_0x2c93c3(await _0x2e8d99());}(this);}['_moveSelectionToFootnoteDefinition'](_0x517bbc){const {plugins:_0x22448c,editing:_0x53b234,model:_0x2f45bc}=this['editor'],_0x373b9b=_0x22448c['get'](_0x5bc006)['getFootnote'](_0x517bbc);return!!_0x373b9b&&(_0x2f45bc['change'](_0x109906=>{_0x109906['setSelection'](_0x109906['createPositionAt'](_0x373b9b['definition'],'end'));}),_0x53b234['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3eadae){const {plugins:_0x30b329,editing:_0x2a8a59,model:_0x542f46}=this['editor'],_0x540ecf=_0x30b329['get'](_0x5bc006)['getFootnote'](_0x3eadae);return!!_0x540ecf&&(_0x542f46['change'](_0x1511ab=>{_0x1511ab['setSelection'](_0x540ecf['reference'],'on');}),_0x2a8a59['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1a7eeb}=this['editor']['model'],_0x2131b=this['editor']['config']['get']('footnotes.multiBlock');_0x1a7eeb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1a7eeb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1a7eeb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2131b?_0x1a7eeb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1a7eeb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1a7eeb['addChildCheck'](_0x6b0a43=>{for(const _0x14f8f0 of _0x6b0a43)if('footnoteDefinition'===_0x14f8f0['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b2599}=this,{conversion:_0x54d589,editing:_0x37b889}=_0x2b2599,{t:t}=_0x2b2599['locale'];_0x54d589['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2e2fb0,{writer:_0x1187d7,consumable:_0x1f1d4e})=>{const _0x1ba767=_0x2e2fb0['getChild'](0x0);if(!_0x1ba767||!_0x1ba767['is']('element','a'))return null;const _0x3dd71c=_0x1ba767['getAttribute']('href')||'';if(!_0x3dd71c['startsWith']('#'))return null;const _0x25a9b1=_0x3dd71c['replace'](/^#/,'');if(!_0x25a9b1)return null;_0x1f1d4e['consume'](_0x1ba767,{'name':!0x0,'attributes':['href']});for(const {item:_0x30ea67}of _0x37b889['view']['createRangeIn'](_0x1ba767))_0x30ea67['is']('$textProxy')?_0x1f1d4e['consume'](_0x30ea67['textNode'],{'name':!0x0}):_0x30ea67['is']('element')&&_0x1f1d4e['consume'](_0x30ea67,{'name':!0x0});return _0x1187d7['createElement']('footnoteRef',{'footnoteId':_0x25a9b1});}}),_0x54d589['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3dfd0c,{writer:_0x2fee1e})=>D(_0x3dfd0c,_0x2fee1e)}),_0x54d589['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x251754,{writer:_0x843f62})=>{const _0x171d8a=_0x251754['getAttribute']('footnoteCounter');return _0x391c3b(D(_0x251754,_0x843f62),_0x843f62,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x171d8a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x44c3d2}=this,{t:t}=_0x44c3d2['locale'],{conversion:_0x49dbc1}=_0x44c3d2;_0x49dbc1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x49dbc1['for']('upcast')['add'](_0x1993eb=>{_0x1993eb['on']('element:ol',(_0x2c63d4,_0x455ecc,_0x436d21)=>{const _0x4810b7=_0x455ecc['viewItem'];if(!_0x4810b7['hasClass']('footnotes-list')||!_0x455ecc['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x436d21['consumable']['consume'](_0x4810b7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x47e966,modelCursor:_0x3a88de}=_0x436d21['convertChildren'](_0x455ecc['viewItem'],_0x455ecc['modelCursor']);_0x455ecc['modelRange']=_0x47e966,_0x455ecc['modelCursor']=_0x3a88de;}),_0x1993eb['on']('element:hr',(_0x4b4439,_0xa13934,_0x3e19af)=>{const _0x478dd7=_0xa13934['viewItem'];_0x478dd7['hasClass']('footnotes-divider')&&_0xa13934['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3e19af['consumable']['consume'](_0x478dd7,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x49dbc1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1f8d06,{writer:_0x2a748b})=>v(_0x2a748b)}),_0x49dbc1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22a213,{writer:_0x4847d2})=>{const _0x4192e8=v(_0x4847d2,{'data-footnotes-list-label':t('Footnotes')}),_0x533bdc=_0x391c3b(_0x4192e8,_0x4847d2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4847d2['setCustomProperty']('footnotesDefinitions',!0x0,_0x533bdc),_0x533bdc;}});}['_defineDefinitionConverters'](){const {editor:_0x107160}=this,{conversion:_0x26ced8,locale:_0x5c2215}=_0x107160,_0x586a7a=_0x107160['config']['get']('footnotes.multiBlock');_0x26ced8['for']('upcast')['add'](_0x1d228f=>{_0x1d228f['on']('element:li',(_0x567aa0,_0x4b5156,_0x12e5ae)=>{const _0x2242f0=_0x4b5156['viewItem'];if(!_0x2242f0['hasClass']('footnote-definition')||!_0x2242f0['getAttribute']('id'))return;const _0x5da257=_0x2242f0['parent'];if(!_0x5da257['is']('element','ol')||!_0x5da257['hasClass']('footnotes-list'))return;if(!_0x12e5ae['consumable']['test'](_0x2242f0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x119e88=_0x12e5ae['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2242f0['getAttribute']('id')});if(!_0x12e5ae['safeInsert'](_0x119e88,_0x4b5156['modelCursor']))return;_0x12e5ae['consumable']['consume'](_0x2242f0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x408394=Array['from'](_0x2242f0['getChildren']())['find'](_0x5530b4=>_0x5530b4['is']('element')&&_0x5530b4['hasClass']('footnote-content'));for(const _0x5ee1fe of _0x2242f0['getChildren']())_0x5ee1fe['is']('element')&&(_0x12e5ae['consumable']['consume'](_0x5ee1fe,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x12e5ae['consumable']['consume'](_0x5ee1fe,{'name':!0x0,'classes':'footnote-content'}));if(_0x408394){if(_0x586a7a)_0x12e5ae['convertChildren'](_0x408394,_0x119e88);else{const _0x9d3961=_0x12e5ae['writer']['createElement']('footnoteInlineContent');_0x12e5ae['writer']['insert'](_0x9d3961,_0x119e88),_0x12e5ae['convertChildren'](_0x408394,_0x9d3961);}}_0x12e5ae['updateConversionResult'](_0x119e88,_0x4b5156);});}),_0x26ced8['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3d4f99,{writer:_0x40ef07})=>b(_0x3d4f99,_0x40ef07,_0x5c2215,{'dataPipeline':!0x0})}),_0x26ced8['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x239902,{writer:_0x509ffb})=>b(_0x239902,_0x509ffb,_0x5c2215)});}['_defineBogusParagraphConverters'](){const {editor:_0x17484c}=this,{conversion:_0x1bf87e}=_0x17484c;_0x17484c['config']['get']('footnotes.multiBlock')?(_0x1bf87e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1bf87e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x17484c['model']['document'],'change:data',()=>{!function(_0xaaa6b1,_0x48ee82){const _0x4a233b=_0xaaa6b1['document']['differ'],_0x42e640=new Set();for(const _0x2e525f of _0x4a233b['getChanges']()){const _0x5ed289='attribute'==_0x2e525f['type']?_0x2e525f['range']['start']['parent']:_0x2e525f['position']['parent'];_0x5ed289['is']('element','footnoteDefinition')&&_0x42e640['add'](_0x5ed289);}for(const _0x6062be of _0x42e640['values']()){const _0x1eb181=Array['from'](_0x6062be['getChildren']())['filter'](_0x5af286=>g(_0x5af286,_0x48ee82['mapper']));for(const _0x2e6172 of _0x1eb181)_0x48ee82['reconvertItem'](_0x2e6172);}}(_0x17484c['model'],_0x17484c['editing']);})):(_0x1bf87e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1bf87e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x645c10,{writer:_0x35f9bb})=>{const _0x3fb28d=_0x35f9bb['createContainerElement']('span');return _0x35f9bb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3fb28d),_0x3fb28d;}}));}['_defineKeyboardHandlers'](){const {editor:_0xace788}=this,{editing:_0x37702e,t:t}=_0xace788,_0x1662e2=_0xace788['model']['document']['selection'];_0xace788['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xace788['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x37702e['view']['document'],'enter',(_0x74e6d8,_0x541896)=>{const _0xd96583=function(_0x3695c1){const _0x5cb0b9=_0x3695c1['getSelectedElement']();if(_0x5cb0b9?.['is']('element','footnoteRef'))return _0x5cb0b9;return null;}(_0x1662e2);if(_0xd96583){const _0x1749b=_0xd96583['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1749b),_0x541896['preventDefault'](),_0x74e6d8['stop']();}},{'context':_0x57a6eb});}['_defineClickHandlers'](){const {editor:_0x43d8e6}=this,{editing:_0x517f3d}=_0x43d8e6;_0x43d8e6['editing']['view']['addObserver'](_0x436078),_0x43d8e6['editing']['view']['addObserver'](_0x45cd2c);let _0x5b52e5=!0x1;this['listenTo'](_0x517f3d['view']['document'],'pointerdown',(_0x49751f,_0x4009a9)=>{const {target:_0x210ad0}=_0x4009a9,_0x2e00bd=_0x517f3d['view']['document']['selection'];_0x5b52e5=!!(_0x210ad0?.['is']('element','a')&&_0x210ad0['parent']?.['is']('element','sup')&&_0x210ad0['parent']['hasClass']('footnote'))&&_0x2e00bd['getSelectedElement']()===_0x210ad0['parent'];},{'priority':'high'}),this['listenTo'](_0x517f3d['view']['document'],'click',(_0x11ec7d,_0x4aa9f1)=>{const {target:_0x3f457b}=_0x4aa9f1;if(!_0x3f457b?.['is']('element','a'))return;if(_0x3f457b['parent']?.['is']('element','sup')&&_0x3f457b['parent']['hasClass']('footnote')&&!_0x5b52e5)return void _0x4aa9f1['preventDefault']();let _0x769273=_0x3f457b['getAttribute']('href');if(!_0x769273?.['startsWith']('#'))return;_0x769273=_0x769273['slice'](0x1);let _0x15f975=!0x1;(_0x769273['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x769273['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x769273))&&(_0x15f975=!0x0),_0x15f975&&(_0x4aa9f1['preventDefault'](),_0x11ec7d['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4766e0}={}){return(_0x4f8f63,{writer:_0x5eabc6})=>{if(!p(_0x4f8f63))return null;if(!_0x4766e0)return _0x5eabc6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x285982=_0x5eabc6['createContainerElement']('p');return _0x5eabc6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x285982),_0x285982;};}function p(_0x2bcfce){const {parent:_0x2d25e1}=_0x2bcfce;if(!_0x2d25e1?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2d25e1['childCount'])return!0x1;for(const _0x1fa9be of _0x2bcfce['getAttributeKeys']())if(!_0x1fa9be['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1fa9be)return!0x1;return!0x0;}function g(_0x37176e,_0x3fd529){if(!_0x37176e['is']('element','paragraph'))return!0x1;const _0x4f8ef5=_0x3fd529['toViewElement'](_0x37176e);return!!_0x4f8ef5&&p(_0x37176e)!==_0x4f8ef5['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x49357f){return _0x57a6eb(_0x49357f)&&_0x49357f['is']('containerElement')&&!!_0x49357f['getCustomProperty']('footnotesDefinitions');}function v(_0x5b3871,_0x25ec71={}){const _0x66607d=_0x5b3871['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3b3eae=_0x5b3871['createContainerElement']('ol',{'class':'footnotes-list'},_0x5b3871['createSlot']());return _0x5b3871['createContainerElement']('div',{'class':'footnotes',..._0x25ec71},[_0x66607d,_0x3b3eae]);}function D(_0x5aaca8,_0x4101db){const _0x165c39=_0x5aaca8['getAttribute']('footnoteId'),_0x1d867e=_0x5aaca8['getAttribute']('footnoteCounter'),_0x4d08da=_0x4101db['createUIElement']('a',{'href':'#'+_0x165c39},function(_0x497485){const _0x4711e4=this['toDomElement'](_0x497485);return _0x4711e4['textContent']=_0x1d867e,_0x4711e4;}),_0x1bbdde=_0x4101db['createContainerElement']('sup',{'id':'ref-'+_0x165c39,'class':'footnote'},[_0x4d08da]);return _0x1bbdde['getFillerOffset']=()=>null,_0x1bbdde;}function b(_0x3c02ae,_0x2b111b,_0x1865c4,{dataPipeline:_0x26f029}={}){const {t:t}=_0x1865c4,_0x4eb766=_0x3c02ae['getAttribute']('footnoteId'),_0x322664=_0x2b111b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4eb766},function(_0x329aa9){const _0x2f6320=this['toDomElement'](_0x329aa9);return _0x2f6320['innerText']='^',_0x2f6320;}),_0x29b11a=_0x26f029?_0x2b111b['createContainerElement']('div',{'class':'footnote-content'}):_0x5967be(_0x2b111b['createEditableElement']('div',{'class':'footnote-content'}),_0x2b111b,{'label':t('Footnote\x20content.')});return _0x2b111b['insert'](_0x2b111b['createPositionAt'](_0x29b11a,0x0),_0x2b111b['createSlot']()),_0x2b111b['createContainerElement']('li',{'class':'footnote-definition','id':_0x4eb766},[_0x322664,_0x29b11a]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f4c16=_0xbacb;function _0x3e89(){const _0x204658=['2046396WEjxak','isInteger','15KEVDfr','_updateFootnotesCounters','811038fNXlnV','model','8guQJEp','setAttribute','get','getAttribute','20903QCrHlO','1854525MXwdVR','execute','6697638OVDJBX','refresh','isEnabled','getFootnotesDefinitionsObjectElement','7919793KptCtU','footnotesListStart','change','value','134SNJdxO','plugins','24497990MiOWLi'];_0x3e89=function(){return _0x204658;};return _0x3e89();}function _0xbacb(_0x3e7685,_0x2ec559){const _0x3e890f=_0x3e89();return _0xbacb=function(_0xbacbc6,_0x174aeb){_0xbacbc6=_0xbacbc6-0x182;let _0x2809f5=_0x3e890f[_0xbacbc6];return _0x2809f5;},_0xbacb(_0x3e7685,_0x2ec559);}(function(_0x9d31d1,_0x41e1ce){const _0x30bed3=_0xbacb,_0x473c9e=_0x9d31d1();while(!![]){try{const _0x3784a6=parseInt(_0x30bed3(0x190))/0x1*(-parseInt(_0x30bed3(0x183))/0x2)+-parseInt(_0x30bed3(0x191))/0x3+-parseInt(_0x30bed3(0x186))/0x4+-parseInt(_0x30bed3(0x188))/0x5*(-parseInt(_0x30bed3(0x18a))/0x6)+-parseInt(_0x30bed3(0x197))/0x7*(-parseInt(_0x30bed3(0x18c))/0x8)+-parseInt(_0x30bed3(0x193))/0x9+parseInt(_0x30bed3(0x185))/0xa;if(_0x3784a6===_0x41e1ce)break;else _0x473c9e['push'](_0x473c9e['shift']());}catch(_0x2a0e52){_0x473c9e['push'](_0x473c9e['shift']());}}}(_0x3e89,0xade44));import{Command as _0x11d79f}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x54205c}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x11d79f{[_0x1f4c16(0x194)](){const _0x1041a3=_0x1f4c16,{editor:_0xfc431c}=this,_0x589a4c=_0xfc431c[_0x1041a3(0x184)][_0x1041a3(0x18e)](_0x54205c)[_0x1041a3(0x196)]();this[_0x1041a3(0x195)]=!!_0x589a4c,this[_0x1041a3(0x182)]=_0x589a4c?.[_0x1041a3(0x18f)](_0x1041a3(0x198))??null;}[_0x1f4c16(0x192)]({value:_0x524a86}){const _0xeb5de1=_0x1f4c16,{editor:_0x5aa658}=this,_0x27be9b=_0x5aa658[_0xeb5de1(0x184)][_0xeb5de1(0x18e)](_0x54205c),_0x56b57b=_0x27be9b[_0xeb5de1(0x196)]();_0x56b57b&&Number[_0xeb5de1(0x187)](_0x524a86)&&_0x5aa658[_0xeb5de1(0x18b)][_0xeb5de1(0x199)](_0x58fadd=>{const _0x2a776c=_0xeb5de1;_0x58fadd[_0x2a776c(0x18d)](_0x2a776c(0x198),_0x524a86,_0x56b57b),_0x27be9b[_0x2a776c(0x189)](_0x58fadd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1bff08=_0x2b98;(function(_0x383be8,_0x392869){const _0x1187a9=_0x2b98,_0xe9d1a1=_0x383be8();while(!![]){try{const _0x2ae3b1=-parseInt(_0x1187a9(0xba))/0x1+parseInt(_0x1187a9(0xb6))/0x2+-parseInt(_0x1187a9(0xc5))/0x3+parseInt(_0x1187a9(0xbc))/0x4+-parseInt(_0x1187a9(0xc6))/0x5+parseInt(_0x1187a9(0xbd))/0x6*(parseInt(_0x1187a9(0xc0))/0x7)+-parseInt(_0x1187a9(0xb9))/0x8*(-parseInt(_0x1187a9(0xb7))/0x9);if(_0x2ae3b1===_0x392869)break;else _0xe9d1a1['push'](_0xe9d1a1['shift']());}catch(_0x4c72b8){_0xe9d1a1['push'](_0xe9d1a1['shift']());}}}(_0x15ed,0x98f80));import{Command as _0x39f1ea}from'ckeditor5/src/core.js';function _0x15ed(){const _0x553518=['isEnabled','get','includes','plugins','execute','value','2313376BchflK','18DYMlgL','_updateFootnotesCounters','105016rxPqfW','360855laumMO','model','1608288yUOiyE','579828rpCLvy','getFootnotesDefinitionsObjectElement','change','77CgnytX','footnotesListStyle','refresh','getAttribute','setAttribute','1965615mwVoon','5027060tfzctS'];_0x15ed=function(){return _0x553518;};return _0x15ed();}function _0x2b98(_0x44e155,_0x1c6405){const _0x15ed65=_0x15ed();return _0x2b98=function(_0x2b986d,_0x38e06e){_0x2b986d=_0x2b986d-0xb3;let _0x2d2f6e=_0x15ed65[_0x2b986d];return _0x2d2f6e;},_0x2b98(_0x44e155,_0x1c6405);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x1058e2}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x4fadb8}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x39f1ea{[_0x1bff08(0xc2)](){const _0x5bc6ac=_0x1bff08,{editor:_0x579330}=this,_0x240938=_0x579330[_0x5bc6ac(0xb3)][_0x5bc6ac(0xc8)](_0x4fadb8)[_0x5bc6ac(0xbe)]();this[_0x5bc6ac(0xc7)]=!!_0x240938,this[_0x5bc6ac(0xb5)]=_0x240938?.[_0x5bc6ac(0xc3)](_0x5bc6ac(0xc1))??null;}[_0x1bff08(0xb4)]({value:_0x3e0cb7}){const _0x5e72f9=_0x1bff08,{editor:_0x1d3167}=this,_0x43e111=_0x1d3167[_0x5e72f9(0xb3)][_0x5e72f9(0xc8)](_0x4fadb8),_0x2c5b46=_0x43e111[_0x5e72f9(0xbe)]();_0x2c5b46&&_0x1058e2[_0x5e72f9(0xc9)](_0x3e0cb7)&&_0x1d3167[_0x5e72f9(0xbb)][_0x5e72f9(0xbf)](_0x32c51b=>{const _0x389df1=_0x5e72f9;_0x32c51b[_0x389df1(0xc4)](_0x389df1(0xc1),_0x3e0cb7,_0x2c5b46),_0x43e111[_0x389df1(0xb8)](_0x32c51b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49b2b7=_0xbcbe;function _0xbcbe(_0x273035,_0x44005d){const _0x582c6d=_0x582c();return _0xbcbe=function(_0xbcbe37,_0x26d1d3){_0xbcbe37=_0xbcbe37-0x6a;let _0x3a3930=_0x582c6d[_0xbcbe37];return _0x3a3930;},_0xbcbe(_0x273035,_0x44005d);}(function(_0x571409,_0x4c4c03){const _0xfcf719=_0xbcbe,_0x432efe=_0x571409();while(!![]){try{const _0x27663a=parseInt(_0xfcf719(0x74))/0x1*(parseInt(_0xfcf719(0x77))/0x2)+parseInt(_0xfcf719(0x7c))/0x3+-parseInt(_0xfcf719(0x6a))/0x4+parseInt(_0xfcf719(0x6c))/0x5*(parseInt(_0xfcf719(0x78))/0x6)+-parseInt(_0xfcf719(0x76))/0x7*(-parseInt(_0xfcf719(0x72))/0x8)+parseInt(_0xfcf719(0x75))/0x9*(-parseInt(_0xfcf719(0x73))/0xa)+parseInt(_0xfcf719(0x6e))/0xb*(-parseInt(_0xfcf719(0x6f))/0xc);if(_0x27663a===_0x4c4c03)break;else _0x432efe['push'](_0x432efe['shift']());}catch(_0x12a7ed){_0x432efe['push'](_0x432efe['shift']());}}}(_0x582c,0x9c97c));function _0x582c(){const _0x864fea=['upper-roman','725672thlnTe','3840IRBZTK','1hNVbDa','13311zuHyxX','28BPNSuH','1961330CjeDmU','6MtTzoq','lower-roman','upper-latin','decimal','3613350YRBcMx','lower-alpha','710560BAQzKF','lower-latin','770615fyFueG','upper-alpha','11638CMxTiR','14916VvqZZa','decimal-leading-zero'];_0x582c=function(){return _0x864fea;};return _0x582c();}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x49b2b7(0x7b),_0x49b2b7(0x70),_0x49b2b7(0x6b),_0x49b2b7(0x7a),_0x49b2b7(0x7d),_0x49b2b7(0x6d),_0x49b2b7(0x79),_0x49b2b7(0x71)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e1a41=_0x2095;(function(_0x9c668d,_0x1cb7ee){const _0x42545b=_0x2095,_0x10be91=_0x9c668d();while(!![]){try{const _0x1b223d=-parseInt(_0x42545b(0x202))/0x1*(parseInt(_0x42545b(0x21f))/0x2)+-parseInt(_0x42545b(0x1fd))/0x3*(parseInt(_0x42545b(0x215))/0x4)+parseInt(_0x42545b(0x217))/0x5+-parseInt(_0x42545b(0x238))/0x6*(parseInt(_0x42545b(0x213))/0x7)+parseInt(_0x42545b(0x1e3))/0x8*(-parseInt(_0x42545b(0x224))/0x9)+-parseInt(_0x42545b(0x225))/0xa+parseInt(_0x42545b(0x219))/0xb*(parseInt(_0x42545b(0x23b))/0xc);if(_0x1b223d===_0x1cb7ee)break;else _0x10be91['push'](_0x10be91['shift']());}catch(_0x165e81){_0x10be91['push'](_0x10be91['shift']());}}}(_0x23be,0xcda08));import{Plugin as _0x2a2615}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x44f3f1}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0xea854f}from'./commands/footnotesstartcommand.js';function _0x23be(){const _0x65e5fc=['define','mapper','47578488XqaANp','footnotesDefinitions','nodeAfter','plugins','getStyle','isPremiumPlugin','start','insert','attribute:footnotesListStyle:footnotesDefinitions','init','FootnotesPropertiesEditing','toUpperCase','downcast','removeAttribute','element:ol','16ubUXdE','commands','element','padStart','schema','from','$text','for','footnotes.footnotesProperties.defaultListStyle','footnotes.footnotesProperties.defaultStartIndex','isNaN','consume','removeStyle','getChanges','type','getItems','decimal-leading-zero','editor','_formatFootnoteListValue','createRangeOn','footnotesStyle','viewItem','attribute:footnotesListStart:footnotesDefinitions','footnotesListStyle','registerPostFixer','_getDefaultListStyle','189SJkjrk','find','parseInt','item','upcast','1642482oBBUFt','fromCharCode','pluginName','decimal','lower-alpha','footnotesListStart','hasClass','getAttribute','upper-latin','modelCursor','setFootnoteFormatter','_definePostfixer','footnotes-list','consumable','requires','_getDefaultStartIndex','_defineSchema','2305625poIPoe','toViewElement','60852fOknMz','toLowerCase','7252505QSFpRR','_defineConverters','11GqLOWW','_defineFormatter','max','hasAttribute','parent','position','2ShoEet','lower-roman','setStyle','isOfficialPlugin','upper-roman','2241018vSQyfm','11448470PqbdBd','differ','lower-latin','list-style-type','get','model','add','writer','checkAttribute','name','floor','_updateFootnotesCounters','document','footnotesStart','extend','config','getChildren','setAttribute','upper-alpha','6iZfjBl'];_0x23be=function(){return _0x65e5fc;};return _0x23be();}import{FootnotesTracker as _0x4975db}from'../footnotestracker.js';import{FootnotesEditing as _0xcca2f4}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x2a2615{static get[_0x1e1a41(0x204)](){const _0xf1cea7=_0x1e1a41;return _0xf1cea7(0x1de);}static get[_0x1e1a41(0x210)](){return[_0xcca2f4,_0x4975db];}static get[_0x1e1a41(0x222)](){return!0x0;}static get[_0x1e1a41(0x240)](){return!0x0;}[_0x1e1a41(0x1dd)](){const _0x390fd7=_0x1e1a41,{editor:_0x50cba3}=this;_0x50cba3[_0x390fd7(0x234)][_0x390fd7(0x239)](_0x390fd7(0x1eb),_0x390fd7(0x205)),_0x50cba3[_0x390fd7(0x234)][_0x390fd7(0x239)](_0x390fd7(0x1ec),0x1),_0x50cba3[_0x390fd7(0x1e4)][_0x390fd7(0x22b)](_0x390fd7(0x1f7),new _0x44f3f1(_0x50cba3)),_0x50cba3[_0x390fd7(0x1e4)][_0x390fd7(0x22b)](_0x390fd7(0x232),new _0xea854f(_0x50cba3)),this[_0x390fd7(0x212)](),this[_0x390fd7(0x218)](),this[_0x390fd7(0x21a)](),this[_0x390fd7(0x20d)]();}[_0x1e1a41(0x212)](){const _0x2eb0aa=_0x1e1a41,{editor:_0x5a462e}=this,{schema:_0x4f1b10}=_0x5a462e[_0x2eb0aa(0x22a)];_0x4f1b10[_0x2eb0aa(0x233)](_0x2eb0aa(0x23c),{'allowAttributes':[_0x2eb0aa(0x1fa),_0x2eb0aa(0x207)]});}[_0x1e1a41(0x218)](){const _0x4b5eef=_0x1e1a41,{editor:_0x19e227}=this,{conversion:_0x2bab1e,model:_0x300d81}=_0x19e227,{schema:_0x149600}=_0x300d81;_0x2bab1e[_0x4b5eef(0x1ea)](_0x4b5eef(0x201))[_0x4b5eef(0x22b)](_0x361694=>{const _0x3c5641=_0x4b5eef;_0x361694['on'](_0x3c5641(0x1e2),(_0x5a7d69,_0x1630f1,_0x5a4b4f)=>{const _0x557c55=_0x3c5641,_0x344708=_0x1630f1[_0x557c55(0x1f8)],_0x3a3f0d=_0x1630f1[_0x557c55(0x20b)]?.[_0x557c55(0x21d)];_0x344708[_0x557c55(0x208)](_0x557c55(0x20e))&&_0x3a3f0d?.['is'](_0x557c55(0x1e5),_0x557c55(0x23c))&&(function(_0x1cf689,_0x17cee7,_0xa334de,_0x50bf2a){const _0x3b1ae8=_0x557c55;if(!_0x50bf2a[_0x3b1ae8(0x22d)](_0x17cee7,_0x3b1ae8(0x207)))return;let _0x29de77=0x1;const _0x547508=_0xa334de[_0x3b1ae8(0x20f)][_0x3b1ae8(0x1ee)](_0x1cf689,{'attributes':_0x3b1ae8(0x241)});if(_0x547508){const _0x73fc84=Number[_0x3b1ae8(0x1ff)](_0x1cf689[_0x3b1ae8(0x209)](_0x3b1ae8(0x241)),0xa);Number[_0x3b1ae8(0x1ed)](_0x73fc84)||(_0x29de77=_0x73fc84);}!_0x547508&&_0x17cee7[_0x3b1ae8(0x21c)](_0x3b1ae8(0x207))||_0xa334de[_0x3b1ae8(0x22c)][_0x3b1ae8(0x236)](_0x3b1ae8(0x207),_0x29de77,_0x17cee7);}(_0x344708,_0x3a3f0d,_0x5a4b4f,_0x149600),function(_0x3d7b4b,_0x2a62cb,_0x4204ba,_0x274ff4){const _0x226e4f=_0x557c55;if(!_0x274ff4[_0x226e4f(0x22d)](_0x2a62cb,_0x226e4f(0x1fa)))return;let _0x44cc05=_0x226e4f(0x205),_0x13427f=!0x1;if(_0x4204ba[_0x226e4f(0x20f)][_0x226e4f(0x1ee)](_0x3d7b4b,{'attributes':_0x226e4f(0x1f1)})){const _0x2b03e7={0x1:_0x226e4f(0x205),'a':_0x226e4f(0x206),'A':_0x226e4f(0x237),'i':_0x226e4f(0x220),'I':_0x226e4f(0x223)}[_0x3d7b4b[_0x226e4f(0x209)](_0x226e4f(0x1f1))];_0x2b03e7&&(_0x44cc05=_0x2b03e7),_0x13427f=!0x0;}_0x4204ba[_0x226e4f(0x20f)][_0x226e4f(0x1ee)](_0x3d7b4b,{'styles':_0x226e4f(0x228)})&&(_0x44cc05=_0x3d7b4b[_0x226e4f(0x23f)](_0x226e4f(0x228)),_0x13427f=!0x0),!_0x13427f&&_0x2a62cb[_0x226e4f(0x21c)](_0x226e4f(0x1fa))||_0x4204ba[_0x226e4f(0x22c)][_0x226e4f(0x236)](_0x226e4f(0x1fa),_0x44cc05,_0x2a62cb);}(_0x344708,_0x3a3f0d,_0x5a4b4f,_0x149600));});}),_0x2bab1e[_0x4b5eef(0x1ea)](_0x4b5eef(0x1e0))[_0x4b5eef(0x22b)](_0x1c0d87=>{const _0x372de2=_0x4b5eef;_0x1c0d87['on'](_0x372de2(0x1f9),(_0x10ef53,_0x49591b,_0x218e89)=>{const _0x2b218f=_0x372de2;if(!_0x218e89[_0x2b218f(0x20f)][_0x2b218f(0x1ee)](_0x49591b[_0x2b218f(0x200)],_0x10ef53[_0x2b218f(0x22e)]))return;const _0x5c532b=M(_0x49591b[_0x2b218f(0x200)],_0x218e89[_0x2b218f(0x23a)]),{attributeNewValue:_0x2f705d}=_0x49591b;null==_0x2f705d||0x1===_0x2f705d?_0x218e89[_0x2b218f(0x22c)][_0x2b218f(0x1e1)](_0x2b218f(0x241),_0x5c532b):_0x218e89[_0x2b218f(0x22c)][_0x2b218f(0x236)](_0x2b218f(0x241),String(_0x2f705d),_0x5c532b);}),_0x1c0d87['on'](_0x372de2(0x1dc),(_0x1f869a,_0x55a586,_0x3aad2f)=>{const _0x37fca8=_0x372de2;if(!_0x3aad2f[_0x37fca8(0x20f)][_0x37fca8(0x1ee)](_0x55a586[_0x37fca8(0x200)],_0x1f869a[_0x37fca8(0x22e)]))return;const _0x223a0b=M(_0x55a586[_0x37fca8(0x200)],_0x3aad2f[_0x37fca8(0x23a)]),{attributeNewValue:_0x3e662a}=_0x55a586;_0x3e662a&&_0x37fca8(0x205)!==_0x3e662a?_0x3aad2f[_0x37fca8(0x22c)][_0x37fca8(0x221)](_0x37fca8(0x228),_0x3e662a,_0x223a0b):_0x3aad2f[_0x37fca8(0x22c)][_0x37fca8(0x1ef)](_0x37fca8(0x228),_0x223a0b);});});}[_0x1e1a41(0x20d)](){const _0xf66b22=_0x1e1a41,{editor:_0x4fccb8}=this,{model:_0x501020}=_0x4fccb8,_0x43102e=_0x4fccb8[_0xf66b22(0x23e)][_0xf66b22(0x229)](_0x4975db),_0x3f13c5=this[_0xf66b22(0x1fc)](),_0x4e7b6a=this[_0xf66b22(0x211)]();_0x501020[_0xf66b22(0x231)][_0xf66b22(0x1fb)](_0xba259b=>{const _0x313214=_0xf66b22,_0x360a27=_0x501020[_0x313214(0x231)][_0x313214(0x226)][_0x313214(0x1f0)]();let _0x4d9c65=!0x1;for(const _0x2a6b5e of _0x360a27){if(_0x313214(0x1db)!==_0x2a6b5e[_0x313214(0x1f1)]||_0x313214(0x1e9)===_0x2a6b5e[_0x313214(0x22e)])continue;const _0x6625ea=_0x501020[_0x313214(0x1f6)](_0x2a6b5e[_0x313214(0x21e)][_0x313214(0x23d)]);for(const _0xa3ed1e of _0x6625ea[_0x313214(0x1f2)]())_0xa3ed1e['is'](_0x313214(0x1e5),_0x313214(0x23c))&&(!_0xa3ed1e[_0x313214(0x21c)](_0x313214(0x207))&&_0x501020[_0x313214(0x1e7)][_0x313214(0x22d)](_0xa3ed1e,_0x313214(0x207))&&(_0xba259b[_0x313214(0x236)](_0x313214(0x207),_0x4e7b6a,_0xa3ed1e),_0x4d9c65=!0x0),!_0xa3ed1e[_0x313214(0x21c)](_0x313214(0x1fa))&&_0x501020[_0x313214(0x1e7)][_0x313214(0x22d)](_0xa3ed1e,_0x313214(0x1fa))&&(_0xba259b[_0x313214(0x236)](_0x313214(0x1fa),_0x3f13c5,_0xa3ed1e),_0x4d9c65=!0x0));}return _0x4d9c65&&_0x43102e[_0x313214(0x230)](_0xba259b),_0x4d9c65;});}[_0x1e1a41(0x21a)](){const _0x1cfa6b=_0x1e1a41,{editor:_0x47f676}=this;_0x47f676[_0x1cfa6b(0x23e)][_0x1cfa6b(0x229)](_0x4975db)[_0x1cfa6b(0x20c)](_0x378c08=>this[_0x1cfa6b(0x1f5)](_0x378c08));}[_0x1e1a41(0x1fc)](){const _0x2eb45e=_0x1e1a41;return this[_0x2eb45e(0x1f4)][_0x2eb45e(0x234)][_0x2eb45e(0x229)](_0x2eb45e(0x1eb));}[_0x1e1a41(0x211)](){const _0x12a2d0=_0x1e1a41;return this[_0x12a2d0(0x1f4)][_0x12a2d0(0x234)][_0x12a2d0(0x229)](_0x12a2d0(0x1ec));}[_0x1e1a41(0x1f5)]({container:_0x1e2a91,value:_0x206f41,digits:_0x4ca966}){const _0x4895c8=_0x1e1a41,_0x4df352=_0x1e2a91[_0x4895c8(0x209)](_0x4895c8(0x1fa)),_0x398d5b=_0x1e2a91[_0x4895c8(0x209)](_0x4895c8(0x207)),_0x5ac235=Math[_0x4895c8(0x22f)](_0x206f41)+(_0x398d5b??0x1)-0x1;switch(_0x4df352){case _0x4895c8(0x1f3):return function(_0x1835d9,_0x3654f5){const _0x43633b=_0x4895c8;return String(_0x1835d9)[_0x43633b(0x1e6)](_0x3654f5,'0');}(_0x5ac235,Math[_0x4895c8(0x21b)](0x2,_0x4ca966));case _0x4895c8(0x206):case _0x4895c8(0x227):return N(_0x5ac235,!0x1);case _0x4895c8(0x237):case _0x4895c8(0x20a):return N(_0x5ac235,!0x0);case _0x4895c8(0x220):return X(_0x5ac235,!0x1);case _0x4895c8(0x223):return X(_0x5ac235,!0x0);default:return String(_0x5ac235);}}}function _0x2095(_0x3c0947,_0x2bff4c){const _0x23be8e=_0x23be();return _0x2095=function(_0x2095b6,_0x20794d){_0x2095b6=_0x2095b6-0x1db;let _0x36c09d=_0x23be8e[_0x2095b6];return _0x36c09d;},_0x2095(_0x3c0947,_0x2bff4c);}function M(_0x3fb043,_0x19255d){const _0x187a16=_0x1e1a41,_0x518320=_0x19255d[_0x187a16(0x214)](_0x3fb043);return Array[_0x187a16(0x1e8)](_0x518320[_0x187a16(0x235)]())[_0x187a16(0x1fe)](_0x54f465=>_0x54f465['is'](_0x187a16(0x1e5),'ol')&&_0x54f465[_0x187a16(0x208)](_0x187a16(0x20e)));}function N(_0x41a49b,_0x574384){const _0x22e6dd=_0x1e1a41;let _0xf887ae='',_0x52e508=_0x41a49b;for(;_0x52e508>0x0;){const _0xd7e446=(_0x52e508-0x1)%0x1a;_0xf887ae=String[_0x22e6dd(0x203)](0x61+_0xd7e446)+_0xf887ae,_0x52e508=Math[_0x22e6dd(0x22f)]((_0x52e508-0x1)/0x1a);}return _0x574384?_0xf887ae[_0x22e6dd(0x1df)]():_0xf887ae;}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(_0x2d8801,_0x36e712){const _0x545c83=_0x1e1a41;let _0xc5087c='',_0x2183e3=_0x2d8801;for(const {value:_0x38399c,numeral:_0x51aa0e}of V)for(;_0x2183e3>=_0x38399c;)_0xc5087c+=_0x51aa0e,_0x2183e3-=_0x38399c;return _0x36e712?_0xc5087c:_0xc5087c[_0x545c83(0x216)]();}
|
|
23
|
+
function _0x23ca(_0x38a194,_0x29246f){const _0x34ecc4=_0x34ec();return _0x23ca=function(_0x23ca07,_0x3b5d1f){_0x23ca07=_0x23ca07-0x1ed;let _0x165c51=_0x34ecc4[_0x23ca07];return _0x165c51;},_0x23ca(_0x38a194,_0x29246f);}const _0x26657a=_0x23ca;(function(_0xc218d7,_0x1b230a){const _0x52e063=_0x23ca,_0x46a235=_0xc218d7();while(!![]){try{const _0x359af6=-parseInt(_0x52e063(0x212))/0x1*(parseInt(_0x52e063(0x23e))/0x2)+-parseInt(_0x52e063(0x1f3))/0x3+parseInt(_0x52e063(0x209))/0x4+parseInt(_0x52e063(0x236))/0x5*(parseInt(_0x52e063(0x24d))/0x6)+-parseInt(_0x52e063(0x22d))/0x7*(parseInt(_0x52e063(0x206))/0x8)+parseInt(_0x52e063(0x20f))/0x9*(parseInt(_0x52e063(0x247))/0xa)+-parseInt(_0x52e063(0x208))/0xb*(-parseInt(_0x52e063(0x202))/0xc);if(_0x359af6===_0x1b230a)break;else _0x46a235['push'](_0x46a235['shift']());}catch(_0x2ba050){_0x46a235['push'](_0x46a235['shift']());}}}(_0x34ec,0xca9f8));function _0x34ec(){const _0x17915c=['5YOfBYr','from','removeStyle','type','_definePostfixer','nodeAfter','_getDefaultStartIndex','getChildren','8faiuLd','model','mapper','hasAttribute','consumable','footnotes-list','writer','viewItem','footnotesListStart','210aRTEHL','get','upper-alpha','upper-roman','registerPostFixer','footnotesDefinitions','3420246qbdADx','isOfficialPlugin','add','define','setStyle','element:ol','isNaN','lower-alpha','find','_updateFootnotesCounters','name','parent','_getDefaultListStyle','2068644UvctsW','removeAttribute','setAttribute','parseInt','_defineSchema','decimal','_defineFormatter','config','init','start','extend','upper-latin','hasClass','editor','toUpperCase','1046784QWwYQR','checkAttribute','toLowerCase','plugins','8152mcIFDk','footnotes.footnotesProperties.defaultStartIndex','88GtvmdD','5157184NtNDjO','footnotesStyle','getChanges','floor','item','_formatFootnoteListValue','152019eUAHSJ','attribute:footnotesListStart:footnotesDefinitions','insert','215633jsiOoe','for','upcast','requires','list-style-type','getStyle','footnotes.footnotesProperties.defaultListStyle','fromCharCode','position','element','commands','FootnotesPropertiesEditing','attribute:footnotesListStyle:footnotesDefinitions','footnotesListStyle','modelCursor','getAttribute','isPremiumPlugin','setFootnoteFormatter','decimal-leading-zero','createRangeOn','getItems','differ','footnotesStart','pluginName','downcast','consume','padStart','3640CkgcMp','lower-roman','$text','toViewElement','document','lower-latin','max','_defineConverters','schema'];_0x34ec=function(){return _0x17915c;};return _0x34ec();}import{Plugin as _0x1d96a9}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x25e157}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x265776}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x524a67}from'../footnotestracker.js';import{FootnotesEditing as _0x225c94}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x1d96a9{static get[_0x26657a(0x229)](){const _0x2037f0=_0x26657a;return _0x2037f0(0x21d);}static get[_0x26657a(0x215)](){return[_0x225c94,_0x524a67];}static get[_0x26657a(0x24e)](){return!0x0;}static get[_0x26657a(0x222)](){return!0x0;}[_0x26657a(0x1fb)](){const _0x140d29=_0x26657a,{editor:_0x5c79fd}=this;_0x5c79fd[_0x140d29(0x1fa)][_0x140d29(0x250)](_0x140d29(0x218),_0x140d29(0x1f8)),_0x5c79fd[_0x140d29(0x1fa)][_0x140d29(0x250)](_0x140d29(0x207),0x1),_0x5c79fd[_0x140d29(0x21c)][_0x140d29(0x24f)](_0x140d29(0x20a),new _0x25e157(_0x5c79fd)),_0x5c79fd[_0x140d29(0x21c)][_0x140d29(0x24f)](_0x140d29(0x228),new _0x265776(_0x5c79fd)),this[_0x140d29(0x1f7)](),this[_0x140d29(0x234)](),this[_0x140d29(0x1f9)](),this[_0x140d29(0x23a)]();}[_0x26657a(0x1f7)](){const _0x4f5b7f=_0x26657a,{editor:_0xe25fb0}=this,{schema:_0x30db47}=_0xe25fb0[_0x4f5b7f(0x23f)];_0x30db47[_0x4f5b7f(0x1fd)](_0x4f5b7f(0x24c),{'allowAttributes':[_0x4f5b7f(0x21f),_0x4f5b7f(0x246)]});}[_0x26657a(0x234)](){const _0x4848f0=_0x26657a,{editor:_0x1a8d98}=this,{conversion:_0x1ee4a4,model:_0x1d329b}=_0x1a8d98,{schema:_0x1a7fdb}=_0x1d329b;_0x1ee4a4[_0x4848f0(0x213)](_0x4848f0(0x214))[_0x4848f0(0x24f)](_0x3e8de9=>{const _0xdf9bfc=_0x4848f0;_0x3e8de9['on'](_0xdf9bfc(0x252),(_0x395ff5,_0xbd3ef5,_0x4ee07a)=>{const _0x2c0225=_0xdf9bfc,_0x1f29c9=_0xbd3ef5[_0x2c0225(0x245)],_0x250781=_0xbd3ef5[_0x2c0225(0x220)]?.[_0x2c0225(0x1f1)];_0x1f29c9[_0x2c0225(0x1ff)](_0x2c0225(0x243))&&_0x250781?.['is'](_0x2c0225(0x21b),_0x2c0225(0x24c))&&(function(_0x265a2f,_0x47152a,_0x3c12ca,_0xd67afc){const _0x125ece=_0x2c0225;if(!_0xd67afc[_0x125ece(0x203)](_0x47152a,_0x125ece(0x246)))return;let _0x4de4d8=0x1;const _0x545b6d=_0x3c12ca[_0x125ece(0x242)][_0x125ece(0x22b)](_0x265a2f,{'attributes':_0x125ece(0x1fc)});if(_0x545b6d){const _0x9aff77=Number[_0x125ece(0x1f6)](_0x265a2f[_0x125ece(0x221)](_0x125ece(0x1fc)),0xa);Number[_0x125ece(0x253)](_0x9aff77)||(_0x4de4d8=_0x9aff77);}!_0x545b6d&&_0x47152a[_0x125ece(0x241)](_0x125ece(0x246))||_0x3c12ca[_0x125ece(0x244)][_0x125ece(0x1f5)](_0x125ece(0x246),_0x4de4d8,_0x47152a);}(_0x1f29c9,_0x250781,_0x4ee07a,_0x1a7fdb),function(_0x16a607,_0x5a5ef4,_0x5c1d14,_0x183d0f){const _0x1677a9=_0x2c0225;if(!_0x183d0f[_0x1677a9(0x203)](_0x5a5ef4,_0x1677a9(0x21f)))return;let _0x5730a5=_0x1677a9(0x1f8),_0x5ab21d=!0x1;if(_0x5c1d14[_0x1677a9(0x242)][_0x1677a9(0x22b)](_0x16a607,{'attributes':_0x1677a9(0x239)})){const _0x3065d0={0x1:_0x1677a9(0x1f8),'a':_0x1677a9(0x1ed),'A':_0x1677a9(0x249),'i':_0x1677a9(0x22e),'I':_0x1677a9(0x24a)}[_0x16a607[_0x1677a9(0x221)](_0x1677a9(0x239))];_0x3065d0&&(_0x5730a5=_0x3065d0),_0x5ab21d=!0x0;}_0x5c1d14[_0x1677a9(0x242)][_0x1677a9(0x22b)](_0x16a607,{'styles':_0x1677a9(0x216)})&&(_0x5730a5=_0x16a607[_0x1677a9(0x217)](_0x1677a9(0x216)),_0x5ab21d=!0x0),!_0x5ab21d&&_0x5a5ef4[_0x1677a9(0x241)](_0x1677a9(0x21f))||_0x5c1d14[_0x1677a9(0x244)][_0x1677a9(0x1f5)](_0x1677a9(0x21f),_0x5730a5,_0x5a5ef4);}(_0x1f29c9,_0x250781,_0x4ee07a,_0x1a7fdb));});}),_0x1ee4a4[_0x4848f0(0x213)](_0x4848f0(0x22a))[_0x4848f0(0x24f)](_0x229de0=>{const _0x224270=_0x4848f0;_0x229de0['on'](_0x224270(0x210),(_0x28556b,_0x2f5ce1,_0x1bf344)=>{const _0x2b1a93=_0x224270;if(!_0x1bf344[_0x2b1a93(0x242)][_0x2b1a93(0x22b)](_0x2f5ce1[_0x2b1a93(0x20d)],_0x28556b[_0x2b1a93(0x1f0)]))return;const _0x17a442=M(_0x2f5ce1[_0x2b1a93(0x20d)],_0x1bf344[_0x2b1a93(0x240)]),{attributeNewValue:_0x573d58}=_0x2f5ce1;null==_0x573d58||0x1===_0x573d58?_0x1bf344[_0x2b1a93(0x244)][_0x2b1a93(0x1f4)](_0x2b1a93(0x1fc),_0x17a442):_0x1bf344[_0x2b1a93(0x244)][_0x2b1a93(0x1f5)](_0x2b1a93(0x1fc),String(_0x573d58),_0x17a442);}),_0x229de0['on'](_0x224270(0x21e),(_0x3fd8bb,_0x3fc714,_0x33a8b1)=>{const _0x3ce235=_0x224270;if(!_0x33a8b1[_0x3ce235(0x242)][_0x3ce235(0x22b)](_0x3fc714[_0x3ce235(0x20d)],_0x3fd8bb[_0x3ce235(0x1f0)]))return;const _0xc20161=M(_0x3fc714[_0x3ce235(0x20d)],_0x33a8b1[_0x3ce235(0x240)]),{attributeNewValue:_0x36488b}=_0x3fc714;_0x36488b&&_0x3ce235(0x1f8)!==_0x36488b?_0x33a8b1[_0x3ce235(0x244)][_0x3ce235(0x251)](_0x3ce235(0x216),_0x36488b,_0xc20161):_0x33a8b1[_0x3ce235(0x244)][_0x3ce235(0x238)](_0x3ce235(0x216),_0xc20161);});});}[_0x26657a(0x23a)](){const _0x162f02=_0x26657a,{editor:_0x2b7a0b}=this,{model:_0x21bf77}=_0x2b7a0b,_0x58f357=_0x2b7a0b[_0x162f02(0x205)][_0x162f02(0x248)](_0x524a67),_0x554420=this[_0x162f02(0x1f2)](),_0x56cf41=this[_0x162f02(0x23c)]();_0x21bf77[_0x162f02(0x231)][_0x162f02(0x24b)](_0x480779=>{const _0x5e699e=_0x162f02,_0x59ba29=_0x21bf77[_0x5e699e(0x231)][_0x5e699e(0x227)][_0x5e699e(0x20b)]();let _0x582da1=!0x1;for(const _0xd6dba2 of _0x59ba29){if(_0x5e699e(0x211)!==_0xd6dba2[_0x5e699e(0x239)]||_0x5e699e(0x22f)===_0xd6dba2[_0x5e699e(0x1f0)])continue;const _0x394172=_0x21bf77[_0x5e699e(0x225)](_0xd6dba2[_0x5e699e(0x21a)][_0x5e699e(0x23b)]);for(const _0x1af9bc of _0x394172[_0x5e699e(0x226)]())_0x1af9bc['is'](_0x5e699e(0x21b),_0x5e699e(0x24c))&&(!_0x1af9bc[_0x5e699e(0x241)](_0x5e699e(0x246))&&_0x21bf77[_0x5e699e(0x235)][_0x5e699e(0x203)](_0x1af9bc,_0x5e699e(0x246))&&(_0x480779[_0x5e699e(0x1f5)](_0x5e699e(0x246),_0x56cf41,_0x1af9bc),_0x582da1=!0x0),!_0x1af9bc[_0x5e699e(0x241)](_0x5e699e(0x21f))&&_0x21bf77[_0x5e699e(0x235)][_0x5e699e(0x203)](_0x1af9bc,_0x5e699e(0x21f))&&(_0x480779[_0x5e699e(0x1f5)](_0x5e699e(0x21f),_0x554420,_0x1af9bc),_0x582da1=!0x0));}return _0x582da1&&_0x58f357[_0x5e699e(0x1ef)](_0x480779),_0x582da1;});}[_0x26657a(0x1f9)](){const _0x1b0f94=_0x26657a,{editor:_0xd500b2}=this;_0xd500b2[_0x1b0f94(0x205)][_0x1b0f94(0x248)](_0x524a67)[_0x1b0f94(0x223)](_0x4e428a=>this[_0x1b0f94(0x20e)](_0x4e428a));}[_0x26657a(0x1f2)](){const _0x37e87a=_0x26657a;return this[_0x37e87a(0x200)][_0x37e87a(0x1fa)][_0x37e87a(0x248)](_0x37e87a(0x218));}[_0x26657a(0x23c)](){const _0x394cc7=_0x26657a;return this[_0x394cc7(0x200)][_0x394cc7(0x1fa)][_0x394cc7(0x248)](_0x394cc7(0x207));}[_0x26657a(0x20e)]({container:_0x1ce8b1,value:_0x4b46ad,digits:_0x20406d}){const _0x5ba51c=_0x26657a,_0x4bb73e=_0x1ce8b1[_0x5ba51c(0x221)](_0x5ba51c(0x21f)),_0x32c9af=_0x1ce8b1[_0x5ba51c(0x221)](_0x5ba51c(0x246)),_0x5677d5=Math[_0x5ba51c(0x20c)](_0x4b46ad)+(_0x32c9af??0x1)-0x1;switch(_0x4bb73e){case _0x5ba51c(0x224):return function(_0x1a5cba,_0x380453){const _0xbd5092=_0x5ba51c;return String(_0x1a5cba)[_0xbd5092(0x22c)](_0x380453,'0');}(_0x5677d5,Math[_0x5ba51c(0x233)](0x2,_0x20406d));case _0x5ba51c(0x1ed):case _0x5ba51c(0x232):return N(_0x5677d5,!0x1);case _0x5ba51c(0x249):case _0x5ba51c(0x1fe):return N(_0x5677d5,!0x0);case _0x5ba51c(0x22e):return X(_0x5677d5,!0x1);case _0x5ba51c(0x24a):return X(_0x5677d5,!0x0);default:return String(_0x5677d5);}}}function M(_0x305f98,_0x5f091d){const _0xde983b=_0x26657a,_0x42e416=_0x5f091d[_0xde983b(0x230)](_0x305f98);return Array[_0xde983b(0x237)](_0x42e416[_0xde983b(0x23d)]())[_0xde983b(0x1ee)](_0x40934a=>_0x40934a['is'](_0xde983b(0x21b),'ol')&&_0x40934a[_0xde983b(0x1ff)](_0xde983b(0x243)));}function N(_0x5899c2,_0x9427a2){const _0x510251=_0x26657a;let _0x3faf49='',_0x26f2b1=_0x5899c2;for(;_0x26f2b1>0x0;){const _0x4c3efc=(_0x26f2b1-0x1)%0x1a;_0x3faf49=String[_0x510251(0x219)](0x61+_0x4c3efc)+_0x3faf49,_0x26f2b1=Math[_0x510251(0x20c)]((_0x26f2b1-0x1)/0x1a);}return _0x9427a2?_0x3faf49[_0x510251(0x201)]():_0x3faf49;}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(_0x51c86f,_0x4af3f4){const _0x1fd05c=_0x26657a;let _0x12a639='',_0x23745f=_0x51c86f;for(const {value:_0x1fccd2,numeral:_0x4136c9}of V)for(;_0x23745f>=_0x1fccd2;)_0x12a639+=_0x4136c9,_0x23745f-=_0x1fccd2;return _0x4af3f4?_0x12a639:_0x12a639[_0x1fd05c(0x204)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x3f23ca,ButtonView as _0xc3dfd1,ContextualBalloon as _0x5cd253,createDropdown as _0x260599}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x29f531}from'ckeditor5/src/widget.js';import{Plugin as _0x4cf306}from'ckeditor5/src/core.js';import{IconFootnote as _0x222287,IconListStyleDecimal as _0xbcd84d,IconListStyleDecimalLeadingZero as _0x481556,IconListStyleLowerLatin as _0xf4ff26,IconListStyleLowerRoman as _0x2d8197,IconListStyleUpperLatin as _0x105f99,IconListStyleUpperRoman as _0x5e7241}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4ba00b}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x332c54}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x4cf306{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5cd253,_0x29f531];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f5e69}=this,{componentFactory:_0xfceed6}=_0x4f5e69['ui'];_0x4f5e69['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xfceed6['add']('footnotesStyle',function(_0x5baea6){return _0x2f8c39=>{const {t:t}=_0x2f8c39,_0x38a320=_0x5baea6['commands']['get']('footnotesStyle'),_0x5609fc=_0x260599(_0x2f8c39),{buttonView:_0x5eb516}=_0x5609fc;return _0x5609fc['class']='ck-footnotes-styles-dropdown',_0x5609fc['bind']('isEnabled')['to'](_0x38a320,'isEnabled'),_0x5eb516['set']({'label':t('Footnotes\x20style'),'icon':_0x222287,'tooltip':!0x0}),_0x5609fc['once']('change:isOpen',()=>{const _0x3410b3=function({editor:_0x19873e,dropdownView:_0x22a99e}){const {t:t}=_0x19873e['locale'],_0x443d1d=t('Footnotes\x20definitions\x20styles'),_0x16d765=function(_0x4e296a){const t=_0x4e296a['locale']['t'],_0x645c8e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0xbcd84d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x481556},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2d8197},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5e7241},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xf4ff26},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x105f99}];return _0x645c8e['map'](function(_0x220f1){const _0x4b1e22=_0x220f1['locale'];return({label:_0x42cdd2,icon:_0xd95b2a,tooltip:_0x271e95,style:_0x1ae886})=>{const _0x1f05c7=_0x220f1['commands']['get']('footnotesStyle'),_0x228ea8=new _0xc3dfd1(_0x4b1e22);return _0x228ea8['set']({'label':_0x42cdd2,'icon':_0xd95b2a,'tooltip':_0x271e95}),_0x228ea8['bind']('isOn')['to'](_0x1f05c7,'value',_0x49e0a9=>_0x49e0a9===_0x1ae886),_0x228ea8['bind']('isEnabled')['to'](_0x1f05c7,'isEnabled'),_0x228ea8['on']('execute',()=>{_0x220f1['execute']('footnotesStyle',{'value':_0x1ae886}),_0x220f1['editing']['view']['focus']();}),_0x228ea8;};}(_0x4e296a));}(_0x19873e),_0x4e82dc=new _0x4ba00b(_0x19873e['locale'],{'styleGridAriaLabel':_0x443d1d,'styleButtonViews':_0x16d765});return _0x4e82dc['delegate']('execute')['to'](_0x22a99e),_0x4e82dc['on']('footnotesListStart',(_0x4db601,_0x5ed16d)=>{_0x19873e['execute']('footnotesStart',{'value':_0x5ed16d['startIndex']});}),_0x4e82dc;}({'editor':_0x5baea6,'dropdownView':_0x5609fc});_0x5609fc['panelView']['children']['add'](_0x3410b3);}),_0x5609fc;};}(_0x4f5e69));}['afterInit'](){const {editor:_0x653912}=this,{t:t}=_0x653912['locale'],_0x2248f0=_0x653912['plugins']['get'](_0x29f531),{defaultPositions:_0x5cd232}=_0x3f23ca;_0x2248f0['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x653912['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4612f8=>{let _0x18c0ed=_0x4612f8['getFirstPosition']()?.['parent'];return _0x18c0ed?.['is']('$text')&&(_0x18c0ed=_0x18c0ed['parent']),_0x18c0ed?.['is']('element')?_0x18c0ed['findAncestor'](_0x332c54):null;},'positions':[_0x5cd232['southArrowNorth'],_0x5cd232['southArrowNorthMiddleWest'],_0x5cd232['southArrowNorthMiddleEast'],_0x5cd232['southArrowNorthWest'],_0x5cd232['southArrowNorthEast'],_0x5cd232['northArrowSouth'],_0x5cd232['northArrowSouthMiddleWest'],_0x5cd232['northArrowSouthMiddleEast'],_0x5cd232['northArrowSouthWest'],_0x5cd232['northArrowSouthEast'],_0x5cd232['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x25fb53,View as _0xb4b159,ViewCollection as _0x391f9b,FocusCycler as _0x1f81e0,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0xb4b159{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x391f9b();['focusCycler'];constructor(_0x2cdb39,{styleButtonViews:_0x2be03f,styleGridAriaLabel:_0x39f9ea}){super(_0x2cdb39),(this['focusCycler']=new _0x1f81e0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x2be03f,_0x39f9ea),[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 _0x40af86 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x40af86['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x19cb2c=_0xc369bd=>_0xc369bd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x19cb2c),this['keystrokes']['set']('arrowleft',_0x19cb2c),this['keystrokes']['set']('arrowup',_0x19cb2c),this['keystrokes']['set']('arrowdown',_0x19cb2c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xd547ad,_0x4ec5c5){const _0x550b00=new _0xb4b159(this['locale']);return _0x550b00['children']=_0x550b00['createCollection'](),_0x550b00['children']['addMany'](_0xd547ad),_0x550b00['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4ec5c5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x550b00['children']}),_0x550b00['children']['delegate']('execute')['to'](this),_0x550b00['focus']=function(){for(const _0x3fbb39 of this['children'])if(_0x3fbb39 instanceof _0x25fb53&&_0x3fbb39['isOn'])return void _0x3fbb39['focus']();this['children']['first']['focus']();},_0x550b00['focusTracker']=new ot(),_0x550b00['keystrokes']=new rt(),_0x550b00['render'](),_0x550b00['keystrokes']['listenTo'](_0x550b00['element']),this['children']['add'](_0x550b00),_0x550b00;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5bc35e=this['_createStartIndexPropertyView'](),_0x13d9c6=[_0x5bc35e],_0x2d717d=new st(this['locale'],_0x13d9c6);return _0x2d717d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2d717d['buttonView']['bind']('isEnabled')['toMany'](_0x13d9c6,'isEnabled',(..._0x22a441)=>_0x22a441['some'](_0x4b4be0=>_0x4b4be0)),_0x2d717d['buttonView']['on']('change:isEnabled',(_0x41f91e,_0x3cb898,_0x14387c)=>{_0x14387c||(_0x2d717d['isCollapsed']=!0x0);}),this['children']['add'](_0x2d717d),[_0x5bc35e,_0x2d717d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3e893e=new it(this['locale'],et);return _0x3e893e['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3e893e['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3e893e['fieldView']['on']('input',()=>{const _0x32ef64=_0x3e893e['fieldView']['element'],_0x23adc2=_0x32ef64['valueAsNumber'];Number['isNaN'](_0x23adc2)?_0x3e893e['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x32ef64['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x23adc2}):_0x3e893e['errorText']=t(_0x23adc2<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3e893e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x19a0f7=_0x3884;function _0x5c4d(){var _0x368cab=['isOfficialPlugin','pluginName','isPremiumPlugin','475Vvkite','FootnotesProperties','3IMmgyk','260414GDdKza','717360BuTinI','35058gedPqJ','4124824QuoFHl','4923999GkrEAr','730886MiSYPn','80vddKfB','66483GuDCpJ','requires'];_0x5c4d=function(){return _0x368cab;};return _0x5c4d();}(function(_0x3c7d88,_0x41d411){var _0x1683b1=_0x3884,_0x5e371b=_0x3c7d88();while(!![]){try{var _0xe6123e=parseInt(_0x1683b1(0x116))/0x1*(parseInt(_0x1683b1(0x10d))/0x2)+parseInt(_0x1683b1(0x10f))/0x3+parseInt(_0x1683b1(0x11a))/0x4+parseInt(_0x1683b1(0x114))/0x5*(-parseInt(_0x1683b1(0x119))/0x6)+-parseInt(_0x1683b1(0x117))/0x7*(parseInt(_0x1683b1(0x10e))/0x8)+-parseInt(_0x1683b1(0x10c))/0x9+-parseInt(_0x1683b1(0x118))/0xa;if(_0xe6123e===_0x41d411)break;else _0x5e371b['push'](_0x5e371b['shift']());}catch(_0x498518){_0x5e371b['push'](_0x5e371b['shift']());}}}(_0x5c4d,0x93660));import{Plugin as _0xa55acc}from'ckeditor5/src/core.js';function _0x3884(_0x2754a6,_0xd2d66){var _0x5c4d29=_0x5c4d();return _0x3884=function(_0x38846c,_0xf5e4c7){_0x38846c=_0x38846c-0x10c;var _0x1f1f92=_0x5c4d29[_0x38846c];return _0x1f1f92;},_0x3884(_0x2754a6,_0xd2d66);}import{FootnotesPropertiesEditing as _0x3c4881}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x504442}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0xa55acc{static get[_0x19a0f7(0x112)](){var _0x1b9428=_0x19a0f7;return _0x1b9428(0x115);}static get[_0x19a0f7(0x110)](){return[_0x3c4881,_0x504442];}static get[_0x19a0f7(0x111)](){return!0x0;}static get[_0x19a0f7(0x113)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4efcc0=_0x1278;(function(_0x5b4f16,_0x3e7261){const _0x46bd35=_0x1278,_0x2ef5f3=_0x5b4f16();while(!![]){try{const _0x1397de=-parseInt(_0x46bd35(0x1fe))/0x1+-parseInt(_0x46bd35(0x205))/0x2*(parseInt(_0x46bd35(0x218))/0x3)+parseInt(_0x46bd35(0x222))/0x4+-parseInt(_0x46bd35(0x21b))/0x5*(-parseInt(_0x46bd35(0x219))/0x6)+parseInt(_0x46bd35(0x238))/0x7+-parseInt(_0x46bd35(0x206))/0x8*(-parseInt(_0x46bd35(0x21d))/0x9)+-parseInt(_0x46bd35(0x221))/0xa;if(_0x1397de===_0x3e7261)break;else _0x2ef5f3['push'](_0x2ef5f3['shift']());}catch(_0x426d1e){_0x2ef5f3['push'](_0x2ef5f3['shift']());}}}(_0xbe07,0xe73fc));import{Plugin as _0x4e206f}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x83987c}from'./modelelementtracker.js';export class FootnotesTracker extends _0x4e206f{[_0x4efcc0(0x207)]=[];[_0x4efcc0(0x22a)]=null;[_0x4efcc0(0x23a)]=null;[_0x4efcc0(0x234)];[_0x4efcc0(0x212)];[_0x4efcc0(0x215)];static get[_0x4efcc0(0x1e0)](){const _0x42b46a=_0x4efcc0;return _0x42b46a(0x232);}static get[_0x4efcc0(0x1de)](){return!0x0;}static get[_0x4efcc0(0x23e)](){return!0x0;}constructor(_0x2d272d){const _0x2974e0=_0x4efcc0;super(_0x2d272d),this[_0x2974e0(0x234)]=new _0x83987c(this[_0x2974e0(0x211)][_0x2974e0(0x227)],{'elementName':_0x2974e0(0x228),'getElementKey':()=>_0x2974e0(0x1e3)}),this[_0x2974e0(0x212)]=new _0x83987c(this[_0x2974e0(0x211)][_0x2974e0(0x227)],{'elementName':_0x2974e0(0x223),'getElementKey':_0x100f93=>_0x100f93[_0x2974e0(0x208)](_0x2974e0(0x20f))}),this[_0x2974e0(0x215)]=new _0x83987c(this[_0x2974e0(0x211)][_0x2974e0(0x227)],{'elementName':_0x2974e0(0x1f9),'getElementKey':_0x48d81c=>_0x48d81c[_0x2974e0(0x208)](_0x2974e0(0x20f))});}[_0x4efcc0(0x1ec)](){const _0x3c62e2=_0x4efcc0,{editor:_0x38df71}=this,{model:_0x4aa8ff,data:_0x20e419}=_0x38df71;_0x4aa8ff[_0x3c62e2(0x214)][_0x3c62e2(0x20d)](_0x30f6cd=>{const _0x878ff4=_0x3c62e2,_0x39520c=_0x4aa8ff[_0x878ff4(0x214)][_0x878ff4(0x23d)][_0x878ff4(0x224)]();let _0x5e1cf4=!0x1;return this[_0x878ff4(0x20a)](_0x30f6cd,_0x39520c)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x1e8)](_0x30f6cd,_0x39520c)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x21c)](_0x30f6cd,_0x39520c)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x1e1)](_0x30f6cd)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x22c)](_0x30f6cd)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x1f1)](_0x30f6cd)&&(_0x5e1cf4=!0x0),_0x5e1cf4;}),this[_0x3c62e2(0x1db)](_0x4aa8ff[_0x3c62e2(0x214)],_0x3c62e2(0x1f3),()=>{const _0x6b3566=_0x3c62e2;_0x4aa8ff[_0x6b3566(0x217)]({'isUndoable':!0x1},_0x131579=>{const _0x1c0e42=_0x6b3566;this[_0x1c0e42(0x220)](_0x131579);});},{'priority':_0x3c62e2(0x1ef)}),this[_0x3c62e2(0x1db)](_0x20e419,_0x3c62e2(0x1e5),()=>{const _0x408b0f=_0x3c62e2;this[_0x408b0f(0x207)]=[],this[_0x408b0f(0x234)][_0x408b0f(0x1e4)](),this[_0x408b0f(0x212)][_0x408b0f(0x1e4)](),this[_0x408b0f(0x215)][_0x408b0f(0x1e4)]();},{'priority':_0x3c62e2(0x239)});}[_0x4efcc0(0x202)](){const _0x123356=_0x4efcc0;return this[_0x123356(0x22a)];}[_0x4efcc0(0x1fa)](_0x3069ab){const _0x209dab=_0x4efcc0;return this[_0x209dab(0x207)][_0x209dab(0x1ed)](_0x7c7a86=>_0x7c7a86['id']===_0x3069ab)||null;}[_0x4efcc0(0x1dc)](){const _0x28679c=_0x4efcc0;return Array[_0x28679c(0x1f4)](this[_0x28679c(0x207)]);}[_0x4efcc0(0x1f7)](){const _0x23beb5=_0x4efcc0;return this[_0x23beb5(0x23a)];}[_0x4efcc0(0x22f)](_0x5d2f36){const _0xb3be88=_0x4efcc0;this[_0xb3be88(0x23a)]=_0x5d2f36;}[_0x4efcc0(0x226)](_0x344711,_0x1b2730=0x0){const _0x46e1ee=_0x4efcc0;let _0x3271e2=!0x1;for(let _0x49f4d6=_0x1b2730;_0x49f4d6<this[_0x46e1ee(0x207)][_0x46e1ee(0x230)];_0x49f4d6++)this[_0x46e1ee(0x1e6)](_0x344711,_0x49f4d6)&&(_0x3271e2=!0x0);return _0x3271e2;}[_0x4efcc0(0x21f)](_0x3a976a,_0x2c9937){const _0x5432c5=_0x4efcc0,_0x32f78a=_0x3a976a[_0x5432c5(0x231)](_0x5432c5(0x228),{});return _0x3a976a[_0x5432c5(0x1f2)](_0x32f78a,_0x2c9937),this[_0x5432c5(0x22a)]=_0x32f78a,_0x32f78a;}[_0x4efcc0(0x220)](_0x143c0){const _0x1f6730=_0x4efcc0;if(!this[_0x1f6730(0x207)][_0x1f6730(0x230)]||this[_0x1f6730(0x22a)])return;const _0x1d4f45=this[_0x1f6730(0x207)][0x0][_0x1f6730(0x1fd)][_0x1f6730(0x1fc)],_0x5e9bad=this[_0x1f6730(0x21f)](_0x143c0,_0x1d4f45);for(const _0x393de9 of this[_0x1f6730(0x207)])_0x393de9[_0x1f6730(0x20e)][_0x1f6730(0x229)]||_0x143c0[_0x1f6730(0x1ea)](_0x393de9[_0x1f6730(0x20e)],_0x5e9bad,_0x1f6730(0x23c));this[_0x1f6730(0x226)](_0x143c0);}[_0x4efcc0(0x20a)](_0x3d7814,_0x503262){const _0xd358d2=_0x4efcc0;let _0x10b64a=!0x1;const {inserted:_0x272318,removed:_0x32d686,moved:_0x9ddf2a}=this[_0xd358d2(0x234)][_0xd358d2(0x224)](_0x503262);if(_0x9ddf2a[_0xd358d2(0x230)]&&(this[_0xd358d2(0x22a)]=_0x9ddf2a[0x0]),_0x272318[_0xd358d2(0x230)]){if(_0x272318[_0xd358d2(0x230)]>0x1||this[_0xd358d2(0x22a)]&&_0x272318[_0xd358d2(0x1df)](_0x110918=>_0x110918!==this[_0xd358d2(0x22a)])){const _0x42cee0=_0x3d7814[_0xd358d2(0x231)](_0xd358d2(0x228),{}),_0x3e77ca=[];this[_0xd358d2(0x22a)]&&_0x3e77ca[_0xd358d2(0x1f0)](this[_0xd358d2(0x22a)]),_0x3e77ca[_0xd358d2(0x1f0)](..._0x272318),_0x3d7814[_0xd358d2(0x1ea)](_0x42cee0,_0x3e77ca[0x0],_0xd358d2(0x204));for(const _0x54411f of _0x3e77ca)_0x3d7814[_0xd358d2(0x22d)](_0x3d7814[_0xd358d2(0x201)](_0x54411f),_0x3d7814[_0xd358d2(0x1f8)](_0x42cee0,_0xd358d2(0x23c))),_0x3d7814[_0xd358d2(0x1ee)](_0x54411f);this[_0xd358d2(0x22a)]=_0x42cee0,this[_0xd358d2(0x226)](_0x3d7814),_0x10b64a=!0x0;}else this[_0xd358d2(0x22a)]=_0x272318[0x0];}if(_0x32d686[_0xd358d2(0x230)]&&_0xd358d2(0x1e9)===this[_0xd358d2(0x22a)]?.[_0xd358d2(0x1fc)][_0xd358d2(0x1da)]){for(const _0x92bfa6 of this[_0xd358d2(0x207)])_0x3d7814[_0xd358d2(0x1ee)](_0x92bfa6[_0xd358d2(0x1fd)]),_0x10b64a=!0x0;this[_0xd358d2(0x207)]=[],this[_0xd358d2(0x22a)]=null;}return _0x10b64a;}[_0x4efcc0(0x1e8)](_0x4d2ca0,_0x54184e){const _0x428e3a=_0x4efcc0;let _0xb11b63=!0x1;const _0x5ab1fd=this[_0x428e3a(0x211)][_0x428e3a(0x1e2)][_0x428e3a(0x23b)](_0x428e3a(0x210)),{inserted:_0xf733e0,moved:_0x6f008b}=this[_0x428e3a(0x215)][_0x428e3a(0x224)](_0x54184e);for(const _0x43fe86 of[..._0x6f008b,..._0xf733e0]){const _0x13d04d=_0x43fe86[_0x428e3a(0x208)](_0x428e3a(0x20f)),_0x3fc768=this[_0x428e3a(0x1fa)](_0x13d04d);_0x3fc768&&(_0x3fc768[_0x428e3a(0x20e)]=_0x43fe86),_(_0x4d2ca0,_0x5ab1fd,_0x43fe86)&&(_0xb11b63=!0x0);}return _0xb11b63;}[_0x4efcc0(0x21c)](_0x1f54b7,_0x2c11df){const _0x412bf1=_0x4efcc0;let _0x153a8d=!0x1;const {removed:_0x1ff874,inserted:_0x285bd2,moved:_0x175c58}=this[_0x412bf1(0x212)][_0x412bf1(0x224)](_0x2c11df);for(const _0x13902b of _0x1ff874)this[_0x412bf1(0x209)](_0x1f54b7,_0x13902b)&&(_0x153a8d=!0x0);for(const _0x4f3f6f of _0x285bd2)this[_0x412bf1(0x21a)](_0x1f54b7,_0x4f3f6f)&&(_0x153a8d=!0x0);for(const _0x14de46 of _0x175c58)this[_0x412bf1(0x22b)](_0x1f54b7,_0x14de46)&&(_0x153a8d=!0x0);return _0x153a8d;}[_0x4efcc0(0x22c)](_0x53e3c2){const _0x1d66d5=_0x4efcc0;if(!this[_0x1d66d5(0x22a)])return!0x1;let _0x130ad1=!0x1;if(this[_0x1d66d5(0x22a)][_0x1d66d5(0x21e)]!==this[_0x1d66d5(0x207)][_0x1d66d5(0x230)]){const _0x5356c=[];for(const _0x474978 of this[_0x1d66d5(0x22a)][_0x1d66d5(0x203)]()){const _0x47e8de=_0x474978[_0x1d66d5(0x208)](_0x1d66d5(0x20f));this[_0x1d66d5(0x1fa)](_0x47e8de)||(_0x5356c[_0x1d66d5(0x225)](_0x474978),_0x130ad1=!0x0);}for(const _0x233c00 of _0x5356c)_0x53e3c2[_0x1d66d5(0x1ee)](_0x233c00);}const _0x477c5e=new Set(),_0x1fb1de=[];for(const _0xfbc80b of this[_0x1d66d5(0x22a)][_0x1d66d5(0x203)]()){const _0x641de0=_0xfbc80b[_0x1d66d5(0x208)](_0x1d66d5(0x20f));_0x477c5e[_0x1d66d5(0x1eb)](_0x641de0)?(_0x1fb1de[_0x1d66d5(0x225)](_0xfbc80b),_0x130ad1=!0x0):_0x477c5e[_0x1d66d5(0x20c)](_0x641de0);}for(const _0x4c7743 of _0x1fb1de)_0x53e3c2[_0x1d66d5(0x1ee)](_0x4c7743);return this[_0x1d66d5(0x22a)][_0x1d66d5(0x21e)]||(_0x53e3c2[_0x1d66d5(0x1ee)](this[_0x1d66d5(0x22a)]),this[_0x1d66d5(0x22a)]=null,_0x130ad1=!0x0),_0x130ad1;}[_0x4efcc0(0x21a)](_0x46e94f,_0x2eca4f){const _0x400d35=_0x4efcc0;if(this[_0x400d35(0x207)][_0x400d35(0x1ed)](_0x3b14cc=>_0x3b14cc[_0x400d35(0x1fd)]===_0x2eca4f))return!0x1;let _0x4970a5=!0x1;const _0x4c1beb=_0x2eca4f[_0x400d35(0x208)](_0x400d35(0x20f)),_0x303994=this[_0x400d35(0x207)][_0x400d35(0x213)](_0x5f01a2=>_0x5f01a2['id']===_0x4c1beb);-0x1!==_0x303994&&(_0x46e94f[_0x400d35(0x1ee)](this[_0x400d35(0x207)][_0x303994][_0x400d35(0x1fd)]),this[_0x400d35(0x207)][_0x400d35(0x20b)](_0x303994,0x1),_0x4970a5=!0x0);let _0x14e0d3=this[_0x400d35(0x22a)]?function(_0x338253,_0x1883e7){const _0x29abe7=_0x400d35;for(const _0x3d5f4e of _0x338253[_0x29abe7(0x203)]())if(_0x3d5f4e[_0x29abe7(0x208)](_0x29abe7(0x20f))===_0x1883e7)return _0x3d5f4e;return null;}(this[_0x400d35(0x22a)],_0x4c1beb):null;_0x14e0d3||(_0x14e0d3=_0x46e94f[_0x400d35(0x231)](_0x400d35(0x1f9),{'footnoteId':_0x4c1beb}),this[_0x400d35(0x22a)]&&(_0x46e94f[_0x400d35(0x1ea)](_0x14e0d3,this[_0x400d35(0x22a)],_0x400d35(0x23c)),_0x4970a5=!0x0));const _0x43039e={'id':_0x4c1beb,'reference':_0x2eca4f,'definition':_0x14e0d3},_0xed15a3=I(this[_0x400d35(0x211)][_0x400d35(0x227)],this[_0x400d35(0x207)],_0x2eca4f);this[_0x400d35(0x207)][_0x400d35(0x20b)](_0xed15a3,0x0,_0x43039e);let _0x228dc9=_0xed15a3;return-0x1!==_0x303994&&(_0x228dc9=Math[_0x400d35(0x237)](_0xed15a3,_0x303994)),this[_0x400d35(0x226)](_0x46e94f,_0x228dc9)&&(_0x4970a5=!0x0),_0x4970a5;}[_0x4efcc0(0x209)](_0x4b63fe,_0x85356b){const _0x185ca5=_0x4efcc0,_0x3c01d0=this[_0x185ca5(0x207)][_0x185ca5(0x213)](_0x3b6af6=>_0x3b6af6['id']===_0x85356b);if(-0x1===_0x3c01d0)return!0x1;let _0x5018e2=!0x1;const _0x28d72e=this[_0x185ca5(0x207)][_0x3c01d0];return _0x185ca5(0x1e9)!==_0x28d72e[_0x185ca5(0x20e)][_0x185ca5(0x1fc)][_0x185ca5(0x1da)]&&(_0x4b63fe[_0x185ca5(0x1ee)](_0x28d72e[_0x185ca5(0x20e)]),_0x5018e2=!0x0),this[_0x185ca5(0x207)][_0x185ca5(0x20b)](_0x3c01d0,0x1),this[_0x185ca5(0x226)](_0x4b63fe,_0x3c01d0)&&(_0x5018e2=!0x0),_0x5018e2;}[_0x4efcc0(0x22b)](_0x549ce8,_0x5cb5a5){const _0x526a25=_0x4efcc0,_0x1d0322=_0x5cb5a5[_0x526a25(0x208)](_0x526a25(0x20f)),_0x536802=this[_0x526a25(0x207)][_0x526a25(0x213)](_0x35d31d=>_0x35d31d['id']===_0x1d0322),_0x5314e4=this[_0x526a25(0x207)][_0x536802];let _0x388ea4=!0x1;_0x5314e4[_0x526a25(0x1fd)]=_0x5cb5a5,this[_0x526a25(0x207)][_0x526a25(0x20b)](_0x536802,0x1);const _0x3f4023=I(this[_0x526a25(0x211)][_0x526a25(0x227)],this[_0x526a25(0x207)],_0x5cb5a5);return this[_0x526a25(0x207)][_0x526a25(0x20b)](_0x3f4023,0x0,_0x5314e4),this[_0x526a25(0x226)](_0x549ce8,Math[_0x526a25(0x237)](_0x536802,_0x3f4023))&&(_0x388ea4=!0x0),_0x388ea4;}[_0x4efcc0(0x1e6)](_0x13880c,_0xcd689c){const _0x512d02=_0x4efcc0;if(!this[_0x512d02(0x22a)])return!0x1;const _0x28b124=this[_0x512d02(0x207)][_0xcd689c];let _0xa87d8f;return _0xa87d8f=this[_0x512d02(0x23a)]?this[_0x512d02(0x23a)]({'footnote':_0x28b124,'container':this[_0x512d02(0x22a)],'digits':String(this[_0x512d02(0x207)][_0x512d02(0x230)])[_0x512d02(0x230)],'value':_0xcd689c+0x1}):String(_0xcd689c+0x1),_0x28b124[_0x512d02(0x1fd)][_0x512d02(0x208)](_0x512d02(0x235))!=_0xa87d8f&&(_0x13880c[_0x512d02(0x1f5)](_0x512d02(0x235),_0xa87d8f,_0x28b124[_0x512d02(0x1fd)]),!0x0);}[_0x4efcc0(0x1f1)](_0x555777){const _0x120502=_0x4efcc0;if(!this[_0x120502(0x22a)]||this[_0x120502(0x207)][_0x120502(0x230)]<0x2)return!0x1;if(function(_0x315a7b,_0x3c06c4){const _0x331640=_0x120502;if(_0x315a7b[_0x331640(0x230)]!==_0x3c06c4[_0x331640(0x230)])return!0x1;for(let _0x1f145c=0x0;_0x1f145c<_0x315a7b[_0x331640(0x230)];_0x1f145c++)if(_0x315a7b[_0x1f145c]!==_0x3c06c4[_0x1f145c])return!0x1;return!0x0;}(this[_0x120502(0x207)][_0x120502(0x1e7)](_0x579034=>_0x579034['id']),Array[_0x120502(0x1f4)](this[_0x120502(0x22a)][_0x120502(0x203)]())[_0x120502(0x1e7)](_0x5a23e3=>_0x5a23e3[_0x120502(0x208)](_0x120502(0x20f)))))return!0x1;let _0x2b0377=!0x1;for(let _0x29c76f=0x0;_0x29c76f<this[_0x120502(0x207)][_0x120502(0x230)];_0x29c76f++){const _0x379b66=this[_0x120502(0x207)][_0x29c76f],_0x38e3d7=_0x555777[_0x120502(0x1fb)](_0x379b66[_0x120502(0x20e)]),_0x12b7f4=_0x555777[_0x120502(0x1f8)](this[_0x120502(0x22a)],_0x29c76f);_0x38e3d7[_0x120502(0x1dd)](_0x12b7f4)||(_0x555777[_0x120502(0x22d)](_0x555777[_0x120502(0x22e)](_0x379b66[_0x120502(0x20e)]),_0x12b7f4),_0x2b0377=!0x0);}return _0x2b0377;}[_0x4efcc0(0x1e1)](_0x380441){const _0x5af7b6=_0x4efcc0;if(!this[_0x5af7b6(0x207)][_0x5af7b6(0x230)])return!0x1;const {model:_0x23593b}=this[_0x5af7b6(0x211)];let _0x535a6b=!0x1;for(let _0x41a735=0x0;_0x41a735<this[_0x5af7b6(0x207)][_0x5af7b6(0x230)]-0x1;_0x41a735++){const _0x41ea75=this[_0x5af7b6(0x207)][_0x41a735],_0x351222=this[_0x5af7b6(0x207)][_0x41a735+0x1],_0x2ecea9=_0x23593b[_0x5af7b6(0x1fb)](_0x41ea75[_0x5af7b6(0x1fd)]),_0x40d8ae=_0x23593b[_0x5af7b6(0x1fb)](_0x351222[_0x5af7b6(0x1fd)]);_0x5af7b6(0x236)===_0x2ecea9[_0x5af7b6(0x200)](_0x40d8ae)&&(this[_0x5af7b6(0x22b)](_0x380441,_0x41ea75[_0x5af7b6(0x1fd)]),_0x41a735=-0x1,_0x535a6b=!0x0);}return _0x535a6b;}}function _(_0x1c04f0,_0x79ec4c,_0x1e4912){const _0x480362=_0x4efcc0;if(_0x1e4912[_0x480362(0x21e)])return!0x1;const _0x406c5e=_0x79ec4c?_0x480362(0x1f6):_0x480362(0x1ff);return _0x1c04f0[_0x480362(0x1ea)](_0x1c04f0[_0x480362(0x231)](_0x406c5e),_0x1e4912),!0x0;}function I(_0x442c71,_0x8fd3e3,_0x535f51){const _0x3f4258=_0x4efcc0;if(0x0===_0x8fd3e3[_0x3f4258(0x230)])return 0x0;const _0x16d3bc=_0x442c71[_0x3f4258(0x1fb)](_0x535f51);for(let _0x3bbc39=0x0;_0x3bbc39<_0x8fd3e3[_0x3f4258(0x230)];_0x3bbc39++){const _0x486d2c=_0x8fd3e3[_0x3bbc39],_0x3c65ca=_0x442c71[_0x3f4258(0x1fb)](_0x486d2c[_0x3f4258(0x1fd)]);if(_0x3f4258(0x204)===_0x16d3bc[_0x3f4258(0x200)](_0x3c65ca))return _0x3bbc39;}const _0x15fbae=_0x535f51[_0x3f4258(0x1fc)];let _0x472276=-0x1;for(let _0x4e5a73=_0x8fd3e3[_0x3f4258(0x230)]-0x1;_0x4e5a73>=0x0;_0x4e5a73--)if(_0x8fd3e3[_0x4e5a73][_0x3f4258(0x1fd)][_0x3f4258(0x1fc)]===_0x15fbae){_0x472276=_0x4e5a73;break;}if(-0x1!==_0x472276)return _0x472276+0x1;const _0x2b3ccb=_0x442c71[_0x3f4258(0x214)][_0x3f4258(0x216)](),_0x33eb73=_0x2b3ccb[_0x3f4258(0x233)](_0x15fbae[_0x3f4258(0x1da)]),_0x341d95=_0x2b3ccb[_0x33eb73+0x1];if(_0x341d95){for(let _0x278d31=0x0;_0x278d31<_0x8fd3e3[_0x3f4258(0x230)];_0x278d31++)if(_0x8fd3e3[_0x278d31][_0x3f4258(0x1fd)][_0x3f4258(0x1fc)][_0x3f4258(0x1da)]===_0x341d95)return _0x278d31;}return _0x8fd3e3[_0x3f4258(0x230)];}function _0x1278(_0x4b8159,_0x1f17b6){const _0xbe07e7=_0xbe07();return _0x1278=function(_0x127817,_0x3b1a70){_0x127817=_0x127817-0x1da;let _0x1dc8e4=_0xbe07e7[_0x127817];return _0x1dc8e4;},_0x1278(_0x4b8159,_0x1f17b6);}function _0xbe07(){const _0x151700=['footnoteInlineContent','compareWith','createRangeIn','getFootnotesDefinitionsObjectElement','getChildren','before','149766tOxHYZ','4520rEsimG','_footnotes','getAttribute','_handleRemoveFootnoteReferenceById','_handleFootnotesDefinitionsObjectChanges','splice','add','registerPostFixer','definition','footnoteId','footnotes.multiBlock','editor','_footnoteRefsTracker','findIndex','document','_footnoteDefsTracker','getRootNames','enqueueChange','6iJzZRa','6JXHxgR','_handleInsertedFootnoteReference','5339185xwVthZ','_handleFootnoteReferencesChanges','837mTRqob','childCount','_insertEmptyFootnotesDefinitionsContainer','_ensureFootnotesDefinitionsContainerExists','8543360zLrSgr','4636492bxkCak','footnoteRef','getChanges','unshift','_updateFootnotesCounters','model','footnotesDefinitions','parent','_footnotesDefinitions','_handleMovedFootnoteReference','_handleFootnotesDefinitionsObjectSync','move','createRangeOn','setFootnoteFormatter','length','createElement','FootnotesTracker','indexOf','_footnoteDefsContainerTracker','footnoteCounter','after','min','4947817dzqYul','high','_footnoteFormatter','get','end','differ','isPremiumPlugin','rootName','listenTo','getFootnotes','isEqual','isOfficialPlugin','some','pluginName','_ensureFootnotesReferencesHaveProperOrder','config','singleton','reset','set','_updateFootnoteRefCounter','map','_handleFootnoteDefinitionsChanges','$graveyard','insert','has','init','find','remove','low','push','_sortFootnoteDefinitions','append','change:data','from','setAttribute','paragraph','getFootnotesFormatter','createPositionAt','footnoteDefinition','getFootnote','createPositionBefore','root','reference','1035038OxryFK'];_0xbe07=function(){return _0x151700;};return _0xbe07();}
|
|
23
|
+
function _0x65b0(){const _0x44ddb8=['4490bFGeKV','init','unshift','_updateFootnotesCounters','has','reference','definition','registerPostFixer','createPositionAt','singleton','getFootnotesFormatter','createElement','1827636JRtpsn','min','_footnoteRefsTracker','parent','childCount','append','push','isPremiumPlugin','findIndex','move','_handleFootnotesDefinitionsObjectChanges','_handleMovedFootnoteReference','2555780SOxAGt','config','find','editor','getFootnotes','_handleInsertedFootnoteReference','footnotes.multiBlock','footnoteInlineContent','remove','_handleFootnotesDefinitionsObjectSync','getFootnote','footnoteId','paragraph','_updateFootnoteRefCounter','330qbIjtm','get','getChanges','FootnotesTracker','_handleFootnoteDefinitionsChanges','_footnoteDefsContainerTracker','indexOf','_insertEmptyFootnotesDefinitionsContainer','4777816jVdwqU','_ensureFootnotesReferencesHaveProperOrder','after','end','createRangeOn','from','setFootnoteFormatter','getFootnotesDefinitionsObjectElement','_footnoteDefsTracker','change:data','footnotesDefinitions','_footnoteFormatter','_footnotes','footnoteRef','document','rootName','model','getAttribute','map','before','3228cKdlaM','set','_handleRemoveFootnoteReferenceById','setAttribute','reset','isOfficialPlugin','_handleFootnoteReferencesChanges','createPositionBefore','length','_ensureFootnotesDefinitionsContainerExists','footnoteDefinition','low','enqueueChange','differ','5714401qrkLDp','4yWLAZb','_footnotesDefinitions','some','splice','high','9651015dePfGh','root','footnoteCounter','insert','listenTo','getRootNames','pluginName','createRangeIn','compareWith','_sortFootnoteDefinitions','add','getChildren','isEqual','$graveyard'];_0x65b0=function(){return _0x44ddb8;};return _0x65b0();}const _0x31ad46=_0x236b;(function(_0x264dd0,_0x23a354){const _0x868a57=_0x236b,_0x3aa754=_0x264dd0();while(!![]){try{const _0x587951=-parseInt(_0x868a57(0x10a))/0x1*(-parseInt(_0x868a57(0x11d))/0x2)+-parseInt(_0x868a57(0x129))/0x3+parseInt(_0x868a57(0x135))/0x4+parseInt(_0x868a57(0xdf))/0x5*(parseInt(_0x868a57(0xfb))/0x6)+parseInt(_0x868a57(0x109))/0x7+parseInt(_0x868a57(0xe7))/0x8+-parseInt(_0x868a57(0x10f))/0x9;if(_0x587951===_0x23a354)break;else _0x3aa754['push'](_0x3aa754['shift']());}catch(_0x5c7d2b){_0x3aa754['push'](_0x3aa754['shift']());}}}(_0x65b0,0x656e0));import{Plugin as _0x2bd76e}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x4f2bd5}from'./modelelementtracker.js';export class FootnotesTracker extends _0x2bd76e{[_0x31ad46(0xf3)]=[];[_0x31ad46(0x10b)]=null;[_0x31ad46(0xf2)]=null;[_0x31ad46(0xe4)];[_0x31ad46(0x12b)];[_0x31ad46(0xef)];static get[_0x31ad46(0x115)](){const _0x31d3d3=_0x31ad46;return _0x31d3d3(0xe2);}static get[_0x31ad46(0x100)](){return!0x0;}static get[_0x31ad46(0x130)](){return!0x0;}constructor(_0x26f069){const _0x3140ad=_0x31ad46;super(_0x26f069),this[_0x3140ad(0xe4)]=new _0x4f2bd5(this[_0x3140ad(0x138)][_0x3140ad(0xf7)],{'elementName':_0x3140ad(0xf1),'getElementKey':()=>_0x3140ad(0x126)}),this[_0x3140ad(0x12b)]=new _0x4f2bd5(this[_0x3140ad(0x138)][_0x3140ad(0xf7)],{'elementName':_0x3140ad(0xf4),'getElementKey':_0x18149a=>_0x18149a[_0x3140ad(0xf8)](_0x3140ad(0x140))}),this[_0x3140ad(0xef)]=new _0x4f2bd5(this[_0x3140ad(0x138)][_0x3140ad(0xf7)],{'elementName':_0x3140ad(0x105),'getElementKey':_0x14a349=>_0x14a349[_0x3140ad(0xf8)](_0x3140ad(0x140))});}[_0x31ad46(0x11e)](){const _0x14c130=_0x31ad46,{editor:_0x37b966}=this,{model:_0xc2dd30,data:_0x5f5aed}=_0x37b966;_0xc2dd30[_0x14c130(0xf5)][_0x14c130(0x124)](_0x1040f5=>{const _0x3965ea=_0x14c130,_0x386bed=_0xc2dd30[_0x3965ea(0xf5)][_0x3965ea(0x108)][_0x3965ea(0xe1)]();let _0x4122bd=!0x1;return this[_0x3965ea(0x133)](_0x1040f5,_0x386bed)&&(_0x4122bd=!0x0),this[_0x3965ea(0xe3)](_0x1040f5,_0x386bed)&&(_0x4122bd=!0x0),this[_0x3965ea(0x101)](_0x1040f5,_0x386bed)&&(_0x4122bd=!0x0),this[_0x3965ea(0xe8)](_0x1040f5)&&(_0x4122bd=!0x0),this[_0x3965ea(0x13e)](_0x1040f5)&&(_0x4122bd=!0x0),this[_0x3965ea(0x118)](_0x1040f5)&&(_0x4122bd=!0x0),_0x4122bd;}),this[_0x14c130(0x113)](_0xc2dd30[_0x14c130(0xf5)],_0x14c130(0xf0),()=>{const _0x1e89bc=_0x14c130;_0xc2dd30[_0x1e89bc(0x107)]({'isUndoable':!0x1},_0x91aa73=>{const _0x2f5ffd=_0x1e89bc;this[_0x2f5ffd(0x104)](_0x91aa73);});},{'priority':_0x14c130(0x106)}),this[_0x14c130(0x113)](_0x5f5aed,_0x14c130(0xfc),()=>{const _0x5ad769=_0x14c130;this[_0x5ad769(0xf3)]=[],this[_0x5ad769(0xe4)][_0x5ad769(0xff)](),this[_0x5ad769(0x12b)][_0x5ad769(0xff)](),this[_0x5ad769(0xef)][_0x5ad769(0xff)]();},{'priority':_0x14c130(0x10e)});}[_0x31ad46(0xee)](){const _0x3a5327=_0x31ad46;return this[_0x3a5327(0x10b)];}[_0x31ad46(0x13f)](_0x313387){const _0x40c50f=_0x31ad46;return this[_0x40c50f(0xf3)][_0x40c50f(0x137)](_0x346ff1=>_0x346ff1['id']===_0x313387)||null;}[_0x31ad46(0x139)](){const _0x55f04f=_0x31ad46;return Array[_0x55f04f(0xec)](this[_0x55f04f(0xf3)]);}[_0x31ad46(0x127)](){const _0x471f1c=_0x31ad46;return this[_0x471f1c(0xf2)];}[_0x31ad46(0xed)](_0x3534b4){const _0x2062ba=_0x31ad46;this[_0x2062ba(0xf2)]=_0x3534b4;}[_0x31ad46(0x120)](_0x378736,_0x207589=0x0){const _0x55ca98=_0x31ad46;let _0x3cf71f=!0x1;for(let _0x3fc3c2=_0x207589;_0x3fc3c2<this[_0x55ca98(0xf3)][_0x55ca98(0x103)];_0x3fc3c2++)this[_0x55ca98(0xde)](_0x378736,_0x3fc3c2)&&(_0x3cf71f=!0x0);return _0x3cf71f;}[_0x31ad46(0xe6)](_0x49bb5b,_0x2d0f5c){const _0x20e436=_0x31ad46,_0x7ada54=_0x49bb5b[_0x20e436(0x128)](_0x20e436(0xf1),{});return _0x49bb5b[_0x20e436(0x12e)](_0x7ada54,_0x2d0f5c),this[_0x20e436(0x10b)]=_0x7ada54,_0x7ada54;}[_0x31ad46(0x104)](_0x4da3d8){const _0x34e17d=_0x31ad46;if(!this[_0x34e17d(0xf3)][_0x34e17d(0x103)]||this[_0x34e17d(0x10b)])return;const _0x2e4ede=this[_0x34e17d(0xf3)][0x0][_0x34e17d(0x122)][_0x34e17d(0x110)],_0x3eab94=this[_0x34e17d(0xe6)](_0x4da3d8,_0x2e4ede);for(const _0x1604f1 of this[_0x34e17d(0xf3)])_0x1604f1[_0x34e17d(0x123)][_0x34e17d(0x12c)]||_0x4da3d8[_0x34e17d(0x112)](_0x1604f1[_0x34e17d(0x123)],_0x3eab94,_0x34e17d(0xea));this[_0x34e17d(0x120)](_0x4da3d8);}[_0x31ad46(0x133)](_0x11863c,_0x212a98){const _0x50f95f=_0x31ad46;let _0x37beec=!0x1;const {inserted:_0x23e548,removed:_0x41ded2,moved:_0x11c77c}=this[_0x50f95f(0xe4)][_0x50f95f(0xe1)](_0x212a98);if(_0x11c77c[_0x50f95f(0x103)]&&(this[_0x50f95f(0x10b)]=_0x11c77c[0x0]),_0x23e548[_0x50f95f(0x103)]){if(_0x23e548[_0x50f95f(0x103)]>0x1||this[_0x50f95f(0x10b)]&&_0x23e548[_0x50f95f(0x10c)](_0x271f0=>_0x271f0!==this[_0x50f95f(0x10b)])){const _0x4a1186=_0x11863c[_0x50f95f(0x128)](_0x50f95f(0xf1),{}),_0x10c464=[];this[_0x50f95f(0x10b)]&&_0x10c464[_0x50f95f(0x12f)](this[_0x50f95f(0x10b)]),_0x10c464[_0x50f95f(0x12f)](..._0x23e548),_0x11863c[_0x50f95f(0x112)](_0x4a1186,_0x10c464[0x0],_0x50f95f(0xfa));for(const _0x24747d of _0x10c464)_0x11863c[_0x50f95f(0x132)](_0x11863c[_0x50f95f(0x116)](_0x24747d),_0x11863c[_0x50f95f(0x125)](_0x4a1186,_0x50f95f(0xea))),_0x11863c[_0x50f95f(0x13d)](_0x24747d);this[_0x50f95f(0x10b)]=_0x4a1186,this[_0x50f95f(0x120)](_0x11863c),_0x37beec=!0x0;}else this[_0x50f95f(0x10b)]=_0x23e548[0x0];}if(_0x41ded2[_0x50f95f(0x103)]&&_0x50f95f(0x11c)===this[_0x50f95f(0x10b)]?.[_0x50f95f(0x110)][_0x50f95f(0xf6)]){for(const _0xeceb6b of this[_0x50f95f(0xf3)])_0x11863c[_0x50f95f(0x13d)](_0xeceb6b[_0x50f95f(0x122)]),_0x37beec=!0x0;this[_0x50f95f(0xf3)]=[],this[_0x50f95f(0x10b)]=null;}return _0x37beec;}[_0x31ad46(0xe3)](_0x35b3a3,_0x59a728){const _0x469217=_0x31ad46;let _0x39be87=!0x1;const _0x24b646=this[_0x469217(0x138)][_0x469217(0x136)][_0x469217(0xe0)](_0x469217(0x13b)),{inserted:_0x26d206,moved:_0xec6fd5}=this[_0x469217(0xef)][_0x469217(0xe1)](_0x59a728);for(const _0x275241 of[..._0xec6fd5,..._0x26d206]){const _0x503a55=_0x275241[_0x469217(0xf8)](_0x469217(0x140)),_0x6bfa3a=this[_0x469217(0x13f)](_0x503a55);_0x6bfa3a&&(_0x6bfa3a[_0x469217(0x123)]=_0x275241),_(_0x35b3a3,_0x24b646,_0x275241)&&(_0x39be87=!0x0);}return _0x39be87;}[_0x31ad46(0x101)](_0x166f57,_0x72e9c6){const _0x4a6d3e=_0x31ad46;let _0x54b5a1=!0x1;const {removed:_0x12b40d,inserted:_0x371002,moved:_0x9ea3ac}=this[_0x4a6d3e(0x12b)][_0x4a6d3e(0xe1)](_0x72e9c6);for(const _0x2675f3 of _0x12b40d)this[_0x4a6d3e(0xfd)](_0x166f57,_0x2675f3)&&(_0x54b5a1=!0x0);for(const _0x76270d of _0x371002)this[_0x4a6d3e(0x13a)](_0x166f57,_0x76270d)&&(_0x54b5a1=!0x0);for(const _0x52fd95 of _0x9ea3ac)this[_0x4a6d3e(0x134)](_0x166f57,_0x52fd95)&&(_0x54b5a1=!0x0);return _0x54b5a1;}[_0x31ad46(0x13e)](_0x2f4506){const _0x3396d2=_0x31ad46;if(!this[_0x3396d2(0x10b)])return!0x1;let _0x51e48b=!0x1;if(this[_0x3396d2(0x10b)][_0x3396d2(0x12d)]!==this[_0x3396d2(0xf3)][_0x3396d2(0x103)]){const _0x40eba4=[];for(const _0x403430 of this[_0x3396d2(0x10b)][_0x3396d2(0x11a)]()){const _0xb1c1e7=_0x403430[_0x3396d2(0xf8)](_0x3396d2(0x140));this[_0x3396d2(0x13f)](_0xb1c1e7)||(_0x40eba4[_0x3396d2(0x11f)](_0x403430),_0x51e48b=!0x0);}for(const _0x84d5df of _0x40eba4)_0x2f4506[_0x3396d2(0x13d)](_0x84d5df);}const _0x16fc35=new Set(),_0xfeefe=[];for(const _0x18fb4d of this[_0x3396d2(0x10b)][_0x3396d2(0x11a)]()){const _0x1fbe2c=_0x18fb4d[_0x3396d2(0xf8)](_0x3396d2(0x140));_0x16fc35[_0x3396d2(0x121)](_0x1fbe2c)?(_0xfeefe[_0x3396d2(0x11f)](_0x18fb4d),_0x51e48b=!0x0):_0x16fc35[_0x3396d2(0x119)](_0x1fbe2c);}for(const _0x5ad1d0 of _0xfeefe)_0x2f4506[_0x3396d2(0x13d)](_0x5ad1d0);return this[_0x3396d2(0x10b)][_0x3396d2(0x12d)]||(_0x2f4506[_0x3396d2(0x13d)](this[_0x3396d2(0x10b)]),this[_0x3396d2(0x10b)]=null,_0x51e48b=!0x0),_0x51e48b;}[_0x31ad46(0x13a)](_0x58821f,_0x5c46a2){const _0x416731=_0x31ad46;if(this[_0x416731(0xf3)][_0x416731(0x137)](_0x2c75e2=>_0x2c75e2[_0x416731(0x122)]===_0x5c46a2))return!0x1;let _0x57e41a=!0x1;const _0x13bd87=_0x5c46a2[_0x416731(0xf8)](_0x416731(0x140)),_0x8e7eea=this[_0x416731(0xf3)][_0x416731(0x131)](_0x14d351=>_0x14d351['id']===_0x13bd87);-0x1!==_0x8e7eea&&(_0x58821f[_0x416731(0x13d)](this[_0x416731(0xf3)][_0x8e7eea][_0x416731(0x122)]),this[_0x416731(0xf3)][_0x416731(0x10d)](_0x8e7eea,0x1),_0x57e41a=!0x0);let _0x1d6311=this[_0x416731(0x10b)]?function(_0x1c978e,_0x14300d){const _0xfea7c1=_0x416731;for(const _0x5537ff of _0x1c978e[_0xfea7c1(0x11a)]())if(_0x5537ff[_0xfea7c1(0xf8)](_0xfea7c1(0x140))===_0x14300d)return _0x5537ff;return null;}(this[_0x416731(0x10b)],_0x13bd87):null;_0x1d6311||(_0x1d6311=_0x58821f[_0x416731(0x128)](_0x416731(0x105),{'footnoteId':_0x13bd87}),this[_0x416731(0x10b)]&&(_0x58821f[_0x416731(0x112)](_0x1d6311,this[_0x416731(0x10b)],_0x416731(0xea)),_0x57e41a=!0x0));const _0x796f8f={'id':_0x13bd87,'reference':_0x5c46a2,'definition':_0x1d6311},_0x437e28=I(this[_0x416731(0x138)][_0x416731(0xf7)],this[_0x416731(0xf3)],_0x5c46a2);this[_0x416731(0xf3)][_0x416731(0x10d)](_0x437e28,0x0,_0x796f8f);let _0x10d252=_0x437e28;return-0x1!==_0x8e7eea&&(_0x10d252=Math[_0x416731(0x12a)](_0x437e28,_0x8e7eea)),this[_0x416731(0x120)](_0x58821f,_0x10d252)&&(_0x57e41a=!0x0),_0x57e41a;}[_0x31ad46(0xfd)](_0x2dc3f2,_0x2fef74){const _0x3620f8=_0x31ad46,_0x1a76c6=this[_0x3620f8(0xf3)][_0x3620f8(0x131)](_0x2f22b7=>_0x2f22b7['id']===_0x2fef74);if(-0x1===_0x1a76c6)return!0x1;let _0x181665=!0x1;const _0x2eac43=this[_0x3620f8(0xf3)][_0x1a76c6];return _0x3620f8(0x11c)!==_0x2eac43[_0x3620f8(0x123)][_0x3620f8(0x110)][_0x3620f8(0xf6)]&&(_0x2dc3f2[_0x3620f8(0x13d)](_0x2eac43[_0x3620f8(0x123)]),_0x181665=!0x0),this[_0x3620f8(0xf3)][_0x3620f8(0x10d)](_0x1a76c6,0x1),this[_0x3620f8(0x120)](_0x2dc3f2,_0x1a76c6)&&(_0x181665=!0x0),_0x181665;}[_0x31ad46(0x134)](_0x37c763,_0x556af8){const _0x4d5991=_0x31ad46,_0x32955a=_0x556af8[_0x4d5991(0xf8)](_0x4d5991(0x140)),_0x414279=this[_0x4d5991(0xf3)][_0x4d5991(0x131)](_0x13dcd3=>_0x13dcd3['id']===_0x32955a),_0x583d39=this[_0x4d5991(0xf3)][_0x414279];let _0x243429=!0x1;_0x583d39[_0x4d5991(0x122)]=_0x556af8,this[_0x4d5991(0xf3)][_0x4d5991(0x10d)](_0x414279,0x1);const _0x4348de=I(this[_0x4d5991(0x138)][_0x4d5991(0xf7)],this[_0x4d5991(0xf3)],_0x556af8);return this[_0x4d5991(0xf3)][_0x4d5991(0x10d)](_0x4348de,0x0,_0x583d39),this[_0x4d5991(0x120)](_0x37c763,Math[_0x4d5991(0x12a)](_0x414279,_0x4348de))&&(_0x243429=!0x0),_0x243429;}[_0x31ad46(0xde)](_0x35d7db,_0x404768){const _0x559867=_0x31ad46;if(!this[_0x559867(0x10b)])return!0x1;const _0x477c28=this[_0x559867(0xf3)][_0x404768];let _0x5b8c05;return _0x5b8c05=this[_0x559867(0xf2)]?this[_0x559867(0xf2)]({'footnote':_0x477c28,'container':this[_0x559867(0x10b)],'digits':String(this[_0x559867(0xf3)][_0x559867(0x103)])[_0x559867(0x103)],'value':_0x404768+0x1}):String(_0x404768+0x1),_0x477c28[_0x559867(0x122)][_0x559867(0xf8)](_0x559867(0x111))!=_0x5b8c05&&(_0x35d7db[_0x559867(0xfe)](_0x559867(0x111),_0x5b8c05,_0x477c28[_0x559867(0x122)]),!0x0);}[_0x31ad46(0x118)](_0x25b095){const _0x192820=_0x31ad46;if(!this[_0x192820(0x10b)]||this[_0x192820(0xf3)][_0x192820(0x103)]<0x2)return!0x1;if(function(_0x469b5,_0xbc9d86){const _0x31d097=_0x192820;if(_0x469b5[_0x31d097(0x103)]!==_0xbc9d86[_0x31d097(0x103)])return!0x1;for(let _0x34eed7=0x0;_0x34eed7<_0x469b5[_0x31d097(0x103)];_0x34eed7++)if(_0x469b5[_0x34eed7]!==_0xbc9d86[_0x34eed7])return!0x1;return!0x0;}(this[_0x192820(0xf3)][_0x192820(0xf9)](_0x42cc3c=>_0x42cc3c['id']),Array[_0x192820(0xec)](this[_0x192820(0x10b)][_0x192820(0x11a)]())[_0x192820(0xf9)](_0x3fd95b=>_0x3fd95b[_0x192820(0xf8)](_0x192820(0x140)))))return!0x1;let _0x44cf89=!0x1;for(let _0x4e90d1=0x0;_0x4e90d1<this[_0x192820(0xf3)][_0x192820(0x103)];_0x4e90d1++){const _0x1c5c84=this[_0x192820(0xf3)][_0x4e90d1],_0x546b51=_0x25b095[_0x192820(0x102)](_0x1c5c84[_0x192820(0x123)]),_0x98081=_0x25b095[_0x192820(0x125)](this[_0x192820(0x10b)],_0x4e90d1);_0x546b51[_0x192820(0x11b)](_0x98081)||(_0x25b095[_0x192820(0x132)](_0x25b095[_0x192820(0xeb)](_0x1c5c84[_0x192820(0x123)]),_0x98081),_0x44cf89=!0x0);}return _0x44cf89;}[_0x31ad46(0xe8)](_0x2113b4){const _0x18a8a5=_0x31ad46;if(!this[_0x18a8a5(0xf3)][_0x18a8a5(0x103)])return!0x1;const {model:_0x36dc43}=this[_0x18a8a5(0x138)];let _0x38fd05=!0x1;for(let _0x39f91a=0x0;_0x39f91a<this[_0x18a8a5(0xf3)][_0x18a8a5(0x103)]-0x1;_0x39f91a++){const _0x1a7523=this[_0x18a8a5(0xf3)][_0x39f91a],_0x2dfa3d=this[_0x18a8a5(0xf3)][_0x39f91a+0x1],_0x13b0d3=_0x36dc43[_0x18a8a5(0x102)](_0x1a7523[_0x18a8a5(0x122)]),_0x151a0f=_0x36dc43[_0x18a8a5(0x102)](_0x2dfa3d[_0x18a8a5(0x122)]);_0x18a8a5(0xe9)===_0x13b0d3[_0x18a8a5(0x117)](_0x151a0f)&&(this[_0x18a8a5(0x134)](_0x2113b4,_0x1a7523[_0x18a8a5(0x122)]),_0x39f91a=-0x1,_0x38fd05=!0x0);}return _0x38fd05;}}function _(_0x25cf10,_0x255af3,_0x2e60a7){const _0x51aab0=_0x31ad46;if(_0x2e60a7[_0x51aab0(0x12d)])return!0x1;const _0x56186e=_0x255af3?_0x51aab0(0xdd):_0x51aab0(0x13c);return _0x25cf10[_0x51aab0(0x112)](_0x25cf10[_0x51aab0(0x128)](_0x56186e),_0x2e60a7),!0x0;}function _0x236b(_0x31c29c,_0x18005e){const _0x236b40=_0x65b0();return _0x236b=function(_0x1b623,_0x54e977){_0x1b623=_0x1b623-0xdd;let _0x301b2d=_0x236b40[_0x1b623];return _0x301b2d;},_0x236b(_0x31c29c,_0x18005e);}function I(_0x159d9d,_0x26d0f3,_0x355c89){const _0x232ce6=_0x31ad46;if(0x0===_0x26d0f3[_0x232ce6(0x103)])return 0x0;const _0x183ad8=_0x159d9d[_0x232ce6(0x102)](_0x355c89);for(let _0x4e5530=0x0;_0x4e5530<_0x26d0f3[_0x232ce6(0x103)];_0x4e5530++){const _0x4dfec7=_0x26d0f3[_0x4e5530],_0x2d29a5=_0x159d9d[_0x232ce6(0x102)](_0x4dfec7[_0x232ce6(0x122)]);if(_0x232ce6(0xfa)===_0x183ad8[_0x232ce6(0x117)](_0x2d29a5))return _0x4e5530;}const _0x5367f1=_0x355c89[_0x232ce6(0x110)];let _0x5a88e7=-0x1;for(let _0x8a20f8=_0x26d0f3[_0x232ce6(0x103)]-0x1;_0x8a20f8>=0x0;_0x8a20f8--)if(_0x26d0f3[_0x8a20f8][_0x232ce6(0x122)][_0x232ce6(0x110)]===_0x5367f1){_0x5a88e7=_0x8a20f8;break;}if(-0x1!==_0x5a88e7)return _0x5a88e7+0x1;const _0x1c9b3c=_0x159d9d[_0x232ce6(0xf5)][_0x232ce6(0x114)](),_0x9f9ef=_0x1c9b3c[_0x232ce6(0xe5)](_0x5367f1[_0x232ce6(0xf6)]),_0x7a3eee=_0x1c9b3c[_0x9f9ef+0x1];if(_0x7a3eee){for(let _0x318409=0x0;_0x318409<_0x26d0f3[_0x232ce6(0x103)];_0x318409++)if(_0x26d0f3[_0x318409][_0x232ce6(0x122)][_0x232ce6(0x110)][_0x232ce6(0xf6)]===_0x7a3eee)return _0x318409;}return _0x26d0f3[_0x232ce6(0x103)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x9d45d2,MenuBarMenuListItemButtonView as _0x3997aa}from'ckeditor5/src/ui.js';import{Plugin as _0x1a240d}from'ckeditor5/src/core.js';import{IconFootnote as _0x1b9591}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x1a240d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4945f4}=this,{componentFactory:_0x5163d8}=_0x4945f4['ui'];_0x5163d8['add']('insertFootnote',x(_0x4945f4,_0x9d45d2)),_0x5163d8['add']('menuBar:insertFootnote',x(_0x4945f4,_0x3997aa)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x660107=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5aa77e;for(const _0x3b1a02 in _0x660107){const _0x186f50=_0x3b1a02,_0x15322f=_0x660107[_0x186f50];if('footnotesLicenseKeyValid'==_0x15322f||'footnotesLicenseKeyInvalid'==_0x15322f||'footnotesLicenseKeyExpired'==_0x15322f||'footnotesLicenseKeyDomainLimit'==_0x15322f||'footnotesLicenseKeyNotAllowed'==_0x15322f||'footnotesLicenseKeyEvaluationLimit'==_0x15322f||'footnotesLicenseKeyTrialLimit'==_0x15322f||'footnotesLicenseKeyUsageLimit'==_0x15322f){delete _0x660107[_0x186f50],_0x5aa77e=_0x15322f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5aa77e&&_0x660107['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5aa77e&&_0x660107['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5aa77e&&_0x660107['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5aa77e&&_0x660107['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5aa77e&&_0x660107['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5aa77e&&_0x660107['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5aa77e&&_0x660107['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x22d219,_0x515dc6){const _0x489a83=_0x22d219['commands']['get']('insertFootnote');return _0x3131a6=>{const {t:t}=_0x3131a6,_0x3e3c00=new _0x515dc6(_0x3131a6),_0x36cf0b=_0x3e3c00 instanceof _0x3997aa;return _0x3e3c00['bind']('isEnabled')['to'](_0x489a83,'isEnabled'),_0x3e3c00['set']({'label':t(_0x36cf0b?'Footnote':'Insert\x20footnote'),'icon':_0x1b9591,'tooltip':!0x0}),_0x3e3c00['on']('execute',()=>{_0x489a83['execute'](),_0x22d219['editing']['view']['focus']();}),_0x3e3c00;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x495d27,_0x1f0df9){var _0x58d4c3=_0x5efd,_0x5bd846=_0x495d27();while(!![]){try{var _0x1e8b53=-parseInt(_0x58d4c3(0x179))/0x1+parseInt(_0x58d4c3(0x176))/0x2+parseInt(_0x58d4c3(0x173))/0x3+parseInt(_0x58d4c3(0x177))/0x4*(parseInt(_0x58d4c3(0x175))/0x5)+parseInt(_0x58d4c3(0x178))/0x6+-parseInt(_0x58d4c3(0x171))/0x7*(-parseInt(_0x58d4c3(0x174))/0x8)+-parseInt(_0x58d4c3(0x172))/0x9;if(_0x1e8b53===_0x1f0df9)break;else _0x5bd846['push'](_0x5bd846['shift']());}catch(_0x104ac2){_0x5bd846['push'](_0x5bd846['shift']());}}}(_0x1884,0xd2106));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';function _0x5efd(_0x56a0fb,_0x4f3326){var _0x18841b=_0x1884();return _0x5efd=function(_0x5efd08,_0x21c39e){_0x5efd08=_0x5efd08-0x171;var _0x5b5226=_0x18841b[_0x5efd08];return _0x5b5226;},_0x5efd(_0x56a0fb,_0x4f3326);}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';export{FootnotesProperties}from'./footnotesproperties.js';function _0x1884(){var _0x37e399=['7672608pfrhqI','316695xhVfmb','72yLaPiO','10lxrSCh','565668rAInyL','94252xHGOef','1568676jIKbXj','150752FJSFLk','907445avCvXX'];_0x1884=function(){return _0x37e399;};return _0x1884();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x48ef(_0x2ee2de,_0x499380){const _0x11e2bc=_0x11e2();return _0x48ef=function(_0x48ef4e,_0x3fa0e0){_0x48ef4e=_0x48ef4e-0x1ca;let _0x493b2c=_0x11e2bc[_0x48ef4e];return _0x493b2c;},_0x48ef(_0x2ee2de,_0x499380);}function _0x11e2(){const _0x4f5c62=['377604QmPmrZ','delete','slice','20504QwKxtY','flat','createRangeOn','1agWfiB','from','getChanges','$graveyard','root','type','set','1783226ypHbeb','element','push','getElementKey','_getElementKey','2180TnLUfe','insert','284WxKfgg','clear','_model','length','position','getItems','_elementName','get','$text','values','216072QoJNPu','_trackedElements','3458gVAGec','remove','add','elementName','nodeAfter','7998JQSAVg','162weGqrZ','1300gEEZcL','reset','rootName','name','attributes','has','9570564ZoTWOG'];_0x11e2=function(){return _0x4f5c62;};return _0x11e2();}const _0x3710b2=_0x48ef;(function(_0xc1ca8d,_0x3aca69){const _0xe188d9=_0x48ef,_0x5cb237=_0xc1ca8d();while(!![]){try{const _0x52712d=parseInt(_0xe188d9(0x1d4))/0x1*(parseInt(_0xe188d9(0x1db))/0x2)+parseInt(_0xe188d9(0x1ce))/0x3+parseInt(_0xe188d9(0x1e2))/0x4*(parseInt(_0xe188d9(0x1e0))/0x5)+parseInt(_0xe188d9(0x1f3))/0x6*(-parseInt(_0xe188d9(0x1ee))/0x7)+parseInt(_0xe188d9(0x1ec))/0x8*(-parseInt(_0xe188d9(0x1f4))/0x9)+-parseInt(_0xe188d9(0x1f5))/0xa*(parseInt(_0xe188d9(0x1d1))/0xb)+parseInt(_0xe188d9(0x1cd))/0xc;if(_0x52712d===_0x3aca69)break;else _0x5cb237['push'](_0x5cb237['shift']());}catch(_0x4da076){_0x5cb237['push'](_0x5cb237['shift']());}}}(_0x11e2,0x700f8));export class ModelElementTracker{[_0x3710b2(0x1e4)];[_0x3710b2(0x1e8)];[_0x3710b2(0x1df)];[_0x3710b2(0x1ed)]=new Map();constructor(_0x156b9e,_0x482622){const _0x593a69=_0x3710b2;this[_0x593a69(0x1e4)]=_0x156b9e,this[_0x593a69(0x1e8)]=_0x482622[_0x593a69(0x1f1)],this[_0x593a69(0x1df)]=_0x482622[_0x593a69(0x1de)];}[_0x3710b2(0x1f6)](){const _0x19701e=_0x3710b2;this[_0x19701e(0x1ed)][_0x19701e(0x1e3)]();}[_0x3710b2(0x1d6)](_0x4a4e82){const _0x453492=_0x3710b2,_0x38c7fd=new Set(),_0x461c99=new Map();for(const _0x525184 of _0x4a4e82){if(_0x453492(0x1e1)===_0x525184[_0x453492(0x1d9)]&&_0x453492(0x1ea)!==_0x525184[_0x453492(0x1ca)]&&_0x525184[_0x453492(0x1e6)][_0x453492(0x1f2)]){const _0x17e744=this[_0x453492(0x1e4)][_0x453492(0x1d3)](_0x525184[_0x453492(0x1e6)][_0x453492(0x1f2)]);for(const _0x340370 of _0x17e744[_0x453492(0x1e7)]()){if(!_0x340370['is'](_0x453492(0x1dc),this[_0x453492(0x1e8)]))continue;const _0x3d5934=this[_0x453492(0x1df)](_0x340370);_0x461c99[_0x453492(0x1cc)](_0x3d5934)||_0x461c99[_0x453492(0x1da)](_0x3d5934,[]),_0x461c99[_0x453492(0x1e9)](_0x3d5934)[_0x453492(0x1dd)](_0x340370);}}if(_0x453492(0x1ef)===_0x525184[_0x453492(0x1d9)]&&_0x525184[_0x453492(0x1ca)]===this[_0x453492(0x1e8)]){const _0x3f15f3=this[_0x453492(0x1df)]({'getAttribute':_0x4bd180=>_0x525184[_0x453492(0x1cb)][_0x453492(0x1e9)](_0x4bd180)});_0x38c7fd[_0x453492(0x1f0)](_0x3f15f3);}}for(const [_0x656ff6,_0x4a1b9e]of this[_0x453492(0x1ed)])_0x453492(0x1d7)===_0x4a1b9e[_0x453492(0x1d8)][_0x453492(0x1f7)]&&_0x38c7fd[_0x453492(0x1f0)](_0x656ff6);for(const _0x113d9e of _0x38c7fd)this[_0x453492(0x1ed)][_0x453492(0x1cf)](_0x113d9e);for(const [_0x27e117,_0x2e4f27]of _0x461c99)this[_0x453492(0x1ed)][_0x453492(0x1da)](_0x27e117,_0x2e4f27[_0x2e4f27[_0x453492(0x1e5)]-0x1]);const _0x15c4c0=new Set();for(const [_0x55d88e,_0x524c21]of _0x461c99)_0x38c7fd[_0x453492(0x1cc)](_0x55d88e)&&(_0x15c4c0[_0x453492(0x1f0)](_0x524c21[0x0]),_0x524c21[_0x453492(0x1e5)]>0x1?_0x461c99[_0x453492(0x1da)](_0x55d88e,_0x524c21[_0x453492(0x1d0)](0x1)):_0x461c99[_0x453492(0x1cf)](_0x55d88e),_0x38c7fd[_0x453492(0x1cf)](_0x55d88e));return{'removed':Array[_0x453492(0x1d5)](_0x38c7fd),'inserted':Array[_0x453492(0x1d5)](_0x461c99[_0x453492(0x1eb)]())[_0x453492(0x1d2)](),'moved':Array[_0x453492(0x1d5)](_0x15c4c0)};}}
|