@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251210.0 → 0.0.0-nightly-20251211.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 _0x3a093f}from'ckeditor5/src/core.js';import{isWidget as _0x108c67,toWidget as _0x17566d,toWidgetEditable as _0x1c1d91}from'ckeditor5/src/widget.js';import{uid as _0x5075a2}from'ckeditor5/src/utils.js';import{PointerObserver as _0x2cd589,ClickObserver as _0x6e58b}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3f88c7}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4c198d}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3a093f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3f88c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x162b44}=this;_0x162b44['config']['define']('footnotes.multiBlock',!0x0),_0x162b44['commands']['add']('insertFootnote',new _0x4c198d(_0x162b44)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x100446){const _0x34fa33=_0x3eee85([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]),_0x22eb1c=0x47a28506,_0x46ec3e=0x47a5fe86^_0x22eb1c,_0x3e196c=window[_0x3eee85([0x44,0x61,0x74,0x65])][_0x3eee85([0x6e,0x6f,0x77])](),_0x4d9313=_0x100446[_0x3eee85([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a8069=new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25cd2f=>{_0x4d9313[_0x3eee85([0x6f,0x6e,0x63,0x65])](_0x3eee85([0x72,0x65,0x61,0x64,0x79]),_0x25cd2f);}),_0x574327={[_0x3eee85([0x6b,0x74,0x79])]:_0x3eee85([0x45,0x43]),[_0x3eee85([0x75,0x73,0x65])]:_0x3eee85([0x73,0x69,0x67]),[_0x3eee85([0x63,0x72,0x76])]:_0x3eee85([0x50,0x2d,0x32,0x35,0x36]),[_0x3eee85([0x78])]:_0x3eee85([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]),[_0x3eee85([0x79])]:_0x3eee85([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]),[_0x3eee85([0x61,0x6c,0x67])]:_0x3eee85([0x45,0x53,0x32,0x35,0x36])},_0x4ecb0b=_0x4d9313[_0x3eee85([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3eee85([0x67,0x65,0x74])](_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34a7d7(){let _0x3f30f5,_0x47e603=null,_0x3a265e=null;try{if(_0x4ecb0b==_0x3eee85([0x47,0x50,0x4c]))return _0x3eee85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f30f5=_0x3df0f0(),!_0x3f30f5)return _0x3eee85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f30f5[_0x3eee85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a265e=_0x2bdd1c(_0x3f30f5[_0x3eee85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f30f5[_0x3eee85([0x6a,0x74,0x69])])),await _0x2214f0()?_0x4f8b16()?_0x22c392()?_0x3eee85([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x326313()?(_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3eee85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47e603=_0x31471e(_0x3eee85([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3eee85([0x74,0x72,0x69,0x61,0x6c])&&(_0x47e603=_0x31471e(_0x3eee85([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22db51()):_0x3eee85([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3eee85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3eee85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3eee85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22c392(){const _0x117d12=[_0x3eee85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3eee85([0x74,0x72,0x69,0x61,0x6c])][_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e196c/0x3e8:0xe10*_0x46ec3e;return _0x3f30f5[_0x3eee85([0x65,0x78,0x70])]<_0x117d12;}function _0x4f8b16(){const _0x2a1eab=_0x3f30f5[_0x3eee85([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a1eab&&(!!_0x2a1eab[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eee85([0x2a]))||!!_0x2a1eab[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eee85([0x46,0x4f,0x4f])));}function _0x326313(){const _0x4569fc=_0x3f30f5[_0x3eee85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4569fc||0x0==_0x4569fc[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x181cbb}=new URL(window[_0x3eee85([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4569fc[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x181cbb))return!0x0;const _0x1235b2=_0x181cbb[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e]));return _0x4569fc[_0x3eee85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f0b5f=>_0x1f0b5f[_0x3eee85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eee85([0x2a])))[_0x3eee85([0x6d,0x61,0x70])](_0x141e45=>_0x141e45[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e])))[_0x3eee85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x114384=>_0x114384[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1235b2[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3eee85([0x6d,0x61,0x70])](_0xf29bfe=>Array(_0x1235b2[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf29bfe[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3eee85([0x66,0x69,0x6c,0x6c])](_0xf29bfe[0x0]===_0x3eee85([0x2a])?_0x3eee85([0x2a]):'')[_0x3eee85([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf29bfe))[_0x3eee85([0x73,0x6f,0x6d,0x65])](_0x510ffb=>_0x1235b2[_0x3eee85([0x65,0x76,0x65,0x72,0x79])]((_0x5322b2,_0x13527d)=>_0x510ffb[_0x13527d]===_0x5322b2||_0x510ffb[_0x13527d]===_0x3eee85([0x2a])));}function _0x22db51(){return _0x47e603&&_0x3a265e?new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x460cef,_0x250975)=>{_0x47e603[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x460cef,_0x250975),_0x3a265e[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x378097=>{_0x378097!=_0x3eee85([0x56,0x61,0x6c,0x69,0x64])&&_0x460cef(_0x378097);},_0x250975);}):_0x47e603||_0x3a265e||_0x3eee85([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2bdd1c(_0x2bdd1a,_0x44cf41){return new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45d91a=>{if(_0x487ba9())return _0x45d91a(_0x3eee85([0x56,0x61,0x6c,0x69,0x64]));_0x414c83(),_0x4d9313[_0x3eee85([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3eee85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46e55c=!0x1;const _0x17ad70=_0x5075a2();function _0x5d06af(_0x35e7ae){return!!_0x35e7ae&&(typeof _0x35e7ae===_0x3eee85([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35e7ae===_0x3eee85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35e7ae[_0x3eee85([0x74,0x68,0x65,0x6e])]===_0x3eee85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35e7ae[_0x3eee85([0x63,0x61,0x74,0x63,0x68])]===_0x3eee85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50d720(_0x1fdb06){_0x3e38c5(_0x1fdb06)[_0x3eee85([0x74,0x68,0x65,0x6e])](_0xadc5cb=>{if(!_0xadc5cb||_0xadc5cb[_0x3eee85([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3eee85([0x6f,0x6b]))return _0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cbf66(_0x108b5c(_0x17ad70+_0x44cf41))!=_0xadc5cb[_0x3eee85([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3eee85([0x56,0x61,0x6c,0x69,0x64]);})[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x55ee94=>(_0x503d7f(),_0x55ee94),()=>{const _0x11ae88=_0x47225e();return null==_0x11ae88?(_0x503d7f(),_0x3eee85([0x56,0x61,0x6c,0x69,0x64])):_0x3eee85(_0x3e196c-_0x11ae88>(0x63ae0106^_0x22eb1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x45d91a)[_0x3eee85([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45d91a(_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54c344=0x47946b86^_0x22eb1c;function _0x503d7f(){const _0x156f57=_0x3eee85([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cbf66(_0x108b5c(_0x2bdd1a)),_0x3b84ac=_0x521309(_0x1cbf66(window[_0x3eee85([0x4d,0x61,0x74,0x68])][_0x3eee85([0x63,0x65,0x69,0x6c])](_0x3e196c/_0x54c344)));window[_0x3eee85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3eee85([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x156f57,_0x3b84ac);}function _0x47225e(){const _0x5c1f47=_0x3eee85([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cbf66(_0x108b5c(_0x2bdd1a)),_0x446e16=window[_0x3eee85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3eee85([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c1f47);return _0x446e16?window[_0x3eee85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521309(_0x446e16),0x10)*_0x54c344:null;}function _0x3e38c5(_0x5728ff){return new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28bdf6,_0x8baa87)=>{_0x5728ff[_0x3eee85([0x74,0x68,0x65,0x6e])](_0x28bdf6,_0x8baa87),window[_0x3eee85([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8baa87,0x47a351c6^_0x22eb1c);});}}_0x4d9313[_0x3eee85([0x6f,0x6e])](_0x3eee85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45c574,_0x459ae1)=>{if(_0x459ae1[0x0]!=_0x2bdd1a)return _0x45d91a(_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x459ae1[0x1]={..._0x459ae1[0x1],[_0x3eee85([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17ad70};},{[_0x3eee85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3eee85([0x68,0x69,0x67,0x68])}),_0x4d9313[_0x3eee85([0x6f,0x6e])](_0x3eee85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f8dd3=>{_0x5d06af(_0x4f8dd3[_0x3eee85([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46e55c=!0x0,_0x50d720(_0x4f8dd3[_0x3eee85([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3eee85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3eee85([0x6c,0x6f,0x77])}),_0x3a8069[_0x3eee85([0x74,0x68,0x65,0x6e])](()=>{_0x46e55c||_0x45d91a(_0x3eee85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x487ba9(){return _0x4d9313[_0x3eee85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3eee85([0x76,0x69,0x65,0x77])][_0x3eee85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3eee85([0x61,0x75,0x74,0x6f]);}function _0x414c83(){_0x4d9313[_0x3eee85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3eee85([0x76,0x69,0x65,0x77])][_0x3eee85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3eee85([0x61,0x75,0x74,0x6f]);}}function _0x31471e(_0x5005aa){const _0x401fd8=[new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e39e6=>setTimeout(_0x1e39e6,0x47abbbca^_0x22eb1c)),_0x3a8069[_0x3eee85([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d1be3=>{let _0x2f58a1=0x0;_0x4d9313[_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c])][_0x3eee85([0x6f,0x6e])](_0x3eee85([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c1fd8,_0x2faf5c)=>{_0x2faf5c[0x0][_0x3eee85([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f58a1++,_0x2f58a1==(0x47a284fe^_0x22eb1c)&&(_0x5d1be3(),_0x4c1fd8[_0x3eee85([0x6f,0x66,0x66])]());});}))];return window[_0x3eee85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3eee85([0x72,0x61,0x63,0x65])](_0x401fd8)[_0x3eee85([0x74,0x68,0x65,0x6e])](()=>_0x5005aa);}async function _0x30afff(){await _0x3a8069,_0x4d9313[_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c])][_0x3eee85([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e8e7e,_0x4d9313[_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c])][_0x3eee85([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e8e7e,_0x4d9313[_0x3eee85([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3eee85([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x306654(_0x2d2548){const _0x5a9382=_0x68c689();_0x4d9313[_0x5a9382]=_0x3eee85([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d2548,_0x2d2548!=_0x3eee85([0x56,0x61,0x6c,0x69,0x64])&&_0x30afff();}function _0x68c689(){const _0xb591d4=window[_0x3eee85([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3eee85([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3eee85([0x6e,0x6f,0x77])]())[_0x3eee85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3eee85([0x2e]),'');let _0x4e4fad=_0x3eee85([0x75]);for(let _0x2f2bf8=0x0;_0x2f2bf8<_0xb591d4[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f2bf8+=0x2){let _0x35cd52=window[_0x3eee85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb591d4[_0x3eee85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f2bf8,_0x2f2bf8+0x2));_0x35cd52>=_0x34fa33[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35cd52-=_0x34fa33[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e4fad+=_0x34fa33[_0x35cd52];}return _0x4e4fad;}function _0x3df0f0(){const _0x190936=_0x4ecb0b[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e]));if(0x3!=_0x190936[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6b029f(_0x190936[0x1]);function _0x6b029f(_0x5d6ebb){const _0x2f109c=_0x77fca2(_0x5d6ebb);return _0x2f109c&&_0x458366()?_0x2f109c:null;function _0x458366(){const _0x2d07a3=_0x2f109c[_0x3eee85([0x6a,0x74,0x69])],_0x5803e9=window[_0x3eee85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d07a3[_0x3eee85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d07a3[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45642a={..._0x2f109c,[_0x3eee85([0x6a,0x74,0x69])]:_0x2d07a3[_0x3eee85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d07a3[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45642a[_0x3eee85([0x76,0x63])],_0x108b5c(_0x45642a)==_0x5803e9;}}}async function _0x2214f0(){let _0x4f9231=!0x0;try{const _0x347249=_0x4ecb0b[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])](_0x3eee85([0x2e])),[_0x3fb3bf,_0x21e194,_0x35d45c]=_0x347249;return _0x18c667(_0x3fb3bf),await _0xf8612c(_0x3fb3bf,_0x21e194,_0x35d45c),_0x4f9231;}catch{return!0x1;}function _0x18c667(_0xbd583a){const _0x454dd6=_0x77fca2(_0xbd583a);_0x454dd6&&_0x454dd6[_0x3eee85([0x61,0x6c,0x67])]==_0x3eee85([0x45,0x53,0x32,0x35,0x36])||(_0x4f9231=!0x1);}async function _0xf8612c(_0xfd21a1,_0xa5f9ef,_0x14e39b){const _0x5d12d3=window[_0x3eee85([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3eee85([0x66,0x72,0x6f,0x6d])](_0x2abe22(_0x14e39b),_0x2e7e98=>_0x2e7e98[_0x3eee85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36d163=new window[(_0x3eee85([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3eee85([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfd21a1+_0x3eee85([0x2e])+_0xa5f9ef),_0x3ab2d6=window[_0x3eee85([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3eee85([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ab2d6)return;const _0x1409c5=await _0x3ab2d6[_0x3eee85([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3eee85([0x6a,0x77,0x6b]),_0x574327,{[_0x3eee85([0x6e,0x61,0x6d,0x65])]:_0x3eee85([0x45,0x43,0x44,0x53,0x41]),[_0x3eee85([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3eee85([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3eee85([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ab2d6[_0x3eee85([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3eee85([0x6e,0x61,0x6d,0x65])]:_0x3eee85([0x45,0x43,0x44,0x53,0x41]),[_0x3eee85([0x68,0x61,0x73,0x68])]:{[_0x3eee85([0x6e,0x61,0x6d,0x65])]:_0x3eee85([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1409c5,_0x5d12d3,_0x36d163)||(_0x4f9231=!0x1);}}function _0x77fca2(_0x241488){return _0x241488[_0x3eee85([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3eee85([0x65,0x79]))?JSON[_0x3eee85([0x70,0x61,0x72,0x73,0x65])](_0x2abe22(_0x241488)):null;}function _0x2abe22(_0x16252a){return window[_0x3eee85([0x61,0x74,0x6f,0x62])](_0x16252a[_0x3eee85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3eee85([0x2b]))[_0x3eee85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3eee85([0x2f])));}function _0x108b5c(_0xc8621f){let _0x12fe70=0x1505;function _0x3dd198(_0x330eff){for(let _0x46f067=0x0;_0x46f067<_0x330eff[_0x3eee85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46f067++){const _0x2492c1=_0x330eff[_0x3eee85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46f067);_0x12fe70=(_0x12fe70<<0x5)+_0x12fe70+_0x2492c1,_0x12fe70&=_0x12fe70;}}function _0x26b059(_0x388288){Array[_0x3eee85([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x388288)?_0x388288[_0x3eee85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26b059):_0x388288&&typeof _0x388288==_0x3eee85([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3eee85([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x388288)[_0x3eee85([0x73,0x6f,0x72,0x74])]()[_0x3eee85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x321715,_0x3198c9])=>{_0x3dd198(_0x321715),_0x26b059(_0x3198c9);}):_0x3dd198(window[_0x3eee85([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x388288));}return _0x26b059(_0xc8621f),_0x12fe70>>>0x0;}function _0x1cbf66(_0x2ff45d){return _0x2ff45d[_0x3eee85([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3eee85([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3eee85([0x30]));}function _0x521309(_0x513cc1){return _0x513cc1[_0x3eee85([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3eee85([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3eee85([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e8e7e(){}function _0x3eee85(_0x13f1ac){return _0x13f1ac['map'](_0x366593=>String['fromCharCode'](_0x366593))['join']('');}_0x306654(await _0x34a7d7());}(this);}['_moveSelectionToFootnoteDefinition'](_0xc08e3){const {plugins:_0x5404c0,editing:_0x1b59d3,model:_0x1f39d9}=this['editor'],_0x546dc4=_0x5404c0['get'](_0x3f88c7)['getFootnote'](_0xc08e3);return!!_0x546dc4&&(_0x1f39d9['change'](_0x480c21=>{_0x480c21['setSelection'](_0x480c21['createPositionAt'](_0x546dc4['definition'],'end'));}),_0x1b59d3['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x25bd42){const {plugins:_0x8a088a,editing:_0x5b86cd,model:_0x4978fb}=this['editor'],_0x17ab22=_0x8a088a['get'](_0x3f88c7)['getFootnote'](_0x25bd42);return!!_0x17ab22&&(_0x4978fb['change'](_0x34e829=>{_0x34e829['setSelection'](_0x17ab22['reference'],'on');}),_0x5b86cd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x443cbe}=this['editor']['model'],_0xc4dcc0=this['editor']['config']['get']('footnotes.multiBlock');_0x443cbe['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x443cbe['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x443cbe['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xc4dcc0?_0x443cbe['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x443cbe['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x443cbe['addChildCheck'](_0x3499dc=>{for(const _0x67e22c of _0x3499dc)if('footnoteDefinition'===_0x67e22c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5633ef}=this,{conversion:_0x1a8359,editing:_0x2464f6}=_0x5633ef,{t:t}=_0x5633ef['locale'];_0x1a8359['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x258a16,{writer:_0x22960d,consumable:_0x5ee4d3})=>{const _0x209031=_0x258a16['getChild'](0x0);if(!_0x209031||!_0x209031['is']('element','a'))return null;const _0x4a5a80=_0x209031['getAttribute']('href')||'';if(!_0x4a5a80['startsWith']('#'))return null;const _0x24c9c5=_0x4a5a80['replace'](/^#/,'');if(!_0x24c9c5)return null;_0x5ee4d3['consume'](_0x209031,{'name':!0x0,'attributes':['href']});for(const {item:_0x24f048}of _0x2464f6['view']['createRangeIn'](_0x209031))_0x24f048['is']('$textProxy')?_0x5ee4d3['consume'](_0x24f048['textNode'],{'name':!0x0}):_0x24f048['is']('element')&&_0x5ee4d3['consume'](_0x24f048,{'name':!0x0});return _0x22960d['createElement']('footnoteRef',{'footnoteId':_0x24c9c5});}}),_0x1a8359['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x18c2dc,{writer:_0x297e8d})=>D(_0x18c2dc,_0x297e8d)}),_0x1a8359['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xff88f5,{writer:_0x4118d8})=>{const _0x2be9ca=_0xff88f5['getAttribute']('footnoteCounter');return _0x17566d(D(_0xff88f5,_0x4118d8),_0x4118d8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2be9ca)});}});}['_defineDefinitionsConverters'](){const {editor:_0x32a7b8}=this,{t:t}=_0x32a7b8['locale'],{conversion:_0x5ded0e}=_0x32a7b8;_0x5ded0e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5ded0e['for']('upcast')['add'](_0x499c91=>{_0x499c91['on']('element:ol',(_0x5800a4,_0x411e86,_0x487dd0)=>{const _0x20124e=_0x411e86['viewItem'];if(!_0x20124e['hasClass']('footnotes-list')||!_0x411e86['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x487dd0['consumable']['consume'](_0x20124e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xca16ad,modelCursor:_0x4608cf}=_0x487dd0['convertChildren'](_0x411e86['viewItem'],_0x411e86['modelCursor']);_0x411e86['modelRange']=_0xca16ad,_0x411e86['modelCursor']=_0x4608cf;}),_0x499c91['on']('element:hr',(_0x4a49ca,_0x20f79d,_0x14875f)=>{const _0x2fd482=_0x20f79d['viewItem'];_0x2fd482['hasClass']('footnotes-divider')&&_0x20f79d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x14875f['consumable']['consume'](_0x2fd482,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5ded0e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x9da38b,{writer:_0x23fbf5})=>v(_0x23fbf5)}),_0x5ded0e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4f637b,{writer:_0x57ca55})=>{const _0xff8199=v(_0x57ca55,{'data-footnotes-list-label':t('Footnotes')}),_0x774f32=_0x17566d(_0xff8199,_0x57ca55,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x57ca55['setCustomProperty']('footnotesDefinitions',!0x0,_0x774f32),_0x774f32;}});}['_defineDefinitionConverters'](){const {editor:_0x3b3411}=this,{conversion:_0x1d34ad,locale:_0x5da54a}=_0x3b3411,_0x42f082=_0x3b3411['config']['get']('footnotes.multiBlock');_0x1d34ad['for']('upcast')['add'](_0x5d8745=>{_0x5d8745['on']('element:li',(_0x1c571e,_0x4feff3,_0x31baf4)=>{const _0x20765b=_0x4feff3['viewItem'];if(!_0x20765b['hasClass']('footnote-definition')||!_0x20765b['getAttribute']('id'))return;const _0x34de61=_0x20765b['parent'];if(!_0x34de61['is']('element','ol')||!_0x34de61['hasClass']('footnotes-list'))return;if(!_0x31baf4['consumable']['test'](_0x20765b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x12610f=_0x31baf4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x20765b['getAttribute']('id')});if(!_0x31baf4['safeInsert'](_0x12610f,_0x4feff3['modelCursor']))return;_0x31baf4['consumable']['consume'](_0x20765b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3955cd=Array['from'](_0x20765b['getChildren']())['find'](_0x3bd242=>_0x3bd242['is']('element')&&_0x3bd242['hasClass']('footnote-content'));for(const _0x4523e8 of _0x20765b['getChildren']())_0x4523e8['is']('element')&&(_0x31baf4['consumable']['consume'](_0x4523e8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x31baf4['consumable']['consume'](_0x4523e8,{'name':!0x0,'classes':'footnote-content'}));if(_0x3955cd){if(_0x42f082)_0x31baf4['convertChildren'](_0x3955cd,_0x12610f);else{const _0x345883=_0x31baf4['writer']['createElement']('footnoteInlineContent');_0x31baf4['writer']['insert'](_0x345883,_0x12610f),_0x31baf4['convertChildren'](_0x3955cd,_0x345883);}}_0x31baf4['updateConversionResult'](_0x12610f,_0x4feff3);});}),_0x1d34ad['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5a787d,{writer:_0x34e7dc})=>b(_0x5a787d,_0x34e7dc,_0x5da54a,{'dataPipeline':!0x0})}),_0x1d34ad['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x421455,{writer:_0x414700})=>b(_0x421455,_0x414700,_0x5da54a)});}['_defineBogusParagraphConverters'](){const {editor:_0xe839c9}=this,{conversion:_0x1225c1}=_0xe839c9;_0xe839c9['config']['get']('footnotes.multiBlock')?(_0x1225c1['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1225c1['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xe839c9['model']['document'],'change:data',()=>{!function(_0x5f2fa7,_0x301d30){const _0x9a0435=_0x5f2fa7['document']['differ'],_0x44b1c0=new Set();for(const _0xe6e8a of _0x9a0435['getChanges']()){const _0x21536a='attribute'==_0xe6e8a['type']?_0xe6e8a['range']['start']['parent']:_0xe6e8a['position']['parent'];_0x21536a['is']('element','footnoteDefinition')&&_0x44b1c0['add'](_0x21536a);}for(const _0xf6d412 of _0x44b1c0['values']()){const _0xc8d31d=Array['from'](_0xf6d412['getChildren']())['filter'](_0x21ef0e=>g(_0x21ef0e,_0x301d30['mapper']));for(const _0x6b1786 of _0xc8d31d)_0x301d30['reconvertItem'](_0x6b1786);}}(_0xe839c9['model'],_0xe839c9['editing']);})):(_0x1225c1['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1225c1['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2705fc,{writer:_0x434b7b})=>{const _0x5efce8=_0x434b7b['createContainerElement']('span');return _0x434b7b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5efce8),_0x5efce8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x416032}=this,{editing:_0x3b9888,t:t}=_0x416032,_0x5e5ef5=_0x416032['model']['document']['selection'];_0x416032['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x416032['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3b9888['view']['document'],'enter',(_0x47dea4,_0x41127a)=>{const _0x1f7f5e=function(_0x2a8e65){const _0x2c197a=_0x2a8e65['getSelectedElement']();if(_0x2c197a?.['is']('element','footnoteRef'))return _0x2c197a;return null;}(_0x5e5ef5);if(_0x1f7f5e){const _0x5099db=_0x1f7f5e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5099db),_0x41127a['preventDefault'](),_0x47dea4['stop']();}},{'context':_0x108c67});}['_defineClickHandlers'](){const {editor:_0x2e51f3}=this,{editing:_0x1a50ef}=_0x2e51f3;_0x2e51f3['editing']['view']['addObserver'](_0x2cd589),_0x2e51f3['editing']['view']['addObserver'](_0x6e58b);let _0x592dbf=!0x1;this['listenTo'](_0x1a50ef['view']['document'],'pointerdown',(_0x42713f,_0x3216d8)=>{const {target:_0x30630d}=_0x3216d8,_0x1bf42f=_0x1a50ef['view']['document']['selection'];_0x592dbf=!!(_0x30630d?.['is']('element','a')&&_0x30630d['parent']?.['is']('element','sup')&&_0x30630d['parent']['hasClass']('footnote'))&&_0x1bf42f['getSelectedElement']()===_0x30630d['parent'];},{'priority':'high'}),this['listenTo'](_0x1a50ef['view']['document'],'click',(_0x24229f,_0xfa8567)=>{const {target:_0x11d8b5}=_0xfa8567;if(!_0x11d8b5?.['is']('element','a'))return;if(_0x11d8b5['parent']?.['is']('element','sup')&&_0x11d8b5['parent']['hasClass']('footnote')&&!_0x592dbf)return void _0xfa8567['preventDefault']();let _0x548fac=_0x11d8b5['getAttribute']('href');if(!_0x548fac?.['startsWith']('#'))return;_0x548fac=_0x548fac['slice'](0x1);let _0x4135c7=!0x1;(_0x548fac['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x548fac['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x548fac))&&(_0x4135c7=!0x0),_0x4135c7&&(_0xfa8567['preventDefault'](),_0x24229f['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5979f7}={}){return(_0x100733,{writer:_0x1d234a})=>{if(!p(_0x100733))return null;if(!_0x5979f7)return _0x1d234a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2fa433=_0x1d234a['createContainerElement']('p');return _0x1d234a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2fa433),_0x2fa433;};}function p(_0x20d6eb){const {parent:_0x7422a1}=_0x20d6eb;if(!_0x7422a1?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x7422a1['childCount'])return!0x1;for(const _0x313b57 of _0x20d6eb['getAttributeKeys']())if(!_0x313b57['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x313b57)return!0x1;return!0x0;}function g(_0x1cdcb2,_0x401f07){if(!_0x1cdcb2['is']('element','paragraph'))return!0x1;const _0x1d1a6c=_0x401f07['toViewElement'](_0x1cdcb2);return!!_0x1d1a6c&&p(_0x1cdcb2)!==_0x1d1a6c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x245166){return _0x108c67(_0x245166)&&_0x245166['is']('containerElement')&&!!_0x245166['getCustomProperty']('footnotesDefinitions');}function v(_0x1c0903,_0xa60260={}){const _0x1ded1e=_0x1c0903['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x56ed87=_0x1c0903['createContainerElement']('ol',{'class':'footnotes-list'},_0x1c0903['createSlot']());return _0x1c0903['createContainerElement']('div',{'class':'footnotes',..._0xa60260},[_0x1ded1e,_0x56ed87]);}function D(_0x599c99,_0x5813af){const _0x3e8f2d=_0x599c99['getAttribute']('footnoteId'),_0x5e7a47=_0x599c99['getAttribute']('footnoteCounter'),_0x3b9687=_0x5813af['createUIElement']('a',{'href':'#'+_0x3e8f2d},function(_0x32bc17){const _0x5c6882=this['toDomElement'](_0x32bc17);return _0x5c6882['textContent']=_0x5e7a47,_0x5c6882;}),_0x4c1f34=_0x5813af['createContainerElement']('sup',{'id':'ref-'+_0x3e8f2d,'class':'footnote'},[_0x3b9687]);return _0x4c1f34['getFillerOffset']=()=>null,_0x4c1f34;}function b(_0x1b46a7,_0x3fdd23,_0x5c3b1b,{dataPipeline:_0x13884c}={}){const {t:t}=_0x5c3b1b,_0x8a86e5=_0x1b46a7['getAttribute']('footnoteId'),_0x96b6f0=_0x3fdd23['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x8a86e5},function(_0xdb95da){const _0x59bbb5=this['toDomElement'](_0xdb95da);return _0x59bbb5['innerText']='^',_0x59bbb5;}),_0x343a9a=_0x13884c?_0x3fdd23['createContainerElement']('div',{'class':'footnote-content'}):_0x1c1d91(_0x3fdd23['createEditableElement']('div',{'class':'footnote-content'}),_0x3fdd23,{'label':t('Footnote\x20content.')});return _0x3fdd23['insert'](_0x3fdd23['createPositionAt'](_0x343a9a,0x0),_0x3fdd23['createSlot']()),_0x3fdd23['createContainerElement']('li',{'class':'footnote-definition','id':_0x8a86e5},[_0x96b6f0,_0x343a9a]);}
|
|
23
|
+
import{Plugin as _0x3769ce}from'ckeditor5/src/core.js';import{isWidget as _0x2e8db5,toWidget as _0x498bc5,toWidgetEditable as _0x13d068}from'ckeditor5/src/widget.js';import{uid as _0x2a934d}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3b422a,ClickObserver as _0xada51f}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1f2326}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x41ee35}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3769ce{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1f2326];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x287680}=this;_0x287680['config']['define']('footnotes.multiBlock',!0x0),_0x287680['commands']['add']('insertFootnote',new _0x41ee35(_0x287680)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x519475){const _0xbbc1c5=_0xe6b333([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]),_0x1aed7b=0x47a28506,_0x5de74a=0x47a5fe9e^_0x1aed7b,_0x39b5ea=window[_0xe6b333([0x44,0x61,0x74,0x65])][_0xe6b333([0x6e,0x6f,0x77])](),_0x1d8664=_0x519475[_0xe6b333([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fe628=new window[(_0xe6b333([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267f44=>{_0x1d8664[_0xe6b333([0x6f,0x6e,0x63,0x65])](_0xe6b333([0x72,0x65,0x61,0x64,0x79]),_0x267f44);}),_0x138608={[_0xe6b333([0x6b,0x74,0x79])]:_0xe6b333([0x45,0x43]),[_0xe6b333([0x75,0x73,0x65])]:_0xe6b333([0x73,0x69,0x67]),[_0xe6b333([0x63,0x72,0x76])]:_0xe6b333([0x50,0x2d,0x32,0x35,0x36]),[_0xe6b333([0x78])]:_0xe6b333([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]),[_0xe6b333([0x79])]:_0xe6b333([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]),[_0xe6b333([0x61,0x6c,0x67])]:_0xe6b333([0x45,0x53,0x32,0x35,0x36])},_0x3e415a=_0x1d8664[_0xe6b333([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe6b333([0x67,0x65,0x74])](_0xe6b333([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f4275(){let _0x576392,_0x2e19bc=null,_0x4997b4=null;try{if(_0x3e415a==_0xe6b333([0x47,0x50,0x4c]))return _0xe6b333([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x576392=_0x3c5a02(),!_0x576392)return _0xe6b333([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x576392[_0xe6b333([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4997b4=_0x22acda(_0x576392[_0xe6b333([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x576392[_0xe6b333([0x6a,0x74,0x69])])),await _0x11391f()?_0x4d9cdc()?_0x37b5cd()?_0xe6b333([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3be29d()?(_0x576392[_0xe6b333([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe6b333([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e19bc=_0x491874(_0xe6b333([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x576392[_0xe6b333([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe6b333([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e19bc=_0x491874(_0xe6b333([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xca50db()):_0xe6b333([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe6b333([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe6b333([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe6b333([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37b5cd(){const _0x55b568=[_0xe6b333([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe6b333([0x74,0x72,0x69,0x61,0x6c])][_0xe6b333([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x576392[_0xe6b333([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39b5ea/0x3e8:0xe10*_0x5de74a;return _0x576392[_0xe6b333([0x65,0x78,0x70])]<_0x55b568;}function _0x4d9cdc(){const _0x50b204=_0x576392[_0xe6b333([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x50b204&&(!!_0x50b204[_0xe6b333([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe6b333([0x2a]))||!!_0x50b204[_0xe6b333([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe6b333([0x46,0x4f,0x4f])));}function _0x3be29d(){const _0x58d3ce=_0x576392[_0xe6b333([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58d3ce||0x0==_0x58d3ce[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x155865}=new URL(window[_0xe6b333([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58d3ce[_0xe6b333([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x155865))return!0x0;const _0x2d68f8=_0x155865[_0xe6b333([0x73,0x70,0x6c,0x69,0x74])](_0xe6b333([0x2e]));return _0x58d3ce[_0xe6b333([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bd722=>_0x3bd722[_0xe6b333([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe6b333([0x2a])))[_0xe6b333([0x6d,0x61,0x70])](_0x1686e7=>_0x1686e7[_0xe6b333([0x73,0x70,0x6c,0x69,0x74])](_0xe6b333([0x2e])))[_0xe6b333([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x275732=>_0x275732[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d68f8[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe6b333([0x6d,0x61,0x70])](_0x3436c7=>Array(_0x2d68f8[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3436c7[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe6b333([0x66,0x69,0x6c,0x6c])](_0x3436c7[0x0]===_0xe6b333([0x2a])?_0xe6b333([0x2a]):'')[_0xe6b333([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3436c7))[_0xe6b333([0x73,0x6f,0x6d,0x65])](_0x4ea779=>_0x2d68f8[_0xe6b333([0x65,0x76,0x65,0x72,0x79])]((_0x144a2b,_0x131de7)=>_0x4ea779[_0x131de7]===_0x144a2b||_0x4ea779[_0x131de7]===_0xe6b333([0x2a])));}function _0xca50db(){return _0x2e19bc&&_0x4997b4?new window[(_0xe6b333([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25613c,_0x9a0a16)=>{_0x2e19bc[_0xe6b333([0x74,0x68,0x65,0x6e])](_0x25613c,_0x9a0a16),_0x4997b4[_0xe6b333([0x74,0x68,0x65,0x6e])](_0xa63792=>{_0xa63792!=_0xe6b333([0x56,0x61,0x6c,0x69,0x64])&&_0x25613c(_0xa63792);},_0x9a0a16);}):_0x2e19bc||_0x4997b4||_0xe6b333([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22acda(_0x46c131,_0x14c4a1){return new window[(_0xe6b333([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d1ab8=>{if(_0xaec98())return _0x4d1ab8(_0xe6b333([0x56,0x61,0x6c,0x69,0x64]));_0x2d072c(),_0x1d8664[_0xe6b333([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe6b333([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x241ef3=!0x1;const _0x47a77d=_0x2a934d();function _0x3edd7a(_0x1937b0){return!!_0x1937b0&&(typeof _0x1937b0===_0xe6b333([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1937b0===_0xe6b333([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1937b0[_0xe6b333([0x74,0x68,0x65,0x6e])]===_0xe6b333([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1937b0[_0xe6b333([0x63,0x61,0x74,0x63,0x68])]===_0xe6b333([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50af0a(_0x577471){_0x566c3a(_0x577471)[_0xe6b333([0x74,0x68,0x65,0x6e])](_0x1901cc=>{if(!_0x1901cc||_0x1901cc[_0xe6b333([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe6b333([0x6f,0x6b]))return _0xe6b333([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x388e61(_0x246371(_0x47a77d+_0x14c4a1))!=_0x1901cc[_0xe6b333([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe6b333([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe6b333([0x56,0x61,0x6c,0x69,0x64]);})[_0xe6b333([0x74,0x68,0x65,0x6e])](_0x25bf30=>(_0x28b78c(),_0x25bf30),()=>{const _0x339757=_0x1a81e5();return null==_0x339757?(_0x28b78c(),_0xe6b333([0x56,0x61,0x6c,0x69,0x64])):_0xe6b333(_0x39b5ea-_0x339757>(0x63ae0106^_0x1aed7b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe6b333([0x74,0x68,0x65,0x6e])](_0x4d1ab8)[_0xe6b333([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d1ab8(_0xe6b333([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc4b1f=0x47946b86^_0x1aed7b;function _0x28b78c(){const _0x3263be=_0xe6b333([0x6c,0x6c,0x63,0x74,0x2d])+_0x388e61(_0x246371(_0x46c131)),_0xad4a0a=_0x1b0c47(_0x388e61(window[_0xe6b333([0x4d,0x61,0x74,0x68])][_0xe6b333([0x63,0x65,0x69,0x6c])](_0x39b5ea/_0xc4b1f)));window[_0xe6b333([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe6b333([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3263be,_0xad4a0a);}function _0x1a81e5(){const _0x2823c5=_0xe6b333([0x6c,0x6c,0x63,0x74,0x2d])+_0x388e61(_0x246371(_0x46c131)),_0x1abbbf=window[_0xe6b333([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe6b333([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2823c5);return _0x1abbbf?window[_0xe6b333([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b0c47(_0x1abbbf),0x10)*_0xc4b1f:null;}function _0x566c3a(_0x27ccff){return new window[(_0xe6b333([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b28ea,_0x131abc)=>{_0x27ccff[_0xe6b333([0x74,0x68,0x65,0x6e])](_0x3b28ea,_0x131abc),window[_0xe6b333([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x131abc,0x47a351c6^_0x1aed7b);});}}_0x1d8664[_0xe6b333([0x6f,0x6e])](_0xe6b333([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd42dd9,_0x10bc1b)=>{if(_0x10bc1b[0x0]!=_0x46c131)return _0x4d1ab8(_0xe6b333([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10bc1b[0x1]={..._0x10bc1b[0x1],[_0xe6b333([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47a77d};},{[_0xe6b333([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe6b333([0x68,0x69,0x67,0x68])}),_0x1d8664[_0xe6b333([0x6f,0x6e])](_0xe6b333([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f533e=>{_0x3edd7a(_0x2f533e[_0xe6b333([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x241ef3=!0x0,_0x50af0a(_0x2f533e[_0xe6b333([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe6b333([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe6b333([0x6c,0x6f,0x77])}),_0x3fe628[_0xe6b333([0x74,0x68,0x65,0x6e])](()=>{_0x241ef3||_0x4d1ab8(_0xe6b333([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xaec98(){return _0x1d8664[_0xe6b333([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe6b333([0x76,0x69,0x65,0x77])][_0xe6b333([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe6b333([0x61,0x75,0x74,0x6f]);}function _0x2d072c(){_0x1d8664[_0xe6b333([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe6b333([0x76,0x69,0x65,0x77])][_0xe6b333([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe6b333([0x61,0x75,0x74,0x6f]);}}function _0x491874(_0xd88e46){const _0x3dc89d=[new window[(_0xe6b333([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x87d259=>setTimeout(_0x87d259,0x47abbbca^_0x1aed7b)),_0x3fe628[_0xe6b333([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe6b333([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42829a=>{let _0x4f32fb=0x0;_0x1d8664[_0xe6b333([0x6d,0x6f,0x64,0x65,0x6c])][_0xe6b333([0x6f,0x6e])](_0xe6b333([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5be2e7,_0x5774da)=>{_0x5774da[0x0][_0xe6b333([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f32fb++,_0x4f32fb==(0x47a284fe^_0x1aed7b)&&(_0x42829a(),_0x5be2e7[_0xe6b333([0x6f,0x66,0x66])]());});}))];return window[_0xe6b333([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe6b333([0x72,0x61,0x63,0x65])](_0x3dc89d)[_0xe6b333([0x74,0x68,0x65,0x6e])](()=>_0xd88e46);}async function _0x125907(){await _0x3fe628,_0x1d8664[_0xe6b333([0x6d,0x6f,0x64,0x65,0x6c])][_0xe6b333([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b3a4b,_0x1d8664[_0xe6b333([0x6d,0x6f,0x64,0x65,0x6c])][_0xe6b333([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b3a4b,_0x1d8664[_0xe6b333([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe6b333([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52ae0e(_0x45c86e){const _0xb49349=_0x5c553b();_0x1d8664[_0xb49349]=_0xe6b333([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45c86e,_0x45c86e!=_0xe6b333([0x56,0x61,0x6c,0x69,0x64])&&_0x125907();}function _0x5c553b(){const _0x450900=window[_0xe6b333([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe6b333([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe6b333([0x6e,0x6f,0x77])]())[_0xe6b333([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe6b333([0x2e]),'');let _0xc230b2=_0xe6b333([0x75]);for(let _0x10d707=0x0;_0x10d707<_0x450900[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10d707+=0x2){let _0x49a271=window[_0xe6b333([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x450900[_0xe6b333([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10d707,_0x10d707+0x2));_0x49a271>=_0xbbc1c5[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49a271-=_0xbbc1c5[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc230b2+=_0xbbc1c5[_0x49a271];}return _0xc230b2;}function _0x3c5a02(){const _0x297864=_0x3e415a[_0xe6b333([0x73,0x70,0x6c,0x69,0x74])](_0xe6b333([0x2e]));if(0x3!=_0x297864[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47fd9d(_0x297864[0x1]);function _0x47fd9d(_0x71a2fa){const _0x417b5f=_0x583ecd(_0x71a2fa);return _0x417b5f&&_0x1d0ca2()?_0x417b5f:null;function _0x1d0ca2(){const _0x43cefe=_0x417b5f[_0xe6b333([0x6a,0x74,0x69])],_0x4f4391=window[_0xe6b333([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43cefe[_0xe6b333([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43cefe[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33a063={..._0x417b5f,[_0xe6b333([0x6a,0x74,0x69])]:_0x43cefe[_0xe6b333([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43cefe[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33a063[_0xe6b333([0x76,0x63])],_0x246371(_0x33a063)==_0x4f4391;}}}async function _0x11391f(){let _0x89392=!0x0;try{const _0x4ca8dd=_0x3e415a[_0xe6b333([0x73,0x70,0x6c,0x69,0x74])](_0xe6b333([0x2e])),[_0x3448d4,_0x20cb39,_0xd88150]=_0x4ca8dd;return _0x57a5a7(_0x3448d4),await _0x1b2529(_0x3448d4,_0x20cb39,_0xd88150),_0x89392;}catch{return!0x1;}function _0x57a5a7(_0x56e9c4){const _0xa6838e=_0x583ecd(_0x56e9c4);_0xa6838e&&_0xa6838e[_0xe6b333([0x61,0x6c,0x67])]==_0xe6b333([0x45,0x53,0x32,0x35,0x36])||(_0x89392=!0x1);}async function _0x1b2529(_0x2610c2,_0x3a254e,_0x2acbf4){const _0x4490b4=window[_0xe6b333([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe6b333([0x66,0x72,0x6f,0x6d])](_0x11023b(_0x2acbf4),_0x2428fc=>_0x2428fc[_0xe6b333([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13e1fa=new window[(_0xe6b333([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe6b333([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2610c2+_0xe6b333([0x2e])+_0x3a254e),_0x57f4eb=window[_0xe6b333([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe6b333([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57f4eb)return;const _0x362389=await _0x57f4eb[_0xe6b333([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe6b333([0x6a,0x77,0x6b]),_0x138608,{[_0xe6b333([0x6e,0x61,0x6d,0x65])]:_0xe6b333([0x45,0x43,0x44,0x53,0x41]),[_0xe6b333([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe6b333([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe6b333([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57f4eb[_0xe6b333([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe6b333([0x6e,0x61,0x6d,0x65])]:_0xe6b333([0x45,0x43,0x44,0x53,0x41]),[_0xe6b333([0x68,0x61,0x73,0x68])]:{[_0xe6b333([0x6e,0x61,0x6d,0x65])]:_0xe6b333([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x362389,_0x4490b4,_0x13e1fa)||(_0x89392=!0x1);}}function _0x583ecd(_0x45b312){return _0x45b312[_0xe6b333([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe6b333([0x65,0x79]))?JSON[_0xe6b333([0x70,0x61,0x72,0x73,0x65])](_0x11023b(_0x45b312)):null;}function _0x11023b(_0x5c72ed){return window[_0xe6b333([0x61,0x74,0x6f,0x62])](_0x5c72ed[_0xe6b333([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe6b333([0x2b]))[_0xe6b333([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe6b333([0x2f])));}function _0x246371(_0x230919){let _0x2d2ff8=0x1505;function _0x14a2fd(_0x3689e7){for(let _0x1bfb59=0x0;_0x1bfb59<_0x3689e7[_0xe6b333([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bfb59++){const _0x22c4f8=_0x3689e7[_0xe6b333([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bfb59);_0x2d2ff8=(_0x2d2ff8<<0x5)+_0x2d2ff8+_0x22c4f8,_0x2d2ff8&=_0x2d2ff8;}}function _0x9bd968(_0x1c3a98){Array[_0xe6b333([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c3a98)?_0x1c3a98[_0xe6b333([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9bd968):_0x1c3a98&&typeof _0x1c3a98==_0xe6b333([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe6b333([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c3a98)[_0xe6b333([0x73,0x6f,0x72,0x74])]()[_0xe6b333([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4cf37c,_0x1e2895])=>{_0x14a2fd(_0x4cf37c),_0x9bd968(_0x1e2895);}):_0x14a2fd(window[_0xe6b333([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c3a98));}return _0x9bd968(_0x230919),_0x2d2ff8>>>0x0;}function _0x388e61(_0x4d0ec2){return _0x4d0ec2[_0xe6b333([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe6b333([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe6b333([0x30]));}function _0x1b0c47(_0x5eb40c){return _0x5eb40c[_0xe6b333([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe6b333([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe6b333([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b3a4b(){}function _0xe6b333(_0x2a3211){return _0x2a3211['map'](_0xbaba6d=>String['fromCharCode'](_0xbaba6d))['join']('');}_0x52ae0e(await _0x4f4275());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5357f5){const {plugins:_0x3c67e0,editing:_0x43ec10,model:_0x3ffb0b}=this['editor'],_0x51fc16=_0x3c67e0['get'](_0x1f2326)['getFootnote'](_0x5357f5);return!!_0x51fc16&&(_0x3ffb0b['change'](_0x31511c=>{_0x31511c['setSelection'](_0x31511c['createPositionAt'](_0x51fc16['definition'],'end'));}),_0x43ec10['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3c9699){const {plugins:_0x3e6184,editing:_0x264193,model:_0x1b3084}=this['editor'],_0x13593c=_0x3e6184['get'](_0x1f2326)['getFootnote'](_0x3c9699);return!!_0x13593c&&(_0x1b3084['change'](_0x79d30d=>{_0x79d30d['setSelection'](_0x13593c['reference'],'on');}),_0x264193['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x326550}=this['editor']['model'],_0x41b4ad=this['editor']['config']['get']('footnotes.multiBlock');_0x326550['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x326550['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x326550['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x41b4ad?_0x326550['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x326550['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x326550['addChildCheck'](_0x5ae136=>{for(const _0x241177 of _0x5ae136)if('footnoteDefinition'===_0x241177['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3b24e0}=this,{conversion:_0x19012c,editing:_0x2a2156}=_0x3b24e0,{t:t}=_0x3b24e0['locale'];_0x19012c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xf92e82,{writer:_0x226c6c,consumable:_0xf7d742})=>{const _0x213fa3=_0xf92e82['getChild'](0x0);if(!_0x213fa3||!_0x213fa3['is']('element','a'))return null;const _0x1bf46c=_0x213fa3['getAttribute']('href')||'';if(!_0x1bf46c['startsWith']('#'))return null;const _0x2be51b=_0x1bf46c['replace'](/^#/,'');if(!_0x2be51b)return null;_0xf7d742['consume'](_0x213fa3,{'name':!0x0,'attributes':['href']});for(const {item:_0x33af95}of _0x2a2156['view']['createRangeIn'](_0x213fa3))_0x33af95['is']('$textProxy')?_0xf7d742['consume'](_0x33af95['textNode'],{'name':!0x0}):_0x33af95['is']('element')&&_0xf7d742['consume'](_0x33af95,{'name':!0x0});return _0x226c6c['createElement']('footnoteRef',{'footnoteId':_0x2be51b});}}),_0x19012c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x416a1d,{writer:_0xd9e747})=>D(_0x416a1d,_0xd9e747)}),_0x19012c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3a07b6,{writer:_0x7e454e})=>{const _0x1c52e7=_0x3a07b6['getAttribute']('footnoteCounter');return _0x498bc5(D(_0x3a07b6,_0x7e454e),_0x7e454e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1c52e7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2351ff}=this,{t:t}=_0x2351ff['locale'],{conversion:_0x542e6f}=_0x2351ff;_0x542e6f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x542e6f['for']('upcast')['add'](_0x4ee348=>{_0x4ee348['on']('element:ol',(_0x2bc372,_0xb9585e,_0x3517e7)=>{const _0x164bef=_0xb9585e['viewItem'];if(!_0x164bef['hasClass']('footnotes-list')||!_0xb9585e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3517e7['consumable']['consume'](_0x164bef,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x507715,modelCursor:_0x34a439}=_0x3517e7['convertChildren'](_0xb9585e['viewItem'],_0xb9585e['modelCursor']);_0xb9585e['modelRange']=_0x507715,_0xb9585e['modelCursor']=_0x34a439;}),_0x4ee348['on']('element:hr',(_0x1c693d,_0x156182,_0x3792d9)=>{const _0x944f25=_0x156182['viewItem'];_0x944f25['hasClass']('footnotes-divider')&&_0x156182['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3792d9['consumable']['consume'](_0x944f25,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x542e6f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5ba40f,{writer:_0x4f4784})=>v(_0x4f4784)}),_0x542e6f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3a0639,{writer:_0x5b723b})=>{const _0x2c0727=v(_0x5b723b,{'data-footnotes-list-label':t('Footnotes')}),_0x44fc59=_0x498bc5(_0x2c0727,_0x5b723b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5b723b['setCustomProperty']('footnotesDefinitions',!0x0,_0x44fc59),_0x44fc59;}});}['_defineDefinitionConverters'](){const {editor:_0x29ad8d}=this,{conversion:_0x30840c,locale:_0x5236c7}=_0x29ad8d,_0x399f67=_0x29ad8d['config']['get']('footnotes.multiBlock');_0x30840c['for']('upcast')['add'](_0x56aa12=>{_0x56aa12['on']('element:li',(_0x4bb19b,_0x16448a,_0x10a371)=>{const _0x3bb83b=_0x16448a['viewItem'];if(!_0x3bb83b['hasClass']('footnote-definition')||!_0x3bb83b['getAttribute']('id'))return;const _0x3a9fea=_0x3bb83b['parent'];if(!_0x3a9fea['is']('element','ol')||!_0x3a9fea['hasClass']('footnotes-list'))return;if(!_0x10a371['consumable']['test'](_0x3bb83b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x51f875=_0x10a371['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3bb83b['getAttribute']('id')});if(!_0x10a371['safeInsert'](_0x51f875,_0x16448a['modelCursor']))return;_0x10a371['consumable']['consume'](_0x3bb83b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xbd03a1=Array['from'](_0x3bb83b['getChildren']())['find'](_0x583a5e=>_0x583a5e['is']('element')&&_0x583a5e['hasClass']('footnote-content'));for(const _0x48692a of _0x3bb83b['getChildren']())_0x48692a['is']('element')&&(_0x10a371['consumable']['consume'](_0x48692a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x10a371['consumable']['consume'](_0x48692a,{'name':!0x0,'classes':'footnote-content'}));if(_0xbd03a1){if(_0x399f67)_0x10a371['convertChildren'](_0xbd03a1,_0x51f875);else{const _0x25b349=_0x10a371['writer']['createElement']('footnoteInlineContent');_0x10a371['writer']['insert'](_0x25b349,_0x51f875),_0x10a371['convertChildren'](_0xbd03a1,_0x25b349);}}_0x10a371['updateConversionResult'](_0x51f875,_0x16448a);});}),_0x30840c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5ada02,{writer:_0x19ca07})=>b(_0x5ada02,_0x19ca07,_0x5236c7,{'dataPipeline':!0x0})}),_0x30840c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2ffb49,{writer:_0x311545})=>b(_0x2ffb49,_0x311545,_0x5236c7)});}['_defineBogusParagraphConverters'](){const {editor:_0x5c9292}=this,{conversion:_0x1ba16e}=_0x5c9292;_0x5c9292['config']['get']('footnotes.multiBlock')?(_0x1ba16e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1ba16e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5c9292['model']['document'],'change:data',()=>{!function(_0x586bc8,_0x4c0bfa){const _0x8fc6e5=_0x586bc8['document']['differ'],_0x256fe5=new Set();for(const _0x5a94c2 of _0x8fc6e5['getChanges']()){const _0x5b7262='attribute'==_0x5a94c2['type']?_0x5a94c2['range']['start']['parent']:_0x5a94c2['position']['parent'];_0x5b7262['is']('element','footnoteDefinition')&&_0x256fe5['add'](_0x5b7262);}for(const _0x167edf of _0x256fe5['values']()){const _0x475c84=Array['from'](_0x167edf['getChildren']())['filter'](_0x3daee1=>g(_0x3daee1,_0x4c0bfa['mapper']));for(const _0x46249f of _0x475c84)_0x4c0bfa['reconvertItem'](_0x46249f);}}(_0x5c9292['model'],_0x5c9292['editing']);})):(_0x1ba16e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1ba16e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4e0621,{writer:_0x5962e7})=>{const _0x5111dc=_0x5962e7['createContainerElement']('span');return _0x5962e7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5111dc),_0x5111dc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x312c6b}=this,{editing:_0x15d5a0,t:t}=_0x312c6b,_0x3cbbda=_0x312c6b['model']['document']['selection'];_0x312c6b['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x312c6b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x15d5a0['view']['document'],'enter',(_0x364b82,_0x55eaea)=>{const _0x5af72e=function(_0x488e1b){const _0x5703fa=_0x488e1b['getSelectedElement']();if(_0x5703fa?.['is']('element','footnoteRef'))return _0x5703fa;return null;}(_0x3cbbda);if(_0x5af72e){const _0x4e7e38=_0x5af72e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4e7e38),_0x55eaea['preventDefault'](),_0x364b82['stop']();}},{'context':_0x2e8db5});}['_defineClickHandlers'](){const {editor:_0x4180d0}=this,{editing:_0xc446a3}=_0x4180d0;_0x4180d0['editing']['view']['addObserver'](_0x3b422a),_0x4180d0['editing']['view']['addObserver'](_0xada51f);let _0x339d5f=!0x1;this['listenTo'](_0xc446a3['view']['document'],'pointerdown',(_0x463e13,_0x586246)=>{const {target:_0x5048a0}=_0x586246,_0x16f90e=_0xc446a3['view']['document']['selection'];_0x339d5f=!!(_0x5048a0?.['is']('element','a')&&_0x5048a0['parent']?.['is']('element','sup')&&_0x5048a0['parent']['hasClass']('footnote'))&&_0x16f90e['getSelectedElement']()===_0x5048a0['parent'];},{'priority':'high'}),this['listenTo'](_0xc446a3['view']['document'],'click',(_0x11b04d,_0xd97b54)=>{const {target:_0x1d31d5}=_0xd97b54;if(!_0x1d31d5?.['is']('element','a'))return;if(_0x1d31d5['parent']?.['is']('element','sup')&&_0x1d31d5['parent']['hasClass']('footnote')&&!_0x339d5f)return void _0xd97b54['preventDefault']();let _0x3f334e=_0x1d31d5['getAttribute']('href');if(!_0x3f334e?.['startsWith']('#'))return;_0x3f334e=_0x3f334e['slice'](0x1);let _0x112c7b=!0x1;(_0x3f334e['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3f334e['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3f334e))&&(_0x112c7b=!0x0),_0x112c7b&&(_0xd97b54['preventDefault'](),_0x11b04d['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1ae4cc}={}){return(_0x172f65,{writer:_0x6cc38e})=>{if(!p(_0x172f65))return null;if(!_0x1ae4cc)return _0x6cc38e['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5b8fb2=_0x6cc38e['createContainerElement']('p');return _0x6cc38e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5b8fb2),_0x5b8fb2;};}function p(_0x44aff8){const {parent:_0x211579}=_0x44aff8;if(!_0x211579?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x211579['childCount'])return!0x1;for(const _0x4c692a of _0x44aff8['getAttributeKeys']())if(!_0x4c692a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4c692a)return!0x1;return!0x0;}function g(_0x32872c,_0x39278b){if(!_0x32872c['is']('element','paragraph'))return!0x1;const _0x194e0e=_0x39278b['toViewElement'](_0x32872c);return!!_0x194e0e&&p(_0x32872c)!==_0x194e0e['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x355579){return _0x2e8db5(_0x355579)&&_0x355579['is']('containerElement')&&!!_0x355579['getCustomProperty']('footnotesDefinitions');}function v(_0x5610f4,_0x133b06={}){const _0x293978=_0x5610f4['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4e2cc5=_0x5610f4['createContainerElement']('ol',{'class':'footnotes-list'},_0x5610f4['createSlot']());return _0x5610f4['createContainerElement']('div',{'class':'footnotes',..._0x133b06},[_0x293978,_0x4e2cc5]);}function D(_0x36e808,_0x89ccdd){const _0x51e813=_0x36e808['getAttribute']('footnoteId'),_0x4e3209=_0x36e808['getAttribute']('footnoteCounter'),_0x18a1ed=_0x89ccdd['createUIElement']('a',{'href':'#'+_0x51e813},function(_0x30578a){const _0x1e0aae=this['toDomElement'](_0x30578a);return _0x1e0aae['textContent']=_0x4e3209,_0x1e0aae;}),_0x295e13=_0x89ccdd['createContainerElement']('sup',{'id':'ref-'+_0x51e813,'class':'footnote'},[_0x18a1ed]);return _0x295e13['getFillerOffset']=()=>null,_0x295e13;}function b(_0x58eee,_0x4c614b,_0x3c6fe6,{dataPipeline:_0x166257}={}){const {t:t}=_0x3c6fe6,_0x6f236e=_0x58eee['getAttribute']('footnoteId'),_0x238469=_0x4c614b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x6f236e},function(_0xf1aeab){const _0x90563=this['toDomElement'](_0xf1aeab);return _0x90563['innerText']='^',_0x90563;}),_0x3adb15=_0x166257?_0x4c614b['createContainerElement']('div',{'class':'footnote-content'}):_0x13d068(_0x4c614b['createEditableElement']('div',{'class':'footnote-content'}),_0x4c614b,{'label':t('Footnote\x20content.')});return _0x4c614b['insert'](_0x4c614b['createPositionAt'](_0x3adb15,0x0),_0x4c614b['createSlot']()),_0x4c614b['createContainerElement']('li',{'class':'footnote-definition','id':_0x6f236e},[_0x238469,_0x3adb15]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3157(_0x486985,_0x5822c9){const _0x3ae154=_0x3ae1();return _0x3157=function(_0x31573c,_0x277366){_0x31573c=_0x31573c-0xf7;let _0x5beded=_0x3ae154[_0x31573c];return _0x5beded;},_0x3157(_0x486985,_0x5822c9);}const _0xb4da02=_0x3157;(function(_0x45c324,_0xff8203){const _0x1ad1f1=_0x3157,_0x5e3d6c=_0x45c324();while(!![]){try{const _0x584cf4=-parseInt(_0x1ad1f1(0x101))/0x1+-parseInt(_0x1ad1f1(0x10c))/0x2*(-parseInt(_0x1ad1f1(0x105))/0x3)+parseInt(_0x1ad1f1(0xfe))/0x4*(parseInt(_0x1ad1f1(0x106))/0x5)+-parseInt(_0x1ad1f1(0x103))/0x6+parseInt(_0x1ad1f1(0x10a))/0x7+parseInt(_0x1ad1f1(0xff))/0x8*(-parseInt(_0x1ad1f1(0xf8))/0x9)+-parseInt(_0x1ad1f1(0xf7))/0xa;if(_0x584cf4===_0xff8203)break;else _0x5e3d6c['push'](_0x5e3d6c['shift']());}catch(_0x402246){_0x5e3d6c['push'](_0x5e3d6c['shift']());}}}(_0x3ae1,0xf0d59));import{Command as _0x10348c}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x11273f}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x10348c{[_0xb4da02(0xfa)](){const _0x251d49=_0xb4da02,{editor:_0x582cbd}=this,_0x4522f1=_0x582cbd[_0x251d49(0xfb)][_0x251d49(0xf9)](_0x11273f)[_0x251d49(0x10d)]();this[_0x251d49(0x104)]=!!_0x4522f1,this[_0x251d49(0x102)]=_0x4522f1?.[_0x251d49(0x107)](_0x251d49(0xfd))??null;}[_0xb4da02(0x100)]({value:_0x464539}){const _0x2b8e4d=_0xb4da02,{editor:_0xe67206}=this,_0x55f3b8=_0xe67206[_0x2b8e4d(0xfb)][_0x2b8e4d(0xf9)](_0x11273f),_0xeabe6d=_0x55f3b8[_0x2b8e4d(0x10d)]();_0xeabe6d&&Number[_0x2b8e4d(0x10b)](_0x464539)&&_0xe67206[_0x2b8e4d(0xfc)][_0x2b8e4d(0x108)](_0x5b68c2=>{const _0x2c29c4=_0x2b8e4d;_0x5b68c2[_0x2c29c4(0x109)](_0x2c29c4(0xfd),_0x464539,_0xeabe6d),_0x55f3b8[_0x2c29c4(0x10e)](_0x5b68c2);});}}function _0x3ae1(){const _0x2f85c5=['get','refresh','plugins','model','footnotesListStart','76KxkTBC','18136JbZZPX','execute','177588xcmgbp','value','5877186ngLkOR','isEnabled','43467WUbcdf','145085USzzlT','getAttribute','change','setAttribute','8428245kHlzqO','isInteger','134UDJBWE','getFootnotesDefinitionsObjectElement','_updateFootnotesCounters','5213360AVAQqP','243npkGtY'];_0x3ae1=function(){return _0x2f85c5;};return _0x3ae1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39473c=_0x5824;(function(_0x2d83b2,_0x432bd2){const _0x2c3942=_0x5824,_0x1d6f93=_0x2d83b2();while(!![]){try{const _0x31cbbf=-parseInt(_0x2c3942(0x1ca))/0x1+-parseInt(_0x2c3942(0x1cb))/0x2*(parseInt(_0x2c3942(0x1d1))/0x3)+-parseInt(_0x2c3942(0x1cf))/0x4+-parseInt(_0x2c3942(0x1d7))/0x5*(parseInt(_0x2c3942(0x1c1))/0x6)+parseInt(_0x2c3942(0x1d6))/0x7+parseInt(_0x2c3942(0x1d9))/0x8*(-parseInt(_0x2c3942(0x1ce))/0x9)+parseInt(_0x2c3942(0x1d8))/0xa*(parseInt(_0x2c3942(0x1d4))/0xb);if(_0x31cbbf===_0x432bd2)break;else _0x1d6f93['push'](_0x1d6f93['shift']());}catch(_0x4af068){_0x1d6f93['push'](_0x1d6f93['shift']());}}}(_0x5940,0xa655d));import{Command as _0x39e1eb}from'ckeditor5/src/core.js';function _0x5940(){const _0xc99f67=['12081575eKRXUg','get','7669228zFkyqq','4168845jVABMw','20dflthL','277968bNgJhG','6AOeFEk','_updateFootnotesCounters','change','value','isEnabled','getFootnotesDefinitionsObjectElement','model','plugins','execute','672156EllfRU','1174EncVMY','includes','getAttribute','162mWrICU','1864364FQsvsX','refresh','69FABDZq','setAttribute','footnotesListStyle'];_0x5940=function(){return _0xc99f67;};return _0x5940();}import{FOOTNOTES_DEFINITIONS_STYLES as _0x14fa3f}from'../footnotespropertiesconfig.js';function _0x5824(_0x3da899,_0x2afd2d){const _0x59405a=_0x5940();return _0x5824=function(_0x5824c4,_0x3b80ed){_0x5824c4=_0x5824c4-0x1c1;let _0x3eb29c=_0x59405a[_0x5824c4];return _0x3eb29c;},_0x5824(_0x3da899,_0x2afd2d);}import{FootnotesTracker as _0x2bf720}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x39e1eb{[_0x39473c(0x1d0)](){const _0x2b5db5=_0x39473c,{editor:_0x3a0443}=this,_0x51f6ca=_0x3a0443[_0x2b5db5(0x1c8)][_0x2b5db5(0x1d5)](_0x2bf720)[_0x2b5db5(0x1c6)]();this[_0x2b5db5(0x1c5)]=!!_0x51f6ca,this[_0x2b5db5(0x1c4)]=_0x51f6ca?.[_0x2b5db5(0x1cd)](_0x2b5db5(0x1d3))??null;}[_0x39473c(0x1c9)]({value:_0x198eb0}){const _0x5b0d39=_0x39473c,{editor:_0xd733f7}=this,_0x2d9032=_0xd733f7[_0x5b0d39(0x1c8)][_0x5b0d39(0x1d5)](_0x2bf720),_0x3da824=_0x2d9032[_0x5b0d39(0x1c6)]();_0x3da824&&_0x14fa3f[_0x5b0d39(0x1cc)](_0x198eb0)&&_0xd733f7[_0x5b0d39(0x1c7)][_0x5b0d39(0x1c3)](_0x5c99d4=>{const _0x41f2e4=_0x5b0d39;_0x5c99d4[_0x41f2e4(0x1d2)](_0x41f2e4(0x1d3),_0x198eb0,_0x3da824),_0x2d9032[_0x41f2e4(0x1c2)](_0x5c99d4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5f34(){const _0x709208=['upper-alpha','1701504wSsvuC','12PyBush','decimal-leading-zero','lower-alpha','2193037agtHUm','222894CnjPcj','lower-roman','upper-latin','4OPVYSC','4762104pWjRbs','upper-roman','648739DRbnMz','lower-latin','119725yeymiX','1572374PJKmOn','decimal'];_0x5f34=function(){return _0x709208;};return _0x5f34();}const _0xe1b7e9=_0x47d2;(function(_0x2e597f,_0x3414a0){const _0x3d86f7=_0x47d2,_0x9cc919=_0x2e597f();while(!![]){try{const _0x429134=-parseInt(_0x3d86f7(0x126))/0x1+-parseInt(_0x3d86f7(0x129))/0x2+parseInt(_0x3d86f7(0x12c))/0x3+parseInt(_0x3d86f7(0x123))/0x4*(parseInt(_0x3d86f7(0x128))/0x5)+-parseInt(_0x3d86f7(0x12d))/0x6*(-parseInt(_0x3d86f7(0x130))/0x7)+parseInt(_0x3d86f7(0x124))/0x8+parseInt(_0x3d86f7(0x131))/0x9;if(_0x429134===_0x3414a0)break;else _0x9cc919['push'](_0x9cc919['shift']());}catch(_0x5f5973){_0x9cc919['push'](_0x9cc919['shift']());}}}(_0x5f34,0x6256e));function _0x47d2(_0x2eb32d,_0x43211e){const _0x5f3451=_0x5f34();return _0x47d2=function(_0x47d2cf,_0x16ec3f){_0x47d2cf=_0x47d2cf-0x122;let _0x31fc83=_0x5f3451[_0x47d2cf];return _0x31fc83;},_0x47d2(_0x2eb32d,_0x43211e);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0xe1b7e9(0x12a),_0xe1b7e9(0x12e),_0xe1b7e9(0x127),_0xe1b7e9(0x122),_0xe1b7e9(0x12f),_0xe1b7e9(0x12b),_0xe1b7e9(0x132),_0xe1b7e9(0x125)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x279099=_0x3416;(function(_0x733383,_0x4534d8){const _0x48795a=_0x3416,_0x3d9c5b=_0x733383();while(!![]){try{const _0x426267=-parseInt(_0x48795a(0x158))/0x1+parseInt(_0x48795a(0x15f))/0x2*(-parseInt(_0x48795a(0x152))/0x3)+-parseInt(_0x48795a(0x153))/0x4*(parseInt(_0x48795a(0x151))/0x5)+-parseInt(_0x48795a(0x128))/0x6*(-parseInt(_0x48795a(0x129))/0x7)+parseInt(_0x48795a(0x144))/0x8+parseInt(_0x48795a(0x17c))/0x9*(parseInt(_0x48795a(0x175))/0xa)+parseInt(_0x48795a(0x159))/0xb;if(_0x426267===_0x4534d8)break;else _0x3d9c5b['push'](_0x3d9c5b['shift']());}catch(_0x46410c){_0x3d9c5b['push'](_0x3d9c5b['shift']());}}}(_0x5109,0x213ed));import{Plugin as _0x5c1eeb}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x363f58}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x549ef1}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x483912}from'../footnotestracker.js';import{FootnotesEditing as _0x1db2db}from'../footnotesediting.js';function _0x5109(){const _0x3b3e41=['_formatFootnoteListValue','footnotesDefinitions','floor','_defineFormatter','footnotesListStart','get','977814xRFRdg','nodeAfter','_defineSchema','upper-roman','from','isOfficialPlugin','insert','toLowerCase','list-style-type','fromCharCode','footnotes-list','decimal-leading-zero','mapper','FootnotesPropertiesEditing','attribute:footnotesListStyle:footnotesDefinitions','differ','_defineConverters','setAttribute','6DnmpgX','1508360LyuKhC','footnotesListStyle','_getDefaultStartIndex','item','toUpperCase','type','add','getStyle','setStyle','define','position','getItems','_definePostfixer','_updateFootnotesCounters','pluginName','parseInt','$text','find','requires','writer','padStart','upper-alpha','footnotes.footnotesProperties.defaultListStyle','hasClass','document','parent','plugins','1083296yMHviP','footnotesStyle','consume','upper-latin','isNaN','isPremiumPlugin','lower-alpha','consumable','editor','schema','config','createRangeOn','lower-latin','25tXMbPy','669822pUqYCT','206084NbJxss','getAttribute','footnotesStart','_getDefaultListStyle','viewItem','14849NYjhYM','1895993rfDjLB','checkAttribute','getChildren','upcast','removeAttribute','element','2TpJnJY','max','init','hasAttribute','footnotes.footnotesProperties.defaultStartIndex','extend','setFootnoteFormatter','name','element:ol','registerPostFixer','commands','start','toViewElement','lower-roman','modelCursor','model','downcast','getChanges','for','attribute:footnotesListStart:footnotesDefinitions','decimal','removeStyle','10FUmXFS'];_0x5109=function(){return _0x3b3e41;};return _0x5109();}function _0x3416(_0x39c109,_0x4b2e6f){const _0x5109b3=_0x5109();return _0x3416=function(_0x3416d4,_0x31cf3b){_0x3416d4=_0x3416d4-0x119;let _0x39f665=_0x5109b3[_0x3416d4];return _0x39f665;},_0x3416(_0x39c109,_0x4b2e6f);}export class FootnotesPropertiesEditing extends _0x5c1eeb{static get[_0x279099(0x137)](){const _0xc4ce48=_0x279099;return _0xc4ce48(0x123);}static get[_0x279099(0x13b)](){return[_0x1db2db,_0x483912];}static get[_0x279099(0x11b)](){return!0x0;}static get[_0x279099(0x149)](){return!0x0;}[_0x279099(0x161)](){const _0x47b8d6=_0x279099,{editor:_0x12dcc3}=this;_0x12dcc3[_0x47b8d6(0x14e)][_0x47b8d6(0x132)](_0x47b8d6(0x13f),_0x47b8d6(0x173)),_0x12dcc3[_0x47b8d6(0x14e)][_0x47b8d6(0x132)](_0x47b8d6(0x163),0x1),_0x12dcc3[_0x47b8d6(0x169)][_0x47b8d6(0x12f)](_0x47b8d6(0x145),new _0x363f58(_0x12dcc3)),_0x12dcc3[_0x47b8d6(0x169)][_0x47b8d6(0x12f)](_0x47b8d6(0x155),new _0x549ef1(_0x12dcc3)),this[_0x47b8d6(0x17e)](),this[_0x47b8d6(0x126)](),this[_0x47b8d6(0x179)](),this[_0x47b8d6(0x135)]();}[_0x279099(0x17e)](){const _0x48ddd5=_0x279099,{editor:_0x5dafff}=this,{schema:_0x596d9d}=_0x5dafff[_0x48ddd5(0x16e)];_0x596d9d[_0x48ddd5(0x164)](_0x48ddd5(0x177),{'allowAttributes':[_0x48ddd5(0x12a),_0x48ddd5(0x17a)]});}[_0x279099(0x126)](){const _0x108b56=_0x279099,{editor:_0x13b6f1}=this,{conversion:_0x31c064,model:_0x95f544}=_0x13b6f1,{schema:_0x15beac}=_0x95f544;_0x31c064[_0x108b56(0x171)](_0x108b56(0x15c))[_0x108b56(0x12f)](_0x30985e=>{const _0x9a990=_0x108b56;_0x30985e['on'](_0x9a990(0x167),(_0x240f69,_0x64e728,_0x4bcf61)=>{const _0x5710a8=_0x9a990,_0x41f5a7=_0x64e728[_0x5710a8(0x157)],_0x135339=_0x64e728[_0x5710a8(0x16d)]?.[_0x5710a8(0x142)];_0x41f5a7[_0x5710a8(0x140)](_0x5710a8(0x120))&&_0x135339?.['is'](_0x5710a8(0x15e),_0x5710a8(0x177))&&(function(_0x25193f,_0x2c0d29,_0x506543,_0x58f54d){const _0x1ee2e7=_0x5710a8;if(!_0x58f54d[_0x1ee2e7(0x15a)](_0x2c0d29,_0x1ee2e7(0x17a)))return;let _0xb6cdac=0x1;const _0xc250d9=_0x506543[_0x1ee2e7(0x14b)][_0x1ee2e7(0x146)](_0x25193f,{'attributes':_0x1ee2e7(0x16a)});if(_0xc250d9){const _0x86416a=Number[_0x1ee2e7(0x138)](_0x25193f[_0x1ee2e7(0x154)](_0x1ee2e7(0x16a)),0xa);Number[_0x1ee2e7(0x148)](_0x86416a)||(_0xb6cdac=_0x86416a);}!_0xc250d9&&_0x2c0d29[_0x1ee2e7(0x162)](_0x1ee2e7(0x17a))||_0x506543[_0x1ee2e7(0x13c)][_0x1ee2e7(0x127)](_0x1ee2e7(0x17a),_0xb6cdac,_0x2c0d29);}(_0x41f5a7,_0x135339,_0x4bcf61,_0x15beac),function(_0x11ac90,_0x49dc75,_0x394734,_0x55969d){const _0x22f911=_0x5710a8;if(!_0x55969d[_0x22f911(0x15a)](_0x49dc75,_0x22f911(0x12a)))return;let _0x1b5991=_0x22f911(0x173),_0x49ae0e=!0x1;if(_0x394734[_0x22f911(0x14b)][_0x22f911(0x146)](_0x11ac90,{'attributes':_0x22f911(0x12e)})){const _0x41d988={0x1:_0x22f911(0x173),'a':_0x22f911(0x14a),'A':_0x22f911(0x13e),'i':_0x22f911(0x16c),'I':_0x22f911(0x119)}[_0x11ac90[_0x22f911(0x154)](_0x22f911(0x12e))];_0x41d988&&(_0x1b5991=_0x41d988),_0x49ae0e=!0x0;}_0x394734[_0x22f911(0x14b)][_0x22f911(0x146)](_0x11ac90,{'styles':_0x22f911(0x11e)})&&(_0x1b5991=function(_0x5a5419){const _0x17290a=_0x22f911;switch(_0x5a5419){case _0x17290a(0x14a):return _0x17290a(0x150);case _0x17290a(0x13e):return _0x17290a(0x147);default:return _0x5a5419;}}(_0x11ac90[_0x22f911(0x130)](_0x22f911(0x11e))),_0x49ae0e=!0x0),!_0x49ae0e&&_0x49dc75[_0x22f911(0x162)](_0x22f911(0x12a))||_0x394734[_0x22f911(0x13c)][_0x22f911(0x127)](_0x22f911(0x12a),_0x1b5991,_0x49dc75);}(_0x41f5a7,_0x135339,_0x4bcf61,_0x15beac));});}),_0x31c064[_0x108b56(0x171)](_0x108b56(0x16f))[_0x108b56(0x12f)](_0x485e04=>{const _0x46cb06=_0x108b56;_0x485e04['on'](_0x46cb06(0x172),(_0x16feed,_0x3d6055,_0x5be6e9)=>{const _0x3a3392=_0x46cb06;if(!_0x5be6e9[_0x3a3392(0x14b)][_0x3a3392(0x146)](_0x3d6055[_0x3a3392(0x12c)],_0x16feed[_0x3a3392(0x166)]))return;const _0x3d2803=M(_0x3d6055[_0x3a3392(0x12c)],_0x5be6e9[_0x3a3392(0x122)]),{attributeNewValue:_0xe9d6a2}=_0x3d6055;null==_0xe9d6a2||0x1===_0xe9d6a2?_0x5be6e9[_0x3a3392(0x13c)][_0x3a3392(0x15d)](_0x3a3392(0x16a),_0x3d2803):_0x5be6e9[_0x3a3392(0x13c)][_0x3a3392(0x127)](_0x3a3392(0x16a),String(_0xe9d6a2),_0x3d2803);}),_0x485e04['on'](_0x46cb06(0x124),(_0x8ffe03,_0x308205,_0x346638)=>{const _0x11253f=_0x46cb06;if(!_0x346638[_0x11253f(0x14b)][_0x11253f(0x146)](_0x308205[_0x11253f(0x12c)],_0x8ffe03[_0x11253f(0x166)]))return;const _0x148724=M(_0x308205[_0x11253f(0x12c)],_0x346638[_0x11253f(0x122)]),{attributeNewValue:_0x2258bb}=_0x308205;_0x2258bb&&_0x11253f(0x173)!==_0x2258bb?_0x346638[_0x11253f(0x13c)][_0x11253f(0x131)](_0x11253f(0x11e),_0x2258bb,_0x148724):_0x346638[_0x11253f(0x13c)][_0x11253f(0x174)](_0x11253f(0x11e),_0x148724);});});}[_0x279099(0x135)](){const _0x9fea9d=_0x279099,{editor:_0x3adda3}=this,{model:_0x2c3230}=_0x3adda3,_0x378e5d=_0x3adda3[_0x9fea9d(0x143)][_0x9fea9d(0x17b)](_0x483912),_0x2a297b=this[_0x9fea9d(0x156)](),_0x434e91=this[_0x9fea9d(0x12b)]();_0x2c3230[_0x9fea9d(0x141)][_0x9fea9d(0x168)](_0x1b66ff=>{const _0xf58e63=_0x9fea9d,_0x349451=_0x2c3230[_0xf58e63(0x141)][_0xf58e63(0x125)][_0xf58e63(0x170)]();let _0x437e19=!0x1;for(const _0xd6b5c5 of _0x349451){if(_0xf58e63(0x11c)!==_0xd6b5c5[_0xf58e63(0x12e)]||_0xf58e63(0x139)===_0xd6b5c5[_0xf58e63(0x166)])continue;const _0x53ffa6=_0x2c3230[_0xf58e63(0x14f)](_0xd6b5c5[_0xf58e63(0x133)][_0xf58e63(0x17d)]);for(const _0x31cf6a of _0x53ffa6[_0xf58e63(0x134)]())_0x31cf6a['is'](_0xf58e63(0x15e),_0xf58e63(0x177))&&(!_0x31cf6a[_0xf58e63(0x162)](_0xf58e63(0x17a))&&_0x2c3230[_0xf58e63(0x14d)][_0xf58e63(0x15a)](_0x31cf6a,_0xf58e63(0x17a))&&(_0x1b66ff[_0xf58e63(0x127)](_0xf58e63(0x17a),_0x434e91,_0x31cf6a),_0x437e19=!0x0),!_0x31cf6a[_0xf58e63(0x162)](_0xf58e63(0x12a))&&_0x2c3230[_0xf58e63(0x14d)][_0xf58e63(0x15a)](_0x31cf6a,_0xf58e63(0x12a))&&(_0x1b66ff[_0xf58e63(0x127)](_0xf58e63(0x12a),_0x2a297b,_0x31cf6a),_0x437e19=!0x0));}return _0x437e19&&_0x378e5d[_0xf58e63(0x136)](_0x1b66ff),_0x437e19;});}[_0x279099(0x179)](){const _0x29154e=_0x279099,{editor:_0x1a3c6f}=this;_0x1a3c6f[_0x29154e(0x143)][_0x29154e(0x17b)](_0x483912)[_0x29154e(0x165)](_0x4461ba=>this[_0x29154e(0x176)](_0x4461ba));}[_0x279099(0x156)](){const _0x49d8c7=_0x279099;return this[_0x49d8c7(0x14c)][_0x49d8c7(0x14e)][_0x49d8c7(0x17b)](_0x49d8c7(0x13f));}[_0x279099(0x12b)](){const _0x23c435=_0x279099;return this[_0x23c435(0x14c)][_0x23c435(0x14e)][_0x23c435(0x17b)](_0x23c435(0x163));}[_0x279099(0x176)]({container:_0x16e343,value:_0x255df4,digits:_0x14ff20}){const _0x4fe94c=_0x279099,_0x6bf5a4=_0x16e343[_0x4fe94c(0x154)](_0x4fe94c(0x12a)),_0x425a37=_0x16e343[_0x4fe94c(0x154)](_0x4fe94c(0x17a)),_0x32d62d=Math[_0x4fe94c(0x178)](_0x255df4)+(_0x425a37??0x1)-0x1;switch(_0x6bf5a4){case _0x4fe94c(0x121):return function(_0x3f7c83,_0x2887b0){const _0x16db20=_0x4fe94c;return String(_0x3f7c83)[_0x16db20(0x13d)](_0x2887b0,'0');}(_0x32d62d,Math[_0x4fe94c(0x160)](0x2,_0x14ff20));case _0x4fe94c(0x14a):case _0x4fe94c(0x150):return N(_0x32d62d,!0x1);case _0x4fe94c(0x13e):case _0x4fe94c(0x147):return N(_0x32d62d,!0x0);case _0x4fe94c(0x16c):return X(_0x32d62d,!0x1);case _0x4fe94c(0x119):return X(_0x32d62d,!0x0);default:return String(_0x32d62d);}}}function M(_0x30387c,_0xa62b11){const _0x419631=_0x279099,_0x34e146=_0xa62b11[_0x419631(0x16b)](_0x30387c);return Array[_0x419631(0x11a)](_0x34e146[_0x419631(0x15b)]())[_0x419631(0x13a)](_0x41f5eb=>_0x41f5eb['is'](_0x419631(0x15e),'ol')&&_0x41f5eb[_0x419631(0x140)](_0x419631(0x120)));}function N(_0xec727,_0xcd3043){const _0x27d12b=_0x279099;let _0xbb56='',_0x2d059f=_0xec727;for(;_0x2d059f>0x0;){const _0x997333=(_0x2d059f-0x1)%0x1a;_0xbb56=String[_0x27d12b(0x11f)](0x61+_0x997333)+_0xbb56,_0x2d059f=Math[_0x27d12b(0x178)]((_0x2d059f-0x1)/0x1a);}return _0xcd3043?_0xbb56[_0x27d12b(0x12d)]():_0xbb56;}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(_0x173631,_0x1a4fe0){const _0x30265c=_0x279099;let _0x5d3cba='',_0x80024a=_0x173631;for(const {value:_0x182f4f,numeral:_0x2f8e34}of V)for(;_0x80024a>=_0x182f4f;)_0x5d3cba+=_0x2f8e34,_0x80024a-=_0x182f4f;return _0x1a4fe0?_0x5d3cba:_0x5d3cba[_0x30265c(0x11d)]();}
|
|
23
|
+
const _0x4da8f3=_0x25d2;(function(_0xdad1af,_0x1c44ff){const _0x2930b3=_0x25d2,_0x9e65af=_0xdad1af();while(!![]){try{const _0xfc2db0=parseInt(_0x2930b3(0x118))/0x1+-parseInt(_0x2930b3(0x114))/0x2*(parseInt(_0x2930b3(0xfd))/0x3)+parseInt(_0x2930b3(0xd5))/0x4*(-parseInt(_0x2930b3(0xc9))/0x5)+parseInt(_0x2930b3(0x128))/0x6*(parseInt(_0x2930b3(0x100))/0x7)+-parseInt(_0x2930b3(0xf2))/0x8*(parseInt(_0x2930b3(0xc7))/0x9)+parseInt(_0x2930b3(0x10f))/0xa+parseInt(_0x2930b3(0xfe))/0xb;if(_0xfc2db0===_0x1c44ff)break;else _0x9e65af['push'](_0x9e65af['shift']());}catch(_0x49bef3){_0x9e65af['push'](_0x9e65af['shift']());}}}(_0x57f3,0x445a9));import{Plugin as _0x7a537f}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x8030c9}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x7cc814}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x3e83b9}from'../footnotestracker.js';import{FootnotesEditing as _0x1d056a}from'../footnotesediting.js';function _0x25d2(_0x297bae,_0xb613f2){const _0x57f38c=_0x57f3();return _0x25d2=function(_0x25d2a0,_0x183c98){_0x25d2a0=_0x25d2a0-0xc4;let _0x58aa7b=_0x57f38c[_0x25d2a0];return _0x58aa7b;},_0x25d2(_0x297bae,_0xb613f2);}export class FootnotesPropertiesEditing extends _0x7a537f{static get[_0x4da8f3(0xd4)](){const _0x19d1e9=_0x4da8f3;return _0x19d1e9(0xf7);}static get[_0x4da8f3(0xd9)](){return[_0x1d056a,_0x3e83b9];}static get[_0x4da8f3(0x108)](){return!0x0;}static get[_0x4da8f3(0xfc)](){return!0x0;}[_0x4da8f3(0xf4)](){const _0x406da2=_0x4da8f3,{editor:_0xe7d462}=this;_0xe7d462[_0x406da2(0xd2)][_0x406da2(0x10c)](_0x406da2(0x11e),_0x406da2(0xd7)),_0xe7d462[_0x406da2(0xd2)][_0x406da2(0x10c)](_0x406da2(0x113),0x1),_0xe7d462[_0x406da2(0xfb)][_0x406da2(0xf3)](_0x406da2(0xde),new _0x8030c9(_0xe7d462)),_0xe7d462[_0x406da2(0xfb)][_0x406da2(0xf3)](_0x406da2(0x11c),new _0x7cc814(_0xe7d462)),this[_0x406da2(0xcf)](),this[_0x406da2(0x116)](),this[_0x406da2(0xc8)](),this[_0x406da2(0xc4)]();}[_0x4da8f3(0xcf)](){const _0x235038=_0x4da8f3,{editor:_0x18040f}=this,{schema:_0xd02770}=_0x18040f[_0x235038(0xdf)];_0xd02770[_0x235038(0xe4)](_0x235038(0xcb),{'allowAttributes':[_0x235038(0x11a),_0x235038(0xf6)]});}[_0x4da8f3(0x116)](){const _0x314ec2=_0x4da8f3,{editor:_0x1dd2a2}=this,{conversion:_0x3aa94f,model:_0x473b9c}=_0x1dd2a2,{schema:_0x18190c}=_0x473b9c;_0x3aa94f[_0x314ec2(0xdd)](_0x314ec2(0x101))[_0x314ec2(0xf3)](_0x4851f9=>{const _0x59bdd3=_0x314ec2;_0x4851f9['on'](_0x59bdd3(0xd1),(_0x2f3965,_0x5e99f8,_0x415af8)=>{const _0x56e49e=_0x59bdd3,_0x40dec6=_0x5e99f8[_0x56e49e(0xdc)],_0x441492=_0x5e99f8[_0x56e49e(0x10e)]?.[_0x56e49e(0xc6)];_0x40dec6[_0x56e49e(0x124)](_0x56e49e(0xed))&&_0x441492?.['is'](_0x56e49e(0xe3),_0x56e49e(0xcb))&&(function(_0x320f3b,_0x38cb5d,_0x5449f6,_0x22ae27){const _0x4e5f6d=_0x56e49e;if(!_0x22ae27[_0x4e5f6d(0xe1)](_0x38cb5d,_0x4e5f6d(0xf6)))return;let _0x51f309=0x1;const _0x13aabb=_0x5449f6[_0x4e5f6d(0xf0)][_0x4e5f6d(0xcd)](_0x320f3b,{'attributes':_0x4e5f6d(0x120)});if(_0x13aabb){const _0x31e5bf=Number[_0x4e5f6d(0xf8)](_0x320f3b[_0x4e5f6d(0xee)](_0x4e5f6d(0x120)),0xa);Number[_0x4e5f6d(0x119)](_0x31e5bf)||(_0x51f309=_0x31e5bf);}!_0x13aabb&&_0x38cb5d[_0x4e5f6d(0x11f)](_0x4e5f6d(0xf6))||_0x5449f6[_0x4e5f6d(0xfa)][_0x4e5f6d(0x103)](_0x4e5f6d(0xf6),_0x51f309,_0x38cb5d);}(_0x40dec6,_0x441492,_0x415af8,_0x18190c),function(_0x562876,_0x27ddef,_0x4067db,_0x92b882){const _0x9bea9f=_0x56e49e;if(!_0x92b882[_0x9bea9f(0xe1)](_0x27ddef,_0x9bea9f(0x11a)))return;let _0x393add=_0x9bea9f(0xd7),_0x2c283e=!0x1;if(_0x4067db[_0x9bea9f(0xf0)][_0x9bea9f(0xcd)](_0x562876,{'attributes':_0x9bea9f(0xcc)})){const _0x1a5453={0x1:_0x9bea9f(0xd7),'a':_0x9bea9f(0x102),'A':_0x9bea9f(0xf1),'i':_0x9bea9f(0xd0),'I':_0x9bea9f(0x111)}[_0x562876[_0x9bea9f(0xee)](_0x9bea9f(0xcc))];_0x1a5453&&(_0x393add=_0x1a5453),_0x2c283e=!0x0;}_0x4067db[_0x9bea9f(0xf0)][_0x9bea9f(0xcd)](_0x562876,{'styles':_0x9bea9f(0xf5)})&&(_0x393add=function(_0xa005d5){const _0x1e1eb1=_0x9bea9f;switch(_0xa005d5){case _0x1e1eb1(0x102):return _0x1e1eb1(0xd8);case _0x1e1eb1(0xf1):return _0x1e1eb1(0x110);default:return _0xa005d5;}}(_0x562876[_0x9bea9f(0xe9)](_0x9bea9f(0xf5))),_0x2c283e=!0x0),!_0x2c283e&&_0x27ddef[_0x9bea9f(0x11f)](_0x9bea9f(0x11a))||_0x4067db[_0x9bea9f(0xfa)][_0x9bea9f(0x103)](_0x9bea9f(0x11a),_0x393add,_0x27ddef);}(_0x40dec6,_0x441492,_0x415af8,_0x18190c));});}),_0x3aa94f[_0x314ec2(0xdd)](_0x314ec2(0xe7))[_0x314ec2(0xf3)](_0x4c15a8=>{const _0x26c5f6=_0x314ec2;_0x4c15a8['on'](_0x26c5f6(0x125),(_0x3aea53,_0x383586,_0x1c5835)=>{const _0x6c2156=_0x26c5f6;if(!_0x1c5835[_0x6c2156(0xf0)][_0x6c2156(0xcd)](_0x383586[_0x6c2156(0x122)],_0x3aea53[_0x6c2156(0x104)]))return;const _0x1c4c21=M(_0x383586[_0x6c2156(0x122)],_0x1c5835[_0x6c2156(0xd3)]),{attributeNewValue:_0x1c22ed}=_0x383586;null==_0x1c22ed||0x1===_0x1c22ed?_0x1c5835[_0x6c2156(0xfa)][_0x6c2156(0xea)](_0x6c2156(0x120),_0x1c4c21):_0x1c5835[_0x6c2156(0xfa)][_0x6c2156(0x103)](_0x6c2156(0x120),String(_0x1c22ed),_0x1c4c21);}),_0x4c15a8['on'](_0x26c5f6(0xce),(_0x468c69,_0x3a20c6,_0x18b0d7)=>{const _0x52da7e=_0x26c5f6;if(!_0x18b0d7[_0x52da7e(0xf0)][_0x52da7e(0xcd)](_0x3a20c6[_0x52da7e(0x122)],_0x468c69[_0x52da7e(0x104)]))return;const _0x1ee5fe=M(_0x3a20c6[_0x52da7e(0x122)],_0x18b0d7[_0x52da7e(0xd3)]),{attributeNewValue:_0x204be8}=_0x3a20c6;_0x204be8&&_0x52da7e(0xd7)!==_0x204be8?_0x18b0d7[_0x52da7e(0xfa)][_0x52da7e(0xda)](_0x52da7e(0xf5),_0x204be8,_0x1ee5fe):_0x18b0d7[_0x52da7e(0xfa)][_0x52da7e(0x112)](_0x52da7e(0xf5),_0x1ee5fe);});});}[_0x4da8f3(0xc4)](){const _0x299d41=_0x4da8f3,{editor:_0x36d95b}=this,{model:_0x12db5b}=_0x36d95b,_0x5f4dee=_0x36d95b[_0x299d41(0xe2)][_0x299d41(0xe6)](_0x3e83b9),_0x53c75a=this[_0x299d41(0xef)](),_0x427d6f=this[_0x299d41(0x10a)]();_0x12db5b[_0x299d41(0x105)][_0x299d41(0x109)](_0x45f1ed=>{const _0x22eb8f=_0x299d41,_0x416e57=_0x12db5b[_0x22eb8f(0x105)][_0x22eb8f(0x129)][_0x22eb8f(0xdb)]();let _0x5638f8=!0x1;for(const _0x182c6a of _0x416e57){if(_0x22eb8f(0x123)!==_0x182c6a[_0x22eb8f(0xcc)]||_0x22eb8f(0x127)===_0x182c6a[_0x22eb8f(0x104)])continue;const _0x198bed=_0x12db5b[_0x22eb8f(0xc5)](_0x182c6a[_0x22eb8f(0xe5)][_0x22eb8f(0xeb)]);for(const _0x245fd2 of _0x198bed[_0x22eb8f(0x126)]())_0x245fd2['is'](_0x22eb8f(0xe3),_0x22eb8f(0xcb))&&(!_0x245fd2[_0x22eb8f(0x11f)](_0x22eb8f(0xf6))&&_0x12db5b[_0x22eb8f(0xf9)][_0x22eb8f(0xe1)](_0x245fd2,_0x22eb8f(0xf6))&&(_0x45f1ed[_0x22eb8f(0x103)](_0x22eb8f(0xf6),_0x427d6f,_0x245fd2),_0x5638f8=!0x0),!_0x245fd2[_0x22eb8f(0x11f)](_0x22eb8f(0x11a))&&_0x12db5b[_0x22eb8f(0xf9)][_0x22eb8f(0xe1)](_0x245fd2,_0x22eb8f(0x11a))&&(_0x45f1ed[_0x22eb8f(0x103)](_0x22eb8f(0x11a),_0x53c75a,_0x245fd2),_0x5638f8=!0x0));}return _0x5638f8&&_0x5f4dee[_0x22eb8f(0x115)](_0x45f1ed),_0x5638f8;});}[_0x4da8f3(0xc8)](){const _0x2707e4=_0x4da8f3,{editor:_0x20b69b}=this;_0x20b69b[_0x2707e4(0xe2)][_0x2707e4(0xe6)](_0x3e83b9)[_0x2707e4(0xff)](_0x240837=>this[_0x2707e4(0x106)](_0x240837));}[_0x4da8f3(0xef)](){const _0xcbfd20=_0x4da8f3;return this[_0xcbfd20(0xe0)][_0xcbfd20(0xd2)][_0xcbfd20(0xe6)](_0xcbfd20(0x11e));}[_0x4da8f3(0x10a)](){const _0x34cd8e=_0x4da8f3;return this[_0x34cd8e(0xe0)][_0x34cd8e(0xd2)][_0x34cd8e(0xe6)](_0x34cd8e(0x113));}[_0x4da8f3(0x106)]({container:_0x523497,value:_0x3dd2d1,digits:_0x1da45a}){const _0x1c89ab=_0x4da8f3,_0xa83b23=_0x523497[_0x1c89ab(0xee)](_0x1c89ab(0x11a)),_0xab5ddf=_0x523497[_0x1c89ab(0xee)](_0x1c89ab(0xf6)),_0x1035fb=Math[_0x1c89ab(0x10b)](_0x3dd2d1)+(_0xab5ddf??0x1)-0x1;switch(_0xa83b23){case _0x1c89ab(0x10d):return function(_0x43e0ab,_0x24a201){const _0x520938=_0x1c89ab;return String(_0x43e0ab)[_0x520938(0x11b)](_0x24a201,'0');}(_0x1035fb,Math[_0x1c89ab(0xe8)](0x2,_0x1da45a));case _0x1c89ab(0x102):case _0x1c89ab(0xd8):return N(_0x1035fb,!0x1);case _0x1c89ab(0xf1):case _0x1c89ab(0x110):return N(_0x1035fb,!0x0);case _0x1c89ab(0xd0):return X(_0x1035fb,!0x1);case _0x1c89ab(0x111):return X(_0x1035fb,!0x0);default:return String(_0x1035fb);}}}function _0x57f3(){const _0x1a7a91=['nodeAfter','toLowerCase','footnotes-list','getAttribute','_getDefaultListStyle','consumable','upper-alpha','3353928BOMgMR','add','init','list-style-type','footnotesListStart','FootnotesPropertiesEditing','parseInt','schema','writer','commands','isPremiumPlugin','150723dplobk','1001759xsSvgS','setFootnoteFormatter','267848mSNFCS','upcast','lower-alpha','setAttribute','name','document','_formatFootnoteListValue','toViewElement','isOfficialPlugin','registerPostFixer','_getDefaultStartIndex','floor','define','decimal-leading-zero','modelCursor','3278290jVsXeH','upper-latin','upper-roman','removeStyle','footnotes.footnotesProperties.defaultStartIndex','2sQdEBV','_updateFootnotesCounters','_defineConverters','from','187257aPhpZj','isNaN','footnotesListStyle','padStart','footnotesStart','getChildren','footnotes.footnotesProperties.defaultListStyle','hasAttribute','start','toUpperCase','item','insert','hasClass','attribute:footnotesListStart:footnotesDefinitions','getItems','$text','72rWBzCO','differ','_definePostfixer','createRangeOn','parent','9UKLMlf','_defineFormatter','65805Jxhyco','fromCharCode','footnotesDefinitions','type','consume','attribute:footnotesListStyle:footnotesDefinitions','_defineSchema','lower-roman','element:ol','config','mapper','pluginName','96COiiXx','find','decimal','lower-latin','requires','setStyle','getChanges','viewItem','for','footnotesStyle','model','editor','checkAttribute','plugins','element','extend','position','get','downcast','max','getStyle','removeAttribute'];_0x57f3=function(){return _0x1a7a91;};return _0x57f3();}function M(_0x5e7b7c,_0x1921d4){const _0x1e05ef=_0x4da8f3,_0x3431c8=_0x1921d4[_0x1e05ef(0x107)](_0x5e7b7c);return Array[_0x1e05ef(0x117)](_0x3431c8[_0x1e05ef(0x11d)]())[_0x1e05ef(0xd6)](_0x56e3a7=>_0x56e3a7['is'](_0x1e05ef(0xe3),'ol')&&_0x56e3a7[_0x1e05ef(0x124)](_0x1e05ef(0xed)));}function N(_0x56e0d4,_0x4ca1e1){const _0x294f1d=_0x4da8f3;let _0x5786d0='',_0x2c8254=_0x56e0d4;for(;_0x2c8254>0x0;){const _0x18d4df=(_0x2c8254-0x1)%0x1a;_0x5786d0=String[_0x294f1d(0xca)](0x61+_0x18d4df)+_0x5786d0,_0x2c8254=Math[_0x294f1d(0x10b)]((_0x2c8254-0x1)/0x1a);}return _0x4ca1e1?_0x5786d0[_0x294f1d(0x121)]():_0x5786d0;}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(_0x5eb128,_0x500bc8){const _0xc1d1c1=_0x4da8f3;let _0x80072a='',_0x5ab516=_0x5eb128;for(const {value:_0x3afa10,numeral:_0x82d81}of V)for(;_0x5ab516>=_0x3afa10;)_0x80072a+=_0x82d81,_0x5ab516-=_0x3afa10;return _0x500bc8?_0x80072a:_0x80072a[_0xc1d1c1(0xec)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x2de192,ButtonView as _0x581155,ContextualBalloon as _0x20a39d,createDropdown as _0x5a44e8}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x549da8}from'ckeditor5/src/widget.js';import{Plugin as _0x28b321}from'ckeditor5/src/core.js';import{IconFootnote as _0x2a5631,IconListStyleDecimal as _0x11a503,IconListStyleDecimalLeadingZero as _0x458807,IconListStyleLowerLatin as _0x117c19,IconListStyleLowerRoman as _0x15d5e5,IconListStyleUpperLatin as _0x5cb460,IconListStyleUpperRoman as _0x1c40b8}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x10fe3a}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x15208b}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x28b321{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x20a39d,_0x549da8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x12cb93}=this,{componentFactory:_0x5243df}=_0x12cb93['ui'];_0x12cb93['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5243df['add']('footnotesStyle',function(_0x3f440f){return _0x2d9f2=>{const {t:t}=_0x2d9f2,_0x2c08eb=_0x3f440f['commands']['get']('footnotesStyle'),_0x41d444=_0x5a44e8(_0x2d9f2),{buttonView:_0x111593}=_0x41d444;return _0x41d444['class']='ck-footnotes-styles-dropdown',_0x41d444['bind']('isEnabled')['to'](_0x2c08eb,'isEnabled'),_0x111593['set']({'label':t('Footnotes\x20style'),'icon':_0x2a5631,'tooltip':!0x0}),_0x41d444['once']('change:isOpen',()=>{const _0xdb5a87=function({editor:_0x21654d,dropdownView:_0x2cefda}){const {t:t}=_0x21654d['locale'],_0x1647da=t('Footnotes\x20definitions\x20styles'),_0x37f601=function(_0x182d44){const t=_0x182d44['locale']['t'],_0x1c143d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x11a503},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x458807},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x15d5e5},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1c40b8},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x117c19},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5cb460}];return _0x1c143d['map'](function(_0xcf2a43){const _0x2168e5=_0xcf2a43['locale'];return({label:_0x42d854,icon:_0x35bc06,tooltip:_0x53e612,style:_0x8c03de})=>{const _0x5058e5=_0xcf2a43['commands']['get']('footnotesStyle'),_0xd34a1c=new _0x581155(_0x2168e5);return _0xd34a1c['set']({'label':_0x42d854,'icon':_0x35bc06,'tooltip':_0x53e612}),_0xd34a1c['bind']('isOn')['to'](_0x5058e5,'value',_0x2377e4=>_0x2377e4===_0x8c03de),_0xd34a1c['bind']('isEnabled')['to'](_0x5058e5,'isEnabled'),_0xd34a1c['on']('execute',()=>{_0xcf2a43['execute']('footnotesStyle',{'value':_0x8c03de}),_0xcf2a43['editing']['view']['focus']();}),_0xd34a1c;};}(_0x182d44));}(_0x21654d),_0x58edc5=new _0x10fe3a(_0x21654d['locale'],{'styleGridAriaLabel':_0x1647da,'styleButtonViews':_0x37f601}),_0x2e1ad7=_0x21654d['commands']['get']('footnotesStart');return _0x58edc5['startIndexFieldView']['bind']('isEnabled')['to'](_0x2e1ad7),_0x58edc5['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2e1ad7),_0x58edc5['on']('footnotesListStart',(_0x402306,_0x384d77)=>{_0x21654d['execute']('footnotesStart',{'value':_0x384d77['startIndex']});}),_0x58edc5['delegate']('execute')['to'](_0x2cefda),_0x58edc5;}({'editor':_0x3f440f,'dropdownView':_0x41d444});_0x41d444['panelView']['children']['add'](_0xdb5a87);}),_0x41d444;};}(_0x12cb93));}['afterInit'](){const {editor:_0x3b035d}=this,{t:t}=_0x3b035d['locale'],_0x2dec25=_0x3b035d['plugins']['get'](_0x549da8),{defaultPositions:_0x2a8f97}=_0x2de192;_0x2dec25['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3b035d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x55dba3=>{let _0x2bf8f7=_0x55dba3['getFirstPosition']()?.['parent'];return _0x2bf8f7?.['is']('$text')&&(_0x2bf8f7=_0x2bf8f7['parent']),_0x2bf8f7?.['is']('element')?_0x2bf8f7['findAncestor'](_0x15208b):null;},'positions':[_0x2a8f97['southArrowNorth'],_0x2a8f97['southArrowNorthMiddleWest'],_0x2a8f97['southArrowNorthMiddleEast'],_0x2a8f97['southArrowNorthWest'],_0x2a8f97['southArrowNorthEast'],_0x2a8f97['northArrowSouth'],_0x2a8f97['northArrowSouthMiddleWest'],_0x2a8f97['northArrowSouthMiddleEast'],_0x2a8f97['northArrowSouthWest'],_0x2a8f97['northArrowSouthEast'],_0x2a8f97['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3ef543,View as _0x4cc1fa,ViewCollection as _0x13ee24,FocusCycler as _0x1d2e08,addKeyboardHandlingForGrid as _0x5352c0,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it}from'ckeditor5/src/ui.js';import{FocusTracker as et,KeystrokeHandler as ot,global as rt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x4cc1fa{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x13ee24();['focusCycler'];constructor(_0x2215d5,{styleButtonViews:_0x422d43,styleGridAriaLabel:_0x103ea7}){super(_0x2215d5),(this['focusCycler']=new _0x1d2e08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x422d43,_0x103ea7),[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 _0x53e94e of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x53e94e['element']);_0x5352c0({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x427d8a=_0x530b45=>_0x530b45['stopPropagation']();this['keystrokes']['set']('arrowright',_0x427d8a),this['keystrokes']['set']('arrowleft',_0x427d8a),this['keystrokes']['set']('arrowup',_0x427d8a),this['keystrokes']['set']('arrowdown',_0x427d8a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x36f1b2,_0xb22edd){const _0x2a8a7c=new _0x4cc1fa(this['locale']);return _0x2a8a7c['children']=_0x2a8a7c['createCollection'](),_0x2a8a7c['children']['addMany'](_0x36f1b2),_0x2a8a7c['setTemplate']({'tag':'div','attributes':{'aria-label':_0xb22edd,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2a8a7c['children']}),_0x2a8a7c['children']['delegate']('execute')['to'](this),_0x2a8a7c['focus']=function(){for(const _0x3cdd1e of this['children'])if(_0x3cdd1e instanceof _0x3ef543&&_0x3cdd1e['isOn'])return void _0x3cdd1e['focus']();this['children']['first']['focus']();},_0x2a8a7c['focusTracker']=new et(),_0x2a8a7c['keystrokes']=new ot(),_0x2a8a7c['render'](),_0x2a8a7c['keystrokes']['listenTo'](_0x2a8a7c['element']),this['children']['add'](_0x2a8a7c),_0x2a8a7c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4d9690=this['_createStartIndexPropertyView'](),_0x437078=[_0x4d9690],_0x5b400e=new tt(this['locale'],_0x437078);return _0x5b400e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5b400e['buttonView']['bind']('isEnabled')['toMany'](_0x437078,'isEnabled',(..._0x468d9f)=>_0x468d9f['some'](_0x532eeb=>_0x532eeb)),_0x5b400e['buttonView']['on']('change:isEnabled',(_0x314040,_0x9772e9,_0x44d047)=>{_0x44d047||(_0x5b400e['isCollapsed']=!0x0);}),this['children']['add'](_0x5b400e),[_0x4d9690,_0x5b400e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4a356a=new st(this['locale'],it);return _0x4a356a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4a356a['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4a356a['fieldView']['on']('input',()=>{const _0x452de5=_0x4a356a['fieldView']['element'],_0x32bd09=_0x452de5['valueAsNumber'];Number['isNaN'](_0x32bd09)?_0x4a356a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x452de5['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x32bd09}):_0x4a356a['errorText']=t(_0x32bd09<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4a356a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3191fc=_0x4b69;function _0x49ff(){var _0x32491d=['1438998BHtKmB','6uPjZIh','112082EmlgQy','FootnotesProperties','486ynUkpq','isOfficialPlugin','5hdowtm','3950492JDViBy','pluginName','73928fZSFCg','4OvkPuJ','isPremiumPlugin','104NbsAUf','4189518FTYAFN','10aMJjCL','requires','2880312qDjOFQ','4645311Dwmaia'];_0x49ff=function(){return _0x32491d;};return _0x49ff();}(function(_0x5ca0bf,_0x39ae1c){var _0x157c97=_0x4b69,_0x7ca324=_0x5ca0bf();while(!![]){try{var _0x362f02=parseInt(_0x157c97(0xfa))/0x1*(parseInt(_0x157c97(0xfb))/0x2)+-parseInt(_0x157c97(0xf9))/0x3*(parseInt(_0x157c97(0xf1))/0x4)+-parseInt(_0x157c97(0xed))/0x5*(parseInt(_0x157c97(0xf4))/0x6)+-parseInt(_0x157c97(0xee))/0x7+-parseInt(_0x157c97(0xf0))/0x8*(parseInt(_0x157c97(0xeb))/0x9)+parseInt(_0x157c97(0xf5))/0xa*(parseInt(_0x157c97(0xf8))/0xb)+-parseInt(_0x157c97(0xf7))/0xc*(-parseInt(_0x157c97(0xf3))/0xd);if(_0x362f02===_0x39ae1c)break;else _0x7ca324['push'](_0x7ca324['shift']());}catch(_0x390749){_0x7ca324['push'](_0x7ca324['shift']());}}}(_0x49ff,0x6acda));import{Plugin as _0x357315}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x3b7a25}from'./footnotesproperties/footnotespropertiesediting.js';function _0x4b69(_0x12e088,_0x2ee3da){var _0x49ffe6=_0x49ff();return _0x4b69=function(_0x4b6946,_0x2c352d){_0x4b6946=_0x4b6946-0xeb;var _0x4fe00b=_0x49ffe6[_0x4b6946];return _0x4fe00b;},_0x4b69(_0x12e088,_0x2ee3da);}import{FootnotesPropertiesUI as _0xaddad2}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x357315{static get[_0x3191fc(0xef)](){var _0x5f003c=_0x3191fc;return _0x5f003c(0xfc);}static get[_0x3191fc(0xf6)](){return[_0x3b7a25,_0xaddad2];}static get[_0x3191fc(0xec)](){return!0x0;}static get[_0x3191fc(0xf2)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4d7ea6=_0x21fb;(function(_0xad9df7,_0x554cbe){const _0xdfa09d=_0x21fb,_0x25d725=_0xad9df7();while(!![]){try{const _0x6c55f0=parseInt(_0xdfa09d(0x193))/0x1*(parseInt(_0xdfa09d(0x1d8))/0x2)+parseInt(_0xdfa09d(0x1b5))/0x3+-parseInt(_0xdfa09d(0x18f))/0x4*(parseInt(_0xdfa09d(0x1c5))/0x5)+-parseInt(_0xdfa09d(0x1a7))/0x6+-parseInt(_0xdfa09d(0x196))/0x7+parseInt(_0xdfa09d(0x198))/0x8*(-parseInt(_0xdfa09d(0x1d3))/0x9)+parseInt(_0xdfa09d(0x1da))/0xa;if(_0x6c55f0===_0x554cbe)break;else _0x25d725['push'](_0x25d725['shift']());}catch(_0x56f641){_0x25d725['push'](_0x25d725['shift']());}}}(_0x1e14,0xe5f23));import{Plugin as _0x356b2b}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x4c881f}from'./modelelementtracker.js';function _0x1e14(){const _0xe25c8=['_handleFootnotesDefinitionsObjectChanges','move','model','setFootnoteFormatter','find','_footnoteDefsContainerTracker','footnotes.multiBlock','getRootNames','_footnoteFormatter','some','94568opLusA','change:data','createPositionBefore','reset','62770wqXYDu','has','_footnoteDefsTracker','2785902vuENhY','high','49464USikYH','findIndex','isPremiumPlugin','_updateFootnoteRefCounter','$graveyard','root','from','compareWith','_footnotesDefinitions','listenTo','_footnotes','_handleFootnoteReferencesChanges','_sortFootnoteDefinitions','_ensureFootnotesReferencesHaveProperOrder','_handleInsertedFootnoteReference','6958470rksSZH','getFootnote','singleton','min','createRangeOn','splice','insert','footnoteInlineContent','push','_ensureFootnotesDefinitionsContainerExists','setAttribute','set','length','parent','3202284BmPHRt','FootnotesTracker','end','reference','_handleRemoveFootnoteReferenceById','enqueueChange','getFootnotes','footnoteRef','createRangeIn','getChanges','indexOf','getFootnotesFormatter','footnoteDefinition','add','_handleFootnotesDefinitionsObjectSync','append','195MioaFB','config','before','_updateFootnotesCounters','get','unshift','getChildren','getAttribute','_handleMovedFootnoteReference','_footnoteRefsTracker','differ','init','remove','createElement','1926aEEaXj','footnoteId','map','paragraph','editor','54BwOvVo','definition','19825720GiNBvW','createPositionAt','after','_handleFootnoteDefinitionsChanges','pluginName','registerPostFixer','footnotesDefinitions','rootName','document','getFootnotesDefinitionsObjectElement','childCount','isEqual','footnoteCounter','isOfficialPlugin','_insertEmptyFootnotesDefinitionsContainer','low'];_0x1e14=function(){return _0xe25c8;};return _0x1e14();}export class FootnotesTracker extends _0x356b2b{[_0x4d7ea6(0x1a2)]=[];[_0x4d7ea6(0x1a0)]=null;[_0x4d7ea6(0x18d)]=null;[_0x4d7ea6(0x18a)];[_0x4d7ea6(0x1ce)];[_0x4d7ea6(0x195)];static get[_0x4d7ea6(0x1de)](){const _0x51af83=_0x4d7ea6;return _0x51af83(0x1b6);}static get[_0x4d7ea6(0x1e7)](){return!0x0;}static get[_0x4d7ea6(0x19a)](){return!0x0;}constructor(_0x1656ab){const _0x123ee1=_0x4d7ea6;super(_0x1656ab),this[_0x123ee1(0x18a)]=new _0x4c881f(this[_0x123ee1(0x1d7)][_0x123ee1(0x1ec)],{'elementName':_0x123ee1(0x1e0),'getElementKey':()=>_0x123ee1(0x1a9)}),this[_0x123ee1(0x1ce)]=new _0x4c881f(this[_0x123ee1(0x1d7)][_0x123ee1(0x1ec)],{'elementName':_0x123ee1(0x1bc),'getElementKey':_0x179da5=>_0x179da5[_0x123ee1(0x1cc)](_0x123ee1(0x1d4))}),this[_0x123ee1(0x195)]=new _0x4c881f(this[_0x123ee1(0x1d7)][_0x123ee1(0x1ec)],{'elementName':_0x123ee1(0x1c1),'getElementKey':_0xdf8faa=>_0xdf8faa[_0x123ee1(0x1cc)](_0x123ee1(0x1d4))});}[_0x4d7ea6(0x1d0)](){const _0x249355=_0x4d7ea6,{editor:_0x4eab13}=this,{model:_0x4b525a,data:_0x4d6ab3}=_0x4eab13;_0x4b525a[_0x249355(0x1e2)][_0x249355(0x1df)](_0x406b59=>{const _0x54a40d=_0x249355,_0x2e6820=_0x4b525a[_0x54a40d(0x1e2)][_0x54a40d(0x1cf)][_0x54a40d(0x1be)]();let _0xd26672=!0x1;return this[_0x54a40d(0x1ea)](_0x406b59,_0x2e6820)&&(_0xd26672=!0x0),this[_0x54a40d(0x1dd)](_0x406b59,_0x2e6820)&&(_0xd26672=!0x0),this[_0x54a40d(0x1a3)](_0x406b59,_0x2e6820)&&(_0xd26672=!0x0),this[_0x54a40d(0x1a5)](_0x406b59)&&(_0xd26672=!0x0),this[_0x54a40d(0x1c3)](_0x406b59)&&(_0xd26672=!0x0),this[_0x54a40d(0x1a4)](_0x406b59)&&(_0xd26672=!0x0),_0xd26672;}),this[_0x249355(0x1a1)](_0x4b525a[_0x249355(0x1e2)],_0x249355(0x190),()=>{const _0x529364=_0x249355;_0x4b525a[_0x529364(0x1ba)]({'isUndoable':!0x1},_0x4e9659=>{const _0x45f87c=_0x529364;this[_0x45f87c(0x1b0)](_0x4e9659);});},{'priority':_0x249355(0x1e9)}),this[_0x249355(0x1a1)](_0x4d6ab3,_0x249355(0x1b2),()=>{const _0x2f42e5=_0x249355;this[_0x2f42e5(0x1a2)]=[],this[_0x2f42e5(0x18a)][_0x2f42e5(0x192)](),this[_0x2f42e5(0x1ce)][_0x2f42e5(0x192)](),this[_0x2f42e5(0x195)][_0x2f42e5(0x192)]();},{'priority':_0x249355(0x197)});}[_0x4d7ea6(0x1e3)](){const _0x2a0e00=_0x4d7ea6;return this[_0x2a0e00(0x1a0)];}[_0x4d7ea6(0x1a8)](_0x41162c){const _0x189a13=_0x4d7ea6;return this[_0x189a13(0x1a2)][_0x189a13(0x1ee)](_0x450e57=>_0x450e57['id']===_0x41162c)||null;}[_0x4d7ea6(0x1bb)](){const _0x408adb=_0x4d7ea6;return Array[_0x408adb(0x19e)](this[_0x408adb(0x1a2)]);}[_0x4d7ea6(0x1c0)](){const _0x2feff4=_0x4d7ea6;return this[_0x2feff4(0x18d)];}[_0x4d7ea6(0x1ed)](_0x3f5fc7){const _0x22192c=_0x4d7ea6;this[_0x22192c(0x18d)]=_0x3f5fc7;}[_0x4d7ea6(0x1c8)](_0x7e0a4f,_0xa97343=0x0){const _0x15b772=_0x4d7ea6;let _0x1888a9=!0x1;for(let _0x18deed=_0xa97343;_0x18deed<this[_0x15b772(0x1a2)][_0x15b772(0x1b3)];_0x18deed++)this[_0x15b772(0x19b)](_0x7e0a4f,_0x18deed)&&(_0x1888a9=!0x0);return _0x1888a9;}[_0x4d7ea6(0x1e8)](_0x565512,_0x2950f9){const _0x351bb5=_0x4d7ea6,_0x20374b=_0x565512[_0x351bb5(0x1d2)](_0x351bb5(0x1e0),{});return _0x565512[_0x351bb5(0x1c4)](_0x20374b,_0x2950f9),this[_0x351bb5(0x1a0)]=_0x20374b,_0x20374b;}[_0x4d7ea6(0x1b0)](_0xe67ce1){const _0xcac977=_0x4d7ea6;if(!this[_0xcac977(0x1a2)][_0xcac977(0x1b3)]||this[_0xcac977(0x1a0)])return;const _0xe36883=this[_0xcac977(0x1a2)][0x0][_0xcac977(0x1b8)][_0xcac977(0x19d)],_0x4ad70c=this[_0xcac977(0x1e8)](_0xe67ce1,_0xe36883);for(const _0x180ba5 of this[_0xcac977(0x1a2)])_0x180ba5[_0xcac977(0x1d9)][_0xcac977(0x1b4)]||_0xe67ce1[_0xcac977(0x1ad)](_0x180ba5[_0xcac977(0x1d9)],_0x4ad70c,_0xcac977(0x1b7));this[_0xcac977(0x1c8)](_0xe67ce1);}[_0x4d7ea6(0x1ea)](_0x59ae6f,_0x3f9f13){const _0xd74faf=_0x4d7ea6;let _0xa3acce=!0x1;const {inserted:_0x37eb38,removed:_0x4aaca7,moved:_0x2ff8d1}=this[_0xd74faf(0x18a)][_0xd74faf(0x1be)](_0x3f9f13);if(_0x2ff8d1[_0xd74faf(0x1b3)]&&(this[_0xd74faf(0x1a0)]=_0x2ff8d1[0x0]),_0x37eb38[_0xd74faf(0x1b3)]){if(_0x37eb38[_0xd74faf(0x1b3)]>0x1||this[_0xd74faf(0x1a0)]&&_0x37eb38[_0xd74faf(0x18e)](_0x1cf38c=>_0x1cf38c!==this[_0xd74faf(0x1a0)])){const _0x393677=_0x59ae6f[_0xd74faf(0x1d2)](_0xd74faf(0x1e0),{}),_0x1f6252=[];this[_0xd74faf(0x1a0)]&&_0x1f6252[_0xd74faf(0x1af)](this[_0xd74faf(0x1a0)]),_0x1f6252[_0xd74faf(0x1af)](..._0x37eb38),_0x59ae6f[_0xd74faf(0x1ad)](_0x393677,_0x1f6252[0x0],_0xd74faf(0x1c7));for(const _0x1f20b8 of _0x1f6252)_0x59ae6f[_0xd74faf(0x1eb)](_0x59ae6f[_0xd74faf(0x1bd)](_0x1f20b8),_0x59ae6f[_0xd74faf(0x1db)](_0x393677,_0xd74faf(0x1b7))),_0x59ae6f[_0xd74faf(0x1d1)](_0x1f20b8);this[_0xd74faf(0x1a0)]=_0x393677,this[_0xd74faf(0x1c8)](_0x59ae6f),_0xa3acce=!0x0;}else this[_0xd74faf(0x1a0)]=_0x37eb38[0x0];}if(_0x4aaca7[_0xd74faf(0x1b3)]&&_0xd74faf(0x19c)===this[_0xd74faf(0x1a0)]?.[_0xd74faf(0x19d)][_0xd74faf(0x1e1)]){for(const _0x285a72 of this[_0xd74faf(0x1a2)])_0x59ae6f[_0xd74faf(0x1d1)](_0x285a72[_0xd74faf(0x1b8)]),_0xa3acce=!0x0;this[_0xd74faf(0x1a2)]=[],this[_0xd74faf(0x1a0)]=null;}return _0xa3acce;}[_0x4d7ea6(0x1dd)](_0x2988ba,_0xc22fff){const _0x401db8=_0x4d7ea6;let _0xbd5d9e=!0x1;const _0x4e13f1=this[_0x401db8(0x1d7)][_0x401db8(0x1c6)][_0x401db8(0x1c9)](_0x401db8(0x18b)),{inserted:_0x3b77cd,moved:_0x16bf0d}=this[_0x401db8(0x195)][_0x401db8(0x1be)](_0xc22fff);for(const _0x1e43bb of[..._0x16bf0d,..._0x3b77cd]){const _0x525901=_0x1e43bb[_0x401db8(0x1cc)](_0x401db8(0x1d4)),_0xb0e341=this[_0x401db8(0x1a8)](_0x525901);_0xb0e341&&(_0xb0e341[_0x401db8(0x1d9)]=_0x1e43bb),_(_0x2988ba,_0x4e13f1,_0x1e43bb)&&(_0xbd5d9e=!0x0);}return _0xbd5d9e;}[_0x4d7ea6(0x1a3)](_0x17b5f3,_0x1daaca){const _0x4abe33=_0x4d7ea6;let _0x5e79bd=!0x1;const {removed:_0x43f54f,inserted:_0x14d8fb,moved:_0x9fde46}=this[_0x4abe33(0x1ce)][_0x4abe33(0x1be)](_0x1daaca);for(const _0x464ce9 of _0x43f54f)this[_0x4abe33(0x1b9)](_0x17b5f3,_0x464ce9)&&(_0x5e79bd=!0x0);for(const _0x13147c of _0x14d8fb)this[_0x4abe33(0x1a6)](_0x17b5f3,_0x13147c)&&(_0x5e79bd=!0x0);for(const _0x25e8c8 of _0x9fde46)this[_0x4abe33(0x1cd)](_0x17b5f3,_0x25e8c8)&&(_0x5e79bd=!0x0);return _0x5e79bd;}[_0x4d7ea6(0x1c3)](_0x3cd964){const _0x15736a=_0x4d7ea6;if(!this[_0x15736a(0x1a0)])return!0x1;let _0x4fa169=!0x1;if(this[_0x15736a(0x1a0)][_0x15736a(0x1e4)]!==this[_0x15736a(0x1a2)][_0x15736a(0x1b3)]){const _0x9e71ef=[];for(const _0x238b7d of this[_0x15736a(0x1a0)][_0x15736a(0x1cb)]()){const _0x321dd9=_0x238b7d[_0x15736a(0x1cc)](_0x15736a(0x1d4));this[_0x15736a(0x1a8)](_0x321dd9)||(_0x9e71ef[_0x15736a(0x1ca)](_0x238b7d),_0x4fa169=!0x0);}for(const _0x3fbc6a of _0x9e71ef)_0x3cd964[_0x15736a(0x1d1)](_0x3fbc6a);}const _0x2c872f=new Set(),_0x3f9bb7=[];for(const _0x17cead of this[_0x15736a(0x1a0)][_0x15736a(0x1cb)]()){const _0x4c338b=_0x17cead[_0x15736a(0x1cc)](_0x15736a(0x1d4));_0x2c872f[_0x15736a(0x194)](_0x4c338b)?(_0x3f9bb7[_0x15736a(0x1ca)](_0x17cead),_0x4fa169=!0x0):_0x2c872f[_0x15736a(0x1c2)](_0x4c338b);}for(const _0x281237 of _0x3f9bb7)_0x3cd964[_0x15736a(0x1d1)](_0x281237);return this[_0x15736a(0x1a0)][_0x15736a(0x1e4)]||(_0x3cd964[_0x15736a(0x1d1)](this[_0x15736a(0x1a0)]),this[_0x15736a(0x1a0)]=null,_0x4fa169=!0x0),_0x4fa169;}[_0x4d7ea6(0x1a6)](_0x767729,_0x3babac){const _0x465201=_0x4d7ea6;if(this[_0x465201(0x1a2)][_0x465201(0x1ee)](_0x38753b=>_0x38753b[_0x465201(0x1b8)]===_0x3babac))return!0x1;let _0x5776f8=!0x1;const _0x34fe61=_0x3babac[_0x465201(0x1cc)](_0x465201(0x1d4)),_0x3a6638=this[_0x465201(0x1a2)][_0x465201(0x199)](_0x52c1cb=>_0x52c1cb['id']===_0x34fe61);-0x1!==_0x3a6638&&(_0x767729[_0x465201(0x1d1)](this[_0x465201(0x1a2)][_0x3a6638][_0x465201(0x1b8)]),this[_0x465201(0x1a2)][_0x465201(0x1ac)](_0x3a6638,0x1),_0x5776f8=!0x0);let _0x1a8440=this[_0x465201(0x1a0)]?function(_0x3fdf88,_0x370c5e){const _0x40a6dc=_0x465201;for(const _0x2c265f of _0x3fdf88[_0x40a6dc(0x1cb)]())if(_0x2c265f[_0x40a6dc(0x1cc)](_0x40a6dc(0x1d4))===_0x370c5e)return _0x2c265f;return null;}(this[_0x465201(0x1a0)],_0x34fe61):null;_0x1a8440||(_0x1a8440=_0x767729[_0x465201(0x1d2)](_0x465201(0x1c1),{'footnoteId':_0x34fe61}),this[_0x465201(0x1a0)]&&(_0x767729[_0x465201(0x1ad)](_0x1a8440,this[_0x465201(0x1a0)],_0x465201(0x1b7)),_0x5776f8=!0x0));const _0x420dab={'id':_0x34fe61,'reference':_0x3babac,'definition':_0x1a8440},_0x1dddab=I(this[_0x465201(0x1d7)][_0x465201(0x1ec)],this[_0x465201(0x1a2)],_0x3babac);this[_0x465201(0x1a2)][_0x465201(0x1ac)](_0x1dddab,0x0,_0x420dab);let _0x4a85c1=_0x1dddab;return-0x1!==_0x3a6638&&(_0x4a85c1=Math[_0x465201(0x1aa)](_0x1dddab,_0x3a6638)),this[_0x465201(0x1c8)](_0x767729,_0x4a85c1)&&(_0x5776f8=!0x0),_0x5776f8;}[_0x4d7ea6(0x1b9)](_0x149288,_0x38c9b1){const _0x1c2102=_0x4d7ea6,_0x5738ae=this[_0x1c2102(0x1a2)][_0x1c2102(0x199)](_0x4e2d62=>_0x4e2d62['id']===_0x38c9b1);if(-0x1===_0x5738ae)return!0x1;let _0x4aebfe=!0x1;const _0x259fdb=this[_0x1c2102(0x1a2)][_0x5738ae];return _0x1c2102(0x19c)!==_0x259fdb[_0x1c2102(0x1d9)][_0x1c2102(0x19d)][_0x1c2102(0x1e1)]&&(_0x149288[_0x1c2102(0x1d1)](_0x259fdb[_0x1c2102(0x1d9)]),_0x4aebfe=!0x0),this[_0x1c2102(0x1a2)][_0x1c2102(0x1ac)](_0x5738ae,0x1),this[_0x1c2102(0x1c8)](_0x149288,_0x5738ae)&&(_0x4aebfe=!0x0),_0x4aebfe;}[_0x4d7ea6(0x1cd)](_0xee92c9,_0x527ec4){const _0x10b28c=_0x4d7ea6,_0x192b4e=_0x527ec4[_0x10b28c(0x1cc)](_0x10b28c(0x1d4)),_0x53180b=this[_0x10b28c(0x1a2)][_0x10b28c(0x199)](_0x3fb016=>_0x3fb016['id']===_0x192b4e),_0x50c68e=this[_0x10b28c(0x1a2)][_0x53180b];let _0x3d6a58=!0x1;_0x50c68e[_0x10b28c(0x1b8)]=_0x527ec4,this[_0x10b28c(0x1a2)][_0x10b28c(0x1ac)](_0x53180b,0x1);const _0x561eb1=I(this[_0x10b28c(0x1d7)][_0x10b28c(0x1ec)],this[_0x10b28c(0x1a2)],_0x527ec4);return this[_0x10b28c(0x1a2)][_0x10b28c(0x1ac)](_0x561eb1,0x0,_0x50c68e),this[_0x10b28c(0x1c8)](_0xee92c9,Math[_0x10b28c(0x1aa)](_0x53180b,_0x561eb1))&&(_0x3d6a58=!0x0),_0x3d6a58;}[_0x4d7ea6(0x19b)](_0x5ccbb7,_0x2269ea){const _0xfc086b=_0x4d7ea6;if(!this[_0xfc086b(0x1a0)])return!0x1;const _0x56ee86=this[_0xfc086b(0x1a2)][_0x2269ea];let _0x426215;return _0x426215=this[_0xfc086b(0x18d)]?this[_0xfc086b(0x18d)]({'footnote':_0x56ee86,'container':this[_0xfc086b(0x1a0)],'digits':String(this[_0xfc086b(0x1a2)][_0xfc086b(0x1b3)])[_0xfc086b(0x1b3)],'value':_0x2269ea+0x1}):String(_0x2269ea+0x1),_0x56ee86[_0xfc086b(0x1b8)][_0xfc086b(0x1cc)](_0xfc086b(0x1e6))!=_0x426215&&(_0x5ccbb7[_0xfc086b(0x1b1)](_0xfc086b(0x1e6),_0x426215,_0x56ee86[_0xfc086b(0x1b8)]),!0x0);}[_0x4d7ea6(0x1a4)](_0x34d586){const _0x20aebd=_0x4d7ea6;if(!this[_0x20aebd(0x1a0)]||this[_0x20aebd(0x1a2)][_0x20aebd(0x1b3)]<0x2)return!0x1;if(function(_0xa912,_0x6d3c0){const _0x513825=_0x20aebd;if(_0xa912[_0x513825(0x1b3)]!==_0x6d3c0[_0x513825(0x1b3)])return!0x1;for(let _0x47dd89=0x0;_0x47dd89<_0xa912[_0x513825(0x1b3)];_0x47dd89++)if(_0xa912[_0x47dd89]!==_0x6d3c0[_0x47dd89])return!0x1;return!0x0;}(this[_0x20aebd(0x1a2)][_0x20aebd(0x1d5)](_0x5bd5fc=>_0x5bd5fc['id']),Array[_0x20aebd(0x19e)](this[_0x20aebd(0x1a0)][_0x20aebd(0x1cb)]())[_0x20aebd(0x1d5)](_0x29743f=>_0x29743f[_0x20aebd(0x1cc)](_0x20aebd(0x1d4)))))return!0x1;let _0x1bcc26=!0x1;for(let _0x27c06e=0x0;_0x27c06e<this[_0x20aebd(0x1a2)][_0x20aebd(0x1b3)];_0x27c06e++){const _0x285b31=this[_0x20aebd(0x1a2)][_0x27c06e],_0x389e46=_0x34d586[_0x20aebd(0x191)](_0x285b31[_0x20aebd(0x1d9)]),_0x5e000c=_0x34d586[_0x20aebd(0x1db)](this[_0x20aebd(0x1a0)],_0x27c06e);_0x389e46[_0x20aebd(0x1e5)](_0x5e000c)||(_0x34d586[_0x20aebd(0x1eb)](_0x34d586[_0x20aebd(0x1ab)](_0x285b31[_0x20aebd(0x1d9)]),_0x5e000c),_0x1bcc26=!0x0);}return _0x1bcc26;}[_0x4d7ea6(0x1a5)](_0x15863e){const _0x1b30e6=_0x4d7ea6;if(!this[_0x1b30e6(0x1a2)][_0x1b30e6(0x1b3)])return!0x1;const {model:_0x59b5be}=this[_0x1b30e6(0x1d7)];let _0x1adf1c=!0x1;for(let _0x117d0b=0x0;_0x117d0b<this[_0x1b30e6(0x1a2)][_0x1b30e6(0x1b3)]-0x1;_0x117d0b++){const _0x3fa63c=this[_0x1b30e6(0x1a2)][_0x117d0b],_0x45b969=this[_0x1b30e6(0x1a2)][_0x117d0b+0x1],_0x1decb7=_0x59b5be[_0x1b30e6(0x191)](_0x3fa63c[_0x1b30e6(0x1b8)]),_0x53c858=_0x59b5be[_0x1b30e6(0x191)](_0x45b969[_0x1b30e6(0x1b8)]);_0x1b30e6(0x1dc)===_0x1decb7[_0x1b30e6(0x19f)](_0x53c858)&&(this[_0x1b30e6(0x1cd)](_0x15863e,_0x3fa63c[_0x1b30e6(0x1b8)]),_0x117d0b=-0x1,_0x1adf1c=!0x0);}return _0x1adf1c;}}function _(_0x160b2b,_0x17d425,_0x4572a4){const _0x3d51a2=_0x4d7ea6;if(_0x4572a4[_0x3d51a2(0x1e4)])return!0x1;const _0x1e099f=_0x17d425?_0x3d51a2(0x1d6):_0x3d51a2(0x1ae);return _0x160b2b[_0x3d51a2(0x1ad)](_0x160b2b[_0x3d51a2(0x1d2)](_0x1e099f),_0x4572a4),!0x0;}function _0x21fb(_0x917178,_0x6964c6){const _0x1e1451=_0x1e14();return _0x21fb=function(_0x21fb6d,_0x65d08c){_0x21fb6d=_0x21fb6d-0x18a;let _0x4e544e=_0x1e1451[_0x21fb6d];return _0x4e544e;},_0x21fb(_0x917178,_0x6964c6);}function I(_0x1b844d,_0x3a7815,_0x46576c){const _0x52fce8=_0x4d7ea6;if(0x0===_0x3a7815[_0x52fce8(0x1b3)])return 0x0;const _0x3b6fcf=_0x1b844d[_0x52fce8(0x191)](_0x46576c);for(let _0x232c3f=0x0;_0x232c3f<_0x3a7815[_0x52fce8(0x1b3)];_0x232c3f++){const _0x4c7bae=_0x3a7815[_0x232c3f],_0x8e487a=_0x1b844d[_0x52fce8(0x191)](_0x4c7bae[_0x52fce8(0x1b8)]);if(_0x52fce8(0x1c7)===_0x3b6fcf[_0x52fce8(0x19f)](_0x8e487a))return _0x232c3f;}const _0x1f5ebd=_0x46576c[_0x52fce8(0x19d)];let _0x391803=-0x1;for(let _0x5e3267=_0x3a7815[_0x52fce8(0x1b3)]-0x1;_0x5e3267>=0x0;_0x5e3267--)if(_0x3a7815[_0x5e3267][_0x52fce8(0x1b8)][_0x52fce8(0x19d)]===_0x1f5ebd){_0x391803=_0x5e3267;break;}if(-0x1!==_0x391803)return _0x391803+0x1;const _0x4e9612=_0x1b844d[_0x52fce8(0x1e2)][_0x52fce8(0x18c)](),_0x3ab6b4=_0x4e9612[_0x52fce8(0x1bf)](_0x1f5ebd[_0x52fce8(0x1e1)]),_0x46dd3d=_0x4e9612[_0x3ab6b4+0x1];if(_0x46dd3d){for(let _0x4e2edb=0x0;_0x4e2edb<_0x3a7815[_0x52fce8(0x1b3)];_0x4e2edb++)if(_0x3a7815[_0x4e2edb][_0x52fce8(0x1b8)][_0x52fce8(0x19d)][_0x52fce8(0x1e1)]===_0x46dd3d)return _0x4e2edb;}return _0x3a7815[_0x52fce8(0x1b3)];}
|
|
23
|
+
function _0x190e(){const _0xc2af26=['_insertEmptyFootnotesDefinitionsContainer','getChanges','pluginName','footnotes.multiBlock','_handleFootnotesDefinitionsObjectChanges','remove','get','find','singleton','setFootnoteFormatter','push','876372mSBilO','497XXroyo','footnoteId','isOfficialPlugin','886929eHYiRP','690wSsjRh','_handleMovedFootnoteReference','editor','childCount','getFootnotesDefinitionsObjectElement','low','definition','model','add','_handleFootnoteReferencesChanges','createRangeIn','high','footnoteDefinition','splice','isEqual','createPositionBefore','_handleFootnoteDefinitionsChanges','before','listenTo','rootName','indexOf','getFootnotesFormatter','845684LXqRYp','parent','_footnoteDefsTracker','55448mdYrRE','footnotesDefinitions','config','min','_footnoteDefsContainerTracker','enqueueChange','footnoteCounter','FootnotesTracker','$graveyard','_handleFootnotesDefinitionsObjectSync','reset','findIndex','createRangeOn','isPremiumPlugin','getChildren','36AlNnex','root','footnoteRef','_updateFootnoteRefCounter','_footnoteRefsTracker','map','length','getFootnote','move','compareWith','7435RUfwaT','some','1026990XyMmVN','append','createPositionAt','from','_handleRemoveFootnoteReferenceById','has','_ensureFootnotesDefinitionsContainerExists','footnoteInlineContent','registerPostFixer','setAttribute','_footnoteFormatter','getAttribute','_updateFootnotesCounters','501354FxNlTK','end','set','document','after','_footnotes','differ','paragraph','_handleInsertedFootnoteReference','insert','_ensureFootnotesReferencesHaveProperOrder','getRootNames','_sortFootnoteDefinitions','getFootnotes','reference','_footnotesDefinitions','createElement','change:data','init','unshift'];_0x190e=function(){return _0xc2af26;};return _0x190e();}const _0x210f56=_0x1bb0;(function(_0x1fd02d,_0x5a2806){const _0x3ebe75=_0x1bb0,_0x9eb22d=_0x1fd02d();while(!![]){try{const _0x3d4e94=parseInt(_0x3ebe75(0x1cc))/0x1+-parseInt(_0x3ebe75(0x186))/0x2+parseInt(_0x3ebe75(0x18a))/0x3+parseInt(_0x3ebe75(0x1a1))/0x4+-parseInt(_0x3ebe75(0x1bd))/0x5*(parseInt(_0x3ebe75(0x18b))/0x6)+parseInt(_0x3ebe75(0x187))/0x7*(-parseInt(_0x3ebe75(0x1a4))/0x8)+parseInt(_0x3ebe75(0x1b3))/0x9*(parseInt(_0x3ebe75(0x1bf))/0xa);if(_0x3d4e94===_0x5a2806)break;else _0x9eb22d['push'](_0x9eb22d['shift']());}catch(_0x5dae2a){_0x9eb22d['push'](_0x9eb22d['shift']());}}}(_0x190e,0x4d9e2));import{Plugin as _0x2c7c05}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x576a2c}from'./modelelementtracker.js';export class FootnotesTracker extends _0x2c7c05{[_0x210f56(0x1d1)]=[];[_0x210f56(0x176)]=null;[_0x210f56(0x1c9)]=null;[_0x210f56(0x1a8)];[_0x210f56(0x1b7)];[_0x210f56(0x1a3)];static get[_0x210f56(0x17d)](){const _0x7519c2=_0x210f56;return _0x7519c2(0x1ab);}static get[_0x210f56(0x189)](){return!0x0;}static get[_0x210f56(0x1b1)](){return!0x0;}constructor(_0x4b7acd){const _0x393ab2=_0x210f56;super(_0x4b7acd),this[_0x393ab2(0x1a8)]=new _0x576a2c(this[_0x393ab2(0x18d)][_0x393ab2(0x192)],{'elementName':_0x393ab2(0x1a5),'getElementKey':()=>_0x393ab2(0x183)}),this[_0x393ab2(0x1b7)]=new _0x576a2c(this[_0x393ab2(0x18d)][_0x393ab2(0x192)],{'elementName':_0x393ab2(0x1b5),'getElementKey':_0xe530cc=>_0xe530cc[_0x393ab2(0x1ca)](_0x393ab2(0x188))}),this[_0x393ab2(0x1a3)]=new _0x576a2c(this[_0x393ab2(0x18d)][_0x393ab2(0x192)],{'elementName':_0x393ab2(0x197),'getElementKey':_0x40ca3b=>_0x40ca3b[_0x393ab2(0x1ca)](_0x393ab2(0x188))});}[_0x210f56(0x179)](){const _0x3c312d=_0x210f56,{editor:_0x4b4836}=this,{model:_0x1ab1d6,data:_0x34b926}=_0x4b4836;_0x1ab1d6[_0x3c312d(0x1cf)][_0x3c312d(0x1c7)](_0x1036e1=>{const _0x5b769c=_0x3c312d,_0x1677ec=_0x1ab1d6[_0x5b769c(0x1cf)][_0x5b769c(0x1d2)][_0x5b769c(0x17c)]();let _0x8b583c=!0x1;return this[_0x5b769c(0x17f)](_0x1036e1,_0x1677ec)&&(_0x8b583c=!0x0),this[_0x5b769c(0x19b)](_0x1036e1,_0x1677ec)&&(_0x8b583c=!0x0),this[_0x5b769c(0x194)](_0x1036e1,_0x1677ec)&&(_0x8b583c=!0x0),this[_0x5b769c(0x1d6)](_0x1036e1)&&(_0x8b583c=!0x0),this[_0x5b769c(0x1ad)](_0x1036e1)&&(_0x8b583c=!0x0),this[_0x5b769c(0x173)](_0x1036e1)&&(_0x8b583c=!0x0),_0x8b583c;}),this[_0x3c312d(0x19d)](_0x1ab1d6[_0x3c312d(0x1cf)],_0x3c312d(0x178),()=>{const _0x3bc1c3=_0x3c312d;_0x1ab1d6[_0x3bc1c3(0x1a9)]({'isUndoable':!0x1},_0x54538e=>{const _0x138872=_0x3bc1c3;this[_0x138872(0x1c5)](_0x54538e);});},{'priority':_0x3c312d(0x190)}),this[_0x3c312d(0x19d)](_0x34b926,_0x3c312d(0x1ce),()=>{const _0x51e6b4=_0x3c312d;this[_0x51e6b4(0x1d1)]=[],this[_0x51e6b4(0x1a8)][_0x51e6b4(0x1ae)](),this[_0x51e6b4(0x1b7)][_0x51e6b4(0x1ae)](),this[_0x51e6b4(0x1a3)][_0x51e6b4(0x1ae)]();},{'priority':_0x3c312d(0x196)});}[_0x210f56(0x18f)](){const _0x2ed376=_0x210f56;return this[_0x2ed376(0x176)];}[_0x210f56(0x1ba)](_0x3d1d2b){const _0x59d492=_0x210f56;return this[_0x59d492(0x1d1)][_0x59d492(0x182)](_0x11224f=>_0x11224f['id']===_0x3d1d2b)||null;}[_0x210f56(0x174)](){const _0x443683=_0x210f56;return Array[_0x443683(0x1c2)](this[_0x443683(0x1d1)]);}[_0x210f56(0x1a0)](){const _0x501a38=_0x210f56;return this[_0x501a38(0x1c9)];}[_0x210f56(0x184)](_0x55b819){const _0x922099=_0x210f56;this[_0x922099(0x1c9)]=_0x55b819;}[_0x210f56(0x1cb)](_0x589716,_0x27d766=0x0){const _0x4b6c1d=_0x210f56;let _0x44cb81=!0x1;for(let _0x2b7531=_0x27d766;_0x2b7531<this[_0x4b6c1d(0x1d1)][_0x4b6c1d(0x1b9)];_0x2b7531++)this[_0x4b6c1d(0x1b6)](_0x589716,_0x2b7531)&&(_0x44cb81=!0x0);return _0x44cb81;}[_0x210f56(0x17b)](_0x30872e,_0x2c4461){const _0x5d0408=_0x210f56,_0x20b9c9=_0x30872e[_0x5d0408(0x177)](_0x5d0408(0x1a5),{});return _0x30872e[_0x5d0408(0x1c0)](_0x20b9c9,_0x2c4461),this[_0x5d0408(0x176)]=_0x20b9c9,_0x20b9c9;}[_0x210f56(0x1c5)](_0x296f5e){const _0x4058a1=_0x210f56;if(!this[_0x4058a1(0x1d1)][_0x4058a1(0x1b9)]||this[_0x4058a1(0x176)])return;const _0x42232f=this[_0x4058a1(0x1d1)][0x0][_0x4058a1(0x175)][_0x4058a1(0x1b4)],_0x2d6e9d=this[_0x4058a1(0x17b)](_0x296f5e,_0x42232f);for(const _0x4cbcaa of this[_0x4058a1(0x1d1)])_0x4cbcaa[_0x4058a1(0x191)][_0x4058a1(0x1a2)]||_0x296f5e[_0x4058a1(0x1d5)](_0x4cbcaa[_0x4058a1(0x191)],_0x2d6e9d,_0x4058a1(0x1cd));this[_0x4058a1(0x1cb)](_0x296f5e);}[_0x210f56(0x17f)](_0x1f9703,_0x110e84){const _0x392c55=_0x210f56;let _0x2ea263=!0x1;const {inserted:_0xa10457,removed:_0xc11c84,moved:_0x2edaa5}=this[_0x392c55(0x1a8)][_0x392c55(0x17c)](_0x110e84);if(_0x2edaa5[_0x392c55(0x1b9)]&&(this[_0x392c55(0x176)]=_0x2edaa5[0x0]),_0xa10457[_0x392c55(0x1b9)]){if(_0xa10457[_0x392c55(0x1b9)]>0x1||this[_0x392c55(0x176)]&&_0xa10457[_0x392c55(0x1be)](_0x44957f=>_0x44957f!==this[_0x392c55(0x176)])){const _0x151f54=_0x1f9703[_0x392c55(0x177)](_0x392c55(0x1a5),{}),_0x4da0e9=[];this[_0x392c55(0x176)]&&_0x4da0e9[_0x392c55(0x185)](this[_0x392c55(0x176)]),_0x4da0e9[_0x392c55(0x185)](..._0xa10457),_0x1f9703[_0x392c55(0x1d5)](_0x151f54,_0x4da0e9[0x0],_0x392c55(0x19c));for(const _0x438d17 of _0x4da0e9)_0x1f9703[_0x392c55(0x1bb)](_0x1f9703[_0x392c55(0x195)](_0x438d17),_0x1f9703[_0x392c55(0x1c1)](_0x151f54,_0x392c55(0x1cd))),_0x1f9703[_0x392c55(0x180)](_0x438d17);this[_0x392c55(0x176)]=_0x151f54,this[_0x392c55(0x1cb)](_0x1f9703),_0x2ea263=!0x0;}else this[_0x392c55(0x176)]=_0xa10457[0x0];}if(_0xc11c84[_0x392c55(0x1b9)]&&_0x392c55(0x1ac)===this[_0x392c55(0x176)]?.[_0x392c55(0x1b4)][_0x392c55(0x19e)]){for(const _0x5147d4 of this[_0x392c55(0x1d1)])_0x1f9703[_0x392c55(0x180)](_0x5147d4[_0x392c55(0x175)]),_0x2ea263=!0x0;this[_0x392c55(0x1d1)]=[],this[_0x392c55(0x176)]=null;}return _0x2ea263;}[_0x210f56(0x19b)](_0x528776,_0x377b40){const _0x4a8adf=_0x210f56;let _0x20621e=!0x1;const _0x3bc097=this[_0x4a8adf(0x18d)][_0x4a8adf(0x1a6)][_0x4a8adf(0x181)](_0x4a8adf(0x17e)),{inserted:_0x2674d3,moved:_0x160f98}=this[_0x4a8adf(0x1a3)][_0x4a8adf(0x17c)](_0x377b40);for(const _0x46b167 of[..._0x160f98,..._0x2674d3]){const _0x23bc8a=_0x46b167[_0x4a8adf(0x1ca)](_0x4a8adf(0x188)),_0x29c4df=this[_0x4a8adf(0x1ba)](_0x23bc8a);_0x29c4df&&(_0x29c4df[_0x4a8adf(0x191)]=_0x46b167),_(_0x528776,_0x3bc097,_0x46b167)&&(_0x20621e=!0x0);}return _0x20621e;}[_0x210f56(0x194)](_0x24e7af,_0x4755d5){const _0x15d78e=_0x210f56;let _0x23d115=!0x1;const {removed:_0x1d1c83,inserted:_0x4ec3d1,moved:_0x12c67f}=this[_0x15d78e(0x1b7)][_0x15d78e(0x17c)](_0x4755d5);for(const _0x342518 of _0x1d1c83)this[_0x15d78e(0x1c3)](_0x24e7af,_0x342518)&&(_0x23d115=!0x0);for(const _0x2ebb15 of _0x4ec3d1)this[_0x15d78e(0x1d4)](_0x24e7af,_0x2ebb15)&&(_0x23d115=!0x0);for(const _0x49d65d of _0x12c67f)this[_0x15d78e(0x18c)](_0x24e7af,_0x49d65d)&&(_0x23d115=!0x0);return _0x23d115;}[_0x210f56(0x1ad)](_0x5ae991){const _0x25d615=_0x210f56;if(!this[_0x25d615(0x176)])return!0x1;let _0x3a6d70=!0x1;if(this[_0x25d615(0x176)][_0x25d615(0x18e)]!==this[_0x25d615(0x1d1)][_0x25d615(0x1b9)]){const _0x4b809e=[];for(const _0x49c9b5 of this[_0x25d615(0x176)][_0x25d615(0x1b2)]()){const _0x3e3d68=_0x49c9b5[_0x25d615(0x1ca)](_0x25d615(0x188));this[_0x25d615(0x1ba)](_0x3e3d68)||(_0x4b809e[_0x25d615(0x17a)](_0x49c9b5),_0x3a6d70=!0x0);}for(const _0x2994a3 of _0x4b809e)_0x5ae991[_0x25d615(0x180)](_0x2994a3);}const _0x3744d6=new Set(),_0x2af137=[];for(const _0xa3848b of this[_0x25d615(0x176)][_0x25d615(0x1b2)]()){const _0x5deaf3=_0xa3848b[_0x25d615(0x1ca)](_0x25d615(0x188));_0x3744d6[_0x25d615(0x1c4)](_0x5deaf3)?(_0x2af137[_0x25d615(0x17a)](_0xa3848b),_0x3a6d70=!0x0):_0x3744d6[_0x25d615(0x193)](_0x5deaf3);}for(const _0x2e5451 of _0x2af137)_0x5ae991[_0x25d615(0x180)](_0x2e5451);return this[_0x25d615(0x176)][_0x25d615(0x18e)]||(_0x5ae991[_0x25d615(0x180)](this[_0x25d615(0x176)]),this[_0x25d615(0x176)]=null,_0x3a6d70=!0x0),_0x3a6d70;}[_0x210f56(0x1d4)](_0x5dd9f6,_0x57dd05){const _0x106098=_0x210f56;if(this[_0x106098(0x1d1)][_0x106098(0x182)](_0x5bb4c3=>_0x5bb4c3[_0x106098(0x175)]===_0x57dd05))return!0x1;let _0x536ed4=!0x1;const _0x2fd0c4=_0x57dd05[_0x106098(0x1ca)](_0x106098(0x188)),_0x85b630=this[_0x106098(0x1d1)][_0x106098(0x1af)](_0x2121bc=>_0x2121bc['id']===_0x2fd0c4);-0x1!==_0x85b630&&(_0x5dd9f6[_0x106098(0x180)](this[_0x106098(0x1d1)][_0x85b630][_0x106098(0x175)]),this[_0x106098(0x1d1)][_0x106098(0x198)](_0x85b630,0x1),_0x536ed4=!0x0);let _0x1e0d2b=this[_0x106098(0x176)]?function(_0x5453f6,_0x552c08){const _0x53b9f1=_0x106098;for(const _0x5a8820 of _0x5453f6[_0x53b9f1(0x1b2)]())if(_0x5a8820[_0x53b9f1(0x1ca)](_0x53b9f1(0x188))===_0x552c08)return _0x5a8820;return null;}(this[_0x106098(0x176)],_0x2fd0c4):null;_0x1e0d2b||(_0x1e0d2b=_0x5dd9f6[_0x106098(0x177)](_0x106098(0x197),{'footnoteId':_0x2fd0c4}),this[_0x106098(0x176)]&&(_0x5dd9f6[_0x106098(0x1d5)](_0x1e0d2b,this[_0x106098(0x176)],_0x106098(0x1cd)),_0x536ed4=!0x0));const _0x21b678={'id':_0x2fd0c4,'reference':_0x57dd05,'definition':_0x1e0d2b},_0x5bc19f=I(this[_0x106098(0x18d)][_0x106098(0x192)],this[_0x106098(0x1d1)],_0x57dd05);this[_0x106098(0x1d1)][_0x106098(0x198)](_0x5bc19f,0x0,_0x21b678);let _0x57199b=_0x5bc19f;return-0x1!==_0x85b630&&(_0x57199b=Math[_0x106098(0x1a7)](_0x5bc19f,_0x85b630)),this[_0x106098(0x1cb)](_0x5dd9f6,_0x57199b)&&(_0x536ed4=!0x0),_0x536ed4;}[_0x210f56(0x1c3)](_0x1a8bdf,_0x59f579){const _0x3aaa5c=_0x210f56,_0x30335b=this[_0x3aaa5c(0x1d1)][_0x3aaa5c(0x1af)](_0x47d02f=>_0x47d02f['id']===_0x59f579);if(-0x1===_0x30335b)return!0x1;let _0xd0ccda=!0x1;const _0x253bd7=this[_0x3aaa5c(0x1d1)][_0x30335b];return _0x3aaa5c(0x1ac)!==_0x253bd7[_0x3aaa5c(0x191)][_0x3aaa5c(0x1b4)][_0x3aaa5c(0x19e)]&&(_0x1a8bdf[_0x3aaa5c(0x180)](_0x253bd7[_0x3aaa5c(0x191)]),_0xd0ccda=!0x0),this[_0x3aaa5c(0x1d1)][_0x3aaa5c(0x198)](_0x30335b,0x1),this[_0x3aaa5c(0x1cb)](_0x1a8bdf,_0x30335b)&&(_0xd0ccda=!0x0),_0xd0ccda;}[_0x210f56(0x18c)](_0x2c393c,_0x5565fc){const _0x2173e4=_0x210f56,_0xb84d0d=_0x5565fc[_0x2173e4(0x1ca)](_0x2173e4(0x188)),_0x355532=this[_0x2173e4(0x1d1)][_0x2173e4(0x1af)](_0x36fb70=>_0x36fb70['id']===_0xb84d0d),_0xf16c55=this[_0x2173e4(0x1d1)][_0x355532];let _0x1aac52=!0x1;_0xf16c55[_0x2173e4(0x175)]=_0x5565fc,this[_0x2173e4(0x1d1)][_0x2173e4(0x198)](_0x355532,0x1);const _0x90972=I(this[_0x2173e4(0x18d)][_0x2173e4(0x192)],this[_0x2173e4(0x1d1)],_0x5565fc);return this[_0x2173e4(0x1d1)][_0x2173e4(0x198)](_0x90972,0x0,_0xf16c55),this[_0x2173e4(0x1cb)](_0x2c393c,Math[_0x2173e4(0x1a7)](_0x355532,_0x90972))&&(_0x1aac52=!0x0),_0x1aac52;}[_0x210f56(0x1b6)](_0x4df7f8,_0x5218c6){const _0x12d610=_0x210f56;if(!this[_0x12d610(0x176)])return!0x1;const _0x5a665c=this[_0x12d610(0x1d1)][_0x5218c6];let _0x79784f;return _0x79784f=this[_0x12d610(0x1c9)]?this[_0x12d610(0x1c9)]({'footnote':_0x5a665c,'container':this[_0x12d610(0x176)],'digits':String(this[_0x12d610(0x1d1)][_0x12d610(0x1b9)])[_0x12d610(0x1b9)],'value':_0x5218c6+0x1}):String(_0x5218c6+0x1),_0x5a665c[_0x12d610(0x175)][_0x12d610(0x1ca)](_0x12d610(0x1aa))!=_0x79784f&&(_0x4df7f8[_0x12d610(0x1c8)](_0x12d610(0x1aa),_0x79784f,_0x5a665c[_0x12d610(0x175)]),!0x0);}[_0x210f56(0x173)](_0x15109d){const _0x1067e4=_0x210f56;if(!this[_0x1067e4(0x176)]||this[_0x1067e4(0x1d1)][_0x1067e4(0x1b9)]<0x2)return!0x1;if(function(_0xd990f4,_0x1ab7ce){const _0x132fec=_0x1067e4;if(_0xd990f4[_0x132fec(0x1b9)]!==_0x1ab7ce[_0x132fec(0x1b9)])return!0x1;for(let _0x37d26c=0x0;_0x37d26c<_0xd990f4[_0x132fec(0x1b9)];_0x37d26c++)if(_0xd990f4[_0x37d26c]!==_0x1ab7ce[_0x37d26c])return!0x1;return!0x0;}(this[_0x1067e4(0x1d1)][_0x1067e4(0x1b8)](_0x56d35a=>_0x56d35a['id']),Array[_0x1067e4(0x1c2)](this[_0x1067e4(0x176)][_0x1067e4(0x1b2)]())[_0x1067e4(0x1b8)](_0x24478b=>_0x24478b[_0x1067e4(0x1ca)](_0x1067e4(0x188)))))return!0x1;let _0x3e7d8c=!0x1;for(let _0x46249f=0x0;_0x46249f<this[_0x1067e4(0x1d1)][_0x1067e4(0x1b9)];_0x46249f++){const _0x8fa06f=this[_0x1067e4(0x1d1)][_0x46249f],_0x455770=_0x15109d[_0x1067e4(0x19a)](_0x8fa06f[_0x1067e4(0x191)]),_0xaf1265=_0x15109d[_0x1067e4(0x1c1)](this[_0x1067e4(0x176)],_0x46249f);_0x455770[_0x1067e4(0x199)](_0xaf1265)||(_0x15109d[_0x1067e4(0x1bb)](_0x15109d[_0x1067e4(0x1b0)](_0x8fa06f[_0x1067e4(0x191)]),_0xaf1265),_0x3e7d8c=!0x0);}return _0x3e7d8c;}[_0x210f56(0x1d6)](_0x510ad3){const _0x2dca7c=_0x210f56;if(!this[_0x2dca7c(0x1d1)][_0x2dca7c(0x1b9)])return!0x1;const {model:_0x539a9f}=this[_0x2dca7c(0x18d)];let _0x1fd6f9=!0x1;for(let _0x2ca24c=0x0;_0x2ca24c<this[_0x2dca7c(0x1d1)][_0x2dca7c(0x1b9)]-0x1;_0x2ca24c++){const _0x2d65a5=this[_0x2dca7c(0x1d1)][_0x2ca24c],_0x358854=this[_0x2dca7c(0x1d1)][_0x2ca24c+0x1],_0x2efc7a=_0x539a9f[_0x2dca7c(0x19a)](_0x2d65a5[_0x2dca7c(0x175)]),_0x195d20=_0x539a9f[_0x2dca7c(0x19a)](_0x358854[_0x2dca7c(0x175)]);_0x2dca7c(0x1d0)===_0x2efc7a[_0x2dca7c(0x1bc)](_0x195d20)&&(this[_0x2dca7c(0x18c)](_0x510ad3,_0x2d65a5[_0x2dca7c(0x175)]),_0x2ca24c=-0x1,_0x1fd6f9=!0x0);}return _0x1fd6f9;}}function _(_0xf2dd44,_0x424955,_0x1fc00b){const _0x526c83=_0x210f56;if(_0x1fc00b[_0x526c83(0x18e)])return!0x1;const _0x448924=_0x424955?_0x526c83(0x1d3):_0x526c83(0x1c6);return _0xf2dd44[_0x526c83(0x1d5)](_0xf2dd44[_0x526c83(0x177)](_0x448924),_0x1fc00b),!0x0;}function _0x1bb0(_0x54e676,_0x1f95be){const _0x190ef7=_0x190e();return _0x1bb0=function(_0x1bb019,_0x80cc29){_0x1bb019=_0x1bb019-0x172;let _0x5c21ea=_0x190ef7[_0x1bb019];return _0x5c21ea;},_0x1bb0(_0x54e676,_0x1f95be);}function I(_0x540aee,_0x47e0e1,_0x37779c){const _0x477518=_0x210f56;if(0x0===_0x47e0e1[_0x477518(0x1b9)])return 0x0;const _0x140ddb=_0x540aee[_0x477518(0x19a)](_0x37779c);for(let _0x4a64f7=0x0;_0x4a64f7<_0x47e0e1[_0x477518(0x1b9)];_0x4a64f7++){const _0x4635e2=_0x47e0e1[_0x4a64f7],_0x4f0d70=_0x540aee[_0x477518(0x19a)](_0x4635e2[_0x477518(0x175)]);if(_0x477518(0x19c)===_0x140ddb[_0x477518(0x1bc)](_0x4f0d70))return _0x4a64f7;}const _0x2810c6=_0x37779c[_0x477518(0x1b4)];let _0x4fa4b3=-0x1;for(let _0x5cc9ec=_0x47e0e1[_0x477518(0x1b9)]-0x1;_0x5cc9ec>=0x0;_0x5cc9ec--)if(_0x47e0e1[_0x5cc9ec][_0x477518(0x175)][_0x477518(0x1b4)]===_0x2810c6){_0x4fa4b3=_0x5cc9ec;break;}if(-0x1!==_0x4fa4b3)return _0x4fa4b3+0x1;const _0x14cc0e=_0x540aee[_0x477518(0x1cf)][_0x477518(0x172)](),_0x1f1e25=_0x14cc0e[_0x477518(0x19f)](_0x2810c6[_0x477518(0x19e)]),_0x273253=_0x14cc0e[_0x1f1e25+0x1];if(_0x273253){for(let _0x80d42f=0x0;_0x80d42f<_0x47e0e1[_0x477518(0x1b9)];_0x80d42f++)if(_0x47e0e1[_0x80d42f][_0x477518(0x175)][_0x477518(0x1b4)][_0x477518(0x19e)]===_0x273253)return _0x80d42f;}return _0x47e0e1[_0x477518(0x1b9)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x166b0b,MenuBarMenuListItemButtonView as _0x56ccdf}from'ckeditor5/src/ui.js';import{Plugin as _0x37158a}from'ckeditor5/src/core.js';import{IconFootnote as _0x47eaf7}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x37158a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18170f}=this,{componentFactory:_0xde5aa9}=_0x18170f['ui'];_0xde5aa9['add']('insertFootnote',x(_0x18170f,_0x166b0b)),_0xde5aa9['add']('menuBar:insertFootnote',x(_0x18170f,_0x56ccdf)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xec181c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14041a;for(const _0x3fc549 in _0xec181c){const _0x2eef5c=_0x3fc549,_0x565dab=_0xec181c[_0x2eef5c];if('footnotesLicenseKeyValid'==_0x565dab||'footnotesLicenseKeyInvalid'==_0x565dab||'footnotesLicenseKeyExpired'==_0x565dab||'footnotesLicenseKeyDomainLimit'==_0x565dab||'footnotesLicenseKeyNotAllowed'==_0x565dab||'footnotesLicenseKeyEvaluationLimit'==_0x565dab||'footnotesLicenseKeyTrialLimit'==_0x565dab||'footnotesLicenseKeyUsageLimit'==_0x565dab){delete _0xec181c[_0x2eef5c],_0x14041a=_0x565dab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x14041a&&_0xec181c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x14041a&&_0xec181c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x14041a&&_0xec181c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x14041a&&_0xec181c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x14041a&&_0xec181c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x14041a&&_0xec181c['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x14041a&&_0xec181c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x260ecc,_0x382635){const _0x455ff8=_0x260ecc['commands']['get']('insertFootnote');return _0x3585f3=>{const {t:t}=_0x3585f3,_0x4766c8=new _0x382635(_0x3585f3),_0x4636b4=_0x4766c8 instanceof _0x56ccdf;return _0x4766c8['bind']('isEnabled')['to'](_0x455ff8,'isEnabled'),_0x4766c8['set']({'label':t(_0x4636b4?'Footnote':'Insert\x20footnote'),'icon':_0x47eaf7,'tooltip':!0x0}),_0x4766c8['on']('execute',()=>{_0x455ff8['execute'](),_0x260ecc['editing']['view']['focus']();}),_0x4766c8;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x25a4af,_0xac2c5e){var _0x1bb694=_0x356c,_0x1f02ae=_0x25a4af();while(!![]){try{var _0x37d76d=-parseInt(_0x1bb694(0xd4))/0x1*(parseInt(_0x1bb694(0xd8))/0x2)+-parseInt(_0x1bb694(0xd5))/0x3+-parseInt(_0x1bb694(0xd3))/0x4+-parseInt(_0x1bb694(0xda))/0x5+parseInt(_0x1bb694(0xd2))/0x6*(-parseInt(_0x1bb694(0xd7))/0x7)+-parseInt(_0x1bb694(0xd0))/0x8*(parseInt(_0x1bb694(0xd9))/0x9)+-parseInt(_0x1bb694(0xd1))/0xa*(-parseInt(_0x1bb694(0xd6))/0xb);if(_0x37d76d===_0xac2c5e)break;else _0x1f02ae['push'](_0x1f02ae['shift']());}catch(_0x166bbe){_0x1f02ae['push'](_0x1f02ae['shift']());}}}(_0x3960,0x96d49));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';function _0x356c(_0x27b90f,_0x323427){var _0x3960c0=_0x3960();return _0x356c=function(_0x356cf3,_0xaeb2a0){_0x356cf3=_0x356cf3-0xd0;var _0x15dca8=_0x3960c0[_0x356cf3];return _0x15dca8;},_0x356c(_0x27b90f,_0x323427);}function _0x3960(){var _0x21d4fd=['6NvGwRZ','3374680HkNezb','25389mdySHu','1722333bVWfRh','11808203zfsylN','6840043gUyftm','46DsELLX','95859bHNLxP','397280oAYObi','464exndEE','40ejssHE'];_0x3960=function(){return _0x21d4fd;};return _0x3960();}export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fe92d=_0x490c;function _0x490c(_0x4c5610,_0x57ad3d){const _0x5ed3a6=_0x5ed3();return _0x490c=function(_0x490c9f,_0x3bb17a){_0x490c9f=_0x490c9f-0x187;let _0x98f957=_0x5ed3a6[_0x490c9f];return _0x98f957;},_0x490c(_0x4c5610,_0x57ad3d);}(function(_0x36b89d,_0x2efd57){const _0x1f4ba5=_0x490c,_0x3d2882=_0x36b89d();while(!![]){try{const _0x451996=parseInt(_0x1f4ba5(0x1a7))/0x1*(-parseInt(_0x1f4ba5(0x19b))/0x2)+parseInt(_0x1f4ba5(0x187))/0x3*(-parseInt(_0x1f4ba5(0x1b3))/0x4)+-parseInt(_0x1f4ba5(0x1a2))/0x5+parseInt(_0x1f4ba5(0x1a4))/0x6*(-parseInt(_0x1f4ba5(0x1ac))/0x7)+-parseInt(_0x1f4ba5(0x1ae))/0x8*(parseInt(_0x1f4ba5(0x191))/0x9)+-parseInt(_0x1f4ba5(0x18c))/0xa*(parseInt(_0x1f4ba5(0x1a0))/0xb)+parseInt(_0x1f4ba5(0x1a6))/0xc;if(_0x451996===_0x2efd57)break;else _0x3d2882['push'](_0x3d2882['shift']());}catch(_0x58007a){_0x3d2882['push'](_0x3d2882['shift']());}}}(_0x5ed3,0x78850));function _0x5ed3(){const _0x4f4a2f=['type','remove','$text','799803TkCREp','has','position','attributes','length','_getElementKey','flat','clear','root','set','2fHYzeJ','get','_trackedElements','elementName','element','11QAxbFh','getItems','1156370WiGiWy','getElementKey','5812068tFHUsA','values','32779476wCzLqS','55833fmrSQI','getChanges','add','rootName','insert','7DserwJ','nodeAfter','8odfbrU','reset','slice','from','$graveyard','7732lwTKvm','delete','240ASGvYJ','createRangeOn','_model','push','_elementName','7386830sKDXFk','name'];_0x5ed3=function(){return _0x4f4a2f;};return _0x5ed3();}export class ModelElementTracker{[_0x2fe92d(0x189)];[_0x2fe92d(0x18b)];[_0x2fe92d(0x196)];[_0x2fe92d(0x19d)]=new Map();constructor(_0x462b1b,_0x942af9){const _0x37ef55=_0x2fe92d;this[_0x37ef55(0x189)]=_0x462b1b,this[_0x37ef55(0x18b)]=_0x942af9[_0x37ef55(0x19e)],this[_0x37ef55(0x196)]=_0x942af9[_0x37ef55(0x1a3)];}[_0x2fe92d(0x1af)](){const _0x49aed2=_0x2fe92d;this[_0x49aed2(0x19d)][_0x49aed2(0x198)]();}[_0x2fe92d(0x1a8)](_0x577210){const _0x3173cc=_0x2fe92d,_0x1efbb3=new Set(),_0x4e9b5a=new Map();for(const _0x23b56c of _0x577210){if(_0x3173cc(0x1ab)===_0x23b56c[_0x3173cc(0x18e)]&&_0x3173cc(0x190)!==_0x23b56c[_0x3173cc(0x18d)]&&_0x23b56c[_0x3173cc(0x193)][_0x3173cc(0x1ad)]){const _0x4eaba6=this[_0x3173cc(0x189)][_0x3173cc(0x188)](_0x23b56c[_0x3173cc(0x193)][_0x3173cc(0x1ad)]);for(const _0x4d5047 of _0x4eaba6[_0x3173cc(0x1a1)]()){if(!_0x4d5047['is'](_0x3173cc(0x19f),this[_0x3173cc(0x18b)]))continue;const _0x16cf5a=this[_0x3173cc(0x196)](_0x4d5047);_0x4e9b5a[_0x3173cc(0x192)](_0x16cf5a)||_0x4e9b5a[_0x3173cc(0x19a)](_0x16cf5a,[]),_0x4e9b5a[_0x3173cc(0x19c)](_0x16cf5a)[_0x3173cc(0x18a)](_0x4d5047);}}if(_0x3173cc(0x18f)===_0x23b56c[_0x3173cc(0x18e)]&&_0x23b56c[_0x3173cc(0x18d)]===this[_0x3173cc(0x18b)]){const _0x54e627=this[_0x3173cc(0x196)]({'getAttribute':_0x32bab6=>_0x23b56c[_0x3173cc(0x194)][_0x3173cc(0x19c)](_0x32bab6)});_0x1efbb3[_0x3173cc(0x1a9)](_0x54e627);}}for(const [_0x5b410c,_0x3d5b48]of this[_0x3173cc(0x19d)])_0x3173cc(0x1b2)===_0x3d5b48[_0x3173cc(0x199)][_0x3173cc(0x1aa)]&&_0x1efbb3[_0x3173cc(0x1a9)](_0x5b410c);for(const _0x4357a8 of _0x1efbb3)this[_0x3173cc(0x19d)][_0x3173cc(0x1b4)](_0x4357a8);for(const [_0xd8aa94,_0x3cc5e5]of _0x4e9b5a)this[_0x3173cc(0x19d)][_0x3173cc(0x19a)](_0xd8aa94,_0x3cc5e5[_0x3cc5e5[_0x3173cc(0x195)]-0x1]);const _0x45eef=new Set();for(const [_0x13c24d,_0x56b141]of _0x4e9b5a)_0x1efbb3[_0x3173cc(0x192)](_0x13c24d)&&(_0x45eef[_0x3173cc(0x1a9)](_0x56b141[0x0]),_0x56b141[_0x3173cc(0x195)]>0x1?_0x4e9b5a[_0x3173cc(0x19a)](_0x13c24d,_0x56b141[_0x3173cc(0x1b0)](0x1)):_0x4e9b5a[_0x3173cc(0x1b4)](_0x13c24d),_0x1efbb3[_0x3173cc(0x1b4)](_0x13c24d));return{'removed':Array[_0x3173cc(0x1b1)](_0x1efbb3),'inserted':Array[_0x3173cc(0x1b1)](_0x4e9b5a[_0x3173cc(0x1a5)]())[_0x3173cc(0x197)](),'moved':Array[_0x3173cc(0x1b1)](_0x45eef)};}}
|