@leav/ui 0.0.1-alpha-1

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/dist/ui.js ADDED
@@ -0,0 +1,1148 @@
1
+ import { f as l, a as y, u as Ji, t as v, p as et, m as u, i as mt } from "./minimatch-x8aONUPa.js";
2
+ const vt = /^[a-z0-9_]+$/, ut = /^[a-z0-9-]+$/, gt = "applications_consultation";
3
+ var it = /* @__PURE__ */ ((e) => (e.VALIDATION_ERROR = "VALIDATION_ERROR", e.PERMISSION_ERROR = "PERMISSION_ERROR", e.INTERNAL_ERROR = "INTERNAL_ERROR", e))(it || {}), tt = /* @__PURE__ */ ((e) => (e.API_KEY_DELETE = "API_KEY_DELETE", e.API_KEY_SAVE = "API_KEY_SAVE", e.APP_DELETE = "APP_DELETE", e.APP_SAVE = "APP_SAVE", e.ATTRIBUTE_DELETE = "ATTRIBUTE_DELETE", e.ATTRIBUTE_SAVE = "ATTRIBUTE_SAVE", e.EXPORT_START = "EXPORT_START", e.EXPORT_END = "EXPORT_END", e.DATA_IMPORT_START = "DATA_IMPORT_START", e.DATA_IMPORT_END = "DATA_IMPORT_END", e.CONFIG_IMPORT_START = "CONFIG_IMPORT_START", e.CONFIG_IMPORT_END = "CONFIG_IMPORT_END", e.GLOBAL_SETTINGS_SAVE = "GLOBAL_SETTINGS_SAVE", e.LIBRARY_DELETE = "LIBRARY_DELETE", e.LIBRARY_PURGE = "LIBRARY_PURGE", e.LIBRARY_SAVE = "LIBRARY_SAVE", e.TASKS_DELETE = "TASKS_DELETE", e.PERMISSION_SAVE = "PERMISSION_SAVE", e.RECORD_DELETE = "RECORD_DELETE", e.RECORD_SAVE = "RECORD_SAVE", e.TREE_ADD_ELEMENT = "TREE_ADD_ELEMENT", e.TREE_DELETE = "TREE_DELETE", e.TREE_DELETE_ELEMENT = "TREE_DELETE_ELEMENT", e.TREE_MOVE_ELEMENT = "TREE_MOVE_ELEMENT", e.TREE_SAVE = "TREE_SAVE", e.VALUE_DELETE = "VALUE_DELETE", e.VALUE_SAVE = "VALUE_SAVE", e.VERSION_PROFILE_DELETE = "VERSION_PROFILE_DELETE", e.VERSION_PROFILE_SAVE = "VERSION_PROFILE_SAVE", e))(tt || {}), x = /* @__PURE__ */ ((e) => (e.IMAGE = "image", e.VIDEO = "video", e.AUDIO = "audio", e.DOCUMENT = "document", e.OTHER = "other", e))(x || {}), ot = /* @__PURE__ */ ((e) => (e.DIVIDER = "divider", e.FIELDS_CONTAINER = "fields_container", e.TAB_FIELDS_CONTAINER = "tab_fields_container", e.TEXT_BLOCK = "text_block", e.TABS = "tabs", e))(ot || {}), nt = /* @__PURE__ */ ((e) => (e.TEXT_INPUT = "input_field", e.DATE = "date", e.CHECKBOX = "checkbox", e.ENCRYPTED = "encrypted", e.DROPDOWN = "dropdown", e.LINK = "link", e.TREE = "tree", e))(nt || {}), pt = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(pt || {});
4
+ const rt = "__root";
5
+ var at = /* @__PURE__ */ ((e) => (e[e.LOW = 1] = "LOW", e[e.MEDIUM = 2] = "MEDIUM", e[e.HIGH = 3] = "HIGH", e))(at || {});
6
+ const E = {
7
+ mime: "application/msword",
8
+ type: "document"
9
+ }, f = {
10
+ mime: "application/msword",
11
+ type: "document"
12
+ }, _ = {
13
+ mime: "application/pdf",
14
+ type: "document"
15
+ }, R = {
16
+ mime: "application/pdf",
17
+ type: "document"
18
+ }, T = {
19
+ mime: "application/vnd.ms-excel",
20
+ type: "document"
21
+ }, h = {
22
+ mime: "application/vnd.ms-excel",
23
+ type: "document"
24
+ }, I = {
25
+ mime: "application/vnd.ms-excel",
26
+ type: "document"
27
+ }, O = {
28
+ mime: "application/vnd.ms-excel",
29
+ type: "document"
30
+ }, w = {
31
+ mime: "application/vnd.ms-excel",
32
+ type: "document"
33
+ }, b = {
34
+ mime: "application/vnd.ms-excel",
35
+ type: "document"
36
+ }, L = {
37
+ mime: "application/vnd.ms-powerpoint",
38
+ type: "document"
39
+ }, S = {
40
+ mime: "application/vnd.ms-powerpoint",
41
+ type: "document"
42
+ }, D = {
43
+ mime: "application/vnd.ms-powerpoint",
44
+ type: "document"
45
+ }, A = {
46
+ mime: "application/vnd.oasis.opendocument.chart",
47
+ type: "document"
48
+ }, N = {
49
+ mime: "application/vnd.oasis.opendocument.chart-template",
50
+ type: "document"
51
+ }, j = {
52
+ mime: "application/vnd.oasis.opendocument.database",
53
+ type: "document"
54
+ }, V = {
55
+ mime: "application/vnd.oasis.opendocument.formula",
56
+ type: "document"
57
+ }, M = {
58
+ mime: "application/vnd.oasis.opendocument.formula-template",
59
+ type: "document"
60
+ }, P = {
61
+ mime: "application/vnd.oasis.opendocument.graphics",
62
+ type: "document"
63
+ }, k = {
64
+ mime: "application/vnd.oasis.opendocument.graphics-template",
65
+ type: "document"
66
+ }, C = {
67
+ mime: "application/vnd.oasis.opendocument.image",
68
+ type: "document"
69
+ }, $ = {
70
+ mime: "application/vnd.oasis.opendocument.image-template",
71
+ type: "document"
72
+ }, B = {
73
+ mime: "application/vnd.oasis.opendocument.presentation",
74
+ type: "document"
75
+ }, G = {
76
+ mime: "application/vnd.oasis.opendocument.presentation-template",
77
+ type: "document"
78
+ }, U = {
79
+ mime: "application/vnd.oasis.opendocument.spreadsheet",
80
+ type: "document"
81
+ }, Y = {
82
+ mime: "application/vnd.oasis.opendocument.spreadsheet-template",
83
+ type: "document"
84
+ }, z = {
85
+ mime: "application/vnd.oasis.opendocument.text",
86
+ type: "document"
87
+ }, H = {
88
+ mime: "application/vnd.oasis.opendocument.text-master",
89
+ type: "document"
90
+ }, K = {
91
+ mime: "application/vnd.oasis.opendocument.text-template",
92
+ type: "document"
93
+ }, q = {
94
+ mime: "application/vnd.oasis.opendocument.text-web",
95
+ type: "document"
96
+ }, F = {
97
+ mime: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
98
+ type: "document"
99
+ }, X = {
100
+ mime: "application/vnd.openxmlformats-officedocument.presentationml.slide",
101
+ type: "document"
102
+ }, W = {
103
+ mime: "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
104
+ type: "document"
105
+ }, Z = {
106
+ mime: "application/vnd.openxmlformats-officedocument.presentationml.template",
107
+ type: "document"
108
+ }, Q = {
109
+ mime: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
110
+ type: "document"
111
+ }, J = {
112
+ mime: "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
113
+ type: "document"
114
+ }, ee = {
115
+ mime: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
116
+ type: "document"
117
+ }, me = {
118
+ mime: "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
119
+ type: "document"
120
+ }, ie = {
121
+ mime: "image/vnd.3gpp.pic-bw-small",
122
+ type: "image"
123
+ }, te = {
124
+ mime: "image/x-ms-bmp",
125
+ type: "image"
126
+ }, oe = {
127
+ mime: "image/cgm",
128
+ type: "image"
129
+ }, ne = {
130
+ mime: "image/g3fax",
131
+ type: "image"
132
+ }, pe = {
133
+ mime: "image/gif",
134
+ type: "image"
135
+ }, ae = {
136
+ mime: "image/ief",
137
+ type: "image"
138
+ }, de = {
139
+ mime: "image/jpeg",
140
+ type: "image"
141
+ }, se = {
142
+ mime: "image/jpeg",
143
+ type: "image"
144
+ }, ce = {
145
+ mime: "image/jpeg",
146
+ type: "image"
147
+ }, ve = {
148
+ mime: "image/ktx",
149
+ type: "image"
150
+ }, ue = {
151
+ mime: "image/png",
152
+ type: "image"
153
+ }, ge = {
154
+ mime: "image/prs.btif",
155
+ type: "image"
156
+ }, re = {
157
+ mime: "image/sgi",
158
+ type: "image"
159
+ }, le = {
160
+ mime: "image/svg+xml",
161
+ type: "image"
162
+ }, ye = {
163
+ mime: "application/EncapsulatedPostScript",
164
+ type: "image"
165
+ }, xe = {
166
+ mime: "image/svg+xml",
167
+ type: "image"
168
+ }, Ee = {
169
+ mime: "image/tiff",
170
+ type: "image"
171
+ }, fe = {
172
+ mime: "image/tiff",
173
+ type: "image"
174
+ }, _e = {
175
+ mime: "image/vnd.adobe.photoshop",
176
+ type: "image"
177
+ }, Re = {
178
+ mime: "image/vnd.dece.graphic",
179
+ type: "image"
180
+ }, Te = {
181
+ mime: "image/vnd.dece.graphic",
182
+ type: "image"
183
+ }, he = {
184
+ mime: "image/vnd.dece.graphic",
185
+ type: "image"
186
+ }, Ie = {
187
+ mime: "image/vnd.dece.graphic",
188
+ type: "image"
189
+ }, Oe = {
190
+ mime: "image/vnd.djvu",
191
+ type: "image"
192
+ }, we = {
193
+ mime: "image/vnd.djvu",
194
+ type: "image"
195
+ }, be = {
196
+ mime: "image/vnd.dwg",
197
+ type: "image"
198
+ }, Le = {
199
+ mime: "image/vnd.dxf",
200
+ type: "image"
201
+ }, Se = {
202
+ mime: "image/vnd.fastbidsheet",
203
+ type: "image"
204
+ }, De = {
205
+ mime: "image/vnd.fpx",
206
+ type: "image"
207
+ }, Ae = {
208
+ mime: "image/vnd.fst",
209
+ type: "image"
210
+ }, Ne = {
211
+ mime: "image/vnd.fujixerox.edmics-mmr",
212
+ type: "image"
213
+ }, je = {
214
+ mime: "image/vnd.fujixerox.edmics-rlc",
215
+ type: "image"
216
+ }, Ve = {
217
+ mime: "image/vnd.ms-modi",
218
+ type: "image"
219
+ }, Me = {
220
+ mime: "image/vnd.ms-photo",
221
+ type: "image"
222
+ }, Pe = {
223
+ mime: "image/vnd.net-fpx",
224
+ type: "image"
225
+ }, ke = {
226
+ mime: "image/vnd.wap.wbmp",
227
+ type: "image"
228
+ }, Ce = {
229
+ mime: "image/vnd.xiff",
230
+ type: "image"
231
+ }, $e = {
232
+ mime: "image/webp",
233
+ type: "image"
234
+ }, Be = {
235
+ mime: "image/x-cmu-raster",
236
+ type: "image"
237
+ }, Ge = {
238
+ mime: "image/x-cmx",
239
+ type: "image"
240
+ }, Ue = {
241
+ mime: "image/x-freehand",
242
+ type: "image"
243
+ }, Ye = {
244
+ mime: "image/x-freehand",
245
+ type: "image"
246
+ }, ze = {
247
+ mime: "image/x-freehand",
248
+ type: "image"
249
+ }, He = {
250
+ mime: "image/x-freehand",
251
+ type: "image"
252
+ }, Ke = {
253
+ mime: "image/x-freehand",
254
+ type: "image"
255
+ }, qe = {
256
+ mime: "image/x-icon",
257
+ type: "image"
258
+ }, Fe = {
259
+ mime: "image/x-jng",
260
+ type: "image"
261
+ }, Xe = {
262
+ mime: "image/x-mrsid-image",
263
+ type: "image"
264
+ }, We = {
265
+ mime: "image/x-pcx",
266
+ type: "image"
267
+ }, Ze = {
268
+ mime: "image/x-pict",
269
+ type: "image"
270
+ }, Qe = {
271
+ mime: "image/x-pict",
272
+ type: "image"
273
+ }, Je = {
274
+ mime: "image/x-portable-anymap",
275
+ type: "image"
276
+ }, em = {
277
+ mime: "image/x-portable-bitmap",
278
+ type: "image"
279
+ }, mm = {
280
+ mime: "image/x-portable-graymap",
281
+ type: "image"
282
+ }, im = {
283
+ mime: "image/x-portable-pixmap",
284
+ type: "image"
285
+ }, tm = {
286
+ mime: "image/x-rgb",
287
+ type: "image"
288
+ }, om = {
289
+ mime: "image/x-tga",
290
+ type: "image"
291
+ }, nm = {
292
+ mime: "image/x-xbitmap",
293
+ type: "image"
294
+ }, pm = {
295
+ mime: "image/x-xpixmap",
296
+ type: "image"
297
+ }, am = {
298
+ mime: "image/x-xwindowdump",
299
+ type: "image"
300
+ }, dm = {
301
+ mime: "video/h261",
302
+ type: "video"
303
+ }, sm = {
304
+ mime: "video/h263",
305
+ type: "video"
306
+ }, cm = {
307
+ mime: "video/h264",
308
+ type: "video"
309
+ }, vm = {
310
+ mime: "video/jpeg",
311
+ type: "video"
312
+ }, um = {
313
+ mime: "video/jpm",
314
+ type: "video"
315
+ }, gm = {
316
+ mime: "video/jpm",
317
+ type: "video"
318
+ }, rm = {
319
+ mime: "video/mj2",
320
+ type: "video"
321
+ }, lm = {
322
+ mime: "video/mj2",
323
+ type: "video"
324
+ }, ym = {
325
+ mime: "video/mp2t",
326
+ type: "video"
327
+ }, xm = {
328
+ mime: "video/mp4",
329
+ type: "video"
330
+ }, Em = {
331
+ mime: "video/mp4",
332
+ type: "video"
333
+ }, fm = {
334
+ mime: "video/mp4",
335
+ type: "video"
336
+ }, _m = {
337
+ mime: "video/mpeg",
338
+ type: "video"
339
+ }, Rm = {
340
+ mime: "video/mpeg",
341
+ type: "video"
342
+ }, Tm = {
343
+ mime: "video/mpeg",
344
+ type: "video"
345
+ }, hm = {
346
+ mime: "video/mpeg",
347
+ type: "video"
348
+ }, Im = {
349
+ mime: "video/mpeg",
350
+ type: "video"
351
+ }, Om = {
352
+ mime: "video/ogg",
353
+ type: "video"
354
+ }, wm = {
355
+ mime: "video/quicktime",
356
+ type: "video"
357
+ }, bm = {
358
+ mime: "video/quicktime",
359
+ type: "video"
360
+ }, Lm = {
361
+ mime: "video/vnd.dece.hd",
362
+ type: "video"
363
+ }, Sm = {
364
+ mime: "video/vnd.dece.hd",
365
+ type: "video"
366
+ }, Dm = {
367
+ mime: "video/vnd.dece.mobile",
368
+ type: "video"
369
+ }, Am = {
370
+ mime: "video/vnd.dece.mobile",
371
+ type: "video"
372
+ }, Nm = {
373
+ mime: "video/vnd.dece.pd",
374
+ type: "video"
375
+ }, jm = {
376
+ mime: "video/vnd.dece.pd",
377
+ type: "video"
378
+ }, Vm = {
379
+ mime: "video/vnd.dece.sd",
380
+ type: "video"
381
+ }, Mm = {
382
+ mime: "video/vnd.dece.sd",
383
+ type: "video"
384
+ }, Pm = {
385
+ mime: "video/vnd.dece.video",
386
+ type: "video"
387
+ }, km = {
388
+ mime: "video/vnd.dece.video",
389
+ type: "video"
390
+ }, Cm = {
391
+ mime: "video/vnd.dvb.file",
392
+ type: "video"
393
+ }, $m = {
394
+ mime: "video/vnd.fvt",
395
+ type: "video"
396
+ }, Bm = {
397
+ mime: "video/vnd.mpegurl",
398
+ type: "video"
399
+ }, Gm = {
400
+ mime: "video/vnd.mpegurl",
401
+ type: "video"
402
+ }, Um = {
403
+ mime: "video/vnd.ms-playready.media.pyv",
404
+ type: "video"
405
+ }, Ym = {
406
+ mime: "video/vnd.uvvu.mp4",
407
+ type: "video"
408
+ }, zm = {
409
+ mime: "video/vnd.uvvu.mp4",
410
+ type: "video"
411
+ }, Hm = {
412
+ mime: "video/vnd.vivo",
413
+ type: "video"
414
+ }, Km = {
415
+ mime: "video/webm",
416
+ type: "video"
417
+ }, qm = {
418
+ mime: "video/x-f4v",
419
+ type: "video"
420
+ }, Fm = {
421
+ mime: "video/x-fli",
422
+ type: "video"
423
+ }, Xm = {
424
+ mime: "video/x-flv",
425
+ type: "video"
426
+ }, Wm = {
427
+ mime: "video/x-m4v",
428
+ type: "video"
429
+ }, Zm = {
430
+ mime: "video/x-matroska",
431
+ type: "video"
432
+ }, Qm = {
433
+ mime: "video/x-matroska",
434
+ type: "video"
435
+ }, Jm = {
436
+ mime: "video/x-matroska",
437
+ type: "video"
438
+ }, ei = {
439
+ mime: "video/x-mng",
440
+ type: "video"
441
+ }, mi = {
442
+ mime: "video/x-ms-asf",
443
+ type: "video"
444
+ }, ii = {
445
+ mime: "video/x-ms-asf",
446
+ type: "video"
447
+ }, ti = {
448
+ mime: "video/x-ms-vob",
449
+ type: "video"
450
+ }, oi = {
451
+ mime: "video/x-ms-wm",
452
+ type: "video"
453
+ }, ni = {
454
+ mime: "video/x-ms-wmv",
455
+ type: "video"
456
+ }, pi = {
457
+ mime: "video/x-ms-wmx",
458
+ type: "video"
459
+ }, ai = {
460
+ mime: "video/x-ms-wvx",
461
+ type: "video"
462
+ }, di = {
463
+ mime: "video/x-msvideo",
464
+ type: "video"
465
+ }, si = {
466
+ mime: "video/x-sgi-movie",
467
+ type: "video"
468
+ }, ci = {
469
+ mime: "video/x-smv",
470
+ type: "video"
471
+ }, vi = {
472
+ mime: "audio/x-aac",
473
+ type: "audio"
474
+ }, ui = {
475
+ mime: "audio/x-aac",
476
+ type: "audio"
477
+ }, gi = {
478
+ mime: "audio/adpcm",
479
+ type: "audio"
480
+ }, ri = {
481
+ mime: "audio/x-aiff",
482
+ type: "audio"
483
+ }, li = {
484
+ mime: "audio/x-aiff",
485
+ type: "audio"
486
+ }, yi = {
487
+ mime: "audio/x-au",
488
+ type: "audio"
489
+ }, xi = {
490
+ mime: "audio/vnd.dra",
491
+ type: "audio"
492
+ }, Ei = {
493
+ mime: "audio/vnd.dts",
494
+ type: "audio"
495
+ }, fi = {
496
+ mime: "audio/vnd.dts.hd",
497
+ type: "audio"
498
+ }, _i = {
499
+ mime: "audio/vnd.nuera.ecelp4800",
500
+ type: "audio"
501
+ }, Ri = {
502
+ mime: "audio/vnd.nuera.ecelp7470",
503
+ type: "audio"
504
+ }, Ti = {
505
+ mime: "audio/vnd.nuera.ecelp9600",
506
+ type: "audio"
507
+ }, hi = {
508
+ mime: "audio/vnd.digital-winds",
509
+ type: "audio"
510
+ }, Ii = {
511
+ mime: "audio/x-flac",
512
+ type: "audio"
513
+ }, Oi = {
514
+ mime: "audio/x-jam",
515
+ type: "audio"
516
+ }, wi = {
517
+ mime: "audio/vnd.lucent.voice",
518
+ type: "audio"
519
+ }, bi = {
520
+ mime: "audio/x-mpequrl",
521
+ type: "audio"
522
+ }, Li = {
523
+ mime: "audio/x-midi",
524
+ type: "audio"
525
+ }, Si = {
526
+ mime: "audio/x-midi",
527
+ type: "audio"
528
+ }, Di = {
529
+ mime: "audio/x-mod",
530
+ type: "audio"
531
+ }, Ai = {
532
+ mime: "audio/x-mpeg",
533
+ type: "audio"
534
+ }, Ni = {
535
+ mime: "audio/x-mpeg-3",
536
+ type: "audio"
537
+ }, ji = {
538
+ mime: "audio/mp4",
539
+ type: "audio"
540
+ }, Vi = {
541
+ mime: "audio/mpeg",
542
+ type: "audio"
543
+ }, Mi = {
544
+ mime: "audio/mpeg",
545
+ type: "audio"
546
+ }, Pi = {
547
+ mime: "audio/ogg",
548
+ type: "audio"
549
+ }, ki = {
550
+ mime: "audio/ogg",
551
+ type: "audio"
552
+ }, Ci = {
553
+ mime: "audio/opus",
554
+ type: "audio"
555
+ }, $i = {
556
+ mime: "audio/vnd.ms-playready.media.pya",
557
+ type: "audio"
558
+ }, Bi = {
559
+ mime: "audio/x-realaudio",
560
+ type: "audio"
561
+ }, Gi = {
562
+ mime: "audio/x-pn-realaudio",
563
+ type: "audio"
564
+ }, Ui = {
565
+ mime: "audio/vnd.rip",
566
+ type: "audio"
567
+ }, Yi = {
568
+ mime: "audio/x-pn-realaudio",
569
+ type: "audio"
570
+ }, zi = {
571
+ mime: "audio/x-pn-realaudio-plugin",
572
+ type: "audio"
573
+ }, Hi = {
574
+ mime: "audio/x-pn-realaudio-plugin",
575
+ type: "audio"
576
+ }, Ki = {
577
+ mime: "audio/vnd.dece.audio",
578
+ type: "audio"
579
+ }, qi = {
580
+ mime: "audio/x-wav",
581
+ type: "audio"
582
+ }, Fi = {
583
+ mime: "audio/x-ms-wax",
584
+ type: "audio"
585
+ }, Xi = {
586
+ mime: "audio/webm",
587
+ type: "audio"
588
+ }, Wi = {
589
+ mime: "audio/x-ms-wma",
590
+ type: "audio"
591
+ }, Zi = {
592
+ mime: "audio/xm",
593
+ type: "audio"
594
+ }, dt = {
595
+ 669: {
596
+ mime: "audio/x-mod",
597
+ type: "audio"
598
+ },
599
+ doc: E,
600
+ dot: f,
601
+ pdf: _,
602
+ ai: R,
603
+ xls: T,
604
+ xlm: h,
605
+ xla: I,
606
+ xlc: O,
607
+ xlt: w,
608
+ xlw: b,
609
+ ppt: L,
610
+ pps: S,
611
+ pot: D,
612
+ odc: A,
613
+ otc: N,
614
+ odb: j,
615
+ odf: V,
616
+ odft: M,
617
+ odg: P,
618
+ otg: k,
619
+ odi: C,
620
+ oti: $,
621
+ odp: B,
622
+ otp: G,
623
+ ods: U,
624
+ ots: Y,
625
+ odt: z,
626
+ odm: H,
627
+ ott: K,
628
+ oth: q,
629
+ pptx: F,
630
+ sldx: X,
631
+ ppsx: W,
632
+ potx: Z,
633
+ xlsx: Q,
634
+ xltx: J,
635
+ docx: ee,
636
+ dotx: me,
637
+ psb: ie,
638
+ bmp: te,
639
+ cgm: oe,
640
+ g3: ne,
641
+ gif: pe,
642
+ ief: ae,
643
+ jpeg: de,
644
+ jpg: se,
645
+ jpe: ce,
646
+ ktx: ve,
647
+ png: ue,
648
+ btif: ge,
649
+ sgi: re,
650
+ svg: le,
651
+ eps: ye,
652
+ svgz: xe,
653
+ tiff: Ee,
654
+ tif: fe,
655
+ psd: _e,
656
+ uvi: Re,
657
+ uvvi: Te,
658
+ uvg: he,
659
+ uvvg: Ie,
660
+ djvu: Oe,
661
+ djv: we,
662
+ dwg: be,
663
+ dxf: Le,
664
+ fbs: Se,
665
+ fpx: De,
666
+ fst: Ae,
667
+ mmr: Ne,
668
+ rlc: je,
669
+ mdi: Ve,
670
+ wdp: Me,
671
+ npx: Pe,
672
+ wbmp: ke,
673
+ xif: Ce,
674
+ webp: $e,
675
+ "3ds": {
676
+ mime: "image/x-3ds",
677
+ type: "image"
678
+ },
679
+ ras: Be,
680
+ cmx: Ge,
681
+ fh: Ue,
682
+ fhc: Ye,
683
+ fh4: ze,
684
+ fh5: He,
685
+ fh7: Ke,
686
+ ico: qe,
687
+ jng: Fe,
688
+ sid: Xe,
689
+ pcx: We,
690
+ pic: Ze,
691
+ pct: Qe,
692
+ pnm: Je,
693
+ pbm: em,
694
+ pgm: mm,
695
+ ppm: im,
696
+ rgb: tm,
697
+ tga: om,
698
+ xbm: nm,
699
+ xpm: pm,
700
+ xwd: am,
701
+ "3gp": {
702
+ mime: "video/3gpp",
703
+ type: "video"
704
+ },
705
+ "3gpp": {
706
+ mime: "video/3gpp",
707
+ type: "video"
708
+ },
709
+ "3g2": {
710
+ mime: "video/3gpp2",
711
+ type: "video"
712
+ },
713
+ h261: dm,
714
+ h263: sm,
715
+ h264: cm,
716
+ jpgv: vm,
717
+ jpm: um,
718
+ jpgm: gm,
719
+ mj2: rm,
720
+ mjp2: lm,
721
+ ts: ym,
722
+ mp4: xm,
723
+ mp4v: Em,
724
+ mpg4: fm,
725
+ mpeg: _m,
726
+ mpg: Rm,
727
+ mpe: Tm,
728
+ m1v: hm,
729
+ m2v: Im,
730
+ ogv: Om,
731
+ qt: wm,
732
+ mov: bm,
733
+ uvh: Lm,
734
+ uvvh: Sm,
735
+ uvm: Dm,
736
+ uvvm: Am,
737
+ uvp: Nm,
738
+ uvvp: jm,
739
+ uvs: Vm,
740
+ uvvs: Mm,
741
+ uvv: Pm,
742
+ uvvv: km,
743
+ dvb: Cm,
744
+ fvt: $m,
745
+ mxu: Bm,
746
+ m4u: Gm,
747
+ pyv: Um,
748
+ uvu: Ym,
749
+ uvvu: zm,
750
+ viv: Hm,
751
+ webm: Km,
752
+ f4v: qm,
753
+ fli: Fm,
754
+ flv: Xm,
755
+ m4v: Wm,
756
+ mkv: Zm,
757
+ mk3d: Qm,
758
+ mks: Jm,
759
+ mng: ei,
760
+ asf: mi,
761
+ asx: ii,
762
+ vob: ti,
763
+ wm: oi,
764
+ wmv: ni,
765
+ wmx: pi,
766
+ wvx: ai,
767
+ avi: di,
768
+ movie: si,
769
+ smv: ci,
770
+ aac: vi,
771
+ aax: ui,
772
+ adp: gi,
773
+ aif: ri,
774
+ aiff: li,
775
+ au: yi,
776
+ dra: xi,
777
+ dts: Ei,
778
+ dtshd: fi,
779
+ ecelp4800: _i,
780
+ ecelp7470: Ri,
781
+ ecelp9600: Ti,
782
+ eol: hi,
783
+ flac: Ii,
784
+ jam: Oi,
785
+ lvp: wi,
786
+ m3u: bi,
787
+ mid: Li,
788
+ midi: Si,
789
+ mod: Di,
790
+ mp2: Ai,
791
+ mp3: Ni,
792
+ mp4a: ji,
793
+ mpa: Vi,
794
+ mpga: Mi,
795
+ oga: Pi,
796
+ ogg: ki,
797
+ opus: Ci,
798
+ pya: $i,
799
+ ra: Bi,
800
+ ram: Gi,
801
+ rip: Ui,
802
+ rm: Yi,
803
+ rmp: zi,
804
+ rpm: Hi,
805
+ uva: Ki,
806
+ wav: qi,
807
+ wax: Fi,
808
+ weba: Xi,
809
+ wma: Wi,
810
+ xm: Zi
811
+ }, g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
812
+ __proto__: null,
813
+ aac: vi,
814
+ aax: ui,
815
+ adp: gi,
816
+ ai: R,
817
+ aif: ri,
818
+ aiff: li,
819
+ asf: mi,
820
+ asx: ii,
821
+ au: yi,
822
+ avi: di,
823
+ bmp: te,
824
+ btif: ge,
825
+ cgm: oe,
826
+ cmx: Ge,
827
+ default: dt,
828
+ djv: we,
829
+ djvu: Oe,
830
+ doc: E,
831
+ docx: ee,
832
+ dot: f,
833
+ dotx: me,
834
+ dra: xi,
835
+ dts: Ei,
836
+ dtshd: fi,
837
+ dvb: Cm,
838
+ dwg: be,
839
+ dxf: Le,
840
+ ecelp4800: _i,
841
+ ecelp7470: Ri,
842
+ ecelp9600: Ti,
843
+ eol: hi,
844
+ eps: ye,
845
+ f4v: qm,
846
+ fbs: Se,
847
+ fh: Ue,
848
+ fh4: ze,
849
+ fh5: He,
850
+ fh7: Ke,
851
+ fhc: Ye,
852
+ flac: Ii,
853
+ fli: Fm,
854
+ flv: Xm,
855
+ fpx: De,
856
+ fst: Ae,
857
+ fvt: $m,
858
+ g3: ne,
859
+ gif: pe,
860
+ h261: dm,
861
+ h263: sm,
862
+ h264: cm,
863
+ ico: qe,
864
+ ief: ae,
865
+ jam: Oi,
866
+ jng: Fe,
867
+ jpe: ce,
868
+ jpeg: de,
869
+ jpg: se,
870
+ jpgm: gm,
871
+ jpgv: vm,
872
+ jpm: um,
873
+ ktx: ve,
874
+ lvp: wi,
875
+ m1v: hm,
876
+ m2v: Im,
877
+ m3u: bi,
878
+ m4u: Gm,
879
+ m4v: Wm,
880
+ mdi: Ve,
881
+ mid: Li,
882
+ midi: Si,
883
+ mj2: rm,
884
+ mjp2: lm,
885
+ mk3d: Qm,
886
+ mks: Jm,
887
+ mkv: Zm,
888
+ mmr: Ne,
889
+ mng: ei,
890
+ mod: Di,
891
+ mov: bm,
892
+ movie: si,
893
+ mp2: Ai,
894
+ mp3: Ni,
895
+ mp4: xm,
896
+ mp4a: ji,
897
+ mp4v: Em,
898
+ mpa: Vi,
899
+ mpe: Tm,
900
+ mpeg: _m,
901
+ mpg: Rm,
902
+ mpg4: fm,
903
+ mpga: Mi,
904
+ mxu: Bm,
905
+ npx: Pe,
906
+ odb: j,
907
+ odc: A,
908
+ odf: V,
909
+ odft: M,
910
+ odg: P,
911
+ odi: C,
912
+ odm: H,
913
+ odp: B,
914
+ ods: U,
915
+ odt: z,
916
+ oga: Pi,
917
+ ogg: ki,
918
+ ogv: Om,
919
+ opus: Ci,
920
+ otc: N,
921
+ otg: k,
922
+ oth: q,
923
+ oti: $,
924
+ otp: G,
925
+ ots: Y,
926
+ ott: K,
927
+ pbm: em,
928
+ pct: Qe,
929
+ pcx: We,
930
+ pdf: _,
931
+ pgm: mm,
932
+ pic: Ze,
933
+ png: ue,
934
+ pnm: Je,
935
+ pot: D,
936
+ potx: Z,
937
+ ppm: im,
938
+ pps: S,
939
+ ppsx: W,
940
+ ppt: L,
941
+ pptx: F,
942
+ psb: ie,
943
+ psd: _e,
944
+ pya: $i,
945
+ pyv: Um,
946
+ qt: wm,
947
+ ra: Bi,
948
+ ram: Gi,
949
+ ras: Be,
950
+ rgb: tm,
951
+ rip: Ui,
952
+ rlc: je,
953
+ rm: Yi,
954
+ rmp: zi,
955
+ rpm: Hi,
956
+ sgi: re,
957
+ sid: Xe,
958
+ sldx: X,
959
+ smv: ci,
960
+ svg: le,
961
+ svgz: xe,
962
+ tga: om,
963
+ tif: fe,
964
+ tiff: Ee,
965
+ ts: ym,
966
+ uva: Ki,
967
+ uvg: he,
968
+ uvh: Lm,
969
+ uvi: Re,
970
+ uvm: Dm,
971
+ uvp: Nm,
972
+ uvs: Vm,
973
+ uvu: Ym,
974
+ uvv: Pm,
975
+ uvvg: Ie,
976
+ uvvh: Sm,
977
+ uvvi: Te,
978
+ uvvm: Am,
979
+ uvvp: jm,
980
+ uvvs: Mm,
981
+ uvvu: zm,
982
+ uvvv: km,
983
+ viv: Hm,
984
+ vob: ti,
985
+ wav: qi,
986
+ wax: Fi,
987
+ wbmp: ke,
988
+ wdp: Me,
989
+ weba: Xi,
990
+ webm: Km,
991
+ webp: $e,
992
+ wm: oi,
993
+ wma: Wi,
994
+ wmv: ni,
995
+ wmx: pi,
996
+ wvx: ai,
997
+ xbm: nm,
998
+ xif: Ce,
999
+ xla: I,
1000
+ xlc: O,
1001
+ xlm: h,
1002
+ xls: T,
1003
+ xlsx: Q,
1004
+ xlt: w,
1005
+ xltx: J,
1006
+ xlw: b,
1007
+ xm: Zi,
1008
+ xpm: pm,
1009
+ xwd: am
1010
+ }, Symbol.toStringTag, { value: "Module" }));
1011
+ var s = /* @__PURE__ */ ((e) => (e.advanced = "advanced", e.advanced_link = "advanced_link", e.simple = "simple", e.simple_link = "simple_link", e.tree = "tree", e))(s || {});
1012
+ const lt = (e) => l([y, Ji, v, et(v, "s")])(e), yt = (e) => l([y, v])(e), xt = (e, m, i, t) => {
1013
+ m.length || (m = ["**"]);
1014
+ const o = m.some((n) => u(t, `${e}/${n}`));
1015
+ return !i.some((n) => u(t, `${e}/${n}`)) && o;
1016
+ }, Et = (e, m) => {
1017
+ if (!e)
1018
+ return "";
1019
+ const i = m[0], t = m[1] ? m[1] : "";
1020
+ return e[i] || e[t] || e[Object.keys(e)[0]] || "";
1021
+ }, ft = (e = "", m = "hsl", i = 30, t = 80) => {
1022
+ let o = 0;
1023
+ for (let n = 0; n < (e ?? "").length; n++)
1024
+ o = e.charCodeAt(n) + ((o << 5) - o);
1025
+ const p = o % 360;
1026
+ switch (m) {
1027
+ case "hex":
1028
+ return st(p, i, t);
1029
+ case "rgb":
1030
+ const [n, a, d] = Qi(p, i, t);
1031
+ return `rgb(${n},${a},${d})`;
1032
+ case "hsl":
1033
+ return `hsl(${p}, ${i}%, ${t}%)`;
1034
+ default:
1035
+ return `hsl(${p}, ${i}%, ${t}%)`;
1036
+ }
1037
+ }, c = (e, m, i) => (i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? e + (m - e) * 6 * i : i < 1 / 2 ? m : i < 2 / 3 ? e + (m - e) * (2 / 3 - i) * 6 : e), st = (e, m, i) => {
1038
+ const [t, o, p] = Qi(e, m, i), n = (a) => {
1039
+ const d = a.toString(16);
1040
+ return d.length === 1 ? "0" + d : d;
1041
+ };
1042
+ return `#${n(t)}${n(o)}${n(p)}`;
1043
+ }, Qi = (e, m, i) => {
1044
+ e /= 360, m /= 100, i /= 100;
1045
+ let t, o, p;
1046
+ if (m === 0)
1047
+ t = o = p = i;
1048
+ else {
1049
+ const n = i < 0.5 ? i * (1 + m) : i + m - i * m, a = 2 * i - n;
1050
+ t = c(a, n, e + 1 / 3), o = c(a, n, e), p = c(a, n, e - 1 / 3);
1051
+ }
1052
+ return [Math.round(t * 255), Math.round(o * 255), Math.round(p * 255)];
1053
+ }, _t = (e) => {
1054
+ const m = e.replace(/#/g, ""), i = parseInt(m.substr(0, 2), 16), t = parseInt(m.substr(2, 2), 16), o = parseInt(m.substr(4, 2), 16);
1055
+ return (i * 299 + t * 587 + o * 114) / 1e3 >= 128 ? "#000000" : "#FFFFFF";
1056
+ }, Rt = (e) => e.split("-").slice(1).map((i) => i.replace(/\s+/g, " ").trim().split(" ")).reduce((i, t) => ({ ...i, [t[0]]: t[1] ?? !0 }), {}), Tt = (e) => Object.keys(e ?? {}).map((m) => ({ name: m, value: e[m] })), ht = (e = [], m = "name", i = "value") => Array.isArray(e) && e.length ? e.reduce((t, o) => (t[o[m]] = o[i], t), {}) : null, It = (e) => {
1057
+ if (!e)
1058
+ return null;
1059
+ const m = e.slice(e.lastIndexOf(".") + 1).toLowerCase();
1060
+ return g[m] ? g[m].type : x.OTHER;
1061
+ }, Ot = (e = 2) => new Error().stack.split(`
1062
+ `).slice(3, 3 + e).map((t) => t.trim().split(" ").splice(1).join(" @ ")), wt = (e, m = 2) => {
1063
+ if (typeof e != "string" || mt(e.trim()) || m < 1)
1064
+ return "?";
1065
+ const i = e.split(" "), t = new RegExp(/[A-Za-z]+/g), o = new RegExp(/[1-9]+/g), p = e.match(t) ? e.match(t) : e.match(o);
1066
+ return r(p !== null ? p : i, m);
1067
+ }, r = (e, m) => {
1068
+ let i = "";
1069
+ if (e.length === 1)
1070
+ i = e[0].slice(0, m);
1071
+ else {
1072
+ e.length < m && (m = e.length);
1073
+ for (let t = 0; t < m; t++)
1074
+ i = i + e[t].charAt(0);
1075
+ }
1076
+ return i.toUpperCase();
1077
+ }, bt = (e, m = "_") => e.normalize("NFD").toLowerCase().replace(/[\u0300-\u036f]/g, "").replace(/[^a-zA-Z0-9\s]/g, m).trim().replace(/\s/g, m).replace(new RegExp(`${m}${m}+`, "g"), m).replace(new RegExp(`${m}$`, "g"), "").replace(new RegExp(`^${m}`, "g"), ""), Lt = (e) => {
1078
+ let m = 0;
1079
+ for (let i = 0, t = e.length; i < t; i++) {
1080
+ const o = e.charCodeAt(i);
1081
+ m = (m << 5) - m + o, m |= 0;
1082
+ }
1083
+ return Math.abs(m);
1084
+ }, St = (e) => ({
1085
+ en: "🇬🇧",
1086
+ // English
1087
+ es: "🇪🇸",
1088
+ // Spanish
1089
+ fr: "🇫🇷",
1090
+ // French
1091
+ de: "🇩🇪",
1092
+ // German
1093
+ zh: "🇨🇳",
1094
+ // Chinese
1095
+ ru: "🇷🇺",
1096
+ // Russian
1097
+ pt: "🇵🇹",
1098
+ // Portuguese
1099
+ ja: "🇯🇵",
1100
+ // Japanese
1101
+ ko: "🇰🇷"
1102
+ // Korean
1103
+ })[e] ?? "", Dt = (e) => `logs-${e}`, At = async (e, m = {}) => {
1104
+ const { timeout: i = 5e3, interval: t = 250 } = m, o = Date.now();
1105
+ for (; !await e(); ) {
1106
+ if (Date.now() - o > i)
1107
+ throw new Error("Timeout expired");
1108
+ await new Promise((p) => setTimeout(p, t));
1109
+ }
1110
+ return !0;
1111
+ }, Nt = (e) => e === s.simple_link || e === s.advanced_link, jt = (e) => e === s.simple || e === s.advanced, Vt = (e, ...m) => {
1112
+ const i = { ...e };
1113
+ return m.forEach((t) => delete i[t]), i;
1114
+ };
1115
+ export {
1116
+ gt as CONSULTED_APPS_KEY,
1117
+ it as ErrorTypes,
1118
+ tt as EventAction,
1119
+ rt as FORM_ROOT_CONTAINER_ID,
1120
+ x as FileType,
1121
+ nt as FormFieldTypes,
1122
+ ot as FormUIElementTypes,
1123
+ at as PreviewPriority,
1124
+ pt as TabsDirection,
1125
+ r as _getInitialEngine,
1126
+ ut as endpointFormatRegex,
1127
+ Rt as extractArgsFromString,
1128
+ Ot as getCallStack,
1129
+ It as getFileType,
1130
+ St as getFlagByLang,
1131
+ yt as getGraphqlQueryNameFromLibraryName,
1132
+ lt as getGraphqlTypeFromLibraryName,
1133
+ wt as getInitials,
1134
+ _t as getInvertColor,
1135
+ Dt as getLogsIndexName,
1136
+ vt as idFormatRegex,
1137
+ xt as isFileAllowed,
1138
+ Nt as isTypeLink,
1139
+ jt as isTypeStandard,
1140
+ Et as localizedTranslation,
1141
+ ht as nameValArrayToObj,
1142
+ Tt as objectToNameValueArray,
1143
+ Vt as omit,
1144
+ Lt as simpleStringHash,
1145
+ bt as slugifyString,
1146
+ ft as stringToColor,
1147
+ At as waitFor
1148
+ };