@ckeditor/ckeditor5-pagination 48.8.1-alpha.4 → 49.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/augmentation.d.ts +17 -17
  3. package/dist/index-editor.css +156 -140
  4. package/dist/index.css +144 -128
  5. package/dist/index.d.ts +10 -8
  6. package/dist/index.js +2 -2
  7. package/dist/legacyerrors.d.ts +0 -4
  8. package/dist/pagination.d.ts +124 -132
  9. package/dist/paginationediting.d.ts +72 -73
  10. package/dist/paginationlookup.d.ts +58 -58
  11. package/dist/paginationrenderer.d.ts +52 -52
  12. package/dist/paginationui.d.ts +28 -28
  13. package/dist/translations/af.js +1 -1
  14. package/dist/translations/af.umd.js +1 -1
  15. package/dist/translations/ar.js +1 -1
  16. package/dist/translations/ar.umd.js +1 -1
  17. package/dist/translations/ast.js +1 -1
  18. package/dist/translations/ast.umd.js +1 -1
  19. package/dist/translations/az.js +1 -1
  20. package/dist/translations/az.umd.js +1 -1
  21. package/dist/translations/be.js +1 -1
  22. package/dist/translations/be.umd.js +1 -1
  23. package/dist/translations/bg.js +1 -1
  24. package/dist/translations/bg.umd.js +1 -1
  25. package/dist/translations/bn.js +1 -1
  26. package/dist/translations/bn.umd.js +1 -1
  27. package/dist/translations/bs.js +1 -1
  28. package/dist/translations/bs.umd.js +1 -1
  29. package/dist/translations/ca.js +1 -1
  30. package/dist/translations/ca.umd.js +1 -1
  31. package/dist/translations/cs.js +1 -1
  32. package/dist/translations/cs.umd.js +1 -1
  33. package/dist/translations/da.js +1 -1
  34. package/dist/translations/da.umd.js +1 -1
  35. package/dist/translations/de-ch.js +1 -1
  36. package/dist/translations/de-ch.umd.js +1 -1
  37. package/dist/translations/de.js +1 -1
  38. package/dist/translations/de.umd.js +1 -1
  39. package/dist/translations/el.js +1 -1
  40. package/dist/translations/el.umd.js +1 -1
  41. package/dist/translations/en-au.js +1 -1
  42. package/dist/translations/en-au.umd.js +1 -1
  43. package/dist/translations/en-gb.js +1 -1
  44. package/dist/translations/en-gb.umd.js +1 -1
  45. package/dist/translations/en.js +1 -1
  46. package/dist/translations/en.umd.js +1 -1
  47. package/dist/translations/eo.js +1 -1
  48. package/dist/translations/eo.umd.js +1 -1
  49. package/dist/translations/es-co.js +1 -1
  50. package/dist/translations/es-co.umd.js +1 -1
  51. package/dist/translations/es.js +1 -1
  52. package/dist/translations/es.umd.js +1 -1
  53. package/dist/translations/et.js +1 -1
  54. package/dist/translations/et.umd.js +1 -1
  55. package/dist/translations/eu.js +1 -1
  56. package/dist/translations/eu.umd.js +1 -1
  57. package/dist/translations/fa.js +1 -1
  58. package/dist/translations/fa.umd.js +1 -1
  59. package/dist/translations/fi.js +1 -1
  60. package/dist/translations/fi.umd.js +1 -1
  61. package/dist/translations/fr.js +1 -1
  62. package/dist/translations/fr.umd.js +1 -1
  63. package/dist/translations/gl.js +1 -1
  64. package/dist/translations/gl.umd.js +1 -1
  65. package/dist/translations/gu.js +1 -1
  66. package/dist/translations/gu.umd.js +1 -1
  67. package/dist/translations/he.js +1 -1
  68. package/dist/translations/he.umd.js +1 -1
  69. package/dist/translations/hi.js +1 -1
  70. package/dist/translations/hi.umd.js +1 -1
  71. package/dist/translations/hr.js +1 -1
  72. package/dist/translations/hr.umd.js +1 -1
  73. package/dist/translations/hu.js +1 -1
  74. package/dist/translations/hu.umd.js +1 -1
  75. package/dist/translations/hy.js +1 -1
  76. package/dist/translations/hy.umd.js +1 -1
  77. package/dist/translations/id.js +1 -1
  78. package/dist/translations/id.umd.js +1 -1
  79. package/dist/translations/it.js +1 -1
  80. package/dist/translations/it.umd.js +1 -1
  81. package/dist/translations/ja.js +1 -1
  82. package/dist/translations/ja.umd.js +1 -1
  83. package/dist/translations/jv.js +1 -1
  84. package/dist/translations/jv.umd.js +1 -1
  85. package/dist/translations/kk.js +1 -1
  86. package/dist/translations/kk.umd.js +1 -1
  87. package/dist/translations/km.js +1 -1
  88. package/dist/translations/km.umd.js +1 -1
  89. package/dist/translations/kn.js +1 -1
  90. package/dist/translations/kn.umd.js +1 -1
  91. package/dist/translations/ko.js +1 -1
  92. package/dist/translations/ko.umd.js +1 -1
  93. package/dist/translations/ku.js +1 -1
  94. package/dist/translations/ku.umd.js +1 -1
  95. package/dist/translations/lt.js +1 -1
  96. package/dist/translations/lt.umd.js +1 -1
  97. package/dist/translations/lv.js +1 -1
  98. package/dist/translations/lv.umd.js +1 -1
  99. package/dist/translations/ms.js +1 -1
  100. package/dist/translations/ms.umd.js +1 -1
  101. package/dist/translations/nb.js +1 -1
  102. package/dist/translations/nb.umd.js +1 -1
  103. package/dist/translations/ne.js +1 -1
  104. package/dist/translations/ne.umd.js +1 -1
  105. package/dist/translations/nl.js +1 -1
  106. package/dist/translations/nl.umd.js +1 -1
  107. package/dist/translations/no.js +1 -1
  108. package/dist/translations/no.umd.js +1 -1
  109. package/dist/translations/oc.js +1 -1
  110. package/dist/translations/oc.umd.js +1 -1
  111. package/dist/translations/pl.js +1 -1
  112. package/dist/translations/pl.umd.js +1 -1
  113. package/dist/translations/pt-br.js +1 -1
  114. package/dist/translations/pt-br.umd.js +1 -1
  115. package/dist/translations/pt.js +1 -1
  116. package/dist/translations/pt.umd.js +1 -1
  117. package/dist/translations/ro.js +1 -1
  118. package/dist/translations/ro.umd.js +1 -1
  119. package/dist/translations/ru.js +1 -1
  120. package/dist/translations/ru.umd.js +1 -1
  121. package/dist/translations/si.js +1 -1
  122. package/dist/translations/si.umd.js +1 -1
  123. package/dist/translations/sk.js +1 -1
  124. package/dist/translations/sk.umd.js +1 -1
  125. package/dist/translations/sl.js +1 -1
  126. package/dist/translations/sl.umd.js +1 -1
  127. package/dist/translations/sq.js +1 -1
  128. package/dist/translations/sq.umd.js +1 -1
  129. package/dist/translations/sr-latn.js +1 -1
  130. package/dist/translations/sr-latn.umd.js +1 -1
  131. package/dist/translations/sr.js +1 -1
  132. package/dist/translations/sr.umd.js +1 -1
  133. package/dist/translations/sv.js +1 -1
  134. package/dist/translations/sv.umd.js +1 -1
  135. package/dist/translations/th.js +1 -1
  136. package/dist/translations/th.umd.js +1 -1
  137. package/dist/translations/ti.js +1 -1
  138. package/dist/translations/ti.umd.js +1 -1
  139. package/dist/translations/tk.js +1 -1
  140. package/dist/translations/tk.umd.js +1 -1
  141. package/dist/translations/tr.js +1 -1
  142. package/dist/translations/tr.umd.js +1 -1
  143. package/dist/translations/tt.js +1 -1
  144. package/dist/translations/tt.umd.js +1 -1
  145. package/dist/translations/ug.js +1 -1
  146. package/dist/translations/ug.umd.js +1 -1
  147. package/dist/translations/uk.js +1 -1
  148. package/dist/translations/uk.umd.js +1 -1
  149. package/dist/translations/ur.js +1 -1
  150. package/dist/translations/ur.umd.js +1 -1
  151. package/dist/translations/uz.js +1 -1
  152. package/dist/translations/uz.umd.js +1 -1
  153. package/dist/translations/vi.js +1 -1
  154. package/dist/translations/vi.umd.js +1 -1
  155. package/dist/translations/zh-cn.js +1 -1
  156. package/dist/translations/zh-cn.umd.js +1 -1
  157. package/dist/translations/zh.js +1 -1
  158. package/dist/translations/zh.umd.js +1 -1
  159. package/dist/ui/linesrepository.d.ts +40 -34
  160. package/dist/ui/lineview.d.ts +47 -48
  161. package/dist/ui/pagenavigatorview.d.ts +52 -53
  162. package/dist/utils/common-translations.d.ts +6 -6
  163. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2780bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x1a9d6c,InputNumberView as _0xb2d858,ButtonView as _0x5c9cf3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x3bfb77,global as _0x26f0e7,Rect as _0xa2fe14,uid as _0x28ef39,toUnit as _0x1a366b,first as _0x5b75dd,env as _0x21a4ab,ResizeObserver as _0x2fd01c,keyCodes as _0x4d6c77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1adb26}from'es-toolkit/compat';import{IconArrowDown as _0x1fce8a,IconArrowUp as _0xe5fc43}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x2780bf{['_recalculatePageBreaksDebounced']=_0x1adb26(()=>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 _0x3bfb77('pagination-config-not-found',this['editor']['config']);const _0x49f7c0=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x49f7c0),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0xbd956b,_0x4929ef,_0xfee9b0)=>{_0xfee9b0&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x2b6b5f){const _0x383c28=_0x547c2e([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]),_0x5b1610=0xc82cb1e,_0x1c40d1=0xc85419e^_0x5b1610,_0xf69e18=window[_0x547c2e([0x44,0x61,0x74,0x65])][_0x547c2e([0x6e,0x6f,0x77])](),_0x3e677d=_0x2b6b5f[_0x547c2e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36d42f=new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8810=>{_0x3e677d[_0x547c2e([0x6f,0x6e,0x63,0x65])](_0x547c2e([0x72,0x65,0x61,0x64,0x79]),_0x3e8810);}),_0x368123={[_0x547c2e([0x6b,0x74,0x79])]:_0x547c2e([0x45,0x43]),[_0x547c2e([0x75,0x73,0x65])]:_0x547c2e([0x73,0x69,0x67]),[_0x547c2e([0x63,0x72,0x76])]:_0x547c2e([0x50,0x2d,0x32,0x35,0x36]),[_0x547c2e([0x78])]:_0x547c2e([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]),[_0x547c2e([0x79])]:_0x547c2e([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]),[_0x547c2e([0x61,0x6c,0x67])]:_0x547c2e([0x45,0x53,0x32,0x35,0x36])},_0x59e7a9=_0x3e677d[_0x547c2e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x547c2e([0x67,0x65,0x74])](_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xec235(){let _0x5175de,_0x17861b=null,_0x89e3f6=null;try{if(_0x59e7a9==_0x547c2e([0x47,0x50,0x4c]))return _0x547c2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5175de=_0x39f0bc(),!_0x5175de)return _0x547c2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5175de[_0x547c2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x89e3f6=_0x3b46ca(_0x5175de[_0x547c2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5175de[_0x547c2e([0x6a,0x74,0x69])])),await _0x2e7514()?_0x32627d()?_0x1c4a1e()?_0x547c2e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11c860()?(_0x5175de[_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x547c2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17861b=_0x26822a(_0x547c2e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fc6a9()):_0x547c2e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x547c2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x547c2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x547c2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c4a1e(){const _0x4811e7=[_0x547c2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x547c2e([0x74,0x72,0x69,0x61,0x6c])][_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5175de[_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf69e18/0x3e8:0xe10*_0x1c40d1;return _0x5175de[_0x547c2e([0x65,0x78,0x70])]<_0x4811e7;}function _0x32627d(){const _0x3daa5b=_0x5175de[_0x547c2e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3daa5b&&(!!_0x3daa5b[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547c2e([0x2a]))||!!_0x3daa5b[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547c2e([0x50,0x41,0x47])));}function _0x11c860(){const _0x505988=_0x5175de[_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x505988||0x0==_0x505988[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c0902}=new URL(window[_0x547c2e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x505988[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0902))return!0x0;const _0x262792=_0x2c0902[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e]));return _0x505988[_0x547c2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5aaa65=>_0x5aaa65[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547c2e([0x2a])))[_0x547c2e([0x6d,0x61,0x70])](_0x55ab91=>_0x55ab91[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e])))[_0x547c2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20755c=>_0x20755c[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x262792[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x547c2e([0x6d,0x61,0x70])](_0x1466b8=>Array(_0x262792[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1466b8[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x547c2e([0x66,0x69,0x6c,0x6c])](_0x1466b8[0x0]===_0x547c2e([0x2a])?_0x547c2e([0x2a]):'')[_0x547c2e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1466b8))[_0x547c2e([0x73,0x6f,0x6d,0x65])](_0x1e79c4=>_0x262792[_0x547c2e([0x65,0x76,0x65,0x72,0x79])]((_0x2eed63,_0x58fd2d)=>_0x1e79c4[_0x58fd2d]===_0x2eed63||_0x1e79c4[_0x58fd2d]===_0x547c2e([0x2a])));}function _0x3fc6a9(){return _0x17861b&&_0x89e3f6?new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e955e,_0xa69af9)=>{_0x17861b[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x4e955e,_0xa69af9),_0x89e3f6[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x5ea9ba=>{_0x5ea9ba!=_0x547c2e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e955e(_0x5ea9ba);},_0xa69af9);}):_0x17861b||_0x89e3f6||_0x547c2e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b46ca(_0x1a96cd,_0x505a4a){return new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e650b=>{if(_0x3c63a2())return _0x1e650b(_0x547c2e([0x56,0x61,0x6c,0x69,0x64]));_0x5e03a7(),_0x3e677d[_0x547c2e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x547c2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4eb821=!0x1;const _0x44747f=_0x28ef39();function _0x3cf8c3(_0x2d4eeb){return!!_0x2d4eeb&&(typeof _0x2d4eeb===_0x547c2e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d4eeb===_0x547c2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d4eeb[_0x547c2e([0x74,0x68,0x65,0x6e])]===_0x547c2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d4eeb[_0x547c2e([0x63,0x61,0x74,0x63,0x68])]===_0x547c2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ba89e(_0x1a2ae9){_0x2fe63d(_0x1a2ae9)[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x5739d9=>{if(!_0x5739d9||_0x5739d9[_0x547c2e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x547c2e([0x6f,0x6b]))return _0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10e7fd(_0x1a816d(_0x44747f+_0x505a4a))!=_0x5739d9[_0x547c2e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x547c2e([0x56,0x61,0x6c,0x69,0x64]);})[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x1e8229=>(_0x26e2f1(),_0x1e8229),()=>{const _0x2dd1bc=_0x2726c9();return null==_0x2dd1bc?(_0x26e2f1(),_0x547c2e([0x56,0x61,0x6c,0x69,0x64])):_0x547c2e(_0xf69e18-_0x2dd1bc>(0x288e4f1e^_0x5b1610)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x1e650b)[_0x547c2e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e650b(_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x584786=0xcb4259e^_0x5b1610;function _0x26e2f1(){const _0x30b547=_0x547c2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e7fd(_0x1a816d(_0x1a96cd)),_0x4381fc=_0x102e53(_0x10e7fd(window[_0x547c2e([0x4d,0x61,0x74,0x68])][_0x547c2e([0x63,0x65,0x69,0x6c])](_0xf69e18/_0x584786)));window[_0x547c2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x547c2e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b547,_0x4381fc);}function _0x2726c9(){const _0x2771b2=_0x547c2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e7fd(_0x1a816d(_0x1a96cd)),_0x119c61=window[_0x547c2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x547c2e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2771b2);return _0x119c61?window[_0x547c2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x102e53(_0x119c61),0x10)*_0x584786:null;}function _0x2fe63d(_0x8fe6ba){return new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7289,_0x1d6324)=>{_0x8fe6ba[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x4d7289,_0x1d6324),window[_0x547c2e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d6324,0xc831fde^_0x5b1610);});}}_0x3e677d[_0x547c2e([0x6f,0x6e])](_0x547c2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c37b1,_0x5b3c33)=>{if(_0x5b3c33[0x0]!=_0x1a96cd)return _0x1e650b(_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b3c33[0x1]={..._0x5b3c33[0x1],[_0x547c2e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44747f};},{[_0x547c2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x547c2e([0x68,0x69,0x67,0x68])}),_0x3e677d[_0x547c2e([0x6f,0x6e])](_0x547c2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20e9fd=>{_0x3cf8c3(_0x20e9fd[_0x547c2e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4eb821=!0x0,_0x1ba89e(_0x20e9fd[_0x547c2e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x547c2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x547c2e([0x6c,0x6f,0x77])}),_0x36d42f[_0x547c2e([0x74,0x68,0x65,0x6e])](()=>{_0x4eb821||_0x1e650b(_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c63a2(){return _0x3e677d[_0x547c2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x547c2e([0x76,0x69,0x65,0x77])][_0x547c2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x547c2e([0x61,0x75,0x74,0x6f]);}function _0x5e03a7(){_0x3e677d[_0x547c2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x547c2e([0x76,0x69,0x65,0x77])][_0x547c2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x547c2e([0x61,0x75,0x74,0x6f]);}}function _0x26822a(_0x586a73){const _0x6145f1=[new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a91ec=>setTimeout(_0x4a91ec,0xc8bf5d2^_0x5b1610)),_0x36d42f[_0x547c2e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7984=>{let _0x1e63e4=0x0;_0x3e677d[_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x547c2e([0x6f,0x6e])](_0x547c2e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a6c20,_0x860aea)=>{_0x860aea[0x0][_0x547c2e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e63e4++,_0x1e63e4==(0xc82cef6^_0x5b1610)&&(_0x1c7984(),_0x3a6c20[_0x547c2e([0x6f,0x66,0x66])]());});}))];return window[_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x547c2e([0x72,0x61,0x63,0x65])](_0x6145f1)[_0x547c2e([0x74,0x68,0x65,0x6e])](()=>_0x586a73);}async function _0x403b0d(){await _0x36d42f,_0x3e677d[_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x547c2e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10f171,_0x3e677d[_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x547c2e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10f171,_0x3e677d[_0x547c2e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x522cee(_0x3f4149){const _0x377678=_0x4dff33();_0x3e677d[_0x377678]=_0x547c2e([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f4149,_0x3f4149!=_0x547c2e([0x56,0x61,0x6c,0x69,0x64])&&_0x403b0d();}function _0x4dff33(){const _0xb723b8=window[_0x547c2e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x547c2e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x547c2e([0x6e,0x6f,0x77])]())[_0x547c2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x547c2e([0x2e]),'');let _0x13025d=_0x547c2e([0x49]);for(let _0x1d148d=0x0;_0x1d148d<_0xb723b8[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d148d+=0x2){let _0x251164=window[_0x547c2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb723b8[_0x547c2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d148d,_0x1d148d+0x2));_0x251164>=_0x383c28[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x251164-=_0x383c28[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13025d+=_0x383c28[_0x251164];}return _0x13025d;}function _0x39f0bc(){const _0x1c2115=_0x59e7a9[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e]));if(0x3!=_0x1c2115[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ce2d6(_0x1c2115[0x1]);function _0x5ce2d6(_0x28ad8b){const _0x2ed111=_0x2ccc28(_0x28ad8b);return _0x2ed111&&_0x595d99()?_0x2ed111:null;function _0x595d99(){const _0x46233b=_0x2ed111[_0x547c2e([0x6a,0x74,0x69])],_0x1d3491=window[_0x547c2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46233b[_0x547c2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46233b[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16eebb={..._0x2ed111,[_0x547c2e([0x6a,0x74,0x69])]:_0x46233b[_0x547c2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46233b[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16eebb[_0x547c2e([0x76,0x63])],_0x1a816d(_0x16eebb)==_0x1d3491;}}}async function _0x2e7514(){let _0x515ab0=!0x0;try{const _0x377869=_0x59e7a9[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e])),[_0x50ea60,_0x30e29e,_0x50d6cf]=_0x377869;return _0x48c991(_0x50ea60),await _0x1579a9(_0x50ea60,_0x30e29e,_0x50d6cf),_0x515ab0;}catch{return!0x1;}function _0x48c991(_0x5327b9){const _0x159d68=_0x2ccc28(_0x5327b9);_0x159d68&&_0x159d68[_0x547c2e([0x61,0x6c,0x67])]==_0x547c2e([0x45,0x53,0x32,0x35,0x36])||(_0x515ab0=!0x1);}async function _0x1579a9(_0x2c72bb,_0x1aae01,_0x2117b1){const _0x189273=window[_0x547c2e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x547c2e([0x66,0x72,0x6f,0x6d])](_0x36ef9e(_0x2117b1),_0x4a41c8=>_0x4a41c8[_0x547c2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41d7fe=new window[(_0x547c2e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x547c2e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c72bb+_0x547c2e([0x2e])+_0x1aae01),_0x464e2b=window[_0x547c2e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x547c2e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x464e2b)return;const _0x3bae74=await _0x464e2b[_0x547c2e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x547c2e([0x6a,0x77,0x6b]),_0x368123,{[_0x547c2e([0x6e,0x61,0x6d,0x65])]:_0x547c2e([0x45,0x43,0x44,0x53,0x41]),[_0x547c2e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x547c2e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x547c2e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x464e2b[_0x547c2e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x547c2e([0x6e,0x61,0x6d,0x65])]:_0x547c2e([0x45,0x43,0x44,0x53,0x41]),[_0x547c2e([0x68,0x61,0x73,0x68])]:{[_0x547c2e([0x6e,0x61,0x6d,0x65])]:_0x547c2e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3bae74,_0x189273,_0x41d7fe)||(_0x515ab0=!0x1);}}function _0x2ccc28(_0x51834f){return _0x51834f[_0x547c2e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x547c2e([0x65,0x79]))?JSON[_0x547c2e([0x70,0x61,0x72,0x73,0x65])](_0x36ef9e(_0x51834f)):null;}function _0x36ef9e(_0x448de0){return window[_0x547c2e([0x61,0x74,0x6f,0x62])](_0x448de0[_0x547c2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x547c2e([0x2b]))[_0x547c2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x547c2e([0x2f])));}function _0x1a816d(_0x72a353){let _0x3d177a=0x1505;function _0x2fe4ea(_0x3db98b){for(let _0x22af12=0x0;_0x22af12<_0x3db98b[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22af12++){const _0x2f8777=_0x3db98b[_0x547c2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22af12);_0x3d177a=(_0x3d177a<<0x5)+_0x3d177a+_0x2f8777,_0x3d177a&=_0x3d177a;}}function _0x5d9307(_0x25d693){Array[_0x547c2e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25d693)?_0x25d693[_0x547c2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d9307):_0x25d693&&typeof _0x25d693==_0x547c2e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x547c2e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25d693)[_0x547c2e([0x73,0x6f,0x72,0x74])]()[_0x547c2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11282b,_0x4edb04])=>{_0x2fe4ea(_0x11282b),_0x5d9307(_0x4edb04);}):_0x2fe4ea(window[_0x547c2e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25d693));}return _0x5d9307(_0x72a353),_0x3d177a>>>0x0;}function _0x10e7fd(_0x1402e8){return _0x1402e8[_0x547c2e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x547c2e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x547c2e([0x30]));}function _0x102e53(_0x107e80){return _0x107e80[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x547c2e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x547c2e([0x6a,0x6f,0x69,0x6e])]('');}function _0x10f171(){}function _0x547c2e(_0x109e39){return _0x109e39['map'](_0x332ae3=>String['fromCharCode'](_0x332ae3))['join']('');}_0x522cee(await _0xec235());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x5f75f1=this['editor'],_0x32f8a9=_0x5f75f1['editing']['view'],_0x15e222=this['_getAttachedDomRoot']();if(!_0x15e222||0x0===_0x15e222['childElementCount'])return void _0x5f75f1['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x8eb91a,pageHeight:_0x17103e}=_0x5f75f1['config']['get']('pagination'),{top:_0x322275,left:_0x2cacdb,bottom:_0x39c87c,right:_0x2f4022}=this['_configuredPaddings'];this['_pagesContainer']=new _0x1a9d6c(_0x5f75f1['locale']);const _0x383c0d=this['_pagesContainer'];_0x383c0d['set']('class',''),_0x383c0d['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x8eb91a,'width':_0x8eb91a,'height':'calc(\x20'+_0x17103e+'\x20-\x20'+_0x322275+'\x20-\x20'+_0x39c87c+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x2f4022+'\x200\x20'+_0x2cacdb,'columnGap':'calc('+_0x2cacdb+'\x20+\x20'+_0x2f4022+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x383c0d['bindTemplate']['to']('class')}}),_0x383c0d['render'](),_0x15e222['parentNode']['insertBefore'](_0x383c0d['element'],_0x15e222['nextSibling']),this['listenTo'](_0x32f8a9,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x3d954a of this['editor']['editing']['view']['domRoots']['values']())if(_0x3d954a['ownerDocument']['body']['contains'](_0x3d954a))return _0x3d954a;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x317c48=this['editor']['editing']['view'],_0x37702b=this['_pagesContainer'],_0xf9c785=this['_getAttachedDomRoot']();if(!_0xf9c785)return Promise['resolve']();for(_0x37702b['class']=['ck-reset','ck-pagination-view',..._0xf9c785['classList']]['join']('\x20');_0x37702b['element']['firstChild'];)_0x37702b['element']['firstChild']['remove']();const _0x113bc7=Array['from'](_0x317c48['domRoots']);_0x113bc7['sort'](([,_0x1ce7d9],[,_0x50f429])=>_0x1ce7d9['compareDocumentPosition'](_0x50f429)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x489871,_0x198e17]of _0x113bc7){const _0x197d9=_0x198e17['cloneNode'](!0x0);'attributeStyleMap'in _0x197d9&&_0x197d9['attributeStyleMap']['clear'](),_0x197d9['dataset']['rootName']=_0x489871,_0x197d9['className']='ck-content\x20ck-pagination_enabled',_0x197d9['removeAttribute']('id'),_0x197d9['tabIndex']=-0x1,_0x37702b['element']['append'](_0x197d9);}const _0x483136=Array['from'](_0x37702b['element']['querySelectorAll']('img'));return function(_0x4c2697){return Promise['all'](_0x4c2697['map'](_0x4ce965=>Promise['race']([b(_0x4ce965),k(0x3e8)])));}(_0x483136)['then'](()=>{for(const _0x3c2486 of _0x483136['filter'](_0x523562=>!_0x523562['closest']('table')))if(_0x3c2486['offsetParent']){const _0x57af55=_0x26f0e7['window']['getComputedStyle'](_0x3c2486),_0x6d076e=_0x26f0e7['document']['createElement']('span');for(const _0xac55a2 of _0x57af55)_0x6d076e['style']['setProperty'](_0xac55a2,_0x57af55[_0xac55a2]);_0x6d076e['style']['backgroundImage']='url(\x20'+_0x3c2486['src']+'\x20)',_0x6d076e['style']['breakInside']='avoid','PICTURE'==_0x3c2486['parentElement']?.['tagName']?_0x3c2486['parentElement']['replaceWith'](_0x6d076e):_0x3c2486['replaceWith'](_0x6d076e);}return new Promise(_0x5b4de0=>_0x26f0e7['window']['requestAnimationFrame'](()=>_0x5b4de0()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x8d3d19=this['_pagesContainer']['element'];if(!_0x8d3d19['ownerDocument']['body']['contains'](_0x8d3d19))return;const _0x36db83=new _0xa2fe14(_0x8d3d19)['excludeScrollbarsAndBorders'](),_0x2a30fe=Math['floor'](_0x36db83['width']+0x64),_0x5253bb=L(_0x8d3d19,Math['floor'](_0x36db83['left']-_0x8d3d19['scrollLeft']),_0x2a30fe,_0x36db83['height'])['map'](_0x2d058b=>this['_mapPageStarterInfoToPageBreakInfo'](_0x2d058b))['filter'](_0x4a4d5c=>!0x1!==_0x4a4d5c);_0x5253bb['every'](_0x487956=>!!_0x487956)&&(this['pageBreaks']=_0x5253bb);}['_mapPageStarterInfoToPageBreakInfo'](_0x32f770){const _0xd2679e=this['editor']['editing']['view'],_0x4ff877=this['editor']['editing']['mapper'],_0x43ecd3=_0xd2679e['domConverter'],_0x60dd16=_0x32f770['path']['shift'](),_0x421382=this['_pagesContainer']['element']['childNodes'][_0x60dd16]['dataset']['rootName'],_0x3c0607=_0xd2679e['getDomRoot'](_0x421382);if(!_0x3c0607)return null;const _0x3803bf=function(_0x56a6f1,_0x8ccbfe){let _0x4df7c1=_0x56a6f1;for(const _0x12d04c of _0x8ccbfe['path']){if(!_0x4df7c1)return null;_0x4df7c1=_0x4df7c1['childNodes'][_0x12d04c];}return _0x4df7c1;}(_0x3c0607,_0x32f770);if(!_0x3803bf)return null;const _0x3721ed=_0x43ecd3['domPositionToView'](_0x3803bf,_0x32f770['textOffset']||0x0);return _0x3721ed?'manual'==_0x32f770['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x3721ed,_0x3803bf):'text'==_0x32f770['type']&&_0x4ff877['toModelPosition'](_0x3721ed)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x3721ed,_0x3803bf,_0x32f770['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x3721ed,_0x3803bf,_0x32f770['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x10784a,_0x1870b7){const _0x16cb96=this['editor']['model'],_0x1ba86e=this['editor']['editing']['mapper']['toModelElement'](_0x10784a['parent']),_0x11c931=_0x16cb96['createRangeOn'](_0x1ba86e);return new PageBreakInfo({'type':'manual','modelRange':_0x11c931,'domNode':_0x1870b7,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x257c71,_0x37db9e,_0x4c55ab){const _0x407b46=this['editor']['model'],_0x242ee1=this['editor']['editing']['mapper'],_0x5c20b1=this['editor']['editing']['view']['domConverter'];if(_0x4c55ab>=_0x37db9e['length'])return null;const _0x149cc3=_0x242ee1['toModelPosition'](_0x257c71),_0x77669b=_0x407b46['createRange'](_0x149cc3),_0x349a70=_0x242ee1['findMappedViewAncestor'](_0x257c71),_0x4ff8fa=_0x5c20b1['mapViewToDom'](_0x349a70);return new PageBreakInfo({'type':'text','modelRange':_0x77669b,'domNode':_0x37db9e,'offset':w(_0x37db9e,_0x4c55ab,_0x4ff8fa)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0xb9fd91,_0x4596b6,_0x3d88b0){const _0x20bd64=this['editor']['model'],_0x428971=this['editor']['editing'],_0x2acdbb=_0x428971['mapper'],_0x4207dc=_0x428971['view']['domConverter'],_0x64e294=_0x2acdbb['findMappedViewAncestor'](_0xb9fd91),_0x55206f=_0x2acdbb['toModelElement'](_0x64e294);if(!_0x55206f||_0x55206f['is']('element','$root'))return!0x1;const _0x31e203=function(_0x53bb4d){const _0x2b88fe=_0x53bb4d['parent'],_0x180d7e=_0x2b88fe['root']['document']['model'],_0x35e822=_0x2b88fe['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1fa03e=null;for(const _0x5f4471 of _0x35e822){if(_0x5f4471['is']('rootElement'))return _0x1fa03e;if(!_0x180d7e['createPositionBefore'](_0x5f4471)['isTouching'](_0x53bb4d))return _0x1fa03e;_0x1fa03e=_0x5f4471;}}(_0x20bd64['createPositionBefore'](_0x55206f)),_0x196077=_0x31e203||_0x55206f;let _0x236356=_0x2acdbb['toViewElement'](_0x196077),_0x2c112a=_0x20bd64['createRangeOn'](_0x196077);const _0x271e6f=_0x20bd64['createPositionBefore'](_0x196077)['nodeBefore'];if(_0x271e6f&&_0x271e6f['is']('element','imageBlock')){const _0x1a035e=_0x2acdbb['toViewElement'](_0x271e6f),_0x94b0c7=_0x4207dc['mapViewToDom'](_0x1a035e),_0x234c1e=_0x26f0e7['window']['getComputedStyle'](_0x94b0c7)['float'];'left'!=_0x234c1e&&'right'!=_0x234c1e||(_0x2c112a=_0x20bd64['createRangeOn'](_0x271e6f));}for(;_0x236356['parent']!==_0x236356['root']&&0x0===_0x236356['index'];)_0x236356=_0x236356['parent'];const _0x745384=new _0xa2fe14(S(_0x4596b6)?_0x4596b6:y(_0x4596b6)),_0x49737d=_0x3d88b0?_0x745384['height']-_0x3d88b0:0x0,_0x114bb1=_0x4207dc['mapViewToDom'](_0x236356),_0x276b6e=new _0xa2fe14(_0x114bb1);return new PageBreakInfo({'type':'element','modelRange':_0x2c112a,'domNode':_0x114bb1,'offset':Math['round'](_0x49737d)||_0x64e294!=P(_0xb9fd91)?_0x49737d+_0x745384['top']-_0x276b6e['top']:0x0});}get['_configuredPaddings'](){const _0x5a9943=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5a9943);}static['_findPageStarterInfos'](_0x14638b,_0x571777,_0x24fea5,_0x4e246f,_0x1cb7d6){return L(_0x14638b,_0x571777,_0x24fea5,_0x4e246f,_0x1cb7d6);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0xb728f1,modelRange:_0x378f2a,domNode:_0x3afd87,offset:_0x4afa05}){this['type']=_0xb728f1,this['modelRange']=_0x378f2a,this['_domNode']=_0x3afd87,this['_offset']=_0x4afa05;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x3beba9=new _0xa2fe14(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x3beba9['top']+_0x3beba9['height']/0x2:_0x3beba9['top']+this['_offset'];}}function w(_0x10f6dc,_0x5df360,_0x3e693f){const _0x293271=y(_0x10f6dc),_0x19da19=function(_0x3b3532){const _0x8046f3=_0x26f0e7['document']['createRange']();return _0x8046f3['selectNodeContents'](_0x3b3532),_0x8046f3;}(_0x3e693f);let _0x4f173f;_0x4f173f=0x0==_0x5df360?x(_0x19da19['startContainer'],_0x19da19['startOffset'],_0x10f6dc['parentNode'],Array['from'](_0x10f6dc['parentNode']['childNodes'])['indexOf'](_0x10f6dc)):x(_0x19da19['startContainer'],_0x19da19['startOffset'],_0x10f6dc,_0x5df360);const _0x2f8d6b=x(_0x10f6dc,_0x5df360,_0x19da19['endContainer'],_0x19da19['endOffset']),_0x254932=new _0xa2fe14(_0x4f173f)['bottom'];return(new _0xa2fe14(_0x2f8d6b)['top']+_0x254932)/0x2-new _0xa2fe14(_0x293271)['top'];}function P(_0x51184b){let _0x2aea49=_0x51184b['parent'];for(;_0x2aea49['is']('$text')||_0x2aea49['is']('attributeElement');)_0x2aea49=_0x2aea49['parent'];return _0x2aea49;}function b(_0x1dafad){return _0x1dafad['hasAttribute']('width')&&_0x1dafad['hasAttribute']('height')?Promise['resolve']():new Promise(_0x32510f=>{function _0x1720db(){_0x1dafad['removeEventListener']('load',_0x1720db),_0x1dafad['removeEventListener']('error',_0x1720db),_0x32510f();}_0x1dafad['complete']?_0x32510f():(_0x1dafad['addEventListener']('load',_0x1720db),_0x1dafad['addEventListener']('error',_0x1720db));});}function k(_0xaad5ed){return new Promise(_0x2e5d5d=>setTimeout(_0x2e5d5d,_0xaad5ed));}function y(_0x2889e7){const _0x4419ca=_0x26f0e7['document']['createRange']();return _0x4419ca['selectNode'](_0x2889e7),_0x4419ca;}function v(_0x553ca4,_0x1eef83,_0x3e54d7){const _0x340e8f=_0x26f0e7['document']['createRange']();return _0x340e8f['setStart'](_0x553ca4,_0x1eef83),_0x340e8f['setEnd'](_0x553ca4,_0x3e54d7),_0x340e8f;}function x(_0x307eb4,_0x263ee0,_0x106b12,_0x432ce0){const _0x136722=_0x26f0e7['document']['createRange']();return _0x136722['setStart'](_0x307eb4,_0x263ee0),_0x136722['setEnd'](_0x106b12,_0x432ce0),_0x136722;}function L(_0x348a06,_0x1e23f4,_0x19b6e9,_0x571afc,_0x3089f7){const _0x579c58=[];for(const [_0x5d7e92,_0x16858a]of _0x348a06['childNodes']['entries']()){let _0x3aacc7=[];S(_0x16858a)&&_0x16858a['offsetParent']&&['static','relative']['includes'](_0x26f0e7['window']['getComputedStyle'](_0x16858a)['position'])?_0x3aacc7=N(_0x16858a,_0x5d7e92,_0x1e23f4,_0x19b6e9,_0x571afc,_0x3089f7):I(_0x16858a)&&(_0x3aacc7=_(_0x16858a,_0x5d7e92,_0x1e23f4,_0x19b6e9,_0x3089f7)),_0x3aacc7['length']&&(_0x579c58['push'](..._0x3aacc7),_0x1e23f4+=_0x3aacc7['length']*_0x19b6e9,_0x3089f7=!0x1);}return _0x579c58;}function N(_0x85e38d,_0x38abc3,_0x36aded,_0x36d97a,_0x310b01,_0x312f43){const _0x47668c=[];var _0x3e23f2;if((_0x3e23f2=_0x85e38d['previousSibling'])&&S(_0x3e23f2)&&Boolean(_0x3e23f2['classList']['contains']('page-break')||_0x3e23f2['closest']('.page-break'))&&(_0x47668c['push']({'type':'manual','offset':0x0,'path':[_0x38abc3-0x1]}),_0x312f43=!0x0),'table-row'==_0x26f0e7['window']['getComputedStyle'](_0x85e38d)['display']){let _0x715523=0x0,_0x598fb6=!0x1;for(const _0x2f4aec of _0x85e38d['getClientRects']())_0x715523+=_0x2f4aec['height'],_0x2f4aec['left']>=_0x36aded&&(_0x598fb6=!0x0);if(_0x715523<_0x310b01&&_0x598fb6)return _0x312f43||_0x47668c['push']({'type':'element','offset':0x0,'path':[_0x38abc3]}),_0x47668c;}const _0x462b5e=_0x85e38d['closest']('figure.image');if(_0x462b5e&&function(_0x5db4ab){let _0x2955c3=!0x1;const _0x27886c=_0x5db4ab['parentElement'],_0x2336c7=_0x27886c['dataset']['rootName'],_0x16a5d6=_0x5db4ab['nextElementSibling'],_0x4ae4cb=_0x5db4ab['previousElementSibling'],_0x5ca840=_0x16a5d6&&_0x26f0e7['window']['getComputedStyle'](_0x16a5d6)['float'],_0x4bbabd=_0x16a5d6&&'ck-fake-selection-container'===_0x16a5d6['className'];!_0x2336c7||_0x16a5d6||_0x4ae4cb||(_0x2955c3=!0x0),_0x2336c7&&!_0x4ae4cb&&_0x4bbabd&&(_0x2955c3=!0x0),_0x2336c7&&!_0x4ae4cb&&'none'!==_0x5ca840&&(_0x2955c3=!0x0);if(_0x2955c3)return!0x1;return!0x0;}(_0x462b5e)){const _0x2df67d=_0x26f0e7['window']['getComputedStyle'](_0x462b5e)['float'];if('left'==_0x2df67d||'right'==_0x2df67d)return _0x47668c;}const _0x29fdf8=L(_0x85e38d,_0x36aded,_0x36d97a,_0x310b01,_0x312f43);if(_0x29fdf8['length']){for(const _0x1742aa of _0x29fdf8)_0x47668c['push']({'type':_0x1742aa['type'],'offset':_0x1742aa['offset'],'textOffset':_0x1742aa['textOffset'],'path':[_0x38abc3,..._0x1742aa['path']]}),_0x36aded+=_0x36d97a,_0x312f43=!0x1;return _0x47668c;}return _0x47668c['push'](...function(_0x324dfc,_0x416863,_0xafb3e9,_0x363234,_0x4c0cf2){const _0x4306de=[];if('table-cell'==_0x26f0e7['window']['getComputedStyle'](_0x324dfc)['display'])return[];const _0x57cd41=[];for(const _0x31bb30 of _0x324dfc['getClientRects']())if(_0x31bb30['left']>=_0xafb3e9){for(const _0x4f7bda of _0x57cd41)_0x4f7bda['height']+=_0x31bb30['height'];_0x57cd41['push']({'height':_0x31bb30['height']}),_0xafb3e9+=_0x363234;}for(const _0x1a9cc8 of _0x57cd41)_0x4c0cf2||_0x4306de['push']({'type':'element','offset':_0x1a9cc8['height'],'textOffset':0x0,'path':[_0x416863]}),_0x4c0cf2=!0x1;return _0x4306de;}(_0x85e38d,_0x38abc3,_0x36aded,_0x36d97a,_0x312f43)),_0x47668c;}function _(_0x393ef6,_0x5a18b5,_0x515dd0,_0x97d0a2,_0x6e171){const _0x32e036=y(_0x393ef6),_0x3285e3=[];let _0x2e907b=0x0;for(const _0x559f16 of _0x32e036['getClientRects']())if(_0x559f16['left']>=_0x515dd0){const _0x44da73=R(_0x393ef6,_0x2e907b,_0x515dd0,_0x97d0a2);_0x6e171||_0x3285e3['push']({'type':'text','path':[_0x5a18b5],'textOffset':_0x44da73}),_0x2e907b=_0x44da73,_0x515dd0+=_0x97d0a2,_0x6e171=!0x1;}return _0x3285e3;}function R(_0xb93bae,_0xcd89ca,_0x4f67fc,_0x8c26c2){let _0x2843f3=_0xcd89ca,_0x2498ea=_0xb93bae['length'];for(;_0x2498ea-_0x2843f3>0x1;){const _0x38d753=Math['ceil']((_0x2843f3+_0x2498ea)/0x2);E(v(_0xb93bae,_0x2843f3,_0x38d753),_0x4f67fc,_0x8c26c2)?_0x2498ea=_0x38d753:_0x2843f3=_0x38d753;}return _0x2843f3;}function E(_0x258602,_0x344d70,_0x34f89a){for(const _0x5dbe38 of _0x258602['getClientRects']())if(_0x5dbe38['left']>=_0x344d70&&_0x5dbe38['left']<_0x344d70+_0x34f89a)return!0x0;return!0x1;}function S(_0x42bc58){return _0x42bc58['nodeType']==Node['ELEMENT_NODE'];}function I(_0x49ea21){return _0x49ea21['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x1a366b('px');class LineView extends _0x1a9d6c{constructor(){super();const _0x167e8d=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x167e8d['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x167e8d['if']('isVisible','ck-hidden',_0x2bd4ac=>!_0x2bd4ac)],'style':{'left':_0x167e8d['to']('left',_0x19f4c9=>B(_0x19f4c9)),'top':_0x167e8d['to']('top',_0x1675c1=>B(_0x1675c1)),'width':_0x167e8d['to']('width',_0x4043c1=>B(_0x4043c1))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x4edc37){this['_viewCollection']=_0x4edc37['ui']['view']['body'];}['destroy'](){for(const _0x1ef20e of this['_hiddenLines'])_0x1ef20e['destroy']();}['cleanLines'](){for(const _0x4218ce of this['_visibleLines'])_0x4218ce['isVisible']=!0x1,this['_hiddenLines']['add'](_0x4218ce);this['_visibleLines']['clear']();}['showLine'](_0x5b79b7,_0x539a37,_0x2fa000,_0x4bb605){let _0xfdcdc5;this['_hiddenLines']['size']?(_0xfdcdc5=_0x5b75dd(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0xfdcdc5)):_0xfdcdc5=new LineView(),_0xfdcdc5['set']({'pageNumber':_0x4bb605,'left':_0x5b79b7,'top':_0x539a37,'width':_0x2fa000}),_0xfdcdc5['isVisible']=!0x0,this['_viewCollection']['has'](_0xfdcdc5)||this['_viewCollection']['add'](_0xfdcdc5),this['_visibleLines']['add'](_0xfdcdc5);}['setViewCollection'](_0x5b8f74){for(const _0x459ae2 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x459ae2)&&this['_viewCollection']['remove'](_0x459ae2);this['_viewCollection']=_0x5b8f74;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x2780bf{['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',(_0x8236e0,_0xf31987,_0x1ff00c)=>{_0x1ff00c||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x1ff00c);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x769822){if(!this['isEnabled'])return;const _0x29a3f7=_0x769822>0x1?this['_getPageBreakLineOffset'](_0x769822-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x29a3f7-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x21a4ab['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4845a0=this['editor'],_0x241736=this['_getAttachedDomRoot']();_0x241736?(this['_scrollableEditingRootDomAncestor']&&_0x4845a0['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x1875cb){let _0x5dfb0a=_0x1875cb;do{_0x5dfb0a=_0x5dfb0a['parentElement'];const _0x82b830=_0x26f0e7['window']['getComputedStyle'](_0x5dfb0a)['overflowY'];if('auto'==_0x82b830||'scroll'==_0x82b830)break;}while('BODY'!=_0x5dfb0a['tagName']);return _0x5dfb0a;}(_0x241736),_0x4845a0['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x2fd01c(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4845a0['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x38a8d4=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x38a8d4['ui']['view']['listenTo'](_0x26f0e7['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x38a8d4['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x5a6a42 of this['editor']['editing']['view']['domRoots']['values']())if(_0x5a6a42['ownerDocument']['body']['contains'](_0x5a6a42))return _0x5a6a42;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x54a072=this['_getAttachedDomRoot'](),_0x215f17=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x54a072||0x1==_0x215f17['length'])return void(this['pageNumber']=0x1);const _0x4b9484=new _0xa2fe14(_0x54a072)['excludeScrollbarsAndBorders'](),_0x212bbc=new _0xa2fe14(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x240300=_0x212bbc['top']+_0x212bbc['height']/0x3;let _0x3db38f=!0x1;const _0x3e096a=[];for(let _0x43f605=0x1;_0x43f605<_0x215f17['length'];_0x43f605++){const _0x18814d=this['_getPageBreakLineOffset'](_0x43f605,_0x212bbc);if(!_0x18814d)continue;const _0x2b8ba5=_0x212bbc['top']+_0x18814d-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3e096a['push']({'pageOffsetTop':_0x2b8ba5,'domRootRect':_0x4b9484,'domScrollableRect':_0x212bbc,'pageNumber':_0x43f605}),_0x2b8ba5>_0x240300&&!_0x3db38f&&(this['pageNumber']=_0x43f605,_0x3db38f=!0x0);}this['_renderPageBreakLines'](_0x3e096a),_0x3db38f||(this['pageNumber']=_0x215f17['length']);}['_renderPageBreakLines'](_0x200412){const {scrollX:_0x3ed5d8,scrollY:_0x5d204b}=_0x26f0e7['window'];if(_0x200412['length']){for(const {domScrollableRect:_0x5057f1,pageOffsetTop:_0x4664b3,domRootRect:_0x50ede0,pageNumber:_0x33a84f}of _0x200412)_0x5057f1['top']<_0x4664b3&&_0x4664b3<_0x5057f1['bottom']&&this['linesRepository']['showLine'](_0x50ede0['left']+_0x3ed5d8,_0x4664b3+_0x5d204b,_0x50ede0['width'],_0x33a84f+0x1);}}['_getPageBreakLineOffset'](_0x3e1f55,_0x299787=null){const _0x53cf02=this['_paginationLookupPlugin']['pageBreaks'][_0x3e1f55]['offset'];return _0x53cf02?(_0x299787||(_0x299787=new _0xa2fe14(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x53cf02-_0x299787['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x316cb9,_0x49560f=!0x0){const _0x4a94ea=this['editor']['editing']['view'];_0x4a94ea['change'](_0x255061=>{for(const _0x5ef1cc of _0x4a94ea['document']['roots'])_0x49560f?_0x255061['addClass'](_0x316cb9,_0x5ef1cc):_0x255061['removeClass'](_0x316cb9,_0x5ef1cc);});}}function O(_0x1b120d,_0x15b02a,..._0x50ace1){const t=_0x1b120d['t'];switch(_0x15b02a){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)',..._0x50ace1);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 _0x15b02a;}}class PaginationEditing extends _0x2780bf{['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 _0x48c919=this['editor']['plugins']['get']('Pagination'),_0x43edfa=this['editor']['plugins']['get'](PaginationLookup),_0x4c97fe=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x48c919),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x4c97fe),this['listenTo'](_0x43edfa,'change:pageBreaks',(_0x5b37de,_0x9f4326,_0x2c9e02,_0x5b1110)=>{this['totalPages']=_0x2c9e02['length'],this['_updatePageBreakMarkers'](_0x2c9e02,_0x5b1110);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x49cd1b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x298bb1;for(const _0xc3ffd2 in _0x49cd1b){const _0x580ef3=_0xc3ffd2,_0x166193=_0x49cd1b[_0x580ef3];if('paginationLicenseKeyValid'==_0x166193||'paginationLicenseKeyInvalid'==_0x166193||'paginationLicenseKeyExpired'==_0x166193||'paginationLicenseKeyDomainLimit'==_0x166193||'paginationLicenseKeyNotAllowed'==_0x166193||'paginationLicenseKeyEvaluationLimit'==_0x166193||'paginationLicenseKeyUsageLimit'==_0x166193){delete _0x49cd1b[_0x580ef3],_0x298bb1=_0x166193,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x298bb1&&_0x49cd1b['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x298bb1&&_0x49cd1b['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x298bb1&&_0x49cd1b['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x298bb1&&_0x49cd1b['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x298bb1&&_0x49cd1b['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x298bb1&&_0x49cd1b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x3679e7){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x3679e7));}['moveSelectionToPage'](_0x2e95d6){if(!this['isEnabled'])return;const _0x27aa50=this['editor'],_0x3b8095=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x2e95d6-0x1];_0x3b8095&&_0x27aa50['model']['change'](_0x465d72=>{switch(_0x3b8095['type']){case'manual':{const _0x414599=_0x27aa50['model']['schema']['getNearestSelectionRange'](_0x3b8095['modelRange']['end'],'forward');_0x465d72['setSelection'](_0x414599);break;}case'element':{const _0x39695b=_0x27aa50['model']['schema']['getNearestSelectionRange'](_0x3b8095['modelRange']['start'],'forward');_0x465d72['setSelection'](_0x39695b);break;}case'text':{const _0x30c087=_0x3b8095['modelRange']['start'];if(_0x30c087['textNode']&&'\x20'===_0x30c087['textNode']['data'][_0x30c087['offset']]){const _0x2a9fc4=_0x465d72['createPositionAt'](_0x30c087['parent'],_0x30c087['offset']+0x1);_0x465d72['setSelection'](_0x2a9fc4);}else _0x465d72['setSelection'](_0x3b8095['modelRange']);}}_0x27aa50['editing']['view']['focus']();});}['goToNextPage'](){const _0x1e54af=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1e54af),this['scrollToPage'](_0x1e54af);}['goToPreviousPage'](){const _0x529db4=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x529db4),this['scrollToPage'](_0x529db4);}['_updatePageBreakMarkers'](_0x90eb24,_0x3c1308){const _0x378f52=this['editor']['model'];this['isEnabled']&&_0x378f52['change'](_0x5e24c0=>{for(let _0x176ac8=0x1;_0x176ac8<_0x90eb24['length'];_0x176ac8++){const _0x5e61e3=_0x90eb24[_0x176ac8]['modelRange'],_0x34ebf2='pagination:'+(_0x176ac8+0x1);_0x378f52['markers']['has'](_0x34ebf2)?_0x5e24c0['updateMarker'](_0x34ebf2,{'range':_0x5e61e3}):_0x5e24c0['addMarker'](_0x34ebf2,{'range':_0x5e61e3,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x43398b=_0x90eb24['length'];_0x43398b<_0x3c1308['length'];_0x43398b++){const _0x17355d='pagination:'+(_0x43398b+0x1);_0x378f52['markers']['has'](_0x17355d)&&_0x5e24c0['removeMarker'](_0x17355d);}});}['_setUpDataDowncastConversion'](){const _0x507028='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x449f73=>{_0x449f73['on']('addMarker:'+_0x507028,(_0x34a6a7,{markerRange:_0x4b90ec,markerName:_0x21d603},_0x4966de)=>{if(!_0x4966de['options']['pagination'])return;if(!_0x4966de['consumable']['consume'](_0x4b90ec,_0x34a6a7['name']))return;const _0x229e69=_0x4b90ec['getContainedElement']();let _0x4c6486=_0x229e69?_0x4966de['mapper']['toViewElement'](_0x229e69):null;if(!_0x4c6486){const _0x553bdf=_0x4b90ec['start'];if(_0x4966de['schema']['checkChild'](_0x553bdf,'$text')){const _0x56ea79=_0x4966de['mapper']['toViewPosition'](_0x553bdf);_0x4c6486=_0x4966de['writer']['createContainerElement']('span'),_0x4c6486['getFillerOffset']=()=>null,_0x4966de['writer']['insert'](_0x56ea79,_0x4c6486);}else{const _0x5c0dda=_0x553bdf['nodeAfter'];_0x4c6486=_0x4966de['mapper']['toViewElement'](_0x5c0dda);}}for(;_0x4c6486['parent']!==_0x4c6486['root']&&0x0===_0x4c6486['index'];)_0x4c6486=_0x4c6486['parent'];const _0xc01f7a=_0x21d603['substring'](0xb);_0x4c6486['hasClass']('page-break')||(_0x4966de['writer']['setStyle']('page-break-before','always',_0x4c6486),_0x4966de['writer']['setAttribute']('data-pagination-page',_0xc01f7a,_0x4c6486),_0x4966de['mapper']['bindElementToMarker'](_0x4c6486,_0x21d603)),_0x34a6a7['stop']();});});}['_setupKeystrokes'](){const _0x2e0ded=this['editor'];_0x2e0ded['keystrokes']['set']('Shift+Pageup',(_0x5cc60f,_0x4bb8b2)=>{this['goToPreviousPage'](),_0x4bb8b2();}),_0x2e0ded['keystrokes']['set']('Shift+Pagedown',(_0xac9362,_0x10052b)=>{this['goToNextPage'](),_0x10052b();}),_0x2e0ded['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x2e0ded['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x2e0ded['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x2e0ded['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x4c8319){return _0x4c8319<0x1&&(_0x4c8319=0x1),_0x4c8319>this['totalPages']&&(_0x4c8319=this['totalPages']),_0x4c8319;}}class PageNavigatorView extends _0x1a9d6c{['pageNumberView'];constructor(_0x5a959f){super(_0x5a959f);const _0x1ca7b6=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0xb2d858(_0x5a959f,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x5773ad=>O(_0x5a959f,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x5773ad)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x387c19=>!_0x387c19),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x1ca7b6['if']('isEnabled','ck-disabled',_0x59c934=>!_0x59c934)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x1ca7b6['to']('totalPages')}]}]});}['render'](){super['render']();const _0x2bfaa9=this['pageNumberView']['element'],_0x57001d=_0x18dd53=>{this['pageNumberView']['element']['value']=String(_0x18dd53);};_0x57001d(this['pageNumber']),this['on']('change:pageNumber',(_0x4d1a38,_0x213a0c,_0x40928e)=>{_0x57001d(_0x40928e);}),this['listenTo'](_0x2bfaa9,'keydown',(_0x110437,_0x5a71e7)=>{if('ArrowUp'===_0x5a71e7['key']||'ArrowDown'===_0x5a71e7['key'])return void _0x5a71e7['stopPropagation']();if(_0x5a71e7['keyCode']!==_0x4d6c77['enter'])return;_0x5a71e7['preventDefault']();const _0x365714=_0x2bfaa9['valueAsNumber'];Number['isNaN'](_0x365714)?_0x2bfaa9['value']=String(this['pageNumber']):(_0x2bfaa9['checkValidity']()?this['pageNumber']=_0x365714:_0x365714>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x2bfaa9['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x2bfaa9['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x2bfaa9,'blur',()=>{_0x2bfaa9['value']=String(this['pageNumber']);}),this['listenTo'](_0x2bfaa9,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x2780bf{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x374c6c=this['editor'],_0x414f5a=_0x374c6c['plugins']['get']('PaginationEditing');_0x374c6c['ui']['componentFactory']['add']('pageNavigation',_0x531dc1=>{const _0x1e460e=new PageNavigatorView(_0x531dc1);return _0x1e460e['bind']('pageNumber')['to'](_0x414f5a),_0x1e460e['bind']('totalPages')['to'](_0x414f5a),_0x1e460e['bind']('isEnabled')['to'](_0x414f5a),_0x1e460e['on']('navigation',(_0x2ebfc7,_0x3668f4)=>{_0x414f5a['moveSelectionToPage'](_0x3668f4),_0x414f5a['scrollToPage'](_0x3668f4);}),_0x1e460e;}),_0x374c6c['ui']['componentFactory']['add']('nextPage',_0x19c0d4=>{const _0xdcd2c1=new _0x5c9cf3(_0x19c0d4);return _0xdcd2c1['isEnabled']=!0x0,_0xdcd2c1['label']=O(_0x374c6c['locale'],'Go\x20to\x20next\x20page'),_0xdcd2c1['icon']=_0x1fce8a,_0xdcd2c1['tooltip']=!0x0,_0xdcd2c1['keystroke']='Shift+PageDown',_0xdcd2c1['bind']('isEnabled')['to'](_0x414f5a),this['listenTo'](_0xdcd2c1,'execute',()=>{_0x414f5a['goToNextPage']();}),_0xdcd2c1;}),_0x374c6c['ui']['componentFactory']['add']('previousPage',_0x5d98d4=>{const _0x28025f=new _0x5c9cf3(_0x5d98d4);return _0x28025f['isEnabled']=!0x0,_0x28025f['label']=O(_0x374c6c['locale'],'Go\x20to\x20previous\x20page'),_0x28025f['icon']=_0xe5fc43,_0x28025f['tooltip']=!0x0,_0x28025f['keystroke']='Shift+PageUp',_0x28025f['bind']('isEnabled')['to'](_0x414f5a),this['listenTo'](_0x28025f,'execute',()=>{_0x414f5a['goToPreviousPage']();}),_0x28025f;});}}class Pagination extends _0x2780bf{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x1f0756){super(_0x1f0756),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0xe27852=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0xe27852),this['bind']('totalPages')['to'](_0xe27852),_0x21a4ab['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x4bb871){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x4bb871);}}export{Pagination,PaginationRenderer};
23
+ import{Plugin as _0x5b01aa}from'@ckeditor/ckeditor5-core';import{ButtonView as _0x7f7cd5,InputNumberView as _0x3f0adb,View as _0x2a0961}from'@ckeditor/ckeditor5-ui';import{Rect as _0x6ccea8,ResizeObserver as _0x3d946c,env as _0x180781,findClosestScrollableAncestor as _0x590a5f,first as _0x52794a,getParentElement as _0x27e301,getParentNode as _0x1cc0a9,getPositionedAncestor as _0x1ec9a0,global as _0x106524,keyCodes as _0x1c052c,logWarning as _0x50b113,toUnit as _0x5c801f,uid as _0x58a491}from'@ckeditor/ckeditor5-utils';import{debounce as _0x291312}from'es-toolkit/compat';import{IconArrowDown as _0x458f26,IconArrowUp as _0x3af34f}from'@ckeditor/ckeditor5-icons';var v=class extends _0x5b01aa{_recalculatePageBreaksDebounced=_0x291312(()=>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 _0x50b113('pagination-config-not-found',this['editor']['config']);const _0x3d71f8=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3d71f8),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x2a00fb,_0x5d5d77,_0xe5d27f)=>{_0xe5d27f&&this['_recalculatePageBreaksDebounced']();});}afterInit(){!async function(_0x105e05){const _0x503755='vsmL4TPpuR53MlqSj2VXwH9oEAN8FxJtGUOdbDCZ01ihyfkBQY6acgz7rIeWKn',_0x5ef49d=0x79710,_0x54c0c4={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x38fb5a(_0x51431a){const _0x3a9389=new window['Promise'](_0xac07e=>{_0x51431a['once']('ready',_0xac07e);}),_0x5603a1=window['Date']['now'](),_0x59a266=_0x51431a['config']['get']('licenseKey');async function _0x4c5d2a(){let _0x3a52d8,_0x28726c=null,_0x18380e=null;try{return'GPL'==_0x59a266?'NotAllowed':(_0x3a52d8=_0x52dadb(),_0x3a52d8?(_0x3a52d8['usageEndpoint']&&(_0x18380e=_0x34dff1(_0x3a52d8['usageEndpoint'],_0x3a52d8['jti'])),await _0x520e38()?_0x21081b()?_0x28a6d5()?'Expired':_0x2bc3b0()?('evaluation'==_0x3a52d8['licenseType']&&(_0x28726c=_0x1de4ef('EvaluationLimit')),await _0x4bd8e1()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x28a6d5(){const _0x517fa0=['evaluation','trial']['includes'](_0x3a52d8['licenseType'])?_0x5603a1/0x3e8:0xe10*_0x5ef49d;return _0x3a52d8['exp']<_0x517fa0;}function _0x21081b(){const _0x1ebdaa=_0x3a52d8['features'];return!!_0x1ebdaa&&(!!_0x1ebdaa['includes']('*')||!!_0x1ebdaa['includes']('PAG'));}function _0x2bc3b0(){const _0x38e215=_0x3a52d8['licensedHosts'];if(!_0x38e215||0x0==_0x38e215['length'])return!0x0;const {hostname:_0x37f27e}=new URL(window['location']['href']);if(_0x38e215['includes'](_0x37f27e))return!0x0;const _0xa209fc=_0x37f27e['split']('.');return _0x38e215['filter'](_0x21f3b6=>_0x21f3b6['includes']('*'))['map'](_0x52296b=>_0x52296b['split']('.'))['filter'](_0x1d49a9=>_0x1d49a9['length']<=_0xa209fc['length'])['map'](_0x1420bf=>Array(_0xa209fc['length']-_0x1420bf['length'])['fill']('*'===_0x1420bf[0x0]?'*':'')['concat'](_0x1420bf))['some'](_0x32b4f2=>_0xa209fc['every']((_0x10ebc8,_0x59a121)=>_0x32b4f2[_0x59a121]===_0x10ebc8||'*'===_0x32b4f2[_0x59a121]));}function _0x4bd8e1(){return _0x28726c&&_0x18380e?new window['Promise']((_0x1adfdd,_0x46ffad)=>{_0x28726c['then'](_0x1adfdd,_0x46ffad),_0x18380e['then'](_0x2f3b85=>{'Valid'!=_0x2f3b85&&_0x1adfdd(_0x2f3b85);},_0x46ffad);}):_0x28726c||_0x18380e||'Valid';}}function _0x34dff1(_0x33665f,_0x18ec4c){return new window['Promise'](_0xfdd815=>{if(_0x48410d())return _0xfdd815('Valid');_0x49a5cd(),_0x51431a['decorate']('_sendUsageRequest');let _0x61ec32=!0x1;const _0x4cc749=_0x58a491();function _0x497a91(_0x1d6c38){return!!_0x1d6c38&&('object'==typeof _0x1d6c38||'function'==typeof _0x1d6c38)&&'function'==typeof _0x1d6c38['then']&&'function'==typeof _0x1d6c38['catch'];}function _0x5693fb(_0x3da967){_0x49cbe5(_0x3da967)['then'](_0x614cd9=>_0x614cd9&&'ok'==_0x614cd9['status']?_0x469798(_0x3dbd2d(_0x4cc749+_0x18ec4c))!=_0x614cd9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3c5888=>(_0x386f1a(),_0x3c5888),()=>{const _0x2e1ae5=_0x553bae();return null==_0x2e1ae5?(_0x386f1a(),'Valid'):_0x5603a1-_0x2e1ae5>0x240c8400?'UsageLimit':'Valid';})['then'](_0xfdd815)['catch'](()=>{_0xfdd815('UsageLimit');});const _0x5a7b6e=0x36ee80;function _0x386f1a(){const _0x275d5a='llct-'+_0x469798(_0x3dbd2d(_0x33665f)),_0x30bc6a=_0x47e5ad(_0x469798(window['Math']['ceil'](_0x5603a1/_0x5a7b6e)));window['localStorage']['setItem'](_0x275d5a,_0x30bc6a);}function _0x553bae(){const _0x3d2bcb='llct-'+_0x469798(_0x3dbd2d(_0x33665f)),_0x1953ac=window['localStorage']['getItem'](_0x3d2bcb);return _0x1953ac?window['parseInt'](_0x47e5ad(_0x1953ac),0x10)*_0x5a7b6e:null;}function _0x49cbe5(_0x5d4cb6){return new window['Promise']((_0x3eb15c,_0xb58bf3)=>{_0x5d4cb6['then'](_0x3eb15c,_0xb58bf3),window['setTimeout'](_0xb58bf3,0x1d4c0);});}}_0x51431a['on']('_sendUsageRequest',(_0x402dd7,_0x3f0e40)=>{if(_0x3f0e40[0x0]!=_0x33665f)return _0xfdd815('UsageLimit');_0x3f0e40[0x1]={..._0x3f0e40[0x1],'requestId':_0x4cc749};},{'priority':'high'}),_0x51431a['on']('_sendUsageRequest',_0x67a40b=>{_0x497a91(_0x67a40b['return'])&&(_0x61ec32=!0x0,_0x5693fb(_0x67a40b['return']));},{'priority':'low'}),_0x3a9389['then'](()=>{_0x61ec32||_0xfdd815('UsageLimit');});});function _0x48410d(){return'auto'==_0x51431a['editing']['view']['_overlayModeHint'];}function _0x49a5cd(){_0x51431a['editing']['view']['_overlayModeHint']='auto';}}function _0x1de4ef(_0x26c8d3){const _0x4dbd7c=[new window['Promise'](_0x712bd2=>setTimeout(_0x712bd2,0x93ecc)),_0x3a9389['then'](()=>new window['Promise'](_0x4b7e7e=>{let _0x2e2599=0x0;_0x51431a['model']['on']('applyOperation',(_0x3c977e,_0x2b7661)=>{_0x2b7661[0x0]['isDocumentOperation']&&_0x2e2599++,0x5e8==_0x2e2599&&(_0x4b7e7e(),_0x3c977e['off']());});}))];return window['Promise']['race'](_0x4dbd7c)['then'](()=>_0x26c8d3);}async function _0x1f182c(){await _0x3a9389,_0x51431a['model']['change']=_0x20503a,_0x51431a['model']['enqueueChange']=_0x20503a,_0x51431a['enableReadOnlyMode']('model');}function _0x505406(_0x59a1f6){const _0x4c357b=_0x3fcf77();_0x51431a[_0x4c357b]='paginationLicenseKey'+_0x59a1f6,'Valid'!=_0x59a1f6&&_0x1f182c();}function _0x3fcf77(){const _0x5c2378=window['String'](window['performance']['now']())['replace']('.','');let _0x29393c='v';for(let _0x170f56=0x0;_0x170f56<_0x5c2378['length'];_0x170f56+=0x2){let _0x8ef53a=window['parseInt'](_0x5c2378['substring'](_0x170f56,_0x170f56+0x2));_0x8ef53a>=0x3e&&(_0x8ef53a-=0x3e),_0x29393c+=_0x503755[_0x8ef53a];}return _0x29393c;}function _0x52dadb(){const _0x337044=_0x59a266['split']('.');if(0x3!=_0x337044['length'])return null;return _0x419959(_0x337044[0x1]);function _0x419959(_0x3b91bb){const _0x59ff8d=_0x1d5207(_0x3b91bb);return _0x59ff8d&&_0x5b3654()?_0x59ff8d:null;function _0x5b3654(){const _0x843515=_0x59ff8d['jti'],_0x3ccb5a=window['parseInt'](_0x843515['substring'](_0x843515['length']-0x8),0x10),_0x496d73={..._0x59ff8d,'jti':_0x843515['substring'](0x0,_0x843515['length']-0x8)};return delete _0x496d73['vc'],_0x3dbd2d(_0x496d73)==_0x3ccb5a;}}}async function _0x520e38(){let _0x223adf=!0x0;try{const [_0x28f65e,_0x14f8a8,_0x434820]=_0x59a266['split']('.');return _0x11466e(_0x28f65e),await _0x578362(_0x28f65e,_0x14f8a8,_0x434820),_0x223adf;}catch{return!0x1;}function _0x11466e(_0xeda7cf){const _0x57bf3f=_0x1d5207(_0xeda7cf);_0x57bf3f&&'ES256'==_0x57bf3f['alg']||(_0x223adf=!0x1);}async function _0x578362(_0x505754,_0x35994b,_0x1a132a){const _0x4164d2=window['Uint8Array']['from'](_0x62dc0a(_0x1a132a),_0xff896e=>_0xff896e['charCodeAt'](0x0)),_0x103823=new window['TextEncoder']()['encode'](_0x505754+'.'+_0x35994b),_0xd1cab2=window['crypto']['subtle'];if(!_0xd1cab2)return;const _0x4b356d=await _0xd1cab2['importKey']('jwk',_0x54c0c4,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xd1cab2['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4b356d,_0x4164d2,_0x103823)||(_0x223adf=!0x1);}}function _0x1d5207(_0x3ec198){return _0x3ec198['startsWith']('ey')?JSON['parse'](_0x62dc0a(_0x3ec198)):null;}function _0x62dc0a(_0x79e321){return window['atob'](_0x79e321['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3dbd2d(_0x9c798b){let _0x5e1998=0x1505;function _0xd100e5(_0x2a9cfe){for(let _0x4fb1f3=0x0;_0x4fb1f3<_0x2a9cfe['length'];_0x4fb1f3++){const _0x215aaa=_0x2a9cfe['charCodeAt'](_0x4fb1f3);_0x5e1998=(_0x5e1998<<0x5)+_0x5e1998+_0x215aaa,_0x5e1998&=_0x5e1998;}}function _0x1b09eb(_0x5b118c){Array['isArray'](_0x5b118c)?_0x5b118c['forEach'](_0x1b09eb):_0x5b118c&&'object'==typeof _0x5b118c?Object['entries'](_0x5b118c)['sort']()['forEach'](([_0x1400ad,_0x1e5b93])=>{_0xd100e5(_0x1400ad),_0x1b09eb(_0x1e5b93);}):_0xd100e5(window['String'](_0x5b118c));}return _0x1b09eb(_0x9c798b),_0x5e1998>>>0x0;}function _0x469798(_0x400254){return _0x400254['toString'](0x10)['padStart'](0x8,'0');}function _0x47e5ad(_0x1093c5){return _0x1093c5['split']('')['reverse']()['join']('');}function _0x20503a(){}_0x505406(await _0x4c5d2a());}_0x38fb5a(_0x105e05['editor']);}(this);}destroy(){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x52f60a=this['editor'],_0x5ec31c=_0x52f60a['editing']['view'],_0x1cb847=this['_getAttachedDomRoot']();if(!_0x1cb847||!_0x1cb847['hasChildNodes']())return void _0x52f60a['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x1a031a,pageHeight:_0x1c15b7}=_0x52f60a['config']['get']('pagination'),{top:_0x351f3d,left:_0x3595dc,bottom:_0x563018,right:_0x5ee057}=this['_configuredPaddings'];this['_pagesContainer']=new _0x2a0961(_0x52f60a['locale']);const _0x1dc2f1=this['_pagesContainer'];_0x1dc2f1['set']('class',''),_0x1dc2f1['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x1a031a,'width':_0x1a031a,'height':'calc(\x20'+_0x1c15b7+'\x20-\x20'+_0x351f3d+'\x20-\x20'+_0x563018+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x5ee057+'\x200\x20'+_0x3595dc,'columnGap':'calc('+_0x3595dc+'\x20+\x20'+_0x5ee057+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x1dc2f1['bindTemplate']['to']('class')}}),_0x1dc2f1['render'](),_0x1cc0a9(_0x1cb847)['insertBefore'](_0x1dc2f1['element'],_0x1cb847['nextSibling']),this['listenTo'](_0x5ec31c,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}_getAttachedDomRoot(){for(const _0x283fbb of this['editor']['editing']['view']['domRoots']['values']())if(_0x283fbb['isConnected'])return _0x283fbb;return null;}_recalculatePageBreaks(){if(!this['isEnabled'])return Promise['resolve']();const _0x4fcdc9=this['editor']['editing']['view'],_0x4845bc=this['_pagesContainer'],_0x3e26dd=this['_getAttachedDomRoot']();if(!_0x3e26dd||!_0x4845bc)return Promise['resolve']();for(_0x4845bc['class']=['ck-reset','ck-pagination-view',..._0x3e26dd['classList']]['join']('\x20');_0x4845bc['element']['firstChild'];)_0x4845bc['element']['firstChild']['remove']();const _0x3f71e8=Array['from'](_0x4fcdc9['domRoots']);_0x3f71e8['sort'](([,_0x5d92f6],[,_0x1ba459])=>_0x5d92f6['compareDocumentPosition'](_0x1ba459)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x1cbf97,_0x525413]of _0x3f71e8){const _0x675000=_0x525413['cloneNode'](!0x0);'attributeStyleMap'in _0x675000&&_0x675000['attributeStyleMap']['clear'](),_0x675000['dataset']['rootName']=_0x1cbf97,_0x675000['className']='ck-content\x20ck-pagination_enabled',_0x675000['removeAttribute']('id'),_0x675000['tabIndex']=-0x1,_0x4845bc['element']['append'](_0x675000);}const _0x221ba1=Array['from'](_0x4845bc['element']['querySelectorAll']('img'));return function(_0x14528a){return Promise['all'](_0x14528a['map'](_0x4ce31d=>Promise['race']([N(_0x4ce31d),_(0x3e8)])));}(_0x221ba1)['then'](()=>{for(const _0xc63b of _0x221ba1['filter'](_0x15d3bf=>!_0x15d3bf['closest']('table')))if(_0xc63b['offsetParent']){const _0x12eefd=_0x106524['window']['getComputedStyle'](_0xc63b),_0x2da6fc=_0x106524['document']['createElement']('span');for(const _0x4bcba4 of _0x12eefd)_0x2da6fc['style']['setProperty'](_0x4bcba4,_0x12eefd[_0x4bcba4]);_0x2da6fc['style']['backgroundImage']='url(\x20'+_0xc63b['src']+'\x20)',_0x2da6fc['style']['breakInside']='avoid','PICTURE'==_0xc63b['parentElement']?.['tagName']?_0xc63b['parentElement']['replaceWith'](_0x2da6fc):_0xc63b['replaceWith'](_0x2da6fc);}return new Promise(_0xb04e09=>_0x106524['window']['requestAnimationFrame'](()=>_0xb04e09()));})['then'](()=>{this['_updatePageBreaksData']();});}_updatePageBreaksData(){const _0x13feb0=this['_pagesContainer']['element'];if(!_0x13feb0['isConnected'])return;const _0x3c7d2e=new _0x6ccea8(_0x13feb0)['excludeScrollbarsAndBorders'](),_0x57d14a=Math['floor'](_0x3c7d2e['width']+0x64),_0x3d0086=I(_0x13feb0,Math['floor'](_0x3c7d2e['left']-_0x13feb0['scrollLeft']),_0x57d14a,_0x3c7d2e['height'])['map'](_0x4d5b18=>this['_mapPageStarterInfoToPageBreakInfo'](_0x4d5b18))['filter'](_0x529113=>!0x1!==_0x529113);_0x3d0086['every'](_0x20d805=>!!_0x20d805)&&(this['pageBreaks']=_0x3d0086);}_mapPageStarterInfoToPageBreakInfo(_0x441b50){const _0x25e7fd=this['editor']['editing']['view'],_0x489007=this['editor']['editing']['mapper'],_0x5938e2=_0x25e7fd['domConverter'],_0x22b524=_0x441b50['path']['shift'](),_0x57128d=this['_pagesContainer']['element']['childNodes'][_0x22b524]['dataset']['rootName'],_0x331378=_0x25e7fd['getDomRoot'](_0x57128d);if(!_0x331378)return null;const _0x5439ec=function(_0x4684cd,_0x3b7891){let _0x2c8db4=_0x4684cd;for(const _0x28f422 of _0x3b7891['path']){if(!_0x2c8db4)return null;_0x2c8db4=_0x2c8db4['childNodes'][_0x28f422];}return _0x2c8db4;}(_0x331378,_0x441b50);if(!_0x5439ec)return null;const _0x1fb9ba=_0x5938e2['domPositionToView'](_0x5439ec,_0x441b50['textOffset']||0x0);return _0x1fb9ba?'manual'==_0x441b50['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x1fb9ba,_0x5439ec):'text'==_0x441b50['type']&&_0x489007['toModelPosition'](_0x1fb9ba)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x1fb9ba,_0x5439ec,_0x441b50['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x1fb9ba,_0x5439ec,_0x441b50['offset']):null;}_mapManualPageStarterInfoToPageBreakInfo(_0x1b6250,_0x2a208b){const _0x29faa2=this['editor']['model'],_0x1a7346=this['editor']['editing']['mapper']['toModelElement'](_0x1b6250['parent']),_0x4241aa=_0x29faa2['createRangeOn'](_0x1a7346);return new k({'type':'manual','modelRange':_0x4241aa,'domNode':_0x2a208b,'offset':0x0});}_mapTextPageStarterInfoToPageBreakInfo(_0x4b1db9,_0x59f682,_0x10cc84){const _0x50d7e6=this['editor']['model'],_0x2e307d=this['editor']['editing']['mapper'],_0x55ef4e=this['editor']['editing']['view']['domConverter'];if(_0x10cc84>=_0x59f682['length'])return null;const _0x2f37c6=_0x2e307d['toModelPosition'](_0x4b1db9),_0x4962d5=_0x50d7e6['createRange'](_0x2f37c6),_0x1aad2d=_0x2e307d['findMappedViewAncestor'](_0x4b1db9),_0xdddac5=_0x55ef4e['mapViewToDom'](_0x1aad2d);return new k({'type':'text','modelRange':_0x4962d5,'domNode':_0x59f682,'offset':L(_0x59f682,_0x10cc84,_0xdddac5)});}_mapElementPageStarterInfoToPageBreakInfo(_0x34511b,_0x1d55dd,_0x2a5b42){const _0x2ded65=this['editor']['model'],_0x34f64c=this['editor']['editing'],_0x316ce3=_0x34f64c['mapper'],_0x278bda=_0x34f64c['view']['domConverter'],_0x4d7b54=_0x316ce3['findMappedViewAncestor'](_0x34511b),_0x1138ff=_0x316ce3['toModelElement'](_0x4d7b54);if(!_0x1138ff||_0x1138ff['is']('rootElement'))return!0x1;const _0x3ad2db=function(_0x47637d){const _0x5333d8=_0x47637d['parent'],_0x9c50aa=_0x5333d8['root']['document']['model'],_0x4cad0c=_0x5333d8['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1360f7=null;for(const _0x2539a1 of _0x4cad0c){if(_0x2539a1['is']('rootElement'))return _0x1360f7;if(!_0x9c50aa['createPositionBefore'](_0x2539a1)['isTouching'](_0x47637d))return _0x1360f7;_0x1360f7=_0x2539a1;}}(_0x2ded65['createPositionBefore'](_0x1138ff))||_0x1138ff;let _0x883200=_0x316ce3['toViewElement'](_0x3ad2db),_0x99b3e6=_0x2ded65['createRangeOn'](_0x3ad2db);const _0xe2b5e1=_0x2ded65['createPositionBefore'](_0x3ad2db)['nodeBefore'];if(_0xe2b5e1&&_0xe2b5e1['is']('element','imageBlock')){const _0x40b6ef=_0x316ce3['toViewElement'](_0xe2b5e1),_0x448eff=_0x278bda['mapViewToDom'](_0x40b6ef),_0x583cf4=_0x106524['window']['getComputedStyle'](_0x448eff)['float'];'left'!=_0x583cf4&&'right'!=_0x583cf4||(_0x99b3e6=_0x2ded65['createRangeOn'](_0xe2b5e1));}for(;_0x883200['parent']!==_0x883200['root']&&0x0===_0x883200['index'];)_0x883200=_0x883200['parent'];const _0x4df9c8=new _0x6ccea8(C(_0x1d55dd)?_0x1d55dd:E(_0x1d55dd)),_0x8bdd3c=_0x2a5b42?_0x4df9c8['height']-_0x2a5b42:0x0,_0x3bdf27=_0x278bda['mapViewToDom'](_0x883200),_0x1c8118=new _0x6ccea8(_0x3bdf27);return new k({'type':'element','modelRange':_0x99b3e6,'domNode':_0x3bdf27,'offset':Math['round'](_0x8bdd3c)||_0x4d7b54!=x(_0x34511b)?_0x8bdd3c+_0x4df9c8['top']-_0x1c8118['top']:0x0});}get['_configuredPaddings'](){const _0x13e4dd=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x13e4dd);}static _findPageStarterInfos(_0x105f1f,_0x2f549d,_0x488178,_0x390605,_0x5ef0b3){return I(_0x105f1f,_0x2f549d,_0x488178,_0x390605,_0x5ef0b3);}},k=class{type;['modelRange'];['_domNode'];_offset;constructor({type:_0x5d0932,modelRange:_0x3c7800,domNode:_0x536e6c,offset:_0x43c0f0}){this['type']=_0x5d0932,this['modelRange']=_0x3c7800,this['_domNode']=_0x536e6c,this['_offset']=_0x43c0f0;}get offset(){if(!this['_domNode']['isConnected'])return 0x0;const _0x42af61=new _0x6ccea8(C(this['_domNode'])?this['_domNode']:E(this['_domNode']));return'manual'==this['type']?_0x42af61['top']+_0x42af61['height']/0x2:_0x42af61['top']+this['_offset'];}};function L(_0x50f480,_0x5a55e9,_0x1c8127){const _0x218491=E(_0x50f480),_0x30a538=function(_0x50e51d){const _0x417699=_0x106524['document']['createRange']();return _0x417699['selectNodeContents'](_0x50e51d),_0x417699;}(_0x1c8127);let _0x63f089;if(0x0==_0x5a55e9){const _0x14411d=_0x1cc0a9(_0x50f480);_0x63f089=R(_0x30a538['startContainer'],_0x30a538['startOffset'],_0x14411d,Array['from'](_0x14411d['childNodes'])['indexOf'](_0x50f480));}else _0x63f089=R(_0x30a538['startContainer'],_0x30a538['startOffset'],_0x50f480,_0x5a55e9);const _0x2edf53=R(_0x50f480,_0x5a55e9,_0x30a538['endContainer'],_0x30a538['endOffset']),_0x4ba5e1=new _0x6ccea8(_0x63f089)['bottom'];return(new _0x6ccea8(_0x2edf53)['top']+_0x4ba5e1)/0x2-new _0x6ccea8(_0x218491)['top'];}function x(_0x3394f0){let _0x400949=_0x3394f0['parent'];for(;_0x400949['is']('$text')||_0x400949['is']('attributeElement');)_0x400949=_0x400949['parent'];return _0x400949;}function N(_0x27e704){return _0x27e704['hasAttribute']('width')&&_0x27e704['hasAttribute']('height')?Promise['resolve']():new Promise(_0x54400e=>{function _0x3e09ab(){_0x27e704['removeEventListener']('load',_0x3e09ab),_0x27e704['removeEventListener']('error',_0x3e09ab),_0x54400e();}_0x27e704['complete']?_0x54400e():(_0x27e704['addEventListener']('load',_0x3e09ab),_0x27e704['addEventListener']('error',_0x3e09ab));});}function _(_0x2bfa81){return new Promise(_0x4135d6=>setTimeout(_0x4135d6,_0x2bfa81));}function E(_0x2e2a81){const _0x2810fe=_0x106524['document']['createRange']();return _0x2810fe['selectNode'](_0x2e2a81),_0x2810fe;}function S(_0xf847d9,_0x189ded,_0x4a5aef){const _0x5b9442=_0x106524['document']['createRange']();return _0x5b9442['setStart'](_0xf847d9,_0x189ded),_0x5b9442['setEnd'](_0xf847d9,_0x4a5aef),_0x5b9442;}function R(_0xd7ad45,_0x9c1ad5,_0x3a15b1,_0x4d5026){const _0x4f1d6a=_0x106524['document']['createRange']();return _0x4f1d6a['setStart'](_0xd7ad45,_0x9c1ad5),_0x4f1d6a['setEnd'](_0x3a15b1,_0x4d5026),_0x4f1d6a;}function I(_0x224b63,_0x63a7b7,_0x27b9ee,_0x41d808,_0x505c26){const _0x450660=[];for(const [_0x15b881,_0x4adfcc]of _0x224b63['childNodes']['entries']()){let _0xdb0e42=[];C(_0x4adfcc)&&_0x4adfcc['offsetParent']&&['static','relative']['includes'](_0x106524['window']['getComputedStyle'](_0x4adfcc)['position'])?_0xdb0e42=K(_0x4adfcc,_0x15b881,_0x63a7b7,_0x27b9ee,_0x41d808,_0x505c26):D(_0x4adfcc)&&(_0xdb0e42=A(_0x4adfcc,_0x15b881,_0x63a7b7,_0x27b9ee,_0x505c26)),_0xdb0e42['length']&&(_0x450660['push'](..._0xdb0e42),_0x63a7b7+=_0xdb0e42['length']*_0x27b9ee,_0x505c26=!0x1);}return _0x450660;}function K(_0x3cd5b7,_0x4a1a5f,_0x581b19,_0x54d9d7,_0x5a2eb8,_0x533fd7){const _0xf5f3a0=[];var _0xfafb02;if((_0xfafb02=_0x3cd5b7['previousSibling'])&&C(_0xfafb02)&&Boolean(_0xfafb02['classList']['contains']('page-break')||_0xfafb02['closest']('.page-break'))&&(_0xf5f3a0['push']({'type':'manual','offset':0x0,'path':[_0x4a1a5f-0x1]}),_0x533fd7=!0x0),'table-row'==_0x106524['window']['getComputedStyle'](_0x3cd5b7)['display']){let _0x81cf7a=0x0,_0x5abfc0=!0x1;for(const _0x35ad19 of _0x3cd5b7['getClientRects']())_0x81cf7a+=_0x35ad19['height'],_0x35ad19['left']>=_0x581b19&&(_0x5abfc0=!0x0);if(_0x81cf7a<_0x5a2eb8&&_0x5abfc0)return _0x533fd7||_0xf5f3a0['push']({'type':'element','offset':0x0,'path':[_0x4a1a5f]}),_0xf5f3a0;}const _0x5c2a07=_0x3cd5b7['closest']('figure.image');if(_0x5c2a07&&function(_0x145e6f){let _0x5823bc=!0x1;const _0x1122a6=_0x27e301(_0x145e6f)['dataset']['rootName'],_0x356c45=_0x145e6f['nextElementSibling'],_0x30f5f0=_0x145e6f['previousElementSibling'],_0x3d1672=_0x356c45&&_0x106524['window']['getComputedStyle'](_0x356c45)['float'],_0x44a2cd=_0x356c45&&'ck-fake-selection-container'===_0x356c45['className'];return!_0x1122a6||_0x356c45||_0x30f5f0||(_0x5823bc=!0x0),_0x1122a6&&!_0x30f5f0&&_0x44a2cd&&(_0x5823bc=!0x0),_0x1122a6&&!_0x30f5f0&&'none'!==_0x3d1672&&(_0x5823bc=!0x0),!_0x5823bc;}(_0x5c2a07)){const _0x195e68=_0x106524['window']['getComputedStyle'](_0x5c2a07)['float'];if('left'==_0x195e68||'right'==_0x195e68)return _0xf5f3a0;}const _0x5a2f62=I(_0x3cd5b7,_0x581b19,_0x54d9d7,_0x5a2eb8,_0x533fd7);if(_0x5a2f62['length']){for(const _0x4e5dcf of _0x5a2f62)_0xf5f3a0['push']({'type':_0x4e5dcf['type'],'offset':_0x4e5dcf['offset'],'textOffset':_0x4e5dcf['textOffset'],'path':[_0x4a1a5f,..._0x4e5dcf['path']]}),_0x581b19+=_0x54d9d7;return _0xf5f3a0;}return _0xf5f3a0['push'](...function(_0x56cf78,_0x140f34,_0x25d3f6,_0x113192,_0xa3e974){const _0x26941b=[];if('table-cell'==_0x106524['window']['getComputedStyle'](_0x56cf78)['display'])return[];const _0x187c15=[];for(const _0x1ae4e1 of _0x56cf78['getClientRects']())if(_0x1ae4e1['left']>=_0x25d3f6){for(const _0x522999 of _0x187c15)_0x522999['height']+=_0x1ae4e1['height'];_0x187c15['push']({'height':_0x1ae4e1['height']}),_0x25d3f6+=_0x113192;}for(const _0x149374 of _0x187c15)_0xa3e974||_0x26941b['push']({'type':'element','offset':_0x149374['height'],'textOffset':0x0,'path':[_0x140f34]}),_0xa3e974=!0x1;return _0x26941b;}(_0x3cd5b7,_0x4a1a5f,_0x581b19,_0x54d9d7,_0x533fd7)),_0xf5f3a0;}function A(_0x40e107,_0x1361c4,_0x3497a0,_0x37b995,_0xd432ca){const _0x371177=E(_0x40e107),_0x59610a=[];let _0x544769=0x0;for(const _0x2818d0 of _0x371177['getClientRects']())if(_0x2818d0['left']>=_0x3497a0){const _0x12c6f6=O(_0x40e107,_0x544769,_0x3497a0,_0x37b995);_0xd432ca||_0x59610a['push']({'type':'text','path':[_0x1361c4],'textOffset':_0x12c6f6}),_0x544769=_0x12c6f6,_0x3497a0+=_0x37b995,_0xd432ca=!0x1;}return _0x59610a;}function O(_0x45b93b,_0x11edf7,_0x3fea9f,_0x552e92){let _0x3ce59f=_0x11edf7,_0x549625=_0x45b93b['length'];for(;_0x549625-_0x3ce59f>0x1;){const _0x3021f1=Math['ceil']((_0x3ce59f+_0x549625)/0x2);U(S(_0x45b93b,_0x3ce59f,_0x3021f1),_0x3fea9f,_0x552e92)?_0x549625=_0x3021f1:_0x3ce59f=_0x3021f1;}return _0x3ce59f;}function U(_0x495371,_0x3e0a52,_0x20333f){for(const _0x55f147 of _0x495371['getClientRects']())if(_0x55f147['left']>=_0x3e0a52&&_0x55f147['left']<_0x3e0a52+_0x20333f)return!0x0;return!0x1;}function C(_0x80a3cc){return _0x80a3cc['nodeType']==Node['ELEMENT_NODE'];}function D(_0x50cbc0){return _0x50cbc0['nodeType']==Node['TEXT_NODE'];}const T=/* #__PURE__ -- @preserve */
24
+ _0x5c801f('px');var B=class extends _0x2a0961{constructor(){super();const _0x4308ef=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x4308ef['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x4308ef['if']('isVisible','ck-hidden',_0xface27=>!_0xface27)],'style':{'left':_0x4308ef['to']('left',_0xfe84a=>T(_0xfe84a)),'top':_0x4308ef['to']('top',_0x15b262=>T(_0x15b262)),'width':_0x4308ef['to']('width',_0x4e1c8a=>T(_0x4e1c8a))}}});}},G=class{_viewCollection;['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x14e726){this['_viewCollection']=_0x14e726['ui']['view']['body'];}get containerElement(){return this['_viewCollection']['bodyCollectionContainer'];}destroy(){for(const _0x3d8b93 of this['_hiddenLines'])_0x3d8b93['destroy']();}['cleanLines'](){for(const _0x47c128 of this['_visibleLines'])_0x47c128['isVisible']=!0x1,this['_hiddenLines']['add'](_0x47c128);this['_visibleLines']['clear']();}['showLine'](_0x26e224,_0x127e32,_0x2d0339,_0x167da3){let _0x2079aa;this['_hiddenLines']['size']?(_0x2079aa=_0x52794a(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x2079aa)):_0x2079aa=new B(),_0x2079aa['set']({'pageNumber':_0x167da3,'left':_0x26e224,'top':_0x127e32,'width':_0x2d0339}),_0x2079aa['isVisible']=!0x0,this['_viewCollection']['has'](_0x2079aa)||this['_viewCollection']['add'](_0x2079aa),this['_visibleLines']['add'](_0x2079aa);}setViewCollection(_0x746326){for(const _0x1a7b98 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x1a7b98)&&this['_viewCollection']['remove'](_0x1a7b98);this['_viewCollection']=_0x746326;}};const V='ck-pagination_enabled';var M=class extends _0x5b01aa{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 G(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'](V),this['on']('change:isEnabled',(_0x33affe,_0x57f1e7,_0x1008b5)=>{_0x1008b5||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](V,_0x1008b5);});}destroy(){this['_toggleEditingRootsClass'](V,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x131f53){if(!this['isEnabled'])return;const _0xaa69eb=_0x131f53>0x1?this['_getPageBreakLineOffset'](_0x131f53-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0xaa69eb-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x180781['isMotionReduced']?'instant':'smooth'});}setupScrollableAncestor(){const _0x554da0=this['editor'],_0x1ae18a=this['_getAttachedDomRoot']();_0x1ae18a?(this['_scrollableEditingRootDomAncestor']&&_0x554da0['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=_0x590a5f(_0x1ae18a),_0x554da0['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3d946c(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x554da0['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2235da=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2235da['ui']['view']['listenTo'](_0x106524['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2235da['ui']['once']('update',()=>this['_onUiReady']());}_getAttachedDomRoot(){for(const _0x273680 of this['editor']['editing']['view']['domRoots']['values']())if(_0x273680['isConnected'])return _0x273680;return null;}_updatePageBreakLines(){if(!this['isEnabled'])return;const _0x4ec83b=this['_getAttachedDomRoot'](),_0x5568cc=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x4ec83b||0x1==_0x5568cc['length'])return void(this['pageNumber']=0x1);const _0x1ca7c2=new _0x6ccea8(_0x4ec83b)['excludeScrollbarsAndBorders'](),_0xdc048f=new _0x6ccea8(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x2b9c40=_0xdc048f['top']+_0xdc048f['height']/0x3;let _0x133fca=!0x1;const _0x22c503=[];for(let _0x34ad0a=0x1;_0x34ad0a<_0x5568cc['length'];_0x34ad0a++){const _0x474afa=this['_getPageBreakLineOffset'](_0x34ad0a,_0xdc048f);if(!_0x474afa)continue;const _0x51d5d4=_0xdc048f['top']+_0x474afa-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x22c503['push']({'pageOffsetTop':_0x51d5d4,'domRootRect':_0x1ca7c2,'domScrollableRect':_0xdc048f,'pageNumber':_0x34ad0a}),_0x51d5d4>_0x2b9c40&&!_0x133fca&&(this['pageNumber']=_0x34ad0a,_0x133fca=!0x0);}this['_renderPageBreakLines'](_0x22c503),_0x133fca||(this['pageNumber']=_0x5568cc['length']);}['_renderPageBreakLines'](_0xbfa586){if(!_0xbfa586['length'])return;const {scrollX:_0x32dceb,scrollY:_0x407e2e}=_0x106524['window'],_0x232cff=_0x1ec9a0(this['linesRepository']['containerElement']);let _0x4690db,_0xc60b1c;if(_0x232cff){const _0x4322d6=new _0x6ccea8(_0x232cff);_0x4690db=_0x4322d6['top']+_0x232cff['clientTop']-_0x232cff['scrollTop'],_0xc60b1c=_0x4322d6['left']+_0x232cff['clientLeft']-_0x232cff['scrollLeft'];}else _0x4690db=-_0x407e2e,_0xc60b1c=-_0x32dceb;for(const {domScrollableRect:_0x35d5dd,pageOffsetTop:_0x5edc02,domRootRect:_0x47345b,pageNumber:_0x1dca7d}of _0xbfa586)_0x35d5dd['top']<_0x5edc02&&_0x5edc02<_0x35d5dd['bottom']&&this['linesRepository']['showLine'](_0x47345b['left']-_0xc60b1c,_0x5edc02-_0x4690db,_0x47345b['width'],_0x1dca7d+0x1);}_getPageBreakLineOffset(_0x1a16f8,_0x5b9b73=null){const _0xba651f=this['_paginationLookupPlugin']['pageBreaks'][_0x1a16f8]['offset'];return _0xba651f?(_0x5b9b73||(_0x5b9b73=new _0x6ccea8(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xba651f-_0x5b9b73['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}_toggleEditingRootsClass(_0x547357,_0x311a19=!0x0){const _0x2ce1d0=this['editor']['editing']['view'];_0x2ce1d0['change'](_0x25b046=>{for(const _0x2081cd of _0x2ce1d0['document']['roots'])_0x311a19?_0x25b046['addClass'](_0x547357,_0x2081cd):_0x25b046['removeClass'](_0x547357,_0x2081cd);});}};function $(_0x12f670,_0x31434c,..._0x48a6c8){const t=_0x12f670['t'];switch(_0x31434c){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)',..._0x48a6c8);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 _0x31434c;}}var j=class extends _0x5b01aa{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[v,M];}init(){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x4a246=this['editor']['plugins']['get']('Pagination'),_0x333b93=this['editor']['plugins']['get'](v),_0x5177e7=this['editor']['plugins']['get'](M);this['bind']('isEnabled')['to'](_0x4a246),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x5177e7),this['listenTo'](_0x333b93,'change:pageBreaks',(_0x461f32,_0x5e1fcf,_0x572262,_0x5344da)=>{this['totalPages']=_0x572262['length'],this['_updatePageBreakMarkers'](_0x572262,_0x5344da);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x348efc=[this['editor']];for(const _0x282cb3 of _0x348efc){let _0x1d5c5d;for(const _0x1e7b9b in _0x282cb3){const _0x2a7e56=_0x1e7b9b,_0x33b969=_0x282cb3[_0x2a7e56];if('paginationLicenseKeyValid'==_0x33b969||'paginationLicenseKeyInvalid'==_0x33b969||'paginationLicenseKeyExpired'==_0x33b969||'paginationLicenseKeyDomainLimit'==_0x33b969||'paginationLicenseKeyNotAllowed'==_0x33b969||'paginationLicenseKeyEvaluationLimit'==_0x33b969||'paginationLicenseKeyUsageLimit'==_0x33b969){delete _0x282cb3[_0x2a7e56],_0x1d5c5d=_0x33b969,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1d5c5d&&_0x282cb3['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1d5c5d&&_0x282cb3['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1d5c5d&&_0x282cb3['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1d5c5d&&_0x282cb3['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1d5c5d&&_0x282cb3['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1d5c5d&&_0x282cb3['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x38ebfb){this['isEnabled']&&this['editor']['plugins']['get'](M)['scrollToPage'](this['_validatePageNumber'](_0x38ebfb));}moveSelectionToPage(_0x353fbc){if(!this['isEnabled'])return;const _0x14f071=this['editor'],_0x3ed24a=this['editor']['plugins']['get'](v)['pageBreaks'][_0x353fbc-0x1];_0x3ed24a&&_0x14f071['model']['change'](_0x3dbe39=>{switch(_0x3ed24a['type']){case'manual':{const _0x16ce35=_0x14f071['model']['schema']['getNearestSelectionRange'](_0x3ed24a['modelRange']['end'],'forward');_0x3dbe39['setSelection'](_0x16ce35);break;}case'element':{const _0xcce6=_0x14f071['model']['schema']['getNearestSelectionRange'](_0x3ed24a['modelRange']['start'],'forward');_0x3dbe39['setSelection'](_0xcce6);break;}case'text':{const _0x5a8647=_0x3ed24a['modelRange']['start'];if(_0x5a8647['textNode']&&'\x20'===_0x5a8647['textNode']['data'][_0x5a8647['offset']]){const _0xa88e85=_0x3dbe39['createPositionAt'](_0x5a8647['parent'],_0x5a8647['offset']+0x1);_0x3dbe39['setSelection'](_0xa88e85);}else _0x3dbe39['setSelection'](_0x3ed24a['modelRange']);}}_0x14f071['editing']['view']['focus']();});}goToNextPage(){const _0x2ac9fb=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x2ac9fb),this['scrollToPage'](_0x2ac9fb);}['goToPreviousPage'](){const _0x11cb8f=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x11cb8f),this['scrollToPage'](_0x11cb8f);}_updatePageBreakMarkers(_0x54cf93,_0x5a7cea){const _0x42844d=this['editor']['model'];this['isEnabled']&&_0x42844d['change'](_0x38ae95=>{for(let _0x51dfad=0x1;_0x51dfad<_0x54cf93['length'];_0x51dfad++){const _0x29aaa4=_0x54cf93[_0x51dfad]['modelRange'],_0x54e198='pagination:'+(_0x51dfad+0x1);_0x42844d['markers']['has'](_0x54e198)?_0x38ae95['updateMarker'](_0x54e198,{'range':_0x29aaa4}):_0x38ae95['addMarker'](_0x54e198,{'range':_0x29aaa4,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x13dbbb=_0x54cf93['length'];_0x13dbbb<_0x5a7cea['length'];_0x13dbbb++){const _0x4a856b='pagination:'+(_0x13dbbb+0x1);_0x42844d['markers']['has'](_0x4a856b)&&_0x38ae95['removeMarker'](_0x4a856b);}});}_setUpDataDowncastConversion(){this['editor']['conversion']['for']('dataDowncast')['add'](_0x4768ec=>{_0x4768ec['on']('addMarker:pagination',(_0x204d5b,{markerRange:_0x569049,markerName:_0x2e5f81},_0x5cea5e)=>{if(!_0x5cea5e['options']['pagination'])return;if(!_0x5cea5e['consumable']['consume'](_0x569049,_0x204d5b['name']))return;const _0x217175=_0x569049['getContainedElement']();let _0x94f163=_0x217175?_0x5cea5e['mapper']['toViewElement'](_0x217175):null;if(!_0x94f163){const _0x363d3e=_0x569049['start'];if(_0x5cea5e['schema']['checkChild'](_0x363d3e,'$text')){const _0x18d92c=_0x5cea5e['mapper']['toViewPosition'](_0x363d3e);_0x94f163=_0x5cea5e['writer']['createContainerElement']('span'),_0x94f163['getFillerOffset']=()=>null,_0x5cea5e['writer']['insert'](_0x18d92c,_0x94f163);}else{const _0x8002fd=_0x363d3e['nodeAfter'];_0x94f163=_0x5cea5e['mapper']['toViewElement'](_0x8002fd);}}for(;_0x94f163['parent']!==_0x94f163['root']&&0x0===_0x94f163['index'];)_0x94f163=_0x94f163['parent'];const _0x29afe9=_0x2e5f81['substring'](0xb);_0x94f163['hasClass']('page-break')||(_0x5cea5e['writer']['setStyle']('page-break-before','always',_0x94f163),_0x5cea5e['writer']['setAttribute']('data-pagination-page',_0x29afe9,_0x94f163),_0x5cea5e['mapper']['bindElementToMarker'](_0x94f163,_0x2e5f81)),_0x204d5b['stop']();});});}_setupKeystrokes(){const _0x5cb544=this['editor'];_0x5cb544['keystrokes']['set']('Shift+Pageup',(_0x3eb1c6,_0x4433d2)=>{this['goToPreviousPage'](),_0x4433d2();}),_0x5cb544['keystrokes']['set']('Shift+Pagedown',(_0x37ea97,_0x13ff50)=>{this['goToNextPage'](),_0x13ff50();}),_0x5cb544['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':$(_0x5cb544['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':$(_0x5cb544['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':$(_0x5cb544['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}_validatePageNumber(_0x1605d7){return _0x1605d7<0x1&&(_0x1605d7=0x1),_0x1605d7>this['totalPages']&&(_0x1605d7=this['totalPages']),_0x1605d7;}},q=class extends _0x2a0961{['pageNumberView'];constructor(_0x5e7cde){super(_0x5e7cde);const _0x3482d3=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x3f0adb(_0x5e7cde,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x34d150=>$(_0x5e7cde,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x34d150)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x3b7888=>!_0x3b7888),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x3482d3['if']('isEnabled','ck-disabled',_0x4e6257=>!_0x4e6257)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x3482d3['to']('totalPages')}]}]});}['render'](){super['render']();const _0x5622bf=this['pageNumberView']['element'],_0x11d63b=_0x670a55=>{this['pageNumberView']['element']['value']=String(_0x670a55);};_0x11d63b(this['pageNumber']),this['on']('change:pageNumber',(_0x5ef4f3,_0x170b58,_0x49663b)=>{_0x11d63b(_0x49663b);}),this['listenTo'](_0x5622bf,'keydown',(_0x1371d7,_0x1654b5)=>{if('ArrowUp'===_0x1654b5['key']||'ArrowDown'===_0x1654b5['key'])return void _0x1654b5['stopPropagation']();if(_0x1654b5['keyCode']!==_0x1c052c['enter'])return;_0x1654b5['preventDefault']();const _0x365c90=_0x5622bf['valueAsNumber'];Number['isNaN'](_0x365c90)?_0x5622bf['value']=String(this['pageNumber']):(_0x5622bf['checkValidity']()?this['pageNumber']=_0x365c90:_0x365c90>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x5622bf['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x5622bf['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x5622bf,'blur',()=>{_0x5622bf['value']=String(this['pageNumber']);}),this['listenTo'](_0x5622bf,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}},F=class extends _0x5b01aa{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x256f84=this['editor'],_0x590e92=_0x256f84['plugins']['get']('PaginationEditing');_0x256f84['ui']['componentFactory']['add']('pageNavigation',_0xd53199=>{const _0x26cc12=new q(_0xd53199);return _0x26cc12['bind']('pageNumber')['to'](_0x590e92),_0x26cc12['bind']('totalPages')['to'](_0x590e92),_0x26cc12['bind']('isEnabled')['to'](_0x590e92),_0x26cc12['on']('navigation',(_0x38d9d3,_0x4e54ac)=>{_0x590e92['moveSelectionToPage'](_0x4e54ac),_0x590e92['scrollToPage'](_0x4e54ac);}),_0x26cc12;}),_0x256f84['ui']['componentFactory']['add']('nextPage',_0x5c5034=>{const _0x11e00f=new _0x7f7cd5(_0x5c5034);return _0x11e00f['isEnabled']=!0x0,_0x11e00f['label']=$(_0x256f84['locale'],'Go\x20to\x20next\x20page'),_0x11e00f['icon']=_0x458f26,_0x11e00f['tooltip']=!0x0,_0x11e00f['keystroke']='Shift+PageDown',_0x11e00f['bind']('isEnabled')['to'](_0x590e92),this['listenTo'](_0x11e00f,'execute',()=>{_0x590e92['goToNextPage']();}),_0x11e00f;}),_0x256f84['ui']['componentFactory']['add']('previousPage',_0x29022a=>{const _0x4e2fc6=new _0x7f7cd5(_0x29022a);return _0x4e2fc6['isEnabled']=!0x0,_0x4e2fc6['label']=$(_0x256f84['locale'],'Go\x20to\x20previous\x20page'),_0x4e2fc6['icon']=_0x3af34f,_0x4e2fc6['tooltip']=!0x0,_0x4e2fc6['keystroke']='Shift+PageUp',_0x4e2fc6['bind']('isEnabled')['to'](_0x590e92),this['listenTo'](_0x4e2fc6,'execute',()=>{_0x590e92['goToPreviousPage']();}),_0x4e2fc6;});}},H=class extends _0x5b01aa{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[j,F];}constructor(_0x542452){super(_0x542452),this['isEnabled']=!0x1;}init(){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x505383=this['editor']['plugins']['get'](j);this['bind']('pageNumber')['to'](_0x505383),this['bind']('totalPages')['to'](_0x505383),_0x180781['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x7821ad){this['editor']['plugins']['get'](j)['scrollToPage'](_0x7821ad);}};export{H as Pagination,M as PaginationRenderer};
@@ -1,5 +1 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  export {};
@@ -1,143 +1,135 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module pagination/pagination
7
- * @publicApi
8
- */
9
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
10
- import { PaginationEditing } from './paginationediting.js';
11
- import { PaginationUI } from './paginationui.js';
6
+ * @module pagination/pagination
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
10
+ import { PaginationEditing } from "./paginationediting.js";
11
+ import { PaginationUI } from "./paginationui.js";
12
12
  /**
13
- * The pagination feature.
14
- */
13
+ * The pagination feature.
14
+ */
15
15
  export declare class Pagination extends Plugin {
16
- /**
17
- * The current page number.
18
- *
19
- * @observable
20
- * @default 1
21
- * @readonly
22
- */
23
- readonly pageNumber: number;
24
- /**
25
- * The total page count.
26
- *
27
- * @observable
28
- * @default 1
29
- * @readonly
30
- */
31
- readonly totalPages: number;
32
- /**
33
- * @inheritDoc
34
- */
35
- static get pluginName(): "Pagination";
36
- /**
37
- * @inheritDoc
38
- */
39
- static get isOfficialPlugin(): true;
40
- /**
41
- * @inheritDoc
42
- */
43
- static get isPremiumPlugin(): true;
44
- /**
45
- * @inheritDoc
46
- */
47
- static get requires(): readonly [typeof PaginationEditing, typeof PaginationUI];
48
- /**
49
- * @inheritDoc
50
- */
51
- constructor(editor: Editor);
52
- /**
53
- * @inheritDoc
54
- */
55
- init(): void;
56
- /**
57
- * Scroll the editor content to a desired page.
58
- *
59
- * @param pageNumber The page number (counting from 1).
60
- */
61
- scrollToPage(pageNumber: number): void;
16
+ /**
17
+ * The current page number.
18
+ *
19
+ * @observable
20
+ * @default 1
21
+ * @readonly
22
+ */
23
+ readonly pageNumber: number;
24
+ /**
25
+ * The total page count.
26
+ *
27
+ * @observable
28
+ * @default 1
29
+ * @readonly
30
+ */
31
+ readonly totalPages: number;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ static get pluginName(): "Pagination";
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static override get isOfficialPlugin(): true;
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static override get isPremiumPlugin(): true;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get requires(): PluginDependenciesOf<[PaginationEditing, PaginationUI]>;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ constructor(editor: Editor);
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ init(): void;
56
+ /**
57
+ * Scroll the editor content to a desired page.
58
+ *
59
+ * @param pageNumber The page number (counting from 1).
60
+ */
61
+ scrollToPage(pageNumber: number): void;
62
62
  }
63
63
  /**
64
- * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
65
- *
66
- * ```ts
67
- * ClassicEditor
68
- * .create( {
69
- * pagination: {
70
- * // A4
71
- * pageWidth: '21cm',
72
- * pageHeight: '29.7cm',
73
- *
74
- * pageMargins: {
75
- * top: '20mm',
76
- * bottom: '20mm',
77
- * left: '12mm',
78
- * right: '12mm'
79
- * }
80
- * }
81
- * } )
82
- * .then( ... )
83
- * .catch( ... );
84
- * ```
85
- *
86
- * **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
87
- * {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
88
- *
89
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
90
- */
64
+ * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
65
+ *
66
+ * ```ts
67
+ * ClassicEditor
68
+ * .create( {
69
+ * pagination: {
70
+ * // A4
71
+ * pageWidth: '21cm',
72
+ * pageHeight: '29.7cm',
73
+ *
74
+ * pageMargins: {
75
+ * top: '20mm',
76
+ * bottom: '20mm',
77
+ * left: '12mm',
78
+ * right: '12mm'
79
+ * }
80
+ * }
81
+ * } )
82
+ * .then( ... )
83
+ * .catch( ... );
84
+ * ```
85
+ *
86
+ * **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
87
+ * {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
88
+ *
89
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
90
+ */
91
91
  export interface PaginationConfig {
92
- /**
93
- * The page width.
94
- */
95
- pageWidth: string;
96
- /**
97
- * The page height.
98
- */
99
- pageHeight: string;
100
- /**
101
- * The page margins.
102
- */
103
- pageMargins: PaginationMarginsConfig;
104
- /**
105
- * The pagination feature is by default enabled only in browsers that are using the Blink engine
106
- * (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
107
- * we will be working on them in the future.
108
- *
109
- * This behavior can be modified by setting this configuration value to `true`.
110
- *
111
- * @default false
112
- */
113
- enableOnUnsupportedBrowsers?: boolean;
92
+ /**
93
+ * The page width.
94
+ */
95
+ pageWidth: string;
96
+ /**
97
+ * The page height.
98
+ */
99
+ pageHeight: string;
100
+ /**
101
+ * The page margins.
102
+ */
103
+ pageMargins: PaginationMarginsConfig;
104
+ /**
105
+ * The pagination feature is by default enabled only in browsers that are using the Blink engine
106
+ * (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
107
+ * we will be working on them in the future.
108
+ *
109
+ * This behavior can be modified by setting this configuration value to `true`.
110
+ *
111
+ * @default false
112
+ */
113
+ enableOnUnsupportedBrowsers?: boolean;
114
114
  }
115
115
  /**
116
- * The configuration of the pagination feature page margins.
117
- */
116
+ * The configuration of the pagination feature page margins.
117
+ */
118
118
  export interface PaginationMarginsConfig {
119
- /**
120
- * The top margin.
121
- */
122
- top: string;
123
- /**
124
- * The bottom margin.
125
- */
126
- bottom: string;
127
- /**
128
- * The left margin.
129
- */
130
- left: string;
131
- /**
132
- * The right margin.
133
- */
134
- right: string;
119
+ /**
120
+ * The top margin.
121
+ */
122
+ top: string;
123
+ /**
124
+ * The bottom margin.
125
+ */
126
+ bottom: string;
127
+ /**
128
+ * The left margin.
129
+ */
130
+ left: string;
131
+ /**
132
+ * The right margin.
133
+ */
134
+ right: string;
135
135
  }
136
- /**
137
- * The configuration required by the pagination plugin is missing.
138
- * Follow the instructions provided in {@glink features/pagination/pagination#configuration Pagination feature documentation}
139
- * to initialize the plugin properly.
140
- *
141
- * @error pagination-config-not-found
142
- * @param {module:core/editor/editorconfig~EditorConfig} config Configuration of the editor.
143
- */