@ckeditor/ckeditor5-pagination 48.2.0 → 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 _0x4a7287}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x240c9d,InputNumberView as _0x1717c8,ButtonView as _0x43d50a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0xe38cf1,global as _0x5085eb,Rect as _0x6ffb3,uid as _0x22c10a,toUnit as _0x4cb1cb,first as _0x2b41a7,env as _0x8b2868,ResizeObserver as _0x3a5c9f,keyCodes as _0x208ccb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1c152c}from'es-toolkit/compat';import{IconArrowDown as _0x47680a,IconArrowUp as _0x45c12f}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x4a7287{['_recalculatePageBreaksDebounced']=_0x1c152c(()=>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 _0xe38cf1('pagination-config-not-found',this['editor']['config']);const _0x396ea6=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x396ea6),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x31f4db,_0x94d996,_0x181c56)=>{_0x181c56&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x5b8017){const _0x200459=_0x3b2255([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]),_0x18bc8d=0xc82cb1e,_0x2a6b5a=0xc8540ce^_0x18bc8d,_0xfd33be=window[_0x3b2255([0x44,0x61,0x74,0x65])][_0x3b2255([0x6e,0x6f,0x77])](),_0x5b1b98=_0x5b8017[_0x3b2255([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b6ff3=new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1607d0=>{_0x5b1b98[_0x3b2255([0x6f,0x6e,0x63,0x65])](_0x3b2255([0x72,0x65,0x61,0x64,0x79]),_0x1607d0);}),_0x4bdb3f={[_0x3b2255([0x6b,0x74,0x79])]:_0x3b2255([0x45,0x43]),[_0x3b2255([0x75,0x73,0x65])]:_0x3b2255([0x73,0x69,0x67]),[_0x3b2255([0x63,0x72,0x76])]:_0x3b2255([0x50,0x2d,0x32,0x35,0x36]),[_0x3b2255([0x78])]:_0x3b2255([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]),[_0x3b2255([0x79])]:_0x3b2255([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]),[_0x3b2255([0x61,0x6c,0x67])]:_0x3b2255([0x45,0x53,0x32,0x35,0x36])},_0x134f72=_0x5b1b98[_0x3b2255([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b2255([0x67,0x65,0x74])](_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe44804(){let _0x56a356,_0x57f830=null,_0xcd5d61=null;try{if(_0x134f72==_0x3b2255([0x47,0x50,0x4c]))return _0x3b2255([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56a356=_0x36e3cc(),!_0x56a356)return _0x3b2255([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56a356[_0x3b2255([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcd5d61=_0x4f37ff(_0x56a356[_0x3b2255([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56a356[_0x3b2255([0x6a,0x74,0x69])])),await _0x432fe0()?_0x57f624()?_0x39abb7()?_0x3b2255([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe352c()?(_0x56a356[_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b2255([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57f830=_0xfc4b01(_0x3b2255([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x138970()):_0x3b2255([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b2255([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b2255([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b2255([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39abb7(){const _0x3849b0=[_0x3b2255([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b2255([0x74,0x72,0x69,0x61,0x6c])][_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a356[_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfd33be/0x3e8:0xe10*_0x2a6b5a;return _0x56a356[_0x3b2255([0x65,0x78,0x70])]<_0x3849b0;}function _0x57f624(){const _0x169ff7=_0x56a356[_0x3b2255([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x169ff7&&(!!_0x169ff7[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2255([0x2a]))||!!_0x169ff7[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2255([0x50,0x41,0x47])));}function _0xe352c(){const _0x9c47a=_0x56a356[_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9c47a||0x0==_0x9c47a[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4431d7}=new URL(window[_0x3b2255([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9c47a[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4431d7))return!0x0;const _0x3965cf=_0x4431d7[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e]));return _0x9c47a[_0x3b2255([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49f28b=>_0x49f28b[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2255([0x2a])))[_0x3b2255([0x6d,0x61,0x70])](_0x4fa349=>_0x4fa349[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e])))[_0x3b2255([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c01d6=>_0x1c01d6[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3965cf[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b2255([0x6d,0x61,0x70])](_0x59fd7c=>Array(_0x3965cf[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59fd7c[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b2255([0x66,0x69,0x6c,0x6c])](_0x59fd7c[0x0]===_0x3b2255([0x2a])?_0x3b2255([0x2a]):'')[_0x3b2255([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59fd7c))[_0x3b2255([0x73,0x6f,0x6d,0x65])](_0x1aa97a=>_0x3965cf[_0x3b2255([0x65,0x76,0x65,0x72,0x79])]((_0x329b7d,_0x32996f)=>_0x1aa97a[_0x32996f]===_0x329b7d||_0x1aa97a[_0x32996f]===_0x3b2255([0x2a])));}function _0x138970(){return _0x57f830&&_0xcd5d61?new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30a5f7,_0x36f547)=>{_0x57f830[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x30a5f7,_0x36f547),_0xcd5d61[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x3ac910=>{_0x3ac910!=_0x3b2255([0x56,0x61,0x6c,0x69,0x64])&&_0x30a5f7(_0x3ac910);},_0x36f547);}):_0x57f830||_0xcd5d61||_0x3b2255([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f37ff(_0x1eb542,_0x1a459d){return new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c50d=>{if(_0x49a09b())return _0x26c50d(_0x3b2255([0x56,0x61,0x6c,0x69,0x64]));_0x46da33(),_0x5b1b98[_0x3b2255([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b2255([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51fc41=!0x1;const _0x513f6d=_0x22c10a();function _0x185365(_0x26fd77){return!!_0x26fd77&&(typeof _0x26fd77===_0x3b2255([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26fd77===_0x3b2255([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26fd77[_0x3b2255([0x74,0x68,0x65,0x6e])]===_0x3b2255([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26fd77[_0x3b2255([0x63,0x61,0x74,0x63,0x68])]===_0x3b2255([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x268f82(_0x5f4a31){_0x27e620(_0x5f4a31)[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x525b06=>{if(!_0x525b06||_0x525b06[_0x3b2255([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b2255([0x6f,0x6b]))return _0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d5584(_0x8008b7(_0x513f6d+_0x1a459d))!=_0x525b06[_0x3b2255([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b2255([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x4d3d32=>(_0x5ca057(),_0x4d3d32),()=>{const _0x117844=_0x368f03();return null==_0x117844?(_0x5ca057(),_0x3b2255([0x56,0x61,0x6c,0x69,0x64])):_0x3b2255(_0xfd33be-_0x117844>(0x288e4f1e^_0x18bc8d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x26c50d)[_0x3b2255([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26c50d(_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3611d9=0xcb4259e^_0x18bc8d;function _0x5ca057(){const _0x436ab9=_0x3b2255([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d5584(_0x8008b7(_0x1eb542)),_0x1c488f=_0x5a69e7(_0x3d5584(window[_0x3b2255([0x4d,0x61,0x74,0x68])][_0x3b2255([0x63,0x65,0x69,0x6c])](_0xfd33be/_0x3611d9)));window[_0x3b2255([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b2255([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436ab9,_0x1c488f);}function _0x368f03(){const _0x1ae457=_0x3b2255([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d5584(_0x8008b7(_0x1eb542)),_0x30d287=window[_0x3b2255([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b2255([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ae457);return _0x30d287?window[_0x3b2255([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a69e7(_0x30d287),0x10)*_0x3611d9:null;}function _0x27e620(_0x5e567a){return new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4758a3,_0x2eaed4)=>{_0x5e567a[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x4758a3,_0x2eaed4),window[_0x3b2255([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2eaed4,0xc831fde^_0x18bc8d);});}}_0x5b1b98[_0x3b2255([0x6f,0x6e])](_0x3b2255([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x275fb8,_0x203eb5)=>{if(_0x203eb5[0x0]!=_0x1eb542)return _0x26c50d(_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x203eb5[0x1]={..._0x203eb5[0x1],[_0x3b2255([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x513f6d};},{[_0x3b2255([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b2255([0x68,0x69,0x67,0x68])}),_0x5b1b98[_0x3b2255([0x6f,0x6e])](_0x3b2255([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x259ffb=>{_0x185365(_0x259ffb[_0x3b2255([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51fc41=!0x0,_0x268f82(_0x259ffb[_0x3b2255([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b2255([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b2255([0x6c,0x6f,0x77])}),_0x5b6ff3[_0x3b2255([0x74,0x68,0x65,0x6e])](()=>{_0x51fc41||_0x26c50d(_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49a09b(){return _0x5b1b98[_0x3b2255([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b2255([0x76,0x69,0x65,0x77])][_0x3b2255([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b2255([0x61,0x75,0x74,0x6f]);}function _0x46da33(){_0x5b1b98[_0x3b2255([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b2255([0x76,0x69,0x65,0x77])][_0x3b2255([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b2255([0x61,0x75,0x74,0x6f]);}}function _0xfc4b01(_0x435fde){const _0x1e0a75=[new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562197=>setTimeout(_0x562197,0xc8bf5d2^_0x18bc8d)),_0x5b6ff3[_0x3b2255([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f2ac=>{let _0x231acf=0x0;_0x5b1b98[_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b2255([0x6f,0x6e])](_0x3b2255([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x509b6f,_0x36e693)=>{_0x36e693[0x0][_0x3b2255([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x231acf++,_0x231acf==(0xc82cef6^_0x18bc8d)&&(_0x36f2ac(),_0x509b6f[_0x3b2255([0x6f,0x66,0x66])]());});}))];return window[_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b2255([0x72,0x61,0x63,0x65])](_0x1e0a75)[_0x3b2255([0x74,0x68,0x65,0x6e])](()=>_0x435fde);}async function _0x2c5453(){await _0x5b6ff3,_0x5b1b98[_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b2255([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x256c4a,_0x5b1b98[_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b2255([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x256c4a,_0x5b1b98[_0x3b2255([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x436d52(_0x4767ed){const _0x26ef54=_0xc24494();_0x5b1b98[_0x26ef54]=_0x3b2255([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4767ed,_0x4767ed!=_0x3b2255([0x56,0x61,0x6c,0x69,0x64])&&_0x2c5453();}function _0xc24494(){const _0x2fb3b5=window[_0x3b2255([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b2255([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b2255([0x6e,0x6f,0x77])]())[_0x3b2255([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b2255([0x2e]),'');let _0x330661=_0x3b2255([0x49]);for(let _0x459fef=0x0;_0x459fef<_0x2fb3b5[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x459fef+=0x2){let _0x1a32a6=window[_0x3b2255([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fb3b5[_0x3b2255([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x459fef,_0x459fef+0x2));_0x1a32a6>=_0x200459[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a32a6-=_0x200459[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x330661+=_0x200459[_0x1a32a6];}return _0x330661;}function _0x36e3cc(){const _0x24b3a6=_0x134f72[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e]));if(0x3!=_0x24b3a6[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x203e21(_0x24b3a6[0x1]);function _0x203e21(_0x2158da){const _0x4f4d01=_0x3310da(_0x2158da);return _0x4f4d01&&_0xa418aa()?_0x4f4d01:null;function _0xa418aa(){const _0xb09ff=_0x4f4d01[_0x3b2255([0x6a,0x74,0x69])],_0x127624=window[_0x3b2255([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb09ff[_0x3b2255([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb09ff[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb852e={..._0x4f4d01,[_0x3b2255([0x6a,0x74,0x69])]:_0xb09ff[_0x3b2255([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb09ff[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb852e[_0x3b2255([0x76,0x63])],_0x8008b7(_0xb852e)==_0x127624;}}}async function _0x432fe0(){let _0x336e63=!0x0;try{const _0x545216=_0x134f72[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e])),[_0xd35e85,_0x2f1a8b,_0x17b328]=_0x545216;return _0x4ef418(_0xd35e85),await _0x25f7e6(_0xd35e85,_0x2f1a8b,_0x17b328),_0x336e63;}catch{return!0x1;}function _0x4ef418(_0x5c7938){const _0xa9df9c=_0x3310da(_0x5c7938);_0xa9df9c&&_0xa9df9c[_0x3b2255([0x61,0x6c,0x67])]==_0x3b2255([0x45,0x53,0x32,0x35,0x36])||(_0x336e63=!0x1);}async function _0x25f7e6(_0x384781,_0x2726c9,_0x137d2d){const _0x493e52=window[_0x3b2255([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b2255([0x66,0x72,0x6f,0x6d])](_0x52f7bd(_0x137d2d),_0x5018a9=>_0x5018a9[_0x3b2255([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3178ee=new window[(_0x3b2255([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b2255([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x384781+_0x3b2255([0x2e])+_0x2726c9),_0x455ca3=window[_0x3b2255([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b2255([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x455ca3)return;const _0x383e80=await _0x455ca3[_0x3b2255([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b2255([0x6a,0x77,0x6b]),_0x4bdb3f,{[_0x3b2255([0x6e,0x61,0x6d,0x65])]:_0x3b2255([0x45,0x43,0x44,0x53,0x41]),[_0x3b2255([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b2255([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b2255([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x455ca3[_0x3b2255([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b2255([0x6e,0x61,0x6d,0x65])]:_0x3b2255([0x45,0x43,0x44,0x53,0x41]),[_0x3b2255([0x68,0x61,0x73,0x68])]:{[_0x3b2255([0x6e,0x61,0x6d,0x65])]:_0x3b2255([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x383e80,_0x493e52,_0x3178ee)||(_0x336e63=!0x1);}}function _0x3310da(_0x3c3d88){return _0x3c3d88[_0x3b2255([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b2255([0x65,0x79]))?JSON[_0x3b2255([0x70,0x61,0x72,0x73,0x65])](_0x52f7bd(_0x3c3d88)):null;}function _0x52f7bd(_0x4cbace){return window[_0x3b2255([0x61,0x74,0x6f,0x62])](_0x4cbace[_0x3b2255([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b2255([0x2b]))[_0x3b2255([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b2255([0x2f])));}function _0x8008b7(_0x32899c){let _0x4f5476=0x1505;function _0x407651(_0x474fdf){for(let _0x4217e5=0x0;_0x4217e5<_0x474fdf[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4217e5++){const _0x4f3269=_0x474fdf[_0x3b2255([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4217e5);_0x4f5476=(_0x4f5476<<0x5)+_0x4f5476+_0x4f3269,_0x4f5476&=_0x4f5476;}}function _0x428f75(_0x27ebb5){Array[_0x3b2255([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27ebb5)?_0x27ebb5[_0x3b2255([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x428f75):_0x27ebb5&&typeof _0x27ebb5==_0x3b2255([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b2255([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27ebb5)[_0x3b2255([0x73,0x6f,0x72,0x74])]()[_0x3b2255([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x404078,_0x4867cd])=>{_0x407651(_0x404078),_0x428f75(_0x4867cd);}):_0x407651(window[_0x3b2255([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27ebb5));}return _0x428f75(_0x32899c),_0x4f5476>>>0x0;}function _0x3d5584(_0xc4822f){return _0xc4822f[_0x3b2255([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b2255([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b2255([0x30]));}function _0x5a69e7(_0x4fd972){return _0x4fd972[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b2255([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b2255([0x6a,0x6f,0x69,0x6e])]('');}function _0x256c4a(){}function _0x3b2255(_0x337d68){return _0x337d68['map'](_0x3cf43b=>String['fromCharCode'](_0x3cf43b))['join']('');}_0x436d52(await _0xe44804());}(this);}['destroy'](){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x545b9e=this['editor'],_0x38edde=_0x545b9e['editing']['view'],_0x2598da=this['_getAttachedDomRoot']();if(!_0x2598da||!_0x2598da['hasChildNodes']())return void _0x545b9e['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x102da3,pageHeight:_0x334559}=_0x545b9e['config']['get']('pagination'),{top:_0x5803a6,left:_0x118530,bottom:_0x589023,right:_0x8ce399}=this['_configuredPaddings'];this['_pagesContainer']=new _0x240c9d(_0x545b9e['locale']);const _0x4356be=this['_pagesContainer'];_0x4356be['set']('class',''),_0x4356be['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x102da3,'width':_0x102da3,'height':'calc(\x20'+_0x334559+'\x20-\x20'+_0x5803a6+'\x20-\x20'+_0x589023+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x8ce399+'\x200\x20'+_0x118530,'columnGap':'calc('+_0x118530+'\x20+\x20'+_0x8ce399+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x4356be['bindTemplate']['to']('class')}}),_0x4356be['render'](),_0x2598da['parentNode']['insertBefore'](_0x4356be['element'],_0x2598da['nextSibling']),this['listenTo'](_0x38edde,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2041a1 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2041a1['ownerDocument']['body']['contains'](_0x2041a1))return _0x2041a1;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x1adab4=this['editor']['editing']['view'],_0x4bf198=this['_pagesContainer'],_0x21ab45=this['_getAttachedDomRoot']();if(!_0x21ab45||!_0x4bf198)return Promise['resolve']();for(_0x4bf198['class']=['ck-reset','ck-pagination-view',..._0x21ab45['classList']]['join']('\x20');_0x4bf198['element']['firstChild'];)_0x4bf198['element']['firstChild']['remove']();const _0xf9088f=Array['from'](_0x1adab4['domRoots']);_0xf9088f['sort'](([,_0x2cf36a],[,_0x42d329])=>_0x2cf36a['compareDocumentPosition'](_0x42d329)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x436009,_0x51a53b]of _0xf9088f){const _0x1a72aa=_0x51a53b['cloneNode'](!0x0);'attributeStyleMap'in _0x1a72aa&&_0x1a72aa['attributeStyleMap']['clear'](),_0x1a72aa['dataset']['rootName']=_0x436009,_0x1a72aa['className']='ck-content\x20ck-pagination_enabled',_0x1a72aa['removeAttribute']('id'),_0x1a72aa['tabIndex']=-0x1,_0x4bf198['element']['append'](_0x1a72aa);}const _0x5e2d34=Array['from'](_0x4bf198['element']['querySelectorAll']('img'));return function(_0x22f867){return Promise['all'](_0x22f867['map'](_0x5dc04b=>Promise['race']([b(_0x5dc04b),k(0x3e8)])));}(_0x5e2d34)['then'](()=>{for(const _0x8e7c16 of _0x5e2d34['filter'](_0x3396a3=>!_0x3396a3['closest']('table')))if(_0x8e7c16['offsetParent']){const _0x3a6c09=_0x5085eb['window']['getComputedStyle'](_0x8e7c16),_0x5954d5=_0x5085eb['document']['createElement']('span');for(const _0x282ff4 of _0x3a6c09)_0x5954d5['style']['setProperty'](_0x282ff4,_0x3a6c09[_0x282ff4]);_0x5954d5['style']['backgroundImage']='url(\x20'+_0x8e7c16['src']+'\x20)',_0x5954d5['style']['breakInside']='avoid','PICTURE'==_0x8e7c16['parentElement']?.['tagName']?_0x8e7c16['parentElement']['replaceWith'](_0x5954d5):_0x8e7c16['replaceWith'](_0x5954d5);}return new Promise(_0x193ff1=>_0x5085eb['window']['requestAnimationFrame'](()=>_0x193ff1()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x2eea63=this['_pagesContainer']['element'];if(!_0x2eea63['ownerDocument']['body']['contains'](_0x2eea63))return;const _0xd1bc26=new _0x6ffb3(_0x2eea63)['excludeScrollbarsAndBorders'](),_0x5966f7=Math['floor'](_0xd1bc26['width']+0x64),_0x3b22b0=L(_0x2eea63,Math['floor'](_0xd1bc26['left']-_0x2eea63['scrollLeft']),_0x5966f7,_0xd1bc26['height'])['map'](_0x232612=>this['_mapPageStarterInfoToPageBreakInfo'](_0x232612))['filter'](_0x2fdbfc=>!0x1!==_0x2fdbfc);_0x3b22b0['every'](_0xe9ce97=>!!_0xe9ce97)&&(this['pageBreaks']=_0x3b22b0);}['_mapPageStarterInfoToPageBreakInfo'](_0x233fe9){const _0x2065e8=this['editor']['editing']['view'],_0x80daee=this['editor']['editing']['mapper'],_0x5c40b8=_0x2065e8['domConverter'],_0x2bb926=_0x233fe9['path']['shift'](),_0x411cc2=this['_pagesContainer']['element']['childNodes'][_0x2bb926]['dataset']['rootName'],_0x2153e9=_0x2065e8['getDomRoot'](_0x411cc2);if(!_0x2153e9)return null;const _0x417b1b=function(_0x58b859,_0x38de43){let _0x5ee7d7=_0x58b859;for(const _0x5d2393 of _0x38de43['path']){if(!_0x5ee7d7)return null;_0x5ee7d7=_0x5ee7d7['childNodes'][_0x5d2393];}return _0x5ee7d7;}(_0x2153e9,_0x233fe9);if(!_0x417b1b)return null;const _0xeda0dd=_0x5c40b8['domPositionToView'](_0x417b1b,_0x233fe9['textOffset']||0x0);return _0xeda0dd?'manual'==_0x233fe9['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0xeda0dd,_0x417b1b):'text'==_0x233fe9['type']&&_0x80daee['toModelPosition'](_0xeda0dd)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0xeda0dd,_0x417b1b,_0x233fe9['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0xeda0dd,_0x417b1b,_0x233fe9['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x539d6b,_0x4e5651){const _0x5431a6=this['editor']['model'],_0x4ffa28=this['editor']['editing']['mapper']['toModelElement'](_0x539d6b['parent']),_0x5afcbf=_0x5431a6['createRangeOn'](_0x4ffa28);return new PageBreakInfo({'type':'manual','modelRange':_0x5afcbf,'domNode':_0x4e5651,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x197182,_0x460dc2,_0xc3a45d){const _0xe5074e=this['editor']['model'],_0x124864=this['editor']['editing']['mapper'],_0x1ddfb4=this['editor']['editing']['view']['domConverter'];if(_0xc3a45d>=_0x460dc2['length'])return null;const _0x5c9e4a=_0x124864['toModelPosition'](_0x197182),_0x436566=_0xe5074e['createRange'](_0x5c9e4a),_0x1685bd=_0x124864['findMappedViewAncestor'](_0x197182),_0x3306e4=_0x1ddfb4['mapViewToDom'](_0x1685bd);return new PageBreakInfo({'type':'text','modelRange':_0x436566,'domNode':_0x460dc2,'offset':w(_0x460dc2,_0xc3a45d,_0x3306e4)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x2a4f2a,_0x55d032,_0x455f6c){const _0x32597b=this['editor']['model'],_0x466218=this['editor']['editing'],_0x30adfc=_0x466218['mapper'],_0x45cb48=_0x466218['view']['domConverter'],_0x4cf181=_0x30adfc['findMappedViewAncestor'](_0x2a4f2a),_0x180fce=_0x30adfc['toModelElement'](_0x4cf181);if(!_0x180fce||_0x180fce['is']('rootElement'))return!0x1;const _0x5617f9=function(_0x156815){const _0x44e91d=_0x156815['parent'],_0x190fd6=_0x44e91d['root']['document']['model'],_0x2deb68=_0x44e91d['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x4aca06=null;for(const _0x562746 of _0x2deb68){if(_0x562746['is']('rootElement'))return _0x4aca06;if(!_0x190fd6['createPositionBefore'](_0x562746)['isTouching'](_0x156815))return _0x4aca06;_0x4aca06=_0x562746;}}(_0x32597b['createPositionBefore'](_0x180fce)),_0x159206=_0x5617f9||_0x180fce;let _0x3f49cf=_0x30adfc['toViewElement'](_0x159206),_0x353ee2=_0x32597b['createRangeOn'](_0x159206);const _0x31f6c5=_0x32597b['createPositionBefore'](_0x159206)['nodeBefore'];if(_0x31f6c5&&_0x31f6c5['is']('element','imageBlock')){const _0x2c5bb7=_0x30adfc['toViewElement'](_0x31f6c5),_0x27ec9b=_0x45cb48['mapViewToDom'](_0x2c5bb7),_0x3df6ee=_0x5085eb['window']['getComputedStyle'](_0x27ec9b)['float'];'left'!=_0x3df6ee&&'right'!=_0x3df6ee||(_0x353ee2=_0x32597b['createRangeOn'](_0x31f6c5));}for(;_0x3f49cf['parent']!==_0x3f49cf['root']&&0x0===_0x3f49cf['index'];)_0x3f49cf=_0x3f49cf['parent'];const _0x3b60b7=new _0x6ffb3(S(_0x55d032)?_0x55d032:y(_0x55d032)),_0x1500e1=_0x455f6c?_0x3b60b7['height']-_0x455f6c:0x0,_0x57ff8d=_0x45cb48['mapViewToDom'](_0x3f49cf),_0x2543cb=new _0x6ffb3(_0x57ff8d);return new PageBreakInfo({'type':'element','modelRange':_0x353ee2,'domNode':_0x57ff8d,'offset':Math['round'](_0x1500e1)||_0x4cf181!=P(_0x2a4f2a)?_0x1500e1+_0x3b60b7['top']-_0x2543cb['top']:0x0});}get['_configuredPaddings'](){const _0x50d83e=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x50d83e);}static['_findPageStarterInfos'](_0x5ad484,_0x281752,_0x4f77e4,_0x566262,_0x38c49c){return L(_0x5ad484,_0x281752,_0x4f77e4,_0x566262,_0x38c49c);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x2ff46f,modelRange:_0x1921c5,domNode:_0x1be858,offset:_0x5434c3}){this['type']=_0x2ff46f,this['modelRange']=_0x1921c5,this['_domNode']=_0x1be858,this['_offset']=_0x5434c3;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x499116=new _0x6ffb3(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x499116['top']+_0x499116['height']/0x2:_0x499116['top']+this['_offset'];}}function w(_0x10ad0b,_0x25501e,_0x56c6d6){const _0x8930d5=y(_0x10ad0b),_0x4db028=function(_0x42392b){const _0x986fa8=_0x5085eb['document']['createRange']();return _0x986fa8['selectNodeContents'](_0x42392b),_0x986fa8;}(_0x56c6d6);let _0xf59786;_0xf59786=0x0==_0x25501e?x(_0x4db028['startContainer'],_0x4db028['startOffset'],_0x10ad0b['parentNode'],Array['from'](_0x10ad0b['parentNode']['childNodes'])['indexOf'](_0x10ad0b)):x(_0x4db028['startContainer'],_0x4db028['startOffset'],_0x10ad0b,_0x25501e);const _0x28a14e=x(_0x10ad0b,_0x25501e,_0x4db028['endContainer'],_0x4db028['endOffset']),_0x5dd106=new _0x6ffb3(_0xf59786)['bottom'];return(new _0x6ffb3(_0x28a14e)['top']+_0x5dd106)/0x2-new _0x6ffb3(_0x8930d5)['top'];}function P(_0x388aae){let _0x250aed=_0x388aae['parent'];for(;_0x250aed['is']('$text')||_0x250aed['is']('attributeElement');)_0x250aed=_0x250aed['parent'];return _0x250aed;}function b(_0x45a984){return _0x45a984['hasAttribute']('width')&&_0x45a984['hasAttribute']('height')?Promise['resolve']():new Promise(_0x3b93de=>{function _0xba9d25(){_0x45a984['removeEventListener']('load',_0xba9d25),_0x45a984['removeEventListener']('error',_0xba9d25),_0x3b93de();}_0x45a984['complete']?_0x3b93de():(_0x45a984['addEventListener']('load',_0xba9d25),_0x45a984['addEventListener']('error',_0xba9d25));});}function k(_0x184a4a){return new Promise(_0x517f8e=>setTimeout(_0x517f8e,_0x184a4a));}function y(_0x17fea4){const _0x144fc8=_0x5085eb['document']['createRange']();return _0x144fc8['selectNode'](_0x17fea4),_0x144fc8;}function v(_0x5aedc2,_0x2f8bcc,_0x4573d2){const _0x11a6da=_0x5085eb['document']['createRange']();return _0x11a6da['setStart'](_0x5aedc2,_0x2f8bcc),_0x11a6da['setEnd'](_0x5aedc2,_0x4573d2),_0x11a6da;}function x(_0x1dc234,_0x56267a,_0x2307e5,_0x5ab265){const _0x5c81b3=_0x5085eb['document']['createRange']();return _0x5c81b3['setStart'](_0x1dc234,_0x56267a),_0x5c81b3['setEnd'](_0x2307e5,_0x5ab265),_0x5c81b3;}function L(_0x299887,_0x39b7ba,_0x35d388,_0x54b923,_0xab007f){const _0x2ab630=[];for(const [_0xdfe77a,_0x3cf2a9]of _0x299887['childNodes']['entries']()){let _0x23ca51=[];S(_0x3cf2a9)&&_0x3cf2a9['offsetParent']&&['static','relative']['includes'](_0x5085eb['window']['getComputedStyle'](_0x3cf2a9)['position'])?_0x23ca51=N(_0x3cf2a9,_0xdfe77a,_0x39b7ba,_0x35d388,_0x54b923,_0xab007f):I(_0x3cf2a9)&&(_0x23ca51=_(_0x3cf2a9,_0xdfe77a,_0x39b7ba,_0x35d388,_0xab007f)),_0x23ca51['length']&&(_0x2ab630['push'](..._0x23ca51),_0x39b7ba+=_0x23ca51['length']*_0x35d388,_0xab007f=!0x1);}return _0x2ab630;}function N(_0x8e84da,_0x574d13,_0xaecebc,_0x803483,_0x40aaa9,_0x3b0fe1){const _0x34d31f=[];var _0x5cccaa;if((_0x5cccaa=_0x8e84da['previousSibling'])&&S(_0x5cccaa)&&Boolean(_0x5cccaa['classList']['contains']('page-break')||_0x5cccaa['closest']('.page-break'))&&(_0x34d31f['push']({'type':'manual','offset':0x0,'path':[_0x574d13-0x1]}),_0x3b0fe1=!0x0),'table-row'==_0x5085eb['window']['getComputedStyle'](_0x8e84da)['display']){let _0x470fc7=0x0,_0x4ff721=!0x1;for(const _0x15c59e of _0x8e84da['getClientRects']())_0x470fc7+=_0x15c59e['height'],_0x15c59e['left']>=_0xaecebc&&(_0x4ff721=!0x0);if(_0x470fc7<_0x40aaa9&&_0x4ff721)return _0x3b0fe1||_0x34d31f['push']({'type':'element','offset':0x0,'path':[_0x574d13]}),_0x34d31f;}const _0x55b7ba=_0x8e84da['closest']('figure.image');if(_0x55b7ba&&function(_0x20e8ac){let _0x5ef439=!0x1;const _0x4232f1=_0x20e8ac['parentElement'],_0x576932=_0x4232f1['dataset']['rootName'],_0x2656ac=_0x20e8ac['nextElementSibling'],_0x3cd599=_0x20e8ac['previousElementSibling'],_0x110605=_0x2656ac&&_0x5085eb['window']['getComputedStyle'](_0x2656ac)['float'],_0x347833=_0x2656ac&&'ck-fake-selection-container'===_0x2656ac['className'];!_0x576932||_0x2656ac||_0x3cd599||(_0x5ef439=!0x0),_0x576932&&!_0x3cd599&&_0x347833&&(_0x5ef439=!0x0),_0x576932&&!_0x3cd599&&'none'!==_0x110605&&(_0x5ef439=!0x0);if(_0x5ef439)return!0x1;return!0x0;}(_0x55b7ba)){const _0x5814b5=_0x5085eb['window']['getComputedStyle'](_0x55b7ba)['float'];if('left'==_0x5814b5||'right'==_0x5814b5)return _0x34d31f;}const _0x1cc0d0=L(_0x8e84da,_0xaecebc,_0x803483,_0x40aaa9,_0x3b0fe1);if(_0x1cc0d0['length']){for(const _0x3bbf5f of _0x1cc0d0)_0x34d31f['push']({'type':_0x3bbf5f['type'],'offset':_0x3bbf5f['offset'],'textOffset':_0x3bbf5f['textOffset'],'path':[_0x574d13,..._0x3bbf5f['path']]}),_0xaecebc+=_0x803483,_0x3b0fe1=!0x1;return _0x34d31f;}return _0x34d31f['push'](...function(_0x36123f,_0x321973,_0x313738,_0x214292,_0x16541c){const _0x346b1d=[];if('table-cell'==_0x5085eb['window']['getComputedStyle'](_0x36123f)['display'])return[];const _0x5dfe3=[];for(const _0x4a9020 of _0x36123f['getClientRects']())if(_0x4a9020['left']>=_0x313738){for(const _0x542c03 of _0x5dfe3)_0x542c03['height']+=_0x4a9020['height'];_0x5dfe3['push']({'height':_0x4a9020['height']}),_0x313738+=_0x214292;}for(const _0x3de444 of _0x5dfe3)_0x16541c||_0x346b1d['push']({'type':'element','offset':_0x3de444['height'],'textOffset':0x0,'path':[_0x321973]}),_0x16541c=!0x1;return _0x346b1d;}(_0x8e84da,_0x574d13,_0xaecebc,_0x803483,_0x3b0fe1)),_0x34d31f;}function _(_0x2a8787,_0x28acae,_0x13cd6a,_0x294281,_0x360fe1){const _0x1460d0=y(_0x2a8787),_0x431588=[];let _0x5858fa=0x0;for(const _0x1c35b0 of _0x1460d0['getClientRects']())if(_0x1c35b0['left']>=_0x13cd6a){const _0x42db03=R(_0x2a8787,_0x5858fa,_0x13cd6a,_0x294281);_0x360fe1||_0x431588['push']({'type':'text','path':[_0x28acae],'textOffset':_0x42db03}),_0x5858fa=_0x42db03,_0x13cd6a+=_0x294281,_0x360fe1=!0x1;}return _0x431588;}function R(_0x2336a9,_0x1a52ac,_0x1d1a44,_0x459b93){let _0x5674cf=_0x1a52ac,_0xaeddf9=_0x2336a9['length'];for(;_0xaeddf9-_0x5674cf>0x1;){const _0x50139b=Math['ceil']((_0x5674cf+_0xaeddf9)/0x2);E(v(_0x2336a9,_0x5674cf,_0x50139b),_0x1d1a44,_0x459b93)?_0xaeddf9=_0x50139b:_0x5674cf=_0x50139b;}return _0x5674cf;}function E(_0x39ac3a,_0x359366,_0x4d0141){for(const _0x450cb2 of _0x39ac3a['getClientRects']())if(_0x450cb2['left']>=_0x359366&&_0x450cb2['left']<_0x359366+_0x4d0141)return!0x0;return!0x1;}function S(_0x1054db){return _0x1054db['nodeType']==Node['ELEMENT_NODE'];}function I(_0x58d2ec){return _0x58d2ec['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x4cb1cb('px');class LineView extends _0x240c9d{constructor(){super();const _0x1a5caa=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x1a5caa['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x1a5caa['if']('isVisible','ck-hidden',_0x572881=>!_0x572881)],'style':{'left':_0x1a5caa['to']('left',_0x5ed653=>B(_0x5ed653)),'top':_0x1a5caa['to']('top',_0x49ddb7=>B(_0x49ddb7)),'width':_0x1a5caa['to']('width',_0x23e533=>B(_0x23e533))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x3c3d7e){this['_viewCollection']=_0x3c3d7e['ui']['view']['body'];}['destroy'](){for(const _0x27abe3 of this['_hiddenLines'])_0x27abe3['destroy']();}['cleanLines'](){for(const _0x5034ac of this['_visibleLines'])_0x5034ac['isVisible']=!0x1,this['_hiddenLines']['add'](_0x5034ac);this['_visibleLines']['clear']();}['showLine'](_0x4754ee,_0x39dfa4,_0x409eb4,_0x4e027c){let _0x5d4da6;this['_hiddenLines']['size']?(_0x5d4da6=_0x2b41a7(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x5d4da6)):_0x5d4da6=new LineView(),_0x5d4da6['set']({'pageNumber':_0x4e027c,'left':_0x4754ee,'top':_0x39dfa4,'width':_0x409eb4}),_0x5d4da6['isVisible']=!0x0,this['_viewCollection']['has'](_0x5d4da6)||this['_viewCollection']['add'](_0x5d4da6),this['_visibleLines']['add'](_0x5d4da6);}['setViewCollection'](_0x349f11){for(const _0xf93e34 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0xf93e34)&&this['_viewCollection']['remove'](_0xf93e34);this['_viewCollection']=_0x349f11;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x4a7287{['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',(_0x19909d,_0x37c5a9,_0x1ad6d8)=>{_0x1ad6d8||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x1ad6d8);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0xdb4b3b){if(!this['isEnabled'])return;const _0x165754=_0xdb4b3b>0x1?this['_getPageBreakLineOffset'](_0xdb4b3b-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x165754-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x8b2868['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x5f2269=this['editor'],_0x2af459=this['_getAttachedDomRoot']();_0x2af459?(this['_scrollableEditingRootDomAncestor']&&_0x5f2269['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5c3d44){let _0x51d490=_0x5c3d44;do{_0x51d490=_0x51d490['parentElement'];const _0x4964e0=_0x5085eb['window']['getComputedStyle'](_0x51d490)['overflowY'];if('auto'==_0x4964e0||'scroll'==_0x4964e0)break;}while('BODY'!=_0x51d490['tagName']);return _0x51d490;}(_0x2af459),_0x5f2269['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3a5c9f(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5f2269['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x15268b=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x15268b['ui']['view']['listenTo'](_0x5085eb['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x15268b['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x50bcc9 of this['editor']['editing']['view']['domRoots']['values']())if(_0x50bcc9['ownerDocument']['body']['contains'](_0x50bcc9))return _0x50bcc9;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x796290=this['_getAttachedDomRoot'](),_0x58de5b=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x796290||0x1==_0x58de5b['length'])return void(this['pageNumber']=0x1);const _0x52392f=new _0x6ffb3(_0x796290)['excludeScrollbarsAndBorders'](),_0x3e59ef=new _0x6ffb3(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x3773e0=_0x3e59ef['top']+_0x3e59ef['height']/0x3;let _0x377727=!0x1;const _0x43bb50=[];for(let _0x6b5581=0x1;_0x6b5581<_0x58de5b['length'];_0x6b5581++){const _0x1031cb=this['_getPageBreakLineOffset'](_0x6b5581,_0x3e59ef);if(!_0x1031cb)continue;const _0x5f4b78=_0x3e59ef['top']+_0x1031cb-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x43bb50['push']({'pageOffsetTop':_0x5f4b78,'domRootRect':_0x52392f,'domScrollableRect':_0x3e59ef,'pageNumber':_0x6b5581}),_0x5f4b78>_0x3773e0&&!_0x377727&&(this['pageNumber']=_0x6b5581,_0x377727=!0x0);}this['_renderPageBreakLines'](_0x43bb50),_0x377727||(this['pageNumber']=_0x58de5b['length']);}['_renderPageBreakLines'](_0x1d78f7){const {scrollX:_0x1cab58,scrollY:_0x2ffba3}=_0x5085eb['window'];if(_0x1d78f7['length']){for(const {domScrollableRect:_0xd30850,pageOffsetTop:_0x3131d8,domRootRect:_0x239420,pageNumber:_0x353be5}of _0x1d78f7)_0xd30850['top']<_0x3131d8&&_0x3131d8<_0xd30850['bottom']&&this['linesRepository']['showLine'](_0x239420['left']+_0x1cab58,_0x3131d8+_0x2ffba3,_0x239420['width'],_0x353be5+0x1);}}['_getPageBreakLineOffset'](_0x5e4925,_0xf5c201=null){const _0x5627e1=this['_paginationLookupPlugin']['pageBreaks'][_0x5e4925]['offset'];return _0x5627e1?(_0xf5c201||(_0xf5c201=new _0x6ffb3(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x5627e1-_0xf5c201['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x304606,_0x1b57bd=!0x0){const _0x2168fd=this['editor']['editing']['view'];_0x2168fd['change'](_0x15b113=>{for(const _0x1ab015 of _0x2168fd['document']['roots'])_0x1b57bd?_0x15b113['addClass'](_0x304606,_0x1ab015):_0x15b113['removeClass'](_0x304606,_0x1ab015);});}}function O(_0xf90737,_0x41ee86,..._0x236f5b){const t=_0xf90737['t'];switch(_0x41ee86){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)',..._0x236f5b);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 _0x41ee86;}}class PaginationEditing extends _0x4a7287{['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 _0x483562=this['editor']['plugins']['get']('Pagination'),_0x43681a=this['editor']['plugins']['get'](PaginationLookup),_0x5e6f85=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x483562),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x5e6f85),this['listenTo'](_0x43681a,'change:pageBreaks',(_0x4634e0,_0x1f44cc,_0x15955d,_0x579ba8)=>{this['totalPages']=_0x15955d['length'],this['_updatePageBreakMarkers'](_0x15955d,_0x579ba8);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3dfbf3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1144b1;for(const _0x4469df in _0x3dfbf3){const _0x19327a=_0x4469df,_0xd25592=_0x3dfbf3[_0x19327a];if('paginationLicenseKeyValid'==_0xd25592||'paginationLicenseKeyInvalid'==_0xd25592||'paginationLicenseKeyExpired'==_0xd25592||'paginationLicenseKeyDomainLimit'==_0xd25592||'paginationLicenseKeyNotAllowed'==_0xd25592||'paginationLicenseKeyEvaluationLimit'==_0xd25592||'paginationLicenseKeyUsageLimit'==_0xd25592){delete _0x3dfbf3[_0x19327a],_0x1144b1=_0xd25592,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x13b022){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x13b022));}['moveSelectionToPage'](_0x563d91){if(!this['isEnabled'])return;const _0x3b0189=this['editor'],_0x111c32=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x563d91-0x1];_0x111c32&&_0x3b0189['model']['change'](_0x40a59d=>{switch(_0x111c32['type']){case'manual':{const _0x438963=_0x3b0189['model']['schema']['getNearestSelectionRange'](_0x111c32['modelRange']['end'],'forward');_0x40a59d['setSelection'](_0x438963);break;}case'element':{const _0x2923c3=_0x3b0189['model']['schema']['getNearestSelectionRange'](_0x111c32['modelRange']['start'],'forward');_0x40a59d['setSelection'](_0x2923c3);break;}case'text':{const _0xe474ae=_0x111c32['modelRange']['start'];if(_0xe474ae['textNode']&&'\x20'===_0xe474ae['textNode']['data'][_0xe474ae['offset']]){const _0x8bc2a8=_0x40a59d['createPositionAt'](_0xe474ae['parent'],_0xe474ae['offset']+0x1);_0x40a59d['setSelection'](_0x8bc2a8);}else _0x40a59d['setSelection'](_0x111c32['modelRange']);}}_0x3b0189['editing']['view']['focus']();});}['goToNextPage'](){const _0x30b2c4=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x30b2c4),this['scrollToPage'](_0x30b2c4);}['goToPreviousPage'](){const _0x38e755=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x38e755),this['scrollToPage'](_0x38e755);}['_updatePageBreakMarkers'](_0x5c6844,_0x40be26){const _0x39f6df=this['editor']['model'];this['isEnabled']&&_0x39f6df['change'](_0xae8cd9=>{for(let _0x491cf8=0x1;_0x491cf8<_0x5c6844['length'];_0x491cf8++){const _0x500b3f=_0x5c6844[_0x491cf8]['modelRange'],_0x2f7b89='pagination:'+(_0x491cf8+0x1);_0x39f6df['markers']['has'](_0x2f7b89)?_0xae8cd9['updateMarker'](_0x2f7b89,{'range':_0x500b3f}):_0xae8cd9['addMarker'](_0x2f7b89,{'range':_0x500b3f,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x1afcf9=_0x5c6844['length'];_0x1afcf9<_0x40be26['length'];_0x1afcf9++){const _0x4e118f='pagination:'+(_0x1afcf9+0x1);_0x39f6df['markers']['has'](_0x4e118f)&&_0xae8cd9['removeMarker'](_0x4e118f);}});}['_setUpDataDowncastConversion'](){const _0x231dc3='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x2fca6f=>{_0x2fca6f['on']('addMarker:'+_0x231dc3,(_0x2c6dcb,{markerRange:_0x277606,markerName:_0x4bc1cb},_0x1bc7e7)=>{if(!_0x1bc7e7['options']['pagination'])return;if(!_0x1bc7e7['consumable']['consume'](_0x277606,_0x2c6dcb['name']))return;const _0x50e5f=_0x277606['getContainedElement']();let _0x8a27aa=_0x50e5f?_0x1bc7e7['mapper']['toViewElement'](_0x50e5f):null;if(!_0x8a27aa){const _0x405699=_0x277606['start'];if(_0x1bc7e7['schema']['checkChild'](_0x405699,'$text')){const _0x4926ab=_0x1bc7e7['mapper']['toViewPosition'](_0x405699);_0x8a27aa=_0x1bc7e7['writer']['createContainerElement']('span'),_0x8a27aa['getFillerOffset']=()=>null,_0x1bc7e7['writer']['insert'](_0x4926ab,_0x8a27aa);}else{const _0x2e2c7d=_0x405699['nodeAfter'];_0x8a27aa=_0x1bc7e7['mapper']['toViewElement'](_0x2e2c7d);}}for(;_0x8a27aa['parent']!==_0x8a27aa['root']&&0x0===_0x8a27aa['index'];)_0x8a27aa=_0x8a27aa['parent'];const _0x369ac9=_0x4bc1cb['substring'](0xb);_0x8a27aa['hasClass']('page-break')||(_0x1bc7e7['writer']['setStyle']('page-break-before','always',_0x8a27aa),_0x1bc7e7['writer']['setAttribute']('data-pagination-page',_0x369ac9,_0x8a27aa),_0x1bc7e7['mapper']['bindElementToMarker'](_0x8a27aa,_0x4bc1cb)),_0x2c6dcb['stop']();});});}['_setupKeystrokes'](){const _0x2da00b=this['editor'];_0x2da00b['keystrokes']['set']('Shift+Pageup',(_0x45d779,_0x20a845)=>{this['goToPreviousPage'](),_0x20a845();}),_0x2da00b['keystrokes']['set']('Shift+Pagedown',(_0xa52d59,_0x4f9d55)=>{this['goToNextPage'](),_0x4f9d55();}),_0x2da00b['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x2da00b['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x2da00b['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x2da00b['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2b0970){return _0x2b0970<0x1&&(_0x2b0970=0x1),_0x2b0970>this['totalPages']&&(_0x2b0970=this['totalPages']),_0x2b0970;}}class PageNavigatorView extends _0x240c9d{['pageNumberView'];constructor(_0x3cc803){super(_0x3cc803);const _0x31a1b9=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x1717c8(_0x3cc803,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0xccc325=>O(_0x3cc803,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0xccc325)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x3d1b4a=>!_0x3d1b4a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x31a1b9['if']('isEnabled','ck-disabled',_0x5e6c4c=>!_0x5e6c4c)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x31a1b9['to']('totalPages')}]}]});}['render'](){super['render']();const _0x83d647=this['pageNumberView']['element'],_0x494328=_0x368249=>{this['pageNumberView']['element']['value']=String(_0x368249);};_0x494328(this['pageNumber']),this['on']('change:pageNumber',(_0x33e120,_0x557a56,_0x1bb181)=>{_0x494328(_0x1bb181);}),this['listenTo'](_0x83d647,'keydown',(_0x4e0463,_0x2c60ac)=>{if('ArrowUp'===_0x2c60ac['key']||'ArrowDown'===_0x2c60ac['key'])return void _0x2c60ac['stopPropagation']();if(_0x2c60ac['keyCode']!==_0x208ccb['enter'])return;_0x2c60ac['preventDefault']();const _0x4933b6=_0x83d647['valueAsNumber'];Number['isNaN'](_0x4933b6)?_0x83d647['value']=String(this['pageNumber']):(_0x83d647['checkValidity']()?this['pageNumber']=_0x4933b6:_0x4933b6>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x83d647['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x83d647['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x83d647,'blur',()=>{_0x83d647['value']=String(this['pageNumber']);}),this['listenTo'](_0x83d647,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x4a7287{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2f9d9c=this['editor'],_0x30a980=_0x2f9d9c['plugins']['get']('PaginationEditing');_0x2f9d9c['ui']['componentFactory']['add']('pageNavigation',_0x4e260b=>{const _0x43ae0b=new PageNavigatorView(_0x4e260b);return _0x43ae0b['bind']('pageNumber')['to'](_0x30a980),_0x43ae0b['bind']('totalPages')['to'](_0x30a980),_0x43ae0b['bind']('isEnabled')['to'](_0x30a980),_0x43ae0b['on']('navigation',(_0x319b1d,_0x410545)=>{_0x30a980['moveSelectionToPage'](_0x410545),_0x30a980['scrollToPage'](_0x410545);}),_0x43ae0b;}),_0x2f9d9c['ui']['componentFactory']['add']('nextPage',_0x305fd0=>{const _0x217564=new _0x43d50a(_0x305fd0);return _0x217564['isEnabled']=!0x0,_0x217564['label']=O(_0x2f9d9c['locale'],'Go\x20to\x20next\x20page'),_0x217564['icon']=_0x47680a,_0x217564['tooltip']=!0x0,_0x217564['keystroke']='Shift+PageDown',_0x217564['bind']('isEnabled')['to'](_0x30a980),this['listenTo'](_0x217564,'execute',()=>{_0x30a980['goToNextPage']();}),_0x217564;}),_0x2f9d9c['ui']['componentFactory']['add']('previousPage',_0x422d85=>{const _0x1bb82a=new _0x43d50a(_0x422d85);return _0x1bb82a['isEnabled']=!0x0,_0x1bb82a['label']=O(_0x2f9d9c['locale'],'Go\x20to\x20previous\x20page'),_0x1bb82a['icon']=_0x45c12f,_0x1bb82a['tooltip']=!0x0,_0x1bb82a['keystroke']='Shift+PageUp',_0x1bb82a['bind']('isEnabled')['to'](_0x30a980),this['listenTo'](_0x1bb82a,'execute',()=>{_0x30a980['goToPreviousPage']();}),_0x1bb82a;});}}class Pagination extends _0x4a7287{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x597d5f){super(_0x597d5f),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x485324=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x485324),this['bind']('totalPages')['to'](_0x485324),_0x8b2868['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x58f250){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x58f250);}}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
- */