@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251216.0 → 0.0.0-nightly-next-20251216.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 _0x1f344f}from'ckeditor5/src/core.js';import{isWidget as _0x5c9129,toWidget as _0x5aa439,toWidgetEditable as _0x3e2a90}from'ckeditor5/src/widget.js';import{uid as _0x54ee1f}from'ckeditor5/src/utils.js';import{PointerObserver as _0x6e41c8,ClickObserver as _0x3a1dd9}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x439586}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x47a51d}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1f344f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x439586];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x14ba04}=this;_0x14ba04['config']['define']('footnotes.multiBlock',!0x0),_0x14ba04['commands']['add']('insertFootnote',new _0x47a51d(_0x14ba04)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d61a7){const _0x311c84=_0x227f57([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]),_0x496d64=0x47a28506,_0x3c558d=0x47a5f916^_0x496d64,_0x3cbae0=window[_0x227f57([0x44,0x61,0x74,0x65])][_0x227f57([0x6e,0x6f,0x77])](),_0x267605=_0x4d61a7[_0x227f57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ac830=new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d51c1=>{_0x267605[_0x227f57([0x6f,0x6e,0x63,0x65])](_0x227f57([0x72,0x65,0x61,0x64,0x79]),_0x2d51c1);}),_0x4f4125={[_0x227f57([0x6b,0x74,0x79])]:_0x227f57([0x45,0x43]),[_0x227f57([0x75,0x73,0x65])]:_0x227f57([0x73,0x69,0x67]),[_0x227f57([0x63,0x72,0x76])]:_0x227f57([0x50,0x2d,0x32,0x35,0x36]),[_0x227f57([0x78])]:_0x227f57([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]),[_0x227f57([0x79])]:_0x227f57([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]),[_0x227f57([0x61,0x6c,0x67])]:_0x227f57([0x45,0x53,0x32,0x35,0x36])},_0x3813c6=_0x267605[_0x227f57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x227f57([0x67,0x65,0x74])](_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3eab23(){let _0x45ab3f,_0x1f51aa=null,_0x5ce4b7=null;try{if(_0x3813c6==_0x227f57([0x47,0x50,0x4c]))return _0x227f57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45ab3f=_0xe00a4e(),!_0x45ab3f)return _0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45ab3f[_0x227f57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ce4b7=_0x3f8e0b(_0x45ab3f[_0x227f57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45ab3f[_0x227f57([0x6a,0x74,0x69])])),await _0x488367()?_0x5a9e36()?_0x5380b8()?_0x227f57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d56ae()?(_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x227f57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f51aa=_0x136f3e(_0x227f57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x227f57([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f51aa=_0x136f3e(_0x227f57([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x477196()):_0x227f57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x227f57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5380b8(){const _0x2c938c=[_0x227f57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x227f57([0x74,0x72,0x69,0x61,0x6c])][_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cbae0/0x3e8:0xe10*_0x3c558d;return _0x45ab3f[_0x227f57([0x65,0x78,0x70])]<_0x2c938c;}function _0x5a9e36(){const _0xfb9409=_0x45ab3f[_0x227f57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfb9409&&(!!_0xfb9409[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x2a]))||!!_0xfb9409[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x46,0x4f,0x4f])));}function _0x1d56ae(){const _0x359286=_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x359286||0x0==_0x359286[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c7ddf}=new URL(window[_0x227f57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x359286[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7ddf))return!0x0;const _0x460de9=_0x4c7ddf[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e]));return _0x359286[_0x227f57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9f3463=>_0x9f3463[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x2a])))[_0x227f57([0x6d,0x61,0x70])](_0x2e04b0=>_0x2e04b0[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e])))[_0x227f57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41d62f=>_0x41d62f[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x460de9[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x227f57([0x6d,0x61,0x70])](_0xbf19fd=>Array(_0x460de9[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbf19fd[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x227f57([0x66,0x69,0x6c,0x6c])](_0xbf19fd[0x0]===_0x227f57([0x2a])?_0x227f57([0x2a]):'')[_0x227f57([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbf19fd))[_0x227f57([0x73,0x6f,0x6d,0x65])](_0x2ce355=>_0x460de9[_0x227f57([0x65,0x76,0x65,0x72,0x79])]((_0x2d946e,_0x5224ae)=>_0x2ce355[_0x5224ae]===_0x2d946e||_0x2ce355[_0x5224ae]===_0x227f57([0x2a])));}function _0x477196(){return _0x1f51aa&&_0x5ce4b7?new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35f3e6,_0x4beabd)=>{_0x1f51aa[_0x227f57([0x74,0x68,0x65,0x6e])](_0x35f3e6,_0x4beabd),_0x5ce4b7[_0x227f57([0x74,0x68,0x65,0x6e])](_0x2a047f=>{_0x2a047f!=_0x227f57([0x56,0x61,0x6c,0x69,0x64])&&_0x35f3e6(_0x2a047f);},_0x4beabd);}):_0x1f51aa||_0x5ce4b7||_0x227f57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f8e0b(_0x191b38,_0x1e70a9){return new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd340=>{if(_0x556f25())return _0x1cd340(_0x227f57([0x56,0x61,0x6c,0x69,0x64]));_0x48f9d6(),_0x267605[_0x227f57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40d24a=!0x1;const _0x29e03d=_0x54ee1f();function _0x5324b5(_0x21a47b){return!!_0x21a47b&&(typeof _0x21a47b===_0x227f57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a47b===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a47b[_0x227f57([0x74,0x68,0x65,0x6e])]===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a47b[_0x227f57([0x63,0x61,0x74,0x63,0x68])]===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1bf957(_0x9344d8){_0x4b7d51(_0x9344d8)[_0x227f57([0x74,0x68,0x65,0x6e])](_0x355279=>{if(!_0x355279||_0x355279[_0x227f57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x227f57([0x6f,0x6b]))return _0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x416cb2(_0x1b6bdc(_0x29e03d+_0x1e70a9))!=_0x355279[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x227f57([0x56,0x61,0x6c,0x69,0x64]);})[_0x227f57([0x74,0x68,0x65,0x6e])](_0x1a789c=>(_0x252e00(),_0x1a789c),()=>{const _0x32626=_0x557afd();return null==_0x32626?(_0x252e00(),_0x227f57([0x56,0x61,0x6c,0x69,0x64])):_0x227f57(_0x3cbae0-_0x32626>(0x63ae0106^_0x496d64)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x227f57([0x74,0x68,0x65,0x6e])](_0x1cd340)[_0x227f57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x380f4c=0x47946b86^_0x496d64;function _0x252e00(){const _0x2910d7=_0x227f57([0x6c,0x6c,0x63,0x74,0x2d])+_0x416cb2(_0x1b6bdc(_0x191b38)),_0x5abb6e=_0x49f000(_0x416cb2(window[_0x227f57([0x4d,0x61,0x74,0x68])][_0x227f57([0x63,0x65,0x69,0x6c])](_0x3cbae0/_0x380f4c)));window[_0x227f57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x227f57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2910d7,_0x5abb6e);}function _0x557afd(){const _0x1d0734=_0x227f57([0x6c,0x6c,0x63,0x74,0x2d])+_0x416cb2(_0x1b6bdc(_0x191b38)),_0x50566a=window[_0x227f57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x227f57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d0734);return _0x50566a?window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f000(_0x50566a),0x10)*_0x380f4c:null;}function _0x4b7d51(_0x1e9263){return new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4212f5,_0x2abcf4)=>{_0x1e9263[_0x227f57([0x74,0x68,0x65,0x6e])](_0x4212f5,_0x2abcf4),window[_0x227f57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2abcf4,0x47a351c6^_0x496d64);});}}_0x267605[_0x227f57([0x6f,0x6e])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21abf4,_0x526dd9)=>{if(_0x526dd9[0x0]!=_0x191b38)return _0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x526dd9[0x1]={..._0x526dd9[0x1],[_0x227f57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29e03d};},{[_0x227f57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x227f57([0x68,0x69,0x67,0x68])}),_0x267605[_0x227f57([0x6f,0x6e])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6c670b=>{_0x5324b5(_0x6c670b[_0x227f57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40d24a=!0x0,_0x1bf957(_0x6c670b[_0x227f57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x227f57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x227f57([0x6c,0x6f,0x77])}),_0x3ac830[_0x227f57([0x74,0x68,0x65,0x6e])](()=>{_0x40d24a||_0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x556f25(){return _0x267605[_0x227f57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x227f57([0x76,0x69,0x65,0x77])][_0x227f57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x227f57([0x61,0x75,0x74,0x6f]);}function _0x48f9d6(){_0x267605[_0x227f57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x227f57([0x76,0x69,0x65,0x77])][_0x227f57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x227f57([0x61,0x75,0x74,0x6f]);}}function _0x136f3e(_0x355683){const _0x5edead=[new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365de7=>setTimeout(_0x365de7,0x47abbbca^_0x496d64)),_0x3ac830[_0x227f57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504ab5=>{let _0x57d4da=0x0;_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x6f,0x6e])](_0x227f57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x258947,_0x1d6af2)=>{_0x1d6af2[0x0][_0x227f57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57d4da++,_0x57d4da==(0x47a284fe^_0x496d64)&&(_0x504ab5(),_0x258947[_0x227f57([0x6f,0x66,0x66])]());});}))];return window[_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x227f57([0x72,0x61,0x63,0x65])](_0x5edead)[_0x227f57([0x74,0x68,0x65,0x6e])](()=>_0x355683);}async function _0x23c1a5(){await _0x3ac830,_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca3e8,_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca3e8,_0x267605[_0x227f57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x227f57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37475f(_0x4e6dcc){const _0x4682b9=_0x142de9();_0x267605[_0x4682b9]=_0x227f57([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e6dcc,_0x4e6dcc!=_0x227f57([0x56,0x61,0x6c,0x69,0x64])&&_0x23c1a5();}function _0x142de9(){const _0x22079d=window[_0x227f57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x227f57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x227f57([0x6e,0x6f,0x77])]())[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x227f57([0x2e]),'');let _0x312ae0=_0x227f57([0x75]);for(let _0x2e7fbb=0x0;_0x2e7fbb<_0x22079d[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7fbb+=0x2){let _0x3e4888=window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22079d[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7fbb,_0x2e7fbb+0x2));_0x3e4888>=_0x311c84[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e4888-=_0x311c84[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x312ae0+=_0x311c84[_0x3e4888];}return _0x312ae0;}function _0xe00a4e(){const _0x410f42=_0x3813c6[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e]));if(0x3!=_0x410f42[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a2863(_0x410f42[0x1]);function _0x2a2863(_0x26f1b5){const _0x2494bd=_0xccc5c1(_0x26f1b5);return _0x2494bd&&_0x410628()?_0x2494bd:null;function _0x410628(){const _0x3049f0=_0x2494bd[_0x227f57([0x6a,0x74,0x69])],_0x5e55e1=window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3049f0[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3049f0[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2df955={..._0x2494bd,[_0x227f57([0x6a,0x74,0x69])]:_0x3049f0[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3049f0[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2df955[_0x227f57([0x76,0x63])],_0x1b6bdc(_0x2df955)==_0x5e55e1;}}}async function _0x488367(){let _0x3a79a8=!0x0;try{const _0x5965f3=_0x3813c6[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e])),[_0x1e8c9d,_0x319bef,_0x1f3776]=_0x5965f3;return _0x4e187f(_0x1e8c9d),await _0x8f9ac7(_0x1e8c9d,_0x319bef,_0x1f3776),_0x3a79a8;}catch{return!0x1;}function _0x4e187f(_0x3acc6b){const _0x1d161d=_0xccc5c1(_0x3acc6b);_0x1d161d&&_0x1d161d[_0x227f57([0x61,0x6c,0x67])]==_0x227f57([0x45,0x53,0x32,0x35,0x36])||(_0x3a79a8=!0x1);}async function _0x8f9ac7(_0x170662,_0xa94b5e,_0x319e2a){const _0x4fd845=window[_0x227f57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x227f57([0x66,0x72,0x6f,0x6d])](_0x3dc519(_0x319e2a),_0x27cc09=>_0x27cc09[_0x227f57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39f84b=new window[(_0x227f57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x227f57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x170662+_0x227f57([0x2e])+_0xa94b5e),_0x16ff4d=window[_0x227f57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x227f57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16ff4d)return;const _0x149a54=await _0x16ff4d[_0x227f57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x227f57([0x6a,0x77,0x6b]),_0x4f4125,{[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x45,0x43,0x44,0x53,0x41]),[_0x227f57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x227f57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16ff4d[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x45,0x43,0x44,0x53,0x41]),[_0x227f57([0x68,0x61,0x73,0x68])]:{[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x149a54,_0x4fd845,_0x39f84b)||(_0x3a79a8=!0x1);}}function _0xccc5c1(_0x3e16ed){return _0x3e16ed[_0x227f57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x227f57([0x65,0x79]))?JSON[_0x227f57([0x70,0x61,0x72,0x73,0x65])](_0x3dc519(_0x3e16ed)):null;}function _0x3dc519(_0x166343){return window[_0x227f57([0x61,0x74,0x6f,0x62])](_0x166343[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x227f57([0x2b]))[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x227f57([0x2f])));}function _0x1b6bdc(_0x4e9f23){let _0x32ae05=0x1505;function _0x4815a1(_0x2420c8){for(let _0x3e2eb5=0x0;_0x3e2eb5<_0x2420c8[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e2eb5++){const _0x3cc65d=_0x2420c8[_0x227f57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e2eb5);_0x32ae05=(_0x32ae05<<0x5)+_0x32ae05+_0x3cc65d,_0x32ae05&=_0x32ae05;}}function _0x327ee7(_0x4b85bf){Array[_0x227f57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b85bf)?_0x4b85bf[_0x227f57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x327ee7):_0x4b85bf&&typeof _0x4b85bf==_0x227f57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x227f57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b85bf)[_0x227f57([0x73,0x6f,0x72,0x74])]()[_0x227f57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x352d28,_0x3201f0])=>{_0x4815a1(_0x352d28),_0x327ee7(_0x3201f0);}):_0x4815a1(window[_0x227f57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b85bf));}return _0x327ee7(_0x4e9f23),_0x32ae05>>>0x0;}function _0x416cb2(_0x2d4cad){return _0x2d4cad[_0x227f57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x227f57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x227f57([0x30]));}function _0x49f000(_0x3f3cfa){return _0x3f3cfa[_0x227f57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x227f57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x227f57([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ca3e8(){}function _0x227f57(_0xdec157){return _0xdec157['map'](_0x4dd10c=>String['fromCharCode'](_0x4dd10c))['join']('');}_0x37475f(await _0x3eab23());}(this);}['_moveSelectionToFootnoteDefinition'](_0x43cf25){const {plugins:_0x38164b,editing:_0x5a760f,model:_0x57274d}=this['editor'],_0x266794=_0x38164b['get'](_0x439586)['getFootnote'](_0x43cf25);return!!_0x266794&&(_0x57274d['change'](_0x2be186=>{_0x2be186['setSelection'](_0x2be186['createPositionAt'](_0x266794['definition'],'end'));}),_0x5a760f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xd49544){const {plugins:_0x1b3c97,editing:_0x437cfd,model:_0x27b912}=this['editor'],_0x2b4423=_0x1b3c97['get'](_0x439586)['getFootnote'](_0xd49544);return!!_0x2b4423&&(_0x27b912['change'](_0x5edd0d=>{_0x5edd0d['setSelection'](_0x2b4423['reference'],'on');}),_0x437cfd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2c6b65}=this['editor']['model'],_0x5832a5=this['editor']['config']['get']('footnotes.multiBlock');_0x2c6b65['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2c6b65['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2c6b65['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5832a5?_0x2c6b65['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2c6b65['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2c6b65['addChildCheck'](_0x231e82=>{for(const _0x4c922f of _0x231e82)if('footnoteDefinition'===_0x4c922f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x22d733}=this,{conversion:_0x326df9,editing:_0xfd0743}=_0x22d733,{t:t}=_0x22d733['locale'];_0x326df9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x231a4e,{writer:_0x129532,consumable:_0x557fa5})=>{const _0x328f93=_0x231a4e['getChild'](0x0);if(!_0x328f93||!_0x328f93['is']('element','a'))return null;const _0x4332f4=_0x328f93['getAttribute']('href')||'';if(!_0x4332f4['startsWith']('#'))return null;const _0xa87f13=_0x4332f4['replace'](/^#/,'');if(!_0xa87f13)return null;_0x557fa5['consume'](_0x328f93,{'name':!0x0,'attributes':['href']});for(const {item:_0x505d32}of _0xfd0743['view']['createRangeIn'](_0x328f93))_0x505d32['is']('$textProxy')?_0x557fa5['consume'](_0x505d32['textNode'],{'name':!0x0}):_0x505d32['is']('element')&&_0x557fa5['consume'](_0x505d32,{'name':!0x0});return _0x129532['createElement']('footnoteRef',{'footnoteId':_0xa87f13});}}),_0x326df9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x591ad2,{writer:_0x54d9fc})=>D(_0x591ad2,_0x54d9fc)}),_0x326df9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3081fe,{writer:_0x47253c})=>{const _0x3e44c3=_0x3081fe['getAttribute']('footnoteCounter');return _0x5aa439(D(_0x3081fe,_0x47253c),_0x47253c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3e44c3)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2a9a69}=this,{t:t}=_0x2a9a69['locale'],{conversion:_0x2821b0}=_0x2a9a69;_0x2821b0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2821b0['for']('upcast')['add'](_0x27c656=>{_0x27c656['on']('element:ol',(_0x2421c3,_0x63466e,_0x30b58e)=>{const _0x1e796a=_0x63466e['viewItem'];if(!_0x1e796a['hasClass']('footnotes-list')||!_0x63466e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x30b58e['consumable']['consume'](_0x1e796a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x31ccb4,modelCursor:_0x55511d}=_0x30b58e['convertChildren'](_0x63466e['viewItem'],_0x63466e['modelCursor']);_0x63466e['modelRange']=_0x31ccb4,_0x63466e['modelCursor']=_0x55511d;}),_0x27c656['on']('element:hr',(_0x1b12a2,_0xb018aa,_0x46f15b)=>{const _0x2edd9d=_0xb018aa['viewItem'];_0x2edd9d['hasClass']('footnotes-divider')&&_0xb018aa['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x46f15b['consumable']['consume'](_0x2edd9d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2821b0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1bc66f,{writer:_0x2427f6})=>v(_0x2427f6)}),_0x2821b0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x949012,{writer:_0x506ac0})=>{const _0x3312eb=v(_0x506ac0,{'data-footnotes-list-label':t('Footnotes')}),_0x5d843d=_0x5aa439(_0x3312eb,_0x506ac0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x506ac0['setCustomProperty']('footnotesDefinitions',!0x0,_0x5d843d),_0x5d843d;}});}['_defineDefinitionConverters'](){const {editor:_0x1c633f}=this,{conversion:_0x1e445e,locale:_0x2837f4}=_0x1c633f,_0x5d56e6=_0x1c633f['config']['get']('footnotes.multiBlock');_0x1e445e['for']('upcast')['add'](_0x5970b3=>{_0x5970b3['on']('element:li',(_0x2e04ef,_0x3dcc00,_0x39507d)=>{const _0xcf1289=_0x3dcc00['viewItem'];if(!_0xcf1289['hasClass']('footnote-definition')||!_0xcf1289['getAttribute']('id'))return;const _0x28453c=_0xcf1289['parent'];if(!_0x28453c['is']('element','ol')||!_0x28453c['hasClass']('footnotes-list'))return;if(!_0x39507d['consumable']['test'](_0xcf1289,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xc27cea=_0x39507d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcf1289['getAttribute']('id')});if(!_0x39507d['safeInsert'](_0xc27cea,_0x3dcc00['modelCursor']))return;_0x39507d['consumable']['consume'](_0xcf1289,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3adda0=Array['from'](_0xcf1289['getChildren']())['find'](_0x421b00=>_0x421b00['is']('element')&&_0x421b00['hasClass']('footnote-content'));for(const _0x4655bd of _0xcf1289['getChildren']())_0x4655bd['is']('element')&&(_0x39507d['consumable']['consume'](_0x4655bd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x39507d['consumable']['consume'](_0x4655bd,{'name':!0x0,'classes':'footnote-content'}));if(_0x3adda0){if(_0x5d56e6)_0x39507d['convertChildren'](_0x3adda0,_0xc27cea);else{const _0x37828b=_0x39507d['writer']['createElement']('footnoteInlineContent');_0x39507d['writer']['insert'](_0x37828b,_0xc27cea),_0x39507d['convertChildren'](_0x3adda0,_0x37828b);}}_0x39507d['updateConversionResult'](_0xc27cea,_0x3dcc00);});}),_0x1e445e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46a906,{writer:_0x5874e4})=>b(_0x46a906,_0x5874e4,_0x2837f4,{'dataPipeline':!0x0})}),_0x1e445e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ec636,{writer:_0x34fafd})=>b(_0x4ec636,_0x34fafd,_0x2837f4)});}['_defineBogusParagraphConverters'](){const {editor:_0x9a0d6b}=this,{conversion:_0x27ba45}=_0x9a0d6b;_0x9a0d6b['config']['get']('footnotes.multiBlock')?(_0x27ba45['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x27ba45['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x9a0d6b['model']['document'],'change:data',()=>{!function(_0x449492,_0x35b00){const _0x2cf125=_0x449492['document']['differ'],_0x4934ee=new Set();for(const _0x4d3181 of _0x2cf125['getChanges']()){const _0x3b0479='attribute'==_0x4d3181['type']?_0x4d3181['range']['start']['parent']:_0x4d3181['position']['parent'];_0x3b0479['is']('element','footnoteDefinition')&&_0x4934ee['add'](_0x3b0479);}for(const _0x2078f7 of _0x4934ee['values']()){const _0x33907a=Array['from'](_0x2078f7['getChildren']())['filter'](_0x2ddc9d=>g(_0x2ddc9d,_0x35b00['mapper']));for(const _0x5ec992 of _0x33907a)_0x35b00['reconvertItem'](_0x5ec992);}}(_0x9a0d6b['model'],_0x9a0d6b['editing']);})):(_0x27ba45['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x27ba45['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5b0c07,{writer:_0x54e863})=>{const _0xb0d025=_0x54e863['createContainerElement']('span');return _0x54e863['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb0d025),_0xb0d025;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2782cd}=this,{editing:_0x237625,t:t}=_0x2782cd,_0x535a31=_0x2782cd['model']['document']['selection'];_0x2782cd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2782cd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x237625['view']['document'],'enter',(_0x444fd6,_0x256252)=>{const _0x1a74d7=function(_0x41ead2){const _0x1f35bb=_0x41ead2['getSelectedElement']();if(_0x1f35bb?.['is']('element','footnoteRef'))return _0x1f35bb;return null;}(_0x535a31);if(_0x1a74d7){const _0x17ed49=_0x1a74d7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x17ed49),_0x256252['preventDefault'](),_0x444fd6['stop']();}},{'context':_0x5c9129});}['_defineClickHandlers'](){const {editor:_0x2c17c6}=this,{editing:_0x14b3be}=_0x2c17c6;_0x2c17c6['editing']['view']['addObserver'](_0x6e41c8),_0x2c17c6['editing']['view']['addObserver'](_0x3a1dd9);let _0x22a679=!0x1;this['listenTo'](_0x14b3be['view']['document'],'pointerdown',(_0x500bc2,_0x10073e)=>{const {target:_0x2155b3}=_0x10073e,_0x2c6596=_0x14b3be['view']['document']['selection'];_0x22a679=!!(_0x2155b3?.['is']('element','a')&&_0x2155b3['parent']?.['is']('element','sup')&&_0x2155b3['parent']['hasClass']('footnote'))&&_0x2c6596['getSelectedElement']()===_0x2155b3['parent'];},{'priority':'high'}),this['listenTo'](_0x14b3be['view']['document'],'click',(_0x26870c,_0x4d275d)=>{const {target:_0x43ed20}=_0x4d275d;if(!_0x43ed20?.['is']('element','a'))return;if(_0x43ed20['parent']?.['is']('element','sup')&&_0x43ed20['parent']['hasClass']('footnote')&&!_0x22a679)return void _0x4d275d['preventDefault']();let _0x558624=_0x43ed20['getAttribute']('href');if(!_0x558624?.['startsWith']('#'))return;_0x558624=_0x558624['slice'](0x1);let _0x53b065=!0x1;(_0x558624['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x558624['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x558624))&&(_0x53b065=!0x0),_0x53b065&&(_0x4d275d['preventDefault'](),_0x26870c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x88e92c}={}){return(_0x3d12e1,{writer:_0xc06afb})=>{if(!p(_0x3d12e1))return null;if(!_0x88e92c)return _0xc06afb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4ab0ed=_0xc06afb['createContainerElement']('p');return _0xc06afb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4ab0ed),_0x4ab0ed;};}function p(_0xc2e9cf){const {parent:_0x10e661}=_0xc2e9cf;if(!_0x10e661?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x10e661['childCount'])return!0x1;for(const _0x39dabf of _0xc2e9cf['getAttributeKeys']())if(!_0x39dabf['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x39dabf)return!0x1;return!0x0;}function g(_0x415427,_0x13a75e){if(!_0x415427['is']('element','paragraph'))return!0x1;const _0x127dfa=_0x13a75e['toViewElement'](_0x415427);return!!_0x127dfa&&p(_0x415427)!==_0x127dfa['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1a4fa0){return _0x5c9129(_0x1a4fa0)&&_0x1a4fa0['is']('containerElement')&&!!_0x1a4fa0['getCustomProperty']('footnotesDefinitions');}function v(_0x489f0b,_0x3756d1={}){const _0x42de63=_0x489f0b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4d79aa=_0x489f0b['createContainerElement']('ol',{'class':'footnotes-list'},_0x489f0b['createSlot']());return _0x489f0b['createContainerElement']('div',{'class':'footnotes',..._0x3756d1},[_0x42de63,_0x4d79aa]);}function D(_0xd567c3,_0x5b0463){const _0x26e4aa=_0xd567c3['getAttribute']('footnoteId'),_0x5d9bf1=_0xd567c3['getAttribute']('footnoteCounter'),_0x4ac609=_0x5b0463['createUIElement']('a',{'href':'#'+_0x26e4aa},function(_0x1dfe73){const _0x21cc9f=this['toDomElement'](_0x1dfe73);return _0x21cc9f['textContent']=_0x5d9bf1,_0x21cc9f;}),_0x59709d=_0x5b0463['createContainerElement']('sup',{'id':'ref-'+_0x26e4aa,'class':'footnote'},[_0x4ac609]);return _0x59709d['getFillerOffset']=()=>null,_0x59709d;}function b(_0x21978b,_0x5b9c73,_0x46f9de,{dataPipeline:_0x3dae6e}={}){const {t:t}=_0x46f9de,_0x37fe06=_0x21978b['getAttribute']('footnoteId'),_0x31ba32=_0x5b9c73['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x37fe06},function(_0x219fe2){const _0x41957e=this['toDomElement'](_0x219fe2);return _0x41957e['innerText']='^',_0x41957e;}),_0x4b355f=_0x3dae6e?_0x5b9c73['createContainerElement']('div',{'class':'footnote-content'}):_0x3e2a90(_0x5b9c73['createEditableElement']('div',{'class':'footnote-content'}),_0x5b9c73,{'label':t('Footnote\x20content.')});return _0x5b9c73['insert'](_0x5b9c73['createPositionAt'](_0x4b355f,0x0),_0x5b9c73['createSlot']()),_0x5b9c73['createContainerElement']('li',{'class':'footnote-definition','id':_0x37fe06},[_0x31ba32,_0x4b355f]);}
|
|
23
|
+
import{Plugin as _0x4e69fc}from'ckeditor5/src/core.js';import{isWidget as _0x2f0975,toWidget as _0x5381bf,toWidgetEditable as _0x1d6c5f}from'ckeditor5/src/widget.js';import{uid as _0x2fde9d}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1c4793,ClickObserver as _0x10d0be}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x204428}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x39cf2c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e69fc{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x204428];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x77f750}=this;_0x77f750['config']['define']('footnotes.multiBlock',!0x0),_0x77f750['commands']['add']('insertFootnote',new _0x39cf2c(_0x77f750)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2b0d13){const _0x501e20=_0x995a61([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]),_0x1b071d=0x47a28506,_0x149e88=0x47a5f916^_0x1b071d,_0xaaf703=window[_0x995a61([0x44,0x61,0x74,0x65])][_0x995a61([0x6e,0x6f,0x77])](),_0x346c91=_0x2b0d13[_0x995a61([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2175b8=new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f0580=>{_0x346c91[_0x995a61([0x6f,0x6e,0x63,0x65])](_0x995a61([0x72,0x65,0x61,0x64,0x79]),_0x3f0580);}),_0x253395={[_0x995a61([0x6b,0x74,0x79])]:_0x995a61([0x45,0x43]),[_0x995a61([0x75,0x73,0x65])]:_0x995a61([0x73,0x69,0x67]),[_0x995a61([0x63,0x72,0x76])]:_0x995a61([0x50,0x2d,0x32,0x35,0x36]),[_0x995a61([0x78])]:_0x995a61([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]),[_0x995a61([0x79])]:_0x995a61([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]),[_0x995a61([0x61,0x6c,0x67])]:_0x995a61([0x45,0x53,0x32,0x35,0x36])},_0x507999=_0x346c91[_0x995a61([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x995a61([0x67,0x65,0x74])](_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41c764(){let _0x20a160,_0x3a89ed=null,_0x2c7df2=null;try{if(_0x507999==_0x995a61([0x47,0x50,0x4c]))return _0x995a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20a160=_0x49a7b6(),!_0x20a160)return _0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20a160[_0x995a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c7df2=_0x16c6f4(_0x20a160[_0x995a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20a160[_0x995a61([0x6a,0x74,0x69])])),await _0x46fe4f()?_0x53beb2()?_0x3927bc()?_0x995a61([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6c0949()?(_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x995a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a89ed=_0x42250c(_0x995a61([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x995a61([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a89ed=_0x42250c(_0x995a61([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x488f2c()):_0x995a61([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x995a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3927bc(){const _0x2f6062=[_0x995a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x995a61([0x74,0x72,0x69,0x61,0x6c])][_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaaf703/0x3e8:0xe10*_0x149e88;return _0x20a160[_0x995a61([0x65,0x78,0x70])]<_0x2f6062;}function _0x53beb2(){const _0x2c1b78=_0x20a160[_0x995a61([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c1b78&&(!!_0x2c1b78[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x2a]))||!!_0x2c1b78[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x46,0x4f,0x4f])));}function _0x6c0949(){const _0x4237d8=_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4237d8||0x0==_0x4237d8[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25f732}=new URL(window[_0x995a61([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4237d8[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f732))return!0x0;const _0xa7bc73=_0x25f732[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e]));return _0x4237d8[_0x995a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e1177=>_0x1e1177[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x2a])))[_0x995a61([0x6d,0x61,0x70])](_0x3c47f2=>_0x3c47f2[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e])))[_0x995a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5e27=>_0x4b5e27[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa7bc73[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x995a61([0x6d,0x61,0x70])](_0x21841b=>Array(_0xa7bc73[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21841b[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x995a61([0x66,0x69,0x6c,0x6c])](_0x21841b[0x0]===_0x995a61([0x2a])?_0x995a61([0x2a]):'')[_0x995a61([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21841b))[_0x995a61([0x73,0x6f,0x6d,0x65])](_0x112577=>_0xa7bc73[_0x995a61([0x65,0x76,0x65,0x72,0x79])]((_0x3d977e,_0x596765)=>_0x112577[_0x596765]===_0x3d977e||_0x112577[_0x596765]===_0x995a61([0x2a])));}function _0x488f2c(){return _0x3a89ed&&_0x2c7df2?new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x322294,_0x4ee689)=>{_0x3a89ed[_0x995a61([0x74,0x68,0x65,0x6e])](_0x322294,_0x4ee689),_0x2c7df2[_0x995a61([0x74,0x68,0x65,0x6e])](_0x509015=>{_0x509015!=_0x995a61([0x56,0x61,0x6c,0x69,0x64])&&_0x322294(_0x509015);},_0x4ee689);}):_0x3a89ed||_0x2c7df2||_0x995a61([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16c6f4(_0x5dc36e,_0x2679d3){return new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bca33=>{if(_0x46a5a7())return _0x3bca33(_0x995a61([0x56,0x61,0x6c,0x69,0x64]));_0x46b7f6(),_0x346c91[_0x995a61([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3dc407=!0x1;const _0x3743a7=_0x2fde9d();function _0x5ed772(_0x2988f4){return!!_0x2988f4&&(typeof _0x2988f4===_0x995a61([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2988f4===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2988f4[_0x995a61([0x74,0x68,0x65,0x6e])]===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2988f4[_0x995a61([0x63,0x61,0x74,0x63,0x68])]===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52cbcc(_0x35ce49){_0x22f4aa(_0x35ce49)[_0x995a61([0x74,0x68,0x65,0x6e])](_0x4fa4d2=>{if(!_0x4fa4d2||_0x4fa4d2[_0x995a61([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x995a61([0x6f,0x6b]))return _0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f8811(_0x13db6a(_0x3743a7+_0x2679d3))!=_0x4fa4d2[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x995a61([0x56,0x61,0x6c,0x69,0x64]);})[_0x995a61([0x74,0x68,0x65,0x6e])](_0x4cf2f9=>(_0x30e8b0(),_0x4cf2f9),()=>{const _0x4f326e=_0xcfffac();return null==_0x4f326e?(_0x30e8b0(),_0x995a61([0x56,0x61,0x6c,0x69,0x64])):_0x995a61(_0xaaf703-_0x4f326e>(0x63ae0106^_0x1b071d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x995a61([0x74,0x68,0x65,0x6e])](_0x3bca33)[_0x995a61([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e291b=0x47946b86^_0x1b071d;function _0x30e8b0(){const _0x1ed16d=_0x995a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8811(_0x13db6a(_0x5dc36e)),_0x3589a7=_0x5d33a4(_0x2f8811(window[_0x995a61([0x4d,0x61,0x74,0x68])][_0x995a61([0x63,0x65,0x69,0x6c])](_0xaaf703/_0x5e291b)));window[_0x995a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x995a61([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ed16d,_0x3589a7);}function _0xcfffac(){const _0x432998=_0x995a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8811(_0x13db6a(_0x5dc36e)),_0x9700fc=window[_0x995a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x995a61([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432998);return _0x9700fc?window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d33a4(_0x9700fc),0x10)*_0x5e291b:null;}function _0x22f4aa(_0x8c638){return new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b8206,_0x67506a)=>{_0x8c638[_0x995a61([0x74,0x68,0x65,0x6e])](_0x3b8206,_0x67506a),window[_0x995a61([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x67506a,0x47a351c6^_0x1b071d);});}}_0x346c91[_0x995a61([0x6f,0x6e])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e6033,_0x5c6e74)=>{if(_0x5c6e74[0x0]!=_0x5dc36e)return _0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c6e74[0x1]={..._0x5c6e74[0x1],[_0x995a61([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3743a7};},{[_0x995a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x995a61([0x68,0x69,0x67,0x68])}),_0x346c91[_0x995a61([0x6f,0x6e])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bf478=>{_0x5ed772(_0x3bf478[_0x995a61([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3dc407=!0x0,_0x52cbcc(_0x3bf478[_0x995a61([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x995a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x995a61([0x6c,0x6f,0x77])}),_0x2175b8[_0x995a61([0x74,0x68,0x65,0x6e])](()=>{_0x3dc407||_0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46a5a7(){return _0x346c91[_0x995a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x995a61([0x76,0x69,0x65,0x77])][_0x995a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x995a61([0x61,0x75,0x74,0x6f]);}function _0x46b7f6(){_0x346c91[_0x995a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x995a61([0x76,0x69,0x65,0x77])][_0x995a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x995a61([0x61,0x75,0x74,0x6f]);}}function _0x42250c(_0x407e39){const _0x281a55=[new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4228f6=>setTimeout(_0x4228f6,0x47abbbca^_0x1b071d)),_0x2175b8[_0x995a61([0x74,0x68,0x65,0x6e])](()=>new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429269=>{let _0x2b1c1a=0x0;_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x6f,0x6e])](_0x995a61([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57eae5,_0x191e19)=>{_0x191e19[0x0][_0x995a61([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b1c1a++,_0x2b1c1a==(0x47a284fe^_0x1b071d)&&(_0x429269(),_0x57eae5[_0x995a61([0x6f,0x66,0x66])]());});}))];return window[_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x995a61([0x72,0x61,0x63,0x65])](_0x281a55)[_0x995a61([0x74,0x68,0x65,0x6e])](()=>_0x407e39);}async function _0x175c3b(){await _0x2175b8,_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcf747f,_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcf747f,_0x346c91[_0x995a61([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x995a61([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x550135(_0x5f09b1){const _0x16e9e9=_0x6a62e8();_0x346c91[_0x16e9e9]=_0x995a61([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f09b1,_0x5f09b1!=_0x995a61([0x56,0x61,0x6c,0x69,0x64])&&_0x175c3b();}function _0x6a62e8(){const _0x34d947=window[_0x995a61([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x995a61([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x995a61([0x6e,0x6f,0x77])]())[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x995a61([0x2e]),'');let _0x5d9e9c=_0x995a61([0x75]);for(let _0x3d69ae=0x0;_0x3d69ae<_0x34d947[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d69ae+=0x2){let _0x513075=window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34d947[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d69ae,_0x3d69ae+0x2));_0x513075>=_0x501e20[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x513075-=_0x501e20[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9e9c+=_0x501e20[_0x513075];}return _0x5d9e9c;}function _0x49a7b6(){const _0x11d2cd=_0x507999[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e]));if(0x3!=_0x11d2cd[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x193892(_0x11d2cd[0x1]);function _0x193892(_0x418cfb){const _0x39e60a=_0x487ca0(_0x418cfb);return _0x39e60a&&_0x1cf438()?_0x39e60a:null;function _0x1cf438(){const _0x25d01a=_0x39e60a[_0x995a61([0x6a,0x74,0x69])],_0x439ebb=window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25d01a[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25d01a[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x190a37={..._0x39e60a,[_0x995a61([0x6a,0x74,0x69])]:_0x25d01a[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25d01a[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x190a37[_0x995a61([0x76,0x63])],_0x13db6a(_0x190a37)==_0x439ebb;}}}async function _0x46fe4f(){let _0xa5eb24=!0x0;try{const _0x3f6b20=_0x507999[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e])),[_0x384f3e,_0x12e582,_0x48aa8c]=_0x3f6b20;return _0x8aa998(_0x384f3e),await _0x196746(_0x384f3e,_0x12e582,_0x48aa8c),_0xa5eb24;}catch{return!0x1;}function _0x8aa998(_0x152f73){const _0x36d572=_0x487ca0(_0x152f73);_0x36d572&&_0x36d572[_0x995a61([0x61,0x6c,0x67])]==_0x995a61([0x45,0x53,0x32,0x35,0x36])||(_0xa5eb24=!0x1);}async function _0x196746(_0x491655,_0x5cb976,_0x50fb1e){const _0x5bc368=window[_0x995a61([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x995a61([0x66,0x72,0x6f,0x6d])](_0x2acc26(_0x50fb1e),_0x4528a1=>_0x4528a1[_0x995a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x410cf5=new window[(_0x995a61([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x995a61([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491655+_0x995a61([0x2e])+_0x5cb976),_0x3edebd=window[_0x995a61([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x995a61([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3edebd)return;const _0x577a4c=await _0x3edebd[_0x995a61([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x995a61([0x6a,0x77,0x6b]),_0x253395,{[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x45,0x43,0x44,0x53,0x41]),[_0x995a61([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x995a61([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3edebd[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x45,0x43,0x44,0x53,0x41]),[_0x995a61([0x68,0x61,0x73,0x68])]:{[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x577a4c,_0x5bc368,_0x410cf5)||(_0xa5eb24=!0x1);}}function _0x487ca0(_0x37df0c){return _0x37df0c[_0x995a61([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x995a61([0x65,0x79]))?JSON[_0x995a61([0x70,0x61,0x72,0x73,0x65])](_0x2acc26(_0x37df0c)):null;}function _0x2acc26(_0x56c23b){return window[_0x995a61([0x61,0x74,0x6f,0x62])](_0x56c23b[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x995a61([0x2b]))[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x995a61([0x2f])));}function _0x13db6a(_0x138a52){let _0x493fa5=0x1505;function _0x1b31af(_0x2c3737){for(let _0x36b69e=0x0;_0x36b69e<_0x2c3737[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b69e++){const _0x1c5d39=_0x2c3737[_0x995a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36b69e);_0x493fa5=(_0x493fa5<<0x5)+_0x493fa5+_0x1c5d39,_0x493fa5&=_0x493fa5;}}function _0x1fcd17(_0x49e320){Array[_0x995a61([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49e320)?_0x49e320[_0x995a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fcd17):_0x49e320&&typeof _0x49e320==_0x995a61([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x995a61([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49e320)[_0x995a61([0x73,0x6f,0x72,0x74])]()[_0x995a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bf33b,_0x594ecb])=>{_0x1b31af(_0x5bf33b),_0x1fcd17(_0x594ecb);}):_0x1b31af(window[_0x995a61([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49e320));}return _0x1fcd17(_0x138a52),_0x493fa5>>>0x0;}function _0x2f8811(_0x585829){return _0x585829[_0x995a61([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x995a61([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x995a61([0x30]));}function _0x5d33a4(_0x248b27){return _0x248b27[_0x995a61([0x73,0x70,0x6c,0x69,0x74])]('')[_0x995a61([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x995a61([0x6a,0x6f,0x69,0x6e])]('');}function _0xcf747f(){}function _0x995a61(_0x5f251d){return _0x5f251d['map'](_0x3215b1=>String['fromCharCode'](_0x3215b1))['join']('');}_0x550135(await _0x41c764());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4fe492){const {plugins:_0x1e172e,editing:_0x4606aa,model:_0x501dd4}=this['editor'],_0xe27d53=_0x1e172e['get'](_0x204428)['getFootnote'](_0x4fe492);return!!_0xe27d53&&(_0x501dd4['change'](_0x233d86=>{_0x233d86['setSelection'](_0x233d86['createPositionAt'](_0xe27d53['definition'],'end'));}),_0x4606aa['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3ba139){const {plugins:_0x753a11,editing:_0x222d35,model:_0x486f9e}=this['editor'],_0x5ec602=_0x753a11['get'](_0x204428)['getFootnote'](_0x3ba139);return!!_0x5ec602&&(_0x486f9e['change'](_0x26482c=>{_0x26482c['setSelection'](_0x5ec602['reference'],'on');}),_0x222d35['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x292195}=this['editor']['model'],_0x2a1db8=this['editor']['config']['get']('footnotes.multiBlock');_0x292195['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x292195['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x292195['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2a1db8?_0x292195['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x292195['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x292195['addChildCheck'](_0x5d76ea=>{for(const _0x282eb7 of _0x5d76ea)if('footnoteDefinition'===_0x282eb7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x591b77}=this,{conversion:_0x516d81,editing:_0x2ad633}=_0x591b77,{t:t}=_0x591b77['locale'];_0x516d81['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x42dcb3,{writer:_0x573459,consumable:_0x3f29f1})=>{const _0x211106=_0x42dcb3['getChild'](0x0);if(!_0x211106||!_0x211106['is']('element','a'))return null;const _0x35ec58=_0x211106['getAttribute']('href')||'';if(!_0x35ec58['startsWith']('#'))return null;const _0x12c7d0=_0x35ec58['replace'](/^#/,'');if(!_0x12c7d0)return null;_0x3f29f1['consume'](_0x211106,{'name':!0x0,'attributes':['href']});for(const {item:_0x20113d}of _0x2ad633['view']['createRangeIn'](_0x211106))_0x20113d['is']('$textProxy')?_0x3f29f1['consume'](_0x20113d['textNode'],{'name':!0x0}):_0x20113d['is']('element')&&_0x3f29f1['consume'](_0x20113d,{'name':!0x0});return _0x573459['createElement']('footnoteRef',{'footnoteId':_0x12c7d0});}}),_0x516d81['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x513fbe,{writer:_0x5cb549})=>D(_0x513fbe,_0x5cb549)}),_0x516d81['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b3501,{writer:_0x1da7ef})=>{const _0x156d24=_0x4b3501['getAttribute']('footnoteCounter');return _0x5381bf(D(_0x4b3501,_0x1da7ef),_0x1da7ef,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x156d24)});}});}['_defineDefinitionsConverters'](){const {editor:_0x10c89a}=this,{t:t}=_0x10c89a['locale'],{conversion:_0x5884d7}=_0x10c89a;_0x5884d7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5884d7['for']('upcast')['add'](_0x54bc43=>{_0x54bc43['on']('element:ol',(_0x176940,_0x2d6b93,_0x34bd65)=>{const _0x330606=_0x2d6b93['viewItem'];if(!_0x330606['hasClass']('footnotes-list')||!_0x2d6b93['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x34bd65['consumable']['consume'](_0x330606,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x434677,modelCursor:_0x12bde9}=_0x34bd65['convertChildren'](_0x2d6b93['viewItem'],_0x2d6b93['modelCursor']);_0x2d6b93['modelRange']=_0x434677,_0x2d6b93['modelCursor']=_0x12bde9;}),_0x54bc43['on']('element:hr',(_0x49aad5,_0x26340e,_0x233233)=>{const _0x51c642=_0x26340e['viewItem'];_0x51c642['hasClass']('footnotes-divider')&&_0x26340e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x233233['consumable']['consume'](_0x51c642,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5884d7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x214db3,{writer:_0x44b309})=>v(_0x44b309)}),_0x5884d7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x20fdd7,{writer:_0x2c87d0})=>{const _0x15a197=v(_0x2c87d0,{'data-footnotes-list-label':t('Footnotes')}),_0xc89f9d=_0x5381bf(_0x15a197,_0x2c87d0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2c87d0['setCustomProperty']('footnotesDefinitions',!0x0,_0xc89f9d),_0xc89f9d;}});}['_defineDefinitionConverters'](){const {editor:_0x5e2f7a}=this,{conversion:_0xb0eaad,locale:_0x1264e8}=_0x5e2f7a,_0x502079=_0x5e2f7a['config']['get']('footnotes.multiBlock');_0xb0eaad['for']('upcast')['add'](_0x35cc13=>{_0x35cc13['on']('element:li',(_0x3f228c,_0x570b38,_0x1dc939)=>{const _0xcda13c=_0x570b38['viewItem'];if(!_0xcda13c['hasClass']('footnote-definition')||!_0xcda13c['getAttribute']('id'))return;const _0x4f6123=_0xcda13c['parent'];if(!_0x4f6123['is']('element','ol')||!_0x4f6123['hasClass']('footnotes-list'))return;if(!_0x1dc939['consumable']['test'](_0xcda13c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1f2d92=_0x1dc939['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcda13c['getAttribute']('id')});if(!_0x1dc939['safeInsert'](_0x1f2d92,_0x570b38['modelCursor']))return;_0x1dc939['consumable']['consume'](_0xcda13c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3ba414=Array['from'](_0xcda13c['getChildren']())['find'](_0x7c5839=>_0x7c5839['is']('element')&&_0x7c5839['hasClass']('footnote-content'));for(const _0x3263ac of _0xcda13c['getChildren']())_0x3263ac['is']('element')&&(_0x1dc939['consumable']['consume'](_0x3263ac,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1dc939['consumable']['consume'](_0x3263ac,{'name':!0x0,'classes':'footnote-content'}));if(_0x3ba414){if(_0x502079)_0x1dc939['convertChildren'](_0x3ba414,_0x1f2d92);else{const _0x3f480c=_0x1dc939['writer']['createElement']('footnoteInlineContent');_0x1dc939['writer']['insert'](_0x3f480c,_0x1f2d92),_0x1dc939['convertChildren'](_0x3ba414,_0x3f480c);}}_0x1dc939['updateConversionResult'](_0x1f2d92,_0x570b38);});}),_0xb0eaad['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x78e8e2,{writer:_0x4df8be})=>b(_0x78e8e2,_0x4df8be,_0x1264e8,{'dataPipeline':!0x0})}),_0xb0eaad['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1dd79c,{writer:_0xa10318})=>b(_0x1dd79c,_0xa10318,_0x1264e8)});}['_defineBogusParagraphConverters'](){const {editor:_0x2bd6b2}=this,{conversion:_0x2546c2}=_0x2bd6b2;_0x2bd6b2['config']['get']('footnotes.multiBlock')?(_0x2546c2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2546c2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2bd6b2['model']['document'],'change:data',()=>{!function(_0x9b82f9,_0x194bc0){const _0x2de902=_0x9b82f9['document']['differ'],_0x22fa0e=new Set();for(const _0x5c1ad1 of _0x2de902['getChanges']()){const _0xcd16ad='attribute'==_0x5c1ad1['type']?_0x5c1ad1['range']['start']['parent']:_0x5c1ad1['position']['parent'];_0xcd16ad['is']('element','footnoteDefinition')&&_0x22fa0e['add'](_0xcd16ad);}for(const _0x5dce99 of _0x22fa0e['values']()){const _0x44721c=Array['from'](_0x5dce99['getChildren']())['filter'](_0x471336=>g(_0x471336,_0x194bc0['mapper']));for(const _0x33553c of _0x44721c)_0x194bc0['reconvertItem'](_0x33553c);}}(_0x2bd6b2['model'],_0x2bd6b2['editing']);})):(_0x2546c2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2546c2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5a3664,{writer:_0x336340})=>{const _0x5402dc=_0x336340['createContainerElement']('span');return _0x336340['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5402dc),_0x5402dc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x753733}=this,{editing:_0x37f49b,t:t}=_0x753733,_0x35d347=_0x753733['model']['document']['selection'];_0x753733['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x753733['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x37f49b['view']['document'],'enter',(_0xb64409,_0x53f9c8)=>{const _0x10bc7e=function(_0x2e4c73){const _0x36813c=_0x2e4c73['getSelectedElement']();if(_0x36813c?.['is']('element','footnoteRef'))return _0x36813c;return null;}(_0x35d347);if(_0x10bc7e){const _0x4b91aa=_0x10bc7e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4b91aa),_0x53f9c8['preventDefault'](),_0xb64409['stop']();}},{'context':_0x2f0975});}['_defineClickHandlers'](){const {editor:_0x1edaf1}=this,{editing:_0xf7b79e}=_0x1edaf1;_0x1edaf1['editing']['view']['addObserver'](_0x1c4793),_0x1edaf1['editing']['view']['addObserver'](_0x10d0be);let _0x40cf29=!0x1;this['listenTo'](_0xf7b79e['view']['document'],'pointerdown',(_0x19033d,_0x1e6e62)=>{const {target:_0x3a4720}=_0x1e6e62,_0xdec53b=_0xf7b79e['view']['document']['selection'];_0x40cf29=!!(_0x3a4720?.['is']('element','a')&&_0x3a4720['parent']?.['is']('element','sup')&&_0x3a4720['parent']['hasClass']('footnote'))&&_0xdec53b['getSelectedElement']()===_0x3a4720['parent'];},{'priority':'high'}),this['listenTo'](_0xf7b79e['view']['document'],'click',(_0x20c119,_0x373c38)=>{const {target:_0x15fc5f}=_0x373c38;if(!_0x15fc5f?.['is']('element','a'))return;if(_0x15fc5f['parent']?.['is']('element','sup')&&_0x15fc5f['parent']['hasClass']('footnote')&&!_0x40cf29)return void _0x373c38['preventDefault']();let _0x14d8be=_0x15fc5f['getAttribute']('href');if(!_0x14d8be?.['startsWith']('#'))return;_0x14d8be=_0x14d8be['slice'](0x1);let _0x3b6285=!0x1;(_0x14d8be['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x14d8be['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x14d8be))&&(_0x3b6285=!0x0),_0x3b6285&&(_0x373c38['preventDefault'](),_0x20c119['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1e5bd0}={}){return(_0x5c41d5,{writer:_0x148abd})=>{if(!p(_0x5c41d5))return null;if(!_0x1e5bd0)return _0x148abd['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4c1ff7=_0x148abd['createContainerElement']('p');return _0x148abd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c1ff7),_0x4c1ff7;};}function p(_0x45626d){const {parent:_0x2f3597}=_0x45626d;if(!_0x2f3597?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2f3597['childCount'])return!0x1;for(const _0x2b002f of _0x45626d['getAttributeKeys']())if(!_0x2b002f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2b002f)return!0x1;return!0x0;}function g(_0x11e41f,_0x1a875f){if(!_0x11e41f['is']('element','paragraph'))return!0x1;const _0x31be2e=_0x1a875f['toViewElement'](_0x11e41f);return!!_0x31be2e&&p(_0x11e41f)!==_0x31be2e['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4e8285){return _0x2f0975(_0x4e8285)&&_0x4e8285['is']('containerElement')&&!!_0x4e8285['getCustomProperty']('footnotesDefinitions');}function v(_0x3cabcb,_0x33bfc6={}){const _0x2427a1=_0x3cabcb['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x387c84=_0x3cabcb['createContainerElement']('ol',{'class':'footnotes-list'},_0x3cabcb['createSlot']());return _0x3cabcb['createContainerElement']('div',{'class':'footnotes',..._0x33bfc6},[_0x2427a1,_0x387c84]);}function D(_0x35ddbf,_0x20092a){const _0x46b182=_0x35ddbf['getAttribute']('footnoteId'),_0x2719b1=_0x35ddbf['getAttribute']('footnoteCounter'),_0x3485c5=_0x20092a['createUIElement']('a',{'href':'#'+_0x46b182},function(_0x5a3c78){const _0x55bb8d=this['toDomElement'](_0x5a3c78);return _0x55bb8d['textContent']=_0x2719b1,_0x55bb8d;}),_0x309bb8=_0x20092a['createContainerElement']('sup',{'id':'ref-'+_0x46b182,'class':'footnote'},[_0x3485c5]);return _0x309bb8['getFillerOffset']=()=>null,_0x309bb8;}function b(_0x1c54e5,_0x4d43f8,_0x3ee125,{dataPipeline:_0x14a443}={}){const {t:t}=_0x3ee125,_0x375045=_0x1c54e5['getAttribute']('footnoteId'),_0x3f37a4=_0x4d43f8['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x375045},function(_0x161720){const _0x5f38f9=this['toDomElement'](_0x161720);return _0x5f38f9['innerText']='^',_0x5f38f9;}),_0x3ff73a=_0x14a443?_0x4d43f8['createContainerElement']('div',{'class':'footnote-content'}):_0x1d6c5f(_0x4d43f8['createEditableElement']('div',{'class':'footnote-content'}),_0x4d43f8,{'label':t('Footnote\x20content.')});return _0x4d43f8['insert'](_0x4d43f8['createPositionAt'](_0x3ff73a,0x0),_0x4d43f8['createSlot']()),_0x4d43f8['createContainerElement']('li',{'class':'footnote-definition','id':_0x375045},[_0x3f37a4,_0x3ff73a]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x45e5ad=_0x278f;(function(_0x557d6d,_0x378d1b){const _0x18456e=_0x278f,_0x2e6577=_0x557d6d();while(!![]){try{const _0x28c529=-parseInt(_0x18456e(0x163))/0x1*(parseInt(_0x18456e(0x15f))/0x2)+-parseInt(_0x18456e(0x15e))/0x3+parseInt(_0x18456e(0x164))/0x4*(parseInt(_0x18456e(0x152))/0x5)+parseInt(_0x18456e(0x15a))/0x6*(parseInt(_0x18456e(0x160))/0x7)+-parseInt(_0x18456e(0x14d))/0x8*(-parseInt(_0x18456e(0x150))/0x9)+parseInt(_0x18456e(0x14e))/0xa*(parseInt(_0x18456e(0x14f))/0xb)+parseInt(_0x18456e(0x154))/0xc*(-parseInt(_0x18456e(0x14c))/0xd);if(_0x28c529===_0x378d1b)break;else _0x2e6577['push'](_0x2e6577['shift']());}catch(_0x52ea8a){_0x2e6577['push'](_0x2e6577['shift']());}}}(_0xadc9,0x991e7));function _0xadc9(){const _0x534902=['1992624wjEhpp','plugins','refresh','value','footnotesListStart','isEnabled','9864LCqryI','getFootnotesDefinitionsObjectElement','change','setAttribute','2363097IdsHjd','26jSwppy','4361tmYXnZ','_updateFootnotesCounters','getAttribute','12251DHFEzy','20LTuSRC','isInteger','model','91gpYTcI','3818488BEqiaJ','10vGRgmL','6285818XkZEtD','9ExsoXz','execute','663540XPpwMa','get'];_0xadc9=function(){return _0x534902;};return _0xadc9();}function _0x278f(_0x4c4db0,_0x4fb3de){const _0xadc977=_0xadc9();return _0x278f=function(_0x278f89,_0x481a6e){_0x278f89=_0x278f89-0x14b;let _0x5355ee=_0xadc977[_0x278f89];return _0x5355ee;},_0x278f(_0x4c4db0,_0x4fb3de);}import{Command as _0x289871}from'ckeditor5/src/core.js';import{FootnotesTracker as _0xa38bf1}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x289871{[_0x45e5ad(0x156)](){const _0x22f90a=_0x45e5ad,{editor:_0x45f5d1}=this,_0xd54625=_0x45f5d1[_0x22f90a(0x155)][_0x22f90a(0x153)](_0xa38bf1)[_0x22f90a(0x15b)]();this[_0x22f90a(0x159)]=!!_0xd54625,this[_0x22f90a(0x157)]=_0xd54625?.[_0x22f90a(0x162)](_0x22f90a(0x158))??null;}[_0x45e5ad(0x151)]({value:_0x58acad}){const _0x9821d5=_0x45e5ad,{editor:_0x4ef19f}=this,_0x1cc256=_0x4ef19f[_0x9821d5(0x155)][_0x9821d5(0x153)](_0xa38bf1),_0x589943=_0x1cc256[_0x9821d5(0x15b)]();_0x589943&&Number[_0x9821d5(0x165)](_0x58acad)&&_0x4ef19f[_0x9821d5(0x14b)][_0x9821d5(0x15c)](_0x6b861b=>{const _0x4f011b=_0x9821d5;_0x6b861b[_0x4f011b(0x15d)](_0x4f011b(0x158),_0x58acad,_0x589943),_0x1cc256[_0x4f011b(0x161)](_0x6b861b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x213522=_0x1d72;(function(_0x2df0c9,_0x34be19){const _0x260b5d=_0x1d72,_0x412c13=_0x2df0c9();while(!![]){try{const _0x3c3c47=-parseInt(_0x260b5d(0x103))/0x1*(-parseInt(_0x260b5d(0xf2))/0x2)+parseInt(_0x260b5d(0xff))/0x3+parseInt(_0x260b5d(0xfc))/0x4+-parseInt(_0x260b5d(0xfe))/0x5+parseInt(_0x260b5d(0x101))/0x6*(parseInt(_0x260b5d(0xf9))/0x7)+-parseInt(_0x260b5d(0x102))/0x8+-parseInt(_0x260b5d(0xfa))/0x9;if(_0x3c3c47===_0x34be19)break;else _0x412c13['push'](_0x412c13['shift']());}catch(_0x3439c9){_0x412c13['push'](_0x412c13['shift']());}}}(_0x2256,0x9a950));function _0x1d72(_0xd3ebc3,_0x39f8aa){const _0x225628=_0x2256();return _0x1d72=function(_0x1d72be,_0x5a006c){_0x1d72be=_0x1d72be-0xee;let _0x408096=_0x225628[_0x1d72be];return _0x408096;},_0x1d72(_0xd3ebc3,_0x39f8aa);}import{Command as _0x53511c}from'ckeditor5/src/core.js';function _0x2256(){const _0x57ff6d=['get','refresh','524972GwWFFp','14197779uyOhtm','change','2183236xUwevM','value','3465910pmZLEv','3505071wbmZIF','model','6BPOOqf','188312IdmWsZ','103478imeMCj','getFootnotesDefinitionsObjectElement','execute','includes','plugins','footnotesListStyle','22nURosR','_updateFootnotesCounters','getAttribute','isEnabled','setAttribute'];_0x2256=function(){return _0x57ff6d;};return _0x2256();}import{FOOTNOTES_DEFINITIONS_STYLES as _0x11a7fc}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x3b3fbe}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x53511c{[_0x213522(0xf8)](){const _0x562255=_0x213522,{editor:_0x23db0b}=this,_0x2a0ce3=_0x23db0b[_0x562255(0xf0)][_0x562255(0xf7)](_0x3b3fbe)[_0x562255(0x104)]();this[_0x562255(0xf5)]=!!_0x2a0ce3,this[_0x562255(0xfd)]=_0x2a0ce3?.[_0x562255(0xf4)](_0x562255(0xf1))??null;}[_0x213522(0xee)]({value:_0x3c0072}){const _0x424867=_0x213522,{editor:_0xec2a52}=this,_0x4a9a51=_0xec2a52[_0x424867(0xf0)][_0x424867(0xf7)](_0x3b3fbe),_0x5a9e7a=_0x4a9a51[_0x424867(0x104)]();_0x5a9e7a&&_0x11a7fc[_0x424867(0xef)](_0x3c0072)&&_0xec2a52[_0x424867(0x100)][_0x424867(0xfb)](_0x4b5029=>{const _0x4779c1=_0x424867;_0x4b5029[_0x4779c1(0xf6)](_0x4779c1(0xf1),_0x3c0072,_0x5a9e7a),_0x4a9a51[_0x4779c1(0xf3)](_0x4b5029);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2259fb=_0x3c91;function _0x3c91(_0x15b374,_0x52e316){const _0x2f5c18=_0x2f5c();return _0x3c91=function(_0x3c91b9,_0x4070a9){_0x3c91b9=_0x3c91b9-0xbd;let _0x3ba3c5=_0x2f5c18[_0x3c91b9];return _0x3ba3c5;},_0x3c91(_0x15b374,_0x52e316);}(function(_0x22d4b4,_0x4315bc){const _0x2a84ad=_0x3c91,_0x1add66=_0x22d4b4();while(!![]){try{const _0xec7acf=parseInt(_0x2a84ad(0xcb))/0x1+parseInt(_0x2a84ad(0xc8))/0x2+-parseInt(_0x2a84ad(0xbf))/0x3*(-parseInt(_0x2a84ad(0xc0))/0x4)+-parseInt(_0x2a84ad(0xc6))/0x5+parseInt(_0x2a84ad(0xbe))/0x6+parseInt(_0x2a84ad(0xcd))/0x7+parseInt(_0x2a84ad(0xc3))/0x8*(-parseInt(_0x2a84ad(0xc4))/0x9);if(_0xec7acf===_0x4315bc)break;else _0x1add66['push'](_0x1add66['shift']());}catch(_0x54a4ad){_0x1add66['push'](_0x1add66['shift']());}}}(_0x2f5c,0x8c28a));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x2259fb(0xbd),_0x2259fb(0xc5),_0x2259fb(0xc2),_0x2259fb(0xc9),_0x2259fb(0xc7),_0x2259fb(0xca),_0x2259fb(0xc1),_0x2259fb(0xcc)];function _0x2f5c(){const _0x34ca9d=['lower-alpha','78660lTzFcD','upper-latin','upper-alpha','1137926Kknzkq','upper-roman','3738735AgkVmh','decimal','4226538elDnzv','3GxvpRs','1167736BbjVSF','lower-roman','lower-latin','323368hunbwO','288VTzIhE','decimal-leading-zero','4200780HoofkX'];_0x2f5c=function(){return _0x34ca9d;};return _0x2f5c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a0e94=_0x95cc;(function(_0x412b11,_0x44b65c){const _0x1cc6b4=_0x95cc,_0x5c90da=_0x412b11();while(!![]){try{const _0x3d4f78=parseInt(_0x1cc6b4(0x17f))/0x1*(-parseInt(_0x1cc6b4(0x157))/0x2)+-parseInt(_0x1cc6b4(0x169))/0x3+parseInt(_0x1cc6b4(0x16a))/0x4+parseInt(_0x1cc6b4(0x13a))/0x5*(-parseInt(_0x1cc6b4(0x142))/0x6)+parseInt(_0x1cc6b4(0x189))/0x7+parseInt(_0x1cc6b4(0x162))/0x8+-parseInt(_0x1cc6b4(0x15f))/0x9;if(_0x3d4f78===_0x44b65c)break;else _0x5c90da['push'](_0x5c90da['shift']());}catch(_0x240159){_0x5c90da['push'](_0x5c90da['shift']());}}}(_0x2ced,0xd241b));import{Plugin as _0xcb15cc}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x143d70}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x238e1a}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x5093c7}from'../footnotestracker.js';function _0x2ced(){const _0x52d002=['registerPostFixer','name','4020YldAlW','start','padStart','schema','footnotes-list','getItems','_getDefaultStartIndex','attribute:footnotesListStart:footnotesDefinitions','5286kalbHP','viewItem','upper-latin','for','decimal-leading-zero','element','removeAttribute','document','consumable','lower-alpha','hasAttribute','footnotesStyle','mapper','setFootnoteFormatter','footnotesListStyle','_defineConverters','floor','footnotesStart','setStyle','toViewElement','lower-roman','12398dAELkw','_defineFormatter','add','getStyle','getAttribute','setAttribute','pluginName','max','6498729XpDbdA','init','getChildren','12964584jhnYny','type','element:ol','toLowerCase','upper-roman','position','requires','831369bnLREn','2916640AiVVpJ','upcast','get','find','writer','createRangeOn','_formatFootnoteListValue','config','_defineSchema','differ','$text','commands','footnotes.footnotesProperties.defaultStartIndex','hasClass','footnotesListStart','isNaN','item','attribute:footnotesListStyle:footnotesDefinitions','toUpperCase','insert','parent','40hQVJWw','_updateFootnotesCounters','modelCursor','isPremiumPlugin','FootnotesPropertiesEditing','isOfficialPlugin','extend','fromCharCode','_definePostfixer','lower-latin','3268762RDKHem','define','plugins','nodeAfter','footnotesDefinitions','model','upper-alpha','_getDefaultListStyle','footnotes.footnotesProperties.defaultListStyle','list-style-type','decimal','editor','getChanges','removeStyle','parseInt','checkAttribute','consume','from','downcast'];_0x2ced=function(){return _0x52d002;};return _0x2ced();}import{FootnotesEditing as _0x234908}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0xcb15cc{static get[_0x4a0e94(0x15d)](){const _0x1d1799=_0x4a0e94;return _0x1d1799(0x183);}static get[_0x4a0e94(0x168)](){return[_0x234908,_0x5093c7];}static get[_0x4a0e94(0x184)](){return!0x0;}static get[_0x4a0e94(0x182)](){return!0x0;}[_0x4a0e94(0x160)](){const _0xe937b=_0x4a0e94,{editor:_0x16d269}=this;_0x16d269[_0xe937b(0x171)][_0xe937b(0x18a)](_0xe937b(0x12d),_0xe937b(0x12f)),_0x16d269[_0xe937b(0x171)][_0xe937b(0x18a)](_0xe937b(0x176),0x1),_0x16d269[_0xe937b(0x175)][_0xe937b(0x159)](_0xe937b(0x14d),new _0x143d70(_0x16d269)),_0x16d269[_0xe937b(0x175)][_0xe937b(0x159)](_0xe937b(0x153),new _0x238e1a(_0x16d269)),this[_0xe937b(0x172)](),this[_0xe937b(0x151)](),this[_0xe937b(0x158)](),this[_0xe937b(0x187)]();}[_0x4a0e94(0x172)](){const _0x5116e5=_0x4a0e94,{editor:_0xe30595}=this,{schema:_0x8bad88}=_0xe30595[_0x5116e5(0x18e)];_0x8bad88[_0x5116e5(0x185)](_0x5116e5(0x18d),{'allowAttributes':[_0x5116e5(0x150),_0x5116e5(0x178)]});}[_0x4a0e94(0x151)](){const _0xb803d4=_0x4a0e94,{editor:_0x425215}=this,{conversion:_0x4d7346,model:_0x2e4d1d}=_0x425215,{schema:_0x20341f}=_0x2e4d1d;_0x4d7346[_0xb803d4(0x145)](_0xb803d4(0x16b))[_0xb803d4(0x159)](_0x1cfe9f=>{const _0x36cc87=_0xb803d4;_0x1cfe9f['on'](_0x36cc87(0x164),(_0x5eb2d9,_0x22af7b,_0x5ec815)=>{const _0x24a4b2=_0x36cc87,_0x2f3e70=_0x22af7b[_0x24a4b2(0x143)],_0x276c3f=_0x22af7b[_0x24a4b2(0x181)]?.[_0x24a4b2(0x17e)];_0x2f3e70[_0x24a4b2(0x177)](_0x24a4b2(0x13e))&&_0x276c3f?.['is'](_0x24a4b2(0x147),_0x24a4b2(0x18d))&&(function(_0x29550b,_0x46b1b0,_0x4b6afc,_0x5805da){const _0x351e34=_0x24a4b2;if(!_0x5805da[_0x351e34(0x134)](_0x46b1b0,_0x351e34(0x178)))return;let _0x54c481=0x1;const _0x1f1d9b=_0x4b6afc[_0x351e34(0x14a)][_0x351e34(0x135)](_0x29550b,{'attributes':_0x351e34(0x13b)});if(_0x1f1d9b){const _0x197204=Number[_0x351e34(0x133)](_0x29550b[_0x351e34(0x15b)](_0x351e34(0x13b)),0xa);Number[_0x351e34(0x179)](_0x197204)||(_0x54c481=_0x197204);}!_0x1f1d9b&&_0x46b1b0[_0x351e34(0x14c)](_0x351e34(0x178))||_0x4b6afc[_0x351e34(0x16e)][_0x351e34(0x15c)](_0x351e34(0x178),_0x54c481,_0x46b1b0);}(_0x2f3e70,_0x276c3f,_0x5ec815,_0x20341f),function(_0x5da673,_0x3a7f32,_0x467477,_0x2cfb9e){const _0x118e59=_0x24a4b2;if(!_0x2cfb9e[_0x118e59(0x134)](_0x3a7f32,_0x118e59(0x150)))return;let _0x422cb2=_0x118e59(0x12f),_0x29de40=!0x1;if(_0x467477[_0x118e59(0x14a)][_0x118e59(0x135)](_0x5da673,{'attributes':_0x118e59(0x163)})){const _0x1e73fb={0x1:_0x118e59(0x12f),'a':_0x118e59(0x14b),'A':_0x118e59(0x18f),'i':_0x118e59(0x156),'I':_0x118e59(0x166)}[_0x5da673[_0x118e59(0x15b)](_0x118e59(0x163))];_0x1e73fb&&(_0x422cb2=_0x1e73fb),_0x29de40=!0x0;}_0x467477[_0x118e59(0x14a)][_0x118e59(0x135)](_0x5da673,{'styles':_0x118e59(0x12e)})&&(_0x422cb2=function(_0x414d0d){const _0x1e09a6=_0x118e59;switch(_0x414d0d){case _0x1e09a6(0x14b):return _0x1e09a6(0x188);case _0x1e09a6(0x18f):return _0x1e09a6(0x144);default:return _0x414d0d;}}(_0x5da673[_0x118e59(0x15a)](_0x118e59(0x12e))),_0x29de40=!0x0),!_0x29de40&&_0x3a7f32[_0x118e59(0x14c)](_0x118e59(0x150))||_0x467477[_0x118e59(0x16e)][_0x118e59(0x15c)](_0x118e59(0x150),_0x422cb2,_0x3a7f32);}(_0x2f3e70,_0x276c3f,_0x5ec815,_0x20341f));});}),_0x4d7346[_0xb803d4(0x145)](_0xb803d4(0x137))[_0xb803d4(0x159)](_0x4f1492=>{const _0x38c8c2=_0xb803d4;_0x4f1492['on'](_0x38c8c2(0x141),(_0x123ec9,_0x503cb9,_0xa4daec)=>{const _0x28b201=_0x38c8c2;if(!_0xa4daec[_0x28b201(0x14a)][_0x28b201(0x135)](_0x503cb9[_0x28b201(0x17a)],_0x123ec9[_0x28b201(0x139)]))return;const _0xf2b69e=M(_0x503cb9[_0x28b201(0x17a)],_0xa4daec[_0x28b201(0x14e)]),{attributeNewValue:_0x561aee}=_0x503cb9;null==_0x561aee||0x1===_0x561aee?_0xa4daec[_0x28b201(0x16e)][_0x28b201(0x148)](_0x28b201(0x13b),_0xf2b69e):_0xa4daec[_0x28b201(0x16e)][_0x28b201(0x15c)](_0x28b201(0x13b),String(_0x561aee),_0xf2b69e);}),_0x4f1492['on'](_0x38c8c2(0x17b),(_0x2fa00,_0x58ee84,_0x3b6aaa)=>{const _0x2ba95c=_0x38c8c2;if(!_0x3b6aaa[_0x2ba95c(0x14a)][_0x2ba95c(0x135)](_0x58ee84[_0x2ba95c(0x17a)],_0x2fa00[_0x2ba95c(0x139)]))return;const _0x1bbb90=M(_0x58ee84[_0x2ba95c(0x17a)],_0x3b6aaa[_0x2ba95c(0x14e)]),{attributeNewValue:_0x4b25cb}=_0x58ee84;_0x4b25cb&&_0x2ba95c(0x12f)!==_0x4b25cb?_0x3b6aaa[_0x2ba95c(0x16e)][_0x2ba95c(0x154)](_0x2ba95c(0x12e),_0x4b25cb,_0x1bbb90):_0x3b6aaa[_0x2ba95c(0x16e)][_0x2ba95c(0x132)](_0x2ba95c(0x12e),_0x1bbb90);});});}[_0x4a0e94(0x187)](){const _0x3f2abc=_0x4a0e94,{editor:_0x4d1fba}=this,{model:_0xdd415d}=_0x4d1fba,_0x187671=_0x4d1fba[_0x3f2abc(0x18b)][_0x3f2abc(0x16c)](_0x5093c7),_0x4747c4=this[_0x3f2abc(0x12c)](),_0x7cf0a1=this[_0x3f2abc(0x140)]();_0xdd415d[_0x3f2abc(0x149)][_0x3f2abc(0x138)](_0x5d7f3b=>{const _0x4517d9=_0x3f2abc,_0xd30187=_0xdd415d[_0x4517d9(0x149)][_0x4517d9(0x173)][_0x4517d9(0x131)]();let _0x59e545=!0x1;for(const _0x36d874 of _0xd30187){if(_0x4517d9(0x17d)!==_0x36d874[_0x4517d9(0x163)]||_0x4517d9(0x174)===_0x36d874[_0x4517d9(0x139)])continue;const _0x253f15=_0xdd415d[_0x4517d9(0x16f)](_0x36d874[_0x4517d9(0x167)][_0x4517d9(0x18c)]);for(const _0x1f0b39 of _0x253f15[_0x4517d9(0x13f)]())_0x1f0b39['is'](_0x4517d9(0x147),_0x4517d9(0x18d))&&(!_0x1f0b39[_0x4517d9(0x14c)](_0x4517d9(0x178))&&_0xdd415d[_0x4517d9(0x13d)][_0x4517d9(0x134)](_0x1f0b39,_0x4517d9(0x178))&&(_0x5d7f3b[_0x4517d9(0x15c)](_0x4517d9(0x178),_0x7cf0a1,_0x1f0b39),_0x59e545=!0x0),!_0x1f0b39[_0x4517d9(0x14c)](_0x4517d9(0x150))&&_0xdd415d[_0x4517d9(0x13d)][_0x4517d9(0x134)](_0x1f0b39,_0x4517d9(0x150))&&(_0x5d7f3b[_0x4517d9(0x15c)](_0x4517d9(0x150),_0x4747c4,_0x1f0b39),_0x59e545=!0x0));}return _0x59e545&&_0x187671[_0x4517d9(0x180)](_0x5d7f3b),_0x59e545;});}[_0x4a0e94(0x158)](){const _0x10445d=_0x4a0e94,{editor:_0xfa2045}=this;_0xfa2045[_0x10445d(0x18b)][_0x10445d(0x16c)](_0x5093c7)[_0x10445d(0x14f)](_0x1e4d8e=>this[_0x10445d(0x170)](_0x1e4d8e));}[_0x4a0e94(0x12c)](){const _0xc9db28=_0x4a0e94;return this[_0xc9db28(0x130)][_0xc9db28(0x171)][_0xc9db28(0x16c)](_0xc9db28(0x12d));}[_0x4a0e94(0x140)](){const _0x345817=_0x4a0e94;return this[_0x345817(0x130)][_0x345817(0x171)][_0x345817(0x16c)](_0x345817(0x176));}[_0x4a0e94(0x170)]({container:_0x5a0750,value:_0x4ae242,digits:_0x336d10}){const _0x2ce809=_0x4a0e94,_0x1e0658=_0x5a0750[_0x2ce809(0x15b)](_0x2ce809(0x150)),_0x3b74e9=_0x5a0750[_0x2ce809(0x15b)](_0x2ce809(0x178)),_0x49d0c7=Math[_0x2ce809(0x152)](_0x4ae242)+(_0x3b74e9??0x1)-0x1;switch(_0x1e0658){case _0x2ce809(0x146):return function(_0x4b49b7,_0x85c8a6){const _0x3fa476=_0x2ce809;return String(_0x4b49b7)[_0x3fa476(0x13c)](_0x85c8a6,'0');}(_0x49d0c7,Math[_0x2ce809(0x15e)](0x2,_0x336d10));case _0x2ce809(0x14b):case _0x2ce809(0x188):return N(_0x49d0c7,!0x1);case _0x2ce809(0x18f):case _0x2ce809(0x144):return N(_0x49d0c7,!0x0);case _0x2ce809(0x156):return X(_0x49d0c7,!0x1);case _0x2ce809(0x166):return X(_0x49d0c7,!0x0);default:return String(_0x49d0c7);}}}function M(_0x2985f4,_0x3928da){const _0xb74634=_0x4a0e94,_0x4663c3=_0x3928da[_0xb74634(0x155)](_0x2985f4);return Array[_0xb74634(0x136)](_0x4663c3[_0xb74634(0x161)]())[_0xb74634(0x16d)](_0x50e4a5=>_0x50e4a5['is'](_0xb74634(0x147),'ol')&&_0x50e4a5[_0xb74634(0x177)](_0xb74634(0x13e)));}function N(_0x2f1acf,_0x46b8fc){const _0x124e55=_0x4a0e94;let _0x54847d='',_0x181a39=_0x2f1acf;for(;_0x181a39>0x0;){const _0x3fdb74=(_0x181a39-0x1)%0x1a;_0x54847d=String[_0x124e55(0x186)](0x61+_0x3fdb74)+_0x54847d,_0x181a39=Math[_0x124e55(0x152)]((_0x181a39-0x1)/0x1a);}return _0x46b8fc?_0x54847d[_0x124e55(0x17c)]():_0x54847d;}function _0x95cc(_0x51853f,_0xe0105b){const _0x2ced09=_0x2ced();return _0x95cc=function(_0x95cc6c,_0xfe0af1){_0x95cc6c=_0x95cc6c-0x12c;let _0x130f44=_0x2ced09[_0x95cc6c];return _0x130f44;},_0x95cc(_0x51853f,_0xe0105b);}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(_0xaa2dd8,_0x5d9f8c){const _0x3f3800=_0x4a0e94;let _0xeab7cb='',_0x379ee5=_0xaa2dd8;for(const {value:_0x6aba76,numeral:_0x172298}of V)for(;_0x379ee5>=_0x6aba76;)_0xeab7cb+=_0x172298,_0x379ee5-=_0x6aba76;return _0x5d9f8c?_0xeab7cb:_0xeab7cb[_0x3f3800(0x165)]();}
|
|
23
|
+
const _0x2ebb08=_0x5848;(function(_0x15f106,_0xf8dce8){const _0x5054c7=_0x5848,_0x88ef88=_0x15f106();while(!![]){try{const _0x4b7ed3=parseInt(_0x5054c7(0x1ed))/0x1+-parseInt(_0x5054c7(0x1f5))/0x2*(parseInt(_0x5054c7(0x1f3))/0x3)+parseInt(_0x5054c7(0x236))/0x4+-parseInt(_0x5054c7(0x215))/0x5+parseInt(_0x5054c7(0x22d))/0x6+-parseInt(_0x5054c7(0x1d4))/0x7+parseInt(_0x5054c7(0x1f9))/0x8*(parseInt(_0x5054c7(0x1d6))/0x9);if(_0x4b7ed3===_0xf8dce8)break;else _0x88ef88['push'](_0x88ef88['shift']());}catch(_0x1f3032){_0x88ef88['push'](_0x88ef88['shift']());}}}(_0x40ef,0x8bce2));import{Plugin as _0x15653a}from'ckeditor5/src/core.js';function _0x5848(_0x3be13d,_0x58664f){const _0x40ef1a=_0x40ef();return _0x5848=function(_0x584842,_0x285b3c){_0x584842=_0x584842-0x1d4;let _0x4f69be=_0x40ef1a[_0x584842];return _0x4f69be;},_0x5848(_0x3be13d,_0x58664f);}import{FootnotesStyleCommand as _0x10671d}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x7625f3}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0xc16c86}from'../footnotestracker.js';import{FootnotesEditing as _0x2f3fa1}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x15653a{static get[_0x2ebb08(0x1df)](){const _0x403140=_0x2ebb08;return _0x403140(0x235);}static get[_0x2ebb08(0x1e7)](){return[_0x2f3fa1,_0xc16c86];}static get[_0x2ebb08(0x1f7)](){return!0x0;}static get[_0x2ebb08(0x222)](){return!0x0;}[_0x2ebb08(0x1ee)](){const _0x5c1641=_0x2ebb08,{editor:_0x3e9770}=this;_0x3e9770[_0x5c1641(0x219)][_0x5c1641(0x204)](_0x5c1641(0x1e1),_0x5c1641(0x1ef)),_0x3e9770[_0x5c1641(0x219)][_0x5c1641(0x204)](_0x5c1641(0x1fc),0x1),_0x3e9770[_0x5c1641(0x22f)][_0x5c1641(0x20b)](_0x5c1641(0x230),new _0x10671d(_0x3e9770)),_0x3e9770[_0x5c1641(0x22f)][_0x5c1641(0x20b)](_0x5c1641(0x1e3),new _0x7625f3(_0x3e9770)),this[_0x5c1641(0x1e0)](),this[_0x5c1641(0x20a)](),this[_0x5c1641(0x21c)](),this[_0x5c1641(0x234)]();}[_0x2ebb08(0x1e0)](){const _0x48c66f=_0x2ebb08,{editor:_0x4f6d}=this,{schema:_0x3bf4be}=_0x4f6d[_0x48c66f(0x1e5)];_0x3bf4be[_0x48c66f(0x1db)](_0x48c66f(0x1f2),{'allowAttributes':[_0x48c66f(0x1eb),_0x48c66f(0x1d9)]});}[_0x2ebb08(0x20a)](){const _0x2e41da=_0x2ebb08,{editor:_0x36c4c7}=this,{conversion:_0x455d7f,model:_0x10d3b5}=_0x36c4c7,{schema:_0x29d56c}=_0x10d3b5;_0x455d7f[_0x2e41da(0x1ec)](_0x2e41da(0x1e8))[_0x2e41da(0x20b)](_0x13ea35=>{const _0x22eebd=_0x2e41da;_0x13ea35['on'](_0x22eebd(0x201),(_0x16126b,_0x503962,_0x144379)=>{const _0x329299=_0x22eebd,_0x56c3e2=_0x503962[_0x329299(0x1fb)],_0x7559e1=_0x503962[_0x329299(0x1f8)]?.[_0x329299(0x226)];_0x56c3e2[_0x329299(0x221)](_0x329299(0x1e4))&&_0x7559e1?.['is'](_0x329299(0x211),_0x329299(0x1f2))&&(function(_0x57a162,_0x36f13c,_0x4028db,_0x4fa5de){const _0x49de4f=_0x329299;if(!_0x4fa5de[_0x49de4f(0x1f1)](_0x36f13c,_0x49de4f(0x1d9)))return;let _0x37d145=0x1;const _0x6f7c7f=_0x4028db[_0x49de4f(0x22b)][_0x49de4f(0x22c)](_0x57a162,{'attributes':_0x49de4f(0x206)});if(_0x6f7c7f){const _0x48d240=Number[_0x49de4f(0x229)](_0x57a162[_0x49de4f(0x1f0)](_0x49de4f(0x206)),0xa);Number[_0x49de4f(0x217)](_0x48d240)||(_0x37d145=_0x48d240);}!_0x6f7c7f&&_0x36f13c[_0x49de4f(0x21b)](_0x49de4f(0x1d9))||_0x4028db[_0x49de4f(0x231)][_0x49de4f(0x210)](_0x49de4f(0x1d9),_0x37d145,_0x36f13c);}(_0x56c3e2,_0x7559e1,_0x144379,_0x29d56c),function(_0x5c66bc,_0x656ca0,_0x45d265,_0x341fe8){const _0x1b7c1c=_0x329299;if(!_0x341fe8[_0x1b7c1c(0x1f1)](_0x656ca0,_0x1b7c1c(0x1eb)))return;let _0x3cc09c=_0x1b7c1c(0x1ef),_0x96294b=!0x1;if(_0x45d265[_0x1b7c1c(0x22b)][_0x1b7c1c(0x22c)](_0x5c66bc,{'attributes':_0x1b7c1c(0x21f)})){const _0x451bd4={0x1:_0x1b7c1c(0x1ef),'a':_0x1b7c1c(0x1d8),'A':_0x1b7c1c(0x1dc),'i':_0x1b7c1c(0x1e9),'I':_0x1b7c1c(0x1fe)}[_0x5c66bc[_0x1b7c1c(0x1f0)](_0x1b7c1c(0x21f))];_0x451bd4&&(_0x3cc09c=_0x451bd4),_0x96294b=!0x0;}_0x45d265[_0x1b7c1c(0x22b)][_0x1b7c1c(0x22c)](_0x5c66bc,{'styles':_0x1b7c1c(0x218)})&&(_0x3cc09c=function(_0x418cd1){const _0x909010=_0x1b7c1c;switch(_0x418cd1){case _0x909010(0x1d8):return _0x909010(0x1d7);case _0x909010(0x1dc):return _0x909010(0x1f6);default:return _0x418cd1;}}(_0x5c66bc[_0x1b7c1c(0x20f)](_0x1b7c1c(0x218))),_0x96294b=!0x0),!_0x96294b&&_0x656ca0[_0x1b7c1c(0x21b)](_0x1b7c1c(0x1eb))||_0x45d265[_0x1b7c1c(0x231)][_0x1b7c1c(0x210)](_0x1b7c1c(0x1eb),_0x3cc09c,_0x656ca0);}(_0x56c3e2,_0x7559e1,_0x144379,_0x29d56c));});}),_0x455d7f[_0x2e41da(0x1ec)](_0x2e41da(0x1d5))[_0x2e41da(0x20b)](_0x298e01=>{const _0x525f21=_0x2e41da;_0x298e01['on'](_0x525f21(0x207),(_0x192b07,_0x555013,_0x5cfd89)=>{const _0xf552e9=_0x525f21;if(!_0x5cfd89[_0xf552e9(0x22b)][_0xf552e9(0x22c)](_0x555013[_0xf552e9(0x213)],_0x192b07[_0xf552e9(0x21a)]))return;const _0x31f001=M(_0x555013[_0xf552e9(0x213)],_0x5cfd89[_0xf552e9(0x208)]),{attributeNewValue:_0x57344f}=_0x555013;null==_0x57344f||0x1===_0x57344f?_0x5cfd89[_0xf552e9(0x231)][_0xf552e9(0x1dd)](_0xf552e9(0x206),_0x31f001):_0x5cfd89[_0xf552e9(0x231)][_0xf552e9(0x210)](_0xf552e9(0x206),String(_0x57344f),_0x31f001);}),_0x298e01['on'](_0x525f21(0x20c),(_0x3b7696,_0x188dd6,_0x28fba0)=>{const _0x5432ec=_0x525f21;if(!_0x28fba0[_0x5432ec(0x22b)][_0x5432ec(0x22c)](_0x188dd6[_0x5432ec(0x213)],_0x3b7696[_0x5432ec(0x21a)]))return;const _0x27329d=M(_0x188dd6[_0x5432ec(0x213)],_0x28fba0[_0x5432ec(0x208)]),{attributeNewValue:_0x128c55}=_0x188dd6;_0x128c55&&_0x5432ec(0x1ef)!==_0x128c55?_0x28fba0[_0x5432ec(0x231)][_0x5432ec(0x21e)](_0x5432ec(0x218),_0x128c55,_0x27329d):_0x28fba0[_0x5432ec(0x231)][_0x5432ec(0x1fa)](_0x5432ec(0x218),_0x27329d);});});}[_0x2ebb08(0x234)](){const _0x485454=_0x2ebb08,{editor:_0x1f808b}=this,{model:_0x1b738e}=_0x1f808b,_0x587f65=_0x1f808b[_0x485454(0x20d)][_0x485454(0x203)](_0xc16c86),_0x50e19f=this[_0x485454(0x1fd)](),_0xdad741=this[_0x485454(0x209)]();_0x1b738e[_0x485454(0x227)][_0x485454(0x216)](_0x45dbf9=>{const _0x2845fd=_0x485454,_0x537d9=_0x1b738e[_0x2845fd(0x227)][_0x2845fd(0x20e)][_0x2845fd(0x1ea)]();let _0xe75d9a=!0x1;for(const _0x23ebb2 of _0x537d9){if(_0x2845fd(0x232)!==_0x23ebb2[_0x2845fd(0x21f)]||_0x2845fd(0x233)===_0x23ebb2[_0x2845fd(0x21a)])continue;const _0x1d8c21=_0x1b738e[_0x2845fd(0x1e6)](_0x23ebb2[_0x2845fd(0x200)][_0x2845fd(0x212)]);for(const _0x478de5 of _0x1d8c21[_0x2845fd(0x205)]())_0x478de5['is'](_0x2845fd(0x211),_0x2845fd(0x1f2))&&(!_0x478de5[_0x2845fd(0x21b)](_0x2845fd(0x1d9))&&_0x1b738e[_0x2845fd(0x214)][_0x2845fd(0x1f1)](_0x478de5,_0x2845fd(0x1d9))&&(_0x45dbf9[_0x2845fd(0x210)](_0x2845fd(0x1d9),_0xdad741,_0x478de5),_0xe75d9a=!0x0),!_0x478de5[_0x2845fd(0x21b)](_0x2845fd(0x1eb))&&_0x1b738e[_0x2845fd(0x214)][_0x2845fd(0x1f1)](_0x478de5,_0x2845fd(0x1eb))&&(_0x45dbf9[_0x2845fd(0x210)](_0x2845fd(0x1eb),_0x50e19f,_0x478de5),_0xe75d9a=!0x0));}return _0xe75d9a&&_0x587f65[_0x2845fd(0x1f4)](_0x45dbf9),_0xe75d9a;});}[_0x2ebb08(0x21c)](){const _0x4242cd=_0x2ebb08,{editor:_0x1c8fea}=this;_0x1c8fea[_0x4242cd(0x20d)][_0x4242cd(0x203)](_0xc16c86)[_0x4242cd(0x1ff)](_0x339d6d=>this[_0x4242cd(0x21d)](_0x339d6d));}[_0x2ebb08(0x1fd)](){const _0x3d01f1=_0x2ebb08;return this[_0x3d01f1(0x223)][_0x3d01f1(0x219)][_0x3d01f1(0x203)](_0x3d01f1(0x1e1));}[_0x2ebb08(0x209)](){const _0xa39a4c=_0x2ebb08;return this[_0xa39a4c(0x223)][_0xa39a4c(0x219)][_0xa39a4c(0x203)](_0xa39a4c(0x1fc));}[_0x2ebb08(0x21d)]({container:_0xb91af4,value:_0x53087c,digits:_0x44879f}){const _0x1e6963=_0x2ebb08,_0x538fbe=_0xb91af4[_0x1e6963(0x1f0)](_0x1e6963(0x1eb)),_0x28cc46=_0xb91af4[_0x1e6963(0x1f0)](_0x1e6963(0x1d9)),_0x174520=Math[_0x1e6963(0x237)](_0x53087c)+(_0x28cc46??0x1)-0x1;switch(_0x538fbe){case _0x1e6963(0x22e):return function(_0xc82231,_0x3e96ea){const _0xcc8e0a=_0x1e6963;return String(_0xc82231)[_0xcc8e0a(0x1de)](_0x3e96ea,'0');}(_0x174520,Math[_0x1e6963(0x220)](0x2,_0x44879f));case _0x1e6963(0x1d8):case _0x1e6963(0x1d7):return N(_0x174520,!0x1);case _0x1e6963(0x1dc):case _0x1e6963(0x1f6):return N(_0x174520,!0x0);case _0x1e6963(0x1e9):return X(_0x174520,!0x1);case _0x1e6963(0x1fe):return X(_0x174520,!0x0);default:return String(_0x174520);}}}function _0x40ef(){const _0x40f7aa=['registerPostFixer','isNaN','list-style-type','config','name','hasAttribute','_defineFormatter','_formatFootnoteListValue','setStyle','type','max','hasClass','isPremiumPlugin','editor','toUpperCase','getChildren','parent','document','fromCharCode','parseInt','find','consumable','consume','2019474cIIkbM','decimal-leading-zero','commands','footnotesStyle','writer','insert','$text','_definePostfixer','FootnotesPropertiesEditing','2800280QZdTBz','floor','5274122lZtXmJ','downcast','9JzghBG','lower-latin','lower-alpha','footnotesListStart','toLowerCase','extend','upper-alpha','removeAttribute','padStart','pluginName','_defineSchema','footnotes.footnotesProperties.defaultListStyle','toViewElement','footnotesStart','footnotes-list','model','createRangeOn','requires','upcast','lower-roman','getChanges','footnotesListStyle','for','134929PGMWZf','init','decimal','getAttribute','checkAttribute','footnotesDefinitions','1584333GtxhVw','_updateFootnotesCounters','2nwbPDI','upper-latin','isOfficialPlugin','modelCursor','12179200MDZQKu','removeStyle','viewItem','footnotes.footnotesProperties.defaultStartIndex','_getDefaultListStyle','upper-roman','setFootnoteFormatter','position','element:ol','from','get','define','getItems','start','attribute:footnotesListStart:footnotesDefinitions','mapper','_getDefaultStartIndex','_defineConverters','add','attribute:footnotesListStyle:footnotesDefinitions','plugins','differ','getStyle','setAttribute','element','nodeAfter','item','schema','4198895LcZrSj'];_0x40ef=function(){return _0x40f7aa;};return _0x40ef();}function M(_0x766c9b,_0x1f253f){const _0x237c5b=_0x2ebb08,_0x4abf44=_0x1f253f[_0x237c5b(0x1e2)](_0x766c9b);return Array[_0x237c5b(0x202)](_0x4abf44[_0x237c5b(0x225)]())[_0x237c5b(0x22a)](_0x484dc4=>_0x484dc4['is'](_0x237c5b(0x211),'ol')&&_0x484dc4[_0x237c5b(0x221)](_0x237c5b(0x1e4)));}function N(_0x2bf9d1,_0x1d05cd){const _0x30aa2e=_0x2ebb08;let _0x4bd6d3='',_0x4fcef6=_0x2bf9d1;for(;_0x4fcef6>0x0;){const _0x4cda14=(_0x4fcef6-0x1)%0x1a;_0x4bd6d3=String[_0x30aa2e(0x228)](0x61+_0x4cda14)+_0x4bd6d3,_0x4fcef6=Math[_0x30aa2e(0x237)]((_0x4fcef6-0x1)/0x1a);}return _0x1d05cd?_0x4bd6d3[_0x30aa2e(0x224)]():_0x4bd6d3;}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(_0x53b65d,_0x1f1812){const _0x3c86c1=_0x2ebb08;let _0x42b55b='',_0x3f831a=_0x53b65d;for(const {value:_0x1025f8,numeral:_0x1d7b45}of V)for(;_0x3f831a>=_0x1025f8;)_0x42b55b+=_0x1d7b45,_0x3f831a-=_0x1025f8;return _0x1f1812?_0x42b55b:_0x42b55b[_0x3c86c1(0x1da)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x38fe40,ButtonView as _0x3b815f,ContextualBalloon as _0x42ad31,createDropdown as _0x30e5e8}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x17455a}from'ckeditor5/src/widget.js';import{Plugin as _0x257ae6}from'ckeditor5/src/core.js';import{IconFootnote as _0x1f1ffb,IconListStyleDecimal as _0x410824,IconListStyleDecimalLeadingZero as _0x25ef2b,IconListStyleLowerLatin as _0x467a90,IconListStyleLowerRoman as _0xa0d391,IconListStyleUpperLatin as _0x30b48d,IconListStyleUpperRoman as _0x37d5c1}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x2e3c7d}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x323ad2}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x257ae6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x42ad31,_0x17455a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x305aa6}=this,{componentFactory:_0xd60d5b}=_0x305aa6['ui'];_0x305aa6['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xd60d5b['add']('footnotesStyle',function(_0x405aa1){return _0x5c27c4=>{const {t:t}=_0x5c27c4,_0x2d57af=_0x405aa1['commands']['get']('footnotesStyle'),_0x38256c=_0x30e5e8(_0x5c27c4),{buttonView:_0x10547d}=_0x38256c;return _0x38256c['class']='ck-footnotes-styles-dropdown',_0x38256c['bind']('isEnabled')['to'](_0x2d57af,'isEnabled'),_0x10547d['set']({'label':t('Footnotes\x20style'),'icon':_0x1f1ffb,'tooltip':!0x0}),_0x38256c['once']('change:isOpen',()=>{const _0xbd7e52=function({editor:_0x496c42,dropdownView:_0x1d0166}){const {t:t}=_0x496c42['locale'],_0x503be0=t('Footnotes\x20definitions\x20styles'),_0x4f6f44=function(_0x24cd3f){const t=_0x24cd3f['locale']['t'],_0x39c436=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x410824},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x25ef2b},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xa0d391},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x37d5c1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x467a90},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x30b48d}];return _0x39c436['map'](function(_0x1d9fa8){const _0x297956=_0x1d9fa8['locale'];return({label:_0x2a8e8f,icon:_0x11ef38,tooltip:_0x5e5ece,style:_0x5f7a14})=>{const _0x4eedd2=_0x1d9fa8['commands']['get']('footnotesStyle'),_0x1adc92=new _0x3b815f(_0x297956);return _0x1adc92['set']({'label':_0x2a8e8f,'icon':_0x11ef38,'tooltip':_0x5e5ece}),_0x1adc92['bind']('isOn')['to'](_0x4eedd2,'value',_0x21275a=>_0x21275a===_0x5f7a14),_0x1adc92['bind']('isEnabled')['to'](_0x4eedd2,'isEnabled'),_0x1adc92['on']('execute',()=>{_0x1d9fa8['execute']('footnotesStyle',{'value':_0x5f7a14}),_0x1d9fa8['editing']['view']['focus']();}),_0x1adc92;};}(_0x24cd3f));}(_0x496c42),_0x2a2889=new _0x2e3c7d(_0x496c42['locale'],{'styleGridAriaLabel':_0x503be0,'styleButtonViews':_0x4f6f44}),_0xb37a02=_0x496c42['commands']['get']('footnotesStart');return _0x2a2889['startIndexFieldView']['bind']('isEnabled')['to'](_0xb37a02),_0x2a2889['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xb37a02),_0x2a2889['on']('footnotesListStart',(_0x388a5e,_0x59b93d)=>{_0x496c42['execute']('footnotesStart',{'value':_0x59b93d['startIndex']});}),_0x2a2889['delegate']('execute')['to'](_0x1d0166),_0x2a2889;}({'editor':_0x405aa1,'dropdownView':_0x38256c});_0x38256c['panelView']['children']['add'](_0xbd7e52);}),_0x38256c;};}(_0x305aa6));}['afterInit'](){const {editor:_0x23d465}=this,{t:t}=_0x23d465['locale'],_0x2dd9fd=_0x23d465['plugins']['get'](_0x17455a),{defaultPositions:_0x3dbeba}=_0x38fe40;_0x2dd9fd['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x23d465['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x33d6fe=>{let _0x6593e6=_0x33d6fe['getFirstPosition']()?.['parent'];return _0x6593e6?.['is']('$text')&&(_0x6593e6=_0x6593e6['parent']),_0x6593e6?.['is']('element')?_0x6593e6['findAncestor'](_0x323ad2):null;},'positions':[_0x3dbeba['southArrowNorth'],_0x3dbeba['southArrowNorthMiddleWest'],_0x3dbeba['southArrowNorthMiddleEast'],_0x3dbeba['southArrowNorthWest'],_0x3dbeba['southArrowNorthEast'],_0x3dbeba['northArrowSouth'],_0x3dbeba['northArrowSouthMiddleWest'],_0x3dbeba['northArrowSouthMiddleEast'],_0x3dbeba['northArrowSouthWest'],_0x3dbeba['northArrowSouthEast'],_0x3dbeba['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x579f7b,View as _0x31b880,ViewCollection as _0x24aed5,FocusCycler as _0x56eb2f,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 _0x31b880{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x24aed5();['focusCycler'];constructor(_0x3811a7,{styleButtonViews:_0x3710ac,styleGridAriaLabel:_0x540930}){super(_0x3811a7),(this['focusCycler']=new _0x56eb2f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3710ac,_0x540930),[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 _0x43433c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x43433c['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 _0x113fb3=_0x36020b=>_0x36020b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x113fb3),this['keystrokes']['set']('arrowleft',_0x113fb3),this['keystrokes']['set']('arrowup',_0x113fb3),this['keystrokes']['set']('arrowdown',_0x113fb3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a0560,_0x409ba5){const _0x2e957a=new _0x31b880(this['locale']);return _0x2e957a['children']=_0x2e957a['createCollection'](),_0x2e957a['children']['addMany'](_0x5a0560),_0x2e957a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x409ba5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2e957a['children']}),_0x2e957a['children']['delegate']('execute')['to'](this),_0x2e957a['focus']=function(){for(const _0x2a49dd of this['children'])if(_0x2a49dd instanceof _0x579f7b&&_0x2a49dd['isOn'])return void _0x2a49dd['focus']();this['children']['first']['focus']();},_0x2e957a['focusTracker']=new ot(),_0x2e957a['keystrokes']=new rt(),_0x2e957a['render'](),_0x2e957a['keystrokes']['listenTo'](_0x2e957a['element']),this['children']['add'](_0x2e957a),_0x2e957a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x386ab1=this['_createStartIndexPropertyView'](),_0x3a329a=[_0x386ab1],_0x156d9c=new st(this['locale'],_0x3a329a);return _0x156d9c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x156d9c['buttonView']['bind']('isEnabled')['toMany'](_0x3a329a,'isEnabled',(..._0x4ac940)=>_0x4ac940['some'](_0xeff40b=>_0xeff40b)),_0x156d9c['buttonView']['on']('change:isEnabled',(_0x5764bb,_0xd0b80f,_0x3272d7)=>{_0x3272d7||(_0x156d9c['isCollapsed']=!0x0);}),this['children']['add'](_0x156d9c),[_0x386ab1,_0x156d9c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4831ce=new it(this['locale'],et);return _0x4831ce['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4831ce['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4831ce['fieldView']['on']('input',()=>{const _0x1d826d=_0x4831ce['fieldView']['element'],_0x31c9c3=_0x1d826d['valueAsNumber'];Number['isNaN'](_0x31c9c3)?_0x4831ce['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1d826d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x31c9c3}):_0x4831ce['errorText']=t(_0x31c9c3<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4831ce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x46ae6f=_0x4bd8;(function(_0x3ea6a4,_0x1a03a){var _0x4eeacf=_0x4bd8,_0x39cc13=_0x3ea6a4();while(!![]){try{var _0x52a402=parseInt(_0x4eeacf(0x6b))/0x1+parseInt(_0x4eeacf(0x69))/0x2+-parseInt(_0x4eeacf(0x75))/0x3*(-parseInt(_0x4eeacf(0x72))/0x4)+parseInt(_0x4eeacf(0x71))/0x5*(parseInt(_0x4eeacf(0x73))/0x6)+parseInt(_0x4eeacf(0x6d))/0x7*(-parseInt(_0x4eeacf(0x6f))/0x8)+parseInt(_0x4eeacf(0x74))/0x9+-parseInt(_0x4eeacf(0x68))/0xa;if(_0x52a402===_0x1a03a)break;else _0x39cc13['push'](_0x39cc13['shift']());}catch(_0x4a4b18){_0x39cc13['push'](_0x39cc13['shift']());}}}(_0x2d36,0x7032f));import{Plugin as _0x38bf45}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x176f7d}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x540a1c}from'./footnotesproperties/footnotespropertiesui.js';function _0x4bd8(_0x7950ad,_0x497119){var _0x2d36be=_0x2d36();return _0x4bd8=function(_0x4bd88a,_0x5cb8a0){_0x4bd88a=_0x4bd88a-0x67;var _0x3bd266=_0x2d36be[_0x4bd88a];return _0x3bd266;},_0x4bd8(_0x7950ad,_0x497119);}export class FootnotesProperties extends _0x38bf45{static get[_0x46ae6f(0x67)](){var _0x338706=_0x46ae6f;return _0x338706(0x6c);}static get[_0x46ae6f(0x6a)](){return[_0x176f7d,_0x540a1c];}static get[_0x46ae6f(0x70)](){return!0x0;}static get[_0x46ae6f(0x6e)](){return!0x0;}}function _0x2d36(){var _0x447adc=['FootnotesProperties','168RKiQCx','isPremiumPlugin','215984GxeERg','isOfficialPlugin','4575VhtsDI','284XQzdUY','4848wDmyir','4943673DExaXa','31047vlxbqy','pluginName','14733060xEgxmo','933562OxXTWf','requires','90648yuFZlV'];_0x2d36=function(){return _0x447adc;};return _0x2d36();}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x127bfe=_0x29c6;(function(_0x2b7f43,_0x31fb61){const _0x570d06=_0x29c6,_0x47d99c=_0x2b7f43();while(!![]){try{const _0x5b5620=parseInt(_0x570d06(0xf1))/0x1+-parseInt(_0x570d06(0xef))/0x2*(-parseInt(_0x570d06(0x107))/0x3)+-parseInt(_0x570d06(0x128))/0x4+-parseInt(_0x570d06(0xdf))/0x5*(parseInt(_0x570d06(0xd1))/0x6)+-parseInt(_0x570d06(0x10a))/0x7*(parseInt(_0x570d06(0xe5))/0x8)+-parseInt(_0x570d06(0xfb))/0x9*(parseInt(_0x570d06(0xde))/0xa)+parseInt(_0x570d06(0x11c))/0xb;if(_0x5b5620===_0x31fb61)break;else _0x47d99c['push'](_0x47d99c['shift']());}catch(_0x2c937b){_0x47d99c['push'](_0x47d99c['shift']());}}}(_0x44a2,0x8e175));function _0x29c6(_0x34da9b,_0x36c346){const _0x44a294=_0x44a2();return _0x29c6=function(_0x29c66e,_0x539b5f){_0x29c66e=_0x29c66e-0xca;let _0x181c4c=_0x44a294[_0x29c66e];return _0x181c4c;},_0x29c6(_0x34da9b,_0x36c346);}function _0x44a2(){const _0x432a1e=['document','unshift','map','compareWith','set','move','createRangeOn','_footnoteRefsTracker','6565473kpJmdh','enqueueChange','remove','pluginName','after','_footnotesDefinitions','definition','_handleFootnotesDefinitionsObjectChanges','_footnotes','_handleRemoveFootnoteReferenceById','change:data','createPositionBefore','42IRbjFA','_handleFootnotesDefinitionsObjectSync','isPremiumPlugin','224zlWlwX','footnoteId','find','setFootnoteFormatter','getFootnote','paragraph','$graveyard','_insertEmptyFootnotesDefinitionsContainer','getFootnotesFormatter','listenTo','parent','isEqual','_handleFootnoteDefinitionsChanges','getAttribute','_footnoteDefsTracker','min','low','_ensureFootnotesDefinitionsContainerExists','9503703zvpQCA','insert','getRootNames','reset','_updateFootnotesCounters','createElement','registerPostFixer','some','_handleMovedFootnoteReference','footnoteRef','singleton','editor','1158112pKlheD','_footnoteFormatter','config','footnoteInlineContent','footnoteDefinition','splice','length','getChanges','getFootnotes','_footnoteDefsContainerTracker','isOfficialPlugin','_handleFootnoteReferencesChanges','createRangeIn','push','createPositionAt','12spXyUu','footnoteCounter','getChildren','from','before','differ','_handleInsertedFootnoteReference','indexOf','setAttribute','FootnotesTracker','init','get','_updateFootnoteRefCounter','10cQVUNT','497885PXtskZ','footnotes.multiBlock','high','has','end','footnotesDefinitions','136272VDhQMg','_sortFootnoteDefinitions','add','model','_ensureFootnotesReferencesHaveProperOrder','append','childCount','reference','rootName','getFootnotesDefinitionsObjectElement','140188zQDcMI','root','499983axEJwM','findIndex'];_0x44a2=function(){return _0x432a1e;};return _0x44a2();}import{Plugin as _0x193722}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x52a234}from'./modelelementtracker.js';export class FootnotesTracker extends _0x193722{[_0x127bfe(0x103)]=[];[_0x127bfe(0x100)]=null;[_0x127bfe(0x129)]=null;[_0x127bfe(0xcb)];[_0x127bfe(0xfa)];[_0x127bfe(0x118)];static get[_0x127bfe(0xfe)](){const _0x349c36=_0x127bfe;return _0x349c36(0xda);}static get[_0x127bfe(0xcc)](){return!0x0;}static get[_0x127bfe(0x109)](){return!0x0;}constructor(_0x2f53c6){const _0x55abd2=_0x127bfe;super(_0x2f53c6),this[_0x55abd2(0xcb)]=new _0x52a234(this[_0x55abd2(0x127)][_0x55abd2(0xe8)],{'elementName':_0x55abd2(0xe4),'getElementKey':()=>_0x55abd2(0x126)}),this[_0x55abd2(0xfa)]=new _0x52a234(this[_0x55abd2(0x127)][_0x55abd2(0xe8)],{'elementName':_0x55abd2(0x125),'getElementKey':_0x8cc3e9=>_0x8cc3e9[_0x55abd2(0x117)](_0x55abd2(0x10b))}),this[_0x55abd2(0x118)]=new _0x52a234(this[_0x55abd2(0x127)][_0x55abd2(0xe8)],{'elementName':_0x55abd2(0x12c),'getElementKey':_0x1d5025=>_0x1d5025[_0x55abd2(0x117)](_0x55abd2(0x10b))});}[_0x127bfe(0xdb)](){const _0x25440a=_0x127bfe,{editor:_0x443056}=this,{model:_0x46cf4f,data:_0x4c27a0}=_0x443056;_0x46cf4f[_0x25440a(0xf3)][_0x25440a(0x122)](_0x91d5cb=>{const _0xaa5b56=_0x25440a,_0x44c4b0=_0x46cf4f[_0xaa5b56(0xf3)][_0xaa5b56(0xd6)][_0xaa5b56(0x12f)]();let _0x488486=!0x1;return this[_0xaa5b56(0x102)](_0x91d5cb,_0x44c4b0)&&(_0x488486=!0x0),this[_0xaa5b56(0x116)](_0x91d5cb,_0x44c4b0)&&(_0x488486=!0x0),this[_0xaa5b56(0xcd)](_0x91d5cb,_0x44c4b0)&&(_0x488486=!0x0),this[_0xaa5b56(0xe9)](_0x91d5cb)&&(_0x488486=!0x0),this[_0xaa5b56(0x108)](_0x91d5cb)&&(_0x488486=!0x0),this[_0xaa5b56(0xe6)](_0x91d5cb)&&(_0x488486=!0x0),_0x488486;}),this[_0x25440a(0x113)](_0x46cf4f[_0x25440a(0xf3)],_0x25440a(0x105),()=>{const _0x2e4a4e=_0x25440a;_0x46cf4f[_0x2e4a4e(0xfc)]({'isUndoable':!0x1},_0xf790f2=>{const _0x330e9d=_0x2e4a4e;this[_0x330e9d(0x11b)](_0xf790f2);});},{'priority':_0x25440a(0x11a)}),this[_0x25440a(0x113)](_0x4c27a0,_0x25440a(0xf7),()=>{const _0x4eecf5=_0x25440a;this[_0x4eecf5(0x103)]=[],this[_0x4eecf5(0xcb)][_0x4eecf5(0x11f)](),this[_0x4eecf5(0xfa)][_0x4eecf5(0x11f)](),this[_0x4eecf5(0x118)][_0x4eecf5(0x11f)]();},{'priority':_0x25440a(0xe1)});}[_0x127bfe(0xee)](){const _0xdbed58=_0x127bfe;return this[_0xdbed58(0x100)];}[_0x127bfe(0x10e)](_0x25c391){const _0x46b571=_0x127bfe;return this[_0x46b571(0x103)][_0x46b571(0x10c)](_0x258161=>_0x258161['id']===_0x25c391)||null;}[_0x127bfe(0xca)](){const _0x1ae264=_0x127bfe;return Array[_0x1ae264(0xd4)](this[_0x1ae264(0x103)]);}[_0x127bfe(0x112)](){const _0x2a3867=_0x127bfe;return this[_0x2a3867(0x129)];}[_0x127bfe(0x10d)](_0xbdc89e){const _0x41d8b6=_0x127bfe;this[_0x41d8b6(0x129)]=_0xbdc89e;}[_0x127bfe(0x120)](_0x2e24c7,_0x31b857=0x0){const _0x24a16c=_0x127bfe;let _0x3e5457=!0x1;for(let _0x1a351c=_0x31b857;_0x1a351c<this[_0x24a16c(0x103)][_0x24a16c(0x12e)];_0x1a351c++)this[_0x24a16c(0xdd)](_0x2e24c7,_0x1a351c)&&(_0x3e5457=!0x0);return _0x3e5457;}[_0x127bfe(0x111)](_0x51814c,_0xeb58f){const _0x5d833a=_0x127bfe,_0x57155c=_0x51814c[_0x5d833a(0x121)](_0x5d833a(0xe4),{});return _0x51814c[_0x5d833a(0xea)](_0x57155c,_0xeb58f),this[_0x5d833a(0x100)]=_0x57155c,_0x57155c;}[_0x127bfe(0x11b)](_0x2805d6){const _0x32d858=_0x127bfe;if(!this[_0x32d858(0x103)][_0x32d858(0x12e)]||this[_0x32d858(0x100)])return;const _0x328a02=this[_0x32d858(0x103)][0x0][_0x32d858(0xec)][_0x32d858(0xf0)],_0x2486fd=this[_0x32d858(0x111)](_0x2805d6,_0x328a02);for(const _0xc40e48 of this[_0x32d858(0x103)])_0xc40e48[_0x32d858(0x101)][_0x32d858(0x114)]||_0x2805d6[_0x32d858(0x11d)](_0xc40e48[_0x32d858(0x101)],_0x2486fd,_0x32d858(0xe3));this[_0x32d858(0x120)](_0x2805d6);}[_0x127bfe(0x102)](_0x5e25f5,_0x125925){const _0x5ab2e0=_0x127bfe;let _0xc37130=!0x1;const {inserted:_0x108d1d,removed:_0x5a7b57,moved:_0x518beb}=this[_0x5ab2e0(0xcb)][_0x5ab2e0(0x12f)](_0x125925);if(_0x518beb[_0x5ab2e0(0x12e)]&&(this[_0x5ab2e0(0x100)]=_0x518beb[0x0]),_0x108d1d[_0x5ab2e0(0x12e)]){if(_0x108d1d[_0x5ab2e0(0x12e)]>0x1||this[_0x5ab2e0(0x100)]&&_0x108d1d[_0x5ab2e0(0x123)](_0xe1279b=>_0xe1279b!==this[_0x5ab2e0(0x100)])){const _0x40aedc=_0x5e25f5[_0x5ab2e0(0x121)](_0x5ab2e0(0xe4),{}),_0x5a1515=[];this[_0x5ab2e0(0x100)]&&_0x5a1515[_0x5ab2e0(0xcf)](this[_0x5ab2e0(0x100)]),_0x5a1515[_0x5ab2e0(0xcf)](..._0x108d1d),_0x5e25f5[_0x5ab2e0(0x11d)](_0x40aedc,_0x5a1515[0x0],_0x5ab2e0(0xd5));for(const _0x21702e of _0x5a1515)_0x5e25f5[_0x5ab2e0(0xf8)](_0x5e25f5[_0x5ab2e0(0xce)](_0x21702e),_0x5e25f5[_0x5ab2e0(0xd0)](_0x40aedc,_0x5ab2e0(0xe3))),_0x5e25f5[_0x5ab2e0(0xfd)](_0x21702e);this[_0x5ab2e0(0x100)]=_0x40aedc,this[_0x5ab2e0(0x120)](_0x5e25f5),_0xc37130=!0x0;}else this[_0x5ab2e0(0x100)]=_0x108d1d[0x0];}if(_0x5a7b57[_0x5ab2e0(0x12e)]&&_0x5ab2e0(0x110)===this[_0x5ab2e0(0x100)]?.[_0x5ab2e0(0xf0)][_0x5ab2e0(0xed)]){for(const _0x156f61 of this[_0x5ab2e0(0x103)])_0x5e25f5[_0x5ab2e0(0xfd)](_0x156f61[_0x5ab2e0(0xec)]),_0xc37130=!0x0;this[_0x5ab2e0(0x103)]=[],this[_0x5ab2e0(0x100)]=null;}return _0xc37130;}[_0x127bfe(0x116)](_0x768e50,_0x1a086a){const _0xfaa18f=_0x127bfe;let _0x3751e1=!0x1;const _0x51356a=this[_0xfaa18f(0x127)][_0xfaa18f(0x12a)][_0xfaa18f(0xdc)](_0xfaa18f(0xe0)),{inserted:_0x40fc51,moved:_0x40c111}=this[_0xfaa18f(0x118)][_0xfaa18f(0x12f)](_0x1a086a);for(const _0x3d406d of[..._0x40c111,..._0x40fc51]){const _0x52d383=_0x3d406d[_0xfaa18f(0x117)](_0xfaa18f(0x10b)),_0x1144f4=this[_0xfaa18f(0x10e)](_0x52d383);_0x1144f4&&(_0x1144f4[_0xfaa18f(0x101)]=_0x3d406d),_(_0x768e50,_0x51356a,_0x3d406d)&&(_0x3751e1=!0x0);}return _0x3751e1;}[_0x127bfe(0xcd)](_0x1968d8,_0x257f50){const _0x136f07=_0x127bfe;let _0x467f15=!0x1;const {removed:_0x3673f8,inserted:_0x4b0b46,moved:_0x46ebd0}=this[_0x136f07(0xfa)][_0x136f07(0x12f)](_0x257f50);for(const _0xae887a of _0x3673f8)this[_0x136f07(0x104)](_0x1968d8,_0xae887a)&&(_0x467f15=!0x0);for(const _0x28b20b of _0x4b0b46)this[_0x136f07(0xd7)](_0x1968d8,_0x28b20b)&&(_0x467f15=!0x0);for(const _0x21b622 of _0x46ebd0)this[_0x136f07(0x124)](_0x1968d8,_0x21b622)&&(_0x467f15=!0x0);return _0x467f15;}[_0x127bfe(0x108)](_0x2e0028){const _0x52a1d4=_0x127bfe;if(!this[_0x52a1d4(0x100)])return!0x1;let _0x38a04b=!0x1;if(this[_0x52a1d4(0x100)][_0x52a1d4(0xeb)]!==this[_0x52a1d4(0x103)][_0x52a1d4(0x12e)]){const _0x2fdd71=[];for(const _0x54e5d0 of this[_0x52a1d4(0x100)][_0x52a1d4(0xd3)]()){const _0x520fbc=_0x54e5d0[_0x52a1d4(0x117)](_0x52a1d4(0x10b));this[_0x52a1d4(0x10e)](_0x520fbc)||(_0x2fdd71[_0x52a1d4(0xf4)](_0x54e5d0),_0x38a04b=!0x0);}for(const _0x561e00 of _0x2fdd71)_0x2e0028[_0x52a1d4(0xfd)](_0x561e00);}const _0x349862=new Set(),_0x514e1e=[];for(const _0x45edcd of this[_0x52a1d4(0x100)][_0x52a1d4(0xd3)]()){const _0x566ff6=_0x45edcd[_0x52a1d4(0x117)](_0x52a1d4(0x10b));_0x349862[_0x52a1d4(0xe2)](_0x566ff6)?(_0x514e1e[_0x52a1d4(0xf4)](_0x45edcd),_0x38a04b=!0x0):_0x349862[_0x52a1d4(0xe7)](_0x566ff6);}for(const _0xe7ba80 of _0x514e1e)_0x2e0028[_0x52a1d4(0xfd)](_0xe7ba80);return this[_0x52a1d4(0x100)][_0x52a1d4(0xeb)]||(_0x2e0028[_0x52a1d4(0xfd)](this[_0x52a1d4(0x100)]),this[_0x52a1d4(0x100)]=null,_0x38a04b=!0x0),_0x38a04b;}[_0x127bfe(0xd7)](_0x1e860e,_0x4ea1df){const _0x150c0d=_0x127bfe;if(this[_0x150c0d(0x103)][_0x150c0d(0x10c)](_0x43c4b7=>_0x43c4b7[_0x150c0d(0xec)]===_0x4ea1df))return!0x1;let _0x3ef6c7=!0x1;const _0x44072d=_0x4ea1df[_0x150c0d(0x117)](_0x150c0d(0x10b)),_0x45a994=this[_0x150c0d(0x103)][_0x150c0d(0xf2)](_0x413fdf=>_0x413fdf['id']===_0x44072d);-0x1!==_0x45a994&&(_0x1e860e[_0x150c0d(0xfd)](this[_0x150c0d(0x103)][_0x45a994][_0x150c0d(0xec)]),this[_0x150c0d(0x103)][_0x150c0d(0x12d)](_0x45a994,0x1),_0x3ef6c7=!0x0);let _0x48a534=this[_0x150c0d(0x100)]?function(_0x19b81f,_0x3d0dff){const _0x5138c7=_0x150c0d;for(const _0x53269e of _0x19b81f[_0x5138c7(0xd3)]())if(_0x53269e[_0x5138c7(0x117)](_0x5138c7(0x10b))===_0x3d0dff)return _0x53269e;return null;}(this[_0x150c0d(0x100)],_0x44072d):null;_0x48a534||(_0x48a534=_0x1e860e[_0x150c0d(0x121)](_0x150c0d(0x12c),{'footnoteId':_0x44072d}),this[_0x150c0d(0x100)]&&(_0x1e860e[_0x150c0d(0x11d)](_0x48a534,this[_0x150c0d(0x100)],_0x150c0d(0xe3)),_0x3ef6c7=!0x0));const _0x3ba5ce={'id':_0x44072d,'reference':_0x4ea1df,'definition':_0x48a534},_0x53c4f9=I(this[_0x150c0d(0x127)][_0x150c0d(0xe8)],this[_0x150c0d(0x103)],_0x4ea1df);this[_0x150c0d(0x103)][_0x150c0d(0x12d)](_0x53c4f9,0x0,_0x3ba5ce);let _0x3bf466=_0x53c4f9;return-0x1!==_0x45a994&&(_0x3bf466=Math[_0x150c0d(0x119)](_0x53c4f9,_0x45a994)),this[_0x150c0d(0x120)](_0x1e860e,_0x3bf466)&&(_0x3ef6c7=!0x0),_0x3ef6c7;}[_0x127bfe(0x104)](_0x31594b,_0x374c75){const _0xe3be4f=_0x127bfe,_0x56a65a=this[_0xe3be4f(0x103)][_0xe3be4f(0xf2)](_0x2e1e4c=>_0x2e1e4c['id']===_0x374c75);if(-0x1===_0x56a65a)return!0x1;let _0x26a35a=!0x1;const _0x485d5d=this[_0xe3be4f(0x103)][_0x56a65a];return _0xe3be4f(0x110)!==_0x485d5d[_0xe3be4f(0x101)][_0xe3be4f(0xf0)][_0xe3be4f(0xed)]&&(_0x31594b[_0xe3be4f(0xfd)](_0x485d5d[_0xe3be4f(0x101)]),_0x26a35a=!0x0),this[_0xe3be4f(0x103)][_0xe3be4f(0x12d)](_0x56a65a,0x1),this[_0xe3be4f(0x120)](_0x31594b,_0x56a65a)&&(_0x26a35a=!0x0),_0x26a35a;}[_0x127bfe(0x124)](_0x3462aa,_0x5781db){const _0xfb600a=_0x127bfe,_0x3e179b=_0x5781db[_0xfb600a(0x117)](_0xfb600a(0x10b)),_0x3b8470=this[_0xfb600a(0x103)][_0xfb600a(0xf2)](_0x503295=>_0x503295['id']===_0x3e179b),_0x5ab071=this[_0xfb600a(0x103)][_0x3b8470];let _0x29d29a=!0x1;_0x5ab071[_0xfb600a(0xec)]=_0x5781db,this[_0xfb600a(0x103)][_0xfb600a(0x12d)](_0x3b8470,0x1);const _0x3f5bb8=I(this[_0xfb600a(0x127)][_0xfb600a(0xe8)],this[_0xfb600a(0x103)],_0x5781db);return this[_0xfb600a(0x103)][_0xfb600a(0x12d)](_0x3f5bb8,0x0,_0x5ab071),this[_0xfb600a(0x120)](_0x3462aa,Math[_0xfb600a(0x119)](_0x3b8470,_0x3f5bb8))&&(_0x29d29a=!0x0),_0x29d29a;}[_0x127bfe(0xdd)](_0x4337be,_0x11b1cd){const _0x4c895b=_0x127bfe;if(!this[_0x4c895b(0x100)])return!0x1;const _0x2b6f03=this[_0x4c895b(0x103)][_0x11b1cd];let _0x5da184;return _0x5da184=this[_0x4c895b(0x129)]?this[_0x4c895b(0x129)]({'footnote':_0x2b6f03,'container':this[_0x4c895b(0x100)],'digits':String(this[_0x4c895b(0x103)][_0x4c895b(0x12e)])[_0x4c895b(0x12e)],'value':_0x11b1cd+0x1}):String(_0x11b1cd+0x1),_0x2b6f03[_0x4c895b(0xec)][_0x4c895b(0x117)](_0x4c895b(0xd2))!=_0x5da184&&(_0x4337be[_0x4c895b(0xd9)](_0x4c895b(0xd2),_0x5da184,_0x2b6f03[_0x4c895b(0xec)]),!0x0);}[_0x127bfe(0xe6)](_0x5946fd){const _0x207d0f=_0x127bfe;if(!this[_0x207d0f(0x100)]||this[_0x207d0f(0x103)][_0x207d0f(0x12e)]<0x2)return!0x1;if(function(_0x1152ea,_0x43490a){const _0x5a7b45=_0x207d0f;if(_0x1152ea[_0x5a7b45(0x12e)]!==_0x43490a[_0x5a7b45(0x12e)])return!0x1;for(let _0x37a037=0x0;_0x37a037<_0x1152ea[_0x5a7b45(0x12e)];_0x37a037++)if(_0x1152ea[_0x37a037]!==_0x43490a[_0x37a037])return!0x1;return!0x0;}(this[_0x207d0f(0x103)][_0x207d0f(0xf5)](_0x206646=>_0x206646['id']),Array[_0x207d0f(0xd4)](this[_0x207d0f(0x100)][_0x207d0f(0xd3)]())[_0x207d0f(0xf5)](_0x2cb759=>_0x2cb759[_0x207d0f(0x117)](_0x207d0f(0x10b)))))return!0x1;let _0x5e8fb1=!0x1;for(let _0x1a9213=0x0;_0x1a9213<this[_0x207d0f(0x103)][_0x207d0f(0x12e)];_0x1a9213++){const _0x56c6ee=this[_0x207d0f(0x103)][_0x1a9213],_0x67b01a=_0x5946fd[_0x207d0f(0x106)](_0x56c6ee[_0x207d0f(0x101)]),_0xfac195=_0x5946fd[_0x207d0f(0xd0)](this[_0x207d0f(0x100)],_0x1a9213);_0x67b01a[_0x207d0f(0x115)](_0xfac195)||(_0x5946fd[_0x207d0f(0xf8)](_0x5946fd[_0x207d0f(0xf9)](_0x56c6ee[_0x207d0f(0x101)]),_0xfac195),_0x5e8fb1=!0x0);}return _0x5e8fb1;}[_0x127bfe(0xe9)](_0x52525){const _0x57c194=_0x127bfe;if(!this[_0x57c194(0x103)][_0x57c194(0x12e)])return!0x1;const {model:_0x4fc709}=this[_0x57c194(0x127)];let _0x7b3fef=!0x1;for(let _0x545460=0x0;_0x545460<this[_0x57c194(0x103)][_0x57c194(0x12e)]-0x1;_0x545460++){const _0x820092=this[_0x57c194(0x103)][_0x545460],_0x1e1e1e=this[_0x57c194(0x103)][_0x545460+0x1],_0x1e408c=_0x4fc709[_0x57c194(0x106)](_0x820092[_0x57c194(0xec)]),_0x1b5040=_0x4fc709[_0x57c194(0x106)](_0x1e1e1e[_0x57c194(0xec)]);_0x57c194(0xff)===_0x1e408c[_0x57c194(0xf6)](_0x1b5040)&&(this[_0x57c194(0x124)](_0x52525,_0x820092[_0x57c194(0xec)]),_0x545460=-0x1,_0x7b3fef=!0x0);}return _0x7b3fef;}}function _(_0x14db7e,_0x326bf5,_0x5c3698){const _0x388a61=_0x127bfe;if(_0x5c3698[_0x388a61(0xeb)])return!0x1;const _0x51c7ab=_0x326bf5?_0x388a61(0x10f):_0x388a61(0x12b);return _0x14db7e[_0x388a61(0x11d)](_0x14db7e[_0x388a61(0x121)](_0x51c7ab),_0x5c3698),!0x0;}function I(_0x5e7b92,_0x2c859a,_0x261fb6){const _0x1c9fb1=_0x127bfe;if(0x0===_0x2c859a[_0x1c9fb1(0x12e)])return 0x0;const _0x5bc849=_0x5e7b92[_0x1c9fb1(0x106)](_0x261fb6);for(let _0x308386=0x0;_0x308386<_0x2c859a[_0x1c9fb1(0x12e)];_0x308386++){const _0x15964b=_0x2c859a[_0x308386],_0x3dd3c4=_0x5e7b92[_0x1c9fb1(0x106)](_0x15964b[_0x1c9fb1(0xec)]);if(_0x1c9fb1(0xd5)===_0x5bc849[_0x1c9fb1(0xf6)](_0x3dd3c4))return _0x308386;}const _0x5a1dde=_0x261fb6[_0x1c9fb1(0xf0)];let _0x54266e=-0x1;for(let _0x1dc8d2=_0x2c859a[_0x1c9fb1(0x12e)]-0x1;_0x1dc8d2>=0x0;_0x1dc8d2--)if(_0x2c859a[_0x1dc8d2][_0x1c9fb1(0xec)][_0x1c9fb1(0xf0)]===_0x5a1dde){_0x54266e=_0x1dc8d2;break;}if(-0x1!==_0x54266e)return _0x54266e+0x1;const _0xa34560=_0x5e7b92[_0x1c9fb1(0xf3)][_0x1c9fb1(0x11e)](),_0x3590b4=_0xa34560[_0x1c9fb1(0xd8)](_0x5a1dde[_0x1c9fb1(0xed)]),_0x19bf3a=_0xa34560[_0x3590b4+0x1];if(_0x19bf3a){for(let _0x2de4b2=0x0;_0x2de4b2<_0x2c859a[_0x1c9fb1(0x12e)];_0x2de4b2++)if(_0x2c859a[_0x2de4b2][_0x1c9fb1(0xec)][_0x1c9fb1(0xf0)][_0x1c9fb1(0xed)]===_0x19bf3a)return _0x2de4b2;}return _0x2c859a[_0x1c9fb1(0x12e)];}
|
|
23
|
+
function _0x3d58(_0x2b3ca2,_0x29fa07){const _0x17e23a=_0x17e2();return _0x3d58=function(_0x3d5884,_0x444163){_0x3d5884=_0x3d5884-0x153;let _0x5136df=_0x17e23a[_0x3d5884];return _0x5136df;},_0x3d58(_0x2b3ca2,_0x29fa07);}const _0x3db3df=_0x3d58;function _0x17e2(){const _0x4660fd=['_footnoteDefsTracker','definition','footnoteRef','add','8TIOaDq','_handleFootnotesDefinitionsObjectSync','_insertEmptyFootnotesDefinitionsContainer','footnoteId','setAttribute','reference','_ensureFootnotesReferencesHaveProperOrder','_footnotesDefinitions','has','getChanges','set','compareWith','parent','footnotesDefinitions','before','footnoteCounter','move','getChildren','singleton','model','getFootnotesDefinitionsObjectElement','after','push','high','getFootnotes','11464SlreoC','_footnotes','_sortFootnoteDefinitions','document','$graveyard','2270073GBgXFN','listenTo','rootName','getFootnote','createPositionAt','find','editor','enqueueChange','isOfficialPlugin','reset','get','1770DYdHfZ','change:data','_handleFootnoteReferencesChanges','insert','remove','root','_updateFootnotesCounters','splice','registerPostFixer','findIndex','3085068eENmct','_ensureFootnotesDefinitionsContainerExists','footnoteInlineContent','append','unshift','footnoteDefinition','pluginName','indexOf','_footnoteDefsContainerTracker','config','low','createPositionBefore','some','_updateFootnoteRefCounter','paragraph','min','isEqual','isPremiumPlugin','createRangeIn','length','_footnoteFormatter','setFootnoteFormatter','from','getRootNames','43838rlRmVd','71598wTgjGI','5670yzNeKq','_handleMovedFootnoteReference','getFootnotesFormatter','1195388wuDlaK','_handleFootnotesDefinitionsObjectChanges','init','getAttribute','footnotes.multiBlock','_handleInsertedFootnoteReference','differ','_handleRemoveFootnoteReferenceById','createRangeOn','childCount','_handleFootnoteDefinitionsChanges','475wwMjzT','26576UGIIUR','createElement','FootnotesTracker','end','map','_footnoteRefsTracker'];_0x17e2=function(){return _0x4660fd;};return _0x17e2();}(function(_0x38a6a6,_0x2dd5db){const _0x5185ef=_0x3d58,_0x3f2440=_0x38a6a6();while(!![]){try{const _0x29e108=parseInt(_0x5185ef(0x1b6))/0x1*(parseInt(_0x5185ef(0x19b))/0x2)+parseInt(_0x5185ef(0x16e))/0x3+parseInt(_0x5185ef(0x1a0))/0x4+parseInt(_0x5185ef(0x1ab))/0x5*(parseInt(_0x5185ef(0x19c))/0x6)+-parseInt(_0x5185ef(0x183))/0x7+parseInt(_0x5185ef(0x169))/0x8*(-parseInt(_0x5185ef(0x19d))/0x9)+parseInt(_0x5185ef(0x179))/0xa*(-parseInt(_0x5185ef(0x1ac))/0xb);if(_0x29e108===_0x2dd5db)break;else _0x3f2440['push'](_0x3f2440['shift']());}catch(_0x28e8d){_0x3f2440['push'](_0x3f2440['shift']());}}}(_0x17e2,0x90de3));import{Plugin as _0x4d6ff3}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x3cf25e}from'./modelelementtracker.js';export class FootnotesTracker extends _0x4d6ff3{[_0x3db3df(0x16a)]=[];[_0x3db3df(0x157)]=null;[_0x3db3df(0x197)]=null;[_0x3db3df(0x18b)];[_0x3db3df(0x1b1)];[_0x3db3df(0x1b2)];static get[_0x3db3df(0x189)](){const _0x57d255=_0x3db3df;return _0x57d255(0x1ae);}static get[_0x3db3df(0x176)](){return!0x0;}static get[_0x3db3df(0x194)](){return!0x0;}constructor(_0x2ff7a6){const _0xb0436d=_0x3db3df;super(_0x2ff7a6),this[_0xb0436d(0x18b)]=new _0x3cf25e(this[_0xb0436d(0x174)][_0xb0436d(0x163)],{'elementName':_0xb0436d(0x15d),'getElementKey':()=>_0xb0436d(0x162)}),this[_0xb0436d(0x1b1)]=new _0x3cf25e(this[_0xb0436d(0x174)][_0xb0436d(0x163)],{'elementName':_0xb0436d(0x1b4),'getElementKey':_0x42fe75=>_0x42fe75[_0xb0436d(0x1a3)](_0xb0436d(0x153))}),this[_0xb0436d(0x1b2)]=new _0x3cf25e(this[_0xb0436d(0x174)][_0xb0436d(0x163)],{'elementName':_0xb0436d(0x188),'getElementKey':_0x4543da=>_0x4543da[_0xb0436d(0x1a3)](_0xb0436d(0x153))});}[_0x3db3df(0x1a2)](){const _0x587c88=_0x3db3df,{editor:_0x589719}=this,{model:_0x2d6d97,data:_0x407181}=_0x589719;_0x2d6d97[_0x587c88(0x16c)][_0x587c88(0x181)](_0x29fea6=>{const _0x4a878f=_0x587c88,_0x5a555e=_0x2d6d97[_0x4a878f(0x16c)][_0x4a878f(0x1a6)][_0x4a878f(0x159)]();let _0x53e612=!0x1;return this[_0x4a878f(0x1a1)](_0x29fea6,_0x5a555e)&&(_0x53e612=!0x0),this[_0x4a878f(0x1aa)](_0x29fea6,_0x5a555e)&&(_0x53e612=!0x0),this[_0x4a878f(0x17b)](_0x29fea6,_0x5a555e)&&(_0x53e612=!0x0),this[_0x4a878f(0x156)](_0x29fea6)&&(_0x53e612=!0x0),this[_0x4a878f(0x1b7)](_0x29fea6)&&(_0x53e612=!0x0),this[_0x4a878f(0x16b)](_0x29fea6)&&(_0x53e612=!0x0),_0x53e612;}),this[_0x587c88(0x16f)](_0x2d6d97[_0x587c88(0x16c)],_0x587c88(0x17a),()=>{const _0x56fc65=_0x587c88;_0x2d6d97[_0x56fc65(0x175)]({'isUndoable':!0x1},_0x35acca=>{const _0x28314a=_0x56fc65;this[_0x28314a(0x184)](_0x35acca);});},{'priority':_0x587c88(0x18d)}),this[_0x587c88(0x16f)](_0x407181,_0x587c88(0x15a),()=>{const _0x589288=_0x587c88;this[_0x589288(0x16a)]=[],this[_0x589288(0x18b)][_0x589288(0x177)](),this[_0x589288(0x1b1)][_0x589288(0x177)](),this[_0x589288(0x1b2)][_0x589288(0x177)]();},{'priority':_0x587c88(0x167)});}[_0x3db3df(0x164)](){const _0x5ed195=_0x3db3df;return this[_0x5ed195(0x157)];}[_0x3db3df(0x171)](_0x5944c4){const _0x3ada44=_0x3db3df;return this[_0x3ada44(0x16a)][_0x3ada44(0x173)](_0x55af5e=>_0x55af5e['id']===_0x5944c4)||null;}[_0x3db3df(0x168)](){const _0x53967f=_0x3db3df;return Array[_0x53967f(0x199)](this[_0x53967f(0x16a)]);}[_0x3db3df(0x19f)](){const _0x2f73b5=_0x3db3df;return this[_0x2f73b5(0x197)];}[_0x3db3df(0x198)](_0x21f246){const _0x122f0c=_0x3db3df;this[_0x122f0c(0x197)]=_0x21f246;}[_0x3db3df(0x17f)](_0x1f302e,_0x4f308c=0x0){const _0x5addc4=_0x3db3df;let _0x23ad8e=!0x1;for(let _0x356e13=_0x4f308c;_0x356e13<this[_0x5addc4(0x16a)][_0x5addc4(0x196)];_0x356e13++)this[_0x5addc4(0x190)](_0x1f302e,_0x356e13)&&(_0x23ad8e=!0x0);return _0x23ad8e;}[_0x3db3df(0x1b8)](_0x41f6f5,_0x3324ff){const _0x54ee36=_0x3db3df,_0xe63b36=_0x41f6f5[_0x54ee36(0x1ad)](_0x54ee36(0x15d),{});return _0x41f6f5[_0x54ee36(0x186)](_0xe63b36,_0x3324ff),this[_0x54ee36(0x157)]=_0xe63b36,_0xe63b36;}[_0x3db3df(0x184)](_0x3aa77f){const _0x583719=_0x3db3df;if(!this[_0x583719(0x16a)][_0x583719(0x196)]||this[_0x583719(0x157)])return;const _0x477282=this[_0x583719(0x16a)][0x0][_0x583719(0x155)][_0x583719(0x17e)],_0x5db94b=this[_0x583719(0x1b8)](_0x3aa77f,_0x477282);for(const _0x471478 of this[_0x583719(0x16a)])_0x471478[_0x583719(0x1b3)][_0x583719(0x15c)]||_0x3aa77f[_0x583719(0x17c)](_0x471478[_0x583719(0x1b3)],_0x5db94b,_0x583719(0x1af));this[_0x583719(0x17f)](_0x3aa77f);}[_0x3db3df(0x1a1)](_0x5be8ef,_0x50325b){const _0x141036=_0x3db3df;let _0x608e72=!0x1;const {inserted:_0x3fced7,removed:_0x1185dd,moved:_0x2c89ee}=this[_0x141036(0x18b)][_0x141036(0x159)](_0x50325b);if(_0x2c89ee[_0x141036(0x196)]&&(this[_0x141036(0x157)]=_0x2c89ee[0x0]),_0x3fced7[_0x141036(0x196)]){if(_0x3fced7[_0x141036(0x196)]>0x1||this[_0x141036(0x157)]&&_0x3fced7[_0x141036(0x18f)](_0x33e0c4=>_0x33e0c4!==this[_0x141036(0x157)])){const _0x201382=_0x5be8ef[_0x141036(0x1ad)](_0x141036(0x15d),{}),_0x13fd49=[];this[_0x141036(0x157)]&&_0x13fd49[_0x141036(0x166)](this[_0x141036(0x157)]),_0x13fd49[_0x141036(0x166)](..._0x3fced7),_0x5be8ef[_0x141036(0x17c)](_0x201382,_0x13fd49[0x0],_0x141036(0x15e));for(const _0x317ac8 of _0x13fd49)_0x5be8ef[_0x141036(0x160)](_0x5be8ef[_0x141036(0x195)](_0x317ac8),_0x5be8ef[_0x141036(0x172)](_0x201382,_0x141036(0x1af))),_0x5be8ef[_0x141036(0x17d)](_0x317ac8);this[_0x141036(0x157)]=_0x201382,this[_0x141036(0x17f)](_0x5be8ef),_0x608e72=!0x0;}else this[_0x141036(0x157)]=_0x3fced7[0x0];}if(_0x1185dd[_0x141036(0x196)]&&_0x141036(0x16d)===this[_0x141036(0x157)]?.[_0x141036(0x17e)][_0x141036(0x170)]){for(const _0x2fa025 of this[_0x141036(0x16a)])_0x5be8ef[_0x141036(0x17d)](_0x2fa025[_0x141036(0x155)]),_0x608e72=!0x0;this[_0x141036(0x16a)]=[],this[_0x141036(0x157)]=null;}return _0x608e72;}[_0x3db3df(0x1aa)](_0x7454dd,_0x48c44a){const _0x3ddc68=_0x3db3df;let _0x30991f=!0x1;const _0x27896d=this[_0x3ddc68(0x174)][_0x3ddc68(0x18c)][_0x3ddc68(0x178)](_0x3ddc68(0x1a4)),{inserted:_0x5e427a,moved:_0x1c745c}=this[_0x3ddc68(0x1b2)][_0x3ddc68(0x159)](_0x48c44a);for(const _0x5808a8 of[..._0x1c745c,..._0x5e427a]){const _0x1f4df4=_0x5808a8[_0x3ddc68(0x1a3)](_0x3ddc68(0x153)),_0xd69955=this[_0x3ddc68(0x171)](_0x1f4df4);_0xd69955&&(_0xd69955[_0x3ddc68(0x1b3)]=_0x5808a8),_(_0x7454dd,_0x27896d,_0x5808a8)&&(_0x30991f=!0x0);}return _0x30991f;}[_0x3db3df(0x17b)](_0x1b1664,_0x425d67){const _0x1fafbf=_0x3db3df;let _0xc5740e=!0x1;const {removed:_0x1dfa22,inserted:_0x1d19cd,moved:_0x5d4da0}=this[_0x1fafbf(0x1b1)][_0x1fafbf(0x159)](_0x425d67);for(const _0x4164c1 of _0x1dfa22)this[_0x1fafbf(0x1a7)](_0x1b1664,_0x4164c1)&&(_0xc5740e=!0x0);for(const _0x2a0ad4 of _0x1d19cd)this[_0x1fafbf(0x1a5)](_0x1b1664,_0x2a0ad4)&&(_0xc5740e=!0x0);for(const _0x1d2e0d of _0x5d4da0)this[_0x1fafbf(0x19e)](_0x1b1664,_0x1d2e0d)&&(_0xc5740e=!0x0);return _0xc5740e;}[_0x3db3df(0x1b7)](_0x56d291){const _0x2d9f95=_0x3db3df;if(!this[_0x2d9f95(0x157)])return!0x1;let _0x32fd37=!0x1;if(this[_0x2d9f95(0x157)][_0x2d9f95(0x1a9)]!==this[_0x2d9f95(0x16a)][_0x2d9f95(0x196)]){const _0x1a1423=[];for(const _0x3a7357 of this[_0x2d9f95(0x157)][_0x2d9f95(0x161)]()){const _0x395618=_0x3a7357[_0x2d9f95(0x1a3)](_0x2d9f95(0x153));this[_0x2d9f95(0x171)](_0x395618)||(_0x1a1423[_0x2d9f95(0x187)](_0x3a7357),_0x32fd37=!0x0);}for(const _0x2b0156 of _0x1a1423)_0x56d291[_0x2d9f95(0x17d)](_0x2b0156);}const _0x2a97ec=new Set(),_0x1175a3=[];for(const _0x177fb3 of this[_0x2d9f95(0x157)][_0x2d9f95(0x161)]()){const _0x131e04=_0x177fb3[_0x2d9f95(0x1a3)](_0x2d9f95(0x153));_0x2a97ec[_0x2d9f95(0x158)](_0x131e04)?(_0x1175a3[_0x2d9f95(0x187)](_0x177fb3),_0x32fd37=!0x0):_0x2a97ec[_0x2d9f95(0x1b5)](_0x131e04);}for(const _0x3cee1c of _0x1175a3)_0x56d291[_0x2d9f95(0x17d)](_0x3cee1c);return this[_0x2d9f95(0x157)][_0x2d9f95(0x1a9)]||(_0x56d291[_0x2d9f95(0x17d)](this[_0x2d9f95(0x157)]),this[_0x2d9f95(0x157)]=null,_0x32fd37=!0x0),_0x32fd37;}[_0x3db3df(0x1a5)](_0x43d554,_0x3f9685){const _0x1137d8=_0x3db3df;if(this[_0x1137d8(0x16a)][_0x1137d8(0x173)](_0x3414b3=>_0x3414b3[_0x1137d8(0x155)]===_0x3f9685))return!0x1;let _0xffd45f=!0x1;const _0x11b833=_0x3f9685[_0x1137d8(0x1a3)](_0x1137d8(0x153)),_0x3028de=this[_0x1137d8(0x16a)][_0x1137d8(0x182)](_0x8b4528=>_0x8b4528['id']===_0x11b833);-0x1!==_0x3028de&&(_0x43d554[_0x1137d8(0x17d)](this[_0x1137d8(0x16a)][_0x3028de][_0x1137d8(0x155)]),this[_0x1137d8(0x16a)][_0x1137d8(0x180)](_0x3028de,0x1),_0xffd45f=!0x0);let _0x41d6b7=this[_0x1137d8(0x157)]?function(_0x366d72,_0x5357bb){const _0x2e7464=_0x1137d8;for(const _0x5b0565 of _0x366d72[_0x2e7464(0x161)]())if(_0x5b0565[_0x2e7464(0x1a3)](_0x2e7464(0x153))===_0x5357bb)return _0x5b0565;return null;}(this[_0x1137d8(0x157)],_0x11b833):null;_0x41d6b7||(_0x41d6b7=_0x43d554[_0x1137d8(0x1ad)](_0x1137d8(0x188),{'footnoteId':_0x11b833}),this[_0x1137d8(0x157)]&&(_0x43d554[_0x1137d8(0x17c)](_0x41d6b7,this[_0x1137d8(0x157)],_0x1137d8(0x1af)),_0xffd45f=!0x0));const _0x34ec4b={'id':_0x11b833,'reference':_0x3f9685,'definition':_0x41d6b7},_0x4a631b=I(this[_0x1137d8(0x174)][_0x1137d8(0x163)],this[_0x1137d8(0x16a)],_0x3f9685);this[_0x1137d8(0x16a)][_0x1137d8(0x180)](_0x4a631b,0x0,_0x34ec4b);let _0x1bd7c6=_0x4a631b;return-0x1!==_0x3028de&&(_0x1bd7c6=Math[_0x1137d8(0x192)](_0x4a631b,_0x3028de)),this[_0x1137d8(0x17f)](_0x43d554,_0x1bd7c6)&&(_0xffd45f=!0x0),_0xffd45f;}[_0x3db3df(0x1a7)](_0x40ad57,_0x30a61f){const _0x487371=_0x3db3df,_0x2e70f6=this[_0x487371(0x16a)][_0x487371(0x182)](_0x32c25e=>_0x32c25e['id']===_0x30a61f);if(-0x1===_0x2e70f6)return!0x1;let _0x1b5d81=!0x1;const _0x3bca1a=this[_0x487371(0x16a)][_0x2e70f6];return _0x487371(0x16d)!==_0x3bca1a[_0x487371(0x1b3)][_0x487371(0x17e)][_0x487371(0x170)]&&(_0x40ad57[_0x487371(0x17d)](_0x3bca1a[_0x487371(0x1b3)]),_0x1b5d81=!0x0),this[_0x487371(0x16a)][_0x487371(0x180)](_0x2e70f6,0x1),this[_0x487371(0x17f)](_0x40ad57,_0x2e70f6)&&(_0x1b5d81=!0x0),_0x1b5d81;}[_0x3db3df(0x19e)](_0x5fa5d5,_0x138a9b){const _0x2dd35e=_0x3db3df,_0x9279af=_0x138a9b[_0x2dd35e(0x1a3)](_0x2dd35e(0x153)),_0x3828c7=this[_0x2dd35e(0x16a)][_0x2dd35e(0x182)](_0x4c8ef5=>_0x4c8ef5['id']===_0x9279af),_0x4bb191=this[_0x2dd35e(0x16a)][_0x3828c7];let _0x9ceac5=!0x1;_0x4bb191[_0x2dd35e(0x155)]=_0x138a9b,this[_0x2dd35e(0x16a)][_0x2dd35e(0x180)](_0x3828c7,0x1);const _0x5ee51e=I(this[_0x2dd35e(0x174)][_0x2dd35e(0x163)],this[_0x2dd35e(0x16a)],_0x138a9b);return this[_0x2dd35e(0x16a)][_0x2dd35e(0x180)](_0x5ee51e,0x0,_0x4bb191),this[_0x2dd35e(0x17f)](_0x5fa5d5,Math[_0x2dd35e(0x192)](_0x3828c7,_0x5ee51e))&&(_0x9ceac5=!0x0),_0x9ceac5;}[_0x3db3df(0x190)](_0x10674f,_0x61a5f2){const _0x8dd79=_0x3db3df;if(!this[_0x8dd79(0x157)])return!0x1;const _0x566dbb=this[_0x8dd79(0x16a)][_0x61a5f2];let _0x3f520c;return _0x3f520c=this[_0x8dd79(0x197)]?this[_0x8dd79(0x197)]({'footnote':_0x566dbb,'container':this[_0x8dd79(0x157)],'digits':String(this[_0x8dd79(0x16a)][_0x8dd79(0x196)])[_0x8dd79(0x196)],'value':_0x61a5f2+0x1}):String(_0x61a5f2+0x1),_0x566dbb[_0x8dd79(0x155)][_0x8dd79(0x1a3)](_0x8dd79(0x15f))!=_0x3f520c&&(_0x10674f[_0x8dd79(0x154)](_0x8dd79(0x15f),_0x3f520c,_0x566dbb[_0x8dd79(0x155)]),!0x0);}[_0x3db3df(0x16b)](_0x524382){const _0x116099=_0x3db3df;if(!this[_0x116099(0x157)]||this[_0x116099(0x16a)][_0x116099(0x196)]<0x2)return!0x1;if(function(_0x447a44,_0x231293){const _0x1f7ad3=_0x116099;if(_0x447a44[_0x1f7ad3(0x196)]!==_0x231293[_0x1f7ad3(0x196)])return!0x1;for(let _0x75cd34=0x0;_0x75cd34<_0x447a44[_0x1f7ad3(0x196)];_0x75cd34++)if(_0x447a44[_0x75cd34]!==_0x231293[_0x75cd34])return!0x1;return!0x0;}(this[_0x116099(0x16a)][_0x116099(0x1b0)](_0x47c8ea=>_0x47c8ea['id']),Array[_0x116099(0x199)](this[_0x116099(0x157)][_0x116099(0x161)]())[_0x116099(0x1b0)](_0x553e5d=>_0x553e5d[_0x116099(0x1a3)](_0x116099(0x153)))))return!0x1;let _0x48d608=!0x1;for(let _0x39b045=0x0;_0x39b045<this[_0x116099(0x16a)][_0x116099(0x196)];_0x39b045++){const _0x42f5d6=this[_0x116099(0x16a)][_0x39b045],_0x273b91=_0x524382[_0x116099(0x18e)](_0x42f5d6[_0x116099(0x1b3)]),_0x56b290=_0x524382[_0x116099(0x172)](this[_0x116099(0x157)],_0x39b045);_0x273b91[_0x116099(0x193)](_0x56b290)||(_0x524382[_0x116099(0x160)](_0x524382[_0x116099(0x1a8)](_0x42f5d6[_0x116099(0x1b3)]),_0x56b290),_0x48d608=!0x0);}return _0x48d608;}[_0x3db3df(0x156)](_0x4c11e6){const _0x33c7d5=_0x3db3df;if(!this[_0x33c7d5(0x16a)][_0x33c7d5(0x196)])return!0x1;const {model:_0x2e6acb}=this[_0x33c7d5(0x174)];let _0x256ade=!0x1;for(let _0x127314=0x0;_0x127314<this[_0x33c7d5(0x16a)][_0x33c7d5(0x196)]-0x1;_0x127314++){const _0x54d45f=this[_0x33c7d5(0x16a)][_0x127314],_0x4d703d=this[_0x33c7d5(0x16a)][_0x127314+0x1],_0x278f98=_0x2e6acb[_0x33c7d5(0x18e)](_0x54d45f[_0x33c7d5(0x155)]),_0x248ede=_0x2e6acb[_0x33c7d5(0x18e)](_0x4d703d[_0x33c7d5(0x155)]);_0x33c7d5(0x165)===_0x278f98[_0x33c7d5(0x15b)](_0x248ede)&&(this[_0x33c7d5(0x19e)](_0x4c11e6,_0x54d45f[_0x33c7d5(0x155)]),_0x127314=-0x1,_0x256ade=!0x0);}return _0x256ade;}}function _(_0x1c56c0,_0x2c8f90,_0x3c610b){const _0x4fa53a=_0x3db3df;if(_0x3c610b[_0x4fa53a(0x1a9)])return!0x1;const _0x5d7c2e=_0x2c8f90?_0x4fa53a(0x191):_0x4fa53a(0x185);return _0x1c56c0[_0x4fa53a(0x17c)](_0x1c56c0[_0x4fa53a(0x1ad)](_0x5d7c2e),_0x3c610b),!0x0;}function I(_0x504d08,_0x57ffe1,_0x9588b2){const _0xab3538=_0x3db3df;if(0x0===_0x57ffe1[_0xab3538(0x196)])return 0x0;const _0x2c7998=_0x504d08[_0xab3538(0x18e)](_0x9588b2);for(let _0x51279e=0x0;_0x51279e<_0x57ffe1[_0xab3538(0x196)];_0x51279e++){const _0x47c233=_0x57ffe1[_0x51279e],_0x29bf1d=_0x504d08[_0xab3538(0x18e)](_0x47c233[_0xab3538(0x155)]);if(_0xab3538(0x15e)===_0x2c7998[_0xab3538(0x15b)](_0x29bf1d))return _0x51279e;}const _0x3ef8eb=_0x9588b2[_0xab3538(0x17e)];let _0x16b696=-0x1;for(let _0x41e576=_0x57ffe1[_0xab3538(0x196)]-0x1;_0x41e576>=0x0;_0x41e576--)if(_0x57ffe1[_0x41e576][_0xab3538(0x155)][_0xab3538(0x17e)]===_0x3ef8eb){_0x16b696=_0x41e576;break;}if(-0x1!==_0x16b696)return _0x16b696+0x1;const _0x424833=_0x504d08[_0xab3538(0x16c)][_0xab3538(0x19a)](),_0x49445c=_0x424833[_0xab3538(0x18a)](_0x3ef8eb[_0xab3538(0x170)]),_0x4cca7e=_0x424833[_0x49445c+0x1];if(_0x4cca7e){for(let _0x52f04a=0x0;_0x52f04a<_0x57ffe1[_0xab3538(0x196)];_0x52f04a++)if(_0x57ffe1[_0x52f04a][_0xab3538(0x155)][_0xab3538(0x17e)][_0xab3538(0x170)]===_0x4cca7e)return _0x52f04a;}return _0x57ffe1[_0xab3538(0x196)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4d6c31,MenuBarMenuListItemButtonView as _0x15c7a9}from'ckeditor5/src/ui.js';import{Plugin as _0x1a406b}from'ckeditor5/src/core.js';import{IconFootnote as _0x1798f4}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x1a406b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xba4cea}=this,{componentFactory:_0x932280}=_0xba4cea['ui'];_0x932280['add']('insertFootnote',x(_0xba4cea,_0x4d6c31)),_0x932280['add']('menuBar:insertFootnote',x(_0xba4cea,_0x15c7a9)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a54f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a42ea;for(const _0x3176ea in _0x5a54f0){const _0x11d170=_0x3176ea,_0x542efb=_0x5a54f0[_0x11d170];if('footnotesLicenseKeyValid'==_0x542efb||'footnotesLicenseKeyInvalid'==_0x542efb||'footnotesLicenseKeyExpired'==_0x542efb||'footnotesLicenseKeyDomainLimit'==_0x542efb||'footnotesLicenseKeyNotAllowed'==_0x542efb||'footnotesLicenseKeyEvaluationLimit'==_0x542efb||'footnotesLicenseKeyTrialLimit'==_0x542efb||'footnotesLicenseKeyUsageLimit'==_0x542efb){delete _0x5a54f0[_0x11d170],_0x5a42ea=_0x542efb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4768f1,_0x488b97){const _0x252f1d=_0x4768f1['commands']['get']('insertFootnote');return _0x562f7f=>{const {t:t}=_0x562f7f,_0x5bfd12=new _0x488b97(_0x562f7f),_0x5453b8=_0x5bfd12 instanceof _0x15c7a9;return _0x5bfd12['bind']('isEnabled')['to'](_0x252f1d,'isEnabled'),_0x5bfd12['set']({'label':t(_0x5453b8?'Footnote':'Insert\x20footnote'),'icon':_0x1798f4,'tooltip':!0x0}),_0x5bfd12['on']('execute',()=>{_0x252f1d['execute'](),_0x4768f1['editing']['view']['focus']();}),_0x5bfd12;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5594(){var _0x9623a6=['972zlaCwO','527787UZNzkp','132494tIjavd','345023OekXgA','1053afbgXb','10bLmdsi','23459FQuqUV','46590GwDvGG','80KQVczb','75760HXBHPK'];_0x5594=function(){return _0x9623a6;};return _0x5594();}(function(_0x57b861,_0x37d092){var _0x37a9fd=_0x3d07,_0x15c9b6=_0x57b861();while(!![]){try{var _0x3638b8=-parseInt(_0x37a9fd(0x197))/0x1+parseInt(_0x37a9fd(0x193))/0x2+parseInt(_0x37a9fd(0x195))/0x3*(parseInt(_0x37a9fd(0x191))/0x4)+parseInt(_0x37a9fd(0x18f))/0x5*(-parseInt(_0x37a9fd(0x18e))/0x6)+parseInt(_0x37a9fd(0x194))/0x7+-parseInt(_0x37a9fd(0x190))/0x8+parseInt(_0x37a9fd(0x192))/0x9*(parseInt(_0x37a9fd(0x196))/0xa);if(_0x3638b8===_0x37d092)break;else _0x15c9b6['push'](_0x15c9b6['shift']());}catch(_0x1a2171){_0x15c9b6['push'](_0x15c9b6['shift']());}}}(_0x5594,0x18f9f));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';function _0x3d07(_0x2a5eab,_0x45d6a0){var _0x55941c=_0x5594();return _0x3d07=function(_0x3d073b,_0x2cf28c){_0x3d073b=_0x3d073b-0x18e;var _0x4820ee=_0x55941c[_0x3d073b];return _0x4820ee;},_0x3d07(_0x2a5eab,_0x45d6a0);}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';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x340350=_0x31db;function _0x31db(_0x7abbfe,_0x221b73){const _0x2c5745=_0x2c57();return _0x31db=function(_0x31db10,_0x3ba68a){_0x31db10=_0x31db10-0x80;let _0x241248=_0x2c5745[_0x31db10];return _0x241248;},_0x31db(_0x7abbfe,_0x221b73);}function _0x2c57(){const _0x5b5478=['nodeAfter','attributes','remove','elementName','6975MpwHKi','name','getItems','push','getChanges','values','_getElementKey','length','getElementKey','root','type','714696fzTohL','createRangeOn','_model','delete','get','252MNRnoM','clear','$text','add','position','5868331vNygOG','rootName','slice','element','insert','1251618vqqlFq','280964sKlivg','3280050RsCBRo','has','set','4811875PsEQAK','_trackedElements','reset','_elementName','from','99RTLHRz','$graveyard','flat'];_0x2c57=function(){return _0x5b5478;};return _0x2c57();}(function(_0x135fef,_0x1c6266){const _0x53f9a2=_0x31db,_0x1b696c=_0x135fef();while(!![]){try{const _0x507cb1=parseInt(_0x53f9a2(0x9b))/0x1+parseInt(_0x53f9a2(0x9a))/0x2+-parseInt(_0x53f9a2(0x80))/0x3*(-parseInt(_0x53f9a2(0x90))/0x4)+-parseInt(_0x53f9a2(0x9f))/0x5+parseInt(_0x53f9a2(0x9c))/0x6+parseInt(_0x53f9a2(0x95))/0x7+parseInt(_0x53f9a2(0x8b))/0x8*(-parseInt(_0x53f9a2(0xa4))/0x9);if(_0x507cb1===_0x1c6266)break;else _0x1b696c['push'](_0x1b696c['shift']());}catch(_0x148b91){_0x1b696c['push'](_0x1b696c['shift']());}}}(_0x2c57,0x78676));export class ModelElementTracker{[_0x340350(0x8d)];[_0x340350(0xa2)];[_0x340350(0x86)];[_0x340350(0xa0)]=new Map();constructor(_0x4e60ff,_0x493b45){const _0x11be64=_0x340350;this[_0x11be64(0x8d)]=_0x4e60ff,this[_0x11be64(0xa2)]=_0x493b45[_0x11be64(0xaa)],this[_0x11be64(0x86)]=_0x493b45[_0x11be64(0x88)];}[_0x340350(0xa1)](){const _0xfd5b8a=_0x340350;this[_0xfd5b8a(0xa0)][_0xfd5b8a(0x91)]();}[_0x340350(0x84)](_0x39e3e0){const _0x3cf148=_0x340350,_0x1481a0=new Set(),_0x352610=new Map();for(const _0x10bd8c of _0x39e3e0){if(_0x3cf148(0x99)===_0x10bd8c[_0x3cf148(0x8a)]&&_0x3cf148(0x92)!==_0x10bd8c[_0x3cf148(0x81)]&&_0x10bd8c[_0x3cf148(0x94)][_0x3cf148(0xa7)]){const _0x32644b=this[_0x3cf148(0x8d)][_0x3cf148(0x8c)](_0x10bd8c[_0x3cf148(0x94)][_0x3cf148(0xa7)]);for(const _0x1d2193 of _0x32644b[_0x3cf148(0x82)]()){if(!_0x1d2193['is'](_0x3cf148(0x98),this[_0x3cf148(0xa2)]))continue;const _0x38845e=this[_0x3cf148(0x86)](_0x1d2193);_0x352610[_0x3cf148(0x9d)](_0x38845e)||_0x352610[_0x3cf148(0x9e)](_0x38845e,[]),_0x352610[_0x3cf148(0x8f)](_0x38845e)[_0x3cf148(0x83)](_0x1d2193);}}if(_0x3cf148(0xa9)===_0x10bd8c[_0x3cf148(0x8a)]&&_0x10bd8c[_0x3cf148(0x81)]===this[_0x3cf148(0xa2)]){const _0x2d9545=this[_0x3cf148(0x86)]({'getAttribute':_0x4d5df6=>_0x10bd8c[_0x3cf148(0xa8)][_0x3cf148(0x8f)](_0x4d5df6)});_0x1481a0[_0x3cf148(0x93)](_0x2d9545);}}for(const [_0x1c9018,_0x1b4fec]of this[_0x3cf148(0xa0)])_0x3cf148(0xa5)===_0x1b4fec[_0x3cf148(0x89)][_0x3cf148(0x96)]&&_0x1481a0[_0x3cf148(0x93)](_0x1c9018);for(const _0x5978b0 of _0x1481a0)this[_0x3cf148(0xa0)][_0x3cf148(0x8e)](_0x5978b0);for(const [_0x16ef2d,_0x4e64ab]of _0x352610)this[_0x3cf148(0xa0)][_0x3cf148(0x9e)](_0x16ef2d,_0x4e64ab[_0x4e64ab[_0x3cf148(0x87)]-0x1]);const _0x2701bb=new Set();for(const [_0x4a023c,_0x21a47e]of _0x352610)_0x1481a0[_0x3cf148(0x9d)](_0x4a023c)&&(_0x2701bb[_0x3cf148(0x93)](_0x21a47e[0x0]),_0x21a47e[_0x3cf148(0x87)]>0x1?_0x352610[_0x3cf148(0x9e)](_0x4a023c,_0x21a47e[_0x3cf148(0x97)](0x1)):_0x352610[_0x3cf148(0x8e)](_0x4a023c),_0x1481a0[_0x3cf148(0x8e)](_0x4a023c));return{'removed':Array[_0x3cf148(0xa3)](_0x1481a0),'inserted':Array[_0x3cf148(0xa3)](_0x352610[_0x3cf148(0x85)]())[_0x3cf148(0xa6)](),'moved':Array[_0x3cf148(0xa3)](_0x2701bb)};}}
|