@ckeditor/ckeditor5-pagination 48.2.0-alpha.7 → 48.3.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 (160) hide show
  1. package/dist/augmentation.d.ts +17 -17
  2. package/dist/index.d.ts +8 -8
  3. package/dist/index.js +2 -2
  4. package/dist/legacyerrors.d.ts +0 -4
  5. package/dist/pagination.d.ts +124 -132
  6. package/dist/paginationediting.d.ts +73 -73
  7. package/dist/paginationlookup.d.ts +58 -58
  8. package/dist/paginationrenderer.d.ts +52 -52
  9. package/dist/paginationui.d.ts +28 -28
  10. package/dist/translations/af.js +1 -1
  11. package/dist/translations/af.umd.js +1 -1
  12. package/dist/translations/ar.js +1 -1
  13. package/dist/translations/ar.umd.js +1 -1
  14. package/dist/translations/ast.js +1 -1
  15. package/dist/translations/ast.umd.js +1 -1
  16. package/dist/translations/az.js +1 -1
  17. package/dist/translations/az.umd.js +1 -1
  18. package/dist/translations/be.js +1 -1
  19. package/dist/translations/be.umd.js +1 -1
  20. package/dist/translations/bg.js +1 -1
  21. package/dist/translations/bg.umd.js +1 -1
  22. package/dist/translations/bn.js +1 -1
  23. package/dist/translations/bn.umd.js +1 -1
  24. package/dist/translations/bs.js +1 -1
  25. package/dist/translations/bs.umd.js +1 -1
  26. package/dist/translations/ca.js +1 -1
  27. package/dist/translations/ca.umd.js +1 -1
  28. package/dist/translations/cs.js +1 -1
  29. package/dist/translations/cs.umd.js +1 -1
  30. package/dist/translations/da.js +1 -1
  31. package/dist/translations/da.umd.js +1 -1
  32. package/dist/translations/de-ch.js +1 -1
  33. package/dist/translations/de-ch.umd.js +1 -1
  34. package/dist/translations/de.js +1 -1
  35. package/dist/translations/de.umd.js +1 -1
  36. package/dist/translations/el.js +1 -1
  37. package/dist/translations/el.umd.js +1 -1
  38. package/dist/translations/en-au.js +1 -1
  39. package/dist/translations/en-au.umd.js +1 -1
  40. package/dist/translations/en-gb.js +1 -1
  41. package/dist/translations/en-gb.umd.js +1 -1
  42. package/dist/translations/en.js +1 -1
  43. package/dist/translations/en.umd.js +1 -1
  44. package/dist/translations/eo.js +1 -1
  45. package/dist/translations/eo.umd.js +1 -1
  46. package/dist/translations/es-co.js +1 -1
  47. package/dist/translations/es-co.umd.js +1 -1
  48. package/dist/translations/es.js +1 -1
  49. package/dist/translations/es.umd.js +1 -1
  50. package/dist/translations/et.js +1 -1
  51. package/dist/translations/et.umd.js +1 -1
  52. package/dist/translations/eu.js +1 -1
  53. package/dist/translations/eu.umd.js +1 -1
  54. package/dist/translations/fa.js +1 -1
  55. package/dist/translations/fa.umd.js +1 -1
  56. package/dist/translations/fi.js +1 -1
  57. package/dist/translations/fi.umd.js +1 -1
  58. package/dist/translations/fr.js +1 -1
  59. package/dist/translations/fr.umd.js +1 -1
  60. package/dist/translations/gl.js +1 -1
  61. package/dist/translations/gl.umd.js +1 -1
  62. package/dist/translations/gu.js +1 -1
  63. package/dist/translations/gu.umd.js +1 -1
  64. package/dist/translations/he.js +1 -1
  65. package/dist/translations/he.umd.js +1 -1
  66. package/dist/translations/hi.js +1 -1
  67. package/dist/translations/hi.umd.js +1 -1
  68. package/dist/translations/hr.js +1 -1
  69. package/dist/translations/hr.umd.js +1 -1
  70. package/dist/translations/hu.js +1 -1
  71. package/dist/translations/hu.umd.js +1 -1
  72. package/dist/translations/hy.js +1 -1
  73. package/dist/translations/hy.umd.js +1 -1
  74. package/dist/translations/id.js +1 -1
  75. package/dist/translations/id.umd.js +1 -1
  76. package/dist/translations/it.js +1 -1
  77. package/dist/translations/it.umd.js +1 -1
  78. package/dist/translations/ja.js +1 -1
  79. package/dist/translations/ja.umd.js +1 -1
  80. package/dist/translations/jv.js +1 -1
  81. package/dist/translations/jv.umd.js +1 -1
  82. package/dist/translations/kk.js +1 -1
  83. package/dist/translations/kk.umd.js +1 -1
  84. package/dist/translations/km.js +1 -1
  85. package/dist/translations/km.umd.js +1 -1
  86. package/dist/translations/kn.js +1 -1
  87. package/dist/translations/kn.umd.js +1 -1
  88. package/dist/translations/ko.js +1 -1
  89. package/dist/translations/ko.umd.js +1 -1
  90. package/dist/translations/ku.js +1 -1
  91. package/dist/translations/ku.umd.js +1 -1
  92. package/dist/translations/lt.js +1 -1
  93. package/dist/translations/lt.umd.js +1 -1
  94. package/dist/translations/lv.js +1 -1
  95. package/dist/translations/lv.umd.js +1 -1
  96. package/dist/translations/ms.js +1 -1
  97. package/dist/translations/ms.umd.js +1 -1
  98. package/dist/translations/nb.js +1 -1
  99. package/dist/translations/nb.umd.js +1 -1
  100. package/dist/translations/ne.js +1 -1
  101. package/dist/translations/ne.umd.js +1 -1
  102. package/dist/translations/nl.js +1 -1
  103. package/dist/translations/nl.umd.js +1 -1
  104. package/dist/translations/no.js +1 -1
  105. package/dist/translations/no.umd.js +1 -1
  106. package/dist/translations/oc.js +1 -1
  107. package/dist/translations/oc.umd.js +1 -1
  108. package/dist/translations/pl.js +1 -1
  109. package/dist/translations/pl.umd.js +1 -1
  110. package/dist/translations/pt-br.js +1 -1
  111. package/dist/translations/pt-br.umd.js +1 -1
  112. package/dist/translations/pt.js +1 -1
  113. package/dist/translations/pt.umd.js +1 -1
  114. package/dist/translations/ro.js +1 -1
  115. package/dist/translations/ro.umd.js +1 -1
  116. package/dist/translations/ru.js +1 -1
  117. package/dist/translations/ru.umd.js +1 -1
  118. package/dist/translations/si.js +1 -1
  119. package/dist/translations/si.umd.js +1 -1
  120. package/dist/translations/sk.js +1 -1
  121. package/dist/translations/sk.umd.js +1 -1
  122. package/dist/translations/sl.js +1 -1
  123. package/dist/translations/sl.umd.js +1 -1
  124. package/dist/translations/sq.js +1 -1
  125. package/dist/translations/sq.umd.js +1 -1
  126. package/dist/translations/sr-latn.js +1 -1
  127. package/dist/translations/sr-latn.umd.js +1 -1
  128. package/dist/translations/sr.js +1 -1
  129. package/dist/translations/sr.umd.js +1 -1
  130. package/dist/translations/sv.js +1 -1
  131. package/dist/translations/sv.umd.js +1 -1
  132. package/dist/translations/th.js +1 -1
  133. package/dist/translations/th.umd.js +1 -1
  134. package/dist/translations/ti.js +1 -1
  135. package/dist/translations/ti.umd.js +1 -1
  136. package/dist/translations/tk.js +1 -1
  137. package/dist/translations/tk.umd.js +1 -1
  138. package/dist/translations/tr.js +1 -1
  139. package/dist/translations/tr.umd.js +1 -1
  140. package/dist/translations/tt.js +1 -1
  141. package/dist/translations/tt.umd.js +1 -1
  142. package/dist/translations/ug.js +1 -1
  143. package/dist/translations/ug.umd.js +1 -1
  144. package/dist/translations/uk.js +1 -1
  145. package/dist/translations/uk.umd.js +1 -1
  146. package/dist/translations/ur.js +1 -1
  147. package/dist/translations/ur.umd.js +1 -1
  148. package/dist/translations/uz.js +1 -1
  149. package/dist/translations/uz.umd.js +1 -1
  150. package/dist/translations/vi.js +1 -1
  151. package/dist/translations/vi.umd.js +1 -1
  152. package/dist/translations/zh-cn.js +1 -1
  153. package/dist/translations/zh-cn.umd.js +1 -1
  154. package/dist/translations/zh.js +1 -1
  155. package/dist/translations/zh.umd.js +1 -1
  156. package/dist/ui/linesrepository.d.ts +34 -34
  157. package/dist/ui/lineview.d.ts +48 -48
  158. package/dist/ui/pagenavigatorview.d.ts +53 -53
  159. package/dist/utils/common-translations.d.ts +6 -6
  160. package/package.json +6 -6
