@ckeditor/ckeditor5-pagination 48.8.1-alpha.0 → 48.8.1-alpha.1
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 _0x27b960}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x4f65a8,InputNumberView as _0x38c826,ButtonView as _0x35f0ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5700ae,global as _0x49a940,Rect as _0x3b7683,uid as _0x2dbc57,toUnit as _0x3e7856,first as _0x8773f9,env as _0x29ec5f,ResizeObserver as _0x5da25b,keyCodes as _0x465fb7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1ec0e5}from'es-toolkit/compat';import{IconArrowDown as _0x3a5955,IconArrowUp as _0x457cb6}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x27b960{['_recalculatePageBreaksDebounced']=_0x1ec0e5(()=>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 _0x5700ae('pagination-config-not-found',this['editor']['config']);const _0x31ee5c=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x31ee5c),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5c9858,_0x1340e3,_0x2a2526)=>{_0x2a2526&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x19cecd){const _0x361242=_0x3e9149([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]),_0x36d94d=0xc82cb1e,_0x469de2=0xc85413e^_0x36d94d,_0x5f12a6=window[_0x3e9149([0x44,0x61,0x74,0x65])][_0x3e9149([0x6e,0x6f,0x77])](),_0x20b120=_0x19cecd[_0x3e9149([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3239ff=new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47e32a=>{_0x20b120[_0x3e9149([0x6f,0x6e,0x63,0x65])](_0x3e9149([0x72,0x65,0x61,0x64,0x79]),_0x47e32a);}),_0x797a5d={[_0x3e9149([0x6b,0x74,0x79])]:_0x3e9149([0x45,0x43]),[_0x3e9149([0x75,0x73,0x65])]:_0x3e9149([0x73,0x69,0x67]),[_0x3e9149([0x63,0x72,0x76])]:_0x3e9149([0x50,0x2d,0x32,0x35,0x36]),[_0x3e9149([0x78])]:_0x3e9149([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]),[_0x3e9149([0x79])]:_0x3e9149([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]),[_0x3e9149([0x61,0x6c,0x67])]:_0x3e9149([0x45,0x53,0x32,0x35,0x36])},_0x19ccd4=_0x20b120[_0x3e9149([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e9149([0x67,0x65,0x74])](_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2abea3(){let _0x2c9a57,_0x172362=null,_0xe6daee=null;try{if(_0x19ccd4==_0x3e9149([0x47,0x50,0x4c]))return _0x3e9149([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c9a57=_0x10aa1a(),!_0x2c9a57)return _0x3e9149([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c9a57[_0x3e9149([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe6daee=_0x271a24(_0x2c9a57[_0x3e9149([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c9a57[_0x3e9149([0x6a,0x74,0x69])])),await _0x8817b1()?_0x567619()?_0x1d0223()?_0x3e9149([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52ce7c()?(_0x2c9a57[_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e9149([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x172362=_0x24cf9b(_0x3e9149([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x173de9()):_0x3e9149([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e9149([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e9149([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e9149([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d0223(){const _0x58f9c1=[_0x3e9149([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e9149([0x74,0x72,0x69,0x61,0x6c])][_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9a57[_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f12a6/0x3e8:0xe10*_0x469de2;return _0x2c9a57[_0x3e9149([0x65,0x78,0x70])]<_0x58f9c1;}function _0x567619(){const _0x397906=_0x2c9a57[_0x3e9149([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x397906&&(!!_0x397906[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9149([0x2a]))||!!_0x397906[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9149([0x50,0x41,0x47])));}function _0x52ce7c(){const _0x2e0f7b=_0x2c9a57[_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e0f7b||0x0==_0x2e0f7b[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41e794}=new URL(window[_0x3e9149([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e0f7b[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e794))return!0x0;const _0x34acba=_0x41e794[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e]));return _0x2e0f7b[_0x3e9149([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5bf4=>_0x4b5bf4[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9149([0x2a])))[_0x3e9149([0x6d,0x61,0x70])](_0x1dac23=>_0x1dac23[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e])))[_0x3e9149([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a427d=>_0x3a427d[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34acba[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e9149([0x6d,0x61,0x70])](_0x537d5d=>Array(_0x34acba[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x537d5d[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e9149([0x66,0x69,0x6c,0x6c])](_0x537d5d[0x0]===_0x3e9149([0x2a])?_0x3e9149([0x2a]):'')[_0x3e9149([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x537d5d))[_0x3e9149([0x73,0x6f,0x6d,0x65])](_0x3a4d82=>_0x34acba[_0x3e9149([0x65,0x76,0x65,0x72,0x79])]((_0x142b5f,_0x333e55)=>_0x3a4d82[_0x333e55]===_0x142b5f||_0x3a4d82[_0x333e55]===_0x3e9149([0x2a])));}function _0x173de9(){return _0x172362&&_0xe6daee?new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x568810,_0x3f4928)=>{_0x172362[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x568810,_0x3f4928),_0xe6daee[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x23bf92=>{_0x23bf92!=_0x3e9149([0x56,0x61,0x6c,0x69,0x64])&&_0x568810(_0x23bf92);},_0x3f4928);}):_0x172362||_0xe6daee||_0x3e9149([0x56,0x61,0x6c,0x69,0x64]);}}function _0x271a24(_0x44a8c7,_0x1e945e){return new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5964a0=>{if(_0x5b92bc())return _0x5964a0(_0x3e9149([0x56,0x61,0x6c,0x69,0x64]));_0xa381d0(),_0x20b120[_0x3e9149([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e9149([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ae7e0=!0x1;const _0x568041=_0x2dbc57();function _0xdc0cbd(_0x4a2889){return!!_0x4a2889&&(typeof _0x4a2889===_0x3e9149([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a2889===_0x3e9149([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a2889[_0x3e9149([0x74,0x68,0x65,0x6e])]===_0x3e9149([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a2889[_0x3e9149([0x63,0x61,0x74,0x63,0x68])]===_0x3e9149([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x484be5(_0xb8741e){_0xe56003(_0xb8741e)[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x59b55e=>{if(!_0x59b55e||_0x59b55e[_0x3e9149([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e9149([0x6f,0x6b]))return _0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc5ed61(_0xd30168(_0x568041+_0x1e945e))!=_0x59b55e[_0x3e9149([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e9149([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x4a32a8=>(_0x534d01(),_0x4a32a8),()=>{const _0x163453=_0x17c77d();return null==_0x163453?(_0x534d01(),_0x3e9149([0x56,0x61,0x6c,0x69,0x64])):_0x3e9149(_0x5f12a6-_0x163453>(0x288e4f1e^_0x36d94d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x5964a0)[_0x3e9149([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5964a0(_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c582e=0xcb4259e^_0x36d94d;function _0x534d01(){const _0x5bb054=_0x3e9149([0x6c,0x6c,0x63,0x74,0x2d])+_0xc5ed61(_0xd30168(_0x44a8c7)),_0x43345a=_0x45459c(_0xc5ed61(window[_0x3e9149([0x4d,0x61,0x74,0x68])][_0x3e9149([0x63,0x65,0x69,0x6c])](_0x5f12a6/_0x3c582e)));window[_0x3e9149([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e9149([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bb054,_0x43345a);}function _0x17c77d(){const _0x2938fa=_0x3e9149([0x6c,0x6c,0x63,0x74,0x2d])+_0xc5ed61(_0xd30168(_0x44a8c7)),_0x4e5817=window[_0x3e9149([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e9149([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2938fa);return _0x4e5817?window[_0x3e9149([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45459c(_0x4e5817),0x10)*_0x3c582e:null;}function _0xe56003(_0x15678c){return new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a066d,_0x415682)=>{_0x15678c[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x5a066d,_0x415682),window[_0x3e9149([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x415682,0xc831fde^_0x36d94d);});}}_0x20b120[_0x3e9149([0x6f,0x6e])](_0x3e9149([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1257bd,_0x315142)=>{if(_0x315142[0x0]!=_0x44a8c7)return _0x5964a0(_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x315142[0x1]={..._0x315142[0x1],[_0x3e9149([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x568041};},{[_0x3e9149([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e9149([0x68,0x69,0x67,0x68])}),_0x20b120[_0x3e9149([0x6f,0x6e])](_0x3e9149([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ba012=>{_0xdc0cbd(_0x4ba012[_0x3e9149([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ae7e0=!0x0,_0x484be5(_0x4ba012[_0x3e9149([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e9149([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e9149([0x6c,0x6f,0x77])}),_0x3239ff[_0x3e9149([0x74,0x68,0x65,0x6e])](()=>{_0x2ae7e0||_0x5964a0(_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b92bc(){return _0x20b120[_0x3e9149([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e9149([0x76,0x69,0x65,0x77])][_0x3e9149([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e9149([0x61,0x75,0x74,0x6f]);}function _0xa381d0(){_0x20b120[_0x3e9149([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e9149([0x76,0x69,0x65,0x77])][_0x3e9149([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e9149([0x61,0x75,0x74,0x6f]);}}function _0x24cf9b(_0x1b5f8f){const _0x56eae0=[new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440701=>setTimeout(_0x440701,0xc8bf5d2^_0x36d94d)),_0x3239ff[_0x3e9149([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6efe=>{let _0x65a4c1=0x0;_0x20b120[_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9149([0x6f,0x6e])](_0x3e9149([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf0155,_0x57cb5e)=>{_0x57cb5e[0x0][_0x3e9149([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x65a4c1++,_0x65a4c1==(0xc82cef6^_0x36d94d)&&(_0x1c6efe(),_0xf0155[_0x3e9149([0x6f,0x66,0x66])]());});}))];return window[_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e9149([0x72,0x61,0x63,0x65])](_0x56eae0)[_0x3e9149([0x74,0x68,0x65,0x6e])](()=>_0x1b5f8f);}async function _0x466a43(){await _0x3239ff,_0x20b120[_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9149([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1db1af,_0x20b120[_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9149([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1db1af,_0x20b120[_0x3e9149([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x540b7f(_0x1abf66){const _0xf2a11b=_0x44866c();_0x20b120[_0xf2a11b]=_0x3e9149([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1abf66,_0x1abf66!=_0x3e9149([0x56,0x61,0x6c,0x69,0x64])&&_0x466a43();}function _0x44866c(){const _0x2bc4eb=window[_0x3e9149([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e9149([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e9149([0x6e,0x6f,0x77])]())[_0x3e9149([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e9149([0x2e]),'');let _0x3998cb=_0x3e9149([0x49]);for(let _0x3faa7a=0x0;_0x3faa7a<_0x2bc4eb[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3faa7a+=0x2){let _0x45871e=window[_0x3e9149([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bc4eb[_0x3e9149([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3faa7a,_0x3faa7a+0x2));_0x45871e>=_0x361242[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45871e-=_0x361242[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3998cb+=_0x361242[_0x45871e];}return _0x3998cb;}function _0x10aa1a(){const _0x3fbe93=_0x19ccd4[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e]));if(0x3!=_0x3fbe93[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x280db8(_0x3fbe93[0x1]);function _0x280db8(_0x2d48e9){const _0xbbcac2=_0x4aa680(_0x2d48e9);return _0xbbcac2&&_0x4a877e()?_0xbbcac2:null;function _0x4a877e(){const _0x529593=_0xbbcac2[_0x3e9149([0x6a,0x74,0x69])],_0x4d5f49=window[_0x3e9149([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529593[_0x3e9149([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529593[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33c3bb={..._0xbbcac2,[_0x3e9149([0x6a,0x74,0x69])]:_0x529593[_0x3e9149([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x529593[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33c3bb[_0x3e9149([0x76,0x63])],_0xd30168(_0x33c3bb)==_0x4d5f49;}}}async function _0x8817b1(){let _0x9e2ddf=!0x0;try{const _0x1b12f4=_0x19ccd4[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e])),[_0x52ebf4,_0x52a6ef,_0x3159a3]=_0x1b12f4;return _0x593b19(_0x52ebf4),await _0x5d0d53(_0x52ebf4,_0x52a6ef,_0x3159a3),_0x9e2ddf;}catch{return!0x1;}function _0x593b19(_0x5cb0fd){const _0x1d7599=_0x4aa680(_0x5cb0fd);_0x1d7599&&_0x1d7599[_0x3e9149([0x61,0x6c,0x67])]==_0x3e9149([0x45,0x53,0x32,0x35,0x36])||(_0x9e2ddf=!0x1);}async function _0x5d0d53(_0x175e57,_0x5ab100,_0x5e95cc){const _0x1629f5=window[_0x3e9149([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e9149([0x66,0x72,0x6f,0x6d])](_0x198170(_0x5e95cc),_0x1753dd=>_0x1753dd[_0x3e9149([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x491463=new window[(_0x3e9149([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e9149([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x175e57+_0x3e9149([0x2e])+_0x5ab100),_0x51a627=window[_0x3e9149([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e9149([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51a627)return;const _0x2124bd=await _0x51a627[_0x3e9149([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e9149([0x6a,0x77,0x6b]),_0x797a5d,{[_0x3e9149([0x6e,0x61,0x6d,0x65])]:_0x3e9149([0x45,0x43,0x44,0x53,0x41]),[_0x3e9149([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e9149([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e9149([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51a627[_0x3e9149([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e9149([0x6e,0x61,0x6d,0x65])]:_0x3e9149([0x45,0x43,0x44,0x53,0x41]),[_0x3e9149([0x68,0x61,0x73,0x68])]:{[_0x3e9149([0x6e,0x61,0x6d,0x65])]:_0x3e9149([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2124bd,_0x1629f5,_0x491463)||(_0x9e2ddf=!0x1);}}function _0x4aa680(_0x56db8a){return _0x56db8a[_0x3e9149([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e9149([0x65,0x79]))?JSON[_0x3e9149([0x70,0x61,0x72,0x73,0x65])](_0x198170(_0x56db8a)):null;}function _0x198170(_0x1d4ad7){return window[_0x3e9149([0x61,0x74,0x6f,0x62])](_0x1d4ad7[_0x3e9149([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e9149([0x2b]))[_0x3e9149([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e9149([0x2f])));}function _0xd30168(_0x2fa735){let _0xb51904=0x1505;function _0x457946(_0x240bbd){for(let _0xf97b9b=0x0;_0xf97b9b<_0x240bbd[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf97b9b++){const _0x31d32b=_0x240bbd[_0x3e9149([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf97b9b);_0xb51904=(_0xb51904<<0x5)+_0xb51904+_0x31d32b,_0xb51904&=_0xb51904;}}function _0x44cb7(_0x1c3350){Array[_0x3e9149([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c3350)?_0x1c3350[_0x3e9149([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44cb7):_0x1c3350&&typeof _0x1c3350==_0x3e9149([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e9149([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c3350)[_0x3e9149([0x73,0x6f,0x72,0x74])]()[_0x3e9149([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb8c04b,_0x535a89])=>{_0x457946(_0xb8c04b),_0x44cb7(_0x535a89);}):_0x457946(window[_0x3e9149([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c3350));}return _0x44cb7(_0x2fa735),_0xb51904>>>0x0;}function _0xc5ed61(_0x50368a){return _0x50368a[_0x3e9149([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e9149([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e9149([0x30]));}function _0x45459c(_0x260d63){return _0x260d63[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e9149([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e9149([0x6a,0x6f,0x69,0x6e])]('');}function _0x1db1af(){}function _0x3e9149(_0x2879d8){return _0x2879d8['map'](_0xa5a510=>String['fromCharCode'](_0xa5a510))['join']('');}_0x540b7f(await _0x2abea3());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x4e3846=this['editor'],_0xbff486=_0x4e3846['editing']['view'],_0x5a924a=this['_getAttachedDomRoot']();if(!_0x5a924a||0x0===_0x5a924a['childElementCount'])return void _0x4e3846['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x2a8c77,pageHeight:_0x1c9262}=_0x4e3846['config']['get']('pagination'),{top:_0x418a5d,left:_0x1b49bf,bottom:_0x211500,right:_0x234c7c}=this['_configuredPaddings'];this['_pagesContainer']=new _0x4f65a8(_0x4e3846['locale']);const _0x4edaf5=this['_pagesContainer'];_0x4edaf5['set']('class',''),_0x4edaf5['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x2a8c77,'width':_0x2a8c77,'height':'calc(\x20'+_0x1c9262+'\x20-\x20'+_0x418a5d+'\x20-\x20'+_0x211500+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x234c7c+'\x200\x20'+_0x1b49bf,'columnGap':'calc('+_0x1b49bf+'\x20+\x20'+_0x234c7c+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x4edaf5['bindTemplate']['to']('class')}}),_0x4edaf5['render'](),_0x5a924a['parentNode']['insertBefore'](_0x4edaf5['element'],_0x5a924a['nextSibling']),this['listenTo'](_0xbff486,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x1ae0b5 of this['editor']['editing']['view']['domRoots']['values']())if(_0x1ae0b5['ownerDocument']['body']['contains'](_0x1ae0b5))return _0x1ae0b5;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x50a491=this['editor']['editing']['view'],_0x255b77=this['_pagesContainer'],_0x3360de=this['_getAttachedDomRoot']();if(!_0x3360de)return Promise['resolve']();for(_0x255b77['class']=['ck-reset','ck-pagination-view',..._0x3360de['classList']]['join']('\x20');_0x255b77['element']['firstChild'];)_0x255b77['element']['firstChild']['remove']();const _0x488328=Array['from'](_0x50a491['domRoots']);_0x488328['sort'](([,_0x137a2d],[,_0x35cd23])=>_0x137a2d['compareDocumentPosition'](_0x35cd23)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x3511d7,_0xe53139]of _0x488328){const _0x588b84=_0xe53139['cloneNode'](!0x0);'attributeStyleMap'in _0x588b84&&_0x588b84['attributeStyleMap']['clear'](),_0x588b84['dataset']['rootName']=_0x3511d7,_0x588b84['className']='ck-content\x20ck-pagination_enabled',_0x588b84['removeAttribute']('id'),_0x588b84['tabIndex']=-0x1,_0x255b77['element']['append'](_0x588b84);}const _0x23b93a=Array['from'](_0x255b77['element']['querySelectorAll']('img'));return function(_0x41dfc7){return Promise['all'](_0x41dfc7['map'](_0x127288=>Promise['race']([b(_0x127288),k(0x3e8)])));}(_0x23b93a)['then'](()=>{for(const _0xb8b80a of _0x23b93a['filter'](_0x80960d=>!_0x80960d['closest']('table')))if(_0xb8b80a['offsetParent']){const _0x3f98fa=_0x49a940['window']['getComputedStyle'](_0xb8b80a),_0x3ec634=_0x49a940['document']['createElement']('span');for(const _0x3c0af8 of _0x3f98fa)_0x3ec634['style']['setProperty'](_0x3c0af8,_0x3f98fa[_0x3c0af8]);_0x3ec634['style']['backgroundImage']='url(\x20'+_0xb8b80a['src']+'\x20)',_0x3ec634['style']['breakInside']='avoid','PICTURE'==_0xb8b80a['parentElement']?.['tagName']?_0xb8b80a['parentElement']['replaceWith'](_0x3ec634):_0xb8b80a['replaceWith'](_0x3ec634);}return new Promise(_0x1437dc=>_0x49a940['window']['requestAnimationFrame'](()=>_0x1437dc()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x333bde=this['_pagesContainer']['element'];if(!_0x333bde['ownerDocument']['body']['contains'](_0x333bde))return;const _0x3a1b5d=new _0x3b7683(_0x333bde)['excludeScrollbarsAndBorders'](),_0x10a79f=Math['floor'](_0x3a1b5d['width']+0x64),_0x35d447=L(_0x333bde,Math['floor'](_0x3a1b5d['left']-_0x333bde['scrollLeft']),_0x10a79f,_0x3a1b5d['height'])['map'](_0x126f56=>this['_mapPageStarterInfoToPageBreakInfo'](_0x126f56))['filter'](_0x3da161=>!0x1!==_0x3da161);_0x35d447['every'](_0xd22503=>!!_0xd22503)&&(this['pageBreaks']=_0x35d447);}['_mapPageStarterInfoToPageBreakInfo'](_0x48bd64){const _0x197319=this['editor']['editing']['view'],_0x46f284=this['editor']['editing']['mapper'],_0x3f09ab=_0x197319['domConverter'],_0x363e06=_0x48bd64['path']['shift'](),_0xb65f60=this['_pagesContainer']['element']['childNodes'][_0x363e06]['dataset']['rootName'],_0x4be09c=_0x197319['getDomRoot'](_0xb65f60);if(!_0x4be09c)return null;const _0x1965d7=function(_0x529cb3,_0x4513e1){let _0x29a962=_0x529cb3;for(const _0xee0bab of _0x4513e1['path']){if(!_0x29a962)return null;_0x29a962=_0x29a962['childNodes'][_0xee0bab];}return _0x29a962;}(_0x4be09c,_0x48bd64);if(!_0x1965d7)return null;const _0x425c5a=_0x3f09ab['domPositionToView'](_0x1965d7,_0x48bd64['textOffset']||0x0);return _0x425c5a?'manual'==_0x48bd64['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x425c5a,_0x1965d7):'text'==_0x48bd64['type']&&_0x46f284['toModelPosition'](_0x425c5a)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x425c5a,_0x1965d7,_0x48bd64['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x425c5a,_0x1965d7,_0x48bd64['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x5e9506,_0x2676f4){const _0x22845e=this['editor']['model'],_0x12a284=this['editor']['editing']['mapper']['toModelElement'](_0x5e9506['parent']),_0x3f775f=_0x22845e['createRangeOn'](_0x12a284);return new PageBreakInfo({'type':'manual','modelRange':_0x3f775f,'domNode':_0x2676f4,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x57504d,_0xeacb99,_0x21e073){const _0x561ab3=this['editor']['model'],_0x55d716=this['editor']['editing']['mapper'],_0x30efec=this['editor']['editing']['view']['domConverter'];if(_0x21e073>=_0xeacb99['length'])return null;const _0x2515f5=_0x55d716['toModelPosition'](_0x57504d),_0x14db86=_0x561ab3['createRange'](_0x2515f5),_0x28734c=_0x55d716['findMappedViewAncestor'](_0x57504d),_0x150657=_0x30efec['mapViewToDom'](_0x28734c);return new PageBreakInfo({'type':'text','modelRange':_0x14db86,'domNode':_0xeacb99,'offset':w(_0xeacb99,_0x21e073,_0x150657)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x1b1f3b,_0x27af52,_0x2e4f5a){const _0x45bafb=this['editor']['model'],_0x394005=this['editor']['editing'],_0x1d4c34=_0x394005['mapper'],_0x5349f4=_0x394005['view']['domConverter'],_0x7d9b36=_0x1d4c34['findMappedViewAncestor'](_0x1b1f3b),_0x30a787=_0x1d4c34['toModelElement'](_0x7d9b36);if(!_0x30a787||_0x30a787['is']('element','$root'))return!0x1;const _0x247825=function(_0x402674){const _0x233176=_0x402674['parent'],_0x2a8fea=_0x233176['root']['document']['model'],_0x1d0b42=_0x233176['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x591add=null;for(const _0x566e01 of _0x1d0b42){if(_0x566e01['is']('rootElement'))return _0x591add;if(!_0x2a8fea['createPositionBefore'](_0x566e01)['isTouching'](_0x402674))return _0x591add;_0x591add=_0x566e01;}}(_0x45bafb['createPositionBefore'](_0x30a787)),_0x1bdeea=_0x247825||_0x30a787;let _0x55b64a=_0x1d4c34['toViewElement'](_0x1bdeea),_0x1ed648=_0x45bafb['createRangeOn'](_0x1bdeea);const _0x2bb678=_0x45bafb['createPositionBefore'](_0x1bdeea)['nodeBefore'];if(_0x2bb678&&_0x2bb678['is']('element','imageBlock')){const _0x5d23e9=_0x1d4c34['toViewElement'](_0x2bb678),_0x2bddd2=_0x5349f4['mapViewToDom'](_0x5d23e9),_0x1573ad=_0x49a940['window']['getComputedStyle'](_0x2bddd2)['float'];'left'!=_0x1573ad&&'right'!=_0x1573ad||(_0x1ed648=_0x45bafb['createRangeOn'](_0x2bb678));}for(;_0x55b64a['parent']!==_0x55b64a['root']&&0x0===_0x55b64a['index'];)_0x55b64a=_0x55b64a['parent'];const _0x3ccd51=new _0x3b7683(S(_0x27af52)?_0x27af52:y(_0x27af52)),_0x47ed63=_0x2e4f5a?_0x3ccd51['height']-_0x2e4f5a:0x0,_0x3409ab=_0x5349f4['mapViewToDom'](_0x55b64a),_0x2cd05b=new _0x3b7683(_0x3409ab);return new PageBreakInfo({'type':'element','modelRange':_0x1ed648,'domNode':_0x3409ab,'offset':Math['round'](_0x47ed63)||_0x7d9b36!=P(_0x1b1f3b)?_0x47ed63+_0x3ccd51['top']-_0x2cd05b['top']:0x0});}get['_configuredPaddings'](){const _0x28f153=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x28f153);}static['_findPageStarterInfos'](_0x112b77,_0x32ac21,_0x503c70,_0x12b11b,_0x170a01){return L(_0x112b77,_0x32ac21,_0x503c70,_0x12b11b,_0x170a01);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x4b7cfd,modelRange:_0x16b8fd,domNode:_0x3c94b4,offset:_0x5bfb06}){this['type']=_0x4b7cfd,this['modelRange']=_0x16b8fd,this['_domNode']=_0x3c94b4,this['_offset']=_0x5bfb06;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0xa597b=new _0x3b7683(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0xa597b['top']+_0xa597b['height']/0x2:_0xa597b['top']+this['_offset'];}}function w(_0xe15b13,_0x17511d,_0x11193e){const _0x1b1cf0=y(_0xe15b13),_0x430237=function(_0x2c6bc3){const _0x3c240d=_0x49a940['document']['createRange']();return _0x3c240d['selectNodeContents'](_0x2c6bc3),_0x3c240d;}(_0x11193e);let _0x1ee591;_0x1ee591=0x0==_0x17511d?x(_0x430237['startContainer'],_0x430237['startOffset'],_0xe15b13['parentNode'],Array['from'](_0xe15b13['parentNode']['childNodes'])['indexOf'](_0xe15b13)):x(_0x430237['startContainer'],_0x430237['startOffset'],_0xe15b13,_0x17511d);const _0x1a016d=x(_0xe15b13,_0x17511d,_0x430237['endContainer'],_0x430237['endOffset']),_0x18c003=new _0x3b7683(_0x1ee591)['bottom'];return(new _0x3b7683(_0x1a016d)['top']+_0x18c003)/0x2-new _0x3b7683(_0x1b1cf0)['top'];}function P(_0x281314){let _0x9cdb1b=_0x281314['parent'];for(;_0x9cdb1b['is']('$text')||_0x9cdb1b['is']('attributeElement');)_0x9cdb1b=_0x9cdb1b['parent'];return _0x9cdb1b;}function b(_0x49029e){return _0x49029e['hasAttribute']('width')&&_0x49029e['hasAttribute']('height')?Promise['resolve']():new Promise(_0x353a5b=>{function _0x2a3987(){_0x49029e['removeEventListener']('load',_0x2a3987),_0x49029e['removeEventListener']('error',_0x2a3987),_0x353a5b();}_0x49029e['complete']?_0x353a5b():(_0x49029e['addEventListener']('load',_0x2a3987),_0x49029e['addEventListener']('error',_0x2a3987));});}function k(_0x599017){return new Promise(_0x22371e=>setTimeout(_0x22371e,_0x599017));}function y(_0x19954a){const _0x20dc6f=_0x49a940['document']['createRange']();return _0x20dc6f['selectNode'](_0x19954a),_0x20dc6f;}function v(_0x34ad14,_0x15748e,_0x2d416d){const _0x19198a=_0x49a940['document']['createRange']();return _0x19198a['setStart'](_0x34ad14,_0x15748e),_0x19198a['setEnd'](_0x34ad14,_0x2d416d),_0x19198a;}function x(_0x10271e,_0x1f3a76,_0x26d015,_0x2f1361){const _0x4d0f30=_0x49a940['document']['createRange']();return _0x4d0f30['setStart'](_0x10271e,_0x1f3a76),_0x4d0f30['setEnd'](_0x26d015,_0x2f1361),_0x4d0f30;}function L(_0x501bd7,_0xb7d97e,_0x5bc3f5,_0x34334e,_0x313aa4){const _0x1d058a=[];for(const [_0x51d92f,_0x3cf51c]of _0x501bd7['childNodes']['entries']()){let _0x2a6e24=[];S(_0x3cf51c)&&_0x3cf51c['offsetParent']&&['static','relative']['includes'](_0x49a940['window']['getComputedStyle'](_0x3cf51c)['position'])?_0x2a6e24=N(_0x3cf51c,_0x51d92f,_0xb7d97e,_0x5bc3f5,_0x34334e,_0x313aa4):I(_0x3cf51c)&&(_0x2a6e24=_(_0x3cf51c,_0x51d92f,_0xb7d97e,_0x5bc3f5,_0x313aa4)),_0x2a6e24['length']&&(_0x1d058a['push'](..._0x2a6e24),_0xb7d97e+=_0x2a6e24['length']*_0x5bc3f5,_0x313aa4=!0x1);}return _0x1d058a;}function N(_0x1fcaec,_0x42dbd2,_0x2aa8e5,_0x526191,_0x344aed,_0x5dde50){const _0x575199=[];var _0x1e9cd0;if((_0x1e9cd0=_0x1fcaec['previousSibling'])&&S(_0x1e9cd0)&&Boolean(_0x1e9cd0['classList']['contains']('page-break')||_0x1e9cd0['closest']('.page-break'))&&(_0x575199['push']({'type':'manual','offset':0x0,'path':[_0x42dbd2-0x1]}),_0x5dde50=!0x0),'table-row'==_0x49a940['window']['getComputedStyle'](_0x1fcaec)['display']){let _0x37d3d5=0x0,_0x1420b5=!0x1;for(const _0x15a7de of _0x1fcaec['getClientRects']())_0x37d3d5+=_0x15a7de['height'],_0x15a7de['left']>=_0x2aa8e5&&(_0x1420b5=!0x0);if(_0x37d3d5<_0x344aed&&_0x1420b5)return _0x5dde50||_0x575199['push']({'type':'element','offset':0x0,'path':[_0x42dbd2]}),_0x575199;}const _0x2311f6=_0x1fcaec['closest']('figure.image');if(_0x2311f6&&function(_0x2ec05c){let _0x2b0c77=!0x1;const _0x10e014=_0x2ec05c['parentElement'],_0x57626e=_0x10e014['dataset']['rootName'],_0x50c0c1=_0x2ec05c['nextElementSibling'],_0x179fce=_0x2ec05c['previousElementSibling'],_0x41f425=_0x50c0c1&&_0x49a940['window']['getComputedStyle'](_0x50c0c1)['float'],_0x57c8fb=_0x50c0c1&&'ck-fake-selection-container'===_0x50c0c1['className'];!_0x57626e||_0x50c0c1||_0x179fce||(_0x2b0c77=!0x0),_0x57626e&&!_0x179fce&&_0x57c8fb&&(_0x2b0c77=!0x0),_0x57626e&&!_0x179fce&&'none'!==_0x41f425&&(_0x2b0c77=!0x0);if(_0x2b0c77)return!0x1;return!0x0;}(_0x2311f6)){const _0x308034=_0x49a940['window']['getComputedStyle'](_0x2311f6)['float'];if('left'==_0x308034||'right'==_0x308034)return _0x575199;}const _0x1540e2=L(_0x1fcaec,_0x2aa8e5,_0x526191,_0x344aed,_0x5dde50);if(_0x1540e2['length']){for(const _0x38fa58 of _0x1540e2)_0x575199['push']({'type':_0x38fa58['type'],'offset':_0x38fa58['offset'],'textOffset':_0x38fa58['textOffset'],'path':[_0x42dbd2,..._0x38fa58['path']]}),_0x2aa8e5+=_0x526191,_0x5dde50=!0x1;return _0x575199;}return _0x575199['push'](...function(_0x1315e3,_0x48f43c,_0x16c96f,_0x367b51,_0x4ab655){const _0x4de9ea=[];if('table-cell'==_0x49a940['window']['getComputedStyle'](_0x1315e3)['display'])return[];const _0x1740d1=[];for(const _0x44a9dd of _0x1315e3['getClientRects']())if(_0x44a9dd['left']>=_0x16c96f){for(const _0x5d969b of _0x1740d1)_0x5d969b['height']+=_0x44a9dd['height'];_0x1740d1['push']({'height':_0x44a9dd['height']}),_0x16c96f+=_0x367b51;}for(const _0x143753 of _0x1740d1)_0x4ab655||_0x4de9ea['push']({'type':'element','offset':_0x143753['height'],'textOffset':0x0,'path':[_0x48f43c]}),_0x4ab655=!0x1;return _0x4de9ea;}(_0x1fcaec,_0x42dbd2,_0x2aa8e5,_0x526191,_0x5dde50)),_0x575199;}function _(_0x5dbd78,_0x465d9c,_0x337597,_0x23f468,_0x130d31){const _0x510b2a=y(_0x5dbd78),_0x2e5274=[];let _0x225a71=0x0;for(const _0x285280 of _0x510b2a['getClientRects']())if(_0x285280['left']>=_0x337597){const _0x2937e9=R(_0x5dbd78,_0x225a71,_0x337597,_0x23f468);_0x130d31||_0x2e5274['push']({'type':'text','path':[_0x465d9c],'textOffset':_0x2937e9}),_0x225a71=_0x2937e9,_0x337597+=_0x23f468,_0x130d31=!0x1;}return _0x2e5274;}function R(_0x24b06f,_0x1db28b,_0x3007c4,_0x430e20){let _0x188139=_0x1db28b,_0x59c50d=_0x24b06f['length'];for(;_0x59c50d-_0x188139>0x1;){const _0x41dad8=Math['ceil']((_0x188139+_0x59c50d)/0x2);E(v(_0x24b06f,_0x188139,_0x41dad8),_0x3007c4,_0x430e20)?_0x59c50d=_0x41dad8:_0x188139=_0x41dad8;}return _0x188139;}function E(_0x20f186,_0x5a418f,_0x1beef4){for(const _0x28d154 of _0x20f186['getClientRects']())if(_0x28d154['left']>=_0x5a418f&&_0x28d154['left']<_0x5a418f+_0x1beef4)return!0x0;return!0x1;}function S(_0x3e177f){return _0x3e177f['nodeType']==Node['ELEMENT_NODE'];}function I(_0x2bddce){return _0x2bddce['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3e7856('px');class LineView extends _0x4f65a8{constructor(){super();const _0xb01b32=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0xb01b32['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0xb01b32['if']('isVisible','ck-hidden',_0xda1eda=>!_0xda1eda)],'style':{'left':_0xb01b32['to']('left',_0x224f78=>B(_0x224f78)),'top':_0xb01b32['to']('top',_0x5f28ce=>B(_0x5f28ce)),'width':_0xb01b32['to']('width',_0x3be25f=>B(_0x3be25f))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x2bb5b1){this['_viewCollection']=_0x2bb5b1['ui']['view']['body'];}['destroy'](){for(const _0x4857c7 of this['_hiddenLines'])_0x4857c7['destroy']();}['cleanLines'](){for(const _0x51120e of this['_visibleLines'])_0x51120e['isVisible']=!0x1,this['_hiddenLines']['add'](_0x51120e);this['_visibleLines']['clear']();}['showLine'](_0x55ff23,_0x193e7d,_0x50cea3,_0x3b7c22){let _0x278558;this['_hiddenLines']['size']?(_0x278558=_0x8773f9(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x278558)):_0x278558=new LineView(),_0x278558['set']({'pageNumber':_0x3b7c22,'left':_0x55ff23,'top':_0x193e7d,'width':_0x50cea3}),_0x278558['isVisible']=!0x0,this['_viewCollection']['has'](_0x278558)||this['_viewCollection']['add'](_0x278558),this['_visibleLines']['add'](_0x278558);}['setViewCollection'](_0x573dd6){for(const _0x57c57f of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x57c57f)&&this['_viewCollection']['remove'](_0x57c57f);this['_viewCollection']=_0x573dd6;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x27b960{['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',(_0x4fd548,_0x38b2ba,_0x4c2f29)=>{_0x4c2f29||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x4c2f29);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x53a601){if(!this['isEnabled'])return;const _0x153ff3=_0x53a601>0x1?this['_getPageBreakLineOffset'](_0x53a601-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x153ff3-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x29ec5f['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x57936a=this['editor'],_0x306921=this['_getAttachedDomRoot']();_0x306921?(this['_scrollableEditingRootDomAncestor']&&_0x57936a['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x1c7c81){let _0x43e926=_0x1c7c81;do{_0x43e926=_0x43e926['parentElement'];const _0x37df61=_0x49a940['window']['getComputedStyle'](_0x43e926)['overflowY'];if('auto'==_0x37df61||'scroll'==_0x37df61)break;}while('BODY'!=_0x43e926['tagName']);return _0x43e926;}(_0x306921),_0x57936a['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x5da25b(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x57936a['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2a3851=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2a3851['ui']['view']['listenTo'](_0x49a940['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2a3851['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x5090c6 of this['editor']['editing']['view']['domRoots']['values']())if(_0x5090c6['ownerDocument']['body']['contains'](_0x5090c6))return _0x5090c6;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x1e876c=this['_getAttachedDomRoot'](),_0x372287=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x1e876c||0x1==_0x372287['length'])return void(this['pageNumber']=0x1);const _0x37483d=new _0x3b7683(_0x1e876c)['excludeScrollbarsAndBorders'](),_0x5be482=new _0x3b7683(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x195a39=_0x5be482['top']+_0x5be482['height']/0x3;let _0x97be73=!0x1;const _0x2f297e=[];for(let _0x14d7ef=0x1;_0x14d7ef<_0x372287['length'];_0x14d7ef++){const _0x9b4df2=this['_getPageBreakLineOffset'](_0x14d7ef,_0x5be482);if(!_0x9b4df2)continue;const _0x282876=_0x5be482['top']+_0x9b4df2-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x2f297e['push']({'pageOffsetTop':_0x282876,'domRootRect':_0x37483d,'domScrollableRect':_0x5be482,'pageNumber':_0x14d7ef}),_0x282876>_0x195a39&&!_0x97be73&&(this['pageNumber']=_0x14d7ef,_0x97be73=!0x0);}this['_renderPageBreakLines'](_0x2f297e),_0x97be73||(this['pageNumber']=_0x372287['length']);}['_renderPageBreakLines'](_0x2468e3){const {scrollX:_0x1e6422,scrollY:_0x375336}=_0x49a940['window'];if(_0x2468e3['length']){for(const {domScrollableRect:_0x4e46bd,pageOffsetTop:_0x3c13fe,domRootRect:_0x4feda7,pageNumber:_0x259fe1}of _0x2468e3)_0x4e46bd['top']<_0x3c13fe&&_0x3c13fe<_0x4e46bd['bottom']&&this['linesRepository']['showLine'](_0x4feda7['left']+_0x1e6422,_0x3c13fe+_0x375336,_0x4feda7['width'],_0x259fe1+0x1);}}['_getPageBreakLineOffset'](_0x274676,_0x599521=null){const _0x3dc389=this['_paginationLookupPlugin']['pageBreaks'][_0x274676]['offset'];return _0x3dc389?(_0x599521||(_0x599521=new _0x3b7683(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x3dc389-_0x599521['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x578cac,_0x5887e0=!0x0){const _0x36a988=this['editor']['editing']['view'];_0x36a988['change'](_0x36b374=>{for(const _0x42c713 of _0x36a988['document']['roots'])_0x5887e0?_0x36b374['addClass'](_0x578cac,_0x42c713):_0x36b374['removeClass'](_0x578cac,_0x42c713);});}}function O(_0x4d0c3a,_0x4a717c,..._0x1bcdee){const t=_0x4d0c3a['t'];switch(_0x4a717c){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)',..._0x1bcdee);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 _0x4a717c;}}class PaginationEditing extends _0x27b960{['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 _0x5d4901=this['editor']['plugins']['get']('Pagination'),_0x4501da=this['editor']['plugins']['get'](PaginationLookup),_0x176b5a=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x5d4901),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x176b5a),this['listenTo'](_0x4501da,'change:pageBreaks',(_0x3ce4e8,_0x3ec351,_0x1d5232,_0x1ed183)=>{this['totalPages']=_0x1d5232['length'],this['_updatePageBreakMarkers'](_0x1d5232,_0x1ed183);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x23d4c6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x272e0f;for(const _0xa6cb12 in _0x23d4c6){const _0x4ef703=_0xa6cb12,_0x4d6a70=_0x23d4c6[_0x4ef703];if('paginationLicenseKeyValid'==_0x4d6a70||'paginationLicenseKeyInvalid'==_0x4d6a70||'paginationLicenseKeyExpired'==_0x4d6a70||'paginationLicenseKeyDomainLimit'==_0x4d6a70||'paginationLicenseKeyNotAllowed'==_0x4d6a70||'paginationLicenseKeyEvaluationLimit'==_0x4d6a70||'paginationLicenseKeyUsageLimit'==_0x4d6a70){delete _0x23d4c6[_0x4ef703],_0x272e0f=_0x4d6a70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x272e0f&&_0x23d4c6['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x272e0f&&_0x23d4c6['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x272e0f&&_0x23d4c6['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x272e0f&&_0x23d4c6['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x272e0f&&_0x23d4c6['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x272e0f&&_0x23d4c6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x59c84b){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x59c84b));}['moveSelectionToPage'](_0x3cf4de){if(!this['isEnabled'])return;const _0xbf8416=this['editor'],_0x29c5c8=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x3cf4de-0x1];_0x29c5c8&&_0xbf8416['model']['change'](_0x2d92c7=>{switch(_0x29c5c8['type']){case'manual':{const _0xce75d0=_0xbf8416['model']['schema']['getNearestSelectionRange'](_0x29c5c8['modelRange']['end'],'forward');_0x2d92c7['setSelection'](_0xce75d0);break;}case'element':{const _0x1c4370=_0xbf8416['model']['schema']['getNearestSelectionRange'](_0x29c5c8['modelRange']['start'],'forward');_0x2d92c7['setSelection'](_0x1c4370);break;}case'text':{const _0x5985c4=_0x29c5c8['modelRange']['start'];if(_0x5985c4['textNode']&&'\x20'===_0x5985c4['textNode']['data'][_0x5985c4['offset']]){const _0x5e0463=_0x2d92c7['createPositionAt'](_0x5985c4['parent'],_0x5985c4['offset']+0x1);_0x2d92c7['setSelection'](_0x5e0463);}else _0x2d92c7['setSelection'](_0x29c5c8['modelRange']);}}_0xbf8416['editing']['view']['focus']();});}['goToNextPage'](){const _0x2386d3=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x2386d3),this['scrollToPage'](_0x2386d3);}['goToPreviousPage'](){const _0x512f65=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x512f65),this['scrollToPage'](_0x512f65);}['_updatePageBreakMarkers'](_0x332049,_0x3dde91){const _0x1eeded=this['editor']['model'];this['isEnabled']&&_0x1eeded['change'](_0x305864=>{for(let _0x2106a9=0x1;_0x2106a9<_0x332049['length'];_0x2106a9++){const _0x534110=_0x332049[_0x2106a9]['modelRange'],_0x37b306='pagination:'+(_0x2106a9+0x1);_0x1eeded['markers']['has'](_0x37b306)?_0x305864['updateMarker'](_0x37b306,{'range':_0x534110}):_0x305864['addMarker'](_0x37b306,{'range':_0x534110,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x2c2a04=_0x332049['length'];_0x2c2a04<_0x3dde91['length'];_0x2c2a04++){const _0x1f1a05='pagination:'+(_0x2c2a04+0x1);_0x1eeded['markers']['has'](_0x1f1a05)&&_0x305864['removeMarker'](_0x1f1a05);}});}['_setUpDataDowncastConversion'](){const _0x79f505='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a5ec4=>{_0x1a5ec4['on']('addMarker:'+_0x79f505,(_0x5a4d04,{markerRange:_0x5aa718,markerName:_0x65366b},_0x2b5675)=>{if(!_0x2b5675['options']['pagination'])return;if(!_0x2b5675['consumable']['consume'](_0x5aa718,_0x5a4d04['name']))return;const _0x6cefe3=_0x5aa718['getContainedElement']();let _0x4b0cb5=_0x6cefe3?_0x2b5675['mapper']['toViewElement'](_0x6cefe3):null;if(!_0x4b0cb5){const _0x3a2ad5=_0x5aa718['start'];if(_0x2b5675['schema']['checkChild'](_0x3a2ad5,'$text')){const _0x8ae16a=_0x2b5675['mapper']['toViewPosition'](_0x3a2ad5);_0x4b0cb5=_0x2b5675['writer']['createContainerElement']('span'),_0x4b0cb5['getFillerOffset']=()=>null,_0x2b5675['writer']['insert'](_0x8ae16a,_0x4b0cb5);}else{const _0x8d57e0=_0x3a2ad5['nodeAfter'];_0x4b0cb5=_0x2b5675['mapper']['toViewElement'](_0x8d57e0);}}for(;_0x4b0cb5['parent']!==_0x4b0cb5['root']&&0x0===_0x4b0cb5['index'];)_0x4b0cb5=_0x4b0cb5['parent'];const _0x4e2f3c=_0x65366b['substring'](0xb);_0x4b0cb5['hasClass']('page-break')||(_0x2b5675['writer']['setStyle']('page-break-before','always',_0x4b0cb5),_0x2b5675['writer']['setAttribute']('data-pagination-page',_0x4e2f3c,_0x4b0cb5),_0x2b5675['mapper']['bindElementToMarker'](_0x4b0cb5,_0x65366b)),_0x5a4d04['stop']();});});}['_setupKeystrokes'](){const _0x31237f=this['editor'];_0x31237f['keystrokes']['set']('Shift+Pageup',(_0x462d45,_0x48dfe2)=>{this['goToPreviousPage'](),_0x48dfe2();}),_0x31237f['keystrokes']['set']('Shift+Pagedown',(_0x535844,_0xee11b7)=>{this['goToNextPage'](),_0xee11b7();}),_0x31237f['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x31237f['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x31237f['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x31237f['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x4f29cc){return _0x4f29cc<0x1&&(_0x4f29cc=0x1),_0x4f29cc>this['totalPages']&&(_0x4f29cc=this['totalPages']),_0x4f29cc;}}class PageNavigatorView extends _0x4f65a8{['pageNumberView'];constructor(_0x272f86){super(_0x272f86);const _0x40af37=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x38c826(_0x272f86,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x43fca5=>O(_0x272f86,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x43fca5)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x2bbc7e=>!_0x2bbc7e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x40af37['if']('isEnabled','ck-disabled',_0x4be67c=>!_0x4be67c)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x40af37['to']('totalPages')}]}]});}['render'](){super['render']();const _0x51e7d5=this['pageNumberView']['element'],_0x47b6cd=_0x345ebc=>{this['pageNumberView']['element']['value']=String(_0x345ebc);};_0x47b6cd(this['pageNumber']),this['on']('change:pageNumber',(_0x539324,_0x2ee7b8,_0xdb141f)=>{_0x47b6cd(_0xdb141f);}),this['listenTo'](_0x51e7d5,'keydown',(_0x4f1540,_0x3e2c93)=>{if('ArrowUp'===_0x3e2c93['key']||'ArrowDown'===_0x3e2c93['key'])return void _0x3e2c93['stopPropagation']();if(_0x3e2c93['keyCode']!==_0x465fb7['enter'])return;_0x3e2c93['preventDefault']();const _0xc1d52c=_0x51e7d5['valueAsNumber'];Number['isNaN'](_0xc1d52c)?_0x51e7d5['value']=String(this['pageNumber']):(_0x51e7d5['checkValidity']()?this['pageNumber']=_0xc1d52c:_0xc1d52c>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x51e7d5['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x51e7d5['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x51e7d5,'blur',()=>{_0x51e7d5['value']=String(this['pageNumber']);}),this['listenTo'](_0x51e7d5,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x27b960{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1cb2e4=this['editor'],_0x35a4cc=_0x1cb2e4['plugins']['get']('PaginationEditing');_0x1cb2e4['ui']['componentFactory']['add']('pageNavigation',_0xc96ba3=>{const _0x2030dd=new PageNavigatorView(_0xc96ba3);return _0x2030dd['bind']('pageNumber')['to'](_0x35a4cc),_0x2030dd['bind']('totalPages')['to'](_0x35a4cc),_0x2030dd['bind']('isEnabled')['to'](_0x35a4cc),_0x2030dd['on']('navigation',(_0x50b7f8,_0x2fc202)=>{_0x35a4cc['moveSelectionToPage'](_0x2fc202),_0x35a4cc['scrollToPage'](_0x2fc202);}),_0x2030dd;}),_0x1cb2e4['ui']['componentFactory']['add']('nextPage',_0xad0734=>{const _0x34b4bd=new _0x35f0ed(_0xad0734);return _0x34b4bd['isEnabled']=!0x0,_0x34b4bd['label']=O(_0x1cb2e4['locale'],'Go\x20to\x20next\x20page'),_0x34b4bd['icon']=_0x3a5955,_0x34b4bd['tooltip']=!0x0,_0x34b4bd['keystroke']='Shift+PageDown',_0x34b4bd['bind']('isEnabled')['to'](_0x35a4cc),this['listenTo'](_0x34b4bd,'execute',()=>{_0x35a4cc['goToNextPage']();}),_0x34b4bd;}),_0x1cb2e4['ui']['componentFactory']['add']('previousPage',_0x2fd609=>{const _0x4f59ea=new _0x35f0ed(_0x2fd609);return _0x4f59ea['isEnabled']=!0x0,_0x4f59ea['label']=O(_0x1cb2e4['locale'],'Go\x20to\x20previous\x20page'),_0x4f59ea['icon']=_0x457cb6,_0x4f59ea['tooltip']=!0x0,_0x4f59ea['keystroke']='Shift+PageUp',_0x4f59ea['bind']('isEnabled')['to'](_0x35a4cc),this['listenTo'](_0x4f59ea,'execute',()=>{_0x35a4cc['goToPreviousPage']();}),_0x4f59ea;});}}class Pagination extends _0x27b960{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x47f7c7){super(_0x47f7c7),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x1bbf4e=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x1bbf4e),this['bind']('totalPages')['to'](_0x1bbf4e),_0x29ec5f['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x587926){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x587926);}}export{Pagination,PaginationRenderer};
|
|
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};
|
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.1",
|
|
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.1",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.1",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|