@ckeditor/ckeditor5-pagination 48.8.1-alpha.1 → 48.8.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +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 _0x1d58ec}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x396d63,InputNumberView as _0x5e7329,ButtonView as _0x892e9b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5a2453,global as _0x128704,Rect as _0x4b1206,uid as _0x27ac58,toUnit as _0x3df125,first as _0x17c259,env as _0x27ec2c,ResizeObserver as _0x331a31,keyCodes as _0x3cbb44}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x5c5ac5}from'es-toolkit/compat';import{IconArrowDown as _0x2ac44a,IconArrowUp as _0x55c0e8}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x1d58ec{['_recalculatePageBreaksDebounced']=_0x5c5ac5(()=>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 _0x5a2453('pagination-config-not-found',this['editor']['config']);const _0x52af9d=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x52af9d),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x4d91e1,_0x12bce4,_0x91a67a)=>{_0x91a67a&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x5cc19a){const _0x12ac7a=_0x53d576([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]),_0x57b028=0xc82cb1e,_0x54fcaf=0xc854126^_0x57b028,_0x38f182=window[_0x53d576([0x44,0x61,0x74,0x65])][_0x53d576([0x6e,0x6f,0x77])](),_0xdc253d=_0x5cc19a[_0x53d576([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31603b=new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd0a0fc=>{_0xdc253d[_0x53d576([0x6f,0x6e,0x63,0x65])](_0x53d576([0x72,0x65,0x61,0x64,0x79]),_0xd0a0fc);}),_0x33d9d0={[_0x53d576([0x6b,0x74,0x79])]:_0x53d576([0x45,0x43]),[_0x53d576([0x75,0x73,0x65])]:_0x53d576([0x73,0x69,0x67]),[_0x53d576([0x63,0x72,0x76])]:_0x53d576([0x50,0x2d,0x32,0x35,0x36]),[_0x53d576([0x78])]:_0x53d576([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]),[_0x53d576([0x79])]:_0x53d576([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]),[_0x53d576([0x61,0x6c,0x67])]:_0x53d576([0x45,0x53,0x32,0x35,0x36])},_0x591162=_0xdc253d[_0x53d576([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53d576([0x67,0x65,0x74])](_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ed0d3(){let _0x15670b,_0x35ca41=null,_0x43061a=null;try{if(_0x591162==_0x53d576([0x47,0x50,0x4c]))return _0x53d576([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15670b=_0x3d4809(),!_0x15670b)return _0x53d576([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15670b[_0x53d576([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43061a=_0x231bbd(_0x15670b[_0x53d576([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15670b[_0x53d576([0x6a,0x74,0x69])])),await _0xeb50a6()?_0x20a0ca()?_0x537290()?_0x53d576([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5607b2()?(_0x15670b[_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53d576([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35ca41=_0x334b0f(_0x53d576([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x209b07()):_0x53d576([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53d576([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53d576([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53d576([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x537290(){const _0x36a6a7=[_0x53d576([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53d576([0x74,0x72,0x69,0x61,0x6c])][_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15670b[_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f182/0x3e8:0xe10*_0x54fcaf;return _0x15670b[_0x53d576([0x65,0x78,0x70])]<_0x36a6a7;}function _0x20a0ca(){const _0x233942=_0x15670b[_0x53d576([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x233942&&(!!_0x233942[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d576([0x2a]))||!!_0x233942[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d576([0x50,0x41,0x47])));}function _0x5607b2(){const _0x224642=_0x15670b[_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x224642||0x0==_0x224642[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e1738}=new URL(window[_0x53d576([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x224642[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e1738))return!0x0;const _0x4cb3f7=_0x5e1738[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e]));return _0x224642[_0x53d576([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15939e=>_0x15939e[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d576([0x2a])))[_0x53d576([0x6d,0x61,0x70])](_0x5f1da3=>_0x5f1da3[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e])))[_0x53d576([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d5cec=>_0x5d5cec[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4cb3f7[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53d576([0x6d,0x61,0x70])](_0x27a543=>Array(_0x4cb3f7[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27a543[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53d576([0x66,0x69,0x6c,0x6c])](_0x27a543[0x0]===_0x53d576([0x2a])?_0x53d576([0x2a]):'')[_0x53d576([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27a543))[_0x53d576([0x73,0x6f,0x6d,0x65])](_0x59c705=>_0x4cb3f7[_0x53d576([0x65,0x76,0x65,0x72,0x79])]((_0x2910d7,_0x48c2ed)=>_0x59c705[_0x48c2ed]===_0x2910d7||_0x59c705[_0x48c2ed]===_0x53d576([0x2a])));}function _0x209b07(){return _0x35ca41&&_0x43061a?new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x172b5f,_0x485ab5)=>{_0x35ca41[_0x53d576([0x74,0x68,0x65,0x6e])](_0x172b5f,_0x485ab5),_0x43061a[_0x53d576([0x74,0x68,0x65,0x6e])](_0x47cd9c=>{_0x47cd9c!=_0x53d576([0x56,0x61,0x6c,0x69,0x64])&&_0x172b5f(_0x47cd9c);},_0x485ab5);}):_0x35ca41||_0x43061a||_0x53d576([0x56,0x61,0x6c,0x69,0x64]);}}function _0x231bbd(_0x11a6d0,_0x4495e5){return new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca748=>{if(_0x1e3447())return _0x2ca748(_0x53d576([0x56,0x61,0x6c,0x69,0x64]));_0x16f4b5(),_0xdc253d[_0x53d576([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53d576([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15263d=!0x1;const _0x1fe59f=_0x27ac58();function _0x308ff1(_0x2a29e5){return!!_0x2a29e5&&(typeof _0x2a29e5===_0x53d576([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a29e5===_0x53d576([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a29e5[_0x53d576([0x74,0x68,0x65,0x6e])]===_0x53d576([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a29e5[_0x53d576([0x63,0x61,0x74,0x63,0x68])]===_0x53d576([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa0f252(_0x51f827){_0x545de3(_0x51f827)[_0x53d576([0x74,0x68,0x65,0x6e])](_0x52530e=>{if(!_0x52530e||_0x52530e[_0x53d576([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53d576([0x6f,0x6b]))return _0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b6857(_0x176cea(_0x1fe59f+_0x4495e5))!=_0x52530e[_0x53d576([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53d576([0x56,0x61,0x6c,0x69,0x64]);})[_0x53d576([0x74,0x68,0x65,0x6e])](_0x54c29=>(_0x62144(),_0x54c29),()=>{const _0x283a82=_0x16285a();return null==_0x283a82?(_0x62144(),_0x53d576([0x56,0x61,0x6c,0x69,0x64])):_0x53d576(_0x38f182-_0x283a82>(0x288e4f1e^_0x57b028)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53d576([0x74,0x68,0x65,0x6e])](_0x2ca748)[_0x53d576([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ca748(_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6179db=0xcb4259e^_0x57b028;function _0x62144(){const _0x155ac2=_0x53d576([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b6857(_0x176cea(_0x11a6d0)),_0x4a15c2=_0x1a2bd1(_0x5b6857(window[_0x53d576([0x4d,0x61,0x74,0x68])][_0x53d576([0x63,0x65,0x69,0x6c])](_0x38f182/_0x6179db)));window[_0x53d576([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53d576([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x155ac2,_0x4a15c2);}function _0x16285a(){const _0x48aeee=_0x53d576([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b6857(_0x176cea(_0x11a6d0)),_0x2264ce=window[_0x53d576([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53d576([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48aeee);return _0x2264ce?window[_0x53d576([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a2bd1(_0x2264ce),0x10)*_0x6179db:null;}function _0x545de3(_0x12607c){return new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2edc5f,_0x355670)=>{_0x12607c[_0x53d576([0x74,0x68,0x65,0x6e])](_0x2edc5f,_0x355670),window[_0x53d576([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x355670,0xc831fde^_0x57b028);});}}_0xdc253d[_0x53d576([0x6f,0x6e])](_0x53d576([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f3bdd,_0x46786a)=>{if(_0x46786a[0x0]!=_0x11a6d0)return _0x2ca748(_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46786a[0x1]={..._0x46786a[0x1],[_0x53d576([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fe59f};},{[_0x53d576([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53d576([0x68,0x69,0x67,0x68])}),_0xdc253d[_0x53d576([0x6f,0x6e])](_0x53d576([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40fdf5=>{_0x308ff1(_0x40fdf5[_0x53d576([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15263d=!0x0,_0xa0f252(_0x40fdf5[_0x53d576([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53d576([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53d576([0x6c,0x6f,0x77])}),_0x31603b[_0x53d576([0x74,0x68,0x65,0x6e])](()=>{_0x15263d||_0x2ca748(_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e3447(){return _0xdc253d[_0x53d576([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53d576([0x76,0x69,0x65,0x77])][_0x53d576([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53d576([0x61,0x75,0x74,0x6f]);}function _0x16f4b5(){_0xdc253d[_0x53d576([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53d576([0x76,0x69,0x65,0x77])][_0x53d576([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53d576([0x61,0x75,0x74,0x6f]);}}function _0x334b0f(_0x597722){const _0x447ecb=[new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5869dc=>setTimeout(_0x5869dc,0xc8bf5d2^_0x57b028)),_0x31603b[_0x53d576([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48b69d=>{let _0x497a5b=0x0;_0xdc253d[_0x53d576([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d576([0x6f,0x6e])](_0x53d576([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fc03,_0x2cba23)=>{_0x2cba23[0x0][_0x53d576([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x497a5b++,_0x497a5b==(0xc82cef6^_0x57b028)&&(_0x48b69d(),_0x4fc03[_0x53d576([0x6f,0x66,0x66])]());});}))];return window[_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53d576([0x72,0x61,0x63,0x65])](_0x447ecb)[_0x53d576([0x74,0x68,0x65,0x6e])](()=>_0x597722);}async function _0x3720f1(){await _0x31603b,_0xdc253d[_0x53d576([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d576([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36f3a7,_0xdc253d[_0x53d576([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d576([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36f3a7,_0xdc253d[_0x53d576([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53d576([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b7ba4(_0x4afda3){const _0x59c122=_0x2cf651();_0xdc253d[_0x59c122]=_0x53d576([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4afda3,_0x4afda3!=_0x53d576([0x56,0x61,0x6c,0x69,0x64])&&_0x3720f1();}function _0x2cf651(){const _0x2af83a=window[_0x53d576([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53d576([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53d576([0x6e,0x6f,0x77])]())[_0x53d576([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53d576([0x2e]),'');let _0xd2af4e=_0x53d576([0x49]);for(let _0x221468=0x0;_0x221468<_0x2af83a[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x221468+=0x2){let _0x1bdb22=window[_0x53d576([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2af83a[_0x53d576([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x221468,_0x221468+0x2));_0x1bdb22>=_0x12ac7a[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bdb22-=_0x12ac7a[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd2af4e+=_0x12ac7a[_0x1bdb22];}return _0xd2af4e;}function _0x3d4809(){const _0x715821=_0x591162[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e]));if(0x3!=_0x715821[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b8a43(_0x715821[0x1]);function _0x2b8a43(_0x18deae){const _0x30c4d8=_0x2aa26d(_0x18deae);return _0x30c4d8&&_0x2bc71a()?_0x30c4d8:null;function _0x2bc71a(){const _0x433a26=_0x30c4d8[_0x53d576([0x6a,0x74,0x69])],_0x35af59=window[_0x53d576([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x433a26[_0x53d576([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x433a26[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52ae41={..._0x30c4d8,[_0x53d576([0x6a,0x74,0x69])]:_0x433a26[_0x53d576([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x433a26[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52ae41[_0x53d576([0x76,0x63])],_0x176cea(_0x52ae41)==_0x35af59;}}}async function _0xeb50a6(){let _0x10ba40=!0x0;try{const _0x2e41e2=_0x591162[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e])),[_0x3ddb61,_0x3f531d,_0x5152ec]=_0x2e41e2;return _0x16c5e7(_0x3ddb61),await _0x39de00(_0x3ddb61,_0x3f531d,_0x5152ec),_0x10ba40;}catch{return!0x1;}function _0x16c5e7(_0x5f1252){const _0x10421f=_0x2aa26d(_0x5f1252);_0x10421f&&_0x10421f[_0x53d576([0x61,0x6c,0x67])]==_0x53d576([0x45,0x53,0x32,0x35,0x36])||(_0x10ba40=!0x1);}async function _0x39de00(_0x53feea,_0x261583,_0x3dd711){const _0x32772a=window[_0x53d576([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53d576([0x66,0x72,0x6f,0x6d])](_0x4bbcf7(_0x3dd711),_0x1b7d16=>_0x1b7d16[_0x53d576([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47433e=new window[(_0x53d576([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53d576([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53feea+_0x53d576([0x2e])+_0x261583),_0x3dafbc=window[_0x53d576([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53d576([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3dafbc)return;const _0x1ebe88=await _0x3dafbc[_0x53d576([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53d576([0x6a,0x77,0x6b]),_0x33d9d0,{[_0x53d576([0x6e,0x61,0x6d,0x65])]:_0x53d576([0x45,0x43,0x44,0x53,0x41]),[_0x53d576([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53d576([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53d576([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3dafbc[_0x53d576([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53d576([0x6e,0x61,0x6d,0x65])]:_0x53d576([0x45,0x43,0x44,0x53,0x41]),[_0x53d576([0x68,0x61,0x73,0x68])]:{[_0x53d576([0x6e,0x61,0x6d,0x65])]:_0x53d576([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ebe88,_0x32772a,_0x47433e)||(_0x10ba40=!0x1);}}function _0x2aa26d(_0x59e7a3){return _0x59e7a3[_0x53d576([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53d576([0x65,0x79]))?JSON[_0x53d576([0x70,0x61,0x72,0x73,0x65])](_0x4bbcf7(_0x59e7a3)):null;}function _0x4bbcf7(_0x22fadd){return window[_0x53d576([0x61,0x74,0x6f,0x62])](_0x22fadd[_0x53d576([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53d576([0x2b]))[_0x53d576([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53d576([0x2f])));}function _0x176cea(_0x596609){let _0x2ce96d=0x1505;function _0x24efa3(_0x5119a9){for(let _0x484564=0x0;_0x484564<_0x5119a9[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x484564++){const _0x1b21d2=_0x5119a9[_0x53d576([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x484564);_0x2ce96d=(_0x2ce96d<<0x5)+_0x2ce96d+_0x1b21d2,_0x2ce96d&=_0x2ce96d;}}function _0x2693f1(_0x3771f9){Array[_0x53d576([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3771f9)?_0x3771f9[_0x53d576([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2693f1):_0x3771f9&&typeof _0x3771f9==_0x53d576([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53d576([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3771f9)[_0x53d576([0x73,0x6f,0x72,0x74])]()[_0x53d576([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d04d3,_0x322b91])=>{_0x24efa3(_0x4d04d3),_0x2693f1(_0x322b91);}):_0x24efa3(window[_0x53d576([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3771f9));}return _0x2693f1(_0x596609),_0x2ce96d>>>0x0;}function _0x5b6857(_0x24e866){return _0x24e866[_0x53d576([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53d576([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53d576([0x30]));}function _0x1a2bd1(_0x402683){return _0x402683[_0x53d576([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53d576([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53d576([0x6a,0x6f,0x69,0x6e])]('');}function _0x36f3a7(){}function _0x53d576(_0x2ba320){return _0x2ba320['map'](_0x18d6e8=>String['fromCharCode'](_0x18d6e8))['join']('');}_0x5b7ba4(await _0x5ed0d3());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x215ce1=this['editor'],_0x38df76=_0x215ce1['editing']['view'],_0x1b6902=this['_getAttachedDomRoot']();if(!_0x1b6902||0x0===_0x1b6902['childElementCount'])return void _0x215ce1['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x364ab3,pageHeight:_0x509f32}=_0x215ce1['config']['get']('pagination'),{top:_0x5d8236,left:_0x577045,bottom:_0x31c88a,right:_0x2a6758}=this['_configuredPaddings'];this['_pagesContainer']=new _0x396d63(_0x215ce1['locale']);const _0x4a7231=this['_pagesContainer'];_0x4a7231['set']('class',''),_0x4a7231['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x364ab3,'width':_0x364ab3,'height':'calc(\x20'+_0x509f32+'\x20-\x20'+_0x5d8236+'\x20-\x20'+_0x31c88a+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x2a6758+'\x200\x20'+_0x577045,'columnGap':'calc('+_0x577045+'\x20+\x20'+_0x2a6758+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x4a7231['bindTemplate']['to']('class')}}),_0x4a7231['render'](),_0x1b6902['parentNode']['insertBefore'](_0x4a7231['element'],_0x1b6902['nextSibling']),this['listenTo'](_0x38df76,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x1802eb of this['editor']['editing']['view']['domRoots']['values']())if(_0x1802eb['ownerDocument']['body']['contains'](_0x1802eb))return _0x1802eb;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x1100ba=this['editor']['editing']['view'],_0x52a72b=this['_pagesContainer'],_0x253206=this['_getAttachedDomRoot']();if(!_0x253206)return Promise['resolve']();for(_0x52a72b['class']=['ck-reset','ck-pagination-view',..._0x253206['classList']]['join']('\x20');_0x52a72b['element']['firstChild'];)_0x52a72b['element']['firstChild']['remove']();const _0x305b8d=Array['from'](_0x1100ba['domRoots']);_0x305b8d['sort'](([,_0x2d1bb2],[,_0x5e5d01])=>_0x2d1bb2['compareDocumentPosition'](_0x5e5d01)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0xb22679,_0x53fde7]of _0x305b8d){const _0x238fe8=_0x53fde7['cloneNode'](!0x0);'attributeStyleMap'in _0x238fe8&&_0x238fe8['attributeStyleMap']['clear'](),_0x238fe8['dataset']['rootName']=_0xb22679,_0x238fe8['className']='ck-content\x20ck-pagination_enabled',_0x238fe8['removeAttribute']('id'),_0x238fe8['tabIndex']=-0x1,_0x52a72b['element']['append'](_0x238fe8);}const _0x239238=Array['from'](_0x52a72b['element']['querySelectorAll']('img'));return function(_0x2be68e){return Promise['all'](_0x2be68e['map'](_0x26fabd=>Promise['race']([b(_0x26fabd),k(0x3e8)])));}(_0x239238)['then'](()=>{for(const _0x17868a of _0x239238['filter'](_0x74225a=>!_0x74225a['closest']('table')))if(_0x17868a['offsetParent']){const _0x271326=_0x128704['window']['getComputedStyle'](_0x17868a),_0x215345=_0x128704['document']['createElement']('span');for(const _0x2083c3 of _0x271326)_0x215345['style']['setProperty'](_0x2083c3,_0x271326[_0x2083c3]);_0x215345['style']['backgroundImage']='url(\x20'+_0x17868a['src']+'\x20)',_0x215345['style']['breakInside']='avoid','PICTURE'==_0x17868a['parentElement']?.['tagName']?_0x17868a['parentElement']['replaceWith'](_0x215345):_0x17868a['replaceWith'](_0x215345);}return new Promise(_0x4e3d2f=>_0x128704['window']['requestAnimationFrame'](()=>_0x4e3d2f()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x5ee4af=this['_pagesContainer']['element'];if(!_0x5ee4af['ownerDocument']['body']['contains'](_0x5ee4af))return;const _0x4f9fb7=new _0x4b1206(_0x5ee4af)['excludeScrollbarsAndBorders'](),_0x4ebd57=Math['floor'](_0x4f9fb7['width']+0x64),_0x5b8bcc=L(_0x5ee4af,Math['floor'](_0x4f9fb7['left']-_0x5ee4af['scrollLeft']),_0x4ebd57,_0x4f9fb7['height'])['map'](_0x69f61e=>this['_mapPageStarterInfoToPageBreakInfo'](_0x69f61e))['filter'](_0x36d63a=>!0x1!==_0x36d63a);_0x5b8bcc['every'](_0x234cd8=>!!_0x234cd8)&&(this['pageBreaks']=_0x5b8bcc);}['_mapPageStarterInfoToPageBreakInfo'](_0x167a90){const _0x5a9b47=this['editor']['editing']['view'],_0x1e6425=this['editor']['editing']['mapper'],_0x3ea8a2=_0x5a9b47['domConverter'],_0x421117=_0x167a90['path']['shift'](),_0x3e95e4=this['_pagesContainer']['element']['childNodes'][_0x421117]['dataset']['rootName'],_0x25e89a=_0x5a9b47['getDomRoot'](_0x3e95e4);if(!_0x25e89a)return null;const _0x20dda6=function(_0x59033d,_0x18c300){let _0x57095f=_0x59033d;for(const _0x4d3fc1 of _0x18c300['path']){if(!_0x57095f)return null;_0x57095f=_0x57095f['childNodes'][_0x4d3fc1];}return _0x57095f;}(_0x25e89a,_0x167a90);if(!_0x20dda6)return null;const _0x5345d6=_0x3ea8a2['domPositionToView'](_0x20dda6,_0x167a90['textOffset']||0x0);return _0x5345d6?'manual'==_0x167a90['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x5345d6,_0x20dda6):'text'==_0x167a90['type']&&_0x1e6425['toModelPosition'](_0x5345d6)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x5345d6,_0x20dda6,_0x167a90['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x5345d6,_0x20dda6,_0x167a90['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x199e0c,_0x3e3fcc){const _0x23dfc4=this['editor']['model'],_0x1c71d9=this['editor']['editing']['mapper']['toModelElement'](_0x199e0c['parent']),_0x584eb8=_0x23dfc4['createRangeOn'](_0x1c71d9);return new PageBreakInfo({'type':'manual','modelRange':_0x584eb8,'domNode':_0x3e3fcc,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x215c5a,_0x1090b5,_0x759f2){const _0x27659f=this['editor']['model'],_0x101b3b=this['editor']['editing']['mapper'],_0x3e0edc=this['editor']['editing']['view']['domConverter'];if(_0x759f2>=_0x1090b5['length'])return null;const _0x39e1a9=_0x101b3b['toModelPosition'](_0x215c5a),_0x15c021=_0x27659f['createRange'](_0x39e1a9),_0x3c070c=_0x101b3b['findMappedViewAncestor'](_0x215c5a),_0x42b3c3=_0x3e0edc['mapViewToDom'](_0x3c070c);return new PageBreakInfo({'type':'text','modelRange':_0x15c021,'domNode':_0x1090b5,'offset':w(_0x1090b5,_0x759f2,_0x42b3c3)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x34cfe2,_0x15f96f,_0x4a4795){const _0x47bc80=this['editor']['model'],_0x1ddd6b=this['editor']['editing'],_0x7ac3bf=_0x1ddd6b['mapper'],_0xf6600d=_0x1ddd6b['view']['domConverter'],_0x240446=_0x7ac3bf['findMappedViewAncestor'](_0x34cfe2),_0x2e9969=_0x7ac3bf['toModelElement'](_0x240446);if(!_0x2e9969||_0x2e9969['is']('element','$root'))return!0x1;const _0x275c9e=function(_0x37f59b){const _0x2c446f=_0x37f59b['parent'],_0x1e36a4=_0x2c446f['root']['document']['model'],_0x12b09a=_0x2c446f['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x40f537=null;for(const _0x4afeb5 of _0x12b09a){if(_0x4afeb5['is']('rootElement'))return _0x40f537;if(!_0x1e36a4['createPositionBefore'](_0x4afeb5)['isTouching'](_0x37f59b))return _0x40f537;_0x40f537=_0x4afeb5;}}(_0x47bc80['createPositionBefore'](_0x2e9969)),_0xab3cc5=_0x275c9e||_0x2e9969;let _0x48c497=_0x7ac3bf['toViewElement'](_0xab3cc5),_0x41c527=_0x47bc80['createRangeOn'](_0xab3cc5);const _0xb421fc=_0x47bc80['createPositionBefore'](_0xab3cc5)['nodeBefore'];if(_0xb421fc&&_0xb421fc['is']('element','imageBlock')){const _0xb46741=_0x7ac3bf['toViewElement'](_0xb421fc),_0x3611be=_0xf6600d['mapViewToDom'](_0xb46741),_0x1fae6c=_0x128704['window']['getComputedStyle'](_0x3611be)['float'];'left'!=_0x1fae6c&&'right'!=_0x1fae6c||(_0x41c527=_0x47bc80['createRangeOn'](_0xb421fc));}for(;_0x48c497['parent']!==_0x48c497['root']&&0x0===_0x48c497['index'];)_0x48c497=_0x48c497['parent'];const _0x6a8d22=new _0x4b1206(S(_0x15f96f)?_0x15f96f:y(_0x15f96f)),_0x21b2f6=_0x4a4795?_0x6a8d22['height']-_0x4a4795:0x0,_0x377b80=_0xf6600d['mapViewToDom'](_0x48c497),_0x46f56f=new _0x4b1206(_0x377b80);return new PageBreakInfo({'type':'element','modelRange':_0x41c527,'domNode':_0x377b80,'offset':Math['round'](_0x21b2f6)||_0x240446!=P(_0x34cfe2)?_0x21b2f6+_0x6a8d22['top']-_0x46f56f['top']:0x0});}get['_configuredPaddings'](){const _0x1fb3b2=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x1fb3b2);}static['_findPageStarterInfos'](_0x5018db,_0x228b52,_0x190ca8,_0x36ad96,_0x86a77d){return L(_0x5018db,_0x228b52,_0x190ca8,_0x36ad96,_0x86a77d);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x248e83,modelRange:_0x412c3c,domNode:_0x1c1c85,offset:_0x218197}){this['type']=_0x248e83,this['modelRange']=_0x412c3c,this['_domNode']=_0x1c1c85,this['_offset']=_0x218197;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x491dbc=new _0x4b1206(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x491dbc['top']+_0x491dbc['height']/0x2:_0x491dbc['top']+this['_offset'];}}function w(_0x3f4151,_0x3b223d,_0x3f02d8){const _0x345b06=y(_0x3f4151),_0x7c85de=function(_0x99e737){const _0x218ed8=_0x128704['document']['createRange']();return _0x218ed8['selectNodeContents'](_0x99e737),_0x218ed8;}(_0x3f02d8);let _0x2eb634;_0x2eb634=0x0==_0x3b223d?x(_0x7c85de['startContainer'],_0x7c85de['startOffset'],_0x3f4151['parentNode'],Array['from'](_0x3f4151['parentNode']['childNodes'])['indexOf'](_0x3f4151)):x(_0x7c85de['startContainer'],_0x7c85de['startOffset'],_0x3f4151,_0x3b223d);const _0x5249fc=x(_0x3f4151,_0x3b223d,_0x7c85de['endContainer'],_0x7c85de['endOffset']),_0x366613=new _0x4b1206(_0x2eb634)['bottom'];return(new _0x4b1206(_0x5249fc)['top']+_0x366613)/0x2-new _0x4b1206(_0x345b06)['top'];}function P(_0x5e6e62){let _0x42c449=_0x5e6e62['parent'];for(;_0x42c449['is']('$text')||_0x42c449['is']('attributeElement');)_0x42c449=_0x42c449['parent'];return _0x42c449;}function b(_0x47189c){return _0x47189c['hasAttribute']('width')&&_0x47189c['hasAttribute']('height')?Promise['resolve']():new Promise(_0x39a029=>{function _0x1c2fb9(){_0x47189c['removeEventListener']('load',_0x1c2fb9),_0x47189c['removeEventListener']('error',_0x1c2fb9),_0x39a029();}_0x47189c['complete']?_0x39a029():(_0x47189c['addEventListener']('load',_0x1c2fb9),_0x47189c['addEventListener']('error',_0x1c2fb9));});}function k(_0x359597){return new Promise(_0x28e56a=>setTimeout(_0x28e56a,_0x359597));}function y(_0x1f585f){const _0x122d95=_0x128704['document']['createRange']();return _0x122d95['selectNode'](_0x1f585f),_0x122d95;}function v(_0x214bd0,_0x5378d5,_0x4f3961){const _0x186b7f=_0x128704['document']['createRange']();return _0x186b7f['setStart'](_0x214bd0,_0x5378d5),_0x186b7f['setEnd'](_0x214bd0,_0x4f3961),_0x186b7f;}function x(_0x40be65,_0x24d25f,_0xd9d0c8,_0x31c47d){const _0xf17b55=_0x128704['document']['createRange']();return _0xf17b55['setStart'](_0x40be65,_0x24d25f),_0xf17b55['setEnd'](_0xd9d0c8,_0x31c47d),_0xf17b55;}function L(_0x4ac0e0,_0x2259d0,_0x55171c,_0x3441fb,_0x4ef1db){const _0x562a78=[];for(const [_0x2e2c9c,_0x56cc9]of _0x4ac0e0['childNodes']['entries']()){let _0x6a2dd1=[];S(_0x56cc9)&&_0x56cc9['offsetParent']&&['static','relative']['includes'](_0x128704['window']['getComputedStyle'](_0x56cc9)['position'])?_0x6a2dd1=N(_0x56cc9,_0x2e2c9c,_0x2259d0,_0x55171c,_0x3441fb,_0x4ef1db):I(_0x56cc9)&&(_0x6a2dd1=_(_0x56cc9,_0x2e2c9c,_0x2259d0,_0x55171c,_0x4ef1db)),_0x6a2dd1['length']&&(_0x562a78['push'](..._0x6a2dd1),_0x2259d0+=_0x6a2dd1['length']*_0x55171c,_0x4ef1db=!0x1);}return _0x562a78;}function N(_0x15ce2f,_0x154292,_0x14ede0,_0x1a7ba6,_0x5e10f0,_0x6c9f00){const _0x2cf9a7=[];var _0xdeec5c;if((_0xdeec5c=_0x15ce2f['previousSibling'])&&S(_0xdeec5c)&&Boolean(_0xdeec5c['classList']['contains']('page-break')||_0xdeec5c['closest']('.page-break'))&&(_0x2cf9a7['push']({'type':'manual','offset':0x0,'path':[_0x154292-0x1]}),_0x6c9f00=!0x0),'table-row'==_0x128704['window']['getComputedStyle'](_0x15ce2f)['display']){let _0x4281a6=0x0,_0x52b068=!0x1;for(const _0x38eed2 of _0x15ce2f['getClientRects']())_0x4281a6+=_0x38eed2['height'],_0x38eed2['left']>=_0x14ede0&&(_0x52b068=!0x0);if(_0x4281a6<_0x5e10f0&&_0x52b068)return _0x6c9f00||_0x2cf9a7['push']({'type':'element','offset':0x0,'path':[_0x154292]}),_0x2cf9a7;}const _0x5da145=_0x15ce2f['closest']('figure.image');if(_0x5da145&&function(_0x14223b){let _0x1396a4=!0x1;const _0x452792=_0x14223b['parentElement'],_0x18a6ab=_0x452792['dataset']['rootName'],_0x47f841=_0x14223b['nextElementSibling'],_0x1cac81=_0x14223b['previousElementSibling'],_0x14df55=_0x47f841&&_0x128704['window']['getComputedStyle'](_0x47f841)['float'],_0x46cda7=_0x47f841&&'ck-fake-selection-container'===_0x47f841['className'];!_0x18a6ab||_0x47f841||_0x1cac81||(_0x1396a4=!0x0),_0x18a6ab&&!_0x1cac81&&_0x46cda7&&(_0x1396a4=!0x0),_0x18a6ab&&!_0x1cac81&&'none'!==_0x14df55&&(_0x1396a4=!0x0);if(_0x1396a4)return!0x1;return!0x0;}(_0x5da145)){const _0x494106=_0x128704['window']['getComputedStyle'](_0x5da145)['float'];if('left'==_0x494106||'right'==_0x494106)return _0x2cf9a7;}const _0x5bf8bf=L(_0x15ce2f,_0x14ede0,_0x1a7ba6,_0x5e10f0,_0x6c9f00);if(_0x5bf8bf['length']){for(const _0x50e26c of _0x5bf8bf)_0x2cf9a7['push']({'type':_0x50e26c['type'],'offset':_0x50e26c['offset'],'textOffset':_0x50e26c['textOffset'],'path':[_0x154292,..._0x50e26c['path']]}),_0x14ede0+=_0x1a7ba6,_0x6c9f00=!0x1;return _0x2cf9a7;}return _0x2cf9a7['push'](...function(_0x131bc6,_0x3fb2c5,_0x421ef0,_0x3876f2,_0x4ad4b3){const _0xf6dc51=[];if('table-cell'==_0x128704['window']['getComputedStyle'](_0x131bc6)['display'])return[];const _0xfa65f=[];for(const _0x2cd984 of _0x131bc6['getClientRects']())if(_0x2cd984['left']>=_0x421ef0){for(const _0x4117bc of _0xfa65f)_0x4117bc['height']+=_0x2cd984['height'];_0xfa65f['push']({'height':_0x2cd984['height']}),_0x421ef0+=_0x3876f2;}for(const _0x217f7c of _0xfa65f)_0x4ad4b3||_0xf6dc51['push']({'type':'element','offset':_0x217f7c['height'],'textOffset':0x0,'path':[_0x3fb2c5]}),_0x4ad4b3=!0x1;return _0xf6dc51;}(_0x15ce2f,_0x154292,_0x14ede0,_0x1a7ba6,_0x6c9f00)),_0x2cf9a7;}function _(_0x587071,_0x32e330,_0x5e6629,_0x4cdfa0,_0x18cc0d){const _0x17cb3=y(_0x587071),_0xa59823=[];let _0xaa6277=0x0;for(const _0x5ae904 of _0x17cb3['getClientRects']())if(_0x5ae904['left']>=_0x5e6629){const _0x1d72f5=R(_0x587071,_0xaa6277,_0x5e6629,_0x4cdfa0);_0x18cc0d||_0xa59823['push']({'type':'text','path':[_0x32e330],'textOffset':_0x1d72f5}),_0xaa6277=_0x1d72f5,_0x5e6629+=_0x4cdfa0,_0x18cc0d=!0x1;}return _0xa59823;}function R(_0x23eaef,_0x325e40,_0x8a29e2,_0x2135e2){let _0x5623fc=_0x325e40,_0x5ce808=_0x23eaef['length'];for(;_0x5ce808-_0x5623fc>0x1;){const _0x160d28=Math['ceil']((_0x5623fc+_0x5ce808)/0x2);E(v(_0x23eaef,_0x5623fc,_0x160d28),_0x8a29e2,_0x2135e2)?_0x5ce808=_0x160d28:_0x5623fc=_0x160d28;}return _0x5623fc;}function E(_0x405e35,_0x8415dd,_0x561a5a){for(const _0x44e304 of _0x405e35['getClientRects']())if(_0x44e304['left']>=_0x8415dd&&_0x44e304['left']<_0x8415dd+_0x561a5a)return!0x0;return!0x1;}function S(_0x42edd7){return _0x42edd7['nodeType']==Node['ELEMENT_NODE'];}function I(_0x66e1b7){return _0x66e1b7['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3df125('px');class LineView extends _0x396d63{constructor(){super();const _0x271030=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x271030['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x271030['if']('isVisible','ck-hidden',_0x22af79=>!_0x22af79)],'style':{'left':_0x271030['to']('left',_0xaaab7e=>B(_0xaaab7e)),'top':_0x271030['to']('top',_0x33627a=>B(_0x33627a)),'width':_0x271030['to']('width',_0x2fad1a=>B(_0x2fad1a))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x51d797){this['_viewCollection']=_0x51d797['ui']['view']['body'];}['destroy'](){for(const _0x2577d7 of this['_hiddenLines'])_0x2577d7['destroy']();}['cleanLines'](){for(const _0x566d9c of this['_visibleLines'])_0x566d9c['isVisible']=!0x1,this['_hiddenLines']['add'](_0x566d9c);this['_visibleLines']['clear']();}['showLine'](_0x180f47,_0x5cd2a0,_0x44334c,_0x23f53e){let _0x522fd7;this['_hiddenLines']['size']?(_0x522fd7=_0x17c259(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x522fd7)):_0x522fd7=new LineView(),_0x522fd7['set']({'pageNumber':_0x23f53e,'left':_0x180f47,'top':_0x5cd2a0,'width':_0x44334c}),_0x522fd7['isVisible']=!0x0,this['_viewCollection']['has'](_0x522fd7)||this['_viewCollection']['add'](_0x522fd7),this['_visibleLines']['add'](_0x522fd7);}['setViewCollection'](_0x2902ce){for(const _0x5c302a of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x5c302a)&&this['_viewCollection']['remove'](_0x5c302a);this['_viewCollection']=_0x2902ce;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x1d58ec{['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',(_0x38eba8,_0x3c06a5,_0x322ecf)=>{_0x322ecf||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x322ecf);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x4fc784){if(!this['isEnabled'])return;const _0x53b79e=_0x4fc784>0x1?this['_getPageBreakLineOffset'](_0x4fc784-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x53b79e-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x27ec2c['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x5e0b0c=this['editor'],_0x199003=this['_getAttachedDomRoot']();_0x199003?(this['_scrollableEditingRootDomAncestor']&&_0x5e0b0c['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x75ccc6){let _0x27d77c=_0x75ccc6;do{_0x27d77c=_0x27d77c['parentElement'];const _0x3091e4=_0x128704['window']['getComputedStyle'](_0x27d77c)['overflowY'];if('auto'==_0x3091e4||'scroll'==_0x3091e4)break;}while('BODY'!=_0x27d77c['tagName']);return _0x27d77c;}(_0x199003),_0x5e0b0c['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x331a31(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5e0b0c['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x251cfd=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x251cfd['ui']['view']['listenTo'](_0x128704['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x251cfd['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x2aca03 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2aca03['ownerDocument']['body']['contains'](_0x2aca03))return _0x2aca03;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x3878cd=this['_getAttachedDomRoot'](),_0x2196a0=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x3878cd||0x1==_0x2196a0['length'])return void(this['pageNumber']=0x1);const _0x25b72a=new _0x4b1206(_0x3878cd)['excludeScrollbarsAndBorders'](),_0x537c08=new _0x4b1206(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x14130e=_0x537c08['top']+_0x537c08['height']/0x3;let _0x27b352=!0x1;const _0x45bfc6=[];for(let _0x3f6e60=0x1;_0x3f6e60<_0x2196a0['length'];_0x3f6e60++){const _0x300355=this['_getPageBreakLineOffset'](_0x3f6e60,_0x537c08);if(!_0x300355)continue;const _0x37c29a=_0x537c08['top']+_0x300355-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x45bfc6['push']({'pageOffsetTop':_0x37c29a,'domRootRect':_0x25b72a,'domScrollableRect':_0x537c08,'pageNumber':_0x3f6e60}),_0x37c29a>_0x14130e&&!_0x27b352&&(this['pageNumber']=_0x3f6e60,_0x27b352=!0x0);}this['_renderPageBreakLines'](_0x45bfc6),_0x27b352||(this['pageNumber']=_0x2196a0['length']);}['_renderPageBreakLines'](_0x3cf89d){const {scrollX:_0xc3f2f8,scrollY:_0x33e26a}=_0x128704['window'];if(_0x3cf89d['length']){for(const {domScrollableRect:_0x46e0a0,pageOffsetTop:_0x529b7b,domRootRect:_0x762f3c,pageNumber:_0x165faa}of _0x3cf89d)_0x46e0a0['top']<_0x529b7b&&_0x529b7b<_0x46e0a0['bottom']&&this['linesRepository']['showLine'](_0x762f3c['left']+_0xc3f2f8,_0x529b7b+_0x33e26a,_0x762f3c['width'],_0x165faa+0x1);}}['_getPageBreakLineOffset'](_0x4bee14,_0x7882b4=null){const _0xf18406=this['_paginationLookupPlugin']['pageBreaks'][_0x4bee14]['offset'];return _0xf18406?(_0x7882b4||(_0x7882b4=new _0x4b1206(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xf18406-_0x7882b4['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x46d279,_0x5b48a1=!0x0){const _0x2c8159=this['editor']['editing']['view'];_0x2c8159['change'](_0x5ca8ab=>{for(const _0x24d225 of _0x2c8159['document']['roots'])_0x5b48a1?_0x5ca8ab['addClass'](_0x46d279,_0x24d225):_0x5ca8ab['removeClass'](_0x46d279,_0x24d225);});}}function O(_0x4fa172,_0x59170d,..._0x467e22){const t=_0x4fa172['t'];switch(_0x59170d){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)',..._0x467e22);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 _0x59170d;}}class PaginationEditing extends _0x1d58ec{['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 _0x7b0f6b=this['editor']['plugins']['get']('Pagination'),_0x5883b7=this['editor']['plugins']['get'](PaginationLookup),_0x305948=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x7b0f6b),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x305948),this['listenTo'](_0x5883b7,'change:pageBreaks',(_0x2b3a1a,_0x134551,_0x140b7f,_0x4d75ca)=>{this['totalPages']=_0x140b7f['length'],this['_updatePageBreakMarkers'](_0x140b7f,_0x4d75ca);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x595bca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x500e88;for(const _0x2dee88 in _0x595bca){const _0x10a040=_0x2dee88,_0x2dc422=_0x595bca[_0x10a040];if('paginationLicenseKeyValid'==_0x2dc422||'paginationLicenseKeyInvalid'==_0x2dc422||'paginationLicenseKeyExpired'==_0x2dc422||'paginationLicenseKeyDomainLimit'==_0x2dc422||'paginationLicenseKeyNotAllowed'==_0x2dc422||'paginationLicenseKeyEvaluationLimit'==_0x2dc422||'paginationLicenseKeyUsageLimit'==_0x2dc422){delete _0x595bca[_0x10a040],_0x500e88=_0x2dc422,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x500e88&&_0x595bca['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x500e88&&_0x595bca['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x500e88&&_0x595bca['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x500e88&&_0x595bca['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x500e88&&_0x595bca['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x500e88&&_0x595bca['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x3398d8){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x3398d8));}['moveSelectionToPage'](_0x2dc98f){if(!this['isEnabled'])return;const _0x3fdc38=this['editor'],_0x3af62a=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x2dc98f-0x1];_0x3af62a&&_0x3fdc38['model']['change'](_0x243bab=>{switch(_0x3af62a['type']){case'manual':{const _0x26f855=_0x3fdc38['model']['schema']['getNearestSelectionRange'](_0x3af62a['modelRange']['end'],'forward');_0x243bab['setSelection'](_0x26f855);break;}case'element':{const _0x155028=_0x3fdc38['model']['schema']['getNearestSelectionRange'](_0x3af62a['modelRange']['start'],'forward');_0x243bab['setSelection'](_0x155028);break;}case'text':{const _0x279378=_0x3af62a['modelRange']['start'];if(_0x279378['textNode']&&'\x20'===_0x279378['textNode']['data'][_0x279378['offset']]){const _0x12defd=_0x243bab['createPositionAt'](_0x279378['parent'],_0x279378['offset']+0x1);_0x243bab['setSelection'](_0x12defd);}else _0x243bab['setSelection'](_0x3af62a['modelRange']);}}_0x3fdc38['editing']['view']['focus']();});}['goToNextPage'](){const _0x9a2b58=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x9a2b58),this['scrollToPage'](_0x9a2b58);}['goToPreviousPage'](){const _0x3a346b=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x3a346b),this['scrollToPage'](_0x3a346b);}['_updatePageBreakMarkers'](_0x4025da,_0x4c3314){const _0x4a7125=this['editor']['model'];this['isEnabled']&&_0x4a7125['change'](_0x429b33=>{for(let _0x326641=0x1;_0x326641<_0x4025da['length'];_0x326641++){const _0x4794f0=_0x4025da[_0x326641]['modelRange'],_0x492009='pagination:'+(_0x326641+0x1);_0x4a7125['markers']['has'](_0x492009)?_0x429b33['updateMarker'](_0x492009,{'range':_0x4794f0}):_0x429b33['addMarker'](_0x492009,{'range':_0x4794f0,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0xee8eb5=_0x4025da['length'];_0xee8eb5<_0x4c3314['length'];_0xee8eb5++){const _0x2e9379='pagination:'+(_0xee8eb5+0x1);_0x4a7125['markers']['has'](_0x2e9379)&&_0x429b33['removeMarker'](_0x2e9379);}});}['_setUpDataDowncastConversion'](){const _0x1a7d17='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x39c15b=>{_0x39c15b['on']('addMarker:'+_0x1a7d17,(_0x4a292b,{markerRange:_0x75335e,markerName:_0x5a0173},_0x41942c)=>{if(!_0x41942c['options']['pagination'])return;if(!_0x41942c['consumable']['consume'](_0x75335e,_0x4a292b['name']))return;const _0x1f8ad7=_0x75335e['getContainedElement']();let _0x514537=_0x1f8ad7?_0x41942c['mapper']['toViewElement'](_0x1f8ad7):null;if(!_0x514537){const _0x444f36=_0x75335e['start'];if(_0x41942c['schema']['checkChild'](_0x444f36,'$text')){const _0x2e193c=_0x41942c['mapper']['toViewPosition'](_0x444f36);_0x514537=_0x41942c['writer']['createContainerElement']('span'),_0x514537['getFillerOffset']=()=>null,_0x41942c['writer']['insert'](_0x2e193c,_0x514537);}else{const _0x108de4=_0x444f36['nodeAfter'];_0x514537=_0x41942c['mapper']['toViewElement'](_0x108de4);}}for(;_0x514537['parent']!==_0x514537['root']&&0x0===_0x514537['index'];)_0x514537=_0x514537['parent'];const _0x51bb62=_0x5a0173['substring'](0xb);_0x514537['hasClass']('page-break')||(_0x41942c['writer']['setStyle']('page-break-before','always',_0x514537),_0x41942c['writer']['setAttribute']('data-pagination-page',_0x51bb62,_0x514537),_0x41942c['mapper']['bindElementToMarker'](_0x514537,_0x5a0173)),_0x4a292b['stop']();});});}['_setupKeystrokes'](){const _0x48f475=this['editor'];_0x48f475['keystrokes']['set']('Shift+Pageup',(_0x284782,_0xab9df2)=>{this['goToPreviousPage'](),_0xab9df2();}),_0x48f475['keystrokes']['set']('Shift+Pagedown',(_0x30ac72,_0x425ee6)=>{this['goToNextPage'](),_0x425ee6();}),_0x48f475['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x48f475['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x48f475['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x48f475['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x370565){return _0x370565<0x1&&(_0x370565=0x1),_0x370565>this['totalPages']&&(_0x370565=this['totalPages']),_0x370565;}}class PageNavigatorView extends _0x396d63{['pageNumberView'];constructor(_0x24605d){super(_0x24605d);const _0x4e2b3e=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x5e7329(_0x24605d,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x38e31b=>O(_0x24605d,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x38e31b)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x12f45e=>!_0x12f45e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x4e2b3e['if']('isEnabled','ck-disabled',_0x47f5da=>!_0x47f5da)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x4e2b3e['to']('totalPages')}]}]});}['render'](){super['render']();const _0x16d0a3=this['pageNumberView']['element'],_0x35e405=_0x274e6d=>{this['pageNumberView']['element']['value']=String(_0x274e6d);};_0x35e405(this['pageNumber']),this['on']('change:pageNumber',(_0x354b41,_0x37ec3e,_0x470f7d)=>{_0x35e405(_0x470f7d);}),this['listenTo'](_0x16d0a3,'keydown',(_0x455693,_0x1b8e39)=>{if('ArrowUp'===_0x1b8e39['key']||'ArrowDown'===_0x1b8e39['key'])return void _0x1b8e39['stopPropagation']();if(_0x1b8e39['keyCode']!==_0x3cbb44['enter'])return;_0x1b8e39['preventDefault']();const _0x3e1485=_0x16d0a3['valueAsNumber'];Number['isNaN'](_0x3e1485)?_0x16d0a3['value']=String(this['pageNumber']):(_0x16d0a3['checkValidity']()?this['pageNumber']=_0x3e1485:_0x3e1485>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x16d0a3['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x16d0a3['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x16d0a3,'blur',()=>{_0x16d0a3['value']=String(this['pageNumber']);}),this['listenTo'](_0x16d0a3,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x1d58ec{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x135cff=this['editor'],_0x12b893=_0x135cff['plugins']['get']('PaginationEditing');_0x135cff['ui']['componentFactory']['add']('pageNavigation',_0x3ee49a=>{const _0x1e57fb=new PageNavigatorView(_0x3ee49a);return _0x1e57fb['bind']('pageNumber')['to'](_0x12b893),_0x1e57fb['bind']('totalPages')['to'](_0x12b893),_0x1e57fb['bind']('isEnabled')['to'](_0x12b893),_0x1e57fb['on']('navigation',(_0x2964b3,_0x4d5d70)=>{_0x12b893['moveSelectionToPage'](_0x4d5d70),_0x12b893['scrollToPage'](_0x4d5d70);}),_0x1e57fb;}),_0x135cff['ui']['componentFactory']['add']('nextPage',_0x428a32=>{const _0x46ad5b=new _0x892e9b(_0x428a32);return _0x46ad5b['isEnabled']=!0x0,_0x46ad5b['label']=O(_0x135cff['locale'],'Go\x20to\x20next\x20page'),_0x46ad5b['icon']=_0x2ac44a,_0x46ad5b['tooltip']=!0x0,_0x46ad5b['keystroke']='Shift+PageDown',_0x46ad5b['bind']('isEnabled')['to'](_0x12b893),this['listenTo'](_0x46ad5b,'execute',()=>{_0x12b893['goToNextPage']();}),_0x46ad5b;}),_0x135cff['ui']['componentFactory']['add']('previousPage',_0x309fef=>{const _0x32695b=new _0x892e9b(_0x309fef);return _0x32695b['isEnabled']=!0x0,_0x32695b['label']=O(_0x135cff['locale'],'Go\x20to\x20previous\x20page'),_0x32695b['icon']=_0x55c0e8,_0x32695b['tooltip']=!0x0,_0x32695b['keystroke']='Shift+PageUp',_0x32695b['bind']('isEnabled')['to'](_0x12b893),this['listenTo'](_0x32695b,'execute',()=>{_0x12b893['goToPreviousPage']();}),_0x32695b;});}}class Pagination extends _0x1d58ec{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x39d636){super(_0x39d636),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x511c19=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x511c19),this['bind']('totalPages')['to'](_0x511c19),_0x27ec2c['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x2eaa3a){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x2eaa3a);}}export{Pagination,PaginationRenderer};
|
|
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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-alpha.2",
|
|
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.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
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",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|