@@ -1,19 +1,19 @@
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
- import type { PaginationConfig, Pagination } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination`
10
- * package.
11
- *
12
- * Read more in {@link module:pagination/pagination~PaginationConfig}.
13
- */
14
- pagination?: PaginationConfig;
15
- }
16
- interface PluginsMap {
17
- [Pagination.pluginName]: Pagination;
18
- }
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
+ import type { PaginationConfig, Pagination } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination`
10
+ * package.
11
+ *
12
+ * Read more in {@link module:pagination/pagination~PaginationConfig}.
13
+ */
14
+ pagination?: PaginationConfig;
15
+ }
16
+ interface PluginsMap {
17
+ [Pagination.pluginName]: Pagination;
18
+ }
19
19
  }
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
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
7
- */
8
- export { Pagination, type PaginationConfig, type PaginationMarginsConfig } from './pagination.js';
9
- export { PaginationRenderer } from './paginationrenderer.js';
10
- import './augmentation.js';
6
+ * @module pagination
7
+ */
8
+ export { Pagination, type PaginationConfig, type PaginationMarginsConfig } from "./pagination.js";
9
+ export { PaginationRenderer } from "./paginationrenderer.js";
10
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x36769d}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x3a8cc5,InputNumberView as _0x2ff6f2,ButtonView as _0x45cdb0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x474c6d,global as _0x55a5d2,Rect as _0x5a0d5c,uid as _0x4d5adb,toUnit as _0x4b445b,first as _0x471935,env as _0x570fc3,ResizeObserver as _0x96d34f,keyCodes as _0x3db7e7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x104c87}from'es-toolkit/compat';import{IconArrowDown as _0x440c0b,IconArrowUp as _0x35237c}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x36769d{['_recalculatePageBreaksDebounced']=_0x104c87(()=>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 _0x474c6d('pagination-config-not-found',this['editor']['config']);const _0x57289c=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x57289c),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x4411f5,_0x3ac1d1,_0x5c75d0)=>{_0x5c75d0&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x13be4a){const _0x2c0818=_0x1957b5([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]),_0x34c660=0xc82cb1e,_0x45a6d7=0xc8540ce^_0x34c660,_0x4d8c40=window[_0x1957b5([0x44,0x61,0x74,0x65])][_0x1957b5([0x6e,0x6f,0x77])](),_0x42d94b=_0x13be4a[_0x1957b5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe7d527=new window[(_0x1957b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x245fc4=>{_0x42d94b[_0x1957b5([0x6f,0x6e,0x63,0x65])](_0x1957b5([0x72,0x65,0x61,0x64,0x79]),_0x245fc4);}),_0x5b4bd3={[_0x1957b5([0x6b,0x74,0x79])]:_0x1957b5([0x45,0x43]),[_0x1957b5([0x75,0x73,0x65])]:_0x1957b5([0x73,0x69,0x67]),[_0x1957b5([0x63,0x72,0x76])]:_0x1957b5([0x50,0x2d,0x32,0x35,0x36]),[_0x1957b5([0x78])]:_0x1957b5([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]),[_0x1957b5([0x79])]:_0x1957b5([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]),[_0x1957b5([0x61,0x6c,0x67])]:_0x1957b5([0x45,0x53,0x32,0x35,0x36])},_0x4b6b8f=_0x42d94b[_0x1957b5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1957b5([0x67,0x65,0x74])](_0x1957b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1bc9b8(){let _0x104444,_0xb3c0bf=null,_0x24cb9a=null;try{if(_0x4b6b8f==_0x1957b5([0x47,0x50,0x4c]))return _0x1957b5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x104444=_0x2b21d4(),!_0x104444)return _0x1957b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x104444[_0x1957b5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24cb9a=_0xaca7e3(_0x104444[_0x1957b5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x104444[_0x1957b5([0x6a,0x74,0x69])])),await _0x313882()?_0x4c925b()?_0x132297()?_0x1957b5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x549ee6()?(_0x104444[_0x1957b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1957b5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb3c0bf=_0x5e7e77(_0x1957b5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30ba59()):_0x1957b5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1957b5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1957b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1957b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x132297(){const _0x52b0dd=[_0x1957b5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1957b5([0x74,0x72,0x69,0x61,0x6c])][_0x1957b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104444[_0x1957b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d8c40/0x3e8:0xe10*_0x45a6d7;return _0x104444[_0x1957b5([0x65,0x78,0x70])]<_0x52b0dd;}function _0x4c925b(){const _0x265d68=_0x104444[_0x1957b5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x265d68&&(!!_0x265d68[_0x1957b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1957b5([0x2a]))||!!_0x265d68[_0x1957b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1957b5([0x50,0x41,0x47])));}function _0x549ee6(){const _0x2d65f1=_0x104444[_0x1957b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d65f1||0x0==_0x2d65f1[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ee2e9}=new URL(window[_0x1957b5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d65f1[_0x1957b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ee2e9))return!0x0;const _0xff69fc=_0x5ee2e9[_0x1957b5([0x73,0x70,0x6c,0x69,0x74])](_0x1957b5([0x2e]));return _0x2d65f1[_0x1957b5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4420b5=>_0x4420b5[_0x1957b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1957b5([0x2a])))[_0x1957b5([0x6d,0x61,0x70])](_0xa23cc1=>_0xa23cc1[_0x1957b5([0x73,0x70,0x6c,0x69,0x74])](_0x1957b5([0x2e])))[_0x1957b5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xda3b6c=>_0xda3b6c[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xff69fc[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1957b5([0x6d,0x61,0x70])](_0x5e87ef=>Array(_0xff69fc[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e87ef[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1957b5([0x66,0x69,0x6c,0x6c])](_0x5e87ef[0x0]===_0x1957b5([0x2a])?_0x1957b5([0x2a]):'')[_0x1957b5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e87ef))[_0x1957b5([0x73,0x6f,0x6d,0x65])](_0x137025=>_0xff69fc[_0x1957b5([0x65,0x76,0x65,0x72,0x79])]((_0x232387,_0x4cd849)=>_0x137025[_0x4cd849]===_0x232387||_0x137025[_0x4cd849]===_0x1957b5([0x2a])));}function _0x30ba59(){return _0xb3c0bf&&_0x24cb9a?new window[(_0x1957b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45bd7f,_0x4a7971)=>{_0xb3c0bf[_0x1957b5([0x74,0x68,0x65,0x6e])](_0x45bd7f,_0x4a7971),_0x24cb9a[_0x1957b5([0x74,0x68,0x65,0x6e])](_0x11fcbf=>{_0x11fcbf!=_0x1957b5([0x56,0x61,0x6c,0x69,0x64])&&_0x45bd7f(_0x11fcbf);},_0x4a7971);}):_0xb3c0bf||_0x24cb9a||_0x1957b5([0x56,0x61,0x6c,0x69,0x64]);}}function _0xaca7e3(_0x1856b8,_0x1163a5){return new window[(_0x1957b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf606=>{if(_0x262c5a())return _0x4bf606(_0x1957b5([0x56,0x61,0x6c,0x69,0x64]));_0x3419e2(),_0x42d94b[_0x1957b5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1957b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30c112=!0x1;const _0x2ac2ab=_0x4d5adb();function _0x793310(_0x1d17ea){return!!_0x1d17ea&&(typeof _0x1d17ea===_0x1957b5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d17ea===_0x1957b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d17ea[_0x1957b5([0x74,0x68,0x65,0x6e])]===_0x1957b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d17ea[_0x1957b5([0x63,0x61,0x74,0x63,0x68])]===_0x1957b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x134b2b(_0x1a795e){_0x58178b(_0x1a795e)[_0x1957b5([0x74,0x68,0x65,0x6e])](_0x1234ca=>{if(!_0x1234ca||_0x1234ca[_0x1957b5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1957b5([0x6f,0x6b]))return _0x1957b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35b9f5(_0x16cd0f(_0x2ac2ab+_0x1163a5))!=_0x1234ca[_0x1957b5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1957b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1957b5([0x56,0x61,0x6c,0x69,0x64]);})[_0x1957b5([0x74,0x68,0x65,0x6e])](_0x1cf526=>(_0x10b86a(),_0x1cf526),()=>{const _0x2ec810=_0x13657f();return null==_0x2ec810?(_0x10b86a(),_0x1957b5([0x56,0x61,0x6c,0x69,0x64])):_0x1957b5(_0x4d8c40-_0x2ec810>(0x288e4f1e^_0x34c660)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1957b5([0x74,0x68,0x65,0x6e])](_0x4bf606)[_0x1957b5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bf606(_0x1957b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x183247=0xcb4259e^_0x34c660;function _0x10b86a(){const _0x54c5a4=_0x1957b5([0x6c,0x6c,0x63,0x74,0x2d])+_0x35b9f5(_0x16cd0f(_0x1856b8)),_0x36f454=_0x4de2f3(_0x35b9f5(window[_0x1957b5([0x4d,0x61,0x74,0x68])][_0x1957b5([0x63,0x65,0x69,0x6c])](_0x4d8c40/_0x183247)));window[_0x1957b5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1957b5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54c5a4,_0x36f454);}function _0x13657f(){const _0x682cf6=_0x1957b5([0x6c,0x6c,0x63,0x74,0x2d])+_0x35b9f5(_0x16cd0f(_0x1856b8)),_0x1446cd=window[_0x1957b5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1957b5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x682cf6);return _0x1446cd?window[_0x1957b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4de2f3(_0x1446cd),0x10)*_0x183247:null;}function _0x58178b(_0x5ee761){return new window[(_0x1957b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ec037,_0x578bd9)=>{_0x5ee761[_0x1957b5([0x74,0x68,0x65,0x6e])](_0x5ec037,_0x578bd9),window[_0x1957b5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x578bd9,0xc831fde^_0x34c660);});}}_0x42d94b[_0x1957b5([0x6f,0x6e])](_0x1957b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3230d6,_0x4fee05)=>{if(_0x4fee05[0x0]!=_0x1856b8)return _0x4bf606(_0x1957b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fee05[0x1]={..._0x4fee05[0x1],[_0x1957b5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ac2ab};},{[_0x1957b5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1957b5([0x68,0x69,0x67,0x68])}),_0x42d94b[_0x1957b5([0x6f,0x6e])](_0x1957b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31dd2f=>{_0x793310(_0x31dd2f[_0x1957b5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30c112=!0x0,_0x134b2b(_0x31dd2f[_0x1957b5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1957b5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1957b5([0x6c,0x6f,0x77])}),_0xe7d527[_0x1957b5([0x74,0x68,0x65,0x6e])](()=>{_0x30c112||_0x4bf606(_0x1957b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x262c5a(){return _0x42d94b[_0x1957b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1957b5([0x76,0x69,0x65,0x77])][_0x1957b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1957b5([0x61,0x75,0x74,0x6f]);}function _0x3419e2(){_0x42d94b[_0x1957b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1957b5([0x76,0x69,0x65,0x77])][_0x1957b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1957b5([0x61,0x75,0x74,0x6f]);}}function _0x5e7e77(_0x27b156){const _0x34b6e7=[new window[(_0x1957b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30fbdd=>setTimeout(_0x30fbdd,0xc8bf5d2^_0x34c660)),_0xe7d527[_0x1957b5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1957b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e0f15=>{let _0xfa97e0=0x0;_0x42d94b[_0x1957b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1957b5([0x6f,0x6e])](_0x1957b5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x91e86a,_0x231acf)=>{_0x231acf[0x0][_0x1957b5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfa97e0++,_0xfa97e0==(0xc82cef6^_0x34c660)&&(_0x1e0f15(),_0x91e86a[_0x1957b5([0x6f,0x66,0x66])]());});}))];return window[_0x1957b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1957b5([0x72,0x61,0x63,0x65])](_0x34b6e7)[_0x1957b5([0x74,0x68,0x65,0x6e])](()=>_0x27b156);}async function _0x544977(){await _0xe7d527,_0x42d94b[_0x1957b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1957b5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b788d,_0x42d94b[_0x1957b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1957b5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b788d,_0x42d94b[_0x1957b5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1957b5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e3efe(_0x3c4d9a){const _0x1e4805=_0x260c74();_0x42d94b[_0x1e4805]=_0x1957b5([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c4d9a,_0x3c4d9a!=_0x1957b5([0x56,0x61,0x6c,0x69,0x64])&&_0x544977();}function _0x260c74(){const _0x54531a=window[_0x1957b5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1957b5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1957b5([0x6e,0x6f,0x77])]())[_0x1957b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1957b5([0x2e]),'');let _0x8d2e5c=_0x1957b5([0x49]);for(let _0x1fc6bf=0x0;_0x1fc6bf<_0x54531a[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fc6bf+=0x2){let _0x5dadea=window[_0x1957b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54531a[_0x1957b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fc6bf,_0x1fc6bf+0x2));_0x5dadea>=_0x2c0818[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5dadea-=_0x2c0818[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8d2e5c+=_0x2c0818[_0x5dadea];}return _0x8d2e5c;}function _0x2b21d4(){const _0x56fb56=_0x4b6b8f[_0x1957b5([0x73,0x70,0x6c,0x69,0x74])](_0x1957b5([0x2e]));if(0x3!=_0x56fb56[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13e172(_0x56fb56[0x1]);function _0x13e172(_0x3884a1){const _0x93a394=_0x744bad(_0x3884a1);return _0x93a394&&_0x19d47d()?_0x93a394:null;function _0x19d47d(){const _0x3e34cc=_0x93a394[_0x1957b5([0x6a,0x74,0x69])],_0x1a603b=window[_0x1957b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e34cc[_0x1957b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e34cc[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2aaed9={..._0x93a394,[_0x1957b5([0x6a,0x74,0x69])]:_0x3e34cc[_0x1957b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e34cc[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2aaed9[_0x1957b5([0x76,0x63])],_0x16cd0f(_0x2aaed9)==_0x1a603b;}}}async function _0x313882(){let _0x2b2428=!0x0;try{const _0xe20179=_0x4b6b8f[_0x1957b5([0x73,0x70,0x6c,0x69,0x74])](_0x1957b5([0x2e])),[_0x31e95b,_0x4215f5,_0x174aa9]=_0xe20179;return _0x281e85(_0x31e95b),await _0xfb73ed(_0x31e95b,_0x4215f5,_0x174aa9),_0x2b2428;}catch{return!0x1;}function _0x281e85(_0x49e182){const _0x552bdb=_0x744bad(_0x49e182);_0x552bdb&&_0x552bdb[_0x1957b5([0x61,0x6c,0x67])]==_0x1957b5([0x45,0x53,0x32,0x35,0x36])||(_0x2b2428=!0x1);}async function _0xfb73ed(_0x168bd8,_0x4273dc,_0x22c5c7){const _0x35177e=window[_0x1957b5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1957b5([0x66,0x72,0x6f,0x6d])](_0x33fb49(_0x22c5c7),_0x4a5710=>_0x4a5710[_0x1957b5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2bddf1=new window[(_0x1957b5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1957b5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x168bd8+_0x1957b5([0x2e])+_0x4273dc),_0x51b508=window[_0x1957b5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1957b5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51b508)return;const _0x5b042f=await _0x51b508[_0x1957b5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1957b5([0x6a,0x77,0x6b]),_0x5b4bd3,{[_0x1957b5([0x6e,0x61,0x6d,0x65])]:_0x1957b5([0x45,0x43,0x44,0x53,0x41]),[_0x1957b5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1957b5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1957b5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51b508[_0x1957b5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1957b5([0x6e,0x61,0x6d,0x65])]:_0x1957b5([0x45,0x43,0x44,0x53,0x41]),[_0x1957b5([0x68,0x61,0x73,0x68])]:{[_0x1957b5([0x6e,0x61,0x6d,0x65])]:_0x1957b5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b042f,_0x35177e,_0x2bddf1)||(_0x2b2428=!0x1);}}function _0x744bad(_0x5b2b93){return _0x5b2b93[_0x1957b5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1957b5([0x65,0x79]))?JSON[_0x1957b5([0x70,0x61,0x72,0x73,0x65])](_0x33fb49(_0x5b2b93)):null;}function _0x33fb49(_0xb2982b){return window[_0x1957b5([0x61,0x74,0x6f,0x62])](_0xb2982b[_0x1957b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1957b5([0x2b]))[_0x1957b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1957b5([0x2f])));}function _0x16cd0f(_0x47298a){let _0x47c1dd=0x1505;function _0x48ccd4(_0x2b6dcb){for(let _0x624b69=0x0;_0x624b69<_0x2b6dcb[_0x1957b5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x624b69++){const _0x3dfd61=_0x2b6dcb[_0x1957b5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x624b69);_0x47c1dd=(_0x47c1dd<<0x5)+_0x47c1dd+_0x3dfd61,_0x47c1dd&=_0x47c1dd;}}function _0x5f5ab7(_0x1ad49c){Array[_0x1957b5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ad49c)?_0x1ad49c[_0x1957b5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f5ab7):_0x1ad49c&&typeof _0x1ad49c==_0x1957b5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1957b5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ad49c)[_0x1957b5([0x73,0x6f,0x72,0x74])]()[_0x1957b5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x210b0a,_0x132ace])=>{_0x48ccd4(_0x210b0a),_0x5f5ab7(_0x132ace);}):_0x48ccd4(window[_0x1957b5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ad49c));}return _0x5f5ab7(_0x47298a),_0x47c1dd>>>0x0;}function _0x35b9f5(_0x240b89){return _0x240b89[_0x1957b5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1957b5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1957b5([0x30]));}function _0x4de2f3(_0x54aef2){return _0x54aef2[_0x1957b5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1957b5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1957b5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b788d(){}function _0x1957b5(_0x3c7e51){return _0x3c7e51['map'](_0x4d53a9=>String['fromCharCode'](_0x4d53a9))['join']('');}_0x3e3efe(await _0x1bc9b8());}(this);}['destroy'](){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x10e45c=this['editor'],_0x51412c=_0x10e45c['editing']['view'],_0x2331b2=this['_getAttachedDomRoot']();if(!_0x2331b2||!_0x2331b2['hasChildNodes']())return void _0x10e45c['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x3f7287,pageHeight:_0x5f20e5}=_0x10e45c['config']['get']('pagination'),{top:_0x19c6c8,left:_0x5e7cf4,bottom:_0x8d1bb1,right:_0x2e4206}=this['_configuredPaddings'];this['_pagesContainer']=new _0x3a8cc5(_0x10e45c['locale']);const _0x1a90e0=this['_pagesContainer'];_0x1a90e0['set']('class',''),_0x1a90e0['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x3f7287,'width':_0x3f7287,'height':'calc(\x20'+_0x5f20e5+'\x20-\x20'+_0x19c6c8+'\x20-\x20'+_0x8d1bb1+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x2e4206+'\x200\x20'+_0x5e7cf4,'columnGap':'calc('+_0x5e7cf4+'\x20+\x20'+_0x2e4206+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x1a90e0['bindTemplate']['to']('class')}}),_0x1a90e0['render'](),_0x2331b2['parentNode']['insertBefore'](_0x1a90e0['element'],_0x2331b2['nextSibling']),this['listenTo'](_0x51412c,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x23418c of this['editor']['editing']['view']['domRoots']['values']())if(_0x23418c['ownerDocument']['body']['contains'](_0x23418c))return _0x23418c;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x57d99a=this['editor']['editing']['view'],_0x249e30=this['_pagesContainer'],_0x162bc8=this['_getAttachedDomRoot']();if(!_0x162bc8||!_0x249e30)return Promise['resolve']();for(_0x249e30['class']=['ck-reset','ck-pagination-view',..._0x162bc8['classList']]['join']('\x20');_0x249e30['element']['firstChild'];)_0x249e30['element']['firstChild']['remove']();const _0x5b4f46=Array['from'](_0x57d99a['domRoots']);_0x5b4f46['sort'](([,_0x543539],[,_0x542ffb])=>_0x543539['compareDocumentPosition'](_0x542ffb)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x5134a2,_0x1ac042]of _0x5b4f46){const _0x203947=_0x1ac042['cloneNode'](!0x0);'attributeStyleMap'in _0x203947&&_0x203947['attributeStyleMap']['clear'](),_0x203947['dataset']['rootName']=_0x5134a2,_0x203947['className']='ck-content\x20ck-pagination_enabled',_0x203947['removeAttribute']('id'),_0x203947['tabIndex']=-0x1,_0x249e30['element']['append'](_0x203947);}const _0x80057e=Array['from'](_0x249e30['element']['querySelectorAll']('img'));return function(_0x6b68de){return Promise['all'](_0x6b68de['map'](_0xb51219=>Promise['race']([b(_0xb51219),k(0x3e8)])));}(_0x80057e)['then'](()=>{for(const _0x5ec68e of _0x80057e['filter'](_0xf68893=>!_0xf68893['closest']('table')))if(_0x5ec68e['offsetParent']){const _0x19140a=_0x55a5d2['window']['getComputedStyle'](_0x5ec68e),_0x4b8943=_0x55a5d2['document']['createElement']('span');for(const _0x24aa49 of _0x19140a)_0x4b8943['style']['setProperty'](_0x24aa49,_0x19140a[_0x24aa49]);_0x4b8943['style']['backgroundImage']='url(\x20'+_0x5ec68e['src']+'\x20)',_0x4b8943['style']['breakInside']='avoid','PICTURE'==_0x5ec68e['parentElement']?.['tagName']?_0x5ec68e['parentElement']['replaceWith'](_0x4b8943):_0x5ec68e['replaceWith'](_0x4b8943);}return new Promise(_0x4755d9=>_0x55a5d2['window']['requestAnimationFrame'](()=>_0x4755d9()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x4b51ea=this['_pagesContainer']['element'];if(!_0x4b51ea['ownerDocument']['body']['contains'](_0x4b51ea))return;const _0x24f8bf=new _0x5a0d5c(_0x4b51ea)['excludeScrollbarsAndBorders'](),_0x5ad387=Math['floor'](_0x24f8bf['width']+0x64),_0x69321e=L(_0x4b51ea,Math['floor'](_0x24f8bf['left']-_0x4b51ea['scrollLeft']),_0x5ad387,_0x24f8bf['height'])['map'](_0x17cb91=>this['_mapPageStarterInfoToPageBreakInfo'](_0x17cb91))['filter'](_0x12b182=>!0x1!==_0x12b182);_0x69321e['every'](_0x1d32ac=>!!_0x1d32ac)&&(this['pageBreaks']=_0x69321e);}['_mapPageStarterInfoToPageBreakInfo'](_0x366c06){const _0x2b8d76=this['editor']['editing']['view'],_0x27bde5=this['editor']['editing']['mapper'],_0x5a6684=_0x2b8d76['domConverter'],_0x1cfd9a=_0x366c06['path']['shift'](),_0x4056f7=this['_pagesContainer']['element']['childNodes'][_0x1cfd9a]['dataset']['rootName'],_0x2029ba=_0x2b8d76['getDomRoot'](_0x4056f7);if(!_0x2029ba)return null;const _0x5e5b42=function(_0xf42634,_0x4a1b47){let _0xfaec8a=_0xf42634;for(const _0xaf0131 of _0x4a1b47['path']){if(!_0xfaec8a)return null;_0xfaec8a=_0xfaec8a['childNodes'][_0xaf0131];}return _0xfaec8a;}(_0x2029ba,_0x366c06);if(!_0x5e5b42)return null;const _0x52ffdc=_0x5a6684['domPositionToView'](_0x5e5b42,_0x366c06['textOffset']||0x0);return _0x52ffdc?'manual'==_0x366c06['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x52ffdc,_0x5e5b42):'text'==_0x366c06['type']&&_0x27bde5['toModelPosition'](_0x52ffdc)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x52ffdc,_0x5e5b42,_0x366c06['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x52ffdc,_0x5e5b42,_0x366c06['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x1c074c,_0x389ed6){const _0x5b99a5=this['editor']['model'],_0x426f40=this['editor']['editing']['mapper']['toModelElement'](_0x1c074c['parent']),_0x5dfa2a=_0x5b99a5['createRangeOn'](_0x426f40);return new PageBreakInfo({'type':'manual','modelRange':_0x5dfa2a,'domNode':_0x389ed6,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0xfa6457,_0x354d5c,_0x1bfab9){const _0x54d3cb=this['editor']['model'],_0x235cc5=this['editor']['editing']['mapper'],_0x3bc507=this['editor']['editing']['view']['domConverter'];if(_0x1bfab9>=_0x354d5c['length'])return null;const _0x97eab0=_0x235cc5['toModelPosition'](_0xfa6457),_0x1a9990=_0x54d3cb['createRange'](_0x97eab0),_0x19ad06=_0x235cc5['findMappedViewAncestor'](_0xfa6457),_0x206e9f=_0x3bc507['mapViewToDom'](_0x19ad06);return new PageBreakInfo({'type':'text','modelRange':_0x1a9990,'domNode':_0x354d5c,'offset':w(_0x354d5c,_0x1bfab9,_0x206e9f)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x4f24e7,_0x211ba5,_0x323657){const _0x4d7701=this['editor']['model'],_0x419fc2=this['editor']['editing'],_0x1a6c2e=_0x419fc2['mapper'],_0x5e408d=_0x419fc2['view']['domConverter'],_0x3e58ae=_0x1a6c2e['findMappedViewAncestor'](_0x4f24e7),_0x4f38c7=_0x1a6c2e['toModelElement'](_0x3e58ae);if(!_0x4f38c7||_0x4f38c7['is']('rootElement'))return!0x1;const _0x576462=function(_0x577e86){const _0xba37fe=_0x577e86['parent'],_0x2fe508=_0xba37fe['root']['document']['model'],_0x398fa9=_0xba37fe['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1f2744=null;for(const _0x127940 of _0x398fa9){if(_0x127940['is']('rootElement'))return _0x1f2744;if(!_0x2fe508['createPositionBefore'](_0x127940)['isTouching'](_0x577e86))return _0x1f2744;_0x1f2744=_0x127940;}}(_0x4d7701['createPositionBefore'](_0x4f38c7)),_0x22b10a=_0x576462||_0x4f38c7;let _0x3c1956=_0x1a6c2e['toViewElement'](_0x22b10a),_0x254c7c=_0x4d7701['createRangeOn'](_0x22b10a);const _0x2b35d3=_0x4d7701['createPositionBefore'](_0x22b10a)['nodeBefore'];if(_0x2b35d3&&_0x2b35d3['is']('element','imageBlock')){const _0x2dd165=_0x1a6c2e['toViewElement'](_0x2b35d3),_0x38e29c=_0x5e408d['mapViewToDom'](_0x2dd165),_0x3f2d79=_0x55a5d2['window']['getComputedStyle'](_0x38e29c)['float'];'left'!=_0x3f2d79&&'right'!=_0x3f2d79||(_0x254c7c=_0x4d7701['createRangeOn'](_0x2b35d3));}for(;_0x3c1956['parent']!==_0x3c1956['root']&&0x0===_0x3c1956['index'];)_0x3c1956=_0x3c1956['parent'];const _0xf01932=new _0x5a0d5c(S(_0x211ba5)?_0x211ba5:y(_0x211ba5)),_0x4f5a5e=_0x323657?_0xf01932['height']-_0x323657:0x0,_0x6af5bb=_0x5e408d['mapViewToDom'](_0x3c1956),_0x4c66d5=new _0x5a0d5c(_0x6af5bb);return new PageBreakInfo({'type':'element','modelRange':_0x254c7c,'domNode':_0x6af5bb,'offset':Math['round'](_0x4f5a5e)||_0x3e58ae!=P(_0x4f24e7)?_0x4f5a5e+_0xf01932['top']-_0x4c66d5['top']:0x0});}get['_configuredPaddings'](){const _0x4c399a=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x4c399a);}static['_findPageStarterInfos'](_0x4abe34,_0x39aaa8,_0x3892a0,_0x2f9fbc,_0xb96022){return L(_0x4abe34,_0x39aaa8,_0x3892a0,_0x2f9fbc,_0xb96022);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x1ca4c9,modelRange:_0x1881ca,domNode:_0xaa0131,offset:_0x4d33a0}){this['type']=_0x1ca4c9,this['modelRange']=_0x1881ca,this['_domNode']=_0xaa0131,this['_offset']=_0x4d33a0;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x213cbd=new _0x5a0d5c(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x213cbd['top']+_0x213cbd['height']/0x2:_0x213cbd['top']+this['_offset'];}}function w(_0x504e59,_0x48b554,_0x51a3ae){const _0x5c5e72=y(_0x504e59),_0x5edb97=function(_0x24ca64){const _0x2e682f=_0x55a5d2['document']['createRange']();return _0x2e682f['selectNodeContents'](_0x24ca64),_0x2e682f;}(_0x51a3ae);let _0x302787;_0x302787=0x0==_0x48b554?x(_0x5edb97['startContainer'],_0x5edb97['startOffset'],_0x504e59['parentNode'],Array['from'](_0x504e59['parentNode']['childNodes'])['indexOf'](_0x504e59)):x(_0x5edb97['startContainer'],_0x5edb97['startOffset'],_0x504e59,_0x48b554);const _0xe93f58=x(_0x504e59,_0x48b554,_0x5edb97['endContainer'],_0x5edb97['endOffset']),_0x96df8b=new _0x5a0d5c(_0x302787)['bottom'];return(new _0x5a0d5c(_0xe93f58)['top']+_0x96df8b)/0x2-new _0x5a0d5c(_0x5c5e72)['top'];}function P(_0x33fb12){let _0x255445=_0x33fb12['parent'];for(;_0x255445['is']('$text')||_0x255445['is']('attributeElement');)_0x255445=_0x255445['parent'];return _0x255445;}function b(_0x2b73b0){return _0x2b73b0['hasAttribute']('width')&&_0x2b73b0['hasAttribute']('height')?Promise['resolve']():new Promise(_0x5ccb63=>{function _0xddd8c3(){_0x2b73b0['removeEventListener']('load',_0xddd8c3),_0x2b73b0['removeEventListener']('error',_0xddd8c3),_0x5ccb63();}_0x2b73b0['complete']?_0x5ccb63():(_0x2b73b0['addEventListener']('load',_0xddd8c3),_0x2b73b0['addEventListener']('error',_0xddd8c3));});}function k(_0x4c1884){return new Promise(_0x521f77=>setTimeout(_0x521f77,_0x4c1884));}function y(_0xbc487){const _0x1ae5e3=_0x55a5d2['document']['createRange']();return _0x1ae5e3['selectNode'](_0xbc487),_0x1ae5e3;}function v(_0x530040,_0x5786ea,_0x88d6cf){const _0x2eac7e=_0x55a5d2['document']['createRange']();return _0x2eac7e['setStart'](_0x530040,_0x5786ea),_0x2eac7e['setEnd'](_0x530040,_0x88d6cf),_0x2eac7e;}function x(_0x4ad251,_0x46ec02,_0xd028c9,_0x283545){const _0x2602fb=_0x55a5d2['document']['createRange']();return _0x2602fb['setStart'](_0x4ad251,_0x46ec02),_0x2602fb['setEnd'](_0xd028c9,_0x283545),_0x2602fb;}function L(_0x174a25,_0x4de891,_0x3df4c8,_0x21dc64,_0x4e0647){const _0x151c2f=[];for(const [_0x10d608,_0x3c6173]of _0x174a25['childNodes']['entries']()){let _0x365cf6=[];S(_0x3c6173)&&_0x3c6173['offsetParent']&&['static','relative']['includes'](_0x55a5d2['window']['getComputedStyle'](_0x3c6173)['position'])?_0x365cf6=N(_0x3c6173,_0x10d608,_0x4de891,_0x3df4c8,_0x21dc64,_0x4e0647):I(_0x3c6173)&&(_0x365cf6=_(_0x3c6173,_0x10d608,_0x4de891,_0x3df4c8,_0x4e0647)),_0x365cf6['length']&&(_0x151c2f['push'](..._0x365cf6),_0x4de891+=_0x365cf6['length']*_0x3df4c8,_0x4e0647=!0x1);}return _0x151c2f;}function N(_0x4102b5,_0x144eac,_0x395a4d,_0x394e3a,_0x58e888,_0x36df73){const _0x116528=[];var _0x32cc5f;if((_0x32cc5f=_0x4102b5['previousSibling'])&&S(_0x32cc5f)&&Boolean(_0x32cc5f['classList']['contains']('page-break')||_0x32cc5f['closest']('.page-break'))&&(_0x116528['push']({'type':'manual','offset':0x0,'path':[_0x144eac-0x1]}),_0x36df73=!0x0),'table-row'==_0x55a5d2['window']['getComputedStyle'](_0x4102b5)['display']){let _0x4fbb05=0x0,_0xf02933=!0x1;for(const _0x5bf493 of _0x4102b5['getClientRects']())_0x4fbb05+=_0x5bf493['height'],_0x5bf493['left']>=_0x395a4d&&(_0xf02933=!0x0);if(_0x4fbb05<_0x58e888&&_0xf02933)return _0x36df73||_0x116528['push']({'type':'element','offset':0x0,'path':[_0x144eac]}),_0x116528;}const _0xaf255f=_0x4102b5['closest']('figure.image');if(_0xaf255f&&function(_0x4d2b75){let _0x2af632=!0x1;const _0x4a8688=_0x4d2b75['parentElement'],_0x4f3147=_0x4a8688['dataset']['rootName'],_0x5bc366=_0x4d2b75['nextElementSibling'],_0x2a8667=_0x4d2b75['previousElementSibling'],_0x2292b2=_0x5bc366&&_0x55a5d2['window']['getComputedStyle'](_0x5bc366)['float'],_0x2e0fe6=_0x5bc366&&'ck-fake-selection-container'===_0x5bc366['className'];!_0x4f3147||_0x5bc366||_0x2a8667||(_0x2af632=!0x0),_0x4f3147&&!_0x2a8667&&_0x2e0fe6&&(_0x2af632=!0x0),_0x4f3147&&!_0x2a8667&&'none'!==_0x2292b2&&(_0x2af632=!0x0);if(_0x2af632)return!0x1;return!0x0;}(_0xaf255f)){const _0x1e50be=_0x55a5d2['window']['getComputedStyle'](_0xaf255f)['float'];if('left'==_0x1e50be||'right'==_0x1e50be)return _0x116528;}const _0x37a2cd=L(_0x4102b5,_0x395a4d,_0x394e3a,_0x58e888,_0x36df73);if(_0x37a2cd['length']){for(const _0x4701a5 of _0x37a2cd)_0x116528['push']({'type':_0x4701a5['type'],'offset':_0x4701a5['offset'],'textOffset':_0x4701a5['textOffset'],'path':[_0x144eac,..._0x4701a5['path']]}),_0x395a4d+=_0x394e3a,_0x36df73=!0x1;return _0x116528;}return _0x116528['push'](...function(_0x44c488,_0x410f4c,_0x5b81a9,_0x62286e,_0x168be8){const _0x3e1699=[];if('table-cell'==_0x55a5d2['window']['getComputedStyle'](_0x44c488)['display'])return[];const _0x376173=[];for(const _0x2f9890 of _0x44c488['getClientRects']())if(_0x2f9890['left']>=_0x5b81a9){for(const _0x1084f4 of _0x376173)_0x1084f4['height']+=_0x2f9890['height'];_0x376173['push']({'height':_0x2f9890['height']}),_0x5b81a9+=_0x62286e;}for(const _0x375213 of _0x376173)_0x168be8||_0x3e1699['push']({'type':'element','offset':_0x375213['height'],'textOffset':0x0,'path':[_0x410f4c]}),_0x168be8=!0x1;return _0x3e1699;}(_0x4102b5,_0x144eac,_0x395a4d,_0x394e3a,_0x36df73)),_0x116528;}function _(_0x28c079,_0x30b7ef,_0x162456,_0x206e38,_0x4ce3d5){const _0x1b3d4a=y(_0x28c079),_0x23a648=[];let _0x2ecd3b=0x0;for(const _0x1c0b3b of _0x1b3d4a['getClientRects']())if(_0x1c0b3b['left']>=_0x162456){const _0x37787f=R(_0x28c079,_0x2ecd3b,_0x162456,_0x206e38);_0x4ce3d5||_0x23a648['push']({'type':'text','path':[_0x30b7ef],'textOffset':_0x37787f}),_0x2ecd3b=_0x37787f,_0x162456+=_0x206e38,_0x4ce3d5=!0x1;}return _0x23a648;}function R(_0x48bb78,_0x3efc25,_0x4d9319,_0x401557){let _0x4997bc=_0x3efc25,_0x418016=_0x48bb78['length'];for(;_0x418016-_0x4997bc>0x1;){const _0x2b776b=Math['ceil']((_0x4997bc+_0x418016)/0x2);E(v(_0x48bb78,_0x4997bc,_0x2b776b),_0x4d9319,_0x401557)?_0x418016=_0x2b776b:_0x4997bc=_0x2b776b;}return _0x4997bc;}function E(_0x12b238,_0x5c99f3,_0x458c65){for(const _0x2f7bbc of _0x12b238['getClientRects']())if(_0x2f7bbc['left']>=_0x5c99f3&&_0x2f7bbc['left']<_0x5c99f3+_0x458c65)return!0x0;return!0x1;}function S(_0x230466){return _0x230466['nodeType']==Node['ELEMENT_NODE'];}function I(_0x13b29c){return _0x13b29c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x4b445b('px');class LineView extends _0x3a8cc5{constructor(){super();const _0x2b23d6=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x2b23d6['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x2b23d6['if']('isVisible','ck-hidden',_0x5d5297=>!_0x5d5297)],'style':{'left':_0x2b23d6['to']('left',_0x17204e=>B(_0x17204e)),'top':_0x2b23d6['to']('top',_0x4f22e0=>B(_0x4f22e0)),'width':_0x2b23d6['to']('width',_0x487563=>B(_0x487563))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x52284d){this['_viewCollection']=_0x52284d['ui']['view']['body'];}['destroy'](){for(const _0x17ac8a of this['_hiddenLines'])_0x17ac8a['destroy']();}['cleanLines'](){for(const _0x457259 of this['_visibleLines'])_0x457259['isVisible']=!0x1,this['_hiddenLines']['add'](_0x457259);this['_visibleLines']['clear']();}['showLine'](_0x745b22,_0x495655,_0x2d0df6,_0x366d89){let _0x357562;this['_hiddenLines']['size']?(_0x357562=_0x471935(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x357562)):_0x357562=new LineView(),_0x357562['set']({'pageNumber':_0x366d89,'left':_0x745b22,'top':_0x495655,'width':_0x2d0df6}),_0x357562['isVisible']=!0x0,this['_viewCollection']['has'](_0x357562)||this['_viewCollection']['add'](_0x357562),this['_visibleLines']['add'](_0x357562);}['setViewCollection'](_0xb93089){for(const _0x3805d1 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x3805d1)&&this['_viewCollection']['remove'](_0x3805d1);this['_viewCollection']=_0xb93089;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x36769d{['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',(_0x43efef,_0x1bb049,_0x2abaf5)=>{_0x2abaf5||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x2abaf5);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0xd33df1){if(!this['isEnabled'])return;const _0x55534d=_0xd33df1>0x1?this['_getPageBreakLineOffset'](_0xd33df1-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x55534d-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x570fc3['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x424db2=this['editor'],_0x3db738=this['_getAttachedDomRoot']();_0x3db738?(this['_scrollableEditingRootDomAncestor']&&_0x424db2['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x23a232){let _0x38c934=_0x23a232;do{_0x38c934=_0x38c934['parentElement'];const _0x275e35=_0x55a5d2['window']['getComputedStyle'](_0x38c934)['overflowY'];if('auto'==_0x275e35||'scroll'==_0x275e35)break;}while('BODY'!=_0x38c934['tagName']);return _0x38c934;}(_0x3db738),_0x424db2['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x96d34f(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x424db2['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x3baf3e=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x3baf3e['ui']['view']['listenTo'](_0x55a5d2['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x3baf3e['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x4cd833 of this['editor']['editing']['view']['domRoots']['values']())if(_0x4cd833['ownerDocument']['body']['contains'](_0x4cd833))return _0x4cd833;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x427810=this['_getAttachedDomRoot'](),_0x32499b=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x427810||0x1==_0x32499b['length'])return void(this['pageNumber']=0x1);const _0x594f0b=new _0x5a0d5c(_0x427810)['excludeScrollbarsAndBorders'](),_0x4d0d93=new _0x5a0d5c(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0xe8f918=_0x4d0d93['top']+_0x4d0d93['height']/0x3;let _0x440a3f=!0x1;const _0x158a18=[];for(let _0x7764af=0x1;_0x7764af<_0x32499b['length'];_0x7764af++){const _0x4a0acf=this['_getPageBreakLineOffset'](_0x7764af,_0x4d0d93);if(!_0x4a0acf)continue;const _0x582b5a=_0x4d0d93['top']+_0x4a0acf-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x158a18['push']({'pageOffsetTop':_0x582b5a,'domRootRect':_0x594f0b,'domScrollableRect':_0x4d0d93,'pageNumber':_0x7764af}),_0x582b5a>_0xe8f918&&!_0x440a3f&&(this['pageNumber']=_0x7764af,_0x440a3f=!0x0);}this['_renderPageBreakLines'](_0x158a18),_0x440a3f||(this['pageNumber']=_0x32499b['length']);}['_renderPageBreakLines'](_0x2a07e8){const {scrollX:_0x33acce,scrollY:_0x5dd67b}=_0x55a5d2['window'];if(_0x2a07e8['length']){for(const {domScrollableRect:_0x6de7bf,pageOffsetTop:_0x56c8be,domRootRect:_0x318177,pageNumber:_0x5b8d2f}of _0x2a07e8)_0x6de7bf['top']<_0x56c8be&&_0x56c8be<_0x6de7bf['bottom']&&this['linesRepository']['showLine'](_0x318177['left']+_0x33acce,_0x56c8be+_0x5dd67b,_0x318177['width'],_0x5b8d2f+0x1);}}['_getPageBreakLineOffset'](_0x957f1b,_0x5d4b78=null){const _0x501708=this['_paginationLookupPlugin']['pageBreaks'][_0x957f1b]['offset'];return _0x501708?(_0x5d4b78||(_0x5d4b78=new _0x5a0d5c(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x501708-_0x5d4b78['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x6c2174,_0x4f82e8=!0x0){const _0x3826fa=this['editor']['editing']['view'];_0x3826fa['change'](_0x59ede4=>{for(const _0x337256 of _0x3826fa['document']['roots'])_0x4f82e8?_0x59ede4['addClass'](_0x6c2174,_0x337256):_0x59ede4['removeClass'](_0x6c2174,_0x337256);});}}function O(_0x350411,_0xea2177,..._0x23387d){const t=_0x350411['t'];switch(_0xea2177){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)',..._0x23387d);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 _0xea2177;}}class PaginationEditing extends _0x36769d{['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 _0x15787b=this['editor']['plugins']['get']('Pagination'),_0x47c02e=this['editor']['plugins']['get'](PaginationLookup),_0x790cd3=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x15787b),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x790cd3),this['listenTo'](_0x47c02e,'change:pageBreaks',(_0x4e1fd4,_0x1078ed,_0xec4c22,_0x256cae)=>{this['totalPages']=_0xec4c22['length'],this['_updatePageBreakMarkers'](_0xec4c22,_0x256cae);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d72ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e33a6;for(const _0x1e8d79 in _0x1d72ec){const _0x1bb21b=_0x1e8d79,_0x3d20ef=_0x1d72ec[_0x1bb21b];if('paginationLicenseKeyValid'==_0x3d20ef||'paginationLicenseKeyInvalid'==_0x3d20ef||'paginationLicenseKeyExpired'==_0x3d20ef||'paginationLicenseKeyDomainLimit'==_0x3d20ef||'paginationLicenseKeyNotAllowed'==_0x3d20ef||'paginationLicenseKeyEvaluationLimit'==_0x3d20ef||'paginationLicenseKeyUsageLimit'==_0x3d20ef){delete _0x1d72ec[_0x1bb21b],_0x5e33a6=_0x3d20ef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x5e33a6&&_0x1d72ec['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x5e33a6&&_0x1d72ec['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x5e33a6&&_0x1d72ec['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x5e33a6&&_0x1d72ec['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x5e33a6&&_0x1d72ec['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x5e33a6&&_0x1d72ec['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x28fe1e){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x28fe1e));}['moveSelectionToPage'](_0xbed79b){if(!this['isEnabled'])return;const _0x5229e8=this['editor'],_0x4ac905=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0xbed79b-0x1];_0x4ac905&&_0x5229e8['model']['change'](_0x48b44c=>{switch(_0x4ac905['type']){case'manual':{const _0x5257f4=_0x5229e8['model']['schema']['getNearestSelectionRange'](_0x4ac905['modelRange']['end'],'forward');_0x48b44c['setSelection'](_0x5257f4);break;}case'element':{const _0x17a6d0=_0x5229e8['model']['schema']['getNearestSelectionRange'](_0x4ac905['modelRange']['start'],'forward');_0x48b44c['setSelection'](_0x17a6d0);break;}case'text':{const _0x5da216=_0x4ac905['modelRange']['start'];if(_0x5da216['textNode']&&'\x20'===_0x5da216['textNode']['data'][_0x5da216['offset']]){const _0x212d49=_0x48b44c['createPositionAt'](_0x5da216['parent'],_0x5da216['offset']+0x1);_0x48b44c['setSelection'](_0x212d49);}else _0x48b44c['setSelection'](_0x4ac905['modelRange']);}}_0x5229e8['editing']['view']['focus']();});}['goToNextPage'](){const _0x2003bd=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x2003bd),this['scrollToPage'](_0x2003bd);}['goToPreviousPage'](){const _0x84fbc1=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x84fbc1),this['scrollToPage'](_0x84fbc1);}['_updatePageBreakMarkers'](_0x1c2089,_0x5dd321){const _0x599faf=this['editor']['model'];this['isEnabled']&&_0x599faf['change'](_0x6eedae=>{for(let _0x358898=0x1;_0x358898<_0x1c2089['length'];_0x358898++){const _0x2775f7=_0x1c2089[_0x358898]['modelRange'],_0x5e0022='pagination:'+(_0x358898+0x1);_0x599faf['markers']['has'](_0x5e0022)?_0x6eedae['updateMarker'](_0x5e0022,{'range':_0x2775f7}):_0x6eedae['addMarker'](_0x5e0022,{'range':_0x2775f7,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x19025c=_0x1c2089['length'];_0x19025c<_0x5dd321['length'];_0x19025c++){const _0x3f903b='pagination:'+(_0x19025c+0x1);_0x599faf['markers']['has'](_0x3f903b)&&_0x6eedae['removeMarker'](_0x3f903b);}});}['_setUpDataDowncastConversion'](){const _0x502fa1='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x5048ba=>{_0x5048ba['on']('addMarker:'+_0x502fa1,(_0x53b1e5,{markerRange:_0x7a1214,markerName:_0xd6f248},_0x3937ec)=>{if(!_0x3937ec['options']['pagination'])return;if(!_0x3937ec['consumable']['consume'](_0x7a1214,_0x53b1e5['name']))return;const _0x5c525f=_0x7a1214['getContainedElement']();let _0x5e8be4=_0x5c525f?_0x3937ec['mapper']['toViewElement'](_0x5c525f):null;if(!_0x5e8be4){const _0x5824c3=_0x7a1214['start'];if(_0x3937ec['schema']['checkChild'](_0x5824c3,'$text')){const _0x54ea8e=_0x3937ec['mapper']['toViewPosition'](_0x5824c3);_0x5e8be4=_0x3937ec['writer']['createContainerElement']('span'),_0x5e8be4['getFillerOffset']=()=>null,_0x3937ec['writer']['insert'](_0x54ea8e,_0x5e8be4);}else{const _0x3d532f=_0x5824c3['nodeAfter'];_0x5e8be4=_0x3937ec['mapper']['toViewElement'](_0x3d532f);}}for(;_0x5e8be4['parent']!==_0x5e8be4['root']&&0x0===_0x5e8be4['index'];)_0x5e8be4=_0x5e8be4['parent'];const _0x540f27=_0xd6f248['substring'](0xb);_0x5e8be4['hasClass']('page-break')||(_0x3937ec['writer']['setStyle']('page-break-before','always',_0x5e8be4),_0x3937ec['writer']['setAttribute']('data-pagination-page',_0x540f27,_0x5e8be4),_0x3937ec['mapper']['bindElementToMarker'](_0x5e8be4,_0xd6f248)),_0x53b1e5['stop']();});});}['_setupKeystrokes'](){const _0x24e376=this['editor'];_0x24e376['keystrokes']['set']('Shift+Pageup',(_0x52ffd9,_0x4999ad)=>{this['goToPreviousPage'](),_0x4999ad();}),_0x24e376['keystrokes']['set']('Shift+Pagedown',(_0x2f4fa4,_0x425c89)=>{this['goToNextPage'](),_0x425c89();}),_0x24e376['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x24e376['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x24e376['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x24e376['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2b2034){return _0x2b2034<0x1&&(_0x2b2034=0x1),_0x2b2034>this['totalPages']&&(_0x2b2034=this['totalPages']),_0x2b2034;}}class PageNavigatorView extends _0x3a8cc5{['pageNumberView'];constructor(_0x128610){super(_0x128610);const _0x4d209b=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x2ff6f2(_0x128610,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x522f73=>O(_0x128610,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x522f73)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x496e09=>!_0x496e09),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x4d209b['if']('isEnabled','ck-disabled',_0x1620fc=>!_0x1620fc)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x4d209b['to']('totalPages')}]}]});}['render'](){super['render']();const _0xaaddee=this['pageNumberView']['element'],_0x3e531d=_0xc7d372=>{this['pageNumberView']['element']['value']=String(_0xc7d372);};_0x3e531d(this['pageNumber']),this['on']('change:pageNumber',(_0x2be59b,_0x548ac5,_0x1ac2e4)=>{_0x3e531d(_0x1ac2e4);}),this['listenTo'](_0xaaddee,'keydown',(_0x49571e,_0x1fce37)=>{if('ArrowUp'===_0x1fce37['key']||'ArrowDown'===_0x1fce37['key'])return void _0x1fce37['stopPropagation']();if(_0x1fce37['keyCode']!==_0x3db7e7['enter'])return;_0x1fce37['preventDefault']();const _0x388749=_0xaaddee['valueAsNumber'];Number['isNaN'](_0x388749)?_0xaaddee['value']=String(this['pageNumber']):(_0xaaddee['checkValidity']()?this['pageNumber']=_0x388749:_0x388749>this['totalPages']?(this['pageNumber']=this['totalPages'],_0xaaddee['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0xaaddee['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0xaaddee,'blur',()=>{_0xaaddee['value']=String(this['pageNumber']);}),this['listenTo'](_0xaaddee,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x36769d{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e6fde=this['editor'],_0xb07b9f=_0x2e6fde['plugins']['get']('PaginationEditing');_0x2e6fde['ui']['componentFactory']['add']('pageNavigation',_0x32216f=>{const _0x54a626=new PageNavigatorView(_0x32216f);return _0x54a626['bind']('pageNumber')['to'](_0xb07b9f),_0x54a626['bind']('totalPages')['to'](_0xb07b9f),_0x54a626['bind']('isEnabled')['to'](_0xb07b9f),_0x54a626['on']('navigation',(_0x5310cc,_0x23893a)=>{_0xb07b9f['moveSelectionToPage'](_0x23893a),_0xb07b9f['scrollToPage'](_0x23893a);}),_0x54a626;}),_0x2e6fde['ui']['componentFactory']['add']('nextPage',_0xc35342=>{const _0x212ed1=new _0x45cdb0(_0xc35342);return _0x212ed1['isEnabled']=!0x0,_0x212ed1['label']=O(_0x2e6fde['locale'],'Go\x20to\x20next\x20page'),_0x212ed1['icon']=_0x440c0b,_0x212ed1['tooltip']=!0x0,_0x212ed1['keystroke']='Shift+PageDown',_0x212ed1['bind']('isEnabled')['to'](_0xb07b9f),this['listenTo'](_0x212ed1,'execute',()=>{_0xb07b9f['goToNextPage']();}),_0x212ed1;}),_0x2e6fde['ui']['componentFactory']['add']('previousPage',_0x13c153=>{const _0x55cf8e=new _0x45cdb0(_0x13c153);return _0x55cf8e['isEnabled']=!0x0,_0x55cf8e['label']=O(_0x2e6fde['locale'],'Go\x20to\x20previous\x20page'),_0x55cf8e['icon']=_0x35237c,_0x55cf8e['tooltip']=!0x0,_0x55cf8e['keystroke']='Shift+PageUp',_0x55cf8e['bind']('isEnabled')['to'](_0xb07b9f),this['listenTo'](_0x55cf8e,'execute',()=>{_0xb07b9f['goToPreviousPage']();}),_0x55cf8e;});}}class Pagination extends _0x36769d{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x321913){super(_0x321913),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2bff23=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x2bff23),this['bind']('totalPages')['to'](_0x2bff23),_0x570fc3['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x4098b7){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x4098b7);}}export{Pagination,PaginationRenderer};
23
+ import{Plugin as _0x5b4aab}from'@ckeditor/ckeditor5-core';import{ButtonView as _0x1f2151,InputNumberView as _0x453be9,View as _0x57c9e3}from'@ckeditor/ckeditor5-ui';import{Rect as _0x2dd926,ResizeObserver as _0x28d1d6,env as _0x43205f,first as _0x1cb100,global as _0x2f5a5c,keyCodes as _0x1ee18d,logWarning as _0x8f006d,toUnit as _0x4f6000,uid as _0x2e0e8b}from'@ckeditor/ckeditor5-utils';import{debounce as _0x4c901d}from'es-toolkit/compat';import{IconArrowDown as _0x41fd88,IconArrowUp as _0x3581cd}from'@ckeditor/ckeditor5-icons';var w=class extends _0x5b4aab{['_recalculatePageBreaksDebounced']=_0x4c901d(()=>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 _0x8f006d('pagination-config-not-found',this['editor']['config']);const _0x3ef079=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3ef079),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x76403e,_0x199ce0,_0x32df9c)=>{_0x32df9c&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x57fc76){const _0x1e38e4='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x43b1b7=0x78de0,_0x50d64c=window['Date']['now'](),_0x3580dd=_0x57fc76['editor'],_0xeaadc3=new window['Promise'](_0x1ec3dd=>{_0x3580dd['once']('ready',_0x1ec3dd);}),_0x50e5d0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xacc97d=_0x3580dd['config']['get']('licenseKey');async function _0x5d7468(){let _0x2ea182,_0x57c66c=null,_0x3cda47=null;try{return'GPL'==_0xacc97d?'NotAllowed':(_0x2ea182=_0x3feb92(),_0x2ea182?(_0x2ea182['usageEndpoint']&&(_0x3cda47=_0x3a3dee(_0x2ea182['usageEndpoint'],_0x2ea182['jti'])),await _0x5e0038()?_0x2d811d()?_0x2806df()?'Expired':_0x21ebc2()?('evaluation'==_0x2ea182['licenseType']&&(_0x57c66c=_0x12488e('EvaluationLimit')),await _0x2e1fa1()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2806df(){const _0x3c69e4=['evaluation','trial']['includes'](_0x2ea182['licenseType'])?_0x50d64c/0x3e8:0xe10*_0x43b1b7;return _0x2ea182['exp']<_0x3c69e4;}function _0x2d811d(){const _0x11c5c0=_0x2ea182['features'];return!!_0x11c5c0&&(!!_0x11c5c0['includes']('*')||!!_0x11c5c0['includes']('PAG'));}function _0x21ebc2(){const _0x431060=_0x2ea182['licensedHosts'];if(!_0x431060||0x0==_0x431060['length'])return!0x0;const {hostname:_0xbca87}=new URL(window['location']['href']);if(_0x431060['includes'](_0xbca87))return!0x0;const _0x575844=_0xbca87['split']('.');return _0x431060['filter'](_0x2aaeb9=>_0x2aaeb9['includes']('*'))['map'](_0x19cddc=>_0x19cddc['split']('.'))['filter'](_0x186d4e=>_0x186d4e['length']<=_0x575844['length'])['map'](_0x148a28=>Array(_0x575844['length']-_0x148a28['length'])['fill']('*'===_0x148a28[0x0]?'*':'')['concat'](_0x148a28))['some'](_0x2d6114=>_0x575844['every']((_0x138421,_0x19204c)=>_0x2d6114[_0x19204c]===_0x138421||'*'===_0x2d6114[_0x19204c]));}function _0x2e1fa1(){return _0x57c66c&&_0x3cda47?new window['Promise']((_0x442b0f,_0x454fb7)=>{_0x57c66c['then'](_0x442b0f,_0x454fb7),_0x3cda47['then'](_0x1c26bd=>{'Valid'!=_0x1c26bd&&_0x442b0f(_0x1c26bd);},_0x454fb7);}):_0x57c66c||_0x3cda47||'Valid';}}function _0x3a3dee(_0x55df60,_0x3d7ac8){return new window['Promise'](_0xb412da=>{if(_0xab4c3d())return _0xb412da('Valid');_0x366205(),_0x3580dd['decorate']('_sendUsageRequest');let _0x39031c=!0x1;const _0x4e5e89=_0x2e0e8b();function _0x16acc9(_0xa92ffe){return!!_0xa92ffe&&('object'==typeof _0xa92ffe||'function'==typeof _0xa92ffe)&&'function'==typeof _0xa92ffe['then']&&'function'==typeof _0xa92ffe['catch'];}function _0x4464f9(_0x9bab7d){_0x4b38c1(_0x9bab7d)['then'](_0x51806b=>_0x51806b&&'ok'==_0x51806b['status']?_0x13edd9(_0x1b5f65(_0x4e5e89+_0x3d7ac8))!=_0x51806b['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x40ef7a=>(_0x4b1bd8(),_0x40ef7a),()=>{const _0x128b95=_0x323bcc();return null==_0x128b95?(_0x4b1bd8(),'Valid'):_0x50d64c-_0x128b95>0x240c8400?'UsageLimit':'Valid';})['then'](_0xb412da)['catch'](()=>{_0xb412da('UsageLimit');});const _0x2ab561=0x36ee80;function _0x4b1bd8(){const _0x526ba0='llct-'+_0x13edd9(_0x1b5f65(_0x55df60)),_0x5ddaa3=_0x356de8(_0x13edd9(window['Math']['ceil'](_0x50d64c/_0x2ab561)));window['localStorage']['setItem'](_0x526ba0,_0x5ddaa3);}function _0x323bcc(){const _0x3eb4d5='llct-'+_0x13edd9(_0x1b5f65(_0x55df60)),_0x651579=window['localStorage']['getItem'](_0x3eb4d5);return _0x651579?window['parseInt'](_0x356de8(_0x651579),0x10)*_0x2ab561:null;}function _0x4b38c1(_0x15b922){return new window['Promise']((_0x506bf0,_0x546615)=>{_0x15b922['then'](_0x506bf0,_0x546615),window['setTimeout'](_0x546615,0x1d4c0);});}}_0x3580dd['on']('_sendUsageRequest',(_0x5e05e2,_0x1afa5a)=>{if(_0x1afa5a[0x0]!=_0x55df60)return _0xb412da('UsageLimit');_0x1afa5a[0x1]={..._0x1afa5a[0x1],'requestId':_0x4e5e89};},{'priority':'high'}),_0x3580dd['on']('_sendUsageRequest',_0x1637d5=>{_0x16acc9(_0x1637d5['return'])&&(_0x39031c=!0x0,_0x4464f9(_0x1637d5['return']));},{'priority':'low'}),_0xeaadc3['then'](()=>{_0x39031c||_0xb412da('UsageLimit');});});function _0xab4c3d(){return'auto'==_0x3580dd['editing']['view']['_overlayModeHint'];}function _0x366205(){_0x3580dd['editing']['view']['_overlayModeHint']='auto';}}function _0x12488e(_0x225c36){const _0x573a67=[new window['Promise'](_0x40e835=>setTimeout(_0x40e835,0x93ecc)),_0xeaadc3['then'](()=>new window['Promise'](_0xf6689a=>{let _0x2e87bf=0x0;_0x3580dd['model']['on']('applyOperation',(_0x185b96,_0xd30442)=>{_0xd30442[0x0]['isDocumentOperation']&&_0x2e87bf++,0x5e8==_0x2e87bf&&(_0xf6689a(),_0x185b96['off']());});}))];return window['Promise']['race'](_0x573a67)['then'](()=>_0x225c36);}async function _0x11e0f1(){await _0xeaadc3,_0x3580dd['model']['change']=_0x52b866,_0x3580dd['model']['enqueueChange']=_0x52b866,_0x3580dd['enableReadOnlyMode']('model');}function _0x121c68(_0x221a58){const _0x1a21bd=_0x1024f2();_0x3580dd[_0x1a21bd]='paginationLicenseKey'+_0x221a58,'Valid'!=_0x221a58&&_0x11e0f1();}function _0x1024f2(){const _0x38df11=window['String'](window['performance']['now']())['replace']('.','');let _0x1d7829='I';for(let _0x34148b=0x0;_0x34148b<_0x38df11['length'];_0x34148b+=0x2){let _0x4ebc39=window['parseInt'](_0x38df11['substring'](_0x34148b,_0x34148b+0x2));_0x4ebc39>=0x3e&&(_0x4ebc39-=0x3e),_0x1d7829+=_0x1e38e4[_0x4ebc39];}return _0x1d7829;}function _0x3feb92(){const _0x2acd2e=_0xacc97d['split']('.');if(0x3!=_0x2acd2e['length'])return null;return _0x5f330d(_0x2acd2e[0x1]);function _0x5f330d(_0x4177a6){const _0x837099=_0x50342a(_0x4177a6);return _0x837099&&_0x2b8534()?_0x837099:null;function _0x2b8534(){const _0x54319e=_0x837099['jti'],_0x284cb7=window['parseInt'](_0x54319e['substring'](_0x54319e['length']-0x8),0x10),_0x354fc1={..._0x837099,'jti':_0x54319e['substring'](0x0,_0x54319e['length']-0x8)};return delete _0x354fc1['vc'],_0x1b5f65(_0x354fc1)==_0x284cb7;}}}async function _0x5e0038(){let _0x104090=!0x0;try{const [_0x43c598,_0x3f2e7b,_0x22f766]=_0xacc97d['split']('.');return _0x3bd966(_0x43c598),await _0x2f3001(_0x43c598,_0x3f2e7b,_0x22f766),_0x104090;}catch{return!0x1;}function _0x3bd966(_0x3fda95){const _0x1f2c52=_0x50342a(_0x3fda95);_0x1f2c52&&'ES256'==_0x1f2c52['alg']||(_0x104090=!0x1);}async function _0x2f3001(_0x4b87cc,_0xfa3eb3,_0x23029b){const _0x2eb19e=window['Uint8Array']['from'](_0x33dd22(_0x23029b),_0x1e1970=>_0x1e1970['charCodeAt'](0x0)),_0x11d534=new window['TextEncoder']()['encode'](_0x4b87cc+'.'+_0xfa3eb3),_0x409098=window['crypto']['subtle'];if(!_0x409098)return;const _0x462ff4=await _0x409098['importKey']('jwk',_0x50e5d0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x409098['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x462ff4,_0x2eb19e,_0x11d534)||(_0x104090=!0x1);}}function _0x50342a(_0x39d5fc){return _0x39d5fc['startsWith']('ey')?JSON['parse'](_0x33dd22(_0x39d5fc)):null;}function _0x33dd22(_0x8daba0){return window['atob'](_0x8daba0['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1b5f65(_0x5e03a0){let _0x411b7a=0x1505;function _0x17b380(_0x37e2c7){for(let _0x17cf34=0x0;_0x17cf34<_0x37e2c7['length'];_0x17cf34++){const _0x38cdf7=_0x37e2c7['charCodeAt'](_0x17cf34);_0x411b7a=(_0x411b7a<<0x5)+_0x411b7a+_0x38cdf7,_0x411b7a&=_0x411b7a;}}function _0x2e33c5(_0xa099e9){Array['isArray'](_0xa099e9)?_0xa099e9['forEach'](_0x2e33c5):_0xa099e9&&'object'==typeof _0xa099e9?Object['entries'](_0xa099e9)['sort']()['forEach'](([_0x9464f9,_0xff5e8d])=>{_0x17b380(_0x9464f9),_0x2e33c5(_0xff5e8d);}):_0x17b380(window['String'](_0xa099e9));}return _0x2e33c5(_0x5e03a0),_0x411b7a>>>0x0;}function _0x13edd9(_0xda7380){return _0xda7380['toString'](0x10)['padStart'](0x8,'0');}function _0x356de8(_0x31bff3){return _0x31bff3['split']('')['reverse']()['join']('');}function _0x52b866(){}_0x121c68(await _0x5d7468());}(this);}['destroy'](){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x4bf67a=this['editor'],_0x5e7797=_0x4bf67a['editing']['view'],_0x11d547=this['_getAttachedDomRoot']();if(!_0x11d547||!_0x11d547['hasChildNodes']())return void _0x4bf67a['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x7986a0,pageHeight:_0x2df4ab}=_0x4bf67a['config']['get']('pagination'),{top:_0x110890,left:_0x29c75a,bottom:_0x2104c1,right:_0x2e49df}=this['_configuredPaddings'];this['_pagesContainer']=new _0x57c9e3(_0x4bf67a['locale']);const _0x2c2f7b=this['_pagesContainer'];_0x2c2f7b['set']('class',''),_0x2c2f7b['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x7986a0,'width':_0x7986a0,'height':'calc(\x20'+_0x2df4ab+'\x20-\x20'+_0x110890+'\x20-\x20'+_0x2104c1+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x2e49df+'\x200\x20'+_0x29c75a,'columnGap':'calc('+_0x29c75a+'\x20+\x20'+_0x2e49df+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x2c2f7b['bindTemplate']['to']('class')}}),_0x2c2f7b['render'](),_0x11d547['parentNode']['insertBefore'](_0x2c2f7b['element'],_0x11d547['nextSibling']),this['listenTo'](_0x5e7797,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x39f052 of this['editor']['editing']['view']['domRoots']['values']())if(_0x39f052['ownerDocument']['body']['contains'](_0x39f052))return _0x39f052;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x5448ac=this['editor']['editing']['view'],_0x8fa061=this['_pagesContainer'],_0x420f9b=this['_getAttachedDomRoot']();if(!_0x420f9b||!_0x8fa061)return Promise['resolve']();for(_0x8fa061['class']=['ck-reset','ck-pagination-view',..._0x420f9b['classList']]['join']('\x20');_0x8fa061['element']['firstChild'];)_0x8fa061['element']['firstChild']['remove']();const _0x1dd159=Array['from'](_0x5448ac['domRoots']);_0x1dd159['sort'](([,_0x5c26e0],[,_0x329aa0])=>_0x5c26e0['compareDocumentPosition'](_0x329aa0)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x599c5f,_0x2dbc0a]of _0x1dd159){const _0x487df4=_0x2dbc0a['cloneNode'](!0x0);'attributeStyleMap'in _0x487df4&&_0x487df4['attributeStyleMap']['clear'](),_0x487df4['dataset']['rootName']=_0x599c5f,_0x487df4['className']='ck-content\x20ck-pagination_enabled',_0x487df4['removeAttribute']('id'),_0x487df4['tabIndex']=-0x1,_0x8fa061['element']['append'](_0x487df4);}const _0x254ff6=Array['from'](_0x8fa061['element']['querySelectorAll']('img'));return function(_0x3834ea){return Promise['all'](_0x3834ea['map'](_0x439023=>Promise['race']([k(_0x439023),v(0x3e8)])));}(_0x254ff6)['then'](()=>{for(const _0x2ca435 of _0x254ff6['filter'](_0x1b6dbb=>!_0x1b6dbb['closest']('table')))if(_0x2ca435['offsetParent']){const _0x41e596=_0x2f5a5c['window']['getComputedStyle'](_0x2ca435),_0x39f32c=_0x2f5a5c['document']['createElement']('span');for(const _0x680cdc of _0x41e596)_0x39f32c['style']['setProperty'](_0x680cdc,_0x41e596[_0x680cdc]);_0x39f32c['style']['backgroundImage']='url(\x20'+_0x2ca435['src']+'\x20)',_0x39f32c['style']['breakInside']='avoid','PICTURE'==_0x2ca435['parentElement']?.['tagName']?_0x2ca435['parentElement']['replaceWith'](_0x39f32c):_0x2ca435['replaceWith'](_0x39f32c);}return new Promise(_0x3a288f=>_0x2f5a5c['window']['requestAnimationFrame'](()=>_0x3a288f()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x4ee4a0=this['_pagesContainer']['element'];if(!_0x4ee4a0['ownerDocument']['body']['contains'](_0x4ee4a0))return;const _0x4530e9=new _0x2dd926(_0x4ee4a0)['excludeScrollbarsAndBorders'](),_0x513087=Math['floor'](_0x4530e9['width']+0x64),_0x5e3f96=_(_0x4ee4a0,Math['floor'](_0x4530e9['left']-_0x4ee4a0['scrollLeft']),_0x513087,_0x4530e9['height'])['map'](_0x4961f7=>this['_mapPageStarterInfoToPageBreakInfo'](_0x4961f7))['filter'](_0x443c5d=>!0x1!==_0x443c5d);_0x5e3f96['every'](_0x1a74c6=>!!_0x1a74c6)&&(this['pageBreaks']=_0x5e3f96);}['_mapPageStarterInfoToPageBreakInfo'](_0x360814){const _0x28b707=this['editor']['editing']['view'],_0x6c2364=this['editor']['editing']['mapper'],_0x3d0de1=_0x28b707['domConverter'],_0xb0b87a=_0x360814['path']['shift'](),_0x2f5a79=this['_pagesContainer']['element']['childNodes'][_0xb0b87a]['dataset']['rootName'],_0x51a911=_0x28b707['getDomRoot'](_0x2f5a79);if(!_0x51a911)return null;const _0x291fce=function(_0x589089,_0x43d6df){let _0x10acb4=_0x589089;for(const _0x5ba1b3 of _0x43d6df['path']){if(!_0x10acb4)return null;_0x10acb4=_0x10acb4['childNodes'][_0x5ba1b3];}return _0x10acb4;}(_0x51a911,_0x360814);if(!_0x291fce)return null;const _0x1580a6=_0x3d0de1['domPositionToView'](_0x291fce,_0x360814['textOffset']||0x0);return _0x1580a6?'manual'==_0x360814['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x1580a6,_0x291fce):'text'==_0x360814['type']&&_0x6c2364['toModelPosition'](_0x1580a6)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x1580a6,_0x291fce,_0x360814['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x1580a6,_0x291fce,_0x360814['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x33c8a4,_0x5cf251){const _0x296af2=this['editor']['model'],_0x36b343=this['editor']['editing']['mapper']['toModelElement'](_0x33c8a4['parent']);return new P({'type':'manual','modelRange':_0x296af2['createRangeOn'](_0x36b343),'domNode':_0x5cf251,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x2b6c16,_0x3aa171,_0x33fc55){const _0x5ad58d=this['editor']['model'],_0x372e2e=this['editor']['editing']['mapper'],_0x22564e=this['editor']['editing']['view']['domConverter'];if(_0x33fc55>=_0x3aa171['length'])return null;const _0x33291b=_0x372e2e['toModelPosition'](_0x2b6c16),_0x1ec9f7=_0x5ad58d['createRange'](_0x33291b),_0x1c5313=_0x372e2e['findMappedViewAncestor'](_0x2b6c16);return new P({'type':'text','modelRange':_0x1ec9f7,'domNode':_0x3aa171,'offset':y(_0x3aa171,_0x33fc55,_0x22564e['mapViewToDom'](_0x1c5313))});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x54e3b5,_0x429676,_0x384210){const _0x1db707=this['editor']['model'],_0x12cd2e=this['editor']['editing'],_0x254760=_0x12cd2e['mapper'],_0x3b95ae=_0x12cd2e['view']['domConverter'],_0x3c3b2c=_0x254760['findMappedViewAncestor'](_0x54e3b5),_0x13fb21=_0x254760['toModelElement'](_0x3c3b2c);if(!_0x13fb21||_0x13fb21['is']('rootElement'))return!0x1;const _0x4c47e8=function(_0x10a625){const _0x57aa6c=_0x10a625['parent'],_0x28c4f5=_0x57aa6c['root']['document']['model'],_0x1d26ba=_0x57aa6c['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x40683b=null;for(const _0x302fea of _0x1d26ba){if(_0x302fea['is']('rootElement'))return _0x40683b;if(!_0x28c4f5['createPositionBefore'](_0x302fea)['isTouching'](_0x10a625))return _0x40683b;_0x40683b=_0x302fea;}}(_0x1db707['createPositionBefore'](_0x13fb21))||_0x13fb21;let _0x27a857=_0x254760['toViewElement'](_0x4c47e8),_0x320bf8=_0x1db707['createRangeOn'](_0x4c47e8);const _0x5edd1c=_0x1db707['createPositionBefore'](_0x4c47e8)['nodeBefore'];if(_0x5edd1c&&_0x5edd1c['is']('element','imageBlock')){const _0x3615fc=_0x254760['toViewElement'](_0x5edd1c),_0x126626=_0x3b95ae['mapViewToDom'](_0x3615fc),_0x806bf0=_0x2f5a5c['window']['getComputedStyle'](_0x126626)['float'];'left'!=_0x806bf0&&'right'!=_0x806bf0||(_0x320bf8=_0x1db707['createRangeOn'](_0x5edd1c));}for(;_0x27a857['parent']!==_0x27a857['root']&&0x0===_0x27a857['index'];)_0x27a857=_0x27a857['parent'];const _0x510142=new _0x2dd926(K(_0x429676)?_0x429676:L(_0x429676)),_0x13b7cf=_0x384210?_0x510142['height']-_0x384210:0x0,_0x438b14=_0x3b95ae['mapViewToDom'](_0x27a857),_0x3e1fc2=new _0x2dd926(_0x438b14);return new P({'type':'element','modelRange':_0x320bf8,'domNode':_0x438b14,'offset':Math['round'](_0x13b7cf)||_0x3c3b2c!=b(_0x54e3b5)?_0x13b7cf+_0x510142['top']-_0x3e1fc2['top']:0x0});}get['_configuredPaddings'](){const _0x585a32=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x585a32);}static['_findPageStarterInfos'](_0x303465,_0x57ba99,_0x2cb81c,_0x2d73ce,_0x20978c){return _(_0x303465,_0x57ba99,_0x2cb81c,_0x2d73ce,_0x20978c);}},P=class{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x20be79,modelRange:_0x388390,domNode:_0x49fb94,offset:_0x498cac}){this['type']=_0x20be79,this['modelRange']=_0x388390,this['_domNode']=_0x49fb94,this['_offset']=_0x498cac;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x51e83e=new _0x2dd926(K(this['_domNode'])?this['_domNode']:L(this['_domNode']));return'manual'==this['type']?_0x51e83e['top']+_0x51e83e['height']/0x2:_0x51e83e['top']+this['_offset'];}};function y(_0xb7da4,_0x4f3130,_0x43b688){const _0x170a12=L(_0xb7da4),_0x552c32=function(_0x2b46d2){const _0x42bc17=_0x2f5a5c['document']['createRange']();return _0x42bc17['selectNodeContents'](_0x2b46d2),_0x42bc17;}(_0x43b688);let _0x105530;_0x105530=0x0==_0x4f3130?N(_0x552c32['startContainer'],_0x552c32['startOffset'],_0xb7da4['parentNode'],Array['from'](_0xb7da4['parentNode']['childNodes'])['indexOf'](_0xb7da4)):N(_0x552c32['startContainer'],_0x552c32['startOffset'],_0xb7da4,_0x4f3130);const _0xb6217b=N(_0xb7da4,_0x4f3130,_0x552c32['endContainer'],_0x552c32['endOffset']),_0x299361=new _0x2dd926(_0x105530)['bottom'];return(new _0x2dd926(_0xb6217b)['top']+_0x299361)/0x2-new _0x2dd926(_0x170a12)['top'];}function b(_0x2f6cc6){let _0x2b51a2=_0x2f6cc6['parent'];for(;_0x2b51a2['is']('$text')||_0x2b51a2['is']('attributeElement');)_0x2b51a2=_0x2b51a2['parent'];return _0x2b51a2;}function k(_0x1dfb37){return _0x1dfb37['hasAttribute']('width')&&_0x1dfb37['hasAttribute']('height')?Promise['resolve']():new Promise(_0x79d2a9=>{function _0x3aa769(){_0x1dfb37['removeEventListener']('load',_0x3aa769),_0x1dfb37['removeEventListener']('error',_0x3aa769),_0x79d2a9();}_0x1dfb37['complete']?_0x79d2a9():(_0x1dfb37['addEventListener']('load',_0x3aa769),_0x1dfb37['addEventListener']('error',_0x3aa769));});}function v(_0x4219d9){return new Promise(_0x5b6639=>setTimeout(_0x5b6639,_0x4219d9));}function L(_0x1b2d75){const _0x314c31=_0x2f5a5c['document']['createRange']();return _0x314c31['selectNode'](_0x1b2d75),_0x314c31;}function x(_0x1cd864,_0x4ab7d1,_0x75dc92){const _0x5a392e=_0x2f5a5c['document']['createRange']();return _0x5a392e['setStart'](_0x1cd864,_0x4ab7d1),_0x5a392e['setEnd'](_0x1cd864,_0x75dc92),_0x5a392e;}function N(_0x35ae67,_0x3a2119,_0x2f3736,_0x27e30e){const _0x2007c4=_0x2f5a5c['document']['createRange']();return _0x2007c4['setStart'](_0x35ae67,_0x3a2119),_0x2007c4['setEnd'](_0x2f3736,_0x27e30e),_0x2007c4;}function _(_0x30eb90,_0x20c8ce,_0x1b44e6,_0x477193,_0x4b0c5b){const _0x65e66c=[];for(const [_0x42dc4a,_0x449b83]of _0x30eb90['childNodes']['entries']()){let _0x5e5e44=[];K(_0x449b83)&&_0x449b83['offsetParent']&&['static','relative']['includes'](_0x2f5a5c['window']['getComputedStyle'](_0x449b83)['position'])?_0x5e5e44=E(_0x449b83,_0x42dc4a,_0x20c8ce,_0x1b44e6,_0x477193,_0x4b0c5b):O(_0x449b83)&&(_0x5e5e44=S(_0x449b83,_0x42dc4a,_0x20c8ce,_0x1b44e6,_0x4b0c5b)),_0x5e5e44['length']&&(_0x65e66c['push'](..._0x5e5e44),_0x20c8ce+=_0x5e5e44['length']*_0x1b44e6,_0x4b0c5b=!0x1);}return _0x65e66c;}function E(_0xf71b3f,_0x55169f,_0x2c00f3,_0x3b20fe,_0x27b7c8,_0xeb79f3){const _0x5e6889=[];var _0x3ecd6e;if((_0x3ecd6e=_0xf71b3f['previousSibling'])&&K(_0x3ecd6e)&&Boolean(_0x3ecd6e['classList']['contains']('page-break')||_0x3ecd6e['closest']('.page-break'))&&(_0x5e6889['push']({'type':'manual','offset':0x0,'path':[_0x55169f-0x1]}),_0xeb79f3=!0x0),'table-row'==_0x2f5a5c['window']['getComputedStyle'](_0xf71b3f)['display']){let _0x447ed6=0x0,_0x3bf1a7=!0x1;for(const _0x59bb2d of _0xf71b3f['getClientRects']())_0x447ed6+=_0x59bb2d['height'],_0x59bb2d['left']>=_0x2c00f3&&(_0x3bf1a7=!0x0);if(_0x447ed6<_0x27b7c8&&_0x3bf1a7)return _0xeb79f3||_0x5e6889['push']({'type':'element','offset':0x0,'path':[_0x55169f]}),_0x5e6889;}const _0x285509=_0xf71b3f['closest']('figure.image');if(_0x285509&&function(_0x3f5906){let _0x1d27eb=!0x1;const _0x18462e=_0x3f5906['parentElement']['dataset']['rootName'],_0x490dfb=_0x3f5906['nextElementSibling'],_0x13eee6=_0x3f5906['previousElementSibling'],_0x2262ad=_0x490dfb&&_0x2f5a5c['window']['getComputedStyle'](_0x490dfb)['float'],_0x186afa=_0x490dfb&&'ck-fake-selection-container'===_0x490dfb['className'];return!_0x18462e||_0x490dfb||_0x13eee6||(_0x1d27eb=!0x0),_0x18462e&&!_0x13eee6&&_0x186afa&&(_0x1d27eb=!0x0),_0x18462e&&!_0x13eee6&&'none'!==_0x2262ad&&(_0x1d27eb=!0x0),!_0x1d27eb;}(_0x285509)){const _0x15f10c=_0x2f5a5c['window']['getComputedStyle'](_0x285509)['float'];if('left'==_0x15f10c||'right'==_0x15f10c)return _0x5e6889;}const _0x416d15=_(_0xf71b3f,_0x2c00f3,_0x3b20fe,_0x27b7c8,_0xeb79f3);if(_0x416d15['length']){for(const _0x1b06d of _0x416d15)_0x5e6889['push']({'type':_0x1b06d['type'],'offset':_0x1b06d['offset'],'textOffset':_0x1b06d['textOffset'],'path':[_0x55169f,..._0x1b06d['path']]}),_0x2c00f3+=_0x3b20fe,_0xeb79f3=!0x1;return _0x5e6889;}return _0x5e6889['push'](...function(_0x47e06b,_0x5220d1,_0x38294f,_0x21c2b4,_0x4e4abf){const _0x3c81b0=[];if('table-cell'==_0x2f5a5c['window']['getComputedStyle'](_0x47e06b)['display'])return[];const _0x5b4273=[];for(const _0x3d7bbd of _0x47e06b['getClientRects']())if(_0x3d7bbd['left']>=_0x38294f){for(const _0x351b6e of _0x5b4273)_0x351b6e['height']+=_0x3d7bbd['height'];_0x5b4273['push']({'height':_0x3d7bbd['height']}),_0x38294f+=_0x21c2b4;}for(const _0x4e9297 of _0x5b4273)_0x4e4abf||_0x3c81b0['push']({'type':'element','offset':_0x4e9297['height'],'textOffset':0x0,'path':[_0x5220d1]}),_0x4e4abf=!0x1;return _0x3c81b0;}(_0xf71b3f,_0x55169f,_0x2c00f3,_0x3b20fe,_0xeb79f3)),_0x5e6889;}function S(_0x52a7a7,_0xa000fa,_0x2134b7,_0x466e49,_0x30132f){const _0x20f074=L(_0x52a7a7),_0x41616a=[];let _0x3d7f14=0x0;for(const _0x52771d of _0x20f074['getClientRects']())if(_0x52771d['left']>=_0x2134b7){const _0x4a6ca9=R(_0x52a7a7,_0x3d7f14,_0x2134b7,_0x466e49);_0x30132f||_0x41616a['push']({'type':'text','path':[_0xa000fa],'textOffset':_0x4a6ca9}),_0x3d7f14=_0x4a6ca9,_0x2134b7+=_0x466e49,_0x30132f=!0x1;}return _0x41616a;}function R(_0x39421,_0x5dc402,_0x3b5582,_0x5c7cbe){let _0xc51c8f=_0x5dc402,_0x4799df=_0x39421['length'];for(;_0x4799df-_0xc51c8f>0x1;){const _0x485a9b=Math['ceil']((_0xc51c8f+_0x4799df)/0x2);I(x(_0x39421,_0xc51c8f,_0x485a9b),_0x3b5582,_0x5c7cbe)?_0x4799df=_0x485a9b:_0xc51c8f=_0x485a9b;}return _0xc51c8f;}function I(_0x17204b,_0x22fa9e,_0x5244b2){for(const _0x2b5fb5 of _0x17204b['getClientRects']())if(_0x2b5fb5['left']>=_0x22fa9e&&_0x2b5fb5['left']<_0x22fa9e+_0x5244b2)return!0x0;return!0x1;}function K(_0x5504ce){return _0x5504ce['nodeType']==Node['ELEMENT_NODE'];}function O(_0x45e074){return _0x45e074['nodeType']==Node['TEXT_NODE'];}const A=/* #__PURE__ -- @preserve */
24
+ _0x4f6000('px');var U=class extends _0x57c9e3{constructor(){super();const _0x4739d9=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x4739d9['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x4739d9['if']('isVisible','ck-hidden',_0x1baea3=>!_0x1baea3)],'style':{'left':_0x4739d9['to']('left',_0x178a0f=>A(_0x178a0f)),'top':_0x4739d9['to']('top',_0x2c1ccb=>A(_0x2c1ccb)),'width':_0x4739d9['to']('width',_0x3e3aa4=>A(_0x3e3aa4))}}});}},C=class{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x307327){this['_viewCollection']=_0x307327['ui']['view']['body'];}['destroy'](){for(const _0x297609 of this['_hiddenLines'])_0x297609['destroy']();}['cleanLines'](){for(const _0x5074fd of this['_visibleLines'])_0x5074fd['isVisible']=!0x1,this['_hiddenLines']['add'](_0x5074fd);this['_visibleLines']['clear']();}['showLine'](_0x4c4cb6,_0x2940af,_0x585e65,_0x126b07){let _0x1620eb;this['_hiddenLines']['size']?(_0x1620eb=_0x1cb100(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x1620eb)):_0x1620eb=new U(),_0x1620eb['set']({'pageNumber':_0x126b07,'left':_0x4c4cb6,'top':_0x2940af,'width':_0x585e65}),_0x1620eb['isVisible']=!0x0,this['_viewCollection']['has'](_0x1620eb)||this['_viewCollection']['add'](_0x1620eb),this['_visibleLines']['add'](_0x1620eb);}['setViewCollection'](_0x578f9e){for(const _0x4faab0 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x4faab0)&&this['_viewCollection']['remove'](_0x4faab0);this['_viewCollection']=_0x578f9e;}};const D='ck-pagination_enabled';var B=class extends _0x5b4aab{['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 C(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'](D),this['on']('change:isEnabled',(_0x23ad9a,_0x3da806,_0x62ef91)=>{_0x62ef91||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x62ef91);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x203f9c){if(!this['isEnabled'])return;const _0xffe6cf=_0x203f9c>0x1?this['_getPageBreakLineOffset'](_0x203f9c-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0xffe6cf-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x43205f['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x15af0f=this['editor'],_0x1922fe=this['_getAttachedDomRoot']();_0x1922fe?(this['_scrollableEditingRootDomAncestor']&&_0x15af0f['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x7a43a6){let _0x4dca03=_0x7a43a6;do{_0x4dca03=_0x4dca03['parentElement'];const _0x19b47d=_0x2f5a5c['window']['getComputedStyle'](_0x4dca03)['overflowY'];if('auto'==_0x19b47d||'scroll'==_0x19b47d)break;}while('BODY'!=_0x4dca03['tagName']);return _0x4dca03;}(_0x1922fe),_0x15af0f['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x28d1d6(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x15af0f['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x3ae142=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x3ae142['ui']['view']['listenTo'](_0x2f5a5c['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x3ae142['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x4c446d of this['editor']['editing']['view']['domRoots']['values']())if(_0x4c446d['ownerDocument']['body']['contains'](_0x4c446d))return _0x4c446d;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x5240be=this['_getAttachedDomRoot'](),_0x2374e5=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x5240be||0x1==_0x2374e5['length'])return void(this['pageNumber']=0x1);const _0x44c93d=new _0x2dd926(_0x5240be)['excludeScrollbarsAndBorders'](),_0x2dbadb=new _0x2dd926(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x410524=_0x2dbadb['top']+_0x2dbadb['height']/0x3;let _0x102b75=!0x1;const _0x12f3b9=[];for(let _0xa6ce64=0x1;_0xa6ce64<_0x2374e5['length'];_0xa6ce64++){const _0xd654c8=this['_getPageBreakLineOffset'](_0xa6ce64,_0x2dbadb);if(!_0xd654c8)continue;const _0x35682b=_0x2dbadb['top']+_0xd654c8-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x12f3b9['push']({'pageOffsetTop':_0x35682b,'domRootRect':_0x44c93d,'domScrollableRect':_0x2dbadb,'pageNumber':_0xa6ce64}),_0x35682b>_0x410524&&!_0x102b75&&(this['pageNumber']=_0xa6ce64,_0x102b75=!0x0);}this['_renderPageBreakLines'](_0x12f3b9),_0x102b75||(this['pageNumber']=_0x2374e5['length']);}['_renderPageBreakLines'](_0x1604fd){const {scrollX:_0x1dab2d,scrollY:_0x401225}=_0x2f5a5c['window'];if(_0x1604fd['length']){for(const {domScrollableRect:_0x4e0c33,pageOffsetTop:_0x5d14c7,domRootRect:_0x477d0d,pageNumber:_0x58274f}of _0x1604fd)_0x4e0c33['top']<_0x5d14c7&&_0x5d14c7<_0x4e0c33['bottom']&&this['linesRepository']['showLine'](_0x477d0d['left']+_0x1dab2d,_0x5d14c7+_0x401225,_0x477d0d['width'],_0x58274f+0x1);}}['_getPageBreakLineOffset'](_0x33b8bb,_0x15480b=null){const _0x23c47b=this['_paginationLookupPlugin']['pageBreaks'][_0x33b8bb]['offset'];return _0x23c47b?(_0x15480b||(_0x15480b=new _0x2dd926(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x23c47b-_0x15480b['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x36bdbb,_0x25a4e8=!0x0){const _0x2d474f=this['editor']['editing']['view'];_0x2d474f['change'](_0x771ad5=>{for(const _0x5224df of _0x2d474f['document']['roots'])_0x25a4e8?_0x771ad5['addClass'](_0x36bdbb,_0x5224df):_0x771ad5['removeClass'](_0x36bdbb,_0x5224df);});}};function T(_0x5a1274,_0x1eb401,..._0x43e0fc){const t=_0x5a1274['t'];switch(_0x1eb401){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)',..._0x43e0fc);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 _0x1eb401;}}var G=class extends _0x5b4aab{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,B];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x4c144f=this['editor']['plugins']['get']('Pagination'),_0x50b92d=this['editor']['plugins']['get'](w),_0x27420a=this['editor']['plugins']['get'](B);this['bind']('isEnabled')['to'](_0x4c144f),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x27420a),this['listenTo'](_0x50b92d,'change:pageBreaks',(_0x31782c,_0x153d3b,_0x330d86,_0x2208a8)=>{this['totalPages']=_0x330d86['length'],this['_updatePageBreakMarkers'](_0x330d86,_0x2208a8);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4bc0fb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d527a;for(const _0x86e18 in _0x4bc0fb){const _0x4adb5e=_0x86e18,_0x3ce7b2=_0x4bc0fb[_0x4adb5e];if('paginationLicenseKeyValid'==_0x3ce7b2||'paginationLicenseKeyInvalid'==_0x3ce7b2||'paginationLicenseKeyExpired'==_0x3ce7b2||'paginationLicenseKeyDomainLimit'==_0x3ce7b2||'paginationLicenseKeyNotAllowed'==_0x3ce7b2||'paginationLicenseKeyEvaluationLimit'==_0x3ce7b2||'paginationLicenseKeyUsageLimit'==_0x3ce7b2){delete _0x4bc0fb[_0x4adb5e],_0x3d527a=_0x3ce7b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x3d527a&&_0x4bc0fb['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x3d527a&&_0x4bc0fb['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x3d527a&&_0x4bc0fb['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x3d527a&&_0x4bc0fb['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x3d527a&&_0x4bc0fb['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x3d527a&&_0x4bc0fb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x58e0b3){this['isEnabled']&&this['editor']['plugins']['get'](B)['scrollToPage'](this['_validatePageNumber'](_0x58e0b3));}['moveSelectionToPage'](_0x58eeea){if(!this['isEnabled'])return;const _0x430a42=this['editor'],_0x5290c0=this['editor']['plugins']['get'](w)['pageBreaks'][_0x58eeea-0x1];_0x5290c0&&_0x430a42['model']['change'](_0x1b90b9=>{switch(_0x5290c0['type']){case'manual':{const _0x10dd7e=_0x430a42['model']['schema']['getNearestSelectionRange'](_0x5290c0['modelRange']['end'],'forward');_0x1b90b9['setSelection'](_0x10dd7e);break;}case'element':{const _0x497778=_0x430a42['model']['schema']['getNearestSelectionRange'](_0x5290c0['modelRange']['start'],'forward');_0x1b90b9['setSelection'](_0x497778);break;}case'text':{const _0x8500e1=_0x5290c0['modelRange']['start'];if(_0x8500e1['textNode']&&'\x20'===_0x8500e1['textNode']['data'][_0x8500e1['offset']]){const _0x49b215=_0x1b90b9['createPositionAt'](_0x8500e1['parent'],_0x8500e1['offset']+0x1);_0x1b90b9['setSelection'](_0x49b215);}else _0x1b90b9['setSelection'](_0x5290c0['modelRange']);}}_0x430a42['editing']['view']['focus']();});}['goToNextPage'](){const _0x369d59=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x369d59),this['scrollToPage'](_0x369d59);}['goToPreviousPage'](){const _0x1e0652=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x1e0652),this['scrollToPage'](_0x1e0652);}['_updatePageBreakMarkers'](_0x4d9696,_0xa70cd8){const _0x5195b0=this['editor']['model'];this['isEnabled']&&_0x5195b0['change'](_0x14c216=>{for(let _0x35196f=0x1;_0x35196f<_0x4d9696['length'];_0x35196f++){const _0x597858=_0x4d9696[_0x35196f]['modelRange'],_0x5a3aae='pagination:'+(_0x35196f+0x1);_0x5195b0['markers']['has'](_0x5a3aae)?_0x14c216['updateMarker'](_0x5a3aae,{'range':_0x597858}):_0x14c216['addMarker'](_0x5a3aae,{'range':_0x597858,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x4cf8b4=_0x4d9696['length'];_0x4cf8b4<_0xa70cd8['length'];_0x4cf8b4++){const _0x3d40ea='pagination:'+(_0x4cf8b4+0x1);_0x5195b0['markers']['has'](_0x3d40ea)&&_0x14c216['removeMarker'](_0x3d40ea);}});}['_setUpDataDowncastConversion'](){this['editor']['conversion']['for']('dataDowncast')['add'](_0x527ef2=>{_0x527ef2['on']('addMarker:pagination',(_0x11f430,{markerRange:_0x54efc8,markerName:_0x52103f},_0x584d2b)=>{if(!_0x584d2b['options']['pagination'])return;if(!_0x584d2b['consumable']['consume'](_0x54efc8,_0x11f430['name']))return;const _0x3f7d34=_0x54efc8['getContainedElement']();let _0x4e3e00=_0x3f7d34?_0x584d2b['mapper']['toViewElement'](_0x3f7d34):null;if(!_0x4e3e00){const _0x21024c=_0x54efc8['start'];if(_0x584d2b['schema']['checkChild'](_0x21024c,'$text')){const _0x134f10=_0x584d2b['mapper']['toViewPosition'](_0x21024c);_0x4e3e00=_0x584d2b['writer']['createContainerElement']('span'),_0x4e3e00['getFillerOffset']=()=>null,_0x584d2b['writer']['insert'](_0x134f10,_0x4e3e00);}else{const _0x515184=_0x21024c['nodeAfter'];_0x4e3e00=_0x584d2b['mapper']['toViewElement'](_0x515184);}}for(;_0x4e3e00['parent']!==_0x4e3e00['root']&&0x0===_0x4e3e00['index'];)_0x4e3e00=_0x4e3e00['parent'];const _0x35a3d7=_0x52103f['substring'](0xb);_0x4e3e00['hasClass']('page-break')||(_0x584d2b['writer']['setStyle']('page-break-before','always',_0x4e3e00),_0x584d2b['writer']['setAttribute']('data-pagination-page',_0x35a3d7,_0x4e3e00),_0x584d2b['mapper']['bindElementToMarker'](_0x4e3e00,_0x52103f)),_0x11f430['stop']();});});}['_setupKeystrokes'](){const _0x44cdf0=this['editor'];_0x44cdf0['keystrokes']['set']('Shift+Pageup',(_0x408412,_0xecf00)=>{this['goToPreviousPage'](),_0xecf00();}),_0x44cdf0['keystrokes']['set']('Shift+Pagedown',(_0x723ec1,_0x5d9980)=>{this['goToNextPage'](),_0x5d9980();}),_0x44cdf0['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':T(_0x44cdf0['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':T(_0x44cdf0['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':T(_0x44cdf0['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2e725e){return _0x2e725e<0x1&&(_0x2e725e=0x1),_0x2e725e>this['totalPages']&&(_0x2e725e=this['totalPages']),_0x2e725e;}},V=class extends _0x57c9e3{['pageNumberView'];constructor(_0x1caf51){super(_0x1caf51);const _0x3310a5=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x453be9(_0x1caf51,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x3c87c9=>T(_0x1caf51,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x3c87c9)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x3a6293=>!_0x3a6293),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x3310a5['if']('isEnabled','ck-disabled',_0xb153ac=>!_0xb153ac)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x3310a5['to']('totalPages')}]}]});}['render'](){super['render']();const _0x451684=this['pageNumberView']['element'],_0x434e61=_0x3eacbe=>{this['pageNumberView']['element']['value']=String(_0x3eacbe);};_0x434e61(this['pageNumber']),this['on']('change:pageNumber',(_0x337b1e,_0x166468,_0x5665de)=>{_0x434e61(_0x5665de);}),this['listenTo'](_0x451684,'keydown',(_0x5e648d,_0x18c562)=>{if('ArrowUp'===_0x18c562['key']||'ArrowDown'===_0x18c562['key'])return void _0x18c562['stopPropagation']();if(_0x18c562['keyCode']!==_0x1ee18d['enter'])return;_0x18c562['preventDefault']();const _0x16d5a6=_0x451684['valueAsNumber'];Number['isNaN'](_0x16d5a6)?_0x451684['value']=String(this['pageNumber']):(_0x451684['checkValidity']()?this['pageNumber']=_0x16d5a6:_0x16d5a6>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x451684['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x451684['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x451684,'blur',()=>{_0x451684['value']=String(this['pageNumber']);}),this['listenTo'](_0x451684,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}},M=class extends _0x5b4aab{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x10b912=this['editor'],_0x31624e=_0x10b912['plugins']['get']('PaginationEditing');_0x10b912['ui']['componentFactory']['add']('pageNavigation',_0x37c36f=>{const _0x4a3870=new V(_0x37c36f);return _0x4a3870['bind']('pageNumber')['to'](_0x31624e),_0x4a3870['bind']('totalPages')['to'](_0x31624e),_0x4a3870['bind']('isEnabled')['to'](_0x31624e),_0x4a3870['on']('navigation',(_0xf71218,_0x2af712)=>{_0x31624e['moveSelectionToPage'](_0x2af712),_0x31624e['scrollToPage'](_0x2af712);}),_0x4a3870;}),_0x10b912['ui']['componentFactory']['add']('nextPage',_0x4c1e40=>{const _0x599c2b=new _0x1f2151(_0x4c1e40);return _0x599c2b['isEnabled']=!0x0,_0x599c2b['label']=T(_0x10b912['locale'],'Go\x20to\x20next\x20page'),_0x599c2b['icon']=_0x41fd88,_0x599c2b['tooltip']=!0x0,_0x599c2b['keystroke']='Shift+PageDown',_0x599c2b['bind']('isEnabled')['to'](_0x31624e),this['listenTo'](_0x599c2b,'execute',()=>{_0x31624e['goToNextPage']();}),_0x599c2b;}),_0x10b912['ui']['componentFactory']['add']('previousPage',_0x3a713c=>{const _0x518197=new _0x1f2151(_0x3a713c);return _0x518197['isEnabled']=!0x0,_0x518197['label']=T(_0x10b912['locale'],'Go\x20to\x20previous\x20page'),_0x518197['icon']=_0x3581cd,_0x518197['tooltip']=!0x0,_0x518197['keystroke']='Shift+PageUp',_0x518197['bind']('isEnabled')['to'](_0x31624e),this['listenTo'](_0x518197,'execute',()=>{_0x31624e['goToPreviousPage']();}),_0x518197;});}},$=class extends _0x5b4aab{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[G,M];}constructor(_0x53b4b9){super(_0x53b4b9),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x112b4a=this['editor']['plugins']['get'](G);this['bind']('pageNumber')['to'](_0x112b4a),this['bind']('totalPages')['to'](_0x112b4a),_0x43205f['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x16fdf6){this['editor']['plugins']['get'](G)['scrollToPage'](_0x16fdf6);}};export{$ as Pagination,B 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
- */