@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251215.0 → 0.0.0-nightly-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 _0xad05}from'ckeditor5/src/core.js';import{isWidget as _0x504e37,toWidget as _0x1defdc,toWidgetEditable as _0x206952}from'ckeditor5/src/widget.js';import{uid as _0x33efd6}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4856c5,ClickObserver as _0x35789f}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x498941}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x3cc302}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xad05{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x498941];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18749a}=this;_0x18749a['config']['define']('footnotes.multiBlock',!0x0),_0x18749a['commands']['add']('insertFootnote',new _0x3cc302(_0x18749a)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x54f007){const _0x4515b=_0x66bb48([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]),_0x771732=0x47a28506,_0x16899a=0x47a5fefe^_0x771732,_0x30c2a6=window[_0x66bb48([0x44,0x61,0x74,0x65])][_0x66bb48([0x6e,0x6f,0x77])](),_0x2ecfc8=_0x54f007[_0x66bb48([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ad774=new window[(_0x66bb48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538d37=>{_0x2ecfc8[_0x66bb48([0x6f,0x6e,0x63,0x65])](_0x66bb48([0x72,0x65,0x61,0x64,0x79]),_0x538d37);}),_0x48f5e1={[_0x66bb48([0x6b,0x74,0x79])]:_0x66bb48([0x45,0x43]),[_0x66bb48([0x75,0x73,0x65])]:_0x66bb48([0x73,0x69,0x67]),[_0x66bb48([0x63,0x72,0x76])]:_0x66bb48([0x50,0x2d,0x32,0x35,0x36]),[_0x66bb48([0x78])]:_0x66bb48([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]),[_0x66bb48([0x79])]:_0x66bb48([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]),[_0x66bb48([0x61,0x6c,0x67])]:_0x66bb48([0x45,0x53,0x32,0x35,0x36])},_0x16dccd=_0x2ecfc8[_0x66bb48([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x66bb48([0x67,0x65,0x74])](_0x66bb48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c007f(){let _0x1c0056,_0x2e8c27=null,_0x10f02f=null;try{if(_0x16dccd==_0x66bb48([0x47,0x50,0x4c]))return _0x66bb48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c0056=_0x4917e2(),!_0x1c0056)return _0x66bb48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c0056[_0x66bb48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10f02f=_0x4bfa45(_0x1c0056[_0x66bb48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c0056[_0x66bb48([0x6a,0x74,0x69])])),await _0x333d81()?_0x1b7b6c()?_0x450097()?_0x66bb48([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x144737()?(_0x1c0056[_0x66bb48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x66bb48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e8c27=_0x441a3d(_0x66bb48([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c0056[_0x66bb48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x66bb48([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e8c27=_0x441a3d(_0x66bb48([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1600b1()):_0x66bb48([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x66bb48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x66bb48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x66bb48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x450097(){const _0x411cf4=[_0x66bb48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x66bb48([0x74,0x72,0x69,0x61,0x6c])][_0x66bb48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c0056[_0x66bb48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30c2a6/0x3e8:0xe10*_0x16899a;return _0x1c0056[_0x66bb48([0x65,0x78,0x70])]<_0x411cf4;}function _0x1b7b6c(){const _0x56fbf5=_0x1c0056[_0x66bb48([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56fbf5&&(!!_0x56fbf5[_0x66bb48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66bb48([0x2a]))||!!_0x56fbf5[_0x66bb48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66bb48([0x46,0x4f,0x4f])));}function _0x144737(){const _0x24ae85=_0x1c0056[_0x66bb48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24ae85||0x0==_0x24ae85[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2dafb2}=new URL(window[_0x66bb48([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24ae85[_0x66bb48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dafb2))return!0x0;const _0x16c2e2=_0x2dafb2[_0x66bb48([0x73,0x70,0x6c,0x69,0x74])](_0x66bb48([0x2e]));return _0x24ae85[_0x66bb48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x118bdf=>_0x118bdf[_0x66bb48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66bb48([0x2a])))[_0x66bb48([0x6d,0x61,0x70])](_0x4edb7a=>_0x4edb7a[_0x66bb48([0x73,0x70,0x6c,0x69,0x74])](_0x66bb48([0x2e])))[_0x66bb48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dc7ca=>_0x5dc7ca[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16c2e2[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x66bb48([0x6d,0x61,0x70])](_0x2b160c=>Array(_0x16c2e2[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b160c[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x66bb48([0x66,0x69,0x6c,0x6c])](_0x2b160c[0x0]===_0x66bb48([0x2a])?_0x66bb48([0x2a]):'')[_0x66bb48([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b160c))[_0x66bb48([0x73,0x6f,0x6d,0x65])](_0x4d83bd=>_0x16c2e2[_0x66bb48([0x65,0x76,0x65,0x72,0x79])]((_0x239f50,_0x47412f)=>_0x4d83bd[_0x47412f]===_0x239f50||_0x4d83bd[_0x47412f]===_0x66bb48([0x2a])));}function _0x1600b1(){return _0x2e8c27&&_0x10f02f?new window[(_0x66bb48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22333d,_0x1b44c8)=>{_0x2e8c27[_0x66bb48([0x74,0x68,0x65,0x6e])](_0x22333d,_0x1b44c8),_0x10f02f[_0x66bb48([0x74,0x68,0x65,0x6e])](_0x96573f=>{_0x96573f!=_0x66bb48([0x56,0x61,0x6c,0x69,0x64])&&_0x22333d(_0x96573f);},_0x1b44c8);}):_0x2e8c27||_0x10f02f||_0x66bb48([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4bfa45(_0xd15579,_0x4cc861){return new window[(_0x66bb48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b884b=>{if(_0x1e2790())return _0x1b884b(_0x66bb48([0x56,0x61,0x6c,0x69,0x64]));_0x1c6b94(),_0x2ecfc8[_0x66bb48([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x66bb48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x832826=!0x1;const _0xfa546e=_0x33efd6();function _0x5911de(_0x53231e){return!!_0x53231e&&(typeof _0x53231e===_0x66bb48([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53231e===_0x66bb48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53231e[_0x66bb48([0x74,0x68,0x65,0x6e])]===_0x66bb48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53231e[_0x66bb48([0x63,0x61,0x74,0x63,0x68])]===_0x66bb48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45e8f2(_0x4f7751){_0x49daa0(_0x4f7751)[_0x66bb48([0x74,0x68,0x65,0x6e])](_0x5efc3c=>{if(!_0x5efc3c||_0x5efc3c[_0x66bb48([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x66bb48([0x6f,0x6b]))return _0x66bb48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e766b(_0x540a7f(_0xfa546e+_0x4cc861))!=_0x5efc3c[_0x66bb48([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x66bb48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x66bb48([0x56,0x61,0x6c,0x69,0x64]);})[_0x66bb48([0x74,0x68,0x65,0x6e])](_0x3db14c=>(_0x3fd994(),_0x3db14c),()=>{const _0x4fcecc=_0x53e68f();return null==_0x4fcecc?(_0x3fd994(),_0x66bb48([0x56,0x61,0x6c,0x69,0x64])):_0x66bb48(_0x30c2a6-_0x4fcecc>(0x63ae0106^_0x771732)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x66bb48([0x74,0x68,0x65,0x6e])](_0x1b884b)[_0x66bb48([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b884b(_0x66bb48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x40a98d=0x47946b86^_0x771732;function _0x3fd994(){const _0x2498f8=_0x66bb48([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e766b(_0x540a7f(_0xd15579)),_0x5bea9a=_0x782d62(_0x1e766b(window[_0x66bb48([0x4d,0x61,0x74,0x68])][_0x66bb48([0x63,0x65,0x69,0x6c])](_0x30c2a6/_0x40a98d)));window[_0x66bb48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x66bb48([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2498f8,_0x5bea9a);}function _0x53e68f(){const _0x4e9997=_0x66bb48([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e766b(_0x540a7f(_0xd15579)),_0x4c0847=window[_0x66bb48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x66bb48([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e9997);return _0x4c0847?window[_0x66bb48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x782d62(_0x4c0847),0x10)*_0x40a98d:null;}function _0x49daa0(_0x4ed35b){return new window[(_0x66bb48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7ff82b,_0x6069e8)=>{_0x4ed35b[_0x66bb48([0x74,0x68,0x65,0x6e])](_0x7ff82b,_0x6069e8),window[_0x66bb48([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6069e8,0x47a351c6^_0x771732);});}}_0x2ecfc8[_0x66bb48([0x6f,0x6e])](_0x66bb48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x831573,_0x4a70a9)=>{if(_0x4a70a9[0x0]!=_0xd15579)return _0x1b884b(_0x66bb48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a70a9[0x1]={..._0x4a70a9[0x1],[_0x66bb48([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfa546e};},{[_0x66bb48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x66bb48([0x68,0x69,0x67,0x68])}),_0x2ecfc8[_0x66bb48([0x6f,0x6e])](_0x66bb48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x562fd8=>{_0x5911de(_0x562fd8[_0x66bb48([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x832826=!0x0,_0x45e8f2(_0x562fd8[_0x66bb48([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x66bb48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x66bb48([0x6c,0x6f,0x77])}),_0x4ad774[_0x66bb48([0x74,0x68,0x65,0x6e])](()=>{_0x832826||_0x1b884b(_0x66bb48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e2790(){return _0x2ecfc8[_0x66bb48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x66bb48([0x76,0x69,0x65,0x77])][_0x66bb48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x66bb48([0x61,0x75,0x74,0x6f]);}function _0x1c6b94(){_0x2ecfc8[_0x66bb48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x66bb48([0x76,0x69,0x65,0x77])][_0x66bb48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x66bb48([0x61,0x75,0x74,0x6f]);}}function _0x441a3d(_0x43f06c){const _0x31be85=[new window[(_0x66bb48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7e0b=>setTimeout(_0x3b7e0b,0x47abbbca^_0x771732)),_0x4ad774[_0x66bb48([0x74,0x68,0x65,0x6e])](()=>new window[(_0x66bb48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2baecd=>{let _0x137e50=0x0;_0x2ecfc8[_0x66bb48([0x6d,0x6f,0x64,0x65,0x6c])][_0x66bb48([0x6f,0x6e])](_0x66bb48([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x315bef,_0x247c4b)=>{_0x247c4b[0x0][_0x66bb48([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x137e50++,_0x137e50==(0x47a284fe^_0x771732)&&(_0x2baecd(),_0x315bef[_0x66bb48([0x6f,0x66,0x66])]());});}))];return window[_0x66bb48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x66bb48([0x72,0x61,0x63,0x65])](_0x31be85)[_0x66bb48([0x74,0x68,0x65,0x6e])](()=>_0x43f06c);}async function _0x210620(){await _0x4ad774,_0x2ecfc8[_0x66bb48([0x6d,0x6f,0x64,0x65,0x6c])][_0x66bb48([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18d4cc,_0x2ecfc8[_0x66bb48([0x6d,0x6f,0x64,0x65,0x6c])][_0x66bb48([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18d4cc,_0x2ecfc8[_0x66bb48([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x66bb48([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42f0f2(_0x2ebceb){const _0xdcdcb0=_0x538eb6();_0x2ecfc8[_0xdcdcb0]=_0x66bb48([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ebceb,_0x2ebceb!=_0x66bb48([0x56,0x61,0x6c,0x69,0x64])&&_0x210620();}function _0x538eb6(){const _0x2284f8=window[_0x66bb48([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x66bb48([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x66bb48([0x6e,0x6f,0x77])]())[_0x66bb48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x66bb48([0x2e]),'');let _0x59523e=_0x66bb48([0x75]);for(let _0x5c7cd0=0x0;_0x5c7cd0<_0x2284f8[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c7cd0+=0x2){let _0x150452=window[_0x66bb48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2284f8[_0x66bb48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c7cd0,_0x5c7cd0+0x2));_0x150452>=_0x4515b[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x150452-=_0x4515b[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59523e+=_0x4515b[_0x150452];}return _0x59523e;}function _0x4917e2(){const _0x3069b4=_0x16dccd[_0x66bb48([0x73,0x70,0x6c,0x69,0x74])](_0x66bb48([0x2e]));if(0x3!=_0x3069b4[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3638e3(_0x3069b4[0x1]);function _0x3638e3(_0x19f9b1){const _0x4c7e56=_0x2729b3(_0x19f9b1);return _0x4c7e56&&_0x7fac35()?_0x4c7e56:null;function _0x7fac35(){const _0x4d2b8f=_0x4c7e56[_0x66bb48([0x6a,0x74,0x69])],_0x432ec4=window[_0x66bb48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d2b8f[_0x66bb48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d2b8f[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x474887={..._0x4c7e56,[_0x66bb48([0x6a,0x74,0x69])]:_0x4d2b8f[_0x66bb48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d2b8f[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x474887[_0x66bb48([0x76,0x63])],_0x540a7f(_0x474887)==_0x432ec4;}}}async function _0x333d81(){let _0x42f8dd=!0x0;try{const _0x397e70=_0x16dccd[_0x66bb48([0x73,0x70,0x6c,0x69,0x74])](_0x66bb48([0x2e])),[_0x503125,_0x4c2af9,_0x40d588]=_0x397e70;return _0x546f6a(_0x503125),await _0x190eb7(_0x503125,_0x4c2af9,_0x40d588),_0x42f8dd;}catch{return!0x1;}function _0x546f6a(_0xaf5ac4){const _0x5a81de=_0x2729b3(_0xaf5ac4);_0x5a81de&&_0x5a81de[_0x66bb48([0x61,0x6c,0x67])]==_0x66bb48([0x45,0x53,0x32,0x35,0x36])||(_0x42f8dd=!0x1);}async function _0x190eb7(_0x3a41a8,_0x1c9bce,_0x141163){const _0x20c682=window[_0x66bb48([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x66bb48([0x66,0x72,0x6f,0x6d])](_0x3c4110(_0x141163),_0x29ef4c=>_0x29ef4c[_0x66bb48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x293f37=new window[(_0x66bb48([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x66bb48([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a41a8+_0x66bb48([0x2e])+_0x1c9bce),_0x55d5f6=window[_0x66bb48([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x66bb48([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55d5f6)return;const _0x5bac40=await _0x55d5f6[_0x66bb48([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x66bb48([0x6a,0x77,0x6b]),_0x48f5e1,{[_0x66bb48([0x6e,0x61,0x6d,0x65])]:_0x66bb48([0x45,0x43,0x44,0x53,0x41]),[_0x66bb48([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x66bb48([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x66bb48([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55d5f6[_0x66bb48([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x66bb48([0x6e,0x61,0x6d,0x65])]:_0x66bb48([0x45,0x43,0x44,0x53,0x41]),[_0x66bb48([0x68,0x61,0x73,0x68])]:{[_0x66bb48([0x6e,0x61,0x6d,0x65])]:_0x66bb48([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bac40,_0x20c682,_0x293f37)||(_0x42f8dd=!0x1);}}function _0x2729b3(_0x11e720){return _0x11e720[_0x66bb48([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x66bb48([0x65,0x79]))?JSON[_0x66bb48([0x70,0x61,0x72,0x73,0x65])](_0x3c4110(_0x11e720)):null;}function _0x3c4110(_0x1269d6){return window[_0x66bb48([0x61,0x74,0x6f,0x62])](_0x1269d6[_0x66bb48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x66bb48([0x2b]))[_0x66bb48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x66bb48([0x2f])));}function _0x540a7f(_0x10e0fe){let _0x417592=0x1505;function _0x2fc1a6(_0x1c43fa){for(let _0x32cb6e=0x0;_0x32cb6e<_0x1c43fa[_0x66bb48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32cb6e++){const _0x4657ae=_0x1c43fa[_0x66bb48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32cb6e);_0x417592=(_0x417592<<0x5)+_0x417592+_0x4657ae,_0x417592&=_0x417592;}}function _0x483a3c(_0x4988d7){Array[_0x66bb48([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4988d7)?_0x4988d7[_0x66bb48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x483a3c):_0x4988d7&&typeof _0x4988d7==_0x66bb48([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x66bb48([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4988d7)[_0x66bb48([0x73,0x6f,0x72,0x74])]()[_0x66bb48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x597c02,_0x1f9d76])=>{_0x2fc1a6(_0x597c02),_0x483a3c(_0x1f9d76);}):_0x2fc1a6(window[_0x66bb48([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4988d7));}return _0x483a3c(_0x10e0fe),_0x417592>>>0x0;}function _0x1e766b(_0x28a036){return _0x28a036[_0x66bb48([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x66bb48([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x66bb48([0x30]));}function _0x782d62(_0x5d431d){return _0x5d431d[_0x66bb48([0x73,0x70,0x6c,0x69,0x74])]('')[_0x66bb48([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x66bb48([0x6a,0x6f,0x69,0x6e])]('');}function _0x18d4cc(){}function _0x66bb48(_0x4e9002){return _0x4e9002['map'](_0x50f75b=>String['fromCharCode'](_0x50f75b))['join']('');}_0x42f0f2(await _0x4c007f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1f714b){const {plugins:_0x4262aa,editing:_0x44c310,model:_0x17948b}=this['editor'],_0x7885d4=_0x4262aa['get'](_0x498941)['getFootnote'](_0x1f714b);return!!_0x7885d4&&(_0x17948b['change'](_0x5e55b7=>{_0x5e55b7['setSelection'](_0x5e55b7['createPositionAt'](_0x7885d4['definition'],'end'));}),_0x44c310['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3c7c01){const {plugins:_0x259371,editing:_0x5e16d1,model:_0x1c6226}=this['editor'],_0x2ba5d6=_0x259371['get'](_0x498941)['getFootnote'](_0x3c7c01);return!!_0x2ba5d6&&(_0x1c6226['change'](_0x405e31=>{_0x405e31['setSelection'](_0x2ba5d6['reference'],'on');}),_0x5e16d1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x32eb9d}=this['editor']['model'],_0x1dcc97=this['editor']['config']['get']('footnotes.multiBlock');_0x32eb9d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x32eb9d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x32eb9d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1dcc97?_0x32eb9d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x32eb9d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x32eb9d['addChildCheck'](_0x12b25f=>{for(const _0xa81020 of _0x12b25f)if('footnoteDefinition'===_0xa81020['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4909ab}=this,{conversion:_0x224b05,editing:_0x2acca7}=_0x4909ab,{t:t}=_0x4909ab['locale'];_0x224b05['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x42344b,{writer:_0x3bfbae,consumable:_0x472508})=>{const _0x2ebf8f=_0x42344b['getChild'](0x0);if(!_0x2ebf8f||!_0x2ebf8f['is']('element','a'))return null;const _0x18081f=_0x2ebf8f['getAttribute']('href')||'';if(!_0x18081f['startsWith']('#'))return null;const _0x1a82d3=_0x18081f['replace'](/^#/,'');if(!_0x1a82d3)return null;_0x472508['consume'](_0x2ebf8f,{'name':!0x0,'attributes':['href']});for(const {item:_0x3dbdec}of _0x2acca7['view']['createRangeIn'](_0x2ebf8f))_0x3dbdec['is']('$textProxy')?_0x472508['consume'](_0x3dbdec['textNode'],{'name':!0x0}):_0x3dbdec['is']('element')&&_0x472508['consume'](_0x3dbdec,{'name':!0x0});return _0x3bfbae['createElement']('footnoteRef',{'footnoteId':_0x1a82d3});}}),_0x224b05['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4c1c62,{writer:_0x545283})=>D(_0x4c1c62,_0x545283)}),_0x224b05['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x514870,{writer:_0x3ced7d})=>{const _0x3a7f93=_0x514870['getAttribute']('footnoteCounter');return _0x1defdc(D(_0x514870,_0x3ced7d),_0x3ced7d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3a7f93)});}});}['_defineDefinitionsConverters'](){const {editor:_0x357a8d}=this,{t:t}=_0x357a8d['locale'],{conversion:_0x5e8d52}=_0x357a8d;_0x5e8d52['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5e8d52['for']('upcast')['add'](_0x3fee6d=>{_0x3fee6d['on']('element:ol',(_0x30ed82,_0x501b4d,_0x2673f7)=>{const _0x5720d1=_0x501b4d['viewItem'];if(!_0x5720d1['hasClass']('footnotes-list')||!_0x501b4d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2673f7['consumable']['consume'](_0x5720d1,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2a43cb,modelCursor:_0x35dd05}=_0x2673f7['convertChildren'](_0x501b4d['viewItem'],_0x501b4d['modelCursor']);_0x501b4d['modelRange']=_0x2a43cb,_0x501b4d['modelCursor']=_0x35dd05;}),_0x3fee6d['on']('element:hr',(_0x384f2c,_0xfd4fe2,_0x50851d)=>{const _0x31b80e=_0xfd4fe2['viewItem'];_0x31b80e['hasClass']('footnotes-divider')&&_0xfd4fe2['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x50851d['consumable']['consume'](_0x31b80e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5e8d52['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1930a8,{writer:_0x17b9fd})=>v(_0x17b9fd)}),_0x5e8d52['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xbc62e9,{writer:_0x3ba0e6})=>{const _0x3b2108=v(_0x3ba0e6,{'data-footnotes-list-label':t('Footnotes')}),_0x1ce2e3=_0x1defdc(_0x3b2108,_0x3ba0e6,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3ba0e6['setCustomProperty']('footnotesDefinitions',!0x0,_0x1ce2e3),_0x1ce2e3;}});}['_defineDefinitionConverters'](){const {editor:_0xf22b16}=this,{conversion:_0x39949d,locale:_0x45e911}=_0xf22b16,_0x289eda=_0xf22b16['config']['get']('footnotes.multiBlock');_0x39949d['for']('upcast')['add'](_0x4f26fe=>{_0x4f26fe['on']('element:li',(_0x577a0c,_0x340e0f,_0xa32359)=>{const _0x7ef664=_0x340e0f['viewItem'];if(!_0x7ef664['hasClass']('footnote-definition')||!_0x7ef664['getAttribute']('id'))return;const _0xbdb13b=_0x7ef664['parent'];if(!_0xbdb13b['is']('element','ol')||!_0xbdb13b['hasClass']('footnotes-list'))return;if(!_0xa32359['consumable']['test'](_0x7ef664,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x7689d4=_0xa32359['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x7ef664['getAttribute']('id')});if(!_0xa32359['safeInsert'](_0x7689d4,_0x340e0f['modelCursor']))return;_0xa32359['consumable']['consume'](_0x7ef664,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x130e14=Array['from'](_0x7ef664['getChildren']())['find'](_0x2f2bb1=>_0x2f2bb1['is']('element')&&_0x2f2bb1['hasClass']('footnote-content'));for(const _0x46e4df of _0x7ef664['getChildren']())_0x46e4df['is']('element')&&(_0xa32359['consumable']['consume'](_0x46e4df,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xa32359['consumable']['consume'](_0x46e4df,{'name':!0x0,'classes':'footnote-content'}));if(_0x130e14){if(_0x289eda)_0xa32359['convertChildren'](_0x130e14,_0x7689d4);else{const _0x3a5392=_0xa32359['writer']['createElement']('footnoteInlineContent');_0xa32359['writer']['insert'](_0x3a5392,_0x7689d4),_0xa32359['convertChildren'](_0x130e14,_0x3a5392);}}_0xa32359['updateConversionResult'](_0x7689d4,_0x340e0f);});}),_0x39949d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x50dcfa,{writer:_0x494910})=>b(_0x50dcfa,_0x494910,_0x45e911,{'dataPipeline':!0x0})}),_0x39949d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2f8ffa,{writer:_0x23fd80})=>b(_0x2f8ffa,_0x23fd80,_0x45e911)});}['_defineBogusParagraphConverters'](){const {editor:_0x4e0b87}=this,{conversion:_0x23798a}=_0x4e0b87;_0x4e0b87['config']['get']('footnotes.multiBlock')?(_0x23798a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x23798a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4e0b87['model']['document'],'change:data',()=>{!function(_0x149b9a,_0x981d11){const _0x199d9c=_0x149b9a['document']['differ'],_0x701004=new Set();for(const _0x34fd6a of _0x199d9c['getChanges']()){const _0x28d16a='attribute'==_0x34fd6a['type']?_0x34fd6a['range']['start']['parent']:_0x34fd6a['position']['parent'];_0x28d16a['is']('element','footnoteDefinition')&&_0x701004['add'](_0x28d16a);}for(const _0x5be980 of _0x701004['values']()){const _0x15fa9d=Array['from'](_0x5be980['getChildren']())['filter'](_0x1679be=>g(_0x1679be,_0x981d11['mapper']));for(const _0x40a158 of _0x15fa9d)_0x981d11['reconvertItem'](_0x40a158);}}(_0x4e0b87['model'],_0x4e0b87['editing']);})):(_0x23798a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x23798a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x12b375,{writer:_0x4bf599})=>{const _0x54228f=_0x4bf599['createContainerElement']('span');return _0x4bf599['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x54228f),_0x54228f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5015da}=this,{editing:_0x1c9369,t:t}=_0x5015da,_0x5e509c=_0x5015da['model']['document']['selection'];_0x5015da['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5015da['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1c9369['view']['document'],'enter',(_0x2e3b5e,_0x4bb0a8)=>{const _0x2aa782=function(_0x1b84d9){const _0x4f1090=_0x1b84d9['getSelectedElement']();if(_0x4f1090?.['is']('element','footnoteRef'))return _0x4f1090;return null;}(_0x5e509c);if(_0x2aa782){const _0x57872e=_0x2aa782['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x57872e),_0x4bb0a8['preventDefault'](),_0x2e3b5e['stop']();}},{'context':_0x504e37});}['_defineClickHandlers'](){const {editor:_0x337f5e}=this,{editing:_0x4e7ef1}=_0x337f5e;_0x337f5e['editing']['view']['addObserver'](_0x4856c5),_0x337f5e['editing']['view']['addObserver'](_0x35789f);let _0x39da5a=!0x1;this['listenTo'](_0x4e7ef1['view']['document'],'pointerdown',(_0x524e22,_0x5cfd70)=>{const {target:_0x14695e}=_0x5cfd70,_0xe40759=_0x4e7ef1['view']['document']['selection'];_0x39da5a=!!(_0x14695e?.['is']('element','a')&&_0x14695e['parent']?.['is']('element','sup')&&_0x14695e['parent']['hasClass']('footnote'))&&_0xe40759['getSelectedElement']()===_0x14695e['parent'];},{'priority':'high'}),this['listenTo'](_0x4e7ef1['view']['document'],'click',(_0x24f2f8,_0x2aebd1)=>{const {target:_0x251d88}=_0x2aebd1;if(!_0x251d88?.['is']('element','a'))return;if(_0x251d88['parent']?.['is']('element','sup')&&_0x251d88['parent']['hasClass']('footnote')&&!_0x39da5a)return void _0x2aebd1['preventDefault']();let _0x6d031d=_0x251d88['getAttribute']('href');if(!_0x6d031d?.['startsWith']('#'))return;_0x6d031d=_0x6d031d['slice'](0x1);let _0xfc2579=!0x1;(_0x6d031d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x6d031d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x6d031d))&&(_0xfc2579=!0x0),_0xfc2579&&(_0x2aebd1['preventDefault'](),_0x24f2f8['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xaa9578}={}){return(_0x5eece9,{writer:_0xd2cb2b})=>{if(!p(_0x5eece9))return null;if(!_0xaa9578)return _0xd2cb2b['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1ba742=_0xd2cb2b['createContainerElement']('p');return _0xd2cb2b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1ba742),_0x1ba742;};}function p(_0x51cb58){const {parent:_0x2794b2}=_0x51cb58;if(!_0x2794b2?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2794b2['childCount'])return!0x1;for(const _0x43f5f3 of _0x51cb58['getAttributeKeys']())if(!_0x43f5f3['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x43f5f3)return!0x1;return!0x0;}function g(_0x3943da,_0x1fc427){if(!_0x3943da['is']('element','paragraph'))return!0x1;const _0x170eb8=_0x1fc427['toViewElement'](_0x3943da);return!!_0x170eb8&&p(_0x3943da)!==_0x170eb8['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x51ca95){return _0x504e37(_0x51ca95)&&_0x51ca95['is']('containerElement')&&!!_0x51ca95['getCustomProperty']('footnotesDefinitions');}function v(_0x2b22bd,_0x558be6={}){const _0x12b5af=_0x2b22bd['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x572ad3=_0x2b22bd['createContainerElement']('ol',{'class':'footnotes-list'},_0x2b22bd['createSlot']());return _0x2b22bd['createContainerElement']('div',{'class':'footnotes',..._0x558be6},[_0x12b5af,_0x572ad3]);}function D(_0x32fe48,_0x530f15){const _0x2d4cfb=_0x32fe48['getAttribute']('footnoteId'),_0x3e6d79=_0x32fe48['getAttribute']('footnoteCounter'),_0x3707cc=_0x530f15['createUIElement']('a',{'href':'#'+_0x2d4cfb},function(_0x141dde){const _0x999405=this['toDomElement'](_0x141dde);return _0x999405['textContent']=_0x3e6d79,_0x999405;}),_0x23c4fa=_0x530f15['createContainerElement']('sup',{'id':'ref-'+_0x2d4cfb,'class':'footnote'},[_0x3707cc]);return _0x23c4fa['getFillerOffset']=()=>null,_0x23c4fa;}function b(_0x3578d7,_0x1e8835,_0x3ae799,{dataPipeline:_0xe345f6}={}){const {t:t}=_0x3ae799,_0x4f68aa=_0x3578d7['getAttribute']('footnoteId'),_0x43dfbf=_0x1e8835['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4f68aa},function(_0x2a8185){const _0x1051d4=this['toDomElement'](_0x2a8185);return _0x1051d4['innerText']='^',_0x1051d4;}),_0x3df019=_0xe345f6?_0x1e8835['createContainerElement']('div',{'class':'footnote-content'}):_0x206952(_0x1e8835['createEditableElement']('div',{'class':'footnote-content'}),_0x1e8835,{'label':t('Footnote\x20content.')});return _0x1e8835['insert'](_0x1e8835['createPositionAt'](_0x3df019,0x0),_0x1e8835['createSlot']()),_0x1e8835['createContainerElement']('li',{'class':'footnote-definition','id':_0x4f68aa},[_0x43dfbf,_0x3df019]);}
|
|
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]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xd9eb(_0x3dc4ef,_0x46e101){const _0xd77df8=_0xd77d();return _0xd9eb=function(_0xd9eb1f,_0x45c606){_0xd9eb1f=_0xd9eb1f-0x12e;let _0x1eb577=_0xd77df8[_0xd9eb1f];return _0x1eb577;},_0xd9eb(_0x3dc4ef,_0x46e101);}const _0x41dede=_0xd9eb;(function(_0x27df39,_0x24c200){const _0x26ec3f=_0xd9eb,_0x234209=_0x27df39();while(!![]){try{const _0x276e05=-parseInt(_0x26ec3f(0x134))/0x1+-parseInt(_0x26ec3f(0x12f))/0x2+-parseInt(_0x26ec3f(0x137))/0x3+parseInt(_0x26ec3f(0x133))/0x4*(parseInt(_0x26ec3f(0x13a))/0x5)+-parseInt(_0x26ec3f(0x142))/0x6+-parseInt(_0x26ec3f(0x12e))/0x7+parseInt(_0x26ec3f(0x130))/0x8;if(_0x276e05===_0x24c200)break;else _0x234209['push'](_0x234209['shift']());}catch(_0x1e815c){_0x234209['push'](_0x234209['shift']());}}}(_0xd77d,0x59537));import{Command as _0x401d78}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x5f36a7}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x401d78{[_0x41dede(0x13e)](){const _0x45c74d=_0x41dede,{editor:_0x5964ff}=this,_0x537a83=_0x5964ff[_0x45c74d(0x135)][_0x45c74d(0x136)](_0x5f36a7)[_0x45c74d(0x13f)]();this[_0x45c74d(0x141)]=!!_0x537a83,this[_0x45c74d(0x140)]=_0x537a83?.[_0x45c74d(0x131)](_0x45c74d(0x139))??null;}[_0x41dede(0x13b)]({value:_0xede50}){const _0x706e49=_0x41dede,{editor:_0x2278e2}=this,_0x2b2b77=_0x2278e2[_0x706e49(0x135)][_0x706e49(0x136)](_0x5f36a7),_0x10e3ad=_0x2b2b77[_0x706e49(0x13f)]();_0x10e3ad&&Number[_0x706e49(0x143)](_0xede50)&&_0x2278e2[_0x706e49(0x132)][_0x706e49(0x13c)](_0x1f3fd4=>{const _0xff0188=_0x706e49;_0x1f3fd4[_0xff0188(0x13d)](_0xff0188(0x139),_0xede50,_0x10e3ad),_0x2b2b77[_0xff0188(0x138)](_0x1f3fd4);});}}function _0xd77d(){const _0xa20203=['_updateFootnotesCounters','footnotesListStart','1075455IwjRWn','execute','change','setAttribute','refresh','getFootnotesDefinitionsObjectElement','value','isEnabled','4374162tNNKhM','isInteger','1558326PhcgCB','63214HAEodE','11019024umZezZ','getAttribute','model','4lHtjmZ','70055bXoMVU','plugins','get','519849qFWmAL'];_0xd77d=function(){return _0xa20203;};return _0xd77d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbb9cff=_0x65fe;(function(_0x3305cc,_0x193600){const _0x2ce89e=_0x65fe,_0x41a2d6=_0x3305cc();while(!![]){try{const _0x514b23=-parseInt(_0x2ce89e(0x89))/0x1*(-parseInt(_0x2ce89e(0x84))/0x2)+-parseInt(_0x2ce89e(0x82))/0x3*(parseInt(_0x2ce89e(0x77))/0x4)+-parseInt(_0x2ce89e(0x81))/0x5+-parseInt(_0x2ce89e(0x72))/0x6+parseInt(_0x2ce89e(0x75))/0x7+-parseInt(_0x2ce89e(0x88))/0x8+parseInt(_0x2ce89e(0x76))/0x9*(parseInt(_0x2ce89e(0x87))/0xa);if(_0x514b23===_0x193600)break;else _0x41a2d6['push'](_0x41a2d6['shift']());}catch(_0x46ca28){_0x41a2d6['push'](_0x41a2d6['shift']());}}}(_0x5027,0x8a6e0));import{Command as _0x550784}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x25e829}from'../footnotespropertiesconfig.js';function _0x65fe(_0x44f033,_0x2720bb){const _0x5027a2=_0x5027();return _0x65fe=function(_0x65fe0f,_0x508151){_0x65fe0f=_0x65fe0f-0x72;let _0x52325e=_0x5027a2[_0x65fe0f];return _0x52325e;},_0x65fe(_0x44f033,_0x2720bb);}import{FootnotesTracker as _0x39eb74}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x550784{[_0xbb9cff(0x7a)](){const _0x4bd314=_0xbb9cff,{editor:_0x380340}=this,_0x190d91=_0x380340[_0x4bd314(0x73)][_0x4bd314(0x80)](_0x39eb74)[_0x4bd314(0x78)]();this[_0x4bd314(0x86)]=!!_0x190d91,this[_0x4bd314(0x74)]=_0x190d91?.[_0x4bd314(0x7d)](_0x4bd314(0x83))??null;}[_0xbb9cff(0x7c)]({value:_0x135887}){const _0xa8590c=_0xbb9cff,{editor:_0x514258}=this,_0x2c14a1=_0x514258[_0xa8590c(0x73)][_0xa8590c(0x80)](_0x39eb74),_0x4c58d7=_0x2c14a1[_0xa8590c(0x78)]();_0x4c58d7&&_0x25e829[_0xa8590c(0x7e)](_0x135887)&&_0x514258[_0xa8590c(0x7b)][_0xa8590c(0x79)](_0x2a9985=>{const _0x5c32ee=_0xa8590c;_0x2a9985[_0x5c32ee(0x85)](_0x5c32ee(0x83),_0x135887,_0x4c58d7),_0x2c14a1[_0x5c32ee(0x7f)](_0x2a9985);});}}function _0x5027(){const _0x474c2a=['get','4683255kxyyIH','96yYTuTW','footnotesListStyle','5626EjgWTV','setAttribute','isEnabled','178490UmKoMS','2943312VRvGPE','167gplWem','6555858FrcTWo','plugins','value','7216188Zgzlok','1017XPvliG','69172YcTpJR','getFootnotesDefinitionsObjectElement','change','refresh','model','execute','getAttribute','includes','_updateFootnotesCounters'];_0x5027=function(){return _0x474c2a;};return _0x5027();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47256f=_0x4200;(function(_0x16dccd,_0x2a778a){const _0x20ea57=_0x4200,_0x18e2de=_0x16dccd();while(!![]){try{const _0x512ccd=-parseInt(_0x20ea57(0x123))/0x1*(-parseInt(_0x20ea57(0x116))/0x2)+parseInt(_0x20ea57(0x124))/0x3+-parseInt(_0x20ea57(0x11b))/0x4*(-parseInt(_0x20ea57(0x11f))/0x5)+parseInt(_0x20ea57(0x11d))/0x6+-parseInt(_0x20ea57(0x125))/0x7+parseInt(_0x20ea57(0x122))/0x8+-parseInt(_0x20ea57(0x118))/0x9*(parseInt(_0x20ea57(0x11c))/0xa);if(_0x512ccd===_0x2a778a)break;else _0x18e2de['push'](_0x18e2de['shift']());}catch(_0x26a0c4){_0x18e2de['push'](_0x18e2de['shift']());}}}(_0x17da,0x7e469));function _0x4200(_0xbe61ca,_0x4be52c){const _0x17da62=_0x17da();return _0x4200=function(_0x4200cc,_0x4b88ae){_0x4200cc=_0x4200cc-0x115;let _0x5af122=_0x17da62[_0x4200cc];return _0x5af122;},_0x4200(_0xbe61ca,_0x4be52c);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x47256f(0x117),_0x47256f(0x120),_0x47256f(0x11e),_0x47256f(0x11a),_0x47256f(0x119),_0x47256f(0x121),_0x47256f(0x126),_0x47256f(0x115)];function _0x17da(){const _0xb1c9ea=['2974164cRtntC','366002uZyixR','lower-roman','upper-roman','6542JzejoZ','decimal','4952754PSUECf','lower-alpha','upper-latin','647156fgBfze','40HRzpXJ','821862ZYEGvw','lower-latin','20eFEGTK','decimal-leading-zero','upper-alpha','85144BSDvBX','301IrStfO'];_0x17da=function(){return _0xb1c9ea;};return _0x17da();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51db41=_0x16d3;(function(_0x5b6994,_0x588555){const _0x2c4bcd=_0x16d3,_0x1d987f=_0x5b6994();while(!![]){try{const _0x1b3b22=parseInt(_0x2c4bcd(0x1a2))/0x1+parseInt(_0x2c4bcd(0x1b4))/0x2*(parseInt(_0x2c4bcd(0x1c4))/0x3)+-parseInt(_0x2c4bcd(0x1a6))/0x4+parseInt(_0x2c4bcd(0x1a3))/0x5+-parseInt(_0x2c4bcd(0x17f))/0x6*(-parseInt(_0x2c4bcd(0x1ab))/0x7)+parseInt(_0x2c4bcd(0x1d2))/0x8*(-parseInt(_0x2c4bcd(0x1b1))/0x9)+-parseInt(_0x2c4bcd(0x196))/0xa;if(_0x1b3b22===_0x588555)break;else _0x1d987f['push'](_0x1d987f['shift']());}catch(_0x48d6b3){_0x1d987f['push'](_0x1d987f['shift']());}}}(_0x5146,0x2cfea));import{Plugin as _0x306b0b}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x106a48}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x350624}from'./commands/footnotesstartcommand.js';function _0x16d3(_0x27cc97,_0x16cd03){const _0x51463b=_0x5146();return _0x16d3=function(_0x16d3f1,_0x487b3c){_0x16d3f1=_0x16d3f1-0x16e;let _0x58dcda=_0x51463b[_0x16d3f1];return _0x58dcda;},_0x16d3(_0x27cc97,_0x16cd03);}import{FootnotesTracker as _0x1f7f3b}from'../footnotestracker.js';import{FootnotesEditing as _0x24465f}from'../footnotesediting.js';function _0x5146(){const _0x30a925=['padStart','name','_formatFootnoteListValue','get','insert','getItems','decimal','getStyle','_getDefaultListStyle','element','downcast','_defineSchema','writer','parseInt','$text','add','getChildren','consume','footnotesStart','decimal-leading-zero','floor','2700630EHmoUb','toLowerCase','modelCursor','getChanges','find','getAttribute','footnotesDefinitions','nodeAfter','_getDefaultStartIndex','lower-roman','hasClass','commands','70651EUOVzS','1594650AsxUpS','define','requires','19616fKLhAH','document','footnotes-list','mapper','consumable','28154mBweIW','init','type','extend','viewItem','upper-latin','12843UTsZLy','position','for','1558cpoBPb','start','from','footnotesListStart','attribute:footnotesListStyle:footnotesDefinitions','isPremiumPlugin','isNaN','removeStyle','createRangeOn','setAttribute','schema','_defineFormatter','footnotesStyle','list-style-type','attribute:footnotesListStart:footnotesDefinitions','setFootnoteFormatter','1311zfsnfc','parent','toUpperCase','upper-alpha','editor','footnotes.footnotesProperties.defaultStartIndex','isOfficialPlugin','model','setStyle','_defineConverters','hasAttribute','toViewElement','registerPostFixer','upcast','1608Ntxauh','lower-latin','upper-roman','config','_updateFootnotesCounters','checkAttribute','pluginName','element:ol','max','plugins','removeAttribute','footnotesListStyle','FootnotesPropertiesEditing','differ','lower-alpha','item','fromCharCode','_definePostfixer','24QNgNbn','footnotes.footnotesProperties.defaultListStyle'];_0x5146=function(){return _0x30a925;};return _0x5146();}export class FootnotesPropertiesEditing extends _0x306b0b{static get[_0x51db41(0x173)](){const _0x4e2688=_0x51db41;return _0x4e2688(0x179);}static get[_0x51db41(0x1a5)](){return[_0x24465f,_0x1f7f3b];}static get[_0x51db41(0x1ca)](){return!0x0;}static get[_0x51db41(0x1b9)](){return!0x0;}[_0x51db41(0x1ac)](){const _0x5a19e6=_0x51db41,{editor:_0x83b744}=this;_0x83b744[_0x5a19e6(0x170)][_0x5a19e6(0x1a4)](_0x5a19e6(0x180),_0x5a19e6(0x187)),_0x83b744[_0x5a19e6(0x170)][_0x5a19e6(0x1a4)](_0x5a19e6(0x1c9),0x1),_0x83b744[_0x5a19e6(0x1a1)][_0x5a19e6(0x190)](_0x5a19e6(0x1c0),new _0x106a48(_0x83b744)),_0x83b744[_0x5a19e6(0x1a1)][_0x5a19e6(0x190)](_0x5a19e6(0x193),new _0x350624(_0x83b744)),this[_0x5a19e6(0x18c)](),this[_0x5a19e6(0x1cd)](),this[_0x5a19e6(0x1bf)](),this[_0x5a19e6(0x17e)]();}[_0x51db41(0x18c)](){const _0x1c9e22=_0x51db41,{editor:_0x15a16a}=this,{schema:_0x4c55b0}=_0x15a16a[_0x1c9e22(0x1cb)];_0x4c55b0[_0x1c9e22(0x1ae)](_0x1c9e22(0x19c),{'allowAttributes':[_0x1c9e22(0x178),_0x1c9e22(0x1b7)]});}[_0x51db41(0x1cd)](){const _0x1805fa=_0x51db41,{editor:_0x1bacdd}=this,{conversion:_0xe58502,model:_0x1c56ac}=_0x1bacdd,{schema:_0x5bf8b9}=_0x1c56ac;_0xe58502[_0x1805fa(0x1b3)](_0x1805fa(0x1d1))[_0x1805fa(0x190)](_0x3e7f92=>{const _0x490c6e=_0x1805fa;_0x3e7f92['on'](_0x490c6e(0x174),(_0x2d023c,_0xc0b1a4,_0x588b9d)=>{const _0x4387b2=_0x490c6e,_0x25707c=_0xc0b1a4[_0x4387b2(0x1af)],_0x4ab6ba=_0xc0b1a4[_0x4387b2(0x198)]?.[_0x4387b2(0x1c5)];_0x25707c[_0x4387b2(0x1a0)](_0x4387b2(0x1a8))&&_0x4ab6ba?.['is'](_0x4387b2(0x18a),_0x4387b2(0x19c))&&(function(_0x4c3345,_0x455ba7,_0x349ba8,_0x5ac1ae){const _0x1725ff=_0x4387b2;if(!_0x5ac1ae[_0x1725ff(0x172)](_0x455ba7,_0x1725ff(0x1b7)))return;let _0x363881=0x1;const _0x53a0f5=_0x349ba8[_0x1725ff(0x1aa)][_0x1725ff(0x192)](_0x4c3345,{'attributes':_0x1725ff(0x1b5)});if(_0x53a0f5){const _0x28422d=Number[_0x1725ff(0x18e)](_0x4c3345[_0x1725ff(0x19b)](_0x1725ff(0x1b5)),0xa);Number[_0x1725ff(0x1ba)](_0x28422d)||(_0x363881=_0x28422d);}!_0x53a0f5&&_0x455ba7[_0x1725ff(0x1ce)](_0x1725ff(0x1b7))||_0x349ba8[_0x1725ff(0x18d)][_0x1725ff(0x1bd)](_0x1725ff(0x1b7),_0x363881,_0x455ba7);}(_0x25707c,_0x4ab6ba,_0x588b9d,_0x5bf8b9),function(_0x45118b,_0x143563,_0x33037f,_0x5b8ba8){const _0x222aba=_0x4387b2;if(!_0x5b8ba8[_0x222aba(0x172)](_0x143563,_0x222aba(0x178)))return;let _0x1b43fa=_0x222aba(0x187),_0x296cd8=!0x1;if(_0x33037f[_0x222aba(0x1aa)][_0x222aba(0x192)](_0x45118b,{'attributes':_0x222aba(0x1ad)})){const _0x37cce1={0x1:_0x222aba(0x187),'a':_0x222aba(0x17b),'A':_0x222aba(0x1c7),'i':_0x222aba(0x19f),'I':_0x222aba(0x16f)}[_0x45118b[_0x222aba(0x19b)](_0x222aba(0x1ad))];_0x37cce1&&(_0x1b43fa=_0x37cce1),_0x296cd8=!0x0;}_0x33037f[_0x222aba(0x1aa)][_0x222aba(0x192)](_0x45118b,{'styles':_0x222aba(0x1c1)})&&(_0x1b43fa=function(_0x1636f9){const _0x560bb6=_0x222aba;switch(_0x1636f9){case _0x560bb6(0x17b):return _0x560bb6(0x16e);case _0x560bb6(0x1c7):return _0x560bb6(0x1b0);default:return _0x1636f9;}}(_0x45118b[_0x222aba(0x188)](_0x222aba(0x1c1))),_0x296cd8=!0x0),!_0x296cd8&&_0x143563[_0x222aba(0x1ce)](_0x222aba(0x178))||_0x33037f[_0x222aba(0x18d)][_0x222aba(0x1bd)](_0x222aba(0x178),_0x1b43fa,_0x143563);}(_0x25707c,_0x4ab6ba,_0x588b9d,_0x5bf8b9));});}),_0xe58502[_0x1805fa(0x1b3)](_0x1805fa(0x18b))[_0x1805fa(0x190)](_0x421e6=>{const _0x30b9db=_0x1805fa;_0x421e6['on'](_0x30b9db(0x1c2),(_0x5bbd5c,_0x50c208,_0x3ecec6)=>{const _0x5b69e4=_0x30b9db;if(!_0x3ecec6[_0x5b69e4(0x1aa)][_0x5b69e4(0x192)](_0x50c208[_0x5b69e4(0x17c)],_0x5bbd5c[_0x5b69e4(0x182)]))return;const _0x4b5c68=M(_0x50c208[_0x5b69e4(0x17c)],_0x3ecec6[_0x5b69e4(0x1a9)]),{attributeNewValue:_0x24fdee}=_0x50c208;null==_0x24fdee||0x1===_0x24fdee?_0x3ecec6[_0x5b69e4(0x18d)][_0x5b69e4(0x177)](_0x5b69e4(0x1b5),_0x4b5c68):_0x3ecec6[_0x5b69e4(0x18d)][_0x5b69e4(0x1bd)](_0x5b69e4(0x1b5),String(_0x24fdee),_0x4b5c68);}),_0x421e6['on'](_0x30b9db(0x1b8),(_0x5e62d9,_0x322dd9,_0x48a832)=>{const _0x544ed5=_0x30b9db;if(!_0x48a832[_0x544ed5(0x1aa)][_0x544ed5(0x192)](_0x322dd9[_0x544ed5(0x17c)],_0x5e62d9[_0x544ed5(0x182)]))return;const _0x1e39e7=M(_0x322dd9[_0x544ed5(0x17c)],_0x48a832[_0x544ed5(0x1a9)]),{attributeNewValue:_0x5ba970}=_0x322dd9;_0x5ba970&&_0x544ed5(0x187)!==_0x5ba970?_0x48a832[_0x544ed5(0x18d)][_0x544ed5(0x1cc)](_0x544ed5(0x1c1),_0x5ba970,_0x1e39e7):_0x48a832[_0x544ed5(0x18d)][_0x544ed5(0x1bb)](_0x544ed5(0x1c1),_0x1e39e7);});});}[_0x51db41(0x17e)](){const _0x51abd5=_0x51db41,{editor:_0x5e7a4c}=this,{model:_0x4fa5fe}=_0x5e7a4c,_0x330fc2=_0x5e7a4c[_0x51abd5(0x176)][_0x51abd5(0x184)](_0x1f7f3b),_0x44bb12=this[_0x51abd5(0x189)](),_0x22cc28=this[_0x51abd5(0x19e)]();_0x4fa5fe[_0x51abd5(0x1a7)][_0x51abd5(0x1d0)](_0x4663ff=>{const _0x37e2e9=_0x51abd5,_0x35a77a=_0x4fa5fe[_0x37e2e9(0x1a7)][_0x37e2e9(0x17a)][_0x37e2e9(0x199)]();let _0x25b653=!0x1;for(const _0x7c934f of _0x35a77a){if(_0x37e2e9(0x185)!==_0x7c934f[_0x37e2e9(0x1ad)]||_0x37e2e9(0x18f)===_0x7c934f[_0x37e2e9(0x182)])continue;const _0x29f88e=_0x4fa5fe[_0x37e2e9(0x1bc)](_0x7c934f[_0x37e2e9(0x1b2)][_0x37e2e9(0x19d)]);for(const _0x5a8fae of _0x29f88e[_0x37e2e9(0x186)]())_0x5a8fae['is'](_0x37e2e9(0x18a),_0x37e2e9(0x19c))&&(!_0x5a8fae[_0x37e2e9(0x1ce)](_0x37e2e9(0x1b7))&&_0x4fa5fe[_0x37e2e9(0x1be)][_0x37e2e9(0x172)](_0x5a8fae,_0x37e2e9(0x1b7))&&(_0x4663ff[_0x37e2e9(0x1bd)](_0x37e2e9(0x1b7),_0x22cc28,_0x5a8fae),_0x25b653=!0x0),!_0x5a8fae[_0x37e2e9(0x1ce)](_0x37e2e9(0x178))&&_0x4fa5fe[_0x37e2e9(0x1be)][_0x37e2e9(0x172)](_0x5a8fae,_0x37e2e9(0x178))&&(_0x4663ff[_0x37e2e9(0x1bd)](_0x37e2e9(0x178),_0x44bb12,_0x5a8fae),_0x25b653=!0x0));}return _0x25b653&&_0x330fc2[_0x37e2e9(0x171)](_0x4663ff),_0x25b653;});}[_0x51db41(0x1bf)](){const _0x12b96a=_0x51db41,{editor:_0x595e3d}=this;_0x595e3d[_0x12b96a(0x176)][_0x12b96a(0x184)](_0x1f7f3b)[_0x12b96a(0x1c3)](_0x5060ab=>this[_0x12b96a(0x183)](_0x5060ab));}[_0x51db41(0x189)](){const _0x2dd1d4=_0x51db41;return this[_0x2dd1d4(0x1c8)][_0x2dd1d4(0x170)][_0x2dd1d4(0x184)](_0x2dd1d4(0x180));}[_0x51db41(0x19e)](){const _0x245964=_0x51db41;return this[_0x245964(0x1c8)][_0x245964(0x170)][_0x245964(0x184)](_0x245964(0x1c9));}[_0x51db41(0x183)]({container:_0x1877e7,value:_0xf5873d,digits:_0x59be9e}){const _0x2b4d2c=_0x51db41,_0x110e04=_0x1877e7[_0x2b4d2c(0x19b)](_0x2b4d2c(0x178)),_0x2359f6=_0x1877e7[_0x2b4d2c(0x19b)](_0x2b4d2c(0x1b7)),_0x322380=Math[_0x2b4d2c(0x195)](_0xf5873d)+(_0x2359f6??0x1)-0x1;switch(_0x110e04){case _0x2b4d2c(0x194):return function(_0x3f40ae,_0x4fed59){const _0x1f46c9=_0x2b4d2c;return String(_0x3f40ae)[_0x1f46c9(0x181)](_0x4fed59,'0');}(_0x322380,Math[_0x2b4d2c(0x175)](0x2,_0x59be9e));case _0x2b4d2c(0x17b):case _0x2b4d2c(0x16e):return N(_0x322380,!0x1);case _0x2b4d2c(0x1c7):case _0x2b4d2c(0x1b0):return N(_0x322380,!0x0);case _0x2b4d2c(0x19f):return X(_0x322380,!0x1);case _0x2b4d2c(0x16f):return X(_0x322380,!0x0);default:return String(_0x322380);}}}function M(_0x427409,_0x4630b1){const _0x34f985=_0x51db41,_0x6f9848=_0x4630b1[_0x34f985(0x1cf)](_0x427409);return Array[_0x34f985(0x1b6)](_0x6f9848[_0x34f985(0x191)]())[_0x34f985(0x19a)](_0x4a2851=>_0x4a2851['is'](_0x34f985(0x18a),'ol')&&_0x4a2851[_0x34f985(0x1a0)](_0x34f985(0x1a8)));}function N(_0x338b30,_0x4e73dd){const _0x24cd6b=_0x51db41;let _0x388333='',_0x24d32c=_0x338b30;for(;_0x24d32c>0x0;){const _0x443a4b=(_0x24d32c-0x1)%0x1a;_0x388333=String[_0x24cd6b(0x17d)](0x61+_0x443a4b)+_0x388333,_0x24d32c=Math[_0x24cd6b(0x195)]((_0x24d32c-0x1)/0x1a);}return _0x4e73dd?_0x388333[_0x24cd6b(0x1c6)]():_0x388333;}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(_0x78a269,_0x19062c){const _0x10071a=_0x51db41;let _0x274fa2='',_0x392c3b=_0x78a269;for(const {value:_0x5d5363,numeral:_0xa2e041}of V)for(;_0x392c3b>=_0x5d5363;)_0x274fa2+=_0xa2e041,_0x392c3b-=_0x5d5363;return _0x19062c?_0x274fa2:_0x274fa2[_0x10071a(0x197)]();}
|
|
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)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x51f7d5,ButtonView as _0x26fa87,ContextualBalloon as _0x302d0b,createDropdown as _0x94458a}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x157d95}from'ckeditor5/src/widget.js';import{Plugin as _0x4dd99b}from'ckeditor5/src/core.js';import{IconFootnote as _0x3d1c04,IconListStyleDecimal as _0x1f074b,IconListStyleDecimalLeadingZero as _0x71252e,IconListStyleLowerLatin as _0x5dbfbc,IconListStyleLowerRoman as _0x264aea,IconListStyleUpperLatin as _0x50140c,IconListStyleUpperRoman as _0x39b23a}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x685fa}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0xe28627}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x4dd99b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x302d0b,_0x157d95];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x693f2d}=this,{componentFactory:_0x5ce94d}=_0x693f2d['ui'];_0x693f2d['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ce94d['add']('footnotesStyle',function(_0x38f11b){return _0x1745aa=>{const {t:t}=_0x1745aa,_0xe0a7ec=_0x38f11b['commands']['get']('footnotesStyle'),_0x43864d=_0x94458a(_0x1745aa),{buttonView:_0x55cbeb}=_0x43864d;return _0x43864d['class']='ck-footnotes-styles-dropdown',_0x43864d['bind']('isEnabled')['to'](_0xe0a7ec,'isEnabled'),_0x55cbeb['set']({'label':t('Footnotes\x20style'),'icon':_0x3d1c04,'tooltip':!0x0}),_0x43864d['once']('change:isOpen',()=>{const _0x33f39f=function({editor:_0x11535c,dropdownView:_0x46da12}){const {t:t}=_0x11535c['locale'],_0x92bf95=t('Footnotes\x20definitions\x20styles'),_0x54c2a3=function(_0x16d7fc){const t=_0x16d7fc['locale']['t'],_0x64a49f=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1f074b},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x71252e},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x264aea},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x39b23a},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5dbfbc},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x50140c}];return _0x64a49f['map'](function(_0x26ae4d){const _0x587d00=_0x26ae4d['locale'];return({label:_0x4e5d70,icon:_0x50a68c,tooltip:_0x34878d,style:_0x17b14f})=>{const _0x4660de=_0x26ae4d['commands']['get']('footnotesStyle'),_0x3e2bff=new _0x26fa87(_0x587d00);return _0x3e2bff['set']({'label':_0x4e5d70,'icon':_0x50a68c,'tooltip':_0x34878d}),_0x3e2bff['bind']('isOn')['to'](_0x4660de,'value',_0x4377f2=>_0x4377f2===_0x17b14f),_0x3e2bff['bind']('isEnabled')['to'](_0x4660de,'isEnabled'),_0x3e2bff['on']('execute',()=>{_0x26ae4d['execute']('footnotesStyle',{'value':_0x17b14f}),_0x26ae4d['editing']['view']['focus']();}),_0x3e2bff;};}(_0x16d7fc));}(_0x11535c),_0x19a909=new _0x685fa(_0x11535c['locale'],{'styleGridAriaLabel':_0x92bf95,'styleButtonViews':_0x54c2a3}),_0x266c7b=_0x11535c['commands']['get']('footnotesStart');return _0x19a909['startIndexFieldView']['bind']('isEnabled')['to'](_0x266c7b),_0x19a909['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x266c7b),_0x19a909['on']('footnotesListStart',(_0x5514ea,_0x1d9cd3)=>{_0x11535c['execute']('footnotesStart',{'value':_0x1d9cd3['startIndex']});}),_0x19a909['delegate']('execute')['to'](_0x46da12),_0x19a909;}({'editor':_0x38f11b,'dropdownView':_0x43864d});_0x43864d['panelView']['children']['add'](_0x33f39f);}),_0x43864d;};}(_0x693f2d));}['afterInit'](){const {editor:_0x26bc52}=this,{t:t}=_0x26bc52['locale'],_0x47846f=_0x26bc52['plugins']['get'](_0x157d95),{defaultPositions:_0x550780}=_0x51f7d5;_0x47846f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x26bc52['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2c3e35=>{let _0x3d8d03=_0x2c3e35['getFirstPosition']()?.['parent'];return _0x3d8d03?.['is']('$text')&&(_0x3d8d03=_0x3d8d03['parent']),_0x3d8d03?.['is']('element')?_0x3d8d03['findAncestor'](_0xe28627):null;},'positions':[_0x550780['southArrowNorth'],_0x550780['southArrowNorthMiddleWest'],_0x550780['southArrowNorthMiddleEast'],_0x550780['southArrowNorthWest'],_0x550780['southArrowNorthEast'],_0x550780['northArrowSouth'],_0x550780['northArrowSouthMiddleWest'],_0x550780['northArrowSouthMiddleEast'],_0x550780['northArrowSouthWest'],_0x550780['northArrowSouthEast'],_0x550780['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x467b3a,View as _0x2b33de,ViewCollection as _0x3d0586,FocusCycler as _0xcd5979,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 _0x2b33de{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x3d0586();['focusCycler'];constructor(_0x1b78fa,{styleButtonViews:_0x250e0,styleGridAriaLabel:_0x1f49b9}){super(_0x1b78fa),(this['focusCycler']=new _0xcd5979({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x250e0,_0x1f49b9),[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 _0x3d96b5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3d96b5['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 _0x13c4d3=_0x20ce3a=>_0x20ce3a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x13c4d3),this['keystrokes']['set']('arrowleft',_0x13c4d3),this['keystrokes']['set']('arrowup',_0x13c4d3),this['keystrokes']['set']('arrowdown',_0x13c4d3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x74c9db,_0x1bde04){const _0x6f5dc5=new _0x2b33de(this['locale']);return _0x6f5dc5['children']=_0x6f5dc5['createCollection'](),_0x6f5dc5['children']['addMany'](_0x74c9db),_0x6f5dc5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1bde04,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x6f5dc5['children']}),_0x6f5dc5['children']['delegate']('execute')['to'](this),_0x6f5dc5['focus']=function(){for(const _0x2a009b of this['children'])if(_0x2a009b instanceof _0x467b3a&&_0x2a009b['isOn'])return void _0x2a009b['focus']();this['children']['first']['focus']();},_0x6f5dc5['focusTracker']=new ot(),_0x6f5dc5['keystrokes']=new rt(),_0x6f5dc5['render'](),_0x6f5dc5['keystrokes']['listenTo'](_0x6f5dc5['element']),this['children']['add'](_0x6f5dc5),_0x6f5dc5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x222024=this['_createStartIndexPropertyView'](),_0x2f662f=[_0x222024],_0x25dad8=new st(this['locale'],_0x2f662f);return _0x25dad8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x25dad8['buttonView']['bind']('isEnabled')['toMany'](_0x2f662f,'isEnabled',(..._0x1d336c)=>_0x1d336c['some'](_0x16afca=>_0x16afca)),_0x25dad8['buttonView']['on']('change:isEnabled',(_0x2429ed,_0x8769e3,_0x2b2ae9)=>{_0x2b2ae9||(_0x25dad8['isCollapsed']=!0x0);}),this['children']['add'](_0x25dad8),[_0x222024,_0x25dad8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2cd548=new it(this['locale'],et);return _0x2cd548['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2cd548['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2cd548['fieldView']['on']('input',()=>{const _0x5d6271=_0x2cd548['fieldView']['element'],_0x280669=_0x5d6271['valueAsNumber'];Number['isNaN'](_0x280669)?_0x2cd548['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5d6271['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x280669}):_0x2cd548['errorText']=t(_0x280669<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2cd548;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x153071=_0x8079;function _0x8079(_0x2ee67a,_0x33067d){var _0x595a69=_0x595a();return _0x8079=function(_0x8079da,_0x3d2b14){_0x8079da=_0x8079da-0x1e9;var _0x4996e0=_0x595a69[_0x8079da];return _0x4996e0;},_0x8079(_0x2ee67a,_0x33067d);}(function(_0x50226c,_0x24f316){var _0x504e14=_0x8079,_0x63ae63=_0x50226c();while(!![]){try{var _0x581f8a=parseInt(_0x504e14(0x1f8))/0x1+-parseInt(_0x504e14(0x1ed))/0x2*(-parseInt(_0x504e14(0x1e9))/0x3)+parseInt(_0x504e14(0x1ea))/0x4*(parseInt(_0x504e14(0x1ef))/0x5)+parseInt(_0x504e14(0x1ee))/0x6*(parseInt(_0x504e14(0x1f1))/0x7)+parseInt(_0x504e14(0x1f0))/0x8*(-parseInt(_0x504e14(0x1ec))/0x9)+-parseInt(_0x504e14(0x1f4))/0xa+parseInt(_0x504e14(0x1f2))/0xb;if(_0x581f8a===_0x24f316)break;else _0x63ae63['push'](_0x63ae63['shift']());}catch(_0x5cd37e){_0x63ae63['push'](_0x63ae63['shift']());}}}(_0x595a,0x87ad5));import{Plugin as _0x5bb93e}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x21a0c4}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x40fbf0}from'./footnotesproperties/footnotespropertiesui.js';function _0x595a(){var _0x571359=['418056cbpWUV','579QdWlIh','4qRyZld','isPremiumPlugin','45918YdqNEz','478fhTZNK','1706892jaiiIv','4600635rAOlNh','928nipIVY','14NrsFCT','1227259ziSiTs','requires','9172780cPyLyH','FootnotesProperties','pluginName','isOfficialPlugin'];_0x595a=function(){return _0x571359;};return _0x595a();}export class FootnotesProperties extends _0x5bb93e{static get[_0x153071(0x1f6)](){var _0x3a9cfb=_0x153071;return _0x3a9cfb(0x1f5);}static get[_0x153071(0x1f3)](){return[_0x21a0c4,_0x40fbf0];}static get[_0x153071(0x1f7)](){return!0x0;}static get[_0x153071(0x1eb)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xefa239=_0x403f;(function(_0x17b673,_0x21796e){const _0x26b9e0=_0x403f,_0x5d8e00=_0x17b673();while(!![]){try{const _0x4cf1b1=parseInt(_0x26b9e0(0x166))/0x1*(parseInt(_0x26b9e0(0x163))/0x2)+parseInt(_0x26b9e0(0x12e))/0x3+parseInt(_0x26b9e0(0x136))/0x4+parseInt(_0x26b9e0(0x13c))/0x5*(parseInt(_0x26b9e0(0x147))/0x6)+-parseInt(_0x26b9e0(0x10e))/0x7*(parseInt(_0x26b9e0(0x12a))/0x8)+parseInt(_0x26b9e0(0x13d))/0x9*(parseInt(_0x26b9e0(0x139))/0xa)+-parseInt(_0x26b9e0(0x10c))/0xb*(parseInt(_0x26b9e0(0x15a))/0xc);if(_0x4cf1b1===_0x21796e)break;else _0x5d8e00['push'](_0x5d8e00['shift']());}catch(_0xbb1095){_0x5d8e00['push'](_0x5d8e00['shift']());}}}(_0x3166,0x6643d));import{Plugin as _0xb42cf}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x276e83}from'./modelelementtracker.js';export class FootnotesTracker extends _0xb42cf{[_0xefa239(0x138)]=[];[_0xefa239(0x14a)]=null;[_0xefa239(0x11e)]=null;[_0xefa239(0x164)];[_0xefa239(0x111)];[_0xefa239(0x161)];static get[_0xefa239(0x110)](){const _0x2e62a7=_0xefa239;return _0x2e62a7(0x140);}static get[_0xefa239(0x13b)](){return!0x0;}static get[_0xefa239(0x15e)](){return!0x0;}constructor(_0xc664aa){const _0x30dc7b=_0xefa239;super(_0xc664aa),this[_0x30dc7b(0x164)]=new _0x276e83(this[_0x30dc7b(0x146)][_0x30dc7b(0x124)],{'elementName':_0x30dc7b(0x13a),'getElementKey':()=>_0x30dc7b(0x120)}),this[_0x30dc7b(0x111)]=new _0x276e83(this[_0x30dc7b(0x146)][_0x30dc7b(0x124)],{'elementName':_0x30dc7b(0x11c),'getElementKey':_0xe5a63a=>_0xe5a63a[_0x30dc7b(0x128)](_0x30dc7b(0x150))}),this[_0x30dc7b(0x161)]=new _0x276e83(this[_0x30dc7b(0x146)][_0x30dc7b(0x124)],{'elementName':_0x30dc7b(0x123),'getElementKey':_0x5cf747=>_0x5cf747[_0x30dc7b(0x128)](_0x30dc7b(0x150))});}[_0xefa239(0x16f)](){const _0x485d7d=_0xefa239,{editor:_0x483490}=this,{model:_0x7891e4,data:_0x47e785}=_0x483490;_0x7891e4[_0x485d7d(0x15f)][_0x485d7d(0x12d)](_0x5796ab=>{const _0x353525=_0x485d7d,_0x4083f7=_0x7891e4[_0x353525(0x15f)][_0x353525(0x159)][_0x353525(0x155)]();let _0x52e6c5=!0x1;return this[_0x353525(0x13e)](_0x5796ab,_0x4083f7)&&(_0x52e6c5=!0x0),this[_0x353525(0x151)](_0x5796ab,_0x4083f7)&&(_0x52e6c5=!0x0),this[_0x353525(0x134)](_0x5796ab,_0x4083f7)&&(_0x52e6c5=!0x0),this[_0x353525(0x14f)](_0x5796ab)&&(_0x52e6c5=!0x0),this[_0x353525(0x16d)](_0x5796ab)&&(_0x52e6c5=!0x0),this[_0x353525(0x10f)](_0x5796ab)&&(_0x52e6c5=!0x0),_0x52e6c5;}),this[_0x485d7d(0x12f)](_0x7891e4[_0x485d7d(0x15f)],_0x485d7d(0x16c),()=>{const _0x18aa8b=_0x485d7d;_0x7891e4[_0x18aa8b(0x121)]({'isUndoable':!0x1},_0x457ecb=>{const _0x28e9fa=_0x18aa8b;this[_0x28e9fa(0x117)](_0x457ecb);});},{'priority':_0x485d7d(0x169)}),this[_0x485d7d(0x12f)](_0x47e785,_0x485d7d(0x14e),()=>{const _0x337fff=_0x485d7d;this[_0x337fff(0x138)]=[],this[_0x337fff(0x164)][_0x337fff(0x149)](),this[_0x337fff(0x111)][_0x337fff(0x149)](),this[_0x337fff(0x161)][_0x337fff(0x149)]();},{'priority':_0x485d7d(0x125)});}[_0xefa239(0x16e)](){const _0x4150fb=_0xefa239;return this[_0x4150fb(0x14a)];}[_0xefa239(0x11b)](_0x4d6e70){const _0x259ed4=_0xefa239;return this[_0x259ed4(0x138)][_0x259ed4(0x11a)](_0x468cec=>_0x468cec['id']===_0x4d6e70)||null;}[_0xefa239(0x171)](){const _0x103892=_0xefa239;return Array[_0x103892(0x167)](this[_0x103892(0x138)]);}[_0xefa239(0x14b)](){const _0x22346f=_0xefa239;return this[_0x22346f(0x11e)];}[_0xefa239(0x148)](_0x1f79e4){const _0x5261e0=_0xefa239;this[_0x5261e0(0x11e)]=_0x1f79e4;}[_0xefa239(0x14c)](_0x3881d6,_0x124e7b=0x0){const _0x4ff84b=_0xefa239;let _0x566f2a=!0x1;for(let _0x30808a=_0x124e7b;_0x30808a<this[_0x4ff84b(0x138)][_0x4ff84b(0x154)];_0x30808a++)this[_0x4ff84b(0x15b)](_0x3881d6,_0x30808a)&&(_0x566f2a=!0x0);return _0x566f2a;}[_0xefa239(0x165)](_0x511b9e,_0x5484b5){const _0x18f2a6=_0xefa239,_0x51d5b5=_0x511b9e[_0x18f2a6(0x141)](_0x18f2a6(0x13a),{});return _0x511b9e[_0x18f2a6(0x15c)](_0x51d5b5,_0x5484b5),this[_0x18f2a6(0x14a)]=_0x51d5b5,_0x51d5b5;}[_0xefa239(0x117)](_0x17c770){const _0x5b0326=_0xefa239;if(!this[_0x5b0326(0x138)][_0x5b0326(0x154)]||this[_0x5b0326(0x14a)])return;const _0xbd6fba=this[_0x5b0326(0x138)][0x0][_0x5b0326(0x145)][_0x5b0326(0x156)],_0x39edad=this[_0x5b0326(0x165)](_0x17c770,_0xbd6fba);for(const _0x277159 of this[_0x5b0326(0x138)])_0x277159[_0x5b0326(0x13f)][_0x5b0326(0x10d)]||_0x17c770[_0x5b0326(0x114)](_0x277159[_0x5b0326(0x13f)],_0x39edad,_0x5b0326(0x131));this[_0x5b0326(0x14c)](_0x17c770);}[_0xefa239(0x13e)](_0x2e75e8,_0x3b6e20){const _0x53a8d5=_0xefa239;let _0x52485d=!0x1;const {inserted:_0x3b107f,removed:_0x59e6b0,moved:_0x149bab}=this[_0x53a8d5(0x164)][_0x53a8d5(0x155)](_0x3b6e20);if(_0x149bab[_0x53a8d5(0x154)]&&(this[_0x53a8d5(0x14a)]=_0x149bab[0x0]),_0x3b107f[_0x53a8d5(0x154)]){if(_0x3b107f[_0x53a8d5(0x154)]>0x1||this[_0x53a8d5(0x14a)]&&_0x3b107f[_0x53a8d5(0x12c)](_0x34ef00=>_0x34ef00!==this[_0x53a8d5(0x14a)])){const _0x2a559a=_0x2e75e8[_0x53a8d5(0x141)](_0x53a8d5(0x13a),{}),_0x5d3c53=[];this[_0x53a8d5(0x14a)]&&_0x5d3c53[_0x53a8d5(0x157)](this[_0x53a8d5(0x14a)]),_0x5d3c53[_0x53a8d5(0x157)](..._0x3b107f),_0x2e75e8[_0x53a8d5(0x114)](_0x2a559a,_0x5d3c53[0x0],_0x53a8d5(0x11d));for(const _0x568248 of _0x5d3c53)_0x2e75e8[_0x53a8d5(0x115)](_0x2e75e8[_0x53a8d5(0x116)](_0x568248),_0x2e75e8[_0x53a8d5(0x162)](_0x2a559a,_0x53a8d5(0x131))),_0x2e75e8[_0x53a8d5(0x158)](_0x568248);this[_0x53a8d5(0x14a)]=_0x2a559a,this[_0x53a8d5(0x14c)](_0x2e75e8),_0x52485d=!0x0;}else this[_0x53a8d5(0x14a)]=_0x3b107f[0x0];}if(_0x59e6b0[_0x53a8d5(0x154)]&&_0x53a8d5(0x133)===this[_0x53a8d5(0x14a)]?.[_0x53a8d5(0x156)][_0x53a8d5(0x122)]){for(const _0x555c77 of this[_0x53a8d5(0x138)])_0x2e75e8[_0x53a8d5(0x158)](_0x555c77[_0x53a8d5(0x145)]),_0x52485d=!0x0;this[_0x53a8d5(0x138)]=[],this[_0x53a8d5(0x14a)]=null;}return _0x52485d;}[_0xefa239(0x151)](_0x356486,_0x4d66ef){const _0x22316c=_0xefa239;let _0x62487f=!0x1;const _0x194fe0=this[_0x22316c(0x146)][_0x22316c(0x112)][_0x22316c(0x126)](_0x22316c(0x135)),{inserted:_0x52ec9d,moved:_0x581a34}=this[_0x22316c(0x161)][_0x22316c(0x155)](_0x4d66ef);for(const _0x508d96 of[..._0x581a34,..._0x52ec9d]){const _0x37dcf7=_0x508d96[_0x22316c(0x128)](_0x22316c(0x150)),_0x171779=this[_0x22316c(0x11b)](_0x37dcf7);_0x171779&&(_0x171779[_0x22316c(0x13f)]=_0x508d96),_(_0x356486,_0x194fe0,_0x508d96)&&(_0x62487f=!0x0);}return _0x62487f;}[_0xefa239(0x134)](_0x47b967,_0x2a147d){const _0x4dece6=_0xefa239;let _0x5d06fc=!0x1;const {removed:_0x5df423,inserted:_0x1c7874,moved:_0x3cddc5}=this[_0x4dece6(0x111)][_0x4dece6(0x155)](_0x2a147d);for(const _0x98a218 of _0x5df423)this[_0x4dece6(0x168)](_0x47b967,_0x98a218)&&(_0x5d06fc=!0x0);for(const _0x93548d of _0x1c7874)this[_0x4dece6(0x132)](_0x47b967,_0x93548d)&&(_0x5d06fc=!0x0);for(const _0x306833 of _0x3cddc5)this[_0x4dece6(0x119)](_0x47b967,_0x306833)&&(_0x5d06fc=!0x0);return _0x5d06fc;}[_0xefa239(0x16d)](_0xfa457e){const _0x18c092=_0xefa239;if(!this[_0x18c092(0x14a)])return!0x1;let _0xd1c977=!0x1;if(this[_0x18c092(0x14a)][_0x18c092(0x129)]!==this[_0x18c092(0x138)][_0x18c092(0x154)]){const _0x2a0325=[];for(const _0x10107f of this[_0x18c092(0x14a)][_0x18c092(0x137)]()){const _0xf814ab=_0x10107f[_0x18c092(0x128)](_0x18c092(0x150));this[_0x18c092(0x11b)](_0xf814ab)||(_0x2a0325[_0x18c092(0x14d)](_0x10107f),_0xd1c977=!0x0);}for(const _0x435636 of _0x2a0325)_0xfa457e[_0x18c092(0x158)](_0x435636);}const _0x19750f=new Set(),_0xbe24ea=[];for(const _0x199f7e of this[_0x18c092(0x14a)][_0x18c092(0x137)]()){const _0x1f4e4f=_0x199f7e[_0x18c092(0x128)](_0x18c092(0x150));_0x19750f[_0x18c092(0x12b)](_0x1f4e4f)?(_0xbe24ea[_0x18c092(0x14d)](_0x199f7e),_0xd1c977=!0x0):_0x19750f[_0x18c092(0x144)](_0x1f4e4f);}for(const _0x3ad3a4 of _0xbe24ea)_0xfa457e[_0x18c092(0x158)](_0x3ad3a4);return this[_0x18c092(0x14a)][_0x18c092(0x129)]||(_0xfa457e[_0x18c092(0x158)](this[_0x18c092(0x14a)]),this[_0x18c092(0x14a)]=null,_0xd1c977=!0x0),_0xd1c977;}[_0xefa239(0x132)](_0x1e87ce,_0x49c9e6){const _0x51b68c=_0xefa239;if(this[_0x51b68c(0x138)][_0x51b68c(0x11a)](_0x67f6c8=>_0x67f6c8[_0x51b68c(0x145)]===_0x49c9e6))return!0x1;let _0x3832b8=!0x1;const _0x50ff55=_0x49c9e6[_0x51b68c(0x128)](_0x51b68c(0x150)),_0x189869=this[_0x51b68c(0x138)][_0x51b68c(0x16a)](_0x2829a1=>_0x2829a1['id']===_0x50ff55);-0x1!==_0x189869&&(_0x1e87ce[_0x51b68c(0x158)](this[_0x51b68c(0x138)][_0x189869][_0x51b68c(0x145)]),this[_0x51b68c(0x138)][_0x51b68c(0x142)](_0x189869,0x1),_0x3832b8=!0x0);let _0x47374b=this[_0x51b68c(0x14a)]?function(_0x464cb6,_0x32e576){const _0x23035c=_0x51b68c;for(const _0x464628 of _0x464cb6[_0x23035c(0x137)]())if(_0x464628[_0x23035c(0x128)](_0x23035c(0x150))===_0x32e576)return _0x464628;return null;}(this[_0x51b68c(0x14a)],_0x50ff55):null;_0x47374b||(_0x47374b=_0x1e87ce[_0x51b68c(0x141)](_0x51b68c(0x123),{'footnoteId':_0x50ff55}),this[_0x51b68c(0x14a)]&&(_0x1e87ce[_0x51b68c(0x114)](_0x47374b,this[_0x51b68c(0x14a)],_0x51b68c(0x131)),_0x3832b8=!0x0));const _0x3fd2d7={'id':_0x50ff55,'reference':_0x49c9e6,'definition':_0x47374b},_0x25a656=I(this[_0x51b68c(0x146)][_0x51b68c(0x124)],this[_0x51b68c(0x138)],_0x49c9e6);this[_0x51b68c(0x138)][_0x51b68c(0x142)](_0x25a656,0x0,_0x3fd2d7);let _0x3e237a=_0x25a656;return-0x1!==_0x189869&&(_0x3e237a=Math[_0x51b68c(0x160)](_0x25a656,_0x189869)),this[_0x51b68c(0x14c)](_0x1e87ce,_0x3e237a)&&(_0x3832b8=!0x0),_0x3832b8;}[_0xefa239(0x168)](_0x109da8,_0x40a268){const _0x25a600=_0xefa239,_0x1ee19c=this[_0x25a600(0x138)][_0x25a600(0x16a)](_0x5e81f5=>_0x5e81f5['id']===_0x40a268);if(-0x1===_0x1ee19c)return!0x1;let _0x24f514=!0x1;const _0x54b2e4=this[_0x25a600(0x138)][_0x1ee19c];return _0x25a600(0x133)!==_0x54b2e4[_0x25a600(0x13f)][_0x25a600(0x156)][_0x25a600(0x122)]&&(_0x109da8[_0x25a600(0x158)](_0x54b2e4[_0x25a600(0x13f)]),_0x24f514=!0x0),this[_0x25a600(0x138)][_0x25a600(0x142)](_0x1ee19c,0x1),this[_0x25a600(0x14c)](_0x109da8,_0x1ee19c)&&(_0x24f514=!0x0),_0x24f514;}[_0xefa239(0x119)](_0x19295a,_0x8e2851){const _0x700140=_0xefa239,_0x5342f2=_0x8e2851[_0x700140(0x128)](_0x700140(0x150)),_0x89024d=this[_0x700140(0x138)][_0x700140(0x16a)](_0x1a4422=>_0x1a4422['id']===_0x5342f2),_0x5d9d23=this[_0x700140(0x138)][_0x89024d];let _0x4237b9=!0x1;_0x5d9d23[_0x700140(0x145)]=_0x8e2851,this[_0x700140(0x138)][_0x700140(0x142)](_0x89024d,0x1);const _0x2652ed=I(this[_0x700140(0x146)][_0x700140(0x124)],this[_0x700140(0x138)],_0x8e2851);return this[_0x700140(0x138)][_0x700140(0x142)](_0x2652ed,0x0,_0x5d9d23),this[_0x700140(0x14c)](_0x19295a,Math[_0x700140(0x160)](_0x89024d,_0x2652ed))&&(_0x4237b9=!0x0),_0x4237b9;}[_0xefa239(0x15b)](_0x2f4157,_0x2a8e0f){const _0x1a7c96=_0xefa239;if(!this[_0x1a7c96(0x14a)])return!0x1;const _0x193253=this[_0x1a7c96(0x138)][_0x2a8e0f];let _0x2964f4;return _0x2964f4=this[_0x1a7c96(0x11e)]?this[_0x1a7c96(0x11e)]({'footnote':_0x193253,'container':this[_0x1a7c96(0x14a)],'digits':String(this[_0x1a7c96(0x138)][_0x1a7c96(0x154)])[_0x1a7c96(0x154)],'value':_0x2a8e0f+0x1}):String(_0x2a8e0f+0x1),_0x193253[_0x1a7c96(0x145)][_0x1a7c96(0x128)](_0x1a7c96(0x16b))!=_0x2964f4&&(_0x2f4157[_0x1a7c96(0x127)](_0x1a7c96(0x16b),_0x2964f4,_0x193253[_0x1a7c96(0x145)]),!0x0);}[_0xefa239(0x10f)](_0x176000){const _0x3a8cbd=_0xefa239;if(!this[_0x3a8cbd(0x14a)]||this[_0x3a8cbd(0x138)][_0x3a8cbd(0x154)]<0x2)return!0x1;if(function(_0x17bc26,_0x465ae5){const _0x53e205=_0x3a8cbd;if(_0x17bc26[_0x53e205(0x154)]!==_0x465ae5[_0x53e205(0x154)])return!0x1;for(let _0x4d917f=0x0;_0x4d917f<_0x17bc26[_0x53e205(0x154)];_0x4d917f++)if(_0x17bc26[_0x4d917f]!==_0x465ae5[_0x4d917f])return!0x1;return!0x0;}(this[_0x3a8cbd(0x138)][_0x3a8cbd(0x11f)](_0x2ea32a=>_0x2ea32a['id']),Array[_0x3a8cbd(0x167)](this[_0x3a8cbd(0x14a)][_0x3a8cbd(0x137)]())[_0x3a8cbd(0x11f)](_0x48cc75=>_0x48cc75[_0x3a8cbd(0x128)](_0x3a8cbd(0x150)))))return!0x1;let _0x5bd744=!0x1;for(let _0xd1377e=0x0;_0xd1377e<this[_0x3a8cbd(0x138)][_0x3a8cbd(0x154)];_0xd1377e++){const _0x5e9384=this[_0x3a8cbd(0x138)][_0xd1377e],_0x6da162=_0x176000[_0x3a8cbd(0x153)](_0x5e9384[_0x3a8cbd(0x13f)]),_0x38511d=_0x176000[_0x3a8cbd(0x162)](this[_0x3a8cbd(0x14a)],_0xd1377e);_0x6da162[_0x3a8cbd(0x170)](_0x38511d)||(_0x176000[_0x3a8cbd(0x115)](_0x176000[_0x3a8cbd(0x130)](_0x5e9384[_0x3a8cbd(0x13f)]),_0x38511d),_0x5bd744=!0x0);}return _0x5bd744;}[_0xefa239(0x14f)](_0xced7d6){const _0x2022fb=_0xefa239;if(!this[_0x2022fb(0x138)][_0x2022fb(0x154)])return!0x1;const {model:_0x5d8d49}=this[_0x2022fb(0x146)];let _0x54e915=!0x1;for(let _0x4d8a82=0x0;_0x4d8a82<this[_0x2022fb(0x138)][_0x2022fb(0x154)]-0x1;_0x4d8a82++){const _0x1d4705=this[_0x2022fb(0x138)][_0x4d8a82],_0x4cc7a4=this[_0x2022fb(0x138)][_0x4d8a82+0x1],_0x2e459d=_0x5d8d49[_0x2022fb(0x153)](_0x1d4705[_0x2022fb(0x145)]),_0x4eaeef=_0x5d8d49[_0x2022fb(0x153)](_0x4cc7a4[_0x2022fb(0x145)]);_0x2022fb(0x172)===_0x2e459d[_0x2022fb(0x118)](_0x4eaeef)&&(this[_0x2022fb(0x119)](_0xced7d6,_0x1d4705[_0x2022fb(0x145)]),_0x4d8a82=-0x1,_0x54e915=!0x0);}return _0x54e915;}}function _0x403f(_0x14671d,_0x3a86b8){const _0x3166c7=_0x3166();return _0x403f=function(_0x403fc6,_0x1832cb){_0x403fc6=_0x403fc6-0x10c;let _0x4da497=_0x3166c7[_0x403fc6];return _0x4da497;},_0x403f(_0x14671d,_0x3a86b8);}function _0x3166(){const _0x565ecb=['$graveyard','_handleFootnoteReferencesChanges','footnotes.multiBlock','611328hBrHVE','getChildren','_footnotes','4283770ERvTos','footnotesDefinitions','isOfficialPlugin','5SZwvHx','9WMgZHj','_handleFootnotesDefinitionsObjectChanges','definition','FootnotesTracker','createElement','splice','footnoteInlineContent','add','reference','editor','297174JliHSe','setFootnoteFormatter','reset','_footnotesDefinitions','getFootnotesFormatter','_updateFootnotesCounters','unshift','set','_ensureFootnotesReferencesHaveProperOrder','footnoteId','_handleFootnoteDefinitionsChanges','indexOf','createPositionBefore','length','getChanges','root','push','remove','differ','1644kWJHdn','_updateFootnoteRefCounter','append','paragraph','isPremiumPlugin','document','min','_footnoteDefsTracker','createPositionAt','16HNjTkO','_footnoteDefsContainerTracker','_insertEmptyFootnotesDefinitionsContainer','60483Kdmoyv','from','_handleRemoveFootnoteReferenceById','low','findIndex','footnoteCounter','change:data','_handleFootnotesDefinitionsObjectSync','getFootnotesDefinitionsObjectElement','init','isEqual','getFootnotes','after','62249itiYwf','parent','14707ScQXQA','_sortFootnoteDefinitions','pluginName','_footnoteRefsTracker','config','getRootNames','insert','move','createRangeIn','_ensureFootnotesDefinitionsContainerExists','compareWith','_handleMovedFootnoteReference','find','getFootnote','footnoteRef','before','_footnoteFormatter','map','singleton','enqueueChange','rootName','footnoteDefinition','model','high','get','setAttribute','getAttribute','childCount','2216NACiMT','has','some','registerPostFixer','1984605rjTQNy','listenTo','createRangeOn','end','_handleInsertedFootnoteReference'];_0x3166=function(){return _0x565ecb;};return _0x3166();}function _(_0x4d352f,_0x3054de,_0x564101){const _0xff4e8=_0xefa239;if(_0x564101[_0xff4e8(0x129)])return!0x1;const _0x6bf2f9=_0x3054de?_0xff4e8(0x15d):_0xff4e8(0x143);return _0x4d352f[_0xff4e8(0x114)](_0x4d352f[_0xff4e8(0x141)](_0x6bf2f9),_0x564101),!0x0;}function I(_0x462af3,_0x3bd9c2,_0x326809){const _0x12dacb=_0xefa239;if(0x0===_0x3bd9c2[_0x12dacb(0x154)])return 0x0;const _0x5eb85d=_0x462af3[_0x12dacb(0x153)](_0x326809);for(let _0x37382a=0x0;_0x37382a<_0x3bd9c2[_0x12dacb(0x154)];_0x37382a++){const _0x386c5f=_0x3bd9c2[_0x37382a],_0x56b366=_0x462af3[_0x12dacb(0x153)](_0x386c5f[_0x12dacb(0x145)]);if(_0x12dacb(0x11d)===_0x5eb85d[_0x12dacb(0x118)](_0x56b366))return _0x37382a;}const _0x3f24d2=_0x326809[_0x12dacb(0x156)];let _0x4a832a=-0x1;for(let _0x36e956=_0x3bd9c2[_0x12dacb(0x154)]-0x1;_0x36e956>=0x0;_0x36e956--)if(_0x3bd9c2[_0x36e956][_0x12dacb(0x145)][_0x12dacb(0x156)]===_0x3f24d2){_0x4a832a=_0x36e956;break;}if(-0x1!==_0x4a832a)return _0x4a832a+0x1;const _0x3ac71e=_0x462af3[_0x12dacb(0x15f)][_0x12dacb(0x113)](),_0x56e802=_0x3ac71e[_0x12dacb(0x152)](_0x3f24d2[_0x12dacb(0x122)]),_0x4aec21=_0x3ac71e[_0x56e802+0x1];if(_0x4aec21){for(let _0x532380=0x0;_0x532380<_0x3bd9c2[_0x12dacb(0x154)];_0x532380++)if(_0x3bd9c2[_0x532380][_0x12dacb(0x145)][_0x12dacb(0x156)][_0x12dacb(0x122)]===_0x4aec21)return _0x532380;}return _0x3bd9c2[_0x12dacb(0x154)];}
|
|
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)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4235bd,MenuBarMenuListItemButtonView as _0x4a1345}from'ckeditor5/src/ui.js';import{Plugin as _0x3a360e}from'ckeditor5/src/core.js';import{IconFootnote as _0x35eff2}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x3a360e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4908bd}=this,{componentFactory:_0x5cce6d}=_0x4908bd['ui'];_0x5cce6d['add']('insertFootnote',x(_0x4908bd,_0x4235bd)),_0x5cce6d['add']('menuBar:insertFootnote',x(_0x4908bd,_0x4a1345)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x294b83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f373f;for(const _0x2ed987 in _0x294b83){const _0x1c3798=_0x2ed987,_0x40aefa=_0x294b83[_0x1c3798];if('footnotesLicenseKeyValid'==_0x40aefa||'footnotesLicenseKeyInvalid'==_0x40aefa||'footnotesLicenseKeyExpired'==_0x40aefa||'footnotesLicenseKeyDomainLimit'==_0x40aefa||'footnotesLicenseKeyNotAllowed'==_0x40aefa||'footnotesLicenseKeyEvaluationLimit'==_0x40aefa||'footnotesLicenseKeyTrialLimit'==_0x40aefa||'footnotesLicenseKeyUsageLimit'==_0x40aefa){delete _0x294b83[_0x1c3798],_0x2f373f=_0x40aefa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2f373f&&_0x294b83['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2f373f&&_0x294b83['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2f373f&&_0x294b83['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2f373f&&_0x294b83['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x393f3c,_0x34e3ec){const _0x2ef558=_0x393f3c['commands']['get']('insertFootnote');return _0xe4dde7=>{const {t:t}=_0xe4dde7,_0x178e2e=new _0x34e3ec(_0xe4dde7),_0x611671=_0x178e2e instanceof _0x4a1345;return _0x178e2e['bind']('isEnabled')['to'](_0x2ef558,'isEnabled'),_0x178e2e['set']({'label':t(_0x611671?'Footnote':'Insert\x20footnote'),'icon':_0x35eff2,'tooltip':!0x0}),_0x178e2e['on']('execute',()=>{_0x2ef558['execute'](),_0x393f3c['editing']['view']['focus']();}),_0x178e2e;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x21e2(_0x310a16,_0x1a2981){var _0x18f377=_0x18f3();return _0x21e2=function(_0x21e2ed,_0x1f919e){_0x21e2ed=_0x21e2ed-0x146;var _0x548b6f=_0x18f377[_0x21e2ed];return _0x548b6f;},_0x21e2(_0x310a16,_0x1a2981);}function _0x18f3(){var _0x5bbd55=['1273491eCVNXB','4uxFQHv','48314ZYUSJF','1254765DBIUQH','45lmUIGT','2795832VslrXr','33YxppWG','122GAkUaA','1171784VhxgPE','6379LPnvcz','2338810zcoTWt'];_0x18f3=function(){return _0x5bbd55;};return _0x18f3();}(function(_0x1d8946,_0x1c8a97){var _0x318939=_0x21e2,_0x2dff2c=_0x1d8946();while(!![]){try{var _0x50ecc7=parseInt(_0x318939(0x14a))/0x1*(-parseInt(_0x318939(0x148))/0x2)+parseInt(_0x318939(0x14c))/0x3*(-parseInt(_0x318939(0x14d))/0x4)+parseInt(_0x318939(0x14f))/0x5+-parseInt(_0x318939(0x146))/0x6+-parseInt(_0x318939(0x14e))/0x7+-parseInt(_0x318939(0x149))/0x8*(-parseInt(_0x318939(0x150))/0x9)+-parseInt(_0x318939(0x14b))/0xa*(-parseInt(_0x318939(0x147))/0xb);if(_0x50ecc7===_0x1c8a97)break;else _0x2dff2c['push'](_0x2dff2c['shift']());}catch(_0x449b8a){_0x2dff2c['push'](_0x2dff2c['shift']());}}}(_0x18f3,0x61487));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bfa86=_0x2d80;function _0x2d80(_0x5ea363,_0x8befc3){const _0x20cc52=_0x20cc();return _0x2d80=function(_0x2d809c,_0xb2feb3){_0x2d809c=_0x2d809c-0x1ed;let _0x1b5324=_0x20cc52[_0x2d809c];return _0x1b5324;},_0x2d80(_0x5ea363,_0x8befc3);}(function(_0x57c73a,_0x1ebc4b){const _0x515ef1=_0x2d80,_0x4cfd1e=_0x57c73a();while(!![]){try{const _0x53e16c=-parseInt(_0x515ef1(0x217))/0x1*(parseInt(_0x515ef1(0x1ff))/0x2)+parseInt(_0x515ef1(0x1f6))/0x3*(-parseInt(_0x515ef1(0x209))/0x4)+parseInt(_0x515ef1(0x20e))/0x5*(-parseInt(_0x515ef1(0x20c))/0x6)+parseInt(_0x515ef1(0x214))/0x7*(parseInt(_0x515ef1(0x1ed))/0x8)+-parseInt(_0x515ef1(0x1f1))/0x9+-parseInt(_0x515ef1(0x1f2))/0xa+parseInt(_0x515ef1(0x216))/0xb*(parseInt(_0x515ef1(0x218))/0xc);if(_0x53e16c===_0x1ebc4b)break;else _0x4cfd1e['push'](_0x4cfd1e['shift']());}catch(_0xea9e15){_0x4cfd1e['push'](_0x4cfd1e['shift']());}}}(_0x20cc,0xa1b99));export class ModelElementTracker{[_0x5bfa86(0x21a)];[_0x5bfa86(0x201)];[_0x5bfa86(0x203)];[_0x5bfa86(0x1f7)]=new Map();constructor(_0x14c512,_0x452521){const _0x42d1ea=_0x5bfa86;this[_0x42d1ea(0x21a)]=_0x14c512,this[_0x42d1ea(0x201)]=_0x452521[_0x42d1ea(0x208)],this[_0x42d1ea(0x203)]=_0x452521[_0x42d1ea(0x210)];}[_0x5bfa86(0x204)](){const _0x13e6d5=_0x5bfa86;this[_0x13e6d5(0x1f7)][_0x13e6d5(0x1ef)]();}[_0x5bfa86(0x206)](_0x3f71e5){const _0x39863b=_0x5bfa86,_0x454654=new Set(),_0x187cb8=new Map();for(const _0x1b8383 of _0x3f71e5){if(_0x39863b(0x20f)===_0x1b8383[_0x39863b(0x1f9)]&&_0x39863b(0x1fe)!==_0x1b8383[_0x39863b(0x1fb)]&&_0x1b8383[_0x39863b(0x1f3)][_0x39863b(0x207)]){const _0x17380a=this[_0x39863b(0x21a)][_0x39863b(0x1ee)](_0x1b8383[_0x39863b(0x1f3)][_0x39863b(0x207)]);for(const _0xaf25cf of _0x17380a[_0x39863b(0x202)]()){if(!_0xaf25cf['is'](_0x39863b(0x200),this[_0x39863b(0x201)]))continue;const _0x1e9a4c=this[_0x39863b(0x203)](_0xaf25cf);_0x187cb8[_0x39863b(0x215)](_0x1e9a4c)||_0x187cb8[_0x39863b(0x1f4)](_0x1e9a4c,[]),_0x187cb8[_0x39863b(0x1fa)](_0x1e9a4c)[_0x39863b(0x1fc)](_0xaf25cf);}}if(_0x39863b(0x1fd)===_0x1b8383[_0x39863b(0x1f9)]&&_0x1b8383[_0x39863b(0x1fb)]===this[_0x39863b(0x201)]){const _0x2c9740=this[_0x39863b(0x203)]({'getAttribute':_0x35e3d0=>_0x1b8383[_0x39863b(0x213)][_0x39863b(0x1fa)](_0x35e3d0)});_0x454654[_0x39863b(0x211)](_0x2c9740);}}for(const [_0x5f7ba0,_0x5a9d0b]of this[_0x39863b(0x1f7)])_0x39863b(0x205)===_0x5a9d0b[_0x39863b(0x212)][_0x39863b(0x1f5)]&&_0x454654[_0x39863b(0x211)](_0x5f7ba0);for(const _0x16487c of _0x454654)this[_0x39863b(0x1f7)][_0x39863b(0x20d)](_0x16487c);for(const [_0x769a7e,_0x1e3903]of _0x187cb8)this[_0x39863b(0x1f7)][_0x39863b(0x1f4)](_0x769a7e,_0x1e3903[_0x1e3903[_0x39863b(0x20a)]-0x1]);const _0x1ab622=new Set();for(const [_0x3d6d38,_0x422603]of _0x187cb8)_0x454654[_0x39863b(0x215)](_0x3d6d38)&&(_0x1ab622[_0x39863b(0x211)](_0x422603[0x0]),_0x422603[_0x39863b(0x20a)]>0x1?_0x187cb8[_0x39863b(0x1f4)](_0x3d6d38,_0x422603[_0x39863b(0x219)](0x1)):_0x187cb8[_0x39863b(0x20d)](_0x3d6d38),_0x454654[_0x39863b(0x20d)](_0x3d6d38));return{'removed':Array[_0x39863b(0x20b)](_0x454654),'inserted':Array[_0x39863b(0x20b)](_0x187cb8[_0x39863b(0x1f8)]())[_0x39863b(0x1f0)](),'moved':Array[_0x39863b(0x20b)](_0x1ab622)};}}function _0x20cc(){const _0x4a60d3=['$text','892916WJVfoS','element','_elementName','getItems','_getElementKey','reset','$graveyard','getChanges','nodeAfter','elementName','51176xfymWp','length','from','36YaVvYa','delete','376280deKChI','insert','getElementKey','add','root','attributes','9079oUoTBa','has','858dgToUb','1LwPVVQ','338448hBGlji','slice','_model','472buCWOR','createRangeOn','clear','flat','3940227ddGqyO','1118910kuRwNe','position','set','rootName','39GMXkkx','_trackedElements','values','type','get','name','push','remove'];_0x20cc=function(){return _0x4a60d3;};return _0x20cc();}
|