@efds-ui/behavior 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +192 -2
- package/dist/balloon-entry.d.ts +8 -0
- package/dist/balloon-entry.js +1 -0
- package/dist/cep-DWPro2E9.js +154 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/agenda.d.ts +28 -0
- package/dist/components/alert.d.ts +8 -0
- package/dist/components/avatar.d.ts +15 -0
- package/dist/components/banner.d.ts +10 -0
- package/dist/components/button-busy.d.ts +8 -0
- package/dist/components/cep.d.ts +17 -0
- package/dist/components/combobox.d.ts +13 -0
- package/dist/components/command.d.ts +28 -0
- package/dist/components/conditional.d.ts +19 -0
- package/dist/components/confirm.d.ts +9 -0
- package/dist/components/copy.d.ts +11 -0
- package/dist/components/cropper.d.ts +14 -0
- package/dist/components/datepicker.d.ts +6 -0
- package/dist/components/dialogs.d.ts +35 -0
- package/dist/components/dirty-guard.d.ts +15 -0
- package/dist/components/dropdown.d.ts +9 -0
- package/dist/components/filter-bar.d.ts +24 -0
- package/dist/components/format.d.ts +12 -0
- package/dist/components/gallery.d.ts +11 -0
- package/dist/components/image-shared.d.ts +11 -0
- package/dist/components/image.d.ts +13 -0
- package/dist/components/loader.d.ts +69 -0
- package/dist/components/lookup.d.ts +18 -0
- package/dist/components/mask.d.ts +18 -0
- package/dist/components/modal.d.ts +16 -0
- package/dist/components/notifications.d.ts +16 -0
- package/dist/components/number.d.ts +14 -0
- package/dist/components/otp.d.ts +13 -0
- package/dist/components/page-messages.d.ts +39 -0
- package/dist/components/password.d.ts +11 -0
- package/dist/components/popover.d.ts +11 -0
- package/dist/components/select-readonly.d.ts +8 -0
- package/dist/components/session.d.ts +48 -0
- package/dist/components/sidebar.d.ts +10 -0
- package/dist/components/sortable.d.ts +3 -0
- package/dist/components/status-region.d.ts +1 -0
- package/dist/components/table-export.d.ts +21 -0
- package/dist/components/table-filter.d.ts +9 -0
- package/dist/components/table.d.ts +13 -0
- package/dist/components/tabs.d.ts +8 -0
- package/dist/components/theme-color.d.ts +10 -0
- package/dist/components/timepicker.d.ts +15 -0
- package/dist/components/toast.d.ts +30 -0
- package/dist/components/tooltip.d.ts +13 -0
- package/dist/components/tree.d.ts +12 -0
- package/dist/components/upload.d.ts +10 -0
- package/dist/components/wizard.d.ts +15 -0
- package/dist/config-DFz_FB2q.js +310 -0
- package/dist/core/cep.d.ts +36 -0
- package/dist/core/config.d.ts +303 -0
- package/dist/core/data.d.ts +22 -0
- package/dist/core/date.d.ts +46 -0
- package/dist/core/dom.d.ts +28 -0
- package/dist/core/drag.d.ts +66 -0
- package/dist/core/error-slot.d.ts +14 -0
- package/dist/core/fields.d.ts +53 -0
- package/dist/core/format.d.ts +53 -0
- package/dist/core/mask.d.ts +70 -0
- package/dist/core/position.d.ts +55 -0
- package/dist/core/registry.d.ts +14 -0
- package/dist/core/status.d.ts +10 -0
- package/dist/create-theme-BCnL4ZqE.js +205 -0
- package/dist/cropper-controller-BERlfnDt.js +565 -0
- package/dist/csv-BeXMUO2r.js +19 -0
- package/dist/data-C-IJ0iTV.js +52 -0
- package/dist/eds-behavior-core.js +1 -0
- package/dist/eds-behavior.js +7 -0
- package/dist/export/afm.d.ts +12 -0
- package/dist/export/csv.d.ts +13 -0
- package/dist/export/download.d.ts +4 -0
- package/dist/export/formats/csv.d.ts +6 -0
- package/dist/export/formats/csv.js +8 -0
- package/dist/export/formats/json.d.ts +6 -0
- package/dist/export/formats/json.js +8 -0
- package/dist/export/formats/pdf.d.ts +6 -0
- package/dist/export/formats/pdf.js +8 -0
- package/dist/export/formats/xlsx.d.ts +6 -0
- package/dist/export/formats/xlsx.js +8 -0
- package/dist/export/index.d.ts +16 -0
- package/dist/export/json.d.ts +7 -0
- package/dist/export/model.d.ts +76 -0
- package/dist/export/pdf.d.ts +3 -0
- package/dist/export/types.d.ts +32 -0
- package/dist/export/xlsx.d.ts +23 -0
- package/dist/export/zip.d.ts +9 -0
- package/dist/export-C7NzFSaG.js +20 -0
- package/dist/export-entry.d.ts +10 -0
- package/dist/export-entry.js +8 -0
- package/dist/fields-entry.d.ts +9 -0
- package/dist/fields-entry.js +1 -0
- package/dist/format-DYcDCukc.js +150 -0
- package/dist/format-entry.d.ts +6 -0
- package/dist/format-entry.js +3 -0
- package/dist/iife-boot.d.ts +3 -0
- package/dist/image/canvas.d.ts +49 -0
- package/dist/image/cropper-controller.d.ts +47 -0
- package/dist/image/gallery-logic.d.ts +20 -0
- package/dist/image/math.d.ts +78 -0
- package/dist/image/srcset.d.ts +48 -0
- package/dist/image-entry.d.ts +14 -0
- package/dist/image-entry.js +1 -0
- package/dist/index-core.d.ts +3 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +6147 -0
- package/dist/init-with.d.ts +8 -0
- package/dist/json-DsaGwmbJ.js +13 -0
- package/dist/mask-BIBbLhPB.js +258 -0
- package/dist/mask-entry.d.ts +6 -0
- package/dist/mask-entry.js +1 -0
- package/dist/model-DBuawlqz.js +191 -0
- package/dist/pdf-BevPZal3.js +1143 -0
- package/dist/setup.d.ts +76 -0
- package/dist/theme/create-theme.d.ts +61 -0
- package/dist/theme-entry.d.ts +6 -0
- package/dist/theme-entry.js +1 -0
- package/dist/tooltip-wRy96rs_.js +326 -0
- package/dist/xlsx-6qfA69o5.js +117 -0
- package/package.json +80 -3
|
@@ -0,0 +1,1143 @@
|
|
|
1
|
+
import { c as e, i as t, o as n, s as r, t as i } from "./model-DBuawlqz.js";
|
|
2
|
+
// src/export/afm.ts
|
|
3
|
+
function a(e, t) {
|
|
4
|
+
let n = (/* @__PURE__ */ new Uint16Array(256)).fill(556);
|
|
5
|
+
e.forEach((e, t) => {
|
|
6
|
+
n[32 + t] = e;
|
|
7
|
+
});
|
|
8
|
+
for (let [e, r, i] of t) for (let t = e; t <= r; t += 1) n[t] = i;
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
var o = [
|
|
12
|
+
278,
|
|
13
|
+
278,
|
|
14
|
+
355,
|
|
15
|
+
556,
|
|
16
|
+
556,
|
|
17
|
+
889,
|
|
18
|
+
667,
|
|
19
|
+
191,
|
|
20
|
+
333,
|
|
21
|
+
333,
|
|
22
|
+
389,
|
|
23
|
+
584,
|
|
24
|
+
278,
|
|
25
|
+
333,
|
|
26
|
+
278,
|
|
27
|
+
278,
|
|
28
|
+
556,
|
|
29
|
+
556,
|
|
30
|
+
556,
|
|
31
|
+
556,
|
|
32
|
+
556,
|
|
33
|
+
556,
|
|
34
|
+
556,
|
|
35
|
+
556,
|
|
36
|
+
556,
|
|
37
|
+
556,
|
|
38
|
+
278,
|
|
39
|
+
278,
|
|
40
|
+
584,
|
|
41
|
+
584,
|
|
42
|
+
584,
|
|
43
|
+
556,
|
|
44
|
+
1015,
|
|
45
|
+
667,
|
|
46
|
+
667,
|
|
47
|
+
722,
|
|
48
|
+
722,
|
|
49
|
+
667,
|
|
50
|
+
611,
|
|
51
|
+
778,
|
|
52
|
+
722,
|
|
53
|
+
278,
|
|
54
|
+
500,
|
|
55
|
+
667,
|
|
56
|
+
556,
|
|
57
|
+
833,
|
|
58
|
+
722,
|
|
59
|
+
778,
|
|
60
|
+
667,
|
|
61
|
+
778,
|
|
62
|
+
722,
|
|
63
|
+
667,
|
|
64
|
+
611,
|
|
65
|
+
722,
|
|
66
|
+
667,
|
|
67
|
+
944,
|
|
68
|
+
667,
|
|
69
|
+
667,
|
|
70
|
+
611,
|
|
71
|
+
278,
|
|
72
|
+
278,
|
|
73
|
+
278,
|
|
74
|
+
469,
|
|
75
|
+
556,
|
|
76
|
+
333,
|
|
77
|
+
556,
|
|
78
|
+
556,
|
|
79
|
+
500,
|
|
80
|
+
556,
|
|
81
|
+
556,
|
|
82
|
+
278,
|
|
83
|
+
556,
|
|
84
|
+
556,
|
|
85
|
+
222,
|
|
86
|
+
222,
|
|
87
|
+
500,
|
|
88
|
+
222,
|
|
89
|
+
833,
|
|
90
|
+
556,
|
|
91
|
+
556,
|
|
92
|
+
556,
|
|
93
|
+
556,
|
|
94
|
+
333,
|
|
95
|
+
500,
|
|
96
|
+
278,
|
|
97
|
+
556,
|
|
98
|
+
500,
|
|
99
|
+
722,
|
|
100
|
+
500,
|
|
101
|
+
500,
|
|
102
|
+
500,
|
|
103
|
+
334,
|
|
104
|
+
260,
|
|
105
|
+
334,
|
|
106
|
+
584
|
|
107
|
+
], s = [
|
|
108
|
+
278,
|
|
109
|
+
333,
|
|
110
|
+
474,
|
|
111
|
+
556,
|
|
112
|
+
556,
|
|
113
|
+
889,
|
|
114
|
+
722,
|
|
115
|
+
238,
|
|
116
|
+
333,
|
|
117
|
+
333,
|
|
118
|
+
389,
|
|
119
|
+
584,
|
|
120
|
+
278,
|
|
121
|
+
333,
|
|
122
|
+
278,
|
|
123
|
+
278,
|
|
124
|
+
556,
|
|
125
|
+
556,
|
|
126
|
+
556,
|
|
127
|
+
556,
|
|
128
|
+
556,
|
|
129
|
+
556,
|
|
130
|
+
556,
|
|
131
|
+
556,
|
|
132
|
+
556,
|
|
133
|
+
556,
|
|
134
|
+
333,
|
|
135
|
+
333,
|
|
136
|
+
584,
|
|
137
|
+
584,
|
|
138
|
+
584,
|
|
139
|
+
611,
|
|
140
|
+
975,
|
|
141
|
+
722,
|
|
142
|
+
722,
|
|
143
|
+
722,
|
|
144
|
+
722,
|
|
145
|
+
667,
|
|
146
|
+
611,
|
|
147
|
+
778,
|
|
148
|
+
722,
|
|
149
|
+
278,
|
|
150
|
+
556,
|
|
151
|
+
722,
|
|
152
|
+
611,
|
|
153
|
+
833,
|
|
154
|
+
722,
|
|
155
|
+
778,
|
|
156
|
+
667,
|
|
157
|
+
778,
|
|
158
|
+
722,
|
|
159
|
+
667,
|
|
160
|
+
611,
|
|
161
|
+
722,
|
|
162
|
+
667,
|
|
163
|
+
944,
|
|
164
|
+
667,
|
|
165
|
+
667,
|
|
166
|
+
611,
|
|
167
|
+
333,
|
|
168
|
+
278,
|
|
169
|
+
333,
|
|
170
|
+
584,
|
|
171
|
+
556,
|
|
172
|
+
333,
|
|
173
|
+
556,
|
|
174
|
+
611,
|
|
175
|
+
556,
|
|
176
|
+
611,
|
|
177
|
+
556,
|
|
178
|
+
333,
|
|
179
|
+
611,
|
|
180
|
+
611,
|
|
181
|
+
278,
|
|
182
|
+
278,
|
|
183
|
+
556,
|
|
184
|
+
278,
|
|
185
|
+
889,
|
|
186
|
+
611,
|
|
187
|
+
611,
|
|
188
|
+
611,
|
|
189
|
+
611,
|
|
190
|
+
389,
|
|
191
|
+
556,
|
|
192
|
+
333,
|
|
193
|
+
611,
|
|
194
|
+
556,
|
|
195
|
+
778,
|
|
196
|
+
556,
|
|
197
|
+
556,
|
|
198
|
+
500,
|
|
199
|
+
389,
|
|
200
|
+
280,
|
|
201
|
+
389,
|
|
202
|
+
584
|
|
203
|
+
], c = [
|
|
204
|
+
[
|
|
205
|
+
128,
|
|
206
|
+
128,
|
|
207
|
+
556
|
|
208
|
+
],
|
|
209
|
+
[
|
|
210
|
+
130,
|
|
211
|
+
130,
|
|
212
|
+
222
|
|
213
|
+
],
|
|
214
|
+
[
|
|
215
|
+
131,
|
|
216
|
+
131,
|
|
217
|
+
556
|
|
218
|
+
],
|
|
219
|
+
[
|
|
220
|
+
132,
|
|
221
|
+
132,
|
|
222
|
+
333
|
|
223
|
+
],
|
|
224
|
+
[
|
|
225
|
+
133,
|
|
226
|
+
133,
|
|
227
|
+
1e3
|
|
228
|
+
],
|
|
229
|
+
[
|
|
230
|
+
134,
|
|
231
|
+
135,
|
|
232
|
+
556
|
|
233
|
+
],
|
|
234
|
+
[
|
|
235
|
+
136,
|
|
236
|
+
136,
|
|
237
|
+
333
|
|
238
|
+
],
|
|
239
|
+
[
|
|
240
|
+
137,
|
|
241
|
+
137,
|
|
242
|
+
1e3
|
|
243
|
+
],
|
|
244
|
+
[
|
|
245
|
+
138,
|
|
246
|
+
138,
|
|
247
|
+
667
|
|
248
|
+
],
|
|
249
|
+
[
|
|
250
|
+
139,
|
|
251
|
+
139,
|
|
252
|
+
333
|
|
253
|
+
],
|
|
254
|
+
[
|
|
255
|
+
140,
|
|
256
|
+
140,
|
|
257
|
+
1e3
|
|
258
|
+
],
|
|
259
|
+
[
|
|
260
|
+
142,
|
|
261
|
+
142,
|
|
262
|
+
611
|
|
263
|
+
],
|
|
264
|
+
[
|
|
265
|
+
145,
|
|
266
|
+
146,
|
|
267
|
+
222
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
147,
|
|
271
|
+
148,
|
|
272
|
+
333
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
149,
|
|
276
|
+
149,
|
|
277
|
+
350
|
|
278
|
+
],
|
|
279
|
+
[
|
|
280
|
+
150,
|
|
281
|
+
150,
|
|
282
|
+
556
|
|
283
|
+
],
|
|
284
|
+
[
|
|
285
|
+
151,
|
|
286
|
+
151,
|
|
287
|
+
1e3
|
|
288
|
+
],
|
|
289
|
+
[
|
|
290
|
+
152,
|
|
291
|
+
152,
|
|
292
|
+
333
|
|
293
|
+
],
|
|
294
|
+
[
|
|
295
|
+
153,
|
|
296
|
+
153,
|
|
297
|
+
1e3
|
|
298
|
+
],
|
|
299
|
+
[
|
|
300
|
+
154,
|
|
301
|
+
154,
|
|
302
|
+
500
|
|
303
|
+
],
|
|
304
|
+
[
|
|
305
|
+
155,
|
|
306
|
+
155,
|
|
307
|
+
333
|
|
308
|
+
],
|
|
309
|
+
[
|
|
310
|
+
156,
|
|
311
|
+
156,
|
|
312
|
+
944
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
158,
|
|
316
|
+
158,
|
|
317
|
+
500
|
|
318
|
+
],
|
|
319
|
+
[
|
|
320
|
+
159,
|
|
321
|
+
159,
|
|
322
|
+
667
|
|
323
|
+
],
|
|
324
|
+
[
|
|
325
|
+
160,
|
|
326
|
+
160,
|
|
327
|
+
278
|
|
328
|
+
],
|
|
329
|
+
[
|
|
330
|
+
161,
|
|
331
|
+
161,
|
|
332
|
+
333
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
162,
|
|
336
|
+
165,
|
|
337
|
+
556
|
|
338
|
+
],
|
|
339
|
+
[
|
|
340
|
+
166,
|
|
341
|
+
166,
|
|
342
|
+
260
|
|
343
|
+
],
|
|
344
|
+
[
|
|
345
|
+
167,
|
|
346
|
+
167,
|
|
347
|
+
556
|
|
348
|
+
],
|
|
349
|
+
[
|
|
350
|
+
168,
|
|
351
|
+
168,
|
|
352
|
+
333
|
|
353
|
+
],
|
|
354
|
+
[
|
|
355
|
+
169,
|
|
356
|
+
169,
|
|
357
|
+
737
|
|
358
|
+
],
|
|
359
|
+
[
|
|
360
|
+
170,
|
|
361
|
+
170,
|
|
362
|
+
370
|
|
363
|
+
],
|
|
364
|
+
[
|
|
365
|
+
171,
|
|
366
|
+
171,
|
|
367
|
+
556
|
|
368
|
+
],
|
|
369
|
+
[
|
|
370
|
+
172,
|
|
371
|
+
172,
|
|
372
|
+
584
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
173,
|
|
376
|
+
173,
|
|
377
|
+
333
|
|
378
|
+
],
|
|
379
|
+
[
|
|
380
|
+
174,
|
|
381
|
+
174,
|
|
382
|
+
737
|
|
383
|
+
],
|
|
384
|
+
[
|
|
385
|
+
175,
|
|
386
|
+
175,
|
|
387
|
+
333
|
|
388
|
+
],
|
|
389
|
+
[
|
|
390
|
+
176,
|
|
391
|
+
176,
|
|
392
|
+
400
|
|
393
|
+
],
|
|
394
|
+
[
|
|
395
|
+
177,
|
|
396
|
+
177,
|
|
397
|
+
584
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
178,
|
|
401
|
+
180,
|
|
402
|
+
333
|
|
403
|
+
],
|
|
404
|
+
[
|
|
405
|
+
181,
|
|
406
|
+
181,
|
|
407
|
+
556
|
|
408
|
+
],
|
|
409
|
+
[
|
|
410
|
+
182,
|
|
411
|
+
182,
|
|
412
|
+
537
|
|
413
|
+
],
|
|
414
|
+
[
|
|
415
|
+
183,
|
|
416
|
+
183,
|
|
417
|
+
278
|
|
418
|
+
],
|
|
419
|
+
[
|
|
420
|
+
184,
|
|
421
|
+
185,
|
|
422
|
+
333
|
|
423
|
+
],
|
|
424
|
+
[
|
|
425
|
+
186,
|
|
426
|
+
186,
|
|
427
|
+
365
|
|
428
|
+
],
|
|
429
|
+
[
|
|
430
|
+
187,
|
|
431
|
+
187,
|
|
432
|
+
556
|
|
433
|
+
],
|
|
434
|
+
[
|
|
435
|
+
188,
|
|
436
|
+
190,
|
|
437
|
+
834
|
|
438
|
+
],
|
|
439
|
+
[
|
|
440
|
+
191,
|
|
441
|
+
191,
|
|
442
|
+
611
|
|
443
|
+
],
|
|
444
|
+
[
|
|
445
|
+
192,
|
|
446
|
+
197,
|
|
447
|
+
667
|
|
448
|
+
],
|
|
449
|
+
[
|
|
450
|
+
198,
|
|
451
|
+
198,
|
|
452
|
+
1e3
|
|
453
|
+
],
|
|
454
|
+
[
|
|
455
|
+
199,
|
|
456
|
+
199,
|
|
457
|
+
722
|
|
458
|
+
],
|
|
459
|
+
[
|
|
460
|
+
200,
|
|
461
|
+
203,
|
|
462
|
+
667
|
|
463
|
+
],
|
|
464
|
+
[
|
|
465
|
+
204,
|
|
466
|
+
207,
|
|
467
|
+
278
|
|
468
|
+
],
|
|
469
|
+
[
|
|
470
|
+
208,
|
|
471
|
+
209,
|
|
472
|
+
722
|
|
473
|
+
],
|
|
474
|
+
[
|
|
475
|
+
210,
|
|
476
|
+
214,
|
|
477
|
+
778
|
|
478
|
+
],
|
|
479
|
+
[
|
|
480
|
+
215,
|
|
481
|
+
215,
|
|
482
|
+
584
|
|
483
|
+
],
|
|
484
|
+
[
|
|
485
|
+
216,
|
|
486
|
+
216,
|
|
487
|
+
778
|
|
488
|
+
],
|
|
489
|
+
[
|
|
490
|
+
217,
|
|
491
|
+
220,
|
|
492
|
+
722
|
|
493
|
+
],
|
|
494
|
+
[
|
|
495
|
+
221,
|
|
496
|
+
222,
|
|
497
|
+
667
|
|
498
|
+
],
|
|
499
|
+
[
|
|
500
|
+
223,
|
|
501
|
+
223,
|
|
502
|
+
611
|
|
503
|
+
],
|
|
504
|
+
[
|
|
505
|
+
224,
|
|
506
|
+
229,
|
|
507
|
+
556
|
|
508
|
+
],
|
|
509
|
+
[
|
|
510
|
+
230,
|
|
511
|
+
230,
|
|
512
|
+
889
|
|
513
|
+
],
|
|
514
|
+
[
|
|
515
|
+
231,
|
|
516
|
+
231,
|
|
517
|
+
500
|
|
518
|
+
],
|
|
519
|
+
[
|
|
520
|
+
232,
|
|
521
|
+
235,
|
|
522
|
+
556
|
|
523
|
+
],
|
|
524
|
+
[
|
|
525
|
+
236,
|
|
526
|
+
239,
|
|
527
|
+
278
|
|
528
|
+
],
|
|
529
|
+
[
|
|
530
|
+
240,
|
|
531
|
+
246,
|
|
532
|
+
556
|
|
533
|
+
],
|
|
534
|
+
[
|
|
535
|
+
247,
|
|
536
|
+
247,
|
|
537
|
+
584
|
|
538
|
+
],
|
|
539
|
+
[
|
|
540
|
+
248,
|
|
541
|
+
248,
|
|
542
|
+
611
|
|
543
|
+
],
|
|
544
|
+
[
|
|
545
|
+
249,
|
|
546
|
+
252,
|
|
547
|
+
556
|
|
548
|
+
],
|
|
549
|
+
[
|
|
550
|
+
253,
|
|
551
|
+
253,
|
|
552
|
+
500
|
|
553
|
+
],
|
|
554
|
+
[
|
|
555
|
+
254,
|
|
556
|
+
254,
|
|
557
|
+
556
|
|
558
|
+
],
|
|
559
|
+
[
|
|
560
|
+
255,
|
|
561
|
+
255,
|
|
562
|
+
500
|
|
563
|
+
]
|
|
564
|
+
], l = [
|
|
565
|
+
[
|
|
566
|
+
128,
|
|
567
|
+
128,
|
|
568
|
+
556
|
|
569
|
+
],
|
|
570
|
+
[
|
|
571
|
+
130,
|
|
572
|
+
130,
|
|
573
|
+
278
|
|
574
|
+
],
|
|
575
|
+
[
|
|
576
|
+
131,
|
|
577
|
+
131,
|
|
578
|
+
556
|
|
579
|
+
],
|
|
580
|
+
[
|
|
581
|
+
132,
|
|
582
|
+
132,
|
|
583
|
+
500
|
|
584
|
+
],
|
|
585
|
+
[
|
|
586
|
+
133,
|
|
587
|
+
133,
|
|
588
|
+
1e3
|
|
589
|
+
],
|
|
590
|
+
[
|
|
591
|
+
134,
|
|
592
|
+
135,
|
|
593
|
+
556
|
|
594
|
+
],
|
|
595
|
+
[
|
|
596
|
+
136,
|
|
597
|
+
136,
|
|
598
|
+
333
|
|
599
|
+
],
|
|
600
|
+
[
|
|
601
|
+
137,
|
|
602
|
+
137,
|
|
603
|
+
1e3
|
|
604
|
+
],
|
|
605
|
+
[
|
|
606
|
+
138,
|
|
607
|
+
138,
|
|
608
|
+
667
|
|
609
|
+
],
|
|
610
|
+
[
|
|
611
|
+
139,
|
|
612
|
+
139,
|
|
613
|
+
333
|
|
614
|
+
],
|
|
615
|
+
[
|
|
616
|
+
140,
|
|
617
|
+
140,
|
|
618
|
+
1e3
|
|
619
|
+
],
|
|
620
|
+
[
|
|
621
|
+
142,
|
|
622
|
+
142,
|
|
623
|
+
611
|
|
624
|
+
],
|
|
625
|
+
[
|
|
626
|
+
145,
|
|
627
|
+
146,
|
|
628
|
+
278
|
|
629
|
+
],
|
|
630
|
+
[
|
|
631
|
+
147,
|
|
632
|
+
148,
|
|
633
|
+
500
|
|
634
|
+
],
|
|
635
|
+
[
|
|
636
|
+
149,
|
|
637
|
+
149,
|
|
638
|
+
350
|
|
639
|
+
],
|
|
640
|
+
[
|
|
641
|
+
150,
|
|
642
|
+
150,
|
|
643
|
+
556
|
|
644
|
+
],
|
|
645
|
+
[
|
|
646
|
+
151,
|
|
647
|
+
151,
|
|
648
|
+
1e3
|
|
649
|
+
],
|
|
650
|
+
[
|
|
651
|
+
152,
|
|
652
|
+
152,
|
|
653
|
+
333
|
|
654
|
+
],
|
|
655
|
+
[
|
|
656
|
+
153,
|
|
657
|
+
153,
|
|
658
|
+
1e3
|
|
659
|
+
],
|
|
660
|
+
[
|
|
661
|
+
154,
|
|
662
|
+
154,
|
|
663
|
+
556
|
|
664
|
+
],
|
|
665
|
+
[
|
|
666
|
+
155,
|
|
667
|
+
155,
|
|
668
|
+
333
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
156,
|
|
672
|
+
156,
|
|
673
|
+
944
|
|
674
|
+
],
|
|
675
|
+
[
|
|
676
|
+
158,
|
|
677
|
+
158,
|
|
678
|
+
500
|
|
679
|
+
],
|
|
680
|
+
[
|
|
681
|
+
159,
|
|
682
|
+
159,
|
|
683
|
+
667
|
|
684
|
+
],
|
|
685
|
+
[
|
|
686
|
+
160,
|
|
687
|
+
160,
|
|
688
|
+
278
|
|
689
|
+
],
|
|
690
|
+
[
|
|
691
|
+
161,
|
|
692
|
+
161,
|
|
693
|
+
333
|
|
694
|
+
],
|
|
695
|
+
[
|
|
696
|
+
162,
|
|
697
|
+
165,
|
|
698
|
+
556
|
|
699
|
+
],
|
|
700
|
+
[
|
|
701
|
+
166,
|
|
702
|
+
166,
|
|
703
|
+
280
|
|
704
|
+
],
|
|
705
|
+
[
|
|
706
|
+
167,
|
|
707
|
+
167,
|
|
708
|
+
556
|
|
709
|
+
],
|
|
710
|
+
[
|
|
711
|
+
168,
|
|
712
|
+
168,
|
|
713
|
+
333
|
|
714
|
+
],
|
|
715
|
+
[
|
|
716
|
+
169,
|
|
717
|
+
169,
|
|
718
|
+
737
|
|
719
|
+
],
|
|
720
|
+
[
|
|
721
|
+
170,
|
|
722
|
+
170,
|
|
723
|
+
370
|
|
724
|
+
],
|
|
725
|
+
[
|
|
726
|
+
171,
|
|
727
|
+
171,
|
|
728
|
+
556
|
|
729
|
+
],
|
|
730
|
+
[
|
|
731
|
+
172,
|
|
732
|
+
172,
|
|
733
|
+
584
|
|
734
|
+
],
|
|
735
|
+
[
|
|
736
|
+
173,
|
|
737
|
+
173,
|
|
738
|
+
333
|
|
739
|
+
],
|
|
740
|
+
[
|
|
741
|
+
174,
|
|
742
|
+
174,
|
|
743
|
+
737
|
|
744
|
+
],
|
|
745
|
+
[
|
|
746
|
+
175,
|
|
747
|
+
175,
|
|
748
|
+
333
|
|
749
|
+
],
|
|
750
|
+
[
|
|
751
|
+
176,
|
|
752
|
+
176,
|
|
753
|
+
400
|
|
754
|
+
],
|
|
755
|
+
[
|
|
756
|
+
177,
|
|
757
|
+
177,
|
|
758
|
+
584
|
|
759
|
+
],
|
|
760
|
+
[
|
|
761
|
+
178,
|
|
762
|
+
180,
|
|
763
|
+
333
|
|
764
|
+
],
|
|
765
|
+
[
|
|
766
|
+
181,
|
|
767
|
+
181,
|
|
768
|
+
611
|
|
769
|
+
],
|
|
770
|
+
[
|
|
771
|
+
182,
|
|
772
|
+
182,
|
|
773
|
+
556
|
|
774
|
+
],
|
|
775
|
+
[
|
|
776
|
+
183,
|
|
777
|
+
183,
|
|
778
|
+
278
|
|
779
|
+
],
|
|
780
|
+
[
|
|
781
|
+
184,
|
|
782
|
+
185,
|
|
783
|
+
333
|
|
784
|
+
],
|
|
785
|
+
[
|
|
786
|
+
186,
|
|
787
|
+
186,
|
|
788
|
+
365
|
|
789
|
+
],
|
|
790
|
+
[
|
|
791
|
+
187,
|
|
792
|
+
187,
|
|
793
|
+
556
|
|
794
|
+
],
|
|
795
|
+
[
|
|
796
|
+
188,
|
|
797
|
+
190,
|
|
798
|
+
834
|
|
799
|
+
],
|
|
800
|
+
[
|
|
801
|
+
191,
|
|
802
|
+
191,
|
|
803
|
+
611
|
|
804
|
+
],
|
|
805
|
+
[
|
|
806
|
+
192,
|
|
807
|
+
197,
|
|
808
|
+
722
|
|
809
|
+
],
|
|
810
|
+
[
|
|
811
|
+
198,
|
|
812
|
+
198,
|
|
813
|
+
1e3
|
|
814
|
+
],
|
|
815
|
+
[
|
|
816
|
+
199,
|
|
817
|
+
199,
|
|
818
|
+
722
|
|
819
|
+
],
|
|
820
|
+
[
|
|
821
|
+
200,
|
|
822
|
+
203,
|
|
823
|
+
667
|
|
824
|
+
],
|
|
825
|
+
[
|
|
826
|
+
204,
|
|
827
|
+
207,
|
|
828
|
+
278
|
|
829
|
+
],
|
|
830
|
+
[
|
|
831
|
+
208,
|
|
832
|
+
209,
|
|
833
|
+
722
|
|
834
|
+
],
|
|
835
|
+
[
|
|
836
|
+
210,
|
|
837
|
+
214,
|
|
838
|
+
778
|
|
839
|
+
],
|
|
840
|
+
[
|
|
841
|
+
215,
|
|
842
|
+
215,
|
|
843
|
+
584
|
|
844
|
+
],
|
|
845
|
+
[
|
|
846
|
+
216,
|
|
847
|
+
216,
|
|
848
|
+
778
|
|
849
|
+
],
|
|
850
|
+
[
|
|
851
|
+
217,
|
|
852
|
+
220,
|
|
853
|
+
722
|
|
854
|
+
],
|
|
855
|
+
[
|
|
856
|
+
221,
|
|
857
|
+
222,
|
|
858
|
+
667
|
|
859
|
+
],
|
|
860
|
+
[
|
|
861
|
+
223,
|
|
862
|
+
223,
|
|
863
|
+
611
|
|
864
|
+
],
|
|
865
|
+
[
|
|
866
|
+
224,
|
|
867
|
+
229,
|
|
868
|
+
556
|
|
869
|
+
],
|
|
870
|
+
[
|
|
871
|
+
230,
|
|
872
|
+
230,
|
|
873
|
+
889
|
|
874
|
+
],
|
|
875
|
+
[
|
|
876
|
+
231,
|
|
877
|
+
239,
|
|
878
|
+
556
|
|
879
|
+
],
|
|
880
|
+
[
|
|
881
|
+
236,
|
|
882
|
+
239,
|
|
883
|
+
278
|
|
884
|
+
],
|
|
885
|
+
[
|
|
886
|
+
240,
|
|
887
|
+
246,
|
|
888
|
+
611
|
|
889
|
+
],
|
|
890
|
+
[
|
|
891
|
+
247,
|
|
892
|
+
247,
|
|
893
|
+
584
|
|
894
|
+
],
|
|
895
|
+
[
|
|
896
|
+
248,
|
|
897
|
+
252,
|
|
898
|
+
611
|
|
899
|
+
],
|
|
900
|
+
[
|
|
901
|
+
253,
|
|
902
|
+
253,
|
|
903
|
+
556
|
|
904
|
+
],
|
|
905
|
+
[
|
|
906
|
+
254,
|
|
907
|
+
254,
|
|
908
|
+
611
|
|
909
|
+
],
|
|
910
|
+
[
|
|
911
|
+
255,
|
|
912
|
+
255,
|
|
913
|
+
556
|
|
914
|
+
]
|
|
915
|
+
], u = a(o, c), d = a(s, l), f = {
|
|
916
|
+
8364: 128,
|
|
917
|
+
8218: 130,
|
|
918
|
+
402: 131,
|
|
919
|
+
8222: 132,
|
|
920
|
+
8230: 133,
|
|
921
|
+
8224: 134,
|
|
922
|
+
8225: 135,
|
|
923
|
+
710: 136,
|
|
924
|
+
8240: 137,
|
|
925
|
+
352: 138,
|
|
926
|
+
8249: 139,
|
|
927
|
+
338: 140,
|
|
928
|
+
381: 142,
|
|
929
|
+
8216: 145,
|
|
930
|
+
8217: 146,
|
|
931
|
+
8220: 147,
|
|
932
|
+
8221: 148,
|
|
933
|
+
8226: 149,
|
|
934
|
+
8211: 150,
|
|
935
|
+
8212: 151,
|
|
936
|
+
732: 152,
|
|
937
|
+
8482: 153,
|
|
938
|
+
353: 154,
|
|
939
|
+
8250: 155,
|
|
940
|
+
339: 156,
|
|
941
|
+
382: 158,
|
|
942
|
+
376: 159
|
|
943
|
+
};
|
|
944
|
+
function p(e) {
|
|
945
|
+
return e < 32 || e === 127 ? 32 : e < 127 || e >= 160 && e <= 255 ? e : f[e] ?? 63;
|
|
946
|
+
}
|
|
947
|
+
// src/export/pdf.ts
|
|
948
|
+
var ee = 595.28, te = 841.89, m = 36, ne = 22, h = 4, g = 3.5, _ = 15, v = 10, y = 8;
|
|
949
|
+
function b(e) {
|
|
950
|
+
return e.split(/\r\n|\r|\n/).map((e) => {
|
|
951
|
+
let t = [];
|
|
952
|
+
for (let n of e) t.push(p(n.codePointAt(0) ?? 63));
|
|
953
|
+
return t;
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
var x = (e, t) => {
|
|
957
|
+
let n = t ? d : u, r = 0;
|
|
958
|
+
for (let t of e) r += n[t] ?? 556;
|
|
959
|
+
return r;
|
|
960
|
+
}, S = (e, t, n) => x(e, t) * n / 1e3;
|
|
961
|
+
function C(e) {
|
|
962
|
+
let t = [], n = [];
|
|
963
|
+
for (let r of e) r === 32 ? (n.length > 0 && t.push(n), n = []) : n.push(r);
|
|
964
|
+
return n.length > 0 && t.push(n), t;
|
|
965
|
+
}
|
|
966
|
+
function w(e, t, n, r) {
|
|
967
|
+
let i = C(e);
|
|
968
|
+
if (i.length === 0) return [[]];
|
|
969
|
+
let a = S([32], n, r), o = [], s = [], c = 0, l = (e) => {
|
|
970
|
+
let i = S(e, n, r);
|
|
971
|
+
if (i <= t) {
|
|
972
|
+
s = [...e], c = i;
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
let a = [], l = 0;
|
|
976
|
+
for (let i of e) {
|
|
977
|
+
let e = S([i], n, r);
|
|
978
|
+
l + e > t && a.length > 0 && (o.push(a), a = [], l = 0), a.push(i), l += e;
|
|
979
|
+
}
|
|
980
|
+
s = a, c = l;
|
|
981
|
+
};
|
|
982
|
+
for (let e of i) {
|
|
983
|
+
if (s.length === 0) {
|
|
984
|
+
l(e);
|
|
985
|
+
continue;
|
|
986
|
+
}
|
|
987
|
+
let i = S(e, n, r);
|
|
988
|
+
c + a + i <= t ? (s.push(32, ...e), c += a + i) : (o.push(s), s = [], c = 0, l(e));
|
|
989
|
+
}
|
|
990
|
+
return s.length > 0 && o.push(s), o;
|
|
991
|
+
}
|
|
992
|
+
var T = (e, t, n, r) => b(e).flatMap((e) => w(e, t, n, r)), re = (e) => e.map((e) => e.toString(16).padStart(2, "0")).join(""), E = (e) => String(Math.round(e * 100) / 100);
|
|
993
|
+
function D(e, t, n, r) {
|
|
994
|
+
let i = e.length, a = [], o = [];
|
|
995
|
+
for (let r = 0; r < i; r += 1) {
|
|
996
|
+
let i = S(e[r] ?? [], !0, n), s = Math.max(0, ...C(e[r] ?? []).map((e) => S(e, !0, n)));
|
|
997
|
+
for (let e of t) for (let t of e[r] ?? []) {
|
|
998
|
+
i = Math.max(i, S(t, !1, n));
|
|
999
|
+
for (let e of C(t)) s = Math.max(s, S(e, !1, n));
|
|
1000
|
+
}
|
|
1001
|
+
a.push(i + 8), o.push(Math.min(s + 8, i + 8));
|
|
1002
|
+
}
|
|
1003
|
+
let s = a.reduce((e, t) => e + t, 0);
|
|
1004
|
+
if (s <= r) {
|
|
1005
|
+
let e = r - s;
|
|
1006
|
+
return {
|
|
1007
|
+
natural: a,
|
|
1008
|
+
widths: a.map((t) => t + (s > 0 ? e * t / s : 0)),
|
|
1009
|
+
fits: !0
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
let c = o.reduce((e, t) => e + t, 0);
|
|
1013
|
+
if (c >= r) return {
|
|
1014
|
+
natural: a,
|
|
1015
|
+
widths: o.map((e) => e * r / c),
|
|
1016
|
+
fits: c === r
|
|
1017
|
+
};
|
|
1018
|
+
let l = r - c, u = a.map((e, t) => e - (o[t] ?? 0)), d = u.reduce((e, t) => e + t, 0);
|
|
1019
|
+
return {
|
|
1020
|
+
natural: a,
|
|
1021
|
+
widths: o.map((e, t) => e + (d > 0 ? l * (u[t] ?? 0) / d : 0)),
|
|
1022
|
+
fits: !0
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
function O(a, o = {}) {
|
|
1026
|
+
let { columns: s, rows: c } = r(a), l = o.now ?? /* @__PURE__ */ new Date(), u = e(o.locale), d = s.length, f = s.map((e) => e.type === "number" || e.type === "currency" || e.type === "percent"), p = s.map((e) => b(e.label.replace(/\s+/g, " "))[0] ?? []), x = c.map((e) => e.map((e, t) => b(i(e, s[t]?.type ?? "text", "view", u)))), C = 8.5, O = 523.28, k = D(p, x, C, O), A = k.natural.reduce((e, t) => e + t, 0) > O, j = A ? te : ee, M = A ? ee : te, N = j - 72;
|
|
1027
|
+
k = D(p, x, C, N), k.fits || (C = 7, k = D(p, x, C, N));
|
|
1028
|
+
let P = {
|
|
1029
|
+
landscape: A,
|
|
1030
|
+
pageW: j,
|
|
1031
|
+
pageH: M,
|
|
1032
|
+
size: C,
|
|
1033
|
+
lineH: C * 1.3,
|
|
1034
|
+
colW: k.widths
|
|
1035
|
+
}, { lineH: F } = P, I = [];
|
|
1036
|
+
{
|
|
1037
|
+
let e = m;
|
|
1038
|
+
for (let t of P.colW) I.push(e), e += t;
|
|
1039
|
+
}
|
|
1040
|
+
let L = P.colW.reduce((e, t) => e + t, 0), R = o.title ? T(o.title, N, !0, _) : [], z = o.subtitle ? T(o.subtitle, N, !1, v) : [], B = T(n("exportGeneratedAt", { date: t(l, u) }), N, !1, y), V = R.length * _ * 1.3 + z.length * v * 1.3 + B.length * y * 1.3 + 12, H = p.map((e, t) => w(e, (P.colW[t] ?? 0) - 8, !0, C)), U = Math.max(1, ...H.map((e) => e.length)) * F + 2 * g, ie = m, W = M - m - ne, ae = Math.max(1, Math.floor((W - ie - U - 2 * g) / F)), G = x.map((e) => {
|
|
1041
|
+
let t = e.map((e, t) => e.flatMap((e) => w(e, (P.colW[t] ?? 0) - 8, !1, C))), n = Math.max(1, ...t.map((e) => e.length));
|
|
1042
|
+
if (n > ae) {
|
|
1043
|
+
n = ae;
|
|
1044
|
+
for (let e of t) if (e.length > n) {
|
|
1045
|
+
e.length = n;
|
|
1046
|
+
let t = e[n - 1] ?? [];
|
|
1047
|
+
e[n - 1] = [...t.slice(0, Math.max(0, t.length - 1)), 133];
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
return {
|
|
1051
|
+
lines: t,
|
|
1052
|
+
height: n * F + 2 * g
|
|
1053
|
+
};
|
|
1054
|
+
}), K = [], q = {
|
|
1055
|
+
tableTop: m + V,
|
|
1056
|
+
items: [],
|
|
1057
|
+
bottom: m + V + U
|
|
1058
|
+
};
|
|
1059
|
+
K.push(q), G.forEach((e, t) => {
|
|
1060
|
+
q.bottom + e.height > W && q.items.length > 0 && (q = {
|
|
1061
|
+
tableTop: m,
|
|
1062
|
+
items: [],
|
|
1063
|
+
bottom: m + U
|
|
1064
|
+
}, K.push(q)), q.items.push({
|
|
1065
|
+
row: t,
|
|
1066
|
+
top: q.bottom
|
|
1067
|
+
}), q.bottom += e.height;
|
|
1068
|
+
}), c.length === 0 && (q.bottom += F + 2 * g);
|
|
1069
|
+
let oe = K.length, se = K.map((e, t) => {
|
|
1070
|
+
let r = [], i = (e) => M - e, a = (e, t, n, a, o, s) => {
|
|
1071
|
+
s.length !== 0 && r.push(`BT /F${e} ${E(t)} Tf ${E(n)} g ${E(a)} ${E(i(o))} Td <${re(s)}> Tj ET`);
|
|
1072
|
+
};
|
|
1073
|
+
if (t === 0) {
|
|
1074
|
+
let e = m;
|
|
1075
|
+
for (let t of R) a(2, _, .1, m, e + _ * .95, t), e += _ * 1.3;
|
|
1076
|
+
for (let t of z) a(1, v, .3, m, e + v * .95, t), e += v * 1.3;
|
|
1077
|
+
for (let t of B) a(1, y, .4, m, e + y * .95, t), e += y * 1.3;
|
|
1078
|
+
}
|
|
1079
|
+
r.push(`0.91 g ${E(m)} ${E(i(e.tableTop + U))} ${E(L)} ${E(U)} re f`);
|
|
1080
|
+
for (let t of e.items) if (t.row % 2 == 1) {
|
|
1081
|
+
let e = G[t.row]?.height ?? 0;
|
|
1082
|
+
r.push(`0.965 g ${E(m)} ${E(i(t.top + e))} ${E(L)} ${E(e)} re f`);
|
|
1083
|
+
}
|
|
1084
|
+
r.push("0.78 G 0.4 w");
|
|
1085
|
+
let o = [
|
|
1086
|
+
e.tableTop,
|
|
1087
|
+
e.tableTop + U,
|
|
1088
|
+
...e.items.map((e) => e.top + (G[e.row]?.height ?? 0))
|
|
1089
|
+
];
|
|
1090
|
+
for (let e of o) r.push(`${E(m)} ${E(i(e))} m ${E(m + L)} ${E(i(e))} l S`);
|
|
1091
|
+
let s = e.bottom;
|
|
1092
|
+
for (let t = 0; t <= d; t += 1) {
|
|
1093
|
+
let n = t === d ? m + L : I[t] ?? m;
|
|
1094
|
+
r.push(`${E(n)} ${E(i(e.tableTop))} m ${E(n)} ${E(i(s))} l S`);
|
|
1095
|
+
}
|
|
1096
|
+
p.forEach((t, n) => {
|
|
1097
|
+
(H[n] ?? []).forEach((t, r) => {
|
|
1098
|
+
let i = S(t, !0, C), o = f[n] ? (I[n] ?? 0) + (P.colW[n] ?? 0) - h - i : (I[n] ?? 0) + h;
|
|
1099
|
+
a(2, C, .1, o, e.tableTop + g + C * .82 + r * F, t);
|
|
1100
|
+
});
|
|
1101
|
+
});
|
|
1102
|
+
for (let t of e.items) {
|
|
1103
|
+
let e = G[t.row], n = c[t.row];
|
|
1104
|
+
e && n && e.lines.forEach((e, r) => {
|
|
1105
|
+
let i = f[r] === !0 && n[r]?.kind === "number";
|
|
1106
|
+
e.forEach((e, n) => {
|
|
1107
|
+
let o = S(e, !1, C), s = i ? (I[r] ?? 0) + (P.colW[r] ?? 0) - h - o : (I[r] ?? 0) + h;
|
|
1108
|
+
a(1, C, .12, s, t.top + g + C * .82 + n * F, e);
|
|
1109
|
+
});
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
if (c.length === 0) {
|
|
1113
|
+
let t = T(n("exportNoRows"), L - 8, !1, C)[0] ?? [];
|
|
1114
|
+
a(1, C, .35, 40, e.tableTop + U + g + C * .82, t);
|
|
1115
|
+
}
|
|
1116
|
+
let l = T(n("exportPage", {
|
|
1117
|
+
page: t + 1,
|
|
1118
|
+
total: oe
|
|
1119
|
+
}), N, !1, y)[0] ?? [], u = S(l, !1, y);
|
|
1120
|
+
return a(1, y, .4, j - m - u, M - m + 4, l), r.join("\n");
|
|
1121
|
+
}), ce = [], le = [], J = 0, Y = (e) => {
|
|
1122
|
+
ce.push(e), J += e.length;
|
|
1123
|
+
}, X = (e, t) => {
|
|
1124
|
+
le[e] = J, Y(`${e} 0 obj\n${t}\nendobj\n`);
|
|
1125
|
+
};
|
|
1126
|
+
Y("%PDF-1.4\n%âãÏÓ\n");
|
|
1127
|
+
let ue = K.map((e, t) => 6 + 2 * t);
|
|
1128
|
+
X(1, `<< /Type /Catalog /Pages 2 0 R /Lang (${u}) >>`), X(2, `<< /Type /Pages /Kids [${ue.map((e) => `${e} 0 R`).join(" ")}] /Count ${oe} >>`), X(3, "<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>"), X(4, "<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >>");
|
|
1129
|
+
let Z = (e) => String(e).padStart(2, "0"), de = `${l.getFullYear()}${Z(l.getMonth() + 1)}${Z(l.getDate())}${Z(l.getHours())}${Z(l.getMinutes())}${Z(l.getSeconds())}`, Q = o.title ?? "";
|
|
1130
|
+
X(5, `<<${Q ? ` /Title <FEFF${Array.from({ length: Q.length }, (e, t) => Q.charCodeAt(t).toString(16).padStart(4, "0")).join("")}>` : ""} /Creator (efDS.ui) /Producer (efDS.ui) /CreationDate (D:${de}) >>`), K.forEach((e, t) => {
|
|
1131
|
+
let n = ue[t] ?? 0;
|
|
1132
|
+
X(n, `<< /Type /Page /Parent 2 0 R /MediaBox [0 0 ${E(j)} ${E(M)}] /Resources << /Font << /F1 3 0 R /F2 4 0 R >> >> /Contents ${n + 1} 0 R >>`);
|
|
1133
|
+
let r = se[t] ?? "";
|
|
1134
|
+
X(n + 1, `<< /Length ${r.length} >>\nstream\n${r}\nendstream`);
|
|
1135
|
+
});
|
|
1136
|
+
let $ = 6 + 2 * K.length, fe = J, pe = `xref\n0 ${$}\n0000000000 65535 f \n`;
|
|
1137
|
+
for (let e = 1; e < $; e += 1) pe += `${String(le[e] ?? 0).padStart(10, "0")} 00000 n \n`;
|
|
1138
|
+
Y(pe), Y(`trailer\n<< /Size ${$} /Root 1 0 R /Info 5 0 R >>\nstartxref\n${fe}\n%%EOF\n`);
|
|
1139
|
+
let me = new Uint8Array(J), he = 0;
|
|
1140
|
+
for (let e of ce) for (let t = 0; t < e.length; t += 1) me[he++] = e.charCodeAt(t) & 255;
|
|
1141
|
+
return me;
|
|
1142
|
+
}
|
|
1143
|
+
export { O as t };
|