@vanelsas/baredom 4.13.0 → 4.15.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/CHANGELOG.md +38 -0
- package/README.md +2 -2
- package/custom-elements.json +229 -0
- package/dist/all.js +2 -0
- package/dist/baredom.d.ts +1 -0
- package/dist/baremirror-alpha.js +41 -41
- package/dist/base.js +650 -648
- package/dist/foreign-writes.js +4 -0
- package/dist/integrity.json +115 -114
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +13 -13
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +17 -17
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +42 -42
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +35 -35
- package/dist/x-chart.js +47 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +31 -31
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +34 -34
- package/dist/x-command-palette.js +29 -29
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +46 -46
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +36 -36
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +11 -11
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +24 -24
- package/dist/x-floating-panel.js +20 -20
- package/dist/x-form-field.js +17 -17
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +18 -18
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +26 -26
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +35 -35
- package/dist/x-liquid-dock.js +34 -34
- package/dist/x-liquid-fill.js +41 -41
- package/dist/x-liquid-glass.js +42 -42
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -26
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +42 -42
- package/dist/x-navbar.js +16 -16
- package/dist/x-neural-glow.js +26 -26
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +36 -36
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +18 -18
- package/dist/x-particle-button.js +53 -53
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +8 -8
- package/dist/x-progress.js +8 -8
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +25 -25
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +33 -33
- package/dist/x-scroll-timeline.js +49 -49
- package/dist/x-scroll.js +36 -36
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +14 -14
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +19 -19
- package/dist/x-spacer.js +3 -3
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +13 -13
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +8 -8
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +20 -20
- package/dist/x-tabs.js +12 -12
- package/dist/x-text-area.js +20 -20
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +7 -7
- package/dist/x-toc.d.ts +45 -0
- package/dist/x-toc.js +36 -0
- package/dist/x-tooltip.js +15 -15
- package/dist/x-trace-history.js +119 -119
- package/dist/x-typography.d.ts +1 -0
- package/dist/x-typography.js +12 -9
- package/dist/x-welcome-tour.js +63 -63
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.15.0] - 2026-10-23
|
|
6
|
+
|
|
7
|
+
BareDOM 4.15 adds gradient text to `x-typography`. All five adapters are released with it:
|
|
8
|
+
`-react` 3.5.0, `-angular` 3.5.0, `-vue` 0.11.0, `-svelte` 0.11.0 and `-solid` 0.11.0. They type
|
|
9
|
+
the new `gradient` prop, and each still works with `@vanelsas/baredom` 4.14.0 or later.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Gradient text in `x-typography`.** A `gradient` attribute fills the text with
|
|
14
|
+
`--x-typography-gradient`. Without the variable, the gradient runs from the theme's primary
|
|
15
|
+
colour to its secondary and tertiary, so it follows `x-theme`. The gradient spans the text, not
|
|
16
|
+
the width of the element, and a slotted block gets its own. A new `text` part holds the
|
|
17
|
+
gradient, so it can be styled or moved. Under forced colours, in a selection and in a browser
|
|
18
|
+
without `background-clip: text`, the text stays readable. See
|
|
19
|
+
[`docs/x-typography.md`](docs/x-typography.md) and the
|
|
20
|
+
[demo](https://avanelsas.github.io/baredom/demo/x-typography.html).
|
|
21
|
+
|
|
22
|
+
## [4.14.0] - 2026-10-23
|
|
23
|
+
|
|
24
|
+
BareDOM 4.14 adds `x-toc`, a table of contents that follows the reader. All five adapters are
|
|
25
|
+
released with it: `-react` 3.4.0, `-angular` 3.4.0, `-vue` 0.10.0, `-svelte` 0.10.0 and
|
|
26
|
+
`-solid` 0.10.0. They add `XToc`, and each now needs `@vanelsas/baredom` 4.14.0 or later.
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- **`x-toc`, a table of contents.** It lists the headings of a container that `for` names, marks
|
|
31
|
+
the heading the reader is at while they scroll, and scrolls to a heading on click. A heading
|
|
32
|
+
without an id gets one from its text. With `sticky` it stays in view while the page scrolls.
|
|
33
|
+
It finds the nearest scrolling ancestor of the container, and a container that appears or is
|
|
34
|
+
replaced later. See [`docs/x-toc.md`](docs/x-toc.md) and the
|
|
35
|
+
[demo](https://avanelsas.github.io/baredom/demo/x-toc.html).
|
|
36
|
+
- **`XToc` in the five adapters.**
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- **The adapters need `@vanelsas/baredom` 4.14.0 or later.** Their index exports `XToc`, which
|
|
41
|
+
imports `@vanelsas/baredom/x-toc`.
|
|
42
|
+
|
|
5
43
|
## [4.13.0] - 2026-10-22
|
|
6
44
|
|
|
7
45
|
BareDOM 4.13 is the public alpha of BareMirror. BareMirror gets a README and a first look in
|
package/README.md
CHANGED
|
@@ -117,13 +117,13 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
|
|
|
117
117
|
|
|
118
118
|
## Components
|
|
119
119
|
|
|
120
|
-
**
|
|
120
|
+
**107 UI web components across 11 categories** — from foundational UI controls to morphing animations, organic effects, and scroll-driven storytelling.
|
|
121
121
|
|
|
122
122
|
| Category | Count | Examples |
|
|
123
123
|
|----------|------:|----------|
|
|
124
124
|
| **Form** | 23 | Button · Checkbox · Slider · Combobox · OTP Input · Color Picker |
|
|
125
125
|
| **Feedback** | 11 | Alert · Toast · Spinner · Progress · Skeleton · Notification Center |
|
|
126
|
-
| **Navigation** |
|
|
126
|
+
| **Navigation** | 9 | Navbar · Sidebar · Breadcrumbs · Tabs · Pagination · Menu · Table of Contents |
|
|
127
127
|
| **Layout** | 12 | Card · Grid · Bento Grid · Split Pane · Drag Panel · Drop Zone |
|
|
128
128
|
| **Data** | 11 | Avatar · Table · Chart · Timeline · Calendar · Stat |
|
|
129
129
|
| **Overlay** | 10 | Modal · Drawer · Popover · Tooltip · Floating Panel · Command Palette |
|
package/custom-elements.json
CHANGED
|
@@ -21718,6 +21718,219 @@
|
|
|
21718
21718
|
"name" : "XToaster"
|
|
21719
21719
|
}
|
|
21720
21720
|
} ]
|
|
21721
|
+
}, {
|
|
21722
|
+
"kind" : "javascript-module",
|
|
21723
|
+
"path" : "dist/x-toc.js",
|
|
21724
|
+
"declarations" : [ {
|
|
21725
|
+
"kind" : "class",
|
|
21726
|
+
"name" : "XToc",
|
|
21727
|
+
"tagName" : "x-toc",
|
|
21728
|
+
"superclass" : {
|
|
21729
|
+
"name" : "HTMLElement"
|
|
21730
|
+
},
|
|
21731
|
+
"members" : [ {
|
|
21732
|
+
"kind" : "field",
|
|
21733
|
+
"name" : "for",
|
|
21734
|
+
"type" : {
|
|
21735
|
+
"text" : "string"
|
|
21736
|
+
}
|
|
21737
|
+
}, {
|
|
21738
|
+
"kind" : "field",
|
|
21739
|
+
"name" : "selector",
|
|
21740
|
+
"type" : {
|
|
21741
|
+
"text" : "string"
|
|
21742
|
+
}
|
|
21743
|
+
}, {
|
|
21744
|
+
"kind" : "field",
|
|
21745
|
+
"name" : "label",
|
|
21746
|
+
"type" : {
|
|
21747
|
+
"text" : "string"
|
|
21748
|
+
}
|
|
21749
|
+
}, {
|
|
21750
|
+
"kind" : "field",
|
|
21751
|
+
"name" : "offset",
|
|
21752
|
+
"type" : {
|
|
21753
|
+
"text" : "string"
|
|
21754
|
+
}
|
|
21755
|
+
}, {
|
|
21756
|
+
"kind" : "field",
|
|
21757
|
+
"name" : "sticky",
|
|
21758
|
+
"type" : {
|
|
21759
|
+
"text" : "boolean"
|
|
21760
|
+
}
|
|
21761
|
+
}, {
|
|
21762
|
+
"kind" : "field",
|
|
21763
|
+
"name" : "updateHash",
|
|
21764
|
+
"type" : {
|
|
21765
|
+
"text" : "boolean"
|
|
21766
|
+
}
|
|
21767
|
+
}, {
|
|
21768
|
+
"kind" : "field",
|
|
21769
|
+
"name" : "activeId",
|
|
21770
|
+
"type" : {
|
|
21771
|
+
"text" : "string"
|
|
21772
|
+
},
|
|
21773
|
+
"readonly" : true
|
|
21774
|
+
} ],
|
|
21775
|
+
"attributes" : [ {
|
|
21776
|
+
"name" : "for",
|
|
21777
|
+
"fieldName" : "for",
|
|
21778
|
+
"type" : {
|
|
21779
|
+
"text" : "string"
|
|
21780
|
+
}
|
|
21781
|
+
}, {
|
|
21782
|
+
"name" : "selector",
|
|
21783
|
+
"fieldName" : "selector",
|
|
21784
|
+
"type" : {
|
|
21785
|
+
"text" : "string"
|
|
21786
|
+
}
|
|
21787
|
+
}, {
|
|
21788
|
+
"name" : "label",
|
|
21789
|
+
"fieldName" : "label",
|
|
21790
|
+
"type" : {
|
|
21791
|
+
"text" : "string"
|
|
21792
|
+
}
|
|
21793
|
+
}, {
|
|
21794
|
+
"name" : "offset",
|
|
21795
|
+
"fieldName" : "offset",
|
|
21796
|
+
"type" : {
|
|
21797
|
+
"text" : "string"
|
|
21798
|
+
}
|
|
21799
|
+
}, {
|
|
21800
|
+
"name" : "sticky",
|
|
21801
|
+
"fieldName" : "sticky",
|
|
21802
|
+
"type" : {
|
|
21803
|
+
"text" : "boolean"
|
|
21804
|
+
}
|
|
21805
|
+
}, {
|
|
21806
|
+
"name" : "update-hash",
|
|
21807
|
+
"fieldName" : "updateHash",
|
|
21808
|
+
"type" : {
|
|
21809
|
+
"text" : "boolean"
|
|
21810
|
+
}
|
|
21811
|
+
} ],
|
|
21812
|
+
"events" : [ {
|
|
21813
|
+
"name" : "x-toc-change",
|
|
21814
|
+
"type" : {
|
|
21815
|
+
"text" : "CustomEvent<{ id: string; text: string; level: number; index: number; previousId: string }>"
|
|
21816
|
+
},
|
|
21817
|
+
"cancelable" : false,
|
|
21818
|
+
"detail" : {
|
|
21819
|
+
"id" : "string",
|
|
21820
|
+
"text" : "string",
|
|
21821
|
+
"level" : "number",
|
|
21822
|
+
"index" : "number",
|
|
21823
|
+
"previousId" : "string"
|
|
21824
|
+
}
|
|
21825
|
+
}, {
|
|
21826
|
+
"name" : "x-toc-navigate",
|
|
21827
|
+
"type" : {
|
|
21828
|
+
"text" : "CustomEvent<{ id: string; text: string; level: number; index: number }>"
|
|
21829
|
+
},
|
|
21830
|
+
"cancelable" : true,
|
|
21831
|
+
"detail" : {
|
|
21832
|
+
"id" : "string",
|
|
21833
|
+
"text" : "string",
|
|
21834
|
+
"level" : "number",
|
|
21835
|
+
"index" : "number"
|
|
21836
|
+
}
|
|
21837
|
+
} ],
|
|
21838
|
+
"slots" : [ {
|
|
21839
|
+
"name" : ""
|
|
21840
|
+
} ],
|
|
21841
|
+
"cssProperties" : [ {
|
|
21842
|
+
"name" : "--x-toc-active-color",
|
|
21843
|
+
"default" : "var(--x-color-primary,#2563eb)"
|
|
21844
|
+
}, {
|
|
21845
|
+
"name" : "--x-toc-color",
|
|
21846
|
+
"default" : "var(--x-color-text,#1f2937)"
|
|
21847
|
+
}, {
|
|
21848
|
+
"name" : "--x-toc-font-family",
|
|
21849
|
+
"default" : "var(--x-font-family,inherit)"
|
|
21850
|
+
}, {
|
|
21851
|
+
"name" : "--x-toc-font-size",
|
|
21852
|
+
"default" : "var(--x-font-size-sm,0.875rem)"
|
|
21853
|
+
}, {
|
|
21854
|
+
"name" : "--x-toc-gap",
|
|
21855
|
+
"default" : "var(--x-space-sm,0.5rem)"
|
|
21856
|
+
}, {
|
|
21857
|
+
"name" : "--x-toc-hover-color",
|
|
21858
|
+
"default" : "var(--x-color-primary-hover,#1d4ed8)"
|
|
21859
|
+
}, {
|
|
21860
|
+
"name" : "--x-toc-indent",
|
|
21861
|
+
"default" : "0.75rem"
|
|
21862
|
+
}, {
|
|
21863
|
+
"name" : "--x-toc-indicator-color",
|
|
21864
|
+
"default" : "var(--x-toc-active-color)"
|
|
21865
|
+
}, {
|
|
21866
|
+
"name" : "--x-toc-indicator-radius",
|
|
21867
|
+
"default" : "var(--x-radius-full,9999px)"
|
|
21868
|
+
}, {
|
|
21869
|
+
"name" : "--x-toc-indicator-width",
|
|
21870
|
+
"default" : "3px"
|
|
21871
|
+
}, {
|
|
21872
|
+
"name" : "--x-toc-label-color",
|
|
21873
|
+
"default" : "var(--x-color-text-muted,#6b7280)"
|
|
21874
|
+
}, {
|
|
21875
|
+
"name" : "--x-toc-label-font-family",
|
|
21876
|
+
"default" : "var(--x-font-family-mono,ui-monospace,monospace)"
|
|
21877
|
+
}, {
|
|
21878
|
+
"name" : "--x-toc-label-font-size",
|
|
21879
|
+
"default" : "var(--x-font-size-xs,0.75rem)"
|
|
21880
|
+
}, {
|
|
21881
|
+
"name" : "--x-toc-label-letter-spacing",
|
|
21882
|
+
"default" : "0.12em"
|
|
21883
|
+
}, {
|
|
21884
|
+
"name" : "--x-toc-label-transform",
|
|
21885
|
+
"default" : "uppercase"
|
|
21886
|
+
}, {
|
|
21887
|
+
"name" : "--x-toc-rail-color",
|
|
21888
|
+
"default" : "var(--x-color-border,#e5e7eb)"
|
|
21889
|
+
}, {
|
|
21890
|
+
"name" : "--x-toc-rail-width",
|
|
21891
|
+
"default" : "var(--x-border-width,1px)"
|
|
21892
|
+
}, {
|
|
21893
|
+
"name" : "--x-toc-sticky-top",
|
|
21894
|
+
"default" : "1rem"
|
|
21895
|
+
}, {
|
|
21896
|
+
"name" : "--x-toc-transition-duration",
|
|
21897
|
+
"default" : "var(--x-transition-duration,200ms)"
|
|
21898
|
+
} ],
|
|
21899
|
+
"cssParts" : [ {
|
|
21900
|
+
"name" : "body"
|
|
21901
|
+
}, {
|
|
21902
|
+
"name" : "indicator"
|
|
21903
|
+
}, {
|
|
21904
|
+
"name" : "item"
|
|
21905
|
+
}, {
|
|
21906
|
+
"name" : "label"
|
|
21907
|
+
}, {
|
|
21908
|
+
"name" : "link"
|
|
21909
|
+
}, {
|
|
21910
|
+
"name" : "list"
|
|
21911
|
+
}, {
|
|
21912
|
+
"name" : "nav"
|
|
21913
|
+
}, {
|
|
21914
|
+
"name" : "part"
|
|
21915
|
+
} ],
|
|
21916
|
+
"foreignWrites" : [ {
|
|
21917
|
+
"target" : "any",
|
|
21918
|
+
"attributes" : [ "id", "tabindex" ]
|
|
21919
|
+
} ]
|
|
21920
|
+
} ],
|
|
21921
|
+
"exports" : [ {
|
|
21922
|
+
"kind" : "js",
|
|
21923
|
+
"name" : "init",
|
|
21924
|
+
"declaration" : {
|
|
21925
|
+
"name" : "init"
|
|
21926
|
+
}
|
|
21927
|
+
}, {
|
|
21928
|
+
"kind" : "custom-element-definition",
|
|
21929
|
+
"name" : "x-toc",
|
|
21930
|
+
"declaration" : {
|
|
21931
|
+
"name" : "XToc"
|
|
21932
|
+
}
|
|
21933
|
+
} ]
|
|
21721
21934
|
}, {
|
|
21722
21935
|
"kind" : "javascript-module",
|
|
21723
21936
|
"path" : "dist/x-tooltip.js",
|
|
@@ -21925,6 +22138,12 @@
|
|
|
21925
22138
|
"type" : {
|
|
21926
22139
|
"text" : "number"
|
|
21927
22140
|
}
|
|
22141
|
+
}, {
|
|
22142
|
+
"kind" : "field",
|
|
22143
|
+
"name" : "gradient",
|
|
22144
|
+
"type" : {
|
|
22145
|
+
"text" : "boolean"
|
|
22146
|
+
}
|
|
21928
22147
|
} ],
|
|
21929
22148
|
"attributes" : [ {
|
|
21930
22149
|
"name" : "variant",
|
|
@@ -21950,6 +22169,12 @@
|
|
|
21950
22169
|
"type" : {
|
|
21951
22170
|
"text" : "number"
|
|
21952
22171
|
}
|
|
22172
|
+
}, {
|
|
22173
|
+
"name" : "gradient",
|
|
22174
|
+
"fieldName" : "gradient",
|
|
22175
|
+
"type" : {
|
|
22176
|
+
"text" : "boolean"
|
|
22177
|
+
}
|
|
21953
22178
|
} ],
|
|
21954
22179
|
"events" : [ ],
|
|
21955
22180
|
"slots" : [ {
|
|
@@ -21973,6 +22198,8 @@
|
|
|
21973
22198
|
"default" : "var(--x-color-text,inherit)"
|
|
21974
22199
|
}, {
|
|
21975
22200
|
"name" : "--x-typography-font-family"
|
|
22201
|
+
}, {
|
|
22202
|
+
"name" : "--x-typography-gradient"
|
|
21976
22203
|
}, {
|
|
21977
22204
|
"name" : "--x-typography-kbd-bg"
|
|
21978
22205
|
}, {
|
|
@@ -21988,6 +22215,8 @@
|
|
|
21988
22215
|
} ],
|
|
21989
22216
|
"cssParts" : [ {
|
|
21990
22217
|
"name" : "container"
|
|
22218
|
+
}, {
|
|
22219
|
+
"name" : "text"
|
|
21991
22220
|
} ]
|
|
21992
22221
|
} ],
|
|
21993
22222
|
"exports" : [ {
|
package/dist/all.js
CHANGED
|
@@ -105,6 +105,7 @@ import { init as xTimeline } from './x-timeline.js';
|
|
|
105
105
|
import { init as xTimelineItem } from './x-timeline-item.js';
|
|
106
106
|
import { init as xToast } from './x-toast.js';
|
|
107
107
|
import { init as xToaster } from './x-toaster.js';
|
|
108
|
+
import { init as xToc } from './x-toc.js';
|
|
108
109
|
import { init as xTooltip } from './x-tooltip.js';
|
|
109
110
|
import { init as xTraceHistory } from './x-trace-history.js';
|
|
110
111
|
import { init as xTypography } from './x-typography.js';
|
|
@@ -215,6 +216,7 @@ export function init() {
|
|
|
215
216
|
xTimelineItem();
|
|
216
217
|
xToast();
|
|
217
218
|
xToaster();
|
|
219
|
+
xToc();
|
|
218
220
|
xTooltip();
|
|
219
221
|
xTraceHistory();
|
|
220
222
|
xTypography();
|
package/dist/baredom.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ export { XTimelineItem } from "./x-timeline-item";
|
|
|
108
108
|
export { XTimelineItem } from "./x-timeline-item";
|
|
109
109
|
export { XToast } from "./x-toast";
|
|
110
110
|
export { XToaster } from "./x-toaster";
|
|
111
|
+
export { XToc } from "./x-toc";
|
|
111
112
|
export { XTooltip } from "./x-tooltip";
|
|
112
113
|
export { XTypography } from "./x-typography";
|
|
113
114
|
export { XWelcomeTour } from "./x-welcome-tour";
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
2
|
+
var lFa=function(a,b){return new $APP.Gd(null,function(){a:{var c=a;for(var d=b;;){d=$APP.q(d);var e;if(e=d)e=$APP.t(d),e=c.i?c.i(e):c.call(null,e);if($APP.m(e))d=$APP.ac(d);else{c=d;break a}}c=void 0}return c},null)},nFa=function(a){var b=mFa;return function e(d){return new $APP.Gd(null,function(){return $APP.Ed(d,$APP.m($APP.Vc.i?$APP.Vc.i(d):$APP.Vc.call(null,d))?$APP.Ke(e,$APP.zc([b.i?b.i(d):b.call(null,d)])):null)},null)}(a)},oFa=function(){return function(a){var b=$APP.se($APP.Qg);return function(){function c(g,
|
|
3
3
|
k){if($APP.ad($APP.$a(b),k))return g;b.Gb(null,$APP.Bd.j(b.Ma(null),k));return a.j?a.j(g,k):a.call(null,g,k)}function d(g){return a.i?a.i(g):a.call(null,g)}function e(){return a.D?a.D():a.call(null)}var f=null;f=function(g,k){switch(arguments.length){case 0:return e.call(this);case 1:return d.call(this,g);case 2:return c.call(this,g,k)}throw Error("Invalid arity: "+arguments.length);};f.D=e;f.i=d;f.j=c;return f}()}},j$=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.Tc($APP.t(b))?
|
|
4
|
-
new $APP.H(null,3,5,$APP.I,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.I,[a,null,$APP.q(b)],null)},k$=function(a,b){return $APP.me(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.
|
|
5
|
-
a=$APP.B(b,1,null);b=$APP.B(b,2,null);return $APP.p($APP.me($APP.pe($APP.ad,a),new $APP.H(null,2,5,$APP.I,[$APP.
|
|
6
|
-
c=$APP.C(d,$APP.
|
|
7
|
-
0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,a),c],null)):new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,c),b],null)},m$=function(a,b,c){var d=j$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.
|
|
8
|
-
new $APP.J(null,1,[$APP.
|
|
9
|
-
d,$APP.
|
|
10
|
-
b=$APP.C(k,$APP.
|
|
11
|
-
$APP.
|
|
12
|
-
b)),$APP.
|
|
13
|
-
a))&&(p$(d)||$APP.ad($APP.
|
|
14
|
-
b);return $APP.
|
|
15
|
-
function(
|
|
16
|
-
|
|
17
|
-
a));return null},
|
|
18
|
-
c.data)&&(c.data=b);return null},
|
|
19
|
-
"http://www.w3.org/2000/svg"}f=b;f=f!=null?a.createElementNS(f,e):a.createElement(e);q$(f,$APP.pe(r$,c));a:switch(e){case "foreignObject":c=null;break a;default:c=b}$APP.
|
|
20
|
-
null)return a;b=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.vb(a,b,c)},v$=function(a,b){for(b=b.firstElementChild;;)if(b!=null){var c=a;a=b;$APP.m(a.hasAttribute("data-x-key"))?a=c:(c=
|
|
21
|
-
Object.keys(b).length&&$APP.le($APP.qe(
|
|
22
|
-
a.i(c):a.call(null,c);$APP.ad(b,$APP.
|
|
23
|
-
f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.
|
|
24
|
-
function(){return b.i?b.i(this):b.call(null,this)};return c},
|
|
25
|
-
|
|
26
|
-
$APP.
|
|
27
|
-
e,c)?b.preventDefault():null);return b},
|
|
28
|
-
$APP.B(b,2,null);return a.removeEventListener(c,d,b)},
|
|
29
|
-
2,5,$APP.I,[$APP.
|
|
30
|
-
a)),$APP.m(d)?$APP.ac(b):b)},D$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},
|
|
31
|
-
Object.getPrototypeOf(a)){if(c=b!=null&&Object.prototype===Object.getPrototypeOf(b)){c=Object.keys(a);var d=c.length===Object.keys(b).length;if(d)a:{for(d=0;;){var e=d===c.length;if(e){a=e;break a}e=a;var f=b,g=c[d],k=Object.prototype.hasOwnProperty.call(f,g);e=$APP.m(k)?Object.is(e[g],f[g]):k;if($APP.m(e))d+=1;else{a=e;break a}}a=void 0}else a=d;return a}return c}return c},
|
|
32
|
-
1,[F$,b],null));}
|
|
33
|
-
function(a){return new $APP.J(null,3,[$APP.
|
|
34
|
-
"nodes",{get:function(){return $APP.$a(c)},enumerable:!0})},
|
|
35
|
-
2,5,b,[c,a],null)},
|
|
36
|
-
-1927281664);var
|
|
37
|
-
export const readPlaces=function(a){a=$APP.
|
|
38
|
-
export const splitTemplate=function(a,b){var c=
|
|
39
|
-
export const nodeMaker=function(a){return
|
|
40
|
-
export const listen=function(a,b){var c=
|
|
41
|
-
export const writeParts=function(a,b){return y$(B$(a),$APP.
|
|
42
|
-
export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.
|
|
43
|
-
|
|
4
|
+
new $APP.H(null,3,5,$APP.I,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.I,[a,null,$APP.q(b)],null)},k$=function(a,b){return $APP.me(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.z.j(b,$APP.ah(d))?c:null},a)},l$=function(a){return a instanceof $APP.E||$APP.Ic(a)},pFa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},qFa=function(a){return $APP.Vc(a)||typeof a==="string"||typeof a==="number"},rFa=function(a){var b=j$(a);$APP.B(b,0,null);
|
|
5
|
+
a=$APP.B(b,1,null);b=$APP.B(b,2,null);return $APP.p($APP.me($APP.pe($APP.ad,a),new $APP.H(null,2,5,$APP.I,[$APP.vr,$APP.hq],null)))&&$APP.le(pFa,$APP.Jg(a))&&$APP.le(qFa,b)},sFa=function(a){var b=$APP.F(a),c=$APP.C(b,$APP.Kr);a=$APP.C(b,$APP.en);b=$APP.C(b,$APP.hq);a=(c=$APP.q(c))?c:$APP.m(a)?a:$APP.q(b);return $APP.D(a)},tFa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.H(null,2,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[c,a],null),b],null)},uFa=function(a,b,c){var d=$APP.F(c);
|
|
6
|
+
c=$APP.C(d,$APP.vr);var e=$APP.F(d),f=$APP.C(e,$APP.Kr),g=$APP.C(e,$APP.en);d=$APP.C(e,$APP.hq);sFa(e)?(e=new $APP.J(null,1,[$APP.ik,b],null),f=$APP.q(f)?$APP.Mg.l(e,$APP.Ws,f):e,g=$APP.m(g)?$APP.Mg.l(f,$APP.en,g):f,d=$APP.q(d)?$APP.Mg.l(g,$APP.hq,d):g):d=null;a=$APP.ei.P(a,$APP.ps,$APP.Lf,$APP.He.i($APP.pe(tFa,b)),c);return $APP.m(d)?$APP.ei.K(a,$APP.Vs,$APP.Bd,d):a},vFa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.Vc(c)?(c=m$.l?m$.l(a,b,c):m$.call(null,a,b,c),a=$APP.B(c,
|
|
7
|
+
0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,a),c],null)):new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,c),b],null)},m$=function(a,b,c){var d=j$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.wk.o(e,$APP.vr,$APP.zc([$APP.hq]));if($APP.p($APP.me(l$,f)))d=null;else{if($APP.u(f))throw $APP.Ph("A text hole must be the only child of its element.",new $APP.J(null,1,[$APP.du,c],null));d=$APP.t(f)}var k=$APP.vr.i(e);e=$APP.hq.i(e);if(!$APP.le(l$,$APP.Jg(e)))throw $APP.Ph("A value in :props is a hole.",
|
|
8
|
+
new $APP.J(null,1,[$APP.du,c],null));var n=$APP.Lf.l($APP.ge,$APP.Ne($APP.dk.j(l$,$APP.hf)),g);g=$APP.Lf.l($APP.ge,$APP.Le($APP.dk.j(l$,$APP.hf)),g);if($APP.m(k$(g,"xmlns")))throw $APP.Ph("xmlns is a fixed value, never a hole.",new $APP.J(null,1,[$APP.du,c],null));if($APP.m(d))f=null;else if(!$APP.le(qFa,f))throw $APP.Ph("A child of a template is a template, text, a number or one hole.",new $APP.J(null,1,[$APP.du,c],null));d=new $APP.J(null,7,[$APP.du,c,$APP.vr,k,$APP.hq,e,$APP.sq,n,$APP.Kr,g,$APP.en,
|
|
9
|
+
d,$APP.Ku,f],null);b=$APP.F(b);c=$APP.C(b,$APP.uv);d=$APP.F(d);k=$APP.C(d,$APP.sq);k=k$(k,"data-x-part");f=$APP.F(d);g=$APP.C(f,$APP.vr);$APP.D($APP.q(g)||sFa(f))?$APP.m(k)?d=new $APP.H(null,2,5,$APP.I,[d,uFa(b,k,d)],null):(c=""+$APP.M.i(a)+"."+$APP.M.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.To(d,new $APP.H(null,2,5,$APP.I,[$APP.sq,$APP.wh.i("data-x-part")],null),c),uFa($APP.ei.l(b,$APP.uv,$APP.gc),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.B(d,0,null);k=$APP.F(b);c=$APP.C(k,$APP.du);
|
|
10
|
+
b=$APP.C(k,$APP.sq);k=$APP.C(k,$APP.Ku);d=$APP.B(d,1,null);d=$APP.wa($APP.pe(vFa,a),new $APP.H(null,2,5,$APP.I,[$APP.Pe,d],null),k);a=$APP.B(d,0,null);d=$APP.B(d,1,null);k=$APP.I;f=$APP.Lf.j;c=new $APP.H(null,1,5,$APP.I,[c],null);b=$APP.q(b)?$APP.Bd.j(c,b):c;return new $APP.H(null,2,5,k,[f.call($APP.Lf,b,a),d],null)},wFa=function(a,b){b=m$($APP.ah(a),new $APP.J(null,3,[$APP.uv,0,$APP.Vs,$APP.Pe,$APP.ps,$APP.ge],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[$APP.sq,a,$APP.Vs,
|
|
11
|
+
$APP.Vs.i(b),$APP.ps,$APP.ps.i(b)],null)},n$=function(a,b){return b.i?b.i(a):b.call(null,a)},xFa=function(a,b){var c=$APP.F(b);b=$APP.C(c,$APP.ik);var d=$APP.C(c,$APP.Ws),e=$APP.C(c,$APP.en),f=$APP.C(c,$APP.hq);c=$APP.I;d=$APP.m(d)?$APP.Mg.l($APP.ge,$APP.Ws,$APP.Qh(d,$APP.pe(n$,a))):$APP.ge;e=$APP.m(e)?$APP.Mg.l(d,$APP.en,n$(a,e)):d;a=$APP.m(f)?$APP.Mg.l(e,$APP.hq,$APP.Qh(f,$APP.pe(n$,a))):e;return new $APP.H(null,2,5,c,[b,a],null)},o$=function(a,b){return $APP.Lf.l($APP.ge,$APP.He.i($APP.pe(xFa,
|
|
12
|
+
b)),$APP.Vs.i(a))},mFa=function(a){return $APP.Me($APP.Vc,$APP.uc(j$(a),2))},yFa=function(a){var b=j$(a);a=$APP.B(b,0,null);b=$APP.B(b,1,null);b=k$(b,"data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,$APP.Uh($APP.ah(a))],null)},zFa=function(a){return $APP.Lf.l($APP.ge,$APP.ve(yFa),nFa(a))},p$=function(a){return(typeof a==="string"||a instanceof $APP.E)&&$APP.z.j("any",$APP.ah(a))},AFa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.sw);d=$APP.C(d,$APP.Nv);return(p$(c)||$APP.z.j($APP.ah(c),
|
|
13
|
+
a))&&(p$(d)||$APP.ad($APP.Lf.l($APP.Qg,$APP.He.i($APP.ah),d),b))},BFa=function(a){a=$APP.F(a);a=$APP.C(a,$APP.sw);return p$(a)?1:0},CFa=function(a,b,c,d){var e=$APP.B(d,0,null);d=$APP.B(d,1,null);d=$APP.t($APP.hd(BFa,$APP.Me($APP.qe(AFa,b,c),d)));return d==null?null:new $APP.J(null,5,[$APP.ik,a,$APP.du,b,$APP.ada,c,$APP.fda,e,$APP.sw,$APP.ah($APP.sw.i(d))],null)},DFa=function(a){return $APP.fd($APP.He.j($APP.dk.j($APP.Uh,$APP.ah),$APP.Hg(a)))},EFa=function(a,b){var c=zFa($APP.sq.i(a)),d=$APP.hd($APP.gf,
|
|
14
|
+
b);return $APP.Lf.j($APP.Pe,function(){return function g(f){return new $APP.Gd(null,function(){for(var k=f;;){var n=$APP.q(k);if(n){var r=n,v=$APP.t(r),w=$APP.F(v),y=$APP.C(w,$APP.ik),A=$APP.C(w,$APP.Ws);if(n=$APP.q(function(G,N,P,T,S,ea,oa,la,qa){return function sb(Xa){return new $APP.Gd(null,function(Ib,Yb,mc,Sc,Sg,zi,Ai,Bi,vd){return function(){for(var Tg=Xa;;){var jf=$APP.q(Tg);if(jf){var Ug=jf,tj=$APP.t(Ug);if(jf=$APP.q(function(Wk,ss,Mf,xm,ym,Xk,zm,Yk,uj,vj,wj,Uo,xj){return function Zk(xh){return new $APP.Gd(null,
|
|
15
|
+
function(ts,Am,$k,zj,Vo,Wo,Aj,mg,Ae,us,al,Be){return function(){for(var Nf=xh;;)if(Nf=$APP.q(Nf)){if($APP.Wc(Nf)){var Bj=$APP.zb(Nf),Xo=$APP.x(Bj),Of=$APP.Jd(Xo);a:{for(var bl=0;;)if(bl<Xo){var yh=$APP.Ec(Bj,bl);yh=CFa(mg,Be.i?Be.i(mg):Be.call(null,mg),$k,yh);$APP.m(yh)&&Of.add(yh);bl+=1}else{Bj=!0;break a}Bj=void 0}return Bj?$APP.Md(Of.fa(),Zk($APP.Ab(Nf))):$APP.Md(Of.fa(),null)}Of=$APP.t(Nf);Of=CFa(mg,Be.i?Be.i(mg):Be.call(null,mg),$k,Of);if($APP.m(Of))return $APP.Ed(Of,Zk($APP.ac(Nf)));Nf=$APP.ac(Nf)}else return null}}(Wk,
|
|
16
|
+
ss,Mf,xm,ym,Xk,zm,Yk,uj,vj,wj,Uo,xj),null)}}(Tg,Ib,tj,Ug,jf,Yb,mc,Sc,Sg,zi,Ai,Bi,vd)(vd)))return $APP.Je.j(jf,sb($APP.ac(Tg)));Tg=$APP.ac(Tg)}else return null}}}(G,N,P,T,S,ea,oa,la,qa),null)}}(k,v,w,y,A,r,n,c,d)(DFa(A))))return $APP.Je.j(n,g($APP.ac(k)));k=$APP.ac(k)}else return null}},null)}($APP.Vs.i(a))}())},FFa=function(a){var b=a.getAttribute("data-x-key");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},q$=function(a,b){var c=a[GFa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.pe(b,
|
|
17
|
+
a));return null},HFa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.E?$APP.ah(a):""+$APP.M.i(a)},IFa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);b=HFa(b);return $APP.K.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},r$=function(a,b){return $APP.Jh($APP.pe(IFa,b),a)},JFa=function(a,b){b=""+$APP.M.i(b);var c=a.firstChild;c=c==null?null:$APP.z.j(Node.TEXT_NODE,c.nodeType)&&c.nextSibling==null?c:null;c==null?a.textContent=b:$APP.K.j(b,
|
|
18
|
+
c.data)&&(c.data=b);return null},KFa=function(a,b,c,d){return c.append($APP.Vc(d)?s$.l?s$.l(a,b,d):s$.call(null,a,b,d):""+$APP.M.i(d))},t$=function(a){var b=$APP.t($APP.Oe(rFa,nFa(a)));if(b==null)return a;throw $APP.Ph("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.J(null,1,[$APP.du,$APP.t(b)],null));},s$=function(a,b,c){var d=j$(c),e=$APP.B(d,0,null);c=$APP.B(d,1,null);d=$APP.B(d,2,null);e=$APP.ah(e);var f=k$(c,"xmlns");if($APP.m(f))b=f;else switch(e){case "svg":b=
|
|
19
|
+
"http://www.w3.org/2000/svg"}f=b;f=f!=null?a.createElementNS(f,e):a.createElement(e);q$(f,$APP.pe(r$,c));a:switch(e){case "foreignObject":c=null;break a;default:c=b}$APP.Jh($APP.re(KFa,a,c,f),d);return f},LFa=function(a){var b=t$(a);return $APP.pe(u$,new $APP.Hh(function(){return s$(document.createElement("template").content.ownerDocument,null,b)}))},MFa=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},NFa=function(a,b){var c=MFa(b);if(c==
|
|
20
|
+
null)return a;b=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.vb(a,b,c)},v$=function(a,b){for(b=b.firstElementChild;;)if(b!=null){var c=a;a=b;$APP.m(a.hasAttribute("data-x-key"))?a=c:(c=NFa(c,a),a=v$.j?v$.j(c,a):v$.call(null,c,a));b=b.nextElementSibling}else return a},w$=function(a){return $APP.Qd(v$(NFa($APP.rb($APP.ge),a),a))},OFa=function(a,b,c){var d=Object.hasOwn(b,c);return $APP.m(d)?(a=a[c],b=b[c],x$.j?x$.j(a,b):x$.call(null,a,b)):d},PFa=function(a,b){var c=Object.keys(a);return c.length===
|
|
21
|
+
Object.keys(b).length&&$APP.le($APP.qe(OFa,a,b),c)},x$=function(a,b){if(a===b)a=!0;else{var c=$APP.ma(a);c=$APP.m(c)?$APP.ma(b):c;a=$APP.m(c)?PFa(a,b):$APP.na(a)&&$APP.na(b)?PFa(a,b):$APP.z.j(a,b)}return a},RFa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);var d=a[QFa];if($APP.ad(d,c)&&x$(b,$APP.C(d,c)))return null;a[c]=b;return a[QFa]=$APP.Mg.l(d,c,b)},SFa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);b=$APP.F(b);var d=$APP.C(b,$APP.Ws),e=$APP.C(b,$APP.hq);a=a.i?
|
|
22
|
+
a.i(c):a.call(null,c);$APP.ad(b,$APP.en)&&JFa(a,$APP.en.i(b));$APP.m(d)&&q$(a,$APP.pe(r$,d));return $APP.Jh($APP.pe(RFa,a),e)},y$=function(a,b){var c=$APP.q($APP.Lf.l($APP.Pe,$APP.Ne(a),$APP.Hg(b)));if(c!=null)throw $APP.Ph("write-parts!: no node has these part names.",new $APP.J(null,1,[$APP.lk,$APP.kf(c)],null));return $APP.Jh($APP.pe(SFa,a),b)},TFa=function(a,b){return a.getAttribute(b)},UFa=function(a,b){var c=$APP.F(a);a=$APP.C(c,$APP.Ws);var d=$APP.C(c,$APP.gt);c=$APP.C(c,$APP.Zv);var e=$APP.sq.i(c),
|
|
23
|
+
f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.M.i(d),d=b.attachShadow({mode:"open"}),d.append(f,s$(document,null,t$(e))));d=w$(d.lastElementChild);b=$APP.Lf.l($APP.ge,$APP.He.i($APP.mh($APP.wh,$APP.pe(TFa,b))),a);return y$(d,o$(c,b))},VFa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.ya(a);d.connectedCallback=function(){return b.i?b.i(this):b.call(null,this)};d.connectedMoveCallback=function(){return null};d.attributeChangedCallback=
|
|
24
|
+
function(){return b.i?b.i(this):b.call(null,this)};return c},WFa=function(a,b){a=$APP.oe(a);a=new $APP.H(null,2,5,$APP.I,[$APP.ch(a,b),lFa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Je.j(b,$APP.Fe(1,a))},XFa=function(a){return a instanceof Element},YFa=function(a){a=$APP.Me(XFa,WFa($APP.pe($APP.ka,a.currentTarget),$APP.Ac(a.composedPath())));var b=$APP.me(MFa,WFa(FFa,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[z$,$APP.Lf.l($APP.Pe,$APP.ve($APP.dk.j($APP.t,
|
|
25
|
+
FFa)),$APP.Cd(a)),$APP.ik,c,A$,b],null)},ZFa=function(a,b,c,d){return function(e){e=$APP.So.l(a,b,e);a:for(;;){var f=$APP.$a(a),g=c.i?c.i(f):c.call(null,f);d.i?d.i(g):d.call(null,g);if(f===$APP.$a(a))break a}return e}},$Fa=function(a,b){return a.getAttribute(b)},aGa=function(a){return $APP.Mc(z$.i(a))},bGa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},eGa=function(a,b){var c=$APP.F(a);a=$APP.C(c,cGa);var d=$APP.C(c,$APP.ps),e=$APP.C(c,dGa);c=YFa(b);var f=$APP.F(c),g=$APP.C(f,
|
|
26
|
+
$APP.ik);c=$APP.C(f,A$);d=$APP.C(d,new $APP.H(null,2,5,$APP.I,[b.type,g],null));if(d==null)return null;g=$APP.Vc(d)?d:new $APP.H(null,2,5,$APP.I,[d,aGa],null);d=$APP.B(g,0,null);g=$APP.B(g,1,null);f=g.j?g.j(f,b):g.call(null,f,b);d=new $APP.H(null,1,5,$APP.I,[d],null);f=f!=null?$APP.Bd.j(d,f):d;d=$APP.C(e,b.type);d==null?b=a.i?a.i(f):a.call(null,f):(e=$APP.fi.j($APP.dk.j(HFa,$APP.pe(bGa,b)),$APP.Jg(d)),a.i?a.i(f):a.call(null,f),a=$APP.K.j,f=$APP.Hg(d),c=$APP.fi.j($APP.pe($Fa,c),f),b=a.call($APP.K,
|
|
27
|
+
e,c)?b.preventDefault():null);return b},fGa=function(a,b){return $APP.m(b.bubbles)?null:eGa(a,b)},gGa=function(a,b){return $APP.m(b.bubbles)?eGa(a,b):null},hGa=function(a,b){return new $APP.H(null,2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,[b,$APP.pe(fGa,a),!0],null),new $APP.H(null,3,5,$APP.I,[b,$APP.pe(gGa,a),!1],null)],null)},iGa=function(a,b){var c=$APP.B(b,0,null),d=$APP.B(b,1,null);b=$APP.B(b,2,null);return a.addEventListener(c,d,b)},jGa=function(a,b){var c=$APP.B(b,0,null),d=$APP.B(b,1,null);b=
|
|
28
|
+
$APP.B(b,2,null);return a.removeEventListener(c,d,b)},kGa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},B$=function(a){return a!=null?$APP.Lf.l($APP.ge,$APP.He.i($APP.pe(kGa,a)),Object.keys(a)):$APP.ge},lGa=function(a){return $APP.m($APP.ma(a))?$APP.kf(a):a},mGa=function(a,b){return $APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},nGa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);switch(c){case "on":return new $APP.H(null,2,5,$APP.I,[$APP.vr,$APP.Qh(B$(b),lGa)],null);case "props":return new $APP.H(null,
|
|
29
|
+
2,5,$APP.I,[$APP.hq,$APP.Qh(B$(b),$APP.pe(mGa,a))],null);default:return new $APP.H(null,2,5,$APP.I,[c,mGa(a,b)],null)}},oGa=function(a,b){return $APP.m($APP.ma(b))?C$.j?C$.j(a,b):C$.call(null,a,b):$APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},C$=function(a,b){b=$APP.q($APP.zc(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.na($APP.t(b))?$APP.t(b):null,e=$APP.Lf.l;c=new $APP.H(null,1,5,$APP.I,[c],null);c=$APP.m(d)?$APP.Bd.j(c,$APP.Lf.l($APP.ge,$APP.He.i($APP.pe(nGa,a)),B$(d))):c;return e.call($APP.Lf,c,$APP.He.i($APP.pe(oGa,
|
|
30
|
+
a)),$APP.m(d)?$APP.ac(b):b)},D$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},pGa=function(a){a=B$(a);var b=$APP.ad(a,"text")?$APP.Mg.l($APP.ge,$APP.en,a.i?a.i("text"):a.call(null,"text")):$APP.ge;b=(a.i?a.i("attrs"):a.call(null,"attrs"))!=null?$APP.Mg.l(b,$APP.Ws,B$(a.i?a.i("attrs"):a.call(null,"attrs"))):b;return(a.i?a.i("props"):a.call(null,"props"))!=null?$APP.Mg.l(b,$APP.hq,B$(a.i?a.i("props"):a.call(null,"props"))):b},E$=function(a,b){var c=a===b;if(c)return c;if(c=a!=null&&Object.prototype===
|
|
31
|
+
Object.getPrototypeOf(a)){if(c=b!=null&&Object.prototype===Object.getPrototypeOf(b)){c=Object.keys(a);var d=c.length===Object.keys(b).length;if(d)a:{for(d=0;;){var e=d===c.length;if(e){a=e;break a}e=a;var f=b,g=c[d],k=Object.prototype.hasOwnProperty.call(f,g);e=$APP.m(k)?Object.is(e[g],f[g]):k;if($APP.m(e))d+=1;else{a=e;break a}}a=void 0}else a=d;return a}return c}return c},rGa=function(a,b){var c=b==null?null:b[qGa];if($APP.m(c))return c;throw $APP.Ph(""+$APP.M.i(a)+": not a split template.",new $APP.J(null,
|
|
32
|
+
1,[F$,b],null));},sGa=function(a){var b;if(b=a!=null)if(b=typeof a.target==="string")b=(b=$APP.z.j("any",a.attributes))?b:$APP.ma(a.attributes);if(!$APP.m(b))throw $APP.Ph("sharedHoles: a foreign write has a target and attributes.",new $APP.J(null,1,[F$,a],null));return new $APP.J(null,2,[$APP.sw,a.target,$APP.Nv,$APP.m($APP.ma(a.attributes))?$APP.kf(a.attributes):a.attributes],null)},G$=function(a){return new $APP.J(null,4,[$APP.hk,a.parent,$APP.ak,a.before,$APP.hi,a.key,$APP.ik,a.part],null)},tGa=
|
|
33
|
+
function(a){return new $APP.J(null,3,[$APP.hi,a.key,$APP.Zj,a.in,$APP.ak,a.before],null)},uGa=function(a,b,c){a[b]=c;return a},H$=function(a){return $APP.qd(uGa,{},a)},vGa=function(a,b){a.push(b);return a},I$=function(a){return $APP.wa(vGa,[],a)},wGa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.hk),d=$APP.C(b,$APP.ak);b=$APP.C(b,$APP.ik);return{parent:c,before:d,key:a,part:b}},xGa=function(a,b){var c=new $APP.Hh(function(){return Object.freeze(H$(b))});return Object.defineProperty(a,
|
|
34
|
+
"nodes",{get:function(){return $APP.$a(c)},enumerable:!0})},yGa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.Zj);b=$APP.C(b,$APP.ak);return{key:a,"in":c,before:b}},zGa=function(a){var b=$APP.F(a);a=$APP.C(b,z$);var c=$APP.C(b,$APP.ik);b=$APP.C(b,A$);return{keyPath:$APP.jn(a),part:c,node:b}},AGa=function(a){return function(b,c){b=zGa(b);return a.j?a.j(b,c):a.call(null,b,c)}},BGa=function(a){var b=$APP.I,c=$APP.kf(a[0]);a=lGa(a[1]);a=$APP.Vc(a)?$APP.ei.l(a,1,AGa):a;return new $APP.H(null,
|
|
35
|
+
2,5,b,[c,a],null)},CGa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},J$=function(a,b){this.store=a;this.Lc=b;this.A=425984;this.J=65536},DGa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},F$=new $APP.E(null,"given","given",716253602),A$=new $APP.E(null,"node","node",581201198),z$=new $APP.E(null,"key-path","key-path",878473308),dGa=new $APP.E(null,"requested-values","requested-values",3116167),cGa=new $APP.E(null,"dispatch!","dispatch!",
|
|
36
|
+
-1927281664);var GFa=Symbol["for"]("x-render-hold"),u$=function u$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return u$.o(arguments[0],1<c.length?new $APP.Wb(c.slice(1),0,null):null)};u$.o=function(a){return $APP.$a(a).cloneNode(!0)};u$.M=1;u$.I=function(a){var b=$APP.t(a);a=$APP.u(a);return this.o(b,a)};var QFa=Symbol("baremirror.written-props"),EGa=Symbol("baremirror.last-written");var K$=function K$(a){var c=$APP.ma(a);$APP.m($APP.m(c)?c:$APP.na(a))&&($APP.Jh(K$,Object.values(a)),Object.freeze(a));return a},qGa=Symbol("baremirror.split"),L$=Symbol("baremirror.value");J$.prototype.X=function(a,b){return new J$(this.store,b)};J$.prototype.U=function(){return this.Lc};J$.prototype.Ma=function(){return this.store.value};J$.prototype.oc=function(a,b,c){a=this.store;var d=this.store.value;b=b.j?b.j(d,c):b.call(null,d,c);return a.value=b};export const plan=function(a,b){a=$APP.gk($APP.Qh(B$(a),$APP.kf),$APP.Qh(B$(b),$APP.kf));a=$APP.F(a);b=$APP.C(a,$APP.ek);var c=$APP.C(a,$APP.fk);return K$(D$({remove:I$(b),place:I$($APP.He.j(yGa,c))},L$,a))};export const syncPlaces=function(a,b,c){return H$($APP.yk($APP.Qh(B$(a),G$),$APP.Qh(B$(b),$APP.kf),c))};export const setText=function(a,b){return JFa(a,b)};export const readOrigin=function(a){return zGa(YFa(a))};export const setAttrs=function(a,b){b=B$(b);return q$(a,$APP.pe(r$,b))};
|
|
37
|
+
export const readPlaces=function(a){a=$APP.vk($APP.Qh(B$(a),G$));a=$APP.F(a);var b=$APP.C(a,$APP.uk),c=$APP.C(a,$APP.qk),d=$APP.C(a,$APP.rk);return Object.freeze(D$(xGa({containers:K$(H$($APP.Qh(b,wGa))),places:K$(H$($APP.Qh(c,I$)))},d),L$,a))};export const withOneRender=function(a,b){return q$(a,b)};
|
|
38
|
+
export const splitTemplate=function(a,b){var c=wFa(a,C$($APP.rd,b));return K$(D$({fixed:$APP.jn($APP.sq.i(c)),holes:$APP.jn($APP.Vs.i(c)),events:$APP.jn($APP.kf($APP.ps.i(c))),writes:function(d){return $APP.jn(o$(c,d))}},qGa,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=C$($APP.rd,a);return s$(document,null,t$(a))};export const dispatcher=function(a,b,c,d){return ZFa(new J$(a,$APP.ge),b,c,d)};
|
|
39
|
+
export const nodeMaker=function(a){return LFa(C$($APP.rd,a))};export const sharedHoles=function(a,b){return $APP.jn(EFa(rGa("sharedHoles",a),$APP.Qh(B$(b),$APP.pe($APP.fi,sGa))))};export const perform=function(a,b,c){var d=a==null?null:a[L$];a=$APP.m(d)?d:new $APP.J(null,2,[$APP.uk,$APP.Qh(B$(a.containers),G$),$APP.rk,B$(a.nodes)],null);d=b==null?null:b[L$];b=$APP.m(d)?d:new $APP.J(null,2,[$APP.ek,$APP.kf(b.remove),$APP.fk,$APP.fi.j(tGa,b.place)],null);return H$($APP.xk(a,b,c))};
|
|
40
|
+
export const listen=function(a,b){var c=CGa(b.dispatch);var d=b.events;d=$APP.Lf.l($APP.ge,$APP.He.i(BGa),$APP.zc(d));b=new $APP.J(null,3,[cGa,c,$APP.ps,d,dGa,$APP.Qh(B$(b.requestedValues),B$)],null);b=$APP.F(b);c=$APP.C(b,$APP.ps);b=$APP.Lf.l($APP.Pe,$APP.dk.l($APP.He.i($APP.t),oFa(),$APP.dk.j($APP.He.i($APP.pe(hGa,b)),$APP.Ih)),$APP.Hg(c));$APP.Jh($APP.pe(iGa,a),b);return $APP.qe($APP.Jh,$APP.pe(jGa,a),b)};export const readParts=function(a){return $APP.jn(w$(a))};
|
|
41
|
+
export const writeParts=function(a,b){return y$(B$(a),$APP.Qh(B$(b),pGa))};
|
|
42
|
+
export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.Ws,$APP.kf(b.attrs),$APP.pw,C$(DGa,b.template),$APP.gt,b.css],null);var c=$APP.F(b),d=$APP.C(c,$APP.pw);b=$APP.C(c,$APP.Ws);c=$APP.C(c,$APP.gt);d=wFa(a,d);if(!$APP.Oc($APP.ps.i(d)))throw $APP.Ph("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.du,a],null));d=new $APP.J(null,3,[$APP.Ws,b,$APP.gt,c,$APP.Zv,d],null);return typeof customElements!=="undefined"&&$APP.p(customElements.get(a))?customElements.define(a,
|
|
43
|
+
VFa(b,$APP.pe(UFa,d))):null};export const writeItem=function(a,b,c){b=rGa("writeItem",b);var d=a[EGa];var e=$APP.B(d,0,null);d=$APP.B(d,1,null);e=(e=b===e)?E$.j?E$.j(c,d):E$.call(null,c,d):e;if(!$APP.m(e)){if(!($APP.Tc(b)&&$APP.ad(b,$APP.sq)&&$APP.ad(b,$APP.Vs)))throw $APP.Ph("write-item!: not a split template.",new $APP.J(null,1,[F$,b],null));y$(w$(a),o$(b,c));a[EGa]=new $APP.H(null,2,5,$APP.I,[b,c],null)}return null};
|