@ckeditor/ckeditor5-pagination 48.8.1-alpha.2 → 48.8.1-alpha.3

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5223e5}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x11a891,InputNumberView as _0x126376,ButtonView as _0xcb0494}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x2ab310,global as _0x216b40,Rect as _0x28abe5,uid as _0x312852,toUnit as _0x36af81,first as _0x1c2cd9,env as _0x43afb6,ResizeObserver as _0x2de416,keyCodes as _0x48fff6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1884f2}from'es-toolkit/compat';import{IconArrowDown as _0x998fdd,IconArrowUp as _0x468b34}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x5223e5{['_recalculatePageBreaksDebounced']=_0x1884f2(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x2ab310('pagination-config-not-found',this['editor']['config']);const _0x3b931f=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3b931f),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5b5d62,_0x259057,_0x544f31)=>{_0x544f31&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x1a26e1){const _0x107cf0=_0x51acaa([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x511af4=0xc82cb1e,_0x2d17c0=0xc85414e^_0x511af4,_0x59abac=window[_0x51acaa([0x44,0x61,0x74,0x65])][_0x51acaa([0x6e,0x6f,0x77])](),_0x281aeb=_0x1a26e1[_0x51acaa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x567c29=new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdd5cac=>{_0x281aeb[_0x51acaa([0x6f,0x6e,0x63,0x65])](_0x51acaa([0x72,0x65,0x61,0x64,0x79]),_0xdd5cac);}),_0x315959={[_0x51acaa([0x6b,0x74,0x79])]:_0x51acaa([0x45,0x43]),[_0x51acaa([0x75,0x73,0x65])]:_0x51acaa([0x73,0x69,0x67]),[_0x51acaa([0x63,0x72,0x76])]:_0x51acaa([0x50,0x2d,0x32,0x35,0x36]),[_0x51acaa([0x78])]:_0x51acaa([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]),[_0x51acaa([0x79])]:_0x51acaa([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]),[_0x51acaa([0x61,0x6c,0x67])]:_0x51acaa([0x45,0x53,0x32,0x35,0x36])},_0x3c85ad=_0x281aeb[_0x51acaa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51acaa([0x67,0x65,0x74])](_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3395ba(){let _0x22982c,_0x43a2ab=null,_0xa162fc=null;try{if(_0x3c85ad==_0x51acaa([0x47,0x50,0x4c]))return _0x51acaa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22982c=_0x387638(),!_0x22982c)return _0x51acaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22982c[_0x51acaa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa162fc=_0x2185dc(_0x22982c[_0x51acaa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22982c[_0x51acaa([0x6a,0x74,0x69])])),await _0x354884()?_0x19e5a5()?_0x5459a5()?_0x51acaa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cdcef()?(_0x22982c[_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51acaa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43a2ab=_0x1c2a1e(_0x51acaa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bd4ea()):_0x51acaa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51acaa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51acaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51acaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5459a5(){const _0x57030d=[_0x51acaa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51acaa([0x74,0x72,0x69,0x61,0x6c])][_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22982c[_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59abac/0x3e8:0xe10*_0x2d17c0;return _0x22982c[_0x51acaa([0x65,0x78,0x70])]<_0x57030d;}function _0x19e5a5(){const _0x24b7e0=_0x22982c[_0x51acaa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24b7e0&&(!!_0x24b7e0[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51acaa([0x2a]))||!!_0x24b7e0[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51acaa([0x50,0x41,0x47])));}function _0x2cdcef(){const _0x5c7a8c=_0x22982c[_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c7a8c||0x0==_0x5c7a8c[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1acb72}=new URL(window[_0x51acaa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c7a8c[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1acb72))return!0x0;const _0x4ec225=_0x1acb72[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e]));return _0x5c7a8c[_0x51acaa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e866e=>_0x3e866e[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51acaa([0x2a])))[_0x51acaa([0x6d,0x61,0x70])](_0x24f8c7=>_0x24f8c7[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e])))[_0x51acaa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34b9a6=>_0x34b9a6[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ec225[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51acaa([0x6d,0x61,0x70])](_0x2bbc28=>Array(_0x4ec225[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2bbc28[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51acaa([0x66,0x69,0x6c,0x6c])](_0x2bbc28[0x0]===_0x51acaa([0x2a])?_0x51acaa([0x2a]):'')[_0x51acaa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2bbc28))[_0x51acaa([0x73,0x6f,0x6d,0x65])](_0x546461=>_0x4ec225[_0x51acaa([0x65,0x76,0x65,0x72,0x79])]((_0x1d48a1,_0x468bde)=>_0x546461[_0x468bde]===_0x1d48a1||_0x546461[_0x468bde]===_0x51acaa([0x2a])));}function _0x4bd4ea(){return _0x43a2ab&&_0xa162fc?new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dfde5,_0x50e1c3)=>{_0x43a2ab[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x5dfde5,_0x50e1c3),_0xa162fc[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x40f8a1=>{_0x40f8a1!=_0x51acaa([0x56,0x61,0x6c,0x69,0x64])&&_0x5dfde5(_0x40f8a1);},_0x50e1c3);}):_0x43a2ab||_0xa162fc||_0x51acaa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2185dc(_0x300ff6,_0x1d260f){return new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ae69a=>{if(_0x3f9d0b())return _0x2ae69a(_0x51acaa([0x56,0x61,0x6c,0x69,0x64]));_0x2194ef(),_0x281aeb[_0x51acaa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51acaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5924cd=!0x1;const _0x400ce4=_0x312852();function _0x335f54(_0x474735){return!!_0x474735&&(typeof _0x474735===_0x51acaa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x474735===_0x51acaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x474735[_0x51acaa([0x74,0x68,0x65,0x6e])]===_0x51acaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x474735[_0x51acaa([0x63,0x61,0x74,0x63,0x68])]===_0x51acaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b8843(_0x2ef3bb){_0x3bd12c(_0x2ef3bb)[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x38d53a=>{if(!_0x38d53a||_0x38d53a[_0x51acaa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51acaa([0x6f,0x6b]))return _0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xeb3f35(_0x2b4b4b(_0x400ce4+_0x1d260f))!=_0x38d53a[_0x51acaa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51acaa([0x56,0x61,0x6c,0x69,0x64]);})[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x39df0b=>(_0x311ed1(),_0x39df0b),()=>{const _0x3a6b13=_0x505711();return null==_0x3a6b13?(_0x311ed1(),_0x51acaa([0x56,0x61,0x6c,0x69,0x64])):_0x51acaa(_0x59abac-_0x3a6b13>(0x288e4f1e^_0x511af4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x2ae69a)[_0x51acaa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ae69a(_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10865f=0xcb4259e^_0x511af4;function _0x311ed1(){const _0x9405a9=_0x51acaa([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb3f35(_0x2b4b4b(_0x300ff6)),_0x532500=_0x58c40d(_0xeb3f35(window[_0x51acaa([0x4d,0x61,0x74,0x68])][_0x51acaa([0x63,0x65,0x69,0x6c])](_0x59abac/_0x10865f)));window[_0x51acaa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51acaa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9405a9,_0x532500);}function _0x505711(){const _0x294460=_0x51acaa([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb3f35(_0x2b4b4b(_0x300ff6)),_0x2227e0=window[_0x51acaa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51acaa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x294460);return _0x2227e0?window[_0x51acaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58c40d(_0x2227e0),0x10)*_0x10865f:null;}function _0x3bd12c(_0x10c2f6){return new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25cd10,_0xc33626)=>{_0x10c2f6[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x25cd10,_0xc33626),window[_0x51acaa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc33626,0xc831fde^_0x511af4);});}}_0x281aeb[_0x51acaa([0x6f,0x6e])](_0x51acaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xec93a5,_0x1ddfa1)=>{if(_0x1ddfa1[0x0]!=_0x300ff6)return _0x2ae69a(_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ddfa1[0x1]={..._0x1ddfa1[0x1],[_0x51acaa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x400ce4};},{[_0x51acaa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51acaa([0x68,0x69,0x67,0x68])}),_0x281aeb[_0x51acaa([0x6f,0x6e])](_0x51acaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x428468=>{_0x335f54(_0x428468[_0x51acaa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5924cd=!0x0,_0x4b8843(_0x428468[_0x51acaa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51acaa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51acaa([0x6c,0x6f,0x77])}),_0x567c29[_0x51acaa([0x74,0x68,0x65,0x6e])](()=>{_0x5924cd||_0x2ae69a(_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f9d0b(){return _0x281aeb[_0x51acaa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51acaa([0x76,0x69,0x65,0x77])][_0x51acaa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51acaa([0x61,0x75,0x74,0x6f]);}function _0x2194ef(){_0x281aeb[_0x51acaa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51acaa([0x76,0x69,0x65,0x77])][_0x51acaa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51acaa([0x61,0x75,0x74,0x6f]);}}function _0x1c2a1e(_0x58ef10){const _0x11f369=[new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x386d0d=>setTimeout(_0x386d0d,0xc8bf5d2^_0x511af4)),_0x567c29[_0x51acaa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27a335=>{let _0x2c4a79=0x0;_0x281aeb[_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x51acaa([0x6f,0x6e])](_0x51acaa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x548699,_0x1710b5)=>{_0x1710b5[0x0][_0x51acaa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c4a79++,_0x2c4a79==(0xc82cef6^_0x511af4)&&(_0x27a335(),_0x548699[_0x51acaa([0x6f,0x66,0x66])]());});}))];return window[_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51acaa([0x72,0x61,0x63,0x65])](_0x11f369)[_0x51acaa([0x74,0x68,0x65,0x6e])](()=>_0x58ef10);}async function _0x2301f8(){await _0x567c29,_0x281aeb[_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x51acaa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x571eea,_0x281aeb[_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x51acaa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x571eea,_0x281aeb[_0x51acaa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a54b8(_0x31f324){const _0xc6ebbc=_0x1a99ab();_0x281aeb[_0xc6ebbc]=_0x51acaa([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31f324,_0x31f324!=_0x51acaa([0x56,0x61,0x6c,0x69,0x64])&&_0x2301f8();}function _0x1a99ab(){const _0x171d06=window[_0x51acaa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51acaa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51acaa([0x6e,0x6f,0x77])]())[_0x51acaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51acaa([0x2e]),'');let _0x2400f5=_0x51acaa([0x49]);for(let _0x3723c2=0x0;_0x3723c2<_0x171d06[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3723c2+=0x2){let _0x51a098=window[_0x51acaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x171d06[_0x51acaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3723c2,_0x3723c2+0x2));_0x51a098>=_0x107cf0[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51a098-=_0x107cf0[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2400f5+=_0x107cf0[_0x51a098];}return _0x2400f5;}function _0x387638(){const _0x34571b=_0x3c85ad[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e]));if(0x3!=_0x34571b[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e5ca6(_0x34571b[0x1]);function _0x3e5ca6(_0x539c1e){const _0x425e2b=_0x2af9ff(_0x539c1e);return _0x425e2b&&_0x17becf()?_0x425e2b:null;function _0x17becf(){const _0x20d17d=_0x425e2b[_0x51acaa([0x6a,0x74,0x69])],_0x59baa4=window[_0x51acaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20d17d[_0x51acaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20d17d[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11ba74={..._0x425e2b,[_0x51acaa([0x6a,0x74,0x69])]:_0x20d17d[_0x51acaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20d17d[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11ba74[_0x51acaa([0x76,0x63])],_0x2b4b4b(_0x11ba74)==_0x59baa4;}}}async function _0x354884(){let _0x4deb3c=!0x0;try{const _0x363fa2=_0x3c85ad[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e])),[_0x357097,_0x5550b0,_0x441a20]=_0x363fa2;return _0x18295c(_0x357097),await _0x15e4ad(_0x357097,_0x5550b0,_0x441a20),_0x4deb3c;}catch{return!0x1;}function _0x18295c(_0x1aeee1){const _0x37d0b0=_0x2af9ff(_0x1aeee1);_0x37d0b0&&_0x37d0b0[_0x51acaa([0x61,0x6c,0x67])]==_0x51acaa([0x45,0x53,0x32,0x35,0x36])||(_0x4deb3c=!0x1);}async function _0x15e4ad(_0x5953f1,_0x3370f9,_0x1d062c){const _0x2e792e=window[_0x51acaa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51acaa([0x66,0x72,0x6f,0x6d])](_0x176ef8(_0x1d062c),_0x1ae413=>_0x1ae413[_0x51acaa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x325690=new window[(_0x51acaa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51acaa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5953f1+_0x51acaa([0x2e])+_0x3370f9),_0x408940=window[_0x51acaa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51acaa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x408940)return;const _0x38e896=await _0x408940[_0x51acaa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51acaa([0x6a,0x77,0x6b]),_0x315959,{[_0x51acaa([0x6e,0x61,0x6d,0x65])]:_0x51acaa([0x45,0x43,0x44,0x53,0x41]),[_0x51acaa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51acaa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51acaa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x408940[_0x51acaa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51acaa([0x6e,0x61,0x6d,0x65])]:_0x51acaa([0x45,0x43,0x44,0x53,0x41]),[_0x51acaa([0x68,0x61,0x73,0x68])]:{[_0x51acaa([0x6e,0x61,0x6d,0x65])]:_0x51acaa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38e896,_0x2e792e,_0x325690)||(_0x4deb3c=!0x1);}}function _0x2af9ff(_0xc26065){return _0xc26065[_0x51acaa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51acaa([0x65,0x79]))?JSON[_0x51acaa([0x70,0x61,0x72,0x73,0x65])](_0x176ef8(_0xc26065)):null;}function _0x176ef8(_0x1adc43){return window[_0x51acaa([0x61,0x74,0x6f,0x62])](_0x1adc43[_0x51acaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51acaa([0x2b]))[_0x51acaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51acaa([0x2f])));}function _0x2b4b4b(_0x52dbea){let _0x4a4997=0x1505;function _0x56ff9e(_0x5c05af){for(let _0xe5596c=0x0;_0xe5596c<_0x5c05af[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe5596c++){const _0x3cc9a6=_0x5c05af[_0x51acaa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe5596c);_0x4a4997=(_0x4a4997<<0x5)+_0x4a4997+_0x3cc9a6,_0x4a4997&=_0x4a4997;}}function _0x1fd476(_0x4d77ce){Array[_0x51acaa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d77ce)?_0x4d77ce[_0x51acaa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fd476):_0x4d77ce&&typeof _0x4d77ce==_0x51acaa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51acaa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d77ce)[_0x51acaa([0x73,0x6f,0x72,0x74])]()[_0x51acaa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ee827,_0x30a48a])=>{_0x56ff9e(_0x5ee827),_0x1fd476(_0x30a48a);}):_0x56ff9e(window[_0x51acaa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d77ce));}return _0x1fd476(_0x52dbea),_0x4a4997>>>0x0;}function _0xeb3f35(_0x6e9d04){return _0x6e9d04[_0x51acaa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51acaa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51acaa([0x30]));}function _0x58c40d(_0x42b3be){return _0x42b3be[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51acaa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51acaa([0x6a,0x6f,0x69,0x6e])]('');}function _0x571eea(){}function _0x51acaa(_0x46741f){return _0x46741f['map'](_0x8ff18f=>String['fromCharCode'](_0x8ff18f))['join']('');}_0x4a54b8(await _0x3395ba());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x2b65b9=this['editor'],_0x4ef286=_0x2b65b9['editing']['view'],_0xbfa320=this['_getAttachedDomRoot']();if(!_0xbfa320||0x0===_0xbfa320['childElementCount'])return void _0x2b65b9['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x4024ea,pageHeight:_0x2fc0df}=_0x2b65b9['config']['get']('pagination'),{top:_0x2d4cac,left:_0x2349dc,bottom:_0x26fcba,right:_0xcc0d26}=this['_configuredPaddings'];this['_pagesContainer']=new _0x11a891(_0x2b65b9['locale']);const _0xce9bcd=this['_pagesContainer'];_0xce9bcd['set']('class',''),_0xce9bcd['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x4024ea,'width':_0x4024ea,'height':'calc(\x20'+_0x2fc0df+'\x20-\x20'+_0x2d4cac+'\x20-\x20'+_0x26fcba+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0xcc0d26+'\x200\x20'+_0x2349dc,'columnGap':'calc('+_0x2349dc+'\x20+\x20'+_0xcc0d26+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0xce9bcd['bindTemplate']['to']('class')}}),_0xce9bcd['render'](),_0xbfa320['parentNode']['insertBefore'](_0xce9bcd['element'],_0xbfa320['nextSibling']),this['listenTo'](_0x4ef286,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2a605f of this['editor']['editing']['view']['domRoots']['values']())if(_0x2a605f['ownerDocument']['body']['contains'](_0x2a605f))return _0x2a605f;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x11a9bf=this['editor']['editing']['view'],_0x5c0c55=this['_pagesContainer'],_0x1d055f=this['_getAttachedDomRoot']();if(!_0x1d055f)return Promise['resolve']();for(_0x5c0c55['class']=['ck-reset','ck-pagination-view',..._0x1d055f['classList']]['join']('\x20');_0x5c0c55['element']['firstChild'];)_0x5c0c55['element']['firstChild']['remove']();const _0x18eb38=Array['from'](_0x11a9bf['domRoots']);_0x18eb38['sort'](([,_0x1072d7],[,_0x55c734])=>_0x1072d7['compareDocumentPosition'](_0x55c734)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x4560fb,_0x4adb5e]of _0x18eb38){const _0x34636f=_0x4adb5e['cloneNode'](!0x0);'attributeStyleMap'in _0x34636f&&_0x34636f['attributeStyleMap']['clear'](),_0x34636f['dataset']['rootName']=_0x4560fb,_0x34636f['className']='ck-content\x20ck-pagination_enabled',_0x34636f['removeAttribute']('id'),_0x34636f['tabIndex']=-0x1,_0x5c0c55['element']['append'](_0x34636f);}const _0x364513=Array['from'](_0x5c0c55['element']['querySelectorAll']('img'));return function(_0x317fda){return Promise['all'](_0x317fda['map'](_0x2e29d6=>Promise['race']([b(_0x2e29d6),k(0x3e8)])));}(_0x364513)['then'](()=>{for(const _0x2a283e of _0x364513['filter'](_0xe6a6c7=>!_0xe6a6c7['closest']('table')))if(_0x2a283e['offsetParent']){const _0x454ba3=_0x216b40['window']['getComputedStyle'](_0x2a283e),_0x154042=_0x216b40['document']['createElement']('span');for(const _0x38062a of _0x454ba3)_0x154042['style']['setProperty'](_0x38062a,_0x454ba3[_0x38062a]);_0x154042['style']['backgroundImage']='url(\x20'+_0x2a283e['src']+'\x20)',_0x154042['style']['breakInside']='avoid','PICTURE'==_0x2a283e['parentElement']?.['tagName']?_0x2a283e['parentElement']['replaceWith'](_0x154042):_0x2a283e['replaceWith'](_0x154042);}return new Promise(_0x284b93=>_0x216b40['window']['requestAnimationFrame'](()=>_0x284b93()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0xeef435=this['_pagesContainer']['element'];if(!_0xeef435['ownerDocument']['body']['contains'](_0xeef435))return;const _0x2c1649=new _0x28abe5(_0xeef435)['excludeScrollbarsAndBorders'](),_0xb098e9=Math['floor'](_0x2c1649['width']+0x64),_0x30d2d9=L(_0xeef435,Math['floor'](_0x2c1649['left']-_0xeef435['scrollLeft']),_0xb098e9,_0x2c1649['height'])['map'](_0x3985af=>this['_mapPageStarterInfoToPageBreakInfo'](_0x3985af))['filter'](_0x36fc1c=>!0x1!==_0x36fc1c);_0x30d2d9['every'](_0x2134d8=>!!_0x2134d8)&&(this['pageBreaks']=_0x30d2d9);}['_mapPageStarterInfoToPageBreakInfo'](_0x57de9b){const _0x446c1e=this['editor']['editing']['view'],_0x245c70=this['editor']['editing']['mapper'],_0x4b696d=_0x446c1e['domConverter'],_0x40651e=_0x57de9b['path']['shift'](),_0x24c667=this['_pagesContainer']['element']['childNodes'][_0x40651e]['dataset']['rootName'],_0xfa8917=_0x446c1e['getDomRoot'](_0x24c667);if(!_0xfa8917)return null;const _0x1614b0=function(_0x230167,_0x35036d){let _0x4812af=_0x230167;for(const _0x52151a of _0x35036d['path']){if(!_0x4812af)return null;_0x4812af=_0x4812af['childNodes'][_0x52151a];}return _0x4812af;}(_0xfa8917,_0x57de9b);if(!_0x1614b0)return null;const _0x22acb1=_0x4b696d['domPositionToView'](_0x1614b0,_0x57de9b['textOffset']||0x0);return _0x22acb1?'manual'==_0x57de9b['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x22acb1,_0x1614b0):'text'==_0x57de9b['type']&&_0x245c70['toModelPosition'](_0x22acb1)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x22acb1,_0x1614b0,_0x57de9b['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x22acb1,_0x1614b0,_0x57de9b['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x594953,_0x3808c4){const _0x3dbd22=this['editor']['model'],_0x40d581=this['editor']['editing']['mapper']['toModelElement'](_0x594953['parent']),_0x4a94ad=_0x3dbd22['createRangeOn'](_0x40d581);return new PageBreakInfo({'type':'manual','modelRange':_0x4a94ad,'domNode':_0x3808c4,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x523ab0,_0x1ee5bc,_0x1c8ca3){const _0x3a5132=this['editor']['model'],_0x44f748=this['editor']['editing']['mapper'],_0x11bbb2=this['editor']['editing']['view']['domConverter'];if(_0x1c8ca3>=_0x1ee5bc['length'])return null;const _0x46a766=_0x44f748['toModelPosition'](_0x523ab0),_0x2955bb=_0x3a5132['createRange'](_0x46a766),_0x504896=_0x44f748['findMappedViewAncestor'](_0x523ab0),_0x11c930=_0x11bbb2['mapViewToDom'](_0x504896);return new PageBreakInfo({'type':'text','modelRange':_0x2955bb,'domNode':_0x1ee5bc,'offset':w(_0x1ee5bc,_0x1c8ca3,_0x11c930)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x3b2608,_0x56f62c,_0x519f70){const _0x4eb815=this['editor']['model'],_0x4c51e4=this['editor']['editing'],_0x41f661=_0x4c51e4['mapper'],_0xe6e139=_0x4c51e4['view']['domConverter'],_0x462a0e=_0x41f661['findMappedViewAncestor'](_0x3b2608),_0x5188d4=_0x41f661['toModelElement'](_0x462a0e);if(!_0x5188d4||_0x5188d4['is']('element','$root'))return!0x1;const _0x57a8ce=function(_0x50057a){const _0x5362dd=_0x50057a['parent'],_0x1b5fd3=_0x5362dd['root']['document']['model'],_0xeca40e=_0x5362dd['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0xf2f2b4=null;for(const _0x29d881 of _0xeca40e){if(_0x29d881['is']('rootElement'))return _0xf2f2b4;if(!_0x1b5fd3['createPositionBefore'](_0x29d881)['isTouching'](_0x50057a))return _0xf2f2b4;_0xf2f2b4=_0x29d881;}}(_0x4eb815['createPositionBefore'](_0x5188d4)),_0x2d16c0=_0x57a8ce||_0x5188d4;let _0x2d6e5a=_0x41f661['toViewElement'](_0x2d16c0),_0x3e1288=_0x4eb815['createRangeOn'](_0x2d16c0);const _0x47d356=_0x4eb815['createPositionBefore'](_0x2d16c0)['nodeBefore'];if(_0x47d356&&_0x47d356['is']('element','imageBlock')){const _0x580563=_0x41f661['toViewElement'](_0x47d356),_0x3a29b3=_0xe6e139['mapViewToDom'](_0x580563),_0xb1d99c=_0x216b40['window']['getComputedStyle'](_0x3a29b3)['float'];'left'!=_0xb1d99c&&'right'!=_0xb1d99c||(_0x3e1288=_0x4eb815['createRangeOn'](_0x47d356));}for(;_0x2d6e5a['parent']!==_0x2d6e5a['root']&&0x0===_0x2d6e5a['index'];)_0x2d6e5a=_0x2d6e5a['parent'];const _0x97be4a=new _0x28abe5(S(_0x56f62c)?_0x56f62c:y(_0x56f62c)),_0x41952b=_0x519f70?_0x97be4a['height']-_0x519f70:0x0,_0x255235=_0xe6e139['mapViewToDom'](_0x2d6e5a),_0x245fb5=new _0x28abe5(_0x255235);return new PageBreakInfo({'type':'element','modelRange':_0x3e1288,'domNode':_0x255235,'offset':Math['round'](_0x41952b)||_0x462a0e!=P(_0x3b2608)?_0x41952b+_0x97be4a['top']-_0x245fb5['top']:0x0});}get['_configuredPaddings'](){const _0x77d441=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x77d441);}static['_findPageStarterInfos'](_0x101f12,_0x4eb636,_0x358d59,_0x35f53b,_0x2b408c){return L(_0x101f12,_0x4eb636,_0x358d59,_0x35f53b,_0x2b408c);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x50ef77,modelRange:_0x2622ca,domNode:_0x4fde96,offset:_0x399056}){this['type']=_0x50ef77,this['modelRange']=_0x2622ca,this['_domNode']=_0x4fde96,this['_offset']=_0x399056;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x57696b=new _0x28abe5(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x57696b['top']+_0x57696b['height']/0x2:_0x57696b['top']+this['_offset'];}}function w(_0x3f9978,_0x4ccf76,_0x2a397c){const _0x33bd35=y(_0x3f9978),_0x48d448=function(_0x56b22b){const _0x15a540=_0x216b40['document']['createRange']();return _0x15a540['selectNodeContents'](_0x56b22b),_0x15a540;}(_0x2a397c);let _0x307cbc;_0x307cbc=0x0==_0x4ccf76?x(_0x48d448['startContainer'],_0x48d448['startOffset'],_0x3f9978['parentNode'],Array['from'](_0x3f9978['parentNode']['childNodes'])['indexOf'](_0x3f9978)):x(_0x48d448['startContainer'],_0x48d448['startOffset'],_0x3f9978,_0x4ccf76);const _0x4ace33=x(_0x3f9978,_0x4ccf76,_0x48d448['endContainer'],_0x48d448['endOffset']),_0x5828a6=new _0x28abe5(_0x307cbc)['bottom'];return(new _0x28abe5(_0x4ace33)['top']+_0x5828a6)/0x2-new _0x28abe5(_0x33bd35)['top'];}function P(_0x28d1c0){let _0x4b62d0=_0x28d1c0['parent'];for(;_0x4b62d0['is']('$text')||_0x4b62d0['is']('attributeElement');)_0x4b62d0=_0x4b62d0['parent'];return _0x4b62d0;}function b(_0x2870c6){return _0x2870c6['hasAttribute']('width')&&_0x2870c6['hasAttribute']('height')?Promise['resolve']():new Promise(_0x2f5d89=>{function _0x5cdd02(){_0x2870c6['removeEventListener']('load',_0x5cdd02),_0x2870c6['removeEventListener']('error',_0x5cdd02),_0x2f5d89();}_0x2870c6['complete']?_0x2f5d89():(_0x2870c6['addEventListener']('load',_0x5cdd02),_0x2870c6['addEventListener']('error',_0x5cdd02));});}function k(_0x839a02){return new Promise(_0x5eb2b5=>setTimeout(_0x5eb2b5,_0x839a02));}function y(_0x5e2a05){const _0x7fb8c4=_0x216b40['document']['createRange']();return _0x7fb8c4['selectNode'](_0x5e2a05),_0x7fb8c4;}function v(_0x1e95c6,_0x59717d,_0x1c26f5){const _0x3c9caa=_0x216b40['document']['createRange']();return _0x3c9caa['setStart'](_0x1e95c6,_0x59717d),_0x3c9caa['setEnd'](_0x1e95c6,_0x1c26f5),_0x3c9caa;}function x(_0x3fbdfb,_0x2b01ad,_0x47d3e5,_0x50e196){const _0x372ba4=_0x216b40['document']['createRange']();return _0x372ba4['setStart'](_0x3fbdfb,_0x2b01ad),_0x372ba4['setEnd'](_0x47d3e5,_0x50e196),_0x372ba4;}function L(_0x1b39b8,_0x2fd176,_0xf8f4d2,_0x4feb58,_0x22ae20){const _0x3dd7aa=[];for(const [_0x568f07,_0x4b385d]of _0x1b39b8['childNodes']['entries']()){let _0x1bdcc8=[];S(_0x4b385d)&&_0x4b385d['offsetParent']&&['static','relative']['includes'](_0x216b40['window']['getComputedStyle'](_0x4b385d)['position'])?_0x1bdcc8=N(_0x4b385d,_0x568f07,_0x2fd176,_0xf8f4d2,_0x4feb58,_0x22ae20):I(_0x4b385d)&&(_0x1bdcc8=_(_0x4b385d,_0x568f07,_0x2fd176,_0xf8f4d2,_0x22ae20)),_0x1bdcc8['length']&&(_0x3dd7aa['push'](..._0x1bdcc8),_0x2fd176+=_0x1bdcc8['length']*_0xf8f4d2,_0x22ae20=!0x1);}return _0x3dd7aa;}function N(_0x1bd631,_0x58a61d,_0x5b7a73,_0x21a50d,_0x38ad18,_0x2811ff){const _0x171013=[];var _0x58b0b9;if((_0x58b0b9=_0x1bd631['previousSibling'])&&S(_0x58b0b9)&&Boolean(_0x58b0b9['classList']['contains']('page-break')||_0x58b0b9['closest']('.page-break'))&&(_0x171013['push']({'type':'manual','offset':0x0,'path':[_0x58a61d-0x1]}),_0x2811ff=!0x0),'table-row'==_0x216b40['window']['getComputedStyle'](_0x1bd631)['display']){let _0x38db5f=0x0,_0x1ecb97=!0x1;for(const _0x1d49f4 of _0x1bd631['getClientRects']())_0x38db5f+=_0x1d49f4['height'],_0x1d49f4['left']>=_0x5b7a73&&(_0x1ecb97=!0x0);if(_0x38db5f<_0x38ad18&&_0x1ecb97)return _0x2811ff||_0x171013['push']({'type':'element','offset':0x0,'path':[_0x58a61d]}),_0x171013;}const _0x13c827=_0x1bd631['closest']('figure.image');if(_0x13c827&&function(_0x1cc92f){let _0x5c1828=!0x1;const _0x244343=_0x1cc92f['parentElement'],_0x32b910=_0x244343['dataset']['rootName'],_0x4ec178=_0x1cc92f['nextElementSibling'],_0x232901=_0x1cc92f['previousElementSibling'],_0x7a4975=_0x4ec178&&_0x216b40['window']['getComputedStyle'](_0x4ec178)['float'],_0x5029e5=_0x4ec178&&'ck-fake-selection-container'===_0x4ec178['className'];!_0x32b910||_0x4ec178||_0x232901||(_0x5c1828=!0x0),_0x32b910&&!_0x232901&&_0x5029e5&&(_0x5c1828=!0x0),_0x32b910&&!_0x232901&&'none'!==_0x7a4975&&(_0x5c1828=!0x0);if(_0x5c1828)return!0x1;return!0x0;}(_0x13c827)){const _0x5bf7b4=_0x216b40['window']['getComputedStyle'](_0x13c827)['float'];if('left'==_0x5bf7b4||'right'==_0x5bf7b4)return _0x171013;}const _0x3e22a0=L(_0x1bd631,_0x5b7a73,_0x21a50d,_0x38ad18,_0x2811ff);if(_0x3e22a0['length']){for(const _0x1dd343 of _0x3e22a0)_0x171013['push']({'type':_0x1dd343['type'],'offset':_0x1dd343['offset'],'textOffset':_0x1dd343['textOffset'],'path':[_0x58a61d,..._0x1dd343['path']]}),_0x5b7a73+=_0x21a50d,_0x2811ff=!0x1;return _0x171013;}return _0x171013['push'](...function(_0x222c52,_0x3fda99,_0x9c14da,_0x19f336,_0x3b0f1f){const _0x20f93a=[];if('table-cell'==_0x216b40['window']['getComputedStyle'](_0x222c52)['display'])return[];const _0x1fa372=[];for(const _0x362f01 of _0x222c52['getClientRects']())if(_0x362f01['left']>=_0x9c14da){for(const _0xc3fbda of _0x1fa372)_0xc3fbda['height']+=_0x362f01['height'];_0x1fa372['push']({'height':_0x362f01['height']}),_0x9c14da+=_0x19f336;}for(const _0x113532 of _0x1fa372)_0x3b0f1f||_0x20f93a['push']({'type':'element','offset':_0x113532['height'],'textOffset':0x0,'path':[_0x3fda99]}),_0x3b0f1f=!0x1;return _0x20f93a;}(_0x1bd631,_0x58a61d,_0x5b7a73,_0x21a50d,_0x2811ff)),_0x171013;}function _(_0xcc0ca3,_0x449763,_0x15a5e4,_0x1b1c0f,_0x481ad1){const _0xe5376a=y(_0xcc0ca3),_0x1fb05c=[];let _0x582477=0x0;for(const _0x240261 of _0xe5376a['getClientRects']())if(_0x240261['left']>=_0x15a5e4){const _0x50c86d=R(_0xcc0ca3,_0x582477,_0x15a5e4,_0x1b1c0f);_0x481ad1||_0x1fb05c['push']({'type':'text','path':[_0x449763],'textOffset':_0x50c86d}),_0x582477=_0x50c86d,_0x15a5e4+=_0x1b1c0f,_0x481ad1=!0x1;}return _0x1fb05c;}function R(_0x355846,_0x5e3521,_0x28a3a3,_0x140d7b){let _0x1dbd1a=_0x5e3521,_0x55b2e0=_0x355846['length'];for(;_0x55b2e0-_0x1dbd1a>0x1;){const _0x119731=Math['ceil']((_0x1dbd1a+_0x55b2e0)/0x2);E(v(_0x355846,_0x1dbd1a,_0x119731),_0x28a3a3,_0x140d7b)?_0x55b2e0=_0x119731:_0x1dbd1a=_0x119731;}return _0x1dbd1a;}function E(_0x39243c,_0x1001fc,_0x28c229){for(const _0x5af014 of _0x39243c['getClientRects']())if(_0x5af014['left']>=_0x1001fc&&_0x5af014['left']<_0x1001fc+_0x28c229)return!0x0;return!0x1;}function S(_0x53209b){return _0x53209b['nodeType']==Node['ELEMENT_NODE'];}function I(_0x35d04e){return _0x35d04e['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x36af81('px');class LineView extends _0x11a891{constructor(){super();const _0x514de7=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x514de7['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x514de7['if']('isVisible','ck-hidden',_0x5ebb0b=>!_0x5ebb0b)],'style':{'left':_0x514de7['to']('left',_0x47baae=>B(_0x47baae)),'top':_0x514de7['to']('top',_0x9008a5=>B(_0x9008a5)),'width':_0x514de7['to']('width',_0x251957=>B(_0x251957))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x27267c){this['_viewCollection']=_0x27267c['ui']['view']['body'];}['destroy'](){for(const _0x206373 of this['_hiddenLines'])_0x206373['destroy']();}['cleanLines'](){for(const _0x23d114 of this['_visibleLines'])_0x23d114['isVisible']=!0x1,this['_hiddenLines']['add'](_0x23d114);this['_visibleLines']['clear']();}['showLine'](_0x5cd334,_0x5e7541,_0x6be7d2,_0x2f225b){let _0x2173cd;this['_hiddenLines']['size']?(_0x2173cd=_0x1c2cd9(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x2173cd)):_0x2173cd=new LineView(),_0x2173cd['set']({'pageNumber':_0x2f225b,'left':_0x5cd334,'top':_0x5e7541,'width':_0x6be7d2}),_0x2173cd['isVisible']=!0x0,this['_viewCollection']['has'](_0x2173cd)||this['_viewCollection']['add'](_0x2173cd),this['_visibleLines']['add'](_0x2173cd);}['setViewCollection'](_0x17640d){for(const _0x2a8389 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x2a8389)&&this['_viewCollection']['remove'](_0x2a8389);this['_viewCollection']=_0x17640d;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x5223e5{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x25a682,_0x4fa39e,_0x37a8fa)=>{_0x37a8fa||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x37a8fa);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x32359d){if(!this['isEnabled'])return;const _0x4c0739=_0x32359d>0x1?this['_getPageBreakLineOffset'](_0x32359d-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x4c0739-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x43afb6['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4a5698=this['editor'],_0x1b77a7=this['_getAttachedDomRoot']();_0x1b77a7?(this['_scrollableEditingRootDomAncestor']&&_0x4a5698['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x364936){let _0x585ae1=_0x364936;do{_0x585ae1=_0x585ae1['parentElement'];const _0x1760f5=_0x216b40['window']['getComputedStyle'](_0x585ae1)['overflowY'];if('auto'==_0x1760f5||'scroll'==_0x1760f5)break;}while('BODY'!=_0x585ae1['tagName']);return _0x585ae1;}(_0x1b77a7),_0x4a5698['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x2de416(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4a5698['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2b01a4=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2b01a4['ui']['view']['listenTo'](_0x216b40['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2b01a4['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x1592aa of this['editor']['editing']['view']['domRoots']['values']())if(_0x1592aa['ownerDocument']['body']['contains'](_0x1592aa))return _0x1592aa;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x345ec2=this['_getAttachedDomRoot'](),_0x24b6b2=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x345ec2||0x1==_0x24b6b2['length'])return void(this['pageNumber']=0x1);const _0x1d959e=new _0x28abe5(_0x345ec2)['excludeScrollbarsAndBorders'](),_0x36bc50=new _0x28abe5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x43aa5a=_0x36bc50['top']+_0x36bc50['height']/0x3;let _0x4f07ee=!0x1;const _0x5e8c46=[];for(let _0x3cc59f=0x1;_0x3cc59f<_0x24b6b2['length'];_0x3cc59f++){const _0x48e0fe=this['_getPageBreakLineOffset'](_0x3cc59f,_0x36bc50);if(!_0x48e0fe)continue;const _0xaa1d24=_0x36bc50['top']+_0x48e0fe-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x5e8c46['push']({'pageOffsetTop':_0xaa1d24,'domRootRect':_0x1d959e,'domScrollableRect':_0x36bc50,'pageNumber':_0x3cc59f}),_0xaa1d24>_0x43aa5a&&!_0x4f07ee&&(this['pageNumber']=_0x3cc59f,_0x4f07ee=!0x0);}this['_renderPageBreakLines'](_0x5e8c46),_0x4f07ee||(this['pageNumber']=_0x24b6b2['length']);}['_renderPageBreakLines'](_0x63d846){const {scrollX:_0x4a9690,scrollY:_0x282209}=_0x216b40['window'];if(_0x63d846['length']){for(const {domScrollableRect:_0x5dd6ac,pageOffsetTop:_0x1f43b1,domRootRect:_0x1e8d29,pageNumber:_0x1685bf}of _0x63d846)_0x5dd6ac['top']<_0x1f43b1&&_0x1f43b1<_0x5dd6ac['bottom']&&this['linesRepository']['showLine'](_0x1e8d29['left']+_0x4a9690,_0x1f43b1+_0x282209,_0x1e8d29['width'],_0x1685bf+0x1);}}['_getPageBreakLineOffset'](_0x2baa9a,_0xdfdf4f=null){const _0x9f8958=this['_paginationLookupPlugin']['pageBreaks'][_0x2baa9a]['offset'];return _0x9f8958?(_0xdfdf4f||(_0xdfdf4f=new _0x28abe5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x9f8958-_0xdfdf4f['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x527ec9,_0x105f8a=!0x0){const _0x59fc0f=this['editor']['editing']['view'];_0x59fc0f['change'](_0x5875dc=>{for(const _0x461b0b of _0x59fc0f['document']['roots'])_0x105f8a?_0x5875dc['addClass'](_0x527ec9,_0x461b0b):_0x5875dc['removeClass'](_0x527ec9,_0x461b0b);});}}function O(_0xa54d8c,_0x2625f8,..._0x29df44){const t=_0xa54d8c['t'];switch(_0x2625f8){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x29df44);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x2625f8;}}class PaginationEditing extends _0x5223e5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0xb345cf=this['editor']['plugins']['get']('Pagination'),_0x40e31f=this['editor']['plugins']['get'](PaginationLookup),_0x38b980=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0xb345cf),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x38b980),this['listenTo'](_0x40e31f,'change:pageBreaks',(_0x4800bd,_0x3e0578,_0x5966f0,_0x131b73)=>{this['totalPages']=_0x5966f0['length'],this['_updatePageBreakMarkers'](_0x5966f0,_0x131b73);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b532f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x528ac8;for(const _0x41b153 in _0x1b532f){const _0x3ba189=_0x41b153,_0x3adb1f=_0x1b532f[_0x3ba189];if('paginationLicenseKeyValid'==_0x3adb1f||'paginationLicenseKeyInvalid'==_0x3adb1f||'paginationLicenseKeyExpired'==_0x3adb1f||'paginationLicenseKeyDomainLimit'==_0x3adb1f||'paginationLicenseKeyNotAllowed'==_0x3adb1f||'paginationLicenseKeyEvaluationLimit'==_0x3adb1f||'paginationLicenseKeyUsageLimit'==_0x3adb1f){delete _0x1b532f[_0x3ba189],_0x528ac8=_0x3adb1f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x528ac8&&_0x1b532f['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x528ac8&&_0x1b532f['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x528ac8&&_0x1b532f['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x528ac8&&_0x1b532f['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x528ac8&&_0x1b532f['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x528ac8&&_0x1b532f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x1d0230){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x1d0230));}['moveSelectionToPage'](_0x189505){if(!this['isEnabled'])return;const _0x46fa10=this['editor'],_0x3ef5e1=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x189505-0x1];_0x3ef5e1&&_0x46fa10['model']['change'](_0xf019dc=>{switch(_0x3ef5e1['type']){case'manual':{const _0x4a9b08=_0x46fa10['model']['schema']['getNearestSelectionRange'](_0x3ef5e1['modelRange']['end'],'forward');_0xf019dc['setSelection'](_0x4a9b08);break;}case'element':{const _0xce9aeb=_0x46fa10['model']['schema']['getNearestSelectionRange'](_0x3ef5e1['modelRange']['start'],'forward');_0xf019dc['setSelection'](_0xce9aeb);break;}case'text':{const _0x482d96=_0x3ef5e1['modelRange']['start'];if(_0x482d96['textNode']&&'\x20'===_0x482d96['textNode']['data'][_0x482d96['offset']]){const _0x2d4aeb=_0xf019dc['createPositionAt'](_0x482d96['parent'],_0x482d96['offset']+0x1);_0xf019dc['setSelection'](_0x2d4aeb);}else _0xf019dc['setSelection'](_0x3ef5e1['modelRange']);}}_0x46fa10['editing']['view']['focus']();});}['goToNextPage'](){const _0x48d820=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x48d820),this['scrollToPage'](_0x48d820);}['goToPreviousPage'](){const _0xb108aa=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0xb108aa),this['scrollToPage'](_0xb108aa);}['_updatePageBreakMarkers'](_0x1bcfe4,_0xfa07ea){const _0x21b720=this['editor']['model'];this['isEnabled']&&_0x21b720['change'](_0xfb616b=>{for(let _0x3d622c=0x1;_0x3d622c<_0x1bcfe4['length'];_0x3d622c++){const _0x1b68d6=_0x1bcfe4[_0x3d622c]['modelRange'],_0xadb3bb='pagination:'+(_0x3d622c+0x1);_0x21b720['markers']['has'](_0xadb3bb)?_0xfb616b['updateMarker'](_0xadb3bb,{'range':_0x1b68d6}):_0xfb616b['addMarker'](_0xadb3bb,{'range':_0x1b68d6,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x1d2577=_0x1bcfe4['length'];_0x1d2577<_0xfa07ea['length'];_0x1d2577++){const _0x25bf14='pagination:'+(_0x1d2577+0x1);_0x21b720['markers']['has'](_0x25bf14)&&_0xfb616b['removeMarker'](_0x25bf14);}});}['_setUpDataDowncastConversion'](){const _0x5d132e='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c93fd=>{_0x1c93fd['on']('addMarker:'+_0x5d132e,(_0x3ab8f4,{markerRange:_0xd7e2d5,markerName:_0x57bcf2},_0xbd2cfd)=>{if(!_0xbd2cfd['options']['pagination'])return;if(!_0xbd2cfd['consumable']['consume'](_0xd7e2d5,_0x3ab8f4['name']))return;const _0x584c90=_0xd7e2d5['getContainedElement']();let _0x784d97=_0x584c90?_0xbd2cfd['mapper']['toViewElement'](_0x584c90):null;if(!_0x784d97){const _0x1f064b=_0xd7e2d5['start'];if(_0xbd2cfd['schema']['checkChild'](_0x1f064b,'$text')){const _0x5e7f18=_0xbd2cfd['mapper']['toViewPosition'](_0x1f064b);_0x784d97=_0xbd2cfd['writer']['createContainerElement']('span'),_0x784d97['getFillerOffset']=()=>null,_0xbd2cfd['writer']['insert'](_0x5e7f18,_0x784d97);}else{const _0x3db309=_0x1f064b['nodeAfter'];_0x784d97=_0xbd2cfd['mapper']['toViewElement'](_0x3db309);}}for(;_0x784d97['parent']!==_0x784d97['root']&&0x0===_0x784d97['index'];)_0x784d97=_0x784d97['parent'];const _0x4c65b1=_0x57bcf2['substring'](0xb);_0x784d97['hasClass']('page-break')||(_0xbd2cfd['writer']['setStyle']('page-break-before','always',_0x784d97),_0xbd2cfd['writer']['setAttribute']('data-pagination-page',_0x4c65b1,_0x784d97),_0xbd2cfd['mapper']['bindElementToMarker'](_0x784d97,_0x57bcf2)),_0x3ab8f4['stop']();});});}['_setupKeystrokes'](){const _0x3705ee=this['editor'];_0x3705ee['keystrokes']['set']('Shift+Pageup',(_0x29d4ca,_0x51afab)=>{this['goToPreviousPage'](),_0x51afab();}),_0x3705ee['keystrokes']['set']('Shift+Pagedown',(_0x1cce9a,_0x33422c)=>{this['goToNextPage'](),_0x33422c();}),_0x3705ee['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x3705ee['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x3705ee['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x3705ee['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x563ffb){return _0x563ffb<0x1&&(_0x563ffb=0x1),_0x563ffb>this['totalPages']&&(_0x563ffb=this['totalPages']),_0x563ffb;}}class PageNavigatorView extends _0x11a891{['pageNumberView'];constructor(_0x2d4fc3){super(_0x2d4fc3);const _0x23b9cb=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x126376(_0x2d4fc3,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x16a1c7=>O(_0x2d4fc3,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x16a1c7)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x10fc48=>!_0x10fc48),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x23b9cb['if']('isEnabled','ck-disabled',_0x35145f=>!_0x35145f)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x23b9cb['to']('totalPages')}]}]});}['render'](){super['render']();const _0x3efbb3=this['pageNumberView']['element'],_0x40c21a=_0x4a3919=>{this['pageNumberView']['element']['value']=String(_0x4a3919);};_0x40c21a(this['pageNumber']),this['on']('change:pageNumber',(_0x299d56,_0x4f9b65,_0x5ddcb2)=>{_0x40c21a(_0x5ddcb2);}),this['listenTo'](_0x3efbb3,'keydown',(_0x16159f,_0x1ee18c)=>{if('ArrowUp'===_0x1ee18c['key']||'ArrowDown'===_0x1ee18c['key'])return void _0x1ee18c['stopPropagation']();if(_0x1ee18c['keyCode']!==_0x48fff6['enter'])return;_0x1ee18c['preventDefault']();const _0x442a1b=_0x3efbb3['valueAsNumber'];Number['isNaN'](_0x442a1b)?_0x3efbb3['value']=String(this['pageNumber']):(_0x3efbb3['checkValidity']()?this['pageNumber']=_0x442a1b:_0x442a1b>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x3efbb3['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x3efbb3['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x3efbb3,'blur',()=>{_0x3efbb3['value']=String(this['pageNumber']);}),this['listenTo'](_0x3efbb3,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x5223e5{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a344f=this['editor'],_0x39a600=_0x2a344f['plugins']['get']('PaginationEditing');_0x2a344f['ui']['componentFactory']['add']('pageNavigation',_0x1673b8=>{const _0x2f9911=new PageNavigatorView(_0x1673b8);return _0x2f9911['bind']('pageNumber')['to'](_0x39a600),_0x2f9911['bind']('totalPages')['to'](_0x39a600),_0x2f9911['bind']('isEnabled')['to'](_0x39a600),_0x2f9911['on']('navigation',(_0x156721,_0x2c7ded)=>{_0x39a600['moveSelectionToPage'](_0x2c7ded),_0x39a600['scrollToPage'](_0x2c7ded);}),_0x2f9911;}),_0x2a344f['ui']['componentFactory']['add']('nextPage',_0x2a7eff=>{const _0x4dd408=new _0xcb0494(_0x2a7eff);return _0x4dd408['isEnabled']=!0x0,_0x4dd408['label']=O(_0x2a344f['locale'],'Go\x20to\x20next\x20page'),_0x4dd408['icon']=_0x998fdd,_0x4dd408['tooltip']=!0x0,_0x4dd408['keystroke']='Shift+PageDown',_0x4dd408['bind']('isEnabled')['to'](_0x39a600),this['listenTo'](_0x4dd408,'execute',()=>{_0x39a600['goToNextPage']();}),_0x4dd408;}),_0x2a344f['ui']['componentFactory']['add']('previousPage',_0x210854=>{const _0x8d7fb8=new _0xcb0494(_0x210854);return _0x8d7fb8['isEnabled']=!0x0,_0x8d7fb8['label']=O(_0x2a344f['locale'],'Go\x20to\x20previous\x20page'),_0x8d7fb8['icon']=_0x468b34,_0x8d7fb8['tooltip']=!0x0,_0x8d7fb8['keystroke']='Shift+PageUp',_0x8d7fb8['bind']('isEnabled')['to'](_0x39a600),this['listenTo'](_0x8d7fb8,'execute',()=>{_0x39a600['goToPreviousPage']();}),_0x8d7fb8;});}}class Pagination extends _0x5223e5{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x19d03f){super(_0x19d03f),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2f2768=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x2f2768),this['bind']('totalPages')['to'](_0x2f2768),_0x43afb6['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x7fbc7d){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x7fbc7d);}}export{Pagination,PaginationRenderer};
23
+ import{Plugin as _0x5a6342}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x15c440,InputNumberView as _0x5b714e,ButtonView as _0x290e36}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5bc2f8,global as _0x5bedf9,Rect as _0xda9770,uid as _0x25826b,toUnit as _0x1647c0,first as _0x16a122,env as _0x3ff4f7,ResizeObserver as _0x3114c4,keyCodes as _0x5b09aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x40b9b0}from'es-toolkit/compat';import{IconArrowDown as _0x414ea8,IconArrowUp as _0x4d3a43}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x5a6342{['_recalculatePageBreaksDebounced']=_0x40b9b0(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x5bc2f8('pagination-config-not-found',this['editor']['config']);const _0x478bac=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x478bac),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x20eada,_0x3d7d46,_0x360089)=>{_0x360089&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x37c098){const _0x205832=_0x2f1c63([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x411c6b=0xc82cb1e,_0x4c57db=0xc854176^_0x411c6b,_0x3ad6f3=window[_0x2f1c63([0x44,0x61,0x74,0x65])][_0x2f1c63([0x6e,0x6f,0x77])](),_0x471763=_0x37c098[_0x2f1c63([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48cc66=new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48153f=>{_0x471763[_0x2f1c63([0x6f,0x6e,0x63,0x65])](_0x2f1c63([0x72,0x65,0x61,0x64,0x79]),_0x48153f);}),_0x408ec3={[_0x2f1c63([0x6b,0x74,0x79])]:_0x2f1c63([0x45,0x43]),[_0x2f1c63([0x75,0x73,0x65])]:_0x2f1c63([0x73,0x69,0x67]),[_0x2f1c63([0x63,0x72,0x76])]:_0x2f1c63([0x50,0x2d,0x32,0x35,0x36]),[_0x2f1c63([0x78])]:_0x2f1c63([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]),[_0x2f1c63([0x79])]:_0x2f1c63([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]),[_0x2f1c63([0x61,0x6c,0x67])]:_0x2f1c63([0x45,0x53,0x32,0x35,0x36])},_0x1b28d2=_0x471763[_0x2f1c63([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f1c63([0x67,0x65,0x74])](_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f4ed(){let _0x419a1f,_0x3675d1=null,_0x62e81d=null;try{if(_0x1b28d2==_0x2f1c63([0x47,0x50,0x4c]))return _0x2f1c63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x419a1f=_0x1bd967(),!_0x419a1f)return _0x2f1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x419a1f[_0x2f1c63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x62e81d=_0x32e101(_0x419a1f[_0x2f1c63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x419a1f[_0x2f1c63([0x6a,0x74,0x69])])),await _0x55d89c()?_0x1a5aa1()?_0x493bef()?_0x2f1c63([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x437573()?(_0x419a1f[_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f1c63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3675d1=_0x43c149(_0x2f1c63([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c597d()):_0x2f1c63([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1c63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x493bef(){const _0x4e655e=[_0x2f1c63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f1c63([0x74,0x72,0x69,0x61,0x6c])][_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x419a1f[_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ad6f3/0x3e8:0xe10*_0x4c57db;return _0x419a1f[_0x2f1c63([0x65,0x78,0x70])]<_0x4e655e;}function _0x1a5aa1(){const _0x256c8c=_0x419a1f[_0x2f1c63([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x256c8c&&(!!_0x256c8c[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1c63([0x2a]))||!!_0x256c8c[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1c63([0x50,0x41,0x47])));}function _0x437573(){const _0x2c8557=_0x419a1f[_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c8557||0x0==_0x2c8557[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x449961}=new URL(window[_0x2f1c63([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c8557[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x449961))return!0x0;const _0x29d330=_0x449961[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e]));return _0x2c8557[_0x2f1c63([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x598681=>_0x598681[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1c63([0x2a])))[_0x2f1c63([0x6d,0x61,0x70])](_0x1f481e=>_0x1f481e[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e])))[_0x2f1c63([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f8d2d=>_0x2f8d2d[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29d330[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1c63([0x6d,0x61,0x70])](_0x23c655=>Array(_0x29d330[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23c655[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1c63([0x66,0x69,0x6c,0x6c])](_0x23c655[0x0]===_0x2f1c63([0x2a])?_0x2f1c63([0x2a]):'')[_0x2f1c63([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23c655))[_0x2f1c63([0x73,0x6f,0x6d,0x65])](_0x27963c=>_0x29d330[_0x2f1c63([0x65,0x76,0x65,0x72,0x79])]((_0x780db4,_0x2517f5)=>_0x27963c[_0x2517f5]===_0x780db4||_0x27963c[_0x2517f5]===_0x2f1c63([0x2a])));}function _0x5c597d(){return _0x3675d1&&_0x62e81d?new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x380656,_0x16f29e)=>{_0x3675d1[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x380656,_0x16f29e),_0x62e81d[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x4f58a4=>{_0x4f58a4!=_0x2f1c63([0x56,0x61,0x6c,0x69,0x64])&&_0x380656(_0x4f58a4);},_0x16f29e);}):_0x3675d1||_0x62e81d||_0x2f1c63([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32e101(_0x3f8306,_0x14d1eb){return new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xad28=>{if(_0x47ddb8())return _0xad28(_0x2f1c63([0x56,0x61,0x6c,0x69,0x64]));_0x5c9bfe(),_0x471763[_0x2f1c63([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2919ed=!0x1;const _0x812859=_0x25826b();function _0x275031(_0x367c92){return!!_0x367c92&&(typeof _0x367c92===_0x2f1c63([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x367c92===_0x2f1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x367c92[_0x2f1c63([0x74,0x68,0x65,0x6e])]===_0x2f1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x367c92[_0x2f1c63([0x63,0x61,0x74,0x63,0x68])]===_0x2f1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x206ca5(_0x24fafc){_0xb0583c(_0x24fafc)[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x49e4c8=>{if(!_0x49e4c8||_0x49e4c8[_0x2f1c63([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f1c63([0x6f,0x6b]))return _0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cfd9c(_0x3e5a8d(_0x812859+_0x14d1eb))!=_0x49e4c8[_0x2f1c63([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1c63([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x5588cd=>(_0x25befc(),_0x5588cd),()=>{const _0x33b092=_0x2a3bf7();return null==_0x33b092?(_0x25befc(),_0x2f1c63([0x56,0x61,0x6c,0x69,0x64])):_0x2f1c63(_0x3ad6f3-_0x33b092>(0x288e4f1e^_0x411c6b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0xad28)[_0x2f1c63([0x63,0x61,0x74,0x63,0x68])](()=>{_0xad28(_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x334262=0xcb4259e^_0x411c6b;function _0x25befc(){const _0x52ff4e=_0x2f1c63([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cfd9c(_0x3e5a8d(_0x3f8306)),_0x3f97de=_0x2b3546(_0x1cfd9c(window[_0x2f1c63([0x4d,0x61,0x74,0x68])][_0x2f1c63([0x63,0x65,0x69,0x6c])](_0x3ad6f3/_0x334262)));window[_0x2f1c63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1c63([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52ff4e,_0x3f97de);}function _0x2a3bf7(){const _0x39d8d0=_0x2f1c63([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cfd9c(_0x3e5a8d(_0x3f8306)),_0x463791=window[_0x2f1c63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1c63([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39d8d0);return _0x463791?window[_0x2f1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b3546(_0x463791),0x10)*_0x334262:null;}function _0xb0583c(_0x36a8f8){return new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16499f,_0x2ce01c)=>{_0x36a8f8[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x16499f,_0x2ce01c),window[_0x2f1c63([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ce01c,0xc831fde^_0x411c6b);});}}_0x471763[_0x2f1c63([0x6f,0x6e])](_0x2f1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x402938,_0x3b6a7b)=>{if(_0x3b6a7b[0x0]!=_0x3f8306)return _0xad28(_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b6a7b[0x1]={..._0x3b6a7b[0x1],[_0x2f1c63([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x812859};},{[_0x2f1c63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1c63([0x68,0x69,0x67,0x68])}),_0x471763[_0x2f1c63([0x6f,0x6e])](_0x2f1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b01b6=>{_0x275031(_0x2b01b6[_0x2f1c63([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2919ed=!0x0,_0x206ca5(_0x2b01b6[_0x2f1c63([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f1c63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1c63([0x6c,0x6f,0x77])}),_0x48cc66[_0x2f1c63([0x74,0x68,0x65,0x6e])](()=>{_0x2919ed||_0xad28(_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47ddb8(){return _0x471763[_0x2f1c63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1c63([0x76,0x69,0x65,0x77])][_0x2f1c63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f1c63([0x61,0x75,0x74,0x6f]);}function _0x5c9bfe(){_0x471763[_0x2f1c63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1c63([0x76,0x69,0x65,0x77])][_0x2f1c63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f1c63([0x61,0x75,0x74,0x6f]);}}function _0x43c149(_0xfa6806){const _0x1666e7=[new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x262fae=>setTimeout(_0x262fae,0xc8bf5d2^_0x411c6b)),_0x48cc66[_0x2f1c63([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47f6e9=>{let _0x17d320=0x0;_0x471763[_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1c63([0x6f,0x6e])](_0x2f1c63([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e50a6,_0x41101f)=>{_0x41101f[0x0][_0x2f1c63([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17d320++,_0x17d320==(0xc82cef6^_0x411c6b)&&(_0x47f6e9(),_0x1e50a6[_0x2f1c63([0x6f,0x66,0x66])]());});}))];return window[_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f1c63([0x72,0x61,0x63,0x65])](_0x1666e7)[_0x2f1c63([0x74,0x68,0x65,0x6e])](()=>_0xfa6806);}async function _0x324202(){await _0x48cc66,_0x471763[_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1c63([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1184,_0x471763[_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1c63([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1184,_0x471763[_0x2f1c63([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47b94a(_0x466bf6){const _0x151414=_0x364b18();_0x471763[_0x151414]=_0x2f1c63([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x466bf6,_0x466bf6!=_0x2f1c63([0x56,0x61,0x6c,0x69,0x64])&&_0x324202();}function _0x364b18(){const _0xbca9d8=window[_0x2f1c63([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f1c63([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f1c63([0x6e,0x6f,0x77])]())[_0x2f1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f1c63([0x2e]),'');let _0x327d0c=_0x2f1c63([0x49]);for(let _0x5d84ec=0x0;_0x5d84ec<_0xbca9d8[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d84ec+=0x2){let _0x4544a0=window[_0x2f1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbca9d8[_0x2f1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d84ec,_0x5d84ec+0x2));_0x4544a0>=_0x205832[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4544a0-=_0x205832[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x327d0c+=_0x205832[_0x4544a0];}return _0x327d0c;}function _0x1bd967(){const _0x4b85f7=_0x1b28d2[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e]));if(0x3!=_0x4b85f7[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f6748(_0x4b85f7[0x1]);function _0x2f6748(_0x20fbbd){const _0x4ee7bc=_0xa02e10(_0x20fbbd);return _0x4ee7bc&&_0x2ce4e6()?_0x4ee7bc:null;function _0x2ce4e6(){const _0xfe6f19=_0x4ee7bc[_0x2f1c63([0x6a,0x74,0x69])],_0x2ccf34=window[_0x2f1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfe6f19[_0x2f1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfe6f19[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b77af={..._0x4ee7bc,[_0x2f1c63([0x6a,0x74,0x69])]:_0xfe6f19[_0x2f1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfe6f19[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b77af[_0x2f1c63([0x76,0x63])],_0x3e5a8d(_0x2b77af)==_0x2ccf34;}}}async function _0x55d89c(){let _0x71d544=!0x0;try{const _0x17af68=_0x1b28d2[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e])),[_0x28dd5b,_0x1788dc,_0x346681]=_0x17af68;return _0x5d0312(_0x28dd5b),await _0x29dac4(_0x28dd5b,_0x1788dc,_0x346681),_0x71d544;}catch{return!0x1;}function _0x5d0312(_0x2cfe5c){const _0x38b502=_0xa02e10(_0x2cfe5c);_0x38b502&&_0x38b502[_0x2f1c63([0x61,0x6c,0x67])]==_0x2f1c63([0x45,0x53,0x32,0x35,0x36])||(_0x71d544=!0x1);}async function _0x29dac4(_0x1409d8,_0x20c9d0,_0x21061e){const _0x1cede5=window[_0x2f1c63([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f1c63([0x66,0x72,0x6f,0x6d])](_0x17c096(_0x21061e),_0x42073a=>_0x42073a[_0x2f1c63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdf058b=new window[(_0x2f1c63([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f1c63([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1409d8+_0x2f1c63([0x2e])+_0x20c9d0),_0xc3f636=window[_0x2f1c63([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f1c63([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc3f636)return;const _0x804b83=await _0xc3f636[_0x2f1c63([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f1c63([0x6a,0x77,0x6b]),_0x408ec3,{[_0x2f1c63([0x6e,0x61,0x6d,0x65])]:_0x2f1c63([0x45,0x43,0x44,0x53,0x41]),[_0x2f1c63([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f1c63([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f1c63([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc3f636[_0x2f1c63([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f1c63([0x6e,0x61,0x6d,0x65])]:_0x2f1c63([0x45,0x43,0x44,0x53,0x41]),[_0x2f1c63([0x68,0x61,0x73,0x68])]:{[_0x2f1c63([0x6e,0x61,0x6d,0x65])]:_0x2f1c63([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x804b83,_0x1cede5,_0xdf058b)||(_0x71d544=!0x1);}}function _0xa02e10(_0x5ab461){return _0x5ab461[_0x2f1c63([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f1c63([0x65,0x79]))?JSON[_0x2f1c63([0x70,0x61,0x72,0x73,0x65])](_0x17c096(_0x5ab461)):null;}function _0x17c096(_0x5c9017){return window[_0x2f1c63([0x61,0x74,0x6f,0x62])](_0x5c9017[_0x2f1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f1c63([0x2b]))[_0x2f1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f1c63([0x2f])));}function _0x3e5a8d(_0x5165d1){let _0x216ef9=0x1505;function _0x1b3047(_0x27d976){for(let _0x10bbf8=0x0;_0x10bbf8<_0x27d976[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10bbf8++){const _0x753f74=_0x27d976[_0x2f1c63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10bbf8);_0x216ef9=(_0x216ef9<<0x5)+_0x216ef9+_0x753f74,_0x216ef9&=_0x216ef9;}}function _0x4bb2ec(_0x40d4cd){Array[_0x2f1c63([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40d4cd)?_0x40d4cd[_0x2f1c63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bb2ec):_0x40d4cd&&typeof _0x40d4cd==_0x2f1c63([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f1c63([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40d4cd)[_0x2f1c63([0x73,0x6f,0x72,0x74])]()[_0x2f1c63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf3b963,_0x12fd89])=>{_0x1b3047(_0xf3b963),_0x4bb2ec(_0x12fd89);}):_0x1b3047(window[_0x2f1c63([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40d4cd));}return _0x4bb2ec(_0x5165d1),_0x216ef9>>>0x0;}function _0x1cfd9c(_0x1826fc){return _0x1826fc[_0x2f1c63([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f1c63([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f1c63([0x30]));}function _0x2b3546(_0x37386e){return _0x37386e[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f1c63([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f1c63([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d1184(){}function _0x2f1c63(_0x280a3f){return _0x280a3f['map'](_0x266a94=>String['fromCharCode'](_0x266a94))['join']('');}_0x47b94a(await _0x31f4ed());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x1a677f=this['editor'],_0x31bb54=_0x1a677f['editing']['view'],_0x1b2a52=this['_getAttachedDomRoot']();if(!_0x1b2a52||0x0===_0x1b2a52['childElementCount'])return void _0x1a677f['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x1e8b52,pageHeight:_0x1f9cb7}=_0x1a677f['config']['get']('pagination'),{top:_0x3a1796,left:_0x21eb9d,bottom:_0x5504e5,right:_0x5b3570}=this['_configuredPaddings'];this['_pagesContainer']=new _0x15c440(_0x1a677f['locale']);const _0x283508=this['_pagesContainer'];_0x283508['set']('class',''),_0x283508['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x1e8b52,'width':_0x1e8b52,'height':'calc(\x20'+_0x1f9cb7+'\x20-\x20'+_0x3a1796+'\x20-\x20'+_0x5504e5+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x5b3570+'\x200\x20'+_0x21eb9d,'columnGap':'calc('+_0x21eb9d+'\x20+\x20'+_0x5b3570+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x283508['bindTemplate']['to']('class')}}),_0x283508['render'](),_0x1b2a52['parentNode']['insertBefore'](_0x283508['element'],_0x1b2a52['nextSibling']),this['listenTo'](_0x31bb54,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x57ea0d of this['editor']['editing']['view']['domRoots']['values']())if(_0x57ea0d['ownerDocument']['body']['contains'](_0x57ea0d))return _0x57ea0d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x176da4=this['editor']['editing']['view'],_0x29b256=this['_pagesContainer'],_0x3afa14=this['_getAttachedDomRoot']();if(!_0x3afa14)return Promise['resolve']();for(_0x29b256['class']=['ck-reset','ck-pagination-view',..._0x3afa14['classList']]['join']('\x20');_0x29b256['element']['firstChild'];)_0x29b256['element']['firstChild']['remove']();const _0x2eae44=Array['from'](_0x176da4['domRoots']);_0x2eae44['sort'](([,_0x3be876],[,_0x5d6c6d])=>_0x3be876['compareDocumentPosition'](_0x5d6c6d)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x3a4537,_0x13beb5]of _0x2eae44){const _0x333ac9=_0x13beb5['cloneNode'](!0x0);'attributeStyleMap'in _0x333ac9&&_0x333ac9['attributeStyleMap']['clear'](),_0x333ac9['dataset']['rootName']=_0x3a4537,_0x333ac9['className']='ck-content\x20ck-pagination_enabled',_0x333ac9['removeAttribute']('id'),_0x333ac9['tabIndex']=-0x1,_0x29b256['element']['append'](_0x333ac9);}const _0xd2991=Array['from'](_0x29b256['element']['querySelectorAll']('img'));return function(_0x43b3be){return Promise['all'](_0x43b3be['map'](_0x548a6a=>Promise['race']([b(_0x548a6a),k(0x3e8)])));}(_0xd2991)['then'](()=>{for(const _0x1f935c of _0xd2991['filter'](_0x1cd4eb=>!_0x1cd4eb['closest']('table')))if(_0x1f935c['offsetParent']){const _0x927c6e=_0x5bedf9['window']['getComputedStyle'](_0x1f935c),_0x52fb9e=_0x5bedf9['document']['createElement']('span');for(const _0x447e56 of _0x927c6e)_0x52fb9e['style']['setProperty'](_0x447e56,_0x927c6e[_0x447e56]);_0x52fb9e['style']['backgroundImage']='url(\x20'+_0x1f935c['src']+'\x20)',_0x52fb9e['style']['breakInside']='avoid','PICTURE'==_0x1f935c['parentElement']?.['tagName']?_0x1f935c['parentElement']['replaceWith'](_0x52fb9e):_0x1f935c['replaceWith'](_0x52fb9e);}return new Promise(_0xde669f=>_0x5bedf9['window']['requestAnimationFrame'](()=>_0xde669f()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x46bd66=this['_pagesContainer']['element'];if(!_0x46bd66['ownerDocument']['body']['contains'](_0x46bd66))return;const _0x4c1655=new _0xda9770(_0x46bd66)['excludeScrollbarsAndBorders'](),_0x479722=Math['floor'](_0x4c1655['width']+0x64),_0x1f9247=L(_0x46bd66,Math['floor'](_0x4c1655['left']-_0x46bd66['scrollLeft']),_0x479722,_0x4c1655['height'])['map'](_0x40bf2a=>this['_mapPageStarterInfoToPageBreakInfo'](_0x40bf2a))['filter'](_0x406586=>!0x1!==_0x406586);_0x1f9247['every'](_0x2d1c62=>!!_0x2d1c62)&&(this['pageBreaks']=_0x1f9247);}['_mapPageStarterInfoToPageBreakInfo'](_0x4e8ee7){const _0x388be6=this['editor']['editing']['view'],_0x5c9d0f=this['editor']['editing']['mapper'],_0x3e7893=_0x388be6['domConverter'],_0x1f6a38=_0x4e8ee7['path']['shift'](),_0x5b0306=this['_pagesContainer']['element']['childNodes'][_0x1f6a38]['dataset']['rootName'],_0x13af04=_0x388be6['getDomRoot'](_0x5b0306);if(!_0x13af04)return null;const _0x1ec063=function(_0x1117da,_0x3b5026){let _0x592e33=_0x1117da;for(const _0x9a7fb7 of _0x3b5026['path']){if(!_0x592e33)return null;_0x592e33=_0x592e33['childNodes'][_0x9a7fb7];}return _0x592e33;}(_0x13af04,_0x4e8ee7);if(!_0x1ec063)return null;const _0x16669e=_0x3e7893['domPositionToView'](_0x1ec063,_0x4e8ee7['textOffset']||0x0);return _0x16669e?'manual'==_0x4e8ee7['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x16669e,_0x1ec063):'text'==_0x4e8ee7['type']&&_0x5c9d0f['toModelPosition'](_0x16669e)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x16669e,_0x1ec063,_0x4e8ee7['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x16669e,_0x1ec063,_0x4e8ee7['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x3c28aa,_0x4fd491){const _0x2d2603=this['editor']['model'],_0x5ec859=this['editor']['editing']['mapper']['toModelElement'](_0x3c28aa['parent']),_0x24b013=_0x2d2603['createRangeOn'](_0x5ec859);return new PageBreakInfo({'type':'manual','modelRange':_0x24b013,'domNode':_0x4fd491,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x3856a1,_0x29c7ed,_0x17cf4a){const _0x5417fc=this['editor']['model'],_0x391439=this['editor']['editing']['mapper'],_0x44dfe0=this['editor']['editing']['view']['domConverter'];if(_0x17cf4a>=_0x29c7ed['length'])return null;const _0x29fd89=_0x391439['toModelPosition'](_0x3856a1),_0x58554e=_0x5417fc['createRange'](_0x29fd89),_0x1d90a6=_0x391439['findMappedViewAncestor'](_0x3856a1),_0x5c464d=_0x44dfe0['mapViewToDom'](_0x1d90a6);return new PageBreakInfo({'type':'text','modelRange':_0x58554e,'domNode':_0x29c7ed,'offset':w(_0x29c7ed,_0x17cf4a,_0x5c464d)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x5b9a7b,_0x50be8e,_0x37d246){const _0x45be28=this['editor']['model'],_0xaef645=this['editor']['editing'],_0x12fae3=_0xaef645['mapper'],_0x2c51fc=_0xaef645['view']['domConverter'],_0x414bc5=_0x12fae3['findMappedViewAncestor'](_0x5b9a7b),_0x1465a9=_0x12fae3['toModelElement'](_0x414bc5);if(!_0x1465a9||_0x1465a9['is']('element','$root'))return!0x1;const _0x14d65b=function(_0xc710fc){const _0x13e069=_0xc710fc['parent'],_0x27133e=_0x13e069['root']['document']['model'],_0x3ae8ba=_0x13e069['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x2d1bc9=null;for(const _0x2f47db of _0x3ae8ba){if(_0x2f47db['is']('rootElement'))return _0x2d1bc9;if(!_0x27133e['createPositionBefore'](_0x2f47db)['isTouching'](_0xc710fc))return _0x2d1bc9;_0x2d1bc9=_0x2f47db;}}(_0x45be28['createPositionBefore'](_0x1465a9)),_0x2a6403=_0x14d65b||_0x1465a9;let _0x3bd94d=_0x12fae3['toViewElement'](_0x2a6403),_0x14fe18=_0x45be28['createRangeOn'](_0x2a6403);const _0x71e632=_0x45be28['createPositionBefore'](_0x2a6403)['nodeBefore'];if(_0x71e632&&_0x71e632['is']('element','imageBlock')){const _0x3a70ea=_0x12fae3['toViewElement'](_0x71e632),_0x383c56=_0x2c51fc['mapViewToDom'](_0x3a70ea),_0x3e95fc=_0x5bedf9['window']['getComputedStyle'](_0x383c56)['float'];'left'!=_0x3e95fc&&'right'!=_0x3e95fc||(_0x14fe18=_0x45be28['createRangeOn'](_0x71e632));}for(;_0x3bd94d['parent']!==_0x3bd94d['root']&&0x0===_0x3bd94d['index'];)_0x3bd94d=_0x3bd94d['parent'];const _0x4152d4=new _0xda9770(S(_0x50be8e)?_0x50be8e:y(_0x50be8e)),_0xa2796d=_0x37d246?_0x4152d4['height']-_0x37d246:0x0,_0x49e05e=_0x2c51fc['mapViewToDom'](_0x3bd94d),_0x1d1a21=new _0xda9770(_0x49e05e);return new PageBreakInfo({'type':'element','modelRange':_0x14fe18,'domNode':_0x49e05e,'offset':Math['round'](_0xa2796d)||_0x414bc5!=P(_0x5b9a7b)?_0xa2796d+_0x4152d4['top']-_0x1d1a21['top']:0x0});}get['_configuredPaddings'](){const _0x1e8423=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x1e8423);}static['_findPageStarterInfos'](_0x475ad9,_0x221dbc,_0x3ee7a0,_0x223482,_0x343375){return L(_0x475ad9,_0x221dbc,_0x3ee7a0,_0x223482,_0x343375);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x18d870,modelRange:_0x50ce9f,domNode:_0x2d3caa,offset:_0xe12945}){this['type']=_0x18d870,this['modelRange']=_0x50ce9f,this['_domNode']=_0x2d3caa,this['_offset']=_0xe12945;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0xbb9d23=new _0xda9770(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0xbb9d23['top']+_0xbb9d23['height']/0x2:_0xbb9d23['top']+this['_offset'];}}function w(_0x5da2c4,_0x4b1c94,_0x64c0b4){const _0x5bb49b=y(_0x5da2c4),_0x42b208=function(_0x39eb4c){const _0x550196=_0x5bedf9['document']['createRange']();return _0x550196['selectNodeContents'](_0x39eb4c),_0x550196;}(_0x64c0b4);let _0x1d6684;_0x1d6684=0x0==_0x4b1c94?x(_0x42b208['startContainer'],_0x42b208['startOffset'],_0x5da2c4['parentNode'],Array['from'](_0x5da2c4['parentNode']['childNodes'])['indexOf'](_0x5da2c4)):x(_0x42b208['startContainer'],_0x42b208['startOffset'],_0x5da2c4,_0x4b1c94);const _0x30bc55=x(_0x5da2c4,_0x4b1c94,_0x42b208['endContainer'],_0x42b208['endOffset']),_0x54c071=new _0xda9770(_0x1d6684)['bottom'];return(new _0xda9770(_0x30bc55)['top']+_0x54c071)/0x2-new _0xda9770(_0x5bb49b)['top'];}function P(_0x876611){let _0x3e1c8a=_0x876611['parent'];for(;_0x3e1c8a['is']('$text')||_0x3e1c8a['is']('attributeElement');)_0x3e1c8a=_0x3e1c8a['parent'];return _0x3e1c8a;}function b(_0x3e25ee){return _0x3e25ee['hasAttribute']('width')&&_0x3e25ee['hasAttribute']('height')?Promise['resolve']():new Promise(_0x3a6ad=>{function _0x11dc4e(){_0x3e25ee['removeEventListener']('load',_0x11dc4e),_0x3e25ee['removeEventListener']('error',_0x11dc4e),_0x3a6ad();}_0x3e25ee['complete']?_0x3a6ad():(_0x3e25ee['addEventListener']('load',_0x11dc4e),_0x3e25ee['addEventListener']('error',_0x11dc4e));});}function k(_0x3b3a24){return new Promise(_0x564f79=>setTimeout(_0x564f79,_0x3b3a24));}function y(_0x5d6093){const _0x36e303=_0x5bedf9['document']['createRange']();return _0x36e303['selectNode'](_0x5d6093),_0x36e303;}function v(_0x2eabc2,_0x488126,_0x3660c2){const _0x2fb01e=_0x5bedf9['document']['createRange']();return _0x2fb01e['setStart'](_0x2eabc2,_0x488126),_0x2fb01e['setEnd'](_0x2eabc2,_0x3660c2),_0x2fb01e;}function x(_0x23456f,_0x229cd2,_0x499aeb,_0xfd1021){const _0xd027e6=_0x5bedf9['document']['createRange']();return _0xd027e6['setStart'](_0x23456f,_0x229cd2),_0xd027e6['setEnd'](_0x499aeb,_0xfd1021),_0xd027e6;}function L(_0x171e59,_0x15685c,_0x2ef4cd,_0x57d700,_0x215ee3){const _0x45869e=[];for(const [_0x56753b,_0x4191cd]of _0x171e59['childNodes']['entries']()){let _0x1b22a3=[];S(_0x4191cd)&&_0x4191cd['offsetParent']&&['static','relative']['includes'](_0x5bedf9['window']['getComputedStyle'](_0x4191cd)['position'])?_0x1b22a3=N(_0x4191cd,_0x56753b,_0x15685c,_0x2ef4cd,_0x57d700,_0x215ee3):I(_0x4191cd)&&(_0x1b22a3=_(_0x4191cd,_0x56753b,_0x15685c,_0x2ef4cd,_0x215ee3)),_0x1b22a3['length']&&(_0x45869e['push'](..._0x1b22a3),_0x15685c+=_0x1b22a3['length']*_0x2ef4cd,_0x215ee3=!0x1);}return _0x45869e;}function N(_0x306c46,_0x14de90,_0x4ca9de,_0x33dcba,_0x3f48ca,_0x4ea239){const _0x44a413=[];var _0x5956c6;if((_0x5956c6=_0x306c46['previousSibling'])&&S(_0x5956c6)&&Boolean(_0x5956c6['classList']['contains']('page-break')||_0x5956c6['closest']('.page-break'))&&(_0x44a413['push']({'type':'manual','offset':0x0,'path':[_0x14de90-0x1]}),_0x4ea239=!0x0),'table-row'==_0x5bedf9['window']['getComputedStyle'](_0x306c46)['display']){let _0x387f08=0x0,_0x52cd76=!0x1;for(const _0x137230 of _0x306c46['getClientRects']())_0x387f08+=_0x137230['height'],_0x137230['left']>=_0x4ca9de&&(_0x52cd76=!0x0);if(_0x387f08<_0x3f48ca&&_0x52cd76)return _0x4ea239||_0x44a413['push']({'type':'element','offset':0x0,'path':[_0x14de90]}),_0x44a413;}const _0x148986=_0x306c46['closest']('figure.image');if(_0x148986&&function(_0x173b5b){let _0x101fa4=!0x1;const _0x15dda5=_0x173b5b['parentElement'],_0x9cfe68=_0x15dda5['dataset']['rootName'],_0x9a1c70=_0x173b5b['nextElementSibling'],_0x363d16=_0x173b5b['previousElementSibling'],_0x2742df=_0x9a1c70&&_0x5bedf9['window']['getComputedStyle'](_0x9a1c70)['float'],_0x24e26d=_0x9a1c70&&'ck-fake-selection-container'===_0x9a1c70['className'];!_0x9cfe68||_0x9a1c70||_0x363d16||(_0x101fa4=!0x0),_0x9cfe68&&!_0x363d16&&_0x24e26d&&(_0x101fa4=!0x0),_0x9cfe68&&!_0x363d16&&'none'!==_0x2742df&&(_0x101fa4=!0x0);if(_0x101fa4)return!0x1;return!0x0;}(_0x148986)){const _0x487a88=_0x5bedf9['window']['getComputedStyle'](_0x148986)['float'];if('left'==_0x487a88||'right'==_0x487a88)return _0x44a413;}const _0x5c124e=L(_0x306c46,_0x4ca9de,_0x33dcba,_0x3f48ca,_0x4ea239);if(_0x5c124e['length']){for(const _0x3dfbb6 of _0x5c124e)_0x44a413['push']({'type':_0x3dfbb6['type'],'offset':_0x3dfbb6['offset'],'textOffset':_0x3dfbb6['textOffset'],'path':[_0x14de90,..._0x3dfbb6['path']]}),_0x4ca9de+=_0x33dcba,_0x4ea239=!0x1;return _0x44a413;}return _0x44a413['push'](...function(_0x5ee79c,_0x2bee4f,_0xae5f15,_0xa464a3,_0x40db2b){const _0x3afed0=[];if('table-cell'==_0x5bedf9['window']['getComputedStyle'](_0x5ee79c)['display'])return[];const _0x4f4091=[];for(const _0x1d02ee of _0x5ee79c['getClientRects']())if(_0x1d02ee['left']>=_0xae5f15){for(const _0x5ed7e7 of _0x4f4091)_0x5ed7e7['height']+=_0x1d02ee['height'];_0x4f4091['push']({'height':_0x1d02ee['height']}),_0xae5f15+=_0xa464a3;}for(const _0x5482d4 of _0x4f4091)_0x40db2b||_0x3afed0['push']({'type':'element','offset':_0x5482d4['height'],'textOffset':0x0,'path':[_0x2bee4f]}),_0x40db2b=!0x1;return _0x3afed0;}(_0x306c46,_0x14de90,_0x4ca9de,_0x33dcba,_0x4ea239)),_0x44a413;}function _(_0x4bf5e1,_0x112dd7,_0x348869,_0x3d1b8b,_0x48096d){const _0x3011ea=y(_0x4bf5e1),_0x26accd=[];let _0x1f1603=0x0;for(const _0x5b58cf of _0x3011ea['getClientRects']())if(_0x5b58cf['left']>=_0x348869){const _0x25172f=R(_0x4bf5e1,_0x1f1603,_0x348869,_0x3d1b8b);_0x48096d||_0x26accd['push']({'type':'text','path':[_0x112dd7],'textOffset':_0x25172f}),_0x1f1603=_0x25172f,_0x348869+=_0x3d1b8b,_0x48096d=!0x1;}return _0x26accd;}function R(_0x5b8f70,_0x394f69,_0x50d169,_0x394848){let _0x2ec7ce=_0x394f69,_0x34abe9=_0x5b8f70['length'];for(;_0x34abe9-_0x2ec7ce>0x1;){const _0x2844c9=Math['ceil']((_0x2ec7ce+_0x34abe9)/0x2);E(v(_0x5b8f70,_0x2ec7ce,_0x2844c9),_0x50d169,_0x394848)?_0x34abe9=_0x2844c9:_0x2ec7ce=_0x2844c9;}return _0x2ec7ce;}function E(_0x4642d8,_0x510585,_0x2d7f4b){for(const _0xf20f43 of _0x4642d8['getClientRects']())if(_0xf20f43['left']>=_0x510585&&_0xf20f43['left']<_0x510585+_0x2d7f4b)return!0x0;return!0x1;}function S(_0x635f33){return _0x635f33['nodeType']==Node['ELEMENT_NODE'];}function I(_0x41f740){return _0x41f740['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
+ _0x1647c0('px');class LineView extends _0x15c440{constructor(){super();const _0x65ff48=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x65ff48['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x65ff48['if']('isVisible','ck-hidden',_0x5c52bc=>!_0x5c52bc)],'style':{'left':_0x65ff48['to']('left',_0x1e0e84=>B(_0x1e0e84)),'top':_0x65ff48['to']('top',_0x3f6ecd=>B(_0x3f6ecd)),'width':_0x65ff48['to']('width',_0x38fd41=>B(_0x38fd41))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x417087){this['_viewCollection']=_0x417087['ui']['view']['body'];}['destroy'](){for(const _0x40ebf6 of this['_hiddenLines'])_0x40ebf6['destroy']();}['cleanLines'](){for(const _0x536929 of this['_visibleLines'])_0x536929['isVisible']=!0x1,this['_hiddenLines']['add'](_0x536929);this['_visibleLines']['clear']();}['showLine'](_0x40f4e2,_0x475116,_0x34eb11,_0x59a3b5){let _0x54827f;this['_hiddenLines']['size']?(_0x54827f=_0x16a122(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x54827f)):_0x54827f=new LineView(),_0x54827f['set']({'pageNumber':_0x59a3b5,'left':_0x40f4e2,'top':_0x475116,'width':_0x34eb11}),_0x54827f['isVisible']=!0x0,this['_viewCollection']['has'](_0x54827f)||this['_viewCollection']['add'](_0x54827f),this['_visibleLines']['add'](_0x54827f);}['setViewCollection'](_0x189b95){for(const _0x3dadcd of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x3dadcd)&&this['_viewCollection']['remove'](_0x3dadcd);this['_viewCollection']=_0x189b95;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x5a6342{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x1f7576,_0x20dd47,_0x38b136)=>{_0x38b136||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x38b136);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x405f0e){if(!this['isEnabled'])return;const _0x38ae75=_0x405f0e>0x1?this['_getPageBreakLineOffset'](_0x405f0e-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x38ae75-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x3ff4f7['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x3ca380=this['editor'],_0x2d29aa=this['_getAttachedDomRoot']();_0x2d29aa?(this['_scrollableEditingRootDomAncestor']&&_0x3ca380['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x507e2c){let _0x3a5fb4=_0x507e2c;do{_0x3a5fb4=_0x3a5fb4['parentElement'];const _0x21b675=_0x5bedf9['window']['getComputedStyle'](_0x3a5fb4)['overflowY'];if('auto'==_0x21b675||'scroll'==_0x21b675)break;}while('BODY'!=_0x3a5fb4['tagName']);return _0x3a5fb4;}(_0x2d29aa),_0x3ca380['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3114c4(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x3ca380['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x4ed911=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x4ed911['ui']['view']['listenTo'](_0x5bedf9['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x4ed911['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x2f204d of this['editor']['editing']['view']['domRoots']['values']())if(_0x2f204d['ownerDocument']['body']['contains'](_0x2f204d))return _0x2f204d;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0xda5168=this['_getAttachedDomRoot'](),_0x3a7d8b=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0xda5168||0x1==_0x3a7d8b['length'])return void(this['pageNumber']=0x1);const _0x3c71e6=new _0xda9770(_0xda5168)['excludeScrollbarsAndBorders'](),_0x18423d=new _0xda9770(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x1611e6=_0x18423d['top']+_0x18423d['height']/0x3;let _0x20643c=!0x1;const _0x5e6d52=[];for(let _0x5d067e=0x1;_0x5d067e<_0x3a7d8b['length'];_0x5d067e++){const _0x5556ce=this['_getPageBreakLineOffset'](_0x5d067e,_0x18423d);if(!_0x5556ce)continue;const _0x9629ea=_0x18423d['top']+_0x5556ce-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x5e6d52['push']({'pageOffsetTop':_0x9629ea,'domRootRect':_0x3c71e6,'domScrollableRect':_0x18423d,'pageNumber':_0x5d067e}),_0x9629ea>_0x1611e6&&!_0x20643c&&(this['pageNumber']=_0x5d067e,_0x20643c=!0x0);}this['_renderPageBreakLines'](_0x5e6d52),_0x20643c||(this['pageNumber']=_0x3a7d8b['length']);}['_renderPageBreakLines'](_0x4d7213){const {scrollX:_0x242712,scrollY:_0x5ac630}=_0x5bedf9['window'];if(_0x4d7213['length']){for(const {domScrollableRect:_0x463af9,pageOffsetTop:_0x1a0069,domRootRect:_0x51cdd0,pageNumber:_0x53885a}of _0x4d7213)_0x463af9['top']<_0x1a0069&&_0x1a0069<_0x463af9['bottom']&&this['linesRepository']['showLine'](_0x51cdd0['left']+_0x242712,_0x1a0069+_0x5ac630,_0x51cdd0['width'],_0x53885a+0x1);}}['_getPageBreakLineOffset'](_0x4a7288,_0x259215=null){const _0x455d22=this['_paginationLookupPlugin']['pageBreaks'][_0x4a7288]['offset'];return _0x455d22?(_0x259215||(_0x259215=new _0xda9770(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x455d22-_0x259215['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x3efa48,_0x3ae33e=!0x0){const _0x59eebf=this['editor']['editing']['view'];_0x59eebf['change'](_0x2ee1e5=>{for(const _0x2beb98 of _0x59eebf['document']['roots'])_0x3ae33e?_0x2ee1e5['addClass'](_0x3efa48,_0x2beb98):_0x2ee1e5['removeClass'](_0x3efa48,_0x2beb98);});}}function O(_0x1fac25,_0x53b3f8,..._0x282a15){const t=_0x1fac25['t'];switch(_0x53b3f8){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x282a15);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x53b3f8;}}class PaginationEditing extends _0x5a6342{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x3fea58=this['editor']['plugins']['get']('Pagination'),_0x585669=this['editor']['plugins']['get'](PaginationLookup),_0x525c6c=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x3fea58),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x525c6c),this['listenTo'](_0x585669,'change:pageBreaks',(_0x592b9d,_0x1f0d24,_0xab4b04,_0x4463a1)=>{this['totalPages']=_0xab4b04['length'],this['_updatePageBreakMarkers'](_0xab4b04,_0x4463a1);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4008ae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cafa3;for(const _0x39a2d8 in _0x4008ae){const _0x4ff561=_0x39a2d8,_0x7bf5f5=_0x4008ae[_0x4ff561];if('paginationLicenseKeyValid'==_0x7bf5f5||'paginationLicenseKeyInvalid'==_0x7bf5f5||'paginationLicenseKeyExpired'==_0x7bf5f5||'paginationLicenseKeyDomainLimit'==_0x7bf5f5||'paginationLicenseKeyNotAllowed'==_0x7bf5f5||'paginationLicenseKeyEvaluationLimit'==_0x7bf5f5||'paginationLicenseKeyUsageLimit'==_0x7bf5f5){delete _0x4008ae[_0x4ff561],_0x2cafa3=_0x7bf5f5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x2cafa3&&_0x4008ae['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x2cafa3&&_0x4008ae['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x2cafa3&&_0x4008ae['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x2cafa3&&_0x4008ae['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x2cafa3&&_0x4008ae['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x2cafa3&&_0x4008ae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x12ec31){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x12ec31));}['moveSelectionToPage'](_0x4499e1){if(!this['isEnabled'])return;const _0x4ce360=this['editor'],_0x3b5daa=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x4499e1-0x1];_0x3b5daa&&_0x4ce360['model']['change'](_0x5a1bd2=>{switch(_0x3b5daa['type']){case'manual':{const _0x46316b=_0x4ce360['model']['schema']['getNearestSelectionRange'](_0x3b5daa['modelRange']['end'],'forward');_0x5a1bd2['setSelection'](_0x46316b);break;}case'element':{const _0x54a962=_0x4ce360['model']['schema']['getNearestSelectionRange'](_0x3b5daa['modelRange']['start'],'forward');_0x5a1bd2['setSelection'](_0x54a962);break;}case'text':{const _0x237f8f=_0x3b5daa['modelRange']['start'];if(_0x237f8f['textNode']&&'\x20'===_0x237f8f['textNode']['data'][_0x237f8f['offset']]){const _0x34fd56=_0x5a1bd2['createPositionAt'](_0x237f8f['parent'],_0x237f8f['offset']+0x1);_0x5a1bd2['setSelection'](_0x34fd56);}else _0x5a1bd2['setSelection'](_0x3b5daa['modelRange']);}}_0x4ce360['editing']['view']['focus']();});}['goToNextPage'](){const _0x159e61=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x159e61),this['scrollToPage'](_0x159e61);}['goToPreviousPage'](){const _0x3e3623=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x3e3623),this['scrollToPage'](_0x3e3623);}['_updatePageBreakMarkers'](_0x355b0e,_0xa7da7f){const _0x524a59=this['editor']['model'];this['isEnabled']&&_0x524a59['change'](_0x374763=>{for(let _0x11e01a=0x1;_0x11e01a<_0x355b0e['length'];_0x11e01a++){const _0x26646f=_0x355b0e[_0x11e01a]['modelRange'],_0x615d5='pagination:'+(_0x11e01a+0x1);_0x524a59['markers']['has'](_0x615d5)?_0x374763['updateMarker'](_0x615d5,{'range':_0x26646f}):_0x374763['addMarker'](_0x615d5,{'range':_0x26646f,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0xf2df70=_0x355b0e['length'];_0xf2df70<_0xa7da7f['length'];_0xf2df70++){const _0x511026='pagination:'+(_0xf2df70+0x1);_0x524a59['markers']['has'](_0x511026)&&_0x374763['removeMarker'](_0x511026);}});}['_setUpDataDowncastConversion'](){const _0x7fba9b='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c16ab=>{_0x1c16ab['on']('addMarker:'+_0x7fba9b,(_0x5dee36,{markerRange:_0x2f24b3,markerName:_0x42121e},_0x351102)=>{if(!_0x351102['options']['pagination'])return;if(!_0x351102['consumable']['consume'](_0x2f24b3,_0x5dee36['name']))return;const _0x4cb505=_0x2f24b3['getContainedElement']();let _0x16275d=_0x4cb505?_0x351102['mapper']['toViewElement'](_0x4cb505):null;if(!_0x16275d){const _0x5972f8=_0x2f24b3['start'];if(_0x351102['schema']['checkChild'](_0x5972f8,'$text')){const _0x140b91=_0x351102['mapper']['toViewPosition'](_0x5972f8);_0x16275d=_0x351102['writer']['createContainerElement']('span'),_0x16275d['getFillerOffset']=()=>null,_0x351102['writer']['insert'](_0x140b91,_0x16275d);}else{const _0x1fcb2a=_0x5972f8['nodeAfter'];_0x16275d=_0x351102['mapper']['toViewElement'](_0x1fcb2a);}}for(;_0x16275d['parent']!==_0x16275d['root']&&0x0===_0x16275d['index'];)_0x16275d=_0x16275d['parent'];const _0x17d9d7=_0x42121e['substring'](0xb);_0x16275d['hasClass']('page-break')||(_0x351102['writer']['setStyle']('page-break-before','always',_0x16275d),_0x351102['writer']['setAttribute']('data-pagination-page',_0x17d9d7,_0x16275d),_0x351102['mapper']['bindElementToMarker'](_0x16275d,_0x42121e)),_0x5dee36['stop']();});});}['_setupKeystrokes'](){const _0x24adf6=this['editor'];_0x24adf6['keystrokes']['set']('Shift+Pageup',(_0x584c7f,_0x2f9faf)=>{this['goToPreviousPage'](),_0x2f9faf();}),_0x24adf6['keystrokes']['set']('Shift+Pagedown',(_0x3c6310,_0x381914)=>{this['goToNextPage'](),_0x381914();}),_0x24adf6['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x24adf6['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x24adf6['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x24adf6['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x260acd){return _0x260acd<0x1&&(_0x260acd=0x1),_0x260acd>this['totalPages']&&(_0x260acd=this['totalPages']),_0x260acd;}}class PageNavigatorView extends _0x15c440{['pageNumberView'];constructor(_0x58eb85){super(_0x58eb85);const _0x34dd60=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x5b714e(_0x58eb85,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x40b148=>O(_0x58eb85,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x40b148)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x1e5ff4=>!_0x1e5ff4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x34dd60['if']('isEnabled','ck-disabled',_0x1b6d8c=>!_0x1b6d8c)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x34dd60['to']('totalPages')}]}]});}['render'](){super['render']();const _0x451a27=this['pageNumberView']['element'],_0x87ba4e=_0x2e39d5=>{this['pageNumberView']['element']['value']=String(_0x2e39d5);};_0x87ba4e(this['pageNumber']),this['on']('change:pageNumber',(_0x36f0ea,_0x3fc131,_0x45a333)=>{_0x87ba4e(_0x45a333);}),this['listenTo'](_0x451a27,'keydown',(_0x487a48,_0x2b7401)=>{if('ArrowUp'===_0x2b7401['key']||'ArrowDown'===_0x2b7401['key'])return void _0x2b7401['stopPropagation']();if(_0x2b7401['keyCode']!==_0x5b09aa['enter'])return;_0x2b7401['preventDefault']();const _0x485313=_0x451a27['valueAsNumber'];Number['isNaN'](_0x485313)?_0x451a27['value']=String(this['pageNumber']):(_0x451a27['checkValidity']()?this['pageNumber']=_0x485313:_0x485313>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x451a27['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x451a27['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x451a27,'blur',()=>{_0x451a27['value']=String(this['pageNumber']);}),this['listenTo'](_0x451a27,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x5a6342{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x82cee1=this['editor'],_0x1f8cb6=_0x82cee1['plugins']['get']('PaginationEditing');_0x82cee1['ui']['componentFactory']['add']('pageNavigation',_0x942037=>{const _0x5a2e85=new PageNavigatorView(_0x942037);return _0x5a2e85['bind']('pageNumber')['to'](_0x1f8cb6),_0x5a2e85['bind']('totalPages')['to'](_0x1f8cb6),_0x5a2e85['bind']('isEnabled')['to'](_0x1f8cb6),_0x5a2e85['on']('navigation',(_0x51482e,_0x2bd21d)=>{_0x1f8cb6['moveSelectionToPage'](_0x2bd21d),_0x1f8cb6['scrollToPage'](_0x2bd21d);}),_0x5a2e85;}),_0x82cee1['ui']['componentFactory']['add']('nextPage',_0x463a41=>{const _0x1ea4cf=new _0x290e36(_0x463a41);return _0x1ea4cf['isEnabled']=!0x0,_0x1ea4cf['label']=O(_0x82cee1['locale'],'Go\x20to\x20next\x20page'),_0x1ea4cf['icon']=_0x414ea8,_0x1ea4cf['tooltip']=!0x0,_0x1ea4cf['keystroke']='Shift+PageDown',_0x1ea4cf['bind']('isEnabled')['to'](_0x1f8cb6),this['listenTo'](_0x1ea4cf,'execute',()=>{_0x1f8cb6['goToNextPage']();}),_0x1ea4cf;}),_0x82cee1['ui']['componentFactory']['add']('previousPage',_0x1a74d4=>{const _0x54a92b=new _0x290e36(_0x1a74d4);return _0x54a92b['isEnabled']=!0x0,_0x54a92b['label']=O(_0x82cee1['locale'],'Go\x20to\x20previous\x20page'),_0x54a92b['icon']=_0x4d3a43,_0x54a92b['tooltip']=!0x0,_0x54a92b['keystroke']='Shift+PageUp',_0x54a92b['bind']('isEnabled')['to'](_0x1f8cb6),this['listenTo'](_0x54a92b,'execute',()=>{_0x1f8cb6['goToPreviousPage']();}),_0x54a92b;});}}class Pagination extends _0x5a6342{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x3d5e30){super(_0x3d5e30),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x60b91a=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x60b91a),this['bind']('totalPages')['to'](_0x60b91a),_0x3ff4f7['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x16c772){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x16c772);}}export{Pagination,PaginationRenderer};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-pagination",
3
- "version": "48.8.1-alpha.2",
3
+ "version": "48.8.1-alpha.3",
4
4
  "description": "Pagination feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,11 +21,11 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
27
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
28
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2",
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
27
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
28
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [