@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251215.0 → 0.0.0-nightly-next-20251216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xfb20bf}from'ckeditor5/src/core.js';import{isWidget as _0x47223d,toWidget as _0x5685ec,toWidgetEditable as _0x290171}from'ckeditor5/src/widget.js';import{uid as _0x558fd9}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4e57fa,ClickObserver as _0x19db40}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2629f8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4bc514}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xfb20bf{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2629f8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a40de}=this;_0x1a40de['config']['define']('footnotes.multiBlock',!0x0),_0x1a40de['commands']['add']('insertFootnote',new _0x4bc514(_0x1a40de)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x49a6ba){const _0x4f59f2=_0x252b2e([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]),_0x313922=0x47a28506,_0x282dd5=0x47a5fefe^_0x313922,_0x6dab04=window[_0x252b2e([0x44,0x61,0x74,0x65])][_0x252b2e([0x6e,0x6f,0x77])](),_0x4c6958=_0x49a6ba[_0x252b2e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f7b4=new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50c857=>{_0x4c6958[_0x252b2e([0x6f,0x6e,0x63,0x65])](_0x252b2e([0x72,0x65,0x61,0x64,0x79]),_0x50c857);}),_0x1bb53c={[_0x252b2e([0x6b,0x74,0x79])]:_0x252b2e([0x45,0x43]),[_0x252b2e([0x75,0x73,0x65])]:_0x252b2e([0x73,0x69,0x67]),[_0x252b2e([0x63,0x72,0x76])]:_0x252b2e([0x50,0x2d,0x32,0x35,0x36]),[_0x252b2e([0x78])]:_0x252b2e([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]),[_0x252b2e([0x79])]:_0x252b2e([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]),[_0x252b2e([0x61,0x6c,0x67])]:_0x252b2e([0x45,0x53,0x32,0x35,0x36])},_0x43fe15=_0x4c6958[_0x252b2e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x252b2e([0x67,0x65,0x74])](_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38c41e(){let _0x2b5d5c,_0x41282e=null,_0x2e79a0=null;try{if(_0x43fe15==_0x252b2e([0x47,0x50,0x4c]))return _0x252b2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b5d5c=_0x456ba2(),!_0x2b5d5c)return _0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b5d5c[_0x252b2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e79a0=_0x224716(_0x2b5d5c[_0x252b2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b5d5c[_0x252b2e([0x6a,0x74,0x69])])),await _0x22815e()?_0xe71c1b()?_0x4167f2()?_0x252b2e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58b7d4()?(_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x252b2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41282e=_0x3f5587(_0x252b2e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x252b2e([0x74,0x72,0x69,0x61,0x6c])&&(_0x41282e=_0x3f5587(_0x252b2e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b896d()):_0x252b2e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x252b2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x252b2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4167f2(){const _0x459f68=[_0x252b2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x252b2e([0x74,0x72,0x69,0x61,0x6c])][_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6dab04/0x3e8:0xe10*_0x282dd5;return _0x2b5d5c[_0x252b2e([0x65,0x78,0x70])]<_0x459f68;}function _0xe71c1b(){const _0x940c8b=_0x2b5d5c[_0x252b2e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x940c8b&&(!!_0x940c8b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x2a]))||!!_0x940c8b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x46,0x4f,0x4f])));}function _0x58b7d4(){const _0x37219b=_0x2b5d5c[_0x252b2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37219b||0x0==_0x37219b[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x268b5}=new URL(window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37219b[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268b5))return!0x0;const _0x450849=_0x268b5[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e]));return _0x37219b[_0x252b2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33f3d9=>_0x33f3d9[_0x252b2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252b2e([0x2a])))[_0x252b2e([0x6d,0x61,0x70])](_0x1d7190=>_0x1d7190[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e])))[_0x252b2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59fe6e=>_0x59fe6e[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x450849[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x252b2e([0x6d,0x61,0x70])](_0x61659c=>Array(_0x450849[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x61659c[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x252b2e([0x66,0x69,0x6c,0x6c])](_0x61659c[0x0]===_0x252b2e([0x2a])?_0x252b2e([0x2a]):'')[_0x252b2e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x61659c))[_0x252b2e([0x73,0x6f,0x6d,0x65])](_0x37ccf7=>_0x450849[_0x252b2e([0x65,0x76,0x65,0x72,0x79])]((_0x8357ba,_0x21aa93)=>_0x37ccf7[_0x21aa93]===_0x8357ba||_0x37ccf7[_0x21aa93]===_0x252b2e([0x2a])));}function _0x1b896d(){return _0x41282e&&_0x2e79a0?new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6e57ea,_0x290e2c)=>{_0x41282e[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x6e57ea,_0x290e2c),_0x2e79a0[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x2ccd95=>{_0x2ccd95!=_0x252b2e([0x56,0x61,0x6c,0x69,0x64])&&_0x6e57ea(_0x2ccd95);},_0x290e2c);}):_0x41282e||_0x2e79a0||_0x252b2e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x224716(_0x2f4dcb,_0xa0648e){return new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bb9f1=>{if(_0x16aff2())return _0x3bb9f1(_0x252b2e([0x56,0x61,0x6c,0x69,0x64]));_0x4354f3(),_0x4c6958[_0x252b2e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d29ac=!0x1;const _0x127a23=_0x558fd9();function _0x2198a9(_0x5b46fa){return!!_0x5b46fa&&(typeof _0x5b46fa===_0x252b2e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b46fa===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b46fa[_0x252b2e([0x74,0x68,0x65,0x6e])]===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b46fa[_0x252b2e([0x63,0x61,0x74,0x63,0x68])]===_0x252b2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f217c(_0xf5682f){_0x4d51fd(_0xf5682f)[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x2d5783=>{if(!_0x2d5783||_0x2d5783[_0x252b2e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x252b2e([0x6f,0x6b]))return _0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b1440(_0x1765b9(_0x127a23+_0xa0648e))!=_0x2d5783[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x252b2e([0x56,0x61,0x6c,0x69,0x64]);})[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x17cb1f=>(_0x396990(),_0x17cb1f),()=>{const _0x4ae8ac=_0xc78bc();return null==_0x4ae8ac?(_0x396990(),_0x252b2e([0x56,0x61,0x6c,0x69,0x64])):_0x252b2e(_0x6dab04-_0x4ae8ac>(0x63ae0106^_0x313922)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x3bb9f1)[_0x252b2e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a9325=0x47946b86^_0x313922;function _0x396990(){const _0x34cc6c=_0x252b2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1440(_0x1765b9(_0x2f4dcb)),_0x2749a5=_0x6ef400(_0x3b1440(window[_0x252b2e([0x4d,0x61,0x74,0x68])][_0x252b2e([0x63,0x65,0x69,0x6c])](_0x6dab04/_0x5a9325)));window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x252b2e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34cc6c,_0x2749a5);}function _0xc78bc(){const _0x4300af=_0x252b2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1440(_0x1765b9(_0x2f4dcb)),_0x484549=window[_0x252b2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x252b2e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4300af);return _0x484549?window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6ef400(_0x484549),0x10)*_0x5a9325:null;}function _0x4d51fd(_0x332eeb){return new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x196051,_0xaf8dad)=>{_0x332eeb[_0x252b2e([0x74,0x68,0x65,0x6e])](_0x196051,_0xaf8dad),window[_0x252b2e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaf8dad,0x47a351c6^_0x313922);});}}_0x4c6958[_0x252b2e([0x6f,0x6e])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb241e1,_0x20b5c7)=>{if(_0x20b5c7[0x0]!=_0x2f4dcb)return _0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20b5c7[0x1]={..._0x20b5c7[0x1],[_0x252b2e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x127a23};},{[_0x252b2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x252b2e([0x68,0x69,0x67,0x68])}),_0x4c6958[_0x252b2e([0x6f,0x6e])](_0x252b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc0c77a=>{_0x2198a9(_0xc0c77a[_0x252b2e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d29ac=!0x0,_0x3f217c(_0xc0c77a[_0x252b2e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x252b2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x252b2e([0x6c,0x6f,0x77])}),_0x19f7b4[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>{_0x1d29ac||_0x3bb9f1(_0x252b2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16aff2(){return _0x4c6958[_0x252b2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x252b2e([0x76,0x69,0x65,0x77])][_0x252b2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x252b2e([0x61,0x75,0x74,0x6f]);}function _0x4354f3(){_0x4c6958[_0x252b2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x252b2e([0x76,0x69,0x65,0x77])][_0x252b2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x252b2e([0x61,0x75,0x74,0x6f]);}}function _0x3f5587(_0x906b1e){const _0xa1519b=[new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355942=>setTimeout(_0x355942,0x47abbbca^_0x313922)),_0x19f7b4[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28ff7e=>{let _0x29ab0e=0x0;_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x6f,0x6e])](_0x252b2e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35d2c5,_0x4d3caa)=>{_0x4d3caa[0x0][_0x252b2e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29ab0e++,_0x29ab0e==(0x47a284fe^_0x313922)&&(_0x28ff7e(),_0x35d2c5[_0x252b2e([0x6f,0x66,0x66])]());});}))];return window[_0x252b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x252b2e([0x72,0x61,0x63,0x65])](_0xa1519b)[_0x252b2e([0x74,0x68,0x65,0x6e])](()=>_0x906b1e);}async function _0x1d5d80(){await _0x19f7b4,_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d2e8c,_0x4c6958[_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x252b2e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d2e8c,_0x4c6958[_0x252b2e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x252b2e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3aaac3(_0x1cf733){const _0x554986=_0x2dfa86();_0x4c6958[_0x554986]=_0x252b2e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cf733,_0x1cf733!=_0x252b2e([0x56,0x61,0x6c,0x69,0x64])&&_0x1d5d80();}function _0x2dfa86(){const _0x8bfc92=window[_0x252b2e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x252b2e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x252b2e([0x6e,0x6f,0x77])]())[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x252b2e([0x2e]),'');let _0x3b9756=_0x252b2e([0x75]);for(let _0x19bebe=0x0;_0x19bebe<_0x8bfc92[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19bebe+=0x2){let _0x3f42c5=window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bfc92[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19bebe,_0x19bebe+0x2));_0x3f42c5>=_0x4f59f2[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f42c5-=_0x4f59f2[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b9756+=_0x4f59f2[_0x3f42c5];}return _0x3b9756;}function _0x456ba2(){const _0x348fd3=_0x43fe15[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e]));if(0x3!=_0x348fd3[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fe9ad(_0x348fd3[0x1]);function _0x4fe9ad(_0xe21db9){const _0x93bc77=_0x5170c4(_0xe21db9);return _0x93bc77&&_0x449d56()?_0x93bc77:null;function _0x449d56(){const _0x287cf1=_0x93bc77[_0x252b2e([0x6a,0x74,0x69])],_0x26e112=window[_0x252b2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287cf1[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287cf1[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51bab7={..._0x93bc77,[_0x252b2e([0x6a,0x74,0x69])]:_0x287cf1[_0x252b2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x287cf1[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51bab7[_0x252b2e([0x76,0x63])],_0x1765b9(_0x51bab7)==_0x26e112;}}}async function _0x22815e(){let _0x16c800=!0x0;try{const _0x5b3219=_0x43fe15[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])](_0x252b2e([0x2e])),[_0x848c3a,_0x5b81e9,_0x5a2f51]=_0x5b3219;return _0x54172c(_0x848c3a),await _0x5e627c(_0x848c3a,_0x5b81e9,_0x5a2f51),_0x16c800;}catch{return!0x1;}function _0x54172c(_0x311ff9){const _0x965626=_0x5170c4(_0x311ff9);_0x965626&&_0x965626[_0x252b2e([0x61,0x6c,0x67])]==_0x252b2e([0x45,0x53,0x32,0x35,0x36])||(_0x16c800=!0x1);}async function _0x5e627c(_0x31619d,_0x1da295,_0x278745){const _0x4d8329=window[_0x252b2e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x252b2e([0x66,0x72,0x6f,0x6d])](_0x129f95(_0x278745),_0x5d3900=>_0x5d3900[_0x252b2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c4442=new window[(_0x252b2e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x252b2e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31619d+_0x252b2e([0x2e])+_0x1da295),_0x23e185=window[_0x252b2e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x252b2e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23e185)return;const _0x23fa4d=await _0x23e185[_0x252b2e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x252b2e([0x6a,0x77,0x6b]),_0x1bb53c,{[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x45,0x43,0x44,0x53,0x41]),[_0x252b2e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x252b2e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23e185[_0x252b2e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x45,0x43,0x44,0x53,0x41]),[_0x252b2e([0x68,0x61,0x73,0x68])]:{[_0x252b2e([0x6e,0x61,0x6d,0x65])]:_0x252b2e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23fa4d,_0x4d8329,_0x1c4442)||(_0x16c800=!0x1);}}function _0x5170c4(_0x2960f5){return _0x2960f5[_0x252b2e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x252b2e([0x65,0x79]))?JSON[_0x252b2e([0x70,0x61,0x72,0x73,0x65])](_0x129f95(_0x2960f5)):null;}function _0x129f95(_0x520796){return window[_0x252b2e([0x61,0x74,0x6f,0x62])](_0x520796[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x252b2e([0x2b]))[_0x252b2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x252b2e([0x2f])));}function _0x1765b9(_0x137abc){let _0x5920ea=0x1505;function _0x5c2eba(_0x782214){for(let _0x153ce9=0x0;_0x153ce9<_0x782214[_0x252b2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x153ce9++){const _0x493db0=_0x782214[_0x252b2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x153ce9);_0x5920ea=(_0x5920ea<<0x5)+_0x5920ea+_0x493db0,_0x5920ea&=_0x5920ea;}}function _0x428771(_0x3bcb10){Array[_0x252b2e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3bcb10)?_0x3bcb10[_0x252b2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x428771):_0x3bcb10&&typeof _0x3bcb10==_0x252b2e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x252b2e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3bcb10)[_0x252b2e([0x73,0x6f,0x72,0x74])]()[_0x252b2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11b182,_0x2b0638])=>{_0x5c2eba(_0x11b182),_0x428771(_0x2b0638);}):_0x5c2eba(window[_0x252b2e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3bcb10));}return _0x428771(_0x137abc),_0x5920ea>>>0x0;}function _0x3b1440(_0x37a455){return _0x37a455[_0x252b2e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x252b2e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x252b2e([0x30]));}function _0x6ef400(_0x27ede2){return _0x27ede2[_0x252b2e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x252b2e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x252b2e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d2e8c(){}function _0x252b2e(_0x1df15d){return _0x1df15d['map'](_0x4c2b5d=>String['fromCharCode'](_0x4c2b5d))['join']('');}_0x3aaac3(await _0x38c41e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x227f3e){const {plugins:_0x4a3d15,editing:_0x2e810b,model:_0x326bd1}=this['editor'],_0x1f95dc=_0x4a3d15['get'](_0x2629f8)['getFootnote'](_0x227f3e);return!!_0x1f95dc&&(_0x326bd1['change'](_0x16e0c3=>{_0x16e0c3['setSelection'](_0x16e0c3['createPositionAt'](_0x1f95dc['definition'],'end'));}),_0x2e810b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2db42d){const {plugins:_0x579efd,editing:_0x144b16,model:_0x4c8709}=this['editor'],_0x29e75a=_0x579efd['get'](_0x2629f8)['getFootnote'](_0x2db42d);return!!_0x29e75a&&(_0x4c8709['change'](_0x2ff1c4=>{_0x2ff1c4['setSelection'](_0x29e75a['reference'],'on');}),_0x144b16['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x19e54f}=this['editor']['model'],_0x13648d=this['editor']['config']['get']('footnotes.multiBlock');_0x19e54f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x19e54f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x19e54f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x13648d?_0x19e54f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x19e54f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x19e54f['addChildCheck'](_0x1b54eb=>{for(const _0x2f6bae of _0x1b54eb)if('footnoteDefinition'===_0x2f6bae['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5d3ca1}=this,{conversion:_0x299eb4,editing:_0x2995da}=_0x5d3ca1,{t:t}=_0x5d3ca1['locale'];_0x299eb4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x582b94,{writer:_0x258b55,consumable:_0x5072d6})=>{const _0x3e198b=_0x582b94['getChild'](0x0);if(!_0x3e198b||!_0x3e198b['is']('element','a'))return null;const _0x414aaa=_0x3e198b['getAttribute']('href')||'';if(!_0x414aaa['startsWith']('#'))return null;const _0x2c3e6a=_0x414aaa['replace'](/^#/,'');if(!_0x2c3e6a)return null;_0x5072d6['consume'](_0x3e198b,{'name':!0x0,'attributes':['href']});for(const {item:_0x1ad04e}of _0x2995da['view']['createRangeIn'](_0x3e198b))_0x1ad04e['is']('$textProxy')?_0x5072d6['consume'](_0x1ad04e['textNode'],{'name':!0x0}):_0x1ad04e['is']('element')&&_0x5072d6['consume'](_0x1ad04e,{'name':!0x0});return _0x258b55['createElement']('footnoteRef',{'footnoteId':_0x2c3e6a});}}),_0x299eb4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19bc01,{writer:_0x5c6c9b})=>D(_0x19bc01,_0x5c6c9b)}),_0x299eb4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5632d0,{writer:_0x4a9eff})=>{const _0x7bf603=_0x5632d0['getAttribute']('footnoteCounter');return _0x5685ec(D(_0x5632d0,_0x4a9eff),_0x4a9eff,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x7bf603)});}});}['_defineDefinitionsConverters'](){const {editor:_0x15e60d}=this,{t:t}=_0x15e60d['locale'],{conversion:_0x16edd4}=_0x15e60d;_0x16edd4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x16edd4['for']('upcast')['add'](_0xca531a=>{_0xca531a['on']('element:ol',(_0x345c1e,_0x13e2cc,_0x3ff56c)=>{const _0xa85229=_0x13e2cc['viewItem'];if(!_0xa85229['hasClass']('footnotes-list')||!_0x13e2cc['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3ff56c['consumable']['consume'](_0xa85229,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x50869e,modelCursor:_0x34b3e1}=_0x3ff56c['convertChildren'](_0x13e2cc['viewItem'],_0x13e2cc['modelCursor']);_0x13e2cc['modelRange']=_0x50869e,_0x13e2cc['modelCursor']=_0x34b3e1;}),_0xca531a['on']('element:hr',(_0x5d3e0a,_0x1ad08c,_0xf1da1)=>{const _0x493e6e=_0x1ad08c['viewItem'];_0x493e6e['hasClass']('footnotes-divider')&&_0x1ad08c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xf1da1['consumable']['consume'](_0x493e6e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x16edd4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2bcbe1,{writer:_0x1a6a9b})=>v(_0x1a6a9b)}),_0x16edd4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x56903b,{writer:_0x19302c})=>{const _0x45e5f1=v(_0x19302c,{'data-footnotes-list-label':t('Footnotes')}),_0x56334=_0x5685ec(_0x45e5f1,_0x19302c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x19302c['setCustomProperty']('footnotesDefinitions',!0x0,_0x56334),_0x56334;}});}['_defineDefinitionConverters'](){const {editor:_0x476c46}=this,{conversion:_0x3f1261,locale:_0x3c6a9e}=_0x476c46,_0x502c22=_0x476c46['config']['get']('footnotes.multiBlock');_0x3f1261['for']('upcast')['add'](_0x2cbeb9=>{_0x2cbeb9['on']('element:li',(_0x49fe23,_0x5461f7,_0x251c63)=>{const _0x5b5018=_0x5461f7['viewItem'];if(!_0x5b5018['hasClass']('footnote-definition')||!_0x5b5018['getAttribute']('id'))return;const _0x37470d=_0x5b5018['parent'];if(!_0x37470d['is']('element','ol')||!_0x37470d['hasClass']('footnotes-list'))return;if(!_0x251c63['consumable']['test'](_0x5b5018,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x100ea2=_0x251c63['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5b5018['getAttribute']('id')});if(!_0x251c63['safeInsert'](_0x100ea2,_0x5461f7['modelCursor']))return;_0x251c63['consumable']['consume'](_0x5b5018,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x467973=Array['from'](_0x5b5018['getChildren']())['find'](_0x471093=>_0x471093['is']('element')&&_0x471093['hasClass']('footnote-content'));for(const _0x386d15 of _0x5b5018['getChildren']())_0x386d15['is']('element')&&(_0x251c63['consumable']['consume'](_0x386d15,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x251c63['consumable']['consume'](_0x386d15,{'name':!0x0,'classes':'footnote-content'}));if(_0x467973){if(_0x502c22)_0x251c63['convertChildren'](_0x467973,_0x100ea2);else{const _0x4c5368=_0x251c63['writer']['createElement']('footnoteInlineContent');_0x251c63['writer']['insert'](_0x4c5368,_0x100ea2),_0x251c63['convertChildren'](_0x467973,_0x4c5368);}}_0x251c63['updateConversionResult'](_0x100ea2,_0x5461f7);});}),_0x3f1261['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d860f,{writer:_0x42ce16})=>b(_0x4d860f,_0x42ce16,_0x3c6a9e,{'dataPipeline':!0x0})}),_0x3f1261['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3534d5,{writer:_0x59a45f})=>b(_0x3534d5,_0x59a45f,_0x3c6a9e)});}['_defineBogusParagraphConverters'](){const {editor:_0x1f6fb8}=this,{conversion:_0xb2f9b6}=_0x1f6fb8;_0x1f6fb8['config']['get']('footnotes.multiBlock')?(_0xb2f9b6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0xb2f9b6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1f6fb8['model']['document'],'change:data',()=>{!function(_0x199dd7,_0x3d983b){const _0x463a3a=_0x199dd7['document']['differ'],_0x264976=new Set();for(const _0x13b12a of _0x463a3a['getChanges']()){const _0x38ae4c='attribute'==_0x13b12a['type']?_0x13b12a['range']['start']['parent']:_0x13b12a['position']['parent'];_0x38ae4c['is']('element','footnoteDefinition')&&_0x264976['add'](_0x38ae4c);}for(const _0x2627b1 of _0x264976['values']()){const _0x3f9d3b=Array['from'](_0x2627b1['getChildren']())['filter'](_0x1c34a4=>g(_0x1c34a4,_0x3d983b['mapper']));for(const _0x2b0d2f of _0x3f9d3b)_0x3d983b['reconvertItem'](_0x2b0d2f);}}(_0x1f6fb8['model'],_0x1f6fb8['editing']);})):(_0xb2f9b6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0xb2f9b6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xad51ac,{writer:_0x588d34})=>{const _0x23b082=_0x588d34['createContainerElement']('span');return _0x588d34['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23b082),_0x23b082;}}));}['_defineKeyboardHandlers'](){const {editor:_0x455ff4}=this,{editing:_0x3d726f,t:t}=_0x455ff4,_0x808375=_0x455ff4['model']['document']['selection'];_0x455ff4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x455ff4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3d726f['view']['document'],'enter',(_0x46f22a,_0x2b873a)=>{const _0x2cae1d=function(_0x5afb98){const _0x578e00=_0x5afb98['getSelectedElement']();if(_0x578e00?.['is']('element','footnoteRef'))return _0x578e00;return null;}(_0x808375);if(_0x2cae1d){const _0x393cf3=_0x2cae1d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x393cf3),_0x2b873a['preventDefault'](),_0x46f22a['stop']();}},{'context':_0x47223d});}['_defineClickHandlers'](){const {editor:_0x23b5f5}=this,{editing:_0x41ccce}=_0x23b5f5;_0x23b5f5['editing']['view']['addObserver'](_0x4e57fa),_0x23b5f5['editing']['view']['addObserver'](_0x19db40);let _0x5d23a1=!0x1;this['listenTo'](_0x41ccce['view']['document'],'pointerdown',(_0x5a3e63,_0x1780af)=>{const {target:_0x559031}=_0x1780af,_0x23e875=_0x41ccce['view']['document']['selection'];_0x5d23a1=!!(_0x559031?.['is']('element','a')&&_0x559031['parent']?.['is']('element','sup')&&_0x559031['parent']['hasClass']('footnote'))&&_0x23e875['getSelectedElement']()===_0x559031['parent'];},{'priority':'high'}),this['listenTo'](_0x41ccce['view']['document'],'click',(_0x434e06,_0x582453)=>{const {target:_0x45d508}=_0x582453;if(!_0x45d508?.['is']('element','a'))return;if(_0x45d508['parent']?.['is']('element','sup')&&_0x45d508['parent']['hasClass']('footnote')&&!_0x5d23a1)return void _0x582453['preventDefault']();let _0x802921=_0x45d508['getAttribute']('href');if(!_0x802921?.['startsWith']('#'))return;_0x802921=_0x802921['slice'](0x1);let _0x45d85c=!0x1;(_0x802921['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x802921['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x802921))&&(_0x45d85c=!0x0),_0x45d85c&&(_0x582453['preventDefault'](),_0x434e06['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1c0a0e}={}){return(_0x1b7006,{writer:_0x219937})=>{if(!p(_0x1b7006))return null;if(!_0x1c0a0e)return _0x219937['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x12c844=_0x219937['createContainerElement']('p');return _0x219937['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x12c844),_0x12c844;};}function p(_0x116abd){const {parent:_0x1e6aa3}=_0x116abd;if(!_0x1e6aa3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e6aa3['childCount'])return!0x1;for(const _0x35080d of _0x116abd['getAttributeKeys']())if(!_0x35080d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x35080d)return!0x1;return!0x0;}function g(_0x60fb50,_0xd406bd){if(!_0x60fb50['is']('element','paragraph'))return!0x1;const _0x390402=_0xd406bd['toViewElement'](_0x60fb50);return!!_0x390402&&p(_0x60fb50)!==_0x390402['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x45de52){return _0x47223d(_0x45de52)&&_0x45de52['is']('containerElement')&&!!_0x45de52['getCustomProperty']('footnotesDefinitions');}function v(_0x461fe9,_0x38f876={}){const _0x560f5b=_0x461fe9['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1175de=_0x461fe9['createContainerElement']('ol',{'class':'footnotes-list'},_0x461fe9['createSlot']());return _0x461fe9['createContainerElement']('div',{'class':'footnotes',..._0x38f876},[_0x560f5b,_0x1175de]);}function D(_0x598a8a,_0x45289d){const _0xabf224=_0x598a8a['getAttribute']('footnoteId'),_0x20502a=_0x598a8a['getAttribute']('footnoteCounter'),_0x2c64d4=_0x45289d['createUIElement']('a',{'href':'#'+_0xabf224},function(_0x2b0c3f){const _0x33bf38=this['toDomElement'](_0x2b0c3f);return _0x33bf38['textContent']=_0x20502a,_0x33bf38;}),_0xff1632=_0x45289d['createContainerElement']('sup',{'id':'ref-'+_0xabf224,'class':'footnote'},[_0x2c64d4]);return _0xff1632['getFillerOffset']=()=>null,_0xff1632;}function b(_0x388d71,_0x2c4dc0,_0x124716,{dataPipeline:_0x574735}={}){const {t:t}=_0x124716,_0x4b6749=_0x388d71['getAttribute']('footnoteId'),_0xfbe56a=_0x2c4dc0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4b6749},function(_0x66dc8a){const _0x4b5f42=this['toDomElement'](_0x66dc8a);return _0x4b5f42['innerText']='^',_0x4b5f42;}),_0x2d4f5a=_0x574735?_0x2c4dc0['createContainerElement']('div',{'class':'footnote-content'}):_0x290171(_0x2c4dc0['createEditableElement']('div',{'class':'footnote-content'}),_0x2c4dc0,{'label':t('Footnote\x20content.')});return _0x2c4dc0['insert'](_0x2c4dc0['createPositionAt'](_0x2d4f5a,0x0),_0x2c4dc0['createSlot']()),_0x2c4dc0['createContainerElement']('li',{'class':'footnote-definition','id':_0x4b6749},[_0xfbe56a,_0x2d4f5a]);}
|
|
23
|
+
import{Plugin as _0x4e69fc}from'ckeditor5/src/core.js';import{isWidget as _0x2f0975,toWidget as _0x5381bf,toWidgetEditable as _0x1d6c5f}from'ckeditor5/src/widget.js';import{uid as _0x2fde9d}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1c4793,ClickObserver as _0x10d0be}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x204428}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x39cf2c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e69fc{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x204428];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x77f750}=this;_0x77f750['config']['define']('footnotes.multiBlock',!0x0),_0x77f750['commands']['add']('insertFootnote',new _0x39cf2c(_0x77f750)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2b0d13){const _0x501e20=_0x995a61([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x1b071d=0x47a28506,_0x149e88=0x47a5f916^_0x1b071d,_0xaaf703=window[_0x995a61([0x44,0x61,0x74,0x65])][_0x995a61([0x6e,0x6f,0x77])](),_0x346c91=_0x2b0d13[_0x995a61([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2175b8=new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f0580=>{_0x346c91[_0x995a61([0x6f,0x6e,0x63,0x65])](_0x995a61([0x72,0x65,0x61,0x64,0x79]),_0x3f0580);}),_0x253395={[_0x995a61([0x6b,0x74,0x79])]:_0x995a61([0x45,0x43]),[_0x995a61([0x75,0x73,0x65])]:_0x995a61([0x73,0x69,0x67]),[_0x995a61([0x63,0x72,0x76])]:_0x995a61([0x50,0x2d,0x32,0x35,0x36]),[_0x995a61([0x78])]:_0x995a61([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x995a61([0x79])]:_0x995a61([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x995a61([0x61,0x6c,0x67])]:_0x995a61([0x45,0x53,0x32,0x35,0x36])},_0x507999=_0x346c91[_0x995a61([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x995a61([0x67,0x65,0x74])](_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41c764(){let _0x20a160,_0x3a89ed=null,_0x2c7df2=null;try{if(_0x507999==_0x995a61([0x47,0x50,0x4c]))return _0x995a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20a160=_0x49a7b6(),!_0x20a160)return _0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20a160[_0x995a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c7df2=_0x16c6f4(_0x20a160[_0x995a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20a160[_0x995a61([0x6a,0x74,0x69])])),await _0x46fe4f()?_0x53beb2()?_0x3927bc()?_0x995a61([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6c0949()?(_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x995a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a89ed=_0x42250c(_0x995a61([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x995a61([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a89ed=_0x42250c(_0x995a61([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x488f2c()):_0x995a61([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x995a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3927bc(){const _0x2f6062=[_0x995a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x995a61([0x74,0x72,0x69,0x61,0x6c])][_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaaf703/0x3e8:0xe10*_0x149e88;return _0x20a160[_0x995a61([0x65,0x78,0x70])]<_0x2f6062;}function _0x53beb2(){const _0x2c1b78=_0x20a160[_0x995a61([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c1b78&&(!!_0x2c1b78[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x2a]))||!!_0x2c1b78[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x46,0x4f,0x4f])));}function _0x6c0949(){const _0x4237d8=_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4237d8||0x0==_0x4237d8[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25f732}=new URL(window[_0x995a61([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4237d8[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f732))return!0x0;const _0xa7bc73=_0x25f732[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e]));return _0x4237d8[_0x995a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e1177=>_0x1e1177[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x2a])))[_0x995a61([0x6d,0x61,0x70])](_0x3c47f2=>_0x3c47f2[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e])))[_0x995a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5e27=>_0x4b5e27[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa7bc73[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x995a61([0x6d,0x61,0x70])](_0x21841b=>Array(_0xa7bc73[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21841b[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x995a61([0x66,0x69,0x6c,0x6c])](_0x21841b[0x0]===_0x995a61([0x2a])?_0x995a61([0x2a]):'')[_0x995a61([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21841b))[_0x995a61([0x73,0x6f,0x6d,0x65])](_0x112577=>_0xa7bc73[_0x995a61([0x65,0x76,0x65,0x72,0x79])]((_0x3d977e,_0x596765)=>_0x112577[_0x596765]===_0x3d977e||_0x112577[_0x596765]===_0x995a61([0x2a])));}function _0x488f2c(){return _0x3a89ed&&_0x2c7df2?new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x322294,_0x4ee689)=>{_0x3a89ed[_0x995a61([0x74,0x68,0x65,0x6e])](_0x322294,_0x4ee689),_0x2c7df2[_0x995a61([0x74,0x68,0x65,0x6e])](_0x509015=>{_0x509015!=_0x995a61([0x56,0x61,0x6c,0x69,0x64])&&_0x322294(_0x509015);},_0x4ee689);}):_0x3a89ed||_0x2c7df2||_0x995a61([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16c6f4(_0x5dc36e,_0x2679d3){return new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bca33=>{if(_0x46a5a7())return _0x3bca33(_0x995a61([0x56,0x61,0x6c,0x69,0x64]));_0x46b7f6(),_0x346c91[_0x995a61([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3dc407=!0x1;const _0x3743a7=_0x2fde9d();function _0x5ed772(_0x2988f4){return!!_0x2988f4&&(typeof _0x2988f4===_0x995a61([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2988f4===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2988f4[_0x995a61([0x74,0x68,0x65,0x6e])]===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2988f4[_0x995a61([0x63,0x61,0x74,0x63,0x68])]===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52cbcc(_0x35ce49){_0x22f4aa(_0x35ce49)[_0x995a61([0x74,0x68,0x65,0x6e])](_0x4fa4d2=>{if(!_0x4fa4d2||_0x4fa4d2[_0x995a61([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x995a61([0x6f,0x6b]))return _0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f8811(_0x13db6a(_0x3743a7+_0x2679d3))!=_0x4fa4d2[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x995a61([0x56,0x61,0x6c,0x69,0x64]);})[_0x995a61([0x74,0x68,0x65,0x6e])](_0x4cf2f9=>(_0x30e8b0(),_0x4cf2f9),()=>{const _0x4f326e=_0xcfffac();return null==_0x4f326e?(_0x30e8b0(),_0x995a61([0x56,0x61,0x6c,0x69,0x64])):_0x995a61(_0xaaf703-_0x4f326e>(0x63ae0106^_0x1b071d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x995a61([0x74,0x68,0x65,0x6e])](_0x3bca33)[_0x995a61([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e291b=0x47946b86^_0x1b071d;function _0x30e8b0(){const _0x1ed16d=_0x995a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8811(_0x13db6a(_0x5dc36e)),_0x3589a7=_0x5d33a4(_0x2f8811(window[_0x995a61([0x4d,0x61,0x74,0x68])][_0x995a61([0x63,0x65,0x69,0x6c])](_0xaaf703/_0x5e291b)));window[_0x995a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x995a61([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ed16d,_0x3589a7);}function _0xcfffac(){const _0x432998=_0x995a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8811(_0x13db6a(_0x5dc36e)),_0x9700fc=window[_0x995a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x995a61([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432998);return _0x9700fc?window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d33a4(_0x9700fc),0x10)*_0x5e291b:null;}function _0x22f4aa(_0x8c638){return new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b8206,_0x67506a)=>{_0x8c638[_0x995a61([0x74,0x68,0x65,0x6e])](_0x3b8206,_0x67506a),window[_0x995a61([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x67506a,0x47a351c6^_0x1b071d);});}}_0x346c91[_0x995a61([0x6f,0x6e])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e6033,_0x5c6e74)=>{if(_0x5c6e74[0x0]!=_0x5dc36e)return _0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c6e74[0x1]={..._0x5c6e74[0x1],[_0x995a61([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3743a7};},{[_0x995a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x995a61([0x68,0x69,0x67,0x68])}),_0x346c91[_0x995a61([0x6f,0x6e])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bf478=>{_0x5ed772(_0x3bf478[_0x995a61([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3dc407=!0x0,_0x52cbcc(_0x3bf478[_0x995a61([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x995a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x995a61([0x6c,0x6f,0x77])}),_0x2175b8[_0x995a61([0x74,0x68,0x65,0x6e])](()=>{_0x3dc407||_0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46a5a7(){return _0x346c91[_0x995a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x995a61([0x76,0x69,0x65,0x77])][_0x995a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x995a61([0x61,0x75,0x74,0x6f]);}function _0x46b7f6(){_0x346c91[_0x995a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x995a61([0x76,0x69,0x65,0x77])][_0x995a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x995a61([0x61,0x75,0x74,0x6f]);}}function _0x42250c(_0x407e39){const _0x281a55=[new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4228f6=>setTimeout(_0x4228f6,0x47abbbca^_0x1b071d)),_0x2175b8[_0x995a61([0x74,0x68,0x65,0x6e])](()=>new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429269=>{let _0x2b1c1a=0x0;_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x6f,0x6e])](_0x995a61([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57eae5,_0x191e19)=>{_0x191e19[0x0][_0x995a61([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b1c1a++,_0x2b1c1a==(0x47a284fe^_0x1b071d)&&(_0x429269(),_0x57eae5[_0x995a61([0x6f,0x66,0x66])]());});}))];return window[_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x995a61([0x72,0x61,0x63,0x65])](_0x281a55)[_0x995a61([0x74,0x68,0x65,0x6e])](()=>_0x407e39);}async function _0x175c3b(){await _0x2175b8,_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcf747f,_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcf747f,_0x346c91[_0x995a61([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x995a61([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x550135(_0x5f09b1){const _0x16e9e9=_0x6a62e8();_0x346c91[_0x16e9e9]=_0x995a61([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f09b1,_0x5f09b1!=_0x995a61([0x56,0x61,0x6c,0x69,0x64])&&_0x175c3b();}function _0x6a62e8(){const _0x34d947=window[_0x995a61([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x995a61([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x995a61([0x6e,0x6f,0x77])]())[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x995a61([0x2e]),'');let _0x5d9e9c=_0x995a61([0x75]);for(let _0x3d69ae=0x0;_0x3d69ae<_0x34d947[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d69ae+=0x2){let _0x513075=window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34d947[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d69ae,_0x3d69ae+0x2));_0x513075>=_0x501e20[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x513075-=_0x501e20[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9e9c+=_0x501e20[_0x513075];}return _0x5d9e9c;}function _0x49a7b6(){const _0x11d2cd=_0x507999[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e]));if(0x3!=_0x11d2cd[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x193892(_0x11d2cd[0x1]);function _0x193892(_0x418cfb){const _0x39e60a=_0x487ca0(_0x418cfb);return _0x39e60a&&_0x1cf438()?_0x39e60a:null;function _0x1cf438(){const _0x25d01a=_0x39e60a[_0x995a61([0x6a,0x74,0x69])],_0x439ebb=window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25d01a[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25d01a[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x190a37={..._0x39e60a,[_0x995a61([0x6a,0x74,0x69])]:_0x25d01a[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25d01a[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x190a37[_0x995a61([0x76,0x63])],_0x13db6a(_0x190a37)==_0x439ebb;}}}async function _0x46fe4f(){let _0xa5eb24=!0x0;try{const _0x3f6b20=_0x507999[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e])),[_0x384f3e,_0x12e582,_0x48aa8c]=_0x3f6b20;return _0x8aa998(_0x384f3e),await _0x196746(_0x384f3e,_0x12e582,_0x48aa8c),_0xa5eb24;}catch{return!0x1;}function _0x8aa998(_0x152f73){const _0x36d572=_0x487ca0(_0x152f73);_0x36d572&&_0x36d572[_0x995a61([0x61,0x6c,0x67])]==_0x995a61([0x45,0x53,0x32,0x35,0x36])||(_0xa5eb24=!0x1);}async function _0x196746(_0x491655,_0x5cb976,_0x50fb1e){const _0x5bc368=window[_0x995a61([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x995a61([0x66,0x72,0x6f,0x6d])](_0x2acc26(_0x50fb1e),_0x4528a1=>_0x4528a1[_0x995a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x410cf5=new window[(_0x995a61([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x995a61([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491655+_0x995a61([0x2e])+_0x5cb976),_0x3edebd=window[_0x995a61([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x995a61([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3edebd)return;const _0x577a4c=await _0x3edebd[_0x995a61([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x995a61([0x6a,0x77,0x6b]),_0x253395,{[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x45,0x43,0x44,0x53,0x41]),[_0x995a61([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x995a61([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3edebd[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x45,0x43,0x44,0x53,0x41]),[_0x995a61([0x68,0x61,0x73,0x68])]:{[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x577a4c,_0x5bc368,_0x410cf5)||(_0xa5eb24=!0x1);}}function _0x487ca0(_0x37df0c){return _0x37df0c[_0x995a61([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x995a61([0x65,0x79]))?JSON[_0x995a61([0x70,0x61,0x72,0x73,0x65])](_0x2acc26(_0x37df0c)):null;}function _0x2acc26(_0x56c23b){return window[_0x995a61([0x61,0x74,0x6f,0x62])](_0x56c23b[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x995a61([0x2b]))[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x995a61([0x2f])));}function _0x13db6a(_0x138a52){let _0x493fa5=0x1505;function _0x1b31af(_0x2c3737){for(let _0x36b69e=0x0;_0x36b69e<_0x2c3737[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b69e++){const _0x1c5d39=_0x2c3737[_0x995a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36b69e);_0x493fa5=(_0x493fa5<<0x5)+_0x493fa5+_0x1c5d39,_0x493fa5&=_0x493fa5;}}function _0x1fcd17(_0x49e320){Array[_0x995a61([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49e320)?_0x49e320[_0x995a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fcd17):_0x49e320&&typeof _0x49e320==_0x995a61([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x995a61([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49e320)[_0x995a61([0x73,0x6f,0x72,0x74])]()[_0x995a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bf33b,_0x594ecb])=>{_0x1b31af(_0x5bf33b),_0x1fcd17(_0x594ecb);}):_0x1b31af(window[_0x995a61([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49e320));}return _0x1fcd17(_0x138a52),_0x493fa5>>>0x0;}function _0x2f8811(_0x585829){return _0x585829[_0x995a61([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x995a61([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x995a61([0x30]));}function _0x5d33a4(_0x248b27){return _0x248b27[_0x995a61([0x73,0x70,0x6c,0x69,0x74])]('')[_0x995a61([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x995a61([0x6a,0x6f,0x69,0x6e])]('');}function _0xcf747f(){}function _0x995a61(_0x5f251d){return _0x5f251d['map'](_0x3215b1=>String['fromCharCode'](_0x3215b1))['join']('');}_0x550135(await _0x41c764());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4fe492){const {plugins:_0x1e172e,editing:_0x4606aa,model:_0x501dd4}=this['editor'],_0xe27d53=_0x1e172e['get'](_0x204428)['getFootnote'](_0x4fe492);return!!_0xe27d53&&(_0x501dd4['change'](_0x233d86=>{_0x233d86['setSelection'](_0x233d86['createPositionAt'](_0xe27d53['definition'],'end'));}),_0x4606aa['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3ba139){const {plugins:_0x753a11,editing:_0x222d35,model:_0x486f9e}=this['editor'],_0x5ec602=_0x753a11['get'](_0x204428)['getFootnote'](_0x3ba139);return!!_0x5ec602&&(_0x486f9e['change'](_0x26482c=>{_0x26482c['setSelection'](_0x5ec602['reference'],'on');}),_0x222d35['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x292195}=this['editor']['model'],_0x2a1db8=this['editor']['config']['get']('footnotes.multiBlock');_0x292195['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x292195['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x292195['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2a1db8?_0x292195['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x292195['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x292195['addChildCheck'](_0x5d76ea=>{for(const _0x282eb7 of _0x5d76ea)if('footnoteDefinition'===_0x282eb7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x591b77}=this,{conversion:_0x516d81,editing:_0x2ad633}=_0x591b77,{t:t}=_0x591b77['locale'];_0x516d81['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x42dcb3,{writer:_0x573459,consumable:_0x3f29f1})=>{const _0x211106=_0x42dcb3['getChild'](0x0);if(!_0x211106||!_0x211106['is']('element','a'))return null;const _0x35ec58=_0x211106['getAttribute']('href')||'';if(!_0x35ec58['startsWith']('#'))return null;const _0x12c7d0=_0x35ec58['replace'](/^#/,'');if(!_0x12c7d0)return null;_0x3f29f1['consume'](_0x211106,{'name':!0x0,'attributes':['href']});for(const {item:_0x20113d}of _0x2ad633['view']['createRangeIn'](_0x211106))_0x20113d['is']('$textProxy')?_0x3f29f1['consume'](_0x20113d['textNode'],{'name':!0x0}):_0x20113d['is']('element')&&_0x3f29f1['consume'](_0x20113d,{'name':!0x0});return _0x573459['createElement']('footnoteRef',{'footnoteId':_0x12c7d0});}}),_0x516d81['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x513fbe,{writer:_0x5cb549})=>D(_0x513fbe,_0x5cb549)}),_0x516d81['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b3501,{writer:_0x1da7ef})=>{const _0x156d24=_0x4b3501['getAttribute']('footnoteCounter');return _0x5381bf(D(_0x4b3501,_0x1da7ef),_0x1da7ef,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x156d24)});}});}['_defineDefinitionsConverters'](){const {editor:_0x10c89a}=this,{t:t}=_0x10c89a['locale'],{conversion:_0x5884d7}=_0x10c89a;_0x5884d7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5884d7['for']('upcast')['add'](_0x54bc43=>{_0x54bc43['on']('element:ol',(_0x176940,_0x2d6b93,_0x34bd65)=>{const _0x330606=_0x2d6b93['viewItem'];if(!_0x330606['hasClass']('footnotes-list')||!_0x2d6b93['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x34bd65['consumable']['consume'](_0x330606,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x434677,modelCursor:_0x12bde9}=_0x34bd65['convertChildren'](_0x2d6b93['viewItem'],_0x2d6b93['modelCursor']);_0x2d6b93['modelRange']=_0x434677,_0x2d6b93['modelCursor']=_0x12bde9;}),_0x54bc43['on']('element:hr',(_0x49aad5,_0x26340e,_0x233233)=>{const _0x51c642=_0x26340e['viewItem'];_0x51c642['hasClass']('footnotes-divider')&&_0x26340e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x233233['consumable']['consume'](_0x51c642,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5884d7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x214db3,{writer:_0x44b309})=>v(_0x44b309)}),_0x5884d7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x20fdd7,{writer:_0x2c87d0})=>{const _0x15a197=v(_0x2c87d0,{'data-footnotes-list-label':t('Footnotes')}),_0xc89f9d=_0x5381bf(_0x15a197,_0x2c87d0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2c87d0['setCustomProperty']('footnotesDefinitions',!0x0,_0xc89f9d),_0xc89f9d;}});}['_defineDefinitionConverters'](){const {editor:_0x5e2f7a}=this,{conversion:_0xb0eaad,locale:_0x1264e8}=_0x5e2f7a,_0x502079=_0x5e2f7a['config']['get']('footnotes.multiBlock');_0xb0eaad['for']('upcast')['add'](_0x35cc13=>{_0x35cc13['on']('element:li',(_0x3f228c,_0x570b38,_0x1dc939)=>{const _0xcda13c=_0x570b38['viewItem'];if(!_0xcda13c['hasClass']('footnote-definition')||!_0xcda13c['getAttribute']('id'))return;const _0x4f6123=_0xcda13c['parent'];if(!_0x4f6123['is']('element','ol')||!_0x4f6123['hasClass']('footnotes-list'))return;if(!_0x1dc939['consumable']['test'](_0xcda13c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1f2d92=_0x1dc939['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcda13c['getAttribute']('id')});if(!_0x1dc939['safeInsert'](_0x1f2d92,_0x570b38['modelCursor']))return;_0x1dc939['consumable']['consume'](_0xcda13c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3ba414=Array['from'](_0xcda13c['getChildren']())['find'](_0x7c5839=>_0x7c5839['is']('element')&&_0x7c5839['hasClass']('footnote-content'));for(const _0x3263ac of _0xcda13c['getChildren']())_0x3263ac['is']('element')&&(_0x1dc939['consumable']['consume'](_0x3263ac,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1dc939['consumable']['consume'](_0x3263ac,{'name':!0x0,'classes':'footnote-content'}));if(_0x3ba414){if(_0x502079)_0x1dc939['convertChildren'](_0x3ba414,_0x1f2d92);else{const _0x3f480c=_0x1dc939['writer']['createElement']('footnoteInlineContent');_0x1dc939['writer']['insert'](_0x3f480c,_0x1f2d92),_0x1dc939['convertChildren'](_0x3ba414,_0x3f480c);}}_0x1dc939['updateConversionResult'](_0x1f2d92,_0x570b38);});}),_0xb0eaad['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x78e8e2,{writer:_0x4df8be})=>b(_0x78e8e2,_0x4df8be,_0x1264e8,{'dataPipeline':!0x0})}),_0xb0eaad['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1dd79c,{writer:_0xa10318})=>b(_0x1dd79c,_0xa10318,_0x1264e8)});}['_defineBogusParagraphConverters'](){const {editor:_0x2bd6b2}=this,{conversion:_0x2546c2}=_0x2bd6b2;_0x2bd6b2['config']['get']('footnotes.multiBlock')?(_0x2546c2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2546c2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2bd6b2['model']['document'],'change:data',()=>{!function(_0x9b82f9,_0x194bc0){const _0x2de902=_0x9b82f9['document']['differ'],_0x22fa0e=new Set();for(const _0x5c1ad1 of _0x2de902['getChanges']()){const _0xcd16ad='attribute'==_0x5c1ad1['type']?_0x5c1ad1['range']['start']['parent']:_0x5c1ad1['position']['parent'];_0xcd16ad['is']('element','footnoteDefinition')&&_0x22fa0e['add'](_0xcd16ad);}for(const _0x5dce99 of _0x22fa0e['values']()){const _0x44721c=Array['from'](_0x5dce99['getChildren']())['filter'](_0x471336=>g(_0x471336,_0x194bc0['mapper']));for(const _0x33553c of _0x44721c)_0x194bc0['reconvertItem'](_0x33553c);}}(_0x2bd6b2['model'],_0x2bd6b2['editing']);})):(_0x2546c2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2546c2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5a3664,{writer:_0x336340})=>{const _0x5402dc=_0x336340['createContainerElement']('span');return _0x336340['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5402dc),_0x5402dc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x753733}=this,{editing:_0x37f49b,t:t}=_0x753733,_0x35d347=_0x753733['model']['document']['selection'];_0x753733['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x753733['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x37f49b['view']['document'],'enter',(_0xb64409,_0x53f9c8)=>{const _0x10bc7e=function(_0x2e4c73){const _0x36813c=_0x2e4c73['getSelectedElement']();if(_0x36813c?.['is']('element','footnoteRef'))return _0x36813c;return null;}(_0x35d347);if(_0x10bc7e){const _0x4b91aa=_0x10bc7e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4b91aa),_0x53f9c8['preventDefault'](),_0xb64409['stop']();}},{'context':_0x2f0975});}['_defineClickHandlers'](){const {editor:_0x1edaf1}=this,{editing:_0xf7b79e}=_0x1edaf1;_0x1edaf1['editing']['view']['addObserver'](_0x1c4793),_0x1edaf1['editing']['view']['addObserver'](_0x10d0be);let _0x40cf29=!0x1;this['listenTo'](_0xf7b79e['view']['document'],'pointerdown',(_0x19033d,_0x1e6e62)=>{const {target:_0x3a4720}=_0x1e6e62,_0xdec53b=_0xf7b79e['view']['document']['selection'];_0x40cf29=!!(_0x3a4720?.['is']('element','a')&&_0x3a4720['parent']?.['is']('element','sup')&&_0x3a4720['parent']['hasClass']('footnote'))&&_0xdec53b['getSelectedElement']()===_0x3a4720['parent'];},{'priority':'high'}),this['listenTo'](_0xf7b79e['view']['document'],'click',(_0x20c119,_0x373c38)=>{const {target:_0x15fc5f}=_0x373c38;if(!_0x15fc5f?.['is']('element','a'))return;if(_0x15fc5f['parent']?.['is']('element','sup')&&_0x15fc5f['parent']['hasClass']('footnote')&&!_0x40cf29)return void _0x373c38['preventDefault']();let _0x14d8be=_0x15fc5f['getAttribute']('href');if(!_0x14d8be?.['startsWith']('#'))return;_0x14d8be=_0x14d8be['slice'](0x1);let _0x3b6285=!0x1;(_0x14d8be['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x14d8be['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x14d8be))&&(_0x3b6285=!0x0),_0x3b6285&&(_0x373c38['preventDefault'](),_0x20c119['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1e5bd0}={}){return(_0x5c41d5,{writer:_0x148abd})=>{if(!p(_0x5c41d5))return null;if(!_0x1e5bd0)return _0x148abd['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4c1ff7=_0x148abd['createContainerElement']('p');return _0x148abd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c1ff7),_0x4c1ff7;};}function p(_0x45626d){const {parent:_0x2f3597}=_0x45626d;if(!_0x2f3597?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2f3597['childCount'])return!0x1;for(const _0x2b002f of _0x45626d['getAttributeKeys']())if(!_0x2b002f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2b002f)return!0x1;return!0x0;}function g(_0x11e41f,_0x1a875f){if(!_0x11e41f['is']('element','paragraph'))return!0x1;const _0x31be2e=_0x1a875f['toViewElement'](_0x11e41f);return!!_0x31be2e&&p(_0x11e41f)!==_0x31be2e['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4e8285){return _0x2f0975(_0x4e8285)&&_0x4e8285['is']('containerElement')&&!!_0x4e8285['getCustomProperty']('footnotesDefinitions');}function v(_0x3cabcb,_0x33bfc6={}){const _0x2427a1=_0x3cabcb['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x387c84=_0x3cabcb['createContainerElement']('ol',{'class':'footnotes-list'},_0x3cabcb['createSlot']());return _0x3cabcb['createContainerElement']('div',{'class':'footnotes',..._0x33bfc6},[_0x2427a1,_0x387c84]);}function D(_0x35ddbf,_0x20092a){const _0x46b182=_0x35ddbf['getAttribute']('footnoteId'),_0x2719b1=_0x35ddbf['getAttribute']('footnoteCounter'),_0x3485c5=_0x20092a['createUIElement']('a',{'href':'#'+_0x46b182},function(_0x5a3c78){const _0x55bb8d=this['toDomElement'](_0x5a3c78);return _0x55bb8d['textContent']=_0x2719b1,_0x55bb8d;}),_0x309bb8=_0x20092a['createContainerElement']('sup',{'id':'ref-'+_0x46b182,'class':'footnote'},[_0x3485c5]);return _0x309bb8['getFillerOffset']=()=>null,_0x309bb8;}function b(_0x1c54e5,_0x4d43f8,_0x3ee125,{dataPipeline:_0x14a443}={}){const {t:t}=_0x3ee125,_0x375045=_0x1c54e5['getAttribute']('footnoteId'),_0x3f37a4=_0x4d43f8['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x375045},function(_0x161720){const _0x5f38f9=this['toDomElement'](_0x161720);return _0x5f38f9['innerText']='^',_0x5f38f9;}),_0x3ff73a=_0x14a443?_0x4d43f8['createContainerElement']('div',{'class':'footnote-content'}):_0x1d6c5f(_0x4d43f8['createEditableElement']('div',{'class':'footnote-content'}),_0x4d43f8,{'label':t('Footnote\x20content.')});return _0x4d43f8['insert'](_0x4d43f8['createPositionAt'](_0x3ff73a,0x0),_0x4d43f8['createSlot']()),_0x4d43f8['createContainerElement']('li',{'class':'footnote-definition','id':_0x375045},[_0x3f37a4,_0x3ff73a]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45e5ad=_0x278f;(function(_0x557d6d,_0x378d1b){const _0x18456e=_0x278f,_0x2e6577=_0x557d6d();while(!![]){try{const _0x28c529=-parseInt(_0x18456e(0x163))/0x1*(parseInt(_0x18456e(0x15f))/0x2)+-parseInt(_0x18456e(0x15e))/0x3+parseInt(_0x18456e(0x164))/0x4*(parseInt(_0x18456e(0x152))/0x5)+parseInt(_0x18456e(0x15a))/0x6*(parseInt(_0x18456e(0x160))/0x7)+-parseInt(_0x18456e(0x14d))/0x8*(-parseInt(_0x18456e(0x150))/0x9)+parseInt(_0x18456e(0x14e))/0xa*(parseInt(_0x18456e(0x14f))/0xb)+parseInt(_0x18456e(0x154))/0xc*(-parseInt(_0x18456e(0x14c))/0xd);if(_0x28c529===_0x378d1b)break;else _0x2e6577['push'](_0x2e6577['shift']());}catch(_0x52ea8a){_0x2e6577['push'](_0x2e6577['shift']());}}}(_0xadc9,0x991e7));function _0xadc9(){const _0x534902=['1992624wjEhpp','plugins','refresh','value','footnotesListStart','isEnabled','9864LCqryI','getFootnotesDefinitionsObjectElement','change','setAttribute','2363097IdsHjd','26jSwppy','4361tmYXnZ','_updateFootnotesCounters','getAttribute','12251DHFEzy','20LTuSRC','isInteger','model','91gpYTcI','3818488BEqiaJ','10vGRgmL','6285818XkZEtD','9ExsoXz','execute','663540XPpwMa','get'];_0xadc9=function(){return _0x534902;};return _0xadc9();}function _0x278f(_0x4c4db0,_0x4fb3de){const _0xadc977=_0xadc9();return _0x278f=function(_0x278f89,_0x481a6e){_0x278f89=_0x278f89-0x14b;let _0x5355ee=_0xadc977[_0x278f89];return _0x5355ee;},_0x278f(_0x4c4db0,_0x4fb3de);}import{Command as _0x289871}from'ckeditor5/src/core.js';import{FootnotesTracker as _0xa38bf1}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x289871{[_0x45e5ad(0x156)](){const _0x22f90a=_0x45e5ad,{editor:_0x45f5d1}=this,_0xd54625=_0x45f5d1[_0x22f90a(0x155)][_0x22f90a(0x153)](_0xa38bf1)[_0x22f90a(0x15b)]();this[_0x22f90a(0x159)]=!!_0xd54625,this[_0x22f90a(0x157)]=_0xd54625?.[_0x22f90a(0x162)](_0x22f90a(0x158))??null;}[_0x45e5ad(0x151)]({value:_0x58acad}){const _0x9821d5=_0x45e5ad,{editor:_0x4ef19f}=this,_0x1cc256=_0x4ef19f[_0x9821d5(0x155)][_0x9821d5(0x153)](_0xa38bf1),_0x589943=_0x1cc256[_0x9821d5(0x15b)]();_0x589943&&Number[_0x9821d5(0x165)](_0x58acad)&&_0x4ef19f[_0x9821d5(0x14b)][_0x9821d5(0x15c)](_0x6b861b=>{const _0x4f011b=_0x9821d5;_0x6b861b[_0x4f011b(0x15d)](_0x4f011b(0x158),_0x58acad,_0x589943),_0x1cc256[_0x4f011b(0x161)](_0x6b861b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x213522=_0x1d72;(function(_0x2df0c9,_0x34be19){const _0x260b5d=_0x1d72,_0x412c13=_0x2df0c9();while(!![]){try{const _0x3c3c47=-parseInt(_0x260b5d(0x103))/0x1*(-parseInt(_0x260b5d(0xf2))/0x2)+parseInt(_0x260b5d(0xff))/0x3+parseInt(_0x260b5d(0xfc))/0x4+-parseInt(_0x260b5d(0xfe))/0x5+parseInt(_0x260b5d(0x101))/0x6*(parseInt(_0x260b5d(0xf9))/0x7)+-parseInt(_0x260b5d(0x102))/0x8+-parseInt(_0x260b5d(0xfa))/0x9;if(_0x3c3c47===_0x34be19)break;else _0x412c13['push'](_0x412c13['shift']());}catch(_0x3439c9){_0x412c13['push'](_0x412c13['shift']());}}}(_0x2256,0x9a950));function _0x1d72(_0xd3ebc3,_0x39f8aa){const _0x225628=_0x2256();return _0x1d72=function(_0x1d72be,_0x5a006c){_0x1d72be=_0x1d72be-0xee;let _0x408096=_0x225628[_0x1d72be];return _0x408096;},_0x1d72(_0xd3ebc3,_0x39f8aa);}import{Command as _0x53511c}from'ckeditor5/src/core.js';function _0x2256(){const _0x57ff6d=['get','refresh','524972GwWFFp','14197779uyOhtm','change','2183236xUwevM','value','3465910pmZLEv','3505071wbmZIF','model','6BPOOqf','188312IdmWsZ','103478imeMCj','getFootnotesDefinitionsObjectElement','execute','includes','plugins','footnotesListStyle','22nURosR','_updateFootnotesCounters','getAttribute','isEnabled','setAttribute'];_0x2256=function(){return _0x57ff6d;};return _0x2256();}import{FOOTNOTES_DEFINITIONS_STYLES as _0x11a7fc}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x3b3fbe}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x53511c{[_0x213522(0xf8)](){const _0x562255=_0x213522,{editor:_0x23db0b}=this,_0x2a0ce3=_0x23db0b[_0x562255(0xf0)][_0x562255(0xf7)](_0x3b3fbe)[_0x562255(0x104)]();this[_0x562255(0xf5)]=!!_0x2a0ce3,this[_0x562255(0xfd)]=_0x2a0ce3?.[_0x562255(0xf4)](_0x562255(0xf1))??null;}[_0x213522(0xee)]({value:_0x3c0072}){const _0x424867=_0x213522,{editor:_0xec2a52}=this,_0x4a9a51=_0xec2a52[_0x424867(0xf0)][_0x424867(0xf7)](_0x3b3fbe),_0x5a9e7a=_0x4a9a51[_0x424867(0x104)]();_0x5a9e7a&&_0x11a7fc[_0x424867(0xef)](_0x3c0072)&&_0xec2a52[_0x424867(0x100)][_0x424867(0xfb)](_0x4b5029=>{const _0x4779c1=_0x424867;_0x4b5029[_0x4779c1(0xf6)](_0x4779c1(0xf1),_0x3c0072,_0x5a9e7a),_0x4a9a51[_0x4779c1(0xf3)](_0x4b5029);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2259fb=_0x3c91;function _0x3c91(_0x15b374,_0x52e316){const _0x2f5c18=_0x2f5c();return _0x3c91=function(_0x3c91b9,_0x4070a9){_0x3c91b9=_0x3c91b9-0xbd;let _0x3ba3c5=_0x2f5c18[_0x3c91b9];return _0x3ba3c5;},_0x3c91(_0x15b374,_0x52e316);}(function(_0x22d4b4,_0x4315bc){const _0x2a84ad=_0x3c91,_0x1add66=_0x22d4b4();while(!![]){try{const _0xec7acf=parseInt(_0x2a84ad(0xcb))/0x1+parseInt(_0x2a84ad(0xc8))/0x2+-parseInt(_0x2a84ad(0xbf))/0x3*(-parseInt(_0x2a84ad(0xc0))/0x4)+-parseInt(_0x2a84ad(0xc6))/0x5+parseInt(_0x2a84ad(0xbe))/0x6+parseInt(_0x2a84ad(0xcd))/0x7+parseInt(_0x2a84ad(0xc3))/0x8*(-parseInt(_0x2a84ad(0xc4))/0x9);if(_0xec7acf===_0x4315bc)break;else _0x1add66['push'](_0x1add66['shift']());}catch(_0x54a4ad){_0x1add66['push'](_0x1add66['shift']());}}}(_0x2f5c,0x8c28a));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x2259fb(0xbd),_0x2259fb(0xc5),_0x2259fb(0xc2),_0x2259fb(0xc9),_0x2259fb(0xc7),_0x2259fb(0xca),_0x2259fb(0xc1),_0x2259fb(0xcc)];function _0x2f5c(){const _0x34ca9d=['lower-alpha','78660lTzFcD','upper-latin','upper-alpha','1137926Kknzkq','upper-roman','3738735AgkVmh','decimal','4226538elDnzv','3GxvpRs','1167736BbjVSF','lower-roman','lower-latin','323368hunbwO','288VTzIhE','decimal-leading-zero','4200780HoofkX'];_0x2f5c=function(){return _0x34ca9d;};return _0x2f5c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x253eaa=_0x4f24;function _0x31ec(){const _0x228c3a=['footnotesDefinitions','commands','registerPostFixer','differ','for','setFootnoteFormatter','decimal-leading-zero','_getDefaultListStyle','_defineSchema','decimal','lower-roman','nodeAfter','6628STLNHk','viewItem','_formatFootnoteListValue','868896gEaMiJ','position','6847848iNTffg','footnotes-list','_definePostfixer','extend','_getDefaultStartIndex','hasAttribute','init','model','upcast','consumable','removeAttribute','mapper','define','getAttribute','isOfficialPlugin','modelCursor','removeStyle','type','requires','lower-alpha','hasClass','item','checkAttribute','element','FootnotesPropertiesEditing','setAttribute','upper-alpha','writer','insert','toUpperCase','find','downcast','getItems','config','plugins','lower-latin','name','upper-roman','_updateFootnotesCounters','from','4504230DBkjhZ','padStart','max','1024938TbBILA','toLowerCase','parent','document','1443XPGduW','footnotesStart','$text','pluginName','getStyle','consume','parseInt','toViewElement','footnotesStyle','element:ol','footnotes.footnotesProperties.defaultListStyle','add','schema','list-style-type','footnotesListStart','7230630PRyKNM','getChildren','floor','_defineConverters','isNaN','get','footnotes.footnotesProperties.defaultStartIndex','48kDkkLh','footnotesListStyle','start','isPremiumPlugin','editor','attribute:footnotesListStart:footnotesDefinitions','898261mqkMCv','setStyle','fromCharCode','_defineFormatter','attribute:footnotesListStyle:footnotesDefinitions','createRangeOn','getChanges','upper-latin'];_0x31ec=function(){return _0x228c3a;};return _0x31ec();}(function(_0x3c6390,_0x40e66e){const _0x179246=_0x4f24,_0x3757e8=_0x3c6390();while(!![]){try{const _0x3e93b2=-parseInt(_0x179246(0x235))/0x1+parseInt(_0x179246(0x215))/0x2+-parseInt(_0x179246(0x219))/0x3*(-parseInt(_0x179246(0x249))/0x4)+parseInt(_0x179246(0x228))/0x5+-parseInt(_0x179246(0x24e))/0x6+-parseInt(_0x179246(0x24c))/0x7*(-parseInt(_0x179246(0x22f))/0x8)+-parseInt(_0x179246(0x212))/0x9;if(_0x3e93b2===_0x40e66e)break;else _0x3757e8['push'](_0x3757e8['shift']());}catch(_0x4e248c){_0x3757e8['push'](_0x3757e8['shift']());}}}(_0x31ec,0xea755));import{Plugin as _0x39b9fe}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x43fe61}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x182384}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x567339}from'../footnotestracker.js';import{FootnotesEditing as _0x42b8bf}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x39b9fe{static get[_0x253eaa(0x21c)](){const _0x43e977=_0x253eaa;return _0x43e977(0x202);}static get[_0x253eaa(0x1fc)](){return[_0x42b8bf,_0x567339];}static get[_0x253eaa(0x1f8)](){return!0x0;}static get[_0x253eaa(0x232)](){return!0x0;}[_0x253eaa(0x254)](){const _0x420135=_0x253eaa,{editor:_0x42ba08}=this;_0x42ba08[_0x420135(0x20b)][_0x420135(0x1f6)](_0x420135(0x223),_0x420135(0x246)),_0x42ba08[_0x420135(0x20b)][_0x420135(0x1f6)](_0x420135(0x22e),0x1),_0x42ba08[_0x420135(0x23e)][_0x420135(0x224)](_0x420135(0x221),new _0x43fe61(_0x42ba08)),_0x42ba08[_0x420135(0x23e)][_0x420135(0x224)](_0x420135(0x21a),new _0x182384(_0x42ba08)),this[_0x420135(0x245)](),this[_0x420135(0x22b)](),this[_0x420135(0x238)](),this[_0x420135(0x250)]();}[_0x253eaa(0x245)](){const _0x248ea0=_0x253eaa,{editor:_0x961e30}=this,{schema:_0x2e7284}=_0x961e30[_0x248ea0(0x255)];_0x2e7284[_0x248ea0(0x251)](_0x248ea0(0x23d),{'allowAttributes':[_0x248ea0(0x230),_0x248ea0(0x227)]});}[_0x253eaa(0x22b)](){const _0x1d7a83=_0x253eaa,{editor:_0x380727}=this,{conversion:_0x252397,model:_0x5d06b3}=_0x380727,{schema:_0x4f6a49}=_0x5d06b3;_0x252397[_0x1d7a83(0x241)](_0x1d7a83(0x256))[_0x1d7a83(0x224)](_0x5c0f9c=>{const _0x5dea62=_0x1d7a83;_0x5c0f9c['on'](_0x5dea62(0x222),(_0x51fdd3,_0x1d74c6,_0x4976b8)=>{const _0x5ef2a9=_0x5dea62,_0x12b532=_0x1d74c6[_0x5ef2a9(0x24a)],_0xbb2898=_0x1d74c6[_0x5ef2a9(0x1f9)]?.[_0x5ef2a9(0x217)];_0x12b532[_0x5ef2a9(0x1fe)](_0x5ef2a9(0x24f))&&_0xbb2898?.['is'](_0x5ef2a9(0x201),_0x5ef2a9(0x23d))&&(function(_0x3d67d4,_0x43a58c,_0x164c1b,_0x9c554e){const _0x22d6f4=_0x5ef2a9;if(!_0x9c554e[_0x22d6f4(0x200)](_0x43a58c,_0x22d6f4(0x227)))return;let _0x216d08=0x1;const _0x4dd24c=_0x164c1b[_0x22d6f4(0x257)][_0x22d6f4(0x21e)](_0x3d67d4,{'attributes':_0x22d6f4(0x231)});if(_0x4dd24c){const _0xe945ac=Number[_0x22d6f4(0x21f)](_0x3d67d4[_0x22d6f4(0x1f7)](_0x22d6f4(0x231)),0xa);Number[_0x22d6f4(0x22c)](_0xe945ac)||(_0x216d08=_0xe945ac);}!_0x4dd24c&&_0x43a58c[_0x22d6f4(0x253)](_0x22d6f4(0x227))||_0x164c1b[_0x22d6f4(0x205)][_0x22d6f4(0x203)](_0x22d6f4(0x227),_0x216d08,_0x43a58c);}(_0x12b532,_0xbb2898,_0x4976b8,_0x4f6a49),function(_0x48c2b9,_0x3f618b,_0x5328f6,_0x53667b){const _0x5a947a=_0x5ef2a9;if(!_0x53667b[_0x5a947a(0x200)](_0x3f618b,_0x5a947a(0x230)))return;let _0x227b30=_0x5a947a(0x246),_0x63f5fe=!0x1;if(_0x5328f6[_0x5a947a(0x257)][_0x5a947a(0x21e)](_0x48c2b9,{'attributes':_0x5a947a(0x1fb)})){const _0x8fcdb1={0x1:_0x5a947a(0x246),'a':_0x5a947a(0x1fd),'A':_0x5a947a(0x204),'i':_0x5a947a(0x247),'I':_0x5a947a(0x20f)}[_0x48c2b9[_0x5a947a(0x1f7)](_0x5a947a(0x1fb))];_0x8fcdb1&&(_0x227b30=_0x8fcdb1),_0x63f5fe=!0x0;}_0x5328f6[_0x5a947a(0x257)][_0x5a947a(0x21e)](_0x48c2b9,{'styles':_0x5a947a(0x226)})&&(_0x227b30=function(_0x16c631){const _0x1c0eac=_0x5a947a;switch(_0x16c631){case _0x1c0eac(0x1fd):return _0x1c0eac(0x20d);case _0x1c0eac(0x204):return _0x1c0eac(0x23c);default:return _0x16c631;}}(_0x48c2b9[_0x5a947a(0x21d)](_0x5a947a(0x226))),_0x63f5fe=!0x0),!_0x63f5fe&&_0x3f618b[_0x5a947a(0x253)](_0x5a947a(0x230))||_0x5328f6[_0x5a947a(0x205)][_0x5a947a(0x203)](_0x5a947a(0x230),_0x227b30,_0x3f618b);}(_0x12b532,_0xbb2898,_0x4976b8,_0x4f6a49));});}),_0x252397[_0x1d7a83(0x241)](_0x1d7a83(0x209))[_0x1d7a83(0x224)](_0x3ff147=>{const _0x507b1e=_0x1d7a83;_0x3ff147['on'](_0x507b1e(0x234),(_0x1afba4,_0x187462,_0x284060)=>{const _0x5a7704=_0x507b1e;if(!_0x284060[_0x5a7704(0x257)][_0x5a7704(0x21e)](_0x187462[_0x5a7704(0x1ff)],_0x1afba4[_0x5a7704(0x20e)]))return;const _0x3a9f9d=M(_0x187462[_0x5a7704(0x1ff)],_0x284060[_0x5a7704(0x1f5)]),{attributeNewValue:_0x2aa33d}=_0x187462;null==_0x2aa33d||0x1===_0x2aa33d?_0x284060[_0x5a7704(0x205)][_0x5a7704(0x1f4)](_0x5a7704(0x231),_0x3a9f9d):_0x284060[_0x5a7704(0x205)][_0x5a7704(0x203)](_0x5a7704(0x231),String(_0x2aa33d),_0x3a9f9d);}),_0x3ff147['on'](_0x507b1e(0x239),(_0x18b5a2,_0x1499fd,_0xca11a8)=>{const _0x1d7a25=_0x507b1e;if(!_0xca11a8[_0x1d7a25(0x257)][_0x1d7a25(0x21e)](_0x1499fd[_0x1d7a25(0x1ff)],_0x18b5a2[_0x1d7a25(0x20e)]))return;const _0x2a0f24=M(_0x1499fd[_0x1d7a25(0x1ff)],_0xca11a8[_0x1d7a25(0x1f5)]),{attributeNewValue:_0x5b1adf}=_0x1499fd;_0x5b1adf&&_0x1d7a25(0x246)!==_0x5b1adf?_0xca11a8[_0x1d7a25(0x205)][_0x1d7a25(0x236)](_0x1d7a25(0x226),_0x5b1adf,_0x2a0f24):_0xca11a8[_0x1d7a25(0x205)][_0x1d7a25(0x1fa)](_0x1d7a25(0x226),_0x2a0f24);});});}[_0x253eaa(0x250)](){const _0x16c3b6=_0x253eaa,{editor:_0x63daf9}=this,{model:_0x16e2a7}=_0x63daf9,_0x4194c5=_0x63daf9[_0x16c3b6(0x20c)][_0x16c3b6(0x22d)](_0x567339),_0x3a48b=this[_0x16c3b6(0x244)](),_0x4f36b4=this[_0x16c3b6(0x252)]();_0x16e2a7[_0x16c3b6(0x218)][_0x16c3b6(0x23f)](_0xcd66f6=>{const _0x119a0b=_0x16c3b6,_0x336a0b=_0x16e2a7[_0x119a0b(0x218)][_0x119a0b(0x240)][_0x119a0b(0x23b)]();let _0xf8acab=!0x1;for(const _0x2f4065 of _0x336a0b){if(_0x119a0b(0x206)!==_0x2f4065[_0x119a0b(0x1fb)]||_0x119a0b(0x21b)===_0x2f4065[_0x119a0b(0x20e)])continue;const _0x2af76e=_0x16e2a7[_0x119a0b(0x23a)](_0x2f4065[_0x119a0b(0x24d)][_0x119a0b(0x248)]);for(const _0x113cff of _0x2af76e[_0x119a0b(0x20a)]())_0x113cff['is'](_0x119a0b(0x201),_0x119a0b(0x23d))&&(!_0x113cff[_0x119a0b(0x253)](_0x119a0b(0x227))&&_0x16e2a7[_0x119a0b(0x225)][_0x119a0b(0x200)](_0x113cff,_0x119a0b(0x227))&&(_0xcd66f6[_0x119a0b(0x203)](_0x119a0b(0x227),_0x4f36b4,_0x113cff),_0xf8acab=!0x0),!_0x113cff[_0x119a0b(0x253)](_0x119a0b(0x230))&&_0x16e2a7[_0x119a0b(0x225)][_0x119a0b(0x200)](_0x113cff,_0x119a0b(0x230))&&(_0xcd66f6[_0x119a0b(0x203)](_0x119a0b(0x230),_0x3a48b,_0x113cff),_0xf8acab=!0x0));}return _0xf8acab&&_0x4194c5[_0x119a0b(0x210)](_0xcd66f6),_0xf8acab;});}[_0x253eaa(0x238)](){const _0x13e61e=_0x253eaa,{editor:_0x5db8f6}=this;_0x5db8f6[_0x13e61e(0x20c)][_0x13e61e(0x22d)](_0x567339)[_0x13e61e(0x242)](_0x3e01c0=>this[_0x13e61e(0x24b)](_0x3e01c0));}[_0x253eaa(0x244)](){const _0x2ed458=_0x253eaa;return this[_0x2ed458(0x233)][_0x2ed458(0x20b)][_0x2ed458(0x22d)](_0x2ed458(0x223));}[_0x253eaa(0x252)](){const _0x40f1d8=_0x253eaa;return this[_0x40f1d8(0x233)][_0x40f1d8(0x20b)][_0x40f1d8(0x22d)](_0x40f1d8(0x22e));}[_0x253eaa(0x24b)]({container:_0x37a4e3,value:_0x595a39,digits:_0x41de65}){const _0x4ae520=_0x253eaa,_0xdd2f10=_0x37a4e3[_0x4ae520(0x1f7)](_0x4ae520(0x230)),_0x9b1393=_0x37a4e3[_0x4ae520(0x1f7)](_0x4ae520(0x227)),_0x3f98df=Math[_0x4ae520(0x22a)](_0x595a39)+(_0x9b1393??0x1)-0x1;switch(_0xdd2f10){case _0x4ae520(0x243):return function(_0x24e1d9,_0x4c07cc){const _0x578d5d=_0x4ae520;return String(_0x24e1d9)[_0x578d5d(0x213)](_0x4c07cc,'0');}(_0x3f98df,Math[_0x4ae520(0x214)](0x2,_0x41de65));case _0x4ae520(0x1fd):case _0x4ae520(0x20d):return N(_0x3f98df,!0x1);case _0x4ae520(0x204):case _0x4ae520(0x23c):return N(_0x3f98df,!0x0);case _0x4ae520(0x247):return X(_0x3f98df,!0x1);case _0x4ae520(0x20f):return X(_0x3f98df,!0x0);default:return String(_0x3f98df);}}}function M(_0x2e3c63,_0x2a4fb3){const _0x9937b6=_0x253eaa,_0x4ed98f=_0x2a4fb3[_0x9937b6(0x220)](_0x2e3c63);return Array[_0x9937b6(0x211)](_0x4ed98f[_0x9937b6(0x229)]())[_0x9937b6(0x208)](_0x39b003=>_0x39b003['is'](_0x9937b6(0x201),'ol')&&_0x39b003[_0x9937b6(0x1fe)](_0x9937b6(0x24f)));}function N(_0xc53ac1,_0x5d8f01){const _0x2d12bf=_0x253eaa;let _0x18fd9b='',_0x1e0210=_0xc53ac1;for(;_0x1e0210>0x0;){const _0x42aa7b=(_0x1e0210-0x1)%0x1a;_0x18fd9b=String[_0x2d12bf(0x237)](0x61+_0x42aa7b)+_0x18fd9b,_0x1e0210=Math[_0x2d12bf(0x22a)]((_0x1e0210-0x1)/0x1a);}return _0x5d8f01?_0x18fd9b[_0x2d12bf(0x207)]():_0x18fd9b;}function _0x4f24(_0x43fac6,_0x2a8eec){const _0x31ec53=_0x31ec();return _0x4f24=function(_0x4f24f1,_0x37099f){_0x4f24f1=_0x4f24f1-0x1f4;let _0x4e393e=_0x31ec53[_0x4f24f1];return _0x4e393e;},_0x4f24(_0x43fac6,_0x2a8eec);}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(_0x3f687f,_0x108276){const _0x2aad89=_0x253eaa;let _0x4cd8cc='',_0x400abc=_0x3f687f;for(const {value:_0x2db993,numeral:_0x1daed6}of V)for(;_0x400abc>=_0x2db993;)_0x4cd8cc+=_0x1daed6,_0x400abc-=_0x2db993;return _0x108276?_0x4cd8cc:_0x4cd8cc[_0x2aad89(0x216)]();}
|
|
23
|
+
const _0x2ebb08=_0x5848;(function(_0x15f106,_0xf8dce8){const _0x5054c7=_0x5848,_0x88ef88=_0x15f106();while(!![]){try{const _0x4b7ed3=parseInt(_0x5054c7(0x1ed))/0x1+-parseInt(_0x5054c7(0x1f5))/0x2*(parseInt(_0x5054c7(0x1f3))/0x3)+parseInt(_0x5054c7(0x236))/0x4+-parseInt(_0x5054c7(0x215))/0x5+parseInt(_0x5054c7(0x22d))/0x6+-parseInt(_0x5054c7(0x1d4))/0x7+parseInt(_0x5054c7(0x1f9))/0x8*(parseInt(_0x5054c7(0x1d6))/0x9);if(_0x4b7ed3===_0xf8dce8)break;else _0x88ef88['push'](_0x88ef88['shift']());}catch(_0x1f3032){_0x88ef88['push'](_0x88ef88['shift']());}}}(_0x40ef,0x8bce2));import{Plugin as _0x15653a}from'ckeditor5/src/core.js';function _0x5848(_0x3be13d,_0x58664f){const _0x40ef1a=_0x40ef();return _0x5848=function(_0x584842,_0x285b3c){_0x584842=_0x584842-0x1d4;let _0x4f69be=_0x40ef1a[_0x584842];return _0x4f69be;},_0x5848(_0x3be13d,_0x58664f);}import{FootnotesStyleCommand as _0x10671d}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x7625f3}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0xc16c86}from'../footnotestracker.js';import{FootnotesEditing as _0x2f3fa1}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x15653a{static get[_0x2ebb08(0x1df)](){const _0x403140=_0x2ebb08;return _0x403140(0x235);}static get[_0x2ebb08(0x1e7)](){return[_0x2f3fa1,_0xc16c86];}static get[_0x2ebb08(0x1f7)](){return!0x0;}static get[_0x2ebb08(0x222)](){return!0x0;}[_0x2ebb08(0x1ee)](){const _0x5c1641=_0x2ebb08,{editor:_0x3e9770}=this;_0x3e9770[_0x5c1641(0x219)][_0x5c1641(0x204)](_0x5c1641(0x1e1),_0x5c1641(0x1ef)),_0x3e9770[_0x5c1641(0x219)][_0x5c1641(0x204)](_0x5c1641(0x1fc),0x1),_0x3e9770[_0x5c1641(0x22f)][_0x5c1641(0x20b)](_0x5c1641(0x230),new _0x10671d(_0x3e9770)),_0x3e9770[_0x5c1641(0x22f)][_0x5c1641(0x20b)](_0x5c1641(0x1e3),new _0x7625f3(_0x3e9770)),this[_0x5c1641(0x1e0)](),this[_0x5c1641(0x20a)](),this[_0x5c1641(0x21c)](),this[_0x5c1641(0x234)]();}[_0x2ebb08(0x1e0)](){const _0x48c66f=_0x2ebb08,{editor:_0x4f6d}=this,{schema:_0x3bf4be}=_0x4f6d[_0x48c66f(0x1e5)];_0x3bf4be[_0x48c66f(0x1db)](_0x48c66f(0x1f2),{'allowAttributes':[_0x48c66f(0x1eb),_0x48c66f(0x1d9)]});}[_0x2ebb08(0x20a)](){const _0x2e41da=_0x2ebb08,{editor:_0x36c4c7}=this,{conversion:_0x455d7f,model:_0x10d3b5}=_0x36c4c7,{schema:_0x29d56c}=_0x10d3b5;_0x455d7f[_0x2e41da(0x1ec)](_0x2e41da(0x1e8))[_0x2e41da(0x20b)](_0x13ea35=>{const _0x22eebd=_0x2e41da;_0x13ea35['on'](_0x22eebd(0x201),(_0x16126b,_0x503962,_0x144379)=>{const _0x329299=_0x22eebd,_0x56c3e2=_0x503962[_0x329299(0x1fb)],_0x7559e1=_0x503962[_0x329299(0x1f8)]?.[_0x329299(0x226)];_0x56c3e2[_0x329299(0x221)](_0x329299(0x1e4))&&_0x7559e1?.['is'](_0x329299(0x211),_0x329299(0x1f2))&&(function(_0x57a162,_0x36f13c,_0x4028db,_0x4fa5de){const _0x49de4f=_0x329299;if(!_0x4fa5de[_0x49de4f(0x1f1)](_0x36f13c,_0x49de4f(0x1d9)))return;let _0x37d145=0x1;const _0x6f7c7f=_0x4028db[_0x49de4f(0x22b)][_0x49de4f(0x22c)](_0x57a162,{'attributes':_0x49de4f(0x206)});if(_0x6f7c7f){const _0x48d240=Number[_0x49de4f(0x229)](_0x57a162[_0x49de4f(0x1f0)](_0x49de4f(0x206)),0xa);Number[_0x49de4f(0x217)](_0x48d240)||(_0x37d145=_0x48d240);}!_0x6f7c7f&&_0x36f13c[_0x49de4f(0x21b)](_0x49de4f(0x1d9))||_0x4028db[_0x49de4f(0x231)][_0x49de4f(0x210)](_0x49de4f(0x1d9),_0x37d145,_0x36f13c);}(_0x56c3e2,_0x7559e1,_0x144379,_0x29d56c),function(_0x5c66bc,_0x656ca0,_0x45d265,_0x341fe8){const _0x1b7c1c=_0x329299;if(!_0x341fe8[_0x1b7c1c(0x1f1)](_0x656ca0,_0x1b7c1c(0x1eb)))return;let _0x3cc09c=_0x1b7c1c(0x1ef),_0x96294b=!0x1;if(_0x45d265[_0x1b7c1c(0x22b)][_0x1b7c1c(0x22c)](_0x5c66bc,{'attributes':_0x1b7c1c(0x21f)})){const _0x451bd4={0x1:_0x1b7c1c(0x1ef),'a':_0x1b7c1c(0x1d8),'A':_0x1b7c1c(0x1dc),'i':_0x1b7c1c(0x1e9),'I':_0x1b7c1c(0x1fe)}[_0x5c66bc[_0x1b7c1c(0x1f0)](_0x1b7c1c(0x21f))];_0x451bd4&&(_0x3cc09c=_0x451bd4),_0x96294b=!0x0;}_0x45d265[_0x1b7c1c(0x22b)][_0x1b7c1c(0x22c)](_0x5c66bc,{'styles':_0x1b7c1c(0x218)})&&(_0x3cc09c=function(_0x418cd1){const _0x909010=_0x1b7c1c;switch(_0x418cd1){case _0x909010(0x1d8):return _0x909010(0x1d7);case _0x909010(0x1dc):return _0x909010(0x1f6);default:return _0x418cd1;}}(_0x5c66bc[_0x1b7c1c(0x20f)](_0x1b7c1c(0x218))),_0x96294b=!0x0),!_0x96294b&&_0x656ca0[_0x1b7c1c(0x21b)](_0x1b7c1c(0x1eb))||_0x45d265[_0x1b7c1c(0x231)][_0x1b7c1c(0x210)](_0x1b7c1c(0x1eb),_0x3cc09c,_0x656ca0);}(_0x56c3e2,_0x7559e1,_0x144379,_0x29d56c));});}),_0x455d7f[_0x2e41da(0x1ec)](_0x2e41da(0x1d5))[_0x2e41da(0x20b)](_0x298e01=>{const _0x525f21=_0x2e41da;_0x298e01['on'](_0x525f21(0x207),(_0x192b07,_0x555013,_0x5cfd89)=>{const _0xf552e9=_0x525f21;if(!_0x5cfd89[_0xf552e9(0x22b)][_0xf552e9(0x22c)](_0x555013[_0xf552e9(0x213)],_0x192b07[_0xf552e9(0x21a)]))return;const _0x31f001=M(_0x555013[_0xf552e9(0x213)],_0x5cfd89[_0xf552e9(0x208)]),{attributeNewValue:_0x57344f}=_0x555013;null==_0x57344f||0x1===_0x57344f?_0x5cfd89[_0xf552e9(0x231)][_0xf552e9(0x1dd)](_0xf552e9(0x206),_0x31f001):_0x5cfd89[_0xf552e9(0x231)][_0xf552e9(0x210)](_0xf552e9(0x206),String(_0x57344f),_0x31f001);}),_0x298e01['on'](_0x525f21(0x20c),(_0x3b7696,_0x188dd6,_0x28fba0)=>{const _0x5432ec=_0x525f21;if(!_0x28fba0[_0x5432ec(0x22b)][_0x5432ec(0x22c)](_0x188dd6[_0x5432ec(0x213)],_0x3b7696[_0x5432ec(0x21a)]))return;const _0x27329d=M(_0x188dd6[_0x5432ec(0x213)],_0x28fba0[_0x5432ec(0x208)]),{attributeNewValue:_0x128c55}=_0x188dd6;_0x128c55&&_0x5432ec(0x1ef)!==_0x128c55?_0x28fba0[_0x5432ec(0x231)][_0x5432ec(0x21e)](_0x5432ec(0x218),_0x128c55,_0x27329d):_0x28fba0[_0x5432ec(0x231)][_0x5432ec(0x1fa)](_0x5432ec(0x218),_0x27329d);});});}[_0x2ebb08(0x234)](){const _0x485454=_0x2ebb08,{editor:_0x1f808b}=this,{model:_0x1b738e}=_0x1f808b,_0x587f65=_0x1f808b[_0x485454(0x20d)][_0x485454(0x203)](_0xc16c86),_0x50e19f=this[_0x485454(0x1fd)](),_0xdad741=this[_0x485454(0x209)]();_0x1b738e[_0x485454(0x227)][_0x485454(0x216)](_0x45dbf9=>{const _0x2845fd=_0x485454,_0x537d9=_0x1b738e[_0x2845fd(0x227)][_0x2845fd(0x20e)][_0x2845fd(0x1ea)]();let _0xe75d9a=!0x1;for(const _0x23ebb2 of _0x537d9){if(_0x2845fd(0x232)!==_0x23ebb2[_0x2845fd(0x21f)]||_0x2845fd(0x233)===_0x23ebb2[_0x2845fd(0x21a)])continue;const _0x1d8c21=_0x1b738e[_0x2845fd(0x1e6)](_0x23ebb2[_0x2845fd(0x200)][_0x2845fd(0x212)]);for(const _0x478de5 of _0x1d8c21[_0x2845fd(0x205)]())_0x478de5['is'](_0x2845fd(0x211),_0x2845fd(0x1f2))&&(!_0x478de5[_0x2845fd(0x21b)](_0x2845fd(0x1d9))&&_0x1b738e[_0x2845fd(0x214)][_0x2845fd(0x1f1)](_0x478de5,_0x2845fd(0x1d9))&&(_0x45dbf9[_0x2845fd(0x210)](_0x2845fd(0x1d9),_0xdad741,_0x478de5),_0xe75d9a=!0x0),!_0x478de5[_0x2845fd(0x21b)](_0x2845fd(0x1eb))&&_0x1b738e[_0x2845fd(0x214)][_0x2845fd(0x1f1)](_0x478de5,_0x2845fd(0x1eb))&&(_0x45dbf9[_0x2845fd(0x210)](_0x2845fd(0x1eb),_0x50e19f,_0x478de5),_0xe75d9a=!0x0));}return _0xe75d9a&&_0x587f65[_0x2845fd(0x1f4)](_0x45dbf9),_0xe75d9a;});}[_0x2ebb08(0x21c)](){const _0x4242cd=_0x2ebb08,{editor:_0x1c8fea}=this;_0x1c8fea[_0x4242cd(0x20d)][_0x4242cd(0x203)](_0xc16c86)[_0x4242cd(0x1ff)](_0x339d6d=>this[_0x4242cd(0x21d)](_0x339d6d));}[_0x2ebb08(0x1fd)](){const _0x3d01f1=_0x2ebb08;return this[_0x3d01f1(0x223)][_0x3d01f1(0x219)][_0x3d01f1(0x203)](_0x3d01f1(0x1e1));}[_0x2ebb08(0x209)](){const _0xa39a4c=_0x2ebb08;return this[_0xa39a4c(0x223)][_0xa39a4c(0x219)][_0xa39a4c(0x203)](_0xa39a4c(0x1fc));}[_0x2ebb08(0x21d)]({container:_0xb91af4,value:_0x53087c,digits:_0x44879f}){const _0x1e6963=_0x2ebb08,_0x538fbe=_0xb91af4[_0x1e6963(0x1f0)](_0x1e6963(0x1eb)),_0x28cc46=_0xb91af4[_0x1e6963(0x1f0)](_0x1e6963(0x1d9)),_0x174520=Math[_0x1e6963(0x237)](_0x53087c)+(_0x28cc46??0x1)-0x1;switch(_0x538fbe){case _0x1e6963(0x22e):return function(_0xc82231,_0x3e96ea){const _0xcc8e0a=_0x1e6963;return String(_0xc82231)[_0xcc8e0a(0x1de)](_0x3e96ea,'0');}(_0x174520,Math[_0x1e6963(0x220)](0x2,_0x44879f));case _0x1e6963(0x1d8):case _0x1e6963(0x1d7):return N(_0x174520,!0x1);case _0x1e6963(0x1dc):case _0x1e6963(0x1f6):return N(_0x174520,!0x0);case _0x1e6963(0x1e9):return X(_0x174520,!0x1);case _0x1e6963(0x1fe):return X(_0x174520,!0x0);default:return String(_0x174520);}}}function _0x40ef(){const _0x40f7aa=['registerPostFixer','isNaN','list-style-type','config','name','hasAttribute','_defineFormatter','_formatFootnoteListValue','setStyle','type','max','hasClass','isPremiumPlugin','editor','toUpperCase','getChildren','parent','document','fromCharCode','parseInt','find','consumable','consume','2019474cIIkbM','decimal-leading-zero','commands','footnotesStyle','writer','insert','$text','_definePostfixer','FootnotesPropertiesEditing','2800280QZdTBz','floor','5274122lZtXmJ','downcast','9JzghBG','lower-latin','lower-alpha','footnotesListStart','toLowerCase','extend','upper-alpha','removeAttribute','padStart','pluginName','_defineSchema','footnotes.footnotesProperties.defaultListStyle','toViewElement','footnotesStart','footnotes-list','model','createRangeOn','requires','upcast','lower-roman','getChanges','footnotesListStyle','for','134929PGMWZf','init','decimal','getAttribute','checkAttribute','footnotesDefinitions','1584333GtxhVw','_updateFootnotesCounters','2nwbPDI','upper-latin','isOfficialPlugin','modelCursor','12179200MDZQKu','removeStyle','viewItem','footnotes.footnotesProperties.defaultStartIndex','_getDefaultListStyle','upper-roman','setFootnoteFormatter','position','element:ol','from','get','define','getItems','start','attribute:footnotesListStart:footnotesDefinitions','mapper','_getDefaultStartIndex','_defineConverters','add','attribute:footnotesListStyle:footnotesDefinitions','plugins','differ','getStyle','setAttribute','element','nodeAfter','item','schema','4198895LcZrSj'];_0x40ef=function(){return _0x40f7aa;};return _0x40ef();}function M(_0x766c9b,_0x1f253f){const _0x237c5b=_0x2ebb08,_0x4abf44=_0x1f253f[_0x237c5b(0x1e2)](_0x766c9b);return Array[_0x237c5b(0x202)](_0x4abf44[_0x237c5b(0x225)]())[_0x237c5b(0x22a)](_0x484dc4=>_0x484dc4['is'](_0x237c5b(0x211),'ol')&&_0x484dc4[_0x237c5b(0x221)](_0x237c5b(0x1e4)));}function N(_0x2bf9d1,_0x1d05cd){const _0x30aa2e=_0x2ebb08;let _0x4bd6d3='',_0x4fcef6=_0x2bf9d1;for(;_0x4fcef6>0x0;){const _0x4cda14=(_0x4fcef6-0x1)%0x1a;_0x4bd6d3=String[_0x30aa2e(0x228)](0x61+_0x4cda14)+_0x4bd6d3,_0x4fcef6=Math[_0x30aa2e(0x237)]((_0x4fcef6-0x1)/0x1a);}return _0x1d05cd?_0x4bd6d3[_0x30aa2e(0x224)]():_0x4bd6d3;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x53b65d,_0x1f1812){const _0x3c86c1=_0x2ebb08;let _0x42b55b='',_0x3f831a=_0x53b65d;for(const {value:_0x1025f8,numeral:_0x1d7b45}of V)for(;_0x3f831a>=_0x1025f8;)_0x42b55b+=_0x1d7b45,_0x3f831a-=_0x1025f8;return _0x1f1812?_0x42b55b:_0x42b55b[_0x3c86c1(0x1da)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x38fe40,ButtonView as _0x3b815f,ContextualBalloon as _0x42ad31,createDropdown as _0x30e5e8}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x17455a}from'ckeditor5/src/widget.js';import{Plugin as _0x257ae6}from'ckeditor5/src/core.js';import{IconFootnote as _0x1f1ffb,IconListStyleDecimal as _0x410824,IconListStyleDecimalLeadingZero as _0x25ef2b,IconListStyleLowerLatin as _0x467a90,IconListStyleLowerRoman as _0xa0d391,IconListStyleUpperLatin as _0x30b48d,IconListStyleUpperRoman as _0x37d5c1}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x2e3c7d}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x323ad2}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x257ae6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x42ad31,_0x17455a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x305aa6}=this,{componentFactory:_0xd60d5b}=_0x305aa6['ui'];_0x305aa6['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xd60d5b['add']('footnotesStyle',function(_0x405aa1){return _0x5c27c4=>{const {t:t}=_0x5c27c4,_0x2d57af=_0x405aa1['commands']['get']('footnotesStyle'),_0x38256c=_0x30e5e8(_0x5c27c4),{buttonView:_0x10547d}=_0x38256c;return _0x38256c['class']='ck-footnotes-styles-dropdown',_0x38256c['bind']('isEnabled')['to'](_0x2d57af,'isEnabled'),_0x10547d['set']({'label':t('Footnotes\x20style'),'icon':_0x1f1ffb,'tooltip':!0x0}),_0x38256c['once']('change:isOpen',()=>{const _0xbd7e52=function({editor:_0x496c42,dropdownView:_0x1d0166}){const {t:t}=_0x496c42['locale'],_0x503be0=t('Footnotes\x20definitions\x20styles'),_0x4f6f44=function(_0x24cd3f){const t=_0x24cd3f['locale']['t'],_0x39c436=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x410824},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x25ef2b},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xa0d391},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x37d5c1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x467a90},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x30b48d}];return _0x39c436['map'](function(_0x1d9fa8){const _0x297956=_0x1d9fa8['locale'];return({label:_0x2a8e8f,icon:_0x11ef38,tooltip:_0x5e5ece,style:_0x5f7a14})=>{const _0x4eedd2=_0x1d9fa8['commands']['get']('footnotesStyle'),_0x1adc92=new _0x3b815f(_0x297956);return _0x1adc92['set']({'label':_0x2a8e8f,'icon':_0x11ef38,'tooltip':_0x5e5ece}),_0x1adc92['bind']('isOn')['to'](_0x4eedd2,'value',_0x21275a=>_0x21275a===_0x5f7a14),_0x1adc92['bind']('isEnabled')['to'](_0x4eedd2,'isEnabled'),_0x1adc92['on']('execute',()=>{_0x1d9fa8['execute']('footnotesStyle',{'value':_0x5f7a14}),_0x1d9fa8['editing']['view']['focus']();}),_0x1adc92;};}(_0x24cd3f));}(_0x496c42),_0x2a2889=new _0x2e3c7d(_0x496c42['locale'],{'styleGridAriaLabel':_0x503be0,'styleButtonViews':_0x4f6f44}),_0xb37a02=_0x496c42['commands']['get']('footnotesStart');return _0x2a2889['startIndexFieldView']['bind']('isEnabled')['to'](_0xb37a02),_0x2a2889['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xb37a02),_0x2a2889['on']('footnotesListStart',(_0x388a5e,_0x59b93d)=>{_0x496c42['execute']('footnotesStart',{'value':_0x59b93d['startIndex']});}),_0x2a2889['delegate']('execute')['to'](_0x1d0166),_0x2a2889;}({'editor':_0x405aa1,'dropdownView':_0x38256c});_0x38256c['panelView']['children']['add'](_0xbd7e52);}),_0x38256c;};}(_0x305aa6));}['afterInit'](){const {editor:_0x23d465}=this,{t:t}=_0x23d465['locale'],_0x2dd9fd=_0x23d465['plugins']['get'](_0x17455a),{defaultPositions:_0x3dbeba}=_0x38fe40;_0x2dd9fd['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x23d465['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x33d6fe=>{let _0x6593e6=_0x33d6fe['getFirstPosition']()?.['parent'];return _0x6593e6?.['is']('$text')&&(_0x6593e6=_0x6593e6['parent']),_0x6593e6?.['is']('element')?_0x6593e6['findAncestor'](_0x323ad2):null;},'positions':[_0x3dbeba['southArrowNorth'],_0x3dbeba['southArrowNorthMiddleWest'],_0x3dbeba['southArrowNorthMiddleEast'],_0x3dbeba['southArrowNorthWest'],_0x3dbeba['southArrowNorthEast'],_0x3dbeba['northArrowSouth'],_0x3dbeba['northArrowSouthMiddleWest'],_0x3dbeba['northArrowSouthMiddleEast'],_0x3dbeba['northArrowSouthWest'],_0x3dbeba['northArrowSouthEast'],_0x3dbeba['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x579f7b,View as _0x31b880,ViewCollection as _0x24aed5,FocusCycler as _0x56eb2f,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x31b880{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x24aed5();['focusCycler'];constructor(_0x3811a7,{styleButtonViews:_0x3710ac,styleGridAriaLabel:_0x540930}){super(_0x3811a7),(this['focusCycler']=new _0x56eb2f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3710ac,_0x540930),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x43433c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x43433c['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x113fb3=_0x36020b=>_0x36020b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x113fb3),this['keystrokes']['set']('arrowleft',_0x113fb3),this['keystrokes']['set']('arrowup',_0x113fb3),this['keystrokes']['set']('arrowdown',_0x113fb3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a0560,_0x409ba5){const _0x2e957a=new _0x31b880(this['locale']);return _0x2e957a['children']=_0x2e957a['createCollection'](),_0x2e957a['children']['addMany'](_0x5a0560),_0x2e957a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x409ba5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2e957a['children']}),_0x2e957a['children']['delegate']('execute')['to'](this),_0x2e957a['focus']=function(){for(const _0x2a49dd of this['children'])if(_0x2a49dd instanceof _0x579f7b&&_0x2a49dd['isOn'])return void _0x2a49dd['focus']();this['children']['first']['focus']();},_0x2e957a['focusTracker']=new ot(),_0x2e957a['keystrokes']=new rt(),_0x2e957a['render'](),_0x2e957a['keystrokes']['listenTo'](_0x2e957a['element']),this['children']['add'](_0x2e957a),_0x2e957a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x386ab1=this['_createStartIndexPropertyView'](),_0x3a329a=[_0x386ab1],_0x156d9c=new st(this['locale'],_0x3a329a);return _0x156d9c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x156d9c['buttonView']['bind']('isEnabled')['toMany'](_0x3a329a,'isEnabled',(..._0x4ac940)=>_0x4ac940['some'](_0xeff40b=>_0xeff40b)),_0x156d9c['buttonView']['on']('change:isEnabled',(_0x5764bb,_0xd0b80f,_0x3272d7)=>{_0x3272d7||(_0x156d9c['isCollapsed']=!0x0);}),this['children']['add'](_0x156d9c),[_0x386ab1,_0x156d9c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4831ce=new it(this['locale'],et);return _0x4831ce['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4831ce['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4831ce['fieldView']['on']('input',()=>{const _0x1d826d=_0x4831ce['fieldView']['element'],_0x31c9c3=_0x1d826d['valueAsNumber'];Number['isNaN'](_0x31c9c3)?_0x4831ce['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1d826d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x31c9c3}):_0x4831ce['errorText']=t(_0x31c9c3<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4831ce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x46ae6f=_0x4bd8;(function(_0x3ea6a4,_0x1a03a){var _0x4eeacf=_0x4bd8,_0x39cc13=_0x3ea6a4();while(!![]){try{var _0x52a402=parseInt(_0x4eeacf(0x6b))/0x1+parseInt(_0x4eeacf(0x69))/0x2+-parseInt(_0x4eeacf(0x75))/0x3*(-parseInt(_0x4eeacf(0x72))/0x4)+parseInt(_0x4eeacf(0x71))/0x5*(parseInt(_0x4eeacf(0x73))/0x6)+parseInt(_0x4eeacf(0x6d))/0x7*(-parseInt(_0x4eeacf(0x6f))/0x8)+parseInt(_0x4eeacf(0x74))/0x9+-parseInt(_0x4eeacf(0x68))/0xa;if(_0x52a402===_0x1a03a)break;else _0x39cc13['push'](_0x39cc13['shift']());}catch(_0x4a4b18){_0x39cc13['push'](_0x39cc13['shift']());}}}(_0x2d36,0x7032f));import{Plugin as _0x38bf45}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x176f7d}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x540a1c}from'./footnotesproperties/footnotespropertiesui.js';function _0x4bd8(_0x7950ad,_0x497119){var _0x2d36be=_0x2d36();return _0x4bd8=function(_0x4bd88a,_0x5cb8a0){_0x4bd88a=_0x4bd88a-0x67;var _0x3bd266=_0x2d36be[_0x4bd88a];return _0x3bd266;},_0x4bd8(_0x7950ad,_0x497119);}export class FootnotesProperties extends _0x38bf45{static get[_0x46ae6f(0x67)](){var _0x338706=_0x46ae6f;return _0x338706(0x6c);}static get[_0x46ae6f(0x6a)](){return[_0x176f7d,_0x540a1c];}static get[_0x46ae6f(0x70)](){return!0x0;}static get[_0x46ae6f(0x6e)](){return!0x0;}}function _0x2d36(){var _0x447adc=['FootnotesProperties','168RKiQCx','isPremiumPlugin','215984GxeERg','isOfficialPlugin','4575VhtsDI','284XQzdUY','4848wDmyir','4943673DExaXa','31047vlxbqy','pluginName','14733060xEgxmo','933562OxXTWf','requires','90648yuFZlV'];_0x2d36=function(){return _0x447adc;};return _0x2d36();}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x8f0202=_0x8e89;function _0x8e89(_0x22d872,_0x4c3355){const _0x347e74=_0x347e();return _0x8e89=function(_0x8e8907,_0x4584fd){_0x8e8907=_0x8e8907-0x136;let _0x4626f9=_0x347e74[_0x8e8907];return _0x4626f9;},_0x8e89(_0x22d872,_0x4c3355);}(function(_0x57dc6f,_0x3da0af){const _0x1e1744=_0x8e89,_0x357269=_0x57dc6f();while(!![]){try{const _0x2c9e24=parseInt(_0x1e1744(0x169))/0x1*(parseInt(_0x1e1744(0x179))/0x2)+-parseInt(_0x1e1744(0x16d))/0x3+parseInt(_0x1e1744(0x13a))/0x4+parseInt(_0x1e1744(0x148))/0x5*(-parseInt(_0x1e1744(0x187))/0x6)+parseInt(_0x1e1744(0x17a))/0x7*(parseInt(_0x1e1744(0x19c))/0x8)+parseInt(_0x1e1744(0x193))/0x9*(-parseInt(_0x1e1744(0x191))/0xa)+parseInt(_0x1e1744(0x13c))/0xb*(-parseInt(_0x1e1744(0x19a))/0xc);if(_0x2c9e24===_0x3da0af)break;else _0x357269['push'](_0x357269['shift']());}catch(_0x227178){_0x357269['push'](_0x357269['shift']());}}}(_0x347e,0xb14ec));import{Plugin as _0x2a28c2}from'ckeditor5/src/core.js';function _0x347e(){const _0x242e07=['reset','has','before','remove','footnotesDefinitions','_sortFootnoteDefinitions','splice','_insertEmptyFootnotesDefinitionsContainer','unshift','getChildren','_updateFootnoteRefCounter','indexOf','_handleFootnoteReferencesChanges','rootName','footnoteInlineContent','1867zeKbrQ','insert','_updateFootnotesCounters','differ','591552gLvZza','length','enqueueChange','some','getFootnote','low','compareWith','_footnoteDefsTracker','isPremiumPlugin','after','getAttribute','footnoteCounter','1266gBzoiX','21CoNbIn','_ensureFootnotesDefinitionsContainerExists','listenTo','change:data','isEqual','push','FootnotesTracker','_ensureFootnotesReferencesHaveProperOrder','$graveyard','childCount','_footnotesDefinitions','min','singleton','338646nJzERi','getChanges','root','createRangeOn','set','getFootnotesDefinitionsObjectElement','setAttribute','definition','pluginName','isOfficialPlugin','1640BdLMph','init','34038AfZNKZ','from','_handleInsertedFootnoteReference','_footnoteFormatter','move','createPositionAt','find','301560BumUzn','footnoteDefinition','3224288wBuezS','paragraph','_handleFootnotesDefinitionsObjectSync','_handleRemoveFootnoteReferenceById','_footnoteDefsContainerTracker','5773360jGvlGg','setFootnoteFormatter','385dMNNAw','_handleFootnoteDefinitionsChanges','parent','footnoteRef','getRootNames','get','createRangeIn','editor','reference','getFootnotes','getFootnotesFormatter','findIndex','125BAOzbY','registerPostFixer','footnotes.multiBlock','document','append','config','createPositionBefore','model','_handleFootnotesDefinitionsObjectChanges','high','map','add','createElement','end','_handleMovedFootnoteReference','_footnoteRefsTracker','footnoteId','_footnotes'];_0x347e=function(){return _0x242e07;};return _0x347e();}import{ModelElementTracker as _0x58a88b}from'./modelelementtracker.js';export class FootnotesTracker extends _0x2a28c2{[_0x8f0202(0x159)]=[];[_0x8f0202(0x184)]=null;[_0x8f0202(0x196)]=null;[_0x8f0202(0x139)];[_0x8f0202(0x157)];[_0x8f0202(0x174)];static get[_0x8f0202(0x18f)](){const _0x2dd4eb=_0x8f0202;return _0x2dd4eb(0x180);}static get[_0x8f0202(0x190)](){return!0x0;}static get[_0x8f0202(0x175)](){return!0x0;}constructor(_0x1924e9){const _0x57e029=_0x8f0202;super(_0x1924e9),this[_0x57e029(0x139)]=new _0x58a88b(this[_0x57e029(0x143)][_0x57e029(0x14f)],{'elementName':_0x57e029(0x15e),'getElementKey':()=>_0x57e029(0x186)}),this[_0x57e029(0x157)]=new _0x58a88b(this[_0x57e029(0x143)][_0x57e029(0x14f)],{'elementName':_0x57e029(0x13f),'getElementKey':_0x370065=>_0x370065[_0x57e029(0x177)](_0x57e029(0x158))}),this[_0x57e029(0x174)]=new _0x58a88b(this[_0x57e029(0x143)][_0x57e029(0x14f)],{'elementName':_0x57e029(0x19b),'getElementKey':_0x548ace=>_0x548ace[_0x57e029(0x177)](_0x57e029(0x158))});}[_0x8f0202(0x192)](){const _0x5e3dcc=_0x8f0202,{editor:_0x55625b}=this,{model:_0x33e858,data:_0x255431}=_0x55625b;_0x33e858[_0x5e3dcc(0x14b)][_0x5e3dcc(0x149)](_0x4f067b=>{const _0x3e16ce=_0x5e3dcc,_0x437876=_0x33e858[_0x3e16ce(0x14b)][_0x3e16ce(0x16c)][_0x3e16ce(0x188)]();let _0x244900=!0x1;return this[_0x3e16ce(0x150)](_0x4f067b,_0x437876)&&(_0x244900=!0x0),this[_0x3e16ce(0x13d)](_0x4f067b,_0x437876)&&(_0x244900=!0x0),this[_0x3e16ce(0x166)](_0x4f067b,_0x437876)&&(_0x244900=!0x0),this[_0x3e16ce(0x181)](_0x4f067b)&&(_0x244900=!0x0),this[_0x3e16ce(0x137)](_0x4f067b)&&(_0x244900=!0x0),this[_0x3e16ce(0x15f)](_0x4f067b)&&(_0x244900=!0x0),_0x244900;}),this[_0x5e3dcc(0x17c)](_0x33e858[_0x5e3dcc(0x14b)],_0x5e3dcc(0x17d),()=>{const _0x51e433=_0x5e3dcc;_0x33e858[_0x51e433(0x16f)]({'isUndoable':!0x1},_0x2bfa7f=>{const _0x2ba1da=_0x51e433;this[_0x2ba1da(0x17b)](_0x2bfa7f);});},{'priority':_0x5e3dcc(0x172)}),this[_0x5e3dcc(0x17c)](_0x255431,_0x5e3dcc(0x18b),()=>{const _0x2295ab=_0x5e3dcc;this[_0x2295ab(0x159)]=[],this[_0x2295ab(0x139)][_0x2295ab(0x15a)](),this[_0x2295ab(0x157)][_0x2295ab(0x15a)](),this[_0x2295ab(0x174)][_0x2295ab(0x15a)]();},{'priority':_0x5e3dcc(0x151)});}[_0x8f0202(0x18c)](){const _0x151bc1=_0x8f0202;return this[_0x151bc1(0x184)];}[_0x8f0202(0x171)](_0x538ec1){const _0x4cbffb=_0x8f0202;return this[_0x4cbffb(0x159)][_0x4cbffb(0x199)](_0x5eda9e=>_0x5eda9e['id']===_0x538ec1)||null;}[_0x8f0202(0x145)](){const _0x1873d7=_0x8f0202;return Array[_0x1873d7(0x194)](this[_0x1873d7(0x159)]);}[_0x8f0202(0x146)](){const _0x43dd00=_0x8f0202;return this[_0x43dd00(0x196)];}[_0x8f0202(0x13b)](_0xd47bff){const _0x5bca2e=_0x8f0202;this[_0x5bca2e(0x196)]=_0xd47bff;}[_0x8f0202(0x16b)](_0x39e7f6,_0x4ad5a9=0x0){const _0x5e0a2c=_0x8f0202;let _0x266607=!0x1;for(let _0xe74ed0=_0x4ad5a9;_0xe74ed0<this[_0x5e0a2c(0x159)][_0x5e0a2c(0x16e)];_0xe74ed0++)this[_0x5e0a2c(0x164)](_0x39e7f6,_0xe74ed0)&&(_0x266607=!0x0);return _0x266607;}[_0x8f0202(0x161)](_0x605548,_0x4976e4){const _0x486af7=_0x8f0202,_0x28d10d=_0x605548[_0x486af7(0x154)](_0x486af7(0x15e),{});return _0x605548[_0x486af7(0x14c)](_0x28d10d,_0x4976e4),this[_0x486af7(0x184)]=_0x28d10d,_0x28d10d;}[_0x8f0202(0x17b)](_0x560919){const _0x58e72e=_0x8f0202;if(!this[_0x58e72e(0x159)][_0x58e72e(0x16e)]||this[_0x58e72e(0x184)])return;const _0xaee7b4=this[_0x58e72e(0x159)][0x0][_0x58e72e(0x144)][_0x58e72e(0x189)],_0x23cecd=this[_0x58e72e(0x161)](_0x560919,_0xaee7b4);for(const _0x8b8dab of this[_0x58e72e(0x159)])_0x8b8dab[_0x58e72e(0x18e)][_0x58e72e(0x13e)]||_0x560919[_0x58e72e(0x16a)](_0x8b8dab[_0x58e72e(0x18e)],_0x23cecd,_0x58e72e(0x155));this[_0x58e72e(0x16b)](_0x560919);}[_0x8f0202(0x150)](_0x55d5db,_0x57e5a3){const _0x373b90=_0x8f0202;let _0x5f1aa7=!0x1;const {inserted:_0x2898eb,removed:_0x29f886,moved:_0x153b04}=this[_0x373b90(0x139)][_0x373b90(0x188)](_0x57e5a3);if(_0x153b04[_0x373b90(0x16e)]&&(this[_0x373b90(0x184)]=_0x153b04[0x0]),_0x2898eb[_0x373b90(0x16e)]){if(_0x2898eb[_0x373b90(0x16e)]>0x1||this[_0x373b90(0x184)]&&_0x2898eb[_0x373b90(0x170)](_0x4e3f3b=>_0x4e3f3b!==this[_0x373b90(0x184)])){const _0x5ef1aa=_0x55d5db[_0x373b90(0x154)](_0x373b90(0x15e),{}),_0x21329d=[];this[_0x373b90(0x184)]&&_0x21329d[_0x373b90(0x17f)](this[_0x373b90(0x184)]),_0x21329d[_0x373b90(0x17f)](..._0x2898eb),_0x55d5db[_0x373b90(0x16a)](_0x5ef1aa,_0x21329d[0x0],_0x373b90(0x15c));for(const _0x2c14ba of _0x21329d)_0x55d5db[_0x373b90(0x197)](_0x55d5db[_0x373b90(0x142)](_0x2c14ba),_0x55d5db[_0x373b90(0x198)](_0x5ef1aa,_0x373b90(0x155))),_0x55d5db[_0x373b90(0x15d)](_0x2c14ba);this[_0x373b90(0x184)]=_0x5ef1aa,this[_0x373b90(0x16b)](_0x55d5db),_0x5f1aa7=!0x0;}else this[_0x373b90(0x184)]=_0x2898eb[0x0];}if(_0x29f886[_0x373b90(0x16e)]&&_0x373b90(0x182)===this[_0x373b90(0x184)]?.[_0x373b90(0x189)][_0x373b90(0x167)]){for(const _0x1b93d4 of this[_0x373b90(0x159)])_0x55d5db[_0x373b90(0x15d)](_0x1b93d4[_0x373b90(0x144)]),_0x5f1aa7=!0x0;this[_0x373b90(0x159)]=[],this[_0x373b90(0x184)]=null;}return _0x5f1aa7;}[_0x8f0202(0x13d)](_0x29669b,_0x57dcd2){const _0x312065=_0x8f0202;let _0x1e17d5=!0x1;const _0x237607=this[_0x312065(0x143)][_0x312065(0x14d)][_0x312065(0x141)](_0x312065(0x14a)),{inserted:_0xfce01,moved:_0x484484}=this[_0x312065(0x174)][_0x312065(0x188)](_0x57dcd2);for(const _0x540484 of[..._0x484484,..._0xfce01]){const _0x30b367=_0x540484[_0x312065(0x177)](_0x312065(0x158)),_0x5d1f66=this[_0x312065(0x171)](_0x30b367);_0x5d1f66&&(_0x5d1f66[_0x312065(0x18e)]=_0x540484),_(_0x29669b,_0x237607,_0x540484)&&(_0x1e17d5=!0x0);}return _0x1e17d5;}[_0x8f0202(0x166)](_0x29c75f,_0x3e091d){const _0x4243c0=_0x8f0202;let _0x3cbc76=!0x1;const {removed:_0x590ada,inserted:_0xffca30,moved:_0x12ba3d}=this[_0x4243c0(0x157)][_0x4243c0(0x188)](_0x3e091d);for(const _0x30e008 of _0x590ada)this[_0x4243c0(0x138)](_0x29c75f,_0x30e008)&&(_0x3cbc76=!0x0);for(const _0xf0ef5a of _0xffca30)this[_0x4243c0(0x195)](_0x29c75f,_0xf0ef5a)&&(_0x3cbc76=!0x0);for(const _0x543d42 of _0x12ba3d)this[_0x4243c0(0x156)](_0x29c75f,_0x543d42)&&(_0x3cbc76=!0x0);return _0x3cbc76;}[_0x8f0202(0x137)](_0x8c13db){const _0x586eb6=_0x8f0202;if(!this[_0x586eb6(0x184)])return!0x1;let _0x36be74=!0x1;if(this[_0x586eb6(0x184)][_0x586eb6(0x183)]!==this[_0x586eb6(0x159)][_0x586eb6(0x16e)]){const _0x3df866=[];for(const _0xbce12c of this[_0x586eb6(0x184)][_0x586eb6(0x163)]()){const _0x1ed5ee=_0xbce12c[_0x586eb6(0x177)](_0x586eb6(0x158));this[_0x586eb6(0x171)](_0x1ed5ee)||(_0x3df866[_0x586eb6(0x162)](_0xbce12c),_0x36be74=!0x0);}for(const _0x1e5fa6 of _0x3df866)_0x8c13db[_0x586eb6(0x15d)](_0x1e5fa6);}const _0x20a279=new Set(),_0x59fd57=[];for(const _0x1f1662 of this[_0x586eb6(0x184)][_0x586eb6(0x163)]()){const _0x95b4f0=_0x1f1662[_0x586eb6(0x177)](_0x586eb6(0x158));_0x20a279[_0x586eb6(0x15b)](_0x95b4f0)?(_0x59fd57[_0x586eb6(0x162)](_0x1f1662),_0x36be74=!0x0):_0x20a279[_0x586eb6(0x153)](_0x95b4f0);}for(const _0x52b126 of _0x59fd57)_0x8c13db[_0x586eb6(0x15d)](_0x52b126);return this[_0x586eb6(0x184)][_0x586eb6(0x183)]||(_0x8c13db[_0x586eb6(0x15d)](this[_0x586eb6(0x184)]),this[_0x586eb6(0x184)]=null,_0x36be74=!0x0),_0x36be74;}[_0x8f0202(0x195)](_0xec831,_0x47d4a4){const _0x2c3953=_0x8f0202;if(this[_0x2c3953(0x159)][_0x2c3953(0x199)](_0x24cba7=>_0x24cba7[_0x2c3953(0x144)]===_0x47d4a4))return!0x1;let _0x50f858=!0x1;const _0x424e2a=_0x47d4a4[_0x2c3953(0x177)](_0x2c3953(0x158)),_0x3a56a8=this[_0x2c3953(0x159)][_0x2c3953(0x147)](_0x6a19f2=>_0x6a19f2['id']===_0x424e2a);-0x1!==_0x3a56a8&&(_0xec831[_0x2c3953(0x15d)](this[_0x2c3953(0x159)][_0x3a56a8][_0x2c3953(0x144)]),this[_0x2c3953(0x159)][_0x2c3953(0x160)](_0x3a56a8,0x1),_0x50f858=!0x0);let _0x1aaf30=this[_0x2c3953(0x184)]?function(_0x10b442,_0x4047fd){const _0x384697=_0x2c3953;for(const _0x48d57e of _0x10b442[_0x384697(0x163)]())if(_0x48d57e[_0x384697(0x177)](_0x384697(0x158))===_0x4047fd)return _0x48d57e;return null;}(this[_0x2c3953(0x184)],_0x424e2a):null;_0x1aaf30||(_0x1aaf30=_0xec831[_0x2c3953(0x154)](_0x2c3953(0x19b),{'footnoteId':_0x424e2a}),this[_0x2c3953(0x184)]&&(_0xec831[_0x2c3953(0x16a)](_0x1aaf30,this[_0x2c3953(0x184)],_0x2c3953(0x155)),_0x50f858=!0x0));const _0x255304={'id':_0x424e2a,'reference':_0x47d4a4,'definition':_0x1aaf30},_0x465ef5=I(this[_0x2c3953(0x143)][_0x2c3953(0x14f)],this[_0x2c3953(0x159)],_0x47d4a4);this[_0x2c3953(0x159)][_0x2c3953(0x160)](_0x465ef5,0x0,_0x255304);let _0x868af9=_0x465ef5;return-0x1!==_0x3a56a8&&(_0x868af9=Math[_0x2c3953(0x185)](_0x465ef5,_0x3a56a8)),this[_0x2c3953(0x16b)](_0xec831,_0x868af9)&&(_0x50f858=!0x0),_0x50f858;}[_0x8f0202(0x138)](_0x2efcd7,_0x2f7be7){const _0x1af7f4=_0x8f0202,_0x29fd3a=this[_0x1af7f4(0x159)][_0x1af7f4(0x147)](_0x133778=>_0x133778['id']===_0x2f7be7);if(-0x1===_0x29fd3a)return!0x1;let _0x745da9=!0x1;const _0x5dec2f=this[_0x1af7f4(0x159)][_0x29fd3a];return _0x1af7f4(0x182)!==_0x5dec2f[_0x1af7f4(0x18e)][_0x1af7f4(0x189)][_0x1af7f4(0x167)]&&(_0x2efcd7[_0x1af7f4(0x15d)](_0x5dec2f[_0x1af7f4(0x18e)]),_0x745da9=!0x0),this[_0x1af7f4(0x159)][_0x1af7f4(0x160)](_0x29fd3a,0x1),this[_0x1af7f4(0x16b)](_0x2efcd7,_0x29fd3a)&&(_0x745da9=!0x0),_0x745da9;}[_0x8f0202(0x156)](_0x4cd7cd,_0x1fb4d1){const _0x311b49=_0x8f0202,_0x3507b9=_0x1fb4d1[_0x311b49(0x177)](_0x311b49(0x158)),_0x1b549b=this[_0x311b49(0x159)][_0x311b49(0x147)](_0x352ac4=>_0x352ac4['id']===_0x3507b9),_0x5a9d8c=this[_0x311b49(0x159)][_0x1b549b];let _0x58c015=!0x1;_0x5a9d8c[_0x311b49(0x144)]=_0x1fb4d1,this[_0x311b49(0x159)][_0x311b49(0x160)](_0x1b549b,0x1);const _0x15dd00=I(this[_0x311b49(0x143)][_0x311b49(0x14f)],this[_0x311b49(0x159)],_0x1fb4d1);return this[_0x311b49(0x159)][_0x311b49(0x160)](_0x15dd00,0x0,_0x5a9d8c),this[_0x311b49(0x16b)](_0x4cd7cd,Math[_0x311b49(0x185)](_0x1b549b,_0x15dd00))&&(_0x58c015=!0x0),_0x58c015;}[_0x8f0202(0x164)](_0xe30a5a,_0x250be8){const _0x23604f=_0x8f0202;if(!this[_0x23604f(0x184)])return!0x1;const _0x1765d6=this[_0x23604f(0x159)][_0x250be8];let _0x378e1f;return _0x378e1f=this[_0x23604f(0x196)]?this[_0x23604f(0x196)]({'footnote':_0x1765d6,'container':this[_0x23604f(0x184)],'digits':String(this[_0x23604f(0x159)][_0x23604f(0x16e)])[_0x23604f(0x16e)],'value':_0x250be8+0x1}):String(_0x250be8+0x1),_0x1765d6[_0x23604f(0x144)][_0x23604f(0x177)](_0x23604f(0x178))!=_0x378e1f&&(_0xe30a5a[_0x23604f(0x18d)](_0x23604f(0x178),_0x378e1f,_0x1765d6[_0x23604f(0x144)]),!0x0);}[_0x8f0202(0x15f)](_0x488b8f){const _0x12ff8f=_0x8f0202;if(!this[_0x12ff8f(0x184)]||this[_0x12ff8f(0x159)][_0x12ff8f(0x16e)]<0x2)return!0x1;if(function(_0x14dc97,_0x576a46){const _0x30ba85=_0x12ff8f;if(_0x14dc97[_0x30ba85(0x16e)]!==_0x576a46[_0x30ba85(0x16e)])return!0x1;for(let _0x58c370=0x0;_0x58c370<_0x14dc97[_0x30ba85(0x16e)];_0x58c370++)if(_0x14dc97[_0x58c370]!==_0x576a46[_0x58c370])return!0x1;return!0x0;}(this[_0x12ff8f(0x159)][_0x12ff8f(0x152)](_0x2d5218=>_0x2d5218['id']),Array[_0x12ff8f(0x194)](this[_0x12ff8f(0x184)][_0x12ff8f(0x163)]())[_0x12ff8f(0x152)](_0x19e03d=>_0x19e03d[_0x12ff8f(0x177)](_0x12ff8f(0x158)))))return!0x1;let _0x386c2a=!0x1;for(let _0x2049b8=0x0;_0x2049b8<this[_0x12ff8f(0x159)][_0x12ff8f(0x16e)];_0x2049b8++){const _0x2f00ee=this[_0x12ff8f(0x159)][_0x2049b8],_0x54f8a3=_0x488b8f[_0x12ff8f(0x14e)](_0x2f00ee[_0x12ff8f(0x18e)]),_0x4d48b2=_0x488b8f[_0x12ff8f(0x198)](this[_0x12ff8f(0x184)],_0x2049b8);_0x54f8a3[_0x12ff8f(0x17e)](_0x4d48b2)||(_0x488b8f[_0x12ff8f(0x197)](_0x488b8f[_0x12ff8f(0x18a)](_0x2f00ee[_0x12ff8f(0x18e)]),_0x4d48b2),_0x386c2a=!0x0);}return _0x386c2a;}[_0x8f0202(0x181)](_0x4140e8){const _0x497aa4=_0x8f0202;if(!this[_0x497aa4(0x159)][_0x497aa4(0x16e)])return!0x1;const {model:_0x2996fd}=this[_0x497aa4(0x143)];let _0x268b7d=!0x1;for(let _0x2cd2d9=0x0;_0x2cd2d9<this[_0x497aa4(0x159)][_0x497aa4(0x16e)]-0x1;_0x2cd2d9++){const _0x743245=this[_0x497aa4(0x159)][_0x2cd2d9],_0x1d0bef=this[_0x497aa4(0x159)][_0x2cd2d9+0x1],_0x2c434e=_0x2996fd[_0x497aa4(0x14e)](_0x743245[_0x497aa4(0x144)]),_0x41c787=_0x2996fd[_0x497aa4(0x14e)](_0x1d0bef[_0x497aa4(0x144)]);_0x497aa4(0x176)===_0x2c434e[_0x497aa4(0x173)](_0x41c787)&&(this[_0x497aa4(0x156)](_0x4140e8,_0x743245[_0x497aa4(0x144)]),_0x2cd2d9=-0x1,_0x268b7d=!0x0);}return _0x268b7d;}}function _(_0x49f485,_0x30f6ea,_0x419dfe){const _0x354529=_0x8f0202;if(_0x419dfe[_0x354529(0x183)])return!0x1;const _0x408a07=_0x30f6ea?_0x354529(0x136):_0x354529(0x168);return _0x49f485[_0x354529(0x16a)](_0x49f485[_0x354529(0x154)](_0x408a07),_0x419dfe),!0x0;}function I(_0x1c7320,_0x3cc9e4,_0x5dbc10){const _0x488b3a=_0x8f0202;if(0x0===_0x3cc9e4[_0x488b3a(0x16e)])return 0x0;const _0x1f4117=_0x1c7320[_0x488b3a(0x14e)](_0x5dbc10);for(let _0x59936c=0x0;_0x59936c<_0x3cc9e4[_0x488b3a(0x16e)];_0x59936c++){const _0x368e11=_0x3cc9e4[_0x59936c],_0x1497c0=_0x1c7320[_0x488b3a(0x14e)](_0x368e11[_0x488b3a(0x144)]);if(_0x488b3a(0x15c)===_0x1f4117[_0x488b3a(0x173)](_0x1497c0))return _0x59936c;}const _0x49b362=_0x5dbc10[_0x488b3a(0x189)];let _0x19d881=-0x1;for(let _0x1a4d5e=_0x3cc9e4[_0x488b3a(0x16e)]-0x1;_0x1a4d5e>=0x0;_0x1a4d5e--)if(_0x3cc9e4[_0x1a4d5e][_0x488b3a(0x144)][_0x488b3a(0x189)]===_0x49b362){_0x19d881=_0x1a4d5e;break;}if(-0x1!==_0x19d881)return _0x19d881+0x1;const _0x3d31cc=_0x1c7320[_0x488b3a(0x14b)][_0x488b3a(0x140)](),_0x4bb483=_0x3d31cc[_0x488b3a(0x165)](_0x49b362[_0x488b3a(0x167)]),_0x6b8ab2=_0x3d31cc[_0x4bb483+0x1];if(_0x6b8ab2){for(let _0x4a3544=0x0;_0x4a3544<_0x3cc9e4[_0x488b3a(0x16e)];_0x4a3544++)if(_0x3cc9e4[_0x4a3544][_0x488b3a(0x144)][_0x488b3a(0x189)][_0x488b3a(0x167)]===_0x6b8ab2)return _0x4a3544;}return _0x3cc9e4[_0x488b3a(0x16e)];}
|
|
23
|
+
function _0x3d58(_0x2b3ca2,_0x29fa07){const _0x17e23a=_0x17e2();return _0x3d58=function(_0x3d5884,_0x444163){_0x3d5884=_0x3d5884-0x153;let _0x5136df=_0x17e23a[_0x3d5884];return _0x5136df;},_0x3d58(_0x2b3ca2,_0x29fa07);}const _0x3db3df=_0x3d58;function _0x17e2(){const _0x4660fd=['_footnoteDefsTracker','definition','footnoteRef','add','8TIOaDq','_handleFootnotesDefinitionsObjectSync','_insertEmptyFootnotesDefinitionsContainer','footnoteId','setAttribute','reference','_ensureFootnotesReferencesHaveProperOrder','_footnotesDefinitions','has','getChanges','set','compareWith','parent','footnotesDefinitions','before','footnoteCounter','move','getChildren','singleton','model','getFootnotesDefinitionsObjectElement','after','push','high','getFootnotes','11464SlreoC','_footnotes','_sortFootnoteDefinitions','document','$graveyard','2270073GBgXFN','listenTo','rootName','getFootnote','createPositionAt','find','editor','enqueueChange','isOfficialPlugin','reset','get','1770DYdHfZ','change:data','_handleFootnoteReferencesChanges','insert','remove','root','_updateFootnotesCounters','splice','registerPostFixer','findIndex','3085068eENmct','_ensureFootnotesDefinitionsContainerExists','footnoteInlineContent','append','unshift','footnoteDefinition','pluginName','indexOf','_footnoteDefsContainerTracker','config','low','createPositionBefore','some','_updateFootnoteRefCounter','paragraph','min','isEqual','isPremiumPlugin','createRangeIn','length','_footnoteFormatter','setFootnoteFormatter','from','getRootNames','43838rlRmVd','71598wTgjGI','5670yzNeKq','_handleMovedFootnoteReference','getFootnotesFormatter','1195388wuDlaK','_handleFootnotesDefinitionsObjectChanges','init','getAttribute','footnotes.multiBlock','_handleInsertedFootnoteReference','differ','_handleRemoveFootnoteReferenceById','createRangeOn','childCount','_handleFootnoteDefinitionsChanges','475wwMjzT','26576UGIIUR','createElement','FootnotesTracker','end','map','_footnoteRefsTracker'];_0x17e2=function(){return _0x4660fd;};return _0x17e2();}(function(_0x38a6a6,_0x2dd5db){const _0x5185ef=_0x3d58,_0x3f2440=_0x38a6a6();while(!![]){try{const _0x29e108=parseInt(_0x5185ef(0x1b6))/0x1*(parseInt(_0x5185ef(0x19b))/0x2)+parseInt(_0x5185ef(0x16e))/0x3+parseInt(_0x5185ef(0x1a0))/0x4+parseInt(_0x5185ef(0x1ab))/0x5*(parseInt(_0x5185ef(0x19c))/0x6)+-parseInt(_0x5185ef(0x183))/0x7+parseInt(_0x5185ef(0x169))/0x8*(-parseInt(_0x5185ef(0x19d))/0x9)+parseInt(_0x5185ef(0x179))/0xa*(-parseInt(_0x5185ef(0x1ac))/0xb);if(_0x29e108===_0x2dd5db)break;else _0x3f2440['push'](_0x3f2440['shift']());}catch(_0x28e8d){_0x3f2440['push'](_0x3f2440['shift']());}}}(_0x17e2,0x90de3));import{Plugin as _0x4d6ff3}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x3cf25e}from'./modelelementtracker.js';export class FootnotesTracker extends _0x4d6ff3{[_0x3db3df(0x16a)]=[];[_0x3db3df(0x157)]=null;[_0x3db3df(0x197)]=null;[_0x3db3df(0x18b)];[_0x3db3df(0x1b1)];[_0x3db3df(0x1b2)];static get[_0x3db3df(0x189)](){const _0x57d255=_0x3db3df;return _0x57d255(0x1ae);}static get[_0x3db3df(0x176)](){return!0x0;}static get[_0x3db3df(0x194)](){return!0x0;}constructor(_0x2ff7a6){const _0xb0436d=_0x3db3df;super(_0x2ff7a6),this[_0xb0436d(0x18b)]=new _0x3cf25e(this[_0xb0436d(0x174)][_0xb0436d(0x163)],{'elementName':_0xb0436d(0x15d),'getElementKey':()=>_0xb0436d(0x162)}),this[_0xb0436d(0x1b1)]=new _0x3cf25e(this[_0xb0436d(0x174)][_0xb0436d(0x163)],{'elementName':_0xb0436d(0x1b4),'getElementKey':_0x42fe75=>_0x42fe75[_0xb0436d(0x1a3)](_0xb0436d(0x153))}),this[_0xb0436d(0x1b2)]=new _0x3cf25e(this[_0xb0436d(0x174)][_0xb0436d(0x163)],{'elementName':_0xb0436d(0x188),'getElementKey':_0x4543da=>_0x4543da[_0xb0436d(0x1a3)](_0xb0436d(0x153))});}[_0x3db3df(0x1a2)](){const _0x587c88=_0x3db3df,{editor:_0x589719}=this,{model:_0x2d6d97,data:_0x407181}=_0x589719;_0x2d6d97[_0x587c88(0x16c)][_0x587c88(0x181)](_0x29fea6=>{const _0x4a878f=_0x587c88,_0x5a555e=_0x2d6d97[_0x4a878f(0x16c)][_0x4a878f(0x1a6)][_0x4a878f(0x159)]();let _0x53e612=!0x1;return this[_0x4a878f(0x1a1)](_0x29fea6,_0x5a555e)&&(_0x53e612=!0x0),this[_0x4a878f(0x1aa)](_0x29fea6,_0x5a555e)&&(_0x53e612=!0x0),this[_0x4a878f(0x17b)](_0x29fea6,_0x5a555e)&&(_0x53e612=!0x0),this[_0x4a878f(0x156)](_0x29fea6)&&(_0x53e612=!0x0),this[_0x4a878f(0x1b7)](_0x29fea6)&&(_0x53e612=!0x0),this[_0x4a878f(0x16b)](_0x29fea6)&&(_0x53e612=!0x0),_0x53e612;}),this[_0x587c88(0x16f)](_0x2d6d97[_0x587c88(0x16c)],_0x587c88(0x17a),()=>{const _0x56fc65=_0x587c88;_0x2d6d97[_0x56fc65(0x175)]({'isUndoable':!0x1},_0x35acca=>{const _0x28314a=_0x56fc65;this[_0x28314a(0x184)](_0x35acca);});},{'priority':_0x587c88(0x18d)}),this[_0x587c88(0x16f)](_0x407181,_0x587c88(0x15a),()=>{const _0x589288=_0x587c88;this[_0x589288(0x16a)]=[],this[_0x589288(0x18b)][_0x589288(0x177)](),this[_0x589288(0x1b1)][_0x589288(0x177)](),this[_0x589288(0x1b2)][_0x589288(0x177)]();},{'priority':_0x587c88(0x167)});}[_0x3db3df(0x164)](){const _0x5ed195=_0x3db3df;return this[_0x5ed195(0x157)];}[_0x3db3df(0x171)](_0x5944c4){const _0x3ada44=_0x3db3df;return this[_0x3ada44(0x16a)][_0x3ada44(0x173)](_0x55af5e=>_0x55af5e['id']===_0x5944c4)||null;}[_0x3db3df(0x168)](){const _0x53967f=_0x3db3df;return Array[_0x53967f(0x199)](this[_0x53967f(0x16a)]);}[_0x3db3df(0x19f)](){const _0x2f73b5=_0x3db3df;return this[_0x2f73b5(0x197)];}[_0x3db3df(0x198)](_0x21f246){const _0x122f0c=_0x3db3df;this[_0x122f0c(0x197)]=_0x21f246;}[_0x3db3df(0x17f)](_0x1f302e,_0x4f308c=0x0){const _0x5addc4=_0x3db3df;let _0x23ad8e=!0x1;for(let _0x356e13=_0x4f308c;_0x356e13<this[_0x5addc4(0x16a)][_0x5addc4(0x196)];_0x356e13++)this[_0x5addc4(0x190)](_0x1f302e,_0x356e13)&&(_0x23ad8e=!0x0);return _0x23ad8e;}[_0x3db3df(0x1b8)](_0x41f6f5,_0x3324ff){const _0x54ee36=_0x3db3df,_0xe63b36=_0x41f6f5[_0x54ee36(0x1ad)](_0x54ee36(0x15d),{});return _0x41f6f5[_0x54ee36(0x186)](_0xe63b36,_0x3324ff),this[_0x54ee36(0x157)]=_0xe63b36,_0xe63b36;}[_0x3db3df(0x184)](_0x3aa77f){const _0x583719=_0x3db3df;if(!this[_0x583719(0x16a)][_0x583719(0x196)]||this[_0x583719(0x157)])return;const _0x477282=this[_0x583719(0x16a)][0x0][_0x583719(0x155)][_0x583719(0x17e)],_0x5db94b=this[_0x583719(0x1b8)](_0x3aa77f,_0x477282);for(const _0x471478 of this[_0x583719(0x16a)])_0x471478[_0x583719(0x1b3)][_0x583719(0x15c)]||_0x3aa77f[_0x583719(0x17c)](_0x471478[_0x583719(0x1b3)],_0x5db94b,_0x583719(0x1af));this[_0x583719(0x17f)](_0x3aa77f);}[_0x3db3df(0x1a1)](_0x5be8ef,_0x50325b){const _0x141036=_0x3db3df;let _0x608e72=!0x1;const {inserted:_0x3fced7,removed:_0x1185dd,moved:_0x2c89ee}=this[_0x141036(0x18b)][_0x141036(0x159)](_0x50325b);if(_0x2c89ee[_0x141036(0x196)]&&(this[_0x141036(0x157)]=_0x2c89ee[0x0]),_0x3fced7[_0x141036(0x196)]){if(_0x3fced7[_0x141036(0x196)]>0x1||this[_0x141036(0x157)]&&_0x3fced7[_0x141036(0x18f)](_0x33e0c4=>_0x33e0c4!==this[_0x141036(0x157)])){const _0x201382=_0x5be8ef[_0x141036(0x1ad)](_0x141036(0x15d),{}),_0x13fd49=[];this[_0x141036(0x157)]&&_0x13fd49[_0x141036(0x166)](this[_0x141036(0x157)]),_0x13fd49[_0x141036(0x166)](..._0x3fced7),_0x5be8ef[_0x141036(0x17c)](_0x201382,_0x13fd49[0x0],_0x141036(0x15e));for(const _0x317ac8 of _0x13fd49)_0x5be8ef[_0x141036(0x160)](_0x5be8ef[_0x141036(0x195)](_0x317ac8),_0x5be8ef[_0x141036(0x172)](_0x201382,_0x141036(0x1af))),_0x5be8ef[_0x141036(0x17d)](_0x317ac8);this[_0x141036(0x157)]=_0x201382,this[_0x141036(0x17f)](_0x5be8ef),_0x608e72=!0x0;}else this[_0x141036(0x157)]=_0x3fced7[0x0];}if(_0x1185dd[_0x141036(0x196)]&&_0x141036(0x16d)===this[_0x141036(0x157)]?.[_0x141036(0x17e)][_0x141036(0x170)]){for(const _0x2fa025 of this[_0x141036(0x16a)])_0x5be8ef[_0x141036(0x17d)](_0x2fa025[_0x141036(0x155)]),_0x608e72=!0x0;this[_0x141036(0x16a)]=[],this[_0x141036(0x157)]=null;}return _0x608e72;}[_0x3db3df(0x1aa)](_0x7454dd,_0x48c44a){const _0x3ddc68=_0x3db3df;let _0x30991f=!0x1;const _0x27896d=this[_0x3ddc68(0x174)][_0x3ddc68(0x18c)][_0x3ddc68(0x178)](_0x3ddc68(0x1a4)),{inserted:_0x5e427a,moved:_0x1c745c}=this[_0x3ddc68(0x1b2)][_0x3ddc68(0x159)](_0x48c44a);for(const _0x5808a8 of[..._0x1c745c,..._0x5e427a]){const _0x1f4df4=_0x5808a8[_0x3ddc68(0x1a3)](_0x3ddc68(0x153)),_0xd69955=this[_0x3ddc68(0x171)](_0x1f4df4);_0xd69955&&(_0xd69955[_0x3ddc68(0x1b3)]=_0x5808a8),_(_0x7454dd,_0x27896d,_0x5808a8)&&(_0x30991f=!0x0);}return _0x30991f;}[_0x3db3df(0x17b)](_0x1b1664,_0x425d67){const _0x1fafbf=_0x3db3df;let _0xc5740e=!0x1;const {removed:_0x1dfa22,inserted:_0x1d19cd,moved:_0x5d4da0}=this[_0x1fafbf(0x1b1)][_0x1fafbf(0x159)](_0x425d67);for(const _0x4164c1 of _0x1dfa22)this[_0x1fafbf(0x1a7)](_0x1b1664,_0x4164c1)&&(_0xc5740e=!0x0);for(const _0x2a0ad4 of _0x1d19cd)this[_0x1fafbf(0x1a5)](_0x1b1664,_0x2a0ad4)&&(_0xc5740e=!0x0);for(const _0x1d2e0d of _0x5d4da0)this[_0x1fafbf(0x19e)](_0x1b1664,_0x1d2e0d)&&(_0xc5740e=!0x0);return _0xc5740e;}[_0x3db3df(0x1b7)](_0x56d291){const _0x2d9f95=_0x3db3df;if(!this[_0x2d9f95(0x157)])return!0x1;let _0x32fd37=!0x1;if(this[_0x2d9f95(0x157)][_0x2d9f95(0x1a9)]!==this[_0x2d9f95(0x16a)][_0x2d9f95(0x196)]){const _0x1a1423=[];for(const _0x3a7357 of this[_0x2d9f95(0x157)][_0x2d9f95(0x161)]()){const _0x395618=_0x3a7357[_0x2d9f95(0x1a3)](_0x2d9f95(0x153));this[_0x2d9f95(0x171)](_0x395618)||(_0x1a1423[_0x2d9f95(0x187)](_0x3a7357),_0x32fd37=!0x0);}for(const _0x2b0156 of _0x1a1423)_0x56d291[_0x2d9f95(0x17d)](_0x2b0156);}const _0x2a97ec=new Set(),_0x1175a3=[];for(const _0x177fb3 of this[_0x2d9f95(0x157)][_0x2d9f95(0x161)]()){const _0x131e04=_0x177fb3[_0x2d9f95(0x1a3)](_0x2d9f95(0x153));_0x2a97ec[_0x2d9f95(0x158)](_0x131e04)?(_0x1175a3[_0x2d9f95(0x187)](_0x177fb3),_0x32fd37=!0x0):_0x2a97ec[_0x2d9f95(0x1b5)](_0x131e04);}for(const _0x3cee1c of _0x1175a3)_0x56d291[_0x2d9f95(0x17d)](_0x3cee1c);return this[_0x2d9f95(0x157)][_0x2d9f95(0x1a9)]||(_0x56d291[_0x2d9f95(0x17d)](this[_0x2d9f95(0x157)]),this[_0x2d9f95(0x157)]=null,_0x32fd37=!0x0),_0x32fd37;}[_0x3db3df(0x1a5)](_0x43d554,_0x3f9685){const _0x1137d8=_0x3db3df;if(this[_0x1137d8(0x16a)][_0x1137d8(0x173)](_0x3414b3=>_0x3414b3[_0x1137d8(0x155)]===_0x3f9685))return!0x1;let _0xffd45f=!0x1;const _0x11b833=_0x3f9685[_0x1137d8(0x1a3)](_0x1137d8(0x153)),_0x3028de=this[_0x1137d8(0x16a)][_0x1137d8(0x182)](_0x8b4528=>_0x8b4528['id']===_0x11b833);-0x1!==_0x3028de&&(_0x43d554[_0x1137d8(0x17d)](this[_0x1137d8(0x16a)][_0x3028de][_0x1137d8(0x155)]),this[_0x1137d8(0x16a)][_0x1137d8(0x180)](_0x3028de,0x1),_0xffd45f=!0x0);let _0x41d6b7=this[_0x1137d8(0x157)]?function(_0x366d72,_0x5357bb){const _0x2e7464=_0x1137d8;for(const _0x5b0565 of _0x366d72[_0x2e7464(0x161)]())if(_0x5b0565[_0x2e7464(0x1a3)](_0x2e7464(0x153))===_0x5357bb)return _0x5b0565;return null;}(this[_0x1137d8(0x157)],_0x11b833):null;_0x41d6b7||(_0x41d6b7=_0x43d554[_0x1137d8(0x1ad)](_0x1137d8(0x188),{'footnoteId':_0x11b833}),this[_0x1137d8(0x157)]&&(_0x43d554[_0x1137d8(0x17c)](_0x41d6b7,this[_0x1137d8(0x157)],_0x1137d8(0x1af)),_0xffd45f=!0x0));const _0x34ec4b={'id':_0x11b833,'reference':_0x3f9685,'definition':_0x41d6b7},_0x4a631b=I(this[_0x1137d8(0x174)][_0x1137d8(0x163)],this[_0x1137d8(0x16a)],_0x3f9685);this[_0x1137d8(0x16a)][_0x1137d8(0x180)](_0x4a631b,0x0,_0x34ec4b);let _0x1bd7c6=_0x4a631b;return-0x1!==_0x3028de&&(_0x1bd7c6=Math[_0x1137d8(0x192)](_0x4a631b,_0x3028de)),this[_0x1137d8(0x17f)](_0x43d554,_0x1bd7c6)&&(_0xffd45f=!0x0),_0xffd45f;}[_0x3db3df(0x1a7)](_0x40ad57,_0x30a61f){const _0x487371=_0x3db3df,_0x2e70f6=this[_0x487371(0x16a)][_0x487371(0x182)](_0x32c25e=>_0x32c25e['id']===_0x30a61f);if(-0x1===_0x2e70f6)return!0x1;let _0x1b5d81=!0x1;const _0x3bca1a=this[_0x487371(0x16a)][_0x2e70f6];return _0x487371(0x16d)!==_0x3bca1a[_0x487371(0x1b3)][_0x487371(0x17e)][_0x487371(0x170)]&&(_0x40ad57[_0x487371(0x17d)](_0x3bca1a[_0x487371(0x1b3)]),_0x1b5d81=!0x0),this[_0x487371(0x16a)][_0x487371(0x180)](_0x2e70f6,0x1),this[_0x487371(0x17f)](_0x40ad57,_0x2e70f6)&&(_0x1b5d81=!0x0),_0x1b5d81;}[_0x3db3df(0x19e)](_0x5fa5d5,_0x138a9b){const _0x2dd35e=_0x3db3df,_0x9279af=_0x138a9b[_0x2dd35e(0x1a3)](_0x2dd35e(0x153)),_0x3828c7=this[_0x2dd35e(0x16a)][_0x2dd35e(0x182)](_0x4c8ef5=>_0x4c8ef5['id']===_0x9279af),_0x4bb191=this[_0x2dd35e(0x16a)][_0x3828c7];let _0x9ceac5=!0x1;_0x4bb191[_0x2dd35e(0x155)]=_0x138a9b,this[_0x2dd35e(0x16a)][_0x2dd35e(0x180)](_0x3828c7,0x1);const _0x5ee51e=I(this[_0x2dd35e(0x174)][_0x2dd35e(0x163)],this[_0x2dd35e(0x16a)],_0x138a9b);return this[_0x2dd35e(0x16a)][_0x2dd35e(0x180)](_0x5ee51e,0x0,_0x4bb191),this[_0x2dd35e(0x17f)](_0x5fa5d5,Math[_0x2dd35e(0x192)](_0x3828c7,_0x5ee51e))&&(_0x9ceac5=!0x0),_0x9ceac5;}[_0x3db3df(0x190)](_0x10674f,_0x61a5f2){const _0x8dd79=_0x3db3df;if(!this[_0x8dd79(0x157)])return!0x1;const _0x566dbb=this[_0x8dd79(0x16a)][_0x61a5f2];let _0x3f520c;return _0x3f520c=this[_0x8dd79(0x197)]?this[_0x8dd79(0x197)]({'footnote':_0x566dbb,'container':this[_0x8dd79(0x157)],'digits':String(this[_0x8dd79(0x16a)][_0x8dd79(0x196)])[_0x8dd79(0x196)],'value':_0x61a5f2+0x1}):String(_0x61a5f2+0x1),_0x566dbb[_0x8dd79(0x155)][_0x8dd79(0x1a3)](_0x8dd79(0x15f))!=_0x3f520c&&(_0x10674f[_0x8dd79(0x154)](_0x8dd79(0x15f),_0x3f520c,_0x566dbb[_0x8dd79(0x155)]),!0x0);}[_0x3db3df(0x16b)](_0x524382){const _0x116099=_0x3db3df;if(!this[_0x116099(0x157)]||this[_0x116099(0x16a)][_0x116099(0x196)]<0x2)return!0x1;if(function(_0x447a44,_0x231293){const _0x1f7ad3=_0x116099;if(_0x447a44[_0x1f7ad3(0x196)]!==_0x231293[_0x1f7ad3(0x196)])return!0x1;for(let _0x75cd34=0x0;_0x75cd34<_0x447a44[_0x1f7ad3(0x196)];_0x75cd34++)if(_0x447a44[_0x75cd34]!==_0x231293[_0x75cd34])return!0x1;return!0x0;}(this[_0x116099(0x16a)][_0x116099(0x1b0)](_0x47c8ea=>_0x47c8ea['id']),Array[_0x116099(0x199)](this[_0x116099(0x157)][_0x116099(0x161)]())[_0x116099(0x1b0)](_0x553e5d=>_0x553e5d[_0x116099(0x1a3)](_0x116099(0x153)))))return!0x1;let _0x48d608=!0x1;for(let _0x39b045=0x0;_0x39b045<this[_0x116099(0x16a)][_0x116099(0x196)];_0x39b045++){const _0x42f5d6=this[_0x116099(0x16a)][_0x39b045],_0x273b91=_0x524382[_0x116099(0x18e)](_0x42f5d6[_0x116099(0x1b3)]),_0x56b290=_0x524382[_0x116099(0x172)](this[_0x116099(0x157)],_0x39b045);_0x273b91[_0x116099(0x193)](_0x56b290)||(_0x524382[_0x116099(0x160)](_0x524382[_0x116099(0x1a8)](_0x42f5d6[_0x116099(0x1b3)]),_0x56b290),_0x48d608=!0x0);}return _0x48d608;}[_0x3db3df(0x156)](_0x4c11e6){const _0x33c7d5=_0x3db3df;if(!this[_0x33c7d5(0x16a)][_0x33c7d5(0x196)])return!0x1;const {model:_0x2e6acb}=this[_0x33c7d5(0x174)];let _0x256ade=!0x1;for(let _0x127314=0x0;_0x127314<this[_0x33c7d5(0x16a)][_0x33c7d5(0x196)]-0x1;_0x127314++){const _0x54d45f=this[_0x33c7d5(0x16a)][_0x127314],_0x4d703d=this[_0x33c7d5(0x16a)][_0x127314+0x1],_0x278f98=_0x2e6acb[_0x33c7d5(0x18e)](_0x54d45f[_0x33c7d5(0x155)]),_0x248ede=_0x2e6acb[_0x33c7d5(0x18e)](_0x4d703d[_0x33c7d5(0x155)]);_0x33c7d5(0x165)===_0x278f98[_0x33c7d5(0x15b)](_0x248ede)&&(this[_0x33c7d5(0x19e)](_0x4c11e6,_0x54d45f[_0x33c7d5(0x155)]),_0x127314=-0x1,_0x256ade=!0x0);}return _0x256ade;}}function _(_0x1c56c0,_0x2c8f90,_0x3c610b){const _0x4fa53a=_0x3db3df;if(_0x3c610b[_0x4fa53a(0x1a9)])return!0x1;const _0x5d7c2e=_0x2c8f90?_0x4fa53a(0x191):_0x4fa53a(0x185);return _0x1c56c0[_0x4fa53a(0x17c)](_0x1c56c0[_0x4fa53a(0x1ad)](_0x5d7c2e),_0x3c610b),!0x0;}function I(_0x504d08,_0x57ffe1,_0x9588b2){const _0xab3538=_0x3db3df;if(0x0===_0x57ffe1[_0xab3538(0x196)])return 0x0;const _0x2c7998=_0x504d08[_0xab3538(0x18e)](_0x9588b2);for(let _0x51279e=0x0;_0x51279e<_0x57ffe1[_0xab3538(0x196)];_0x51279e++){const _0x47c233=_0x57ffe1[_0x51279e],_0x29bf1d=_0x504d08[_0xab3538(0x18e)](_0x47c233[_0xab3538(0x155)]);if(_0xab3538(0x15e)===_0x2c7998[_0xab3538(0x15b)](_0x29bf1d))return _0x51279e;}const _0x3ef8eb=_0x9588b2[_0xab3538(0x17e)];let _0x16b696=-0x1;for(let _0x41e576=_0x57ffe1[_0xab3538(0x196)]-0x1;_0x41e576>=0x0;_0x41e576--)if(_0x57ffe1[_0x41e576][_0xab3538(0x155)][_0xab3538(0x17e)]===_0x3ef8eb){_0x16b696=_0x41e576;break;}if(-0x1!==_0x16b696)return _0x16b696+0x1;const _0x424833=_0x504d08[_0xab3538(0x16c)][_0xab3538(0x19a)](),_0x49445c=_0x424833[_0xab3538(0x18a)](_0x3ef8eb[_0xab3538(0x170)]),_0x4cca7e=_0x424833[_0x49445c+0x1];if(_0x4cca7e){for(let _0x52f04a=0x0;_0x52f04a<_0x57ffe1[_0xab3538(0x196)];_0x52f04a++)if(_0x57ffe1[_0x52f04a][_0xab3538(0x155)][_0xab3538(0x17e)][_0xab3538(0x170)]===_0x4cca7e)return _0x52f04a;}return _0x57ffe1[_0xab3538(0x196)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4d6c31,MenuBarMenuListItemButtonView as _0x15c7a9}from'ckeditor5/src/ui.js';import{Plugin as _0x1a406b}from'ckeditor5/src/core.js';import{IconFootnote as _0x1798f4}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x1a406b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xba4cea}=this,{componentFactory:_0x932280}=_0xba4cea['ui'];_0x932280['add']('insertFootnote',x(_0xba4cea,_0x4d6c31)),_0x932280['add']('menuBar:insertFootnote',x(_0xba4cea,_0x15c7a9)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a54f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a42ea;for(const _0x3176ea in _0x5a54f0){const _0x11d170=_0x3176ea,_0x542efb=_0x5a54f0[_0x11d170];if('footnotesLicenseKeyValid'==_0x542efb||'footnotesLicenseKeyInvalid'==_0x542efb||'footnotesLicenseKeyExpired'==_0x542efb||'footnotesLicenseKeyDomainLimit'==_0x542efb||'footnotesLicenseKeyNotAllowed'==_0x542efb||'footnotesLicenseKeyEvaluationLimit'==_0x542efb||'footnotesLicenseKeyTrialLimit'==_0x542efb||'footnotesLicenseKeyUsageLimit'==_0x542efb){delete _0x5a54f0[_0x11d170],_0x5a42ea=_0x542efb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5a42ea&&_0x5a54f0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4768f1,_0x488b97){const _0x252f1d=_0x4768f1['commands']['get']('insertFootnote');return _0x562f7f=>{const {t:t}=_0x562f7f,_0x5bfd12=new _0x488b97(_0x562f7f),_0x5453b8=_0x5bfd12 instanceof _0x15c7a9;return _0x5bfd12['bind']('isEnabled')['to'](_0x252f1d,'isEnabled'),_0x5bfd12['set']({'label':t(_0x5453b8?'Footnote':'Insert\x20footnote'),'icon':_0x1798f4,'tooltip':!0x0}),_0x5bfd12['on']('execute',()=>{_0x252f1d['execute'](),_0x4768f1['editing']['view']['focus']();}),_0x5bfd12;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5594(){var _0x9623a6=['972zlaCwO','527787UZNzkp','132494tIjavd','345023OekXgA','1053afbgXb','10bLmdsi','23459FQuqUV','46590GwDvGG','80KQVczb','75760HXBHPK'];_0x5594=function(){return _0x9623a6;};return _0x5594();}(function(_0x57b861,_0x37d092){var _0x37a9fd=_0x3d07,_0x15c9b6=_0x57b861();while(!![]){try{var _0x3638b8=-parseInt(_0x37a9fd(0x197))/0x1+parseInt(_0x37a9fd(0x193))/0x2+parseInt(_0x37a9fd(0x195))/0x3*(parseInt(_0x37a9fd(0x191))/0x4)+parseInt(_0x37a9fd(0x18f))/0x5*(-parseInt(_0x37a9fd(0x18e))/0x6)+parseInt(_0x37a9fd(0x194))/0x7+-parseInt(_0x37a9fd(0x190))/0x8+parseInt(_0x37a9fd(0x192))/0x9*(parseInt(_0x37a9fd(0x196))/0xa);if(_0x3638b8===_0x37d092)break;else _0x15c9b6['push'](_0x15c9b6['shift']());}catch(_0x1a2171){_0x15c9b6['push'](_0x15c9b6['shift']());}}}(_0x5594,0x18f9f));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';function _0x3d07(_0x2a5eab,_0x45d6a0){var _0x55941c=_0x5594();return _0x3d07=function(_0x3d073b,_0x2cf28c){_0x3d073b=_0x3d073b-0x18e;var _0x4820ee=_0x55941c[_0x3d073b];return _0x4820ee;},_0x3d07(_0x2a5eab,_0x45d6a0);}export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x340350=_0x31db;function _0x31db(_0x7abbfe,_0x221b73){const _0x2c5745=_0x2c57();return _0x31db=function(_0x31db10,_0x3ba68a){_0x31db10=_0x31db10-0x80;let _0x241248=_0x2c5745[_0x31db10];return _0x241248;},_0x31db(_0x7abbfe,_0x221b73);}function _0x2c57(){const _0x5b5478=['nodeAfter','attributes','remove','elementName','6975MpwHKi','name','getItems','push','getChanges','values','_getElementKey','length','getElementKey','root','type','714696fzTohL','createRangeOn','_model','delete','get','252MNRnoM','clear','$text','add','position','5868331vNygOG','rootName','slice','element','insert','1251618vqqlFq','280964sKlivg','3280050RsCBRo','has','set','4811875PsEQAK','_trackedElements','reset','_elementName','from','99RTLHRz','$graveyard','flat'];_0x2c57=function(){return _0x5b5478;};return _0x2c57();}(function(_0x135fef,_0x1c6266){const _0x53f9a2=_0x31db,_0x1b696c=_0x135fef();while(!![]){try{const _0x507cb1=parseInt(_0x53f9a2(0x9b))/0x1+parseInt(_0x53f9a2(0x9a))/0x2+-parseInt(_0x53f9a2(0x80))/0x3*(-parseInt(_0x53f9a2(0x90))/0x4)+-parseInt(_0x53f9a2(0x9f))/0x5+parseInt(_0x53f9a2(0x9c))/0x6+parseInt(_0x53f9a2(0x95))/0x7+parseInt(_0x53f9a2(0x8b))/0x8*(-parseInt(_0x53f9a2(0xa4))/0x9);if(_0x507cb1===_0x1c6266)break;else _0x1b696c['push'](_0x1b696c['shift']());}catch(_0x148b91){_0x1b696c['push'](_0x1b696c['shift']());}}}(_0x2c57,0x78676));export class ModelElementTracker{[_0x340350(0x8d)];[_0x340350(0xa2)];[_0x340350(0x86)];[_0x340350(0xa0)]=new Map();constructor(_0x4e60ff,_0x493b45){const _0x11be64=_0x340350;this[_0x11be64(0x8d)]=_0x4e60ff,this[_0x11be64(0xa2)]=_0x493b45[_0x11be64(0xaa)],this[_0x11be64(0x86)]=_0x493b45[_0x11be64(0x88)];}[_0x340350(0xa1)](){const _0xfd5b8a=_0x340350;this[_0xfd5b8a(0xa0)][_0xfd5b8a(0x91)]();}[_0x340350(0x84)](_0x39e3e0){const _0x3cf148=_0x340350,_0x1481a0=new Set(),_0x352610=new Map();for(const _0x10bd8c of _0x39e3e0){if(_0x3cf148(0x99)===_0x10bd8c[_0x3cf148(0x8a)]&&_0x3cf148(0x92)!==_0x10bd8c[_0x3cf148(0x81)]&&_0x10bd8c[_0x3cf148(0x94)][_0x3cf148(0xa7)]){const _0x32644b=this[_0x3cf148(0x8d)][_0x3cf148(0x8c)](_0x10bd8c[_0x3cf148(0x94)][_0x3cf148(0xa7)]);for(const _0x1d2193 of _0x32644b[_0x3cf148(0x82)]()){if(!_0x1d2193['is'](_0x3cf148(0x98),this[_0x3cf148(0xa2)]))continue;const _0x38845e=this[_0x3cf148(0x86)](_0x1d2193);_0x352610[_0x3cf148(0x9d)](_0x38845e)||_0x352610[_0x3cf148(0x9e)](_0x38845e,[]),_0x352610[_0x3cf148(0x8f)](_0x38845e)[_0x3cf148(0x83)](_0x1d2193);}}if(_0x3cf148(0xa9)===_0x10bd8c[_0x3cf148(0x8a)]&&_0x10bd8c[_0x3cf148(0x81)]===this[_0x3cf148(0xa2)]){const _0x2d9545=this[_0x3cf148(0x86)]({'getAttribute':_0x4d5df6=>_0x10bd8c[_0x3cf148(0xa8)][_0x3cf148(0x8f)](_0x4d5df6)});_0x1481a0[_0x3cf148(0x93)](_0x2d9545);}}for(const [_0x1c9018,_0x1b4fec]of this[_0x3cf148(0xa0)])_0x3cf148(0xa5)===_0x1b4fec[_0x3cf148(0x89)][_0x3cf148(0x96)]&&_0x1481a0[_0x3cf148(0x93)](_0x1c9018);for(const _0x5978b0 of _0x1481a0)this[_0x3cf148(0xa0)][_0x3cf148(0x8e)](_0x5978b0);for(const [_0x16ef2d,_0x4e64ab]of _0x352610)this[_0x3cf148(0xa0)][_0x3cf148(0x9e)](_0x16ef2d,_0x4e64ab[_0x4e64ab[_0x3cf148(0x87)]-0x1]);const _0x2701bb=new Set();for(const [_0x4a023c,_0x21a47e]of _0x352610)_0x1481a0[_0x3cf148(0x9d)](_0x4a023c)&&(_0x2701bb[_0x3cf148(0x93)](_0x21a47e[0x0]),_0x21a47e[_0x3cf148(0x87)]>0x1?_0x352610[_0x3cf148(0x9e)](_0x4a023c,_0x21a47e[_0x3cf148(0x97)](0x1)):_0x352610[_0x3cf148(0x8e)](_0x4a023c),_0x1481a0[_0x3cf148(0x8e)](_0x4a023c));return{'removed':Array[_0x3cf148(0xa3)](_0x1481a0),'inserted':Array[_0x3cf148(0xa3)](_0x352610[_0x3cf148(0x85)]())[_0x3cf148(0xa6)](),'moved':Array[_0x3cf148(0xa3)](_0x2701bb)};}}
|