@ckeditor/ckeditor5-pagination 0.0.0-internal-20241017.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 (253) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +22 -0
  3. package/README.md +44 -0
  4. package/build/pagination.js +5 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -0
  10. package/build/translations/da.js +1 -0
  11. package/build/translations/de.js +1 -0
  12. package/build/translations/el.js +1 -0
  13. package/build/translations/es.js +1 -0
  14. package/build/translations/et.js +1 -0
  15. package/build/translations/fi.js +1 -0
  16. package/build/translations/fr.js +1 -0
  17. package/build/translations/gl.js +1 -0
  18. package/build/translations/he.js +1 -0
  19. package/build/translations/hi.js +1 -0
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -0
  22. package/build/translations/it.js +1 -0
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/ko.js +1 -0
  25. package/build/translations/lt.js +1 -0
  26. package/build/translations/lv.js +1 -0
  27. package/build/translations/ms.js +1 -0
  28. package/build/translations/nl.js +1 -0
  29. package/build/translations/no.js +1 -0
  30. package/build/translations/pl.js +1 -0
  31. package/build/translations/pt-br.js +1 -0
  32. package/build/translations/pt.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -0
  36. package/build/translations/sr.js +1 -0
  37. package/build/translations/sv.js +1 -0
  38. package/build/translations/th.js +1 -0
  39. package/build/translations/tr.js +1 -0
  40. package/build/translations/uk.js +1 -0
  41. package/build/translations/vi.js +1 -0
  42. package/build/translations/zh-cn.js +1 -0
  43. package/build/translations/zh.js +1 -0
  44. package/ckeditor5-metadata.json +36 -0
  45. package/dist/augmentation.d.ts +23 -0
  46. package/dist/index-content.css +5 -0
  47. package/dist/index-editor.css +96 -0
  48. package/dist/index.css +182 -0
  49. package/dist/index.d.ts +13 -0
  50. package/dist/index.js +23 -0
  51. package/dist/legacyerrors.d.ts +24 -0
  52. package/dist/pagination.d.ts +147 -0
  53. package/dist/paginationediting.d.ts +82 -0
  54. package/dist/paginationlookup.d.ts +70 -0
  55. package/dist/paginationrenderer.d.ts +52 -0
  56. package/dist/paginationui.d.ts +37 -0
  57. package/dist/translations/ar.d.ts +8 -0
  58. package/dist/translations/ar.js +23 -0
  59. package/dist/translations/ar.umd.js +23 -0
  60. package/dist/translations/bg.d.ts +8 -0
  61. package/dist/translations/bg.js +23 -0
  62. package/dist/translations/bg.umd.js +23 -0
  63. package/dist/translations/bn.d.ts +8 -0
  64. package/dist/translations/bn.js +23 -0
  65. package/dist/translations/bn.umd.js +23 -0
  66. package/dist/translations/ca.d.ts +8 -0
  67. package/dist/translations/ca.js +23 -0
  68. package/dist/translations/ca.umd.js +23 -0
  69. package/dist/translations/cs.d.ts +8 -0
  70. package/dist/translations/cs.js +23 -0
  71. package/dist/translations/cs.umd.js +23 -0
  72. package/dist/translations/da.d.ts +8 -0
  73. package/dist/translations/da.js +23 -0
  74. package/dist/translations/da.umd.js +23 -0
  75. package/dist/translations/de.d.ts +8 -0
  76. package/dist/translations/de.js +23 -0
  77. package/dist/translations/de.umd.js +23 -0
  78. package/dist/translations/el.d.ts +8 -0
  79. package/dist/translations/el.js +23 -0
  80. package/dist/translations/el.umd.js +23 -0
  81. package/dist/translations/en.d.ts +8 -0
  82. package/dist/translations/en.js +23 -0
  83. package/dist/translations/en.umd.js +23 -0
  84. package/dist/translations/es.d.ts +8 -0
  85. package/dist/translations/es.js +23 -0
  86. package/dist/translations/es.umd.js +23 -0
  87. package/dist/translations/et.d.ts +8 -0
  88. package/dist/translations/et.js +23 -0
  89. package/dist/translations/et.umd.js +23 -0
  90. package/dist/translations/fi.d.ts +8 -0
  91. package/dist/translations/fi.js +23 -0
  92. package/dist/translations/fi.umd.js +23 -0
  93. package/dist/translations/fr.d.ts +8 -0
  94. package/dist/translations/fr.js +23 -0
  95. package/dist/translations/fr.umd.js +23 -0
  96. package/dist/translations/gl.d.ts +8 -0
  97. package/dist/translations/gl.js +23 -0
  98. package/dist/translations/gl.umd.js +23 -0
  99. package/dist/translations/he.d.ts +8 -0
  100. package/dist/translations/he.js +23 -0
  101. package/dist/translations/he.umd.js +23 -0
  102. package/dist/translations/hi.d.ts +8 -0
  103. package/dist/translations/hi.js +23 -0
  104. package/dist/translations/hi.umd.js +23 -0
  105. package/dist/translations/hu.d.ts +8 -0
  106. package/dist/translations/hu.js +23 -0
  107. package/dist/translations/hu.umd.js +23 -0
  108. package/dist/translations/id.d.ts +8 -0
  109. package/dist/translations/id.js +23 -0
  110. package/dist/translations/id.umd.js +23 -0
  111. package/dist/translations/it.d.ts +8 -0
  112. package/dist/translations/it.js +23 -0
  113. package/dist/translations/it.umd.js +23 -0
  114. package/dist/translations/ja.d.ts +8 -0
  115. package/dist/translations/ja.js +23 -0
  116. package/dist/translations/ja.umd.js +23 -0
  117. package/dist/translations/ko.d.ts +8 -0
  118. package/dist/translations/ko.js +23 -0
  119. package/dist/translations/ko.umd.js +23 -0
  120. package/dist/translations/lt.d.ts +8 -0
  121. package/dist/translations/lt.js +23 -0
  122. package/dist/translations/lt.umd.js +23 -0
  123. package/dist/translations/lv.d.ts +8 -0
  124. package/dist/translations/lv.js +23 -0
  125. package/dist/translations/lv.umd.js +23 -0
  126. package/dist/translations/ms.d.ts +8 -0
  127. package/dist/translations/ms.js +23 -0
  128. package/dist/translations/ms.umd.js +23 -0
  129. package/dist/translations/nl.d.ts +8 -0
  130. package/dist/translations/nl.js +23 -0
  131. package/dist/translations/nl.umd.js +23 -0
  132. package/dist/translations/no.d.ts +8 -0
  133. package/dist/translations/no.js +23 -0
  134. package/dist/translations/no.umd.js +23 -0
  135. package/dist/translations/pl.d.ts +8 -0
  136. package/dist/translations/pl.js +23 -0
  137. package/dist/translations/pl.umd.js +23 -0
  138. package/dist/translations/pt-br.d.ts +8 -0
  139. package/dist/translations/pt-br.js +23 -0
  140. package/dist/translations/pt-br.umd.js +23 -0
  141. package/dist/translations/pt.d.ts +8 -0
  142. package/dist/translations/pt.js +23 -0
  143. package/dist/translations/pt.umd.js +23 -0
  144. package/dist/translations/ro.d.ts +8 -0
  145. package/dist/translations/ro.js +23 -0
  146. package/dist/translations/ro.umd.js +23 -0
  147. package/dist/translations/ru.d.ts +8 -0
  148. package/dist/translations/ru.js +23 -0
  149. package/dist/translations/ru.umd.js +23 -0
  150. package/dist/translations/sk.d.ts +8 -0
  151. package/dist/translations/sk.js +23 -0
  152. package/dist/translations/sk.umd.js +23 -0
  153. package/dist/translations/sr.d.ts +8 -0
  154. package/dist/translations/sr.js +23 -0
  155. package/dist/translations/sr.umd.js +23 -0
  156. package/dist/translations/sv.d.ts +8 -0
  157. package/dist/translations/sv.js +23 -0
  158. package/dist/translations/sv.umd.js +23 -0
  159. package/dist/translations/th.d.ts +8 -0
  160. package/dist/translations/th.js +23 -0
  161. package/dist/translations/th.umd.js +23 -0
  162. package/dist/translations/tr.d.ts +8 -0
  163. package/dist/translations/tr.js +23 -0
  164. package/dist/translations/tr.umd.js +23 -0
  165. package/dist/translations/uk.d.ts +8 -0
  166. package/dist/translations/uk.js +23 -0
  167. package/dist/translations/uk.umd.js +23 -0
  168. package/dist/translations/vi.d.ts +8 -0
  169. package/dist/translations/vi.js +23 -0
  170. package/dist/translations/vi.umd.js +23 -0
  171. package/dist/translations/zh-cn.d.ts +8 -0
  172. package/dist/translations/zh-cn.js +23 -0
  173. package/dist/translations/zh-cn.umd.js +23 -0
  174. package/dist/translations/zh.d.ts +8 -0
  175. package/dist/translations/zh.js +23 -0
  176. package/dist/translations/zh.umd.js +23 -0
  177. package/dist/ui/linesrepository.d.ts +38 -0
  178. package/dist/ui/lineview.d.ts +57 -0
  179. package/dist/ui/pagenavigatorview.d.ts +65 -0
  180. package/dist/utils/common-translations.d.ts +13 -0
  181. package/lang/contexts.json +8 -0
  182. package/lang/translations/ar.po +42 -0
  183. package/lang/translations/bg.po +42 -0
  184. package/lang/translations/bn.po +42 -0
  185. package/lang/translations/ca.po +42 -0
  186. package/lang/translations/cs.po +42 -0
  187. package/lang/translations/da.po +42 -0
  188. package/lang/translations/de.po +42 -0
  189. package/lang/translations/el.po +42 -0
  190. package/lang/translations/en.po +42 -0
  191. package/lang/translations/es.po +42 -0
  192. package/lang/translations/et.po +42 -0
  193. package/lang/translations/fi.po +42 -0
  194. package/lang/translations/fr.po +42 -0
  195. package/lang/translations/gl.po +42 -0
  196. package/lang/translations/he.po +42 -0
  197. package/lang/translations/hi.po +42 -0
  198. package/lang/translations/hu.po +42 -0
  199. package/lang/translations/id.po +42 -0
  200. package/lang/translations/it.po +42 -0
  201. package/lang/translations/ja.po +42 -0
  202. package/lang/translations/ko.po +42 -0
  203. package/lang/translations/lt.po +42 -0
  204. package/lang/translations/lv.po +42 -0
  205. package/lang/translations/ms.po +42 -0
  206. package/lang/translations/nl.po +42 -0
  207. package/lang/translations/no.po +42 -0
  208. package/lang/translations/pl.po +42 -0
  209. package/lang/translations/pt-br.po +42 -0
  210. package/lang/translations/pt.po +42 -0
  211. package/lang/translations/ro.po +42 -0
  212. package/lang/translations/ru.po +42 -0
  213. package/lang/translations/sk.po +42 -0
  214. package/lang/translations/sr.po +42 -0
  215. package/lang/translations/sv.po +42 -0
  216. package/lang/translations/th.po +42 -0
  217. package/lang/translations/tr.po +42 -0
  218. package/lang/translations/uk.po +42 -0
  219. package/lang/translations/vi.po +42 -0
  220. package/lang/translations/zh-cn.po +42 -0
  221. package/lang/translations/zh.po +42 -0
  222. package/package.json +38 -0
  223. package/src/augmentation.d.ts +19 -0
  224. package/src/augmentation.js +23 -0
  225. package/src/index.d.ts +9 -0
  226. package/src/index.js +23 -0
  227. package/src/legacyerrors.d.ts +20 -0
  228. package/src/legacyerrors.js +23 -0
  229. package/src/pagination.d.ts +143 -0
  230. package/src/pagination.js +23 -0
  231. package/src/paginationediting.d.ts +78 -0
  232. package/src/paginationediting.js +23 -0
  233. package/src/paginationlookup.d.ts +66 -0
  234. package/src/paginationlookup.js +23 -0
  235. package/src/paginationrenderer.d.ts +48 -0
  236. package/src/paginationrenderer.js +23 -0
  237. package/src/paginationui.d.ts +33 -0
  238. package/src/paginationui.js +23 -0
  239. package/src/ui/linesrepository.d.ts +34 -0
  240. package/src/ui/linesrepository.js +23 -0
  241. package/src/ui/lineview.d.ts +53 -0
  242. package/src/ui/lineview.js +23 -0
  243. package/src/ui/pagenavigatorview.d.ts +61 -0
  244. package/src/ui/pagenavigatorview.js +23 -0
  245. package/src/utils/common-translations.d.ts +9 -0
  246. package/src/utils/common-translations.js +23 -0
  247. package/theme/icons/arrow-down.svg +1 -0
  248. package/theme/icons/arrow-up.svg +1 -0
  249. package/theme/icons/pagination-example.svg +1 -0
  250. package/theme/icons/print.svg +1 -0
  251. package/theme/line.css +30 -0
  252. package/theme/pagenavigator.css +46 -0
  253. package/theme/pagination.css +72 -0
