@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251027.0 → 0.0.0-nightly-20251029.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-editor.css +0 -3
- package/dist/index.css +0 -3
- package/dist/index.js +1 -1
- package/lang/contexts.json +4 -3
- 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/theme/footnotes.css +0 -4
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x56ac54}from'ckeditor5/src/core.js';import{isWidget as _0x3e139b,toWidget as _0x4e823f,toWidgetEditable as _0x217a51}from'ckeditor5/src/widget.js';import{uid as _0x4ff677}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3751dc,ClickObserver as _0x371439}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x22b8f2}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1aa36b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x56ac54{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x22b8f2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x12b193}=this;_0x12b193['config']['define']('footnotes.multiBlock',!0x0),_0x12b193['commands']['add']('insertFootnote',new _0x1aa36b(_0x12b193)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x537214){const _0x334bc5=_0x3adfe8([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]),_0x35bd68=0x47a28506,_0x45dca6=0x47a5f266^_0x35bd68,_0x4d16d4=window[_0x3adfe8([0x44,0x61,0x74,0x65])][_0x3adfe8([0x6e,0x6f,0x77])](),_0x41cb0e=_0x537214[_0x3adfe8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54edb9=new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b10c=>{_0x41cb0e[_0x3adfe8([0x6f,0x6e,0x63,0x65])](_0x3adfe8([0x72,0x65,0x61,0x64,0x79]),_0x16b10c);}),_0x262d61={[_0x3adfe8([0x6b,0x74,0x79])]:_0x3adfe8([0x45,0x43]),[_0x3adfe8([0x75,0x73,0x65])]:_0x3adfe8([0x73,0x69,0x67]),[_0x3adfe8([0x63,0x72,0x76])]:_0x3adfe8([0x50,0x2d,0x32,0x35,0x36]),[_0x3adfe8([0x78])]:_0x3adfe8([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]),[_0x3adfe8([0x79])]:_0x3adfe8([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]),[_0x3adfe8([0x61,0x6c,0x67])]:_0x3adfe8([0x45,0x53,0x32,0x35,0x36])},_0x50d160=_0x41cb0e[_0x3adfe8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3adfe8([0x67,0x65,0x74])](_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xabe689(){let _0x47676d,_0x194dee=null,_0x1e7e69=null;try{if(_0x50d160==_0x3adfe8([0x47,0x50,0x4c]))return _0x3adfe8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47676d=_0x16f7e1(),!_0x47676d)return _0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47676d[_0x3adfe8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e7e69=_0x4a3fb0(_0x47676d[_0x3adfe8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47676d[_0x3adfe8([0x6a,0x74,0x69])])),await _0x580c62()?_0x4bc44b()?_0x1a903b()?_0x3adfe8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfb497()?(_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adfe8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x194dee=_0x1fdae0(_0x3adfe8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adfe8([0x74,0x72,0x69,0x61,0x6c])&&(_0x194dee=_0x1fdae0(_0x3adfe8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5801cf()):_0x3adfe8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3adfe8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a903b(){const _0x492d75=[_0x3adfe8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3adfe8([0x74,0x72,0x69,0x61,0x6c])][_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d16d4/0x3e8:0xe10*_0x45dca6;return _0x47676d[_0x3adfe8([0x65,0x78,0x70])]<_0x492d75;}function _0x4bc44b(){const _0x90f914=_0x47676d[_0x3adfe8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x90f914&&(!!_0x90f914[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x2a]))||!!_0x90f914[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x46,0x4f,0x4f])));}function _0xfb497(){const _0xf4dc45=_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf4dc45||0x0==_0xf4dc45[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x449cfe}=new URL(window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf4dc45[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x449cfe))return!0x0;const _0x369e01=_0x449cfe[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e]));return _0xf4dc45[_0x3adfe8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f98d4=>_0x4f98d4[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x2a])))[_0x3adfe8([0x6d,0x61,0x70])](_0x23f611=>_0x23f611[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e])))[_0x3adfe8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56e941=>_0x56e941[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x369e01[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adfe8([0x6d,0x61,0x70])](_0x497351=>Array(_0x369e01[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x497351[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adfe8([0x66,0x69,0x6c,0x6c])](_0x497351[0x0]===_0x3adfe8([0x2a])?_0x3adfe8([0x2a]):'')[_0x3adfe8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x497351))[_0x3adfe8([0x73,0x6f,0x6d,0x65])](_0x5e80d5=>_0x369e01[_0x3adfe8([0x65,0x76,0x65,0x72,0x79])]((_0x21d259,_0x5c1caa)=>_0x5e80d5[_0x5c1caa]===_0x21d259||_0x5e80d5[_0x5c1caa]===_0x3adfe8([0x2a])));}function _0x5801cf(){return _0x194dee&&_0x1e7e69?new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43de78,_0x64350f)=>{_0x194dee[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x43de78,_0x64350f),_0x1e7e69[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x237bc7=>{_0x237bc7!=_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])&&_0x43de78(_0x237bc7);},_0x64350f);}):_0x194dee||_0x1e7e69||_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a3fb0(_0x453e05,_0x1a5b94){return new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107a93=>{if(_0x573685())return _0x107a93(_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]));_0x35bcc9(),_0x41cb0e[_0x3adfe8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bceea=!0x1;const _0x496133=_0x4ff677();function _0x2f91fc(_0x1054ec){return!!_0x1054ec&&(typeof _0x1054ec===_0x3adfe8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1054ec===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1054ec[_0x3adfe8([0x74,0x68,0x65,0x6e])]===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1054ec[_0x3adfe8([0x63,0x61,0x74,0x63,0x68])]===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37b110(_0x44009a){_0x4d221c(_0x44009a)[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0xff21fc=>{if(!_0xff21fc||_0xff21fc[_0x3adfe8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3adfe8([0x6f,0x6b]))return _0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x163ed5(_0x1b40a4(_0x496133+_0x1a5b94))!=_0xff21fc[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]);})[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x45fd19=>(_0x5346e0(),_0x45fd19),()=>{const _0x1deded=_0x274862();return null==_0x1deded?(_0x5346e0(),_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])):_0x3adfe8(_0x4d16d4-_0x1deded>(0x63ae0106^_0x35bd68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x107a93)[_0x3adfe8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d65d4=0x47946b86^_0x35bd68;function _0x5346e0(){const _0x2a8cbe=_0x3adfe8([0x6c,0x6c,0x63,0x74,0x2d])+_0x163ed5(_0x1b40a4(_0x453e05)),_0x3a47f5=_0x2cda0f(_0x163ed5(window[_0x3adfe8([0x4d,0x61,0x74,0x68])][_0x3adfe8([0x63,0x65,0x69,0x6c])](_0x4d16d4/_0x1d65d4)));window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adfe8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a8cbe,_0x3a47f5);}function _0x274862(){const _0x2cad5e=_0x3adfe8([0x6c,0x6c,0x63,0x74,0x2d])+_0x163ed5(_0x1b40a4(_0x453e05)),_0x394abc=window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adfe8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cad5e);return _0x394abc?window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cda0f(_0x394abc),0x10)*_0x1d65d4:null;}function _0x4d221c(_0x2fbb96){return new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b1648,_0x4f82e3)=>{_0x2fbb96[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x1b1648,_0x4f82e3),window[_0x3adfe8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f82e3,0x47a351c6^_0x35bd68);});}}_0x41cb0e[_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ff027,_0xe0fe96)=>{if(_0xe0fe96[0x0]!=_0x453e05)return _0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe0fe96[0x1]={..._0xe0fe96[0x1],[_0x3adfe8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x496133};},{[_0x3adfe8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adfe8([0x68,0x69,0x67,0x68])}),_0x41cb0e[_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x360c97=>{_0x2f91fc(_0x360c97[_0x3adfe8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bceea=!0x0,_0x37b110(_0x360c97[_0x3adfe8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3adfe8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adfe8([0x6c,0x6f,0x77])}),_0x54edb9[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>{_0x4bceea||_0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573685(){return _0x41cb0e[_0x3adfe8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adfe8([0x76,0x69,0x65,0x77])][_0x3adfe8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3adfe8([0x61,0x75,0x74,0x6f]);}function _0x35bcc9(){_0x41cb0e[_0x3adfe8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adfe8([0x76,0x69,0x65,0x77])][_0x3adfe8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3adfe8([0x61,0x75,0x74,0x6f]);}}function _0x1fdae0(_0x1d319e){const _0x12642b=[new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc2760=>setTimeout(_0xcc2760,0x47abbbca^_0x35bd68)),_0x54edb9[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444a0b=>{let _0x2d7a1c=0x0;_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x325881,_0x18e28a)=>{_0x18e28a[0x0][_0x3adfe8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d7a1c++,_0x2d7a1c==(0x47a284fe^_0x35bd68)&&(_0x444a0b(),_0x325881[_0x3adfe8([0x6f,0x66,0x66])]());});}))];return window[_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3adfe8([0x72,0x61,0x63,0x65])](_0x12642b)[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>_0x1d319e);}async function _0x320ac9(){await _0x54edb9,_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3340,_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3340,_0x41cb0e[_0x3adfe8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x438e49(_0x2fcb2e){const _0x4f87c2=_0x472926();_0x41cb0e[_0x4f87c2]=_0x3adfe8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fcb2e,_0x2fcb2e!=_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])&&_0x320ac9();}function _0x472926(){const _0x397a05=window[_0x3adfe8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3adfe8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3adfe8([0x6e,0x6f,0x77])]())[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3adfe8([0x2e]),'');let _0x300ca5=_0x3adfe8([0x75]);for(let _0x518db4=0x0;_0x518db4<_0x397a05[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x518db4+=0x2){let _0x330f20=window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397a05[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x518db4,_0x518db4+0x2));_0x330f20>=_0x334bc5[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x330f20-=_0x334bc5[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x300ca5+=_0x334bc5[_0x330f20];}return _0x300ca5;}function _0x16f7e1(){const _0x55e54c=_0x50d160[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e]));if(0x3!=_0x55e54c[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x478599(_0x55e54c[0x1]);function _0x478599(_0x4cb845){const _0x362a8e=_0x2b4f27(_0x4cb845);return _0x362a8e&&_0x3892c9()?_0x362a8e:null;function _0x3892c9(){const _0x31a331=_0x362a8e[_0x3adfe8([0x6a,0x74,0x69])],_0x5d0ef8=window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31a331[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31a331[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fa8ad={..._0x362a8e,[_0x3adfe8([0x6a,0x74,0x69])]:_0x31a331[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31a331[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fa8ad[_0x3adfe8([0x76,0x63])],_0x1b40a4(_0x1fa8ad)==_0x5d0ef8;}}}async function _0x580c62(){let _0x28621a=!0x0;try{const _0x8e3e2b=_0x50d160[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e])),[_0x4a1026,_0x2bee38,_0x2fc068]=_0x8e3e2b;return _0x31d983(_0x4a1026),await _0xe194cc(_0x4a1026,_0x2bee38,_0x2fc068),_0x28621a;}catch{return!0x1;}function _0x31d983(_0x1babf7){const _0x21cf80=_0x2b4f27(_0x1babf7);_0x21cf80&&_0x21cf80[_0x3adfe8([0x61,0x6c,0x67])]==_0x3adfe8([0x45,0x53,0x32,0x35,0x36])||(_0x28621a=!0x1);}async function _0xe194cc(_0x16b48a,_0x54aa97,_0x50e14f){const _0x19ab7d=window[_0x3adfe8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3adfe8([0x66,0x72,0x6f,0x6d])](_0x173959(_0x50e14f),_0x757b3b=>_0x757b3b[_0x3adfe8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x571dba=new window[(_0x3adfe8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3adfe8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16b48a+_0x3adfe8([0x2e])+_0x54aa97),_0x139a51=window[_0x3adfe8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3adfe8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x139a51)return;const _0x40ff06=await _0x139a51[_0x3adfe8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3adfe8([0x6a,0x77,0x6b]),_0x262d61,{[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x45,0x43,0x44,0x53,0x41]),[_0x3adfe8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3adfe8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x139a51[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x45,0x43,0x44,0x53,0x41]),[_0x3adfe8([0x68,0x61,0x73,0x68])]:{[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ff06,_0x19ab7d,_0x571dba)||(_0x28621a=!0x1);}}function _0x2b4f27(_0x546406){return _0x546406[_0x3adfe8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3adfe8([0x65,0x79]))?JSON[_0x3adfe8([0x70,0x61,0x72,0x73,0x65])](_0x173959(_0x546406)):null;}function _0x173959(_0x347cd2){return window[_0x3adfe8([0x61,0x74,0x6f,0x62])](_0x347cd2[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3adfe8([0x2b]))[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3adfe8([0x2f])));}function _0x1b40a4(_0xaf3ba0){let _0x5aa83=0x1505;function _0x2f5dc9(_0x3e37f2){for(let _0xc842cc=0x0;_0xc842cc<_0x3e37f2[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc842cc++){const _0x3b9ae4=_0x3e37f2[_0x3adfe8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc842cc);_0x5aa83=(_0x5aa83<<0x5)+_0x5aa83+_0x3b9ae4,_0x5aa83&=_0x5aa83;}}function _0xd1ea0f(_0x9b40d7){Array[_0x3adfe8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b40d7)?_0x9b40d7[_0x3adfe8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd1ea0f):_0x9b40d7&&typeof _0x9b40d7==_0x3adfe8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3adfe8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b40d7)[_0x3adfe8([0x73,0x6f,0x72,0x74])]()[_0x3adfe8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x125358,_0x4032d])=>{_0x2f5dc9(_0x125358),_0xd1ea0f(_0x4032d);}):_0x2f5dc9(window[_0x3adfe8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b40d7));}return _0xd1ea0f(_0xaf3ba0),_0x5aa83>>>0x0;}function _0x163ed5(_0x2c7fbb){return _0x2c7fbb[_0x3adfe8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3adfe8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3adfe8([0x30]));}function _0x2cda0f(_0x18aeb5){return _0x18aeb5[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3adfe8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3adfe8([0x6a,0x6f,0x69,0x6e])]('');}function _0x7c3340(){}function _0x3adfe8(_0x272048){return _0x272048['map'](_0x423e9f=>String['fromCharCode'](_0x423e9f))['join']('');}_0x438e49(await _0xabe689());}(this);}['_moveSelectionToFootnoteDefinition'](_0x39c3a3){const {plugins:_0x3f7b37,editing:_0x2231f3,model:_0x4610ce}=this['editor'],_0x98fe4e=_0x3f7b37['get'](_0x22b8f2)['getFootnote'](_0x39c3a3);return!!_0x98fe4e&&(_0x4610ce['change'](_0x42da27=>{_0x42da27['setSelection'](_0x42da27['createPositionAt'](_0x98fe4e['definition'],'end'));}),_0x2231f3['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x13f045){const {plugins:_0x58a615,editing:_0x166c66,model:_0x37f62e}=this['editor'],_0x497a82=_0x58a615['get'](_0x22b8f2)['getFootnote'](_0x13f045);return!!_0x497a82&&(_0x37f62e['change'](_0x7782a7=>{_0x7782a7['setSelection'](_0x497a82['reference'],'on');}),_0x166c66['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x140b46}=this['editor']['model'],_0x26e2f6=this['editor']['config']['get']('footnotes.multiBlock');_0x140b46['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x140b46['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x140b46['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x26e2f6?_0x140b46['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x140b46['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x140b46['addChildCheck'](_0x5ba99c=>{for(const _0x4a1fef of _0x5ba99c)if('footnoteDefinition'===_0x4a1fef['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5e36e5}=this,{conversion:_0xd1e4a7,editing:_0x414cbc}=_0x5e36e5,{t:t}=_0x5e36e5['locale'];_0xd1e4a7['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3c93b3,{writer:_0x4ebdee,consumable:_0x10e538})=>{const _0x38b7e6=_0x3c93b3['getChild'](0x0);if(!_0x38b7e6||!_0x38b7e6['is']('element','a'))return null;const _0x9221c9=_0x38b7e6['getAttribute']('href')||'';if(!_0x9221c9['startsWith']('#'))return null;const _0x2ebb64=_0x9221c9['replace'](/^#/,'');if(!_0x2ebb64)return null;_0x10e538['consume'](_0x38b7e6,{'name':!0x0,'attributes':['href']});for(const {item:_0x299726}of _0x414cbc['view']['createRangeIn'](_0x38b7e6))_0x299726['is']('$textProxy')?_0x10e538['consume'](_0x299726['textNode'],{'name':!0x0}):_0x299726['is']('element')&&_0x10e538['consume'](_0x299726,{'name':!0x0});return _0x4ebdee['createElement']('footnoteRef',{'footnoteId':_0x2ebb64});}}),_0xd1e4a7['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x497bfb,{writer:_0x16e110})=>D(_0x497bfb,_0x16e110)}),_0xd1e4a7['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x300f08,{writer:_0x15f7cc})=>{const _0x24ebe9=_0x300f08['getAttribute']('footnoteCounter');return _0x4e823f(D(_0x300f08,_0x15f7cc),_0x15f7cc,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x24ebe9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5019c9}=this,{t:t}=_0x5019c9['locale'],{conversion:_0x2b1e5b}=_0x5019c9;_0x2b1e5b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2b1e5b['for']('upcast')['add'](_0x4f191e=>{_0x4f191e['on']('element:ol',(_0x1c8aff,_0x52ae63,_0x1d8680)=>{const _0x41d809=_0x52ae63['viewItem'];if(!_0x41d809['hasClass']('footnotes-list')||!_0x52ae63['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1d8680['consumable']['consume'](_0x41d809,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5b20d6,modelCursor:_0x412371}=_0x1d8680['convertChildren'](_0x52ae63['viewItem'],_0x52ae63['modelCursor']);_0x52ae63['modelRange']=_0x5b20d6,_0x52ae63['modelCursor']=_0x412371;}),_0x4f191e['on']('element:hr',(_0x5381a1,_0x138acc,_0x3fbd2e)=>{const _0x2039a5=_0x138acc['viewItem'];_0x2039a5['hasClass']('footnotes-divider')&&_0x138acc['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3fbd2e['consumable']['consume'](_0x2039a5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2b1e5b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x342687,{writer:_0x8b3f7c})=>g(_0x8b3f7c)}),_0x2b1e5b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x39764d,{writer:_0x177291})=>{const _0x1d84b4=g(_0x177291,{'data-footnotes-list-label':t('Footnotes')}),_0x40d1e1=_0x4e823f(_0x1d84b4,_0x177291,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x177291['setCustomProperty']('footnotesDefinitions',!0x0,_0x40d1e1),_0x40d1e1;}});}['_defineDefinitionConverters'](){const {editor:_0x197326}=this,{conversion:_0x28c5fd,locale:_0x4449de}=_0x197326,_0x4ca8a9=_0x197326['config']['get']('footnotes.multiBlock');_0x28c5fd['for']('upcast')['add'](_0x1cbee5=>{_0x1cbee5['on']('element:li',(_0x2e345d,_0x2e88d4,_0x20b44b)=>{const _0x54e140=_0x2e88d4['viewItem'];if(!_0x54e140['hasClass']('footnote-definition')||!_0x54e140['getAttribute']('id'))return;const _0x55aabc=_0x54e140['parent'];if(!_0x55aabc['is']('element','ol')||!_0x55aabc['hasClass']('footnotes-list'))return;if(!_0x20b44b['consumable']['test'](_0x54e140,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x6ce5da=_0x20b44b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x54e140['getAttribute']('id')});if(!_0x20b44b['safeInsert'](_0x6ce5da,_0x2e88d4['modelCursor']))return;_0x20b44b['consumable']['consume'](_0x54e140,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1ec1f0=Array['from'](_0x54e140['getChildren']())['find'](_0x1b3700=>_0x1b3700['is']('element')&&_0x1b3700['hasClass']('footnote-content'));for(const _0x584f83 of _0x54e140['getChildren']())_0x584f83['is']('element')&&(_0x20b44b['consumable']['consume'](_0x584f83,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x20b44b['consumable']['consume'](_0x584f83,{'name':!0x0,'classes':'footnote-content'}));if(_0x1ec1f0){if(_0x4ca8a9)_0x20b44b['convertChildren'](_0x1ec1f0,_0x6ce5da);else{const _0x2b0786=_0x20b44b['writer']['createElement']('footnoteInlineContent');_0x20b44b['writer']['insert'](_0x2b0786,_0x6ce5da),_0x20b44b['convertChildren'](_0x1ec1f0,_0x2b0786);}}_0x20b44b['updateConversionResult'](_0x6ce5da,_0x2e88d4);});}),_0x28c5fd['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x20b5cd,{writer:_0x9fc4f7})=>v(_0x20b5cd,_0x9fc4f7,_0x4449de,{'dataPipeline':!0x0})}),_0x28c5fd['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x42db95,{writer:_0xd12790})=>v(_0x42db95,_0xd12790,_0x4449de)});}['_defineBogusParagraphConverters'](){const {editor:_0x3cfc60}=this,{conversion:_0x89b509}=_0x3cfc60;_0x3cfc60['config']['get']('footnotes.multiBlock')?(_0x89b509['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x89b509['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3cfc60['model']['document'],'change:data',()=>{!function(_0x182649,_0x2847a9){const _0x4d0ec5=_0x182649['document']['differ'],_0x421cd6=new Set();for(const _0x5c0ba9 of _0x4d0ec5['getChanges']()){const _0x564e9e='attribute'==_0x5c0ba9['type']?_0x5c0ba9['range']['start']['parent']:_0x5c0ba9['position']['parent'];_0x564e9e['is']('element','footnoteDefinition')&&_0x421cd6['add'](_0x564e9e);}for(const _0x46bf83 of _0x421cd6['values']()){const _0x12f06d=Array['from'](_0x46bf83['getChildren']())['filter'](_0x2ed3ab=>p(_0x2ed3ab,_0x2847a9['mapper']));for(const _0x2e0090 of _0x12f06d)_0x2847a9['reconvertItem'](_0x2e0090);}}(_0x3cfc60['model'],_0x3cfc60['editing']);})):(_0x89b509['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x89b509['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1d9c6e,{writer:_0x20ce57})=>{const _0x4e1d53=_0x20ce57['createContainerElement']('span');return _0x20ce57['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4e1d53),_0x4e1d53;}}));}['_defineKeyboardHandlers'](){const {editor:_0xdabf32}=this,{editing:_0x321d04,t:t}=_0xdabf32,_0x5374e5=_0xdabf32['model']['document']['selection'];_0xdabf32['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0xdabf32['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x321d04['view']['document'],'enter',(_0x22bae1,_0x5a8ec8)=>{const _0x345d65=function(_0x91cb8f){const _0x5143f4=_0x91cb8f['getSelectedElement']();if(_0x5143f4?.['is']('element','footnoteRef'))return _0x5143f4;return null;}(_0x5374e5);if(_0x345d65){const _0x135836=_0x345d65['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x135836),_0x5a8ec8['preventDefault'](),_0x22bae1['stop']();}},{'context':_0x3e139b});}['_defineClickHandlers'](){const {editor:_0x35b78}=this,{editing:_0x564c99}=_0x35b78;_0x35b78['editing']['view']['addObserver'](_0x3751dc),_0x35b78['editing']['view']['addObserver'](_0x371439);let _0x193c0c=!0x1;this['listenTo'](_0x564c99['view']['document'],'pointerdown',(_0x379e5a,_0x53e0c6)=>{const {target:_0x31de1a}=_0x53e0c6,_0x5763c1=_0x564c99['view']['document']['selection'];_0x193c0c=!(!_0x31de1a['is']('element','sup')||!_0x31de1a['hasClass']('footnote'))&&_0x5763c1['getSelectedElement']()===_0x31de1a;},{'priority':'high'}),this['listenTo'](_0x564c99['view']['document'],'click',(_0xcb978d,_0x448dba)=>{const {target:_0x53935f}=_0x448dba,_0x3e6f05=_0x53935f['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x3e6f05['slice'](0x1)),_0xcb978d['stop'](),_0x448dba['preventDefault']();},{'priority':'high','context':_0x5b0620=>_0x5b0620['is']('element','sup')&&_0x5b0620['hasClass']('footnote')&&_0x193c0c}),this['listenTo'](_0x564c99['view']['document'],'click',(_0x52b19c,_0x361fec)=>{const {target:_0x45d59b}=_0x361fec;if(!_0x45d59b['is']('element','a'))return;let _0x25df90=_0x45d59b['getAttribute']('href');if(!_0x25df90?.['startsWith']('#'))return;_0x25df90=_0x25df90['slice'](0x1);let _0x17329c=!0x1;(_0x25df90['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x25df90['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x25df90))&&(_0x17329c=!0x0),_0x17329c&&(_0x361fec['preventDefault'](),_0x52b19c['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x334cbc}={}){return(_0x4edf76,{writer:_0x103350})=>{if(!h(_0x4edf76))return null;if(!_0x334cbc)return _0x103350['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x23f1d4=_0x103350['createContainerElement']('p');return _0x103350['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23f1d4),_0x23f1d4;};}function h(_0x41e7e5){const {parent:_0x4770bd}=_0x41e7e5;if(!_0x4770bd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4770bd['childCount'])return!0x1;for(const _0x53b280 of _0x41e7e5['getAttributeKeys']())if(!_0x53b280['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x53b280)return!0x1;return!0x0;}function p(_0x3967f3,_0xab2d60){if(!_0x3967f3['is']('element','paragraph'))return!0x1;const _0x98c9a9=_0xab2d60['toViewElement'](_0x3967f3);return!!_0x98c9a9&&h(_0x3967f3)!==_0x98c9a9['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3ebd49){return _0x3e139b(_0x3ebd49)&&_0x3ebd49['is']('containerElement')&&!!_0x3ebd49['getCustomProperty']('footnotesDefinitions');}function g(_0x28d9dd,_0x256609={}){const _0x518f28=_0x28d9dd['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x56dd5e=_0x28d9dd['createContainerElement']('ol',{'class':'footnotes-list'},_0x28d9dd['createSlot']());return _0x28d9dd['createContainerElement']('div',{'class':'footnotes',..._0x256609},[_0x518f28,_0x56dd5e]);}function D(_0x2a6669,_0x38a1ff){const _0x123030=_0x2a6669['getAttribute']('footnoteId'),_0x32e135=_0x2a6669['getAttribute']('footnoteCounter'),_0x29252b=_0x38a1ff['createUIElement']('a',{'href':'#'+_0x123030},function(_0x328d94){const _0x27fa57=this['toDomElement'](_0x328d94);return _0x27fa57['textContent']=_0x32e135,_0x27fa57;}),_0x5cd8ee=_0x38a1ff['createContainerElement']('sup',{'id':'ref-'+_0x123030,'class':'footnote'},[_0x29252b]);return _0x5cd8ee['getFillerOffset']=()=>null,_0x5cd8ee;}function v(_0x498133,_0x1e0b83,_0x44f264,{dataPipeline:_0x50ed22}={}){const {t:t}=_0x44f264,_0x5d4260=_0x498133['getAttribute']('footnoteId'),_0x10c8f3=_0x1e0b83['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5d4260},function(_0x3cdb1e){const _0x108ef8=this['toDomElement'](_0x3cdb1e);return _0x108ef8['innerText']='^',_0x108ef8;}),_0x2423f4=_0x50ed22?_0x1e0b83['createContainerElement']('div',{'class':'footnote-content'}):_0x217a51(_0x1e0b83['createEditableElement']('div',{'class':'footnote-content'}),_0x1e0b83,{'label':t('Footnote\x20content.')});return _0x1e0b83['insert'](_0x1e0b83['createPositionAt'](_0x2423f4,0x0),_0x1e0b83['createSlot']()),_0x1e0b83['createContainerElement']('li',{'class':'footnote-definition','id':_0x5d4260},[_0x10c8f3,_0x2423f4]);}
|
|
23
|
+
import{Plugin as _0x15d83e}from'ckeditor5/src/core.js';import{isWidget as _0xc7766d,toWidget as _0x5ca5e4,toWidgetEditable as _0x4477f0}from'ckeditor5/src/widget.js';import{uid as _0x1ed32b}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1331f7,ClickObserver as _0x1e09de}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x42d64a}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5eb103}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x15d83e{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x42d64a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x927ab3}=this;_0x927ab3['config']['define']('footnotes.multiBlock',!0x0),_0x927ab3['commands']['add']('insertFootnote',new _0x5eb103(_0x927ab3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2c8471){const _0x10ebf9=_0x389833([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]),_0x18e0ed=0x47a28506,_0x1af94e=0x47a5f296^_0x18e0ed,_0x2827fb=window[_0x389833([0x44,0x61,0x74,0x65])][_0x389833([0x6e,0x6f,0x77])](),_0x1e7697=_0x2c8471[_0x389833([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3dbbb4=new window[(_0x389833([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3890db=>{_0x1e7697[_0x389833([0x6f,0x6e,0x63,0x65])](_0x389833([0x72,0x65,0x61,0x64,0x79]),_0x3890db);}),_0x17018c={[_0x389833([0x6b,0x74,0x79])]:_0x389833([0x45,0x43]),[_0x389833([0x75,0x73,0x65])]:_0x389833([0x73,0x69,0x67]),[_0x389833([0x63,0x72,0x76])]:_0x389833([0x50,0x2d,0x32,0x35,0x36]),[_0x389833([0x78])]:_0x389833([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]),[_0x389833([0x79])]:_0x389833([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]),[_0x389833([0x61,0x6c,0x67])]:_0x389833([0x45,0x53,0x32,0x35,0x36])},_0x192725=_0x1e7697[_0x389833([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x389833([0x67,0x65,0x74])](_0x389833([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x559b50(){let _0x57e260,_0x1ac128=null,_0x45fcaa=null;try{if(_0x192725==_0x389833([0x47,0x50,0x4c]))return _0x389833([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57e260=_0x3e25f8(),!_0x57e260)return _0x389833([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57e260[_0x389833([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45fcaa=_0x189173(_0x57e260[_0x389833([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57e260[_0x389833([0x6a,0x74,0x69])])),await _0x1d8432()?_0x4e1b06()?_0x45c20f()?_0x389833([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x364be9()?(_0x57e260[_0x389833([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389833([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ac128=_0x2da700(_0x389833([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57e260[_0x389833([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389833([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ac128=_0x2da700(_0x389833([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ffc7a()):_0x389833([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x389833([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x389833([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x389833([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45c20f(){const _0x260e62=[_0x389833([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x389833([0x74,0x72,0x69,0x61,0x6c])][_0x389833([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57e260[_0x389833([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2827fb/0x3e8:0xe10*_0x1af94e;return _0x57e260[_0x389833([0x65,0x78,0x70])]<_0x260e62;}function _0x4e1b06(){const _0x520015=_0x57e260[_0x389833([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x520015&&(!!_0x520015[_0x389833([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389833([0x2a]))||!!_0x520015[_0x389833([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389833([0x46,0x4f,0x4f])));}function _0x364be9(){const _0x3a7976=_0x57e260[_0x389833([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a7976||0x0==_0x3a7976[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c50f4}=new URL(window[_0x389833([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a7976[_0x389833([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c50f4))return!0x0;const _0x452469=_0x5c50f4[_0x389833([0x73,0x70,0x6c,0x69,0x74])](_0x389833([0x2e]));return _0x3a7976[_0x389833([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d3831=>_0x5d3831[_0x389833([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389833([0x2a])))[_0x389833([0x6d,0x61,0x70])](_0x10d01b=>_0x10d01b[_0x389833([0x73,0x70,0x6c,0x69,0x74])](_0x389833([0x2e])))[_0x389833([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3925a9=>_0x3925a9[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x452469[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389833([0x6d,0x61,0x70])](_0x3619d1=>Array(_0x452469[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3619d1[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389833([0x66,0x69,0x6c,0x6c])](_0x3619d1[0x0]===_0x389833([0x2a])?_0x389833([0x2a]):'')[_0x389833([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3619d1))[_0x389833([0x73,0x6f,0x6d,0x65])](_0x34fcdc=>_0x452469[_0x389833([0x65,0x76,0x65,0x72,0x79])]((_0x507f17,_0x41fff6)=>_0x34fcdc[_0x41fff6]===_0x507f17||_0x34fcdc[_0x41fff6]===_0x389833([0x2a])));}function _0x1ffc7a(){return _0x1ac128&&_0x45fcaa?new window[(_0x389833([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x264f5b,_0x184d30)=>{_0x1ac128[_0x389833([0x74,0x68,0x65,0x6e])](_0x264f5b,_0x184d30),_0x45fcaa[_0x389833([0x74,0x68,0x65,0x6e])](_0x5168ca=>{_0x5168ca!=_0x389833([0x56,0x61,0x6c,0x69,0x64])&&_0x264f5b(_0x5168ca);},_0x184d30);}):_0x1ac128||_0x45fcaa||_0x389833([0x56,0x61,0x6c,0x69,0x64]);}}function _0x189173(_0x37b88e,_0x31c199){return new window[(_0x389833([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369a5b=>{if(_0x4b7c90())return _0x369a5b(_0x389833([0x56,0x61,0x6c,0x69,0x64]));_0x4fea90(),_0x1e7697[_0x389833([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x389833([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a80ea=!0x1;const _0x275da4=_0x1ed32b();function _0x5cb0c1(_0x155850){return!!_0x155850&&(typeof _0x155850===_0x389833([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x155850===_0x389833([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x155850[_0x389833([0x74,0x68,0x65,0x6e])]===_0x389833([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x155850[_0x389833([0x63,0x61,0x74,0x63,0x68])]===_0x389833([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6c5be(_0x16086f){_0xf49348(_0x16086f)[_0x389833([0x74,0x68,0x65,0x6e])](_0x4826d7=>{if(!_0x4826d7||_0x4826d7[_0x389833([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x389833([0x6f,0x6b]))return _0x389833([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24def6(_0x11b3c3(_0x275da4+_0x31c199))!=_0x4826d7[_0x389833([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x389833([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x389833([0x56,0x61,0x6c,0x69,0x64]);})[_0x389833([0x74,0x68,0x65,0x6e])](_0x45202c=>(_0x2e16db(),_0x45202c),()=>{const _0x5904b9=_0x55bd4f();return null==_0x5904b9?(_0x2e16db(),_0x389833([0x56,0x61,0x6c,0x69,0x64])):_0x389833(_0x2827fb-_0x5904b9>(0x63ae0106^_0x18e0ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x389833([0x74,0x68,0x65,0x6e])](_0x369a5b)[_0x389833([0x63,0x61,0x74,0x63,0x68])](()=>{_0x369a5b(_0x389833([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ace38=0x47946b86^_0x18e0ed;function _0x2e16db(){const _0x2b885b=_0x389833([0x6c,0x6c,0x63,0x74,0x2d])+_0x24def6(_0x11b3c3(_0x37b88e)),_0x2e6437=_0x41f692(_0x24def6(window[_0x389833([0x4d,0x61,0x74,0x68])][_0x389833([0x63,0x65,0x69,0x6c])](_0x2827fb/_0x5ace38)));window[_0x389833([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389833([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b885b,_0x2e6437);}function _0x55bd4f(){const _0x507936=_0x389833([0x6c,0x6c,0x63,0x74,0x2d])+_0x24def6(_0x11b3c3(_0x37b88e)),_0x22ccab=window[_0x389833([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389833([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x507936);return _0x22ccab?window[_0x389833([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41f692(_0x22ccab),0x10)*_0x5ace38:null;}function _0xf49348(_0x22f0b7){return new window[(_0x389833([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bb8ce,_0x4136be)=>{_0x22f0b7[_0x389833([0x74,0x68,0x65,0x6e])](_0x3bb8ce,_0x4136be),window[_0x389833([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4136be,0x47a351c6^_0x18e0ed);});}}_0x1e7697[_0x389833([0x6f,0x6e])](_0x389833([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x218f33,_0x61ff41)=>{if(_0x61ff41[0x0]!=_0x37b88e)return _0x369a5b(_0x389833([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x61ff41[0x1]={..._0x61ff41[0x1],[_0x389833([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x275da4};},{[_0x389833([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389833([0x68,0x69,0x67,0x68])}),_0x1e7697[_0x389833([0x6f,0x6e])](_0x389833([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ec649=>{_0x5cb0c1(_0x5ec649[_0x389833([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a80ea=!0x0,_0x6c5be(_0x5ec649[_0x389833([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x389833([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389833([0x6c,0x6f,0x77])}),_0x3dbbb4[_0x389833([0x74,0x68,0x65,0x6e])](()=>{_0x1a80ea||_0x369a5b(_0x389833([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b7c90(){return _0x1e7697[_0x389833([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389833([0x76,0x69,0x65,0x77])][_0x389833([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x389833([0x61,0x75,0x74,0x6f]);}function _0x4fea90(){_0x1e7697[_0x389833([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389833([0x76,0x69,0x65,0x77])][_0x389833([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x389833([0x61,0x75,0x74,0x6f]);}}function _0x2da700(_0x4c4a77){const _0x5df9c7=[new window[(_0x389833([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d058=>setTimeout(_0x37d058,0x47abbbca^_0x18e0ed)),_0x3dbbb4[_0x389833([0x74,0x68,0x65,0x6e])](()=>new window[(_0x389833([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x122361=>{let _0x34b1f1=0x0;_0x1e7697[_0x389833([0x6d,0x6f,0x64,0x65,0x6c])][_0x389833([0x6f,0x6e])](_0x389833([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c9c95,_0x4b9e67)=>{_0x4b9e67[0x0][_0x389833([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34b1f1++,_0x34b1f1==(0x47a284fe^_0x18e0ed)&&(_0x122361(),_0x3c9c95[_0x389833([0x6f,0x66,0x66])]());});}))];return window[_0x389833([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x389833([0x72,0x61,0x63,0x65])](_0x5df9c7)[_0x389833([0x74,0x68,0x65,0x6e])](()=>_0x4c4a77);}async function _0x5afebb(){await _0x3dbbb4,_0x1e7697[_0x389833([0x6d,0x6f,0x64,0x65,0x6c])][_0x389833([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5269da,_0x1e7697[_0x389833([0x6d,0x6f,0x64,0x65,0x6c])][_0x389833([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5269da,_0x1e7697[_0x389833([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x389833([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4851ae(_0x5b9533){const _0x2934aa=_0x464e29();_0x1e7697[_0x2934aa]=_0x389833([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b9533,_0x5b9533!=_0x389833([0x56,0x61,0x6c,0x69,0x64])&&_0x5afebb();}function _0x464e29(){const _0x19ab34=window[_0x389833([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x389833([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x389833([0x6e,0x6f,0x77])]())[_0x389833([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x389833([0x2e]),'');let _0x1fc11a=_0x389833([0x75]);for(let _0x1a7697=0x0;_0x1a7697<_0x19ab34[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a7697+=0x2){let _0x292464=window[_0x389833([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19ab34[_0x389833([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a7697,_0x1a7697+0x2));_0x292464>=_0x10ebf9[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x292464-=_0x10ebf9[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fc11a+=_0x10ebf9[_0x292464];}return _0x1fc11a;}function _0x3e25f8(){const _0x476285=_0x192725[_0x389833([0x73,0x70,0x6c,0x69,0x74])](_0x389833([0x2e]));if(0x3!=_0x476285[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f8cc4(_0x476285[0x1]);function _0x4f8cc4(_0x3089e9){const _0x228df5=_0x3d1122(_0x3089e9);return _0x228df5&&_0xb52f88()?_0x228df5:null;function _0xb52f88(){const _0xabe053=_0x228df5[_0x389833([0x6a,0x74,0x69])],_0x55f859=window[_0x389833([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xabe053[_0x389833([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xabe053[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38b81c={..._0x228df5,[_0x389833([0x6a,0x74,0x69])]:_0xabe053[_0x389833([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xabe053[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38b81c[_0x389833([0x76,0x63])],_0x11b3c3(_0x38b81c)==_0x55f859;}}}async function _0x1d8432(){let _0x1f3c66=!0x0;try{const _0x4cc4a8=_0x192725[_0x389833([0x73,0x70,0x6c,0x69,0x74])](_0x389833([0x2e])),[_0x3457eb,_0x1923ca,_0xa3b24a]=_0x4cc4a8;return _0x77e204(_0x3457eb),await _0x110928(_0x3457eb,_0x1923ca,_0xa3b24a),_0x1f3c66;}catch{return!0x1;}function _0x77e204(_0x2b47cc){const _0x45d587=_0x3d1122(_0x2b47cc);_0x45d587&&_0x45d587[_0x389833([0x61,0x6c,0x67])]==_0x389833([0x45,0x53,0x32,0x35,0x36])||(_0x1f3c66=!0x1);}async function _0x110928(_0x282d58,_0x567845,_0x4ffb98){const _0x539851=window[_0x389833([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x389833([0x66,0x72,0x6f,0x6d])](_0x14daef(_0x4ffb98),_0x31d60f=>_0x31d60f[_0x389833([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4189b2=new window[(_0x389833([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x389833([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x282d58+_0x389833([0x2e])+_0x567845),_0x457fb1=window[_0x389833([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x389833([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x457fb1)return;const _0x3ca86e=await _0x457fb1[_0x389833([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x389833([0x6a,0x77,0x6b]),_0x17018c,{[_0x389833([0x6e,0x61,0x6d,0x65])]:_0x389833([0x45,0x43,0x44,0x53,0x41]),[_0x389833([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x389833([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x389833([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x457fb1[_0x389833([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x389833([0x6e,0x61,0x6d,0x65])]:_0x389833([0x45,0x43,0x44,0x53,0x41]),[_0x389833([0x68,0x61,0x73,0x68])]:{[_0x389833([0x6e,0x61,0x6d,0x65])]:_0x389833([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ca86e,_0x539851,_0x4189b2)||(_0x1f3c66=!0x1);}}function _0x3d1122(_0x31d5c2){return _0x31d5c2[_0x389833([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x389833([0x65,0x79]))?JSON[_0x389833([0x70,0x61,0x72,0x73,0x65])](_0x14daef(_0x31d5c2)):null;}function _0x14daef(_0x3c9686){return window[_0x389833([0x61,0x74,0x6f,0x62])](_0x3c9686[_0x389833([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x389833([0x2b]))[_0x389833([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x389833([0x2f])));}function _0x11b3c3(_0x2534e1){let _0x52f18d=0x1505;function _0x282156(_0x1e3de0){for(let _0x1d3019=0x0;_0x1d3019<_0x1e3de0[_0x389833([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d3019++){const _0x2a5a5b=_0x1e3de0[_0x389833([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d3019);_0x52f18d=(_0x52f18d<<0x5)+_0x52f18d+_0x2a5a5b,_0x52f18d&=_0x52f18d;}}function _0x5c222e(_0x2b38d1){Array[_0x389833([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b38d1)?_0x2b38d1[_0x389833([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c222e):_0x2b38d1&&typeof _0x2b38d1==_0x389833([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x389833([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b38d1)[_0x389833([0x73,0x6f,0x72,0x74])]()[_0x389833([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d440d,_0x50b17b])=>{_0x282156(_0x5d440d),_0x5c222e(_0x50b17b);}):_0x282156(window[_0x389833([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b38d1));}return _0x5c222e(_0x2534e1),_0x52f18d>>>0x0;}function _0x24def6(_0x48ddee){return _0x48ddee[_0x389833([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x389833([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x389833([0x30]));}function _0x41f692(_0x4e7c93){return _0x4e7c93[_0x389833([0x73,0x70,0x6c,0x69,0x74])]('')[_0x389833([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x389833([0x6a,0x6f,0x69,0x6e])]('');}function _0x5269da(){}function _0x389833(_0x177a6a){return _0x177a6a['map'](_0x31f93d=>String['fromCharCode'](_0x31f93d))['join']('');}_0x4851ae(await _0x559b50());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5cd077){const {plugins:_0x55b928,editing:_0x52407f,model:_0xa7af51}=this['editor'],_0x396d32=_0x55b928['get'](_0x42d64a)['getFootnote'](_0x5cd077);return!!_0x396d32&&(_0xa7af51['change'](_0x2364df=>{_0x2364df['setSelection'](_0x2364df['createPositionAt'](_0x396d32['definition'],'end'));}),_0x52407f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1c83bb){const {plugins:_0x5affdb,editing:_0x46a88b,model:_0x50235b}=this['editor'],_0x192070=_0x5affdb['get'](_0x42d64a)['getFootnote'](_0x1c83bb);return!!_0x192070&&(_0x50235b['change'](_0x18b6ba=>{_0x18b6ba['setSelection'](_0x192070['reference'],'on');}),_0x46a88b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x47d564}=this['editor']['model'],_0x5a7b90=this['editor']['config']['get']('footnotes.multiBlock');_0x47d564['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x47d564['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x47d564['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5a7b90?_0x47d564['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x47d564['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x47d564['addChildCheck'](_0x48bd0f=>{for(const _0x275df6 of _0x48bd0f)if('footnoteDefinition'===_0x275df6['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x23c043}=this,{conversion:_0x4aac3f,editing:_0x5a400c}=_0x23c043,{t:t}=_0x23c043['locale'];_0x4aac3f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x37935e,{writer:_0x4d9e95,consumable:_0xd5d962})=>{const _0x12a32f=_0x37935e['getChild'](0x0);if(!_0x12a32f||!_0x12a32f['is']('element','a'))return null;const _0x451f58=_0x12a32f['getAttribute']('href')||'';if(!_0x451f58['startsWith']('#'))return null;const _0xc67cfa=_0x451f58['replace'](/^#/,'');if(!_0xc67cfa)return null;_0xd5d962['consume'](_0x12a32f,{'name':!0x0,'attributes':['href']});for(const {item:_0x3bb418}of _0x5a400c['view']['createRangeIn'](_0x12a32f))_0x3bb418['is']('$textProxy')?_0xd5d962['consume'](_0x3bb418['textNode'],{'name':!0x0}):_0x3bb418['is']('element')&&_0xd5d962['consume'](_0x3bb418,{'name':!0x0});return _0x4d9e95['createElement']('footnoteRef',{'footnoteId':_0xc67cfa});}}),_0x4aac3f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x37bdc9,{writer:_0x3d2ed5})=>D(_0x37bdc9,_0x3d2ed5)}),_0x4aac3f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3284ec,{writer:_0x477c46})=>{const _0x297471=_0x3284ec['getAttribute']('footnoteCounter');return _0x5ca5e4(D(_0x3284ec,_0x477c46),_0x477c46,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x297471)});}});}['_defineDefinitionsConverters'](){const {editor:_0x571654}=this,{t:t}=_0x571654['locale'],{conversion:_0x1d4f36}=_0x571654;_0x1d4f36['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1d4f36['for']('upcast')['add'](_0x21cea5=>{_0x21cea5['on']('element:ol',(_0x2250a4,_0x4dc4f1,_0x3b7805)=>{const _0x3f6c8e=_0x4dc4f1['viewItem'];if(!_0x3f6c8e['hasClass']('footnotes-list')||!_0x4dc4f1['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3b7805['consumable']['consume'](_0x3f6c8e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x36a311,modelCursor:_0xf2f5e6}=_0x3b7805['convertChildren'](_0x4dc4f1['viewItem'],_0x4dc4f1['modelCursor']);_0x4dc4f1['modelRange']=_0x36a311,_0x4dc4f1['modelCursor']=_0xf2f5e6;}),_0x21cea5['on']('element:hr',(_0x1151d0,_0x417eab,_0x5f2277)=>{const _0x4b07a0=_0x417eab['viewItem'];_0x4b07a0['hasClass']('footnotes-divider')&&_0x417eab['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f2277['consumable']['consume'](_0x4b07a0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1d4f36['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2d8cfa,{writer:_0x378de0})=>g(_0x378de0)}),_0x1d4f36['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x516785,{writer:_0x480d2a})=>{const _0x52e08d=g(_0x480d2a,{'data-footnotes-list-label':t('Footnotes')}),_0x6071af=_0x5ca5e4(_0x52e08d,_0x480d2a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x480d2a['setCustomProperty']('footnotesDefinitions',!0x0,_0x6071af),_0x6071af;}});}['_defineDefinitionConverters'](){const {editor:_0x965780}=this,{conversion:_0x1be541,locale:_0x3238a3}=_0x965780,_0x3c69cc=_0x965780['config']['get']('footnotes.multiBlock');_0x1be541['for']('upcast')['add'](_0x4f1bdf=>{_0x4f1bdf['on']('element:li',(_0x2ea0a5,_0x44ec41,_0x13783b)=>{const _0x9d808d=_0x44ec41['viewItem'];if(!_0x9d808d['hasClass']('footnote-definition')||!_0x9d808d['getAttribute']('id'))return;const _0x29f543=_0x9d808d['parent'];if(!_0x29f543['is']('element','ol')||!_0x29f543['hasClass']('footnotes-list'))return;if(!_0x13783b['consumable']['test'](_0x9d808d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x34f7ed=_0x13783b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x9d808d['getAttribute']('id')});if(!_0x13783b['safeInsert'](_0x34f7ed,_0x44ec41['modelCursor']))return;_0x13783b['consumable']['consume'](_0x9d808d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x17a670=Array['from'](_0x9d808d['getChildren']())['find'](_0x49536c=>_0x49536c['is']('element')&&_0x49536c['hasClass']('footnote-content'));for(const _0x2e7ed5 of _0x9d808d['getChildren']())_0x2e7ed5['is']('element')&&(_0x13783b['consumable']['consume'](_0x2e7ed5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x13783b['consumable']['consume'](_0x2e7ed5,{'name':!0x0,'classes':'footnote-content'}));if(_0x17a670){if(_0x3c69cc)_0x13783b['convertChildren'](_0x17a670,_0x34f7ed);else{const _0x15b2ef=_0x13783b['writer']['createElement']('footnoteInlineContent');_0x13783b['writer']['insert'](_0x15b2ef,_0x34f7ed),_0x13783b['convertChildren'](_0x17a670,_0x15b2ef);}}_0x13783b['updateConversionResult'](_0x34f7ed,_0x44ec41);});}),_0x1be541['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x57b68f,{writer:_0x56012f})=>v(_0x57b68f,_0x56012f,_0x3238a3,{'dataPipeline':!0x0})}),_0x1be541['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x310cb4,{writer:_0x38f30f})=>v(_0x310cb4,_0x38f30f,_0x3238a3)});}['_defineBogusParagraphConverters'](){const {editor:_0x5bfee8}=this,{conversion:_0x1247e9}=_0x5bfee8;_0x5bfee8['config']['get']('footnotes.multiBlock')?(_0x1247e9['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x1247e9['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5bfee8['model']['document'],'change:data',()=>{!function(_0x5c14a0,_0x35c0f7){const _0x340bde=_0x5c14a0['document']['differ'],_0x5645a9=new Set();for(const _0x1fbaf5 of _0x340bde['getChanges']()){const _0x52f1a5='attribute'==_0x1fbaf5['type']?_0x1fbaf5['range']['start']['parent']:_0x1fbaf5['position']['parent'];_0x52f1a5['is']('element','footnoteDefinition')&&_0x5645a9['add'](_0x52f1a5);}for(const _0x273782 of _0x5645a9['values']()){const _0x2f6d4b=Array['from'](_0x273782['getChildren']())['filter'](_0x4f700c=>p(_0x4f700c,_0x35c0f7['mapper']));for(const _0x2d9820 of _0x2f6d4b)_0x35c0f7['reconvertItem'](_0x2d9820);}}(_0x5bfee8['model'],_0x5bfee8['editing']);})):(_0x1247e9['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x1247e9['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x207be0,{writer:_0x136f62})=>{const _0x167c01=_0x136f62['createContainerElement']('span');return _0x136f62['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x167c01),_0x167c01;}}));}['_defineKeyboardHandlers'](){const {editor:_0x43f87a}=this,{editing:_0x38ea28,t:t}=_0x43f87a,_0x12345f=_0x43f87a['model']['document']['selection'];_0x43f87a['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x43f87a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x38ea28['view']['document'],'enter',(_0x48732a,_0x5ad9e8)=>{const _0x2e726d=function(_0x545ae8){const _0x4a0ea4=_0x545ae8['getSelectedElement']();if(_0x4a0ea4?.['is']('element','footnoteRef'))return _0x4a0ea4;return null;}(_0x12345f);if(_0x2e726d){const _0x5882e6=_0x2e726d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5882e6),_0x5ad9e8['preventDefault'](),_0x48732a['stop']();}},{'context':_0xc7766d});}['_defineClickHandlers'](){const {editor:_0x45f3b8}=this,{editing:_0x3716f3}=_0x45f3b8;_0x45f3b8['editing']['view']['addObserver'](_0x1331f7),_0x45f3b8['editing']['view']['addObserver'](_0x1e09de);let _0x1ae95f=!0x1;this['listenTo'](_0x3716f3['view']['document'],'pointerdown',(_0x111467,_0x543dca)=>{const {target:_0x5ed8de}=_0x543dca,_0xca0b5e=_0x3716f3['view']['document']['selection'];_0x1ae95f=!!(_0x5ed8de['is']('element','a')&&_0x5ed8de['parent']?.['is']('element','sup')&&_0x5ed8de['parent']['hasClass']('footnote'))&&_0xca0b5e['getSelectedElement']()===_0x5ed8de['parent'];},{'priority':'high'}),this['listenTo'](_0x3716f3['view']['document'],'click',(_0x52eb98,_0x88a4e5)=>{const {target:_0x11a687}=_0x88a4e5;if(!_0x11a687['is']('element','a'))return;if(_0x11a687['parent']?.['is']('element','sup')&&_0x11a687['parent']['hasClass']('footnote')&&!_0x1ae95f)return void _0x88a4e5['preventDefault']();let _0x2d2e6e=_0x11a687['getAttribute']('href');if(!_0x2d2e6e?.['startsWith']('#'))return;_0x2d2e6e=_0x2d2e6e['slice'](0x1);let _0x2c3662=!0x1;(_0x2d2e6e['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2d2e6e['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2d2e6e))&&(_0x2c3662=!0x0),_0x2c3662&&(_0x88a4e5['preventDefault'](),_0x52eb98['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0xaf0e7b}={}){return(_0x2b67a0,{writer:_0x2b91ce})=>{if(!h(_0x2b67a0))return null;if(!_0xaf0e7b)return _0x2b91ce['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4547bd=_0x2b91ce['createContainerElement']('p');return _0x2b91ce['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4547bd),_0x4547bd;};}function h(_0x77db1d){const {parent:_0x3d28e2}=_0x77db1d;if(!_0x3d28e2?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3d28e2['childCount'])return!0x1;for(const _0x583949 of _0x77db1d['getAttributeKeys']())if(!_0x583949['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x583949)return!0x1;return!0x0;}function p(_0x2bb19d,_0x4f0692){if(!_0x2bb19d['is']('element','paragraph'))return!0x1;const _0x5a7d83=_0x4f0692['toViewElement'](_0x2bb19d);return!!_0x5a7d83&&h(_0x2bb19d)!==_0x5a7d83['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4e0bfa){return _0xc7766d(_0x4e0bfa)&&_0x4e0bfa['is']('containerElement')&&!!_0x4e0bfa['getCustomProperty']('footnotesDefinitions');}function g(_0x4f0d5c,_0x242efb={}){const _0x4df2bf=_0x4f0d5c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x20ed2c=_0x4f0d5c['createContainerElement']('ol',{'class':'footnotes-list'},_0x4f0d5c['createSlot']());return _0x4f0d5c['createContainerElement']('div',{'class':'footnotes',..._0x242efb},[_0x4df2bf,_0x20ed2c]);}function D(_0x585f83,_0x2e6f3e){const _0x5a1637=_0x585f83['getAttribute']('footnoteId'),_0x56b847=_0x585f83['getAttribute']('footnoteCounter'),_0x367d04=_0x2e6f3e['createUIElement']('a',{'href':'#'+_0x5a1637},function(_0x10f11b){const _0x1d7520=this['toDomElement'](_0x10f11b);return _0x1d7520['textContent']=_0x56b847,_0x1d7520;}),_0x6060d=_0x2e6f3e['createContainerElement']('sup',{'id':'ref-'+_0x5a1637,'class':'footnote'},[_0x367d04]);return _0x6060d['getFillerOffset']=()=>null,_0x6060d;}function v(_0x53d7ae,_0x7d0c2b,_0x3a8bea,{dataPipeline:_0xac2a75}={}){const {t:t}=_0x3a8bea,_0x41d556=_0x53d7ae['getAttribute']('footnoteId'),_0x1a7d3c=_0x7d0c2b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x41d556},function(_0x210f9c){const _0x334384=this['toDomElement'](_0x210f9c);return _0x334384['innerText']='^',_0x334384;}),_0x5e8325=_0xac2a75?_0x7d0c2b['createContainerElement']('div',{'class':'footnote-content'}):_0x4477f0(_0x7d0c2b['createEditableElement']('div',{'class':'footnote-content'}),_0x7d0c2b,{'label':t('Footnote\x20content.')});return _0x7d0c2b['insert'](_0x7d0c2b['createPositionAt'](_0x5e8325,0x0),_0x7d0c2b['createSlot']()),_0x7d0c2b['createContainerElement']('li',{'class':'footnote-definition','id':_0x41d556},[_0x1a7d3c,_0x5e8325]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47889d=_0x5a28;function _0x1e93(){const _0x2a2022=['setAttribute','isInteger','footnotesListStart','value','execute','4461126EvQIoH','refresh','7752549IMxlDm','1005426mRJlRN','change','plugins','8HilRab','_updateFootnotesCounters','model','3909292CmOPJf','3vSDjRC','getFootnotesDefinitionsObjectElement','isEnabled','4632588gETeZN','501848ctejXG','get','2515700EvjOEi','getAttribute'];_0x1e93=function(){return _0x2a2022;};return _0x1e93();}(function(_0x503b84,_0xbadc52){const _0x5592ad=_0x5a28,_0x585ac1=_0x503b84();while(!![]){try{const _0x31b716=parseInt(_0x5592ad(0xd3))/0x1+parseInt(_0x5592ad(0xde))/0x2+parseInt(_0x5592ad(0xda))/0x3*(-parseInt(_0x5592ad(0xd9))/0x4)+parseInt(_0x5592ad(0xe0))/0x5+-parseInt(_0x5592ad(0xd0))/0x6+parseInt(_0x5592ad(0xd2))/0x7+parseInt(_0x5592ad(0xd6))/0x8*(-parseInt(_0x5592ad(0xdd))/0x9);if(_0x31b716===_0xbadc52)break;else _0x585ac1['push'](_0x585ac1['shift']());}catch(_0x110695){_0x585ac1['push'](_0x585ac1['shift']());}}}(_0x1e93,0x9a27d));function _0x5a28(_0x302658,_0x2c5b79){const _0x1e931a=_0x1e93();return _0x5a28=function(_0x5a2848,_0x4d3f5d){_0x5a2848=_0x5a2848-0xcc;let _0xbdb0d5=_0x1e931a[_0x5a2848];return _0xbdb0d5;},_0x5a28(_0x302658,_0x2c5b79);}import{Command as _0x2fb1e2}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x566b42}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x2fb1e2{[_0x47889d(0xd1)](){const _0x9017f5=_0x47889d,{editor:_0x462f27}=this,_0x3844ee=_0x462f27[_0x9017f5(0xd5)][_0x9017f5(0xdf)](_0x566b42)[_0x9017f5(0xdb)]();this[_0x9017f5(0xdc)]=!!_0x3844ee,this[_0x9017f5(0xce)]=_0x3844ee?.[_0x9017f5(0xe1)](_0x9017f5(0xcd))??null;}[_0x47889d(0xcf)]({value:_0x14e81e}){const _0x25face=_0x47889d,{editor:_0x463234}=this,_0x3bd18e=_0x463234[_0x25face(0xd5)][_0x25face(0xdf)](_0x566b42),_0x26c094=_0x3bd18e[_0x25face(0xdb)]();_0x26c094&&Number[_0x25face(0xcc)](_0x14e81e)&&_0x463234[_0x25face(0xd8)][_0x25face(0xd4)](_0x4a77e4=>{const _0x534e8b=_0x25face;_0x4a77e4[_0x534e8b(0xe2)](_0x534e8b(0xcd),_0x14e81e,_0x26c094),_0x3bd18e[_0x534e8b(0xd7)](_0x4a77e4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x40d41d=_0x2f1a;(function(_0x173b96,_0x116528){const _0x38dfd4=_0x2f1a,_0x514d88=_0x173b96();while(!![]){try{const _0x5b0bc7=parseInt(_0x38dfd4(0x152))/0x1*(parseInt(_0x38dfd4(0x13c))/0x2)+parseInt(_0x38dfd4(0x146))/0x3*(-parseInt(_0x38dfd4(0x147))/0x4)+-parseInt(_0x38dfd4(0x150))/0x5*(-parseInt(_0x38dfd4(0x153))/0x6)+-parseInt(_0x38dfd4(0x143))/0x7+parseInt(_0x38dfd4(0x148))/0x8*(-parseInt(_0x38dfd4(0x142))/0x9)+-parseInt(_0x38dfd4(0x13a))/0xa*(-parseInt(_0x38dfd4(0x151))/0xb)+parseInt(_0x38dfd4(0x145))/0xc;if(_0x5b0bc7===_0x116528)break;else _0x514d88['push'](_0x514d88['shift']());}catch(_0x52c05e){_0x514d88['push'](_0x514d88['shift']());}}}(_0xa57b,0x18df2));function _0xa57b(){const _0x4a2075=['170fhmQvn','146498JsoVOi','2431bneZRo','8820TkdIOG','50tJhWsK','footnotesListStyle','166YcbRwb','getFootnotesDefinitionsObjectElement','change','value','includes','refresh','189VPmqUj','1049951vVBOYD','setAttribute','2377992SpYQKL','36rrsyml','34664ccoguF','61200OXqDzp','isEnabled','_updateFootnotesCounters','model','execute','getAttribute','get','plugins'];_0xa57b=function(){return _0x4a2075;};return _0xa57b();}import{Command as _0x5a36f0}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x24f2b9}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x479ca8}from'../../footnotestracker.js';function _0x2f1a(_0x1aaf4f,_0x348057){const _0xa57b5e=_0xa57b();return _0x2f1a=function(_0x2f1ab6,_0x3ac585){_0x2f1ab6=_0x2f1ab6-0x13a;let _0x159bee=_0xa57b5e[_0x2f1ab6];return _0x159bee;},_0x2f1a(_0x1aaf4f,_0x348057);}export class FootnotesStyleCommand extends _0x5a36f0{[_0x40d41d(0x141)](){const _0x5eb7c1=_0x40d41d,{editor:_0x5e8067}=this,_0x276eb9=_0x5e8067[_0x5eb7c1(0x14f)][_0x5eb7c1(0x14e)](_0x479ca8)[_0x5eb7c1(0x13d)]();this[_0x5eb7c1(0x149)]=!!_0x276eb9,this[_0x5eb7c1(0x13f)]=_0x276eb9?.[_0x5eb7c1(0x14d)](_0x5eb7c1(0x13b))??null;}[_0x40d41d(0x14c)]({value:_0xbb7632}){const _0x26a719=_0x40d41d,{editor:_0x4220c4}=this,_0x5cdb10=_0x4220c4[_0x26a719(0x14f)][_0x26a719(0x14e)](_0x479ca8),_0x161d68=_0x5cdb10[_0x26a719(0x13d)]();_0x161d68&&_0x24f2b9[_0x26a719(0x140)](_0xbb7632)&&_0x4220c4[_0x26a719(0x14b)][_0x26a719(0x13e)](_0x36a245=>{const _0x5816ee=_0x26a719;_0x36a245[_0x5816ee(0x144)](_0x5816ee(0x13b),_0xbb7632,_0x161d68),_0x5cdb10[_0x5816ee(0x14a)](_0x36a245);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1cf26c=_0x14f1;function _0x417b(){const _0x48b735=['1890DTSZXq','decimal-leading-zero','1738530nzKKxQ','2MLlHNl','upper-alpha','14hOofTj','1416177OxCeZb','lower-alpha','lower-roman','lower-latin','upper-roman','1860NJkYPU','11099EktUzf','364440NqIxnR','1072038XJLNec','84127MjhOne','decimal','1320ExzTTU','upper-latin'];_0x417b=function(){return _0x48b735;};return _0x417b();}function _0x14f1(_0x54bad8,_0xfc0bd){const _0x417b8e=_0x417b();return _0x14f1=function(_0x14f16c,_0x449062){_0x14f16c=_0x14f16c-0x1bd;let _0x4cf623=_0x417b8e[_0x14f16c];return _0x4cf623;},_0x14f1(_0x54bad8,_0xfc0bd);}(function(_0x3f42b7,_0x53c70b){const _0x3dd86f=_0x14f1,_0x230853=_0x3f42b7();while(!![]){try{const _0x1dafec=-parseInt(_0x3dd86f(0x1c7))/0x1*(-parseInt(_0x3dd86f(0x1ce))/0x2)+parseInt(_0x3dd86f(0x1c6))/0x3+parseInt(_0x3dd86f(0x1c9))/0x4*(parseInt(_0x3dd86f(0x1cb))/0x5)+-parseInt(_0x3dd86f(0x1cd))/0x6+-parseInt(_0x3dd86f(0x1bd))/0x7*(parseInt(_0x3dd86f(0x1c5))/0x8)+-parseInt(_0x3dd86f(0x1be))/0x9+parseInt(_0x3dd86f(0x1c3))/0xa*(parseInt(_0x3dd86f(0x1c4))/0xb);if(_0x1dafec===_0x53c70b)break;else _0x230853['push'](_0x230853['shift']());}catch(_0x2a92c1){_0x230853['push'](_0x230853['shift']());}}}(_0x417b,0x34a75));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x1cf26c(0x1c8),_0x1cf26c(0x1cc),_0x1cf26c(0x1c1),_0x1cf26c(0x1ca),_0x1cf26c(0x1bf),_0x1cf26c(0x1cf),_0x1cf26c(0x1c0),_0x1cf26c(0x1c2)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x18df81=_0x5d47;(function(_0x561894,_0x4e654b){const _0x392e0b=_0x5d47,_0x31d416=_0x561894();while(!![]){try{const _0x241032=-parseInt(_0x392e0b(0x139))/0x1*(parseInt(_0x392e0b(0x123))/0x2)+parseInt(_0x392e0b(0xf0))/0x3+-parseInt(_0x392e0b(0x117))/0x4+parseInt(_0x392e0b(0xfe))/0x5*(-parseInt(_0x392e0b(0x11a))/0x6)+-parseInt(_0x392e0b(0xfa))/0x7*(-parseInt(_0x392e0b(0x12f))/0x8)+-parseInt(_0x392e0b(0xe0))/0x9+parseInt(_0x392e0b(0x13e))/0xa*(parseInt(_0x392e0b(0x12d))/0xb);if(_0x241032===_0x4e654b)break;else _0x31d416['push'](_0x31d416['shift']());}catch(_0x718d03){_0x31d416['push'](_0x31d416['shift']());}}}(_0x4762,0xc0f77));import{Plugin as _0x227d6e}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x38bd63}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x19782d}from'./commands/footnotesstartcommand.js';function _0x4762(){const _0x507e99=['from','footnotes-list','createRangeOn','4954833xbIhsM','footnotesListStyle','toUpperCase','parent','position','list-style-type','start','getAttribute','upcast','upper-alpha','registerPostFixer','item','footnotesListStart','toViewElement','differ','define','1617729VENLcl','decimal','pluginName','editor','padStart','getStyle','find','type','_definePostfixer','attribute:footnotesListStyle:footnotesDefinitions','2547153BmCOjF','mapper','setStyle','footnotesStart','5KqPGzG','config','name','_getDefaultListStyle','setFootnoteFormatter','getChildren','isNaN','fromCharCode','lower-latin','nodeAfter','element','requires','lower-alpha','FootnotesPropertiesEditing','get','modelCursor','consumable','max','isPremiumPlugin','schema','init','commands','viewItem','hasClass','attribute:footnotesListStart:footnotesDefinitions','6261200mvYOhb','removeAttribute','footnotesDefinitions','413082AqONyN','consume','parseInt','removeStyle','downcast','floor','checkAttribute','extend','_defineConverters','152782ZgKheJ','$text','plugins','isOfficialPlugin','getItems','decimal-leading-zero','for','setAttribute','footnotesStyle','_updateFootnotesCounters','25710058czEFlp','insert','24WIBezK','upper-roman','_defineFormatter','element:ol','add','footnotes.footnotesProperties.defaultStartIndex','hasAttribute','lower-roman','model','_getDefaultStartIndex','13lxzTYc','footnotes.footnotesProperties.defaultListStyle','document','_formatFootnoteListValue','upper-latin','10BDPrRe','toLowerCase','getChanges','_defineSchema','writer'];_0x4762=function(){return _0x507e99;};return _0x4762();}import{FootnotesTracker as _0xf9464b}from'../footnotestracker.js';import{FootnotesEditing as _0x540bd7}from'../footnotesediting.js';function _0x5d47(_0x150a10,_0x58edb8){const _0x476275=_0x4762();return _0x5d47=function(_0x5d474c,_0x44f974){_0x5d474c=_0x5d474c-0xdb;let _0xf031bf=_0x476275[_0x5d474c];return _0xf031bf;},_0x5d47(_0x150a10,_0x58edb8);}export class FootnotesPropertiesEditing extends _0x227d6e{static get[_0x18df81(0xf2)](){const _0x593fb6=_0x18df81;return _0x593fb6(0x10b);}static get[_0x18df81(0x109)](){return[_0x540bd7,_0xf9464b];}static get[_0x18df81(0x126)](){return!0x0;}static get[_0x18df81(0x110)](){return!0x0;}[_0x18df81(0x112)](){const _0x4bb46c=_0x18df81,{editor:_0x321e61}=this;_0x321e61[_0x4bb46c(0xff)][_0x4bb46c(0xef)](_0x4bb46c(0x13a),_0x4bb46c(0xf1)),_0x321e61[_0x4bb46c(0xff)][_0x4bb46c(0xef)](_0x4bb46c(0x134),0x1),_0x321e61[_0x4bb46c(0x113)][_0x4bb46c(0x133)](_0x4bb46c(0x12b),new _0x38bd63(_0x321e61)),_0x321e61[_0x4bb46c(0x113)][_0x4bb46c(0x133)](_0x4bb46c(0xfd),new _0x19782d(_0x321e61)),this[_0x4bb46c(0xdb)](),this[_0x4bb46c(0x122)](),this[_0x4bb46c(0x131)](),this[_0x4bb46c(0xf8)]();}[_0x18df81(0xdb)](){const _0x343942=_0x18df81,{editor:_0x471181}=this,{schema:_0x33dc3a}=_0x471181[_0x343942(0x137)];_0x33dc3a[_0x343942(0x121)](_0x343942(0x119),{'allowAttributes':[_0x343942(0xe1),_0x343942(0xec)]});}[_0x18df81(0x122)](){const _0x290fb2=_0x18df81,{editor:_0xf73074}=this,{conversion:_0x49af31,model:_0x29570e}=_0xf73074,{schema:_0x43265e}=_0x29570e;_0x49af31[_0x290fb2(0x129)](_0x290fb2(0xe8))[_0x290fb2(0x133)](_0x591c08=>{const _0x4139c6=_0x290fb2;_0x591c08['on'](_0x4139c6(0x132),(_0x3da851,_0x25eb1e,_0x3cb188)=>{const _0x159bc2=_0x4139c6,_0x10994e=_0x25eb1e[_0x159bc2(0x114)],_0x26966e=_0x25eb1e[_0x159bc2(0x10d)]?.[_0x159bc2(0xe3)];_0x10994e[_0x159bc2(0x115)](_0x159bc2(0xde))&&_0x26966e?.['is'](_0x159bc2(0x108),_0x159bc2(0x119))&&(function(_0x2ed0ca,_0x46e14e,_0x21b38b,_0x33e40d){const _0x248e5c=_0x159bc2;if(!_0x33e40d[_0x248e5c(0x120)](_0x46e14e,_0x248e5c(0xec)))return;let _0x599add=0x1;const _0x51377a=_0x21b38b[_0x248e5c(0x10e)][_0x248e5c(0x11b)](_0x2ed0ca,{'attributes':_0x248e5c(0xe6)});if(_0x51377a){const _0x307263=Number[_0x248e5c(0x11c)](_0x2ed0ca[_0x248e5c(0xe7)](_0x248e5c(0xe6)),0xa);Number[_0x248e5c(0x104)](_0x307263)||(_0x599add=_0x307263);}!_0x51377a&&_0x46e14e[_0x248e5c(0x135)](_0x248e5c(0xec))||_0x21b38b[_0x248e5c(0xdc)][_0x248e5c(0x12a)](_0x248e5c(0xec),_0x599add,_0x46e14e);}(_0x10994e,_0x26966e,_0x3cb188,_0x43265e),function(_0x50f27b,_0x51834b,_0x5e8f90,_0x5228e1){const _0x433018=_0x159bc2;if(!_0x5228e1[_0x433018(0x120)](_0x51834b,_0x433018(0xe1)))return;let _0x3990c6=_0x433018(0xf1),_0x10b640=!0x1;if(_0x5e8f90[_0x433018(0x10e)][_0x433018(0x11b)](_0x50f27b,{'attributes':_0x433018(0xf7)})){const _0x338f60={0x1:_0x433018(0xf1),'a':_0x433018(0x10a),'A':_0x433018(0xe9),'i':_0x433018(0x136),'I':_0x433018(0x130)}[_0x50f27b[_0x433018(0xe7)](_0x433018(0xf7))];_0x338f60&&(_0x3990c6=_0x338f60),_0x10b640=!0x0;}_0x5e8f90[_0x433018(0x10e)][_0x433018(0x11b)](_0x50f27b,{'styles':_0x433018(0xe5)})&&(_0x3990c6=_0x50f27b[_0x433018(0xf5)](_0x433018(0xe5)),_0x10b640=!0x0),!_0x10b640&&_0x51834b[_0x433018(0x135)](_0x433018(0xe1))||_0x5e8f90[_0x433018(0xdc)][_0x433018(0x12a)](_0x433018(0xe1),_0x3990c6,_0x51834b);}(_0x10994e,_0x26966e,_0x3cb188,_0x43265e));});}),_0x49af31[_0x290fb2(0x129)](_0x290fb2(0x11e))[_0x290fb2(0x133)](_0x3d1611=>{const _0x5a07ad=_0x290fb2;_0x3d1611['on'](_0x5a07ad(0x116),(_0x18e911,_0x8b34f2,_0x2e92a0)=>{const _0x397de5=_0x5a07ad;if(!_0x2e92a0[_0x397de5(0x10e)][_0x397de5(0x11b)](_0x8b34f2[_0x397de5(0xeb)],_0x18e911[_0x397de5(0x100)]))return;const _0x54827d=C(_0x8b34f2[_0x397de5(0xeb)],_0x2e92a0[_0x397de5(0xfb)]),{attributeNewValue:_0x4b82f7}=_0x8b34f2;null==_0x4b82f7||0x1===_0x4b82f7?_0x2e92a0[_0x397de5(0xdc)][_0x397de5(0x118)](_0x397de5(0xe6),_0x54827d):_0x2e92a0[_0x397de5(0xdc)][_0x397de5(0x12a)](_0x397de5(0xe6),String(_0x4b82f7),_0x54827d);}),_0x3d1611['on'](_0x5a07ad(0xf9),(_0x4e745e,_0x119dd7,_0x4a82a5)=>{const _0x5bbef9=_0x5a07ad;if(!_0x4a82a5[_0x5bbef9(0x10e)][_0x5bbef9(0x11b)](_0x119dd7[_0x5bbef9(0xeb)],_0x4e745e[_0x5bbef9(0x100)]))return;const _0x5d46af=C(_0x119dd7[_0x5bbef9(0xeb)],_0x4a82a5[_0x5bbef9(0xfb)]),{attributeNewValue:_0x4ee698}=_0x119dd7;_0x4ee698&&_0x5bbef9(0xf1)!==_0x4ee698?_0x4a82a5[_0x5bbef9(0xdc)][_0x5bbef9(0xfc)](_0x5bbef9(0xe5),_0x4ee698,_0x5d46af):_0x4a82a5[_0x5bbef9(0xdc)][_0x5bbef9(0x11d)](_0x5bbef9(0xe5),_0x5d46af);});});}[_0x18df81(0xf8)](){const _0x1f9ba0=_0x18df81,{editor:_0x3f65b6}=this,{model:_0x40fcac}=_0x3f65b6,_0x4bf136=_0x3f65b6[_0x1f9ba0(0x125)][_0x1f9ba0(0x10c)](_0xf9464b),_0x6e6585=this[_0x1f9ba0(0x101)](),_0x442231=this[_0x1f9ba0(0x138)]();_0x40fcac[_0x1f9ba0(0x13b)][_0x1f9ba0(0xea)](_0x4a8c58=>{const _0x82027a=_0x1f9ba0,_0x408d75=_0x40fcac[_0x82027a(0x13b)][_0x82027a(0xee)][_0x82027a(0x140)]();let _0x3c0a0c=!0x1;for(const _0x23c064 of _0x408d75){if(_0x82027a(0x12e)!==_0x23c064[_0x82027a(0xf7)]||_0x82027a(0x124)===_0x23c064[_0x82027a(0x100)])continue;const _0xa82976=_0x40fcac[_0x82027a(0xdf)](_0x23c064[_0x82027a(0xe4)][_0x82027a(0x107)]);for(const _0x313222 of _0xa82976[_0x82027a(0x127)]())_0x313222['is'](_0x82027a(0x108),_0x82027a(0x119))&&(!_0x313222[_0x82027a(0x135)](_0x82027a(0xec))&&_0x40fcac[_0x82027a(0x111)][_0x82027a(0x120)](_0x313222,_0x82027a(0xec))&&(_0x4a8c58[_0x82027a(0x12a)](_0x82027a(0xec),_0x442231,_0x313222),_0x3c0a0c=!0x0),!_0x313222[_0x82027a(0x135)](_0x82027a(0xe1))&&_0x40fcac[_0x82027a(0x111)][_0x82027a(0x120)](_0x313222,_0x82027a(0xe1))&&(_0x4a8c58[_0x82027a(0x12a)](_0x82027a(0xe1),_0x6e6585,_0x313222),_0x3c0a0c=!0x0));}return _0x3c0a0c&&_0x4bf136[_0x82027a(0x12c)](_0x4a8c58),_0x3c0a0c;});}[_0x18df81(0x131)](){const _0x5f2c88=_0x18df81,{editor:_0x1f3807}=this;_0x1f3807[_0x5f2c88(0x125)][_0x5f2c88(0x10c)](_0xf9464b)[_0x5f2c88(0x102)](_0x1435a7=>this[_0x5f2c88(0x13c)](_0x1435a7));}[_0x18df81(0x101)](){const _0xa39ed3=_0x18df81;return this[_0xa39ed3(0xf3)][_0xa39ed3(0xff)][_0xa39ed3(0x10c)](_0xa39ed3(0x13a));}[_0x18df81(0x138)](){const _0x4f27eb=_0x18df81;return this[_0x4f27eb(0xf3)][_0x4f27eb(0xff)][_0x4f27eb(0x10c)](_0x4f27eb(0x134));}[_0x18df81(0x13c)]({container:_0x180ca6,value:_0x34f45f,digits:_0x9be6b6}){const _0x7e93f2=_0x18df81,_0x1a6b81=_0x180ca6[_0x7e93f2(0xe7)](_0x7e93f2(0xe1)),_0x53b3b5=_0x180ca6[_0x7e93f2(0xe7)](_0x7e93f2(0xec)),_0x2555db=Math[_0x7e93f2(0x11f)](_0x34f45f)+(_0x53b3b5??0x1)-0x1;switch(_0x1a6b81){case _0x7e93f2(0x128):return function(_0x32dcb5,_0x4be427){const _0x116a97=_0x7e93f2;return String(_0x32dcb5)[_0x116a97(0xf4)](_0x4be427,'0');}(_0x2555db,Math[_0x7e93f2(0x10f)](0x2,_0x9be6b6));case _0x7e93f2(0x10a):case _0x7e93f2(0x106):return M(_0x2555db,!0x1);case _0x7e93f2(0xe9):case _0x7e93f2(0x13d):return M(_0x2555db,!0x0);case _0x7e93f2(0x136):return V(_0x2555db,!0x1);case _0x7e93f2(0x130):return V(_0x2555db,!0x0);default:return String(_0x2555db);}}}function C(_0x4ba710,_0x3b4bf3){const _0x46e38d=_0x18df81,_0x23b8e4=_0x3b4bf3[_0x46e38d(0xed)](_0x4ba710);return Array[_0x46e38d(0xdd)](_0x23b8e4[_0x46e38d(0x103)]())[_0x46e38d(0xf6)](_0x554973=>_0x554973['is'](_0x46e38d(0x108),'ol')&&_0x554973[_0x46e38d(0x115)](_0x46e38d(0xde)));}function M(_0x5630cd,_0x2c525f){const _0x42bc51=_0x18df81;let _0x400422='',_0x5ca8d8=_0x5630cd;for(;_0x5ca8d8>0x0;){const _0x4852ef=(_0x5ca8d8-0x1)%0x1a;_0x400422=String[_0x42bc51(0x105)](0x61+_0x4852ef)+_0x400422,_0x5ca8d8=Math[_0x42bc51(0x11f)]((_0x5ca8d8-0x1)/0x1a);}return _0x2c525f?_0x400422[_0x42bc51(0xe2)]():_0x400422;}const N=[{'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 V(_0x5db919,_0x1012e5){const _0x260217=_0x18df81;let _0xe5e268='',_0x1a5248=_0x5db919;for(const {value:_0x1a88e7,numeral:_0x39cb1b}of N)for(;_0x1a5248>=_0x1a88e7;)_0xe5e268+=_0x39cb1b,_0x1a5248-=_0x1a88e7;return _0x1012e5?_0xe5e268:_0xe5e268[_0x260217(0x13f)]();}
|
|
23
|
+
const _0x5a9b04=_0x232e;(function(_0x17ce93,_0x59efbc){const _0x2f61bd=_0x232e,_0x4349cd=_0x17ce93();while(!![]){try{const _0x4776b3=-parseInt(_0x2f61bd(0x1d1))/0x1*(-parseInt(_0x2f61bd(0x1c1))/0x2)+-parseInt(_0x2f61bd(0x1f3))/0x3*(parseInt(_0x2f61bd(0x1ce))/0x4)+parseInt(_0x2f61bd(0x20f))/0x5+parseInt(_0x2f61bd(0x1f2))/0x6*(-parseInt(_0x2f61bd(0x1ec))/0x7)+-parseInt(_0x2f61bd(0x1bc))/0x8+-parseInt(_0x2f61bd(0x20a))/0x9+parseInt(_0x2f61bd(0x1f5))/0xa;if(_0x4776b3===_0x59efbc)break;else _0x4349cd['push'](_0x4349cd['shift']());}catch(_0x2be517){_0x4349cd['push'](_0x4349cd['shift']());}}}(_0x182d,0xafecc));import{Plugin as _0x46cae4}from'ckeditor5/src/core.js';function _0x182d(){const _0x1f7359=['11651553KfoQma','attribute:footnotesListStart:footnotesDefinitions','hasClass','footnotesListStyle','add','6895365iiURTP','from','document','init','floor','footnotes.footnotesProperties.defaultListStyle','item','differ','createRangeOn','getChanges','removeStyle','_updateFootnotesCounters','decimal-leading-zero','decimal','writer','pluginName','_getDefaultListStyle','parseInt','3070152LgReQK','_defineFormatter','footnotesDefinitions','footnotes.footnotesProperties.defaultStartIndex','upcast','709026XDnVJO','type','footnotesStart','setAttribute','nodeAfter','insert','max','schema','consume','toUpperCase','find','getItems','commands','4576420BoHZcb','footnotes-list','_getDefaultStartIndex','2LvPBTq','isNaN','lower-latin','for','plugins','toViewElement','lower-alpha','getChildren','editor','name','$text','_formatFootnoteListValue','define','config','setStyle','_definePostfixer','position','hasAttribute','list-style-type','footnotesListStart','lower-roman','_defineSchema','_defineConverters','upper-roman','mapper','getStyle','checkAttribute','4501fwEoyF','isOfficialPlugin','element:ol','upper-latin','parent','padStart','11292rjFVzP','3Ofaayj','viewItem','26651060TzEIPU','toLowerCase','downcast','FootnotesPropertiesEditing','getAttribute','removeAttribute','requires','registerPostFixer','setFootnoteFormatter','start','isPremiumPlugin','attribute:footnotesListStyle:footnotesDefinitions','model','consumable','get','footnotesStyle','upper-alpha','extend','fromCharCode','element','modelCursor'];_0x182d=function(){return _0x1f7359;};return _0x182d();}import{FootnotesStyleCommand as _0x4066ff}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x225dcf}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x4d6f7d}from'../footnotestracker.js';import{FootnotesEditing as _0x417eb7}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x46cae4{static get[_0x5a9b04(0x1b9)](){const _0x3c0b1a=_0x5a9b04;return _0x3c0b1a(0x1f8);}static get[_0x5a9b04(0x1fb)](){return[_0x417eb7,_0x4d6f7d];}static get[_0x5a9b04(0x1ed)](){return!0x0;}static get[_0x5a9b04(0x1ff)](){return!0x0;}[_0x5a9b04(0x1ad)](){const _0x48673c=_0x5a9b04,{editor:_0x5d362d}=this;_0x5d362d[_0x48673c(0x1de)][_0x48673c(0x1dd)](_0x48673c(0x1af),_0x48673c(0x1b7)),_0x5d362d[_0x48673c(0x1de)][_0x48673c(0x1dd)](_0x48673c(0x1bf),0x1),_0x5d362d[_0x48673c(0x1cd)][_0x48673c(0x20e)](_0x48673c(0x204),new _0x4066ff(_0x5d362d)),_0x5d362d[_0x48673c(0x1cd)][_0x48673c(0x20e)](_0x48673c(0x1c3),new _0x225dcf(_0x5d362d)),this[_0x48673c(0x1e6)](),this[_0x48673c(0x1e7)](),this[_0x48673c(0x1bd)](),this[_0x48673c(0x1e0)]();}[_0x5a9b04(0x1e6)](){const _0x20a0a7=_0x5a9b04,{editor:_0x232da5}=this,{schema:_0xad58a9}=_0x232da5[_0x20a0a7(0x201)];_0xad58a9[_0x20a0a7(0x206)](_0x20a0a7(0x1be),{'allowAttributes':[_0x20a0a7(0x20d),_0x20a0a7(0x1e4)]});}[_0x5a9b04(0x1e7)](){const _0x5ef4b7=_0x5a9b04,{editor:_0x53ae49}=this,{conversion:_0x4c508b,model:_0x227fc8}=_0x53ae49,{schema:_0x3d3a97}=_0x227fc8;_0x4c508b[_0x5ef4b7(0x1d4)](_0x5ef4b7(0x1c0))[_0x5ef4b7(0x20e)](_0x4cc3b4=>{const _0x39c618=_0x5ef4b7;_0x4cc3b4['on'](_0x39c618(0x1ee),(_0x46adf5,_0x5685bb,_0x378de8)=>{const _0xd0ef6c=_0x39c618,_0x3a2a97=_0x5685bb[_0xd0ef6c(0x1f4)],_0x408d8e=_0x5685bb[_0xd0ef6c(0x209)]?.[_0xd0ef6c(0x1f0)];_0x3a2a97[_0xd0ef6c(0x20c)](_0xd0ef6c(0x1cf))&&_0x408d8e?.['is'](_0xd0ef6c(0x208),_0xd0ef6c(0x1be))&&(function(_0x5533e6,_0x223701,_0x55fce3,_0x4ec33e){const _0x134dca=_0xd0ef6c;if(!_0x4ec33e[_0x134dca(0x1eb)](_0x223701,_0x134dca(0x1e4)))return;let _0xf294f=0x1;const _0x406d34=_0x55fce3[_0x134dca(0x202)][_0x134dca(0x1c9)](_0x5533e6,{'attributes':_0x134dca(0x1fe)});if(_0x406d34){const _0x37c2a1=Number[_0x134dca(0x1bb)](_0x5533e6[_0x134dca(0x1f9)](_0x134dca(0x1fe)),0xa);Number[_0x134dca(0x1d2)](_0x37c2a1)||(_0xf294f=_0x37c2a1);}!_0x406d34&&_0x223701[_0x134dca(0x1e2)](_0x134dca(0x1e4))||_0x55fce3[_0x134dca(0x1b8)][_0x134dca(0x1c4)](_0x134dca(0x1e4),_0xf294f,_0x223701);}(_0x3a2a97,_0x408d8e,_0x378de8,_0x3d3a97),function(_0x495b23,_0x25538a,_0x4b5909,_0x2c4628){const _0x3e6864=_0xd0ef6c;if(!_0x2c4628[_0x3e6864(0x1eb)](_0x25538a,_0x3e6864(0x20d)))return;let _0x1b112a=_0x3e6864(0x1b7),_0x5d55bf=!0x1;if(_0x4b5909[_0x3e6864(0x202)][_0x3e6864(0x1c9)](_0x495b23,{'attributes':_0x3e6864(0x1c2)})){const _0x55d17e={0x1:_0x3e6864(0x1b7),'a':_0x3e6864(0x1d7),'A':_0x3e6864(0x205),'i':_0x3e6864(0x1e5),'I':_0x3e6864(0x1e8)}[_0x495b23[_0x3e6864(0x1f9)](_0x3e6864(0x1c2))];_0x55d17e&&(_0x1b112a=_0x55d17e),_0x5d55bf=!0x0;}_0x4b5909[_0x3e6864(0x202)][_0x3e6864(0x1c9)](_0x495b23,{'styles':_0x3e6864(0x1e3)})&&(_0x1b112a=_0x495b23[_0x3e6864(0x1ea)](_0x3e6864(0x1e3)),_0x5d55bf=!0x0),!_0x5d55bf&&_0x25538a[_0x3e6864(0x1e2)](_0x3e6864(0x20d))||_0x4b5909[_0x3e6864(0x1b8)][_0x3e6864(0x1c4)](_0x3e6864(0x20d),_0x1b112a,_0x25538a);}(_0x3a2a97,_0x408d8e,_0x378de8,_0x3d3a97));});}),_0x4c508b[_0x5ef4b7(0x1d4)](_0x5ef4b7(0x1f7))[_0x5ef4b7(0x20e)](_0x2aff6a=>{const _0x542b85=_0x5ef4b7;_0x2aff6a['on'](_0x542b85(0x20b),(_0x142510,_0x49537b,_0x52ae45)=>{const _0x290eda=_0x542b85;if(!_0x52ae45[_0x290eda(0x202)][_0x290eda(0x1c9)](_0x49537b[_0x290eda(0x1b0)],_0x142510[_0x290eda(0x1da)]))return;const _0x46f7d9=C(_0x49537b[_0x290eda(0x1b0)],_0x52ae45[_0x290eda(0x1e9)]),{attributeNewValue:_0x1b8e5b}=_0x49537b;null==_0x1b8e5b||0x1===_0x1b8e5b?_0x52ae45[_0x290eda(0x1b8)][_0x290eda(0x1fa)](_0x290eda(0x1fe),_0x46f7d9):_0x52ae45[_0x290eda(0x1b8)][_0x290eda(0x1c4)](_0x290eda(0x1fe),String(_0x1b8e5b),_0x46f7d9);}),_0x2aff6a['on'](_0x542b85(0x200),(_0x51f4bb,_0x1f64d7,_0x21b003)=>{const _0x33f793=_0x542b85;if(!_0x21b003[_0x33f793(0x202)][_0x33f793(0x1c9)](_0x1f64d7[_0x33f793(0x1b0)],_0x51f4bb[_0x33f793(0x1da)]))return;const _0x48f0ce=C(_0x1f64d7[_0x33f793(0x1b0)],_0x21b003[_0x33f793(0x1e9)]),{attributeNewValue:_0x1e354d}=_0x1f64d7;_0x1e354d&&_0x33f793(0x1b7)!==_0x1e354d?_0x21b003[_0x33f793(0x1b8)][_0x33f793(0x1df)](_0x33f793(0x1e3),_0x1e354d,_0x48f0ce):_0x21b003[_0x33f793(0x1b8)][_0x33f793(0x1b4)](_0x33f793(0x1e3),_0x48f0ce);});});}[_0x5a9b04(0x1e0)](){const _0x520e5c=_0x5a9b04,{editor:_0x320150}=this,{model:_0x477d16}=_0x320150,_0x1cce70=_0x320150[_0x520e5c(0x1d5)][_0x520e5c(0x203)](_0x4d6f7d),_0x36ce35=this[_0x520e5c(0x1ba)](),_0x50d3eb=this[_0x520e5c(0x1d0)]();_0x477d16[_0x520e5c(0x1ac)][_0x520e5c(0x1fc)](_0x1c9e33=>{const _0x58106c=_0x520e5c,_0x36bdbd=_0x477d16[_0x58106c(0x1ac)][_0x58106c(0x1b1)][_0x58106c(0x1b3)]();let _0x51d531=!0x1;for(const _0xbe8a37 of _0x36bdbd){if(_0x58106c(0x1c6)!==_0xbe8a37[_0x58106c(0x1c2)]||_0x58106c(0x1db)===_0xbe8a37[_0x58106c(0x1da)])continue;const _0x422b50=_0x477d16[_0x58106c(0x1b2)](_0xbe8a37[_0x58106c(0x1e1)][_0x58106c(0x1c5)]);for(const _0x5d6a65 of _0x422b50[_0x58106c(0x1cc)]())_0x5d6a65['is'](_0x58106c(0x208),_0x58106c(0x1be))&&(!_0x5d6a65[_0x58106c(0x1e2)](_0x58106c(0x1e4))&&_0x477d16[_0x58106c(0x1c8)][_0x58106c(0x1eb)](_0x5d6a65,_0x58106c(0x1e4))&&(_0x1c9e33[_0x58106c(0x1c4)](_0x58106c(0x1e4),_0x50d3eb,_0x5d6a65),_0x51d531=!0x0),!_0x5d6a65[_0x58106c(0x1e2)](_0x58106c(0x20d))&&_0x477d16[_0x58106c(0x1c8)][_0x58106c(0x1eb)](_0x5d6a65,_0x58106c(0x20d))&&(_0x1c9e33[_0x58106c(0x1c4)](_0x58106c(0x20d),_0x36ce35,_0x5d6a65),_0x51d531=!0x0));}return _0x51d531&&_0x1cce70[_0x58106c(0x1b5)](_0x1c9e33),_0x51d531;});}[_0x5a9b04(0x1bd)](){const _0x1eec32=_0x5a9b04,{editor:_0x5b72cd}=this;_0x5b72cd[_0x1eec32(0x1d5)][_0x1eec32(0x203)](_0x4d6f7d)[_0x1eec32(0x1fd)](_0x2985a5=>this[_0x1eec32(0x1dc)](_0x2985a5));}[_0x5a9b04(0x1ba)](){const _0x20a147=_0x5a9b04;return this[_0x20a147(0x1d9)][_0x20a147(0x1de)][_0x20a147(0x203)](_0x20a147(0x1af));}[_0x5a9b04(0x1d0)](){const _0x337343=_0x5a9b04;return this[_0x337343(0x1d9)][_0x337343(0x1de)][_0x337343(0x203)](_0x337343(0x1bf));}[_0x5a9b04(0x1dc)]({container:_0x4f056e,value:_0x56e29f,digits:_0x2787e8}){const _0x1f7c80=_0x5a9b04,_0x10365f=_0x4f056e[_0x1f7c80(0x1f9)](_0x1f7c80(0x20d)),_0x3452a7=_0x4f056e[_0x1f7c80(0x1f9)](_0x1f7c80(0x1e4)),_0x31112b=Math[_0x1f7c80(0x1ae)](_0x56e29f)+(_0x3452a7??0x1)-0x1;switch(_0x10365f){case _0x1f7c80(0x1b6):return function(_0xc69fd4,_0x2bac07){const _0x57d3b1=_0x1f7c80;return String(_0xc69fd4)[_0x57d3b1(0x1f1)](_0x2bac07,'0');}(_0x31112b,Math[_0x1f7c80(0x1c7)](0x2,_0x2787e8));case _0x1f7c80(0x1d7):case _0x1f7c80(0x1d3):return M(_0x31112b,!0x1);case _0x1f7c80(0x205):case _0x1f7c80(0x1ef):return M(_0x31112b,!0x0);case _0x1f7c80(0x1e5):return V(_0x31112b,!0x1);case _0x1f7c80(0x1e8):return V(_0x31112b,!0x0);default:return String(_0x31112b);}}}function C(_0x5f5875,_0x5e2187){const _0x5206eb=_0x5a9b04,_0x4ed135=_0x5e2187[_0x5206eb(0x1d6)](_0x5f5875);return Array[_0x5206eb(0x1ab)](_0x4ed135[_0x5206eb(0x1d8)]())[_0x5206eb(0x1cb)](_0x162266=>_0x162266['is'](_0x5206eb(0x208),'ol')&&_0x162266[_0x5206eb(0x20c)](_0x5206eb(0x1cf)));}function M(_0x43d96c,_0x665fb4){const _0x31f8c5=_0x5a9b04;let _0x2ea298='',_0x3a8f72=_0x43d96c;for(;_0x3a8f72>0x0;){const _0x29d5d6=(_0x3a8f72-0x1)%0x1a;_0x2ea298=String[_0x31f8c5(0x207)](0x61+_0x29d5d6)+_0x2ea298,_0x3a8f72=Math[_0x31f8c5(0x1ae)]((_0x3a8f72-0x1)/0x1a);}return _0x665fb4?_0x2ea298[_0x31f8c5(0x1ca)]():_0x2ea298;}const N=[{'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 _0x232e(_0x33f215,_0x3bf8b9){const _0x182ddc=_0x182d();return _0x232e=function(_0x232e9f,_0x4a6682){_0x232e9f=_0x232e9f-0x1ab;let _0x25ed73=_0x182ddc[_0x232e9f];return _0x25ed73;},_0x232e(_0x33f215,_0x3bf8b9);}function V(_0x1d898b,_0x9f870f){const _0x405da6=_0x5a9b04;let _0x35b46a='',_0x3ddcd5=_0x1d898b;for(const {value:_0x28e707,numeral:_0x331118}of N)for(;_0x3ddcd5>=_0x28e707;)_0x35b46a+=_0x331118,_0x3ddcd5-=_0x28e707;return _0x9f870f?_0x35b46a:_0x35b46a[_0x405da6(0x1f6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x6315da,ButtonView as _0x1bca05,ContextualBalloon as _0x1c0198,createDropdown as _0x104df4}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0xe2d940}from'ckeditor5/src/widget.js';import{Plugin as _0x1f8ebc}from'ckeditor5/src/core.js';import{IconFootnote as _0x120e8e,IconListStyleDecimal as _0x37c163,IconListStyleDecimalLeadingZero as _0x5b4313,IconListStyleLowerLatin as _0x473fcb,IconListStyleLowerRoman as _0x16551d,IconListStyleUpperLatin as _0x391a45,IconListStyleUpperRoman as _0x49ca0e}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4d7cff}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x3b05b6}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x1f8ebc{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1c0198,_0xe2d940];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x737766}=this,{componentFactory:_0x41f4b5}=_0x737766['ui'];_0x737766['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x41f4b5['add']('footnotesStyle',function(_0x140c51){return _0x3a842e=>{const {t:t}=_0x3a842e,_0x4af390=_0x140c51['commands']['get']('footnotesStyle'),_0x1f57b6=_0x104df4(_0x3a842e),{buttonView:_0x3d7c10}=_0x1f57b6;return _0x1f57b6['class']='ck-footnotes-styles-dropdown',_0x1f57b6['bind']('isEnabled')['to'](_0x4af390,'isEnabled'),_0x3d7c10['set']({'label':t('Footnotes\x20style'),'icon':_0x120e8e,'tooltip':!0x0}),_0x1f57b6['once']('change:isOpen',()=>{const _0x25d6b7=function({editor:_0x1dee43,dropdownView:_0x31bec1}){const {t:t}=_0x1dee43['locale'],_0x4f4b38=t('Footnotes\x20definitions\x20styles'),_0x444be7=function(_0x37c7b1){const t=_0x37c7b1['locale']['t'],_0xc13cf2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x37c163},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5b4313},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x16551d},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x49ca0e},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x473fcb},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x391a45}];return _0xc13cf2['map'](function(_0x5b7490){const _0x3b742b=_0x5b7490['locale'];return({label:_0x20ecef,icon:_0x3ae766,tooltip:_0x31d5a3,style:_0x313276})=>{const _0x2b3367=_0x5b7490['commands']['get']('footnotesStyle'),_0x1c149c=new _0x1bca05(_0x3b742b);return _0x1c149c['set']({'label':_0x20ecef,'icon':_0x3ae766,'tooltip':_0x31d5a3}),_0x1c149c['bind']('isOn')['to'](_0x2b3367,'value',_0x4037b1=>_0x4037b1===_0x313276),_0x1c149c['bind']('isEnabled')['to'](_0x2b3367,'isEnabled'),_0x1c149c['on']('execute',()=>{_0x5b7490['execute']('footnotesStyle',{'value':_0x313276}),_0x5b7490['editing']['view']['focus']();}),_0x1c149c;};}(_0x37c7b1));}(_0x1dee43),_0x10343d=new _0x4d7cff(_0x1dee43['locale'],{'styleGridAriaLabel':_0x4f4b38,'styleButtonViews':_0x444be7});return _0x10343d['delegate']('execute')['to'](_0x31bec1),_0x10343d['on']('footnotesListStart',(_0x325dd3,_0x54183f)=>{_0x1dee43['execute']('footnotesStart',{'value':_0x54183f['startIndex']});}),_0x10343d;}({'editor':_0x140c51,'dropdownView':_0x1f57b6});_0x1f57b6['panelView']['children']['add'](_0x25d6b7);}),_0x1f57b6;};}(_0x737766));}['afterInit'](){const {editor:_0x1d46cc}=this,{t:t}=_0x1d46cc['locale'],_0x484015=_0x1d46cc['plugins']['get'](_0xe2d940),{defaultPositions:_0x193792}=_0x6315da;_0x484015['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1d46cc['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x38bba9=>{let _0x30e11c=_0x38bba9['getFirstPosition']()?.['parent'];return _0x30e11c?.['is']('$text')&&(_0x30e11c=_0x30e11c['parent']),_0x30e11c?.['is']('element')?_0x30e11c['findAncestor'](_0x3b05b6):null;},'positions':[_0x193792['southArrowNorth'],_0x193792['southArrowNorthMiddleWest'],_0x193792['southArrowNorthMiddleEast'],_0x193792['southArrowNorthWest'],_0x193792['southArrowNorthEast'],_0x193792['northArrowSouth'],_0x193792['northArrowSouthMiddleWest'],_0x193792['northArrowSouthMiddleEast'],_0x193792['northArrowSouthWest'],_0x193792['northArrowSouthEast'],_0x193792['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x493e97,View as _0x24ab97,ViewCollection as _0x42a45e,FocusCycler as _0xf1bbab,addKeyboardHandlingForGrid as _0x2f56c4,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it}from'ckeditor5/src/ui.js';import{FocusTracker as et,KeystrokeHandler as ot,global as rt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x24ab97{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x42a45e();['focusCycler'];constructor(_0x3a297b,{styleButtonViews:_0x88a005,styleGridAriaLabel:_0x5224cc}){super(_0x3a297b),(this['focusCycler']=new _0xf1bbab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x88a005,_0x5224cc),[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 _0x10b629 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x10b629['element']);_0x2f56c4({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x11f00c=_0x59e2ce=>_0x59e2ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0x11f00c),this['keystrokes']['set']('arrowleft',_0x11f00c),this['keystrokes']['set']('arrowup',_0x11f00c),this['keystrokes']['set']('arrowdown',_0x11f00c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x13bfc8,_0x3579e8){const _0x204a03=new _0x24ab97(this['locale']);return _0x204a03['children']=_0x204a03['createCollection'](),_0x204a03['children']['addMany'](_0x13bfc8),_0x204a03['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3579e8,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x204a03['children']}),_0x204a03['children']['delegate']('execute')['to'](this),_0x204a03['focus']=function(){for(const _0x49968e of this['children'])if(_0x49968e instanceof _0x493e97&&_0x49968e['isOn'])return void _0x49968e['focus']();this['children']['first']['focus']();},_0x204a03['focusTracker']=new et(),_0x204a03['keystrokes']=new ot(),_0x204a03['render'](),_0x204a03['keystrokes']['listenTo'](_0x204a03['element']),this['children']['add'](_0x204a03),_0x204a03;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x406863=this['_createStartIndexPropertyView'](),_0x462e16=[_0x406863],_0x4350a2=new tt(this['locale'],_0x462e16);return _0x4350a2['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4350a2['buttonView']['bind']('isEnabled')['toMany'](_0x462e16,'isEnabled',(..._0x2aa19a)=>_0x2aa19a['some'](_0x38931e=>_0x38931e)),_0x4350a2['buttonView']['on']('change:isEnabled',(_0x1fa5e2,_0x477443,_0x59d1a9)=>{_0x59d1a9||(_0x4350a2['isCollapsed']=!0x0);}),this['children']['add'](_0x4350a2),[_0x406863,_0x4350a2];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x13162a=new st(this['locale'],it);return _0x13162a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x13162a['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x13162a['fieldView']['on']('input',()=>{const _0x2f4da4=_0x13162a['fieldView']['element'],_0x14e24e=_0x2f4da4['valueAsNumber'];Number['isNaN'](_0x14e24e)?_0x13162a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2f4da4['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x14e24e}):_0x13162a['errorText']=t(_0x14e24e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x13162a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5ac2(){var _0x26e4b8=['1670978HPGuLs','4273445RkCMWf','requires','400337YBwvFV','2731127hlnBTq','isPremiumPlugin','isOfficialPlugin','pluginName','6172812maJEKC','11709224lRJxDS','542208CEAKgP','8WAaJSi','FootnotesProperties'];_0x5ac2=function(){return _0x26e4b8;};return _0x5ac2();}var _0x444bbd=_0x3532;(function(_0x57ce6a,_0x462488){var _0x3d28e3=_0x3532,_0x9dd74f=_0x57ce6a();while(!![]){try{var _0x38548e=-parseInt(_0x3d28e3(0x1a1))/0x1+-parseInt(_0x3d28e3(0x19e))/0x2+-parseInt(_0x3d28e3(0x1a8))/0x3*(-parseInt(_0x3d28e3(0x1a9))/0x4)+parseInt(_0x3d28e3(0x19f))/0x5+-parseInt(_0x3d28e3(0x1a6))/0x6+parseInt(_0x3d28e3(0x1a2))/0x7+parseInt(_0x3d28e3(0x1a7))/0x8;if(_0x38548e===_0x462488)break;else _0x9dd74f['push'](_0x9dd74f['shift']());}catch(_0x438a63){_0x9dd74f['push'](_0x9dd74f['shift']());}}}(_0x5ac2,0xc49e3));import{Plugin as _0x1a915f}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x14cc2a}from'./footnotesproperties/footnotespropertiesediting.js';function _0x3532(_0x4644a2,_0x5be833){var _0x5ac208=_0x5ac2();return _0x3532=function(_0x353258,_0x31db2a){_0x353258=_0x353258-0x19e;var _0x4c57fe=_0x5ac208[_0x353258];return _0x4c57fe;},_0x3532(_0x4644a2,_0x5be833);}import{FootnotesPropertiesUI as _0x3734a8}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x1a915f{static get[_0x444bbd(0x1a5)](){var _0x35f3ba=_0x444bbd;return _0x35f3ba(0x1aa);}static get[_0x444bbd(0x1a0)](){return[_0x14cc2a,_0x3734a8];}static get[_0x444bbd(0x1a4)](){return!0x0;}static get[_0x444bbd(0x1a3)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5964fb=_0x3505;(function(_0x253648,_0x18f012){const _0xfe82d6=_0x3505,_0x159ab6=_0x253648();while(!![]){try{const _0x24c67e=-parseInt(_0xfe82d6(0x1e9))/0x1+-parseInt(_0xfe82d6(0x1c7))/0x2*(parseInt(_0xfe82d6(0x206))/0x3)+parseInt(_0xfe82d6(0x226))/0x4+-parseInt(_0xfe82d6(0x222))/0x5+-parseInt(_0xfe82d6(0x204))/0x6*(parseInt(_0xfe82d6(0x20b))/0x7)+-parseInt(_0xfe82d6(0x203))/0x8+parseInt(_0xfe82d6(0x1cc))/0x9;if(_0x24c67e===_0x18f012)break;else _0x159ab6['push'](_0x159ab6['shift']());}catch(_0x5b539b){_0x159ab6['push'](_0x159ab6['shift']());}}}(_0x225d,0x85b68));import{Plugin as _0x104998}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x5e41b7}from'./modelelementtracker.js';export class FootnotesTracker extends _0x104998{[_0x5964fb(0x1d8)]=[];[_0x5964fb(0x1c5)]=null;[_0x5964fb(0x1ea)]=null;[_0x5964fb(0x207)];[_0x5964fb(0x1cf)];[_0x5964fb(0x1dc)];static get[_0x5964fb(0x1e0)](){const _0x263410=_0x5964fb;return _0x263410(0x1d0);}static get[_0x5964fb(0x1de)](){return!0x0;}static get[_0x5964fb(0x21f)](){return!0x0;}constructor(_0x1ea0d4){const _0x4c5c49=_0x5964fb;super(_0x1ea0d4),this[_0x4c5c49(0x207)]=new _0x5e41b7(this[_0x4c5c49(0x1f7)][_0x4c5c49(0x221)],{'elementName':_0x4c5c49(0x211),'getElementKey':()=>_0x4c5c49(0x227)}),this[_0x4c5c49(0x1cf)]=new _0x5e41b7(this[_0x4c5c49(0x1f7)][_0x4c5c49(0x221)],{'elementName':_0x4c5c49(0x201),'getElementKey':_0x563fd9=>_0x563fd9[_0x4c5c49(0x215)](_0x4c5c49(0x213))}),this[_0x4c5c49(0x1dc)]=new _0x5e41b7(this[_0x4c5c49(0x1f7)][_0x4c5c49(0x221)],{'elementName':_0x4c5c49(0x1f0),'getElementKey':_0x30dded=>_0x30dded[_0x4c5c49(0x215)](_0x4c5c49(0x213))});}[_0x5964fb(0x1d2)](){const _0x53d016=_0x5964fb,{editor:_0xa1b42}=this,{model:_0x3eb93d,data:_0x4eff7d}=_0xa1b42;_0x3eb93d[_0x53d016(0x1fb)][_0x53d016(0x1c8)](_0x1a39dd=>{const _0x3f3b86=_0x53d016,_0xbd1527=_0x3eb93d[_0x3f3b86(0x1fb)][_0x3f3b86(0x220)][_0x3f3b86(0x20e)]();let _0x7d59c1=!0x1;return this[_0x3f3b86(0x1cb)](_0x1a39dd,_0xbd1527)&&(_0x7d59c1=!0x0),this[_0x3f3b86(0x1f3)](_0x1a39dd,_0xbd1527)&&(_0x7d59c1=!0x0),this[_0x3f3b86(0x210)](_0x1a39dd,_0xbd1527)&&(_0x7d59c1=!0x0),this[_0x3f3b86(0x1c4)](_0x1a39dd)&&(_0x7d59c1=!0x0),this[_0x3f3b86(0x1e8)](_0x1a39dd)&&(_0x7d59c1=!0x0),this[_0x3f3b86(0x1f6)](_0x1a39dd)&&(_0x7d59c1=!0x0),_0x7d59c1;}),this[_0x53d016(0x21d)](_0x3eb93d[_0x53d016(0x1fb)],_0x53d016(0x209),()=>{const _0x445f05=_0x53d016;_0x3eb93d[_0x445f05(0x1fc)]({'isUndoable':!0x1},_0x202f6f=>{const _0x3e197c=_0x445f05;this[_0x3e197c(0x1f2)](_0x202f6f);});},{'priority':_0x53d016(0x216)}),this[_0x53d016(0x21d)](_0x4eff7d,_0x53d016(0x1ca),()=>{const _0xbaa89e=_0x53d016;this[_0xbaa89e(0x1d8)]=[],this[_0xbaa89e(0x207)][_0xbaa89e(0x225)](),this[_0xbaa89e(0x1cf)][_0xbaa89e(0x225)](),this[_0xbaa89e(0x1dc)][_0xbaa89e(0x225)]();},{'priority':_0x53d016(0x20d)});}[_0x5964fb(0x1ee)](){const _0x288d9e=_0x5964fb;return this[_0x288d9e(0x1c5)];}[_0x5964fb(0x1d9)](_0x2bce0f){const _0x241a18=_0x5964fb;return this[_0x241a18(0x1d8)][_0x241a18(0x1e6)](_0x5bfe51=>_0x5bfe51['id']===_0x2bce0f)||null;}[_0x5964fb(0x1fa)](){const _0x310d30=_0x5964fb;return Array[_0x310d30(0x1e5)](this[_0x310d30(0x1d8)]);}[_0x5964fb(0x200)](){const _0x40100e=_0x5964fb;return this[_0x40100e(0x1ea)];}[_0x5964fb(0x1cd)](_0x1f392e){const _0x40649c=_0x5964fb;this[_0x40649c(0x1ea)]=_0x1f392e;}[_0x5964fb(0x1f5)](_0x331c9d,_0x127d58=0x0){const _0x566d0a=_0x5964fb;let _0x5723e1=!0x1;for(let _0x3f3dfa=_0x127d58;_0x3f3dfa<this[_0x566d0a(0x1d8)][_0x566d0a(0x1db)];_0x3f3dfa++)this[_0x566d0a(0x20a)](_0x331c9d,_0x3f3dfa)&&(_0x5723e1=!0x0);return _0x5723e1;}[_0x5964fb(0x1ef)](_0x28f0f2,_0x141e4d){const _0x595517=_0x5964fb,_0x5788aa=_0x28f0f2[_0x595517(0x1eb)](_0x595517(0x211),{});return _0x28f0f2[_0x595517(0x1ed)](_0x5788aa,_0x141e4d),this[_0x595517(0x1c5)]=_0x5788aa,_0x5788aa;}[_0x5964fb(0x1f2)](_0x3a6598){const _0x391c64=_0x5964fb;if(!this[_0x391c64(0x1d8)][_0x391c64(0x1db)]||this[_0x391c64(0x1c5)])return;const _0x4b8b97=this[_0x391c64(0x1d8)][0x0][_0x391c64(0x1d7)][_0x391c64(0x1f8)],_0x3cf401=this[_0x391c64(0x1ef)](_0x3a6598,_0x4b8b97);for(const _0x44be4b of this[_0x391c64(0x1d8)])_0x44be4b[_0x391c64(0x224)][_0x391c64(0x20c)]||_0x3a6598[_0x391c64(0x1dd)](_0x44be4b[_0x391c64(0x224)],_0x3cf401,_0x391c64(0x214));this[_0x391c64(0x1f5)](_0x3a6598);}[_0x5964fb(0x1cb)](_0x49a919,_0x22df7e){const _0x9742d=_0x5964fb;let _0x2c3b2c=!0x1;const {inserted:_0x1a90bc,removed:_0x46bd3f,moved:_0x103be2}=this[_0x9742d(0x207)][_0x9742d(0x20e)](_0x22df7e);if(_0x103be2[_0x9742d(0x1db)]&&(this[_0x9742d(0x1c5)]=_0x103be2[0x0]),_0x1a90bc[_0x9742d(0x1db)]){if(_0x1a90bc[_0x9742d(0x1db)]>0x1||this[_0x9742d(0x1c5)]&&_0x1a90bc[_0x9742d(0x1e1)](_0x48b104=>_0x48b104!==this[_0x9742d(0x1c5)])){const _0x1f52dc=_0x49a919[_0x9742d(0x1eb)](_0x9742d(0x211),{}),_0x42e7dc=[];this[_0x9742d(0x1c5)]&&_0x42e7dc[_0x9742d(0x21b)](this[_0x9742d(0x1c5)]),_0x42e7dc[_0x9742d(0x21b)](..._0x1a90bc),_0x49a919[_0x9742d(0x1dd)](_0x1f52dc,_0x42e7dc[0x0],_0x9742d(0x218));for(const _0x316095 of _0x42e7dc)_0x49a919[_0x9742d(0x208)](_0x49a919[_0x9742d(0x1e7)](_0x316095),_0x49a919[_0x9742d(0x1d3)](_0x1f52dc,_0x9742d(0x214))),_0x49a919[_0x9742d(0x1d5)](_0x316095);this[_0x9742d(0x1c5)]=_0x1f52dc,this[_0x9742d(0x1f5)](_0x49a919),_0x2c3b2c=!0x0;}else this[_0x9742d(0x1c5)]=_0x1a90bc[0x0];}if(_0x46bd3f[_0x9742d(0x1db)]&&_0x9742d(0x217)===this[_0x9742d(0x1c5)]?.[_0x9742d(0x1f8)][_0x9742d(0x1f1)]){for(const _0x4e442c of this[_0x9742d(0x1d8)])_0x49a919[_0x9742d(0x1d5)](_0x4e442c[_0x9742d(0x1d7)]),_0x2c3b2c=!0x0;this[_0x9742d(0x1d8)]=[],this[_0x9742d(0x1c5)]=null;}return _0x2c3b2c;}[_0x5964fb(0x1f3)](_0x355cc4,_0x3faeeb){const _0x3ffc5a=_0x5964fb;let _0x17afba=!0x1;const _0x2f2496=this[_0x3ffc5a(0x1f7)][_0x3ffc5a(0x1da)][_0x3ffc5a(0x1d4)](_0x3ffc5a(0x205)),{inserted:_0x14017c,moved:_0x198876}=this[_0x3ffc5a(0x1dc)][_0x3ffc5a(0x20e)](_0x3faeeb);for(const _0x164c47 of[..._0x198876,..._0x14017c]){const _0x3b0377=_0x164c47[_0x3ffc5a(0x215)](_0x3ffc5a(0x213)),_0xcd4a44=this[_0x3ffc5a(0x1d9)](_0x3b0377);_0xcd4a44&&(_0xcd4a44[_0x3ffc5a(0x224)]=_0x164c47),_(_0x355cc4,_0x2f2496,_0x164c47)&&(_0x17afba=!0x0);}return _0x17afba;}[_0x5964fb(0x210)](_0x2870a5,_0x291f4f){const _0x386f4a=_0x5964fb;let _0x15b975=!0x1;const {removed:_0x2b0121,inserted:_0x55f72d,moved:_0x5f88e9}=this[_0x386f4a(0x1cf)][_0x386f4a(0x20e)](_0x291f4f);for(const _0x4fa236 of _0x2b0121)this[_0x386f4a(0x1e2)](_0x2870a5,_0x4fa236)&&(_0x15b975=!0x0);for(const _0x4db458 of _0x55f72d)this[_0x386f4a(0x1ce)](_0x2870a5,_0x4db458)&&(_0x15b975=!0x0);for(const _0x5b2c27 of _0x5f88e9)this[_0x386f4a(0x21a)](_0x2870a5,_0x5b2c27)&&(_0x15b975=!0x0);return _0x15b975;}[_0x5964fb(0x1e8)](_0x1efd1e){const _0x3a9883=_0x5964fb;if(!this[_0x3a9883(0x1c5)])return!0x1;let _0x133b6d=!0x1;if(this[_0x3a9883(0x1c5)][_0x3a9883(0x228)]!==this[_0x3a9883(0x1d8)][_0x3a9883(0x1db)]){const _0x5644f0=[];for(const _0x25112d of this[_0x3a9883(0x1c5)][_0x3a9883(0x219)]()){const _0xb3105a=_0x25112d[_0x3a9883(0x215)](_0x3a9883(0x213));this[_0x3a9883(0x1d9)](_0xb3105a)||(_0x5644f0[_0x3a9883(0x1f9)](_0x25112d),_0x133b6d=!0x0);}for(const _0x460fad of _0x5644f0)_0x1efd1e[_0x3a9883(0x1d5)](_0x460fad);}const _0x2877a0=new Set(),_0x35d61a=[];for(const _0x42172b of this[_0x3a9883(0x1c5)][_0x3a9883(0x219)]()){const _0x40f44b=_0x42172b[_0x3a9883(0x215)](_0x3a9883(0x213));_0x2877a0[_0x3a9883(0x21c)](_0x40f44b)?(_0x35d61a[_0x3a9883(0x1f9)](_0x42172b),_0x133b6d=!0x0):_0x2877a0[_0x3a9883(0x20f)](_0x40f44b);}for(const _0xa48948 of _0x35d61a)_0x1efd1e[_0x3a9883(0x1d5)](_0xa48948);return this[_0x3a9883(0x1c5)][_0x3a9883(0x228)]||(_0x1efd1e[_0x3a9883(0x1d5)](this[_0x3a9883(0x1c5)]),this[_0x3a9883(0x1c5)]=null,_0x133b6d=!0x0),_0x133b6d;}[_0x5964fb(0x1ce)](_0x383fd5,_0x4e9158){const _0xc1ff7b=_0x5964fb;if(this[_0xc1ff7b(0x1d8)][_0xc1ff7b(0x1e6)](_0x16013d=>_0x16013d[_0xc1ff7b(0x1d7)]===_0x4e9158))return!0x1;let _0x46c0eb=!0x1;const _0xb36a10=_0x4e9158[_0xc1ff7b(0x215)](_0xc1ff7b(0x213)),_0x1dfccd=this[_0xc1ff7b(0x1d9)](_0xb36a10);_0x1dfccd&&(_0x383fd5[_0xc1ff7b(0x1d5)](_0x1dfccd[_0xc1ff7b(0x1d7)]),this[_0xc1ff7b(0x1d8)]=this[_0xc1ff7b(0x1d8)][_0xc1ff7b(0x1d6)](_0x4ad4dd=>_0x4ad4dd['id']!==_0xb36a10),_0x46c0eb=!0x0);let _0x3097ff=this[_0xc1ff7b(0x1c5)]?function(_0x3d6e71,_0x305d28){const _0x2179aa=_0xc1ff7b;for(const _0x1467f6 of _0x3d6e71[_0x2179aa(0x219)]())if(_0x1467f6[_0x2179aa(0x215)](_0x2179aa(0x213))===_0x305d28)return _0x1467f6;return null;}(this[_0xc1ff7b(0x1c5)],_0xb36a10):null;_0x3097ff||(_0x3097ff=_0x383fd5[_0xc1ff7b(0x1eb)](_0xc1ff7b(0x1f0),{'footnoteId':_0xb36a10}),this[_0xc1ff7b(0x1c5)]&&(_0x383fd5[_0xc1ff7b(0x1dd)](_0x3097ff,this[_0xc1ff7b(0x1c5)],_0xc1ff7b(0x214)),_0x46c0eb=!0x0));const _0x9cc9c={'id':_0xb36a10,'reference':_0x4e9158,'definition':_0x3097ff},_0x3b64c5=I(this[_0xc1ff7b(0x1f7)][_0xc1ff7b(0x221)],this[_0xc1ff7b(0x1d8)],_0x4e9158);return this[_0xc1ff7b(0x1d8)][_0xc1ff7b(0x1ec)](_0x3b64c5,0x0,_0x9cc9c),this[_0xc1ff7b(0x1f5)](_0x383fd5,_0x3b64c5)&&(_0x46c0eb=!0x0),_0x46c0eb;}[_0x5964fb(0x1e2)](_0x5e7f72,_0x86b764){const _0x52a8ad=_0x5964fb,_0x47114a=this[_0x52a8ad(0x1d8)][_0x52a8ad(0x212)](_0x47d9df=>_0x47d9df['id']===_0x86b764);if(-0x1===_0x47114a)return!0x1;let _0x6ac6a2=!0x1;const _0xb2245d=this[_0x52a8ad(0x1d8)][_0x47114a];return _0x52a8ad(0x217)!==_0xb2245d[_0x52a8ad(0x224)][_0x52a8ad(0x1f8)][_0x52a8ad(0x1f1)]&&(_0x5e7f72[_0x52a8ad(0x1d5)](_0xb2245d[_0x52a8ad(0x224)]),_0x6ac6a2=!0x0),this[_0x52a8ad(0x1d8)][_0x52a8ad(0x1ec)](_0x47114a,0x1),this[_0x52a8ad(0x1f5)](_0x5e7f72,_0x47114a)&&(_0x6ac6a2=!0x0),_0x6ac6a2;}[_0x5964fb(0x21a)](_0x717b96,_0x3dafab){const _0x58a61a=_0x5964fb,_0x913b35=_0x3dafab[_0x58a61a(0x215)](_0x58a61a(0x213)),_0x546ca8=this[_0x58a61a(0x1d8)][_0x58a61a(0x212)](_0x2f31c5=>_0x2f31c5['id']===_0x913b35),_0xa31d82=this[_0x58a61a(0x1d8)][_0x546ca8];let _0x1d7ce2=!0x1;_0xa31d82[_0x58a61a(0x1d7)]=_0x3dafab,this[_0x58a61a(0x1d8)][_0x58a61a(0x1ec)](_0x546ca8,0x1);const _0x3f6ca5=I(this[_0x58a61a(0x1f7)][_0x58a61a(0x221)],this[_0x58a61a(0x1d8)],_0x3dafab);return this[_0x58a61a(0x1d8)][_0x58a61a(0x1ec)](_0x3f6ca5,0x0,_0xa31d82),this[_0x58a61a(0x1f5)](_0x717b96,Math[_0x58a61a(0x1df)](_0x546ca8,_0x3f6ca5))&&(_0x1d7ce2=!0x0),_0x1d7ce2;}[_0x5964fb(0x20a)](_0x506906,_0x2b7492){const _0x4639ac=_0x5964fb;if(!this[_0x4639ac(0x1c5)])return!0x1;const _0x3de6f6=this[_0x4639ac(0x1d8)][_0x2b7492];let _0x57c510;return _0x57c510=this[_0x4639ac(0x1ea)]?this[_0x4639ac(0x1ea)]({'footnote':_0x3de6f6,'container':this[_0x4639ac(0x1c5)],'digits':String(this[_0x4639ac(0x1d8)][_0x4639ac(0x1db)])[_0x4639ac(0x1db)],'value':_0x2b7492+0x1}):String(_0x2b7492+0x1),_0x3de6f6[_0x4639ac(0x1d7)][_0x4639ac(0x215)](_0x4639ac(0x1d1))!=_0x57c510&&(_0x506906[_0x4639ac(0x1f4)](_0x4639ac(0x1d1),_0x57c510,_0x3de6f6[_0x4639ac(0x1d7)]),!0x0);}[_0x5964fb(0x1f6)](_0x18ae92){const _0x57de31=_0x5964fb;if(!this[_0x57de31(0x1c5)]||this[_0x57de31(0x1d8)][_0x57de31(0x1db)]<0x2)return!0x1;if(function(_0x59b959,_0x7cfe88){const _0x48f874=_0x57de31;if(_0x59b959[_0x48f874(0x1db)]!==_0x7cfe88[_0x48f874(0x1db)])return!0x1;for(let _0xa23e45=0x0;_0xa23e45<_0x59b959[_0x48f874(0x1db)];_0xa23e45++)if(_0x59b959[_0xa23e45]!==_0x7cfe88[_0xa23e45])return!0x1;return!0x0;}(this[_0x57de31(0x1d8)][_0x57de31(0x1c9)](_0x3af83e=>_0x3af83e['id']),Array[_0x57de31(0x1e5)](this[_0x57de31(0x1c5)][_0x57de31(0x219)]())[_0x57de31(0x1c9)](_0x1c9e15=>_0x1c9e15[_0x57de31(0x215)](_0x57de31(0x213)))))return!0x1;let _0x415e1d=!0x1;for(let _0x294460=0x0;_0x294460<this[_0x57de31(0x1d8)][_0x57de31(0x1db)];_0x294460++){const _0x4040fb=this[_0x57de31(0x1d8)][_0x294460],_0x1c253e=_0x18ae92[_0x57de31(0x202)](_0x4040fb[_0x57de31(0x224)]),_0x12a324=_0x18ae92[_0x57de31(0x1d3)](this[_0x57de31(0x1c5)],_0x294460);_0x1c253e[_0x57de31(0x1e3)](_0x12a324)||(_0x18ae92[_0x57de31(0x208)](_0x18ae92[_0x57de31(0x223)](_0x4040fb[_0x57de31(0x224)]),_0x12a324),_0x415e1d=!0x0);}return _0x415e1d;}[_0x5964fb(0x1c4)](_0x50d1db){const _0x5b0b9b=_0x5964fb;if(!this[_0x5b0b9b(0x1d8)][_0x5b0b9b(0x1db)])return!0x1;const {model:_0x44af50}=this[_0x5b0b9b(0x1f7)];let _0x468ecf=!0x1;for(let _0x59e85d=0x0;_0x59e85d<this[_0x5b0b9b(0x1d8)][_0x5b0b9b(0x1db)]-0x1;_0x59e85d++){const _0x3e67c1=this[_0x5b0b9b(0x1d8)][_0x59e85d],_0x6f61c4=this[_0x5b0b9b(0x1d8)][_0x59e85d+0x1],_0x1ef689=_0x44af50[_0x5b0b9b(0x202)](_0x3e67c1[_0x5b0b9b(0x1d7)]),_0x2e5d15=_0x44af50[_0x5b0b9b(0x202)](_0x6f61c4[_0x5b0b9b(0x1d7)]);_0x5b0b9b(0x1ff)===_0x1ef689[_0x5b0b9b(0x1fe)](_0x2e5d15)&&(this[_0x5b0b9b(0x21a)](_0x50d1db,_0x3e67c1[_0x5b0b9b(0x1d7)]),_0x59e85d=-0x1,_0x468ecf=!0x0);}return _0x468ecf;}}function _0x225d(){const _0x412bad=['_updateFootnoteRefCounter','35QDXruL','parent','high','getChanges','add','_handleFootnoteReferencesChanges','footnotesDefinitions','findIndex','footnoteId','end','getAttribute','low','$graveyard','before','getChildren','_handleMovedFootnoteReference','push','has','listenTo','paragraph','isPremiumPlugin','differ','model','4896810BuTONK','createRangeOn','definition','reset','256612VqErwu','singleton','childCount','_ensureFootnotesReferencesHaveProperOrder','_footnotesDefinitions','getRootNames','8LfViiX','registerPostFixer','map','set','_handleFootnotesDefinitionsObjectChanges','43116516rAtLZr','setFootnoteFormatter','_handleInsertedFootnoteReference','_footnoteRefsTracker','FootnotesTracker','footnoteCounter','init','createPositionAt','get','remove','filter','reference','_footnotes','getFootnote','config','length','_footnoteDefsTracker','insert','isOfficialPlugin','min','pluginName','some','_handleRemoveFootnoteReferenceById','isEqual','indexOf','from','find','createRangeIn','_handleFootnotesDefinitionsObjectSync','668235gwddYT','_footnoteFormatter','createElement','splice','append','getFootnotesDefinitionsObjectElement','_insertEmptyFootnotesDefinitionsContainer','footnoteDefinition','rootName','_ensureFootnotesDefinitionsContainerExists','_handleFootnoteDefinitionsChanges','setAttribute','_updateFootnotesCounters','_sortFootnoteDefinitions','editor','root','unshift','getFootnotes','document','enqueueChange','footnoteInlineContent','compareWith','after','getFootnotesFormatter','footnoteRef','createPositionBefore','8402024LGILhX','869394brJBKN','footnotes.multiBlock','663633TcTRYd','_footnoteDefsContainerTracker','move','change:data'];_0x225d=function(){return _0x412bad;};return _0x225d();}function _0x3505(_0x2fffa0,_0x511ae2){const _0x225dfd=_0x225d();return _0x3505=function(_0x35054b,_0x48774f){_0x35054b=_0x35054b-0x1c4;let _0x2f68db=_0x225dfd[_0x35054b];return _0x2f68db;},_0x3505(_0x2fffa0,_0x511ae2);}function _(_0x120539,_0x150c48,_0x579cb5){const _0x172325=_0x5964fb;if(_0x579cb5[_0x172325(0x228)])return!0x1;const _0x2e863c=_0x150c48?_0x172325(0x21e):_0x172325(0x1fd);return _0x120539[_0x172325(0x1dd)](_0x120539[_0x172325(0x1eb)](_0x2e863c),_0x579cb5),!0x0;}function I(_0x5e508b,_0x1fc3c7,_0x454504){const _0x7e3fa0=_0x5964fb;if(0x0===_0x1fc3c7[_0x7e3fa0(0x1db)])return 0x0;const _0x1fa99f=_0x5e508b[_0x7e3fa0(0x202)](_0x454504);for(let _0x24fa2d=0x0;_0x24fa2d<_0x1fc3c7[_0x7e3fa0(0x1db)];_0x24fa2d++){const _0xa90d3d=_0x1fc3c7[_0x24fa2d],_0x39c6f2=_0x5e508b[_0x7e3fa0(0x202)](_0xa90d3d[_0x7e3fa0(0x1d7)]);if(_0x7e3fa0(0x218)===_0x1fa99f[_0x7e3fa0(0x1fe)](_0x39c6f2))return _0x24fa2d;}const _0x3cfcca=_0x454504[_0x7e3fa0(0x1f8)];let _0x1cc81b=-0x1;for(let _0x1801eb=_0x1fc3c7[_0x7e3fa0(0x1db)]-0x1;_0x1801eb>=0x0;_0x1801eb--)if(_0x1fc3c7[_0x1801eb][_0x7e3fa0(0x1d7)][_0x7e3fa0(0x1f8)]===_0x3cfcca){_0x1cc81b=_0x1801eb;break;}if(-0x1!==_0x1cc81b)return _0x1cc81b+0x1;const _0x3877fe=_0x5e508b[_0x7e3fa0(0x1fb)][_0x7e3fa0(0x1c6)](),_0x12a102=_0x3877fe[_0x7e3fa0(0x1e4)](_0x3cfcca[_0x7e3fa0(0x1f1)]),_0x4b7810=_0x3877fe[_0x12a102+0x1];if(_0x4b7810){for(let _0x27815e=0x0;_0x27815e<_0x1fc3c7[_0x7e3fa0(0x1db)];_0x27815e++)if(_0x1fc3c7[_0x27815e][_0x7e3fa0(0x1d7)][_0x7e3fa0(0x1f8)][_0x7e3fa0(0x1f1)]===_0x4b7810)return _0x27815e;}return _0x1fc3c7[_0x7e3fa0(0x1db)];}
|
|
23
|
+
const _0x4efbbc=_0x130d;(function(_0x360e4d,_0x121246){const _0x1f4610=_0x130d,_0x6eaa08=_0x360e4d();while(!![]){try{const _0x38674f=parseInt(_0x1f4610(0x201))/0x1*(-parseInt(_0x1f4610(0x1ca))/0x2)+parseInt(_0x1f4610(0x1b7))/0x3+parseInt(_0x1f4610(0x1e8))/0x4*(-parseInt(_0x1f4610(0x1fe))/0x5)+parseInt(_0x1f4610(0x1d4))/0x6*(parseInt(_0x1f4610(0x1bf))/0x7)+parseInt(_0x1f4610(0x1db))/0x8+parseInt(_0x1f4610(0x1e4))/0x9*(-parseInt(_0x1f4610(0x1ac))/0xa)+-parseInt(_0x1f4610(0x19e))/0xb*(-parseInt(_0x1f4610(0x1dd))/0xc);if(_0x38674f===_0x121246)break;else _0x6eaa08['push'](_0x6eaa08['shift']());}catch(_0x134769){_0x6eaa08['push'](_0x6eaa08['shift']());}}}(_0x9659,0x316c8));function _0x9659(){const _0xb48cfc=['_footnotes','footnoteId','$graveyard','_footnoteRefsTracker','createRangeIn','min','push','createElement','234iqUkOn','get','listenTo','_footnoteDefsContainerTracker','_insertEmptyFootnotesDefinitionsContainer','_ensureFootnotesReferencesHaveProperOrder','_handleMovedFootnoteReference','300480WssQWH','FootnotesTracker','180weXaEz','change:data','high','after','_handleFootnoteReferencesChanges','_ensureFootnotesDefinitionsContainerExists','_handleInsertedFootnoteReference','9UhdHPY','setAttribute','add','getChanges','1064geMKxt','getChildren','some','editor','_updateFootnotesCounters','singleton','differ','append','end','init','createPositionBefore','reference','parent','_footnotesDefinitions','definition','footnoteRef','getFootnotesDefinitionsObjectElement','childCount','getFootnotesFormatter','isOfficialPlugin','footnoteDefinition','map','440FXKqto','splice','indexOf','115601TxYBic','move','getFootnotes','pluginName','22297XYizjc','compareWith','createRangeOn','unshift','getFootnote','_footnoteFormatter','enqueueChange','paragraph','_sortFootnoteDefinitions','setFootnoteFormatter','isPremiumPlugin','from','footnoteCounter','has','1073110mgkLUF','_handleFootnotesDefinitionsObjectChanges','config','find','_handleFootnoteDefinitionsChanges','document','createPositionAt','_updateFootnoteRefCounter','_handleFootnotesDefinitionsObjectSync','set','getRootNames','819231RQNhmS','isEqual','rootName','findIndex','root','footnoteInlineContent','registerPostFixer','length','19334yaxvvx','before','model','insert','_handleRemoveFootnoteReferenceById','reset','footnotes.multiBlock','low','remove','getAttribute','_footnoteDefsTracker','2PNTqeV','footnotesDefinitions'];_0x9659=function(){return _0xb48cfc;};return _0x9659();}import{Plugin as _0x1b4bd3}from'ckeditor5/src/core.js';function _0x130d(_0xe327d4,_0x577290){const _0x9659df=_0x9659();return _0x130d=function(_0x130d69,_0x2e2124){_0x130d69=_0x130d69-0x19c;let _0x1d977a=_0x9659df[_0x130d69];return _0x1d977a;},_0x130d(_0xe327d4,_0x577290);}import{ModelElementTracker as _0x5805e2}from'./modelelementtracker.js';export class FootnotesTracker extends _0x1b4bd3{[_0x4efbbc(0x1cc)]=[];[_0x4efbbc(0x1f5)]=null;[_0x4efbbc(0x1a3)]=null;[_0x4efbbc(0x1d7)];[_0x4efbbc(0x1cf)];[_0x4efbbc(0x1c9)];static get[_0x4efbbc(0x19d)](){const _0x295dfa=_0x4efbbc;return _0x295dfa(0x1dc);}static get[_0x4efbbc(0x1fb)](){return!0x0;}static get[_0x4efbbc(0x1a8)](){return!0x0;}constructor(_0x5ac5f7){const _0x118bd5=_0x4efbbc;super(_0x5ac5f7),this[_0x118bd5(0x1d7)]=new _0x5805e2(this[_0x118bd5(0x1eb)][_0x118bd5(0x1c1)],{'elementName':_0x118bd5(0x1cb),'getElementKey':()=>_0x118bd5(0x1ed)}),this[_0x118bd5(0x1cf)]=new _0x5805e2(this[_0x118bd5(0x1eb)][_0x118bd5(0x1c1)],{'elementName':_0x118bd5(0x1f7),'getElementKey':_0x2fd074=>_0x2fd074[_0x118bd5(0x1c8)](_0x118bd5(0x1cd))}),this[_0x118bd5(0x1c9)]=new _0x5805e2(this[_0x118bd5(0x1eb)][_0x118bd5(0x1c1)],{'elementName':_0x118bd5(0x1fc),'getElementKey':_0xe532dc=>_0xe532dc[_0x118bd5(0x1c8)](_0x118bd5(0x1cd))});}[_0x4efbbc(0x1f1)](){const _0x42e2b8=_0x4efbbc,{editor:_0x496964}=this,{model:_0x5c8303,data:_0x30cf09}=_0x496964;_0x5c8303[_0x42e2b8(0x1b1)][_0x42e2b8(0x1bd)](_0x58c8a2=>{const _0x465c72=_0x42e2b8,_0x278e8d=_0x5c8303[_0x465c72(0x1b1)][_0x465c72(0x1ee)][_0x465c72(0x1e7)]();let _0x4bd572=!0x1;return this[_0x465c72(0x1ad)](_0x58c8a2,_0x278e8d)&&(_0x4bd572=!0x0),this[_0x465c72(0x1b0)](_0x58c8a2,_0x278e8d)&&(_0x4bd572=!0x0),this[_0x465c72(0x1e1)](_0x58c8a2,_0x278e8d)&&(_0x4bd572=!0x0),this[_0x465c72(0x1d9)](_0x58c8a2)&&(_0x4bd572=!0x0),this[_0x465c72(0x1b4)](_0x58c8a2)&&(_0x4bd572=!0x0),this[_0x465c72(0x1a6)](_0x58c8a2)&&(_0x4bd572=!0x0),_0x4bd572;}),this[_0x42e2b8(0x1d6)](_0x5c8303[_0x42e2b8(0x1b1)],_0x42e2b8(0x1de),()=>{const _0x3eab30=_0x42e2b8;_0x5c8303[_0x3eab30(0x1a4)]({'isUndoable':!0x1},_0x30835e=>{const _0x59d711=_0x3eab30;this[_0x59d711(0x1e2)](_0x30835e);});},{'priority':_0x42e2b8(0x1c6)}),this[_0x42e2b8(0x1d6)](_0x30cf09,_0x42e2b8(0x1b5),()=>{const _0x14d5c1=_0x42e2b8;this[_0x14d5c1(0x1cc)]=[],this[_0x14d5c1(0x1d7)][_0x14d5c1(0x1c4)](),this[_0x14d5c1(0x1cf)][_0x14d5c1(0x1c4)](),this[_0x14d5c1(0x1c9)][_0x14d5c1(0x1c4)]();},{'priority':_0x42e2b8(0x1df)});}[_0x4efbbc(0x1f8)](){const _0x582cdc=_0x4efbbc;return this[_0x582cdc(0x1f5)];}[_0x4efbbc(0x1a2)](_0x40eb18){const _0x40fc6c=_0x4efbbc;return this[_0x40fc6c(0x1cc)][_0x40fc6c(0x1af)](_0x584dd4=>_0x584dd4['id']===_0x40eb18)||null;}[_0x4efbbc(0x19c)](){const _0x390baa=_0x4efbbc;return Array[_0x390baa(0x1a9)](this[_0x390baa(0x1cc)]);}[_0x4efbbc(0x1fa)](){const _0x2833ca=_0x4efbbc;return this[_0x2833ca(0x1a3)];}[_0x4efbbc(0x1a7)](_0x22c312){const _0x2be774=_0x4efbbc;this[_0x2be774(0x1a3)]=_0x22c312;}[_0x4efbbc(0x1ec)](_0x53e804,_0xd14b55=0x0){const _0x5e9e71=_0x4efbbc;let _0x3855c9=!0x1;for(let _0x426f1b=_0xd14b55;_0x426f1b<this[_0x5e9e71(0x1cc)][_0x5e9e71(0x1be)];_0x426f1b++)this[_0x5e9e71(0x1b3)](_0x53e804,_0x426f1b)&&(_0x3855c9=!0x0);return _0x3855c9;}[_0x4efbbc(0x1d8)](_0x46b620,_0x5531cc){const _0x4e3689=_0x4efbbc,_0x32dc35=_0x46b620[_0x4e3689(0x1d3)](_0x4e3689(0x1cb),{});return _0x46b620[_0x4e3689(0x1ef)](_0x32dc35,_0x5531cc),this[_0x4e3689(0x1f5)]=_0x32dc35,_0x32dc35;}[_0x4efbbc(0x1e2)](_0x59f65d){const _0x3afe46=_0x4efbbc;if(!this[_0x3afe46(0x1cc)][_0x3afe46(0x1be)]||this[_0x3afe46(0x1f5)])return;const _0x105e2e=this[_0x3afe46(0x1cc)][0x0][_0x3afe46(0x1f3)][_0x3afe46(0x1bb)],_0x26dcc7=this[_0x3afe46(0x1d8)](_0x59f65d,_0x105e2e);for(const _0x2b7cf1 of this[_0x3afe46(0x1cc)])_0x2b7cf1[_0x3afe46(0x1f6)][_0x3afe46(0x1f4)]||_0x59f65d[_0x3afe46(0x1c2)](_0x2b7cf1[_0x3afe46(0x1f6)],_0x26dcc7,_0x3afe46(0x1f0));this[_0x3afe46(0x1ec)](_0x59f65d);}[_0x4efbbc(0x1ad)](_0x1ce15a,_0x87edcf){const _0x117f1a=_0x4efbbc;let _0x26b709=!0x1;const {inserted:_0x235a07,removed:_0x4b44bc,moved:_0x3de304}=this[_0x117f1a(0x1d7)][_0x117f1a(0x1e7)](_0x87edcf);if(_0x3de304[_0x117f1a(0x1be)]&&(this[_0x117f1a(0x1f5)]=_0x3de304[0x0]),_0x235a07[_0x117f1a(0x1be)]){if(_0x235a07[_0x117f1a(0x1be)]>0x1||this[_0x117f1a(0x1f5)]&&_0x235a07[_0x117f1a(0x1ea)](_0xbb6ebf=>_0xbb6ebf!==this[_0x117f1a(0x1f5)])){const _0x4d943d=_0x1ce15a[_0x117f1a(0x1d3)](_0x117f1a(0x1cb),{}),_0x140623=[];this[_0x117f1a(0x1f5)]&&_0x140623[_0x117f1a(0x1d2)](this[_0x117f1a(0x1f5)]),_0x140623[_0x117f1a(0x1d2)](..._0x235a07),_0x1ce15a[_0x117f1a(0x1c2)](_0x4d943d,_0x140623[0x0],_0x117f1a(0x1c0));for(const _0x3a24f4 of _0x140623)_0x1ce15a[_0x117f1a(0x202)](_0x1ce15a[_0x117f1a(0x1d0)](_0x3a24f4),_0x1ce15a[_0x117f1a(0x1b2)](_0x4d943d,_0x117f1a(0x1f0))),_0x1ce15a[_0x117f1a(0x1c7)](_0x3a24f4);this[_0x117f1a(0x1f5)]=_0x4d943d,this[_0x117f1a(0x1ec)](_0x1ce15a),_0x26b709=!0x0;}else this[_0x117f1a(0x1f5)]=_0x235a07[0x0];}if(_0x4b44bc[_0x117f1a(0x1be)]&&_0x117f1a(0x1ce)===this[_0x117f1a(0x1f5)]?.[_0x117f1a(0x1bb)][_0x117f1a(0x1b9)]){for(const _0x1a3d2f of this[_0x117f1a(0x1cc)])_0x1ce15a[_0x117f1a(0x1c7)](_0x1a3d2f[_0x117f1a(0x1f3)]),_0x26b709=!0x0;this[_0x117f1a(0x1cc)]=[],this[_0x117f1a(0x1f5)]=null;}return _0x26b709;}[_0x4efbbc(0x1b0)](_0xebe0ec,_0x30bb77){const _0x474a4d=_0x4efbbc;let _0x1e26fd=!0x1;const _0x290d95=this[_0x474a4d(0x1eb)][_0x474a4d(0x1ae)][_0x474a4d(0x1d5)](_0x474a4d(0x1c5)),{inserted:_0xaac948,moved:_0x4cffad}=this[_0x474a4d(0x1c9)][_0x474a4d(0x1e7)](_0x30bb77);for(const _0x59eaca of[..._0x4cffad,..._0xaac948]){const _0x3f78de=_0x59eaca[_0x474a4d(0x1c8)](_0x474a4d(0x1cd)),_0x4f83d3=this[_0x474a4d(0x1a2)](_0x3f78de);_0x4f83d3&&(_0x4f83d3[_0x474a4d(0x1f6)]=_0x59eaca),_(_0xebe0ec,_0x290d95,_0x59eaca)&&(_0x1e26fd=!0x0);}return _0x1e26fd;}[_0x4efbbc(0x1e1)](_0x156d36,_0xcb7363){const _0x180f01=_0x4efbbc;let _0x26f9c6=!0x1;const {removed:_0x2bc768,inserted:_0x48f242,moved:_0x3e03b6}=this[_0x180f01(0x1cf)][_0x180f01(0x1e7)](_0xcb7363);for(const _0x4825e4 of _0x2bc768)this[_0x180f01(0x1c3)](_0x156d36,_0x4825e4)&&(_0x26f9c6=!0x0);for(const _0x4c36f7 of _0x48f242)this[_0x180f01(0x1e3)](_0x156d36,_0x4c36f7)&&(_0x26f9c6=!0x0);for(const _0x3be0ac of _0x3e03b6)this[_0x180f01(0x1da)](_0x156d36,_0x3be0ac)&&(_0x26f9c6=!0x0);return _0x26f9c6;}[_0x4efbbc(0x1b4)](_0x429e8b){const _0x47ee3f=_0x4efbbc;if(!this[_0x47ee3f(0x1f5)])return!0x1;let _0x2df657=!0x1;if(this[_0x47ee3f(0x1f5)][_0x47ee3f(0x1f9)]!==this[_0x47ee3f(0x1cc)][_0x47ee3f(0x1be)]){const _0x1acbf3=[];for(const _0x9e80b6 of this[_0x47ee3f(0x1f5)][_0x47ee3f(0x1e9)]()){const _0x626d56=_0x9e80b6[_0x47ee3f(0x1c8)](_0x47ee3f(0x1cd));this[_0x47ee3f(0x1a2)](_0x626d56)||(_0x1acbf3[_0x47ee3f(0x1a1)](_0x9e80b6),_0x2df657=!0x0);}for(const _0x81531a of _0x1acbf3)_0x429e8b[_0x47ee3f(0x1c7)](_0x81531a);}const _0x14e05d=new Set(),_0x244f8a=[];for(const _0x5e7953 of this[_0x47ee3f(0x1f5)][_0x47ee3f(0x1e9)]()){const _0x317113=_0x5e7953[_0x47ee3f(0x1c8)](_0x47ee3f(0x1cd));_0x14e05d[_0x47ee3f(0x1ab)](_0x317113)?(_0x244f8a[_0x47ee3f(0x1a1)](_0x5e7953),_0x2df657=!0x0):_0x14e05d[_0x47ee3f(0x1e6)](_0x317113);}for(const _0xb49acb of _0x244f8a)_0x429e8b[_0x47ee3f(0x1c7)](_0xb49acb);return this[_0x47ee3f(0x1f5)][_0x47ee3f(0x1f9)]||(_0x429e8b[_0x47ee3f(0x1c7)](this[_0x47ee3f(0x1f5)]),this[_0x47ee3f(0x1f5)]=null,_0x2df657=!0x0),_0x2df657;}[_0x4efbbc(0x1e3)](_0x31735c,_0x55d833){const _0x323c71=_0x4efbbc;if(this[_0x323c71(0x1cc)][_0x323c71(0x1af)](_0x4a5e81=>_0x4a5e81[_0x323c71(0x1f3)]===_0x55d833))return!0x1;let _0x25c1fa=!0x1;const _0x3aea0a=_0x55d833[_0x323c71(0x1c8)](_0x323c71(0x1cd)),_0x352d6b=this[_0x323c71(0x1cc)][_0x323c71(0x1ba)](_0x396651=>_0x396651['id']===_0x3aea0a);-0x1!==_0x352d6b&&(_0x31735c[_0x323c71(0x1c7)](this[_0x323c71(0x1cc)][_0x352d6b][_0x323c71(0x1f3)]),this[_0x323c71(0x1cc)][_0x323c71(0x1ff)](_0x352d6b,0x1),_0x25c1fa=!0x0);let _0x1c83e6=this[_0x323c71(0x1f5)]?function(_0x1cb90f,_0x86c161){const _0xead029=_0x323c71;for(const _0x1171fb of _0x1cb90f[_0xead029(0x1e9)]())if(_0x1171fb[_0xead029(0x1c8)](_0xead029(0x1cd))===_0x86c161)return _0x1171fb;return null;}(this[_0x323c71(0x1f5)],_0x3aea0a):null;_0x1c83e6||(_0x1c83e6=_0x31735c[_0x323c71(0x1d3)](_0x323c71(0x1fc),{'footnoteId':_0x3aea0a}),this[_0x323c71(0x1f5)]&&(_0x31735c[_0x323c71(0x1c2)](_0x1c83e6,this[_0x323c71(0x1f5)],_0x323c71(0x1f0)),_0x25c1fa=!0x0));const _0x3ec6a4={'id':_0x3aea0a,'reference':_0x55d833,'definition':_0x1c83e6},_0x58fbe5=I(this[_0x323c71(0x1eb)][_0x323c71(0x1c1)],this[_0x323c71(0x1cc)],_0x55d833);this[_0x323c71(0x1cc)][_0x323c71(0x1ff)](_0x58fbe5,0x0,_0x3ec6a4);let _0x1f54d8=_0x58fbe5;return-0x1!==_0x352d6b&&(_0x1f54d8=Math[_0x323c71(0x1d1)](_0x58fbe5,_0x352d6b)),this[_0x323c71(0x1ec)](_0x31735c,_0x1f54d8)&&(_0x25c1fa=!0x0),_0x25c1fa;}[_0x4efbbc(0x1c3)](_0x30ad90,_0x27bea4){const _0x758a07=_0x4efbbc,_0x3696ca=this[_0x758a07(0x1cc)][_0x758a07(0x1ba)](_0x4c5386=>_0x4c5386['id']===_0x27bea4);if(-0x1===_0x3696ca)return!0x1;let _0x53441c=!0x1;const _0x38e418=this[_0x758a07(0x1cc)][_0x3696ca];return _0x758a07(0x1ce)!==_0x38e418[_0x758a07(0x1f6)][_0x758a07(0x1bb)][_0x758a07(0x1b9)]&&(_0x30ad90[_0x758a07(0x1c7)](_0x38e418[_0x758a07(0x1f6)]),_0x53441c=!0x0),this[_0x758a07(0x1cc)][_0x758a07(0x1ff)](_0x3696ca,0x1),this[_0x758a07(0x1ec)](_0x30ad90,_0x3696ca)&&(_0x53441c=!0x0),_0x53441c;}[_0x4efbbc(0x1da)](_0x353f61,_0x172b8b){const _0x431dce=_0x4efbbc,_0x4b45b6=_0x172b8b[_0x431dce(0x1c8)](_0x431dce(0x1cd)),_0x360949=this[_0x431dce(0x1cc)][_0x431dce(0x1ba)](_0xdb6ac4=>_0xdb6ac4['id']===_0x4b45b6),_0x2cd39c=this[_0x431dce(0x1cc)][_0x360949];let _0x251bb1=!0x1;_0x2cd39c[_0x431dce(0x1f3)]=_0x172b8b,this[_0x431dce(0x1cc)][_0x431dce(0x1ff)](_0x360949,0x1);const _0x1b4cd1=I(this[_0x431dce(0x1eb)][_0x431dce(0x1c1)],this[_0x431dce(0x1cc)],_0x172b8b);return this[_0x431dce(0x1cc)][_0x431dce(0x1ff)](_0x1b4cd1,0x0,_0x2cd39c),this[_0x431dce(0x1ec)](_0x353f61,Math[_0x431dce(0x1d1)](_0x360949,_0x1b4cd1))&&(_0x251bb1=!0x0),_0x251bb1;}[_0x4efbbc(0x1b3)](_0x550755,_0x28a140){const _0x5a78e2=_0x4efbbc;if(!this[_0x5a78e2(0x1f5)])return!0x1;const _0x623b73=this[_0x5a78e2(0x1cc)][_0x28a140];let _0x6d004d;return _0x6d004d=this[_0x5a78e2(0x1a3)]?this[_0x5a78e2(0x1a3)]({'footnote':_0x623b73,'container':this[_0x5a78e2(0x1f5)],'digits':String(this[_0x5a78e2(0x1cc)][_0x5a78e2(0x1be)])[_0x5a78e2(0x1be)],'value':_0x28a140+0x1}):String(_0x28a140+0x1),_0x623b73[_0x5a78e2(0x1f3)][_0x5a78e2(0x1c8)](_0x5a78e2(0x1aa))!=_0x6d004d&&(_0x550755[_0x5a78e2(0x1e5)](_0x5a78e2(0x1aa),_0x6d004d,_0x623b73[_0x5a78e2(0x1f3)]),!0x0);}[_0x4efbbc(0x1a6)](_0x23e8f7){const _0x50302a=_0x4efbbc;if(!this[_0x50302a(0x1f5)]||this[_0x50302a(0x1cc)][_0x50302a(0x1be)]<0x2)return!0x1;if(function(_0x2f940d,_0x2877b0){const _0x2bfe6a=_0x50302a;if(_0x2f940d[_0x2bfe6a(0x1be)]!==_0x2877b0[_0x2bfe6a(0x1be)])return!0x1;for(let _0x2cc818=0x0;_0x2cc818<_0x2f940d[_0x2bfe6a(0x1be)];_0x2cc818++)if(_0x2f940d[_0x2cc818]!==_0x2877b0[_0x2cc818])return!0x1;return!0x0;}(this[_0x50302a(0x1cc)][_0x50302a(0x1fd)](_0x484e6d=>_0x484e6d['id']),Array[_0x50302a(0x1a9)](this[_0x50302a(0x1f5)][_0x50302a(0x1e9)]())[_0x50302a(0x1fd)](_0x16a946=>_0x16a946[_0x50302a(0x1c8)](_0x50302a(0x1cd)))))return!0x1;let _0x474df7=!0x1;for(let _0x390727=0x0;_0x390727<this[_0x50302a(0x1cc)][_0x50302a(0x1be)];_0x390727++){const _0xa0e5fa=this[_0x50302a(0x1cc)][_0x390727],_0x58a240=_0x23e8f7[_0x50302a(0x1f2)](_0xa0e5fa[_0x50302a(0x1f6)]),_0x12b7b1=_0x23e8f7[_0x50302a(0x1b2)](this[_0x50302a(0x1f5)],_0x390727);_0x58a240[_0x50302a(0x1b8)](_0x12b7b1)||(_0x23e8f7[_0x50302a(0x202)](_0x23e8f7[_0x50302a(0x1a0)](_0xa0e5fa[_0x50302a(0x1f6)]),_0x12b7b1),_0x474df7=!0x0);}return _0x474df7;}[_0x4efbbc(0x1d9)](_0x5b43bd){const _0x35aeeb=_0x4efbbc;if(!this[_0x35aeeb(0x1cc)][_0x35aeeb(0x1be)])return!0x1;const {model:_0x2bd7fd}=this[_0x35aeeb(0x1eb)];let _0x45fd7f=!0x1;for(let _0x85eeda=0x0;_0x85eeda<this[_0x35aeeb(0x1cc)][_0x35aeeb(0x1be)]-0x1;_0x85eeda++){const _0x12cf09=this[_0x35aeeb(0x1cc)][_0x85eeda],_0x2c4e61=this[_0x35aeeb(0x1cc)][_0x85eeda+0x1],_0x56887b=_0x2bd7fd[_0x35aeeb(0x1f2)](_0x12cf09[_0x35aeeb(0x1f3)]),_0x5f5575=_0x2bd7fd[_0x35aeeb(0x1f2)](_0x2c4e61[_0x35aeeb(0x1f3)]);_0x35aeeb(0x1e0)===_0x56887b[_0x35aeeb(0x19f)](_0x5f5575)&&(this[_0x35aeeb(0x1da)](_0x5b43bd,_0x12cf09[_0x35aeeb(0x1f3)]),_0x85eeda=-0x1,_0x45fd7f=!0x0);}return _0x45fd7f;}}function _(_0x2c084e,_0x32b4ad,_0x41f15c){const _0x37bd3f=_0x4efbbc;if(_0x41f15c[_0x37bd3f(0x1f9)])return!0x1;const _0x3e766d=_0x32b4ad?_0x37bd3f(0x1a5):_0x37bd3f(0x1bc);return _0x2c084e[_0x37bd3f(0x1c2)](_0x2c084e[_0x37bd3f(0x1d3)](_0x3e766d),_0x41f15c),!0x0;}function I(_0x54b66b,_0x225f5a,_0x6d9d7b){const _0x4196aa=_0x4efbbc;if(0x0===_0x225f5a[_0x4196aa(0x1be)])return 0x0;const _0x4ccb43=_0x54b66b[_0x4196aa(0x1f2)](_0x6d9d7b);for(let _0x4b1b54=0x0;_0x4b1b54<_0x225f5a[_0x4196aa(0x1be)];_0x4b1b54++){const _0x4e6a4b=_0x225f5a[_0x4b1b54],_0xfac101=_0x54b66b[_0x4196aa(0x1f2)](_0x4e6a4b[_0x4196aa(0x1f3)]);if(_0x4196aa(0x1c0)===_0x4ccb43[_0x4196aa(0x19f)](_0xfac101))return _0x4b1b54;}const _0x131937=_0x6d9d7b[_0x4196aa(0x1bb)];let _0x404f92=-0x1;for(let _0x9d4fae=_0x225f5a[_0x4196aa(0x1be)]-0x1;_0x9d4fae>=0x0;_0x9d4fae--)if(_0x225f5a[_0x9d4fae][_0x4196aa(0x1f3)][_0x4196aa(0x1bb)]===_0x131937){_0x404f92=_0x9d4fae;break;}if(-0x1!==_0x404f92)return _0x404f92+0x1;const _0x309c4a=_0x54b66b[_0x4196aa(0x1b1)][_0x4196aa(0x1b6)](),_0x22223b=_0x309c4a[_0x4196aa(0x200)](_0x131937[_0x4196aa(0x1b9)]),_0xfc1453=_0x309c4a[_0x22223b+0x1];if(_0xfc1453){for(let _0x4a6dc7=0x0;_0x4a6dc7<_0x225f5a[_0x4196aa(0x1be)];_0x4a6dc7++)if(_0x225f5a[_0x4a6dc7][_0x4196aa(0x1f3)][_0x4196aa(0x1bb)][_0x4196aa(0x1b9)]===_0xfc1453)return _0x4a6dc7;}return _0x225f5a[_0x4196aa(0x1be)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3fd52b,MenuBarMenuListItemButtonView as _0x4d808a}from'ckeditor5/src/ui.js';import{Plugin as _0x3514b9}from'ckeditor5/src/core.js';import{IconFootnote as _0x2b28b0}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x3514b9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e8692}=this,{componentFactory:_0x503636}=_0x4e8692['ui'];_0x503636['add']('insertFootnote',x(_0x4e8692,_0x3fd52b)),_0x503636['add']('menuBar:insertFootnote',x(_0x4e8692,_0x4d808a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10d8bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ad818;for(const _0x1e7331 in _0x10d8bb){const _0x3f2240=_0x1e7331,_0x3958aa=_0x10d8bb[_0x3f2240];if('footnotesLicenseKeyValid'==_0x3958aa||'footnotesLicenseKeyInvalid'==_0x3958aa||'footnotesLicenseKeyExpired'==_0x3958aa||'footnotesLicenseKeyDomainLimit'==_0x3958aa||'footnotesLicenseKeyNotAllowed'==_0x3958aa||'footnotesLicenseKeyEvaluationLimit'==_0x3958aa||'footnotesLicenseKeyTrialLimit'==_0x3958aa||'footnotesLicenseKeyUsageLimit'==_0x3958aa){delete _0x10d8bb[_0x3f2240],_0x2ad818=_0x3958aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2ad818&&_0x10d8bb['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2ad818&&_0x10d8bb['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2ad818&&_0x10d8bb['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2ad818&&_0x10d8bb['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2ad818&&_0x10d8bb['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2ad818&&_0x10d8bb['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2ad818&&_0x10d8bb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x51b2fb,_0x39c2db){const _0x59cb3f=_0x51b2fb['commands']['get']('insertFootnote');return _0x19cdda=>{const {t:t}=_0x19cdda,_0x1aca74=new _0x39c2db(_0x19cdda),_0x188c5a=_0x1aca74 instanceof _0x4d808a;return _0x1aca74['bind']('isEnabled')['to'](_0x59cb3f,'isEnabled'),_0x1aca74['set']({'label':t(_0x188c5a?'Footnote':'Insert\x20footnote'),'icon':_0x2b28b0,'tooltip':!0x0}),_0x1aca74['on']('execute',()=>{_0x59cb3f['execute'](),_0x51b2fb['editing']['view']['focus']();}),_0x1aca74;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5a7057,_0x310108){var _0x349da3=_0x47ac,_0x409d9c=_0x5a7057();while(!![]){try{var _0x4ec237=-parseInt(_0x349da3(0xb7))/0x1+parseInt(_0x349da3(0xb5))/0x2*(parseInt(_0x349da3(0xb9))/0x3)+parseInt(_0x349da3(0xb6))/0x4+parseInt(_0x349da3(0xb8))/0x5*(parseInt(_0x349da3(0xb1))/0x6)+parseInt(_0x349da3(0xb4))/0x7+-parseInt(_0x349da3(0xb3))/0x8+-parseInt(_0x349da3(0xb2))/0x9;if(_0x4ec237===_0x310108)break;else _0x409d9c['push'](_0x409d9c['shift']());}catch(_0xce7f29){_0x409d9c['push'](_0x409d9c['shift']());}}}(_0x1356,0x96024));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';function _0x1356(){var _0x765138=['5353686NRXYkG','2257320wwricK','6399953lLsymu','1023170wTjYFP','1287676gwswyx','433496uswulw','5UEoVfZ','3nJULTb','1063008bQlWzd'];_0x1356=function(){return _0x765138;};return _0x1356();}export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';function _0x47ac(_0x18ca25,_0x454709){var _0x1356f1=_0x1356();return _0x47ac=function(_0x47acd7,_0x18ddf6){_0x47acd7=_0x47acd7-0xb1;var _0x2cad03=_0x1356f1[_0x47acd7];return _0x2cad03;},_0x47ac(_0x18ca25,_0x454709);}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
|
+
function _0x37cd(_0x381d0d,_0x39f3e6){const _0x2cdcfa=_0x2cdc();return _0x37cd=function(_0x37cdb0,_0x5d789b){_0x37cdb0=_0x37cdb0-0x18a;let _0x5a7c81=_0x2cdcfa[_0x37cdb0];return _0x5a7c81;},_0x37cd(_0x381d0d,_0x39f3e6);}function _0x2cdc(){const _0x49e23c=['elementName','237095WkrMhk','_trackedElements','20EhaJFa','_getElementKey','reset','408KuCnhI','values','rootName','getItems','remove','createRangeOn','type','insert','_model','element','name','from','211444kaeEsW','clear','position','get','10554710SuWLeT','_elementName','flat','$text','slice','getChanges','29786460llRUYe','$graveyard','15auiESh','69202ILhsnc','set','add','18pLOwZv','nodeAfter','attributes','length','328002pUXgsK','root','getElementKey','has','delete','4897600rMZLTE','push'];_0x2cdc=function(){return _0x49e23c;};return _0x2cdc();}const _0x41cb64=_0x37cd;(function(_0xbf7a45,_0x1b7f7d){const _0x1d822d=_0x37cd,_0x22ab40=_0xbf7a45();while(!![]){try{const _0x5c39a3=parseInt(_0x1d822d(0x199))/0x1+-parseInt(_0x1d822d(0x1b2))/0x2*(parseInt(_0x1d822d(0x191))/0x3)+-parseInt(_0x1d822d(0x1a3))/0x4*(parseInt(_0x1d822d(0x1a1))/0x5)+-parseInt(_0x1d822d(0x1a6))/0x6*(-parseInt(_0x1d822d(0x192))/0x7)+parseInt(_0x1d822d(0x19e))/0x8*(-parseInt(_0x1d822d(0x195))/0x9)+-parseInt(_0x1d822d(0x1b6))/0xa+parseInt(_0x1d822d(0x18f))/0xb;if(_0x5c39a3===_0x1b7f7d)break;else _0x22ab40['push'](_0x22ab40['shift']());}catch(_0x245d72){_0x22ab40['push'](_0x22ab40['shift']());}}}(_0x2cdc,0xa1c06));export class ModelElementTracker{[_0x41cb64(0x1ae)];[_0x41cb64(0x18a)];[_0x41cb64(0x1a4)];[_0x41cb64(0x1a2)]=new Map();constructor(_0x51aa13,_0x370d25){const _0x274d8a=_0x41cb64;this[_0x274d8a(0x1ae)]=_0x51aa13,this[_0x274d8a(0x18a)]=_0x370d25[_0x274d8a(0x1a0)],this[_0x274d8a(0x1a4)]=_0x370d25[_0x274d8a(0x19b)];}[_0x41cb64(0x1a5)](){const _0x3aa015=_0x41cb64;this[_0x3aa015(0x1a2)][_0x3aa015(0x1b3)]();}[_0x41cb64(0x18e)](_0x1d8406){const _0x5d8d84=_0x41cb64,_0x46b261=new Set(),_0x40225b=new Map();for(const _0x322aa3 of _0x1d8406){if(_0x5d8d84(0x1ad)===_0x322aa3[_0x5d8d84(0x1ac)]&&_0x5d8d84(0x18c)!==_0x322aa3[_0x5d8d84(0x1b0)]&&_0x322aa3[_0x5d8d84(0x1b4)][_0x5d8d84(0x196)]){const _0x34e094=this[_0x5d8d84(0x1ae)][_0x5d8d84(0x1ab)](_0x322aa3[_0x5d8d84(0x1b4)][_0x5d8d84(0x196)]);for(const _0x38a175 of _0x34e094[_0x5d8d84(0x1a9)]()){if(!_0x38a175['is'](_0x5d8d84(0x1af),this[_0x5d8d84(0x18a)]))continue;const _0x4f0bff=this[_0x5d8d84(0x1a4)](_0x38a175);_0x40225b[_0x5d8d84(0x19c)](_0x4f0bff)||_0x40225b[_0x5d8d84(0x193)](_0x4f0bff,[]),_0x40225b[_0x5d8d84(0x1b5)](_0x4f0bff)[_0x5d8d84(0x19f)](_0x38a175);}}if(_0x5d8d84(0x1aa)===_0x322aa3[_0x5d8d84(0x1ac)]&&_0x322aa3[_0x5d8d84(0x1b0)]===this[_0x5d8d84(0x18a)]){const _0x51c238=this[_0x5d8d84(0x1a4)]({'getAttribute':_0x3e20da=>_0x322aa3[_0x5d8d84(0x197)][_0x5d8d84(0x1b5)](_0x3e20da)});_0x46b261[_0x5d8d84(0x194)](_0x51c238);}}for(const [_0x13618e,_0x3c4a74]of this[_0x5d8d84(0x1a2)])_0x5d8d84(0x190)===_0x3c4a74[_0x5d8d84(0x19a)][_0x5d8d84(0x1a8)]&&_0x46b261[_0x5d8d84(0x194)](_0x13618e);for(const _0x43c4c1 of _0x46b261)this[_0x5d8d84(0x1a2)][_0x5d8d84(0x19d)](_0x43c4c1);for(const [_0x458d72,_0x137f71]of _0x40225b)this[_0x5d8d84(0x1a2)][_0x5d8d84(0x193)](_0x458d72,_0x137f71[_0x137f71[_0x5d8d84(0x198)]-0x1]);const _0x4275b8=new Set();for(const [_0xb1d6a9,_0x1482f8]of _0x40225b)_0x46b261[_0x5d8d84(0x19c)](_0xb1d6a9)&&(_0x4275b8[_0x5d8d84(0x194)](_0x1482f8[0x0]),_0x1482f8[_0x5d8d84(0x198)]>0x1?_0x40225b[_0x5d8d84(0x193)](_0xb1d6a9,_0x1482f8[_0x5d8d84(0x18d)](0x1)):_0x40225b[_0x5d8d84(0x19d)](_0xb1d6a9),_0x46b261[_0x5d8d84(0x19d)](_0xb1d6a9));return{'removed':Array[_0x5d8d84(0x1b1)](_0x46b261),'inserted':Array[_0x5d8d84(0x1b1)](_0x40225b[_0x5d8d84(0x1a7)]())[_0x5d8d84(0x18b)](),'moved':Array[_0x5d8d84(0x1b1)](_0x4275b8)};}}
|