@omg-dev/app 0.3.0 → 0.5.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 (27) hide show
  1. package/dist-lib/{ChangelogPage-tITBP5A1.js → ChangelogPage-8lbvM9Pz.js} +109 -1
  2. package/dist-lib/{File-BszRWhXA.js → File-B-qYa2zY.js} +1 -1
  3. package/dist-lib/{FileEditor-ByMnm-sa.js → FileEditor-BIz0qCyW.js} +2 -2
  4. package/dist-lib/{FileViewer-DgjR_OJp.js → FileViewer-Clmf04v1.js} +1 -1
  5. package/dist-lib/{SessionFilesPanel-T3CkIp2a.js → SessionFilesPanel-BKcTU57t.js} +2 -2
  6. package/dist-lib/{TermView-BJiSY2oC.js → TermView-gazV6UMU.js} +1 -1
  7. package/dist-lib/{chat-engine-ChrOJLdY.js → chat-engine-83mwx0z2.js} +1 -1
  8. package/dist-lib/{streamdown-response-Bt7VM-cZ.js → chunk-BO2N2NFS-kYiI5SD9.js} +5006 -6023
  9. package/dist-lib/{coding-agents-page-Bsy-dsUo.js → coding-agents-page-8Nf-IuE2.js} +80 -80
  10. package/dist-lib/embedded-BmrQsEvQ.js +32771 -0
  11. package/dist-lib/engine-compile-BeDRSL6Y.js +9199 -0
  12. package/dist-lib/{highlighted-body-OFNGDK62-bfel3kiX.js → highlighted-body-OFNGDK62-C2DGVKV8.js} +4 -4
  13. package/dist-lib/index-BXzud6tj.js +1247 -0
  14. package/dist-lib/{index-BNac_jIC.js → index-DWkBvb-9.js} +27 -27
  15. package/dist-lib/{index-Bw4EY_Nm.js → index-DcwavxA1.js} +3 -3
  16. package/dist-lib/index-Dtkd4mEk.js +29 -0
  17. package/dist-lib/index.js +1 -1
  18. package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +4 -0
  19. package/dist-lib/{resume-session-sheet-CsBKi_wb.js → resume-session-sheet-Dr_81Gfm.js} +1 -1
  20. package/dist-lib/{session-token-usage-CTQR54Yk.js → session-token-usage-CGhHZ3lT.js} +1 -1
  21. package/dist-lib/{shipped-page-B46DR9zS.js → shipped-page-p3oulUiM.js} +1 -1
  22. package/dist-lib/streamdown-response-Dbn0PKUH.js +1051 -0
  23. package/dist-lib/styles.css +1 -1
  24. package/package.json +4 -2
  25. package/dist-lib/embedded-cpSkU0tg.js +0 -28023
  26. package/dist-lib/engine-compile-BeZvvx0I.js +0 -10442
  27. package/dist-lib/mermaid-GHXKKRXX-CTlo5kzO.js +0 -4