package/dist/index.css ADDED
@@ -0,0 +1,182 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /*
6
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
7
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
8
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
9
+ *
10
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
11
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
12
+ */
13
+
14
+ .ck.ck-pagination-view-line {
15
+ position: absolute;
16
+ height: 0;
17
+ border-top: 1px dotted var(--ck-color-pagination-divider);
18
+ pointer-events: none;
19
+ }
20
+
21
+ .ck.ck-pagination-view-line::after {
22
+ content: attr(data-page-number);
23
+ font-size: 10px;
24
+ background: hsl(0, 0%, 77%);
25
+ color: var(--ck-color-base-background);
26
+ display: inline-block;
27
+ position: absolute;
28
+ right: -1px;
29
+ transform: translateX(100%);
30
+ min-width: 18px;
31
+ text-align: center;
32
+ top: -1px;
33
+ padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
34
+ }
35
+
36
+ /*
37
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
38
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
39
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
40
+ *
41
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
42
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
43
+ */
44
+
45
+ :root {
46
+ --ck-color-pagination-divider: hsl(0, 0%, 67%);
47
+ }
48
+
49
+ /*
50
+ * Content styles.
51
+ */
52
+
53
+ .ck.ck-pagination_enabled.ck-content .page-break::after {
54
+ display: none;
55
+ }
56
+
57
+ .ck.ck-pagination_enabled.ck-editor__editable.ck-pagination-view .ck-widget__type-around {
58
+ display: none;
59
+ }
60
+
61
+ /*
62
+ * From time to time placing page-break directly after a block element with margin causes appending a new blank page in pagination mode.
63
+ * Removing margin-bottom from the block element fixes that issue and the margin is not being moved to the next blank page.
64
+ *
65
+ * Identical CSS rule is also present in the page break CSS files so keep them in sync to make sure that the issue is fixed both in the
66
+ * editor preview and in the printed content (used by the export document plugins).
67
+ *
68
+ * See more: https://github.com/cksource/ckeditor5-commercial/issues/6289.
69
+ */
70
+
71
+ .ck.ck-pagination_enabled.ck-editor__editable.ck-pagination-view *:has(+ .page-break) {
72
+ margin-bottom: 0;
73
+ }
74
+
75
+ .ck.ck-pagination_enabled.ck-editor__editable.ck-pagination-view .page-break {
76
+ padding: 0;
77
+ margin: 0;
78
+ break-after: column;
79
+ display: block;
80
+ height: 0;
81
+
82
+ }
83
+
84
+ .ck.ck-pagination_enabled.ck-editor__editable.ck-pagination-view .page-break .page-break__label {
85
+ display: none;
86
+ }
87
+
88
+ .ck.ck-pagination_enabled.ck-editor__editable.ck-pagination-view .page-break::after {
89
+ display: none;
90
+ }
91
+
92
+ .ck.ck-pagination_enabled.ck-editor__editable.ck-pagination-view .ck-table-column-resizer {
93
+ display: none;
94
+ }
95
+
96
+ .ck.ck-pagination_enabled.ck-editor__editable.ck-pagination-view .table table {
97
+
98
+ /*
99
+ * Tables that have overflow set to hidden are incorrectly split between pages on the chrome. Reset the overflow to initial fixes this issue.
100
+ *
101
+ * See: https://github.com/ckeditor/ckeditor5/issues/14426.
102
+ */
103
+ overflow: initial;
104
+ }
105
+
106
+ /*
107
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
108
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
109
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
110
+ *
111
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
112
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
113
+ */
114
+
115
+ /*
116
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
117
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
118
+ */
119
+
120
+ /**
121
+ * Implements rounded corner interface for .ck-rounded-corners class.
122
+ *
123
+ * @see $ck-border-radius
124
+ */
125
+ /*
126
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
127
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
128
+ */
129
+ /**
130
+ * A visual style of focused element's border.
131
+ */
132
+ /*
133
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
134
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
135
+ */
136
+ /**
137
+ * A helper to combine multiple shadows.
138
+ */
139
+ /**
140
+ * Gives an element a drop shadow so it looks like a floating panel.
141
+ */
142
+ /*
143
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
144
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
145
+ */
146
+ /**
147
+ * A class which indicates that an element holding it is disabled.
148
+ */
149
+
150
+ .ck.ck-page-navigator {
151
+ padding: 0 var(--ck-spacing-standard);
152
+ line-height: 1;
153
+ }
154
+
155
+ .ck.ck-page-navigator > .ck-input-number {
156
+ width: var(--ck-ui-component-min-height);
157
+ min-width: var(--ck-ui-component-min-height);
158
+
159
+ background: transparent;
160
+ text-align: center;
161
+
162
+ /* Disable native increment/decrement buttons (FF). */
163
+ -moz-appearance: textfield;
164
+
165
+ /* Disable native increment/decrement buttons (Webkit). */
166
+ }
167
+
168
+ .ck.ck-page-navigator > .ck-input-number::-webkit-inner-spin-button,
169
+ .ck.ck-page-navigator > .ck-input-number::-webkit-outer-spin-button {
170
+ -webkit-appearance: none;
171
+ margin: 0;
172
+ }
173
+
174
+ .ck.ck-page-navigator > .ck-input-number:not(:focus) {
175
+ border: 1px solid transparent;
176
+ border-bottom: 1px solid var(--ck-color-base-border);
177
+ }
178
+
179
+ .ck.ck-page-navigator > span::before {
180
+ content: '/';
181
+ margin: 0 var(--ck-spacing-standard);
182
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination
11
+ */
12
+ export { default as Pagination, type PaginationConfig, type PaginationMarginsConfig } from './pagination.js';
13
+ import './augmentation.js';
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Plugin as _0x18e88f}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x9caf10,InputNumberView as _0x1218c9,ButtonView as _0x1bbd05}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x4c8124,Rect as _0x44e5c7,global as _0x216d89,uid as _0x107531,toUnit as _0x173c27,first as _0x36c93f,env as _0xa6c4ca,ResizeObserver as _0x2926d4,keyCodes as _0x5f9931}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x54509d}from'lodash-es';class a extends _0x18e88f{['_recalculatePageBreaksDebounced'];['_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 _0x4c8124('pagination-config-not-found',this['editor']['config']);this['_recalculatePageBreaksDebounced']=_0x54509d(()=>this['_recalculatePageBreaks'](),0xc8),this['_pagesContainer']=null;const _0x2908b4=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x2908b4),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x487b79,_0x53c751,_0xdd3d02)=>{_0xdd3d02&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x3090c1){const _0x1f3397=_0x47d353([0x30,0x73,0x78,0x56,0x74,0x72,0x35,0x68,0x75,0x6c,0x65,0x53,0x57,0x6b,0x54,0x6d,0x64,0x55,0x7a,0x43,0x33,0x48,0x6f,0x45,0x77,0x61,0x4a,0x4c,0x37,0x4b,0x6e,0x38,0x36,0x66,0x4e,0x41,0x52,0x76,0x51,0x58,0x67,0x4d,0x70,0x5a,0x49,0x62,0x6a,0x50,0x79,0x69,0x47,0x31,0x34,0x32,0x42,0x39,0x63,0x46,0x44,0x59,0x71,0x4f]),_0x1ef029=0x2fe48b8d,_0x2e3e89=0x2fe3dfb5^_0x1ef029,_0x10b4b3=window[_0x47d353([0x44,0x61,0x74,0x65])][_0x47d353([0x6e,0x6f,0x77])](),_0x4db712=_0x3090c1[_0x47d353([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x448e61=new window[(_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x818df2=>{_0x4db712[_0x47d353([0x6f,0x6e,0x63,0x65])](_0x47d353([0x72,0x65,0x61,0x64,0x79]),_0x818df2);}),_0xcd2b5d={[_0x47d353([0x6b,0x74,0x79])]:_0x47d353([0x45,0x43]),[_0x47d353([0x75,0x73,0x65])]:_0x47d353([0x73,0x69,0x67]),[_0x47d353([0x63,0x72,0x76])]:_0x47d353([0x50,0x2d,0x32,0x35,0x36]),[_0x47d353([0x78])]:_0x47d353([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]),[_0x47d353([0x79])]:_0x47d353([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]),[_0x47d353([0x61,0x6c,0x67])]:_0x47d353([0x45,0x53,0x32,0x35,0x36])},_0x4962f4=_0x4db712[_0x47d353([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47d353([0x67,0x65,0x74])](_0x47d353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fd7c3(){let _0x2bfdf2,_0x45e373=null,_0xc296f4=null;try{if(_0x4962f4==_0x47d353([0x47,0x50,0x4c]))return _0x47d353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bfdf2=_0x5bfe0e(),!_0x2bfdf2)return _0x47d353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bfdf2[_0x47d353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc296f4=_0x31afa1(_0x2bfdf2[_0x47d353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bfdf2[_0x47d353([0x6a,0x74,0x69])])),await _0x47abc6()?_0x4aae4f()?_0x25c68a()?_0x47d353([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x599b36()?(_0x2bfdf2[_0x47d353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47d353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45e373=_0x3c78be(_0x47d353([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bfdf2[_0x47d353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47d353([0x74,0x72,0x69,0x61,0x6c])&&(_0x45e373=_0x3c78be(_0x47d353([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bfdf2[_0x47d353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47d353([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x45e373=_0x3c78be(_0x47d353([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10abbe()):_0x47d353([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47d353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47d353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb08908){return _0x47d353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25c68a(){const _0x61ea55=[_0x47d353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47d353([0x74,0x72,0x69,0x61,0x6c])][_0x47d353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bfdf2[_0x47d353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10b4b3/0x3e8:0xe10*_0x2e3e89;return _0x2bfdf2[_0x47d353([0x65,0x78,0x70])]<_0x61ea55;}function _0x4aae4f(){const _0x20ed86=_0x2bfdf2[_0x47d353([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20ed86&&(!!_0x20ed86[_0x47d353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d353([0x2a]))||!!_0x20ed86[_0x47d353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d353([0x50,0x41,0x47])));}function _0x599b36(){const _0x36f10b=_0x2bfdf2[_0x47d353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36f10b||0x0==_0x36f10b[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12eea0}=new URL(window[_0x47d353([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x36f10b[_0x47d353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12eea0))return!0x0;const _0x5b2f6d=_0x12eea0[_0x47d353([0x73,0x70,0x6c,0x69,0x74])](_0x47d353([0x2e]));return _0x36f10b[_0x47d353([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aff3a=>_0x4aff3a[_0x47d353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d353([0x2a])))[_0x47d353([0x6d,0x61,0x70])](_0xcd15a8=>_0xcd15a8[_0x47d353([0x73,0x70,0x6c,0x69,0x74])](_0x47d353([0x2e])))[_0x47d353([0x73,0x6f,0x6d,0x65])](_0x118764=>_0x5b2f6d[_0x47d353([0x65,0x76,0x65,0x72,0x79])]((_0x238c2c,_0x437f1c)=>_0x118764[_0x437f1c]===_0x238c2c||_0x118764[_0x437f1c]===_0x47d353([0x2a])));}function _0x10abbe(){return _0x45e373&&_0xc296f4?new window[(_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1435b5,_0x533cc3)=>{_0x45e373[_0x47d353([0x74,0x68,0x65,0x6e])](_0x1435b5,_0x533cc3),_0xc296f4[_0x47d353([0x74,0x68,0x65,0x6e])](_0x3f7a41=>{_0x3f7a41!=_0x47d353([0x56,0x61,0x6c,0x69,0x64])&&_0x1435b5(_0x3f7a41);},_0x533cc3);}):_0x45e373||_0xc296f4||_0x47d353([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31afa1(_0x51ac26,_0x37b33f){return new window[(_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58a097=>{if(_0x5ea11e())return _0x58a097(_0x47d353([0x56,0x61,0x6c,0x69,0x64]));_0x3e0ad5(),_0x4db712[_0x47d353([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47d353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x182cd6=!0x1;const _0x30987f=_0x107531();function _0x84daf(_0x2bbacf){_0x28d8fc(_0x2bbacf)[_0x47d353([0x74,0x68,0x65,0x6e])](_0x2d446f=>{if(!_0x2d446f||_0x2d446f[_0x47d353([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47d353([0x6f,0x6b]))return _0x47d353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27d7bf(_0x311d6c(_0x30987f+_0x37b33f))!=_0x2d446f[_0x47d353([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47d353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47d353([0x56,0x61,0x6c,0x69,0x64]);})[_0x47d353([0x74,0x68,0x65,0x6e])](_0xd979ed=>(_0x3a0a9d(),_0xd979ed),()=>{const _0x27fa54=_0x26b73c();return null==_0x27fa54?(_0x3a0a9d(),_0x47d353([0x56,0x61,0x6c,0x69,0x64])):_0x47d353(_0x10b4b3-_0x27fa54>(0xbe80f8d^_0x1ef029)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47d353([0x74,0x68,0x65,0x6e])](_0x58a097)[_0x47d353([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58a097(_0x47d353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d2de6=0x2fd2650d^_0x1ef029;function _0x3a0a9d(){const _0x6ddc78=_0x47d353([0x6c,0x6c,0x63,0x74,0x2d])+_0x27d7bf(_0x311d6c(_0x51ac26)),_0x1afb58=_0x360f88(_0x27d7bf(window[_0x47d353([0x4d,0x61,0x74,0x68])][_0x47d353([0x63,0x65,0x69,0x6c])](_0x10b4b3/_0x4d2de6)));window[_0x47d353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47d353([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6ddc78,_0x1afb58);}function _0x26b73c(){const _0x27296c=_0x47d353([0x6c,0x6c,0x63,0x74,0x2d])+_0x27d7bf(_0x311d6c(_0x51ac26)),_0xbcb741=window[_0x47d353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47d353([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27296c);return _0xbcb741?window[_0x47d353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x360f88(_0xbcb741),0x10)*_0x4d2de6:null;}function _0x28d8fc(_0x4d98b4){return new window[(_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d972e,_0x78f671)=>{_0x4d98b4[_0x47d353([0x74,0x68,0x65,0x6e])](_0x5d972e,_0x78f671),window[_0x47d353([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x78f671,0x2fe55f4d^_0x1ef029);});}}_0x4db712[_0x47d353([0x6f,0x6e])](_0x47d353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5052cb,_0xcadbe8)=>{if(_0xcadbe8[0x0]!=_0x51ac26)return _0x58a097(_0x47d353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xcadbe8[0x1]={..._0xcadbe8[0x1],[_0x47d353([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30987f};},{[_0x47d353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47d353([0x68,0x69,0x67,0x68])}),_0x4db712[_0x47d353([0x6f,0x6e])](_0x47d353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x171aa0=>{_0x171aa0[_0x47d353([0x72,0x65,0x74,0x75,0x72,0x6e])]instanceof window[_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])]&&(_0x182cd6=!0x0,_0x84daf(_0x171aa0[_0x47d353([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47d353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47d353([0x6c,0x6f,0x77])}),_0x448e61[_0x47d353([0x74,0x68,0x65,0x6e])](()=>{_0x182cd6||_0x58a097(_0x47d353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ea11e(){return _0x4db712[_0x47d353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47d353([0x76,0x69,0x65,0x77])][_0x47d353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47d353([0x61,0x75,0x74,0x6f]);}function _0x3e0ad5(){_0x4db712[_0x47d353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47d353([0x76,0x69,0x65,0x77])][_0x47d353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47d353([0x61,0x75,0x74,0x6f]);}}function _0x3c78be(_0x7d9727){const _0x40096d=[new window[(_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x67ac42=>setTimeout(_0x67ac42,0x2fedb541^_0x1ef029)),_0x448e61[_0x47d353([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a2ab8=>{let _0x1d8292=0x0;_0x4db712[_0x47d353([0x6d,0x6f,0x64,0x65,0x6c])][_0x47d353([0x6f,0x6e])](_0x47d353([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ec9e0,_0x5d3eb3)=>{_0x5d3eb3[0x0][_0x47d353([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d8292++,_0x1d8292==(0x2fe48a75^_0x1ef029)&&(_0x3a2ab8(),_0x1ec9e0[_0x47d353([0x6f,0x66,0x66])]());});}))];return window[_0x47d353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47d353([0x72,0x61,0x63,0x65])](_0x40096d)[_0x47d353([0x74,0x68,0x65,0x6e])](()=>_0x7d9727);}async function _0x19281a(){await _0x448e61,_0x4db712[_0x47d353([0x6d,0x6f,0x64,0x65,0x6c])][_0x47d353([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d8440,_0x4db712[_0x47d353([0x6d,0x6f,0x64,0x65,0x6c])][_0x47d353([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d8440,_0x4db712[_0x47d353([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47d353([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x346274(_0x2464f){const _0x428745=_0x3a1739();_0x4db712[_0x428745]=_0x47d353([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2464f,_0x2464f!=_0x47d353([0x56,0x61,0x6c,0x69,0x64])&&_0x19281a();}function _0x3a1739(){const _0x2634f7=window[_0x47d353([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47d353([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47d353([0x6e,0x6f,0x77])]())[_0x47d353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47d353([0x2e]),'');let _0xe79692=_0x47d353([0x73]);for(let _0x260e28=0x0;_0x260e28<_0x2634f7[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x260e28+=0x2){let _0x252349=window[_0x47d353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2634f7[_0x47d353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x260e28,_0x260e28+0x2));_0x252349>=_0x1f3397[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x252349-=_0x1f3397[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe79692+=_0x1f3397[_0x252349];}return _0xe79692;}function _0x5bfe0e(){const _0x264d36=_0x4962f4[_0x47d353([0x73,0x70,0x6c,0x69,0x74])](_0x47d353([0x2e]));if(0x3!=_0x264d36[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35d71a(_0x264d36[0x1]);function _0x35d71a(_0x2edac3){const _0x272398=_0x18aa6c(_0x2edac3);return _0x272398&&_0x450ffd()?_0x272398:null;function _0x450ffd(){const _0xb2ac85=_0x272398[_0x47d353([0x6a,0x74,0x69])],_0x36b3bb=window[_0x47d353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb2ac85[_0x47d353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb2ac85[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x585979={..._0x272398,[_0x47d353([0x6a,0x74,0x69])]:_0xb2ac85[_0x47d353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb2ac85[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x585979[_0x47d353([0x76,0x63])],_0x311d6c(_0x585979)==_0x36b3bb;}}}async function _0x47abc6(){let _0x21e400=!0x0;try{const _0x1a90b0=_0x4962f4[_0x47d353([0x73,0x70,0x6c,0x69,0x74])](_0x47d353([0x2e])),[_0xcda76f,_0x5d812a,_0x191d61]=_0x1a90b0;return _0x3a7662(_0xcda76f),await _0x5a0cdb(_0xcda76f,_0x5d812a,_0x191d61),_0x21e400;}catch(_0x4c8169){return!0x1;}function _0x3a7662(_0xec625f){const _0x444683=_0x18aa6c(_0xec625f);_0x444683&&_0x444683[_0x47d353([0x61,0x6c,0x67])]==_0x47d353([0x45,0x53,0x32,0x35,0x36])||(_0x21e400=!0x1);}async function _0x5a0cdb(_0x18af4c,_0x41dc57,_0x254f73){const _0x2f0d01=window[_0x47d353([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47d353([0x66,0x72,0x6f,0x6d])](_0x5725cf(_0x254f73),_0x181acb=>_0x181acb[_0x47d353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x150354=new window[(_0x47d353([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47d353([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18af4c+_0x47d353([0x2e])+_0x41dc57),_0x1337ca=window[_0x47d353([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47d353([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1337ca)return;const _0x428aa2=await _0x1337ca[_0x47d353([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47d353([0x6a,0x77,0x6b]),_0xcd2b5d,{[_0x47d353([0x6e,0x61,0x6d,0x65])]:_0x47d353([0x45,0x43,0x44,0x53,0x41]),[_0x47d353([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47d353([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47d353([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1337ca[_0x47d353([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47d353([0x6e,0x61,0x6d,0x65])]:_0x47d353([0x45,0x43,0x44,0x53,0x41]),[_0x47d353([0x68,0x61,0x73,0x68])]:{[_0x47d353([0x6e,0x61,0x6d,0x65])]:_0x47d353([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x428aa2,_0x2f0d01,_0x150354)||(_0x21e400=!0x1);}}function _0x18aa6c(_0x4825b8){return _0x4825b8[_0x47d353([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47d353([0x65,0x79]))?JSON[_0x47d353([0x70,0x61,0x72,0x73,0x65])](_0x5725cf(_0x4825b8)):null;}function _0x5725cf(_0x29ecba){return window[_0x47d353([0x61,0x74,0x6f,0x62])](_0x29ecba[_0x47d353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47d353([0x2b]))[_0x47d353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47d353([0x2f])));}function _0x311d6c(_0x1cd9ac){let _0x26c514=0x1505;function _0x136746(_0x2ad8b3){for(let _0x170b38=0x0;_0x170b38<_0x2ad8b3[_0x47d353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x170b38++){const _0x357ba1=_0x2ad8b3[_0x47d353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x170b38);_0x26c514=(_0x26c514<<0x5)+_0x26c514+_0x357ba1,_0x26c514&=_0x26c514;}}function _0x42c0dd(_0x53cb92){Array[_0x47d353([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53cb92)?_0x53cb92[_0x47d353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42c0dd):_0x53cb92&&typeof _0x53cb92==_0x47d353([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47d353([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53cb92)[_0x47d353([0x73,0x6f,0x72,0x74])]()[_0x47d353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24f182,_0x2e8a97])=>{_0x136746(_0x24f182),_0x42c0dd(_0x2e8a97);}):_0x136746(window[_0x47d353([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53cb92));}return _0x42c0dd(_0x1cd9ac),_0x26c514>>>0x0;}function _0x27d7bf(_0x31546e){return _0x31546e[_0x47d353([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47d353([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47d353([0x30]));}function _0x360f88(_0x29d6a5){return _0x29d6a5[_0x47d353([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47d353([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47d353([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d8440(){}function _0x47d353(_0x484e06){return _0x484e06['map'](_0x3cfbc5=>String['fromCharCode'](_0x3cfbc5))['join']('');}_0x346274(await _0x3fd7c3());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0xfd34d6=this['editor'],_0x5a8c93=_0xfd34d6['editing']['view'],_0x536c27=this['_getAttachedDomRoot']();if(!_0x536c27||0x0===_0x536c27['childElementCount'])return void _0xfd34d6['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0xad2f50,pageHeight:_0x41e15a}=_0xfd34d6['config']['get']('pagination'),{top:_0x1221d9,left:_0xd820f1,bottom:_0x34e9d7,right:_0xe3df06}=this['_configuredPaddings'];this['_pagesContainer']=new _0x9caf10(_0xfd34d6['locale']);const _0x17da1f=this['_pagesContainer'];_0x17da1f['set']('class',''),_0x17da1f['setTemplate']({'tag':'div','attributes':{'contenteditable':!0x0,'style':{'columnWidth':_0xad2f50,'width':_0xad2f50,'height':'calc(\x20'+_0x41e15a+'\x20-\x20'+_0x1221d9+'\x20-\x20'+_0x34e9d7+'\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0xe3df06+'\x200\x20'+_0xd820f1,'columnGap':'100px','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'tabindex':'-1','class':_0x17da1f['bindTemplate']['to']('class')}}),_0x17da1f['render'](),_0x536c27['parentNode']['insertBefore'](_0x17da1f['element'],_0x536c27['nextSibling']),this['listenTo'](_0x5a8c93,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x245ffd of this['editor']['editing']['view']['domRoots']['values']())if(_0x245ffd['ownerDocument']['body']['contains'](_0x245ffd))return _0x245ffd;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x49ff6d=this['editor']['editing']['view'],_0x781a30=this['_pagesContainer'],_0xc20bc4=this['_getAttachedDomRoot']();if(!_0xc20bc4)return Promise['resolve']();for(_0x781a30['class']=['ck-reset','ck-pagination-view',..._0xc20bc4['classList']]['join']('\x20');_0x781a30['element']['firstChild'];)_0x781a30['element']['firstChild']['remove']();const _0x5f143e=Array['from'](_0x49ff6d['domRoots']);_0x5f143e['sort'](([,_0xa31352],[,_0x41db95])=>_0xa31352['compareDocumentPosition'](_0x41db95)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x651d3d,_0x862131]of _0x5f143e){const _0x3f8b1b=_0x862131['cloneNode'](!0x0);'attributeStyleMap'in _0x3f8b1b&&_0x3f8b1b['attributeStyleMap']['clear'](),_0x3f8b1b['className']='',_0x3f8b1b['removeAttribute']('id'),_0x3f8b1b['dataset']['rootName']=_0x651d3d,_0x781a30['element']['append'](_0x3f8b1b);}return function(_0x2ea92e){return Promise['all'](_0x2ea92e['map'](_0x1c192d=>Promise['race']([m(_0x1c192d),p(0x3e8)])));}(Array['from'](_0x781a30['element']['querySelectorAll']('img')))['then'](()=>this['_updatePageBreaksData']());}['_updatePageBreaksData'](){const _0x35d9e1=this['_pagesContainer']['element'];if(!_0x35d9e1['ownerDocument']['body']['contains'](_0x35d9e1))return;const _0x59016d=new _0x44e5c7(_0x35d9e1)['excludeScrollbarsAndBorders'](),_0xc10f2=_0x216d89['window']['getComputedStyle'](_0x35d9e1),_0x151e6a=parseFloat(_0xc10f2['paddingLeft'])+parseFloat(_0xc10f2['paddingRight']),_0x51eb61=Math['floor'](_0x59016d['width']+0x64-_0x151e6a),_0x48805e=b(_0x35d9e1,Math['floor'](_0x59016d['left']-_0x35d9e1['scrollLeft']),_0x51eb61)['map'](_0x41149c=>this['_mapPageStarterInfoToPageBreakInfo'](_0x41149c));_0x48805e['every'](_0x37ea03=>!!_0x37ea03)&&(this['pageBreaks']=_0x48805e);}['_mapPageStarterInfoToPageBreakInfo'](_0x1129c0){const _0x5e9477=this['editor']['editing']['view'],_0x54ef0b=this['editor']['editing']['mapper'],_0x2ad3b8=_0x5e9477['domConverter'],_0x329425=_0x1129c0['path']['shift'](),_0x13e99a=this['_pagesContainer']['element']['childNodes'][_0x329425]['dataset']['rootName'],_0xe77a66=_0x5e9477['getDomRoot'](_0x13e99a);if(!_0xe77a66)return null;const _0x1f91b4=function(_0x2b5296,_0x3ffe4e){let _0x38c7d5=_0x2b5296;for(const _0x10741e of _0x3ffe4e['path']){if(!_0x38c7d5)return null;_0x38c7d5=_0x38c7d5['childNodes'][_0x10741e];}return _0x38c7d5;}(_0xe77a66,_0x1129c0);if(!_0x1f91b4)return null;const _0x253e60=_0x2ad3b8['domPositionToView'](_0x1f91b4,_0x1129c0['textOffset']||0x0);return _0x253e60?'manual'==_0x1129c0['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x253e60,_0x1f91b4):'text'==_0x1129c0['type']&&_0x54ef0b['toModelPosition'](_0x253e60)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x253e60,_0x1f91b4,_0x1129c0['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x253e60,_0x1f91b4,_0x1129c0['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x2ff6bc,_0x53b8f2){const _0x229965=this['editor']['model'],_0x5858ef=this['editor']['editing']['mapper']['toModelElement'](_0x2ff6bc['parent']),_0x2c926c=_0x229965['createRangeOn'](_0x5858ef);return new K({'type':'manual','modelRange':_0x2c926c,'domNode':_0x53b8f2,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x6fc191,_0x2fab0d,_0x1569a0){const _0x2455ff=this['editor']['model'],_0xd2dec4=this['editor']['editing']['mapper'],_0x2f76da=this['editor']['editing']['view']['domConverter'];if(_0x1569a0>=_0x2fab0d['length'])return null;const _0x3fedc1=_0xd2dec4['toModelPosition'](_0x6fc191),_0x2f3f54=_0x2455ff['createRange'](_0x3fedc1),_0x4ee641=_0xd2dec4['findMappedViewAncestor'](_0x6fc191),_0x3d4790=_0x2f76da['mapViewToDom'](_0x4ee641);return new K({'type':'text','modelRange':_0x2f3f54,'domNode':_0x2fab0d,'offset':w(_0x2fab0d,_0x1569a0,_0x3d4790)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x520f56,_0x1f9832,_0x45e267){const _0x1ab881=this['editor']['model'],_0x42d556=this['editor']['editing'],_0x357da8=_0x42d556['mapper'],_0x10ee2b=_0x42d556['view']['domConverter'],_0x3a528e=_0x357da8['findMappedViewAncestor'](_0x520f56),_0x4146c5=_0x357da8['toModelElement'](_0x3a528e),_0x504f9a=function(_0x310581){const _0x3680dd=_0x310581['parent'],_0x1e5f86=_0x3680dd['root']['document']['model'],_0x41bf36=_0x3680dd['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x460562=null;for(const _0x338709 of _0x41bf36){if(_0x338709['is']('rootElement'))return _0x460562;if(!_0x1e5f86['createPositionBefore'](_0x338709)['isTouching'](_0x310581))return _0x460562;_0x460562=_0x338709;}}(_0x1ab881['createPositionBefore'](_0x4146c5)),_0x21eedb=_0x504f9a||_0x4146c5;let _0x44d9e7=_0x357da8['toViewElement'](_0x21eedb),_0x70cb5c=_0x1ab881['createRangeOn'](_0x21eedb);const _0x15ec5c=_0x1ab881['createPositionBefore'](_0x21eedb)['nodeBefore'];if(_0x15ec5c&&_0x15ec5c['is']('element','imageBlock')){const _0x1ecc6b=_0x357da8['toViewElement'](_0x15ec5c),_0x14880e=_0x10ee2b['mapViewToDom'](_0x1ecc6b),_0x160d7e=_0x216d89['window']['getComputedStyle'](_0x14880e)['float'];'left'!=_0x160d7e&&'right'!=_0x160d7e||(_0x70cb5c=_0x1ab881['createRangeOn'](_0x15ec5c));}for(;_0x44d9e7['parent']!==_0x44d9e7['root']&&0x0===_0x44d9e7['index'];)_0x44d9e7=_0x44d9e7['parent'];const _0x997eb1=new _0x44e5c7(S(_0x1f9832)?_0x1f9832:P(_0x1f9832)),_0x13ea8b=_0x45e267?_0x997eb1['height']-_0x45e267:0x0,_0x214ff4=_0x10ee2b['mapViewToDom'](_0x44d9e7),_0x5b60a8=new _0x44e5c7(_0x214ff4);return new K({'type':'element','modelRange':_0x70cb5c,'domNode':_0x214ff4,'offset':Math['round'](_0x13ea8b)?_0x13ea8b+_0x997eb1['top']-_0x5b60a8['top']:0x0});}get['_configuredPaddings'](){const _0x5f4b74=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5f4b74);}static['_findPageStarterInfos'](_0x292261,_0x3a0f03,_0x43a4fb,_0x288350){return b(_0x292261,_0x3a0f03,_0x43a4fb,_0x288350);}}class K{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x54866b,modelRange:_0x5de36e,domNode:_0x44317f,offset:_0x3d96c9}){this['type']=_0x54866b,this['modelRange']=_0x5de36e,this['_domNode']=_0x44317f,this['_offset']=_0x3d96c9;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x2329c2=new _0x44e5c7(S(this['_domNode'])?this['_domNode']:P(this['_domNode']));return'manual'==this['type']?_0x2329c2['top']+_0x2329c2['height']/0x2:_0x2329c2['top']+this['_offset'];}}function w(_0x198a0b,_0x1449b0,_0x2fb8fb){const _0x33ec65=P(_0x198a0b),_0x2d9c85=function(_0x4aea42){const _0xada9c1=_0x216d89['document']['createRange']();return _0xada9c1['selectNodeContents'](_0x4aea42),_0xada9c1;}(_0x2fb8fb);let _0x341cfa;_0x341cfa=0x0==_0x1449b0?k(_0x2d9c85['startContainer'],_0x2d9c85['startOffset'],_0x198a0b['parentNode'],Array['from'](_0x198a0b['parentNode']['childNodes'])['indexOf'](_0x198a0b)):k(_0x2d9c85['startContainer'],_0x2d9c85['startOffset'],_0x198a0b,_0x1449b0);const _0x3983aa=k(_0x198a0b,_0x1449b0,_0x2d9c85['endContainer'],_0x2d9c85['endOffset']),_0x1fa959=new _0x44e5c7(_0x341cfa)['bottom'];return(new _0x44e5c7(_0x3983aa)['top']+_0x1fa959)/0x2-new _0x44e5c7(_0x33ec65)['top'];}function m(_0x180746){return new Promise(_0x627cfb=>{function _0x10dc33(){_0x180746['removeEventListener']('load',_0x10dc33),_0x180746['removeEventListener']('error',_0x10dc33),_0x627cfb();}_0x180746['complete']?_0x627cfb():(_0x180746['addEventListener']('load',_0x10dc33),_0x180746['addEventListener']('error',_0x10dc33));});}function p(_0x4663ed){return new Promise(_0x11ee49=>setTimeout(_0x11ee49,_0x4663ed));}function P(_0x56794a){const _0x3d12aa=_0x216d89['document']['createRange']();return _0x3d12aa['selectNode'](_0x56794a),_0x3d12aa;}function y(_0x1145d2,_0x55de39,_0x20aaaa){const _0x56bd0b=_0x216d89['document']['createRange']();return _0x56bd0b['setStart'](_0x1145d2,_0x55de39),_0x56bd0b['setEnd'](_0x1145d2,_0x20aaaa),_0x56bd0b;}function k(_0xac73d,_0x32fe7d,_0x551c54,_0x21667b){const _0x35ad77=_0x216d89['document']['createRange']();return _0x35ad77['setStart'](_0xac73d,_0x32fe7d),_0x35ad77['setEnd'](_0x551c54,_0x21667b),_0x35ad77;}function b(_0x193ced,_0x4459fb,_0x35a7fd,_0x218328){const _0x1f6a8b=[];for(const [_0x22f729,_0x559742]of _0x193ced['childNodes']['entries']()){let _0x1e6b1b=[];S(_0x559742)&&_0x559742['offsetParent']&&!_0x559742['style']['position']?_0x1e6b1b=x(_0x559742,_0x22f729,_0x4459fb,_0x35a7fd,_0x218328):N(_0x559742)&&(_0x1e6b1b=I(_0x559742,_0x22f729,_0x4459fb,_0x35a7fd,_0x218328)),_0x1e6b1b['length']&&(_0x1f6a8b['push'](..._0x1e6b1b),_0x4459fb+=_0x1e6b1b['length']*_0x35a7fd,_0x218328=!0x1);}return _0x1f6a8b;}function x(_0x4cdac1,_0x547a5f,_0x1128d9,_0x11e69f,_0xe81f16){const _0x2b51e5=[];var _0x1f3f46;(_0x1f3f46=_0x4cdac1['previousSibling'])&&S(_0x1f3f46)&&Boolean(_0x1f3f46['classList']['contains']('page-break')||_0x1f3f46['closest']('.page-break'))&&(_0x2b51e5['push']({'type':'manual','offset':0x0,'path':[_0x547a5f-0x1]}),_0xe81f16=!0x0);const _0x73dc81=_0x4cdac1['closest']('figure.image');if(_0x73dc81&&function(_0x379a5f){let _0x2b422c=!0x1;const _0x5ccfe8=_0x379a5f['parentElement'],_0x1ed7b7=_0x5ccfe8['dataset']['rootName'],_0x199690=_0x379a5f['nextElementSibling'],_0x4fec4e=_0x379a5f['previousElementSibling'],_0x5370ea=_0x199690&&_0x216d89['window']['getComputedStyle'](_0x199690)['float'],_0x6ae9bc=_0x199690&&'ck-fake-selection-container'===_0x199690['className'];!_0x1ed7b7||_0x199690||_0x4fec4e||(_0x2b422c=!0x0),_0x1ed7b7&&!_0x4fec4e&&_0x6ae9bc&&(_0x2b422c=!0x0),_0x1ed7b7&&!_0x4fec4e&&'none'!==_0x5370ea&&(_0x2b422c=!0x0);if(_0x2b422c)return!0x1;return!0x0;}(_0x73dc81)){const _0x572fbb=_0x216d89['window']['getComputedStyle'](_0x73dc81)['float'];if('left'==_0x572fbb||'right'==_0x572fbb)return _0x2b51e5;}const _0x19eed0=b(_0x4cdac1,_0x1128d9,_0x11e69f,_0xe81f16);if(_0x19eed0['length']){for(const _0x4609a6 of _0x19eed0)_0x2b51e5['push']({'type':_0x4609a6['type'],'offset':_0x4609a6['offset'],'textOffset':_0x4609a6['textOffset'],'path':[_0x547a5f,..._0x4609a6['path']]}),_0x1128d9+=_0x11e69f,_0xe81f16=!0x1;return _0x2b51e5;}return _0x2b51e5['push'](...function(_0x3fc657,_0x1d949b,_0x23dd0b,_0x3206e7,_0x156c6f){const _0x5b72b9=[];if('table-cell'==_0x216d89['window']['getComputedStyle'](_0x3fc657)['display'])return[];const _0x484a75=[];for(const _0x1be837 of _0x3fc657['getClientRects']())if(_0x1be837['left']>=_0x23dd0b){for(const _0x59f3ea of _0x484a75)_0x59f3ea['height']+=_0x1be837['height'];_0x484a75['push']({'height':_0x1be837['height']}),_0x23dd0b+=_0x3206e7;}for(const _0x27c23a of _0x484a75)_0x156c6f||_0x5b72b9['push']({'type':'element','offset':_0x27c23a['height'],'textOffset':0x0,'path':[_0x1d949b]}),_0x156c6f=!0x1;return _0x5b72b9;}(_0x4cdac1,_0x547a5f,_0x1128d9,_0x11e69f,_0xe81f16)),_0x2b51e5;}function I(_0x29d900,_0xdb6466,_0x27ccb3,_0x1c57a1,_0x59f862){const _0x5dd38d=P(_0x29d900),_0x1216ef=[];let _0x4666ea=0x0;for(const _0x54f220 of _0x5dd38d['getClientRects']())if(_0x54f220['left']>=_0x27ccb3){const _0x23c248=B(_0x29d900,_0x4666ea,_0x27ccb3,_0x1c57a1);_0x59f862||_0x1216ef['push']({'type':'text','path':[_0xdb6466],'textOffset':_0x23c248}),_0x4666ea=_0x23c248,_0x27ccb3+=_0x1c57a1,_0x59f862=!0x1;}return _0x1216ef;}function B(_0x54bb26,_0x4e9edb,_0x1f4c62,_0xb8e231){let _0x17c7f6=_0x4e9edb,_0x1003fc=_0x54bb26['length'];for(;_0x1003fc-_0x17c7f6>0x1;){const _0x4397ca=Math['ceil']((_0x17c7f6+_0x1003fc)/0x2);_(y(_0x54bb26,_0x17c7f6,_0x4397ca),_0x1f4c62,_0xb8e231)?_0x1003fc=_0x4397ca:_0x17c7f6=_0x4397ca;}return _0x17c7f6;}function _(_0x37e3eb,_0x3c5a7,_0x37fedc){for(const _0x252965 of _0x37e3eb['getClientRects']())if(_0x252965['left']>=_0x3c5a7&&_0x252965['left']<_0x3c5a7+_0x37fedc)return!0x0;return!0x1;}function S(_0x405085){return _0x405085['nodeType']==Node['ELEMENT_NODE'];}function N(_0x1f52b7){return _0x1f52b7['nodeType']==Node['TEXT_NODE'];}const z=_0x173c27('px');class q extends _0x9caf10{constructor(){super();const _0x347dd4=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x347dd4['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x347dd4['if']('isVisible','ck-hidden',_0x7e4d93=>!_0x7e4d93)],'style':{'left':_0x347dd4['to']('left',_0x587824=>z(_0x587824)),'top':_0x347dd4['to']('top',_0x63db87=>z(_0x63db87)),'width':_0x347dd4['to']('width',_0x1f031b=>z(_0x1f031b))}}});}}class O{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x150e76){this['_viewCollection']=_0x150e76['ui']['view']['body'];}['destroy'](){for(const _0x207347 of this['_hiddenLines'])_0x207347['destroy']();}['cleanLines'](){for(const _0x3b2904 of this['_visibleLines'])_0x3b2904['isVisible']=!0x1,this['_hiddenLines']['add'](_0x3b2904);this['_visibleLines']['clear']();}['showLine'](_0x46e505,_0x10eafe,_0x4513f6,_0x2db6bd){let _0xff50ff;this['_hiddenLines']['size']?(_0xff50ff=_0x36c93f(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0xff50ff)):_0xff50ff=new q(),_0xff50ff['set']({'pageNumber':_0x2db6bd,'left':_0x46e505,'top':_0x10eafe,'width':_0x4513f6}),_0xff50ff['isVisible']=!0x0,this['_viewCollection']['has'](_0xff50ff)||this['_viewCollection']['add'](_0xff50ff),this['_visibleLines']['add'](_0xff50ff);}}const E='ck-pagination_enabled';class n extends _0x18e88f{['_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 O(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'](E),this['on']('change:isEnabled',(_0x12f521,_0x2a6f5e,_0x3a6c50)=>{_0x3a6c50||this['_linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](E,_0x3a6c50);});}['destroy'](){this['_toggleEditingRootsClass'](E,!0x1),this['_linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x12b6b2){if(!this['isEnabled'])return;const _0x536ea3=_0x12b6b2>0x1?this['_getPageBreakLineOffset'](_0x12b6b2-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x536ea3-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0xa6c4ca['isMotionReduced']?'instant':'smooth'});}['_onUiReady'](){const _0x200b25=this['editor'],_0x1334e9=this['_getAttachedDomRoot']();_0x1334e9?(this['_scrollableEditingRootDomAncestor']=function(_0x12e601){let _0x2bf470=_0x12e601;do{_0x2bf470=_0x2bf470['parentElement'];const _0x325f33=_0x216d89['window']['getComputedStyle'](_0x2bf470)['overflowY'];if('auto'==_0x325f33||'scroll'==_0x325f33)break;}while('BODY'!=_0x2bf470['tagName']);return _0x2bf470;}(_0x1334e9),_0x200b25['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),_0x200b25['ui']['view']['listenTo'](_0x216d89['window'],'resize',()=>this['_updatePageBreakLines']()),this['_resizeObserver']=new _0x2926d4(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();}),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x200b25['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x214478 of this['editor']['editing']['view']['domRoots']['values']())if(_0x214478['ownerDocument']['body']['contains'](_0x214478))return _0x214478;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x21d61c=this['_getAttachedDomRoot'](),_0x2cec96=this['_paginationLookupPlugin']['pageBreaks'];if(this['_linesRepository']['cleanLines'](),!_0x21d61c||0x1==_0x2cec96['length'])return void(this['pageNumber']=0x1);const _0x4cab47=new _0x44e5c7(_0x21d61c)['excludeScrollbarsAndBorders'](),_0x12f447=new _0x44e5c7(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x1c2088=_0x12f447['top']+_0x12f447['height']/0x3;let _0x2bb928=!0x1;const _0x281cba=[];for(let _0x387d31=0x1;_0x387d31<_0x2cec96['length'];_0x387d31++){const _0x19d087=this['_getPageBreakLineOffset'](_0x387d31,_0x12f447);if(!_0x19d087)continue;const _0x1a28d7=_0x12f447['top']+_0x19d087-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x281cba['push']({'pageOffsetTop':_0x1a28d7,'domRootRect':_0x4cab47,'domScrollableRect':_0x12f447,'pageNumber':_0x387d31}),_0x1a28d7>_0x1c2088&&!_0x2bb928&&(this['pageNumber']=_0x387d31,_0x2bb928=!0x0);}this['_renderPageBreakLines'](_0x281cba),_0x2bb928||(this['pageNumber']=_0x2cec96['length']);}['_renderPageBreakLines'](_0x4f693c){const {scrollX:_0xade859,scrollY:_0x5df04c}=_0x216d89['window'];if(_0x4f693c['length']){for(const {domScrollableRect:_0x40b0b6,pageOffsetTop:_0x4439fe,domRootRect:_0x103c70,pageNumber:_0x12b050}of _0x4f693c)_0x40b0b6['top']<_0x4439fe&&_0x4439fe<_0x40b0b6['bottom']&&this['_linesRepository']['showLine'](_0x103c70['left']+_0xade859,_0x4439fe+_0x5df04c,_0x103c70['width'],_0x12b050+0x1);}}['_getPageBreakLineOffset'](_0x28630e,_0x17ea98=null){const _0x2eb508=this['_paginationLookupPlugin']['pageBreaks'][_0x28630e]['offset'];return _0x2eb508?(_0x17ea98||(_0x17ea98=new _0x44e5c7(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x2eb508-_0x17ea98['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x2affb4,_0x188c69=!0x0){const _0x45383a=this['editor']['editing']['view'];_0x45383a['change'](_0x127efd=>{for(const _0x41c8bd of _0x45383a['document']['roots'])_0x188c69?_0x127efd['addClass'](_0x2affb4,_0x41c8bd):_0x127efd['removeClass'](_0x2affb4,_0x41c8bd);});}}function g(_0x133cd0,_0x38efd3,..._0x485cde){const t=_0x133cd0['t'];switch(_0x38efd3){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)',..._0x485cde);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 _0x38efd3;}}class r extends _0x18e88f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a,n];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x483297=this['editor']['plugins']['get']('Pagination'),_0x92c5cf=this['editor']['plugins']['get'](a),_0x28eca6=this['editor']['plugins']['get'](n);this['bind']('isEnabled')['to'](_0x483297),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x28eca6),this['listenTo'](_0x92c5cf,'change:pageBreaks',(_0x5bcbf9,_0x329417,_0x2df7eb,_0x1d85ef)=>{this['totalPages']=_0x2df7eb['length'],this['_updatePageBreakMarkers'](_0x2df7eb,_0x1d85ef);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x59e8ef=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16ad53;for(const _0x6a71a1 in _0x59e8ef){const _0x2c1a62=_0x6a71a1,_0x99e3f8=_0x59e8ef[_0x2c1a62];if('paginationLicenseKeyValid'==_0x99e3f8||'paginationLicenseKeyInvalid'==_0x99e3f8||'paginationLicenseKeyExpired'==_0x99e3f8||'paginationLicenseKeyDomainLimit'==_0x99e3f8||'paginationLicenseKeyNotAllowed'==_0x99e3f8||'paginationLicenseKeyEvaluationLimit'==_0x99e3f8||'paginationLicenseKeyTrialLimit'==_0x99e3f8||'paginationLicenseKeyDevelopmentLimit'==_0x99e3f8||'paginationLicenseKeyUsageLimit'==_0x99e3f8){delete _0x59e8ef[_0x2c1a62],_0x16ad53=_0x99e3f8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x16ad53&&_0x59e8ef['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x16ad53&&_0x59e8ef['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x16ad53&&_0x59e8ef['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x16ad53&&_0x59e8ef['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x16ad53&&_0x59e8ef['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyTrialLimit'==_0x16ad53&&_0x59e8ef['_showLicenseError']('trialLimit'),'paginationLicenseKeyDevelopmentLimit'==_0x16ad53&&_0x59e8ef['_showLicenseError']('developmentLimit'),'paginationLicenseKeyUsageLimit'==_0x16ad53&&_0x59e8ef['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x248a27){if(!this['isEnabled'])return;this['editor']['plugins']['get'](n)['scrollToPage'](this['_validatePageNumber'](_0x248a27));}['moveSelectionToPage'](_0x547bdf){if(!this['isEnabled'])return;const _0x5a8261=this['editor'],_0x4b1a7c=this['editor']['plugins']['get'](a)['pageBreaks'][_0x547bdf-0x1];_0x4b1a7c&&_0x5a8261['model']['change'](_0x464db1=>{switch(_0x4b1a7c['type']){case'manual':{const _0x330a5d=_0x5a8261['model']['schema']['getNearestSelectionRange'](_0x4b1a7c['modelRange']['end'],'forward');_0x464db1['setSelection'](_0x330a5d);break;}case'element':{const _0x2492e9=_0x5a8261['model']['schema']['getNearestSelectionRange'](_0x4b1a7c['modelRange']['start'],'forward');_0x464db1['setSelection'](_0x2492e9);break;}case'text':{const _0x184655=_0x4b1a7c['modelRange']['start'];if('\x20'===_0x184655['textNode']['data'][_0x184655['offset']]){const _0x2ad84f=_0x464db1['createPositionAt'](_0x184655['parent'],_0x184655['offset']+0x1);_0x464db1['setSelection'](_0x2ad84f);}else _0x464db1['setSelection'](_0x4b1a7c['modelRange']);}}_0x5a8261['editing']['view']['focus']();});}['goToNextPage'](){const _0x230b3f=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x230b3f),this['scrollToPage'](_0x230b3f);}['goToPreviousPage'](){const _0x4c1f37=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x4c1f37),this['scrollToPage'](_0x4c1f37);}['_updatePageBreakMarkers'](_0x5d8bde,_0x31cc3c){const _0x4b87aa=this['editor']['model'];this['isEnabled']&&_0x4b87aa['change'](_0xb1c94a=>{for(let _0x2066e4=0x1;_0x2066e4<_0x5d8bde['length'];_0x2066e4++){const _0x1f0e40=_0x5d8bde[_0x2066e4]['modelRange'],_0x160c06='pagination:'+(_0x2066e4+0x1);_0x4b87aa['markers']['has'](_0x160c06)?_0xb1c94a['updateMarker'](_0x160c06,{'range':_0x1f0e40}):_0xb1c94a['addMarker'](_0x160c06,{'range':_0x1f0e40,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x2e37c5=_0x5d8bde['length'];_0x2e37c5<_0x31cc3c['length'];_0x2e37c5++){const _0x11f3c1='pagination:'+(_0x2e37c5+0x1);_0x4b87aa['markers']['has'](_0x11f3c1)&&_0xb1c94a['removeMarker'](_0x11f3c1);}});}['_setUpDataDowncastConversion'](){const _0x4ece55='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x8467d0=>{_0x8467d0['on']('addMarker:'+_0x4ece55,(_0x210f3f,{markerRange:_0x509ddf,markerName:_0x8bd4d7},_0xc6ff7f)=>{if(!_0xc6ff7f['options']['pagination'])return;if(!_0xc6ff7f['consumable']['consume'](_0x509ddf,_0x210f3f['name']))return;const _0x533e53=_0x509ddf['getContainedElement']();let _0x18df3c=_0x533e53?_0xc6ff7f['mapper']['toViewElement'](_0x533e53):null;if(!_0x18df3c){const _0x1784c0=_0x509ddf['start'];if(_0xc6ff7f['schema']['checkChild'](_0x1784c0,'$text')){const _0x14ae6f=_0xc6ff7f['mapper']['toViewPosition'](_0x1784c0);_0x18df3c=_0xc6ff7f['writer']['createContainerElement']('span'),_0x18df3c['getFillerOffset']=()=>null,_0xc6ff7f['writer']['insert'](_0x14ae6f,_0x18df3c);}else{const _0x2fea97=_0x1784c0['nodeAfter'];_0x18df3c=_0xc6ff7f['mapper']['toViewElement'](_0x2fea97);}}for(;_0x18df3c['parent']!==_0x18df3c['root']&&0x0===_0x18df3c['index'];)_0x18df3c=_0x18df3c['parent'];const _0x2d4bd3=_0x8bd4d7['substring'](0xb);_0x18df3c['hasClass']('page-break')||(_0xc6ff7f['writer']['setStyle']('page-break-before','always',_0x18df3c),_0xc6ff7f['writer']['setAttribute']('data-pagination-page',_0x2d4bd3,_0x18df3c),_0xc6ff7f['mapper']['bindElementToMarker'](_0x18df3c,_0x8bd4d7)),_0x210f3f['stop']();});});}['_setupKeystrokes'](){const _0x5232b3=this['editor'];_0x5232b3['keystrokes']['set']('Shift+Pageup',(_0xf38a89,_0x2982ac)=>{this['goToPreviousPage'](),_0x2982ac();}),_0x5232b3['keystrokes']['set']('Shift+Pagedown',(_0x4ca769,_0x6d4907)=>{this['goToNextPage'](),_0x6d4907();}),_0x5232b3['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':g(_0x5232b3['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':g(_0x5232b3['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':g(_0x5232b3['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x25309d){return _0x25309d<0x1&&(_0x25309d=0x1),_0x25309d>this['totalPages']&&(_0x25309d=this['totalPages']),_0x25309d;}}class j extends _0x9caf10{['pageNumberView'];constructor(_0x57a2fe){super(_0x57a2fe);const _0x42734e=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x1218c9(_0x57a2fe,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x411f98=>g(_0x57a2fe,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x411f98)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x402a47=>!_0x402a47),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x42734e['if']('isEnabled','ck-disabled',_0x562695=>!_0x562695)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x42734e['to']('totalPages')}]}]});}['render'](){super['render']();const _0xb81f90=this['pageNumberView']['element'],_0x4f6aee=_0x5785c9=>{this['pageNumberView']['element']['value']=String(_0x5785c9);};_0x4f6aee(this['pageNumber']),this['on']('change:pageNumber',(_0x245104,_0x3ab514,_0x1be620)=>{_0x4f6aee(_0x1be620);}),this['listenTo'](_0xb81f90,'keydown',(_0x4edb04,_0x307977)=>{if('ArrowUp'===_0x307977['key']||'ArrowDown'===_0x307977['key'])return void _0x307977['stopPropagation']();if(_0x307977['keyCode']!==_0x5f9931['enter'])return;_0x307977['preventDefault']();const _0xbc2a7c=_0xb81f90['valueAsNumber'];Number['isNaN'](_0xbc2a7c)?_0xb81f90['value']=String(this['pageNumber']):(_0xb81f90['checkValidity']()?this['pageNumber']=_0xbc2a7c:_0xbc2a7c>this['totalPages']?(this['pageNumber']=this['totalPages'],_0xb81f90['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0xb81f90['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0xb81f90,'blur',()=>{_0xb81f90['value']=String(this['pageNumber']);}),this['listenTo'](_0xb81f90,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class s extends _0x18e88f{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5266f6=this['editor'],_0x45cdfa=_0x5266f6['plugins']['get']('PaginationEditing');_0x5266f6['ui']['componentFactory']['add']('pageNavigation',_0x4bcde7=>{const _0x3da764=new j(_0x4bcde7);return _0x3da764['bind']('pageNumber')['to'](_0x45cdfa),_0x3da764['bind']('totalPages')['to'](_0x45cdfa),_0x3da764['bind']('isEnabled')['to'](_0x45cdfa),_0x3da764['on']('navigation',(_0x2889ff,_0x3be38c)=>{_0x45cdfa['moveSelectionToPage'](_0x3be38c),_0x45cdfa['scrollToPage'](_0x3be38c);}),_0x3da764;}),_0x5266f6['ui']['componentFactory']['add']('nextPage',_0x465a27=>{const _0x3edf44=new _0x1bbd05(_0x465a27);return _0x3edf44['isEnabled']=!0x0,_0x3edf44['label']=g(_0x5266f6['locale'],'Go\x20to\x20next\x20page'),_0x3edf44['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10\x20.75a9.25\x209.25\x200\x20110\x2018.5\x209.25\x209.25\x200\x20010-18.5zm0\x201.5a7.75\x207.75\x200\x20100\x2015.5\x207.75\x207.75\x200\x20000-15.5zm0\x202.022a.75.75\x200\x2001.743.649l.007.101v8.165l2.714-2.705a.75.75\x200\x2001.977-.07l.084.072a.75.75\x200\x2001.07.976l-.072.084-3.994\x203.981a.75.75\x200\x2001-.975.073l-.084-.073-3.99-3.98a.75.75\x200\x2001.975-1.135l.085.072\x202.71\x202.706V5.022a.75.75\x200\x2001.75-.75z\x22/></svg>\x0a',_0x3edf44['tooltip']=!0x0,_0x3edf44['keystroke']='Shift+PageDown',_0x3edf44['bind']('isEnabled')['to'](_0x45cdfa),this['listenTo'](_0x3edf44,'execute',()=>{_0x45cdfa['goToNextPage']();}),_0x3edf44;}),_0x5266f6['ui']['componentFactory']['add']('previousPage',_0x5460cb=>{const _0x160749=new _0x1bbd05(_0x5460cb);return _0x160749['isEnabled']=!0x0,_0x160749['label']=g(_0x5266f6['locale'],'Go\x20to\x20previous\x20page'),_0x160749['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10\x2019.25a9.25\x209.25\x200\x20100-18.5\x209.25\x209.25\x200\x20000\x2018.5zm0-1.5a7.75\x207.75\x200\x20110-15.5\x207.75\x207.75\x200\x20010\x2015.5zm0-2.022a.75.75\x200\x2000.743-.649l.007-.101V6.813l2.714\x202.705a.75.75\x200\x2000.977.07l.084-.072a.75.75\x200\x2000.07-.976l-.072-.084-3.994-3.981a.75.75\x200\x2000-.975-.073l-.084.073-3.99\x203.98a.75.75\x200\x2000.975\x201.135l.085-.072\x202.71-2.706v8.166c0\x20.414.336.75.75.75z\x22/></svg>\x0a',_0x160749['tooltip']=!0x0,_0x160749['keystroke']='Shift+PageUp',_0x160749['bind']('isEnabled')['to'](_0x45cdfa),this['listenTo'](_0x160749,'execute',()=>{_0x45cdfa['goToPreviousPage']();}),_0x160749;});}}class o extends _0x18e88f{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r,s];}constructor(_0x5d38f1){super(_0x5d38f1),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x4e29f8=this['editor']['plugins']['get'](r);this['bind']('pageNumber')['to'](_0x4e29f8),this['bind']('totalPages')['to'](_0x4e29f8),_0xa6c4ca['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x444979){this['editor']['plugins']['get'](r)['scrollToPage'](_0x444979);}}export{o as Pagination};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/legacyerrors
11
+ * @publicApi
12
+ */
13
+ /**
14
+ * Invalid license key. Please contact our customer support at https://ckeditor.com/contact/.
15
+ *
16
+ * @error pagination-invalid-license-key
17
+ */
18
+ /**
19
+ * You have exhausted the trial usage limit (reason: reached document changes limit). Restart the editor.
20
+ *
21
+ * Please contact our customer support to get a full access at https://ckeditor.com/contact/.
22
+ *
23
+ * @error pagination-trial-license-key-reached-limit-changes
24
+ */
@@ -0,0 +1,147 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/pagination
11
+ * @publicApi
12
+ */
13
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
+ import PaginationEditing from './paginationediting.js';
15
+ import PaginationUI from './paginationui.js';
16
+ /**
17
+ * The pagination feature.
18
+ */
19
+ export default class Pagination extends Plugin {
20
+ /**
21
+ * The current page number.
22
+ *
23
+ * @observable
24
+ * @default 1
25
+ * @readonly
26
+ */
27
+ readonly pageNumber: number;
28
+ /**
29
+ * The total page count.
30
+ *
31
+ * @observable
32
+ * @default 1
33
+ * @readonly
34
+ */
35
+ readonly totalPages: number;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get pluginName(): "Pagination";
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get isOfficialPlugin(): true;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get isPremiumPlugin(): true;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ static get requires(): readonly [typeof PaginationEditing, typeof PaginationUI];
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ constructor(editor: Editor);
56
+ /**
57
+ * @inheritDoc
58
+ */
59
+ init(): void;
60
+ /**
61
+ * Scroll the editor content to a desired page.
62
+ *
63
+ * @param pageNumber The page number (counting from 1).
64
+ */
65
+ scrollToPage(pageNumber: number): void;
66
+ }
67
+ /**
68
+ * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
69
+ *
70
+ * ```ts
71
+ * ClassicEditor
72
+ * .create( editorElement, {
73
+ * pagination: {
74
+ * // A4
75
+ * pageWidth: '21cm',
76
+ * pageHeight: '29.7cm',
77
+ *
78
+ * pageMargins: {
79
+ * top: '20mm',
80
+ * bottom: '20mm',
81
+ * left: '12mm',
82
+ * right: '12mm'
83
+ * }
84
+ * }
85
+ * } )
86
+ * .then( ... )
87
+ * .catch( ... );
88
+ * ```
89
+ *
90
+ * **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
91
+ * {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
92
+ *
93
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
94
+ */
95
+ export interface PaginationConfig {
96
+ /**
97
+ * The page width.
98
+ */
99
+ pageWidth: string;
100
+ /**
101
+ * The page height.
102
+ */
103
+ pageHeight: string;
104
+ /**
105
+ * The page margins.
106
+ */
107
+ pageMargins: PaginationMarginsConfig;
108
+ /**
109
+ * The pagination feature is by default enabled only in browsers that are using the Blink engine
110
+ * (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
111
+ * we will be working on them in the future.
112
+ *
113
+ * This behavior can be modified by setting this configuration value to `true`.
114
+ *
115
+ * @default false
116
+ */
117
+ enableOnUnsupportedBrowsers?: boolean;
118
+ }
119
+ /**
120
+ * The configuration of the pagination feature page margins.
121
+ */
122
+ export interface PaginationMarginsConfig {
123
+ /**
124
+ * The top margin.
125
+ */
126
+ top: string;
127
+ /**
128
+ * The bottom margin.
129
+ */
130
+ bottom: string;
131
+ /**
132
+ * The left margin.
133
+ */
134
+ left: string;
135
+ /**
136
+ * The right margin.
137
+ */
138
+ right: string;
139
+ }
140
+ /**
141
+ * The configuration required by the pagination plugin is missing.
142
+ * Follow the instructions provided in {@glink features/pagination/pagination#configuration Pagination feature documentation}
143
+ * to initialize the plugin properly.
144
+ *
145
+ * @error pagination-config-not-found
146
+ * @param {module:core/editor/editorconfig~EditorConfig} config Configuration of the editor.
147
+ */
@@ -0,0 +1,82 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/paginationediting
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ import PaginationLookup from './paginationlookup.js';
14
+ import PaginationRenderer from './paginationrenderer.js';
15
+ import '../theme/pagination.css';
16
+ /**
17
+ * The pagination editing plugin.
18
+ */
19
+ export default class PaginationEditing extends Plugin {
20
+ /**
21
+ * The current page number.
22
+ *
23
+ * @observable
24
+ * @default 1
25
+ * @readonly
26
+ */
27
+ readonly pageNumber: number;
28
+ /**
29
+ * The total page count.
30
+ *
31
+ * @observable
32
+ * @default 1
33
+ * @readonly
34
+ */
35
+ totalPages: number;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get pluginName(): "PaginationEditing";
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get isOfficialPlugin(): true;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get isPremiumPlugin(): true;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ static get requires(): readonly [typeof PaginationLookup, typeof PaginationRenderer];
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ init(): void;
56
+ /**
57
+ * @inheritDoc
58
+ */
59
+ destroy(): void;
60
+ /**
61
+ * Scroll the editor content to a desired page.
62
+ *
63
+ * @param pageNumber The page number (counting from 1).
64
+ */
65
+ scrollToPage(pageNumber: number): void;
66
+ /**
67
+ * Moves the selection to the beginning of a specific page.
68
+ *
69
+ * Also see {@link #scrollToPage}.
70
+ *
71
+ * @param pageNumber The page number (counting from 1).
72
+ */
73
+ moveSelectionToPage(pageNumber: number): void;
74
+ /**
75
+ * Scrolls the document and moves the user selection to the next page.
76
+ */
77
+ goToNextPage(): void;
78
+ /**
79
+ * Scrolls the document and moves the user selection to the previous page.
80
+ */
81
+ goToPreviousPage(): void;
82
+ }