@@ -0,0 +1,1247 @@
1
+ class f {
2
+ /**
3
+ * @param {SchemaType['property']} property
4
+ * Property.
5
+ * @param {SchemaType['normal']} normal
6
+ * Normal.
7
+ * @param {Space | undefined} [space]
8
+ * Space.
9
+ * @returns
10
+ * Schema.
11
+ */
12
+ constructor(e, a, t) {
13
+ this.normal = a, this.property = e, t && (this.space = t);
14
+ }
15
+ }
16
+ f.prototype.normal = {};
17
+ f.prototype.property = {};
18
+ f.prototype.space = void 0;
19
+ function L(l, e) {
20
+ const a = {}, t = {};
21
+ for (const u of l)
22
+ Object.assign(a, u.property), Object.assign(t, u.normal);
23
+ return new f(a, t, e);
24
+ }
25
+ function v(l) {
26
+ return l.toLowerCase();
27
+ }
28
+ class p {
29
+ /**
30
+ * @param {string} property
31
+ * Property.
32
+ * @param {string} attribute
33
+ * Attribute.
34
+ * @returns
35
+ * Info.
36
+ */
37
+ constructor(e, a) {
38
+ this.attribute = a, this.property = e;
39
+ }
40
+ }
41
+ p.prototype.attribute = "";
42
+ p.prototype.booleanish = !1;
43
+ p.prototype.boolean = !1;
44
+ p.prototype.commaOrSpaceSeparated = !1;
45
+ p.prototype.commaSeparated = !1;
46
+ p.prototype.defined = !1;
47
+ p.prototype.mustUseProperty = !1;
48
+ p.prototype.number = !1;
49
+ p.prototype.overloadedBoolean = !1;
50
+ p.prototype.property = "";
51
+ p.prototype.spaceSeparated = !1;
52
+ p.prototype.space = void 0;
53
+ let z = 0;
54
+ const o = h(), i = h(), k = h(), n = h(), r = h(), g = h(), d = h();
55
+ function h() {
56
+ return 2 ** ++z;
57
+ }
58
+ const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
59
+ __proto__: null,
60
+ boolean: o,
61
+ booleanish: i,
62
+ commaOrSpaceSeparated: d,
63
+ commaSeparated: g,
64
+ number: n,
65
+ overloadedBoolean: k,
66
+ spaceSeparated: r
67
+ }, Symbol.toStringTag, { value: "Module" })), y = (
68
+ /** @type {ReadonlyArray<keyof typeof types>} */
69
+ Object.keys(b)
70
+ );
71
+ class S extends p {
72
+ /**
73
+ * @constructor
74
+ * @param {string} property
75
+ * Property.
76
+ * @param {string} attribute
77
+ * Attribute.
78
+ * @param {number | null | undefined} [mask]
79
+ * Mask.
80
+ * @param {Space | undefined} [space]
81
+ * Space.
82
+ * @returns
83
+ * Info.
84
+ */
85
+ constructor(e, a, t, u) {
86
+ let s = -1;
87
+ if (super(e, a), w(this, "space", u), typeof t == "number")
88
+ for (; ++s < y.length; ) {
89
+ const c = y[s];
90
+ w(this, y[s], (t & b[c]) === b[c]);
91
+ }
92
+ }
93
+ }
94
+ S.prototype.defined = !0;
95
+ function w(l, e, a) {
96
+ a && (l[e] = a);
97
+ }
98
+ function m(l) {
99
+ const e = {}, a = {};
100
+ for (const [t, u] of Object.entries(l.properties)) {
101
+ const s = new S(
102
+ t,
103
+ l.transform(l.attributes || {}, t),
104
+ u,
105
+ l.space
106
+ );
107
+ l.mustUseProperty && l.mustUseProperty.includes(t) && (s.mustUseProperty = !0), e[t] = s, a[v(t)] = t, a[v(s.attribute)] = t;
108
+ }
109
+ return new f(e, a, l.space);
110
+ }
111
+ const D = m({
112
+ properties: {
113
+ ariaActiveDescendant: null,
114
+ ariaAtomic: i,
115
+ ariaAutoComplete: null,
116
+ ariaBusy: i,
117
+ ariaChecked: i,
118
+ ariaColCount: n,
119
+ ariaColIndex: n,
120
+ ariaColSpan: n,
121
+ ariaControls: r,
122
+ ariaCurrent: null,
123
+ ariaDescribedBy: r,
124
+ ariaDetails: null,
125
+ ariaDisabled: i,
126
+ ariaDropEffect: r,
127
+ ariaErrorMessage: null,
128
+ ariaExpanded: i,
129
+ ariaFlowTo: r,
130
+ ariaGrabbed: i,
131
+ ariaHasPopup: null,
132
+ ariaHidden: i,
133
+ ariaInvalid: null,
134
+ ariaKeyShortcuts: null,
135
+ ariaLabel: null,
136
+ ariaLabelledBy: r,
137
+ ariaLevel: n,
138
+ ariaLive: null,
139
+ ariaModal: i,
140
+ ariaMultiLine: i,
141
+ ariaMultiSelectable: i,
142
+ ariaOrientation: null,
143
+ ariaOwns: r,
144
+ ariaPlaceholder: null,
145
+ ariaPosInSet: n,
146
+ ariaPressed: i,
147
+ ariaReadOnly: i,
148
+ ariaRelevant: null,
149
+ ariaRequired: i,
150
+ ariaRoleDescription: r,
151
+ ariaRowCount: n,
152
+ ariaRowIndex: n,
153
+ ariaRowSpan: n,
154
+ ariaSelected: i,
155
+ ariaSetSize: n,
156
+ ariaSort: null,
157
+ ariaValueMax: n,
158
+ ariaValueMin: n,
159
+ ariaValueNow: n,
160
+ ariaValueText: null,
161
+ role: null
162
+ },
163
+ transform(l, e) {
164
+ return e === "role" ? e : "aria-" + e.slice(4).toLowerCase();
165
+ }
166
+ });
167
+ function R(l, e) {
168
+ return e in l ? l[e] : e;
169
+ }
170
+ function T(l, e) {
171
+ return R(l, e.toLowerCase());
172
+ }
173
+ const B = m({
174
+ attributes: {
175
+ acceptcharset: "accept-charset",
176
+ classname: "class",
177
+ htmlfor: "for",
178
+ httpequiv: "http-equiv"
179
+ },
180
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
181
+ properties: {
182
+ // Standard Properties.
183
+ abbr: null,
184
+ accept: g,
185
+ acceptCharset: r,
186
+ accessKey: r,
187
+ action: null,
188
+ allow: null,
189
+ allowFullScreen: o,
190
+ allowPaymentRequest: o,
191
+ allowUserMedia: o,
192
+ alpha: o,
193
+ alt: null,
194
+ as: null,
195
+ async: o,
196
+ autoCapitalize: null,
197
+ autoComplete: r,
198
+ autoFocus: o,
199
+ autoPlay: o,
200
+ blocking: r,
201
+ capture: null,
202
+ charSet: null,
203
+ checked: o,
204
+ cite: null,
205
+ className: r,
206
+ closedBy: null,
207
+ colorSpace: null,
208
+ cols: n,
209
+ colSpan: n,
210
+ command: null,
211
+ commandFor: null,
212
+ content: null,
213
+ contentEditable: i,
214
+ controls: o,
215
+ controlsList: r,
216
+ coords: n | g,
217
+ crossOrigin: null,
218
+ data: null,
219
+ dateTime: null,
220
+ decoding: null,
221
+ default: o,
222
+ defer: o,
223
+ dir: null,
224
+ dirName: null,
225
+ disabled: o,
226
+ download: k,
227
+ draggable: i,
228
+ encType: null,
229
+ enterKeyHint: null,
230
+ fetchPriority: null,
231
+ form: null,
232
+ formAction: null,
233
+ formEncType: null,
234
+ formMethod: null,
235
+ formNoValidate: o,
236
+ formTarget: null,
237
+ headers: r,
238
+ height: n,
239
+ hidden: k,
240
+ high: n,
241
+ href: null,
242
+ hrefLang: null,
243
+ htmlFor: r,
244
+ httpEquiv: r,
245
+ id: null,
246
+ imageSizes: null,
247
+ imageSrcSet: null,
248
+ inert: o,
249
+ inputMode: null,
250
+ integrity: null,
251
+ is: null,
252
+ isMap: o,
253
+ itemId: null,
254
+ itemProp: r,
255
+ itemRef: r,
256
+ itemScope: o,
257
+ itemType: r,
258
+ kind: null,
259
+ label: null,
260
+ lang: null,
261
+ language: null,
262
+ list: null,
263
+ loading: null,
264
+ loop: o,
265
+ low: n,
266
+ manifest: null,
267
+ max: null,
268
+ maxLength: n,
269
+ media: null,
270
+ method: null,
271
+ min: null,
272
+ minLength: n,
273
+ multiple: o,
274
+ muted: o,
275
+ name: null,
276
+ nonce: null,
277
+ noModule: o,
278
+ noValidate: o,
279
+ onAbort: null,
280
+ onAfterPrint: null,
281
+ onAuxClick: null,
282
+ onBeforeMatch: null,
283
+ onBeforePrint: null,
284
+ onBeforeToggle: null,
285
+ onBeforeUnload: null,
286
+ onBlur: null,
287
+ onCancel: null,
288
+ onCanPlay: null,
289
+ onCanPlayThrough: null,
290
+ onChange: null,
291
+ onClick: null,
292
+ onClose: null,
293
+ onContextLost: null,
294
+ onContextMenu: null,
295
+ onContextRestored: null,
296
+ onCopy: null,
297
+ onCueChange: null,
298
+ onCut: null,
299
+ onDblClick: null,
300
+ onDrag: null,
301
+ onDragEnd: null,
302
+ onDragEnter: null,
303
+ onDragExit: null,
304
+ onDragLeave: null,
305
+ onDragOver: null,
306
+ onDragStart: null,
307
+ onDrop: null,
308
+ onDurationChange: null,
309
+ onEmptied: null,
310
+ onEnded: null,
311
+ onError: null,
312
+ onFocus: null,
313
+ onFormData: null,
314
+ onHashChange: null,
315
+ onInput: null,
316
+ onInvalid: null,
317
+ onKeyDown: null,
318
+ onKeyPress: null,
319
+ onKeyUp: null,
320
+ onLanguageChange: null,
321
+ onLoad: null,
322
+ onLoadedData: null,
323
+ onLoadedMetadata: null,
324
+ onLoadEnd: null,
325
+ onLoadStart: null,
326
+ onMessage: null,
327
+ onMessageError: null,
328
+ onMouseDown: null,
329
+ onMouseEnter: null,
330
+ onMouseLeave: null,
331
+ onMouseMove: null,
332
+ onMouseOut: null,
333
+ onMouseOver: null,
334
+ onMouseUp: null,
335
+ onOffline: null,
336
+ onOnline: null,
337
+ onPageHide: null,
338
+ onPageShow: null,
339
+ onPaste: null,
340
+ onPause: null,
341
+ onPlay: null,
342
+ onPlaying: null,
343
+ onPopState: null,
344
+ onProgress: null,
345
+ onRateChange: null,
346
+ onRejectionHandled: null,
347
+ onReset: null,
348
+ onResize: null,
349
+ onScroll: null,
350
+ onScrollEnd: null,
351
+ onSecurityPolicyViolation: null,
352
+ onSeeked: null,
353
+ onSeeking: null,
354
+ onSelect: null,
355
+ onSlotChange: null,
356
+ onStalled: null,
357
+ onStorage: null,
358
+ onSubmit: null,
359
+ onSuspend: null,
360
+ onTimeUpdate: null,
361
+ onToggle: null,
362
+ onUnhandledRejection: null,
363
+ onUnload: null,
364
+ onVolumeChange: null,
365
+ onWaiting: null,
366
+ onWheel: null,
367
+ open: o,
368
+ optimum: n,
369
+ pattern: null,
370
+ ping: r,
371
+ placeholder: null,
372
+ playsInline: o,
373
+ popover: null,
374
+ popoverTarget: null,
375
+ popoverTargetAction: null,
376
+ poster: null,
377
+ preload: null,
378
+ readOnly: o,
379
+ referrerPolicy: null,
380
+ rel: r,
381
+ required: o,
382
+ reversed: o,
383
+ rows: n,
384
+ rowSpan: n,
385
+ sandbox: r,
386
+ scope: null,
387
+ scoped: o,
388
+ seamless: o,
389
+ selected: o,
390
+ shadowRootClonable: o,
391
+ shadowRootCustomElementRegistry: o,
392
+ shadowRootDelegatesFocus: o,
393
+ shadowRootMode: null,
394
+ shadowRootSerializable: o,
395
+ shape: null,
396
+ size: n,
397
+ sizes: null,
398
+ slot: null,
399
+ span: n,
400
+ spellCheck: i,
401
+ src: null,
402
+ srcDoc: null,
403
+ srcLang: null,
404
+ srcSet: null,
405
+ start: n,
406
+ step: null,
407
+ style: null,
408
+ tabIndex: n,
409
+ target: null,
410
+ title: null,
411
+ translate: null,
412
+ type: null,
413
+ typeMustMatch: o,
414
+ useMap: null,
415
+ value: i,
416
+ width: n,
417
+ wrap: null,
418
+ writingSuggestions: null,
419
+ // Legacy.
420
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
421
+ align: null,
422
+ // Several. Use CSS `text-align` instead,
423
+ aLink: null,
424
+ // `<body>`. Use CSS `a:active {color}` instead
425
+ archive: r,
426
+ // `<object>`. List of URIs to archives
427
+ axis: null,
428
+ // `<td>` and `<th>`. Use `scope` on `<th>`
429
+ background: null,
430
+ // `<body>`. Use CSS `background-image` instead
431
+ bgColor: null,
432
+ // `<body>` and table elements. Use CSS `background-color` instead
433
+ border: n,
434
+ // `<table>`. Use CSS `border-width` instead,
435
+ borderColor: null,
436
+ // `<table>`. Use CSS `border-color` instead,
437
+ bottomMargin: n,
438
+ // `<body>`
439
+ cellPadding: null,
440
+ // `<table>`
441
+ cellSpacing: null,
442
+ // `<table>`
443
+ char: null,
444
+ // Several table elements. When `align=char`, sets the character to align on
445
+ charOff: null,
446
+ // Several table elements. When `char`, offsets the alignment
447
+ classId: null,
448
+ // `<object>`
449
+ clear: null,
450
+ // `<br>`. Use CSS `clear` instead
451
+ code: null,
452
+ // `<object>`
453
+ codeBase: null,
454
+ // `<object>`
455
+ codeType: null,
456
+ // `<object>`
457
+ color: null,
458
+ // `<font>` and `<hr>`. Use CSS instead
459
+ compact: o,
460
+ // Lists. Use CSS to reduce space between items instead
461
+ declare: o,
462
+ // `<object>`
463
+ event: null,
464
+ // `<script>`
465
+ face: null,
466
+ // `<font>`. Use CSS instead
467
+ frame: null,
468
+ // `<table>`
469
+ frameBorder: null,
470
+ // `<iframe>`. Use CSS `border` instead
471
+ hSpace: n,
472
+ // `<img>` and `<object>`
473
+ leftMargin: n,
474
+ // `<body>`
475
+ link: null,
476
+ // `<body>`. Use CSS `a:link {color: *}` instead
477
+ longDesc: null,
478
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
479
+ lowSrc: null,
480
+ // `<img>`. Use a `<picture>`
481
+ marginHeight: n,
482
+ // `<body>`
483
+ marginWidth: n,
484
+ // `<body>`
485
+ noResize: o,
486
+ // `<frame>`
487
+ noHref: o,
488
+ // `<area>`. Use no href instead of an explicit `nohref`
489
+ noShade: o,
490
+ // `<hr>`. Use background-color and height instead of borders
491
+ noWrap: o,
492
+ // `<td>` and `<th>`
493
+ object: null,
494
+ // `<applet>`
495
+ profile: null,
496
+ // `<head>`
497
+ prompt: null,
498
+ // `<isindex>`
499
+ rev: null,
500
+ // `<link>`
501
+ rightMargin: n,
502
+ // `<body>`
503
+ rules: null,
504
+ // `<table>`
505
+ scheme: null,
506
+ // `<meta>`
507
+ scrolling: i,
508
+ // `<frame>`. Use overflow in the child context
509
+ standby: null,
510
+ // `<object>`
511
+ summary: null,
512
+ // `<table>`
513
+ text: null,
514
+ // `<body>`. Use CSS `color` instead
515
+ topMargin: n,
516
+ // `<body>`
517
+ valueType: null,
518
+ // `<param>`
519
+ version: null,
520
+ // `<html>`. Use a doctype.
521
+ vAlign: null,
522
+ // Several. Use CSS `vertical-align` instead
523
+ vLink: null,
524
+ // `<body>`. Use CSS `a:visited {color}` instead
525
+ vSpace: n,
526
+ // `<img>` and `<object>`
527
+ // Non-standard Properties.
528
+ allowTransparency: null,
529
+ autoCorrect: null,
530
+ autoSave: null,
531
+ credentialless: o,
532
+ disablePictureInPicture: o,
533
+ disableRemotePlayback: o,
534
+ exportParts: g,
535
+ part: r,
536
+ prefix: null,
537
+ property: null,
538
+ results: n,
539
+ security: null,
540
+ unselectable: null
541
+ },
542
+ space: "html",
543
+ transform: T
544
+ }), I = m({
545
+ attributes: {
546
+ accentHeight: "accent-height",
547
+ alignmentBaseline: "alignment-baseline",
548
+ arabicForm: "arabic-form",
549
+ baselineShift: "baseline-shift",
550
+ capHeight: "cap-height",
551
+ className: "class",
552
+ clipPath: "clip-path",
553
+ clipRule: "clip-rule",
554
+ colorInterpolation: "color-interpolation",
555
+ colorInterpolationFilters: "color-interpolation-filters",
556
+ colorProfile: "color-profile",
557
+ colorRendering: "color-rendering",
558
+ crossOrigin: "crossorigin",
559
+ dataType: "datatype",
560
+ dominantBaseline: "dominant-baseline",
561
+ enableBackground: "enable-background",
562
+ fillOpacity: "fill-opacity",
563
+ fillRule: "fill-rule",
564
+ floodColor: "flood-color",
565
+ floodOpacity: "flood-opacity",
566
+ fontFamily: "font-family",
567
+ fontSize: "font-size",
568
+ fontSizeAdjust: "font-size-adjust",
569
+ fontStretch: "font-stretch",
570
+ fontStyle: "font-style",
571
+ fontVariant: "font-variant",
572
+ fontWeight: "font-weight",
573
+ glyphName: "glyph-name",
574
+ glyphOrientationHorizontal: "glyph-orientation-horizontal",
575
+ glyphOrientationVertical: "glyph-orientation-vertical",
576
+ hrefLang: "hreflang",
577
+ horizAdvX: "horiz-adv-x",
578
+ horizOriginX: "horiz-origin-x",
579
+ horizOriginY: "horiz-origin-y",
580
+ imageRendering: "image-rendering",
581
+ letterSpacing: "letter-spacing",
582
+ lightingColor: "lighting-color",
583
+ markerEnd: "marker-end",
584
+ markerMid: "marker-mid",
585
+ markerStart: "marker-start",
586
+ maskType: "mask-type",
587
+ navDown: "nav-down",
588
+ navDownLeft: "nav-down-left",
589
+ navDownRight: "nav-down-right",
590
+ navLeft: "nav-left",
591
+ navNext: "nav-next",
592
+ navPrev: "nav-prev",
593
+ navRight: "nav-right",
594
+ navUp: "nav-up",
595
+ navUpLeft: "nav-up-left",
596
+ navUpRight: "nav-up-right",
597
+ onAbort: "onabort",
598
+ onActivate: "onactivate",
599
+ onAfterPrint: "onafterprint",
600
+ onBeforePrint: "onbeforeprint",
601
+ onBegin: "onbegin",
602
+ onCancel: "oncancel",
603
+ onCanPlay: "oncanplay",
604
+ onCanPlayThrough: "oncanplaythrough",
605
+ onChange: "onchange",
606
+ onClick: "onclick",
607
+ onClose: "onclose",
608
+ onCopy: "oncopy",
609
+ onCueChange: "oncuechange",
610
+ onCut: "oncut",
611
+ onDblClick: "ondblclick",
612
+ onDrag: "ondrag",
613
+ onDragEnd: "ondragend",
614
+ onDragEnter: "ondragenter",
615
+ onDragExit: "ondragexit",
616
+ onDragLeave: "ondragleave",
617
+ onDragOver: "ondragover",
618
+ onDragStart: "ondragstart",
619
+ onDrop: "ondrop",
620
+ onDurationChange: "ondurationchange",
621
+ onEmptied: "onemptied",
622
+ onEnd: "onend",
623
+ onEnded: "onended",
624
+ onError: "onerror",
625
+ onFocus: "onfocus",
626
+ onFocusIn: "onfocusin",
627
+ onFocusOut: "onfocusout",
628
+ onHashChange: "onhashchange",
629
+ onInput: "oninput",
630
+ onInvalid: "oninvalid",
631
+ onKeyDown: "onkeydown",
632
+ onKeyPress: "onkeypress",
633
+ onKeyUp: "onkeyup",
634
+ onLoad: "onload",
635
+ onLoadedData: "onloadeddata",
636
+ onLoadedMetadata: "onloadedmetadata",
637
+ onLoadStart: "onloadstart",
638
+ onMessage: "onmessage",
639
+ onMouseDown: "onmousedown",
640
+ onMouseEnter: "onmouseenter",
641
+ onMouseLeave: "onmouseleave",
642
+ onMouseMove: "onmousemove",
643
+ onMouseOut: "onmouseout",
644
+ onMouseOver: "onmouseover",
645
+ onMouseUp: "onmouseup",
646
+ onMouseWheel: "onmousewheel",
647
+ onOffline: "onoffline",
648
+ onOnline: "ononline",
649
+ onPageHide: "onpagehide",
650
+ onPageShow: "onpageshow",
651
+ onPaste: "onpaste",
652
+ onPause: "onpause",
653
+ onPlay: "onplay",
654
+ onPlaying: "onplaying",
655
+ onPopState: "onpopstate",
656
+ onProgress: "onprogress",
657
+ onRateChange: "onratechange",
658
+ onRepeat: "onrepeat",
659
+ onReset: "onreset",
660
+ onResize: "onresize",
661
+ onScroll: "onscroll",
662
+ onSeeked: "onseeked",
663
+ onSeeking: "onseeking",
664
+ onSelect: "onselect",
665
+ onShow: "onshow",
666
+ onStalled: "onstalled",
667
+ onStorage: "onstorage",
668
+ onSubmit: "onsubmit",
669
+ onSuspend: "onsuspend",
670
+ onTimeUpdate: "ontimeupdate",
671
+ onToggle: "ontoggle",
672
+ onUnload: "onunload",
673
+ onVolumeChange: "onvolumechange",
674
+ onWaiting: "onwaiting",
675
+ onZoom: "onzoom",
676
+ overlinePosition: "overline-position",
677
+ overlineThickness: "overline-thickness",
678
+ paintOrder: "paint-order",
679
+ panose1: "panose-1",
680
+ pointerEvents: "pointer-events",
681
+ referrerPolicy: "referrerpolicy",
682
+ renderingIntent: "rendering-intent",
683
+ shapeRendering: "shape-rendering",
684
+ stopColor: "stop-color",
685
+ stopOpacity: "stop-opacity",
686
+ strikethroughPosition: "strikethrough-position",
687
+ strikethroughThickness: "strikethrough-thickness",
688
+ strokeDashArray: "stroke-dasharray",
689
+ strokeDashOffset: "stroke-dashoffset",
690
+ strokeLineCap: "stroke-linecap",
691
+ strokeLineJoin: "stroke-linejoin",
692
+ strokeMiterLimit: "stroke-miterlimit",
693
+ strokeOpacity: "stroke-opacity",
694
+ strokeWidth: "stroke-width",
695
+ tabIndex: "tabindex",
696
+ textAnchor: "text-anchor",
697
+ textDecoration: "text-decoration",
698
+ textRendering: "text-rendering",
699
+ transformOrigin: "transform-origin",
700
+ typeOf: "typeof",
701
+ underlinePosition: "underline-position",
702
+ underlineThickness: "underline-thickness",
703
+ unicodeBidi: "unicode-bidi",
704
+ unicodeRange: "unicode-range",
705
+ unitsPerEm: "units-per-em",
706
+ vAlphabetic: "v-alphabetic",
707
+ vHanging: "v-hanging",
708
+ vIdeographic: "v-ideographic",
709
+ vMathematical: "v-mathematical",
710
+ vectorEffect: "vector-effect",
711
+ vertAdvY: "vert-adv-y",
712
+ vertOriginX: "vert-origin-x",
713
+ vertOriginY: "vert-origin-y",
714
+ wordSpacing: "word-spacing",
715
+ writingMode: "writing-mode",
716
+ xHeight: "x-height",
717
+ // These were camelcased in Tiny. Now lowercased in SVG 2
718
+ playbackOrder: "playbackorder",
719
+ timelineBegin: "timelinebegin"
720
+ },
721
+ properties: {
722
+ about: d,
723
+ accentHeight: n,
724
+ accumulate: null,
725
+ additive: null,
726
+ alignmentBaseline: null,
727
+ alphabetic: n,
728
+ amplitude: n,
729
+ arabicForm: null,
730
+ ascent: n,
731
+ attributeName: null,
732
+ attributeType: null,
733
+ azimuth: n,
734
+ bandwidth: null,
735
+ baselineShift: null,
736
+ baseFrequency: null,
737
+ baseProfile: null,
738
+ bbox: null,
739
+ begin: null,
740
+ bias: n,
741
+ by: null,
742
+ calcMode: null,
743
+ capHeight: n,
744
+ className: r,
745
+ clip: null,
746
+ clipPath: null,
747
+ clipPathUnits: null,
748
+ clipRule: null,
749
+ color: null,
750
+ colorInterpolation: null,
751
+ colorInterpolationFilters: null,
752
+ colorProfile: null,
753
+ colorRendering: null,
754
+ content: null,
755
+ contentScriptType: null,
756
+ contentStyleType: null,
757
+ crossOrigin: null,
758
+ cursor: null,
759
+ cx: null,
760
+ cy: null,
761
+ d: null,
762
+ dataType: null,
763
+ defaultAction: null,
764
+ descent: n,
765
+ diffuseConstant: n,
766
+ direction: null,
767
+ display: null,
768
+ dur: null,
769
+ divisor: n,
770
+ dominantBaseline: null,
771
+ download: o,
772
+ dx: null,
773
+ dy: null,
774
+ edgeMode: null,
775
+ editable: null,
776
+ elevation: n,
777
+ enableBackground: null,
778
+ end: null,
779
+ event: null,
780
+ exponent: n,
781
+ externalResourcesRequired: null,
782
+ fill: null,
783
+ fillOpacity: n,
784
+ fillRule: null,
785
+ filter: null,
786
+ filterRes: null,
787
+ filterUnits: null,
788
+ floodColor: null,
789
+ floodOpacity: null,
790
+ focusable: null,
791
+ focusHighlight: null,
792
+ fontFamily: null,
793
+ fontSize: null,
794
+ fontSizeAdjust: null,
795
+ fontStretch: null,
796
+ fontStyle: null,
797
+ fontVariant: null,
798
+ fontWeight: null,
799
+ format: null,
800
+ fr: null,
801
+ from: null,
802
+ fx: null,
803
+ fy: null,
804
+ g1: g,
805
+ g2: g,
806
+ glyphName: g,
807
+ glyphOrientationHorizontal: null,
808
+ glyphOrientationVertical: null,
809
+ glyphRef: null,
810
+ gradientTransform: null,
811
+ gradientUnits: null,
812
+ handler: null,
813
+ hanging: n,
814
+ hatchContentUnits: null,
815
+ hatchUnits: null,
816
+ height: null,
817
+ href: null,
818
+ hrefLang: null,
819
+ horizAdvX: n,
820
+ horizOriginX: n,
821
+ horizOriginY: n,
822
+ id: null,
823
+ ideographic: n,
824
+ imageRendering: null,
825
+ initialVisibility: null,
826
+ in: null,
827
+ in2: null,
828
+ intercept: n,
829
+ k: n,
830
+ k1: n,
831
+ k2: n,
832
+ k3: n,
833
+ k4: n,
834
+ kernelMatrix: d,
835
+ kernelUnitLength: null,
836
+ keyPoints: null,
837
+ // SEMI_COLON_SEPARATED
838
+ keySplines: null,
839
+ // SEMI_COLON_SEPARATED
840
+ keyTimes: null,
841
+ // SEMI_COLON_SEPARATED
842
+ kerning: null,
843
+ lang: null,
844
+ lengthAdjust: null,
845
+ letterSpacing: null,
846
+ lightingColor: null,
847
+ limitingConeAngle: n,
848
+ local: null,
849
+ markerEnd: null,
850
+ markerMid: null,
851
+ markerStart: null,
852
+ markerHeight: null,
853
+ markerUnits: null,
854
+ markerWidth: null,
855
+ mask: null,
856
+ maskContentUnits: null,
857
+ maskType: null,
858
+ maskUnits: null,
859
+ mathematical: null,
860
+ max: null,
861
+ media: null,
862
+ mediaCharacterEncoding: null,
863
+ mediaContentEncodings: null,
864
+ mediaSize: n,
865
+ mediaTime: null,
866
+ method: null,
867
+ min: null,
868
+ mode: null,
869
+ name: null,
870
+ navDown: null,
871
+ navDownLeft: null,
872
+ navDownRight: null,
873
+ navLeft: null,
874
+ navNext: null,
875
+ navPrev: null,
876
+ navRight: null,
877
+ navUp: null,
878
+ navUpLeft: null,
879
+ navUpRight: null,
880
+ numOctaves: null,
881
+ observer: null,
882
+ offset: null,
883
+ onAbort: null,
884
+ onActivate: null,
885
+ onAfterPrint: null,
886
+ onBeforePrint: null,
887
+ onBegin: null,
888
+ onCancel: null,
889
+ onCanPlay: null,
890
+ onCanPlayThrough: null,
891
+ onChange: null,
892
+ onClick: null,
893
+ onClose: null,
894
+ onCopy: null,
895
+ onCueChange: null,
896
+ onCut: null,
897
+ onDblClick: null,
898
+ onDrag: null,
899
+ onDragEnd: null,
900
+ onDragEnter: null,
901
+ onDragExit: null,
902
+ onDragLeave: null,
903
+ onDragOver: null,
904
+ onDragStart: null,
905
+ onDrop: null,
906
+ onDurationChange: null,
907
+ onEmptied: null,
908
+ onEnd: null,
909
+ onEnded: null,
910
+ onError: null,
911
+ onFocus: null,
912
+ onFocusIn: null,
913
+ onFocusOut: null,
914
+ onHashChange: null,
915
+ onInput: null,
916
+ onInvalid: null,
917
+ onKeyDown: null,
918
+ onKeyPress: null,
919
+ onKeyUp: null,
920
+ onLoad: null,
921
+ onLoadedData: null,
922
+ onLoadedMetadata: null,
923
+ onLoadStart: null,
924
+ onMessage: null,
925
+ onMouseDown: null,
926
+ onMouseEnter: null,
927
+ onMouseLeave: null,
928
+ onMouseMove: null,
929
+ onMouseOut: null,
930
+ onMouseOver: null,
931
+ onMouseUp: null,
932
+ onMouseWheel: null,
933
+ onOffline: null,
934
+ onOnline: null,
935
+ onPageHide: null,
936
+ onPageShow: null,
937
+ onPaste: null,
938
+ onPause: null,
939
+ onPlay: null,
940
+ onPlaying: null,
941
+ onPopState: null,
942
+ onProgress: null,
943
+ onRateChange: null,
944
+ onRepeat: null,
945
+ onReset: null,
946
+ onResize: null,
947
+ onScroll: null,
948
+ onSeeked: null,
949
+ onSeeking: null,
950
+ onSelect: null,
951
+ onShow: null,
952
+ onStalled: null,
953
+ onStorage: null,
954
+ onSubmit: null,
955
+ onSuspend: null,
956
+ onTimeUpdate: null,
957
+ onToggle: null,
958
+ onUnload: null,
959
+ onVolumeChange: null,
960
+ onWaiting: null,
961
+ onZoom: null,
962
+ opacity: null,
963
+ operator: null,
964
+ order: null,
965
+ orient: null,
966
+ orientation: null,
967
+ origin: null,
968
+ overflow: null,
969
+ overlay: null,
970
+ overlinePosition: n,
971
+ overlineThickness: n,
972
+ paintOrder: null,
973
+ panose1: null,
974
+ path: null,
975
+ pathLength: n,
976
+ patternContentUnits: null,
977
+ patternTransform: null,
978
+ patternUnits: null,
979
+ phase: null,
980
+ ping: r,
981
+ pitch: null,
982
+ playbackOrder: null,
983
+ pointerEvents: null,
984
+ points: null,
985
+ pointsAtX: n,
986
+ pointsAtY: n,
987
+ pointsAtZ: n,
988
+ preserveAlpha: null,
989
+ preserveAspectRatio: null,
990
+ primitiveUnits: null,
991
+ propagate: null,
992
+ property: d,
993
+ r: null,
994
+ radius: null,
995
+ referrerPolicy: null,
996
+ refX: null,
997
+ refY: null,
998
+ rel: d,
999
+ rev: d,
1000
+ renderingIntent: null,
1001
+ repeatCount: null,
1002
+ repeatDur: null,
1003
+ requiredExtensions: d,
1004
+ requiredFeatures: d,
1005
+ requiredFonts: d,
1006
+ requiredFormats: d,
1007
+ resource: null,
1008
+ restart: null,
1009
+ result: null,
1010
+ rotate: null,
1011
+ rx: null,
1012
+ ry: null,
1013
+ scale: null,
1014
+ seed: null,
1015
+ shapeRendering: null,
1016
+ side: null,
1017
+ slope: null,
1018
+ snapshotTime: null,
1019
+ specularConstant: n,
1020
+ specularExponent: n,
1021
+ spreadMethod: null,
1022
+ spacing: null,
1023
+ startOffset: null,
1024
+ stdDeviation: null,
1025
+ stemh: null,
1026
+ stemv: null,
1027
+ stitchTiles: null,
1028
+ stopColor: null,
1029
+ stopOpacity: null,
1030
+ strikethroughPosition: n,
1031
+ strikethroughThickness: n,
1032
+ string: null,
1033
+ stroke: null,
1034
+ strokeDashArray: d,
1035
+ strokeDashOffset: null,
1036
+ strokeLineCap: null,
1037
+ strokeLineJoin: null,
1038
+ strokeMiterLimit: n,
1039
+ strokeOpacity: n,
1040
+ strokeWidth: null,
1041
+ style: null,
1042
+ surfaceScale: n,
1043
+ syncBehavior: null,
1044
+ syncBehaviorDefault: null,
1045
+ syncMaster: null,
1046
+ syncTolerance: null,
1047
+ syncToleranceDefault: null,
1048
+ systemLanguage: d,
1049
+ tabIndex: n,
1050
+ tableValues: null,
1051
+ target: null,
1052
+ targetX: n,
1053
+ targetY: n,
1054
+ textAnchor: null,
1055
+ textDecoration: null,
1056
+ textRendering: null,
1057
+ textLength: null,
1058
+ timelineBegin: null,
1059
+ title: null,
1060
+ transformBehavior: null,
1061
+ type: null,
1062
+ typeOf: d,
1063
+ to: null,
1064
+ transform: null,
1065
+ transformOrigin: null,
1066
+ u1: null,
1067
+ u2: null,
1068
+ underlinePosition: n,
1069
+ underlineThickness: n,
1070
+ unicode: null,
1071
+ unicodeBidi: null,
1072
+ unicodeRange: null,
1073
+ unitsPerEm: n,
1074
+ values: null,
1075
+ vAlphabetic: n,
1076
+ vMathematical: n,
1077
+ vectorEffect: null,
1078
+ vHanging: n,
1079
+ vIdeographic: n,
1080
+ version: null,
1081
+ vertAdvY: n,
1082
+ vertOriginX: n,
1083
+ vertOriginY: n,
1084
+ viewBox: null,
1085
+ viewTarget: null,
1086
+ visibility: null,
1087
+ width: null,
1088
+ widths: null,
1089
+ wordSpacing: null,
1090
+ writingMode: null,
1091
+ x: null,
1092
+ x1: null,
1093
+ x2: null,
1094
+ xChannelSelector: null,
1095
+ xHeight: n,
1096
+ y: null,
1097
+ y1: null,
1098
+ y2: null,
1099
+ yChannelSelector: null,
1100
+ z: null,
1101
+ zoomAndPan: null
1102
+ },
1103
+ space: "svg",
1104
+ transform: R
1105
+ }), E = m({
1106
+ properties: {
1107
+ xLinkActuate: null,
1108
+ xLinkArcRole: null,
1109
+ xLinkHref: null,
1110
+ xLinkRole: null,
1111
+ xLinkShow: null,
1112
+ xLinkTitle: null,
1113
+ xLinkType: null
1114
+ },
1115
+ space: "xlink",
1116
+ transform(l, e) {
1117
+ return "xlink:" + e.slice(5).toLowerCase();
1118
+ }
1119
+ }), A = m({
1120
+ attributes: { xmlnsxlink: "xmlns:xlink" },
1121
+ properties: { xmlnsXLink: null, xmlns: null },
1122
+ space: "xmlns",
1123
+ transform: T
1124
+ }), U = m({
1125
+ properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1126
+ space: "xml",
1127
+ transform(l, e) {
1128
+ return "xml:" + e.slice(3).toLowerCase();
1129
+ }
1130
+ }), H = /[A-Z]/g, P = /-[a-z]/g, F = /^data[-\w.:]+$/i;
1131
+ function q(l, e) {
1132
+ const a = v(e);
1133
+ let t = e, u = p;
1134
+ if (a in l.normal)
1135
+ return l.property[l.normal[a]];
1136
+ if (a.length > 4 && a.slice(0, 4) === "data" && F.test(e)) {
1137
+ if (e.charAt(4) === "-") {
1138
+ const s = e.slice(5).replace(P, V);
1139
+ t = "data" + s.charAt(0).toUpperCase() + s.slice(1);
1140
+ } else {
1141
+ const s = e.slice(4);
1142
+ if (!P.test(s)) {
1143
+ let c = s.replace(H, j);
1144
+ c.charAt(0) !== "-" && (c = "-" + c), e = "data" + c;
1145
+ }
1146
+ }
1147
+ u = S;
1148
+ }
1149
+ return new u(t, e);
1150
+ }
1151
+ function j(l) {
1152
+ return "-" + l.toLowerCase();
1153
+ }
1154
+ function V(l) {
1155
+ return l.charAt(1).toUpperCase();
1156
+ }
1157
+ const K = L([D, B, E, A, U], "html"), N = L([D, I, E, A, U], "svg");
1158
+ function X(l) {
1159
+ const e = [], a = String(l || "");
1160
+ let t = a.indexOf(","), u = 0, s = !1;
1161
+ for (; !s; ) {
1162
+ t === -1 && (t = a.length, s = !0);
1163
+ const c = a.slice(u, t).trim();
1164
+ (c || !s) && e.push(c), u = t + 1, t = a.indexOf(",", u);
1165
+ }
1166
+ return e;
1167
+ }
1168
+ function Y(l, e) {
1169
+ const a = e || {};
1170
+ return (l[l.length - 1] === "" ? [...l, ""] : l).join(
1171
+ (a.padRight ? " " : "") + "," + (a.padLeft === !1 ? "" : " ")
1172
+ ).trim();
1173
+ }
1174
+ function _(l) {
1175
+ const e = String(l || "").trim();
1176
+ return e ? e.split(/[ \t\n\r\f]+/g) : [];
1177
+ }
1178
+ function $(l) {
1179
+ return l.join(" ").trim();
1180
+ }
1181
+ const O = {}.hasOwnProperty;
1182
+ function Z(l, e) {
1183
+ const a = e || {};
1184
+ function t(u, ...s) {
1185
+ let c = t.invalid;
1186
+ const C = t.handlers;
1187
+ if (u && O.call(u, l)) {
1188
+ const x = String(u[l]);
1189
+ c = O.call(C, x) ? C[x] : t.unknown;
1190
+ }
1191
+ if (c)
1192
+ return c.call(this, u, ...s);
1193
+ }
1194
+ return t.handlers = a.handlers || {}, t.invalid = a.invalid, t.unknown = a.unknown, t;
1195
+ }
1196
+ const J = [
1197
+ "area",
1198
+ "base",
1199
+ "basefont",
1200
+ "bgsound",
1201
+ "br",
1202
+ "col",
1203
+ "command",
1204
+ "embed",
1205
+ "frame",
1206
+ "hr",
1207
+ "image",
1208
+ "img",
1209
+ "input",
1210
+ "keygen",
1211
+ "link",
1212
+ "meta",
1213
+ "param",
1214
+ "source",
1215
+ "track",
1216
+ "wbr"
1217
+ ];
1218
+ function G(l, e) {
1219
+ const a = String(l);
1220
+ if (typeof e != "string")
1221
+ throw new TypeError("Expected character");
1222
+ let t = 0, u = a.indexOf(e);
1223
+ for (; u !== -1; )
1224
+ t++, u = a.indexOf(e, u + e.length);
1225
+ return t;
1226
+ }
1227
+ const W = /[ \t\n\f\r]/g;
1228
+ function Q(l) {
1229
+ return typeof l == "object" ? l.type === "text" ? M(l.value) : !1 : M(l);
1230
+ }
1231
+ function M(l) {
1232
+ return l.replace(W, "") === "";
1233
+ }
1234
+ export {
1235
+ Y as a,
1236
+ $ as b,
1237
+ G as c,
1238
+ J as d,
1239
+ X as e,
1240
+ q as f,
1241
+ K as h,
1242
+ v as n,
1243
+ _ as p,
1244
+ N as s,
1245
+ Q as w,
1246
+ Z as z
1247
+ };